@cling-se/widget 0.22.3 → 0.23.0

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 (132) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{AddClientCallout-Bk_RMqww.js → AddClientCallout-Bv6IKK40.js} +6 -6
  3. package/dist/AnswerModal-BH7HUCFy.js +4511 -0
  4. package/dist/{AttachmentItem-DnlOo6Ar.js → AttachmentItem-DVVxOm2E.js} +6 -6
  5. package/dist/{BaseUpload-DCPt9YUo.js → BaseUpload-B8k82P27.js} +2 -2
  6. package/dist/{BlockMedia-najJzMYF.js → BlockMedia-BcvfBi4G.js} +4 -4
  7. package/dist/{CCallout-DCvCm65V.js → CCallout-BbBdzwkb.js} +3 -3
  8. package/dist/{CCurrencyDropdown-DuJxa77L.js → CCurrencyDropdown-2PRaeJHp.js} +5 -5
  9. package/dist/{CDropdownItem-DyWrpOb-.js → CDropdownItem-CFTdvAJc.js} +13 -13
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js → CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js} +7 -7
  11. package/dist/{CPhoneFormat-BmGCMx5K.js → CPhoneFormat-D__bIItZ.js} +1 -1
  12. package/dist/{regions-BdZt9Srn.js → CPhoneInput-DPqzQOjR.js} +205 -3
  13. package/dist/{CPriceInput-BwBsHKnn.js → CPriceInput-BJ1hmANq.js} +4 -4
  14. package/dist/{CSelect-BlPNOr_g.js → CSelect-GhGdyQzt.js} +4 -4
  15. package/dist/{CSkeleton-DRbFIBZS.js → CSkeleton-Ro7hmy5_.js} +5 -5
  16. package/dist/{ClientAutocomplete-DS08QQ5C.js → ClientAutocomplete-Ci08U3Eg.js} +10 -10
  17. package/dist/{ClientModal-DXtdxLj9.js → ClientModal-CZjzCgw_.js} +251 -221
  18. package/dist/{ColorPicker-CeJ8YHt-.js → ColorPicker-Bdev0Tci.js} +27 -27
  19. package/dist/{CompanyModal-DzE3OIG0.js → CompanyModal-vZnMCWG-.js} +8 -8
  20. package/dist/{ContentWrapper-CBd8srOJ.js → ContentWrapper-CAlHzSsP.js} +18 -18
  21. package/dist/{CoverBlockSettings-D9K1BnJk.js → CoverBlockSettings-CRG8Q2mD.js} +42 -42
  22. package/dist/{DocAnswer-By6hA4eC.js → DocAnswer-DHVVPZff.js} +2 -2
  23. package/dist/{DocDetails-C-ZRzvrA.js → DocDetails-W4sRFsQP.js} +8 -8
  24. package/dist/{DocForm-DvT2fhEM.js → DocForm-B0HWL32c.js} +853 -757
  25. package/dist/{DocFormSend-CKeZn--O.js → DocFormSend-BHjoq88x.js} +2 -2
  26. package/dist/{DocLinks-w8pfegGu.js → DocLinks-BKJ_usNd.js} +2 -2
  27. package/dist/{DocModalBase-B2IgIy_9.js → DocModalBase-Z1ZEPL_z.js} +1 -1
  28. package/dist/{DocPrint-eUTCgg8g.js → DocPrint-W53zklGf.js} +3 -3
  29. package/dist/{DocReceipt-BD0WVtId.js → DocReceipt-CG954L85.js} +10 -10
  30. package/dist/{DocSendReminder-EjkK-9rh.js → DocSendReminder-rE0hlFaZ.js} +3 -3
  31. package/dist/{DocTextEditor-U8ZdSDAr.js → DocTextEditor-DwYMXhZv.js} +9 -9
  32. package/dist/{DocTimeline-D30HTE_o.js → DocTimeline-BsvUw4lW.js} +17 -17
  33. package/dist/{DocumentClient-BBEmQHMi.js → DocumentClient-DeDGrmbP.js} +5 -5
  34. package/dist/{DocumentLayout-BLeVh3wu.js → DocumentLayout-DdXflWEb.js} +28 -28
  35. package/dist/{DocumentLogotype-BauCUJ8j.js → DocumentLogotype-eSStO83t.js} +3 -3
  36. package/dist/{DocumentVoided-CfQdzPJa.js → DocumentVoided-CF_snlgf.js} +1 -1
  37. package/dist/{EmbedInput-D4QrX2Gm.js → EmbedInput-C6zvXcOu.js} +5 -5
  38. package/dist/{EmbedSettings-DVZLouo9.js → EmbedSettings-BO0wk_Mz.js} +3 -3
  39. package/dist/{ErrorCallout-BiLLFJek.js → ErrorCallout-BX44gJMR.js} +1 -1
  40. package/dist/{FilePreviewModal-BusalEt3.js → FilePreviewModal-Dl9kL1D4.js} +2 -2
  41. package/dist/{Flag-BxkDKlP4.js → Flag-CUjMh16L.js} +1 -1
  42. package/dist/{HeaderSettings-DIWro6fR.js → HeaderSettings-CGAKOOf2.js} +18 -18
  43. package/dist/{ImageSelectModal-CL52MP8Z.js → ImageSelectModal-CBJLdDWY.js} +3 -3
  44. package/dist/{ImageUploadWrapper-2gjzeenp.js → ImageUploadWrapper-3iw_ifJm.js} +2 -2
  45. package/dist/{Index-qcFSIYDB.js → Index--LhQAU0e.js} +4 -4
  46. package/dist/{Index-m_q4QkfZ.js → Index-B9IVTM-6.js} +4 -4
  47. package/dist/{Index-bKQSbdxw.js → Index-BHc8-EVf.js} +2 -2
  48. package/dist/{Index-qzpjRFUp.js → Index-BKdt7W1p.js} +11 -11
  49. package/dist/{Index-DMEoYhVr.js → Index-BQjcDZPz.js} +8 -8
  50. package/dist/{Index-CcZ48rLC.js → Index-BXgbccOo.js} +2 -2
  51. package/dist/{Index-CQzTAmTM.js → Index-Bc75-4Ee.js} +41 -41
  52. package/dist/{Index-Bge6Bknk.js → Index-Bf6twTPv.js} +1 -1
  53. package/dist/{Index-jXUY8fSe.js → Index-BwyxrAfq.js} +2 -2
  54. package/dist/{Index-DYkWCXz0.js → Index-CFk1oikV.js} +5 -5
  55. package/dist/{Index-4FHzyecP.js → Index-CRPvQg7m.js} +4 -4
  56. package/dist/{Index-CZljdL3w.js → Index-CZLo46BA.js} +2 -2
  57. package/dist/{Index-CtRE9_p3.js → Index-Cay1MsI0.js} +4 -4
  58. package/dist/{Index-CSNH8muS.js → Index-CbJAROk-.js} +6 -6
  59. package/dist/{Index-DjMRBozk.js → Index-Ck3YMDt4.js} +14 -14
  60. package/dist/{Index-Cq90eS9E.js → Index-CmtHodVa.js} +7 -7
  61. package/dist/{Index-CuaK6bnN.js → Index-Cv-ZmqIf.js} +19 -19
  62. package/dist/Index-D3GyeaZ3.js +4 -0
  63. package/dist/{Index-CsLEoK-y.js → Index-D3YAyImu.js} +3 -3
  64. package/dist/{Index-Cen56jNO.js → Index-D48EyoXi.js} +4 -4
  65. package/dist/{Index-DO0vFJCv.js → Index-DDTMR3LI.js} +6 -6
  66. package/dist/{Index--EACh-v2.js → Index-DExnFebC.js} +30 -30
  67. package/dist/{Index-FSjvo5ex.js → Index-DRNXEsk-.js} +5 -5
  68. package/dist/{Index-u00PSjX2.js → Index-DUvA8MIy.js} +3 -3
  69. package/dist/{Index-CcKgWOG7.js → Index-DaOOJQM2.js} +3 -3
  70. package/dist/{Index-DQMuQ2js.js → Index-DlWc7i0k.js} +4 -4
  71. package/dist/{Index-BkMzG22-.js → Index-Dttziehp.js} +11 -11
  72. package/dist/{Index-N-TCcUiZ.js → Index-T6kXb5Sf.js} +5 -5
  73. package/dist/{Index-DxWtScO2.js → Index-_Xoo1bdc.js} +3 -3
  74. package/dist/{Index-CJZBOrgw.js → Index-foC5v_3Y.js} +3 -3
  75. package/dist/{Index-Bn8_-gUC.js → Index-gLA2kURi.js} +4 -4
  76. package/dist/{Index-DdfunbXo.js → Index-gOnXhVx4.js} +7 -7
  77. package/dist/{Index-BPuHAiJR.js → Index-j78ap3EU.js} +3 -3
  78. package/dist/{Index-BcIg-95c.js → Index-qAnbtxTE.js} +7 -7
  79. package/dist/{Index.vue_vue_type_script_lang-MIgEx7dJ.js → Index.vue_vue_type_script_lang-DkStHbk0.js} +2 -2
  80. package/dist/{InputToggleRow-Dv5l7HsH.js → InputToggleRow-COQQQaJS.js} +1 -1
  81. package/dist/{ManualPopover-B-VE0HPu.js → ManualPopover-2myYukDY.js} +3 -3
  82. package/dist/{MediaWrapper-m5wr6sG8.js → MediaWrapper-CzLU8HWj.js} +3 -3
  83. package/dist/{NotBindingText-JKkfTNyO.js → NotBindingText-Ds156Rs5.js} +2 -2
  84. package/dist/{PackageGroup-CXZ0Lsz9.js → PackageGroup-wT1ri3ij.js} +9 -9
  85. package/dist/{PdfTerms-Cb_px74_.js → PdfTerms-CcFpPx19.js} +2 -2
  86. package/dist/{PdfViewer-1OOdNeVT.js → PdfViewer-B7qdDox0.js} +24 -24
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-C12eZIH1.js → PlainHtml.vue_vue_type_script_setup_true_lang-pAIAnHdh.js} +1 -1
  88. package/dist/{PriceHeader-BzPZtNYJ.js → PriceHeader-CdJspOjM.js} +12 -12
  89. package/dist/{SearchApi-CBg1KY-O.js → SearchApi-zTefPc4C.js} +3 -3
  90. package/dist/{SendForm-C-VTNpve.js → SendForm-DWiNVIs2.js} +8 -8
  91. package/dist/{Setup-BmlGbBrM.js → Setup-D90T_HW3.js} +1 -1
  92. package/dist/{SmartList-B2ZpLA8V.js → SmartList-mO6hykju.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CcTjzIyK.js → Sortable.vue_vue_type_script_setup_true_lang-D22AqpXY.js} +35 -35
  94. package/dist/{TermsSettings-0V_cVRPI.js → TermsSettings-CW4GvPBa.js} +14 -14
  95. package/dist/{ThemeColorRow-BwSFCUGN.js → ThemeColorRow-C9XPet4I.js} +5 -5
  96. package/dist/{ToggleBinding-sJX5jVgf.js → ToggleBinding-5Ewi_NNo.js} +5 -5
  97. package/dist/{UploadModal-CvFB_11W.js → UploadModal-ChOeO-8_.js} +4 -4
  98. package/dist/{VideoPlayerInput-CmjzzRDj.js → VideoPlayerInput-CtZi6yF_.js} +6 -6
  99. package/dist/{VideoPlayerSettings-TD3__Ui0.js → VideoPlayerSettings-Bg8IvjwK.js} +2 -2
  100. package/dist/{VideoSelectModal-DWohaFSL.js → VideoSelectModal-E01NsD3K.js} +5 -5
  101. package/dist/{dom-DOcGU3-g.js → dom-B_lSczxY.js} +5 -6
  102. package/dist/{focusDrawerMixin-CReYj2SY.js → focusDrawerMixin-DfuFLIV0.js} +1 -1
  103. package/dist/{formDrawerState-Cf5itKVM.js → formDrawerState-DlaQS_ZT.js} +1 -1
  104. package/dist/{fortnoxTheme-IeycOfWB.js → fortnoxTheme-CyUIkVuu.js} +1 -1
  105. package/dist/{helpers-CUo71XPG.js → helpers-B1vYJYc-.js} +1 -1
  106. package/dist/{index-DzyXygjd.js → index-BPR1VsLM.js} +1 -1
  107. package/dist/{index-MMzIZOFI.js → index-CBkI7Hc7.js} +28 -28
  108. package/dist/index-CXYvBw0i.js +107 -0
  109. package/dist/index-DK3w2fdd.js +896 -0
  110. package/dist/{index-BEKHEkFO.js → index-DOK_hQri.js} +28 -28
  111. package/dist/{index-FsgsKPqg.js → index-DnMhYLAz.js} +1 -1
  112. package/dist/{index-CrQzVsCT.js → index-hj2QoJyP.js} +8 -8
  113. package/dist/index.es.js +2 -2
  114. package/dist/index.umd.js +191 -235
  115. package/dist/{main-D4afcIIy.js → main-BnJTDeKH.js} +12149 -14255
  116. package/dist/{mapFormMixin-DcTZ2NvY.js → mapFormMixin-sXjgYtfb.js} +2 -2
  117. package/dist/{omit-Bq20xrhI.js → omit-DQlOTuQS.js} +1 -1
  118. package/dist/{splitpanes-EHoHU6iQ.js → splitpanes-4FF5o_FM.js} +1 -1
  119. package/dist/{template-CDxtqtv6.js → template-dbF0t2om.js} +1 -1
  120. package/dist/{tippy.esm-D8I3Noyw.js → tippy.esm-Bu14Lq2S.js} +50 -50
  121. package/dist/{useTermsModal-DEiH4ghd.js → useTermsModal-DKiiU8a4.js} +4 -4
  122. package/dist/{utils-DvezupAT.js → utils-Dn9pHgbx.js} +1 -1
  123. package/dist/{validation-ERFxig5z.js → validation-D_KP2hMr.js} +3 -3
  124. package/dist/widget.css +1 -1
  125. package/package.json +1 -1
  126. package/dist/AnswerModal-BQ9VR89q.js +0 -3653
  127. package/dist/CPhoneInput-Cx3OiUWQ.js +0 -207
  128. package/dist/Index-DdSDsjP8.js +0 -4
  129. package/dist/anime.es-4wvNItHq.js +0 -862
  130. package/dist/index-CFm8CNEc.js +0 -149
  131. package/dist/index-DCq6gjGI.js +0 -3590
  132. package/dist/validations-ohsJ5nBz.js +0 -34
