@cling-se/widget 0.9.16 → 0.9.18
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/dist/{AddClientCallout-1348821d.js → AddClientCallout-e8abe369.js} +5 -5
- package/dist/{AnswerModal-73bfc112.js → AnswerModal-09ffb221.js} +3 -3
- package/dist/{AttachmentItem-1b9e1170.js → AttachmentItem-110f93f7.js} +3 -3
- package/dist/{BaseDatePicker-1e3422da.js → BaseDatePicker-03ece6df.js} +1 -1
- package/dist/{BaseInput-70aa2f9d.js → BaseInput-295abce2.js} +1 -1
- package/dist/{BaseUpload-27cbe3b2.js → BaseUpload-7c1121f8.js} +2 -2
- package/dist/{BlockMedia-0f41fb43.js → BlockMedia-f95986a5.js} +1 -1
- package/dist/{CCallout-faf80dfb.js → CCallout-6ff50025.js} +2 -2
- package/dist/{CDropdownItem-13f6bf72.js → CDropdownItem-fa27c5e4.js} +1 -1
- package/dist/{CField-1aa7c4ab.js → CField-855c1d0a.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-879e8c05.js → CSlider.vue_vue_type_style_index_0_lang-5d538988.js} +1 -1
- package/dist/{ClientAutocomplete-94a42966.js → ClientAutocomplete-a569db77.js} +2 -2
- package/dist/{ClientModal-b3ec6c4e.js → ClientModal-708de29c.js} +10 -12
- package/dist/{ColorPicker-debcfab1.js → ColorPicker-eeac209c.js} +1 -1
- package/dist/{CompanyModal-8cf32258.js → CompanyModal-b59c2a9d.js} +3 -3
- package/dist/{ContentWrapper-c0a17123.js → ContentWrapper-b3353d9f.js} +26 -26
- package/dist/{CoverBlockSettings-0b289e31.js → CoverBlockSettings-55e7a45b.js} +8 -8
- package/dist/{DocAnswer-91248c64.js → DocAnswer-3292579d.js} +4 -4
- package/dist/{DocForm-91ae8830.js → DocForm-d39f62d7.js} +581 -508
- package/dist/{DocFormSend-0288bd11.js → DocFormSend-a9d52a13.js} +23 -22
- package/dist/{DocLinks-0b74ba52.js → DocLinks-dcc93a82.js} +2 -2
- package/dist/{DocModalBase-04a8975b.js → DocModalBase-16e3129d.js} +1 -1
- package/dist/{DocPrint-f4f49825.js → DocPrint-6efe5f7e.js} +1 -1
- package/dist/{DocReceipt-7f49dbc7.js → DocReceipt-fe1bb7da.js} +1 -1
- package/dist/{DocSendReminder-3059f0b3.js → DocSendReminder-f25c765c.js} +1 -1
- package/dist/{DocTextEditor-570f3d62.js → DocTextEditor-0a93ad72.js} +14 -14
- package/dist/{DocTimeline-fe15c761.js → DocTimeline-19a2d78f.js} +1 -1
- package/dist/{DocumentClient-685c2a72.js → DocumentClient-66a913b6.js} +7 -7
- package/dist/{DocumentLayout-1222a5f8.js → DocumentLayout-759a064d.js} +3 -3
- package/dist/{DocumentLogotype-b12feaae.js → DocumentLogotype-a393c0be.js} +3 -3
- package/dist/{EmbedInput-a1b00bd5.js → EmbedInput-1f9511d4.js} +2 -2
- package/dist/{EmbedSettings-33a765a6.js → EmbedSettings-dab21536.js} +3 -3
- package/dist/{ErrorCallout-d7d78926.js → ErrorCallout-78e56929.js} +1 -1
- package/dist/{FilePreviewModal-877e5aaa.js → FilePreviewModal-ad52ec07.js} +5 -5
- package/dist/{HeaderSettings-1b8d8783.js → HeaderSettings-52bf0abe.js} +16 -16
- package/dist/{ImageSelectModal-7e612643.js → ImageSelectModal-710b1c98.js} +9 -9
- package/dist/{ImageUploadWrapper-2e6b3682.js → ImageUploadWrapper-e4ec2d95.js} +2 -2
- package/dist/Index-0a824c85.js +72 -0
- package/dist/{Index-3e7e4c33.js → Index-0db8754f.js} +2 -2
- package/dist/{Index-abb05d61.js → Index-33447fc6.js} +6 -6
- package/dist/{Index-9d7a87a2.js → Index-352c9021.js} +2 -2
- package/dist/{Index-83603328.js → Index-36e4bf8c.js} +4 -4
- package/dist/{Index-e87eac2e.js → Index-3fe3326a.js} +2 -2
- package/dist/{Index-05492736.js → Index-4353a97c.js} +4 -4
- package/dist/{Index-2e71665d.js → Index-59830840.js} +4 -4
- package/dist/{Index-ab7ee5cf.js → Index-5b64fb7a.js} +4 -4
- package/dist/{Index-479a4f5c.js → Index-6051d460.js} +3 -3
- package/dist/{Index-96cc92d3.js → Index-62c81443.js} +14 -14
- package/dist/{Index-92444604.js → Index-688ba377.js} +4 -4
- package/dist/{Index-c4c942a3.js → Index-7d913167.js} +2 -2
- package/dist/{Index-5003d8a4.js → Index-8225fee4.js} +2 -2
- package/dist/{Index-11d14c4d.js → Index-8da208ee.js} +13 -13
- package/dist/{Index-f0ea6d6a.js → Index-90e16f49.js} +24 -30
- package/dist/{Index-edb47e7d.js → Index-912c9b2b.js} +4 -4
- package/dist/Index-aba31a5e.js +59 -0
- package/dist/{Index-ca877625.js → Index-ac1e43f2.js} +19 -22
- package/dist/{Index-83cd3513.js → Index-ce61e3e6.js} +10 -10
- package/dist/{Index-f450c453.js → Index-d10a939c.js} +9 -9
- package/dist/{Index-674572ab.js → Index-d20dca56.js} +4 -4
- package/dist/{Index-bff6cda5.js → Index-d34e5825.js} +1 -1
- package/dist/{Index-4559e60b.js → Index-d86c5a75.js} +5 -5
- package/dist/{Index-bf2851ea.js → Index-d8a20b59.js} +2 -2
- package/dist/{Index-dff23f41.js → Index-d98ab083.js} +4 -4
- package/dist/{Index-2f94216d.js → Index-e20ec508.js} +8 -8
- package/dist/{Index-cdd643d6.js → Index-e59b8d01.js} +30 -36
- package/dist/{Index-0d051f12.js → Index-e9a8bb89.js} +35 -26
- package/dist/{Index-e7a49ef5.js → Index-ee78a0d7.js} +4 -4
- package/dist/{Index-887a4e3b.js → Index-f5c9987e.js} +3 -3
- package/dist/{Index-d62e8abf.js → Index-f90de221.js} +2 -2
- package/dist/{Index-52da7dd1.js → Index-fa4453cc.js} +6 -6
- package/dist/{Index-3bfb3895.js → Index-fbdf1476.js} +1 -1
- package/dist/{InputToggleRow-ff428de1.js → InputToggleRow-e4c9fb71.js} +1 -1
- package/dist/{IsPremiumPreStep-4bc3a874.js → IsPremiumPreStep-e4caf2dd.js} +394 -260
- package/dist/{ManualPopover-fdad805a.js → ManualPopover-d8269334.js} +1 -1
- package/dist/{MediaWrapper-10405a28.js → MediaWrapper-5b99c2b9.js} +3 -3
- package/dist/{NotBindingText-eab4529c.js → NotBindingText-27150bf7.js} +2 -2
- package/dist/{PackageGroup-50b4428c.js → PackageGroup-f6bbaea1.js} +12 -12
- package/dist/{PdfTerms-81256394.js → PdfTerms-1b34c28a.js} +5 -5
- package/dist/{PdfViewer-10150d1b.js → PdfViewer-fe405d8f.js} +3 -3
- package/dist/{PlainHtml-57b8ec60.js → PlainHtml-07b4461c.js} +1 -1
- package/dist/PriceHeader-693a6414.js +339 -0
- package/dist/{SearchApi-c81405a8.js → SearchApi-9d26dde8.js} +2 -2
- package/dist/{Setup-438b2554.js → Setup-ba2a9928.js} +1 -1
- package/dist/{TermsSettings-0ad9987a.js → TermsSettings-9aa52469.js} +6 -6
- package/dist/{ThemeColorRow-178c3b34.js → ThemeColorRow-ef3ec593.js} +3 -3
- package/dist/{ToggleBinding-63c41c8f.js → ToggleBinding-ac3268f8.js} +3 -3
- package/dist/{UploadModal-859233e4.js → UploadModal-e8ef00fb.js} +3 -3
- package/dist/{VideoPlayerInput-73ac34db.js → VideoPlayerInput-9feb576c.js} +3 -3
- package/dist/{VideoPlayerSettings-c60fb8dc.js → VideoPlayerSettings-2450b21c.js} +4 -4
- package/dist/{VideoSelectModal-5358f138.js → VideoSelectModal-f282ba52.js} +8 -8
- package/dist/{answerDocumentMixin-69b88088.js → answerDocumentMixin-59e29633.js} +3 -3
- package/dist/{cssMode-59194949.js → cssMode-691cb247.js} +7 -7
- package/dist/{dom-d4731032.js → dom-962579a6.js} +7 -6
- package/dist/focusDrawerMixin-91e8cb6b.js +22 -0
- package/dist/{formComponentsInstall-12195b8b.js → formComponentsInstall-a371e037.js} +12 -12
- package/dist/formDrawerState-db84952d.js +20 -0
- package/dist/{formValidationMixin-e54b71c9.js → formValidationMixin-699c04c8.js} +2 -2
- package/dist/{freemarker2-3008b375.js → freemarker2-369c7be7.js} +7 -7
- package/dist/{handlebars-fa9ab08d.js → handlebars-e69d309d.js} +7 -7
- package/dist/{html-d5653fb5.js → html-b90b7472.js} +7 -7
- package/dist/{htmlMode-788d6ef2.js → htmlMode-852798f7.js} +7 -7
- package/dist/{image-4270bed4.js → image-45637029.js} +1 -1
- package/dist/index-03d51584.js +15 -0
- package/dist/{index-bed8fb27.js → index-0f4dd31a.js} +1 -1
- package/dist/{index-cd29b3be.js → index-60e5432a.js} +9 -9
- package/dist/{index-c48b4b2a.js → index-68aa0619.js} +2 -2
- package/dist/{index-79df8dcf.js → index-e42d306b.js} +5 -5
- package/dist/{index-df5fd2b2.js → index-ef653c95.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +453 -453
- package/dist/{javascript-553c3953.js → javascript-d936cb19.js} +8 -8
- package/dist/{jsonMode-c7ab0d1f.js → jsonMode-082e4bd3.js} +7 -7
- package/dist/{liquid-9e71ef49.js → liquid-461e97b3.js} +7 -7
- package/dist/{main-9e6f1eed.js → main-870410b4.js} +7142 -7097
- package/dist/{mapFormMixin-afafb1fa.js → mapFormMixin-3e8412ac.js} +1 -1
- package/dist/{publicSenderState-994a5c48.js → publicSenderState-973b902b.js} +1 -1
- package/dist/{python-c3ceee79.js → python-516db33c.js} +7 -7
- package/dist/{razor-5c5d60a9.js → razor-7e80bafe.js} +7 -7
- package/dist/{simplebar.min-2c8e9500.js → simplebar.min-db10f993.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-35be25a1.js → template-a0e45f2c.js} +1 -1
- package/dist/{throttle-0e8ac006.js → throttle-9dc46674.js} +2 -2
- package/dist/{tinycolor-e0dc7ddf.js → tinycolor-17c54210.js} +1 -1
- package/dist/{tippy.esm-112598e3.js → tippy.esm-e1516e3d.js} +5 -5
- package/dist/{tsMode-26e458da.js → tsMode-dc7b755a.js} +7 -7
- package/dist/{typescript-152aeb18.js → typescript-18787046.js} +7 -7
- package/dist/{utils-3acdacf6.js → utils-bc6b4fb5.js} +1 -1
- package/dist/{vuedraggable.umd-9543559a.js → vuedraggable.umd-b951d1bb.js} +1 -1
- package/dist/{xml-9806bd44.js → xml-c6d75bf4.js} +7 -7
- package/package.json +2 -3
- package/dist/Index-6f9f3222.js +0 -69
- package/dist/Index-f2fde02f.js +0 -76
- package/dist/PriceHeader-70427a56.js +0 -338
- package/dist/focusDrawerMixin-188ef585.js +0 -68
- package/dist/index-0265dfbd.js +0 -14
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { c as h, a4 as L, au as
|
|
2
|
-
import { m as v, a as
|
|
1
|
+
import { c as h, a4 as L, au as B, b as C, av as M, aw as Z, ax as K, ay as Y, az as W, V as H, aA as X, aB as Q, n as d, s as P, D as J, ae as y, aC as ee, g as m, aD as _, aE as te, aF as ne, aG as ae, aH as F, p as re, h as D, I as E, aI as U, H as ie, aJ as se, ak as oe } from "./main-870410b4.js";
|
|
2
|
+
import { m as v, a as $, b as le } from "./vuex.esm-4a0fff7c.js";
|
|
3
3
|
import { a as u } from "./anime.es-e284c852.js";
|
|
4
|
-
import { g as
|
|
5
|
-
import "./index-
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import { g as k } from "./image-45637029.js";
|
|
5
|
+
import "./index-ef653c95.js";
|
|
6
|
+
import { g as ce } from "./dom-962579a6.js";
|
|
7
|
+
import { v as b } from "./index-805c56e4.js";
|
|
8
|
+
const x = {
|
|
8
9
|
AD: {
|
|
9
10
|
name: "Andorra",
|
|
10
11
|
callingCode: "+376",
|
|
@@ -1250,27 +1251,27 @@ const k = {
|
|
|
1250
1251
|
callingCode: "+263",
|
|
1251
1252
|
currency: "USD"
|
|
1252
1253
|
}
|
|
1253
|
-
},
|
|
1254
|
+
}, ue = (n) => {
|
|
1254
1255
|
if (document.getElementById("stripe-js"))
|
|
1255
1256
|
return n();
|
|
1256
1257
|
const e = "js.stripe.com/v3/", t = document.createElement("script"), a = document.getElementsByTagName("script")[0];
|
|
1257
1258
|
return t.src = `https://${e}`, t.id = "stripe-js", n && t.addEventListener("load", (r) => n(null, r), !1), a.parentNode.insertBefore(t, a), !0;
|
|
1258
|
-
},
|
|
1259
|
+
}, de = () => ue(() => {
|
|
1259
1260
|
window.$stripe = Stripe(h.stripe.publishableKey, { locale: L.lang || "en" });
|
|
1260
1261
|
});
|
|
1261
|
-
|
|
1262
|
-
const
|
|
1262
|
+
de();
|
|
1263
|
+
const me = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), pe = "stripe", {
|
|
1263
1264
|
LOAD_PRICES: A,
|
|
1264
|
-
RESET_STRIPE_FORM:
|
|
1265
|
-
SET_STRIPE_FORM_VALUE:
|
|
1265
|
+
RESET_STRIPE_FORM: ge,
|
|
1266
|
+
SET_STRIPE_FORM_VALUE: he,
|
|
1266
1267
|
SET_FORM_PROMOTION: V,
|
|
1267
|
-
SUBMIT_PROMOTION_CODE:
|
|
1268
|
+
SUBMIT_PROMOTION_CODE: fe,
|
|
1268
1269
|
SUBMIT_PAYMENT_METHOD: O,
|
|
1269
|
-
SUBMIT_FORM_PLAN:
|
|
1270
|
-
REMOVE_SUBSCRIPTION_ITEM:
|
|
1270
|
+
SUBMIT_FORM_PLAN: ye,
|
|
1271
|
+
REMOVE_SUBSCRIPTION_ITEM: Ce,
|
|
1271
1272
|
CONFIRM_PAYMENT: N,
|
|
1272
|
-
SUBMIT_FORM_PAYMENT:
|
|
1273
|
-
SUBMIT_FORM_PRODUCTS:
|
|
1273
|
+
SUBMIT_FORM_PAYMENT: w,
|
|
1274
|
+
SUBMIT_FORM_PRODUCTS: ve
|
|
1274
1275
|
} = Q, z = {
|
|
1275
1276
|
// The term "plan" refers to a _price_ connected to a _product_ with metadata.accountType
|
|
1276
1277
|
plan: { accountType: "pro", interval: "month", quantity: 1 },
|
|
@@ -1297,7 +1298,7 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1297
1298
|
base: { month: null, year: null },
|
|
1298
1299
|
pro: { month: null, year: null }
|
|
1299
1300
|
},
|
|
1300
|
-
form:
|
|
1301
|
+
form: B(z)
|
|
1301
1302
|
},
|
|
1302
1303
|
getters: {
|
|
1303
1304
|
isPosting: ({ isPosting: n }) => n,
|
|
@@ -1357,6 +1358,8 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1357
1358
|
const { accountType: t, interval: a, quantity: r } = n.form.plan;
|
|
1358
1359
|
if (!t || !a)
|
|
1359
1360
|
return null;
|
|
1361
|
+
if (t === "free")
|
|
1362
|
+
return { accountType: t, interval: a, quantity: r };
|
|
1360
1363
|
const i = e.getPrice(t, a);
|
|
1361
1364
|
return {
|
|
1362
1365
|
quantity: r,
|
|
@@ -1451,21 +1454,21 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1451
1454
|
async [A]({ commit: n }) {
|
|
1452
1455
|
try {
|
|
1453
1456
|
n("setFetching", !0);
|
|
1454
|
-
const { data: e } = await
|
|
1457
|
+
const { data: e } = await M.getPrices();
|
|
1455
1458
|
n("setPrices", { data: e }), n("setActivePriceMap");
|
|
1456
1459
|
} catch (e) {
|
|
1457
1460
|
this.handleError(e, {
|
|
1458
|
-
action: `${
|
|
1461
|
+
action: `${pe}/${A}`,
|
|
1459
1462
|
actionPayload: null
|
|
1460
1463
|
});
|
|
1461
1464
|
} finally {
|
|
1462
1465
|
n("setFetching", !1);
|
|
1463
1466
|
}
|
|
1464
1467
|
},
|
|
1465
|
-
async [
|
|
1466
|
-
n("setForm",
|
|
1468
|
+
async [ge]({ commit: n }) {
|
|
1469
|
+
n("setForm", B(z));
|
|
1467
1470
|
},
|
|
1468
|
-
async [
|
|
1471
|
+
async [he]({ commit: n }, { key: e, value: t }) {
|
|
1469
1472
|
n("setFormValue", { key: e, value: t });
|
|
1470
1473
|
},
|
|
1471
1474
|
[V]({ commit: n, getters: e }, { promotionDetails: t, code: a = null } = {}) {
|
|
@@ -1474,12 +1477,12 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1474
1477
|
const { appliesToStripeProductIds: r } = t, { stripeProductId: i } = e.formPlan || {};
|
|
1475
1478
|
return Array.isArray(r) && !r.includes(i) ? !1 : (n("setFormValue", { key: "promotion", value: { ...t, code: a } }), !0);
|
|
1476
1479
|
},
|
|
1477
|
-
async [
|
|
1480
|
+
async [fe]({ commit: n, getters: e, dispatch: t }, a) {
|
|
1478
1481
|
try {
|
|
1479
1482
|
if (e.isPosting || !a)
|
|
1480
1483
|
return !1;
|
|
1481
1484
|
n("setPosting", !0);
|
|
1482
|
-
const { data: r } = await
|
|
1485
|
+
const { data: r } = await Z(a);
|
|
1483
1486
|
return t(V, { promotionDetails: r, code: a });
|
|
1484
1487
|
} catch {
|
|
1485
1488
|
return !1;
|
|
@@ -1515,25 +1518,25 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1515
1518
|
* @param {Boolean} obj.removeUnusedItems Optional if items not specified should be removed, defaults true
|
|
1516
1519
|
* @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
|
|
1517
1520
|
*/
|
|
1518
|
-
async [
|
|
1521
|
+
async [w]({ commit: n, getters: e, dispatch: t }, { form: a, stripe: { cardElement: r } = {}, removeUnusedItems: i = !0 } = {}) {
|
|
1519
1522
|
try {
|
|
1520
1523
|
n("setPosting", !0), n("setFormValue", { key: "error", value: null });
|
|
1521
1524
|
const { items: s } = a, { formCustomer: l, formPromotion: o, customer: c, formDealSource: p } = e;
|
|
1522
1525
|
let g;
|
|
1523
1526
|
r && (g = await t(O, { cardElement: r }));
|
|
1524
|
-
const
|
|
1525
|
-
g && (
|
|
1526
|
-
const { data: j = {} } = await
|
|
1527
|
-
return
|
|
1527
|
+
const S = { ...l, items: s };
|
|
1528
|
+
g && (S.paymentMethod = g), o && o.code && (S.promotionCode = o.code), p && (S.dealSource = p);
|
|
1529
|
+
const { data: j = {} } = await M.product(S, { removeUnusedItems: i }), { clientSecrets: T } = j, R = g && g.id ? g.id : c && c.paymentMethodId;
|
|
1530
|
+
return T && T.length && R ? await t(N, { clientSecrets: T, paymentMethodId: R }) : !0;
|
|
1528
1531
|
} catch (s) {
|
|
1529
1532
|
this.handleError(s);
|
|
1530
|
-
const l = (s.errorCode ?
|
|
1533
|
+
const l = (s.errorCode ? me(s.errorCode) : "") || s.message;
|
|
1531
1534
|
return n("setFormValue", { key: "error", value: l || "Submit Form Payment Error" }), !1;
|
|
1532
1535
|
} finally {
|
|
1533
1536
|
n("setPosting", !1);
|
|
1534
1537
|
}
|
|
1535
1538
|
},
|
|
1536
|
-
async [
|
|
1539
|
+
async [ye]({ commit: n, dispatch: e, getters: t }, { cardElement: a } = {}) {
|
|
1537
1540
|
try {
|
|
1538
1541
|
const { formPlan: r, formProducts: i, products: s, subscriptionItems: l } = t;
|
|
1539
1542
|
if (!r)
|
|
@@ -1543,15 +1546,15 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1543
1546
|
stripePriceStripeId: r.stripeId,
|
|
1544
1547
|
stripeProductStripeId: r.stripeProductId,
|
|
1545
1548
|
quantity: r.quantity
|
|
1546
|
-
}), o.push(...i), await e(
|
|
1549
|
+
}), o.push(...i), await e(w, { form: { items: o }, stripe: { cardElement: a } });
|
|
1547
1550
|
} catch (r) {
|
|
1548
1551
|
return this.handleError(r), n("setFormValue", { key: "error", value: r.message || "Submit Plan Error" }), !1;
|
|
1549
1552
|
}
|
|
1550
1553
|
},
|
|
1551
|
-
async [
|
|
1554
|
+
async [ve]({ commit: n, dispatch: e, getters: t }, { cardElement: a, removeUnusedItems: r = !0 } = {}) {
|
|
1552
1555
|
try {
|
|
1553
1556
|
const { formProducts: i } = t, s = [...i];
|
|
1554
|
-
return s.length ? await e(
|
|
1557
|
+
return s.length ? await e(w, { form: { items: s }, stripe: { cardElement: a }, removeUnusedItems: r }) : !1;
|
|
1555
1558
|
} catch (i) {
|
|
1556
1559
|
return this.handleError(i), n("setFormValue", { key: "error", value: i.message || "Submit Products Error" }), !1;
|
|
1557
1560
|
}
|
|
@@ -1577,7 +1580,7 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1577
1580
|
return await e.reduce(async (i, s) => {
|
|
1578
1581
|
await i;
|
|
1579
1582
|
const { paymentIntent: l, error: o } = await a.confirmCardPayment(s, { payment_method: t });
|
|
1580
|
-
return o ? (o.message && n("setFormValue", { key: "error", value: o.message }), await
|
|
1583
|
+
return o ? (o.message && n("setFormValue", { key: "error", value: o.message }), await M.cancelAll({ immediately: !0, status: "incomplete" }), !1) : l && l.status === "succeeded";
|
|
1581
1584
|
}, Promise.resolve());
|
|
1582
1585
|
} catch (r) {
|
|
1583
1586
|
return this.handleError(r), !1;
|
|
@@ -1591,14 +1594,14 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1591
1594
|
* @param {String} obj.stripePriceStripeId priceId to remove
|
|
1592
1595
|
* @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
|
|
1593
1596
|
*/
|
|
1594
|
-
async [
|
|
1597
|
+
async [Ce]({ commit: n, dispatch: e, getters: t }, { stripePriceStripeId: a }) {
|
|
1595
1598
|
try {
|
|
1596
1599
|
if (!a)
|
|
1597
1600
|
throw new Error("Missing parameter stripePriceStripeId");
|
|
1598
1601
|
n("setPosting", !0);
|
|
1599
1602
|
const { subscriptionItems: r } = t;
|
|
1600
1603
|
let i = [...r];
|
|
1601
|
-
return i = i.filter((s) => s.stripePriceStripeId !== a), await e(
|
|
1604
|
+
return i = i.filter((s) => s.stripePriceStripeId !== a), await e(w, { form: { items: i } });
|
|
1602
1605
|
} catch (r) {
|
|
1603
1606
|
return this.handleError(r), !1;
|
|
1604
1607
|
} finally {
|
|
@@ -1620,8 +1623,8 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1620
1623
|
setPrices: (n, { data: e = [] }) => {
|
|
1621
1624
|
if (typeof e != "object")
|
|
1622
1625
|
throw Error("Data must be a priceItem or array of priceItems!");
|
|
1623
|
-
const t = Array.isArray(e) ? e : [e], { ids: a, values: r } =
|
|
1624
|
-
|
|
1626
|
+
const t = Array.isArray(e) ? e : [e], { ids: a, values: r } = K(t, { keyId: "stripeId" });
|
|
1627
|
+
Y(n.prices, r), n.priceIds = W([...a, ...n.priceIds]);
|
|
1625
1628
|
},
|
|
1626
1629
|
setActivePriceMap: ({ prices: n, activePriceMap: e }) => Object.keys(n).forEach((t) => {
|
|
1627
1630
|
const a = n[t], r = C(a, "StripeProduct.metadata.accountType");
|
|
@@ -1629,15 +1632,15 @@ const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
|
1629
1632
|
}),
|
|
1630
1633
|
// --- Form ---
|
|
1631
1634
|
setForm: (n, e) => {
|
|
1632
|
-
|
|
1635
|
+
H.set(n, "form", e);
|
|
1633
1636
|
},
|
|
1634
1637
|
setFormValue: (n, { key: e, value: t }) => {
|
|
1635
|
-
const { root: a, prop: r } =
|
|
1636
|
-
|
|
1638
|
+
const { root: a, prop: r } = X(n, `form.${e}`);
|
|
1639
|
+
H.set(a, r, t);
|
|
1637
1640
|
}
|
|
1638
1641
|
}
|
|
1639
1642
|
};
|
|
1640
|
-
const
|
|
1643
|
+
const _e = {
|
|
1641
1644
|
props: {
|
|
1642
1645
|
colors: {
|
|
1643
1646
|
type: Array,
|
|
@@ -1745,24 +1748,24 @@ const Ce = {
|
|
|
1745
1748
|
}
|
|
1746
1749
|
}
|
|
1747
1750
|
};
|
|
1748
|
-
var
|
|
1751
|
+
var be = function() {
|
|
1749
1752
|
var e = this;
|
|
1750
1753
|
return e._self._c, e._m(0);
|
|
1751
|
-
},
|
|
1754
|
+
}, Pe = [function() {
|
|
1752
1755
|
var n = this, e = n._self._c;
|
|
1753
1756
|
return e("div", [e("canvas", { attrs: { id: "fireworks" } })]);
|
|
1754
|
-
}],
|
|
1755
|
-
|
|
1756
|
-
ve,
|
|
1757
|
+
}], Se = /* @__PURE__ */ d(
|
|
1758
|
+
_e,
|
|
1757
1759
|
be,
|
|
1760
|
+
Pe,
|
|
1758
1761
|
!1,
|
|
1759
1762
|
null,
|
|
1760
1763
|
"1254a889",
|
|
1761
1764
|
null,
|
|
1762
1765
|
null
|
|
1763
1766
|
);
|
|
1764
|
-
const
|
|
1765
|
-
const
|
|
1767
|
+
const ke = Se.exports;
|
|
1768
|
+
const xe = {
|
|
1766
1769
|
name: "PremiumStripeSelect",
|
|
1767
1770
|
i18nOptions: {
|
|
1768
1771
|
namespaces: "PremiumStripeSelect",
|
|
@@ -1804,7 +1807,7 @@ const Se = {
|
|
|
1804
1807
|
}),
|
|
1805
1808
|
currentAccountType() {
|
|
1806
1809
|
var n;
|
|
1807
|
-
return (n = this.currentPlan) == null ? void 0 : n.accountType;
|
|
1810
|
+
return ((n = this.currentPlan) == null ? void 0 : n.accountType) || "free";
|
|
1808
1811
|
},
|
|
1809
1812
|
currentInterval() {
|
|
1810
1813
|
var n;
|
|
@@ -1829,15 +1832,17 @@ const Se = {
|
|
|
1829
1832
|
},
|
|
1830
1833
|
methods: {
|
|
1831
1834
|
getPriceFormatted(n) {
|
|
1835
|
+
if (n.accountType === "free")
|
|
1836
|
+
return "";
|
|
1832
1837
|
const { amount: e, currency: t } = this.getPrice(n.accountType, this.interval) || {};
|
|
1833
1838
|
if (typeof e > "u" || typeof t > "u")
|
|
1834
1839
|
return "";
|
|
1835
1840
|
const a = e / (this.interval === "month" ? 1 : 12);
|
|
1836
|
-
return `${
|
|
1841
|
+
return `${P(a, { currency: t })}/${this.$t("_common:month")}`;
|
|
1837
1842
|
}
|
|
1838
1843
|
}
|
|
1839
1844
|
};
|
|
1840
|
-
var
|
|
1845
|
+
var we = function() {
|
|
1841
1846
|
var e = this, t = e._self._c;
|
|
1842
1847
|
return t("div", { staticClass: "flex flex-col items-center w-full animating", staticStyle: { "padding-top": "30px" } }, [t("div", { staticClass: "flex flex-col items-center w-full text-center anim-block", 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([
|
|
1843
1848
|
"month",
|
|
@@ -1853,24 +1858,24 @@ var ke = function() {
|
|
|
1853
1858
|
selected: e.plan === a.accountType
|
|
1854
1859
|
}, on: { click: function(i) {
|
|
1855
1860
|
return e.$emit("update:plan", a.accountType);
|
|
1856
|
-
} } }, [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: "absolute right-0 top-0 rounded-tr-lg text-gray-400 [.selected_&]:text-primary-500", 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" ? 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) {
|
|
1861
|
+
} } }, [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: "absolute right-0 top-0 rounded-tr-lg text-gray-400 [.selected_&]:text-primary-500", 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) {
|
|
1857
1862
|
return t("li", { key: i }, [t("span", { domProps: { textContent: e._s(i) } })]);
|
|
1858
1863
|
}), 0)]);
|
|
1859
|
-
}), 0), t("CButton", { staticClass: "anim-block sticky-btn", attrs: { disabled: e.currentAccountType === e.plan && e.currentInterval === e.interval, type: "secondary", "icon-right": "arrow-right" }, on: { click: function(a) {
|
|
1864
|
+
}), 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) {
|
|
1860
1865
|
return e.$emit("next");
|
|
1861
1866
|
} } }, [e._v(e._s(e.$t("continueButton")))])], 1);
|
|
1862
|
-
},
|
|
1863
|
-
Se,
|
|
1864
|
-
ke,
|
|
1867
|
+
}, $e = [], Te = /* @__PURE__ */ d(
|
|
1865
1868
|
xe,
|
|
1869
|
+
we,
|
|
1870
|
+
$e,
|
|
1866
1871
|
!1,
|
|
1867
1872
|
null,
|
|
1868
|
-
"
|
|
1873
|
+
"61cc7791",
|
|
1869
1874
|
null,
|
|
1870
1875
|
null
|
|
1871
1876
|
);
|
|
1872
|
-
const
|
|
1873
|
-
const
|
|
1877
|
+
const Me = Te.exports;
|
|
1878
|
+
const Ee = {
|
|
1874
1879
|
props: {
|
|
1875
1880
|
defaultOpen: {
|
|
1876
1881
|
type: Boolean,
|
|
@@ -1933,22 +1938,22 @@ const Te = {
|
|
|
1933
1938
|
}
|
|
1934
1939
|
}
|
|
1935
1940
|
};
|
|
1936
|
-
var
|
|
1941
|
+
var Ie = function() {
|
|
1937
1942
|
var e = this, t = e._self._c;
|
|
1938
1943
|
return t("div", [t("div", { on: { click: function(a) {
|
|
1939
1944
|
e.expanded = !e.expanded;
|
|
1940
1945
|
} } }, [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);
|
|
1941
|
-
},
|
|
1942
|
-
Te,
|
|
1943
|
-
Me,
|
|
1946
|
+
}, Le = [], De = /* @__PURE__ */ d(
|
|
1944
1947
|
Ee,
|
|
1948
|
+
Ie,
|
|
1949
|
+
Le,
|
|
1945
1950
|
!1,
|
|
1946
1951
|
null,
|
|
1947
1952
|
null,
|
|
1948
1953
|
null,
|
|
1949
1954
|
null
|
|
1950
1955
|
);
|
|
1951
|
-
const
|
|
1956
|
+
const Re = De.exports, Be = {
|
|
1952
1957
|
amex: {
|
|
1953
1958
|
name: "American Express",
|
|
1954
1959
|
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>'
|
|
@@ -1988,11 +1993,7 @@ const Le = Ie.exports, Re = {
|
|
|
1988
1993
|
logo: i
|
|
1989
1994
|
};
|
|
1990
1995
|
}
|
|
1991
|
-
}
|
|
1992
|
-
function Z(n) {
|
|
1993
|
-
return n == null ? null : n.scrollHeight > n.clientHeight ? n : Z(n.parentNode);
|
|
1994
|
-
}
|
|
1995
|
-
const He = {
|
|
1996
|
+
}, He = {
|
|
1996
1997
|
data() {
|
|
1997
1998
|
return {
|
|
1998
1999
|
stripeCardElementId: null,
|
|
@@ -2014,7 +2015,7 @@ const He = {
|
|
|
2014
2015
|
this.elements = this.stripe.elements(), this.stripeCardElementId && this.configureStripeCard(this.stripeCardElementId);
|
|
2015
2016
|
});
|
|
2016
2017
|
},
|
|
2017
|
-
|
|
2018
|
+
destroyed() {
|
|
2018
2019
|
this.unmountCardInput();
|
|
2019
2020
|
},
|
|
2020
2021
|
methods: {
|
|
@@ -2073,7 +2074,10 @@ const He = {
|
|
|
2073
2074
|
e.style.position = "absolute", e.style.top = `${a}px`, e.style.left = `${t}px`;
|
|
2074
2075
|
},
|
|
2075
2076
|
copyInputStyle(n) {
|
|
2076
|
-
|
|
2077
|
+
var i;
|
|
2078
|
+
const e = n.cloneNode(!0);
|
|
2079
|
+
e.style.boxSizing = "border-box", e.style.fontSize = (i = window.getComputedStyle(n)) == null ? void 0 : i.fontSize;
|
|
2080
|
+
const t = ce(n), a = () => {
|
|
2077
2081
|
this.repositionStripeEl({ original: n, clone: e });
|
|
2078
2082
|
};
|
|
2079
2083
|
t.addEventListener("scroll", a, {
|
|
@@ -2086,11 +2090,11 @@ const He = {
|
|
|
2086
2090
|
const r = Number(
|
|
2087
2091
|
window.getComputedStyle(n).getPropertyValue("--app-z-index")
|
|
2088
2092
|
);
|
|
2089
|
-
e.style.zIndex = r +
|
|
2093
|
+
e.style.zIndex = r + 1e4, document.body.appendChild(e);
|
|
2090
2094
|
}
|
|
2091
2095
|
}
|
|
2092
2096
|
};
|
|
2093
|
-
const
|
|
2097
|
+
const Fe = {
|
|
2094
2098
|
i18nOptions: {
|
|
2095
2099
|
namespaces: "PremiumStripeForm",
|
|
2096
2100
|
messages: {
|
|
@@ -2181,6 +2185,9 @@ const De = {
|
|
|
2181
2185
|
apiDocument: "API-documents",
|
|
2182
2186
|
quotaIncluded: "Each month includes a quota of {{count}} per license.",
|
|
2183
2187
|
quotaExtra: "The cost for each additional one above your quota is {{cost}}."
|
|
2188
|
+
},
|
|
2189
|
+
consent: {
|
|
2190
|
+
label: "I accept {{brand,capitalize}}'s"
|
|
2184
2191
|
}
|
|
2185
2192
|
},
|
|
2186
2193
|
sv: {
|
|
@@ -2270,13 +2277,17 @@ const De = {
|
|
|
2270
2277
|
apiDocument: "API-dokument",
|
|
2271
2278
|
quotaIncluded: "Varje månad inkluderar en kvot om {{ count }} st per licens.",
|
|
2272
2279
|
quotaExtra: "Överskrider du din kvot så tillkommer en styckkostnad om {{ cost }}."
|
|
2280
|
+
},
|
|
2281
|
+
consent: {
|
|
2282
|
+
label: "Jag godkänner {{brand,capitalize}}s"
|
|
2273
2283
|
}
|
|
2274
2284
|
}
|
|
2275
2285
|
}
|
|
2276
2286
|
},
|
|
2277
2287
|
name: "PremiumStripeForm",
|
|
2278
2288
|
components: {
|
|
2279
|
-
CAccordion:
|
|
2289
|
+
CAccordion: Re,
|
|
2290
|
+
CCheckbox: J
|
|
2280
2291
|
},
|
|
2281
2292
|
mixins: [He],
|
|
2282
2293
|
props: {
|
|
@@ -2287,32 +2298,49 @@ const De = {
|
|
|
2287
2298
|
uiPlan: {
|
|
2288
2299
|
type: Object,
|
|
2289
2300
|
required: !0
|
|
2301
|
+
},
|
|
2302
|
+
disableQuantity: {
|
|
2303
|
+
type: Boolean,
|
|
2304
|
+
default: !1
|
|
2305
|
+
},
|
|
2306
|
+
hideExtraInfo: {
|
|
2307
|
+
type: Boolean,
|
|
2308
|
+
default: !1
|
|
2309
|
+
},
|
|
2310
|
+
collectConsent: {
|
|
2311
|
+
type: Boolean,
|
|
2312
|
+
default: !1
|
|
2290
2313
|
}
|
|
2291
2314
|
},
|
|
2292
2315
|
data() {
|
|
2293
2316
|
return {
|
|
2294
|
-
regions:
|
|
2295
|
-
cardBrands:
|
|
2317
|
+
regions: x,
|
|
2318
|
+
cardBrands: Be,
|
|
2296
2319
|
stripeCardElementId: "#card-element",
|
|
2297
2320
|
promoInputVisible: !1,
|
|
2298
2321
|
inputPromotionCode: "",
|
|
2299
2322
|
isEditLock: !1,
|
|
2300
2323
|
isInvalidPromotionCode: !1,
|
|
2301
2324
|
useExistingCard: !1,
|
|
2302
|
-
useExistingCustomer: !1
|
|
2325
|
+
useExistingCustomer: !1,
|
|
2326
|
+
consent: !1
|
|
2303
2327
|
};
|
|
2304
2328
|
},
|
|
2305
2329
|
validations() {
|
|
2306
2330
|
return {
|
|
2307
2331
|
formCustomer: {
|
|
2308
2332
|
email: {
|
|
2309
|
-
email:
|
|
2333
|
+
email: b.email
|
|
2310
2334
|
}
|
|
2311
2335
|
},
|
|
2312
2336
|
quantity: {
|
|
2313
|
-
required:
|
|
2314
|
-
minValue:
|
|
2315
|
-
numeric:
|
|
2337
|
+
required: b.required,
|
|
2338
|
+
minValue: b.minValue(1),
|
|
2339
|
+
numeric: b.numeric
|
|
2340
|
+
},
|
|
2341
|
+
consent: {
|
|
2342
|
+
required: b.requiredIf((e) => e.collectConsent),
|
|
2343
|
+
sameAs: b.sameAs((e) => e.collectConsent)
|
|
2316
2344
|
}
|
|
2317
2345
|
};
|
|
2318
2346
|
},
|
|
@@ -2356,7 +2384,7 @@ const De = {
|
|
|
2356
2384
|
return (n = this.customer) == null ? void 0 : n.paymentMethodLast4;
|
|
2357
2385
|
},
|
|
2358
2386
|
sortedRegions() {
|
|
2359
|
-
return (Object.keys(
|
|
2387
|
+
return (Object.keys(x) || []).map((n) => ({ key: n, title: `${x[n].name} (${n})`, callingCode: x[n].callingCode })).sort((n, e) => n.title.localeCompare(e.title));
|
|
2360
2388
|
},
|
|
2361
2389
|
currency() {
|
|
2362
2390
|
return this.formPrices.currency;
|
|
@@ -2364,7 +2392,7 @@ const De = {
|
|
|
2364
2392
|
promotionDescription() {
|
|
2365
2393
|
let n = "- ";
|
|
2366
2394
|
const { amountOff: e, percentOff: t } = this.promotion || {};
|
|
2367
|
-
return e ? n +=
|
|
2395
|
+
return e ? n += P(e, { currency: this.currency }) : t && (n += `${t}%`), n;
|
|
2368
2396
|
},
|
|
2369
2397
|
reasonableUseQuotas() {
|
|
2370
2398
|
var i;
|
|
@@ -2390,7 +2418,7 @@ const De = {
|
|
|
2390
2418
|
});
|
|
2391
2419
|
if (!o)
|
|
2392
2420
|
return;
|
|
2393
|
-
const c =
|
|
2421
|
+
const c = P(o.amount, {
|
|
2394
2422
|
currency: o.currency,
|
|
2395
2423
|
decimals: 2,
|
|
2396
2424
|
hideZeroDecimals: !0
|
|
@@ -2402,7 +2430,7 @@ const De = {
|
|
|
2402
2430
|
watch: {
|
|
2403
2431
|
useExistingCard(n) {
|
|
2404
2432
|
this.$nextTick(() => {
|
|
2405
|
-
n
|
|
2433
|
+
n || this.mountCardInput();
|
|
2406
2434
|
});
|
|
2407
2435
|
}
|
|
2408
2436
|
},
|
|
@@ -2426,12 +2454,12 @@ const De = {
|
|
|
2426
2454
|
this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
|
|
2427
2455
|
},
|
|
2428
2456
|
methods: {
|
|
2429
|
-
|
|
2457
|
+
...$({
|
|
2430
2458
|
usePromotionCode: m.SUBMIT_PROMOTION_CODE,
|
|
2431
2459
|
setPromotion: m.SET_FORM_PROMOTION,
|
|
2432
2460
|
submitPlan: m.SUBMIT_FORM_PLAN
|
|
2433
2461
|
}),
|
|
2434
|
-
priceFormat:
|
|
2462
|
+
priceFormat: P,
|
|
2435
2463
|
getIntervalTitle(n) {
|
|
2436
2464
|
return n === "month" ? this.$t("_common:monthly").capitalize() : n === "year" ? this.$t("_common:yearly").capitalize() : n === "oneOff" ? this.$t("oneTimeFee").capitalize() : null;
|
|
2437
2465
|
},
|
|
@@ -2453,13 +2481,13 @@ const De = {
|
|
|
2453
2481
|
}
|
|
2454
2482
|
}
|
|
2455
2483
|
};
|
|
2456
|
-
var
|
|
2484
|
+
var Ue = function() {
|
|
2457
2485
|
var e = this, t = e._self._c;
|
|
2458
2486
|
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: "font-medium text-primary-500", domProps: { textContent: e._s(e.$t("saveAmount")) } })]), t("CSwitch", { attrs: { value: e.formPlan.interval === "year", size: "small", type: "secondary" }, on: { input: function(a) {
|
|
2459
2487
|
return e.$emit("update:interval", e.formPlan.interval === "year" ? "month" : "year");
|
|
2460
2488
|
} } })], 1), t("div", [t("img", { staticStyle: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%", "margin-bottom": "calc(1 * var(--rem))" }, attrs: { src: e.uiPlan.img, alt: e.uiPlan.name, width: "50", height: "50" } })]), t("div", { staticStyle: { "font-weight": "600", "font-size": "21px" } }, [e._v(" " + e._s(e.$t("cardTitle", { plan: e.uiPlan.name })) + " ")]), t("div", { staticClass: "text-[15px] py-4" }, [e._l(e.formPrices.intervals, function(a, r) {
|
|
2461
2489
|
return t("div", { key: `interval-${r}`, staticClass: "pb-2 mb-4 border-b border-gray-200" }, [t("div", { staticClass: "flex justify-between w-full" }, [t("div", { staticClass: "font-medium" }, [e._v(e._s(e.getIntervalTitle(r)))]), t("div", { staticClass: "text-right" }, [t("div", { staticClass: "font-semibold leading-none text-[17px]" }, [e._v(" " + e._s(e.priceFormat(a.subTotal, { currency: e.currency })) + " ")]), t("div", { staticClass: "opacity-70 text-[13px]" }, [e._v(" " + e._s(a.vatAmount ? e.$t("_common:vat.exVat", { thing: e.$t("_common:vat.vat") }) : e.$t("_common:total").capitalize()) + " "), r !== "oneOff" ? [e._v("/ " + e._s(e.$t(`_common:${r}`)) + " ")] : e._e()], 2)])]), e._l(a.items, function(i, s) {
|
|
2462
|
-
return t("div", { key: s, staticClass: "flex justify-between w-full pb-1 mt-2" }, [t("div", { staticClass: "font-medium opacity-70" }, [e._v(" " + e._s(
|
|
2490
|
+
return t("div", { key: s, staticClass: "flex justify-between w-full pb-1 mt-2" }, [t("div", { staticClass: "font-medium opacity-70" }, [e._v(" " + e._s(e.disableQuantity ? "" : `${i.quantity} x `) + e._s(i.name.capitalize()) + " ")]), t("div", { staticClass: "text-right opacity-70" }, [e._v(e._s(e.priceFormat(i.amount, { currency: e.currency })))])]);
|
|
2463
2491
|
})], 2);
|
|
2464
2492
|
}), e.promotion ? t("div", { staticClass: "flex justify-between w-full", staticStyle: { "padding-bottom": "4px" } }, [t("div", { staticStyle: { "font-weight": "500", opacity: "0.7" } }, [e._v(e._s(e.promotion.code || e.promotion.name) + " ")]), t("div", { staticClass: "text-right has-text-danger", staticStyle: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" } }, [t("CButton", { staticStyle: { height: "inherit", "margin-right": "3px" }, attrs: { disabled: e.isEditLock, "icon-props": { size: 15 }, size: "small", type: "none", pattern: "tertiary", icon: "trash" }, on: { click: function(a) {
|
|
2465
2493
|
return e.$emit("input", { key: "promotion", value: null });
|
|
@@ -2473,11 +2501,11 @@ var Be = function() {
|
|
|
2473
2501
|
return e.verifyPromotionCode(e.inputPromotionCode);
|
|
2474
2502
|
} } }, [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) {
|
|
2475
2503
|
e.promoInputVisible = !0;
|
|
2476
|
-
} } }, [e._v(" " + e._s(e.$t("promotion.add")) + " ")])], 1)], 2)]), t("div", { staticClass: "flex items-center w-full p-badge" }, [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: "flex items-center w-full p-badge" }, [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")) + " ")]), t("div", { staticClass: "flex items-center w-full p-badge" }, [t("BaseIcon", { 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) {
|
|
2504
|
+
} } }, [e._v(" " + e._s(e.$t("promotion.add")) + " ")])], 1)], 2)]), t("div", { staticClass: "flex items-center w-full p-badge" }, [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: "flex items-center w-full p-badge" }, [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: "flex items-center w-full p-badge" }, [t("BaseIcon", { 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) {
|
|
2477
2505
|
return e.$modal.show("reasonableUse");
|
|
2478
2506
|
} } })], 1), t("div", { staticClass: "flex items-center w-full p-badge" }, [t("BaseIcon", { 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) {
|
|
2479
2507
|
return e.$modal.show("faq");
|
|
2480
|
-
} } })], 1)]), 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" } }, [t("div", { staticClass: "p-block" }, [t("div", { staticClass: "flex items-center w-full p-block-title" }, [t("div", [e._v(" " + e._s(e.$t("quantity.label")) + " "), t("BaseIcon", { 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: `
|
|
2508
|
+
} } })], 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: "flex items-center w-full p-block-title" }, [t("div", [e._v(" " + e._s(e.$t("quantity.label")) + " "), t("BaseIcon", { 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: `
|
|
2481
2509
|
uiPlan.accountType === 'start'
|
|
2482
2510
|
? { content: $t('quantity.disabled') }
|
|
2483
2511
|
: ''
|
|
@@ -2499,24 +2527,65 @@ var Be = function() {
|
|
|
2499
2527
|
return t("option", { key: a, domProps: { value: a } }, [e._v(" " + e._s(r) + " ")]);
|
|
2500
2528
|
}), 0)], 1), t("div", { staticClass: "p-block" }, [e._v(" " + e._s(e.$t("email.label")) + " "), t("CField", { attrs: { validator: e.$v.formCustomer.email, messages: e.messages.email, expanded: "" } }, [t("CInput", { attrs: { value: e.formCustomer.email, placeholder: e.$t("email.placeholder"), size: "medium", filled: "" }, on: { input: function(a) {
|
|
2501
2529
|
return e.$emit("input", { key: "customer.email", value: a });
|
|
2502
|
-
} } })], 1)], 1)]], 2), t("div", { staticClass: "anim-block p-block" }, [t("
|
|
2530
|
+
} } })], 1)], 1)]], 2), e.collectConsent ? t("div", { staticClass: "anim-block p-block" }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.consent, callback: function(a) {
|
|
2531
|
+
e.consent = a;
|
|
2532
|
+
}, expression: "consent" } }, [t("div", { class: [
|
|
2533
|
+
e.$v.consent.$invalid && e.$v.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
|
|
2534
|
+
] }, [e._v(" " + e._s(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " "), t("a", { 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", { 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(), 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: "overflow-visible primary", 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": ".5em", padding: "calc(1 * var(--rem))" }, domProps: { textContent: e._s(e.$t("faq.title")) } }), e._l(6, function(a) {
|
|
2503
2535
|
return t("CAccordion", { key: a, attrs: { "default-open": null }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: r }) {
|
|
2504
2536
|
return t("div", { staticClass: "list-button" }, [t("span", { domProps: { textContent: e._s(e.$t(`faq.items.${a - 1}.title`, { brand: e.$t("_common:brand.name") })) } }), t("BaseIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${r ? "0deg" : "180deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
|
|
2505
2537
|
} }], null, !0) }, [t("div", { staticStyle: { "font-size": "14px", opacity: "0.65", padding: "0 calc(.5 * var(--rem)) calc(2 * var(--rem)) calc(.5 * var(--rem))" }, domProps: { textContent: e._s(e.$t(`faq.items.${a - 1}.text`, { brand: e.$t("_common:brand.name") })) } })]);
|
|
2506
2538
|
})], 2)]), t("modal", { staticClass: "overflow-visible primary", 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) {
|
|
2507
2539
|
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()]);
|
|
2508
2540
|
}), 0)])])], 1);
|
|
2509
|
-
},
|
|
2510
|
-
De,
|
|
2511
|
-
Be,
|
|
2541
|
+
}, Ae = [], Ve = /* @__PURE__ */ d(
|
|
2512
2542
|
Fe,
|
|
2543
|
+
Ue,
|
|
2544
|
+
Ae,
|
|
2513
2545
|
!1,
|
|
2514
2546
|
null,
|
|
2515
|
-
"
|
|
2547
|
+
"afe34ab2",
|
|
2516
2548
|
null,
|
|
2517
2549
|
null
|
|
2518
2550
|
);
|
|
2519
|
-
const
|
|
2551
|
+
const Oe = Ve.exports, Ne = {
|
|
2552
|
+
sv: {
|
|
2553
|
+
premiumStripe: {
|
|
2554
|
+
"features.free": [
|
|
2555
|
+
"Skapa offerter med standardmallen",
|
|
2556
|
+
"Skapa PDF-offerter",
|
|
2557
|
+
"Signering - standard",
|
|
2558
|
+
"SMS"
|
|
2559
|
+
],
|
|
2560
|
+
"features.pro": [
|
|
2561
|
+
"Skicka offerter & avtal med e-signering",
|
|
2562
|
+
"BankID-signaturer",
|
|
2563
|
+
"Design:a offerter",
|
|
2564
|
+
"Skapa & använd offertmallar",
|
|
2565
|
+
"Skicka offerter till kunder utanför Offerta",
|
|
2566
|
+
"Dessutom allt som ingår i Cling Pro"
|
|
2567
|
+
]
|
|
2568
|
+
}
|
|
2569
|
+
},
|
|
2570
|
+
en: {
|
|
2571
|
+
premiumStripe: {
|
|
2572
|
+
"features.free": [
|
|
2573
|
+
"Create proposals with the default template",
|
|
2574
|
+
"Create PDF-proposals",
|
|
2575
|
+
"Sign method - standard",
|
|
2576
|
+
"SMS"
|
|
2577
|
+
],
|
|
2578
|
+
"features.pro": [
|
|
2579
|
+
"Send proposals & contracts with e-signatures",
|
|
2580
|
+
"BankID-signatures",
|
|
2581
|
+
"Design proposals",
|
|
2582
|
+
"Create & use document templates",
|
|
2583
|
+
"Send proposals to clients outside Offerta",
|
|
2584
|
+
"Everything in Cling Pro"
|
|
2585
|
+
]
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
}, ze = {
|
|
2520
2589
|
name: "PremiumStripe",
|
|
2521
2590
|
i18nOptions: {
|
|
2522
2591
|
namespaces: "premiumStripe",
|
|
@@ -2544,12 +2613,13 @@ const Ae = Ue.exports, Ve = {
|
|
|
2544
2613
|
}
|
|
2545
2614
|
},
|
|
2546
2615
|
features: {
|
|
2616
|
+
free: [],
|
|
2547
2617
|
start: [
|
|
2548
2618
|
"Single user only",
|
|
2549
2619
|
"Send up to 5 docs / month",
|
|
2550
2620
|
"Up to 2 templates",
|
|
2551
2621
|
"Real-time audit trail",
|
|
2552
|
-
...
|
|
2622
|
+
..._.checkFeature("bankId") ? ["BankID"] : [],
|
|
2553
2623
|
"SMS"
|
|
2554
2624
|
],
|
|
2555
2625
|
base: [
|
|
@@ -2559,7 +2629,7 @@ const Ae = Ue.exports, Ve = {
|
|
|
2559
2629
|
"Members",
|
|
2560
2630
|
"Reminders",
|
|
2561
2631
|
"Real-time audit trail",
|
|
2562
|
-
...
|
|
2632
|
+
..._.checkFeature("bankId") ? ["BankID"] : [],
|
|
2563
2633
|
"SMS"
|
|
2564
2634
|
],
|
|
2565
2635
|
pro: [
|
|
@@ -2572,7 +2642,7 @@ const Ae = Ue.exports, Ve = {
|
|
|
2572
2642
|
"Custom subdomain",
|
|
2573
2643
|
"Custom email address",
|
|
2574
2644
|
"Version control",
|
|
2575
|
-
...
|
|
2645
|
+
..._.checkFeature("bankId") ? ["BankID"] : [],
|
|
2576
2646
|
`Hide ${y[h.brand].name}-logo`,
|
|
2577
2647
|
"CRM integrations"
|
|
2578
2648
|
]
|
|
@@ -2607,12 +2677,13 @@ const Ae = Ue.exports, Ve = {
|
|
|
2607
2677
|
}
|
|
2608
2678
|
},
|
|
2609
2679
|
features: {
|
|
2680
|
+
free: [],
|
|
2610
2681
|
start: [
|
|
2611
2682
|
"Endast en användare",
|
|
2612
2683
|
"Skicka upp till 5 dokument / månad",
|
|
2613
2684
|
"Upp till 2 mallar",
|
|
2614
2685
|
"Dokumentspårning i realtid",
|
|
2615
|
-
...
|
|
2686
|
+
..._.checkFeature("bankId") ? ["BankID"] : [],
|
|
2616
2687
|
"SMS"
|
|
2617
2688
|
],
|
|
2618
2689
|
base: [
|
|
@@ -2622,7 +2693,7 @@ const Ae = Ue.exports, Ve = {
|
|
|
2622
2693
|
"Medlemmar",
|
|
2623
2694
|
"Påminnelser",
|
|
2624
2695
|
"Dokumentspårning i realtid",
|
|
2625
|
-
...
|
|
2696
|
+
..._.checkFeature("bankId") ? ["BankID"] : [],
|
|
2626
2697
|
"SMS"
|
|
2627
2698
|
],
|
|
2628
2699
|
pro: [
|
|
@@ -2635,7 +2706,7 @@ const Ae = Ue.exports, Ve = {
|
|
|
2635
2706
|
"Subdomän",
|
|
2636
2707
|
"Egen e-postdomän",
|
|
2637
2708
|
"Versionshantering",
|
|
2638
|
-
...
|
|
2709
|
+
..._.checkFeature("bankId") ? ["BankID"] : [],
|
|
2639
2710
|
`Göm ${y[h.brand].name}-logo`,
|
|
2640
2711
|
"CRM-Integrationer"
|
|
2641
2712
|
]
|
|
@@ -2650,9 +2721,9 @@ const Ae = Ue.exports, Ve = {
|
|
|
2650
2721
|
}
|
|
2651
2722
|
},
|
|
2652
2723
|
components: {
|
|
2653
|
-
Confetti:
|
|
2654
|
-
PremiumStripeSelect:
|
|
2655
|
-
PremiumStripeForm:
|
|
2724
|
+
Confetti: ke,
|
|
2725
|
+
PremiumStripeSelect: Me,
|
|
2726
|
+
PremiumStripeForm: Oe
|
|
2656
2727
|
},
|
|
2657
2728
|
props: {
|
|
2658
2729
|
suggestedQuantity: {
|
|
@@ -2673,20 +2744,21 @@ const Ae = Ue.exports, Ve = {
|
|
|
2673
2744
|
};
|
|
2674
2745
|
},
|
|
2675
2746
|
computed: {
|
|
2676
|
-
...
|
|
2747
|
+
...le({
|
|
2677
2748
|
forceShowBase: (n) => n.route.query.base,
|
|
2678
2749
|
routeDeal: (n) => n.route.query.deal
|
|
2679
2750
|
}),
|
|
2680
2751
|
...v({
|
|
2752
|
+
accountConfigName: "application/accountConfigName",
|
|
2681
2753
|
accountType: "application/companyAccountType",
|
|
2682
2754
|
subscription: "application/subscription",
|
|
2683
2755
|
formPlan: "stripe/formPlan",
|
|
2684
2756
|
formProducts: "stripe/formProducts",
|
|
2685
|
-
currentPlan: "stripe/currentPlan",
|
|
2686
2757
|
subscriptions: "stripe/subscriptions",
|
|
2687
2758
|
subscriptionItems: "stripe/subscriptionItems",
|
|
2688
2759
|
getProductByPriceId: "stripe/getProductByPriceId",
|
|
2689
|
-
stripeCustomDealToken: "settings/stripeCustomDealToken"
|
|
2760
|
+
stripeCustomDealToken: "settings/stripeCustomDealToken",
|
|
2761
|
+
getPrice: "stripe/getPrice"
|
|
2690
2762
|
}),
|
|
2691
2763
|
quantity: {
|
|
2692
2764
|
get() {
|
|
@@ -2724,39 +2796,51 @@ const Ae = Ue.exports, Ve = {
|
|
|
2724
2796
|
}
|
|
2725
2797
|
},
|
|
2726
2798
|
prettyPlans() {
|
|
2727
|
-
const n = [], e = this.subscription.maxProjectManagers === 1 && this.subscription.mrr < 4e4 || !["base", "pro"].includes(this.accountType),
|
|
2728
|
-
const
|
|
2729
|
-
return
|
|
2799
|
+
const n = [], e = this.getPrice("start", "month") || this.getPrice("start", "year"), t = this.getPrice("base", "month") || this.getPrice("base", "year"), a = e && (this.subscription.maxProjectManagers === 1 && this.subscription.mrr < 4e4 || !["base", "pro"].includes(this.accountType)), r = () => {
|
|
2800
|
+
const i = this.subscription.isStripeLegacy || this.subscription.paymentMethod === "invoice", s = this.subscription.billingCycleInterval === "month" && this.subscription.mrr < 45e3 || this.subscription.billingCycleInterval === "year" && this.subscription.mrr < 38e3;
|
|
2801
|
+
return t && (i && !this.forceShowBase ? s : !0);
|
|
2730
2802
|
};
|
|
2731
|
-
return
|
|
2803
|
+
return this.isOfferta && n.push({
|
|
2804
|
+
name: "Free",
|
|
2805
|
+
accountType: "free",
|
|
2806
|
+
img: k("/account/subscription/bg-start.png"),
|
|
2807
|
+
// TODO: same img as base
|
|
2808
|
+
features: this.$t("features.free")
|
|
2809
|
+
}), a && n.push({
|
|
2732
2810
|
name: "Start",
|
|
2733
2811
|
accountType: "start",
|
|
2734
|
-
img:
|
|
2812
|
+
img: k("/account/subscription/bg-start.png"),
|
|
2735
2813
|
features: this.$t("features.start")
|
|
2736
|
-
}),
|
|
2814
|
+
}), r() && n.push({
|
|
2737
2815
|
name: "Base",
|
|
2738
2816
|
accountType: "base",
|
|
2739
|
-
img:
|
|
2817
|
+
img: k("/account/subscription/bg-base.png"),
|
|
2740
2818
|
features: this.$t("features.base")
|
|
2741
2819
|
}), n.push({
|
|
2742
2820
|
name: "Pro",
|
|
2743
2821
|
accountType: "pro",
|
|
2744
|
-
img:
|
|
2822
|
+
img: k("/account/subscription/bg-pro.png"),
|
|
2745
2823
|
features: this.$t("features.pro")
|
|
2746
2824
|
}), n;
|
|
2747
2825
|
},
|
|
2748
2826
|
calloutMode() {
|
|
2749
2827
|
return this.subscription.showCalloutConvertStripe ? "invoice" : this.subscription.isStripeLegacy ? "legacy" : null;
|
|
2828
|
+
},
|
|
2829
|
+
isOfferta() {
|
|
2830
|
+
return this.accountConfigName === "offerta";
|
|
2831
|
+
},
|
|
2832
|
+
disableQuantity() {
|
|
2833
|
+
return this.isOfferta && this.$view === "widget";
|
|
2750
2834
|
}
|
|
2751
2835
|
},
|
|
2752
2836
|
beforeCreate() {
|
|
2753
2837
|
this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", G);
|
|
2754
2838
|
},
|
|
2755
2839
|
async created() {
|
|
2756
|
-
this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
|
|
2840
|
+
this.isOfferta && te(Ne), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
|
|
2757
2841
|
},
|
|
2758
2842
|
methods: {
|
|
2759
|
-
|
|
2843
|
+
...$({
|
|
2760
2844
|
loadPrices: m.LOAD_PRICES,
|
|
2761
2845
|
resetStripeForm: m.RESET_STRIPE_FORM,
|
|
2762
2846
|
setFormValue: m.SET_STRIPE_FORM_VALUE,
|
|
@@ -2764,13 +2848,13 @@ const Ae = Ue.exports, Ve = {
|
|
|
2764
2848
|
}),
|
|
2765
2849
|
// Suggest quantity of licenses based on property or from account
|
|
2766
2850
|
async suggestQuantity() {
|
|
2767
|
-
if (this.plan === "start")
|
|
2851
|
+
if (this.disableQuantity || this.plan === "start")
|
|
2768
2852
|
return;
|
|
2769
2853
|
if (this.suggestedQuantity && typeof this.suggestedQuantity == "number") {
|
|
2770
2854
|
this.quantity = this.suggestedQuantity;
|
|
2771
2855
|
return;
|
|
2772
2856
|
}
|
|
2773
|
-
const { data: n } = await
|
|
2857
|
+
const { data: n } = await ne();
|
|
2774
2858
|
this.quantity = n;
|
|
2775
2859
|
},
|
|
2776
2860
|
onReset() {
|
|
@@ -2808,7 +2892,7 @@ const Ae = Ue.exports, Ve = {
|
|
|
2808
2892
|
setFromDealToken(n) {
|
|
2809
2893
|
if (n)
|
|
2810
2894
|
try {
|
|
2811
|
-
const e =
|
|
2895
|
+
const e = ae(n);
|
|
2812
2896
|
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) {
|
|
2813
2897
|
const t = [];
|
|
2814
2898
|
Object.keys(e.items).forEach((a) => {
|
|
@@ -2829,35 +2913,36 @@ const Ae = Ue.exports, Ve = {
|
|
|
2829
2913
|
}
|
|
2830
2914
|
}
|
|
2831
2915
|
};
|
|
2832
|
-
var
|
|
2916
|
+
var qe = function() {
|
|
2833
2917
|
var e = this, t = e._self._c;
|
|
2834
2918
|
return t("div", { staticClass: "relative grid h-full px-12 py-8 overflow-auto bg-white font-inter anime-payment-modal font-base place-items-center" }, [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) {
|
|
2835
2919
|
return e.$emit("close");
|
|
2836
|
-
} } }), 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: "relative inline-block py-4 pl-12 pr-4 border-2 rounded-lg bg-primary-100 border-primary-300", staticStyle: { "max-width": "calc(55 * var(--rem))" } }, [t("BaseIcon", { staticClass: "absolute left-4 top-5 text-primary-800", attrs: { type: "info", size: "20" } }), t("div", { staticClass: "font-semibold text-primary-800", 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(),
|
|
2920
|
+
} } }), 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: "relative inline-block py-4 pl-12 pr-4 border-2 rounded-lg bg-primary-100 border-primary-300", staticStyle: { "max-width": "calc(55 * var(--rem))" } }, [t("BaseIcon", { staticClass: "absolute left-4 top-5 text-primary-800", attrs: { type: "info", size: "20" } }), t("div", { staticClass: "font-semibold text-primary-800", 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) {
|
|
2837
2921
|
e.plan = a;
|
|
2838
2922
|
}, "update:interval": function(a) {
|
|
2839
2923
|
e.interval = a;
|
|
2840
2924
|
}, next: function(a) {
|
|
2841
2925
|
e.view = "form";
|
|
2842
|
-
} } }) : e.view === "form" ? t("PremiumStripeForm", { attrs: { "ui-plan": e.prettyPlans.find((a) => a.accountType === e.plan), "form-plan": e.formPlan }, on: { "update:interval": function(a) {
|
|
2926
|
+
} } }) : e.view === "form" ? t("PremiumStripeForm", { attrs: { "ui-plan": e.prettyPlans.find((a) => a.accountType === e.plan), "form-plan": e.formPlan, "disable-quantity": e.disableQuantity, "hide-extra-info": e.isOfferta, "collect-consent": e.isOfferta }, on: { "update:interval": function(a) {
|
|
2843
2927
|
e.interval = a;
|
|
2844
2928
|
}, input: e.setFormValue, success: e.goToSuccess } }) : e.view === "success" ? t("div", { staticClass: "flex flex-col items-center justify-center w-full h-full 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) {
|
|
2845
2929
|
return e.closeAndContinue();
|
|
2846
2930
|
} } }, [e._v(e._s(e.$t("success.closeButton")))])], 1) : e._e()], 1)]);
|
|
2847
|
-
},
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2931
|
+
}, Ge = [], je = /* @__PURE__ */ d(
|
|
2932
|
+
ze,
|
|
2933
|
+
qe,
|
|
2934
|
+
Ge,
|
|
2851
2935
|
!1,
|
|
2852
2936
|
null,
|
|
2853
2937
|
null,
|
|
2854
2938
|
null,
|
|
2855
2939
|
null
|
|
2856
2940
|
);
|
|
2857
|
-
const
|
|
2941
|
+
const Ze = je.exports, Ke = {
|
|
2858
2942
|
name: "IsPremium",
|
|
2859
2943
|
computed: {
|
|
2860
2944
|
...v({
|
|
2945
|
+
feature: "application/feature",
|
|
2861
2946
|
subscription: "application/subscription",
|
|
2862
2947
|
companyAccount: "application/companyAccount",
|
|
2863
2948
|
stripeCustomDealToken: "settings/stripeCustomDealToken"
|
|
@@ -2877,6 +2962,12 @@ const qe = ze.exports, Ge = {
|
|
|
2877
2962
|
canCreateDocument() {
|
|
2878
2963
|
return this.subscription.freeDocumentsLeft > 0 || C(this.companyAccount, "documentQuota.priceExtra.value") !== null;
|
|
2879
2964
|
},
|
|
2965
|
+
canCreateTemplate() {
|
|
2966
|
+
return this.feature("createDocTemplate");
|
|
2967
|
+
},
|
|
2968
|
+
canUseTemplate() {
|
|
2969
|
+
return this.feature("useDocTemplate");
|
|
2970
|
+
},
|
|
2880
2971
|
canUseBankId() {
|
|
2881
2972
|
return this.isPremiumLike ? !0 : !!this.subscription.freeBankIdLeft;
|
|
2882
2973
|
},
|
|
@@ -2906,7 +2997,7 @@ const qe = ze.exports, Ge = {
|
|
|
2906
2997
|
openUpgradeModal({ suggestedQuantity: n = null, callback: e = null, onClosed: t = null } = {}) {
|
|
2907
2998
|
let a = () => null, r = () => null;
|
|
2908
2999
|
typeof e == "function" && (a = e), typeof t == "function" && (r = t), this.$modal.show(
|
|
2909
|
-
|
|
3000
|
+
Ze,
|
|
2910
3001
|
{
|
|
2911
3002
|
suggestedQuantity: n,
|
|
2912
3003
|
onUpgrade: a
|
|
@@ -2942,22 +3033,24 @@ const qe = ze.exports, Ge = {
|
|
|
2942
3033
|
trialDaysLeft: this.subscription.trialDaysLeft,
|
|
2943
3034
|
maxProjectManagers: this.subscription.maxProjectManagers,
|
|
2944
3035
|
canCreateDocument: this.canCreateDocument,
|
|
3036
|
+
canUseTemplate: this.canUseTemplate,
|
|
3037
|
+
canCreateTemplate: this.canCreateTemplate,
|
|
2945
3038
|
canUseBankId: this.canUseBankId,
|
|
2946
3039
|
canUseSms: this.canUseSms
|
|
2947
3040
|
}) : {};
|
|
2948
3041
|
}
|
|
2949
|
-
},
|
|
2950
|
-
var
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
3042
|
+
}, Ye = null, We = null;
|
|
3043
|
+
var Xe = /* @__PURE__ */ d(
|
|
3044
|
+
Ke,
|
|
3045
|
+
Ye,
|
|
3046
|
+
We,
|
|
2954
3047
|
!1,
|
|
2955
3048
|
null,
|
|
2956
3049
|
null,
|
|
2957
3050
|
null,
|
|
2958
3051
|
null
|
|
2959
3052
|
);
|
|
2960
|
-
const
|
|
3053
|
+
const Qe = Xe.exports, Je = {
|
|
2961
3054
|
name: "CalloutLegacy",
|
|
2962
3055
|
i18nOptions: {
|
|
2963
3056
|
namespaces: "components",
|
|
@@ -3007,21 +3100,21 @@ const Ye = Ke.exports, We = {
|
|
|
3007
3100
|
}
|
|
3008
3101
|
}
|
|
3009
3102
|
};
|
|
3010
|
-
var
|
|
3103
|
+
var et = function() {
|
|
3011
3104
|
var e = this, t = e._self._c;
|
|
3012
3105
|
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);
|
|
3013
|
-
},
|
|
3014
|
-
We,
|
|
3015
|
-
Xe,
|
|
3106
|
+
}, tt = [], nt = /* @__PURE__ */ d(
|
|
3016
3107
|
Je,
|
|
3108
|
+
et,
|
|
3109
|
+
tt,
|
|
3017
3110
|
!1,
|
|
3018
3111
|
null,
|
|
3019
3112
|
null,
|
|
3020
3113
|
null,
|
|
3021
3114
|
null
|
|
3022
3115
|
);
|
|
3023
|
-
const
|
|
3024
|
-
const
|
|
3116
|
+
const at = nt.exports;
|
|
3117
|
+
const rt = {
|
|
3025
3118
|
i18nOptions: {
|
|
3026
3119
|
namespaces: "components",
|
|
3027
3120
|
messages: {
|
|
@@ -3045,8 +3138,8 @@ const tt = {
|
|
|
3045
3138
|
},
|
|
3046
3139
|
name: "PremiumRestrictedBase",
|
|
3047
3140
|
components: {
|
|
3048
|
-
IsPremium:
|
|
3049
|
-
CalloutLegacy:
|
|
3141
|
+
IsPremium: Qe,
|
|
3142
|
+
CalloutLegacy: at
|
|
3050
3143
|
},
|
|
3051
3144
|
props: {
|
|
3052
3145
|
plan: {
|
|
@@ -3092,7 +3185,7 @@ const tt = {
|
|
|
3092
3185
|
}
|
|
3093
3186
|
}
|
|
3094
3187
|
};
|
|
3095
|
-
var
|
|
3188
|
+
var it = function() {
|
|
3096
3189
|
var e = this, t = e._self._c;
|
|
3097
3190
|
return t("div", { staticClass: "root font-inter" }, [t("div", { staticClass: "lock-wrapper has-text-white" }, [t("BaseIcon", { 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() {
|
|
3098
3191
|
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))])];
|
|
@@ -3105,17 +3198,17 @@ var nt = function() {
|
|
|
3105
3198
|
} }], null, !0) }), t("div", { staticStyle: { "margin-top": "5px" } }, [t("CButton", { attrs: { type: "none", pattern: "tertiary", wide: "" }, on: { click: function(a) {
|
|
3106
3199
|
return e.$parent.$emit("close");
|
|
3107
3200
|
} } }, [e._v(" " + e._s(e.$t("cancelButton")) + " ")])], 1)], 1)])]);
|
|
3108
|
-
},
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3201
|
+
}, st = [], ot = /* @__PURE__ */ d(
|
|
3202
|
+
rt,
|
|
3203
|
+
it,
|
|
3204
|
+
st,
|
|
3112
3205
|
!1,
|
|
3113
3206
|
null,
|
|
3114
3207
|
"993cb5cc",
|
|
3115
3208
|
null,
|
|
3116
3209
|
null
|
|
3117
3210
|
);
|
|
3118
|
-
const f =
|
|
3211
|
+
const f = ot.exports, lt = {
|
|
3119
3212
|
i18nOptions: {
|
|
3120
3213
|
namespaces: "winProfile",
|
|
3121
3214
|
keyPrefix: "account.subscription.winProfile",
|
|
@@ -3143,20 +3236,20 @@ const f = rt.exports, it = {
|
|
|
3143
3236
|
}
|
|
3144
3237
|
}
|
|
3145
3238
|
};
|
|
3146
|
-
var
|
|
3239
|
+
var ct = function() {
|
|
3147
3240
|
var e = this, t = e._self._c;
|
|
3148
3241
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3149
|
-
},
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3242
|
+
}, ut = [], dt = /* @__PURE__ */ d(
|
|
3243
|
+
lt,
|
|
3244
|
+
ct,
|
|
3245
|
+
ut,
|
|
3153
3246
|
!1,
|
|
3154
3247
|
null,
|
|
3155
3248
|
null,
|
|
3156
3249
|
null,
|
|
3157
3250
|
null
|
|
3158
3251
|
);
|
|
3159
|
-
const
|
|
3252
|
+
const mt = dt.exports, pt = {
|
|
3160
3253
|
i18nOptions: {
|
|
3161
3254
|
namespaces: "subTemplates",
|
|
3162
3255
|
messages: {
|
|
@@ -3181,20 +3274,20 @@ const ct = lt.exports, ut = {
|
|
|
3181
3274
|
}
|
|
3182
3275
|
}
|
|
3183
3276
|
};
|
|
3184
|
-
var
|
|
3277
|
+
var gt = function() {
|
|
3185
3278
|
var e = this, t = e._self._c;
|
|
3186
3279
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3187
|
-
},
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3280
|
+
}, ht = [], ft = /* @__PURE__ */ d(
|
|
3281
|
+
pt,
|
|
3282
|
+
gt,
|
|
3283
|
+
ht,
|
|
3191
3284
|
!1,
|
|
3192
3285
|
null,
|
|
3193
3286
|
null,
|
|
3194
3287
|
null,
|
|
3195
3288
|
null
|
|
3196
3289
|
);
|
|
3197
|
-
const
|
|
3290
|
+
const yt = ft.exports, Ct = {
|
|
3198
3291
|
i18nOptions: {
|
|
3199
3292
|
namespaces: "PremiumRestrictedDocuments",
|
|
3200
3293
|
messages: {
|
|
@@ -3243,58 +3336,58 @@ const gt = pt.exports, ht = {
|
|
|
3243
3336
|
},
|
|
3244
3337
|
created() {
|
|
3245
3338
|
try {
|
|
3246
|
-
|
|
3339
|
+
re("/documentLimitReached", {});
|
|
3247
3340
|
} catch (n) {
|
|
3248
|
-
|
|
3341
|
+
D(n, { showMessage: !1 });
|
|
3249
3342
|
}
|
|
3250
3343
|
},
|
|
3251
3344
|
async mounted() {
|
|
3252
3345
|
this.checkFreeDocVoucher();
|
|
3253
3346
|
},
|
|
3254
3347
|
methods: {
|
|
3255
|
-
|
|
3348
|
+
...$({
|
|
3256
3349
|
loadCurrentCompany: m.DO_LOAD_CURRENT_COMPANY
|
|
3257
3350
|
}),
|
|
3258
3351
|
async checkFreeDocVoucher() {
|
|
3259
3352
|
var e, t;
|
|
3260
3353
|
if (this.canUseFreeDocVoucher = !1, ((e = this.account) == null ? void 0 : e.accountType) !== "free")
|
|
3261
3354
|
return;
|
|
3262
|
-
const n = JSON.parse(
|
|
3355
|
+
const n = JSON.parse(E.getItem("voucher-freeUserDocs-company-id"));
|
|
3263
3356
|
((t = this.account) == null ? void 0 : t.CompanyId) !== n && (this.canUseFreeDocVoucher = await this.canUseVoucher());
|
|
3264
3357
|
},
|
|
3265
3358
|
async canUseVoucher() {
|
|
3266
3359
|
try {
|
|
3267
3360
|
return await U.canUse("freeUserDocs"), !0;
|
|
3268
3361
|
} catch {
|
|
3269
|
-
return
|
|
3362
|
+
return E.setItem("voucher-freeUserDocs-company-id", this.account.CompanyId), !1;
|
|
3270
3363
|
}
|
|
3271
3364
|
},
|
|
3272
3365
|
async useFreeDocsVoucher() {
|
|
3273
3366
|
this.isLoading = !0;
|
|
3274
3367
|
try {
|
|
3275
|
-
await U.post({ code: "freeUserDocs" }),
|
|
3368
|
+
await U.post({ code: "freeUserDocs" }), E.setItem("voucher-freeUserDocs-company-id", this.account.CompanyId), await this.loadCurrentCompany(), ie("success", this.$t("voucherSuccessMessage", { count: this.voucherDocCount })), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade();
|
|
3276
3369
|
} catch (n) {
|
|
3277
|
-
|
|
3370
|
+
D(n);
|
|
3278
3371
|
} finally {
|
|
3279
|
-
this.isLoading = !1;
|
|
3372
|
+
this.isLoading = !1, this.$emit("close");
|
|
3280
3373
|
}
|
|
3281
3374
|
}
|
|
3282
3375
|
}
|
|
3283
3376
|
};
|
|
3284
|
-
var
|
|
3377
|
+
var vt = function() {
|
|
3285
3378
|
var e = this, t = e._self._c;
|
|
3286
3379
|
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 justify-center w-full", 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()]);
|
|
3287
|
-
},
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3380
|
+
}, _t = [], bt = /* @__PURE__ */ d(
|
|
3381
|
+
Ct,
|
|
3382
|
+
vt,
|
|
3383
|
+
_t,
|
|
3291
3384
|
!1,
|
|
3292
3385
|
null,
|
|
3293
3386
|
null,
|
|
3294
3387
|
null,
|
|
3295
3388
|
null
|
|
3296
3389
|
);
|
|
3297
|
-
const
|
|
3390
|
+
const Pt = bt.exports, St = {
|
|
3298
3391
|
i18nOptions: {
|
|
3299
3392
|
namespaces: "personalMessage",
|
|
3300
3393
|
messages: {
|
|
@@ -3308,7 +3401,7 @@ const vt = Ct.exports, bt = {
|
|
|
3308
3401
|
}
|
|
3309
3402
|
}
|
|
3310
3403
|
},
|
|
3311
|
-
name: "
|
|
3404
|
+
name: "PremiumRestrictedPersonalMessage",
|
|
3312
3405
|
components: {
|
|
3313
3406
|
PremiumRestrictedBase: f
|
|
3314
3407
|
},
|
|
@@ -3319,21 +3412,21 @@ const vt = Ct.exports, bt = {
|
|
|
3319
3412
|
}
|
|
3320
3413
|
}
|
|
3321
3414
|
};
|
|
3322
|
-
var
|
|
3415
|
+
var kt = function() {
|
|
3323
3416
|
var e = this, t = e._self._c;
|
|
3324
3417
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3325
|
-
},
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3418
|
+
}, xt = [], wt = /* @__PURE__ */ d(
|
|
3419
|
+
St,
|
|
3420
|
+
kt,
|
|
3421
|
+
xt,
|
|
3329
3422
|
!1,
|
|
3330
3423
|
null,
|
|
3331
3424
|
null,
|
|
3332
3425
|
null,
|
|
3333
3426
|
null
|
|
3334
3427
|
);
|
|
3335
|
-
const
|
|
3336
|
-
const
|
|
3428
|
+
const $t = wt.exports;
|
|
3429
|
+
const Tt = {
|
|
3337
3430
|
i18nOptions: {
|
|
3338
3431
|
namespaces: "licenses",
|
|
3339
3432
|
messages: {
|
|
@@ -3382,14 +3475,14 @@ const xt = {
|
|
|
3382
3475
|
this.initLicense();
|
|
3383
3476
|
},
|
|
3384
3477
|
methods: {
|
|
3385
|
-
|
|
3478
|
+
...$({
|
|
3386
3479
|
loadCurrentCompany: m.DO_LOAD_CURRENT_COMPANY,
|
|
3387
3480
|
loadPrices: m.LOAD_PRICES,
|
|
3388
3481
|
resetStripeForm: m.RESET_STRIPE_FORM,
|
|
3389
3482
|
updateFormValue: m.SET_STRIPE_FORM_VALUE,
|
|
3390
3483
|
submitPlan: m.SUBMIT_FORM_PLAN
|
|
3391
3484
|
}),
|
|
3392
|
-
priceFormat:
|
|
3485
|
+
priceFormat: P,
|
|
3393
3486
|
async initLicense() {
|
|
3394
3487
|
this.subscription.paymentMethod === "stripe" && (await this.loadPrices(), await this.resetStripeForm(), this.updateFormValue({ key: "plan", value: this.currentPlan }));
|
|
3395
3488
|
},
|
|
@@ -3406,7 +3499,7 @@ const xt = {
|
|
|
3406
3499
|
else
|
|
3407
3500
|
throw new Error("Cannot upgrade license as current paymentMethod is not valid");
|
|
3408
3501
|
} catch (t) {
|
|
3409
|
-
|
|
3502
|
+
D(t);
|
|
3410
3503
|
}
|
|
3411
3504
|
e && await n();
|
|
3412
3505
|
},
|
|
@@ -3416,25 +3509,25 @@ const xt = {
|
|
|
3416
3509
|
return await this.loadCurrentCompany(), n;
|
|
3417
3510
|
},
|
|
3418
3511
|
async addInvoiceLicense() {
|
|
3419
|
-
await
|
|
3512
|
+
await se(), await this.loadCurrentCompany();
|
|
3420
3513
|
}
|
|
3421
3514
|
}
|
|
3422
3515
|
};
|
|
3423
|
-
var
|
|
3516
|
+
var Mt = function() {
|
|
3424
3517
|
var e = this, t = e._self._c;
|
|
3425
3518
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade, "action-function": e.doUpgrade } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")]), e.extraPrice && e.extraPrice.amount && e.extraPrice.currency && e.extraPrice.interval ? t("div", { staticClass: "flex justify-between w-full", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "0.5em 1em", "border-radius": "0.5em" }, attrs: { slot: "content" }, slot: "content" }, [t("div", { staticStyle: { "text-align": "left" } }, [t("div", { staticStyle: { "font-weight": "500" }, domProps: { textContent: e._s(e.$t("productTitle")) } }), t("div", { staticStyle: { opacity: "0.75", "font-size": "13px" }, domProps: { textContent: e._s(e.$t("productCost")) } })]), t("div", { staticStyle: { "text-align": "right" } }, [t("div", [e._v(" +" + e._s(e.priceFormat(e.extraPrice.amount, { currency: e.extraPrice.currency })) + " ")]), t("div", { staticStyle: { "font-size": "13px", opacity: "0.7" } }, [e._v(" per " + e._s(e.$t(`_common:${e.extraPrice.interval}`)) + " ")])])]) : e._e()], 2);
|
|
3426
|
-
},
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3519
|
+
}, Et = [], It = /* @__PURE__ */ d(
|
|
3520
|
+
Tt,
|
|
3521
|
+
Mt,
|
|
3522
|
+
Et,
|
|
3430
3523
|
!1,
|
|
3431
3524
|
null,
|
|
3432
3525
|
null,
|
|
3433
3526
|
null,
|
|
3434
3527
|
null
|
|
3435
3528
|
);
|
|
3436
|
-
const
|
|
3437
|
-
const
|
|
3529
|
+
const Lt = It.exports;
|
|
3530
|
+
const Dt = {
|
|
3438
3531
|
i18nOptions: {
|
|
3439
3532
|
namespaces: "licenses",
|
|
3440
3533
|
messages: {
|
|
@@ -3450,7 +3543,7 @@ const Et = {
|
|
|
3450
3543
|
}
|
|
3451
3544
|
}
|
|
3452
3545
|
},
|
|
3453
|
-
name: "
|
|
3546
|
+
name: "PremiumRestrictedCreators",
|
|
3454
3547
|
components: {
|
|
3455
3548
|
PremiumRestrictedBase: f
|
|
3456
3549
|
},
|
|
@@ -3461,20 +3554,20 @@ const Et = {
|
|
|
3461
3554
|
}
|
|
3462
3555
|
}
|
|
3463
3556
|
};
|
|
3464
|
-
var
|
|
3557
|
+
var Rt = function() {
|
|
3465
3558
|
var e = this, t = e._self._c;
|
|
3466
3559
|
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);
|
|
3467
|
-
},
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3560
|
+
}, Bt = [], Ht = /* @__PURE__ */ d(
|
|
3561
|
+
Dt,
|
|
3562
|
+
Rt,
|
|
3563
|
+
Bt,
|
|
3471
3564
|
!1,
|
|
3472
3565
|
null,
|
|
3473
3566
|
null,
|
|
3474
3567
|
null,
|
|
3475
3568
|
null
|
|
3476
3569
|
);
|
|
3477
|
-
const
|
|
3570
|
+
const Ft = Ht.exports, Ut = {
|
|
3478
3571
|
i18nOptions: {
|
|
3479
3572
|
namespaces: "stats",
|
|
3480
3573
|
messages: {
|
|
@@ -3501,20 +3594,20 @@ const Ht = Rt.exports, Dt = {
|
|
|
3501
3594
|
}
|
|
3502
3595
|
}
|
|
3503
3596
|
};
|
|
3504
|
-
var
|
|
3597
|
+
var At = function() {
|
|
3505
3598
|
var e = this, t = e._self._c;
|
|
3506
3599
|
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);
|
|
3507
|
-
},
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3600
|
+
}, Vt = [], Ot = /* @__PURE__ */ d(
|
|
3601
|
+
Ut,
|
|
3602
|
+
At,
|
|
3603
|
+
Vt,
|
|
3511
3604
|
!1,
|
|
3512
3605
|
null,
|
|
3513
3606
|
null,
|
|
3514
3607
|
null,
|
|
3515
3608
|
null
|
|
3516
3609
|
);
|
|
3517
|
-
const
|
|
3610
|
+
const Nt = Ot.exports, zt = {
|
|
3518
3611
|
i18nOptions: {
|
|
3519
3612
|
namespaces: "stats",
|
|
3520
3613
|
messages: {
|
|
@@ -3530,7 +3623,7 @@ const At = Ut.exports, Vt = {
|
|
|
3530
3623
|
}
|
|
3531
3624
|
}
|
|
3532
3625
|
},
|
|
3533
|
-
name: "
|
|
3626
|
+
name: "PremiumRestrictedDocumentBlocks",
|
|
3534
3627
|
components: {
|
|
3535
3628
|
PremiumRestrictedBase: f
|
|
3536
3629
|
},
|
|
@@ -3541,20 +3634,20 @@ const At = Ut.exports, Vt = {
|
|
|
3541
3634
|
}
|
|
3542
3635
|
}
|
|
3543
3636
|
};
|
|
3544
|
-
var
|
|
3637
|
+
var qt = function() {
|
|
3545
3638
|
var e = this, t = e._self._c;
|
|
3546
3639
|
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);
|
|
3547
|
-
},
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3640
|
+
}, Gt = [], jt = /* @__PURE__ */ d(
|
|
3641
|
+
zt,
|
|
3642
|
+
qt,
|
|
3643
|
+
Gt,
|
|
3551
3644
|
!1,
|
|
3552
3645
|
null,
|
|
3553
3646
|
null,
|
|
3554
3647
|
null,
|
|
3555
3648
|
null
|
|
3556
3649
|
);
|
|
3557
|
-
const
|
|
3650
|
+
const Zt = jt.exports, Kt = {
|
|
3558
3651
|
i18nOptions: {
|
|
3559
3652
|
namespaces: "PremiumRestrictedBankIdAndSms",
|
|
3560
3653
|
messages: {
|
|
@@ -3586,40 +3679,40 @@ const qt = zt.exports, Gt = {
|
|
|
3586
3679
|
})
|
|
3587
3680
|
}
|
|
3588
3681
|
};
|
|
3589
|
-
var
|
|
3682
|
+
var Yt = function() {
|
|
3590
3683
|
var e = this, t = e._self._c;
|
|
3591
3684
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title", {
|
|
3592
3685
|
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
|
|
3593
3686
|
}), "sub-title": e.$t("subTitle", {
|
|
3594
3687
|
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:or") : ""
|
|
3595
3688
|
}), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3596
|
-
},
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3689
|
+
}, Wt = [], Xt = /* @__PURE__ */ d(
|
|
3690
|
+
Kt,
|
|
3691
|
+
Yt,
|
|
3692
|
+
Wt,
|
|
3600
3693
|
!1,
|
|
3601
3694
|
null,
|
|
3602
3695
|
null,
|
|
3603
3696
|
null,
|
|
3604
3697
|
null
|
|
3605
3698
|
);
|
|
3606
|
-
const
|
|
3699
|
+
const Qt = Xt.exports, Jt = {
|
|
3607
3700
|
i18nOptions: {
|
|
3608
|
-
namespaces: "
|
|
3701
|
+
namespaces: "PremiumRestrictedUseDocTemplates",
|
|
3609
3702
|
messages: {
|
|
3610
3703
|
sv: {
|
|
3611
|
-
title: "
|
|
3612
|
-
subTitle: "För att använda
|
|
3704
|
+
title: "Använd dokumentmallar",
|
|
3705
|
+
subTitle: "För att använda dokumentmallar behöver du uppgradera till ett betalkonto.",
|
|
3613
3706
|
actionText: "Uppgradera konto"
|
|
3614
3707
|
},
|
|
3615
3708
|
en: {
|
|
3616
|
-
title: "
|
|
3617
|
-
subTitle: "To use
|
|
3709
|
+
title: "Use document templates",
|
|
3710
|
+
subTitle: "To use document templates you need to upgrade to a paid plan.",
|
|
3618
3711
|
actionText: "Upgrade my plan"
|
|
3619
3712
|
}
|
|
3620
3713
|
}
|
|
3621
3714
|
},
|
|
3622
|
-
name: "
|
|
3715
|
+
name: "PremiumRestrictedUseDocTemplates",
|
|
3623
3716
|
components: {
|
|
3624
3717
|
PremiumRestrictedBase: f
|
|
3625
3718
|
},
|
|
@@ -3630,31 +3723,72 @@ const Yt = Kt.exports, Wt = {
|
|
|
3630
3723
|
}
|
|
3631
3724
|
}
|
|
3632
3725
|
};
|
|
3633
|
-
var
|
|
3726
|
+
var en = function() {
|
|
3634
3727
|
var e = this, t = e._self._c;
|
|
3635
3728
|
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);
|
|
3636
|
-
},
|
|
3637
|
-
Wt,
|
|
3638
|
-
Xt,
|
|
3729
|
+
}, tn = [], nn = /* @__PURE__ */ d(
|
|
3639
3730
|
Jt,
|
|
3731
|
+
en,
|
|
3732
|
+
tn,
|
|
3640
3733
|
!1,
|
|
3641
3734
|
null,
|
|
3642
3735
|
null,
|
|
3643
3736
|
null,
|
|
3644
3737
|
null
|
|
3645
3738
|
);
|
|
3646
|
-
const
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3739
|
+
const an = nn.exports, rn = {
|
|
3740
|
+
i18nOptions: {
|
|
3741
|
+
namespaces: "PremiumRestrictedEditDocumentLayout",
|
|
3742
|
+
messages: {
|
|
3743
|
+
sv: {
|
|
3744
|
+
title: "Spara dokumentmall",
|
|
3745
|
+
subTitle: "För att spara en dokumentmall behöver du uppgradera till ett betalkonto.",
|
|
3746
|
+
actionText: "Uppgradera konto"
|
|
3747
|
+
},
|
|
3748
|
+
en: {
|
|
3749
|
+
title: "Save document template",
|
|
3750
|
+
subTitle: "To save a document template you need to upgrade to a paid plan.",
|
|
3751
|
+
actionText: "Upgrade my plan"
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
name: "PremiumRestrictedSaveDocTemplate",
|
|
3756
|
+
components: {
|
|
3757
|
+
PremiumRestrictedBase: f
|
|
3758
|
+
},
|
|
3759
|
+
props: {
|
|
3760
|
+
onUpgrade: {
|
|
3761
|
+
type: Function,
|
|
3762
|
+
default: null
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
};
|
|
3766
|
+
var sn = function() {
|
|
3767
|
+
var e = this, t = e._self._c;
|
|
3768
|
+
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);
|
|
3769
|
+
}, on = [], ln = /* @__PURE__ */ d(
|
|
3770
|
+
rn,
|
|
3771
|
+
sn,
|
|
3772
|
+
on,
|
|
3773
|
+
!1,
|
|
3774
|
+
null,
|
|
3775
|
+
null,
|
|
3776
|
+
null,
|
|
3777
|
+
null
|
|
3778
|
+
);
|
|
3779
|
+
const cn = ln.exports, I = {
|
|
3780
|
+
winProfile: mt,
|
|
3781
|
+
templates: yt,
|
|
3782
|
+
documents: Pt,
|
|
3783
|
+
personalMessage: $t,
|
|
3784
|
+
licenses: Lt,
|
|
3785
|
+
inviteCreators: Ft,
|
|
3786
|
+
stats: Nt,
|
|
3787
|
+
documentBlocks: Zt,
|
|
3788
|
+
bankIdAndSms: Qt,
|
|
3789
|
+
useDocTemplate: an,
|
|
3790
|
+
saveDocTemplate: cn
|
|
3791
|
+
}, un = {
|
|
3658
3792
|
name: "IsPremiumPreStep",
|
|
3659
3793
|
props: {
|
|
3660
3794
|
feature: {
|
|
@@ -3665,7 +3799,7 @@ const en = Qt.exports, I = {
|
|
|
3665
3799
|
},
|
|
3666
3800
|
computed: {
|
|
3667
3801
|
modalName() {
|
|
3668
|
-
return I[this.feature] ? I[this.feature] : (
|
|
3802
|
+
return I[this.feature] ? I[this.feature] : (oe.error("Missing IsPremiumPreStep component name"), null);
|
|
3669
3803
|
}
|
|
3670
3804
|
},
|
|
3671
3805
|
methods: {
|
|
@@ -3691,25 +3825,25 @@ const en = Qt.exports, I = {
|
|
|
3691
3825
|
onClick: this.onClick
|
|
3692
3826
|
}) : {};
|
|
3693
3827
|
}
|
|
3694
|
-
},
|
|
3695
|
-
var
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3828
|
+
}, dn = null, mn = null;
|
|
3829
|
+
var pn = /* @__PURE__ */ d(
|
|
3830
|
+
un,
|
|
3831
|
+
dn,
|
|
3832
|
+
mn,
|
|
3699
3833
|
!1,
|
|
3700
3834
|
null,
|
|
3701
3835
|
null,
|
|
3702
3836
|
null,
|
|
3703
3837
|
null
|
|
3704
3838
|
);
|
|
3705
|
-
const
|
|
3839
|
+
const Pn = pn.exports;
|
|
3706
3840
|
export {
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3841
|
+
at as C,
|
|
3842
|
+
Pn as I,
|
|
3843
|
+
Ze as P,
|
|
3844
|
+
Qe as a,
|
|
3711
3845
|
G as b,
|
|
3712
|
-
|
|
3713
|
-
|
|
3846
|
+
Re as c,
|
|
3847
|
+
x as r,
|
|
3714
3848
|
He as s
|
|
3715
3849
|
};
|