@cling-se/widget 0.19.3 → 0.19.5

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 (127) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/{AddClientCallout-DuuNDL4D.js → AddClientCallout-B3NbV9vX.js} +10 -10
  3. package/dist/{AnswerModal-D3EqaCFZ.js → AnswerModal-C_at-56v.js} +3 -3
  4. package/dist/{AttachmentItem-kRFxlzlC.js → AttachmentItem-C4kyomn3.js} +19 -19
  5. package/dist/{BaseUpload-BxYInU7o.js → BaseUpload-Z3O2bebR.js} +2 -2
  6. package/dist/{BlockMedia--73N_Of0.js → BlockMedia-BSGtFCsS.js} +14 -14
  7. package/dist/{CCallout-ChKgPAm2.js → CCallout-DRBCakh2.js} +2 -2
  8. package/dist/{CCurrencyDropdown-GcQqVqCs.js → CCurrencyDropdown-CyFge_fD.js} +10 -10
  9. package/dist/{CDropdownItem-CrGOya-D.js → CDropdownItem-BWmAQwpG.js} +20 -20
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CyUMgjqE.js → CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js} +59 -59
  11. package/dist/{CPhoneFormat-d9r8v4kT.js → CPhoneFormat-D-BGsI3p.js} +1 -1
  12. package/dist/{CPhoneInput-DbDLU0AC.js → CPhoneInput-Dl7BSG8y.js} +34 -34
  13. package/dist/{CPriceInput-BqOw7bdS.js → CPriceInput-C8Os9b3V.js} +5 -5
  14. package/dist/{CSelect-BwpgSn0z.js → CSelect-DXAAKhB6.js} +6 -6
  15. package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C3CzyV_p.js → CSkeleton.vue_vue_type_script_setup_true_lang-D_ZP_7FL.js} +1 -1
  16. package/dist/{ClientAutocomplete-CvpqyHTG.js → ClientAutocomplete-0XPP0tZr.js} +19 -19
  17. package/dist/{ClientModal-CYTMaWid.js → ClientModal-Ddv5YiOD.js} +24 -24
  18. package/dist/{ColorPicker-CEpFbxOm.js → ColorPicker-ClWlJZqh.js} +17 -17
  19. package/dist/{CompanyModal-BN3P5pxH.js → CompanyModal-CdisHhTQ.js} +10 -10
  20. package/dist/{ContentWrapper-CxL1K8Pf.js → ContentWrapper-BZ_ff5l9.js} +20 -22
  21. package/dist/{CoverBlockSettings-buQlTBr8.js → CoverBlockSettings-C3F4jTwa.js} +33 -33
  22. package/dist/{DocAnswer-DniRIWLM.js → DocAnswer-BkbWkje5.js} +2 -2
  23. package/dist/{DocDetails-DQlItuAy.js → DocDetails-DxUXsbDV.js} +57 -57
  24. package/dist/{DocForm-DPnYrMM6.js → DocForm-CABBteE8.js} +26 -26
  25. package/dist/{DocFormSend-DDWp03Z4.js → DocFormSend-xGIxXjxv.js} +2 -2
  26. package/dist/{DocLinks-B_WHyJXJ.js → DocLinks-D01zyA-z.js} +2 -2
  27. package/dist/{DocModalBase-DMoFbE_V.js → DocModalBase-DfrPL4tZ.js} +1 -1
  28. package/dist/{DocPrint-CJnCR4sj.js → DocPrint-BSKYDCQc.js} +11 -11
  29. package/dist/{DocReceipt-CLEzesSd.js → DocReceipt-D5Oqb1cC.js} +12 -12
  30. package/dist/{DocSendReminder-eVB0EpW3.js → DocSendReminder-IbCLg9tW.js} +13 -13
  31. package/dist/{DocTextEditor-DiiBwSqL.js → DocTextEditor-BVba4QPz.js} +8 -8
  32. package/dist/{DocTimeline-bTf4PXFt.js → DocTimeline-CaX19zwg.js} +19 -19
  33. package/dist/{DocumentClient-BliWFKWD.js → DocumentClient-DSQnO5KJ.js} +5 -5
  34. package/dist/{DocumentLayout-BYF8MkQ6.js → DocumentLayout-CkNcKcB_.js} +31 -31
  35. package/dist/{DocumentLogotype-CoAoOKFT.js → DocumentLogotype-DAVtl6S_.js} +4 -4
  36. package/dist/{DocumentVoided-BoE_3xZ-.js → DocumentVoided-DZYqqkrE.js} +1 -1
  37. package/dist/{EmbedInput-BY9Tk0Fn.js → EmbedInput-BpVkRhg5.js} +8 -8
  38. package/dist/{EmbedSettings-o4XPxFEg.js → EmbedSettings-BHjex6QD.js} +3 -3
  39. package/dist/{ErrorCallout-YB_Cq8zQ.js → ErrorCallout-B9TlMH-g.js} +1 -1
  40. package/dist/{FilePreviewModal-Bb88xu1a.js → FilePreviewModal-DP6yokyq.js} +13 -13
  41. package/dist/{Flag-BxyVrkyQ.js → Flag-D3GdVwWB.js} +1 -1
  42. package/dist/{HeaderSettings-bLIJeluc.js → HeaderSettings-sb4vPDsi.js} +35 -35
  43. package/dist/{ImageSelectModal-BvJoFbVg.js → ImageSelectModal-CicYONc-.js} +3 -3
  44. package/dist/{ImageUploadWrapper-Cg5PXmyH.js → ImageUploadWrapper-CLq06imX.js} +2 -2
  45. package/dist/{Index-DxOS1Bcc.js → Index--erm1oIh.js} +4 -4
  46. package/dist/{Index-7wOqPn5F.js → Index-0JuAv1tp.js} +16 -16
  47. package/dist/Index-0imHv6b4.js +52 -0
  48. package/dist/{Index-BfTkhsEB.js → Index-2jg0DL-m.js} +4 -4
  49. package/dist/{Index-8buSki3l.js → Index-6H0VT88W.js} +1 -1
  50. package/dist/{Index-BBIJa9tx.js → Index-AjcnSKQD.js} +19 -19
  51. package/dist/Index-B5zszB2v.js +4 -0
  52. package/dist/{Index-BHE3BADD.js → Index-BHvpY8xR.js} +2 -2
  53. package/dist/{Index-Y--RuSty.js → Index-BIrwUJlj.js} +12 -12
  54. package/dist/{Index-CKm-Ab2J.js → Index-BU2qksFA.js} +3 -3
  55. package/dist/{Index-DaDw8sm-.js → Index-BWTeXf8h.js} +4 -4
  56. package/dist/{Index-Cfuzo8uM.js → Index-Be0qeiZi.js} +10 -10
  57. package/dist/{Index-yczwn2__.js → Index-BePivEDQ.js} +3 -3
  58. package/dist/{Index-PIl16ugG.js → Index-Bf3O-9-j.js} +6 -6
  59. package/dist/{Index-CmKBuzvS.js → Index-BpObvjSu.js} +5 -5
  60. package/dist/{Index-D6qezTjd.js → Index-BrIFaQcB.js} +13 -13
  61. package/dist/{Index-tSL4w68e.js → Index-BsM0XvZj.js} +24 -23
  62. package/dist/{Index-u8OyhXD6.js → Index-BtECdggQ.js} +5 -5
  63. package/dist/{Index-4EhAq9jD.js → Index-CmDRJ5Xr.js} +17 -17
  64. package/dist/{Index-D0m02lsA.js → Index-CoadaoP0.js} +1 -1
  65. package/dist/{Index-nbUT4Y0t.js → Index-CpGzRzMp.js} +3 -3
  66. package/dist/{Index-Bpz-Fyp-.js → Index-CzqNrUn3.js} +2 -2
  67. package/dist/{Index-B9QJAmKi.js → Index-DGLmjotr.js} +2 -2
  68. package/dist/{Index-I_htzZi9.js → Index-DH9dMzsw.js} +6 -6
  69. package/dist/{Index-B1W3BsnU.js → Index-DO8qwrXi.js} +10 -10
  70. package/dist/{Index-CLmpmEm1.js → Index-DPF_0b3a.js} +14 -15
  71. package/dist/{Index-DA_DXCrr.js → Index-DdlkzMzM.js} +22 -22
  72. package/dist/{Index-Btz58lgU.js → Index-DijI5XXh.js} +2 -2
  73. package/dist/{Index-2i28IE9s.js → Index-DnnRIESN.js} +7 -7
  74. package/dist/{Index-DFutxc_k.js → Index-Dv0eryvg.js} +4 -4
  75. package/dist/{Index-Sdko3L9J.js → Index-KZslz-16.js} +23 -24
  76. package/dist/{Index-BV5EPUqw.js → Index-RhHHrJtM.js} +6 -7
  77. package/dist/{Index-BVvlz0QZ.js → Index-SXJlaLRr.js} +19 -19
  78. package/dist/{Index-BPkIQhtP.js → Index-szvZl8G-.js} +4 -4
  79. package/dist/{Index.vue_vue_type_script_lang-DQvhsOS6.js → Index.vue_vue_type_script_lang-CXjOi3FM.js} +2 -2
  80. package/dist/{InputToggleRow-d20mUVX2.js → InputToggleRow-3992FkvA.js} +5 -5
  81. package/dist/{ManualPopover-Cj5mxzND.js → ManualPopover-UiHhIKuw.js} +5 -5
  82. package/dist/{MediaWrapper-DWUR2K0S.js → MediaWrapper-BlaBWAWe.js} +5 -5
  83. package/dist/{NotBindingText-Dj7llcNG.js → NotBindingText-C14r7OLr.js} +2 -2
  84. package/dist/{PackageGroup-BNuMEute.js → PackageGroup-ClZiyb95.js} +23 -23
  85. package/dist/{PdfTerms-DdHFdJF8.js → PdfTerms-CbVKGNxc.js} +6 -6
  86. package/dist/{PdfViewer-w58AEZEU.js → PdfViewer-B_7DfQr7.js} +59 -59
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-DAy6tOo4.js → PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js} +1 -1
  88. package/dist/{PriceHeader-BBSS5378.js → PriceHeader-DRkCMuGD.js} +74 -74
  89. package/dist/{SearchApi-DiNXQk3K.js → SearchApi-6-uNsMl8.js} +3 -3
  90. package/dist/{SendForm-CRCrqy3V.js → SendForm-DnwHPbWV.js} +13 -13
  91. package/dist/{Setup-ClnyQJWX.js → Setup-Dz3ZCvFw.js} +1 -1
  92. package/dist/{SmartList-ICs2gnpw.js → SmartList-7RooD2fY.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DJO7tWIs.js → Sortable.vue_vue_type_script_setup_true_lang-cAzUeXVM.js} +92 -92
  94. package/dist/{TermsSettings-BDBrMOTk.js → TermsSettings-BEB2t3Ut.js} +29 -29
  95. package/dist/{ThemeColorRow-ye4CbnQe.js → ThemeColorRow-XE9QcVAy.js} +8 -8
  96. package/dist/{ToggleBinding-CCVOOpHC.js → ToggleBinding-BeXQfpcK.js} +4 -4
  97. package/dist/{UploadModal-CE3Gyz8g.js → UploadModal-pRlJXk-Y.js} +12 -12
  98. package/dist/{VideoPlayerInput-DcYaE3Xn.js → VideoPlayerInput-qankN5Ed.js} +7 -7
  99. package/dist/{VideoPlayerSettings-DTP_f2k2.js → VideoPlayerSettings-WijGYtE2.js} +2 -2
  100. package/dist/{VideoSelectModal-D4VpAg8Z.js → VideoSelectModal-Dhb7CmVu.js} +10 -10
  101. package/dist/{focusDrawerMixin-Dmt0M_ez.js → focusDrawerMixin-DELQ4Leq.js} +1 -1
  102. package/dist/{formDrawerState-BTI6RBrh.js → formDrawerState-D_OOByIg.js} +1 -1
  103. package/dist/{helpers-BipYFMq7.js → helpers-BnYWgq30.js} +1 -1
  104. package/dist/{index-BsNrnPKD.js → index-6175cimw.js} +5 -5
  105. package/dist/{index-CrYE_wD5.js → index-BGFTOrwb.js} +69 -77
  106. package/dist/{index-CAX6ZePf.js → index-BIWUM14f.js} +1 -1
  107. package/dist/{index-BLB7xfoK.js → index-CFD_4fv_.js} +41 -41
  108. package/dist/{index-mN_zKU2T.js → index-DRINkuNg.js} +7 -18
  109. package/dist/{index-k3WjZPJe.js → index-KcSRVleg.js} +26 -26
  110. package/dist/{index-Bei9XuEH.js → index-P4A85Ytd.js} +27 -27
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +145 -145
  113. package/dist/{main-C3pW_mbm.js → main-q_EWffDQ.js} +9169 -9201
  114. package/dist/{mapFormMixin-CxDDheFN.js → mapFormMixin-DjPlsXfr.js} +15 -15
  115. package/dist/omit-DWur9Ujv.js +56 -0
  116. package/dist/{publicSenderState-CDeVVN6w.js → publicSenderState-BkZVvtJm.js} +1 -1
  117. package/dist/{splitpanes-Co3TdG3A.js → splitpanes-BR5qxnsj.js} +1 -1
  118. package/dist/{template-CERxPxb1.js → template-CQlJbqXR.js} +1 -1
  119. package/dist/{tippy.esm-x-zxHTNy.js → tippy.esm-BABwSp3j.js} +7 -7
  120. package/dist/{useTermsModal-C01kFCTx.js → useTermsModal-Bj2B-TdQ.js} +6 -6
  121. package/dist/{utils-BIrpSTl7.js → utils-C53ntVIe.js} +1 -1
  122. package/dist/{validation-uD43rMVf.js → validation-u_PNxOm8.js} +2 -2
  123. package/dist/widget.css +1 -1
  124. package/package.json +5 -5
  125. package/dist/Index-C8LrEVrS.js +0 -52
  126. package/dist/Index-CtDVS-ts.js +0 -4
  127. package/dist/omit-CCSRNlMn.js +0 -56
