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OC,QAAS,MAAK,0BACCL,EAAAA,EAAAA,IAAA,EAArDC,EAAAA,EAAAA,IAAK,CAAEC,KAAMC,OAAQC,UAAU,EAAOC,QAAS,MAAK,kCACAL,EAAAA,EAAAA,IAAA,EAApDC,EAAAA,EAAAA,IAAK,CAAEC,KAAMI,MAAOF,UAAU,EAAOC,QAAS,MAAK,mCACEL,EAAAA,EAAAA,IAAA,EAArDC,EAAAA,EAAAA,IAAK,CAAEC,KAAMC,OAAQC,UAAU,EAAOC,QAAS,MAAK,qCALpC/B,GAAO0B,EAAAA,EAAAA,IAAA,EAH3BO,EAAAA,EAAAA,IAAU,CACPC,KAAM,aAEWlC,G,UCPmb,I,eCOpcmC,GAAY,OACd,EACA7C,EACAS,GACA,EACA,KACA,KACA,MAIF,QAAeoC,EAAiB,O","sources":["webpack://website-js/./src/components/Flowbox.vue","webpack://website-js/./src/components/Flowbox.vue?c1ce","webpack://website-js/./src/components/Flowbox.vue?fbd9","webpack://website-js/./src/components/Flowbox.vue?e2ae"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flowbox\"},[_c('div',{attrs:{\"id\":_vm.id}}),_c('div',{attrs:{\"id\":`${_vm.id}-config`}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { CbxVariablesModule } from '../store/modules/CbxVariablesModule';\r\n\r\n@Component({\r\n    name: 'Flowbox',\r\n})\r\nexport default class Flowbox extends Vue {\r\n    @Prop({ type: String, required: false, default: null }) private nonce: string;\r\n    @Prop({ type: String, required: false, default: \"\" }) private id: string;\r\n    @Prop({ type: String, required: false, default: \"\" }) private flowboxKey: string;\r\n    @Prop({ type: Array, required: false, default: [] }) private flowboxTags: string[];\r\n    @Prop({ type: String, required: false, default: \"\" }) private flowboxProduct: string;\r\n\r\n    get locale(): string {\r\n        return CbxVariablesModule.VARIABLES.culture;\r\n    }\r\n\r\n    private mounted() {\r\n        this.$nextTick(() => {\r\n            const config = document.createElement('script');\r\n            if (this.flowboxProduct?.length > 0)\r\n            {\r\n                config.innerText = `\r\n                    window.flowbox('init', {\r\n                        container: '#${this.id}',\r\n                        key: '${this.flowboxKey}',\r\n                        productId: '${this.flowboxProduct}',\r\n                        locale: '${this.locale}'\r\n                    })\r\n                `;\r\n            }\r\n            else\r\n            {\r\n                config.innerText = `\r\n                    window.flowbox('init', {\r\n                        container: '#${this.id}',\r\n                        key: '${this.flowboxKey}',\r\n                        tags: ${JSON.stringify(this.flowboxTags)},\r\n                        locale: '${this.locale}'\r\n                    })\r\n                `;\r\n            }\r\n            config.nonce = this.nonce;\r\n\r\n            document.getElementById(`${this.id}-config`).appendChild(config);\r\n        })\r\n    }\r\n\r\n    private beforeDestroy() {\r\n        this.$nextTick(() => {\r\n            document.getElementById(`${this.id}-config`).innerHTML = '';\r\n        })\r\n    }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Flowbox.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Flowbox.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Flowbox.vue?vue&type=template&id=2d6062e0&\"\nimport script from \"./Flowbox.vue?vue&type=script&lang=ts&\"\nexport * from \"./Flowbox.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","id","staticRenderFns","Flowbox","Vue","constructor","args","_defineProperty","locale","CbxVariablesModule","VARIABLES","culture","mounted","$nextTick","config","document","createElement","flowboxProduct","length","innerText","flowboxKey","JSON","stringify","flowboxTags","nonce","getElementById","appendChild","beforeDestroy","innerHTML","__decorate","Prop","type","String","required","default","Array","Component","name","component"],"sourceRoot":""}