@8wave/ai-elements 0.106.0-beta.2 → 0.106.0-beta.4

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 (81) hide show
  1. package/dist/_chunks/{PkLazyImg-BoH1s5ni.js → PkLazyImg-Beug40gC.js} +2 -2
  2. package/dist/_chunks/{PkLazyImg-BoH1s5ni.js.map → PkLazyImg-Beug40gC.js.map} +1 -1
  3. package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js → PkToolRequestGeolocation-DUHzWOSe.js} +2 -2
  4. package/dist/_chunks/{PkToolRequestGeolocation-CNAtslfG.js.map → PkToolRequestGeolocation-DUHzWOSe.js.map} +1 -1
  5. package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js → PkToolRequestOAuthConnection-CdtnIiy6.js} +2 -2
  6. package/dist/_chunks/{PkToolRequestOAuthConnection-DNZHj2Kx.js.map → PkToolRequestOAuthConnection-CdtnIiy6.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js → PkToolShowArtifact-B0gZZGvT.js} +3 -3
  8. package/dist/_chunks/{PkToolShowArtifact-Kfm50DPr.js.map → PkToolShowArtifact-B0gZZGvT.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js → PkToolShowCalendarEvent-DpEWSENB.js} +3 -3
  10. package/dist/_chunks/{PkToolShowCalendarEvent-KJXNC-E_.js.map → PkToolShowCalendarEvent-DpEWSENB.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js → PkToolShowComparison-DkHRpM8n.js} +3 -3
  12. package/dist/_chunks/{PkToolShowComparison-C1GPvcNH.js.map → PkToolShowComparison-DkHRpM8n.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js → PkToolShowContactForm-B8YI2e0B.js} +3 -3
  14. package/dist/_chunks/{PkToolShowContactForm-Ws8DysdD.js.map → PkToolShowContactForm-B8YI2e0B.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js → PkToolShowDiagram-vmSzw6s0.js} +3 -3
  16. package/dist/_chunks/{PkToolShowDiagram-CMuKde1V.js.map → PkToolShowDiagram-vmSzw6s0.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js → PkToolShowEmail-BtntDg5l.js} +3 -3
  18. package/dist/_chunks/{PkToolShowEmail-DvA69GLP.js.map → PkToolShowEmail-BtntDg5l.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowForm-CadrjzZx.js → PkToolShowForm-gD0MfOjQ.js} +104 -104
  20. package/dist/_chunks/PkToolShowForm-gD0MfOjQ.js.map +1 -0
  21. package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js → PkToolShowImageGallery-DL-bFOKl.js} +2 -2
  22. package/dist/_chunks/{PkToolShowImageGallery-CosOsHSh.js.map → PkToolShowImageGallery-DL-bFOKl.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js → PkToolShowLocation-DXPAEQCf.js} +3 -3
  24. package/dist/_chunks/{PkToolShowLocation-BLSkytqC.js.map → PkToolShowLocation-DXPAEQCf.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js → PkToolShowMessage-WendSuVW.js} +3 -3
  26. package/dist/_chunks/{PkToolShowMessage-Bb1fhAcX.js.map → PkToolShowMessage-WendSuVW.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js → PkToolShowProductList-_ULcSOL_.js} +3 -3
  28. package/dist/_chunks/{PkToolShowProductList-DkaEOhxY.js.map → PkToolShowProductList-_ULcSOL_.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js → PkToolShowQrCode-BIhYJSTf.js} +3 -3
  30. package/dist/_chunks/{PkToolShowQrCode-GaZJBhqE.js.map → PkToolShowQrCode-BIhYJSTf.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js → PkToolShowSources-BprUew-i.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSources-BcxmwOsZ.js.map → PkToolShowSources-BprUew-i.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js → PkToolShowSuggestedReply-FJMsf1Ft.js} +2 -2
  34. package/dist/_chunks/{PkToolShowSuggestedReply-4S7VvK7s.js.map → PkToolShowSuggestedReply-FJMsf1Ft.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js → PkToolShowVideo-DXQo_Frk.js} +2 -2
  36. package/dist/_chunks/{PkToolShowVideo-CbSNJlH1.js.map → PkToolShowVideo-DXQo_Frk.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js → PkToolShowWeather-Ca-ZrKx3.js} +2 -2
  38. package/dist/_chunks/{PkToolShowWeather-Cr3NJEMI.js.map → PkToolShowWeather-Ca-ZrKx3.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js → PkToolShowWebPages-DxxqCOav.js} +3 -3
  40. package/dist/_chunks/{PkToolShowWebPages-DLpd7Kg0.js.map → PkToolShowWebPages-DxxqCOav.js.map} +1 -1
  41. package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js → VvCheckboxGroup.es-6rXZzFDs.js} +2 -2
  42. package/dist/_chunks/{VvCheckboxGroup.es-DLgx43U_.js.map → VvCheckboxGroup.es-6rXZzFDs.js.map} +1 -1
  43. package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js → VvCombobox.es-DgB4YbSj.js} +409 -409
  44. package/dist/_chunks/{VvCombobox.es-D5zLGtOy.js.map → VvCombobox.es-DgB4YbSj.js.map} +1 -1
  45. package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js → VvInputText.es-UTEISDKU.js} +181 -181
  46. package/dist/_chunks/{VvInputText.es-DWwDzlwZ.js.map → VvInputText.es-UTEISDKU.js.map} +1 -1
  47. package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js → VvRadioGroup.es-CqMnxRGR.js} +2 -2
  48. package/dist/_chunks/{VvRadioGroup.es-BZdnaITO.js.map → VvRadioGroup.es-CqMnxRGR.js.map} +1 -1
  49. package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js → VvSelect.es-BLNrNcIi.js} +6 -6
  50. package/dist/_chunks/{VvSelect.es-BP6Gn5BZ.js.map → VvSelect.es-BLNrNcIi.js.map} +1 -1
  51. package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js → VvTextarea.es-ChkbZSw6.js} +296 -296
  52. package/dist/_chunks/{VvTextarea.es-BuLyBuYz.js.map → VvTextarea.es-ChkbZSw6.js.map} +1 -1
  53. package/dist/_chunks/{dist-vbhhaYbZ.js → dist-Dhop5_et.js} +91 -28
  54. package/dist/_chunks/{dist-vbhhaYbZ.js.map → dist-Dhop5_et.js.map} +1 -1
  55. package/dist/_chunks/{index.es-DFq55nZZ.js → index.es-CNKCTfCu.js} +93 -93
  56. package/dist/_chunks/{index.es-DFq55nZZ.js.map → index.es-CNKCTfCu.js.map} +1 -1
  57. package/dist/_chunks/{index.es-DhjFGu5c.js → index.es-DB9_sQvG.js} +16 -16
  58. package/dist/_chunks/{index.es-DhjFGu5c.js.map → index.es-DB9_sQvG.js.map} +1 -1
  59. package/dist/ai-elements.es.js +2334 -2327
  60. package/dist/ai-elements.es.js.map +1 -1
  61. package/dist-vue/PkChatbot.js +1 -1
  62. package/dist-vue/PkChatbotMessages.js +1 -1
  63. package/dist-vue/PkChatbotViewChat.js +1 -1
  64. package/dist-vue/_chunks/{PkChatbot-a8Wh4tN4.js → PkChatbot-i_07-rvf.js} +76 -68
  65. package/dist-vue/_chunks/PkChatbot-i_07-rvf.js.map +1 -0
  66. package/dist-vue/_chunks/PkChatbotEmptyState-C7W0QgqW.js.map +1 -1
  67. package/dist-vue/_chunks/{PkChatbotMessages-D6rNh6PF.js → PkChatbotMessages-CZLj_OeK.js} +4 -4
  68. package/dist-vue/_chunks/PkChatbotMessages-CZLj_OeK.js.map +1 -0
  69. package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js → PkChatbotViewChat-B6MfjQIa.js} +3 -3
  70. package/dist-vue/_chunks/{PkChatbotViewChat-DUn7M4SL.js.map → PkChatbotViewChat-B6MfjQIa.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js → PkToolShowDiagram-D7jh-yIc.js} +2 -2
  72. package/dist-vue/_chunks/{PkToolShowDiagram-Bbqo6jm8.js.map → PkToolShowDiagram-D7jh-yIc.js.map} +1 -1
  73. package/dist-vue/_chunks/{PkToolShowForm-CJtmt5yd.js → PkToolShowForm-BGp_gbtr.js} +54 -54
  74. package/dist-vue/_chunks/PkToolShowForm-BGp_gbtr.js.map +1 -0
  75. package/dist-vue/index.js +8 -8
  76. package/dist-vue/style.css +1 -1
  77. package/package.json +1 -1
  78. package/dist/_chunks/PkToolShowForm-CadrjzZx.js.map +0 -1
  79. package/dist-vue/_chunks/PkChatbot-a8Wh4tN4.js.map +0 -1
  80. package/dist-vue/_chunks/PkChatbotMessages-D6rNh6PF.js.map +0 -1
  81. package/dist-vue/_chunks/PkToolShowForm-CJtmt5yd.js.map +0 -1