@@ -1,27 +1,26 @@
1
- import { C as W } from "./ClientAutocomplete-DS08QQ5C.js";
2
- import { _ as F, b7 as j, d as h, o as u, v as L, j as i, b8 as H, an as N, y, U as Z, ai as G, a as B, ar as E, aa as K, ax as J, b as g, f as a, c as b, e as v, t as r, w as n, F as I, q as z, s as C, m as Y, aq as Q, af as k, aH as X, b9 as _, g as D } from "./main-D4afcIIy.js";
3
- import { w as P, C as x, a as ee } from "./CDropdownItem-DyWrpOb-.js";
4
- import { _ as te } from "./CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js";
5
- import { C as oe } from "./CPhoneInput-Cx3OiUWQ.js";
6
- import { i as V, a as A } from "./validations-ohsJ5nBz.js";
7
- import { u as ae } from "./index-FsgsKPqg.js";
8
- import { a as $, r as ne, e as le } from "./index-CFm8CNEc.js";
9
- import { o as ie } from "./omit-Bq20xrhI.js";
10
- const se = {
1
+ import { C as j } from "./ClientAutocomplete-Ci08U3Eg.js";
2
+ import { _ as z, b7 as L, d as h, o as f, v as H, j as s, b8 as Z, an as N, y, O as Y, ah as G, a as B, ar as E, a9 as K, ax as J, b as g, f as n, c as b, e as v, t as r, w as a, F as O, q as F, s as C, m as Q, aq as X, ae as k, aH as _, b9 as x, g as U } from "./main-BnJTDeKH.js";
3
+ import { w as P, a as ee, b as te } from "./CDropdownItem-CFTdvAJc.js";
4
+ import { _ as oe } from "./CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js";
5
+ import { C as ne } from "./CPhoneInput-DPqzQOjR.js";
6
+ import { u as le } from "./index-DnMhYLAz.js";
7
+ import { a as $, r as ae, e as ie } from "./index-CXYvBw0i.js";
8
+ import { o as se } from "./omit-DQlOTuQS.js";
9
+ const re = {
11
10
  name: "CRadio",
12
- mixins: [j]
13
- }, re = ["disabled"], de = ["disabled", "required", "name", "value"], me = { class: "control-label" };
14
- function ue(e, t, s, p, c, l) {
15
- return u(), h("label", {
11
+ mixins: [L]
12
+ }, de = ["disabled"], me = ["disabled", "required", "name", "value"], ue = { class: "control-label" };
13
+ function pe(e, t, i, u, c, l) {
14
+ return f(), h("label", {
16
15
  ref: "label",
17
16
  class: y([[`is-${e.size}`, { "is-disabled": e.disabled }], "b-radio radio"]),
18
17
  disabled: e.disabledOrUndefined,
19
- onClick: t[2] || (t[2] = (...f) => e.focus && e.focus(...f)),
20
- onKeydown: t[3] || (t[3] = G(N((f) => e.$refs.label.click(), ["prevent"]), ["enter"]))
18
+ onClick: t[2] || (t[2] = (...p) => e.focus && e.focus(...p)),
19
+ onKeydown: t[3] || (t[3] = G(N((p) => e.$refs.label.click(), ["prevent"]), ["enter"]))
21
20
  }, [
22
- L(i("input", {
21
+ H(s("input", {
23
22
  ref: "input",
24
- "onUpdate:modelValue": t[0] || (t[0] = (f) => e.computedValue = f),
23
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => e.computedValue = p),
25
24
  disabled: e.disabledOrUndefined,
26
25
  required: e.requiredOrUndefined,
27
26
  name: e.name,
@@ -29,18 +28,49 @@ function ue(e, t, s, p, c, l) {
29
28
  type: "radio",
30
29
  onClick: t[1] || (t[1] = N(() => {
31
30
  }, ["stop"]))
32
- }, null, 8, de), [
33
- [H, e.computedValue]
31
+ }, null, 8, me), [
32
+ [Z, e.computedValue]
34
33
  ]),
35
- i("span", {
34
+ s("span", {
36
35
  class: y([`is-${e.type}`, "check"])
37
36
  }, null, 2),
38
- i("span", me, [
39
- Z(e.$slots, "default")
37
+ s("span", ue, [
38
+ Y(e.$slots, "default")
40
39
  ])
41
- ], 42, re);
40
+ ], 42, de);
42
41
  }
43
- const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
42
+ const ce = /* @__PURE__ */ z(re, [["render", pe]]);
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 u = t.length, c = u % 2;
49
+ let l, p;
50
+ for (l = 0; l < u; l += 1)
51
+ p = parseInt(t.charAt(l), 10), l % 2 === c && (p *= 2), p > 9 && (p -= 9), i += p;
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 c = t.substring(0, 2), l = (/* @__PURE__ */ new Date()).getFullYear(), p = parseInt(
66
+ l.toString().substring(2, 4),
67
+ 10
68
+ );
69
+ parseInt(c, 10) === 19 || parseInt(c, 10) === 20 || (parseInt(c, 10) >= 0 && parseInt(c, 10) <= p ? 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 fe = {
44
74
  sv: {
45
75
  title: "Mottagare",
46
76
  updateButton: "Spara mottagare",
@@ -163,23 +193,23 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
163
193
  }
164
194
  }
165
195
  }
166
- }, { mapFields: fe } = E({
196
+ }, { mapFields: ge } = E({
167
197
  getterType: "forms/getField",
168
198
  mutationType: "forms/updateField"
169
- }), ge = {
199
+ }), he = {
170
200
  name: "FormClient",
171
201
  i18nOptions: {
172
202
  namespaces: "formClient",
173
- messages: ce
203
+ messages: fe
174
204
  },
175
205
  components: {
176
- ClientAutocomplete: W,
206
+ ClientAutocomplete: j,
177
207
  CCheckbox: K,
178
- CDropdown: ee,
179
- CDropdownItem: x,
180
- CField: te,
181
- CPhoneInput: oe,
182
- CRadio: pe
208
+ CDropdown: te,
209
+ CDropdownItem: ee,
210
+ CField: oe,
211
+ CPhoneInput: ne,
212
+ CRadio: ce
183
213
  },
184
214
  emits: [
185
215
  "setClient",
@@ -227,7 +257,7 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
227
257
  },
228
258
  setup() {
229
259
  return {
230
- v$: ae()
260
+ v$: le()
231
261
  };
232
262
  },
233
263
  validations() {
@@ -247,11 +277,11 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
247
277
  required: $(this.requireReference && !this.isIndivid)
248
278
  },
249
279
  email: {
250
- email: le
280
+ email: ie
251
281
  }
252
282
  } : {
253
283
  name: {
254
- required: ne
284
+ required: ae
255
285
  },
256
286
  orgNo: {
257
287
  required: $(this.type === "company")
@@ -268,7 +298,7 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
268
298
  };
269
299
  },
270
300
  computed: {
271
- ...fe({
301
+ ...ge({
272
302
  id: "endCustomer.id",
273
303
  type: "endCustomer.customerType",
274
304
  name: "endCustomer.name",
@@ -331,83 +361,83 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
331
361
  }
332
362
  },
333
363
  mounted() {
334
- var t, s, p;
364
+ var t, i, u;
335
365
  const e = this.$refs[this.inputFocusOnMount] || this.$refs.name;
336
- (p = (s = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : s.querySelector("input")) == null || p.focus();
366
+ (u = (i = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : i.querySelector("input")) == null || u.focus();
337
367
  },
338
368
  methods: {
339
369
  validateForm() {
340
370
  return this.v$.$touch(), this.v$.$invalid ? !1 : (this.$emit("submit", !0), !0);
341
371
  }
342
372
  }
343
- }, he = { class: "form-client" }, ve = { class: "space-between flex flex-wrap items-center pb-6" }, ye = {
373
+ }, ve = { class: "form-client" }, ye = { class: "space-between flex flex-wrap items-center pb-6" }, be = {
344
374
  class: "flex-grow",
345
375
  style: { "font-weight": "600", "font-size": "20px" }
346
- }, be = { class: "type-toggle" }, Ce = { style: { "line-height": "1.25", padding: "4px 0" } }, we = { style: { "font-size": "12px", opacity: "0.7" } }, ke = { style: { "line-height": "1.25", padding: "4px 0" } }, $e = { style: { "font-size": "12px", opacity: "0.7" } }, Ve = {
376
+ }, Ce = { class: "type-toggle" }, we = { style: { "line-height": "1.25", padding: "4px 0" } }, ke = { style: { "font-size": "12px", opacity: "0.7" } }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = {
347
377
  class: "flex items-center justify-center",
348
378
  style: { "margin-bottom": "calc(2.5 * var(--rem))" }
349
- }, Ne = { class: "type-toggle" }, Me = { key: 0 }, Oe = {
379
+ }, Ie = { class: "type-toggle" }, Me = { key: 0 }, Se = {
350
380
  key: 0,
351
381
  class: "dropdown-field-wrapper flex min-w-0 flex-col"
352
- }, Se = { class: "my-1 text-sm text-gray-600" }, Ie = { class: "py-1 leading-5" }, ze = { class: "text-xs opacity-70" }, Fe = { style: { "line-height": "1.25", padding: "4px 0" } }, Re = { style: { "font-size": "12px", opacity: "0.7" } }, Ue = {
382
+ }, Oe = { class: "my-1 text-sm text-gray-600" }, Fe = { class: "py-1 leading-5" }, ze = { class: "text-xs opacity-70" }, Re = { style: { "line-height": "1.25", padding: "4px 0" } }, De = { style: { "font-size": "12px", opacity: "0.7" } }, qe = {
353
383
  key: 1,
354
384
  class: "dropdown-field-wrapper flex min-w-0 flex-col"
355
- }, qe = { class: "my-1 text-sm text-gray-600" }, De = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Ae = { class: "truncate text-xs opacity-70" }, Be = { style: { "line-height": "1.25", padding: "4px 0" } }, Ee = {
385
+ }, Ue = { class: "my-1 text-sm text-gray-600" }, Ae = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Be = { class: "truncate text-xs opacity-70" }, Ee = { style: { "line-height": "1.25", padding: "4px 0" } }, Pe = {
356
386
  class: "max-w-[calc(12_*_var(--rem))] truncate",
357
387
  style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
358
- }, Pe = { style: { "margin-top": "calc(3 * var(--rem))" } };
359
- function Te(e, t, s, p, c, l) {
360
- const f = g("ClientAutocomplete"), d = g("CField"), m = g("CInput"), M = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), O = g("CDropdownItem"), S = g("CDropdown"), T = g("CCheckbox"), U = g("CRadio");
361
- return u(), h("div", he, [
362
- s.simpleForm ? (u(), h("form", {
388
+ }, Te = { style: { "margin-top": "calc(3 * var(--rem))" } };
389
+ function We(e, t, i, u, c, l) {
390
+ const p = g("ClientAutocomplete"), d = g("CField"), m = g("CInput"), I = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), M = g("CDropdownItem"), S = g("CDropdown"), W = g("CCheckbox"), D = g("CRadio");
391
+ return f(), h("div", ve, [
392
+ i.simpleForm ? (f(), h("form", {
363
393
  key: 0,
364
394
  onSubmit: t[9] || (t[9] = N((...o) => l.validateForm && l.validateForm(...o), ["prevent"]))
365
395
  }, [
366
- i("div", ve, [
367
- i("div", ye, r(e.$t("_common:recipient").capitalize()), 1),
368
- i("div", be, [
369
- i("div", {
396
+ s("div", ye, [
397
+ s("div", be, r(e.$t("_common:recipient").capitalize()), 1),
398
+ s("div", Ce, [
399
+ s("div", {
370
400
  class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
371
401
  onClick: t[0] || (t[0] = (o) => e.type = "individual")
372
402
  }, r(e.$t("individual")), 3),
373
- i("div", {
403
+ s("div", {
374
404
  class: y([{ active: e.type === "company" }, "type-toggle-button"]),
375
405
  onClick: t[1] || (t[1] = (o) => e.type = "company")
376
406
  }, r(e.$t("_common:company").capitalize()), 3)
377
407
  ])
378
408
  ]),
379
- a(d, {
409
+ n(d, {
380
410
  label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
381
- validator: p.v$.name,
411
+ validator: u.v$.name,
382
412
  messages: l.messages.name,
383
413
  "label-position": "inside",
384
414
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
385
415
  }, {
386
- default: n(() => [
387
- a(f, {
416
+ default: a(() => [
417
+ n(p, {
388
418
  ref: "name",
389
419
  modelValue: e.name,
390
420
  "onUpdate:modelValue": t[2] || (t[2] = (o) => e.name = o),
391
421
  placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
392
- "search-enabled": s.searchEnabled,
422
+ "search-enabled": i.searchEnabled,
393
423
  "show-loading": !0,
394
424
  onSetClient: t[3] || (t[3] = (o) => e.$emit("setClient", o))
395
425
  }, null, 8, ["modelValue", "placeholder", "search-enabled"])
396
426
  ]),
397
427
  _: 1
398
428
  }, 8, ["label", "validator", "messages"]),
399
- a(M, null, {
400
- default: n(() => [
401
- l.isIndivid ? v("", !0) : (u(), b(d, {
429
+ n(I, null, {
430
+ default: a(() => [
431
+ l.isIndivid ? v("", !0) : (f(), b(d, {
402
432
  key: 0,
403
- validator: p.v$.reference,
433
+ validator: u.v$.reference,
404
434
  messages: l.messages.reference,
405
435
  label: e.$t("reference").capitalize(),
406
436
  "label-position": "inside",
407
437
  class: "pb-4"
408
438
  }, {
409
- default: n(() => [
410
- a(m, {
439
+ default: a(() => [
440
+ n(m, {
411
441
  ref: "reference",
412
442
  modelValue: e.reference,
413
443
  "onUpdate:modelValue": t[4] || (t[4] = (o) => e.reference = o),
@@ -419,15 +449,15 @@ function Te(e, t, s, p, c, l) {
419
449
  ]),
420
450
  _: 1
421
451
  }),
422
- a(d, {
423
- validator: p.v$.email,
452
+ n(d, {
453
+ validator: u.v$.email,
424
454
  messages: l.messages.email,
425
455
  label: e.$t("_common:email").capitalize(),
426
456
  "label-position": "inside",
427
457
  style: { "margin-bottom": "calc(1.5 * var(--rem))" }
428
458
  }, {
429
- default: n(() => [
430
- a(m, {
459
+ default: a(() => [
460
+ n(m, {
431
461
  ref: "email",
432
462
  modelValue: e.email,
433
463
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e.email = o),
@@ -437,7 +467,7 @@ function Te(e, t, s, p, c, l) {
437
467
  ]),
438
468
  _: 1
439
469
  }, 8, ["validator", "messages", "label"]),
440
- a(R, {
470
+ n(R, {
441
471
  ref: "cellphone",
442
472
  modelValue: e.cellphone,
443
473
  "onUpdate:modelValue": t[6] || (t[6] = (o) => e.cellphone = o),
@@ -448,34 +478,34 @@ function Te(e, t, s, p, c, l) {
448
478
  "default-region": e.companyRegion,
449
479
  "label-position": "inside"
450
480
  }, null, 8, ["modelValue", "region", "label", "placeholder", "default-region"]),
451
- s.documentRole ? (u(), b(S, {
481
+ i.documentRole ? (f(), b(S, {
452
482
  key: 0,
453
483
  expanded: "",
454
484
  style: { "margin-bottom": "calc(1 * var(--rem))", "margin-top": "calc(0.75 * var(--rem))" }
455
485
  }, {
456
- trigger: n(() => [
457
- a(w, {
486
+ trigger: a(() => [
487
+ n(w, {
458
488
  "dropdown-icon": !0,
459
489
  "icon-props": {
460
490
  stroke: "hsl(0, 0%, 50%)"
461
491
  },
462
- "icon-left": s.documentRole === "signee" ? "pen-tool" : "eye",
492
+ "icon-left": i.documentRole === "signee" ? "pen-tool" : "eye",
463
493
  class: "is-left",
464
494
  type: "none",
465
495
  pattern: "secondary",
466
496
  style: { width: "100%" }
467
497
  }, {
468
- default: n(() => [
469
- i("div", Ce, [
470
- i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
471
- i("div", we, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
498
+ default: a(() => [
499
+ s("div", we, [
500
+ s("div", null, r(e.$t(`_common:documentRole.${i.documentRole}.description`)), 1),
501
+ s("div", ke, r(e.$t(`_common:documentRole.${i.documentRole}.label`)), 1)
472
502
  ])
473
503
  ]),
474
504
  _: 1
475
505
  }, 8, ["icon-left"])
476
506
  ]),
477
- default: n(() => [
478
- (u(), h(I, null, z(["signee", "recipient", "approver"], (o) => a(O, {
507
+ default: a(() => [
508
+ (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(M, {
479
509
  key: o,
480
510
  "icon-left": o === "signee" ? "pen-tool" : "eye",
481
511
  "icon-props": {
@@ -483,10 +513,10 @@ function Te(e, t, s, p, c, l) {
483
513
  },
484
514
  onClick: (q) => e.$emit("update:document-role", o)
485
515
  }, {
486
- default: n(() => [
487
- i("div", ke, [
488
- i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
489
- i("div", $e, r(e.$t(`_common:documentRole.${o}.label`)), 1)
516
+ default: a(() => [
517
+ s("div", $e, [
518
+ s("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
519
+ s("div", Ve, r(e.$t(`_common:documentRole.${o}.label`)), 1)
490
520
  ])
491
521
  ]),
492
522
  _: 2
@@ -494,19 +524,19 @@ function Te(e, t, s, p, c, l) {
494
524
  ]),
495
525
  _: 1
496
526
  })) : v("", !0),
497
- a(w, {
527
+ n(w, {
498
528
  type: "secondary",
499
529
  pattern: "tertiary",
500
530
  size: "small",
501
531
  "icon-left": "arrow-right",
502
532
  onClick: t[8] || (t[8] = (o) => e.$emit("show-more"))
503
533
  }, {
504
- default: n(() => [
534
+ default: a(() => [
505
535
  C(r(e.$t("showMore").capitalize()), 1)
506
536
  ]),
507
537
  _: 1
508
538
  }),
509
- a(w, {
539
+ n(w, {
510
540
  loading: e.isPosting,
511
541
  "native-type": "submit",
512
542
  type: "secondary",
@@ -515,61 +545,61 @@ function Te(e, t, s, p, c, l) {
515
545
  class: "mt-4",
516
546
  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)" }
517
547
  }, {
518
- default: n(() => [
548
+ default: a(() => [
519
549
  C(r(e.$t("updateButton")), 1)
520
550
  ]),
521
551
  _: 1
522
552
  }, 8, ["loading"])
523
- ], 32)) : (u(), h("div", {
553
+ ], 32)) : (f(), h("div", {
524
554
  key: 1,
525
555
  class: y({ "column-only": e.windowWidth <= 600 })
526
556
  }, [
527
- i("div", Ve, [
528
- i("div", Ne, [
529
- i("div", {
557
+ s("div", Ne, [
558
+ s("div", Ie, [
559
+ s("div", {
530
560
  class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
531
561
  onClick: t[10] || (t[10] = (o) => e.type = "individual")
532
562
  }, r(e.$t("individual")), 3),
533
- i("div", {
563
+ s("div", {
534
564
  class: y([{ active: e.type === "company" }, "type-toggle-button"]),
535
565
  onClick: t[11] || (t[11] = (o) => e.type = "company")
536
566
  }, r(e.$t("_common:company").capitalize()), 3)
537
567
  ])
538
568
  ]),
539
- a(d, {
569
+ n(d, {
540
570
  class: "flex",
541
571
  grouped: ""
542
572
  }, {
543
- default: n(() => [
544
- a(d, {
573
+ default: a(() => [
574
+ n(d, {
545
575
  label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
546
- validator: p.v$.name,
576
+ validator: u.v$.name,
547
577
  messages: l.messages.name,
548
578
  "label-position": "inside",
549
579
  expanded: ""
550
580
  }, {
551
- default: n(() => [
552
- a(f, {
581
+ default: a(() => [
582
+ n(p, {
553
583
  ref: "name",
554
584
  modelValue: e.name,
555
585
  "onUpdate:modelValue": t[12] || (t[12] = (o) => e.name = o),
556
586
  placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
557
587
  "show-loading": !0,
558
- "search-enabled": s.searchEnabled,
588
+ "search-enabled": i.searchEnabled,
559
589
  onSetClient: t[13] || (t[13] = (o) => e.$emit("setClient", o))
560
590
  }, null, 8, ["modelValue", "placeholder", "search-enabled"])
561
591
  ]),
562
592
  _: 1
563
593
  }, 8, ["label", "validator", "messages"]),
564
- a(d, {
594
+ n(d, {
565
595
  label: l.isIndivid ? e.$t("_common:socialNo").capitalize() : e.$t("_common:orgNoShort").capitalize(),
566
- validator: p.v$.orgNo,
596
+ validator: u.v$.orgNo,
567
597
  messages: l.isIndivid ? l.messages.orgNo : l.messages.realOrgNo,
568
598
  "label-position": "inside",
569
599
  expanded: ""
570
600
  }, {
571
- default: n(() => [
572
- a(m, {
601
+ default: a(() => [
602
+ n(m, {
573
603
  ref: "orgNo",
574
604
  modelValue: l.orgNo,
575
605
  "onUpdate:modelValue": t[14] || (t[14] = (o) => l.orgNo = o),
@@ -581,18 +611,18 @@ function Te(e, t, s, p, c, l) {
581
611
  ]),
582
612
  _: 1
583
613
  }),
584
- a(M, null, {
585
- default: n(() => [
586
- e.type && !l.isIndivid ? (u(), b(d, {
614
+ n(I, null, {
615
+ default: a(() => [
616
+ e.type && !l.isIndivid ? (f(), b(d, {
587
617
  key: 0,
588
- validator: p.v$.reference,
618
+ validator: u.v$.reference,
589
619
  messages: l.messages.reference,
590
620
  label: e.$t("_common:reference").capitalize(),
591
621
  "label-position": "inside",
592
622
  class: "pb-4"
593
623
  }, {
594
- default: n(() => [
595
- a(m, {
624
+ default: a(() => [
625
+ n(m, {
596
626
  ref: "reference",
597
627
  modelValue: e.reference,
598
628
  "onUpdate:modelValue": t[15] || (t[15] = (o) => e.reference = o),
@@ -601,17 +631,17 @@ function Te(e, t, s, p, c, l) {
601
631
  ]),
602
632
  _: 1
603
633
  }, 8, ["validator", "messages", "label"])) : v("", !0),
604
- e.type && !l.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (u(), b(d, {
634
+ e.type && !l.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (f(), b(d, {
605
635
  key: 1,
606
636
  style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
607
637
  }, {
608
- default: n(() => [
609
- a(T, {
638
+ default: a(() => [
639
+ n(W, {
610
640
  modelValue: e.reverseVat,
611
641
  "onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
612
642
  size: "normal"
613
643
  }, {
614
- default: n(() => [
644
+ default: a(() => [
615
645
  C(r(e.$t("_common:vat.reverseVat")), 1)
616
646
  ]),
617
647
  _: 1
@@ -622,21 +652,21 @@ function Te(e, t, s, p, c, l) {
622
652
  ]),
623
653
  _: 1
624
654
  }),
625
- a(d, {
655
+ n(d, {
626
656
  class: "flex",
627
657
  grouped: ""
628
658
  }, {
629
- default: n(() => [
630
- a(d, {
631
- validator: p.v$.email,
659
+ default: a(() => [
660
+ n(d, {
661
+ validator: u.v$.email,
632
662
  messages: l.messages.email,
633
663
  label: e.$t("_common:email").capitalize(),
634
664
  "label-position": "inside",
635
665
  class: "flex-1",
636
666
  expanded: ""
637
667
  }, {
638
- default: n(() => [
639
- a(m, {
668
+ default: a(() => [
669
+ n(m, {
640
670
  ref: "email",
641
671
  modelValue: e.email,
642
672
  "onUpdate:modelValue": t[17] || (t[17] = (o) => e.email = o),
@@ -646,7 +676,7 @@ function Te(e, t, s, p, c, l) {
646
676
  ]),
647
677
  _: 1
648
678
  }, 8, ["validator", "messages", "label"]),
649
- a(R, {
679
+ n(R, {
650
680
  modelValue: e.cellphone,
651
681
  "onUpdate:modelValue": t[18] || (t[18] = (o) => e.cellphone = o),
652
682
  region: e.cellphoneRegion,
@@ -660,12 +690,12 @@ function Te(e, t, s, p, c, l) {
660
690
  ]),
661
691
  _: 1
662
692
  }),
663
- a(d, {
693
+ n(d, {
664
694
  label: e.$t("_common:address").capitalize(),
665
695
  "label-position": "inside"
666
696
  }, {
667
- default: n(() => [
668
- a(m, {
697
+ default: a(() => [
698
+ n(m, {
669
699
  ref: "street",
670
700
  modelValue: e.street,
671
701
  "onUpdate:modelValue": t[20] || (t[20] = (o) => e.street = o),
@@ -674,14 +704,14 @@ function Te(e, t, s, p, c, l) {
674
704
  ]),
675
705
  _: 1
676
706
  }, 8, ["label"]),
677
- a(d, {
707
+ n(d, {
678
708
  class: "force-two flex",
679
709
  grouped: ""
680
710
  }, {
681
- default: n(() => [
682
- a(d, { expanded: "" }, {
683
- default: n(() => [
684
- a(m, {
711
+ default: a(() => [
712
+ n(d, { expanded: "" }, {
713
+ default: a(() => [
714
+ n(m, {
685
715
  ref: "zip",
686
716
  modelValue: e.zip,
687
717
  "onUpdate:modelValue": t[21] || (t[21] = (o) => e.zip = o),
@@ -690,9 +720,9 @@ function Te(e, t, s, p, c, l) {
690
720
  ]),
691
721
  _: 1
692
722
  }),
693
- a(d, { expanded: "" }, {
694
- default: n(() => [
695
- a(m, {
723
+ n(d, { expanded: "" }, {
724
+ default: a(() => [
725
+ n(m, {
696
726
  ref: "city",
697
727
  modelValue: e.city,
698
728
  "onUpdate:modelValue": t[22] || (t[22] = (o) => e.city = o),
@@ -704,9 +734,9 @@ function Te(e, t, s, p, c, l) {
704
734
  ]),
705
735
  _: 1
706
736
  }),
707
- a(d, { class: "flex" }, {
708
- default: n(() => [
709
- a(U, {
737
+ n(d, { class: "flex" }, {
738
+ default: a(() => [
739
+ n(D, {
710
740
  modelValue: e.separateWorkAddress,
711
741
  "onUpdate:modelValue": t[23] || (t[23] = (o) => e.separateWorkAddress = o),
712
742
  "native-value": !1,
@@ -714,12 +744,12 @@ function Te(e, t, s, p, c, l) {
714
744
  size: "small",
715
745
  style: { "margin-bottom": "0.5em" }
716
746
  }, {
717
- default: n(() => [
747
+ default: a(() => [
718
748
  C(r(e.$t("seperateWorkAddress.false")), 1)
719
749
  ]),
720
750
  _: 1
721
751
  }, 8, ["modelValue"]),
722
- a(U, {
752
+ n(D, {
723
753
  modelValue: e.separateWorkAddress,
724
754
  "onUpdate:modelValue": t[24] || (t[24] = (o) => e.separateWorkAddress = o),
725
755
  "native-value": !0,
@@ -727,7 +757,7 @@ function Te(e, t, s, p, c, l) {
727
757
  size: "small",
728
758
  style: { "margin-bottom": "0.5em" }
729
759
  }, {
730
- default: n(() => [
760
+ default: a(() => [
731
761
  C(r(e.$t("seperateWorkAddress.true")), 1)
732
762
  ]),
733
763
  _: 1
@@ -735,14 +765,14 @@ function Te(e, t, s, p, c, l) {
735
765
  ]),
736
766
  _: 1
737
767
  }),
738
- a(M, null, {
739
- default: n(() => [
740
- e.type && e.separateWorkAddress ? (u(), h("div", Me, [
741
- a(d, {
768
+ n(I, null, {
769
+ default: a(() => [
770
+ e.type && e.separateWorkAddress ? (f(), h("div", Me, [
771
+ n(d, {
742
772
  label: e.$t("_common:addressWork").capitalize() + ` ( ${e.$t("workAddressSubLabel")} )`
743
773
  }, {
744
- default: n(() => [
745
- a(m, {
774
+ default: a(() => [
775
+ n(m, {
746
776
  ref: "workStreet",
747
777
  modelValue: e.workStreet,
748
778
  "onUpdate:modelValue": t[25] || (t[25] = (o) => e.workStreet = o),
@@ -751,14 +781,14 @@ function Te(e, t, s, p, c, l) {
751
781
  ]),
752
782
  _: 1
753
783
  }, 8, ["label"]),
754
- a(d, {
784
+ n(d, {
755
785
  class: "force-two flex",
756
786
  grouped: ""
757
787
  }, {
758
- default: n(() => [
759
- a(d, { expanded: "" }, {
760
- default: n(() => [
761
- a(m, {
788
+ default: a(() => [
789
+ n(d, { expanded: "" }, {
790
+ default: a(() => [
791
+ n(m, {
762
792
  ref: "workZip",
763
793
  modelValue: e.workZip,
764
794
  "onUpdate:modelValue": t[26] || (t[26] = (o) => e.workZip = o),
@@ -768,9 +798,9 @@ function Te(e, t, s, p, c, l) {
768
798
  ]),
769
799
  _: 1
770
800
  }),
771
- a(d, { expanded: "" }, {
772
- default: n(() => [
773
- a(m, {
801
+ n(d, { expanded: "" }, {
802
+ default: a(() => [
803
+ n(m, {
774
804
  ref: "workCity",
775
805
  modelValue: e.workCity,
776
806
  "onUpdate:modelValue": t[27] || (t[27] = (o) => e.workCity = o),
@@ -787,41 +817,41 @@ function Te(e, t, s, p, c, l) {
787
817
  ]),
788
818
  _: 1
789
819
  }),
790
- s.documentRole || s.answerMethod ? (u(), b(d, {
820
+ i.documentRole || i.answerMethod ? (f(), b(d, {
791
821
  key: 0,
792
822
  grouped: "",
793
823
  class: "flex pt-4"
794
824
  }, {
795
- default: n(() => [
796
- s.documentRole ? (u(), h("div", Oe, [
797
- i("div", Se, r(e.$t("_common:documentRole.title")), 1),
798
- a(S, {
825
+ default: a(() => [
826
+ i.documentRole ? (f(), h("div", Se, [
827
+ s("div", Oe, r(e.$t("_common:documentRole.title")), 1),
828
+ n(S, {
799
829
  expanded: "",
800
830
  style: { "margin-bottom": "calc(1 * var(--rem))" }
801
831
  }, {
802
- trigger: n(() => [
803
- a(w, {
832
+ trigger: a(() => [
833
+ n(w, {
804
834
  "dropdown-icon": !0,
805
835
  "icon-props": {
806
836
  stroke: "hsl(0, 0%, 50%)"
807
837
  },
808
- "icon-left": s.documentRole === "signee" ? "pen-tool" : "eye",
838
+ "icon-left": i.documentRole === "signee" ? "pen-tool" : "eye",
809
839
  class: "is-left",
810
840
  type: "none",
811
841
  pattern: "secondary",
812
842
  expanded: ""
813
843
  }, {
814
- default: n(() => [
815
- i("div", Ie, [
816
- i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
817
- i("div", ze, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
844
+ default: a(() => [
845
+ s("div", Fe, [
846
+ s("div", null, r(e.$t(`_common:documentRole.${i.documentRole}.description`)), 1),
847
+ s("div", ze, r(e.$t(`_common:documentRole.${i.documentRole}.label`)), 1)
818
848
  ])
819
849
  ]),
820
850
  _: 1
821
851
  }, 8, ["icon-left"])
822
852
  ]),
823
- default: n(() => [
824
- (u(), h(I, null, z(["signee", "recipient", "approver"], (o) => a(O, {
853
+ default: a(() => [
854
+ (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(M, {
825
855
  key: o,
826
856
  "icon-left": o === "signee" ? "pen-tool" : "eye",
827
857
  "icon-props": {
@@ -829,10 +859,10 @@ function Te(e, t, s, p, c, l) {
829
859
  },
830
860
  onClick: (q) => e.$emit("update:document-role", o)
831
861
  }, {
832
- default: n(() => [
833
- i("div", Fe, [
834
- i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
835
- i("div", Re, r(e.$t(`_common:documentRole.${o}.label`)), 1)
862
+ default: a(() => [
863
+ s("div", Re, [
864
+ s("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
865
+ s("div", De, r(e.$t(`_common:documentRole.${o}.label`)), 1)
836
866
  ])
837
867
  ]),
838
868
  _: 2
@@ -841,41 +871,41 @@ function Te(e, t, s, p, c, l) {
841
871
  _: 1
842
872
  })
843
873
  ])) : v("", !0),
844
- s.answerMethod ? (u(), h("div", Ue, [
845
- i("div", qe, r(e.$t("_common:signMethod.title")), 1),
846
- a(S, {
874
+ i.answerMethod ? (f(), h("div", qe, [
875
+ s("div", Ue, r(e.$t("_common:signMethod.title")), 1),
876
+ n(S, {
847
877
  expanded: "",
848
878
  style: { "margin-bottom": "calc(1 * var(--rem))" }
849
879
  }, {
850
- trigger: n(() => [
851
- a(w, {
880
+ trigger: a(() => [
881
+ n(w, {
852
882
  "dropdown-icon": !0,
853
883
  class: "is-left",
854
884
  type: "none",
855
885
  pattern: "secondary",
856
886
  expanded: ""
857
887
  }, {
858
- default: n(() => [
859
- i("div", De, [
860
- i("div", null, r(e.$t(`signMethod.${s.answerMethod.accept}.title`)), 1),
861
- i("div", Ae, r(e.$t(`signMethod.${s.answerMethod.accept}.content`)), 1)
888
+ default: a(() => [
889
+ s("div", Ae, [
890
+ s("div", null, r(e.$t(`signMethod.${i.answerMethod.accept}.title`)), 1),
891
+ s("div", Be, r(e.$t(`signMethod.${i.answerMethod.accept}.content`)), 1)
862
892
  ])
863
893
  ]),
864
894
  _: 1
865
895
  })
866
896
  ]),
867
- default: n(() => [
868
- (u(!0), h(I, null, z(s.signOptions, (o) => (u(), b(O, {
897
+ default: a(() => [
898
+ (f(!0), h(O, null, F(i.signOptions, (o) => (f(), b(M, {
869
899
  key: o,
870
900
  onClick: (q) => e.$emit("update:answer-method", {
871
- ...s.answerMethod,
901
+ ...i.answerMethod,
872
902
  accept: o
873
903
  })
874
904
  }, {
875
- default: n(() => [
876
- i("div", Be, [
877
- i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
878
- i("div", Ee, r(e.$t(`signMethod.${o}.content`)), 1)
905
+ default: a(() => [
906
+ s("div", Ee, [
907
+ s("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
908
+ s("div", Pe, r(e.$t(`signMethod.${o}.content`)), 1)
879
909
  ])
880
910
  ]),
881
911
  _: 2
@@ -887,15 +917,15 @@ function Te(e, t, s, p, c, l) {
887
917
  ]),
888
918
  _: 1
889
919
  })) : v("", !0),
890
- i("div", Pe, [
891
- a(w, {
920
+ s("div", Te, [
921
+ n(w, {
892
922
  loading: e.isPosting,
893
923
  type: "secondary",
894
924
  wide: "",
895
925
  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)" },
896
926
  onClick: l.validateForm
897
927
  }, {
898
- default: n(() => [
928
+ default: a(() => [
899
929
  C(r(e.$t("updateButton")), 1)
900
930
  ]),
901
931
  _: 1
@@ -904,10 +934,10 @@ function Te(e, t, s, p, c, l) {
904
934
  ], 2))
905
935
  ]);
906
936
  }
907
- const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643"]]), { mapFields: je } = E({
937
+ const je = /* @__PURE__ */ z(he, [["render", We], ["__scopeId", "data-v-9dcf6643"]]), { mapFields: Le } = E({
908
938
  getterType: "forms/getField",
909
939
  mutationType: "forms/updateField"
910
- }), Le = {
940
+ }), He = {
911
941
  name: "ClientModal",
912
942
  i18nOptions: {
913
943
  namespaces: "clientModal",
@@ -939,7 +969,7 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
939
969
  }
940
970
  },
941
971
  components: {
942
- FormClient: We
972
+ FormClient: je
943
973
  },
944
974
  emits: ["close"],
945
975
  mixins: [P],
@@ -984,10 +1014,10 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
984
1014
  };
985
1015
  },
986
1016
  computed: {
987
- ...je({
1017
+ ...Le({
988
1018
  endCustomer: "endCustomer"
989
1019
  }),
990
- ...Q("forms", {
1020
+ ...X("forms", {
991
1021
  formData: (e) => e.document2
992
1022
  }),
993
1023
  ...B({
@@ -1006,16 +1036,16 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
1006
1036
  }
1007
1037
  },
1008
1038
  created() {
1009
- var s;
1039
+ var i;
1010
1040
  let e = k(this.formData, "data.defaultAnswerMethod.accept") || "signature";
1011
- (s = this.signOptions) != null && s.length && !this.signOptions.includes(e) && ([e] = this.signOptions), this.storedNewClient.answerMethod.accept = e, this.forceExpand && (this.showMore = !0);
1041
+ (i = this.signOptions) != null && i.length && !this.signOptions.includes(e) && ([e] = this.signOptions), this.storedNewClient.answerMethod.accept = e, this.forceExpand && (this.showMore = !0);
1012
1042
  const t = k(
1013
1043
  this.formData,
1014
1044
  `clients[${this.documentClientIndex}]`,
1015
1045
  {}
1016
1046
  );
1017
1047
  this.loadForm(t), ["endCustomer", "storedNewClient"].forEach(
1018
- (p) => this.$watch(p, {
1048
+ (u) => this.$watch(u, {
1019
1049
  deep: !0,
1020
1050
  handler() {
1021
1051
  this.hasChanged = !0;
@@ -1024,31 +1054,31 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
1024
1054
  );
1025
1055
  },
1026
1056
  methods: {
1027
- ...Y({
1028
- saveClient: D.FORM_SUBMIT_ENDCUSTOMER,
1029
- showMessage: D.SHOW_MESSAGE
1057
+ ...Q({
1058
+ saveClient: U.FORM_SUBMIT_ENDCUSTOMER,
1059
+ showMessage: U.SHOW_MESSAGE
1030
1060
  }),
1031
- omit: ie,
1061
+ omit: se,
1032
1062
  loadForm(e = {}) {
1033
- this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = _({
1063
+ this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = x({
1034
1064
  type: this.defaultClientType(),
1035
1065
  ...e
1036
1066
  });
1037
1067
  },
1038
1068
  async onSave() {
1039
- var s, p;
1069
+ var i, u;
1040
1070
  this.isLoading = !0;
1041
1071
  let e = k(this.endCustomer, "id"), t = !1;
1042
1072
  if (this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (t = !0) : this.can("endCustomers", "create") && (t = !0)), t && (e = await this.saveClient()), this.useSignOrder && !this.storedNewClient.signOrder) {
1043
- const c = ((p = (s = this.formData) == null ? void 0 : s.clients) == null ? void 0 : p.reduce(
1044
- (l, f) => f.signOrder > l ? f.signOrder : l,
1073
+ const c = ((u = (i = this.formData) == null ? void 0 : i.clients) == null ? void 0 : u.reduce(
1074
+ (l, p) => p.signOrder > l ? p.signOrder : l,
1045
1075
  0
1046
1076
  )) || 0;
1047
1077
  this.storedNewClient.signOrder = c + 1;
1048
1078
  }
1049
1079
  this.setFormValue({
1050
1080
  key: `clients[${this.documentClientIndex}]`,
1051
- value: X(
1081
+ value: _(
1052
1082
  { ...this.endCustomer, ...e && { id: e } },
1053
1083
  { ...this.storedNewClient }
1054
1084
  )
@@ -1093,15 +1123,15 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
1093
1123
  });
1094
1124
  }
1095
1125
  }
1096
- }, 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" };
1097
- function Ze(e, t, s, p, c, l) {
1098
- const f = g("CButton"), d = g("FormClient");
1099
- return u(), h("div", {
1126
+ }, Ze = { 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" };
1127
+ function Ye(e, t, i, u, c, l) {
1128
+ const p = g("CButton"), d = g("FormClient");
1129
+ return f(), h("div", {
1100
1130
  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",
1101
1131
  onClickPassive: t[5] || (t[5] = N((...m) => l.close && l.close(...m), ["self"]))
1102
1132
  }, [
1103
- i("div", He, [
1104
- a(f, {
1133
+ s("div", Ze, [
1134
+ n(p, {
1105
1135
  class: y([c.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
1106
1136
  pattern: "tertiary",
1107
1137
  type: "none",
@@ -1109,7 +1139,7 @@ function Ze(e, t, s, p, c, l) {
1109
1139
  icon: "x",
1110
1140
  onClick: l.close
1111
1141
  }, null, 8, ["class", "onClick"]),
1112
- a(d, {
1142
+ n(d, {
1113
1143
  "document-role": c.storedNewClient.documentRole,
1114
1144
  "onUpdate:documentRole": t[0] || (t[0] = (m) => c.storedNewClient.documentRole = m),
1115
1145
  "answer-method": c.storedNewClient.answerMethod,
@@ -1118,22 +1148,22 @@ function Ze(e, t, s, p, c, l) {
1118
1148
  t[4] || (t[4] = (m) => {
1119
1149
  c.storedNewClient.answerMethod = {
1120
1150
  ...m,
1121
- __dirty: !0
1151
+ _isDirty: !0
1122
1152
  };
1123
1153
  })
1124
1154
  ],
1125
1155
  "search-enabled": !0,
1126
1156
  "require-reference": !1,
1127
1157
  "simple-form": !c.showMore,
1128
- "input-focus-on-mount": s.inputFocusOnMount,
1129
- "sign-options": s.signOptions,
1158
+ "input-focus-on-mount": i.inputFocusOnMount,
1159
+ "sign-options": i.signOptions,
1130
1160
  "validate-org-no": l.validateOrgNo,
1131
1161
  class: y([[c.showMore ? "w-[520px]" : "w-[360px]"], "max-w-full p-0"]),
1132
1162
  onSetClient: t[2] || (t[2] = (m) => l.loadForm(l.omit(m, ["answerMethod"]))),
1133
1163
  onSubmit: l.onSave,
1134
1164
  onShowMore: t[3] || (t[3] = (m) => c.showMore = !0)
1135
1165
  }, null, 8, ["document-role", "answer-method", "simple-form", "input-focus-on-mount", "sign-options", "validate-org-no", "class", "onSubmit"]),
1136
- l.existsOnDocument && e.mq === "sm" ? (u(), b(f, {
1166
+ l.existsOnDocument && e.mq === "sm" ? (f(), b(p, {
1137
1167
  key: 0,
1138
1168
  type: "danger",
1139
1169
  pattern: "secondary",
@@ -1141,7 +1171,7 @@ function Ze(e, t, s, p, c, l) {
1141
1171
  class: "mt-4 text-sm",
1142
1172
  onClick: l.removeClient
1143
1173
  }, {
1144
- default: n(() => [
1174
+ default: a(() => [
1145
1175
  C(r(e.$t("_common:remove")), 1)
1146
1176
  ]),
1147
1177
  _: 1
@@ -1149,12 +1179,12 @@ function Ze(e, t, s, p, c, l) {
1149
1179
  ])
1150
1180
  ], 32);
1151
1181
  }
1152
- const Ge = /* @__PURE__ */ F(Le, [["render", Ze]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1182
+ const Ge = /* @__PURE__ */ z(He, [["render", Ye]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1153
1183
  __proto__: null,
1154
1184
  default: Ge
1155
1185
  }, Symbol.toStringTag, { value: "Module" }));
1156
1186
  export {
1157
1187
  Ge as C,
1158
- pe as a,
1188
+ ce as a,
1159
1189
  ot as b
1160
1190
  };