@reinosoft-ui/core 0.1.34 → 0.1.36

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as T, ref as m, computed as I, watch as X, onMounted as ne, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as re, renderSlot as j, createCommentVNode as O, withDirectives as we, createElementVNode as w, vShow as qe, mergeProps as Ce, mergeModels as Q, useModel as ve, withKeys as ce, withModifiers as le, onUnmounted as be, Fragment as ae, unref as A, toDisplayString as F, renderList as ie, createBlock as J, Transition as $e, withCtx as W, nextTick as Me, useId as ue, provide as ge, createVNode as K, createTextVNode as me, onBeforeUnmount as He, Teleport as Ie, resolveDynamicComponent as Ve, useAttrs as Ne, inject as se, h as P, useSlots as Fe, resolveComponent as y1, vModelRadio as g1, vModelDynamic as b1, reactive as r1, TransitionGroup as k1, createApp as w1, shallowRef as M1, vModelText as Ae } from "vue";
2
- import { routerKey as L1 } from "vue-router";
3
- const x1 = ["aria-busy"], $1 = ["aria-label"], V1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], H1 = /* @__PURE__ */ T({
1
+ import { defineComponent as S, ref as m, computed as V, watch as X, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as le, renderSlot as Y, createCommentVNode as O, withDirectives as we, createElementVNode as w, vShow as qe, mergeProps as Ce, mergeModels as Q, useModel as fe, withKeys as ve, withModifiers as ne, onUnmounted as be, Fragment as te, unref as D, toDisplayString as P, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as Me, useId as ce, provide as ge, createVNode as U, createTextVNode as me, onBeforeUnmount as Ie, Teleport as He, resolveDynamicComponent as Ve, useAttrs as Ne, inject as ie, h as K, useSlots as Fe, resolveComponent as y1, vModelRadio as g1, vModelDynamic as b1, reactive as r1, TransitionGroup as k1, createApp as w1, shallowRef as M1, vModelText as Ae } from "vue";
2
+ import { routerKey as x1 } from "vue-router";
3
+ const L1 = ["aria-busy"], $1 = ["aria-label"], V1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], I1 = /* @__PURE__ */ S({
4
4
  __name: "Image",
5
5
  props: {
6
6
  src: {},
@@ -16,11 +16,11 @@ const x1 = ["aria-busy"], $1 = ["aria-label"], V1 = ["src", "srcset", "sizes", "
16
16
  },
17
17
  emits: ["loaded", "error"],
18
18
  setup(e, { emit: o }) {
19
- const t = e, a = o, l = m(t.src), s = m(), i = m("loading"), n = I(() => t.ratio ? {
19
+ const t = e, a = o, l = m(t.src), s = m(), i = m("loading"), n = V(() => t.ratio ? {
20
20
  aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
21
21
  } : void 0), r = () => {
22
22
  i.value = "loaded", a("loaded");
23
- }, d = () => {
23
+ }, c = () => {
24
24
  if (t.fallbackSrc && l.value !== t.fallbackSrc) {
25
25
  l.value = t.fallbackSrc, i.value = "loading";
26
26
  return;
@@ -32,8 +32,8 @@ const x1 = ["aria-busy"], $1 = ["aria-label"], V1 = ["src", "srcset", "sizes", "
32
32
  (u) => {
33
33
  l.value = u, i.value = "loading";
34
34
  }
35
- ), ne(() => s.value?.complete && s.value.naturalWidth > 0 && (i.value = "loaded")), (u, p) => (v(), f("div", {
36
- class: re(["ui-image", {
35
+ ), ae(() => s.value?.complete && s.value.naturalWidth > 0 && (i.value = "loaded")), (u, p) => (v(), f("div", {
36
+ class: le(["ui-image", {
37
37
  "is-loading": i.value === "loading",
38
38
  "is-error": i.value === "error",
39
39
  "is-loaded": i.value === "loaded",
@@ -42,12 +42,12 @@ const x1 = ["aria-busy"], $1 = ["aria-label"], V1 = ["src", "srcset", "sizes", "
42
42
  style: ye(n.value),
43
43
  "aria-busy": i.value === "loading" || void 0
44
44
  }, [
45
- i.value === "loading" ? j(u.$slots, "placeholder", { key: 0 }, () => [
45
+ i.value === "loading" ? Y(u.$slots, "placeholder", { key: 0 }, () => [
46
46
  p[0] || (p[0] = w("div", {
47
47
  class: "ui-image__placeholder",
48
48
  "aria-hidden": "true"
49
49
  }, null, -1))
50
- ], !0) : i.value === "error" ? j(u.$slots, "fallback", { key: 1 }, () => [
50
+ ], !0) : i.value === "error" ? Y(u.$slots, "fallback", { key: 1 }, () => [
51
51
  w("div", {
52
52
  class: "ui-image__fallback",
53
53
  role: "img",
@@ -66,22 +66,22 @@ const x1 = ["aria-busy"], $1 = ["aria-label"], V1 = ["src", "srcset", "sizes", "
66
66
  loading: e.lazy ? "lazy" : void 0,
67
67
  decoding: e.decoding,
68
68
  onLoad: r,
69
- onError: d
69
+ onError: c
70
70
  }, null, 40, V1), [
71
71
  [qe, i.value !== "error"]
72
72
  ])
73
- ], 14, x1));
73
+ ], 14, L1));
74
74
  }
75
- }), U = (e, o) => {
75
+ }), j = (e, o) => {
76
76
  const t = e.__vccOpts || e;
77
77
  for (const [a, l] of o)
78
78
  t[a] = l;
79
79
  return t;
80
- }, xe = /* @__PURE__ */ U(H1, [["__scopeId", "data-v-4c5a40da"]]);
81
- xe.install = (e) => {
82
- e.component("Image", xe);
80
+ }, Le = /* @__PURE__ */ j(I1, [["__scopeId", "data-v-4c5a40da"]]);
81
+ Le.install = (e) => {
82
+ e.component("Image", Le);
83
83
  };
84
- const I1 = /* @__PURE__ */ T({
84
+ const H1 = /* @__PURE__ */ S({
85
85
  __name: "Button",
86
86
  setup(e, { expose: o }) {
87
87
  const t = m();
@@ -93,14 +93,14 @@ const I1 = /* @__PURE__ */ T({
93
93
  type: "button",
94
94
  class: "btn"
95
95
  }, a.$attrs), [
96
- j(a.$slots, "default", {}, void 0, !0)
96
+ Y(a.$slots, "default", {}, void 0, !0)
97
97
  ], 16));
98
98
  }
99
- }), he = /* @__PURE__ */ U(I1, [["__scopeId", "data-v-b46162b4"]]);
99
+ }), he = /* @__PURE__ */ j(H1, [["__scopeId", "data-v-b46162b4"]]);
100
100
  he.install = (e) => {
101
101
  e.component("Button", he);
102
102
  };
103
- const B1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], _1 = /* @__PURE__ */ T({
103
+ const B1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], _1 = /* @__PURE__ */ S({
104
104
  __name: "Toggle",
105
105
  props: /* @__PURE__ */ Q({
106
106
  id: {},
@@ -111,7 +111,7 @@ const B1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], _1
111
111
  }),
112
112
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
113
113
  setup(e, { emit: o }) {
114
- const t = ve(e, "modelValue"), a = o, l = e, s = I(() => t.value), i = () => {
114
+ const t = fe(e, "modelValue"), a = o, l = e, s = V(() => t.value), i = () => {
115
115
  if (l.disabled) return;
116
116
  const n = !t.value;
117
117
  t.value = n, a("change", n);
@@ -120,14 +120,14 @@ const B1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], _1
120
120
  id: e.id,
121
121
  role: "switch",
122
122
  type: "button",
123
- class: re(["ui-toggle", { "ui-toggle--checked": s.value, "ui-toggle--disabled": e.disabled }]),
123
+ class: le(["ui-toggle", { "ui-toggle--checked": s.value, "ui-toggle--disabled": e.disabled }]),
124
124
  "aria-checked": s.value,
125
125
  "aria-disabled": e.disabled || void 0,
126
126
  disabled: e.disabled || void 0,
127
127
  onClick: i,
128
128
  onKeydown: [
129
- ce(le(i, ["prevent"]), ["space"]),
130
- ce(le(i, ["prevent"]), ["enter"])
129
+ ve(ne(i, ["prevent"]), ["space"]),
130
+ ve(ne(i, ["prevent"]), ["enter"])
131
131
  ]
132
132
  }, [...r[0] || (r[0] = [
133
133
  w("span", { class: "ui-toggle__track" }, [
@@ -135,7 +135,7 @@ const B1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], _1
135
135
  ], -1)
136
136
  ])], 42, B1));
137
137
  }
138
- }), Ye = /* @__PURE__ */ U(_1, [["__scopeId", "data-v-d2681823"]]);
138
+ }), Ye = /* @__PURE__ */ j(_1, [["__scopeId", "data-v-d2681823"]]);
139
139
  Ye.install = (e) => {
140
140
  e.component("Toggle", Ye);
141
141
  };
@@ -171,9 +171,9 @@ const s1 = (e) => {
171
171
  if (!l) return;
172
172
  const i = A1("p");
173
173
  document.createRange().selectNodeContents(l);
174
- const r = a.cloneRange(), d = document.createRange();
175
- d.selectNodeContents(l), d.setEnd(r.startContainer, r.startOffset);
176
- const u = d.cloneContents(), p = document.createRange();
174
+ const r = a.cloneRange(), c = document.createRange();
175
+ c.selectNodeContents(l), c.setEnd(r.startContainer, r.startOffset);
176
+ const u = c.cloneContents(), p = document.createRange();
177
177
  p.selectNodeContents(l), p.setStart(r.startContainer, r.startOffset);
178
178
  const g = p.cloneContents();
179
179
  l.innerHTML = "", l.appendChild(u), l.innerHTML === "" && (l.innerHTML = "<br>"), i.innerHTML = "", i.appendChild(g), i.innerHTML === "" && (i.innerHTML = "<br>"), l.after(i);
@@ -204,43 +204,43 @@ const s1 = (e) => {
204
204
  const s = () => {
205
205
  const y = e;
206
206
  if (!y) return;
207
- const V = window.getSelection();
208
- if (!V || V.rangeCount === 0) return;
209
- const b = V.getRangeAt(0);
207
+ const I = window.getSelection();
208
+ if (!I || I.rangeCount === 0) return;
209
+ const b = I.getRangeAt(0);
210
210
  y.contains(b.commonAncestorContainer) && (t.value = b.cloneRange());
211
211
  }, i = (y) => {
212
- const V = window.getSelection();
213
- if (!V || V.rangeCount === 0 || V.isCollapsed) return !1;
214
- const b = V.getRangeAt(0), Z = e;
215
- if (!Z) return !1;
216
- const B = n(b, Z), q = [];
212
+ const I = window.getSelection();
213
+ if (!I || I.rangeCount === 0 || I.isCollapsed) return !1;
214
+ const b = I.getRangeAt(0), A = e;
215
+ if (!A) return !1;
216
+ const B = n(b, A), q = [];
217
217
  if (B.forEach((M) => {
218
- const x = M === b.startContainer ? b.startOffset : 0, E = M === b.endContainer ? b.endOffset : M.textContent.length;
219
- if (x === E) return;
220
- let Y;
221
- x === 0 && E === M.textContent.length ? Y = M : (Y = M.splitText(x), E - x < Y.textContent.length && Y.splitText(E - x));
222
- const ee = D1(Y, y, Z);
218
+ const L = M === b.startContainer ? b.startOffset : 0, E = M === b.endContainer ? b.endOffset : M.textContent.length;
219
+ if (L === E) return;
220
+ let W;
221
+ L === 0 && E === M.textContent.length ? W = M : (W = M.splitText(L), E - L < W.textContent.length && W.splitText(E - L));
222
+ const ee = D1(W, y, A);
223
223
  if (ee)
224
- R1(ee), q.push(Y);
224
+ R1(ee), q.push(W);
225
225
  else {
226
- const D = document.createElement(y);
227
- Y.replaceWith(D), D.appendChild(Y), q.push(Y);
226
+ const re = document.createElement(y);
227
+ W.replaceWith(re), re.appendChild(W), q.push(W);
228
228
  }
229
229
  }), q.length > 0) {
230
230
  const M = document.createRange();
231
231
  M.setStart(q[0], 0);
232
- const x = q[q.length - 1];
233
- M.setEnd(x, x.textContent.length), V.removeAllRanges(), V.addRange(M), s();
232
+ const L = q[q.length - 1];
233
+ M.setEnd(L, L.textContent.length), I.removeAllRanges(), I.addRange(M), s();
234
234
  }
235
- return k(), c(y);
236
- }, n = (y, V) => {
237
- if (!y || !V || !(V instanceof HTMLElement)) return [];
238
- const b = y.commonAncestorContainer, Z = V.contains(b) ? V : b.nodeType === 3 ? b.parentNode : b, B = document.createTreeWalker(
239
- Z,
235
+ return k(), d(y);
236
+ }, n = (y, I) => {
237
+ if (!y || !I || !(I instanceof HTMLElement)) return [];
238
+ const b = y.commonAncestorContainer, A = I.contains(b) ? I : b.nodeType === 3 ? b.parentNode : b, B = document.createTreeWalker(
239
+ A,
240
240
  NodeFilter.SHOW_TEXT,
241
241
  {
242
- acceptNode(x) {
243
- return V.contains(x) && y.intersectsNode(x) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
242
+ acceptNode(L) {
243
+ return I.contains(L) && y.intersectsNode(L) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
244
244
  }
245
245
  }
246
246
  ), q = [];
@@ -248,72 +248,72 @@ const s1 = (e) => {
248
248
  for (; M = B.nextNode(); ) q.push(M);
249
249
  return q;
250
250
  }, r = (y) => {
251
- const V = window.getSelection();
252
- if (!V || V.rangeCount === 0) return !1;
253
- const b = V.getRangeAt(0), Z = d(b.startContainer);
254
- if (!Z) return !1;
255
- const q = Z.tagName.toLowerCase() === y.toLowerCase() ? "p" : y.toLowerCase(), M = document.createElement(q);
256
- for (q === "blockquote" && M.setAttribute("class", "rs-blockquote"), M.dataset.block = "true"; Z.firstChild; ) M.appendChild(Z.firstChild);
257
- Z.replaceWith(M);
258
- const x = document.createRange();
259
- return x.selectNodeContents(M), V.removeAllRanges(), V.addRange(x), s(), k(), C(y);
260
- }, d = (y) => {
261
- const V = e;
262
- if (!V) return null;
263
- for (; y && y !== V; ) {
251
+ const I = window.getSelection();
252
+ if (!I || I.rangeCount === 0) return !1;
253
+ const b = I.getRangeAt(0), A = c(b.startContainer);
254
+ if (!A) return !1;
255
+ const q = A.tagName.toLowerCase() === y.toLowerCase() ? "p" : y.toLowerCase(), M = document.createElement(q);
256
+ for (q === "blockquote" && M.setAttribute("class", "rs-blockquote"), M.dataset.block = "true"; A.firstChild; ) M.appendChild(A.firstChild);
257
+ A.replaceWith(M);
258
+ const L = document.createRange();
259
+ return L.selectNodeContents(M), I.removeAllRanges(), I.addRange(L), s(), k(), C(y);
260
+ }, c = (y) => {
261
+ const I = e;
262
+ if (!I) return null;
263
+ for (; y && y !== I; ) {
264
264
  if (y instanceof HTMLElement && y.dataset.block !== void 0) return y;
265
265
  y = y.parentNode;
266
266
  }
267
267
  return null;
268
- }, u = (y, V) => {
268
+ }, u = (y, I) => {
269
269
  const b = e;
270
270
  if (!b) return null;
271
271
  for (; y && y !== b; ) {
272
- if (y instanceof HTMLElement && y.tagName.toLowerCase() === V.toLowerCase()) return y;
272
+ if (y instanceof HTMLElement && y.tagName.toLowerCase() === I.toLowerCase()) return y;
273
273
  y = y.parentNode;
274
274
  }
275
275
  return null;
276
276
  }, p = (y) => {
277
277
  if (y.key !== "Enter" || y.shiftKey) return;
278
- const V = window.getSelection();
279
- if (!V || V.rangeCount === 0) return;
280
- const b = V.getRangeAt(0), Z = u(b.startContainer, "li");
281
- if (!Z) return;
278
+ const I = window.getSelection();
279
+ if (!I || I.rangeCount === 0) return;
280
+ const b = I.getRangeAt(0), A = u(b.startContainer, "li");
281
+ if (!A) return;
282
282
  y.preventDefault(), y.stopPropagation();
283
- const B = Z.parentElement;
283
+ const B = A.parentElement;
284
284
  if (!B) return;
285
- if (Z.textContent?.trim() === "") {
286
- const x = document.createElement("p");
287
- x.dataset.block = "true", x.innerHTML = "<br>", B.after(x), Z.remove(), B.children.length === 0 && B.remove(), g(x);
285
+ if (A.textContent?.trim() === "") {
286
+ const L = document.createElement("p");
287
+ L.dataset.block = "true", L.innerHTML = "<br>", B.after(L), A.remove(), B.children.length === 0 && B.remove(), g(L);
288
288
  return;
289
289
  }
290
290
  const M = document.createElement("li");
291
- M.innerHTML = "<br>", Z.after(M), g(M);
291
+ M.innerHTML = "<br>", A.after(M), g(M);
292
292
  }, g = (y) => {
293
- const V = document.createRange(), b = window.getSelection();
294
- V.selectNodeContents(y), V.collapse(!0), b?.removeAllRanges(), b?.addRange(V);
293
+ const I = document.createRange(), b = window.getSelection();
294
+ I.selectNodeContents(y), I.collapse(!0), b?.removeAllRanges(), b?.addRange(I);
295
295
  }, k = () => {
296
296
  e instanceof Node && e.normalize();
297
- }, c = (y) => {
298
- const V = t.value;
299
- if (!V) return !1;
300
- let b = V.startContainer;
297
+ }, d = (y) => {
298
+ const I = t.value;
299
+ if (!I) return !1;
300
+ let b = I.startContainer;
301
301
  b.nodeType === Node.TEXT_NODE && (b = b.parentNode);
302
- const Z = e;
303
- if (!Z) return !1;
304
- for (; b && b !== Z; ) {
302
+ const A = e;
303
+ if (!A) return !1;
304
+ for (; b && b !== A; ) {
305
305
  if (b instanceof HTMLElement && b.tagName.toLowerCase() === y.toLowerCase()) return !0;
306
306
  b = b.parentNode;
307
307
  }
308
308
  return !1;
309
309
  }, C = (y) => {
310
- const V = t.value;
311
- if (!V) return !1;
312
- let b = V.startContainer;
310
+ const I = t.value;
311
+ if (!I) return !1;
312
+ let b = I.startContainer;
313
313
  b.nodeType === Node.TEXT_NODE && (b = b.parentNode);
314
- const Z = e;
315
- if (!Z) return !1;
316
- for (; b && b !== Z; ) {
314
+ const A = e;
315
+ if (!A) return !1;
316
+ for (; b && b !== A; ) {
317
317
  if (b instanceof HTMLElement && b.dataset.block !== void 0 && b.tagName.toLowerCase() === y.toLowerCase()) return !0;
318
318
  b = b.parentNode;
319
319
  }
@@ -321,37 +321,37 @@ const s1 = (e) => {
321
321
  }, $ = () => {
322
322
  const y = e;
323
323
  y && y.focus();
324
- }, L = () => {
324
+ }, x = () => {
325
325
  const y = e;
326
326
  if (!y || !t.value || !y || !y.contains(t.value.commonAncestorContainer)) return;
327
- const V = window.getSelection();
328
- V && (V.removeAllRanges(), V.addRange(t.value));
327
+ const I = window.getSelection();
328
+ I && (I.removeAllRanges(), I.addRange(t.value));
329
329
  }, h = () => l.value?.focusFirstButton?.(), _ = (y) => {
330
- const V = window.getSelection();
331
- if (!V || V.rangeCount === 0) return;
332
- const b = V.getRangeAt(0), Z = d(b.startContainer);
333
- if (!Z) return;
330
+ const I = window.getSelection();
331
+ if (!I || I.rangeCount === 0) return;
332
+ const b = I.getRangeAt(0), A = c(b.startContainer);
333
+ if (!A) return;
334
334
  const B = b.cloneRange();
335
- B.selectNodeContents(Z), B.setEnd(b.startContainer, b.startOffset);
335
+ B.selectNodeContents(A), B.setEnd(b.startContainer, b.startOffset);
336
336
  const q = B.toString().length, M = b.cloneRange();
337
- M.selectNodeContents(Z), M.setEnd(b.endContainer, b.endOffset);
338
- const x = M.toString().length, E = b.collapsed, Y = y(Z);
339
- Z.replaceWith(Y);
337
+ M.selectNodeContents(A), M.setEnd(b.endContainer, b.endOffset);
338
+ const L = M.toString().length, E = b.collapsed, W = y(A);
339
+ A.replaceWith(W);
340
340
  const ee = document.createTreeWalker(
341
- Y,
341
+ W,
342
342
  NodeFilter.SHOW_TEXT,
343
343
  null
344
344
  );
345
- let D = 0, N = null, te = 0, fe = null, R = 0;
345
+ let re = 0, T = null, N = 0, H = null, z = 0;
346
346
  for (; ee.nextNode(); ) {
347
- const z = ee.currentNode, G = z.textContent?.length ?? 0;
348
- !N && D + G >= q && (N = z, te = q - D), !fe && D + G >= x && (fe = z, R = x - D), D += G;
347
+ const F = ee.currentNode, se = F.textContent?.length ?? 0;
348
+ !T && re + se >= q && (T = F, N = q - re), !H && re + se >= L && (H = F, z = L - re), re += se;
349
349
  }
350
- const H = document.createRange();
351
- N ? H.setStart(N, te) : H.setStart(Y, 0), !E && fe ? H.setEnd(fe, R) : H.collapse(!0), V.removeAllRanges(), V.addRange(H), s(), k();
352
- }, S = (y) => {
353
- const V = e.parentElement?.querySelector("#editor-status");
354
- V && (V.textContent = y, setTimeout(() => V.textContent = "", 2e3));
350
+ const Z = document.createRange();
351
+ T ? Z.setStart(T, N) : Z.setStart(W, 0), !E && H ? Z.setEnd(H, z) : Z.collapse(!0), I.removeAllRanges(), I.addRange(Z), s(), k();
352
+ }, R = (y) => {
353
+ const I = e.parentElement?.querySelector("#editor-status");
354
+ I && (I.textContent = y, setTimeout(() => I.textContent = "", 2e3));
355
355
  };
356
356
  return e.addEventListener("keydown", p, { capture: !0 }), {
357
357
  toggleInline: i,
@@ -359,22 +359,22 @@ const s1 = (e) => {
359
359
  normalize: k,
360
360
  rootElement: e,
361
361
  saveSelection: s,
362
- restoreSelection: L,
363
- isInlineActive: c,
362
+ restoreSelection: x,
363
+ isInlineActive: d,
364
364
  isBlockActive: C,
365
365
  focus: $,
366
366
  toolbarRef: l,
367
367
  focusFirstToolbarButton: h,
368
368
  replaceCurrentBlock: _,
369
369
  buttons: a,
370
- announce: S
370
+ announce: R
371
371
  };
372
372
  }, O1 = ["id", "aria-label"], q1 = {
373
373
  id: "editor-status",
374
374
  class: "sr-only",
375
375
  "aria-live": "polite",
376
376
  "aria-atomic": "true"
377
- }, N1 = /* @__PURE__ */ T({
377
+ }, N1 = /* @__PURE__ */ S({
378
378
  __name: "EditorContent",
379
379
  props: {
380
380
  editor: {},
@@ -400,12 +400,12 @@ const s1 = (e) => {
400
400
  if (!n || n.rangeCount === 0) return;
401
401
  const r = l.value;
402
402
  if (!r) return;
403
- const d = n.getRangeAt(0);
404
- r.contains(d.commonAncestorContainer) && t.editor?.saveSelection();
403
+ const c = n.getRangeAt(0);
404
+ r.contains(c.commonAncestorContainer) && t.editor?.saveSelection();
405
405
  };
406
- return ne(() => document.addEventListener("selectionchange", i)), be(() => document.removeEventListener("selectionchange", i)), o({
406
+ return ae(() => document.addEventListener("selectionchange", i)), be(() => document.removeEventListener("selectionchange", i)), o({
407
407
  getRoot: () => l
408
- }), (n, r) => (v(), f(ae, null, [
408
+ }), (n, r) => (v(), f(te, null, [
409
409
  w("div", {
410
410
  ref_key: "rootRef",
411
411
  ref: l,
@@ -418,28 +418,28 @@ const s1 = (e) => {
418
418
  "aria-describedby": "editor-help editor-status",
419
419
  onKeydown: [
420
420
  s,
421
- r[0] || (r[0] = ce((d) => A(S1)(d, e.editor), ["enter"])),
422
- r[1] || (r[1] = ce(
421
+ r[0] || (r[0] = ve((c) => D(S1)(c, e.editor), ["enter"])),
422
+ r[1] || (r[1] = ve(
423
423
  //@ts-ignore
424
- (...d) => A(Xe) && A(Xe)(...d),
424
+ (...c) => D(Xe) && D(Xe)(...c),
425
425
  ["backspace"]
426
426
  ))
427
427
  ],
428
428
  onMouseup: r[2] || (r[2] = //@ts-ignore
429
- (...d) => e.editor?.saveSelection && e.editor?.saveSelection(...d)),
429
+ (...c) => e.editor?.saveSelection && e.editor?.saveSelection(...c)),
430
430
  onKeyup: r[3] || (r[3] = //@ts-ignore
431
- (...d) => e.editor?.saveSelection && e.editor?.saveSelection(...d))
431
+ (...c) => e.editor?.saveSelection && e.editor?.saveSelection(...c))
432
432
  }, [...r[4] || (r[4] = [
433
433
  w("p", { "data-block": "" }, "Write here...", -1)
434
434
  ])], 40, O1),
435
- w("div", q1, F(a.value), 1),
435
+ w("div", q1, P(a.value), 1),
436
436
  r[5] || (r[5] = w("p", {
437
437
  id: "editor-help",
438
438
  class: "sr-only"
439
439
  }, " Use Ctrl+B for bold, Ctrl+I for italic, Alt+Ctrl+1 for heading level 1. ", -1))
440
440
  ], 64));
441
441
  }
442
- }), F1 = /* @__PURE__ */ U(N1, [["__scopeId", "data-v-445744be"]]), P1 = {
442
+ }), F1 = /* @__PURE__ */ j(N1, [["__scopeId", "data-v-445744be"]]), P1 = {
443
443
  viewBox: "0 0 512 512",
444
444
  paths: [
445
445
  {
@@ -720,7 +720,7 @@ const s1 = (e) => {
720
720
  fill: "currentColor"
721
721
  }
722
722
  ]
723
- }, dt = {
723
+ }, ct = {
724
724
  viewBox: "0 0 24 24",
725
725
  paths: [
726
726
  {
@@ -744,7 +744,7 @@ const s1 = (e) => {
744
744
  "stroke-width": 2
745
745
  }
746
746
  ]
747
- }, ct = {
747
+ }, dt = {
748
748
  viewBox: "0 0 24 24",
749
749
  paths: [
750
750
  {
@@ -1013,7 +1013,7 @@ const s1 = (e) => {
1013
1013
  fill: "currentColor"
1014
1014
  }
1015
1015
  ]
1016
- }, Lt = {
1016
+ }, xt = {
1017
1017
  viewBox: "0 0 24 24",
1018
1018
  paths: [
1019
1019
  {
@@ -1057,7 +1057,7 @@ const s1 = (e) => {
1057
1057
  "stroke-width": 2
1058
1058
  }
1059
1059
  ]
1060
- }, xt = {
1060
+ }, Lt = {
1061
1061
  viewBox: "0 0 24 24",
1062
1062
  paths: [
1063
1063
  {
@@ -1091,7 +1091,7 @@ const s1 = (e) => {
1091
1091
  fill: "currentColor"
1092
1092
  }
1093
1093
  ]
1094
- }, Ht = {
1094
+ }, It = {
1095
1095
  viewBox: "0 0 24 24",
1096
1096
  paths: [
1097
1097
  {
@@ -1100,7 +1100,7 @@ const s1 = (e) => {
1100
1100
  fill: "currentColor"
1101
1101
  }
1102
1102
  ]
1103
- }, It = {
1103
+ }, Ht = {
1104
1104
  viewBox: "0 0 24 24",
1105
1105
  transform: "matrix(-1,0,0,1,0,0)",
1106
1106
  paths: [
@@ -1784,7 +1784,7 @@ const s1 = (e) => {
1784
1784
  "stroke-width": 2
1785
1785
  }
1786
1786
  ]
1787
- }, d2 = {
1787
+ }, c2 = {
1788
1788
  viewBox: "0 0 24 24",
1789
1789
  paths: [
1790
1790
  {
@@ -1797,7 +1797,7 @@ const s1 = (e) => {
1797
1797
  "stroke-linejoin": "round"
1798
1798
  }
1799
1799
  ]
1800
- }, c2 = {
1800
+ }, d2 = {
1801
1801
  viewBox: "0 0 24 24",
1802
1802
  paths: [
1803
1803
  {
@@ -1842,9 +1842,9 @@ const s1 = (e) => {
1842
1842
  link: ot,
1843
1843
  head: nt,
1844
1844
  bold: ut,
1845
- card: dt,
1845
+ card: ct,
1846
1846
  heart: bt,
1847
- oList: ct,
1847
+ oList: dt,
1848
1848
  uList: vt,
1849
1849
  close: ft,
1850
1850
  clock: pt,
@@ -1856,11 +1856,11 @@ const s1 = (e) => {
1856
1856
  spotfy: wt,
1857
1857
  church: Mt,
1858
1858
  health: Rt,
1859
- blocks: Lt,
1860
- shield: xt,
1859
+ blocks: xt,
1860
+ shield: Lt,
1861
1861
  upload: $t,
1862
- italic: Ht,
1863
- logout: It,
1862
+ italic: It,
1863
+ logout: Ht,
1864
1864
  ticket: _t,
1865
1865
  search: Bt,
1866
1866
  eyeOff: At,
@@ -1896,10 +1896,10 @@ const s1 = (e) => {
1896
1896
  checkCircle: s2,
1897
1897
  checkShield: i2,
1898
1898
  musicalNote: u2,
1899
- shoppingBag: d2,
1900
- directionDown: c2,
1899
+ shoppingBag: c2,
1900
+ directionDown: d2,
1901
1901
  shoppingBasket: v2
1902
- }, f2 = ["viewBox", "transform", "width", "height"], p2 = /* @__PURE__ */ T({
1902
+ }, f2 = ["viewBox", "transform", "width", "height"], p2 = /* @__PURE__ */ S({
1903
1903
  __name: "Icon",
1904
1904
  props: {
1905
1905
  name: {},
@@ -1909,15 +1909,15 @@ const s1 = (e) => {
1909
1909
  setup(e) {
1910
1910
  return (o, t) => (v(), f("svg", {
1911
1911
  xmlns: "http://www.w3.org/2000/svg",
1912
- class: re(["icon", { spin: e.spin }]),
1913
- viewBox: A(Se)[e.name].viewBox,
1914
- transform: A(Se)[e.name].transform || void 0,
1912
+ class: le(["icon", { spin: e.spin }]),
1913
+ viewBox: D(Se)[e.name].viewBox,
1914
+ transform: D(Se)[e.name].transform || void 0,
1915
1915
  width: e.size || 24,
1916
1916
  height: e.size || 24,
1917
1917
  fill: "none",
1918
1918
  "aria-hidden": "true"
1919
1919
  }, [
1920
- (v(!0), f(ae, null, ie(A(Se)[e.name].paths, (a, l) => (v(), f(ae, { key: l }, [
1920
+ (v(!0), f(te, null, ue(D(Se)[e.name].paths, (a, l) => (v(), f(te, { key: l }, [
1921
1921
  a.type === "path" ? (v(), f("path", Ce({
1922
1922
  key: 0,
1923
1923
  ref_for: !0
@@ -1945,7 +1945,7 @@ const s1 = (e) => {
1945
1945
  ], 64))), 128))
1946
1946
  ], 10, f2));
1947
1947
  }
1948
- }), de = /* @__PURE__ */ U(p2, [["__scopeId", "data-v-dd8423eb"]]), C2 = ["aria-controls"], m2 = ["aria-pressed", "onMousedown", "aria-label"], h2 = { key: 1 }, y2 = /* @__PURE__ */ T({
1948
+ }), de = /* @__PURE__ */ j(p2, [["__scopeId", "data-v-dd8423eb"]]), C2 = ["aria-controls"], m2 = ["aria-pressed", "onMousedown", "aria-label"], h2 = { key: 1 }, y2 = /* @__PURE__ */ S({
1949
1949
  __name: "FloatingToolbar",
1950
1950
  props: {
1951
1951
  editor: {},
@@ -1956,41 +1956,41 @@ const s1 = (e) => {
1956
1956
  const t = e, a = m(0), l = m(0), s = m(!1), i = m([]);
1957
1957
  X(
1958
1958
  s,
1959
- (c) => !c && (i.value = [])
1959
+ (d) => !d && (i.value = [])
1960
1960
  );
1961
- const n = I(() => ({
1961
+ const n = V(() => ({
1962
1962
  top: `${l.value}px`,
1963
1963
  left: `${a.value}px`
1964
- })), r = (c, C) => c && (i.value[C] = c), d = I(() => [
1964
+ })), r = (d, C) => d && (i.value[C] = d), c = V(() => [
1965
1965
  {
1966
1966
  key: "strong",
1967
1967
  label: "bold",
1968
1968
  type: "icon",
1969
1969
  ariaLabel: "Bold",
1970
- action: (c) => {
1971
- c.restoreSelection(), c.toggleInline("strong"), c.focus(), c.announce(c.isInlineActive("strong") ? "Bold enabled" : "Bold disabled");
1970
+ action: (d) => {
1971
+ d.restoreSelection(), d.toggleInline("strong"), d.focus(), d.announce(d.isInlineActive("strong") ? "Bold enabled" : "Bold disabled");
1972
1972
  },
1973
- isActive: (c) => c.isInlineActive("strong")
1973
+ isActive: (d) => d.isInlineActive("strong")
1974
1974
  },
1975
1975
  {
1976
1976
  key: "em",
1977
1977
  label: "italic",
1978
1978
  type: "icon",
1979
1979
  ariaLabel: "Italic",
1980
- action: (c) => {
1981
- c.restoreSelection(), c.toggleInline("em"), c.focus(), c.announce(c.isInlineActive("em") ? "Italic enabled" : "Italic disabled");
1980
+ action: (d) => {
1981
+ d.restoreSelection(), d.toggleInline("em"), d.focus(), d.announce(d.isInlineActive("em") ? "Italic enabled" : "Italic disabled");
1982
1982
  },
1983
- isActive: (c) => c.isInlineActive("em")
1983
+ isActive: (d) => d.isInlineActive("em")
1984
1984
  },
1985
1985
  {
1986
1986
  key: "h1",
1987
1987
  label: "head",
1988
1988
  type: "icon",
1989
1989
  ariaLabel: "Heading 1",
1990
- action: (c) => {
1991
- c.restoreSelection(), c.toggleBlock("h1"), c.focus(), c.announce(c.isBlockActive("h1") ? "Heading level 1 enabled" : "Heading level 1 disabled");
1990
+ action: (d) => {
1991
+ d.restoreSelection(), d.toggleBlock("h1"), d.focus(), d.announce(d.isBlockActive("h1") ? "Heading level 1 enabled" : "Heading level 1 disabled");
1992
1992
  },
1993
- isActive: (c) => c.isBlockActive("h1")
1993
+ isActive: (d) => d.isBlockActive("h1")
1994
1994
  },
1995
1995
  {
1996
1996
  key: "h4",
@@ -1998,63 +1998,63 @@ const s1 = (e) => {
1998
1998
  type: "icon",
1999
1999
  ariaLabel: "Heading 4",
2000
2000
  size: 12,
2001
- action: (c) => {
2002
- c.restoreSelection(), c.toggleBlock("h4"), c.focus(), c.announce(c.isBlockActive("h4") ? "Heading level 4 enabled" : "Heading level 4 disabled");
2001
+ action: (d) => {
2002
+ d.restoreSelection(), d.toggleBlock("h4"), d.focus(), d.announce(d.isBlockActive("h4") ? "Heading level 4 enabled" : "Heading level 4 disabled");
2003
2003
  },
2004
- isActive: (c) => c.isBlockActive("h4")
2004
+ isActive: (d) => d.isBlockActive("h4")
2005
2005
  },
2006
2006
  {
2007
2007
  key: "quote",
2008
2008
  label: "❝",
2009
2009
  type: "text",
2010
2010
  ariaLabel: "Blockquote",
2011
- action: (c) => {
2012
- c.restoreSelection(), c.toggleBlock("blockquote"), c.focus(), c.announce(c.isBlockActive("blockquote") ? "Blockquote enabled" : "Blockquote disabled");
2011
+ action: (d) => {
2012
+ d.restoreSelection(), d.toggleBlock("blockquote"), d.focus(), d.announce(d.isBlockActive("blockquote") ? "Blockquote enabled" : "Blockquote disabled");
2013
2013
  },
2014
- isActive: (c) => c.isBlockActive("blockquote")
2014
+ isActive: (d) => d.isBlockActive("blockquote")
2015
2015
  }
2016
- ]), u = I(() => [
2017
- ...d.value,
2016
+ ]), u = V(() => [
2017
+ ...c.value,
2018
2018
  ...t.editor?.buttons ?? []
2019
2019
  ]), p = async () => {
2020
2020
  await Me(), i.value[0]?.focus();
2021
- }, g = (c) => {
2021
+ }, g = (d) => {
2022
2022
  const C = i.value, $ = C.indexOf(document.activeElement);
2023
- if (c.key === "ArrowRight") {
2024
- c.preventDefault();
2025
- const L = $ < C.length - 1 ? $ + 1 : 0;
2026
- C[L]?.focus();
2023
+ if (d.key === "ArrowRight") {
2024
+ d.preventDefault();
2025
+ const x = $ < C.length - 1 ? $ + 1 : 0;
2026
+ C[x]?.focus();
2027
2027
  }
2028
- if (c.key === "ArrowLeft") {
2029
- c.preventDefault();
2030
- const L = $ > 0 ? $ - 1 : C.length - 1;
2031
- C[L]?.focus();
2028
+ if (d.key === "ArrowLeft") {
2029
+ d.preventDefault();
2030
+ const x = $ > 0 ? $ - 1 : C.length - 1;
2031
+ C[x]?.focus();
2032
2032
  }
2033
- c.key === "Home" && (c.preventDefault(), C[0]?.focus()), c.key === "End" && (c.preventDefault(), C[C.length - 1]?.focus()), c.key === "Escape" && (c.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
2033
+ d.key === "Home" && (d.preventDefault(), C[0]?.focus()), d.key === "End" && (d.preventDefault(), C[C.length - 1]?.focus()), d.key === "Escape" && (d.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
2034
2034
  }, k = () => {
2035
- const c = window.getSelection();
2036
- if (!c || c.rangeCount === 0) {
2035
+ const d = window.getSelection();
2036
+ if (!d || d.rangeCount === 0) {
2037
2037
  s.value = !1;
2038
2038
  return;
2039
2039
  }
2040
2040
  const C = t.editor?.rootElement;
2041
2041
  if (!C) return;
2042
- const $ = c.getRangeAt(0);
2043
- if (!C.contains($.commonAncestorContainer) || c.isCollapsed) {
2042
+ const $ = d.getRangeAt(0);
2043
+ if (!C.contains($.commonAncestorContainer) || d.isCollapsed) {
2044
2044
  s.value = !1;
2045
2045
  return;
2046
2046
  }
2047
- const L = $.getBoundingClientRect();
2048
- a.value = L.left + L.width / 2, l.value = L.top - 45, s.value = !0;
2047
+ const x = $.getBoundingClientRect();
2048
+ a.value = x.left + x.width / 2, l.value = x.top - 45, s.value = !0;
2049
2049
  };
2050
- return ne(() => {
2050
+ return ae(() => {
2051
2051
  document.addEventListener("selectionchange", k), window.addEventListener("scroll", k, !0), window.addEventListener("resize", k);
2052
2052
  }), be(() => {
2053
2053
  document.removeEventListener("selectionchange", k), window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k);
2054
2054
  }), o({
2055
2055
  focusFirstButton: p
2056
- }), (c, C) => (v(), J($e, { name: "tooltip-fade" }, {
2057
- default: W(() => [
2056
+ }), (d, C) => (v(), J($e, { name: "tooltip-fade" }, {
2057
+ default: G(() => [
2058
2058
  s.value ? (v(), f("div", {
2059
2059
  key: 0,
2060
2060
  class: "toolbar",
@@ -2066,28 +2066,28 @@ const s1 = (e) => {
2066
2066
  onKeydown: g
2067
2067
  }, [
2068
2068
  C[0] || (C[0] = w("div", { class: "arrow" }, null, -1)),
2069
- (v(!0), f(ae, null, ie(u.value, ($, L) => (v(), f("button", {
2070
- key: $.key ?? L,
2069
+ (v(!0), f(te, null, ue(u.value, ($, x) => (v(), f("button", {
2070
+ key: $.key ?? x,
2071
2071
  type: "button",
2072
2072
  ref_for: !0,
2073
- ref: (h) => r(h, L),
2074
- class: re({ "is-active": $.isActive?.(t.editor) }),
2073
+ ref: (h) => r(h, x),
2074
+ class: le({ "is-active": $.isActive?.(t.editor) }),
2075
2075
  "aria-pressed": $.isActive?.(t.editor),
2076
- onMousedown: le((h) => $.action(t.editor), ["prevent"]),
2076
+ onMousedown: ne((h) => $.action(t.editor), ["prevent"]),
2077
2077
  "aria-label": $.ariaLabel
2078
2078
  }, [
2079
2079
  $.type === "icon" ? (v(), J(de, {
2080
2080
  key: 0,
2081
2081
  name: $.label,
2082
2082
  size: $.size ?? 14
2083
- }, null, 8, ["name", "size"])) : (v(), f("span", h2, F($.label), 1))
2083
+ }, null, 8, ["name", "size"])) : (v(), f("span", h2, P($.label), 1))
2084
2084
  ], 42, m2))), 128))
2085
2085
  ], 44, C2)) : O("", !0)
2086
2086
  ]),
2087
2087
  _: 1
2088
2088
  }));
2089
2089
  }
2090
- }), g2 = /* @__PURE__ */ U(y2, [["__scopeId", "data-v-3f279ebe"]]), b2 = { class: "editor" }, Ge = /* @__PURE__ */ T({
2090
+ }), g2 = /* @__PURE__ */ j(y2, [["__scopeId", "data-v-3f279ebe"]]), b2 = { class: "editor" }, Ge = /* @__PURE__ */ S({
2091
2091
  __name: "Editor",
2092
2092
  props: /* @__PURE__ */ Q({
2093
2093
  ariaLabel: {},
@@ -2100,32 +2100,32 @@ const s1 = (e) => {
2100
2100
  }),
2101
2101
  emits: ["update:modelValue"],
2102
2102
  setup(e) {
2103
- const o = ve(e, "modelValue"), t = e, a = ue(), l = m(), s = m(null), i = m(null);
2103
+ const o = fe(e, "modelValue"), t = e, a = ce(), l = m(), s = m(null), i = m(null);
2104
2104
  return X(
2105
2105
  () => o.value,
2106
2106
  (n) => {
2107
2107
  const r = i.value?.getRoot()?.value;
2108
2108
  r && r.innerHTML !== n && (r.innerHTML = n, s.value?.normalize());
2109
2109
  }
2110
- ), ne(() => {
2110
+ ), ae(() => {
2111
2111
  const r = i.value?.getRoot()?.value;
2112
2112
  if (!r) return;
2113
2113
  s.value = z1(r, { buttons: t.buttons ?? [] }), s.value && (s.value.toolbarRef = l);
2114
- const d = () => o.value = r.innerHTML;
2115
- r.addEventListener("input", d), be(() => r.removeEventListener("input", d));
2114
+ const c = () => o.value = r.innerHTML;
2115
+ r.addEventListener("input", c), be(() => r.removeEventListener("input", c));
2116
2116
  }), ge("announce", (n) => s.value?.announce(n)), (n, r) => (v(), f("section", b2, [
2117
- K(F1, {
2117
+ U(F1, {
2118
2118
  ref_key: "contentRef",
2119
2119
  ref: i,
2120
2120
  editor: s.value,
2121
- "editor-id": A(a),
2121
+ "editor-id": D(a),
2122
2122
  "aria-label": e.ariaLabel
2123
2123
  }, null, 8, ["editor", "editor-id", "aria-label"]),
2124
- K(g2, {
2124
+ U(g2, {
2125
2125
  ref_key: "toolbarRef",
2126
2126
  ref: l,
2127
2127
  editor: s.value,
2128
- "editor-id": A(a)
2128
+ "editor-id": D(a)
2129
2129
  }, null, 8, ["editor", "editor-id"])
2130
2130
  ]));
2131
2131
  }
@@ -2136,10 +2136,10 @@ Ge.install = (e) => {
2136
2136
  const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"], w2 = ["multiple", "accept", "disabled"], M2 = {
2137
2137
  key: 1,
2138
2138
  class: "ui-upload__list"
2139
- }, L2 = { class: "ui-upload__item--default" }, x2 = { class: "ui-upload__file-name" }, $2 = { class: "ui-upload__file-size" }, V2 = {
2139
+ }, x2 = { class: "ui-upload__item--default" }, L2 = { class: "ui-upload__file-name" }, $2 = { class: "ui-upload__file-size" }, V2 = {
2140
2140
  key: 0,
2141
2141
  class: "ui-upload__progress-wrapper"
2142
- }, H2 = { class: "ui-upload__progress-text" }, I2 = ["value", "aria-label"], B2 = {
2142
+ }, I2 = { class: "ui-upload__progress-text" }, H2 = ["value", "aria-label"], B2 = {
2143
2143
  key: 1,
2144
2144
  class: "ui-upload__status success",
2145
2145
  style: { color: "var(--green-color)" },
@@ -2156,7 +2156,7 @@ const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2156
2156
  }, R2 = { class: "ui-upload__actions" }, A2 = {
2157
2157
  class: "sr-only",
2158
2158
  "aria-live": "polite"
2159
- }, S2 = ["id"], T2 = /* @__PURE__ */ T({
2159
+ }, S2 = ["id"], T2 = /* @__PURE__ */ S({
2160
2160
  __name: "Upload",
2161
2161
  props: /* @__PURE__ */ Q({
2162
2162
  multiple: { type: Boolean, default: !1 },
@@ -2174,46 +2174,46 @@ const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2174
2174
  }),
2175
2175
  emits: /* @__PURE__ */ Q(["select", "upload", "remove"], ["update:modelValue"]),
2176
2176
  setup(e, { emit: o }) {
2177
- const t = ve(e, "modelValue"), a = e, l = o, s = m(0), i = m(""), n = m(!1), r = ue(), d = m(), u = I(() => t.value), p = I(() => a.maxSize === 1 / 0 ? "Unlimited" : Z(a.maxSize)), g = I(() => !a.disabled && (a.multiple || t.value.length === 0)), k = I(() => u.value.some((M) => M.status === "uploading")), c = () => g.value && d.value?.click(), C = () => {
2177
+ const t = fe(e, "modelValue"), a = e, l = o, s = m(0), i = m(""), n = m(!1), r = ce(), c = m(), u = V(() => t.value), p = V(() => a.maxSize === 1 / 0 ? "Unlimited" : A(a.maxSize)), g = V(() => !a.disabled && (a.multiple || t.value.length === 0)), k = V(() => u.value.some((M) => M.status === "uploading")), d = () => g.value && c.value?.click(), C = () => {
2178
2178
  a.disabled || (s.value++, n.value = !0);
2179
2179
  }, $ = () => {
2180
2180
  s.value = Math.max(0, s.value - 1), s.value === 0 && (n.value = !1);
2181
- }, L = (M) => {
2181
+ }, x = (M) => {
2182
2182
  if (!a.disabled && !(!a.multiple && t.value.length > 0) && (s.value = 0, n.value = !1, !!M.dataTransfer)) {
2183
2183
  if (!a.multiple && M.dataTransfer?.files.length) {
2184
- const x = M.dataTransfer.files[0];
2185
- _([x]);
2184
+ const L = M.dataTransfer.files[0];
2185
+ _([L]);
2186
2186
  return;
2187
2187
  }
2188
2188
  _(Array.from(M.dataTransfer.files));
2189
2189
  }
2190
2190
  }, h = (M) => {
2191
- const x = M.target;
2192
- x.files && (_(Array.from(x.files)), x.value = "");
2191
+ const L = M.target;
2192
+ L.files && (_(Array.from(L.files)), L.value = "");
2193
2193
  }, _ = (M) => {
2194
- const x = [];
2195
- for (const Y of M) {
2196
- if (u.value.length + x.length >= a.maxFiles) break;
2197
- Y.size > a.maxSize || x.push({
2194
+ const L = [];
2195
+ for (const W of M) {
2196
+ if (u.value.length + L.length >= a.maxFiles) break;
2197
+ W.size > a.maxSize || L.push({
2198
2198
  id: crypto.randomUUID(),
2199
- file: Y,
2199
+ file: W,
2200
2200
  progress: 0,
2201
2201
  status: "idle"
2202
2202
  });
2203
2203
  }
2204
- if (!x.length) return;
2205
- l("select", x.map((Y) => Y.file));
2206
- const E = [...u.value, ...x];
2207
- t.value = E, a.autoUpload && x.forEach(S);
2208
- }, S = (M) => {
2209
- const x = new AbortController();
2210
- M.progress = 0, M.error = void 0, M.status = "uploading", M.controller = x, B(`Started uploading ${M.file.name}`);
2204
+ if (!L.length) return;
2205
+ l("select", L.map((W) => W.file));
2206
+ const E = [...u.value, ...L];
2207
+ t.value = E, a.autoUpload && L.forEach(R);
2208
+ }, R = (M) => {
2209
+ const L = new AbortController();
2210
+ M.progress = 0, M.error = void 0, M.status = "uploading", M.controller = L, B(`Started uploading ${M.file.name}`);
2211
2211
  const E = () => {
2212
- x.signal.removeEventListener("abort", E);
2212
+ L.signal.removeEventListener("abort", E);
2213
2213
  };
2214
- x.signal.addEventListener("abort", E);
2215
- const Y = {
2216
- signal: x.signal,
2214
+ L.signal.addEventListener("abort", E);
2215
+ const W = {
2216
+ signal: L.signal,
2217
2217
  onProgress: (ee) => {
2218
2218
  M.progress = ee, b();
2219
2219
  },
@@ -2224,109 +2224,109 @@ const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2224
2224
  M.status = "error", M.error = ee, M.controller = void 0, B(`Failed to upload ${M.file.name}: ${ee}`), b();
2225
2225
  }
2226
2226
  };
2227
- l("upload", M, Y);
2227
+ l("upload", M, W);
2228
2228
  }, y = (M) => {
2229
2229
  M.controller && (M.controller.abort(), M.status = "canceled", M.controller = void 0, B(`Canceled uploading ${M.file.name}`), b());
2230
- }, V = (M) => {
2231
- M.status !== "error" && M.status !== "canceled" || S(M);
2232
- }, b = () => t.value = [...u.value], Z = (M) => {
2233
- const x = ["B", "KB", "MB", "GB", "TB"];
2230
+ }, I = (M) => {
2231
+ M.status !== "error" && M.status !== "canceled" || R(M);
2232
+ }, b = () => t.value = [...u.value], A = (M) => {
2233
+ const L = ["B", "KB", "MB", "GB", "TB"];
2234
2234
  let E = 0;
2235
- for (; M >= 1024 && E < x.length - 1; )
2235
+ for (; M >= 1024 && E < L.length - 1; )
2236
2236
  M /= 1024, E++;
2237
- return `${M.toFixed(2)} ${x[E]}`;
2237
+ return `${M.toFixed(2)} ${L[E]}`;
2238
2238
  }, B = (M) => {
2239
2239
  i.value = "", requestAnimationFrame(() => {
2240
2240
  i.value = M;
2241
2241
  });
2242
2242
  }, q = (M) => {
2243
- M.controller && M.controller.abort(), l("remove", M), t.value = u.value.filter((x) => x.id !== M.id);
2243
+ M.controller && M.controller.abort(), l("remove", M), t.value = u.value.filter((L) => L.id !== M.id);
2244
2244
  };
2245
- return (M, x) => (v(), f("div", {
2245
+ return (M, L) => (v(), f("div", {
2246
2246
  role: "button",
2247
2247
  class: "ui-upload",
2248
2248
  tabindex: e.disabled ? -1 : 0,
2249
2249
  "aria-label": e.ariaLabel || "File upload area",
2250
- "aria-describedby": n.value ? A(r) : void 0,
2250
+ "aria-describedby": n.value ? D(r) : void 0,
2251
2251
  "aria-busy": k.value ? "true" : void 0,
2252
2252
  "aria-disabled": e.disabled ? "true" : void 0,
2253
2253
  "data-disabled": e.disabled || void 0,
2254
2254
  "data-dragging": n.value || void 0,
2255
- onClick: x[0] || (x[0] = (E) => !e.disabled && c()),
2255
+ onClick: L[0] || (L[0] = (E) => !e.disabled && d()),
2256
2256
  onKeydown: [
2257
- x[1] || (x[1] = ce(le((E) => !e.disabled && c(), ["stop", "prevent"]), ["enter"])),
2258
- x[2] || (x[2] = ce(le((E) => !e.disabled && c(), ["prevent"]), ["space"]))
2257
+ L[1] || (L[1] = ve(ne((E) => !e.disabled && d(), ["stop", "prevent"]), ["enter"])),
2258
+ L[2] || (L[2] = ve(ne((E) => !e.disabled && d(), ["prevent"]), ["space"]))
2259
2259
  ],
2260
- onDragover: x[3] || (x[3] = le((E) => !e.disabled && C(), ["prevent"])),
2260
+ onDragover: L[3] || (L[3] = ne((E) => !e.disabled && C(), ["prevent"])),
2261
2261
  onDragleave: $,
2262
- onDrop: x[4] || (x[4] = le((E) => !e.disabled && L(E), ["prevent"]))
2262
+ onDrop: L[4] || (L[4] = ne((E) => !e.disabled && x(E), ["prevent"]))
2263
2263
  }, [
2264
2264
  w("input", {
2265
2265
  type: "file",
2266
2266
  ref_key: "inputRef",
2267
- ref: d,
2267
+ ref: c,
2268
2268
  class: "ui-upload__input",
2269
2269
  multiple: e.multiple,
2270
2270
  accept: e.accept,
2271
2271
  disabled: e.disabled,
2272
2272
  onChange: h
2273
2273
  }, null, 40, w2),
2274
- e.multiple || !e.multiple && t.value.length === 0 ? j(M.$slots, "default", {
2274
+ e.multiple || !e.multiple && t.value.length === 0 ? Y(M.$slots, "default", {
2275
2275
  key: 0,
2276
2276
  dragging: n.value
2277
2277
  }, () => [
2278
- K(de, {
2278
+ U(de, {
2279
2279
  name: "upload",
2280
2280
  size: 32
2281
2281
  }),
2282
- x[6] || (x[6] = w("p", null, "Drag and Drop files here", -1)),
2283
- x[7] || (x[7] = w("span", null, "or", -1)),
2284
- K(he, {
2282
+ L[6] || (L[6] = w("p", null, "Drag and Drop files here", -1)),
2283
+ L[7] || (L[7] = w("span", null, "or", -1)),
2284
+ U(he, {
2285
2285
  type: "button",
2286
2286
  class: "btn btn-outline"
2287
2287
  }, {
2288
- default: W(() => [...x[5] || (x[5] = [
2288
+ default: G(() => [...L[5] || (L[5] = [
2289
2289
  me("Choose File", -1)
2290
2290
  ])]),
2291
2291
  _: 1
2292
2292
  }),
2293
- w("span", null, "Maximum size: " + F(p.value), 1)
2293
+ w("span", null, "Maximum size: " + P(p.value), 1)
2294
2294
  ], !0) : O("", !0),
2295
2295
  u.value?.length ? (v(), f("ul", M2, [
2296
- (v(!0), f(ae, null, ie(u.value, (E) => (v(), f("li", {
2296
+ (v(!0), f(te, null, ue(u.value, (E) => (v(), f("li", {
2297
2297
  key: E.id,
2298
2298
  class: "ui-upload__item"
2299
2299
  }, [
2300
- j(M.$slots, "file", {
2300
+ Y(M.$slots, "file", {
2301
2301
  file: E,
2302
2302
  remove: () => q(E),
2303
2303
  cancel: () => y(E),
2304
- retry: () => V(E)
2304
+ retry: () => I(E)
2305
2305
  }, () => [
2306
- w("div", L2, [
2307
- w("span", x2, F(E.file.name), 1),
2308
- w("span", $2, F(Z(E.file.size)), 1)
2306
+ w("div", x2, [
2307
+ w("span", L2, P(E.file.name), 1),
2308
+ w("span", $2, P(A(E.file.size)), 1)
2309
2309
  ]),
2310
2310
  E.status === "uploading" ? (v(), f("div", V2, [
2311
- w("span", H2, F(E.progress) + "% ", 1),
2311
+ w("span", I2, P(E.progress) + "% ", 1),
2312
2312
  w("progress", {
2313
2313
  class: "ui-upload__progress",
2314
2314
  value: E.progress,
2315
2315
  max: "100",
2316
2316
  "aria-label": `Upload progress for ${E.file.name}`
2317
- }, null, 8, I2)
2317
+ }, null, 8, H2)
2318
2318
  ])) : O("", !0),
2319
2319
  E.status === "success" ? (v(), f("span", B2, " Uploaded successful ")) : O("", !0),
2320
- E.status === "error" ? (v(), f("span", _2, F(E.error || "Upload failed"), 1)) : O("", !0),
2320
+ E.status === "error" ? (v(), f("span", _2, P(E.error || "Upload failed"), 1)) : O("", !0),
2321
2321
  E.status === "canceled" ? (v(), f("span", D2, " Upload canceled ")) : O("", !0),
2322
2322
  w("div", R2, [
2323
2323
  E.status === "uploading" ? (v(), J(he, {
2324
2324
  key: 0,
2325
2325
  type: "button",
2326
2326
  class: "btn-danger btn-xs",
2327
- onClick: le((Y) => y(E), ["stop"])
2327
+ onClick: ne((W) => y(E), ["stop"])
2328
2328
  }, {
2329
- default: W(() => [...x[8] || (x[8] = [
2329
+ default: G(() => [...L[8] || (L[8] = [
2330
2330
  me(" Cancel ", -1)
2331
2331
  ])]),
2332
2332
  _: 1
@@ -2335,9 +2335,9 @@ const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2335
2335
  key: 1,
2336
2336
  type: "button",
2337
2337
  class: "btn-info btn-xs",
2338
- onClick: le((Y) => V(E), ["stop"])
2338
+ onClick: ne((W) => I(E), ["stop"])
2339
2339
  }, {
2340
- default: W(() => [...x[9] || (x[9] = [
2340
+ default: G(() => [...L[9] || (L[9] = [
2341
2341
  me(" Retry ", -1)
2342
2342
  ])]),
2343
2343
  _: 1
@@ -2346,10 +2346,10 @@ const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2346
2346
  key: 2,
2347
2347
  type: "button",
2348
2348
  class: "btn-outline btn-xs",
2349
- onClick: le((Y) => q(E), ["stop"]),
2349
+ onClick: ne((W) => q(E), ["stop"]),
2350
2350
  "aria-label": "Remove file"
2351
2351
  }, {
2352
- default: W(() => [...x[10] || (x[10] = [
2352
+ default: G(() => [...L[10] || (L[10] = [
2353
2353
  me(" Remove ", -1)
2354
2354
  ])]),
2355
2355
  _: 1
@@ -2358,14 +2358,14 @@ const k2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2358
2358
  ], !0)
2359
2359
  ]))), 128))
2360
2360
  ])) : O("", !0),
2361
- w("div", A2, F(i.value), 1),
2361
+ w("div", A2, P(i.value), 1),
2362
2362
  w("p", {
2363
- id: A(r),
2363
+ id: D(r),
2364
2364
  class: "sr-only"
2365
2365
  }, " Drop files to upload ", 8, S2)
2366
2366
  ], 40, k2));
2367
2367
  }
2368
- }), Je = /* @__PURE__ */ U(T2, [["__scopeId", "data-v-041ff337"]]);
2368
+ }), Je = /* @__PURE__ */ j(T2, [["__scopeId", "data-v-041ff337"]]);
2369
2369
  Je.install = (e) => {
2370
2370
  e.component("Upload", Je);
2371
2371
  };
@@ -2374,7 +2374,7 @@ const Z2 = (e) => {
2374
2374
  return window.addEventListener("scroll", o, !0), window.addEventListener("resize", t), () => {
2375
2375
  window.removeEventListener("scroll", o, !0), window.removeEventListener("resize", t);
2376
2376
  };
2377
- }, E2 = ["aria-describedby", "aria-disabled", "aria-expanded"], z2 = ["aria-hidden", "data-placement"], O2 = 8, q2 = 6, N2 = /* @__PURE__ */ T({
2377
+ }, E2 = ["aria-describedby", "aria-disabled", "aria-expanded"], z2 = ["aria-hidden", "data-placement"], O2 = 8, q2 = 6, N2 = /* @__PURE__ */ S({
2378
2378
  __name: "Tooltip",
2379
2379
  props: {
2380
2380
  content: {},
@@ -2383,8 +2383,8 @@ const Z2 = (e) => {
2383
2383
  disabled: { type: Boolean, default: !1 }
2384
2384
  },
2385
2385
  setup(e) {
2386
- const o = e, t = O2 + q2, a = m(!1), l = `tooltip-${ue()}`, s = m(null), i = m(null), n = m({});
2387
- let r = null, d = null, u = null;
2386
+ const o = e, t = O2 + q2, a = m(!1), l = `tooltip-${ce()}`, s = m(null), i = m(null), n = m({});
2387
+ let r = null, c = null, u = null;
2388
2388
  const p = () => {
2389
2389
  o.disabled || (r && (clearTimeout(r), r = null), o.delay ? r = window.setTimeout(() => {
2390
2390
  a.value = !0, r = null;
@@ -2393,36 +2393,36 @@ const Z2 = (e) => {
2393
2393
  r && (clearTimeout(r), r = null), a.value = !1;
2394
2394
  }, k = () => {
2395
2395
  if (!s.value || !i.value) return {};
2396
- const C = s.value.getBoundingClientRect(), $ = i.value.getBoundingClientRect(), L = {
2396
+ const C = s.value.getBoundingClientRect(), $ = i.value.getBoundingClientRect(), x = {
2397
2397
  position: "fixed"
2398
2398
  };
2399
2399
  switch (o.placement) {
2400
2400
  case "top":
2401
- L.left = `${C.left + C.width / 2 - $.width / 2}px`, L.top = `${C.top - $.height - t}px`;
2401
+ x.left = `${C.left + C.width / 2 - $.width / 2}px`, x.top = `${C.top - $.height - t}px`;
2402
2402
  break;
2403
2403
  case "bottom":
2404
- L.left = `${C.left + C.width / 2 - $.width / 2}px`, L.top = `${C.bottom + t}px`;
2404
+ x.left = `${C.left + C.width / 2 - $.width / 2}px`, x.top = `${C.bottom + t}px`;
2405
2405
  break;
2406
2406
  case "left":
2407
- L.left = `${C.left - $.width - t}px`, L.top = `${C.top + C.height / 2 - $.height / 2}px`;
2407
+ x.left = `${C.left - $.width - t}px`, x.top = `${C.top + C.height / 2 - $.height / 2}px`;
2408
2408
  break;
2409
2409
  case "right":
2410
- L.left = `${C.right + t}px`, L.top = `${C.top + C.height / 2 - $.height / 2}px`;
2410
+ x.left = `${C.right + t}px`, x.top = `${C.top + C.height / 2 - $.height / 2}px`;
2411
2411
  break;
2412
2412
  }
2413
- return L;
2414
- }, c = () => {
2413
+ return x;
2414
+ }, d = () => {
2415
2415
  n.value = k();
2416
2416
  };
2417
2417
  return X(a, async (C) => {
2418
2418
  if (!C) {
2419
- d?.(), d = null, u?.disconnect(), u = null;
2419
+ c?.(), c = null, u?.disconnect(), u = null;
2420
2420
  return;
2421
2421
  }
2422
- await Me(), c(), d = Z2(c), u = new ResizeObserver(c), i.value && u.observe(i.value), s.value && u.observe(s.value);
2423
- }), He(() => {
2424
- d?.(), u?.disconnect();
2425
- }), (C, $) => (v(), f(ae, null, [
2422
+ await Me(), d(), c = Z2(d), u = new ResizeObserver(d), i.value && u.observe(i.value), s.value && u.observe(s.value);
2423
+ }), Ie(() => {
2424
+ c?.(), u?.disconnect();
2425
+ }), (C, $) => (v(), f(te, null, [
2426
2426
  w("span", {
2427
2427
  ref_key: "triggerRef",
2428
2428
  ref: s,
@@ -2434,13 +2434,13 @@ const Z2 = (e) => {
2434
2434
  onMouseleave: g,
2435
2435
  onFocus: p,
2436
2436
  onBlur: g,
2437
- onKeydown: ce(g, ["esc"])
2437
+ onKeydown: ve(g, ["esc"])
2438
2438
  }, [
2439
- j(C.$slots, "default", {}, void 0, !0)
2439
+ Y(C.$slots, "default", {}, void 0, !0)
2440
2440
  ], 40, E2),
2441
- (v(), J(Ie, { to: "body" }, [
2442
- K($e, { name: "tooltip-fade" }, {
2443
- default: W(() => [
2441
+ (v(), J(He, { to: "body" }, [
2442
+ U($e, { name: "tooltip-fade" }, {
2443
+ default: G(() => [
2444
2444
  a.value ? (v(), f("div", {
2445
2445
  key: 0,
2446
2446
  ref_key: "tooltipRef",
@@ -2454,8 +2454,8 @@ const Z2 = (e) => {
2454
2454
  style: ye(n.value)
2455
2455
  }, [
2456
2456
  $[0] || ($[0] = w("div", { class: "tooltip-arrow" }, null, -1)),
2457
- j(C.$slots, "content", {}, () => [
2458
- me(F(e.content), 1)
2457
+ Y(C.$slots, "content", {}, () => [
2458
+ me(P(e.content), 1)
2459
2459
  ], !0)
2460
2460
  ], 12, z2)) : O("", !0)
2461
2461
  ]),
@@ -2464,14 +2464,14 @@ const Z2 = (e) => {
2464
2464
  ]))
2465
2465
  ], 64));
2466
2466
  }
2467
- }), Qe = /* @__PURE__ */ U(N2, [["__scopeId", "data-v-c489ef7b"]]);
2467
+ }), Qe = /* @__PURE__ */ j(N2, [["__scopeId", "data-v-c489ef7b"]]);
2468
2468
  Qe.install = (e) => {
2469
2469
  e.component("Tooltip", Qe);
2470
2470
  };
2471
2471
  const F2 = {
2472
2472
  key: 0,
2473
2473
  class: "ui-tag__icon"
2474
- }, P2 = { class: "ui-tag__label" }, K2 = ["aria-label"], U2 = /* @__PURE__ */ T({
2474
+ }, P2 = { class: "ui-tag__label" }, K2 = ["aria-label"], U2 = /* @__PURE__ */ S({
2475
2475
  __name: "Tag",
2476
2476
  props: {
2477
2477
  as: { default: "span" },
@@ -2484,44 +2484,44 @@ const F2 = {
2484
2484
  },
2485
2485
  emits: ["click", "remove"],
2486
2486
  setup(e, { emit: o }) {
2487
- const t = e, a = o, l = m(), s = I(() => t.clickable || t.as === "button" || t.as === "a"), i = I(() => [
2487
+ const t = e, a = o, l = m(), s = V(() => t.clickable || t.as === "button" || t.as === "a"), i = V(() => [
2488
2488
  `ui-tag--${t.variant}`,
2489
2489
  `ui-tag--${t.size}`,
2490
2490
  {
2491
2491
  "is-clickable": t.clickable,
2492
2492
  "is-removable": t.removable
2493
2493
  }
2494
- ]), n = I(() => t.clickable && t.as !== "button" && t.as !== "a"), r = (u) => {
2494
+ ]), n = V(() => t.clickable && t.as !== "button" && t.as !== "a"), r = (u) => {
2495
2495
  t.disabled || !s.value || a("click", u);
2496
- }, d = () => a("remove");
2496
+ }, c = () => a("remove");
2497
2497
  return (u, p) => (v(), J(Ve(e.as), {
2498
2498
  ref_key: "rootRef",
2499
2499
  ref: l,
2500
- class: re(["ui-tag", i.value]),
2500
+ class: le(["ui-tag", i.value]),
2501
2501
  "aria-disabled": e.disabled || void 0,
2502
2502
  tabindex: e.disabled ? -1 : n.value ? 0 : void 0,
2503
2503
  role: n.value ? "button" : void 0,
2504
2504
  onClick: r,
2505
2505
  onKeydown: [
2506
- p[0] || (p[0] = ce(le((g) => !e.disabled && s.value && r(g), ["prevent"]), ["enter"])),
2507
- p[1] || (p[1] = ce(le((g) => !e.disabled && s.value && r(g), ["prevent"]), ["space"]))
2506
+ p[0] || (p[0] = ve(ne((g) => !e.disabled && s.value && r(g), ["prevent"]), ["enter"])),
2507
+ p[1] || (p[1] = ve(ne((g) => !e.disabled && s.value && r(g), ["prevent"]), ["space"]))
2508
2508
  ]
2509
2509
  }, {
2510
- default: W(() => [
2510
+ default: G(() => [
2511
2511
  u.$slots.icon ? (v(), f("span", F2, [
2512
- j(u.$slots, "icon", {}, void 0, !0)
2512
+ Y(u.$slots, "icon", {}, void 0, !0)
2513
2513
  ])) : O("", !0),
2514
2514
  w("span", P2, [
2515
- j(u.$slots, "default", {}, void 0, !0)
2515
+ Y(u.$slots, "default", {}, void 0, !0)
2516
2516
  ]),
2517
2517
  e.removable ? (v(), f("button", {
2518
2518
  key: 1,
2519
2519
  class: "ui-tag__remove",
2520
2520
  type: "button",
2521
2521
  "aria-label": `Remove ${e.textContent}`,
2522
- onClick: le(d, ["stop"])
2522
+ onClick: ne(c, ["stop"])
2523
2523
  }, [
2524
- K(de, {
2524
+ U(de, {
2525
2525
  name: "close",
2526
2526
  size: 32
2527
2527
  })
@@ -2530,7 +2530,7 @@ const F2 = {
2530
2530
  _: 3
2531
2531
  }, 40, ["class", "aria-disabled", "tabindex", "role"]));
2532
2532
  }
2533
- }), j2 = /* @__PURE__ */ U(U2, [["__scopeId", "data-v-ea48b943"]]), Y2 = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], W2 = /* @__PURE__ */ T({
2533
+ }), j2 = /* @__PURE__ */ j(U2, [["__scopeId", "data-v-ea48b943"]]), Y2 = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], W2 = /* @__PURE__ */ S({
2534
2534
  __name: "Link",
2535
2535
  props: {
2536
2536
  target: {},
@@ -2557,19 +2557,19 @@ const F2 = {
2557
2557
  "aria-current": e.ariaCurrent,
2558
2558
  rel: e.target === "_blank" ? "noopener noreferrer" : void 0
2559
2559
  }, [
2560
- j(s.$slots, "default", {}, void 0, !0)
2560
+ Y(s.$slots, "default", {}, void 0, !0)
2561
2561
  ], 8, Y2));
2562
2562
  }
2563
- }), Xn = /* @__PURE__ */ U(W2, [["__scopeId", "data-v-0f5d7308"]]), Pe = (e, o, t, a) => I(() => {
2563
+ }), Xn = /* @__PURE__ */ j(W2, [["__scopeId", "data-v-0f5d7308"]]), Pe = (e, o, t, a) => V(() => {
2564
2564
  const l = [];
2565
2565
  return e.invalid && e.errorMessage && l.push(t), o.hint && l.push(a), l.length > 0 ? l.join(" ") : void 0;
2566
- }), Be = (e) => I(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), i1 = (e) => I(() => e.disabled === !0 ? "true" : void 0), X2 = (e, o, t) => {
2566
+ }), Be = (e) => V(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), i1 = (e) => V(() => e.disabled === !0 ? "true" : void 0), X2 = (e, o, t) => {
2567
2567
  o && (o.classList.add("focused"), t("focus", e));
2568
2568
  }, G2 = (e, o, t, a) => {
2569
2569
  ze(o, t), t && (t?.classList.remove("focused"), a("blur", e));
2570
2570
  }, ze = (e, o) => {
2571
2571
  !e || !o || (e.value.length > 0 ? o.classList.add("filled") : o.classList.remove("filled"));
2572
- }, J2 = ["id"], Ke = /* @__PURE__ */ T({
2572
+ }, J2 = ["id"], Ke = /* @__PURE__ */ S({
2573
2573
  __name: "Hint",
2574
2574
  props: {
2575
2575
  hintId: {}
@@ -2580,10 +2580,10 @@ const F2 = {
2580
2580
  id: e.hintId,
2581
2581
  class: "visually-hidden"
2582
2582
  }, [
2583
- j(o.$slots, "default")
2583
+ Y(o.$slots, "default")
2584
2584
  ], 8, J2)) : O("", !0);
2585
2585
  }
2586
- }), Q2 = ["id"], Ue = /* @__PURE__ */ T({
2586
+ }), Q2 = ["id"], Ue = /* @__PURE__ */ S({
2587
2587
  __name: "RequiredHint",
2588
2588
  props: {
2589
2589
  baseId: {},
@@ -2596,7 +2596,7 @@ const F2 = {
2596
2596
  class: "visually-hidden"
2597
2597
  }, " Required field ", 8, Q2)) : O("", !0);
2598
2598
  }
2599
- }), ea = ["id"], je = /* @__PURE__ */ T({
2599
+ }), ea = ["id"], je = /* @__PURE__ */ S({
2600
2600
  __name: "ErrorMessage",
2601
2601
  props: {
2602
2602
  errorId: {},
@@ -2609,9 +2609,9 @@ const F2 = {
2609
2609
  id: e.errorId,
2610
2610
  class: "error-text",
2611
2611
  role: "alert"
2612
- }, F(e.errorMessage), 9, ea)) : O("", !0);
2612
+ }, P(e.errorMessage), 9, ea)) : O("", !0);
2613
2613
  }
2614
- }), ta = ["for"], aa = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], oa = /* @__PURE__ */ T({
2614
+ }), ta = ["for"], aa = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], oa = /* @__PURE__ */ S({
2615
2615
  __name: "Input",
2616
2616
  props: /* @__PURE__ */ Q({
2617
2617
  id: {},
@@ -2627,49 +2627,49 @@ const F2 = {
2627
2627
  }),
2628
2628
  emits: /* @__PURE__ */ Q(["focus", "blur"], ["update:modelValue"]),
2629
2629
  setup(e, { emit: o }) {
2630
- const t = ve(e, "modelValue"), a = e, l = o, s = Ne(), i = ue(), n = `${i}-error`, r = `${i}-hint`, d = Be(s).value, u = m(!1), p = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), g = I(() => d ? `${r} ${i}-required-hint` : r), k = I(() => a.invalid === !0 && a.errorMessage ? n : void 0), c = I(() => a.type === "password" ? $.value ? "text" : "password" : a.type), C = I(() => {
2631
- const { type: y, ...V } = s;
2632
- return V;
2633
- }), $ = m(!1), L = () => $.value = !$.value, h = (y) => {
2634
- const V = y.target;
2635
- t.value = a.type === "number" ? Number(V.value) : V.value;
2630
+ const t = fe(e, "modelValue"), a = e, l = o, s = Ne(), i = ce(), n = `${i}-error`, r = `${i}-hint`, c = Be(s).value, u = m(!1), p = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), g = V(() => c ? `${r} ${i}-required-hint` : r), k = V(() => a.invalid === !0 && a.errorMessage ? n : void 0), d = V(() => a.type === "password" ? $.value ? "text" : "password" : a.type), C = V(() => {
2631
+ const { type: y, ...I } = s;
2632
+ return I;
2633
+ }), $ = m(!1), x = () => $.value = !$.value, h = (y) => {
2634
+ const I = y.target;
2635
+ t.value = a.type === "number" ? Number(I.value) : I.value;
2636
2636
  }, _ = (y) => {
2637
2637
  u.value = !0, l("focus", y);
2638
- }, S = (y) => {
2638
+ }, R = (y) => {
2639
2639
  u.value = !1, l("blur", y);
2640
2640
  };
2641
- return (y, V) => (v(), f("div", {
2642
- class: re(["input-box", { required: A(d), error: e.invalid, filled: p.value, focused: u.value }])
2641
+ return (y, I) => (v(), f("div", {
2642
+ class: le(["input-box", { required: D(c), error: e.invalid, filled: p.value, focused: u.value }])
2643
2643
  }, [
2644
2644
  w("label", {
2645
2645
  for: e.id,
2646
2646
  class: "label"
2647
- }, F(e.label), 9, ta),
2647
+ }, P(e.label), 9, ta),
2648
2648
  w("input", Ce({
2649
2649
  id: e.id,
2650
- type: c.value
2650
+ type: d.value
2651
2651
  }, C.value, {
2652
2652
  class: "input",
2653
2653
  onInput: h,
2654
2654
  onFocus: _,
2655
- onBlur: S,
2655
+ onBlur: R,
2656
2656
  value: t.value,
2657
- required: A(d),
2657
+ required: D(c),
2658
2658
  "aria-invalid": e.invalid ? "true" : void 0,
2659
2659
  "aria-errormessage": k.value,
2660
- "aria-describedby": A(Pe)(y.$props, y.$slots, n, g.value).value
2660
+ "aria-describedby": D(Pe)(y.$props, y.$slots, n, g.value).value
2661
2661
  }), null, 16, aa),
2662
- K(Ke, { hintId: r }, {
2663
- default: W(() => [
2664
- j(y.$slots, "hint", {}, void 0, !0)
2662
+ U(Ke, { hintId: r }, {
2663
+ default: G(() => [
2664
+ Y(y.$slots, "hint", {}, void 0, !0)
2665
2665
  ]),
2666
2666
  _: 3
2667
2667
  }),
2668
- K(Ue, {
2669
- baseId: A(i),
2670
- isRequired: A(d)
2668
+ U(Ue, {
2669
+ baseId: D(i),
2670
+ isRequired: D(c)
2671
2671
  }, null, 8, ["baseId", "isRequired"]),
2672
- K(je, {
2672
+ U(je, {
2673
2673
  errorId: n,
2674
2674
  invalid: e.invalid,
2675
2675
  errorMessage: e.errorMessage
@@ -2677,11 +2677,11 @@ const F2 = {
2677
2677
  e.type === "password" ? (v(), J(he, Ce({ key: 0 }, Object.keys(y.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
2678
2678
  type: "button",
2679
2679
  class: "btn-icon",
2680
- onClick: L,
2680
+ onClick: x,
2681
2681
  "aria-label": $.value ? "Hide password" : "Show password"
2682
2682
  }), {
2683
- default: W(() => [
2684
- K(de, {
2683
+ default: G(() => [
2684
+ U(de, {
2685
2685
  name: $.value ? "eyeOff" : "eye"
2686
2686
  }, null, 8, ["name"])
2687
2687
  ]),
@@ -2689,14 +2689,14 @@ const F2 = {
2689
2689
  }, 16, ["aria-label"])) : O("", !0)
2690
2690
  ], 2));
2691
2691
  }
2692
- }), Gn = /* @__PURE__ */ U(oa, [["__scopeId", "data-v-97f2485f"]]), na = ["data-size", "data-shape", "aria-label", "aria-busy"], la = {
2692
+ }), Gn = /* @__PURE__ */ j(oa, [["__scopeId", "data-v-97f2485f"]]), na = ["data-size", "data-shape", "aria-label", "aria-busy"], la = {
2693
2693
  key: 1,
2694
2694
  class: "ui-avatar__loading"
2695
2695
  }, ra = {
2696
2696
  key: 2,
2697
2697
  class: "ui-avatar__fallback",
2698
2698
  "aria-hidden": "true"
2699
- }, sa = /* @__PURE__ */ T({
2699
+ }, sa = /* @__PURE__ */ S({
2700
2700
  __name: "Avatar",
2701
2701
  props: {
2702
2702
  src: {},
@@ -2706,18 +2706,18 @@ const F2 = {
2706
2706
  shape: { default: "circle" }
2707
2707
  },
2708
2708
  setup(e) {
2709
- const o = e, t = m("loading"), a = I(() => o.src && t.value !== "error"), l = I(() => o.name ? o.name.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase() : ""), s = I(() => o.alt ? o.alt : o.name ? o.name : "Avatar"), i = () => t.value = "loaded", n = () => t.value = "error";
2709
+ const o = e, t = m("loading"), a = V(() => o.src && t.value !== "error"), l = V(() => o.name ? o.name.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase() : ""), s = V(() => o.alt ? o.alt : o.name ? o.name : "Avatar"), i = () => t.value = "loaded", n = () => t.value = "error";
2710
2710
  return X(
2711
2711
  () => o.src,
2712
2712
  () => o.src && (t.value = "loading")
2713
- ), ne(() => !o.src && (t.value = "error")), (r, d) => (v(), f("div", {
2713
+ ), ae(() => !o.src && (t.value = "error")), (r, c) => (v(), f("div", {
2714
2714
  class: "ui-avatar",
2715
2715
  "data-size": e.size,
2716
2716
  "data-shape": e.shape,
2717
2717
  "aria-label": a.value ? void 0 : s.value,
2718
2718
  "aria-busy": t.value === "loading" || void 0
2719
2719
  }, [
2720
- a.value ? (v(), J(xe, {
2720
+ a.value ? (v(), J(Le, {
2721
2721
  key: 0,
2722
2722
  src: e.src,
2723
2723
  alt: e.alt ?? "",
@@ -2725,13 +2725,13 @@ const F2 = {
2725
2725
  onLoad: i,
2726
2726
  onError: n
2727
2727
  }, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div", la)) : (v(), f("div", ra, [
2728
- j(r.$slots, "default", {}, () => [
2729
- me(F(l.value), 1)
2728
+ Y(r.$slots, "default", {}, () => [
2729
+ me(P(l.value), 1)
2730
2730
  ], !0)
2731
2731
  ]))
2732
2732
  ], 8, na));
2733
2733
  }
2734
- }), Jn = /* @__PURE__ */ U(sa, [["__scopeId", "data-v-e36c822a"]]), ia = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], ua = ["innerHTML"], da = ["id", "aria-disabled", "aria-selected", "onClick"], ca = ["innerHTML"], va = /* @__PURE__ */ T({
2734
+ }), Jn = /* @__PURE__ */ j(sa, [["__scopeId", "data-v-e36c822a"]]), ia = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], ua = ["innerHTML"], ca = ["id", "aria-disabled", "aria-selected", "onClick"], da = ["innerHTML"], va = /* @__PURE__ */ S({
2735
2735
  __name: "Select",
2736
2736
  props: /* @__PURE__ */ Q({
2737
2737
  id: {},
@@ -2745,86 +2745,95 @@ const F2 = {
2745
2745
  }),
2746
2746
  emits: /* @__PURE__ */ Q(["focus", "blur", "change", "click"], ["update:modelValue"]),
2747
2747
  setup(e, { emit: o }) {
2748
- const t = ve(e, "modelValue"), a = e, l = o, s = m(!1);
2749
- X(s, (D) => {
2750
- D ? document.addEventListener("mousedown", ee) : document.removeEventListener("mousedown", ee);
2748
+ const t = fe(e, "modelValue"), a = e, l = o, s = m(!1);
2749
+ X(s, (T) => {
2750
+ T ? document.addEventListener("mousedown", ee) : document.removeEventListener("mousedown", ee);
2751
2751
  });
2752
- const i = Ne(), n = m(!1), r = m(null), d = I(() => a.id ?? ue()), u = `${d.value}-label`, p = `${d.value}-listbox`, g = `${d.value}-error`, k = `${d.value}-hint`, c = `${d.value}-value`, C = m(null), $ = m(null), L = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), h = I(() => C.value !== null ? `${p}-option-${C.value}` : void 0), _ = Be(i).value, S = I(() => _ ? `${k} ${d.value}-required-hint` : k), y = I(() => s.value && h.value ? h.value : void 0), V = I(() => $.value !== null ? a.options[$.value]?.value : ""), b = (D) => {
2753
- n.value = !0, l("focus", D);
2754
- }, Z = (D) => {
2755
- const N = D.relatedTarget, te = r.value;
2756
- !te || te?.contains(N) || (n.value = !1, s.value = !1, l("blur", D));
2757
- }, B = (D) => {
2758
- s.value = !s.value, s.value && t.value.toString().length > 0 && (C.value = C.value ?? a.options.findIndex((N) => !N.disabled)), !(!a.options || a.options.length === 0) && l("click", D);
2759
- }, q = (D, N) => {
2760
- const te = r.value;
2761
- !te || D.disabled || ($.value = N, C.value = N, D && D.key && D.key.toString().length > 0 ? te.classList.add("filled") : te.classList.remove("filled"), t.value = D.key, l("change", D.key));
2762
- }, M = (D) => {
2763
- if (!s.value && ["ArrowDown", "ArrowUp"].includes(D.key)) {
2764
- s.value = !0, C.value = C.value ?? a.options.findIndex((N) => !N.disabled), D.preventDefault();
2752
+ const i = Ne(), n = m(!1), r = m(null), c = V(() => a.id ?? ce()), u = `${c.value}-label`, p = `${c.value}-listbox`, g = `${c.value}-error`, k = `${c.value}-hint`, d = `${c.value}-value`, C = m(null), $ = m(null), x = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), h = V(() => C.value !== null ? `${p}-option-${C.value}` : void 0), _ = Be(i).value, R = V(() => _ ? `${k} ${c.value}-required-hint` : k), y = V(() => s.value && h.value ? h.value : void 0), I = V(() => $.value !== null ? a.options[$.value]?.value : "");
2753
+ X(
2754
+ () => t.value,
2755
+ () => re()
2756
+ );
2757
+ const b = (T) => {
2758
+ n.value = !0, l("focus", T);
2759
+ }, A = (T) => {
2760
+ const N = T.relatedTarget, H = r.value;
2761
+ !H || H?.contains(N) || (n.value = !1, s.value = !1, l("blur", T));
2762
+ }, B = (T) => {
2763
+ s.value = !s.value, s.value && t.value.toString().length > 0 && (C.value = C.value ?? a.options.findIndex((N) => !N.disabled)), !(!a.options || a.options.length === 0) && l("click", T);
2764
+ }, q = (T, N) => {
2765
+ const H = r.value;
2766
+ !H || T.disabled || ($.value = N, C.value = N, T && T.key && T.key.toString().length > 0 ? H.classList.add("filled") : H.classList.remove("filled"), t.value = T.key, l("change", T.key));
2767
+ }, M = (T) => {
2768
+ if (!s.value && ["ArrowDown", "ArrowUp"].includes(T.key)) {
2769
+ s.value = !0, C.value = C.value ?? a.options.findIndex((N) => !N.disabled), T.preventDefault();
2765
2770
  return;
2766
2771
  }
2767
2772
  if (s.value) {
2768
- if (D.key === "ArrowDown" && (x(1), D.preventDefault()), D.key === "ArrowUp" && (x(-1), D.preventDefault()), D.key === "Home") {
2773
+ if (T.key === "ArrowDown" && (L(1), T.preventDefault()), T.key === "ArrowUp" && (L(-1), T.preventDefault()), T.key === "Home") {
2769
2774
  const N = E();
2770
- N >= 0 && (C.value = N), D.preventDefault();
2775
+ N >= 0 && (C.value = N), T.preventDefault();
2771
2776
  }
2772
- if (D.key === "End") {
2773
- const N = Y();
2774
- N >= 0 && (C.value = N), D.preventDefault();
2777
+ if (T.key === "End") {
2778
+ const N = W();
2779
+ N >= 0 && (C.value = N), T.preventDefault();
2775
2780
  }
2776
- if (D.key === "Enter" || D.key === " ") {
2781
+ if (T.key === "Enter" || T.key === " ") {
2777
2782
  if (C.value === null) return;
2778
2783
  const N = a.options[C.value];
2779
2784
  if (!N || N.disabled) return;
2780
- q(N, C.value), s.value = !1, D.preventDefault();
2785
+ q(N, C.value), s.value = !1, T.preventDefault();
2781
2786
  }
2782
- D.key === "Escape" && (s.value = !1);
2787
+ T.key === "Escape" && (s.value = !1);
2783
2788
  }
2784
- }, x = (D) => {
2789
+ }, L = (T) => {
2785
2790
  if (C.value === null) return;
2786
2791
  let N = C.value;
2787
2792
  do
2788
- N += D;
2793
+ N += T;
2789
2794
  while (N >= 0 && N < a.options.length && a.options[N]?.disabled);
2790
2795
  N >= 0 && N < a.options.length && (C.value = N);
2791
- }, E = () => a.options.findIndex((D) => !D.disabled), Y = () => [...a.options].reverse().findIndex((D) => !D.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((D) => !D.disabled) : -1, ee = (D) => {
2796
+ }, E = () => a.options.findIndex((T) => !T.disabled), W = () => [...a.options].reverse().findIndex((T) => !T.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((T) => !T.disabled) : -1, ee = (T) => {
2792
2797
  const N = r.value;
2793
- !N || N.contains(D.target) || (s.value = !1);
2798
+ !N || N.contains(T.target) || (s.value = !1);
2794
2799
  };
2795
- return He(() => {
2800
+ Ie(() => {
2796
2801
  document.removeEventListener("mousedown", ee);
2797
- }), ne(() => {
2802
+ });
2803
+ const re = () => {
2804
+ const T = a.options.findIndex((N) => N.key === t.value);
2805
+ if (T > -1) {
2806
+ $.value = T, C.value = T;
2807
+ const N = r.value;
2808
+ N && N.classList.add("filled");
2809
+ }
2810
+ };
2811
+ return ae(() => {
2798
2812
  if (t.value.toString().length > 0) {
2799
2813
  if (!a.options || a.options.length === 0) return;
2800
- const D = a.options.findIndex((N) => N.key === t.value);
2801
- if (D > -1) {
2802
- $.value = D, C.value = D;
2803
- const N = r.value;
2804
- N && N.classList.add("filled");
2805
- }
2814
+ re();
2806
2815
  }
2807
- }), (D, N) => (v(), f("div", {
2816
+ }), (T, N) => (v(), f("div", {
2808
2817
  ref_key: "selectRef",
2809
2818
  ref: r,
2810
- class: re(["select-box", { required: Object.keys(D.$attrs).includes("required"), error: e.invalid, filled: L.value, focused: n.value }])
2819
+ class: le(["select-box", { required: Object.keys(T.$attrs).includes("required"), error: e.invalid, filled: x.value, focused: n.value }])
2811
2820
  }, [
2812
2821
  w("button", Ce({
2813
- id: d.value,
2822
+ id: c.value,
2814
2823
  class: "select-btn",
2815
2824
  role: "combobox",
2816
2825
  type: "button"
2817
- }, D.$attrs, {
2826
+ }, T.$attrs, {
2818
2827
  "aria-haspopup": "listbox",
2819
2828
  "aria-expanded": s.value,
2820
2829
  "aria-controls": p,
2821
2830
  "aria-invalid": e.invalid ? "true" : void 0,
2822
- "aria-labelledby": `${u} ${c}`,
2823
- "aria-required": A(_),
2824
- "aria-describedby": A(Pe)(D.$props, D.$slots, g, S.value).value,
2831
+ "aria-labelledby": `${u} ${d}`,
2832
+ "aria-required": D(_),
2833
+ "aria-describedby": D(Pe)(T.$props, T.$slots, g, R.value).value,
2825
2834
  "aria-activedescendant": y.value,
2826
- "aria-disabled": A(i).disabled ? "true" : void 0,
2827
- onBlur: Z,
2835
+ "aria-disabled": D(i).disabled ? "true" : void 0,
2836
+ onBlur: A,
2828
2837
  onFocus: b,
2829
2838
  onClick: B,
2830
2839
  onKeydown: M,
@@ -2833,67 +2842,67 @@ const F2 = {
2833
2842
  w("span", {
2834
2843
  id: u,
2835
2844
  class: "label"
2836
- }, F(e.label), 1),
2845
+ }, P(e.label), 1),
2837
2846
  w("span", {
2838
- id: c,
2847
+ id: d,
2839
2848
  class: "selected-object",
2840
2849
  "aria-live": "polite",
2841
2850
  "aria-atomic": "true",
2842
- innerHTML: V.value
2851
+ innerHTML: I.value
2843
2852
  }, null, 8, ua),
2844
- K(de, {
2853
+ U(de, {
2845
2854
  name: "directionDown",
2846
2855
  "aria-hidden": "true"
2847
2856
  })
2848
2857
  ], 16, ia),
2849
- K($e, { name: "select" }, {
2850
- default: W(() => [
2858
+ U($e, { name: "select" }, {
2859
+ default: G(() => [
2851
2860
  we(w("ul", {
2852
2861
  id: p,
2853
2862
  role: "listbox",
2854
2863
  class: "options"
2855
2864
  }, [
2856
- (v(!0), f(ae, null, ie(e.options, (te, fe) => (v(), f("li", {
2857
- id: `${p}-option-${fe}`,
2858
- key: fe,
2865
+ (v(!0), f(te, null, ue(e.options, (H, z) => (v(), f("li", {
2866
+ id: `${p}-option-${z}`,
2867
+ key: z,
2859
2868
  role: "option",
2860
- class: re(["option", { "focus-visible": C.value === fe }]),
2861
- "aria-disabled": te.disabled,
2862
- "aria-selected": $.value === fe,
2863
- onClick: (R) => !te.disabled && q(te, fe)
2869
+ class: le(["option", { "focus-visible": C.value === z }]),
2870
+ "aria-disabled": H.disabled,
2871
+ "aria-selected": $.value === z,
2872
+ onClick: (Z) => !H.disabled && q(H, z)
2864
2873
  }, [
2865
2874
  w("div", {
2866
2875
  class: "option-value",
2867
- innerHTML: te.value
2868
- }, null, 8, ca)
2869
- ], 10, da))), 128))
2876
+ innerHTML: H.value
2877
+ }, null, 8, da)
2878
+ ], 10, ca))), 128))
2870
2879
  ], 512), [
2871
2880
  [qe, s.value]
2872
2881
  ])
2873
2882
  ]),
2874
2883
  _: 1
2875
2884
  }),
2876
- K(Ke, { hintId: k }, {
2877
- default: W(() => [
2878
- j(D.$slots, "hint", {}, void 0, !0)
2885
+ U(Ke, { hintId: k }, {
2886
+ default: G(() => [
2887
+ Y(T.$slots, "hint", {}, void 0, !0)
2879
2888
  ]),
2880
2889
  _: 3
2881
2890
  }),
2882
- K(Ue, {
2883
- baseId: d.value,
2884
- isRequired: A(_)
2891
+ U(Ue, {
2892
+ baseId: c.value,
2893
+ isRequired: D(_)
2885
2894
  }, null, 8, ["baseId", "isRequired"]),
2886
- K(je, {
2895
+ U(je, {
2887
2896
  errorId: g,
2888
2897
  invalid: e.invalid,
2889
2898
  errorMessage: e.errorMessage
2890
2899
  }, null, 8, ["invalid", "errorMessage"])
2891
2900
  ], 2));
2892
2901
  }
2893
- }), Qn = /* @__PURE__ */ U(va, [["__scopeId", "data-v-1c626d86"]]), fa = ["aria-label"], pa = ["onKeydown"], Ca = {
2902
+ }), Qn = /* @__PURE__ */ j(va, [["__scopeId", "data-v-31f7b19f"]]), fa = ["aria-label"], pa = ["onKeydown"], Ca = {
2894
2903
  key: 1,
2895
2904
  class: "rs-gallery-thumbs"
2896
- }, ma = ["aria-selected"], ha = ["onClick"], ya = /* @__PURE__ */ T({
2905
+ }, ma = ["aria-selected"], ha = ["onClick"], ya = /* @__PURE__ */ S({
2897
2906
  __name: "GalleryCarousel",
2898
2907
  props: /* @__PURE__ */ Q({
2899
2908
  images: {},
@@ -2914,11 +2923,11 @@ const F2 = {
2914
2923
  }),
2915
2924
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
2916
2925
  setup(e, { emit: o }) {
2917
- const t = ve(e, "modelValue"), a = e, l = o, s = m([]), i = m("next"), n = m(null), r = `gallery-caption-${ue()}`, d = m(null), u = I(() => t.value), p = I(() => a.images[u.value]), g = (h, _) => {
2926
+ const t = fe(e, "modelValue"), a = e, l = o, s = m([]), i = m("next"), n = m(null), r = `gallery-caption-${ce()}`, c = m(null), u = V(() => t.value), p = V(() => a.images[u.value]), g = (h, _) => {
2918
2927
  h && (s.value[_] = h);
2919
2928
  }, k = (h) => {
2920
2929
  h !== u.value && (i.value = h > u.value ? "next" : "prev", t.value = h, l("change", h));
2921
- }, c = () => {
2930
+ }, d = () => {
2922
2931
  if (u.value === a.images.length - 1) {
2923
2932
  a.loop && k(0);
2924
2933
  return;
@@ -2931,8 +2940,8 @@ const F2 = {
2931
2940
  }
2932
2941
  k(u.value - 1);
2933
2942
  }, $ = () => {
2934
- d.value && (n.value = d.value.offsetHeight);
2935
- }, L = () => {
2943
+ c.value && (n.value = c.value.offsetHeight);
2944
+ }, x = () => {
2936
2945
  n.value = null;
2937
2946
  };
2938
2947
  return X(u, async (h) => {
@@ -2955,23 +2964,23 @@ const F2 = {
2955
2964
  }, [
2956
2965
  w("div", {
2957
2966
  ref_key: "previewRef",
2958
- ref: d,
2967
+ ref: c,
2959
2968
  tabindex: "0",
2960
2969
  class: "rs-gallery-review",
2961
2970
  style: ye(n.value ? { height: `${n.value}px` } : void 0),
2962
2971
  onKeydown: [
2963
- ce(le(C, ["prevent"]), ["left"]),
2964
- ce(le(c, ["prevent"]), ["right"])
2972
+ ve(ne(C, ["prevent"]), ["left"]),
2973
+ ve(ne(d, ["prevent"]), ["right"])
2965
2974
  ]
2966
2975
  }, [
2967
- K($e, {
2976
+ U($e, {
2968
2977
  name: `rs-gallery-slide-${i.value}`,
2969
2978
  mode: "out-in",
2970
2979
  onBeforeLeave: $,
2971
- onAfterEnter: L
2980
+ onAfterEnter: x
2972
2981
  }, {
2973
- default: W(() => [
2974
- p.value ? (v(), J(xe, {
2982
+ default: G(() => [
2983
+ p.value ? (v(), J(Le, {
2975
2984
  key: p.value.src,
2976
2985
  src: p.value.src,
2977
2986
  alt: p.value.alt || "",
@@ -2980,7 +2989,7 @@ const F2 = {
2980
2989
  ]),
2981
2990
  _: 1
2982
2991
  }, 8, ["name"]),
2983
- j(h.$slots, "overlay", {
2992
+ Y(h.$slots, "overlay", {
2984
2993
  image: p.value,
2985
2994
  index: u.value
2986
2995
  }, void 0, !0)
@@ -2989,21 +2998,21 @@ const F2 = {
2989
2998
  key: 0,
2990
2999
  id: r,
2991
3000
  class: "rs-gallery-caption"
2992
- }, F(p.value.title), 1)) : O("", !0),
3001
+ }, P(p.value.title), 1)) : O("", !0),
2993
3002
  e.showThumbnails ? (v(), f("ul", Ca, [
2994
- (v(!0), f(ae, null, ie(e.images, (S, y) => (v(), f("li", {
2995
- key: S.src,
3003
+ (v(!0), f(te, null, ue(e.images, (R, y) => (v(), f("li", {
3004
+ key: R.src,
2996
3005
  ref_for: !0,
2997
- ref: (V) => g(V, y),
3006
+ ref: (I) => g(I, y),
2998
3007
  "aria-selected": u.value === y
2999
3008
  }, [
3000
3009
  w("button", {
3001
3010
  type: "button",
3002
- class: re(["rs-gallery-thumb", { active: u.value === y }]),
3003
- onClick: (V) => k(y)
3011
+ class: le(["rs-gallery-thumb", { active: u.value === y }]),
3012
+ onClick: (I) => k(y)
3004
3013
  }, [
3005
- K(xe, {
3006
- src: S.src,
3014
+ U(Le, {
3015
+ src: R.src,
3007
3016
  alt: `Select image ${y + 1}`,
3008
3017
  transform: e.transformThumbnails
3009
3018
  }, null, 8, ["src", "alt", "transform"])
@@ -3012,7 +3021,7 @@ const F2 = {
3012
3021
  ])) : O("", !0)
3013
3022
  ], 8, fa));
3014
3023
  }
3015
- }), u1 = /* @__PURE__ */ U(ya, [["__scopeId", "data-v-dcfacff6"]]), ga = ["aria-label"], ba = ["onClick"], ka = /* @__PURE__ */ T({
3024
+ }), u1 = /* @__PURE__ */ j(ya, [["__scopeId", "data-v-dcfacff6"]]), ga = ["aria-label"], ba = ["onClick"], ka = /* @__PURE__ */ S({
3016
3025
  __name: "GalleryGrid",
3017
3026
  props: {
3018
3027
  images: {},
@@ -3033,13 +3042,13 @@ const F2 = {
3033
3042
  role: "list",
3034
3043
  "aria-label": e.ariaLabel || "Image grid gallery"
3035
3044
  }, [
3036
- (v(!0), f(ae, null, ie(e.images, (a, l) => (v(), f("button", {
3045
+ (v(!0), f(te, null, ue(e.images, (a, l) => (v(), f("button", {
3037
3046
  key: a.src,
3038
3047
  type: "button",
3039
3048
  class: "grid-item",
3040
3049
  onClick: (s) => o.$emit("change", l)
3041
3050
  }, [
3042
- K(xe, {
3051
+ U(Le, {
3043
3052
  src: a.src,
3044
3053
  alt: a.alt || "",
3045
3054
  transform: e.transform
@@ -3047,9 +3056,9 @@ const F2 = {
3047
3056
  ], 8, ba))), 128))
3048
3057
  ], 12, ga));
3049
3058
  }
3050
- }), d1 = /* @__PURE__ */ U(ka, [["__scopeId", "data-v-17067a4b"]]), _e = /* @__PURE__ */ Symbol("ModalContext");
3059
+ }), c1 = /* @__PURE__ */ j(ka, [["__scopeId", "data-v-17067a4b"]]), _e = /* @__PURE__ */ Symbol("ModalContext");
3051
3060
  let Te = 0, e1 = 0, Ze = null;
3052
- const Oe = T({
3061
+ const Oe = S({
3053
3062
  name: "Modal",
3054
3063
  props: {
3055
3064
  motion: {
@@ -3065,14 +3074,14 @@ const Oe = T({
3065
3074
  },
3066
3075
  emits: ["update:open", "opened", "closed"],
3067
3076
  setup(e, { emit: o, slots: t }) {
3068
- const a = m(!1), l = m(e.open), s = ue(), i = `modal-title-${s}`, n = `modal-desc-${s}`;
3077
+ const a = m(!1), l = m(e.open), s = ce(), i = `modal-title-${s}`, n = `modal-desc-${s}`;
3069
3078
  X(() => e.open, (p) => l.value = p), X(l, (p) => {
3070
3079
  o("update:open", p), o(p ? "opened" : "closed");
3071
3080
  });
3072
- const r = () => l.value = !1, d = I(() => e.motion), u = I(() => e.size);
3081
+ const r = () => l.value = !1, c = V(() => e.motion), u = V(() => e.size);
3073
3082
  return ge(_e, {
3074
3083
  isOpen: l,
3075
- motion: d,
3084
+ motion: c,
3076
3085
  size: u,
3077
3086
  close: r,
3078
3087
  closeOnOverlay: e.closeOnOverlay,
@@ -3081,10 +3090,10 @@ const Oe = T({
3081
3090
  hasTitle: a
3082
3091
  }), () => t.default?.();
3083
3092
  }
3084
- }), c1 = T({
3093
+ }), d1 = S({
3085
3094
  name: "ModalContent",
3086
3095
  setup(e, { slots: o }) {
3087
- const t = se(_e);
3096
+ const t = ie(_e);
3088
3097
  if (!t) throw new Error("ModalContent components must be used inside <Modal>");
3089
3098
  const a = m(null), l = ++Te, s = (u) => {
3090
3099
  u.key === "Escape" && l === Te && t.close();
@@ -3100,21 +3109,21 @@ const Oe = T({
3100
3109
  u.setAttribute("tabindex", "-1"), u.focus();
3101
3110
  return;
3102
3111
  }
3103
- const g = p[0], k = p[p.length - 1], c = (C) => {
3112
+ const g = p[0], k = p[p.length - 1], d = (C) => {
3104
3113
  C.key === "Tab" && (C.shiftKey && document.activeElement === g ? (C.preventDefault(), k?.focus()) : !C.shiftKey && document.activeElement === k && (C.preventDefault(), g?.focus()));
3105
3114
  };
3106
- u.addEventListener("keydown", c), g?.focus(), i = () => {
3107
- u.removeEventListener("keydown", c), i = null;
3115
+ u.addEventListener("keydown", d), g?.focus(), i = () => {
3116
+ u.removeEventListener("keydown", d), i = null;
3108
3117
  };
3109
3118
  }, r = () => {
3110
3119
  ++e1 === 1 && (document.body.style.overflow = "hidden");
3111
- }, d = () => {
3120
+ }, c = () => {
3112
3121
  --e1 === 0 && (document.body.style.overflow = "");
3113
3122
  };
3114
- return () => P(
3115
- Ie,
3123
+ return () => K(
3124
+ He,
3116
3125
  { to: "body" },
3117
- P(
3126
+ K(
3118
3127
  $e,
3119
3128
  {
3120
3129
  name: `modal-${t.motion.value}`,
@@ -3126,17 +3135,17 @@ const Oe = T({
3126
3135
  a.value && (n(a.value), document.addEventListener("keydown", s));
3127
3136
  },
3128
3137
  onAfterLeave: () => {
3129
- Te--, document.removeEventListener("keydown", s), i?.(), d(), Ze?.focus(), Ze = null;
3138
+ Te--, document.removeEventListener("keydown", s), i?.(), c(), Ze?.focus(), Ze = null;
3130
3139
  }
3131
3140
  },
3132
3141
  {
3133
- default: () => t.isOpen.value ? P(
3142
+ default: () => t.isOpen.value ? K(
3134
3143
  "div",
3135
3144
  {
3136
3145
  class: "modal-overlay",
3137
3146
  onClick: () => t.closeOnOverlay && t.close()
3138
3147
  },
3139
- P(
3148
+ K(
3140
3149
  "div",
3141
3150
  {
3142
3151
  ref: a,
@@ -3154,34 +3163,34 @@ const Oe = T({
3154
3163
  )
3155
3164
  );
3156
3165
  }
3157
- }), v1 = T({
3166
+ }), v1 = S({
3158
3167
  name: "ModalTitle",
3159
3168
  setup(e, { slots: o }) {
3160
- const t = se(_e);
3169
+ const t = ie(_e);
3161
3170
  if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
3162
- return t.hasTitle.value = !0, () => P("h2", { id: t.labelId }, o.default?.());
3171
+ return t.hasTitle.value = !0, () => K("h2", { id: t.labelId }, o.default?.());
3163
3172
  }
3164
- }), f1 = T({
3173
+ }), f1 = S({
3165
3174
  name: "ModalHeader",
3166
3175
  setup(e, { slots: o }) {
3167
- return () => P("div", { class: "modal-header" }, o.default?.());
3176
+ return () => K("div", { class: "modal-header" }, o.default?.());
3168
3177
  }
3169
- }), p1 = T({
3178
+ }), p1 = S({
3170
3179
  name: "ModalBody",
3171
3180
  setup(e, { slots: o }) {
3172
- return () => P("div", { class: "modal-body" }, o.default?.());
3181
+ return () => K("div", { class: "modal-body" }, o.default?.());
3173
3182
  }
3174
- }), el = T({
3183
+ }), el = S({
3175
3184
  name: "ModalFooter",
3176
3185
  setup(e, { slots: o }) {
3177
- return () => P("div", { class: "modal-footer" }, o.default?.());
3186
+ return () => K("div", { class: "modal-footer" }, o.default?.());
3178
3187
  }
3179
- }), C1 = T({
3188
+ }), C1 = S({
3180
3189
  name: "ModalClose",
3181
3190
  setup() {
3182
- const e = se(_e);
3191
+ const e = ie(_e);
3183
3192
  if (!e) throw new Error("ModalClose components must be used inside <Modal>");
3184
- return () => P(
3193
+ return () => K(
3185
3194
  "button",
3186
3195
  {
3187
3196
  class: "modal-close",
@@ -3189,16 +3198,16 @@ const Oe = T({
3189
3198
  "aria-label": "Close modal",
3190
3199
  onClick: e.close
3191
3200
  },
3192
- P(de, { name: "close", size: 32 })
3201
+ K(de, { name: "close", size: 32 })
3193
3202
  );
3194
3203
  }
3195
3204
  });
3196
3205
  Object.assign(Oe, {
3197
3206
  install(e) {
3198
- e.component("Modal", Oe), e.component("ModalBody", p1), e.component("ModalTitle", v1), e.component("ModalClose", C1), e.component("ModalHeader", f1), e.component("ModalContent", c1);
3207
+ e.component("Modal", Oe), e.component("ModalBody", p1), e.component("ModalTitle", v1), e.component("ModalClose", C1), e.component("ModalHeader", f1), e.component("ModalContent", d1);
3199
3208
  }
3200
3209
  });
3201
- const wa = /* @__PURE__ */ T({
3210
+ const wa = /* @__PURE__ */ S({
3202
3211
  __name: "GalleryGridWithLightbox",
3203
3212
  props: {
3204
3213
  images: {},
@@ -3216,37 +3225,37 @@ const wa = /* @__PURE__ */ T({
3216
3225
  const o = m(0), t = m(!1), a = (s) => {
3217
3226
  o.value = s, t.value = !0;
3218
3227
  }, l = () => t.value = !1;
3219
- return (s, i) => (v(), f(ae, null, [
3220
- K(d1, {
3228
+ return (s, i) => (v(), f(te, null, [
3229
+ U(c1, {
3221
3230
  images: e.images,
3222
3231
  onChange: a,
3223
3232
  "aria-label": e.ariaLabel,
3224
3233
  transform: e.transform
3225
3234
  }, null, 8, ["images", "aria-label", "transform"]),
3226
- K(A(Oe), {
3235
+ U(D(Oe), {
3227
3236
  open: t.value,
3228
3237
  "onUpdate:open": i[2] || (i[2] = (n) => t.value = n),
3229
3238
  motion: "fade",
3230
3239
  size: "xl"
3231
3240
  }, {
3232
- default: W(() => [
3233
- K(A(c1), null, {
3234
- default: W(() => [
3235
- K(A(f1), null, {
3236
- default: W(() => [
3237
- K(A(v1), null, {
3238
- default: W(() => [...i[3] || (i[3] = [
3241
+ default: G(() => [
3242
+ U(D(d1), null, {
3243
+ default: G(() => [
3244
+ U(D(f1), null, {
3245
+ default: G(() => [
3246
+ U(D(v1), null, {
3247
+ default: G(() => [...i[3] || (i[3] = [
3239
3248
  me("Image Gallery", -1)
3240
3249
  ])]),
3241
3250
  _: 1
3242
3251
  }),
3243
- K(A(C1))
3252
+ U(D(C1))
3244
3253
  ]),
3245
3254
  _: 1
3246
3255
  }),
3247
- K(A(p1), null, {
3248
- default: W(() => [
3249
- K(u1, {
3256
+ U(D(p1), null, {
3257
+ default: G(() => [
3258
+ U(u1, {
3250
3259
  modelValue: o.value,
3251
3260
  "onUpdate:modelValue": i[0] || (i[0] = (n) => o.value = n),
3252
3261
  images: e.images,
@@ -3266,7 +3275,7 @@ const wa = /* @__PURE__ */ T({
3266
3275
  }, 8, ["open"])
3267
3276
  ], 64));
3268
3277
  }
3269
- }), Ma = { class: "rs-gallery-masonry" }, La = /* @__PURE__ */ T({
3278
+ }), Ma = { class: "rs-gallery-masonry" }, xa = /* @__PURE__ */ S({
3270
3279
  __name: "GalleryMasonry",
3271
3280
  props: {
3272
3281
  images: {},
@@ -3281,11 +3290,11 @@ const wa = /* @__PURE__ */ T({
3281
3290
  },
3282
3291
  setup(e) {
3283
3292
  return (o, t) => (v(), f("div", Ma, [
3284
- (v(!0), f(ae, null, ie(e.images, (a) => (v(), f("button", {
3293
+ (v(!0), f(te, null, ue(e.images, (a) => (v(), f("button", {
3285
3294
  key: a.src,
3286
3295
  class: "masonry-item"
3287
3296
  }, [
3288
- K(xe, {
3297
+ U(Le, {
3289
3298
  src: a.src,
3290
3299
  alt: a.alt || "",
3291
3300
  transform: e.transform
@@ -3293,11 +3302,11 @@ const wa = /* @__PURE__ */ T({
3293
3302
  ]))), 128))
3294
3303
  ]));
3295
3304
  }
3296
- }), xa = /* @__PURE__ */ U(La, [["__scopeId", "data-v-afb75845"]]), $a = {
3305
+ }), La = /* @__PURE__ */ j(xa, [["__scopeId", "data-v-afb75845"]]), $a = {
3297
3306
  class: "rs-image-gallery",
3298
3307
  role: "region",
3299
3308
  "aria-label": "Image gallery"
3300
- }, Va = /* @__PURE__ */ T({
3309
+ }, Va = /* @__PURE__ */ S({
3301
3310
  __name: "ImageGallery",
3302
3311
  props: /* @__PURE__ */ Q({
3303
3312
  images: {},
@@ -3318,7 +3327,7 @@ const wa = /* @__PURE__ */ T({
3318
3327
  }),
3319
3328
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
3320
3329
  setup(e, { emit: o }) {
3321
- const t = ve(e, "modelValue"), a = o, l = I({
3330
+ const t = fe(e, "modelValue"), a = o, l = V({
3322
3331
  get: () => t.value ?? 0,
3323
3332
  set: (i) => {
3324
3333
  t.value = i, a("change", i);
@@ -3335,7 +3344,7 @@ const wa = /* @__PURE__ */ T({
3335
3344
  transform: e.transform,
3336
3345
  "transform-thumbnails": e.transformThumbnails,
3337
3346
  "show-thumbnails": e.showThumbnails
3338
- }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), J(d1, {
3347
+ }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), J(c1, {
3339
3348
  key: 1,
3340
3349
  modelValue: l.value,
3341
3350
  "onUpdate:modelValue": n[1] || (n[1] = (r) => l.value = r),
@@ -3352,7 +3361,7 @@ const wa = /* @__PURE__ */ T({
3352
3361
  images: e.images,
3353
3362
  transform: e.transform,
3354
3363
  "aria-label": e.ariaLabel
3355
- }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), J(xa, {
3364
+ }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), J(La, {
3356
3365
  key: 3,
3357
3366
  modelValue: l.value,
3358
3367
  "onUpdate:modelValue": n[3] || (n[3] = (r) => l.value = r),
@@ -3362,16 +3371,16 @@ const wa = /* @__PURE__ */ T({
3362
3371
  }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : O("", !0)
3363
3372
  ]));
3364
3373
  }
3365
- }), t1 = /* @__PURE__ */ U(Va, [["__scopeId", "data-v-d6be1b96"]]);
3374
+ }), t1 = /* @__PURE__ */ j(Va, [["__scopeId", "data-v-d6be1b96"]]);
3366
3375
  t1.install = (e) => e.component("ImageGallery", t1);
3367
- const Ha = ["aria-busy"], Ia = {
3376
+ const Ia = ["aria-busy"], Ha = {
3368
3377
  key: 0,
3369
3378
  class: "message",
3370
3379
  "aria-hidden": "true"
3371
3380
  }, Ba = {
3372
3381
  class: "message sr-only",
3373
3382
  "aria-atomic": "true"
3374
- }, _a = /* @__PURE__ */ T({
3383
+ }, _a = /* @__PURE__ */ S({
3375
3384
  __name: "Spinner",
3376
3385
  props: {
3377
3386
  message: {}
@@ -3389,7 +3398,7 @@ const Ha = ["aria-busy"], Ia = {
3389
3398
  (n, r) => {
3390
3399
  n !== r && (l.value = n || "", i());
3391
3400
  }
3392
- ), ne(s), be(i), (n, r) => (v(), f("div", {
3401
+ ), ae(s), be(i), (n, r) => (v(), f("div", {
3393
3402
  class: "spinner-container",
3394
3403
  role: "status",
3395
3404
  "aria-live": "polite",
@@ -3399,11 +3408,11 @@ const Ha = ["aria-busy"], Ia = {
3399
3408
  class: "spinner",
3400
3409
  "aria-hidden": "true"
3401
3410
  }, null, -1)),
3402
- e.message ? (v(), f("span", Ia, F(l.value), 1)) : O("", !0),
3403
- w("span", Ba, F(e.message || "Loading"), 1)
3404
- ], 8, Ha));
3411
+ e.message ? (v(), f("span", Ha, P(l.value), 1)) : O("", !0),
3412
+ w("span", Ba, P(e.message || "Loading"), 1)
3413
+ ], 8, Ia));
3405
3414
  }
3406
- }), m1 = /* @__PURE__ */ U(_a, [["__scopeId", "data-v-e61a1cf5"]]), Da = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], Ra = {
3415
+ }), m1 = /* @__PURE__ */ j(_a, [["__scopeId", "data-v-e61a1cf5"]]), Da = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], Ra = {
3407
3416
  class: "checkbox-control",
3408
3417
  "aria-hidden": "true"
3409
3418
  }, Aa = {
@@ -3413,7 +3422,7 @@ const Ha = ["aria-busy"], Ia = {
3413
3422
  key: 1,
3414
3423
  class: "indeterminate",
3415
3424
  "view-box": "0 0 16 16"
3416
- }, Ta = { class: "checkbox-label" }, Za = /* @__PURE__ */ T({
3425
+ }, Ta = { class: "checkbox-label" }, Za = /* @__PURE__ */ S({
3417
3426
  __name: "Checkbox",
3418
3427
  props: /* @__PURE__ */ Q({
3419
3428
  id: {},
@@ -3427,7 +3436,7 @@ const Ha = ["aria-busy"], Ia = {
3427
3436
  }),
3428
3437
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
3429
3438
  setup(e, { emit: o }) {
3430
- const t = o, a = ve(e, "modelValue"), l = e, s = ue(), i = I(() => l.id ?? `checkbox-${s}`), n = m(null), r = i1(l).value, d = I(() => l.required ? !0 : void 0), u = I(() => l.triState && a.value === void 0 ? "mixed" : void 0);
3439
+ const t = o, a = fe(e, "modelValue"), l = e, s = ce(), i = V(() => l.id ?? `checkbox-${s}`), n = m(null), r = i1(l).value, c = V(() => l.required ? !0 : void 0), u = V(() => l.triState && a.value === void 0 ? "mixed" : void 0);
3431
3440
  X(
3432
3441
  () => a.value,
3433
3442
  (g) => {
@@ -3446,20 +3455,20 @@ const Ha = ["aria-busy"], Ia = {
3446
3455
  }
3447
3456
  };
3448
3457
  return (g, k) => (v(), f("label", {
3449
- class: re(["checkbox-root", { required: d.value, error: e.invalid }])
3458
+ class: le(["checkbox-root", { required: c.value, error: e.invalid }])
3450
3459
  }, [
3451
3460
  w("input", {
3452
3461
  id: i.value,
3453
3462
  type: "checkbox",
3454
3463
  class: "checkbox",
3455
- required: d.value,
3464
+ required: c.value,
3456
3465
  checked: a.value === !0,
3457
3466
  disabled: e.disabled,
3458
3467
  "aria-invalid": e.invalid ? "true" : void 0,
3459
- "aria-disabled": A(r),
3468
+ "aria-disabled": D(r),
3460
3469
  "aria-checked": u.value,
3461
- onClick: k[0] || (k[0] = (c) => e.triState ? p(c) : void 0),
3462
- onChange: k[1] || (k[1] = (c) => e.triState ? void 0 : p(c)),
3470
+ onClick: k[0] || (k[0] = (d) => e.triState ? p(d) : void 0),
3471
+ onChange: k[1] || (k[1] = (d) => e.triState ? void 0 : p(d)),
3463
3472
  ref_key: "inputRef",
3464
3473
  ref: n
3465
3474
  }, null, 40, Da),
@@ -3477,11 +3486,11 @@ const Ha = ["aria-busy"], Ia = {
3477
3486
  ])])) : O("", !0)
3478
3487
  ]),
3479
3488
  w("span", Ta, [
3480
- j(g.$slots, "default", {}, void 0, !0)
3489
+ Y(g.$slots, "default", {}, void 0, !0)
3481
3490
  ])
3482
3491
  ], 2));
3483
3492
  }
3484
- }), tl = /* @__PURE__ */ U(Za, [["__scopeId", "data-v-3a0c4f73"]]), Ea = ["for"], za = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Oa = /* @__PURE__ */ T({
3493
+ }), tl = /* @__PURE__ */ j(Za, [["__scopeId", "data-v-3a0c4f73"]]), Ea = ["for"], za = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Oa = /* @__PURE__ */ S({
3485
3494
  __name: "Textarea",
3486
3495
  props: /* @__PURE__ */ Q({
3487
3496
  id: {},
@@ -3497,53 +3506,53 @@ const Ha = ["aria-busy"], Ia = {
3497
3506
  }),
3498
3507
  emits: /* @__PURE__ */ Q(["focus", "blur"], ["update:modelValue"]),
3499
3508
  setup(e, { emit: o }) {
3500
- const t = ve(e, "modelValue"), a = Ne(), l = Fe(), s = o, i = e, n = m(null), r = m(null), d = ue(), u = `${d}-error`, p = `${d}-hint`, g = Be(a).value, k = I(() => g ? `${p} ${d}-required-hint` : p), c = Pe(i, l, u, k.value).value, C = (L) => {
3509
+ const t = fe(e, "modelValue"), a = Ne(), l = Fe(), s = o, i = e, n = m(null), r = m(null), c = ce(), u = `${c}-error`, p = `${c}-hint`, g = Be(a).value, k = V(() => g ? `${p} ${c}-required-hint` : p), d = Pe(i, l, u, k.value).value, C = (x) => {
3501
3510
  ze(n.value, r.value);
3502
- const h = L.target;
3511
+ const h = x.target;
3503
3512
  t.value = i.type === "number" ? Number(h.value) : h.value;
3504
- }, $ = I(() => i.invalid === !0 && i.errorMessage ? u : void 0);
3505
- return ne(() => {
3513
+ }, $ = V(() => i.invalid === !0 && i.errorMessage ? u : void 0);
3514
+ return ae(() => {
3506
3515
  ze(n.value, r.value);
3507
- }), (L, h) => (v(), f("div", {
3508
- class: re(["textarea-box", { required: A(g), error: e.invalid }]),
3516
+ }), (x, h) => (v(), f("div", {
3517
+ class: le(["textarea-box", { required: D(g), error: e.invalid }]),
3509
3518
  ref_key: "inputBoxRef",
3510
3519
  ref: r
3511
3520
  }, [
3512
3521
  w("label", {
3513
3522
  for: e.id,
3514
3523
  class: "label"
3515
- }, F(e.label), 9, Ea),
3516
- w("textarea", Ce({ id: e.id }, L.$attrs, {
3524
+ }, P(e.label), 9, Ea),
3525
+ w("textarea", Ce({ id: e.id }, x.$attrs, {
3517
3526
  class: "custom-textarea",
3518
- onFocus: h[0] || (h[0] = (_) => A(X2)(_, r.value, s)),
3519
- onBlur: h[1] || (h[1] = (_) => A(G2)(_, n.value, r.value, s)),
3527
+ onFocus: h[0] || (h[0] = (_) => D(X2)(_, r.value, s)),
3528
+ onBlur: h[1] || (h[1] = (_) => D(G2)(_, n.value, r.value, s)),
3520
3529
  onInput: C,
3521
3530
  value: t.value,
3522
- required: A(g),
3531
+ required: D(g),
3523
3532
  "aria-invalid": e.invalid ? "true" : void 0,
3524
3533
  "aria-errormessage": $.value,
3525
- "aria-describedby": A(c),
3534
+ "aria-describedby": D(d),
3526
3535
  ref_key: "textareaRef",
3527
3536
  ref: n
3528
3537
  }), " ", 16, za),
3529
- K(Ke, { hintId: p }, {
3530
- default: W(() => [
3531
- j(L.$slots, "hint", {}, void 0, !0)
3538
+ U(Ke, { hintId: p }, {
3539
+ default: G(() => [
3540
+ Y(x.$slots, "hint", {}, void 0, !0)
3532
3541
  ]),
3533
3542
  _: 3
3534
3543
  }),
3535
- K(Ue, {
3536
- baseId: A(d),
3537
- isRequired: A(g)
3544
+ U(Ue, {
3545
+ baseId: D(c),
3546
+ isRequired: D(g)
3538
3547
  }, null, 8, ["baseId", "isRequired"]),
3539
- K(je, {
3548
+ U(je, {
3540
3549
  errorId: u,
3541
3550
  invalid: e.invalid,
3542
3551
  errorMessage: e.errorMessage
3543
3552
  }, null, 8, ["invalid", "errorMessage"])
3544
3553
  ], 2));
3545
3554
  }
3546
- }), al = /* @__PURE__ */ U(Oa, [["__scopeId", "data-v-3615613f"]]), qa = { key: 0 }, Na = { key: 1 }, Fa = /* @__PURE__ */ T({
3555
+ }), al = /* @__PURE__ */ j(Oa, [["__scopeId", "data-v-3615613f"]]), qa = { key: 0 }, Na = { key: 1 }, Fa = /* @__PURE__ */ S({
3547
3556
  __name: "Highlight",
3548
3557
  props: {
3549
3558
  text: {},
@@ -3554,13 +3563,13 @@ const Ha = ["aria-busy"], Ia = {
3554
3563
  if (!a) return [{ text: t, match: !1 }];
3555
3564
  const l = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(l, "ig"), i = [];
3556
3565
  let n = 0;
3557
- return t.replace(s, (r, d) => (d > n && i.push({ text: t.slice(n, d), match: !1 }), i.push({ text: r, match: !0 }), n = d + r.length, r)), n < t.length && i.push({ text: t.slice(n), match: !1 }), i;
3566
+ return t.replace(s, (r, c) => (c > n && i.push({ text: t.slice(n, c), match: !1 }), i.push({ text: r, match: !0 }), n = c + r.length, r)), n < t.length && i.push({ text: t.slice(n), match: !1 }), i;
3558
3567
  };
3559
- return (t, a) => (v(!0), f(ae, null, ie(o(e.text, e.query), (l, s) => (v(), f(ae, { key: s }, [
3560
- l.match ? (v(), f("mark", qa, F(l.text), 1)) : (v(), f("span", Na, F(l.text), 1))
3568
+ return (t, a) => (v(!0), f(te, null, ue(o(e.text, e.query), (l, s) => (v(), f(te, { key: s }, [
3569
+ l.match ? (v(), f("mark", qa, P(l.text), 1)) : (v(), f("span", Na, P(l.text), 1))
3561
3570
  ], 64))), 128));
3562
3571
  }
3563
- }), Pa = /* @__PURE__ */ U(Fa, [["__scopeId", "data-v-edfa70b3"]]), Ka = [
3572
+ }), Pa = /* @__PURE__ */ j(Fa, [["__scopeId", "data-v-edfa70b3"]]), Ka = [
3564
3573
  {
3565
3574
  key: "length",
3566
3575
  label: "At least 8 characters",
@@ -3586,7 +3595,7 @@ const Ha = ["aria-busy"], Ia = {
3586
3595
  label: "The passwords must match.",
3587
3596
  validator: (e, o) => e === o && e.length > 0
3588
3597
  }
3589
- ], Ua = { class: "password-validation" }, ja = { class: "password-rules" }, Ya = ["data-rule"], Wa = { class: "strength-meter" }, Xa = { class: "strength-top" }, Ga = /* @__PURE__ */ T({
3598
+ ], Ua = { class: "password-validation" }, ja = { class: "password-rules" }, Ya = ["data-rule"], Wa = { class: "strength-meter" }, Xa = { class: "strength-top" }, Ga = /* @__PURE__ */ S({
3590
3599
  __name: "PasswordValidator",
3591
3600
  props: {
3592
3601
  id: {},
@@ -3598,57 +3607,57 @@ const Ha = ["aria-busy"], Ia = {
3598
3607
  },
3599
3608
  emits: ["valid"],
3600
3609
  setup(e, { emit: o }) {
3601
- const t = e, a = o, l = m([]), s = m(null), i = m(null), n = (k, c) => k && (l.value[c] = k);
3610
+ const t = e, a = o, l = m([]), s = m(null), i = m(null), n = (k, d) => k && (l.value[d] = k);
3602
3611
  X(
3603
3612
  () => t.password,
3604
3613
  () => {
3605
- a("valid", d());
3614
+ a("valid", c());
3606
3615
  }
3607
3616
  ), X(
3608
3617
  () => t.passwordConfirmation,
3609
3618
  () => {
3610
- a("valid", d());
3619
+ a("valid", c());
3611
3620
  }
3612
3621
  );
3613
3622
  const r = {
3614
3623
  "--strength-fill-color": t.strengthFillColor
3615
- }, d = () => {
3616
- const k = u(), c = Object.values(p()).every(Boolean);
3617
- return k && c;
3624
+ }, c = () => {
3625
+ const k = u(), d = Object.values(p()).every(Boolean);
3626
+ return k && d;
3618
3627
  }, u = () => {
3619
- const k = p(), c = Object.values(k).filter(Boolean).length, C = t.password.length >= 12 ? 1 : 0, $ = Math.min(100, (c + C) * 20), L = Math.min(t.labels.length - 1, Math.floor($ / 25));
3620
- return s.value && (s.value.style.width = `${$}%`), i.value && (i.value.textContent = t.labels[L] ?? "Very weak"), c === t.rules.length;
3628
+ const k = p(), d = Object.values(k).filter(Boolean).length, C = t.password.length >= 12 ? 1 : 0, $ = Math.min(100, (d + C) * 20), x = Math.min(t.labels.length - 1, Math.floor($ / 25));
3629
+ return s.value && (s.value.style.width = `${$}%`), i.value && (i.value.textContent = t.labels[x] ?? "Very weak"), d === t.rules.length;
3621
3630
  }, p = () => {
3622
3631
  const k = g();
3623
- return l.value.forEach((c) => {
3624
- const C = c.dataset.rule, $ = !!k[C];
3625
- c.classList.toggle("passed", $);
3632
+ return l.value.forEach((d) => {
3633
+ const C = d.dataset.rule, $ = !!k[C];
3634
+ d.classList.toggle("passed", $);
3626
3635
  }), k;
3627
3636
  }, g = () => {
3628
3637
  const k = {};
3629
- return t.rules.forEach((c) => {
3630
- k[c.key] = c.validator(
3638
+ return t.rules.forEach((d) => {
3639
+ k[d.key] = d.validator(
3631
3640
  t.password,
3632
3641
  t.passwordConfirmation
3633
3642
  );
3634
3643
  }), k;
3635
3644
  };
3636
- return (k, c) => (v(), f("section", Ua, [
3645
+ return (k, d) => (v(), f("section", Ua, [
3637
3646
  w("ul", ja, [
3638
- (v(!0), f(ae, null, ie(t.rules, (C, $) => (v(), f("li", {
3647
+ (v(!0), f(te, null, ue(t.rules, (C, $) => (v(), f("li", {
3639
3648
  key: C.key,
3640
3649
  class: "password-rule",
3641
3650
  "data-rule": C.key,
3642
3651
  ref_for: !0,
3643
- ref: (L) => n(L, $)
3652
+ ref: (x) => n(x, $)
3644
3653
  }, [
3645
- c[0] || (c[0] = w("span", { class: "rule-icon" }, "•", -1)),
3646
- me(" " + F(C.label), 1)
3654
+ d[0] || (d[0] = w("span", { class: "rule-icon" }, "•", -1)),
3655
+ me(" " + P(C.label), 1)
3647
3656
  ], 8, Ya))), 128))
3648
3657
  ]),
3649
3658
  w("div", Wa, [
3650
3659
  w("div", Xa, [
3651
- c[1] || (c[1] = w("span", null, "Força da senha", -1)),
3660
+ d[1] || (d[1] = w("span", null, "Força da senha", -1)),
3652
3661
  w("span", {
3653
3662
  ref_key: "strengthLabelRef",
3654
3663
  ref: i
@@ -3667,7 +3676,7 @@ const Ha = ["aria-busy"], Ia = {
3667
3676
  ])
3668
3677
  ]));
3669
3678
  }
3670
- }), a1 = /* @__PURE__ */ U(Ga, [["__scopeId", "data-v-e7569cc0"]]);
3679
+ }), a1 = /* @__PURE__ */ j(Ga, [["__scopeId", "data-v-e7569cc0"]]);
3671
3680
  a1.install = (e) => {
3672
3681
  e.component("PasswordValidator", a1);
3673
3682
  };
@@ -3678,14 +3687,14 @@ const Ja = {
3678
3687
  key: 0,
3679
3688
  class: "ui-breadcrumb__separator",
3680
3689
  "aria-hidden": "true"
3681
- }, to = /* @__PURE__ */ T({
3690
+ }, to = /* @__PURE__ */ S({
3682
3691
  __name: "Breadcrumb",
3683
3692
  props: {
3684
3693
  items: {},
3685
3694
  separator: { default: "/" }
3686
3695
  },
3687
3696
  setup(e) {
3688
- const o = e, t = se(L1), a = (n) => n === o.items.length - 1, l = (n, r) => s(n, r), s = (n, r) => a(r) || n.disabled ? "span" : n.to && t ? y1("RouterLink") : n.href ? "a" : "span", i = (n, r) => a(r) || n.disabled ? { "data-disabled": n.disabled || void 0 } : n.to ? { to: n.to } : n.href ? {
3697
+ const o = e, t = ie(x1), a = (n) => n === o.items.length - 1, l = (n, r) => s(n, r), s = (n, r) => a(r) || n.disabled ? "span" : n.to && t ? y1("RouterLink") : n.href ? "a" : "span", i = (n, r) => a(r) || n.disabled ? { "data-disabled": n.disabled || void 0 } : n.to ? { to: n.to } : n.href ? {
3689
3698
  href: n.href,
3690
3699
  target: n.external ? "_blank" : void 0,
3691
3700
  rel: n.external ? "noopener noreferrer" : void 0,
@@ -3693,35 +3702,35 @@ const Ja = {
3693
3702
  } : {};
3694
3703
  return (n, r) => (v(), f("nav", Ja, [
3695
3704
  w("ol", Qa, [
3696
- (v(!0), f(ae, null, ie(e.items, (d, u) => (v(), f("li", {
3697
- key: d.to ?? d.href ?? `${d.label}-${u}`,
3705
+ (v(!0), f(te, null, ue(e.items, (c, u) => (v(), f("li", {
3706
+ key: c.to ?? c.href ?? `${c.label}-${u}`,
3698
3707
  class: "ui-breadcrumb__item"
3699
3708
  }, [
3700
- (v(), J(Ve(l(d, u)), Ce({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(d, u), {
3709
+ (v(), J(Ve(l(c, u)), Ce({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(c, u), {
3701
3710
  "aria-posinset": u + 1,
3702
3711
  "aria-setsize": e.items.length,
3703
3712
  "aria-current": a(u) ? "page" : void 0,
3704
- tabindex: a(u) || l(d, u) === "span" ? -1 : void 0
3713
+ tabindex: a(u) || l(c, u) === "span" ? -1 : void 0
3705
3714
  }), {
3706
- default: W(() => [
3707
- me(F(d.label), 1)
3715
+ default: G(() => [
3716
+ me(P(c.label), 1)
3708
3717
  ]),
3709
3718
  _: 2
3710
3719
  }, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
3711
3720
  a(u) ? O("", !0) : (v(), f("span", eo, [
3712
- j(n.$slots, "separator", {}, () => [
3713
- me(F(e.separator), 1)
3721
+ Y(n.$slots, "separator", {}, () => [
3722
+ me(P(e.separator), 1)
3714
3723
  ], !0)
3715
3724
  ]))
3716
3725
  ]))), 128))
3717
3726
  ])
3718
3727
  ]));
3719
3728
  }
3720
- }), ol = /* @__PURE__ */ U(to, [["__scopeId", "data-v-baed1592"]]), ao = ["aria-invalid", "aria-required", "disabled"], oo = { class: "sr-only" }, no = ["name", "value", "disabled", "required"], lo = {
3729
+ }), ol = /* @__PURE__ */ j(to, [["__scopeId", "data-v-baed1592"]]), ao = ["aria-invalid", "aria-required", "disabled"], oo = { class: "sr-only" }, no = ["name", "value", "disabled", "required"], lo = {
3721
3730
  key: 0,
3722
3731
  class: "radio-control",
3723
3732
  "aria-hidden": "true"
3724
- }, ro = { class: "radio-label" }, so = /* @__PURE__ */ T({
3733
+ }, ro = { class: "radio-label" }, so = /* @__PURE__ */ S({
3725
3734
  __name: "RadioButton",
3726
3735
  props: /* @__PURE__ */ Q({
3727
3736
  name: {},
@@ -3739,17 +3748,17 @@ const Ja = {
3739
3748
  }),
3740
3749
  emits: ["update:modelValue"],
3741
3750
  setup(e) {
3742
- const o = e, t = ve(e, "modelValue"), a = I(() => o.invalid ? "true" : void 0), l = I(() => o.required && !o.disabled ? "true" : void 0), s = I(() => o.disabled ? !0 : void 0);
3751
+ const o = e, t = fe(e, "modelValue"), a = V(() => o.invalid ? "true" : void 0), l = V(() => o.required && !o.disabled ? "true" : void 0), s = V(() => o.disabled ? !0 : void 0);
3743
3752
  return (i, n) => (v(), f("fieldset", {
3744
- class: re(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
3753
+ class: le(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
3745
3754
  "aria-invalid": a.value,
3746
3755
  "aria-required": l.value,
3747
3756
  disabled: s.value
3748
3757
  }, [
3749
- w("legend", oo, F(e.name), 1),
3750
- (v(!0), f(ae, null, ie(e.options, (r) => (v(), f("label", {
3758
+ w("legend", oo, P(e.name), 1),
3759
+ (v(!0), f(te, null, ue(e.options, (r) => (v(), f("label", {
3751
3760
  key: r.key,
3752
- class: re(["radio", { checked: t.value === r.key, disabled: e.disabled || r.disabled }])
3761
+ class: le(["radio", { checked: t.value === r.key, disabled: e.disabled || r.disabled }])
3753
3762
  }, [
3754
3763
  we(w("input", {
3755
3764
  type: "radio",
@@ -3758,16 +3767,16 @@ const Ja = {
3758
3767
  value: r.key,
3759
3768
  disabled: e.disabled || r.disabled,
3760
3769
  required: e.required,
3761
- "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3770
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
3762
3771
  }, null, 8, no), [
3763
3772
  [g1, t.value]
3764
3773
  ]),
3765
3774
  e.mode === "standard" ? (v(), f("span", lo)) : O("", !0),
3766
- w("span", ro, F(r.label), 1)
3775
+ w("span", ro, P(r.label), 1)
3767
3776
  ], 2))), 128))
3768
3777
  ], 10, ao));
3769
3778
  }
3770
- }), nl = /* @__PURE__ */ U(so, [["__scopeId", "data-v-8f76f7f0"]]), io = ["for"], uo = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled"], co = ["id", "aria-disabled", "aria-selected", "onClick"], vo = {
3779
+ }), nl = /* @__PURE__ */ j(so, [["__scopeId", "data-v-8f76f7f0"]]), io = ["for"], uo = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid"], co = ["id", "aria-disabled", "aria-selected", "onClick"], vo = {
3771
3780
  class: "option-value",
3772
3781
  "aria-hidden": "true"
3773
3782
  }, fo = { class: "option-value sr-only" }, po = {
@@ -3783,7 +3792,7 @@ const Ja = {
3783
3792
  key: 0,
3784
3793
  class: "start-icon",
3785
3794
  "aria-hidden": "true"
3786
- }, go = /* @__PURE__ */ T({
3795
+ }, go = /* @__PURE__ */ S({
3787
3796
  __name: "Autocomplete",
3788
3797
  props: /* @__PURE__ */ Q({
3789
3798
  id: {},
@@ -3809,32 +3818,34 @@ const Ja = {
3809
3818
  }),
3810
3819
  emits: /* @__PURE__ */ Q(["change", "select", "focus", "blur"], ["update:modelValue"]),
3811
3820
  setup(e, { emit: o }) {
3812
- const t = e, a = o, l = ve(e, "modelValue"), s = m(null), i = m(null), n = m(""), r = m(!1), d = m([]), u = m(null), p = m(null), g = I(() => t.id ? `${t.id}-search-history` : "search-history"), c = `${ue()}-list`, C = m(!1), $ = I(() => l.value !== null && l.value !== void 0 && l.value !== ""), L = I(() => u.value !== null ? `${c}-option-${u.value}` : void 0), h = I(() => r.value && L.value ? L.value : void 0), _ = I(() => d.value.length > 0), S = I(() => {
3821
+ const t = e, a = o, l = fe(e, "modelValue"), s = m(null), i = m(null), n = m(""), r = m(!1), c = m([]), u = m(null), p = m(null), g = V(() => t.id ? `${t.id}-search-history` : "search-history"), d = `${ce()}-list`, C = m(!1), $ = V(() => l.value !== null && l.value !== void 0 && l.value !== ""), x = V(() => u.value !== null ? `${d}-option-${u.value}` : void 0), h = V(() => r.value && x.value ? x.value : void 0), _ = V(() => c.value.length > 0), R = V(() => {
3813
3822
  if (!t.filterable) return t.options;
3814
- const R = n.value.toLowerCase();
3815
- return t.options.filter((H) => t.getValue(H).toLowerCase().includes(R));
3816
- }), y = i1(t).value, V = Be(t).value;
3823
+ const H = n.value.toLowerCase();
3824
+ return t.options.filter((z) => t.getValue(z).toLowerCase().includes(H));
3825
+ });
3826
+ i1(t).value;
3827
+ const y = Be(t).value;
3817
3828
  X(
3818
3829
  () => g.value,
3819
- (R) => {
3820
- if (R)
3830
+ (H) => {
3831
+ if (H)
3821
3832
  try {
3822
- d.value = JSON.parse(localStorage.getItem(R) || "[]");
3833
+ c.value = JSON.parse(localStorage.getItem(H) || "[]");
3823
3834
  } catch {
3824
- d.value = [];
3835
+ c.value = [];
3825
3836
  }
3826
3837
  },
3827
3838
  { immediate: !0 }
3828
- ), X(r, async (R) => {
3829
- if (!R) {
3839
+ ), X(r, async (H) => {
3840
+ if (!H) {
3830
3841
  u.value = null;
3831
3842
  return;
3832
3843
  }
3833
- S.value.length !== 0 && (await Me(), N());
3844
+ R.value.length !== 0 && (await Me(), re());
3834
3845
  }), X(
3835
3846
  () => t.loading,
3836
- async (R) => {
3837
- R || r.value && S.value.length !== 0 && (await Me(), N());
3847
+ async (H) => {
3848
+ H || r.value && R.value.length !== 0 && (await Me(), re());
3838
3849
  }
3839
3850
  ), X(
3840
3851
  () => t.options,
@@ -3842,138 +3853,137 @@ const Ja = {
3842
3853
  p.value = null;
3843
3854
  }
3844
3855
  );
3845
- const b = (R) => {
3846
- n.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), C.value = !0, a("focus", R);
3847
- }, Z = (R) => {
3848
- const H = R.relatedTarget;
3849
- i.value?.contains(H) || (r.value = !1, l.value ? E() : n.value = "", C.value = !1, a("blur", R));
3850
- }, B = (R, H) => {
3851
- const z = i.value;
3852
- if (!z || t.isDisabled(R)) return;
3853
- r.value = !1, ee(n.value), p.value = H, u.value = H;
3854
- const G = t.getKey(R);
3855
- G && G.toString().length > 0 ? z.classList.add("filled") : z.classList.remove("filled"), n.value = t.getValue(R), l.value = G, a("select", G);
3856
- }, q = (R) => {
3857
- if (!r.value && ["ArrowDown", "ArrowUp"].includes(R.key)) {
3858
- r.value = !0, u.value = u.value ?? S.value.findIndex((H) => !t.isDisabled(H)), R.preventDefault();
3856
+ const I = (H) => {
3857
+ n.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), C.value = !0, a("focus", H);
3858
+ }, b = (H) => {
3859
+ const z = H.relatedTarget;
3860
+ i.value?.contains(z) || (r.value = !1, l.value ? L() : n.value = "", C.value = !1, a("blur", H));
3861
+ }, A = (H, z) => {
3862
+ const Z = i.value;
3863
+ if (!Z || t.isDisabled(H)) return;
3864
+ r.value = !1, W(n.value), p.value = z, u.value = z;
3865
+ const F = t.getKey(H);
3866
+ F && F.toString().length > 0 ? Z.classList.add("filled") : Z.classList.remove("filled"), n.value = t.getValue(H), l.value = F, a("select", F);
3867
+ }, B = (H) => {
3868
+ if (!r.value && ["ArrowDown", "ArrowUp"].includes(H.key)) {
3869
+ r.value = !0, u.value = u.value ?? R.value.findIndex((z) => !t.isDisabled(z)), H.preventDefault();
3859
3870
  return;
3860
3871
  }
3861
3872
  if (r.value) {
3862
- if (R.key === "ArrowDown" && (M(1), R.preventDefault()), R.key === "ArrowUp" && (M(-1), R.preventDefault()), R.key === "Home") {
3863
- const H = te();
3864
- H >= 0 && (u.value = H), R.preventDefault();
3873
+ if (H.key === "ArrowDown" && (q(1), H.preventDefault()), H.key === "ArrowUp" && (q(-1), H.preventDefault()), H.key === "Home") {
3874
+ const z = T();
3875
+ z >= 0 && (u.value = z), H.preventDefault();
3865
3876
  }
3866
- if (R.key === "End") {
3867
- const H = fe();
3868
- H >= 0 && (u.value = H), R.preventDefault();
3877
+ if (H.key === "End") {
3878
+ const z = N();
3879
+ z >= 0 && (u.value = z), H.preventDefault();
3869
3880
  }
3870
- if (R.key === "Enter") {
3881
+ if (H.key === "Enter") {
3871
3882
  if (u.value === null) return;
3872
- const H = S.value[u.value];
3873
- if (!H || t.isDisabled(H)) return;
3874
- B(H, u.value), r.value = !1, R.preventDefault();
3883
+ const z = R.value[u.value];
3884
+ if (!z || t.isDisabled(z)) return;
3885
+ A(z, u.value), r.value = !1, H.preventDefault();
3875
3886
  }
3876
- R.key === "Escape" && (r.value = !1);
3887
+ H.key === "Escape" && (r.value = !1);
3877
3888
  }
3878
- }, M = (R) => {
3889
+ }, q = (H) => {
3879
3890
  if (u.value === null) return;
3880
- let H = u.value;
3891
+ let z = u.value;
3881
3892
  do
3882
- H += R;
3883
- while (H >= 0 && H < S.value.length && t.isDisabled(S.value[H]));
3884
- H >= 0 && H < S.value.length && (u.value = H);
3885
- }, x = () => {
3893
+ z += H;
3894
+ while (z >= 0 && z < R.value.length && t.isDisabled(R.value[z]));
3895
+ z >= 0 && z < R.value.length && (u.value = z);
3896
+ }, M = () => {
3886
3897
  n.value.length === 0 && (l.value = ""), n.value.length >= t.minChars ? (a("change", n.value), r.value = !0) : r.value = !1;
3887
- }, E = () => {
3898
+ }, L = () => {
3888
3899
  if (l.value.toString().length === 0 || !t.options || t.options.length === 0) return;
3889
- const R = t.options.findIndex((H) => t.getKey(H) === l.value);
3890
- R > -1 && (u.value = R, p.value = R, n.value = t.getValue(t.options[R]));
3891
- }, Y = () => {
3900
+ const H = t.options.findIndex((z) => t.getKey(z) === l.value);
3901
+ H > -1 && (u.value = H, p.value = H, n.value = t.getValue(t.options[H]));
3902
+ }, E = () => {
3892
3903
  n.value = "", l.value = "";
3893
- }, ee = (R) => {
3894
- !R || R.trim().length === 0 || (d.value = [
3895
- R,
3896
- ...d.value.filter((H) => H !== R)
3897
- ].slice(0, t.suggestionsLimit), localStorage.setItem(g.value, JSON.stringify(d.value)));
3898
- }, D = (R) => {
3899
- n.value = R, x();
3900
- }, N = () => {
3901
- const R = te();
3902
- R >= 0 && (u.value = R);
3903
- }, te = () => S.value.findIndex((R) => !t.isDisabled(R)), fe = () => {
3904
- for (let R = S.value.length - 1; R >= 0; R--) if (!t.isDisabled(S.value[R])) return R;
3904
+ }, W = (H) => {
3905
+ !H || H.trim().length === 0 || (c.value = [
3906
+ H,
3907
+ ...c.value.filter((z) => z !== H)
3908
+ ].slice(0, t.suggestionsLimit), localStorage.setItem(g.value, JSON.stringify(c.value)));
3909
+ }, ee = (H) => {
3910
+ n.value = H, M();
3911
+ }, re = () => {
3912
+ const H = T();
3913
+ H >= 0 && (u.value = H);
3914
+ }, T = () => R.value.findIndex((H) => !t.isDisabled(H)), N = () => {
3915
+ for (let H = R.value.length - 1; H >= 0; H--) if (!t.isDisabled(R.value[H])) return H;
3905
3916
  return -1;
3906
3917
  };
3907
- return ne(() => E()), (R, H) => (v(), f("div", {
3908
- class: re(["autocomplete", { required: A(V), error: e.invalid, "has-icon": Object.keys(R.$slots).includes("icon"), filled: $.value, focused: C.value }]),
3918
+ return ae(() => L()), (H, z) => (v(), f("div", {
3919
+ class: le(["autocomplete", { required: D(y), error: e.invalid, "has-icon": Object.keys(H.$slots).includes("icon"), filled: $.value, focused: C.value }]),
3909
3920
  ref_key: "autocompleteRef",
3910
3921
  ref: i
3911
3922
  }, [
3912
3923
  w("label", {
3913
3924
  for: e.id,
3914
3925
  class: "label"
3915
- }, F(e.label), 9, io),
3926
+ }, P(e.label), 9, io),
3916
3927
  we(w("input", Ce({
3917
3928
  id: e.id,
3918
3929
  type: e.type
3919
- }, R.$attrs, {
3930
+ }, H.$attrs, {
3920
3931
  ref_key: "inputRef",
3921
3932
  ref: s,
3922
3933
  role: "combobox",
3923
3934
  "aria-autocomplete": "list",
3924
3935
  "aria-expanded": r.value,
3925
- "aria-controls": c,
3936
+ "aria-controls": d,
3926
3937
  "aria-activedescendant": h.value,
3927
- "aria-required": A(V),
3938
+ "aria-required": D(y),
3928
3939
  "aria-invalid": e.invalid ? "true" : void 0,
3929
- disabled: A(y),
3930
- "onUpdate:modelValue": H[0] || (H[0] = (z) => n.value = z),
3931
- onFocus: b,
3932
- onBlur: Z,
3933
- onInput: x,
3934
- onKeydown: q
3940
+ "onUpdate:modelValue": z[0] || (z[0] = (Z) => n.value = Z),
3941
+ onFocus: I,
3942
+ onBlur: b,
3943
+ onInput: M,
3944
+ onKeydown: B
3935
3945
  }), null, 16, uo), [
3936
3946
  [b1, n.value]
3937
3947
  ]),
3938
- K($e, { name: "select" }, {
3939
- default: W(() => [
3948
+ U($e, { name: "select" }, {
3949
+ default: G(() => [
3940
3950
  we(w("ul", {
3941
- id: c,
3951
+ id: d,
3942
3952
  role: "listbox",
3943
3953
  class: "options"
3944
3954
  }, [
3945
- S.value.length > 0 ? (v(!0), f(ae, { key: 0 }, ie(S.value, (z, G) => (v(), f("li", {
3946
- id: `${c}-option-${G}`,
3947
- key: e.getKey(z),
3955
+ R.value.length > 0 ? (v(!0), f(te, { key: 0 }, ue(R.value, (Z, F) => (v(), f("li", {
3956
+ id: `${d}-option-${F}`,
3957
+ key: e.getKey(Z),
3948
3958
  role: "option",
3949
- class: re(["option", { "focus-visible": u.value === G }]),
3950
- "aria-disabled": t.isDisabled(z) || void 0,
3951
- "aria-selected": G === p.value,
3952
- onMousedown: H[1] || (H[1] = le(() => {
3959
+ class: le(["option", { "focus-visible": u.value === F }]),
3960
+ "aria-disabled": t.isDisabled(Z) || void 0,
3961
+ "aria-selected": F === p.value,
3962
+ onMousedown: z[1] || (z[1] = ne(() => {
3953
3963
  }, ["prevent"])),
3954
- onClick: (oe) => !t.isDisabled(z) && B(z, G)
3964
+ onClick: (se) => !t.isDisabled(Z) && A(Z, F)
3955
3965
  }, [
3956
- t.isDisabled(z) ? O("", !0) : (v(), J(de, {
3966
+ t.isDisabled(Z) ? O("", !0) : (v(), J(de, {
3957
3967
  key: 0,
3958
3968
  name: "search",
3959
3969
  size: 22
3960
3970
  })),
3961
- j(R.$slots, "option", {
3962
- option: z,
3963
- value: e.getValue(z),
3971
+ Y(H.$slots, "option", {
3972
+ option: Z,
3973
+ value: e.getValue(Z),
3964
3974
  query: n.value,
3965
- selected: G === p.value,
3966
- active: G === u.value
3975
+ selected: F === p.value,
3976
+ active: F === u.value
3967
3977
  }, () => [
3968
3978
  w("div", vo, [
3969
- K(Pa, {
3970
- text: e.getValue(z),
3979
+ U(Pa, {
3980
+ text: e.getValue(Z),
3971
3981
  query: n.value
3972
3982
  }, null, 8, ["text", "query"])
3973
3983
  ])
3974
3984
  ], !0),
3975
- w("div", fo, F(e.getValue(z)), 1)
3976
- ], 42, co))), 128)) : S.value.length === 0 && !e.loading ? (v(), f("li", po, [...H[3] || (H[3] = [
3985
+ w("div", fo, P(e.getValue(Z)), 1)
3986
+ ], 42, co))), 128)) : R.value.length === 0 && !e.loading ? (v(), f("li", po, [...z[3] || (z[3] = [
3977
3987
  w("div", { class: "option-value" }, "No results found", -1)
3978
3988
  ])])) : (v(), J(m1, {
3979
3989
  key: 2,
@@ -3981,18 +3991,18 @@ const Ja = {
3981
3991
  role: "status",
3982
3992
  message: "Loading"
3983
3993
  })),
3984
- _.value ? (v(), f("li", Co, [...H[4] || (H[4] = [
3994
+ _.value ? (v(), f("li", Co, [...z[4] || (z[4] = [
3985
3995
  w("div", { class: "option-value" }, " Recents ", -1)
3986
3996
  ])])) : O("", !0),
3987
- (v(!0), f(ae, null, ie(d.value, (z) => (v(), f("li", {
3988
- key: z,
3997
+ (v(!0), f(te, null, ue(c.value, (Z) => (v(), f("li", {
3998
+ key: Z,
3989
3999
  role: "presentation",
3990
4000
  "aria-hidden": "true",
3991
4001
  class: "option recent-item",
3992
- onClick: (G) => D(z)
4002
+ onClick: (F) => ee(Z)
3993
4003
  }, [
3994
- K(de, { name: "clock" }),
3995
- w("div", ho, F(z), 1)
4004
+ U(de, { name: "clock" }),
4005
+ w("div", ho, P(Z), 1)
3996
4006
  ], 8, mo))), 128))
3997
4007
  ], 512), [
3998
4008
  [qe, r.value]
@@ -4000,8 +4010,8 @@ const Ja = {
4000
4010
  ]),
4001
4011
  _: 3
4002
4012
  }),
4003
- R.$slots.icon ? (v(), f("span", yo, [
4004
- j(R.$slots, "icon", {}, void 0, !0)
4013
+ H.$slots.icon ? (v(), f("span", yo, [
4014
+ Y(H.$slots, "icon", {}, void 0, !0)
4005
4015
  ])) : O("", !0),
4006
4016
  n.value.length > 0 ? (v(), J(he, {
4007
4017
  key: 1,
@@ -4009,12 +4019,12 @@ const Ja = {
4009
4019
  class: "btn btn-icon",
4010
4020
  "aria-label": "Clear search query",
4011
4021
  title: "Clear search query",
4012
- onMousedown: H[2] || (H[2] = le(() => {
4022
+ onMousedown: z[2] || (z[2] = ne(() => {
4013
4023
  }, ["prevent"])),
4014
- onClick: Y
4024
+ onClick: E
4015
4025
  }, {
4016
- default: W(() => [
4017
- K(de, {
4026
+ default: G(() => [
4027
+ U(de, {
4018
4028
  class: "clear-search",
4019
4029
  "aria-hidden": "true",
4020
4030
  name: "close",
@@ -4025,11 +4035,11 @@ const Ja = {
4025
4035
  })) : O("", !0)
4026
4036
  ], 2));
4027
4037
  }
4028
- }), ll = /* @__PURE__ */ U(go, [["__scopeId", "data-v-55403ba7"]]), bo = 5, pe = r1({
4038
+ }), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-18b4cb64"]]), bo = 5, pe = r1({
4029
4039
  toasts: []
4030
4040
  });
4031
4041
  let ko = 0;
4032
- const Le = (e, o = "info") => {
4042
+ const xe = (e, o = "info") => {
4033
4043
  const t = {
4034
4044
  id: `toast-${ko++}`,
4035
4045
  duration: 4e3,
@@ -4038,24 +4048,24 @@ const Le = (e, o = "info") => {
4038
4048
  };
4039
4049
  return pe.toasts.push(t), pe.toasts.length > bo && pe.toasts.shift(), t.id;
4040
4050
  }, wo = (e, o) => pe.toasts = pe.toasts.map((t) => t.id === e ? { ...t, ...o, loading: !1 } : t), rl = Object.assign(
4041
- (e) => Le(e),
4051
+ (e) => xe(e),
4042
4052
  {
4043
4053
  update: wo,
4044
- success: (e) => Le(e, "success"),
4045
- error: (e) => Le(e, "error"),
4046
- info: (e) => Le(e, "info"),
4047
- warning: (e) => Le(e, "warning"),
4048
- loading: (e) => Le({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
4054
+ success: (e) => xe(e, "success"),
4055
+ error: (e) => xe(e, "error"),
4056
+ info: (e) => xe(e, "info"),
4057
+ warning: (e) => xe(e, "warning"),
4058
+ loading: (e) => xe({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
4049
4059
  dismiss: (e) => pe.toasts = pe.toasts.filter((o) => o.id !== e),
4050
4060
  promise(e, o) {
4051
- const t = Le({ loading: !0, description: o.loading, duration: 1 / 0 });
4061
+ const t = xe({ loading: !0, description: o.loading, duration: 1 / 0 });
4052
4062
  return e.then(() => pe.toasts = pe.toasts.map((a) => a.id === t ? { ...a, description: o.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => pe.toasts = pe.toasts.map((a) => a.id === t ? { ...a, description: o.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
4053
4063
  }
4054
4064
  }
4055
- ), Mo = ["data-variant", "data-state", "role", "aria-describedby"], Lo = { class: "content" }, xo = {
4065
+ ), Mo = ["data-variant", "data-state", "role", "aria-describedby"], xo = { class: "content" }, Lo = {
4056
4066
  key: 0,
4057
4067
  class: "progress"
4058
- }, $o = 160, Vo = /* @__PURE__ */ T({
4068
+ }, $o = 160, Vo = /* @__PURE__ */ S({
4059
4069
  __name: "ToastRoot",
4060
4070
  props: {
4061
4071
  id: {},
@@ -4070,7 +4080,7 @@ const Le = (e, o = "info") => {
4070
4080
  const n = () => {
4071
4081
  const u = Date.now() - s;
4072
4082
  if (l.value = Math.max(0, 100 - u / o.duration * 100), l.value <= 0) {
4073
- d();
4083
+ c();
4074
4084
  return;
4075
4085
  }
4076
4086
  i = requestAnimationFrame(n);
@@ -4086,10 +4096,10 @@ const Le = (e, o = "info") => {
4086
4096
  () => r(),
4087
4097
  { immediate: !0 }
4088
4098
  );
4089
- const d = () => {
4099
+ const c = () => {
4090
4100
  cancelAnimationFrame(i), a.value = "closing", setTimeout(() => pe.toasts = pe.toasts.filter((u) => u.id !== o.id), $o);
4091
4101
  };
4092
- return ne(() => o.variant === "error" && o.focus && t.value?.focus()), He(() => cancelAnimationFrame(i)), (u, p) => (v(), f("div", {
4102
+ return ae(() => o.variant === "error" && o.focus && t.value?.focus()), Ie(() => cancelAnimationFrame(i)), (u, p) => (v(), f("div", {
4093
4103
  ref_key: "rootRef",
4094
4104
  ref: t,
4095
4105
  tabindex: "-1",
@@ -4101,16 +4111,16 @@ const Le = (e, o = "info") => {
4101
4111
  "aria-atomic": "true",
4102
4112
  "aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
4103
4113
  }, [
4104
- w("div", Lo, [
4105
- j(u.$slots, "default", {}, void 0, !0),
4106
- K(he, {
4114
+ w("div", xo, [
4115
+ Y(u.$slots, "default", {}, void 0, !0),
4116
+ U(he, {
4107
4117
  type: "button",
4108
- onClick: d,
4118
+ onClick: c,
4109
4119
  "aria-label": `Close ${e.variant} notification`,
4110
4120
  class: "btn-sm"
4111
4121
  }, {
4112
- default: W(() => [
4113
- K(de, {
4122
+ default: G(() => [
4123
+ U(de, {
4114
4124
  name: "close",
4115
4125
  size: 32
4116
4126
  })
@@ -4118,7 +4128,7 @@ const Le = (e, o = "info") => {
4118
4128
  _: 1
4119
4129
  }, 8, ["aria-label"])
4120
4130
  ]),
4121
- e.duration !== 1 / 0 ? (v(), f("div", xo, [
4131
+ e.duration !== 1 / 0 ? (v(), f("div", Lo, [
4122
4132
  w("div", {
4123
4133
  class: "bar",
4124
4134
  style: ye({ width: l.value + "%" })
@@ -4126,23 +4136,23 @@ const Le = (e, o = "info") => {
4126
4136
  ])) : O("", !0)
4127
4137
  ], 8, Mo));
4128
4138
  }
4129
- }), Ho = /* @__PURE__ */ U(Vo, [["__scopeId", "data-v-f9e75b9d"]]), Io = { class: "toast-viewport" }, Bo = { class: "toast-message" }, _o = { key: 0 }, Do = ["id"], Ro = /* @__PURE__ */ T({
4139
+ }), Io = /* @__PURE__ */ j(Vo, [["__scopeId", "data-v-f9e75b9d"]]), Ho = { class: "toast-viewport" }, Bo = { class: "toast-message" }, _o = { key: 0 }, Do = ["id"], Ro = /* @__PURE__ */ S({
4130
4140
  __name: "ToastViewport",
4131
4141
  setup(e) {
4132
- return (o, t) => (v(), J(Ie, { to: "body" }, [
4133
- w("div", Io, [
4134
- K(k1, { name: "toast-stack" }, {
4135
- default: W(() => [
4136
- (v(!0), f(ae, null, ie(A(pe).toasts, (a) => (v(), J(Ho, {
4142
+ return (o, t) => (v(), J(He, { to: "body" }, [
4143
+ w("div", Ho, [
4144
+ U(k1, { name: "toast-stack" }, {
4145
+ default: G(() => [
4146
+ (v(!0), f(te, null, ue(D(pe).toasts, (a) => (v(), J(Io, {
4137
4147
  key: a.id,
4138
4148
  id: a.id,
4139
4149
  duration: a.duration,
4140
4150
  variant: a.variant,
4141
4151
  loading: a.loading
4142
4152
  }, {
4143
- default: W(() => [
4153
+ default: G(() => [
4144
4154
  w("div", Bo, [
4145
- a.title ? (v(), f("strong", _o, F(a.title), 1)) : O("", !0),
4155
+ a.title ? (v(), f("strong", _o, P(a.title), 1)) : O("", !0),
4146
4156
  a.loading ? (v(), J(m1, {
4147
4157
  key: 1,
4148
4158
  message: a.description,
@@ -4150,7 +4160,7 @@ const Le = (e, o = "info") => {
4150
4160
  }, null, 8, ["message"])) : (v(), f("p", {
4151
4161
  key: 2,
4152
4162
  id: `toast-desc-${a.id}`
4153
- }, F(a.description), 9, Do))
4163
+ }, P(a.description), 9, Do))
4154
4164
  ])
4155
4165
  ]),
4156
4166
  _: 2
@@ -4161,7 +4171,7 @@ const Le = (e, o = "info") => {
4161
4171
  ])
4162
4172
  ]));
4163
4173
  }
4164
- }), o1 = /* @__PURE__ */ U(Ro, [["__scopeId", "data-v-afe47f2a"]]);
4174
+ }), o1 = /* @__PURE__ */ j(Ro, [["__scopeId", "data-v-afe47f2a"]]);
4165
4175
  let n1 = !1;
4166
4176
  const sl = {
4167
4177
  install(e, o = {}) {
@@ -4172,7 +4182,7 @@ const sl = {
4172
4182
  a.setAttribute("data-toast-host", ""), document.body.appendChild(a), w1(o1).mount(a);
4173
4183
  }
4174
4184
  }
4175
- }, Ao = /* @__PURE__ */ T({
4185
+ }, Ao = /* @__PURE__ */ S({
4176
4186
  __name: "Card",
4177
4187
  props: {
4178
4188
  as: { default: "div" },
@@ -4182,67 +4192,67 @@ const sl = {
4182
4192
  setup(e, { emit: o }) {
4183
4193
  const t = e, a = o, l = m(), s = m();
4184
4194
  ge("card:labelId", l), ge("card:descriptionId", s);
4185
- const i = I(() => t.clickable && t.as !== "button" && t.as !== "a"), n = () => t.clickable && a("click");
4186
- return (r, d) => (v(), J(Ve(e.as), {
4187
- class: re(["rs-card", { clickable: e.clickable }]),
4195
+ const i = V(() => t.clickable && t.as !== "button" && t.as !== "a"), n = () => t.clickable && a("click");
4196
+ return (r, c) => (v(), J(Ve(e.as), {
4197
+ class: le(["rs-card", { clickable: e.clickable }]),
4188
4198
  tabindex: i.value ? 0 : void 0,
4189
4199
  role: i.value ? "button" : void 0,
4190
4200
  onClick: n,
4191
4201
  onKeydown: [
4192
- d[0] || (d[0] = ce(le((u) => i.value && n(), ["prevent"]), ["enter"])),
4193
- d[1] || (d[1] = ce(le((u) => i.value && n(), ["prevent"]), ["space"]))
4202
+ c[0] || (c[0] = ve(ne((u) => i.value && n(), ["prevent"]), ["enter"])),
4203
+ c[1] || (c[1] = ve(ne((u) => i.value && n(), ["prevent"]), ["space"]))
4194
4204
  ],
4195
4205
  "aria-labelledby": l.value,
4196
4206
  "aria-describedby": s.value
4197
4207
  }, {
4198
- default: W(() => [
4199
- j(r.$slots, "default", {}, void 0, !0)
4208
+ default: G(() => [
4209
+ Y(r.$slots, "default", {}, void 0, !0)
4200
4210
  ]),
4201
4211
  _: 3
4202
4212
  }, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
4203
4213
  }
4204
- }), il = /* @__PURE__ */ U(Ao, [["__scopeId", "data-v-e892a9f2"]]), So = /* @__PURE__ */ T({
4214
+ }), il = /* @__PURE__ */ j(Ao, [["__scopeId", "data-v-e892a9f2"]]), So = /* @__PURE__ */ S({
4205
4215
  __name: "CardHeader",
4206
4216
  props: {
4207
4217
  as: { default: "div" }
4208
4218
  },
4209
4219
  setup(e) {
4210
- const o = se("card:labelId", void 0), t = `rs-card-label-${ue()}`;
4211
- return ne(() => o && (o.value = t)), (a, l) => (v(), J(Ve(e.as), {
4220
+ const o = ie("card:labelId", void 0), t = `rs-card-label-${ce()}`;
4221
+ return ae(() => o && (o.value = t)), (a, l) => (v(), J(Ve(e.as), {
4212
4222
  id: t,
4213
4223
  class: "rs-card-header"
4214
4224
  }, {
4215
- default: W(() => [
4216
- j(a.$slots, "default", {}, void 0, !0)
4225
+ default: G(() => [
4226
+ Y(a.$slots, "default", {}, void 0, !0)
4217
4227
  ]),
4218
4228
  _: 3
4219
4229
  }));
4220
4230
  }
4221
- }), ul = /* @__PURE__ */ U(So, [["__scopeId", "data-v-570794b4"]]), To = /* @__PURE__ */ T({
4231
+ }), ul = /* @__PURE__ */ j(So, [["__scopeId", "data-v-570794b4"]]), To = /* @__PURE__ */ S({
4222
4232
  __name: "CardBody",
4223
4233
  setup(e) {
4224
- const o = se("card:descriptionId", void 0), t = `rs-card-desc-${ue()}`;
4225
- return ne(() => o && (o.value = t)), (a, l) => (v(), f("div", {
4234
+ const o = ie("card:descriptionId", void 0), t = `rs-card-desc-${ce()}`;
4235
+ return ae(() => o && (o.value = t)), (a, l) => (v(), f("div", {
4226
4236
  id: t,
4227
4237
  class: "rs-card-body"
4228
4238
  }, [
4229
- j(a.$slots, "default", {}, void 0, !0)
4239
+ Y(a.$slots, "default", {}, void 0, !0)
4230
4240
  ]));
4231
4241
  }
4232
- }), dl = /* @__PURE__ */ U(To, [["__scopeId", "data-v-f0380fda"]]), Zo = /* @__PURE__ */ T({
4242
+ }), cl = /* @__PURE__ */ j(To, [["__scopeId", "data-v-f0380fda"]]), Zo = /* @__PURE__ */ S({
4233
4243
  __name: "CardFooter",
4234
4244
  props: {
4235
4245
  as: { default: "div" }
4236
4246
  },
4237
4247
  setup(e) {
4238
4248
  return (o, t) => (v(), J(Ve(e.as), { class: "rs-card-footer" }, {
4239
- default: W(() => [
4240
- j(o.$slots, "default", {}, void 0, !0)
4249
+ default: G(() => [
4250
+ Y(o.$slots, "default", {}, void 0, !0)
4241
4251
  ]),
4242
4252
  _: 3
4243
4253
  }));
4244
4254
  }
4245
- }), cl = /* @__PURE__ */ U(Zo, [["__scopeId", "data-v-9b223473"]]), Eo = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], zo = {
4255
+ }), dl = /* @__PURE__ */ j(Zo, [["__scopeId", "data-v-9b223473"]]), Eo = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], zo = {
4246
4256
  key: 2,
4247
4257
  class: "icon",
4248
4258
  "aria-hidden": "true",
@@ -4258,7 +4268,7 @@ const sl = {
4258
4268
  }, No = ["id"], Fo = { class: "addons" }, Po = ["id"], Ko = {
4259
4269
  key: 0,
4260
4270
  class: "slot-default"
4261
- }, Uo = /* @__PURE__ */ T({
4271
+ }, Uo = /* @__PURE__ */ S({
4262
4272
  __name: "Step",
4263
4273
  props: {
4264
4274
  title: {},
@@ -4267,13 +4277,13 @@ const sl = {
4267
4277
  size: {}
4268
4278
  },
4269
4279
  setup(e) {
4270
- const o = e, t = se("StepsContext");
4280
+ const o = e, t = ie("StepsContext");
4271
4281
  if (!t) throw new Error("Step component must be used inside Steps.");
4272
- const a = Fe(), l = m(null), s = m(null), i = I(() => t.orientation ?? "horizontal");
4282
+ const a = Fe(), l = m(null), s = m(null), i = V(() => t.orientation ?? "horizontal");
4273
4283
  let n = null, r = null;
4274
- const d = se("StepIndex");
4275
- if (d == null) throw new Error("StepIndex component must be used inside Steps.");
4276
- const u = I(() => o.status ? o.status : d < t.current.value ? "completed" : d === t.current.value ? "active" : "pending"), p = I(() => t?.icons?.[u.value]), g = I(() => a.icon ? "slot" : o.icon ? o.icon : p.value), k = I(() => {
4284
+ const c = ie("StepIndex");
4285
+ if (c == null) throw new Error("StepIndex component must be used inside Steps.");
4286
+ const u = V(() => o.status ? o.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), p = V(() => t?.icons?.[u.value]), g = V(() => a.icon ? "slot" : o.icon ? o.icon : p.value), k = V(() => {
4277
4287
  switch (u.value) {
4278
4288
  case "completed":
4279
4289
  return "Stage completed";
@@ -4284,7 +4294,7 @@ const sl = {
4284
4294
  default:
4285
4295
  return "Stage pending";
4286
4296
  }
4287
- }), c = I(() => {
4297
+ }), d = V(() => {
4288
4298
  switch (u.value) {
4289
4299
  case "completed":
4290
4300
  return "success";
@@ -4295,7 +4305,7 @@ const sl = {
4295
4305
  default:
4296
4306
  return "default";
4297
4307
  }
4298
- }), C = I(() => o.size ?? t.size ?? "sm"), $ = I(() => {
4308
+ }), C = V(() => o.size ?? t.size ?? "sm"), $ = V(() => {
4299
4309
  switch (u.value) {
4300
4310
  case "completed":
4301
4311
  return "Completed";
@@ -4309,20 +4319,20 @@ const sl = {
4309
4319
  });
4310
4320
  X(
4311
4321
  () => u.value,
4312
- (S) => t.registerStepStatus(d, S),
4322
+ (R) => t.registerStepStatus(c, R),
4313
4323
  { immediate: !0 }
4314
4324
  );
4315
- const L = () => {
4325
+ const x = () => {
4316
4326
  n == null && (n = requestAnimationFrame(() => {
4317
4327
  n = null, h();
4318
4328
  }));
4319
4329
  }, h = () => {
4320
4330
  if (!l.value || !s.value) return;
4321
- const S = s.value.getBoundingClientRect(), y = t.stepsRef.value.getBoundingClientRect(), V = t.orientation === "vertical" ? S.top + S.height / 2 - y.top : S.left + S.width / 2 - y.left;
4322
- t.registerIndicatorCenter(d, V);
4323
- }, _ = (S) => {
4324
- const y = t.orientation === "horizontal", V = t.orientation === "vertical";
4325
- switch (S.key) {
4331
+ const R = s.value.getBoundingClientRect(), y = t.stepsRef.value.getBoundingClientRect(), I = t.orientation === "vertical" ? R.top + R.height / 2 - y.top : R.left + R.width / 2 - y.left;
4332
+ t.registerIndicatorCenter(c, I);
4333
+ }, _ = (R) => {
4334
+ const y = t.orientation === "horizontal", I = t.orientation === "vertical";
4335
+ switch (R.key) {
4326
4336
  case "ArrowRight":
4327
4337
  y && t.focusNext();
4328
4338
  break;
@@ -4330,10 +4340,10 @@ const sl = {
4330
4340
  y && t.focusPrev();
4331
4341
  break;
4332
4342
  case "ArrowDown":
4333
- V && t.focusNext();
4343
+ I && t.focusNext();
4334
4344
  break;
4335
4345
  case "ArrowUp":
4336
- V && t.focusPrev();
4346
+ I && t.focusPrev();
4337
4347
  break;
4338
4348
  case "Home":
4339
4349
  t.focusFirst();
@@ -4344,31 +4354,31 @@ const sl = {
4344
4354
  default:
4345
4355
  return;
4346
4356
  }
4347
- S.preventDefault();
4357
+ R.preventDefault();
4348
4358
  };
4349
- return ne(() => {
4359
+ return ae(() => {
4350
4360
  !l.value || !s.value || (requestAnimationFrame(() => {
4351
4361
  requestAnimationFrame(h);
4352
4362
  }), r = new ResizeObserver(() => {
4353
- L();
4363
+ x();
4354
4364
  }), r.observe(l.value), r.observe(s.value), t.stepsRef.value && r.observe(t.stepsRef.value), t.registerStep(l.value));
4355
4365
  }), be(() => {
4356
4366
  r?.disconnect(), t.unregisterStep(l.value), n != null && cancelAnimationFrame(n);
4357
- }), (S, y) => (v(), f("li", {
4367
+ }), (R, y) => (v(), f("li", {
4358
4368
  ref_key: "stepRef",
4359
4369
  ref: l,
4360
- class: re(["step", `step__${C.value}`]),
4370
+ class: le(["step", `step__${C.value}`]),
4361
4371
  role: "listitem",
4362
4372
  "data-status": u.value,
4363
4373
  "data-orientation": i.value,
4364
4374
  "data-active": u.value === "active",
4365
4375
  "data-completed": u.value === "completed",
4366
- "aria-labelledby": `step-title-${A(d)}`,
4376
+ "aria-labelledby": `step-title-${D(c)}`,
4367
4377
  tabindex: u.value === "active" ? 0 : -1,
4368
4378
  "aria-current": u.value === "active" ? "step" : void 0,
4369
- "aria-posinset": A(d) + 1,
4370
- "aria-setsize": A(t).stepsCount.value,
4371
- "aria-describedby": `step-status-${A(d)}`,
4379
+ "aria-posinset": D(c) + 1,
4380
+ "aria-setsize": D(t).stepsCount.value,
4381
+ "aria-describedby": `step-status-${D(c)}`,
4372
4382
  onKeydown: _
4373
4383
  }, [
4374
4384
  w("span", {
@@ -4377,7 +4387,7 @@ const sl = {
4377
4387
  class: "indicator",
4378
4388
  "aria-hidden": "true"
4379
4389
  }, [
4380
- S.$slots.icon ? j(S.$slots, "icon", {
4390
+ R.$slots.icon ? Y(R.$slots, "icon", {
4381
4391
  key: 0,
4382
4392
  status: u.value
4383
4393
  }, void 0, !0) : g.value ? (v(), J(de, {
@@ -4398,42 +4408,42 @@ const sl = {
4398
4408
  ])])) : u.value === "active" ? (v(), f("span", qo)) : O("", !0)
4399
4409
  ], 512),
4400
4410
  w("span", {
4401
- id: `step-status-${A(d)}`,
4411
+ id: `step-status-${D(c)}`,
4402
4412
  class: "sr-only"
4403
- }, F(k.value), 9, No),
4413
+ }, P(k.value), 9, No),
4404
4414
  w("div", Fo, [
4405
4415
  w("span", {
4406
- id: `step-title-${A(d)}`,
4416
+ id: `step-title-${D(c)}`,
4407
4417
  class: "title"
4408
- }, F(e.title), 9, Po),
4409
- K(j2, {
4410
- variant: c.value,
4418
+ }, P(e.title), 9, Po),
4419
+ U(j2, {
4420
+ variant: d.value,
4411
4421
  size: "sm"
4412
4422
  }, {
4413
- default: W(() => [
4414
- me(F($.value), 1)
4423
+ default: G(() => [
4424
+ me(P($.value), 1)
4415
4425
  ]),
4416
4426
  _: 1
4417
4427
  }, 8, ["variant"]),
4418
- S.$slots.default ? (v(), f("span", Ko, [
4419
- j(S.$slots, "default", {}, void 0, !0)
4428
+ R.$slots.default ? (v(), f("span", Ko, [
4429
+ Y(R.$slots, "default", {}, void 0, !0)
4420
4430
  ])) : O("", !0)
4421
4431
  ])
4422
4432
  ], 42, Eo));
4423
4433
  }
4424
- }), vl = /* @__PURE__ */ U(Uo, [["__scopeId", "data-v-5c2d8caa"]]), jo = /* @__PURE__ */ T({
4434
+ }), vl = /* @__PURE__ */ j(Uo, [["__scopeId", "data-v-5c2d8caa"]]), jo = /* @__PURE__ */ S({
4425
4435
  __name: "StepsItem",
4426
4436
  props: {
4427
4437
  index: {}
4428
4438
  },
4429
4439
  setup(e) {
4430
- return ge("StepIndex", e.index), (t, a) => j(t.$slots, "default");
4440
+ return ge("StepIndex", e.index), (t, a) => Y(t.$slots, "default");
4431
4441
  }
4432
4442
  }), Yo = ["data-size", "data-orientation"], Wo = ["data-error", "data-completed"], Xo = {
4433
4443
  "aria-live": "polite",
4434
4444
  "aria-atomic": "true",
4435
4445
  class: "sr-only"
4436
- }, Go = /* @__PURE__ */ T({
4446
+ }, Go = /* @__PURE__ */ S({
4437
4447
  __name: "Steps",
4438
4448
  props: /* @__PURE__ */ Q({
4439
4449
  orientation: { default: "horizontal" },
@@ -4448,12 +4458,12 @@ const sl = {
4448
4458
  }),
4449
4459
  emits: ["update:modelValue"],
4450
4460
  setup(e) {
4451
- const o = e, t = m(0), a = Fe(), l = ve(e, "modelValue"), s = m([]), i = m(null), n = I(() => l.value ?? 0), r = `steps-description-${ue()}`, d = M1({}), u = r1({});
4461
+ const o = e, t = m(0), a = Fe(), l = fe(e, "modelValue"), s = m([]), i = m(null), n = V(() => l.value ?? 0), r = `steps-description-${ce()}`, c = M1({}), u = r1({});
4452
4462
  let p = null;
4453
- const g = I(() => (a.default?.() ?? [])[n.value]?.props?.title ?? ""), k = I(() => Object.entries(u).filter(([, B]) => B !== "completed").length === 0), c = I(
4463
+ const g = V(() => (a.default?.() ?? [])[n.value]?.props?.title ?? ""), k = V(() => Object.entries(u).filter(([, B]) => B !== "completed").length === 0), d = V(
4454
4464
  () => Object.values(u).includes("error")
4455
- ), C = I(() => {
4456
- const B = n.value, q = d;
4465
+ ), C = V(() => {
4466
+ const B = n.value, q = c;
4457
4467
  if (q.value[0] == null || q.value[B] == null)
4458
4468
  return o.orientation === "vertical" ? {
4459
4469
  height: "100%",
@@ -4462,16 +4472,16 @@ const sl = {
4462
4472
  width: "100%",
4463
4473
  left: "0px"
4464
4474
  };
4465
- const M = q.value[0], x = q.value[B];
4475
+ const M = q.value[0], L = q.value[B];
4466
4476
  return o.orientation === "vertical" ? {
4467
4477
  top: `${M}px`,
4468
- height: `${x - M}px`
4478
+ height: `${L - M}px`
4469
4479
  } : {
4470
4480
  left: `${M}px`,
4471
- width: `${x - M}px`
4481
+ width: `${L - M}px`
4472
4482
  };
4473
- }), $ = I(() => {
4474
- const B = Object.values(d.value).sort((x, E) => x - E);
4483
+ }), $ = V(() => {
4484
+ const B = Object.values(c.value).sort((L, E) => L - E);
4475
4485
  if (B.length < 2) return {};
4476
4486
  const q = B[0], M = B[B.length - 1];
4477
4487
  return o.orientation === "vertical" ? {
@@ -4481,33 +4491,33 @@ const sl = {
4481
4491
  left: `${q}px`,
4482
4492
  right: `calc(100% - ${M}px)`
4483
4493
  };
4484
- }), L = (B, q) => d.value = { ...d.value, [B]: q };
4494
+ }), x = (B, q) => c.value = { ...c.value, [B]: q };
4485
4495
  function h(B) {
4486
4496
  s.value.push(B), t.value = s.value.length;
4487
4497
  }
4488
4498
  function _(B) {
4489
4499
  s.value = s.value.filter((q) => q !== B), t.value = s.value.length;
4490
4500
  }
4491
- function S(B) {
4501
+ function R(B) {
4492
4502
  B < 0 || B >= s.value.length || (l.value = B, s.value[B]?.focus());
4493
4503
  }
4494
4504
  function y() {
4495
- S(l.value + 1);
4505
+ R(l.value + 1);
4496
4506
  }
4497
- function V() {
4498
- S(l.value - 1);
4507
+ function I() {
4508
+ R(l.value - 1);
4499
4509
  }
4500
4510
  function b() {
4501
- S(0);
4511
+ R(0);
4502
4512
  }
4503
- function Z() {
4504
- S(t.value - 1);
4513
+ function A() {
4514
+ R(t.value - 1);
4505
4515
  }
4506
- return ne(() => {
4516
+ return ae(() => {
4507
4517
  i.value && (p = new ResizeObserver(() => {
4508
4518
  }), p.observe(i.value));
4509
4519
  }), be(() => p?.disconnect()), ge("StepsContext", {
4510
- current: I(() => l.value),
4520
+ current: V(() => l.value),
4511
4521
  update: (B) => l.value = B,
4512
4522
  stepsCount: t,
4513
4523
  icons: o.icons,
@@ -4518,14 +4528,14 @@ const sl = {
4518
4528
  registerStepStatus: (B, q) => {
4519
4529
  u[B] = q;
4520
4530
  },
4521
- registerIndicatorCenter: L,
4531
+ registerIndicatorCenter: x,
4522
4532
  registerStep: h,
4523
4533
  unregisterStep: _,
4524
4534
  focusNext: y,
4525
- focusPrev: V,
4535
+ focusPrev: I,
4526
4536
  focusFirst: b,
4527
- focusLast: Z
4528
- }), (B, q) => (v(), f(ae, null, [
4537
+ focusLast: A
4538
+ }), (B, q) => (v(), f(te, null, [
4529
4539
  w("ol", {
4530
4540
  ref_key: "stepsRef",
4531
4541
  ref: i,
@@ -4546,25 +4556,25 @@ const sl = {
4546
4556
  }, [
4547
4557
  w("div", {
4548
4558
  class: "track-progress",
4549
- "data-error": c.value,
4559
+ "data-error": d.value,
4550
4560
  "data-completed": k.value,
4551
4561
  style: ye(C.value)
4552
4562
  }, null, 12, Wo)
4553
4563
  ], 4),
4554
- (v(!0), f(ae, null, ie(B.$slots.default?.(), (M, x) => (v(), J(jo, {
4555
- key: x,
4556
- index: x
4564
+ (v(!0), f(te, null, ue(B.$slots.default?.(), (M, L) => (v(), J(jo, {
4565
+ key: L,
4566
+ index: L
4557
4567
  }, {
4558
- default: W(() => [
4568
+ default: G(() => [
4559
4569
  (v(), J(Ve(M)))
4560
4570
  ]),
4561
4571
  _: 2
4562
4572
  }, 1032, ["index"]))), 128))
4563
4573
  ], 8, Yo),
4564
- w("div", Xo, " Step " + F(n.value + 1) + " of " + F(t.value) + ": " + F(g.value), 1)
4574
+ w("div", Xo, " Step " + P(n.value + 1) + " of " + P(t.value) + ": " + P(g.value), 1)
4565
4575
  ], 64));
4566
4576
  }
4567
- }), fl = /* @__PURE__ */ U(Go, [["__scopeId", "data-v-8697173d"]]), Jo = ["data-align"], Qo = /* @__PURE__ */ T({
4577
+ }), fl = /* @__PURE__ */ j(Go, [["__scopeId", "data-v-8697173d"]]), Jo = ["data-align"], Qo = /* @__PURE__ */ S({
4568
4578
  __name: "Timeline",
4569
4579
  props: {
4570
4580
  align: { default: "left" }
@@ -4575,10 +4585,10 @@ const sl = {
4575
4585
  class: "ui-timeline",
4576
4586
  "data-align": e.align
4577
4587
  }, [
4578
- j(t.$slots, "default", {}, void 0, !0)
4588
+ Y(t.$slots, "default", {}, void 0, !0)
4579
4589
  ], 8, Jo));
4580
4590
  }
4581
- }), pl = /* @__PURE__ */ U(Qo, [["__scopeId", "data-v-d56deb2b"]]), en = ["data-align", "aria-labelledby", "aria-describedby"], tn = { class: "ui-timeline-content" }, an = ["datetime"], on = { class: "ui-timeline-date--month" }, nn = { class: "ui-timeline-date--day" }, ln = { class: "ui-timeline-date--year" }, rn = ["data-direction"], sn = { class: "info" }, un = ["id"], dn = { class: "addons" }, cn = /* @__PURE__ */ T({
4591
+ }), pl = /* @__PURE__ */ j(Qo, [["__scopeId", "data-v-d56deb2b"]]), en = ["data-align", "aria-labelledby", "aria-describedby"], tn = { class: "ui-timeline-content" }, an = ["datetime"], on = { class: "ui-timeline-date--month" }, nn = { class: "ui-timeline-date--day" }, ln = { class: "ui-timeline-date--year" }, rn = ["data-direction"], sn = { class: "info" }, un = ["id"], cn = { class: "addons" }, dn = /* @__PURE__ */ S({
4582
4592
  __name: "TimelineItem",
4583
4593
  props: {
4584
4594
  date: {},
@@ -4589,18 +4599,18 @@ const sl = {
4589
4599
  titleAs: {}
4590
4600
  },
4591
4601
  setup(e) {
4592
- const o = e, t = se("TimelineContext");
4602
+ const o = e, t = ie("TimelineContext");
4593
4603
  if (!t) throw new Error("TimelineItem must be used within a Timeline component");
4594
- const a = ue(), l = ue(), s = I(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (d) => {
4595
- const u = new Date(d).getDay();
4604
+ const a = ce(), l = ce(), s = V(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (c) => {
4605
+ const u = new Date(c).getDay();
4596
4606
  return u < 10 ? `0${u}` : u;
4597
- }, n = (d) => new Date(d).toLocaleString("default", { month: "short" }), r = (d) => new Date(d).getFullYear();
4598
- return (d, u) => (v(), f("li", {
4607
+ }, n = (c) => new Date(c).toLocaleString("default", { month: "short" }), r = (c) => new Date(c).getFullYear();
4608
+ return (c, u) => (v(), f("li", {
4599
4609
  tabindex: "0",
4600
- class: re([s.value, "ui-timeline-item"]),
4601
- "data-align": A(t).align,
4602
- "aria-labelledby": e.title ? A(a) : void 0,
4603
- "aria-describedby": e.description ? A(l) : void 0
4610
+ class: le([s.value, "ui-timeline-item"]),
4611
+ "data-align": D(t).align,
4612
+ "aria-labelledby": e.title ? D(a) : void 0,
4613
+ "aria-describedby": e.description ? D(l) : void 0
4604
4614
  }, [
4605
4615
  u[0] || (u[0] = w("div", {
4606
4616
  class: "ui-timeline-marker",
@@ -4612,49 +4622,49 @@ const sl = {
4612
4622
  class: "ui-timeline-date",
4613
4623
  datetime: e.date
4614
4624
  }, [
4615
- w("span", on, F(n(e.date)), 1),
4616
- w("span", nn, F(i(e.date)), 1),
4617
- w("span", ln, F(r(e.date)), 1)
4625
+ w("span", on, P(n(e.date)), 1),
4626
+ w("span", nn, P(i(e.date)), 1),
4627
+ w("span", ln, P(r(e.date)), 1)
4618
4628
  ], 8, an)) : O("", !0),
4619
4629
  w("div", {
4620
4630
  class: "ui-timeline-body",
4621
4631
  "data-direction": e.flexDirection
4622
4632
  }, [
4623
4633
  w("div", sn, [
4624
- j(d.$slots, "title", {}, () => [
4634
+ Y(c.$slots, "title", {}, () => [
4625
4635
  (v(), J(Ve(e.titleAs ?? "h3"), {
4626
- id: A(a),
4636
+ id: D(a),
4627
4637
  class: "ui-timeline-title"
4628
4638
  }, {
4629
- default: W(() => [
4630
- me(F(e.title), 1)
4639
+ default: G(() => [
4640
+ me(P(e.title), 1)
4631
4641
  ]),
4632
4642
  _: 1
4633
4643
  }, 8, ["id"]))
4634
4644
  ], !0),
4635
- j(d.$slots, "description", {}, () => [
4645
+ Y(c.$slots, "description", {}, () => [
4636
4646
  e.description ? (v(), f("p", {
4637
4647
  key: 0,
4638
- id: A(l),
4648
+ id: D(l),
4639
4649
  class: "ui-timeline-description"
4640
- }, F(e.description), 9, un)) : O("", !0)
4650
+ }, P(e.description), 9, un)) : O("", !0)
4641
4651
  ], !0)
4642
4652
  ]),
4643
- w("div", dn, [
4644
- j(d.$slots, "default", {}, void 0, !0)
4653
+ w("div", cn, [
4654
+ Y(c.$slots, "default", {}, void 0, !0)
4645
4655
  ])
4646
4656
  ], 8, rn)
4647
4657
  ])
4648
4658
  ], 10, en));
4649
4659
  }
4650
- }), Cl = /* @__PURE__ */ U(cn, [["__scopeId", "data-v-10599410"]]), vn = ["aria-label", "aria-activedescendant"], fn = { class: "carousel-viewport" }, pn = {
4660
+ }), Cl = /* @__PURE__ */ j(dn, [["__scopeId", "data-v-10599410"]]), vn = ["aria-label", "aria-activedescendant"], fn = { class: "carousel-viewport" }, pn = {
4651
4661
  class: "sr-only",
4652
4662
  "aria-live": "polite"
4653
4663
  }, Cn = {
4654
4664
  key: 0,
4655
4665
  role: "tablist",
4656
4666
  class: "carousel-indicators"
4657
- }, mn = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], hn = 0.35, yn = 0.2, gn = /* @__PURE__ */ T({
4667
+ }, mn = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], hn = 0.35, yn = 0.2, gn = /* @__PURE__ */ S({
4658
4668
  __name: "Carousel",
4659
4669
  props: /* @__PURE__ */ Q({
4660
4670
  ariaLabel: { default: "Carousel" },
@@ -4676,77 +4686,77 @@ const sl = {
4676
4686
  }),
4677
4687
  emits: ["update:modelValue"],
4678
4688
  setup(e) {
4679
- const o = ve(e, "modelValue"), t = e, a = m(0), l = m(0), s = m(0), i = m(0), n = m(0), r = m(0), d = m(!1), u = m(!1), p = m(0), g = m([]), k = m(1), c = m(o.value), C = m(null), $ = m(null);
4680
- let L = null, h = null;
4689
+ const o = fe(e, "modelValue"), t = e, a = m(0), l = m(0), s = m(0), i = m(0), n = m(0), r = m(0), c = m(!1), u = m(!1), p = m(0), g = m([]), k = m(1), d = m(o.value), C = m(null), $ = m(null);
4690
+ let x = null, h = null;
4681
4691
  X(
4682
4692
  () => o.value,
4683
- (H) => c.value = H
4693
+ (Z) => d.value = Z
4684
4694
  );
4685
- const _ = I(() => g.value[c.value] ?? void 0), S = I(() => Math.floor(c.value / k.value)), y = I(() => Math.ceil(Y.value / k.value)), V = I(() => Math.max(0, Y.value - k.value)), b = I(() => {
4686
- const H = c.value * (100 / k.value), z = u.value && $.value ? s.value / $.value.clientWidth * 100 : 0;
4695
+ const _ = V(() => g.value[d.value] ?? void 0), R = V(() => Math.floor(d.value / k.value)), y = V(() => Math.ceil(W.value / k.value)), I = V(() => Math.max(0, W.value - k.value)), b = V(() => {
4696
+ const Z = d.value * (100 / k.value), F = u.value && $.value ? s.value / $.value.clientWidth * 100 : 0;
4687
4697
  return {
4688
- transform: `translateX(calc(-${H}% + ${z}%))`,
4698
+ transform: `translateX(calc(-${Z}% + ${F}%))`,
4689
4699
  transition: u.value ? "none" : "transform 300ms ease"
4690
4700
  };
4691
- }), Z = (H) => {
4692
- let z = H;
4701
+ }), A = (Z) => {
4702
+ let F = Z;
4693
4703
  if (t.loop) {
4694
- const G = Math.round(H / k.value), oe = y.value;
4695
- z = (G % oe + oe) % oe * k.value;
4704
+ const se = Math.round(Z / k.value), oe = y.value;
4705
+ F = (se % oe + oe) % oe * k.value;
4696
4706
  } else
4697
- z = Math.min(
4698
- Math.max(H, 0),
4699
- V.value
4707
+ F = Math.min(
4708
+ Math.max(Z, 0),
4709
+ I.value
4700
4710
  );
4701
- c.value = z, o.value = z;
4702
- }, B = () => Z(c.value + k.value), q = () => Z(c.value - k.value), M = (H) => {
4703
- H.key === "ArrowRight" ? B() : H.key === "ArrowLeft" && q();
4704
- }, x = (H) => (g.value.includes(H) || g.value.push(H), g.value.indexOf(H)), E = (H) => g.value = g.value.filter((z) => z !== H), Y = I(() => g.value.length), ee = () => {
4705
- !t.autoplay || L !== null || (L = window.setInterval(() => {
4706
- d.value || B();
4711
+ d.value = F, o.value = F;
4712
+ }, B = () => A(d.value + k.value), q = () => A(d.value - k.value), M = (Z) => {
4713
+ Z.key === "ArrowRight" ? B() : Z.key === "ArrowLeft" && q();
4714
+ }, L = (Z) => (g.value.includes(Z) || g.value.push(Z), g.value.indexOf(Z)), E = (Z) => g.value = g.value.filter((F) => F !== Z), W = V(() => g.value.length), ee = () => {
4715
+ !t.autoplay || x !== null || (x = window.setInterval(() => {
4716
+ c.value || B();
4707
4717
  }, t.autoplayDelay));
4708
- }, D = () => {
4709
- L !== null && (clearInterval(L), L = null);
4710
- }, N = (H) => {
4718
+ }, re = () => {
4719
+ x !== null && (clearInterval(x), x = null);
4720
+ }, T = (Z) => {
4711
4721
  if (typeof t.itemsPerView == "number")
4712
4722
  return t.itemsPerView;
4713
- const z = Object.entries(t.itemsPerView).map(([oe, ke]) => [Number(oe), ke]).sort((oe, ke) => oe[0] - ke[0]);
4714
- let G = z[0]?.[1] ?? 1;
4715
- for (const [oe, ke] of z) H >= oe && (G = ke);
4716
- return G;
4717
- }, te = (H) => {
4718
- H.button === 0 && (u.value = !0, l.value = H.clientX, a.value = H.clientX, r.value = H.clientX, s.value = 0, i.value = performance.now(), n.value = 0, p.value = c.value, $.value?.setPointerCapture(H.pointerId), D(), $.value.style.userSelect = "");
4719
- }, fe = (H) => {
4723
+ const F = Object.entries(t.itemsPerView).map(([oe, ke]) => [Number(oe), ke]).sort((oe, ke) => oe[0] - ke[0]);
4724
+ let se = F[0]?.[1] ?? 1;
4725
+ for (const [oe, ke] of F) Z >= oe && (se = ke);
4726
+ return se;
4727
+ }, N = (Z) => {
4728
+ Z.button === 0 && (u.value = !0, l.value = Z.clientX, a.value = Z.clientX, r.value = Z.clientX, s.value = 0, i.value = performance.now(), n.value = 0, p.value = d.value, $.value?.setPointerCapture(Z.pointerId), re(), $.value.style.userSelect = "");
4729
+ }, H = (Z) => {
4720
4730
  if (!u.value) return;
4721
- const z = performance.now(), G = H.clientX - a.value, oe = z - i.value;
4722
- oe > 0 && (n.value = G / oe), a.value = H.clientX, i.value = z, r.value = H.clientX, s.value = r.value - l.value;
4723
- }, R = (H) => {
4731
+ const F = performance.now(), se = Z.clientX - a.value, oe = F - i.value;
4732
+ oe > 0 && (n.value = se / oe), a.value = Z.clientX, i.value = F, r.value = Z.clientX, s.value = r.value - l.value;
4733
+ }, z = (Z) => {
4724
4734
  if (!u.value) return;
4725
- u.value = !1, $.value?.releasePointerCapture(H.pointerId), $.value.style.userSelect = "";
4726
- const z = $.value.clientWidth / k.value, G = s.value / z;
4727
- Math.abs(n.value) > hn ? n.value < 0 ? B() : q() : Math.abs(G) > yn ? G < 0 ? B() : q() : Z(p.value), s.value = 0, n.value = 0, ee();
4735
+ u.value = !1, $.value?.releasePointerCapture(Z.pointerId), $.value.style.userSelect = "";
4736
+ const F = $.value.clientWidth / k.value, se = s.value / F;
4737
+ Math.abs(n.value) > hn ? n.value < 0 ? B() : q() : Math.abs(se) > yn ? se < 0 ? B() : q() : A(p.value), s.value = 0, n.value = 0, ee();
4728
4738
  };
4729
- return ne(() => {
4730
- ee(), C.value && (h = new ResizeObserver((H) => {
4731
- const z = H[0]?.contentRect.width;
4732
- z !== void 0 && (k.value = N(z));
4739
+ return ae(() => {
4740
+ ee(), C.value && (h = new ResizeObserver((Z) => {
4741
+ const F = Z[0]?.contentRect.width;
4742
+ F !== void 0 && (k.value = T(F));
4733
4743
  }), h.observe(C.value));
4734
4744
  }), be(() => {
4735
- D(), h?.disconnect();
4745
+ re(), h?.disconnect();
4736
4746
  }), X(
4737
4747
  () => t.autoplay,
4738
- (H) => {
4739
- H ? ee() : D();
4748
+ (Z) => {
4749
+ Z ? ee() : re();
4740
4750
  },
4741
4751
  { immediate: !0 }
4742
- ), X(k, () => c.value = Math.min(c.value, V.value)), ge("CarouselContext", {
4743
- register: x,
4752
+ ), X(k, () => d.value = Math.min(d.value, I.value)), ge("CarouselContext", {
4753
+ register: L,
4744
4754
  unregister: E,
4745
- activeIndex: c,
4746
- slideCount: Y,
4755
+ activeIndex: d,
4756
+ slideCount: W,
4747
4757
  deltaX: s,
4748
4758
  itemsPerView: t.itemsPerView instanceof Object ? k : m(t.itemsPerView)
4749
- }), (H, z) => (v(), f("div", {
4759
+ }), (Z, F) => (v(), f("div", {
4750
4760
  ref_key: "rootRef",
4751
4761
  ref: C,
4752
4762
  role: "region",
@@ -4757,12 +4767,12 @@ const sl = {
4757
4767
  "aria-activedescendant": _.value,
4758
4768
  style: ye({ "--items-per-view": k.value }),
4759
4769
  onKeydown: M,
4760
- onMouseenter: z[0] || (z[0] = (G) => d.value = !0),
4761
- onMouseleave: z[1] || (z[1] = (G) => d.value = !1),
4762
- onFocusin: z[2] || (z[2] = (G) => d.value = !0),
4763
- onFocusout: z[3] || (z[3] = (G) => d.value = !1)
4770
+ onMouseenter: F[0] || (F[0] = (se) => c.value = !0),
4771
+ onMouseleave: F[1] || (F[1] = (se) => c.value = !1),
4772
+ onFocusin: F[2] || (F[2] = (se) => c.value = !0),
4773
+ onFocusout: F[3] || (F[3] = (se) => c.value = !1)
4764
4774
  }, [
4765
- z[4] || (z[4] = w("span", {
4775
+ F[4] || (F[4] = w("span", {
4766
4776
  id: "carousel-instructions",
4767
4777
  class: "sr-only"
4768
4778
  }, " Use left and right arrow keys to navigate slides ", -1)),
@@ -4772,22 +4782,22 @@ const sl = {
4772
4782
  ref: $,
4773
4783
  class: "carousel-track",
4774
4784
  style: ye(b.value),
4775
- onPointerdown: te,
4776
- onPointermove: fe,
4777
- onPointerup: R,
4778
- onPointercancel: R
4785
+ onPointerdown: N,
4786
+ onPointermove: H,
4787
+ onPointerup: z,
4788
+ onPointercancel: z
4779
4789
  }, [
4780
- j(H.$slots, "default", {}, void 0, !0)
4790
+ Y(Z.$slots, "default", {}, void 0, !0)
4781
4791
  ], 36)
4782
4792
  ]),
4783
- w("span", pn, " Slide " + F(Math.floor(c.value / k.value) + 1) + " of " + F(y.value), 1),
4793
+ w("span", pn, " Slide " + P(Math.floor(d.value / k.value) + 1) + " of " + P(y.value), 1),
4784
4794
  w("button", {
4785
4795
  type: "button",
4786
4796
  class: "carousel-control prev",
4787
4797
  "aria-label": "Previous slide",
4788
4798
  onClick: q
4789
4799
  }, [
4790
- K(de, { name: "directionDown" })
4800
+ U(de, { name: "directionDown" })
4791
4801
  ]),
4792
4802
  w("button", {
4793
4803
  type: "button",
@@ -4795,33 +4805,33 @@ const sl = {
4795
4805
  "aria-label": "Next slide",
4796
4806
  onClick: B
4797
4807
  }, [
4798
- K(de, { name: "directionDown" })
4808
+ U(de, { name: "directionDown" })
4799
4809
  ]),
4800
4810
  e.showIndicators ? (v(), f("div", Cn, [
4801
- (v(!0), f(ae, null, ie(y.value, (G, oe) => (v(), f("button", {
4811
+ (v(!0), f(te, null, ue(y.value, (se, oe) => (v(), f("button", {
4802
4812
  role: "tab",
4803
4813
  type: "button",
4804
4814
  key: oe,
4805
- class: re(["indicator", { active: oe === Math.floor(c.value / k.value) }]),
4815
+ class: le(["indicator", { active: oe === Math.floor(d.value / k.value) }]),
4806
4816
  "aria-label": `Go to slide ${oe + 1}`,
4807
- "aria-selected": oe === S.value,
4808
- "aria-current": oe === S.value,
4809
- onClick: (ke) => Z(oe * k.value),
4817
+ "aria-selected": oe === R.value,
4818
+ "aria-current": oe === R.value,
4819
+ onClick: (ke) => A(oe * k.value),
4810
4820
  onKeydown: [
4811
- ce(le((ke) => Z((oe - 1 + y.value) % y.value * k.value), ["prevent"]), ["left"]),
4812
- ce(le((ke) => Z((oe + 1) % y.value * k.value), ["prevent"]), ["right"])
4821
+ ve(ne((ke) => A((oe - 1 + y.value) % y.value * k.value), ["prevent"]), ["left"]),
4822
+ ve(ne((ke) => A((oe + 1) % y.value * k.value), ["prevent"]), ["right"])
4813
4823
  ]
4814
4824
  }, null, 42, mn))), 128))
4815
4825
  ])) : O("", !0)
4816
4826
  ], 44, vn));
4817
4827
  }
4818
- }), ml = /* @__PURE__ */ U(gn, [["__scopeId", "data-v-30cdfc00"]]), bn = ["aria-hidden", "aria-label"], kn = /* @__PURE__ */ T({
4828
+ }), ml = /* @__PURE__ */ j(gn, [["__scopeId", "data-v-30cdfc00"]]), bn = ["aria-hidden", "aria-label"], kn = /* @__PURE__ */ S({
4819
4829
  __name: "CarouselItem",
4820
4830
  setup(e) {
4821
- const o = se("CarouselContext");
4831
+ const o = ie("CarouselContext");
4822
4832
  if (!o) throw new Error("CarouselItem must be used inside a Carousel");
4823
- const t = "carousel-item-" + ue(), a = m(0), l = I(() => Math.abs(o.deltaX.value) > 5), s = I(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
4824
- return ne(() => a.value = o.register(t)), be(() => o.unregister(t)), (i, n) => (v(), f("div", {
4833
+ const t = "carousel-item-" + ce(), a = m(0), l = V(() => Math.abs(o.deltaX.value) > 5), s = V(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
4834
+ return ae(() => a.value = o.register(t)), be(() => o.unregister(t)), (i, n) => (v(), f("div", {
4825
4835
  role: "group",
4826
4836
  class: "carousel-item",
4827
4837
  id: t,
@@ -4830,10 +4840,10 @@ const sl = {
4830
4840
  "aria-label": `Slide ${a.value + 1}`,
4831
4841
  onClickCapture: n[0] || (n[0] = (r) => l.value && r.preventDefault())
4832
4842
  }, [
4833
- j(i.$slots, "default", {}, void 0, !0)
4843
+ Y(i.$slots, "default", {}, void 0, !0)
4834
4844
  ], 40, bn));
4835
4845
  }
4836
- }), hl = /* @__PURE__ */ U(kn, [["__scopeId", "data-v-a569d055"]]), De = /* @__PURE__ */ Symbol("TabsContext"), yl = T({
4846
+ }), hl = /* @__PURE__ */ j(kn, [["__scopeId", "data-v-a569d055"]]), De = /* @__PURE__ */ Symbol("TabsContext"), yl = S({
4837
4847
  name: "Tabs",
4838
4848
  props: {
4839
4849
  modelValue: String,
@@ -4850,37 +4860,37 @@ const sl = {
4850
4860
  emits: ["update:modelValue"],
4851
4861
  setup(e, { emit: o, slots: t }) {
4852
4862
  const a = m(e.modelValue ?? e.defaultValue), l = m(!1), s = m([]), i = m("forward"), n = m();
4853
- X(a, (c) => {
4854
- !c || !l.value || requestAnimationFrame(() => {
4855
- document.getElementById(`tab-${c}`)?.focus(), l.value = !1;
4863
+ X(a, (d) => {
4864
+ !d || !l.value || requestAnimationFrame(() => {
4865
+ document.getElementById(`tab-${d}`)?.focus(), l.value = !1;
4856
4866
  });
4857
4867
  }), X(
4858
4868
  () => e.modelValue,
4859
- (c) => {
4860
- c !== void 0 && (a.value = c);
4869
+ (d) => {
4870
+ d !== void 0 && (a.value = d);
4861
4871
  }
4862
- ), X(s, (c) => {
4863
- !a.value && c.length && (a.value = c[0]);
4872
+ ), X(s, (d) => {
4873
+ !a.value && d.length && (a.value = d[0]);
4864
4874
  });
4865
- const r = (c, C) => s.value[C] = c, d = (c) => {
4875
+ const r = (d, C) => s.value[C] = d, c = (d) => {
4866
4876
  const C = s.value.filter(Boolean);
4867
4877
  if (!C.length) return;
4868
4878
  const $ = a.value;
4869
4879
  if (!$) {
4870
- a.value = c, o("update:modelValue", c);
4880
+ a.value = d, o("update:modelValue", d);
4871
4881
  return;
4872
4882
  }
4873
- const L = C.indexOf($), h = C.indexOf(c);
4874
- if (L === -1 || h === -1) {
4875
- a.value = c, o("update:modelValue", c);
4883
+ const x = C.indexOf($), h = C.indexOf(d);
4884
+ if (x === -1 || h === -1) {
4885
+ a.value = d, o("update:modelValue", d);
4876
4886
  return;
4877
4887
  }
4878
- L !== -1 && h !== -1 && (i.value = h > L ? "forward" : "backward"), $ !== c && (a.value = c, o("update:modelValue", c));
4879
- }, u = I(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), p = (c) => {
4880
- c instanceof HTMLElement && n.value && (n.value.style.height = `${c.offsetHeight}px`);
4881
- }, g = (c) => {
4882
- if (c instanceof HTMLElement && n.value) {
4883
- const C = c.offsetHeight;
4888
+ x !== -1 && h !== -1 && (i.value = h > x ? "forward" : "backward"), $ !== d && (a.value = d, o("update:modelValue", d));
4889
+ }, u = V(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), p = (d) => {
4890
+ d instanceof HTMLElement && n.value && (n.value.style.height = `${d.offsetHeight}px`);
4891
+ }, g = (d) => {
4892
+ if (d instanceof HTMLElement && n.value) {
4893
+ const C = d.offsetHeight;
4884
4894
  requestAnimationFrame(() => {
4885
4895
  n.value && (n.value.style.height = `${C}px`);
4886
4896
  });
@@ -4890,7 +4900,7 @@ const sl = {
4890
4900
  };
4891
4901
  return ge(De, {
4892
4902
  activeValue: a,
4893
- setValue: d,
4903
+ setValue: c,
4894
4904
  registerTrigger: r,
4895
4905
  direction: i,
4896
4906
  activationMode: m(e.activationMode),
@@ -4899,20 +4909,20 @@ const sl = {
4899
4909
  contentWrapperRef: n,
4900
4910
  focusOnChange: l
4901
4911
  }), () => {
4902
- const c = t.default?.() || [], C = [], $ = [];
4903
- c.forEach((h) => {
4912
+ const d = t.default?.() || [], C = [], $ = [];
4913
+ d.forEach((h) => {
4904
4914
  h.type?.name === "TabsContent" ? $.push(h) : C.push(h);
4905
4915
  });
4906
- const L = $.find((h) => h.props?.value === a.value);
4916
+ const x = $.find((h) => h.props?.value === a.value);
4907
4917
  return [
4908
4918
  ...C,
4909
- P(
4919
+ K(
4910
4920
  "div",
4911
4921
  {
4912
4922
  class: "tabs-content-wrapper",
4913
4923
  ref: n
4914
4924
  },
4915
- P(
4925
+ K(
4916
4926
  $e,
4917
4927
  {
4918
4928
  name: u.value,
@@ -4921,21 +4931,21 @@ const sl = {
4921
4931
  onEnter: g,
4922
4932
  onAfterEnter: k
4923
4933
  },
4924
- () => L ? [P(L.type, {
4925
- ...L.props,
4926
- key: L.props.value
4927
- }, L.children)] : []
4934
+ () => x ? [K(x.type, {
4935
+ ...x.props,
4936
+ key: x.props.value
4937
+ }, x.children)] : []
4928
4938
  )
4929
4939
  )
4930
4940
  ];
4931
4941
  };
4932
4942
  }
4933
- }), gl = T({
4943
+ }), gl = S({
4934
4944
  name: "TabsList",
4935
4945
  setup(e, { slots: o }) {
4936
- const t = se(De);
4946
+ const t = ie(De);
4937
4947
  if (!t) throw new Error("TabsList components must be used inside <Tabs>");
4938
- return () => P(
4948
+ return () => K(
4939
4949
  "div",
4940
4950
  {
4941
4951
  role: "tablist",
@@ -4945,7 +4955,7 @@ const sl = {
4945
4955
  o.default?.()
4946
4956
  );
4947
4957
  }
4948
- }), bl = T({
4958
+ }), bl = S({
4949
4959
  name: "TabsTrigger",
4950
4960
  props: {
4951
4961
  value: {
@@ -4962,9 +4972,9 @@ const sl = {
4962
4972
  }
4963
4973
  },
4964
4974
  setup(e, { slots: o }) {
4965
- const t = se(De);
4975
+ const t = ie(De);
4966
4976
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
4967
- const a = I(() => t.activeValue.value === e.value), l = () => !e.disabled && t.setValue(e.value), s = (i) => {
4977
+ const a = V(() => t.activeValue.value === e.value), l = () => !e.disabled && t.setValue(e.value), s = (i) => {
4968
4978
  if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
4969
4979
  i.preventDefault();
4970
4980
  const r = t.triggers.value.filter(Boolean);
@@ -4996,7 +5006,7 @@ const sl = {
4996
5006
  document.getElementById(`tab-${g}`)?.focus();
4997
5007
  });
4998
5008
  };
4999
- return ne(() => !e.disabled && t.registerTrigger(e.value, e.index)), be(() => t.triggers.value[e.index] = void 0), () => P(
5009
+ return ae(() => !e.disabled && t.registerTrigger(e.value, e.index)), be(() => t.triggers.value[e.index] = void 0), () => K(
5000
5010
  he,
5001
5011
  {
5002
5012
  role: "tab",
@@ -5013,7 +5023,7 @@ const sl = {
5013
5023
  { default: () => o.default?.() }
5014
5024
  );
5015
5025
  }
5016
- }), kl = T({
5026
+ }), kl = S({
5017
5027
  name: "TabsContent",
5018
5028
  props: {
5019
5029
  value: {
@@ -5022,8 +5032,8 @@ const sl = {
5022
5032
  }
5023
5033
  },
5024
5034
  setup(e, { slots: o }) {
5025
- if (!se(De)) throw new Error("TabsContent components must be used inside <Tabs>");
5026
- return () => P(
5035
+ if (!ie(De)) throw new Error("TabsContent components must be used inside <Tabs>");
5036
+ return () => K(
5027
5037
  "div",
5028
5038
  {
5029
5039
  id: `panel-${e.value}`,
@@ -5035,11 +5045,11 @@ const sl = {
5035
5045
  o.default?.()
5036
5046
  );
5037
5047
  }
5038
- }), wn = { class: "ui-dropdown" }, wl = /* @__PURE__ */ T({
5048
+ }), wn = { class: "ui-dropdown" }, wl = /* @__PURE__ */ S({
5039
5049
  __name: "Dropdown",
5040
5050
  setup(e) {
5041
5051
  let o = 0;
5042
- const t = m(!1), a = m(null), l = m({}), s = `dropdown-${ue()}`, i = `${s}-menu`, n = `${s}-trigger`, r = () => t.value = !0, d = () => {
5052
+ const t = m(!1), a = m(null), l = m({}), s = `dropdown-${ce()}`, i = `${s}-menu`, n = `${s}-trigger`, r = () => t.value = !0, c = () => {
5043
5053
  t.value = !1, l.value = {}, o = 0, a.value?.focus({ preventScroll: !0 });
5044
5054
  }, u = () => t.value = !t.value, p = (h) => {
5045
5055
  const _ = `dropdown-item-${o++}`;
@@ -5050,19 +5060,19 @@ const sl = {
5050
5060
  }, k = () => {
5051
5061
  const h = Object.keys(l.value)[0];
5052
5062
  h && g(h);
5053
- }, c = () => {
5063
+ }, d = () => {
5054
5064
  const h = Object.keys(l.value), _ = h[h.length - 1];
5055
5065
  _ && g(_);
5056
5066
  }, C = (h) => {
5057
- const _ = Object.keys(l.value), S = L(h), y = _[S + 1];
5058
- S >= 0 && S < _.length - 1 && y && g(y);
5067
+ const _ = Object.keys(l.value), R = x(h), y = _[R + 1];
5068
+ R >= 0 && R < _.length - 1 && y && g(y);
5059
5069
  }, $ = (h) => {
5060
- const _ = Object.keys(l.value), S = L(h), y = _[S - 1];
5061
- S > 0 && y && g(y);
5062
- }, L = (h) => Object.keys(l.value).indexOf(h);
5070
+ const _ = Object.keys(l.value), R = x(h), y = _[R - 1];
5071
+ R > 0 && y && g(y);
5072
+ }, x = (h) => Object.keys(l.value).indexOf(h);
5063
5073
  return ge("DropdownContext", {
5064
5074
  open: r,
5065
- close: d,
5075
+ close: c,
5066
5076
  toggle: u,
5067
5077
  isOpen: t,
5068
5078
  registerItem: p,
@@ -5070,38 +5080,38 @@ const sl = {
5070
5080
  focusNextItem: C,
5071
5081
  focusPrevItem: $,
5072
5082
  focusFirstItem: k,
5073
- focusLastItem: c,
5083
+ focusLastItem: d,
5074
5084
  triggerRef: a,
5075
5085
  menuId: i,
5076
5086
  triggerId: n
5077
5087
  }), (h, _) => (v(), f("div", wn, [
5078
- j(h.$slots, "default")
5088
+ Y(h.$slots, "default")
5079
5089
  ]));
5080
5090
  }
5081
- }), Mn = /* @__PURE__ */ T({
5091
+ }), Mn = /* @__PURE__ */ S({
5082
5092
  __name: "DropdownTrigger",
5083
5093
  props: {
5084
5094
  variant: { default: "button" }
5085
5095
  },
5086
5096
  setup(e) {
5087
- const o = e, t = se("DropdownContext");
5097
+ const o = e, t = ie("DropdownContext");
5088
5098
  if (!t) throw new Error("DropdownTrigger must be used within a Dropdown");
5089
5099
  const a = m(), l = (s) => {
5090
5100
  s.key === "ArrowDown" && (s.preventDefault(), t.open(), Me(() => t.focusFirstItem())), s.key === "ArrowUp" && (s.preventDefault(), t.open(), Me(() => t.focusLastItem()));
5091
5101
  };
5092
- return ne(() => t.triggerRef.value = a.value?.el), (s, i) => (v(), J(he, {
5102
+ return ae(() => t.triggerRef.value = a.value?.el), (s, i) => (v(), J(he, {
5093
5103
  ref_key: "btn",
5094
5104
  ref: a,
5095
- id: A(t).triggerId,
5096
- class: re(["ui-dropdown-trigger", { "btn-outline": o.variant === "button" }]),
5105
+ id: D(t).triggerId,
5106
+ class: le(["ui-dropdown-trigger", { "btn-outline": o.variant === "button" }]),
5097
5107
  "aria-haspopup": "menu",
5098
- "aria-controls": A(t).menuId,
5099
- "aria-expanded": A(t).isOpen.value,
5100
- onClick: A(t).toggle,
5108
+ "aria-controls": D(t).menuId,
5109
+ "aria-expanded": D(t).isOpen.value,
5110
+ onClick: D(t).toggle,
5101
5111
  onKeydown: l
5102
5112
  }, {
5103
- default: W(() => [
5104
- j(s.$slots, "default", {}, void 0, !0),
5113
+ default: G(() => [
5114
+ Y(s.$slots, "default", {}, void 0, !0),
5105
5115
  o.variant === "button" ? (v(), J(de, {
5106
5116
  key: 0,
5107
5117
  name: "directionDown"
@@ -5110,10 +5120,10 @@ const sl = {
5110
5120
  _: 3
5111
5121
  }, 8, ["id", "class", "aria-controls", "aria-expanded", "onClick"]));
5112
5122
  }
5113
- }), Ml = /* @__PURE__ */ U(Mn, [["__scopeId", "data-v-267a3d51"]]), Ln = ["id", "aria-labelledby"], xn = /* @__PURE__ */ T({
5123
+ }), Ml = /* @__PURE__ */ j(Mn, [["__scopeId", "data-v-267a3d51"]]), xn = ["id", "aria-labelledby"], Ln = /* @__PURE__ */ S({
5114
5124
  __name: "DropdownMenu",
5115
5125
  setup(e) {
5116
- const o = se("DropdownContext");
5126
+ const o = ie("DropdownContext");
5117
5127
  if (!o) throw new Error("DropdownMenu must be used within a Dropdown");
5118
5128
  const t = m(), a = m({}), l = (n) => {
5119
5129
  const r = n.target;
@@ -5138,37 +5148,37 @@ const sl = {
5138
5148
  (n) => {
5139
5149
  n ? document.addEventListener("pointerdown", l, !0) : document.removeEventListener("pointerdown", l, !0);
5140
5150
  }
5141
- ), ne(() => {
5151
+ ), ae(() => {
5142
5152
  window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
5143
5153
  }), be(() => {
5144
5154
  window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
5145
- }), (n, r) => (v(), J(Ie, { to: "body" }, [
5146
- A(o).isOpen.value ? (v(), f("div", {
5155
+ }), (n, r) => (v(), J(He, { to: "body" }, [
5156
+ D(o).isOpen.value ? (v(), f("div", {
5147
5157
  key: 0,
5148
5158
  role: "menu",
5149
5159
  ref_key: "menuRef",
5150
5160
  ref: t,
5151
5161
  style: ye(a.value),
5152
- id: A(o).menuId,
5162
+ id: D(o).menuId,
5153
5163
  "aria-orientation": "vertical",
5154
- "aria-labelledby": A(o).triggerId,
5164
+ "aria-labelledby": D(o).triggerId,
5155
5165
  class: "ui-dropdown-menu",
5156
5166
  onKeydown: s
5157
5167
  }, [
5158
- j(n.$slots, "default", {}, void 0, !0)
5159
- ], 44, Ln)) : O("", !0)
5168
+ Y(n.$slots, "default", {}, void 0, !0)
5169
+ ], 44, xn)) : O("", !0)
5160
5170
  ]));
5161
5171
  }
5162
- }), Ll = /* @__PURE__ */ U(xn, [["__scopeId", "data-v-f2be8ab5"]]), $n = /* @__PURE__ */ T({
5172
+ }), xl = /* @__PURE__ */ j(Ln, [["__scopeId", "data-v-f2be8ab5"]]), $n = /* @__PURE__ */ S({
5163
5173
  __name: "DropdownItem",
5164
5174
  setup(e) {
5165
- const o = se("DropdownContext");
5175
+ const o = ie("DropdownContext");
5166
5176
  if (!o) throw new Error("DropdownItem must be used within a Dropdown");
5167
5177
  let t;
5168
5178
  const a = m(), l = (s) => {
5169
5179
  s.key === "ArrowDown" && (s.preventDefault(), o.focusNextItem(t)), s.key === "ArrowUp" && (s.preventDefault(), o.focusPrevItem(t)), (s.key === "Enter" || s.key === " ") && (s.preventDefault(), a.value?.click(), o.close());
5170
5180
  };
5171
- return ne(() => t = o.registerItem(a.value)), (s, i) => (v(), f("div", {
5181
+ return ae(() => t = o.registerItem(a.value)), (s, i) => (v(), f("div", {
5172
5182
  ref_key: "itemRef",
5173
5183
  ref: a,
5174
5184
  role: "menuitem",
@@ -5176,26 +5186,26 @@ const sl = {
5176
5186
  tabindex: "-1",
5177
5187
  onKeydown: l,
5178
5188
  onClick: i[0] || (i[0] = //@ts-ignore
5179
- (...n) => A(o).close && A(o).close(...n)),
5189
+ (...n) => D(o).close && D(o).close(...n)),
5180
5190
  onPointerenter: i[1] || (i[1] = (n) => a.value?.focus())
5181
5191
  }, [
5182
- j(s.$slots, "default", {}, void 0, !0)
5192
+ Y(s.$slots, "default", {}, void 0, !0)
5183
5193
  ], 544));
5184
5194
  }
5185
- }), xl = /* @__PURE__ */ U($n, [["__scopeId", "data-v-69de3d9c"]]), Vn = (e) => {
5186
- const o = /* @__PURE__ */ new Date(), t = e.locale || "default", a = m(e.modelValue ?? null), l = m(e.modelValue ? new Date(e.modelValue) : o), s = e.firstDayOfWeek ?? 0, i = I(() => {
5195
+ }), Ll = /* @__PURE__ */ j($n, [["__scopeId", "data-v-69de3d9c"]]), Vn = (e) => {
5196
+ const o = /* @__PURE__ */ new Date(), t = e.locale || "default", a = m(e.modelValue ?? null), l = m(e.modelValue ? new Date(e.modelValue) : o), s = e.firstDayOfWeek ?? 0, i = V(() => {
5187
5197
  const g = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(l.value);
5188
5198
  return g.charAt(0).toUpperCase() + g.slice(1);
5189
- }), n = I(() => {
5199
+ }), n = V(() => {
5190
5200
  const g = new Date(2021, 5, 6);
5191
- return Array.from({ length: 7 }).map((k, c) => {
5201
+ return Array.from({ length: 7 }).map((k, d) => {
5192
5202
  const C = new Date(g);
5193
- return C.setDate(g.getDate() + (c + s) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(C).replace(".", "");
5203
+ return C.setDate(g.getDate() + (d + s) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(C).replace(".", "");
5194
5204
  });
5195
- }), r = I(() => {
5196
- const g = l.value.getFullYear(), k = l.value.getMonth(), c = new Date(g, k, 1), C = new Date(g, k + 1, 0), $ = (c.getDay() - s + 7) % 7, L = C.getDate(), h = [];
5205
+ }), r = V(() => {
5206
+ const g = l.value.getFullYear(), k = l.value.getMonth(), d = new Date(g, k, 1), C = new Date(g, k + 1, 0), $ = (d.getDay() - s + 7) % 7, x = C.getDate(), h = [];
5197
5207
  for (let _ = 0; _ < $; _++) h.push(null);
5198
- for (let _ = 1; _ <= L; _++) h.push(new Date(g, k, _));
5208
+ for (let _ = 1; _ <= x; _++) h.push(new Date(g, k, _));
5199
5209
  return h;
5200
5210
  });
5201
5211
  return {
@@ -5222,17 +5232,17 @@ const sl = {
5222
5232
  }, l1 = (e, o) => {
5223
5233
  const t = o.replace("DD", "(?<day>\\d{2})").replace("MM", "(?<month>\\d{2})").replace("YYYY", "(?<year>\\d{4})").replace("HH", "(?<hour>\\d{2})").replace("mm", "(?<minute>\\d{2})").replace("ss", "(?<second>\\d{2})"), a = new RegExp(`^${t}$`), l = e.match(a);
5224
5234
  if (!l?.groups) return null;
5225
- const s = Number(l.groups.day ?? 1), i = Number(l.groups.month ?? 1), n = Number(l.groups.year ?? 1970), r = Number(l.groups.hour ?? 0), d = Number(l.groups.minute ?? 0), u = Number(l.groups.second ?? 0);
5226
- return Hn(s, i, n) ? new Date(n, i - 1, s, r, d, u, 0) : null;
5235
+ const s = Number(l.groups.day ?? 1), i = Number(l.groups.month ?? 1), n = Number(l.groups.year ?? 1970), r = Number(l.groups.hour ?? 0), c = Number(l.groups.minute ?? 0), u = Number(l.groups.second ?? 0);
5236
+ return In(s, i, n) ? new Date(n, i - 1, s, r, c, u, 0) : null;
5227
5237
  };
5228
- function Hn(e, o, t, a = 1900, l = 2100) {
5238
+ function In(e, o, t, a = 1900, l = 2100) {
5229
5239
  if (!Number.isInteger(e) || !Number.isInteger(o) || !Number.isInteger(t) || o < 1 || o > 12 || t < a || t > l) return !1;
5230
5240
  const s = new Date(t, o, 0).getDate();
5231
5241
  if (e < 1 || e > s) return !1;
5232
5242
  const i = new Date(t, o - 1, e);
5233
5243
  return i.getFullYear() === t && i.getMonth() === o - 1 && i.getDate() === e;
5234
5244
  }
5235
- const In = (e, o) => {
5245
+ const Hn = (e, o) => {
5236
5246
  const t = e.replace(/\D/g, ""), a = o.match(h1);
5237
5247
  if (!a) return e;
5238
5248
  let l = "", s = 0;
@@ -5240,7 +5250,7 @@ const In = (e, o) => {
5240
5250
  const n = i.length, r = t.slice(s, s + n);
5241
5251
  if (!r) break;
5242
5252
  if (l += r, s += r.length, s < t.length) {
5243
- const d = o.indexOf(i) + i.length, u = o[d];
5253
+ const c = o.indexOf(i) + i.length, u = o[c];
5244
5254
  u && !u.match(/[DMYHms]/) && (l += u);
5245
5255
  }
5246
5256
  }
@@ -5254,7 +5264,7 @@ const In = (e, o) => {
5254
5264
  }, An = { class: "dp-header" }, Sn = { class: "month__name" }, Tn = { class: "dp-weekdays" }, Zn = {
5255
5265
  class: "dp-days",
5256
5266
  role: "grid"
5257
- }, En = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], zn = /* @__PURE__ */ T({
5267
+ }, En = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], zn = /* @__PURE__ */ S({
5258
5268
  __name: "DatePicker",
5259
5269
  props: /* @__PURE__ */ Q({
5260
5270
  id: {},
@@ -5270,13 +5280,13 @@ const In = (e, o) => {
5270
5280
  }),
5271
5281
  emits: /* @__PURE__ */ Q(["update:open"], ["update:modelValue"]),
5272
5282
  setup(e, { emit: o }) {
5273
- const t = ve(e, "modelValue"), a = o, l = e, s = m(!1), i = m(""), n = m(null), r = m(null), {
5274
- monthLabel: d,
5283
+ const t = fe(e, "modelValue"), a = o, l = e, s = m(!1), i = m(""), n = m(null), r = m(null), {
5284
+ monthLabel: c,
5275
5285
  weekDays: u,
5276
5286
  days: p,
5277
5287
  nextMonth: g,
5278
5288
  prevMonth: k,
5279
- select: c
5289
+ select: d
5280
5290
  } = Vn({
5281
5291
  modelValue: t.value,
5282
5292
  locale: l.locale,
@@ -5297,60 +5307,60 @@ const In = (e, o) => {
5297
5307
  async (b) => {
5298
5308
  if (b) {
5299
5309
  await Me();
5300
- let Z = n.value?.querySelector('button[data-selected="true"]');
5301
- if (!Z) {
5310
+ let A = n.value?.querySelector('button[data-selected="true"]');
5311
+ if (!A) {
5302
5312
  const B = /* @__PURE__ */ new Date();
5303
- Z = Array.from(n.value?.querySelectorAll("button") || []).find((q) => Number(q.textContent) === B.getDate() && !q.disabled);
5313
+ A = Array.from(n.value?.querySelectorAll("button") || []).find((q) => Number(q.textContent) === B.getDate() && !q.disabled);
5304
5314
  }
5305
- Z && Z.focus(), document.addEventListener("keydown", L);
5306
- } else document.removeEventListener("keydown", L);
5315
+ A && A.focus(), document.addEventListener("keydown", x);
5316
+ } else document.removeEventListener("keydown", x);
5307
5317
  }
5308
5318
  );
5309
5319
  const C = (b) => {
5310
- r.value = b, t.value = b, i.value = Ee(b, l.format), c(b), s.value = !1;
5311
- }, $ = (b) => !b || !r.value ? "" : b.toDateString() === r.value.toDateString() ? "dp-selected" : "", L = (b) => b.key === "Escape" && (s.value = !1), h = (b) => {
5320
+ r.value = b, t.value = b, i.value = Ee(b, l.format), d(b), s.value = !1;
5321
+ }, $ = (b) => !b || !r.value ? "" : b.toDateString() === r.value.toDateString() ? "dp-selected" : "", x = (b) => b.key === "Escape" && (s.value = !1), h = (b) => {
5312
5322
  b.key === "Backspace" || b.key === "Delete" || b.key === "ArrowLeft" || b.key === "ArrowRight" || b.key === "Tab" || /[0-9]/.test(b.key) || b.preventDefault();
5313
5323
  }, _ = (b) => {
5314
- const Z = b.target, B = Z.selectionStart ?? 0, M = Z.value.slice(0, B).replace(/\D/g, "").length;
5315
- let x = Z.value.replace(/\D/g, "");
5324
+ const A = b.target, B = A.selectionStart ?? 0, M = A.value.slice(0, B).replace(/\D/g, "").length;
5325
+ let L = A.value.replace(/\D/g, "");
5316
5326
  const E = Bn(l.format);
5317
- x = x.slice(0, E);
5318
- const Y = In(x, l.format);
5319
- i.value = Y, Z.value = Y;
5320
- let ee = 0, D = 0;
5321
- for (let te = 0; te < Y.length; te++)
5322
- if (/\d/.test(Y[te] ?? "") && D++, D >= M) {
5323
- ee = te + 1;
5327
+ L = L.slice(0, E);
5328
+ const W = Hn(L, l.format);
5329
+ i.value = W, A.value = W;
5330
+ let ee = 0, re = 0;
5331
+ for (let N = 0; N < W.length; N++)
5332
+ if (/\d/.test(W[N] ?? "") && re++, re >= M) {
5333
+ ee = N + 1;
5324
5334
  break;
5325
5335
  }
5326
- requestAnimationFrame(() => Z.setSelectionRange(ee, ee));
5327
- const N = l1(Y, l.format);
5328
- N && (r.value = N, t.value = N);
5329
- }, S = () => {
5336
+ requestAnimationFrame(() => A.setSelectionRange(ee, ee));
5337
+ const T = l1(W, l.format);
5338
+ T && (r.value = T, t.value = T);
5339
+ }, R = () => {
5330
5340
  s.value || (s.value = !0, a("update:open", !0));
5331
5341
  }, y = (b) => {
5332
5342
  n.value && (n.value.contains(b.target) || (s.value = !1, a("update:open", !1)));
5333
- }, V = () => {
5343
+ }, I = () => {
5334
5344
  const b = l1(i.value, l.format);
5335
5345
  !b && !r.value ? (i.value = "", t.value = null, r.value = null) : b && (r.value = b, t.value = b, i.value = Ee(b, l.format));
5336
5346
  };
5337
- return ne(() => document.addEventListener("mousedown", y)), He(() => document.removeEventListener("mousedown", y)), (b, Z) => (v(), f("div", {
5347
+ return ae(() => document.addEventListener("mousedown", y)), Ie(() => document.removeEventListener("mousedown", y)), (b, A) => (v(), f("div", {
5338
5348
  ref_key: "root",
5339
5349
  ref: n,
5340
- class: re(["dp", { required: Object.keys(b.$attrs).includes("required") }])
5350
+ class: le(["dp", { required: Object.keys(b.$attrs).includes("required") }])
5341
5351
  }, [
5342
5352
  w("label", {
5343
5353
  for: e.id,
5344
5354
  class: "label"
5345
- }, F(e.label), 9, _n),
5355
+ }, P(e.label), 9, _n),
5346
5356
  w("input", {
5347
5357
  id: e.id,
5348
5358
  class: "dp-input",
5349
5359
  value: i.value,
5350
- onBlur: V,
5360
+ onBlur: I,
5351
5361
  onInput: _,
5352
5362
  onKeydown: h,
5353
- onMousedown: S,
5363
+ onMousedown: R,
5354
5364
  required: Object.keys(b.$attrs).includes("required") || void 0,
5355
5365
  "aria-invalid": !r.value && i.value !== "",
5356
5366
  disabled: e.disabled ? !0 : void 0,
@@ -5360,66 +5370,66 @@ const In = (e, o) => {
5360
5370
  autocomplete: "off",
5361
5371
  placeholder: e.placeholder || e.format
5362
5372
  }, null, 40, Dn),
5363
- K(he, {
5373
+ U(he, {
5364
5374
  type: "button",
5365
5375
  class: "btn-icon",
5366
- onClick: S,
5376
+ onClick: R,
5367
5377
  disabled: e.disabled || void 0
5368
5378
  }, {
5369
- default: W(() => [
5370
- K(de, { name: "calendar" })
5379
+ default: G(() => [
5380
+ U(de, { name: "calendar" })
5371
5381
  ]),
5372
5382
  _: 1
5373
5383
  }, 8, ["disabled"]),
5374
- Z[2] || (Z[2] = w("small", {
5384
+ A[2] || (A[2] = w("small", {
5375
5385
  id: "time-help",
5376
5386
  class: "sr-only"
5377
5387
  }, "After selecting a date, adjust hours and minutes", -1)),
5378
5388
  s.value ? (v(), f("div", Rn, [
5379
5389
  w("header", An, [
5380
5390
  w("button", {
5381
- onClick: Z[0] || (Z[0] = //@ts-ignore
5382
- (...B) => A(k) && A(k)(...B)),
5391
+ onClick: A[0] || (A[0] = //@ts-ignore
5392
+ (...B) => D(k) && D(k)(...B)),
5383
5393
  class: "btn__prev_month",
5384
5394
  "aria-label": "Previous month"
5385
5395
  }, "‹"),
5386
- w("span", Sn, F(A(d)), 1),
5396
+ w("span", Sn, P(D(c)), 1),
5387
5397
  w("button", {
5388
- onClick: Z[1] || (Z[1] = //@ts-ignore
5389
- (...B) => A(g) && A(g)(...B)),
5398
+ onClick: A[1] || (A[1] = //@ts-ignore
5399
+ (...B) => D(g) && D(g)(...B)),
5390
5400
  class: "btn__next_month",
5391
5401
  "aria-label": "Next month"
5392
5402
  }, "›")
5393
5403
  ]),
5394
5404
  w("div", Tn, [
5395
- (v(!0), f(ae, null, ie(A(u), (B) => (v(), f("span", {
5405
+ (v(!0), f(te, null, ue(D(u), (B) => (v(), f("span", {
5396
5406
  class: "week-day__name",
5397
5407
  key: B
5398
- }, F(B), 1))), 128))
5408
+ }, P(B), 1))), 128))
5399
5409
  ]),
5400
5410
  w("div", Zn, [
5401
- (v(!0), f(ae, null, ie(A(p), (B, q) => (v(), f("button", {
5411
+ (v(!0), f(te, null, ue(D(p), (B, q) => (v(), f("button", {
5402
5412
  key: q,
5403
5413
  type: "button",
5404
5414
  role: "gridcell",
5405
- class: re(["btn__day", $(B)]),
5415
+ class: le(["btn__day", $(B)]),
5406
5416
  disabled: !B,
5407
5417
  "aria-pressed": $(B) === "dp-selected",
5408
5418
  "data-selected": B && $(B) === "dp-selected",
5409
- onMousedown: le((M) => B && C(B), ["prevent"]),
5419
+ onMousedown: ne((M) => B && C(B), ["prevent"]),
5410
5420
  "aria-label": B ? B.toLocaleDateString(l.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
5411
- }, F(B?.getDate()), 43, En))), 128))
5421
+ }, P(B?.getDate()), 43, En))), 128))
5412
5422
  ]),
5413
- j(b.$slots, "time", {}, void 0, !0)
5423
+ Y(b.$slots, "time", {}, void 0, !0)
5414
5424
  ])) : O("", !0)
5415
5425
  ], 2));
5416
5426
  }
5417
- }), On = /* @__PURE__ */ U(zn, [["__scopeId", "data-v-040f2832"]]), qn = {
5427
+ }), On = /* @__PURE__ */ j(zn, [["__scopeId", "data-v-040f2832"]]), qn = {
5418
5428
  key: 0,
5419
5429
  class: "time-panel",
5420
5430
  role: "group",
5421
5431
  "aria-label": "Time selection"
5422
- }, Nn = ["id", "aria-valuenow"], Fn = { key: 1 }, Pn = ["id", "aria-valuenow"], Kn = { key: 3 }, Un = ["id", "aria-valuenow"], jn = /* @__PURE__ */ T({
5432
+ }, Nn = ["id", "aria-valuenow"], Fn = { key: 1 }, Pn = ["id", "aria-valuenow"], Kn = { key: 3 }, Un = ["id", "aria-valuenow"], jn = /* @__PURE__ */ S({
5423
5433
  __name: "DateTimePicker",
5424
5434
  props: /* @__PURE__ */ Q({
5425
5435
  id: {},
@@ -5437,49 +5447,49 @@ const In = (e, o) => {
5437
5447
  }),
5438
5448
  emits: ["update:modelValue"],
5439
5449
  setup(e) {
5440
- const o = ve(e, "modelValue"), t = e, a = ue(), l = m(!1), s = m(null), i = I(() => t.format.includes("HH")), n = I(() => t.format.includes("mm")), r = I(() => t.format.includes("ss")), d = m(o.value ?? null), u = m(o.value?.getHours() ?? (i.value ? 0 : void 0)), p = m(o.value?.getMinutes() ?? (n.value ? 0 : void 0)), g = m(o.value?.getSeconds() ?? (r.value ? 0 : void 0));
5441
- X(o, (L) => {
5442
- if (L) {
5443
- const h = new Date(L);
5444
- d.value = h, u.value = h.getHours(), p.value = h.getMinutes(), g.value = h.getSeconds();
5450
+ const o = fe(e, "modelValue"), t = e, a = ce(), l = m(!1), s = m(null), i = V(() => t.format.includes("HH")), n = V(() => t.format.includes("mm")), r = V(() => t.format.includes("ss")), c = m(o.value ?? null), u = m(o.value?.getHours() ?? (i.value ? 0 : void 0)), p = m(o.value?.getMinutes() ?? (n.value ? 0 : void 0)), g = m(o.value?.getSeconds() ?? (r.value ? 0 : void 0));
5451
+ X(o, (x) => {
5452
+ if (x) {
5453
+ const h = new Date(x);
5454
+ c.value = h, u.value = h.getHours(), p.value = h.getMinutes(), g.value = h.getSeconds();
5445
5455
  } else
5446
- d.value = null, u.value = 0, p.value = 0, g.value = 0;
5447
- }, { immediate: !0 }), X(d, (L) => {
5448
- if (!L) return;
5449
- const h = L.getHours(), _ = L.getMinutes(), S = L.getSeconds();
5450
- h !== u.value && (u.value = h), _ !== p.value && (p.value = _), S !== g.value && (g.value = S);
5451
- }, { immediate: !0 }), X([d, u, p, g], () => {
5452
- if (!d.value) {
5456
+ c.value = null, u.value = 0, p.value = 0, g.value = 0;
5457
+ }, { immediate: !0 }), X(c, (x) => {
5458
+ if (!x) return;
5459
+ const h = x.getHours(), _ = x.getMinutes(), R = x.getSeconds();
5460
+ h !== u.value && (u.value = h), _ !== p.value && (p.value = _), R !== g.value && (g.value = R);
5461
+ }, { immediate: !0 }), X([c, u, p, g], () => {
5462
+ if (!c.value) {
5453
5463
  o.value = null;
5454
5464
  return;
5455
5465
  }
5456
- const L = Math.min(Math.max(u.value ?? 0, 0), 23), h = Math.min(Math.max(p.value ?? 0, 0), 59), _ = Math.min(Math.max(g.value ?? 0, 0), 59), S = new Date(d.value);
5457
- S.setHours(L, h, _, 0), (!o.value || o.value.getTime() !== S.getTime()) && (o.value = S);
5466
+ const x = Math.min(Math.max(u.value ?? 0, 0), 23), h = Math.min(Math.max(p.value ?? 0, 0), 59), _ = Math.min(Math.max(g.value ?? 0, 0), 59), R = new Date(c.value);
5467
+ R.setHours(x, h, _, 0), (!o.value || o.value.getTime() !== R.getTime()) && (o.value = R);
5458
5468
  });
5459
- const k = (L) => {
5460
- s.value && (s.value.contains(L.target) || (l.value = !1));
5461
- }, c = (L) => {
5462
- const h = Number(L.target.value);
5469
+ const k = (x) => {
5470
+ s.value && (s.value.contains(x.target) || (l.value = !1));
5471
+ }, d = (x) => {
5472
+ const h = Number(x.target.value);
5463
5473
  isNaN(h) || h < 0 ? u.value = 0 : h > 23 ? u.value = 23 : u.value = h;
5464
- }, C = (L) => {
5465
- const h = Number(L.target.value);
5474
+ }, C = (x) => {
5475
+ const h = Number(x.target.value);
5466
5476
  isNaN(h) || h < 0 ? p.value = 0 : h > 59 ? p.value = 59 : p.value = h;
5467
- }, $ = (L) => {
5468
- const h = Number(L.target.value);
5477
+ }, $ = (x) => {
5478
+ const h = Number(x.target.value);
5469
5479
  isNaN(h) || h < 0 ? g.value = 0 : h > 59 ? g.value = 59 : g.value = h;
5470
5480
  };
5471
- return ne(() => {
5481
+ return ae(() => {
5472
5482
  document.addEventListener("mousedown", k);
5473
- }), He(() => {
5483
+ }), Ie(() => {
5474
5484
  document.removeEventListener("mousedown", k);
5475
- }), (L, h) => (v(), f("div", {
5485
+ }), (x, h) => (v(), f("div", {
5476
5486
  class: "dtp",
5477
5487
  ref_key: "root",
5478
5488
  ref: s
5479
5489
  }, [
5480
- K(On, {
5481
- modelValue: d.value,
5482
- "onUpdate:modelValue": h[3] || (h[3] = (_) => d.value = _),
5490
+ U(On, {
5491
+ modelValue: c.value,
5492
+ "onUpdate:modelValue": h[3] || (h[3] = (_) => c.value = _),
5483
5493
  open: l.value,
5484
5494
  "onUpdate:open": h[4] || (h[4] = (_) => l.value = _),
5485
5495
  locale: e.locale,
@@ -5488,11 +5498,11 @@ const In = (e, o) => {
5488
5498
  "first-day-of-week": e.firstDayOfWeek,
5489
5499
  placeholder: e.placeholder
5490
5500
  }, {
5491
- time: W(() => [
5501
+ time: G(() => [
5492
5502
  l.value ? (v(), f("div", qn, [
5493
5503
  i.value ? we((v(), f("input", {
5494
5504
  key: 0,
5495
- id: `hour_${A(a)}`,
5505
+ id: `hour_${D(a)}`,
5496
5506
  type: "number",
5497
5507
  "onUpdate:modelValue": h[0] || (h[0] = (_) => u.value = _),
5498
5508
  min: "0",
@@ -5501,7 +5511,7 @@ const In = (e, o) => {
5501
5511
  "aria-valuemin": "0",
5502
5512
  "aria-valuemax": "23",
5503
5513
  "aria-valuenow": u.value,
5504
- onInput: c
5514
+ onInput: d
5505
5515
  }, null, 40, Nn)), [
5506
5516
  [
5507
5517
  Ae,
@@ -5513,7 +5523,7 @@ const In = (e, o) => {
5513
5523
  i.value && n.value ? (v(), f("span", Fn, ":")) : O("", !0),
5514
5524
  n.value ? we((v(), f("input", {
5515
5525
  key: 2,
5516
- id: `minute_${A(a)}`,
5526
+ id: `minute_${D(a)}`,
5517
5527
  type: "number",
5518
5528
  "onUpdate:modelValue": h[1] || (h[1] = (_) => p.value = _),
5519
5529
  min: "0",
@@ -5534,7 +5544,7 @@ const In = (e, o) => {
5534
5544
  (i.value || n.value) && r.value ? (v(), f("span", Kn, ":")) : O("", !0),
5535
5545
  r.value ? we((v(), f("input", {
5536
5546
  key: 4,
5537
- id: `second_${A(a)}`,
5547
+ id: `second_${D(a)}`,
5538
5548
  type: "number",
5539
5549
  "onUpdate:modelValue": h[2] || (h[2] = (_) => g.value = _),
5540
5550
  min: "0",
@@ -5558,7 +5568,7 @@ const In = (e, o) => {
5558
5568
  }, 8, ["modelValue", "open", "locale", "format", "label", "first-day-of-week", "placeholder"])
5559
5569
  ], 512));
5560
5570
  }
5561
- }), $l = /* @__PURE__ */ U(jn, [["__scopeId", "data-v-ef63f0e7"]]), Vl = T({
5571
+ }), $l = /* @__PURE__ */ j(jn, [["__scopeId", "data-v-ef63f0e7"]]), Vl = S({
5562
5572
  name: "Table",
5563
5573
  props: {
5564
5574
  columns: {
@@ -5589,7 +5599,7 @@ const In = (e, o) => {
5589
5599
  if (!n.sortable) return;
5590
5600
  const r = e.sort?.key === n.key && e.sort.direction === "asc" ? "desc" : "asc";
5591
5601
  o("update:sort", { key: n.key, direction: r });
5592
- }, l = () => window.matchMedia("(max-width: 640px)").matches, s = () => P(
5602
+ }, l = () => window.matchMedia("(max-width: 640px)").matches, s = () => K(
5593
5603
  "div",
5594
5604
  {
5595
5605
  class: "rs-table-mobile",
@@ -5597,7 +5607,7 @@ const In = (e, o) => {
5597
5607
  "aria-busy": e.loading || void 0
5598
5608
  },
5599
5609
  e.loading ? t.loading?.() ?? "Loading..." : e.data.length === 0 ? t.empty?.() ?? "No data available." : e.data.map(
5600
- (n, r) => P(
5610
+ (n, r) => K(
5601
5611
  "div",
5602
5612
  {
5603
5613
  key: n.id ?? r,
@@ -5605,55 +5615,55 @@ const In = (e, o) => {
5605
5615
  role: e.rowClickable ? "button" : "listitem",
5606
5616
  tabindex: e.rowClickable ? 0 : void 0,
5607
5617
  onClick: e.rowClickable ? () => o("rowClick", n) : void 0,
5608
- onKeydown: e.rowClickable ? (d) => {
5609
- (d.key === "Enter" || d.key === " ") && (d.preventDefault(), o("rowClick", n));
5618
+ onKeydown: e.rowClickable ? (c) => {
5619
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), o("rowClick", n));
5610
5620
  } : void 0
5611
5621
  },
5612
5622
  e.columns.map(
5613
- (d) => P(
5623
+ (c) => K(
5614
5624
  "div",
5615
5625
  { class: "rs-table-card-row" },
5616
5626
  [
5617
- P(
5627
+ K(
5618
5628
  "span",
5619
5629
  { class: "rs-table-card-label" },
5620
- d.header
5630
+ c.header
5621
5631
  ),
5622
- P(
5632
+ K(
5623
5633
  "span",
5624
5634
  { class: "rs-table-card-value" },
5625
5635
  t.cell?.({
5626
5636
  row: n,
5627
- column: d,
5628
- value: n[d.key]
5629
- }) ?? n[d.key]
5637
+ column: c,
5638
+ value: n[c.key]
5639
+ }) ?? n[c.key]
5630
5640
  )
5631
5641
  ]
5632
5642
  )
5633
5643
  )
5634
5644
  )
5635
5645
  )
5636
- ), i = () => P(
5646
+ ), i = () => K(
5637
5647
  "div",
5638
5648
  { class: "rs-table-container" },
5639
- P(
5649
+ K(
5640
5650
  "div",
5641
5651
  { class: "rs-table-scroll" },
5642
- P(
5652
+ K(
5643
5653
  "table",
5644
5654
  {
5645
5655
  class: "rs-table",
5646
5656
  "aria-busy": e.loading || void 0
5647
5657
  },
5648
5658
  [
5649
- P(
5659
+ K(
5650
5660
  "thead",
5651
5661
  null,
5652
- P(
5662
+ K(
5653
5663
  "tr",
5654
5664
  null,
5655
5665
  e.columns.map(
5656
- (n) => P(
5666
+ (n) => K(
5657
5667
  "th",
5658
5668
  {
5659
5669
  key: n.key,
@@ -5669,15 +5679,15 @@ const In = (e, o) => {
5669
5679
  } : void 0,
5670
5680
  scope: "col"
5671
5681
  },
5672
- P(
5682
+ K(
5673
5683
  "div",
5674
5684
  { class: "rs-table-th-content" },
5675
5685
  [
5676
- P(
5686
+ K(
5677
5687
  "span",
5678
5688
  n.header
5679
5689
  ),
5680
- n.sortable ? P(
5690
+ n.sortable ? K(
5681
5691
  de,
5682
5692
  {
5683
5693
  name: e.sort?.key === n.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
@@ -5690,15 +5700,15 @@ const In = (e, o) => {
5690
5700
  )
5691
5701
  )
5692
5702
  ),
5693
- P(
5703
+ K(
5694
5704
  "tbody",
5695
5705
  null,
5696
5706
  e.loading ? [
5697
- P(
5707
+ K(
5698
5708
  "tr",
5699
5709
  null,
5700
5710
  [
5701
- P(
5711
+ K(
5702
5712
  "td",
5703
5713
  { colspan: e.columns.length },
5704
5714
  t.loading?.() ?? "Loading..."
@@ -5706,11 +5716,11 @@ const In = (e, o) => {
5706
5716
  ]
5707
5717
  )
5708
5718
  ] : e.data.length === 0 ? [
5709
- P(
5719
+ K(
5710
5720
  "tr",
5711
5721
  null,
5712
5722
  [
5713
- P(
5723
+ K(
5714
5724
  "td",
5715
5725
  { colspan: e.columns.length },
5716
5726
  t.empty?.() ?? "No data available."
@@ -5718,32 +5728,32 @@ const In = (e, o) => {
5718
5728
  ]
5719
5729
  )
5720
5730
  ] : e.data.map(
5721
- (n, r) => P(
5731
+ (n, r) => K(
5722
5732
  "tr",
5723
5733
  {
5724
5734
  key: n.id ?? r,
5725
5735
  tabindex: e.rowClickable ? 0 : void 0,
5726
5736
  role: e.rowClickable ? "button" : void 0,
5727
5737
  onClick: e.rowClickable ? () => o("rowClick", n) : void 0,
5728
- onKeydown: e.rowClickable ? (d) => {
5729
- (d.key === "Enter" || d.key === " ") && (d.preventDefault(), o("rowClick", n));
5738
+ onKeydown: e.rowClickable ? (c) => {
5739
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), o("rowClick", n));
5730
5740
  } : void 0,
5731
5741
  "data-clickable": e.rowClickable || void 0
5732
5742
  },
5733
5743
  e.columns.map(
5734
- (d) => P(
5744
+ (c) => K(
5735
5745
  "td",
5736
5746
  {
5737
- key: d.key,
5747
+ key: c.key,
5738
5748
  style: {
5739
- textAlign: d.align || "left"
5749
+ textAlign: c.align || "left"
5740
5750
  }
5741
5751
  },
5742
5752
  t.cell?.({
5743
5753
  row: n,
5744
- column: d,
5745
- value: n[d.key]
5746
- }) ?? n[d.key]
5754
+ column: c,
5755
+ value: n[c.key]
5756
+ }) ?? n[c.key]
5747
5757
  )
5748
5758
  )
5749
5759
  )
@@ -5755,14 +5765,14 @@ const In = (e, o) => {
5755
5765
  );
5756
5766
  return () => {
5757
5767
  const n = e.responsive === "card" || e.responsive === "auto" && l();
5758
- return P(
5768
+ return K(
5759
5769
  "div",
5760
5770
  { class: "rs-table-container" },
5761
5771
  n ? s() : i()
5762
5772
  );
5763
5773
  };
5764
5774
  }
5765
- }), Re = /* @__PURE__ */ Symbol("AccordionContext"), Hl = T({
5775
+ }), Re = /* @__PURE__ */ Symbol("AccordionContext"), Il = S({
5766
5776
  name: "Accordion",
5767
5777
  props: {
5768
5778
  multiple: { type: Boolean, default: !1 },
@@ -5786,7 +5796,7 @@ const In = (e, o) => {
5786
5796
  }, r = (p) => {
5787
5797
  const g = t.value.indexOf(p);
5788
5798
  t.value[(g - 1 + t.value.length) % t.value.length]?.focus();
5789
- }, d = () => t.value[0]?.focus(), u = () => {
5799
+ }, c = () => t.value[0]?.focus(), u = () => {
5790
5800
  const p = t.value;
5791
5801
  p.length && p[p.length - 1]?.focus();
5792
5802
  };
@@ -5798,21 +5808,21 @@ const In = (e, o) => {
5798
5808
  unregisterHeader: i,
5799
5809
  focusNext: n,
5800
5810
  focusPrev: r,
5801
- focusFirst: d,
5811
+ focusFirst: c,
5802
5812
  focusLast: u
5803
5813
  }), () => o.default?.();
5804
5814
  }
5805
- }), Il = T({
5815
+ }), Hl = S({
5806
5816
  name: "AccordionItem",
5807
5817
  props: {
5808
5818
  id: { type: String, required: !0 },
5809
5819
  disabled: { type: Boolean, default: !1 }
5810
5820
  },
5811
5821
  setup(e, { slots: o }) {
5812
- const t = se(Re);
5822
+ const t = ie(Re);
5813
5823
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
5814
- const a = I(() => t.openItems.value.has(e.id));
5815
- return () => P(
5824
+ const a = V(() => t.openItems.value.has(e.id));
5825
+ return () => K(
5816
5826
  "div",
5817
5827
  {
5818
5828
  class: "rs-accordion-item",
@@ -5821,16 +5831,16 @@ const In = (e, o) => {
5821
5831
  o.default?.({ open: a.value })
5822
5832
  );
5823
5833
  }
5824
- }), Bl = T({
5834
+ }), Bl = S({
5825
5835
  name: "AccordionHeader",
5826
5836
  props: {
5827
5837
  id: { type: String, required: !0 },
5828
5838
  disabled: { type: Boolean, default: !1 }
5829
5839
  },
5830
5840
  setup(e, { slots: o }) {
5831
- const t = se(Re), a = m(null);
5841
+ const t = ie(Re), a = m(null);
5832
5842
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
5833
- const l = I(() => t.openItems.value.has(e.id)), s = () => {
5843
+ const l = V(() => t.openItems.value.has(e.id)), s = () => {
5834
5844
  e.disabled || t.toggle?.(e.id);
5835
5845
  }, i = (n) => {
5836
5846
  if (a.value)
@@ -5849,11 +5859,11 @@ const In = (e, o) => {
5849
5859
  break;
5850
5860
  }
5851
5861
  };
5852
- return ne(() => {
5862
+ return ae(() => {
5853
5863
  a.value && t.registerHeader(a.value);
5854
- }), He(() => {
5864
+ }), Ie(() => {
5855
5865
  a.value && t.unregisterHeader(a.value);
5856
- }), () => P(
5866
+ }), () => K(
5857
5867
  "button",
5858
5868
  {
5859
5869
  ref: a,
@@ -5868,29 +5878,29 @@ const In = (e, o) => {
5868
5878
  onKeydown: i
5869
5879
  },
5870
5880
  [
5871
- P(
5881
+ K(
5872
5882
  "span",
5873
5883
  { class: "rs-accordion-trigger__label" },
5874
5884
  o.default?.()
5875
5885
  ),
5876
- P(
5886
+ K(
5877
5887
  "span",
5878
5888
  { class: "rs-accordion-trigger__icon", "aria-hidden": "true" },
5879
- P(de, { name: "directionDown" })
5889
+ K(de, { name: "directionDown" })
5880
5890
  )
5881
5891
  ]
5882
5892
  );
5883
5893
  }
5884
- }), _l = T({
5894
+ }), _l = S({
5885
5895
  name: "AccordionPanel",
5886
5896
  props: {
5887
5897
  id: { type: String, required: !0 }
5888
5898
  },
5889
5899
  setup(e, { slots: o }) {
5890
- const t = se(Re);
5900
+ const t = ie(Re);
5891
5901
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
5892
- const a = I(() => t.openItems.value.has(e.id));
5893
- return () => P(
5902
+ const a = V(() => t.openItems.value.has(e.id));
5903
+ return () => K(
5894
5904
  "div",
5895
5905
  {
5896
5906
  id: `panel-${e.id}`,
@@ -5900,7 +5910,7 @@ const In = (e, o) => {
5900
5910
  "data-state": a.value ? "open" : "closed",
5901
5911
  "aria-labelledby": `header-${e.id}`
5902
5912
  },
5903
- P(
5913
+ K(
5904
5914
  "div",
5905
5915
  { class: "rs-accordion-panel__inner" },
5906
5916
  o.default?.()
@@ -5909,17 +5919,17 @@ const In = (e, o) => {
5909
5919
  }
5910
5920
  });
5911
5921
  export {
5912
- Hl as Accordion,
5922
+ Il as Accordion,
5913
5923
  Bl as AccordionHeader,
5914
- Il as AccordionItem,
5924
+ Hl as AccordionItem,
5915
5925
  _l as AccordionPanel,
5916
5926
  ll as Autocomplete,
5917
5927
  Jn as Avatar,
5918
5928
  ol as Breadcrumb,
5919
5929
  he as Button,
5920
5930
  il as Card,
5921
- dl as CardBody,
5922
- cl as CardFooter,
5931
+ cl as CardBody,
5932
+ dl as CardFooter,
5923
5933
  ul as CardHeader,
5924
5934
  ml as Carousel,
5925
5935
  hl as CarouselItem,
@@ -5927,20 +5937,20 @@ export {
5927
5937
  On as DatePicker,
5928
5938
  $l as DateTimePicker,
5929
5939
  wl as Dropdown,
5930
- xl as DropdownItem,
5931
- Ll as DropdownMenu,
5940
+ Ll as DropdownItem,
5941
+ xl as DropdownMenu,
5932
5942
  Ml as DropdownTrigger,
5933
5943
  Ge as Editor,
5934
5944
  Pa as Highlight,
5935
5945
  de as Icon,
5936
- xe as Image,
5946
+ Le as Image,
5937
5947
  t1 as ImageGallery,
5938
5948
  Gn as Input,
5939
5949
  Xn as Link,
5940
5950
  Oe as Modal,
5941
5951
  p1 as ModalBody,
5942
5952
  C1 as ModalClose,
5943
- c1 as ModalContent,
5953
+ d1 as ModalContent,
5944
5954
  el as ModalFooter,
5945
5955
  f1 as ModalHeader,
5946
5956
  v1 as ModalTitle,