@8wave/ai-elements 0.119.0-beta.59 → 0.119.0-beta.62

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 (108) hide show
  1. package/README.md +3 -0
  2. package/dist/_chunks/{PkChatbotFilePreview-Bdi4_IFu.js → PkChatbotFilePreview-C0uMvUlV.js} +2 -2
  3. package/dist/_chunks/{PkChatbotFilePreview-Bdi4_IFu.js.map → PkChatbotFilePreview-C0uMvUlV.js.map} +1 -1
  4. package/dist/_chunks/{PkHeldImage-eNPFmmdh.js → PkHeldImage-CBvcNMEM.js} +2 -2
  5. package/dist/_chunks/{PkHeldImage-eNPFmmdh.js.map → PkHeldImage-CBvcNMEM.js.map} +1 -1
  6. package/dist/_chunks/{PkLazyImg-DHPPSq3N.js → PkLazyImg-COy3jb6W.js} +2 -2
  7. package/dist/_chunks/{PkLazyImg-DHPPSq3N.js.map → PkLazyImg-COy3jb6W.js.map} +1 -1
  8. package/dist/_chunks/{PkToolEditSpreadsheet-Ct9pdQJ1.js → PkToolEditSpreadsheet-C8PN08y2.js} +2 -2
  9. package/dist/_chunks/{PkToolEditSpreadsheet-Ct9pdQJ1.js.map → PkToolEditSpreadsheet-C8PN08y2.js.map} +1 -1
  10. package/dist/_chunks/{PkToolRequestGeolocation-DzhrY8bg.js → PkToolRequestGeolocation-Cu1TSjHl.js} +2 -2
  11. package/dist/_chunks/{PkToolRequestGeolocation-DzhrY8bg.js.map → PkToolRequestGeolocation-Cu1TSjHl.js.map} +1 -1
  12. package/dist/_chunks/{PkToolRequestOAuthConnection-CzRKRGoG.js → PkToolRequestOAuthConnection-Bc2UX4MZ.js} +3 -3
  13. package/dist/_chunks/{PkToolRequestOAuthConnection-CzRKRGoG.js.map → PkToolRequestOAuthConnection-Bc2UX4MZ.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowArtifact-D6ZTw5vh.js → PkToolShowArtifact-B1YYNKqc.js} +2 -2
  15. package/dist/_chunks/{PkToolShowArtifact-D6ZTw5vh.js.map → PkToolShowArtifact-B1YYNKqc.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowCalendarEvent-D8DMh3-P.js → PkToolShowCalendarEvent-r0SuzJDT.js} +3 -3
  17. package/dist/_chunks/{PkToolShowCalendarEvent-D8DMh3-P.js.map → PkToolShowCalendarEvent-r0SuzJDT.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowComparison-DLC22e1W.js → PkToolShowComparison-Bsh6iiIQ.js} +3 -3
  19. package/dist/_chunks/{PkToolShowComparison-DLC22e1W.js.map → PkToolShowComparison-Bsh6iiIQ.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowContactForm-CW7gKQ7h.js → PkToolShowContactForm-B2UzmoDw.js} +4 -4
  21. package/dist/_chunks/{PkToolShowContactForm-CW7gKQ7h.js.map → PkToolShowContactForm-B2UzmoDw.js.map} +1 -1
  22. package/dist/_chunks/{PkToolShowDiagram-WregKAJO.js → PkToolShowDiagram-iQRTxxLw.js} +3 -3
  23. package/dist/_chunks/{PkToolShowDiagram-WregKAJO.js.map → PkToolShowDiagram-iQRTxxLw.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowEmail-C7mUCqGL.js → PkToolShowEmail-1pyuWnuN.js} +3 -3
  25. package/dist/_chunks/{PkToolShowEmail-C7mUCqGL.js.map → PkToolShowEmail-1pyuWnuN.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowForm-D_2FmDwq.js → PkToolShowForm-BRt9i4aW.js} +5 -5
  27. package/dist/_chunks/{PkToolShowForm-D_2FmDwq.js.map → PkToolShowForm-BRt9i4aW.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowImageGallery-KmMO4UuQ.js → PkToolShowImageGallery-BZ3uOhQq.js} +3 -3
  29. package/dist/_chunks/{PkToolShowImageGallery-KmMO4UuQ.js.map → PkToolShowImageGallery-BZ3uOhQq.js.map} +1 -1
  30. package/dist/_chunks/{PkToolShowLocation-jRZtqoBO.js → PkToolShowLocation-BIAPTY0s.js} +3 -3
  31. package/dist/_chunks/{PkToolShowLocation-jRZtqoBO.js.map → PkToolShowLocation-BIAPTY0s.js.map} +1 -1
  32. package/dist/_chunks/{PkToolShowMessage-vw4XS4TR.js → PkToolShowMessage-BM3TU9SP.js} +3 -3
  33. package/dist/_chunks/{PkToolShowMessage-vw4XS4TR.js.map → PkToolShowMessage-BM3TU9SP.js.map} +1 -1
  34. package/dist/_chunks/{PkToolShowProductList-cld-FOFb.js → PkToolShowProductList-C4a7R9yQ.js} +4 -4
  35. package/dist/_chunks/{PkToolShowProductList-cld-FOFb.js.map → PkToolShowProductList-C4a7R9yQ.js.map} +1 -1
  36. package/dist/_chunks/{PkToolShowQrCode-BhcAUXSZ.js → PkToolShowQrCode-6zjcD50R.js} +3 -3
  37. package/dist/_chunks/{PkToolShowQrCode-BhcAUXSZ.js.map → PkToolShowQrCode-6zjcD50R.js.map} +1 -1
  38. package/dist/_chunks/{PkToolShowSources-DyzheirE.js → PkToolShowSources-CgZRJ1gU.js} +3 -3
  39. package/dist/_chunks/{PkToolShowSources-DyzheirE.js.map → PkToolShowSources-CgZRJ1gU.js.map} +1 -1
  40. package/dist/_chunks/{PkToolShowSuggestedReply-xUBuqStM.js → PkToolShowSuggestedReply-nHsdJfbX.js} +2 -2
  41. package/dist/_chunks/{PkToolShowSuggestedReply-xUBuqStM.js.map → PkToolShowSuggestedReply-nHsdJfbX.js.map} +1 -1
  42. package/dist/_chunks/{PkToolShowVideo-KDNxItWl.js → PkToolShowVideo-BxHrmc_4.js} +3 -3
  43. package/dist/_chunks/{PkToolShowVideo-KDNxItWl.js.map → PkToolShowVideo-BxHrmc_4.js.map} +1 -1
  44. package/dist/_chunks/{PkToolShowWeather-DTrZ7r1t.js → PkToolShowWeather-CNvVC6nZ.js} +2 -2
  45. package/dist/_chunks/{PkToolShowWeather-DTrZ7r1t.js.map → PkToolShowWeather-CNvVC6nZ.js.map} +1 -1
  46. package/dist/_chunks/{PkToolShowWebPages-D35B7GzS.js → PkToolShowWebPages-CRM3rPp6.js} +4 -4
  47. package/dist/_chunks/{PkToolShowWebPages-D35B7GzS.js.map → PkToolShowWebPages-CRM3rPp6.js.map} +1 -1
  48. package/dist/_chunks/{VvButtonLocalized-DV-zbH9b.js → VvButtonLocalized-PfbIEwav.js} +2 -2
  49. package/dist/_chunks/{VvButtonLocalized-DV-zbH9b.js.map → VvButtonLocalized-PfbIEwav.js.map} +1 -1
  50. package/dist/_chunks/{VvCheckbox.es-VtDFxWJM.js → VvCheckbox.es-CtWUn81l.js} +3 -3
  51. package/dist/_chunks/VvCheckbox.es-CtWUn81l.js.map +1 -0
  52. package/dist/_chunks/{VvCheckboxGroup.es-D7MifHZN.js → VvCheckboxGroup.es-DjcwsgD8.js} +3 -3
  53. package/dist/_chunks/VvCheckboxGroup.es-DjcwsgD8.js.map +1 -0
  54. package/dist/_chunks/{VvCombobox.es-Brn06uOj.js → VvCombobox.es-DKR6Fb2W.js} +339 -304
  55. package/dist/_chunks/VvCombobox.es-DKR6Fb2W.js.map +1 -0
  56. package/dist/_chunks/{VvInputText.es-Co9NrR4l.js → VvInputText.es-6IlsXl00.js} +315 -275
  57. package/dist/_chunks/VvInputText.es-6IlsXl00.js.map +1 -0
  58. package/dist/_chunks/{VvRadio.es-BxHgVeVy.js → VvRadio.es-GQuMOlYC.js} +3 -3
  59. package/dist/_chunks/VvRadio.es-GQuMOlYC.js.map +1 -0
  60. package/dist/_chunks/{VvRadioGroup.es-DZtXJGCi.js → VvRadioGroup.es-ct4eQCRN.js} +3 -3
  61. package/dist/_chunks/VvRadioGroup.es-ct4eQCRN.js.map +1 -0
  62. package/dist/_chunks/{VvSelect.es-BR8f0LUN.js → VvSelect.es-CQ2SG0HY.js} +3 -3
  63. package/dist/_chunks/VvSelect.es-CQ2SG0HY.js.map +1 -0
  64. package/dist/_chunks/{VvTextarea.es-TXhUgEuG.js → VvTextarea.es-BcMLwglK.js} +225 -190
  65. package/dist/_chunks/VvTextarea.es-BcMLwglK.js.map +1 -0
  66. package/dist/_chunks/{index.es-dTcgyeM4.js → index.es-D7jsz1j2.js} +254 -210
  67. package/dist/_chunks/index.es-D7jsz1j2.js.map +1 -0
  68. package/dist/_chunks/{index.es-DkFMpDsf.js → index.es-DmG03ICf.js} +10 -10
  69. package/dist/_chunks/{index.es-DkFMpDsf.js.map → index.es-DmG03ICf.js.map} +1 -1
  70. package/dist/ai-elements.es.js +1698 -1643
  71. package/dist/ai-elements.es.js.map +1 -1
  72. package/dist-vue/PkChatbot.js +1 -1
  73. package/dist-vue/PkChatbotAuth.js +1 -1
  74. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  75. package/dist-vue/PkChatbotMessages.js +1 -1
  76. package/dist-vue/PkChatbotViewChat.js +1 -1
  77. package/dist-vue/_chunks/{PkChatbot-Bgw5K9w1.js → PkChatbot-BRfoWvHX.js} +2 -2
  78. package/dist-vue/_chunks/{PkChatbot-Bgw5K9w1.js.map → PkChatbot-BRfoWvHX.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkChatbotAuth-CHoEXxmg.js → PkChatbotAuth-BsxfxDgR.js} +2 -2
  80. package/dist-vue/_chunks/{PkChatbotAuth-CHoEXxmg.js.map → PkChatbotAuth-BsxfxDgR.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkChatbotFeedbackForm-B5cYsWBr.js → PkChatbotFeedbackForm-pQc2JrQT.js} +2 -2
  82. package/dist-vue/_chunks/{PkChatbotFeedbackForm-B5cYsWBr.js.map → PkChatbotFeedbackForm-pQc2JrQT.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkChatbotMessages-B2e1MQ_d.js → PkChatbotMessages-B6EEvqZy.js} +3 -3
  84. package/dist-vue/_chunks/{PkChatbotMessages-B2e1MQ_d.js.map → PkChatbotMessages-B6EEvqZy.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkChatbotViewChat-DEpMIiic.js → PkChatbotViewChat-PdHUXyCz.js} +3 -3
  86. package/dist-vue/_chunks/{PkChatbotViewChat-DEpMIiic.js.map → PkChatbotViewChat-PdHUXyCz.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowContactForm-BjE4mrDv.js → PkToolShowContactForm-CBuw96Vr.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowContactForm-BjE4mrDv.js.map → PkToolShowContactForm-CBuw96Vr.js.map} +1 -1
  89. package/dist-vue/_chunks/{index.es-C1u3kP7i.js → index.es-CY6tu8qg.js} +2 -2
  90. package/dist-vue/_chunks/{index.es-C1u3kP7i.js.map → index.es-CY6tu8qg.js.map} +1 -1
  91. package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +36 -0
  92. package/dist-vue/composables.js +217 -164
  93. package/dist-vue/composables.js.map +1 -1
  94. package/dist-vue/index.js +8 -8
  95. package/dist-vue/index.js.map +1 -1
  96. package/dist-vue/packages/auth/src/external-auth-plugin.d.ts +22 -0
  97. package/dist-vue/packages/auth/src/external-identity.d.ts +64 -0
  98. package/dist-vue/packages/models/src/schema/McpServer.d.ts +19 -3
  99. package/package.json +2 -2
  100. package/dist/_chunks/VvCheckbox.es-VtDFxWJM.js.map +0 -1
  101. package/dist/_chunks/VvCheckboxGroup.es-D7MifHZN.js.map +0 -1
  102. package/dist/_chunks/VvCombobox.es-Brn06uOj.js.map +0 -1
  103. package/dist/_chunks/VvInputText.es-Co9NrR4l.js.map +0 -1
  104. package/dist/_chunks/VvRadio.es-BxHgVeVy.js.map +0 -1
  105. package/dist/_chunks/VvRadioGroup.es-DZtXJGCi.js.map +0 -1
  106. package/dist/_chunks/VvSelect.es-BR8f0LUN.js.map +0 -1
  107. package/dist/_chunks/VvTextarea.es-TXhUgEuG.js.map +0 -1
  108. package/dist/_chunks/index.es-dTcgyeM4.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { $ as e, A as t, B as n, C as r, Ct as i, Dt as a, E as o, Et as s, F as c, G as l, L as u, M as d, N as f, O as p, Q as ee, R as te, St as m, T as h, Tt as g, U as ne, W as re, X as _, _ as v, b as ie, bt as ae, c as oe, ct as se, d as ce, dt as y, et as le, g as b, h as x, it as ue, k as S, m as C, mt as w, q as de, r as fe, t as pe, u as me, v as T, wt as he, x as ge, y as _e, yt as ve, z as ye } from "./vue.runtime.esm-bundler-DKVd2gci.js";
