@cling-se/widget 0.19.7 → 0.19.9

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/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-C400wpa7.js} +19 -19
  3. package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-C_vekdpA.js} +80 -80
  4. package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CYeH1VVw.js} +14 -14
  5. package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-DGLogqK4.js} +256 -256
  6. package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-Hbm0GWNw.js} +33 -32
  7. package/dist/{CCallout-BlglVZrm.js → CCallout-BPCwr3uM.js} +15 -15
  8. package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-CZXWH0mA.js} +13 -13
  9. package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-B9dja0RC.js} +11 -11
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js} +17 -17
  11. package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-C1cjsMVZ.js} +1 -1
  12. package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-DwcIFaqz.js} +23 -23
  13. package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-C_PfAhRb.js} +12 -12
  14. package/dist/{CSelect-CmoAbVkP.js → CSelect-D4A_clvT.js} +15 -15
  15. package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-h81Vudx0.js} +16 -16
  16. package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-B_R7zgvM.js} +24 -24
  17. package/dist/{ClientModal-Com23Qgc.js → ClientModal-CBJgrb_y.js} +44 -44
  18. package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-a5yTVc0q.js} +66 -66
  19. package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-sRTrUPOY.js} +18 -18
  20. package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-Cwd6t51-.js} +16 -16
  21. package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings-8tjji9f1.js} +39 -39
  22. package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-D1ZIH1Hn.js} +4 -4
  23. package/dist/{DocDetails-C5Vzh550.js → DocDetails-B5_hBzC-.js} +56 -56
  24. package/dist/{DocForm-DEUVV11n.js → DocForm-BKQvY0Ie.js} +821 -829
  25. package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-z0W-xRJP.js} +11 -11
  26. package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BgbDU24h.js} +6 -6
  27. package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-CNo1u8TK.js} +1 -1
  28. package/dist/{DocPrint-D_uxg7qD.js → DocPrint--UV846r0.js} +15 -15
  29. package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-BAkWIKbC.js} +23 -23
  30. package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-Bk6IVg0R.js} +10 -10
  31. package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-D5zDbbXV.js} +4499 -4438
  32. package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-KG4zJJOW.js} +16 -16
  33. package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-CXSxwjOt.js} +12 -12
  34. package/dist/DocumentLayout-C-V_5p3r.js +595 -0
  35. package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-H0f7bO0E.js} +18 -18
  36. package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-3F7DChD4.js} +4 -4
  37. package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-iG-cDNzZ.js} +8 -8
  38. package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-DhwFGdKH.js} +12 -12
  39. package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout-CyqQ9iRV.js} +10 -10
  40. package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-CEUhUuh4.js} +7 -7
  41. package/dist/{Flag-wXawyyMO.js → Flag-Bza5Ltob.js} +4 -4
  42. package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-kEbuiv0n.js} +36 -36
  43. package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-MDduQIdS.js} +16 -16
  44. package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-CKJXUAkn.js} +72 -72
  45. package/dist/{Index-BbVHxVFJ.js → Index--_tbiloB.js} +33 -33
  46. package/dist/{Index-y_AJP61r.js → Index-437smvNJ.js} +11 -11
  47. package/dist/{Index-ezY0DbcB.js → Index-8CyLDQv2.js} +5 -5
  48. package/dist/{Index-Cjg3X74T.js → Index-B1tFrOfN.js} +7 -7
  49. package/dist/{Index-Ct735UtM.js → Index-BFwz1G_7.js} +2 -2
  50. package/dist/{Index-BlownK7_.js → Index-BXqNV8F_.js} +7 -7
  51. package/dist/{Index-B53eUt7Y.js → Index-Bege0Vce.js} +15 -15
  52. package/dist/{Index-BTDQax0X.js → Index-Bg1kzWCp.js} +60 -59
  53. package/dist/{Index-9ZFW8Ka7.js → Index-C46cWm4W.js} +7 -7
  54. package/dist/{Index-C2-s62x7.js → Index-CGhWvSf9.js} +11 -11
  55. package/dist/{Index-D-gJQEAD.js → Index-CHIQWumi.js} +6 -6
  56. package/dist/{Index-CQboLS2e.js → Index-CNQhKXtr.js} +8 -8
  57. package/dist/{Index-COF0evH4.js → Index-CUDi4SEx.js} +6 -6
  58. package/dist/{Index-Bb6JZC8l.js → Index-ClA923dR.js} +11 -11
  59. package/dist/{Index-1WPEpaVr.js → Index-D2A8evjo.js} +7 -7
  60. package/dist/{Index-BvAqglwa.js → Index-D4XDugcf.js} +27 -27
  61. package/dist/{Index-GPliVrhC.js → Index-DB3keB-X.js} +7 -7
  62. package/dist/{Index-BJf4YdYB.js → Index-DQLLCnjH.js} +29 -29
  63. package/dist/{Index-Dfy0PsiW.js → Index-DUM-3B1l.js} +29 -29
  64. package/dist/{Index-Ck-_9woY.js → Index-DdZo8evS.js} +456 -461
  65. package/dist/{Index-CTrX3VRa.js → Index-Doc7K3kL.js} +5 -5
  66. package/dist/{Index-DfuzxXzD.js → Index-Dqfwe7SG.js} +2 -2
  67. package/dist/{Index-NnBwJv9v.js → Index-DtCuzght.js} +9 -9
  68. package/dist/{Index-DOeHci16.js → Index-DtDRffCY.js} +7 -7
  69. package/dist/{Index-C-EUJjuk.js → Index-DzKdZg0G.js} +2 -2
  70. package/dist/{Index-yS5OPrJJ.js → Index-DzugmOmj.js} +2 -2
  71. package/dist/{Index-DjfbgA_7.js → Index-E7OzmtR_.js} +30 -27
  72. package/dist/{Index-DkQ8_VkX.js → Index-MmvJQvLm.js} +194 -218
  73. package/dist/{Index-Dxg4gEKd.js → Index-Rb5n5XoO.js} +18 -18
  74. package/dist/{Index-DAkq_7Ws.js → Index-dTgmxz_A.js} +18 -18
  75. package/dist/{Index-Ciy9lnhS.js → Index-eJiQmHhr.js} +2 -2
  76. package/dist/Index-jQsYOOC3.js +4 -0
  77. package/dist/{Index-DzdEqsZB.js → Index-rINXTjpt.js} +16 -16
  78. package/dist/Index-zRXdiRpy.js +49 -0
  79. package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-B9979oeS.js} +2 -2
  80. package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-CO4fZnAC.js} +15 -15
  81. package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-DT4iXoSI.js} +6 -6
  82. package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-CP_1JzGI.js} +4 -4
  83. package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-D9Um3Agp.js} +2 -2
  84. package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-BtH12jVM.js} +103 -103
  85. package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-sQh93Xit.js} +9 -9
  86. package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-DMAcTVND.js} +71 -71
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js} +2 -2
  88. package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-CG6el7O_.js} +31 -31
  89. package/dist/{SearchApi-ZczKsBb7.js → SearchApi-B39mMGKy.js} +6 -6
  90. package/dist/{SendForm-D5jqkofo.js → SendForm-F5aQPz8w.js} +780 -778
  91. package/dist/{Setup-CdZzn0qW.js → Setup-DuHU2eHC.js} +4 -4
  92. package/dist/{SmartList-B36ffGAZ.js → SmartList-myMj6QGe.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js} +118 -118
  94. package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-Cb6Xms3f.js} +16 -16
  95. package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-oW3xS1pa.js} +13 -13
  96. package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-B-F9_nAf.js} +7 -7
  97. package/dist/{UploadModal-2tXsmGMM.js → UploadModal-eBx4Vqyo.js} +19 -19
  98. package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-CtTe4JW4.js} +10 -10
  99. package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-Cvz5B4JX.js} +9 -9
  100. package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-CXI0aN4g.js} +19 -19
  101. package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-DlcYhFw8.js} +1 -1
  102. package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-Cf6Q5cuR.js} +1 -1
  103. package/dist/{helpers-BVP2Pul1.js → helpers-Cf9wqfZh.js} +4 -4
  104. package/dist/{index-D0Qee2OX.js → index-BSCAjn53.js} +31 -31
  105. package/dist/{index-Cd4S4J-L.js → index-BStFMzD9.js} +56 -56
  106. package/dist/{index-BDb4bM0D.js → index-BytsFarx.js} +24 -24
  107. package/dist/{index-DXNrJnEc.js → index-Co_PpOtI.js} +10 -10
  108. package/dist/{index-BH5vwOzR.js → index-DPlBYqKB.js} +9 -9
  109. package/dist/{index-B86TZXOh.js → index-DsvlNA3Q.js} +94 -94
  110. package/dist/{index-CsbYpQqP.js → index-r5v1Gv17.js} +57 -57
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +153 -158
  113. package/dist/{main-C2Q8_T2Y.js → main-BkjAGG46.js} +14298 -14373
  114. package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-DLFNPgNO.js} +34 -40
  115. package/dist/omit-CvOSNZN7.js +56 -0
  116. package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-DeC1m0ps.js} +4 -4
  117. package/dist/{splitpanes-CuxtOZyV.js → splitpanes-CsJipBiG.js} +6 -6
  118. package/dist/{template-DzrGrOEa.js → template-Cvzvayl5.js} +6 -6
  119. package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-JEjGtE5F.js} +273 -275
  120. package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-D2gYy-TP.js} +7 -7
  121. package/dist/{utils-a_Odlqb5.js → utils-DarTPA8c.js} +1 -1
  122. package/dist/{validation-38muBV6x.js → validation-K11g55ZB.js} +4 -4
  123. package/dist/widget.css +1 -1
  124. package/package.json +2 -2
  125. package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
  126. package/dist/Index-CXjLkK_n.js +0 -49
  127. package/dist/Index-qFx0G3fC.js +0 -4
  128. package/dist/omit-DzlbtNCX.js +0 -56
