@8wave/ai-elements 0.127.0-beta.3 → 0.127.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 (113) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-BpiLld3D.js → PkChatbotFilePreview-CWzGSq-b.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-BpiLld3D.js.map → PkChatbotFilePreview-CWzGSq-b.js.map} +1 -1
  3. package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js → PkEditorRadioButtons-CA1ul6tY.js} +3 -3
  4. package/dist/_chunks/{PkEditorRadioButtons-BtAGtjNW.js.map → PkEditorRadioButtons-CA1ul6tY.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreview-qTCDbut0.js → PkFilePreview-BaJet5cw.js} +5 -5
  6. package/dist/_chunks/{PkFilePreview-qTCDbut0.js.map → PkFilePreview-BaJet5cw.js.map} +1 -1
  7. package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js → PkFilePreviewDialog-Cq8DGCD1.js} +3 -3
  8. package/dist/_chunks/{PkFilePreviewDialog-m5d4zZDi.js.map → PkFilePreviewDialog-Cq8DGCD1.js.map} +1 -1
  9. package/dist/_chunks/{PkHeldImage-5nu3We9d.js → PkHeldImage-BWz13OCH.js} +2 -2
  10. package/dist/_chunks/{PkHeldImage-5nu3We9d.js.map → PkHeldImage-BWz13OCH.js.map} +1 -1
  11. package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js → PkImageEditorDialog-5Px7Y_8G.js} +5 -5
  12. package/dist/_chunks/{PkImageEditorDialog-aekpEqWD.js.map → PkImageEditorDialog-5Px7Y_8G.js.map} +1 -1
  13. package/dist/_chunks/{PkLazyImg-DZaX3wM4.js → PkLazyImg-DYjihkLA.js} +2 -2
  14. package/dist/_chunks/{PkLazyImg-DZaX3wM4.js.map → PkLazyImg-DYjihkLA.js.map} +1 -1
  15. package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js → PkSelectionActions-DDhbwE4U.js} +2 -2
  16. package/dist/_chunks/{PkSelectionActions-DDhRX6cs.js.map → PkSelectionActions-DDhbwE4U.js.map} +1 -1
  17. package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js → PkToolChatFile-fTo6gdqx.js} +3 -3
  18. package/dist/_chunks/{PkToolChatFile-C3B9q2OL.js.map → PkToolChatFile-fTo6gdqx.js.map} +1 -1
  19. package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js → PkToolRequestGeolocation-BeFZQQxz.js} +2 -2
  20. package/dist/_chunks/{PkToolRequestGeolocation-D4pYnCW5.js.map → PkToolRequestGeolocation-BeFZQQxz.js.map} +1 -1
  21. package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js → PkToolRequestOAuthConnection-_01ct5du.js} +3 -3
  22. package/dist/_chunks/{PkToolRequestOAuthConnection-DnnRY2rt.js.map → PkToolRequestOAuthConnection-_01ct5du.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js → PkToolShareDocument-Vpv1an0N.js} +3 -3
  24. package/dist/_chunks/{PkToolShareDocument-Dn1XC44S.js.map → PkToolShareDocument-Vpv1an0N.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js → PkToolShowArtifact-C28dOM5W.js} +2 -2
  26. package/dist/_chunks/{PkToolShowArtifact-DQln7TsF.js.map → PkToolShowArtifact-C28dOM5W.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js → PkToolShowCalendarEvent-Cee5xnJM.js} +4 -4
  28. package/dist/_chunks/{PkToolShowCalendarEvent-B1vPVEhc.js.map → PkToolShowCalendarEvent-Cee5xnJM.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js → PkToolShowChart-kgCDHWEf.js} +3 -3
  30. package/dist/_chunks/{PkToolShowChart-DfDB9BeZ.js.map → PkToolShowChart-kgCDHWEf.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js → PkToolShowComparison-cXfmgJ1H.js} +3 -3
  32. package/dist/_chunks/{PkToolShowComparison-VRck6_nr.js.map → PkToolShowComparison-cXfmgJ1H.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js → PkToolShowContactForm-D06qrkHm.js} +4 -4
  34. package/dist/_chunks/{PkToolShowContactForm-Dkb8AiqL.js.map → PkToolShowContactForm-D06qrkHm.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js → PkToolShowDiagram-B2NX-FOw.js} +3 -3
  36. package/dist/_chunks/{PkToolShowDiagram-B2dBogUW.js.map → PkToolShowDiagram-B2NX-FOw.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js → PkToolShowEmail-D-JnkL9A.js} +4 -4
  38. package/dist/_chunks/{PkToolShowEmail-DcFaseV8.js.map → PkToolShowEmail-D-JnkL9A.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js → PkToolShowForm-qj_f9Z5D.js} +16 -16
  40. package/dist/_chunks/{PkToolShowForm-CtDcwJs4.js.map → PkToolShowForm-qj_f9Z5D.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js → PkToolShowImageGallery-Dm2UEfWl.js} +3 -3
  42. package/dist/_chunks/{PkToolShowImageGallery-dLMI3SM7.js.map → PkToolShowImageGallery-Dm2UEfWl.js.map} +1 -1
  43. package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js → PkToolShowLocation-McS9sMWJ.js} +4 -4
  44. package/dist/_chunks/{PkToolShowLocation-B3YOn2fH.js.map → PkToolShowLocation-McS9sMWJ.js.map} +1 -1
  45. package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js → PkToolShowMessage-C3jjCRB3.js} +4 -4
  46. package/dist/_chunks/{PkToolShowMessage-BJ0nNGNK.js.map → PkToolShowMessage-C3jjCRB3.js.map} +1 -1
  47. package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js → PkToolShowProductList-DorHQJMd.js} +4 -4
  48. package/dist/_chunks/{PkToolShowProductList-DE6BEdr_.js.map → PkToolShowProductList-DorHQJMd.js.map} +1 -1
  49. package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js → PkToolShowQrCode-CIwiAzOS.js} +3 -3
  50. package/dist/_chunks/{PkToolShowQrCode-BcE0yKiC.js.map → PkToolShowQrCode-CIwiAzOS.js.map} +1 -1
  51. package/dist/_chunks/{PkToolShowSources-vSr080EU.js → PkToolShowSources-BMJeacz7.js} +3 -3
  52. package/dist/_chunks/{PkToolShowSources-vSr080EU.js.map → PkToolShowSources-BMJeacz7.js.map} +1 -1
  53. package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js → PkToolShowSuggestedReply-DBfeOl05.js} +2 -2
  54. package/dist/_chunks/{PkToolShowSuggestedReply-HuKn3loC.js.map → PkToolShowSuggestedReply-DBfeOl05.js.map} +1 -1
  55. package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js → PkToolShowVideo-YwSq8c2P.js} +3 -3
  56. package/dist/_chunks/{PkToolShowVideo-BL-9CiYe.js.map → PkToolShowVideo-YwSq8c2P.js.map} +1 -1
  57. package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js → PkToolShowWeather-DFNz0ZAW.js} +2 -2
  58. package/dist/_chunks/{PkToolShowWeather-CHAuNe7p.js.map → PkToolShowWeather-DFNz0ZAW.js.map} +1 -1
  59. package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js → PkToolShowWebPages-DtZC0KHO.js} +4 -4
  60. package/dist/_chunks/{PkToolShowWebPages-DQfODZdD.js.map → PkToolShowWebPages-DtZC0KHO.js.map} +1 -1
  61. package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js → VvButtonLocalized-DfLLySHy.js} +2 -2
  62. package/dist/_chunks/{VvButtonLocalized-C3bg4fNl.js.map → VvButtonLocalized-DfLLySHy.js.map} +1 -1
  63. package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js → VvCheckbox.es-CEwVNJz3.js} +2 -2
  64. package/dist/_chunks/{VvCheckbox.es-D44kGZc-.js.map → VvCheckbox.es-CEwVNJz3.js.map} +1 -1
  65. package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js → VvCheckboxGroup.es-BC9At7ZZ.js} +2 -2
  66. package/dist/_chunks/{VvCheckboxGroup.es-Da5Vuel0.js.map → VvCheckboxGroup.es-BC9At7ZZ.js.map} +1 -1
  67. package/dist/_chunks/{VvCombobox.es-BJzmLeTh.js → VvCombobox.es-ZJ44baFa.js} +741 -705
  68. package/dist/_chunks/VvCombobox.es-ZJ44baFa.js.map +1 -0
  69. package/dist/_chunks/{VvInputText.es-CHcdm2K-.js → VvInputText.es-D1K-kOt5.js} +356 -320
  70. package/dist/_chunks/VvInputText.es-D1K-kOt5.js.map +1 -0
  71. package/dist/_chunks/{VvRadio.es-B3IskaN4.js → VvRadio.es-Bkn-qtRB.js} +2 -2
  72. package/dist/_chunks/{VvRadio.es-B3IskaN4.js.map → VvRadio.es-Bkn-qtRB.js.map} +1 -1
  73. package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js → VvRadioGroup.es-BtyqGx_o.js} +2 -2
  74. package/dist/_chunks/{VvRadioGroup.es-CBivcD0v.js.map → VvRadioGroup.es-BtyqGx_o.js.map} +1 -1
  75. package/dist/_chunks/{VvSelect.es-CAVvkyxB.js → VvSelect.es-CKHcpSZS.js} +2 -2
  76. package/dist/_chunks/{VvSelect.es-CAVvkyxB.js.map → VvSelect.es-CKHcpSZS.js.map} +1 -1
  77. package/dist/_chunks/{VvTextarea.es-CgvZOWO4.js → VvTextarea.es-Ewp88vJ2.js} +397 -361
  78. package/dist/_chunks/VvTextarea.es-Ewp88vJ2.js.map +1 -0
  79. package/dist/_chunks/{index.es-B9l77u9z.js → index.es-DHeth3Ja.js} +660 -624
  80. package/dist/_chunks/index.es-DHeth3Ja.js.map +1 -0
  81. package/dist/_chunks/{index.es-vCE-6U81.js → index.es-EKiTmBsm.js} +10 -10
  82. package/dist/_chunks/{index.es-vCE-6U81.js.map → index.es-EKiTmBsm.js.map} +1 -1
  83. package/dist/ai-elements.es.js +80 -80
  84. package/dist/ai-elements.es.js.map +1 -1
  85. package/dist-vue/PkChatbot.js +1 -1
  86. package/dist-vue/PkChatbotAuth.js +1 -1
  87. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  88. package/dist-vue/PkChatbotMessages.js +1 -1
  89. package/dist-vue/PkChatbotViewChat.js +1 -1
  90. package/dist-vue/_chunks/{PkChatbot-B2SwBImk.js → PkChatbot-CuCgECW2.js} +2 -2
  91. package/dist-vue/_chunks/{PkChatbot-B2SwBImk.js.map → PkChatbot-CuCgECW2.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js → PkChatbotAuth-Bx14Ld4t.js} +2 -2
  93. package/dist-vue/_chunks/{PkChatbotAuth-CIK2CFy-.js.map → PkChatbotAuth-Bx14Ld4t.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js → PkChatbotFeedbackForm-Dwsln0GO.js} +2 -2
  95. package/dist-vue/_chunks/{PkChatbotFeedbackForm-DmpoOuoW.js.map → PkChatbotFeedbackForm-Dwsln0GO.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js → PkChatbotMessages-CDDoxZAf.js} +3 -3
  97. package/dist-vue/_chunks/{PkChatbotMessages-DY8r4UKe.js.map → PkChatbotMessages-CDDoxZAf.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkChatbotViewChat-DPk9LjX-.js → PkChatbotViewChat-FtOpDmks.js} +3 -3
  99. package/dist-vue/_chunks/{PkChatbotViewChat-DPk9LjX-.js.map → PkChatbotViewChat-FtOpDmks.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkFilePreview-DLJ2wTHk.js → PkFilePreview-B6PSJcvA.js} +2 -2
  101. package/dist-vue/_chunks/{PkFilePreview-DLJ2wTHk.js.map → PkFilePreview-B6PSJcvA.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkFilePreviewDialog-CDPZ3QIk.js → PkFilePreviewDialog-3HJbVudc.js} +2 -2
  103. package/dist-vue/_chunks/{PkFilePreviewDialog-CDPZ3QIk.js.map → PkFilePreviewDialog-3HJbVudc.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js → PkToolShowContactForm-Cg2TiqP1.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowContactForm-DAdKUU4X.js.map → PkToolShowContactForm-Cg2TiqP1.js.map} +1 -1
  106. package/dist-vue/_chunks/{index.es-Snvt_nNd.js → index.es-B9iCRzfa.js} +2 -2
  107. package/dist-vue/_chunks/{index.es-Snvt_nNd.js.map → index.es-B9iCRzfa.js.map} +1 -1
  108. package/dist-vue/index.js +8 -8
  109. package/package.json +2 -2
  110. package/dist/_chunks/VvCombobox.es-BJzmLeTh.js.map +0 -1
  111. package/dist/_chunks/VvInputText.es-CHcdm2K-.js.map +0 -1
  112. package/dist/_chunks/VvTextarea.es-CgvZOWO4.js.map +0 -1
  113. package/dist/_chunks/index.es-B9l77u9z.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, I as l, J as u, K as d, L as ee, M as f, N as p, Ot as m, P as h, Q as g, S as _, St as te, T as ne, Tt as v, U as y, V as b, W as x, Y as re, _ as S, b as C, bt as ie, c as ae, d as oe, et as se, f as w, g as T, gt as E, h as D, k as ce, kt as O, l as le, nt as ue, ot as de, q as k, r as fe, s as pe, t as me, tt as A, u as he, ut as ge, v as j, w as M, wt as N, x as P, xt as F, y as I, z as L } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
