@cling-se/widget 0.9.12 → 0.9.14

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.
Files changed (128) hide show
  1. package/dist/{AddClientCallout-6b0621ec.js → AddClientCallout-a6803b1d.js} +5 -5
  2. package/dist/{AnswerModal-f6cb74d7.js → AnswerModal-71e1ec1c.js} +3 -3
  3. package/dist/{AttachmentItem-2a4cb524.js → AttachmentItem-f416ae47.js} +3 -3
  4. package/dist/{BaseDatePicker-2daf62c0.js → BaseDatePicker-72f5722d.js} +1 -1
  5. package/dist/{BaseInput-a4523348.js → BaseInput-431750bd.js} +1 -1
  6. package/dist/{BaseUpload-737004ad.js → BaseUpload-3fe41796.js} +18 -18
  7. package/dist/{BlockMedia-a145fc19.js → BlockMedia-f249e3b5.js} +1 -1
  8. package/dist/{CCallout-7fb1ad5c.js → CCallout-61f77d70.js} +2 -2
  9. package/dist/{CDropdownItem-79c8dc70.js → CDropdownItem-7eff8418.js} +63 -61
  10. package/dist/{CField-2b1118f9.js → CField-8cdc83ce.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-47894df7.js → CSlider.vue_vue_type_style_index_0_lang-d042d835.js} +1 -1
  12. package/dist/{ClientAutocomplete-3d098904.js → ClientAutocomplete-f81b6da6.js} +2 -2
  13. package/dist/{ClientModal-d1bf8d0d.js → ClientModal-2c757562.js} +4 -4
  14. package/dist/{ColorPicker-c61cd86f.js → ColorPicker-da94c878.js} +28 -28
  15. package/dist/{CompanyModal-46cab2d1.js → CompanyModal-d4436599.js} +3 -3
  16. package/dist/{ContentWrapper-3251ab37.js → ContentWrapper-3ea6d128.js} +14 -13
  17. package/dist/{CoverBlockSettings-3ad93db4.js → CoverBlockSettings-906d3cfe.js} +10 -9
  18. package/dist/{DocAnswer-a0f2853b.js → DocAnswer-a84e76db.js} +4 -4
  19. package/dist/{DocForm-a4c0a0f1.js → DocForm-b76ac915.js} +562 -641
  20. package/dist/{DocFormSend-ed982485.js → DocFormSend-2ba64b4e.js} +17 -17
  21. package/dist/DocLinks-e85cc84a.js +38 -0
  22. package/dist/{DocModalBase-22abfff9.js → DocModalBase-8243406e.js} +1 -1
  23. package/dist/{DocPrint-028aa0ed.js → DocPrint-8200bbb1.js} +1 -1
  24. package/dist/{DocReceipt-3bd27c4a.js → DocReceipt-4a85a7ff.js} +1 -1
  25. package/dist/{DocSendReminder-8ad0ca86.js → DocSendReminder-84862964.js} +1 -1
  26. package/dist/{DocTextEditor-8930e458.js → DocTextEditor-f6f5d22b.js} +1107 -1102
  27. package/dist/{DocTimeline-2ab336f0.js → DocTimeline-842bb019.js} +1 -1
  28. package/dist/{DocumentClient-441798b5.js → DocumentClient-ccf33079.js} +5 -5
  29. package/dist/{DocumentLayout-02c32058.js → DocumentLayout-0b5138ff.js} +95 -95
  30. package/dist/{DocumentLogotype-43ef9231.js → DocumentLogotype-c3347ad9.js} +3 -3
  31. package/dist/{EmbedInput-996ae0e3.js → EmbedInput-eef02390.js} +2 -2
  32. package/dist/{EmbedSettings-41af8b9c.js → EmbedSettings-bd64156d.js} +3 -3
  33. package/dist/{ErrorCallout-d392ffe9.js → ErrorCallout-bce1d8d5.js} +1 -1
  34. package/dist/{FilePreviewModal-e298691e.js → FilePreviewModal-7835083e.js} +4 -4
  35. package/dist/{HeaderSettings-687131c9.js → HeaderSettings-fa02c3b4.js} +17 -16
  36. package/dist/{ImageSelectModal-eec441aa.js → ImageSelectModal-ee8c9284.js} +8 -8
  37. package/dist/{ImageUploadWrapper-b244cf9e.js → ImageUploadWrapper-fdc46e10.js} +2 -2
  38. package/dist/{Index-77a7d639.js → Index-0ab509d5.js} +8 -8
  39. package/dist/{Index-c3a619f4.js → Index-110c0f5c.js} +4 -4
  40. package/dist/{Index-9ccce76f.js → Index-316d9ece.js} +4 -4
  41. package/dist/{Index-25ce24cc.js → Index-361d8f26.js} +2 -2
  42. package/dist/{Index-6c5de42a.js → Index-38391a79.js} +2 -2
  43. package/dist/{Index-b9b80eae.js → Index-4409ecc5.js} +6 -6
  44. package/dist/{Index-13b65d9b.js → Index-4684c65d.js} +2 -2
  45. package/dist/{Index-bf23d7a9.js → Index-4e722302.js} +8 -8
  46. package/dist/{Index-ee558d21.js → Index-514fb64f.js} +1 -1
  47. package/dist/{Index-37d3fd60.js → Index-58109821.js} +2 -2
  48. package/dist/{Index-fd947a18.js → Index-6194280d.js} +14 -13
  49. package/dist/{Index-d76bf229.js → Index-652d7e86.js} +1 -1
  50. package/dist/{Index-2b19a264.js → Index-71ee8ebd.js} +2 -2
  51. package/dist/{Index-7c421b05.js → Index-77a78d15.js} +4 -4
  52. package/dist/{Index-e2919ed0.js → Index-79f82168.js} +4 -4
  53. package/dist/{Index-0ed1b84a.js → Index-7a8c5603.js} +2 -2
  54. package/dist/{Index-6d61f98d.js → Index-8890c55f.js} +15 -14
  55. package/dist/{Index-5ff95ead.js → Index-89588fde.js} +8 -8
  56. package/dist/{Index-87cd4771.js → Index-8a0c2725.js} +4 -4
  57. package/dist/{Index-af3a9b66.js → Index-8c3e783e.js} +4 -4
  58. package/dist/{Index-62ea070e.js → Index-8d78852a.js} +2 -2
  59. package/dist/{Index-8c254496.js → Index-94f0221f.js} +4 -4
  60. package/dist/{Index-01a3b6ed.js → Index-95aaf122.js} +6 -6
  61. package/dist/{Index-6ca4a7e4.js → Index-9e1a642a.js} +17 -16
  62. package/dist/{Index-30ebb13c.js → Index-a97989ac.js} +2 -2
  63. package/dist/{Index-485b35e8.js → Index-b9d73d15.js} +25 -25
  64. package/dist/{Index-2468cd69.js → Index-cea163a2.js} +14 -13
  65. package/dist/{Index-a9f197a7.js → Index-d1325e8f.js} +4 -4
  66. package/dist/{Index-d3225e03.js → Index-d3426b0b.js} +40 -57
  67. package/dist/{Index-f14261e7.js → Index-e3cace76.js} +3 -3
  68. package/dist/{Index-a7871ea6.js → Index-e9b0af2d.js} +4 -4
  69. package/dist/{Index-efa47af4.js → Index-f24190cc.js} +7 -7
  70. package/dist/{Index-8882ee1b.js → Index-f79e03bb.js} +5 -5
  71. package/dist/{Index-7d2fe1bd.js → Index-ff5a89f0.js} +5 -5
  72. package/dist/{InputToggleRow-ee713437.js → InputToggleRow-7fc88908.js} +1 -1
  73. package/dist/{IsPremiumPreStep-9b5a0a01.js → IsPremiumPreStep-62401338.js} +167 -138
  74. package/dist/ManualPopover-0476a776.js +53 -0
  75. package/dist/{MediaWrapper-45257b41.js → MediaWrapper-7de4d3eb.js} +3 -3
  76. package/dist/{NotBindingText-c2f7c9cb.js → NotBindingText-ffe487e6.js} +2 -2
  77. package/dist/{PackageGroup-b2aa42da.js → PackageGroup-f0b25406.js} +13 -12
  78. package/dist/{PdfTerms-2d66043e.js → PdfTerms-91beba8c.js} +4 -4
  79. package/dist/{PdfViewer-947ee278.js → PdfViewer-46d1a38c.js} +2 -2
  80. package/dist/{PlainHtml-a3d47a45.js → PlainHtml-e8104d32.js} +1 -1
  81. package/dist/{PriceHeader-b6a99a57.js → PriceHeader-916cdc9a.js} +16 -15
  82. package/dist/{SearchApi-c6511bc3.js → SearchApi-8efb3d0b.js} +2 -2
  83. package/dist/{Setup-60ec3c2a.js → Setup-9f28f773.js} +5 -6
  84. package/dist/{TermsSettings-836555da.js → TermsSettings-a709e571.js} +6 -6
  85. package/dist/{ThemeColorRow-672086c3.js → ThemeColorRow-23f560f7.js} +13 -11
  86. package/dist/{ToggleBinding-3c581fbb.js → ToggleBinding-ea12882f.js} +3 -3
  87. package/dist/{UploadModal-b3933203.js → UploadModal-b9785d42.js} +3 -3
  88. package/dist/{VideoPlayerInput-5ad13a27.js → VideoPlayerInput-c139e07a.js} +3 -3
  89. package/dist/{VideoPlayerSettings-e964804b.js → VideoPlayerSettings-1362d6f5.js} +4 -4
  90. package/dist/{VideoSelectModal-321b2270.js → VideoSelectModal-a0501d67.js} +7 -7
  91. package/dist/{answerDocumentMixin-76224b35.js → answerDocumentMixin-e448478a.js} +3 -3
  92. package/dist/{cssMode-2bf89988.js → cssMode-a748df72.js} +7 -7
  93. package/dist/{focusDrawerMixin-dffff858.js → focusDrawerMixin-3d6dccd3.js} +1 -1
  94. package/dist/{formComponentsInstall-57c30f22.js → formComponentsInstall-23e4be0a.js} +12 -12
  95. package/dist/{formValidationMixin-9d5c1283.js → formValidationMixin-75ac30a4.js} +1 -1
  96. package/dist/{freemarker2-503b066f.js → freemarker2-e5d901d6.js} +7 -7
  97. package/dist/{handlebars-8c0c0a90.js → handlebars-bb947f49.js} +7 -7
  98. package/dist/{html-5b503855.js → html-83e08e1c.js} +7 -7
  99. package/dist/{htmlMode-b751a462.js → htmlMode-c6ffd393.js} +7 -7
  100. package/dist/{image-a902f5a5.js → image-5f9f36b5.js} +1 -1
  101. package/dist/index-0e4e6529.js +99 -0
  102. package/dist/{index-9a5227ef.js → index-468da570.js} +2 -2
  103. package/dist/{index-1c1cefec.js → index-58bfded8.js} +4 -4
  104. package/dist/{index-d81be181.js → index-a65761df.js} +25 -25
  105. package/dist/{index-a9f8e647.js → index-e6a04cef.js} +10 -9
  106. package/dist/{index-771f5571.js → index-f0521a5f.js} +4 -4
  107. package/dist/index.es.js +6 -3
  108. package/dist/index.umd.js +489 -489
  109. package/dist/{javascript-2d18f43b.js → javascript-f784800f.js} +8 -8
  110. package/dist/{jsonMode-95421c7a.js → jsonMode-9fcd41c5.js} +7 -7
  111. package/dist/{liquid-47ff3277.js → liquid-7433cbb8.js} +7 -7
  112. package/dist/{main-5532481e.js → main-27338bdb.js} +1242 -1283
  113. package/dist/{mapFormMixin-218f9749.js → mapFormMixin-08858c9b.js} +1 -1
  114. package/dist/{publicSenderState-7c91d66d.js → publicSenderState-555493ea.js} +1 -1
  115. package/dist/{python-afd06bc4.js → python-1f5cdaaf.js} +7 -7
  116. package/dist/{razor-28875ccf.js → razor-c6de0365.js} +7 -7
  117. package/dist/{simplebar.min-3682e5c9.js → simplebar.min-4701bd2d.js} +1 -1
  118. package/dist/style.css +2 -2
  119. package/dist/{template-cd101772.js → template-4a9f537a.js} +1 -1
  120. package/dist/{throttle-3a262479.js → throttle-c9487ab5.js} +2 -2
  121. package/dist/{tinycolor-ca02e626.js → tinycolor-bf607154.js} +1 -1
  122. package/dist/{tippy.esm-a7740684.js → tippy.esm-b5d60518.js} +5 -5
  123. package/dist/{tsMode-bc258439.js → tsMode-6d5d0e5e.js} +7 -7
  124. package/dist/{typescript-ac68850c.js → typescript-8e88020b.js} +7 -7
  125. package/dist/{utils-b0646315.js → utils-86f144bc.js} +1 -1
  126. package/dist/{vuedraggable.umd-934a0379.js → vuedraggable.umd-66db3099.js} +1 -1
  127. package/dist/{xml-a8591419.js → xml-95bc7065.js} +7 -7
  128. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { c as y, a4 as L, au as B, b as C, av as T, aw as j, ax as K, ay as Y, az as W, V as F, aA as X, aB as J, n as d, s as b, ae as h, aC as Q, g as m, aD as _, aE as ee, aF as te, aG as R, p as ne, h as D, I as M, aH as U, a3 as ae, aI as re, ak as ie } from "./main-5532481e.js";
