@cling-se/widget 0.9.14 → 0.9.16
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-a6803b1d.js → AddClientCallout-1348821d.js} +5 -5
- package/dist/{AnswerModal-71e1ec1c.js → AnswerModal-73bfc112.js} +244 -239
- package/dist/{AttachmentItem-f416ae47.js → AttachmentItem-1b9e1170.js} +3 -3
- package/dist/{BaseDatePicker-72f5722d.js → BaseDatePicker-1e3422da.js} +1 -1
- package/dist/{BaseInput-431750bd.js → BaseInput-70aa2f9d.js} +1 -1
- package/dist/{BaseUpload-3fe41796.js → BaseUpload-27cbe3b2.js} +2 -2
- package/dist/{BlockMedia-f249e3b5.js → BlockMedia-0f41fb43.js} +1 -1
- package/dist/{CCallout-61f77d70.js → CCallout-faf80dfb.js} +2 -2
- package/dist/{CDropdownItem-7eff8418.js → CDropdownItem-13f6bf72.js} +1 -1
- package/dist/{CField-8cdc83ce.js → CField-1aa7c4ab.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-d042d835.js → CSlider.vue_vue_type_style_index_0_lang-879e8c05.js} +1 -1
- package/dist/{ClientAutocomplete-f81b6da6.js → ClientAutocomplete-94a42966.js} +2 -2
- package/dist/{ClientModal-2c757562.js → ClientModal-b3ec6c4e.js} +4 -4
- package/dist/{ColorPicker-da94c878.js → ColorPicker-debcfab1.js} +1 -1
- package/dist/{CompanyModal-d4436599.js → CompanyModal-8cf32258.js} +3 -3
- package/dist/{ContentWrapper-3ea6d128.js → ContentWrapper-c0a17123.js} +15 -14
- package/dist/{CoverBlockSettings-906d3cfe.js → CoverBlockSettings-0b289e31.js} +8 -8
- package/dist/{DocAnswer-a84e76db.js → DocAnswer-91248c64.js} +4 -4
- package/dist/{DocForm-b76ac915.js → DocForm-91ae8830.js} +31 -31
- package/dist/{DocFormSend-2ba64b4e.js → DocFormSend-0288bd11.js} +17 -17
- package/dist/{DocLinks-e85cc84a.js → DocLinks-0b74ba52.js} +2 -2
- package/dist/{DocModalBase-8243406e.js → DocModalBase-04a8975b.js} +1 -1
- package/dist/{DocPrint-8200bbb1.js → DocPrint-f4f49825.js} +1 -1
- package/dist/{DocReceipt-4a85a7ff.js → DocReceipt-7f49dbc7.js} +1 -1
- package/dist/{DocSendReminder-84862964.js → DocSendReminder-3059f0b3.js} +1 -1
- package/dist/{DocTextEditor-f6f5d22b.js → DocTextEditor-570f3d62.js} +1415 -1402
- package/dist/{DocTimeline-842bb019.js → DocTimeline-fe15c761.js} +1 -1
- package/dist/{DocumentClient-ccf33079.js → DocumentClient-685c2a72.js} +6 -6
- package/dist/{DocumentLayout-0b5138ff.js → DocumentLayout-1222a5f8.js} +3 -3
- package/dist/{DocumentLogotype-c3347ad9.js → DocumentLogotype-b12feaae.js} +3 -3
- package/dist/{EmbedInput-eef02390.js → EmbedInput-a1b00bd5.js} +2 -2
- package/dist/{EmbedSettings-bd64156d.js → EmbedSettings-33a765a6.js} +3 -3
- package/dist/{ErrorCallout-bce1d8d5.js → ErrorCallout-d7d78926.js} +1 -1
- package/dist/{FilePreviewModal-7835083e.js → FilePreviewModal-877e5aaa.js} +5 -5
- package/dist/{HeaderSettings-fa02c3b4.js → HeaderSettings-1b8d8783.js} +16 -16
- package/dist/{ImageSelectModal-ee8c9284.js → ImageSelectModal-7e612643.js} +9 -9
- package/dist/{ImageUploadWrapper-fdc46e10.js → ImageUploadWrapper-2e6b3682.js} +2 -2
- package/dist/{Index-8a0c2725.js → Index-05492736.js} +4 -4
- package/dist/{Index-b9d73d15.js → Index-0d051f12.js} +25 -25
- package/dist/{Index-9e1a642a.js → Index-11d14c4d.js} +15 -14
- package/dist/{Index-110c0f5c.js → Index-2e71665d.js} +4 -4
- package/dist/{Index-f24190cc.js → Index-2f94216d.js} +8 -8
- package/dist/{Index-652d7e86.js → Index-3bfb3895.js} +1 -1
- package/dist/{Index-361d8f26.js → Index-3e7e4c33.js} +2 -2
- package/dist/{Index-0ab509d5.js → Index-4559e60b.js} +5 -5
- package/dist/{Index-e3cace76.js → Index-479a4f5c.js} +3 -3
- package/dist/{Index-8d78852a.js → Index-5003d8a4.js} +2 -2
- package/dist/{Index-95aaf122.js → Index-52da7dd1.js} +6 -6
- package/dist/{Index-77a78d15.js → Index-674572ab.js} +4 -4
- package/dist/{Index-f79e03bb.js → Index-6f9f3222.js} +5 -5
- package/dist/{Index-94f0221f.js → Index-83603328.js} +4 -4
- package/dist/{Index-6194280d.js → Index-83cd3513.js} +12 -11
- package/dist/{Index-71ee8ebd.js → Index-887a4e3b.js} +3 -3
- package/dist/{Index-e9b0af2d.js → Index-92444604.js} +4 -4
- package/dist/{Index-8890c55f.js → Index-96cc92d3.js} +16 -15
- package/dist/{Index-58109821.js → Index-9d7a87a2.js} +2 -2
- package/dist/{Index-316d9ece.js → Index-ab7ee5cf.js} +4 -4
- package/dist/{Index-d3426b0b.js → Index-abb05d61.js} +6 -6
- package/dist/{Index-a97989ac.js → Index-bf2851ea.js} +2 -2
- package/dist/{Index-514fb64f.js → Index-bff6cda5.js} +1 -1
- package/dist/{Index-7a8c5603.js → Index-c4c942a3.js} +2 -2
- package/dist/{Index-4409ecc5.js → Index-ca877625.js} +6 -6
- package/dist/{Index-4e722302.js → Index-cdd643d6.js} +8 -8
- package/dist/{Index-4684c65d.js → Index-d62e8abf.js} +2 -2
- package/dist/{Index-d1325e8f.js → Index-dff23f41.js} +4 -4
- package/dist/{Index-8c3e783e.js → Index-e7a49ef5.js} +4 -4
- package/dist/{Index-38391a79.js → Index-e87eac2e.js} +2 -2
- package/dist/{Index-79f82168.js → Index-edb47e7d.js} +4 -4
- package/dist/{Index-cea163a2.js → Index-f0ea6d6a.js} +15 -14
- package/dist/{Index-ff5a89f0.js → Index-f2fde02f.js} +5 -5
- package/dist/{Index-89588fde.js → Index-f450c453.js} +9 -9
- package/dist/{InputToggleRow-7fc88908.js → InputToggleRow-ff428de1.js} +1 -1
- package/dist/{IsPremiumPreStep-62401338.js → IsPremiumPreStep-4bc3a874.js} +197 -180
- package/dist/{ManualPopover-0476a776.js → ManualPopover-fdad805a.js} +1 -1
- package/dist/{MediaWrapper-7de4d3eb.js → MediaWrapper-10405a28.js} +3 -3
- package/dist/{NotBindingText-ffe487e6.js → NotBindingText-eab4529c.js} +2 -2
- package/dist/{PackageGroup-f0b25406.js → PackageGroup-50b4428c.js} +14 -13
- package/dist/{PdfTerms-91beba8c.js → PdfTerms-81256394.js} +5 -5
- package/dist/{PdfViewer-46d1a38c.js → PdfViewer-10150d1b.js} +3 -3
- package/dist/{PlainHtml-e8104d32.js → PlainHtml-57b8ec60.js} +1 -1
- package/dist/{PriceHeader-916cdc9a.js → PriceHeader-70427a56.js} +13 -13
- package/dist/{SearchApi-8efb3d0b.js → SearchApi-c81405a8.js} +2 -2
- package/dist/{Setup-9f28f773.js → Setup-438b2554.js} +1 -1
- package/dist/{TermsSettings-a709e571.js → TermsSettings-0ad9987a.js} +6 -6
- package/dist/{ThemeColorRow-23f560f7.js → ThemeColorRow-178c3b34.js} +3 -3
- package/dist/{ToggleBinding-ea12882f.js → ToggleBinding-63c41c8f.js} +3 -3
- package/dist/{UploadModal-b9785d42.js → UploadModal-859233e4.js} +3 -3
- package/dist/{VideoPlayerInput-c139e07a.js → VideoPlayerInput-73ac34db.js} +3 -3
- package/dist/{VideoPlayerSettings-1362d6f5.js → VideoPlayerSettings-c60fb8dc.js} +4 -4
- package/dist/{VideoSelectModal-a0501d67.js → VideoSelectModal-5358f138.js} +8 -8
- package/dist/{answerDocumentMixin-e448478a.js → answerDocumentMixin-69b88088.js} +3 -3
- package/dist/{cssMode-a748df72.js → cssMode-59194949.js} +7 -7
- package/dist/dom-d4731032.js +68 -0
- package/dist/{focusDrawerMixin-3d6dccd3.js → focusDrawerMixin-188ef585.js} +1 -1
- package/dist/{formComponentsInstall-23e4be0a.js → formComponentsInstall-12195b8b.js} +12 -12
- package/dist/{formValidationMixin-75ac30a4.js → formValidationMixin-e54b71c9.js} +2 -2
- package/dist/{freemarker2-e5d901d6.js → freemarker2-3008b375.js} +7 -7
- package/dist/{handlebars-bb947f49.js → handlebars-fa9ab08d.js} +7 -7
- package/dist/{html-83e08e1c.js → html-d5653fb5.js} +7 -7
- package/dist/{htmlMode-c6ffd393.js → htmlMode-788d6ef2.js} +7 -7
- package/dist/{image-5f9f36b5.js → image-4270bed4.js} +1 -1
- package/dist/{index-58bfded8.js → index-0265dfbd.js} +4 -4
- package/dist/{index-f0521a5f.js → index-79df8dcf.js} +5 -5
- package/dist/{index-0e4e6529.js → index-bed8fb27.js} +1 -1
- package/dist/{index-468da570.js → index-c48b4b2a.js} +2 -2
- package/dist/{index-e6a04cef.js → index-cd29b3be.js} +11 -10
- package/dist/{index-a65761df.js → index-df5fd2b2.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +431 -431
- package/dist/{javascript-f784800f.js → javascript-553c3953.js} +8 -8
- package/dist/{jsonMode-9fcd41c5.js → jsonMode-c7ab0d1f.js} +7 -7
- package/dist/{liquid-7433cbb8.js → liquid-9e71ef49.js} +7 -7
- package/dist/{main-27338bdb.js → main-9e6f1eed.js} +16 -16
- package/dist/{mapFormMixin-08858c9b.js → mapFormMixin-afafb1fa.js} +1 -1
- package/dist/{publicSenderState-555493ea.js → publicSenderState-994a5c48.js} +1 -1
- package/dist/{python-1f5cdaaf.js → python-c3ceee79.js} +7 -7
- package/dist/{razor-c6de0365.js → razor-5c5d60a9.js} +7 -7
- package/dist/{simplebar.min-4701bd2d.js → simplebar.min-2c8e9500.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-4a9f537a.js → template-35be25a1.js} +1 -1
- package/dist/{throttle-c9487ab5.js → throttle-0e8ac006.js} +2 -2
- package/dist/{tinycolor-bf607154.js → tinycolor-e0dc7ddf.js} +1 -1
- package/dist/{tippy.esm-b5d60518.js → tippy.esm-112598e3.js} +5 -5
- package/dist/{tsMode-6d5d0e5e.js → tsMode-26e458da.js} +7 -7
- package/dist/{typescript-8e88020b.js → typescript-152aeb18.js} +7 -7
- package/dist/{utils-86f144bc.js → utils-3acdacf6.js} +1 -1
- package/dist/{vuedraggable.umd-66db3099.js → vuedraggable.umd-9543559a.js} +1 -1
- package/dist/{xml-95bc7065.js → xml-9806bd44.js} +7 -7
- package/package.json +1 -1
- package/dist/dom-068d1a7b.js +0 -59
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as h, a4 as L, au as
|
|
2
|
-
import { m as v, a as w, b as
|
|
1
|
+
import { c as h, a4 as L, au as D, b as C, av as T, aw as K, ax as Y, ay as W, az as X, V as B, aA as J, aB as Q, n as d, s as _, ae as y, aC as ee, g as m, aD as b, aE as te, aF as ne, aG as F, p as ae, h as R, I as M, aH as U, H as re, aI as ie, ak as se } from "./main-9e6f1eed.js";
|
|
2
|
+
import { m as v, a as w, b as oe } from "./vuex.esm-4a0fff7c.js";
|
|
3
3
|
import { a as u } from "./anime.es-e284c852.js";
|
|
4
|
-
import { g as E } from "./image-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { g as E } from "./image-4270bed4.js";
|
|
5
|
+
import "./index-df5fd2b2.js";
|
|
6
6
|
import { v as S } from "./index-805c56e4.js";
|
|
7
7
|
const k = {
|
|
8
8
|
AD: {
|
|
@@ -1250,28 +1250,28 @@ const k = {
|
|
|
1250
1250
|
callingCode: "+263",
|
|
1251
1251
|
currency: "USD"
|
|
1252
1252
|
}
|
|
1253
|
-
},
|
|
1253
|
+
}, le = (n) => {
|
|
1254
1254
|
if (document.getElementById("stripe-js"))
|
|
1255
1255
|
return n();
|
|
1256
1256
|
const e = "js.stripe.com/v3/", t = document.createElement("script"), a = document.getElementsByTagName("script")[0];
|
|
1257
1257
|
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
|
-
}, ce = () =>
|
|
1258
|
+
}, ce = () => le(() => {
|
|
1259
1259
|
window.$stripe = Stripe(h.stripe.publishableKey, { locale: L.lang || "en" });
|
|
1260
1260
|
});
|
|
1261
1261
|
ce();
|
|
1262
|
-
const
|
|
1262
|
+
const ue = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), de = "stripe", {
|
|
1263
1263
|
LOAD_PRICES: A,
|
|
1264
|
-
RESET_STRIPE_FORM:
|
|
1265
|
-
SET_STRIPE_FORM_VALUE:
|
|
1264
|
+
RESET_STRIPE_FORM: me,
|
|
1265
|
+
SET_STRIPE_FORM_VALUE: pe,
|
|
1266
1266
|
SET_FORM_PROMOTION: V,
|
|
1267
|
-
SUBMIT_PROMOTION_CODE:
|
|
1267
|
+
SUBMIT_PROMOTION_CODE: ge,
|
|
1268
1268
|
SUBMIT_PAYMENT_METHOD: O,
|
|
1269
|
-
SUBMIT_FORM_PLAN:
|
|
1270
|
-
REMOVE_SUBSCRIPTION_ITEM:
|
|
1269
|
+
SUBMIT_FORM_PLAN: he,
|
|
1270
|
+
REMOVE_SUBSCRIPTION_ITEM: ye,
|
|
1271
1271
|
CONFIRM_PAYMENT: N,
|
|
1272
1272
|
SUBMIT_FORM_PAYMENT: x,
|
|
1273
|
-
SUBMIT_FORM_PRODUCTS:
|
|
1274
|
-
} =
|
|
1273
|
+
SUBMIT_FORM_PRODUCTS: fe
|
|
1274
|
+
} = Q, z = {
|
|
1275
1275
|
// The term "plan" refers to a _price_ connected to a _product_ with metadata.accountType
|
|
1276
1276
|
plan: { accountType: "pro", interval: "month", quantity: 1 },
|
|
1277
1277
|
customer: { name: "", email: "", region: null },
|
|
@@ -1297,7 +1297,7 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1297
1297
|
base: { month: null, year: null },
|
|
1298
1298
|
pro: { month: null, year: null }
|
|
1299
1299
|
},
|
|
1300
|
-
form:
|
|
1300
|
+
form: D(z)
|
|
1301
1301
|
},
|
|
1302
1302
|
getters: {
|
|
1303
1303
|
isPosting: ({ isPosting: n }) => n,
|
|
@@ -1390,7 +1390,7 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1390
1390
|
* @returns {Object} Price obj on format { intervals: {}, currency }
|
|
1391
1391
|
*/
|
|
1392
1392
|
formPrices: (n, e) => {
|
|
1393
|
-
function t(i, s,
|
|
1393
|
+
function t(i, s, l) {
|
|
1394
1394
|
const o = i;
|
|
1395
1395
|
return (!o.intervals[s] || !Object.keys(o.intervals[s]).length) && (o.intervals[s] = {
|
|
1396
1396
|
subTotalBeforeDiscount: 0,
|
|
@@ -1398,8 +1398,8 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1398
1398
|
subTotal: 0,
|
|
1399
1399
|
totalAmount: 0,
|
|
1400
1400
|
items: []
|
|
1401
|
-
}), Object.keys(
|
|
1402
|
-
Array.isArray(c
|
|
1401
|
+
}), Object.keys(l).forEach((c) => {
|
|
1402
|
+
Array.isArray(l[c]) ? o.intervals[s][c] = o.intervals[s][c].concat(l[c]) : o.intervals[s][c] += l[c];
|
|
1403
1403
|
}), o;
|
|
1404
1404
|
}
|
|
1405
1405
|
let a = {
|
|
@@ -1410,11 +1410,11 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1410
1410
|
const i = (e.formPlan.amount || 0) * e.formPlan.quantity;
|
|
1411
1411
|
let s = i;
|
|
1412
1412
|
e.formPromotion && (e.formPromotion.amountOff ? s -= e.formPromotion.amountOff : e.formPromotion.percentOff && (s *= 1 - e.formPromotion.percentOff / 100));
|
|
1413
|
-
const
|
|
1413
|
+
const l = s * (q[e.formCustomer.region] || 0), o = s + l;
|
|
1414
1414
|
a = t(a, e.formPlan.interval, {
|
|
1415
1415
|
subTotalBeforeDiscount: i,
|
|
1416
1416
|
subTotal: s,
|
|
1417
|
-
vatAmount:
|
|
1417
|
+
vatAmount: l,
|
|
1418
1418
|
totalAmount: o,
|
|
1419
1419
|
items: [{
|
|
1420
1420
|
name: e.formPlan.accountType,
|
|
@@ -1426,15 +1426,15 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1426
1426
|
return r(), e.formProducts.forEach((i) => {
|
|
1427
1427
|
const s = e.priceById(i.stripePriceStripeId);
|
|
1428
1428
|
if (s) {
|
|
1429
|
-
let
|
|
1430
|
-
s.usageType === "one_time" && (
|
|
1429
|
+
let l = s.interval;
|
|
1430
|
+
s.usageType === "one_time" && (l = "oneOff");
|
|
1431
1431
|
const o = s.amount * i.quantity;
|
|
1432
|
-
let
|
|
1433
|
-
e.formPromotion && (e.formPromotion.amountOff ?
|
|
1434
|
-
const p =
|
|
1435
|
-
a = t(a,
|
|
1432
|
+
let c = o;
|
|
1433
|
+
e.formPromotion && (e.formPromotion.amountOff ? c -= e.formPromotion.amountOff : e.formPromotion.percentOff && (c *= 1 - e.formPromotion.percentOff / 100));
|
|
1434
|
+
const p = c * (q[e.formCustomer.region] || 0), g = c + p;
|
|
1435
|
+
a = t(a, l, {
|
|
1436
1436
|
subTotalBeforeDiscount: o,
|
|
1437
|
-
subTotal:
|
|
1437
|
+
subTotal: c,
|
|
1438
1438
|
vatAmount: p,
|
|
1439
1439
|
totalAmount: g,
|
|
1440
1440
|
items: [{
|
|
@@ -1455,17 +1455,17 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1455
1455
|
n("setPrices", { data: e }), n("setActivePriceMap");
|
|
1456
1456
|
} catch (e) {
|
|
1457
1457
|
this.handleError(e, {
|
|
1458
|
-
action: `${
|
|
1458
|
+
action: `${de}/${A}`,
|
|
1459
1459
|
actionPayload: null
|
|
1460
1460
|
});
|
|
1461
1461
|
} finally {
|
|
1462
1462
|
n("setFetching", !1);
|
|
1463
1463
|
}
|
|
1464
1464
|
},
|
|
1465
|
-
async [
|
|
1466
|
-
n("setForm",
|
|
1465
|
+
async [me]({ commit: n }) {
|
|
1466
|
+
n("setForm", D(z));
|
|
1467
1467
|
},
|
|
1468
|
-
async [
|
|
1468
|
+
async [pe]({ commit: n }, { key: e, value: t }) {
|
|
1469
1469
|
n("setFormValue", { key: e, value: t });
|
|
1470
1470
|
},
|
|
1471
1471
|
[V]({ commit: n, getters: e }, { promotionDetails: t, code: a = null } = {}) {
|
|
@@ -1474,12 +1474,12 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1474
1474
|
const { appliesToStripeProductIds: r } = t, { stripeProductId: i } = e.formPlan || {};
|
|
1475
1475
|
return Array.isArray(r) && !r.includes(i) ? !1 : (n("setFormValue", { key: "promotion", value: { ...t, code: a } }), !0);
|
|
1476
1476
|
},
|
|
1477
|
-
async [
|
|
1477
|
+
async [ge]({ commit: n, getters: e, dispatch: t }, a) {
|
|
1478
1478
|
try {
|
|
1479
1479
|
if (e.isPosting || !a)
|
|
1480
1480
|
return !1;
|
|
1481
1481
|
n("setPosting", !0);
|
|
1482
|
-
const { data: r } = await
|
|
1482
|
+
const { data: r } = await K(a);
|
|
1483
1483
|
return t(V, { promotionDetails: r, code: a });
|
|
1484
1484
|
} catch {
|
|
1485
1485
|
return !1;
|
|
@@ -1499,8 +1499,8 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1499
1499
|
const { paymentMethod: a = {}, error: r } = await t.createPaymentMethod("card", e);
|
|
1500
1500
|
if (r)
|
|
1501
1501
|
throw new Error(r.message || "Card Error");
|
|
1502
|
-
const { id: i } = a, { last4: s, brand:
|
|
1503
|
-
return { id: i, last4: s, brand:
|
|
1502
|
+
const { id: i } = a, { last4: s, brand: l } = a.card || {};
|
|
1503
|
+
return { id: i, last4: s, brand: l };
|
|
1504
1504
|
} catch (a) {
|
|
1505
1505
|
return this.handleError(a), null;
|
|
1506
1506
|
} finally {
|
|
@@ -1518,28 +1518,28 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1518
1518
|
async [x]({ commit: n, getters: e, dispatch: t }, { form: a, stripe: { cardElement: r } = {}, removeUnusedItems: i = !0 } = {}) {
|
|
1519
1519
|
try {
|
|
1520
1520
|
n("setPosting", !0), n("setFormValue", { key: "error", value: null });
|
|
1521
|
-
const { items: s } = a, { formCustomer:
|
|
1521
|
+
const { items: s } = a, { formCustomer: l, formPromotion: o, customer: c, formDealSource: p } = e;
|
|
1522
1522
|
let g;
|
|
1523
1523
|
r && (g = await t(O, { cardElement: r }));
|
|
1524
|
-
const P = { ...
|
|
1524
|
+
const P = { ...l, items: s };
|
|
1525
1525
|
g && (P.paymentMethod = g), o && o.code && (P.promotionCode = o.code), p && (P.dealSource = p);
|
|
1526
|
-
const { data:
|
|
1527
|
-
return $ && $.length &&
|
|
1526
|
+
const { data: j = {} } = await T.product(P, { removeUnusedItems: i }), { clientSecrets: $ } = j, H = g && g.id ? g.id : c && c.paymentMethodId;
|
|
1527
|
+
return $ && $.length && H ? await t(N, { clientSecrets: $, paymentMethodId: H }) : !0;
|
|
1528
1528
|
} catch (s) {
|
|
1529
1529
|
this.handleError(s);
|
|
1530
|
-
const
|
|
1531
|
-
return n("setFormValue", { key: "error", value:
|
|
1530
|
+
const l = (s.errorCode ? ue(s.errorCode) : "") || s.message;
|
|
1531
|
+
return n("setFormValue", { key: "error", value: l || "Submit Form Payment Error" }), !1;
|
|
1532
1532
|
} finally {
|
|
1533
1533
|
n("setPosting", !1);
|
|
1534
1534
|
}
|
|
1535
1535
|
},
|
|
1536
|
-
async [
|
|
1536
|
+
async [he]({ commit: n, dispatch: e, getters: t }, { cardElement: a } = {}) {
|
|
1537
1537
|
try {
|
|
1538
|
-
const { formPlan: r, formProducts: i, products: s, subscriptionItems:
|
|
1538
|
+
const { formPlan: r, formProducts: i, products: s, subscriptionItems: l } = t;
|
|
1539
1539
|
if (!r)
|
|
1540
1540
|
return !1;
|
|
1541
|
-
const o = [...
|
|
1542
|
-
return
|
|
1541
|
+
const o = [...l], c = o.findIndex((p) => C(s[p.stripeProductStripeId], "metadata.accountType"));
|
|
1542
|
+
return c !== -1 && o.splice(c, 1), o.push({
|
|
1543
1543
|
stripePriceStripeId: r.stripeId,
|
|
1544
1544
|
stripeProductStripeId: r.stripeProductId,
|
|
1545
1545
|
quantity: r.quantity
|
|
@@ -1548,7 +1548,7 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1548
1548
|
return this.handleError(r), n("setFormValue", { key: "error", value: r.message || "Submit Plan Error" }), !1;
|
|
1549
1549
|
}
|
|
1550
1550
|
},
|
|
1551
|
-
async [
|
|
1551
|
+
async [fe]({ commit: n, dispatch: e, getters: t }, { cardElement: a, removeUnusedItems: r = !0 } = {}) {
|
|
1552
1552
|
try {
|
|
1553
1553
|
const { formProducts: i } = t, s = [...i];
|
|
1554
1554
|
return s.length ? await e(x, { form: { items: s }, stripe: { cardElement: a }, removeUnusedItems: r }) : !1;
|
|
@@ -1576,8 +1576,8 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1576
1576
|
throw new Error("Param clientSecrets needs to be an array");
|
|
1577
1577
|
return await e.reduce(async (i, s) => {
|
|
1578
1578
|
await i;
|
|
1579
|
-
const { paymentIntent:
|
|
1580
|
-
return o ? (o.message && n("setFormValue", { key: "error", value: o.message }), await T.cancelAll({ immediately: !0, status: "incomplete" }), !1) :
|
|
1579
|
+
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 T.cancelAll({ immediately: !0, status: "incomplete" }), !1) : l && l.status === "succeeded";
|
|
1581
1581
|
}, Promise.resolve());
|
|
1582
1582
|
} catch (r) {
|
|
1583
1583
|
return this.handleError(r), !1;
|
|
@@ -1591,7 +1591,7 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1591
1591
|
* @param {String} obj.stripePriceStripeId priceId to remove
|
|
1592
1592
|
* @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
|
|
1593
1593
|
*/
|
|
1594
|
-
async [
|
|
1594
|
+
async [ye]({ commit: n, dispatch: e, getters: t }, { stripePriceStripeId: a }) {
|
|
1595
1595
|
try {
|
|
1596
1596
|
if (!a)
|
|
1597
1597
|
throw new Error("Missing parameter stripePriceStripeId");
|
|
@@ -1620,8 +1620,8 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1620
1620
|
setPrices: (n, { data: e = [] }) => {
|
|
1621
1621
|
if (typeof e != "object")
|
|
1622
1622
|
throw Error("Data must be a priceItem or array of priceItems!");
|
|
1623
|
-
const t = Array.isArray(e) ? e : [e], { ids: a, values: r } =
|
|
1624
|
-
|
|
1623
|
+
const t = Array.isArray(e) ? e : [e], { ids: a, values: r } = Y(t, { keyId: "stripeId" });
|
|
1624
|
+
W(n.prices, r), n.priceIds = X([...a, ...n.priceIds]);
|
|
1625
1625
|
},
|
|
1626
1626
|
setActivePriceMap: ({ prices: n, activePriceMap: e }) => Object.keys(n).forEach((t) => {
|
|
1627
1627
|
const a = n[t], r = C(a, "StripeProduct.metadata.accountType");
|
|
@@ -1632,12 +1632,12 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
|
|
|
1632
1632
|
B.set(n, "form", e);
|
|
1633
1633
|
},
|
|
1634
1634
|
setFormValue: (n, { key: e, value: t }) => {
|
|
1635
|
-
const { root: a, prop: r } =
|
|
1635
|
+
const { root: a, prop: r } = J(n, `form.${e}`);
|
|
1636
1636
|
B.set(a, r, t);
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
|
-
const
|
|
1640
|
+
const Ce = {
|
|
1641
1641
|
props: {
|
|
1642
1642
|
colors: {
|
|
1643
1643
|
type: Array,
|
|
@@ -1745,24 +1745,24 @@ const fe = {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
1747
|
};
|
|
1748
|
-
var
|
|
1748
|
+
var ve = function() {
|
|
1749
1749
|
var e = this;
|
|
1750
1750
|
return e._self._c, e._m(0);
|
|
1751
|
-
},
|
|
1751
|
+
}, be = [function() {
|
|
1752
1752
|
var n = this, e = n._self._c;
|
|
1753
1753
|
return e("div", [e("canvas", { attrs: { id: "fireworks" } })]);
|
|
1754
|
-
}],
|
|
1755
|
-
fe,
|
|
1754
|
+
}], _e = /* @__PURE__ */ d(
|
|
1756
1755
|
Ce,
|
|
1757
1756
|
ve,
|
|
1757
|
+
be,
|
|
1758
1758
|
!1,
|
|
1759
1759
|
null,
|
|
1760
1760
|
"1254a889",
|
|
1761
1761
|
null,
|
|
1762
1762
|
null
|
|
1763
1763
|
);
|
|
1764
|
-
const
|
|
1765
|
-
const
|
|
1764
|
+
const Pe = _e.exports;
|
|
1765
|
+
const Se = {
|
|
1766
1766
|
name: "PremiumStripeSelect",
|
|
1767
1767
|
i18nOptions: {
|
|
1768
1768
|
namespaces: "PremiumStripeSelect",
|
|
@@ -1837,7 +1837,7 @@ const Pe = {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
1839
|
};
|
|
1840
|
-
var
|
|
1840
|
+
var ke = function() {
|
|
1841
1841
|
var e = this, t = e._self._c;
|
|
1842
1842
|
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
1843
|
"month",
|
|
@@ -1859,18 +1859,18 @@ var Se = function() {
|
|
|
1859
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) {
|
|
1860
1860
|
return e.$emit("next");
|
|
1861
1861
|
} } }, [e._v(e._s(e.$t("continueButton")))])], 1);
|
|
1862
|
-
},
|
|
1863
|
-
Pe,
|
|
1862
|
+
}, xe = [], we = /* @__PURE__ */ d(
|
|
1864
1863
|
Se,
|
|
1865
1864
|
ke,
|
|
1865
|
+
xe,
|
|
1866
1866
|
!1,
|
|
1867
1867
|
null,
|
|
1868
1868
|
"07f8ee65",
|
|
1869
1869
|
null,
|
|
1870
1870
|
null
|
|
1871
1871
|
);
|
|
1872
|
-
const
|
|
1873
|
-
const
|
|
1872
|
+
const $e = we.exports;
|
|
1873
|
+
const Te = {
|
|
1874
1874
|
props: {
|
|
1875
1875
|
defaultOpen: {
|
|
1876
1876
|
type: Boolean,
|
|
@@ -1933,22 +1933,22 @@ const $e = {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
};
|
|
1936
|
-
var
|
|
1936
|
+
var Me = function() {
|
|
1937
1937
|
var e = this, t = e._self._c;
|
|
1938
1938
|
return t("div", [t("div", { on: { click: function(a) {
|
|
1939
1939
|
e.expanded = !e.expanded;
|
|
1940
1940
|
} } }, [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
|
-
$e,
|
|
1941
|
+
}, Ee = [], Ie = /* @__PURE__ */ d(
|
|
1943
1942
|
Te,
|
|
1944
1943
|
Me,
|
|
1944
|
+
Ee,
|
|
1945
1945
|
!1,
|
|
1946
1946
|
null,
|
|
1947
1947
|
null,
|
|
1948
1948
|
null,
|
|
1949
1949
|
null
|
|
1950
1950
|
);
|
|
1951
|
-
const
|
|
1951
|
+
const Le = Ie.exports, Re = {
|
|
1952
1952
|
amex: {
|
|
1953
1953
|
name: "American Express",
|
|
1954
1954
|
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,7 +1988,11 @@ const Ie = Ee.exports, Le = {
|
|
|
1988
1988
|
logo: i
|
|
1989
1989
|
};
|
|
1990
1990
|
}
|
|
1991
|
-
}
|
|
1991
|
+
};
|
|
1992
|
+
function Z(n) {
|
|
1993
|
+
return n == null ? null : n.scrollHeight > n.clientHeight ? n : Z(n.parentNode);
|
|
1994
|
+
}
|
|
1995
|
+
const He = {
|
|
1992
1996
|
data() {
|
|
1993
1997
|
return {
|
|
1994
1998
|
stripeCardElementId: null,
|
|
@@ -2000,8 +2004,9 @@ const Ie = Ee.exports, Le = {
|
|
|
2000
2004
|
// message for invalid input to Card Element
|
|
2001
2005
|
card: "",
|
|
2002
2006
|
// will be the object representation of the Card from Stripe Elements
|
|
2003
|
-
cardIsComplete: !1
|
|
2007
|
+
cardIsComplete: !1,
|
|
2004
2008
|
// Boolean if cart input is completed
|
|
2009
|
+
removeEventListeners: null
|
|
2005
2010
|
};
|
|
2006
2011
|
},
|
|
2007
2012
|
created() {
|
|
@@ -2010,7 +2015,7 @@ const Ie = Ee.exports, Le = {
|
|
|
2010
2015
|
});
|
|
2011
2016
|
},
|
|
2012
2017
|
beforeDestroy() {
|
|
2013
|
-
this.
|
|
2018
|
+
this.unmountCardInput();
|
|
2014
2019
|
},
|
|
2015
2020
|
methods: {
|
|
2016
2021
|
mountCardInput() {
|
|
@@ -2021,8 +2026,8 @@ const Ie = Ee.exports, Le = {
|
|
|
2021
2026
|
this.stripeCardElementId && this.callCard("mount", this.stripeCardElementId);
|
|
2022
2027
|
},
|
|
2023
2028
|
unmountCardInput() {
|
|
2024
|
-
var n;
|
|
2025
|
-
this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId), this.isShadowParent() && ((n = document.querySelector(this.stripeCardElementId)) == null || n.remove());
|
|
2029
|
+
var n, e;
|
|
2030
|
+
this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId), this.card && (this.card = null), this.isShadowParent() && ((n = document.querySelector(this.stripeCardElementId)) == null || n.remove(), (e = this.removeEventListeners) == null || e.call(this));
|
|
2026
2031
|
},
|
|
2027
2032
|
callCard(n, e) {
|
|
2028
2033
|
this.card && typeof this.card[n] == "function" && this.card[n](e);
|
|
@@ -2063,9 +2068,21 @@ const Ie = Ee.exports, Le = {
|
|
|
2063
2068
|
var n, e;
|
|
2064
2069
|
return this.isShadowParent() ? (e = (n = this.$el).getRootNode) == null ? void 0 : e.call(n) : document;
|
|
2065
2070
|
},
|
|
2066
|
-
|
|
2067
|
-
const
|
|
2071
|
+
repositionStripeEl({ original: n, clone: e }) {
|
|
2072
|
+
const { x: t, y: a } = n.getBoundingClientRect();
|
|
2068
2073
|
e.style.position = "absolute", e.style.top = `${a}px`, e.style.left = `${t}px`;
|
|
2074
|
+
},
|
|
2075
|
+
copyInputStyle(n) {
|
|
2076
|
+
const e = n.cloneNode(!0), t = Z(n), a = () => {
|
|
2077
|
+
this.repositionStripeEl({ original: n, clone: e });
|
|
2078
|
+
};
|
|
2079
|
+
t.addEventListener("scroll", a, {
|
|
2080
|
+
passive: !0
|
|
2081
|
+
}), window.addEventListener("resize", a), this.removeEventListeners = () => {
|
|
2082
|
+
t.removeEventListener("scroll", a, {
|
|
2083
|
+
passive: !0
|
|
2084
|
+
}), window.removeEventListener("resize", a);
|
|
2085
|
+
}, this.repositionStripeEl({ original: n, clone: e });
|
|
2069
2086
|
const r = Number(
|
|
2070
2087
|
window.getComputedStyle(n).getPropertyValue("--app-z-index")
|
|
2071
2088
|
);
|
|
@@ -2259,9 +2276,9 @@ const De = {
|
|
|
2259
2276
|
},
|
|
2260
2277
|
name: "PremiumStripeForm",
|
|
2261
2278
|
components: {
|
|
2262
|
-
CAccordion:
|
|
2279
|
+
CAccordion: Le
|
|
2263
2280
|
},
|
|
2264
|
-
mixins: [
|
|
2281
|
+
mixins: [He],
|
|
2265
2282
|
props: {
|
|
2266
2283
|
formPlan: {
|
|
2267
2284
|
type: Object,
|
|
@@ -2275,7 +2292,7 @@ const De = {
|
|
|
2275
2292
|
data() {
|
|
2276
2293
|
return {
|
|
2277
2294
|
regions: k,
|
|
2278
|
-
cardBrands:
|
|
2295
|
+
cardBrands: Re,
|
|
2279
2296
|
stripeCardElementId: "#card-element",
|
|
2280
2297
|
promoInputVisible: !1,
|
|
2281
2298
|
inputPromotionCode: "",
|
|
@@ -2364,21 +2381,21 @@ const De = {
|
|
|
2364
2381
|
}), a.forEach((s) => {
|
|
2365
2382
|
if (s === "bankId" && y[h.brand].defaultRegion === "US")
|
|
2366
2383
|
return;
|
|
2367
|
-
const
|
|
2368
|
-
if (!
|
|
2384
|
+
const l = this.getMeteredProduct(s);
|
|
2385
|
+
if (!l)
|
|
2369
2386
|
return;
|
|
2370
|
-
const o =
|
|
2387
|
+
const o = l.prices.find((p) => {
|
|
2371
2388
|
var g;
|
|
2372
2389
|
return p.active && ((g = p == null ? void 0 : p.metadata) == null ? void 0 : g.visible) === !0;
|
|
2373
2390
|
});
|
|
2374
2391
|
if (!o)
|
|
2375
2392
|
return;
|
|
2376
|
-
const
|
|
2393
|
+
const c = _(o.amount, {
|
|
2377
2394
|
currency: o.currency,
|
|
2378
2395
|
decimals: 2,
|
|
2379
2396
|
hideZeroDecimals: !0
|
|
2380
2397
|
});
|
|
2381
|
-
n[s] || (n[s] = { type: s, count: 0, cost: null }), n[s].cost =
|
|
2398
|
+
n[s] || (n[s] = { type: s, count: 0, cost: null }), n[s].cost = c;
|
|
2382
2399
|
}), Object.keys(n).map((s) => n[s]);
|
|
2383
2400
|
}
|
|
2384
2401
|
},
|
|
@@ -2403,7 +2420,7 @@ const De = {
|
|
|
2403
2420
|
this.useExistingCard = n, this.useExistingCustomer = n, ["name", "region", "email"].forEach((t) => {
|
|
2404
2421
|
this.customer[t] && this.$emit("input", { key: `customer.${t}`, value: this.customer[t] });
|
|
2405
2422
|
});
|
|
2406
|
-
const { data: e } = await
|
|
2423
|
+
const { data: e } = await ee();
|
|
2407
2424
|
this.setPromotion({ promotionDetails: e });
|
|
2408
2425
|
}
|
|
2409
2426
|
this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
|
|
@@ -2436,7 +2453,7 @@ const De = {
|
|
|
2436
2453
|
}
|
|
2437
2454
|
}
|
|
2438
2455
|
};
|
|
2439
|
-
var
|
|
2456
|
+
var Be = function() {
|
|
2440
2457
|
var e = this, t = e._self._c;
|
|
2441
2458
|
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) {
|
|
2442
2459
|
return e.$emit("update:interval", e.formPlan.interval === "year" ? "month" : "year");
|
|
@@ -2489,17 +2506,17 @@ var He = function() {
|
|
|
2489
2506
|
})], 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) {
|
|
2490
2507
|
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()]);
|
|
2491
2508
|
}), 0)])])], 1);
|
|
2492
|
-
},
|
|
2509
|
+
}, Fe = [], Ue = /* @__PURE__ */ d(
|
|
2493
2510
|
De,
|
|
2494
|
-
He,
|
|
2495
2511
|
Be,
|
|
2512
|
+
Fe,
|
|
2496
2513
|
!1,
|
|
2497
2514
|
null,
|
|
2498
2515
|
"3d9ab864",
|
|
2499
2516
|
null,
|
|
2500
2517
|
null
|
|
2501
2518
|
);
|
|
2502
|
-
const
|
|
2519
|
+
const Ae = Ue.exports, Ve = {
|
|
2503
2520
|
name: "PremiumStripe",
|
|
2504
2521
|
i18nOptions: {
|
|
2505
2522
|
namespaces: "premiumStripe",
|
|
@@ -2633,9 +2650,9 @@ const Ue = Fe.exports, Ae = {
|
|
|
2633
2650
|
}
|
|
2634
2651
|
},
|
|
2635
2652
|
components: {
|
|
2636
|
-
Confetti:
|
|
2637
|
-
PremiumStripeSelect:
|
|
2638
|
-
PremiumStripeForm:
|
|
2653
|
+
Confetti: Pe,
|
|
2654
|
+
PremiumStripeSelect: $e,
|
|
2655
|
+
PremiumStripeForm: Ae
|
|
2639
2656
|
},
|
|
2640
2657
|
props: {
|
|
2641
2658
|
suggestedQuantity: {
|
|
@@ -2656,7 +2673,7 @@ const Ue = Fe.exports, Ae = {
|
|
|
2656
2673
|
};
|
|
2657
2674
|
},
|
|
2658
2675
|
computed: {
|
|
2659
|
-
...
|
|
2676
|
+
...oe({
|
|
2660
2677
|
forceShowBase: (n) => n.route.query.base,
|
|
2661
2678
|
routeDeal: (n) => n.route.query.deal
|
|
2662
2679
|
}),
|
|
@@ -2753,7 +2770,7 @@ const Ue = Fe.exports, Ae = {
|
|
|
2753
2770
|
this.quantity = this.suggestedQuantity;
|
|
2754
2771
|
return;
|
|
2755
2772
|
}
|
|
2756
|
-
const { data: n } = await
|
|
2773
|
+
const { data: n } = await te();
|
|
2757
2774
|
this.quantity = n;
|
|
2758
2775
|
},
|
|
2759
2776
|
onReset() {
|
|
@@ -2791,7 +2808,7 @@ const Ue = Fe.exports, Ae = {
|
|
|
2791
2808
|
setFromDealToken(n) {
|
|
2792
2809
|
if (n)
|
|
2793
2810
|
try {
|
|
2794
|
-
const e =
|
|
2811
|
+
const e = ne(n);
|
|
2795
2812
|
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) {
|
|
2796
2813
|
const t = [];
|
|
2797
2814
|
Object.keys(e.items).forEach((a) => {
|
|
@@ -2812,7 +2829,7 @@ const Ue = Fe.exports, Ae = {
|
|
|
2812
2829
|
}
|
|
2813
2830
|
}
|
|
2814
2831
|
};
|
|
2815
|
-
var
|
|
2832
|
+
var Oe = function() {
|
|
2816
2833
|
var e = this, t = e._self._c;
|
|
2817
2834
|
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) {
|
|
2818
2835
|
return e.$emit("close");
|
|
@@ -2827,17 +2844,17 @@ var Ve = function() {
|
|
|
2827
2844
|
}, 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) {
|
|
2828
2845
|
return e.closeAndContinue();
|
|
2829
2846
|
} } }, [e._v(e._s(e.$t("success.closeButton")))])], 1) : e._e()], 1)]);
|
|
2830
|
-
},
|
|
2831
|
-
Ae,
|
|
2847
|
+
}, Ne = [], ze = /* @__PURE__ */ d(
|
|
2832
2848
|
Ve,
|
|
2833
2849
|
Oe,
|
|
2850
|
+
Ne,
|
|
2834
2851
|
!1,
|
|
2835
2852
|
null,
|
|
2836
2853
|
null,
|
|
2837
2854
|
null,
|
|
2838
2855
|
null
|
|
2839
2856
|
);
|
|
2840
|
-
const
|
|
2857
|
+
const qe = ze.exports, Ge = {
|
|
2841
2858
|
name: "IsPremium",
|
|
2842
2859
|
computed: {
|
|
2843
2860
|
...v({
|
|
@@ -2889,7 +2906,7 @@ const ze = Ne.exports, qe = {
|
|
|
2889
2906
|
openUpgradeModal({ suggestedQuantity: n = null, callback: e = null, onClosed: t = null } = {}) {
|
|
2890
2907
|
let a = () => null, r = () => null;
|
|
2891
2908
|
typeof e == "function" && (a = e), typeof t == "function" && (r = t), this.$modal.show(
|
|
2892
|
-
|
|
2909
|
+
qe,
|
|
2893
2910
|
{
|
|
2894
2911
|
suggestedQuantity: n,
|
|
2895
2912
|
onUpgrade: a
|
|
@@ -2929,18 +2946,18 @@ const ze = Ne.exports, qe = {
|
|
|
2929
2946
|
canUseSms: this.canUseSms
|
|
2930
2947
|
}) : {};
|
|
2931
2948
|
}
|
|
2932
|
-
},
|
|
2933
|
-
var
|
|
2934
|
-
qe,
|
|
2949
|
+
}, Ze = null, je = null;
|
|
2950
|
+
var Ke = /* @__PURE__ */ d(
|
|
2935
2951
|
Ge,
|
|
2936
2952
|
Ze,
|
|
2953
|
+
je,
|
|
2937
2954
|
!1,
|
|
2938
2955
|
null,
|
|
2939
2956
|
null,
|
|
2940
2957
|
null,
|
|
2941
2958
|
null
|
|
2942
2959
|
);
|
|
2943
|
-
const
|
|
2960
|
+
const Ye = Ke.exports, We = {
|
|
2944
2961
|
name: "CalloutLegacy",
|
|
2945
2962
|
i18nOptions: {
|
|
2946
2963
|
namespaces: "components",
|
|
@@ -2990,21 +3007,21 @@ const Ke = je.exports, Ye = {
|
|
|
2990
3007
|
}
|
|
2991
3008
|
}
|
|
2992
3009
|
};
|
|
2993
|
-
var
|
|
3010
|
+
var Xe = function() {
|
|
2994
3011
|
var e = this, t = e._self._c;
|
|
2995
3012
|
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);
|
|
2996
|
-
},
|
|
2997
|
-
Ye,
|
|
3013
|
+
}, Je = [], Qe = /* @__PURE__ */ d(
|
|
2998
3014
|
We,
|
|
2999
3015
|
Xe,
|
|
3016
|
+
Je,
|
|
3000
3017
|
!1,
|
|
3001
3018
|
null,
|
|
3002
3019
|
null,
|
|
3003
3020
|
null,
|
|
3004
3021
|
null
|
|
3005
3022
|
);
|
|
3006
|
-
const
|
|
3007
|
-
const
|
|
3023
|
+
const et = Qe.exports;
|
|
3024
|
+
const tt = {
|
|
3008
3025
|
i18nOptions: {
|
|
3009
3026
|
namespaces: "components",
|
|
3010
3027
|
messages: {
|
|
@@ -3028,8 +3045,8 @@ const et = {
|
|
|
3028
3045
|
},
|
|
3029
3046
|
name: "PremiumRestrictedBase",
|
|
3030
3047
|
components: {
|
|
3031
|
-
IsPremium:
|
|
3032
|
-
CalloutLegacy:
|
|
3048
|
+
IsPremium: Ye,
|
|
3049
|
+
CalloutLegacy: et
|
|
3033
3050
|
},
|
|
3034
3051
|
props: {
|
|
3035
3052
|
plan: {
|
|
@@ -3075,7 +3092,7 @@ const et = {
|
|
|
3075
3092
|
}
|
|
3076
3093
|
}
|
|
3077
3094
|
};
|
|
3078
|
-
var
|
|
3095
|
+
var nt = function() {
|
|
3079
3096
|
var e = this, t = e._self._c;
|
|
3080
3097
|
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() {
|
|
3081
3098
|
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))])];
|
|
@@ -3088,17 +3105,17 @@ var tt = function() {
|
|
|
3088
3105
|
} }], null, !0) }), t("div", { staticStyle: { "margin-top": "5px" } }, [t("CButton", { attrs: { type: "none", pattern: "tertiary", wide: "" }, on: { click: function(a) {
|
|
3089
3106
|
return e.$parent.$emit("close");
|
|
3090
3107
|
} } }, [e._v(" " + e._s(e.$t("cancelButton")) + " ")])], 1)], 1)])]);
|
|
3091
|
-
},
|
|
3092
|
-
et,
|
|
3108
|
+
}, at = [], rt = /* @__PURE__ */ d(
|
|
3093
3109
|
tt,
|
|
3094
3110
|
nt,
|
|
3111
|
+
at,
|
|
3095
3112
|
!1,
|
|
3096
3113
|
null,
|
|
3097
3114
|
"993cb5cc",
|
|
3098
3115
|
null,
|
|
3099
3116
|
null
|
|
3100
3117
|
);
|
|
3101
|
-
const f =
|
|
3118
|
+
const f = rt.exports, it = {
|
|
3102
3119
|
i18nOptions: {
|
|
3103
3120
|
namespaces: "winProfile",
|
|
3104
3121
|
keyPrefix: "account.subscription.winProfile",
|
|
@@ -3126,20 +3143,20 @@ const f = at.exports, rt = {
|
|
|
3126
3143
|
}
|
|
3127
3144
|
}
|
|
3128
3145
|
};
|
|
3129
|
-
var
|
|
3146
|
+
var st = function() {
|
|
3130
3147
|
var e = this, t = e._self._c;
|
|
3131
3148
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3132
|
-
},
|
|
3133
|
-
rt,
|
|
3149
|
+
}, ot = [], lt = /* @__PURE__ */ d(
|
|
3134
3150
|
it,
|
|
3135
3151
|
st,
|
|
3152
|
+
ot,
|
|
3136
3153
|
!1,
|
|
3137
3154
|
null,
|
|
3138
3155
|
null,
|
|
3139
3156
|
null,
|
|
3140
3157
|
null
|
|
3141
3158
|
);
|
|
3142
|
-
const ct =
|
|
3159
|
+
const ct = lt.exports, ut = {
|
|
3143
3160
|
i18nOptions: {
|
|
3144
3161
|
namespaces: "subTemplates",
|
|
3145
3162
|
messages: {
|
|
@@ -3164,20 +3181,20 @@ const ct = ot.exports, lt = {
|
|
|
3164
3181
|
}
|
|
3165
3182
|
}
|
|
3166
3183
|
};
|
|
3167
|
-
var
|
|
3184
|
+
var dt = function() {
|
|
3168
3185
|
var e = this, t = e._self._c;
|
|
3169
3186
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3170
|
-
},
|
|
3171
|
-
lt,
|
|
3187
|
+
}, mt = [], pt = /* @__PURE__ */ d(
|
|
3172
3188
|
ut,
|
|
3173
3189
|
dt,
|
|
3190
|
+
mt,
|
|
3174
3191
|
!1,
|
|
3175
3192
|
null,
|
|
3176
3193
|
null,
|
|
3177
3194
|
null,
|
|
3178
3195
|
null
|
|
3179
3196
|
);
|
|
3180
|
-
const
|
|
3197
|
+
const gt = pt.exports, ht = {
|
|
3181
3198
|
i18nOptions: {
|
|
3182
3199
|
namespaces: "PremiumRestrictedDocuments",
|
|
3183
3200
|
messages: {
|
|
@@ -3226,7 +3243,7 @@ const pt = mt.exports, gt = {
|
|
|
3226
3243
|
},
|
|
3227
3244
|
created() {
|
|
3228
3245
|
try {
|
|
3229
|
-
|
|
3246
|
+
ae("/documentLimitReached", {});
|
|
3230
3247
|
} catch (n) {
|
|
3231
3248
|
R(n, { showMessage: !1 });
|
|
3232
3249
|
}
|
|
@@ -3255,7 +3272,7 @@ const pt = mt.exports, gt = {
|
|
|
3255
3272
|
async useFreeDocsVoucher() {
|
|
3256
3273
|
this.isLoading = !0;
|
|
3257
3274
|
try {
|
|
3258
|
-
await U.post({ code: "freeUserDocs" }), M.setItem("voucher-freeUserDocs-company-id", this.account.CompanyId), await this.loadCurrentCompany(),
|
|
3275
|
+
await U.post({ code: "freeUserDocs" }), M.setItem("voucher-freeUserDocs-company-id", this.account.CompanyId), await this.loadCurrentCompany(), re("success", this.$t("voucherSuccessMessage", { count: this.voucherDocCount })), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade();
|
|
3259
3276
|
} catch (n) {
|
|
3260
3277
|
R(n);
|
|
3261
3278
|
} finally {
|
|
@@ -3264,20 +3281,20 @@ const pt = mt.exports, gt = {
|
|
|
3264
3281
|
}
|
|
3265
3282
|
}
|
|
3266
3283
|
};
|
|
3267
|
-
var
|
|
3284
|
+
var yt = function() {
|
|
3268
3285
|
var e = this, t = e._self._c;
|
|
3269
3286
|
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()]);
|
|
3270
|
-
},
|
|
3271
|
-
gt,
|
|
3287
|
+
}, ft = [], Ct = /* @__PURE__ */ d(
|
|
3272
3288
|
ht,
|
|
3273
3289
|
yt,
|
|
3290
|
+
ft,
|
|
3274
3291
|
!1,
|
|
3275
3292
|
null,
|
|
3276
3293
|
null,
|
|
3277
3294
|
null,
|
|
3278
3295
|
null
|
|
3279
3296
|
);
|
|
3280
|
-
const
|
|
3297
|
+
const vt = Ct.exports, bt = {
|
|
3281
3298
|
i18nOptions: {
|
|
3282
3299
|
namespaces: "personalMessage",
|
|
3283
3300
|
messages: {
|
|
@@ -3302,21 +3319,21 @@ const Ct = ft.exports, vt = {
|
|
|
3302
3319
|
}
|
|
3303
3320
|
}
|
|
3304
3321
|
};
|
|
3305
|
-
var
|
|
3322
|
+
var _t = function() {
|
|
3306
3323
|
var e = this, t = e._self._c;
|
|
3307
3324
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
|
|
3308
|
-
},
|
|
3309
|
-
vt,
|
|
3325
|
+
}, Pt = [], St = /* @__PURE__ */ d(
|
|
3310
3326
|
bt,
|
|
3311
3327
|
_t,
|
|
3328
|
+
Pt,
|
|
3312
3329
|
!1,
|
|
3313
3330
|
null,
|
|
3314
3331
|
null,
|
|
3315
3332
|
null,
|
|
3316
3333
|
null
|
|
3317
3334
|
);
|
|
3318
|
-
const
|
|
3319
|
-
const
|
|
3335
|
+
const kt = St.exports;
|
|
3336
|
+
const xt = {
|
|
3320
3337
|
i18nOptions: {
|
|
3321
3338
|
namespaces: "licenses",
|
|
3322
3339
|
messages: {
|
|
@@ -3399,25 +3416,25 @@ const kt = {
|
|
|
3399
3416
|
return await this.loadCurrentCompany(), n;
|
|
3400
3417
|
},
|
|
3401
3418
|
async addInvoiceLicense() {
|
|
3402
|
-
await
|
|
3419
|
+
await ie(), await this.loadCurrentCompany();
|
|
3403
3420
|
}
|
|
3404
3421
|
}
|
|
3405
3422
|
};
|
|
3406
|
-
var
|
|
3423
|
+
var wt = function() {
|
|
3407
3424
|
var e = this, t = e._self._c;
|
|
3408
3425
|
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);
|
|
3409
|
-
},
|
|
3410
|
-
kt,
|
|
3426
|
+
}, $t = [], Tt = /* @__PURE__ */ d(
|
|
3411
3427
|
xt,
|
|
3412
3428
|
wt,
|
|
3429
|
+
$t,
|
|
3413
3430
|
!1,
|
|
3414
3431
|
null,
|
|
3415
3432
|
null,
|
|
3416
3433
|
null,
|
|
3417
3434
|
null
|
|
3418
3435
|
);
|
|
3419
|
-
const
|
|
3420
|
-
const
|
|
3436
|
+
const Mt = Tt.exports;
|
|
3437
|
+
const Et = {
|
|
3421
3438
|
i18nOptions: {
|
|
3422
3439
|
namespaces: "licenses",
|
|
3423
3440
|
messages: {
|
|
@@ -3444,20 +3461,20 @@ const Mt = {
|
|
|
3444
3461
|
}
|
|
3445
3462
|
}
|
|
3446
3463
|
};
|
|
3447
|
-
var
|
|
3464
|
+
var It = function() {
|
|
3448
3465
|
var e = this, t = e._self._c;
|
|
3449
3466
|
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);
|
|
3450
|
-
},
|
|
3451
|
-
Mt,
|
|
3467
|
+
}, Lt = [], Rt = /* @__PURE__ */ d(
|
|
3452
3468
|
Et,
|
|
3453
3469
|
It,
|
|
3470
|
+
Lt,
|
|
3454
3471
|
!1,
|
|
3455
3472
|
null,
|
|
3456
3473
|
null,
|
|
3457
3474
|
null,
|
|
3458
3475
|
null
|
|
3459
3476
|
);
|
|
3460
|
-
const
|
|
3477
|
+
const Ht = Rt.exports, Dt = {
|
|
3461
3478
|
i18nOptions: {
|
|
3462
3479
|
namespaces: "stats",
|
|
3463
3480
|
messages: {
|
|
@@ -3484,20 +3501,20 @@ const Rt = Lt.exports, Dt = {
|
|
|
3484
3501
|
}
|
|
3485
3502
|
}
|
|
3486
3503
|
};
|
|
3487
|
-
var
|
|
3504
|
+
var Bt = function() {
|
|
3488
3505
|
var e = this, t = e._self._c;
|
|
3489
3506
|
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);
|
|
3490
|
-
},
|
|
3507
|
+
}, Ft = [], Ut = /* @__PURE__ */ d(
|
|
3491
3508
|
Dt,
|
|
3492
|
-
Ht,
|
|
3493
3509
|
Bt,
|
|
3510
|
+
Ft,
|
|
3494
3511
|
!1,
|
|
3495
3512
|
null,
|
|
3496
3513
|
null,
|
|
3497
3514
|
null,
|
|
3498
3515
|
null
|
|
3499
3516
|
);
|
|
3500
|
-
const
|
|
3517
|
+
const At = Ut.exports, Vt = {
|
|
3501
3518
|
i18nOptions: {
|
|
3502
3519
|
namespaces: "stats",
|
|
3503
3520
|
messages: {
|
|
@@ -3524,20 +3541,20 @@ const Ut = Ft.exports, At = {
|
|
|
3524
3541
|
}
|
|
3525
3542
|
}
|
|
3526
3543
|
};
|
|
3527
|
-
var
|
|
3544
|
+
var Ot = function() {
|
|
3528
3545
|
var e = this, t = e._self._c;
|
|
3529
3546
|
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);
|
|
3530
|
-
},
|
|
3531
|
-
At,
|
|
3547
|
+
}, Nt = [], zt = /* @__PURE__ */ d(
|
|
3532
3548
|
Vt,
|
|
3533
3549
|
Ot,
|
|
3550
|
+
Nt,
|
|
3534
3551
|
!1,
|
|
3535
3552
|
null,
|
|
3536
3553
|
null,
|
|
3537
3554
|
null,
|
|
3538
3555
|
null
|
|
3539
3556
|
);
|
|
3540
|
-
const
|
|
3557
|
+
const qt = zt.exports, Gt = {
|
|
3541
3558
|
i18nOptions: {
|
|
3542
3559
|
namespaces: "PremiumRestrictedBankIdAndSms",
|
|
3543
3560
|
messages: {
|
|
@@ -3569,24 +3586,24 @@ const zt = Nt.exports, qt = {
|
|
|
3569
3586
|
})
|
|
3570
3587
|
}
|
|
3571
3588
|
};
|
|
3572
|
-
var
|
|
3589
|
+
var Zt = function() {
|
|
3573
3590
|
var e = this, t = e._self._c;
|
|
3574
3591
|
return t("PremiumRestrictedBase", { attrs: { title: e.$t("title", {
|
|
3575
3592
|
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
|
|
3576
3593
|
}), "sub-title": e.$t("subTitle", {
|
|
3577
3594
|
bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:or") : ""
|
|
3578
3595
|
}), "on-upgrade": e.onUpgrade, plan: "pro" } }, [t("template", { slot: "actionText" }, [e._v(" " + e._s(e.$t("actionText")) + " ")])], 2);
|
|
3579
|
-
},
|
|
3580
|
-
qt,
|
|
3596
|
+
}, jt = [], Kt = /* @__PURE__ */ d(
|
|
3581
3597
|
Gt,
|
|
3582
3598
|
Zt,
|
|
3599
|
+
jt,
|
|
3583
3600
|
!1,
|
|
3584
3601
|
null,
|
|
3585
3602
|
null,
|
|
3586
3603
|
null,
|
|
3587
3604
|
null
|
|
3588
3605
|
);
|
|
3589
|
-
const
|
|
3606
|
+
const Yt = Kt.exports, Wt = {
|
|
3590
3607
|
i18nOptions: {
|
|
3591
3608
|
namespaces: "PremiumRestrictedEditDocumentLayout",
|
|
3592
3609
|
messages: {
|
|
@@ -3613,31 +3630,31 @@ const Kt = jt.exports, Yt = {
|
|
|
3613
3630
|
}
|
|
3614
3631
|
}
|
|
3615
3632
|
};
|
|
3616
|
-
var
|
|
3633
|
+
var Xt = function() {
|
|
3617
3634
|
var e = this, t = e._self._c;
|
|
3618
3635
|
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);
|
|
3619
|
-
},
|
|
3620
|
-
Yt,
|
|
3636
|
+
}, Jt = [], Qt = /* @__PURE__ */ d(
|
|
3621
3637
|
Wt,
|
|
3622
3638
|
Xt,
|
|
3639
|
+
Jt,
|
|
3623
3640
|
!1,
|
|
3624
3641
|
null,
|
|
3625
3642
|
null,
|
|
3626
3643
|
null,
|
|
3627
3644
|
null
|
|
3628
3645
|
);
|
|
3629
|
-
const
|
|
3646
|
+
const en = Qt.exports, I = {
|
|
3630
3647
|
winProfile: ct,
|
|
3631
|
-
templates:
|
|
3632
|
-
documents:
|
|
3633
|
-
personalMessage:
|
|
3634
|
-
licenses:
|
|
3635
|
-
inviteCreators:
|
|
3636
|
-
stats:
|
|
3637
|
-
documentBlocks:
|
|
3638
|
-
bankIdAndSms:
|
|
3639
|
-
editDocumentLayout:
|
|
3640
|
-
},
|
|
3648
|
+
templates: gt,
|
|
3649
|
+
documents: vt,
|
|
3650
|
+
personalMessage: kt,
|
|
3651
|
+
licenses: Mt,
|
|
3652
|
+
inviteCreators: Ht,
|
|
3653
|
+
stats: At,
|
|
3654
|
+
documentBlocks: qt,
|
|
3655
|
+
bankIdAndSms: Yt,
|
|
3656
|
+
editDocumentLayout: en
|
|
3657
|
+
}, tn = {
|
|
3641
3658
|
name: "IsPremiumPreStep",
|
|
3642
3659
|
props: {
|
|
3643
3660
|
feature: {
|
|
@@ -3648,7 +3665,7 @@ const Qt = Jt.exports, I = {
|
|
|
3648
3665
|
},
|
|
3649
3666
|
computed: {
|
|
3650
3667
|
modalName() {
|
|
3651
|
-
return I[this.feature] ? I[this.feature] : (
|
|
3668
|
+
return I[this.feature] ? I[this.feature] : (se.error("Missing IsPremiumPreStep component name"), null);
|
|
3652
3669
|
}
|
|
3653
3670
|
},
|
|
3654
3671
|
methods: {
|
|
@@ -3674,25 +3691,25 @@ const Qt = Jt.exports, I = {
|
|
|
3674
3691
|
onClick: this.onClick
|
|
3675
3692
|
}) : {};
|
|
3676
3693
|
}
|
|
3677
|
-
},
|
|
3678
|
-
var
|
|
3679
|
-
en,
|
|
3694
|
+
}, nn = null, an = null;
|
|
3695
|
+
var rn = /* @__PURE__ */ d(
|
|
3680
3696
|
tn,
|
|
3681
3697
|
nn,
|
|
3698
|
+
an,
|
|
3682
3699
|
!1,
|
|
3683
3700
|
null,
|
|
3684
3701
|
null,
|
|
3685
3702
|
null,
|
|
3686
3703
|
null
|
|
3687
3704
|
);
|
|
3688
|
-
const
|
|
3705
|
+
const pn = rn.exports;
|
|
3689
3706
|
export {
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3707
|
+
et as C,
|
|
3708
|
+
pn as I,
|
|
3709
|
+
qe as P,
|
|
3710
|
+
Ye as a,
|
|
3694
3711
|
G as b,
|
|
3695
|
-
|
|
3712
|
+
Le as c,
|
|
3696
3713
|
k as r,
|
|
3697
|
-
|
|
3714
|
+
He as s
|
|
3698
3715
|
};
|