2
- import { a as _e, i as R, t as ve } from "./iconify-BsIVfdEw.js";
3
- import { a as ye, c as be, i as xe, l as Se, n as Ce, o as we, r as Te, s as Ee, t as De } from "./floating-ui.vue-SbFDfAS7.js";
4
- import { S as Oe, c as ke, f as Ae, g as je, n as Me, p as Ne, r as Pe, t as Fe, u as Ie, w as z } from "./dist-CR8l0inH.js";
5
- import { t as B } from "./dot-prop-Dmp6Zjqs.js";
6
- // ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.28_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_113cf0a066eeca009eded43485818201/node_modules/@volverjs/ui-vue/dist/components/VvCombobox/VvCombobox.es.js
7
- ce(), fe(), de(), v();
8
- var V = {
1
+ import { A as e, B as t, D as n, Dt as r, E as i, Et as a, F as o, G as s, H as c, I as l, J as u, K as d, L as ee, M as f, N as p, Ot as m, P as h, Q as g, S as _, St as te, T as ne, Tt as v, U as y, V as b, W as x, Y as re, _ as S, b as ie, bt as ae, c as oe, d as se, et as ce, f as C, g as le, gt as w, h as T, k as ue, kt as E, l as de, nt as fe, ot as pe, q as D, r as me, s as he, t as ge, tt as O, u as _e, ut as ve, v as k, w as A, wt as j, x as M, xt as N, y as P, z as F } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
2
+ import { a as ye, i as I, t as be } from "./iconify-BsIVfdEw.js";
3
+ import { a as xe, c as Se, i as Ce, l as we, n as Te, o as Ee, r as De, s as Oe, t as ke } from "./floating-ui.vue-SbFDfAS7.js";
4
+ import { S as Ae, c as je, d as Me, f as Ne, g as Pe, n as Fe, p as Ie, r as Le, t as Re, u as L, w as R } from "./dist-CR8l0inH.js";
5
+ import { t as z } from "./dot-prop-Dmp6Zjqs.js";
6
+ // ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.29_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_141a5f629ec2c5ee32df74e62e6bb55d/node_modules/@volverjs/ui-vue/dist/components/VvCombobox/VvCombobox.es.js
7
+ ue(), me(), pe(), v();
8
+ var B = {
9
9
  showPassword: "eye-on",
10
10
  hidePassword: "eye-off",
11
11
  showDatePicker: "calendar",
@@ -16,27 +16,27 @@ var V = {
16
16
  remove: "trash",
17
17
  edit: "edit",
18
18
  download: "download"
19
- }, H = { prefix: "normal" }, Le = /* @__PURE__ */ (function(e) {
19
+ }, V = { prefix: "normal" }, ze = /* @__PURE__ */ (function(e) {
20
20
  return e.local = "local", e.session = "session", e;
21
- })({}), Re = /* @__PURE__ */ (function(e) {
21
+ })({}), Be = /* @__PURE__ */ (function(e) {
22
22
  return e.absolute = "absolute", e.fixed = "fixed", e;
23
- })({}), U = /* @__PURE__ */ (function(e) {
23
+ })({}), H = /* @__PURE__ */ (function(e) {
24
24
  return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
25
- })({}), ze = /* @__PURE__ */ (function(e) {
25
+ })({}), Ve = /* @__PURE__ */ (function(e) {
26
26
  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;
27
- })({}), Be = /* @__PURE__ */ (function(e) {
27
+ })({}), He = /* @__PURE__ */ (function(e) {
28
28
  return e.before = "before", e.after = "after", e;
29
- })({}), Ve = /* @__PURE__ */ (function(e) {
29
+ })({}), Ue = /* @__PURE__ */ (function(e) {
30
30
  return e.button = "button", e.submit = "submit", e.reset = "reset", e;
31
- })({}), W = /* @__PURE__ */ (function(e) {
31
+ })({}), U = /* @__PURE__ */ (function(e) {
32
32
  return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
33
- })({}), He = /* @__PURE__ */ (function(e) {
33
+ })({}), We = /* @__PURE__ */ (function(e) {
34
34
  return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
35
- })({}), Ue = /* @__PURE__ */ (function(e) {
35
+ })({}), Ge = /* @__PURE__ */ (function(e) {
36
36
  return e.listbox = "listbox", e.menu = "menu", e;
37
- })({}), We = /* @__PURE__ */ (function(e) {
37
+ })({}), Ke = /* @__PURE__ */ (function(e) {
38
38
  return e.option = "option", e.presentation = "presentation", e;
39
- })({}), Ge = /* @__PURE__ */ Symbol.for("volver"), Ke = /* @__PURE__ */ Symbol.for("buttonGroup"), G = /* @__PURE__ */ Symbol.for("dropdownTrigger"), qe = /* @__PURE__ */ Symbol.for("dropdownItem"), K = /* @__PURE__ */ Symbol.for("dropdownAction"), Je = {
39
+ })({}), qe = /* @__PURE__ */ Symbol.for("volver"), W = /* @__PURE__ */ Symbol.for("buttonGroup"), G = /* @__PURE__ */ Symbol.for("dropdownTrigger"), K = /* @__PURE__ */ Symbol.for("dropdownItem"), Je = /* @__PURE__ */ Symbol.for("dropdownAction"), Ye = {
40
40
  to: { type: [String, Object] },
41
41
  href: String,
42
42
  target: String,
@@ -77,35 +77,35 @@ var V = {
77
77
  } }, Z = { required: {
78
78
  type: Boolean,
79
79
  default: !1
80
- } }, Ye = { selected: {
80
+ } }, Xe = { selected: {
81
81
  type: Boolean,
82
82
  default: !1
83
- } }, Xe = { active: {
83
+ } }, Ze = { active: {
84
84
  type: Boolean,
85
85
  default: !1
86
- } }, Ze = { current: {
86
+ } }, Q = { current: {
87
87
  type: Boolean,
88
88
  default: !1
89
- } }, Q = {
89
+ } }, Qe = {
90
90
  showClearAction: {
91
91
  type: Boolean,
92
92
  default: !1
93
93
  },
94
94
  iconClear: {
95
95
  type: [String, Object],
96
- default: V.clear
96
+ default: B.clear
97
97
  },
98
98
  labelClear: {
99
99
  type: String,
100
100
  default: "Clear"
101
101
  }
102
- }, Qe = { pressed: {
102
+ }, $e = { pressed: {
103
103
  type: Boolean,
104
104
  default: !1
105
- } }, $e = { label: {
105
+ } }, et = { label: {
106
106
  type: [String, Number],
107
107
  default: void 0
108
- } }, et = {
108
+ } }, tt = {
109
109
  ariaLabel: {
110
110
  type: String,
111
111
  default: void 0
@@ -118,16 +118,16 @@ var V = {
118
118
  type: String,
119
119
  default: void 0
120
120
  }
121
- }, tt = { readonly: {
121
+ }, nt = { readonly: {
122
122
  type: Boolean,
123
123
  default: !1
124
124
  } }, $ = { modifiers: {
125
125
  type: [String, Array],
126
126
  default: void 0
127
- } }, nt = { hintLabel: {
127
+ } }, rt = { hintLabel: {
128
128
  type: String,
129
129
  default: ""
130
- } }, rt = {
130
+ } }, it = {
131
131
  options: {
132
132
  type: Array,
133
133
  default: () => []
@@ -144,7 +144,7 @@ var V = {
144
144
  type: [String, Function],
145
145
  default: "disabled"
146
146
  }
147
- }, it = { count: {
147
+ }, at = { count: {
148
148
  type: [Boolean, String],
149
149
  default: !1,
150
150
  validator: (e) => [
@@ -153,38 +153,38 @@ var V = {
153
153
  "limit",
154
154
  "countdown"
155
155
  ].includes(e)
156
- } }, at = { debounce: {
156
+ } }, ot = { debounce: {
157
157
  type: [Number, String],
158
158
  default: void 0
159
- } }, ot = {
159
+ } }, st = {
160
160
  icon: {
161
161
  type: [String, Object],
162
162
  default: void 0
163
163
  },
164
164
  iconPosition: {
165
165
  type: String,
166
- default: Be.before,
167
- validator: (e) => Object.values(Be).includes(e)
166
+ default: He.before,
167
+ validator: (e) => Object.values(He).includes(e)
168
168
  }
169
- }, st = { tabindex: {
169
+ }, ct = { tabindex: {
170
170
  type: [String, Number],
171
171
  default: 0
172
- } }, ct = { floating: {
172
+ } }, lt = { floating: {
173
173
  type: Boolean,
174
174
  default: !1
175
- } }, lt = { unselectable: {
175
+ } }, ut = { unselectable: {
176
176
  type: Boolean,
177
177
  default: !0
178
- } }, ut = { id: [String, Number] }, dt = {
178
+ } }, dt = { id: [String, Number] }, ft = {
179
179
  placement: {
180
180
  type: String,
181
- default: U.bottom,
182
- validator: (e) => Object.values(U).includes(e) || Object.values(ze).includes(e)
181
+ default: H.bottom,
182
+ validator: (e) => Object.values(H).includes(e) || Object.values(Ve).includes(e)
183
183
  },
184
184
  strategy: {
185
185
  type: String,
186
186
  default: void 0,
187
- validator: (e) => Object.values(Re).includes(e)
187
+ validator: (e) => Object.values(Be).includes(e)
188
188
  },
189
189
  transitionName: {
190
190
  type: String,
@@ -234,72 +234,72 @@ var V = {
234
234
  type: Boolean,
235
235
  default: !1
236
236
  }
237
- }, ft = {
238
- ...ut,
237
+ }, pt = {
238
+ ...dt,
239
239
  name: {
240
240
  type: String,
241
241
  required: !0
242
242
  }
243
- }, pt = { autofocus: {
243
+ }, mt = { autofocus: {
244
244
  type: Boolean,
245
245
  default: !1
246
- } }, mt = { autocomplete: {
246
+ } }, ht = { autocomplete: {
247
247
  type: String,
248
248
  default: "off"
249
249
  } };
250
250
  ({
251
- ...ft,
252
251
  ...pt,
253
252
  ...mt,
254
- ...st,
253
+ ...ht,
254
+ ...ct,
255
255
  ...X,
256
- ...tt,
256
+ ...nt,
257
257
  ...q,
258
258
  ...J,
259
- ...nt,
259
+ ...rt,
260
260
  ...Y,
261
261
  ...$,
262
- ...it,
263
262
  ...at,
264
263
  ...ot,
265
- ...ct,
266
- ...$e,
267
- ...et
268
- }), { ...Z }, {
269
- ...ft,
270
264
  ...st,
265
+ ...lt,
266
+ ...et,
267
+ ...tt
268
+ }), { ...Z }, {
269
+ ...pt,
270
+ ...ct,
271
271
  ...q,
272
272
  ...J,
273
- ...nt,
273
+ ...rt,
274
274
  ...X,
275
- ...tt,
275
+ ...nt,
276
276
  ...$,
277
- ...$e,
278
277
  ...et,
278
+ ...tt,
279
279
  ...Y
280
280
  }, {
281
281
  ...q,
282
282
  ...J,
283
+ ...it,
283
284
  ...rt,
284
- ...nt,
285
285
  ...X,
286
- ...tt,
286
+ ...nt,
287
287
  ...$,
288
- ...$e,
288
+ ...et,
289
289
  ...Y,
290
290
  ...Z
291
291
  };
292
- var ht = {
292
+ var gt = {
293
293
  ...X,
294
+ ...et,
294
295
  ...$e,
295
- ...Qe,
296
- ...Xe,
297
296
  ...Ze,
298
- ...Je,
297
+ ...Q,
298
+ ...Ye,
299
299
  type: {
300
300
  type: String,
301
- default: Ve.button,
302
- validator: (e) => Object.values(Ve).includes(e)
301
+ default: Ue.button,
302
+ validator: (e) => Object.values(Ue).includes(e)
303
303
  },
304
304
  ariaLabel: {
305
305
  type: String,
@@ -307,28 +307,28 @@ var ht = {
307
307
  },
308
308
  defaultTag: {
309
309
  type: String,
310
- default: W.button
310
+ default: U.button
311
311
  }
312
312
  };
313
- Le.local;
314
- var gt = {
315
- ...ft,
316
- ...st,
313
+ ze.local;
314
+ var _t = {
315
+ ...pt,
316
+ ...ct,
317
317
  ...q,
318
318
  ...J,
319
- ...nt,
319
+ ...rt,
320
320
  ...Y,
321
321
  ...X,
322
- ...tt,
322
+ ...nt,
323
323
  ...$,
324
- ...rt,
325
- ...ot,
326
- ...ct,
327
- ...dt,
328
- ...$e,
324
+ ...it,
325
+ ...st,
326
+ ...lt,
327
+ ...ft,
329
328
  ...et,
329
+ ...tt,
330
330
  ...Z,
331
- ...Q,
331
+ ...Qe,
332
332
  transitionName: {
333
333
  type: String,
334
334
  default: "vv-dropdown--mobile-fade-block"
@@ -416,7 +416,7 @@ var gt = {
416
416
  default: "action sm"
417
417
  },
418
418
  triggerWidth: {
419
- ...dt.triggerWidth,
419
+ ...ft.triggerWidth,
420
420
  default: !0
421
421
  },
422
422
  dropdownModifiers: {
@@ -440,50 +440,50 @@ var gt = {
440
440
  default: !0
441
441
  }
442
442
  };
443
- function _t() {
443
+ function vt() {
444
444
  return {
445
- ...gt,
445
+ ..._t,
446
446
  options: {
447
- ...gt.options,
447
+ ..._t.options,
448
448
  type: Array
449
449
  },
450
450
  searchFunction: {
451
- ...gt.searchFunction,
451
+ ..._t.searchFunction,
452
452
  type: Function
453
453
  }
454
454
  };
455
455
  }
456
- function vt(e, t, n) {
457
- return n ? St(e, n) === St(t, n) : xt(e, t);
456
+ function yt(e, t, n) {
457
+ return n ? Ct(e, n) === Ct(t, n) : St(e, t);
458
458
  }
459
- function yt(e, t) {
459
+ function bt(e, t) {
460
460
  if (e.length !== t.length) return !1;
461
- for (let n = e.length; n-- !== 0;) if (!xt(e[n], t[n])) return !1;
461
+ for (let n = e.length; n-- !== 0;) if (!St(e[n], t[n])) return !1;
462
462
  return !0;
463
463
  }
464
- function bt(e, t) {
464
+ function xt(e, t) {
465
465
  let n = Object.keys(e), { length: r } = n;
466
466
  if (r !== Object.keys(t).length) return !1;
467
467
  for (let e = r; e-- !== 0;) if (!Object.hasOwn(t, n[e])) return !1;
468
468
  for (let i = r; i-- !== 0;) {
469
469
  let r = n[i];
470
- if (!xt(e[r], t[r])) return !1;
470
+ if (!St(e[r], t[r])) return !1;
471
471
  }
472
472
  return !0;
473
473
  }
474
- function xt(e, t) {
474
+ function St(e, t) {
475
475
  if (e === t) return !0;
476
476
  if (!e || !t || typeof e != "object" || typeof t != "object") return Number.isNaN(e) && Number.isNaN(t);
477
477
  let n = Array.isArray(e), r = Array.isArray(t);
478
478
  if (n !== r) return !1;
479
- if (n && r) return yt(e, t);
479
+ if (n && r) return bt(e, t);
480
480
  let i = e instanceof Date, a = t instanceof Date;
481
481
  if (i !== a) return !1;
482
482
  if (i && a) return e.getTime() === t.getTime();
483
483
  let o = e instanceof RegExp, s = t instanceof RegExp;
484
- return o === s ? o && s ? e.toString() === t.toString() : bt(e, t) : !1;
484
+ return o === s ? o && s ? e.toString() === t.toString() : xt(e, t) : !1;
485
485
  }
486
- function St(e, t) {
486
+ function Ct(e, t) {
487
487
  if (e && Object.keys(e).length && t) {
488
488
  if (!t.includes(".")) return e[t];
489
489
  let n = t.split("."), r = e;
@@ -495,32 +495,32 @@ function St(e, t) {
495
495
  }
496
496
  return null;
497
497
  }
498
- function Ct(e, t) {
498
+ function wt(e, t) {
499
499
  if (e != null && t?.length) {
500
- for (let n of t) if (vt(e, n)) return !0;
500
+ for (let n of t) if (yt(e, n)) return !0;
501
501
  }
502
502
  return !1;
503
503
  }
504
- function wt(e) {
504
+ function Tt(e) {
505
505
  return typeof e == "string";
506
506
  }
507
- function Tt(e) {
508
- return Array.isArray(e) ? e.filter((e) => wt(e)).join(" ") : e;
507
+ function Et(e) {
508
+ return Array.isArray(e) ? e.filter((e) => Tt(e)).join(" ") : e;
509
509
  }
510
- function Et(e, t) {
511
- let r = D(() => ge(e) ? e.value : e), i = D(() => Tt(r.value.invalidLabel)), a = D(() => Tt(r.value.validLabel)), o = D(() => r.value.loadingLabel), s = D(() => r.value.hintLabel), c = D(() => !!(r.value.loading && (t.loading || o.value))), l = D(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = D(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = D(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), ee = D(() => l.value || u.value || c.value || d.value);
510
+ function Dt(e, t) {
511
+ let r = T(() => ve(e) ? e.value : e), i = T(() => Et(r.value.invalidLabel)), a = T(() => Et(r.value.validLabel)), o = T(() => r.value.loadingLabel), s = T(() => r.value.hintLabel), c = T(() => !!(r.value.loading && (t.loading || o.value))), l = T(() => !c.value && !!(r.value.invalid && (t.invalid || i.value))), u = T(() => !c.value && !l.value && !!(r.value.valid && (t.valid || a.value))), d = T(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), ee = T(() => l.value || u.value || c.value || d.value);
512
512
  return {
513
513
  hasInvalidLabelOrSlot: l,
514
514
  hasHintLabelOrSlot: d,
515
515
  hasValidLabelOrSlot: u,
516
516
  hasLoadingLabelOrSlot: c,
517
- hintSlotScope: D(() => ({
517
+ hintSlotScope: T(() => ({
518
518
  modelValue: r.value.modelValue,
519
519
  valid: r.value.valid,
520
520
  invalid: r.value.invalid,
521
521
  loading: r.value.loading
522
522
  })),
523
- HintSlot: M({
523
+ HintSlot: A({
524
524
  name: "HintSlot",
525
525
  props: { tag: {
526
526
  type: String,
@@ -549,20 +549,20 @@ function Et(e, t) {
549
549
  })
550
550
  };
551
551
  }
552
- function Dt() {
553
- return e(Ge, void 0);
552
+ function Ot() {
553
+ return e(qe, void 0);
554
554
  }
555
- function Ot(e, t, n) {
556
- return D(() => {
555
+ function kt(e, t, n) {
556
+ return T(() => {
557
557
  let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
558
558
  return i && Array.isArray(i) && i.forEach((t) => {
559
559
  t && (r[`${e}--${t}`] = !0);
560
560
  }), n && Object.keys(n.value).forEach((t) => {
561
- r[`${e}--${t}`] = N(n.value[t]);
561
+ r[`${e}--${t}`] = j(n.value[t]);
562
562
  }), r;
563
563
  });
564
564
  }
565
- var kt = /* @__PURE__ */ M({
565
+ var At = /* @__PURE__ */ A({
566
566
  name: "VvIcon",
567
567
  props: /* @__PURE__ */ f({
568
568
  name: {},
@@ -581,14 +581,14 @@ var kt = /* @__PURE__ */ M({
581
581
  onLoad: { type: Function },
582
582
  svg: {},
583
583
  modifiers: {}
584
- }, H),
584
+ }, V),
585
585
  setup(e) {
586
- let t = e, n = D(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = E(!0), i = Dt(), { modifiers: a } = F(t), o = Ot("vv-icon", a), s = D(() => t.provider || i?.iconsProvider), c = D(() => {
586
+ let t = e, n = T(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = N(t), o = kt("vv-icon", a), s = T(() => t.provider || i?.iconsProvider), c = T(() => {
587
587
  let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
588
- if (_e(n)) return n;
588
+ if (ye(n)) return n;
589
589
  let r = i?.iconsCollections.find((t) => {
590
590
  let n = `@${s.value}:${t.prefix}:${e}`;
591
- return _e(n);
591
+ return ye(n);
592
592
  });
593
593
  return r ? `@${s.value}:${r.prefix}:${e}` : e;
594
594
  });
@@ -597,19 +597,19 @@ var kt = /* @__PURE__ */ M({
597
597
  }
598
598
  function u(e) {
599
599
  let n = l(e), r = n?.innerHTML.trim() || "";
600
- n && r && R(`@${s.value}:${t.prefix}:${t.name}`, {
600
+ n && r && I(`@${s.value}:${t.prefix}:${t.name}`, {
601
601
  body: r,
602
602
  height: n.viewBox.baseVal.height,
603
603
  width: n.viewBox.baseVal.width
604
604
  });
605
605
  }
606
- return i && t.src && !_e(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
606
+ return i && t.src && !ye(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
607
607
  e && u(e), r.value = !0;
608
608
  }).catch((e) => {
609
609
  throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
610
- })), t.svg && u(t.svg), (t, i) => N(r) ? (L(), S(N(ve), h({
610
+ })), t.svg && u(t.svg), (t, i) => j(r) ? (F(), S(j(be), h({
611
611
  key: 0,
612
- class: N(o)
612
+ class: j(o)
613
613
  }, {
614
614
  inline: e.inline,
615
615
  width: e.width,
@@ -617,26 +617,26 @@ var kt = /* @__PURE__ */ M({
617
617
  horizontalFlip: e.horizontalFlip,
618
618
  verticalFlip: e.verticalFlip,
619
619
  flip: e.flip,
620
- rotate: N(n),
620
+ rotate: j(n),
621
621
  color: e.color,
622
- icon: N(c)
623
- }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : j("v-if", !0);
622
+ icon: j(c)
623
+ }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : k("v-if", !0);
624
624
  }
625
625
  });
626
- function At(e, t) {
627
- let n = D(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = D(() => t?.value === Be.before ? n.value : void 0), i = D(() => t?.value === Be.after ? n.value : void 0);
626
+ function jt(e, t) {
627
+ let n = T(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = T(() => t?.value === He.before ? n.value : void 0), i = T(() => t?.value === He.after ? n.value : void 0);
628
628
  return {
629
629
  hasIcon: n,
630
- hasIconLeft: D(() => t?.value === U.left ? n.value : void 0),
631
- hasIconRight: D(() => t?.value === U.right ? n.value : void 0),
632
- hasIconTop: D(() => t?.value === U.top ? n.value : void 0),
633
- hasIconBottom: D(() => t?.value === U.bottom ? n.value : void 0),
630
+ hasIconLeft: T(() => t?.value === H.left ? n.value : void 0),
631
+ hasIconRight: T(() => t?.value === H.right ? n.value : void 0),
632
+ hasIconTop: T(() => t?.value === H.top ? n.value : void 0),
633
+ hasIconBottom: T(() => t?.value === H.bottom ? n.value : void 0),
634
634
  hasIconBefore: r,
635
635
  hasIconAfter: i
636
636
  };
637
637
  }
638
- var jt = M({
639
- components: { VvIcon: kt },
638
+ var Mt = A({
639
+ components: { VvIcon: At },
640
640
  props: {
641
641
  inputType: {
642
642
  type: String,
@@ -657,7 +657,7 @@ var jt = M({
657
657
  },
658
658
  emits: ["clear"],
659
659
  setup(e, { emit: t }) {
660
- let { hasIcon: n } = At(D(() => e.icon));
660
+ let { hasIcon: n } = jt(T(() => e.icon));
661
661
  function r(n) {
662
662
  n?.stopPropagation(), e.disabled || t("clear");
663
663
  }
@@ -667,7 +667,7 @@ var jt = M({
667
667
  };
668
668
  },
669
669
  render() {
670
- let e = this.hasIcon ? n(kt, {
670
+ let e = this.hasIcon ? n(At, {
671
671
  ...this.hasIcon,
672
672
  class: `vv-${this.inputType}__icon`
673
673
  }) : void 0;
@@ -679,22 +679,22 @@ var jt = M({
679
679
  onClick: this.onClick
680
680
  }, e);
681
681
  }
682
- }), Mt = {
682
+ }), Nt = {
683
683
  ...$,
684
684
  value: [String, Number]
685
- }, Nt = /* @__PURE__ */ M({
685
+ }, Pt = /* @__PURE__ */ A({
686
686
  name: "VvBadge",
687
- props: Mt,
687
+ props: Nt,
688
688
  setup(e) {
689
- let { modifiers: t } = F(e), n = Ot("vv-badge", t);
690
- return (e, t) => (L(), I("span", { class: a(N(n)) }, [c(e.$slots, "default", {}, () => [P(O(e.value), 1)])], 2));
689
+ let { modifiers: t } = N(e), n = kt("vv-badge", t);
690
+ return (e, t) => (F(), P("span", { class: a(j(n)) }, [c(e.$slots, "default", {}, () => [M(E(e.value), 1)])], 2));
691
691
  }
692
692
  });
693
- function Pt(t) {
694
- let n = e(t, void 0), r = D(() => n !== void 0);
693
+ function Ft(t) {
694
+ let n = e(t, void 0), r = T(() => n !== void 0);
695
695
  function i(e, t, r) {
696
696
  let i = n?.[e];
697
- if (i) return D({
697
+ if (i) return T({
698
698
  get() {
699
699
  return i.value;
700
700
  },
@@ -702,8 +702,8 @@ function Pt(t) {
702
702
  i.value = e;
703
703
  }
704
704
  });
705
- let a = ie(t, e);
706
- return D({
705
+ let a = ae(t, e);
706
+ return T({
707
707
  get() {
708
708
  return a.value;
709
709
  },
@@ -718,17 +718,17 @@ function Pt(t) {
718
718
  getGroupOrLocalRef: i
719
719
  };
720
720
  }
721
- var Ft = ["update:modelValue"], It = {
722
- ...ht,
723
- ...ut,
721
+ var It = ["update:modelValue"], Lt = {
722
+ ...gt,
723
+ ...dt,
724
724
  ...$,
725
- ...lt,
725
+ ...ut,
726
726
  ...Y,
727
- ...ot,
727
+ ...st,
728
728
  iconPosition: {
729
729
  type: String,
730
- default: U.left,
731
- validator: (e) => Object.values(U).includes(e)
730
+ default: H.left,
731
+ validator: (e) => Object.values(H).includes(e)
732
732
  },
733
733
  loadingIcon: {
734
734
  type: String,
@@ -763,20 +763,20 @@ var Ft = ["update:modelValue"], It = {
763
763
  default: void 0
764
764
  }
765
765
  };
766
- function Lt(e, t) {
767
- let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Pt(Ke), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = F(e);
766
+ function Rt(e, t) {
767
+ let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Ft(W), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = N(e);
768
768
  return {
769
769
  group: n,
770
770
  isInGroup: r,
771
771
  modelValue: i("modelValue", e, t),
772
772
  toggle: i("toggle", e),
773
773
  unselectable: i("unselectable", e),
774
- multiple: D(() => n?.multiple.value ?? !1),
775
- modifiers: D(() => {
774
+ multiple: T(() => n?.multiple.value ?? !1),
775
+ modifiers: T(() => {
776
776
  let t = e.modifiers, r = n?.modifiers.value, i = /* @__PURE__ */ new Set();
777
777
  return t && (Array.isArray(t) || (t = t.split(" ")), t.forEach((e) => i.add(e))), r && (Array.isArray(r) || (r = r.split(" ")), r.forEach((e) => i.add(e))), [...i];
778
778
  }),
779
- disabled: D(() => !!(e.disabled || n?.disabled.value)),
779
+ disabled: T(() => !!(e.disabled || n?.disabled.value)),
780
780
  id: a,
781
781
  pressed: l,
782
782
  iconPosition: o,
@@ -784,59 +784,59 @@ function Lt(e, t) {
784
784
  label: c
785
785
  };
786
786
  }
787
- var Rt = [
787
+ var zt = [
788
788
  "click",
789
789
  "mouseover",
790
790
  "mouseleave"
791
791
  ];
792
- function zt() {
793
- return e(G, {});
794
- }
795
792
  function Bt() {
796
- return e(qe, {});
793
+ return e(G, {});
797
794
  }
798
795
  function Vt() {
799
796
  return e(K, {});
800
797
  }
801
- var Ht = /* @__PURE__ */ M({
798
+ function Ht() {
799
+ return e(Je, {});
800
+ }
801
+ var Ut = /* @__PURE__ */ A({
802
802
  name: "VvAction",
803
- props: ht,
804
- emits: Rt,
803
+ props: gt,
804
+ emits: zt,
805
805
  setup(e, { expose: t, emit: n }) {
806
- let r = e, i = n, a = ne(), o = Dt(), s = E(null);
806
+ let r = e, i = n, a = ne(), o = Ot(), s = w(null);
807
807
  t({ $el: s });
808
- let { reference: l, bus: u, aria: d, expanded: ee } = zt();
808
+ let { reference: l, bus: u, aria: d, expanded: ee } = Bt();
809
809
  g(() => s.value, (e) => {
810
810
  l && (l.value = e);
811
811
  });
812
- let f = D(() => r.pressed || ee?.value), { role: p, onAction: m } = Vt(), _ = D(() => {
812
+ let f = T(() => r.pressed || ee?.value), { role: p, onAction: m } = Ht(), _ = T(() => {
813
813
  switch (!0) {
814
- case r.disabled: return W.button;
815
- case r.to !== void 0: return o?.nuxt ? y(W.nuxtLink) : W.routerLink;
816
- case r.href !== void 0: return W.a;
814
+ case r.disabled: return U.button;
815
+ case r.to !== void 0: return o?.nuxt ? y(U.nuxtLink) : U.routerLink;
816
+ case r.href !== void 0: return U.a;
817
817
  default: return r.defaultTag;
818
818
  }
819
- }), te = D(() => {
819
+ }), te = T(() => {
820
820
  let e = {
821
821
  ...d?.value,
822
- ariaPressed: r.pressed && p?.value !== He.menuitem ? !0 : void 0,
822
+ ariaPressed: r.pressed && p?.value !== We.menuitem ? !0 : void 0,
823
823
  ariaLabel: r.ariaLabel,
824
824
  role: p?.value
825
825
  };
826
826
  switch (_.value) {
827
- case W.a: return {
827
+ case U.a: return {
828
828
  ...e,
829
829
  href: r.href,
830
830
  target: r.target,
831
831
  rel: r.rel
832
832
  };
833
- case W.routerLink:
834
- case W.nuxtLink: return {
833
+ case U.routerLink:
834
+ case U.nuxtLink: return {
835
835
  ...e,
836
836
  to: r.to,
837
837
  target: r.target
838
838
  };
839
- case W.button: return {
839
+ case U.button: return {
840
840
  ...e,
841
841
  type: r.type,
842
842
  disabled: r.disabled
@@ -853,12 +853,12 @@ var Ht = /* @__PURE__ */ M({
853
853
  function re(e) {
854
854
  a?.vnode.props?.onMouseleave ? i("mouseleave", e) : u?.emit("mouseleave", e);
855
855
  }
856
- return (e, t) => (L(), S(x(N(_)), h(N(te), {
856
+ return (e, t) => (F(), S(x(j(_)), h(j(te), {
857
857
  ref_key: "rootEl",
858
858
  ref: s,
859
859
  class: {
860
860
  active: e.active,
861
- pressed: N(f),
861
+ pressed: j(f),
862
862
  disabled: e.disabled,
863
863
  current: e.current
864
864
  },
@@ -866,58 +866,58 @@ var Ht = /* @__PURE__ */ M({
866
866
  onMouseoverPassive: b,
867
867
  onMouseleavePassive: re
868
868
  }), {
869
- default: A(() => [c(e.$slots, "default", {}, () => [P(O(e.label), 1)])]),
869
+ default: O(() => [c(e.$slots, "default", {}, () => [M(E(e.label), 1)])]),
870
870
  _: 3
871
871
  }, 16, ["class"]));
872
872
  }
873
873
  });
874
- function Ut(e) {
875
- let t = k();
876
- return D(() => String(e?.value || t));
874
+ function Wt(e) {
875
+ let t = D();
876
+ return T(() => String(e?.value || t));
877
877
  }
878
- var Wt = {
878
+ var Gt = {
879
879
  key: 1,
880
880
  class: "vv-button__label"
881
- }, Gt = {
881
+ }, Kt = {
882
882
  key: 1,
883
883
  class: "vv-button__label"
884
- }, Kt = /* @__PURE__ */ M({
884
+ }, qt = /* @__PURE__ */ A({
885
885
  name: "VvButton",
886
886
  inheritAttrs: !1,
887
- props: It,
888
- emits: Ft,
887
+ props: Lt,
888
+ emits: It,
889
889
  setup(e, { expose: t, emit: n }) {
890
- let r = e, i = n, a = d(), o = re(), { id: s, modifiers: l, iconPosition: u, icon: ee, label: f, modelValue: p, disabled: m, toggle: g, unselectable: _ } = Lt(r, i), te = Ut(s), ne = D(() => a?.name || te.value), v = E(null);
891
- t({ $el: D(() => v.value?.$el) });
892
- let y = D(() => g.value ? Array.isArray(p.value) ? Ct(ne.value, p.value) : vt(ne.value, p.value) : r.pressed), b = Ot("vv-button", l, D(() => ({
893
- reverse: [U.right, U.bottom].includes(u.value),
894
- column: [U.top, U.bottom].includes(u.value),
890
+ let r = e, i = n, a = d(), o = re(), { id: s, modifiers: l, iconPosition: u, icon: ee, label: f, modelValue: p, disabled: m, toggle: g, unselectable: _ } = Rt(r, i), te = Wt(s), ne = T(() => a?.name || te.value), v = w(null);
891
+ t({ $el: T(() => v.value?.$el) });
892
+ let y = T(() => g.value ? Array.isArray(p.value) ? wt(ne.value, p.value) : yt(ne.value, p.value) : r.pressed), b = kt("vv-button", l, T(() => ({
893
+ reverse: [H.right, H.bottom].includes(u.value),
894
+ column: [H.top, H.bottom].includes(u.value),
895
895
  "icon-only": !(!ee?.value || f?.value || o.default)
896
- }))), { hasIcon: x } = At(ee), C = D(() => r.value === void 0 ? ne.value : r.value), ie = D(() => {
897
- if (g.value) return { onClick: ae };
896
+ }))), { hasIcon: x } = jt(ee), ie = T(() => r.value === void 0 ? ne.value : r.value), ae = T(() => {
897
+ if (g.value) return { onClick: oe };
898
898
  });
899
- function ae() {
899
+ function oe() {
900
900
  if (g.value) {
901
901
  if (Array.isArray(p.value)) {
902
- if (Ct(C.value, p.value)) {
903
- _.value && (p.value = p.value.filter((e) => e !== C.value));
902
+ if (wt(ie.value, p.value)) {
903
+ _.value && (p.value = p.value.filter((e) => e !== ie.value));
904
904
  return;
905
905
  }
906
- p.value.push(C.value);
906
+ p.value.push(ie.value);
907
907
  return;
908
908
  }
909
- if (C.value === p.value && _.value) {
909
+ if (ie.value === p.value && _.value) {
910
910
  p.value = r.uncheckedValue;
911
911
  return;
912
912
  }
913
- p.value = C.value;
913
+ p.value = ie.value;
914
914
  }
915
915
  }
916
- return (e, t) => (L(), S(Ht, h({
917
- ...N(a),
918
- ...N(ie),
919
- disabled: N(m),
920
- pressed: N(y),
916
+ return (e, t) => (F(), S(Ut, h({
917
+ ...j(a),
918
+ ...j(ae),
919
+ disabled: j(m),
920
+ pressed: j(y),
921
921
  active: e.active,
922
922
  type: e.type,
923
923
  to: e.to,
@@ -926,27 +926,27 @@ var Wt = {
926
926
  rel: e.rel,
927
927
  ariaLabel: e.ariaLabel
928
928
  }, {
929
- id: N(te),
929
+ id: j(te),
930
930
  ref_key: "rootEl",
931
931
  ref: v,
932
- class: N(b)
932
+ class: j(b)
933
933
  }), {
934
- default: A(() => [c(e.$slots, "default", {}, () => [e.loading ? c(e.$slots, "loading", {}, () => [e.loadingIcon ? (L(), S(kt, {
934
+ default: O(() => [c(e.$slots, "default", {}, () => [e.loading ? c(e.$slots, "loading", {}, () => [e.loadingIcon ? (F(), S(At, {
935
935
  key: 0,
936
936
  class: "vv-button__loading-icon",
937
937
  name: e.loadingIcon
938
- }, null, 8, ["name"])) : j("v-if", !0), e.loadingLabel ? (L(), I("span", Wt, O(e.loadingLabel), 1)) : j("v-if", !0)], void 0, 0) : (L(), I(w, { key: 1 }, [
938
+ }, null, 8, ["name"])) : k("v-if", !0), e.loadingLabel ? (F(), P("span", Gt, E(e.loadingLabel), 1)) : k("v-if", !0)], void 0, 0) : (F(), P(C, { key: 1 }, [
939
939
  c(e.$slots, "before"),
940
- N(x) ? (L(), S(kt, h({ key: 0 }, N(x), { class: "vv-button__icon" }), null, 16)) : j("v-if", !0),
941
- N(f) ? (L(), I("span", Gt, [c(e.$slots, "label", {}, () => [P(O(N(f)), 1)])])) : j("v-if", !0),
940
+ j(x) ? (F(), S(At, h({ key: 0 }, j(x), { class: "vv-button__icon" }), null, 16)) : k("v-if", !0),
941
+ j(f) ? (F(), P("span", Kt, [c(e.$slots, "label", {}, () => [M(E(j(f)), 1)])])) : k("v-if", !0),
942
942
  c(e.$slots, "after")
943
943
  ], 64))])]),
944
944
  _: 3
945
945
  }, 16, ["id", "class"]));
946
946
  }
947
- }), qt = {
948
- ...ut,
947
+ }), Jt = {
949
948
  ...dt,
949
+ ...ft,
950
950
  ...$,
951
951
  modelValue: {
952
952
  type: Boolean,
@@ -958,16 +958,16 @@ var Wt = {
958
958
  },
959
959
  role: {
960
960
  type: String,
961
- default: Ue.menu,
962
- validator: (e) => Object.values(Ue).includes(e)
961
+ default: Ge.menu,
962
+ validator: (e) => Object.values(Ge).includes(e)
963
963
  }
964
- }, Jt = { focusOnHover: {
964
+ }, Yt = { focusOnHover: {
965
965
  type: Boolean,
966
966
  default: !1
967
- } }, Yt = {
967
+ } }, Xt = {
968
968
  ...X,
969
- ...Ye,
970
- ...lt,
969
+ ...Xe,
970
+ ...ut,
971
971
  ...$,
972
972
  deselectHintLabel: { type: String },
973
973
  selectHintLabel: { type: String },
@@ -977,8 +977,8 @@ var Wt = {
977
977
  default: !1
978
978
  }
979
979
  };
980
- function Xt(e, t) {
981
- let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = D(() => n && te(t)), i = D(() => r.value ? "manual" : void 0);
980
+ function Zt(e, t) {
981
+ let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = T(() => n && te(t)), i = T(() => r.value ? "manual" : void 0);
982
982
  function a() {
983
983
  return (n && e.value?.matches(":popover-open")) ?? !1;
984
984
  }
@@ -999,11 +999,11 @@ function Xt(e, t) {
999
999
  hide: s
1000
1000
  };
1001
1001
  }
1002
- function Zt({ reference: e, id: r, expanded: i, aria: a }) {
1003
- let o = Se();
1002
+ function Qt({ reference: e, id: r, expanded: i, aria: a }) {
1003
+ let o = we();
1004
1004
  return {
1005
1005
  bus: o,
1006
- component: M({
1006
+ component: A({
1007
1007
  name: "VvDropdownTriggerProvider",
1008
1008
  setup() {
1009
1009
  t(G, {
@@ -1015,34 +1015,34 @@ function Zt({ reference: e, id: r, expanded: i, aria: a }) {
1015
1015
  });
1016
1016
  },
1017
1017
  render() {
1018
- return n(w, {}, this.$slots.default?.());
1018
+ return n(C, {}, this.$slots.default?.());
1019
1019
  }
1020
1020
  })
1021
1021
  };
1022
1022
  }
1023
- function Qt({ role: e, ...n }) {
1024
- let r = D(() => e.value === Ue.listbox ? We.option : We.presentation);
1025
- return t(qe, {
1023
+ function $t({ role: e, ...n }) {
1024
+ let r = T(() => e.value === Ge.listbox ? Ke.option : Ke.presentation);
1025
+ return t(K, {
1026
1026
  role: r,
1027
1027
  ...n
1028
1028
  }), { itemRole: r };
1029
1029
  }
1030
- function $t({ expanded: e, onAction: n }) {
1031
- t(K, {
1032
- role: E(He.menuitem),
1030
+ function en({ expanded: e, onAction: n }) {
1031
+ t(Je, {
1032
+ role: w(We.menuitem),
1033
1033
  expanded: e,
1034
1034
  onAction: n
1035
1035
  });
1036
1036
  }
1037
- var en = ["popover"], tn = [
1037
+ var tn = ["popover"], nn = [
1038
1038
  "id",
1039
1039
  "tabindex",
1040
1040
  "role",
1041
1041
  "aria-labelledby"
1042
- ], nn = /* @__PURE__ */ M({
1042
+ ], rn = /* @__PURE__ */ A({
1043
1043
  name: "VvDropdown",
1044
1044
  inheritAttrs: !1,
1045
- props: qt,
1045
+ props: Jt,
1046
1046
  emits: [
1047
1047
  "update:modelValue",
1048
1048
  "beforeEnter",
@@ -1061,201 +1061,205 @@ var en = ["popover"], tn = [
1061
1061
  "leaveCancelled"
1062
1062
  ],
1063
1063
  setup(e, { expose: t, emit: n }) {
1064
- let l = e, u = n, { id: f } = F(l), p = Ut(f), te = d(), ne = E(), v = E(), y = E(), b = E(), x = D({
1064
+ let l = e, u = n, { id: f } = N(l), p = Wt(f), te = d(), ne = w(), v = w(), y = w(), b = w(), x = T({
1065
1065
  get: () => l.reference ?? ne.value,
1066
1066
  set: (e) => {
1067
1067
  ne.value = e;
1068
1068
  }
1069
- }), { isTopLayer: re, popover: S, show: C, hide: ie } = Xt(v, () => l.topLayer), ae = D(() => re.value ? Re.fixed : l.strategy), oe = E(!1);
1069
+ }), { isTopLayer: re, popover: S, show: ie, hide: ae } = Zt(v, () => l.topLayer), oe = T(() => re.value ? Be.fixed : l.strategy), se = w(!1);
1070
1070
  ee(() => {
1071
- je(v.value, () => {
1072
- oe.value = globalThis.getComputedStyle(v.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
1071
+ Pe(v.value, () => {
1072
+ se.value = globalThis.getComputedStyle(v.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
1073
1073
  }, {
1074
1074
  attributeFilter: ["style"],
1075
1075
  window: globalThis.window
1076
1076
  });
1077
1077
  });
1078
- function ce(e, t, n) {
1078
+ function ue(e, t, n) {
1079
1079
  return typeof e == "boolean" ? t() : n(e);
1080
1080
  }
1081
- function O(e) {
1081
+ function E(e) {
1082
1082
  return !e.width && !e.height;
1083
1083
  }
1084
- let de = {
1084
+ let pe = {
1085
1085
  name: "uncap",
1086
1086
  fn({ elements: e, rects: t, middlewareData: n }) {
1087
1087
  let { style: r } = e.floating, i = t.floating.height >= Number.parseFloat(r.maxHeight) - 1 || t.floating.width >= Number.parseFloat(r.maxWidth) - 1;
1088
- return n.uncap || !i || O(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
1088
+ return n.uncap || !i || E(t.floating) ? {} : (r.maxHeight = "", r.maxWidth = "", {
1089
1089
  data: { uncapped: !0 },
1090
1090
  reset: { rects: !0 }
1091
1091
  });
1092
1092
  }
1093
1093
  };
1094
- function k(e) {
1095
- return l.triggerWidth && !oe.value ? e.reference.width : 0;
1094
+ function D(e) {
1095
+ return l.triggerWidth && !se.value ? e.reference.width : 0;
1096
1096
  }
1097
- let fe = {
1097
+ let me = {
1098
1098
  name: "triggerWidth",
1099
1099
  fn({ elements: e, rects: t, middlewareData: n }) {
1100
- let { style: r } = e.floating, i = k(t), a = Number.parseFloat(r.width) || 0;
1100
+ let { style: r } = e.floating, i = D(t), a = Number.parseFloat(r.width) || 0;
1101
1101
  return n.triggerWidth || Math.abs(i - a) < .01 ? {} : (r.width = i ? `${i}px` : "", { reset: { rects: !0 } });
1102
1102
  }
1103
- }, pe = D(() => {
1103
+ }, he = T(() => {
1104
1104
  let e = [];
1105
- l.triggerWidth && e.push(fe), l.size && e.push(de), l.offset && e.push(["string", "number"].includes(typeof l.offset) ? we(Number(l.offset)) : we(l.offset));
1105
+ l.triggerWidth && e.push(me), l.size && e.push(pe), l.offset && e.push(["string", "number"].includes(typeof l.offset) ? Ee(Number(l.offset)) : Ee(l.offset));
1106
1106
  let t = typeof l.size == "object" ? l.size.padding : void 0;
1107
- if (l.autoPlacement ? e.push(ce(l.autoPlacement, () => Te(), (e) => Te(e))) : l.flip && e.push(ce(l.flip, () => ye({
1107
+ if (l.autoPlacement ? e.push(ue(l.autoPlacement, () => De(), (e) => De(e))) : l.flip && e.push(ue(l.flip, () => xe({
1108
1108
  fallbackStrategy: "initialPlacement",
1109
1109
  padding: t
1110
- }), (e) => ye({
1110
+ }), (e) => xe({
1111
1111
  padding: t,
1112
1112
  ...e
1113
- }))), l.shift && e.push(ce(l.shift, () => Ee(), (e) => Ee(e))), l.size) {
1113
+ }))), l.shift && e.push(ue(l.shift, () => Oe(), (e) => Oe(e))), l.size) {
1114
1114
  let t = ({ availableWidth: e, availableHeight: t, elements: n, rects: r }) => {
1115
- if (O(r.floating) || oe.value) return;
1115
+ if (E(r.floating) || se.value) return;
1116
1116
  let { style: i } = n.floating;
1117
- i.maxWidth = k(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
1117
+ i.maxWidth = D(r) ? "" : `${Math.max(0, e)}px`, i.maxHeight = `${Math.max(0, t)}px`;
1118
1118
  };
1119
- e.push(ce(l.size, () => be({ apply: t }), (e) => be({
1119
+ e.push(ue(l.size, () => Se({ apply: t }), (e) => Se({
1120
1120
  ...e,
1121
1121
  apply: (n) => (t(n), e?.apply?.(n))
1122
1122
  })));
1123
1123
  }
1124
- return l.arrow && e.push(De({ element: y })), e;
1125
- }), { x: he, y: ge, middlewareData: M, placement: P, strategy: _e, update: R } = Ce(x, v, {
1126
- placement: D(() => l.placement),
1127
- strategy: ae,
1128
- middleware: pe
1129
- }), ve = D(() => {
1130
- if (!oe.value) return {
1131
- position: _e.value,
1132
- top: `${ge.value ?? 0}px`,
1133
- left: `${he.value ?? 0}px`
1124
+ return l.arrow && e.push(ke({ element: y })), e;
1125
+ }), { x: _e, y: ve, middlewareData: A, placement: M, strategy: ye, update: I } = Te(x, v, {
1126
+ placement: T(() => l.placement),
1127
+ strategy: oe,
1128
+ middleware: he
1129
+ }), be = T(() => {
1130
+ if (!se.value) return {
1131
+ position: ye.value,
1132
+ top: `${ve.value ?? 0}px`,
1133
+ left: `${_e.value ?? 0}px`
1134
1134
  };
1135
1135
  });
1136
1136
  g(() => l.triggerWidth, (e) => {
1137
1137
  !e && v.value && (v.value.style.width = "");
1138
1138
  });
1139
- let Se = D(() => P.value.split("-")[0]), Ae = D(() => {
1140
- if (oe.value) return;
1139
+ let we = T(() => M.value.split("-")[0]), Ne = T(() => {
1140
+ if (se.value) return;
1141
1141
  let e = {
1142
- [U.top]: U.bottom,
1143
- [U.right]: U.left,
1144
- [U.bottom]: U.top,
1145
- [U.left]: U.right
1146
- }[Se.value];
1142
+ [H.top]: H.bottom,
1143
+ [H.right]: H.left,
1144
+ [H.bottom]: H.top,
1145
+ [H.left]: H.right
1146
+ }[we.value];
1147
1147
  return {
1148
- left: M.value.arrow?.x === void 0 ? void 0 : `${M.value.arrow?.x}px`,
1149
- top: M.value.arrow?.y === void 0 ? void 0 : `${M.value.arrow?.y}px`,
1148
+ left: A.value.arrow?.x === void 0 ? void 0 : `${A.value.arrow?.x}px`,
1149
+ top: A.value.arrow?.y === void 0 ? void 0 : `${A.value.arrow?.y}px`,
1150
1150
  [e]: `${-(y.value?.offsetWidth ?? 0) / 2}px`
1151
1151
  };
1152
- }), Fe = Oe(l, "modelValue", u), Ie = E(!1), z = D({
1153
- get: () => Fe.value ?? Ie.value,
1152
+ }), Re = Ae(l, "modelValue", u), L = w(!1), R = T({
1153
+ get: () => Re.value ?? L.value,
1154
1154
  set: (e) => {
1155
- Fe.value === void 0 ? Ie.value = e : Fe.value = e;
1155
+ Re.value === void 0 ? L.value = e : Re.value = e;
1156
1156
  }
1157
1157
  });
1158
1158
  g([
1159
- z,
1159
+ R,
1160
1160
  x,
1161
1161
  v,
1162
- ae
1162
+ oe
1163
1163
  ], ([e, t, n, r], i, a) => {
1164
- e && t && n && a(xe(t, n, R, { animationFrame: r === Re.fixed }));
1164
+ e && t && n && a(Ce(t, n, I, { animationFrame: r === Be.fixed }));
1165
1165
  }, {
1166
1166
  flush: "post",
1167
1167
  immediate: !0
1168
- }), je(b, () => {
1169
- z.value && R();
1168
+ }), Pe(b, () => {
1169
+ R.value && I();
1170
1170
  }, {
1171
1171
  childList: !0,
1172
1172
  subtree: !0,
1173
1173
  characterData: !0
1174
- }), se(() => {
1175
- z.value && C();
1174
+ }), ce(() => {
1175
+ R.value && ie();
1176
1176
  });
1177
+ function z() {
1178
+ R.value = !0;
1179
+ }
1177
1180
  function B() {
1178
- z.value = !0;
1181
+ R.value = !1;
1179
1182
  }
1180
1183
  function V() {
1181
- z.value = !1;
1182
- }
1183
- function H() {
1184
- z.value = !z.value;
1184
+ R.value = !R.value;
1185
1185
  }
1186
- function Le(e) {
1186
+ function ze(e) {
1187
1187
  x.value = e;
1188
1188
  }
1189
- Me(v, () => {
1190
- !l.keepOpen && z.value && (z.value = !1);
1189
+ Fe(v, () => {
1190
+ !l.keepOpen && R.value && (R.value = !1);
1191
1191
  }, { ignore: [x] });
1192
- let ze = D(() => x.value?.getAttribute?.("id") ?? void 0), Be = D(() => ({
1192
+ let Ve = T(() => x.value?.getAttribute?.("id") ?? void 0), He = T(() => ({
1193
1193
  "aria-controls": p.value,
1194
1194
  "aria-haspopup": !0,
1195
- "aria-expanded": z.value
1196
- })), { component: Ve, bus: W } = Zt({
1195
+ "aria-expanded": R.value
1196
+ })), { component: Ue, bus: U } = Qt({
1197
1197
  reference: x,
1198
1198
  id: p,
1199
- expanded: z,
1200
- aria: Be
1199
+ expanded: R,
1200
+ aria: He
1201
1201
  });
1202
- W.on("click", H);
1203
- let { role: He, modifiers: We } = F(l), Ge = Ot("vv-dropdown", We, D(() => ({ arrow: l.arrow }))), { focused: Ke } = Ne(v);
1202
+ U.on("click", V);
1203
+ let { role: We, modifiers: Ke } = N(l), qe = kt("vv-dropdown", Ke, T(() => ({ arrow: l.arrow }))), { focused: W } = Ie(v);
1204
1204
  function G(e) {
1205
1205
  return e?.getRootNode()?.activeElement ?? null;
1206
1206
  }
1207
- let qe = "a[href], button, input:not([type=\"hidden\"]), textarea, select, details, [tabindex]:not([tabindex=\"-1\"])";
1208
- function K(e) {
1207
+ let K = "a[href], button, input:not([type=\"hidden\"]), textarea, select, details, [tabindex]:not([tabindex=\"-1\"])";
1208
+ function Je(e) {
1209
1209
  return !e.hasAttribute("disabled") && e.getAttribute("aria-hidden") !== "true";
1210
1210
  }
1211
- function Je(e) {
1212
- return e ? [...e.querySelectorAll(qe)].filter(K) : [];
1211
+ function Ye(e) {
1212
+ return e ? [...e.querySelectorAll(K)].filter(Je) : [];
1213
+ }
1214
+ let q = w(!1);
1215
+ function J() {
1216
+ q.value = !0, setTimeout(() => {
1217
+ q.value = !1;
1218
+ });
1213
1219
  }
1214
- let q = E(!1), J;
1215
- function Y() {
1220
+ let Y;
1221
+ function X() {
1216
1222
  let e = x.value?.$el ?? x.value;
1217
1223
  if (e instanceof HTMLElement) {
1218
- if (e.matches(qe) && K(e)) return e;
1219
- let t = e.querySelector(`[aria-controls="${CSS.escape(String(p.value))}"]`), n = t && K(t) ? t : Je(e).find((e) => !v.value?.contains(e));
1224
+ if (e.matches(K) && Je(e)) return e;
1225
+ let t = e.querySelector(`[aria-controls="${CSS.escape(String(p.value))}"]`), n = t && Je(t) ? t : Ye(e).find((e) => !v.value?.contains(e));
1220
1226
  if (n) return n;
1221
1227
  }
1222
- return J?.isConnected ? J : void 0;
1228
+ return Y?.isConnected ? Y : void 0;
1223
1229
  }
1224
- function X() {
1225
- let e = Y();
1226
- e && (q.value = !0, e.focus({ preventScroll: !0 }), setTimeout(() => {
1227
- q.value = !1;
1228
- }));
1230
+ function Z() {
1231
+ let e = X();
1232
+ e && (J(), e.focus({ preventScroll: !0 }));
1229
1233
  }
1230
- function Z(e) {
1234
+ function Xe(e) {
1231
1235
  return e.composedPath().find((e) => e instanceof Element && e.classList.contains("vv-dropdown")) ?? G(v.value)?.closest(".vv-dropdown") ?? void 0;
1232
1236
  }
1233
- function Ye() {
1237
+ function Ze() {
1234
1238
  o(() => {
1235
- let e = Je(v.value);
1239
+ let e = Ye(v.value);
1236
1240
  e.length > 0 && e[0].focus({ preventScroll: !0 });
1237
1241
  });
1238
1242
  }
1239
- function Xe() {
1243
+ function Q() {
1240
1244
  o(() => {
1241
- let e = Je(b.value);
1245
+ let e = Ye(b.value);
1242
1246
  e.length > 0 && e[0].focus({ preventScroll: !0 });
1243
1247
  });
1244
1248
  }
1245
- function Ze() {
1249
+ function Qe() {
1246
1250
  o(() => {
1247
- if (Ke.value) {
1248
- let e = Je(v.value), t = G(v.value);
1251
+ if (W.value) {
1252
+ let e = Ye(v.value), t = G(v.value);
1249
1253
  if (e.length === 0 || !t) return;
1250
1254
  let n = e.indexOf(t);
1251
1255
  n < e.length - 1 ? e[n + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
1252
1256
  }
1253
1257
  });
1254
1258
  }
1255
- function Q() {
1259
+ function $e() {
1256
1260
  o(() => {
1257
- if (Ke.value) {
1258
- let e = Je(v.value), t = G(v.value);
1261
+ if (W.value) {
1262
+ let e = Ye(v.value), t = G(v.value);
1259
1263
  if (e.length === 0 || !t) return;
1260
1264
  let n = e.indexOf(t);
1261
1265
  if (n > 0) {
@@ -1266,48 +1270,48 @@ var en = ["popover"], tn = [
1266
1270
  }
1267
1271
  });
1268
1272
  }
1269
- g(z, (e) => {
1273
+ g(R, (e) => {
1270
1274
  if (e) {
1271
1275
  let e = G(v.value) ?? document.activeElement;
1272
- J = e instanceof HTMLElement && !v.value?.contains(e) ? e : void 0;
1276
+ Y = e instanceof HTMLElement && !v.value?.contains(e) ? e : void 0;
1273
1277
  }
1274
- e && l.autofocusFirst && Ye();
1278
+ e && l.autofocusFirst && Ze();
1275
1279
  }), t({
1276
- toggle: H,
1277
- show: B,
1278
- hide: V,
1279
- init: Le,
1280
- focusFirst: Ye,
1281
- focusFirstListElement: Xe,
1282
- focusNext: Ze,
1283
- focusPrev: Q,
1284
- customPosition: oe,
1280
+ toggle: V,
1281
+ show: z,
1282
+ hide: B,
1283
+ init: ze,
1284
+ focusFirst: Ze,
1285
+ focusFirstListElement: Q,
1286
+ focusNext: Qe,
1287
+ focusPrev: $e,
1288
+ customPosition: se,
1285
1289
  restoringFocus: q
1286
1290
  });
1287
- let Qe = ke(v), { onAction: $e } = Bt(), { expanded: et, onAction: tt } = Vt();
1288
- tt && $t({ expanded: et });
1289
- function $() {
1290
- if (!z.value || l.keepOpen || He.value === Ue.listbox) return;
1291
+ let et = je(v), { onAction: tt } = Vt(), { expanded: nt, onAction: $ } = Ht();
1292
+ $ && en({ expanded: nt });
1293
+ function rt() {
1294
+ if (!R.value || l.keepOpen || We.value === Ge.listbox) return;
1291
1295
  let e = G(v.value), t = !!e && !!v.value?.contains(e);
1292
- V(), t && X(), $e?.();
1296
+ B(), t && Z(), tt?.();
1293
1297
  }
1294
- let { itemRole: nt } = Qt({
1295
- role: He,
1296
- expanded: z,
1297
- focused: Ke,
1298
- hovered: Qe,
1299
- onAction: $
1298
+ let { itemRole: it } = $t({
1299
+ role: We,
1300
+ expanded: R,
1301
+ focused: W,
1302
+ hovered: et,
1303
+ onAction: rt
1300
1304
  });
1301
- Pe("Escape", (e) => {
1302
- if (!z.value) return;
1303
- let t = Z(e);
1304
- t && t !== v.value && v.value?.contains(t) || (e.preventDefault(), V(), t === v.value && X());
1305
- }), Pe("ArrowDown", (e) => {
1306
- z.value && Z(e) === v.value && (e.preventDefault(), Ze());
1307
- }), Pe("ArrowUp", (e) => {
1308
- z.value && Z(e) === v.value && (e.preventDefault(), Q());
1305
+ Le("Escape", (e) => {
1306
+ if (!R.value) return;
1307
+ let t = Xe(e);
1308
+ t && t !== v.value && v.value?.contains(t) || (e.preventDefault(), B(), t === v.value && Z());
1309
+ }), Le("ArrowDown", (e) => {
1310
+ R.value && Xe(e) === v.value && (e.preventDefault(), Qe());
1311
+ }), Le("ArrowUp", (e) => {
1312
+ R.value && Xe(e) === v.value && (e.preventDefault(), $e());
1309
1313
  });
1310
- function rt(e, t) {
1314
+ function at(e, t) {
1311
1315
  if (e instanceof HTMLElement && e.isContentEditable) return !0;
1312
1316
  switch (e.tagName) {
1313
1317
  case "BUTTON":
@@ -1320,17 +1324,49 @@ var en = ["popover"], tn = [
1320
1324
  default: return !1;
1321
1325
  }
1322
1326
  }
1323
- Pe([" ", "Enter"], (e) => {
1324
- if (!z.value || Z(e) !== v.value) return;
1327
+ Le([" ", "Enter"], (e) => {
1328
+ if (!R.value || Xe(e) !== v.value) return;
1325
1329
  let t = G(v.value);
1326
- t instanceof HTMLElement && !rt(t, e.key) && t.click();
1330
+ t instanceof HTMLElement && !at(t, e.key) && t.click();
1331
+ });
1332
+ let ot = !1;
1333
+ Me("keydown", (e) => {
1334
+ e.key !== "Tab" || !R.value || (ot = !0, setTimeout(() => {
1335
+ ot = !1;
1336
+ }));
1337
+ }, {
1338
+ capture: !0,
1339
+ passive: !0
1340
+ });
1341
+ function st(e) {
1342
+ return [...e.querySelectorAll("slot")].flatMap((e) => {
1343
+ let t = e.assignedElements({ flatten: !0 });
1344
+ return [...t, ...t.flatMap(st)];
1345
+ });
1346
+ }
1347
+ function ct(e) {
1348
+ let t = v.value;
1349
+ if (!t) return !1;
1350
+ let n = new Set(st(t)), r = e;
1351
+ for (; r;) {
1352
+ if (r === t || n.has(r)) return !0;
1353
+ r = r instanceof ShadowRoot ? r.host : r.assignedSlot ?? r.parentNode;
1354
+ }
1355
+ return !1;
1356
+ }
1357
+ Me(v, "focusout", (e) => {
1358
+ let t = e.relatedTarget;
1359
+ !ot || !R.value || l.keepOpen || !(t instanceof Node) || ct(t) || (J(), B());
1360
+ }, {
1361
+ capture: !0,
1362
+ passive: !0
1327
1363
  });
1328
- let it = {
1364
+ let lt = {
1329
1365
  "before-enter": () => {
1330
1366
  u("beforeExpand"), u("beforeEnter");
1331
1367
  },
1332
1368
  "after-leave": () => {
1333
- z.value || ie(), u("afterCollapse"), u("afterLeave");
1369
+ R.value || ae(), u("afterCollapse"), u("afterLeave");
1334
1370
  },
1335
1371
  enter: () => {
1336
1372
  u("enter");
@@ -1351,115 +1387,115 @@ var en = ["popover"], tn = [
1351
1387
  u("leaveCancelled");
1352
1388
  }
1353
1389
  };
1354
- return (e, t) => (L(), I(w, null, [_(N(Ve), null, {
1355
- default: A(() => [c(e.$slots, "default", r(i({
1356
- init: Le,
1357
- show: B,
1358
- hide: V,
1359
- toggle: H,
1360
- expanded: N(z),
1361
- aria: N(Be)
1390
+ return (e, t) => (F(), P(C, null, [_(j(Ue), null, {
1391
+ default: O(() => [c(e.$slots, "default", r(i({
1392
+ init: ze,
1393
+ show: z,
1394
+ hide: B,
1395
+ toggle: V,
1396
+ expanded: j(R),
1397
+ aria: j(He)
1362
1398
  })))]),
1363
1399
  _: 3
1364
- }), _(me, h({ name: e.transitionName }, s(it), { persisted: "" }), {
1365
- default: A(() => [ue(T("div", {
1400
+ }), _(ge, h({ name: e.transitionName }, s(lt), { persisted: "" }), {
1401
+ default: O(() => [fe(le("div", {
1366
1402
  ref_key: "floatingEl",
1367
1403
  ref: v,
1368
- popover: N(S),
1369
- style: m(N(ve)),
1370
- class: a(N(Ge))
1404
+ popover: j(S),
1405
+ style: m(j(be)),
1406
+ class: a(j(qe))
1371
1407
  }, [
1372
- l.arrow ? (L(), I("div", {
1408
+ l.arrow ? (F(), P("div", {
1373
1409
  key: 0,
1374
1410
  ref_key: "arrowEl",
1375
1411
  ref: y,
1376
- style: m(N(Ae)),
1412
+ style: m(j(Ne)),
1377
1413
  class: "vv-dropdown__arrow"
1378
- }, null, 4)) : j("v-if", !0),
1414
+ }, null, 4)) : k("v-if", !0),
1379
1415
  c(e.$slots, "before", r(i({
1380
- show: B,
1381
- hide: V,
1382
- toggle: H,
1383
- expanded: N(z)
1416
+ show: z,
1417
+ hide: B,
1418
+ toggle: V,
1419
+ expanded: j(R)
1384
1420
  }))),
1385
- T("div", h(N(te), {
1386
- id: N(p),
1421
+ le("div", h(j(te), {
1422
+ id: j(p),
1387
1423
  ref_key: "listEl",
1388
1424
  ref: b,
1389
- tabindex: N(z) ? void 0 : -1,
1390
- role: N(He),
1391
- "aria-labelledby": N(ze),
1425
+ tabindex: j(R) ? void 0 : -1,
1426
+ role: j(We),
1427
+ "aria-labelledby": j(Ve),
1392
1428
  class: "vv-dropdown__list"
1393
1429
  }), [c(e.$slots, "items", r(i({
1394
- show: B,
1395
- hide: V,
1396
- toggle: H,
1397
- expanded: N(z),
1398
- role: N(nt)
1399
- })))], 16, tn),
1430
+ show: z,
1431
+ hide: B,
1432
+ toggle: V,
1433
+ expanded: j(R),
1434
+ role: j(it)
1435
+ })))], 16, nn),
1400
1436
  c(e.$slots, "after", r(i({
1401
- show: B,
1402
- hide: V,
1403
- toggle: H,
1404
- expanded: N(z)
1437
+ show: z,
1438
+ hide: B,
1439
+ toggle: V,
1440
+ expanded: j(R)
1405
1441
  })))
1406
- ], 14, en), [[le, N(z)]])]),
1442
+ ], 14, tn), [[de, j(R)]])]),
1407
1443
  _: 3
1408
1444
  }, 16, ["name"])], 64));
1409
1445
  }
1410
- }), rn = {
1446
+ }), an = {
1411
1447
  class: "vv-dropdown-optgroup",
1412
1448
  role: "presentation",
1413
1449
  tabindex: "-1"
1414
- }, an = /* @__PURE__ */ M({
1450
+ }, on = /* @__PURE__ */ A({
1415
1451
  name: "VvDropdownOptgroup",
1416
- props: { ...$e },
1452
+ props: { ...et },
1417
1453
  setup(e) {
1418
1454
  let t = e;
1419
- return (e, n) => (L(), I("li", rn, [c(e.$slots, "default", {}, () => [P(O(t.label), 1)])]));
1455
+ return (e, n) => (F(), P("li", an, [c(e.$slots, "default", {}, () => [M(E(t.label), 1)])]));
1420
1456
  }
1421
- }), on = /* @__PURE__ */ M({
1457
+ }), sn = /* @__PURE__ */ A({
1422
1458
  name: "VvDropdownItem",
1423
- props: Jt,
1459
+ props: Yt,
1424
1460
  setup(e) {
1425
- let t = e, { role: n, expanded: r, onAction: i } = Bt(), a = E(null);
1426
- $t({
1461
+ let t = e, { role: n, expanded: r, onAction: i } = Vt(), a = w(null);
1462
+ en({
1427
1463
  expanded: r,
1428
1464
  onAction: i
1429
1465
  });
1430
- let o = ke(a), { focused: s } = Ae(a), { focused: l } = Ne(a);
1466
+ let o = je(a), { focused: s } = Ne(a), { focused: l } = Ie(a);
1431
1467
  return g(o, (e) => {
1432
1468
  e && t.focusOnHover && (s.value = !0);
1433
- }), (e, t) => (L(), I("div", h({ role: N(n) }, {
1469
+ }), (e, t) => (F(), P("div", h({ role: j(n) }, {
1434
1470
  ref_key: "element",
1435
1471
  ref: a,
1436
- class: ["vv-dropdown__item", { "focus-visible": N(s) || N(l) }]
1472
+ class: ["vv-dropdown__item", { "focus-visible": j(s) || j(l) }]
1437
1473
  }), [c(e.$slots, "default")], 16));
1438
1474
  }
1439
- }), sn = ["title"], cn = /* @__PURE__ */ M({
1475
+ }), cn = ["title"], ln = /* @__PURE__ */ A({
1440
1476
  name: "VvDropdownOption",
1441
- props: Yt,
1477
+ props: Xt,
1442
1478
  setup(e) {
1443
- let t = e, { modifiers: n } = F(t), o = Ot("vv-dropdown-option", n, D(() => ({
1479
+ let t = e, { modifiers: n } = N(t), o = kt("vv-dropdown-option", n, T(() => ({
1444
1480
  disabled: t.disabled,
1445
1481
  selected: t.selected,
1446
1482
  unselectable: t.unselectable && t.selected
1447
- }))), s = D(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
1448
- return (e, t) => (L(), S(on, {
1449
- class: a(N(o)),
1483
+ }))), s = T(() => t.selected ? t.unselectable ? t.deselectHintLabel : t.selectedHintLabel : t.disabled ? "" : t.selectHintLabel);
1484
+ return (e, t) => (F(), S(sn, {
1485
+ class: a(j(o)),
1450
1486
  tabindex: e.disabled ? -1 : 0,
1451
1487
  "aria-selected": e.selected,
1452
1488
  "aria-disabled": e.disabled,
1453
1489
  "focus-on-hover": e.focusOnHover
1454
1490
  }, {
1455
- default: A(() => [c(e.$slots, "default"), T("span", {
1491
+ default: O(() => [c(e.$slots, "default"), le("span", {
1456
1492
  class: "vv-dropdown-option__hint",
1457
- title: N(s)
1493
+ title: j(s)
1458
1494
  }, [c(e.$slots, "hint", r(i({
1459
1495
  disabled: e.disabled,
1460
1496
  selected: e.selected,
1461
1497
  unselectable: e.unselectable
1462
- })), () => [P(O(N(s)), 1)])], 8, sn)]),
1498
+ })), () => [M(E(j(s)), 1)])], 8, cn)]),
1463
1499
  _: 3
1464
1500
  }, 8, [
1465
1501
  "class",
@@ -1469,25 +1505,25 @@ var en = ["popover"], tn = [
1469
1505
  "focus-on-hover"
1470
1506
  ]));
1471
1507
  }
1472
- }), ln = {
1473
- ...ft,
1508
+ }), un = {
1474
1509
  ...pt,
1475
1510
  ...mt,
1476
- ...st,
1511
+ ...ht,
1512
+ ...ct,
1477
1513
  ...q,
1478
1514
  ...J,
1479
- ...nt,
1515
+ ...rt,
1480
1516
  ...Y,
1481
1517
  ...X,
1482
- ...tt,
1518
+ ...nt,
1483
1519
  ...$,
1484
- ...rt,
1485
- ...ot,
1486
- ...ct,
1520
+ ...it,
1521
+ ...st,
1487
1522
  ...lt,
1488
- ...$e,
1523
+ ...ut,
1489
1524
  ...et,
1490
- ...Q,
1525
+ ...tt,
1526
+ ...Qe,
1491
1527
  multiple: Boolean,
1492
1528
  required: Boolean,
1493
1529
  size: [String, Number],
@@ -1507,17 +1543,17 @@ var en = ["popover"], tn = [
1507
1543
  },
1508
1544
  placeholder: String
1509
1545
  };
1510
- function un() {
1546
+ function dn() {
1511
1547
  return {
1512
- ...ln,
1548
+ ...un,
1513
1549
  options: {
1514
- ...ln.options,
1550
+ ...un.options,
1515
1551
  type: Array,
1516
1552
  default: () => []
1517
1553
  }
1518
1554
  };
1519
1555
  }
1520
- function dn(e, t, n) {
1556
+ function fn(e, t, n) {
1521
1557
  let r = t;
1522
1558
  if (Array.isArray(e) && e.length) {
1523
1559
  let i = e[0];
@@ -1529,44 +1565,44 @@ function dn(e, t, n) {
1529
1565
  }
1530
1566
  return r;
1531
1567
  }
1532
- function fn(e, t, n) {
1533
- let r = Dt(), i = D(() => {
1568
+ function pn(e, t, n) {
1569
+ let r = Ot(), i = T(() => {
1534
1570
  if (r?.defaults.value?.[e]) return r.defaults.value[e];
1535
1571
  });
1536
- return D(() => {
1572
+ return T(() => {
1537
1573
  if (i.value === void 0) return n;
1538
1574
  let e = i.value, r = t, a = n;
1539
1575
  return Object.keys(r).reduce((t, n) => {
1540
1576
  let i = a[n];
1541
- return t[n] = n in e ? dn(r[n], i, e[n]) : i, t;
1577
+ return t[n] = n in e ? fn(r[n], i, e[n]) : i, t;
1542
1578
  }, {});
1543
1579
  });
1544
1580
  }
1545
- function pn(e, t) {
1546
- let { focused: n } = Ae(e);
1581
+ function mn(e, t) {
1582
+ let { focused: n } = Ne(e);
1547
1583
  return g(n, (n) => {
1548
- t(n ? "focus" : "blur", N(e));
1584
+ t(n ? "focus" : "blur", j(e));
1549
1585
  }), { focused: n };
1550
1586
  }
1551
- function mn(e) {
1552
- let { options: t, labelKey: n, valueKey: r, disabledKey: i } = F(e);
1587
+ function hn(e) {
1588
+ let { options: t, labelKey: n, valueKey: r, disabledKey: i } = N(e);
1553
1589
  return {
1554
1590
  options: t,
1555
- getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? B(e, n.value) : e),
1556
- getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? B(e, r.value) : e,
1557
- isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!B(e, i.value) : !1,
1591
+ getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? z(e, n.value) : e),
1592
+ getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? z(e, r.value) : e,
1593
+ isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!z(e, i.value) : !1,
1558
1594
  getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
1559
1595
  };
1560
1596
  }
1561
- var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1597
+ var gn = ["for"], _n = { class: "vv-select__wrapper" }, vn = {
1562
1598
  key: 0,
1563
1599
  class: "vv-select__input-before"
1564
- }, vn = { class: "vv-select__inner" }, yn = ["id"], bn = ["disabled", "hidden"], xn = ["disabled", "value"], Sn = ["disabled", "label"], Cn = ["disabled", "value"], wn = {
1600
+ }, yn = { class: "vv-select__inner" }, bn = ["id"], xn = ["disabled", "hidden"], Sn = ["disabled", "value"], Cn = ["disabled", "label"], wn = ["disabled", "value"], Tn = {
1565
1601
  key: 2,
1566
1602
  class: "vv-select__input-after"
1567
- }, Tn = /* @__PURE__ */ M({
1603
+ }, En = /* @__PURE__ */ A({
1568
1604
  name: "VvSelect",
1569
- props: un(),
1605
+ props: dn(),
1570
1606
  emits: [
1571
1607
  "update:modelValue",
1572
1608
  "focus",
@@ -1574,144 +1610,144 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1574
1610
  "clear"
1575
1611
  ],
1576
1612
  setup(e, { emit: t }) {
1577
- let n = e, o = t, s = re(), l = fn("VvSelect", un(), n), u = E(), { HintSlot: d, hasHintLabelOrSlot: ee, hasInvalidLabelOrSlot: f, hintSlotScope: p } = Et(l, s), { focused: m } = pn(u, o);
1613
+ let n = e, o = t, s = re(), l = pn("VvSelect", dn(), n), u = w(), { HintSlot: d, hasHintLabelOrSlot: ee, hasInvalidLabelOrSlot: f, hintSlotScope: p } = Dt(l, s), { focused: m } = mn(u, o);
1578
1614
  function te(e) {
1579
1615
  return typeof e != "string" && e.options?.length;
1580
1616
  }
1581
- let { id: ne, modifiers: v, disabled: y, readonly: x, loading: ie, icon: ae, iconPosition: oe, invalid: se, valid: ce, floating: le, multiple: de } = F(n), k = Ut(ne), fe = D(() => `${k.value}-hint`), me = D(() => n.disabled || n.readonly), he = D(() => me.value ? -1 : n.tabindex), M = D({
1617
+ let { id: ne, modifiers: v, disabled: y, readonly: x, loading: ae, icon: oe, iconPosition: se, invalid: ce, valid: ue, floating: de, multiple: pe } = N(n), D = Wt(ne), me = T(() => `${D.value}-hint`), ge = T(() => n.disabled || n.readonly), _e = T(() => ge.value ? -1 : n.tabindex), A = T({
1582
1618
  get: () => n.modelValue,
1583
1619
  set: (e) => {
1584
1620
  Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !n.unselectable && u.value) ? u.value.value = String(n.modelValue) : o("update:modelValue", e);
1585
1621
  }
1586
- }), P = D(() => Array.isArray(M.value) ? M.value.length > 0 : M.value !== void 0 && M.value !== null), _e = D(() => !me.value && n.unselectable), R = Ie(u);
1587
- g(R, (e) => {
1622
+ }), M = T(() => Array.isArray(A.value) ? A.value.length > 0 : A.value !== void 0 && A.value !== null), ye = T(() => !ge.value && n.unselectable), I = L(u);
1623
+ g(I, (e) => {
1588
1624
  e && n.autofocus && (m.value = !0);
1589
1625
  });
1590
- let { hasIconBefore: ve, hasIconAfter: ye } = At(ae, oe), be = D(() => {
1626
+ let { hasIconBefore: be, hasIconAfter: xe } = jt(oe, se), Se = T(() => {
1591
1627
  if (n.invalid === !0) return !0;
1592
1628
  if (n.valid === !0) return !1;
1593
- }), xe = Ot("vv-select", v, D(() => ({
1594
- valid: ce.value,
1595
- invalid: se.value,
1596
- loading: ie.value,
1629
+ }), Ce = kt("vv-select", v, T(() => ({
1630
+ valid: ue.value,
1631
+ invalid: ce.value,
1632
+ loading: ae.value,
1597
1633
  disabled: y.value,
1598
1634
  readonly: x.value,
1599
- "icon-before": ve.value !== void 0,
1600
- "icon-after": ye.value !== void 0,
1601
- dirty: P.value,
1602
- focus: m.value && !me.value,
1603
- floating: le.value,
1604
- multiple: de.value
1605
- }))), { getOptionLabel: Se, getOptionValue: Ce, isOptionDisabled: we, getOptionGrouped: Te } = mn(n);
1635
+ "icon-before": be.value !== void 0,
1636
+ "icon-after": xe.value !== void 0,
1637
+ dirty: M.value,
1638
+ focus: m.value && !ge.value,
1639
+ floating: de.value,
1640
+ multiple: pe.value
1641
+ }))), { getOptionLabel: we, getOptionValue: Te, isOptionDisabled: Ee, getOptionGrouped: De } = hn(n);
1606
1642
  g(() => n.options, (e) => {
1607
- if (e?.length && n.autoselectFirst && !P.value) {
1608
- let t = Ce(e[0]);
1609
- M.value = n.multiple ? [t] : t;
1643
+ if (e?.length && n.autoselectFirst && !M.value) {
1644
+ let t = Te(e[0]);
1645
+ A.value = n.multiple ? [t] : t;
1610
1646
  }
1611
1647
  }, { immediate: !0 });
1612
- function Ee() {
1613
- Array.isArray(M.value) ? M.value = [] : M.value = void 0, o("clear");
1648
+ function Oe() {
1649
+ Array.isArray(A.value) ? A.value = [] : A.value = void 0, o("clear");
1614
1650
  }
1615
- let De = D(() => ({
1651
+ let ke = T(() => ({
1616
1652
  name: n.name,
1617
- tabindex: he.value,
1618
- disabled: me.value,
1653
+ tabindex: _e.value,
1654
+ disabled: ge.value,
1619
1655
  required: n.required,
1620
1656
  size: n.size,
1621
1657
  autocomplete: n.autocomplete,
1622
1658
  multiple: n.multiple,
1623
1659
  "aria-label": n.ariaLabel || void 0,
1624
1660
  "aria-labelledby": n.ariaLabelledby || void 0,
1625
- "aria-invalid": be.value,
1626
- "aria-describedby": [n.ariaDescribedby, ee.value ? fe.value : void 0].filter(Boolean).join(" ") || void 0,
1627
- "aria-errormessage": f.value ? fe.value : void 0
1628
- })), Oe = D(() => ({
1661
+ "aria-invalid": Se.value,
1662
+ "aria-describedby": [n.ariaDescribedby, ee.value ? me.value : void 0].filter(Boolean).join(" ") || void 0,
1663
+ "aria-errormessage": f.value ? me.value : void 0
1664
+ })), Ae = T(() => ({
1629
1665
  valid: n.valid,
1630
1666
  invalid: n.invalid,
1631
1667
  modelValue: n.modelValue
1632
1668
  }));
1633
- return (e, t) => (L(), I("div", { class: a(N(xe)) }, [
1634
- e.label ? (L(), I("label", {
1669
+ return (e, t) => (F(), P("div", { class: a(j(Ce)) }, [
1670
+ e.label ? (F(), P("label", {
1635
1671
  key: 0,
1636
- for: N(k)
1637
- }, O(e.label), 9, hn)) : j("v-if", !0),
1638
- T("div", gn, [
1639
- e.$slots.before ? (L(), I("div", _n, [c(e.$slots, "before", r(i(N(Oe))))])) : j("v-if", !0),
1640
- T("div", vn, [
1641
- N(ve) ? (L(), S(kt, h({ key: 0 }, N(ve), { class: "vv-select__icon" }), null, 16)) : j("v-if", !0),
1642
- ue(T("select", h({
1643
- id: N(k),
1672
+ for: j(D)
1673
+ }, E(e.label), 9, gn)) : k("v-if", !0),
1674
+ le("div", _n, [
1675
+ e.$slots.before ? (F(), P("div", vn, [c(e.$slots, "before", r(i(j(Ae))))])) : k("v-if", !0),
1676
+ le("div", yn, [
1677
+ j(be) ? (F(), S(At, h({ key: 0 }, j(be), { class: "vv-select__icon" }), null, 16)) : k("v-if", !0),
1678
+ fe(le("select", h({
1679
+ id: j(D),
1644
1680
  ref_key: "selectEl",
1645
1681
  ref: u
1646
- }, N(De), { "onUpdate:modelValue": t[0] ||= (e) => ge(M) ? M.value = e : null }), [e.placeholder ? (L(), I("option", {
1682
+ }, j(ke), { "onUpdate:modelValue": t[0] ||= (e) => ve(A) ? A.value = e : null }), [e.placeholder ? (F(), P("option", {
1647
1683
  key: 0,
1648
1684
  value: void 0,
1649
- disabled: !N(_e),
1650
- hidden: !N(_e)
1651
- }, O(e.placeholder), 9, bn)) : j("v-if", !0), (L(!0), I(w, null, b(e.options, (e, t) => (L(), I(w, null, [te(e) ? (L(), I("optgroup", {
1685
+ disabled: !j(ye),
1686
+ hidden: !j(ye)
1687
+ }, E(e.placeholder), 9, xn)) : k("v-if", !0), (F(!0), P(C, null, b(e.options, (e, t) => (F(), P(C, null, [te(e) ? (F(), P("optgroup", {
1652
1688
  key: `group-${t}`,
1653
- disabled: N(we)(e),
1654
- label: N(Se)(e)
1655
- }, [(L(!0), I(w, null, b(N(Te)(e), (e, n) => (L(), I("option", {
1689
+ disabled: j(Ee)(e),
1690
+ label: j(we)(e)
1691
+ }, [(F(!0), P(C, null, b(j(De)(e), (e, n) => (F(), P("option", {
1656
1692
  key: `group-${t}-item-${n}`,
1657
- disabled: N(we)(e),
1658
- value: N(Ce)(e)
1659
- }, O(N(Se)(e)), 9, Cn))), 128))], 8, Sn)) : (L(), I("option", {
1693
+ disabled: j(Ee)(e),
1694
+ value: j(Te)(e)
1695
+ }, E(j(we)(e)), 9, wn))), 128))], 8, Cn)) : (F(), P("option", {
1660
1696
  key: t,
1661
- disabled: N(we)(e),
1662
- value: N(Ce)(e)
1663
- }, O(N(Se)(e)), 9, xn))], 64))), 256))], 16, yn), [[pe, N(M)]]),
1664
- N(ye) ? (L(), S(kt, h({ key: 1 }, N(ye), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : j("v-if", !0)
1697
+ disabled: j(Ee)(e),
1698
+ value: j(Te)(e)
1699
+ }, E(j(we)(e)), 9, Sn))], 64))), 256))], 16, bn), [[he, j(A)]]),
1700
+ j(xe) ? (F(), S(At, h({ key: 1 }, j(xe), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : k("v-if", !0)
1665
1701
  ]),
1666
- N(_e) && N(l).showClearAction ? (L(), S(N(jt), {
1702
+ j(ye) && j(l).showClearAction ? (F(), S(j(Mt), {
1667
1703
  key: 1,
1668
1704
  "input-type": "select",
1669
1705
  label: e.labelClear,
1670
1706
  icon: e.iconClear,
1671
- disabled: !N(P),
1672
- onClear: Ee
1707
+ disabled: !j(M),
1708
+ onClear: Oe
1673
1709
  }, null, 8, [
1674
1710
  "label",
1675
1711
  "icon",
1676
1712
  "disabled"
1677
- ])) : j("v-if", !0),
1678
- e.$slots.after ? (L(), I("div", wn, [c(e.$slots, "after", r(i(N(Oe))))])) : j("v-if", !0)
1713
+ ])) : k("v-if", !0),
1714
+ e.$slots.after ? (F(), P("div", Tn, [c(e.$slots, "after", r(i(j(Ae))))])) : k("v-if", !0)
1679
1715
  ]),
1680
- _(N(d), {
1681
- id: N(fe),
1716
+ _(j(d), {
1717
+ id: j(me),
1682
1718
  class: "vv-select__hint"
1683
- }, C({ _: 2 }, [
1719
+ }, ie({ _: 2 }, [
1684
1720
  e.$slots.hint ? {
1685
1721
  name: "hint",
1686
- fn: A(() => [c(e.$slots, "hint", r(i(N(p))))]),
1722
+ fn: O(() => [c(e.$slots, "hint", r(i(j(p))))]),
1687
1723
  key: "0"
1688
1724
  } : void 0,
1689
1725
  e.$slots.loading ? {
1690
1726
  name: "loading",
1691
- fn: A(() => [c(e.$slots, "loading", r(i(N(p))))]),
1727
+ fn: O(() => [c(e.$slots, "loading", r(i(j(p))))]),
1692
1728
  key: "1"
1693
1729
  } : void 0,
1694
1730
  e.$slots.valid ? {
1695
1731
  name: "valid",
1696
- fn: A(() => [c(e.$slots, "valid", r(i(N(p))))]),
1732
+ fn: O(() => [c(e.$slots, "valid", r(i(j(p))))]),
1697
1733
  key: "2"
1698
1734
  } : void 0,
1699
1735
  e.$slots.invalid ? {
1700
1736
  name: "invalid",
1701
- fn: A(() => [c(e.$slots, "invalid", r(i(N(p))))]),
1737
+ fn: O(() => [c(e.$slots, "invalid", r(i(j(p))))]),
1702
1738
  key: "3"
1703
1739
  } : void 0
1704
1740
  ]), 1032, ["id"])
1705
1741
  ], 2));
1706
1742
  }
1707
- }), En = ["id"], Dn = ["id", "for"], On = [
1743
+ }), Dn = ["id"], On = ["id", "for"], kn = [
1708
1744
  "id",
1709
1745
  "aria-controls",
1710
1746
  "placeholder"
1711
- ], kn = {
1747
+ ], An = {
1712
1748
  key: 0,
1713
1749
  class: "vv-select__input-before"
1714
- }, An = { class: "vv-select__inner" }, jn = [
1750
+ }, jn = { class: "vv-select__inner" }, Mn = [
1715
1751
  "aria-controls",
1716
1752
  "aria-expanded",
1717
1753
  "aria-label",
@@ -1719,21 +1755,21 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1719
1755
  "aria-describedby",
1720
1756
  "aria-errormessage",
1721
1757
  "tabindex"
1722
- ], Mn = {
1758
+ ], Nn = {
1723
1759
  key: 0,
1724
1760
  class: "vv-select__value"
1725
- }, Nn = ["aria-label", "onClick"], Pn = {
1761
+ }, Pn = ["aria-label", "onClick"], Fn = {
1726
1762
  key: 2,
1727
1763
  class: "vv-select__input-after"
1728
- }, Fn = /* @__PURE__ */ M({
1764
+ }, In = /* @__PURE__ */ A({
1729
1765
  name: "VvCombobox",
1730
1766
  components: {
1731
- VvDropdown: nn,
1732
- VvDropdownOption: cn,
1733
- VvDropdownOptgroup: an,
1734
- VvButton: Kt
1767
+ VvDropdown: rn,
1768
+ VvDropdownOption: ln,
1769
+ VvDropdownOptgroup: on,
1770
+ VvButton: qt
1735
1771
  },
1736
- props: /* @__PURE__ */ p(_t(), {
1772
+ props: /* @__PURE__ */ p(vt(), {
1737
1773
  search: {
1738
1774
  type: String,
1739
1775
  default: "",
@@ -1751,96 +1787,96 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1751
1787
  "change:search"
1752
1788
  ], ["update:search"]),
1753
1789
  setup(e, { emit: t }) {
1754
- let n = e, o = t, s = re(), d = fn("VvCombobox", _t(), n), ee = E(null), f = E(null), p = E(null), m = E(), { HintSlot: te, hasHintLabelOrSlot: ne, hasInvalidLabelOrSlot: v, hintSlotScope: y } = Et(d, s), { focused: x } = pn(ee, o), { focused: ie } = Ne(p), se;
1755
- function ce() {
1756
- clearTimeout(se), se = setTimeout(() => {
1757
- !x.value && !ie.value && k.value && me();
1790
+ let n = e, o = t, s = re(), d = pn("VvCombobox", vt(), n), ee = w(null), f = w(null), p = w(null), m = w(), { HintSlot: te, hasHintLabelOrSlot: ne, hasInvalidLabelOrSlot: v, hintSlotScope: y } = Dt(d, s), { focused: x } = mn(ee, o), { focused: ae } = Ie(p), ce;
1791
+ function ue() {
1792
+ clearTimeout(ce), ce = setTimeout(() => {
1793
+ !x.value && !ae.value && D.value && ge();
1758
1794
  }, 50);
1759
1795
  }
1760
- l(() => clearTimeout(se)), g(x, (e) => {
1796
+ l(() => clearTimeout(ce)), g(x, (e) => {
1761
1797
  if (n.autoOpen) {
1762
- if (e && !k.value) {
1798
+ if (e && !D.value) {
1763
1799
  if (m.value?.restoringFocus) return;
1764
- clearTimeout(se), pe();
1800
+ clearTimeout(ce), he();
1765
1801
  return;
1766
1802
  }
1767
- !e && k.value && !ie.value && ce();
1803
+ !e && D.value && !ae.value && ue();
1768
1804
  }
1769
- }), g(ie, (e) => {
1770
- e ? clearTimeout(se) : !x.value && k.value && ce();
1805
+ }), g(ae, (e) => {
1806
+ e ? clearTimeout(ce) : !x.value && D.value && ue();
1771
1807
  });
1772
- let le = u(e, "search"), de = z(le, D(() => Number(n.debounceSearch)));
1773
- g(de, () => {
1774
- o("update:search", de.value), o("change:search", de.value);
1808
+ let de = u(e, "search"), pe = R(de, T(() => Number(n.debounceSearch)));
1809
+ g(pe, () => {
1810
+ o("update:search", pe.value), o("change:search", pe.value);
1775
1811
  });
1776
- let k = E(!1);
1777
- function fe() {
1778
- B.value || (k.value = !k.value);
1812
+ let D = w(!1);
1813
+ function me() {
1814
+ L.value || (D.value = !D.value);
1779
1815
  }
1780
- function pe() {
1781
- B.value || k.value || (k.value = !0);
1816
+ function he() {
1817
+ L.value || D.value || (D.value = !0);
1782
1818
  }
1783
- function me() {
1784
- B.value || !k.value || (k.value = !1);
1819
+ function ge() {
1820
+ L.value || !D.value || (D.value = !1);
1785
1821
  }
1786
- function M() {
1822
+ function A() {
1787
1823
  if (d.value.searchable && f.value) {
1788
1824
  let e = f.value.closest(".vv-dropdown"), t = f.value.getRootNode();
1789
1825
  e?.contains(t.activeElement) || f.value.focus({ preventScroll: !0 });
1790
1826
  }
1791
1827
  }
1792
- function _e() {
1793
- d.value.keepSearch || (le.value = "");
1828
+ function ye() {
1829
+ d.value.keepSearch || (de.value = "");
1794
1830
  }
1795
- function R(e) {
1831
+ function I(e) {
1796
1832
  return typeof e != "string" && e.options?.length;
1797
1833
  }
1798
- let { id: ve, icon: ye, iconPosition: be, modifiers: xe, disabled: Se, required: Ce, readonly: we, loading: Te, valid: Ee, invalid: De, floating: Oe } = F(n), ke = Ut(ve), Ae = D(() => `${ke.value}-hint`), je = D(() => `${ke.value}-dropdown`), Me = D(() => `${ke.value}-search`), Pe = D(() => `${ke.value}-label`), Ie = D(() => [n.ariaDescribedby, ne.value ? Ae.value : void 0].filter(Boolean).join(" ") || void 0), B = D(() => n.disabled || n.readonly), V = D(() => B.value ? -1 : n.tabindex), H = D({
1834
+ let { id: be, icon: xe, iconPosition: Se, modifiers: Ce, disabled: we, required: Te, readonly: Ee, loading: De, valid: Oe, invalid: ke, floating: Ae } = N(n), je = Wt(be), Me = T(() => `${je.value}-hint`), Ne = T(() => `${je.value}-dropdown`), Pe = T(() => `${je.value}-search`), Fe = T(() => `${je.value}-label`), Le = T(() => [n.ariaDescribedby, ne.value ? Me.value : void 0].filter(Boolean).join(" ") || void 0), L = T(() => n.disabled || n.readonly), z = T(() => L.value ? -1 : n.tabindex), B = T({
1799
1835
  get: () => Array.isArray(n.modelValue) ? n.modelValue : n.modelValue !== void 0 && n.modelValue !== null ? [n.modelValue] : [],
1800
1836
  set: (e) => {
1801
1837
  o("update:modelValue", n.multiple || Array.isArray(n.modelValue) ? e : e.pop());
1802
1838
  }
1803
- }), Le = D(() => H.value.length), Re = D(() => Le.value > 0), U = D(() => n.multiple ? n.maxValues === void 0 ? 1 / 0 : Number(n.maxValues) : 1), ze = D(() => B.value || !n.unselectable ? !1 : Number(n.minValues) === 0 || Le.value > Number(n.minValues)), Be = D(() => B.value ? !1 : !n.multiple || Le.value < U.value), Ve = E(!1), W = D(() => Ve.value || Te.value), { hasIconBefore: He, hasIconAfter: We } = At(ye, be), Ge = Ot("vv-select", xe, D(() => ({
1804
- disabled: Se.value,
1805
- required: Ce.value,
1806
- loading: W.value,
1807
- readonly: we.value,
1808
- "icon-before": He.value !== void 0,
1839
+ }), V = T(() => B.value.length), ze = T(() => V.value > 0), Be = T(() => n.multiple ? n.maxValues === void 0 ? 1 / 0 : Number(n.maxValues) : 1), H = T(() => L.value || !n.unselectable ? !1 : Number(n.minValues) === 0 || V.value > Number(n.minValues)), Ve = T(() => L.value ? !1 : !n.multiple || V.value < Be.value), He = w(!1), Ue = T(() => He.value || De.value), { hasIconBefore: U, hasIconAfter: We } = jt(xe, Se), Ke = kt("vv-select", Ce, T(() => ({
1840
+ disabled: we.value,
1841
+ required: Te.value,
1842
+ loading: Ue.value,
1843
+ readonly: Ee.value,
1844
+ "icon-before": U.value !== void 0,
1809
1845
  "icon-after": We.value !== void 0,
1810
- valid: Ee.value,
1811
- invalid: De.value,
1812
- dirty: Re.value,
1813
- focus: (x.value || ie.value || k.value) && !B.value,
1814
- floating: Oe.value,
1846
+ valid: Oe.value,
1847
+ invalid: ke.value,
1848
+ dirty: ze.value,
1849
+ focus: (x.value || ae.value || D.value) && !L.value,
1850
+ floating: Ae.value,
1815
1851
  badges: n.badges
1816
- }))), Ke = E(/* @__PURE__ */ new Set()), { getOptionLabel: G, getOptionValue: qe, getOptionGrouped: K, isOptionDisabled: Je } = mn(n), q = D(() => {
1817
- let e = [...Ke.value];
1818
- for (let t of n.options) R(t) ? e.push(...K(t)) : e.push(t);
1852
+ }))), qe = w(/* @__PURE__ */ new Set()), { getOptionLabel: W, getOptionValue: G, getOptionGrouped: K, isOptionDisabled: Je } = hn(n), Ye = T(() => {
1853
+ let e = [...qe.value];
1854
+ for (let t of n.options) I(t) ? e.push(...K(t)) : e.push(t);
1819
1855
  return e;
1820
- }), J = D(() => {
1821
- let e = [...n.options, ...Ke.value];
1822
- for (let t of H.value) q.value.some((e) => {
1823
- let n = qe(e);
1856
+ }), q = T(() => {
1857
+ let e = [...n.options, ...qe.value];
1858
+ for (let t of B.value) Ye.value.some((e) => {
1859
+ let n = G(e);
1824
1860
  return typeof n == "object" && typeof t == "object" ? JSON.stringify(n) === JSON.stringify(t) : n === t;
1825
1861
  }) || e.push(t);
1826
1862
  return e;
1827
1863
  });
1828
- g(Ke, (e) => {
1829
- e.size > 0 && o("update:options", J.value);
1864
+ g(qe, (e) => {
1865
+ e.size > 0 && o("update:options", q.value);
1830
1866
  });
1831
- function Y(e) {
1832
- return Je(e) || !Be.value && !Z(e);
1867
+ function J(e) {
1868
+ return Je(e) || !Ve.value && !X(e);
1833
1869
  }
1834
- let X = Fe(async () => {
1870
+ let Y = Re(async () => {
1835
1871
  if (d.value.searchFunction) {
1836
- Ve.value = !0;
1837
- let e = await Promise.resolve(d.value.searchFunction(de.value, J.value));
1838
- return Ve.value = !1, e;
1872
+ He.value = !0;
1873
+ let e = await Promise.resolve(d.value.searchFunction(pe.value, q.value));
1874
+ return He.value = !1, e;
1839
1875
  }
1840
- let e = de.value.toLowerCase().trim();
1841
- return e ? J.value?.reduce((t, n) => {
1842
- if (R(n)) {
1843
- let r = G(n).toLowerCase(), i = K(n).filter((t) => G(t).toLowerCase().includes(e));
1876
+ let e = pe.value.toLowerCase().trim();
1877
+ return e ? q.value?.reduce((t, n) => {
1878
+ if (I(n)) {
1879
+ let r = W(n).toLowerCase(), i = K(n).filter((t) => W(t).toLowerCase().includes(e));
1844
1880
  if (r.includes(e)) t.push(n);
1845
1881
  else if (i.length > 0) {
1846
1882
  let e = typeof n == "object" ? {
@@ -1851,51 +1887,51 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1851
1887
  }
1852
1888
  return t;
1853
1889
  }
1854
- return G(n).toLowerCase().includes(e) && t.push(n), t;
1855
- }, []) : J.value;
1890
+ return W(n).toLowerCase().includes(e) && t.push(n), t;
1891
+ }, []) : q.value;
1856
1892
  });
1857
- function Z(e) {
1858
- let t = qe(e);
1859
- return typeof t == "object" ? H.value.some((e) => typeof e == "object" && JSON.stringify(e) === JSON.stringify(t)) : H.value.includes(t);
1893
+ function X(e) {
1894
+ let t = G(e);
1895
+ return typeof t == "object" ? B.value.some((e) => typeof e == "object" && JSON.stringify(e) === JSON.stringify(t)) : B.value.includes(t);
1860
1896
  }
1861
- let Ye = D(() => J.value.reduce((e, t) => R(t) ? [...e, ...K(t)] : [...e, t], []).filter((e) => Z(e))), Xe = D(() => Ye.value.map((e) => G(e)).join(n.separator));
1897
+ let Z = T(() => q.value.reduce((e, t) => I(t) ? [...e, ...K(t)] : [...e, t], []).filter((e) => X(e))), Xe = T(() => Z.value.map((e) => W(e)).join(n.separator));
1862
1898
  function Ze() {
1863
- n.autoOpen ? pe() : fe();
1899
+ n.autoOpen ? he() : me();
1864
1900
  }
1865
1901
  function Q(e) {
1866
- let t = Z(e), r = qe(e);
1867
- t && ze.value ? H.value = H.value.filter((e) => typeof r == "object" && typeof e == "object" ? JSON.stringify(e) !== JSON.stringify(r) : e !== r) : !t && Be.value && (n.multiple ? H.value = [...H.value, r] : H.value = [r]), !n.multiple && !n.keepOpen && me();
1902
+ let t = X(e), r = G(e);
1903
+ t && H.value ? B.value = B.value.filter((e) => typeof r == "object" && typeof e == "object" ? JSON.stringify(e) !== JSON.stringify(r) : e !== r) : !t && Ve.value && (n.multiple ? B.value = [...B.value, r] : B.value = [r]), !n.multiple && !n.keepOpen && ge();
1868
1904
  }
1869
1905
  function Qe() {
1870
- H.value = [], o("update:search", ""), o("clear");
1906
+ B.value = [], o("update:search", ""), o("clear");
1871
1907
  }
1872
- g(J, (e) => {
1873
- if (e?.length && n.autoselectFirst && !Re.value) {
1874
- let t = e.find((e) => !R(e));
1908
+ g(q, (e) => {
1909
+ if (e?.length && n.autoselectFirst && !ze.value) {
1910
+ let t = e.find((e) => !I(e));
1875
1911
  if (t) {
1876
1912
  Q(t);
1877
1913
  return;
1878
1914
  }
1879
- let n = e.find((e) => R(e));
1915
+ let n = e.find((e) => I(e));
1880
1916
  if (n) {
1881
1917
  let e = K(n);
1882
1918
  e.length && Q(e[0]);
1883
1919
  }
1884
1920
  }
1885
1921
  }, { immediate: !0 });
1886
- let $e = D(() => ({
1887
- id: ke.value,
1922
+ let $e = T(() => ({
1923
+ id: je.value,
1888
1924
  name: n.name,
1889
- tabindex: V.value,
1890
- valid: Ee.value,
1925
+ tabindex: z.value,
1926
+ valid: Oe.value,
1891
1927
  validLabel: d.value.validLabel,
1892
- invalid: De.value,
1928
+ invalid: ke.value,
1893
1929
  invalidLabel: d.value.invalidLabel,
1894
1930
  hintLabel: d.value.hintLabel,
1895
- loading: W.value,
1931
+ loading: Ue.value,
1896
1932
  loadingLabel: d.value.loadingLabel,
1897
- disabled: Se.value,
1898
- readonly: we.value,
1933
+ disabled: we.value,
1934
+ readonly: Ee.value,
1899
1935
  modifiers: d.value.modifiers,
1900
1936
  options: d.value.options,
1901
1937
  labelKey: d.value.labelKey,
@@ -1903,7 +1939,7 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1903
1939
  icon: d.value.icon,
1904
1940
  iconPosition: d.value.iconPosition,
1905
1941
  floating: d.value.floating,
1906
- unselectable: ze.value,
1942
+ unselectable: H.value,
1907
1943
  autoselectFirst: d.value.autoselectFirst,
1908
1944
  multiple: d.value.multiple,
1909
1945
  label: d.value.label,
@@ -1912,8 +1948,8 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1912
1948
  ariaDescribedby: n.ariaDescribedby,
1913
1949
  placeholder: d.value.placeholder,
1914
1950
  modelValue: n.modelValue
1915
- })), et = D(() => ({
1916
- id: je.value,
1951
+ })), et = T(() => ({
1952
+ id: Ne.value,
1917
1953
  reference: p.value,
1918
1954
  placement: d.value.placement,
1919
1955
  strategy: d.value.strategy,
@@ -1927,19 +1963,19 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1927
1963
  triggerWidth: d.value.triggerWidth,
1928
1964
  topLayer: d.value.topLayer,
1929
1965
  modifiers: d.value.dropdownModifiers
1930
- })), tt = D(() => ({
1966
+ })), tt = T(() => ({
1931
1967
  valid: n.valid,
1932
1968
  invalid: n.invalid,
1933
1969
  modelValue: n.modelValue
1934
1970
  }));
1935
- function $(e) {
1936
- e.key !== " " && e.key !== "Enter" || n.autoOpen || !k.value && x.value && (e.preventDefault(), e.stopImmediatePropagation(), fe());
1971
+ function nt(e) {
1972
+ e.key !== " " && e.key !== "Enter" || n.autoOpen || !D.value && x.value && (e.preventDefault(), e.stopImmediatePropagation(), me());
1937
1973
  }
1938
- function nt() {
1939
- if (X.value?.length) {
1940
- if (X.value.length === 1) {
1941
- let e = X.value[0];
1942
- if (R(e)) {
1974
+ function $() {
1975
+ if (Y.value?.length) {
1976
+ if (Y.value.length === 1) {
1977
+ let e = Y.value[0];
1978
+ if (I(e)) {
1943
1979
  let t = K(e);
1944
1980
  t.length && Q(t[0]);
1945
1981
  return;
@@ -1949,201 +1985,201 @@ var hn = ["for"], gn = { class: "vv-select__wrapper" }, _n = {
1949
1985
  }
1950
1986
  m.value?.focusFirstListElement();
1951
1987
  } else if (d.value.addable) {
1952
- let e = le.value.trim();
1953
- if (!e || q.value.some((t) => G(t).toLowerCase() === e.toLowerCase())) return;
1954
- Ke.value.add(e), Q(e);
1988
+ let e = de.value.trim();
1989
+ if (!e || Ye.value.some((t) => W(t).toLowerCase() === e.toLowerCase())) return;
1990
+ qe.value.add(e), Q(e);
1955
1991
  }
1956
1992
  }
1957
- return (e, t) => e.native ? (L(), S(Tn, h({ key: 1 }, N($e), { "onUpdate:modelValue": t[3] ||= (e) => o("update:modelValue", e) }), null, 16)) : (L(), I("div", {
1993
+ return (e, t) => e.native ? (F(), S(En, h({ key: 1 }, j($e), { "onUpdate:modelValue": t[3] ||= (e) => o("update:modelValue", e) }), null, 16)) : (F(), P("div", {
1958
1994
  key: 0,
1959
- id: N(ke),
1960
- class: a(N(Ge))
1995
+ id: j(je),
1996
+ class: a(j(Ke))
1961
1997
  }, [
1962
- e.label ? (L(), I("label", {
1998
+ e.label ? (F(), P("label", {
1963
1999
  key: 0,
1964
- id: N(Pe),
1965
- for: N(d).searchable ? N(Me) : void 0
1966
- }, O(e.label), 9, Dn)) : j("v-if", !0),
1967
- T("div", {
2000
+ id: j(Fe),
2001
+ for: j(d).searchable ? j(Pe) : void 0
2002
+ }, E(e.label), 9, On)) : k("v-if", !0),
2003
+ le("div", {
1968
2004
  ref_key: "wrapperEl",
1969
2005
  ref: p,
1970
2006
  class: "vv-select__wrapper"
1971
- }, [_(nn, h({
2007
+ }, [_(rn, h({
1972
2008
  ref_key: "dropdownEl",
1973
2009
  ref: m,
1974
- modelValue: N(k),
1975
- "onUpdate:modelValue": t[2] ||= (e) => ge(k) ? k.value = e : null
1976
- }, N(et), {
1977
- role: N(Ue).listbox,
1978
- onAfterExpand: M,
1979
- onAfterCollapse: _e
1980
- }), C({
1981
- default: A(({ aria: t }) => [
1982
- e.$slots.before ? (L(), I("div", kn, [c(e.$slots, "before", r(i(N(tt))))])) : j("v-if", !0),
1983
- T("div", An, [
1984
- N(He) ? (L(), S(kt, h({ key: 0 }, N(He), { class: "vv-select__icon" }), null, 16)) : j("v-if", !0),
1985
- T("div", h({
2010
+ modelValue: j(D),
2011
+ "onUpdate:modelValue": t[2] ||= (e) => ve(D) ? D.value = e : null
2012
+ }, j(et), {
2013
+ role: j(Ge).listbox,
2014
+ onAfterExpand: A,
2015
+ onAfterCollapse: ye
2016
+ }), ie({
2017
+ default: O(({ aria: t }) => [
2018
+ e.$slots.before ? (F(), P("div", An, [c(e.$slots, "before", r(i(j(tt))))])) : k("v-if", !0),
2019
+ le("div", jn, [
2020
+ j(U) ? (F(), S(At, h({ key: 0 }, j(U), { class: "vv-select__icon" }), null, 16)) : k("v-if", !0),
2021
+ le("div", h({
1986
2022
  ref_key: "inputEl",
1987
2023
  ref: ee
1988
2024
  }, t, {
1989
2025
  class: "vv-select__input",
1990
2026
  role: "combobox",
1991
- "aria-controls": N(je),
1992
- "aria-expanded": N(k),
2027
+ "aria-controls": j(Ne),
2028
+ "aria-expanded": j(D),
1993
2029
  "aria-label": e.ariaLabel || void 0,
1994
- "aria-labelledby": e.ariaLabelledby || (e.label ? N(Pe) : void 0),
1995
- "aria-describedby": N(Ie),
1996
- "aria-errormessage": N(v) ? N(Ae) : void 0,
1997
- tabindex: N(V),
2030
+ "aria-labelledby": e.ariaLabelledby || (e.label ? j(Fe) : void 0),
2031
+ "aria-describedby": j(Le),
2032
+ "aria-errormessage": j(v) ? j(Me) : void 0,
2033
+ tabindex: j(z),
1998
2034
  onClickPassive: Ze,
1999
- onKeydown: $
2000
- }), [N(Xe) ? c(e.$slots, "value", r(i({
2001
- selectedOptions: N(Ye),
2035
+ onKeydown: nt
2036
+ }), [j(Xe) ? c(e.$slots, "value", r(i({
2037
+ selectedOptions: j(Z),
2002
2038
  onInput: Q
2003
- })), () => [e.badges ? (L(!0), I(w, { key: 1 }, b(N(Ye), (t, n) => (L(), S(Nt, {
2039
+ })), () => [e.badges ? (F(!0), P(C, { key: 1 }, b(j(Z), (t, n) => (F(), S(Pt, {
2004
2040
  key: n,
2005
2041
  modifiers: e.badgeModifiers,
2006
2042
  class: "vv-select__badge"
2007
2043
  }, {
2008
- default: A(() => [P(O(N(G)(t)) + " ", 1), N(ze) ? (L(), I("button", {
2044
+ default: O(() => [M(E(j(W)(t)) + " ", 1), j(H) ? (F(), P("button", {
2009
2045
  key: 0,
2010
- "aria-label": N(d).deselectActionLabel,
2046
+ "aria-label": j(d).deselectActionLabel,
2011
2047
  type: "button",
2012
- onClick: oe((e) => Q(t), ["stop"])
2013
- }, [_(kt, { name: "close" })], 8, Nn)) : j("v-if", !0)]),
2048
+ onClick: se((e) => Q(t), ["stop"])
2049
+ }, [_(At, { name: "close" })], 8, Pn)) : k("v-if", !0)]),
2014
2050
  _: 2
2015
- }, 1032, ["modifiers"]))), 128)) : (L(), I("div", Mn, O(N(Xe)), 1))], void 0, 0) : c(e.$slots, "placeholder", {}, () => [P(O(e.placeholder), 1)], void 0, 1)], 16, jn),
2016
- N(We) ? (L(), S(kt, h({ key: 1 }, N(We), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : j("v-if", !0)
2051
+ }, 1032, ["modifiers"]))), 128)) : (F(), P("div", Nn, E(j(Xe)), 1))], void 0, 0) : c(e.$slots, "placeholder", {}, () => [M(E(e.placeholder), 1)], void 0, 1)], 16, Mn),
2052
+ j(We) ? (F(), S(At, h({ key: 1 }, j(We), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : k("v-if", !0)
2017
2053
  ]),
2018
- N(ze) && N(d).showClearAction ? (L(), S(N(jt), {
2054
+ j(H) && j(d).showClearAction ? (F(), S(j(Mt), {
2019
2055
  key: 1,
2020
2056
  "input-type": "select",
2021
2057
  label: e.labelClear,
2022
2058
  icon: e.iconClear,
2023
- disabled: !N(Re),
2059
+ disabled: !j(ze),
2024
2060
  onClear: Qe
2025
2061
  }, null, 8, [
2026
2062
  "label",
2027
2063
  "icon",
2028
2064
  "disabled"
2029
- ])) : j("v-if", !0),
2030
- e.$slots.after ? (L(), I("div", Pn, [c(e.$slots, "after", r(i(N(tt))))])) : j("v-if", !0)
2065
+ ])) : k("v-if", !0),
2066
+ e.$slots.after ? (F(), P("div", Fn, [c(e.$slots, "after", r(i(j(tt))))])) : k("v-if", !0)
2031
2067
  ]),
2032
- items: A(() => [!N(Se) && N(X)?.length ? (L(!0), I(w, { key: 0 }, b(N(X), (t, n) => (L(), I(w, { key: n }, [R(t) ? (L(), I(w, { key: 0 }, [_(an, { label: N(G)(t) }, {
2033
- default: A(() => [c(e.$slots, "option-group", h({ ref_for: !0 }, {
2068
+ items: O(() => [!j(we) && j(Y)?.length ? (F(!0), P(C, { key: 0 }, b(j(Y), (t, n) => (F(), P(C, { key: n }, [I(t) ? (F(), P(C, { key: 0 }, [_(on, { label: j(W)(t) }, {
2069
+ default: O(() => [c(e.$slots, "option-group", h({ ref_for: !0 }, {
2034
2070
  option: t,
2035
- selectedOptions: N(Ye)
2036
- }), () => [P(O(N(G)(t)), 1)])]),
2071
+ selectedOptions: j(Z)
2072
+ }), () => [M(E(j(W)(t)), 1)])]),
2037
2073
  _: 2
2038
- }, 1032, ["label"]), (L(!0), I(w, null, b(N(K)(t), (t, n) => (L(), S(cn, h({ ref_for: !0 }, {
2039
- selected: Z(t),
2040
- disabled: Y(t),
2041
- unselectable: N(ze),
2042
- deselectHintLabel: N(d).deselectHintLabel,
2043
- selectHintLabel: N(d).selectHintLabel,
2044
- selectedHintLabel: N(d).selectedHintLabel,
2074
+ }, 1032, ["label"]), (F(!0), P(C, null, b(j(K)(t), (t, n) => (F(), S(ln, h({ ref_for: !0 }, {
2075
+ selected: X(t),
2076
+ disabled: J(t),
2077
+ unselectable: j(H),
2078
+ deselectHintLabel: j(d).deselectHintLabel,
2079
+ selectHintLabel: j(d).selectHintLabel,
2080
+ selectedHintLabel: j(d).selectedHintLabel,
2045
2081
  focusOnHover: e.focusOnHover
2046
2082
  }, {
2047
2083
  key: n,
2048
2084
  class: "vv-dropdown-option",
2049
2085
  onClickPassive: (e) => Q(t)
2050
2086
  }), {
2051
- default: A(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
2087
+ default: O(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
2052
2088
  option: t,
2053
- selectedOptions: N(Ye),
2054
- selected: Z(t),
2055
- disabled: Y(t)
2056
- }), () => [P(O(N(G)(t)), 1)])]),
2089
+ selectedOptions: j(Z),
2090
+ selected: X(t),
2091
+ disabled: J(t)
2092
+ }), () => [M(E(j(W)(t)), 1)])]),
2057
2093
  _: 2
2058
- }, 1040, ["onClickPassive"]))), 128))], 64)) : (L(), S(cn, h({
2094
+ }, 1040, ["onClickPassive"]))), 128))], 64)) : (F(), S(ln, h({
2059
2095
  key: 1,
2060
2096
  ref_for: !0
2061
2097
  }, {
2062
- selected: Z(t),
2063
- disabled: Y(t),
2064
- unselectable: N(ze),
2065
- deselectHintLabel: N(d).deselectHintLabel,
2066
- selectHintLabel: N(d).selectHintLabel,
2067
- selectedHintLabel: N(d).selectedHintLabel,
2098
+ selected: X(t),
2099
+ disabled: J(t),
2100
+ unselectable: j(H),
2101
+ deselectHintLabel: j(d).deselectHintLabel,
2102
+ selectHintLabel: j(d).selectHintLabel,
2103
+ selectedHintLabel: j(d).selectedHintLabel,
2068
2104
  focusOnHover: e.focusOnHover
2069
2105
  }, {
2070
2106
  class: "vv-dropdown-option",
2071
2107
  onClickPassive: (e) => Q(t)
2072
2108
  }), {
2073
- default: A(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
2109
+ default: O(() => [c(e.$slots, "option", h({ ref_for: !0 }, {
2074
2110
  option: t,
2075
- selectedOptions: N(Ye),
2076
- selected: Z(t),
2077
- disabled: Y(t)
2078
- }), () => [P(O(N(G)(t)), 1)])]),
2111
+ selectedOptions: j(Z),
2112
+ selected: X(t),
2113
+ disabled: J(t)
2114
+ }), () => [M(E(j(W)(t)), 1)])]),
2079
2115
  _: 2
2080
- }, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (L(), S(cn, {
2116
+ }, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (F(), S(ln, {
2081
2117
  key: 2,
2082
2118
  modifiers: "inert"
2083
2119
  }, {
2084
- default: A(() => [c(e.$slots, "no-results", {}, () => [P(O(N(d).addable ? N(d).addOptionHintLabel : N(d).noResultsLabel), 1)])]),
2120
+ default: O(() => [c(e.$slots, "no-results", {}, () => [M(E(j(d).addable ? j(d).addOptionHintLabel : j(d).noResultsLabel), 1)])]),
2085
2121
  _: 3
2086
- })) : (L(), S(cn, {
2122
+ })) : (F(), S(ln, {
2087
2123
  key: 1,
2088
2124
  modifiers: "inert"
2089
2125
  }, {
2090
- default: A(() => [c(e.$slots, "no-options", {}, () => [P(O(N(d).addable && le.value.length ? N(d).addOptionHintLabel : N(d).noOptionsLabel), 1)])]),
2126
+ default: O(() => [c(e.$slots, "no-options", {}, () => [M(E(j(d).addable && de.value.length ? j(d).addOptionHintLabel : j(d).noOptionsLabel), 1)])]),
2091
2127
  _: 3
2092
2128
  }))]),
2093
- after: A(() => [c(e.$slots, "dropdown::after", {}, () => [N(m)?.customPosition ? (L(), S(Kt, {
2129
+ after: O(() => [c(e.$slots, "dropdown::after", {}, () => [j(m)?.customPosition ? (F(), S(qt, {
2094
2130
  key: 0,
2095
- label: N(d).closeLabel,
2131
+ label: j(d).closeLabel,
2096
2132
  modifiers: "secondary",
2097
- onClick: t[1] ||= (e) => N(m).hide()
2098
- }, null, 8, ["label"])) : j("v-if", !0)])]),
2133
+ onClick: t[1] ||= (e) => j(m).hide()
2134
+ }, null, 8, ["label"])) : k("v-if", !0)])]),
2099
2135
  _: 2
2100
- }, [N(d).searchable || e.$slots["dropdown::before"] ? {
2136
+ }, [j(d).searchable || e.$slots["dropdown::before"] ? {
2101
2137
  name: "before",
2102
- fn: A(() => [c(e.$slots, "dropdown::before"), N(d).searchable && !N(Se) ? ue((L(), I("input", {
2138
+ fn: O(() => [c(e.$slots, "dropdown::before"), j(d).searchable && !j(we) ? fe((F(), P("input", {
2103
2139
  key: 0,
2104
- id: N(Me),
2140
+ id: j(Pe),
2105
2141
  ref_key: "inputSearchEl",
2106
2142
  ref: f,
2107
- "onUpdate:modelValue": t[0] ||= (e) => le.value = e,
2143
+ "onUpdate:modelValue": t[0] ||= (e) => de.value = e,
2108
2144
  "aria-autocomplete": "list",
2109
- "aria-controls": N(je),
2145
+ "aria-controls": j(Ne),
2110
2146
  autocomplete: "off",
2111
2147
  spellcheck: "false",
2112
2148
  type: "search",
2113
2149
  class: "vv-dropdown__search",
2114
- placeholder: N(d).searchPlaceholder,
2115
- onKeyup: he(nt, ["enter"])
2116
- }, null, 40, On)), [[ae, le.value]]) : j("v-if", !0)]),
2150
+ placeholder: j(d).searchPlaceholder,
2151
+ onKeyup: _e($, ["enter"])
2152
+ }, null, 40, kn)), [[oe, de.value]]) : k("v-if", !0)]),
2117
2153
  key: "0"
2118
2154
  } : void 0]), 1040, ["modelValue", "role"])], 512),
2119
- _(N(te), {
2120
- id: N(Ae),
2155
+ _(j(te), {
2156
+ id: j(Me),
2121
2157
  class: "vv-select__hint"
2122
- }, C({ _: 2 }, [
2158
+ }, ie({ _: 2 }, [
2123
2159
  e.$slots.hint ? {
2124
2160
  name: "hint",
2125
- fn: A(() => [c(e.$slots, "hint", r(i(N(y))))]),
2161
+ fn: O(() => [c(e.$slots, "hint", r(i(j(y))))]),
2126
2162
  key: "0"
2127
2163
  } : void 0,
2128
2164
  e.$slots.loading ? {
2129
2165
  name: "loading",
2130
- fn: A(() => [c(e.$slots, "loading", r(i(N(y))))]),
2166
+ fn: O(() => [c(e.$slots, "loading", r(i(j(y))))]),
2131
2167
  key: "1"
2132
2168
  } : void 0,
2133
2169
  e.$slots.valid ? {
2134
2170
  name: "valid",
2135
- fn: A(() => [c(e.$slots, "valid", r(i(N(y))))]),
2171
+ fn: O(() => [c(e.$slots, "valid", r(i(j(y))))]),
2136
2172
  key: "2"
2137
2173
  } : void 0,
2138
2174
  e.$slots.invalid ? {
2139
2175
  name: "invalid",
2140
- fn: A(() => [c(e.$slots, "invalid", r(i(N(y))))]),
2176
+ fn: O(() => [c(e.$slots, "invalid", r(i(j(y))))]),
2141
2177
  key: "3"
2142
2178
  } : void 0
2143
2179
  ]), 1032, ["id"])
2144
- ], 10, En));
2180
+ ], 10, Dn));
2145
2181
  }
2146
2182
  });
2147
- export { Fn as default };
2183
+ export { In as default };
2148
2184
 
2149
- //# sourceMappingURL=VvCombobox.es-BJzmLeTh.js.map
2185
+ //# sourceMappingURL=VvCombobox.es-ZJ44baFa.js.map