1
+ import { $ as e, A as t, B as n, C as r, Ct as i, Dt as a, E as o, Et as s, F as c, G as l, L as u, M as d, N as f, O as p, Q as ee, R as te, St as m, T as h, Tt as g, U as ne, W as re, X as _, _ as v, b as ie, bt as y, c as ae, ct as b, d as oe, dt as se, et as ce, g as x, h as S, it as le, k as ue, m as C, mt as w, q as de, r as fe, t as pe, u as me, v as T, wt as he, x as ge, y as _e, yt as ve, z as ye } from "./vue.runtime.esm-bundler-DKVd2gci.js";
2
2
  import { a as E, i as be, t as D } from "./iconify-CgyW1o4B.js";
3
3
  import { c as xe, f as Se, g as Ce, h as we, l as O, n as Te, o as k, r as A, u as Ee } from "./dist-DxtbpUdI.js";
4
4
  import { a as De, c as Oe, i as ke, l as Ae, n as j, o as M, r as je, s as Me, t as N } from "./floating-ui.vue-B6fUB9cU.js";
5
5
  import { t as Ne } from "./esm-DHfsLeyR.js";
6
- //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.24_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_15de8134c9a21d6e417d645781533ea5/node_modules/@volverjs/ui-vue/dist/components/VvInputText/VvInputText.es.js
7
- p(), fe(), ue(), i();
6
+ //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.25_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_6457cdc65e61a009108dae6427ee3925/node_modules/@volverjs/ui-vue/dist/components/VvInputText/VvInputText.es.js
7
+ p(), fe(), le(), i();
8
8
  var P = (e) => e.toString().padStart(2, "0"), F = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
