@8wave/ai-elements 0.124.0-beta.7 → 0.124.0-beta.9

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 (87) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-Dk748hZ0.js → PkChatbotFilePreview-DuvRnOes.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-Dk748hZ0.js.map → PkChatbotFilePreview-DuvRnOes.js.map} +1 -1
  3. package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js → PkEditorRadioButtons-Cif9q08d.js} +2 -2
  4. package/dist/_chunks/{PkEditorRadioButtons-DWNs2pp4.js.map → PkEditorRadioButtons-Cif9q08d.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreview-CC2W-RXG.js → PkFilePreview-D_piCsAW.js} +203 -203
  6. package/dist/_chunks/{PkFilePreview-CC2W-RXG.js.map → PkFilePreview-D_piCsAW.js.map} +1 -1
  7. package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js → PkFilePreviewDialog-Bq0ipzrJ.js} +3 -3
  8. package/dist/_chunks/{PkFilePreviewDialog-DYU2CUZS.js.map → PkFilePreviewDialog-Bq0ipzrJ.js.map} +1 -1
  9. package/dist/_chunks/{PkHeldImage-BUHSVQzX.js → PkHeldImage-EMuOT-Iv.js} +2 -2
  10. package/dist/_chunks/{PkHeldImage-BUHSVQzX.js.map → PkHeldImage-EMuOT-Iv.js.map} +1 -1
  11. package/dist/_chunks/{PkLazyImg-B7PfEr4P.js → PkLazyImg-CLCyyzuo.js} +2 -2
  12. package/dist/_chunks/{PkLazyImg-B7PfEr4P.js.map → PkLazyImg-CLCyyzuo.js.map} +1 -1
  13. package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js → PkStreamingMarkdown-CHwrLP75.js} +3 -3
  14. package/dist/_chunks/{PkStreamingMarkdown-CeWyL_2B.js.map → PkStreamingMarkdown-CHwrLP75.js.map} +1 -1
  15. package/dist/_chunks/{PkToolChatFile-BMj7-urz.js → PkToolChatFile-DO4zjMJr.js} +4 -4
  16. package/dist/_chunks/{PkToolChatFile-BMj7-urz.js.map → PkToolChatFile-DO4zjMJr.js.map} +1 -1
  17. package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js → PkToolRequestGeolocation-C9PSITRU.js} +2 -2
  18. package/dist/_chunks/{PkToolRequestGeolocation-D98zUqNQ.js.map → PkToolRequestGeolocation-C9PSITRU.js.map} +1 -1
  19. package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js → PkToolRequestOAuthConnection-CWi5SeCi.js} +3 -3
  20. package/dist/_chunks/{PkToolRequestOAuthConnection-DwcRnUcd.js.map → PkToolRequestOAuthConnection-CWi5SeCi.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js → PkToolShareDocument-Buzu27rQ.js} +6 -6
  22. package/dist/_chunks/{PkToolShareDocument-1zhZDa0R.js.map → PkToolShareDocument-Buzu27rQ.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js → PkToolShowArtifact-B2-3-k2F.js} +4 -4
  24. package/dist/_chunks/{PkToolShowArtifact-BoJC-NtV.js.map → PkToolShowArtifact-B2-3-k2F.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js → PkToolShowCalendarEvent-mVY2FS24.js} +4 -4
  26. package/dist/_chunks/{PkToolShowCalendarEvent-Dvp1SwBY.js.map → PkToolShowCalendarEvent-mVY2FS24.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js → PkToolShowComparison-7NCImocZ.js} +4 -4
  28. package/dist/_chunks/{PkToolShowComparison-BPfyn08U.js.map → PkToolShowComparison-7NCImocZ.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js → PkToolShowContactForm-DbOZHB_G.js} +5 -5
  30. package/dist/_chunks/{PkToolShowContactForm-CErVBzjl.js.map → PkToolShowContactForm-DbOZHB_G.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js → PkToolShowDiagram-BHd-C_cx.js} +4 -4
  32. package/dist/_chunks/{PkToolShowDiagram-C1Q5jhbk.js.map → PkToolShowDiagram-BHd-C_cx.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js → PkToolShowEmail-B9F7dnif.js} +4 -4
  34. package/dist/_chunks/{PkToolShowEmail-Ckxmf4jc.js.map → PkToolShowEmail-B9F7dnif.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js → PkToolShowForm-o2LuWDNq.js} +6 -6
  36. package/dist/_chunks/{PkToolShowForm-B7Q79XAb.js.map → PkToolShowForm-o2LuWDNq.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js → PkToolShowImageGallery-DAcW2Dau.js} +3 -3
  38. package/dist/_chunks/{PkToolShowImageGallery-CxeQcE6A.js.map → PkToolShowImageGallery-DAcW2Dau.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js → PkToolShowLocation-CLS9HQIJ.js} +4 -4
  40. package/dist/_chunks/{PkToolShowLocation-Drq1nnwN.js.map → PkToolShowLocation-CLS9HQIJ.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js → PkToolShowMessage-BoKDMyvU.js} +4 -4
  42. package/dist/_chunks/{PkToolShowMessage-h2LUBvO4.js.map → PkToolShowMessage-BoKDMyvU.js.map} +1 -1
  43. package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js → PkToolShowProductList-OYwQCHar.js} +4 -4
  44. package/dist/_chunks/{PkToolShowProductList-DDqYsHNq.js.map → PkToolShowProductList-OYwQCHar.js.map} +1 -1
  45. package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js → PkToolShowQrCode-e6DxEcWY.js} +4 -4
  46. package/dist/_chunks/{PkToolShowQrCode-C8GfpW7f.js.map → PkToolShowQrCode-e6DxEcWY.js.map} +1 -1
  47. package/dist/_chunks/{PkToolShowSources-CTc2s510.js → PkToolShowSources-CUNneZCp.js} +4 -4
  48. package/dist/_chunks/{PkToolShowSources-CTc2s510.js.map → PkToolShowSources-CUNneZCp.js.map} +1 -1
  49. package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js → PkToolShowSuggestedReply-BTE7TZ4Z.js} +2 -2
  50. package/dist/_chunks/{PkToolShowSuggestedReply-vui8vph1.js.map → PkToolShowSuggestedReply-BTE7TZ4Z.js.map} +1 -1
  51. package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js → PkToolShowVideo-bTWeXtZd.js} +3 -3
  52. package/dist/_chunks/{PkToolShowVideo-C2kh6pVN.js.map → PkToolShowVideo-bTWeXtZd.js.map} +1 -1
  53. package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js → PkToolShowWeather-Nr7POGAS.js} +2 -2
  54. package/dist/_chunks/{PkToolShowWeather-7_f5k1pX.js.map → PkToolShowWeather-Nr7POGAS.js.map} +1 -1
  55. package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js → PkToolShowWebPages-DNbdkSSz.js} +4 -4
  56. package/dist/_chunks/{PkToolShowWebPages-By7zBIVa.js.map → PkToolShowWebPages-DNbdkSSz.js.map} +1 -1
  57. package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js → VvButtonLocalized-KEhD3ono.js} +2 -2
  58. package/dist/_chunks/{VvButtonLocalized-DCJiCUYU.js.map → VvButtonLocalized-KEhD3ono.js.map} +1 -1
  59. package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js → VvCheckboxGroup.es-D67JvxVf.js} +2 -2
  60. package/dist/_chunks/{VvCheckboxGroup.es-tzyEhJUc.js.map → VvCheckboxGroup.es-D67JvxVf.js.map} +1 -1
  61. package/dist/_chunks/{VvCombobox.es-D8QFCY85.js → VvCombobox.es-Bb9Dbtdg.js} +457 -457
  62. package/dist/_chunks/{VvCombobox.es-D8QFCY85.js.map → VvCombobox.es-Bb9Dbtdg.js.map} +1 -1
  63. package/dist/_chunks/{VvInputText.es-CaN-GUXU.js → VvInputText.es-CWgEXnVy.js} +396 -396
  64. package/dist/_chunks/{VvInputText.es-CaN-GUXU.js.map → VvInputText.es-CWgEXnVy.js.map} +1 -1
  65. package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js → VvRadioGroup.es-B3UbDh0z.js} +2 -2
  66. package/dist/_chunks/{VvRadioGroup.es-D73Elvh0.js.map → VvRadioGroup.es-B3UbDh0z.js.map} +1 -1
  67. package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js → VvSelect.es-BZkBK0gK.js} +170 -170
  68. package/dist/_chunks/{VvSelect.es-8ZE8Zjm9.js.map → VvSelect.es-BZkBK0gK.js.map} +1 -1
  69. package/dist/_chunks/{VvTextarea.es-BNgA61wM.js → VvTextarea.es-C8vAvoJh.js} +139 -139
  70. package/dist/_chunks/{VvTextarea.es-BNgA61wM.js.map → VvTextarea.es-C8vAvoJh.js.map} +1 -1
  71. package/dist/_chunks/{dist-m75acBC9.js → dist-B3-I_01H.js} +67 -15
  72. package/dist/_chunks/dist-B3-I_01H.js.map +1 -0
  73. package/dist/_chunks/{index.es-fkUmGg9G.js → index.es-C7ON2BA3.js} +38 -38
  74. package/dist/_chunks/{index.es-fkUmGg9G.js.map → index.es-C7ON2BA3.js.map} +1 -1
  75. package/dist/_chunks/{index.es-DRbDRAW5.js → index.es-CYAq7LJb.js} +10 -10
  76. package/dist/_chunks/{index.es-DRbDRAW5.js.map → index.es-CYAq7LJb.js.map} +1 -1
  77. package/dist/_chunks/{utils-DAQfsk2H.js → utils-BHvRrCzW.js} +6 -2
  78. package/dist/_chunks/utils-BHvRrCzW.js.map +1 -0
  79. package/dist/ai-elements.es.js +2747 -2727
  80. package/dist/ai-elements.es.js.map +1 -1
  81. package/dist-vue/_chunks/utils-BuxgMuKv.js.map +1 -1
  82. package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +9 -0
  83. package/dist-vue/packages/components/src/chat/PkPageControlBar.d.ts +6 -0
  84. package/dist-vue/packages/components/src/chat/utils.d.ts +8 -0
  85. package/package.json +1 -1
  86. package/dist/_chunks/dist-m75acBC9.js.map +0 -1
  87. package/dist/_chunks/utils-DAQfsk2H.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { A as e, D as t, Dt as n, E as r, Et as i, H as a, M as o, P as s, Q as c, S as l, Tt as u, V as d, Y as ee, _ as f, b as te, f as p, g as m, gt as ne, h, k as re, kt as g, nt as ie, ot as _, q as v, r as ae, s as oe, tt as y, ut as se, v as b, w as x, wt as S, xt as C, y as w, z as T } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
