@8wave/ai-elements 0.103.0-beta.3 → 0.103.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 (128) hide show
  1. package/dist/_chunks/PkLazyImg-CyeqD59M.js +34 -0
  2. package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
  3. package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
  4. package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
  5. package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
  6. package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
  8. package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
  9. package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
  10. package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
  11. package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
  12. package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
  13. package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
  14. package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
  16. package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
  18. package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
  20. package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
  21. package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
  22. package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
  23. package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
  24. package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
  26. package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
  27. package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
  28. package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
  30. package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
  32. package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
  34. package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
  36. package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
  38. package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
  40. package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
  41. package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
  42. package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
  43. package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
  44. package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
  45. package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
  46. package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
  47. package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
  48. package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
  49. package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
  50. package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
  51. package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
  52. package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
  53. package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
  54. package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
  55. package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
  56. package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
  57. package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
  58. package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
  59. package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
  60. package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
  61. package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
  62. package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
  63. package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
  64. package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
  65. package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
  66. package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
  67. package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
  68. package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
  69. package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
  70. package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
  71. package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
  72. package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
  73. package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
  74. package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
  75. package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
  76. package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
  77. package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
  78. package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
  79. package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
  80. package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
  81. package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
  82. package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
  83. package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
  84. package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
  85. package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
  86. package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
  87. package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
  88. package/dist/ai-elements.es.js +1861 -1861
  89. package/dist/ai-elements.es.js.map +1 -1
  90. package/dist-vue/PkChatbot.js +1 -1
  91. package/dist-vue/PkChatbotAuth.js +1 -1
  92. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  93. package/dist-vue/PkChatbotMessages.js +1 -1
  94. package/dist-vue/PkChatbotViewChat.js +1 -1
  95. package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
  96. package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
  98. package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
  100. package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
  102. package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
  104. package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
  108. package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
  109. package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
  110. package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
  111. package/dist-vue/index.js +10 -10
  112. package/package.json +2 -2
  113. package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
  114. package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
  115. package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
  116. package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
  117. package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
  118. package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
  119. package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
  120. package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
  121. package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
  122. package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
  123. package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
  124. package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
  125. package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
  126. package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
  127. package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
  128. package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
