@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,7 +1,7 @@
1
- import { _ as P } from "./Index.vue_vue_type_script_lang-MIgEx7dJ.js";
2
- import { C as B, a as E } from "./CDropdownItem-DyWrpOb-.js";
3
- import { _ as F } from "./CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js";
4
- import { _ as D, b as i, c as u, o as l, w as r, j as m, an as f, d as c, f as a, F as b, e as _, t as d, s as p, y as z, ai as N, ap as V } from "./main-D4afcIIy.js";
1
+ import { _ as P } from "./Index.vue_vue_type_script_lang-DkStHbk0.js";
2
+ import { a as B, b as E } from "./CDropdownItem-CFTdvAJc.js";
3
+ import { _ as F } from "./CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js";
4
+ import { _ as b, b as i, c as u, o as l, w as r, j as m, an as f, d as c, f as a, F as D, e as _, t as d, s as p, y as z, ah as N, ap as V } from "./main-BnJTDeKH.js";
5
5
  const H = {
6
6
  name: "AttachmentsItem",
7
7
  components: {
@@ -101,7 +101,7 @@ function U(t, e, n, W, s, v) {
101
101
  })
102
102
  ]),
103
103
  _: 1
104
- })) : (l(), c(b, { key: 2 }, [
104
+ })) : (l(), c(D, { key: 2 }, [
105
105
  m("div", M, [
106
106
  m("div", A, d(n.attachment.name), 1),
107
107
  n.uploadProgress !== null ? (l(), c("div", K, [
@@ -165,7 +165,7 @@ function U(t, e, n, W, s, v) {
165
165
  _: 1
166
166
  }, 40, ["href"]);
167
167
  }
168
- const Q = /* @__PURE__ */ D(H, [["render", U], ["__scopeId", "data-v-3f324deb"]]);
168
+ const Q = /* @__PURE__ */ b(H, [["render", U], ["__scopeId", "data-v-3f324deb"]]);
169
169
  export {
170
170
  Q as default
171
171
  };
@@ -1,4 +1,4 @@
1
- import { bC as tt, bD as be, bE as Y, bF as pt, bG as dn, bH as Rr, bI as Ti, bJ as De, bK as Dr, bL as bi, bM as Pr, bN as Ce, bO as Ni, bP as zn, bQ as Mr, bR as Lr, bS as kr, bT as wr, bU as xr, bV as wt, bW as Ur, bX as mn, bY as Vr, bZ as Br, aL as Fr, _ as Xr, n as $r, b as dt, c as Zt, o as Ze, w as en, U as Hr, v as jr, e as tn, d as qn, y as zr, f as nn, s as rn, t as Gn, x as qr, j as Wn, an as Gr, ap as Wr, aC as sn, b_ as Kn } from "./main-D4afcIIy.js";
1
+ import { bC as tt, bD as be, bE as Y, bF as pt, bG as dn, bH as Rr, bI as Ti, bJ as De, bK as Dr, bL as bi, bM as Pr, bN as Ce, bO as Ni, bP as zn, bQ as Mr, bR as Lr, bS as kr, bT as wr, bU as xr, bV as wt, bW as Ur, bX as mn, bY as Vr, bZ as Br, aL as Fr, _ as Xr, n as $r, b as dt, c as Zt, o as Ze, w as en, O as Hr, v as jr, e as tn, d as qn, y as zr, f as nn, s as rn, t as Gn, x as qr, j as Wn, an as Gr, ap as Wr, aC as sn, b_ as Kn } from "./main-BnJTDeKH.js";
2
2
  /*!
3
3
  * Compressor.js v1.1.1
4
4
  * https://fengyuanchen.github.io/compressorjs
@@ -6161,7 +6161,7 @@ const ga = /* @__PURE__ */ Fr(ma), Ea = {
6161
6161
  components: {
6162
6162
  FileUpload: ga,
6163
6163
  UploadModal: $r(
6164
- () => import("./UploadModal-CvFB_11W.js")
6164
+ () => import("./UploadModal-ChOeO-8_.js")
6165
6165
  )
6166
6166
  },
6167
6167
  emits: ["input", "upload-success", "has-mounted"],
@@ -1,4 +1,4 @@
1
- import { _ as u, am as m, af as c, d as t, o as a, e as n, X as o } from "./main-D4afcIIy.js";
1
+ import { _ as u, am as m, ae as c, d as t, o as a, e as n, Q as o } from "./main-BnJTDeKH.js";
2
2
  import { g as y } from "./color-HetJPhlA.js";
3
3
  const v = {
4
4
  name: "BlockMedia",
@@ -62,7 +62,7 @@ const v = {
62
62
  }, p = { class: "media-root" }, _ = {
63
63
  key: 1,
64
64
  class: "video-bg__media"
65
- }, f = ["poster"], g = ["src"], h = ["src"];
65
+ }, g = ["poster"], f = ["src"], h = ["src"];
66
66
  function b(r, l, s, i, d, e) {
67
67
  return a(), t("div", p, [
68
68
  e.overlayColor ? (a(), t("div", {
@@ -74,14 +74,14 @@ function b(r, l, s, i, d, e) {
74
74
  e.forceStatic ? (a(), t("video", {
75
75
  key: 0,
76
76
  poster: e.video.thumbnail
77
- }, null, 8, f)) : e.video.provider === "pexels" ? (a(), t("video", {
77
+ }, null, 8, g)) : e.video.provider === "pexels" ? (a(), t("video", {
78
78
  key: 1,
79
79
  src: e.video.url,
80
80
  autoplay: "",
81
81
  loop: "",
82
82
  muted: "",
83
83
  playsInline: ""
84
- }, null, 8, g)) : (a(), t("iframe", {
84
+ }, null, 8, f)) : (a(), t("iframe", {
85
85
  key: 2,
86
86
  src: e.video.url,
87
87
  frameborder: "0"
@@ -1,4 +1,4 @@
1
- import { _ as g, a1 as f, b as c, c as r, o as a, w as _, d as n, y as p, j as t, e as o, X as b, t as i, U as d, f as x, al as C } from "./main-D4afcIIy.js";
1
+ import { _ as g, ak as f, b as c, c as r, o as a, w as _, d as n, y as p, j as t, e as o, Q as b, t as i, O as d, f as x, al as C } from "./main-BnJTDeKH.js";
2
2
  const v = {
3
3
  name: "CCallout",
4
4
  components: {
@@ -118,7 +118,7 @@ function V(s, l, e, j, D, u) {
118
118
  _: 3
119
119
  });
120
120
  }
121
- const U = /* @__PURE__ */ g(v, [["render", V], ["__scopeId", "data-v-208f4e15"]]);
121
+ const Q = /* @__PURE__ */ g(v, [["render", V], ["__scopeId", "data-v-208f4e15"]]);
122
122
  export {
123
- U as C
123
+ Q as C
124
124
  };
@@ -1,6 +1,6 @@
1
- import { C as g, a as R } from "./CDropdownItem-DyWrpOb-.js";
2
- import { _ as y, a8 as D, a2 as B, b as l, c, o as s, w as r, f as u, d as N, F as M, q as b, j as m, t as d, U as K, s as A, T as L } from "./main-D4afcIIy.js";
3
- import { S as T } from "./SmartList-B2ZpLA8V.js";
1
+ import { a as g, b as R } from "./CDropdownItem-CFTdvAJc.js";
2
+ import { _ as y, a7 as D, a6 as B, b as l, c, o as s, w as r, f as u, d as N, F as b, q as M, j as m, t as d, O as K, s as A, a5 as L } from "./main-BnJTDeKH.js";
3
+ import { S as T } from "./SmartList-mO6hykju.js";
4
4
  const F = {
5
5
  AED: "United Arab Emirates Dirham",
6
6
  AFN: "Afghan Afghani",
@@ -212,7 +212,7 @@ const F = {
212
212
  getCurrencySymbol: D
213
213
  }
214
214
  }, w = { style: { "margin-right": "auto" } }, G = { style: { opacity: "0.7" } };
215
- function V(a, e, I, U, i, o) {
215
+ function V(a, e, I, O, i, o) {
216
216
  const C = l("CButton"), S = l("CInput"), p = l("CDropdownItem"), h = l("SmartList"), P = l("CDropdown");
217
217
  return s(), c(P, L({
218
218
  position: "is-bottom-left",
@@ -263,7 +263,7 @@ function V(a, e, I, U, i, o) {
263
263
  "default-sort": "asc"
264
264
  }, {
265
265
  default: r(({ items: n }) => [
266
- (s(!0), N(M, null, b(n, (t) => (s(), c(p, {
266
+ (s(!0), N(b, null, M(n, (t) => (s(), c(p, {
267
267
  key: t,
268
268
  value: t,
269
269
  class: "w-full truncate",
@@ -1,5 +1,5 @@
1
- import { r as I, c as D } from "./helpers-CUo71XPG.js";
2
- import { r as M, _ as O, a5 as _, d as c, o as d, e as u, f as B, U as h, w as k, v as y, x as S, al as T, X as x, F as V, j as b, y as p, t as z, be as R, an as A, ai as P, b as E, c as f, T as g, ap as H } from "./main-D4afcIIy.js";
1
+ import { r as I, c as D } from "./helpers-B1vYJYc-.js";
2
+ import { r as M, _ as O, Y as _, d as c, o as d, e as u, f as B, O as h, w as k, v as y, x as S, al as T, Q as x, F as V, j as b, y as p, t as z, be as R, an as A, ah as P, b as E, c as f, a5 as g, ap as H } from "./main-BnJTDeKH.js";
3
3
  const v = M({
4
4
  width: window.innerWidth || 800,
5
5
  height: window.innerHeight || 600,
@@ -73,7 +73,7 @@ const j = (e, { value: i = !0 }) => {
73
73
  }, q = {
74
74
  beforeMount: j,
75
75
  unmounted: F
76
- }, W = ["escape", "outside"], L = Symbol("cdropdown"), U = {
76
+ }, W = ["escape", "outside"], L = Symbol("cdropdown"), K = {
77
77
  name: "CDropdown",
78
78
  directives: {
79
79
  trapFocus: q
@@ -372,8 +372,8 @@ const j = (e, { value: i = !0 }) => {
372
372
  return (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document;
373
373
  }
374
374
  }
375
- }, K = ["aria-hidden"], Y = ["aria-hidden"], X = ["role"], J = { class: "dropdown-content-label" };
376
- function G(e, i, t, l, n, s) {
375
+ }, U = ["aria-hidden"], Y = ["aria-hidden"], J = ["role"], Q = { class: "dropdown-content-label" };
376
+ function X(e, i, t, l, n, s) {
377
377
  const a = _("trap-focus");
378
378
  return d(), c("div", {
379
379
  ref: "dropdown",
@@ -400,7 +400,7 @@ function G(e, i, t, l, n, s) {
400
400
  ref: "mobileBackground",
401
401
  "aria-hidden": !n.isActive,
402
402
  class: "dropdown-backdrop fixed inset-0 z-40 bg-black/40"
403
- }, null, 8, K)), [
403
+ }, null, 8, U)), [
404
404
  [S, n.isActive]
405
405
  ]) : u("", !0)
406
406
  ]),
@@ -427,10 +427,10 @@ function G(e, i, t, l, n, s) {
427
427
  class: p([`${n.uniquePopoverClass}`, "dropdown-content"])
428
428
  }, [
429
429
  s.isMobileModal && t.mobileLabel ? h(e.$slots, "mobileLabel", { key: 0 }, () => [
430
- b("div", J, z(t.mobileLabel), 1)
430
+ b("div", Q, z(t.mobileLabel), 1)
431
431
  ]) : u("", !0),
432
432
  h(e.$slots, "default")
433
- ], 14, X),
433
+ ], 14, J),
434
434
  h(e.$slots, "footer")
435
435
  ], 64)) : u("", !0)
436
436
  ], 12, Y)), [
@@ -442,7 +442,7 @@ function G(e, i, t, l, n, s) {
442
442
  }, 8, ["name"])
443
443
  ], 2);
444
444
  }
445
- const re = /* @__PURE__ */ O(U, [["render", G]]), Q = {
445
+ const re = /* @__PURE__ */ O(K, [["render", X]]), G = {
446
446
  name: "CSwitch",
447
447
  props: {
448
448
  modelValue: {
@@ -553,7 +553,7 @@ function te(e, i, t, l, n, s) {
553
553
  ])
554
554
  ], 42, Z);
555
555
  }
556
- const ie = /* @__PURE__ */ O(Q, [["render", te], ["__scopeId", "data-v-f9de1a2a"]]), se = {
556
+ const ie = /* @__PURE__ */ O(G, [["render", te], ["__scopeId", "data-v-f9de1a2a"]]), se = {
557
557
  name: "CDropdownItem",
558
558
  components: {
559
559
  CSwitch: ie
@@ -742,8 +742,8 @@ function le(e, i, t, l, n, s) {
742
742
  }
743
743
  const ue = /* @__PURE__ */ O(se, [["render", le]]);
744
744
  export {
745
- ue as C,
746
- re as a,
747
- ie as b,
745
+ ie as C,
746
+ ue as a,
747
+ re as b,
748
748
  N as w
749
749
  };
@@ -1,6 +1,6 @@
1
- import { i as S, a as _ } from "./helpers-CUo71XPG.js";
2
- import { F as f, ak as g, aM as k, aN as v, b as C, _ as F, d as i, o as r, c as w, U as d, e as h, y as u, s as m, t as b, w as M, a7 as z, I as p, T as B, J as T } from "./main-D4afcIIy.js";
3
- const $ = {
1
+ import { i as S, a as _ } from "./helpers-B1vYJYc-.js";
2
+ import { F as f, aj as g, aM as v, aN as F, b as C, _ as k, d as i, o as r, c as w, O as d, e as h, y as u, s as m, t as b, w as M, $ as z, I as p, a5 as B, J as $ } from "./main-BnJTDeKH.js";
3
+ const T = {
4
4
  name: "CFieldBody",
5
5
  inject: {
6
6
  parent: {
@@ -25,7 +25,7 @@ const $ = {
25
25
  { class: "field-body" },
26
26
  {
27
27
  default: () => e != null && e.map((t) => {
28
- if (t.type === k || t.type === v)
28
+ if (t.type === v || t.type === F)
29
29
  return t;
30
30
  let o;
31
31
  return s && (o = this.message, s = !1), g(
@@ -43,7 +43,7 @@ const $ = {
43
43
  }, L = {
44
44
  name: "CField",
45
45
  components: {
46
- CFieldBody: $
46
+ CFieldBody: T
47
47
  },
48
48
  provide() {
49
49
  return {
@@ -247,7 +247,7 @@ function O(s, e, t, o, n, a) {
247
247
  }, null, 10, j)) : h("", !0)
248
248
  ], 2);
249
249
  }
250
- const P = /* @__PURE__ */ F(L, [["render", O]]), E = /* @__PURE__ */ z({
250
+ const P = /* @__PURE__ */ k(L, [["render", O]]), E = /* @__PURE__ */ z({
251
251
  __name: "CFormField",
252
252
  props: {
253
253
  label: {},
@@ -273,7 +273,7 @@ const P = /* @__PURE__ */ F(L, [["render", O]]), E = /* @__PURE__ */ z({
273
273
  const l = e.validator.$errors[0].$validator;
274
274
  return ((y = e.messages) == null ? void 0 : y[l]) ?? "";
275
275
  });
276
- return (a, l) => (r(), w(T(P), B({ ...a.$attrs, ...a.$props }, {
276
+ return (a, l) => (r(), w($(P), B({ ...a.$attrs, ...a.$props }, {
277
277
  label: a.label,
278
278
  "custom-class": o.value,
279
279
  type: t.value,
@@ -1,4 +1,4 @@
1
- import { aj as o, _ as n, U as r, j as a, t as s } from "./main-D4afcIIy.js";
1
+ import { ai as o, _ as n, O as r, j as a, t as s } from "./main-BnJTDeKH.js";
2
2
  const h = {
3
3
  name: "CPhoneFormat",
4
4
  props: {
@@ -1,4 +1,9 @@
1
- const n = {
1
+ import { _ as P, ak as G, a6 as E, b as u, c as D, o as m, w as r, j as h, f as l, d as N, F as f, q as I, t as C, s as F, a5 as K } from "./main-BnJTDeKH.js";
2
+ import { a as T, b } from "./CDropdownItem-CFTdvAJc.js";
3
+ import { C as L } from "./CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js";
4
+ import { F as V } from "./Flag-CUjMh16L.js";
5
+ import { S as O } from "./SmartList-mO6hykju.js";
6
+ const a = {
2
7
  AD: {
3
8
  name: "Andorra",
4
9
  callingCode: "+376",
@@ -1244,7 +1249,204 @@ const n = {
1244
1249
  callingCode: "+263",
1245
1250
  currency: "USD"
1246
1251
  }
1247
- };
1252
+ }, H = {
1253
+ name: "CPhoneInput",
1254
+ components: {
1255
+ Flag: V,
1256
+ CInput: E,
1257
+ CDropdown: b,
1258
+ CDropdownItem: T,
1259
+ CButton: G,
1260
+ CField: L,
1261
+ SmartList: O
1262
+ },
1263
+ props: {
1264
+ modelValue: {
1265
+ type: [String, Number],
1266
+ default: ""
1267
+ },
1268
+ region: {
1269
+ type: String,
1270
+ default: ""
1271
+ },
1272
+ // Region to fallback to if prefix is not found in modelValue
1273
+ defaultRegion: {
1274
+ type: String,
1275
+ required: !0
1276
+ },
1277
+ label: {
1278
+ type: String,
1279
+ default: ""
1280
+ },
1281
+ labelPosition: {
1282
+ type: String,
1283
+ default: ""
1284
+ }
1285
+ },
1286
+ emits: ["update:modelValue", "update:region"],
1287
+ data() {
1288
+ return {
1289
+ internalPrefix: null,
1290
+ // Used to remember prefix when value is changed to empty
1291
+ searchQuery: ""
1292
+ };
1293
+ },
1294
+ computed: {
1295
+ defaultPrefix() {
1296
+ return a[this.internalRegion].callingCode;
1297
+ },
1298
+ currentRegion() {
1299
+ return this.getRegionByCallingCode(this.prefix);
1300
+ },
1301
+ internalRegion: {
1302
+ get() {
1303
+ if (this.region) return this.region;
1304
+ if (this.modelValue) {
1305
+ const e = (Object.keys(a) || []).find(
1306
+ (n) => a[n].callingCode && this.modelValue && this.modelValue.startsWith(a[n].callingCode)
1307
+ );
1308
+ if (e) return e;
1309
+ }
1310
+ return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
1311
+ },
1312
+ set(e) {
1313
+ this.$emit("update:region", e), this.updateValue({ prefix: a[e].callingCode });
1314
+ }
1315
+ },
1316
+ prefix() {
1317
+ if (!this.modelValue) return this.internalPrefix || this.defaultPrefix;
1318
+ const e = (Object.keys(a) || []).find(
1319
+ (n) => a[n].callingCode && this.modelValue && this.modelValue.startsWith(a[n].callingCode)
1320
+ );
1321
+ return e ? a[e].callingCode : this.defaultPrefix;
1322
+ },
1323
+ phone: {
1324
+ get() {
1325
+ return this.prefix && this.modelValue && this.modelValue.startsWith(this.prefix) ? this.modelValue.substring(this.prefix.length) : this.modelValue;
1326
+ },
1327
+ set(e) {
1328
+ this.updateValue({ phone: e });
1329
+ }
1330
+ },
1331
+ sortedRegions() {
1332
+ return (Object.keys(a) || []).map((e) => ({
1333
+ key: e,
1334
+ title: `${a[e].name} (${e})`,
1335
+ callingCode: a[e].callingCode
1336
+ })).sort((e, n) => e.title.localeCompare(n.title));
1337
+ }
1338
+ },
1339
+ methods: {
1340
+ getRegionByCallingCode(e) {
1341
+ return e ? (Object.keys(a) || []).find(
1342
+ (c) => e === a[c].callingCode
1343
+ ) : null;
1344
+ },
1345
+ updateValue({ prefix: e, phone: n }) {
1346
+ const c = e !== void 0 ? e : this.prefix || "", g = n !== void 0 ? n : this.phone || "", d = `${c}${g}`;
1347
+ d !== c ? (this.$emit("update:modelValue", d), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = c, this.$emit("update:modelValue", ""));
1348
+ }
1349
+ }
1350
+ }, Z = { class: "control" }, X = { class: "w-full truncate" };
1351
+ function w(e, n, c, g, d, i) {
1352
+ const y = u("Flag"), p = u("CButton"), s = u("CInput"), U = u("CDropdownItem"), M = u("CDropdown"), B = u("SmartList"), S = u("CField");
1353
+ return m(), D(S, {
1354
+ class: "has-addons",
1355
+ expanded: ""
1356
+ }, {
1357
+ default: r(() => [
1358
+ h("div", Z, [
1359
+ l(B, {
1360
+ query: d.searchQuery,
1361
+ items: i.sortedRegions
1362
+ }, {
1363
+ default: r(({ items: t }) => [
1364
+ l(M, {
1365
+ modelValue: i.internalRegion,
1366
+ "onUpdate:modelValue": n[1] || (n[1] = (o) => i.internalRegion = o),
1367
+ size: e.$attrs.size,
1368
+ disabled: e.$attrs.disabled,
1369
+ "menu-styling": {
1370
+ maxWidth: "300px"
1371
+ },
1372
+ scrollable: !0,
1373
+ position: "is-bottom-right",
1374
+ "max-height": "240px",
1375
+ class: "control",
1376
+ style: { height: "100%" }
1377
+ }, {
1378
+ trigger: r(() => [
1379
+ l(p, {
1380
+ size: e.$attrs.size,
1381
+ type: "none",
1382
+ pattern: "secondary",
1383
+ style: { height: "100%" }
1384
+ }, {
1385
+ default: r(() => [
1386
+ l(y, {
1387
+ region: i.internalRegion,
1388
+ style: { "margin-right": "0.35em" }
1389
+ }, null, 8, ["region"]),
1390
+ F(" " + C(i.prefix), 1)
1391
+ ]),
1392
+ _: 1
1393
+ }, 8, ["size"])
1394
+ ]),
1395
+ header: r(() => [
1396
+ l(s, {
1397
+ modelValue: d.searchQuery,
1398
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => d.searchQuery = o),
1399
+ placeholder: e.$t("_common:search"),
1400
+ filled: "",
1401
+ style: { "margin-bottom": "0.25em" },
1402
+ "custom-class": "!rounded-[7px]"
1403
+ }, null, 8, ["modelValue", "placeholder"])
1404
+ ]),
1405
+ default: r(() => [
1406
+ (m(!0), N(f, null, I(t, ({ key: o, title: R, callingCode: A }) => (m(), D(U, {
1407
+ key: o,
1408
+ value: o,
1409
+ class: "w-full truncate"
1410
+ }, {
1411
+ default: r(() => [
1412
+ l(y, {
1413
+ region: o,
1414
+ title: R,
1415
+ style: { "margin-right": "0.75em", flex: "0 0 auto" }
1416
+ }, null, 8, ["region", "title"]),
1417
+ h("span", X, C(R) + " (" + C(A) + ") ", 1)
1418
+ ]),
1419
+ _: 2
1420
+ }, 1032, ["value"]))), 128))
1421
+ ]),
1422
+ _: 2
1423
+ }, 1032, ["modelValue", "size", "disabled"])
1424
+ ]),
1425
+ _: 1
1426
+ }, 8, ["query", "items"])
1427
+ ]),
1428
+ l(S, {
1429
+ label: c.label,
1430
+ "label-position": c.labelPosition,
1431
+ class: "control",
1432
+ expanded: ""
1433
+ }, {
1434
+ default: r(() => [
1435
+ l(s, K({ ...e.$attrs, ...e.$props }, {
1436
+ modelValue: i.phone,
1437
+ "onUpdate:modelValue": n[2] || (n[2] = (t) => i.phone = t),
1438
+ size: e.$attrs.size,
1439
+ placeholder: e.$attrs.placeholder,
1440
+ type: "tel"
1441
+ }), null, 16, ["modelValue", "size", "placeholder"])
1442
+ ]),
1443
+ _: 1
1444
+ }, 8, ["label", "label-position"])
1445
+ ]),
1446
+ _: 1
1447
+ });
1448
+ }
1449
+ const J = /* @__PURE__ */ P(H, [["render", w]]);
1248
1450
  export {
1249
- n as r
1451
+ J as C
1250
1452
  };
@@ -1,5 +1,5 @@
1
- import { C as h } from "./CCurrencyDropdown-DuJxa77L.js";
2
- import { _ as C, a2 as V, a8 as g, b as a, c as l, o as s, w as i, d as u, U as p, f as w, s as I, t as d, e as k, T as _ } from "./main-D4afcIIy.js";
1
+ import { C as h } from "./CCurrencyDropdown-2PRaeJHp.js";
2
+ import { _ as C, a6 as V, a7 as g, b as a, c as l, o as s, w as i, d as u, O as p, f as w, s as I, t as d, e as k, a5 as _ } from "./main-BnJTDeKH.js";
3
3
  const $ = {
4
4
  name: "CPriceInput",
5
5
  inheritAttrs: !1,
@@ -136,7 +136,7 @@ function x(e, t, c, z, o, r) {
136
136
  _: 3
137
137
  }, 16, ["modelValue", "size", "placeholder", "style"]);
138
138
  }
139
- const B = /* @__PURE__ */ C($, [["render", x]]);
139
+ const T = /* @__PURE__ */ C($, [["render", x]]);
140
140
  export {
141
- B as C
141
+ T as C
142
142
  };
@@ -1,4 +1,4 @@
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, v as V, c, e as o, Q as C, T as m, U as S, t as v, y as k } from "./main-D4afcIIy.js";
1
+ import { _ as y, a0 as f, a1 as g, a2 as b, a3 as i, b as n, d, o as r, j as u, v as V, c, e as o, a4 as C, a5 as m, O as S, t as v, y as k } from "./main-BnJTDeKH.js";
2
2
  const w = {
3
3
  name: "CSelect",
4
4
  mixins: [g, b],
@@ -86,7 +86,7 @@ const w = {
86
86
  disabled: "",
87
87
  hidden: ""
88
88
  };
89
- function B(e, t, l, A, N, s) {
89
+ function B(e, t, l, A, j, s) {
90
90
  const p = n("CIcon"), h = n("Spinner");
91
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"]
@@ -123,7 +123,7 @@ function B(e, t, l, A, N, s) {
123
123
  ], 2)
124
124
  ], 16);
125
125
  }
126
- const F = /* @__PURE__ */ y(w, [["render", B]]);
126
+ const M = /* @__PURE__ */ y(w, [["render", B]]);
127
127
  export {
128
- F as C
128
+ M as C
129
129
  };
@@ -1,5 +1,5 @@
1
- import { a7 as B, az as C, I as l, aA as N, d as o, e as w, J as e, o as s, F as x, q as S, X as d, y as r, _ as z } from "./main-D4afcIIy.js";
2
- const A = /* @__PURE__ */ B({
1
+ import { $ as B, az as C, I as l, aA as N, d as o, e as w, J as e, o as s, F as x, q as S, Q as d, y as r, _ as z } from "./main-BnJTDeKH.js";
2
+ const $ = /* @__PURE__ */ B({
3
3
  __name: "CSkeleton",
4
4
  props: {
5
5
  active: { type: Boolean, default: !0 },
@@ -29,7 +29,7 @@ const A = /* @__PURE__ */ B({
29
29
  borderRadius: m.value ? "50%" : void 0,
30
30
  background: n.value ? n.value : void 0
31
31
  })), u = N(), g = l(() => u.style), k = l(() => u.class);
32
- return (F, I) => e(v) ? (s(), o("div", {
32
+ return (A, F) => e(v) ? (s(), o("div", {
33
33
  key: 0,
34
34
  class: r(["w-full", { invisible: e(h) }, k.value]),
35
35
  style: d(g.value)
@@ -41,7 +41,7 @@ const A = /* @__PURE__ */ B({
41
41
  }, null, 6))), 128))
42
42
  ], 6)) : w("", !0);
43
43
  }
44
- }), $ = /* @__PURE__ */ z(A, [["__scopeId", "data-v-74e9d99e"]]);
44
+ }), R = /* @__PURE__ */ z($, [["__scopeId", "data-v-74e9d99e"]]);
45
45
  export {
46
- $ as C
46
+ R as C
47
47
  };
@@ -1,7 +1,7 @@
1
- import { S as O } from "./SearchApi-CBg1KY-O.js";
2
- import { _ as I, N as H, O as E, a2 as F, b as g, d as c, o as d, f as V, T as S, ai as m, an as v, w as p, v as $, j as w, X as T, y as C, e as f, U as y, F as x, q as _, t as h, x as A, al as L, aH as D, c as b, s as R } from "./main-D4afcIIy.js";
3
- import { g as P, r as N, c as q } from "./helpers-CUo71XPG.js";
4
- const z = {
1
+ import { S as O } from "./SearchApi-zTefPc4C.js";
2
+ import { _ as I, a1 as H, a2 as E, a6 as F, b as g, d as c, o as d, f as V, a5 as S, ah as m, an as v, w as p, v as $, j as w, Q as T, y as C, e as f, O as y, F as x, q as _, t as h, x as A, al as L, aH as D, c as b, s as R } from "./main-BnJTDeKH.js";
3
+ import { g as P, r as q, c as z } from "./helpers-B1vYJYc-.js";
4
+ const N = {
5
5
  name: "CAutocomplete",
6
6
  components: {
7
7
  CInput: F
@@ -190,13 +190,13 @@ const z = {
190
190
  () => this.checkIfReachedTheEndOfScroll(e)
191
191
  );
192
192
  }
193
- this.appendToBody && (this.$data._bodyEl = q(this.$refs.dropdown), this.updateAppendToBody());
193
+ this.appendToBody && (this.$data._bodyEl = z(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 && N(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 && q(this.$data._bodyEl), clearTimeout(this.timeOutID);
200
200
  },
201
201
  methods: {
202
202
  /**
@@ -341,7 +341,7 @@ const z = {
341
341
  }, M = {
342
342
  key: 0,
343
343
  class: "dropdown-item"
344
- }, U = ["onClick"], K = { key: 1 }, Q = {
344
+ }, Q = ["onClick"], K = { key: 1 }, U = {
345
345
  key: 1,
346
346
  class: "dropdown-item is-disabled"
347
347
  }, W = {
@@ -406,8 +406,8 @@ function j(e, t, i, l, s, o) {
406
406
  option: n,
407
407
  index: u
408
408
  }) : (d(), c("span", K, h(o.getValue(n, !0)), 1))
409
- ], 10, U))), 128)),
410
- i.data.length === 0 && o.hasEmptySlot ? (d(), c("div", Q, [
409
+ ], 10, Q))), 128)),
410
+ i.data.length === 0 && o.hasEmptySlot ? (d(), c("div", U, [
411
411
  y(e.$slots, "empty")
412
412
  ])) : f("", !0),
413
413
  o.hasFooterSlot ? (d(), c("div", W, [
@@ -424,7 +424,7 @@ function j(e, t, i, l, s, o) {
424
424
  })
425
425
  ], 16);
426
426
  }
427
- const X = /* @__PURE__ */ I(z, [["render", j]]), Y = {
427
+ const X = /* @__PURE__ */ I(N, [["render", j]]), Y = {
428
428
  i18nOptions: {
429
429
  namespaces: "components",
430
430
  keyPrefix: "account.documentForm.clients"