@@ -1,10 +1,10 @@
1
- import { _ as y, $ as f, a0 as g, S as b, a1 as i, o as r, b as n, j as d, I as V, a2 as C, D as u, t as S, f as o, B as v, c, y as k, e as m } from "./main-C2Q8_T2Y.js";
2
- const w = {
1
+ import { _ as y, S as f, N as g, O as b, P as i, b as n, d, o as r, j as u, u as V, c, e as o, Q as C, R as m, T as S, t as v, x as k } from "./main-BkjAGG46.js";
2
+ const x = {
3
3
  name: "CSelect",
4
- mixins: [f, g],
4
+ mixins: [g, b],
5
5
  inheritAttrs: !1,
6
6
  components: {
7
- Spinner: b
7
+ Spinner: f
8
8
  },
9
9
  props: {
10
10
  modelValue: {
@@ -80,21 +80,21 @@ const w = {
80
80
  this.selected = e, !this.isValid && this.checkHtml5Validity();
81
81
  }
82
82
  }
83
- }, x = ["multiple", "size"], B = {
83
+ }, w = ["multiple", "size"], z = {
84
84
  key: 0,
85
85
  value: null,
86
86
  disabled: "",
87
87
  hidden: ""
88
88
  };
89
- function z(e, t, l, A, j, s) {
90
- const p = m("CIcon"), h = m("Spinner");
91
- return r(), n("div", u({
89
+ function B(e, t, l, A, N, s) {
90
+ const p = n("CIcon"), h = n("Spinner");
91
+ return r(), d("div", m({
92
92
  class: [{ "w-full": e.expanded, "has-icons-left": e.icon }, "relative clear-both box-border cursor-pointer text-left"]
93
93
  }, e.rootAttrs), [
94
- d("span", {
94
+ u("span", {
95
95
  class: k(s.spanClasses)
96
96
  }, [
97
- V(d("select", u(e.fallthroughAttrs, {
97
+ V(u("select", m(e.fallthroughAttrs, {
98
98
  ref: "select",
99
99
  "onUpdate:modelValue": t[0] || (t[0] = (a) => s.computedValue = a),
100
100
  multiple: l.multiple,
@@ -103,9 +103,9 @@ function z(e, t, l, A, j, s) {
103
103
  onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a) && e.checkHtml5Validity()),
104
104
  onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a))
105
105
  }), [
106
- l.placeholder && s.computedValue == null ? (r(), n("option", B, S(l.placeholder), 1)) : o("", !0),
107
- v(e.$slots, "default")
108
- ], 16, x), [
106
+ l.placeholder && s.computedValue == null ? (r(), d("option", z, v(l.placeholder), 1)) : o("", !0),
107
+ S(e.$slots, "default")
108
+ ], 16, w), [
109
109
  [C, s.computedValue]
110
110
  ]),
111
111
  !l.multiple && !e.loading ? (r(), c(p, {
@@ -123,7 +123,7 @@ function z(e, t, l, A, j, s) {
123
123
  ], 2)
124
124
  ], 16);
125
125
  }
126
- const M = /* @__PURE__ */ y(w, [["render", z]]);
126
+ const F = /* @__PURE__ */ y(x, [["render", B]]);
127
127
  export {
128
- M as C
128
+ F as C
129
129
  };
@@ -1,4 +1,4 @@
1
- import { aj as B, as as C, Q as l, at as N, U as e, o as n, b as s, F as w, G as x, y as d, Y as r, f as S, _ as z } from "./main-C2Q8_T2Y.js";
1
+ import { a7 as B, ay as C, H as l, az as N, d as o, e as x, I as e, o as s, F as w, n as S, W as d, x as r, _ as z } from "./main-BkjAGG46.js";
2
2
  const F = /* @__PURE__ */ B({
3
3
  __name: "CSkeleton",
4
4
  props: {
@@ -14,32 +14,32 @@ const F = /* @__PURE__ */ B({
14
14
  },
15
15
  setup(i) {
16
16
  const c = i, {
17
- active: f,
18
- animated: m,
17
+ active: v,
18
+ animated: f,
19
19
  width: a,
20
20
  height: t,
21
- circle: v,
21
+ circle: m,
22
22
  rounded: p,
23
23
  count: y,
24
24
  hidden: h,
25
- color: o
25
+ color: n
26
26
  } = C(c), _ = l(() => ({
27
27
  height: t.value === void 0 ? void 0 : isNaN(Number(t.value)) ? t.value : `${t.value}px`,
28
28
  width: a.value === void 0 ? void 0 : isNaN(Number(a.value)) ? a.value : `${a.value}px`,
29
- borderRadius: v.value ? "50%" : void 0,
30
- background: o.value ? o.value : void 0
31
- })), u = N(), g = l(() => u.style), b = l(() => u.class);
32
- return (R, $) => e(f) ? (n(), s("div", {
29
+ borderRadius: m.value ? "50%" : void 0,
30
+ background: n.value ? n.value : void 0
31
+ })), u = N(), g = l(() => u.style), k = l(() => u.class);
32
+ return (I, R) => e(v) ? (s(), o("div", {
33
33
  key: 0,
34
- class: d(["w-full", { invisible: e(h) }, b.value]),
35
- style: r(g.value)
34
+ class: r(["w-full", { invisible: e(h) }, k.value]),
35
+ style: d(g.value)
36
36
  }, [
37
- (n(!0), s(w, null, x(e(y), (k) => (n(), s("div", {
38
- key: k,
39
- class: d(["mt-2 w-full bg-gray-100 bg-[length:400%_100%] leading-none after:content-['\\00a0']", { "rounded-sm": e(p), "animate-skeleton": e(m) }]),
40
- style: r(_.value)
37
+ (s(!0), o(w, null, S(e(y), (b) => (s(), o("div", {
38
+ key: b,
39
+ class: r(["mt-2 w-full bg-gray-100 bg-[length:400%_100%] leading-none after:content-['\\00a0']", { "rounded-sm": e(p), "animate-skeleton": e(f) }]),
40
+ style: d(_.value)
41
41
  }, null, 6))), 128))
42
- ], 6)) : S("", !0);
42
+ ], 6)) : x("", !0);
43
43
  }
44
44
  }), A = /* @__PURE__ */ z(F, [["__scopeId", "data-v-700c0d24"]]);
45
45
  export {
@@ -1,12 +1,12 @@
1
- import { S as O } from "./SearchApi-ZczKsBb7.js";
2
- import { _ as b, z as E, $ as H, a0 as F, o as d, b as c, d as V, D as S, A as m, ab as v, w as p, I as $, J as T, j as w, Y as A, B as y, f, F as x, G as _, y as C, Z as L, e as g, t as h, aI as D, c as I, x as R } from "./main-C2Q8_T2Y.js";
3
- import { c as P, r as z, g as N } from "./helpers-BVP2Pul1.js";
4
- const q = {
1
+ import { S as O } from "./SearchApi-B39mMGKy.js";
2
+ import { _ as I, N as E, O as H, a1 as F, b as g, d as c, o as d, f as V, R as S, ai as m, an as v, w as p, u as $, j as w, W as T, x as C, e as f, T as y, F as x, n as _, t as h, v as A, al as L, aG as R, c as b, q as D } from "./main-BkjAGG46.js";
3
+ import { g as P, r as N, c as q } from "./helpers-Cf9wqfZh.js";
4
+ const z = {
5
5
  name: "CAutocomplete",
6
6
  components: {
7
- CInput: E
7
+ CInput: F
8
8
  },
9
- mixins: [H, F],
9
+ mixins: [E, H],
10
10
  props: {
11
11
  modelValue: {
12
12
  type: [Number, String],
@@ -190,13 +190,13 @@ const q = {
190
190
  () => this.checkIfReachedTheEndOfScroll(e)
191
191
  );
192
192
  }
193
- this.appendToBody && (this.$data._bodyEl = P(this.$refs.dropdown), this.updateAppendToBody());
193
+ this.appendToBody && (this.$data._bodyEl = q(this.$refs.dropdown), this.updateAppendToBody());
194
194
  },
195
195
  beforeUnmount() {
196
196
  typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener(
197
197
  "resize",
198
198
  this.calcDropdownInViewportVertical
199
- )), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && z(this.$data._bodyEl), clearTimeout(this.timeOutID);
199
+ )), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && N(this.$data._bodyEl), clearTimeout(this.timeOutID);
200
200
  },
201
201
  methods: {
202
202
  /**
@@ -255,7 +255,7 @@ const q = {
255
255
  */
256
256
  getValue(e) {
257
257
  if (e !== null)
258
- return typeof this.customFormatter < "u" ? this.customFormatter(e) : typeof e == "object" ? N(e, this.field) : e;
258
+ return typeof this.customFormatter < "u" ? this.customFormatter(e) : typeof e == "object" ? P(e, this.field) : e;
259
259
  },
260
260
  /**
261
261
  * Check if the scroll list inside the dropdown
@@ -387,10 +387,10 @@ function j(e, t, i, l, s, o) {
387
387
  $(w("div", {
388
388
  ref: "dropdown",
389
389
  class: C([{ "is-opened-top": o.isOpenedTop && !i.appendToBody }, "dropdown-menu"]),
390
- style: A(s.style)
390
+ style: T(s.style)
391
391
  }, [
392
392
  $(w("div", {
393
- style: A(o.contentStyle),
393
+ style: T(o.contentStyle),
394
394
  class: "dropdown-content"
395
395
  }, [
396
396
  o.hasHeaderSlot ? (d(), c("div", M, [
@@ -414,17 +414,17 @@ function j(e, t, i, l, s, o) {
414
414
  y(e.$slots, "footer")
415
415
  ])) : f("", !0)
416
416
  ], 4), [
417
- [T, s.isActive]
417
+ [A, s.isActive]
418
418
  ])
419
419
  ], 6), [
420
- [T, o.isDropdownOpen]
420
+ [A, o.isDropdownOpen]
421
421
  ])
422
422
  ]),
423
423
  _: 3
424
424
  })
425
425
  ], 16);
426
426
  }
427
- const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
427
+ const G = /* @__PURE__ */ I(z, [["render", j]]), X = {
428
428
  i18nOptions: {
429
429
  namespaces: "components",
430
430
  keyPrefix: "account.documentForm.clients"
@@ -432,7 +432,7 @@ const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
432
432
  name: "ClientAutocomplete",
433
433
  components: {
434
434
  SearchApi: O,
435
- CAutocomplete: Y
435
+ CAutocomplete: G
436
436
  },
437
437
  props: {
438
438
  searchEnabled: {
@@ -455,7 +455,7 @@ const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
455
455
  emits: ["input", "setClient", "add"],
456
456
  data() {
457
457
  return {
458
- convertToNewClient: D,
458
+ convertToNewClient: R,
459
459
  results: [],
460
460
  // results when searching for existing endCustomer
461
461
  searchQuery: ""
@@ -472,13 +472,13 @@ const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
472
472
  }));
473
473
  }
474
474
  }
475
- }, J = { style: { "line-height": "1.5" } }, X = { style: { "font-weight": "500" } }, Z = {
475
+ }, Y = { style: { "line-height": "1.5" } }, J = { style: { "font-weight": "500" } }, Z = {
476
476
  class: "text-gray-600",
477
477
  style: { "font-size": "14px" }
478
478
  }, ee = { key: 0 }, te = { key: 0 };
479
479
  function ie(e, t, i, l, s, o) {
480
480
  const a = g("CButton"), n = g("CAutocomplete"), u = g("SearchApi");
481
- return d(), I(u, { "custom-search": { endCustomer: !0 } }, {
481
+ return d(), b(u, { "custom-search": { endCustomer: !0 } }, {
482
482
  default: p(({ fetch: k, isLoading: B }) => [
483
483
  V(n, S({
484
484
  placeholder: e.$t("search.placeholder"),
@@ -494,14 +494,14 @@ function ie(e, t, i, l, s, o) {
494
494
  onSelect: t[1] || (t[1] = (r) => e.$emit("setClient", s.convertToNewClient(r)))
495
495
  }), {
496
496
  default: p(({ option: r }) => [
497
- w("div", J, [
498
- w("div", X, h(r.name || r.email), 1),
497
+ w("div", Y, [
498
+ w("div", J, h(r.name || r.email), 1),
499
499
  w("div", Z, h(r.reference ? `${r.reference} · ` : "") + " " + h(r.workStreet || r.street || " "), 1)
500
500
  ])
501
501
  ]),
502
502
  footer: p(() => [
503
503
  i.searchEnabled && i.showEmpty ? (d(), c("div", ee, [
504
- s.searchQuery && !s.results.length ? (d(), I(a, {
504
+ s.searchQuery && !s.results.length ? (d(), b(a, {
505
505
  key: 0,
506
506
  type: "secondary",
507
507
  pattern: "tertiary",
@@ -510,7 +510,7 @@ function ie(e, t, i, l, s, o) {
510
510
  onClick: t[0] || (t[0] = (r) => e.$emit("add"))
511
511
  }, {
512
512
  default: p(() => [
513
- R(h(e.$t("_common:add")), 1)
513
+ D(h(e.$t("_common:add")), 1)
514
514
  ]),
515
515
  _: 1
516
516
  })) : f("", !0)
@@ -525,8 +525,8 @@ function ie(e, t, i, l, s, o) {
525
525
  _: 1
526
526
  });
527
527
  }
528
- const le = /* @__PURE__ */ b(G, [["render", ie]]);
528
+ const le = /* @__PURE__ */ I(X, [["render", ie]]);
529
529
  export {
530
530
  le as C,
531
- Y as a
531
+ G as a
532
532
  };
@@ -1,11 +1,11 @@
1
- import { C as L } from "./ClientAutocomplete-CHfp4YiV.js";
2
- import { _ as z, aV as j, o as f, b as h, I as Z, aW as G, j as i, ab as N, y, B as Y, A as H, ag as B, ao as K, m as P, ai as J, t as r, d as n, w as a, c as b, f as v, F as O, G as F, x as C, e as g, n as k, ah as Q, H as X, h as _, a as x, g as q, bf as ee, aI as te } from "./main-C2Q8_T2Y.js";
3
- import { C as oe, a as ne, w as E } from "./CDropdownItem-B5rgSee7.js";
4
- import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js";
5
- import { C as ae } from "./CPhoneInput-BUogm59J.js";
6
- import { u as ie } from "./index-B86TZXOh.js";
7
- import { r as se, a as $, e as re } from "./index-BH5vwOzR.js";
8
- import { o as de } from "./omit-DzlbtNCX.js";
1
+ import { C as L } from "./ClientAutocomplete-B_R7zgvM.js";
2
+ import { _ as z, b6 as j, d as h, o as f, u as Z, j as i, 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-BkjAGG46.js";
3
+ import { w as E, C as oe, a as ne } from "./CDropdownItem-B9dja0RC.js";
4
+ import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js";
5
+ import { C as ae } from "./CPhoneInput-DwcIFaqz.js";
6
+ import { u as ie } from "./index-DsvlNA3Q.js";
7
+ import { a as $, r as se, e as re } from "./index-DPlBYqKB.js";
8
+ import { o as de } from "./omit-CvOSNZN7.js";
9
9
  const me = {
10
10
  name: "CRadio",
11
11
  mixins: [j]
@@ -40,7 +40,7 @@ function fe(e, t, s, d, u, l) {
40
40
  ], 42, ue);
41
41
  }
42
42
  const ge = /* @__PURE__ */ z(me, [["render", fe]]);
43
- function W(e) {
43
+ function T(e) {
44
44
  if (typeof e > "u") throw Error("Missing param inputParam");
45
45
  let t = e;
46
46
  Number.isInteger(t) && (t = t.toString());
@@ -53,7 +53,7 @@ function W(e) {
53
53
  }
54
54
  function A(e) {
55
55
  let t = e.replace(/ /g, "");
56
- return t = t.replace(/-/g, ""), !W(t) || (t = [t.slice(0, 6), "-", t.slice(6)].join(""), !t.match(/^(\d{6})-(\d{4})$/)) ? !1 : t;
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
57
  }
58
58
  function V(e) {
59
59
  if (typeof e > "u" || e === null || e === "")
@@ -68,7 +68,7 @@ function V(e) {
68
68
  );
69
69
  parseInt(u, 10) === 19 || parseInt(u, 10) === 20 || (parseInt(u, 10) >= 0 && parseInt(u, 10) <= c ? t = `20${t}` : t = `19${t}`);
70
70
  }
71
- return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 : W(t.substring(2)) ? t : !1;
71
+ return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 : T(t.substring(2)) ? t : !1;
72
72
  }
73
73
  const he = {
74
74
  sv: {
@@ -185,7 +185,7 @@ const he = {
185
185
  }
186
186
  }
187
187
  }
188
- }, { mapFields: ve } = B({
188
+ }, { mapFields: ve } = P({
189
189
  getterType: "forms/getField",
190
190
  mutationType: "forms/updateField"
191
191
  }), ye = {
@@ -197,8 +197,8 @@ const he = {
197
197
  components: {
198
198
  ClientAutocomplete: L,
199
199
  CCheckbox: K,
200
- CDropdown: oe,
201
- CDropdownItem: ne,
200
+ CDropdown: ne,
201
+ CDropdownItem: oe,
202
202
  CField: le,
203
203
  CPhoneInput: ae,
204
204
  CRadio: ge
@@ -313,7 +313,7 @@ const he = {
313
313
  reverseVat: "endCustomer.reverseVat",
314
314
  doUpdateEndCustomer: "endCustomer.doUpdateEndCustomer"
315
315
  }),
316
- ...P({
316
+ ...B({
317
317
  isPosting: "endCustomers/isPosting",
318
318
  companyRegion: "application/companyRegion",
319
319
  feature: "application/feature"
@@ -369,21 +369,21 @@ const he = {
369
369
  }, be = { class: "form-client" }, Ce = { class: "space-between flex flex-wrap items-center pb-6" }, we = {
370
370
  class: "flex-grow",
371
371
  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" } }, Ie = { style: { "font-size": "12px", opacity: "0.7" } }, Se = {
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" } }, Ie = {
373
373
  class: "flex items-center justify-center",
374
374
  style: { "margin-bottom": "calc(2.5 * var(--rem))" }
375
375
  }, Me = { class: "type-toggle" }, Oe = { key: 0 }, Fe = {
376
376
  key: 0,
377
377
  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" }, Ue = { style: { "line-height": "1.25", padding: "4px 0" } }, qe = { style: { "font-size": "12px", opacity: "0.7" } }, Ae = {
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 = {
379
379
  key: 1,
380
380
  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" }, We = { style: { "line-height": "1.25", padding: "4px 0" } }, Te = {
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 = {
382
382
  class: "max-w-[calc(12_*_var(--rem))] truncate",
383
383
  style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
384
384
  }, Le = { style: { "margin-top": "calc(3 * var(--rem))" } };
385
385
  function je(e, t, s, d, u, l) {
386
- const c = g("ClientAutocomplete"), m = g("CField"), p = g("CInput"), I = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), S = g("CDropdownItem"), M = g("CDropdown"), T = g("CCheckbox"), D = g("CRadio");
386
+ const c = g("ClientAutocomplete"), m = g("CField"), p = g("CInput"), S = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), I = g("CDropdownItem"), M = g("CDropdown"), W = g("CCheckbox"), D = g("CRadio");
387
387
  return f(), h("div", be, [
388
388
  s.simpleForm ? (f(), h("form", {
389
389
  key: 0,
@@ -422,7 +422,7 @@ function je(e, t, s, d, u, l) {
422
422
  ]),
423
423
  _: 1
424
424
  }, 8, ["label", "validator", "messages"]),
425
- n(I, null, {
425
+ n(S, null, {
426
426
  default: a(() => [
427
427
  l.isIndivid ? v("", !0) : (f(), b(m, {
428
428
  key: 0,
@@ -501,18 +501,18 @@ function je(e, t, s, d, u, l) {
501
501
  }, 8, ["icon-left"])
502
502
  ]),
503
503
  default: a(() => [
504
- (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(S, {
504
+ (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(I, {
505
505
  key: o,
506
506
  "icon-left": o === "signee" ? "pen-tool" : "eye",
507
507
  "icon-props": {
508
508
  stroke: "hsl(0, 0%, 50%)"
509
509
  },
510
- onClick: (U) => e.$emit("update:document-role", o)
510
+ onClick: (q) => e.$emit("update:document-role", o)
511
511
  }, {
512
512
  default: a(() => [
513
513
  i("div", Ne, [
514
514
  i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
515
- i("div", Ie, r(e.$t(`_common:documentRole.${o}.label`)), 1)
515
+ i("div", Se, r(e.$t(`_common:documentRole.${o}.label`)), 1)
516
516
  ])
517
517
  ]),
518
518
  _: 2
@@ -550,7 +550,7 @@ function je(e, t, s, d, u, l) {
550
550
  key: 1,
551
551
  class: y({ "column-only": e.windowWidth <= 600 })
552
552
  }, [
553
- i("div", Se, [
553
+ i("div", Ie, [
554
554
  i("div", Me, [
555
555
  i("div", {
556
556
  class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
@@ -607,7 +607,7 @@ function je(e, t, s, d, u, l) {
607
607
  ]),
608
608
  _: 1
609
609
  }),
610
- n(I, null, {
610
+ n(S, null, {
611
611
  default: a(() => [
612
612
  e.type && !l.isIndivid ? (f(), b(m, {
613
613
  key: 0,
@@ -632,7 +632,7 @@ function je(e, t, s, d, u, l) {
632
632
  style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
633
633
  }, {
634
634
  default: a(() => [
635
- n(T, {
635
+ n(W, {
636
636
  modelValue: e.reverseVat,
637
637
  "onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
638
638
  size: "normal"
@@ -761,7 +761,7 @@ function je(e, t, s, d, u, l) {
761
761
  ]),
762
762
  _: 1
763
763
  }),
764
- n(I, null, {
764
+ n(S, null, {
765
765
  default: a(() => [
766
766
  e.type && e.separateWorkAddress ? (f(), h("div", Oe, [
767
767
  n(m, {
@@ -847,18 +847,18 @@ function je(e, t, s, d, u, l) {
847
847
  }, 8, ["icon-left"])
848
848
  ]),
849
849
  default: a(() => [
850
- (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(S, {
850
+ (f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(I, {
851
851
  key: o,
852
852
  "icon-left": o === "signee" ? "pen-tool" : "eye",
853
853
  "icon-props": {
854
854
  stroke: "hsl(0, 0%, 50%)"
855
855
  },
856
- onClick: (U) => e.$emit("update:document-role", o)
856
+ onClick: (q) => e.$emit("update:document-role", o)
857
857
  }, {
858
858
  default: a(() => [
859
- i("div", Ue, [
859
+ i("div", qe, [
860
860
  i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
861
- i("div", qe, r(e.$t(`_common:documentRole.${o}.label`)), 1)
861
+ i("div", Ue, r(e.$t(`_common:documentRole.${o}.label`)), 1)
862
862
  ])
863
863
  ]),
864
864
  _: 2
@@ -891,17 +891,17 @@ function je(e, t, s, d, u, l) {
891
891
  })
892
892
  ]),
893
893
  default: a(() => [
894
- (f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(S, {
894
+ (f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(I, {
895
895
  key: o,
896
- onClick: (U) => e.$emit("update:answer-method", {
896
+ onClick: (q) => e.$emit("update:answer-method", {
897
897
  ...s.answerMethod,
898
898
  accept: o
899
899
  })
900
900
  }, {
901
901
  default: a(() => [
902
- i("div", We, [
902
+ i("div", Te, [
903
903
  i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
904
- i("div", Te, r(e.$t(`signMethod.${o}.content`)), 1)
904
+ i("div", We, r(e.$t(`signMethod.${o}.content`)), 1)
905
905
  ])
906
906
  ]),
907
907
  _: 2
@@ -930,7 +930,7 @@ function je(e, t, s, d, u, l) {
930
930
  ], 2))
931
931
  ]);
932
932
  }
933
- const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ge } = B({
933
+ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ge } = P({
934
934
  getterType: "forms/getField",
935
935
  mutationType: "forms/updateField"
936
936
  }), Ye = {
@@ -1020,16 +1020,16 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1020
1020
  ...Ge({
1021
1021
  endCustomer: "endCustomer"
1022
1022
  }),
1023
- ...Q("forms", {
1023
+ ...X("forms", {
1024
1024
  formData: (e) => e.document2
1025
1025
  }),
1026
- ...P({
1026
+ ...B({
1027
1027
  can: "application/can",
1028
1028
  feature: "application/feature",
1029
1029
  defaultClientType: "endCustomers/defaultClientType"
1030
1030
  }),
1031
1031
  validateOrgNo() {
1032
- return !!(this.feature("bankId") || this.isPublicForm && X[_.brand].defaultRegion === "SE");
1032
+ return !!(this.feature("bankId") || this.isPublicForm && ee[te.brand].defaultRegion === "SE");
1033
1033
  },
1034
1034
  existsOnDocument() {
1035
1035
  return !!k(this.formData, `clients[${this.documentClientIndex}]`);
@@ -1055,13 +1055,13 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1055
1055
  );
1056
1056
  },
1057
1057
  methods: {
1058
- ...x({
1059
- saveClient: q.FORM_SUBMIT_ENDCUSTOMER,
1060
- showMessage: q.SHOW_MESSAGE
1058
+ ...Q({
1059
+ saveClient: U.FORM_SUBMIT_ENDCUSTOMER,
1060
+ showMessage: U.SHOW_MESSAGE
1061
1061
  }),
1062
1062
  omit: de,
1063
1063
  loadForm(e = {}) {
1064
- this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = ee({
1064
+ this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = x({
1065
1065
  type: this.defaultClientType(),
1066
1066
  ...e
1067
1067
  });
@@ -1083,7 +1083,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
1083
1083
  }
1084
1084
  this.setFormValue({
1085
1085
  key: `clients[${this.documentClientIndex}]`,
1086
- value: te(
1086
+ value: _(
1087
1087
  { ...this.endCustomer, ...e && { id: e } },
1088
1088
  { ...this.storedNewClient }
1089
1089
  )