@cling-se/widget 0.19.13 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.internal.md +5 -5
  3. package/dist/{AddClientCallout-Da7NOVA5.js → AddClientCallout-DOzqL6Ei.js} +4 -4
  4. package/dist/{AnswerModal-B2ApEIfo.js → AnswerModal-aoQoCe3o.js} +679 -681
  5. package/dist/{AttachmentItem-BM_DzA34.js → AttachmentItem-DTqI5mwy.js} +4 -4
  6. package/dist/{BaseUpload-CGVbfe4H.js → BaseUpload-nxVqZX3O.js} +2 -2
  7. package/dist/{BlockMedia-Dza5TjFS.js → BlockMedia-BYVRSrze.js} +1 -1
  8. package/dist/{CCallout-BpHUnBsq.js → CCallout-Db9YEwws.js} +1 -1
  9. package/dist/{CCurrencyDropdown-Glt0CY7w.js → CCurrencyDropdown-sRqig-2P.js} +3 -3
  10. package/dist/{CDropdownItem-rpcdHW76.js → CDropdownItem-CZO28TQW.js} +96 -96
  11. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js → CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js} +2 -2
  12. package/dist/{CPhoneFormat-uxMRSGaN.js → CPhoneFormat-CUtvNKnk.js} +1 -1
  13. package/dist/{CPhoneInput-DnigKWiR.js → CPhoneInput-kOcllgTr.js} +5 -5
  14. package/dist/{CPriceInput-BNVWpxMd.js → CPriceInput-3X1Et9ny.js} +2 -2
  15. package/dist/{CSelect-ioLMsxK3.js → CSelect-DVCPHAdo.js} +1 -1
  16. package/dist/{CSkeleton-BsApoNUe.js → CSkeleton-Bxdz5nlu.js} +1 -1
  17. package/dist/{ClientAutocomplete-Dof0Wnp9.js → ClientAutocomplete-DCphFPmv.js} +3 -3
  18. package/dist/{ClientModal-CVsZrXLV.js → ClientModal-oTn-trfu.js} +218 -248
  19. package/dist/{ColorPicker-Ca2a0Dib.js → ColorPicker-Bs_kXTFe.js} +1 -1
  20. package/dist/{CompanyModal-C6AUjpnI.js → CompanyModal-DzXAdbGd.js} +7 -7
  21. package/dist/{ContentWrapper-wTfXDKX-.js → ContentWrapper-2wh0OBB0.js} +6 -6
  22. package/dist/{CoverBlockSettings-BkWhPlN2.js → CoverBlockSettings-DSOoms9U.js} +7 -7
  23. package/dist/{DocAnswer-DoRmk17c.js → DocAnswer-B529e1E2.js} +2 -2
  24. package/dist/{DocDetails-D_E3lERC.js → DocDetails-BHqTgx1H.js} +4 -4
  25. package/dist/{DocForm-DbpjRBRm.js → DocForm-DOdyjHWA.js} +99 -97
  26. package/dist/{DocFormSend-DN2k9giy.js → DocFormSend-DfrWjvTy.js} +2 -2
  27. package/dist/{DocLinks-BvtcG9-D.js → DocLinks-BRJnZ1rA.js} +2 -2
  28. package/dist/{DocModalBase-D_LZXbIj.js → DocModalBase-Cf-C2hVQ.js} +1 -1
  29. package/dist/{DocPrint-BrjeZaPK.js → DocPrint-OVtsohie.js} +1 -1
  30. package/dist/{DocReceipt-BXAGCO6L.js → DocReceipt-tmBbom2x.js} +2 -2
  31. package/dist/{DocSendReminder-BtcutNHV.js → DocSendReminder-C6fGp2qu.js} +1 -1
  32. package/dist/{DocTextEditor-DYrnRt6O.js → DocTextEditor-D3EjoBGe.js} +171 -148
  33. package/dist/{DocTimeline-AZQVm00F.js → DocTimeline-CChHnG2Q.js} +2 -2
  34. package/dist/{DocumentClient-BTsdprjd.js → DocumentClient-kV1ps0P5.js} +5 -5
  35. package/dist/{DocumentLayout-DbXHslTY.js → DocumentLayout-B2vKSnWD.js} +21 -21
  36. package/dist/{DocumentLogotype-B6ENzX02.js → DocumentLogotype-BldUocoJ.js} +4 -4
  37. package/dist/{DocumentVoided-B9AHAIvl.js → DocumentVoided-rZxx0TDM.js} +1 -1
  38. package/dist/{EmbedInput-BN6DFeq0.js → EmbedInput-C-bORXEJ.js} +3 -3
  39. package/dist/{EmbedSettings-DD9uIXDi.js → EmbedSettings-CaRoWZzj.js} +3 -3
  40. package/dist/{ErrorCallout-BFezjCn3.js → ErrorCallout-BQkcHI49.js} +1 -1
  41. package/dist/{FilePreviewModal-CXE7RahY.js → FilePreviewModal-egIS6jnw.js} +2 -2
  42. package/dist/{Flag-BCe6xe-D.js → Flag-DUrDD56m.js} +1 -1
  43. package/dist/{HeaderSettings-Uyr0qhas.js → HeaderSettings-Cfql7vW5.js} +9 -9
  44. package/dist/{ImageSelectModal-CSW3shsb.js → ImageSelectModal-3U22LhEN.js} +3 -3
  45. package/dist/{ImageUploadWrapper-DyunQdxO.js → ImageUploadWrapper-DWmlB4Ha.js} +2 -2
  46. package/dist/{Index-BRhtJdqU.js → Index-38AEfgHb.js} +4 -4
  47. package/dist/{Index-DAnljErU.js → Index-7rnf6UDQ.js} +6 -6
  48. package/dist/{Index-BUwF7tDs.js → Index-BepK484N.js} +3 -3
  49. package/dist/{Index-r-bi4xvP.js → Index-BlBA6eMl.js} +4 -4
  50. package/dist/{Index-CdtKkfEh.js → Index-BuPSt_Hb.js} +8 -8
  51. package/dist/{Index-B8EGrohn.js → Index-C2jLt_-J.js} +4 -4
  52. package/dist/{Index-DRVJFBy_.js → Index-CKisxkqL.js} +3 -3
  53. package/dist/{Index-BcPpzfWP.js → Index-CN1flEMh.js} +1 -1
  54. package/dist/{Index-D91m2xKm.js → Index-CRAk8dmP.js} +26 -17
  55. package/dist/{Index-BieU1ZTV.js → Index-CZFXyZp-.js} +2 -2
  56. package/dist/{Index-BGVViv6b.js → Index-C_2Gf2Da.js} +46 -37
  57. package/dist/{Index-ziuExFyj.js → Index-CcOeCvOe.js} +5 -5
  58. package/dist/{Index-DI91U3g3.js → Index-CcSq7dWo.js} +1 -1
  59. package/dist/{Index-Ch2Y3XbD.js → Index-Ckr5i1Li.js} +258 -240
  60. package/dist/{Index-VRzwBnM4.js → Index-Cl7KBtZX.js} +4 -4
  61. package/dist/{Index-CpZWI-QN.js → Index-CyAAbl1D.js} +14 -14
  62. package/dist/{Index-DMDWW0zp.js → Index-CyYFJf0D.js} +5 -5
  63. package/dist/Index-D05o3s14.js +4 -0
  64. package/dist/{Index-jSpfKPKP.js → Index-D1PUyqFa.js} +8 -8
  65. package/dist/{Index-32_BJudF.js → Index-DAI1qHEl.js} +3 -3
  66. package/dist/{Index-DaXHQaxr.js → Index-DAcRb0rT.js} +4 -4
  67. package/dist/{Index-BGsQAzCd.js → Index-DCWl_6gz.js} +9 -9
  68. package/dist/{Index-DH5l8DHo.js → Index-DGq9TdPd.js} +4 -4
  69. package/dist/{Index-Bh5sjhBw.js → Index-DIlbkelD.js} +1 -1
  70. package/dist/{Index-wb02iXXO.js → Index-DR3O2rVd.js} +5 -5
  71. package/dist/{Index-CgdCQDsv.js → Index-DSTJ0ZME.js} +7 -7
  72. package/dist/{Index-BmoysUi1.js → Index-DUKDykzl.js} +2 -2
  73. package/dist/{Index-Dssz58AL.js → Index-DfMMDolH.js} +3 -3
  74. package/dist/{Index-C-rVXB4u.js → Index-DikWyKIw.js} +2 -2
  75. package/dist/{Index-CATlFu8B.js → Index-Dn_EZ_k2.js} +2 -2
  76. package/dist/{Index-CLdIolDF.js → Index-STi0ufm3.js} +2 -2
  77. package/dist/{Index-DBozFV2a.js → Index-l8RB4z_B.js} +4 -4
  78. package/dist/{Index-DKKc3zZQ.js → Index-phqgcko1.js} +6 -6
  79. package/dist/{Index-Cnnkb8ey.js → Index-xKr7qP9f.js} +4 -4
  80. package/dist/{Index.vue_vue_type_script_lang-CUl4C9jx.js → Index.vue_vue_type_script_lang-DsCnlKNn.js} +2 -2
  81. package/dist/{InputToggleRow-e1gC6XnA.js → InputToggleRow-BiyZz3ua.js} +1 -1
  82. package/dist/{ManualPopover-BbqVfuJE.js → ManualPopover-CFwiZHZw.js} +1 -1
  83. package/dist/{MediaWrapper-Bqy-cGev.js → MediaWrapper-B6flFwa-.js} +3 -3
  84. package/dist/{NotBindingText-_GKq6jSE.js → NotBindingText-CyfRBqiL.js} +2 -2
  85. package/dist/{PackageGroup-IiQ0mqWg.js → PackageGroup-DDgLD4Yb.js} +5 -5
  86. package/dist/{PdfTerms-CO7SxSke.js → PdfTerms-zEPJCgb-.js} +2 -2
  87. package/dist/{PdfViewer-apckUEAj.js → PdfViewer-BNFYiBMf.js} +2 -2
  88. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-gCh1Q-qi.js → PlainHtml.vue_vue_type_script_setup_true_lang-CPGJZjFh.js} +1 -1
  89. package/dist/{PriceHeader-CXP09nZ6.js → PriceHeader-B9Mk_GDV.js} +7 -7
  90. package/dist/{SearchApi-CQOtHW43.js → SearchApi-BsSeYGH9.js} +1 -1
  91. package/dist/{SendForm-C3v06Gwx.js → SendForm-Ci2s-FsJ.js} +8 -8
  92. package/dist/{Setup-Dr37DSNY.js → Setup-C5uQOyWH.js} +1 -1
  93. package/dist/{SmartList-Opr_24HD.js → SmartList-BglLgQmN.js} +1 -1
  94. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DtvYuVUg.js → Sortable.vue_vue_type_script_setup_true_lang-C-Uy1WwV.js} +1 -1
  95. package/dist/{TermsSettings-P8IWZn08.js → TermsSettings-BUXZ0GDb.js} +34 -32
  96. package/dist/{ThemeColorRow-BdXx5ClL.js → ThemeColorRow-EJd126k7.js} +3 -3
  97. package/dist/{ToggleBinding-BZyqWBnB.js → ToggleBinding-Bxx2OzYq.js} +4 -4
  98. package/dist/{UploadModal-6E9HzkQ0.js → UploadModal-BjrFM0lw.js} +13 -11
  99. package/dist/{VideoPlayerInput-DRcDC2q-.js → VideoPlayerInput-o2GX5-Ma.js} +4 -4
  100. package/dist/{VideoPlayerSettings-Dw7zEg1k.js → VideoPlayerSettings-DXSwsMJl.js} +2 -2
  101. package/dist/{VideoSelectModal-DIV9-62A.js → VideoSelectModal-BI0-L5dG.js} +3 -3
  102. package/dist/{focusDrawerMixin-CrKt75PZ.js → focusDrawerMixin-Dz9oC1MR.js} +1 -1
  103. package/dist/{formDrawerState-BesayjqS.js → formDrawerState-0vhg7tV-.js} +1 -1
  104. package/dist/fortnoxTheme-B0DA1l7P.js +8 -0
  105. package/dist/{helpers-DOdzW9pA.js → helpers-Dkn2xKzv.js} +1 -1
  106. package/dist/{index-DINik6UH.js → index-Bw8qzZRS.js} +1 -1
  107. package/dist/{index-DWwjiiMe.js → index-D-NDkjvk.js} +1 -1
  108. package/dist/{index-BHg-4y6B.js → index-DI9iTlQc.js} +8 -8
  109. package/dist/{index-DNQzIGHD.js → index-DNBN1EEl.js} +642 -565
  110. package/dist/{index-BnjVWyGe.js → index-Dkh_SXlu.js} +3 -3
  111. package/dist/{index-DDfG6A20.js → index-c4rO163H.js} +1 -1
  112. package/dist/{index-Cl5j-fNE.js → index-dqh4rth1.js} +1 -1
  113. package/dist/index.es.js +3 -33
  114. package/dist/index.umd.js +142 -142
  115. package/dist/{main-C18owm58.js → main-DAjWLLG0.js} +5116 -5085
  116. package/dist/{mapFormMixin-bA_KI0pt.js → mapFormMixin-CFaAoXxf.js} +4 -4
  117. package/dist/{omit-BVoDlsuC.js → omit-5nzNft5F.js} +2 -2
  118. package/dist/{publicSenderState-BR7541Fw.js → publicSenderState-BaH8Utk8.js} +1 -1
  119. package/dist/{splitpanes-OUpaQjCW.js → splitpanes-CxaAqPCT.js} +1 -1
  120. package/dist/{template-Y3wS95il.js → template-CHAQR6C-.js} +1 -1
  121. package/dist/{tippy.esm-CQD-ZLcV.js → tippy.esm-DYmyPdOc.js} +5 -5
  122. package/dist/{useTermsModal-DS9T_NyM.js → useTermsModal-aIBQHQEU.js} +4 -4
  123. package/dist/{utils-DwKlp8_z.js → utils-CiYKHNqS.js} +1 -1
  124. package/dist/{validation-b_jF-CIN.js → validation-BRPTZqtn.js} +2 -2
  125. package/dist/validations-ohsJ5nBz.js +34 -0
  126. package/dist/widget.css +1 -1
  127. package/package.json +1 -1
  128. package/dist/Index-DEBrME_f.js +0 -4
@@ -1,13 +1,14 @@
1
- import { _, d, o as c, j as s, f as h, T as H, w as f, e as k, W as ce, al as ue, b as v, t as l, q as g, dc as ee, af as L, dd as ve, de as be, df as Ce, dg as ke, dh as Pe, cY as W, aD as J, di as _e, i as T, s as A, m as N, a as B, aa as we, g as S, dj as Se, y as E, a4 as de, x as Z, u as D, F as $, n as V, v as Q, c as w, ai as $e, aq as Te, dk as xe, dl as Ie, dm as Ee, V as Me, ao as z, dn as U, dp as te, dq as ne, a6 as G, aB as Le, k as X, $ as Ve, dr as He, cT as Be, a7 as Fe, ak as Ue } from "./main-C18owm58.js";
1
+ import { _, d, o as c, j as o, f as h, T as H, w as f, e as k, W as ce, al as ue, b as v, t as l, q as g, dc as ee, af as V, dd as Ce, de as ke, df as Pe, dg as _e, dh as we, cY as W, aD as J, di as Se, i as T, s as R, m as Z, ar as Te, a as B, aa as $e, g as x, dj as xe, y as $, a4 as de, x as N, u as D, F as S, n as L, v as Q, c as w, ai as Ie, aq as Ee, dk as Me, dl as Ve, dm as Le, V as He, ao as z, dn as U, dp as te, dq as ne, a6 as G, aB as Be, k as X, $ as Fe, dr as Ue, cT as De, a7 as Oe, ak as Re } from "./main-DAjWLLG0.js";
2
2
  import { a as P } from "./anime.es-4wvNItHq.js";
3
- import { _ as De } from "./CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js";
4
- import { C as Re } from "./CSelect-ioLMsxK3.js";
5
- import { b as Ae } from "./CDropdownItem-rpcdHW76.js";
3
+ import { _ as Ae } from "./CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js";
4
+ import { C as ze } from "./CSelect-DVCPHAdo.js";
5
+ import { b as qe } from "./CDropdownItem-CZO28TQW.js";
6
6
  import { r as q } from "./regions-BdZt9Srn.js";