1
+ import { c as h, a4 as L, au as H, b as C, av as T, aw as j, ax as K, ay as Y, az as W, V as B, aA as X, aB as J, n as d, s as _, ae as y, aC as Q, g as m, aD as b, aE as ee, aF as te, aG as F, p as ne, h as R, I as M, aH as U, H as ae, aI as re, ak as ie } from "./main-27338bdb.js";
2
2
  import { m as v, a as w, b as se } from "./vuex.esm-4a0fff7c.js";
3
3
  import { a as u } from "./anime.es-e284c852.js";
4
- import { g as E } from "./image-a902f5a5.js";
5
- import "./index-d81be181.js";
4
+ import { g as E } from "./image-5f9f36b5.js";
5
+ import "./index-a65761df.js";
6
6
  import { v as S } from "./index-805c56e4.js";
7
7
  const k = {
8
8
  AD: {
@@ -1256,7 +1256,7 @@ const k = {
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
1258
  }, ce = () => oe(() => {
1259
- window.$stripe = Stripe(y.stripe.publishableKey, { locale: L.lang || "en" });
1259
+ window.$stripe = Stripe(h.stripe.publishableKey, { locale: L.lang || "en" });
1260
1260
  });
1261
1261
  ce();
1262
1262
  const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
@@ -1267,10 +1267,10 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1267
1267
  SUBMIT_PROMOTION_CODE: pe,
1268
1268
  SUBMIT_PAYMENT_METHOD: O,
1269
1269
  SUBMIT_FORM_PLAN: ge,
1270
- REMOVE_SUBSCRIPTION_ITEM: ye,
1270
+ REMOVE_SUBSCRIPTION_ITEM: he,
1271
1271
  CONFIRM_PAYMENT: N,
1272
1272
  SUBMIT_FORM_PAYMENT: x,
1273
- SUBMIT_FORM_PRODUCTS: he
1273
+ SUBMIT_FORM_PRODUCTS: ye
1274
1274
  } = J, 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 },
