{"version":3,"sources":["webpack:///./src/views/subscription/pages/SubscriptionPurchase.vue?59fc","webpack:///../../../src/components/VGrid/VRow.ts","webpack:///../../../src/components/VStepper/VStepperStep.ts","webpack:///../../../src/components/VGrid/VCol.ts","webpack:///../../../src/components/VStepper/VStepper.ts","webpack:///../../../src/components/VStepper/index.ts","webpack:///./src/views/subscription/pages/SubscriptionPurchase.vue?1923","webpack:///./src/views/subscription/pages/SubscriptionPurchase.vue","webpack:///./src/views/subscription/pages/SubscriptionPurchase.vue?f747","webpack:///./src/views/subscription/pages/SubscriptionPurchase.vue?4292","webpack:///../../../src/components/VStepper/VStepperContent.ts"],"names":["breakpoints","ALIGNMENT","makeProps","prefix","def","reduce","props","val","upperFirst","alignValidator","str","includes","alignProps","type","String","default","validator","justifyValidator","justifyProps","alignContentValidator","alignContentProps","propMap","align","Object","keys","justify","alignContent","classMap","breakpointClass","prop","className","breakpoint","replace","toLowerCase","cache","Map","Vue","extend","name","functional","tag","dense","Boolean","noGutters","render","h","data","children","cacheKey","classList","get","forEach","value","push","set","mergeData","staticClass","class","baseMixins","mixins","Colorable","RegistrableInject","directives","ripple","inject","color","complete","completeIcon","editable","editIcon","errorIcon","rules","Array","step","Number","isActive","isInactive","computed","classes","this","hasError","some","validate","mounted","stepper","register","beforeDestroy","unregister","methods","click","e","stopPropagation","$emit","stepClick","genIcon","icon","$createElement","VIcon","genLabel","$slots","genStep","setBackgroundColor","genStepContent","keyboardClick","keyCode","keyCodes","space","toggle","toString","attrs","tabindex","on","keydown","breakpointProps","offsetProps","orderProps","col","offset","order","cols","alignSelf","parent","hasColClasses","startsWith","VSheet","RegistrableProvide","Proxyable","provide","isVertical","vertical","altLabels","nonLinear","flat","isBooted","steps","content","isReverse","internalLazyValue","options","call","styles","watch","internalValue","oldVal","updateView","created","$listeners","input","breaking","item","$options","filter","i","$nextTick","index","length","style","VStepperHeader","createSimpleFunctional","VStepperItems","VStepper","VStepperContent","VStepperStep","_vm","_h","_c","_self","VRow","VCol","VCard","staticStyle","_v","_s","$t","currentProduct","formatPrice","formatAmount","reverseCharge","netOriginal","grossOriginal","_e","netTotal","grossTotal","isYearly","model","callback","$$v","expression","VDivider","pricingOptions","grossAmount","paymentElementRef","checkoutEnabled","vatId","companyName","country","euVat","buyAsCompany","vatValidated","$event","discountPrice","coupon","vatRate","taxExempt","staticRenderFns","SubscriptionPurchase","EUVat","rates","DE","addPrefix","string","myName","$route","query","tier","cycle","$router","products","product","monthlyPrice","yearlyPrice","console","debug","log","standard_rate","retrieved","unitAmountYearly","unitAmountMonthly","paymentSettings","vatIncluded","amount_off","percent_off","price","discount","amount","toFixed","parseFloat","getProducts","__decorate","Getter","Action","Component","components","StripePaymentElementForm","PurchaseOverview","component","isVerticalProvided","from","required","height","computedTransition","reverse","$vuetify","rtl","VTabReverseTransition","VTabTransition","convertToUnit","current","previous","enter","leave","$refs","wrapper","addEventListener","onTransition","removeEventListener","propertyName","scrollHeight","requestAnimationFrame","setTimeout","clientHeight","contentData","wrapperData","ref"],"mappings":"kHAAA,W,wOCOMA,EAAc,CAAC,KAAM,KAAM,KAAM,MAEjCC,EAAY,CAAC,QAAS,MAAO,UAEnC,SAASC,EAAWC,EAAgBC,GAClC,OAAOJ,EAAYK,QAAO,SAACC,EAAOC,GAEhC,OADAD,EAAMH,EAASK,eAAWD,IAAQH,IAC3BE,IACN,IAGL,IAAMG,EAAkB,SAAAC,GAAD,MAAc,UAAIT,EAAJ,CAAe,WAAY,YAAWU,SAASD,IAC9EE,EAAaV,EAAU,SAAS,iBAAO,CAC3CW,KAAMC,OACNC,QAAS,KACTC,UAAWP,MAGPQ,EAAoB,SAAAP,GAAD,MAAc,UAAIT,EAAJ,CAAe,gBAAiB,iBAAgBU,SAASD,IAC1FQ,EAAehB,EAAU,WAAW,iBAAO,CAC/CW,KAAMC,OACNC,QAAS,KACTC,UAAWC,MAGPE,EAAyB,SAAAT,GAAD,MAAc,UAAIT,EAAJ,CAAe,gBAAiB,eAAgB,YAAWU,SAASD,I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AAKpB,OAAS,IAAI,KAEtC9I,OAAM,SAAElC,EAAuBkL,GAC7B5K,KAAKJ,SAAWF,EAAKmC,aAAe7B,KAAKN,KAAKmC,WAC9C7B,KAAKyD,UAAYmH,IAIrB/M,OAAM,SAAEC,GACN,IAAMkO,EAAc,CAClBvN,YAAa,sBAETwN,EAAc,CAClBxN,YAAa,qBACboG,MAAO7E,KAAK6D,OACZqI,IAAK,WAGFlM,KAAKiD,aACR+I,EAAYjN,WAAa,CAAC,CACxBxB,KAAM,OACNc,MAAO2B,KAAKJ,YAIhB,IAAM2L,EAAUzN,EAAE,MAAOmO,EAAa,CAACjM,KAAKoB,OAAOpF,UAC7CwH,EAAU1F,EAAE,MAAOkO,EAAa,CAACT,IAEvC,OAAOzN,EAAEkC,KAAK2K,mBAAoB,CAChC3I,GAAIhC,KAAKmE,YACR,CAACX","file":"assets/js/chunk-66ef67ba.aa8c0a1e.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubscriptionPurchase.vue?vue&type=style&index=0&id=9f57ea50&prod&scoped=true&lang=css&\"","import './VGrid.sass'\n\nimport Vue, { PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst ALIGNMENT = ['start', 'end', 'center']\n\nfunction makeProps (prefix: string, def: () => PropOptions) {\n return breakpoints.reduce((props, val) => {\n props[prefix + upperFirst(val)] = def()\n return props\n }, {} as Dictionary)\n}\n\nconst alignValidator = (str: any) => [...ALIGNMENT, 'baseline', 'stretch'].includes(str)\nconst alignProps = makeProps('align', () => ({\n type: String,\n default: null,\n validator: alignValidator,\n}))\n\nconst justifyValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around'].includes(str)\nconst justifyProps = makeProps('justify', () => ({\n type: String,\n default: null,\n validator: justifyValidator,\n}))\n\nconst alignContentValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around', 'stretch'].includes(str)\nconst alignContentProps = makeProps('alignContent', () => ({\n type: String,\n default: null,\n validator: alignContentValidator,\n}))\n\nconst propMap = {\n align: Object.keys(alignProps),\n justify: Object.keys(justifyProps),\n alignContent: Object.keys(alignContentProps),\n}\n\nconst classMap = {\n align: 'align',\n justify: 'justify',\n alignContent: 'align-content',\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: string) {\n let className = classMap[type]\n if (val == null) {\n return undefined\n }\n if (prop) {\n // alignSm -> Sm\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // .align-items-sm-center\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map()\n\nexport default Vue.extend({\n name: 'v-row',\n functional: true,\n props: {\n tag: {\n type: String,\n default: 'div',\n },\n dense: Boolean,\n noGutters: Boolean,\n align: {\n type: String,\n default: null,\n validator: alignValidator,\n },\n ...alignProps,\n justify: {\n type: String,\n default: null,\n validator: justifyValidator,\n },\n ...justifyProps,\n alignContent: {\n type: String,\n default: null,\n validator: alignContentValidator,\n },\n ...alignContentProps,\n },\n render (h, { props, data, children }) {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `align`, `justify`, `alignContent` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n classList.push({\n 'no-gutters': props.noGutters,\n 'row--dense': props.dense,\n [`align-${props.align}`]: props.align,\n [`justify-${props.justify}`]: props.justify,\n [`align-content-${props.alignContent}`]: props.alignContent,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'row',\n class: classList,\n }),\n children\n )\n },\n})\n","// Components\nimport VIcon from '../VIcon'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport { inject as RegistrableInject } from '../../mixins/registrable'\n\n// Directives\nimport ripple from '../../directives/ripple'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { keyCodes } from '../../util/helpers'\n\n// Types\nimport { VNode } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\ntype VuetifyStepperRuleValidator = () => string | boolean\n\nconst baseMixins = mixins(\n Colorable,\n RegistrableInject('stepper', 'v-stepper-step', 'v-stepper')\n)\n\ninterface options extends InstanceType {\n stepClick: (step: number | string) => void\n}\n/* @vue/component */\nexport default baseMixins.extend().extend({\n name: 'v-stepper-step',\n\n directives: { ripple },\n\n inject: ['stepClick'],\n\n props: {\n color: {\n type: String,\n default: 'primary',\n },\n complete: Boolean,\n completeIcon: {\n type: String,\n default: '$complete',\n },\n editable: Boolean,\n editIcon: {\n type: String,\n default: '$edit',\n },\n errorIcon: {\n type: String,\n default: '$error',\n },\n rules: {\n type: Array,\n default: () => [],\n } as PropValidator,\n step: [Number, String],\n },\n\n data () {\n return {\n isActive: false,\n isInactive: true,\n }\n },\n\n computed: {\n classes (): object {\n return {\n 'v-stepper__step--active': this.isActive,\n 'v-stepper__step--editable': this.editable,\n 'v-stepper__step--inactive': this.isInactive,\n 'v-stepper__step--error error--text': this.hasError,\n 'v-stepper__step--complete': this.complete,\n }\n },\n hasError (): boolean {\n return this.rules.some(validate => validate() !== true)\n },\n },\n\n mounted () {\n this.stepper && this.stepper.register(this)\n },\n\n beforeDestroy () {\n this.stepper && this.stepper.unregister(this)\n },\n\n methods: {\n click (e: MouseEvent | KeyboardEvent) {\n e.stopPropagation()\n\n this.$emit('click', e)\n\n if (this.editable) {\n this.stepClick(this.step)\n }\n },\n genIcon (icon: string) {\n return this.$createElement(VIcon, icon)\n },\n genLabel () {\n return this.$createElement('div', {\n staticClass: 'v-stepper__label',\n }, this.$slots.default)\n },\n genStep () {\n const color = (!this.hasError && (this.complete || this.isActive)) ? this.color : false\n\n return this.$createElement('span', this.setBackgroundColor(color, {\n staticClass: 'v-stepper__step__step',\n }), this.genStepContent())\n },\n genStepContent () {\n const children = []\n\n if (this.hasError) {\n children.push(this.genIcon(this.errorIcon))\n } else if (this.complete) {\n if (this.editable) {\n children.push(this.genIcon(this.editIcon))\n } else {\n children.push(this.genIcon(this.completeIcon))\n }\n } else {\n children.push(String(this.step))\n }\n\n return children\n },\n keyboardClick (e: KeyboardEvent) {\n if (e.keyCode === keyCodes.space) {\n this.click(e)\n }\n },\n toggle (step: number | string) {\n this.isActive = step.toString() === this.step.toString()\n this.isInactive = Number(step) < Number(this.step)\n },\n },\n\n render (h): VNode {\n return h('div', {\n attrs: {\n tabindex: this.editable ? 0 : -1,\n },\n staticClass: 'v-stepper__step',\n class: this.classes,\n directives: [{\n name: 'ripple',\n value: this.editable,\n }],\n on: {\n click: this.click,\n keydown: this.keyboardClick,\n },\n }, [\n this.genStep(),\n this.genLabel(),\n ])\n },\n})\n","import './VGrid.sass'\n\nimport Vue, { VNode, PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst breakpointProps = (() => {\n return breakpoints.reduce((props, val) => {\n props[val] = {\n type: [Boolean, String, Number],\n default: false,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst offsetProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['offset' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst orderProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['order' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst propMap = {\n col: Object.keys(breakpointProps),\n offset: Object.keys(offsetProps),\n order: Object.keys(orderProps),\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: boolean | string | number) {\n let className = type\n if (val == null || val === false) {\n return undefined\n }\n if (prop) {\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // Handling the boolean style prop when accepting [Boolean, String, Number]\n // means Vue will not convert to sm: true for us.\n // Since the default is false, an empty string indicates the prop's presence.\n if (type === 'col' && (val === '' || val === true)) {\n // .col-md\n return className.toLowerCase()\n }\n // .order-md-6\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map()\n\nexport default Vue.extend({\n name: 'v-col',\n functional: true,\n props: {\n cols: {\n type: [Boolean, String, Number],\n default: false,\n },\n ...breakpointProps,\n offset: {\n type: [String, Number],\n default: null,\n },\n ...offsetProps,\n order: {\n type: [String, Number],\n default: null,\n },\n ...orderProps,\n alignSelf: {\n type: String,\n default: null,\n validator: (str: any) => ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str),\n },\n tag: {\n type: String,\n default: 'div',\n },\n },\n render (h, { props, data, children, parent }): VNode {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `col`, `offset`, `order` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string | number | boolean = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n const hasColClasses = classList.some(className => className.startsWith('col-'))\n\n classList.push({\n // Default to .col if no other col-{bp}-* classes generated nor `cols` specified.\n col: !hasColClasses || !props.cols,\n [`col-${props.cols}`]: props.cols,\n [`offset-${props.offset}`]: props.offset,\n [`order-${props.order}`]: props.order,\n [`align-self-${props.alignSelf}`]: props.alignSelf,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(props.tag, mergeData(data, { class: classList }), children)\n },\n})\n","// Styles\nimport './VStepper.sass'\n\n// Extensions\nimport VSheet from '../VSheet'\n\n// Components\nimport VStepperStep from './VStepperStep'\nimport VStepperContent from './VStepperContent'\n\n// Mixins\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\nimport Proxyable from '../../mixins/proxyable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { breaking } from '../../util/console'\n\n// Types\nimport { VNode } from 'vue'\n\nconst baseMixins = mixins(\n VSheet,\n RegistrableProvide('stepper'),\n Proxyable,\n)\n\ntype VStepperStepInstance = InstanceType\ntype VStepperContentInstance = InstanceType\n\n/* @vue/component */\nexport default baseMixins.extend({\n name: 'v-stepper',\n\n provide (): object {\n return {\n stepClick: this.stepClick,\n isVertical: this.vertical,\n }\n },\n\n props: {\n altLabels: Boolean,\n nonLinear: Boolean,\n flat: Boolean,\n vertical: Boolean,\n },\n\n data () {\n const data: Dictionary = {\n isBooted: false,\n steps: [] as VStepperStepInstance[],\n content: [] as VStepperContentInstance[],\n isReverse: false,\n }\n\n data.internalLazyValue = this.value != null\n ? this.value\n : (data[0] || {}).step || 1\n\n return data\n },\n\n computed: {\n classes (): object {\n return {\n 'v-stepper--flat': this.flat,\n 'v-stepper--is-booted': this.isBooted,\n 'v-stepper--vertical': this.vertical,\n 'v-stepper--alt-labels': this.altLabels,\n 'v-stepper--non-linear': this.nonLinear,\n ...VSheet.options.computed.classes.call(this),\n }\n },\n styles (): object {\n return {\n ...VSheet.options.computed.styles.call(this),\n }\n },\n },\n\n watch: {\n internalValue (val, oldVal) {\n this.isReverse = Number(val) < Number(oldVal)\n\n oldVal && (this.isBooted = true)\n\n this.updateView()\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$listeners.input) {\n breaking('@input', '@change', this)\n }\n },\n\n mounted () {\n this.updateView()\n },\n\n methods: {\n register (item: VStepperStepInstance | VStepperContentInstance) {\n if (item.$options.name === 'v-stepper-step') {\n this.steps.push(item as VStepperStepInstance)\n } else if (item.$options.name === 'v-stepper-content') {\n (item as VStepperContentInstance).isVertical = this.vertical\n this.content.push(item as VStepperContentInstance)\n }\n },\n unregister (item: VStepperStepInstance | VStepperContentInstance) {\n if (item.$options.name === 'v-stepper-step') {\n this.steps = this.steps.filter((i: VStepperStepInstance) => i !== item)\n } else if (item.$options.name === 'v-stepper-content') {\n (item as VStepperContentInstance).isVertical = this.vertical\n this.content = this.content.filter((i: VStepperContentInstance) => i !== item)\n }\n },\n stepClick (step: string | number) {\n this.$nextTick(() => (this.internalValue = step))\n },\n updateView () {\n for (let index = this.steps.length; --index >= 0;) {\n this.steps[index].toggle(this.internalValue as any)\n }\n for (let index = this.content.length; --index >= 0;) {\n this.content[index].toggle(this.internalValue as any, this.isReverse)\n }\n },\n },\n\n render (h): VNode {\n return h(this.tag, {\n staticClass: 'v-stepper',\n class: this.classes,\n style: this.styles,\n }, this.$slots.default)\n },\n})\n","import { createSimpleFunctional } from '../../util/helpers'\nimport VStepper from './VStepper'\nimport VStepperStep from './VStepperStep'\nimport VStepperContent from './VStepperContent'\n\nconst VStepperHeader = createSimpleFunctional('v-stepper__header')\nconst VStepperItems = createSimpleFunctional('v-stepper__items')\n\nexport {\n VStepper,\n VStepperContent,\n VStepperStep,\n VStepperHeader,\n VStepperItems,\n}\n\nexport default {\n $_vuetify_subcomponents: {\n VStepper,\n VStepperContent,\n VStepperStep,\n VStepperHeader,\n VStepperItems,\n },\n}\n","import { VCard } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VStepper } from 'vuetify/lib/components/VStepper';\nimport { VStepperContent } from 'vuetify/lib/components/VStepper';\nimport { VStepperHeader } from 'vuetify/lib/components/VStepper';\nimport { VStepperItems } from 'vuetify/lib/components/VStepper';\nimport { VStepperStep } from 'vuetify/lib/components/VStepper';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(VRow,[_c(VCol,{attrs:{\"cols\":\"12\",\"lg\":\"5\",\"md\":\"12\"}},[(_vm.currentProduct)?_c(VCard,{staticClass:\"h-full w-full text-center pa-4\",staticStyle:{\"min-height\":\"400px\"},attrs:{\"elevation\":\"0\",\"color\":\"transparent\"}},[_c('div',{staticClass:\"my-2 d-inline-block text-h4\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"subscription.paymentTo\"))+\" \")]),_c('img',{staticClass:\"title font-weight-bold app-title flex-grow-1\",staticStyle:{\"margin-bottom\":\"-10px\"},attrs:{\"alt\":\"Prezp Logo\",\"width\":\"150\",\"src\":require(\"@/assets/prezp_logo.png\")}}),_c('div',{staticClass:\"mt-10 caption\"},[_vm._v(_vm._s(_vm.$t(\"subscription.selectedPlan\"))+\":\")]),_c('div',{staticClass:\"mt-4 primary--text primary-fix\",staticStyle:{\"font-size\":\"34px\"}},[_vm._v(\" \"+_vm._s(_vm.currentProduct.name)+\" \")]),_c('div',{staticClass:\"mb-2\"},[_vm._v(_vm._s(_vm.$t(\"subscription.subFor\"))+\": \"+_vm._s(_vm.name))]),_c('div',{staticClass:\"mt-6\"},[(_vm.discountPrice)?_c('div',{staticClass:\"mb-4\",staticStyle:{\"opacity\":\"0.8\"}},[_c('span',{staticClass:\"font-weight-light red--text\",staticStyle:{\"font-size\":\"28px\"}},[_vm._v(\" \"+_vm._s(_vm.formatPrice( _vm.formatAmount(_vm.reverseCharge ? _vm.netOriginal : _vm.grossOriginal) ))+\" \")]),_c('div',{staticClass:\"block\",staticStyle:{\"width\":\"136px\",\"height\":\"12px\",\"border\":\"solid 3px\",\"border-color\":\"#f44336 transparent transparent transparent\",\"border-radius\":\"100%/15px 20px 0 0\",\"margin\":\"-22px auto auto\",\"rotate\":\"-8deg\"}})]):_vm._e(),_c('span',{staticClass:\"font-weight-bold\",staticStyle:{\"font-size\":\"34px\"}},[_vm._v(\" \"+_vm._s(_vm.reverseCharge ? _vm.formatPrice(_vm.formatAmount(_vm.netTotal)) : _vm.formatPrice(_vm.formatAmount(_vm.grossTotal)))+\" \")]),_c('span',{staticClass:\"text-body-1 font-weight-medium\"},[_vm._v(\" / \"+_vm._s(!_vm.isYearly ? _vm.$t(\"subscription.month\") : _vm.$t(\"subscription.year\"))+\" \")])]),_c('div',[_vm._v(\" \"+_vm._s(!_vm.isYearly ? _vm.$t(\"tier.billedMonthly\") : _vm.$t(\"tier.billedYearly\"))+\" \")])]):_vm._e()],1),_c(VCol,{attrs:{\"cols\":\"12\",\"lg\":\"6\",\"md\":\"12\"}},[_c(VStepper,{staticStyle:{\"min-height\":\"460px\"},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},[_c(VStepperHeader,[_c(VStepperStep,{attrs:{\"step\":1,\"editable\":\"\"}},[_vm._v(_vm._s(_vm.$t(\"subscription.billing\")))]),_c(VDivider),_c(VStepperStep,{attrs:{\"step\":2,\"editable\":\"\"}},[_vm._v(_vm._s(_vm.$t(\"subscription.checkout\")))])],1),_c(VStepperItems,[_c(VStepperContent,{staticClass:\"overflow-fix\",attrs:{\"step\":1}},[_c('StripePaymentElementForm',{attrs:{\"pricing-options\":_vm.pricingOptions,\"gross-amount\":_vm.grossAmount,\"step-prop\":_vm.step,\"payment-element-ref-prop\":_vm.paymentElementRef,\"checkout-enabled-prop\":_vm.checkoutEnabled,\"vat-id-prop\":_vm.vatId,\"company-name-prop\":_vm.companyName,\"country-prop\":_vm.country,\"eu-vat-prop\":_vm.euVat,\"buy-as-company-prop\":_vm.buyAsCompany,\"vat-validated-prop\":_vm.vatValidated},on:{\"update:stepProp\":function($event){_vm.step=$event},\"update:step-prop\":function($event){_vm.step=$event},\"update:paymentElementRefProp\":function($event){_vm.paymentElementRef=$event},\"update:payment-element-ref-prop\":function($event){_vm.paymentElementRef=$event},\"update:checkoutEnabledProp\":function($event){_vm.checkoutEnabled=$event},\"update:checkout-enabled-prop\":function($event){_vm.checkoutEnabled=$event},\"update:vatIdProp\":function($event){_vm.vatId=$event},\"update:vat-id-prop\":function($event){_vm.vatId=$event},\"update:companyNameProp\":function($event){_vm.companyName=$event},\"update:company-name-prop\":function($event){_vm.companyName=$event},\"update:countryProp\":function($event){_vm.country=$event},\"update:country-prop\":function($event){_vm.country=$event},\"update:euVatProp\":function($event){_vm.euVat=$event},\"update:eu-vat-prop\":function($event){_vm.euVat=$event},\"update:buyAsCompanyProp\":function($event){_vm.buyAsCompany=$event},\"update:buy-as-company-prop\":function($event){_vm.buyAsCompany=$event},\"update:vatValidatedProp\":function($event){_vm.vatValidated=$event},\"update:vat-validated-prop\":function($event){_vm.vatValidated=$event}}})],1),_c(VStepperContent,{attrs:{\"step\":2}},[_c('PurchaseOverview',{attrs:{\"pricing-options\":_vm.pricingOptions,\"gross-amount\":_vm.grossAmount,\"net-total\":_vm.netTotal,\"gross-total\":_vm.grossTotal,\"discount-price\":_vm.discountPrice,\"step-prop\":_vm.step,\"payment-element-ref-prop\":_vm.paymentElementRef,\"coupon-prop\":_vm.coupon,\"checkout-enabled-prop\":_vm.checkoutEnabled,\"vat-id-prop\":_vm.vatId,\"company-name-prop\":_vm.companyName,\"country-prop\":_vm.country,\"eu-vat-prop\":_vm.euVat,\"buy-as-company-prop\":_vm.buyAsCompany,\"vat-validated-prop\":_vm.vatValidated,\"vat-rate-prop\":_vm.vatRate,\"tax-exempt-prop\":_vm.taxExempt,\"reverse-charge-prop\":_vm.reverseCharge},on:{\"update:stepProp\":function($event){_vm.step=$event},\"update:step-prop\":function($event){_vm.step=$event},\"update:paymentElementRefProp\":function($event){_vm.paymentElementRef=$event},\"update:payment-element-ref-prop\":function($event){_vm.paymentElementRef=$event},\"update:couponProp\":function($event){_vm.coupon=$event},\"update:coupon-prop\":function($event){_vm.coupon=$event},\"update:checkoutEnabledProp\":function($event){_vm.checkoutEnabled=$event},\"update:checkout-enabled-prop\":function($event){_vm.checkoutEnabled=$event},\"update:vatIdProp\":function($event){_vm.vatId=$event},\"update:vat-id-prop\":function($event){_vm.vatId=$event},\"update:companyNameProp\":function($event){_vm.companyName=$event},\"update:company-name-prop\":function($event){_vm.companyName=$event},\"update:countryProp\":function($event){_vm.country=$event},\"update:country-prop\":function($event){_vm.country=$event},\"update:euVatProp\":function($event){_vm.euVat=$event},\"update:eu-vat-prop\":function($event){_vm.euVat=$event},\"update:buyAsCompanyProp\":function($event){_vm.buyAsCompany=$event},\"update:buy-as-company-prop\":function($event){_vm.buyAsCompany=$event},\"update:vatValidatedProp\":function($event){_vm.vatValidated=$event},\"update:vat-validated-prop\":function($event){_vm.vatValidated=$event},\"update:reverseChargeProp\":function($event){_vm.reverseCharge=$event},\"update:reverse-charge-prop\":function($event){_vm.reverseCharge=$event}}})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\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\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\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\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component } from \"vue-property-decorator\";\r\n\r\nimport StripePaymentElementForm from \"../components/StripePaymentElementForm.vue\";\r\nimport PurchaseOverview from \"../components/PurchaseOverview.vue\";\r\nimport { Product } from \"@/core/models\";\r\nimport { EUVat, EUVatRate } from \"@/core/plugins/eu-vat-rates\";\r\nimport { paymentSettings } from \"@/settings\";\r\n\r\n@Component({\r\n components: {\r\n StripePaymentElementForm,\r\n PurchaseOverview,\r\n },\r\n})\r\nexport default class SubscriptionPurchase extends Vue {\r\n @Getter(\"products/retrieved\") retrieved!: boolean;\r\n @Getter(\"products/products\") products!: Product[];\r\n @Getter(\"profile/getUserName\") myName!: string;\r\n @Getter(\"profile/customerId\") customerId!: string;\r\n @Action(\"products/get\") getProducts!: Function;\r\n\r\n step = 1;\r\n paymentElementRef: HTMLFormElement | null = null;\r\n coupon: any | null = null;\r\n vatId = \"\";\r\n companyName = \"\";\r\n country = \"DE\";\r\n euVat: EUVatRate = EUVat.rates.DE;\r\n buyAsCompany = false;\r\n vatValidated = false;\r\n reverseCharge = false;\r\n checkoutEnabled = false;\r\n\r\n get name() {\r\n return this.myName;\r\n }\r\n\r\n get pricingOptions() {\r\n const { tier, cycle } = this.$route.query;\r\n if (!tier || !cycle) this.$router.push(\"/subscription/pricing\");\r\n return {\r\n tier: this.addPrefix(tier as string, \"price_\"),\r\n cycle: cycle as string,\r\n };\r\n }\r\n\r\n get isYearly(): boolean {\r\n return this.pricingOptions.cycle === \"year\";\r\n }\r\n\r\n get currentProduct() {\r\n // Get product by price id (tier)\r\n return this.products.filter(product => {\r\n return (\r\n product.monthlyPrice === this.pricingOptions.tier ||\r\n product.yearlyPrice === this.pricingOptions.tier\r\n );\r\n })[0];\r\n }\r\n\r\n get vatRate() {\r\n console.debug(this.buyAsCompany, this.euVat, this.vatValidated);\r\n if (this.buyAsCompany && this.euVat && this.vatValidated) {\r\n if (this.euVat.country === \"Germany\") {\r\n console.log(\"No Reverse Charge in DE\");\r\n this.reverseCharge = false;\r\n return this.euVat.standard_rate as number;\r\n }\r\n if (!this.euVat.country) {\r\n console.log(\"No Reverse Charge (outside EU) in\", this.country);\r\n this.reverseCharge = false;\r\n return 0;\r\n }\r\n console.log(\"Apply Reverse Charge in\", this.country);\r\n this.reverseCharge = true;\r\n return this.euVat.standard_rate as number;\r\n }\r\n console.log(\"No valid Company - Apply default tax in\", this.country);\r\n this.reverseCharge = false;\r\n return (this.euVat.standard_rate as number) || 0;\r\n }\r\n\r\n // TODO: Replace reverseCharge checks with taxExempt === \"reverse\"\r\n get taxExempt() {\r\n if (this.buyAsCompany && this.euVat && this.vatValidated) {\r\n if (this.euVat.country === \"Germany\")\r\n //console.log(\"No Reverse Charge in DE\");\r\n return \"none\";\r\n\r\n if (!this.euVat.country)\r\n //console.log(\"No Reverse Charge (outside EU) in\", this.country);\r\n return \"exempt\";\r\n\r\n //console.log(\"Apply Reverse Charge in\", this.country);\r\n return \"reverse\";\r\n }\r\n if (this.euVat.country)\r\n //console.log(\"Normal Vat in\", this.country);\r\n return \"none\";\r\n\r\n //console.log(\"No Vat (outside EU) in\", this.country);\r\n return \"exempt\";\r\n }\r\n\r\n get grossAmount() {\r\n if (this.retrieved)\r\n return !this.isYearly\r\n ? this.currentProduct.unitAmountMonthly\r\n : this.currentProduct.unitAmountYearly;\r\n else return 0;\r\n }\r\n\r\n get netOriginal() {\r\n if (paymentSettings.vatIncluded)\r\n return this.grossAmount / (1 + this.vatRate / 100);\r\n\r\n return this.grossAmount;\r\n }\r\n\r\n get grossOriginal() {\r\n if (paymentSettings.vatIncluded) return this.grossAmount;\r\n\r\n return this.grossAmount + (this.grossAmount / 100) * this.vatRate;\r\n }\r\n\r\n get netTotal() {\r\n if (paymentSettings.vatIncluded)\r\n return this.discountPrice\r\n ? this.discountPrice / (1 + this.vatRate / 100)\r\n : this.grossAmount / (1 + this.vatRate / 100);\r\n\r\n return this.discountPrice ? this.discountPrice : this.grossAmount;\r\n }\r\n\r\n get grossTotal() {\r\n if (paymentSettings.vatIncluded)\r\n return this.discountPrice ? this.discountPrice : this.grossAmount;\r\n\r\n return this.discountPrice\r\n ? this.discountPrice + (this.discountPrice / 100) * this.vatRate\r\n : this.grossAmount + (this.grossAmount / 100) * this.vatRate;\r\n }\r\n\r\n get discountPrice(): number {\r\n if (!this.coupon) return 0;\r\n\r\n const { amount_off, percent_off } = this.coupon;\r\n const price = this.grossAmount;\r\n const discount = amount_off ? amount_off : price * (percent_off / 100);\r\n return price - discount;\r\n }\r\n\r\n formatPrice(amount: number) {\r\n return `€${amount.toFixed(2)}`;\r\n }\r\n\r\n formatAmount(amount: number) {\r\n // Use on all calculations with currency amounts per value to prevent 3rd decimal (.xx5) rounding issues of percent/tax calculations\r\n return parseFloat((amount / 100).toFixed(2));\r\n }\r\n\r\n addPrefix = (string: string, prefix: string) => {\r\n return prefix + string;\r\n };\r\n\r\n /*\r\n isDecimal(amount: number) {\r\n // Calculate the difference between n and its floor value, and check if it is not equal to zero.\r\n return amount - Math.floor(amount) !== 0;\r\n }\r\n */\r\n\r\n created() {\r\n if (!this.retrieved) this.getProducts();\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubscriptionPurchase.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubscriptionPurchase.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SubscriptionPurchase.vue?vue&type=template&id=9f57ea50&scoped=true&\"\nimport script from \"./SubscriptionPurchase.vue?vue&type=script&lang=ts&\"\nexport * from \"./SubscriptionPurchase.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SubscriptionPurchase.vue?vue&type=style&index=0&id=9f57ea50&prod&scoped=true&lang=css&\"\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 \"9f57ea50\",\n null\n \n)\n\nexport default component.exports","// Components\nimport {\n VTabTransition,\n VTabReverseTransition,\n} from '../transitions'\n\n// Mixins\nimport { inject as RegistrableInject } from '../../mixins/registrable'\n\n// Helpers\nimport { convertToUnit } from '../../util/helpers'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n// Types\nimport { VNode, FunctionalComponentOptions, VNodeData } from 'vue'\n\nconst baseMixins = mixins(\n RegistrableInject('stepper', 'v-stepper-content', 'v-stepper')\n)\n\ninterface options extends InstanceType {\n $refs: {\n wrapper: HTMLElement\n }\n isVerticalProvided: boolean\n}\n\n/* @vue/component */\nexport default baseMixins.extend().extend({\n name: 'v-stepper-content',\n\n inject: {\n isVerticalProvided: {\n from: 'isVertical',\n },\n },\n\n props: {\n step: {\n type: [Number, String],\n required: true,\n },\n },\n\n data () {\n return {\n height: 0 as number | string,\n // Must be null to allow\n // previous comparison\n isActive: null as boolean | null,\n isReverse: false,\n isVertical: this.isVerticalProvided,\n }\n },\n\n computed: {\n computedTransition (): FunctionalComponentOptions {\n // Fix for #8978\n const reverse = this.$vuetify.rtl ? !this.isReverse : this.isReverse\n\n return reverse\n ? VTabReverseTransition\n : VTabTransition\n },\n styles (): object {\n if (!this.isVertical) return {}\n\n return {\n height: convertToUnit(this.height),\n }\n },\n },\n\n watch: {\n isActive (current, previous) {\n // If active and the previous state\n // was null, is just booting up\n if (current && previous == null) {\n this.height = 'auto'\n return\n }\n\n if (!this.isVertical) return\n\n if (this.isActive) this.enter()\n else this.leave()\n },\n },\n\n mounted () {\n this.$refs.wrapper.addEventListener(\n 'transitionend',\n this.onTransition,\n false\n )\n this.stepper && this.stepper.register(this)\n },\n\n beforeDestroy () {\n this.$refs.wrapper.removeEventListener(\n 'transitionend',\n this.onTransition,\n false\n )\n this.stepper && this.stepper.unregister(this)\n },\n\n methods: {\n onTransition (e: TransitionEvent) {\n if (!this.isActive ||\n e.propertyName !== 'height'\n ) return\n\n this.height = 'auto'\n },\n enter () {\n let scrollHeight = 0\n\n // Render bug with height\n requestAnimationFrame(() => {\n scrollHeight = this.$refs.wrapper.scrollHeight\n })\n\n this.height = 0\n\n // Give the collapsing element time to collapse\n setTimeout(() => this.isActive && (this.height = (scrollHeight || 'auto')), 450)\n },\n leave () {\n this.height = this.$refs.wrapper.clientHeight\n setTimeout(() => (this.height = 0), 10)\n },\n toggle (step: string | number, reverse: boolean) {\n this.isActive = step.toString() === this.step.toString()\n this.isReverse = reverse\n },\n },\n\n render (h): VNode {\n const contentData = {\n staticClass: 'v-stepper__content',\n } as VNodeData\n const wrapperData = {\n staticClass: 'v-stepper__wrapper',\n style: this.styles,\n ref: 'wrapper',\n }\n\n if (!this.isVertical) {\n contentData.directives = [{\n name: 'show',\n value: this.isActive,\n }]\n }\n\n const wrapper = h('div', wrapperData, [this.$slots.default])\n const content = h('div', contentData, [wrapper])\n\n return h(this.computedTransition, {\n on: this.$listeners,\n }, [content])\n },\n})\n"],"sourceRoot":""}