{"version":3,"sources":["webpack:///./node_modules/Ceres/resources/js/src/app/components/pageDesign/Popper.vue?921b","webpack:///./node_modules/Ceres/resources/js/src/app/components/pageDesign/Popper.vue?dd6a","webpack:///./node_modules/Ceres/resources/js/src/app/components/pageDesign/Popper.vue","webpack:///./node_modules/Ceres/resources/js/src/app/components/pageDesign/Popper.vue?c888"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","_t","_m","_v","class","classNames","bodyClass","style","bodyStyle","_withStripped","props","placement","type","String","default","trigger","popoverClass","mounted","$nextTick","isNullOrUndefined","$refs","node","handle","initializePopper","parentModal","findParent","$el","findModal","on","hidePopper","destroyed","popper","destroy","window","removeEventListener","eventListener","data","isVisible","computed","hideClass","App","isShopBuilder","methods","parentElement","removeChild","document","body","appendChild","Popper","firstElementChild","modifiers","arrow","element","removeOnDestroy","addEventListeners","addEventListener","setTimeout","transform","showPopper","togglePopper","update","scheduleUpdate","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOE,EAAG,MAAO,CACfA,EACE,MACA,CAAEE,IAAK,SAAUC,YAAa,iBAC9B,CACEP,EAAIQ,GAAG,UAAU,WACf,MAAO,CAACR,EAAIS,GAAG,QAGnB,GAEFT,EAAIU,GAAG,KACPN,EACE,MACA,CACEE,IAAK,OACLC,YAAa,0BACbI,MAAOX,EAAIY,YAEb,CACER,EAAG,KAAM,CAAEG,YAAa,kBAAoB,CAACP,EAAIQ,GAAG,UAAW,GAC/DR,EAAIU,GAAG,KACPN,EACE,MACA,CACEG,YAAa,eACbI,MAAOX,EAAIa,UACXC,MAAOd,EAAIe,WAEb,CAACf,EAAIQ,GAAG,YACR,GAEFR,EAAIU,GAAG,KACPN,EAAG,MAAO,CAAEE,IAAK,QAASC,YAAa,eAe/CR,EAAOiB,eAAgB,E,qCCpDmK,ECkC3K,CACXC,MAAO,CACHC,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2B,mBAAqBvD,KAAK0B,MAAME,OAE5C,UAAjB5B,KAAKqB,SAELO,EAAOiC,iBAAiB,SAAS,WAE7B,EAAKG,gBAETpC,EAAOiC,iBAAiB,QAAQ,WAE5B,EAAK1B,iBAKTP,EAAOiC,iBAAiB7D,KAAKqB,SAAS,WAElC,EAAK4C,mBAKjBA,aA9DJ,WAgEQjE,KAAK2C,WAAa3C,KAAK2C,UACvB3C,KAAKkE,UAGTF,WApEJ,WAsEQhE,KAAK2C,WAAY,EACjB3C,KAAKkE,UAGT/B,WA1EJ,WA4EQnC,KAAK2C,WAAY,EACjB3C,KAAKkE,UAGTA,OAhFJ,WAkFazC,YAAkBzB,KAAKqC,SAExBrC,KAAKqC,OAAO8B,oB,QCzLxBC,EAAY,YACd,EACAtE,EHiCoB,CACpB,WACE,IACIG,EADMD,KACGE,eACTC,EAFMH,KAEGI,MAAMD,IAAMF,EACzB,OAAOE,EAAG,SAAU,CAAEG,YAAa,qCAAuC,CACxEH,EAAG,IAAK,CAAEG,YAAa,oBGrC3B,EACA,KACA,KACA,MAuBF8D,EAAUC,QAAQC,OAAS,2EACZ,UAAAF,E","file":"chunks/ceres-client-27.min.js","sourcesContent":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", [\n _c(\n \"div\",\n { ref: \"handle\", staticClass: \"popper-handle\" },\n [\n _vm._t(\"handle\", function() {\n return [_vm._m(0)]\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n ref: \"node\",\n staticClass: \"popover bs-popover-auto\",\n class: _vm.classNames\n },\n [\n _c(\"h3\", { staticClass: \"popover-header\" }, [_vm._t(\"title\")], 2),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass: \"popover-body\",\n class: _vm.bodyClass,\n style: _vm.bodyStyle\n },\n [_vm._t(\"content\")],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { ref: \"arrow\", staticClass: \"arrow\" })\n ]\n )\n ])\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"button\", { staticClass: \"btn btn-icon btn-secondary btn-sm\" }, [\n _c(\"i\", { staticClass: \"fa fa-info\" })\n ])\n }\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../babel-loader/lib/index.js!../../../../../../../vue-loader/lib/index.js??vue-loader-options!./Popper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../babel-loader/lib/index.js!../../../../../../../vue-loader/lib/index.js??vue-loader-options!./Popper.vue?vue&type=script&lang=js&\"","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport { isNullOrUndefined } from \"../../helper/utils\";\nimport { findParent } from \"../../helper/dom\";\nimport { findModal } from \"../../services/ModalService\";\nimport Vue from \"vue\";\nimport Popper from \"popper.js\";\n\nexport default {\n props: {\n placement: {\n type: String,\n default: \"auto\"\n },\n trigger: {\n type: String,\n default: \"click\"\n },\n popoverClass: {\n type: String,\n default: \"\"\n },\n bodyClass: {\n type: String,\n default: \"\"\n },\n bodyStyle: {\n type: String,\n default: \"\"\n }\n },\n\n mounted()\n {\n this.$nextTick(() =>\n {\n if (!isNullOrUndefined(this.$refs.node) && !isNullOrUndefined(this.$refs.handle))\n {\n this.initializePopper();\n }\n\n const parentModal = findParent(this.$el, \".modal\");\n\n if (!isNullOrUndefined(parentModal))\n {\n findModal(parentModal)\n .on(\"hide.bs.modal\", () =>\n {\n this.hidePopper();\n });\n }\n\n });\n },\n\n destroyed()\n {\n this.popper.destroy();\n window.removeEventListener(\"resize\", this.eventListener);\n },\n\n data()\n {\n return {\n isVisible: false,\n popper: null,\n eventListener: null\n };\n },\n\n computed:\n {\n classNames()\n {\n // in the shopbuilder we need to hide the popper completely, to hide the dropzone\n const hideClass = App.isShopBuilder ? \" d-none\" : \" hidden\";\n\n return this.popoverClass + (!this.isVisible ? hideClass : \"\");\n }\n },\n\n methods:\n {\n initializePopper()\n {\n const node = this.$refs.node;\n\n if (!App.isShopBuilder)\n {\n node.parentElement.removeChild(node);\n document.body.appendChild(node);\n }\n\n this.popper = new Popper(\n (this.$refs.handle.firstElementChild || this.$refs.handle),\n node,\n {\n placement: this.placement,\n modifiers: {\n arrow: {\n element: this.$refs.arrow\n }\n },\n removeOnDestroy: true\n }\n );\n\n this.addEventListeners();\n },\n \n addEventListeners()\n {\n this.eventListener = window.addEventListener(\"resize\", () =>\n {\n // popper's position needs to be reset after a resize, to prevent the overflow, after switching from landscape to normal\n this.hidePopper();\n\n setTimeout(() => {\n this.$refs.node.style.transform = \"\";\n }, 0);\n });\n\n const handle = this.$refs.handle.firstElementChild || this.$refs.handle;\n\n if (this.trigger === \"focus\")\n {\n handle.addEventListener(\"focus\", () =>\n {\n this.showPopper();\n });\n handle.addEventListener(\"blur\", () =>\n {\n this.hidePopper();\n });\n }\n else\n {\n handle.addEventListener(this.trigger, () =>\n {\n this.togglePopper();\n });\n }\n },\n\n togglePopper()\n {\n this.isVisible = !this.isVisible;\n this.update();\n },\n\n showPopper()\n {\n this.isVisible = true;\n this.update();\n },\n\n hidePopper()\n {\n this.isVisible = false;\n this.update();\n },\n\n update()\n {\n if (!isNullOrUndefined(this.popper))\n {\n this.popper.scheduleUpdate();\n }\n }\n }\n}\n","import { render, staticRenderFns } from \"./Popper.vue?vue&type=template&id=56dc9fa2&\"\nimport script from \"./Popper.vue?vue&type=script&lang=js&\"\nexport * from \"./Popper.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/Users/fhartwig/Sites/pp-heySilvity/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('56dc9fa2')) {\n api.createRecord('56dc9fa2', component.options)\n } else {\n api.reload('56dc9fa2', component.options)\n }\n module.hot.accept(\"./Popper.vue?vue&type=template&id=56dc9fa2&\", function () {\n api.rerender('56dc9fa2', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"node_modules/Ceres/resources/js/src/app/components/pageDesign/Popper.vue\"\nexport default component.exports"],"sourceRoot":""}