@cling-se/widget 0.19.12 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.internal.md +5 -5
- package/dist/{AddClientCallout-CKB2ux-T.js → AddClientCallout-p9hY5ma4.js} +4 -4
- package/dist/{AnswerModal-BJ3_JrYQ.js → AnswerModal-B5HomjlZ.js} +3 -3
- package/dist/{AttachmentItem-CQKNtvF_.js → AttachmentItem-vWCnfmSy.js} +4 -4
- package/dist/{BaseUpload-CoV5kPSh.js → BaseUpload-CpJcJRjy.js} +2 -2
- package/dist/{BlockMedia-BjXP0TjO.js → BlockMedia-TjxVQfRI.js} +1 -1
- package/dist/{CCallout-D2K1xjJp.js → CCallout-mg5CHKbW.js} +1 -1
- package/dist/{CCurrencyDropdown-B_ifqq9U.js → CCurrencyDropdown-CYsaulJX.js} +3 -3
- package/dist/{CDropdownItem-BfdpY3v0.js → CDropdownItem-Cu4bFWtD.js} +96 -96
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-S2cfSMeh.js → CFormField.vue_vue_type_script_setup_true_lang-BeIp8_aU.js} +2 -2
- package/dist/{CPhoneFormat-C3E_mcs_.js → CPhoneFormat-GM3CZqub.js} +1 -1
- package/dist/{CPhoneInput-B4au5HPe.js → CPhoneInput-DKf8eSyK.js} +5 -5
- package/dist/{CPriceInput-BfzyrIFS.js → CPriceInput-Be3pub6u.js} +2 -2
- package/dist/{CSelect-CrUoAl0P.js → CSelect-CNY0-lsV.js} +1 -1
- package/dist/{CSkeleton-DfbHpf8S.js → CSkeleton-Bh4UU_9s.js} +1 -1
- package/dist/{ClientAutocomplete-BryD_HTQ.js → ClientAutocomplete-Dm4wSPnJ.js} +3 -3
- package/dist/{ClientModal-CxwvC5Mx.js → ClientModal-BHmZDhYp.js} +218 -248
- package/dist/{ColorPicker-Dzjmfjy2.js → ColorPicker-CDmqEHnY.js} +1 -1
- package/dist/{CompanyModal-9MQ2AXNt.js → CompanyModal-CifLcwwI.js} +7 -7
- package/dist/{ContentWrapper-D2rwWu3e.js → ContentWrapper-CTNDb0ck.js} +6 -6
- package/dist/{CoverBlockSettings-BWOzPM7X.js → CoverBlockSettings-rLaGxL29.js} +7 -7
- package/dist/{DocAnswer-CVqUEDAB.js → DocAnswer-DdRshw-Z.js} +2 -2
- package/dist/{DocDetails-C5X2-g_a.js → DocDetails-bSPDS7-8.js} +4 -4
- package/dist/{DocForm-0dzfP9DE.js → DocForm-Cn6th1oG.js} +99 -97
- package/dist/{DocFormSend-B26N23z_.js → DocFormSend-BVoLYwUB.js} +2 -2
- package/dist/{DocLinks-DvRvC-aE.js → DocLinks-BB5jSGpp.js} +2 -2
- package/dist/{DocModalBase-C4rsAl6b.js → DocModalBase-DVMNHrQ0.js} +1 -1
- package/dist/{DocPrint-B98dNhsA.js → DocPrint-4LADFj3b.js} +1 -1
- package/dist/{DocReceipt-CXo_upl2.js → DocReceipt-DMsRqm6N.js} +2 -2
- package/dist/{DocSendReminder-DoJMKu9L.js → DocSendReminder--sHhq7nq.js} +1 -1
- package/dist/{DocTextEditor-BaFbu9v7.js → DocTextEditor-rxDDkurp.js} +38 -22
- package/dist/{DocTimeline-CCwdToqT.js → DocTimeline-XcSBcUaQ.js} +2 -2
- package/dist/{DocumentClient-IPArl7lF.js → DocumentClient-C_ZKPKB5.js} +5 -5
- package/dist/{DocumentLayout-DNZ_DvgH.js → DocumentLayout-B49wHYov.js} +21 -21
- package/dist/{DocumentLogotype-B3uoTgI4.js → DocumentLogotype-BuK-fBZa.js} +4 -4
- package/dist/{DocumentVoided-DWde8VwA.js → DocumentVoided-oOGAvC6V.js} +1 -1
- package/dist/{EmbedInput-BsHyhdIv.js → EmbedInput-D8YWQ-qB.js} +3 -3
- package/dist/{EmbedSettings-DxqT8rQM.js → EmbedSettings-CAMvefuZ.js} +3 -3
- package/dist/{ErrorCallout-DVAoEvRy.js → ErrorCallout-BJyb9nBD.js} +1 -1
- package/dist/{FilePreviewModal-B_qtsBko.js → FilePreviewModal-DHyhUuZo.js} +2 -2
- package/dist/{Flag-axItvnYr.js → Flag-Ce5qgf2m.js} +1 -1
- package/dist/{HeaderSettings-BHxv6zbP.js → HeaderSettings-BMOUeMU8.js} +9 -9
- package/dist/{ImageSelectModal-D6qOJzjA.js → ImageSelectModal-BJEHD53w.js} +3 -3
- package/dist/{ImageUploadWrapper-COMLuYyW.js → ImageUploadWrapper-Bm_fsubV.js} +2 -2
- package/dist/{Index-DfClBO72.js → Index-2rJaMFcL.js} +4 -4
- package/dist/{Index-D-WpXww5.js → Index-B6utGn5s.js} +1 -1
- package/dist/{Index-C9jZraL3.js → Index-B7LFM_9O.js} +2 -2
- package/dist/{Index-BAh35Nee.js → Index-B8363PUi.js} +4 -4
- package/dist/{Index-BOC_usJj.js → Index-BFUBReG-.js} +4 -4
- package/dist/{Index-DIa3ZNqY.js → Index-BIAKEao7.js} +4 -4
- package/dist/{Index-B_wlGU0V.js → Index-BRRXjIQP.js} +1 -1
- package/dist/{Index-CjZjDiay.js → Index-BSDfmC22.js} +2 -2
- package/dist/{Index-cGblBo3D.js → Index-Ba4whr1w.js} +2 -2
- package/dist/{Index-BVr7Vs45.js → Index-Bcdw8XVA.js} +46 -37
- package/dist/{Index-Dt4MpMCQ.js → Index-BkaAqWBO.js} +1 -1
- package/dist/{Index-MzezIdfd.js → Index-Bns741YV.js} +3 -3
- package/dist/{Index-CO8q3yMx.js → Index-C7CgBDIF.js} +3 -3
- package/dist/{Index-DGVo6Mv_.js → Index-C9iZyCtn.js} +75 -73
- package/dist/{Index-CU5UW3Hy.js → Index-CAgPjQtC.js} +6 -6
- package/dist/{Index-CkCdbHs4.js → Index-CItHDT3v.js} +4 -4
- package/dist/{Index-0LjbOVSa.js → Index-CQ9351hs.js} +8 -8
- package/dist/{Index-C0VVjYzv.js → Index-CQvg6N5q.js} +5 -5
- package/dist/{Index-CbZisK8y.js → Index-CYbVMO20.js} +4 -4
- package/dist/{Index-DjdJ9R-S.js → Index-CghqZnil.js} +5 -5
- package/dist/{Index-Cy8ICAgR.js → Index-ClIh2IW1.js} +10 -10
- package/dist/{Index-BaVfkjuK.js → Index-ClT5TAft.js} +3 -3
- package/dist/{Index-DY1Wb2pH.js → Index-CoSRZBAe.js} +6 -6
- package/dist/{Index-_920IuDX.js → Index-CrIL3HJg.js} +3 -3
- package/dist/Index-CvYoh9UK.js +4 -0
- package/dist/{Index-bwUzGE5t.js → Index-CxSrhoOz.js} +26 -17
- package/dist/{Index-BILl37wX.js → Index-CzdPYWAZ.js} +4 -4
- package/dist/{Index-CPw49wIY.js → Index-D9NojrLE.js} +4 -4
- package/dist/{Index-d3RpL9s6.js → Index-DCR65NzU.js} +7 -7
- package/dist/{Index-DCA5JJ1t.js → Index-D_j8z8TJ.js} +9 -9
- package/dist/{Index-C1qXwtaw.js → Index-Do4iuEM8.js} +2 -2
- package/dist/{Index-Za46FzMl.js → Index-EFThQNhh.js} +2 -2
- package/dist/{Index-BOeiZRCe.js → Index-SSS__jy7.js} +5 -5
- package/dist/{Index-QBYnUTJm.js → Index-y1iAAknQ.js} +14 -14
- package/dist/{Index.vue_vue_type_script_lang-CFTxaSrV.js → Index.vue_vue_type_script_lang-cUDsYudO.js} +2 -2
- package/dist/{InputToggleRow-DsIWqdk_.js → InputToggleRow-BFnFE9Oc.js} +1 -1
- package/dist/{ManualPopover-C3KGzuu9.js → ManualPopover-DmAP6B_Y.js} +1 -1
- package/dist/{MediaWrapper-MFm8YeB3.js → MediaWrapper-C4JfFbde.js} +3 -3
- package/dist/{NotBindingText-DcWDdouW.js → NotBindingText-7Rr1u9v1.js} +2 -2
- package/dist/{PackageGroup-SGTSnH21.js → PackageGroup-DkdCS2oR.js} +5 -5
- package/dist/{PdfTerms-fOlzudZh.js → PdfTerms-BdymoJyT.js} +2 -2
- package/dist/{PdfViewer-DDpx00sK.js → PdfViewer-CXkBa0_g.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-Cz2dQuvO.js → PlainHtml.vue_vue_type_script_setup_true_lang-lB3eiXpl.js} +1 -1
- package/dist/{PriceHeader-tqURZOPu.js → PriceHeader-DXustcav.js} +7 -7
- package/dist/{SearchApi-DULmvWHU.js → SearchApi-DuZeNjkY.js} +1 -1
- package/dist/{SendForm-DOmjDjSH.js → SendForm-BrSZ5UeL.js} +8 -8
- package/dist/{Setup-Hkd7lTEY.js → Setup-CNSgF7b0.js} +1 -1
- package/dist/{SmartList-BJzzkwKP.js → SmartList-Rb2o-PbW.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CbQN53qU.js → Sortable.vue_vue_type_script_setup_true_lang-r7QF2LJS.js} +1 -1
- package/dist/{TermsSettings-BDhWgymk.js → TermsSettings-yBfUx-7b.js} +34 -32
- package/dist/{ThemeColorRow-ko7tiZab.js → ThemeColorRow-DYUR7TXj.js} +3 -3
- package/dist/{ToggleBinding-vlw8aH-N.js → ToggleBinding-BEjzG2Xh.js} +4 -4
- package/dist/{UploadModal-DhhKi9cj.js → UploadModal-s3ML8quJ.js} +13 -11
- package/dist/{VideoPlayerInput-FAAwDDpw.js → VideoPlayerInput-Brw0_mfP.js} +4 -4
- package/dist/{VideoPlayerSettings--Z_6wCEh.js → VideoPlayerSettings-aNVhnuCo.js} +2 -2
- package/dist/{VideoSelectModal-DeQL4Kee.js → VideoSelectModal-BzIXa-FM.js} +3 -3
- package/dist/{focusDrawerMixin-BTx49vhB.js → focusDrawerMixin-DHsxgKiI.js} +1 -1
- package/dist/{formDrawerState-BkDkB7ox.js → formDrawerState-BRzcOCYZ.js} +1 -1
- package/dist/{helpers-gWbXh9Ns.js → helpers-5o9UkEF4.js} +1 -1
- package/dist/{index-CMbTkNvA.js → index-B02B2of8.js} +3 -3
- package/dist/{index-CBzzerP_.js → index-BTf-KF-1.js} +642 -563
- package/dist/{index-BXEarzT0.js → index-BXGeWlwY.js} +1 -1
- package/dist/{index-B7lPoMlH.js → index-CE5j0xPs.js} +1 -1
- package/dist/{index-B8q-wbk1.js → index-DKJal8iX.js} +8 -8
- package/dist/{index-Bx6eb6O1.js → index-DxQodQ2P.js} +1 -1
- package/dist/{index-ykqjytG7.js → index-TdIPOc2f.js} +1 -1
- package/dist/index.es.js +3 -33
- package/dist/index.umd.js +145 -145
- package/dist/{main-2MP6slUA.js → main-DKpj1mxJ.js} +5116 -5085
- package/dist/{mapFormMixin-CLZO7uaz.js → mapFormMixin-D2ME1W30.js} +4 -4
- package/dist/{omit-CMuwLvOe.js → omit-BlWnRm5y.js} +2 -2
- package/dist/{publicSenderState-C66ZctUJ.js → publicSenderState-CXApLC0x.js} +1 -1
- package/dist/{splitpanes-CgMn3s-g.js → splitpanes-CxR9KAOD.js} +1 -1
- package/dist/{template-D41MKsNw.js → template-B2jjOkEF.js} +1 -1
- package/dist/{tippy.esm-BE0T4-6s.js → tippy.esm-C_ureXvQ.js} +5 -5
- package/dist/{useTermsModal-Dodk50o3.js → useTermsModal-DctGKo-3.js} +4 -4
- package/dist/{utils-GWt5LxqQ.js → utils-mwks91R5.js} +1 -1
- package/dist/{validation-C6D3fzeF.js → validation-HJ33ekhX.js} +2 -2
- package/dist/validations-ohsJ5nBz.js +34 -0
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-jTqUWF3X.js +0 -4
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _, d, o as c, j as
|
|
1
|
+
import { _, d, o as c, j as o, f as h, T as H, w as f, e as k, W as ce, al as ue, b as v, t as l, q as g, dc as ee, af as V, dd as Ce, de as ke, df as Pe, dg as _e, dh as we, cY as W, aD as J, di as Se, i as T, s as R, m as Z, ar as Te, a as B, aa as $e, g as x, dj as xe, y as $, a4 as de, x as N, u as D, F as S, n as L, v as Q, c as w, ai as Ie, aq as Ee, dk as Me, dl as Ve, dm as Le, V as He, ao as z, dn as U, dp as te, dq as ne, a6 as G, aB as Be, k as X, $ as Fe, dr as Ue, cT as De, a7 as Oe, ak as Re } from "./main-DKpj1mxJ.js";
|
|
2
2
|
import { a as P } from "./anime.es-4wvNItHq.js";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { C as
|
|
5
|
-
import { b as
|
|
3
|
+
import { _ as Ae } from "./CFormField.vue_vue_type_script_setup_true_lang-BeIp8_aU.js";
|
|
4
|
+
import { C as ze } from "./CSelect-CNY0-lsV.js";
|
|
5
|
+
import { b as qe } from "./CDropdownItem-Cu4bFWtD.js";
|
|
6
6
|
import { r as q } from "./regions-BdZt9Srn.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as We } from "./
|
|
10
|
-
|
|
7
|
+
import { a as me, i as pe } from "./validations-ohsJ5nBz.js";
|
|
8
|
+
import { u as je } from "./index-DxQodQ2P.js";
|
|
9
|
+
import { s as Ne, a as Ze, n as Ye, c as We, r as Qe, e as Ge } from "./index-BXGeWlwY.js";
|
|
10
|
+
import { a as Ke } from "./dom-DOcGU3-g.js";
|
|
11
|
+
const Je = {
|
|
11
12
|
props: {
|
|
12
13
|
defaultOpen: {
|
|
13
14
|
type: Boolean,
|
|
@@ -70,14 +71,14 @@ const Qe = {
|
|
|
70
71
|
t.style.height = typeof e == "number" ? `${e}px` : e;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
},
|
|
74
|
+
}, Xe = {
|
|
74
75
|
ref: "inner",
|
|
75
76
|
class: "c-accordion__inner"
|
|
76
77
|
};
|
|
77
|
-
function
|
|
78
|
+
function et(e, t, n, a, i, r) {
|
|
78
79
|
return c(), d("div", null, [
|
|
79
|
-
|
|
80
|
-
onClick: t[0] || (t[0] = (
|
|
80
|
+
o("div", {
|
|
81
|
+
onClick: t[0] || (t[0] = (s) => r.expanded = !r.expanded)
|
|
81
82
|
}, [
|
|
82
83
|
H(e.$slots, "trigger", { expanded: r.expanded })
|
|
83
84
|
]),
|
|
@@ -94,7 +95,7 @@ function Ke(e, t, n, a, i, r) {
|
|
|
94
95
|
style: ce(r.wrapperStyle),
|
|
95
96
|
class: "c-accordion"
|
|
96
97
|
}, [
|
|
97
|
-
|
|
98
|
+
o("div", Xe, [
|
|
98
99
|
H(e.$slots, "default")
|
|
99
100
|
], 512)
|
|
100
101
|
], 4)) : k("", !0)
|
|
@@ -103,7 +104,7 @@ function Ke(e, t, n, a, i, r) {
|
|
|
103
104
|
}, 8, ["onEnter", "onAfterEnter", "onBeforeLeave", "onLeave"])
|
|
104
105
|
]);
|
|
105
106
|
}
|
|
106
|
-
const
|
|
107
|
+
const tt = /* @__PURE__ */ _(Je, [["render", et]]), nt = {
|
|
107
108
|
name: "CalloutLegacy",
|
|
108
109
|
i18nOptions: {
|
|
109
110
|
namespaces: "components",
|
|
@@ -152,19 +153,19 @@ const Je = /* @__PURE__ */ _(Qe, [["render", Ke]]), Xe = {
|
|
|
152
153
|
validator: (e) => ["legacy", "invoice"].includes(e)
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
},
|
|
156
|
-
function
|
|
157
|
-
const
|
|
158
|
-
return c(), d("div",
|
|
159
|
-
|
|
156
|
+
}, rt = { style: { border: "2px solid hsla(35, 100%, 50%, 0.2)", "background-color": "hsl(35, 100%, 91%)", padding: "1.5em", "border-radius": "8px", margin: "calc(2 * var(--rem)) 0 calc(3 * var(--rem)) 0" } }, it = ["textContent"], at = ["textContent"];
|
|
157
|
+
function ot(e, t, n, a, i, r) {
|
|
158
|
+
const s = v("CButton");
|
|
159
|
+
return c(), d("div", rt, [
|
|
160
|
+
o("div", {
|
|
160
161
|
style: { "font-weight": "600" },
|
|
161
162
|
textContent: l(e.$t(`${n.mode}.title`))
|
|
162
|
-
}, null, 8,
|
|
163
|
-
|
|
163
|
+
}, null, 8, it),
|
|
164
|
+
o("div", {
|
|
164
165
|
style: { "font-size": "14px", opacity: "0.7", "margin-bottom": "2em" },
|
|
165
166
|
textContent: l(e.$t(`${n.mode}.text`))
|
|
166
|
-
}, null, 8,
|
|
167
|
-
h(
|
|
167
|
+
}, null, 8, at),
|
|
168
|
+
h(s, {
|
|
168
169
|
to: { name: "settingsBilling", query: { highlight: n.mode } },
|
|
169
170
|
target: "_blank",
|
|
170
171
|
type: "secondary",
|
|
@@ -178,19 +179,19 @@ function rt(e, t, n, a, i, r) {
|
|
|
178
179
|
}, 8, ["to"])
|
|
179
180
|
]);
|
|
180
181
|
}
|
|
181
|
-
const
|
|
182
|
+
const he = /* @__PURE__ */ _(nt, [["render", ot]]), st = (e) => J.te(`errors:${e}`) && J.t(`errors:${e}`), lt = "stripe", {
|
|
182
183
|
LOAD_PRICES: re,
|
|
183
|
-
RESET_STRIPE_FORM:
|
|
184
|
-
SET_STRIPE_FORM_VALUE:
|
|
184
|
+
RESET_STRIPE_FORM: ct,
|
|
185
|
+
SET_STRIPE_FORM_VALUE: ut,
|
|
185
186
|
SET_FORM_PROMOTION: ie,
|
|
186
|
-
SUBMIT_PROMOTION_CODE:
|
|
187
|
+
SUBMIT_PROMOTION_CODE: dt,
|
|
187
188
|
SUBMIT_PAYMENT_METHOD: ae,
|
|
188
|
-
SUBMIT_FORM_PLAN:
|
|
189
|
-
REMOVE_SUBSCRIPTION_ITEM:
|
|
190
|
-
CONFIRM_PAYMENT:
|
|
189
|
+
SUBMIT_FORM_PLAN: mt,
|
|
190
|
+
REMOVE_SUBSCRIPTION_ITEM: pt,
|
|
191
|
+
CONFIRM_PAYMENT: oe,
|
|
191
192
|
SUBMIT_FORM_PAYMENT: j,
|
|
192
|
-
SUBMIT_FORM_PRODUCTS:
|
|
193
|
-
} =
|
|
193
|
+
SUBMIT_FORM_PRODUCTS: ht
|
|
194
|
+
} = we, se = {
|
|
194
195
|
// The term "plan" refers to a _price_ connected to a _product_ with metadata.accountType
|
|
195
196
|
plan: { accountType: "pro", interval: "month", quantity: 1 },
|
|
196
197
|
customer: { name: "", email: "", region: null },
|
|
@@ -203,7 +204,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
203
204
|
// If the payment should be associated with a specific dealSource
|
|
204
205
|
}, le = {
|
|
205
206
|
SE: 0.25
|
|
206
|
-
},
|
|
207
|
+
}, fe = {
|
|
207
208
|
namespaced: !0,
|
|
208
209
|
state: {
|
|
209
210
|
isFetching: !1,
|
|
@@ -216,11 +217,11 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
216
217
|
base: { month: null, year: null },
|
|
217
218
|
pro: { month: null, year: null }
|
|
218
219
|
},
|
|
219
|
-
form: ee(
|
|
220
|
+
form: ee(se)
|
|
220
221
|
},
|
|
221
222
|
getters: {
|
|
222
223
|
isPosting: ({ isPosting: e }) => e,
|
|
223
|
-
subscriptions: (e, t, n, a) =>
|
|
224
|
+
subscriptions: (e, t, n, a) => V(a["application/companyAccount"], "StripeSubscriptions") || [],
|
|
224
225
|
subscriptionItems: (e, { subscriptions: t }) => {
|
|
225
226
|
const n = [];
|
|
226
227
|
return t.forEach(({ stripeItems: a = [] }) => {
|
|
@@ -233,7 +234,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
233
234
|
});
|
|
234
235
|
}), n;
|
|
235
236
|
},
|
|
236
|
-
customer: (e, t, n, a) =>
|
|
237
|
+
customer: (e, t, n, a) => V(a["application/companyAccount"], "StripeCustomer") || null,
|
|
237
238
|
products: ({ prices: e }) => {
|
|
238
239
|
const t = {};
|
|
239
240
|
return Object.keys(e).forEach((n) => {
|
|
@@ -265,7 +266,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
265
266
|
getMeteredProduct: (e, t) => (n) => {
|
|
266
267
|
if (!n) throw new Error("Missing parameter meteredType");
|
|
267
268
|
const a = t.products, i = Object.keys(a).find(
|
|
268
|
-
(r) =>
|
|
269
|
+
(r) => V(a[r], "metadata.meteredType") === n
|
|
269
270
|
);
|
|
270
271
|
return a[i];
|
|
271
272
|
},
|
|
@@ -289,7 +290,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
289
290
|
const { subscriptionItems: n } = t;
|
|
290
291
|
if (!n || !n.length) return null;
|
|
291
292
|
const a = n.find(
|
|
292
|
-
(r) =>
|
|
293
|
+
(r) => V(
|
|
293
294
|
e.prices[r.stripePriceStripeId],
|
|
294
295
|
"StripeProduct.metadata.accountType"
|
|
295
296
|
)
|
|
@@ -313,16 +314,16 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
313
314
|
* @returns {Object} Price obj on format { intervals: {}, currency }
|
|
314
315
|
*/
|
|
315
316
|
formPrices: (e, t) => {
|
|
316
|
-
function n(r,
|
|
317
|
+
function n(r, s, p) {
|
|
317
318
|
const u = r;
|
|
318
|
-
return (!u.intervals[
|
|
319
|
+
return (!u.intervals[s] || !Object.keys(u.intervals[s]).length) && (u.intervals[s] = {
|
|
319
320
|
subTotalBeforeDiscount: 0,
|
|
320
321
|
vatAmount: 0,
|
|
321
322
|
subTotal: 0,
|
|
322
323
|
totalAmount: 0,
|
|
323
324
|
items: []
|
|
324
|
-
}), Object.keys(
|
|
325
|
-
Array.isArray(
|
|
325
|
+
}), Object.keys(p).forEach((y) => {
|
|
326
|
+
Array.isArray(p[y]) ? u.intervals[s][y] = u.intervals[s][y].concat(p[y]) : u.intervals[s][y] += p[y];
|
|
326
327
|
}), u;
|
|
327
328
|
}
|
|
328
329
|
let a = {
|
|
@@ -331,13 +332,13 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
331
332
|
};
|
|
332
333
|
function i() {
|
|
333
334
|
const r = (t.formPlan.amount || 0) * t.formPlan.quantity;
|
|
334
|
-
let
|
|
335
|
-
t.formPromotion && (t.formPromotion.amountOff ?
|
|
336
|
-
const
|
|
335
|
+
let s = r;
|
|
336
|
+
t.formPromotion && (t.formPromotion.amountOff ? s -= t.formPromotion.amountOff : t.formPromotion.percentOff && (s *= 1 - t.formPromotion.percentOff / 100));
|
|
337
|
+
const p = s * (le[t.formCustomer.region] || 0), u = s + p;
|
|
337
338
|
a = n(a, t.formPlan.interval, {
|
|
338
339
|
subTotalBeforeDiscount: r,
|
|
339
|
-
subTotal:
|
|
340
|
-
vatAmount:
|
|
340
|
+
subTotal: s,
|
|
341
|
+
vatAmount: p,
|
|
341
342
|
totalAmount: u,
|
|
342
343
|
items: [
|
|
343
344
|
{
|
|
@@ -349,22 +350,22 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
349
350
|
});
|
|
350
351
|
}
|
|
351
352
|
return i(), t.formProducts.forEach((r) => {
|
|
352
|
-
const
|
|
353
|
-
if (
|
|
354
|
-
let
|
|
355
|
-
|
|
356
|
-
const u =
|
|
353
|
+
const s = t.priceById(r.stripePriceStripeId);
|
|
354
|
+
if (s) {
|
|
355
|
+
let p = s.interval;
|
|
356
|
+
s.usageType === "one_time" && (p = "oneOff");
|
|
357
|
+
const u = s.amount * r.quantity;
|
|
357
358
|
let y = u;
|
|
358
359
|
t.formPromotion && (t.formPromotion.amountOff ? y -= t.formPromotion.amountOff : t.formPromotion.percentOff && (y *= 1 - t.formPromotion.percentOff / 100));
|
|
359
360
|
const C = y * (le[t.formCustomer.region] || 0), b = y + C;
|
|
360
|
-
a = n(a,
|
|
361
|
+
a = n(a, p, {
|
|
361
362
|
subTotalBeforeDiscount: u,
|
|
362
363
|
subTotal: y,
|
|
363
364
|
vatAmount: C,
|
|
364
365
|
totalAmount: b,
|
|
365
366
|
items: [
|
|
366
367
|
{
|
|
367
|
-
name:
|
|
368
|
+
name: s.StripeProduct.name,
|
|
368
369
|
amount: u,
|
|
369
370
|
quantity: r.quantity
|
|
370
371
|
}
|
|
@@ -382,17 +383,17 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
382
383
|
e("setPrices", { data: t }), e("setActivePriceMap");
|
|
383
384
|
} catch (t) {
|
|
384
385
|
this.handleError(t, {
|
|
385
|
-
action: `${
|
|
386
|
+
action: `${lt}/${re}`,
|
|
386
387
|
actionPayload: null
|
|
387
388
|
});
|
|
388
389
|
} finally {
|
|
389
390
|
e("setFetching", !1);
|
|
390
391
|
}
|
|
391
392
|
},
|
|
392
|
-
async [
|
|
393
|
-
e("setForm", ee(
|
|
393
|
+
async [ct]({ commit: e }) {
|
|
394
|
+
e("setForm", ee(se));
|
|
394
395
|
},
|
|
395
|
-
async [
|
|
396
|
+
async [ut]({ commit: e }, { key: t, value: n }) {
|
|
396
397
|
e("setFormValue", { key: t, value: n });
|
|
397
398
|
},
|
|
398
399
|
[ie]({ commit: e, getters: t }, { promotionDetails: n, code: a = null } = {}) {
|
|
@@ -403,11 +404,11 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
403
404
|
value: { ...n, code: a }
|
|
404
405
|
}), !0);
|
|
405
406
|
},
|
|
406
|
-
async [
|
|
407
|
+
async [dt]({ commit: e, getters: t, dispatch: n }, a) {
|
|
407
408
|
try {
|
|
408
409
|
if (t.isPosting || !a) return !1;
|
|
409
410
|
e("setPosting", !0);
|
|
410
|
-
const { data: i } = await
|
|
411
|
+
const { data: i } = await Se(a);
|
|
411
412
|
return n(ie, {
|
|
412
413
|
promotionDetails: i,
|
|
413
414
|
code: a
|
|
@@ -427,8 +428,8 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
427
428
|
e("setPostingPaymentMethod", !0);
|
|
428
429
|
const { paymentMethod: a = {}, error: i } = await n.createPaymentMethod("card", t);
|
|
429
430
|
if (i) throw new Error(i.message || "Card Error");
|
|
430
|
-
const { id: r } = a, { last4:
|
|
431
|
-
return { id: r, last4:
|
|
431
|
+
const { id: r } = a, { last4: s, brand: p } = a.card || {};
|
|
432
|
+
return { id: r, last4: s, brand: p };
|
|
432
433
|
} catch (a) {
|
|
433
434
|
return this.handleError(a), null;
|
|
434
435
|
} finally {
|
|
@@ -446,35 +447,35 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
446
447
|
async [j]({ commit: e, getters: t, dispatch: n }, { form: a, stripe: { cardElement: i } = {}, removeUnusedItems: r = !0 } = {}) {
|
|
447
448
|
try {
|
|
448
449
|
e("setPosting", !0), e("setFormValue", { key: "error", value: null });
|
|
449
|
-
const { items:
|
|
450
|
+
const { items: s } = a, { formCustomer: p, formPromotion: u, customer: y, formDealSource: C } = t;
|
|
450
451
|
let b;
|
|
451
452
|
i && (b = await n(ae, { cardElement: i }));
|
|
452
|
-
const M = { ...
|
|
453
|
+
const M = { ...p, items: s };
|
|
453
454
|
b && (M.paymentMethod = b), u && u.code && (M.promotionCode = u.code), C && (M.dealSource = C);
|
|
454
|
-
const { data:
|
|
455
|
+
const { data: A = {} } = await W.product(M, {
|
|
455
456
|
removeUnusedItems: r
|
|
456
|
-
}), { clientSecrets: F } =
|
|
457
|
-
return F && F.length &&
|
|
457
|
+
}), { clientSecrets: F } = A, O = b && b.id ? b.id : y && y.paymentMethodId;
|
|
458
|
+
return F && F.length && O ? await n(oe, {
|
|
458
459
|
clientSecrets: F,
|
|
459
|
-
paymentMethodId:
|
|
460
|
+
paymentMethodId: O
|
|
460
461
|
}) : !0;
|
|
461
|
-
} catch (
|
|
462
|
-
this.handleError(
|
|
463
|
-
const
|
|
462
|
+
} catch (s) {
|
|
463
|
+
this.handleError(s);
|
|
464
|
+
const p = (s.errorCode ? st(s.errorCode) : "") || s.message;
|
|
464
465
|
return e("setFormValue", {
|
|
465
466
|
key: "error",
|
|
466
|
-
value:
|
|
467
|
+
value: p || "Submit Form Payment Error"
|
|
467
468
|
}), !1;
|
|
468
469
|
} finally {
|
|
469
470
|
e("setPosting", !1);
|
|
470
471
|
}
|
|
471
472
|
},
|
|
472
|
-
async [
|
|
473
|
+
async [mt]({ commit: e, dispatch: t, getters: n }, { cardElement: a } = {}) {
|
|
473
474
|
try {
|
|
474
|
-
const { formPlan: i, formProducts: r, products:
|
|
475
|
+
const { formPlan: i, formProducts: r, products: s, subscriptionItems: p } = n;
|
|
475
476
|
if (!i) return !1;
|
|
476
|
-
const u = [...
|
|
477
|
-
(C) =>
|
|
477
|
+
const u = [...p], y = u.findIndex(
|
|
478
|
+
(C) => V(s[C.stripeProductStripeId], "metadata.accountType")
|
|
478
479
|
);
|
|
479
480
|
return y !== -1 && u.splice(y, 1), u.push({
|
|
480
481
|
stripePriceStripeId: i.stripeId,
|
|
@@ -491,11 +492,11 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
491
492
|
}), !1;
|
|
492
493
|
}
|
|
493
494
|
},
|
|
494
|
-
async [
|
|
495
|
+
async [ht]({ commit: e, dispatch: t, getters: n }, { cardElement: a, removeUnusedItems: i = !0 } = {}) {
|
|
495
496
|
try {
|
|
496
|
-
const { formProducts: r } = n,
|
|
497
|
-
return
|
|
498
|
-
form: { items:
|
|
497
|
+
const { formProducts: r } = n, s = [...r];
|
|
498
|
+
return s.length ? await t(j, {
|
|
499
|
+
form: { items: s },
|
|
499
500
|
stripe: { cardElement: a },
|
|
500
501
|
removeUnusedItems: i
|
|
501
502
|
}) : !1;
|
|
@@ -515,7 +516,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
515
516
|
* @param {String} obj.paymentMethodId The stripe payment method id to use
|
|
516
517
|
* @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
|
|
517
518
|
*/
|
|
518
|
-
async [
|
|
519
|
+
async [oe]({ commit: e }, { clientSecrets: t = [], paymentMethodId: n }) {
|
|
519
520
|
const a = window.$stripe;
|
|
520
521
|
try {
|
|
521
522
|
if (!n)
|
|
@@ -523,9 +524,9 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
523
524
|
if (!a) throw new Error("Stripe is not installed on the window");
|
|
524
525
|
if (!Array.isArray(t))
|
|
525
526
|
throw new Error("Param clientSecrets needs to be an array");
|
|
526
|
-
return await t.reduce(async (r,
|
|
527
|
+
return await t.reduce(async (r, s) => {
|
|
527
528
|
await r;
|
|
528
|
-
const { paymentIntent:
|
|
529
|
+
const { paymentIntent: p, error: u } = await a.confirmCardPayment(s, {
|
|
529
530
|
payment_method: n
|
|
530
531
|
});
|
|
531
532
|
return u ? (u.message && e("setFormValue", {
|
|
@@ -534,7 +535,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
534
535
|
}), await W.cancelAll({
|
|
535
536
|
immediately: !0,
|
|
536
537
|
status: "incomplete"
|
|
537
|
-
}), !1) :
|
|
538
|
+
}), !1) : p && p.status === "succeeded";
|
|
538
539
|
}, Promise.resolve());
|
|
539
540
|
} catch (i) {
|
|
540
541
|
return this.handleError(i), !1;
|
|
@@ -548,7 +549,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
548
549
|
* @param {String} obj.stripePriceStripeId priceId to remove
|
|
549
550
|
* @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
|
|
550
551
|
*/
|
|
551
|
-
async [
|
|
552
|
+
async [pt]({ commit: e, dispatch: t, getters: n }, { stripePriceStripeId: a }) {
|
|
552
553
|
try {
|
|
553
554
|
if (!a)
|
|
554
555
|
throw new Error("Missing parameter stripePriceStripeId");
|
|
@@ -556,7 +557,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
556
557
|
const { subscriptionItems: i } = n;
|
|
557
558
|
let r = [...i];
|
|
558
559
|
return r = r.filter(
|
|
559
|
-
(
|
|
560
|
+
(s) => s.stripePriceStripeId !== a
|
|
560
561
|
), await t(j, { form: { items: r } });
|
|
561
562
|
} catch (i) {
|
|
562
563
|
return this.handleError(i), !1;
|
|
@@ -579,23 +580,23 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
579
580
|
setPrices: (e, { data: t = [] }) => {
|
|
580
581
|
if (typeof t != "object")
|
|
581
582
|
throw Error("Data must be a priceItem or array of priceItems!");
|
|
582
|
-
const n = Array.isArray(t) ? t : [t], { ids: a, values: i } =
|
|
583
|
-
|
|
583
|
+
const n = Array.isArray(t) ? t : [t], { ids: a, values: i } = ke(n, { keyId: "stripeId" });
|
|
584
|
+
Pe(e.prices, i), e.priceIds = _e([...a, ...e.priceIds]);
|
|
584
585
|
},
|
|
585
586
|
setActivePriceMap: ({ prices: e, activePriceMap: t }) => Object.keys(e).forEach((n) => {
|
|
586
|
-
const a = e[n], i =
|
|
587
|
-
i && a.active &&
|
|
587
|
+
const a = e[n], i = V(a, "StripeProduct.metadata.accountType");
|
|
588
|
+
i && a.active && V(a, "metadata.visible") === !0 && (t[i][a.interval] = n);
|
|
588
589
|
}),
|
|
589
590
|
// --- Form ---
|
|
590
591
|
setForm: (e, t) => {
|
|
591
592
|
e.form = t;
|
|
592
593
|
},
|
|
593
594
|
setFormValue: (e, { key: t, value: n }) => {
|
|
594
|
-
const { root: a, prop: i } =
|
|
595
|
+
const { root: a, prop: i } = Ce(e, `form.${t}`);
|
|
595
596
|
a[i] = n;
|
|
596
597
|
}
|
|
597
598
|
}
|
|
598
|
-
},
|
|
599
|
+
}, ft = {
|
|
599
600
|
props: {
|
|
600
601
|
colors: {
|
|
601
602
|
type: Array,
|
|
@@ -703,12 +704,23 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
|
|
|
703
704
|
}
|
|
704
705
|
}
|
|
705
706
|
};
|
|
706
|
-
function
|
|
707
|
+
function gt(e, t, n, a, i, r) {
|
|
707
708
|
return c(), d("div", null, t[0] || (t[0] = [
|
|
708
|
-
|
|
709
|
+
o("canvas", { id: "fireworks" }, null, -1)
|
|
709
710
|
]));
|
|
710
711
|
}
|
|
711
|
-
const
|
|
712
|
+
const yt = /* @__PURE__ */ _(ft, [["render", gt], ["__scopeId", "data-v-f0e925fe"]]);
|
|
713
|
+
function vt(e, t) {
|
|
714
|
+
if (!e) return "";
|
|
715
|
+
let n = me(e);
|
|
716
|
+
return t === "enskildfirma" && (n = pe(e)), n || e;
|
|
717
|
+
}
|
|
718
|
+
function bt(e) {
|
|
719
|
+
return function(n, a) {
|
|
720
|
+
return n ? (a == null ? void 0 : a.companyType) === "enskildfirma" ? !!pe(n) : !!me(n) : !1;
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
const Ct = {
|
|
712
724
|
amex: {
|
|
713
725
|
name: "American Express",
|
|
714
726
|
logo: '<g><rect width="48" height="32" rx="4" fill="white"/><g><path d="M8.88 17.9V26.06H17.14L18 24.84L18.84 26.06H23.89V24.22H24.45C24.9584 24.2244 25.4643 24.1502 25.95 24V26.06H29.38V24.6L30.54 26.06H46.16C46.802 26.0712 47.4338 25.8977 47.98 25.56V29C47.5224 30.7722 45.9203 32.0078 44.09 32H4C1.79086 32 0 30.2091 0 28V15.4H2.28L2.75 14.18H3.87L4.33 15.4H22.67V13.94L23.83 15.4H28.64V14.66C29.3453 15.1621 30.1945 15.4217 31.06 15.4H33.93L34.39 14.18H35.51L36 15.4H40.9V13.82L41.9 15.4H45.28V7.24H41.69V8.9L40.62 7.24H37.48V9.34L36.48 7.24H31.14C30.2366 7.21382 29.3524 7.50384 28.64 8.06V7.24H11L10.4 9L9.8 7.2H5.8V9.3L4.86 7.2H1.6L0 11V4C0 1.79086 1.79086 1.31011e-07 4 1.31011e-07H44.09C45.9278 -0.0169872 47.5406 1.2205 48 3V17.9H18.86L18 19.1L17.16 17.9H8.88Z" fill="#296DB6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.32 19.2H24.43V19.16C24.9479 19.1165 25.4595 19.2976 25.8345 19.6574C26.2096 20.0171 26.4119 20.5208 26.39 21.04C26.4028 21.5655 26.1927 22.0718 25.8116 22.4338C25.4306 22.7958 24.9141 22.9797 24.39 22.94H22.69V24.8H21.32V19.2ZM14.71 20.36V19.16H10.18V24.8H14.71V23.6H11.54V22.6H14.65V21.38H11.54V20.38L14.71 20.36ZM18.8 22L21.06 19.2H19.4L18 20.94L16.61 19.16H14.91L17.2 22L15 24.8H16.64L18 23L19.36 24.82H21.08L18.8 22ZM24.31 21.78H22.69V20.36H24.31C24.6911 20.36 25 20.6689 25 21.05C25 21.4311 24.6911 21.74 24.31 21.74V21.78ZM32.17 20.79C32.286 21.7731 31.5831 22.664 30.6 22.78L32.49 24.8H30.78L29.1 22.8H28.48V24.8H27.12V19.22H30.18C31.1631 19.104 32.054 19.8069 32.17 20.79ZM30.06 21.66H28.48V20.36H30.06C30.2378 20.3369 30.4169 20.3918 30.5511 20.5107C30.6853 20.6296 30.7615 20.8007 30.76 20.98C30.7649 21.1604 30.6898 21.3337 30.5547 21.4533C30.4196 21.573 30.2385 21.6267 30.06 21.6V21.66ZM37.36 19.22V20.42L34.19 20.38V21.38H37.28V22.6H34.19V23.6H37.36V24.8H32.81V19.22H37.36ZM41.13 21.42H39.82C39.6175 21.4607 39.4105 21.3753 39.2956 21.2036C39.1808 21.032 39.1808 20.808 39.2956 20.6364C39.4105 20.4647 39.6175 20.3793 39.82 20.42H42.25L42.79 19.22H39.86C39.3615 19.1622 38.8623 19.3225 38.4906 19.6597C38.1189 19.9969 37.9109 20.4782 37.92 20.98C37.8896 21.4469 38.0691 21.903 38.4094 22.2241C38.7498 22.5451 39.2157 22.6976 39.68 22.64H41C41.2025 22.5993 41.4095 22.6847 41.5244 22.8564C41.6392 23.028 41.6392 23.252 41.5244 23.4236C41.4095 23.5953 41.2025 23.6807 41 23.64H38.08V24.84H41C41.5039 24.8812 42.0011 24.7024 42.3634 24.3497C42.7257 23.997 42.9177 23.5049 42.89 23C42.9153 22.5378 42.7326 22.0885 42.392 21.775C42.0514 21.4615 41.5885 21.3166 41.13 21.38V21.42ZM47.46 20.42H45.03L45 20.38C44.7975 20.3393 44.5905 20.4247 44.4756 20.5964C44.3608 20.768 44.3608 20.992 44.4756 21.1636C44.5905 21.3353 44.7975 21.4207 45 21.38H46.36C47.0518 21.3089 47.7118 21.6871 48 22.32V23.66C47.7246 24.4224 46.9666 24.9003 46.16 24.82H43.29V23.62H46.18C46.3825 23.6607 46.5895 23.5753 46.7044 23.4036C46.8192 23.232 46.8192 23.008 46.7044 22.8364C46.5895 22.6647 46.3825 22.5793 46.18 22.62H44.89C44.4257 22.6776 43.9598 22.5251 43.6194 22.2041C43.2791 21.883 43.0996 21.4269 43.13 20.96C43.1209 20.4582 43.3289 19.9769 43.7006 19.6397C44.0723 19.3025 44.5715 19.1422 45.07 19.2H48L47.46 20.42Z" fill="#296DB6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25.45 10.28C25.4719 11.1815 24.8053 11.9521 23.91 12.06L25.79 14.14H24.09L22.41 12.14H21.79V14.14H20.4V8.5H23.45C23.9596 8.43317 24.473 8.59111 24.8569 8.93278C25.2408 9.27446 25.4573 9.76612 25.45 10.28ZM4.23 8.5H2.45L0 14.14H1.48L2 13H4.63L5.11 14.18H6.65L4.23 8.5ZM2.38 11.86L2.93 10.54L3.29 9.66L3.65 10.54L4.19 11.86H2.38ZM10.6 11.76L11.7 8.5H13.89V14.14H12.57V10.44V9.58L12.31 10.44L11 14.14H9.8L8.52 10.44L8.24 9.58V10.44V14.14H6.91V8.5H9.12L10.24 11.76L10.42 12.38L10.6 11.76ZM19.5 9.7V8.5H15V14.14H19.5V12.94H16.33V11.94H19.42V10.72H16.33V9.72L19.5 9.7ZM23.37 10.94H21.79V9.7H23.37C23.5471 9.68019 23.7243 9.73632 23.8577 9.85449C23.9912 9.97265 24.0683 10.1418 24.07 10.32C24.0749 10.5004 23.9998 10.6737 23.8647 10.7933C23.7296 10.913 23.5485 10.9667 23.37 10.94ZM26.11 14.14V8.5H27.48V14.14H26.11ZM31.11 9.72H32.58V8.5H31C30.2562 8.45299 29.5291 8.7337 29.0099 9.26831C28.4907 9.80292 28.2313 10.5379 28.3 11.28V11.36C28.2164 12.0915 28.4596 12.8226 28.9645 13.3583C29.4694 13.8941 30.1849 14.1801 30.92 14.14H31L31.55 12.94H31.1C30.685 12.9613 30.2819 12.7972 29.9999 12.492C29.7179 12.1868 29.586 11.772 29.64 11.36V11.28C29.5925 10.8712 29.7272 10.4621 30.0085 10.1616C30.2897 9.86113 30.6889 9.69961 31.1 9.72H31.11ZM34.09 8.5H35.89L38.3 14.18H36.76L36.28 13H33.61L33.13 14.14H31.67L34.09 8.5ZM34.05 11.86L34.57 10.54L34.93 9.66L35.27 10.54L35.81 11.86H34.05ZM42.61 11.5V8.5H44V14.14H42.35L40.26 10.96L39.9 10.34V11V14.18H38.56V8.54H40.23L42.23 11.54L42.61 12.18V11.5Z" fill="#296DB6"/></g></g>'
|
|
@@ -748,15 +760,15 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
748
760
|
logo: r
|
|
749
761
|
};
|
|
750
762
|
}
|
|
751
|
-
},
|
|
763
|
+
}, kt = (e) => {
|
|
752
764
|
if (document.getElementById("stripe-js")) return e();
|
|
753
765
|
const t = "js.stripe.com/v3/", n = document.createElement("script"), a = document.getElementsByTagName("script")[0];
|
|
754
766
|
return n.src = `https://${t}`, n.id = "stripe-js", e && n.addEventListener("load", (i) => e(null, i), !1), a.parentNode.insertBefore(n, a), !0;
|
|
755
|
-
},
|
|
767
|
+
}, Pt = (e) => kt(() => {
|
|
756
768
|
window.$stripe = Stripe(T.stripe.publishableKey, {
|
|
757
769
|
locale: J.lang || "en"
|
|
758
770
|
}), typeof e == "function" && e();
|
|
759
|
-
}),
|
|
771
|
+
}), ge = {
|
|
760
772
|
data() {
|
|
761
773
|
return {
|
|
762
774
|
stripeCardElementId: null,
|
|
@@ -774,7 +786,7 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
774
786
|
};
|
|
775
787
|
},
|
|
776
788
|
created() {
|
|
777
|
-
|
|
789
|
+
Pt(() => {
|
|
778
790
|
this.stripe = window.$stripe, this.$nextTick(() => {
|
|
779
791
|
this.elements = this.stripe.elements(), this.stripeCardElementId && this.configureStripeCard(this.stripeCardElementId);
|
|
780
792
|
});
|
|
@@ -841,7 +853,7 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
841
853
|
var r;
|
|
842
854
|
const t = e.cloneNode(!0);
|
|
843
855
|
t.style.boxSizing = "border-box", t.style.fontSize = (r = window.getComputedStyle(e)) == null ? void 0 : r.fontSize;
|
|
844
|
-
const n =
|
|
856
|
+
const n = Ke(e), a = () => {
|
|
845
857
|
this.repositionStripeEl({ original: e, clone: t });
|
|
846
858
|
};
|
|
847
859
|
n.addEventListener("scroll", a, {
|
|
@@ -857,7 +869,16 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
857
869
|
t.style.zIndex = i + 1e4, document.body.appendChild(t);
|
|
858
870
|
}
|
|
859
871
|
}
|
|
860
|
-
},
|
|
872
|
+
}, { mapFields: _t } = Te({
|
|
873
|
+
getterType: "forms/getField",
|
|
874
|
+
mutationType: "forms/updateField"
|
|
875
|
+
}), {
|
|
876
|
+
FORM_EDIT_COMPANY: wt,
|
|
877
|
+
FORM_SUBMIT_COMPANY: St,
|
|
878
|
+
SUBMIT_PROMOTION_CODE: Tt,
|
|
879
|
+
SET_FORM_PROMOTION: $t,
|
|
880
|
+
SUBMIT_FORM_PLAN: xt
|
|
881
|
+
} = x, It = {
|
|
861
882
|
i18nOptions: {
|
|
862
883
|
namespaces: "PremiumStripeForm",
|
|
863
884
|
messages: {
|
|
@@ -895,6 +916,11 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
895
916
|
label: "Company name",
|
|
896
917
|
placeholder: "Company name"
|
|
897
918
|
},
|
|
919
|
+
orgNo: {
|
|
920
|
+
label: "Company registration number",
|
|
921
|
+
placeholder: "Company registration number",
|
|
922
|
+
validation: "Add a valid company organisation number"
|
|
923
|
+
},
|
|
898
924
|
region: {
|
|
899
925
|
label: "Country",
|
|
900
926
|
placeholder: "Country"
|
|
@@ -987,6 +1013,11 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
987
1013
|
label: "Företagsnamn",
|
|
988
1014
|
placeholder: "Företagsnamn"
|
|
989
1015
|
},
|
|
1016
|
+
orgNo: {
|
|
1017
|
+
label: "Organisationsnummer",
|
|
1018
|
+
placeholder: "Organisationsnummer",
|
|
1019
|
+
validation: "Ange ett giltigt organisationsnummer"
|
|
1020
|
+
},
|
|
990
1021
|
region: {
|
|
991
1022
|
label: "Land",
|
|
992
1023
|
placeholder: "Land"
|
|
@@ -1049,13 +1080,13 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1049
1080
|
},
|
|
1050
1081
|
name: "PremiumStripeForm",
|
|
1051
1082
|
components: {
|
|
1052
|
-
CAccordion:
|
|
1053
|
-
CCheckbox:
|
|
1054
|
-
CField:
|
|
1055
|
-
CSelect:
|
|
1056
|
-
CSwitch:
|
|
1083
|
+
CAccordion: tt,
|
|
1084
|
+
CCheckbox: $e,
|
|
1085
|
+
CField: Ae,
|
|
1086
|
+
CSelect: ze,
|
|
1087
|
+
CSwitch: qe
|
|
1057
1088
|
},
|
|
1058
|
-
mixins: [
|
|
1089
|
+
mixins: [ge],
|
|
1059
1090
|
props: {
|
|
1060
1091
|
formPlan: {
|
|
1061
1092
|
type: Object,
|
|
@@ -1081,13 +1112,13 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1081
1112
|
emits: ["input", "success", "update:interval"],
|
|
1082
1113
|
setup() {
|
|
1083
1114
|
return {
|
|
1084
|
-
v$:
|
|
1115
|
+
v$: je()
|
|
1085
1116
|
};
|
|
1086
1117
|
},
|
|
1087
1118
|
data() {
|
|
1088
1119
|
return {
|
|
1089
1120
|
regions: q,
|
|
1090
|
-
cardBrands:
|
|
1121
|
+
cardBrands: Ct,
|
|
1091
1122
|
stripeCardElementId: "#card-element",
|
|
1092
1123
|
promoInputVisible: !1,
|
|
1093
1124
|
inputPromotionCode: "",
|
|
@@ -1099,22 +1130,25 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1099
1130
|
};
|
|
1100
1131
|
},
|
|
1101
1132
|
validations() {
|
|
1102
|
-
|
|
1133
|
+
const e = {
|
|
1103
1134
|
formCustomer: {
|
|
1104
1135
|
email: {
|
|
1105
|
-
email:
|
|
1136
|
+
email: Ge
|
|
1106
1137
|
}
|
|
1107
1138
|
},
|
|
1108
1139
|
quantity: {
|
|
1109
|
-
required:
|
|
1110
|
-
minValue:
|
|
1111
|
-
numeric:
|
|
1140
|
+
required: Qe,
|
|
1141
|
+
minValue: We(1),
|
|
1142
|
+
numeric: Ye
|
|
1112
1143
|
},
|
|
1113
1144
|
consent: {
|
|
1114
|
-
required:
|
|
1115
|
-
sameAs:
|
|
1145
|
+
required: Ze(this.collectConsent),
|
|
1146
|
+
sameAs: Ne(this.collectConsent)
|
|
1116
1147
|
}
|
|
1117
1148
|
};
|
|
1149
|
+
return this.requiresOrgNo && (e.organisationNumber = {
|
|
1150
|
+
isValidOrgNoWrapper: bt()
|
|
1151
|
+
}), e;
|
|
1118
1152
|
},
|
|
1119
1153
|
computed: {
|
|
1120
1154
|
...B({
|
|
@@ -1128,11 +1162,28 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1128
1162
|
getMeteredProduct: "stripe/getMeteredProduct",
|
|
1129
1163
|
formPrices: "stripe/formPrices"
|
|
1130
1164
|
}),
|
|
1165
|
+
..._t({
|
|
1166
|
+
organisationNumberStore: "company.organisationNumber"
|
|
1167
|
+
}),
|
|
1168
|
+
organisationNumber: {
|
|
1169
|
+
get() {
|
|
1170
|
+
return this.organisationNumberStore;
|
|
1171
|
+
},
|
|
1172
|
+
set(e) {
|
|
1173
|
+
this.organisationNumberStore = vt(e, this.companyType);
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
requiresOrgNo() {
|
|
1177
|
+
return this.$feature("regionSE") && $[T.brand].name === "Cling";
|
|
1178
|
+
},
|
|
1131
1179
|
messages() {
|
|
1132
1180
|
return {
|
|
1133
1181
|
email: {
|
|
1134
1182
|
email: this.$t("email.email")
|
|
1135
1183
|
},
|
|
1184
|
+
organisationNumber: {
|
|
1185
|
+
isValidOrgNoWrapper: this.$t("orgNo.validation")
|
|
1186
|
+
},
|
|
1136
1187
|
quantity: {
|
|
1137
1188
|
required: this.$t("quantity.required"),
|
|
1138
1189
|
minValue: this.$t("quantity.minValue")
|
|
@@ -1168,38 +1219,38 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1168
1219
|
promotionDescription() {
|
|
1169
1220
|
let e = "- ";
|
|
1170
1221
|
const { amountOff: t, percentOff: n } = this.promotion || {};
|
|
1171
|
-
return t ? e +=
|
|
1222
|
+
return t ? e += R(t, { currency: this.currency }) : n && (e += `${n}%`), e;
|
|
1172
1223
|
},
|
|
1173
1224
|
reasonableUseQuotas() {
|
|
1174
1225
|
var r;
|
|
1175
1226
|
const e = {}, t = (r = this.formPlan) == null ? void 0 : r.StripeProduct;
|
|
1176
1227
|
if (!t) return [];
|
|
1177
1228
|
const { quotas: n, autoAddMeteredTypes: a } = t.metadata, i = n[this.companyAccount.accountConfigurationKeyName] || {};
|
|
1178
|
-
return Object.keys(i).forEach((
|
|
1179
|
-
|
|
1180
|
-
type:
|
|
1181
|
-
count: i[
|
|
1229
|
+
return Object.keys(i).forEach((s) => {
|
|
1230
|
+
s === "bankId" && $[T.brand].defaultRegion === "US" || (e[s] = {
|
|
1231
|
+
type: s,
|
|
1232
|
+
count: i[s] || 0,
|
|
1182
1233
|
cost: null
|
|
1183
1234
|
});
|
|
1184
|
-
}), a.forEach((
|
|
1185
|
-
if (
|
|
1235
|
+
}), a.forEach((s) => {
|
|
1236
|
+
if (s === "bankId" && $[T.brand].defaultRegion === "US")
|
|
1186
1237
|
return;
|
|
1187
|
-
const
|
|
1188
|
-
if (!
|
|
1189
|
-
const u =
|
|
1238
|
+
const p = this.getMeteredProduct(s);
|
|
1239
|
+
if (!p) return;
|
|
1240
|
+
const u = p.prices.find(
|
|
1190
1241
|
(C) => {
|
|
1191
1242
|
var b;
|
|
1192
1243
|
return C.active && ((b = C == null ? void 0 : C.metadata) == null ? void 0 : b.visible) === !0;
|
|
1193
1244
|
}
|
|
1194
1245
|
);
|
|
1195
1246
|
if (!u) return;
|
|
1196
|
-
const y =
|
|
1247
|
+
const y = R(u.amount, {
|
|
1197
1248
|
currency: u.currency,
|
|
1198
1249
|
decimals: 2,
|
|
1199
1250
|
hideZeroDecimals: !0
|
|
1200
1251
|
});
|
|
1201
|
-
e[
|
|
1202
|
-
}), Object.keys(e).map((
|
|
1252
|
+
e[s] || (e[s] = { type: s, count: 0, cost: null }), e[s].cost = y;
|
|
1253
|
+
}), Object.keys(e).map((s) => e[s]);
|
|
1203
1254
|
}
|
|
1204
1255
|
},
|
|
1205
1256
|
watch: {
|
|
@@ -1210,7 +1261,7 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1210
1261
|
}
|
|
1211
1262
|
},
|
|
1212
1263
|
async created() {
|
|
1213
|
-
if (this.$nextTick(() => {
|
|
1264
|
+
if (await this.formEditCompany(), this.$nextTick(() => {
|
|
1214
1265
|
P({
|
|
1215
1266
|
targets: ".anime-payment-modal .anim-block",
|
|
1216
1267
|
translateX: [50, 0],
|
|
@@ -1220,24 +1271,26 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1220
1271
|
});
|
|
1221
1272
|
}), this.customer) {
|
|
1222
1273
|
const e = !!this.customer.paymentMethodId;
|
|
1223
|
-
this.useExistingCard = e, this.useExistingCustomer = e, ["name", "region", "email"].forEach((n) => {
|
|
1274
|
+
this.useExistingCard = e, this.useExistingCustomer = e && this.organisationNumber, ["name", "region", "email"].forEach((n) => {
|
|
1224
1275
|
this.customer[n] && this.$emit("input", {
|
|
1225
1276
|
key: `customer.${n}`,
|
|
1226
1277
|
value: this.customer[n]
|
|
1227
1278
|
});
|
|
1228
1279
|
});
|
|
1229
|
-
const { data: t } = await
|
|
1280
|
+
const { data: t } = await xe();
|
|
1230
1281
|
this.setPromotion({ promotionDetails: t });
|
|
1231
1282
|
}
|
|
1232
1283
|
this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
|
|
1233
1284
|
},
|
|
1234
1285
|
methods: {
|
|
1235
|
-
...
|
|
1236
|
-
usePromotionCode:
|
|
1237
|
-
setPromotion:
|
|
1238
|
-
submitPlan:
|
|
1286
|
+
...Z({
|
|
1287
|
+
usePromotionCode: Tt,
|
|
1288
|
+
setPromotion: $t,
|
|
1289
|
+
submitPlan: xt,
|
|
1290
|
+
formEditCompany: wt,
|
|
1291
|
+
formSubmitCompany: St
|
|
1239
1292
|
}),
|
|
1240
|
-
priceFormat:
|
|
1293
|
+
priceFormat: R,
|
|
1241
1294
|
getIntervalTitle(e) {
|
|
1242
1295
|
return e === "month" ? this.$t("_common:monthly").capitalize() : e === "year" ? this.$t("_common:yearly").capitalize() : e === "oneOff" ? this.$t("oneTimeFee").capitalize() : null;
|
|
1243
1296
|
},
|
|
@@ -1247,9 +1300,12 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1247
1300
|
this.elementsError = this.$t("missingCard");
|
|
1248
1301
|
return;
|
|
1249
1302
|
}
|
|
1250
|
-
await
|
|
1251
|
-
|
|
1252
|
-
|
|
1303
|
+
await Promise.all([
|
|
1304
|
+
this.formSubmitCompany(),
|
|
1305
|
+
this.submitPlan({
|
|
1306
|
+
...!this.useExistingCard && { cardElement: this.card }
|
|
1307
|
+
})
|
|
1308
|
+
]) && this.$emit("success");
|
|
1253
1309
|
},
|
|
1254
1310
|
async verifyPromotionCode(e) {
|
|
1255
1311
|
if (!e) {
|
|
@@ -1259,151 +1315,154 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
|
|
|
1259
1315
|
this.isInvalidPromotionCode = !1, await this.usePromotionCode(e) ? (this.promoInputVisible = !1, this.inputPromotionCode = "") : this.isInvalidPromotionCode = !0;
|
|
1260
1316
|
}
|
|
1261
1317
|
}
|
|
1262
|
-
},
|
|
1318
|
+
}, Et = { class: "root font-inter anime-payment-modal" }, Mt = {
|
|
1263
1319
|
class: "flex w-full",
|
|
1264
1320
|
style: { overflow: "hidden" }
|
|
1265
|
-
},
|
|
1321
|
+
}, Vt = { class: "anim-block p-aside" }, Lt = { style: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, Ht = { style: { "text-align": "right", "padding-right": "0.5em" } }, Bt = ["textContent"], Ft = ["textContent"], Ut = ["src", "alt"], Dt = { style: { "font-weight": "600", "font-size": "21px" } }, Ot = { class: "py-4 text-[15px]" }, Rt = { class: "flex w-full justify-between" }, At = { class: "font-medium" }, zt = { class: "text-right" }, qt = { class: "text-[17px] font-semibold leading-none" }, jt = { class: "text-[13px] opacity-70" }, Nt = { class: "font-medium opacity-70" }, Zt = { class: "text-right opacity-70" }, Yt = {
|
|
1266
1322
|
key: 0,
|
|
1267
1323
|
class: "flex w-full justify-between",
|
|
1268
1324
|
style: { "padding-bottom": "4px" }
|
|
1269
|
-
},
|
|
1325
|
+
}, Wt = { style: { "font-weight": "500", opacity: "0.7" } }, Qt = {
|
|
1270
1326
|
class: "has-text-danger text-right",
|
|
1271
1327
|
style: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" }
|
|
1272
|
-
},
|
|
1328
|
+
}, Gt = ["textContent"], Kt = {
|
|
1273
1329
|
class: "flex w-full justify-between",
|
|
1274
1330
|
style: { "padding-bottom": "4px" }
|
|
1275
|
-
},
|
|
1331
|
+
}, Jt = { style: { "font-weight": "500", opacity: "0.7" } }, Xt = {
|
|
1276
1332
|
class: "text-right",
|
|
1277
1333
|
style: { opacity: "0.7" }
|
|
1278
|
-
},
|
|
1334
|
+
}, en = {
|
|
1279
1335
|
class: "flex w-full justify-between",
|
|
1280
1336
|
style: { "padding-bottom": "4px" }
|
|
1281
|
-
},
|
|
1337
|
+
}, tn = { style: { "font-weight": "500", opacity: "0.7" } }, nn = {
|
|
1282
1338
|
class: "text-right",
|
|
1283
1339
|
style: { opacity: "0.7" }
|
|
1284
|
-
},
|
|
1340
|
+
}, rn = { class: "flex w-full justify-end" }, an = { class: "p-badge flex w-full items-center" }, on = {
|
|
1285
1341
|
class: "has-text-success",
|
|
1286
1342
|
style: { "margin-right": "0.5em" },
|
|
1287
1343
|
width: "17",
|
|
1288
1344
|
height: "15",
|
|
1289
1345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1290
1346
|
viewBox: "0 0 448 512"
|
|
1291
|
-
},
|
|
1347
|
+
}, sn = { class: "p-badge flex w-full items-center" }, ln = {
|
|
1292
1348
|
class: "has-text-success",
|
|
1293
1349
|
style: { "margin-right": "0.5em" },
|
|
1294
1350
|
width: "17",
|
|
1295
1351
|
height: "20",
|
|
1296
1352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1297
1353
|
viewBox: "0 0 512 512"
|
|
1298
|
-
},
|
|
1354
|
+
}, cn = { class: "p-badge flex w-full items-center" }, un = ["textContent"], dn = { class: "p-badge flex w-full items-center" }, mn = ["textContent"], pn = {
|
|
1299
1355
|
class: "anim-block p-block",
|
|
1300
1356
|
style: { "padding-bottom": "2em" }
|
|
1301
|
-
},
|
|
1357
|
+
}, hn = { style: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, fn = { style: { opacity: "0.5" } }, gn = {
|
|
1302
1358
|
class: "anim-block",
|
|
1303
1359
|
style: { "font-size": "14px" }
|
|
1304
|
-
},
|
|
1360
|
+
}, yn = {
|
|
1305
1361
|
key: 0,
|
|
1306
1362
|
class: "p-block"
|
|
1307
|
-
},
|
|
1363
|
+
}, vn = { class: "p-block-title flex w-full items-center" }, bn = { class: "flex w-full" }, Cn = {
|
|
1308
1364
|
class: "p-option-list",
|
|
1309
1365
|
style: { flex: "1 1 auto" }
|
|
1310
|
-
},
|
|
1366
|
+
}, kn = {
|
|
1311
1367
|
class: "p-option-list flex w-full items-center justify-center",
|
|
1312
1368
|
style: { "margin-left": "calc(1 * var(--rem))", flex: "0 0" }
|
|
1313
|
-
},
|
|
1369
|
+
}, Pn = {
|
|
1314
1370
|
class: "p-option-list flex w-full items-center justify-center",
|
|
1315
1371
|
style: { "margin-left": "3px", flex: "0 0" }
|
|
1316
|
-
},
|
|
1372
|
+
}, _n = {
|
|
1317
1373
|
key: 1,
|
|
1318
1374
|
class: "p-callout",
|
|
1319
1375
|
style: { position: "relative", padding: "calc(1 * var(--rem))", "border-radius": "8px" }
|
|
1320
|
-
},
|
|
1376
|
+
}, wn = { class: "flex w-full items-center" }, Sn = ["innerHTML"], Tn = { style: { "margin-left": "calc(0.5 * var(--rem))" } }, $n = { style: { "margin-right": "5px" } }, xn = { key: 0 }, In = { key: 1 }, En = { class: "p-block" }, Mn = {
|
|
1321
1377
|
key: 0,
|
|
1322
1378
|
class: "p-block-title flex w-full items-center"
|
|
1323
|
-
},
|
|
1379
|
+
}, Vn = {
|
|
1324
1380
|
key: 0,
|
|
1325
1381
|
class: "p-block"
|
|
1326
|
-
},
|
|
1382
|
+
}, Ln = {
|
|
1327
1383
|
id: "card-element",
|
|
1328
1384
|
class: "bg-gray-100",
|
|
1329
1385
|
style: { width: "400px", padding: "1em 1em", "border-radius": "0.5em", "min-height": "54px" }
|
|
1330
|
-
},
|
|
1386
|
+
}, Hn = ["textContent"], Bn = { class: "p-block" }, Fn = {
|
|
1387
|
+
key: 0,
|
|
1388
|
+
class: "p-block"
|
|
1389
|
+
}, Un = { class: "p-block" }, Dn = ["value"], On = { class: "p-block" }, Rn = {
|
|
1331
1390
|
key: 0,
|
|
1332
1391
|
class: "anim-block p-block"
|
|
1333
|
-
},
|
|
1392
|
+
}, An = ["href"], zn = ["href"], qn = {
|
|
1334
1393
|
key: 1,
|
|
1335
1394
|
class: "c-flex-row c-align-middle"
|
|
1336
|
-
},
|
|
1337
|
-
function
|
|
1338
|
-
const
|
|
1339
|
-
return c(), d("div",
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
class:
|
|
1395
|
+
}, jn = ["textContent"], Nn = { class: "anim-block p-block" }, Zn = { style: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, Yn = ["textContent"], Wn = { class: "list-button" }, Qn = ["textContent"], Gn = ["textContent"], Kn = { style: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, Jn = ["textContent"], Xn = ["textContent"], er = { style: { padding: "0 calc(1 * var(--rem))" } }, tr = ["textContent"], nr = ["textContent"], rr = ["textContent"];
|
|
1396
|
+
function ir(e, t, n, a, i, r) {
|
|
1397
|
+
const s = v("CSwitch"), p = v("CButton"), u = v("CInput"), y = v("CField"), C = v("CIcon"), b = v("CSelect"), M = v("CCheckbox"), A = v("CAccordion"), F = v("modal"), O = de("tooltip");
|
|
1398
|
+
return c(), d("div", Et, [
|
|
1399
|
+
o("div", Mt, [
|
|
1400
|
+
o("div", Vt, [
|
|
1401
|
+
o("div", {
|
|
1402
|
+
class: N([n.uiPlan.accountType, "p-callout"])
|
|
1344
1403
|
}, [
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1404
|
+
o("div", Lt, [
|
|
1405
|
+
o("div", Ht, [
|
|
1406
|
+
o("div", {
|
|
1348
1407
|
style: { opacity: "0.7" },
|
|
1349
1408
|
textContent: l(e.$t("payYearly"))
|
|
1350
|
-
}, null, 8,
|
|
1351
|
-
|
|
1409
|
+
}, null, 8, Bt),
|
|
1410
|
+
o("div", {
|
|
1352
1411
|
class: "text-primary-500 font-medium",
|
|
1353
1412
|
textContent: l(e.$t("saveAmount"))
|
|
1354
|
-
}, null, 8,
|
|
1413
|
+
}, null, 8, Ft)
|
|
1355
1414
|
]),
|
|
1356
|
-
h(
|
|
1415
|
+
h(s, {
|
|
1357
1416
|
"model-value": n.formPlan.interval === "year",
|
|
1358
1417
|
size: "small",
|
|
1359
1418
|
type: "secondary",
|
|
1360
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1419
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.$emit(
|
|
1361
1420
|
"update:interval",
|
|
1362
1421
|
n.formPlan.interval === "year" ? "month" : "year"
|
|
1363
1422
|
))
|
|
1364
1423
|
}, null, 8, ["model-value"])
|
|
1365
1424
|
]),
|
|
1366
|
-
|
|
1367
|
-
|
|
1425
|
+
o("div", null, [
|
|
1426
|
+
o("img", {
|
|
1368
1427
|
src: n.uiPlan.img,
|
|
1369
1428
|
alt: n.uiPlan.name,
|
|
1370
1429
|
width: "50",
|
|
1371
1430
|
height: "50",
|
|
1372
1431
|
style: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%", "margin-bottom": "calc(1 * var(--rem))" }
|
|
1373
|
-
}, null, 8,
|
|
1432
|
+
}, null, 8, Ut)
|
|
1374
1433
|
]),
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
(c(!0), d(
|
|
1378
|
-
key: `interval-${
|
|
1434
|
+
o("div", Dt, l(e.$t("cardTitle", { plan: n.uiPlan.name })), 1),
|
|
1435
|
+
o("div", Ot, [
|
|
1436
|
+
(c(!0), d(S, null, L(e.formPrices.intervals, (m, E) => (c(), d("div", {
|
|
1437
|
+
key: `interval-${E}`,
|
|
1379
1438
|
class: "mb-4 border-b border-gray-200 pb-2"
|
|
1380
1439
|
}, [
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
g(l(
|
|
1440
|
+
o("div", Rt, [
|
|
1441
|
+
o("div", At, l(r.getIntervalTitle(E)), 1),
|
|
1442
|
+
o("div", zt, [
|
|
1443
|
+
o("div", qt, l(r.priceFormat(m.subTotal, { currency: r.currency })), 1),
|
|
1444
|
+
o("div", jt, [
|
|
1445
|
+
g(l(m.vatAmount ? e.$t("_common:vat.exVat", {
|
|
1387
1446
|
thing: e.$t("_common:vat.vat")
|
|
1388
1447
|
}) : e.$t("_common:total").capitalize()) + " ", 1),
|
|
1389
|
-
|
|
1390
|
-
g("/ " + l(e.$t(`_common:${
|
|
1448
|
+
E !== "oneOff" ? (c(), d(S, { key: 0 }, [
|
|
1449
|
+
g("/ " + l(e.$t(`_common:${E}`)), 1)
|
|
1391
1450
|
], 64)) : k("", !0)
|
|
1392
1451
|
])
|
|
1393
1452
|
])
|
|
1394
1453
|
]),
|
|
1395
|
-
(c(!0), d(
|
|
1396
|
-
key:
|
|
1454
|
+
(c(!0), d(S, null, L(m.items, (Y, be) => (c(), d("div", {
|
|
1455
|
+
key: be,
|
|
1397
1456
|
class: "mt-2 flex w-full justify-between pb-1"
|
|
1398
1457
|
}, [
|
|
1399
|
-
|
|
1400
|
-
|
|
1458
|
+
o("div", Nt, l(n.disableQuantity ? "" : `${Y.quantity} x `) + l(Y.name.capitalize()), 1),
|
|
1459
|
+
o("div", Zt, l(r.priceFormat(Y.amount, { currency: r.currency })), 1)
|
|
1401
1460
|
]))), 128))
|
|
1402
1461
|
]))), 128)),
|
|
1403
|
-
e.promotion ? (c(), d("div",
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
h(
|
|
1462
|
+
e.promotion ? (c(), d("div", Yt, [
|
|
1463
|
+
o("div", Wt, l(e.promotion.code || e.promotion.name), 1),
|
|
1464
|
+
o("div", Qt, [
|
|
1465
|
+
h(p, {
|
|
1407
1466
|
disabled: i.isEditLock,
|
|
1408
1467
|
"icon-props": { size: 15 },
|
|
1409
1468
|
size: "small",
|
|
@@ -1411,26 +1470,26 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1411
1470
|
pattern: "tertiary",
|
|
1412
1471
|
icon: "trash",
|
|
1413
1472
|
style: { height: "inherit", "margin-right": "3px" },
|
|
1414
|
-
onClick: t[1] || (t[1] = (
|
|
1473
|
+
onClick: t[1] || (t[1] = (m) => e.$emit("input", { key: "promotion", value: null }))
|
|
1415
1474
|
}, null, 8, ["disabled"]),
|
|
1416
|
-
|
|
1475
|
+
o("div", {
|
|
1417
1476
|
textContent: l(r.promotionDescription)
|
|
1418
|
-
}, null, 8,
|
|
1477
|
+
}, null, 8, Gt)
|
|
1419
1478
|
])
|
|
1420
1479
|
])) : k("", !0),
|
|
1421
|
-
e.formPrices.vatAmount ? (c(), d(
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1480
|
+
e.formPrices.vatAmount ? (c(), d(S, { key: 1 }, [
|
|
1481
|
+
o("div", Kt, [
|
|
1482
|
+
o("div", Jt, l(e.$t("_common:vat.vat").capitalize()), 1),
|
|
1483
|
+
o("div", Xt, l(r.priceFormat(e.formPrices.vatAmount, { currency: r.currency })), 1)
|
|
1425
1484
|
]),
|
|
1426
|
-
|
|
1427
|
-
|
|
1485
|
+
o("div", en, [
|
|
1486
|
+
o("div", tn, l(e.$t("_common:vat.incVat", {
|
|
1428
1487
|
thing: e.$t("_common:vat.vat")
|
|
1429
1488
|
}).capitalize()), 1),
|
|
1430
|
-
|
|
1489
|
+
o("div", nn, l(r.priceFormat(e.formPrices.totalAmount, { currency: r.currency })), 1)
|
|
1431
1490
|
])
|
|
1432
1491
|
], 64)) : k("", !0),
|
|
1433
|
-
D(
|
|
1492
|
+
D(o("div", rn, [
|
|
1434
1493
|
i.promoInputVisible ? (c(), w(y, {
|
|
1435
1494
|
key: 1,
|
|
1436
1495
|
expanded: "",
|
|
@@ -1439,20 +1498,20 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1439
1498
|
default: f(() => [
|
|
1440
1499
|
h(u, {
|
|
1441
1500
|
modelValue: i.inputPromotionCode,
|
|
1442
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
1501
|
+
"onUpdate:modelValue": t[4] || (t[4] = (m) => i.inputPromotionCode = m),
|
|
1443
1502
|
modelModifiers: { trim: !0 },
|
|
1444
1503
|
placeholder: e.$t("promotion.placeholder"),
|
|
1445
1504
|
"custom-class": i.isInvalidPromotionCode ? "is-danger shake" : "",
|
|
1446
1505
|
size: "small",
|
|
1447
|
-
onBlur: t[5] || (t[5] = (
|
|
1448
|
-
onKeyup: t[6] || (t[6] =
|
|
1506
|
+
onBlur: t[5] || (t[5] = (m) => r.verifyPromotionCode(i.inputPromotionCode)),
|
|
1507
|
+
onKeyup: t[6] || (t[6] = Ie((m) => r.verifyPromotionCode(i.inputPromotionCode), ["enter"]))
|
|
1449
1508
|
}, {
|
|
1450
1509
|
suffix: f(() => [
|
|
1451
|
-
h(
|
|
1510
|
+
h(p, {
|
|
1452
1511
|
loading: e.isPosting,
|
|
1453
1512
|
type: "secondary",
|
|
1454
1513
|
size: "small",
|
|
1455
|
-
onClick: t[3] || (t[3] = (
|
|
1514
|
+
onClick: t[3] || (t[3] = (m) => r.verifyPromotionCode(i.inputPromotionCode))
|
|
1456
1515
|
}, {
|
|
1457
1516
|
default: f(() => [
|
|
1458
1517
|
g(l(e.$t("promotion.submit")), 1)
|
|
@@ -1464,14 +1523,14 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1464
1523
|
}, 8, ["modelValue", "placeholder", "custom-class"])
|
|
1465
1524
|
]),
|
|
1466
1525
|
_: 1
|
|
1467
|
-
})) : (c(), w(
|
|
1526
|
+
})) : (c(), w(p, {
|
|
1468
1527
|
key: 0,
|
|
1469
1528
|
disabled: i.isEditLock,
|
|
1470
1529
|
type: "secondary",
|
|
1471
1530
|
pattern: "tertiary",
|
|
1472
1531
|
size: "small",
|
|
1473
1532
|
style: { "text-decoration": "underline", "margin-right": "-1em" },
|
|
1474
|
-
onClick: t[2] || (t[2] = (
|
|
1533
|
+
onClick: t[2] || (t[2] = (m) => i.promoInputVisible = !0)
|
|
1475
1534
|
}, {
|
|
1476
1535
|
default: f(() => [
|
|
1477
1536
|
g(l(e.$t("promotion.add")), 1)
|
|
@@ -1483,77 +1542,77 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1483
1542
|
])
|
|
1484
1543
|
])
|
|
1485
1544
|
], 2),
|
|
1486
|
-
|
|
1487
|
-
(c(), d("svg",
|
|
1488
|
-
|
|
1545
|
+
o("div", an, [
|
|
1546
|
+
(c(), d("svg", on, t[20] || (t[20] = [
|
|
1547
|
+
o("path", {
|
|
1489
1548
|
fill: "currentColor",
|
|
1490
1549
|
d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"
|
|
1491
1550
|
}, null, -1)
|
|
1492
1551
|
]))),
|
|
1493
1552
|
g(" " + l(e.$t("highlights.securePayment")), 1)
|
|
1494
1553
|
]),
|
|
1495
|
-
|
|
1496
|
-
(c(), d("svg",
|
|
1497
|
-
|
|
1554
|
+
o("div", sn, [
|
|
1555
|
+
(c(), d("svg", ln, t[21] || (t[21] = [
|
|
1556
|
+
o("path", {
|
|
1498
1557
|
fill: "currentColor",
|
|
1499
1558
|
d: "M512 256c0-37.7-23.7-69.9-57.1-82.4 14.7-32.4 8.8-71.9-17.9-98.6-26.7-26.7-66.2-32.6-98.6-17.9C325.9 23.7 293.7 0 256 0s-69.9 23.7-82.4 57.1c-32.4-14.7-72-8.8-98.6 17.9-26.7 26.7-32.6 66.2-17.9 98.6C23.7 186.1 0 218.3 0 256s23.7 69.9 57.1 82.4c-14.7 32.4-8.8 72 17.9 98.6 26.6 26.6 66.1 32.7 98.6 17.9 12.5 33.3 44.7 57.1 82.4 57.1s69.9-23.7 82.4-57.1c32.6 14.8 72 8.7 98.6-17.9 26.7-26.7 32.6-66.2 17.9-98.6 33.4-12.5 57.1-44.7 57.1-82.4zm-144.8-44.25L236.16 341.74c-4.31 4.28-11.28 4.25-15.55-.06l-75.72-76.33c-4.28-4.31-4.25-11.28.06-15.56l26.03-25.82c4.31-4.28 11.28-4.25 15.56.06l42.15 42.49 97.2-96.42c4.31-4.28 11.28-4.25 15.55.06l25.82 26.03c4.28 4.32 4.26 11.29-.06 15.56z"
|
|
1500
1559
|
}, null, -1)
|
|
1501
1560
|
]))),
|
|
1502
1561
|
g(" " + l(e.$t("highlights.satisfiedCustomer")), 1)
|
|
1503
1562
|
]),
|
|
1504
|
-
n.hideExtraInfo ? k("", !0) : (c(), d(
|
|
1505
|
-
|
|
1563
|
+
n.hideExtraInfo ? k("", !0) : (c(), d(S, { key: 0 }, [
|
|
1564
|
+
o("div", cn, [
|
|
1506
1565
|
h(C, {
|
|
1507
1566
|
size: 17,
|
|
1508
1567
|
"stroke-width": "2",
|
|
1509
1568
|
type: "question",
|
|
1510
1569
|
style: { opacity: "0.65", "margin-right": "0.5em" }
|
|
1511
1570
|
}),
|
|
1512
|
-
|
|
1571
|
+
o("span", {
|
|
1513
1572
|
style: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" },
|
|
1514
|
-
onClick: t[7] || (t[7] = (
|
|
1573
|
+
onClick: t[7] || (t[7] = (m) => e.$modal.show("reasonableUse")),
|
|
1515
1574
|
textContent: l(e.$t("reasonableUse.title"))
|
|
1516
|
-
}, null, 8,
|
|
1575
|
+
}, null, 8, un)
|
|
1517
1576
|
]),
|
|
1518
|
-
|
|
1577
|
+
o("div", dn, [
|
|
1519
1578
|
h(C, {
|
|
1520
1579
|
size: 17,
|
|
1521
1580
|
"stroke-width": "2",
|
|
1522
1581
|
type: "question",
|
|
1523
1582
|
style: { opacity: "0.65", "margin-right": "0.5em" }
|
|
1524
1583
|
}),
|
|
1525
|
-
|
|
1584
|
+
o("span", {
|
|
1526
1585
|
style: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" },
|
|
1527
|
-
onClick: t[8] || (t[8] = (
|
|
1586
|
+
onClick: t[8] || (t[8] = (m) => e.$modal.show("faq")),
|
|
1528
1587
|
textContent: l(e.$t("faq.title"))
|
|
1529
|
-
}, null, 8,
|
|
1588
|
+
}, null, 8, mn)
|
|
1530
1589
|
])
|
|
1531
1590
|
], 64))
|
|
1532
1591
|
]),
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
t[
|
|
1592
|
+
o("div", null, [
|
|
1593
|
+
o("div", pn, [
|
|
1594
|
+
o("div", hn, [
|
|
1595
|
+
o("span", fn, l(e.$t("formSteps")), 1),
|
|
1596
|
+
t[22] || (t[22] = o("br", null, null, -1)),
|
|
1538
1597
|
g(" " + l(e.$t("formTitle")), 1)
|
|
1539
1598
|
])
|
|
1540
1599
|
]),
|
|
1541
|
-
|
|
1542
|
-
n.disableQuantity ? k("", !0) : (c(), d("div",
|
|
1543
|
-
|
|
1544
|
-
|
|
1600
|
+
o("div", gn, [
|
|
1601
|
+
n.disableQuantity ? k("", !0) : (c(), d("div", yn, [
|
|
1602
|
+
o("div", vn, [
|
|
1603
|
+
o("div", null, [
|
|
1545
1604
|
g(l(e.$t("quantity.label")) + " ", 1),
|
|
1546
1605
|
D(h(C, {
|
|
1547
1606
|
class: "text-gray-400",
|
|
1548
1607
|
type: "info",
|
|
1549
1608
|
size: "16"
|
|
1550
1609
|
}, null, 512), [
|
|
1551
|
-
[
|
|
1610
|
+
[O, e.$t("quantity.tooltip")]
|
|
1552
1611
|
])
|
|
1553
1612
|
])
|
|
1554
1613
|
]),
|
|
1555
|
-
|
|
1556
|
-
|
|
1614
|
+
o("div", bn, [
|
|
1615
|
+
o("div", Cn, [
|
|
1557
1616
|
h(y, {
|
|
1558
1617
|
validator: a.v$.quantity,
|
|
1559
1618
|
messages: r.messages.quantity,
|
|
@@ -1562,7 +1621,7 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1562
1621
|
default: f(() => [
|
|
1563
1622
|
D(h(u, {
|
|
1564
1623
|
modelValue: r.quantity,
|
|
1565
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
1624
|
+
"onUpdate:modelValue": t[9] || (t[9] = (m) => r.quantity = m),
|
|
1566
1625
|
modelModifiers: { number: !0 },
|
|
1567
1626
|
disabled: n.uiPlan.accountType === "start" || i.isEditLock,
|
|
1568
1627
|
size: "medium",
|
|
@@ -1571,7 +1630,7 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1571
1630
|
type: "number"
|
|
1572
1631
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
1573
1632
|
[
|
|
1574
|
-
|
|
1633
|
+
O,
|
|
1575
1634
|
n.uiPlan.accountType === "start" ? { content: e.$t("quantity.disabled") } : ""
|
|
1576
1635
|
]
|
|
1577
1636
|
])
|
|
@@ -1579,59 +1638,60 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1579
1638
|
_: 1
|
|
1580
1639
|
}, 8, ["validator", "messages"])
|
|
1581
1640
|
]),
|
|
1582
|
-
|
|
1583
|
-
h(
|
|
1641
|
+
o("div", kn, [
|
|
1642
|
+
h(p, {
|
|
1584
1643
|
disabled: 2 > r.quantity || n.uiPlan.accountType === "start" || i.isEditLock,
|
|
1585
1644
|
type: "none",
|
|
1586
1645
|
pattern: "tertiary",
|
|
1587
1646
|
icon: "minus",
|
|
1588
1647
|
style: { width: "calc(3.5 * var(--rem))" },
|
|
1589
|
-
onClick: t[10] || (t[10] = (
|
|
1648
|
+
onClick: t[10] || (t[10] = (m) => r.quantity--)
|
|
1590
1649
|
}, null, 8, ["disabled"])
|
|
1591
1650
|
]),
|
|
1592
|
-
|
|
1593
|
-
h(
|
|
1651
|
+
o("div", Pn, [
|
|
1652
|
+
h(p, {
|
|
1594
1653
|
disabled: n.uiPlan.accountType === "start" || i.isEditLock,
|
|
1595
1654
|
type: "none",
|
|
1596
1655
|
pattern: "tertiary",
|
|
1597
1656
|
icon: "plus",
|
|
1598
1657
|
style: { width: "calc(3.5 * var(--rem))" },
|
|
1599
|
-
onClick: t[11] || (t[11] = (
|
|
1658
|
+
onClick: t[11] || (t[11] = (m) => r.quantity++)
|
|
1600
1659
|
}, null, 8, ["disabled"])
|
|
1601
1660
|
])
|
|
1602
1661
|
])
|
|
1603
1662
|
])),
|
|
1604
|
-
i.useExistingCustomer ? (c(), d("div",
|
|
1605
|
-
h(
|
|
1663
|
+
i.useExistingCustomer ? (c(), d("div", _n, [
|
|
1664
|
+
h(p, {
|
|
1606
1665
|
size: "small",
|
|
1607
1666
|
rounded: "",
|
|
1608
1667
|
style: { position: "absolute", top: "calc(1 * var(--rem))", right: "calc(1 * var(--rem))" },
|
|
1609
|
-
onClick: t[12] || (t[12] = (
|
|
1668
|
+
onClick: t[12] || (t[12] = (m) => i.useExistingCustomer = !1)
|
|
1610
1669
|
}, {
|
|
1611
1670
|
default: f(() => [
|
|
1612
1671
|
g(l(e.$t("_common:change")), 1)
|
|
1613
1672
|
]),
|
|
1614
1673
|
_: 1
|
|
1615
1674
|
}),
|
|
1616
|
-
|
|
1617
|
-
|
|
1675
|
+
o("div", wn, [
|
|
1676
|
+
o("div", {
|
|
1618
1677
|
innerHTML: i.cardBrands.get(e.customer.paymentMethodBrand, { width: 36 }).logo
|
|
1619
|
-
}, null, 8,
|
|
1620
|
-
|
|
1621
|
-
|
|
1678
|
+
}, null, 8, Sn),
|
|
1679
|
+
o("div", Tn, [
|
|
1680
|
+
o("span", $n, l(i.cardBrands.get(e.customer.paymentMethodBrand).name), 1),
|
|
1622
1681
|
g(" •••• " + l(e.customer.paymentMethodLast4 || ""), 1)
|
|
1623
1682
|
])
|
|
1624
1683
|
]),
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1684
|
+
o("div", null, l(e.customer.name), 1),
|
|
1685
|
+
r.requiresOrgNo ? (c(), d("div", xn, l(r.organisationNumber), 1)) : k("", !0),
|
|
1686
|
+
o("div", null, l(e.customer.email), 1),
|
|
1687
|
+
i.regions[e.customer.region] ? (c(), d("div", In, l(i.regions[e.customer.region].name), 1)) : k("", !0)
|
|
1688
|
+
])) : (c(), d(S, { key: 2 }, [
|
|
1689
|
+
o("div", En, [
|
|
1690
|
+
i.useExistingCard ? k("", !0) : (c(), d("div", Mn, [
|
|
1691
|
+
o("div", null, l(e.$t("paymentInfoLabel")), 1)
|
|
1632
1692
|
])),
|
|
1633
|
-
|
|
1634
|
-
i.useExistingCard && r.existingCardLast4 ? (c(), d("div",
|
|
1693
|
+
o("div", null, [
|
|
1694
|
+
i.useExistingCard && r.existingCardLast4 ? (c(), d("div", Vn, [
|
|
1635
1695
|
g(l(e.$t("paymentInfoLabel")) + " ", 1),
|
|
1636
1696
|
h(y, {
|
|
1637
1697
|
messages: r.messages.email,
|
|
@@ -1645,10 +1705,10 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1645
1705
|
filled: ""
|
|
1646
1706
|
}, {
|
|
1647
1707
|
suffix: f(() => [
|
|
1648
|
-
h(
|
|
1708
|
+
h(p, {
|
|
1649
1709
|
type: "secondary",
|
|
1650
1710
|
size: "small",
|
|
1651
|
-
onClick: t[13] || (t[13] = (
|
|
1711
|
+
onClick: t[13] || (t[13] = (m) => i.useExistingCard = !1)
|
|
1652
1712
|
}, {
|
|
1653
1713
|
default: f(() => [
|
|
1654
1714
|
g(l(e.$t("_common:change")), 1)
|
|
@@ -1662,46 +1722,65 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1662
1722
|
_: 1
|
|
1663
1723
|
}, 8, ["messages"])
|
|
1664
1724
|
])) : k("", !0),
|
|
1665
|
-
D(
|
|
1725
|
+
D(o("div", Ln, null, 512), [
|
|
1666
1726
|
[Q, !i.useExistingCard]
|
|
1667
1727
|
]),
|
|
1668
|
-
D(
|
|
1728
|
+
D(o("div", {
|
|
1669
1729
|
class: "pt-2 text-red-500",
|
|
1670
1730
|
textContent: l(e.elementsError)
|
|
1671
|
-
}, null, 8,
|
|
1731
|
+
}, null, 8, Hn), [
|
|
1672
1732
|
[Q, e.elementsError && !i.useExistingCard]
|
|
1673
1733
|
])
|
|
1674
1734
|
])
|
|
1675
1735
|
]),
|
|
1676
|
-
|
|
1736
|
+
o("div", Bn, [
|
|
1677
1737
|
g(l(e.$t("name.label")) + " ", 1),
|
|
1678
1738
|
h(u, {
|
|
1679
1739
|
"model-value": e.formCustomer.name,
|
|
1680
1740
|
placeholder: e.$t("name.placeholder"),
|
|
1681
1741
|
size: "medium",
|
|
1682
1742
|
filled: "",
|
|
1683
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
1743
|
+
"onUpdate:modelValue": t[14] || (t[14] = (m) => e.$emit("input", { key: "customer.name", value: m }))
|
|
1684
1744
|
}, null, 8, ["model-value", "placeholder"])
|
|
1685
1745
|
]),
|
|
1686
|
-
|
|
1746
|
+
r.requiresOrgNo ? (c(), d("div", Fn, [
|
|
1747
|
+
h(y, {
|
|
1748
|
+
validator: a.v$.organisationNumber,
|
|
1749
|
+
messages: r.messages.organisationNumber,
|
|
1750
|
+
label: e.$t("orgNo.label"),
|
|
1751
|
+
expanded: ""
|
|
1752
|
+
}, {
|
|
1753
|
+
default: f(() => [
|
|
1754
|
+
h(u, {
|
|
1755
|
+
modelValue: r.organisationNumber,
|
|
1756
|
+
"onUpdate:modelValue": t[15] || (t[15] = (m) => r.organisationNumber = m),
|
|
1757
|
+
placeholder: e.$t("orgNo.placeholder"),
|
|
1758
|
+
onBlur: t[16] || (t[16] = (m) => a.v$.organisationNumber.$touch()),
|
|
1759
|
+
filled: ""
|
|
1760
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1761
|
+
]),
|
|
1762
|
+
_: 1
|
|
1763
|
+
}, 8, ["validator", "messages", "label"])
|
|
1764
|
+
])) : k("", !0),
|
|
1765
|
+
o("div", Un, [
|
|
1687
1766
|
g(l(e.$t("region.label")) + " ", 1),
|
|
1688
1767
|
h(b, {
|
|
1689
1768
|
"model-value": e.formCustomer.region,
|
|
1690
1769
|
"select-class": "input",
|
|
1691
1770
|
placeholder: e.$t("region.placeholder"),
|
|
1692
|
-
"onUpdate:modelValue": t[
|
|
1771
|
+
"onUpdate:modelValue": t[17] || (t[17] = (m) => e.$emit("input", { key: "customer.region", value: m })),
|
|
1693
1772
|
filled: ""
|
|
1694
1773
|
}, {
|
|
1695
1774
|
default: f(() => [
|
|
1696
|
-
(c(!0), d(
|
|
1697
|
-
key:
|
|
1698
|
-
value:
|
|
1699
|
-
}, l(
|
|
1775
|
+
(c(!0), d(S, null, L(r.sortedRegions, ({ key: m, title: E }) => (c(), d("option", {
|
|
1776
|
+
key: m,
|
|
1777
|
+
value: m
|
|
1778
|
+
}, l(E), 9, Dn))), 128))
|
|
1700
1779
|
]),
|
|
1701
1780
|
_: 1
|
|
1702
1781
|
}, 8, ["model-value", "placeholder"])
|
|
1703
1782
|
]),
|
|
1704
|
-
|
|
1783
|
+
o("div", On, [
|
|
1705
1784
|
g(l(e.$t("email.label")) + " ", 1),
|
|
1706
1785
|
h(y, {
|
|
1707
1786
|
validator: a.v$.formCustomer.email,
|
|
@@ -1714,7 +1793,7 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1714
1793
|
placeholder: e.$t("email.placeholder"),
|
|
1715
1794
|
size: "medium",
|
|
1716
1795
|
filled: "",
|
|
1717
|
-
"onUpdate:modelValue": t[
|
|
1796
|
+
"onUpdate:modelValue": t[18] || (t[18] = (m) => e.$emit("input", { key: "customer.email", value: m }))
|
|
1718
1797
|
}, null, 8, ["model-value", "placeholder"])
|
|
1719
1798
|
]),
|
|
1720
1799
|
_: 1
|
|
@@ -1722,53 +1801,53 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1722
1801
|
])
|
|
1723
1802
|
], 64))
|
|
1724
1803
|
]),
|
|
1725
|
-
n.collectConsent ? (c(), d("div",
|
|
1804
|
+
n.collectConsent ? (c(), d("div", Rn, [
|
|
1726
1805
|
h(M, {
|
|
1727
1806
|
modelValue: i.consent,
|
|
1728
|
-
"onUpdate:modelValue": t[
|
|
1807
|
+
"onUpdate:modelValue": t[19] || (t[19] = (m) => i.consent = m),
|
|
1729
1808
|
type: "secondary",
|
|
1730
1809
|
size: "normal"
|
|
1731
1810
|
}, {
|
|
1732
1811
|
default: f(() => [
|
|
1733
|
-
|
|
1734
|
-
class:
|
|
1812
|
+
o("div", {
|
|
1813
|
+
class: N([
|
|
1735
1814
|
a.v$.consent.$invalid && a.v$.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
|
|
1736
1815
|
])
|
|
1737
1816
|
}, [
|
|
1738
1817
|
g(l(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " ", 1),
|
|
1739
|
-
|
|
1818
|
+
o("a", {
|
|
1740
1819
|
href: e.$t("_common:brand.termsOfService.url"),
|
|
1741
1820
|
target: "_blank",
|
|
1742
1821
|
rel: "noopener",
|
|
1743
1822
|
class: "underline",
|
|
1744
1823
|
tabindex: "-1"
|
|
1745
|
-
}, l(e.$t("_common:terms.termsAndConditions")), 9,
|
|
1824
|
+
}, l(e.$t("_common:terms.termsAndConditions")), 9, An),
|
|
1746
1825
|
g(" " + l(e.$t("_common:and")) + " ", 1),
|
|
1747
|
-
|
|
1826
|
+
o("a", {
|
|
1748
1827
|
href: e.$t("_common:brand.privacyPolicy.url"),
|
|
1749
1828
|
target: "_blank",
|
|
1750
1829
|
rel: "noopener",
|
|
1751
1830
|
class: "underline",
|
|
1752
1831
|
tabindex: "-1"
|
|
1753
|
-
}, l(e.$t("_common:terms.privacyPolicy")), 9,
|
|
1832
|
+
}, l(e.$t("_common:terms.privacyPolicy")), 9, zn)
|
|
1754
1833
|
], 2)
|
|
1755
1834
|
]),
|
|
1756
1835
|
_: 1
|
|
1757
1836
|
}, 8, ["modelValue"])
|
|
1758
1837
|
])) : k("", !0),
|
|
1759
|
-
e.formError ? (c(), d("div",
|
|
1838
|
+
e.formError ? (c(), d("div", qn, [
|
|
1760
1839
|
h(C, {
|
|
1761
1840
|
type: "warning",
|
|
1762
1841
|
size: "14",
|
|
1763
1842
|
stroke: "hsl(360, 100%, 60%)"
|
|
1764
1843
|
}),
|
|
1765
|
-
|
|
1844
|
+
o("div", {
|
|
1766
1845
|
style: { "margin-left": "0.5em" },
|
|
1767
1846
|
textContent: l(e.formError)
|
|
1768
|
-
}, null, 8,
|
|
1847
|
+
}, null, 8, jn)
|
|
1769
1848
|
])) : k("", !0),
|
|
1770
|
-
|
|
1771
|
-
h(
|
|
1849
|
+
o("div", Nn, [
|
|
1850
|
+
h(p, {
|
|
1772
1851
|
loading: e.isPosting,
|
|
1773
1852
|
type: "secondary",
|
|
1774
1853
|
wide: "",
|
|
@@ -1796,27 +1875,27 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1796
1875
|
name: "faq"
|
|
1797
1876
|
}, {
|
|
1798
1877
|
default: f(() => [
|
|
1799
|
-
|
|
1800
|
-
|
|
1878
|
+
o("div", Zn, [
|
|
1879
|
+
o("div", {
|
|
1801
1880
|
style: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": "0.5em", padding: "calc(1 * var(--rem))" },
|
|
1802
1881
|
textContent: l(e.$t("faq.title"))
|
|
1803
|
-
}, null, 8,
|
|
1804
|
-
(c(), d(
|
|
1805
|
-
key:
|
|
1882
|
+
}, null, 8, Yn),
|
|
1883
|
+
(c(), d(S, null, L(6, (m) => h(A, {
|
|
1884
|
+
key: m,
|
|
1806
1885
|
"default-open": null
|
|
1807
1886
|
}, {
|
|
1808
|
-
trigger: f(({ expanded:
|
|
1809
|
-
|
|
1810
|
-
|
|
1887
|
+
trigger: f(({ expanded: E }) => [
|
|
1888
|
+
o("div", Wn, [
|
|
1889
|
+
o("span", {
|
|
1811
1890
|
textContent: l(
|
|
1812
|
-
e.$t(`faq.items.${
|
|
1891
|
+
e.$t(`faq.items.${m - 1}.title`, {
|
|
1813
1892
|
brand: e.$t("_common:brand.name")
|
|
1814
1893
|
})
|
|
1815
1894
|
)
|
|
1816
|
-
}, null, 8,
|
|
1895
|
+
}, null, 8, Qn),
|
|
1817
1896
|
h(C, {
|
|
1818
1897
|
style: ce([{
|
|
1819
|
-
transform: `rotate(${
|
|
1898
|
+
transform: `rotate(${E ? "0deg" : "180deg"})`
|
|
1820
1899
|
}, { transition: "200ms" }]),
|
|
1821
1900
|
type: "chevron-down",
|
|
1822
1901
|
size: "15"
|
|
@@ -1824,13 +1903,13 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1824
1903
|
])
|
|
1825
1904
|
]),
|
|
1826
1905
|
default: f(() => [
|
|
1827
|
-
|
|
1906
|
+
o("div", {
|
|
1828
1907
|
style: { "font-size": "14px", opacity: "0.65", padding: `0 calc(0.5 * var(--rem)) calc(2 * var(--rem))
|
|
1829
1908
|
calc(0.5 * var(--rem))` },
|
|
1830
1909
|
textContent: l(
|
|
1831
|
-
e.$t(`faq.items.${
|
|
1910
|
+
e.$t(`faq.items.${m - 1}.text`, { brand: e.$t("_common:brand.name") })
|
|
1832
1911
|
)
|
|
1833
|
-
}, null, 8,
|
|
1912
|
+
}, null, 8, Gn)
|
|
1834
1913
|
]),
|
|
1835
1914
|
_: 2
|
|
1836
1915
|
}, 1024)), 64))
|
|
@@ -1849,33 +1928,33 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1849
1928
|
name: "reasonableUse"
|
|
1850
1929
|
}, {
|
|
1851
1930
|
default: f(() => [
|
|
1852
|
-
|
|
1853
|
-
|
|
1931
|
+
o("div", Kn, [
|
|
1932
|
+
o("div", {
|
|
1854
1933
|
style: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "600", padding: "calc(1 * var(--rem))" },
|
|
1855
1934
|
textContent: l(e.$t("reasonableUse.title"))
|
|
1856
|
-
}, null, 8,
|
|
1857
|
-
|
|
1935
|
+
}, null, 8, Jn),
|
|
1936
|
+
o("div", {
|
|
1858
1937
|
style: { "font-size": "15px", opacity: "0.75", padding: "0 calc(1 * var(--rem)) calc(2 * var(--rem))" },
|
|
1859
1938
|
textContent: l(e.$t("reasonableUse.text", { brand: e.$t("_common:brand.name") }))
|
|
1860
|
-
}, null, 8,
|
|
1861
|
-
|
|
1862
|
-
(c(!0), d(
|
|
1863
|
-
key:
|
|
1939
|
+
}, null, 8, Xn),
|
|
1940
|
+
o("div", er, [
|
|
1941
|
+
(c(!0), d(S, null, L(r.reasonableUseQuotas, (m, E) => (c(), d("div", {
|
|
1942
|
+
key: E,
|
|
1864
1943
|
style: { "font-size": "14px", "margin-bottom": "calc(1 * var(--rem))" }
|
|
1865
1944
|
}, [
|
|
1866
|
-
|
|
1945
|
+
o("span", {
|
|
1867
1946
|
style: { "font-weight": "500", "padding-right": "0.5ch" },
|
|
1868
|
-
textContent: l(e.$t(`reasonableUse.${
|
|
1869
|
-
}, null, 8,
|
|
1870
|
-
|
|
1947
|
+
textContent: l(e.$t(`reasonableUse.${m.type}`) + ":")
|
|
1948
|
+
}, null, 8, tr),
|
|
1949
|
+
o("span", {
|
|
1871
1950
|
style: { opacity: "0.75", "padding-right": "0.5ch" },
|
|
1872
|
-
textContent: l(e.$t("reasonableUse.quotaIncluded", { count:
|
|
1873
|
-
}, null, 8,
|
|
1874
|
-
|
|
1951
|
+
textContent: l(e.$t("reasonableUse.quotaIncluded", { count: m.count }))
|
|
1952
|
+
}, null, 8, nr),
|
|
1953
|
+
m.cost ? (c(), d("span", {
|
|
1875
1954
|
key: 0,
|
|
1876
1955
|
style: { opacity: "0.75" },
|
|
1877
|
-
textContent: l(e.$t("reasonableUse.quotaExtra", { cost:
|
|
1878
|
-
}, null, 8,
|
|
1956
|
+
textContent: l(e.$t("reasonableUse.quotaExtra", { cost: m.cost }))
|
|
1957
|
+
}, null, 8, rr)) : k("", !0)
|
|
1879
1958
|
]))), 128))
|
|
1880
1959
|
])
|
|
1881
1960
|
])
|
|
@@ -1884,7 +1963,7 @@ function Zn(e, t, n, a, i, r) {
|
|
|
1884
1963
|
})
|
|
1885
1964
|
]);
|
|
1886
1965
|
}
|
|
1887
|
-
const
|
|
1966
|
+
const ar = /* @__PURE__ */ _(It, [["render", ir], ["__scopeId", "data-v-6021e377"]]), or = {
|
|
1888
1967
|
name: "PremiumStripeSelect",
|
|
1889
1968
|
i18nOptions: {
|
|
1890
1969
|
namespaces: "premiumStripeSelect",
|
|
@@ -1957,18 +2036,18 @@ const Nn = /* @__PURE__ */ _(vt, [["render", Zn], ["__scopeId", "data-v-4eb51708
|
|
|
1957
2036
|
if (typeof t > "u" || typeof n > "u")
|
|
1958
2037
|
return "";
|
|
1959
2038
|
const a = t / (this.interval === "month" ? 1 : 12);
|
|
1960
|
-
return `${
|
|
2039
|
+
return `${R(a, { currency: n })}/${this.$t(
|
|
1961
2040
|
"_common:month"
|
|
1962
2041
|
)}`;
|
|
1963
2042
|
}
|
|
1964
2043
|
}
|
|
1965
|
-
},
|
|
2044
|
+
}, sr = {
|
|
1966
2045
|
class: "animating flex w-full flex-col items-center",
|
|
1967
2046
|
style: { "padding-top": "30px" }
|
|
1968
|
-
},
|
|
2047
|
+
}, lr = {
|
|
1969
2048
|
class: "anim-block flex w-full flex-col items-center text-center",
|
|
1970
2049
|
style: { "margin-bottom": "50px" }
|
|
1971
|
-
},
|
|
2050
|
+
}, cr = ["innerHTML"], ur = { style: { position: "relative" } }, dr = { class: "tgl-btn-group" }, mr = ["onClick", "textContent"], pr = { class: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, hr = ["textContent"], fr = { class: "PriceGrid" }, gr = ["onClick"], yr = ["src", "alt"], vr = { class: "PriceItem__title" }, br = ["textContent"], Cr = {
|
|
1972
2051
|
key: 0,
|
|
1973
2052
|
class: "[.selected_&]:text-primary-500 absolute right-0 top-0 rounded-tr-lg text-gray-400",
|
|
1974
2053
|
width: "50",
|
|
@@ -1976,42 +2055,42 @@ const Nn = /* @__PURE__ */ _(vt, [["render", Zn], ["__scopeId", "data-v-4eb51708
|
|
|
1976
2055
|
viewBox: "0 0 70 70",
|
|
1977
2056
|
fill: "none",
|
|
1978
2057
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1979
|
-
},
|
|
1980
|
-
function
|
|
1981
|
-
const
|
|
1982
|
-
return c(), d("div",
|
|
1983
|
-
|
|
1984
|
-
|
|
2058
|
+
}, kr = { class: "PriceItem__cost" }, Pr = ["textContent"], _r = { style: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, wr = ["textContent"], Sr = { class: "PriceItem__text" }, Tr = ["textContent"];
|
|
2059
|
+
function $r(e, t, n, a, i, r) {
|
|
2060
|
+
const s = v("CButton"), p = de("tooltip");
|
|
2061
|
+
return c(), d("div", sr, [
|
|
2062
|
+
o("div", lr, [
|
|
2063
|
+
o("div", {
|
|
1985
2064
|
style: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" },
|
|
1986
2065
|
innerHTML: e.$t("title", { brand: e.$t("_common:brand.name") })
|
|
1987
|
-
}, null, 8,
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
(c(), d(
|
|
2066
|
+
}, null, 8, cr),
|
|
2067
|
+
o("div", ur, [
|
|
2068
|
+
o("div", dr, [
|
|
2069
|
+
(c(), d(S, null, L(["month", "year"], (u) => o("div", {
|
|
1991
2070
|
key: u,
|
|
1992
|
-
class:
|
|
2071
|
+
class: N([{
|
|
1993
2072
|
selected: n.interval === u
|
|
1994
2073
|
}, "tgl-btn"]),
|
|
1995
2074
|
onClick: (y) => e.$emit("update:interval", u),
|
|
1996
2075
|
textContent: l(e.$t(`_common:paymentInterval.${u}`).capitalize())
|
|
1997
|
-
}, null, 10,
|
|
2076
|
+
}, null, 10, mr)), 64))
|
|
1998
2077
|
]),
|
|
1999
|
-
|
|
2000
|
-
t[1] || (t[1] =
|
|
2078
|
+
o("div", pr, [
|
|
2079
|
+
t[1] || (t[1] = o("svg", {
|
|
2001
2080
|
width: "14",
|
|
2002
2081
|
height: "14",
|
|
2003
2082
|
viewBox: "0 0 24 24",
|
|
2004
2083
|
fill: "none",
|
|
2005
2084
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2006
2085
|
}, [
|
|
2007
|
-
|
|
2086
|
+
o("path", {
|
|
2008
2087
|
d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017",
|
|
2009
2088
|
stroke: "currentColor",
|
|
2010
2089
|
"stroke-width": "2",
|
|
2011
2090
|
"stroke-linecap": "round",
|
|
2012
2091
|
"stroke-linejoin": "round"
|
|
2013
2092
|
}),
|
|
2014
|
-
|
|
2093
|
+
o("path", {
|
|
2015
2094
|
d: "M3.78467 5.87805C4.42683 7.25608 8.24738 13.7995 10.2964 15.6909C13.8158 18.9395 19.2241 17.4113 22.0419 16.6886",
|
|
2016
2095
|
stroke: "currentColor",
|
|
2017
2096
|
"stroke-width": "2",
|
|
@@ -2019,78 +2098,78 @@ function hr(e, t, n, a, i, r) {
|
|
|
2019
2098
|
"stroke-linejoin": "round"
|
|
2020
2099
|
})
|
|
2021
2100
|
], -1)),
|
|
2022
|
-
|
|
2101
|
+
o("span", {
|
|
2023
2102
|
style: { "padding-left": "0.25em" },
|
|
2024
2103
|
textContent: l(e.$t("saveYearly"))
|
|
2025
|
-
}, null, 8,
|
|
2104
|
+
}, null, 8, hr)
|
|
2026
2105
|
])
|
|
2027
2106
|
])
|
|
2028
2107
|
]),
|
|
2029
|
-
|
|
2030
|
-
(c(!0), d(
|
|
2108
|
+
o("div", fr, [
|
|
2109
|
+
(c(!0), d(S, null, L(n.plans, (u, y) => (c(), d("div", {
|
|
2031
2110
|
key: y,
|
|
2032
|
-
class:
|
|
2111
|
+
class: N([{
|
|
2033
2112
|
selected: n.plan === u.accountType
|
|
2034
2113
|
}, "PriceItem anim-block"]),
|
|
2035
2114
|
onClick: (C) => e.$emit("update:plan", u.accountType)
|
|
2036
2115
|
}, [
|
|
2037
|
-
|
|
2038
|
-
|
|
2116
|
+
o("div", null, [
|
|
2117
|
+
o("img", {
|
|
2039
2118
|
src: u.img,
|
|
2040
2119
|
alt: u.name,
|
|
2041
2120
|
width: "50",
|
|
2042
2121
|
height: "50",
|
|
2043
2122
|
style: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }
|
|
2044
|
-
}, null, 8,
|
|
2123
|
+
}, null, 8, yr)
|
|
2045
2124
|
]),
|
|
2046
|
-
|
|
2047
|
-
|
|
2125
|
+
o("div", vr, [
|
|
2126
|
+
o("span", {
|
|
2048
2127
|
textContent: l(u.name)
|
|
2049
|
-
}, null, 8,
|
|
2128
|
+
}, null, 8, br),
|
|
2050
2129
|
t[2] || (t[2] = g(" "))
|
|
2051
2130
|
]),
|
|
2052
|
-
r.currentAccountType === u.accountType ? D((c(), d("svg",
|
|
2053
|
-
|
|
2131
|
+
r.currentAccountType === u.accountType ? D((c(), d("svg", Cr, t[3] || (t[3] = [
|
|
2132
|
+
o("path", {
|
|
2054
2133
|
d: "M0 0H70V70L0 0Z",
|
|
2055
2134
|
fill: "currentColor"
|
|
2056
2135
|
}, null, -1),
|
|
2057
|
-
|
|
2136
|
+
o("path", {
|
|
2058
2137
|
d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732",
|
|
2059
2138
|
stroke: "white",
|
|
2060
2139
|
"stroke-width": "4"
|
|
2061
2140
|
}, null, -1)
|
|
2062
2141
|
]))), [
|
|
2063
|
-
[
|
|
2142
|
+
[p, e.$t("currentPlan")]
|
|
2064
2143
|
]) : k("", !0),
|
|
2065
|
-
|
|
2066
|
-
|
|
2144
|
+
o("div", kr, [
|
|
2145
|
+
o("span", {
|
|
2067
2146
|
style: { display: "inline-block" },
|
|
2068
2147
|
textContent: l(r.getPriceFormatted(u))
|
|
2069
|
-
}, null, 8,
|
|
2148
|
+
}, null, 8, Pr),
|
|
2070
2149
|
t[4] || (t[4] = g(" "))
|
|
2071
2150
|
]),
|
|
2072
|
-
|
|
2151
|
+
o("div", _r, [
|
|
2073
2152
|
h(ue, { name: "vertical-fader" }, {
|
|
2074
2153
|
default: f(() => [
|
|
2075
2154
|
n.interval === "year" && u.accountType !== "free" ? (c(), d("span", {
|
|
2076
2155
|
key: 0,
|
|
2077
2156
|
style: { display: "inline-block" },
|
|
2078
2157
|
textContent: l(e.$t("billedYearly"))
|
|
2079
|
-
}, null, 8,
|
|
2158
|
+
}, null, 8, wr)) : k("", !0)
|
|
2080
2159
|
]),
|
|
2081
2160
|
_: 2
|
|
2082
2161
|
}, 1024)
|
|
2083
2162
|
]),
|
|
2084
|
-
|
|
2085
|
-
(c(!0), d(
|
|
2086
|
-
|
|
2163
|
+
o("ul", Sr, [
|
|
2164
|
+
(c(!0), d(S, null, L(u.features, (C) => (c(), d("li", { key: C }, [
|
|
2165
|
+
o("span", {
|
|
2087
2166
|
textContent: l(C)
|
|
2088
|
-
}, null, 8,
|
|
2167
|
+
}, null, 8, Tr)
|
|
2089
2168
|
]))), 128))
|
|
2090
2169
|
])
|
|
2091
|
-
], 10,
|
|
2170
|
+
], 10, gr))), 128))
|
|
2092
2171
|
]),
|
|
2093
|
-
h(
|
|
2172
|
+
h(s, {
|
|
2094
2173
|
disabled: r.currentAccountType === n.plan && r.currentInterval === n.interval || n.plan === "free",
|
|
2095
2174
|
type: "secondary",
|
|
2096
2175
|
class: "anim-block sticky-btn",
|
|
@@ -2104,7 +2183,7 @@ function hr(e, t, n, a, i, r) {
|
|
|
2104
2183
|
}, 8, ["disabled"])
|
|
2105
2184
|
]);
|
|
2106
2185
|
}
|
|
2107
|
-
const
|
|
2186
|
+
const xr = /* @__PURE__ */ _(or, [["render", $r], ["__scopeId", "data-v-14adef30"]]), Ir = {
|
|
2108
2187
|
sv: {
|
|
2109
2188
|
premiumStripe: {
|
|
2110
2189
|
"features.free": [
|
|
@@ -2147,7 +2226,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2147
2226
|
title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of Offerta.</span>'
|
|
2148
2227
|
}
|
|
2149
2228
|
}
|
|
2150
|
-
},
|
|
2229
|
+
}, Er = {
|
|
2151
2230
|
name: "PremiumStripe",
|
|
2152
2231
|
i18nOptions: {
|
|
2153
2232
|
namespaces: "premiumStripe",
|
|
@@ -2171,7 +2250,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2171
2250
|
`
|
|
2172
2251
|
},
|
|
2173
2252
|
widget: {
|
|
2174
|
-
text: `Service provided by ${
|
|
2253
|
+
text: `Service provided by ${$[T.brand].name}. <a href="${$[T.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Terms</a> for ${$[T.brand].name}.`
|
|
2175
2254
|
}
|
|
2176
2255
|
},
|
|
2177
2256
|
features: {
|
|
@@ -2205,7 +2284,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2205
2284
|
"Custom email address",
|
|
2206
2285
|
"Version control",
|
|
2207
2286
|
...U.checkFeature("bankId") ? ["BankID"] : [],
|
|
2208
|
-
`Hide ${
|
|
2287
|
+
`Hide ${$[T.brand].name}-logo`,
|
|
2209
2288
|
"CRM integrations"
|
|
2210
2289
|
]
|
|
2211
2290
|
},
|
|
@@ -2235,7 +2314,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2235
2314
|
`
|
|
2236
2315
|
},
|
|
2237
2316
|
widget: {
|
|
2238
|
-
text: `Tjänsten tillhandahålls via ${
|
|
2317
|
+
text: `Tjänsten tillhandahålls via ${$[T.brand].name}. <a href="${$[T.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Villkor</a> för ${$[T.brand].name}.`
|
|
2239
2318
|
}
|
|
2240
2319
|
},
|
|
2241
2320
|
features: {
|
|
@@ -2269,7 +2348,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2269
2348
|
"Egen e-postdomän",
|
|
2270
2349
|
"Versionshantering",
|
|
2271
2350
|
...U.checkFeature("bankId") ? ["BankID"] : [],
|
|
2272
|
-
`Göm ${
|
|
2351
|
+
`Göm ${$[T.brand].name}-logo`,
|
|
2273
2352
|
"CRM-Integrationer"
|
|
2274
2353
|
]
|
|
2275
2354
|
},
|
|
@@ -2283,9 +2362,9 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2283
2362
|
}
|
|
2284
2363
|
},
|
|
2285
2364
|
components: {
|
|
2286
|
-
Confetti:
|
|
2287
|
-
PremiumStripeSelect:
|
|
2288
|
-
PremiumStripeForm:
|
|
2365
|
+
Confetti: yt,
|
|
2366
|
+
PremiumStripeSelect: xr,
|
|
2367
|
+
PremiumStripeForm: ar
|
|
2289
2368
|
},
|
|
2290
2369
|
emits: ["close"],
|
|
2291
2370
|
props: {
|
|
@@ -2307,7 +2386,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2307
2386
|
};
|
|
2308
2387
|
},
|
|
2309
2388
|
computed: {
|
|
2310
|
-
...
|
|
2389
|
+
...Ee({
|
|
2311
2390
|
forceShowBase: (e) => e.route.query.base,
|
|
2312
2391
|
routeDeal: (e) => e.route.query.deal
|
|
2313
2392
|
}),
|
|
@@ -2360,8 +2439,8 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2360
2439
|
},
|
|
2361
2440
|
prettyPlans() {
|
|
2362
2441
|
const e = [], t = this.getPrice("start", "month") || this.getPrice("start", "year"), n = this.getPrice("base", "month") || this.getPrice("base", "year"), a = t && (this.subscription.maxProjectManagers === 1 && this.subscription.mrr < 4e4 || !["base", "pro"].includes(this.accountType)), i = () => {
|
|
2363
|
-
const r = this.subscription.isStripeLegacy || this.subscription.paymentMethod === "invoice",
|
|
2364
|
-
return n && (r && !this.forceShowBase ?
|
|
2442
|
+
const r = this.subscription.isStripeLegacy || this.subscription.paymentMethod === "invoice", s = this.subscription.billingCycleInterval === "month" && this.subscription.mrr < 45e3 || this.subscription.billingCycleInterval === "year" && this.subscription.mrr < 38e3;
|
|
2443
|
+
return n && (r && !this.forceShowBase ? s : !0);
|
|
2365
2444
|
};
|
|
2366
2445
|
return this.isOfferta && e.push({
|
|
2367
2446
|
name: "Free",
|
|
@@ -2393,21 +2472,21 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2393
2472
|
return this.accountConfigName === "offerta";
|
|
2394
2473
|
},
|
|
2395
2474
|
disableQuantity() {
|
|
2396
|
-
return this.isOfferta &&
|
|
2475
|
+
return this.isOfferta && He.value === "widget";
|
|
2397
2476
|
}
|
|
2398
2477
|
},
|
|
2399
2478
|
beforeCreate() {
|
|
2400
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
2479
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", fe);
|
|
2401
2480
|
},
|
|
2402
2481
|
async created() {
|
|
2403
|
-
this.isOfferta &&
|
|
2482
|
+
this.isOfferta && Le(Ir), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
|
|
2404
2483
|
},
|
|
2405
2484
|
methods: {
|
|
2406
|
-
...
|
|
2407
|
-
loadPrices:
|
|
2408
|
-
resetStripeForm:
|
|
2409
|
-
setFormValue:
|
|
2410
|
-
updateSettings:
|
|
2485
|
+
...Z({
|
|
2486
|
+
loadPrices: x.LOAD_PRICES,
|
|
2487
|
+
resetStripeForm: x.RESET_STRIPE_FORM,
|
|
2488
|
+
setFormValue: x.SET_STRIPE_FORM_VALUE,
|
|
2489
|
+
updateSettings: x.UPDATE_SETTINGS
|
|
2411
2490
|
}),
|
|
2412
2491
|
// Suggest quantity of licenses based on property or from account
|
|
2413
2492
|
async suggestQuantity() {
|
|
@@ -2416,7 +2495,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2416
2495
|
this.quantity = this.suggestedQuantity;
|
|
2417
2496
|
return;
|
|
2418
2497
|
}
|
|
2419
|
-
const { data: e } = await
|
|
2498
|
+
const { data: e } = await Ve();
|
|
2420
2499
|
this.quantity = e;
|
|
2421
2500
|
},
|
|
2422
2501
|
onReset() {
|
|
@@ -2453,7 +2532,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2453
2532
|
setFromDealToken(e) {
|
|
2454
2533
|
if (e)
|
|
2455
2534
|
try {
|
|
2456
|
-
const t =
|
|
2535
|
+
const t = Me(e);
|
|
2457
2536
|
if (t.accountType && (this.plan = t.accountType), t.accountTypeInterval && (this.interval = t.accountTypeInterval), t.accountQuantity && (this.quantity = t.accountQuantity), t.dealSource && (this.dealSource = t.dealSource), t.items) {
|
|
2458
2537
|
const n = [];
|
|
2459
2538
|
Object.keys(t.items).forEach((a) => {
|
|
@@ -2476,26 +2555,26 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2476
2555
|
}
|
|
2477
2556
|
}
|
|
2478
2557
|
}
|
|
2479
|
-
},
|
|
2558
|
+
}, Mr = { class: "font-inter anime-payment-modal font-base relative grid h-full place-items-center overflow-auto bg-white px-12 py-8" }, Vr = { style: { position: "absolute", left: "1em", top: "0.5em", display: "inline-flex", "z-index": "10" } }, Lr = {
|
|
2480
2559
|
key: 0,
|
|
2481
2560
|
class: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4",
|
|
2482
2561
|
style: { "max-width": "calc(55 * var(--rem))" }
|
|
2483
|
-
},
|
|
2562
|
+
}, Hr = ["textContent"], Br = ["innerHTML"], Fr = {
|
|
2484
2563
|
key: 2,
|
|
2485
2564
|
class: "flex h-full w-full flex-col items-center justify-center text-center"
|
|
2486
|
-
},
|
|
2565
|
+
}, Ur = {
|
|
2487
2566
|
key: 0,
|
|
2488
2567
|
class: "success-block",
|
|
2489
2568
|
style: { "font-size": "calc(18px + 2vw)", "font-weight": "800" }
|
|
2490
|
-
},
|
|
2569
|
+
}, Dr = {
|
|
2491
2570
|
class: "success-block",
|
|
2492
2571
|
style: { "font-size": "20px", opacity: "0.7" }
|
|
2493
2572
|
};
|
|
2494
|
-
function
|
|
2495
|
-
const
|
|
2496
|
-
return c(), d("div",
|
|
2497
|
-
|
|
2498
|
-
h(
|
|
2573
|
+
function Or(e, t, n, a, i, r) {
|
|
2574
|
+
const s = v("CButton"), p = v("CIcon"), u = v("PremiumStripeSelect"), y = v("PremiumStripeForm"), C = v("Confetti");
|
|
2575
|
+
return c(), d("div", Mr, [
|
|
2576
|
+
o("div", Vr, [
|
|
2577
|
+
h(s, {
|
|
2499
2578
|
"icon-props": { size: 20 },
|
|
2500
2579
|
pattern: "tertiary",
|
|
2501
2580
|
type: "none",
|
|
@@ -2503,7 +2582,7 @@ function $r(e, t, n, a, i, r) {
|
|
|
2503
2582
|
icon: "x",
|
|
2504
2583
|
onClick: t[0] || (t[0] = (b) => e.$emit("close"))
|
|
2505
2584
|
}),
|
|
2506
|
-
i.view === "form" ? (c(), w(
|
|
2585
|
+
i.view === "form" ? (c(), w(s, {
|
|
2507
2586
|
key: 0,
|
|
2508
2587
|
"icon-props": { size: 20 },
|
|
2509
2588
|
pattern: "tertiary",
|
|
@@ -2514,22 +2593,22 @@ function $r(e, t, n, a, i, r) {
|
|
|
2514
2593
|
onClick: r.onReset
|
|
2515
2594
|
}, null, 8, ["onClick"])) : k("", !0)
|
|
2516
2595
|
]),
|
|
2517
|
-
r.calloutMode ? (c(), d("div",
|
|
2518
|
-
h(
|
|
2596
|
+
r.calloutMode ? (c(), d("div", Lr, [
|
|
2597
|
+
h(p, {
|
|
2519
2598
|
type: "info",
|
|
2520
2599
|
size: "20",
|
|
2521
2600
|
class: "text-primary-800 absolute left-4 top-5"
|
|
2522
2601
|
}),
|
|
2523
|
-
|
|
2602
|
+
o("div", {
|
|
2524
2603
|
class: "text-primary-800 font-semibold",
|
|
2525
2604
|
textContent: l(e.$t(`callout.${r.calloutMode}.title`))
|
|
2526
|
-
}, null, 8,
|
|
2527
|
-
|
|
2605
|
+
}, null, 8, Hr),
|
|
2606
|
+
o("div", {
|
|
2528
2607
|
class: "text-sm opacity-70",
|
|
2529
2608
|
innerHTML: e.$t(`callout.${r.calloutMode}.text`)
|
|
2530
|
-
}, null, 8,
|
|
2609
|
+
}, null, 8, Br)
|
|
2531
2610
|
])) : k("", !0),
|
|
2532
|
-
|
|
2611
|
+
o("div", null, [
|
|
2533
2612
|
i.view === "select" ? (c(), w(u, {
|
|
2534
2613
|
key: 0,
|
|
2535
2614
|
plan: r.plan,
|
|
@@ -2548,11 +2627,11 @@ function $r(e, t, n, a, i, r) {
|
|
|
2548
2627
|
"onUpdate:interval": t[4] || (t[4] = (b) => r.interval = b),
|
|
2549
2628
|
onInput: e.setFormValue,
|
|
2550
2629
|
onSuccess: r.goToSuccess
|
|
2551
|
-
}, null, 8, ["ui-plan", "form-plan", "disable-quantity", "hide-extra-info", "collect-consent", "onInput", "onSuccess"])) : i.view === "success" ? (c(), d("div",
|
|
2630
|
+
}, null, 8, ["ui-plan", "form-plan", "disable-quantity", "hide-extra-info", "collect-consent", "onInput", "onSuccess"])) : i.view === "success" ? (c(), d("div", Fr, [
|
|
2552
2631
|
h(C, { animate: i.animateConfetti }, null, 8, ["animate"]),
|
|
2553
|
-
i.isEdit ? k("", !0) : (c(), d("div",
|
|
2554
|
-
|
|
2555
|
-
h(
|
|
2632
|
+
i.isEdit ? k("", !0) : (c(), d("div", Ur, l(e.$t("success.title")), 1)),
|
|
2633
|
+
o("div", Dr, l(i.isEdit ? e.$t("success.subTitleEdit") : e.$t("success.subTitle")), 1),
|
|
2634
|
+
h(s, {
|
|
2556
2635
|
class: "success-block",
|
|
2557
2636
|
type: "secondary",
|
|
2558
2637
|
size: "medium",
|
|
@@ -2569,7 +2648,7 @@ function $r(e, t, n, a, i, r) {
|
|
|
2569
2648
|
])
|
|
2570
2649
|
]);
|
|
2571
2650
|
}
|
|
2572
|
-
const
|
|
2651
|
+
const ye = /* @__PURE__ */ _(Er, [["render", Or]]), Rr = {
|
|
2573
2652
|
name: "IsPremium",
|
|
2574
2653
|
computed: {
|
|
2575
2654
|
...B({
|
|
@@ -2591,7 +2670,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2591
2670
|
},
|
|
2592
2671
|
canCreateDocument() {
|
|
2593
2672
|
return this.subscription.freeDocumentsLeft > 0 || // Has free quota left
|
|
2594
|
-
|
|
2673
|
+
V(this.companyAccount, "documentQuota.priceExtra.value") !== null;
|
|
2595
2674
|
},
|
|
2596
2675
|
canCreateTemplate() {
|
|
2597
2676
|
return this.feature("createDocTemplate");
|
|
@@ -2621,7 +2700,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2621
2700
|
} = {}) {
|
|
2622
2701
|
let a = () => null, i = () => null;
|
|
2623
2702
|
typeof t == "function" && (a = t), typeof n == "function" && (i = n), this.$modal.show(
|
|
2624
|
-
|
|
2703
|
+
ye,
|
|
2625
2704
|
{
|
|
2626
2705
|
suggestedQuantity: e,
|
|
2627
2706
|
onUpgrade: a
|
|
@@ -2641,7 +2720,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2641
2720
|
}
|
|
2642
2721
|
}
|
|
2643
2722
|
};
|
|
2644
|
-
function
|
|
2723
|
+
function Ar(e, t, n, a, i, r) {
|
|
2645
2724
|
return H(e.$slots, "default", {
|
|
2646
2725
|
isPremium: r.isPremium,
|
|
2647
2726
|
isPremiumLike: r.isPremiumLike,
|
|
@@ -2662,7 +2741,7 @@ function xr(e, t, n, a, i, r) {
|
|
|
2662
2741
|
canUseSms: r.canUseSms
|
|
2663
2742
|
});
|
|
2664
2743
|
}
|
|
2665
|
-
const
|
|
2744
|
+
const ve = /* @__PURE__ */ _(Rr, [["render", Ar]]), zr = {
|
|
2666
2745
|
i18nOptions: {
|
|
2667
2746
|
namespaces: "components",
|
|
2668
2747
|
messages: {
|
|
@@ -2686,8 +2765,8 @@ const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
|
|
|
2686
2765
|
},
|
|
2687
2766
|
name: "PremiumRestrictedBase",
|
|
2688
2767
|
components: {
|
|
2689
|
-
IsPremium:
|
|
2690
|
-
CalloutLegacy:
|
|
2768
|
+
IsPremium: ve,
|
|
2769
|
+
CalloutLegacy: he
|
|
2691
2770
|
},
|
|
2692
2771
|
emits: ["close"],
|
|
2693
2772
|
props: {
|
|
@@ -2731,38 +2810,38 @@ const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
|
|
|
2731
2810
|
}
|
|
2732
2811
|
}
|
|
2733
2812
|
}
|
|
2734
|
-
},
|
|
2813
|
+
}, qr = { class: "root font-inter" }, jr = { class: "lock-wrapper has-text-white" }, Nr = { style: { width: "100%" } }, Zr = { class: "flex items-center justify-center" }, Yr = { class: "badge-premium" }, Wr = { style: { "text-align": "center" } }, Qr = { class: "title" }, Gr = { class: "sub-title" }, Kr = {
|
|
2735
2814
|
key: 0,
|
|
2736
2815
|
style: { "margin-top": "calc(2 * var(--rem))" }
|
|
2737
|
-
},
|
|
2738
|
-
function
|
|
2739
|
-
const
|
|
2740
|
-
return c(), d("div",
|
|
2741
|
-
|
|
2742
|
-
h(
|
|
2816
|
+
}, Jr = { style: { "margin-top": "calc(2 * var(--rem))" } }, Xr = { style: { "margin-top": "5px" } };
|
|
2817
|
+
function ei(e, t, n, a, i, r) {
|
|
2818
|
+
const s = v("CIcon"), p = v("CalloutLegacy"), u = v("CButton"), y = v("IsPremium");
|
|
2819
|
+
return c(), d("div", qr, [
|
|
2820
|
+
o("div", jr, [
|
|
2821
|
+
h(s, {
|
|
2743
2822
|
type: "lock",
|
|
2744
2823
|
size: "24"
|
|
2745
2824
|
})
|
|
2746
2825
|
]),
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2826
|
+
o("div", Nr, [
|
|
2827
|
+
o("div", Zr, [
|
|
2828
|
+
o("div", Yr, l(e.$t(`badge.${n.plan}`)), 1)
|
|
2750
2829
|
]),
|
|
2751
|
-
|
|
2830
|
+
o("div", Wr, [
|
|
2752
2831
|
H(e.$slots, "default", {}, () => [
|
|
2753
2832
|
H(e.$slots, "image", {}, void 0, !0),
|
|
2754
|
-
|
|
2755
|
-
|
|
2833
|
+
o("div", Qr, l(n.title), 1),
|
|
2834
|
+
o("div", Gr, l(n.subTitle), 1)
|
|
2756
2835
|
], !0),
|
|
2757
|
-
e.$slots.content ? (c(), d("div",
|
|
2836
|
+
e.$slots.content ? (c(), d("div", Kr, [
|
|
2758
2837
|
H(e.$slots, "content", {}, void 0, !0)
|
|
2759
2838
|
])) : k("", !0)
|
|
2760
2839
|
]),
|
|
2761
|
-
|
|
2840
|
+
o("div", Jr, [
|
|
2762
2841
|
h(y, null, {
|
|
2763
2842
|
default: f(({ openUpgradeModal: C, isLegacy: b, showCalloutConvertStripe: M }) => [
|
|
2764
|
-
|
|
2765
|
-
b || M ? (c(), w(
|
|
2843
|
+
o("div", null, [
|
|
2844
|
+
b || M ? (c(), w(p, {
|
|
2766
2845
|
key: 0,
|
|
2767
2846
|
mode: b ? "legacy" : "invoice"
|
|
2768
2847
|
}, null, 8, ["mode"])) : k("", !0),
|
|
@@ -2771,7 +2850,7 @@ function Or(e, t, n, a, i, r) {
|
|
|
2771
2850
|
disabled: b || M,
|
|
2772
2851
|
type: "secondary",
|
|
2773
2852
|
wide: "",
|
|
2774
|
-
onClick: (
|
|
2853
|
+
onClick: (A) => r.onActionClick(n.actionFunction || C)
|
|
2775
2854
|
}, {
|
|
2776
2855
|
default: f(() => [
|
|
2777
2856
|
H(e.$slots, "actionText", {}, () => [
|
|
@@ -2784,7 +2863,7 @@ function Or(e, t, n, a, i, r) {
|
|
|
2784
2863
|
]),
|
|
2785
2864
|
_: 3
|
|
2786
2865
|
}),
|
|
2787
|
-
|
|
2866
|
+
o("div", Xr, [
|
|
2788
2867
|
h(u, {
|
|
2789
2868
|
type: "none",
|
|
2790
2869
|
pattern: "tertiary",
|
|
@@ -2801,7 +2880,7 @@ function Or(e, t, n, a, i, r) {
|
|
|
2801
2880
|
])
|
|
2802
2881
|
]);
|
|
2803
2882
|
}
|
|
2804
|
-
const
|
|
2883
|
+
const I = /* @__PURE__ */ _(zr, [["render", ei], ["__scopeId", "data-v-dd63f0f1"]]), ti = {
|
|
2805
2884
|
i18nOptions: {
|
|
2806
2885
|
namespaces: "PremiumRestrictedBankIdAndSms",
|
|
2807
2886
|
messages: {
|
|
@@ -2819,7 +2898,7 @@ const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"
|
|
|
2819
2898
|
},
|
|
2820
2899
|
name: "PremiumRestrictedBankIdAndSms",
|
|
2821
2900
|
components: {
|
|
2822
|
-
PremiumRestrictedBase:
|
|
2901
|
+
PremiumRestrictedBase: I
|
|
2823
2902
|
},
|
|
2824
2903
|
props: {
|
|
2825
2904
|
onUpgrade: {
|
|
@@ -2833,9 +2912,9 @@ const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"
|
|
|
2833
2912
|
})
|
|
2834
2913
|
}
|
|
2835
2914
|
};
|
|
2836
|
-
function
|
|
2837
|
-
const
|
|
2838
|
-
return c(), w(
|
|
2915
|
+
function ni(e, t, n, a, i, r) {
|
|
2916
|
+
const s = v("PremiumRestrictedBase");
|
|
2917
|
+
return c(), w(s, {
|
|
2839
2918
|
title: e.$t("title", {
|
|
2840
2919
|
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
|
|
2841
2920
|
}),
|
|
@@ -2851,7 +2930,7 @@ function qr(e, t, n, a, i, r) {
|
|
|
2851
2930
|
_: 1
|
|
2852
2931
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
2853
2932
|
}
|
|
2854
|
-
const
|
|
2933
|
+
const ri = /* @__PURE__ */ _(ti, [["render", ni]]), ii = {
|
|
2855
2934
|
i18nOptions: {
|
|
2856
2935
|
namespaces: "licenses",
|
|
2857
2936
|
messages: {
|
|
@@ -2869,7 +2948,7 @@ const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
|
|
|
2869
2948
|
},
|
|
2870
2949
|
name: "PremiumRestrictedCreators",
|
|
2871
2950
|
components: {
|
|
2872
|
-
PremiumRestrictedBase:
|
|
2951
|
+
PremiumRestrictedBase: I
|
|
2873
2952
|
},
|
|
2874
2953
|
props: {
|
|
2875
2954
|
onUpgrade: {
|
|
@@ -2878,9 +2957,9 @@ const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
|
|
|
2878
2957
|
}
|
|
2879
2958
|
}
|
|
2880
2959
|
};
|
|
2881
|
-
function
|
|
2882
|
-
const
|
|
2883
|
-
return c(), w(
|
|
2960
|
+
function ai(e, t, n, a, i, r) {
|
|
2961
|
+
const s = v("PremiumRestrictedBase");
|
|
2962
|
+
return c(), w(s, {
|
|
2884
2963
|
title: e.$t("title"),
|
|
2885
2964
|
"sub-title": e.$t("subTitle"),
|
|
2886
2965
|
"action-function": n.onUpgrade,
|
|
@@ -2892,7 +2971,7 @@ function Nr(e, t, n, a, i, r) {
|
|
|
2892
2971
|
_: 1
|
|
2893
2972
|
}, 8, ["title", "sub-title", "action-function"]);
|
|
2894
2973
|
}
|
|
2895
|
-
const
|
|
2974
|
+
const oi = /* @__PURE__ */ _(ii, [["render", ai]]), si = {
|
|
2896
2975
|
i18nOptions: {
|
|
2897
2976
|
namespaces: "stats",
|
|
2898
2977
|
messages: {
|
|
@@ -2910,7 +2989,7 @@ const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
|
|
|
2910
2989
|
},
|
|
2911
2990
|
name: "PremiumRestrictedDocumentBlocks",
|
|
2912
2991
|
components: {
|
|
2913
|
-
PremiumRestrictedBase:
|
|
2992
|
+
PremiumRestrictedBase: I
|
|
2914
2993
|
},
|
|
2915
2994
|
props: {
|
|
2916
2995
|
onUpgrade: {
|
|
@@ -2919,9 +2998,9 @@ const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
|
|
|
2919
2998
|
}
|
|
2920
2999
|
}
|
|
2921
3000
|
};
|
|
2922
|
-
function
|
|
2923
|
-
const
|
|
2924
|
-
return c(), w(
|
|
3001
|
+
function li(e, t, n, a, i, r) {
|
|
3002
|
+
const s = v("PremiumRestrictedBase");
|
|
3003
|
+
return c(), w(s, {
|
|
2925
3004
|
title: e.$t("title"),
|
|
2926
3005
|
"sub-title": e.$t("subTitle"),
|
|
2927
3006
|
"on-upgrade": n.onUpgrade,
|
|
@@ -2933,7 +3012,7 @@ function Qr(e, t, n, a, i, r) {
|
|
|
2933
3012
|
_: 1
|
|
2934
3013
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
2935
3014
|
}
|
|
2936
|
-
const
|
|
3015
|
+
const ci = /* @__PURE__ */ _(si, [["render", li]]), ui = {
|
|
2937
3016
|
i18nOptions: {
|
|
2938
3017
|
namespaces: "PremiumRestrictedDocuments",
|
|
2939
3018
|
messages: {
|
|
@@ -2957,7 +3036,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
2957
3036
|
},
|
|
2958
3037
|
name: "PremiumRestrictedDocuments",
|
|
2959
3038
|
components: {
|
|
2960
|
-
PremiumRestrictedBase:
|
|
3039
|
+
PremiumRestrictedBase: I
|
|
2961
3040
|
},
|
|
2962
3041
|
emits: ["close"],
|
|
2963
3042
|
props: {
|
|
@@ -2983,7 +3062,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
2983
3062
|
},
|
|
2984
3063
|
created() {
|
|
2985
3064
|
try {
|
|
2986
|
-
|
|
3065
|
+
Fe("/documentLimitReached", {});
|
|
2987
3066
|
} catch (e) {
|
|
2988
3067
|
X(e, { showMessage: !1 });
|
|
2989
3068
|
}
|
|
@@ -2992,8 +3071,8 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
2992
3071
|
this.checkFreeDocVoucher();
|
|
2993
3072
|
},
|
|
2994
3073
|
methods: {
|
|
2995
|
-
...
|
|
2996
|
-
loadCurrentCompany:
|
|
3074
|
+
...Z({
|
|
3075
|
+
loadCurrentCompany: x.DO_LOAD_CURRENT_COMPANY
|
|
2997
3076
|
}),
|
|
2998
3077
|
async checkFreeDocVoucher() {
|
|
2999
3078
|
var t, n;
|
|
@@ -3019,7 +3098,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
3019
3098
|
await ne.post({ code: "freeUserDocs" }), G.setItem(
|
|
3020
3099
|
"voucher-freeUserDocs-company-id",
|
|
3021
3100
|
this.account.CompanyId
|
|
3022
|
-
), await this.loadCurrentCompany(),
|
|
3101
|
+
), await this.loadCurrentCompany(), Be(
|
|
3023
3102
|
"success",
|
|
3024
3103
|
this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
|
|
3025
3104
|
), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
|
|
@@ -3030,32 +3109,32 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
3030
3109
|
}
|
|
3031
3110
|
}
|
|
3032
3111
|
}
|
|
3033
|
-
},
|
|
3112
|
+
}, di = {
|
|
3034
3113
|
key: 0,
|
|
3035
3114
|
style: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" }
|
|
3036
|
-
},
|
|
3115
|
+
}, mi = { style: { "font-size": "16px", "font-weight": "500" } }, pi = ["textContent"], hi = {
|
|
3037
3116
|
class: "flex w-full justify-center",
|
|
3038
3117
|
style: { "margin-top": "calc(1 * var(--rem))" }
|
|
3039
3118
|
};
|
|
3040
|
-
function
|
|
3041
|
-
const
|
|
3042
|
-
return c(), w(
|
|
3119
|
+
function fi(e, t, n, a, i, r) {
|
|
3120
|
+
const s = v("CButton"), p = v("PremiumRestrictedBase");
|
|
3121
|
+
return c(), w(p, {
|
|
3043
3122
|
title: e.$t("title"),
|
|
3044
3123
|
"sub-title": e.$t("subTitle"),
|
|
3045
3124
|
"on-upgrade": n.onUpgrade
|
|
3046
3125
|
}, {
|
|
3047
3126
|
content: f(() => [
|
|
3048
|
-
i.canUseFreeDocVoucher ? (c(), d("div",
|
|
3049
|
-
|
|
3050
|
-
t[0] || (t[0] =
|
|
3127
|
+
i.canUseFreeDocVoucher ? (c(), d("div", di, [
|
|
3128
|
+
o("div", mi, [
|
|
3129
|
+
t[0] || (t[0] = o("span", { style: { "margin-right": "4px" } }, "🎁", -1)),
|
|
3051
3130
|
g(" " + l(e.$t("voucherTitle")), 1)
|
|
3052
3131
|
]),
|
|
3053
|
-
|
|
3132
|
+
o("div", {
|
|
3054
3133
|
style: { opacity: "0.75" },
|
|
3055
3134
|
textContent: l(e.$t("voucherText", { count: i.voucherDocCount }))
|
|
3056
|
-
}, null, 8,
|
|
3057
|
-
|
|
3058
|
-
h(
|
|
3135
|
+
}, null, 8, pi),
|
|
3136
|
+
o("div", hi, [
|
|
3137
|
+
h(s, {
|
|
3059
3138
|
loading: i.isLoading,
|
|
3060
3139
|
transparent: "",
|
|
3061
3140
|
style: { border: "none", background: "hsl(33, 100%, 95%)", color: "hsl(33, 88%, 36%)", "box-shadow": "0 3px 6px -2px rgb(0, 0, 0, 0.3)" },
|
|
@@ -3073,7 +3152,7 @@ function ni(e, t, n, a, i, r) {
|
|
|
3073
3152
|
_: 1
|
|
3074
3153
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3075
3154
|
}
|
|
3076
|
-
const
|
|
3155
|
+
const gi = /* @__PURE__ */ _(ui, [["render", fi]]), yi = {
|
|
3077
3156
|
i18nOptions: {
|
|
3078
3157
|
namespaces: "licenses",
|
|
3079
3158
|
messages: {
|
|
@@ -3097,7 +3176,7 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
|
|
|
3097
3176
|
},
|
|
3098
3177
|
name: "PremiumRestrictedLicenses",
|
|
3099
3178
|
components: {
|
|
3100
|
-
PremiumRestrictedBase:
|
|
3179
|
+
PremiumRestrictedBase: I
|
|
3101
3180
|
},
|
|
3102
3181
|
emits: ["close"],
|
|
3103
3182
|
props: {
|
|
@@ -3117,20 +3196,20 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
|
|
|
3117
3196
|
}
|
|
3118
3197
|
},
|
|
3119
3198
|
beforeCreate() {
|
|
3120
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
3199
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", fe);
|
|
3121
3200
|
},
|
|
3122
3201
|
created() {
|
|
3123
3202
|
this.initLicense();
|
|
3124
3203
|
},
|
|
3125
3204
|
methods: {
|
|
3126
|
-
...
|
|
3127
|
-
loadCurrentCompany:
|
|
3128
|
-
loadPrices:
|
|
3129
|
-
resetStripeForm:
|
|
3130
|
-
updateFormValue:
|
|
3131
|
-
submitPlan:
|
|
3205
|
+
...Z({
|
|
3206
|
+
loadCurrentCompany: x.DO_LOAD_CURRENT_COMPANY,
|
|
3207
|
+
loadPrices: x.LOAD_PRICES,
|
|
3208
|
+
resetStripeForm: x.RESET_STRIPE_FORM,
|
|
3209
|
+
updateFormValue: x.SET_STRIPE_FORM_VALUE,
|
|
3210
|
+
submitPlan: x.SUBMIT_FORM_PLAN
|
|
3132
3211
|
}),
|
|
3133
|
-
priceFormat:
|
|
3212
|
+
priceFormat: R,
|
|
3134
3213
|
async initLicense() {
|
|
3135
3214
|
this.subscription.paymentMethod === "stripe" && (await this.loadPrices(), await this.resetStripeForm(), this.updateFormValue({ key: "plan", value: this.currentPlan }));
|
|
3136
3215
|
},
|
|
@@ -3162,17 +3241,17 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
|
|
|
3162
3241
|
return await this.loadCurrentCompany(), e;
|
|
3163
3242
|
},
|
|
3164
3243
|
async addInvoiceLicense() {
|
|
3165
|
-
await
|
|
3244
|
+
await Ue(), await this.loadCurrentCompany();
|
|
3166
3245
|
}
|
|
3167
3246
|
}
|
|
3168
|
-
},
|
|
3247
|
+
}, vi = {
|
|
3169
3248
|
key: 0,
|
|
3170
3249
|
class: "flex w-full justify-between",
|
|
3171
3250
|
style: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "0.5em 1em", "border-radius": "0.5em" }
|
|
3172
|
-
},
|
|
3173
|
-
function
|
|
3174
|
-
const
|
|
3175
|
-
return c(), w(
|
|
3251
|
+
}, bi = { style: { "text-align": "left" } }, Ci = ["textContent"], ki = ["textContent"], Pi = { style: { "text-align": "right" } }, _i = { style: { "font-size": "13px", opacity: "0.7" } };
|
|
3252
|
+
function wi(e, t, n, a, i, r) {
|
|
3253
|
+
const s = v("PremiumRestrictedBase");
|
|
3254
|
+
return c(), w(s, {
|
|
3176
3255
|
title: e.$t("title"),
|
|
3177
3256
|
"sub-title": e.$t("subTitle"),
|
|
3178
3257
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3182,27 +3261,27 @@ function di(e, t, n, a, i, r) {
|
|
|
3182
3261
|
g(l(e.$t("actionText")), 1)
|
|
3183
3262
|
]),
|
|
3184
3263
|
content: f(() => [
|
|
3185
|
-
r.extraPrice && r.extraPrice.amount && r.extraPrice.currency && r.extraPrice.interval ? (c(), d("div",
|
|
3186
|
-
|
|
3187
|
-
|
|
3264
|
+
r.extraPrice && r.extraPrice.amount && r.extraPrice.currency && r.extraPrice.interval ? (c(), d("div", vi, [
|
|
3265
|
+
o("div", bi, [
|
|
3266
|
+
o("div", {
|
|
3188
3267
|
style: { "font-weight": "500" },
|
|
3189
3268
|
textContent: l(e.$t("productTitle"))
|
|
3190
|
-
}, null, 8,
|
|
3191
|
-
|
|
3269
|
+
}, null, 8, Ci),
|
|
3270
|
+
o("div", {
|
|
3192
3271
|
style: { opacity: "0.75", "font-size": "13px" },
|
|
3193
3272
|
textContent: l(e.$t("productCost"))
|
|
3194
|
-
}, null, 8,
|
|
3273
|
+
}, null, 8, ki)
|
|
3195
3274
|
]),
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3275
|
+
o("div", Pi, [
|
|
3276
|
+
o("div", null, " +" + l(r.priceFormat(r.extraPrice.amount, { currency: r.extraPrice.currency })), 1),
|
|
3277
|
+
o("div", _i, " per " + l(e.$t(`_common:${r.extraPrice.interval}`)), 1)
|
|
3199
3278
|
])
|
|
3200
3279
|
])) : k("", !0)
|
|
3201
3280
|
]),
|
|
3202
3281
|
_: 1
|
|
3203
3282
|
}, 8, ["title", "sub-title", "on-upgrade", "action-function"]);
|
|
3204
3283
|
}
|
|
3205
|
-
const
|
|
3284
|
+
const Si = /* @__PURE__ */ _(yi, [["render", wi]]), Ti = {
|
|
3206
3285
|
i18nOptions: {
|
|
3207
3286
|
namespaces: "personalMessage",
|
|
3208
3287
|
messages: {
|
|
@@ -3218,7 +3297,7 @@ const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
|
|
|
3218
3297
|
},
|
|
3219
3298
|
name: "PremiumRestrictedPersonalMessage",
|
|
3220
3299
|
components: {
|
|
3221
|
-
PremiumRestrictedBase:
|
|
3300
|
+
PremiumRestrictedBase: I
|
|
3222
3301
|
},
|
|
3223
3302
|
props: {
|
|
3224
3303
|
onUpgrade: {
|
|
@@ -3227,15 +3306,15 @@ const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
|
|
|
3227
3306
|
}
|
|
3228
3307
|
}
|
|
3229
3308
|
};
|
|
3230
|
-
function
|
|
3231
|
-
const
|
|
3232
|
-
return c(), w(
|
|
3309
|
+
function $i(e, t, n, a, i, r) {
|
|
3310
|
+
const s = v("PremiumRestrictedBase");
|
|
3311
|
+
return c(), w(s, {
|
|
3233
3312
|
title: e.$t("title"),
|
|
3234
3313
|
"sub-title": e.$t("subTitle"),
|
|
3235
3314
|
"on-upgrade": n.onUpgrade
|
|
3236
3315
|
}, null, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3237
3316
|
}
|
|
3238
|
-
const
|
|
3317
|
+
const xi = /* @__PURE__ */ _(Ti, [["render", $i]]), Ii = {
|
|
3239
3318
|
i18nOptions: {
|
|
3240
3319
|
namespaces: "PremiumRestrictedEditDocumentLayout",
|
|
3241
3320
|
messages: {
|
|
@@ -3253,7 +3332,7 @@ const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
|
|
|
3253
3332
|
},
|
|
3254
3333
|
name: "PremiumRestrictedSaveDocTemplate",
|
|
3255
3334
|
components: {
|
|
3256
|
-
PremiumRestrictedBase:
|
|
3335
|
+
PremiumRestrictedBase: I
|
|
3257
3336
|
},
|
|
3258
3337
|
props: {
|
|
3259
3338
|
onUpgrade: {
|
|
@@ -3262,9 +3341,9 @@ const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
|
|
|
3262
3341
|
}
|
|
3263
3342
|
}
|
|
3264
3343
|
};
|
|
3265
|
-
function
|
|
3266
|
-
const
|
|
3267
|
-
return c(), w(
|
|
3344
|
+
function Ei(e, t, n, a, i, r) {
|
|
3345
|
+
const s = v("PremiumRestrictedBase");
|
|
3346
|
+
return c(), w(s, {
|
|
3268
3347
|
title: e.$t("title"),
|
|
3269
3348
|
"sub-title": e.$t("subTitle"),
|
|
3270
3349
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3276,7 +3355,7 @@ function yi(e, t, n, a, i, r) {
|
|
|
3276
3355
|
_: 1
|
|
3277
3356
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3278
3357
|
}
|
|
3279
|
-
const
|
|
3358
|
+
const Mi = /* @__PURE__ */ _(Ii, [["render", Ei]]), Vi = {
|
|
3280
3359
|
i18nOptions: {
|
|
3281
3360
|
namespaces: "stats",
|
|
3282
3361
|
messages: {
|
|
@@ -3294,7 +3373,7 @@ const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
|
|
|
3294
3373
|
},
|
|
3295
3374
|
name: "PremiumRestrictedStats",
|
|
3296
3375
|
components: {
|
|
3297
|
-
PremiumRestrictedBase:
|
|
3376
|
+
PremiumRestrictedBase: I
|
|
3298
3377
|
},
|
|
3299
3378
|
props: {
|
|
3300
3379
|
onUpgrade: {
|
|
@@ -3303,9 +3382,9 @@ const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
|
|
|
3303
3382
|
}
|
|
3304
3383
|
}
|
|
3305
3384
|
};
|
|
3306
|
-
function
|
|
3307
|
-
const
|
|
3308
|
-
return c(), w(
|
|
3385
|
+
function Li(e, t, n, a, i, r) {
|
|
3386
|
+
const s = v("PremiumRestrictedBase");
|
|
3387
|
+
return c(), w(s, {
|
|
3309
3388
|
title: e.$t("title"),
|
|
3310
3389
|
"sub-title": e.$t("subTitle"),
|
|
3311
3390
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3317,7 +3396,7 @@ function Ci(e, t, n, a, i, r) {
|
|
|
3317
3396
|
_: 1
|
|
3318
3397
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3319
3398
|
}
|
|
3320
|
-
const
|
|
3399
|
+
const Hi = /* @__PURE__ */ _(Vi, [["render", Li]]), Bi = {
|
|
3321
3400
|
i18nOptions: {
|
|
3322
3401
|
namespaces: "subTemplates",
|
|
3323
3402
|
messages: {
|
|
@@ -3333,7 +3412,7 @@ const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
|
|
|
3333
3412
|
},
|
|
3334
3413
|
name: "PremiumRestrictedTemplates",
|
|
3335
3414
|
components: {
|
|
3336
|
-
PremiumRestrictedBase:
|
|
3415
|
+
PremiumRestrictedBase: I
|
|
3337
3416
|
},
|
|
3338
3417
|
props: {
|
|
3339
3418
|
onUpgrade: {
|
|
@@ -3342,15 +3421,15 @@ const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
|
|
|
3342
3421
|
}
|
|
3343
3422
|
}
|
|
3344
3423
|
};
|
|
3345
|
-
function
|
|
3346
|
-
const
|
|
3347
|
-
return c(), w(
|
|
3424
|
+
function Fi(e, t, n, a, i, r) {
|
|
3425
|
+
const s = v("PremiumRestrictedBase");
|
|
3426
|
+
return c(), w(s, {
|
|
3348
3427
|
title: e.$t("title"),
|
|
3349
3428
|
"sub-title": e.$t("subTitle"),
|
|
3350
3429
|
"on-upgrade": n.onUpgrade
|
|
3351
3430
|
}, null, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3352
3431
|
}
|
|
3353
|
-
const
|
|
3432
|
+
const Ui = /* @__PURE__ */ _(Bi, [["render", Fi]]), Di = {
|
|
3354
3433
|
i18nOptions: {
|
|
3355
3434
|
namespaces: "PremiumRestrictedUseDocTemplates",
|
|
3356
3435
|
messages: {
|
|
@@ -3368,7 +3447,7 @@ const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
|
|
|
3368
3447
|
},
|
|
3369
3448
|
name: "PremiumRestrictedUseDocTemplates",
|
|
3370
3449
|
components: {
|
|
3371
|
-
PremiumRestrictedBase:
|
|
3450
|
+
PremiumRestrictedBase: I
|
|
3372
3451
|
},
|
|
3373
3452
|
props: {
|
|
3374
3453
|
onUpgrade: {
|
|
@@ -3377,9 +3456,9 @@ const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
|
|
|
3377
3456
|
}
|
|
3378
3457
|
}
|
|
3379
3458
|
};
|
|
3380
|
-
function
|
|
3381
|
-
const
|
|
3382
|
-
return c(), w(
|
|
3459
|
+
function Oi(e, t, n, a, i, r) {
|
|
3460
|
+
const s = v("PremiumRestrictedBase");
|
|
3461
|
+
return c(), w(s, {
|
|
3383
3462
|
title: e.$t("title"),
|
|
3384
3463
|
"sub-title": e.$t("subTitle"),
|
|
3385
3464
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3391,7 +3470,7 @@ function $i(e, t, n, a, i, r) {
|
|
|
3391
3470
|
_: 1
|
|
3392
3471
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3393
3472
|
}
|
|
3394
|
-
const
|
|
3473
|
+
const Ri = /* @__PURE__ */ _(Di, [["render", Oi]]), Ai = {
|
|
3395
3474
|
i18nOptions: {
|
|
3396
3475
|
namespaces: "winProfile",
|
|
3397
3476
|
keyPrefix: "account.subscription.winProfile",
|
|
@@ -3410,7 +3489,7 @@ const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
|
|
|
3410
3489
|
},
|
|
3411
3490
|
name: "PremiumRestrictedWinProfile",
|
|
3412
3491
|
components: {
|
|
3413
|
-
PremiumRestrictedBase:
|
|
3492
|
+
PremiumRestrictedBase: I
|
|
3414
3493
|
},
|
|
3415
3494
|
props: {
|
|
3416
3495
|
onUpgrade: {
|
|
@@ -3419,27 +3498,27 @@ const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
|
|
|
3419
3498
|
}
|
|
3420
3499
|
}
|
|
3421
3500
|
};
|
|
3422
|
-
function
|
|
3423
|
-
const
|
|
3424
|
-
return c(), w(
|
|
3501
|
+
function zi(e, t, n, a, i, r) {
|
|
3502
|
+
const s = v("PremiumRestrictedBase");
|
|
3503
|
+
return c(), w(s, {
|
|
3425
3504
|
title: e.$t("title"),
|
|
3426
3505
|
"sub-title": e.$t("subTitle"),
|
|
3427
3506
|
"on-upgrade": n.onUpgrade
|
|
3428
3507
|
}, null, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3429
3508
|
}
|
|
3430
|
-
const
|
|
3431
|
-
winProfile:
|
|
3432
|
-
templates:
|
|
3433
|
-
documents:
|
|
3434
|
-
personalMessage:
|
|
3435
|
-
licenses:
|
|
3436
|
-
inviteCreators:
|
|
3437
|
-
stats:
|
|
3438
|
-
documentBlocks:
|
|
3439
|
-
bankIdAndSms:
|
|
3440
|
-
useDocTemplate:
|
|
3441
|
-
saveDocTemplate:
|
|
3442
|
-
},
|
|
3509
|
+
const qi = /* @__PURE__ */ _(Ai, [["render", zi]]), K = {
|
|
3510
|
+
winProfile: qi,
|
|
3511
|
+
templates: Ui,
|
|
3512
|
+
documents: gi,
|
|
3513
|
+
personalMessage: xi,
|
|
3514
|
+
licenses: Si,
|
|
3515
|
+
inviteCreators: oi,
|
|
3516
|
+
stats: Hi,
|
|
3517
|
+
documentBlocks: ci,
|
|
3518
|
+
bankIdAndSms: ri,
|
|
3519
|
+
useDocTemplate: Ri,
|
|
3520
|
+
saveDocTemplate: Mi
|
|
3521
|
+
}, ji = {
|
|
3443
3522
|
name: "IsPremiumPreStep",
|
|
3444
3523
|
inject: {
|
|
3445
3524
|
onUpgradeRequired: {
|
|
@@ -3456,7 +3535,7 @@ const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
|
|
|
3456
3535
|
},
|
|
3457
3536
|
computed: {
|
|
3458
3537
|
modalName() {
|
|
3459
|
-
return K[this.feature] ? K[this.feature] : (
|
|
3538
|
+
return K[this.feature] ? K[this.feature] : (De.error("Missing IsPremiumPreStep component name"), null);
|
|
3460
3539
|
}
|
|
3461
3540
|
},
|
|
3462
3541
|
methods: {
|
|
@@ -3482,13 +3561,13 @@ const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
|
|
|
3482
3561
|
}
|
|
3483
3562
|
}
|
|
3484
3563
|
};
|
|
3485
|
-
function
|
|
3564
|
+
function Ni(e, t, n, a, i, r) {
|
|
3486
3565
|
return H(e.$slots, "default", { onClick: r.onClick });
|
|
3487
3566
|
}
|
|
3488
|
-
const
|
|
3567
|
+
const Zi = /* @__PURE__ */ _(ji, [["render", Ni]]), Yi = Oe({
|
|
3489
3568
|
name: "ProBadge",
|
|
3490
3569
|
render() {
|
|
3491
|
-
return
|
|
3570
|
+
return Re(
|
|
3492
3571
|
"div",
|
|
3493
3572
|
{
|
|
3494
3573
|
class: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
@@ -3496,20 +3575,20 @@ const Vi = /* @__PURE__ */ _(Mi, [["render", Li]]), Hi = Fe({
|
|
|
3496
3575
|
"Pro"
|
|
3497
3576
|
);
|
|
3498
3577
|
}
|
|
3499
|
-
}),
|
|
3578
|
+
}), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3500
3579
|
__proto__: null,
|
|
3501
|
-
CalloutLegacy:
|
|
3502
|
-
Checkout:
|
|
3503
|
-
IsPremium:
|
|
3504
|
-
IsPremiumPreStep:
|
|
3505
|
-
ProBadge:
|
|
3506
|
-
stripeMixin:
|
|
3580
|
+
CalloutLegacy: he,
|
|
3581
|
+
Checkout: ye,
|
|
3582
|
+
IsPremium: ve,
|
|
3583
|
+
IsPremiumPreStep: Zi,
|
|
3584
|
+
ProBadge: Yi,
|
|
3585
|
+
stripeMixin: ge
|
|
3507
3586
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3508
3587
|
export {
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3588
|
+
tt as C,
|
|
3589
|
+
ve as I,
|
|
3590
|
+
Yi as _,
|
|
3591
|
+
Zi as a,
|
|
3592
|
+
ia as i,
|
|
3593
|
+
fe as s
|
|
3515
3594
|
};
|