9
9
  function Pe(e) {
10
10
  if (typeof e != "string" || !F.test(e)) return !1;
@@ -20,8 +20,8 @@ function Fe(e, t = "date", n) {
20
20
  let a = n ? `${P(r.getHours())}:${P(r.getMinutes())}:${P(r.getSeconds())}` : `${P(r.getHours())}:${P(r.getMinutes())}`;
21
21
  return t === "time" ? a : `${i}T${a}`;
22
22
  }
23
- var Ie = /^\d{4}-\d{2}-\d{2}$/, I = /^\d{4}-\d{2}$/, L = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, R = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
24
- function z(e, t = "date") {
23
+ var Ie = /^\d{4}-\d{2}-\d{2}$/, Le = /^\d{4}-\d{2}$/, I = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/, L = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;
24
+ function R(e, t = "date") {
25
25
  if (!e?.trim()) return null;
26
26
  let n = /* @__PURE__ */ new Date(), r = n.getFullYear(), i = n.getMonth(), a = n.getDate();
27
27
  if (t === "date") {
@@ -29,27 +29,27 @@ function z(e, t = "date") {
29
29
  return /* @__PURE__ */ new Date(`${e}T00:00:00`);
30
30
  }
31
31
  if (t === "month") {
32
- if (!I.test(e)) throw Error("Invalid month format. Expected: YYYY-MM");
32
+ if (!Le.test(e)) throw Error("Invalid month format. Expected: YYYY-MM");
33
33
  return /* @__PURE__ */ new Date(`${e}-01T00:00:00`);
34
34
  }
35
35
  if (t === "time") {
36
- if (!L.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
36
+ if (!I.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
37
37
  return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${P(i + 1)}-${P(a)}T${e}`) : /* @__PURE__ */ new Date(`${r}-${P(i + 1)}-${P(a)}T${e}:00`);
38
38
  }
39
- if (!R.test(e)) throw Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
39
+ if (!L.test(e)) throw Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
40
40
  return e.length === 16 ? /* @__PURE__ */ new Date(`${e}:00`) : /* @__PURE__ */ new Date(`${e}`);
41
41
  }
42
- function B(e) {
42
+ function z(e) {
43
43
  return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(m(e));
44
44
  }
45
- function V(e) {
45
+ function B(e) {
46
46
  return typeof e == "string";
47
47
  }
48
- function Le(e) {
49
- return Array.isArray(e) ? e.filter((e) => V(e)).join(" ") : e;
48
+ function Re(e) {
49
+ return Array.isArray(e) ? e.filter((e) => B(e)).join(" ") : e;
50
50
  }
51
- function Re(e, t) {
52
- let n = C(() => se(e) ? e.value : e), i = C(() => Le(n.value.invalidLabel)), a = C(() => Le(n.value.validLabel)), s = C(() => n.value.loadingLabel), c = C(() => n.value.hintLabel), l = C(() => !!(n.value.loading && (t.loading || s.value))), u = C(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = C(() => !l.value && !u.value && !!(n.value.valid && (t.valid || a.value))), f = C(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = C(() => u.value || d.value || l.value || f.value);
51
+ function ze(e, t) {
52
+ let n = C(() => b(e) ? e.value : e), i = C(() => Re(n.value.invalidLabel)), a = C(() => Re(n.value.validLabel)), s = C(() => n.value.loadingLabel), c = C(() => n.value.hintLabel), l = C(() => !!(n.value.loading && (t.loading || s.value))), u = C(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = C(() => !l.value && !u.value && !!(n.value.valid && (t.valid || a.value))), f = C(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = C(() => u.value || d.value || l.value || f.value);
53
53
  return {
54
54
  hasInvalidLabelOrSlot: u,
55
55
  hasHintLabelOrSlot: f,
@@ -90,27 +90,27 @@ function Re(e, t) {
90
90
  })
91
91
  };
92
92
  }
93
- var H = /* @__PURE__ */ (function(e) {
93
+ var V = /* @__PURE__ */ (function(e) {
94
94
  return e.local = "local", e.session = "session", e;
95
- })({}), ze = /* @__PURE__ */ (function(e) {
95
+ })({}), Be = /* @__PURE__ */ (function(e) {
96
96
  return e.absolute = "absolute", e.fixed = "fixed", e;
97
- })({}), U = /* @__PURE__ */ (function(e) {
97
+ })({}), H = /* @__PURE__ */ (function(e) {
98
98
  return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
99
- })({}), Be = /* @__PURE__ */ (function(e) {
100
- return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
101
99
  })({}), Ve = /* @__PURE__ */ (function(e) {
100
+ return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
101
+ })({}), U = /* @__PURE__ */ (function(e) {
102
102
  return e.before = "before", e.after = "after", e;
103
103
  })({}), He = /* @__PURE__ */ (function(e) {
104
104
  return e.button = "button", e.submit = "submit", e.reset = "reset", e;
105
- })({}), W = /* @__PURE__ */ (function(e) {
106
- return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
107
105
  })({}), Ue = /* @__PURE__ */ (function(e) {
106
+ return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
107
+ })({}), W = /* @__PURE__ */ (function(e) {
108
108
  return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
109
109
  })({}), G = /* @__PURE__ */ (function(e) {
110
110
  return e.listbox = "listbox", e.menu = "menu", e;
111
111
  })({}), We = /* @__PURE__ */ (function(e) {
112
112
  return e.option = "option", e.presentation = "presentation", e;
113
- })({}), Ge = /* @__PURE__ */ Symbol.for("volver"), Ke = /* @__PURE__ */ Symbol.for("dropdownTrigger"), qe = /* @__PURE__ */ Symbol.for("dropdownItem"), Je = /* @__PURE__ */ Symbol.for("dropdownAction"), K = {
113
+ })({}), Ge = /* @__PURE__ */ Symbol.for("volver"), Ke = /* @__PURE__ */ Symbol.for("dropdownTrigger"), K = /* @__PURE__ */ Symbol.for("dropdownItem"), qe = /* @__PURE__ */ Symbol.for("dropdownAction"), q = {
114
114
  showPassword: "eye-on",
115
115
  hidePassword: "eye-off",
116
116
  showDatePicker: "calendar",
@@ -121,7 +121,7 @@ var H = /* @__PURE__ */ (function(e) {
121
121
  remove: "trash",
122
122
  edit: "edit",
123
123
  download: "download"
124
- }, Ye = { prefix: "normal" }, Xe = {
124
+ }, Je = { prefix: "normal" }, Ye = {
125
125
  to: { type: [String, Object] },
126
126
  href: String,
127
127
  target: String,
@@ -129,7 +129,7 @@ var H = /* @__PURE__ */ (function(e) {
129
129
  type: String,
130
130
  default: "noopener noreferrer"
131
131
  }
132
- }, Ze = {
132
+ }, Xe = {
133
133
  valid: {
134
134
  type: Boolean,
135
135
  default: !1
@@ -138,7 +138,7 @@ var H = /* @__PURE__ */ (function(e) {
138
138
  type: [String, Array],
139
139
  default: void 0
140
140
  }
141
- }, Qe = {
141
+ }, Ze = {
142
142
  invalid: {
143
143
  type: Boolean,
144
144
  default: !1
@@ -147,7 +147,7 @@ var H = /* @__PURE__ */ (function(e) {
147
147
  type: [String, Array],
148
148
  default: void 0
149
149
  }
150
- }, $e = {
150
+ }, Qe = {
151
151
  loading: {
152
152
  type: Boolean,
153
153
  default: !1
@@ -156,24 +156,24 @@ var H = /* @__PURE__ */ (function(e) {
156
156
  type: String,
157
157
  default: "Loading..."
158
158
  }
159
- }, q = { disabled: {
159
+ }, J = { disabled: {
160
160
  type: Boolean,
161
161
  default: !1
162
- } }, et = { required: {
162
+ } }, $e = { required: {
163
163
  type: Boolean,
164
164
  default: !1
165
- } }, tt = { selected: {
165
+ } }, et = { selected: {
166
166
  type: Boolean,
167
167
  default: !1
168
- } }, J = { active: {
168
+ } }, Y = { active: {
169
169
  type: Boolean,
170
170
  default: !1
171
- } }, nt = { current: {
171
+ } }, tt = { current: {
172
172
  type: Boolean,
173
173
  default: !1
174
174
  } };
175
- K.clear;
176
- var Y = { pressed: {
175
+ q.clear;
176
+ var nt = { pressed: {
177
177
  type: Boolean,
178
178
  default: !1
179
179
  } }, rt = { label: {
@@ -237,8 +237,8 @@ var Y = { pressed: {
237
237
  },
238
238
  iconPosition: {
239
239
  type: String,
240
- default: Ve.before,
241
- validation: (e) => Object.values(Ve).includes(e)
240
+ default: U.before,
241
+ validator: (e) => Object.values(U).includes(e)
242
242
  }
243
243
  }, ut = { tabindex: {
244
244
  type: [String, Number],
@@ -252,13 +252,13 @@ var Y = { pressed: {
252
252
  } }, pt = { id: [String, Number] }, mt = {
253
253
  placement: {
254
254
  type: String,
255
- default: U.bottom,
256
- validator: (e) => Object.values(U).includes(e) || Object.values(Be).includes(e)
255
+ default: H.bottom,
256
+ validator: (e) => Object.values(H).includes(e) || Object.values(Ve).includes(e)
257
257
  },
258
258
  strategy: {
259
259
  type: String,
260
260
  default: void 0,
261
- validator: (e) => Object.values(ze).includes(e)
261
+ validator: (e) => Object.values(Be).includes(e)
262
262
  },
263
263
  transitionName: {
264
264
  type: String,
@@ -325,12 +325,12 @@ var Y = { pressed: {
325
325
  ...gt,
326
326
  ..._t,
327
327
  ...ut,
328
- ...q,
328
+ ...J,
329
329
  ...Z,
330
+ ...Xe,
330
331
  ...Ze,
331
- ...Qe,
332
332
  ...at,
333
- ...$e,
333
+ ...Qe,
334
334
  ...it,
335
335
  ...st,
336
336
  ...ct,
@@ -350,44 +350,44 @@ var Y = { pressed: {
350
350
  type: String,
351
351
  default: void 0
352
352
  },
353
- ...et
353
+ ...$e
354
354
  };
355
355
  ({
356
356
  ...ht,
357
357
  ...ut,
358
+ ...Xe,
358
359
  ...Ze,
359
- ...Qe,
360
360
  ...at,
361
- ...q,
361
+ ...J,
362
362
  ...Z,
363
363
  ...it,
364
364
  ...rt,
365
365
  ...X,
366
- ...$e
366
+ ...Qe
367
367
  }), {
368
+ ...Xe,
368
369
  ...Ze,
369
- ...Qe,
370
370
  ...ot,
371
371
  ...at,
372
- ...q,
372
+ ...J,
373
373
  ...Z,
374
374
  ...it,
375
375
  ...rt,
376
- ...$e,
377
- ...et
376
+ ...Qe,
377
+ ...$e
378
378
  }, {
379
- ...q,
380
- ...rt,
381
- ...Y,
382
379
  ...J,
380
+ ...rt,
383
381
  ...nt,
384
- ...Xe
385
- }, He.button, W.button;
382
+ ...Y,
383
+ ...tt,
384
+ ...Ye
385
+ }, He.button, Ue.button;
386
386
  var yt = {
387
387
  storageType: {
388
388
  type: String,
389
- default: H.local,
390
- validator: (e) => Object.values(H).includes(e)
389
+ default: V.local,
390
+ validator: (e) => Object.values(V).includes(e)
391
391
  },
392
392
  storageKey: String
393
393
  }, bt = {
@@ -411,8 +411,8 @@ var yt = {
411
411
  type: Boolean,
412
412
  default: !1
413
413
  } }, St = {
414
- ...q,
415
- ...tt,
414
+ ...J,
415
+ ...et,
416
416
  ...ft,
417
417
  ...it,
418
418
  deselectHintLabel: { type: String },
@@ -428,7 +428,7 @@ function Ct(e) {
428
428
  return C(() => String(e?.value || t));
429
429
  }
430
430
  function wt(e, t) {
431
- let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = C(() => n && ae(t)), i = C(() => r.value ? "manual" : void 0);
431
+ let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = C(() => n && y(t)), i = C(() => r.value ? "manual" : void 0);
432
432
  function a() {
433
433
  return (n && e.value?.matches(":popover-open")) ?? !1;
434
434
  }
@@ -465,21 +465,21 @@ function Tt({ reference: e, id: t, expanded: n, aria: i }) {
465
465
  });
466
466
  },
467
467
  render() {
468
- return o(ce, {}, this.$slots.default?.());
468
+ return o(oe, {}, this.$slots.default?.());
469
469
  }
470
470
  })
471
471
  };
472
472
  }
473
473
  function Et({ role: e, ...t }) {
474
474
  let n = C(() => e.value === G.listbox ? We.option : We.presentation);
475
- return te(qe, {
475
+ return te(K, {
476
476
  role: n,
477
477
  ...t
478
478
  }), { itemRole: n };
479
479
  }
480
480
  function Dt({ expanded: e }) {
481
- te(Je, {
482
- role: w(Ue.menuitem),
481
+ te(qe, {
482
+ role: w(W.menuitem),
483
483
  expanded: e
484
484
  });
485
485
  }
@@ -520,72 +520,107 @@ var kt = ["popover"], At = [
520
520
  "leaveCancelled"
521
521
  ],
522
522
  setup(t, { expose: r, emit: i }) {
523
- let a = t, o = i, { id: l } = ve(a), p = Ct(l), te = re(), ie = w("auto"), ae = w("auto"), se = w(), y = w(), b = w(), ue = w(), S = C({
524
- get: () => a.reference ?? se.value,
523
+ let a = t, o = i, { id: l } = ve(a), p = Ct(l), te = re(), ie = w(), y = w(), b = w(), se = w(), x = C({
524
+ get: () => a.reference ?? ie.value,
525
525
  set: (e) => {
526
- se.value = e;
526
+ ie.value = e;
527
527
  }
528
- }), { isTopLayer: de, popover: fe, show: me, hide: _e } = wt(y, () => a.topLayer), ye = C(() => de.value ? ze.fixed : a.strategy), E = w(!1);
528
+ }), { isTopLayer: le, popover: ue, show: de, hide: fe } = wt(y, () => a.topLayer), me = C(() => le.value ? Be.fixed : a.strategy), _e = w(!1);
529
529
  c(() => {
530
530
  Se(y.value, () => {
531
- E.value = globalThis.getComputedStyle(y.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
531
+ _e.value = globalThis.getComputedStyle(y.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
532
532
  }, {
533
533
  attributeFilter: ["style"],
534
534
  window: globalThis.window
535
535
  });
536
536
  });
537
- function be(e, t, n) {
537
+ function ye(e, t, n) {
538
538
  return typeof e == "boolean" ? t() : n(e);
539
539
  }
540
- let D = C(() => {
540
+ function E(e) {
541
+ return !e.width && !e.height;
542
+ }
543
+ let be = {
544
+ name: "uncap",
545
+ fn({ elements: e, rects: t, middlewareData: n }) {
546
+ let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
547
+ return n.uncap || !i || E(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
548
+ data: { uncapped: !0 },
549
+ reset: { rects: !0 }
550
+ });
551
+ }
552
+ }, D = C(() => {
541
553
  let e = [];
542
- if (a.autoPlacement ? e.push(be(a.autoPlacement, () => je(), (e) => je(e))) : a.flip && e.push(be(a.flip, () => De({ fallbackStrategy: "initialPlacement" }), (e) => De(e))), a.shift && e.push(be(a.shift, () => Me(), (e) => Me(e))), a.size) {
543
- let t = ({ availableWidth: e, availableHeight: t }) => {
544
- ie.value = `${e}px`, ae.value = `${t}px`;
554
+ a.size && e.push(be), a.offset && e.push(["string", "number"].includes(typeof a.offset) ? M(Number(a.offset)) : M(a.offset));
555
+ let t = typeof a.size == "object" ? a.size.padding : void 0;
556
+ if (a.autoPlacement ? e.push(ye(a.autoPlacement, () => je(), (e) => je(e))) : a.flip && e.push(ye(a.flip, () => De({
557
+ fallbackStrategy: "initialPlacement",
558
+ padding: t
559
+ }), (e) => De({
560
+ padding: t,
561
+ ...e
562
+ }))), a.shift && e.push(ye(a.shift, () => Me(), (e) => Me(e))), a.size) {
563
+ let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
564
+ if (E(r.floating) || _e.value) return;
565
+ let { style: i } = n.floating;
566
+ i.maxWidth = a.triggerWidth && x.value ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
545
567
  };
546
- e.push(be(a.size, () => Oe({ apply: t }), (e) => Oe({
568
+ e.push(ye(a.size, () => Oe({ apply: t }), (e) => Oe({
547
569
  ...e,
548
- apply: t
570
+ apply: (n) => (t(n), e?.apply?.(n))
549
571
  })));
550
572
  }
551
- return a.offset && e.push(["string", "number"].includes(typeof a.offset) ? M(Number(a.offset)) : M(a.offset)), a.arrow && e.push(N({ element: b })), e;
552
- }), { x: xe, y: we, middlewareData: O, placement: Ae, strategy: Ne } = j(S, y, {
553
- whileElementsMounted: (...e) => ke(...e, { animationFrame: ye.value === ze.fixed }),
573
+ return a.arrow && e.push(N({ element: b })), e;
574
+ }), { x: xe, y: we, middlewareData: O, placement: Ae, strategy: Ne, update: P } = j(x, y, {
554
575
  placement: C(() => a.placement),
555
- strategy: ye,
576
+ strategy: me,
556
577
  middleware: D
557
- }), P = C(() => {
558
- if (E.value) return;
559
- let e = a.triggerWidth && S.value ? `${S.value?.offsetWidth}px` : void 0;
578
+ }), F = C(() => {
579
+ if (_e.value) return;
580
+ let e = a.triggerWidth && x.value ? `${x.value?.offsetWidth}px` : void 0;
560
581
  return {
561
582
  position: Ne.value,
562
583
  top: `${we.value ?? 0}px`,
563
584
  left: `${xe.value ?? 0}px`,
564
- maxWidth: e ? void 0 : ie.value,
565
- maxHeight: ae.value,
566
585
  width: e
567
586
  };
568
- }), F = C(() => Ae.value.split("-")[0]), Pe = C(() => {
569
- if (E.value) return;
587
+ }), Pe = C(() => Ae.value.split("-")[0]), Fe = C(() => {
588
+ if (_e.value) return;
570
589
  let e = {
571
- [U.top]: U.bottom,
572
- [U.right]: U.left,
573
- [U.bottom]: U.top,
574
- [U.left]: U.right
575
- }[F.value];
590
+ [H.top]: H.bottom,
591
+ [H.right]: H.left,
592
+ [H.bottom]: H.top,
593
+ [H.left]: H.right
594
+ }[Pe.value];
576
595
  return {
577
596
  left: O.value.arrow?.x === void 0 ? void 0 : `${O.value.arrow?.x}px`,
578
597
  top: O.value.arrow?.y === void 0 ? void 0 : `${O.value.arrow?.y}px`,
579
598
  [e]: `${-(b.value?.offsetWidth ?? 0) / 2}px`
580
599
  };
581
- }), Fe = Ce(a, "modelValue", o), Ie = w(!1), I = C({
582
- get: () => Fe.value ?? Ie.value,
600
+ }), Ie = Ce(a, "modelValue", o), Le = w(!1), I = C({
601
+ get: () => Ie.value ?? Le.value,
583
602
  set: (e) => {
584
- Fe.value === void 0 ? Ie.value = e : Fe.value = e;
603
+ Ie.value === void 0 ? Le.value = e : Ie.value = e;
585
604
  }
586
605
  });
587
- ee(() => {
588
- I.value && me();
606
+ _([
607
+ I,
608
+ x,
609
+ y,
610
+ me
611
+ ], ([e, t, n, r], i, a) => {
612
+ !e || !t || !n || a(ke(t, n, P, { animationFrame: r === Be.fixed }));
613
+ }, {
614
+ flush: "post",
615
+ immediate: !0
616
+ }), Se(se, () => {
617
+ I.value && P();
618
+ }, {
619
+ childList: !0,
620
+ subtree: !0,
621
+ characterData: !0
622
+ }), ee(() => {
623
+ I.value && de();
589
624
  });
590
625
  function L() {
591
626
  I.value = !0;
@@ -597,52 +632,52 @@ var kt = ["popover"], At = [
597
632
  I.value = !I.value;
598
633
  }
599
634
  function B(e) {
600
- S.value = e;
635
+ x.value = e;
601
636
  }
602
637
  Te(y, () => {
603
638
  !a.keepOpen && I.value && (I.value = !1);
604
- }, { ignore: [S] });
605
- let V = C(() => S.value?.getAttribute?.("id") ?? void 0), Le = C(() => ({
639
+ }, { ignore: [x] });
640
+ let Re = C(() => x.value?.getAttribute?.("id") ?? void 0), ze = C(() => ({
606
641
  "aria-controls": p.value,
607
642
  "aria-haspopup": !0,
608
643
  "aria-expanded": I.value
609
- })), { component: Re, bus: H } = Tt({
610
- reference: S,
644
+ })), { component: V, bus: Ve } = Tt({
645
+ reference: x,
611
646
  id: p,
612
647
  expanded: I,
613
- aria: Le
648
+ aria: ze
614
649
  });
615
- H.on("click", z);
616
- let { role: Be, modifiers: Ve } = ve(a), He = Ot("vv-dropdown", Ve, C(() => ({ arrow: a.arrow }))), { focused: W } = Ee(y);
617
- function Ue(e) {
650
+ Ve.on("click", z);
651
+ let { role: U, modifiers: He } = ve(a), Ue = Ot("vv-dropdown", He, C(() => ({ arrow: a.arrow }))), { focused: W } = Ee(y);
652
+ function G(e) {
618
653
  return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
619
654
  }
620
- function G() {
655
+ function We() {
621
656
  f(() => {
622
- let e = Ue(y.value);
657
+ let e = G(y.value);
623
658
  e.length > 0 && e[0].focus({ preventScroll: !0 });
624
659
  });
625
660
  }
626
- function We() {
661
+ function Ge() {
627
662
  f(() => {
628
- let e = Ue(ue.value);
663
+ let e = G(se.value);
629
664
  e.length > 0 && e[0].focus({ preventScroll: !0 });
630
665
  });
631
666
  }
632
- function Ge() {
667
+ function Ke() {
633
668
  f(() => {
634
669
  if (W.value) {
635
- let e = Ue(y.value);
670
+ let e = G(y.value);
636
671
  if (e.length === 0 || !document.activeElement) return;
637
672
  let t = e.indexOf(document.activeElement);
638
673
  t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
639
674
  }
640
675
  });
641
676
  }
642
- function Ke() {
677
+ function K() {
643
678
  f(() => {
644
679
  if (W.value) {
645
- let e = Ue(y.value);
680
+ let e = G(y.value);
646
681
  if (e.length === 0 || !document.activeElement) return;
647
682
  let t = e.indexOf(document.activeElement);
648
683
  if (t > 0) {
@@ -654,20 +689,20 @@ var kt = ["popover"], At = [
654
689
  });
655
690
  }
656
691
  _(I, (e) => {
657
- e && a.autofocusFirst && G();
692
+ e && a.autofocusFirst && We();
658
693
  }), r({
659
694
  toggle: z,
660
695
  show: L,
661
696
  hide: R,
662
697
  init: B,
663
- focusFirst: G,
664
- focusFirstListElement: We,
665
- focusNext: Ge,
666
- focusPrev: Ke,
667
- customPosition: E
698
+ focusFirst: We,
699
+ focusFirstListElement: Ge,
700
+ focusNext: Ke,
701
+ focusPrev: K,
702
+ customPosition: _e
668
703
  });
669
704
  let { itemRole: qe } = Et({
670
- role: Be,
705
+ role: U,
671
706
  expanded: I,
672
707
  focused: W,
673
708
  hovered: k(y)
@@ -675,31 +710,31 @@ var kt = ["popover"], At = [
675
710
  A("Escape", (e) => {
676
711
  I.value && (e.preventDefault(), R());
677
712
  }), A("ArrowDown", (e) => {
678
- I.value && W.value && (e.preventDefault(), Ge());
679
- }), A("ArrowUp", (e) => {
680
713
  I.value && W.value && (e.preventDefault(), Ke());
714
+ }), A("ArrowUp", (e) => {
715
+ I.value && W.value && (e.preventDefault(), K());
681
716
  }), A([" ", "Enter"], (e) => {
682
717
  let t = e.target;
683
718
  I.value && W.value && t && t?.click();
684
719
  });
685
- let Je = {
720
+ let q = {
686
721
  "before-enter": () => {
687
- o(I.value ? "beforeExpand" : "beforeCollapse"), o("beforeEnter");
722
+ o("beforeExpand"), o("beforeEnter");
688
723
  },
689
724
  "after-leave": () => {
690
- I.value || _e(), o(I.value ? "afterExpand" : "afterCollapse"), o("afterLeave");
725
+ I.value || fe(), o("afterCollapse"), o("afterLeave");
691
726
  },
692
727
  enter: () => {
693
728
  o("enter");
694
729
  },
695
730
  "after-enter": () => {
696
- o("afterEnter");
731
+ o("afterExpand"), o("afterEnter");
697
732
  },
698
733
  "enter-cancelled": () => {
699
734
  o("enterCancelled");
700
735
  },
701
736
  "before-leave": () => {
702
- o("beforeLeave");
737
+ o("beforeCollapse"), o("beforeLeave");
703
738
  },
704
739
  leave: () => {
705
740
  o("leave");
@@ -708,29 +743,29 @@ var kt = ["popover"], At = [
708
743
  o("leaveCancelled");
709
744
  }
710
745
  };
711
- return (t, r) => (u(), T(ce, null, [ge(m(Re), null, {
746
+ return (t, r) => (u(), T(oe, null, [ge(m(V), null, {
712
747
  default: e(() => [n(t.$slots, "default", g(h({
713
748
  init: B,
714
749
  show: L,
715
750
  hide: R,
716
751
  toggle: z,
717
752
  expanded: m(I),
718
- aria: m(Le)
753
+ aria: m(ze)
719
754
  })))]),
720
755
  _: 3
721
- }), ge(pe, d({ name: t.transitionName }, ne(Je), { persisted: "" }), {
722
- default: e(() => [le(x("div", {
756
+ }), ge(pe, d({ name: t.transitionName }, ne(q), { persisted: "" }), {
757
+ default: e(() => [ce(S("div", {
723
758
  ref_key: "floatingEl",
724
759
  ref: y,
725
- popover: m(fe),
726
- style: s(m(P)),
727
- class: he(m(He))
760
+ popover: m(ue),
761
+ style: s(m(F)),
762
+ class: he(m(Ue))
728
763
  }, [
729
764
  a.arrow ? (u(), T("div", {
730
765
  key: 0,
731
766
  ref_key: "arrowEl",
732
767
  ref: b,
733
- style: s(m(Pe)),
768
+ style: s(m(Fe)),
734
769
  class: "vv-dropdown__arrow"
735
770
  }, null, 4)) : v("v-if", !0),
736
771
  n(t.$slots, "before", g(h({
@@ -739,13 +774,13 @@ var kt = ["popover"], At = [
739
774
  toggle: z,
740
775
  expanded: m(I)
741
776
  }))),
742
- x("div", d(m(te), {
777
+ S("div", d(m(te), {
743
778
  id: m(p),
744
779
  ref_key: "listEl",
745
- ref: ue,
780
+ ref: se,
746
781
  tabindex: m(I) ? void 0 : -1,
747
- role: m(Be),
748
- "aria-labelledby": m(V),
782
+ role: m(U),
783
+ "aria-labelledby": m(Re),
749
784
  class: "vv-dropdown__list"
750
785
  }), [n(t.$slots, "items", g(h({
751
786
  show: L,
@@ -760,13 +795,13 @@ var kt = ["popover"], At = [
760
795
  toggle: z,
761
796
  expanded: m(I)
762
797
  })))
763
- ], 14, kt), [[oe, m(I)]])]),
798
+ ], 14, kt), [[ae, m(I)]])]),
764
799
  _: 3
765
800
  }, 16, ["name"])], 64));
766
801
  }
767
802
  });
768
803
  function Mt() {
769
- return S(qe, {});
804
+ return ue(K, {});
770
805
  }
771
806
  var Nt = /* @__PURE__ */ r({
772
807
  name: "VvDropdownItem",
@@ -792,14 +827,14 @@ var Nt = /* @__PURE__ */ r({
792
827
  selected: r.selected,
793
828
  unselectable: r.unselectable && r.selected
794
829
  }))), s = C(() => r.selected ? r.unselectable ? r.deselectHintLabel : r.selectedHintLabel : r.disabled ? "" : r.selectHintLabel);
795
- return (t, r) => (u(), b(Nt, {
830
+ return (t, r) => (u(), x(Nt, {
796
831
  class: he(m(o)),
797
832
  tabindex: t.disabled ? -1 : 0,
798
833
  "aria-selected": t.selected,
799
834
  "aria-disabled": t.disabled,
800
835
  "focus-on-hover": t.focusOnHover
801
836
  }, {
802
- default: e(() => [n(t.$slots, "default"), x("span", {
837
+ default: e(() => [n(t.$slots, "default"), S("span", {
803
838
  class: "vv-dropdown-option__hint",
804
839
  title: m(s)
805
840
  }, [n(t.$slots, "hint", g(h({
@@ -818,7 +853,7 @@ var Nt = /* @__PURE__ */ r({
818
853
  }
819
854
  });
820
855
  function It() {
821
- return S(Ge, void 0);
856
+ return ue(Ge, void 0);
822
857
  }
823
858
  var Q = /* @__PURE__ */ r({
824
859
  name: "VvIcon",
@@ -839,7 +874,7 @@ var Q = /* @__PURE__ */ r({
839
874
  onLoad: { type: Function },
840
875
  svg: {},
841
876
  modifiers: {}
842
- }, Ye),
877
+ }, Je),
843
878
  setup(e) {
844
879
  let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = It(), { modifiers: a } = ve(t), o = Ot("vv-icon", a), s = C(() => t.provider || i?.iconsProvider), c = C(() => {
845
880
  let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
@@ -865,7 +900,7 @@ var Q = /* @__PURE__ */ r({
865
900
  e && f(e), r.value = !0;
866
901
  }).catch((e) => {
867
902
  throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
868
- })), t.svg && f(t.svg), (t, i) => m(r) ? (u(), b(m(D), d({
903
+ })), t.svg && f(t.svg), (t, i) => m(r) ? (u(), x(m(D), d({
869
904
  key: 0,
870
905
  class: m(o)
871
906
  }, {
@@ -944,19 +979,19 @@ var Q = /* @__PURE__ */ r({
944
979
  multiple: Boolean,
945
980
  iconShowPassword: {
946
981
  type: [String, Object],
947
- default: K.showPassword
982
+ default: q.showPassword
948
983
  },
949
984
  iconHidePassword: {
950
985
  type: [String, Object],
951
- default: K.hidePassword
986
+ default: q.hidePassword
952
987
  },
953
988
  iconClear: {
954
989
  type: [String, Object],
955
- default: K.clear
990
+ default: q.clear
956
991
  },
957
992
  iconRemoveSuggestion: {
958
993
  type: [String, Object],
959
- default: K.remove
994
+ default: q.remove
960
995
  },
961
996
  labelStepUp: {
962
997
  type: String,
@@ -1018,13 +1053,13 @@ var Q = /* @__PURE__ */ r({
1018
1053
  }
1019
1054
  };
1020
1055
  function zt(e, t) {
1021
- let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === Ve.before ? n.value : void 0), i = C(() => t?.value === Ve.after ? n.value : void 0);
1056
+ let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === U.before ? n.value : void 0), i = C(() => t?.value === U.after ? n.value : void 0);
1022
1057
  return {
1023
1058
  hasIcon: n,
1024
- hasIconLeft: C(() => t?.value === U.left ? n.value : void 0),
1025
- hasIconRight: C(() => t?.value === U.right ? n.value : void 0),
1026
- hasIconTop: C(() => t?.value === U.top ? n.value : void 0),
1027
- hasIconBottom: C(() => t?.value === U.bottom ? n.value : void 0),
1059
+ hasIconLeft: C(() => t?.value === H.left ? n.value : void 0),
1060
+ hasIconRight: C(() => t?.value === H.right ? n.value : void 0),
1061
+ hasIconTop: C(() => t?.value === H.top ? n.value : void 0),
1062
+ hasIconBottom: C(() => t?.value === H.bottom ? n.value : void 0),
1028
1063
  hasIconBefore: r,
1029
1064
  hasIconAfter: i
1030
1065
  };
@@ -1094,11 +1129,11 @@ var Bt = r({
1094
1129
  },
1095
1130
  iconShow: {
1096
1131
  type: [String, Object],
1097
- default: K.showPassword
1132
+ default: q.showPassword
1098
1133
  },
1099
1134
  iconHide: {
1100
1135
  type: [String, Object],
1101
- default: K.hidePassword
1136
+ default: q.hidePassword
1102
1137
  }
1103
1138
  },
1104
1139
  emits: ["toggle-password"],
@@ -1264,7 +1299,7 @@ function Gt(e, t, n) {
1264
1299
  }
1265
1300
  function Kt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
1266
1301
  let a, o, s = C(() => {
1267
- let e = ae(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
1302
+ let e = y(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
1268
1303
  return Number.isNaN(t) ? 0 : t;
1269
1304
  });
1270
1305
  function c() {
@@ -1275,7 +1310,7 @@ function Kt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
1275
1310
  let e = i(o.value);
1276
1311
  return c(), t("update:modelValue", e), e;
1277
1312
  }
1278
- return y(c), {
1313
+ return se(c), {
1279
1314
  model: C({
1280
1315
  get: () => r(e?.value),
1281
1316
  set: (e) => {
@@ -1300,21 +1335,21 @@ function Jt(e, t) {
1300
1335
  formatted: C(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
1301
1336
  };
1302
1337
  }
1303
- function Yt(e, t = H.local, n) {
1338
+ function Yt(e, t = V.local, n) {
1304
1339
  let r = w();
1305
1340
  n && (r.value = n);
1306
1341
  let i;
1307
1342
  return c(() => {
1308
1343
  e && _(e, (e, n) => {
1309
- let a = m(t) === H.session ? sessionStorage : localStorage;
1344
+ let a = m(t) === V.session ? sessionStorage : localStorage;
1310
1345
  n && n !== e && a.removeItem(n), e ? (i = we(e, i?.value ?? r.value, a), i.value && (r.value = i.value)) : i = void 0;
1311
- }, { immediate: !0 }), se(t) && _(t, (t, n) => {
1346
+ }, { immediate: !0 }), b(t) && _(t, (t, n) => {
1312
1347
  if (e?.value) {
1313
1348
  if (t) {
1314
- let n = t === H.session ? sessionStorage : localStorage;
1349
+ let n = t === V.session ? sessionStorage : localStorage;
1315
1350
  i = we(e.value, i?.value ?? r.value, n);
1316
1351
  }
1317
- n && n !== t && (n === H.session ? sessionStorage : localStorage).removeItem(e.value);
1352
+ n && n !== t && (n === V.session ? sessionStorage : localStorage).removeItem(e.value);
1318
1353
  }
1319
1354
  });
1320
1355
  }), _(r, (e) => {
@@ -1341,8 +1376,8 @@ var Xt = ["for"], Zt = {
1341
1376
  props: Rt,
1342
1377
  emits: Lt,
1343
1378
  setup(t, { expose: r, emit: i }) {
1344
- let o = t, s = i, l = de(), f = It(), p = Gt("VvInputText", Rt, o), { count: ee, debounce: te, icon: ne, iconPosition: re, iconRemoveSuggestion: ae, id: oe, invalid: se, label: y, labelRemoveSuggestion: le, loading: ue, maxlength: S, minlength: fe, modelValue: pe, step: E, storageType: be, type: D, unit: Se, valid: Ce } = ve(o), we = Ct(oe), O = C(() => `${we.value}-hint`), Te = C(() => o.floating && B(o.placeholder) ? " " : o.placeholder), { model: k, flush: A } = Kt(pe, s, te), Ee = C(() => {
1345
- let e = typeof E.value == "number" ? E.value : Number.parseInt(E.value);
1379
+ let o = t, s = i, l = de(), f = It(), p = Gt("VvInputText", Rt, o), { count: ee, debounce: te, icon: ne, iconPosition: re, iconRemoveSuggestion: y, id: ae, invalid: b, label: se, labelRemoveSuggestion: ce, loading: le, maxlength: ue, minlength: fe, modelValue: pe, step: E, storageType: be, type: D, unit: Se, valid: Ce } = ve(o), we = Ct(ae), O = C(() => `${we.value}-hint`), Te = C(() => o.floating && z(o.placeholder) ? " " : o.placeholder), { model: k, flush: A } = Kt(pe, s, te), Ee = C(() => {
1380
+ let e = Number(E.value);
1346
1381
  return !Number.isNaN(e) && e % 60 != 0;
1347
1382
  }), De = /^-0?[.,]?[0*]?$/, Oe = /./, ke = /^-$|^$/, Ae = w(!1), j = w(), M = w(), { el: je, mask: Me, typed: N, masked: P, unmasked: F } = Ne(C(() => {
1348
1383
  if (!o.iMask) return { mask: Oe };
@@ -1360,7 +1395,7 @@ var Xt = ["for"], Zt = {
1360
1395
  return;
1361
1396
  }
1362
1397
  if (D.value === $.DATETIME_LOCAL || D.value === $.DATE || D.value === $.TIME || D.value === $.MONTH) {
1363
- L();
1398
+ I();
1364
1399
  return;
1365
1400
  }
1366
1401
  !k.value && !F.value || (k.value = F.value);
@@ -1373,14 +1408,14 @@ var Xt = ["for"], Zt = {
1373
1408
  k.value = void 0;
1374
1409
  } else De.test(F.value) ? k.value = 0 : typeof N.value == "number" ? k.value = N.value : k.value = Number(N.value);
1375
1410
  }
1376
- function I(e) {
1411
+ function Le(e) {
1377
1412
  let t = new Date(j.value || M.value);
1378
1413
  if ((D.value === $.DATETIME_LOCAL || D.value === $.DATE || D.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (D.value === $.DATETIME_LOCAL || D.value === $.DATE) && t.setDate(e.getDate()), (D.value === $.DATETIME_LOCAL || D.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), j.value instanceof Date) {
1379
1414
  if (k.value?.getTime() === t.getTime()) return;
1380
1415
  k.value = t;
1381
1416
  } else k.value = t.toISOString();
1382
1417
  }
1383
- function L() {
1418
+ function I() {
1384
1419
  let e = D.value;
1385
1420
  if (!N.value) {
1386
1421
  if (!k.value) return;
@@ -1396,17 +1431,17 @@ var Xt = ["for"], Zt = {
1396
1431
  return;
1397
1432
  }
1398
1433
  let t = N.value;
1399
- t instanceof Date || (t = z(N.value, e)), j.value || M.value ? I(t) : k.value = Fe(t, e, Ee.value);
1434
+ t instanceof Date || (t = R(N.value, e)), j.value || M.value ? Le(t) : k.value = Fe(t, e, Ee.value);
1400
1435
  }
1401
- function R(e) {
1436
+ function L(e) {
1402
1437
  if (e == null) N.value = "", F.value = "";
1403
1438
  else if (o.iMask?.mask === Date) N.value = e instanceof Date ? e : new Date(e);
1404
1439
  else if (!(D.value === $.NUMBER && De.test(F.value) && e === 0)) {
1405
1440
  if (dt.value) {
1406
1441
  if (e instanceof Date || Pe(e)) {
1407
- if (e instanceof Date ? (j.value = e, M.value = void 0) : (M.value = e, j.value = void 0), D.value !== $.WEEK) {
1408
- let t = new Date(e), n = D.value;
1409
- N.value = Fe(t, n, Ee.value), F.value = N.value;
1442
+ if (e instanceof Date ? (j.value = e, M.value = void 0) : (M.value = e, j.value = void 0), ft.value) {
1443
+ let t = new Date(e);
1444
+ N.value = Fe(t, ft.value, Ee.value), F.value = N.value;
1410
1445
  }
1411
1446
  return;
1412
1447
  }
@@ -1416,105 +1451,105 @@ var Xt = ["for"], Zt = {
1416
1451
  }
1417
1452
  }
1418
1453
  c(() => {
1419
- Me.value && (Ae.value = !0, R(o.modelValue));
1454
+ Me.value && (Ae.value = !0, L(o.modelValue));
1420
1455
  }), _(() => o.modelValue, (e) => {
1421
- Me.value && R(e);
1456
+ Me.value && L(e);
1422
1457
  }), _(() => o.masked, (e) => {
1423
1458
  P.value = e ?? "";
1424
1459
  });
1425
- let V = je, Le = w(), H = w(), ze = w();
1460
+ let B = je, Re = w(), V = w(), Be = w();
1426
1461
  r({
1427
- $input: V,
1428
- $inner: Le,
1429
- $wrapper: H,
1462
+ $input: B,
1463
+ $inner: Re,
1464
+ $wrapper: V,
1430
1465
  flush: A
1431
1466
  });
1432
- let { focused: U } = qt(V, s), Be = C(() => U.value && !o.disabled && !o.readonly);
1433
- function Ve(e) {
1434
- e ? He() : W();
1467
+ let { focused: H } = qt(B, s), Ve = C(() => H.value && !o.disabled && !o.readonly);
1468
+ function U(e) {
1469
+ e ? He() : Ue();
1435
1470
  }
1436
1471
  function He() {
1437
- p.value.selectOnFocus && V.value && V.value.select(), Z.value.size && ze.value?.show();
1472
+ p.value.selectOnFocus && B.value && B.value.select(), Z.value.size && Be.value?.show();
1438
1473
  }
1439
- function W() {
1474
+ function Ue() {
1440
1475
  let e = A() ?? k.value;
1441
- if (!X.value || B(e)) return;
1476
+ if (!X.value || z(e)) return;
1442
1477
  let t = o.maxSuggestions;
1443
1478
  X.value.size >= t && !X.value.has(e) && (X.value = new Set([...X.value].slice(X.value.size - t + 1))), X.value.add(e);
1444
1479
  }
1445
- _(Be, Ve);
1446
- let Ue = xe(V);
1447
- _(Ue, (e) => {
1448
- e && o.autofocus && !o.disabled && !o.readonly && (U.value = !0);
1480
+ _(Ve, U);
1481
+ let W = xe(B);
1482
+ _(W, (e) => {
1483
+ e && o.autofocus && !o.disabled && !o.readonly && (H.value = !0);
1449
1484
  });
1450
1485
  let G = w(!1), We = C(() => o.type === $.PASSWORD);
1451
1486
  function Ge() {
1452
1487
  G.value = !G.value;
1453
1488
  }
1454
- let Ke = C(() => dt.value), qe = C(() => o.type === $.NUMBER);
1455
- function Je() {
1456
- if (!J.value) {
1489
+ let Ke = C(() => dt.value), K = C(() => o.type === $.NUMBER);
1490
+ function qe() {
1491
+ if (!Y.value) {
1457
1492
  if (o.iMask) {
1458
1493
  N.value = Number(N.value) + Number(E?.value ?? 1);
1459
1494
  return;
1460
1495
  }
1461
- V.value.stepUp(), k.value = Number(V.value.value);
1496
+ B.value.stepUp(), k.value = Number(B.value.value);
1462
1497
  }
1463
1498
  }
1464
- function Ye() {
1465
- if (!J.value) {
1499
+ function Je() {
1500
+ if (!Y.value) {
1466
1501
  if (o.iMask) {
1467
1502
  N.value = Number(N.value) - Number(E?.value ?? 1);
1468
1503
  return;
1469
1504
  }
1470
- V.value.stepDown(), k.value = Number(V.value.value);
1505
+ B.value.stepDown(), k.value = Number(B.value.value);
1471
1506
  }
1472
1507
  }
1473
- let Xe = C(() => o.type === $.SEARCH);
1474
- function Ze() {
1508
+ let Ye = C(() => o.type === $.SEARCH);
1509
+ function Xe() {
1475
1510
  k.value = "", s("clear");
1476
1511
  }
1477
- let { hasIconBefore: Qe, hasIconAfter: $e } = zt(ne, re), q = C(() => {
1478
- if ($e.value !== void 0) return $e.value;
1512
+ let { hasIconBefore: Ze, hasIconAfter: Qe } = zt(ne, re), J = C(() => {
1513
+ if (Qe.value !== void 0) return Qe.value;
1479
1514
  switch (o.type) {
1480
- case $.COLOR: return { name: K.showColorPicker };
1515
+ case $.COLOR: return { name: q.showColorPicker };
1481
1516
  case $.DATE:
1482
1517
  case $.DATETIME_LOCAL:
1483
1518
  case $.WEEK:
1484
- case $.MONTH: return { name: K.showDatePicker };
1485
- case $.TIME: return { name: K.showTimePicker };
1519
+ case $.MONTH: return { name: q.showDatePicker };
1520
+ case $.TIME: return { name: q.showTimePicker };
1486
1521
  }
1487
- }), { hasIcon: et } = zt(ae), { formatted: tt } = Jt(k, {
1522
+ }), { hasIcon: $e } = zt(y), { formatted: et } = Jt(k, {
1488
1523
  mode: ee.value,
1489
- upperLimit: Number(S?.value),
1524
+ upperLimit: Number(ue?.value),
1490
1525
  lowerLimit: Number(fe?.value)
1491
- }), J = C(() => o.disabled || o.readonly), nt = C(() => J.value ? -1 : o.tabindex), Y = C(() => !B(pe?.value)), rt = C(() => {
1492
- if (se.value === !0) return !0;
1526
+ }), Y = C(() => o.disabled || o.readonly), tt = C(() => Y.value ? -1 : o.tabindex), nt = C(() => !z(pe?.value)), rt = C(() => {
1527
+ if (b.value === !0) return !0;
1493
1528
  if (Ce.value === !0) return !1;
1494
1529
  }), X = Yt(C(() => o.storageKey ?? (f?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), be, /* @__PURE__ */ new Set()), Z = C(() => {
1495
1530
  let e = /* @__PURE__ */ new Map();
1496
1531
  if (X.value) for (let t of X.value) e.set(t, { isFromStorage: !0 });
1497
1532
  if (o.suggestions) for (let t of o.suggestions) e.set(t, { isFromStorage: !1 });
1498
1533
  return e;
1499
- }), it = C(() => Z.value.size === 0 ? [] : [...Z.value.entries()].filter(([e]) => B(k.value) || `${e}`.toLowerCase().includes(`${k.value}`.toLowerCase()) && e !== k.value).reverse().map(([e]) => e)), at = C(() => Z.value.size > 0);
1534
+ }), it = C(() => Z.value.size === 0 ? [] : [...Z.value.entries()].filter(([e]) => z(k.value) || `${e}`.toLowerCase().includes(`${k.value}`.toLowerCase()) && e !== k.value).reverse().map(([e]) => e)), at = C(() => Z.value.size > 0);
1500
1535
  function ot(e) {
1501
- k.value = e, ze.value?.hide(), s("suggestion:selected", e);
1536
+ k.value = e, Be.value?.hide(), s("suggestion:selected", e);
1502
1537
  }
1503
1538
  function st(e) {
1504
1539
  Z.value.get(e)?.isFromStorage && (X.value?.delete(e), s("suggestion:removed", e));
1505
1540
  }
1506
1541
  let { modifiers: ct } = ve(o), lt = Ot("vv-input-text", ct, C(() => ({
1507
1542
  valid: Ce.value,
1508
- invalid: se.value,
1509
- loading: ue.value,
1543
+ invalid: b.value,
1544
+ loading: le.value,
1510
1545
  disabled: o.disabled,
1511
1546
  required: o.required,
1512
1547
  readonly: o.readonly,
1513
- "icon-before": !!Qe.value,
1514
- "icon-after": !!q.value,
1515
- floating: o.floating && !B(o.label),
1516
- dirty: Y.value,
1517
- focus: Be.value && !J.value,
1548
+ "icon-before": !!Ze.value,
1549
+ "icon-after": !!J.value,
1550
+ floating: o.floating && !z(o.label),
1551
+ dirty: nt.value,
1552
+ focus: Ve.value && !Y.value,
1518
1553
  "auto-width": o.autoWidth
1519
1554
  }))), ut = C(() => [
1520
1555
  $.TEXT,
@@ -1529,18 +1564,27 @@ var Xt = ["for"], Zt = {
1529
1564
  $.WEEK,
1530
1565
  $.TIME,
1531
1566
  $.DATETIME_LOCAL
1532
- ].includes(D.value)), ft = C(() => [
1567
+ ].includes(D.value)), ft = C(() => dt.value && D.value !== $.WEEK ? D.value : void 0), pt = C(() => [
1533
1568
  $.TEXT,
1534
1569
  $.SEARCH,
1535
1570
  $.URL,
1536
1571
  $.TEL,
1537
1572
  $.EMAIL,
1538
1573
  $.PASSWORD
1539
- ].includes(D.value)), pt = C(() => {
1540
- let e = We.value && G.value || Ke.value && !Y.value && !U.value || o.iMask ? $.TEXT : o.type, t = {
1574
+ ].includes(D.value)), mt = {
1575
+ [$.DATE]: "9999-12-31",
1576
+ [$.DATETIME_LOCAL]: "9999-12-31T23:59:59.999",
1577
+ [$.MONTH]: "9999-12",
1578
+ [$.WEEK]: "9999-W52"
1579
+ };
1580
+ function ht(e) {
1581
+ if (!z(e)) return (e instanceof Date || typeof e == "string" && Pe(e)) && ft.value ? Fe(e, ft.value, Ee.value) || void 0 : String(e);
1582
+ }
1583
+ let gt = C(() => {
1584
+ let e = We.value && G.value || Ke.value && !nt.value && !H.value || o.iMask ? $.TEXT : o.type, t = {
1541
1585
  type: e,
1542
1586
  name: o.name,
1543
- tabindex: nt.value,
1587
+ tabindex: tt.value,
1544
1588
  disabled: o.disabled,
1545
1589
  readonly: o.readonly,
1546
1590
  required: o.required,
@@ -1548,37 +1592,33 @@ var Xt = ["for"], Zt = {
1548
1592
  "aria-label": o.ariaLabel || void 0,
1549
1593
  "aria-labelledby": o.ariaLabelledby || void 0,
1550
1594
  "aria-invalid": rt.value,
1551
- "aria-describedby": [o.ariaDescribedby, gt.value ? O.value : void 0].filter(Boolean).join(" ") || void 0,
1552
- "aria-errormessage": _t.value ? O.value : void 0,
1595
+ "aria-describedby": [o.ariaDescribedby, yt.value ? O.value : void 0].filter(Boolean).join(" ") || void 0,
1596
+ "aria-errormessage": bt.value ? O.value : void 0,
1553
1597
  inputMode: o.inputMode
1554
1598
  };
1555
- if (dt.value || e === $.NUMBER) {
1556
- let n = o.max;
1557
- e === $.DATE && !n && (n = "9999-12-31"), t.step = o.step, t.max = n === void 0 ? void 0 : String(n), t.min = o.min === void 0 ? void 0 : String(o.min);
1558
- }
1559
- return (ut.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = Te.value), ft.value && (t.minlength = o.minlength, t.maxlength = o.maxlength, t.pattern = o.pattern), e === $.EMAIL && (t.multiple = o.multiple), t;
1560
- }), mt = C(() => ({
1599
+ return (dt.value || e === $.NUMBER) && (t.step = o.step, t.max = ht(o.max) ?? mt[e], t.min = ht(o.min)), (ut.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = Te.value), pt.value && (t.minlength = o.minlength, t.maxlength = o.maxlength, t.pattern = o.pattern), e === $.EMAIL && (t.multiple = o.multiple), t;
1600
+ }), _t = C(() => ({
1561
1601
  valid: o.valid,
1562
1602
  invalid: o.invalid,
1563
1603
  modelValue: o.modelValue,
1564
1604
  togglePassword: Ge,
1565
- stepUp: Je,
1566
- stepDown: Ye,
1567
- clear: Ze
1568
- })), { HintSlot: ht, hasHintLabelOrSlot: gt, hasInvalidLabelOrSlot: _t, hintSlotScope: vt } = Re(p, l), yt = Ut($.PASSWORD, o, Y), bt = Ut($.NUMBER, o, Y), xt = Ut($.SEARCH, o, Y);
1569
- function St() {
1570
- J.value || (U.value = !0);
1605
+ stepUp: qe,
1606
+ stepDown: Je,
1607
+ clear: Xe
1608
+ })), { HintSlot: vt, hasHintLabelOrSlot: yt, hasInvalidLabelOrSlot: bt, hintSlotScope: xt } = ze(p, l), St = Ut($.PASSWORD, o, nt), wt = Ut($.NUMBER, o, nt), Tt = Ut($.SEARCH, o, nt);
1609
+ function Et() {
1610
+ Y.value || (H.value = !0);
1571
1611
  }
1572
- let wt = C(() => {
1612
+ let Dt = C(() => {
1573
1613
  if (o.autoWidth) return { width: k.value === void 0 ? void 0 : `${String(k.value).length + 1}ch` };
1574
1614
  });
1575
- function Tt(e) {
1615
+ function kt(e) {
1576
1616
  switch (e.code) {
1577
1617
  case "ArrowUp":
1578
- qe.value && (Je(), e.preventDefault());
1618
+ K.value && (qe(), e.preventDefault());
1579
1619
  break;
1580
1620
  case "ArrowDown":
1581
- qe.value && (Ye(), e.preventDefault());
1621
+ K.value && (Je(), e.preventDefault());
1582
1622
  break;
1583
1623
  case "Enter":
1584
1624
  case "NumpadEnter": A();
@@ -1586,96 +1626,96 @@ var Xt = ["for"], Zt = {
1586
1626
  s("keydown", e);
1587
1627
  }
1588
1628
  return (t, r) => (u(), T("div", { class: he(m(lt)) }, [
1589
- m(y) ? (u(), T("label", {
1629
+ m(se) ? (u(), T("label", {
1590
1630
  key: 0,
1591
1631
  for: m(we),
1592
1632
  class: "vv-input-text__label"
1593
- }, a(m(y)), 9, Xt)) : v("v-if", !0),
1594
- x("div", {
1633
+ }, a(m(se)), 9, Xt)) : v("v-if", !0),
1634
+ S("div", {
1595
1635
  ref_key: "wrapperEl",
1596
- ref: H,
1636
+ ref: V,
1597
1637
  class: "vv-input-text__wrapper"
1598
1638
  }, [
1599
- t.$slots.before ? (u(), T("div", Zt, [n(t.$slots, "before", g(h(m(mt))))])) : v("v-if", !0),
1600
- x("div", {
1639
+ t.$slots.before ? (u(), T("div", Zt, [n(t.$slots, "before", g(h(m(_t))))])) : v("v-if", !0),
1640
+ S("div", {
1601
1641
  ref_key: "innerEl",
1602
- ref: Le,
1642
+ ref: Re,
1603
1643
  class: "vv-input-text__inner",
1604
- onClick: me(St, ["stop"])
1644
+ onClick: me(Et, ["stop"])
1605
1645
  }, [
1606
- m(Qe) ? (u(), b(Q, d({ key: 0 }, m(Qe), { class: "vv-input-text__icon" }), null, 16)) : v("v-if", !0),
1607
- x("input", d({
1646
+ m(Ze) ? (u(), x(Q, d({ key: 0 }, m(Ze), { class: "vv-input-text__icon" }), null, 16)) : v("v-if", !0),
1647
+ S("input", d({
1608
1648
  id: m(we),
1609
1649
  ref_key: "inputEl",
1610
- ref: V
1611
- }, m(pt), {
1612
- style: m(wt),
1650
+ ref: B
1651
+ }, m(gt), {
1652
+ style: m(Dt),
1613
1653
  onKeyup: r[0] ||= (e) => s("keyup", e),
1614
- onKeydown: Tt,
1654
+ onKeydown: kt,
1615
1655
  onKeypress: r[1] ||= (e) => s("keypress", e)
1616
1656
  }), null, 16, Qt),
1617
- (m(Se) || t.$slots.unit) && m(Y) ? (u(), T("div", $t, [n(t.$slots, "unit", g(h(m(mt))), () => [ie(a(m(Se)), 1)])])) : v("v-if", !0)
1657
+ (m(Se) || t.$slots.unit) && m(nt) ? (u(), T("div", $t, [n(t.$slots, "unit", g(h(m(_t))), () => [ie(a(m(Se)), 1)])])) : v("v-if", !0)
1618
1658
  ], 512),
1619
- m(q) ? (u(), b(Q, d({ key: 1 }, m(q), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : m(We) && !t.hideActions && !m(J) ? (u(), b(m(yt), {
1659
+ m(J) ? (u(), x(Q, d({ key: 1 }, m(J), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : m(We) && !t.hideActions && !m(Y) ? (u(), x(m(St), {
1620
1660
  key: 2,
1621
1661
  onTogglePassword: Ge
1622
- })) : m(qe) && !t.hideActions && !m(J) ? (u(), b(m(bt), {
1662
+ })) : m(K) && !t.hideActions && !m(Y) ? (u(), x(m(wt), {
1623
1663
  key: 3,
1624
- onStepUp: Je,
1625
- onStepDown: Ye
1626
- })) : m(Xe) && !t.hideActions && !m(J) ? (u(), b(m(xt), {
1664
+ onStepUp: qe,
1665
+ onStepDown: Je
1666
+ })) : m(Ye) && !t.hideActions && !m(Y) ? (u(), x(m(Tt), {
1627
1667
  key: 4,
1628
- onClear: Ze
1668
+ onClear: Xe
1629
1669
  })) : v("v-if", !0),
1630
- t.$slots.after ? (u(), T("div", en, [n(t.$slots, "after", g(h(m(mt))))])) : v("v-if", !0),
1631
- m(ee) ? (u(), T("span", tn, [n(t.$slots, "count", g(h(m(mt))), () => [ie(a(m(tt)), 1)])])) : v("v-if", !0)
1670
+ t.$slots.after ? (u(), T("div", en, [n(t.$slots, "after", g(h(m(_t))))])) : v("v-if", !0),
1671
+ m(ee) ? (u(), T("span", tn, [n(t.$slots, "count", g(h(m(_t))), () => [ie(a(m(et)), 1)])])) : v("v-if", !0)
1632
1672
  ], 512),
1633
- ge(m(ht), {
1673
+ ge(m(vt), {
1634
1674
  id: m(O),
1635
1675
  class: "vv-input-text__hint"
1636
1676
  }, _e({ _: 2 }, [
1637
1677
  t.$slots.hint ? {
1638
1678
  name: "hint",
1639
- fn: e(() => [n(t.$slots, "hint", g(h(m(vt))))]),
1679
+ fn: e(() => [n(t.$slots, "hint", g(h(m(xt))))]),
1640
1680
  key: "0"
1641
1681
  } : void 0,
1642
1682
  t.$slots.loading ? {
1643
1683
  name: "loading",
1644
- fn: e(() => [n(t.$slots, "loading", g(h(m(vt))))]),
1684
+ fn: e(() => [n(t.$slots, "loading", g(h(m(xt))))]),
1645
1685
  key: "1"
1646
1686
  } : void 0,
1647
1687
  t.$slots.valid ? {
1648
1688
  name: "valid",
1649
- fn: e(() => [n(t.$slots, "valid", g(h(m(vt))))]),
1689
+ fn: e(() => [n(t.$slots, "valid", g(h(m(xt))))]),
1650
1690
  key: "2"
1651
1691
  } : void 0,
1652
1692
  t.$slots.invalid ? {
1653
1693
  name: "invalid",
1654
- fn: e(() => [n(t.$slots, "invalid", g(h(m(vt))))]),
1694
+ fn: e(() => [n(t.$slots, "invalid", g(h(m(xt))))]),
1655
1695
  key: "3"
1656
1696
  } : void 0
1657
1697
  ]), 1032, ["id"]),
1658
- m(at) ? (u(), b(jt, {
1698
+ m(at) ? (u(), x(jt, {
1659
1699
  key: 1,
1660
1700
  ref_key: "suggestionsDropdownEl",
1661
- ref: ze,
1662
- reference: m(H),
1701
+ ref: Be,
1702
+ reference: m(V),
1663
1703
  "autofocus-first": !1,
1664
1704
  "trigger-width": !0,
1665
1705
  "top-layer": m(p).topLayer
1666
1706
  }, {
1667
- items: e(() => [(u(!0), T(ce, null, ye(m(it), (r) => (u(), b(Ft, {
1707
+ items: e(() => [(u(!0), T(oe, null, ye(m(it), (r) => (u(), x(Ft, {
1668
1708
  key: String(r),
1669
1709
  onClick: me((e) => ot(r), ["stop"])
1670
1710
  }, {
1671
- default: e(() => [x("div", nn, [n(t.$slots, "suggestion", d({ ref_for: !0 }, { value: r }), () => [ie(a(r), 1)])]), m(Z).get(r)?.isFromStorage && m(et) ? (u(), T("button", {
1711
+ default: e(() => [S("div", nn, [n(t.$slots, "suggestion", d({ ref_for: !0 }, { value: r }), () => [ie(a(r), 1)])]), m(Z).get(r)?.isFromStorage && m($e) ? (u(), T("button", {
1672
1712
  key: 0,
1673
1713
  type: "button",
1674
1714
  tabindex: "-1",
1675
1715
  class: "cursor-pointer",
1676
- title: m(le),
1716
+ title: m(ce),
1677
1717
  onClick: me((e) => st(r), ["stop"])
1678
- }, [ge(Q, d({ ref_for: !0 }, m(et)), null, 16)], 8, rn)) : v("v-if", !0)]),
1718
+ }, [ge(Q, d({ ref_for: !0 }, m($e)), null, 16)], 8, rn)) : v("v-if", !0)]),
1679
1719
  _: 2
1680
1720
  }, 1032, ["onClick"]))), 128))]),
1681
1721
  _: 3
@@ -1686,4 +1726,4 @@ var Xt = ["for"], Zt = {
1686
1726
  //#endregion
1687
1727
  export { an as default };
1688
1728
 
1689
- //# sourceMappingURL=VvInputText.es-Co9NrR4l.js.map
1729
+ //# sourceMappingURL=VvInputText.es-6IlsXl00.js.map