@@ -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: B(z)
1300
+ form: H(z)
1301
1301
  },
1302
1302
  getters: {
1303
1303
  isPosting: ({ isPosting: n }) => n,
@@ -1346,7 +1346,7 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1346
1346
  getMeteredProduct: (n, e) => (t) => {
1347
1347
  if (!t)
1348
1348
  throw new Error("Missing parameter meteredType");
1349
- const a = e.products, r = Object.keys(a).find((s) => C(a[s], "metadata.meteredType") === t);
1349
+ const a = e.products, r = Object.keys(a).find((i) => C(a[i], "metadata.meteredType") === t);
1350
1350
  return a[r];
1351
1351
  },
1352
1352
  formPromotion: (n) => n.form.promotion,
@@ -1357,19 +1357,19 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1357
1357
  const { accountType: t, interval: a, quantity: r } = n.form.plan;
1358
1358
  if (!t || !a)
1359
1359
  return null;
1360
- const s = e.getPrice(t, a);
1360
+ const i = e.getPrice(t, a);
1361
1361
  return {
1362
1362
  quantity: r,
1363
1363
  accountType: t,
1364
1364
  interval: a,
1365
- ...s
1365
+ ...i
1366
1366
  };
1367
1367
  },
1368
1368
  currentPlan: (n, e) => {
1369
1369
  const { subscriptionItems: t } = e;
1370
1370
  if (!t || !t.length)
1371
1371
  return null;
1372
- const a = t.find((s) => C(n.prices[s.stripePriceStripeId], "StripeProduct.metadata.accountType"));
1372
+ const a = t.find((i) => C(n.prices[i.stripePriceStripeId], "StripeProduct.metadata.accountType"));
1373
1373
  if (!a)
1374
1374
  return null;
1375
1375
  const r = n.prices[a.stripePriceStripeId];
@@ -1390,16 +1390,16 @@ 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(s, i, c) {
1394
- const o = s;
1395
- return (!o.intervals[i] || !Object.keys(o.intervals[i]).length) && (o.intervals[i] = {
1393
+ function t(i, s, c) {
1394
+ const o = i;
1395
+ return (!o.intervals[s] || !Object.keys(o.intervals[s]).length) && (o.intervals[s] = {
1396
1396
  subTotalBeforeDiscount: 0,
1397
1397
  vatAmount: 0,
1398
1398
  subTotal: 0,
1399
1399
  totalAmount: 0,
1400
1400
  items: []
1401
1401
  }), Object.keys(c).forEach((l) => {
1402
- Array.isArray(c[l]) ? o.intervals[i][l] = o.intervals[i][l].concat(c[l]) : o.intervals[i][l] += c[l];
1402
+ Array.isArray(c[l]) ? o.intervals[s][l] = o.intervals[s][l].concat(c[l]) : o.intervals[s][l] += c[l];
1403
1403
  }), o;
1404
1404
  }
1405
1405
  let a = {
@@ -1407,28 +1407,28 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1407
1407
  currency: e.formPlan.currency
1408
1408
  };
1409
1409
  function r() {
1410
- const s = (e.formPlan.amount || 0) * e.formPlan.quantity;
1411
- let i = s;
1412
- e.formPromotion && (e.formPromotion.amountOff ? i -= e.formPromotion.amountOff : e.formPromotion.percentOff && (i *= 1 - e.formPromotion.percentOff / 100));
1413
- const c = i * (q[e.formCustomer.region] || 0), o = i + c;
1410
+ const i = (e.formPlan.amount || 0) * e.formPlan.quantity;
1411
+ let s = i;
1412
+ e.formPromotion && (e.formPromotion.amountOff ? s -= e.formPromotion.amountOff : e.formPromotion.percentOff && (s *= 1 - e.formPromotion.percentOff / 100));
1413
+ const c = s * (q[e.formCustomer.region] || 0), o = s + c;
1414
1414
  a = t(a, e.formPlan.interval, {
1415
- subTotalBeforeDiscount: s,
1416
- subTotal: i,
1415
+ subTotalBeforeDiscount: i,
1416
+ subTotal: s,
1417
1417
  vatAmount: c,
1418
1418
  totalAmount: o,
1419
1419
  items: [{
1420
1420
  name: e.formPlan.accountType,
1421
- amount: s,
1421
+ amount: i,
1422
1422
  quantity: e.formPlan.quantity
1423
1423
  }]
1424
1424
  });
1425
1425
  }
1426
- return r(), e.formProducts.forEach((s) => {
1427
- const i = e.priceById(s.stripePriceStripeId);
1428
- if (i) {
1429
- let c = i.interval;
1430
- i.usageType === "one_time" && (c = "oneOff");
1431
- const o = i.amount * s.quantity;
1426
+ return r(), e.formProducts.forEach((i) => {
1427
+ const s = e.priceById(i.stripePriceStripeId);
1428
+ if (s) {
1429
+ let c = s.interval;
1430
+ s.usageType === "one_time" && (c = "oneOff");
1431
+ const o = s.amount * i.quantity;
1432
1432
  let l = o;
1433
1433
  e.formPromotion && (e.formPromotion.amountOff ? l -= e.formPromotion.amountOff : e.formPromotion.percentOff && (l *= 1 - e.formPromotion.percentOff / 100));
1434
1434
  const p = l * (q[e.formCustomer.region] || 0), g = l + p;
@@ -1438,9 +1438,9 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1438
1438
  vatAmount: p,
1439
1439
  totalAmount: g,
1440
1440
  items: [{
1441
- name: i.StripeProduct.name,
1441
+ name: s.StripeProduct.name,
1442
1442
  amount: o,
1443
- quantity: s.quantity
1443
+ quantity: i.quantity
1444
1444
  }]
1445
1445
  });
1446
1446
  }
@@ -1463,7 +1463,7 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1463
1463
  }
1464
1464
  },
1465
1465
  async [de]({ commit: n }) {
1466
- n("setForm", B(z));
1466
+ n("setForm", H(z));
1467
1467
  },
1468
1468
  async [me]({ commit: n }, { key: e, value: t }) {
1469
1469
  n("setFormValue", { key: e, value: t });
@@ -1471,8 +1471,8 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1471
1471
  [V]({ commit: n, getters: e }, { promotionDetails: t, code: a = null } = {}) {
1472
1472
  if (!t)
1473
1473
  return !1;
1474
- const { appliesToStripeProductIds: r } = t, { stripeProductId: s } = e.formPlan || {};
1475
- return Array.isArray(r) && !r.includes(s) ? !1 : (n("setFormValue", { key: "promotion", value: { ...t, code: a } }), !0);
1474
+ const { appliesToStripeProductIds: r } = t, { stripeProductId: i } = e.formPlan || {};
1475
+ return Array.isArray(r) && !r.includes(i) ? !1 : (n("setFormValue", { key: "promotion", value: { ...t, code: a } }), !0);
1476
1476
  },
1477
1477
  async [pe]({ commit: n, getters: e, dispatch: t }, a) {
1478
1478
  try {
@@ -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: s } = a, { last4: i, brand: c } = a.card || {};
1503
- return { id: s, last4: i, brand: c };
1502
+ const { id: i } = a, { last4: s, brand: c } = a.card || {};
1503
+ return { id: i, last4: s, brand: c };
1504
1504
  } catch (a) {
1505
1505
  return this.handleError(a), null;
1506
1506
  } finally {
@@ -1515,19 +1515,19 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1515
1515
  * @param {Boolean} obj.removeUnusedItems Optional if items not specified should be removed, defaults true
1516
1516
  * @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
1517
1517
  */
1518
- async [x]({ commit: n, getters: e, dispatch: t }, { form: a, stripe: { cardElement: r } = {}, removeUnusedItems: s = !0 } = {}) {
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: i } = a, { formCustomer: c, formPromotion: o, customer: l, formDealSource: p } = e;
1521
+ const { items: s } = a, { formCustomer: c, formPromotion: o, customer: l, formDealSource: p } = e;
1522
1522
  let g;
1523
1523
  r && (g = await t(O, { cardElement: r }));
1524
- const P = { ...c, items: i };
1524
+ const P = { ...c, items: s };
1525
1525
  g && (P.paymentMethod = g), o && o.code && (P.promotionCode = o.code), p && (P.dealSource = p);
1526
- const { data: Z = {} } = await T.product(P, { removeUnusedItems: s }), { clientSecrets: $ } = Z, H = g && g.id ? g.id : l && l.paymentMethodId;
1527
- return $ && $.length && H ? await t(N, { clientSecrets: $, paymentMethodId: H }) : !0;
1528
- } catch (i) {
1529
- this.handleError(i);
1530
- const c = (i.errorCode ? le(i.errorCode) : "") || i.message;
1526
+ const { data: Z = {} } = await T.product(P, { removeUnusedItems: i }), { clientSecrets: $ } = Z, D = g && g.id ? g.id : l && l.paymentMethodId;
1527
+ return $ && $.length && D ? await t(N, { clientSecrets: $, paymentMethodId: D }) : !0;
1528
+ } catch (s) {
1529
+ this.handleError(s);
1530
+ const c = (s.errorCode ? le(s.errorCode) : "") || s.message;
1531
1531
  return n("setFormValue", { key: "error", value: c || "Submit Form Payment Error" }), !1;
1532
1532
  } finally {
1533
1533
  n("setPosting", !1);
@@ -1535,25 +1535,25 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1535
1535
  },
1536
1536
  async [ge]({ commit: n, dispatch: e, getters: t }, { cardElement: a } = {}) {
1537
1537
  try {
1538
- const { formPlan: r, formProducts: s, products: i, subscriptionItems: c } = t;
1538
+ const { formPlan: r, formProducts: i, products: s, subscriptionItems: c } = t;
1539
1539
  if (!r)
1540
1540
  return !1;
1541
- const o = [...c], l = o.findIndex((p) => C(i[p.stripeProductStripeId], "metadata.accountType"));
1541
+ const o = [...c], l = o.findIndex((p) => C(s[p.stripeProductStripeId], "metadata.accountType"));
1542
1542
  return l !== -1 && o.splice(l, 1), o.push({
1543
1543
  stripePriceStripeId: r.stripeId,
1544
1544
  stripeProductStripeId: r.stripeProductId,
1545
1545
  quantity: r.quantity
1546
- }), o.push(...s), await e(x, { form: { items: o }, stripe: { cardElement: a } });
1546
+ }), o.push(...i), await e(x, { form: { items: o }, stripe: { cardElement: a } });
1547
1547
  } catch (r) {
1548
1548
  return this.handleError(r), n("setFormValue", { key: "error", value: r.message || "Submit Plan Error" }), !1;
1549
1549
  }
1550
1550
  },
1551
- async [he]({ commit: n, dispatch: e, getters: t }, { cardElement: a, removeUnusedItems: r = !0 } = {}) {
1551
+ async [ye]({ commit: n, dispatch: e, getters: t }, { cardElement: a, removeUnusedItems: r = !0 } = {}) {
1552
1552
  try {
1553
- const { formProducts: s } = t, i = [...s];
1554
- return i.length ? await e(x, { form: { items: i }, stripe: { cardElement: a }, removeUnusedItems: r }) : !1;
1555
- } catch (s) {
1556
- return this.handleError(s), n("setFormValue", { key: "error", value: s.message || "Submit Products Error" }), !1;
1553
+ const { formProducts: i } = t, s = [...i];
1554
+ return s.length ? await e(x, { form: { items: s }, stripe: { cardElement: a }, removeUnusedItems: r }) : !1;
1555
+ } catch (i) {
1556
+ return this.handleError(i), n("setFormValue", { key: "error", value: i.message || "Submit Products Error" }), !1;
1557
1557
  }
1558
1558
  },
1559
1559
  /**
@@ -1574,9 +1574,9 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1574
1574
  throw new Error("Stripe is not installed on the window");
1575
1575
  if (!Array.isArray(e))
1576
1576
  throw new Error("Param clientSecrets needs to be an array");
1577
- return await e.reduce(async (s, i) => {
1578
- await s;
1579
- const { paymentIntent: c, error: o } = await a.confirmCardPayment(i, { payment_method: t });
1577
+ return await e.reduce(async (i, s) => {
1578
+ await i;
1579
+ const { paymentIntent: c, error: o } = await a.confirmCardPayment(s, { payment_method: t });
1580
1580
  return o ? (o.message && n("setFormValue", { key: "error", value: o.message }), await T.cancelAll({ immediately: !0, status: "incomplete" }), !1) : c && c.status === "succeeded";
1581
1581
  }, Promise.resolve());
1582
1582
  } catch (r) {
@@ -1591,14 +1591,14 @@ 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 [ye]({ commit: n, dispatch: e, getters: t }, { stripePriceStripeId: a }) {
1594
+ async [he]({ commit: n, dispatch: e, getters: t }, { stripePriceStripeId: a }) {
1595
1595
  try {
1596
1596
  if (!a)
1597
1597
  throw new Error("Missing parameter stripePriceStripeId");
1598
1598
  n("setPosting", !0);
1599
1599
  const { subscriptionItems: r } = t;
1600
- let s = [...r];
1601
- return s = s.filter((i) => i.stripePriceStripeId !== a), await e(x, { form: { items: s } });
1600
+ let i = [...r];
1601
+ return i = i.filter((s) => s.stripePriceStripeId !== a), await e(x, { form: { items: i } });
1602
1602
  } catch (r) {
1603
1603
  return this.handleError(r), !1;
1604
1604
  } finally {
@@ -1629,11 +1629,11 @@ const le = (n) => L.te(`errors:${n}`) && L.t(`errors:${n}`), ue = "stripe", {
1629
1629
  }),
1630
1630
  // --- Form ---
1631
1631
  setForm: (n, e) => {
1632
- F.set(n, "form", e);
1632
+ B.set(n, "form", e);
1633
1633
  },
1634
1634
  setFormValue: (n, { key: e, value: t }) => {
1635
1635
  const { root: a, prop: r } = X(n, `form.${e}`);
1636
- F.set(a, r, t);
1636
+ B.set(a, r, t);
1637
1637
  }
1638
1638
  }
1639
1639
  };
@@ -1658,7 +1658,7 @@ const fe = {
1658
1658
  };
1659
1659
  },
1660
1660
  mounted() {
1661
- this.canvasEl = document.getElementById("fireworks"), this.ctx = this.canvasEl.getContext("2d"), u({
1661
+ this.canvasEl = this.getRootElm().getElementById("fireworks"), this.ctx = this.canvasEl.getContext("2d"), u({
1662
1662
  duration: 1 / 0,
1663
1663
  update: () => {
1664
1664
  this.ctx.clearRect(0, 0, this.canvasEl.width, this.canvasEl.height);
@@ -1737,6 +1737,11 @@ const fe = {
1737
1737
  u.random(e - 50, e + 50)
1738
1738
  // 50 as constant
1739
1739
  ), u({ duration: 500 }).finished.then(this.autoClick));
1740
+ },
1741
+ getRootElm() {
1742
+ var t, a;
1743
+ const n = (a = (t = this.$el).getRootNode) == null ? void 0 : a.call(t);
1744
+ return (n == null ? void 0 : n.toString()) === "[object ShadowRoot]" ? n : document;
1740
1745
  }
1741
1746
  }
1742
1747
  };
@@ -1746,17 +1751,17 @@ var Ce = function() {
1746
1751
  }, ve = [function() {
1747
1752
  var n = this, e = n._self._c;
1748
1753
  return e("div", [e("canvas", { attrs: { id: "fireworks" } })]);
1749
- }], _e = /* @__PURE__ */ d(
1754
+ }], be = /* @__PURE__ */ d(
1750
1755
  fe,
1751
1756
  Ce,
1752
1757
  ve,
1753
1758
  !1,
1754
1759
  null,
1755
- "d4677903",
1760
+ "1254a889",
1756
1761
  null,
1757
1762
  null
1758
1763
  );
1759
- const be = _e.exports;
1764
+ const _e = be.exports;
1760
1765
  const Pe = {
1761
1766
  name: "PremiumStripeSelect",
1762
1767
  i18nOptions: {
@@ -1828,7 +1833,7 @@ const Pe = {
1828
1833
  if (typeof e > "u" || typeof t > "u")
1829
1834
  return "";
1830
1835
  const a = e / (this.interval === "month" ? 1 : 12);
1831
- return `${b(a, { currency: t })}/${this.$t("_common:month")}`;
1836
+ return `${_(a, { currency: t })}/${this.$t("_common:month")}`;
1832
1837
  }
1833
1838
  }
1834
1839
  };
@@ -1846,10 +1851,10 @@ var Se = function() {
1846
1851
  }), 0), t("div", { staticClass: "text-primary-600 absolute whitespace-nowrap text-[13px] left-[88%] top-[112%]" }, [t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }), t("path", { attrs: { d: "M3.78467 5.87805C4.42683 7.25608 8.24738 13.7995 10.2964 15.6909C13.8158 18.9395 19.2241 17.4113 22.0419 16.6886", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } })]), t("span", { staticStyle: { "padding-left": "0.25em" }, domProps: { textContent: e._s(e.$t("saveYearly")) } })])])]), t("div", { staticClass: "PriceGrid" }, e._l(e.plans, function(a, r) {
1847
1852
  return t("div", { key: r, staticClass: "PriceItem anim-block", class: {
1848
1853
  selected: e.plan === a.accountType
1849
- }, on: { click: function(s) {
1854
+ }, on: { click: function(i) {
1850
1855
  return e.$emit("update:plan", a.accountType);
1851
- } } }, [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(s) {
1852
- return t("li", { key: s }, [t("span", { domProps: { textContent: e._s(s) } })]);
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) {
1857
+ return t("li", { key: i }, [t("span", { domProps: { textContent: e._s(i) } })]);
1853
1858
  }), 0)]);
1854
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) {
1855
1860
  return e.$emit("next");
@@ -1977,13 +1982,13 @@ const Ie = Ee.exports, Le = {
1977
1982
  logo: '<rect width="48" height="32" rx="4" fill="#D9D9DF"/><rect y="7" width="48" height="7" fill="#51516A"/>'
1978
1983
  },
1979
1984
  get(n, { width: e = 48, height: t = 32 } = {}) {
1980
- const a = this[n] ? this[n] : this.default, r = a.logo, s = `<svg width="${e}" height="${t}" viewBox="0 0 48 32" fill="none" xmlns="http://www.w3.org/2000/svg">${r}</svg>`;
1985
+ const a = this[n] ? this[n] : this.default, r = a.logo, i = `<svg width="${e}" height="${t}" viewBox="0 0 48 32" fill="none" xmlns="http://www.w3.org/2000/svg">${r}</svg>`;
1981
1986
  return {
1982
1987
  name: a.name,
1983
- logo: s
1988
+ logo: i
1984
1989
  };
1985
1990
  }
1986
- }, De = {
1991
+ }, Re = {
1987
1992
  data() {
1988
1993
  return {
1989
1994
  stripeCardElementId: null,
@@ -2009,10 +2014,15 @@ const Ie = Ee.exports, Le = {
2009
2014
  },
2010
2015
  methods: {
2011
2016
  mountCardInput() {
2017
+ if (this.isShadowParent()) {
2018
+ const n = this.getRootElm().querySelector(this.stripeCardElementId);
2019
+ this.copyInputStyle(n);
2020
+ }
2012
2021
  this.stripeCardElementId && this.callCard("mount", this.stripeCardElementId);
2013
2022
  },
2014
2023
  unmountCardInput() {
2015
- this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId);
2024
+ var n;
2025
+ this.stripeCardElementId && this.callCard("unmount", this.stripeCardElementId), this.isShadowParent() && ((n = document.querySelector(this.stripeCardElementId)) == null || n.remove());
2016
2026
  },
2017
2027
  callCard(n, e) {
2018
2028
  this.card && typeof this.card[n] == "function" && this.card[n](e);
@@ -2039,14 +2049,31 @@ const Ie = Ee.exports, Le = {
2039
2049
  iconColor: "#fa755a"
2040
2050
  }
2041
2051
  };
2042
- this.card = this.elements.create("card", { style: e }), document.querySelector(n) && this.mountCardInput(), this.card.addEventListener("change", (t) => {
2043
- const { error: a, complete: r } = t;
2044
- a ? this.elementsError = a.message : this.elementsError = "", this.cardIsComplete = r;
2052
+ this.card = this.elements.create("card", { style: e }), this.getRootElm().querySelector(n) && this.mountCardInput(), this.card.addEventListener("change", (a) => {
2053
+ const { error: r, complete: i } = a;
2054
+ r ? this.elementsError = r.message : this.elementsError = "", this.cardIsComplete = i;
2045
2055
  });
2056
+ },
2057
+ isShadowParent() {
2058
+ var e, t;
2059
+ const n = (t = (e = this.$el).getRootNode) == null ? void 0 : t.call(e);
2060
+ return (n == null ? void 0 : n.toString()) === "[object ShadowRoot]";
2061
+ },
2062
+ getRootElm() {
2063
+ var n, e;
2064
+ return this.isShadowParent() ? (e = (n = this.$el).getRootNode) == null ? void 0 : e.call(n) : document;
2065
+ },
2066
+ copyInputStyle(n) {
2067
+ const e = n.cloneNode(!0), { x: t, y: a } = n.getBoundingClientRect();
2068
+ e.style.position = "absolute", e.style.top = `${a}px`, e.style.left = `${t}px`;
2069
+ const r = Number(
2070
+ window.getComputedStyle(n).getPropertyValue("--app-z-index")
2071
+ );
2072
+ e.style.zIndex = r + 1e3, document.body.appendChild(e);
2046
2073
  }
2047
2074
  }
2048
2075
  };
2049
- const He = {
2076
+ const De = {
2050
2077
  i18nOptions: {
2051
2078
  namespaces: "PremiumStripeForm",
2052
2079
  messages: {
@@ -2234,7 +2261,7 @@ const He = {
2234
2261
  components: {
2235
2262
  CAccordion: Ie
2236
2263
  },
2237
- mixins: [De],
2264
+ mixins: [Re],
2238
2265
  props: {
2239
2266
  formPlan: {
2240
2267
  type: Object,
@@ -2320,24 +2347,24 @@ const He = {
2320
2347
  promotionDescription() {
2321
2348
  let n = "- ";
2322
2349
  const { amountOff: e, percentOff: t } = this.promotion || {};
2323
- return e ? n += b(e, { currency: this.currency }) : t && (n += `${t}%`), n;
2350
+ return e ? n += _(e, { currency: this.currency }) : t && (n += `${t}%`), n;
2324
2351
  },
2325
2352
  reasonableUseQuotas() {
2326
- var s;
2327
- const n = {}, e = (s = this.formPlan) == null ? void 0 : s.StripeProduct;
2353
+ var i;
2354
+ const n = {}, e = (i = this.formPlan) == null ? void 0 : i.StripeProduct;
2328
2355
  if (!e)
2329
2356
  return [];
2330
2357
  const { quotas: t, autoAddMeteredTypes: a } = e.metadata, r = t[this.companyAccount.accountConfigurationKeyName] || {};
2331
- return Object.keys(r).forEach((i) => {
2332
- i === "bankId" && h[y.brand].defaultRegion === "US" || (n[i] = {
2333
- type: i,
2334
- count: r[i] || 0,
2358
+ return Object.keys(r).forEach((s) => {
2359
+ s === "bankId" && y[h.brand].defaultRegion === "US" || (n[s] = {
2360
+ type: s,
2361
+ count: r[s] || 0,
2335
2362
  cost: null
2336
2363
  });
2337
- }), a.forEach((i) => {
2338
- if (i === "bankId" && h[y.brand].defaultRegion === "US")
2364
+ }), a.forEach((s) => {
2365
+ if (s === "bankId" && y[h.brand].defaultRegion === "US")
2339
2366
  return;
2340
- const c = this.getMeteredProduct(i);
2367
+ const c = this.getMeteredProduct(s);
2341
2368
  if (!c)
2342
2369
  return;
2343
2370
  const o = c.prices.find((p) => {
@@ -2346,13 +2373,13 @@ const He = {
2346
2373
  });
2347
2374
  if (!o)
2348
2375
  return;
2349
- const l = b(o.amount, {
2376
+ const l = _(o.amount, {
2350
2377
  currency: o.currency,
2351
2378
  decimals: 2,
2352
2379
  hideZeroDecimals: !0
2353
2380
  });
2354
- n[i] || (n[i] = { type: i, count: 0, cost: null }), n[i].cost = l;
2355
- }), Object.keys(n).map((i) => n[i]);
2381
+ n[s] || (n[s] = { type: s, count: 0, cost: null }), n[s].cost = l;
2382
+ }), Object.keys(n).map((s) => n[s]);
2356
2383
  }
2357
2384
  },
2358
2385
  watch: {
@@ -2372,11 +2399,12 @@ const He = {
2372
2399
  easing: "spring(1, 80, 20, 10)"
2373
2400
  });
2374
2401
  }), this.customer) {
2375
- this.useExistingCard = !0, this.useExistingCustomer = !0, ["name", "region", "email"].forEach((e) => {
2376
- this.customer[e] && this.$emit("input", { key: `customer.${e}`, value: this.customer[e] });
2402
+ const n = !!this.customer.paymentMethodId;
2403
+ this.useExistingCard = n, this.useExistingCustomer = n, ["name", "region", "email"].forEach((t) => {
2404
+ this.customer[t] && this.$emit("input", { key: `customer.${t}`, value: this.customer[t] });
2377
2405
  });
2378
- const { data: n } = await Q();
2379
- this.setPromotion({ promotionDetails: n });
2406
+ const { data: e } = await Q();
2407
+ this.setPromotion({ promotionDetails: e });
2380
2408
  }
2381
2409
  this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
2382
2410
  },
@@ -2386,7 +2414,7 @@ const He = {
2386
2414
  setPromotion: m.SET_FORM_PROMOTION,
2387
2415
  submitPlan: m.SUBMIT_FORM_PLAN
2388
2416
  }),
2389
- priceFormat: b,
2417
+ priceFormat: _,
2390
2418
  getIntervalTitle(n) {
2391
2419
  return n === "month" ? this.$t("_common:monthly").capitalize() : n === "year" ? this.$t("_common:yearly").capitalize() : n === "oneOff" ? this.$t("oneTimeFee").capitalize() : null;
2392
2420
  },
@@ -2408,13 +2436,13 @@ const He = {
2408
2436
  }
2409
2437
  }
2410
2438
  };
2411
- var Be = function() {
2439
+ var He = function() {
2412
2440
  var e = this, t = e._self._c;
2413
2441
  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) {
2414
2442
  return e.$emit("update:interval", e.formPlan.interval === "year" ? "month" : "year");
2415
2443
  } } })], 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) {
2416
- 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(s, i) {
2417
- return t("div", { key: i, staticClass: "flex justify-between w-full pb-1 mt-2" }, [t("div", { staticClass: "font-medium opacity-70" }, [e._v(" " + e._s(s.quantity) + " x " + e._s(s.name.capitalize()) + " ")]), t("div", { staticClass: "text-right opacity-70" }, [e._v(e._s(e.priceFormat(s.amount, { currency: e.currency })))])]);
2444
+ 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) {
2445
+ 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(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 })))])]);
2418
2446
  })], 2);
