@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,26 +1,27 @@
1
- import { C as L } from "./ClientAutocomplete-Dof0Wnp9.js";
2
- import { _ as z, b6 as j, d as h, o as f, u as Z, j as s, b7 as G, an as N, x as y, T as Y, ai as H, a as B, ar as P, aa as K, a6 as J, b as g, f as n, c as b, e as v, t as r, w as a, F as O, n as F, q as C, m as Q, aq as X, af as k, aG as _, b8 as x, g as U, y as ee, i as te } from "./main-C18owm58.js";
3
- import { w as E, C as oe, a as ne } from "./CDropdownItem-rpcdHW76.js";
4
- import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js";
5
- import { C as ae } from "./CPhoneInput-DnigKWiR.js";
6
- import { u as ie } from "./index-DWwjiiMe.js";
7
- import { a as $, r as se, e as re } from "./index-DINik6UH.js";
8
- import { o as de } from "./omit-BVoDlsuC.js";
9
- const me = {
1
+ import { C as W } from "./ClientAutocomplete-DCphFPmv.js";
2
+ import { _ as F, b6 as L, d as g, o as p, u as j, j as i, b7 as Z, an as N, x as y, T as G, ai as H, a as B, ar as P, aa as K, a6 as J, b as f, f as l, c as b, e as v, t as r, w as a, F as z, n as I, q as C, m as Y, aq as Q, af as k, aG as X, b8 as _, g as D, y as x, i as ee } from "./main-DAjWLLG0.js";
3
+ import { w as E, C as te, a as oe } from "./CDropdownItem-CZO28TQW.js";
4
+ import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js";
5
+ import { C as ae } from "./CPhoneInput-kOcllgTr.js";
6
+ import { i as V, a as A } from "./validations-ohsJ5nBz.js";
7
+ import { u as ne } from "./index-D-NDkjvk.js";
8
+ import { a as $, r as ie, e as se } from "./index-Bw8qzZRS.js";
9
+ import { o as re } from "./omit-5nzNft5F.js";
10
+ const de = {
10
11
  name: "CRadio",
11
- mixins: [j]
12
- }, ue = ["disabled"], pe = ["disabled", "required", "name", "value"], ce = { class: "control-label" };
13
- function fe(e, t, i, d, p, l) {
14
- return f(), h("label", {
12
+ mixins: [L]
13
+ }, me = ["disabled"], ue = ["disabled", "required", "name", "value"], pe = { class: "control-label" };
14
+ function ce(e, t, s, u, c, n) {
15
+ return p(), g("label", {
15
16
  ref: "label",
16
17
  class: y([[`is-${e.size}`, { "is-disabled": e.disabled }], "b-radio radio"]),
17
18
  disabled: e.disabledOrUndefined,
18
- onClick: t[2] || (t[2] = (...c) => e.focus && e.focus(...c)),
19
- onKeydown: t[3] || (t[3] = H(N((c) => e.$refs.label.click(), ["prevent"]), ["enter"]))
19
+ onClick: t[2] || (t[2] = (...h) => e.focus && e.focus(...h)),
20
+ onKeydown: t[3] || (t[3] = H(N((h) => e.$refs.label.click(), ["prevent"]), ["enter"]))
20
21
  }, [
21
- Z(s("input", {
22
+ j(i("input", {
22
23
  ref: "input",
23
- "onUpdate:modelValue": t[0] || (t[0] = (c) => e.computedValue = c),
24
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => e.computedValue = h),
24
25
  disabled: e.disabledOrUndefined,
25
26
  required: e.requiredOrUndefined,
26
27
  name: e.name,
@@ -28,49 +29,18 @@ function fe(e, t, i, d, p, l) {
28
29
  type: "radio",
29
30
  onClick: t[1] || (t[1] = N(() => {
30
31
  }, ["stop"]))
31
- }, null, 8, pe), [
32
- [G, e.computedValue]
32
+ }, null, 8, ue), [
33
+ [Z, e.computedValue]
33
34
  ]),
34
- s("span", {
35
+ i("span", {
35
36
  class: y([`is-${e.type}`, "check"])
36
37
  }, null, 2),
37
- s("span", ce, [
38
- Y(e.$slots, "default")
38
+ i("span", pe, [
39
+ G(e.$slots, "default")
39
40
  ])
40
- ], 42, ue);
41
+ ], 42, me);
41
42
  }
42
- const ge = /* @__PURE__ */ z(me, [["render", fe]]);
43
- function T(e) {
44
- if (typeof e > "u") throw Error("Missing param inputParam");
45
- let t = e;
46
- Number.isInteger(t) && (t = t.toString());
47
- let i = 0;
48
- const d = t.length, p = d % 2;
49
- let l, c;
50
- for (l = 0; l < d; l += 1)
51
- c = parseInt(t.charAt(l), 10), l % 2 === p && (c *= 2), c > 9 && (c -= 9), i += c;
52
- return i % 10 === 0;
53
- }
54
- function A(e) {
55
- let t = e.replace(/ /g, "");
56
- return t = t.replace(/-/g, ""), !T(t) || (t = [t.slice(0, 6), "-", t.slice(6)].join(""), !t.match(/^(\d{6})-(\d{4})$/)) ? !1 : t;
57
- }
58
- function V(e) {
59
- if (typeof e > "u" || e === null || e === "")
60
- return !1;
61
- let t = e.trim().replace(/[^0-9]+/g, "");
62
- if (t.length !== 10 && t.length !== 12)
63
- return !1;
64
- if (t.length === 10) {
65
- const p = t.substring(0, 2), l = (/* @__PURE__ */ new Date()).getFullYear(), c = parseInt(
66
- l.toString().substring(2, 4),
67
- 10
68
- );
69
- parseInt(p, 10) === 19 || parseInt(p, 10) === 20 || (parseInt(p, 10) >= 0 && parseInt(p, 10) <= c ? t = `20${t}` : t = `19${t}`);
70
- }
71
- return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 : T(t.substring(2)) ? t : !1;
72
- }
73
- const he = {
43
+ const fe = /* @__PURE__ */ F(de, [["render", ce]]), ge = {
74
44
  sv: {
75
45
  title: "Mottagare",
76
46
  updateButton: "Spara mottagare",
@@ -185,23 +155,23 @@ const he = {
185
155
  }
186
156
  }
187
157
  }
188
- }, { mapFields: ve } = P({
158
+ }, { mapFields: he } = P({
189
159
  getterType: "forms/getField",
190
160
  mutationType: "forms/updateField"
191
- }), ye = {
161
+ }), ve = {
192
162
  name: "FormClient",
193
163
  i18nOptions: {
194
164
  namespaces: "formClient",
195
- messages: he
165
+ messages: ge
196
166
  },
197
167
  components: {
198
- ClientAutocomplete: L,
168
+ ClientAutocomplete: W,
199
169
  CCheckbox: K,
200
- CDropdown: ne,
201
- CDropdownItem: oe,
170
+ CDropdown: oe,
171
+ CDropdownItem: te,
202
172
  CField: le,
203
173
  CPhoneInput: ae,
204
- CRadio: ge
174
+ CRadio: fe
205
175
  },
206
176
  emits: [
207
177
  "setClient",
@@ -253,7 +223,7 @@ const he = {
253
223
  },
254
224
  setup() {
255
225
  return {
256
- v$: ie()
226
+ v$: ne()
257
227
  };
258
228
  },
259
229
  validations() {
@@ -273,11 +243,11 @@ const he = {
273
243
  required: $(this.requireReference && !this.isIndivid)
274
244
  },
275
245
  email: {
276
- email: re
246
+ email: se
277
247
  }
278
248
  } : {
279
249
  name: {
280
- required: se
250
+ required: ie
281
251
  },
282
252
  orgNo: {
283
253
  required: $(this.type === "company")
@@ -294,7 +264,7 @@ const he = {
294
264
  };
295
265
  },
296
266
  computed: {
297
- ...ve({
267
+ ...he({
298
268
  id: "endCustomer.id",
299
269
  type: "endCustomer.customerType",
300
270
  name: "endCustomer.name",
@@ -357,83 +327,83 @@ const he = {
357
327
  }
358
328
  },
359
329
  mounted() {
360
- var t, i, d;
330
+ var t, s, u;
361
331
  const e = this.$refs[this.inputFocusOnMount] || this.$refs.name;
362
- (d = (i = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : i.querySelector("input")) == null || d.focus();
332
+ (u = (s = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : s.querySelector("input")) == null || u.focus();
363
333
  },
364
334
  methods: {
365
335
  validateForm() {
366
336
  return this.v$.$touch(), this.v$.$invalid ? !1 : (this.$emit("submit", !0), !0);
367
337
  }
368
338
  }
369
- }, be = { class: "form-client" }, Ce = { class: "space-between flex flex-wrap items-center pb-6" }, we = {
339
+ }, ye = { class: "form-client" }, be = { class: "space-between flex flex-wrap items-center pb-6" }, Ce = {
370
340
  class: "flex-grow",
371
341
  style: { "font-weight": "600", "font-size": "20px" }
372
- }, ke = { class: "type-toggle" }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = { style: { "line-height": "1.25", padding: "4px 0" } }, Se = { style: { "font-size": "12px", opacity: "0.7" } }, Me = {
342
+ }, we = { class: "type-toggle" }, ke = { style: { "line-height": "1.25", padding: "4px 0" } }, $e = { style: { "font-size": "12px", opacity: "0.7" } }, Ve = { style: { "line-height": "1.25", padding: "4px 0" } }, Ne = { style: { "font-size": "12px", opacity: "0.7" } }, Me = {
373
343
  class: "flex items-center justify-center",
374
344
  style: { "margin-bottom": "calc(2.5 * var(--rem))" }
375
- }, Ie = { class: "type-toggle" }, Oe = { key: 0 }, Fe = {
345
+ }, Se = { class: "type-toggle" }, Oe = { key: 0 }, ze = {
376
346
  key: 0,
377
347
  class: "dropdown-field-wrapper flex min-w-0 flex-col"
378
- }, ze = { class: "my-1 text-sm text-gray-600" }, Re = { class: "py-1 leading-5" }, De = { class: "text-xs opacity-70" }, qe = { style: { "line-height": "1.25", padding: "4px 0" } }, Ue = { style: { "font-size": "12px", opacity: "0.7" } }, Ae = {
348
+ }, Ie = { class: "my-1 text-sm text-gray-600" }, Fe = { class: "py-1 leading-5" }, Re = { class: "text-xs opacity-70" }, qe = { style: { "line-height": "1.25", padding: "4px 0" } }, Ue = { style: { "font-size": "12px", opacity: "0.7" } }, De = {
379
349
  key: 1,
380
350
  class: "dropdown-field-wrapper flex min-w-0 flex-col"
381
- }, Be = { class: "my-1 text-sm text-gray-600" }, Pe = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Ee = { class: "truncate text-xs opacity-70" }, Te = { style: { "line-height": "1.25", padding: "4px 0" } }, We = {
351
+ }, Ae = { class: "my-1 text-sm text-gray-600" }, Be = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Pe = { class: "truncate text-xs opacity-70" }, Ee = { style: { "line-height": "1.25", padding: "4px 0" } }, Te = {
382
352
  class: "max-w-[calc(12_*_var(--rem))] truncate",
383
353
  style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
384
- }, Le = { style: { "margin-top": "calc(3 * var(--rem))" } };
385
- function je(e, t, i, d, p, l) {
386
- const c = g("ClientAutocomplete"), m = g("CField"), u = g("CInput"), S = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), M = g("CDropdownItem"), I = g("CDropdown"), W = g("CCheckbox"), D = g("CRadio");
387
- return f(), h("div", be, [
388
- i.simpleForm ? (f(), h("form", {
354
+ }, We = { style: { "margin-top": "calc(3 * var(--rem))" } };
355
+ function Le(e, t, s, u, c, n) {
356
+ const h = f("ClientAutocomplete"), d = f("CField"), m = f("CInput"), M = f("Animation"), R = f("CPhoneInput"), w = f("CButton"), S = f("CDropdownItem"), O = f("CDropdown"), T = f("CCheckbox"), q = f("CRadio");
357
+ return p(), g("div", ye, [
358
+ s.simpleForm ? (p(), g("form", {
389
359
  key: 0,
390
- onSubmit: t[9] || (t[9] = N((...o) => l.validateForm && l.validateForm(...o), ["prevent"]))
360
+ onSubmit: t[9] || (t[9] = N((...o) => n.validateForm && n.validateForm(...o), ["prevent"]))
391
361
  }, [
392
- s("div", Ce, [
393
- s("div", we, r(e.$t("_common:recipient").capitalize()), 1),
394
- s("div", ke, [
395
- s("div", {
362
+ i("div", be, [
363
+ i("div", Ce, r(e.$t("_common:recipient").capitalize()), 1),
364
+ i("div", we, [
365
+ i("div", {
396
366
  class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
397
367
  onClick: t[0] || (t[0] = (o) => e.type = "individual")
398
368
  }, r(e.$t("individual")), 3),
399
- s("div", {
369
+ i("div", {
400
370
  class: y([{ active: e.type === "company" }, "type-toggle-button"]),
401
371
  onClick: t[1] || (t[1] = (o) => e.type = "company")
402
372
  }, r(e.$t("_common:company").capitalize()), 3)
403
373
  ])
404
374
  ]),
405
- n(m, {
406
- label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
407
- validator: d.v$.name,
408
- messages: l.messages.name,
375
+ l(d, {
376
+ label: n.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
377
+ validator: u.v$.name,
378
+ messages: n.messages.name,
409
379
  "label-position": "inside",
410
380
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
411
381
  }, {
412
382
  default: a(() => [
413
- n(c, {
383
+ l(h, {
414
384
  ref: "name",
415
385
  modelValue: e.name,
416
386
  "onUpdate:modelValue": t[2] || (t[2] = (o) => e.name = o),
417
- placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
418
- "search-enabled": i.searchEnabled,
387
+ placeholder: n.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
388
+ "search-enabled": s.searchEnabled,
419
389
  "show-loading": !0,
420
390
  onSetClient: t[3] || (t[3] = (o) => e.$emit("setClient", o))
421
391
  }, null, 8, ["modelValue", "placeholder", "search-enabled"])
422
392
  ]),
423
393
  _: 1
424
394
  }, 8, ["label", "validator", "messages"]),
425
- n(S, null, {
395
+ l(M, null, {
426
396
  default: a(() => [
427
- l.isIndivid ? v("", !0) : (f(), b(m, {
397
+ n.isIndivid ? v("", !0) : (p(), b(d, {
428
398
  key: 0,
429
- validator: d.v$.reference,
430
- messages: l.messages.reference,
399
+ validator: u.v$.reference,
400
+ messages: n.messages.reference,
431
401
  label: e.$t("reference").capitalize(),
432
402
  "label-position": "inside",
433
403
  class: "pb-4"
434
404
  }, {
435
405
  default: a(() => [
436
- n(u, {
406
+ l(m, {
437
407
  ref: "reference",
438
408
  modelValue: e.reference,
439
409
  "onUpdate:modelValue": t[4] || (t[4] = (o) => e.reference = o),
@@ -445,15 +415,15 @@ function je(e, t, i, d, p, l) {
445
415
  ]),
446
416
  _: 1
447
417
  }),
448
- n(m, {
449
- validator: d.v$.email,
450
- messages: l.messages.email,
418
+ l(d, {
419
+ validator: u.v$.email,
420
+ messages: n.messages.email,
451
421
  label: e.$t("_common:email").capitalize(),
452
422
  "label-position": "inside",
453
423
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
454
424
  }, {
455
425
  default: a(() => [
456
- n(u, {
426
+ l(m, {
457
427
  ref: "email",
458
428
  modelValue: e.email,
459
429
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e.email = o),
@@ -463,7 +433,7 @@ function je(e, t, i, d, p, l) {
463
433
  ]),
464
434
  _: 1
465
435
  }, 8, ["validator", "messages", "label"]),
466
- n(R, {
436
+ l(R, {
467
437
  ref: "cellphone",
468
438
  modelValue: e.cellphone,
469
439
  "onUpdate:modelValue": t[6] || (t[6] = (o) => e.cellphone = o),
@@ -474,45 +444,45 @@ function je(e, t, i, d, p, l) {
474
444
  "default-region": e.companyRegion,
475
445
  "label-position": "inside"
476
446
  }, null, 8, ["modelValue", "region", "label", "placeholder", "default-region"]),
477
- i.documentRole ? (f(), b(I, {
447
+ s.documentRole ? (p(), b(O, {
478
448
  key: 0,
479
449
  expanded: "",
480
450
  style: { "margin-bottom": "calc(1 * var(--rem))", "margin-top": "calc(0.75 * var(--rem))" }
481
451
  }, {
482
452
  trigger: a(() => [
483
- n(w, {
453
+ l(w, {
484
454
  "dropdown-icon": !0,
485
455
  "icon-props": {
486
456
  stroke: "hsl(0, 0%, 50%)"
487
457
  },
488
- "icon-left": i.documentRole === "signee" ? "pen-tool" : "eye",
458
+ "icon-left": s.documentRole === "signee" ? "pen-tool" : "eye",
489
459
  class: "is-left",
490
460
  type: "none",
491
461
  pattern: "secondary",
492
462
  style: { width: "100%" }
493
463
  }, {
494
464
  default: a(() => [
495
- s("div", $e, [
496
- s("div", null, r(e.$t(`_common:documentRole.${i.documentRole}.description`)), 1),
497
- s("div", Ve, r(e.$t(`_common:documentRole.${i.documentRole}.label`)), 1)
465
+ i("div", ke, [
466
+ i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
467
+ i("div", $e, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
498
468
  ])
499
469
  ]),
500
470
  _: 1
501
471
  }, 8, ["icon-left"])
502
472
  ]),
503
473
  default: a(() => [
504
- (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(M, {
474
+ (p(), g(z, null, I(["signee", "recipient", "approver"], (o) => l(S, {
505
475
  key: o,
506
476
  "icon-left": o === "signee" ? "pen-tool" : "eye",
507
477
  "icon-props": {
508
478
  stroke: "hsl(0, 0%, 50%)"
509
479
  },
510
- onClick: (q) => e.$emit("update:document-role", o)
480
+ onClick: (U) => e.$emit("update:document-role", o)
511
481
  }, {
512
482
  default: a(() => [
513
- s("div", Ne, [
514
- s("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
515
- s("div", Se, r(e.$t(`_common:documentRole.${o}.label`)), 1)
483
+ i("div", Ve, [
484
+ i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
485
+ i("div", Ne, r(e.$t(`_common:documentRole.${o}.label`)), 1)
516
486
  ])
517
487
  ]),
518
488
  _: 2
@@ -520,7 +490,7 @@ function je(e, t, i, d, p, l) {
520
490
  ]),
521
491
  _: 1
522
492
  })) : v("", !0),
523
- n(w, {
493
+ l(w, {
524
494
  type: "secondary",
525
495
  pattern: "tertiary",
526
496
  size: "small",
@@ -532,7 +502,7 @@ function je(e, t, i, d, p, l) {
532
502
  ]),
533
503
  _: 1
534
504
  }),
535
- n(w, {
505
+ l(w, {
536
506
  loading: e.isPosting,
537
507
  "native-type": "submit",
538
508
  type: "secondary",
@@ -546,60 +516,60 @@ function je(e, t, i, d, p, l) {
546
516
  ]),
547
517
  _: 1
548
518
  }, 8, ["loading"])
549
- ], 32)) : (f(), h("div", {
519
+ ], 32)) : (p(), g("div", {
550
520
  key: 1,
551
521
  class: y({ "column-only": e.windowWidth <= 600 })
552
522
  }, [
553
- s("div", Me, [
554
- s("div", Ie, [
555
- s("div", {
523
+ i("div", Me, [
524
+ i("div", Se, [
525
+ i("div", {
556
526
  class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
557
527
  onClick: t[10] || (t[10] = (o) => e.type = "individual")
558
528
  }, r(e.$t("individual")), 3),
559
- s("div", {
529
+ i("div", {
560
530
  class: y([{ active: e.type === "company" }, "type-toggle-button"]),
561
531
  onClick: t[11] || (t[11] = (o) => e.type = "company")
562
532
  }, r(e.$t("_common:company").capitalize()), 3)
563
533
  ])
564
534
  ]),
565
- n(m, {
535
+ l(d, {
566
536
  class: "flex",
567
537
  grouped: ""
568
538
  }, {
569
539
  default: a(() => [
570
- n(m, {
571
- label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
572
- validator: d.v$.name,
573
- messages: l.messages.name,
540
+ l(d, {
541
+ label: n.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
542
+ validator: u.v$.name,
543
+ messages: n.messages.name,
574
544
  "label-position": "inside",
575
545
  expanded: ""
576
546
  }, {
577
547
  default: a(() => [
578
- n(c, {
548
+ l(h, {
579
549
  ref: "name",
580
550
  modelValue: e.name,
581
551
  "onUpdate:modelValue": t[12] || (t[12] = (o) => e.name = o),
582
- placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
552
+ placeholder: n.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
583
553
  "show-loading": !0,
584
- "search-enabled": i.searchEnabled,
554
+ "search-enabled": s.searchEnabled,
585
555
  onSetClient: t[13] || (t[13] = (o) => e.$emit("setClient", o))
586
556
  }, null, 8, ["modelValue", "placeholder", "search-enabled"])
587
557
  ]),
588
558
  _: 1
589
559
  }, 8, ["label", "validator", "messages"]),
590
- n(m, {
591
- label: l.isIndivid ? e.$t("_common:socialNo").capitalize() : e.$t("_common:orgNoShort").capitalize(),
592
- validator: d.v$.orgNo,
593
- messages: l.isIndivid ? l.messages.orgNo : l.messages.realOrgNo,
560
+ l(d, {
561
+ label: n.isIndivid ? e.$t("_common:socialNo").capitalize() : e.$t("_common:orgNoShort").capitalize(),
562
+ validator: u.v$.orgNo,
563
+ messages: n.isIndivid ? n.messages.orgNo : n.messages.realOrgNo,
594
564
  "label-position": "inside",
595
565
  expanded: ""
596
566
  }, {
597
567
  default: a(() => [
598
- n(u, {
568
+ l(m, {
599
569
  ref: "orgNo",
600
- modelValue: l.orgNo,
601
- "onUpdate:modelValue": t[14] || (t[14] = (o) => l.orgNo = o),
602
- placeholder: l.isIndivid ? e.$t("placeholders.socialNo") : e.$t("placeholders.orgNo")
570
+ modelValue: n.orgNo,
571
+ "onUpdate:modelValue": t[14] || (t[14] = (o) => n.orgNo = o),
572
+ placeholder: n.isIndivid ? e.$t("placeholders.socialNo") : e.$t("placeholders.orgNo")
603
573
  }, null, 8, ["modelValue", "placeholder"])
604
574
  ]),
605
575
  _: 1
@@ -607,18 +577,18 @@ function je(e, t, i, d, p, l) {
607
577
  ]),
608
578
  _: 1
609
579
  }),
610
- n(S, null, {
580
+ l(M, null, {
611
581
  default: a(() => [
612
- e.type && !l.isIndivid ? (f(), b(m, {
582
+ e.type && !n.isIndivid ? (p(), b(d, {
613
583
  key: 0,
614
- validator: d.v$.reference,
615
- messages: l.messages.reference,
584
+ validator: u.v$.reference,
585
+ messages: n.messages.reference,
616
586
  label: e.$t("_common:reference").capitalize(),
617
587
  "label-position": "inside",
618
588
  class: "pb-4"
619
589
  }, {
620
590
  default: a(() => [
621
- n(u, {
591
+ l(m, {
622
592
  ref: "reference",
623
593
  modelValue: e.reference,
624
594
  "onUpdate:modelValue": t[15] || (t[15] = (o) => e.reference = o),
@@ -627,12 +597,12 @@ function je(e, t, i, d, p, l) {
627
597
  ]),
628
598
  _: 1
629
599
  }, 8, ["validator", "messages", "label"])) : v("", !0),
630
- e.type && !l.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (f(), b(m, {
600
+ e.type && !n.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (p(), b(d, {
631
601
  key: 1,
632
602
  style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
633
603
  }, {
634
604
  default: a(() => [
635
- n(W, {
605
+ l(T, {
636
606
  modelValue: e.reverseVat,
637
607
  "onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
638
608
  size: "normal"
@@ -648,21 +618,21 @@ function je(e, t, i, d, p, l) {
648
618
  ]),
649
619
  _: 1
650
620
  }),
651
- n(m, {
621
+ l(d, {
652
622
  class: "flex",
653
623
  grouped: ""
654
624
  }, {
655
625
  default: a(() => [
656
- n(m, {
657
- validator: d.v$.email,
658
- messages: l.messages.email,
626
+ l(d, {
627
+ validator: u.v$.email,
628
+ messages: n.messages.email,
659
629
  label: e.$t("_common:email").capitalize(),
660
630
  "label-position": "inside",
661
631
  class: "flex-1",
662
632
  expanded: ""
663
633
  }, {
664
634
  default: a(() => [
665
- n(u, {
635
+ l(m, {
666
636
  ref: "email",
667
637
  modelValue: e.email,
668
638
  "onUpdate:modelValue": t[17] || (t[17] = (o) => e.email = o),
@@ -672,7 +642,7 @@ function je(e, t, i, d, p, l) {
672
642
  ]),
673
643
  _: 1
674
644
  }, 8, ["validator", "messages", "label"]),
675
- n(R, {
645
+ l(R, {
676
646
  modelValue: e.cellphone,
677
647
  "onUpdate:modelValue": t[18] || (t[18] = (o) => e.cellphone = o),
678
648
  region: e.cellphoneRegion,
@@ -686,12 +656,12 @@ function je(e, t, i, d, p, l) {
686
656
  ]),
687
657
  _: 1
688
658
  }),
689
- n(m, {
659
+ l(d, {
690
660
  label: e.$t("_common:address").capitalize(),
691
661
  "label-position": "inside"
692
662
  }, {
693
663
  default: a(() => [
694
- n(u, {
664
+ l(m, {
695
665
  ref: "street",
696
666
  modelValue: e.street,
697
667
  "onUpdate:modelValue": t[20] || (t[20] = (o) => e.street = o),
@@ -700,14 +670,14 @@ function je(e, t, i, d, p, l) {
700
670
  ]),
701
671
  _: 1
702
672
  }, 8, ["label"]),
703
- n(m, {
673
+ l(d, {
704
674
  class: "force-two flex",
705
675
  grouped: ""
706
676
  }, {
707
677
  default: a(() => [
708
- n(m, { expanded: "" }, {
678
+ l(d, { expanded: "" }, {
709
679
  default: a(() => [
710
- n(u, {
680
+ l(m, {
711
681
  ref: "zip",
712
682
  modelValue: e.zip,
713
683
  "onUpdate:modelValue": t[21] || (t[21] = (o) => e.zip = o),
@@ -716,9 +686,9 @@ function je(e, t, i, d, p, l) {
716
686
  ]),
717
687
  _: 1
718
688
  }),
719
- n(m, { expanded: "" }, {
689
+ l(d, { expanded: "" }, {
720
690
  default: a(() => [
721
- n(u, {
691
+ l(m, {
722
692
  ref: "city",
723
693
  modelValue: e.city,
724
694
  "onUpdate:modelValue": t[22] || (t[22] = (o) => e.city = o),
@@ -730,9 +700,9 @@ function je(e, t, i, d, p, l) {
730
700
  ]),
731
701
  _: 1
732
702
  }),
733
- n(m, { class: "flex" }, {
703
+ l(d, { class: "flex" }, {
734
704
  default: a(() => [
735
- n(D, {
705
+ l(q, {
736
706
  modelValue: e.separateWorkAddress,
737
707
  "onUpdate:modelValue": t[23] || (t[23] = (o) => e.separateWorkAddress = o),
738
708
  "native-value": !1,
@@ -745,7 +715,7 @@ function je(e, t, i, d, p, l) {
745
715
  ]),
746
716
  _: 1
747
717
  }, 8, ["modelValue"]),
748
- n(D, {
718
+ l(q, {
749
719
  modelValue: e.separateWorkAddress,
750
720
  "onUpdate:modelValue": t[24] || (t[24] = (o) => e.separateWorkAddress = o),
751
721
  "native-value": !0,
@@ -761,14 +731,14 @@ function je(e, t, i, d, p, l) {
761
731
  ]),
762
732
  _: 1
763
733
  }),
764
- n(S, null, {
734
+ l(M, null, {
765
735
  default: a(() => [
766
- e.type && e.separateWorkAddress ? (f(), h("div", Oe, [
767
- n(m, {
736
+ e.type && e.separateWorkAddress ? (p(), g("div", Oe, [
737
+ l(d, {
768
738
  label: e.$t("_common:addressWork").capitalize() + ` ( ${e.$t("workAddressSubLabel")} )`
769
739
  }, {
770
740
  default: a(() => [
771
- n(u, {
741
+ l(m, {
772
742
  ref: "workStreet",
773
743
  modelValue: e.workStreet,
774
744
  "onUpdate:modelValue": t[25] || (t[25] = (o) => e.workStreet = o),
@@ -777,14 +747,14 @@ function je(e, t, i, d, p, l) {
777
747
  ]),
778
748
  _: 1
779
749
  }, 8, ["label"]),
780
- n(m, {
750
+ l(d, {
781
751
  class: "force-two flex",
782
752
  grouped: ""
783
753
  }, {
784
754
  default: a(() => [
785
- n(m, { expanded: "" }, {
755
+ l(d, { expanded: "" }, {
786
756
  default: a(() => [
787
- n(u, {
757
+ l(m, {
788
758
  ref: "workZip",
789
759
  modelValue: e.workZip,
790
760
  "onUpdate:modelValue": t[26] || (t[26] = (o) => e.workZip = o),
@@ -794,9 +764,9 @@ function je(e, t, i, d, p, l) {
794
764
  ]),
795
765
  _: 1
796
766
  }),
797
- n(m, { expanded: "" }, {
767
+ l(d, { expanded: "" }, {
798
768
  default: a(() => [
799
- n(u, {
769
+ l(m, {
800
770
  ref: "workCity",
801
771
  modelValue: e.workCity,
802
772
  "onUpdate:modelValue": t[27] || (t[27] = (o) => e.workCity = o),
@@ -813,52 +783,52 @@ function je(e, t, i, d, p, l) {
813
783
  ]),
814
784
  _: 1
815
785
  }),
816
- i.documentRole || i.answerMethod ? (f(), b(m, {
786
+ s.documentRole || s.answerMethod ? (p(), b(d, {
817
787
  key: 0,
818
788
  grouped: "",
819
789
  class: "flex pt-4"
820
790
  }, {
821
791
  default: a(() => [
822
- i.documentRole ? (f(), h("div", Fe, [
823
- s("div", ze, r(e.$t("_common:documentRole.title")), 1),
824
- n(I, {
792
+ s.documentRole ? (p(), g("div", ze, [
793
+ i("div", Ie, r(e.$t("_common:documentRole.title")), 1),
794
+ l(O, {
825
795
  expanded: "",
826
796
  style: { "margin-bottom": "calc(1 * var(--rem))" }
827
797
  }, {
828
798
  trigger: a(() => [
829
- n(w, {
799
+ l(w, {
830
800
  "dropdown-icon": !0,
831
801
  "icon-props": {
832
802
  stroke: "hsl(0, 0%, 50%)"
833
803
  },
834
- "icon-left": i.documentRole === "signee" ? "pen-tool" : "eye",
804
+ "icon-left": s.documentRole === "signee" ? "pen-tool" : "eye",
835
805
  class: "is-left",
836
806
  type: "none",
837
807
  pattern: "secondary",
838
808
  expanded: ""
839
809
  }, {
840
810
  default: a(() => [
841
- s("div", Re, [
842
- s("div", null, r(e.$t(`_common:documentRole.${i.documentRole}.description`)), 1),
843
- s("div", De, r(e.$t(`_common:documentRole.${i.documentRole}.label`)), 1)
811
+ i("div", Fe, [
812
+ i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
813
+ i("div", Re, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
844
814
  ])
845
815
  ]),
846
816
  _: 1
847
817
  }, 8, ["icon-left"])
848
818
  ]),
849
819
  default: a(() => [
850
- (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(M, {
820
+ (p(), g(z, null, I(["signee", "recipient", "approver"], (o) => l(S, {
851
821
  key: o,
852
822
  "icon-left": o === "signee" ? "pen-tool" : "eye",
853
823
  "icon-props": {
854
824
  stroke: "hsl(0, 0%, 50%)"
855
825
  },
856
- onClick: (q) => e.$emit("update:document-role", o)
826
+ onClick: (U) => e.$emit("update:document-role", o)
857
827
  }, {
858
828
  default: a(() => [
859
- s("div", qe, [
860
- s("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
861
- s("div", Ue, r(e.$t(`_common:documentRole.${o}.label`)), 1)
829
+ i("div", qe, [
830
+ i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
831
+ i("div", Ue, r(e.$t(`_common:documentRole.${o}.label`)), 1)
862
832
  ])
863
833
  ]),
864
834
  _: 2
@@ -867,14 +837,14 @@ function je(e, t, i, d, p, l) {
867
837
  _: 1
868
838
  })
869
839
  ])) : v("", !0),
870
- i.answerMethod ? (f(), h("div", Ae, [
871
- s("div", Be, r(e.$t("_common:signMethod.title")), 1),
872
- n(I, {
840
+ s.answerMethod ? (p(), g("div", De, [
841
+ i("div", Ae, r(e.$t("_common:signMethod.title")), 1),
842
+ l(O, {
873
843
  expanded: "",
874
844
  style: { "margin-bottom": "calc(1 * var(--rem))" }
875
845
  }, {
876
846
  trigger: a(() => [
877
- n(w, {
847
+ l(w, {
878
848
  "dropdown-icon": !0,
879
849
  class: "is-left",
880
850
  type: "none",
@@ -882,26 +852,26 @@ function je(e, t, i, d, p, l) {
882
852
  expanded: ""
883
853
  }, {
884
854
  default: a(() => [
885
- s("div", Pe, [
886
- s("div", null, r(e.$t(`signMethod.${i.answerMethod.accept}.title`)), 1),
887
- s("div", Ee, r(e.$t(`signMethod.${i.answerMethod.accept}.content`)), 1)
855
+ i("div", Be, [
856
+ i("div", null, r(e.$t(`signMethod.${s.answerMethod.accept}.title`)), 1),
857
+ i("div", Pe, r(e.$t(`signMethod.${s.answerMethod.accept}.content`)), 1)
888
858
  ])
889
859
  ]),
890
860
  _: 1
891
861
  })
892
862
  ]),
893
863
  default: a(() => [
894
- (f(!0), h(O, null, F(i.signOptions, (o) => (f(), b(M, {
864
+ (p(!0), g(z, null, I(s.signOptions, (o) => (p(), b(S, {
895
865
  key: o,
896
- onClick: (q) => e.$emit("update:answer-method", {
897
- ...i.answerMethod,
866
+ onClick: (U) => e.$emit("update:answer-method", {
867
+ ...s.answerMethod,
898
868
  accept: o
899
869
  })
900
870
  }, {
901
871
  default: a(() => [
902
- s("div", Te, [
903
- s("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
904
- s("div", We, r(e.$t(`signMethod.${o}.content`)), 1)
872
+ i("div", Ee, [
873
+ i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
874
+ i("div", Te, r(e.$t(`signMethod.${o}.content`)), 1)
905
875
  ])
906
876
  ]),
907
877
  _: 2
@@ -913,13 +883,13 @@ function je(e, t, i, d, p, l) {
913
883
  ]),
914
884
  _: 1
915
885
  })) : v("", !0),
916
- s("div", Le, [
917
- n(w, {
886
+ i("div", We, [
887
+ l(w, {
918
888
  loading: e.isPosting,
919
889
  type: "secondary",
920
890
  wide: "",
921
891
  style: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" },
922
- onClick: l.validateForm
892
+ onClick: n.validateForm
923
893
  }, {
924
894
  default: a(() => [
925
895
  C(r(e.$t("updateButton")), 1)
@@ -930,10 +900,10 @@ function je(e, t, i, d, p, l) {
930
900
  ], 2))
931
901
  ]);
932
902
  }
933
- const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ge } = P({
903
+ const je = /* @__PURE__ */ F(ve, [["render", Le], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ze } = P({
934
904
  getterType: "forms/getField",
935
905
  mutationType: "forms/updateField"
936
- }), Ye = {
906
+ }), Ge = {
937
907
  name: "ClientModal",
938
908
  i18nOptions: {
939
909
  namespaces: "clientModal",
@@ -965,7 +935,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
965
935
  }
966
936
  },
967
937
  components: {
968
- FormClient: Ze
938
+ FormClient: je
969
939
  },
970
940
  emits: ["close"],
971
941
  mixins: [E],
@@ -1015,10 +985,10 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1015
985
  };
1016
986
  },
1017
987
  computed: {
1018
- ...Ge({
988
+ ...Ze({
1019
989
  endCustomer: "endCustomer"
1020
990
  }),
1021
- ...X("forms", {
991
+ ...Q("forms", {
1022
992
  formData: (e) => e.document2
1023
993
  }),
1024
994
  ...B({
@@ -1027,7 +997,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1027
997
  defaultClientType: "endCustomers/defaultClientType"
1028
998
  }),
1029
999
  validateOrgNo() {
1030
- return !!(this.feature("bankId") || this.isPublicForm && ee[te.brand].defaultRegion === "SE");
1000
+ return !!(this.feature("bankId") || this.isPublicForm && x[ee.brand].defaultRegion === "SE");
1031
1001
  },
1032
1002
  existsOnDocument() {
1033
1003
  return !!k(this.formData, `clients[${this.documentClientIndex}]`);
@@ -1037,16 +1007,16 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1037
1007
  }
1038
1008
  },
1039
1009
  created() {
1040
- var i;
1010
+ var s;
1041
1011
  let e = k(this.formData, "data.defaultAnswerMethod.accept") || "signature";
1042
- (i = this.signOptions) != null && i.length && !this.signOptions.includes(e) && ([e] = this.signOptions), this.storedNewClient.answerMethod.accept = e, this.forceExpand && (this.showMore = !0);
1012
+ (s = this.signOptions) != null && s.length && !this.signOptions.includes(e) && ([e] = this.signOptions), this.storedNewClient.answerMethod.accept = e, this.forceExpand && (this.showMore = !0);
1043
1013
  const t = k(
1044
1014
  this.formData,
1045
1015
  `clients[${this.documentClientIndex}]`,
1046
1016
  {}
1047
1017
  );
1048
1018
  this.loadForm(t), ["endCustomer", "storedNewClient"].forEach(
1049
- (d) => this.$watch(d, {
1019
+ (u) => this.$watch(u, {
1050
1020
  deep: !0,
1051
1021
  handler() {
1052
1022
  this.hasChanged = !0;
@@ -1055,35 +1025,35 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1055
1025
  );
1056
1026
  },
1057
1027
  methods: {
1058
- ...Q({
1059
- saveClient: U.FORM_SUBMIT_ENDCUSTOMER,
1060
- showMessage: U.SHOW_MESSAGE
1028
+ ...Y({
1029
+ saveClient: D.FORM_SUBMIT_ENDCUSTOMER,
1030
+ showMessage: D.SHOW_MESSAGE
1061
1031
  }),
1062
- omit: de,
1032
+ omit: re,
1063
1033
  loadForm(e = {}) {
1064
- this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = x({
1034
+ this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = _({
1065
1035
  type: this.defaultClientType(),
1066
1036
  ...e
1067
1037
  });
1068
1038
  },
1069
1039
  async onSave() {
1070
- var t, i;
1040
+ var t, s;
1071
1041
  this.isLoading = !0;
1072
1042
  let e = k(this.endCustomer, "id");
1073
1043
  if (!this.isPublicForm) {
1074
- let d = !1;
1075
- this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (d = !0) : this.can("endCustomers", "create") && (d = !0)), d && (e = await this.saveClient());
1044
+ let u = !1;
1045
+ this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (u = !0) : this.can("endCustomers", "create") && (u = !0)), u && (e = await this.saveClient());
1076
1046
  }
1077
1047
  if (this.useSignOrder && !this.storedNewClient.signOrder) {
1078
- const d = ((i = (t = this.formData) == null ? void 0 : t.clients) == null ? void 0 : i.reduce(
1079
- (p, l) => l.signOrder > p ? l.signOrder : p,
1048
+ const u = ((s = (t = this.formData) == null ? void 0 : t.clients) == null ? void 0 : s.reduce(
1049
+ (c, n) => n.signOrder > c ? n.signOrder : c,
1080
1050
  0
1081
1051
  )) || 0;
1082
- this.storedNewClient.signOrder = d + 1;
1052
+ this.storedNewClient.signOrder = u + 1;
1083
1053
  }
1084
1054
  this.setFormValue({
1085
1055
  key: `clients[${this.documentClientIndex}]`,
1086
- value: _(
1056
+ value: X(
1087
1057
  { ...this.endCustomer, ...e && { id: e } },
1088
1058
  { ...this.storedNewClient }
1089
1059
  )
@@ -1129,53 +1099,53 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1129
1099
  }
1130
1100
  }
1131
1101
  }, He = { class: "max-sm:h-initial relative mx-auto flex flex-col items-center rounded-xl bg-white p-10 text-lg max-sm:min-h-full max-sm:w-full max-sm:rounded-none max-sm:pt-16" };
1132
- function Ke(e, t, i, d, p, l) {
1133
- const c = g("CButton"), m = g("FormClient");
1134
- return f(), h("div", {
1102
+ function Ke(e, t, s, u, c, n) {
1103
+ const h = f("CButton"), d = f("FormClient");
1104
+ return p(), g("div", {
1135
1105
  class: "font-primary fixed inset-0 z-[1000] grid place-items-center overflow-auto bg-black bg-opacity-10 max-sm:block max-sm:min-h-full max-sm:w-full max-sm:overflow-auto sm:py-4",
1136
- onClickPassive: t[5] || (t[5] = N((...u) => l.close && l.close(...u), ["self"]))
1106
+ onClickPassive: t[5] || (t[5] = N((...m) => n.close && n.close(...m), ["self"]))
1137
1107
  }, [
1138
- s("div", He, [
1139
- n(c, {
1140
- class: y([p.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
1108
+ i("div", He, [
1109
+ l(h, {
1110
+ class: y([c.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
1141
1111
  pattern: "tertiary",
1142
1112
  type: "none",
1143
1113
  circle: "",
1144
1114
  icon: "x",
1145
- onClick: l.close
1115
+ onClick: n.close
1146
1116
  }, null, 8, ["class", "onClick"]),
1147
- n(m, {
1148
- "document-role": p.storedNewClient.documentRole,
1149
- "onUpdate:documentRole": t[0] || (t[0] = (u) => p.storedNewClient.documentRole = u),
1150
- "answer-method": p.storedNewClient.answerMethod,
1117
+ l(d, {
1118
+ "document-role": c.storedNewClient.documentRole,
1119
+ "onUpdate:documentRole": t[0] || (t[0] = (m) => c.storedNewClient.documentRole = m),
1120
+ "answer-method": c.storedNewClient.answerMethod,
1151
1121
  "onUpdate:answerMethod": [
1152
- t[1] || (t[1] = (u) => p.storedNewClient.answerMethod = u),
1153
- t[4] || (t[4] = (u) => {
1154
- p.storedNewClient.answerMethod = {
1155
- ...u,
1122
+ t[1] || (t[1] = (m) => c.storedNewClient.answerMethod = m),
1123
+ t[4] || (t[4] = (m) => {
1124
+ c.storedNewClient.answerMethod = {
1125
+ ...m,
1156
1126
  __dirty: !0
1157
1127
  };
1158
1128
  })
1159
1129
  ],
1160
1130
  "search-enabled": !0,
1161
1131
  "require-reference": !1,
1162
- "simple-form": !p.showMore,
1163
- "input-focus-on-mount": i.inputFocusOnMount,
1164
- "sign-options": i.signOptions,
1165
- "validate-org-no": l.validateOrgNo,
1166
- "is-public-form": i.isPublicForm,
1167
- class: y([[p.showMore ? "w-[520px]" : "w-[360px]"], "max-w-full p-0"]),
1168
- onSetClient: t[2] || (t[2] = (u) => l.loadForm(l.omit(u, ["answerMethod"]))),
1169
- onSubmit: l.onSave,
1170
- onShowMore: t[3] || (t[3] = (u) => p.showMore = !0)
1132
+ "simple-form": !c.showMore,
1133
+ "input-focus-on-mount": s.inputFocusOnMount,
1134
+ "sign-options": s.signOptions,
1135
+ "validate-org-no": n.validateOrgNo,
1136
+ "is-public-form": s.isPublicForm,
1137
+ class: y([[c.showMore ? "w-[520px]" : "w-[360px]"], "max-w-full p-0"]),
1138
+ onSetClient: t[2] || (t[2] = (m) => n.loadForm(n.omit(m, ["answerMethod"]))),
1139
+ onSubmit: n.onSave,
1140
+ onShowMore: t[3] || (t[3] = (m) => c.showMore = !0)
1171
1141
  }, null, 8, ["document-role", "answer-method", "simple-form", "input-focus-on-mount", "sign-options", "validate-org-no", "is-public-form", "class", "onSubmit"]),
1172
- l.existsOnDocument && e.mq === "sm" ? (f(), b(c, {
1142
+ n.existsOnDocument && e.mq === "sm" ? (p(), b(h, {
1173
1143
  key: 0,
1174
1144
  type: "danger",
1175
1145
  pattern: "secondary",
1176
1146
  wide: "",
1177
1147
  class: "mt-4 text-sm",
1178
- onClick: l.removeClient
1148
+ onClick: n.removeClient
1179
1149
  }, {
1180
1150
  default: a(() => [
1181
1151
  C(r(e.$t("_common:remove")), 1)
@@ -1185,12 +1155,12 @@ function Ke(e, t, i, d, p, l) {
1185
1155
  ])
1186
1156
  ], 32);
1187
1157
  }
1188
- const Je = /* @__PURE__ */ z(Ye, [["render", Ke]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1158
+ const Je = /* @__PURE__ */ F(Ge, [["render", Ke]]), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1189
1159
  __proto__: null,
1190
1160
  default: Je
1191
1161
  }, Symbol.toStringTag, { value: "Module" }));
1192
1162
  export {
1193
1163
  Je as C,
1194
- ge as a,
1195
- lt as b
1164
+ fe as a,
1165
+ at as b
1196
1166
  };