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AAK,cAAgB,WACnB,OAAO,KAAK,UACd,EACO","file":"/npm/angular-factory-layer@2.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/angular-factory-layer@2.0.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * 弹窗\n * **/\n// 弹窗\nrequire(\"./lib/layer.min.css\");\nwindow.layer = require(\"./lib/layer.js\");\nexports = module.exports = {\n  layer: [\n    () => {\n      this.open = function(param) {\n        return window.layer.open({\n          title: param.title, // 设置弹层标题\n          content: param.content, // 设置弹层内容\n          skin: param.skin, // 设定弹层显示风格,目前支持配置 footer（即底部对话框风格）、msg（普通提示） 两种风格。\n          time: param.time, //  控制自动关闭层所需秒数\n          type: param.type, // 设置弹层的类型\n          btn: param.btn, // 不设置则不显示按钮。如果只需要一个按钮，则btn: '按钮'，如果有两个，则：btn: ['按钮一', '按钮二']。\n          yes: param.yes, // 点确定按钮触发的回调函数，返回一个参数为当前层的索引\n          no: param.no, // 点取消按钮触发的回调函数\n          className: param.className, // 自定义一个css类\n          success: param.success, // 该回调参数返回一个参数为当前层元素对象\n          shade: param.shade || true, // 默认：true，该参数可允许你是否显示遮罩，并且定义遮罩风格\n          shadeClose: param.shadeClose || true, // 默认：true，是否点击遮罩时关闭层\n          end: param.end, // 层彻底销毁后的回调函数\n          anim: param.anim // 可支持的支持动画配置：scale（默认）、up（从下往上弹出），如果不开启动画，设置false即可\n        });\n      };\n      this.closeAll = function() {\n        window.layer.closeAll();\n      };\n      this.close = function(index) {\n        window.layer.close(index);\n      };\n      // 提示信息\n      this.msg = function(param) {\n        if (!angular.isObject(param)) {\n          console.log(\"layer msg function:param error\");\n          return false;\n        }\n        if (!param.content) {\n          console.log(\"layer msg function:param content error\");\n          return false;\n        }\n        if (!angular.isUndefined(this.msgIndex)) {\n          this.close(this.msgIndex);\n        }\n        param.className = \"layer-msg\";\n        param.time = param.time || 3;\n        param.type = 1;\n        param.skin = \"msg\";\n        this.msgIndex = this.open(param);\n        return this.msgIndex;\n      };\n      // alert\n      this.panel = function(param) {\n        if (!angular.isObject(param)) {\n          console.log(\"layer msg function:param error\");\n          return false;\n        }\n        if (!param.content) {\n          console.log(\"layer msg function:param content error\");\n          return false;\n        }\n        if (!angular.isUndefined(this.closeAll)) {\n          this.closeAll();\n        }\n        if (!angular.isUndefined(this.alertIndex)) {\n          this.close(this.alertIndex);\n        }\n        param.className = \"layer-panel\";\n        if (param.skin == \"footer\" && param.title) {\n          param.className = \"layer-panel layer-panel-footer\";\n        }\n        param.type = 0;\n        this.alertIndex = this.open(param);\n        return this.alertIndex;\n      };\n      this.getAlertIndex = function() {\n        return this.alertIndex;\n      };\n      return this;\n    }\n  ]\n};\n"]}