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AClB,QAAS,CAAC,EAAG,IAGf,EAAE,MAAQ,CACR,IAAK,CAAC,GAAI,EAAG,KACb,QAAS,CAAC,EAAG,GACb,OAAQ,CAAC,EAAG,KAGT,KAAK,SAAS,EACvB,IAIL,GAAE,KAAK","file":"/npm/ceri-modal@0.2.2/modal.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ceri-modal@0.2.2/modal.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Generated by CoffeeScript 1.12.7\n(function() {\n  var ceri;\n\n  ceri = require(\"ceri/lib/wrapper\");\n\n  module.exports = ceri({\n    mixins: [require(\"ceri/lib/props\"), require(\"ceri/lib/style\"), require(\"ceri/lib/open\"), require(\"ceri/lib/overlay\")],\n    props: {\n      opacity: {\n        type: Number,\n        \"default\": 0.5\n      },\n      keepOpen: {\n        type: Boolean\n      },\n      zIndex: {\n        type: Number,\n        \"default\": 1500\n      },\n      bottomSheet: {\n        type: Boolean\n      },\n      attach: {\n        type: String\n      }\n    },\n    events: {\n      click: {\n        target: {\n          active: function() {\n            return this.target && !this.openingOrOpen;\n          },\n          notPrevented: true,\n          prevent: true,\n          cbs: \"show\",\n          destroy: true\n        }\n      }\n    },\n    computed: {\n      target: function() {\n        if (this.attach) {\n          return document.querySelector(this.attach);\n        } else if (this.attach != null) {\n          if (this.__placeholder.previousElementSibling) {\n            return this.__placeholder.previousElementSibling;\n          } else {\n            return this.__parentElement;\n          }\n        }\n        return null;\n      }\n    },\n    data: function() {\n      return {\n        onBody: true\n      };\n    },\n    overlay: {\n      zIndex: \"zIndex\",\n      active: \"openingOrOpen\",\n      animate: \"toggleAnimate\",\n      keepOpen: \"keepOpen\",\n      delay: true,\n      onClose: \"hide\",\n      onOpen: function(zIndex) {\n        return this.style.zIndex = zIndex + 1;\n      }\n    },\n    initStyle: {\n      position: \"fixed\",\n      left: 0,\n      right: 0,\n      display: \"block\"\n    },\n    methods: {\n      enter: function(o) {\n        if (this.bottomSheet) {\n          o.style = {\n            bottom: [-100, 0, \"%\"],\n            opacity: [0, 1]\n          };\n        } else {\n          o.style = {\n            top: [4, 10, \"%\"],\n            opacity: [0, 1],\n            scaleX: [0.7, 1]\n          };\n        }\n        return this.$animate(o);\n      },\n      leave: function(o) {\n        o.duration = 200;\n        if (this.bottomSheet) {\n          o.style = {\n            bottom: [0, -100, \"%\"],\n            opacity: [1, 0]\n          };\n        } else {\n          o.style = {\n            top: [10, 4, \"%\"],\n            opacity: [1, 0],\n            scaleX: [1, 0.7]\n          };\n        }\n        return this.$animate(o);\n      }\n    }\n  });\n\n}).call(this);\n"]}