7
- import { u as Oe } from "./index-DWwjiiMe.js";
8
- import { s as ze, a as qe, n as je, c as Ze, r as Ne, e as Ye } from "./index-DINik6UH.js";
9
- import { a as We } from "./dom-DOcGU3-g.js";
10
- const Qe = {
7
+ import { a as me, i as pe } from "./validations-ohsJ5nBz.js";
8
+ import { u as je } from "./index-D-NDkjvk.js";
9
+ import { s as Ne, a as Ze, n as Ye, c as We, r as Qe, e as Ge } from "./index-Bw8qzZRS.js";
10
+ import { a as Ke } from "./dom-DOcGU3-g.js";
11
+ const Je = {
11
12
  props: {
12
13
  defaultOpen: {
13
14
  type: Boolean,
@@ -70,14 +71,14 @@ const Qe = {
70
71
  t.style.height = typeof e == "number" ? `${e}px` : e;
71
72
  }
72
73
  }
73
- }, Ge = {
74
+ }, Xe = {
74
75
  ref: "inner",
75
76
  class: "c-accordion__inner"
76
77
  };
77
- function Ke(e, t, n, a, i, r) {
78
+ function et(e, t, n, a, i, r) {
78
79
  return c(), d("div", null, [
79
- s("div", {
80
- onClick: t[0] || (t[0] = (o) => r.expanded = !r.expanded)
80
+ o("div", {
81
+ onClick: t[0] || (t[0] = (s) => r.expanded = !r.expanded)
81
82
  }, [
82
83
  H(e.$slots, "trigger", { expanded: r.expanded })
83
84
  ]),
@@ -94,7 +95,7 @@ function Ke(e, t, n, a, i, r) {
94
95
  style: ce(r.wrapperStyle),
95
96
  class: "c-accordion"
96
97
  }, [
97
- s("div", Ge, [
98
+ o("div", Xe, [
98
99
  H(e.$slots, "default")
99
100
  ], 512)
100
101
  ], 4)) : k("", !0)
@@ -103,7 +104,7 @@ function Ke(e, t, n, a, i, r) {
103
104
  }, 8, ["onEnter", "onAfterEnter", "onBeforeLeave", "onLeave"])
104
105
  ]);
105
106
  }
106
- const Je = /* @__PURE__ */ _(Qe, [["render", Ke]]), Xe = {
107
+ const tt = /* @__PURE__ */ _(Je, [["render", et]]), nt = {
107
108
  name: "CalloutLegacy",
108
109
  i18nOptions: {
109
110
  namespaces: "components",
@@ -152,19 +153,19 @@ const Je = /* @__PURE__ */ _(Qe, [["render", Ke]]), Xe = {
152
153
  validator: (e) => ["legacy", "invoice"].includes(e)
153
154
  }
154
155
  }
155
- }, et = { style: { border: "2px solid hsla(35, 100%, 50%, 0.2)", "background-color": "hsl(35, 100%, 91%)", padding: "1.5em", "border-radius": "8px", margin: "calc(2 * var(--rem)) 0 calc(3 * var(--rem)) 0" } }, tt = ["textContent"], nt = ["textContent"];
156
- function rt(e, t, n, a, i, r) {
157
- const o = v("CButton");
158
- return c(), d("div", et, [
159
- s("div", {
156
+ }, rt = { style: { border: "2px solid hsla(35, 100%, 50%, 0.2)", "background-color": "hsl(35, 100%, 91%)", padding: "1.5em", "border-radius": "8px", margin: "calc(2 * var(--rem)) 0 calc(3 * var(--rem)) 0" } }, it = ["textContent"], at = ["textContent"];
157
+ function ot(e, t, n, a, i, r) {
158
+ const s = v("CButton");
159
+ return c(), d("div", rt, [
160
+ o("div", {
160
161
  style: { "font-weight": "600" },
161
162
  textContent: l(e.$t(`${n.mode}.title`))
162
- }, null, 8, tt),
163
- s("div", {
163
+ }, null, 8, it),
164
+ o("div", {
164
165
  style: { "font-size": "14px", opacity: "0.7", "margin-bottom": "2em" },
165
166
  textContent: l(e.$t(`${n.mode}.text`))
166
- }, null, 8, nt),
167
- h(o, {
167
+ }, null, 8, at),
168
+ h(s, {
168
169
  to: { name: "settingsBilling", query: { highlight: n.mode } },
169
170
  target: "_blank",
170
171
  type: "secondary",
@@ -178,19 +179,19 @@ function rt(e, t, n, a, i, r) {
178
179
  }, 8, ["to"])
179
180
  ]);
180
181
  }
181
- const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e}`) && J.t(`errors:${e}`), at = "stripe", {
182
+ const he = /* @__PURE__ */ _(nt, [["render", ot]]), st = (e) => J.te(`errors:${e}`) && J.t(`errors:${e}`), lt = "stripe", {
182
183
  LOAD_PRICES: re,
183
- RESET_STRIPE_FORM: st,
184
- SET_STRIPE_FORM_VALUE: ot,
184
+ RESET_STRIPE_FORM: ct,
185
+ SET_STRIPE_FORM_VALUE: ut,
185
186
  SET_FORM_PROMOTION: ie,
186
- SUBMIT_PROMOTION_CODE: lt,
187
+ SUBMIT_PROMOTION_CODE: dt,
187
188
  SUBMIT_PAYMENT_METHOD: ae,
188
- SUBMIT_FORM_PLAN: ct,
189
- REMOVE_SUBSCRIPTION_ITEM: ut,
190
- CONFIRM_PAYMENT: se,
189
+ SUBMIT_FORM_PLAN: mt,
190
+ REMOVE_SUBSCRIPTION_ITEM: pt,
191
+ CONFIRM_PAYMENT: oe,
191
192
  SUBMIT_FORM_PAYMENT: j,
192
- SUBMIT_FORM_PRODUCTS: dt
193
- } = Pe, oe = {
193
+ SUBMIT_FORM_PRODUCTS: ht
194
+ } = we, se = {
194
195
  // The term "plan" refers to a _price_ connected to a _product_ with metadata.accountType
195
196
  plan: { accountType: "pro", interval: "month", quantity: 1 },
196
197
  customer: { name: "", email: "", region: null },
@@ -203,7 +204,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
203
204
  // If the payment should be associated with a specific dealSource
204
205
  }, le = {
205
206
  SE: 0.25
206
- }, pe = {
207
+ }, fe = {
207
208
  namespaced: !0,
208
209
  state: {
209
210
  isFetching: !1,
@@ -216,11 +217,11 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
216
217
  base: { month: null, year: null },
217
218
  pro: { month: null, year: null }
218
219
  },
219
- form: ee(oe)
220
+ form: ee(se)
220
221
  },
221
222
  getters: {
222
223
  isPosting: ({ isPosting: e }) => e,
223
- subscriptions: (e, t, n, a) => L(a["application/companyAccount"], "StripeSubscriptions") || [],
224
+ subscriptions: (e, t, n, a) => V(a["application/companyAccount"], "StripeSubscriptions") || [],
224
225
  subscriptionItems: (e, { subscriptions: t }) => {
225
226
  const n = [];
226
227
  return t.forEach(({ stripeItems: a = [] }) => {
@@ -233,7 +234,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
233
234
  });
234
235
  }), n;
235
236
  },
236
- customer: (e, t, n, a) => L(a["application/companyAccount"], "StripeCustomer") || null,
237
+ customer: (e, t, n, a) => V(a["application/companyAccount"], "StripeCustomer") || null,
237
238
  products: ({ prices: e }) => {
238
239
  const t = {};
239
240
  return Object.keys(e).forEach((n) => {
@@ -265,7 +266,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
265
266
  getMeteredProduct: (e, t) => (n) => {
266
267
  if (!n) throw new Error("Missing parameter meteredType");
267
268
  const a = t.products, i = Object.keys(a).find(
268
- (r) => L(a[r], "metadata.meteredType") === n
269
+ (r) => V(a[r], "metadata.meteredType") === n
269
270
  );
270
271
  return a[i];
271
272
  },
@@ -289,7 +290,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
289
290
  const { subscriptionItems: n } = t;
290
291
  if (!n || !n.length) return null;
291
292
  const a = n.find(
292
- (r) => L(
293
+ (r) => V(
293
294
  e.prices[r.stripePriceStripeId],
294
295
  "StripeProduct.metadata.accountType"
295
296
  )
@@ -313,16 +314,16 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
313
314
  * @returns {Object} Price obj on format { intervals: {}, currency }
314
315
  */
315
316
  formPrices: (e, t) => {
316
- function n(r, o, m) {
317
+ function n(r, s, p) {
317
318
  const u = r;
318
- return (!u.intervals[o] || !Object.keys(u.intervals[o]).length) && (u.intervals[o] = {
319
+ return (!u.intervals[s] || !Object.keys(u.intervals[s]).length) && (u.intervals[s] = {
319
320
  subTotalBeforeDiscount: 0,
320
321
  vatAmount: 0,
321
322
  subTotal: 0,
322
323
  totalAmount: 0,
323
324
  items: []
324
- }), Object.keys(m).forEach((y) => {
325
- Array.isArray(m[y]) ? u.intervals[o][y] = u.intervals[o][y].concat(m[y]) : u.intervals[o][y] += m[y];
325
+ }), Object.keys(p).forEach((y) => {
326
+ Array.isArray(p[y]) ? u.intervals[s][y] = u.intervals[s][y].concat(p[y]) : u.intervals[s][y] += p[y];
326
327
  }), u;
327
328
  }
328
329
  let a = {
@@ -331,13 +332,13 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
331
332
  };
332
333
  function i() {
333
334
  const r = (t.formPlan.amount || 0) * t.formPlan.quantity;
334
- let o = r;
335
- t.formPromotion && (t.formPromotion.amountOff ? o -= t.formPromotion.amountOff : t.formPromotion.percentOff && (o *= 1 - t.formPromotion.percentOff / 100));
336
- const m = o * (le[t.formCustomer.region] || 0), u = o + m;
335
+ let s = r;
336
+ t.formPromotion && (t.formPromotion.amountOff ? s -= t.formPromotion.amountOff : t.formPromotion.percentOff && (s *= 1 - t.formPromotion.percentOff / 100));
337
+ const p = s * (le[t.formCustomer.region] || 0), u = s + p;
337
338
  a = n(a, t.formPlan.interval, {
338
339
  subTotalBeforeDiscount: r,
339
- subTotal: o,
340
- vatAmount: m,
340
+ subTotal: s,
341
+ vatAmount: p,
341
342
  totalAmount: u,
342
343
  items: [
343
344
  {
@@ -349,22 +350,22 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
349
350
  });
350
351
  }
351
352
  return i(), t.formProducts.forEach((r) => {
352
- const o = t.priceById(r.stripePriceStripeId);
353
- if (o) {
354
- let m = o.interval;
355
- o.usageType === "one_time" && (m = "oneOff");
356
- const u = o.amount * r.quantity;
353
+ const s = t.priceById(r.stripePriceStripeId);
354
+ if (s) {
355
+ let p = s.interval;
356
+ s.usageType === "one_time" && (p = "oneOff");
357
+ const u = s.amount * r.quantity;
357
358
  let y = u;
358
359
  t.formPromotion && (t.formPromotion.amountOff ? y -= t.formPromotion.amountOff : t.formPromotion.percentOff && (y *= 1 - t.formPromotion.percentOff / 100));
359
360
  const C = y * (le[t.formCustomer.region] || 0), b = y + C;
360
- a = n(a, m, {
361
+ a = n(a, p, {
361
362
  subTotalBeforeDiscount: u,
362
363
  subTotal: y,
363
364
  vatAmount: C,
364
365
  totalAmount: b,
365
366
  items: [
366
367
  {
367
- name: o.StripeProduct.name,
368
+ name: s.StripeProduct.name,
368
369
  amount: u,
369
370
  quantity: r.quantity
370
371
  }
@@ -382,17 +383,17 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
382
383
  e("setPrices", { data: t }), e("setActivePriceMap");
383
384
  } catch (t) {
384
385
  this.handleError(t, {
385
- action: `${at}/${re}`,
386
+ action: `${lt}/${re}`,
386
387
  actionPayload: null
387
388
  });
388
389
  } finally {
389
390
  e("setFetching", !1);
390
391
  }
391
392
  },
392
- async [st]({ commit: e }) {
393
- e("setForm", ee(oe));
393
+ async [ct]({ commit: e }) {
394
+ e("setForm", ee(se));
394
395
  },
395
- async [ot]({ commit: e }, { key: t, value: n }) {
396
+ async [ut]({ commit: e }, { key: t, value: n }) {
396
397
  e("setFormValue", { key: t, value: n });
397
398
  },
398
399
  [ie]({ commit: e, getters: t }, { promotionDetails: n, code: a = null } = {}) {
@@ -403,11 +404,11 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
403
404
  value: { ...n, code: a }
404
405
  }), !0);
405
406
  },
406
- async [lt]({ commit: e, getters: t, dispatch: n }, a) {
407
+ async [dt]({ commit: e, getters: t, dispatch: n }, a) {
407
408
  try {
408
409
  if (t.isPosting || !a) return !1;
409
410
  e("setPosting", !0);
410
- const { data: i } = await _e(a);
411
+ const { data: i } = await Se(a);
411
412
  return n(ie, {
412
413
  promotionDetails: i,
413
414
  code: a
@@ -427,8 +428,8 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
427
428
  e("setPostingPaymentMethod", !0);
428
429
  const { paymentMethod: a = {}, error: i } = await n.createPaymentMethod("card", t);
429
430
  if (i) throw new Error(i.message || "Card Error");
430
- const { id: r } = a, { last4: o, brand: m } = a.card || {};
431
- return { id: r, last4: o, brand: m };
431
+ const { id: r } = a, { last4: s, brand: p } = a.card || {};
432
+ return { id: r, last4: s, brand: p };
432
433
  } catch (a) {
433
434
  return this.handleError(a), null;
434
435
  } finally {
@@ -446,35 +447,35 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
446
447
  async [j]({ commit: e, getters: t, dispatch: n }, { form: a, stripe: { cardElement: i } = {}, removeUnusedItems: r = !0 } = {}) {
447
448
  try {
448
449
  e("setPosting", !0), e("setFormValue", { key: "error", value: null });
449
- const { items: o } = a, { formCustomer: m, formPromotion: u, customer: y, formDealSource: C } = t;
450
+ const { items: s } = a, { formCustomer: p, formPromotion: u, customer: y, formDealSource: C } = t;
450
451
  let b;
451
452
  i && (b = await n(ae, { cardElement: i }));
452
- const M = { ...m, items: o };
453
+ const M = { ...p, items: s };
453
454
  b && (M.paymentMethod = b), u && u.code && (M.promotionCode = u.code), C && (M.dealSource = C);
454
- const { data: O = {} } = await W.product(M, {
455
+ const { data: A = {} } = await W.product(M, {
455
456
  removeUnusedItems: r
456
- }), { clientSecrets: F } = O, R = b && b.id ? b.id : y && y.paymentMethodId;
457
- return F && F.length && R ? await n(se, {
457
+ }), { clientSecrets: F } = A, O = b && b.id ? b.id : y && y.paymentMethodId;
458
+ return F && F.length && O ? await n(oe, {
458
459
  clientSecrets: F,
459
- paymentMethodId: R
460
+ paymentMethodId: O
460
461
  }) : !0;
461
- } catch (o) {
462
- this.handleError(o);
463
- const m = (o.errorCode ? it(o.errorCode) : "") || o.message;
462
+ } catch (s) {
463
+ this.handleError(s);
464
+ const p = (s.errorCode ? st(s.errorCode) : "") || s.message;
464
465
  return e("setFormValue", {
465
466
  key: "error",
466
- value: m || "Submit Form Payment Error"
467
+ value: p || "Submit Form Payment Error"
467
468
  }), !1;
468
469
  } finally {
469
470
  e("setPosting", !1);
470
471
  }
471
472
  },
472
- async [ct]({ commit: e, dispatch: t, getters: n }, { cardElement: a } = {}) {
473
+ async [mt]({ commit: e, dispatch: t, getters: n }, { cardElement: a } = {}) {
473
474
  try {
474
- const { formPlan: i, formProducts: r, products: o, subscriptionItems: m } = n;
475
+ const { formPlan: i, formProducts: r, products: s, subscriptionItems: p } = n;
475
476
  if (!i) return !1;
476
- const u = [...m], y = u.findIndex(
477
- (C) => L(o[C.stripeProductStripeId], "metadata.accountType")
477
+ const u = [...p], y = u.findIndex(
478
+ (C) => V(s[C.stripeProductStripeId], "metadata.accountType")
478
479
  );
479
480
  return y !== -1 && u.splice(y, 1), u.push({
480
481
  stripePriceStripeId: i.stripeId,
@@ -491,11 +492,11 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
491
492
  }), !1;
492
493
  }
493
494
  },
494
- async [dt]({ commit: e, dispatch: t, getters: n }, { cardElement: a, removeUnusedItems: i = !0 } = {}) {
495
+ async [ht]({ commit: e, dispatch: t, getters: n }, { cardElement: a, removeUnusedItems: i = !0 } = {}) {
495
496
  try {
496
- const { formProducts: r } = n, o = [...r];
497
- return o.length ? await t(j, {
498
- form: { items: o },
497
+ const { formProducts: r } = n, s = [...r];
498
+ return s.length ? await t(j, {
499
+ form: { items: s },
499
500
  stripe: { cardElement: a },
500
501
  removeUnusedItems: i
501
502
  }) : !1;
@@ -515,7 +516,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
515
516
  * @param {String} obj.paymentMethodId The stripe payment method id to use
516
517
  * @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
517
518
  */
518
- async [se]({ commit: e }, { clientSecrets: t = [], paymentMethodId: n }) {
519
+ async [oe]({ commit: e }, { clientSecrets: t = [], paymentMethodId: n }) {
519
520
  const a = window.$stripe;
520
521
  try {
521
522
  if (!n)
@@ -523,9 +524,9 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
523
524
  if (!a) throw new Error("Stripe is not installed on the window");
524
525
  if (!Array.isArray(t))
525
526
  throw new Error("Param clientSecrets needs to be an array");
526
- return await t.reduce(async (r, o) => {
527
+ return await t.reduce(async (r, s) => {
527
528
  await r;
528
- const { paymentIntent: m, error: u } = await a.confirmCardPayment(o, {
529
+ const { paymentIntent: p, error: u } = await a.confirmCardPayment(s, {
529
530
  payment_method: n
530
531
  });
531
532
  return u ? (u.message && e("setFormValue", {
@@ -534,7 +535,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
534
535
  }), await W.cancelAll({
535
536
  immediately: !0,
536
537
  status: "incomplete"
537
- }), !1) : m && m.status === "succeeded";
538
+ }), !1) : p && p.status === "succeeded";
538
539
  }, Promise.resolve());
539
540
  } catch (i) {
540
541
  return this.handleError(i), !1;
@@ -548,7 +549,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
548
549
  * @param {String} obj.stripePriceStripeId priceId to remove
549
550
  * @returns {Promise<Boolean>} Resolves with true if successful, otherwise false
550
551
  */
551
- async [ut]({ commit: e, dispatch: t, getters: n }, { stripePriceStripeId: a }) {
552
+ async [pt]({ commit: e, dispatch: t, getters: n }, { stripePriceStripeId: a }) {
552
553
  try {
553
554
  if (!a)
554
555
  throw new Error("Missing parameter stripePriceStripeId");
@@ -556,7 +557,7 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
556
557
  const { subscriptionItems: i } = n;
557
558
  let r = [...i];
558
559
  return r = r.filter(
559
- (o) => o.stripePriceStripeId !== a
560
+ (s) => s.stripePriceStripeId !== a
560
561
  ), await t(j, { form: { items: r } });
561
562
  } catch (i) {
562
563
  return this.handleError(i), !1;
@@ -579,23 +580,23 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
579
580
  setPrices: (e, { data: t = [] }) => {
580
581
  if (typeof t != "object")
581
582
  throw Error("Data must be a priceItem or array of priceItems!");
582
- const n = Array.isArray(t) ? t : [t], { ids: a, values: i } = be(n, { keyId: "stripeId" });
583
- Ce(e.prices, i), e.priceIds = ke([...a, ...e.priceIds]);
583
+ const n = Array.isArray(t) ? t : [t], { ids: a, values: i } = ke(n, { keyId: "stripeId" });
584
+ Pe(e.prices, i), e.priceIds = _e([...a, ...e.priceIds]);
584
585
  },
585
586
  setActivePriceMap: ({ prices: e, activePriceMap: t }) => Object.keys(e).forEach((n) => {
586
- const a = e[n], i = L(a, "StripeProduct.metadata.accountType");
587
- i && a.active && L(a, "metadata.visible") === !0 && (t[i][a.interval] = n);
587
+ const a = e[n], i = V(a, "StripeProduct.metadata.accountType");
588
+ i && a.active && V(a, "metadata.visible") === !0 && (t[i][a.interval] = n);
588
589
  }),
589
590
  // --- Form ---
590
591
  setForm: (e, t) => {
591
592
  e.form = t;
592
593
  },
593
594
  setFormValue: (e, { key: t, value: n }) => {
594
- const { root: a, prop: i } = ve(e, `form.${t}`);
595
+ const { root: a, prop: i } = Ce(e, `form.${t}`);
595
596
  a[i] = n;
596
597
  }
597
598
  }
598
- }, mt = {
599
+ }, ft = {
599
600
  props: {
600
601
  colors: {
601
602
  type: Array,
@@ -703,12 +704,23 @@ const me = /* @__PURE__ */ _(Xe, [["render", rt]]), it = (e) => J.te(`errors:${e
703
704
  }
704
705
  }
705
706
  };
706
- function pt(e, t, n, a, i, r) {
707
+ function gt(e, t, n, a, i, r) {
707
708
  return c(), d("div", null, t[0] || (t[0] = [
708
- s("canvas", { id: "fireworks" }, null, -1)
709
+ o("canvas", { id: "fireworks" }, null, -1)
709
710
  ]));
710
711
  }
711
- const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe"]]), ft = {
712
+ const yt = /* @__PURE__ */ _(ft, [["render", gt], ["__scopeId", "data-v-f0e925fe"]]);
713
+ function vt(e, t) {
714
+ if (!e) return "";
715
+ let n = me(e);
716
+ return t === "enskildfirma" && (n = pe(e)), n || e;
717
+ }
718
+ function bt(e) {
719
+ return function(n, a) {
720
+ return n ? (a == null ? void 0 : a.companyType) === "enskildfirma" ? !!pe(n) : !!me(n) : !1;
721
+ };
722
+ }
723
+ const Ct = {
712
724
  amex: {
713
725
  name: "American Express",
714
726
  logo: '<g><rect width="48" height="32" rx="4" fill="white"/><g><path d="M8.88 17.9V26.06H17.14L18 24.84L18.84 26.06H23.89V24.22H24.45C24.9584 24.2244 25.4643 24.1502 25.95 24V26.06H29.38V24.6L30.54 26.06H46.16C46.802 26.0712 47.4338 25.8977 47.98 25.56V29C47.5224 30.7722 45.9203 32.0078 44.09 32H4C1.79086 32 0 30.2091 0 28V15.4H2.28L2.75 14.18H3.87L4.33 15.4H22.67V13.94L23.83 15.4H28.64V14.66C29.3453 15.1621 30.1945 15.4217 31.06 15.4H33.93L34.39 14.18H35.51L36 15.4H40.9V13.82L41.9 15.4H45.28V7.24H41.69V8.9L40.62 7.24H37.48V9.34L36.48 7.24H31.14C30.2366 7.21382 29.3524 7.50384 28.64 8.06V7.24H11L10.4 9L9.8 7.2H5.8V9.3L4.86 7.2H1.6L0 11V4C0 1.79086 1.79086 1.31011e-07 4 1.31011e-07H44.09C45.9278 -0.0169872 47.5406 1.2205 48 3V17.9H18.86L18 19.1L17.16 17.9H8.88Z" fill="#296DB6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.32 19.2H24.43V19.16C24.9479 19.1165 25.4595 19.2976 25.8345 19.6574C26.2096 20.0171 26.4119 20.5208 26.39 21.04C26.4028 21.5655 26.1927 22.0718 25.8116 22.4338C25.4306 22.7958 24.9141 22.9797 24.39 22.94H22.69V24.8H21.32V19.2ZM14.71 20.36V19.16H10.18V24.8H14.71V23.6H11.54V22.6H14.65V21.38H11.54V20.38L14.71 20.36ZM18.8 22L21.06 19.2H19.4L18 20.94L16.61 19.16H14.91L17.2 22L15 24.8H16.64L18 23L19.36 24.82H21.08L18.8 22ZM24.31 21.78H22.69V20.36H24.31C24.6911 20.36 25 20.6689 25 21.05C25 21.4311 24.6911 21.74 24.31 21.74V21.78ZM32.17 20.79C32.286 21.7731 31.5831 22.664 30.6 22.78L32.49 24.8H30.78L29.1 22.8H28.48V24.8H27.12V19.22H30.18C31.1631 19.104 32.054 19.8069 32.17 20.79ZM30.06 21.66H28.48V20.36H30.06C30.2378 20.3369 30.4169 20.3918 30.5511 20.5107C30.6853 20.6296 30.7615 20.8007 30.76 20.98C30.7649 21.1604 30.6898 21.3337 30.5547 21.4533C30.4196 21.573 30.2385 21.6267 30.06 21.6V21.66ZM37.36 19.22V20.42L34.19 20.38V21.38H37.28V22.6H34.19V23.6H37.36V24.8H32.81V19.22H37.36ZM41.13 21.42H39.82C39.6175 21.4607 39.4105 21.3753 39.2956 21.2036C39.1808 21.032 39.1808 20.808 39.2956 20.6364C39.4105 20.4647 39.6175 20.3793 39.82 20.42H42.25L42.79 19.22H39.86C39.3615 19.1622 38.8623 19.3225 38.4906 19.6597C38.1189 19.9969 37.9109 20.4782 37.92 20.98C37.8896 21.4469 38.0691 21.903 38.4094 22.2241C38.7498 22.5451 39.2157 22.6976 39.68 22.64H41C41.2025 22.5993 41.4095 22.6847 41.5244 22.8564C41.6392 23.028 41.6392 23.252 41.5244 23.4236C41.4095 23.5953 41.2025 23.6807 41 23.64H38.08V24.84H41C41.5039 24.8812 42.0011 24.7024 42.3634 24.3497C42.7257 23.997 42.9177 23.5049 42.89 23C42.9153 22.5378 42.7326 22.0885 42.392 21.775C42.0514 21.4615 41.5885 21.3166 41.13 21.38V21.42ZM47.46 20.42H45.03L45 20.38C44.7975 20.3393 44.5905 20.4247 44.4756 20.5964C44.3608 20.768 44.3608 20.992 44.4756 21.1636C44.5905 21.3353 44.7975 21.4207 45 21.38H46.36C47.0518 21.3089 47.7118 21.6871 48 22.32V23.66C47.7246 24.4224 46.9666 24.9003 46.16 24.82H43.29V23.62H46.18C46.3825 23.6607 46.5895 23.5753 46.7044 23.4036C46.8192 23.232 46.8192 23.008 46.7044 22.8364C46.5895 22.6647 46.3825 22.5793 46.18 22.62H44.89C44.4257 22.6776 43.9598 22.5251 43.6194 22.2041C43.2791 21.883 43.0996 21.4269 43.13 20.96C43.1209 20.4582 43.3289 19.9769 43.7006 19.6397C44.0723 19.3025 44.5715 19.1422 45.07 19.2H48L47.46 20.42Z" fill="#296DB6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25.45 10.28C25.4719 11.1815 24.8053 11.9521 23.91 12.06L25.79 14.14H24.09L22.41 12.14H21.79V14.14H20.4V8.5H23.45C23.9596 8.43317 24.473 8.59111 24.8569 8.93278C25.2408 9.27446 25.4573 9.76612 25.45 10.28ZM4.23 8.5H2.45L0 14.14H1.48L2 13H4.63L5.11 14.18H6.65L4.23 8.5ZM2.38 11.86L2.93 10.54L3.29 9.66L3.65 10.54L4.19 11.86H2.38ZM10.6 11.76L11.7 8.5H13.89V14.14H12.57V10.44V9.58L12.31 10.44L11 14.14H9.8L8.52 10.44L8.24 9.58V10.44V14.14H6.91V8.5H9.12L10.24 11.76L10.42 12.38L10.6 11.76ZM19.5 9.7V8.5H15V14.14H19.5V12.94H16.33V11.94H19.42V10.72H16.33V9.72L19.5 9.7ZM23.37 10.94H21.79V9.7H23.37C23.5471 9.68019 23.7243 9.73632 23.8577 9.85449C23.9912 9.97265 24.0683 10.1418 24.07 10.32C24.0749 10.5004 23.9998 10.6737 23.8647 10.7933C23.7296 10.913 23.5485 10.9667 23.37 10.94ZM26.11 14.14V8.5H27.48V14.14H26.11ZM31.11 9.72H32.58V8.5H31C30.2562 8.45299 29.5291 8.7337 29.0099 9.26831C28.4907 9.80292 28.2313 10.5379 28.3 11.28V11.36C28.2164 12.0915 28.4596 12.8226 28.9645 13.3583C29.4694 13.8941 30.1849 14.1801 30.92 14.14H31L31.55 12.94H31.1C30.685 12.9613 30.2819 12.7972 29.9999 12.492C29.7179 12.1868 29.586 11.772 29.64 11.36V11.28C29.5925 10.8712 29.7272 10.4621 30.0085 10.1616C30.2897 9.86113 30.6889 9.69961 31.1 9.72H31.11ZM34.09 8.5H35.89L38.3 14.18H36.76L36.28 13H33.61L33.13 14.14H31.67L34.09 8.5ZM34.05 11.86L34.57 10.54L34.93 9.66L35.27 10.54L35.81 11.86H34.05ZM42.61 11.5V8.5H44V14.14H42.35L40.26 10.96L39.9 10.34V11V14.18H38.56V8.54H40.23L42.23 11.54L42.61 12.18V11.5Z" fill="#296DB6"/></g></g>'
@@ -748,15 +760,15 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
748
760
  logo: r
749
761
  };
750
762
  }
751
- }, gt = (e) => {
763
+ }, kt = (e) => {
752
764
  if (document.getElementById("stripe-js")) return e();
753
765
  const t = "js.stripe.com/v3/", n = document.createElement("script"), a = document.getElementsByTagName("script")[0];
754
766
  return n.src = `https://${t}`, n.id = "stripe-js", e && n.addEventListener("load", (i) => e(null, i), !1), a.parentNode.insertBefore(n, a), !0;
755
- }, yt = (e) => gt(() => {
767
+ }, Pt = (e) => kt(() => {
756
768
  window.$stripe = Stripe(T.stripe.publishableKey, {
757
769
  locale: J.lang || "en"
758
770
  }), typeof e == "function" && e();
759
- }), he = {
771
+ }), ge = {
760
772
  data() {
761
773
  return {
762
774
  stripeCardElementId: null,
@@ -774,7 +786,7 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
774
786
  };
775
787
  },
776
788
  created() {
777
- yt(() => {
789
+ Pt(() => {
778
790
  this.stripe = window.$stripe, this.$nextTick(() => {
779
791
  this.elements = this.stripe.elements(), this.stripeCardElementId && this.configureStripeCard(this.stripeCardElementId);
780
792
  });
@@ -841,7 +853,7 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
841
853
  var r;
842
854
  const t = e.cloneNode(!0);
843
855
  t.style.boxSizing = "border-box", t.style.fontSize = (r = window.getComputedStyle(e)) == null ? void 0 : r.fontSize;
844
- const n = We(e), a = () => {
856
+ const n = Ke(e), a = () => {
845
857
  this.repositionStripeEl({ original: e, clone: t });
846
858
  };
847
859
  n.addEventListener("scroll", a, {
@@ -857,7 +869,16 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
857
869
  t.style.zIndex = i + 1e4, document.body.appendChild(t);
858
870
  }
859
871
  }
860
- }, vt = {
872
+ }, { mapFields: _t } = Te({
873
+ getterType: "forms/getField",
874
+ mutationType: "forms/updateField"
875
+ }), {
876
+ FORM_EDIT_COMPANY: wt,
877
+ FORM_SUBMIT_COMPANY: St,
878
+ SUBMIT_PROMOTION_CODE: Tt,
879
+ SET_FORM_PROMOTION: $t,
880
+ SUBMIT_FORM_PLAN: xt
881
+ } = x, It = {
861
882
  i18nOptions: {
862
883
  namespaces: "PremiumStripeForm",
863
884
  messages: {
@@ -895,6 +916,11 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
895
916
  label: "Company name",
896
917
  placeholder: "Company name"
897
918
  },
919
+ orgNo: {
920
+ label: "Company registration number",
921
+ placeholder: "Company registration number",
922
+ validation: "Add a valid company organisation number"
923
+ },
898
924
  region: {
899
925
  label: "Country",
900
926
  placeholder: "Country"
@@ -987,6 +1013,11 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
987
1013
  label: "Företagsnamn",
988
1014
  placeholder: "Företagsnamn"
989
1015
  },
1016
+ orgNo: {
1017
+ label: "Organisationsnummer",
1018
+ placeholder: "Organisationsnummer",
1019
+ validation: "Ange ett giltigt organisationsnummer"
1020
+ },
990
1021
  region: {
991
1022
  label: "Land",
992
1023
  placeholder: "Land"
@@ -1049,13 +1080,13 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1049
1080
  },
1050
1081
  name: "PremiumStripeForm",
1051
1082
  components: {
1052
- CAccordion: Je,
1053
- CCheckbox: we,
1054
- CField: De,
1055
- CSelect: Re,
1056
- CSwitch: Ae
1083
+ CAccordion: tt,
1084
+ CCheckbox: $e,
1085
+ CField: Ae,
1086
+ CSelect: ze,
1087
+ CSwitch: qe
1057
1088
  },
1058
- mixins: [he],
1089
+ mixins: [ge],
1059
1090
  props: {
1060
1091
  formPlan: {
1061
1092
  type: Object,
@@ -1081,13 +1112,13 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1081
1112
  emits: ["input", "success", "update:interval"],
1082
1113
  setup() {
1083
1114
  return {
1084
- v$: Oe()
1115
+ v$: je()
1085
1116
  };
1086
1117
  },
1087
1118
  data() {
1088
1119
  return {
1089
1120
  regions: q,
1090
- cardBrands: ft,
1121
+ cardBrands: Ct,
1091
1122
  stripeCardElementId: "#card-element",
1092
1123
  promoInputVisible: !1,
1093
1124
  inputPromotionCode: "",
@@ -1099,22 +1130,25 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1099
1130
  };
1100
1131
  },
1101
1132
  validations() {
1102
- return {
1133
+ const e = {
1103
1134
  formCustomer: {
1104
1135
  email: {
1105
- email: Ye
1136
+ email: Ge
1106
1137
  }
1107
1138
  },
1108
1139
  quantity: {
1109
- required: Ne,
1110
- minValue: Ze(1),
1111
- numeric: je
1140
+ required: Qe,
1141
+ minValue: We(1),
1142
+ numeric: Ye
1112
1143
  },
1113
1144
  consent: {
1114
- required: qe(this.collectConsent),
1115
- sameAs: ze(this.collectConsent)
1145
+ required: Ze(this.collectConsent),
1146
+ sameAs: Ne(this.collectConsent)
1116
1147
  }
1117
1148
  };
1149
+ return this.requiresOrgNo && (e.organisationNumber = {
1150
+ isValidOrgNoWrapper: bt()
1151
+ }), e;
1118
1152
  },
1119
1153
  computed: {
1120
1154
  ...B({
@@ -1128,11 +1162,28 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1128
1162
  getMeteredProduct: "stripe/getMeteredProduct",
1129
1163
  formPrices: "stripe/formPrices"
1130
1164
  }),
1165
+ ..._t({
1166
+ organisationNumberStore: "company.organisationNumber"
1167
+ }),
1168
+ organisationNumber: {
1169
+ get() {
1170
+ return this.organisationNumberStore;
1171
+ },
1172
+ set(e) {
1173
+ this.organisationNumberStore = vt(e, this.companyType);
1174
+ }
1175
+ },
1176
+ requiresOrgNo() {
1177
+ return this.$feature("regionSE") && $[T.brand].name === "Cling";
1178
+ },
1131
1179
  messages() {
1132
1180
  return {
1133
1181
  email: {
1134
1182
  email: this.$t("email.email")
1135
1183
  },
1184
+ organisationNumber: {
1185
+ isValidOrgNoWrapper: this.$t("orgNo.validation")
1186
+ },
1136
1187
  quantity: {
1137
1188
  required: this.$t("quantity.required"),
1138
1189
  minValue: this.$t("quantity.minValue")
@@ -1168,38 +1219,38 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1168
1219
  promotionDescription() {
1169
1220
  let e = "- ";
1170
1221
  const { amountOff: t, percentOff: n } = this.promotion || {};
1171
- return t ? e += A(t, { currency: this.currency }) : n && (e += `${n}%`), e;
1222
+ return t ? e += R(t, { currency: this.currency }) : n && (e += `${n}%`), e;
1172
1223
  },
1173
1224
  reasonableUseQuotas() {
1174
1225
  var r;
1175
1226
  const e = {}, t = (r = this.formPlan) == null ? void 0 : r.StripeProduct;
1176
1227
  if (!t) return [];
1177
1228
  const { quotas: n, autoAddMeteredTypes: a } = t.metadata, i = n[this.companyAccount.accountConfigurationKeyName] || {};
1178
- return Object.keys(i).forEach((o) => {
1179
- o === "bankId" && E[T.brand].defaultRegion === "US" || (e[o] = {
1180
- type: o,
1181
- count: i[o] || 0,
1229
+ return Object.keys(i).forEach((s) => {
1230
+ s === "bankId" && $[T.brand].defaultRegion === "US" || (e[s] = {
1231
+ type: s,
1232
+ count: i[s] || 0,
1182
1233
  cost: null
1183
1234
  });
1184
- }), a.forEach((o) => {
1185
- if (o === "bankId" && E[T.brand].defaultRegion === "US")
1235
+ }), a.forEach((s) => {
1236
+ if (s === "bankId" && $[T.brand].defaultRegion === "US")
1186
1237
  return;
1187
- const m = this.getMeteredProduct(o);
1188
- if (!m) return;
1189
- const u = m.prices.find(
1238
+ const p = this.getMeteredProduct(s);
1239
+ if (!p) return;
1240
+ const u = p.prices.find(
1190
1241
  (C) => {
1191
1242
  var b;
1192
1243
  return C.active && ((b = C == null ? void 0 : C.metadata) == null ? void 0 : b.visible) === !0;
1193
1244
  }
1194
1245
  );
1195
1246
  if (!u) return;
1196
- const y = A(u.amount, {
1247
+ const y = R(u.amount, {
1197
1248
  currency: u.currency,
1198
1249
  decimals: 2,
1199
1250
  hideZeroDecimals: !0
1200
1251
  });
1201
- e[o] || (e[o] = { type: o, count: 0, cost: null }), e[o].cost = y;
1202
- }), Object.keys(e).map((o) => e[o]);
1252
+ e[s] || (e[s] = { type: s, count: 0, cost: null }), e[s].cost = y;
1253
+ }), Object.keys(e).map((s) => e[s]);
1203
1254
  }
1204
1255
  },
1205
1256
  watch: {
@@ -1210,7 +1261,7 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1210
1261
  }
1211
1262
  },
1212
1263
  async created() {
1213
- if (this.$nextTick(() => {
1264
+ if (await this.formEditCompany(), this.$nextTick(() => {
1214
1265
  P({
1215
1266
  targets: ".anime-payment-modal .anim-block",
1216
1267
  translateX: [50, 0],
@@ -1220,24 +1271,26 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1220
1271
  });
1221
1272
  }), this.customer) {
1222
1273
  const e = !!this.customer.paymentMethodId;
1223
- this.useExistingCard = e, this.useExistingCustomer = e, ["name", "region", "email"].forEach((n) => {
1274
+ this.useExistingCard = e, this.useExistingCustomer = e && this.organisationNumber, ["name", "region", "email"].forEach((n) => {
1224
1275
  this.customer[n] && this.$emit("input", {
1225
1276
  key: `customer.${n}`,
1226
1277
  value: this.customer[n]
1227
1278
  });
1228
1279
  });
1229
- const { data: t } = await Se();
1280
+ const { data: t } = await xe();
1230
1281
  this.setPromotion({ promotionDetails: t });
1231
1282
  }
1232
1283
  this.companyRegion === "SE" && !this.formCustomer.region && this.$emit("input", { key: "customer.region", value: this.companyRegion }), this.routePromo && this.verifyPromotionCode(this.routePromo);
1233
1284
  },
1234
1285
  methods: {
1235
- ...N({
1236
- usePromotionCode: S.SUBMIT_PROMOTION_CODE,
1237
- setPromotion: S.SET_FORM_PROMOTION,
1238
- submitPlan: S.SUBMIT_FORM_PLAN
1286
+ ...Z({
1287
+ usePromotionCode: Tt,
1288
+ setPromotion: $t,
1289
+ submitPlan: xt,
1290
+ formEditCompany: wt,
1291
+ formSubmitCompany: St
1239
1292
  }),
1240
- priceFormat: A,
1293
+ priceFormat: R,
1241
1294
  getIntervalTitle(e) {
1242
1295
  return e === "month" ? this.$t("_common:monthly").capitalize() : e === "year" ? this.$t("_common:yearly").capitalize() : e === "oneOff" ? this.$t("oneTimeFee").capitalize() : null;
1243
1296
  },
@@ -1247,9 +1300,12 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1247
1300
  this.elementsError = this.$t("missingCard");
1248
1301
  return;
1249
1302
  }
1250
- await this.submitPlan({
1251
- ...!this.useExistingCard && { cardElement: this.card }
1252
- }) && this.$emit("success");
1303
+ await Promise.all([
1304
+ this.formSubmitCompany(),
1305
+ this.submitPlan({
1306
+ ...!this.useExistingCard && { cardElement: this.card }
1307
+ })
1308
+ ]) && this.$emit("success");
1253
1309
  },
1254
1310
  async verifyPromotionCode(e) {
1255
1311
  if (!e) {
@@ -1259,151 +1315,154 @@ const ht = /* @__PURE__ */ _(mt, [["render", pt], ["__scopeId", "data-v-f0e925fe
1259
1315
  this.isInvalidPromotionCode = !1, await this.usePromotionCode(e) ? (this.promoInputVisible = !1, this.inputPromotionCode = "") : this.isInvalidPromotionCode = !0;
1260
1316
  }
1261
1317
  }
1262
- }, bt = { class: "root font-inter anime-payment-modal" }, Ct = {
1318
+ }, Et = { class: "root font-inter anime-payment-modal" }, Mt = {
1263
1319
  class: "flex w-full",
1264
1320
  style: { overflow: "hidden" }
1265
- }, kt = { class: "anim-block p-aside" }, Pt = { style: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, _t = { style: { "text-align": "right", "padding-right": "0.5em" } }, wt = ["textContent"], St = ["textContent"], $t = ["src", "alt"], Tt = { style: { "font-weight": "600", "font-size": "21px" } }, xt = { class: "py-4 text-[15px]" }, It = { class: "flex w-full justify-between" }, Et = { class: "font-medium" }, Mt = { class: "text-right" }, Lt = { class: "text-[17px] font-semibold leading-none" }, Vt = { class: "text-[13px] opacity-70" }, Ht = { class: "font-medium opacity-70" }, Bt = { class: "text-right opacity-70" }, Ft = {
1321
+ }, Vt = { class: "anim-block p-aside" }, Lt = { style: { "font-size": "11px", position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(1.5 * var(--rem))", display: "flex", "line-height": "1.2" } }, Ht = { style: { "text-align": "right", "padding-right": "0.5em" } }, Bt = ["textContent"], Ft = ["textContent"], Ut = ["src", "alt"], Dt = { style: { "font-weight": "600", "font-size": "21px" } }, Ot = { class: "py-4 text-[15px]" }, Rt = { class: "flex w-full justify-between" }, At = { class: "font-medium" }, zt = { class: "text-right" }, qt = { class: "text-[17px] font-semibold leading-none" }, jt = { class: "text-[13px] opacity-70" }, Nt = { class: "font-medium opacity-70" }, Zt = { class: "text-right opacity-70" }, Yt = {
1266
1322
  key: 0,
1267
1323
  class: "flex w-full justify-between",
1268
1324
  style: { "padding-bottom": "4px" }
1269
- }, Ut = { style: { "font-weight": "500", opacity: "0.7" } }, Dt = {
1325
+ }, Wt = { style: { "font-weight": "500", opacity: "0.7" } }, Qt = {
1270
1326
  class: "has-text-danger text-right",
1271
1327
  style: { display: "inline-flex", "justify-content": "flex-end", "align-items": "center" }
1272
- }, Rt = ["textContent"], At = {
1328
+ }, Gt = ["textContent"], Kt = {
1273
1329
  class: "flex w-full justify-between",
1274
1330
  style: { "padding-bottom": "4px" }
1275
- }, Ot = { style: { "font-weight": "500", opacity: "0.7" } }, zt = {
1331
+ }, Jt = { style: { "font-weight": "500", opacity: "0.7" } }, Xt = {
1276
1332
  class: "text-right",
1277
1333
  style: { opacity: "0.7" }
1278
- }, qt = {
1334
+ }, en = {
1279
1335
  class: "flex w-full justify-between",
1280
1336
  style: { "padding-bottom": "4px" }
1281
- }, jt = { style: { "font-weight": "500", opacity: "0.7" } }, Zt = {
1337
+ }, tn = { style: { "font-weight": "500", opacity: "0.7" } }, nn = {
1282
1338
  class: "text-right",
1283
1339
  style: { opacity: "0.7" }
1284
- }, Nt = { class: "flex w-full justify-end" }, Yt = { class: "p-badge flex w-full items-center" }, Wt = {
1340
+ }, rn = { class: "flex w-full justify-end" }, an = { class: "p-badge flex w-full items-center" }, on = {
1285
1341
  class: "has-text-success",
1286
1342
  style: { "margin-right": "0.5em" },
1287
1343
  width: "17",
1288
1344
  height: "15",
1289
1345
  xmlns: "http://www.w3.org/2000/svg",
1290
1346
  viewBox: "0 0 448 512"
1291
- }, Qt = { class: "p-badge flex w-full items-center" }, Gt = {
1347
+ }, sn = { class: "p-badge flex w-full items-center" }, ln = {
1292
1348
  class: "has-text-success",
1293
1349
  style: { "margin-right": "0.5em" },
1294
1350
  width: "17",
1295
1351
  height: "20",
1296
1352
  xmlns: "http://www.w3.org/2000/svg",
1297
1353
  viewBox: "0 0 512 512"
1298
- }, Kt = { class: "p-badge flex w-full items-center" }, Jt = ["textContent"], Xt = { class: "p-badge flex w-full items-center" }, en = ["textContent"], tn = {
1354
+ }, cn = { class: "p-badge flex w-full items-center" }, un = ["textContent"], dn = { class: "p-badge flex w-full items-center" }, mn = ["textContent"], pn = {
1299
1355
  class: "anim-block p-block",
1300
1356
  style: { "padding-bottom": "2em" }
1301
- }, nn = { style: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, rn = { style: { opacity: "0.5" } }, an = {
1357
+ }, hn = { style: { "font-size": "18px", "font-weight": "600", "line-height": "1.5" } }, fn = { style: { opacity: "0.5" } }, gn = {
1302
1358
  class: "anim-block",
1303
1359
  style: { "font-size": "14px" }
1304
- }, sn = {
1360
+ }, yn = {
1305
1361
  key: 0,
1306
1362
  class: "p-block"
1307
- }, on = { class: "p-block-title flex w-full items-center" }, ln = { class: "flex w-full" }, cn = {
1363
+ }, vn = { class: "p-block-title flex w-full items-center" }, bn = { class: "flex w-full" }, Cn = {
1308
1364
  class: "p-option-list",
1309
1365
  style: { flex: "1 1 auto" }
1310
- }, un = {
1366
+ }, kn = {
1311
1367
  class: "p-option-list flex w-full items-center justify-center",
1312
1368
  style: { "margin-left": "calc(1 * var(--rem))", flex: "0 0" }
1313
- }, dn = {
1369
+ }, Pn = {
1314
1370
  class: "p-option-list flex w-full items-center justify-center",
1315
1371
  style: { "margin-left": "3px", flex: "0 0" }
1316
- }, mn = {
1372
+ }, _n = {
1317
1373
  key: 1,
1318
1374
  class: "p-callout",
1319
1375
  style: { position: "relative", padding: "calc(1 * var(--rem))", "border-radius": "8px" }
1320
- }, pn = { class: "flex w-full items-center" }, hn = ["innerHTML"], fn = { style: { "margin-left": "calc(0.5 * var(--rem))" } }, gn = { style: { "margin-right": "5px" } }, yn = { key: 0 }, vn = { class: "p-block" }, bn = {
1376
+ }, wn = { class: "flex w-full items-center" }, Sn = ["innerHTML"], Tn = { style: { "margin-left": "calc(0.5 * var(--rem))" } }, $n = { style: { "margin-right": "5px" } }, xn = { key: 0 }, In = { key: 1 }, En = { class: "p-block" }, Mn = {
1321
1377
  key: 0,
1322
1378
  class: "p-block-title flex w-full items-center"
1323
- }, Cn = {
1379
+ }, Vn = {
1324
1380
  key: 0,
1325
1381
  class: "p-block"
1326
- }, kn = {
1382
+ }, Ln = {
1327
1383
  id: "card-element",
1328
1384
  class: "bg-gray-100",
1329
1385
  style: { width: "400px", padding: "1em 1em", "border-radius": "0.5em", "min-height": "54px" }
1330
- }, Pn = ["textContent"], _n = { class: "p-block" }, wn = { class: "p-block" }, Sn = ["value"], $n = { class: "p-block" }, Tn = {
1386
+ }, Hn = ["textContent"], Bn = { class: "p-block" }, Fn = {
1387
+ key: 0,
1388
+ class: "p-block"
1389
+ }, Un = { class: "p-block" }, Dn = ["value"], On = { class: "p-block" }, Rn = {
1331
1390
  key: 0,
1332
1391
  class: "anim-block p-block"
1333
- }, xn = ["href"], In = ["href"], En = {
1392
+ }, An = ["href"], zn = ["href"], qn = {
1334
1393
  key: 1,
1335
1394
  class: "c-flex-row c-align-middle"
1336
- }, Mn = ["textContent"], Ln = { class: "anim-block p-block" }, Vn = { style: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, Hn = ["textContent"], Bn = { class: "list-button" }, Fn = ["textContent"], Un = ["textContent"], Dn = { style: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, Rn = ["textContent"], An = ["textContent"], On = { style: { padding: "0 calc(1 * var(--rem))" } }, zn = ["textContent"], qn = ["textContent"], jn = ["textContent"];
1337
- function Zn(e, t, n, a, i, r) {
1338
- const o = v("CSwitch"), m = v("CButton"), u = v("CInput"), y = v("CField"), C = v("CIcon"), b = v("CSelect"), M = v("CCheckbox"), O = v("CAccordion"), F = v("modal"), R = de("tooltip");
1339
- return c(), d("div", bt, [
1340
- s("div", Ct, [
1341
- s("div", kt, [
1342
- s("div", {
1343
- class: Z([n.uiPlan.accountType, "p-callout"])
1395
+ }, jn = ["textContent"], Nn = { class: "anim-block p-block" }, Zn = { style: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, Yn = ["textContent"], Wn = { class: "list-button" }, Qn = ["textContent"], Gn = ["textContent"], Kn = { style: { "background-color": "white", "border-radius": "calc(0.5 * var(--rem))", padding: "calc(1 * var(--rem))" } }, Jn = ["textContent"], Xn = ["textContent"], er = { style: { padding: "0 calc(1 * var(--rem))" } }, tr = ["textContent"], nr = ["textContent"], rr = ["textContent"];
1396
+ function ir(e, t, n, a, i, r) {
1397
+ const s = v("CSwitch"), p = v("CButton"), u = v("CInput"), y = v("CField"), C = v("CIcon"), b = v("CSelect"), M = v("CCheckbox"), A = v("CAccordion"), F = v("modal"), O = de("tooltip");
1398
+ return c(), d("div", Et, [
1399
+ o("div", Mt, [
1400
+ o("div", Vt, [
1401
+ o("div", {
1402
+ class: N([n.uiPlan.accountType, "p-callout"])
1344
1403
  }, [
1345
- s("div", Pt, [
1346
- s("div", _t, [
1347
- s("div", {
1404
+ o("div", Lt, [
1405
+ o("div", Ht, [
1406
+ o("div", {
1348
1407
  style: { opacity: "0.7" },
1349
1408
  textContent: l(e.$t("payYearly"))
1350
- }, null, 8, wt),
1351
- s("div", {
1409
+ }, null, 8, Bt),
1410
+ o("div", {
1352
1411
  class: "text-primary-500 font-medium",
1353
1412
  textContent: l(e.$t("saveAmount"))
1354
- }, null, 8, St)
1413
+ }, null, 8, Ft)
1355
1414
  ]),
1356
- h(o, {
1415
+ h(s, {
1357
1416
  "model-value": n.formPlan.interval === "year",
1358
1417
  size: "small",
1359
1418
  type: "secondary",
1360
- "onUpdate:modelValue": t[0] || (t[0] = (p) => e.$emit(
1419
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => e.$emit(
1361
1420
  "update:interval",
1362
1421
  n.formPlan.interval === "year" ? "month" : "year"
1363
1422
  ))
1364
1423
  }, null, 8, ["model-value"])
1365
1424
  ]),
1366
- s("div", null, [
1367
- s("img", {
1425
+ o("div", null, [
1426
+ o("img", {
1368
1427
  src: n.uiPlan.img,
1369
1428
  alt: n.uiPlan.name,
1370
1429
  width: "50",
1371
1430
  height: "50",
1372
1431
  style: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%", "margin-bottom": "calc(1 * var(--rem))" }
1373
- }, null, 8, $t)
1432
+ }, null, 8, Ut)
1374
1433
  ]),
1375
- s("div", Tt, l(e.$t("cardTitle", { plan: n.uiPlan.name })), 1),
1376
- s("div", xt, [
1377
- (c(!0), d($, null, V(e.formPrices.intervals, (p, I) => (c(), d("div", {
1378
- key: `interval-${I}`,
1434
+ o("div", Dt, l(e.$t("cardTitle", { plan: n.uiPlan.name })), 1),
1435
+ o("div", Ot, [
1436
+ (c(!0), d(S, null, L(e.formPrices.intervals, (m, E) => (c(), d("div", {
1437
+ key: `interval-${E}`,
1379
1438
  class: "mb-4 border-b border-gray-200 pb-2"
1380
1439
  }, [
1381
- s("div", It, [
1382
- s("div", Et, l(r.getIntervalTitle(I)), 1),
1383
- s("div", Mt, [
1384
- s("div", Lt, l(r.priceFormat(p.subTotal, { currency: r.currency })), 1),
1385
- s("div", Vt, [
1386
- g(l(p.vatAmount ? e.$t("_common:vat.exVat", {
1440
+ o("div", Rt, [
1441
+ o("div", At, l(r.getIntervalTitle(E)), 1),
1442
+ o("div", zt, [
1443
+ o("div", qt, l(r.priceFormat(m.subTotal, { currency: r.currency })), 1),
1444
+ o("div", jt, [
1445
+ g(l(m.vatAmount ? e.$t("_common:vat.exVat", {
1387
1446
  thing: e.$t("_common:vat.vat")
1388
1447
  }) : e.$t("_common:total").capitalize()) + " ", 1),
1389
- I !== "oneOff" ? (c(), d($, { key: 0 }, [
1390
- g("/ " + l(e.$t(`_common:${I}`)), 1)
1448
+ E !== "oneOff" ? (c(), d(S, { key: 0 }, [
1449
+ g("/ " + l(e.$t(`_common:${E}`)), 1)
1391
1450
  ], 64)) : k("", !0)
1392
1451
  ])
1393
1452
  ])
1394
1453
  ]),
1395
- (c(!0), d($, null, V(p.items, (Y, ye) => (c(), d("div", {
1396
- key: ye,
1454
+ (c(!0), d(S, null, L(m.items, (Y, be) => (c(), d("div", {
1455
+ key: be,
1397
1456
  class: "mt-2 flex w-full justify-between pb-1"
1398
1457
  }, [
1399
- s("div", Ht, l(n.disableQuantity ? "" : `${Y.quantity} x `) + l(Y.name.capitalize()), 1),
1400
- s("div", Bt, l(r.priceFormat(Y.amount, { currency: r.currency })), 1)
1458
+ o("div", Nt, l(n.disableQuantity ? "" : `${Y.quantity} x `) + l(Y.name.capitalize()), 1),
1459
+ o("div", Zt, l(r.priceFormat(Y.amount, { currency: r.currency })), 1)
1401
1460
  ]))), 128))
1402
1461
  ]))), 128)),
1403
- e.promotion ? (c(), d("div", Ft, [
1404
- s("div", Ut, l(e.promotion.code || e.promotion.name), 1),
1405
- s("div", Dt, [
1406
- h(m, {
1462
+ e.promotion ? (c(), d("div", Yt, [
1463
+ o("div", Wt, l(e.promotion.code || e.promotion.name), 1),
1464
+ o("div", Qt, [
1465
+ h(p, {
1407
1466
  disabled: i.isEditLock,
1408
1467
  "icon-props": { size: 15 },
1409
1468
  size: "small",
@@ -1411,26 +1470,26 @@ function Zn(e, t, n, a, i, r) {
1411
1470
  pattern: "tertiary",
1412
1471
  icon: "trash",
1413
1472
  style: { height: "inherit", "margin-right": "3px" },
1414
- onClick: t[1] || (t[1] = (p) => e.$emit("input", { key: "promotion", value: null }))
1473
+ onClick: t[1] || (t[1] = (m) => e.$emit("input", { key: "promotion", value: null }))
1415
1474
  }, null, 8, ["disabled"]),
1416
- s("div", {
1475
+ o("div", {
1417
1476
  textContent: l(r.promotionDescription)
1418
- }, null, 8, Rt)
1477
+ }, null, 8, Gt)
1419
1478
  ])
1420
1479
  ])) : k("", !0),
1421
- e.formPrices.vatAmount ? (c(), d($, { key: 1 }, [
1422
- s("div", At, [
1423
- s("div", Ot, l(e.$t("_common:vat.vat").capitalize()), 1),
1424
- s("div", zt, l(r.priceFormat(e.formPrices.vatAmount, { currency: r.currency })), 1)
1480
+ e.formPrices.vatAmount ? (c(), d(S, { key: 1 }, [
1481
+ o("div", Kt, [
1482
+ o("div", Jt, l(e.$t("_common:vat.vat").capitalize()), 1),
1483
+ o("div", Xt, l(r.priceFormat(e.formPrices.vatAmount, { currency: r.currency })), 1)
1425
1484
  ]),
1426
- s("div", qt, [
1427
- s("div", jt, l(e.$t("_common:vat.incVat", {
1485
+ o("div", en, [
1486
+ o("div", tn, l(e.$t("_common:vat.incVat", {
1428
1487
  thing: e.$t("_common:vat.vat")
1429
1488
  }).capitalize()), 1),
1430
- s("div", Zt, l(r.priceFormat(e.formPrices.totalAmount, { currency: r.currency })), 1)
1489
+ o("div", nn, l(r.priceFormat(e.formPrices.totalAmount, { currency: r.currency })), 1)
1431
1490
  ])
1432
1491
  ], 64)) : k("", !0),
1433
- D(s("div", Nt, [
1492
+ D(o("div", rn, [
1434
1493
  i.promoInputVisible ? (c(), w(y, {
1435
1494
  key: 1,
1436
1495
  expanded: "",
@@ -1439,20 +1498,20 @@ function Zn(e, t, n, a, i, r) {
1439
1498
  default: f(() => [
1440
1499
  h(u, {
1441
1500
  modelValue: i.inputPromotionCode,
1442
- "onUpdate:modelValue": t[4] || (t[4] = (p) => i.inputPromotionCode = p),
1501
+ "onUpdate:modelValue": t[4] || (t[4] = (m) => i.inputPromotionCode = m),
1443
1502
  modelModifiers: { trim: !0 },
1444
1503
  placeholder: e.$t("promotion.placeholder"),
1445
1504
  "custom-class": i.isInvalidPromotionCode ? "is-danger shake" : "",
1446
1505
  size: "small",
1447
- onBlur: t[5] || (t[5] = (p) => r.verifyPromotionCode(i.inputPromotionCode)),
1448
- onKeyup: t[6] || (t[6] = $e((p) => r.verifyPromotionCode(i.inputPromotionCode), ["enter"]))
1506
+ onBlur: t[5] || (t[5] = (m) => r.verifyPromotionCode(i.inputPromotionCode)),
1507
+ onKeyup: t[6] || (t[6] = Ie((m) => r.verifyPromotionCode(i.inputPromotionCode), ["enter"]))
1449
1508
  }, {
1450
1509
  suffix: f(() => [
1451
- h(m, {
1510
+ h(p, {
1452
1511
  loading: e.isPosting,
1453
1512
  type: "secondary",
1454
1513
  size: "small",
1455
- onClick: t[3] || (t[3] = (p) => r.verifyPromotionCode(i.inputPromotionCode))
1514
+ onClick: t[3] || (t[3] = (m) => r.verifyPromotionCode(i.inputPromotionCode))
1456
1515
  }, {
1457
1516
  default: f(() => [
1458
1517
  g(l(e.$t("promotion.submit")), 1)
@@ -1464,14 +1523,14 @@ function Zn(e, t, n, a, i, r) {
1464
1523
  }, 8, ["modelValue", "placeholder", "custom-class"])
1465
1524
  ]),
1466
1525
  _: 1
1467
- })) : (c(), w(m, {
1526
+ })) : (c(), w(p, {
1468
1527
  key: 0,
1469
1528
  disabled: i.isEditLock,
1470
1529
  type: "secondary",
1471
1530
  pattern: "tertiary",
1472
1531
  size: "small",
1473
1532
  style: { "text-decoration": "underline", "margin-right": "-1em" },
1474
- onClick: t[2] || (t[2] = (p) => i.promoInputVisible = !0)
1533
+ onClick: t[2] || (t[2] = (m) => i.promoInputVisible = !0)
1475
1534
  }, {
1476
1535
  default: f(() => [
1477
1536
  g(l(e.$t("promotion.add")), 1)
@@ -1483,77 +1542,77 @@ function Zn(e, t, n, a, i, r) {
1483
1542
  ])
1484
1543
  ])
1485
1544
  ], 2),
1486
- s("div", Yt, [
1487
- (c(), d("svg", Wt, t[18] || (t[18] = [
1488
- s("path", {
1545
+ o("div", an, [
1546
+ (c(), d("svg", on, t[20] || (t[20] = [
1547
+ o("path", {
1489
1548
  fill: "currentColor",
1490
1549
  d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"
1491
1550
  }, null, -1)
1492
1551
  ]))),
1493
1552
  g(" " + l(e.$t("highlights.securePayment")), 1)
1494
1553
  ]),
1495
- s("div", Qt, [
1496
- (c(), d("svg", Gt, t[19] || (t[19] = [
1497
- s("path", {
1554
+ o("div", sn, [
1555
+ (c(), d("svg", ln, t[21] || (t[21] = [
1556
+ o("path", {
1498
1557
  fill: "currentColor",
1499
1558
  d: "M512 256c0-37.7-23.7-69.9-57.1-82.4 14.7-32.4 8.8-71.9-17.9-98.6-26.7-26.7-66.2-32.6-98.6-17.9C325.9 23.7 293.7 0 256 0s-69.9 23.7-82.4 57.1c-32.4-14.7-72-8.8-98.6 17.9-26.7 26.7-32.6 66.2-17.9 98.6C23.7 186.1 0 218.3 0 256s23.7 69.9 57.1 82.4c-14.7 32.4-8.8 72 17.9 98.6 26.6 26.6 66.1 32.7 98.6 17.9 12.5 33.3 44.7 57.1 82.4 57.1s69.9-23.7 82.4-57.1c32.6 14.8 72 8.7 98.6-17.9 26.7-26.7 32.6-66.2 17.9-98.6 33.4-12.5 57.1-44.7 57.1-82.4zm-144.8-44.25L236.16 341.74c-4.31 4.28-11.28 4.25-15.55-.06l-75.72-76.33c-4.28-4.31-4.25-11.28.06-15.56l26.03-25.82c4.31-4.28 11.28-4.25 15.56.06l42.15 42.49 97.2-96.42c4.31-4.28 11.28-4.25 15.55.06l25.82 26.03c4.28 4.32 4.26 11.29-.06 15.56z"
1500
1559
  }, null, -1)
1501
1560
  ]))),
1502
1561
  g(" " + l(e.$t("highlights.satisfiedCustomer")), 1)
1503
1562
  ]),
1504
- n.hideExtraInfo ? k("", !0) : (c(), d($, { key: 0 }, [
1505
- s("div", Kt, [
1563
+ n.hideExtraInfo ? k("", !0) : (c(), d(S, { key: 0 }, [
1564
+ o("div", cn, [
1506
1565
  h(C, {
1507
1566
  size: 17,
1508
1567
  "stroke-width": "2",
1509
1568
  type: "question",
1510
1569
  style: { opacity: "0.65", "margin-right": "0.5em" }
1511
1570
  }),
1512
- s("span", {
1571
+ o("span", {
1513
1572
  style: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" },
1514
- onClick: t[7] || (t[7] = (p) => e.$modal.show("reasonableUse")),
1573
+ onClick: t[7] || (t[7] = (m) => e.$modal.show("reasonableUse")),
1515
1574
  textContent: l(e.$t("reasonableUse.title"))
1516
- }, null, 8, Jt)
1575
+ }, null, 8, un)
1517
1576
  ]),
1518
- s("div", Xt, [
1577
+ o("div", dn, [
1519
1578
  h(C, {
1520
1579
  size: 17,
1521
1580
  "stroke-width": "2",
1522
1581
  type: "question",
1523
1582
  style: { opacity: "0.65", "margin-right": "0.5em" }
1524
1583
  }),
1525
- s("span", {
1584
+ o("span", {
1526
1585
  style: { "text-decoration": "underline", opacity: "0.85", cursor: "pointer" },
1527
- onClick: t[8] || (t[8] = (p) => e.$modal.show("faq")),
1586
+ onClick: t[8] || (t[8] = (m) => e.$modal.show("faq")),
1528
1587
  textContent: l(e.$t("faq.title"))
1529
- }, null, 8, en)
1588
+ }, null, 8, mn)
1530
1589
  ])
1531
1590
  ], 64))
1532
1591
  ]),
1533
- s("div", null, [
1534
- s("div", tn, [
1535
- s("div", nn, [
1536
- s("span", rn, l(e.$t("formSteps")), 1),
1537
- t[20] || (t[20] = s("br", null, null, -1)),
1592
+ o("div", null, [
1593
+ o("div", pn, [
1594
+ o("div", hn, [
1595
+ o("span", fn, l(e.$t("formSteps")), 1),
1596
+ t[22] || (t[22] = o("br", null, null, -1)),
1538
1597
  g(" " + l(e.$t("formTitle")), 1)
1539
1598
  ])
1540
1599
  ]),
1541
- s("div", an, [
1542
- n.disableQuantity ? k("", !0) : (c(), d("div", sn, [
1543
- s("div", on, [
1544
- s("div", null, [
1600
+ o("div", gn, [
1601
+ n.disableQuantity ? k("", !0) : (c(), d("div", yn, [
1602
+ o("div", vn, [
1603
+ o("div", null, [
1545
1604
  g(l(e.$t("quantity.label")) + " ", 1),
1546
1605
  D(h(C, {
1547
1606
  class: "text-gray-400",
1548
1607
  type: "info",
1549
1608
  size: "16"
1550
1609
  }, null, 512), [
1551
- [R, e.$t("quantity.tooltip")]
1610
+ [O, e.$t("quantity.tooltip")]
1552
1611
  ])
1553
1612
  ])
1554
1613
  ]),
1555
- s("div", ln, [
1556
- s("div", cn, [
1614
+ o("div", bn, [
1615
+ o("div", Cn, [
1557
1616
  h(y, {
1558
1617
  validator: a.v$.quantity,
1559
1618
  messages: r.messages.quantity,
@@ -1562,7 +1621,7 @@ function Zn(e, t, n, a, i, r) {
1562
1621
  default: f(() => [
1563
1622
  D(h(u, {
1564
1623
  modelValue: r.quantity,
1565
- "onUpdate:modelValue": t[9] || (t[9] = (p) => r.quantity = p),
1624
+ "onUpdate:modelValue": t[9] || (t[9] = (m) => r.quantity = m),
1566
1625
  modelModifiers: { number: !0 },
1567
1626
  disabled: n.uiPlan.accountType === "start" || i.isEditLock,
1568
1627
  size: "medium",
@@ -1571,7 +1630,7 @@ function Zn(e, t, n, a, i, r) {
1571
1630
  type: "number"
1572
1631
  }, null, 8, ["modelValue", "disabled"]), [
1573
1632
  [
1574
- R,
1633
+ O,
1575
1634
  n.uiPlan.accountType === "start" ? { content: e.$t("quantity.disabled") } : ""
1576
1635
  ]
1577
1636
  ])
@@ -1579,59 +1638,60 @@ function Zn(e, t, n, a, i, r) {
1579
1638
  _: 1
1580
1639
  }, 8, ["validator", "messages"])
1581
1640
  ]),
1582
- s("div", un, [
1583
- h(m, {
1641
+ o("div", kn, [
1642
+ h(p, {
1584
1643
  disabled: 2 > r.quantity || n.uiPlan.accountType === "start" || i.isEditLock,
1585
1644
  type: "none",
1586
1645
  pattern: "tertiary",
1587
1646
  icon: "minus",
1588
1647
  style: { width: "calc(3.5 * var(--rem))" },
1589
- onClick: t[10] || (t[10] = (p) => r.quantity--)
1648
+ onClick: t[10] || (t[10] = (m) => r.quantity--)
1590
1649
  }, null, 8, ["disabled"])
1591
1650
  ]),
1592
- s("div", dn, [
1593
- h(m, {
1651
+ o("div", Pn, [
1652
+ h(p, {
1594
1653
  disabled: n.uiPlan.accountType === "start" || i.isEditLock,
1595
1654
  type: "none",
1596
1655
  pattern: "tertiary",
1597
1656
  icon: "plus",
1598
1657
  style: { width: "calc(3.5 * var(--rem))" },
1599
- onClick: t[11] || (t[11] = (p) => r.quantity++)
1658
+ onClick: t[11] || (t[11] = (m) => r.quantity++)
1600
1659
  }, null, 8, ["disabled"])
1601
1660
  ])
1602
1661
  ])
1603
1662
  ])),
1604
- i.useExistingCustomer ? (c(), d("div", mn, [
1605
- h(m, {
1663
+ i.useExistingCustomer ? (c(), d("div", _n, [
1664
+ h(p, {
1606
1665
  size: "small",
1607
1666
  rounded: "",
1608
1667
  style: { position: "absolute", top: "calc(1 * var(--rem))", right: "calc(1 * var(--rem))" },
1609
- onClick: t[12] || (t[12] = (p) => i.useExistingCustomer = !1)
1668
+ onClick: t[12] || (t[12] = (m) => i.useExistingCustomer = !1)
1610
1669
  }, {
1611
1670
  default: f(() => [
1612
1671
  g(l(e.$t("_common:change")), 1)
1613
1672
  ]),
1614
1673
  _: 1
1615
1674
  }),
1616
- s("div", pn, [
1617
- s("div", {
1675
+ o("div", wn, [
1676
+ o("div", {
1618
1677
  innerHTML: i.cardBrands.get(e.customer.paymentMethodBrand, { width: 36 }).logo
1619
- }, null, 8, hn),
1620
- s("div", fn, [
1621
- s("span", gn, l(i.cardBrands.get(e.customer.paymentMethodBrand).name), 1),
1678
+ }, null, 8, Sn),
1679
+ o("div", Tn, [
1680
+ o("span", $n, l(i.cardBrands.get(e.customer.paymentMethodBrand).name), 1),
1622
1681
  g(" •••• " + l(e.customer.paymentMethodLast4 || ""), 1)
1623
1682
  ])
1624
1683
  ]),
1625
- s("div", null, l(e.customer.name), 1),
1626
- s("div", null, l(e.customer.email), 1),
1627
- i.regions[e.customer.region] ? (c(), d("div", yn, l(i.regions[e.customer.region].name), 1)) : k("", !0)
1628
- ])) : (c(), d($, { key: 2 }, [
1629
- s("div", vn, [
1630
- i.useExistingCard ? k("", !0) : (c(), d("div", bn, [
1631
- s("div", null, l(e.$t("paymentInfoLabel")), 1)
1684
+ o("div", null, l(e.customer.name), 1),
1685
+ r.requiresOrgNo ? (c(), d("div", xn, l(r.organisationNumber), 1)) : k("", !0),
1686
+ o("div", null, l(e.customer.email), 1),
1687
+ i.regions[e.customer.region] ? (c(), d("div", In, l(i.regions[e.customer.region].name), 1)) : k("", !0)
1688
+ ])) : (c(), d(S, { key: 2 }, [
1689
+ o("div", En, [
1690
+ i.useExistingCard ? k("", !0) : (c(), d("div", Mn, [
1691
+ o("div", null, l(e.$t("paymentInfoLabel")), 1)
1632
1692
  ])),
1633
- s("div", null, [
1634
- i.useExistingCard && r.existingCardLast4 ? (c(), d("div", Cn, [
1693
+ o("div", null, [
1694
+ i.useExistingCard && r.existingCardLast4 ? (c(), d("div", Vn, [
1635
1695
  g(l(e.$t("paymentInfoLabel")) + " ", 1),
1636
1696
  h(y, {
1637
1697
  messages: r.messages.email,
@@ -1645,10 +1705,10 @@ function Zn(e, t, n, a, i, r) {
1645
1705
  filled: ""
1646
1706
  }, {
1647
1707
  suffix: f(() => [
1648
- h(m, {
1708
+ h(p, {
1649
1709
  type: "secondary",
1650
1710
  size: "small",
1651
- onClick: t[13] || (t[13] = (p) => i.useExistingCard = !1)
1711
+ onClick: t[13] || (t[13] = (m) => i.useExistingCard = !1)
1652
1712
  }, {
1653
1713
  default: f(() => [
1654
1714
  g(l(e.$t("_common:change")), 1)
@@ -1662,46 +1722,65 @@ function Zn(e, t, n, a, i, r) {
1662
1722
  _: 1
1663
1723
  }, 8, ["messages"])
1664
1724
  ])) : k("", !0),
1665
- D(s("div", kn, null, 512), [
1725
+ D(o("div", Ln, null, 512), [
1666
1726
  [Q, !i.useExistingCard]
1667
1727
  ]),
1668
- D(s("div", {
1728
+ D(o("div", {
1669
1729
  class: "pt-2 text-red-500",
1670
1730
  textContent: l(e.elementsError)
1671
- }, null, 8, Pn), [
1731
+ }, null, 8, Hn), [
1672
1732
  [Q, e.elementsError && !i.useExistingCard]
1673
1733
  ])
1674
1734
  ])
1675
1735
  ]),
1676
- s("div", _n, [
1736
+ o("div", Bn, [
1677
1737
  g(l(e.$t("name.label")) + " ", 1),
1678
1738
  h(u, {
1679
1739
  "model-value": e.formCustomer.name,
1680
1740
  placeholder: e.$t("name.placeholder"),
1681
1741
  size: "medium",
1682
1742
  filled: "",
1683
- "onUpdate:modelValue": t[14] || (t[14] = (p) => e.$emit("input", { key: "customer.name", value: p }))
1743
+ "onUpdate:modelValue": t[14] || (t[14] = (m) => e.$emit("input", { key: "customer.name", value: m }))
1684
1744
  }, null, 8, ["model-value", "placeholder"])
1685
1745
  ]),
1686
- s("div", wn, [
1746
+ r.requiresOrgNo ? (c(), d("div", Fn, [
1747
+ h(y, {
1748
+ validator: a.v$.organisationNumber,
1749
+ messages: r.messages.organisationNumber,
1750
+ label: e.$t("orgNo.label"),
1751
+ expanded: ""
1752
+ }, {
1753
+ default: f(() => [
1754
+ h(u, {
1755
+ modelValue: r.organisationNumber,
1756
+ "onUpdate:modelValue": t[15] || (t[15] = (m) => r.organisationNumber = m),
1757
+ placeholder: e.$t("orgNo.placeholder"),
1758
+ onBlur: t[16] || (t[16] = (m) => a.v$.organisationNumber.$touch()),
1759
+ filled: ""
1760
+ }, null, 8, ["modelValue", "placeholder"])
1761
+ ]),
1762
+ _: 1
1763
+ }, 8, ["validator", "messages", "label"])
1764
+ ])) : k("", !0),
1765
+ o("div", Un, [
1687
1766
  g(l(e.$t("region.label")) + " ", 1),
1688
1767
  h(b, {
1689
1768
  "model-value": e.formCustomer.region,
1690
1769
  "select-class": "input",
1691
1770
  placeholder: e.$t("region.placeholder"),
1692
- "onUpdate:modelValue": t[15] || (t[15] = (p) => e.$emit("input", { key: "customer.region", value: p })),
1771
+ "onUpdate:modelValue": t[17] || (t[17] = (m) => e.$emit("input", { key: "customer.region", value: m })),
1693
1772
  filled: ""
1694
1773
  }, {
1695
1774
  default: f(() => [
1696
- (c(!0), d($, null, V(r.sortedRegions, ({ key: p, title: I }) => (c(), d("option", {
1697
- key: p,
1698
- value: p
1699
- }, l(I), 9, Sn))), 128))
1775
+ (c(!0), d(S, null, L(r.sortedRegions, ({ key: m, title: E }) => (c(), d("option", {
1776
+ key: m,
1777
+ value: m
1778
+ }, l(E), 9, Dn))), 128))
1700
1779
  ]),
1701
1780
  _: 1
1702
1781
  }, 8, ["model-value", "placeholder"])
1703
1782
  ]),
1704
- s("div", $n, [
1783
+ o("div", On, [
1705
1784
  g(l(e.$t("email.label")) + " ", 1),
1706
1785
  h(y, {
1707
1786
  validator: a.v$.formCustomer.email,
@@ -1714,7 +1793,7 @@ function Zn(e, t, n, a, i, r) {
1714
1793
  placeholder: e.$t("email.placeholder"),
1715
1794
  size: "medium",
1716
1795
  filled: "",
1717
- "onUpdate:modelValue": t[16] || (t[16] = (p) => e.$emit("input", { key: "customer.email", value: p }))
1796
+ "onUpdate:modelValue": t[18] || (t[18] = (m) => e.$emit("input", { key: "customer.email", value: m }))
1718
1797
  }, null, 8, ["model-value", "placeholder"])
1719
1798
  ]),
1720
1799
  _: 1
@@ -1722,53 +1801,53 @@ function Zn(e, t, n, a, i, r) {
1722
1801
  ])
1723
1802
  ], 64))
1724
1803
  ]),
1725
- n.collectConsent ? (c(), d("div", Tn, [
1804
+ n.collectConsent ? (c(), d("div", Rn, [
1726
1805
  h(M, {
1727
1806
  modelValue: i.consent,
1728
- "onUpdate:modelValue": t[17] || (t[17] = (p) => i.consent = p),
1807
+ "onUpdate:modelValue": t[19] || (t[19] = (m) => i.consent = m),
1729
1808
  type: "secondary",
1730
1809
  size: "normal"
1731
1810
  }, {
1732
1811
  default: f(() => [
1733
- s("div", {
1734
- class: Z([
1812
+ o("div", {
1813
+ class: N([
1735
1814
  a.v$.consent.$invalid && a.v$.consent.$dirty ? "has-text-danger" : "has-text-grey-dark"
1736
1815
  ])
1737
1816
  }, [
1738
1817
  g(l(e.$t("consent.label", { brand: e.$t("_common:brand.name") })) + " ", 1),
1739
- s("a", {
1818
+ o("a", {
1740
1819
  href: e.$t("_common:brand.termsOfService.url"),
1741
1820
  target: "_blank",
1742
1821
  rel: "noopener",
1743
1822
  class: "underline",
1744
1823
  tabindex: "-1"
1745
- }, l(e.$t("_common:terms.termsAndConditions")), 9, xn),
1824
+ }, l(e.$t("_common:terms.termsAndConditions")), 9, An),
1746
1825
  g(" " + l(e.$t("_common:and")) + " ", 1),
1747
- s("a", {
1826
+ o("a", {
1748
1827
  href: e.$t("_common:brand.privacyPolicy.url"),
1749
1828
  target: "_blank",
1750
1829
  rel: "noopener",
1751
1830
  class: "underline",
1752
1831
  tabindex: "-1"
1753
- }, l(e.$t("_common:terms.privacyPolicy")), 9, In)
1832
+ }, l(e.$t("_common:terms.privacyPolicy")), 9, zn)
1754
1833
  ], 2)
1755
1834
  ]),
1756
1835
  _: 1
1757
1836
  }, 8, ["modelValue"])
1758
1837
  ])) : k("", !0),
1759
- e.formError ? (c(), d("div", En, [
1838
+ e.formError ? (c(), d("div", qn, [
1760
1839
  h(C, {
1761
1840
  type: "warning",
1762
1841
  size: "14",
1763
1842
  stroke: "hsl(360, 100%, 60%)"
1764
1843
  }),
1765
- s("div", {
1844
+ o("div", {
1766
1845
  style: { "margin-left": "0.5em" },
1767
1846
  textContent: l(e.formError)
1768
- }, null, 8, Mn)
1847
+ }, null, 8, jn)
1769
1848
  ])) : k("", !0),
1770
- s("div", Ln, [
1771
- h(m, {
1849
+ o("div", Nn, [
1850
+ h(p, {
1772
1851
  loading: e.isPosting,
1773
1852
  type: "secondary",
1774
1853
  wide: "",
@@ -1796,27 +1875,27 @@ function Zn(e, t, n, a, i, r) {
1796
1875
  name: "faq"
1797
1876
  }, {
1798
1877
  default: f(() => [
1799
- s("div", Vn, [
1800
- s("div", {
1878
+ o("div", Zn, [
1879
+ o("div", {
1801
1880
  style: { "font-size": "calc(2 * var(--rem))", "font-weight": "600", "margin-bottom": "0.5em", padding: "calc(1 * var(--rem))" },
1802
1881
  textContent: l(e.$t("faq.title"))
1803
- }, null, 8, Hn),
1804
- (c(), d($, null, V(6, (p) => h(O, {
1805
- key: p,
1882
+ }, null, 8, Yn),
1883
+ (c(), d(S, null, L(6, (m) => h(A, {
1884
+ key: m,
1806
1885
  "default-open": null
1807
1886
  }, {
1808
- trigger: f(({ expanded: I }) => [
1809
- s("div", Bn, [
1810
- s("span", {
1887
+ trigger: f(({ expanded: E }) => [
1888
+ o("div", Wn, [
1889
+ o("span", {
1811
1890
  textContent: l(
1812
- e.$t(`faq.items.${p - 1}.title`, {
1891
+ e.$t(`faq.items.${m - 1}.title`, {
1813
1892
  brand: e.$t("_common:brand.name")
1814
1893
  })
1815
1894
  )
1816
- }, null, 8, Fn),
1895
+ }, null, 8, Qn),
1817
1896
  h(C, {
1818
1897
  style: ce([{
1819
- transform: `rotate(${I ? "0deg" : "180deg"})`
1898
+ transform: `rotate(${E ? "0deg" : "180deg"})`
1820
1899
  }, { transition: "200ms" }]),
1821
1900
  type: "chevron-down",
1822
1901
  size: "15"
@@ -1824,13 +1903,13 @@ function Zn(e, t, n, a, i, r) {
1824
1903
  ])
1825
1904
  ]),
1826
1905
  default: f(() => [
1827
- s("div", {
1906
+ o("div", {
1828
1907
  style: { "font-size": "14px", opacity: "0.65", padding: `0 calc(0.5 * var(--rem)) calc(2 * var(--rem))
1829
1908
  calc(0.5 * var(--rem))` },
1830
1909
  textContent: l(
1831
- e.$t(`faq.items.${p - 1}.text`, { brand: e.$t("_common:brand.name") })
1910
+ e.$t(`faq.items.${m - 1}.text`, { brand: e.$t("_common:brand.name") })
1832
1911
  )
1833
- }, null, 8, Un)
1912
+ }, null, 8, Gn)
1834
1913
  ]),
1835
1914
  _: 2
1836
1915
  }, 1024)), 64))
@@ -1849,33 +1928,33 @@ function Zn(e, t, n, a, i, r) {
1849
1928
  name: "reasonableUse"
1850
1929
  }, {
1851
1930
  default: f(() => [
1852
- s("div", Dn, [
1853
- s("div", {
1931
+ o("div", Kn, [
1932
+ o("div", {
1854
1933
  style: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "600", padding: "calc(1 * var(--rem))" },
1855
1934
  textContent: l(e.$t("reasonableUse.title"))
1856
- }, null, 8, Rn),
1857
- s("div", {
1935
+ }, null, 8, Jn),
1936
+ o("div", {
1858
1937
  style: { "font-size": "15px", opacity: "0.75", padding: "0 calc(1 * var(--rem)) calc(2 * var(--rem))" },
1859
1938
  textContent: l(e.$t("reasonableUse.text", { brand: e.$t("_common:brand.name") }))
1860
- }, null, 8, An),
1861
- s("div", On, [
1862
- (c(!0), d($, null, V(r.reasonableUseQuotas, (p, I) => (c(), d("div", {
1863
- key: I,
1939
+ }, null, 8, Xn),
1940
+ o("div", er, [
1941
+ (c(!0), d(S, null, L(r.reasonableUseQuotas, (m, E) => (c(), d("div", {
1942
+ key: E,
1864
1943
  style: { "font-size": "14px", "margin-bottom": "calc(1 * var(--rem))" }
1865
1944
  }, [
1866
- s("span", {
1945
+ o("span", {
1867
1946
  style: { "font-weight": "500", "padding-right": "0.5ch" },
1868
- textContent: l(e.$t(`reasonableUse.${p.type}`) + ":")
1869
- }, null, 8, zn),
1870
- s("span", {
1947
+ textContent: l(e.$t(`reasonableUse.${m.type}`) + ":")
1948
+ }, null, 8, tr),
1949
+ o("span", {
1871
1950
  style: { opacity: "0.75", "padding-right": "0.5ch" },
1872
- textContent: l(e.$t("reasonableUse.quotaIncluded", { count: p.count }))
1873
- }, null, 8, qn),
1874
- p.cost ? (c(), d("span", {
1951
+ textContent: l(e.$t("reasonableUse.quotaIncluded", { count: m.count }))
1952
+ }, null, 8, nr),
1953
+ m.cost ? (c(), d("span", {
1875
1954
  key: 0,
1876
1955
  style: { opacity: "0.75" },
1877
- textContent: l(e.$t("reasonableUse.quotaExtra", { cost: p.cost }))
1878
- }, null, 8, jn)) : k("", !0)
1956
+ textContent: l(e.$t("reasonableUse.quotaExtra", { cost: m.cost }))
1957
+ }, null, 8, rr)) : k("", !0)
1879
1958
  ]))), 128))
1880
1959
  ])
1881
1960
  ])
@@ -1884,7 +1963,7 @@ function Zn(e, t, n, a, i, r) {
1884
1963
  })
1885
1964
  ]);
1886
1965
  }
1887
- const Nn = /* @__PURE__ */ _(vt, [["render", Zn], ["__scopeId", "data-v-4eb51708"]]), Yn = {
1966
+ const ar = /* @__PURE__ */ _(It, [["render", ir], ["__scopeId", "data-v-6021e377"]]), or = {
1888
1967
  name: "PremiumStripeSelect",
1889
1968
  i18nOptions: {
1890
1969
  namespaces: "premiumStripeSelect",
@@ -1957,18 +2036,18 @@ const Nn = /* @__PURE__ */ _(vt, [["render", Zn], ["__scopeId", "data-v-4eb51708
1957
2036
  if (typeof t > "u" || typeof n > "u")
1958
2037
  return "";
1959
2038
  const a = t / (this.interval === "month" ? 1 : 12);
1960
- return `${A(a, { currency: n })}/${this.$t(
2039
+ return `${R(a, { currency: n })}/${this.$t(
1961
2040
  "_common:month"
1962
2041
  )}`;
1963
2042
  }
1964
2043
  }
1965
- }, Wn = {
2044
+ }, sr = {
1966
2045
  class: "animating flex w-full flex-col items-center",
1967
2046
  style: { "padding-top": "30px" }
1968
- }, Qn = {
2047
+ }, lr = {
1969
2048
  class: "anim-block flex w-full flex-col items-center text-center",
1970
2049
  style: { "margin-bottom": "50px" }
1971
- }, Gn = ["innerHTML"], Kn = { style: { position: "relative" } }, Jn = { class: "tgl-btn-group" }, Xn = ["onClick", "textContent"], er = { class: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, tr = ["textContent"], nr = { class: "PriceGrid" }, rr = ["onClick"], ir = ["src", "alt"], ar = { class: "PriceItem__title" }, sr = ["textContent"], or = {
2050
+ }, cr = ["innerHTML"], ur = { style: { position: "relative" } }, dr = { class: "tgl-btn-group" }, mr = ["onClick", "textContent"], pr = { class: "text-primary-600 absolute left-[88%] top-[112%] whitespace-nowrap text-[13px]" }, hr = ["textContent"], fr = { class: "PriceGrid" }, gr = ["onClick"], yr = ["src", "alt"], vr = { class: "PriceItem__title" }, br = ["textContent"], Cr = {
1972
2051
  key: 0,
1973
2052
  class: "[.selected_&]:text-primary-500 absolute right-0 top-0 rounded-tr-lg text-gray-400",
1974
2053
  width: "50",
@@ -1976,42 +2055,42 @@ const Nn = /* @__PURE__ */ _(vt, [["render", Zn], ["__scopeId", "data-v-4eb51708
1976
2055
  viewBox: "0 0 70 70",
1977
2056
  fill: "none",
1978
2057
  xmlns: "http://www.w3.org/2000/svg"
1979
- }, lr = { class: "PriceItem__cost" }, cr = ["textContent"], ur = { style: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, dr = ["textContent"], mr = { class: "PriceItem__text" }, pr = ["textContent"];
1980
- function hr(e, t, n, a, i, r) {
1981
- const o = v("CButton"), m = de("tooltip");
1982
- return c(), d("div", Wn, [
1983
- s("div", Qn, [
1984
- s("div", {
2058
+ }, kr = { class: "PriceItem__cost" }, Pr = ["textContent"], _r = { style: { "font-size": "14px", "margin-bottom": "20px", color: "hsl(240, 8%, 45%)", "min-height": "2em" } }, wr = ["textContent"], Sr = { class: "PriceItem__text" }, Tr = ["textContent"];
2059
+ function $r(e, t, n, a, i, r) {
2060
+ const s = v("CButton"), p = de("tooltip");
2061
+ return c(), d("div", sr, [
2062
+ o("div", lr, [
2063
+ o("div", {
1985
2064
  style: { "font-size": "22px", "font-weight": "600", "margin-bottom": "20px", "max-width": "20ch" },
1986
2065
  innerHTML: e.$t("title", { brand: e.$t("_common:brand.name") })
1987
- }, null, 8, Gn),
1988
- s("div", Kn, [
1989
- s("div", Jn, [
1990
- (c(), d($, null, V(["month", "year"], (u) => s("div", {
2066
+ }, null, 8, cr),
2067
+ o("div", ur, [
2068
+ o("div", dr, [
2069
+ (c(), d(S, null, L(["month", "year"], (u) => o("div", {
1991
2070
  key: u,
1992
- class: Z([{
2071
+ class: N([{
1993
2072
  selected: n.interval === u
1994
2073
  }, "tgl-btn"]),
1995
2074
  onClick: (y) => e.$emit("update:interval", u),
1996
2075
  textContent: l(e.$t(`_common:paymentInterval.${u}`).capitalize())
1997
- }, null, 10, Xn)), 64))
2076
+ }, null, 10, mr)), 64))
1998
2077
  ]),
1999
- s("div", er, [
2000
- t[1] || (t[1] = s("svg", {
2078
+ o("div", pr, [
2079
+ t[1] || (t[1] = o("svg", {
2001
2080
  width: "14",
2002
2081
  height: "14",
2003
2082
  viewBox: "0 0 24 24",
2004
2083
  fill: "none",
2005
2084
  xmlns: "http://www.w3.org/2000/svg"
2006
2085
  }, [
2007
- s("path", {
2086
+ o("path", {
2008
2087
  d: "M1.73255 11.5162L3.78467 5.87805L9.42282 7.93017",
2009
2088
  stroke: "currentColor",
2010
2089
  "stroke-width": "2",
2011
2090
  "stroke-linecap": "round",
2012
2091
  "stroke-linejoin": "round"
2013
2092
  }),
2014
- s("path", {
2093
+ o("path", {
2015
2094
  d: "M3.78467 5.87805C4.42683 7.25608 8.24738 13.7995 10.2964 15.6909C13.8158 18.9395 19.2241 17.4113 22.0419 16.6886",
2016
2095
  stroke: "currentColor",
2017
2096
  "stroke-width": "2",
@@ -2019,78 +2098,78 @@ function hr(e, t, n, a, i, r) {
2019
2098
  "stroke-linejoin": "round"
2020
2099
  })
2021
2100
  ], -1)),
2022
- s("span", {
2101
+ o("span", {
2023
2102
  style: { "padding-left": "0.25em" },
2024
2103
  textContent: l(e.$t("saveYearly"))
2025
- }, null, 8, tr)
2104
+ }, null, 8, hr)
2026
2105
  ])
2027
2106
  ])
2028
2107
  ]),
2029
- s("div", nr, [
2030
- (c(!0), d($, null, V(n.plans, (u, y) => (c(), d("div", {
2108
+ o("div", fr, [
2109
+ (c(!0), d(S, null, L(n.plans, (u, y) => (c(), d("div", {
2031
2110
  key: y,
2032
- class: Z([{
2111
+ class: N([{
2033
2112
  selected: n.plan === u.accountType
2034
2113
  }, "PriceItem anim-block"]),
2035
2114
  onClick: (C) => e.$emit("update:plan", u.accountType)
2036
2115
  }, [
2037
- s("div", null, [
2038
- s("img", {
2116
+ o("div", null, [
2117
+ o("img", {
2039
2118
  src: u.img,
2040
2119
  alt: u.name,
2041
2120
  width: "50",
2042
2121
  height: "50",
2043
2122
  style: { "box-shadow": "0 4px 6px rgba(240, 147, 234, 0.34)", "border-radius": "50%" }
2044
- }, null, 8, ir)
2123
+ }, null, 8, yr)
2045
2124
  ]),
2046
- s("div", ar, [
2047
- s("span", {
2125
+ o("div", vr, [
2126
+ o("span", {
2048
2127
  textContent: l(u.name)
2049
- }, null, 8, sr),
2128
+ }, null, 8, br),
2050
2129
  t[2] || (t[2] = g("  "))
2051
2130
  ]),
2052
- r.currentAccountType === u.accountType ? D((c(), d("svg", or, t[3] || (t[3] = [
2053
- s("path", {
2131
+ r.currentAccountType === u.accountType ? D((c(), d("svg", Cr, t[3] || (t[3] = [
2132
+ o("path", {
2054
2133
  d: "M0 0H70V70L0 0Z",
2055
2134
  fill: "currentColor"
2056
2135
  }, null, -1),
2057
- s("path", {
2136
+ o("path", {
2058
2137
  d: "M39.4203 23.5667L45 29.1464L57.0732 17.0732",
2059
2138
  stroke: "white",
2060
2139
  "stroke-width": "4"
2061
2140
  }, null, -1)
2062
2141
  ]))), [
2063
- [m, e.$t("currentPlan")]
2142
+ [p, e.$t("currentPlan")]
2064
2143
  ]) : k("", !0),
2065
- s("div", lr, [
2066
- s("span", {
2144
+ o("div", kr, [
2145
+ o("span", {
2067
2146
  style: { display: "inline-block" },
2068
2147
  textContent: l(r.getPriceFormatted(u))
2069
- }, null, 8, cr),
2148
+ }, null, 8, Pr),
2070
2149
  t[4] || (t[4] = g("   "))
2071
2150
  ]),
2072
- s("div", ur, [
2151
+ o("div", _r, [
2073
2152
  h(ue, { name: "vertical-fader" }, {
2074
2153
  default: f(() => [
2075
2154
  n.interval === "year" && u.accountType !== "free" ? (c(), d("span", {
2076
2155
  key: 0,
2077
2156
  style: { display: "inline-block" },
2078
2157
  textContent: l(e.$t("billedYearly"))
2079
- }, null, 8, dr)) : k("", !0)
2158
+ }, null, 8, wr)) : k("", !0)
2080
2159
  ]),
2081
2160
  _: 2
2082
2161
  }, 1024)
2083
2162
  ]),
2084
- s("ul", mr, [
2085
- (c(!0), d($, null, V(u.features, (C) => (c(), d("li", { key: C }, [
2086
- s("span", {
2163
+ o("ul", Sr, [
2164
+ (c(!0), d(S, null, L(u.features, (C) => (c(), d("li", { key: C }, [
2165
+ o("span", {
2087
2166
  textContent: l(C)
2088
- }, null, 8, pr)
2167
+ }, null, 8, Tr)
2089
2168
  ]))), 128))
2090
2169
  ])
2091
- ], 10, rr))), 128))
2170
+ ], 10, gr))), 128))
2092
2171
  ]),
2093
- h(o, {
2172
+ h(s, {
2094
2173
  disabled: r.currentAccountType === n.plan && r.currentInterval === n.interval || n.plan === "free",
2095
2174
  type: "secondary",
2096
2175
  class: "anim-block sticky-btn",
@@ -2104,7 +2183,7 @@ function hr(e, t, n, a, i, r) {
2104
2183
  }, 8, ["disabled"])
2105
2184
  ]);
2106
2185
  }
2107
- const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30"]]), gr = {
2186
+ const xr = /* @__PURE__ */ _(or, [["render", $r], ["__scopeId", "data-v-14adef30"]]), Ir = {
2108
2187
  sv: {
2109
2188
  premiumStripe: {
2110
2189
  "features.free": [
@@ -2147,7 +2226,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2147
2226
  title: 'Upgrade your plan. <span style="opacity: 0.5;">Get more out of Offerta.</span>'
2148
2227
  }
2149
2228
  }
2150
- }, yr = {
2229
+ }, Er = {
2151
2230
  name: "PremiumStripe",
2152
2231
  i18nOptions: {
2153
2232
  namespaces: "premiumStripe",
@@ -2171,7 +2250,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2171
2250
  `
2172
2251
  },
2173
2252
  widget: {
2174
- text: `Service provided by ${E[T.brand].name}. <a href="${E[T.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Terms</a> for ${E[T.brand].name}.`
2253
+ text: `Service provided by ${$[T.brand].name}. <a href="${$[T.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Terms</a> for ${$[T.brand].name}.`
2175
2254
  }
2176
2255
  },
2177
2256
  features: {
@@ -2201,11 +2280,10 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2201
2280
  "API",
2202
2281
  "User roles",
2203
2282
  "Signing order",
2204
- "Custom subdomain",
2205
2283
  "Custom email address",
2206
2284
  "Version control",
2207
2285
  ...U.checkFeature("bankId") ? ["BankID"] : [],
2208
- `Hide ${E[T.brand].name}-logo`,
2286
+ `Hide ${$[T.brand].name}-logo`,
2209
2287
  "CRM integrations"
2210
2288
  ]
2211
2289
  },
@@ -2235,7 +2313,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2235
2313
  `
2236
2314
  },
2237
2315
  widget: {
2238
- text: `Tjänsten tillhandahålls via ${E[T.brand].name}. <a href="${E[T.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Villkor</a> för ${E[T.brand].name}.`
2316
+ text: `Tjänsten tillhandahålls via ${$[T.brand].name}. <a href="${$[T.brand].termsOfService.url}" target="_blank" class="font-semibold underline">Villkor</a> för ${$[T.brand].name}.`
2239
2317
  }
2240
2318
  },
2241
2319
  features: {
@@ -2265,11 +2343,10 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2265
2343
  "API",
2266
2344
  "Roller för medlemmar",
2267
2345
  "Signeringsordning",
2268
- "Subdomän",
2269
2346
  "Egen e-postdomän",
2270
2347
  "Versionshantering",
2271
2348
  ...U.checkFeature("bankId") ? ["BankID"] : [],
2272
- `Göm ${E[T.brand].name}-logo`,
2349
+ `Göm ${$[T.brand].name}-logo`,
2273
2350
  "CRM-Integrationer"
2274
2351
  ]
2275
2352
  },
@@ -2283,9 +2360,9 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2283
2360
  }
2284
2361
  },
2285
2362
  components: {
2286
- Confetti: ht,
2287
- PremiumStripeSelect: fr,
2288
- PremiumStripeForm: Nn
2363
+ Confetti: yt,
2364
+ PremiumStripeSelect: xr,
2365
+ PremiumStripeForm: ar
2289
2366
  },
2290
2367
  emits: ["close"],
2291
2368
  props: {
@@ -2307,7 +2384,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2307
2384
  };
2308
2385
  },
2309
2386
  computed: {
2310
- ...Te({
2387
+ ...Ee({
2311
2388
  forceShowBase: (e) => e.route.query.base,
2312
2389
  routeDeal: (e) => e.route.query.deal
2313
2390
  }),
@@ -2360,8 +2437,8 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2360
2437
  },
2361
2438
  prettyPlans() {
2362
2439
  const e = [], t = this.getPrice("start", "month") || this.getPrice("start", "year"), n = this.getPrice("base", "month") || this.getPrice("base", "year"), a = t && (this.subscription.maxProjectManagers === 1 && this.subscription.mrr < 4e4 || !["base", "pro"].includes(this.accountType)), i = () => {
2363
- const r = this.subscription.isStripeLegacy || this.subscription.paymentMethod === "invoice", o = this.subscription.billingCycleInterval === "month" && this.subscription.mrr < 45e3 || this.subscription.billingCycleInterval === "year" && this.subscription.mrr < 38e3;
2364
- return n && (r && !this.forceShowBase ? o : !0);
2440
+ const r = this.subscription.isStripeLegacy || this.subscription.paymentMethod === "invoice", s = this.subscription.billingCycleInterval === "month" && this.subscription.mrr < 45e3 || this.subscription.billingCycleInterval === "year" && this.subscription.mrr < 38e3;
2441
+ return n && (r && !this.forceShowBase ? s : !0);
2365
2442
  };
2366
2443
  return this.isOfferta && e.push({
2367
2444
  name: "Free",
@@ -2393,21 +2470,21 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2393
2470
  return this.accountConfigName === "offerta";
2394
2471
  },
2395
2472
  disableQuantity() {
2396
- return this.isOfferta && Me.value === "widget";
2473
+ return this.isOfferta && He.value === "widget";
2397
2474
  }
2398
2475
  },
2399
2476
  beforeCreate() {
2400
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", pe);
2477
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", fe);
2401
2478
  },
2402
2479
  async created() {
2403
- this.isOfferta && Ee(gr), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
2480
+ this.isOfferta && Le(Ir), this.resetStripeForm(), await this.loadPrices(), await this.suggestQuantity(), await this.handlePossibleDeal(), this.isEdit = !!this.subscriptions.length;
2404
2481
  },
2405
2482
  methods: {
2406
- ...N({
2407
- loadPrices: S.LOAD_PRICES,
2408
- resetStripeForm: S.RESET_STRIPE_FORM,
2409
- setFormValue: S.SET_STRIPE_FORM_VALUE,
2410
- updateSettings: S.UPDATE_SETTINGS
2483
+ ...Z({
2484
+ loadPrices: x.LOAD_PRICES,
2485
+ resetStripeForm: x.RESET_STRIPE_FORM,
2486
+ setFormValue: x.SET_STRIPE_FORM_VALUE,
2487
+ updateSettings: x.UPDATE_SETTINGS
2411
2488
  }),
2412
2489
  // Suggest quantity of licenses based on property or from account
2413
2490
  async suggestQuantity() {
@@ -2416,7 +2493,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2416
2493
  this.quantity = this.suggestedQuantity;
2417
2494
  return;
2418
2495
  }
2419
- const { data: e } = await Ie();
2496
+ const { data: e } = await Ve();
2420
2497
  this.quantity = e;
2421
2498
  },
2422
2499
  onReset() {
@@ -2453,7 +2530,7 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2453
2530
  setFromDealToken(e) {
2454
2531
  if (e)
2455
2532
  try {
2456
- const t = xe(e);
2533
+ const t = Me(e);
2457
2534
  if (t.accountType && (this.plan = t.accountType), t.accountTypeInterval && (this.interval = t.accountTypeInterval), t.accountQuantity && (this.quantity = t.accountQuantity), t.dealSource && (this.dealSource = t.dealSource), t.items) {
2458
2535
  const n = [];
2459
2536
  Object.keys(t.items).forEach((a) => {
@@ -2476,26 +2553,26 @@ const fr = /* @__PURE__ */ _(Yn, [["render", hr], ["__scopeId", "data-v-14adef30
2476
2553
  }
2477
2554
  }
2478
2555
  }
2479
- }, vr = { class: "font-inter anime-payment-modal font-base relative grid h-full place-items-center overflow-auto bg-white px-12 py-8" }, br = { style: { position: "absolute", left: "1em", top: "0.5em", display: "inline-flex", "z-index": "10" } }, Cr = {
2556
+ }, Mr = { class: "font-inter anime-payment-modal font-base relative grid h-full place-items-center overflow-auto bg-white px-12 py-8" }, Vr = { style: { position: "absolute", left: "1em", top: "0.5em", display: "inline-flex", "z-index": "10" } }, Lr = {
2480
2557
  key: 0,
2481
2558
  class: "bg-primary-100 border-primary-300 relative inline-block rounded-lg border-2 py-4 pl-12 pr-4",
2482
2559
  style: { "max-width": "calc(55 * var(--rem))" }
2483
- }, kr = ["textContent"], Pr = ["innerHTML"], _r = {
2560
+ }, Hr = ["textContent"], Br = ["innerHTML"], Fr = {
2484
2561
  key: 2,
2485
2562
  class: "flex h-full w-full flex-col items-center justify-center text-center"
2486
- }, wr = {
2563
+ }, Ur = {
2487
2564
  key: 0,
2488
2565
  class: "success-block",
2489
2566
  style: { "font-size": "calc(18px + 2vw)", "font-weight": "800" }
2490
- }, Sr = {
2567
+ }, Dr = {
2491
2568
  class: "success-block",
2492
2569
  style: { "font-size": "20px", opacity: "0.7" }
2493
2570
  };
2494
- function $r(e, t, n, a, i, r) {
2495
- const o = v("CButton"), m = v("CIcon"), u = v("PremiumStripeSelect"), y = v("PremiumStripeForm"), C = v("Confetti");
2496
- return c(), d("div", vr, [
2497
- s("div", br, [
2498
- h(o, {
2571
+ function Or(e, t, n, a, i, r) {
2572
+ const s = v("CButton"), p = v("CIcon"), u = v("PremiumStripeSelect"), y = v("PremiumStripeForm"), C = v("Confetti");
2573
+ return c(), d("div", Mr, [
2574
+ o("div", Vr, [
2575
+ h(s, {
2499
2576
  "icon-props": { size: 20 },
2500
2577
  pattern: "tertiary",
2501
2578
  type: "none",
@@ -2503,7 +2580,7 @@ function $r(e, t, n, a, i, r) {
2503
2580
  icon: "x",
2504
2581
  onClick: t[0] || (t[0] = (b) => e.$emit("close"))
2505
2582
  }),
2506
- i.view === "form" ? (c(), w(o, {
2583
+ i.view === "form" ? (c(), w(s, {
2507
2584
  key: 0,
2508
2585
  "icon-props": { size: 20 },
2509
2586
  pattern: "tertiary",
@@ -2514,22 +2591,22 @@ function $r(e, t, n, a, i, r) {
2514
2591
  onClick: r.onReset
2515
2592
  }, null, 8, ["onClick"])) : k("", !0)
2516
2593
  ]),
2517
- r.calloutMode ? (c(), d("div", Cr, [
2518
- h(m, {
2594
+ r.calloutMode ? (c(), d("div", Lr, [
2595
+ h(p, {
2519
2596
  type: "info",
2520
2597
  size: "20",
2521
2598
  class: "text-primary-800 absolute left-4 top-5"
2522
2599
  }),
2523
- s("div", {
2600
+ o("div", {
2524
2601
  class: "text-primary-800 font-semibold",
2525
2602
  textContent: l(e.$t(`callout.${r.calloutMode}.title`))
2526
- }, null, 8, kr),
2527
- s("div", {
2603
+ }, null, 8, Hr),
2604
+ o("div", {
2528
2605
  class: "text-sm opacity-70",
2529
2606
  innerHTML: e.$t(`callout.${r.calloutMode}.text`)
2530
- }, null, 8, Pr)
2607
+ }, null, 8, Br)
2531
2608
  ])) : k("", !0),
2532
- s("div", null, [
2609
+ o("div", null, [
2533
2610
  i.view === "select" ? (c(), w(u, {
2534
2611
  key: 0,
2535
2612
  plan: r.plan,
@@ -2548,11 +2625,11 @@ function $r(e, t, n, a, i, r) {
2548
2625
  "onUpdate:interval": t[4] || (t[4] = (b) => r.interval = b),
2549
2626
  onInput: e.setFormValue,
2550
2627
  onSuccess: r.goToSuccess
2551
- }, null, 8, ["ui-plan", "form-plan", "disable-quantity", "hide-extra-info", "collect-consent", "onInput", "onSuccess"])) : i.view === "success" ? (c(), d("div", _r, [
2628
+ }, null, 8, ["ui-plan", "form-plan", "disable-quantity", "hide-extra-info", "collect-consent", "onInput", "onSuccess"])) : i.view === "success" ? (c(), d("div", Fr, [
2552
2629
  h(C, { animate: i.animateConfetti }, null, 8, ["animate"]),
2553
- i.isEdit ? k("", !0) : (c(), d("div", wr, l(e.$t("success.title")), 1)),
2554
- s("div", Sr, l(i.isEdit ? e.$t("success.subTitleEdit") : e.$t("success.subTitle")), 1),
2555
- h(o, {
2630
+ i.isEdit ? k("", !0) : (c(), d("div", Ur, l(e.$t("success.title")), 1)),
2631
+ o("div", Dr, l(i.isEdit ? e.$t("success.subTitleEdit") : e.$t("success.subTitle")), 1),
2632
+ h(s, {
2556
2633
  class: "success-block",
2557
2634
  type: "secondary",
2558
2635
  size: "medium",
@@ -2569,7 +2646,7 @@ function $r(e, t, n, a, i, r) {
2569
2646
  ])
2570
2647
  ]);
2571
2648
  }
2572
- const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
2649
+ const ye = /* @__PURE__ */ _(Er, [["render", Or]]), Rr = {
2573
2650
  name: "IsPremium",
2574
2651
  computed: {
2575
2652
  ...B({
@@ -2591,7 +2668,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
2591
2668
  },
2592
2669
  canCreateDocument() {
2593
2670
  return this.subscription.freeDocumentsLeft > 0 || // Has free quota left
2594
- L(this.companyAccount, "documentQuota.priceExtra.value") !== null;
2671
+ V(this.companyAccount, "documentQuota.priceExtra.value") !== null;
2595
2672
  },
2596
2673
  canCreateTemplate() {
2597
2674
  return this.feature("createDocTemplate");
@@ -2621,7 +2698,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
2621
2698
  } = {}) {
2622
2699
  let a = () => null, i = () => null;
2623
2700
  typeof t == "function" && (a = t), typeof n == "function" && (i = n), this.$modal.show(
2624
- fe,
2701
+ ye,
2625
2702
  {
2626
2703
  suggestedQuantity: e,
2627
2704
  onUpgrade: a
@@ -2641,7 +2718,7 @@ const fe = /* @__PURE__ */ _(yr, [["render", $r]]), Tr = {
2641
2718
  }
2642
2719
  }
2643
2720
  };
2644
- function xr(e, t, n, a, i, r) {
2721
+ function Ar(e, t, n, a, i, r) {
2645
2722
  return H(e.$slots, "default", {
2646
2723
  isPremium: r.isPremium,
2647
2724
  isPremiumLike: r.isPremiumLike,
@@ -2662,7 +2739,7 @@ function xr(e, t, n, a, i, r) {
2662
2739
  canUseSms: r.canUseSms
2663
2740
  });
2664
2741
  }
2665
- const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
2742
+ const ve = /* @__PURE__ */ _(Rr, [["render", Ar]]), zr = {
2666
2743
  i18nOptions: {
2667
2744
  namespaces: "components",
2668
2745
  messages: {
@@ -2686,8 +2763,8 @@ const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
2686
2763
  },
2687
2764
  name: "PremiumRestrictedBase",
2688
2765
  components: {
2689
- IsPremium: ge,
2690
- CalloutLegacy: me
2766
+ IsPremium: ve,
2767
+ CalloutLegacy: he
2691
2768
  },
2692
2769
  emits: ["close"],
2693
2770
  props: {
@@ -2731,38 +2808,38 @@ const ge = /* @__PURE__ */ _(Tr, [["render", xr]]), Ir = {
2731
2808
  }
2732
2809
  }
2733
2810
  }
2734
- }, Er = { class: "root font-inter" }, Mr = { class: "lock-wrapper has-text-white" }, Lr = { style: { width: "100%" } }, Vr = { class: "flex items-center justify-center" }, Hr = { class: "badge-premium" }, Br = { style: { "text-align": "center" } }, Fr = { class: "title" }, Ur = { class: "sub-title" }, Dr = {
2811
+ }, qr = { class: "root font-inter" }, jr = { class: "lock-wrapper has-text-white" }, Nr = { style: { width: "100%" } }, Zr = { class: "flex items-center justify-center" }, Yr = { class: "badge-premium" }, Wr = { style: { "text-align": "center" } }, Qr = { class: "title" }, Gr = { class: "sub-title" }, Kr = {
2735
2812
  key: 0,
2736
2813
  style: { "margin-top": "calc(2 * var(--rem))" }
2737
- }, Rr = { style: { "margin-top": "calc(2 * var(--rem))" } }, Ar = { style: { "margin-top": "5px" } };
2738
- function Or(e, t, n, a, i, r) {
2739
- const o = v("CIcon"), m = v("CalloutLegacy"), u = v("CButton"), y = v("IsPremium");
2740
- return c(), d("div", Er, [
2741
- s("div", Mr, [
2742
- h(o, {
2814
+ }, Jr = { style: { "margin-top": "calc(2 * var(--rem))" } }, Xr = { style: { "margin-top": "5px" } };
2815
+ function ei(e, t, n, a, i, r) {
2816
+ const s = v("CIcon"), p = v("CalloutLegacy"), u = v("CButton"), y = v("IsPremium");
2817
+ return c(), d("div", qr, [
2818
+ o("div", jr, [
2819
+ h(s, {
2743
2820
  type: "lock",
2744
2821
  size: "24"
2745
2822
  })
2746
2823
  ]),
2747
- s("div", Lr, [
2748
- s("div", Vr, [
2749
- s("div", Hr, l(e.$t(`badge.${n.plan}`)), 1)
2824
+ o("div", Nr, [
2825
+ o("div", Zr, [
2826
+ o("div", Yr, l(e.$t(`badge.${n.plan}`)), 1)
2750
2827
  ]),
2751
- s("div", Br, [
2828
+ o("div", Wr, [
2752
2829
  H(e.$slots, "default", {}, () => [
2753
2830
  H(e.$slots, "image", {}, void 0, !0),
2754
- s("div", Fr, l(n.title), 1),
2755
- s("div", Ur, l(n.subTitle), 1)
2831
+ o("div", Qr, l(n.title), 1),
2832
+ o("div", Gr, l(n.subTitle), 1)
2756
2833
  ], !0),
2757
- e.$slots.content ? (c(), d("div", Dr, [
2834
+ e.$slots.content ? (c(), d("div", Kr, [
2758
2835
  H(e.$slots, "content", {}, void 0, !0)
2759
2836
  ])) : k("", !0)
2760
2837
  ]),
2761
- s("div", Rr, [
2838
+ o("div", Jr, [
2762
2839
  h(y, null, {
2763
2840
  default: f(({ openUpgradeModal: C, isLegacy: b, showCalloutConvertStripe: M }) => [
2764
- s("div", null, [
2765
- b || M ? (c(), w(m, {
2841
+ o("div", null, [
2842
+ b || M ? (c(), w(p, {
2766
2843
  key: 0,
2767
2844
  mode: b ? "legacy" : "invoice"
2768
2845
  }, null, 8, ["mode"])) : k("", !0),
@@ -2771,7 +2848,7 @@ function Or(e, t, n, a, i, r) {
2771
2848
  disabled: b || M,
2772
2849
  type: "secondary",
2773
2850
  wide: "",
2774
- onClick: (O) => r.onActionClick(n.actionFunction || C)
2851
+ onClick: (A) => r.onActionClick(n.actionFunction || C)
2775
2852
  }, {
2776
2853
  default: f(() => [
2777
2854
  H(e.$slots, "actionText", {}, () => [
@@ -2784,7 +2861,7 @@ function Or(e, t, n, a, i, r) {
2784
2861
  ]),
2785
2862
  _: 3
2786
2863
  }),
2787
- s("div", Ar, [
2864
+ o("div", Xr, [
2788
2865
  h(u, {
2789
2866
  type: "none",
2790
2867
  pattern: "tertiary",
@@ -2801,7 +2878,7 @@ function Or(e, t, n, a, i, r) {
2801
2878
  ])
2802
2879
  ]);
2803
2880
  }
2804
- const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"]]), zr = {
2881
+ const I = /* @__PURE__ */ _(zr, [["render", ei], ["__scopeId", "data-v-dd63f0f1"]]), ti = {
2805
2882
  i18nOptions: {
2806
2883
  namespaces: "PremiumRestrictedBankIdAndSms",
2807
2884
  messages: {
@@ -2819,7 +2896,7 @@ const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"
2819
2896
  },
2820
2897
  name: "PremiumRestrictedBankIdAndSms",
2821
2898
  components: {
2822
- PremiumRestrictedBase: x
2899
+ PremiumRestrictedBase: I
2823
2900
  },
2824
2901
  props: {
2825
2902
  onUpgrade: {
@@ -2833,9 +2910,9 @@ const x = /* @__PURE__ */ _(Ir, [["render", Or], ["__scopeId", "data-v-dd63f0f1"
2833
2910
  })
2834
2911
  }
2835
2912
  };
2836
- function qr(e, t, n, a, i, r) {
2837
- const o = v("PremiumRestrictedBase");
2838
- return c(), w(o, {
2913
+ function ni(e, t, n, a, i, r) {
2914
+ const s = v("PremiumRestrictedBase");
2915
+ return c(), w(s, {
2839
2916
  title: e.$t("title", {
2840
2917
  bankIdText: e.feature("bankId") ? "BankID " + e.$t("_common:and") : ""
2841
2918
  }),
@@ -2851,7 +2928,7 @@ function qr(e, t, n, a, i, r) {
2851
2928
  _: 1
2852
2929
  }, 8, ["title", "sub-title", "on-upgrade"]);
2853
2930
  }
2854
- const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
2931
+ const ri = /* @__PURE__ */ _(ti, [["render", ni]]), ii = {
2855
2932
  i18nOptions: {
2856
2933
  namespaces: "licenses",
2857
2934
  messages: {
@@ -2869,7 +2946,7 @@ const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
2869
2946
  },
2870
2947
  name: "PremiumRestrictedCreators",
2871
2948
  components: {
2872
- PremiumRestrictedBase: x
2949
+ PremiumRestrictedBase: I
2873
2950
  },
2874
2951
  props: {
2875
2952
  onUpgrade: {
@@ -2878,9 +2955,9 @@ const jr = /* @__PURE__ */ _(zr, [["render", qr]]), Zr = {
2878
2955
  }
2879
2956
  }
2880
2957
  };
2881
- function Nr(e, t, n, a, i, r) {
2882
- const o = v("PremiumRestrictedBase");
2883
- return c(), w(o, {
2958
+ function ai(e, t, n, a, i, r) {
2959
+ const s = v("PremiumRestrictedBase");
2960
+ return c(), w(s, {
2884
2961
  title: e.$t("title"),
2885
2962
  "sub-title": e.$t("subTitle"),
2886
2963
  "action-function": n.onUpgrade,
@@ -2892,7 +2969,7 @@ function Nr(e, t, n, a, i, r) {
2892
2969
  _: 1
2893
2970
  }, 8, ["title", "sub-title", "action-function"]);
2894
2971
  }
2895
- const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
2972
+ const oi = /* @__PURE__ */ _(ii, [["render", ai]]), si = {
2896
2973
  i18nOptions: {
2897
2974
  namespaces: "stats",
2898
2975
  messages: {
@@ -2910,7 +2987,7 @@ const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
2910
2987
  },
2911
2988
  name: "PremiumRestrictedDocumentBlocks",
2912
2989
  components: {
2913
- PremiumRestrictedBase: x
2990
+ PremiumRestrictedBase: I
2914
2991
  },
2915
2992
  props: {
2916
2993
  onUpgrade: {
@@ -2919,9 +2996,9 @@ const Yr = /* @__PURE__ */ _(Zr, [["render", Nr]]), Wr = {
2919
2996
  }
2920
2997
  }
2921
2998
  };
2922
- function Qr(e, t, n, a, i, r) {
2923
- const o = v("PremiumRestrictedBase");
2924
- return c(), w(o, {
2999
+ function li(e, t, n, a, i, r) {
3000
+ const s = v("PremiumRestrictedBase");
3001
+ return c(), w(s, {
2925
3002
  title: e.$t("title"),
2926
3003
  "sub-title": e.$t("subTitle"),
2927
3004
  "on-upgrade": n.onUpgrade,
@@ -2933,7 +3010,7 @@ function Qr(e, t, n, a, i, r) {
2933
3010
  _: 1
2934
3011
  }, 8, ["title", "sub-title", "on-upgrade"]);
2935
3012
  }
2936
- const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
3013
+ const ci = /* @__PURE__ */ _(si, [["render", li]]), ui = {
2937
3014
  i18nOptions: {
2938
3015
  namespaces: "PremiumRestrictedDocuments",
2939
3016
  messages: {
@@ -2957,7 +3034,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
2957
3034
  },
2958
3035
  name: "PremiumRestrictedDocuments",
2959
3036
  components: {
2960
- PremiumRestrictedBase: x
3037
+ PremiumRestrictedBase: I
2961
3038
  },
2962
3039
  emits: ["close"],
2963
3040
  props: {
@@ -2983,7 +3060,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
2983
3060
  },
2984
3061
  created() {
2985
3062
  try {
2986
- Ve("/documentLimitReached", {});
3063
+ Fe("/documentLimitReached", {});
2987
3064
  } catch (e) {
2988
3065
  X(e, { showMessage: !1 });
2989
3066
  }
@@ -2992,8 +3069,8 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
2992
3069
  this.checkFreeDocVoucher();
2993
3070
  },
2994
3071
  methods: {
2995
- ...N({
2996
- loadCurrentCompany: S.DO_LOAD_CURRENT_COMPANY
3072
+ ...Z({
3073
+ loadCurrentCompany: x.DO_LOAD_CURRENT_COMPANY
2997
3074
  }),
2998
3075
  async checkFreeDocVoucher() {
2999
3076
  var t, n;
@@ -3019,7 +3096,7 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
3019
3096
  await ne.post({ code: "freeUserDocs" }), G.setItem(
3020
3097
  "voucher-freeUserDocs-company-id",
3021
3098
  this.account.CompanyId
3022
- ), await this.loadCurrentCompany(), Le(
3099
+ ), await this.loadCurrentCompany(), Be(
3023
3100
  "success",
3024
3101
  this.$t("voucherSuccessMessage", { count: this.voucherDocCount })
3025
3102
  ), this.onUpgrade && typeof this.onUpgrade == "function" && this.onUpgrade(), this.$emit("close");
@@ -3030,32 +3107,32 @@ const Gr = /* @__PURE__ */ _(Wr, [["render", Qr]]), Kr = {
3030
3107
  }
3031
3108
  }
3032
3109
  }
3033
- }, Jr = {
3110
+ }, di = {
3034
3111
  key: 0,
3035
3112
  style: { background: "hsl(33, 100%, 84%)", padding: "1em", "font-size": "15px", "border-radius": "0.5em" }
3036
- }, Xr = { style: { "font-size": "16px", "font-weight": "500" } }, ei = ["textContent"], ti = {
3113
+ }, mi = { style: { "font-size": "16px", "font-weight": "500" } }, pi = ["textContent"], hi = {
3037
3114
  class: "flex w-full justify-center",
3038
3115
  style: { "margin-top": "calc(1 * var(--rem))" }
3039
3116
  };
3040
- function ni(e, t, n, a, i, r) {
3041
- const o = v("CButton"), m = v("PremiumRestrictedBase");
3042
- return c(), w(m, {
3117
+ function fi(e, t, n, a, i, r) {
3118
+ const s = v("CButton"), p = v("PremiumRestrictedBase");
3119
+ return c(), w(p, {
3043
3120
  title: e.$t("title"),
3044
3121
  "sub-title": e.$t("subTitle"),
3045
3122
  "on-upgrade": n.onUpgrade
3046
3123
  }, {
3047
3124
  content: f(() => [
3048
- i.canUseFreeDocVoucher ? (c(), d("div", Jr, [
3049
- s("div", Xr, [
3050
- t[0] || (t[0] = s("span", { style: { "margin-right": "4px" } }, "🎁", -1)),
3125
+ i.canUseFreeDocVoucher ? (c(), d("div", di, [
3126
+ o("div", mi, [
3127
+ t[0] || (t[0] = o("span", { style: { "margin-right": "4px" } }, "🎁", -1)),
3051
3128
  g(" " + l(e.$t("voucherTitle")), 1)
3052
3129
  ]),
3053
- s("div", {
3130
+ o("div", {
3054
3131
  style: { opacity: "0.75" },
3055
3132
  textContent: l(e.$t("voucherText", { count: i.voucherDocCount }))
3056
- }, null, 8, ei),
3057
- s("div", ti, [
3058
- h(o, {
3133
+ }, null, 8, pi),
3134
+ o("div", hi, [
3135
+ h(s, {
3059
3136
  loading: i.isLoading,
3060
3137
  transparent: "",
3061
3138
  style: { border: "none", background: "hsl(33, 100%, 95%)", color: "hsl(33, 88%, 36%)", "box-shadow": "0 3px 6px -2px rgb(0, 0, 0, 0.3)" },
@@ -3073,7 +3150,7 @@ function ni(e, t, n, a, i, r) {
3073
3150
  _: 1
3074
3151
  }, 8, ["title", "sub-title", "on-upgrade"]);
3075
3152
  }
3076
- const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
3153
+ const gi = /* @__PURE__ */ _(ui, [["render", fi]]), yi = {
3077
3154
  i18nOptions: {
3078
3155
  namespaces: "licenses",
3079
3156
  messages: {
@@ -3097,7 +3174,7 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
3097
3174
  },
3098
3175
  name: "PremiumRestrictedLicenses",
3099
3176
  components: {
3100
- PremiumRestrictedBase: x
3177
+ PremiumRestrictedBase: I
3101
3178
  },
3102
3179
  emits: ["close"],
3103
3180
  props: {
@@ -3117,20 +3194,20 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
3117
3194
  }
3118
3195
  },
3119
3196
  beforeCreate() {
3120
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", pe);
3197
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", fe);
3121
3198
  },
3122
3199
  created() {
3123
3200
  this.initLicense();
3124
3201
  },
3125
3202
  methods: {
3126
- ...N({
3127
- loadCurrentCompany: S.DO_LOAD_CURRENT_COMPANY,
3128
- loadPrices: S.LOAD_PRICES,
3129
- resetStripeForm: S.RESET_STRIPE_FORM,
3130
- updateFormValue: S.SET_STRIPE_FORM_VALUE,
3131
- submitPlan: S.SUBMIT_FORM_PLAN
3203
+ ...Z({
3204
+ loadCurrentCompany: x.DO_LOAD_CURRENT_COMPANY,
3205
+ loadPrices: x.LOAD_PRICES,
3206
+ resetStripeForm: x.RESET_STRIPE_FORM,
3207
+ updateFormValue: x.SET_STRIPE_FORM_VALUE,
3208
+ submitPlan: x.SUBMIT_FORM_PLAN
3132
3209
  }),
3133
- priceFormat: A,
3210
+ priceFormat: R,
3134
3211
  async initLicense() {
3135
3212
  this.subscription.paymentMethod === "stripe" && (await this.loadPrices(), await this.resetStripeForm(), this.updateFormValue({ key: "plan", value: this.currentPlan }));
3136
3213
  },
@@ -3162,17 +3239,17 @@ const ri = /* @__PURE__ */ _(Kr, [["render", ni]]), ii = {
3162
3239
  return await this.loadCurrentCompany(), e;
3163
3240
  },
3164
3241
  async addInvoiceLicense() {
3165
- await He(), await this.loadCurrentCompany();
3242
+ await Ue(), await this.loadCurrentCompany();
3166
3243
  }
3167
3244
  }
3168
- }, ai = {
3245
+ }, vi = {
3169
3246
  key: 0,
3170
3247
  class: "flex w-full justify-between",
3171
3248
  style: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "0.5em 1em", "border-radius": "0.5em" }
3172
- }, si = { style: { "text-align": "left" } }, oi = ["textContent"], li = ["textContent"], ci = { style: { "text-align": "right" } }, ui = { style: { "font-size": "13px", opacity: "0.7" } };
3173
- function di(e, t, n, a, i, r) {
3174
- const o = v("PremiumRestrictedBase");
3175
- return c(), w(o, {
3249
+ }, bi = { style: { "text-align": "left" } }, Ci = ["textContent"], ki = ["textContent"], Pi = { style: { "text-align": "right" } }, _i = { style: { "font-size": "13px", opacity: "0.7" } };
3250
+ function wi(e, t, n, a, i, r) {
3251
+ const s = v("PremiumRestrictedBase");
3252
+ return c(), w(s, {
3176
3253
  title: e.$t("title"),
3177
3254
  "sub-title": e.$t("subTitle"),
3178
3255
  "on-upgrade": n.onUpgrade,
@@ -3182,27 +3259,27 @@ function di(e, t, n, a, i, r) {
3182
3259
  g(l(e.$t("actionText")), 1)
3183
3260
  ]),
3184
3261
  content: f(() => [
3185
- r.extraPrice && r.extraPrice.amount && r.extraPrice.currency && r.extraPrice.interval ? (c(), d("div", ai, [
3186
- s("div", si, [
3187
- s("div", {
3262
+ r.extraPrice && r.extraPrice.amount && r.extraPrice.currency && r.extraPrice.interval ? (c(), d("div", vi, [
3263
+ o("div", bi, [
3264
+ o("div", {
3188
3265
  style: { "font-weight": "500" },
3189
3266
  textContent: l(e.$t("productTitle"))
3190
- }, null, 8, oi),
3191
- s("div", {
3267
+ }, null, 8, Ci),
3268
+ o("div", {
3192
3269
  style: { opacity: "0.75", "font-size": "13px" },
3193
3270
  textContent: l(e.$t("productCost"))
3194
- }, null, 8, li)
3271
+ }, null, 8, ki)
3195
3272
  ]),
3196
- s("div", ci, [
3197
- s("div", null, " +" + l(r.priceFormat(r.extraPrice.amount, { currency: r.extraPrice.currency })), 1),
3198
- s("div", ui, " per " + l(e.$t(`_common:${r.extraPrice.interval}`)), 1)
3273
+ o("div", Pi, [
3274
+ o("div", null, " +" + l(r.priceFormat(r.extraPrice.amount, { currency: r.extraPrice.currency })), 1),
3275
+ o("div", _i, " per " + l(e.$t(`_common:${r.extraPrice.interval}`)), 1)
3199
3276
  ])
3200
3277
  ])) : k("", !0)
3201
3278
  ]),
3202
3279
  _: 1
3203
3280
  }, 8, ["title", "sub-title", "on-upgrade", "action-function"]);
3204
3281
  }
3205
- const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
3282
+ const Si = /* @__PURE__ */ _(yi, [["render", wi]]), Ti = {
3206
3283
  i18nOptions: {
3207
3284
  namespaces: "personalMessage",
3208
3285
  messages: {
@@ -3218,7 +3295,7 @@ const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
3218
3295
  },
3219
3296
  name: "PremiumRestrictedPersonalMessage",
3220
3297
  components: {
3221
- PremiumRestrictedBase: x
3298
+ PremiumRestrictedBase: I
3222
3299
  },
3223
3300
  props: {
3224
3301
  onUpgrade: {
@@ -3227,15 +3304,15 @@ const mi = /* @__PURE__ */ _(ii, [["render", di]]), pi = {
3227
3304
  }
3228
3305
  }
3229
3306
  };
3230
- function hi(e, t, n, a, i, r) {
3231
- const o = v("PremiumRestrictedBase");
3232
- return c(), w(o, {
3307
+ function $i(e, t, n, a, i, r) {
3308
+ const s = v("PremiumRestrictedBase");
3309
+ return c(), w(s, {
3233
3310
  title: e.$t("title"),
3234
3311
  "sub-title": e.$t("subTitle"),
3235
3312
  "on-upgrade": n.onUpgrade
3236
3313
  }, null, 8, ["title", "sub-title", "on-upgrade"]);
3237
3314
  }
3238
- const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
3315
+ const xi = /* @__PURE__ */ _(Ti, [["render", $i]]), Ii = {
3239
3316
  i18nOptions: {
3240
3317
  namespaces: "PremiumRestrictedEditDocumentLayout",
3241
3318
  messages: {
@@ -3253,7 +3330,7 @@ const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
3253
3330
  },
3254
3331
  name: "PremiumRestrictedSaveDocTemplate",
3255
3332
  components: {
3256
- PremiumRestrictedBase: x
3333
+ PremiumRestrictedBase: I
3257
3334
  },
3258
3335
  props: {
3259
3336
  onUpgrade: {
@@ -3262,9 +3339,9 @@ const fi = /* @__PURE__ */ _(pi, [["render", hi]]), gi = {
3262
3339
  }
3263
3340
  }
3264
3341
  };
3265
- function yi(e, t, n, a, i, r) {
3266
- const o = v("PremiumRestrictedBase");
3267
- return c(), w(o, {
3342
+ function Ei(e, t, n, a, i, r) {
3343
+ const s = v("PremiumRestrictedBase");
3344
+ return c(), w(s, {
3268
3345
  title: e.$t("title"),
3269
3346
  "sub-title": e.$t("subTitle"),
3270
3347
  "on-upgrade": n.onUpgrade,
@@ -3276,7 +3353,7 @@ function yi(e, t, n, a, i, r) {
3276
3353
  _: 1
3277
3354
  }, 8, ["title", "sub-title", "on-upgrade"]);
3278
3355
  }
3279
- const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
3356
+ const Mi = /* @__PURE__ */ _(Ii, [["render", Ei]]), Vi = {
3280
3357
  i18nOptions: {
3281
3358
  namespaces: "stats",
3282
3359
  messages: {
@@ -3294,7 +3371,7 @@ const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
3294
3371
  },
3295
3372
  name: "PremiumRestrictedStats",
3296
3373
  components: {
3297
- PremiumRestrictedBase: x
3374
+ PremiumRestrictedBase: I
3298
3375
  },
3299
3376
  props: {
3300
3377
  onUpgrade: {
@@ -3303,9 +3380,9 @@ const vi = /* @__PURE__ */ _(gi, [["render", yi]]), bi = {
3303
3380
  }
3304
3381
  }
3305
3382
  };
3306
- function Ci(e, t, n, a, i, r) {
3307
- const o = v("PremiumRestrictedBase");
3308
- return c(), w(o, {
3383
+ function Li(e, t, n, a, i, r) {
3384
+ const s = v("PremiumRestrictedBase");
3385
+ return c(), w(s, {
3309
3386
  title: e.$t("title"),
3310
3387
  "sub-title": e.$t("subTitle"),
3311
3388
  "on-upgrade": n.onUpgrade,
@@ -3317,7 +3394,7 @@ function Ci(e, t, n, a, i, r) {
3317
3394
  _: 1
3318
3395
  }, 8, ["title", "sub-title", "on-upgrade"]);
3319
3396
  }
3320
- const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
3397
+ const Hi = /* @__PURE__ */ _(Vi, [["render", Li]]), Bi = {
3321
3398
  i18nOptions: {
3322
3399
  namespaces: "subTemplates",
3323
3400
  messages: {
@@ -3333,7 +3410,7 @@ const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
3333
3410
  },
3334
3411
  name: "PremiumRestrictedTemplates",
3335
3412
  components: {
3336
- PremiumRestrictedBase: x
3413
+ PremiumRestrictedBase: I
3337
3414
  },
3338
3415
  props: {
3339
3416
  onUpgrade: {
@@ -3342,15 +3419,15 @@ const ki = /* @__PURE__ */ _(bi, [["render", Ci]]), Pi = {
3342
3419
  }
3343
3420
  }
3344
3421
  };
3345
- function _i(e, t, n, a, i, r) {
3346
- const o = v("PremiumRestrictedBase");
3347
- return c(), w(o, {
3422
+ function Fi(e, t, n, a, i, r) {
3423
+ const s = v("PremiumRestrictedBase");
3424
+ return c(), w(s, {
3348
3425
  title: e.$t("title"),
3349
3426
  "sub-title": e.$t("subTitle"),
3350
3427
  "on-upgrade": n.onUpgrade
3351
3428
  }, null, 8, ["title", "sub-title", "on-upgrade"]);
3352
3429
  }
3353
- const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
3430
+ const Ui = /* @__PURE__ */ _(Bi, [["render", Fi]]), Di = {
3354
3431
  i18nOptions: {
3355
3432
  namespaces: "PremiumRestrictedUseDocTemplates",
3356
3433
  messages: {
@@ -3368,7 +3445,7 @@ const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
3368
3445
  },
3369
3446
  name: "PremiumRestrictedUseDocTemplates",
3370
3447
  components: {
3371
- PremiumRestrictedBase: x
3448
+ PremiumRestrictedBase: I
3372
3449
  },
3373
3450
  props: {
3374
3451
  onUpgrade: {
@@ -3377,9 +3454,9 @@ const wi = /* @__PURE__ */ _(Pi, [["render", _i]]), Si = {
3377
3454
  }
3378
3455
  }
3379
3456
  };
3380
- function $i(e, t, n, a, i, r) {
3381
- const o = v("PremiumRestrictedBase");
3382
- return c(), w(o, {
3457
+ function Oi(e, t, n, a, i, r) {
3458
+ const s = v("PremiumRestrictedBase");
3459
+ return c(), w(s, {
3383
3460
  title: e.$t("title"),
3384
3461
  "sub-title": e.$t("subTitle"),
3385
3462
  "on-upgrade": n.onUpgrade,
@@ -3391,7 +3468,7 @@ function $i(e, t, n, a, i, r) {
3391
3468
  _: 1
3392
3469
  }, 8, ["title", "sub-title", "on-upgrade"]);
3393
3470
  }
3394
- const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
3471
+ const Ri = /* @__PURE__ */ _(Di, [["render", Oi]]), Ai = {
3395
3472
  i18nOptions: {
3396
3473
  namespaces: "winProfile",
3397
3474
  keyPrefix: "account.subscription.winProfile",
@@ -3410,7 +3487,7 @@ const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
3410
3487
  },
3411
3488
  name: "PremiumRestrictedWinProfile",
3412
3489
  components: {
3413
- PremiumRestrictedBase: x
3490
+ PremiumRestrictedBase: I
3414
3491
  },
3415
3492
  props: {
3416
3493
  onUpgrade: {
@@ -3419,27 +3496,27 @@ const Ti = /* @__PURE__ */ _(Si, [["render", $i]]), xi = {
3419
3496
  }
3420
3497
  }
3421
3498
  };
3422
- function Ii(e, t, n, a, i, r) {
3423
- const o = v("PremiumRestrictedBase");
3424
- return c(), w(o, {
3499
+ function zi(e, t, n, a, i, r) {
3500
+ const s = v("PremiumRestrictedBase");
3501
+ return c(), w(s, {
3425
3502
  title: e.$t("title"),
3426
3503
  "sub-title": e.$t("subTitle"),
3427
3504
  "on-upgrade": n.onUpgrade
3428
3505
  }, null, 8, ["title", "sub-title", "on-upgrade"]);
3429
3506
  }
3430
- const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
3431
- winProfile: Ei,
3432
- templates: wi,
3433
- documents: ri,
3434
- personalMessage: fi,
3435
- licenses: mi,
3436
- inviteCreators: Yr,
3437
- stats: ki,
3438
- documentBlocks: Gr,
3439
- bankIdAndSms: jr,
3440
- useDocTemplate: Ti,
3441
- saveDocTemplate: vi
3442
- }, Mi = {
3507
+ const qi = /* @__PURE__ */ _(Ai, [["render", zi]]), K = {
3508
+ winProfile: qi,
3509
+ templates: Ui,
3510
+ documents: gi,
3511
+ personalMessage: xi,
3512
+ licenses: Si,
3513
+ inviteCreators: oi,
3514
+ stats: Hi,
3515
+ documentBlocks: ci,
3516
+ bankIdAndSms: ri,
3517
+ useDocTemplate: Ri,
3518
+ saveDocTemplate: Mi
3519
+ }, ji = {
3443
3520
  name: "IsPremiumPreStep",
3444
3521
  inject: {
3445
3522
  onUpgradeRequired: {
@@ -3456,7 +3533,7 @@ const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
3456
3533
  },
3457
3534
  computed: {
3458
3535
  modalName() {
3459
- return K[this.feature] ? K[this.feature] : (Be.error("Missing IsPremiumPreStep component name"), null);
3536
+ return K[this.feature] ? K[this.feature] : (De.error("Missing IsPremiumPreStep component name"), null);
3460
3537
  }
3461
3538
  },
3462
3539
  methods: {
@@ -3482,13 +3559,13 @@ const Ei = /* @__PURE__ */ _(xi, [["render", Ii]]), K = {
3482
3559
  }
3483
3560
  }
3484
3561
  };
3485
- function Li(e, t, n, a, i, r) {
3562
+ function Ni(e, t, n, a, i, r) {
3486
3563
  return H(e.$slots, "default", { onClick: r.onClick });
3487
3564
  }
3488
- const Vi = /* @__PURE__ */ _(Mi, [["render", Li]]), Hi = Fe({
3565
+ const Zi = /* @__PURE__ */ _(ji, [["render", Ni]]), Yi = Oe({
3489
3566
  name: "ProBadge",
3490
3567
  render() {
3491
- return Ue(
3568
+ return Re(
3492
3569
  "div",
3493
3570
  {
3494
3571
  class: "text-[10px] font-semibold text-white bg-primary-500 rounded leading-none px-1.5 py-1"
@@ -3496,20 +3573,20 @@ const Vi = /* @__PURE__ */ _(Mi, [["render", Li]]), Hi = Fe({
3496
3573
  "Pro"
3497
3574
  );
3498
3575
  }
3499
- }), ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3576
+ }), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3500
3577
  __proto__: null,
3501
- CalloutLegacy: me,
3502
- Checkout: fe,
3503
- IsPremium: ge,
3504
- IsPremiumPreStep: Vi,
3505
- ProBadge: Hi,
3506
- stripeMixin: he
3578
+ CalloutLegacy: he,
3579
+ Checkout: ye,
3580
+ IsPremium: ve,
3581
+ IsPremiumPreStep: Zi,
3582
+ ProBadge: Yi,
3583
+ stripeMixin: ge
3507
3584
  }, Symbol.toStringTag, { value: "Module" }));
3508
3585
  export {
3509
- Je as C,
3510
- ge as I,
3511
- Hi as _,
3512
- Vi as a,
3513
- ji as i,
3514
- pe as s
3586
+ tt as C,
3587
+ ve as I,
3588
+ Yi as _,
3589
+ Zi as a,
3590
+ ia as i,
3591
+ fe as s
3515
3592
  };