@cling-se/widget 0.19.13 → 0.20.1
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-Da7NOVA5.js → AddClientCallout-DOzqL6Ei.js} +4 -4
- package/dist/{AnswerModal-B2ApEIfo.js → AnswerModal-aoQoCe3o.js} +679 -681
- package/dist/{AttachmentItem-BM_DzA34.js → AttachmentItem-DTqI5mwy.js} +4 -4
- package/dist/{BaseUpload-CGVbfe4H.js → BaseUpload-nxVqZX3O.js} +2 -2
- package/dist/{BlockMedia-Dza5TjFS.js → BlockMedia-BYVRSrze.js} +1 -1
- package/dist/{CCallout-BpHUnBsq.js → CCallout-Db9YEwws.js} +1 -1
- package/dist/{CCurrencyDropdown-Glt0CY7w.js → CCurrencyDropdown-sRqig-2P.js} +3 -3
- package/dist/{CDropdownItem-rpcdHW76.js → CDropdownItem-CZO28TQW.js} +96 -96
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js → CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js} +2 -2
- package/dist/{CPhoneFormat-uxMRSGaN.js → CPhoneFormat-CUtvNKnk.js} +1 -1
- package/dist/{CPhoneInput-DnigKWiR.js → CPhoneInput-kOcllgTr.js} +5 -5
- package/dist/{CPriceInput-BNVWpxMd.js → CPriceInput-3X1Et9ny.js} +2 -2
- package/dist/{CSelect-ioLMsxK3.js → CSelect-DVCPHAdo.js} +1 -1
- package/dist/{CSkeleton-BsApoNUe.js → CSkeleton-Bxdz5nlu.js} +1 -1
- package/dist/{ClientAutocomplete-Dof0Wnp9.js → ClientAutocomplete-DCphFPmv.js} +3 -3
- package/dist/{ClientModal-CVsZrXLV.js → ClientModal-oTn-trfu.js} +218 -248
- package/dist/{ColorPicker-Ca2a0Dib.js → ColorPicker-Bs_kXTFe.js} +1 -1
- package/dist/{CompanyModal-C6AUjpnI.js → CompanyModal-DzXAdbGd.js} +7 -7
- package/dist/{ContentWrapper-wTfXDKX-.js → ContentWrapper-2wh0OBB0.js} +6 -6
- package/dist/{CoverBlockSettings-BkWhPlN2.js → CoverBlockSettings-DSOoms9U.js} +7 -7
- package/dist/{DocAnswer-DoRmk17c.js → DocAnswer-B529e1E2.js} +2 -2
- package/dist/{DocDetails-D_E3lERC.js → DocDetails-BHqTgx1H.js} +4 -4
- package/dist/{DocForm-DbpjRBRm.js → DocForm-DOdyjHWA.js} +99 -97
- package/dist/{DocFormSend-DN2k9giy.js → DocFormSend-DfrWjvTy.js} +2 -2
- package/dist/{DocLinks-BvtcG9-D.js → DocLinks-BRJnZ1rA.js} +2 -2
- package/dist/{DocModalBase-D_LZXbIj.js → DocModalBase-Cf-C2hVQ.js} +1 -1
- package/dist/{DocPrint-BrjeZaPK.js → DocPrint-OVtsohie.js} +1 -1
- package/dist/{DocReceipt-BXAGCO6L.js → DocReceipt-tmBbom2x.js} +2 -2
- package/dist/{DocSendReminder-BtcutNHV.js → DocSendReminder-C6fGp2qu.js} +1 -1
- package/dist/{DocTextEditor-DYrnRt6O.js → DocTextEditor-D3EjoBGe.js} +171 -148
- package/dist/{DocTimeline-AZQVm00F.js → DocTimeline-CChHnG2Q.js} +2 -2
- package/dist/{DocumentClient-BTsdprjd.js → DocumentClient-kV1ps0P5.js} +5 -5
- package/dist/{DocumentLayout-DbXHslTY.js → DocumentLayout-B2vKSnWD.js} +21 -21
- package/dist/{DocumentLogotype-B6ENzX02.js → DocumentLogotype-BldUocoJ.js} +4 -4
- package/dist/{DocumentVoided-B9AHAIvl.js → DocumentVoided-rZxx0TDM.js} +1 -1
- package/dist/{EmbedInput-BN6DFeq0.js → EmbedInput-C-bORXEJ.js} +3 -3
- package/dist/{EmbedSettings-DD9uIXDi.js → EmbedSettings-CaRoWZzj.js} +3 -3
- package/dist/{ErrorCallout-BFezjCn3.js → ErrorCallout-BQkcHI49.js} +1 -1
- package/dist/{FilePreviewModal-CXE7RahY.js → FilePreviewModal-egIS6jnw.js} +2 -2
- package/dist/{Flag-BCe6xe-D.js → Flag-DUrDD56m.js} +1 -1
- package/dist/{HeaderSettings-Uyr0qhas.js → HeaderSettings-Cfql7vW5.js} +9 -9
- package/dist/{ImageSelectModal-CSW3shsb.js → ImageSelectModal-3U22LhEN.js} +3 -3
- package/dist/{ImageUploadWrapper-DyunQdxO.js → ImageUploadWrapper-DWmlB4Ha.js} +2 -2
- package/dist/{Index-BRhtJdqU.js → Index-38AEfgHb.js} +4 -4
- package/dist/{Index-DAnljErU.js → Index-7rnf6UDQ.js} +6 -6
- package/dist/{Index-BUwF7tDs.js → Index-BepK484N.js} +3 -3
- package/dist/{Index-r-bi4xvP.js → Index-BlBA6eMl.js} +4 -4
- package/dist/{Index-CdtKkfEh.js → Index-BuPSt_Hb.js} +8 -8
- package/dist/{Index-B8EGrohn.js → Index-C2jLt_-J.js} +4 -4
- package/dist/{Index-DRVJFBy_.js → Index-CKisxkqL.js} +3 -3
- package/dist/{Index-BcPpzfWP.js → Index-CN1flEMh.js} +1 -1
- package/dist/{Index-D91m2xKm.js → Index-CRAk8dmP.js} +26 -17
- package/dist/{Index-BieU1ZTV.js → Index-CZFXyZp-.js} +2 -2
- package/dist/{Index-BGVViv6b.js → Index-C_2Gf2Da.js} +46 -37
- package/dist/{Index-ziuExFyj.js → Index-CcOeCvOe.js} +5 -5
- package/dist/{Index-DI91U3g3.js → Index-CcSq7dWo.js} +1 -1
- package/dist/{Index-Ch2Y3XbD.js → Index-Ckr5i1Li.js} +258 -240
- package/dist/{Index-VRzwBnM4.js → Index-Cl7KBtZX.js} +4 -4
- package/dist/{Index-CpZWI-QN.js → Index-CyAAbl1D.js} +14 -14
- package/dist/{Index-DMDWW0zp.js → Index-CyYFJf0D.js} +5 -5
- package/dist/Index-D05o3s14.js +4 -0
- package/dist/{Index-jSpfKPKP.js → Index-D1PUyqFa.js} +8 -8
- package/dist/{Index-32_BJudF.js → Index-DAI1qHEl.js} +3 -3
- package/dist/{Index-DaXHQaxr.js → Index-DAcRb0rT.js} +4 -4
- package/dist/{Index-BGsQAzCd.js → Index-DCWl_6gz.js} +9 -9
- package/dist/{Index-DH5l8DHo.js → Index-DGq9TdPd.js} +4 -4
- package/dist/{Index-Bh5sjhBw.js → Index-DIlbkelD.js} +1 -1
- package/dist/{Index-wb02iXXO.js → Index-DR3O2rVd.js} +5 -5
- package/dist/{Index-CgdCQDsv.js → Index-DSTJ0ZME.js} +7 -7
- package/dist/{Index-BmoysUi1.js → Index-DUKDykzl.js} +2 -2
- package/dist/{Index-Dssz58AL.js → Index-DfMMDolH.js} +3 -3
- package/dist/{Index-C-rVXB4u.js → Index-DikWyKIw.js} +2 -2
- package/dist/{Index-CATlFu8B.js → Index-Dn_EZ_k2.js} +2 -2
- package/dist/{Index-CLdIolDF.js → Index-STi0ufm3.js} +2 -2
- package/dist/{Index-DBozFV2a.js → Index-l8RB4z_B.js} +4 -4
- package/dist/{Index-DKKc3zZQ.js → Index-phqgcko1.js} +6 -6
- package/dist/{Index-Cnnkb8ey.js → Index-xKr7qP9f.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-CUl4C9jx.js → Index.vue_vue_type_script_lang-DsCnlKNn.js} +2 -2
- package/dist/{InputToggleRow-e1gC6XnA.js → InputToggleRow-BiyZz3ua.js} +1 -1
- package/dist/{ManualPopover-BbqVfuJE.js → ManualPopover-CFwiZHZw.js} +1 -1
- package/dist/{MediaWrapper-Bqy-cGev.js → MediaWrapper-B6flFwa-.js} +3 -3
- package/dist/{NotBindingText-_GKq6jSE.js → NotBindingText-CyfRBqiL.js} +2 -2
- package/dist/{PackageGroup-IiQ0mqWg.js → PackageGroup-DDgLD4Yb.js} +5 -5
- package/dist/{PdfTerms-CO7SxSke.js → PdfTerms-zEPJCgb-.js} +2 -2
- package/dist/{PdfViewer-apckUEAj.js → PdfViewer-BNFYiBMf.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-gCh1Q-qi.js → PlainHtml.vue_vue_type_script_setup_true_lang-CPGJZjFh.js} +1 -1
- package/dist/{PriceHeader-CXP09nZ6.js → PriceHeader-B9Mk_GDV.js} +7 -7
- package/dist/{SearchApi-CQOtHW43.js → SearchApi-BsSeYGH9.js} +1 -1
- package/dist/{SendForm-C3v06Gwx.js → SendForm-Ci2s-FsJ.js} +8 -8
- package/dist/{Setup-Dr37DSNY.js → Setup-C5uQOyWH.js} +1 -1
- package/dist/{SmartList-Opr_24HD.js → SmartList-BglLgQmN.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DtvYuVUg.js → Sortable.vue_vue_type_script_setup_true_lang-C-Uy1WwV.js} +1 -1
- package/dist/{TermsSettings-P8IWZn08.js → TermsSettings-BUXZ0GDb.js} +34 -32
- package/dist/{ThemeColorRow-BdXx5ClL.js → ThemeColorRow-EJd126k7.js} +3 -3
- package/dist/{ToggleBinding-BZyqWBnB.js → ToggleBinding-Bxx2OzYq.js} +4 -4
- package/dist/{UploadModal-6E9HzkQ0.js → UploadModal-BjrFM0lw.js} +13 -11
- package/dist/{VideoPlayerInput-DRcDC2q-.js → VideoPlayerInput-o2GX5-Ma.js} +4 -4
- package/dist/{VideoPlayerSettings-Dw7zEg1k.js → VideoPlayerSettings-DXSwsMJl.js} +2 -2
- package/dist/{VideoSelectModal-DIV9-62A.js → VideoSelectModal-BI0-L5dG.js} +3 -3
- package/dist/{focusDrawerMixin-CrKt75PZ.js → focusDrawerMixin-Dz9oC1MR.js} +1 -1
- package/dist/{formDrawerState-BesayjqS.js → formDrawerState-0vhg7tV-.js} +1 -1
- package/dist/fortnoxTheme-B0DA1l7P.js +8 -0
- package/dist/{helpers-DOdzW9pA.js → helpers-Dkn2xKzv.js} +1 -1
- package/dist/{index-DINik6UH.js → index-Bw8qzZRS.js} +1 -1
- package/dist/{index-DWwjiiMe.js → index-D-NDkjvk.js} +1 -1
- package/dist/{index-BHg-4y6B.js → index-DI9iTlQc.js} +8 -8
- package/dist/{index-DNQzIGHD.js → index-DNBN1EEl.js} +642 -565
- package/dist/{index-BnjVWyGe.js → index-Dkh_SXlu.js} +3 -3
- package/dist/{index-DDfG6A20.js → index-c4rO163H.js} +1 -1
- package/dist/{index-Cl5j-fNE.js → index-dqh4rth1.js} +1 -1
- package/dist/index.es.js +3 -33
- package/dist/index.umd.js +142 -142
- package/dist/{main-C18owm58.js → main-DAjWLLG0.js} +5116 -5085
- package/dist/{mapFormMixin-bA_KI0pt.js → mapFormMixin-CFaAoXxf.js} +4 -4
- package/dist/{omit-BVoDlsuC.js → omit-5nzNft5F.js} +2 -2
- package/dist/{publicSenderState-BR7541Fw.js → publicSenderState-BaH8Utk8.js} +1 -1
- package/dist/{splitpanes-OUpaQjCW.js → splitpanes-CxaAqPCT.js} +1 -1
- package/dist/{template-Y3wS95il.js → template-CHAQR6C-.js} +1 -1
- package/dist/{tippy.esm-CQD-ZLcV.js → tippy.esm-DYmyPdOc.js} +5 -5
- package/dist/{useTermsModal-DS9T_NyM.js → useTermsModal-aIBQHQEU.js} +4 -4
- package/dist/{utils-DwKlp8_z.js → utils-CiYKHNqS.js} +1 -1
- package/dist/{validation-b_jF-CIN.js → validation-BRPTZqtn.js} +2 -2
- package/dist/validations-ohsJ5nBz.js +34 -0
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-DEBrME_f.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-DAjWLLG0.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-DoO3uBt-.js";
|
|
4
|
+
import { C as ze } from "./CSelect-DVCPHAdo.js";
|
|
5
|
+
import { b as qe } from "./CDropdownItem-CZO28TQW.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-D-NDkjvk.js";
|
|
9
|
+
import { s as Ne, a as Ze, n as Ye, c as We, r as Qe, e as Ge } from "./index-Bw8qzZRS.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: {
|
|
@@ -2201,11 +2280,10 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2201
2280
|
"API",
|
|
2202
2281
|
"User roles",
|
|
2203
2282
|
"Signing order",
|
|
2204
|
-
"Custom subdomain",
|
|
2205
2283
|
"Custom email address",
|
|
2206
2284
|
"Version control",
|
|
2207
2285
|
...U.checkFeature("bankId") ? ["BankID"] : [],
|
|
2208
|
-
`Hide ${
|
|
2286
|
+
`Hide ${$[T.brand].name}-logo`,
|
|
2209
2287
|
"CRM integrations"
|
|
2210
2288
|
]
|
|
2211
2289
|
},
|
|
@@ -2235,7 +2313,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2235
2313
|
`
|
|
2236
2314
|
},
|
|
2237
2315
|
widget: {
|
|
2238
|
-
text: `Tjänsten tillhandahålls via ${
|
|
2316
|
+
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
2317
|
}
|
|
2240
2318
|
},
|
|
2241
2319
|
features: {
|
|
@@ -2265,11 +2343,10 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2265
2343
|
"API",
|
|
2266
2344
|
"Roller för medlemmar",
|
|
2267
2345
|
"Signeringsordning",
|
|
2268
|
-
"Subdomän",
|
|
2269
2346
|
"Egen e-postdomän",
|
|
2270
2347
|
"Versionshantering",
|
|
2271
2348
|
...U.checkFeature("bankId") ? ["BankID"] : [],
|
|
2272
|
-
`Göm ${
|
|
2349
|
+
`Göm ${$[T.brand].name}-logo`,
|
|
2273
2350
|
"CRM-Integrationer"
|
|
2274
2351
|
]
|
|
2275
2352
|
},
|
|
@@ -2283,9 +2360,9 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2283
2360
|
}
|
|
2284
2361
|
},
|
|
2285
2362
|
components: {
|
|
2286
|
-
Confetti:
|
|
2287
|
-
PremiumStripeSelect:
|
|
2288
|
-
PremiumStripeForm:
|
|
2363
|
+
Confetti: yt,
|
|
2364
|
+
PremiumStripeSelect: xr,
|
|
2365
|
+
PremiumStripeForm: ar
|
|
2289
2366
|
},
|
|
2290
2367
|
emits: ["close"],
|
|
2291
2368
|
props: {
|
|
@@ -2307,7 +2384,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2307
2384
|
};
|
|
2308
2385
|
},
|
|
2309
2386
|
computed: {
|
|
2310
|
-
...
|
|
2387
|
+
...Ee({
|
|
2311
2388
|
forceShowBase: (e) => e.route.query.base,
|
|
2312
2389
|
routeDeal: (e) => e.route.query.deal
|
|
2313
2390
|
}),
|
|
@@ -2360,8 +2437,8 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2360
2437
|
},
|
|
2361
2438
|
prettyPlans() {
|
|
2362
2439
|
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 ?
|
|
2440
|
+
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;
|
|
2441
|
+
return n && (r && !this.forceShowBase ? s : !0);
|
|
2365
2442
|
};
|
|
2366
2443
|
return this.isOfferta && e.push({
|
|
2367
2444
|
name: "Free",
|
|
@@ -2393,21 +2470,21 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2393
2470
|
return this.accountConfigName === "offerta";
|
|
2394
2471
|
},
|
|
2395
2472
|
disableQuantity() {
|
|
2396
|
-
return this.isOfferta &&
|
|
2473
|
+
return this.isOfferta && He.value === "widget";
|
|
2397
2474
|
}
|
|
2398
2475
|
},
|
|
2399
2476
|
beforeCreate() {
|
|
2400
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
2477
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", fe);
|
|
2401
2478
|
},
|
|
2402
2479
|
async created() {
|
|
2403
|
-
this.isOfferta &&
|
|
2480
|
+
this.isOfferta && Le(Ir), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
|
|
2404
2481
|
},
|
|
2405
2482
|
methods: {
|
|
2406
|
-
...
|
|
2407
|
-
loadPrices:
|
|
2408
|
-
resetStripeForm:
|
|
2409
|
-
setFormValue:
|
|
2410
|
-
updateSettings:
|
|
2483
|
+
...Z({
|
|
2484
|
+
loadPrices: x.LOAD_PRICES,
|
|
2485
|
+
resetStripeForm: x.RESET_STRIPE_FORM,
|
|
2486
|
+
setFormValue: x.SET_STRIPE_FORM_VALUE,
|
|
2487
|
+
updateSettings: x.UPDATE_SETTINGS
|
|
2411
2488
|
}),
|
|
2412
2489
|
// Suggest quantity of licenses based on property or from account
|
|
2413
2490
|
async suggestQuantity() {
|
|
@@ -2416,7 +2493,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2416
2493
|
this.quantity = this.suggestedQuantity;
|
|
2417
2494
|
return;
|
|
2418
2495
|
}
|
|
2419
|
-
const { data: e } = await
|
|
2496
|
+
const { data: e } = await Ve();
|
|
2420
2497
|
this.quantity = e;
|
|
2421
2498
|
},
|
|
2422
2499
|
onReset() {
|
|
@@ -2453,7 +2530,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2453
2530
|
setFromDealToken(e) {
|
|
2454
2531
|
if (e)
|
|
2455
2532
|
try {
|
|
2456
|
-
const t =
|
|
2533
|
+
const t = Me(e);
|
|
2457
2534
|
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
2535
|
const n = [];
|
|
2459
2536
|
Object.keys(t.items).forEach((a) => {
|
|
@@ -2476,26 +2553,26 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
|
|
|
2476
2553
|
}
|
|
2477
2554
|
}
|
|
2478
2555
|
}
|
|
2479
|
-
},
|
|
2556
|
+
}, 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
2557
|
key: 0,
|
|
2481
2558
|
class: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4",
|
|
2482
2559
|
style: { "max-width": "calc(55 * var(--rem))" }
|
|
2483
|
-
},
|
|
2560
|
+
}, Hr = ["textContent"], Br = ["innerHTML"], Fr = {
|
|
2484
2561
|
key: 2,
|
|
2485
2562
|
class: "flex h-full w-full flex-col items-center justify-center text-center"
|
|
2486
|
-
},
|
|
2563
|
+
}, Ur = {
|
|
2487
2564
|
key: 0,
|
|
2488
2565
|
class: "success-block",
|
|
2489
2566
|
style: { "font-size": "calc(18px + 2vw)", "font-weight": "800" }
|
|
2490
|
-
},
|
|
2567
|
+
}, Dr = {
|
|
2491
2568
|
class: "success-block",
|
|
2492
2569
|
style: { "font-size": "20px", opacity: "0.7" }
|
|
2493
2570
|
};
|
|
2494
|
-
function
|
|
2495
|
-
const
|
|
2496
|
-
return c(), d("div",
|
|
2497
|
-
|
|
2498
|
-
h(
|
|
2571
|
+
function Or(e, t, n, a, i, r) {
|
|
2572
|
+
const s = v("CButton"), p = v("CIcon"), u = v("PremiumStripeSelect"), y = v("PremiumStripeForm"), C = v("Confetti");
|
|
2573
|
+
return c(), d("div", Mr, [
|
|
2574
|
+
o("div", Vr, [
|
|
2575
|
+
h(s, {
|
|
2499
2576
|
"icon-props": { size: 20 },
|
|
2500
2577
|
pattern: "tertiary",
|
|
2501
2578
|
type: "none",
|
|
@@ -2503,7 +2580,7 @@ function $r(e, t, n, a, i, r) {
|
|
|
2503
2580
|
icon: "x",
|
|
2504
2581
|
onClick: t[0] || (t[0] = (b) => e.$emit("close"))
|
|
2505
2582
|
}),
|
|
2506
|
-
i.view === "form" ? (c(), w(
|
|
2583
|
+
i.view === "form" ? (c(), w(s, {
|
|
2507
2584
|
key: 0,
|
|
2508
2585
|
"icon-props": { size: 20 },
|
|
2509
2586
|
pattern: "tertiary",
|
|
@@ -2514,22 +2591,22 @@ function $r(e, t, n, a, i, r) {
|
|
|
2514
2591
|
onClick: r.onReset
|
|
2515
2592
|
}, null, 8, ["onClick"])) : k("", !0)
|
|
2516
2593
|
]),
|
|
2517
|
-
r.calloutMode ? (c(), d("div",
|
|
2518
|
-
h(
|
|
2594
|
+
r.calloutMode ? (c(), d("div", Lr, [
|
|
2595
|
+
h(p, {
|
|
2519
2596
|
type: "info",
|
|
2520
2597
|
size: "20",
|
|
2521
2598
|
class: "text-primary-800 absolute left-4 top-5"
|
|
2522
2599
|
}),
|
|
2523
|
-
|
|
2600
|
+
o("div", {
|
|
2524
2601
|
class: "text-primary-800 font-semibold",
|
|
2525
2602
|
textContent: l(e.$t(`callout.${r.calloutMode}.title`))
|
|
2526
|
-
}, null, 8,
|
|
2527
|
-
|
|
2603
|
+
}, null, 8, Hr),
|
|
2604
|
+
o("div", {
|
|
2528
2605
|
class: "text-sm opacity-70",
|
|
2529
2606
|
innerHTML: e.$t(`callout.${r.calloutMode}.text`)
|
|
2530
|
-
}, null, 8,
|
|
2607
|
+
}, null, 8, Br)
|
|
2531
2608
|
])) : k("", !0),
|
|
2532
|
-
|
|
2609
|
+
o("div", null, [
|
|
2533
2610
|
i.view === "select" ? (c(), w(u, {
|
|
2534
2611
|
key: 0,
|
|
2535
2612
|
plan: r.plan,
|
|
@@ -2548,11 +2625,11 @@ function $r(e, t, n, a, i, r) {
|
|
|
2548
2625
|
"onUpdate:interval": t[4] || (t[4] = (b) => r.interval = b),
|
|
2549
2626
|
onInput: e.setFormValue,
|
|
2550
2627
|
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",
|
|
2628
|
+
}, null, 8, ["ui-plan", "form-plan", "disable-quantity", "hide-extra-info", "collect-consent", "onInput", "onSuccess"])) : i.view === "success" ? (c(), d("div", Fr, [
|
|
2552
2629
|
h(C, { animate: i.animateConfetti }, null, 8, ["animate"]),
|
|
2553
|
-
i.isEdit ? k("", !0) : (c(), d("div",
|
|
2554
|
-
|
|
2555
|
-
h(
|
|
2630
|
+
i.isEdit ? k("", !0) : (c(), d("div", Ur, l(e.$t("success.title")), 1)),
|
|
2631
|
+
o("div", Dr, l(i.isEdit ? e.$t("success.subTitleEdit") : e.$t("success.subTitle")), 1),
|
|
2632
|
+
h(s, {
|
|
2556
2633
|
class: "success-block",
|
|
2557
2634
|
type: "secondary",
|
|
2558
2635
|
size: "medium",
|
|
@@ -2569,7 +2646,7 @@ function $r(e, t, n, a, i, r) {
|
|
|
2569
2646
|
])
|
|
2570
2647
|
]);
|
|
2571
2648
|
}
|
|
2572
|
-
const
|
|
2649
|
+
const ye = /* @__PURE__ */ _(Er, [["render", Or]]), Rr = {
|
|
2573
2650
|
name: "IsPremium",
|
|
2574
2651
|
computed: {
|
|
2575
2652
|
...B({
|
|
@@ -2591,7 +2668,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2591
2668
|
},
|
|
2592
2669
|
canCreateDocument() {
|
|
2593
2670
|
return this.subscription.freeDocumentsLeft > 0 || // Has free quota left
|
|
2594
|
-
|
|
2671
|
+
V(this.companyAccount, "documentQuota.priceExtra.value") !== null;
|
|
2595
2672
|
},
|
|
2596
2673
|
canCreateTemplate() {
|
|
2597
2674
|
return this.feature("createDocTemplate");
|
|
@@ -2621,7 +2698,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2621
2698
|
} = {}) {
|
|
2622
2699
|
let a = () => null, i = () => null;
|
|
2623
2700
|
typeof t == "function" && (a = t), typeof n == "function" && (i = n), this.$modal.show(
|
|
2624
|
-
|
|
2701
|
+
ye,
|
|
2625
2702
|
{
|
|
2626
2703
|
suggestedQuantity: e,
|
|
2627
2704
|
onUpgrade: a
|
|
@@ -2641,7 +2718,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
|
|
|
2641
2718
|
}
|
|
2642
2719
|
}
|
|
2643
2720
|
};
|
|
2644
|
-
function
|
|
2721
|
+
function Ar(e, t, n, a, i, r) {
|
|
2645
2722
|
return H(e.$slots, "default", {
|
|
2646
2723
|
isPremium: r.isPremium,
|
|
2647
2724
|
isPremiumLike: r.isPremiumLike,
|
|
@@ -2662,7 +2739,7 @@ function xr(e, t, n, a, i, r) {
|
|
|
2662
2739
|
canUseSms: r.canUseSms
|
|
2663
2740
|
});
|
|
2664
2741
|
}
|
|
2665
|
-
const
|
|
2742
|
+
const ve = /* @__PURE__ */ _(Rr, [["render", Ar]]), zr = {
|
|
2666
2743
|
i18nOptions: {
|
|
2667
2744
|
namespaces: "components",
|
|
2668
2745
|
messages: {
|
|
@@ -2686,8 +2763,8 @@ const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
|
|
|
2686
2763
|
},
|
|
2687
2764
|
name: "PremiumRestrictedBase",
|
|
2688
2765
|
components: {
|
|
2689
|
-
IsPremium:
|
|
2690
|
-
CalloutLegacy:
|
|
2766
|
+
IsPremium: ve,
|
|
2767
|
+
CalloutLegacy: he
|
|
2691
2768
|
},
|
|
2692
2769
|
emits: ["close"],
|
|
2693
2770
|
props: {
|
|
@@ -2731,38 +2808,38 @@ const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
|
|
|
2731
2808
|
}
|
|
2732
2809
|
}
|
|
2733
2810
|
}
|
|
2734
|
-
},
|
|
2811
|
+
}, 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
2812
|
key: 0,
|
|
2736
2813
|
style: { "margin-top": "calc(2 * var(--rem))" }
|
|
2737
|
-
},
|
|
2738
|
-
function
|
|
2739
|
-
const
|
|
2740
|
-
return c(), d("div",
|
|
2741
|
-
|
|
2742
|
-
h(
|
|
2814
|
+
}, Jr = { style: { "margin-top": "calc(2 * var(--rem))" } }, Xr = { style: { "margin-top": "5px" } };
|
|
2815
|
+
function ei(e, t, n, a, i, r) {
|
|
2816
|
+
const s = v("CIcon"), p = v("CalloutLegacy"), u = v("CButton"), y = v("IsPremium");
|
|
2817
|
+
return c(), d("div", qr, [
|
|
2818
|
+
o("div", jr, [
|
|
2819
|
+
h(s, {
|
|
2743
2820
|
type: "lock",
|
|
2744
2821
|
size: "24"
|
|
2745
2822
|
})
|
|
2746
2823
|
]),
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2824
|
+
o("div", Nr, [
|
|
2825
|
+
o("div", Zr, [
|
|
2826
|
+
o("div", Yr, l(e.$t(`badge.${n.plan}`)), 1)
|
|
2750
2827
|
]),
|
|
2751
|
-
|
|
2828
|
+
o("div", Wr, [
|
|
2752
2829
|
H(e.$slots, "default", {}, () => [
|
|
2753
2830
|
H(e.$slots, "image", {}, void 0, !0),
|
|
2754
|
-
|
|
2755
|
-
|
|
2831
|
+
o("div", Qr, l(n.title), 1),
|
|
2832
|
+
o("div", Gr, l(n.subTitle), 1)
|
|
2756
2833
|
], !0),
|
|
2757
|
-
e.$slots.content ? (c(), d("div",
|
|
2834
|
+
e.$slots.content ? (c(), d("div", Kr, [
|
|
2758
2835
|
H(e.$slots, "content", {}, void 0, !0)
|
|
2759
2836
|
])) : k("", !0)
|
|
2760
2837
|
]),
|
|
2761
|
-
|
|
2838
|
+
o("div", Jr, [
|
|
2762
2839
|
h(y, null, {
|
|
2763
2840
|
default: f(({ openUpgradeModal: C, isLegacy: b, showCalloutConvertStripe: M }) => [
|
|
2764
|
-
|
|
2765
|
-
b || M ? (c(), w(
|
|
2841
|
+
o("div", null, [
|
|
2842
|
+
b || M ? (c(), w(p, {
|
|
2766
2843
|
key: 0,
|
|
2767
2844
|
mode: b ? "legacy" : "invoice"
|
|
2768
2845
|
}, null, 8, ["mode"])) : k("", !0),
|
|
@@ -2771,7 +2848,7 @@ function Or(e, t, n, a, i, r) {
|
|
|
2771
2848
|
disabled: b || M,
|
|
2772
2849
|
type: "secondary",
|
|
2773
2850
|
wide: "",
|
|
2774
|
-
onClick: (
|
|
2851
|
+
onClick: (A) => r.onActionClick(n.actionFunction || C)
|
|
2775
2852
|
}, {
|
|
2776
2853
|
default: f(() => [
|
|
2777
2854
|
H(e.$slots, "actionText", {}, () => [
|
|
@@ -2784,7 +2861,7 @@ function Or(e, t, n, a, i, r) {
|
|
|
2784
2861
|
]),
|
|
2785
2862
|
_: 3
|
|
2786
2863
|
}),
|
|
2787
|
-
|
|
2864
|
+
o("div", Xr, [
|
|
2788
2865
|
h(u, {
|
|
2789
2866
|
type: "none",
|
|
2790
2867
|
pattern: "tertiary",
|
|
@@ -2801,7 +2878,7 @@ function Or(e, t, n, a, i, r) {
|
|
|
2801
2878
|
])
|
|
2802
2879
|
]);
|
|
2803
2880
|
}
|
|
2804
|
-
const
|
|
2881
|
+
const I = /* @__PURE__ */ _(zr, [["render", ei], ["__scopeId", "data-v-dd63f0f1"]]), ti = {
|
|
2805
2882
|
i18nOptions: {
|
|
2806
2883
|
namespaces: "PremiumRestrictedBankIdAndSms",
|
|
2807
2884
|
messages: {
|
|
@@ -2819,7 +2896,7 @@ const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"
|
|
|
2819
2896
|
},
|
|
2820
2897
|
name: "PremiumRestrictedBankIdAndSms",
|
|
2821
2898
|
components: {
|
|
2822
|
-
PremiumRestrictedBase:
|
|
2899
|
+
PremiumRestrictedBase: I
|
|
2823
2900
|
},
|
|
2824
2901
|
props: {
|
|
2825
2902
|
onUpgrade: {
|
|
@@ -2833,9 +2910,9 @@ const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"
|
|
|
2833
2910
|
})
|
|
2834
2911
|
}
|
|
2835
2912
|
};
|
|
2836
|
-
function
|
|
2837
|
-
const
|
|
2838
|
-
return c(), w(
|
|
2913
|
+
function ni(e, t, n, a, i, r) {
|
|
2914
|
+
const s = v("PremiumRestrictedBase");
|
|
2915
|
+
return c(), w(s, {
|
|
2839
2916
|
title: e.$t("title", {
|
|
2840
2917
|
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
|
|
2841
2918
|
}),
|
|
@@ -2851,7 +2928,7 @@ function qr(e, t, n, a, i, r) {
|
|
|
2851
2928
|
_: 1
|
|
2852
2929
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
2853
2930
|
}
|
|
2854
|
-
const
|
|
2931
|
+
const ri = /* @__PURE__ */ _(ti, [["render", ni]]), ii = {
|
|
2855
2932
|
i18nOptions: {
|
|
2856
2933
|
namespaces: "licenses",
|
|
2857
2934
|
messages: {
|
|
@@ -2869,7 +2946,7 @@ const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
|
|
|
2869
2946
|
},
|
|
2870
2947
|
name: "PremiumRestrictedCreators",
|
|
2871
2948
|
components: {
|
|
2872
|
-
PremiumRestrictedBase:
|
|
2949
|
+
PremiumRestrictedBase: I
|
|
2873
2950
|
},
|
|
2874
2951
|
props: {
|
|
2875
2952
|
onUpgrade: {
|
|
@@ -2878,9 +2955,9 @@ const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
|
|
|
2878
2955
|
}
|
|
2879
2956
|
}
|
|
2880
2957
|
};
|
|
2881
|
-
function
|
|
2882
|
-
const
|
|
2883
|
-
return c(), w(
|
|
2958
|
+
function ai(e, t, n, a, i, r) {
|
|
2959
|
+
const s = v("PremiumRestrictedBase");
|
|
2960
|
+
return c(), w(s, {
|
|
2884
2961
|
title: e.$t("title"),
|
|
2885
2962
|
"sub-title": e.$t("subTitle"),
|
|
2886
2963
|
"action-function": n.onUpgrade,
|
|
@@ -2892,7 +2969,7 @@ function Nr(e, t, n, a, i, r) {
|
|
|
2892
2969
|
_: 1
|
|
2893
2970
|
}, 8, ["title", "sub-title", "action-function"]);
|
|
2894
2971
|
}
|
|
2895
|
-
const
|
|
2972
|
+
const oi = /* @__PURE__ */ _(ii, [["render", ai]]), si = {
|
|
2896
2973
|
i18nOptions: {
|
|
2897
2974
|
namespaces: "stats",
|
|
2898
2975
|
messages: {
|
|
@@ -2910,7 +2987,7 @@ const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
|
|
|
2910
2987
|
},
|
|
2911
2988
|
name: "PremiumRestrictedDocumentBlocks",
|
|
2912
2989
|
components: {
|
|
2913
|
-
PremiumRestrictedBase:
|
|
2990
|
+
PremiumRestrictedBase: I
|
|
2914
2991
|
},
|
|
2915
2992
|
props: {
|
|
2916
2993
|
onUpgrade: {
|
|
@@ -2919,9 +2996,9 @@ const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
|
|
|
2919
2996
|
}
|
|
2920
2997
|
}
|
|
2921
2998
|
};
|
|
2922
|
-
function
|
|
2923
|
-
const
|
|
2924
|
-
return c(), w(
|
|
2999
|
+
function li(e, t, n, a, i, r) {
|
|
3000
|
+
const s = v("PremiumRestrictedBase");
|
|
3001
|
+
return c(), w(s, {
|
|
2925
3002
|
title: e.$t("title"),
|
|
2926
3003
|
"sub-title": e.$t("subTitle"),
|
|
2927
3004
|
"on-upgrade": n.onUpgrade,
|
|
@@ -2933,7 +3010,7 @@ function Qr(e, t, n, a, i, r) {
|
|
|
2933
3010
|
_: 1
|
|
2934
3011
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
2935
3012
|
}
|
|
2936
|
-
const
|
|
3013
|
+
const ci = /* @__PURE__ */ _(si, [["render", li]]), ui = {
|
|
2937
3014
|
i18nOptions: {
|
|
2938
3015
|
namespaces: "PremiumRestrictedDocuments",
|
|
2939
3016
|
messages: {
|
|
@@ -2957,7 +3034,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
2957
3034
|
},
|
|
2958
3035
|
name: "PremiumRestrictedDocuments",
|
|
2959
3036
|
components: {
|
|
2960
|
-
PremiumRestrictedBase:
|
|
3037
|
+
PremiumRestrictedBase: I
|
|
2961
3038
|
},
|
|
2962
3039
|
emits: ["close"],
|
|
2963
3040
|
props: {
|
|
@@ -2983,7 +3060,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
2983
3060
|
},
|
|
2984
3061
|
created() {
|
|
2985
3062
|
try {
|
|
2986
|
-
|
|
3063
|
+
Fe("/documentLimitReached", {});
|
|
2987
3064
|
} catch (e) {
|
|
2988
3065
|
X(e, { showMessage: !1 });
|
|
2989
3066
|
}
|
|
@@ -2992,8 +3069,8 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
2992
3069
|
this.checkFreeDocVoucher();
|
|
2993
3070
|
},
|
|
2994
3071
|
methods: {
|
|
2995
|
-
...
|
|
2996
|
-
loadCurrentCompany:
|
|
3072
|
+
...Z({
|
|
3073
|
+
loadCurrentCompany: x.DO_LOAD_CURRENT_COMPANY
|
|
2997
3074
|
}),
|
|
2998
3075
|
async checkFreeDocVoucher() {
|
|
2999
3076
|
var t, n;
|
|
@@ -3019,7 +3096,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
3019
3096
|
await ne.post({ code: "freeUserDocs" }), G.setItem(
|
|
3020
3097
|
"voucher-freeUserDocs-company-id",
|
|
3021
3098
|
this.account.CompanyId
|
|
3022
|
-
), await this.loadCurrentCompany(),
|
|
3099
|
+
), await this.loadCurrentCompany(), Be(
|
|
3023
3100
|
"success",
|
|
3024
3101
|
this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
|
|
3025
3102
|
), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
|
|
@@ -3030,32 +3107,32 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
|
|
|
3030
3107
|
}
|
|
3031
3108
|
}
|
|
3032
3109
|
}
|
|
3033
|
-
},
|
|
3110
|
+
}, di = {
|
|
3034
3111
|
key: 0,
|
|
3035
3112
|
style: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" }
|
|
3036
|
-
},
|
|
3113
|
+
}, mi = { style: { "font-size": "16px", "font-weight": "500" } }, pi = ["textContent"], hi = {
|
|
3037
3114
|
class: "flex w-full justify-center",
|
|
3038
3115
|
style: { "margin-top": "calc(1 * var(--rem))" }
|
|
3039
3116
|
};
|
|
3040
|
-
function
|
|
3041
|
-
const
|
|
3042
|
-
return c(), w(
|
|
3117
|
+
function fi(e, t, n, a, i, r) {
|
|
3118
|
+
const s = v("CButton"), p = v("PremiumRestrictedBase");
|
|
3119
|
+
return c(), w(p, {
|
|
3043
3120
|
title: e.$t("title"),
|
|
3044
3121
|
"sub-title": e.$t("subTitle"),
|
|
3045
3122
|
"on-upgrade": n.onUpgrade
|
|
3046
3123
|
}, {
|
|
3047
3124
|
content: f(() => [
|
|
3048
|
-
i.canUseFreeDocVoucher ? (c(), d("div",
|
|
3049
|
-
|
|
3050
|
-
t[0] || (t[0] =
|
|
3125
|
+
i.canUseFreeDocVoucher ? (c(), d("div", di, [
|
|
3126
|
+
o("div", mi, [
|
|
3127
|
+
t[0] || (t[0] = o("span", { style: { "margin-right": "4px" } }, "🎁", -1)),
|
|
3051
3128
|
g(" " + l(e.$t("voucherTitle")), 1)
|
|
3052
3129
|
]),
|
|
3053
|
-
|
|
3130
|
+
o("div", {
|
|
3054
3131
|
style: { opacity: "0.75" },
|
|
3055
3132
|
textContent: l(e.$t("voucherText", { count: i.voucherDocCount }))
|
|
3056
|
-
}, null, 8,
|
|
3057
|
-
|
|
3058
|
-
h(
|
|
3133
|
+
}, null, 8, pi),
|
|
3134
|
+
o("div", hi, [
|
|
3135
|
+
h(s, {
|
|
3059
3136
|
loading: i.isLoading,
|
|
3060
3137
|
transparent: "",
|
|
3061
3138
|
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 +3150,7 @@ function ni(e, t, n, a, i, r) {
|
|
|
3073
3150
|
_: 1
|
|
3074
3151
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3075
3152
|
}
|
|
3076
|
-
const
|
|
3153
|
+
const gi = /* @__PURE__ */ _(ui, [["render", fi]]), yi = {
|
|
3077
3154
|
i18nOptions: {
|
|
3078
3155
|
namespaces: "licenses",
|
|
3079
3156
|
messages: {
|
|
@@ -3097,7 +3174,7 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
|
|
|
3097
3174
|
},
|
|
3098
3175
|
name: "PremiumRestrictedLicenses",
|
|
3099
3176
|
components: {
|
|
3100
|
-
PremiumRestrictedBase:
|
|
3177
|
+
PremiumRestrictedBase: I
|
|
3101
3178
|
},
|
|
3102
3179
|
emits: ["close"],
|
|
3103
3180
|
props: {
|
|
@@ -3117,20 +3194,20 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
|
|
|
3117
3194
|
}
|
|
3118
3195
|
},
|
|
3119
3196
|
beforeCreate() {
|
|
3120
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
3197
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", fe);
|
|
3121
3198
|
},
|
|
3122
3199
|
created() {
|
|
3123
3200
|
this.initLicense();
|
|
3124
3201
|
},
|
|
3125
3202
|
methods: {
|
|
3126
|
-
...
|
|
3127
|
-
loadCurrentCompany:
|
|
3128
|
-
loadPrices:
|
|
3129
|
-
resetStripeForm:
|
|
3130
|
-
updateFormValue:
|
|
3131
|
-
submitPlan:
|
|
3203
|
+
...Z({
|
|
3204
|
+
loadCurrentCompany: x.DO_LOAD_CURRENT_COMPANY,
|
|
3205
|
+
loadPrices: x.LOAD_PRICES,
|
|
3206
|
+
resetStripeForm: x.RESET_STRIPE_FORM,
|
|
3207
|
+
updateFormValue: x.SET_STRIPE_FORM_VALUE,
|
|
3208
|
+
submitPlan: x.SUBMIT_FORM_PLAN
|
|
3132
3209
|
}),
|
|
3133
|
-
priceFormat:
|
|
3210
|
+
priceFormat: R,
|
|
3134
3211
|
async initLicense() {
|
|
3135
3212
|
this.subscription.paymentMethod === "stripe" && (await this.loadPrices(), await this.resetStripeForm(), this.updateFormValue({ key: "plan", value: this.currentPlan }));
|
|
3136
3213
|
},
|
|
@@ -3162,17 +3239,17 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
|
|
|
3162
3239
|
return await this.loadCurrentCompany(), e;
|
|
3163
3240
|
},
|
|
3164
3241
|
async addInvoiceLicense() {
|
|
3165
|
-
await
|
|
3242
|
+
await Ue(), await this.loadCurrentCompany();
|
|
3166
3243
|
}
|
|
3167
3244
|
}
|
|
3168
|
-
},
|
|
3245
|
+
}, vi = {
|
|
3169
3246
|
key: 0,
|
|
3170
3247
|
class: "flex w-full justify-between",
|
|
3171
3248
|
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(
|
|
3249
|
+
}, bi = { style: { "text-align": "left" } }, Ci = ["textContent"], ki = ["textContent"], Pi = { style: { "text-align": "right" } }, _i = { style: { "font-size": "13px", opacity: "0.7" } };
|
|
3250
|
+
function wi(e, t, n, a, i, r) {
|
|
3251
|
+
const s = v("PremiumRestrictedBase");
|
|
3252
|
+
return c(), w(s, {
|
|
3176
3253
|
title: e.$t("title"),
|
|
3177
3254
|
"sub-title": e.$t("subTitle"),
|
|
3178
3255
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3182,27 +3259,27 @@ function di(e, t, n, a, i, r) {
|
|
|
3182
3259
|
g(l(e.$t("actionText")), 1)
|
|
3183
3260
|
]),
|
|
3184
3261
|
content: f(() => [
|
|
3185
|
-
r.extraPrice && r.extraPrice.amount && r.extraPrice.currency && r.extraPrice.interval ? (c(), d("div",
|
|
3186
|
-
|
|
3187
|
-
|
|
3262
|
+
r.extraPrice && r.extraPrice.amount && r.extraPrice.currency && r.extraPrice.interval ? (c(), d("div", vi, [
|
|
3263
|
+
o("div", bi, [
|
|
3264
|
+
o("div", {
|
|
3188
3265
|
style: { "font-weight": "500" },
|
|
3189
3266
|
textContent: l(e.$t("productTitle"))
|
|
3190
|
-
}, null, 8,
|
|
3191
|
-
|
|
3267
|
+
}, null, 8, Ci),
|
|
3268
|
+
o("div", {
|
|
3192
3269
|
style: { opacity: "0.75", "font-size": "13px" },
|
|
3193
3270
|
textContent: l(e.$t("productCost"))
|
|
3194
|
-
}, null, 8,
|
|
3271
|
+
}, null, 8, ki)
|
|
3195
3272
|
]),
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3273
|
+
o("div", Pi, [
|
|
3274
|
+
o("div", null, " +" + l(r.priceFormat(r.extraPrice.amount, { currency: r.extraPrice.currency })), 1),
|
|
3275
|
+
o("div", _i, " per " + l(e.$t(`_common:${r.extraPrice.interval}`)), 1)
|
|
3199
3276
|
])
|
|
3200
3277
|
])) : k("", !0)
|
|
3201
3278
|
]),
|
|
3202
3279
|
_: 1
|
|
3203
3280
|
}, 8, ["title", "sub-title", "on-upgrade", "action-function"]);
|
|
3204
3281
|
}
|
|
3205
|
-
const
|
|
3282
|
+
const Si = /* @__PURE__ */ _(yi, [["render", wi]]), Ti = {
|
|
3206
3283
|
i18nOptions: {
|
|
3207
3284
|
namespaces: "personalMessage",
|
|
3208
3285
|
messages: {
|
|
@@ -3218,7 +3295,7 @@ const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
|
|
|
3218
3295
|
},
|
|
3219
3296
|
name: "PremiumRestrictedPersonalMessage",
|
|
3220
3297
|
components: {
|
|
3221
|
-
PremiumRestrictedBase:
|
|
3298
|
+
PremiumRestrictedBase: I
|
|
3222
3299
|
},
|
|
3223
3300
|
props: {
|
|
3224
3301
|
onUpgrade: {
|
|
@@ -3227,15 +3304,15 @@ const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
|
|
|
3227
3304
|
}
|
|
3228
3305
|
}
|
|
3229
3306
|
};
|
|
3230
|
-
function
|
|
3231
|
-
const
|
|
3232
|
-
return c(), w(
|
|
3307
|
+
function $i(e, t, n, a, i, r) {
|
|
3308
|
+
const s = v("PremiumRestrictedBase");
|
|
3309
|
+
return c(), w(s, {
|
|
3233
3310
|
title: e.$t("title"),
|
|
3234
3311
|
"sub-title": e.$t("subTitle"),
|
|
3235
3312
|
"on-upgrade": n.onUpgrade
|
|
3236
3313
|
}, null, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3237
3314
|
}
|
|
3238
|
-
const
|
|
3315
|
+
const xi = /* @__PURE__ */ _(Ti, [["render", $i]]), Ii = {
|
|
3239
3316
|
i18nOptions: {
|
|
3240
3317
|
namespaces: "PremiumRestrictedEditDocumentLayout",
|
|
3241
3318
|
messages: {
|
|
@@ -3253,7 +3330,7 @@ const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
|
|
|
3253
3330
|
},
|
|
3254
3331
|
name: "PremiumRestrictedSaveDocTemplate",
|
|
3255
3332
|
components: {
|
|
3256
|
-
PremiumRestrictedBase:
|
|
3333
|
+
PremiumRestrictedBase: I
|
|
3257
3334
|
},
|
|
3258
3335
|
props: {
|
|
3259
3336
|
onUpgrade: {
|
|
@@ -3262,9 +3339,9 @@ const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
|
|
|
3262
3339
|
}
|
|
3263
3340
|
}
|
|
3264
3341
|
};
|
|
3265
|
-
function
|
|
3266
|
-
const
|
|
3267
|
-
return c(), w(
|
|
3342
|
+
function Ei(e, t, n, a, i, r) {
|
|
3343
|
+
const s = v("PremiumRestrictedBase");
|
|
3344
|
+
return c(), w(s, {
|
|
3268
3345
|
title: e.$t("title"),
|
|
3269
3346
|
"sub-title": e.$t("subTitle"),
|
|
3270
3347
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3276,7 +3353,7 @@ function yi(e, t, n, a, i, r) {
|
|
|
3276
3353
|
_: 1
|
|
3277
3354
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3278
3355
|
}
|
|
3279
|
-
const
|
|
3356
|
+
const Mi = /* @__PURE__ */ _(Ii, [["render", Ei]]), Vi = {
|
|
3280
3357
|
i18nOptions: {
|
|
3281
3358
|
namespaces: "stats",
|
|
3282
3359
|
messages: {
|
|
@@ -3294,7 +3371,7 @@ const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
|
|
|
3294
3371
|
},
|
|
3295
3372
|
name: "PremiumRestrictedStats",
|
|
3296
3373
|
components: {
|
|
3297
|
-
PremiumRestrictedBase:
|
|
3374
|
+
PremiumRestrictedBase: I
|
|
3298
3375
|
},
|
|
3299
3376
|
props: {
|
|
3300
3377
|
onUpgrade: {
|
|
@@ -3303,9 +3380,9 @@ const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
|
|
|
3303
3380
|
}
|
|
3304
3381
|
}
|
|
3305
3382
|
};
|
|
3306
|
-
function
|
|
3307
|
-
const
|
|
3308
|
-
return c(), w(
|
|
3383
|
+
function Li(e, t, n, a, i, r) {
|
|
3384
|
+
const s = v("PremiumRestrictedBase");
|
|
3385
|
+
return c(), w(s, {
|
|
3309
3386
|
title: e.$t("title"),
|
|
3310
3387
|
"sub-title": e.$t("subTitle"),
|
|
3311
3388
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3317,7 +3394,7 @@ function Ci(e, t, n, a, i, r) {
|
|
|
3317
3394
|
_: 1
|
|
3318
3395
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3319
3396
|
}
|
|
3320
|
-
const
|
|
3397
|
+
const Hi = /* @__PURE__ */ _(Vi, [["render", Li]]), Bi = {
|
|
3321
3398
|
i18nOptions: {
|
|
3322
3399
|
namespaces: "subTemplates",
|
|
3323
3400
|
messages: {
|
|
@@ -3333,7 +3410,7 @@ const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
|
|
|
3333
3410
|
},
|
|
3334
3411
|
name: "PremiumRestrictedTemplates",
|
|
3335
3412
|
components: {
|
|
3336
|
-
PremiumRestrictedBase:
|
|
3413
|
+
PremiumRestrictedBase: I
|
|
3337
3414
|
},
|
|
3338
3415
|
props: {
|
|
3339
3416
|
onUpgrade: {
|
|
@@ -3342,15 +3419,15 @@ const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
|
|
|
3342
3419
|
}
|
|
3343
3420
|
}
|
|
3344
3421
|
};
|
|
3345
|
-
function
|
|
3346
|
-
const
|
|
3347
|
-
return c(), w(
|
|
3422
|
+
function Fi(e, t, n, a, i, r) {
|
|
3423
|
+
const s = v("PremiumRestrictedBase");
|
|
3424
|
+
return c(), w(s, {
|
|
3348
3425
|
title: e.$t("title"),
|
|
3349
3426
|
"sub-title": e.$t("subTitle"),
|
|
3350
3427
|
"on-upgrade": n.onUpgrade
|
|
3351
3428
|
}, null, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3352
3429
|
}
|
|
3353
|
-
const
|
|
3430
|
+
const Ui = /* @__PURE__ */ _(Bi, [["render", Fi]]), Di = {
|
|
3354
3431
|
i18nOptions: {
|
|
3355
3432
|
namespaces: "PremiumRestrictedUseDocTemplates",
|
|
3356
3433
|
messages: {
|
|
@@ -3368,7 +3445,7 @@ const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
|
|
|
3368
3445
|
},
|
|
3369
3446
|
name: "PremiumRestrictedUseDocTemplates",
|
|
3370
3447
|
components: {
|
|
3371
|
-
PremiumRestrictedBase:
|
|
3448
|
+
PremiumRestrictedBase: I
|
|
3372
3449
|
},
|
|
3373
3450
|
props: {
|
|
3374
3451
|
onUpgrade: {
|
|
@@ -3377,9 +3454,9 @@ const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
|
|
|
3377
3454
|
}
|
|
3378
3455
|
}
|
|
3379
3456
|
};
|
|
3380
|
-
function
|
|
3381
|
-
const
|
|
3382
|
-
return c(), w(
|
|
3457
|
+
function Oi(e, t, n, a, i, r) {
|
|
3458
|
+
const s = v("PremiumRestrictedBase");
|
|
3459
|
+
return c(), w(s, {
|
|
3383
3460
|
title: e.$t("title"),
|
|
3384
3461
|
"sub-title": e.$t("subTitle"),
|
|
3385
3462
|
"on-upgrade": n.onUpgrade,
|
|
@@ -3391,7 +3468,7 @@ function $i(e, t, n, a, i, r) {
|
|
|
3391
3468
|
_: 1
|
|
3392
3469
|
}, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3393
3470
|
}
|
|
3394
|
-
const
|
|
3471
|
+
const Ri = /* @__PURE__ */ _(Di, [["render", Oi]]), Ai = {
|
|
3395
3472
|
i18nOptions: {
|
|
3396
3473
|
namespaces: "winProfile",
|
|
3397
3474
|
keyPrefix: "account.subscription.winProfile",
|
|
@@ -3410,7 +3487,7 @@ const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
|
|
|
3410
3487
|
},
|
|
3411
3488
|
name: "PremiumRestrictedWinProfile",
|
|
3412
3489
|
components: {
|
|
3413
|
-
PremiumRestrictedBase:
|
|
3490
|
+
PremiumRestrictedBase: I
|
|
3414
3491
|
},
|
|
3415
3492
|
props: {
|
|
3416
3493
|
onUpgrade: {
|
|
@@ -3419,27 +3496,27 @@ const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
|
|
|
3419
3496
|
}
|
|
3420
3497
|
}
|
|
3421
3498
|
};
|
|
3422
|
-
function
|
|
3423
|
-
const
|
|
3424
|
-
return c(), w(
|
|
3499
|
+
function zi(e, t, n, a, i, r) {
|
|
3500
|
+
const s = v("PremiumRestrictedBase");
|
|
3501
|
+
return c(), w(s, {
|
|
3425
3502
|
title: e.$t("title"),
|
|
3426
3503
|
"sub-title": e.$t("subTitle"),
|
|
3427
3504
|
"on-upgrade": n.onUpgrade
|
|
3428
3505
|
}, null, 8, ["title", "sub-title", "on-upgrade"]);
|
|
3429
3506
|
}
|
|
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
|
-
},
|
|
3507
|
+
const qi = /* @__PURE__ */ _(Ai, [["render", zi]]), K = {
|
|
3508
|
+
winProfile: qi,
|
|
3509
|
+
templates: Ui,
|
|
3510
|
+
documents: gi,
|
|
3511
|
+
personalMessage: xi,
|
|
3512
|
+
licenses: Si,
|
|
3513
|
+
inviteCreators: oi,
|
|
3514
|
+
stats: Hi,
|
|
3515
|
+
documentBlocks: ci,
|
|
3516
|
+
bankIdAndSms: ri,
|
|
3517
|
+
useDocTemplate: Ri,
|
|
3518
|
+
saveDocTemplate: Mi
|
|
3519
|
+
}, ji = {
|
|
3443
3520
|
name: "IsPremiumPreStep",
|
|
3444
3521
|
inject: {
|
|
3445
3522
|
onUpgradeRequired: {
|
|
@@ -3456,7 +3533,7 @@ const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
|
|
|
3456
3533
|
},
|
|
3457
3534
|
computed: {
|
|
3458
3535
|
modalName() {
|
|
3459
|
-
return K[this.feature] ? K[this.feature] : (
|
|
3536
|
+
return K[this.feature] ? K[this.feature] : (De.error("Missing IsPremiumPreStep component name"), null);
|
|
3460
3537
|
}
|
|
3461
3538
|
},
|
|
3462
3539
|
methods: {
|
|
@@ -3482,13 +3559,13 @@ const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
|
|
|
3482
3559
|
}
|
|
3483
3560
|
}
|
|
3484
3561
|
};
|
|
3485
|
-
function
|
|
3562
|
+
function Ni(e, t, n, a, i, r) {
|
|
3486
3563
|
return H(e.$slots, "default", { onClick: r.onClick });
|
|
3487
3564
|
}
|
|
3488
|
-
const
|
|
3565
|
+
const Zi = /* @__PURE__ */ _(ji, [["render", Ni]]), Yi = Oe({
|
|
3489
3566
|
name: "ProBadge",
|
|
3490
3567
|
render() {
|
|
3491
|
-
return
|
|
3568
|
+
return Re(
|
|
3492
3569
|
"div",
|
|
3493
3570
|
{
|
|
3494
3571
|
class: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
|
|
@@ -3496,20 +3573,20 @@ const Vi = /* @__PURE__ */ _(Mi, [["render", Li]]), Hi = Fe({
|
|
|
3496
3573
|
"Pro"
|
|
3497
3574
|
);
|
|
3498
3575
|
}
|
|
3499
|
-
}),
|
|
3576
|
+
}), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3500
3577
|
__proto__: null,
|
|
3501
|
-
CalloutLegacy:
|
|
3502
|
-
Checkout:
|
|
3503
|
-
IsPremium:
|
|
3504
|
-
IsPremiumPreStep:
|
|
3505
|
-
ProBadge:
|
|
3506
|
-
stripeMixin:
|
|
3578
|
+
CalloutLegacy: he,
|
|
3579
|
+
Checkout: ye,
|
|
3580
|
+
IsPremium: ve,
|
|
3581
|
+
IsPremiumPreStep: Zi,
|
|
3582
|
+
ProBadge: Yi,
|
|
3583
|
+
stripeMixin: ge
|
|
3507
3584
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3508
3585
|
export {
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3586
|
+
tt as C,
|
|
3587
|
+
ve as I,
|
|
3588
|
+
Yi as _,
|
|
3589
|
+
Zi as a,
|
|
3590
|
+
ia as i,
|
|
3591
|
+
fe as s
|
|
3515
3592
|
};
|