2
2
  import { a as E, i as D, t as O } from "./iconify-oSMMdRMF.js";
3
- import { l as ce, u as le } from "./dist-m75acBC9.js";
4
- import { t as k } from "./dot-prop-Dmp6Zjqs.js";
3
+ import { d as k, u as ce } from "./dist-B3-I_01H.js";
4
+ import { t as A } from "./dot-prop-Dmp6Zjqs.js";
5
5
  // ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.25_@json-render+core@0.19.0_zod@4.6.7__@volverjs+style@0.1.32_@vue_6457cdc65e61a009108dae6427ee3925/node_modules/@volverjs/ui-vue/dist/components/VvSelect/VvSelect.es.js
6
6
  re(), _(), u(), ae();
7
- var ue = {
7
+ var le = {
8
8
  showPassword: "eye-on",
9
9
  hidePassword: "eye-off",
10
10
  showDatePicker: "calendar",
@@ -15,17 +15,17 @@ var ue = {
15
15
  remove: "trash",
16
16
  edit: "edit",
17
17
  download: "download"
18
- }, A = { prefix: "normal" }, de = /* @__PURE__ */ (function(e) {
18
+ }, j = { prefix: "normal" }, ue = /* @__PURE__ */ (function(e) {
19
19
  return e.local = "local", e.session = "session", e;
20
- })({}), j = /* @__PURE__ */ (function(e) {
21
- return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
22
20
  })({}), M = /* @__PURE__ */ (function(e) {
21
+ return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
22
+ })({}), N = /* @__PURE__ */ (function(e) {
23
23
  return e.before = "before", e.after = "after", e;
24
- })({}), fe = /* @__PURE__ */ (function(e) {
24
+ })({}), de = /* @__PURE__ */ (function(e) {
25
25
  return e.button = "button", e.submit = "submit", e.reset = "reset", e;
26
- })({}), pe = /* @__PURE__ */ (function(e) {
26
+ })({}), fe = /* @__PURE__ */ (function(e) {
27
27
  return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
28
- })({}), me = /* @__PURE__ */ Symbol.for("volver"), he = {
28
+ })({}), pe = /* @__PURE__ */ Symbol.for("volver"), me = {
29
29
  to: { type: [String, Object] },
30
30
  href: String,
31
31
  target: String,
@@ -33,7 +33,7 @@ var ue = {
33
33
  type: String,
34
34
  default: "noopener noreferrer"
35
35
  }
36
- }, N = {
36
+ }, P = {
37
37
  valid: {
38
38
  type: Boolean,
39
39
  default: !1
@@ -42,7 +42,7 @@ var ue = {
42
42
  type: [String, Array],
43
43
  default: void 0
44
44
  }
45
- }, P = {
45
+ }, F = {
46
46
  invalid: {
47
47
  type: Boolean,
48
48
  default: !1
@@ -51,7 +51,7 @@ var ue = {
51
51
  type: [String, Array],
52
52
  default: void 0
53
53
  }
54
- }, F = {
54
+ }, I = {
55
55
  loading: {
56
56
  type: Boolean,
57
57
  default: !1
@@ -60,38 +60,38 @@ var ue = {
60
60
  type: String,
61
61
  default: "Loading..."
62
62
  }
63
- }, I = { disabled: {
63
+ }, L = { disabled: {
64
64
  type: Boolean,
65
65
  default: !1
66
- } }, L = { required: {
66
+ } }, R = { required: {
67
67
  type: Boolean,
68
68
  default: !1
69
- } }, R = { active: {
69
+ } }, z = { active: {
70
70
  type: Boolean,
71
71
  default: !1
72
- } }, z = { current: {
72
+ } }, B = { current: {
73
73
  type: Boolean,
74
74
  default: !1
75
- } }, B = {
75
+ } }, V = {
76
76
  showClearAction: {
77
77
  type: Boolean,
78
78
  default: !1
79
79
  },
80
80
  iconClear: {
81
81
  type: [String, Object],
82
- default: ue.clear
82
+ default: le.clear
83
83
  },
84
84
  labelClear: {
85
85
  type: String,
86
86
  default: "Clear"
87
87
  }
88
- }, ge = { pressed: {
88
+ }, he = { pressed: {
89
89
  type: Boolean,
90
90
  default: !1
91
- } }, V = { label: {
91
+ } }, H = { label: {
92
92
  type: [String, Number],
93
93
  default: void 0
94
- } }, H = {
94
+ } }, U = {
95
95
  ariaLabel: {
96
96
  type: String,
97
97
  default: void 0
@@ -104,16 +104,16 @@ var ue = {
104
104
  type: String,
105
105
  default: void 0
106
106
  }
107
- }, U = { readonly: {
107
+ }, W = { readonly: {
108
108
  type: Boolean,
109
109
  default: !1
110
- } }, W = { modifiers: {
110
+ } }, G = { modifiers: {
111
111
  type: [String, Array],
112
112
  default: void 0
113
- } }, G = { hintLabel: {
113
+ } }, K = { hintLabel: {
114
114
  type: String,
115
115
  default: ""
116
- } }, K = {
116
+ } }, q = {
117
117
  options: {
118
118
  type: Array,
119
119
  default: () => []
@@ -130,7 +130,7 @@ var ue = {
130
130
  type: [String, Function],
131
131
  default: "disabled"
132
132
  }
133
- }, q = { count: {
133
+ }, J = { count: {
134
134
  type: [Boolean, String],
135
135
  default: !1,
136
136
  validator: (e) => [
@@ -139,111 +139,111 @@ var ue = {
139
139
  "limit",
140
140
  "countdown"
141
141
  ].includes(e)
142
- } }, _e = { debounce: {
142
+ } }, ge = { debounce: {
143
143
  type: [Number, String],
144
144
  default: void 0
145
- } }, J = {
145
+ } }, Y = {
146
146
  icon: {
147
147
  type: [String, Object],
148
148
  default: void 0
149
149
  },
150
150
  iconPosition: {
151
151
  type: String,
152
- default: M.before,
153
- validator: (e) => Object.values(M).includes(e)
152
+ default: N.before,
153
+ validator: (e) => Object.values(N).includes(e)
154
154
  }
155
- }, Y = { tabindex: {
155
+ }, X = { tabindex: {
156
156
  type: [String, Number],
157
157
  default: 0
158
- } }, X = { floating: {
158
+ } }, Z = { floating: {
159
159
  type: Boolean,
160
160
  default: !1
161
- } }, ve = { unselectable: {
161
+ } }, _e = { unselectable: {
162
162
  type: Boolean,
163
163
  default: !0
164
- } }, ye = { id: [String, Number] };
165
- j.bottom;
166
- var Z = {
167
- ...ye,
164
+ } }, ve = { id: [String, Number] };
165
+ M.bottom;
166
+ var Q = {
167
+ ...ve,
168
168
  name: {
169
169
  type: String,
170
170
  required: !0
171
171
  }
172
- }, be = { autofocus: {
172
+ }, ye = { autofocus: {
173
173
  type: Boolean,
174
174
  default: !1
175
- } }, xe = { autocomplete: {
175
+ } }, be = { autocomplete: {
176
176
  type: String,
177
177
  default: "off"
178
178
  } };
179
179
  ({
180
- ...Z,
180
+ ...Q,
181
+ ...ye,
181
182
  ...be,
182
- ...xe,
183
- ...Y,
184
- ...I,
185
- ...U,
186
- ...N,
183
+ ...X,
184
+ ...L,
185
+ ...W,
187
186
  ...P,
188
- ...G,
189
187
  ...F,
190
- ...W,
191
- ...q,
192
- ..._e,
188
+ ...K,
189
+ ...I,
190
+ ...G,
193
191
  ...J,
194
- ...X,
195
- ...V,
196
- ...H
197
- }), { ...L }, {
198
- ...Z,
192
+ ...ge,
199
193
  ...Y,
200
- ...N,
194
+ ...Z,
195
+ ...H,
196
+ ...U
197
+ }), { ...R }, {
198
+ ...Q,
199
+ ...X,
201
200
  ...P,
202
- ...G,
203
- ...I,
204
- ...U,
201
+ ...F,
202
+ ...K,
203
+ ...L,
205
204
  ...W,
206
- ...V,
205
+ ...G,
207
206
  ...H,
208
- ...F
207
+ ...U,
208
+ ...I
209
209
  }, {
210
- ...N,
211
210
  ...P,
211
+ ...F,
212
+ ...q,
212
213
  ...K,
214
+ ...L,
215
+ ...W,
213
216
  ...G,
217
+ ...H,
214
218
  ...I,
215
- ...U,
216
- ...W,
217
- ...V,
218
- ...F,
219
- ...L
219
+ ...R
220
220
  }, {
221
- ...I,
222
- ...V,
223
- ...ge,
224
- ...R,
221
+ ...L,
222
+ ...H,
223
+ ...he,
225
224
  ...z,
226
- ...he
227
- }, fe.button, pe.button, de.local;
228
- var Se = {
229
- ...Z,
225
+ ...B,
226
+ ...me
227
+ }, de.button, fe.button, ue.local;
228
+ var xe = {
229
+ ...Q,
230
+ ...ye,
230
231
  ...be,
231
- ...xe,
232
- ...Y,
233
- ...N,
232
+ ...X,
234
233
  ...P,
235
- ...G,
236
234
  ...F,
235
+ ...K,
237
236
  ...I,
238
- ...U,
237
+ ...L,
239
238
  ...W,
240
- ...K,
241
- ...J,
242
- ...X,
243
- ...ve,
244
- ...V,
239
+ ...G,
240
+ ...q,
241
+ ...Y,
242
+ ...Z,
243
+ ..._e,
245
244
  ...H,
246
- ...B,
245
+ ...U,
246
+ ...V,
247
247
  multiple: Boolean,
248
248
  required: Boolean,
249
249
  size: [String, Number],
@@ -263,24 +263,24 @@ var Se = {
263
263
  },
264
264
  placeholder: String
265
265
  };
266
- function Ce() {
266
+ function Se() {
267
267
  return {
268
- ...Se,
268
+ ...xe,
269
269
  options: {
270
- ...Se.options,
270
+ ...xe.options,
271
271
  type: Array,
272
272
  default: () => []
273
273
  }
274
274
  };
275
275
  }
276
- function we(e) {
276
+ function Ce(e) {
277
277
  return typeof e == "string";
278
278
  }
279
- function Te(e) {
280
- return Array.isArray(e) ? e.filter((e) => we(e)).join(" ") : e;
279
+ function we(e) {
280
+ return Array.isArray(e) ? e.filter((e) => Ce(e)).join(" ") : e;
281
281
  }
282
- function Ee(e, n) {
283
- let r = h(() => se(e) ? e.value : e), i = h(() => Te(r.value.invalidLabel)), a = h(() => Te(r.value.validLabel)), o = h(() => r.value.loadingLabel), s = h(() => r.value.hintLabel), c = h(() => !!(r.value.loading && (n.loading || o.value))), l = h(() => !c.value && !!(r.value.invalid && (n.invalid || i.value))), u = h(() => !c.value && !l.value && !!(r.value.valid && (n.valid || a.value))), d = h(() => !c.value && !l.value && !u.value && !!(n.hint || s.value)), ee = h(() => l.value || u.value || c.value || d.value);
282
+ function Te(e, n) {
283
+ let r = h(() => se(e) ? e.value : e), i = h(() => we(r.value.invalidLabel)), a = h(() => we(r.value.validLabel)), o = h(() => r.value.loadingLabel), s = h(() => r.value.hintLabel), c = h(() => !!(r.value.loading && (n.loading || o.value))), l = h(() => !c.value && !!(r.value.invalid && (n.invalid || i.value))), u = h(() => !c.value && !l.value && !!(r.value.valid && (n.valid || a.value))), d = h(() => !c.value && !l.value && !u.value && !!(n.hint || s.value)), ee = h(() => l.value || u.value || c.value || d.value);
284
284
  return {
285
285
  hasInvalidLabelOrSlot: l,
286
286
  hasHintLabelOrSlot: d,
@@ -321,10 +321,10 @@ function Ee(e, n) {
321
321
  })
322
322
  };
323
323
  }
324
- function De() {
325
- return e(me, void 0);
324
+ function Ee() {
325
+ return e(pe, void 0);
326
326
  }
327
- function Oe(e, t, n) {
327
+ function De(e, t, n) {
328
328
  return h(() => {
329
329
  let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
330
330
  return i && Array.isArray(i) && i.forEach((t) => {
@@ -334,7 +334,7 @@ function Oe(e, t, n) {
334
334
  }), r;
335
335
  });
336
336
  }
337
- var Q = /* @__PURE__ */ x({
337
+ var $ = /* @__PURE__ */ x({
338
338
  name: "VvIcon",
339
339
  props: /* @__PURE__ */ o({
340
340
  name: {},
@@ -353,9 +353,9 @@ var Q = /* @__PURE__ */ x({
353
353
  onLoad: { type: Function },
354
354
  svg: {},
355
355
  modifiers: {}
356
- }, A),
356
+ }, j),
357
357
  setup(e) {
358
- let t = e, n = h(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = ne(!0), i = De(), { modifiers: a } = C(t), o = Oe("vv-icon", a), c = h(() => t.provider || i?.iconsProvider), l = h(() => {
358
+ let t = e, n = h(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = ne(!0), i = Ee(), { modifiers: a } = C(t), o = De("vv-icon", a), c = h(() => t.provider || i?.iconsProvider), l = h(() => {
359
359
  let e = t.name ?? "", n = `@${c.value}:${t.prefix}:${e}`;
360
360
  if (E(n)) return n;
361
361
  let r = i?.iconsCollections.find((t) => {
@@ -395,20 +395,20 @@ var Q = /* @__PURE__ */ x({
395
395
  }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : b("v-if", !0);
396
396
  }
397
397
  });
398
- function $(e, t) {
399
- let n = h(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = h(() => t?.value === M.before ? n.value : void 0), i = h(() => t?.value === M.after ? n.value : void 0);
398
+ function Oe(e, t) {
399
+ let n = h(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = h(() => t?.value === N.before ? n.value : void 0), i = h(() => t?.value === N.after ? n.value : void 0);
400
400
  return {
401
401
  hasIcon: n,
402
- hasIconLeft: h(() => t?.value === j.left ? n.value : void 0),
403
- hasIconRight: h(() => t?.value === j.right ? n.value : void 0),
404
- hasIconTop: h(() => t?.value === j.top ? n.value : void 0),
405
- hasIconBottom: h(() => t?.value === j.bottom ? n.value : void 0),
402
+ hasIconLeft: h(() => t?.value === M.left ? n.value : void 0),
403
+ hasIconRight: h(() => t?.value === M.right ? n.value : void 0),
404
+ hasIconTop: h(() => t?.value === M.top ? n.value : void 0),
405
+ hasIconBottom: h(() => t?.value === M.bottom ? n.value : void 0),
406
406
  hasIconBefore: r,
407
407
  hasIconAfter: i
408
408
  };
409
409
  }
410
410
  var ke = x({
411
- components: { VvIcon: Q },
411
+ components: { VvIcon: $ },
412
412
  props: {
413
413
  inputType: {
414
414
  type: String,
@@ -429,7 +429,7 @@ var ke = x({
429
429
  },
430
430
  emits: ["clear"],
431
431
  setup(e, { emit: t }) {
432
- let { hasIcon: n } = $(h(() => e.icon));
432
+ let { hasIcon: n } = Oe(h(() => e.icon));
433
433
  function r(n) {
434
434
  n?.stopPropagation(), e.disabled || t("clear");
435
435
  }
@@ -439,7 +439,7 @@ var ke = x({
439
439
  };
440
440
  },
441
441
  render() {
442
- let e = this.hasIcon ? t(Q, {
442
+ let e = this.hasIcon ? t($, {
443
443
  ...this.hasIcon,
444
444
  class: `vv-${this.inputType}__icon`
445
445
  }) : void 0;
@@ -465,7 +465,7 @@ function Ae(e, t, n) {
465
465
  return r;
466
466
  }
467
467
  function je(e, t, n) {
468
- let r = De(), i = h(() => {
468
+ let r = Ee(), i = h(() => {
469
469
  if (r?.defaults.value?.[e]) return r.defaults.value[e];
470
470
  });
471
471
  return h(() => {
@@ -478,7 +478,7 @@ function je(e, t, n) {
478
478
  });
479
479
  }
480
480
  function Me(e, t) {
481
- let { focused: n } = le(e);
481
+ let { focused: n } = k(e);
482
482
  return c(n, (n) => {
483
483
  t(n ? "focus" : "blur", S(e));
484
484
  }), { focused: n };
@@ -491,9 +491,9 @@ function Pe(e) {
491
491
  let { options: t, labelKey: n, valueKey: r, disabledKey: i } = C(e);
492
492
  return {
493
493
  options: t,
494
- getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? k(e, n.value) : e),
495
- getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? k(e, r.value) : e,
496
- isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!k(e, i.value) : !1,
494
+ getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? A(e, n.value) : e),
495
+ getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? A(e, r.value) : e,
496
+ isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!A(e, i.value) : !1,
497
497
  getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
498
498
  };
499
499
  }
@@ -505,7 +505,7 @@ var Fe = ["for"], Ie = { class: "vv-select__wrapper" }, Le = {
505
505
  class: "vv-select__input-after"
506
506
  }, Ge = /* @__PURE__ */ x({
507
507
  name: "VvSelect",
508
- props: Ce(),
508
+ props: Se(),
509
509
  emits: [
510
510
  "update:modelValue",
511
511
  "focus",
@@ -513,111 +513,111 @@ var Fe = ["for"], Ie = { class: "vv-select__wrapper" }, Le = {
513
513
  "clear"
514
514
  ],
515
515
  setup(e, { emit: t }) {
516
- let o = e, u = t, re = ee(), _ = je("VvSelect", Ce(), o), v = ne(), { HintSlot: ae, hasHintLabelOrSlot: x, hasInvalidLabelOrSlot: E, hintSlotScope: D } = Ee(_, re), { focused: O } = Me(v, u);
517
- function le(e) {
516
+ let o = e, u = t, re = ee(), _ = je("VvSelect", Se(), o), v = ne(), { HintSlot: ae, hasHintLabelOrSlot: x, hasInvalidLabelOrSlot: E, hintSlotScope: D } = Te(_, re), { focused: O } = Me(v, u);
517
+ function k(e) {
518
518
  return typeof e != "string" && e.options?.length;
519
519
  }
520
- let { id: k, modifiers: ue, disabled: A, readonly: de, loading: j, icon: M, iconPosition: fe, invalid: pe, valid: me, floating: he, multiple: N } = C(o), P = Ne(k), F = h(() => `${P.value}-hint`), I = h(() => o.disabled || o.readonly), L = h(() => I.value ? -1 : o.tabindex), R = h({
520
+ let { id: A, modifiers: le, disabled: j, readonly: ue, loading: M, icon: N, iconPosition: de, invalid: fe, valid: pe, floating: me, multiple: P } = C(o), F = Ne(A), I = h(() => `${F.value}-hint`), L = h(() => o.disabled || o.readonly), R = h(() => L.value ? -1 : o.tabindex), z = h({
521
521
  get: () => o.modelValue,
522
522
  set: (e) => {
523
523
  Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !o.unselectable && v.value) ? v.value.value = String(o.modelValue) : u("update:modelValue", e);
524
524
  }
525
- }), z = h(() => Array.isArray(R.value) ? R.value.length > 0 : R.value !== void 0 && R.value !== null), B = h(() => !I.value && o.unselectable), ge = ce(v);
526
- c(ge, (e) => {
525
+ }), B = h(() => Array.isArray(z.value) ? z.value.length > 0 : z.value !== void 0 && z.value !== null), V = h(() => !L.value && o.unselectable), he = ce(v);
526
+ c(he, (e) => {
527
527
  e && o.autofocus && (O.value = !0);
528
528
  });
529
- let { hasIconBefore: V, hasIconAfter: H } = $(M, fe), U = h(() => {
529
+ let { hasIconBefore: H, hasIconAfter: U } = Oe(N, de), W = h(() => {
530
530
  if (o.invalid === !0) return !0;
531
531
  if (o.valid === !0) return !1;
532
- }), W = Oe("vv-select", ue, h(() => ({
533
- valid: me.value,
534
- invalid: pe.value,
535
- loading: j.value,
536
- disabled: A.value,
537
- readonly: de.value,
538
- "icon-before": V.value !== void 0,
539
- "icon-after": H.value !== void 0,
540
- dirty: z.value,
541
- focus: O.value && !I.value,
542
- floating: he.value,
543
- multiple: N.value
544
- }))), { getOptionLabel: G, getOptionValue: K, isOptionDisabled: q, getOptionGrouped: _e } = Pe(o);
532
+ }), G = De("vv-select", le, h(() => ({
533
+ valid: pe.value,
534
+ invalid: fe.value,
535
+ loading: M.value,
536
+ disabled: j.value,
537
+ readonly: ue.value,
538
+ "icon-before": H.value !== void 0,
539
+ "icon-after": U.value !== void 0,
540
+ dirty: B.value,
541
+ focus: O.value && !L.value,
542
+ floating: me.value,
543
+ multiple: P.value
544
+ }))), { getOptionLabel: K, getOptionValue: q, isOptionDisabled: J, getOptionGrouped: ge } = Pe(o);
545
545
  c(() => o.options, (e) => {
546
- if (e?.length && o.autoselectFirst && !z.value) {
547
- let t = K(e[0]);
548
- R.value = o.multiple ? [t] : t;
546
+ if (e?.length && o.autoselectFirst && !B.value) {
547
+ let t = q(e[0]);
548
+ z.value = o.multiple ? [t] : t;
549
549
  }
550
550
  }, { immediate: !0 });
551
- function J() {
552
- Array.isArray(R.value) ? R.value = [] : R.value = void 0, u("clear");
551
+ function Y() {
552
+ Array.isArray(z.value) ? z.value = [] : z.value = void 0, u("clear");
553
553
  }
554
- let Y = h(() => ({
554
+ let X = h(() => ({
555
555
  name: o.name,
556
- tabindex: L.value,
557
- disabled: I.value,
556
+ tabindex: R.value,
557
+ disabled: L.value,
558
558
  required: o.required,
559
559
  size: o.size,
560
560
  autocomplete: o.autocomplete,
561
561
  multiple: o.multiple,
562
562
  "aria-label": o.ariaLabel || void 0,
563
563
  "aria-labelledby": o.ariaLabelledby || void 0,
564
- "aria-invalid": U.value,
565
- "aria-describedby": [o.ariaDescribedby, x.value ? F.value : void 0].filter(Boolean).join(" ") || void 0,
566
- "aria-errormessage": E.value ? F.value : void 0
567
- })), X = h(() => ({
564
+ "aria-invalid": W.value,
565
+ "aria-describedby": [o.ariaDescribedby, x.value ? I.value : void 0].filter(Boolean).join(" ") || void 0,
566
+ "aria-errormessage": E.value ? I.value : void 0
567
+ })), Z = h(() => ({
568
568
  valid: o.valid,
569
569
  invalid: o.invalid,
570
570
  modelValue: o.modelValue
571
571
  }));
572
- return (e, t) => (T(), w("div", { class: i(S(W)) }, [
572
+ return (e, t) => (T(), w("div", { class: i(S(G)) }, [
573
573
  e.label ? (T(), w("label", {
574
574
  key: 0,
575
- for: S(P)
575
+ for: S(F)
576
576
  }, g(e.label), 9, Fe)) : b("v-if", !0),
577
577
  m("div", Ie, [
578
- e.$slots.before ? (T(), w("div", Le, [a(e.$slots, "before", n(r(S(X))))])) : b("v-if", !0),
578
+ e.$slots.before ? (T(), w("div", Le, [a(e.$slots, "before", n(r(S(Z))))])) : b("v-if", !0),
579
579
  m("div", Re, [
580
- S(V) ? (T(), f(Q, s({ key: 0 }, S(V), { class: "vv-select__icon" }), null, 16)) : b("v-if", !0),
580
+ S(H) ? (T(), f($, s({ key: 0 }, S(H), { class: "vv-select__icon" }), null, 16)) : b("v-if", !0),
581
581
  ie(m("select", s({
582
- id: S(P),
582
+ id: S(F),
583
583
  ref_key: "selectEl",
584
584
  ref: v
585
- }, S(Y), { "onUpdate:modelValue": t[0] ||= (e) => se(R) ? R.value = e : null }), [e.placeholder ? (T(), w("option", {
585
+ }, S(X), { "onUpdate:modelValue": t[0] ||= (e) => se(z) ? z.value = e : null }), [e.placeholder ? (T(), w("option", {
586
586
  key: 0,
587
587
  value: void 0,
588
- disabled: !S(B),
589
- hidden: !S(B)
590
- }, g(e.placeholder), 9, Be)) : b("v-if", !0), (T(!0), w(p, null, d(e.options, (e, t) => (T(), w(p, null, [le(e) ? (T(), w("optgroup", {
588
+ disabled: !S(V),
589
+ hidden: !S(V)
590
+ }, g(e.placeholder), 9, Be)) : b("v-if", !0), (T(!0), w(p, null, d(e.options, (e, t) => (T(), w(p, null, [k(e) ? (T(), w("optgroup", {
591
591
  key: `group-${t}`,
592
- disabled: S(q)(e),
593
- label: S(G)(e)
594
- }, [(T(!0), w(p, null, d(S(_e)(e), (e, n) => (T(), w("option", {
592
+ disabled: S(J)(e),
593
+ label: S(K)(e)
594
+ }, [(T(!0), w(p, null, d(S(ge)(e), (e, n) => (T(), w("option", {
595
595
  key: `group-${t}-item-${n}`,
596
- disabled: S(q)(e),
597
- value: S(K)(e)
598
- }, g(S(G)(e)), 9, Ue))), 128))], 8, He)) : (T(), w("option", {
596
+ disabled: S(J)(e),
597
+ value: S(q)(e)
598
+ }, g(S(K)(e)), 9, Ue))), 128))], 8, He)) : (T(), w("option", {
599
599
  key: t,
600
- disabled: S(q)(e),
601
- value: S(K)(e)
602
- }, g(S(G)(e)), 9, Ve))], 64))), 256))], 16, ze), [[oe, S(R)]]),
603
- S(H) ? (T(), f(Q, s({ key: 1 }, S(H), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : b("v-if", !0)
600
+ disabled: S(J)(e),
601
+ value: S(q)(e)
602
+ }, g(S(K)(e)), 9, Ve))], 64))), 256))], 16, ze), [[oe, S(z)]]),
603
+ S(U) ? (T(), f($, s({ key: 1 }, S(U), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : b("v-if", !0)
604
604
  ]),
605
- S(B) && S(_).showClearAction ? (T(), f(S(ke), {
605
+ S(V) && S(_).showClearAction ? (T(), f(S(ke), {
606
606
  key: 1,
607
607
  "input-type": "select",
608
608
  label: e.labelClear,
609
609
  icon: e.iconClear,
610
- disabled: !S(z),
611
- onClear: J
610
+ disabled: !S(B),
611
+ onClear: Y
612
612
  }, null, 8, [
613
613
  "label",
614
614
  "icon",
615
615
  "disabled"
616
616
  ])) : b("v-if", !0),
617
- e.$slots.after ? (T(), w("div", We, [a(e.$slots, "after", n(r(S(X))))])) : b("v-if", !0)
617
+ e.$slots.after ? (T(), w("div", We, [a(e.$slots, "after", n(r(S(Z))))])) : b("v-if", !0)
618
618
  ]),
619
619
  l(S(ae), {
620
- id: S(F),
620
+ id: S(I),
621
621
  class: "vv-select__hint"
622
622
  }, te({ _: 2 }, [
623
623
  e.$slots.hint ? {
@@ -646,4 +646,4 @@ var Fe = ["for"], Ie = { class: "vv-select__wrapper" }, Le = {
646
646
  });
647
647
  export { Ge as default };
648
648
 
649
- //# sourceMappingURL=VvSelect.es-8ZE8Zjm9.js.map
649
+ //# sourceMappingURL=VvSelect.es-BZkBK0gK.js.map