{"version":3,"sources":["webpack:///../../../src/components/VAlert/VAlert.ts","webpack:///./src/views/settings/components/ActiveSubscription.vue?e779","webpack:///./src/views/settings/components/ActiveSubscription.vue","webpack:///./src/views/settings/components/ActiveSubscription.vue?173d","webpack:///./src/views/settings/components/ActiveSubscription.vue?db78","webpack:///./src/views/settings/components/ActiveSubscription.vue?dded","webpack:///./src/core/plugins/eu-vat-rates/index.ts"],"names":["mixins","VSheet","Toggleable","Transitionable","extend","name","props","border","type","String","validator","val","includes","closeLabel","default","coloredBorder","Boolean","dense","dismissible","closeIcon","icon","outlined","prominent","text","value","computed","__cachedBorder","this","data","staticClass","class","setBackgroundColor","computedColor","$createElement","__cachedDismissible","color","iconColor","VBtn","small","attrs","$vuetify","lang","t","on","click","isActive","VIcon","__cachedIcon","computedIcon","classes","options","call","hasColoredIcon","hasText","undefined","isDark","Themeable","created","$attrs","hasOwnProperty","breaking","methods","genWrapper","children","$slots","prepend","genContent","append","$scopedSlots","close","toggle","genAlert","role","listeners$","style","styles","directives","setColor","setTextColor","render","h","transition","origin","mode","_vm","_h","_c","_self","_v","_s","$t","VListItem","VList","staticStyle","VBadge","canceledSubscription","subscriptionDetails","status","Date","currentPeriodEnd","toLocaleDateString","LocalStorage","getLocale","productName","formatPrice","formatAmount","grossOriginal","planInterval","cancelAtPeriodEnd","paymentMethod","brand","latestInvoice","status_transitions","paid_at","total","_e","$event","cancelSubscriptionDialog","deleteSubscriptionDialog","VDialog","model","callback","$$v","expression","VCard","VSpacer","cancelSubscription","subscriptionId","then","deleteSubscription","staticRenderFns","ActiveSubscription","country","euVat","EUVat","rates","DE","buyAsCompany","vatValidated","reverseCharge","addPrefix","string","prefix","products","filter","product","monthlyPrice","priceId","yearlyPrice","console","debug","log","standard_rate","retrieved","isYearly","currentProduct","unitAmountYearly","unitAmountMonthly","paymentSettings","vatIncluded","grossAmount","vatRate","amount","toFixed","parseFloat","now","cancelAt","card","toLocaleUpperCase","getProducts","Vue","__decorate","Getter","Action","Component","component","source","last_updated","disclaimer","AT","vat_name","vat_abbr","reduced_rate","reduced_rate_alt","super_reduced_rate","parking_rate","validation_rule","BE","BG","CY","CZ","DK","EE","GR","ES","FI","FR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],"mappings":"4UAwBeA,iBACbC,OACAC,OACAC,QACAC,OAAO,CACPC,KAAM,UAENC,MAAO,CACLC,OAAQ,CACNC,KAAMC,OACNC,UAAS,SAAEC,GACT,MAAO,CACL,MACA,QACA,SACA,QACAC,SAASD,KAGfE,WAAY,CACVL,KAAMC,OACNK,QAAS,kBAEXC,cAAeC,QACfC,MAAOD,QACPE,YAAaF,QACbG,UAAW,CACTX,KAAMC,OACNK,QAAS,WAEXM,KAAM,CACJN,QAAS,GACTN,KAAM,CAACQ,QAASP,QAChBC,UAAS,SAAEC,GACT,MAAsB,kBAARA,IAA4B,IAARA,IAGtCU,SAAUL,QACVM,UAAWN,QACXO,KAAMP,QACNR,KAAM,CACJA,KAAMC,OACNC,UAAS,SAAEC,GACT,MAAO,CACL,OACA,QACA,UACA,WACAC,SAASD,KAGfa,MAAO,CACLhB,KAAMQ,QACNF,SAAS,IAIbW,SAAU,CACRC,eAAc,WACZ,IAAKC,KAAKpB,OAAQ,OAAO,KAEzB,IAAIqB,EAAkB,CACpBC,YAAa,kBACbC,MAAO,6CACgBH,KAAKpB,SAAW,IASzC,OALIoB,KAAKZ,gBACPa,EAAOD,KAAKI,mBAAmBJ,KAAKK,cAAeJ,GACnDA,EAAKE,MAAM,+BAAgC,GAGtCH,KAAKM,eAAe,MAAOL,IAEpCM,oBAAmB,sBACjB,IAAKP,KAAKT,YAAa,OAAO,KAE9B,IAAMiB,EAAQR,KAAKS,UAEnB,OAAOT,KAAKM,eAAeI,OAAM,CAC/BR,YAAa,uBACbvB,MAAO,CACL6B,QACAf,MAAM,EACNkB,OAAO,GAETC,MAAO,CACL,aAAcZ,KAAKa,SAASC,KAAKC,EAAEf,KAAKd,aAE1C8B,GA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AI,CACF9E,QAAS,WACTgD,SAAU,4BACVC,SAAU,MACV7B,cAAe,GACf8B,aAAc,EACdC,iBAAkB,IAClBC,oBAAoB,EACpBC,cAAc,EACdC,gBAAiB,mBAEnByB,GAAI,CACF/E,QAAS,WACTgD,SAAU,yBACVC,SAAU,MACV7B,cAAe,GACf8B,aAAc,GACdC,kBAAkB,EAClBC,oBAAoB,EACpBC,cAAc,EACdC,gBAAiB","file":"assets/js/chunk-3defcf1a.4f744fa5.js","sourcesContent":["// Styles\nimport './VAlert.sass'\n\n// Extensions\nimport VSheet from '../VSheet'\n\n// Components\nimport VBtn from '../VBtn'\nimport VIcon from '../VIcon'\n\n// Mixins\nimport Toggleable from '../../mixins/toggleable'\nimport Themeable from '../../mixins/themeable'\nimport Transitionable from '../../mixins/transitionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { breaking } from '../../util/console'\n\n// Types\nimport { VNodeData } from 'vue'\nimport { VNode } from 'vue/types'\n\n/* @vue/component */\nexport default mixins(\n VSheet,\n Toggleable,\n Transitionable\n).extend({\n name: 'v-alert',\n\n props: {\n border: {\n type: String,\n validator (val: string) {\n return [\n 'top',\n 'right',\n 'bottom',\n 'left',\n ].includes(val)\n },\n },\n closeLabel: {\n type: String,\n default: '$vuetify.close',\n },\n coloredBorder: Boolean,\n dense: Boolean,\n dismissible: Boolean,\n closeIcon: {\n type: String,\n default: '$cancel',\n },\n icon: {\n default: '',\n type: [Boolean, String],\n validator (val: boolean | string) {\n return typeof val === 'string' || val === false\n },\n },\n outlined: Boolean,\n prominent: Boolean,\n text: Boolean,\n type: {\n type: String,\n validator (val: string) {\n return [\n 'info',\n 'error',\n 'success',\n 'warning',\n ].includes(val)\n },\n },\n value: {\n type: Boolean,\n default: true,\n },\n },\n\n computed: {\n __cachedBorder (): VNode | null {\n if (!this.border) return null\n\n let data: VNodeData = {\n staticClass: 'v-alert__border',\n class: {\n [`v-alert__border--${this.border}`]: true,\n },\n }\n\n if (this.coloredBorder) {\n data = this.setBackgroundColor(this.computedColor, data)\n data.class['v-alert__border--has-color'] = true\n }\n\n return this.$createElement('div', data)\n },\n __cachedDismissible (): VNode | null {\n if (!this.dismissible) return null\n\n const color = this.iconColor\n\n return this.$createElement(VBtn, {\n staticClass: 'v-alert__dismissible',\n props: {\n color,\n icon: true,\n small: true,\n },\n attrs: {\n 'aria-label': this.$vuetify.lang.t(this.closeLabel),\n },\n on: {\n click: () => (this.isActive = false),\n },\n }, [\n this.$createElement(VIcon, {\n props: { color },\n }, this.closeIcon),\n ])\n },\n __cachedIcon (): VNode | null {\n if (!this.computedIcon) return null\n\n return this.$createElement(VIcon, {\n staticClass: 'v-alert__icon',\n props: { color: this.iconColor },\n }, this.computedIcon)\n },\n classes (): object {\n const classes: Record = {\n ...VSheet.options.computed.classes.call(this),\n 'v-alert--border': Boolean(this.border),\n 'v-alert--dense': this.dense,\n 'v-alert--outlined': this.outlined,\n 'v-alert--prominent': this.prominent,\n 'v-alert--text': this.text,\n }\n\n if (this.border) {\n classes[`v-alert--border-${this.border}`] = true\n }\n\n return classes\n },\n computedColor (): string {\n return this.color || this.type\n },\n computedIcon (): string | boolean {\n if (this.icon === false) return false\n if (typeof this.icon === 'string' && this.icon) return this.icon\n if (!['error', 'info', 'success', 'warning'].includes(this.type)) return false\n\n return `$${this.type}`\n },\n hasColoredIcon (): boolean {\n return (\n this.hasText ||\n (Boolean(this.border) && this.coloredBorder)\n )\n },\n hasText (): boolean {\n return this.text || this.outlined\n },\n iconColor (): string | undefined {\n return this.hasColoredIcon ? this.computedColor : undefined\n },\n isDark (): boolean {\n if (\n this.type &&\n !this.coloredBorder &&\n !this.outlined\n ) return true\n\n return Themeable.options.computed.isDark.call(this)\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('outline')) {\n breaking('outline', 'outlined', this)\n }\n },\n\n methods: {\n genWrapper (): VNode {\n const children = [\n this.$slots.prepend || this.__cachedIcon,\n this.genContent(),\n this.__cachedBorder,\n this.$slots.append,\n this.$scopedSlots.close\n ? this.$scopedSlots.close({ toggle: this.toggle })\n : this.__cachedDismissible,\n ]\n\n const data: VNodeData = {\n staticClass: 'v-alert__wrapper',\n }\n\n return this.$createElement('div', data, children)\n },\n genContent (): VNode {\n return this.$createElement('div', {\n staticClass: 'v-alert__content',\n }, this.$slots.default)\n },\n genAlert (): VNode {\n let data: VNodeData = {\n staticClass: 'v-alert',\n attrs: {\n role: 'alert',\n },\n on: this.listeners$,\n class: this.classes,\n style: this.styles,\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n }\n\n if (!this.coloredBorder) {\n const setColor = this.hasText ? this.setTextColor : this.setBackgroundColor\n data = setColor(this.computedColor, data)\n }\n\n return this.$createElement('div', data, [this.genWrapper()])\n },\n /** @public */\n toggle () {\n this.isActive = !this.isActive\n },\n },\n\n render (h): VNode {\n const render = this.genAlert()\n\n if (!this.transition) return render\n\n return h('transition', {\n props: {\n name: this.transition,\n origin: this.origin,\n mode: this.mode,\n },\n }, [render])\n },\n})\n","import { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBadge } from 'vuetify/lib/components/VBadge';\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 { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"setting-title\"},[_vm._v(_vm._s(_vm.$t(\"subscription.activesub\")))]),_c(VListItem,{staticClass:\"mb-4\"},[_c(VListItemContent,[_c(VListItemTitle,{staticClass:\"mb-4 display-1\",staticStyle:{\"font-size\":\"26px !important\"}},[_c(VBadge,{class:_vm.canceledSubscription && 'light-badge',attrs:{\"content\":_vm.subscriptionDetails.status === 'active' && !_vm.canceledSubscription\n ? _vm.$t('subscription.active')\n : _vm.canceledSubscription\n ? ((_vm.$t('subscription.canceledOn')) + \" \" + (new Date(\n _vm.subscriptionDetails.currentPeriodEnd\n ).toLocaleDateString(_vm.LocalStorage.getLocale())))\n : _vm.subscriptionDetails.status,\"color\":_vm.canceledSubscription ? 'grey lighten-3' : 'primary'}},[_c('b',[_vm._v(_vm._s(_vm.subscriptionDetails.productName))])])],1),_c(VListItemTitle,{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"subscription.priceInterval\"))+\":\")]),_vm._v(\" \"+_vm._s(/* TODO: This should probably check nextPendingInvoiceItemInvoice to get the next scheduled payment value on price/plan changes */ _vm.formatPrice(_vm.formatAmount(_vm.grossOriginal)))+\" / \"+_vm._s(_vm.subscriptionDetails.planInterval)+\" \")]),(!_vm.subscriptionDetails.cancelAtPeriodEnd)?_c(VListItemTitle,{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"subscription.nextPayment\"))+\":\")]),_vm._v(\" \"+_vm._s(new Date(_vm.subscriptionDetails.currentPeriodEnd).toLocaleDateString( _vm.LocalStorage.getLocale() ))+\" \")]):_c(VListItemTitle,{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"subscription.subscriptionEnds\"))+\":\")]),_vm._v(\" \"+_vm._s(new Date(_vm.subscriptionDetails.currentPeriodEnd).toLocaleDateString( _vm.LocalStorage.getLocale() ))+\" \")])],1),_c(VListItemContent,{staticClass:\"mt-6\"},[_c(VListItemTitle,{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"subscription.paymentMethod\"))+\":\")]),_c(VIcon,{staticClass:\"mb-1 mx-1\",attrs:{\"size\":\"16\"}},[_vm._v(_vm._s(_vm.paymentMethod.icon))]),_vm._v(_vm._s(_vm.paymentMethod.brand)+\" (\"+_vm._s(_vm.paymentMethod.type)+\") \")],1),_c(VListItemTitle,{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"subscription.lastPayment\"))+\":\")]),_vm._v(\" \"+_vm._s(new Date( _vm.subscriptionDetails.latestInvoice.status_transitions.paid_at * 1000 ).toLocaleDateString(_vm.LocalStorage.getLocale()))+\" (\"+_vm._s(_vm.formatPrice(_vm.formatAmount(_vm.subscriptionDetails.latestInvoice.total)))+\") \")]),_c(VListItemTitle,{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"subscription.subscriberSince\"))+\":\")]),_vm._v(\" \"+_vm._s(new Date(_vm.subscriptionDetails.created).toLocaleDateString( _vm.LocalStorage.getLocale() ))+\" \")])],1)],1),(!_vm.canceledSubscription)?_c(VBtn,{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.cancelSubscriptionDialog = true}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"subscription.cancelSubscription\")))])]):_vm._e(),(_vm.canceledSubscription)?_c(VAlert,{staticStyle:{\"color\":\"white\",\"background-color\":\"rgba(180, 10, 0, 0.74) !important\"},attrs:{\"color\":\"prezpRed\",\"icon\":\"mdi-alert\"}},[_c('h2',{staticStyle:{\"margin-top\":\"0.03em\",\"color\":\"white !important\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"subscription.canceled\"))+\" \")]),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t(\"subscription.youCanceled\"))),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t(\"subscription.toSubscribeAgain\"))+\" \")]):_vm._e(),(_vm.canceledSubscription)?_c(VBtn,{attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.deleteSubscriptionDialog = true}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"subscription.deleteSubscription\")))])]):_vm._e(),_c(VDialog,{attrs:{\"max-width\":\"400px\"},model:{value:(_vm.cancelSubscriptionDialog),callback:function ($$v) {_vm.cancelSubscriptionDialog=$$v},expression:\"cancelSubscriptionDialog\"}},[_c(VCard,{attrs:{\"outlined\":\"\"}},[_c(VCardTitle,[_vm._v(_vm._s(_vm.$t(\"subscription.cancelSubscription\")))]),_c(VCardText,[_vm._v(_vm._s(_vm.$t(\"subscription.areYouSure\")))]),_c(VCardActions,[_c(VSpacer),_c(VBtn,{attrs:{\"elevation\":\"0\"},on:{\"click\":function($event){_vm.cancelSubscriptionDialog = false}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.cancel\")))])]),_c(VBtn,{attrs:{\"elevation\":\"0\",\"color\":\"error\"},on:{\"click\":function($event){_vm.cancelSubscription(_vm.subscriptionDetails.subscriptionId).then(\n function () { return (_vm.cancelSubscriptionDialog = false); }\n )}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.confirm\")))])])],1)],1)],1),_c(VDialog,{attrs:{\"max-width\":\"400px\"},model:{value:(_vm.deleteSubscriptionDialog),callback:function ($$v) {_vm.deleteSubscriptionDialog=$$v},expression:\"deleteSubscriptionDialog\"}},[_c(VCard,{attrs:{\"outlined\":\"\"}},[_c(VCardTitle,[_vm._v(_vm._s(_vm.$t(\"subscription.deleteSubscription\")))]),_c(VCardText,[_vm._v(_vm._s(_vm.$t(\"subscription.areYouSure\")))]),_c(VCardActions,[_c(VSpacer),_c(VBtn,{attrs:{\"elevation\":\"0\"},on:{\"click\":function($event){_vm.deleteSubscriptionDialog = false}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.cancel\")))])]),_c(VBtn,{attrs:{\"elevation\":\"0\",\"color\":\"error\"},on:{\"click\":function($event){_vm.deleteSubscription(_vm.subscriptionDetails.subscriptionId).then(\n function () { return (_vm.deleteSubscriptionDialog = false); }\n )}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.confirm\")))])])],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\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, Component } from \"vue-property-decorator\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Product, Subscription } from \"@/core/models\";\r\nimport LocalStorage from \"@/core/utils/LocalStorage\";\r\nimport { EUVat, EUVatRate } from \"@/core/plugins/eu-vat-rates\";\r\nimport { paymentSettings } from \"@/settings\";\r\n\r\n@Component({\r\n computed: {\r\n LocalStorage() {\r\n return LocalStorage;\r\n },\r\n },\r\n})\r\nexport default class ActiveSubscription extends Vue {\r\n @Getter(\"products/retrieved\") retrieved!: boolean;\r\n @Getter(\"products/products\") products!: Product[];\r\n @Getter(\"profile/subscriptionDetails\") subscriptionDetails!: Subscription;\r\n @Action(\"profile/cancelSubscription\") cancelSubscription!: Function;\r\n @Action(\"profile/deleteSubscription\") deleteSubscription!: Function;\r\n @Action(\"products/get\") getProducts!: Function;\r\n\r\n // TODO: Get country and tax exempt from customer\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 cancelSubscriptionDialog = false;\r\n deleteSubscriptionDialog = false;\r\n\r\n get isYearly(): boolean {\r\n return this.subscriptionDetails.planInterval === \"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.subscriptionDetails.priceId ||\r\n product.yearlyPrice === this.subscriptionDetails.priceId\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 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 // TODO: Map all subscriptionDetails.status options to i18n\r\n\r\n get canceledSubscription() {\r\n const now = new Date();\r\n return !(\r\n !this.subscriptionDetails.cancelAtPeriodEnd ||\r\n (this.subscriptionDetails.cancelAtPeriodEnd &&\r\n this.subscriptionDetails.cancelAt &&\r\n this.subscriptionDetails.cancelAt > now)\r\n );\r\n }\r\n\r\n get paymentMethod() {\r\n if (this.subscriptionDetails.paymentMethod) {\r\n console.log(\"paymentMethod!\", this.subscriptionDetails);\r\n let type = \"card\";\r\n\r\n switch (type) {\r\n case \"card\":\r\n return {\r\n type: \"Credit Card\",\r\n brand: this.subscriptionDetails.paymentMethod.card.brand.toLocaleUpperCase(\r\n \"DE\",\r\n ),\r\n icon: \"mdi-credit-card\",\r\n };\r\n // TODO: Just a sample, correctly add all used payment methods\r\n case \"sofort\":\r\n return {\r\n type: \"Sofortüberweisung\",\r\n brand: \"Klarna\",\r\n icon: \"mdi-bank\",\r\n };\r\n default:\r\n return { type: \"\", brand: \"\", icon: \"\" };\r\n }\r\n }\r\n return { type: \"\", brand: \"\", icon: \"\" };\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!./ActiveSubscription.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!./ActiveSubscription.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ActiveSubscription.vue?vue&type=template&id=b0e8d8ec&\"\nimport script from \"./ActiveSubscription.vue?vue&type=script&lang=ts&\"\nexport * from \"./ActiveSubscription.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ActiveSubscription.vue?vue&type=style&index=0&id=b0e8d8ec&prod&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 null,\n null\n \n)\n\nexport default component.exports","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!./ActiveSubscription.vue?vue&type=style&index=0&id=b0e8d8ec&prod&lang=css&\"","// TODO add to fork of benbucksch/eu-vat-rates on Github\r\nexport const EUVat: EUVatData = {\r\n source:\r\n \"https://europa.eu/youreurope/business/taxation/vat/vat-rules-rates/index_en.htm#inline-nav-8\",\r\n last_updated: \"2024-06-17T05:08Z\",\r\n disclaimer:\r\n \"This data is compiled from official European Commission and other sources to be as accurate as possible, however no guarantee of accuracy is provided. Use at your own risk. Don't trust random people on the internet without doing your own research.\",\r\n\r\n rates: {\r\n AT: {\r\n country: \"Austria\",\r\n vat_name: \"Umsatzsteuer\",\r\n vat_abbr: \"USt\",\r\n standard_rate: 20.0,\r\n reduced_rate: 10.0,\r\n reduced_rate_alt: 13.0,\r\n super_reduced_rate: false,\r\n parking_rate: 13.0,\r\n validation_rule: /^(AT)?U[0-9]{8}$/,\r\n },\r\n BE: {\r\n country: \"Belgium\",\r\n vat_name: \"Taxe sur la valeur ajoutée\",\r\n vat_abbr: \"TVA/BTW\",\r\n standard_rate: 21.0,\r\n reduced_rate: 6.0,\r\n reduced_rate_alt: 12.0,\r\n super_reduced_rate: false,\r\n parking_rate: 12.0,\r\n validation_rule: /^(BE)?0[0-9]{9}$/,\r\n },\r\n BG: {\r\n country: \"Bulgaria\",\r\n vat_name: \"Dana Dobavena Stoynost\",\r\n vat_abbr: \"DDS\",\r\n standard_rate: 20.0,\r\n reduced_rate: 9.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(BG)?[0-9]{9,10}$/,\r\n },\r\n CY: {\r\n country: \"Cyprus\",\r\n vat_name: \"Foros prostithemenis axias\",\r\n vat_abbr: \"FPA\",\r\n standard_rate: 19.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 9.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(CY)?[0-9]{8}L$/,\r\n },\r\n CZ: {\r\n country: \"Czech Republic\",\r\n vat_name: \"Dani z pridane hotnoty\",\r\n vat_abbr: \"DPH\",\r\n standard_rate: 21.0,\r\n reduced_rate: 12.0,\r\n reduced_rate_alt: 15.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(CZ)?[0-9]{8,10}$/,\r\n },\r\n DE: {\r\n country: \"Germany\",\r\n vat_name: \"Umsatzsteuer\",\r\n vat_abbr: \"USt\",\r\n standard_rate: 19.0,\r\n reduced_rate: 7.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(DE)?[0-9]{9}$/,\r\n },\r\n DK: {\r\n country: \"Denmark\",\r\n vat_name: \"Omsaetningsavgift\",\r\n vat_abbr: \"MOMS\",\r\n standard_rate: 25.0,\r\n reduced_rate: false,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(DK)?[0-9]{8}$/,\r\n },\r\n EE: {\r\n country: \"Estonia\",\r\n vat_name: \"Käibemaks\",\r\n vat_abbr: \"KMKR\",\r\n standard_rate: 22.0,\r\n reduced_rate: 9.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(EE)?[0-9]{9}$/,\r\n },\r\n GR: {\r\n country: \"Greece\",\r\n vat_name: \"Foros prostithemenis axias\",\r\n vat_abbr: \"FPA\",\r\n standard_rate: 24.0,\r\n reduced_rate: 6.0,\r\n reduced_rate_alt: 13.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(EL|GR)?[0-9]{9}$/,\r\n },\r\n ES: {\r\n country: \"Spain\",\r\n vat_name: \"Impuesto sobre el valor añadido\",\r\n vat_abbr: \"IVA\",\r\n standard_rate: 21.0,\r\n reduced_rate: 10.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]$/,\r\n },\r\n FI: {\r\n country: \"Finland\",\r\n vat_name: \"Arvonlisävero\",\r\n vat_abbr: \"ALV\",\r\n standard_rate: 24.0,\r\n reduced_rate: 10.0,\r\n reduced_rate_alt: 14.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(FI)?[0-9]{8}$/,\r\n },\r\n FR: {\r\n country: \"France\",\r\n vat_name: \"Taxe sur la valeur ajoutée\",\r\n vat_abbr: \"TVA\",\r\n standard_rate: 20.0,\r\n reduced_rate: 5.5,\r\n reduced_rate_alt: 10.0,\r\n super_reduced_rate: 2.1,\r\n parking_rate: false,\r\n validation_rule: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/,\r\n },\r\n HR: {\r\n country: \"Croatia\",\r\n vat_name: \"Porez na dodanu vrijednost\",\r\n vat_abbr: \"PDV\",\r\n standard_rate: 25.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 13.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(HR)?[0-9]{11}$/,\r\n },\r\n HU: {\r\n country: \"Hungary\",\r\n vat_name: \"Általános forgalmi adó\",\r\n vat_abbr: \"AFA\",\r\n standard_rate: 27.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 18.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(HU)?[0-9]{8}$/,\r\n },\r\n IE: {\r\n country: \"Ireland\",\r\n vat_name: \"Value added tax\",\r\n vat_abbr: \"VAT\",\r\n standard_rate: 23.0,\r\n reduced_rate: 9.0,\r\n reduced_rate_alt: 13.5,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(IE)?[0-9]{1}[0-9A-Z]{1}[0-9]{5}[A-Z]{1,2}$/,\r\n },\r\n IT: {\r\n country: \"Italy\",\r\n vat_name: \"Imposta sul valore aggiunto\",\r\n vat_abbr: \"IVA\",\r\n standard_rate: 22.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 10.0,\r\n super_reduced_rate: 4.0,\r\n parking_rate: false,\r\n validation_rule: /^(IT)?[0-9]{11}$/,\r\n },\r\n LT: {\r\n country: \"Lithuania\",\r\n vat_name: \"Pridetines vertes mokestis\",\r\n vat_abbr: \"PVM\",\r\n standard_rate: 21.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 9.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(LT)?([0-9]{9}|[0-9]{12})$/,\r\n },\r\n LU: {\r\n country: \"Luxembourg\",\r\n vat_name: \"Taxe sur la valeur ajoutée\",\r\n vat_abbr: \"TVA\",\r\n standard_rate: 17.0,\r\n reduced_rate: 8.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: 3.0,\r\n parking_rate: 14.0,\r\n validation_rule: /^(LU)?[0-9]{8}$/,\r\n },\r\n LV: {\r\n country: \"Latvia\",\r\n vat_name: \"Pievienotas vertibas nodoklis\",\r\n vat_abbr: \"PVN\",\r\n standard_rate: 21.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 12.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(LV)?[0-9]{11}$/,\r\n },\r\n MT: {\r\n country: \"Malta\",\r\n vat_name: \"Value added tax\",\r\n vat_abbr: \"VAT\",\r\n standard_rate: 18.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 7.0,\r\n super_reduced_rate: false,\r\n parking_rate: 12.0,\r\n validation_rule: /^(MT)?[0-9]{8}$/,\r\n },\r\n NL: {\r\n country: \"Netherlands\",\r\n vat_name: \"Omzetbelasting\",\r\n vat_abbr: \"OB\",\r\n standard_rate: 21.0,\r\n reduced_rate: 9.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(NL)?[0-9]{9}B[0-9]{2}$/,\r\n },\r\n PL: {\r\n country: \"Poland\",\r\n vat_name: \"Podatek od towaròw i uslug\",\r\n vat_abbr: \"VAT\",\r\n standard_rate: 23.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 8.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(PL)?[0-9]{10}$/,\r\n },\r\n PT: {\r\n country: \"Portugal\",\r\n vat_name: \"Imposto sobre o valor acrescentado\",\r\n vat_abbr: \"IVA\",\r\n standard_rate: 23.0,\r\n reduced_rate: 6.0,\r\n reduced_rate_alt: 13.0,\r\n super_reduced_rate: false,\r\n parking_rate: 13.0,\r\n validation_rule: /^(PT)?[0-9]{9}$/,\r\n },\r\n RO: {\r\n country: \"Romania\",\r\n vat_name: \"Taxa pe valoarea adãugata\",\r\n vat_abbr: \"TVA\",\r\n standard_rate: 19.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 9.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(RO)?[0-9]{2,10}$/,\r\n },\r\n SE: {\r\n country: \"Sweden\",\r\n vat_name: \"Mervärdeskatt\",\r\n vat_abbr: \"ML\",\r\n standard_rate: 25.0,\r\n reduced_rate: 6.0,\r\n reduced_rate_alt: 12.0,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(SE)?[0-9]{12}$/,\r\n },\r\n SI: {\r\n country: \"Slovenia\",\r\n vat_name: \"Davek na dodano vred nost\",\r\n vat_abbr: \"DDV\",\r\n standard_rate: 22.0,\r\n reduced_rate: 5.0,\r\n reduced_rate_alt: 9.5,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(SI)?[0-9]{8}$/,\r\n },\r\n SK: {\r\n country: \"Slovakia\",\r\n vat_name: \"Dan z pridanej hodnoty\",\r\n vat_abbr: \"DPH\",\r\n standard_rate: 20.0,\r\n reduced_rate: 10.0,\r\n reduced_rate_alt: false,\r\n super_reduced_rate: false,\r\n parking_rate: false,\r\n validation_rule: /^(SK)?[0-9]{10}$/,\r\n },\r\n },\r\n};\r\n\r\nexport interface EUVatRate {\r\n country: string;\r\n vat_name: string;\r\n vat_abbr: string;\r\n standard_rate: number | boolean;\r\n reduced_rate: number | boolean;\r\n reduced_rate_alt: number | boolean;\r\n super_reduced_rate: number | boolean;\r\n parking_rate: number | boolean;\r\n validation_rule: any;\r\n}\r\nexport type EUVatRates = { [id: string]: EUVatRate };\r\n\r\nexport interface EUVatData {\r\n source: string;\r\n last_updated: string;\r\n disclaimer: string;\r\n rates: EUVatRates;\r\n}\r\n"],"sourceRoot":""}