@@ -1,55 +1,55 @@
1
1
  import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, L as c, M as l, N as u, O as d, Q as f, R as p, St as ee, T as m, Tt as h, U as te, W as ne, X as g, _, b as re, bt as v, c as ie, ct as ae, d as oe, et as se, g as y, h as b, it as ce, k as x, m as S, pt as C, q as le, r as ue, t as de, u as w, ut as fe, v as T, vt as pe, wt as me, x as he, xt as ge, y as _e, yt as ve, z as ye } from "./vue.runtime.esm-bundler-D6KKITU0.js";
2
- import { a as E, i as D, t as O } from "./iconify-tggsk9QV.js";
3
- import { c as be, d as xe, l as Se, m as Ce, n as we, o as k, p as Te, r as Ee, s as De } from "./dist-vbhhaYbZ.js";
4
- import { a as Oe, c as ke, i as Ae, l as je, n as A, o as j, r as Me, s as Ne, t as M } from "./floating-ui.vue-DYDaUjxz.js";
5
- import { t as Pe } from "./esm-CHpQDpfH.js";
2
+ import { a as E, i as be, t as D } from "./iconify-tggsk9QV.js";
3
+ import { c as xe, f as Se, h as Ce, l as we, m as O, n as Te, o as k, r as A, u as Ee } from "./dist-Dhop5_et.js";
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-DYDaUjxz.js";
5
+ import { t as Ne } from "./esm-CHpQDpfH.js";
6
6
  //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.20_@json-render+core@0.19.0_zod@4.5.4__@volverjs+style@0.1.27_@vue_f2b5a47152e93c3451249216f4e73d36/node_modules/@volverjs/ui-vue/dist/components/VvInputText/VvInputText.es.js
7
7
  d(), ue(), ce(), ge();
