{"version":3,"sources":["webpack:///./src/mixins/wizards.js","webpack:///./src/views/domain/Customizations.vue?501a","webpack:///src/views/domain/Customizations.vue","webpack:///./src/views/domain/Customizations.vue?74a1","webpack:///./src/views/domain/Customizations.vue","webpack:///../../../src/components/VTextarea/VTextarea.ts"],"names":["data","cancel","computed","step","this","$store","getters","$route","name","displayStep","wizardType","wizardEntryPoint","currentWizard","wizards","isLastStep","mapState","methods","nextStep","params","route","p","wizardParams","$router","push","changeStep","event","index","cancelWizard","console","debug","cancelWizardR","to","newWizard","exitingWizard","commit","value","exitWizard","wizard","wizardLifecycleControl","setTimeout","drawerHidden","drawer","setLastEditableStep","lastEditableStep","beforeRouteUpdate","from","next","beforeRouteLeave","render","_vm","_h","$createElement","_c","_self","attrs","saving","on","save","staticClass","_v","_s","$t","staticStyle","model","unsubscribeSetup","callback","$$v","$set","expression","unsubscribePreview","_e","staticRenderFns","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VContainer","VIcon","VTextField","VTextarea","baseMixins","props","autoGrow","noResize","rowHeight","type","Number","default","validator","v","isNaN","parseFloat","rows","parseInt","classes","noResizeHandle","watch","val","lazyValue","$nextTick","mounted","calculateInputHeight","input","$refs","height","minHeight","Math","genInput","onInput","onKeyDown","isFocused","e"],"mappings":"2LAEe,QACXA,KADW,WAEP,MAAO,CACHC,QAAQ,IAGhBC,SAAU,gBACNC,KADM,WAEF,OAAOC,KAAKC,OAAOC,QAAQ,WAAWF,KAAKG,OAAOC,OAEtDC,YAJM,WAKF,OAAOL,KAAKD,KAAO,GAEvBO,WAPM,WAQF,OAAON,KAAKC,OAAOC,QAAQ,iBAAiBF,KAAKG,OAAOC,OAE5DG,iBAVM,WAWF,OAAOP,KAAKC,OAAOC,QAAQ,uBAAuBF,KAAKG,OAAOC,OAElEI,cAbM,WAcF,OAAOR,KAAKS,QAAQT,KAAKM,aAE7BI,WAhBM,WAiBF,OAA+D,MAAxDV,KAAKC,OAAOC,QAAQ,eAAeF,KAAKG,OAAOC,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A1G,KAAA,UAAiBA,KAAjB,wBAEF2G,UAzBO,SAyBE,GAIH3G,KAAK4G,WAAT,KAAsBC,EAAA,SACpBA,EAAA,kBAGF7G,KAAA","file":"js/customizations.02bd8b20.js","sourcesContent":["import {mapState} from \"vuex\";\n\nexport default {\n data() {\n return {\n cancel: false\n }\n },\n computed: {\n step() {\n return this.$store.getters['ui/step'](this.$route.name);\n },\n displayStep() {\n return this.step + 1;\n },\n wizardType() {\n return this.$store.getters['ui/wizardType'](this.$route.name);\n },\n wizardEntryPoint() {\n return this.$store.getters['ui/wizardEntryPoint'](this.$route.name);\n },\n currentWizard() {\n return this.wizards[this.wizardType];\n },\n isLastStep() {\n return this.$store.getters['ui/nextStep'](this.$route.name) == null;\n },\n ...mapState('ui',['wizard', 'wizards', 'drawerHidden', 'lastEditableStep'])\n },\n methods: {\n nextStep(params) {\n let name = this.$store.getters['ui/nextStep'](this.$route.name);\n let route;\n if(name === true) {\n route = this.wizardEntryPoint;\n } else {\n let p = params || this.wizardParams;\n route = { name, params: p };\n }\n this.$router.push(route);\n },\n changeStep(event, params) {\n let p = params || this.wizardParams;\n var route = { name: this.wizards[this.wizardType][event.index].route, params: p };\n this.$router.push(route);\n },\n cancelWizard() {\n //var route = { name };\n // save before leave\n /*\n if(!discard && this.save && typeof(this.save) === 'function') {\n await this.save();\n }\n */\n var route = this.wizardEntryPoint;\n console.debug(`cancel called, going to route`, route);\n this.cancel = true;\n this.$router.push(route);\n },\n\n cancelWizardR(to) {\n let newWizard = this.$store.getters['ui/wizardType'](to.name);\n let exitingWizard = newWizard != this.wizardType && this.wizardType != null;\n //console.debug('sameWizard', sameWizard);\n if(this.cancel || exitingWizard) {\n this.$store.commit('ui/dynamicEntryPoint', {value: null});\n this.$store.commit('ui/wizard', {value: false});\n }\n },\n\n exitWizard() {\n console.debug('Exiting wizard...');\n this.$store.commit('ui/dynamicEntryPoint', {value: null});\n if(this.wizard) {\n this.$store.commit('ui/wizard', {value: false});\n }\n },\n wizardLifecycleControl() {\n console.debug('Wizard lifecycle control:');\n //if(this.wizard && this.drawerHidden && !this.isLastStep) {\n //console.debug('entering wizard...');\n \n setTimeout(() => { \n console.debug(`Checking drawer state: ${this.wizard} ${this.drawerHidden} ${this.drawer}`); \n if(this.wizard && this.drawerHidden && !this.isLastStep && this.drawer) { \n console.debug('Hiding drawer...'); this.drawer = false; \n } \n }, 500);\n //}\n /*\n else if(this.wizard && this.isLastStep) {\n console.debug('last step, exiting...');\n this.exitWizard();\n }\n */\n },\n setLastEditableStep() {\n if(!this.lastEditableStep || this.lastEditableStep < this.step) {\n this.$store.commit('ui/lastEditableStep', { value: this.step });\n }\n },\n },\n beforeRouteUpdate(to, from, next) {\n this.cancelWizardR(to); \n next();\n },\n beforeRouteLeave(to, from, next) {\n this.cancelWizardR(to); \n next();\n },\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.item)?_c('field-form',{attrs:{\"id\":\"pfid1628066356\",\"saving\":_vm.saving},on:{\"save\":_vm.save}},[_c('h2',{staticClass:\"text-h4\"},[_vm._v(_vm._s(_vm.$t('customizations.title')))]),_c('p',[_vm._v(_vm._s(_vm.$t('customizations.text')))]),_c('v-card',{staticClass:\"my-3\"},[_c('v-card-title',[_vm._v(_vm._s(_vm.$t('customizations.unsubscribe.title')))]),_c('v-card-text',[_c('p',[_vm._v(_vm._s(_vm.$t('customizations.unsubscribe.text')))]),_c('v-text-field',{staticClass:\"pr-3\",staticStyle:{\"max-width\":\"800px\"},attrs:{\"id\":\"pfid1628066729\",\"label\":_vm.$t('customizations.unsubscribe.fields.title'),\"prepend-icon\":\"$tab\",\"placeholder\":\"DreamROI Unsubscribe\",\"clearable\":\"\"},model:{value:(_vm.unsubscribeSetup.title),callback:function ($$v) {_vm.$set(_vm.unsubscribeSetup, \"title\", $$v)},expression:\"unsubscribeSetup.title\"}}),_c('v-text-field',{staticClass:\"pr-3\",staticStyle:{\"max-width\":\"800px\"},attrs:{\"id\":\"pfid1628066750\",\"label\":_vm.$t('customizations.unsubscribe.fields.heading'),\"prepend-icon\":\"$heading\",\"placeholder\":\"Thank you\",\"clearable\":\"\"},model:{value:(_vm.unsubscribeSetup.heading),callback:function ($$v) {_vm.$set(_vm.unsubscribeSetup, \"heading\", $$v)},expression:\"unsubscribeSetup.heading\"}}),_c('v-textarea',{staticClass:\"pr-3\",staticStyle:{\"max-width\":\"800px\"},attrs:{\"id\":\"pfid1628067255\",\"prepend-icon\":\"$text\",\"label\":_vm.$t('customizations.unsubscribe.fields.text'),\"clearable\":\"\"},model:{value:(_vm.unsubscribeSetup.text),callback:function ($$v) {_vm.$set(_vm.unsubscribeSetup, \"text\", $$v)},expression:\"unsubscribeSetup.text\"}})],1),_c('v-card-actions',[_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\",\"href\":_vm.unsubscribePreview,\"target\":\"_blank\"}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"$view\")]),_vm._v(_vm._s(_vm.$t('customizations.unsubscribe.preview')))],1)],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Customizations.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Customizations.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Customizations.vue?vue&type=template&id=09070cbe&\"\nimport script from \"./Customizations.vue?vue&type=script&lang=js&\"\nexport * from \"./Customizations.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/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\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VContainer,VIcon,VTextField,VTextarea})\n","// Styles\nimport './VTextarea.sass'\n\n// Extensions\nimport VTextField from '../VTextField/VTextField'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n// Types\nimport Vue from 'vue'\n\ninterface options extends Vue {\n $refs: {\n input: HTMLTextAreaElement\n }\n}\n\nconst baseMixins = mixins\n>(\n VTextField\n)\n\n/* @vue/component */\nexport default baseMixins.extend({\n name: 'v-textarea',\n\n props: {\n autoGrow: Boolean,\n noResize: Boolean,\n rowHeight: {\n type: [Number, String],\n default: 24,\n validator: (v: any) => !isNaN(parseFloat(v)),\n },\n rows: {\n type: [Number, String],\n default: 5,\n validator: (v: any) => !isNaN(parseInt(v, 10)),\n },\n },\n\n computed: {\n classes (): object {\n return {\n 'v-textarea': true,\n 'v-textarea--auto-grow': this.autoGrow,\n 'v-textarea--no-resize': this.noResizeHandle,\n ...VTextField.options.computed.classes.call(this),\n }\n },\n noResizeHandle (): boolean {\n return this.noResize || this.autoGrow\n },\n },\n\n watch: {\n autoGrow (val: boolean) {\n this.$nextTick(() => {\n val\n ? this.calculateInputHeight()\n : this.$refs.input?.style.removeProperty('height')\n })\n },\n lazyValue () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n rowHeight () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n },\n\n mounted () {\n setTimeout(() => {\n this.autoGrow && this.calculateInputHeight()\n }, 0)\n },\n\n methods: {\n calculateInputHeight () {\n const input = this.$refs.input\n if (!input) return\n\n input.style.height = '0'\n const height = input.scrollHeight\n const minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight)\n // This has to be done ASAP, waiting for Vue\n // to update the DOM causes ugly layout jumping\n input.style.height = Math.max(minHeight, height) + 'px'\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.tag = 'textarea'\n delete input.data!.attrs!.type\n input.data!.attrs!.rows = this.rows\n\n return input\n },\n onInput (e: Event) {\n VTextField.options.methods.onInput.call(this, e)\n this.autoGrow && this.calculateInputHeight()\n },\n onKeyDown (e: KeyboardEvent) {\n // Prevents closing of a\n // dialog when pressing\n // enter\n if (this.isFocused && e.keyCode === 13) {\n e.stopPropagation()\n }\n\n this.$emit('keydown', e)\n },\n },\n})\n"],"sourceRoot":""}