2419
2447
  }), 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) {
2420
2448
  return e.$emit("input", { key: "promotion", value: null });
@@ -2461,17 +2489,17 @@ var Be = function() {
2461
2489
  })], 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) {
2462
2490
  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()]);
2463
2491
  }), 0)])])], 1);
2464
- }, Fe = [], Re = /* @__PURE__ */ d(
2492
+ }, Be = [], Fe = /* @__PURE__ */ d(
2493
+ De,
2465
2494
  He,
2466
2495
  Be,
2467
- Fe,
2468
2496
  !1,
2469
2497
  null,
2470
- "b5b143cd",
2498
+ "3d9ab864",
2471
2499
  null,
2472
2500
  null
2473
2501
  );
2474
- const Ue = Re.exports, Ae = {
2502
+ const Ue = Fe.exports, Ae = {
2475
2503
  name: "PremiumStripe",
2476
2504
  i18nOptions: {
2477
2505
  namespaces: "premiumStripe",
@@ -2495,7 +2523,7 @@ const Ue = Re.exports, Ae = {
2495
2523
  `
2496
2524
  },
2497
2525
  widget: {
2498
- text: `Service provided by ${h[y.brand].name}. <a href="${h[y.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Terms</a> for ${h[y.brand].name}.`
2526
+ text: `Service provided by ${y[h.brand].name}. <a href="${y[h.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Terms</a> for ${y[h.brand].name}.`
2499
2527
  }
2500
2528
  },
2501
2529
  features: {
@@ -2504,7 +2532,7 @@ const Ue = Re.exports, Ae = {
2504
2532
  "Send up to 5 docs / month",
2505
2533
  "Up to 2 templates",
2506
2534
  "Real-time audit trail",
2507
- ..._.checkFeature("bankId") ? ["BankID"] : [],
2535
+ ...b.checkFeature("bankId") ? ["BankID"] : [],
2508
2536
  "SMS"
2509
2537
  ],
2510
2538
  base: [
@@ -2514,7 +2542,7 @@ const Ue = Re.exports, Ae = {
2514
2542
  "Members",
2515
2543
  "Reminders",
2516
2544
  "Real-time audit trail",
2517
- ..._.checkFeature("bankId") ? ["BankID"] : [],
2545
+ ...b.checkFeature("bankId") ? ["BankID"] : [],
2518
2546
  "SMS"
2519
2547
  ],
2520
2548
  pro: [
@@ -2527,8 +2555,8 @@ const Ue = Re.exports, Ae = {
2527
2555
  "Custom subdomain",
2528
2556
  "Custom email address",
2529
2557
  "Version control",
2530
- ..._.checkFeature("bankId") ? ["BankID"] : [],
2531
- `Hide ${h[y.brand].name}-logo`,
2558
+ ...b.checkFeature("bankId") ? ["BankID"] : [],
2559
+ `Hide ${y[h.brand].name}-logo`,
2532
2560
  "CRM integrations"
2533
2561
  ]
2534
2562
  },
@@ -2558,7 +2586,7 @@ const Ue = Re.exports, Ae = {
2558
2586
  `
2559
2587
  },
2560
2588
  widget: {
2561
- text: `Tjänsten tillhandahålls via ${h[y.brand].name}. <a href="${h[y.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Villkor</a> för ${h[y.brand].name}.`
2589
+ text: `Tjänsten tillhandahålls via ${y[h.brand].name}. <a href="${y[h.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Villkor</a> för ${y[h.brand].name}.`
2562
2590
  }
2563
2591
  },
2564
2592
  features: {
@@ -2567,7 +2595,7 @@ const Ue = Re.exports, Ae = {
2567
2595
  "Skicka upp till 5 dokument / månad",
2568
2596
  "Upp till 2 mallar",
2569
2597
  "Dokumentspårning i realtid",
2570
- ..._.checkFeature("bankId") ? ["BankID"] : [],
2598
+ ...b.checkFeature("bankId") ? ["BankID"] : [],
2571
2599
  "SMS"
2572
2600
  ],
2573
2601
  base: [
@@ -2577,7 +2605,7 @@ const Ue = Re.exports, Ae = {
2577
2605
  "Medlemmar",
2578
2606
  "Påminnelser",
2579
2607
  "Dokumentspårning i realtid",
2580
- ..._.checkFeature("bankId") ? ["BankID"] : [],
2608
+ ...b.checkFeature("bankId") ? ["BankID"] : [],
2581
2609
  "SMS"
2582
2610
  ],
2583
2611
  pro: [
@@ -2590,8 +2618,8 @@ const Ue = Re.exports, Ae = {
2590
2618
  "Subdomän",
2591
2619
  "Egen e-postdomän",
2592
2620
  "Versionshantering",
2593
- ..._.checkFeature("bankId") ? ["BankID"] : [],
2594
- `Göm ${h[y.brand].name}-logo`,
2621
+ ...b.checkFeature("bankId") ? ["BankID"] : [],
2622
+ `Göm ${y[h.brand].name}-logo`,
2595
2623
  "CRM-Integrationer"
2596
2624
  ]
2597
2625
  },
@@ -2605,7 +2633,7 @@ const Ue = Re.exports, Ae = {
2605
2633
  }
2606
2634
  },
2607
2635
  components: {
2608
- Confetti: be,
2636
+ Confetti: _e,
2609
2637
  PremiumStripeSelect: we,
2610
2638
  PremiumStripeForm: Ue
2611
2639
  },
@@ -2705,7 +2733,7 @@ const Ue = Re.exports, Ae = {
2705
2733
  }
2706
2734
  },
2707
2735
  beforeCreate() {
2708
- this.$store.state.stripe || this.$store.registerModule("stripe", G);
2736
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", G);
2709
2737
  },
2710
2738
  async created() {
2711
2739
  this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
@@ -2818,10 +2846,10 @@ const ze = Ne.exports, qe = {
2818
2846
  stripeCustomDealToken: "settings/stripeCustomDealToken"
2819
2847
  }),
2820
2848
  isPremium() {
2821
- return R.includes(this.subscription.type);
2849
+ return F.includes(this.subscription.type);
2822
2850
  },
2823
2851
  isPremiumLike() {
2824
- return ["trial", ...R].includes(this.subscription.type);
2852
+ return ["trial", ...F].includes(this.subscription.type);
2825
2853
  },
2826
2854
  isProLike() {
2827
2855
  return ["pro", "trial"].includes(this.subscription.type);
@@ -3051,8 +3079,8 @@ var tt = function() {
3051
3079
  var e = this, t = e._self._c;
3052
3080
  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() {
3053
3081
  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))])];
3054
- }), e.$slots.content ? t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [e._t("content")], 2) : e._e()], 2), t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ openUpgradeModal: a, isLegacy: r, showCalloutConvertStripe: s }) {
3055
- return [t("div", [r || s ? t("CalloutLegacy", { attrs: { mode: r ? "legacy" : "invoice" } }) : e._e(), t("CButton", { attrs: { loading: e.isLoading, disabled: r || s, type: "secondary", wide: "" }, on: { click: function(i) {
3082
+ }), e.$slots.content ? t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [e._t("content")], 2) : e._e()], 2), t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ openUpgradeModal: a, isLegacy: r, showCalloutConvertStripe: i }) {
3083
+ return [t("div", [r || i ? t("CalloutLegacy", { attrs: { mode: r ? "legacy" : "invoice" } }) : e._e(), t("CButton", { attrs: { loading: e.isLoading, disabled: r || i, type: "secondary", wide: "" }, on: { click: function(s) {
3056
3084
  return e.onActionClick(e.actionFunction || a);
3057
3085
  } } }, [e._t("actionText", function() {
3058
3086
  return [e._v(e._s(e.$t("upgradeButton")))];
@@ -3200,7 +3228,7 @@ const pt = mt.exports, gt = {
3200
3228
  try {
3201
3229
  ne("/documentLimitReached", {});
3202
3230
  } catch (n) {
3203
- D(n, { showMessage: !1 });
3231
+ R(n, { showMessage: !1 });
3204
3232
  }
3205
3233
  },
3206
3234
  async mounted() {
@@ -3229,20 +3257,20 @@ const pt = mt.exports, gt = {
3229
3257
  try {
3230
3258
  await U.post({ code: "freeUserDocs" }), M.setItem("voucher-freeUserDocs-company-id", this.account.CompanyId), await this.loadCurrentCompany(), ae("success", this.$t("voucherSuccessMessage", { count: this.voucherDocCount })), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade();
3231
3259
  } catch (n) {
3232
- D(n);
3260
+ R(n);
3233
3261
  } finally {
3234
3262
  this.isLoading = !1;
3235
3263
  }
3236
3264
  }
3237
3265
  }
3238
3266
  };
3239
- var yt = function() {
3267
+ var ht = function() {
3240
3268
  var e = this, t = e._self._c;
3241
3269
  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()]);
3242
- }, ht = [], ft = /* @__PURE__ */ d(
3270
+ }, yt = [], ft = /* @__PURE__ */ d(
3243
3271
  gt,
3244
- yt,
3245
3272
  ht,
3273
+ yt,
3246
3274
  !1,
3247
3275
  null,
3248
3276
  null,
@@ -3274,13 +3302,13 @@ const Ct = ft.exports, vt = {
3274
3302
  }
3275
3303
  }
3276
3304
  };
3277
- var _t = function() {
3305
+ var bt = function() {
3278
3306
  var e = this, t = e._self._c;
3279
3307
  return t("PremiumRestrictedBase", { attrs: { title: e.$t("title"), "sub-title": e.$t("subTitle"), "on-upgrade": e.onUpgrade } });
3280
- }, bt = [], Pt = /* @__PURE__ */ d(
3308
+ }, _t = [], Pt = /* @__PURE__ */ d(
3281
3309
  vt,
3282
- _t,
3283
3310
  bt,
3311
+ _t,
3284
3312
  !1,
3285
3313
  null,
3286
3314
  null,
@@ -3331,7 +3359,7 @@ const kt = {
3331
3359
  }
3332
3360
  },
3333
3361
  beforeCreate() {
3334
- this.$store.state.stripe || this.$store.registerModule("stripe", G);
3362
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", G);
3335
3363
  },
3336
3364
  created() {
3337
3365
  this.initLicense();
@@ -3344,7 +3372,7 @@ const kt = {
3344
3372
  updateFormValue: m.SET_STRIPE_FORM_VALUE,
3345
3373
  submitPlan: m.SUBMIT_FORM_PLAN
3346
3374
  }),
3347
- priceFormat: b,
3375
+ priceFormat: _,
3348
3376
  async initLicense() {
3349
3377
  this.subscription.paymentMethod === "stripe" && (await this.loadPrices(), await this.resetStripeForm(), this.updateFormValue({ key: "plan", value: this.currentPlan }));
3350
3378
  },
@@ -3361,7 +3389,7 @@ const kt = {
3361
3389
  else
3362
3390
  throw new Error("Cannot upgrade license as current paymentMethod is not valid");
3363
3391
  } catch (t) {
3364
- D(t);
3392
+ R(t);
3365
3393
  }
3366
3394
  e && await n();
3367
3395
  },
@@ -3429,7 +3457,7 @@ var Et = function() {
3429
3457
  null,
3430
3458
  null
3431
3459
  );
3432
- const Dt = Lt.exports, Ht = {
3460
+ const Rt = Lt.exports, Dt = {
3433
3461
  i18nOptions: {
3434
3462
  namespaces: "stats",
3435
3463
  messages: {
@@ -3456,20 +3484,20 @@ const Dt = Lt.exports, Ht = {
3456
3484
  }
3457
3485
  }
3458
3486
  };
3459
- var Bt = function() {
3487
+ var Ht = function() {
3460
3488
  var e = this, t = e._self._c;
3461
3489
  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);
3462
- }, Ft = [], Rt = /* @__PURE__ */ d(
3490
+ }, Bt = [], Ft = /* @__PURE__ */ d(
3491
+ Dt,
3463
3492
  Ht,
3464
3493
  Bt,
3465
- Ft,
3466
3494
  !1,
3467
3495
  null,
3468
3496
  null,
3469
3497
  null,
3470
3498
  null
3471
3499
  );
3472
- const Ut = Rt.exports, At = {
3500
+ const Ut = Ft.exports, At = {
3473
3501
  i18nOptions: {
3474
3502
  namespaces: "stats",
3475
3503
  messages: {
@@ -3564,12 +3592,12 @@ const Kt = jt.exports, Yt = {
3564
3592
  messages: {
3565
3593
  sv: {
3566
3594
  title: "Redigerbara dokumentmallar",
3567
- subTitle: "För att använda redigerbara dokumentmallar behöver du uppgradera ditt konto till Pro.",
3595
+ subTitle: "För att använda redigerbara dokumentmallar behöver du uppgradera till ett betalkonto.",
3568
3596
  actionText: "Uppgradera konto"
3569
3597
  },
3570
3598
  en: {
3571
3599
  title: "Editable document templates",
3572
- subTitle: "To use editable document templates you need to upgrade your account to Pro.",
3600
+ subTitle: "To use editable document templates you need to upgrade to a paid plan.",
3573
3601
  actionText: "Upgrade my plan"
3574
3602
  }
3575
3603
  }
@@ -3604,7 +3632,7 @@ const Qt = Jt.exports, I = {
3604
3632
  documents: Ct,
3605
3633
  personalMessage: St,
3606
3634
  licenses: Tt,
3607
- inviteCreators: Dt,
3635
+ inviteCreators: Rt,
3608
3636
  stats: Ut,
3609
3637
  documentBlocks: zt,
3610
3638
  bankIdAndSms: Kt,
@@ -3663,7 +3691,8 @@ export {
3663
3691
  mn as I,
3664
3692
  ze as P,
3665
3693
  Ke as a,
3666
- Ie as b,
3694
+ G as b,
3695
+ Ie as c,
3667
3696
  k as r,
3668
- De as s
3697
+ Re as s
3669
3698
  };