8
- var N = (e) => e.toString().padStart(2, "0"), P = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
9
- function Fe(e) {
10
- if (typeof e != "string" || !P.test(e)) return !1;
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
+ function Pe(e) {
10
+ if (typeof e != "string" || !F.test(e)) return !1;
11
11
  let t = new Date(e);
12
12
  return !Number.isNaN(t.getTime()) && t.toISOString() === e;
13
13
  }
14
- function Ie(e, t = "date", n) {
15
- if (typeof e == "string" && !Fe(e)) return "";
14
+ function Fe(e, t = "date", n) {
15
+ if (typeof e == "string" && !Pe(e)) return "";
16
16
  let r = new Date(e);
17
17
  if (Number.isNaN(r.getTime())) return "";
18
- let i = `${r.getFullYear()}-${N(r.getMonth() + 1)}`;
19
- if (t === "month" || (i += `-${N(r.getDate())}`, t === "date")) return i;
20
- let a = n ? `${N(r.getHours())}:${N(r.getMinutes())}:${N(r.getSeconds())}` : `${N(r.getHours())}:${N(r.getMinutes())}`;
18
+ let i = `${r.getFullYear()}-${P(r.getMonth() + 1)}`;
19
+ if (t === "month" || (i += `-${P(r.getDate())}`, t === "date")) return i;
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 Le = /^\d{4}-\d{2}-\d{2}$/, F = /^\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") {
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") {
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") {
28
- if (!Le.test(e)) throw Error("Invalid date format. Expected: YYYY-MM-DD");
28
+ if (!Ie.test(e)) throw Error("Invalid date format. Expected: YYYY-MM-DD");
29
29
  return /* @__PURE__ */ new Date(`${e}T00:00:00`);
30
30
  }
31
31
  if (t === "month") {
32
- if (!F.test(e)) throw Error("Invalid month format. Expected: YYYY-MM");
32
+ if (!I.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 (!I.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
37
- return e.length === 8 ? /* @__PURE__ */ new Date(`${r}-${N(i + 1)}-${N(a)}T${e}`) : /* @__PURE__ */ new Date(`${r}-${N(i + 1)}-${N(a)}T${e}:00`);
36
+ if (!L.test(e)) throw Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
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 (!L.test(e)) throw Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");
39
+ if (!R.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 z(e) {
42
+ function B(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)(v(e));
44
44
  }
45
- function B(e) {
45
+ function V(e) {
46
46
  return typeof e == "string";
47
47
  }
48
- function V(e) {
49
- return Array.isArray(e) ? e.filter((e) => B(e)).join(" ") : e;
48
+ function Le(e) {
49
+ return Array.isArray(e) ? e.filter((e) => V(e)).join(" ") : e;
50
50
  }
51
51
  function Re(e, t) {
52
- let n = S(() => ae(e) ? e.value : e), i = S(() => V(n.value.invalidLabel)), o = S(() => V(n.value.validLabel)), s = S(() => n.value.loadingLabel), c = S(() => n.value.hintLabel), l = S(() => !!(n.value.loading && (t.loading || s.value))), u = S(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = S(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = S(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = S(() => u.value || d.value || l.value || f.value);
52
+ let n = S(() => ae(e) ? e.value : e), i = S(() => Le(n.value.invalidLabel)), o = S(() => Le(n.value.validLabel)), s = S(() => n.value.loadingLabel), c = S(() => n.value.hintLabel), l = S(() => !!(n.value.loading && (t.loading || s.value))), u = S(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = S(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = S(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = S(() => u.value || d.value || l.value || f.value);
53
53
  return {
54
54
  hasInvalidLabelOrSlot: u,
55
55
  hasHintLabelOrSlot: f,
@@ -434,7 +434,7 @@ function Ct(e, t) {
434
434
  };
435
435
  }
436
436
  function wt({ reference: e, id: t, expanded: n, aria: i }) {
437
- let o = je();
437
+ let o = Ae();
438
438
  return {
439
439
  bus: o,
440
440
  component: r({
@@ -511,97 +511,97 @@ var Ot = ["popover"], kt = [
511
511
  }
512
512
  }), { isTopLayer: fe, popover: ge, show: _e, hide: ve } = Ct(x, () => s.topLayer), ye = S(() => fe.value ? ze.fixed : s.strategy), E = C(!1);
513
513
  o(() => {
514
- xe(x.value, () => {
514
+ Se(x.value, () => {
515
515
  E.value = globalThis.getComputedStyle(x.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
516
516
  }, {
517
517
  attributeFilter: ["style"],
518
518
  window: globalThis.window
519
519
  });
520
520
  });
521
- function D(e, t, n) {
521
+ function be(e, t, n) {
522
522
  return typeof e == "boolean" ? t() : n(e);
523
523
  }
524
- let O = S(() => {
524
+ let D = S(() => {
525
525
  let e = [];
526
- if (s.autoPlacement ? e.push(D(s.autoPlacement, () => Me(), (e) => Me(e))) : s.flip && e.push(D(s.flip, () => Oe({ fallbackStrategy: "initialPlacement" }), (e) => Oe(e))), s.shift && e.push(D(s.shift, () => Ne(), (e) => Ne(e))), s.size) {
526
+ if (s.autoPlacement ? e.push(be(s.autoPlacement, () => je(), (e) => je(e))) : s.flip && e.push(be(s.flip, () => De({ fallbackStrategy: "initialPlacement" }), (e) => De(e))), s.shift && e.push(be(s.shift, () => Me(), (e) => Me(e))), s.size) {
527
527
  let t = ({ availableWidth: e, availableHeight: t }) => {
528
528
  ae.value = `${e}px`, y.value = `${t}px`;
529
529
  };
530
- e.push(D(s.size, () => ke({ apply: t }), (e) => ke({
530
+ e.push(be(s.size, () => Oe({ apply: t }), (e) => Oe({
531
531
  ...e,
532
532
  apply: t
533
533
  })));
534
534
  }
535
- return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? j(Number(s.offset)) : j(s.offset)), s.arrow && e.push(M({ element: le })), e;
536
- }), { x: be, y: Te, middlewareData: De, placement: je, strategy: Pe } = A(w, x, {
537
- whileElementsMounted: (...e) => Ae(...e, { animationFrame: ye.value === ze.fixed }),
535
+ return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? M(Number(s.offset)) : M(s.offset)), s.arrow && e.push(N({ element: le })), e;
536
+ }), { x: xe, y: we, middlewareData: O, placement: Ae, strategy: Ne } = j(w, x, {
537
+ whileElementsMounted: (...e) => ke(...e, { animationFrame: ye.value === ze.fixed }),
538
538
  placement: S(() => s.placement),
539
539
  strategy: ye,
540
- middleware: O
541
- }), N = S(() => {
540
+ middleware: D
541
+ }), P = S(() => {
542
542
  if (E.value) return;
543
543
  let e = s.triggerWidth && w.value ? `${w.value?.offsetWidth}px` : void 0;
544
544
  return {
545
- position: Pe.value,
546
- top: `${Te.value ?? 0}px`,
547
- left: `${be.value ?? 0}px`,
545
+ position: Ne.value,
546
+ top: `${we.value ?? 0}px`,
547
+ left: `${xe.value ?? 0}px`,
548
548
  maxWidth: e ? void 0 : ae.value,
549
549
  maxHeight: y.value,
550
550
  width: e
551
551
  };
552
- }), P = S(() => je.value.split("-")[0]), Fe = S(() => {
552
+ }), F = S(() => Ae.value.split("-")[0]), Pe = S(() => {
553
553
  if (E.value) return;
554
554
  let e = {
555
555
  [U.top]: U.bottom,
556
556
  [U.right]: U.left,
557
557
  [U.bottom]: U.top,
558
558
  [U.left]: U.right
559
- }[P.value];
559
+ }[F.value];
560
560
  return {
561
- left: De.value.arrow?.x === void 0 ? void 0 : `${De.value.arrow?.x}px`,
562
- top: De.value.arrow?.y === void 0 ? void 0 : `${De.value.arrow?.y}px`,
561
+ left: O.value.arrow?.x === void 0 ? void 0 : `${O.value.arrow?.x}px`,
562
+ top: O.value.arrow?.y === void 0 ? void 0 : `${O.value.arrow?.y}px`,
563
563
  [e]: `${-(le.value?.offsetWidth ?? 0) / 2}px`
564
564
  };
565
- }), Ie = Ce(s, "modelValue", d), Le = C(!1), F = S({
566
- get: () => Ie.value ?? Le.value,
565
+ }), Fe = Ce(s, "modelValue", d), Ie = C(!1), I = S({
566
+ get: () => Fe.value ?? Ie.value,
567
567
  set: (e) => {
568
- if (Ie.value === void 0) {
569
- Le.value = e;
568
+ if (Fe.value === void 0) {
569
+ Ie.value = e;
570
570
  return;
571
571
  }
572
- Ie.value = e;
572
+ Fe.value = e;
573
573
  }
574
574
  });
575
575
  f(() => {
576
- F.value && _e();
576
+ I.value && _e();
577
577
  });
578
- function I() {
579
- F.value = !0;
580
- }
581
578
  function L() {
582
- F.value = !1;
579
+ I.value = !0;
583
580
  }
584
581
  function R() {
585
- F.value = !F.value;
582
+ I.value = !1;
583
+ }
584
+ function z() {
585
+ I.value = !I.value;
586
586
  }
587
- function z(e) {
587
+ function B(e) {
588
588
  w.value = e;
589
589
  }
590
- we(x, () => {
591
- !s.keepOpen && F.value && (F.value = !1);
590
+ Te(x, () => {
591
+ !s.keepOpen && I.value && (I.value = !1);
592
592
  }, { ignore: [w] });
593
- let B = S(() => w.value?.getAttribute?.("id") ?? void 0), V = S(() => ({
593
+ let V = S(() => w.value?.getAttribute?.("id") ?? void 0), Le = S(() => ({
594
594
  "aria-controls": h.value,
595
595
  "aria-haspopup": !0,
596
- "aria-expanded": F.value
596
+ "aria-expanded": I.value
597
597
  })), { component: Re, bus: H } = wt({
598
598
  reference: w,
599
599
  id: h,
600
- expanded: F,
601
- aria: V
600
+ expanded: I,
601
+ aria: Le
602
602
  });
603
- H.on("click", R);
604
- let { role: Be, modifiers: Ve } = pe(s), He = Dt("vv-dropdown", Ve, S(() => ({ arrow: s.arrow }))), { focused: W } = Se(x);
603
+ H.on("click", z);
604
+ let { role: Be, modifiers: Ve } = pe(s), He = Dt("vv-dropdown", Ve, S(() => ({ arrow: s.arrow }))), { focused: W } = Ee(x);
605
605
  function Ue(e) {
606
606
  return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
607
607
  }
@@ -641,13 +641,13 @@ var Ot = ["popover"], kt = [
641
641
  }
642
642
  });
643
643
  }
644
- g(F, (e) => {
644
+ g(I, (e) => {
645
645
  e && s.autofocusFirst && G();
646
646
  }), r({
647
- toggle: R,
648
- show: I,
649
- hide: L,
650
- init: z,
647
+ toggle: z,
648
+ show: L,
649
+ hide: R,
650
+ init: B,
651
651
  focusFirst: G,
652
652
  focusFirstListElement: We,
653
653
  focusNext: Ge,
@@ -656,26 +656,26 @@ var Ot = ["popover"], kt = [
656
656
  });
657
657
  let { itemRole: qe } = Tt({
658
658
  role: Be,
659
- expanded: F,
659
+ expanded: I,
660
660
  focused: W,
661
661
  hovered: k(x)
662
662
  });
663
- Ee("Escape", (e) => {
664
- F.value && (e.preventDefault(), L());
665
- }), Ee("ArrowDown", (e) => {
666
- F.value && W.value && (e.preventDefault(), Ge());
667
- }), Ee("ArrowUp", (e) => {
668
- F.value && W.value && (e.preventDefault(), Ke());
669
- }), Ee([" ", "Enter"], (e) => {
663
+ A("Escape", (e) => {
664
+ I.value && (e.preventDefault(), R());
665
+ }), A("ArrowDown", (e) => {
666
+ I.value && W.value && (e.preventDefault(), Ge());
667
+ }), A("ArrowUp", (e) => {
668
+ I.value && W.value && (e.preventDefault(), Ke());
669
+ }), A([" ", "Enter"], (e) => {
670
670
  let t = e.target;
671
- F.value && W.value && t && t?.click();
671
+ I.value && W.value && t && t?.click();
672
672
  });
673
673
  let Je = {
674
674
  "before-enter": () => {
675
- d(F.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
675
+ d(I.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
676
676
  },
677
677
  "after-leave": () => {
678
- F.value || ve(), d(F.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
678
+ I.value || ve(), d(I.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
679
679
  },
680
680
  enter: () => {
681
681
  d("enter");
@@ -698,12 +698,12 @@ var Ot = ["popover"], kt = [
698
698
  };
699
699
  return (t, r) => (c(), T(oe, null, [he(v(Re), null, {
700
700
  default: e(() => [n(t.$slots, "default", i(m({
701
- init: z,
702
- show: I,
703
- hide: L,
704
- toggle: R,
705
- expanded: v(F),
706
- aria: v(V)
701
+ init: B,
702
+ show: L,
703
+ hide: R,
704
+ toggle: z,
705
+ expanded: v(I),
706
+ aria: v(Le)
707
707
  })))]),
708
708
  _: 3
709
709
  }), he(de, l({ name: t.transitionName }, te(Je), { persisted: "" }), {
@@ -711,44 +711,44 @@ var Ot = ["popover"], kt = [
711
711
  ref_key: "floatingEl",
712
712
  ref: x,
713
713
  popover: v(ge),
714
- style: me(v(N)),
714
+ style: me(v(P)),
715
715
  class: ee(v(He))
716
716
  }, [
717
717
  s.arrow ? (c(), T("div", {
718
718
  key: 0,
719
719
  ref_key: "arrowEl",
720
720
  ref: le,
721
- style: me(v(Fe)),
721
+ style: me(v(Pe)),
722
722
  class: "vv-dropdown__arrow"
723
723
  }, null, 4)) : _("v-if", !0),
724
724
  n(t.$slots, "before", i(m({
725
- show: I,
726
- hide: L,
727
- toggle: R,
728
- expanded: v(F)
725
+ show: L,
726
+ hide: R,
727
+ toggle: z,
728
+ expanded: v(I)
729
729
  }))),
730
730
  b("div", l(v(re), {
731
731
  id: v(h),
732
732
  ref_key: "listEl",
733
733
  ref: ue,
734
- tabindex: v(F) ? void 0 : -1,
734
+ tabindex: v(I) ? void 0 : -1,
735
735
  role: v(Be),
736
- "aria-labelledby": v(B),
736
+ "aria-labelledby": v(V),
737
737
  class: "vv-dropdown__list"
738
738
  }), [n(t.$slots, "items", i(m({
739
- show: I,
740
- hide: L,
741
- toggle: R,
742
- expanded: v(F),
739
+ show: L,
740
+ hide: R,
741
+ toggle: z,
742
+ expanded: v(I),
743
743
  role: v(qe)
744
744
  })))], 16, kt),
745
745
  n(t.$slots, "after", i(m({
746
- show: I,
747
- hide: L,
748
- toggle: R,
749
- expanded: v(F)
746
+ show: L,
747
+ hide: R,
748
+ toggle: z,
749
+ expanded: v(I)
750
750
  })))
751
- ], 14, Ot), [[ie, v(F)]])]),
751
+ ], 14, Ot), [[ie, v(I)]])]),
752
752
  _: 3
753
753
  }, 16, ["name"])], 64));
754
754
  }
@@ -762,7 +762,7 @@ var Mt = /* @__PURE__ */ r({
762
762
  setup(e) {
763
763
  let t = e, { role: r, expanded: i } = jt(), a = C(null);
764
764
  Et({ expanded: i });
765
- let o = k(a), { focused: s } = be(a), { focused: u } = Se(a);
765
+ let o = k(a), { focused: s } = we(a), { focused: u } = Ee(a);
766
766
  return g(o, (e) => {
767
767
  e && t.focusOnHover && (s.value = !0);
768
768
  }), (e, t) => (c(), T("div", l({ role: v(r) }, {
@@ -843,7 +843,7 @@ var Q = /* @__PURE__ */ r({
843
843
  }
844
844
  function f(e) {
845
845
  let n = d(e), r = n?.innerHTML.trim() || "";
846
- n && r && D(`@${s.value}:${t.prefix}:${t.name}`, {
846
+ n && r && be(`@${s.value}:${t.prefix}:${t.name}`, {
847
847
  body: r,
848
848
  height: n.viewBox.baseVal.height,
849
849
  width: n.viewBox.baseVal.width
@@ -853,7 +853,7 @@ var Q = /* @__PURE__ */ r({
853
853
  e && f(e), r.value = !0;
854
854
  }).catch((e) => {
855
855
  throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
856
- })), t.svg && f(t.svg), (t, i) => v(r) ? (c(), y(v(O), l({
856
+ })), t.svg && f(t.svg), (t, i) => v(r) ? (c(), y(v(D), l({
857
857
  key: 0,
858
858
  class: v(o)
859
859
  }, {
@@ -1279,7 +1279,7 @@ function Gt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
1279
1279
  };
1280
1280
  }
1281
1281
  function Kt(e, t) {
1282
- let { focused: n } = be(e);
1282
+ let { focused: n } = we(e);
1283
1283
  return g(n, (n) => {
1284
1284
  t(n ? "focus" : "blur", v(e));
1285
1285
  }), { focused: n };
@@ -1300,7 +1300,7 @@ function Jt(e, t = H.local, n) {
1300
1300
  e && g(e, (e, n) => {
1301
1301
  let a = v(t) === H.session ? sessionStorage : localStorage;
1302
1302
  if (n && n !== e && a.removeItem(n), e) {
1303
- i = Te(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
1303
+ i = O(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
1304
1304
  return;
1305
1305
  }
1306
1306
  i = void 0;
@@ -1308,7 +1308,7 @@ function Jt(e, t = H.local, n) {
1308
1308
  if (e?.value) {
1309
1309
  if (t) {
1310
1310
  let n = t === H.session ? sessionStorage : localStorage;
1311
- i = Te(e.value, i?.value ?? r.value, n);
1311
+ i = O(e.value, i?.value ?? r.value, n);
1312
1312
  }
1313
1313
  n && n !== t && (n === H.session ? sessionStorage : localStorage).removeItem(e.value);
1314
1314
  }
@@ -1337,11 +1337,11 @@ var Yt = ["for"], Xt = {
1337
1337
  props: Lt,
1338
1338
  emits: It,
1339
1339
  setup(t, { expose: r, emit: a }) {
1340
- let s = t, u = a, d = le(), f = Ft(), p = Wt("VvInputText", Lt, s), { count: te, debounce: ne, icon: ie, iconPosition: ae, iconRemoveSuggestion: se, id: ce, invalid: x, label: ue, labelRemoveSuggestion: de, loading: fe, maxlength: me, minlength: ge, modelValue: ve, step: E, storageType: D, type: O, unit: be, valid: xe } = pe(s), Se = St(ce), Ce = S(() => `${Se.value}-hint`), we = S(() => s.floating && z(s.placeholder) ? " " : s.placeholder), { model: k, flush: Te } = Gt(ve, u, ne), Ee = S(() => {
1340
+ let s = t, u = a, d = le(), f = Ft(), p = Wt("VvInputText", Lt, s), { count: te, debounce: ne, icon: ie, iconPosition: ae, iconRemoveSuggestion: se, id: ce, invalid: x, label: ue, labelRemoveSuggestion: de, loading: fe, maxlength: me, minlength: ge, modelValue: ve, step: E, storageType: be, type: D, unit: Se, valid: Ce } = pe(s), we = St(ce), O = S(() => `${we.value}-hint`), Te = S(() => s.floating && B(s.placeholder) ? " " : s.placeholder), { model: k, flush: A } = Gt(ve, u, ne), Ee = S(() => {
1341
1341
  let e = typeof E.value == "number" ? E.value : Number.parseInt(E.value);
1342
1342
  return !Number.isNaN(e) && e % 60 != 0;
1343
- }), Oe = /^-0?[.,]?[0*]?$/, ke = /./, Ae = /^-$|^$/, je = C(!1), A = C(), j = C(), { el: Me, mask: Ne, typed: M, masked: N, unmasked: P } = Pe(S(() => {
1344
- if (!s.iMask) return { mask: ke };
1343
+ }), De = /^-0?[.,]?[0*]?$/, Oe = /./, ke = /^-$|^$/, Ae = C(!1), j = C(), M = C(), { el: je, mask: Me, typed: N, masked: P, unmasked: F } = Ne(S(() => {
1344
+ if (!s.iMask) return { mask: Oe };
1345
1345
  if (s.iMask.mask === Number) {
1346
1346
  let e = { ...s.iMask };
1347
1347
  return s.min && (e.min = Number(s.min)), s.max && (e.max = Number(s.max)), e;
@@ -1350,118 +1350,118 @@ var Yt = ["for"], Xt = {
1350
1350
  }), {
1351
1351
  emit: u,
1352
1352
  onAccept: () => {
1353
- if (je.value) {
1354
- if (u("update:masked", N.value), O.value === $.NUMBER) {
1355
- Le();
1353
+ if (Ae.value) {
1354
+ if (u("update:masked", P.value), D.value === $.NUMBER) {
1355
+ Ie();
1356
1356
  return;
1357
1357
  }
1358
- if (O.value === $.DATETIME_LOCAL || O.value === $.DATE || O.value === $.TIME || O.value === $.MONTH) {
1359
- I();
1358
+ if (D.value === $.DATETIME_LOCAL || D.value === $.DATE || D.value === $.TIME || D.value === $.MONTH) {
1359
+ L();
1360
1360
  return;
1361
1361
  }
1362
- !k.value && !P.value || (k.value = P.value);
1362
+ !k.value && !F.value || (k.value = F.value);
1363
1363
  }
1364
1364
  }
1365
1365
  });
1366
- function Le() {
1367
- if (Ae.test(P.value)) {
1366
+ function Ie() {
1367
+ if (ke.test(F.value)) {
1368
1368
  if (k.value === null || k.value === void 0) return;
1369
1369
  k.value = void 0;
1370
1370
  return;
1371
1371
  }
1372
- if (Oe.test(P.value)) {
1372
+ if (De.test(F.value)) {
1373
1373
  k.value = 0;
1374
1374
  return;
1375
1375
  }
1376
- if (typeof M.value != "number") {
1377
- k.value = Number(M.value);
1376
+ if (typeof N.value != "number") {
1377
+ k.value = Number(N.value);
1378
1378
  return;
1379
1379
  }
1380
- k.value = M.value;
1380
+ k.value = N.value;
1381
1381
  }
1382
- function F(e) {
1383
- let t = new Date(A.value || j.value);
1384
- if ((O.value === $.DATETIME_LOCAL || O.value === $.DATE || O.value === $.MONTH) && (t.setFullYear(e.getFullYear()), t.setMonth(e.getMonth())), (O.value === $.DATETIME_LOCAL || O.value === $.DATE) && t.setDate(e.getDate()), (O.value === $.DATETIME_LOCAL || O.value === $.TIME) && (t.setHours(e.getHours()), t.setMinutes(e.getMinutes()), t.setSeconds(e.getSeconds())), A.value instanceof Date) {
1382
+ function I(e) {
1383
+ let t = new Date(j.value || M.value);
1384
+ 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) {
1385
1385
  if (k.value?.getTime() === t.getTime()) return;
1386
1386
  k.value = t;
1387
1387
  return;
1388
1388
  }
1389
1389
  k.value = t.toISOString();
1390
1390
  }
1391
- function I() {
1392
- let e = O.value;
1393
- if (!M.value) {
1391
+ function L() {
1392
+ let e = D.value;
1393
+ if (!N.value) {
1394
1394
  if (!k.value) return;
1395
- if (A.value) {
1395
+ if (j.value) {
1396
1396
  k.value = void 0;
1397
1397
  return;
1398
1398
  }
1399
1399
  k.value = "";
1400
1400
  return;
1401
1401
  }
1402
- if (!(M.value instanceof Date) && !A.value && !j.value) {
1403
- k.value = M.value;
1402
+ if (!(N.value instanceof Date) && !j.value && !M.value) {
1403
+ k.value = N.value;
1404
1404
  return;
1405
1405
  }
1406
- let t = M.value;
1407
- if (t instanceof Date || (t = R(M.value, e)), A.value || j.value) {
1408
- F(t);
1406
+ let t = N.value;
1407
+ if (t instanceof Date || (t = z(N.value, e)), j.value || M.value) {
1408
+ I(t);
1409
1409
  return;
1410
1410
  }
1411
- k.value = Ie(t, e, Ee.value);
1411
+ k.value = Fe(t, e, Ee.value);
1412
1412
  }
1413
- function L(e) {
1413
+ function R(e) {
1414
1414
  if (e == null) {
1415
- M.value = "", P.value = "";
1415
+ N.value = "", F.value = "";
1416
1416
  return;
1417
1417
  }
1418
1418
  if (s.iMask?.mask === Date) {
1419
- M.value = e instanceof Date ? e : new Date(e);
1419
+ N.value = e instanceof Date ? e : new Date(e);
1420
1420
  return;
1421
1421
  }
1422
- if (!(O.value === $.NUMBER && Oe.test(P.value) && e === 0)) {
1422
+ if (!(D.value === $.NUMBER && De.test(F.value) && e === 0)) {
1423
1423
  if (dt.value) {
1424
- if (e instanceof Date || Fe(e)) {
1425
- if (e instanceof Date ? (A.value = e, j.value = void 0) : (j.value = e, A.value = void 0), O.value !== $.WEEK) {
1426
- let t = new Date(e), n = O.value;
1427
- M.value = Ie(t, n, Ee.value), P.value = M.value;
1424
+ if (e instanceof Date || Pe(e)) {
1425
+ if (e instanceof Date ? (j.value = e, M.value = void 0) : (M.value = e, j.value = void 0), D.value !== $.WEEK) {
1426
+ let t = new Date(e), n = D.value;
1427
+ N.value = Fe(t, n, Ee.value), F.value = N.value;
1428
1428
  }
1429
1429
  return;
1430
1430
  }
1431
- A.value = void 0, j.value = void 0;
1431
+ j.value = void 0, M.value = void 0;
1432
1432
  }
1433
- M.value = e, P.value = `${M.value}`;
1433
+ N.value = e, F.value = `${N.value}`;
1434
1434
  }
1435
1435
  }
1436
1436
  o(() => {
1437
- Ne.value && (je.value = !0, L(s.modelValue));
1437
+ Me.value && (Ae.value = !0, R(s.modelValue));
1438
1438
  }), g(() => s.modelValue, (e) => {
1439
- Ne.value && L(e);
1439
+ Me.value && R(e);
1440
1440
  }), g(() => s.masked, (e) => {
1441
- N.value = e ?? "";
1441
+ P.value = e ?? "";
1442
1442
  });
1443
- let B = Me, V = C(), H = C(), ze = C();
1443
+ let V = je, Le = C(), H = C(), ze = C();
1444
1444
  r({
1445
- $input: B,
1446
- $inner: V,
1445
+ $input: V,
1446
+ $inner: Le,
1447
1447
  $wrapper: H,
1448
- flush: Te
1448
+ flush: A
1449
1449
  });
1450
- let { focused: U } = Kt(B, u), Be = S(() => U.value && !s.disabled && !s.readonly);
1450
+ let { focused: U } = Kt(V, u), Be = S(() => U.value && !s.disabled && !s.readonly);
1451
1451
  function Ve(e) {
1452
1452
  e ? He() : W();
1453
1453
  }
1454
1454
  function He() {
1455
- p.value.selectOnFocus && B.value && B.value.select(), Z.value.size && ze.value?.show();
1455
+ p.value.selectOnFocus && V.value && V.value.select(), Z.value.size && ze.value?.show();
1456
1456
  }
1457
1457
  function W() {
1458
- let e = Te() ?? k.value;
1459
- if (!X.value || z(e)) return;
1458
+ let e = A() ?? k.value;
1459
+ if (!X.value || B(e)) return;
1460
1460
  let t = s.maxSuggestions;
1461
1461
  X.value.size >= t && !X.value.has(e) && (X.value = new Set([...X.value].slice(X.value.size - t + 1))), X.value.add(e);
1462
1462
  }
1463
1463
  g(Be, Ve);
1464
- let Ue = De(B);
1464
+ let Ue = xe(V);
1465
1465
  g(Ue, (e) => {
1466
1466
  e && s.autofocus && !s.disabled && !s.readonly && (U.value = !0);
1467
1467
  });
@@ -1473,19 +1473,19 @@ var Yt = ["for"], Xt = {
1473
1473
  function Je() {
1474
1474
  if (!J.value) {
1475
1475
  if (s.iMask) {
1476
- M.value = Number(M.value) + Number(E?.value ?? 1);
1476
+ N.value = Number(N.value) + Number(E?.value ?? 1);
1477
1477
  return;
1478
1478
  }
1479
- B.value.stepUp(), k.value = Number(B.value.value);
1479
+ V.value.stepUp(), k.value = Number(V.value.value);
1480
1480
  }
1481
1481
  }
1482
1482
  function Ye() {
1483
1483
  if (!J.value) {
1484
1484
  if (s.iMask) {
1485
- M.value = Number(M.value) - Number(E?.value ?? 1);
1485
+ N.value = Number(N.value) - Number(E?.value ?? 1);
1486
1486
  return;
1487
1487
  }
1488
- B.value.stepDown(), k.value = Number(B.value.value);
1488
+ V.value.stepDown(), k.value = Number(V.value.value);
1489
1489
  }
1490
1490
  }
1491
1491
  let Xe = S(() => s.type === $.SEARCH);
@@ -1506,15 +1506,15 @@ var Yt = ["for"], Xt = {
1506
1506
  mode: te.value,
1507
1507
  upperLimit: Number(me?.value),
1508
1508
  lowerLimit: Number(ge?.value)
1509
- }), J = S(() => s.disabled || s.readonly), nt = S(() => J.value ? -1 : s.tabindex), Y = S(() => !z(ve?.value)), rt = S(() => {
1509
+ }), J = S(() => s.disabled || s.readonly), nt = S(() => J.value ? -1 : s.tabindex), Y = S(() => !B(ve?.value)), rt = S(() => {
1510
1510
  if (x.value === !0) return !0;
1511
- if (xe.value === !0) return !1;
1512
- }), X = Jt(S(() => s.storageKey ?? (f?.experimentalFeatures.forceInputSuggestions ? s.name : void 0)), D, /* @__PURE__ */ new Set()), Z = S(() => {
1511
+ if (Ce.value === !0) return !1;
1512
+ }), X = Jt(S(() => s.storageKey ?? (f?.experimentalFeatures.forceInputSuggestions ? s.name : void 0)), be, /* @__PURE__ */ new Set()), Z = S(() => {
1513
1513
  let e = /* @__PURE__ */ new Map();
1514
1514
  if (X.value) for (let t of X.value) e.set(t, { isFromStorage: !0 });
1515
1515
  if (s.suggestions) for (let t of s.suggestions) e.set(t, { isFromStorage: !1 });
1516
1516
  return e;
1517
- }), it = S(() => 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 = S(() => Z.value.size > 0);
1517
+ }), it = S(() => 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 = S(() => Z.value.size > 0);
1518
1518
  function ot(e) {
1519
1519
  k.value = e, ze.value?.hide(), u("suggestion:selected", e);
1520
1520
  }
@@ -1522,7 +1522,7 @@ var Yt = ["for"], Xt = {
1522
1522
  Z.value.get(e)?.isFromStorage && (X.value?.delete(e), u("suggestion:removed", e));
1523
1523
  }
1524
1524
  let { modifiers: ct } = pe(s), lt = Dt("vv-input-text", ct, S(() => ({
1525
- valid: xe.value,
1525
+ valid: Ce.value,
1526
1526
  invalid: x.value,
1527
1527
  loading: fe.value,
1528
1528
  disabled: s.disabled,
@@ -1530,7 +1530,7 @@ var Yt = ["for"], Xt = {
1530
1530
  readonly: s.readonly,
1531
1531
  "icon-before": !!Qe.value,
1532
1532
  "icon-after": !!q.value,
1533
- floating: s.floating && !z(s.label),
1533
+ floating: s.floating && !B(s.label),
1534
1534
  dirty: Y.value,
1535
1535
  focus: Be.value && !J.value,
1536
1536
  "auto-width": s.autoWidth
@@ -1541,20 +1541,20 @@ var Yt = ["for"], Xt = {
1541
1541
  $.TEL,
1542
1542
  $.EMAIL,
1543
1543
  $.PASSWORD
1544
- ].includes(O.value)), dt = S(() => [
1544
+ ].includes(D.value)), dt = S(() => [
1545
1545
  $.DATE,
1546
1546
  $.MONTH,
1547
1547
  $.WEEK,
1548
1548
  $.TIME,
1549
1549
  $.DATETIME_LOCAL
1550
- ].includes(O.value)), ft = S(() => [
1550
+ ].includes(D.value)), ft = S(() => [
1551
1551
  $.TEXT,
1552
1552
  $.SEARCH,
1553
1553
  $.URL,
1554
1554
  $.TEL,
1555
1555
  $.EMAIL,
1556
1556
  $.PASSWORD
1557
- ].includes(O.value)), pt = S(() => {
1557
+ ].includes(D.value)), pt = S(() => {
1558
1558
  let e = We.value && G.value || Ke.value && !Y.value && !U.value || s.iMask ? $.TEXT : s.type, t = {
1559
1559
  type: e,
1560
1560
  name: s.name,
@@ -1564,15 +1564,15 @@ var Yt = ["for"], Xt = {
1564
1564
  required: s.required,
1565
1565
  autocomplete: s.autocomplete,
1566
1566
  "aria-invalid": rt.value,
1567
- "aria-describedby": gt.value ? Ce.value : void 0,
1568
- "aria-errormessage": _t.value ? Ce.value : void 0,
1567
+ "aria-describedby": gt.value ? O.value : void 0,
1568
+ "aria-errormessage": _t.value ? O.value : void 0,
1569
1569
  inputMode: s.inputMode
1570
1570
  };
1571
1571
  if (dt.value || e === $.NUMBER) {
1572
1572
  let n = s.max;
1573
1573
  e === $.DATE && !n && (n = "9999-12-31"), t.step = s.step, t.max = n === void 0 ? void 0 : String(n), t.min = s.min === void 0 ? void 0 : String(s.min);
1574
1574
  }
1575
- return (ut.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = we.value), ft.value && (t.minlength = s.minlength, t.maxlength = s.maxlength, t.pattern = s.pattern), e === $.EMAIL && (t.multiple = s.multiple), t;
1575
+ return (ut.value || e === $.TEXT || e === $.NUMBER) && (t.placeholder = Te.value), ft.value && (t.minlength = s.minlength, t.maxlength = s.maxlength, t.pattern = s.pattern), e === $.EMAIL && (t.multiple = s.multiple), t;
1576
1576
  }), mt = S(() => ({
1577
1577
  valid: s.valid,
1578
1578
  invalid: s.invalid,
@@ -1597,14 +1597,14 @@ var Yt = ["for"], Xt = {
1597
1597
  qe.value && (Ye(), e.preventDefault());
1598
1598
  break;
1599
1599
  case "Enter":
1600
- case "NumpadEnter": Te();
1600
+ case "NumpadEnter": A();
1601
1601
  }
1602
1602
  u("keydown", e);
1603
1603
  }
1604
1604
  return (t, r) => (c(), T("div", { class: ee(v(lt)) }, [
1605
1605
  v(ue) ? (c(), T("label", {
1606
1606
  key: 0,
1607
- for: v(Se),
1607
+ for: v(we),
1608
1608
  class: "vv-input-text__label"
1609
1609
  }, h(v(ue)), 9, Yt)) : _("v-if", !0),
1610
1610
  b("div", {
@@ -1615,22 +1615,22 @@ var Yt = ["for"], Xt = {
1615
1615
  t.$slots.before ? (c(), T("div", Xt, [n(t.$slots, "before", i(m(v(mt))))])) : _("v-if", !0),
1616
1616
  b("div", {
1617
1617
  ref_key: "innerEl",
1618
- ref: V,
1618
+ ref: Le,
1619
1619
  class: "vv-input-text__inner",
1620
1620
  onClick: w(Ct, ["stop"])
1621
1621
  }, [
1622
1622
  v(Qe) ? (c(), y(Q, l({ key: 0 }, v(Qe), { class: "vv-input-text__icon" }), null, 16)) : _("v-if", !0),
1623
1623
  b("input", l({
1624
- id: v(Se),
1624
+ id: v(we),
1625
1625
  ref_key: "inputEl",
1626
- ref: B
1626
+ ref: V
1627
1627
  }, v(pt), {
1628
1628
  style: v(wt),
1629
1629
  onKeyup: r[0] ||= (e) => u("keyup", e),
1630
1630
  onKeydown: Tt,
1631
1631
  onKeypress: r[1] ||= (e) => u("keypress", e)
1632
1632
  }), null, 16, Zt),
1633
- (v(be) || t.$slots.unit) && v(Y) ? (c(), T("div", Qt, [n(t.$slots, "unit", i(m(v(mt))), () => [re(h(v(be)), 1)])])) : _("v-if", !0)
1633
+ (v(Se) || t.$slots.unit) && v(Y) ? (c(), T("div", Qt, [n(t.$slots, "unit", i(m(v(mt))), () => [re(h(v(Se)), 1)])])) : _("v-if", !0)
1634
1634
  ], 512),
1635
1635
  v(q) ? (c(), y(Q, l({ key: 1 }, v(q), { class: "vv-input-text__icon vv-input-text__icon-after" }), null, 16)) : v(We) && !t.hideActions && !v(J) ? (c(), y(v(yt), {
1636
1636
  key: 2,
@@ -1647,7 +1647,7 @@ var Yt = ["for"], Xt = {
1647
1647
  v(te) ? (c(), T("span", en, [n(t.$slots, "count", i(m(v(mt))), () => [re(h(v(tt)), 1)])])) : _("v-if", !0)
1648
1648
  ], 512),
1649
1649
  he(v(ht), {
1650
- id: v(Ce),
1650
+ id: v(O),
1651
1651
  class: "vv-input-text__hint"
1652
1652
  }, _e({ _: 2 }, [
1653
1653
  t.$slots.hint ? {
@@ -1702,4 +1702,4 @@ var Yt = ["for"], Xt = {
1702
1702
  //#endregion
1703
1703
  export { rn as default };
1704
1704
 
1705
- //# sourceMappingURL=VvInputText.es-DWwDzlwZ.js.map
1705
+ //# sourceMappingURL=VvInputText.es-UTEISDKU.js.map