@@ -0,0 +1,1166 @@
1
+ import { $ as e, A as t, B as n, C as r, Ct as i, E as a, F as o, G as s, L as c, M as l, N as u, O as d, Q as f, R as p, St as ee, T as m, Tt as h, U as te, W as ne, X as g, _, b as re, bt as v, c as ie, ct as y, d as ae, et as oe, g as b, h as x, it as se, k as S, m as C, pt as w, q as ce, r as le, s as T, t as ue, u as de, ut as fe, v as E, vt as D, wt as pe, x as me, xt as he, y as ge, yt as O, z as k } from "./vue.runtime.esm-bundler-B3bThTaf.js";
2
+ import { a as A, i as _e, t as ve } from "./iconify-6ObncgfH.js";
3
+ import { c as ye, d as be, l as xe, m as Se, n as Ce, o as j, p as M, r as N, s as we } from "./dist-C5Y-NI3i.js";
4
+ import { a as Te, c as P, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me } from "./floating-ui.vue-CoA4oagI.js";
5
+ //#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.18_@json-render+core@0.19.0_zod@4.4.3__@volverjs+style@0.1.25_@vue_fb2fc569fa47f04da7f3d790d6448706/node_modules/@volverjs/ui-vue/dist/components/VvTextarea/VvTextarea.es.js
6
+ d(), le(), se(), he();
7
+ var Ne = {
8
+ showPassword: "eye-on",
9
+ hidePassword: "eye-off",
10
+ showDatePicker: "calendar",
11
+ showTimePicker: "time",
12
+ showColorPicker: "color",
13
+ clear: "close",
14
+ add: "add",
15
+ remove: "trash",
16
+ edit: "edit",
17
+ download: "download"
18
+ }, Pe = { prefix: "normal" }, F = /* @__PURE__ */ (function(e) {
19
+ return e.local = "local", e.session = "session", e;
20
+ })({}), I = /* @__PURE__ */ (function(e) {
21
+ return e.absolute = "absolute", e.fixed = "fixed", e;
22
+ })({}), L = /* @__PURE__ */ (function(e) {
23
+ return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
24
+ })({}), R = /* @__PURE__ */ (function(e) {
25
+ 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;
26
+ })({}), z = /* @__PURE__ */ (function(e) {
27
+ return e.before = "before", e.after = "after", e;
28
+ })({}), B = /* @__PURE__ */ (function(e) {
29
+ return e.button = "button", e.submit = "submit", e.reset = "reset", e;
30
+ })({}), V = /* @__PURE__ */ (function(e) {
31
+ return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
32
+ })({}), H = /* @__PURE__ */ (function(e) {
33
+ return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
34
+ })({}), U = /* @__PURE__ */ (function(e) {
35
+ return e.listbox = "listbox", e.menu = "menu", e;
36
+ })({}), W = /* @__PURE__ */ (function(e) {
37
+ return e.option = "option", e.presentation = "presentation", e;
38
+ })({}), G = /* @__PURE__ */ Symbol.for("volver"), Fe = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Ie = /* @__PURE__ */ Symbol.for("dropdownItem"), K = /* @__PURE__ */ Symbol.for("dropdownAction"), q = {
39
+ to: { type: [String, Object] },
40
+ href: String,
41
+ target: String,
42
+ rel: {
43
+ type: String,
44
+ default: "noopener noreferrer"
45
+ }
46
+ }, Le = {
47
+ valid: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ validLabel: {
52
+ type: [String, Array],
53
+ default: void 0
54
+ }
55
+ }, Re = {
56
+ invalid: {
57
+ type: Boolean,
58
+ default: !1
59
+ },
60
+ invalidLabel: {
61
+ type: [String, Array],
62
+ default: void 0
63
+ }
64
+ }, J = {
65
+ loading: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ loadingLabel: {
70
+ type: String,
71
+ default: "Loading..."
72
+ }
73
+ }, Y = { disabled: {
74
+ type: Boolean,
75
+ default: !1
76
+ } }, ze = { required: {
77
+ type: Boolean,
78
+ default: !1
79
+ } }, Be = { selected: {
80
+ type: Boolean,
81
+ default: !1
82
+ } }, Ve = { active: {
83
+ type: Boolean,
84
+ default: !1
85
+ } }, He = { current: {
86
+ type: Boolean,
87
+ default: !1
88
+ } };
89
+ Ne.clear;
90
+ var Ue = { pressed: {
91
+ type: Boolean,
92
+ default: !1
93
+ } }, X = { label: {
94
+ type: [String, Number],
95
+ default: void 0
96
+ } }, We = { readonly: {
97
+ type: Boolean,
98
+ default: !1
99
+ } }, Z = { modifiers: {
100
+ type: [String, Array],
101
+ default: void 0
102
+ } }, Ge = { hintLabel: {
103
+ type: String,
104
+ default: ""
105
+ } }, Ke = {
106
+ options: {
107
+ type: Array,
108
+ default: () => []
109
+ },
110
+ labelKey: {
111
+ type: [String, Function],
112
+ default: "label"
113
+ },
114
+ valueKey: {
115
+ type: [String, Function],
116
+ default: "value"
117
+ },
118
+ disabledKey: {
119
+ type: [String, Function],
120
+ default: "disabled"
121
+ }
122
+ }, qe = { count: {
123
+ type: [Boolean, String],
124
+ default: !1,
125
+ validator: (e) => [
126
+ !0,
127
+ !1,
128
+ "limit",
129
+ "countdown"
130
+ ].includes(e)
131
+ } }, Je = { debounce: {
132
+ type: [Number, String],
133
+ default: void 0
134
+ } }, Ye = {
135
+ icon: {
136
+ type: [String, Object],
137
+ default: void 0
138
+ },
139
+ iconPosition: {
140
+ type: String,
141
+ default: z.before,
142
+ validation: (e) => Object.values(z).includes(e)
143
+ }
144
+ }, Xe = { tabindex: {
145
+ type: [String, Number],
146
+ default: 0
147
+ } }, Ze = { floating: {
148
+ type: Boolean,
149
+ default: !1
150
+ } }, Qe = { unselectable: {
151
+ type: Boolean,
152
+ default: !0
153
+ } }, $e = { id: [String, Number] }, et = {
154
+ placement: {
155
+ type: String,
156
+ default: L.bottom,
157
+ validator: (e) => Object.values(L).includes(e) || Object.values(R).includes(e)
158
+ },
159
+ strategy: {
160
+ type: String,
161
+ default: void 0,
162
+ validator: (e) => Object.values(I).includes(e)
163
+ },
164
+ transitionName: {
165
+ type: String,
166
+ default: void 0
167
+ },
168
+ offset: {
169
+ type: [
170
+ Number,
171
+ String,
172
+ Object
173
+ ],
174
+ default: 0
175
+ },
176
+ shift: {
177
+ type: [Boolean, Object],
178
+ default: !1
179
+ },
180
+ flip: {
181
+ type: [Boolean, Object],
182
+ default: !0
183
+ },
184
+ size: {
185
+ type: [Boolean, Object],
186
+ default: () => ({ padding: 10 })
187
+ },
188
+ autoPlacement: {
189
+ type: [Boolean, Object],
190
+ default: !1
191
+ },
192
+ arrow: {
193
+ type: Boolean,
194
+ default: !1
195
+ },
196
+ keepOpen: {
197
+ type: Boolean,
198
+ default: !1
199
+ },
200
+ autofocusFirst: {
201
+ type: Boolean,
202
+ default: !0
203
+ },
204
+ triggerWidth: {
205
+ type: Boolean,
206
+ default: !1
207
+ },
208
+ topLayer: {
209
+ type: Boolean,
210
+ default: !1
211
+ }
212
+ }, tt = {
213
+ ...$e,
214
+ name: {
215
+ type: String,
216
+ required: !0
217
+ }
218
+ }, nt = { autofocus: {
219
+ type: Boolean,
220
+ default: !1
221
+ } }, rt = { autocomplete: {
222
+ type: String,
223
+ default: "off"
224
+ } }, it = {
225
+ ...tt,
226
+ ...nt,
227
+ ...rt,
228
+ ...Xe,
229
+ ...Y,
230
+ ...We,
231
+ ...Le,
232
+ ...Re,
233
+ ...Ge,
234
+ ...J,
235
+ ...Z,
236
+ ...qe,
237
+ ...Je,
238
+ ...Ye,
239
+ ...Ze,
240
+ ...X,
241
+ minlength: {
242
+ type: [String, Number],
243
+ default: void 0
244
+ },
245
+ maxlength: {
246
+ type: [String, Number],
247
+ default: void 0
248
+ },
249
+ placeholder: {
250
+ type: String,
251
+ default: void 0
252
+ },
253
+ ...ze
254
+ };
255
+ ({
256
+ ...tt,
257
+ ...Xe,
258
+ ...Le,
259
+ ...Re,
260
+ ...Ge,
261
+ ...Y,
262
+ ...We,
263
+ ...Z,
264
+ ...X,
265
+ ...J
266
+ }), {
267
+ ...Le,
268
+ ...Re,
269
+ ...Ke,
270
+ ...Ge,
271
+ ...Y,
272
+ ...We,
273
+ ...Z,
274
+ ...X,
275
+ ...J,
276
+ ...ze
277
+ }, {
278
+ ...Y,
279
+ ...X,
280
+ ...Ue,
281
+ ...Ve,
282
+ ...He,
283
+ ...q
284
+ }, B.button, V.button;
285
+ var at = {
286
+ storageType: {
287
+ type: String,
288
+ default: F.local,
289
+ validator: (e) => Object.values(F).includes(e)
290
+ },
291
+ storageKey: String
292
+ }, ot = {
293
+ hard: "hard",
294
+ soft: "soft"
295
+ }, st = {
296
+ true: !0,
297
+ false: !1,
298
+ default: "default"
299
+ }, ct = [
300
+ "update:modelValue",
301
+ "focus",
302
+ "blur",
303
+ "keyup",
304
+ "suggestion:selected",
305
+ "suggestion:removed"
306
+ ], lt = {
307
+ ...it,
308
+ ...at,
309
+ modelValue: String,
310
+ cols: {
311
+ type: [String, Number],
312
+ default: 20
313
+ },
314
+ rows: {
315
+ type: [String, Number],
316
+ default: 2
317
+ },
318
+ wrap: {
319
+ type: String,
320
+ default: ot.soft
321
+ },
322
+ spellcheck: {
323
+ type: [Boolean, String],
324
+ default: st.default
325
+ },
326
+ iconRemoveSuggestion: {
327
+ type: [String, Object],
328
+ default: Ne.remove
329
+ },
330
+ labelRemoveSuggestion: {
331
+ type: String,
332
+ default: "Remove suggestion"
333
+ },
334
+ maxSuggestions: {
335
+ type: Number,
336
+ default: 5
337
+ },
338
+ selectOnFocus: {
339
+ type: Boolean,
340
+ default: !1
341
+ },
342
+ resizable: Boolean,
343
+ topLayer: et.topLayer
344
+ };
345
+ function Q(e) {
346
+ return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(v(e));
347
+ }
348
+ function ut(e) {
349
+ return typeof e == "string";
350
+ }
351
+ function dt(e) {
352
+ return Array.isArray(e) ? e.filter((e) => ut(e)).join(" ") : e;
353
+ }
354
+ function ft(e, t) {
355
+ let n = C(() => y(e) ? e.value : e), i = C(() => dt(n.value.invalidLabel)), o = C(() => dt(n.value.validLabel)), s = C(() => n.value.loadingLabel), c = C(() => n.value.hintLabel), l = C(() => !!(n.value.loading && (t.loading || s.value))), u = C(() => !l.value && !!(n.value.invalid && (t.invalid || i.value))), d = C(() => !l.value && !u.value && !!(n.value.valid && (t.valid || o.value))), f = C(() => !l.value && !u.value && !d.value && !!(t.hint || c.value)), p = C(() => u.value || d.value || l.value || f.value);
356
+ return {
357
+ hasInvalidLabelOrSlot: u,
358
+ hasHintLabelOrSlot: f,
359
+ hasValidLabelOrSlot: d,
360
+ hasLoadingLabelOrSlot: l,
361
+ hintSlotScope: C(() => ({
362
+ modelValue: n.value.modelValue,
363
+ valid: n.value.valid,
364
+ invalid: n.value.invalid,
365
+ loading: n.value.loading
366
+ })),
367
+ HintSlot: r({
368
+ name: "HintSlot",
369
+ props: { tag: {
370
+ type: String,
371
+ default: "small"
372
+ } },
373
+ setup() {
374
+ return {
375
+ isVisible: p,
376
+ invalidLabel: i,
377
+ validLabel: o,
378
+ loadingLabel: s,
379
+ hintLabel: c,
380
+ hasInvalidLabelOrSlot: u,
381
+ hasValidLabelOrSlot: d,
382
+ hasLoadingLabelOrSlot: l,
383
+ hasHintLabelOrSlot: f
384
+ };
385
+ },
386
+ render() {
387
+ if (this.isVisible) {
388
+ let e;
389
+ return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? a(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? a(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : a(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
390
+ }
391
+ return null;
392
+ }
393
+ })
394
+ };
395
+ }
396
+ var pt = {
397
+ ...$e,
398
+ ...et,
399
+ ...Z,
400
+ modelValue: {
401
+ type: Boolean,
402
+ default: void 0
403
+ },
404
+ reference: {
405
+ type: Object,
406
+ default: null
407
+ },
408
+ role: {
409
+ type: String,
410
+ default: U.menu,
411
+ validator: (e) => Object.values(U).includes(e)
412
+ }
413
+ }, mt = { focusOnHover: {
414
+ type: Boolean,
415
+ default: !1
416
+ } }, ht = {
417
+ ...Y,
418
+ ...Be,
419
+ ...Qe,
420
+ ...Z,
421
+ deselectHintLabel: { type: String },
422
+ selectHintLabel: { type: String },
423
+ selectedHintLabel: { type: String },
424
+ focusOnHover: {
425
+ type: Boolean,
426
+ default: !1
427
+ }
428
+ };
429
+ function gt(e) {
430
+ return C(() => String(e?.value || s()));
431
+ }
432
+ function _t(e, t) {
433
+ let n = globalThis.HTMLElement !== void 0 && "popover" in globalThis.HTMLElement.prototype, r = C(() => n && O(t)), i = C(() => r.value ? "manual" : void 0);
434
+ function a() {
435
+ return (n && e.value?.matches(":popover-open")) ?? !1;
436
+ }
437
+ function o() {
438
+ if (!(!r.value || !e.value?.isConnected || a())) try {
439
+ e.value.showPopover();
440
+ } catch {}
441
+ }
442
+ function s() {
443
+ if (!(!e.value || !a())) try {
444
+ e.value.hidePopover();
445
+ } catch {}
446
+ }
447
+ return {
448
+ isTopLayer: r,
449
+ popover: i,
450
+ show: o,
451
+ hide: s
452
+ };
453
+ }
454
+ function vt({ reference: e, id: t, expanded: n, aria: i }) {
455
+ let o = De();
456
+ return {
457
+ bus: o,
458
+ component: r({
459
+ name: "VvDropdownTriggerProvider",
460
+ setup() {
461
+ p(Fe, {
462
+ reference: e,
463
+ id: t,
464
+ expanded: n,
465
+ aria: i,
466
+ bus: o
467
+ });
468
+ },
469
+ render() {
470
+ return a(ae, {}, this.$slots.default?.());
471
+ }
472
+ })
473
+ };
474
+ }
475
+ function yt({ role: e, ...t }) {
476
+ let n = C(() => e.value === U.listbox ? W.option : W.presentation);
477
+ return p(Ie, {
478
+ role: n,
479
+ ...t
480
+ }), { itemRole: n };
481
+ }
482
+ function bt({ expanded: e }) {
483
+ p(K, {
484
+ role: w(H.menuitem),
485
+ expanded: e
486
+ });
487
+ }
488
+ function $(e, t, n) {
489
+ return C(() => {
490
+ let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
491
+ return i && Array.isArray(i) && i.forEach((t) => {
492
+ t && (r[`${e}--${t}`] = !0);
493
+ }), n && Object.keys(n.value).forEach((t) => {
494
+ r[`${e}--${t}`] = v(n.value[t]);
495
+ }), r;
496
+ });
497
+ }
498
+ var xt = ["popover"], St = [
499
+ "id",
500
+ "tabindex",
501
+ "role",
502
+ "aria-labelledby"
503
+ ], Ct = /* @__PURE__ */ r({
504
+ name: "VvDropdown",
505
+ inheritAttrs: !1,
506
+ props: pt,
507
+ emits: [
508
+ "update:modelValue",
509
+ "beforeEnter",
510
+ "afterLeave",
511
+ "beforeExpand",
512
+ "beforeCollapse",
513
+ "afterExpand",
514
+ "afterCollapse",
515
+ "before-enter",
516
+ "after-leave",
517
+ "enter",
518
+ "afterEnter",
519
+ "enterCancelled",
520
+ "beforeLeave",
521
+ "leave",
522
+ "leaveCancelled"
523
+ ],
524
+ setup(t, { expose: r, emit: a }) {
525
+ let s = t, d = a, { id: p } = D(s), h = gt(p), re = ne(), y = w("auto"), b = w("auto"), se = w(), S = w(), ce = w(), le = w(), T = C({
526
+ get: () => s.reference ?? se.value,
527
+ set: (e) => {
528
+ se.value = e;
529
+ }
530
+ }), { isTopLayer: de, popover: fe, show: he, hide: ge } = _t(S, () => s.topLayer), O = C(() => de.value ? I.fixed : s.strategy), k = w(!1);
531
+ o(() => {
532
+ be(S.value, () => {
533
+ k.value = globalThis.getComputedStyle(S.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
534
+ }, {
535
+ attributeFilter: ["style"],
536
+ window: globalThis.window
537
+ });
538
+ });
539
+ function A(e, t, n) {
540
+ return typeof e == "boolean" ? t() : n(e);
541
+ }
542
+ let _e = C(() => {
543
+ let e = [];
544
+ if (s.autoPlacement ? e.push(A(s.autoPlacement, () => Ae(), (e) => Ae(e))) : s.flip && e.push(A(s.flip, () => Te({ fallbackStrategy: "initialPlacement" }), (e) => Te(e))), s.shift && e.push(A(s.shift, () => je(), (e) => je(e))), s.size) {
545
+ let t = ({ availableWidth: e, availableHeight: t }) => {
546
+ y.value = `${e}px`, b.value = `${t}px`;
547
+ };
548
+ e.push(A(s.size, () => P({ apply: t }), (e) => P({
549
+ ...e,
550
+ apply: t
551
+ })));
552
+ }
553
+ return s.offset && e.push(["string", "number"].includes(typeof s.offset) ? ke(Number(s.offset)) : ke(s.offset)), s.arrow && e.push(Me({ element: ce })), e;
554
+ }), { x: ve, y: ye, middlewareData: M, placement: we, strategy: De } = Oe(T, S, {
555
+ whileElementsMounted: (...e) => Ee(...e, { animationFrame: O.value === I.fixed }),
556
+ placement: C(() => s.placement),
557
+ strategy: O,
558
+ middleware: _e
559
+ }), Ne = C(() => {
560
+ if (k.value) return;
561
+ let e = s.triggerWidth && T.value ? `${T.value?.offsetWidth}px` : void 0;
562
+ return {
563
+ position: De.value,
564
+ top: `${ye.value ?? 0}px`,
565
+ left: `${ve.value ?? 0}px`,
566
+ maxWidth: e ? void 0 : y.value,
567
+ maxHeight: b.value,
568
+ width: e
569
+ };
570
+ }), Pe = C(() => we.value.split("-")[0]), F = C(() => {
571
+ if (k.value) return;
572
+ let e = {
573
+ [L.top]: L.bottom,
574
+ [L.right]: L.left,
575
+ [L.bottom]: L.top,
576
+ [L.left]: L.right
577
+ }[Pe.value];
578
+ return {
579
+ left: M.value.arrow?.x === void 0 ? void 0 : `${M.value.arrow?.x}px`,
580
+ top: M.value.arrow?.y === void 0 ? void 0 : `${M.value.arrow?.y}px`,
581
+ [e]: `${-(ce.value?.offsetWidth ?? 0) / 2}px`
582
+ };
583
+ }), R = Se(s, "modelValue", d), z = w(!1), B = C({
584
+ get: () => R.value ?? z.value,
585
+ set: (e) => {
586
+ if (R.value === void 0) {
587
+ z.value = e;
588
+ return;
589
+ }
590
+ R.value = e;
591
+ }
592
+ });
593
+ f(() => {
594
+ B.value && he();
595
+ });
596
+ function V() {
597
+ B.value = !0;
598
+ }
599
+ function H() {
600
+ B.value = !1;
601
+ }
602
+ function U() {
603
+ B.value = !B.value;
604
+ }
605
+ function W(e) {
606
+ T.value = e;
607
+ }
608
+ Ce(S, () => {
609
+ !s.keepOpen && B.value && (B.value = !1);
610
+ }, { ignore: [T] });
611
+ let G = C(() => T.value?.getAttribute?.("id") ?? void 0), Fe = C(() => ({
612
+ "aria-controls": h.value,
613
+ "aria-haspopup": !0,
614
+ "aria-expanded": B.value
615
+ })), { component: Ie, bus: K } = vt({
616
+ reference: T,
617
+ id: h,
618
+ expanded: B,
619
+ aria: Fe
620
+ });
621
+ K.on("click", U);
622
+ let { role: q, modifiers: Le } = D(s), Re = $("vv-dropdown", Le, C(() => ({ arrow: s.arrow }))), { focused: J } = xe(S);
623
+ function Y(e) {
624
+ return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
625
+ }
626
+ function ze() {
627
+ u(() => {
628
+ let e = Y(S.value);
629
+ e.length > 0 && e[0].focus({ preventScroll: !0 });
630
+ });
631
+ }
632
+ function Be() {
633
+ u(() => {
634
+ let e = Y(le.value);
635
+ e.length > 0 && e[0].focus({ preventScroll: !0 });
636
+ });
637
+ }
638
+ function Ve() {
639
+ u(() => {
640
+ if (J.value) {
641
+ let e = Y(S.value);
642
+ if (e.length === 0 || !document.activeElement) return;
643
+ let t = e.indexOf(document.activeElement);
644
+ t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
645
+ }
646
+ });
647
+ }
648
+ function He() {
649
+ u(() => {
650
+ if (J.value) {
651
+ let e = Y(S.value);
652
+ if (e.length === 0 || !document.activeElement) return;
653
+ let t = e.indexOf(document.activeElement);
654
+ if (t > 0) {
655
+ e[t - 1].focus({ preventScroll: !0 });
656
+ return;
657
+ }
658
+ e.at(-1)?.focus({ preventScroll: !0 });
659
+ }
660
+ });
661
+ }
662
+ g(B, (e) => {
663
+ e && s.autofocusFirst && ze();
664
+ }), r({
665
+ toggle: U,
666
+ show: V,
667
+ hide: H,
668
+ init: W,
669
+ focusFirst: ze,
670
+ focusFirstListElement: Be,
671
+ focusNext: Ve,
672
+ focusPrev: He,
673
+ customPosition: k
674
+ });
675
+ let { itemRole: Ue } = yt({
676
+ role: q,
677
+ expanded: B,
678
+ focused: J,
679
+ hovered: j(S)
680
+ });
681
+ N("Escape", (e) => {
682
+ B.value && (e.preventDefault(), H());
683
+ }), N("ArrowDown", (e) => {
684
+ B.value && J.value && (e.preventDefault(), Ve());
685
+ }), N("ArrowUp", (e) => {
686
+ B.value && J.value && (e.preventDefault(), He());
687
+ }), N([" ", "Enter"], (e) => {
688
+ let t = e.target;
689
+ B.value && J.value && t && t?.click();
690
+ });
691
+ let X = {
692
+ "before-enter": () => {
693
+ d(B.value ? "beforeExpand" : "beforeCollapse"), d("beforeEnter");
694
+ },
695
+ "after-leave": () => {
696
+ B.value || ge(), d(B.value ? "afterExpand" : "afterCollapse"), d("afterLeave");
697
+ },
698
+ enter: () => {
699
+ d("enter");
700
+ },
701
+ "after-enter": () => {
702
+ d("afterEnter");
703
+ },
704
+ "enter-cancelled": () => {
705
+ d("enterCancelled");
706
+ },
707
+ "before-leave": () => {
708
+ d("beforeLeave");
709
+ },
710
+ leave: () => {
711
+ d("leave");
712
+ },
713
+ "leave-cancelled": () => {
714
+ d("leaveCancelled");
715
+ }
716
+ };
717
+ return (t, r) => (c(), E(ae, null, [me(v(Ie), null, {
718
+ default: e(() => [n(t.$slots, "default", i(m({
719
+ init: W,
720
+ show: V,
721
+ hide: H,
722
+ toggle: U,
723
+ expanded: v(B),
724
+ aria: v(Fe)
725
+ })))]),
726
+ _: 3
727
+ }), me(ue, l({ name: t.transitionName }, te(X), { persisted: "" }), {
728
+ default: e(() => [oe(x("div", {
729
+ ref_key: "floatingEl",
730
+ ref: S,
731
+ popover: v(fe),
732
+ style: pe(v(Ne)),
733
+ class: ee(v(Re))
734
+ }, [
735
+ s.arrow ? (c(), E("div", {
736
+ key: 0,
737
+ ref_key: "arrowEl",
738
+ ref: ce,
739
+ style: pe(v(F)),
740
+ class: "vv-dropdown__arrow"
741
+ }, null, 4)) : _("v-if", !0),
742
+ n(t.$slots, "before", i(m({
743
+ show: V,
744
+ hide: H,
745
+ toggle: U,
746
+ expanded: v(B)
747
+ }))),
748
+ x("div", l(v(re), {
749
+ id: v(h),
750
+ ref_key: "listEl",
751
+ ref: le,
752
+ tabindex: v(B) ? void 0 : -1,
753
+ role: v(q),
754
+ "aria-labelledby": v(G),
755
+ class: "vv-dropdown__list"
756
+ }), [n(t.$slots, "items", i(m({
757
+ show: V,
758
+ hide: H,
759
+ toggle: U,
760
+ expanded: v(B),
761
+ role: v(Ue)
762
+ })))], 16, St),
763
+ n(t.$slots, "after", i(m({
764
+ show: V,
765
+ hide: H,
766
+ toggle: U,
767
+ expanded: v(B)
768
+ })))
769
+ ], 14, xt), [[ie, v(B)]])]),
770
+ _: 3
771
+ }, 16, ["name"])], 64));
772
+ }
773
+ });
774
+ function wt() {
775
+ return S(Ie, {});
776
+ }
777
+ var Tt = /* @__PURE__ */ r({
778
+ name: "VvDropdownItem",
779
+ props: mt,
780
+ setup(e) {
781
+ let t = e, { role: r, expanded: i } = wt(), a = w(null);
782
+ bt({ expanded: i });
783
+ let o = j(a), { focused: s } = ye(a), { focused: u } = xe(a);
784
+ return g(o, (e) => {
785
+ e && t.focusOnHover && (s.value = !0);
786
+ }), (e, t) => (c(), E("div", l({ role: v(r) }, {
787
+ ref_key: "element",
788
+ ref: a,
789
+ class: ["vv-dropdown__item", { "focus-visible": v(s) || v(u) }]
790
+ }), [n(e.$slots, "default")], 16));
791
+ }
792
+ }), Et = ["title"], Dt = /* @__PURE__ */ r({
793
+ name: "VvDropdownOption",
794
+ props: ht,
795
+ setup(t) {
796
+ let r = t, { modifiers: a } = D(r), o = $("vv-dropdown-option", a, C(() => ({
797
+ disabled: r.disabled,
798
+ selected: r.selected,
799
+ unselectable: r.unselectable && r.selected
800
+ }))), s = C(() => r.selected ? r.unselectable ? r.deselectHintLabel : r.selectedHintLabel : r.disabled ? "" : r.selectHintLabel);
801
+ return (t, r) => (c(), b(Tt, {
802
+ class: ee(v(o)),
803
+ tabindex: t.disabled ? -1 : 0,
804
+ "aria-selected": t.selected,
805
+ "aria-disabled": t.disabled,
806
+ "focus-on-hover": t.focusOnHover
807
+ }, {
808
+ default: e(() => [n(t.$slots, "default"), x("span", {
809
+ class: "vv-dropdown-option__hint",
810
+ title: v(s)
811
+ }, [n(t.$slots, "hint", i(m({
812
+ disabled: t.disabled,
813
+ selected: t.selected,
814
+ unselectable: t.unselectable
815
+ })), () => [re(h(v(s)), 1)])], 8, Et)]),
816
+ _: 3
817
+ }, 8, [
818
+ "class",
819
+ "tabindex",
820
+ "aria-selected",
821
+ "aria-disabled",
822
+ "focus-on-hover"
823
+ ]));
824
+ }
825
+ });
826
+ function Ot() {
827
+ return S(G, void 0);
828
+ }
829
+ var kt = /* @__PURE__ */ r({
830
+ name: "VvIcon",
831
+ props: /* @__PURE__ */ t({
832
+ name: {},
833
+ color: {},
834
+ width: {},
835
+ height: {},
836
+ provider: {},
837
+ prefix: {},
838
+ src: {},
839
+ horizontalFlip: { type: Boolean },
840
+ verticalFlip: { type: Boolean },
841
+ flip: {},
842
+ mode: {},
843
+ inline: { type: Boolean },
844
+ rotate: {},
845
+ onLoad: { type: Function },
846
+ svg: {},
847
+ modifiers: {}
848
+ }, Pe),
849
+ setup(e) {
850
+ let t = e, n = C(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = w(!0), i = Ot(), { modifiers: a } = D(t), o = $("vv-icon", a), s = C(() => t.provider || i?.iconsProvider), u = C(() => {
851
+ let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
852
+ if (A(n)) return n;
853
+ let r = i?.iconsCollections.find((t) => {
854
+ let n = `@${s.value}:${t.prefix}:${e}`;
855
+ return A(n);
856
+ });
857
+ return r ? `@${s.value}:${r.prefix}:${e}` : e;
858
+ });
859
+ function d(e) {
860
+ return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(e, "text/html").querySelector("svg");
861
+ }
862
+ function f(e) {
863
+ let n = d(e), r = n?.innerHTML.trim() || "";
864
+ n && r && _e(`@${s.value}:${t.prefix}:${t.name}`, {
865
+ body: r,
866
+ height: n.viewBox.baseVal.height,
867
+ width: n.viewBox.baseVal.width
868
+ });
869
+ }
870
+ return i && t.src && !A(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
871
+ e && f(e), r.value = !0;
872
+ }).catch((e) => {
873
+ throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
874
+ })), t.svg && f(t.svg), (t, i) => v(r) ? (c(), b(v(ve), l({
875
+ key: 0,
876
+ class: v(o)
877
+ }, {
878
+ inline: e.inline,
879
+ width: e.width,
880
+ height: e.height,
881
+ horizontalFlip: e.horizontalFlip,
882
+ verticalFlip: e.verticalFlip,
883
+ flip: e.flip,
884
+ rotate: v(n),
885
+ color: e.color,
886
+ icon: v(u)
887
+ }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : _("v-if", !0);
888
+ }
889
+ });
890
+ function At(e, t, n) {
891
+ let r = t;
892
+ if (Array.isArray(e) && e.length) {
893
+ let i = e[0];
894
+ i() === t && (r = n);
895
+ }
896
+ if (typeof e == "function" && e() === t && (r = n), typeof e == "object") {
897
+ let i = e.default;
898
+ typeof i == "function" && (i = i()), (typeof i == "object" ? JSON.stringify(i) === JSON.stringify(t) : i === t) && (r = n);
899
+ }
900
+ return r;
901
+ }
902
+ function jt(e, t, n) {
903
+ let r = Ot(), i = C(() => {
904
+ if (r?.defaults.value?.[e]) return r.defaults.value[e];
905
+ });
906
+ return C(() => {
907
+ if (i.value === void 0) return n;
908
+ let e = i.value, r = t, a = n;
909
+ return Object.keys(r).reduce((t, n) => {
910
+ let i = a[n];
911
+ return t[n] = n in e ? At(r[n], i, e[n]) : i, t;
912
+ }, {});
913
+ });
914
+ }
915
+ function Mt(e, t, n = 0, { getter: r = (e) => e, setter: i = (e) => e } = {}) {
916
+ let a, o, s = C(() => {
917
+ let e = O(n) ?? 0, t = typeof e == "string" ? Number.parseInt(e) : e;
918
+ return Number.isNaN(t) ? 0 : t;
919
+ });
920
+ function c() {
921
+ a &&= (clearTimeout(a), void 0), o = void 0;
922
+ }
923
+ function l() {
924
+ if (!o) return;
925
+ let e = i(o.value);
926
+ return c(), t("update:modelValue", e), e;
927
+ }
928
+ return fe(c), {
929
+ model: C({
930
+ get: () => r(e?.value),
931
+ set: (e) => {
932
+ if (s.value <= 0) {
933
+ c(), t("update:modelValue", i(e));
934
+ return;
935
+ }
936
+ o = { value: e }, a && clearTimeout(a), a = setTimeout(l, s.value);
937
+ }
938
+ }),
939
+ flush: l,
940
+ cancel: c
941
+ };
942
+ }
943
+ function Nt(e, t) {
944
+ let n = C(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = C(() => t?.value === z.before ? n.value : void 0), i = C(() => t?.value === z.after ? n.value : void 0);
945
+ return {
946
+ hasIcon: n,
947
+ hasIconLeft: C(() => t?.value === L.left ? n.value : void 0),
948
+ hasIconRight: C(() => t?.value === L.right ? n.value : void 0),
949
+ hasIconTop: C(() => t?.value === L.top ? n.value : void 0),
950
+ hasIconBottom: C(() => t?.value === L.bottom ? n.value : void 0),
951
+ hasIconBefore: r,
952
+ hasIconAfter: i
953
+ };
954
+ }
955
+ function Pt(e, t) {
956
+ let { focused: n } = ye(e);
957
+ return g(n, (n) => {
958
+ t(n ? "focus" : "blur", v(e));
959
+ }), { focused: n };
960
+ }
961
+ function Ft(e, t) {
962
+ let n = C(() => (v(e) ?? "").length), r = C(() => t?.lowerLimit !== void 0 && n.value < t?.lowerLimit ? n.value - t.lowerLimit : t?.upperLimit === void 0 ? 0 : t.upperLimit - n.value);
963
+ return {
964
+ length: n,
965
+ gap: r,
966
+ formatted: C(() => t?.mode === !1 ? "" : t?.mode === "limit" && t?.upperLimit ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : t?.mode === "countdown" ? r.value === 0 ? void 0 : r.value : n.value)
967
+ };
968
+ }
969
+ function It(e, t = F.local, n) {
970
+ let r = w();
971
+ n && (r.value = n);
972
+ let i;
973
+ return o(() => {
974
+ e && g(e, (e, n) => {
975
+ let a = v(t) === F.session ? sessionStorage : localStorage;
976
+ if (n && n !== e && a.removeItem(n), e) {
977
+ i = M(e, i?.value ?? r.value, a), i.value && (r.value = i.value);
978
+ return;
979
+ }
980
+ i = void 0;
981
+ }, { immediate: !0 }), y(t) && g(t, (t, n) => {
982
+ if (e?.value) {
983
+ if (t) {
984
+ let n = t === F.session ? sessionStorage : localStorage;
985
+ i = M(e.value, i?.value ?? r.value, n);
986
+ }
987
+ n && n !== t && (n === F.session ? sessionStorage : localStorage).removeItem(e.value);
988
+ }
989
+ });
990
+ }), g(r, (e) => {
991
+ i && (i.value = e);
992
+ }, {
993
+ deep: !0,
994
+ immediate: !0
995
+ }), r;
996
+ }
997
+ var Lt = ["for"], Rt = {
998
+ key: 0,
999
+ class: "vv-textarea__input-before"
1000
+ }, zt = { class: "vv-textarea__inner" }, Bt = ["id"], Vt = {
1001
+ key: 1,
1002
+ class: "vv-textarea__input-after"
1003
+ }, Ht = {
1004
+ key: 2,
1005
+ class: "vv-textarea__limit"
1006
+ }, Ut = { class: "flex-1" }, Wt = ["title", "onClick"], Gt = /* @__PURE__ */ r({
1007
+ name: "VvTextarea",
1008
+ props: lt,
1009
+ emits: ct,
1010
+ setup(t, { expose: r, emit: a }) {
1011
+ let o = t, s = a, u = ce(), d = Ot(), f = jt("VvTextarea", lt, o), p = w(), te = w(), ne = w(), { id: ie, icon: se, iconPosition: S, iconRemoveSuggestion: le, labelRemoveSuggestion: ue, label: fe, modelValue: pe, count: he, valid: O, invalid: A, loading: _e, modifiers: ve, debounce: ye, minlength: be, maxlength: xe, storageType: Se } = D(o), Ce = gt(ie), j = C(() => `${Ce.value}-hint`), M = C(() => o.floating && Q(o.placeholder) ? " " : o.placeholder), { model: N, flush: Te } = Mt(pe, s, ye);
1012
+ r({ flush: Te });
1013
+ let { hasIconBefore: P, hasIconAfter: Ee } = Nt(se, S), { hasIcon: De } = Nt(le), { focused: Oe } = Pt(p, s), ke = C(() => Oe.value && !o.disabled && !o.readonly);
1014
+ g(ke, (e) => {
1015
+ let t = N.value;
1016
+ if (e || (t = Te() ?? t), e && f.value.selectOnFocus && p.value && p.value.select(), e && L.value?.size) {
1017
+ ne.value?.show();
1018
+ return;
1019
+ }
1020
+ if (L.value && !Q(t)) {
1021
+ let e = o.maxSuggestions;
1022
+ L.value.size >= e && !L.value.has(t) && (L.value = new Set([...L.value].slice(L.value.size - e + 1))), L.value.add(t);
1023
+ }
1024
+ });
1025
+ let Ae = we(p);
1026
+ g(Ae, (e) => {
1027
+ e && o.autofocus && (Oe.value = !0);
1028
+ });
1029
+ let { formatted: je } = Ft(N, {
1030
+ mode: he?.value,
1031
+ upperLimit: Number(xe?.value),
1032
+ lowerLimit: Number(be?.value)
1033
+ }), Me = C(() => !o.disabled && !o.readonly), Ne = C(() => Me.value ? o.tabindex : -1), Pe = C(() => !Q(pe)), F = C(() => {
1034
+ if (o.invalid === !0) return !0;
1035
+ if (o.valid === !0) return !1;
1036
+ }), I = C(() => o.storageKey ?? (d?.experimentalFeatures.forceInputSuggestions ? o.name : void 0)), L = It(I, Se, /* @__PURE__ */ new Set()), R = C(() => L.value ? [...L.value].filter((e) => Q(N.value) || `${e}`.toLowerCase().includes(`${N.value}`.toLowerCase()) && e !== N.value).reverse() : []), z = C(() => I?.value && L.value && L.value.size > 0);
1037
+ function B(e) {
1038
+ N.value = e, ne.value?.hide(), s("suggestion:selected", e);
1039
+ }
1040
+ function V(e) {
1041
+ L.value?.delete(e), s("suggestion:removed", e);
1042
+ }
1043
+ let { HintSlot: H, hasHintLabelOrSlot: U, hasInvalidLabelOrSlot: W, hintSlotScope: G } = ft(f, u), Fe = $("vv-textarea", ve, C(() => ({
1044
+ valid: O.value,
1045
+ invalid: A.value,
1046
+ loading: _e.value,
1047
+ disabled: o.disabled,
1048
+ readonly: o.readonly,
1049
+ required: o.required,
1050
+ "icon-before": P.value !== void 0,
1051
+ "icon-after": Ee.value !== void 0,
1052
+ floating: o.floating && !Q(o.label),
1053
+ dirty: Pe.value,
1054
+ focus: Oe.value,
1055
+ resizable: o.resizable
1056
+ }))), Ie = C(() => ({
1057
+ name: o.name,
1058
+ placeholder: M.value,
1059
+ tabindex: Ne.value,
1060
+ disabled: o.disabled,
1061
+ readonly: o.readonly,
1062
+ required: o.required,
1063
+ autocomplete: o.autocomplete,
1064
+ minlength: o.minlength,
1065
+ maxlength: o.maxlength,
1066
+ cols: o.cols,
1067
+ rows: o.rows,
1068
+ wrap: o.wrap,
1069
+ spellcheck: o.spellcheck,
1070
+ "aria-invalid": F.value,
1071
+ "aria-describedby": U.value ? j.value : void 0,
1072
+ "aria-errormessage": W.value ? j.value : void 0
1073
+ })), K = C(() => ({
1074
+ valid: o.valid,
1075
+ invalid: o.invalid,
1076
+ modelValue: o.modelValue,
1077
+ hintLabel: o.hintLabel,
1078
+ maxlength: o.maxlength,
1079
+ minlength: o.minlength,
1080
+ clear: q
1081
+ }));
1082
+ function q() {
1083
+ N.value = void 0;
1084
+ }
1085
+ return (t, r) => (c(), E("div", { class: ee(v(Fe)) }, [
1086
+ v(fe) ? (c(), E("label", {
1087
+ key: 0,
1088
+ for: v(Ce),
1089
+ class: "vv-textarea__label"
1090
+ }, h(v(fe)), 9, Lt)) : _("v-if", !0),
1091
+ x("div", {
1092
+ ref_key: "wrapperEl",
1093
+ ref: te,
1094
+ class: "vv-textarea__wrapper"
1095
+ }, [
1096
+ t.$slots.before ? (c(), E("div", Rt, [n(t.$slots, "before", i(m(v(K))))])) : _("v-if", !0),
1097
+ x("div", zt, [
1098
+ v(P) ? (c(), b(kt, l({ key: 0 }, v(P), { class: "vv-textarea__icon" }), null, 16)) : _("v-if", !0),
1099
+ oe(x("textarea", l({
1100
+ id: v(Ce),
1101
+ ref_key: "textareaEl",
1102
+ ref: p,
1103
+ "onUpdate:modelValue": r[0] ||= (e) => y(N) ? N.value = e : null
1104
+ }, v(Ie), { onKeyup: r[1] ||= (e) => s("keyup", e) }), null, 16, Bt), [[T, v(N)]]),
1105
+ v(Ee) ? (c(), b(kt, l({ key: 1 }, v(Ee), { class: "vv-textarea__icon vv-textarea__icon-after" }), null, 16)) : _("v-if", !0)
1106
+ ]),
1107
+ t.$slots.after ? (c(), E("div", Vt, [n(t.$slots, "after", i(m(v(K))))])) : _("v-if", !0),
1108
+ v(he) ? (c(), E("span", Ht, [n(t.$slots, "count", i(m(v(K))), () => [re(h(v(je)), 1)])])) : _("v-if", !0)
1109
+ ], 512),
1110
+ me(v(H), {
1111
+ id: v(j),
1112
+ class: "vv-textarea__hint"
1113
+ }, ge({ _: 2 }, [
1114
+ t.$slots.hint ? {
1115
+ name: "hint",
1116
+ fn: e(() => [n(t.$slots, "hint", i(m(v(G))))]),
1117
+ key: "0"
1118
+ } : void 0,
1119
+ t.$slots.loading ? {
1120
+ name: "loading",
1121
+ fn: e(() => [n(t.$slots, "loading", i(m(v(G))))]),
1122
+ key: "1"
1123
+ } : void 0,
1124
+ t.$slots.valid ? {
1125
+ name: "valid",
1126
+ fn: e(() => [n(t.$slots, "valid", i(m(v(G))))]),
1127
+ key: "2"
1128
+ } : void 0,
1129
+ t.$slots.invalid ? {
1130
+ name: "invalid",
1131
+ fn: e(() => [n(t.$slots, "invalid", i(m(v(G))))]),
1132
+ key: "3"
1133
+ } : void 0
1134
+ ]), 1032, ["id"]),
1135
+ v(z) ? (c(), b(Ct, {
1136
+ key: 1,
1137
+ ref_key: "suggestionsDropdownEl",
1138
+ ref: ne,
1139
+ reference: v(te),
1140
+ "autofocus-first": !1,
1141
+ "trigger-width": !0,
1142
+ "top-layer": v(f).topLayer
1143
+ }, {
1144
+ items: e(() => [(c(!0), E(ae, null, k(v(R), (r) => (c(), b(Dt, {
1145
+ key: r,
1146
+ onClick: de((e) => B(r), ["stop"])
1147
+ }, {
1148
+ default: e(() => [x("div", Ut, [n(t.$slots, "suggestion", l({ ref_for: !0 }, { value: r }), () => [re(h(r), 1)])]), v(L) && v(De) ? (c(), E("button", {
1149
+ key: 0,
1150
+ type: "button",
1151
+ tabindex: "-1",
1152
+ class: "cursor-pointer",
1153
+ title: v(ue),
1154
+ onClick: de((e) => V(r), ["stop"])
1155
+ }, [me(kt, l({ ref_for: !0 }, v(De)), null, 16)], 8, Wt)) : _("v-if", !0)]),
1156
+ _: 2
1157
+ }, 1032, ["onClick"]))), 128))]),
1158
+ _: 3
1159
+ }, 8, ["reference", "top-layer"])) : _("v-if", !0)
1160
+ ], 2));
1161
+ }
1162
+ });
1163
+ //#endregion
1164
+ export { Gt as default };
1165
+
1166
+ //# sourceMappingURL=VvTextarea.es-DbaPIcWl.js.map