@@ -1,5 +1,5 @@
1
- import { i as M, a as _ } from "./helpers-BipYFMq7.js";
2
- import { F as f, ah as y, aJ as F, aK as k, e as C, _ as v, o as i, b as r, n as u, S as d, B as m, v as b, f as h, c as w, w as S, h as z, i as p, $ as B, j as $ } from "./main-C3pW_mbm.js";
1
+ import { i as S, a as _ } from "./helpers-BnYWgq30.js";
2
+ import { F as f, ay as g, aM as F, aN as k, e as C, _ as v, o as i, b as r, n as u, K as d, H as m, v as b, f as h, c as w, w as M, h as z, i as p, L as B, j as L } from "./main-q_EWffDQ.js";
3
3
  const T = {
4
4
  name: "CFieldBody",
5
5
  inject: {
@@ -19,28 +19,28 @@ const T = {
19
19
  }
20
20
  },
21
21
  render() {
22
- let t = !0, e = typeof this.$slots.default == "function" ? this.$slots.default() : this.$slots.default;
23
- return e != null && e.length === 1 && e[0].type === f && (e = e[0].children), y(
22
+ let s = !0, e = typeof this.$slots.default == "function" ? this.$slots.default() : this.$slots.default;
23
+ return e != null && e.length === 1 && e[0].type === f && (e = e[0].children), g(
24
24
  "div",
25
25
  { class: "field-body" },
26
26
  {
27
- default: () => e != null && e.map((s) => {
28
- if (s.type === F || s.type === k)
29
- return s;
27
+ default: () => e != null && e.map((t) => {
28
+ if (t.type === F || t.type === k)
29
+ return t;
30
30
  let o;
31
- return t && (o = this.message, t = !1), y(
31
+ return s && (o = this.message, s = !1), g(
32
32
  this.parent ? this.parent.$.type : C("c-field"),
33
33
  {
34
34
  type: this.type,
35
35
  message: o
36
36
  },
37
- () => s
37
+ () => t
38
38
  );
39
39
  })
40
40
  }
41
41
  );
42
42
  }
43
- }, L = {
43
+ }, $ = {
44
44
  name: "CField",
45
45
  components: {
46
46
  CFieldBody: T
@@ -122,10 +122,10 @@ const T = {
122
122
  */
123
123
  newPosition() {
124
124
  if (this.position === void 0) return;
125
- const t = this.position.split("-");
126
- if (t.length < 1) return;
125
+ const s = this.position.split("-");
126
+ if (s.length < 1) return;
127
127
  const e = this.grouped ? "is-grouped-" : "has-addons-";
128
- if (this.position) return e + t[1];
128
+ if (this.position) return e + s[1];
129
129
  },
130
130
  /**
131
131
  * Formatted message in case it's an array
@@ -134,19 +134,19 @@ const T = {
134
134
  formattedMessage() {
135
135
  if (typeof this.newMessage == "string")
136
136
  return this.newMessage;
137
- const t = [];
137
+ const s = [];
138
138
  if (Array.isArray(this.newMessage))
139
139
  this.newMessage.forEach((e) => {
140
140
  if (typeof e == "string")
141
- t.push(e);
141
+ s.push(e);
142
142
  else
143
- for (const s in e)
144
- e[s] && t.push(s);
143
+ for (const t in e)
144
+ e[t] && s.push(t);
145
145
  });
146
146
  else
147
147
  for (const e in this.newMessage)
148
- this.newMessage[e] && t.push(e);
149
- return t.filter((e) => !!e).join(" <br> ");
148
+ this.newMessage[e] && s.push(e);
149
+ return s.filter((e) => !!e).join(" <br> ");
150
150
  },
151
151
  hasLabel() {
152
152
  return this.label || this.$slots.label;
@@ -156,14 +156,14 @@ const T = {
156
156
  /**
157
157
  * Set internal type when prop change.
158
158
  */
159
- type(t) {
160
- this.newType = t;
159
+ type(s) {
160
+ this.newType = s;
161
161
  },
162
162
  /**
163
163
  * Set internal message when prop change.
164
164
  */
165
- message(t) {
166
- JSON.stringify(t) !== JSON.stringify(this.newMessage) && (this.newMessage = t);
165
+ message(s) {
166
+ JSON.stringify(s) !== JSON.stringify(this.newMessage) && (this.newMessage = s);
167
167
  }
168
168
  },
169
169
  mounted() {
@@ -182,80 +182,80 @@ const T = {
182
182
  if (this.grouped) return "is-grouped";
183
183
  if (this.hasAddons()) return "has-addons";
184
184
  },
185
- getSlotNodes(t) {
186
- return t.flatMap(
187
- (e) => M(e) ? this.getSlotNodes(e.children) : [e]
185
+ getSlotNodes(s) {
186
+ return s.flatMap(
187
+ (e) => S(e) ? this.getSlotNodes(e.children) : [e]
188
188
  );
189
189
  },
190
190
  hasAddons() {
191
- let t = 0;
192
- return this.$slots.default && (t = this.getSlotNodes(this.$slots.default()).reduce(
193
- (e, s) => _(s) ? e + 1 : e,
191
+ let s = 0;
192
+ return this.$slots.default && (s = this.getSlotNodes(this.$slots.default()).reduce(
193
+ (e, t) => _(t) ? e + 1 : e,
194
194
  0
195
- )), t > 1 && this.addons && !this.horizontal;
195
+ )), s > 1 && this.addons && !this.horizontal;
196
196
  },
197
197
  // called by a number input if it is a direct child.
198
- wrapNumberinput({ controlsPosition: t, size: e }) {
199
- const s = ["has-numberinput"];
200
- t && s.push(`has-numberinput-${t}`), e && s.push(`has-numberinput-${e}`), this.numberInputClasses = s;
198
+ wrapNumberinput({ controlsPosition: s, size: e }) {
199
+ const t = ["has-numberinput"];
200
+ s && t.push(`has-numberinput-${s}`), e && t.push(`has-numberinput-${e}`), this.numberInputClasses = t;
201
201
  }
202
202
  }
203
203
  }, N = ["for"], A = ["for"], j = ["innerHTML"];
204
- function x(t, e, s, o, n, a) {
204
+ function O(s, e, t, o, n, a) {
205
205
  const l = C("CFieldBody");
206
206
  return i(), r("div", {
207
207
  class: u([[a.rootClasses, a.fieldType()], "field"])
208
208
  }, [
209
- s.horizontal ? (i(), r("div", {
209
+ t.horizontal ? (i(), r("div", {
210
210
  key: 0,
211
- class: u([[s.customClass, n.fieldLabelSize], "field-label"])
211
+ class: u([[t.customClass, n.fieldLabelSize], "field-label"])
212
212
  }, [
213
213
  a.hasLabel ? (i(), r("label", {
214
214
  key: 0,
215
- for: s.labelFor,
216
- class: u([s.customClass, "label truncate-text"])
215
+ for: t.labelFor,
216
+ class: u([t.customClass, "label w-full truncate"])
217
217
  }, [
218
- t.$slots.label ? d(t.$slots, "label", { key: 0 }) : (i(), r(f, { key: 1 }, [
219
- m(b(s.label), 1)
218
+ s.$slots.label ? d(s.$slots, "label", { key: 0 }) : (i(), r(f, { key: 1 }, [
219
+ m(b(t.label), 1)
220
220
  ], 64))
221
221
  ], 10, N)) : h("", !0)
222
222
  ], 2)) : (i(), r(f, { key: 1 }, [
223
223
  a.hasLabel ? (i(), r("label", {
224
224
  key: 0,
225
- for: s.labelFor,
226
- class: u([s.customClass, "label truncate-text"])
225
+ for: t.labelFor,
226
+ class: u([t.customClass, "label w-full truncate"])
227
227
  }, [
228
- t.$slots.label ? d(t.$slots, "label", { key: 0 }) : (i(), r(f, { key: 1 }, [
229
- m(b(s.label), 1)
228
+ s.$slots.label ? d(s.$slots, "label", { key: 0 }) : (i(), r(f, { key: 1 }, [
229
+ m(b(t.label), 1)
230
230
  ], 64))
231
231
  ], 10, A)) : h("", !0)
232
232
  ], 64)),
233
- s.horizontal ? (i(), w(l, {
233
+ t.horizontal ? (i(), w(l, {
234
234
  key: 2,
235
235
  message: n.newMessage ? a.formattedMessage : "",
236
236
  type: n.newType
237
237
  }, {
238
- default: S(() => [
239
- d(t.$slots, "default")
238
+ default: M(() => [
239
+ d(s.$slots, "default")
240
240
  ]),
241
241
  _: 3
242
- }, 8, ["message", "type"])) : d(t.$slots, "default", { key: 3 }),
243
- n.newMessage && !s.horizontal ? (i(), r("p", {
242
+ }, 8, ["message", "type"])) : d(s.$slots, "default", { key: 3 }),
243
+ n.newMessage && !t.horizontal ? (i(), r("p", {
244
244
  key: 4,
245
245
  class: u([n.newType, "help"]),
246
246
  innerHTML: a.formattedMessage
247
247
  }, null, 10, j)) : h("", !0)
248
248
  ], 2);
249
249
  }
250
- const O = /* @__PURE__ */ v(L, [["render", x]]), I = /* @__PURE__ */ z({
250
+ const P = /* @__PURE__ */ v($, [["render", O]]), H = /* @__PURE__ */ z({
251
251
  __name: "CFormField",
252
252
  props: {
253
253
  label: {},
254
254
  validator: {},
255
255
  messages: {}
256
256
  },
257
- setup(t) {
258
- const e = t, s = p(() => {
257
+ setup(s) {
258
+ const e = s, t = p(() => {
259
259
  var a, l;
260
260
  if ((a = e.validator) != null && a.$error)
261
261
  return "is-danger";
@@ -268,18 +268,18 @@ const O = /* @__PURE__ */ v(L, [["render", x]]), I = /* @__PURE__ */ z({
268
268
  if ((l = e.validator) != null && l.$dirty)
269
269
  return "text-green-500";
270
270
  }), n = p(() => {
271
- var c, g;
271
+ var c, y;
272
272
  if (!((c = e.validator) != null && c.$errors.length)) return "";
273
273
  const l = e.validator.$errors[0].$validator;
274
- return ((g = e.messages) == null ? void 0 : g[l]) ?? "";
274
+ return ((y = e.messages) == null ? void 0 : y[l]) ?? "";
275
275
  });
276
- return (a, l) => (i(), w($(O), B({ ...a.$attrs, ...a.$props }, {
276
+ return (a, l) => (i(), w(L(P), B({ ...a.$attrs, ...a.$props }, {
277
277
  label: a.label,
278
278
  "custom-class": o.value,
279
- type: s.value,
279
+ type: t.value,
280
280
  message: n.value
281
281
  }), {
282
- default: S(() => [
282
+ default: M(() => [
283
283
  d(a.$slots, "default")
284
284
  ]),
285
285
  _: 3
@@ -287,6 +287,6 @@ const O = /* @__PURE__ */ v(L, [["render", x]]), I = /* @__PURE__ */ z({
287
287
  }
288
288
  });
289
289
  export {
290
- O as C,
291
- I as _
290
+ P as C,
291
+ H as _
292
292
  };
@@ -1,4 +1,4 @@
1
- import { af as o, _ as n, S as r, s as a, v as s } from "./main-C3pW_mbm.js";
1
+ import { ax as o, _ as n, K as r, s as a, v as s } from "./main-q_EWffDQ.js";
2
2
  const h = {
3
3
  name: "CPhoneFormat",
4
4
  props: {
@@ -1,19 +1,19 @@
1
- import { _ as w, Y as B, Z as S, o as m, c as y, w as i, s as V, d as o, B as z, v as p, b as F, k as $, F as k, $ as I, e as s } from "./main-C3pW_mbm.js";
2
- import { C as D, a as v } from "./CDropdownItem-CrGOya-D.js";
3
- import { C as j } from "./CFormField.vue_vue_type_script_setup_true_lang-CyUMgjqE.js";
4
- import { F as K } from "./Flag-BxyVrkyQ.js";
5
- import { S as L } from "./SmartList-ICs2gnpw.js";
6
- import { r as n } from "./regions-BdZt9Srn.js";
1
+ import { _ as w, I as B, a0 as S, o as m, c as y, w as i, s as V, d as o, H as z, v as p, b as F, k as I, F as k, L as $, e as s } from "./main-q_EWffDQ.js";
2
+ import { C as D, a as v } from "./CDropdownItem-BWmAQwpG.js";
3
+ import { C as L } from "./CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js";
4
+ import { F as j } from "./Flag-D3GdVwWB.js";
5
+ import { S as K } from "./SmartList-7RooD2fY.js";
6
+ import { r as l } from "./regions-BdZt9Srn.js";
7
7
  const N = {
8
8
  name: "CPhoneInput",
9
9
  components: {
10
- Flag: K,
10
+ Flag: j,
11
11
  CInput: B,
12
12
  CDropdown: D,
13
13
  CDropdownItem: v,
14
14
  CButton: S,
15
- CField: j,
16
- SmartList: L
15
+ CField: L,
16
+ SmartList: K
17
17
  },
18
18
  props: {
19
19
  modelValue: {
@@ -48,7 +48,7 @@ const N = {
48
48
  },
49
49
  computed: {
50
50
  defaultPrefix() {
51
- return n[this.internalRegion].callingCode;
51
+ return l[this.internalRegion].callingCode;
52
52
  },
53
53
  currentRegion() {
54
54
  return this.getRegionByCallingCode(this.prefix);
@@ -57,23 +57,23 @@ const N = {
57
57
  get() {
58
58
  if (this.region) return this.region;
59
59
  if (this.modelValue) {
60
- const e = (Object.keys(n) || []).find(
61
- (t) => n[t].callingCode && this.modelValue && this.modelValue.startsWith(n[t].callingCode)
60
+ const e = (Object.keys(l) || []).find(
61
+ (t) => l[t].callingCode && this.modelValue && this.modelValue.startsWith(l[t].callingCode)
62
62
  );
63
63
  if (e) return e;
64
64
  }
65
65
  return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
66
66
  },
67
67
  set(e) {
68
- this.$emit("update:region", e), this.updateValue({ prefix: n[e].callingCode });
68
+ this.$emit("update:region", e), this.updateValue({ prefix: l[e].callingCode });
69
69
  }
70
70
  },
71
71
  prefix() {
72
72
  if (!this.modelValue) return this.internalPrefix || this.defaultPrefix;
73
- const e = (Object.keys(n) || []).find(
74
- (t) => n[t].callingCode && this.modelValue && this.modelValue.startsWith(n[t].callingCode)
73
+ const e = (Object.keys(l) || []).find(
74
+ (t) => l[t].callingCode && this.modelValue && this.modelValue.startsWith(l[t].callingCode)
75
75
  );
76
- return e ? n[e].callingCode : this.defaultPrefix;
76
+ return e ? l[e].callingCode : this.defaultPrefix;
77
77
  },
78
78
  phone: {
79
79
  get() {
@@ -84,27 +84,27 @@ const N = {
84
84
  }
85
85
  },
86
86
  sortedRegions() {
87
- return (Object.keys(n) || []).map((e) => ({
87
+ return (Object.keys(l) || []).map((e) => ({
88
88
  key: e,
89
- title: `${n[e].name} (${e})`,
90
- callingCode: n[e].callingCode
89
+ title: `${l[e].name} (${e})`,
90
+ callingCode: l[e].callingCode
91
91
  })).sort((e, t) => e.title.localeCompare(t.title));
92
92
  }
93
93
  },
94
94
  methods: {
95
95
  getRegionByCallingCode(e) {
96
- return e ? (Object.keys(n) || []).find(
97
- (l) => e === n[l].callingCode
96
+ return e ? (Object.keys(l) || []).find(
97
+ (n) => e === l[n].callingCode
98
98
  ) : null;
99
99
  },
100
100
  updateValue({ prefix: e, phone: t }) {
101
- const l = e !== void 0 ? e : this.prefix || "", h = t !== void 0 ? t : this.phone || "", d = `${l}${h}`;
102
- d !== l ? (this.$emit("update:modelValue", d), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = l, this.$emit("update:modelValue", ""));
101
+ const n = e !== void 0 ? e : this.prefix || "", h = t !== void 0 ? t : this.phone || "", d = `${n}${h}`;
102
+ d !== n ? (this.$emit("update:modelValue", d), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = n, this.$emit("update:modelValue", ""));
103
103
  }
104
104
  }
105
- }, O = { class: "control" }, Q = { class: "truncate-text" };
106
- function W(e, t, l, h, d, r) {
107
- const g = s("Flag"), x = s("CButton"), c = s("CInput"), b = s("CDropdownItem"), _ = s("CDropdown"), P = s("SmartList"), f = s("CField");
105
+ }, O = { class: "control" }, Q = { class: "w-full truncate" };
106
+ function W(e, t, n, h, d, r) {
107
+ const g = s("Flag"), b = s("CButton"), c = s("CInput"), x = s("CDropdownItem"), _ = s("CDropdown"), P = s("SmartList"), f = s("CField");
108
108
  return m(), y(f, {
109
109
  class: "has-addons",
110
110
  expanded: ""
@@ -131,7 +131,7 @@ function W(e, t, l, h, d, r) {
131
131
  style: { height: "100%" }
132
132
  }, {
133
133
  trigger: i(() => [
134
- o(x, {
134
+ o(b, {
135
135
  size: e.$attrs.size,
136
136
  type: "none",
137
137
  pattern: "secondary",
@@ -158,10 +158,10 @@ function W(e, t, l, h, d, r) {
158
158
  }, null, 8, ["modelValue", "placeholder"])
159
159
  ]),
160
160
  default: i(() => [
161
- (m(!0), F(k, null, $(u, ({ key: a, title: C, callingCode: R }) => (m(), y(b, {
161
+ (m(!0), F(k, null, I(u, ({ key: a, title: C, callingCode: R }) => (m(), y(x, {
162
162
  key: a,
163
163
  value: a,
164
- class: "truncate-text"
164
+ class: "w-full truncate"
165
165
  }, {
166
166
  default: i(() => [
167
167
  o(g, {
@@ -181,13 +181,13 @@ function W(e, t, l, h, d, r) {
181
181
  }, 8, ["query", "items"])
182
182
  ]),
183
183
  o(f, {
184
- label: l.label,
185
- "label-position": l.labelPosition,
184
+ label: n.label,
185
+ "label-position": n.labelPosition,
186
186
  class: "control",
187
187
  expanded: ""
188
188
  }, {
189
189
  default: i(() => [
190
- o(c, I({ ...e.$attrs, ...e.$props }, {
190
+ o(c, $({ ...e.$attrs, ...e.$props }, {
191
191
  modelValue: r.phone,
192
192
  "onUpdate:modelValue": t[2] || (t[2] = (u) => r.phone = u),
193
193
  size: e.$attrs.size,
@@ -201,7 +201,7 @@ function W(e, t, l, h, d, r) {
201
201
  _: 1
202
202
  });
203
203
  }
204
- const A = /* @__PURE__ */ w(N, [["render", W]]);
204
+ const G = /* @__PURE__ */ w(N, [["render", W]]);
205
205
  export {
206
- A as C
206
+ G as C
207
207
  };
@@ -1,5 +1,5 @@
1
- import { C as h } from "./CCurrencyDropdown-GcQqVqCs.js";
2
- import { _ as C, Y as V, a5 as g, e as o, o as s, c as l, w as i, b as u, S as p, f as w, d as I, B as k, v as d, $ as _ } from "./main-C3pW_mbm.js";
1
+ import { C as h } from "./CCurrencyDropdown-CyFge_fD.js";
2
+ import { _ as C, I as V, al as I, e as o, o as s, c as l, w as i, b as u, K as p, f as g, d as w, H as k, v as d, L as _ } from "./main-q_EWffDQ.js";
3
3
  const $ = {
4
4
  name: "CPriceInput",
5
5
  inheritAttrs: !1,
@@ -65,7 +65,7 @@ const $ = {
65
65
  }
66
66
  },
67
67
  suffixValue() {
68
- const e = g(this.internalCurrency);
68
+ const e = I(this.internalCurrency);
69
69
  switch (this.priceType) {
70
70
  // case 'approx':
71
71
  // return `${this.$t('_common:approx')} ${currencyString}`;
@@ -103,7 +103,7 @@ function x(e, t, c, z, a, r) {
103
103
  prefix: i(() => [
104
104
  e.$slots.prefix ? (s(), u("div", b, [
105
105
  p(e.$slots, "prefix")
106
- ])) : w("", !0)
106
+ ])) : g("", !0)
107
107
  ]),
108
108
  suffix: i(() => [
109
109
  e.$slots.suffix ? (s(), u("div", v, [
@@ -116,7 +116,7 @@ function x(e, t, c, z, a, r) {
116
116
  onActiveChange: t[1] || (t[1] = (n) => a.isCurrencyDropdownOpen = n)
117
117
  }, {
118
118
  default: i(({ selectedValue: n }) => [
119
- I(f, {
119
+ w(f, {
120
120
  size: e.$attrs.size,
121
121
  type: "none",
122
122
  pattern: "tertiary",
@@ -1,5 +1,5 @@
1
- import { _ as u, aj as r, ak as m, o as i, b as d, s as n, E as c, al as p, $ as o, v as h, f, S as V, n as y } from "./main-C3pW_mbm.js";
2
- const S = {
1
+ import { _ as u, a2 as r, a3 as m, o as i, b as d, s as n, O as c, a4 as p, L as o, v as h, f, K as V, n as y } from "./main-q_EWffDQ.js";
2
+ const g = {
3
3
  name: "CSelect",
4
4
  mixins: [r, m],
5
5
  inheritAttrs: !1,
@@ -62,13 +62,13 @@ const S = {
62
62
  this.selected = e, !this.isValid && this.checkHtml5Validity();
63
63
  }
64
64
  }
65
- }, g = ["multiple", "size"], C = {
65
+ }, S = ["multiple", "size"], C = {
66
66
  key: 0,
67
67
  value: null,
68
68
  disabled: "",
69
69
  hidden: ""
70
70
  };
71
- function b(e, t, l, k, v, a) {
71
+ function b(e, t, l, v, k, a) {
72
72
  return i(), d("div", o({
73
73
  class: [{ "is-expanded": e.expanded, "has-icons-left": e.icon }, "control"]
74
74
  }, e.rootAttrs), [
@@ -86,13 +86,13 @@ function b(e, t, l, k, v, a) {
86
86
  }), [
87
87
  l.placeholder && a.computedValue == null ? (i(), d("option", C, h(l.placeholder), 1)) : f("", !0),
88
88
  V(e.$slots, "default", {}, void 0, !0)
89
- ], 16, g), [
89
+ ], 16, S), [
90
90
  [p, a.computedValue]
91
91
  ])
92
92
  ], 2)
93
93
  ], 16);
94
94
  }
95
- const B = /* @__PURE__ */ u(S, [["render", b], ["__scopeId", "data-v-097f661c"]]);
95
+ const B = /* @__PURE__ */ u(g, [["render", b], ["__scopeId", "data-v-097f661c"]]);
96
96
  export {
97
97
  B as C
98
98
  };
@@ -1,4 +1,4 @@
1
- import { h as b, t as g, i as l, u as C, j as e, o as s, b as n, F as x, k as S, n as i, l as d, f as w } from "./main-C3pW_mbm.js";
1
+ import { h as b, t as g, i as l, u as C, j as e, o as s, b as n, F as x, k as S, n as i, l as d, f as w } from "./main-q_EWffDQ.js";
2
2
  const $ = /* @__PURE__ */ b({
3
3
  __name: "CSkeleton",
4
4
  props: {
@@ -1,12 +1,12 @@
1
- import { S as E } from "./SearchApi-DiNXQk3K.js";
2
- import { _ as B, Y as O, aj as H, ak as F, o as d, b as c, d as V, $ as S, ae as m, an as v, w as p, E as $, G as T, s as w, l as C, S as y, f, F as x, k as _, n as A, ai as L, e as g, v as h, aE as D, c as b, B as R } from "./main-C3pW_mbm.js";
3
- import { c as P, r as z, g as N } from "./helpers-BipYFMq7.js";
1
+ import { S as O } from "./SearchApi-6-uNsMl8.js";
2
+ import { _ as b, I as H, a2 as E, a3 as F, o as d, b as c, d as V, L as S, J as m, ad as v, w as p, O as $, P as T, s as w, l as C, K as y, f, F as x, k as L, n as A, a1 as _, e as g, v as h, aH as D, c as I, H as R } from "./main-q_EWffDQ.js";
3
+ import { c as P, r as z, g as N } from "./helpers-BnYWgq30.js";
4
4
  const q = {
5
5
  name: "CAutocomplete",
6
6
  components: {
7
- CInput: O
7
+ CInput: H
8
8
  },
9
- mixins: [H, F],
9
+ mixins: [E, F],
10
10
  props: {
11
11
  modelValue: {
12
12
  type: [Number, String],
@@ -382,7 +382,7 @@ function j(e, t, i, l, s, o) {
382
382
  onIconRightClick: o.rightIconClick,
383
383
  onIconClick: t[4] || (t[4] = (n) => e.$emit("icon-click", n))
384
384
  }), null, 16, ["modelValue", "size", "loading", "rounded", "icon", "icon-right", "icon-right-clickable", "icon-pack", "maxlength", "autocomplete", "onUpdate:modelValue", "onFocus", "onBlur", "onKeydown", "onIconRightClick"]),
385
- V(L, { name: "fade" }, {
385
+ V(_, { name: "fade" }, {
386
386
  default: p(() => [
387
387
  $(w("div", {
388
388
  ref: "dropdown",
@@ -396,7 +396,7 @@ function j(e, t, i, l, s, o) {
396
396
  o.hasHeaderSlot ? (d(), c("div", M, [
397
397
  y(e.$slots, "header")
398
398
  ])) : f("", !0),
399
- (d(!0), c(x, null, _(i.data, (n, u) => (d(), c("a", {
399
+ (d(!0), c(x, null, L(i.data, (n, u) => (d(), c("a", {
400
400
  key: u,
401
401
  class: A([{ "is-hovered": n === s.hovered }, "dropdown-item"]),
402
402
  onClick: (k) => o.setSelected(n, void 0, k)
@@ -424,15 +424,15 @@ function j(e, t, i, l, s, o) {
424
424
  })
425
425
  ], 16);
426
426
  }
427
- const Y = /* @__PURE__ */ B(q, [["render", j]]), G = {
427
+ const J = /* @__PURE__ */ b(q, [["render", j]]), X = {
428
428
  i18nOptions: {
429
429
  namespaces: "components",
430
430
  keyPrefix: "account.documentForm.clients"
431
431
  },
432
432
  name: "ClientAutocomplete",
433
433
  components: {
434
- SearchApi: E,
435
- CAutocomplete: Y
434
+ SearchApi: O,
435
+ CAutocomplete: J
436
436
  },
437
437
  props: {
438
438
  searchEnabled: {
@@ -472,21 +472,21 @@ const Y = /* @__PURE__ */ B(q, [["render", j]]), G = {
472
472
  }));
473
473
  }
474
474
  }
475
- }, X = { style: { "line-height": "1.5" } }, J = { style: { "font-weight": "500" } }, Z = {
475
+ }, Y = { style: { "line-height": "1.5" } }, G = { 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(), b(u, { "custom-search": { endCustomer: !0 } }, {
482
- default: p(({ fetch: k, isLoading: I }) => [
481
+ return d(), I(u, { "custom-search": { endCustomer: !0 } }, {
482
+ default: p(({ fetch: k, isLoading: B }) => [
483
483
  V(n, S({
484
484
  placeholder: e.$t("search.placeholder"),
485
485
  ...e.$attrs,
486
486
  ...e.$props
487
487
  }, {
488
488
  data: s.results,
489
- loading: i.showLoading && I,
489
+ loading: i.showLoading && B,
490
490
  filled: i.filled,
491
491
  expanded: "",
492
492
  "keep-first": "",
@@ -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", X, [
498
- w("div", J, h(r.name || r.email), 1),
497
+ w("div", Y, [
498
+ w("div", G, 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(), b(a, {
504
+ s.searchQuery && !s.results.length ? (d(), I(a, {
505
505
  key: 0,
506
506
  type: "secondary",
507
507
  pattern: "tertiary",
@@ -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__ */ b(X, [["render", ie]]);
529
529
  export {
530
530
  le as C,
531
- Y as a
531
+ J as a
532
532
  };