@cling-se/widget 0.13.1 → 0.13.2
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/README.md +27 -22
- package/dist/{AddClientCallout-fd6dc000.js → AddClientCallout-7LpWNu29.js} +11 -16
- package/dist/{AnswerModal-7c83d608.js → AnswerModal-DnTU4eo8.js} +1931 -1948
- package/dist/{AttachmentItem-468fd65c.js → AttachmentItem-DcwbrFUh.js} +15 -18
- package/dist/{BaseDatePicker-1975be7c.js → BaseDatePicker-BpyeJH3N.js} +139 -142
- package/dist/{BaseInput-2ca68242.js → BaseInput-DJreiE5M.js} +77 -56
- package/dist/{BaseUpload-a37ee3a3.js → BaseUpload-iosxX2-N.js} +208 -212
- package/dist/{BlockMedia-9fa610ce.js → BlockMedia-DnbdVEZz.js} +6 -8
- package/dist/{CCallout-4c253200.js → CCallout-CgviPbdr.js} +26 -16
- package/dist/{CDropdownItem-7e71da85.js → CDropdownItem-CTJ55d4m.js} +51 -50
- package/dist/{CField-823448be.js → CField-FGP7ehRq.js} +75 -58
- package/dist/{CPhoneFormat-54baa501.js → CPhoneFormat-8u5dmTPd.js} +5 -7
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-ceb19661.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js} +6 -8
- package/dist/{ClientAutocomplete-186cc118.js → ClientAutocomplete-hcl0bJxO.js} +11 -13
- package/dist/{ClientModal-c5ee3885.js → ClientModal-B8PkUqY2.js} +25 -32
- package/dist/{ColorPicker-65a47379.js → ColorPicker-6AIHrfJ5.js} +5 -7
- package/dist/{CompanyModal-564e2b35.js → CompanyModal-H4hHfy7Y.js} +28 -30
- package/dist/{ContentWrapper-ac56e749.js → ContentWrapper-CHZtfhFI.js} +25 -43
- package/dist/{CoverBlockSettings-8949a330.js → CoverBlockSettings-etwL5N5l.js} +20 -31
- package/dist/{DocAnswer-2c0cb58f.js → DocAnswer-Udn1ItYd.js} +5 -12
- package/dist/{DocDetails-6522bb1b.js → DocDetails-BQz-is7P.js} +47 -59
- package/dist/{DocForm-983d41f5.js → DocForm-Cvuxr89v.js} +4869 -4944
- package/dist/{DocFormSend-787ce614.js → DocFormSend-Bo6YPSMr.js} +15 -33
- package/dist/DocLinks-DlWyanFQ.js +38 -0
- package/dist/{DocModalBase-60c69c7f.js → DocModalBase-BnuOPozg.js} +8 -10
- package/dist/{DocPrint-78c501ca.js → DocPrint-Uw8zz2tr.js} +6 -10
- package/dist/{DocReceipt-ac44b93f.js → DocReceipt-DsRzRjD8.js} +11 -15
- package/dist/{DocSendReminder-6cf2424c.js → DocSendReminder-BEEEh-L9.js} +2 -6
- package/dist/{DocTextEditor-81f63135.js → DocTextEditor-C-qeLSQa.js} +2509 -2529
- package/dist/{DocTimeline-35106a94.js → DocTimeline-Bz29bHJu.js} +26 -37
- package/dist/{DocumentClient-eda56a3c.js → DocumentClient-1O7wxh-X.js} +15 -22
- package/dist/{DocumentLayout-4005baa4.js → DocumentLayout-BrN5peVY.js} +4510 -4527
- package/dist/{DocumentLogotype-0d7d5080.js → DocumentLogotype-Bbas4MsY.js} +20 -22
- package/dist/DocumentVoided-Dy-pp_ng.js +25 -0
- package/dist/{EmbedInput-8c301d27.js → EmbedInput-bXXwMP4u.js} +9 -12
- package/dist/{EmbedSettings-05ab2762.js → EmbedSettings-BA2THNrd.js} +6 -9
- package/dist/ErrorCallout-Dvy9895L.js +28 -0
- package/dist/{FilePreviewModal-743fe489.js → FilePreviewModal-r84Ah3lE.js} +8 -14
- package/dist/{Flag-a6b545e0.js → Flag-CDN9A_59.js} +18 -20
- package/dist/{HeaderSettings-b739ddbb.js → HeaderSettings-DoDFhLcR.js} +34 -49
- package/dist/{ImageSelectModal-b626ef57.js → ImageSelectModal-D6ifkvIw.js} +12 -20
- package/dist/{ImageUploadWrapper-be047810.js → ImageUploadWrapper-K0-MmL-L.js} +356 -384
- package/dist/{Index-071b97c8.js → Index-3p6X7Ln-.js} +24 -26
- package/dist/{Index-c049a6e2.js → Index-B26J4tXQ.js} +7 -9
- package/dist/{Index-8f237754.js → Index-B6gB5CD3.js} +6 -8
- package/dist/{Index-b56a2d94.js → Index-B6u3OUGH.js} +20 -23
- package/dist/{Index-ecbffb52.js → Index-BN64idjX.js} +18 -31
- package/dist/{Index-a52df5e2.js → Index-BNGaREiU.js} +14 -21
- package/dist/{Index-4298f3e2.js → Index-BNeg0lcx.js} +13 -15
- package/dist/{Index-56e4127a.js → Index-BQVjSt_5.js} +29 -29
- package/dist/Index-BVNgUe07.js +21 -0
- package/dist/{Index-3f02e8ca.js → Index-Be-J2RvQ.js} +8 -11
- package/dist/{Index-848bb05c.js → Index-Btlub0dK.js} +11 -13
- package/dist/{Index-4f119d80.js → Index-BtzGGZEN.js} +459 -510
- package/dist/{Index-8ea1a895.js → Index-ByCpvqCC.js} +16 -21
- package/dist/{Index-5bf8b9b7.js → Index-CSg7HLqX.js} +8 -10
- package/dist/{Index-54f457ee.js → Index-CUZJomAi.js} +10 -12
- package/dist/{Index-63aea2b8.js → Index-Cj_3udAp.js} +12 -21
- package/dist/{Index-6b66b9ff.js → Index-CnOdi4ux.js} +4 -6
- package/dist/{Index-8e82da74.js → Index-DT9AWIQ2.js} +12 -15
- package/dist/Index-DWHl_jys.js +24 -0
- package/dist/{Index-fe0e805b.js → Index-Di3ibm8r.js} +51 -58
- package/dist/Index-Dk-kPbWy.js +52 -0
- package/dist/Index-Dl87oWQa.js +49 -0
- package/dist/{Index-a3920b7b.js → Index-DnDY3FUU.js} +9 -11
- package/dist/{Index-8ebe3371.js → Index-DoKh3I_O.js} +19 -26
- package/dist/{Index-c349151b.js → Index-DvA5sZ1U.js} +7 -9
- package/dist/{Index-01224b38.js → Index-DwlzPadK.js} +233 -273
- package/dist/{Index-b2de3af8.js → Index-ID37TIgR.js} +2 -4
- package/dist/Index-TPRXPN4a.js +26 -0
- package/dist/{Index-8cfeac73.js → Index-YdyeCcFX.js} +80 -90
- package/dist/{Index-97c18be1.js → Index-b0dDsObZ.js} +5 -9
- package/dist/{Index-caebb616.js → Index-bIYFzizT.js} +4 -6
- package/dist/{Index-4b09d0fa.js → Index-d5iMi4y5.js} +116 -118
- package/dist/{Index-ea1e223d.js → Index-oYQ9EfP9.js} +16 -18
- package/dist/{Index-f1bf6520.js → Index-phsroK51.js} +6 -8
- package/dist/{InputToggleRow-f86fdf91.js → InputToggleRow-ClHkgn7s.js} +3 -5
- package/dist/{ManualPopover-d7c2a780.js → ManualPopover-DrhgZvGC.js} +1 -3
- package/dist/{MediaWrapper-2381bc95.js → MediaWrapper-BxNEJOT7.js} +3 -6
- package/dist/{NotBindingText-a9eae0b2.js → NotBindingText-BhKMdYBN.js} +5 -7
- package/dist/{PackageGroup-95d99d03.js → PackageGroup--pDNkIMj.js} +35 -59
- package/dist/{PdfTerms-4a6d6067.js → PdfTerms-BL34ex7f.js} +11 -18
- package/dist/{PdfViewer-8d7f2143.js → PdfViewer-CPSINxc8.js} +25 -29
- package/dist/{PlainHtml-9d3f71d6.js → PlainHtml-Dc76U4EV.js} +5 -7
- package/dist/{PriceHeader-f2cb6529.js → PriceHeader-CEGF-DO3.js} +113 -130
- package/dist/SearchApi-D4yY2KZj.js +161 -0
- package/dist/{Setup-74c47337.js → Setup-BJIY_mWN.js} +9 -11
- package/dist/{TermsSettings-0c5a6cad.js → TermsSettings-DM4pvL-n.js} +6 -12
- package/dist/{ThemeColorRow-bbf4f527.js → ThemeColorRow-D7TCU3ap.js} +8 -10
- package/dist/{ToggleBinding-50af6f0f.js → ToggleBinding-CSgFUF6o.js} +7 -9
- package/dist/{UploadModal-d2757015.js → UploadModal-Cz7o7DeT.js} +16 -19
- package/dist/{VideoPlayerInput-cb6c91e8.js → VideoPlayerInput-Db0RRtb5.js} +6 -8
- package/dist/{VideoPlayerSettings-bff30628.js → VideoPlayerSettings-BgbNuWbP.js} +7 -11
- package/dist/{VideoSelectModal-9ec9ecfc.js → VideoSelectModal-BIKeCzUZ.js} +20 -28
- package/dist/{answerDocumentMixin-9368852c.js → answerDocumentMixin-Bqg9Of1S.js} +5 -5
- package/dist/{debounce-f8aeabc5.js → debounce-DceKdgy2.js} +3 -3
- package/dist/{dom-962579a6.js → dom-CPYqHOIw.js} +2 -2
- package/dist/{focusDrawerMixin-e2312605.js → focusDrawerMixin-Cx41U1xU.js} +1 -1
- package/dist/{formComponentsInstall-6894b988.js → formComponentsInstall-CWgaR4yB.js} +1198 -1171
- package/dist/{formDrawerState-b99be3a7.js → formDrawerState-DLCSwrgc.js} +1 -1
- package/dist/{formValidationMixin-a9a35060.js → formValidationMixin-CsLym0iM.js} +2 -2
- package/dist/{index-b2348f09.js → index-0kj8-T7-.js} +39 -44
- package/dist/{index-9d1ade78.js → index-4MqvoLi4.js} +3 -5
- package/dist/{index-96e9db00.js → index-By9c7IPL.js} +41 -59
- package/dist/{index-d35e9363.js → index-C16hoSRM.js} +5 -3
- package/dist/{index-c9186403.js → index-C6C4uskP.js} +14 -16
- package/dist/{IsPremiumPreStep-27645ee9.js → index-Cp7dG8Zm.js} +531 -566
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +1019 -1028
- package/dist/{main-b9ea9725.js → main-DBw231uy.js} +21733 -21943
- package/dist/{mapFormMixin-de4a37c3.js → mapFormMixin-BrtcYsT9.js} +1 -2
- package/dist/{vuedraggable.umd-1b113186.js → omit-DQqb9hkZ.js} +143 -133
- package/dist/{publicSenderState-a2c0cc9d.js → publicSenderState-BysO0Mzz.js} +1 -1
- package/dist/{splitpanes-ba7897bf.js → splitpanes-BHUVsCZF.js} +38 -42
- package/dist/style.css +2 -2
- package/dist/{throttle-53a6c735.js → throttle-DKrISvLg.js} +2 -2
- package/dist/{tinycolor-071e269c.js → tinycolor-Be3bF6zy.js} +6 -6
- package/dist/{tippy.esm-1b89bf69.js → tippy.esm-yjYH8SnL.js} +226 -232
- package/dist/{utils-44a35f52.js → utils-DP30AdJH.js} +1 -1
- package/package.json +2 -2
- package/dist/DocLinks-d6b1b080.js +0 -41
- package/dist/DocumentVoided-fe1bd505.js +0 -27
- package/dist/ErrorCallout-87033b39.js +0 -30
- package/dist/Index-6bfbbbd2.js +0 -61
- package/dist/Index-6c21af02.js +0 -28
- package/dist/Index-cbd0f3f6.js +0 -23
- package/dist/Index-f006e9fe.js +0 -26
- package/dist/Index-fc0516f6.js +0 -54
- package/dist/SearchApi-2a59cdc7.js +0 -167
- package/dist/index-3671e1b7.js +0 -14
- package/dist/index-805c56e4.js +0 -4
- /package/dist/{CField.vue_vue_type_style_index_0_lang-4ed993c7.js → CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js} +0 -0
- /package/dist/{anime.es-e284c852.js → anime.es-BrPTThYb.js} +0 -0
- /package/dist/{color-c1606adc.js → color-TdtKxwVa.js} +0 -0
- /package/dist/{i18nMessages-6b279c15.js → i18nMessages-Chz_lxGG.js} +0 -0
- /package/dist/{vuex.esm-4a0fff7c.js → vuex.esm-DKGl8mcw.js} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as v, a as $, b as
|
|
3
|
-
import { a as u } from "./anime.es-
|
|
4
|
-
import "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { v as b } from "./index-805c56e4.js";
|
|
1
|
+
import { n as d, bf as F, b as C, b5 as M, bg as X, bh as Q, bi as J, bj as ee, V as U, bk as te, a1 as L, bl as ne, c as h, F as ae, u as P, d as y, bm as re, g as m, bn as b, z as k, bo as ie, bp as se, bq as oe, br as H, p as ce, h as D, I as E, bs as B, L as le, bt as ue, at as de } from "./main-DBw231uy.js";
|
|
2
|
+
import { m as v, a as $, b as me } from "./vuex.esm-DKGl8mcw.js";
|
|
3
|
+
import { a as u } from "./anime.es-BrPTThYb.js";
|
|
4
|
+
import { v as _ } from "./index-C16hoSRM.js";
|
|
5
|
+
import { a as pe } from "./dom-CPYqHOIw.js";
|
|
7
6
|
const x = {
|
|
8
7
|
AD: {
|
|
9
8
|
name: "Andorra",
|
|
@@ -1250,19 +1249,156 @@ const x = {
|
|
|
1250
1249
|
callingCode: "+263",
|
|
1251
1250
|
currency: "USD"
|
|
1252
1251
|
}
|
|
1253
|
-
},
|
|
1252
|
+
}, ge = {
|
|
1253
|
+
props: {
|
|
1254
|
+
defaultOpen: {
|
|
1255
|
+
type: Boolean,
|
|
1256
|
+
default: !0
|
|
1257
|
+
},
|
|
1258
|
+
value: {
|
|
1259
|
+
type: Boolean,
|
|
1260
|
+
default: null
|
|
1261
|
+
},
|
|
1262
|
+
duration: {
|
|
1263
|
+
type: Number,
|
|
1264
|
+
default: 250
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
data() {
|
|
1268
|
+
return {
|
|
1269
|
+
internalExpanded: !1
|
|
1270
|
+
};
|
|
1271
|
+
},
|
|
1272
|
+
computed: {
|
|
1273
|
+
wrapperStyle() {
|
|
1274
|
+
return {
|
|
1275
|
+
transitionDuration: `${this.duration}ms`
|
|
1276
|
+
};
|
|
1277
|
+
},
|
|
1278
|
+
expanded: {
|
|
1279
|
+
get() {
|
|
1280
|
+
return this.value === null ? this.internalExpanded : this.value;
|
|
1281
|
+
},
|
|
1282
|
+
set(n) {
|
|
1283
|
+
this.value === null ? this.internalExpanded = n : this.$emit("input", this.value);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
created() {
|
|
1288
|
+
this.defaultOpen && (this.expanded = !0);
|
|
1289
|
+
},
|
|
1290
|
+
mounted() {
|
|
1291
|
+
this.expanded && this.setWrapperHeightTo("auto");
|
|
1292
|
+
},
|
|
1293
|
+
methods: {
|
|
1294
|
+
onEnter(n) {
|
|
1295
|
+
this.setWrapperHeightTo(this.getContentHeight(), n);
|
|
1296
|
+
},
|
|
1297
|
+
onAfterEnter(n) {
|
|
1298
|
+
this.setWrapperHeightTo("auto", n);
|
|
1299
|
+
},
|
|
1300
|
+
onBeforeLeave(n) {
|
|
1301
|
+
this.setWrapperHeightTo(this.getContentHeight(), n);
|
|
1302
|
+
},
|
|
1303
|
+
onLeave(n) {
|
|
1304
|
+
n.scrollHeight, this.setWrapperHeightTo(0, n);
|
|
1305
|
+
},
|
|
1306
|
+
getContentHeight() {
|
|
1307
|
+
const { inner: n } = this.$refs;
|
|
1308
|
+
return n.getBoundingClientRect().height;
|
|
1309
|
+
},
|
|
1310
|
+
setWrapperHeightTo(n, e = this.$refs.wrapper) {
|
|
1311
|
+
e.style.height = typeof n == "number" ? `${n}px` : n;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
var he = function() {
|
|
1316
|
+
var e = this, t = e._self._c;
|
|
1317
|
+
return t("div", [t("div", { on: { click: function(a) {
|
|
1318
|
+
e.expanded = !e.expanded;
|
|
1319
|
+
} } }, [e._t("trigger", null, { expanded: e.expanded })], 2), t("transition", { on: { enter: e.onEnter, "after-enter": e.onAfterEnter, "before-leave": e.onBeforeLeave, leave: e.onLeave } }, [e.expanded ? t("div", { ref: "wrapper", staticClass: "c-accordion", style: e.wrapperStyle }, [t("div", { ref: "inner", staticClass: "c-accordion__inner" }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
1320
|
+
}, fe = [], ye = /* @__PURE__ */ d(
|
|
1321
|
+
ge,
|
|
1322
|
+
he,
|
|
1323
|
+
fe,
|
|
1324
|
+
!1,
|
|
1325
|
+
null,
|
|
1326
|
+
null
|
|
1327
|
+
);
|
|
1328
|
+
const Ce = ye.exports, ve = {
|
|
1329
|
+
name: "CalloutLegacy",
|
|
1330
|
+
i18nOptions: {
|
|
1331
|
+
namespaces: "components",
|
|
1332
|
+
messages: {
|
|
1333
|
+
sv: {
|
|
1334
|
+
legacy: {
|
|
1335
|
+
title: "Du har en gammal kontoplan",
|
|
1336
|
+
text: `
|
|
1337
|
+
Den här funktionen är enbart tillgänglig på våra uppdaterade kontoplaner.
|
|
1338
|
+
För att gå vidare måste du först byta till de uppdaterade kontoplanerna.
|
|
1339
|
+
`,
|
|
1340
|
+
action: "Gå till inställningar"
|
|
1341
|
+
},
|
|
1342
|
+
invoice: {
|
|
1343
|
+
title: "Byt till kortbetalning",
|
|
1344
|
+
text: `
|
|
1345
|
+
För att gå vidare måste du byta till att använda kortbetalning.
|
|
1346
|
+
Din betalningsmetod är just nu faktura.
|
|
1347
|
+
`,
|
|
1348
|
+
action: "Gå till inställningar"
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
en: {
|
|
1352
|
+
legacy: {
|
|
1353
|
+
title: "Your account plan is outdated",
|
|
1354
|
+
text: `
|
|
1355
|
+
This feature is now only available on our updated account plans.
|
|
1356
|
+
To continue you must first convert your account to the updated account plans.
|
|
1357
|
+
`,
|
|
1358
|
+
action: "Go to settings"
|
|
1359
|
+
},
|
|
1360
|
+
invoice: {
|
|
1361
|
+
title: "Change to card",
|
|
1362
|
+
text: `
|
|
1363
|
+
To continue you must change your payment method to card. You're currently using invoice as a payment method.
|
|
1364
|
+
`,
|
|
1365
|
+
action: "Go to settings"
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
props: {
|
|
1371
|
+
mode: {
|
|
1372
|
+
type: String,
|
|
1373
|
+
default: "legacy",
|
|
1374
|
+
validator: (n) => ["legacy", "invoice"].includes(n)
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
var be = function() {
|
|
1379
|
+
var e = this, t = e._self._c;
|
|
1380
|
+
return t("div", { staticStyle: { 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" } }, [t("div", { staticStyle: { "font-weight": "600" }, domProps: { textContent: e._s(e.$t(`${e.mode}.title`)) } }), t("div", { staticStyle: { "font-size": "14px", opacity: "0.7", "margin-bottom": "2em" }, domProps: { textContent: e._s(e.$t(`${e.mode}.text`)) } }), t("CButton", { attrs: { to: { name: "settingsBilling", query: { highlight: e.mode } }, target: "_blank", type: "secondary", wide: "", "icon-right": "new-window" } }, [e._v(" " + e._s(e.$t(`${e.mode}.action`)) + " ")])], 1);
|
|
1381
|
+
}, _e = [], Pe = /* @__PURE__ */ d(
|
|
1382
|
+
ve,
|
|
1383
|
+
be,
|
|
1384
|
+
_e,
|
|
1385
|
+
!1,
|
|
1386
|
+
null,
|
|
1387
|
+
null
|
|
1388
|
+
);
|
|
1389
|
+
const G = Pe.exports, Se = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ke = "stripe", {
|
|
1254
1390
|
LOAD_PRICES: A,
|
|
1255
|
-
RESET_STRIPE_FORM:
|
|
1256
|
-
SET_STRIPE_FORM_VALUE:
|
|
1391
|
+
RESET_STRIPE_FORM: xe,
|
|
1392
|
+
SET_STRIPE_FORM_VALUE: we,
|
|
1257
1393
|
SET_FORM_PROMOTION: V,
|
|
1258
|
-
SUBMIT_PROMOTION_CODE:
|
|
1394
|
+
SUBMIT_PROMOTION_CODE: $e,
|
|
1259
1395
|
SUBMIT_PAYMENT_METHOD: O,
|
|
1260
|
-
SUBMIT_FORM_PLAN:
|
|
1261
|
-
REMOVE_SUBSCRIPTION_ITEM:
|
|
1396
|
+
SUBMIT_FORM_PLAN: Te,
|
|
1397
|
+
REMOVE_SUBSCRIPTION_ITEM: Me,
|
|
1262
1398
|
CONFIRM_PAYMENT: N,
|
|
1263
1399
|
SUBMIT_FORM_PAYMENT: w,
|
|
1264
|
-
SUBMIT_FORM_PRODUCTS:
|
|
1265
|
-
} =
|
|
1400
|
+
SUBMIT_FORM_PRODUCTS: Ee
|
|
1401
|
+
} = ne, z = {
|
|
1266
1402
|
// The term "plan" refers to a _price_ connected to a _product_ with metadata.accountType
|
|
1267
1403
|
plan: { accountType: "pro", interval: "month", quantity: 1 },
|
|
1268
1404
|
customer: { name: "", email: "", region: null },
|
|
@@ -1275,7 +1411,7 @@ const x = {
|
|
|
1275
1411
|
// If the payment should be associated with a specific dealSource
|
|
1276
1412
|
}, q = {
|
|
1277
1413
|
SE: 0.25
|
|
1278
|
-
},
|
|
1414
|
+
}, j = {
|
|
1279
1415
|
namespaced: !0,
|
|
1280
1416
|
state: {
|
|
1281
1417
|
isFetching: !1,
|
|
@@ -1392,7 +1528,7 @@ const x = {
|
|
|
1392
1528
|
* @returns {Object} Price obj on format { intervals: {}, currency }
|
|
1393
1529
|
*/
|
|
1394
1530
|
formPrices: (n, e) => {
|
|
1395
|
-
function t(i, s,
|
|
1531
|
+
function t(i, s, c) {
|
|
1396
1532
|
const o = i;
|
|
1397
1533
|
return (!o.intervals[s] || !Object.keys(o.intervals[s]).length) && (o.intervals[s] = {
|
|
1398
1534
|
subTotalBeforeDiscount: 0,
|
|
@@ -1400,8 +1536,8 @@ const x = {
|
|
|
1400
1536
|
subTotal: 0,
|
|
1401
1537
|
totalAmount: 0,
|
|
1402
1538
|
items: []
|
|
1403
|
-
}), Object.keys(
|
|
1404
|
-
Array.isArray(l
|
|
1539
|
+
}), Object.keys(c).forEach((l) => {
|
|
1540
|
+
Array.isArray(c[l]) ? o.intervals[s][l] = o.intervals[s][l].concat(c[l]) : o.intervals[s][l] += c[l];
|
|
1405
1541
|
}), o;
|
|
1406
1542
|
}
|
|
1407
1543
|
let a = {
|
|
@@ -1412,11 +1548,11 @@ const x = {
|
|
|
1412
1548
|
const i = (e.formPlan.amount || 0) * e.formPlan.quantity;
|
|
1413
1549
|
let s = i;
|
|
1414
1550
|
e.formPromotion && (e.formPromotion.amountOff ? s -= e.formPromotion.amountOff : e.formPromotion.percentOff && (s *= 1 - e.formPromotion.percentOff / 100));
|
|
1415
|
-
const
|
|
1551
|
+
const c = s * (q[e.formCustomer.region] || 0), o = s + c;
|
|
1416
1552
|
a = t(a, e.formPlan.interval, {
|
|
1417
1553
|
subTotalBeforeDiscount: i,
|
|
1418
1554
|
subTotal: s,
|
|
1419
|
-
vatAmount:
|
|
1555
|
+
vatAmount: c,
|
|
1420
1556
|
totalAmount: o,
|
|
1421
1557
|
items: [
|
|
1422
1558
|
{
|
|
@@ -1430,15 +1566,15 @@ const x = {
|
|
|
1430
1566
|
return r(), e.formProducts.forEach((i) => {
|
|
1431
1567
|
const s = e.priceById(i.stripePriceStripeId);
|
|
1432
1568
|
if (s) {
|
|
1433
|
-
let
|
|
1434
|
-
s.usageType === "one_time" && (
|
|
1569
|
+
let c = s.interval;
|
|
1570
|
+
s.usageType === "one_time" && (c = "oneOff");
|
|
1435
1571
|
const o = s.amount * i.quantity;
|
|
1436
|
-
let
|
|
1437
|
-
e.formPromotion && (e.formPromotion.amountOff ?
|
|
1438
|
-
const p =
|
|
1439
|
-
a = t(a,
|
|
1572
|
+
let l = o;
|
|
1573
|
+
e.formPromotion && (e.formPromotion.amountOff ? l -= e.formPromotion.amountOff : e.formPromotion.percentOff && (l *= 1 - e.formPromotion.percentOff / 100));
|
|
1574
|
+
const p = l * (q[e.formCustomer.region] || 0), g = l + p;
|
|
1575
|
+
a = t(a, c, {
|
|
1440
1576
|
subTotalBeforeDiscount: o,
|
|
1441
|
-
subTotal:
|
|
1577
|
+
subTotal: l,
|
|
1442
1578
|
vatAmount: p,
|
|
1443
1579
|
totalAmount: g,
|
|
1444
1580
|
items: [
|
|
@@ -1461,17 +1597,17 @@ const x = {
|
|
|
1461
1597
|
n("setPrices", { data: e }), n("setActivePriceMap");
|
|
1462
1598
|
} catch (e) {
|
|
1463
1599
|
this.handleError(e, {
|
|
1464
|
-
action: `${
|
|
1600
|
+
action: `${ke}/${A}`,
|
|
1465
1601
|
actionPayload: null
|
|
1466
1602
|
});
|
|
1467
1603
|
} finally {
|
|
1468
1604
|
n("setFetching", !1);
|
|
1469
1605
|
}
|
|
1470
1606
|
},
|
|
1471
|
-
async [
|
|
1607
|
+
async [xe]({ commit: n }) {
|
|
1472
1608
|
n("setForm", F(z));
|
|
1473
1609
|
},
|
|
1474
|
-
async [
|
|
1610
|
+
async [we]({ commit: n }, { key: e, value: t }) {
|
|
1475
1611
|
n("setFormValue", { key: e, value: t });
|
|
1476
1612
|
},
|
|
1477
1613
|
[V]({ commit: n, getters: e }, { promotionDetails: t, code: a = null } = {}) {
|
|
@@ -1483,12 +1619,12 @@ const x = {
|
|
|
1483
1619
|
value: { ...t, code: a }
|
|
1484
1620
|
}), !0);
|
|
1485
1621
|
},
|
|
1486
|
-
async [
|
|
1622
|
+
async [$e]({ commit: n, getters: e, dispatch: t }, a) {
|
|
1487
1623
|
try {
|
|
1488
1624
|
if (e.isPosting || !a)
|
|
1489
1625
|
return !1;
|
|
1490
1626
|
n("setPosting", !0);
|
|
1491
|
-
const { data: r } = await
|
|
1627
|
+
const { data: r } = await X(a);
|
|
1492
1628
|
return t(V, {
|
|
1493
1629
|
promotionDetails: r,
|
|
1494
1630
|
code: a
|
|
@@ -1511,8 +1647,8 @@ const x = {
|
|
|
1511
1647
|
const { paymentMethod: a = {}, error: r } = await t.createPaymentMethod("card", e);
|
|
1512
1648
|
if (r)
|
|
1513
1649
|
throw new Error(r.message || "Card Error");
|
|
1514
|
-
const { id: i } = a, { last4: s, brand:
|
|
1515
|
-
return { id: i, last4: s, brand:
|
|
1650
|
+
const { id: i } = a, { last4: s, brand: c } = a.card || {};
|
|
1651
|
+
return { id: i, last4: s, brand: c };
|
|
1516
1652
|
} catch (a) {
|
|
1517
1653
|
return this.handleError(a), null;
|
|
1518
1654
|
} finally {
|
|
@@ -1530,38 +1666,38 @@ const x = {
|
|
|
1530
1666
|
async [w]({ commit: n, getters: e, dispatch: t }, { form: a, stripe: { cardElement: r } = {}, removeUnusedItems: i = !0 } = {}) {
|
|
1531
1667
|
try {
|
|
1532
1668
|
n("setPosting", !0), n("setFormValue", { key: "error", value: null });
|
|
1533
|
-
const { items: s } = a, { formCustomer:
|
|
1669
|
+
const { items: s } = a, { formCustomer: c, formPromotion: o, customer: l, formDealSource: p } = e;
|
|
1534
1670
|
let g;
|
|
1535
1671
|
r && (g = await t(O, { cardElement: r }));
|
|
1536
|
-
const S = { ...
|
|
1672
|
+
const S = { ...c, items: s };
|
|
1537
1673
|
g && (S.paymentMethod = g), o && o.code && (S.promotionCode = o.code), p && (S.dealSource = p);
|
|
1538
|
-
const { data:
|
|
1674
|
+
const { data: W = {} } = await M.product(S, {
|
|
1539
1675
|
removeUnusedItems: i
|
|
1540
|
-
}), { clientSecrets: T } =
|
|
1676
|
+
}), { clientSecrets: T } = W, R = g && g.id ? g.id : l && l.paymentMethodId;
|
|
1541
1677
|
return T && T.length && R ? await t(N, {
|
|
1542
1678
|
clientSecrets: T,
|
|
1543
1679
|
paymentMethodId: R
|
|
1544
1680
|
}) : !0;
|
|
1545
1681
|
} catch (s) {
|
|
1546
1682
|
this.handleError(s);
|
|
1547
|
-
const
|
|
1683
|
+
const c = (s.errorCode ? Se(s.errorCode) : "") || s.message;
|
|
1548
1684
|
return n("setFormValue", {
|
|
1549
1685
|
key: "error",
|
|
1550
|
-
value:
|
|
1686
|
+
value: c || "Submit Form Payment Error"
|
|
1551
1687
|
}), !1;
|
|
1552
1688
|
} finally {
|
|
1553
1689
|
n("setPosting", !1);
|
|
1554
1690
|
}
|
|
1555
1691
|
},
|
|
1556
|
-
async [
|
|
1692
|
+
async [Te]({ commit: n, dispatch: e, getters: t }, { cardElement: a } = {}) {
|
|
1557
1693
|
try {
|
|
1558
|
-
const { formPlan: r, formProducts: i, products: s, subscriptionItems:
|
|
1694
|
+
const { formPlan: r, formProducts: i, products: s, subscriptionItems: c } = t;
|
|
1559
1695
|
if (!r)
|
|
1560
1696
|
return !1;
|
|
1561
|
-
const o = [...
|
|
1697
|
+
const o = [...c], l = o.findIndex(
|
|
1562
1698
|
(p) => C(s[p.stripeProductStripeId], "metadata.accountType")
|
|
1563
1699
|
);
|
|
1564
|
-
return
|
|
1700
|
+
return l !== -1 && o.splice(l, 1), o.push({
|
|
1565
1701
|
stripePriceStripeId: r.stripeId,
|
|
1566
1702
|
stripeProductStripeId: r.stripeProductId,
|
|
1567
1703
|
quantity: r.quantity
|
|
@@ -1576,7 +1712,7 @@ const x = {
|
|
|
1576
1712
|
}), !1;
|
|
1577
1713
|
}
|
|
1578
1714
|
},
|
|
1579
|
-
async [
|
|
1715
|
+
async [Ee]({ commit: n, dispatch: e, getters: t }, { cardElement: a, removeUnusedItems: r = !0 } = {}) {
|
|
1580
1716
|
try {
|
|
1581
1717
|
const { formProducts: i } = t, s = [...i];
|
|
1582
1718
|
return s.length ? await e(w, {
|
|
@@ -1611,7 +1747,7 @@ const x = {
|
|
|
1611
1747
|
throw new Error("Param clientSecrets needs to be an array");
|
|
1612
1748
|
return await e.reduce(async (i, s) => {
|
|
1613
1749
|
await i;
|
|
1614
|
-
const { paymentIntent:
|
|
1750
|
+
const { paymentIntent: c, error: o } = await a.confirmCardPayment(s, {
|
|
1615
1751
|
payment_method: t
|
|
1616
1752
|
});
|
|
1617
1753
|
return o ? (o.message && n("setFormValue", {
|
|
@@ -1620,7 +1756,7 @@ const x = {
|
|
|
1620
1756
|
}), await M.cancelAll({
|
|
1621
1757
|
immediately: !0,
|
|
1622
1758
|
status: "incomplete"
|
|
1623
|
-
}), !1) :
|
|
1759
|
+
}), !1) : c && c.status === "succeeded";
|
|
1624
1760
|
}, Promise.resolve());
|
|
1625
1761
|
} catch (r) {
|
|
1626
1762
|
return this.handleError(r), !1;
|
|
@@ -1634,7 +1770,7 @@ const x = {
|
|
|
1634
1770
|
* @param {String} obj.stripePriceStripeId priceId to remove
|
|
1635
1771
|
* @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
|
|
1636
1772
|
*/
|
|
1637
|
-
async [
|
|
1773
|
+
async [Me]({ commit: n, dispatch: e, getters: t }, { stripePriceStripeId: a }) {
|
|
1638
1774
|
try {
|
|
1639
1775
|
if (!a)
|
|
1640
1776
|
throw new Error("Missing parameter stripePriceStripeId");
|
|
@@ -1665,8 +1801,8 @@ const x = {
|
|
|
1665
1801
|
setPrices: (n, { data: e = [] }) => {
|
|
1666
1802
|
if (typeof e != "object")
|
|
1667
1803
|
throw Error("Data must be a priceItem or array of priceItems!");
|
|
1668
|
-
const t = Array.isArray(e) ? e : [e], { ids: a, values: r } =
|
|
1669
|
-
|
|
1804
|
+
const t = Array.isArray(e) ? e : [e], { ids: a, values: r } = Q(t, { keyId: "stripeId" });
|
|
1805
|
+
J(n.prices, r), n.priceIds = ee([...a, ...n.priceIds]);
|
|
1670
1806
|
},
|
|
1671
1807
|
setActivePriceMap: ({ prices: n, activePriceMap: e }) => Object.keys(n).forEach((t) => {
|
|
1672
1808
|
const a = n[t], r = C(a, "StripeProduct.metadata.accountType");
|
|
@@ -1674,15 +1810,14 @@ const x = {
|
|
|
1674
1810
|
}),
|
|
1675
1811
|
// --- Form ---
|
|
1676
1812
|
setForm: (n, e) => {
|
|
1677
|
-
|
|
1813
|
+
U.set(n, "form", e);
|
|
1678
1814
|
},
|
|
1679
1815
|
setFormValue: (n, { key: e, value: t }) => {
|
|
1680
|
-
const { root: a, prop: r } =
|
|
1681
|
-
|
|
1816
|
+
const { root: a, prop: r } = te(n, `form.${e}`);
|
|
1817
|
+
U.set(a, r, t);
|
|
1682
1818
|
}
|
|
1683
1819
|
}
|
|
1684
|
-
}
|
|
1685
|
-
const Ce = {
|
|
1820
|
+
}, Ie = {
|
|
1686
1821
|
props: {
|
|
1687
1822
|
colors: {
|
|
1688
1823
|
type: Array,
|
|
@@ -1790,211 +1925,21 @@ const Ce = {
|
|
|
1790
1925
|
}
|
|
1791
1926
|
}
|
|
1792
1927
|
};
|
|
1793
|
-
var
|
|
1928
|
+
var Le = function() {
|
|
1794
1929
|
var e = this;
|
|
1795
1930
|
return e._self._c, e._m(0);
|
|
1796
|
-
},
|
|
1931
|
+
}, De = [function() {
|
|
1797
1932
|
var n = this, e = n._self._c;
|
|
1798
1933
|
return e("div", [e("canvas", { attrs: { id: "fireworks" } })]);
|
|
1799
|
-
}],
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1934
|
+
}], Re = /* @__PURE__ */ d(
|
|
1935
|
+
Ie,
|
|
1936
|
+
Le,
|
|
1937
|
+
De,
|
|
1803
1938
|
!1,
|
|
1804
1939
|
null,
|
|
1805
|
-
"
|
|
1806
|
-
null,
|
|
1807
|
-
null
|
|
1940
|
+
"18ad2709"
|
|
1808
1941
|
);
|
|
1809
|
-
const
|
|
1810
|
-
const Se = {
|
|
1811
|
-
name: "PremiumStripeSelect",
|
|
1812
|
-
i18nOptions: {
|
|
1813
|
-
namespaces: "premiumStripeSelect",
|
|
1814
|
-
messages: {
|
|
1815
|
-
en: {
|
|
1816
|
-
title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of {{brand,capitalize}}.</span>',
|
|
1817
|
-
saveYearly: "Save 30%",
|
|
1818
|
-
billedYearly: "Billed yearly.",
|
|
1819
|
-
continueButton: "Continue to billing",
|
|
1820
|
-
currentPlan: "Your current plan"
|
|
1821
|
-
},
|
|
1822
|
-
sv: {
|
|
1823
|
-
title: 'Uppgradera ditt konto. <span style="opacity: 0.5;">Få ut mer av {{brand,capitalize}}.</span>',
|
|
1824
|
-
saveYearly: "Spara 30%",
|
|
1825
|
-
billedYearly: "Faktureras årsvis.",
|
|
1826
|
-
continueButton: "Fortsätt till kassan",
|
|
1827
|
-
currentPlan: "Din nuvarande plan"
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
},
|
|
1831
|
-
props: {
|
|
1832
|
-
plans: {
|
|
1833
|
-
type: Array,
|
|
1834
|
-
required: !0
|
|
1835
|
-
},
|
|
1836
|
-
interval: {
|
|
1837
|
-
type: String,
|
|
1838
|
-
required: !0
|
|
1839
|
-
},
|
|
1840
|
-
plan: {
|
|
1841
|
-
type: String,
|
|
1842
|
-
required: !0
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
computed: {
|
|
1846
|
-
...v({
|
|
1847
|
-
currentPlan: "stripe/currentPlan",
|
|
1848
|
-
getPrice: "stripe/getPrice"
|
|
1849
|
-
}),
|
|
1850
|
-
currentAccountType() {
|
|
1851
|
-
var n;
|
|
1852
|
-
return ((n = this.currentPlan) == null ? void 0 : n.accountType) || "free";
|
|
1853
|
-
},
|
|
1854
|
-
currentInterval() {
|
|
1855
|
-
var n;
|
|
1856
|
-
return (n = this.currentPlan) == null ? void 0 : n.interval;
|
|
1857
|
-
}
|
|
1858
|
-
},
|
|
1859
|
-
created() {
|
|
1860
|
-
this.$nextTick(() => {
|
|
1861
|
-
u({
|
|
1862
|
-
targets: ".anim-block",
|
|
1863
|
-
translateY: [50, 0],
|
|
1864
|
-
opacity: [0, 1],
|
|
1865
|
-
delay: u.stagger(80),
|
|
1866
|
-
easing: "spring(1, 70, 20, 9)",
|
|
1867
|
-
complete: (n) => {
|
|
1868
|
-
n.animatables.forEach(({ target: e }) => {
|
|
1869
|
-
e.style.transform = "", this.$el.classList.remove("animating");
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
});
|
|
1873
|
-
});
|
|
1874
|
-
},
|
|
1875
|
-
methods: {
|
|
1876
|
-
getPriceFormatted(n) {
|
|
1877
|
-
if (n.accountType === "free")
|
|
1878
|
-
return "";
|
|
1879
|
-
const { amount: e, currency: t } = this.getPrice(n.accountType, this.interval) || {};
|
|
1880
|
-
if (typeof e > "u" || typeof t > "u")
|
|
1881
|
-
return "";
|
|
1882
|
-
const a = e / (this.interval === "month" ? 1 : 12);
|
|
1883
|
-
return `${P(a, { currency: t })}/${this.$t(
|
|
1884
|
-
"_common:month"
|
|
1885
|
-
)}`;
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
};
|
|
1889
|
-
var ke = function() {
|
|
1890
|
-
var e = this, t = e._self._c;
|
|
1891
|
-
return t("div", { staticClass: "animating flex w-full flex-col items-center", staticStyle: { "padding-top": "30px" } }, [t("div", { staticClass: "anim-block flex w-full flex-col items-center text-center", staticStyle: { "margin-bottom": "50px" } }, [t("div", { staticStyle: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" }, domProps: { innerHTML: e._s(e.$t("title", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { position: "relative" } }, [t("div", { staticClass: "tgl-btn-group" }, e._l(["month", "year"], function(a) {
|
|
1892
|
-
return t("div", { key: a, staticClass: "tgl-btn", class: {
|
|
1893
|
-
selected: e.interval === a
|
|
1894
|
-
}, domProps: { textContent: e._s(e.$t(`_common:paymentInterval.${a}`).capitalize()) }, on: { click: function(r) {
|
|
1895
|
-
return e.$emit("update:interval", a);
|
|
1896
|
-
} } });
|
|
1897
|
-
}), 0), t("div", { staticClass: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, [t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }), t("path", { attrs: { 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", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } })]), t("span", { staticStyle: { "padding-left": "0.25em" }, domProps: { textContent: e._s(e.$t("saveYearly")) } })])])]), t("div", { staticClass: "PriceGrid" }, e._l(e.plans, function(a, r) {
|
|
1898
|
-
return t("div", { key: r, staticClass: "PriceItem anim-block", class: {
|
|
1899
|
-
selected: e.plan === a.accountType
|
|
1900
|
-
}, on: { click: function(i) {
|
|
1901
|
-
return e.$emit("update:plan", a.accountType);
|
|
1902
|
-
} } }, [t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }, attrs: { src: a.img, alt: a.name, width: "50", height: "50" } })]), t("div", { staticClass: "PriceItem__title" }, [t("span", { domProps: { textContent: e._s(a.name) } }), e._v(" ")]), e.currentAccountType === a.accountType ? t("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("currentPlan"), expression: "$t('currentPlan')" }], staticClass: "[.selected_&]:text-primary-500 absolute right-0 top-0 rounded-tr-lg text-gray-400", attrs: { width: "50", height: "50", viewBox: "0 0 70 70", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M0 0H70V70L0 0Z", fill: "currentColor" } }), t("path", { attrs: { d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732", stroke: "white", "stroke-width": "4" } })]) : e._e(), t("div", { staticClass: "PriceItem__cost" }, [t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.getPriceFormatted(a)) } }), e._v(" ")]), t("div", { staticStyle: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, [t("transition", { attrs: { name: "vertical-fader" } }, [e.interval === "year" && a.accountType !== "free" ? t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.$t("billedYearly")) } }) : e._e()])], 1), t("ul", { staticClass: "PriceItem__text" }, e._l(a.features, function(i) {
|
|
1903
|
-
return t("li", { key: i }, [t("span", { domProps: { textContent: e._s(i) } })]);
|
|
1904
|
-
}), 0)]);
|
|
1905
|
-
}), 0), t("CButton", { staticClass: "anim-block sticky-btn", attrs: { disabled: e.currentAccountType === e.plan && e.currentInterval === e.interval || e.plan === "free", type: "secondary", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
1906
|
-
return e.$emit("next");
|
|
1907
|
-
} } }, [e._v(e._s(e.$t("continueButton")))])], 1);
|
|
1908
|
-
}, xe = [], we = /* @__PURE__ */ d(
|
|
1909
|
-
Se,
|
|
1910
|
-
ke,
|
|
1911
|
-
xe,
|
|
1912
|
-
!1,
|
|
1913
|
-
null,
|
|
1914
|
-
"f97667c4",
|
|
1915
|
-
null,
|
|
1916
|
-
null
|
|
1917
|
-
);
|
|
1918
|
-
const $e = we.exports;
|
|
1919
|
-
const Te = {
|
|
1920
|
-
props: {
|
|
1921
|
-
defaultOpen: {
|
|
1922
|
-
type: Boolean,
|
|
1923
|
-
default: !0
|
|
1924
|
-
},
|
|
1925
|
-
value: {
|
|
1926
|
-
type: Boolean,
|
|
1927
|
-
default: null
|
|
1928
|
-
},
|
|
1929
|
-
duration: {
|
|
1930
|
-
type: Number,
|
|
1931
|
-
default: 250
|
|
1932
|
-
}
|
|
1933
|
-
},
|
|
1934
|
-
data() {
|
|
1935
|
-
return {
|
|
1936
|
-
internalExpanded: !1
|
|
1937
|
-
};
|
|
1938
|
-
},
|
|
1939
|
-
computed: {
|
|
1940
|
-
wrapperStyle() {
|
|
1941
|
-
return {
|
|
1942
|
-
transitionDuration: `${this.duration}ms`
|
|
1943
|
-
};
|
|
1944
|
-
},
|
|
1945
|
-
expanded: {
|
|
1946
|
-
get() {
|
|
1947
|
-
return this.value === null ? this.internalExpanded : this.value;
|
|
1948
|
-
},
|
|
1949
|
-
set(n) {
|
|
1950
|
-
this.value === null ? this.internalExpanded = n : this.$emit("input", this.value);
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
},
|
|
1954
|
-
created() {
|
|
1955
|
-
this.defaultOpen && (this.expanded = !0);
|
|
1956
|
-
},
|
|
1957
|
-
mounted() {
|
|
1958
|
-
this.expanded && this.setWrapperHeightTo("auto");
|
|
1959
|
-
},
|
|
1960
|
-
methods: {
|
|
1961
|
-
onEnter(n) {
|
|
1962
|
-
this.setWrapperHeightTo(this.getContentHeight(), n);
|
|
1963
|
-
},
|
|
1964
|
-
onAfterEnter(n) {
|
|
1965
|
-
this.setWrapperHeightTo("auto", n);
|
|
1966
|
-
},
|
|
1967
|
-
onBeforeLeave(n) {
|
|
1968
|
-
this.setWrapperHeightTo(this.getContentHeight(), n);
|
|
1969
|
-
},
|
|
1970
|
-
onLeave(n) {
|
|
1971
|
-
n.scrollHeight, this.setWrapperHeightTo(0, n);
|
|
1972
|
-
},
|
|
1973
|
-
getContentHeight() {
|
|
1974
|
-
const { inner: n } = this.$refs;
|
|
1975
|
-
return n.getBoundingClientRect().height;
|
|
1976
|
-
},
|
|
1977
|
-
setWrapperHeightTo(n, e = this.$refs.wrapper) {
|
|
1978
|
-
e.style.height = typeof n == "number" ? `${n}px` : n;
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
|
-
var Me = function() {
|
|
1983
|
-
var e = this, t = e._self._c;
|
|
1984
|
-
return t("div", [t("div", { on: { click: function(a) {
|
|
1985
|
-
e.expanded = !e.expanded;
|
|
1986
|
-
} } }, [e._t("trigger", null, { expanded: e.expanded })], 2), t("transition", { on: { enter: e.onEnter, "after-enter": e.onAfterEnter, "before-leave": e.onBeforeLeave, leave: e.onLeave } }, [e.expanded ? t("div", { ref: "wrapper", staticClass: "c-accordion", style: e.wrapperStyle }, [t("div", { ref: "inner", staticClass: "c-accordion__inner" }, [e._t("default")], 2)]) : e._e()])], 1);
|
|
1987
|
-
}, Ee = [], Ie = /* @__PURE__ */ d(
|
|
1988
|
-
Te,
|
|
1989
|
-
Me,
|
|
1990
|
-
Ee,
|
|
1991
|
-
!1,
|
|
1992
|
-
null,
|
|
1993
|
-
null,
|
|
1994
|
-
null,
|
|
1995
|
-
null
|
|
1996
|
-
);
|
|
1997
|
-
const Le = Ie.exports, De = {
|
|
1942
|
+
const Fe = Re.exports, Ue = {
|
|
1998
1943
|
amex: {
|
|
1999
1944
|
name: "American Express",
|
|
2000
1945
|
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>'
|
|
@@ -2034,16 +1979,16 @@ const Le = Ie.exports, De = {
|
|
|
2034
1979
|
logo: i
|
|
2035
1980
|
};
|
|
2036
1981
|
}
|
|
2037
|
-
},
|
|
1982
|
+
}, He = (n) => {
|
|
2038
1983
|
if (document.getElementById("stripe-js"))
|
|
2039
1984
|
return n();
|
|
2040
1985
|
const e = "js.stripe.com/v3/", t = document.createElement("script"), a = document.getElementsByTagName("script")[0];
|
|
2041
1986
|
return t.src = `https://${e}`, t.id = "stripe-js", n && t.addEventListener("load", (r) => n(null, r), !1), a.parentNode.insertBefore(t, a), !0;
|
|
2042
|
-
},
|
|
1987
|
+
}, Be = (n) => He(() => {
|
|
2043
1988
|
window.$stripe = Stripe(h.stripe.publishableKey, {
|
|
2044
1989
|
locale: L.lang || "en"
|
|
2045
1990
|
}), typeof n == "function" && n();
|
|
2046
|
-
}),
|
|
1991
|
+
}), Z = {
|
|
2047
1992
|
data() {
|
|
2048
1993
|
return {
|
|
2049
1994
|
stripeCardElementId: null,
|
|
@@ -2061,7 +2006,7 @@ const Le = Ie.exports, De = {
|
|
|
2061
2006
|
};
|
|
2062
2007
|
},
|
|
2063
2008
|
created() {
|
|
2064
|
-
|
|
2009
|
+
Be(() => {
|
|
2065
2010
|
this.stripe = window.$stripe, this.$nextTick(() => {
|
|
2066
2011
|
this.elements = this.stripe.elements(), this.stripeCardElementId && this.configureStripeCard(this.stripeCardElementId);
|
|
2067
2012
|
});
|
|
@@ -2129,7 +2074,7 @@ const Le = Ie.exports, De = {
|
|
|
2129
2074
|
var i;
|
|
2130
2075
|
const e = n.cloneNode(!0);
|
|
2131
2076
|
e.style.boxSizing = "border-box", e.style.fontSize = (i = window.getComputedStyle(n)) == null ? void 0 : i.fontSize;
|
|
2132
|
-
const t =
|
|
2077
|
+
const t = pe(n), a = () => {
|
|
2133
2078
|
this.repositionStripeEl({ original: n, clone: e });
|
|
2134
2079
|
};
|
|
2135
2080
|
t.addEventListener("scroll", a, {
|
|
@@ -2145,8 +2090,7 @@ const Le = Ie.exports, De = {
|
|
|
2145
2090
|
e.style.zIndex = r + 1e4, document.body.appendChild(e);
|
|
2146
2091
|
}
|
|
2147
2092
|
}
|
|
2148
|
-
}
|
|
2149
|
-
const He = {
|
|
2093
|
+
}, Ae = {
|
|
2150
2094
|
i18nOptions: {
|
|
2151
2095
|
namespaces: "PremiumStripeForm",
|
|
2152
2096
|
messages: {
|
|
@@ -2338,10 +2282,10 @@ const He = {
|
|
|
2338
2282
|
},
|
|
2339
2283
|
name: "PremiumStripeForm",
|
|
2340
2284
|
components: {
|
|
2341
|
-
CAccordion:
|
|
2342
|
-
CCheckbox:
|
|
2285
|
+
CAccordion: Ce,
|
|
2286
|
+
CCheckbox: ae
|
|
2343
2287
|
},
|
|
2344
|
-
mixins: [
|
|
2288
|
+
mixins: [Z],
|
|
2345
2289
|
props: {
|
|
2346
2290
|
formPlan: {
|
|
2347
2291
|
type: Object,
|
|
@@ -2367,7 +2311,7 @@ const He = {
|
|
|
2367
2311
|
data() {
|
|
2368
2312
|
return {
|
|
2369
2313
|
regions: x,
|
|
2370
|
-
cardBrands:
|
|
2314
|
+
cardBrands: Ue,
|
|
2371
2315
|
stripeCardElementId: "#card-element",
|
|
2372
2316
|
promoInputVisible: !1,
|
|
2373
2317
|
inputPromotionCode: "",
|
|
@@ -2382,17 +2326,17 @@ const He = {
|
|
|
2382
2326
|
return {
|
|
2383
2327
|
formCustomer: {
|
|
2384
2328
|
email: {
|
|
2385
|
-
email:
|
|
2329
|
+
email: _.email
|
|
2386
2330
|
}
|
|
2387
2331
|
},
|
|
2388
2332
|
quantity: {
|
|
2389
|
-
required:
|
|
2390
|
-
minValue:
|
|
2391
|
-
numeric:
|
|
2333
|
+
required: _.required,
|
|
2334
|
+
minValue: _.minValue(1),
|
|
2335
|
+
numeric: _.numeric
|
|
2392
2336
|
},
|
|
2393
2337
|
consent: {
|
|
2394
|
-
required:
|
|
2395
|
-
sameAs:
|
|
2338
|
+
required: _.requiredIf((e) => e.collectConsent),
|
|
2339
|
+
sameAs: _.sameAs((e) => e.collectConsent)
|
|
2396
2340
|
}
|
|
2397
2341
|
};
|
|
2398
2342
|
},
|
|
@@ -2465,10 +2409,10 @@ const He = {
|
|
|
2465
2409
|
}), a.forEach((s) => {
|
|
2466
2410
|
if (s === "bankId" && y[h.brand].defaultRegion === "US")
|
|
2467
2411
|
return;
|
|
2468
|
-
const
|
|
2469
|
-
if (!
|
|
2412
|
+
const c = this.getMeteredProduct(s);
|
|
2413
|
+
if (!c)
|
|
2470
2414
|
return;
|
|
2471
|
-
const o =
|
|
2415
|
+
const o = c.prices.find(
|
|
2472
2416
|
(p) => {
|
|
2473
2417
|
var g;
|
|
2474
2418
|
return p.active && ((g = p == null ? void 0 : p.metadata) == null ? void 0 : g.visible) === !0;
|
|
@@ -2476,12 +2420,12 @@ const He = {
|
|
|
2476
2420
|
);
|
|
2477
2421
|
if (!o)
|
|
2478
2422
|
return;
|
|
2479
|
-
const
|
|
2423
|
+
const l = P(o.amount, {
|
|
2480
2424
|
currency: o.currency,
|
|
2481
2425
|
decimals: 2,
|
|
2482
2426
|
hideZeroDecimals: !0
|
|
2483
2427
|
});
|
|
2484
|
-
n[s] || (n[s] = { type: s, count: 0, cost: null }), n[s].cost =
|
|
2428
|
+
n[s] || (n[s] = { type: s, count: 0, cost: null }), n[s].cost = l;
|
|
2485
2429
|
}), Object.keys(n).map((s) => n[s]);
|
|
2486
2430
|
}
|
|
2487
2431
|
},
|
|
@@ -2509,7 +2453,7 @@ const He = {
|
|
|
2509
2453
|
value: this.customer[t]
|
|
2510
2454
|
});
|
|
2511
2455
|
});
|
|
2512
|
-
const { data: e } = await
|
|
2456
|
+
const { data: e } = await re();
|
|
2513
2457
|
this.setPromotion({ promotionDetails: e });
|
|
2514
2458
|
}
|
|
2515
2459
|
this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
|
|
@@ -2544,7 +2488,7 @@ const He = {
|
|
|
2544
2488
|
}
|
|
2545
2489
|
}
|
|
2546
2490
|
};
|
|
2547
|
-
var
|
|
2491
|
+
var Ve = function() {
|
|
2548
2492
|
var e = this, t = e._self._c;
|
|
2549
2493
|
return t("div", { staticClass: "root font-inter anime-payment-modal" }, [t("div", { staticClass: "flex w-full", staticStyle: { overflow: "hidden" } }, [t("div", { staticClass: "anim-block p-aside" }, [t("div", { staticClass: "p-callout", class: e.uiPlan.accountType }, [t("div", { staticStyle: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, [t("div", { staticStyle: { "text-align": "right", "padding-right": "0.5em" } }, [t("div", { staticStyle: { opacity: "0.7" }, domProps: { textContent: e._s(e.$t("payYearly")) } }), t("div", { staticClass: "text-primary-500 font-medium", domProps: { textContent: e._s(e.$t("saveAmount")) } })]), t("CSwitch", { attrs: { value: e.formPlan.interval === "year", size: "small", type: "secondary" }, on: { input: function(a) {
|
|
2550
2494
|
return e.$emit(
|
|
@@ -2567,11 +2511,11 @@ var Ue = function() {
|
|
|
2567
2511
|
return e.verifyPromotionCode(e.inputPromotionCode);
|
|
2568
2512
|
} } }, [e._v(" " + e._s(e.$t("promotion.submit")) + " ")])], 1)], 2)], 1) : t("CButton", { staticStyle: { "text-decoration": "underline", "margin-right": "-1em" }, attrs: { disabled: e.isEditLock, type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(a) {
|
|
2569
2513
|
e.promoInputVisible = !0;
|
|
2570
|
-
} } }, [e._v(" " + e._s(e.$t("promotion.add")) + " ")])], 1)], 2)]), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "15", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" } }, [t("path", { attrs: { fill: "currentColor", 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" } })]), e._v(" " + e._s(e.$t("highlights.securePayment")) + " ")]), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "20", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" } }, [t("path", { attrs: { fill: "currentColor", 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" } })]), e._v(" " + e._s(e.$t("highlights.satisfiedCustomer")) + " ")]), e.hideExtraInfo ? e._e() : [t("div", { staticClass: "p-badge flex w-full items-center" }, [t("
|
|
2514
|
+
} } }, [e._v(" " + e._s(e.$t("promotion.add")) + " ")])], 1)], 2)]), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "15", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" } }, [t("path", { attrs: { fill: "currentColor", 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" } })]), e._v(" " + e._s(e.$t("highlights.securePayment")) + " ")]), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("svg", { staticClass: "has-text-success", staticStyle: { "margin-right": "0.5em" }, attrs: { width: "17", height: "20", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" } }, [t("path", { attrs: { fill: "currentColor", 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" } })]), e._v(" " + e._s(e.$t("highlights.satisfiedCustomer")) + " ")]), e.hideExtraInfo ? e._e() : [t("div", { staticClass: "p-badge flex w-full items-center" }, [t("CIcon", { staticStyle: { opacity: "0.65", "margin-right": "0.5em" }, attrs: { size: 17, "stroke-width": "2", type: "question" } }), t("span", { staticStyle: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" }, domProps: { textContent: e._s(e.$t("reasonableUse.title")) }, on: { click: function(a) {
|
|
2571
2515
|
return e.$modal.show("reasonableUse");
|
|
2572
|
-
} } })], 1), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("
|
|
2516
|
+
} } })], 1), t("div", { staticClass: "p-badge flex w-full items-center" }, [t("CIcon", { staticStyle: { opacity: "0.65", "margin-right": "0.5em" }, attrs: { size: 17, "stroke-width": "2", type: "question" } }), t("span", { staticStyle: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" }, domProps: { textContent: e._s(e.$t("faq.title")) }, on: { click: function(a) {
|
|
2573
2517
|
return e.$modal.show("faq");
|
|
2574
|
-
} } })], 1)]], 2), t("div", [t("div", { staticClass: "anim-block p-block", staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, [t("span", { staticStyle: { opacity: "0.5" } }, [e._v(e._s(e.$t("formSteps")))]), t("br"), e._v(" " + e._s(e.$t("formTitle")) + " ")])]), t("div", { staticClass: "anim-block", staticStyle: { "font-size": "14px" } }, [e.disableQuantity ? e._e() : t("div", { staticClass: "p-block" }, [t("div", { staticClass: "p-block-title flex w-full items-center" }, [t("div", [e._v(" " + e._s(e.$t("quantity.label")) + " "), t("
|
|
2518
|
+
} } })], 1)]], 2), t("div", [t("div", { staticClass: "anim-block p-block", staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, [t("span", { staticStyle: { opacity: "0.5" } }, [e._v(e._s(e.$t("formSteps")))]), t("br"), e._v(" " + e._s(e.$t("formTitle")) + " ")])]), t("div", { staticClass: "anim-block", staticStyle: { "font-size": "14px" } }, [e.disableQuantity ? e._e() : t("div", { staticClass: "p-block" }, [t("div", { staticClass: "p-block-title flex w-full items-center" }, [t("div", [e._v(" " + e._s(e.$t("quantity.label")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("quantity.tooltip"), expression: "$t('quantity.tooltip')" }], staticClass: "text-gray-400", attrs: { type: "info", size: "16" } })], 1)]), t("div", { staticClass: "flex w-full" }, [t("div", { staticClass: "p-option-list", staticStyle: { flex: "1 1 auto" } }, [t("CField", { attrs: { validator: e.$v.quantity, messages: e.messages.quantity, expanded: "" } }, [t("CInput", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.uiPlan.accountType === "start" ? { content: e.$t("quantity.disabled") } : "", expression: `
|
|
2575
2519
|
uiPlan.accountType === 'start'
|
|
2576
2520
|
? { content: $t('quantity.disabled') }
|
|
2577
2521
|
: ''
|
|
@@ -2599,30 +2543,134 @@ var Ue = function() {
|
|
|
2599
2543
|
e.consent = a;
|
|
2600
2544
|
}, expression: "consent" } }, [t("div", { class: [
|
|
2601
2545
|
e.$v.consent.$invalid && e.$v.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
|
|
2602
|
-
] }, [e._v(" " + e._s(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.termsOfService.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.termsAndConditions")) + " ")]), e._v(" " + e._s(e.$t("_common:and")) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.privacyPolicy.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.privacyPolicy")) + " ")])])])], 1) : e._e(), e.formError ? t("div", { staticClass: "c-flex-row c-align-middle" }, [t("
|
|
2546
|
+
] }, [e._v(" " + e._s(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.termsOfService.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.termsAndConditions")) + " ")]), e._v(" " + e._s(e.$t("_common:and")) + " "), t("a", { staticClass: "underline", attrs: { href: e.$t("_common:brand.privacyPolicy.url"), target: "_blank", rel: "noopener", tabindex: "-1" } }, [e._v(" " + e._s(e.$t("_common:terms.privacyPolicy")) + " ")])])])], 1) : e._e(), e.formError ? t("div", { staticClass: "c-flex-row c-align-middle" }, [t("CIcon", { attrs: { type: "warning", size: "14", stroke: "hsl(360, 100%, 60%)" } }), t("div", { staticStyle: { "margin-left": "0.5em" }, domProps: { textContent: e._s(e.formError) } })], 1) : e._e(), t("div", { staticClass: "anim-block p-block" }, [t("CButton", { staticStyle: { "margin-top": "calc(1 * var(--rem))" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", size: "medium", "icon-right": "arrow-right" }, on: { click: e.submit } }, [e._v(" " + e._s(e.$t("submitButton", { plan: e.uiPlan.name })) + " ")])], 1)])]), t("modal", { staticClass: "primary overflow-visible", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "faq" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": "0.5em", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("faq.title")) } }), e._l(6, function(a) {
|
|
2603
2547
|
return t("CAccordion", { key: a, attrs: { "default-open": null }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: r }) {
|
|
2604
2548
|
return t("div", { staticClass: "list-button" }, [t("span", { domProps: { textContent: e._s(
|
|
2605
2549
|
e.$t(`faq.items.${a - 1}.title`, {
|
|
2606
2550
|
brand: e.$t("_common:brand.name")
|
|
2607
2551
|
})
|
|
2608
|
-
) } }), t("
|
|
2552
|
+
) } }), t("CIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${r ? "0deg" : "180deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
|
|
2609
2553
|
} }], null, !0) }, [t("div", { staticStyle: { "font-size": "14px", opacity: "0.65", padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: e._s(
|
|
2610
2554
|
e.$t(`faq.items.${a - 1}.text`, { brand: e.$t("_common:brand.name") })
|
|
2611
2555
|
) } })]);
|
|
2612
2556
|
})], 2)]), t("modal", { staticClass: "primary overflow-visible", attrs: { adaptive: !0, scrollable: !0, "max-width": 400, height: "auto", width: "90%", classes: "primary overflow-visible", name: "reasonableUse" } }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "600", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("reasonableUse.title")) } }), t("div", { staticStyle: { "font-size": "15px", opacity: "0.75", padding: "0 calc(1 * var(--rem)) calc(2 * var(--rem))" }, domProps: { textContent: e._s(e.$t("reasonableUse.text", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, e._l(e.reasonableUseQuotas, function(a, r) {
|
|
2613
2557
|
return t("div", { key: r, staticStyle: { "font-size": "14px", "margin-bottom": "calc(1 * var(--rem))" } }, [t("span", { staticStyle: { "font-weight": "500", "padding-right": "0.5ch" }, domProps: { textContent: e._s(e.$t(`reasonableUse.${a.type}`) + ":") } }), t("span", { staticStyle: { opacity: "0.75", "padding-right": "0.5ch" }, domProps: { textContent: e._s(e.$t("reasonableUse.quotaIncluded", { count: a.count })) } }), a.cost ? t("span", { staticStyle: { opacity: "0.75" }, domProps: { textContent: e._s(e.$t("reasonableUse.quotaExtra", { cost: a.cost })) } }) : e._e()]);
|
|
2614
2558
|
}), 0)])])], 1);
|
|
2615
|
-
},
|
|
2616
|
-
He,
|
|
2617
|
-
Ue,
|
|
2559
|
+
}, Oe = [], Ne = /* @__PURE__ */ d(
|
|
2618
2560
|
Ae,
|
|
2561
|
+
Ve,
|
|
2562
|
+
Oe,
|
|
2619
2563
|
!1,
|
|
2620
2564
|
null,
|
|
2621
|
-
"
|
|
2565
|
+
"30b943b0"
|
|
2566
|
+
);
|
|
2567
|
+
const ze = Ne.exports, qe = {
|
|
2568
|
+
name: "PremiumStripeSelect",
|
|
2569
|
+
i18nOptions: {
|
|
2570
|
+
namespaces: "premiumStripeSelect",
|
|
2571
|
+
messages: {
|
|
2572
|
+
en: {
|
|
2573
|
+
title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of {{brand,capitalize}}.</span>',
|
|
2574
|
+
saveYearly: "Save 30%",
|
|
2575
|
+
billedYearly: "Billed yearly.",
|
|
2576
|
+
continueButton: "Continue to billing",
|
|
2577
|
+
currentPlan: "Your current plan"
|
|
2578
|
+
},
|
|
2579
|
+
sv: {
|
|
2580
|
+
title: 'Uppgradera ditt konto. <span style="opacity: 0.5;">Få ut mer av {{brand,capitalize}}.</span>',
|
|
2581
|
+
saveYearly: "Spara 30%",
|
|
2582
|
+
billedYearly: "Faktureras årsvis.",
|
|
2583
|
+
continueButton: "Fortsätt till kassan",
|
|
2584
|
+
currentPlan: "Din nuvarande plan"
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
props: {
|
|
2589
|
+
plans: {
|
|
2590
|
+
type: Array,
|
|
2591
|
+
required: !0
|
|
2592
|
+
},
|
|
2593
|
+
interval: {
|
|
2594
|
+
type: String,
|
|
2595
|
+
required: !0
|
|
2596
|
+
},
|
|
2597
|
+
plan: {
|
|
2598
|
+
type: String,
|
|
2599
|
+
required: !0
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
computed: {
|
|
2603
|
+
...v({
|
|
2604
|
+
currentPlan: "stripe/currentPlan",
|
|
2605
|
+
getPrice: "stripe/getPrice"
|
|
2606
|
+
}),
|
|
2607
|
+
currentAccountType() {
|
|
2608
|
+
var n;
|
|
2609
|
+
return ((n = this.currentPlan) == null ? void 0 : n.accountType) || "free";
|
|
2610
|
+
},
|
|
2611
|
+
currentInterval() {
|
|
2612
|
+
var n;
|
|
2613
|
+
return (n = this.currentPlan) == null ? void 0 : n.interval;
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
created() {
|
|
2617
|
+
this.$nextTick(() => {
|
|
2618
|
+
u({
|
|
2619
|
+
targets: ".anim-block",
|
|
2620
|
+
translateY: [50, 0],
|
|
2621
|
+
opacity: [0, 1],
|
|
2622
|
+
delay: u.stagger(80),
|
|
2623
|
+
easing: "spring(1, 70, 20, 9)",
|
|
2624
|
+
complete: (n) => {
|
|
2625
|
+
n.animatables.forEach(({ target: e }) => {
|
|
2626
|
+
e.style.transform = "", this.$el.classList.remove("animating");
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
});
|
|
2630
|
+
});
|
|
2631
|
+
},
|
|
2632
|
+
methods: {
|
|
2633
|
+
getPriceFormatted(n) {
|
|
2634
|
+
if (n.accountType === "free")
|
|
2635
|
+
return "";
|
|
2636
|
+
const { amount: e, currency: t } = this.getPrice(n.accountType, this.interval) || {};
|
|
2637
|
+
if (typeof e > "u" || typeof t > "u")
|
|
2638
|
+
return "";
|
|
2639
|
+
const a = e / (this.interval === "month" ? 1 : 12);
|
|
2640
|
+
return `${P(a, { currency: t })}/${this.$t(
|
|
2641
|
+
"_common:month"
|
|
2642
|
+
)}`;
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
};
|
|
2646
|
+
var Ge = function() {
|
|
2647
|
+
var e = this, t = e._self._c;
|
|
2648
|
+
return t("div", { staticClass: "animating flex w-full flex-col items-center", staticStyle: { "padding-top": "30px" } }, [t("div", { staticClass: "anim-block flex w-full flex-col items-center text-center", staticStyle: { "margin-bottom": "50px" } }, [t("div", { staticStyle: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" }, domProps: { innerHTML: e._s(e.$t("title", { brand: e.$t("_common:brand.name") })) } }), t("div", { staticStyle: { position: "relative" } }, [t("div", { staticClass: "tgl-btn-group" }, e._l(["month", "year"], function(a) {
|
|
2649
|
+
return t("div", { key: a, staticClass: "tgl-btn", class: {
|
|
2650
|
+
selected: e.interval === a
|
|
2651
|
+
}, domProps: { textContent: e._s(e.$t(`_common:paymentInterval.${a}`).capitalize()) }, on: { click: function(r) {
|
|
2652
|
+
return e.$emit("update:interval", a);
|
|
2653
|
+
} } });
|
|
2654
|
+
}), 0), t("div", { staticClass: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, [t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }), t("path", { attrs: { 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", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } })]), t("span", { staticStyle: { "padding-left": "0.25em" }, domProps: { textContent: e._s(e.$t("saveYearly")) } })])])]), t("div", { staticClass: "PriceGrid" }, e._l(e.plans, function(a, r) {
|
|
2655
|
+
return t("div", { key: r, staticClass: "PriceItem anim-block", class: {
|
|
2656
|
+
selected: e.plan === a.accountType
|
|
2657
|
+
}, on: { click: function(i) {
|
|
2658
|
+
return e.$emit("update:plan", a.accountType);
|
|
2659
|
+
} } }, [t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }, attrs: { src: a.img, alt: a.name, width: "50", height: "50" } })]), t("div", { staticClass: "PriceItem__title" }, [t("span", { domProps: { textContent: e._s(a.name) } }), e._v(" ")]), e.currentAccountType === a.accountType ? t("svg", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("currentPlan"), expression: "$t('currentPlan')" }], staticClass: "[.selected_&]:text-primary-500 absolute right-0 top-0 rounded-tr-lg text-gray-400", attrs: { width: "50", height: "50", viewBox: "0 0 70 70", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M0 0H70V70L0 0Z", fill: "currentColor" } }), t("path", { attrs: { d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732", stroke: "white", "stroke-width": "4" } })]) : e._e(), t("div", { staticClass: "PriceItem__cost" }, [t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.getPriceFormatted(a)) } }), e._v(" ")]), t("div", { staticStyle: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, [t("transition", { attrs: { name: "vertical-fader" } }, [e.interval === "year" && a.accountType !== "free" ? t("span", { staticStyle: { display: "inline-block" }, domProps: { textContent: e._s(e.$t("billedYearly")) } }) : e._e()])], 1), t("ul", { staticClass: "PriceItem__text" }, e._l(a.features, function(i) {
|
|
2660
|
+
return t("li", { key: i }, [t("span", { domProps: { textContent: e._s(i) } })]);
|
|
2661
|
+
}), 0)]);
|
|
2662
|
+
}), 0), t("CButton", { staticClass: "anim-block sticky-btn", attrs: { disabled: e.currentAccountType === e.plan && e.currentInterval === e.interval || e.plan === "free", type: "secondary", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
2663
|
+
return e.$emit("next");
|
|
2664
|
+
} } }, [e._v(e._s(e.$t("continueButton")))])], 1);
|
|
2665
|
+
}, je = [], Ze = /* @__PURE__ */ d(
|
|
2666
|
+
qe,
|
|
2667
|
+
Ge,
|
|
2668
|
+
je,
|
|
2669
|
+
!1,
|
|
2622
2670
|
null,
|
|
2623
|
-
|
|
2671
|
+
"8aad9743"
|
|
2624
2672
|
);
|
|
2625
|
-
const
|
|
2673
|
+
const Ke = Ze.exports, Ye = {
|
|
2626
2674
|
sv: {
|
|
2627
2675
|
premiumStripe: {
|
|
2628
2676
|
"features.free": [
|
|
@@ -2665,7 +2713,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2665
2713
|
title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of Offerta.</span>'
|
|
2666
2714
|
}
|
|
2667
2715
|
}
|
|
2668
|
-
},
|
|
2716
|
+
}, We = {
|
|
2669
2717
|
name: "PremiumStripe",
|
|
2670
2718
|
i18nOptions: {
|
|
2671
2719
|
namespaces: "premiumStripe",
|
|
@@ -2699,7 +2747,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2699
2747
|
"Send up to 5 docs / month",
|
|
2700
2748
|
"Up to 2 templates",
|
|
2701
2749
|
"Real-time audit trail",
|
|
2702
|
-
...
|
|
2750
|
+
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2703
2751
|
"SMS"
|
|
2704
2752
|
],
|
|
2705
2753
|
base: [
|
|
@@ -2709,7 +2757,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2709
2757
|
"Members",
|
|
2710
2758
|
"Reminders",
|
|
2711
2759
|
"Real-time audit trail",
|
|
2712
|
-
...
|
|
2760
|
+
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2713
2761
|
"SMS"
|
|
2714
2762
|
],
|
|
2715
2763
|
pro: [
|
|
@@ -2722,7 +2770,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2722
2770
|
"Custom subdomain",
|
|
2723
2771
|
"Custom email address",
|
|
2724
2772
|
"Version control",
|
|
2725
|
-
...
|
|
2773
|
+
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2726
2774
|
`Hide ${y[h.brand].name}-logo`,
|
|
2727
2775
|
"CRM integrations"
|
|
2728
2776
|
]
|
|
@@ -2763,7 +2811,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2763
2811
|
"Skicka upp till 5 dokument / månad",
|
|
2764
2812
|
"Upp till 2 mallar",
|
|
2765
2813
|
"Dokumentspårning i realtid",
|
|
2766
|
-
...
|
|
2814
|
+
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2767
2815
|
"SMS"
|
|
2768
2816
|
],
|
|
2769
2817
|
base: [
|
|
@@ -2773,7 +2821,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2773
2821
|
"Medlemmar",
|
|
2774
2822
|
"Påminnelser",
|
|
2775
2823
|
"Dokumentspårning i realtid",
|
|
2776
|
-
...
|
|
2824
|
+
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2777
2825
|
"SMS"
|
|
2778
2826
|
],
|
|
2779
2827
|
pro: [
|
|
@@ -2786,7 +2834,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2786
2834
|
"Subdomän",
|
|
2787
2835
|
"Egen e-postdomän",
|
|
2788
2836
|
"Versionshantering",
|
|
2789
|
-
...
|
|
2837
|
+
...b.checkFeature("bankId") ? ["BankID"] : [],
|
|
2790
2838
|
`Göm ${y[h.brand].name}-logo`,
|
|
2791
2839
|
"CRM-Integrationer"
|
|
2792
2840
|
]
|
|
@@ -2801,9 +2849,9 @@ const Oe = Ve.exports, Ne = {
|
|
|
2801
2849
|
}
|
|
2802
2850
|
},
|
|
2803
2851
|
components: {
|
|
2804
|
-
Confetti:
|
|
2805
|
-
PremiumStripeSelect:
|
|
2806
|
-
PremiumStripeForm:
|
|
2852
|
+
Confetti: Fe,
|
|
2853
|
+
PremiumStripeSelect: Ke,
|
|
2854
|
+
PremiumStripeForm: ze
|
|
2807
2855
|
},
|
|
2808
2856
|
props: {
|
|
2809
2857
|
suggestedQuantity: {
|
|
@@ -2824,7 +2872,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2824
2872
|
};
|
|
2825
2873
|
},
|
|
2826
2874
|
computed: {
|
|
2827
|
-
...
|
|
2875
|
+
...me({
|
|
2828
2876
|
forceShowBase: (n) => n.route.query.base,
|
|
2829
2877
|
routeDeal: (n) => n.route.query.deal
|
|
2830
2878
|
}),
|
|
@@ -2914,10 +2962,10 @@ const Oe = Ve.exports, Ne = {
|
|
|
2914
2962
|
}
|
|
2915
2963
|
},
|
|
2916
2964
|
beforeCreate() {
|
|
2917
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
2965
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", j);
|
|
2918
2966
|
},
|
|
2919
2967
|
async created() {
|
|
2920
|
-
this.isOfferta &&
|
|
2968
|
+
this.isOfferta && ie(Ye), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
|
|
2921
2969
|
},
|
|
2922
2970
|
methods: {
|
|
2923
2971
|
...$({
|
|
@@ -2934,7 +2982,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2934
2982
|
this.quantity = this.suggestedQuantity;
|
|
2935
2983
|
return;
|
|
2936
2984
|
}
|
|
2937
|
-
const { data: n } = await
|
|
2985
|
+
const { data: n } = await se();
|
|
2938
2986
|
this.quantity = n;
|
|
2939
2987
|
},
|
|
2940
2988
|
onReset() {
|
|
@@ -2972,7 +3020,7 @@ const Oe = Ve.exports, Ne = {
|
|
|
2972
3020
|
setFromDealToken(n) {
|
|
2973
3021
|
if (n)
|
|
2974
3022
|
try {
|
|
2975
|
-
const e =
|
|
3023
|
+
const e = oe(n);
|
|
2976
3024
|
if (e.accountType && (this.plan = e.accountType), e.accountTypeInterval && (this.interval = e.accountTypeInterval), e.accountQuantity && (this.quantity = e.accountQuantity), e.dealSource && (this.dealSource = e.dealSource), e.items) {
|
|
2977
3025
|
const t = [];
|
|
2978
3026
|
Object.keys(e.items).forEach((a) => {
|
|
@@ -2996,11 +3044,11 @@ const Oe = Ve.exports, Ne = {
|
|
|
2996
3044
|
}
|
|
2997
3045
|
}
|
|
2998
3046
|
};
|
|
2999
|
-
var
|
|
3047
|
+
var Xe = function() {
|
|
3000
3048
|
var e = this, t = e._self._c;
|
|
3001
3049
|
return t("div", { staticClass: "font-inter anime-payment-modal font-base relative grid h-full place-items-center overflow-auto bg-white px-12 py-8" }, [t("div", { staticStyle: { position: "absolute", left: "1em", top: "0.5em", display: "inline-flex", "z-index": "10" } }, [t("CButton", { attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: function(a) {
|
|
3002
3050
|
return e.$emit("close");
|
|
3003
|
-
} } }), e.view === "form" ? t("CButton", { staticStyle: { "margin-left": "2px" }, attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "arrow-left" }, on: { click: e.onReset } }) : e._e()], 1), e.calloutMode ? t("div", { staticClass: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4", staticStyle: { "max-width": "calc(55 * var(--rem))" } }, [t("
|
|
3051
|
+
} } }), e.view === "form" ? t("CButton", { staticStyle: { "margin-left": "2px" }, attrs: { "icon-props": { size: 20 }, pattern: "tertiary", type: "none", circle: "", icon: "arrow-left" }, on: { click: e.onReset } }) : e._e()], 1), e.calloutMode ? t("div", { staticClass: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4", staticStyle: { "max-width": "calc(55 * var(--rem))" } }, [t("CIcon", { staticClass: "text-primary-800 absolute left-4 top-5", attrs: { type: "info", size: "20" } }), t("div", { staticClass: "text-primary-800 font-semibold", domProps: { textContent: e._s(e.$t(`callout.${e.calloutMode}.title`)) } }), t("div", { staticClass: "text-sm opacity-70", domProps: { innerHTML: e._s(e.$t(`callout.${e.calloutMode}.text`)) } })], 1) : e._e(), t("div", [e.view === "select" ? t("PremiumStripeSelect", { attrs: { plan: e.plan, interval: e.interval, plans: e.prettyPlans }, on: { "update:plan": function(a) {
|
|
3004
3052
|
e.plan = a;
|
|
3005
3053
|
}, "update:interval": function(a) {
|
|
3006
3054
|
e.interval = a;
|
|
@@ -3011,17 +3059,15 @@ var qe = function() {
|
|
|
3011
3059
|
}, input: e.setFormValue, success: e.goToSuccess } }) : e.view === "success" ? t("div", { staticClass: "flex h-full w-full flex-col items-center justify-center text-center" }, [t("Confetti", { attrs: { animate: e.animateConfetti } }), e.isEdit ? e._e() : t("div", { staticClass: "success-block", staticStyle: { "font-size": "calc(18px + 2vw)", "font-weight": "800" } }, [e._v(" " + e._s(e.$t("success.title")) + " ")]), t("div", { staticClass: "success-block", staticStyle: { "font-size": "20px", opacity: "0.7" } }, [e._v(" " + e._s(e.isEdit ? e.$t("success.subTitleEdit") : e.$t("success.subTitle")) + " ")]), t("CButton", { staticClass: "success-block", staticStyle: { "margin-top": "3em" }, attrs: { type: "secondary", size: "medium", rounded: "" }, on: { click: function(a) {
|
|
3012
3060
|
return e.closeAndContinue();
|
|
3013
3061
|
} } }, [e._v(e._s(e.$t("success.closeButton")))])], 1) : e._e()], 1)]);
|
|
3014
|
-
},
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3062
|
+
}, Qe = [], Je = /* @__PURE__ */ d(
|
|
3063
|
+
We,
|
|
3064
|
+
Xe,
|
|
3065
|
+
Qe,
|
|
3018
3066
|
!1,
|
|
3019
3067
|
null,
|
|
3020
|
-
null,
|
|
3021
|
-
null,
|
|
3022
3068
|
null
|
|
3023
3069
|
);
|
|
3024
|
-
const
|
|
3070
|
+
const K = Je.exports, et = {
|
|
3025
3071
|
name: "IsPremium",
|
|
3026
3072
|
computed: {
|
|
3027
3073
|
...v({
|
|
@@ -3085,7 +3131,7 @@ const Ze = je.exports, Ke = {
|
|
|
3085
3131
|
} = {}) {
|
|
3086
3132
|
let a = () => null, r = () => null;
|
|
3087
3133
|
typeof e == "function" && (a = e), typeof t == "function" && (r = t), this.$modal.show(
|
|
3088
|
-
|
|
3134
|
+
K,
|
|
3089
3135
|
{
|
|
3090
3136
|
suggestedQuantity: n,
|
|
3091
3137
|
onUpgrade: a
|
|
@@ -3119,91 +3165,25 @@ const Ze = je.exports, Ke = {
|
|
|
3119
3165
|
accountType: this.subscription.type,
|
|
3120
3166
|
freeDocumentsLeft: this.subscription.freeDocumentsLeft,
|
|
3121
3167
|
trialDaysLeft: this.subscription.trialDaysLeft,
|
|
3122
|
-
maxProjectManagers: this.subscription.maxProjectManagers,
|
|
3123
|
-
initialFreePremiumDays: this.subscription.initialFreePremiumDays,
|
|
3124
|
-
canCreateDocument: this.canCreateDocument,
|
|
3125
|
-
canUseTemplate: this.canUseTemplate,
|
|
3126
|
-
canCreateTemplate: this.canCreateTemplate,
|
|
3127
|
-
canUseBankId: this.canUseBankId,
|
|
3128
|
-
canUseSms: this.canUseSms
|
|
3129
|
-
}) : {};
|
|
3130
|
-
}
|
|
3131
|
-
}, Ye = null, We = null;
|
|
3132
|
-
var Xe = /* @__PURE__ */ d(
|
|
3133
|
-
Ke,
|
|
3134
|
-
Ye,
|
|
3135
|
-
We,
|
|
3136
|
-
!1,
|
|
3137
|
-
null,
|
|
3138
|
-
null,
|
|
3139
|
-
null,
|
|
3140
|
-
null
|
|
3141
|
-
);
|
|
3142
|
-
const Qe = Xe.exports, Je = {
|
|
3143
|
-
name: "CalloutLegacy",
|
|
3144
|
-
i18nOptions: {
|
|
3145
|
-
namespaces: "components",
|
|
3146
|
-
messages: {
|
|
3147
|
-
sv: {
|
|
3148
|
-
legacy: {
|
|
3149
|
-
title: "Du har en gammal kontoplan",
|
|
3150
|
-
text: `
|
|
3151
|
-
Den här funktionen är enbart tillgänglig på våra uppdaterade kontoplaner.
|
|
3152
|
-
För att gå vidare måste du först byta till de uppdaterade kontoplanerna.
|
|
3153
|
-
`,
|
|
3154
|
-
action: "Gå till inställningar"
|
|
3155
|
-
},
|
|
3156
|
-
invoice: {
|
|
3157
|
-
title: "Byt till kortbetalning",
|
|
3158
|
-
text: `
|
|
3159
|
-
För att gå vidare måste du byta till att använda kortbetalning.
|
|
3160
|
-
Din betalningsmetod är just nu faktura.
|
|
3161
|
-
`,
|
|
3162
|
-
action: "Gå till inställningar"
|
|
3163
|
-
}
|
|
3164
|
-
},
|
|
3165
|
-
en: {
|
|
3166
|
-
legacy: {
|
|
3167
|
-
title: "Your account plan is outdated",
|
|
3168
|
-
text: `
|
|
3169
|
-
This feature is now only available on our updated account plans.
|
|
3170
|
-
To continue you must first convert your account to the updated account plans.
|
|
3171
|
-
`,
|
|
3172
|
-
action: "Go to settings"
|
|
3173
|
-
},
|
|
3174
|
-
invoice: {
|
|
3175
|
-
title: "Change to card",
|
|
3176
|
-
text: `
|
|
3177
|
-
To continue you must change your payment method to card. You're currently using invoice as a payment method.
|
|
3178
|
-
`,
|
|
3179
|
-
action: "Go to settings"
|
|
3180
|
-
}
|
|
3181
|
-
}
|
|
3182
|
-
}
|
|
3183
|
-
},
|
|
3184
|
-
props: {
|
|
3185
|
-
mode: {
|
|
3186
|
-
type: String,
|
|
3187
|
-
default: "legacy",
|
|
3188
|
-
validator: (n) => ["legacy", "invoice"].includes(n)
|
|
3189
|
-
}
|
|
3168
|
+
maxProjectManagers: this.subscription.maxProjectManagers,
|
|
3169
|
+
initialFreePremiumDays: this.subscription.initialFreePremiumDays,
|
|
3170
|
+
canCreateDocument: this.canCreateDocument,
|
|
3171
|
+
canUseTemplate: this.canUseTemplate,
|
|
3172
|
+
canCreateTemplate: this.canCreateTemplate,
|
|
3173
|
+
canUseBankId: this.canUseBankId,
|
|
3174
|
+
canUseSms: this.canUseSms
|
|
3175
|
+
}) : {};
|
|
3190
3176
|
}
|
|
3191
|
-
};
|
|
3192
|
-
var
|
|
3193
|
-
var e = this, t = e._self._c;
|
|
3194
|
-
return t("div", { staticStyle: { 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" } }, [t("div", { staticStyle: { "font-weight": "600" }, domProps: { textContent: e._s(e.$t(`${e.mode}.title`)) } }), t("div", { staticStyle: { "font-size": "14px", opacity: "0.7", "margin-bottom": "2em" }, domProps: { textContent: e._s(e.$t(`${e.mode}.text`)) } }), t("CButton", { attrs: { to: { name: "settingsBilling", query: { highlight: e.mode } }, target: "_blank", type: "secondary", wide: "", "icon-right": "new-window" } }, [e._v(" " + e._s(e.$t(`${e.mode}.action`)) + " ")])], 1);
|
|
3195
|
-
}, tt = [], nt = /* @__PURE__ */ d(
|
|
3196
|
-
Je,
|
|
3177
|
+
}, tt = null, nt = null;
|
|
3178
|
+
var at = /* @__PURE__ */ d(
|
|
3197
3179
|
et,
|
|
3198
3180
|
tt,
|
|
3181
|
+
nt,
|
|
3199
3182
|
!1,
|
|
3200
3183
|
null,
|
|
3201
|
-
null,
|
|
3202
|
-
null,
|
|
3203
3184
|
null
|
|
3204
3185
|
);
|
|
3205
|
-
const
|
|
3206
|
-
const rt = {
|
|
3186
|
+
const Y = at.exports, rt = {
|
|
3207
3187
|
i18nOptions: {
|
|
3208
3188
|
namespaces: "components",
|
|
3209
3189
|
messages: {
|
|
@@ -3227,8 +3207,8 @@ const rt = {
|
|
|
3227
3207
|
},
|
|
3228
3208
|
name: "PremiumRestrictedBase",
|
|
3229
3209
|
components: {
|
|
3230
|
-
IsPremium:
|
|
3231
|
-
CalloutLegacy:
|
|
3210
|
+
IsPremium: Y,
|
|
3211
|
+
CalloutLegacy: G
|
|
3232
3212
|
},
|
|
3233
3213
|
props: {
|
|
3234
3214
|
plan: {
|
|
@@ -3266,8 +3246,6 @@ const rt = {
|
|
|
3266
3246
|
async onActionClick(n) {
|
|
3267
3247
|
try {
|
|
3268
3248
|
this.isLoading = !0, await n({ callback: this.onUpgrade }), this.$parent.$emit("close");
|
|
3269
|
-
} catch (e) {
|
|
3270
|
-
throw e;
|
|
3271
3249
|
} finally {
|
|
3272
3250
|
this.isLoading = !1;
|
|
3273
3251
|
}
|
|
@@ -3276,7 +3254,7 @@ const rt = {
|
|
|
3276
3254
|
};
|
|
3277
3255
|
var it = function() {
|
|
3278
3256
|
var e = this, t = e._self._c;
|
|
3279
|
-
return t("div", { staticClass: "root font-inter" }, [t("div", { staticClass: "lock-wrapper has-text-white" }, [t("
|
|
3257
|
+
return t("div", { staticClass: "root font-inter" }, [t("div", { staticClass: "lock-wrapper has-text-white" }, [t("CIcon", { attrs: { type: "lock", size: "24" } })], 1), t("div", { staticStyle: { width: "100%" } }, [t("div", { staticClass: "flex items-center justify-center" }, [t("div", { staticClass: "badge-premium" }, [e._v(e._s(e.$t(`badge.${e.plan}`)))])]), t("div", { staticStyle: { "text-align": "center" } }, [e._t("default", function() {
|
|
3280
3258
|
return [e._t("image"), t("div", { staticClass: "title" }, [e._v(e._s(e.title))]), t("div", { staticClass: "sub-title" }, [e._v(e._s(e.subTitle))])];
|
|
3281
3259
|
}), e.$slots.content ? t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [e._t("content")], 2) : e._e()], 2), t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ openUpgradeModal: a, isLegacy: r, showCalloutConvertStripe: i }) {
|
|
3282
3260
|
return [t("div", [r || i ? t("CalloutLegacy", { attrs: { mode: r ? "legacy" : "invoice" } }) : e._e(), t("CButton", { attrs: { loading: e.isLoading, disabled: r || i, type: "secondary", wide: "" }, on: { click: function(s) {
|
|
@@ -3293,28 +3271,25 @@ var it = function() {
|
|
|
3293
3271
|
st,
|
|
3294
3272
|
!1,
|
|
3295
3273
|
null,
|
|
3296
|
-
"
|
|
3297
|
-
null,
|
|
3298
|
-
null
|
|
3274
|
+
"d154238a"
|
|
3299
3275
|
);
|
|
3300
|
-
const f = ot.exports,
|
|
3276
|
+
const f = ot.exports, ct = {
|
|
3301
3277
|
i18nOptions: {
|
|
3302
|
-
namespaces: "
|
|
3303
|
-
keyPrefix: "account.subscription.winProfile",
|
|
3278
|
+
namespaces: "PremiumRestrictedBankIdAndSms",
|
|
3304
3279
|
messages: {
|
|
3305
3280
|
sv: {
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3281
|
+
title: "Skicka med {{bankIdText,spaceAfter}}SMS",
|
|
3282
|
+
subTitle: "För att kunna skicka fler dokument med {{bankIdText,spaceAfter}}SMS behöver du uppgradera ditt konto.",
|
|
3283
|
+
actionText: "Uppgradera konto"
|
|
3309
3284
|
},
|
|
3310
3285
|
en: {
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3286
|
+
title: "Send with {{bankIdText,spaceAfter}}SMS",
|
|
3287
|
+
subTitle: "To send more documents with {{bankIdText,spaceAfter}}SMS you need to upgrade your account.",
|
|
3288
|
+
actionText: "Upgrade my plan"
|
|
3314
3289
|
}
|
|
3315
3290
|
}
|
|
3316
3291
|
},
|
|
3317
|
-
name: "
|
|
3292
|
+
name: "PremiumRestrictedBankIdAndSms",
|
|
3318
3293
|
components: {
|
|
3319
3294
|
PremiumRestrictedBase: f
|
|
3320
3295
|
},
|
|
@@ -3323,36 +3298,45 @@ const f = ot.exports, lt = {
|
|
|
3323
3298
|
type: Function,
|
|
3324
3299
|
default: null
|
|
3325
3300
|
}
|
|
3301
|
+
},
|
|
3302
|
+
computed: {
|
|
3303
|
+
...v({
|
|
3304
|
+
feature: "application/feature"
|
|
3305
|
+
})
|
|
3326
3306
|
}
|
|
3327
3307
|
};
|
|
3328
|
-
var
|
|
3308
|
+
var lt = function() {
|
|
3329
3309
|
var e = this, t = e._self._c;
|
|
3330
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"
|
|
3310
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title", {
|
|
3311
|
+
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
|
|
3312
|
+
}), "sub-title": e.$t("subTitle", {
|
|
3313
|
+
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:or") : ""
|
|
3314
|
+
}), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3331
3315
|
}, ut = [], dt = /* @__PURE__ */ d(
|
|
3332
|
-
lt,
|
|
3333
3316
|
ct,
|
|
3317
|
+
lt,
|
|
3334
3318
|
ut,
|
|
3335
3319
|
!1,
|
|
3336
3320
|
null,
|
|
3337
|
-
null,
|
|
3338
|
-
null,
|
|
3339
3321
|
null
|
|
3340
3322
|
);
|
|
3341
3323
|
const mt = dt.exports, pt = {
|
|
3342
3324
|
i18nOptions: {
|
|
3343
|
-
namespaces: "
|
|
3325
|
+
namespaces: "licenses",
|
|
3344
3326
|
messages: {
|
|
3345
|
-
en: {
|
|
3346
|
-
title: "Become even more effective",
|
|
3347
|
-
subTitle: "Create reusable text so you can create proposal with a few click"
|
|
3348
|
-
},
|
|
3349
3327
|
sv: {
|
|
3350
|
-
title: "
|
|
3351
|
-
subTitle: "
|
|
3328
|
+
title: "Lägg till skapare",
|
|
3329
|
+
subTitle: "För att bjuda in en dokumentskapare behöver du uppgradera till vår Base- eller Pro-plan.",
|
|
3330
|
+
actionText: "Uppgradera konto"
|
|
3331
|
+
},
|
|
3332
|
+
en: {
|
|
3333
|
+
title: "Add creators",
|
|
3334
|
+
subTitle: "To invite creators you need to upgrade your account to the Base or Pro plan.",
|
|
3335
|
+
actionText: "Upgrade my plan"
|
|
3352
3336
|
}
|
|
3353
3337
|
}
|
|
3354
3338
|
},
|
|
3355
|
-
name: "
|
|
3339
|
+
name: "PremiumRestrictedCreators",
|
|
3356
3340
|
components: {
|
|
3357
3341
|
PremiumRestrictedBase: f
|
|
3358
3342
|
},
|
|
@@ -3365,18 +3349,54 @@ const mt = dt.exports, pt = {
|
|
|
3365
3349
|
};
|
|
3366
3350
|
var gt = function() {
|
|
3367
3351
|
var e = this, t = e._self._c;
|
|
3368
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "
|
|
3352
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "action-function": e.onUpgrade, plan: "premium" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3369
3353
|
}, ht = [], ft = /* @__PURE__ */ d(
|
|
3370
3354
|
pt,
|
|
3371
3355
|
gt,
|
|
3372
3356
|
ht,
|
|
3373
3357
|
!1,
|
|
3374
3358
|
null,
|
|
3375
|
-
null,
|
|
3376
|
-
null,
|
|
3377
3359
|
null
|
|
3378
3360
|
);
|
|
3379
3361
|
const yt = ft.exports, Ct = {
|
|
3362
|
+
i18nOptions: {
|
|
3363
|
+
namespaces: "stats",
|
|
3364
|
+
messages: {
|
|
3365
|
+
sv: {
|
|
3366
|
+
title: "Premium block",
|
|
3367
|
+
subTitle: "För att använda premium block behöver du uppgradera ditt konto till Pro.",
|
|
3368
|
+
actionText: "Uppgradera konto"
|
|
3369
|
+
},
|
|
3370
|
+
en: {
|
|
3371
|
+
title: "Premium block",
|
|
3372
|
+
subTitle: "To use premium blocks, you need to upgrade your account to Pro.",
|
|
3373
|
+
actionText: "Upgrade my plan"
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
name: "PremiumRestrictedDocumentBlocks",
|
|
3378
|
+
components: {
|
|
3379
|
+
PremiumRestrictedBase: f
|
|
3380
|
+
},
|
|
3381
|
+
props: {
|
|
3382
|
+
onUpgrade: {
|
|
3383
|
+
type: Function,
|
|
3384
|
+
default: null
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
};
|
|
3388
|
+
var vt = function() {
|
|
3389
|
+
var e = this, t = e._self._c;
|
|
3390
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3391
|
+
}, bt = [], _t = /* @__PURE__ */ d(
|
|
3392
|
+
Ct,
|
|
3393
|
+
vt,
|
|
3394
|
+
bt,
|
|
3395
|
+
!1,
|
|
3396
|
+
null,
|
|
3397
|
+
null
|
|
3398
|
+
);
|
|
3399
|
+
const Pt = _t.exports, St = {
|
|
3380
3400
|
i18nOptions: {
|
|
3381
3401
|
namespaces: "PremiumRestrictedDocuments",
|
|
3382
3402
|
messages: {
|
|
@@ -3425,7 +3445,7 @@ const yt = ft.exports, Ct = {
|
|
|
3425
3445
|
},
|
|
3426
3446
|
created() {
|
|
3427
3447
|
try {
|
|
3428
|
-
|
|
3448
|
+
ce("/documentLimitReached", {});
|
|
3429
3449
|
} catch (n) {
|
|
3430
3450
|
D(n, { showMessage: !1 });
|
|
3431
3451
|
}
|
|
@@ -3448,7 +3468,7 @@ const yt = ft.exports, Ct = {
|
|
|
3448
3468
|
},
|
|
3449
3469
|
async canUseVoucher() {
|
|
3450
3470
|
try {
|
|
3451
|
-
return await
|
|
3471
|
+
return await B.canUse("freeUserDocs"), !0;
|
|
3452
3472
|
} catch {
|
|
3453
3473
|
return E.setItem(
|
|
3454
3474
|
"voucher-freeUserDocs-company-id",
|
|
@@ -3459,10 +3479,10 @@ const yt = ft.exports, Ct = {
|
|
|
3459
3479
|
async useFreeDocsVoucher() {
|
|
3460
3480
|
this.isLoading = !0;
|
|
3461
3481
|
try {
|
|
3462
|
-
await
|
|
3482
|
+
await B.post({ code: "freeUserDocs" }), E.setItem(
|
|
3463
3483
|
"voucher-freeUserDocs-company-id",
|
|
3464
3484
|
this.account.CompanyId
|
|
3465
|
-
), await this.loadCurrentCompany(),
|
|
3485
|
+
), await this.loadCurrentCompany(), le(
|
|
3466
3486
|
"success",
|
|
3467
3487
|
this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
|
|
3468
3488
|
), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
|
|
@@ -3474,59 +3494,18 @@ const yt = ft.exports, Ct = {
|
|
|
3474
3494
|
}
|
|
3475
3495
|
}
|
|
3476
3496
|
};
|
|
3477
|
-
var vt = function() {
|
|
3478
|
-
var e = this, t = e._self._c;
|
|
3479
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } }, [e.canUseFreeDocVoucher ? t("div", { staticStyle: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" }, attrs: { slot: "content" }, slot: "content" }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "500" } }, [t("span", { staticStyle: { "margin-right": "4px" } }, [e._v("🎁")]), e._v(" " + e._s(e.$t("voucherTitle")) + " ")]), t("div", { staticStyle: { opacity: "0.75" }, domProps: { textContent: e._s(e.$t("voucherText", { count: e.voucherDocCount })) } }), t("div", { staticClass: "flex w-full justify-center", staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [t("CButton", { staticStyle: { border: "none", background: "hsl(33, 100%, 95%)", color: "hsl(33, 88%, 36%)", "box-shadow": "0 3px 6px -2px rgb(0, 0, 0, 0.3)" }, attrs: { loading: e.isLoading, transparent: "", "icon-left": "heart" }, on: { click: e.useFreeDocsVoucher } }, [e._v(" " + e._s(e.$t("voucherButton", { count: e.voucherDocCount })) + " ")])], 1)]) : e._e()]);
|
|
3480
|
-
}, _t = [], bt = /* @__PURE__ */ d(
|
|
3481
|
-
Ct,
|
|
3482
|
-
vt,
|
|
3483
|
-
_t,
|
|
3484
|
-
!1,
|
|
3485
|
-
null,
|
|
3486
|
-
null,
|
|
3487
|
-
null,
|
|
3488
|
-
null
|
|
3489
|
-
);
|
|
3490
|
-
const Pt = bt.exports, St = {
|
|
3491
|
-
i18nOptions: {
|
|
3492
|
-
namespaces: "personalMessage",
|
|
3493
|
-
messages: {
|
|
3494
|
-
en: {
|
|
3495
|
-
title: "Make an impression",
|
|
3496
|
-
subTitle: "Upgrade to premium to add a personal message"
|
|
3497
|
-
},
|
|
3498
|
-
sv: {
|
|
3499
|
-
title: "Gör ett gott intryck",
|
|
3500
|
-
subTitle: "Uppgradera till Premium för att kunna lägga till en personlig hälsning."
|
|
3501
|
-
}
|
|
3502
|
-
}
|
|
3503
|
-
},
|
|
3504
|
-
name: "PremiumRestrictedPersonalMessage",
|
|
3505
|
-
components: {
|
|
3506
|
-
PremiumRestrictedBase: f
|
|
3507
|
-
},
|
|
3508
|
-
props: {
|
|
3509
|
-
onUpgrade: {
|
|
3510
|
-
type: Function,
|
|
3511
|
-
default: null
|
|
3512
|
-
}
|
|
3513
|
-
}
|
|
3514
|
-
};
|
|
3515
3497
|
var kt = function() {
|
|
3516
3498
|
var e = this, t = e._self._c;
|
|
3517
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3499
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } }, [e.canUseFreeDocVoucher ? t("div", { staticStyle: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" }, attrs: { slot: "content" }, slot: "content" }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "500" } }, [t("span", { staticStyle: { "margin-right": "4px" } }, [e._v("🎁")]), e._v(" " + e._s(e.$t("voucherTitle")) + " ")]), t("div", { staticStyle: { opacity: "0.75" }, domProps: { textContent: e._s(e.$t("voucherText", { count: e.voucherDocCount })) } }), t("div", { staticClass: "flex w-full justify-center", staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [t("CButton", { staticStyle: { border: "none", background: "hsl(33, 100%, 95%)", color: "hsl(33, 88%, 36%)", "box-shadow": "0 3px 6px -2px rgb(0, 0, 0, 0.3)" }, attrs: { loading: e.isLoading, transparent: "", "icon-left": "heart" }, on: { click: e.useFreeDocsVoucher } }, [e._v(" " + e._s(e.$t("voucherButton", { count: e.voucherDocCount })) + " ")])], 1)]) : e._e()]);
|
|
3518
3500
|
}, xt = [], wt = /* @__PURE__ */ d(
|
|
3519
3501
|
St,
|
|
3520
3502
|
kt,
|
|
3521
3503
|
xt,
|
|
3522
3504
|
!1,
|
|
3523
3505
|
null,
|
|
3524
|
-
null,
|
|
3525
|
-
null,
|
|
3526
3506
|
null
|
|
3527
3507
|
);
|
|
3528
|
-
const $t = wt.exports
|
|
3529
|
-
const Tt = {
|
|
3508
|
+
const $t = wt.exports, Tt = {
|
|
3530
3509
|
i18nOptions: {
|
|
3531
3510
|
namespaces: "licenses",
|
|
3532
3511
|
messages: {
|
|
@@ -3569,7 +3548,7 @@ const Tt = {
|
|
|
3569
3548
|
}
|
|
3570
3549
|
},
|
|
3571
3550
|
beforeCreate() {
|
|
3572
|
-
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe",
|
|
3551
|
+
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", j);
|
|
3573
3552
|
},
|
|
3574
3553
|
created() {
|
|
3575
3554
|
this.initLicense();
|
|
@@ -3614,7 +3593,7 @@ const Tt = {
|
|
|
3614
3593
|
return await this.loadCurrentCompany(), n;
|
|
3615
3594
|
},
|
|
3616
3595
|
async addInvoiceLicense() {
|
|
3617
|
-
await
|
|
3596
|
+
await ue(), await this.loadCurrentCompany();
|
|
3618
3597
|
}
|
|
3619
3598
|
}
|
|
3620
3599
|
};
|
|
@@ -3627,28 +3606,23 @@ var Mt = function() {
|
|
|
3627
3606
|
Et,
|
|
3628
3607
|
!1,
|
|
3629
3608
|
null,
|
|
3630
|
-
null,
|
|
3631
|
-
null,
|
|
3632
3609
|
null
|
|
3633
3610
|
);
|
|
3634
|
-
const Lt = It.exports
|
|
3635
|
-
const Dt = {
|
|
3611
|
+
const Lt = It.exports, Dt = {
|
|
3636
3612
|
i18nOptions: {
|
|
3637
|
-
namespaces: "
|
|
3613
|
+
namespaces: "personalMessage",
|
|
3638
3614
|
messages: {
|
|
3639
|
-
sv: {
|
|
3640
|
-
title: "Lägg till skapare",
|
|
3641
|
-
subTitle: "För att bjuda in en dokumentskapare behöver du uppgradera till vår Base- eller Pro-plan.",
|
|
3642
|
-
actionText: "Uppgradera konto"
|
|
3643
|
-
},
|
|
3644
3615
|
en: {
|
|
3645
|
-
title: "
|
|
3646
|
-
subTitle: "
|
|
3647
|
-
|
|
3616
|
+
title: "Make an impression",
|
|
3617
|
+
subTitle: "Upgrade to premium to add a personal message"
|
|
3618
|
+
},
|
|
3619
|
+
sv: {
|
|
3620
|
+
title: "Gör ett gott intryck",
|
|
3621
|
+
subTitle: "Uppgradera till Premium för att kunna lägga till en personlig hälsning."
|
|
3648
3622
|
}
|
|
3649
3623
|
}
|
|
3650
3624
|
},
|
|
3651
|
-
name: "
|
|
3625
|
+
name: "PremiumRestrictedPersonalMessage",
|
|
3652
3626
|
components: {
|
|
3653
3627
|
PremiumRestrictedBase: f
|
|
3654
3628
|
},
|
|
@@ -3661,34 +3635,32 @@ const Dt = {
|
|
|
3661
3635
|
};
|
|
3662
3636
|
var Rt = function() {
|
|
3663
3637
|
var e = this, t = e._self._c;
|
|
3664
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "
|
|
3665
|
-
}, Ft = [],
|
|
3638
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3639
|
+
}, Ft = [], Ut = /* @__PURE__ */ d(
|
|
3666
3640
|
Dt,
|
|
3667
3641
|
Rt,
|
|
3668
3642
|
Ft,
|
|
3669
3643
|
!1,
|
|
3670
3644
|
null,
|
|
3671
|
-
null,
|
|
3672
|
-
null,
|
|
3673
3645
|
null
|
|
3674
3646
|
);
|
|
3675
|
-
const Ht =
|
|
3647
|
+
const Ht = Ut.exports, Bt = {
|
|
3676
3648
|
i18nOptions: {
|
|
3677
|
-
namespaces: "
|
|
3649
|
+
namespaces: "PremiumRestrictedEditDocumentLayout",
|
|
3678
3650
|
messages: {
|
|
3679
3651
|
sv: {
|
|
3680
|
-
title: "
|
|
3681
|
-
subTitle: "För att
|
|
3652
|
+
title: "Spara dokumentmall",
|
|
3653
|
+
subTitle: "För att spara en dokumentmall behöver du uppgradera till ett betalkonto.",
|
|
3682
3654
|
actionText: "Uppgradera konto"
|
|
3683
3655
|
},
|
|
3684
3656
|
en: {
|
|
3685
|
-
title: "
|
|
3686
|
-
subTitle: "To
|
|
3657
|
+
title: "Save document template",
|
|
3658
|
+
subTitle: "To save a document template you need to upgrade to a paid plan.",
|
|
3687
3659
|
actionText: "Upgrade my plan"
|
|
3688
3660
|
}
|
|
3689
3661
|
}
|
|
3690
3662
|
},
|
|
3691
|
-
name: "
|
|
3663
|
+
name: "PremiumRestrictedSaveDocTemplate",
|
|
3692
3664
|
components: {
|
|
3693
3665
|
PremiumRestrictedBase: f
|
|
3694
3666
|
},
|
|
@@ -3703,13 +3675,11 @@ var At = function() {
|
|
|
3703
3675
|
var e = this, t = e._self._c;
|
|
3704
3676
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3705
3677
|
}, Vt = [], Ot = /* @__PURE__ */ d(
|
|
3706
|
-
|
|
3678
|
+
Bt,
|
|
3707
3679
|
At,
|
|
3708
3680
|
Vt,
|
|
3709
3681
|
!1,
|
|
3710
3682
|
null,
|
|
3711
|
-
null,
|
|
3712
|
-
null,
|
|
3713
3683
|
null
|
|
3714
3684
|
);
|
|
3715
3685
|
const Nt = Ot.exports, zt = {
|
|
@@ -3717,18 +3687,18 @@ const Nt = Ot.exports, zt = {
|
|
|
3717
3687
|
namespaces: "stats",
|
|
3718
3688
|
messages: {
|
|
3719
3689
|
sv: {
|
|
3720
|
-
title: "
|
|
3721
|
-
subTitle: "För att
|
|
3690
|
+
title: "Statistik",
|
|
3691
|
+
subTitle: "För att se statistik över alla dina dokument behöver du uppgradera ditt konto till Pro.",
|
|
3722
3692
|
actionText: "Uppgradera konto"
|
|
3723
3693
|
},
|
|
3724
3694
|
en: {
|
|
3725
|
-
title: "
|
|
3726
|
-
subTitle: "To
|
|
3695
|
+
title: "Statistics",
|
|
3696
|
+
subTitle: "To view statistics about all your documents you need to upgrade your account to Pro.",
|
|
3727
3697
|
actionText: "Upgrade my plan"
|
|
3728
3698
|
}
|
|
3729
3699
|
}
|
|
3730
3700
|
},
|
|
3731
|
-
name: "
|
|
3701
|
+
name: "PremiumRestrictedStats",
|
|
3732
3702
|
components: {
|
|
3733
3703
|
PremiumRestrictedBase: f
|
|
3734
3704
|
},
|
|
@@ -3748,27 +3718,23 @@ var qt = function() {
|
|
|
3748
3718
|
Gt,
|
|
3749
3719
|
!1,
|
|
3750
3720
|
null,
|
|
3751
|
-
null,
|
|
3752
|
-
null,
|
|
3753
3721
|
null
|
|
3754
3722
|
);
|
|
3755
3723
|
const Zt = jt.exports, Kt = {
|
|
3756
3724
|
i18nOptions: {
|
|
3757
|
-
namespaces: "
|
|
3725
|
+
namespaces: "subTemplates",
|
|
3758
3726
|
messages: {
|
|
3759
|
-
sv: {
|
|
3760
|
-
title: "Skicka med {{bankIdText,spaceAfter}}SMS",
|
|
3761
|
-
subTitle: "För att kunna skicka fler dokument med {{bankIdText,spaceAfter}}SMS behöver du uppgradera ditt konto.",
|
|
3762
|
-
actionText: "Uppgradera konto"
|
|
3763
|
-
},
|
|
3764
3727
|
en: {
|
|
3765
|
-
title: "
|
|
3766
|
-
subTitle: "
|
|
3767
|
-
|
|
3728
|
+
title: "Become even more effective",
|
|
3729
|
+
subTitle: "Create reusable text so you can create proposal with a few click"
|
|
3730
|
+
},
|
|
3731
|
+
sv: {
|
|
3732
|
+
title: "Bli ännu mer effektiv",
|
|
3733
|
+
subTitle: "Skapa återanvändbara texter så kan du med ett par klick få en komplett offert."
|
|
3768
3734
|
}
|
|
3769
3735
|
}
|
|
3770
3736
|
},
|
|
3771
|
-
name: "
|
|
3737
|
+
name: "PremiumRestrictedTemplates",
|
|
3772
3738
|
components: {
|
|
3773
3739
|
PremiumRestrictedBase: f
|
|
3774
3740
|
},
|
|
@@ -3777,28 +3743,17 @@ const Zt = jt.exports, Kt = {
|
|
|
3777
3743
|
type: Function,
|
|
3778
3744
|
default: null
|
|
3779
3745
|
}
|
|
3780
|
-
},
|
|
3781
|
-
computed: {
|
|
3782
|
-
...v({
|
|
3783
|
-
feature: "application/feature"
|
|
3784
|
-
})
|
|
3785
3746
|
}
|
|
3786
3747
|
};
|
|
3787
3748
|
var Yt = function() {
|
|
3788
3749
|
var e = this, t = e._self._c;
|
|
3789
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title",
|
|
3790
|
-
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
|
|
3791
|
-
}), "sub-title": e.$t("subTitle", {
|
|
3792
|
-
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:or") : ""
|
|
3793
|
-
}), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3750
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3794
3751
|
}, Wt = [], Xt = /* @__PURE__ */ d(
|
|
3795
3752
|
Kt,
|
|
3796
3753
|
Yt,
|
|
3797
3754
|
Wt,
|
|
3798
3755
|
!1,
|
|
3799
3756
|
null,
|
|
3800
|
-
null,
|
|
3801
|
-
null,
|
|
3802
3757
|
null
|
|
3803
3758
|
);
|
|
3804
3759
|
const Qt = Xt.exports, Jt = {
|
|
@@ -3837,27 +3792,26 @@ var en = function() {
|
|
|
3837
3792
|
tn,
|
|
3838
3793
|
!1,
|
|
3839
3794
|
null,
|
|
3840
|
-
null,
|
|
3841
|
-
null,
|
|
3842
3795
|
null
|
|
3843
3796
|
);
|
|
3844
3797
|
const an = nn.exports, rn = {
|
|
3845
3798
|
i18nOptions: {
|
|
3846
|
-
namespaces: "
|
|
3799
|
+
namespaces: "winProfile",
|
|
3800
|
+
keyPrefix: "account.subscription.winProfile",
|
|
3847
3801
|
messages: {
|
|
3848
3802
|
sv: {
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3803
|
+
// TODO REMOVE ?
|
|
3804
|
+
title: "Designa din profil",
|
|
3805
|
+
subTitle: "Anpassa ditt utseende så att det matchar dig & ditt företag"
|
|
3852
3806
|
},
|
|
3853
3807
|
en: {
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3808
|
+
// TODO REMOVE ?
|
|
3809
|
+
title: "Design your profile",
|
|
3810
|
+
subTitle: "Adjust profile to match your branding"
|
|
3857
3811
|
}
|
|
3858
3812
|
}
|
|
3859
3813
|
},
|
|
3860
|
-
name: "
|
|
3814
|
+
name: "PremiumRestrictedWinProfile",
|
|
3861
3815
|
components: {
|
|
3862
3816
|
PremiumRestrictedBase: f
|
|
3863
3817
|
},
|
|
@@ -3870,31 +3824,35 @@ const an = nn.exports, rn = {
|
|
|
3870
3824
|
};
|
|
3871
3825
|
var sn = function() {
|
|
3872
3826
|
var e = this, t = e._self._c;
|
|
3873
|
-
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade
|
|
3874
|
-
}, on = [],
|
|
3827
|
+
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3828
|
+
}, on = [], cn = /* @__PURE__ */ d(
|
|
3875
3829
|
rn,
|
|
3876
3830
|
sn,
|
|
3877
3831
|
on,
|
|
3878
3832
|
!1,
|
|
3879
3833
|
null,
|
|
3880
|
-
null,
|
|
3881
|
-
null,
|
|
3882
3834
|
null
|
|
3883
3835
|
);
|
|
3884
|
-
const
|
|
3885
|
-
winProfile:
|
|
3886
|
-
templates:
|
|
3887
|
-
documents:
|
|
3888
|
-
personalMessage:
|
|
3836
|
+
const ln = cn.exports, I = {
|
|
3837
|
+
winProfile: ln,
|
|
3838
|
+
templates: Qt,
|
|
3839
|
+
documents: $t,
|
|
3840
|
+
personalMessage: Ht,
|
|
3889
3841
|
licenses: Lt,
|
|
3890
|
-
inviteCreators:
|
|
3891
|
-
stats:
|
|
3892
|
-
documentBlocks:
|
|
3893
|
-
bankIdAndSms:
|
|
3842
|
+
inviteCreators: yt,
|
|
3843
|
+
stats: Zt,
|
|
3844
|
+
documentBlocks: Pt,
|
|
3845
|
+
bankIdAndSms: mt,
|
|
3894
3846
|
useDocTemplate: an,
|
|
3895
|
-
saveDocTemplate:
|
|
3847
|
+
saveDocTemplate: Nt
|
|
3896
3848
|
}, un = {
|
|
3897
3849
|
name: "IsPremiumPreStep",
|
|
3850
|
+
inject: {
|
|
3851
|
+
onUpgradeRequired: {
|
|
3852
|
+
type: Function,
|
|
3853
|
+
default: null
|
|
3854
|
+
}
|
|
3855
|
+
},
|
|
3898
3856
|
props: {
|
|
3899
3857
|
feature: {
|
|
3900
3858
|
type: String,
|
|
@@ -3904,11 +3862,15 @@ const cn = ln.exports, I = {
|
|
|
3904
3862
|
},
|
|
3905
3863
|
computed: {
|
|
3906
3864
|
modalName() {
|
|
3907
|
-
return I[this.feature] ? I[this.feature] : (
|
|
3865
|
+
return I[this.feature] ? I[this.feature] : (de.error("Missing IsPremiumPreStep component name"), null);
|
|
3908
3866
|
}
|
|
3909
3867
|
},
|
|
3910
3868
|
methods: {
|
|
3911
3869
|
onClick({ callback: n = null } = {}) {
|
|
3870
|
+
if (typeof this.onUpgradeRequired == "function") {
|
|
3871
|
+
this.onUpgradeRequired(this.feature);
|
|
3872
|
+
return;
|
|
3873
|
+
}
|
|
3912
3874
|
this.$modal.show(
|
|
3913
3875
|
this.modalName,
|
|
3914
3876
|
{
|
|
@@ -3937,18 +3899,21 @@ var pn = /* @__PURE__ */ d(
|
|
|
3937
3899
|
mn,
|
|
3938
3900
|
!1,
|
|
3939
3901
|
null,
|
|
3940
|
-
null,
|
|
3941
|
-
null,
|
|
3942
3902
|
null
|
|
3943
3903
|
);
|
|
3944
|
-
const
|
|
3904
|
+
const gn = pn.exports, _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3905
|
+
__proto__: null,
|
|
3906
|
+
CalloutLegacy: G,
|
|
3907
|
+
Checkout: K,
|
|
3908
|
+
IsPremium: Y,
|
|
3909
|
+
IsPremiumPreStep: gn,
|
|
3910
|
+
stripeMixin: Z
|
|
3911
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3945
3912
|
export {
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
Le as b,
|
|
3951
|
-
G as c,
|
|
3913
|
+
Ce as C,
|
|
3914
|
+
gn as I,
|
|
3915
|
+
Y as a,
|
|
3916
|
+
_n as i,
|
|
3952
3917
|
x as r,
|
|
3953
|
-
|
|
3918
|
+
j as s
|
|
3954
3919
|
};
|