@reinosoft-ui/core 0.1.42 → 0.1.44

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,4 +1,4 @@
1
- import { defineComponent as T, ref as h, computed as H, watch as Y, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as re, renderSlot as U, createCommentVNode as q, withDirectives as Me, createElementVNode as M, vShow as qe, mergeProps as Ce, mergeModels as ee, useModel as fe, withKeys as ve, withModifiers as le, onUnmounted as be, Fragment as te, unref as S, toDisplayString as N, renderList as ue, createBlock as J, Transition as $e, withCtx as W, nextTick as we, useId as de, provide as ge, createVNode as P, createTextVNode as me, onBeforeUnmount as Ie, Teleport as He, resolveDynamicComponent as Ve, useAttrs as Ne, inject as se, h as F, useSlots as Fe, resolveComponent as h1, vModelRadio as y1, vModelDynamic as g1, reactive as r1, TransitionGroup as b1, createApp as k1, shallowRef as w1, vModelText as Ae } from "vue";
1
+ import { defineComponent as T, ref as h, computed as I, watch as Y, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as U, createCommentVNode as q, withDirectives as Me, createElementVNode as M, vShow as qe, mergeProps as Ce, mergeModels as ee, useModel as fe, withKeys as ve, withModifiers as le, onUnmounted as be, Fragment as te, unref as S, toDisplayString as N, renderList as ue, createBlock as J, Transition as $e, withCtx as W, nextTick as we, useId as de, provide as ye, createVNode as P, createTextVNode as me, onBeforeUnmount as He, Teleport as Ie, resolveDynamicComponent as Ve, useAttrs as Ne, inject as se, h as F, useSlots as Fe, resolveComponent as h1, vModelRadio as g1, vModelDynamic as y1, reactive as r1, TransitionGroup as b1, createApp as k1, shallowRef as w1, vModelText as Ae } from "vue";
2
2
  import { routerKey as M1 } from "vue-router";
3
3
  const L1 = ["aria-busy"], x1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], V1 = /* @__PURE__ */ T({
4
4
  __name: "Image",
@@ -16,7 +16,7 @@ const L1 = ["aria-busy"], x1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "
16
16
  },
17
17
  emits: ["loaded", "error"],
18
18
  setup(e, { emit: o }) {
19
- const t = e, a = o, n = h(t.src), i = h(), s = h("loading"), r = H(() => t.ratio ? {
19
+ const t = e, a = o, n = h(t.src), i = h(), s = h("loading"), r = I(() => t.ratio ? {
20
20
  aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
21
21
  } : void 0), l = () => {
22
22
  s.value = "loaded", a("loaded");
@@ -39,7 +39,7 @@ const L1 = ["aria-busy"], x1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "
39
39
  "is-loaded": s.value === "loaded",
40
40
  transform: e.transform
41
41
  }]),
42
- style: ye(r.value),
42
+ style: ge(r.value),
43
43
  "aria-busy": s.value === "loading" || void 0
44
44
  }, [
45
45
  s.value === "loading" ? U(u.$slots, "placeholder", { key: 0 }, () => [
@@ -81,7 +81,7 @@ const L1 = ["aria-busy"], x1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "
81
81
  xe.install = (e) => {
82
82
  e.component("Image", xe);
83
83
  };
84
- const I1 = /* @__PURE__ */ T({
84
+ const H1 = /* @__PURE__ */ T({
85
85
  __name: "Button",
86
86
  setup(e, { expose: o }) {
87
87
  const t = h();
@@ -96,11 +96,11 @@ const I1 = /* @__PURE__ */ T({
96
96
  U(a.$slots, "default", {}, void 0, !0)
97
97
  ], 16));
98
98
  }
99
- }), he = /* @__PURE__ */ K(I1, [["__scopeId", "data-v-b46162b4"]]);
99
+ }), he = /* @__PURE__ */ K(H1, [["__scopeId", "data-v-b46162b4"]]);
100
100
  he.install = (e) => {
101
101
  e.component("Button", he);
102
102
  };
103
- const H1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], B1 = /* @__PURE__ */ T({
103
+ const I1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], B1 = /* @__PURE__ */ T({
104
104
  __name: "Toggle",
105
105
  props: /* @__PURE__ */ ee({
106
106
  id: {},
@@ -111,7 +111,7 @@ const H1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], B1
111
111
  }),
112
112
  emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
113
113
  setup(e, { emit: o }) {
114
- const t = fe(e, "modelValue"), a = o, n = e, i = H(() => t.value), s = () => {
114
+ const t = fe(e, "modelValue"), a = o, n = e, i = I(() => t.value), s = () => {
115
115
  if (n.disabled) return;
116
116
  const r = !t.value;
117
117
  t.value = r, a("change", r);
@@ -133,7 +133,7 @@ const H1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], B1
133
133
  M("span", { class: "ui-toggle__track" }, [
134
134
  M("span", { class: "ui-toggle__thumb" })
135
135
  ], -1)
136
- ])], 42, H1));
136
+ ])], 42, I1));
137
137
  }
138
138
  }), Ye = /* @__PURE__ */ K(B1, [["__scopeId", "data-v-d2681823"]]);
139
139
  Ye.install = (e) => {
@@ -175,10 +175,10 @@ const s1 = (e) => {
175
175
  d.selectNodeContents(n), d.setEnd(l.startContainer, l.startOffset);
176
176
  const u = d.cloneContents(), p = document.createRange();
177
177
  p.selectNodeContents(n), p.setStart(l.startContainer, l.startOffset);
178
- const k = p.cloneContents();
179
- n.innerHTML = "", n.appendChild(u), n.innerHTML === "" && (n.innerHTML = "<br>"), s.innerHTML = "", s.appendChild(k), s.innerHTML === "" && (s.innerHTML = "<br>"), n.after(s);
180
- const y = document.createRange();
181
- y.setStart(s, 0), y.collapse(!0), t.removeAllRanges(), t.addRange(y), o?.normalize();
178
+ const b = p.cloneContents();
179
+ n.innerHTML = "", n.appendChild(u), n.innerHTML === "" && (n.innerHTML = "<br>"), s.innerHTML = "", s.appendChild(b), s.innerHTML === "" && (s.innerHTML = "<br>"), n.after(s);
180
+ const g = document.createRange();
181
+ g.setStart(s, 0), g.collapse(!0), t.removeAllRanges(), t.addRange(g), o?.normalize();
182
182
  }, T1 = () => {
183
183
  const e = window.getSelection();
184
184
  if (!e || e.rangeCount === 0) return;
@@ -202,16 +202,16 @@ const s1 = (e) => {
202
202
  const t = h(null), a = o?.buttons ?? [];
203
203
  let n = h(null);
204
204
  const i = () => {
205
- const b = e;
206
- if (!b) return;
207
- const I = window.getSelection();
208
- if (!I || I.rangeCount === 0) return;
209
- const D = I.getRangeAt(0);
210
- b.contains(D.commonAncestorContainer) && (t.value = D.cloneRange());
211
- }, s = (b) => {
212
- const I = window.getSelection();
213
- if (!I || I.rangeCount === 0 || I.isCollapsed) return !1;
214
- const D = I.getRangeAt(0), V = e;
205
+ const k = e;
206
+ if (!k) return;
207
+ const H = window.getSelection();
208
+ if (!H || H.rangeCount === 0) return;
209
+ const D = H.getRangeAt(0);
210
+ k.contains(D.commonAncestorContainer) && (t.value = D.cloneRange());
211
+ }, s = (k) => {
212
+ const H = window.getSelection();
213
+ if (!H || H.rangeCount === 0 || H.isCollapsed) return !1;
214
+ const D = H.getRangeAt(0), V = e;
215
215
  if (!V) return !1;
216
216
  const _ = r(D, V), R = [];
217
217
  if (_.forEach((w) => {
@@ -219,152 +219,152 @@ const s1 = (e) => {
219
219
  if (x === E) return;
220
220
  let G;
221
221
  x === 0 && E === w.textContent.length ? G = w : (G = w.splitText(x), E - x < G.textContent.length && G.splitText(E - x));
222
- const Q = _1(G, b, V);
222
+ const Q = _1(G, k, V);
223
223
  if (Q)
224
224
  D1(Q), R.push(G);
225
225
  else {
226
- const oe = document.createElement(b);
226
+ const oe = document.createElement(k);
227
227
  G.replaceWith(oe), oe.appendChild(G), R.push(G);
228
228
  }
229
229
  }), R.length > 0) {
230
230
  const w = document.createRange();
231
231
  w.setStart(R[0], 0);
232
232
  const x = R[R.length - 1];
233
- w.setEnd(x, x.textContent.length), I.removeAllRanges(), I.addRange(w), i();
233
+ w.setEnd(x, x.textContent.length), H.removeAllRanges(), H.addRange(w), i();
234
234
  }
235
- return y(), c(b);
236
- }, r = (b, I) => {
237
- if (!b || !I || !(I instanceof HTMLElement)) return [];
238
- const D = b.commonAncestorContainer, V = I.contains(D) ? I : D.nodeType === 3 ? D.parentNode : D, _ = document.createTreeWalker(
235
+ return g(), c(k);
236
+ }, r = (k, H) => {
237
+ if (!k || !H || !(H instanceof HTMLElement)) return [];
238
+ const D = k.commonAncestorContainer, V = H.contains(D) ? H : D.nodeType === 3 ? D.parentNode : D, _ = document.createTreeWalker(
239
239
  V,
240
240
  NodeFilter.SHOW_TEXT,
241
241
  {
242
242
  acceptNode(x) {
243
- return I.contains(x) && b.intersectsNode(x) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
243
+ return H.contains(x) && k.intersectsNode(x) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
244
244
  }
245
245
  }
246
246
  ), R = [];
247
247
  let w;
248
248
  for (; w = _.nextNode(); ) R.push(w);
249
249
  return R;
250
- }, l = (b) => {
251
- const I = window.getSelection();
252
- if (!I || I.rangeCount === 0) return !1;
253
- const D = I.getRangeAt(0), V = d(D.startContainer);
250
+ }, l = (k) => {
251
+ const H = window.getSelection();
252
+ if (!H || H.rangeCount === 0) return !1;
253
+ const D = H.getRangeAt(0), V = d(D.startContainer);
254
254
  if (!V) return !1;
255
- const R = V.tagName.toLowerCase() === b.toLowerCase() ? "p" : b.toLowerCase(), w = document.createElement(R);
255
+ const R = V.tagName.toLowerCase() === k.toLowerCase() ? "p" : k.toLowerCase(), w = document.createElement(R);
256
256
  for (R === "blockquote" && w.setAttribute("class", "rs-blockquote"), w.dataset.block = "true"; V.firstChild; ) w.appendChild(V.firstChild);
257
257
  V.replaceWith(w);
258
258
  const x = document.createRange();
259
- return x.selectNodeContents(w), I.removeAllRanges(), I.addRange(x), i(), y(), m(b);
260
- }, d = (b) => {
261
- const I = e;
262
- if (!I) return null;
263
- for (; b && b !== I; ) {
264
- if (b instanceof HTMLElement && b.dataset.block !== void 0) return b;
265
- b = b.parentNode;
259
+ return x.selectNodeContents(w), H.removeAllRanges(), H.addRange(x), i(), g(), C(k);
260
+ }, d = (k) => {
261
+ const H = e;
262
+ if (!H) return null;
263
+ for (; k && k !== H; ) {
264
+ if (k instanceof HTMLElement && k.dataset.block !== void 0) return k;
265
+ k = k.parentNode;
266
266
  }
267
267
  return null;
268
- }, u = (b, I) => {
268
+ }, u = (k, H) => {
269
269
  const D = e;
270
270
  if (!D) return null;
271
- for (; b && b !== D; ) {
272
- if (b instanceof HTMLElement && b.tagName.toLowerCase() === I.toLowerCase()) return b;
273
- b = b.parentNode;
271
+ for (; k && k !== D; ) {
272
+ if (k instanceof HTMLElement && k.tagName.toLowerCase() === H.toLowerCase()) return k;
273
+ k = k.parentNode;
274
274
  }
275
275
  return null;
276
- }, p = (b) => {
277
- if (b.key !== "Enter" || b.shiftKey) return;
278
- const I = window.getSelection();
279
- if (!I || I.rangeCount === 0) return;
280
- const D = I.getRangeAt(0), V = u(D.startContainer, "li");
276
+ }, p = (k) => {
277
+ if (k.key !== "Enter" || k.shiftKey) return;
278
+ const H = window.getSelection();
279
+ if (!H || H.rangeCount === 0) return;
280
+ const D = H.getRangeAt(0), V = u(D.startContainer, "li");
281
281
  if (!V) return;
282
- b.preventDefault(), b.stopPropagation();
282
+ k.preventDefault(), k.stopPropagation();
283
283
  const _ = V.parentElement;
284
284
  if (!_) return;
285
285
  if (V.textContent?.trim() === "") {
286
286
  const x = document.createElement("p");
287
- x.dataset.block = "true", x.innerHTML = "<br>", _.after(x), V.remove(), _.children.length === 0 && _.remove(), k(x);
287
+ x.dataset.block = "true", x.innerHTML = "<br>", _.after(x), V.remove(), _.children.length === 0 && _.remove(), b(x);
288
288
  return;
289
289
  }
290
290
  const w = document.createElement("li");
291
- w.innerHTML = "<br>", V.after(w), k(w);
292
- }, k = (b) => {
293
- const I = document.createRange(), D = window.getSelection();
294
- I.selectNodeContents(b), I.collapse(!0), D?.removeAllRanges(), D?.addRange(I);
295
- }, y = () => {
291
+ w.innerHTML = "<br>", V.after(w), b(w);
292
+ }, b = (k) => {
293
+ const H = document.createRange(), D = window.getSelection();
294
+ H.selectNodeContents(k), H.collapse(!0), D?.removeAllRanges(), D?.addRange(H);
295
+ }, g = () => {
296
296
  e instanceof Node && e.normalize();
297
- }, c = (b) => {
298
- const I = t.value;
299
- if (!I) return !1;
300
- let D = I.startContainer;
297
+ }, c = (k) => {
298
+ const H = t.value;
299
+ if (!H) return !1;
300
+ let D = H.startContainer;
301
301
  D.nodeType === Node.TEXT_NODE && (D = D.parentNode);
302
302
  const V = e;
303
303
  if (!V) return !1;
304
304
  for (; D && D !== V; ) {
305
- if (D instanceof HTMLElement && D.tagName.toLowerCase() === b.toLowerCase()) return !0;
305
+ if (D instanceof HTMLElement && D.tagName.toLowerCase() === k.toLowerCase()) return !0;
306
306
  D = D.parentNode;
307
307
  }
308
308
  return !1;
309
- }, m = (b) => {
310
- const I = t.value;
311
- if (!I) return !1;
312
- let D = I.startContainer;
309
+ }, C = (k) => {
310
+ const H = t.value;
311
+ if (!H) return !1;
312
+ let D = H.startContainer;
313
313
  D.nodeType === Node.TEXT_NODE && (D = D.parentNode);
314
314
  const V = e;
315
315
  if (!V) return !1;
316
316
  for (; D && D !== V; ) {
317
- if (D instanceof HTMLElement && D.dataset.block !== void 0 && D.tagName.toLowerCase() === b.toLowerCase()) return !0;
317
+ if (D instanceof HTMLElement && D.dataset.block !== void 0 && D.tagName.toLowerCase() === k.toLowerCase()) return !0;
318
318
  D = D.parentNode;
319
319
  }
320
320
  return !1;
321
321
  }, $ = () => {
322
- const b = e;
323
- b && b.focus();
322
+ const k = e;
323
+ k && k.focus();
324
324
  }, L = () => {
325
- const b = e;
326
- if (!b || !t.value || !b || !b.contains(t.value.commonAncestorContainer)) return;
327
- const I = window.getSelection();
328
- I && (I.removeAllRanges(), I.addRange(t.value));
329
- }, C = () => n.value?.focusFirstButton?.(), B = (b) => {
330
- const I = window.getSelection();
331
- if (!I || I.rangeCount === 0) return;
332
- const D = I.getRangeAt(0), V = d(D.startContainer);
325
+ const k = e;
326
+ if (!k || !t.value || !k || !k.contains(t.value.commonAncestorContainer)) return;
327
+ const H = window.getSelection();
328
+ H && (H.removeAllRanges(), H.addRange(t.value));
329
+ }, m = () => n.value?.focusFirstButton?.(), B = (k) => {
330
+ const H = window.getSelection();
331
+ if (!H || H.rangeCount === 0) return;
332
+ const D = H.getRangeAt(0), V = d(D.startContainer);
333
333
  if (!V) return;
334
334
  const _ = D.cloneRange();
335
335
  _.selectNodeContents(V), _.setEnd(D.startContainer, D.startOffset);
336
336
  const R = _.toString().length, w = D.cloneRange();
337
337
  w.selectNodeContents(V), w.setEnd(D.endContainer, D.endOffset);
338
- const x = w.toString().length, E = D.collapsed, G = b(V);
338
+ const x = w.toString().length, E = D.collapsed, G = k(V);
339
339
  V.replaceWith(G);
340
340
  const Q = document.createTreeWalker(
341
341
  G,
342
342
  NodeFilter.SHOW_TEXT,
343
343
  null
344
344
  );
345
- let oe = 0, Z = null, g = 0, A = null, X = 0;
345
+ let oe = 0, Z = null, y = 0, A = null, X = 0;
346
346
  for (; Q.nextNode(); ) {
347
347
  const j = Q.currentNode, ie = j.textContent?.length ?? 0;
348
- !Z && oe + ie >= R && (Z = j, g = R - oe), !A && oe + ie >= x && (A = j, X = x - oe), oe += ie;
348
+ !Z && oe + ie >= R && (Z = j, y = R - oe), !A && oe + ie >= x && (A = j, X = x - oe), oe += ie;
349
349
  }
350
350
  const z = document.createRange();
351
- Z ? z.setStart(Z, g) : z.setStart(G, 0), !E && A ? z.setEnd(A, X) : z.collapse(!0), I.removeAllRanges(), I.addRange(z), i(), y();
352
- }, O = (b) => {
353
- const I = e.parentElement?.querySelector("#editor-status");
354
- I && (I.textContent = b, setTimeout(() => I.textContent = "", 2e3));
351
+ Z ? z.setStart(Z, y) : z.setStart(G, 0), !E && A ? z.setEnd(A, X) : z.collapse(!0), H.removeAllRanges(), H.addRange(z), i(), g();
352
+ }, O = (k) => {
353
+ const H = e.parentElement?.querySelector("#editor-status");
354
+ H && (H.textContent = k, setTimeout(() => H.textContent = "", 2e3));
355
355
  };
356
356
  return e.addEventListener("keydown", p, { capture: !0 }), {
357
357
  toggleInline: s,
358
358
  toggleBlock: l,
359
- normalize: y,
359
+ normalize: g,
360
360
  rootElement: e,
361
361
  saveSelection: i,
362
362
  restoreSelection: L,
363
363
  isInlineActive: c,
364
- isBlockActive: m,
364
+ isBlockActive: C,
365
365
  focus: $,
366
366
  toolbarRef: n,
367
- focusFirstToolbarButton: C,
367
+ focusFirstToolbarButton: m,
368
368
  replaceCurrentBlock: B,
369
369
  buttons: a,
370
370
  announce: O
@@ -911,7 +911,7 @@ const s1 = (e) => {
911
911
  "stroke-width": 2
912
912
  }
913
913
  ]
914
- }, yt = {
914
+ }, gt = {
915
915
  viewBox: "0 0 24 24",
916
916
  paths: [
917
917
  {
@@ -957,7 +957,7 @@ const s1 = (e) => {
957
957
  "stroke-width": 2
958
958
  }
959
959
  ]
960
- }, gt = {
960
+ }, yt = {
961
961
  viewBox: "0 0 24 24",
962
962
  paths: [
963
963
  {
@@ -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: [
@@ -1127,7 +1127,7 @@ const s1 = (e) => {
1127
1127
  "stroke-width": 2
1128
1128
  }
1129
1129
  ]
1130
- }, Ht = {
1130
+ }, It = {
1131
1131
  viewBox: "0 0 24 24",
1132
1132
  paths: [
1133
1133
  {
@@ -1843,7 +1843,7 @@ const s1 = (e) => {
1843
1843
  head: ot,
1844
1844
  bold: it,
1845
1845
  card: ut,
1846
- heart: gt,
1846
+ heart: yt,
1847
1847
  oList: dt,
1848
1848
  uList: ct,
1849
1849
  close: vt,
@@ -1852,7 +1852,7 @@ const s1 = (e) => {
1852
1852
  image: mt,
1853
1853
  phone: ht,
1854
1854
  trash: Ct,
1855
- share: yt,
1855
+ share: gt,
1856
1856
  spotfy: kt,
1857
1857
  church: wt,
1858
1858
  health: Dt,
@@ -1860,9 +1860,9 @@ const s1 = (e) => {
1860
1860
  shield: Lt,
1861
1861
  upload: xt,
1862
1862
  italic: Vt,
1863
- logout: It,
1863
+ logout: Ht,
1864
1864
  ticket: Bt,
1865
- search: Ht,
1865
+ search: It,
1866
1866
  eyeOff: Rt,
1867
1867
  cookie: _t,
1868
1868
  camera: $t,
@@ -1958,10 +1958,10 @@ const s1 = (e) => {
1958
1958
  i,
1959
1959
  (c) => !c && (s.value = [])
1960
1960
  );
1961
- const r = H(() => ({
1961
+ const r = I(() => ({
1962
1962
  top: `${n.value}px`,
1963
1963
  left: `${a.value}px`
1964
- })), l = (c, m) => c && (s.value[m] = c), d = H(() => [
1964
+ })), l = (c, C) => c && (s.value[C] = c), d = I(() => [
1965
1965
  {
1966
1966
  key: "strong",
1967
1967
  label: "bold",
@@ -2013,34 +2013,34 @@ const s1 = (e) => {
2013
2013
  },
2014
2014
  isActive: (c) => c.isBlockActive("blockquote")
2015
2015
  }
2016
- ]), u = H(() => [
2016
+ ]), u = I(() => [
2017
2017
  ...d.value,
2018
2018
  ...t.editor?.buttons ?? []
2019
2019
  ]), p = async () => {
2020
2020
  await we(), s.value[0]?.focus();
2021
- }, k = (c) => {
2022
- const m = s.value, $ = m.indexOf(document.activeElement);
2021
+ }, b = (c) => {
2022
+ const C = s.value, $ = C.indexOf(document.activeElement);
2023
2023
  if (c.key === "ArrowRight") {
2024
2024
  c.preventDefault();
2025
- const L = $ < m.length - 1 ? $ + 1 : 0;
2026
- m[L]?.focus();
2025
+ const L = $ < C.length - 1 ? $ + 1 : 0;
2026
+ C[L]?.focus();
2027
2027
  }
2028
2028
  if (c.key === "ArrowLeft") {
2029
2029
  c.preventDefault();
2030
- const L = $ > 0 ? $ - 1 : m.length - 1;
2031
- m[L]?.focus();
2030
+ const L = $ > 0 ? $ - 1 : C.length - 1;
2031
+ C[L]?.focus();
2032
2032
  }
2033
- c.key === "Home" && (c.preventDefault(), m[0]?.focus()), c.key === "End" && (c.preventDefault(), m[m.length - 1]?.focus()), c.key === "Escape" && (c.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
2034
- }, y = () => {
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());
2034
+ }, g = () => {
2035
2035
  const c = window.getSelection();
2036
2036
  if (!c || c.rangeCount === 0) {
2037
2037
  i.value = !1;
2038
2038
  return;
2039
2039
  }
2040
- const m = t.editor?.rootElement;
2041
- if (!m) return;
2040
+ const C = t.editor?.rootElement;
2041
+ if (!C) return;
2042
2042
  const $ = c.getRangeAt(0);
2043
- if (!m.contains($.commonAncestorContainer) || c.isCollapsed) {
2043
+ if (!C.contains($.commonAncestorContainer) || c.isCollapsed) {
2044
2044
  i.value = !1;
2045
2045
  return;
2046
2046
  }
@@ -2048,12 +2048,12 @@ const s1 = (e) => {
2048
2048
  a.value = L.left + L.width / 2, n.value = L.top - 45, i.value = !0;
2049
2049
  };
2050
2050
  return ae(() => {
2051
- document.addEventListener("selectionchange", y), window.addEventListener("scroll", y, !0), window.addEventListener("resize", y);
2051
+ document.addEventListener("selectionchange", g), window.addEventListener("scroll", g, !0), window.addEventListener("resize", g);
2052
2052
  }), be(() => {
2053
- document.removeEventListener("selectionchange", y), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y);
2053
+ document.removeEventListener("selectionchange", g), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
2054
2054
  }), o({
2055
2055
  focusFirstButton: p
2056
- }), (c, m) => (v(), J($e, { name: "tooltip-fade" }, {
2056
+ }), (c, C) => (v(), J($e, { name: "tooltip-fade" }, {
2057
2057
  default: W(() => [
2058
2058
  i.value ? (v(), f("div", {
2059
2059
  key: 0,
@@ -2061,19 +2061,19 @@ const s1 = (e) => {
2061
2061
  role: "toolbar",
2062
2062
  "aria-label": "Formatting options",
2063
2063
  "aria-controls": e.editorId,
2064
- style: ye(r.value),
2064
+ style: ge(r.value),
2065
2065
  tabindex: "-1",
2066
- onKeydown: k
2066
+ onKeydown: b
2067
2067
  }, [
2068
- m[0] || (m[0] = M("div", { class: "arrow" }, null, -1)),
2068
+ C[0] || (C[0] = M("div", { class: "arrow" }, null, -1)),
2069
2069
  (v(!0), f(te, null, ue(u.value, ($, L) => (v(), f("button", {
2070
2070
  key: $.key ?? L,
2071
2071
  type: "button",
2072
2072
  ref_for: !0,
2073
- ref: (C) => l(C, L),
2073
+ ref: (m) => l(m, L),
2074
2074
  class: re({ "is-active": $.isActive?.(t.editor) }),
2075
2075
  "aria-pressed": $.isActive?.(t.editor),
2076
- onMousedown: le((C) => $.action(t.editor), ["prevent"]),
2076
+ onMousedown: le((m) => $.action(t.editor), ["prevent"]),
2077
2077
  "aria-label": $.ariaLabel
2078
2078
  }, [
2079
2079
  $.type === "icon" ? (v(), J(ce, {
@@ -2087,7 +2087,7 @@ const s1 = (e) => {
2087
2087
  _: 1
2088
2088
  }));
2089
2089
  }
2090
- }), y2 = /* @__PURE__ */ K(h2, [["__scopeId", "data-v-3f279ebe"]]), g2 = { class: "editor" }, Xe = /* @__PURE__ */ T({
2090
+ }), g2 = /* @__PURE__ */ K(h2, [["__scopeId", "data-v-3f279ebe"]]), y2 = { class: "editor" }, Xe = /* @__PURE__ */ T({
2091
2091
  __name: "Editor",
2092
2092
  props: /* @__PURE__ */ ee({
2093
2093
  ariaLabel: {},
@@ -2113,7 +2113,7 @@ const s1 = (e) => {
2113
2113
  i.value = E1(l, { buttons: t.buttons ?? [] }), i.value && (i.value.toolbarRef = n);
2114
2114
  const d = () => o.value = l.innerHTML;
2115
2115
  l.addEventListener("input", d), be(() => l.removeEventListener("input", d));
2116
- }), ge("announce", (r) => i.value?.announce(r)), (r, l) => (v(), f("section", g2, [
2116
+ }), ye("announce", (r) => i.value?.announce(r)), (r, l) => (v(), f("section", y2, [
2117
2117
  P(N1, {
2118
2118
  ref_key: "contentRef",
2119
2119
  ref: s,
@@ -2121,7 +2121,7 @@ const s1 = (e) => {
2121
2121
  "editor-id": S(a),
2122
2122
  "aria-label": e.ariaLabel
2123
2123
  }, null, 8, ["editor", "editor-id", "aria-label"]),
2124
- P(y2, {
2124
+ P(g2, {
2125
2125
  ref_key: "toolbarRef",
2126
2126
  ref: n,
2127
2127
  editor: i.value,
@@ -2139,7 +2139,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2139
2139
  }, M2 = { class: "ui-upload__item--default" }, L2 = { class: "ui-upload__file-name" }, x2 = { class: "ui-upload__file-size" }, $2 = {
2140
2140
  key: 0,
2141
2141
  class: "ui-upload__progress-wrapper"
2142
- }, V2 = { class: "ui-upload__progress-text" }, I2 = ["value", "aria-label"], H2 = {
2142
+ }, V2 = { class: "ui-upload__progress-text" }, H2 = ["value", "aria-label"], I2 = {
2143
2143
  key: 1,
2144
2144
  class: "ui-upload__status success",
2145
2145
  style: { color: "var(--green-color)" },
@@ -2174,7 +2174,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2174
2174
  }),
2175
2175
  emits: /* @__PURE__ */ ee(["select", "upload", "remove"], ["update:modelValue"]),
2176
2176
  setup(e, { emit: o }) {
2177
- const t = fe(e, "modelValue"), a = e, n = o, i = h(0), s = h(""), r = h(!1), l = de(), d = h(), u = H(() => t.value), p = H(() => a.maxSize === 1 / 0 ? "Unlimited" : V(a.maxSize)), k = H(() => !a.disabled && (a.multiple || t.value.length === 0)), y = H(() => u.value.some((w) => w.status === "uploading")), c = () => k.value && d.value?.click(), m = () => {
2177
+ const t = fe(e, "modelValue"), a = e, n = o, i = h(0), s = h(""), r = h(!1), l = de(), d = h(), u = I(() => t.value), p = I(() => a.maxSize === 1 / 0 ? "Unlimited" : V(a.maxSize)), b = I(() => !a.disabled && (a.multiple || t.value.length === 0)), g = I(() => u.value.some((w) => w.status === "uploading")), c = () => b.value && d.value?.click(), C = () => {
2178
2178
  a.disabled || (i.value++, r.value = !0);
2179
2179
  }, $ = () => {
2180
2180
  i.value = Math.max(0, i.value - 1), i.value === 0 && (r.value = !1);
@@ -2187,7 +2187,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2187
2187
  }
2188
2188
  B(Array.from(w.dataTransfer.files));
2189
2189
  }
2190
- }, C = (w) => {
2190
+ }, m = (w) => {
2191
2191
  const x = w.target;
2192
2192
  x.files && (B(Array.from(x.files)), x.value = "");
2193
2193
  }, B = (w) => {
@@ -2225,9 +2225,9 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2225
2225
  }
2226
2226
  };
2227
2227
  n("upload", w, G);
2228
- }, b = (w) => {
2228
+ }, k = (w) => {
2229
2229
  w.controller && (w.controller.abort(), w.status = "canceled", w.controller = void 0, _(`Canceled uploading ${w.file.name}`), D());
2230
- }, I = (w) => {
2230
+ }, H = (w) => {
2231
2231
  w.status !== "error" && w.status !== "canceled" || O(w);
2232
2232
  }, D = () => t.value = [...u.value], V = (w) => {
2233
2233
  const x = ["B", "KB", "MB", "GB", "TB"];
@@ -2248,7 +2248,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2248
2248
  tabindex: e.disabled ? -1 : 0,
2249
2249
  "aria-label": e.ariaLabel || "File upload area",
2250
2250
  "aria-describedby": r.value ? S(l) : void 0,
2251
- "aria-busy": y.value ? "true" : void 0,
2251
+ "aria-busy": g.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": r.value || void 0,
@@ -2257,7 +2257,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2257
2257
  x[1] || (x[1] = ve(le((E) => !e.disabled && c(), ["stop", "prevent"]), ["enter"])),
2258
2258
  x[2] || (x[2] = ve(le((E) => !e.disabled && c(), ["prevent"]), ["space"]))
2259
2259
  ],
2260
- onDragover: x[3] || (x[3] = le((E) => !e.disabled && m(), ["prevent"])),
2260
+ onDragover: x[3] || (x[3] = le((E) => !e.disabled && C(), ["prevent"])),
2261
2261
  onDragleave: $,
2262
2262
  onDrop: x[4] || (x[4] = le((E) => !e.disabled && L(E), ["prevent"]))
2263
2263
  }, [
@@ -2269,7 +2269,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2269
2269
  multiple: e.multiple,
2270
2270
  accept: e.accept,
2271
2271
  disabled: e.disabled,
2272
- onChange: C
2272
+ onChange: m
2273
2273
  }, null, 40, k2),
2274
2274
  e.multiple || !e.multiple && t.value.length === 0 ? U(w.$slots, "default", {
2275
2275
  key: 0,
@@ -2300,8 +2300,8 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2300
2300
  U(w.$slots, "file", {
2301
2301
  file: E,
2302
2302
  remove: () => R(E),
2303
- cancel: () => b(E),
2304
- retry: () => I(E)
2303
+ cancel: () => k(E),
2304
+ retry: () => H(E)
2305
2305
  }, () => [
2306
2306
  M("div", M2, [
2307
2307
  M("span", L2, N(E.file.name), 1),
@@ -2314,9 +2314,9 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
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
  ])) : q("", !0),
2319
- E.status === "success" ? (v(), f("span", H2, " Uploaded successful ")) : q("", !0),
2319
+ E.status === "success" ? (v(), f("span", I2, " Uploaded successful ")) : q("", !0),
2320
2320
  E.status === "error" ? (v(), f("span", B2, N(E.error || "Upload failed"), 1)) : q("", !0),
2321
2321
  E.status === "canceled" ? (v(), f("span", _2, " Upload canceled ")) : q("", !0),
2322
2322
  M("div", D2, [
@@ -2324,7 +2324,7 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2324
2324
  key: 0,
2325
2325
  type: "button",
2326
2326
  class: "btn-danger btn-xs",
2327
- onClick: le((G) => b(E), ["stop"])
2327
+ onClick: le((G) => k(E), ["stop"])
2328
2328
  }, {
2329
2329
  default: W(() => [...x[8] || (x[8] = [
2330
2330
  me(" Cancel ", -1)
@@ -2335,7 +2335,7 @@ const b2 = ["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((G) => I(E), ["stop"])
2338
+ onClick: le((G) => H(E), ["stop"])
2339
2339
  }, {
2340
2340
  default: W(() => [...x[9] || (x[9] = [
2341
2341
  me(" Retry ", -1)
@@ -2389,40 +2389,40 @@ const T2 = (e) => {
2389
2389
  o.disabled || (l && (clearTimeout(l), l = null), o.delay ? l = window.setTimeout(() => {
2390
2390
  a.value = !0, l = null;
2391
2391
  }, o.delay) : a.value = !0);
2392
- }, k = () => {
2392
+ }, b = () => {
2393
2393
  l && (clearTimeout(l), l = null), a.value = !1;
2394
- }, y = () => {
2394
+ }, g = () => {
2395
2395
  if (!i.value || !s.value) return {};
2396
- const m = i.value.getBoundingClientRect(), $ = s.value.getBoundingClientRect(), L = {
2396
+ const C = i.value.getBoundingClientRect(), $ = s.value.getBoundingClientRect(), L = {
2397
2397
  position: "fixed"
2398
2398
  };
2399
2399
  switch (o.placement) {
2400
2400
  case "top":
2401
- L.left = `${m.left + m.width / 2 - $.width / 2}px`, L.top = `${m.top - $.height - t}px`;
2401
+ L.left = `${C.left + C.width / 2 - $.width / 2}px`, L.top = `${C.top - $.height - t}px`;
2402
2402
  break;
2403
2403
  case "bottom":
2404
- L.left = `${m.left + m.width / 2 - $.width / 2}px`, L.top = `${m.bottom + t}px`;
2404
+ L.left = `${C.left + C.width / 2 - $.width / 2}px`, L.top = `${C.bottom + t}px`;
2405
2405
  break;
2406
2406
  case "left":
2407
- L.left = `${m.left - $.width - t}px`, L.top = `${m.top + m.height / 2 - $.height / 2}px`;
2407
+ L.left = `${C.left - $.width - t}px`, L.top = `${C.top + C.height / 2 - $.height / 2}px`;
2408
2408
  break;
2409
2409
  case "right":
2410
- L.left = `${m.right + t}px`, L.top = `${m.top + m.height / 2 - $.height / 2}px`;
2410
+ L.left = `${C.right + t}px`, L.top = `${C.top + C.height / 2 - $.height / 2}px`;
2411
2411
  break;
2412
2412
  }
2413
2413
  return L;
2414
2414
  }, c = () => {
2415
- r.value = y();
2415
+ r.value = g();
2416
2416
  };
2417
- return Y(a, async (m) => {
2418
- if (!m) {
2417
+ return Y(a, async (C) => {
2418
+ if (!C) {
2419
2419
  d?.(), d = null, u?.disconnect(), u = null;
2420
2420
  return;
2421
2421
  }
2422
2422
  await we(), c(), d = T2(c), u = new ResizeObserver(c), s.value && u.observe(s.value), i.value && u.observe(i.value);
2423
- }), Ie(() => {
2423
+ }), He(() => {
2424
2424
  d?.(), u?.disconnect();
2425
- }), (m, $) => (v(), f(te, null, [
2425
+ }), (C, $) => (v(), f(te, null, [
2426
2426
  M("span", {
2427
2427
  ref_key: "triggerRef",
2428
2428
  ref: i,
@@ -2431,14 +2431,14 @@ const T2 = (e) => {
2431
2431
  "aria-disabled": e.disabled || void 0,
2432
2432
  "aria-expanded": a.value || void 0,
2433
2433
  onMouseenter: p,
2434
- onMouseleave: k,
2434
+ onMouseleave: b,
2435
2435
  onFocus: p,
2436
- onBlur: k,
2437
- onKeydown: ve(k, ["esc"])
2436
+ onBlur: b,
2437
+ onKeydown: ve(b, ["esc"])
2438
2438
  }, [
2439
- U(m.$slots, "default", {}, void 0, !0)
2439
+ U(C.$slots, "default", {}, void 0, !0)
2440
2440
  ], 40, Z2),
2441
- (v(), J(He, { to: "body" }, [
2441
+ (v(), J(Ie, { to: "body" }, [
2442
2442
  P($e, { name: "tooltip-fade" }, {
2443
2443
  default: W(() => [
2444
2444
  a.value ? (v(), f("div", {
@@ -2451,10 +2451,10 @@ const T2 = (e) => {
2451
2451
  "aria-live": "polite",
2452
2452
  "aria-hidden": !a.value,
2453
2453
  "data-placement": o.placement,
2454
- style: ye(r.value)
2454
+ style: ge(r.value)
2455
2455
  }, [
2456
2456
  $[0] || ($[0] = M("div", { class: "tooltip-arrow" }, null, -1)),
2457
- U(m.$slots, "content", {}, () => [
2457
+ U(C.$slots, "content", {}, () => [
2458
2458
  me(N(e.content), 1)
2459
2459
  ], !0)
2460
2460
  ], 12, E2)) : q("", !0)
@@ -2484,14 +2484,14 @@ const N2 = {
2484
2484
  },
2485
2485
  emits: ["click", "remove"],
2486
2486
  setup(e, { emit: o }) {
2487
- const t = e, a = o, n = h(), i = H(() => t.clickable || t.as === "button" || t.as === "a"), s = H(() => [
2487
+ const t = e, a = o, n = h(), i = I(() => t.clickable || t.as === "button" || t.as === "a"), s = I(() => [
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
- ]), r = H(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (u) => {
2494
+ ]), r = I(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (u) => {
2495
2495
  t.disabled || !i.value || a("click", u);
2496
2496
  }, d = () => a("remove");
2497
2497
  return (u, p) => (v(), J(Ve(e.as), {
@@ -2503,8 +2503,8 @@ const N2 = {
2503
2503
  role: r.value ? "button" : void 0,
2504
2504
  onClick: l,
2505
2505
  onKeydown: [
2506
- p[0] || (p[0] = ve(le((k) => !e.disabled && i.value && l(k), ["prevent"]), ["enter"])),
2507
- p[1] || (p[1] = ve(le((k) => !e.disabled && i.value && l(k), ["prevent"]), ["space"]))
2506
+ p[0] || (p[0] = ve(le((b) => !e.disabled && i.value && l(b), ["prevent"]), ["enter"])),
2507
+ p[1] || (p[1] = ve(le((b) => !e.disabled && i.value && l(b), ["prevent"]), ["space"]))
2508
2508
  ]
2509
2509
  }, {
2510
2510
  default: W(() => [
@@ -2560,10 +2560,10 @@ const N2 = {
2560
2560
  U(i.$slots, "default", {}, void 0, !0)
2561
2561
  ], 8, j2));
2562
2562
  }
2563
- }), Gn = /* @__PURE__ */ K(Y2, [["__scopeId", "data-v-0f5d7308"]]), Pe = (e, o, t, a) => H(() => {
2563
+ }), Gn = /* @__PURE__ */ K(Y2, [["__scopeId", "data-v-0f5d7308"]]), Pe = (e, o, t, a) => I(() => {
2564
2564
  const n = [];
2565
2565
  return e.invalid && e.errorMessage && n.push(t), o.hint && n.push(a), n.length > 0 ? n.join(" ") : void 0;
2566
- }), Be = (e) => H(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), W2 = (e) => H(() => e.disabled === !0 ? "true" : void 0), G2 = (e, o, t) => {
2566
+ }), Be = (e) => I(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), W2 = (e) => I(() => e.disabled === !0 ? "true" : void 0), G2 = (e, o, t) => {
2567
2567
  o && (o.classList.add("focused"), t("focus", e));
2568
2568
  }, X2 = (e, o, t, a) => {
2569
2569
  ze(o, t), t && (t?.classList.remove("focused"), a("blur", e));
@@ -2627,18 +2627,18 @@ const N2 = {
2627
2627
  }),
2628
2628
  emits: /* @__PURE__ */ ee(["focus", "blur"], ["update:modelValue"]),
2629
2629
  setup(e, { emit: o }) {
2630
- const t = fe(e, "modelValue"), a = e, n = o, i = Ne(), s = de(), r = `${s}-error`, l = `${s}-hint`, d = Be(i).value, u = h(!1), p = H(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = H(() => d ? `${l} ${s}-required-hint` : l), y = H(() => a.invalid === !0 && a.errorMessage ? r : void 0), c = H(() => a.type === "password" ? $.value ? "text" : "password" : a.type), m = H(() => {
2631
- const { type: b, ...I } = i;
2632
- return I;
2633
- }), $ = h(!1), L = () => $.value = !$.value, C = (b) => {
2634
- const I = b.target;
2635
- t.value = a.type === "number" ? Number(I.value) : I.value;
2636
- }, B = (b) => {
2637
- u.value = !0, n("focus", b);
2638
- }, O = (b) => {
2639
- u.value = !1, n("blur", b);
2630
+ const t = fe(e, "modelValue"), a = e, n = o, i = Ne(), s = de(), r = `${s}-error`, l = `${s}-hint`, d = Be(i).value, u = h(!1), p = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), b = I(() => d ? `${l} ${s}-required-hint` : l), g = I(() => a.invalid === !0 && a.errorMessage ? r : void 0), c = I(() => a.type === "password" ? $.value ? "text" : "password" : a.type), C = I(() => {
2631
+ const { type: k, ...H } = i;
2632
+ return H;
2633
+ }), $ = h(!1), L = () => $.value = !$.value, m = (k) => {
2634
+ const H = k.target;
2635
+ t.value = a.type === "number" ? Number(H.value) : H.value;
2636
+ }, B = (k) => {
2637
+ u.value = !0, n("focus", k);
2638
+ }, O = (k) => {
2639
+ u.value = !1, n("blur", k);
2640
2640
  };
2641
- return (b, I) => (v(), f("div", {
2641
+ return (k, H) => (v(), f("div", {
2642
2642
  class: re(["input-box", { required: S(d), error: e.invalid, filled: p.value, focused: u.value }])
2643
2643
  }, [
2644
2644
  M("label", {
@@ -2648,20 +2648,20 @@ const N2 = {
2648
2648
  M("input", Ce({
2649
2649
  id: e.id,
2650
2650
  type: c.value
2651
- }, m.value, {
2651
+ }, C.value, {
2652
2652
  class: "input",
2653
- onInput: C,
2653
+ onInput: m,
2654
2654
  onFocus: B,
2655
2655
  onBlur: O,
2656
2656
  value: t.value,
2657
2657
  required: S(d),
2658
2658
  "aria-invalid": e.invalid ? "true" : void 0,
2659
- "aria-errormessage": y.value,
2660
- "aria-describedby": S(Pe)(b.$props, b.$slots, r, k.value).value
2659
+ "aria-errormessage": g.value,
2660
+ "aria-describedby": S(Pe)(k.$props, k.$slots, r, b.value).value
2661
2661
  }), null, 16, aa),
2662
2662
  P(Ke, { hintId: l }, {
2663
2663
  default: W(() => [
2664
- U(b.$slots, "hint", {}, void 0, !0)
2664
+ U(k.$slots, "hint", {}, void 0, !0)
2665
2665
  ]),
2666
2666
  _: 3
2667
2667
  }),
@@ -2674,7 +2674,7 @@ const N2 = {
2674
2674
  invalid: e.invalid,
2675
2675
  errorMessage: e.errorMessage
2676
2676
  }, null, 8, ["invalid", "errorMessage"]),
2677
- e.type === "password" ? (v(), J(he, Ce({ key: 0 }, Object.keys(b.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
2677
+ e.type === "password" ? (v(), J(he, Ce({ key: 0 }, Object.keys(k.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
2678
2678
  type: "button",
2679
2679
  class: "btn-icon",
2680
2680
  onClick: L,
@@ -2706,7 +2706,7 @@ const N2 = {
2706
2706
  shape: { default: "circle" }
2707
2707
  },
2708
2708
  setup(e) {
2709
- const o = e, t = h("loading"), a = H(() => o.src && t.value !== "error"), n = H(() => o.name ? o.name.split(" ").map((l) => l[0]).slice(0, 2).join("").toUpperCase() : ""), i = H(() => o.alt ? o.alt : o.name ? o.name : "Avatar"), s = () => t.value = "loaded", r = () => t.value = "error";
2709
+ const o = e, t = h("loading"), a = I(() => o.src && t.value !== "error"), n = I(() => o.name ? o.name.split(" ").map((l) => l[0]).slice(0, 2).join("").toUpperCase() : ""), i = I(() => o.alt ? o.alt : o.name ? o.name : "Avatar"), s = () => t.value = "loaded", r = () => t.value = "error";
2710
2710
  return Y(
2711
2711
  () => o.src,
2712
2712
  () => o.src && (t.value = "loading")
@@ -2749,7 +2749,7 @@ const N2 = {
2749
2749
  Y(i, (Z) => {
2750
2750
  Z ? document.addEventListener("mousedown", Q) : document.removeEventListener("mousedown", Q);
2751
2751
  });
2752
- const s = Ne(), r = h(!1), l = h(null), d = H(() => a.id ?? de()), u = `${d.value}-label`, p = `${d.value}-listbox`, k = `${d.value}-error`, y = `${d.value}-hint`, c = `${d.value}-value`, m = h(null), $ = h(null), L = H(() => t.value !== null && t.value !== void 0 && t.value !== ""), C = H(() => m.value !== null ? `${p}-option-${m.value}` : void 0), B = Be(s).value, O = H(() => B ? `${y} ${d.value}-required-hint` : y), b = H(() => i.value && C.value ? C.value : void 0), I = H(() => $.value !== null ? a.options[$.value]?.value : "");
2752
+ const s = Ne(), r = h(!1), l = h(null), d = I(() => a.id ?? de()), u = `${d.value}-label`, p = `${d.value}-listbox`, b = `${d.value}-error`, g = `${d.value}-hint`, c = `${d.value}-value`, C = h(null), $ = h(null), L = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), m = I(() => C.value !== null ? `${p}-option-${C.value}` : void 0), B = Be(s).value, O = I(() => B ? `${g} ${d.value}-required-hint` : g), k = I(() => i.value && m.value ? m.value : void 0), H = I(() => $.value !== null ? a.options[$.value]?.value : "");
2753
2753
  Y(
2754
2754
  () => t.value,
2755
2755
  () => oe()
@@ -2757,55 +2757,55 @@ const N2 = {
2757
2757
  const D = (Z) => {
2758
2758
  r.value = !0, n("focus", Z);
2759
2759
  }, V = (Z) => {
2760
- const g = Z.relatedTarget, A = l.value;
2761
- !A || A?.contains(g) || (r.value = !1, i.value = !1, n("blur", Z));
2760
+ const y = Z.relatedTarget, A = l.value;
2761
+ !A || A?.contains(y) || (r.value = !1, i.value = !1, n("blur", Z));
2762
2762
  }, _ = (Z) => {
2763
- i.value = !i.value, i.value && t.value.toString().length > 0 && (m.value = m.value ?? a.options.findIndex((g) => !g.disabled)), !(!a.options || a.options.length === 0) && n("click", Z);
2764
- }, R = (Z, g) => {
2763
+ i.value = !i.value, i.value && t.value.toString().length > 0 && (C.value = C.value ?? a.options.findIndex((y) => !y.disabled)), !(!a.options || a.options.length === 0) && n("click", Z);
2764
+ }, R = (Z, y) => {
2765
2765
  const A = l.value;
2766
- !A || Z.disabled || ($.value = g, m.value = g, Z && Z.key && Z.key.toString().length > 0 ? A.classList.add("filled") : A.classList.remove("filled"), t.value = Z.key, n("change", Z.key));
2766
+ !A || Z.disabled || ($.value = y, C.value = y, Z && Z.key && Z.key.toString().length > 0 ? A.classList.add("filled") : A.classList.remove("filled"), t.value = Z.key, n("change", Z.key));
2767
2767
  }, w = (Z) => {
2768
2768
  if (!i.value && ["ArrowDown", "ArrowUp"].includes(Z.key)) {
2769
- i.value = !0, m.value = m.value ?? a.options.findIndex((g) => !g.disabled), Z.preventDefault();
2769
+ i.value = !0, C.value = C.value ?? a.options.findIndex((y) => !y.disabled), Z.preventDefault();
2770
2770
  return;
2771
2771
  }
2772
2772
  if (i.value) {
2773
2773
  if (Z.key === "ArrowDown" && (x(1), Z.preventDefault()), Z.key === "ArrowUp" && (x(-1), Z.preventDefault()), Z.key === "Home") {
2774
- const g = E();
2775
- g >= 0 && (m.value = g), Z.preventDefault();
2774
+ const y = E();
2775
+ y >= 0 && (C.value = y), Z.preventDefault();
2776
2776
  }
2777
2777
  if (Z.key === "End") {
2778
- const g = G();
2779
- g >= 0 && (m.value = g), Z.preventDefault();
2778
+ const y = G();
2779
+ y >= 0 && (C.value = y), Z.preventDefault();
2780
2780
  }
2781
2781
  if (Z.key === "Enter" || Z.key === " ") {
2782
- if (m.value === null) return;
2783
- const g = a.options[m.value];
2784
- if (!g || g.disabled) return;
2785
- R(g, m.value), i.value = !1, Z.preventDefault();
2782
+ if (C.value === null) return;
2783
+ const y = a.options[C.value];
2784
+ if (!y || y.disabled) return;
2785
+ R(y, C.value), i.value = !1, Z.preventDefault();
2786
2786
  }
2787
2787
  Z.key === "Escape" && (i.value = !1);
2788
2788
  }
2789
2789
  }, x = (Z) => {
2790
- if (m.value === null) return;
2791
- let g = m.value;
2790
+ if (C.value === null) return;
2791
+ let y = C.value;
2792
2792
  do
2793
- g += Z;
2794
- while (g >= 0 && g < a.options.length && a.options[g]?.disabled);
2795
- g >= 0 && g < a.options.length && (m.value = g);
2793
+ y += Z;
2794
+ while (y >= 0 && y < a.options.length && a.options[y]?.disabled);
2795
+ y >= 0 && y < a.options.length && (C.value = y);
2796
2796
  }, E = () => a.options.findIndex((Z) => !Z.disabled), G = () => [...a.options].reverse().findIndex((Z) => !Z.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((Z) => !Z.disabled) : -1, Q = (Z) => {
2797
- const g = l.value;
2798
- !g || g.contains(Z.target) || (i.value = !1);
2797
+ const y = l.value;
2798
+ !y || y.contains(Z.target) || (i.value = !1);
2799
2799
  };
2800
- Ie(() => {
2800
+ He(() => {
2801
2801
  document.removeEventListener("mousedown", Q);
2802
2802
  });
2803
2803
  const oe = () => {
2804
- const Z = a.options.findIndex((g) => g.key === t.value);
2804
+ const Z = a.options.findIndex((y) => y.key === t.value);
2805
2805
  if (Z > -1) {
2806
- $.value = Z, m.value = Z;
2807
- const g = l.value;
2808
- g && g.classList.add("filled");
2806
+ $.value = Z, C.value = Z;
2807
+ const y = l.value;
2808
+ y && y.classList.add("filled");
2809
2809
  }
2810
2810
  };
2811
2811
  return ae(() => {
@@ -2813,7 +2813,7 @@ const N2 = {
2813
2813
  if (!a.options || a.options.length === 0) return;
2814
2814
  oe();
2815
2815
  }
2816
- }), (Z, g) => (v(), f("div", {
2816
+ }), (Z, y) => (v(), f("div", {
2817
2817
  ref_key: "selectRef",
2818
2818
  ref: l,
2819
2819
  class: re(["select-box", { required: Object.keys(Z.$attrs).includes("required"), error: e.invalid, filled: L.value, focused: r.value }])
@@ -2830,8 +2830,8 @@ const N2 = {
2830
2830
  "aria-invalid": e.invalid ? "true" : void 0,
2831
2831
  "aria-labelledby": `${u} ${c}`,
2832
2832
  "aria-required": S(B),
2833
- "aria-describedby": S(Pe)(Z.$props, Z.$slots, k, O.value).value,
2834
- "aria-activedescendant": b.value,
2833
+ "aria-describedby": S(Pe)(Z.$props, Z.$slots, b, O.value).value,
2834
+ "aria-activedescendant": k.value,
2835
2835
  "aria-disabled": S(s).disabled ? "true" : void 0,
2836
2836
  onBlur: V,
2837
2837
  onFocus: D,
@@ -2848,7 +2848,7 @@ const N2 = {
2848
2848
  class: "selected-object",
2849
2849
  "aria-live": "polite",
2850
2850
  "aria-atomic": "true",
2851
- innerHTML: I.value
2851
+ innerHTML: H.value
2852
2852
  }, null, 8, ua),
2853
2853
  P(ce, {
2854
2854
  name: "directionDown",
@@ -2866,7 +2866,7 @@ const N2 = {
2866
2866
  id: `${p}-option-${X}`,
2867
2867
  key: X,
2868
2868
  role: "option",
2869
- class: re(["option", { "focus-visible": m.value === X }]),
2869
+ class: re(["option", { "focus-visible": C.value === X }]),
2870
2870
  "aria-disabled": A.disabled,
2871
2871
  "aria-selected": $.value === X,
2872
2872
  onClick: (z) => !A.disabled && R(A, X)
@@ -2882,7 +2882,7 @@ const N2 = {
2882
2882
  ]),
2883
2883
  _: 1
2884
2884
  }),
2885
- P(Ke, { hintId: y }, {
2885
+ P(Ke, { hintId: g }, {
2886
2886
  default: W(() => [
2887
2887
  U(Z.$slots, "hint", {}, void 0, !0)
2888
2888
  ]),
@@ -2893,7 +2893,7 @@ const N2 = {
2893
2893
  isRequired: S(B)
2894
2894
  }, null, 8, ["baseId", "isRequired"]),
2895
2895
  P(je, {
2896
- errorId: k,
2896
+ errorId: b,
2897
2897
  invalid: e.invalid,
2898
2898
  errorMessage: e.errorMessage
2899
2899
  }, null, 8, ["invalid", "errorMessage"])
@@ -2902,7 +2902,7 @@ const N2 = {
2902
2902
  }), Qn = /* @__PURE__ */ K(va, [["__scopeId", "data-v-31f7b19f"]]), fa = ["aria-label"], pa = ["onKeydown"], Ca = {
2903
2903
  key: 1,
2904
2904
  class: "rs-gallery-thumbs"
2905
- }, ma = ["aria-selected"], ha = ["onClick"], ya = /* @__PURE__ */ T({
2905
+ }, ma = ["aria-selected"], ha = ["onClick"], ga = /* @__PURE__ */ T({
2906
2906
  __name: "GalleryCarousel",
2907
2907
  props: /* @__PURE__ */ ee({
2908
2908
  images: {},
@@ -2923,30 +2923,30 @@ const N2 = {
2923
2923
  }),
2924
2924
  emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
2925
2925
  setup(e, { emit: o }) {
2926
- const t = fe(e, "modelValue"), a = e, n = o, i = h([]), s = h("next"), r = h(null), l = `gallery-caption-${de()}`, d = h(null), u = H(() => t.value), p = H(() => a.images[u.value]), k = (C, B) => {
2927
- C && (i.value[B] = C);
2928
- }, y = (C) => {
2929
- C !== u.value && (s.value = C > u.value ? "next" : "prev", t.value = C, n("change", C));
2926
+ const t = fe(e, "modelValue"), a = e, n = o, i = h([]), s = h("next"), r = h(null), l = `gallery-caption-${de()}`, d = h(null), u = I(() => t.value), p = I(() => a.images[u.value]), b = (m, B) => {
2927
+ m && (i.value[B] = m);
2928
+ }, g = (m) => {
2929
+ m !== u.value && (s.value = m > u.value ? "next" : "prev", t.value = m, n("change", m));
2930
2930
  }, c = () => {
2931
2931
  if (u.value === a.images.length - 1) {
2932
- a.loop && y(0);
2932
+ a.loop && g(0);
2933
2933
  return;
2934
2934
  }
2935
- y(u.value + 1);
2936
- }, m = () => {
2935
+ g(u.value + 1);
2936
+ }, C = () => {
2937
2937
  if (u.value === 0) {
2938
- a.loop && y(a.images.length - 1);
2938
+ a.loop && g(a.images.length - 1);
2939
2939
  return;
2940
2940
  }
2941
- y(u.value - 1);
2941
+ g(u.value - 1);
2942
2942
  }, $ = () => {
2943
2943
  d.value && (r.value = d.value.offsetHeight);
2944
2944
  }, L = () => {
2945
2945
  r.value = null;
2946
2946
  };
2947
- return Y(u, async (C) => {
2947
+ return Y(u, async (m) => {
2948
2948
  await we();
2949
- const B = i.value[C];
2949
+ const B = i.value[m];
2950
2950
  B && B.scrollIntoView({
2951
2951
  behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
2952
2952
  inline: "center",
@@ -2954,7 +2954,7 @@ const N2 = {
2954
2954
  });
2955
2955
  }), Y(() => a.images, () => {
2956
2956
  i.value = [];
2957
- }), (C, B) => (v(), f("div", {
2957
+ }), (m, B) => (v(), f("div", {
2958
2958
  role: "region",
2959
2959
  class: "rs-gallery",
2960
2960
  "aria-roledescription": "carousel",
@@ -2967,9 +2967,9 @@ const N2 = {
2967
2967
  ref: d,
2968
2968
  tabindex: "0",
2969
2969
  class: "rs-gallery-review",
2970
- style: ye(r.value ? { height: `${r.value}px` } : void 0),
2970
+ style: ge(r.value ? { height: `${r.value}px` } : void 0),
2971
2971
  onKeydown: [
2972
- ve(le(m, ["prevent"]), ["left"]),
2972
+ ve(le(C, ["prevent"]), ["left"]),
2973
2973
  ve(le(c, ["prevent"]), ["right"])
2974
2974
  ]
2975
2975
  }, [
@@ -2989,7 +2989,7 @@ const N2 = {
2989
2989
  ]),
2990
2990
  _: 1
2991
2991
  }, 8, ["name"]),
2992
- U(C.$slots, "overlay", {
2992
+ U(m.$slots, "overlay", {
2993
2993
  image: p.value,
2994
2994
  index: u.value
2995
2995
  }, void 0, !0)
@@ -3000,20 +3000,20 @@ const N2 = {
3000
3000
  class: "rs-gallery-caption"
3001
3001
  }, N(p.value.title), 1)) : q("", !0),
3002
3002
  e.showThumbnails ? (v(), f("ul", Ca, [
3003
- (v(!0), f(te, null, ue(e.images, (O, b) => (v(), f("li", {
3003
+ (v(!0), f(te, null, ue(e.images, (O, k) => (v(), f("li", {
3004
3004
  key: O.src,
3005
3005
  ref_for: !0,
3006
- ref: (I) => k(I, b),
3007
- "aria-selected": u.value === b
3006
+ ref: (H) => b(H, k),
3007
+ "aria-selected": u.value === k
3008
3008
  }, [
3009
3009
  M("button", {
3010
3010
  type: "button",
3011
- class: re(["rs-gallery-thumb", { active: u.value === b }]),
3012
- onClick: (I) => y(b)
3011
+ class: re(["rs-gallery-thumb", { active: u.value === k }]),
3012
+ onClick: (H) => g(k)
3013
3013
  }, [
3014
3014
  P(xe, {
3015
3015
  src: O.src,
3016
- alt: `Select image ${b + 1}`,
3016
+ alt: `Select image ${k + 1}`,
3017
3017
  transform: e.transformThumbnails
3018
3018
  }, null, 8, ["src", "alt", "transform"])
3019
3019
  ], 10, ha)
@@ -3021,7 +3021,7 @@ const N2 = {
3021
3021
  ])) : q("", !0)
3022
3022
  ], 8, fa));
3023
3023
  }
3024
- }), i1 = /* @__PURE__ */ K(ya, [["__scopeId", "data-v-dcfacff6"]]), ga = ["aria-label"], ba = ["onClick"], ka = /* @__PURE__ */ T({
3024
+ }), i1 = /* @__PURE__ */ K(ga, [["__scopeId", "data-v-dcfacff6"]]), ya = ["aria-label"], ba = ["onClick"], ka = /* @__PURE__ */ T({
3025
3025
  __name: "GalleryGrid",
3026
3026
  props: {
3027
3027
  images: {},
@@ -3038,7 +3038,7 @@ const N2 = {
3038
3038
  setup(e) {
3039
3039
  return (o, t) => (v(), f("div", {
3040
3040
  class: "rs-gallery-grid",
3041
- style: ye({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
3041
+ style: ge({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
3042
3042
  role: "list",
3043
3043
  "aria-label": e.ariaLabel || "Image grid gallery"
3044
3044
  }, [
@@ -3054,7 +3054,7 @@ const N2 = {
3054
3054
  transform: e.transform
3055
3055
  }, null, 8, ["src", "alt", "transform"])
3056
3056
  ], 8, ba))), 128))
3057
- ], 12, ga));
3057
+ ], 12, ya));
3058
3058
  }
3059
3059
  }), u1 = /* @__PURE__ */ K(ka, [["__scopeId", "data-v-17067a4b"]]), _e = /* @__PURE__ */ Symbol("ModalContext");
3060
3060
  let Te = 0, e1 = 0, Ze = null;
@@ -3078,8 +3078,8 @@ const Oe = T({
3078
3078
  Y(() => e.open, (p) => n.value = p), Y(n, (p) => {
3079
3079
  o("update:open", p), o(p ? "opened" : "closed");
3080
3080
  });
3081
- const l = () => n.value = !1, d = H(() => e.motion), u = H(() => e.size);
3082
- return ge(_e, {
3081
+ const l = () => n.value = !1, d = I(() => e.motion), u = I(() => e.size);
3082
+ return ye(_e, {
3083
3083
  isOpen: n,
3084
3084
  motion: d,
3085
3085
  size: u,
@@ -3104,15 +3104,15 @@ const Oe = T({
3104
3104
  u.querySelectorAll(
3105
3105
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3106
3106
  )
3107
- ).filter((m) => !m.hasAttribute("disabled"));
3107
+ ).filter((C) => !C.hasAttribute("disabled"));
3108
3108
  if (p.length === 0) {
3109
3109
  u.setAttribute("tabindex", "-1"), u.focus();
3110
3110
  return;
3111
3111
  }
3112
- const k = p[0], y = p[p.length - 1], c = (m) => {
3113
- m.key === "Tab" && (m.shiftKey && document.activeElement === k ? (m.preventDefault(), y?.focus()) : !m.shiftKey && document.activeElement === y && (m.preventDefault(), k?.focus()));
3112
+ const b = p[0], g = p[p.length - 1], c = (C) => {
3113
+ C.key === "Tab" && (C.shiftKey && document.activeElement === b ? (C.preventDefault(), g?.focus()) : !C.shiftKey && document.activeElement === g && (C.preventDefault(), b?.focus()));
3114
3114
  };
3115
- u.addEventListener("keydown", c), k?.focus(), s = () => {
3115
+ u.addEventListener("keydown", c), b?.focus(), s = () => {
3116
3116
  u.removeEventListener("keydown", c), s = null;
3117
3117
  };
3118
3118
  }, l = () => {
@@ -3121,7 +3121,7 @@ const Oe = T({
3121
3121
  --e1 === 0 && (document.body.style.overflow = "");
3122
3122
  };
3123
3123
  return () => F(
3124
- He,
3124
+ Ie,
3125
3125
  { to: "body" },
3126
3126
  F(
3127
3127
  $e,
@@ -3327,7 +3327,7 @@ const wa = /* @__PURE__ */ T({
3327
3327
  }),
3328
3328
  emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
3329
3329
  setup(e, { emit: o }) {
3330
- const t = fe(e, "modelValue"), a = o, n = H({
3330
+ const t = fe(e, "modelValue"), a = o, n = I({
3331
3331
  get: () => t.value ?? 0,
3332
3332
  set: (s) => {
3333
3333
  t.value = s, a("change", s);
@@ -3373,7 +3373,7 @@ const wa = /* @__PURE__ */ T({
3373
3373
  }
3374
3374
  }), t1 = /* @__PURE__ */ K(Va, [["__scopeId", "data-v-d6be1b96"]]);
3375
3375
  t1.install = (e) => e.component("ImageGallery", t1);
3376
- const Ia = ["aria-busy"], Ha = {
3376
+ const Ha = ["aria-busy"], Ia = {
3377
3377
  key: 0,
3378
3378
  class: "message",
3379
3379
  "aria-hidden": "true"
@@ -3408,9 +3408,9 @@ const Ia = ["aria-busy"], Ha = {
3408
3408
  class: "spinner",
3409
3409
  "aria-hidden": "true"
3410
3410
  }, null, -1)),
3411
- e.message ? (v(), f("span", Ha, N(n.value), 1)) : q("", !0),
3411
+ e.message ? (v(), f("span", Ia, N(n.value), 1)) : q("", !0),
3412
3412
  M("span", Ba, N(e.message || "Loading"), 1)
3413
- ], 8, Ia));
3413
+ ], 8, Ha));
3414
3414
  }
3415
3415
  }), C1 = /* @__PURE__ */ K(_a, [["__scopeId", "data-v-e61a1cf5"]]), Da = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], Ra = {
3416
3416
  class: "checkbox-control",
@@ -3436,25 +3436,25 @@ const Ia = ["aria-busy"], Ha = {
3436
3436
  }),
3437
3437
  emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
3438
3438
  setup(e, { emit: o }) {
3439
- const t = o, a = fe(e, "modelValue"), n = e, i = de(), s = H(() => n.id ?? `checkbox-${i}`), r = h(null), l = W2(n).value, d = H(() => n.required ? !0 : void 0), u = H(() => n.triState && a.value === void 0 ? "mixed" : void 0);
3439
+ const t = o, a = fe(e, "modelValue"), n = e, i = de(), s = I(() => n.id ?? `checkbox-${i}`), r = h(null), l = W2(n).value, d = I(() => n.required ? !0 : void 0), u = I(() => n.triState && a.value === void 0 ? "mixed" : void 0);
3440
3440
  Y(
3441
3441
  () => a.value,
3442
- (k) => {
3443
- r.value && (r.value.indeterminate = k === void 0, r.value.checked = k === !0);
3442
+ (b) => {
3443
+ r.value && (r.value.indeterminate = b === void 0, r.value.checked = b === !0);
3444
3444
  },
3445
3445
  { immediate: !0 }
3446
3446
  );
3447
- const p = (k) => {
3447
+ const p = (b) => {
3448
3448
  if (!n.disabled) {
3449
3449
  if (!n.triState) {
3450
- const y = k.target.checked;
3451
- a.value = y, t("change", a.value);
3450
+ const g = b.target.checked;
3451
+ a.value = g, t("change", a.value);
3452
3452
  return;
3453
3453
  }
3454
3454
  a.value === !1 ? a.value = !0 : a.value === !0 ? a.value = void 0 : a.value = !1, t("change", a.value);
3455
3455
  }
3456
3456
  };
3457
- return (k, y) => (v(), f("label", {
3457
+ return (b, g) => (v(), f("label", {
3458
3458
  class: re(["checkbox-root", { required: d.value, error: e.invalid }])
3459
3459
  }, [
3460
3460
  M("input", {
@@ -3467,18 +3467,18 @@ const Ia = ["aria-busy"], Ha = {
3467
3467
  "aria-invalid": e.invalid ? "true" : void 0,
3468
3468
  "aria-disabled": S(l),
3469
3469
  "aria-checked": u.value,
3470
- onClick: y[0] || (y[0] = (c) => e.triState ? p(c) : void 0),
3471
- onChange: y[1] || (y[1] = (c) => e.triState ? void 0 : p(c)),
3470
+ onClick: g[0] || (g[0] = (c) => e.triState ? p(c) : void 0),
3471
+ onChange: g[1] || (g[1] = (c) => e.triState ? void 0 : p(c)),
3472
3472
  ref_key: "inputRef",
3473
3473
  ref: r
3474
3474
  }, null, 40, Da),
3475
3475
  M("span", Ra, [
3476
- a.value === !0 ? (v(), f("svg", Aa, [...y[2] || (y[2] = [
3476
+ a.value === !0 ? (v(), f("svg", Aa, [...g[2] || (g[2] = [
3477
3477
  M("path", {
3478
3478
  d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
3479
3479
  fill: "currentColor"
3480
3480
  }, null, -1)
3481
- ])])) : a.value === void 0 ? (v(), f("svg", Sa, [...y[3] || (y[3] = [
3481
+ ])])) : a.value === void 0 ? (v(), f("svg", Sa, [...g[3] || (g[3] = [
3482
3482
  M("path", {
3483
3483
  d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
3484
3484
  fill: "currentColor"
@@ -3486,7 +3486,7 @@ const Ia = ["aria-busy"], Ha = {
3486
3486
  ])])) : q("", !0)
3487
3487
  ]),
3488
3488
  M("span", Ta, [
3489
- U(k.$slots, "default", {}, void 0, !0)
3489
+ U(b.$slots, "default", {}, void 0, !0)
3490
3490
  ])
3491
3491
  ], 2));
3492
3492
  }
@@ -3506,15 +3506,15 @@ const Ia = ["aria-busy"], Ha = {
3506
3506
  }),
3507
3507
  emits: /* @__PURE__ */ ee(["focus", "blur"], ["update:modelValue"]),
3508
3508
  setup(e, { emit: o }) {
3509
- const t = fe(e, "modelValue"), a = Ne(), n = Fe(), i = o, s = e, r = h(null), l = h(null), d = de(), u = `${d}-error`, p = `${d}-hint`, k = Be(a).value, y = H(() => k ? `${p} ${d}-required-hint` : p), c = Pe(s, n, u, y.value).value, m = (L) => {
3509
+ const t = fe(e, "modelValue"), a = Ne(), n = Fe(), i = o, s = e, r = h(null), l = h(null), d = de(), u = `${d}-error`, p = `${d}-hint`, b = Be(a).value, g = I(() => b ? `${p} ${d}-required-hint` : p), c = Pe(s, n, u, g.value).value, C = (L) => {
3510
3510
  ze(r.value, l.value);
3511
- const C = L.target;
3512
- t.value = s.type === "number" ? Number(C.value) : C.value;
3513
- }, $ = H(() => s.invalid === !0 && s.errorMessage ? u : void 0);
3511
+ const m = L.target;
3512
+ t.value = s.type === "number" ? Number(m.value) : m.value;
3513
+ }, $ = I(() => s.invalid === !0 && s.errorMessage ? u : void 0);
3514
3514
  return ae(() => {
3515
3515
  ze(r.value, l.value);
3516
- }), (L, C) => (v(), f("div", {
3517
- class: re(["textarea-box", { required: S(k), error: e.invalid }]),
3516
+ }), (L, m) => (v(), f("div", {
3517
+ class: re(["textarea-box", { required: S(b), error: e.invalid }]),
3518
3518
  ref_key: "inputBoxRef",
3519
3519
  ref: l
3520
3520
  }, [
@@ -3524,11 +3524,11 @@ const Ia = ["aria-busy"], Ha = {
3524
3524
  }, N(e.label), 9, Ea),
3525
3525
  M("textarea", Ce({ id: e.id }, L.$attrs, {
3526
3526
  class: "custom-textarea",
3527
- onFocus: C[0] || (C[0] = (B) => S(G2)(B, l.value, i)),
3528
- onBlur: C[1] || (C[1] = (B) => S(X2)(B, r.value, l.value, i)),
3529
- onInput: m,
3527
+ onFocus: m[0] || (m[0] = (B) => S(G2)(B, l.value, i)),
3528
+ onBlur: m[1] || (m[1] = (B) => S(X2)(B, r.value, l.value, i)),
3529
+ onInput: C,
3530
3530
  value: t.value,
3531
- required: S(k),
3531
+ required: S(b),
3532
3532
  "aria-invalid": e.invalid ? "true" : void 0,
3533
3533
  "aria-errormessage": $.value,
3534
3534
  "aria-describedby": S(c),
@@ -3543,7 +3543,7 @@ const Ia = ["aria-busy"], Ha = {
3543
3543
  }),
3544
3544
  P(Ue, {
3545
3545
  baseId: S(d),
3546
- isRequired: S(k)
3546
+ isRequired: S(b)
3547
3547
  }, null, 8, ["baseId", "isRequired"]),
3548
3548
  P(je, {
3549
3549
  errorId: u,
@@ -3607,7 +3607,7 @@ const Ia = ["aria-busy"], Ha = {
3607
3607
  },
3608
3608
  emits: ["valid"],
3609
3609
  setup(e, { emit: o }) {
3610
- const t = e, a = o, n = h([]), i = h(null), s = h(null), r = (y, c) => y && (n.value[c] = y);
3610
+ const t = e, a = o, n = h([]), i = h(null), s = h(null), r = (g, c) => g && (n.value[c] = g);
3611
3611
  Y(
3612
3612
  () => t.password,
3613
3613
  () => {
@@ -3622,37 +3622,37 @@ const Ia = ["aria-busy"], Ha = {
3622
3622
  const l = {
3623
3623
  "--strength-fill-color": t.strengthFillColor
3624
3624
  }, d = () => {
3625
- const y = u(), c = Object.values(p()).every(Boolean);
3626
- return y && c;
3625
+ const g = u(), c = Object.values(p()).every(Boolean);
3626
+ return g && c;
3627
3627
  }, u = () => {
3628
- const y = p(), c = Object.values(y).filter(Boolean).length, m = t.password.length >= 12 ? 1 : 0, $ = Math.min(100, (c + m) * 20), L = Math.min(t.labels.length - 1, Math.floor($ / 25));
3628
+ const g = p(), c = Object.values(g).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));
3629
3629
  return i.value && (i.value.style.width = `${$}%`), s.value && (s.value.textContent = t.labels[L] ?? "Very weak"), c === t.rules.length;
3630
3630
  }, p = () => {
3631
- const y = k();
3631
+ const g = b();
3632
3632
  return n.value.forEach((c) => {
3633
- const m = c.dataset.rule, $ = !!y[m];
3633
+ const C = c.dataset.rule, $ = !!g[C];
3634
3634
  c.classList.toggle("passed", $);
3635
- }), y;
3636
- }, k = () => {
3637
- const y = {};
3635
+ }), g;
3636
+ }, b = () => {
3637
+ const g = {};
3638
3638
  return t.rules.forEach((c) => {
3639
- y[c.key] = c.validator(
3639
+ g[c.key] = c.validator(
3640
3640
  t.password,
3641
3641
  t.passwordConfirmation
3642
3642
  );
3643
- }), y;
3643
+ }), g;
3644
3644
  };
3645
- return (y, c) => (v(), f("section", Ua, [
3645
+ return (g, c) => (v(), f("section", Ua, [
3646
3646
  M("ul", ja, [
3647
- (v(!0), f(te, null, ue(t.rules, (m, $) => (v(), f("li", {
3648
- key: m.key,
3647
+ (v(!0), f(te, null, ue(t.rules, (C, $) => (v(), f("li", {
3648
+ key: C.key,
3649
3649
  class: "password-rule",
3650
- "data-rule": m.key,
3650
+ "data-rule": C.key,
3651
3651
  ref_for: !0,
3652
3652
  ref: (L) => r(L, $)
3653
3653
  }, [
3654
3654
  c[0] || (c[0] = M("span", { class: "rule-icon" }, "•", -1)),
3655
- me(" " + N(m.label), 1)
3655
+ me(" " + N(C.label), 1)
3656
3656
  ], 8, Ya))), 128))
3657
3657
  ]),
3658
3658
  M("div", Wa, [
@@ -3748,7 +3748,7 @@ const Ja = {
3748
3748
  }),
3749
3749
  emits: ["update:modelValue"],
3750
3750
  setup(e) {
3751
- const o = e, t = fe(e, "modelValue"), a = H(() => o.invalid ? "true" : void 0), n = H(() => o.required && !o.disabled ? "true" : void 0), i = H(() => o.disabled ? !0 : void 0);
3751
+ const o = e, t = fe(e, "modelValue"), a = I(() => o.invalid ? "true" : void 0), n = I(() => o.required && !o.disabled ? "true" : void 0), i = I(() => o.disabled ? !0 : void 0);
3752
3752
  return (s, r) => (v(), f("fieldset", {
3753
3753
  class: re(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
3754
3754
  "aria-invalid": a.value,
@@ -3769,7 +3769,7 @@ const Ja = {
3769
3769
  required: e.required,
3770
3770
  "onUpdate:modelValue": r[0] || (r[0] = (d) => t.value = d)
3771
3771
  }, null, 8, no), [
3772
- [y1, t.value]
3772
+ [g1, t.value]
3773
3773
  ]),
3774
3774
  e.mode === "standard" ? (v(), f("span", lo)) : q("", !0),
3775
3775
  M("span", ro, N(l.label), 1)
@@ -3788,11 +3788,11 @@ const Ja = {
3788
3788
  class: "option recents",
3789
3789
  "aria-disabled": "true",
3790
3790
  "aria-hidden": "true"
3791
- }, mo = ["onClick"], ho = { class: "option-value" }, yo = {
3791
+ }, mo = ["onClick"], ho = { class: "option-value" }, go = {
3792
3792
  key: 0,
3793
3793
  class: "start-icon",
3794
3794
  "aria-hidden": "true"
3795
- }, go = /* @__PURE__ */ T({
3795
+ }, yo = /* @__PURE__ */ T({
3796
3796
  __name: "Autocomplete",
3797
3797
  props: /* @__PURE__ */ ee({
3798
3798
  id: {},
@@ -3818,32 +3818,32 @@ const Ja = {
3818
3818
  }),
3819
3819
  emits: /* @__PURE__ */ ee(["change", "select", "focus", "blur"], ["update:modelValue"]),
3820
3820
  setup(e, { emit: o }) {
3821
- const t = e, a = o, n = fe(e, "modelValue"), i = h(null), s = h(""), r = h(!1), l = h([]), d = h(null), u = h(null), p = H(() => t.id ? `${t.id}-search-history` : "search-history"), y = `${de()}-list`, c = h(!1), m = H(() => n.value !== null && n.value !== void 0 && n.value !== ""), $ = H(() => d.value !== null ? `${y}-option-${d.value}` : void 0), L = H(() => r.value && $.value ? $.value : void 0), C = H(() => l.value.length > 0), B = H(() => {
3821
+ const t = e, a = o, n = fe(e, "modelValue"), i = h(null), s = h(""), r = h(!1), l = h([]), d = h(null), u = h(null), p = I(() => t.id ? `${t.id}-search-history` : "search-history"), g = `${de()}-list`, c = h(!1), C = I(() => n.value !== null && n.value !== void 0 && n.value !== ""), $ = I(() => d.value !== null ? `${g}-option-${d.value}` : void 0), L = I(() => r.value && $.value ? $.value : void 0), m = I(() => l.value.length > 0), B = I(() => {
3822
3822
  if (!t.filterable) return t.options;
3823
- const g = s.value.toLowerCase();
3824
- return t.options.filter((A) => t.getValue(A).toLowerCase().includes(g));
3823
+ const y = s.value.toLowerCase();
3824
+ return t.options.filter((A) => t.getValue(A).toLowerCase().includes(y));
3825
3825
  }), O = Be(t).value;
3826
3826
  Y(
3827
3827
  () => p.value,
3828
- (g) => {
3829
- if (g)
3828
+ (y) => {
3829
+ if (y)
3830
3830
  try {
3831
- l.value = JSON.parse(localStorage.getItem(g) || "[]");
3831
+ l.value = JSON.parse(localStorage.getItem(y) || "[]");
3832
3832
  } catch {
3833
3833
  l.value = [];
3834
3834
  }
3835
3835
  },
3836
3836
  { immediate: !0 }
3837
- ), Y(r, async (g) => {
3838
- if (!g) {
3837
+ ), Y(r, async (y) => {
3838
+ if (!y) {
3839
3839
  d.value = null;
3840
3840
  return;
3841
3841
  }
3842
3842
  B.value.length !== 0 && (await we(), Q());
3843
3843
  }), Y(
3844
3844
  () => t.loading,
3845
- async (g) => {
3846
- g || r.value && B.value.length !== 0 && (await we(), Q());
3845
+ async (y) => {
3846
+ y || r.value && B.value.length !== 0 && (await we(), Q());
3847
3847
  }
3848
3848
  ), Y(
3849
3849
  () => t.options,
@@ -3851,78 +3851,78 @@ const Ja = {
3851
3851
  n.value || (u.value = null, d.value = null);
3852
3852
  }
3853
3853
  );
3854
- const b = (g) => {
3855
- s.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), c.value = !0, a("focus", g);
3856
- }, I = (g) => {
3857
- const A = g.relatedTarget;
3858
- i.value?.contains(A) || (r.value = !1, n.value ? w() : s.value = "", c.value = !1, a("blur", g));
3859
- }, D = (g, A) => {
3854
+ const k = (y) => {
3855
+ s.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), c.value = !0, a("focus", y);
3856
+ }, H = (y) => {
3857
+ const A = y.relatedTarget;
3858
+ i.value?.contains(A) || (r.value = !1, n.value ? w() : s.value = "", c.value = !1, a("blur", y));
3859
+ }, D = (y, A) => {
3860
3860
  const X = i.value;
3861
- if (!X || t.isDisabled(g)) return;
3861
+ if (!X || t.isDisabled(y)) return;
3862
3862
  r.value = !1, E(s.value), u.value = A, d.value = A;
3863
- const z = t.getKey(g);
3864
- z && z.toString().length > 0 ? X.classList.add("filled") : X.classList.remove("filled"), s.value = t.getValue(g), n.value = z, a("select", z);
3865
- }, V = (g) => {
3866
- if (!r.value && ["ArrowDown", "ArrowUp"].includes(g.key)) {
3867
- r.value = !0, d.value = d.value ?? B.value.findIndex((A) => !t.isDisabled(A)), g.preventDefault();
3863
+ const z = t.getKey(y);
3864
+ z && z.toString().length > 0 ? X.classList.add("filled") : X.classList.remove("filled"), s.value = t.getValue(y), n.value = z, a("select", z);
3865
+ }, V = (y) => {
3866
+ if (!r.value && ["ArrowDown", "ArrowUp"].includes(y.key)) {
3867
+ r.value = !0, d.value = d.value ?? B.value.findIndex((A) => !t.isDisabled(A)), y.preventDefault();
3868
3868
  return;
3869
3869
  }
3870
3870
  if (r.value) {
3871
- if (g.key === "ArrowDown" && (_(1), g.preventDefault()), g.key === "ArrowUp" && (_(-1), g.preventDefault()), g.key === "Home") {
3871
+ if (y.key === "ArrowDown" && (_(1), y.preventDefault()), y.key === "ArrowUp" && (_(-1), y.preventDefault()), y.key === "Home") {
3872
3872
  const A = oe();
3873
- A >= 0 && (d.value = A), g.preventDefault();
3873
+ A >= 0 && (d.value = A), y.preventDefault();
3874
3874
  }
3875
- if (g.key === "End") {
3875
+ if (y.key === "End") {
3876
3876
  const A = Z();
3877
- A >= 0 && (d.value = A), g.preventDefault();
3877
+ A >= 0 && (d.value = A), y.preventDefault();
3878
3878
  }
3879
- if (g.key === "Enter") {
3879
+ if (y.key === "Enter") {
3880
3880
  if (d.value === null) return;
3881
3881
  const A = B.value[d.value];
3882
3882
  if (!A || t.isDisabled(A)) return;
3883
- D(A, d.value), r.value = !1, g.preventDefault();
3883
+ D(A, d.value), r.value = !1, y.preventDefault();
3884
3884
  }
3885
- g.key === "Escape" && (r.value = !1);
3885
+ y.key === "Escape" && (r.value = !1);
3886
3886
  }
3887
- }, _ = (g) => {
3887
+ }, _ = (y) => {
3888
3888
  if (d.value === null) return;
3889
3889
  let A = d.value;
3890
3890
  do
3891
- A += g;
3891
+ A += y;
3892
3892
  while (A >= 0 && A < B.value.length && t.isDisabled(B.value[A]));
3893
3893
  A >= 0 && A < B.value.length && (d.value = A);
3894
3894
  }, R = () => {
3895
3895
  s.value.length === 0 && (n.value = ""), s.value.length >= t.minChars ? (a("change", s.value), r.value = !0) : r.value = !1;
3896
3896
  }, w = () => {
3897
3897
  if (n.value.toString().length === 0 || !t.options || t.options.length === 0) return;
3898
- const g = t.options.findIndex((A) => t.getKey(A) === n.value);
3899
- g > -1 && (d.value = g, u.value = g, s.value = t.getValue(t.options[g]));
3898
+ const y = t.options.findIndex((A) => t.getKey(A) === n.value);
3899
+ y > -1 && (d.value = y, u.value = y, s.value = t.getValue(t.options[y]));
3900
3900
  };
3901
3901
  Y(
3902
3902
  [() => t.options.length, () => n.value],
3903
- async ([g, A]) => {
3904
- A && g !== 0 && (await we(), w());
3903
+ async ([y, A]) => {
3904
+ A && y !== 0 && (await we(), w());
3905
3905
  },
3906
3906
  { flush: "post", immediate: !0 }
3907
3907
  );
3908
3908
  const x = () => {
3909
3909
  s.value = "", n.value = "";
3910
- }, E = (g) => {
3911
- !g || g.trim().length === 0 || (l.value = [
3912
- g,
3913
- ...l.value.filter((A) => A !== g)
3910
+ }, E = (y) => {
3911
+ !y || y.trim().length === 0 || (l.value = [
3912
+ y,
3913
+ ...l.value.filter((A) => A !== y)
3914
3914
  ].slice(0, t.suggestionsLimit), localStorage.setItem(p.value, JSON.stringify(l.value)));
3915
- }, G = (g) => {
3916
- s.value = g, R();
3915
+ }, G = (y) => {
3916
+ s.value = y, R();
3917
3917
  }, Q = () => {
3918
- const g = oe();
3919
- g >= 0 && (d.value = g);
3920
- }, oe = () => B.value.findIndex((g) => !t.isDisabled(g)), Z = () => {
3921
- for (let g = B.value.length - 1; g >= 0; g--) if (!t.isDisabled(B.value[g])) return g;
3918
+ const y = oe();
3919
+ y >= 0 && (d.value = y);
3920
+ }, oe = () => B.value.findIndex((y) => !t.isDisabled(y)), Z = () => {
3921
+ for (let y = B.value.length - 1; y >= 0; y--) if (!t.isDisabled(B.value[y])) return y;
3922
3922
  return -1;
3923
3923
  };
3924
- return ae(() => w()), (g, A) => (v(), f("div", {
3925
- class: re(["autocomplete", { required: S(O), error: e.invalid, "has-icon": Object.keys(g.$slots).includes("icon"), filled: m.value, focused: c.value }]),
3924
+ return ae(() => w()), (y, A) => (v(), f("div", {
3925
+ class: re(["autocomplete", { required: S(O), error: e.invalid, "has-icon": Object.keys(y.$slots).includes("icon"), filled: C.value, focused: c.value }]),
3926
3926
  ref_key: "autocompleteRef",
3927
3927
  ref: i
3928
3928
  }, [
@@ -3933,33 +3933,33 @@ const Ja = {
3933
3933
  Me(M("input", Ce({
3934
3934
  id: e.id,
3935
3935
  type: e.type
3936
- }, g.$attrs, {
3936
+ }, y.$attrs, {
3937
3937
  role: "combobox",
3938
3938
  "aria-autocomplete": "list",
3939
3939
  "aria-expanded": r.value,
3940
- "aria-controls": y,
3940
+ "aria-controls": g,
3941
3941
  "aria-activedescendant": L.value,
3942
3942
  "aria-required": S(O),
3943
3943
  "aria-invalid": e.invalid ? "true" : void 0,
3944
3944
  disabled: e.disabled ? !0 : void 0,
3945
3945
  "aria-disabled": e.disabled ? !0 : void 0,
3946
3946
  "onUpdate:modelValue": A[0] || (A[0] = (X) => s.value = X),
3947
- onFocus: b,
3948
- onBlur: I,
3947
+ onFocus: k,
3948
+ onBlur: H,
3949
3949
  onInput: R,
3950
3950
  onKeydown: V
3951
3951
  }), null, 16, uo), [
3952
- [g1, s.value]
3952
+ [y1, s.value]
3953
3953
  ]),
3954
3954
  P($e, { name: "select" }, {
3955
3955
  default: W(() => [
3956
3956
  Me(M("ul", {
3957
- id: y,
3957
+ id: g,
3958
3958
  role: "listbox",
3959
3959
  class: "options"
3960
3960
  }, [
3961
3961
  B.value.length > 0 ? (v(!0), f(te, { key: 0 }, ue(B.value, (X, z) => (v(), f("li", {
3962
- id: `${y}-option-${z}`,
3962
+ id: `${g}-option-${z}`,
3963
3963
  key: e.getKey(X),
3964
3964
  role: "option",
3965
3965
  class: re(["option", { "focus-visible": d.value === z }]),
@@ -3974,7 +3974,7 @@ const Ja = {
3974
3974
  name: "search",
3975
3975
  size: 22
3976
3976
  })),
3977
- U(g.$slots, "option", {
3977
+ U(y.$slots, "option", {
3978
3978
  option: X,
3979
3979
  value: e.getValue(X),
3980
3980
  query: s.value,
@@ -3997,7 +3997,7 @@ const Ja = {
3997
3997
  role: "status",
3998
3998
  message: "Loading"
3999
3999
  })),
4000
- C.value ? (v(), f("li", Co, [...A[4] || (A[4] = [
4000
+ m.value ? (v(), f("li", Co, [...A[4] || (A[4] = [
4001
4001
  M("div", { class: "option-value" }, " Recents ", -1)
4002
4002
  ])])) : q("", !0),
4003
4003
  (v(!0), f(te, null, ue(l.value, (X) => (v(), f("li", {
@@ -4016,8 +4016,8 @@ const Ja = {
4016
4016
  ]),
4017
4017
  _: 3
4018
4018
  }),
4019
- g.$slots.icon ? (v(), f("span", yo, [
4020
- U(g.$slots, "icon", {}, void 0, !0)
4019
+ y.$slots.icon ? (v(), f("span", go, [
4020
+ U(y.$slots, "icon", {}, void 0, !0)
4021
4021
  ])) : q("", !0),
4022
4022
  s.value.length > 0 && !e.disabled ? (v(), J(he, {
4023
4023
  key: 1,
@@ -4042,7 +4042,7 @@ const Ja = {
4042
4042
  })) : q("", !0)
4043
4043
  ], 2));
4044
4044
  }
4045
- }), ll = /* @__PURE__ */ K(go, [["__scopeId", "data-v-75e8a9a2"]]), bo = 5, pe = r1({
4045
+ }), ll = /* @__PURE__ */ K(yo, [["__scopeId", "data-v-75e8a9a2"]]), bo = 5, pe = r1({
4046
4046
  toasts: []
4047
4047
  });
4048
4048
  let ko = 0;
@@ -4106,7 +4106,7 @@ const Le = (e, o = "info") => {
4106
4106
  const d = () => {
4107
4107
  cancelAnimationFrame(s), a.value = "closing", setTimeout(() => pe.toasts = pe.toasts.filter((u) => u.id !== o.id), $o);
4108
4108
  };
4109
- return ae(() => o.variant === "error" && o.focus && t.value?.focus()), Ie(() => cancelAnimationFrame(s)), (u, p) => (v(), f("div", {
4109
+ return ae(() => o.variant === "error" && o.focus && t.value?.focus()), He(() => cancelAnimationFrame(s)), (u, p) => (v(), f("div", {
4110
4110
  ref_key: "rootRef",
4111
4111
  ref: t,
4112
4112
  tabindex: "-1",
@@ -4138,19 +4138,19 @@ const Le = (e, o = "info") => {
4138
4138
  e.duration !== 1 / 0 ? (v(), f("div", xo, [
4139
4139
  M("div", {
4140
4140
  class: "bar",
4141
- style: ye({ width: n.value + "%" })
4141
+ style: ge({ width: n.value + "%" })
4142
4142
  }, null, 4)
4143
4143
  ])) : q("", !0)
4144
4144
  ], 8, Mo));
4145
4145
  }
4146
- }), Io = /* @__PURE__ */ K(Vo, [["__scopeId", "data-v-f9e75b9d"]]), Ho = { class: "toast-viewport" }, Bo = { class: "toast-message" }, _o = { key: 0 }, Do = ["id"], Ro = /* @__PURE__ */ T({
4146
+ }), Ho = /* @__PURE__ */ K(Vo, [["__scopeId", "data-v-f9e75b9d"]]), Io = { class: "toast-viewport" }, Bo = { class: "toast-message" }, _o = { key: 0 }, Do = ["id"], Ro = /* @__PURE__ */ T({
4147
4147
  __name: "ToastViewport",
4148
4148
  setup(e) {
4149
- return (o, t) => (v(), J(He, { to: "body" }, [
4150
- M("div", Ho, [
4149
+ return (o, t) => (v(), J(Ie, { to: "body" }, [
4150
+ M("div", Io, [
4151
4151
  P(b1, { name: "toast-stack" }, {
4152
4152
  default: W(() => [
4153
- (v(!0), f(te, null, ue(S(pe).toasts, (a) => (v(), J(Io, {
4153
+ (v(!0), f(te, null, ue(S(pe).toasts, (a) => (v(), J(Ho, {
4154
4154
  key: a.id,
4155
4155
  id: a.id,
4156
4156
  duration: a.duration,
@@ -4198,8 +4198,8 @@ const sl = {
4198
4198
  emits: ["click"],
4199
4199
  setup(e, { emit: o }) {
4200
4200
  const t = e, a = o, n = h(), i = h();
4201
- ge("card:labelId", n), ge("card:descriptionId", i);
4202
- const s = H(() => t.clickable && t.as !== "button" && t.as !== "a"), r = () => t.clickable && a("click");
4201
+ ye("card:labelId", n), ye("card:descriptionId", i);
4202
+ const s = I(() => t.clickable && t.as !== "button" && t.as !== "a"), r = () => t.clickable && a("click");
4203
4203
  return (l, d) => (v(), J(Ve(e.as), {
4204
4204
  class: re(["rs-card", { clickable: e.clickable }]),
4205
4205
  tabindex: s.value ? 0 : void 0,
@@ -4286,11 +4286,11 @@ const sl = {
4286
4286
  setup(e) {
4287
4287
  const o = e, t = se("StepsContext");
4288
4288
  if (!t) throw new Error("Step component must be used inside Steps.");
4289
- const a = Fe(), n = h(null), i = h(null), s = H(() => t.orientation ?? "horizontal");
4289
+ const a = Fe(), n = h(null), i = h(null), s = I(() => t.orientation ?? "horizontal");
4290
4290
  let r = null, l = null;
4291
4291
  const d = se("StepIndex");
4292
4292
  if (d == null) throw new Error("StepIndex component must be used inside Steps.");
4293
- const u = H(() => o.status ? o.status : d < t.current.value ? "completed" : d === t.current.value ? "active" : "pending"), p = H(() => t?.icons?.[u.value]), k = H(() => a.icon ? "slot" : o.icon ? o.icon : p.value), y = H(() => {
4293
+ const u = I(() => o.status ? o.status : d < t.current.value ? "completed" : d === t.current.value ? "active" : "pending"), p = I(() => t?.icons?.[u.value]), b = I(() => a.icon ? "slot" : o.icon ? o.icon : p.value), g = I(() => {
4294
4294
  switch (u.value) {
4295
4295
  case "completed":
4296
4296
  return "Stage completed";
@@ -4301,7 +4301,7 @@ const sl = {
4301
4301
  default:
4302
4302
  return "Stage pending";
4303
4303
  }
4304
- }), c = H(() => {
4304
+ }), c = I(() => {
4305
4305
  switch (u.value) {
4306
4306
  case "completed":
4307
4307
  return "success";
@@ -4312,7 +4312,7 @@ const sl = {
4312
4312
  default:
4313
4313
  return "default";
4314
4314
  }
4315
- }), m = H(() => o.size ?? t.size ?? "sm"), $ = H(() => {
4315
+ }), C = I(() => o.size ?? t.size ?? "sm"), $ = I(() => {
4316
4316
  switch (u.value) {
4317
4317
  case "completed":
4318
4318
  return "Completed";
@@ -4331,26 +4331,26 @@ const sl = {
4331
4331
  );
4332
4332
  const L = () => {
4333
4333
  r == null && (r = requestAnimationFrame(() => {
4334
- r = null, C();
4334
+ r = null, m();
4335
4335
  }));
4336
- }, C = () => {
4336
+ }, m = () => {
4337
4337
  if (!n.value || !i.value) return;
4338
- const O = i.value.getBoundingClientRect(), b = t.stepsRef.value.getBoundingClientRect(), I = t.orientation === "vertical" ? O.top + O.height / 2 - b.top : O.left + O.width / 2 - b.left;
4339
- t.registerIndicatorCenter(d, I);
4338
+ const O = i.value.getBoundingClientRect(), k = t.stepsRef.value.getBoundingClientRect(), H = t.orientation === "vertical" ? O.top + O.height / 2 - k.top : O.left + O.width / 2 - k.left;
4339
+ t.registerIndicatorCenter(d, H);
4340
4340
  }, B = (O) => {
4341
- const b = t.orientation === "horizontal", I = t.orientation === "vertical";
4341
+ const k = t.orientation === "horizontal", H = t.orientation === "vertical";
4342
4342
  switch (O.key) {
4343
4343
  case "ArrowRight":
4344
- b && t.focusNext();
4344
+ k && t.focusNext();
4345
4345
  break;
4346
4346
  case "ArrowLeft":
4347
- b && t.focusPrev();
4347
+ k && t.focusPrev();
4348
4348
  break;
4349
4349
  case "ArrowDown":
4350
- I && t.focusNext();
4350
+ H && t.focusNext();
4351
4351
  break;
4352
4352
  case "ArrowUp":
4353
- I && t.focusPrev();
4353
+ H && t.focusPrev();
4354
4354
  break;
4355
4355
  case "Home":
4356
4356
  t.focusFirst();
@@ -4365,16 +4365,16 @@ const sl = {
4365
4365
  };
4366
4366
  return ae(() => {
4367
4367
  !n.value || !i.value || (requestAnimationFrame(() => {
4368
- requestAnimationFrame(C);
4368
+ requestAnimationFrame(m);
4369
4369
  }), l = new ResizeObserver(() => {
4370
4370
  L();
4371
4371
  }), l.observe(n.value), l.observe(i.value), t.stepsRef.value && l.observe(t.stepsRef.value), t.registerStep(n.value));
4372
4372
  }), be(() => {
4373
4373
  l?.disconnect(), t.unregisterStep(n.value), r != null && cancelAnimationFrame(r);
4374
- }), (O, b) => (v(), f("li", {
4374
+ }), (O, k) => (v(), f("li", {
4375
4375
  ref_key: "stepRef",
4376
4376
  ref: n,
4377
- class: re(["step", `step__${m.value}`]),
4377
+ class: re(["step", `step__${C.value}`]),
4378
4378
  role: "listitem",
4379
4379
  "data-status": u.value,
4380
4380
  "data-orientation": s.value,
@@ -4397,17 +4397,17 @@ const sl = {
4397
4397
  O.$slots.icon ? U(O.$slots, "icon", {
4398
4398
  key: 0,
4399
4399
  status: u.value
4400
- }, void 0, !0) : k.value ? (v(), J(ce, {
4400
+ }, void 0, !0) : b.value ? (v(), J(ce, {
4401
4401
  key: 1,
4402
- name: k.value,
4402
+ name: b.value,
4403
4403
  class: "icon"
4404
4404
  }, null, 8, ["name"])) : q("", !0),
4405
- u.value === "completed" ? (v(), f("svg", zo, [...b[0] || (b[0] = [
4405
+ u.value === "completed" ? (v(), f("svg", zo, [...k[0] || (k[0] = [
4406
4406
  M("path", {
4407
4407
  d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
4408
4408
  fill: "currentColor"
4409
4409
  }, null, -1)
4410
- ])])) : u.value === "error" ? (v(), f("svg", Oo, [...b[1] || (b[1] = [
4410
+ ])])) : u.value === "error" ? (v(), f("svg", Oo, [...k[1] || (k[1] = [
4411
4411
  M("path", {
4412
4412
  d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
4413
4413
  fill: "currentColor"
@@ -4417,7 +4417,7 @@ const sl = {
4417
4417
  M("span", {
4418
4418
  id: `step-status-${S(d)}`,
4419
4419
  class: "sr-only"
4420
- }, N(y.value), 9, No),
4420
+ }, N(g.value), 9, No),
4421
4421
  M("div", Fo, [
4422
4422
  M("span", {
4423
4423
  id: `step-title-${S(d)}`,
@@ -4444,7 +4444,7 @@ const sl = {
4444
4444
  index: {}
4445
4445
  },
4446
4446
  setup(e) {
4447
- return ge("StepIndex", e.index), (t, a) => U(t.$slots, "default");
4447
+ return ye("StepIndex", e.index), (t, a) => U(t.$slots, "default");
4448
4448
  }
4449
4449
  }), Yo = ["data-size", "data-orientation"], Wo = ["data-error", "data-completed"], Go = {
4450
4450
  "aria-live": "polite",
@@ -4465,11 +4465,11 @@ const sl = {
4465
4465
  }),
4466
4466
  emits: ["update:modelValue"],
4467
4467
  setup(e) {
4468
- const o = e, t = h(0), a = Fe(), n = fe(e, "modelValue"), i = h([]), s = h(null), r = H(() => n.value ?? 0), l = `steps-description-${de()}`, d = w1({}), u = r1({});
4468
+ const o = e, t = h(0), a = Fe(), n = fe(e, "modelValue"), i = h([]), s = h(null), r = I(() => n.value ?? 0), l = `steps-description-${de()}`, d = w1({}), u = r1({});
4469
4469
  let p = null;
4470
- const k = H(() => (a.default?.() ?? [])[r.value]?.props?.title ?? ""), y = H(() => Object.entries(u).filter(([, _]) => _ !== "completed").length === 0), c = H(
4470
+ const b = I(() => (a.default?.() ?? [])[r.value]?.props?.title ?? ""), g = I(() => Object.entries(u).filter(([, _]) => _ !== "completed").length === 0), c = I(
4471
4471
  () => Object.values(u).includes("error")
4472
- ), m = H(() => {
4472
+ ), C = I(() => {
4473
4473
  const _ = r.value, R = d;
4474
4474
  if (R.value[0] == null || R.value[_] == null)
4475
4475
  return o.orientation === "vertical" ? {
@@ -4487,7 +4487,7 @@ const sl = {
4487
4487
  left: `${w}px`,
4488
4488
  width: `${x - w}px`
4489
4489
  };
4490
- }), $ = H(() => {
4490
+ }), $ = I(() => {
4491
4491
  const _ = Object.values(d.value).sort((x, E) => x - E);
4492
4492
  if (_.length < 2) return {};
4493
4493
  const R = _[0], w = _[_.length - 1];
@@ -4499,7 +4499,7 @@ const sl = {
4499
4499
  right: `calc(100% - ${w}px)`
4500
4500
  };
4501
4501
  }), L = (_, R) => d.value = { ...d.value, [_]: R };
4502
- function C(_) {
4502
+ function m(_) {
4503
4503
  i.value.push(_), t.value = i.value.length;
4504
4504
  }
4505
4505
  function B(_) {
@@ -4508,10 +4508,10 @@ const sl = {
4508
4508
  function O(_) {
4509
4509
  _ < 0 || _ >= i.value.length || (n.value = _, i.value[_]?.focus());
4510
4510
  }
4511
- function b() {
4511
+ function k() {
4512
4512
  O(n.value + 1);
4513
4513
  }
4514
- function I() {
4514
+ function H() {
4515
4515
  O(n.value - 1);
4516
4516
  }
4517
4517
  function D() {
@@ -4523,8 +4523,8 @@ const sl = {
4523
4523
  return ae(() => {
4524
4524
  s.value && (p = new ResizeObserver(() => {
4525
4525
  }), p.observe(s.value));
4526
- }), be(() => p?.disconnect()), ge("StepsContext", {
4527
- current: H(() => n.value),
4526
+ }), be(() => p?.disconnect()), ye("StepsContext", {
4527
+ current: I(() => n.value),
4528
4528
  update: (_) => n.value = _,
4529
4529
  stepsCount: t,
4530
4530
  icons: o.icons,
@@ -4536,10 +4536,10 @@ const sl = {
4536
4536
  u[_] = R;
4537
4537
  },
4538
4538
  registerIndicatorCenter: L,
4539
- registerStep: C,
4539
+ registerStep: m,
4540
4540
  unregisterStep: B,
4541
- focusNext: b,
4542
- focusPrev: I,
4541
+ focusNext: k,
4542
+ focusPrev: H,
4543
4543
  focusFirst: D,
4544
4544
  focusLast: V
4545
4545
  }), (_, R) => (v(), f(te, null, [
@@ -4559,13 +4559,13 @@ const sl = {
4559
4559
  M("div", {
4560
4560
  class: "track",
4561
4561
  "aria-hidden": "true",
4562
- style: ye($.value)
4562
+ style: ge($.value)
4563
4563
  }, [
4564
4564
  M("div", {
4565
4565
  class: "track-progress",
4566
4566
  "data-error": c.value,
4567
- "data-completed": y.value,
4568
- style: ye(m.value)
4567
+ "data-completed": g.value,
4568
+ style: ge(C.value)
4569
4569
  }, null, 12, Wo)
4570
4570
  ], 4),
4571
4571
  (v(!0), f(te, null, ue(_.$slots.default?.(), (w, x) => (v(), J(jo, {
@@ -4578,7 +4578,7 @@ const sl = {
4578
4578
  _: 2
4579
4579
  }, 1032, ["index"]))), 128))
4580
4580
  ], 8, Yo),
4581
- M("div", Go, " Step " + N(r.value + 1) + " of " + N(t.value) + ": " + N(k.value), 1)
4581
+ M("div", Go, " Step " + N(r.value + 1) + " of " + N(t.value) + ": " + N(b.value), 1)
4582
4582
  ], 64));
4583
4583
  }
4584
4584
  }), fl = /* @__PURE__ */ K(Xo, [["__scopeId", "data-v-8697173d"]]), Jo = ["data-align"], Qo = /* @__PURE__ */ T({
@@ -4587,7 +4587,7 @@ const sl = {
4587
4587
  align: { default: "left" }
4588
4588
  },
4589
4589
  setup(e) {
4590
- return ge("TimelineContext", e), (t, a) => (v(), f("ol", {
4590
+ return ye("TimelineContext", e), (t, a) => (v(), f("ol", {
4591
4591
  role: "list",
4592
4592
  class: "ui-timeline",
4593
4593
  "data-align": e.align
@@ -4608,7 +4608,7 @@ const sl = {
4608
4608
  setup(e) {
4609
4609
  const o = e, t = se("TimelineContext");
4610
4610
  if (!t) throw new Error("TimelineItem must be used within a Timeline component");
4611
- const a = de(), n = de(), i = H(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), s = (d) => {
4611
+ const a = de(), n = de(), i = I(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), s = (d) => {
4612
4612
  const u = new Date(d).getDay();
4613
4613
  return u < 10 ? `0${u}` : u;
4614
4614
  }, r = (d) => new Date(d).toLocaleString("default", { month: "short" }), l = (d) => new Date(d).getFullYear();
@@ -4671,7 +4671,7 @@ const sl = {
4671
4671
  key: 0,
4672
4672
  role: "tablist",
4673
4673
  class: "carousel-indicators"
4674
- }, mn = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], hn = 0.35, yn = 0.2, gn = /* @__PURE__ */ T({
4674
+ }, mn = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], hn = 0.35, gn = 0.2, yn = /* @__PURE__ */ T({
4675
4675
  __name: "Carousel",
4676
4676
  props: /* @__PURE__ */ ee({
4677
4677
  ariaLabel: { default: "Carousel" },
@@ -4693,14 +4693,14 @@ const sl = {
4693
4693
  }),
4694
4694
  emits: ["update:modelValue"],
4695
4695
  setup(e) {
4696
- const o = fe(e, "modelValue"), t = e, a = h(0), n = h(0), i = h(0), s = h(0), r = h(0), l = h(0), d = h(!1), u = h(!1), p = h(0), k = h([]), y = h(1), c = h(o.value), m = h(null), $ = h(null);
4697
- let L = null, C = null;
4696
+ const o = fe(e, "modelValue"), t = e, a = h(0), n = h(0), i = h(0), s = h(0), r = h(0), l = h(0), d = h(!1), u = h(!1), p = h(0), b = h([]), g = h(1), c = h(o.value), C = h(null), $ = h(null);
4697
+ let L = null, m = null;
4698
4698
  Y(
4699
4699
  () => o.value,
4700
4700
  (z) => c.value = z
4701
4701
  );
4702
- const B = H(() => k.value[c.value] ?? void 0), O = H(() => Math.floor(c.value / y.value)), b = H(() => Math.ceil(G.value / y.value)), I = H(() => Math.max(0, G.value - y.value)), D = H(() => {
4703
- const z = c.value * (100 / y.value), j = u.value && $.value ? i.value / $.value.clientWidth * 100 : 0;
4702
+ const B = I(() => b.value[c.value] ?? void 0), O = I(() => Math.floor(c.value / g.value)), k = I(() => Math.ceil(G.value / g.value)), H = I(() => Math.max(0, G.value - g.value)), D = I(() => {
4703
+ const z = c.value * (100 / g.value), j = u.value && $.value ? i.value / $.value.clientWidth * 100 : 0;
4704
4704
  return {
4705
4705
  transform: `translateX(calc(-${z}% + ${j}%))`,
4706
4706
  transition: u.value ? "none" : "transform 300ms ease"
@@ -4708,17 +4708,17 @@ const sl = {
4708
4708
  }), V = (z) => {
4709
4709
  let j = z;
4710
4710
  if (t.loop) {
4711
- const ie = Math.round(z / y.value), ne = b.value;
4712
- j = (ie % ne + ne) % ne * y.value;
4711
+ const ie = Math.round(z / g.value), ne = k.value;
4712
+ j = (ie % ne + ne) % ne * g.value;
4713
4713
  } else
4714
4714
  j = Math.min(
4715
4715
  Math.max(z, 0),
4716
- I.value
4716
+ H.value
4717
4717
  );
4718
4718
  c.value = j, o.value = j;
4719
- }, _ = () => V(c.value + y.value), R = () => V(c.value - y.value), w = (z) => {
4719
+ }, _ = () => V(c.value + g.value), R = () => V(c.value - g.value), w = (z) => {
4720
4720
  z.key === "ArrowRight" ? _() : z.key === "ArrowLeft" && R();
4721
- }, x = (z) => (k.value.includes(z) || k.value.push(z), k.value.indexOf(z)), E = (z) => k.value = k.value.filter((j) => j !== z), G = H(() => k.value.length), Q = () => {
4721
+ }, x = (z) => (b.value.includes(z) || b.value.push(z), b.value.indexOf(z)), E = (z) => b.value = b.value.filter((j) => j !== z), G = I(() => b.value.length), Q = () => {
4722
4722
  !t.autoplay || L !== null || (L = window.setInterval(() => {
4723
4723
  d.value || _();
4724
4724
  }, t.autoplayDelay));
@@ -4731,7 +4731,7 @@ const sl = {
4731
4731
  let ie = j[0]?.[1] ?? 1;
4732
4732
  for (const [ne, ke] of j) z >= ne && (ie = ke);
4733
4733
  return ie;
4734
- }, g = (z) => {
4734
+ }, y = (z) => {
4735
4735
  z.button === 0 && (u.value = !0, n.value = z.clientX, a.value = z.clientX, l.value = z.clientX, i.value = 0, s.value = performance.now(), r.value = 0, p.value = c.value, $.value?.setPointerCapture(z.pointerId), oe(), $.value.style.userSelect = "");
4736
4736
  }, A = (z) => {
4737
4737
  if (!u.value) return;
@@ -4740,39 +4740,39 @@ const sl = {
4740
4740
  }, X = (z) => {
4741
4741
  if (!u.value) return;
4742
4742
  u.value = !1, $.value?.releasePointerCapture(z.pointerId), $.value.style.userSelect = "";
4743
- const j = $.value.clientWidth / y.value, ie = i.value / j;
4744
- Math.abs(r.value) > hn ? r.value < 0 ? _() : R() : Math.abs(ie) > yn ? ie < 0 ? _() : R() : V(p.value), i.value = 0, r.value = 0, Q();
4743
+ const j = $.value.clientWidth / g.value, ie = i.value / j;
4744
+ Math.abs(r.value) > hn ? r.value < 0 ? _() : R() : Math.abs(ie) > gn ? ie < 0 ? _() : R() : V(p.value), i.value = 0, r.value = 0, Q();
4745
4745
  };
4746
4746
  return ae(() => {
4747
- Q(), m.value && (C = new ResizeObserver((z) => {
4747
+ Q(), C.value && (m = new ResizeObserver((z) => {
4748
4748
  const j = z[0]?.contentRect.width;
4749
- j !== void 0 && (y.value = Z(j));
4750
- }), C.observe(m.value));
4749
+ j !== void 0 && (g.value = Z(j));
4750
+ }), m.observe(C.value));
4751
4751
  }), be(() => {
4752
- oe(), C?.disconnect();
4752
+ oe(), m?.disconnect();
4753
4753
  }), Y(
4754
4754
  () => t.autoplay,
4755
4755
  (z) => {
4756
4756
  z ? Q() : oe();
4757
4757
  },
4758
4758
  { immediate: !0 }
4759
- ), Y(y, () => c.value = Math.min(c.value, I.value)), ge("CarouselContext", {
4759
+ ), Y(g, () => c.value = Math.min(c.value, H.value)), ye("CarouselContext", {
4760
4760
  register: x,
4761
4761
  unregister: E,
4762
4762
  activeIndex: c,
4763
4763
  slideCount: G,
4764
4764
  deltaX: i,
4765
- itemsPerView: t.itemsPerView instanceof Object ? y : h(t.itemsPerView)
4765
+ itemsPerView: t.itemsPerView instanceof Object ? g : h(t.itemsPerView)
4766
4766
  }), (z, j) => (v(), f("div", {
4767
4767
  ref_key: "rootRef",
4768
- ref: m,
4768
+ ref: C,
4769
4769
  role: "region",
4770
4770
  class: "carousel",
4771
4771
  "aria-roledescription": "carousel",
4772
4772
  "aria-label": e.ariaLabel,
4773
4773
  tabindex: "0",
4774
4774
  "aria-activedescendant": B.value,
4775
- style: ye({ "--items-per-view": y.value }),
4775
+ style: ge({ "--items-per-view": g.value }),
4776
4776
  onKeydown: w,
4777
4777
  onMouseenter: j[0] || (j[0] = (ie) => d.value = !0),
4778
4778
  onMouseleave: j[1] || (j[1] = (ie) => d.value = !1),
@@ -4788,8 +4788,8 @@ const sl = {
4788
4788
  ref_key: "trackRef",
4789
4789
  ref: $,
4790
4790
  class: "carousel-track",
4791
- style: ye(D.value),
4792
- onPointerdown: g,
4791
+ style: ge(D.value),
4792
+ onPointerdown: y,
4793
4793
  onPointermove: A,
4794
4794
  onPointerup: X,
4795
4795
  onPointercancel: X
@@ -4797,7 +4797,7 @@ const sl = {
4797
4797
  U(z.$slots, "default", {}, void 0, !0)
4798
4798
  ], 36)
4799
4799
  ]),
4800
- M("span", pn, " Slide " + N(Math.floor(c.value / y.value) + 1) + " of " + N(b.value), 1),
4800
+ M("span", pn, " Slide " + N(Math.floor(c.value / g.value) + 1) + " of " + N(k.value), 1),
4801
4801
  M("button", {
4802
4802
  type: "button",
4803
4803
  class: "carousel-control prev",
@@ -4815,29 +4815,29 @@ const sl = {
4815
4815
  P(ce, { name: "directionDown" })
4816
4816
  ]),
4817
4817
  e.showIndicators ? (v(), f("div", Cn, [
4818
- (v(!0), f(te, null, ue(b.value, (ie, ne) => (v(), f("button", {
4818
+ (v(!0), f(te, null, ue(k.value, (ie, ne) => (v(), f("button", {
4819
4819
  role: "tab",
4820
4820
  type: "button",
4821
4821
  key: ne,
4822
- class: re(["indicator", { active: ne === Math.floor(c.value / y.value) }]),
4822
+ class: re(["indicator", { active: ne === Math.floor(c.value / g.value) }]),
4823
4823
  "aria-label": `Go to slide ${ne + 1}`,
4824
4824
  "aria-selected": ne === O.value,
4825
4825
  "aria-current": ne === O.value,
4826
- onClick: (ke) => V(ne * y.value),
4826
+ onClick: (ke) => V(ne * g.value),
4827
4827
  onKeydown: [
4828
- ve(le((ke) => V((ne - 1 + b.value) % b.value * y.value), ["prevent"]), ["left"]),
4829
- ve(le((ke) => V((ne + 1) % b.value * y.value), ["prevent"]), ["right"])
4828
+ ve(le((ke) => V((ne - 1 + k.value) % k.value * g.value), ["prevent"]), ["left"]),
4829
+ ve(le((ke) => V((ne + 1) % k.value * g.value), ["prevent"]), ["right"])
4830
4830
  ]
4831
4831
  }, null, 42, mn))), 128))
4832
4832
  ])) : q("", !0)
4833
4833
  ], 44, vn));
4834
4834
  }
4835
- }), ml = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-30cdfc00"]]), bn = ["aria-hidden", "aria-label"], kn = /* @__PURE__ */ T({
4835
+ }), ml = /* @__PURE__ */ K(yn, [["__scopeId", "data-v-30cdfc00"]]), bn = ["aria-hidden", "aria-label"], kn = /* @__PURE__ */ T({
4836
4836
  __name: "CarouselItem",
4837
4837
  setup(e) {
4838
4838
  const o = se("CarouselContext");
4839
4839
  if (!o) throw new Error("CarouselItem must be used inside a Carousel");
4840
- const t = "carousel-item-" + de(), a = h(0), n = H(() => Math.abs(o.deltaX.value) > 5), i = H(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
4840
+ const t = "carousel-item-" + de(), a = h(0), n = I(() => Math.abs(o.deltaX.value) > 5), i = I(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
4841
4841
  return ae(() => a.value = o.register(t)), be(() => o.unregister(t)), (s, r) => (v(), f("div", {
4842
4842
  role: "group",
4843
4843
  class: "carousel-item",
@@ -4850,7 +4850,7 @@ const sl = {
4850
4850
  U(s.$slots, "default", {}, void 0, !0)
4851
4851
  ], 40, bn));
4852
4852
  }
4853
- }), hl = /* @__PURE__ */ K(kn, [["__scopeId", "data-v-a569d055"]]), De = /* @__PURE__ */ Symbol("TabsContext"), yl = T({
4853
+ }), hl = /* @__PURE__ */ K(kn, [["__scopeId", "data-v-a569d055"]]), De = /* @__PURE__ */ Symbol("TabsContext"), gl = T({
4854
4854
  name: "Tabs",
4855
4855
  props: {
4856
4856
  modelValue: String,
@@ -4879,33 +4879,33 @@ const sl = {
4879
4879
  ), Y(i, (c) => {
4880
4880
  !a.value && c.length && (a.value = c[0]);
4881
4881
  });
4882
- const l = (c, m) => i.value[m] = c, d = (c) => {
4883
- const m = i.value.filter(Boolean);
4884
- if (!m.length) return;
4882
+ const l = (c, C) => i.value[C] = c, d = (c) => {
4883
+ const C = i.value.filter(Boolean);
4884
+ if (!C.length) return;
4885
4885
  const $ = a.value;
4886
4886
  if (!$) {
4887
4887
  a.value = c, o("update:modelValue", c);
4888
4888
  return;
4889
4889
  }
4890
- const L = m.indexOf($), C = m.indexOf(c);
4891
- if (L === -1 || C === -1) {
4890
+ const L = C.indexOf($), m = C.indexOf(c);
4891
+ if (L === -1 || m === -1) {
4892
4892
  a.value = c, o("update:modelValue", c);
4893
4893
  return;
4894
4894
  }
4895
- L !== -1 && C !== -1 && (s.value = C > L ? "forward" : "backward"), $ !== c && (a.value = c, o("update:modelValue", c));
4896
- }, u = H(() => s.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), p = (c) => {
4895
+ L !== -1 && m !== -1 && (s.value = m > L ? "forward" : "backward"), $ !== c && (a.value = c, o("update:modelValue", c));
4896
+ }, u = I(() => s.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), p = (c) => {
4897
4897
  c instanceof HTMLElement && r.value && (r.value.style.height = `${c.offsetHeight}px`);
4898
- }, k = (c) => {
4898
+ }, b = (c) => {
4899
4899
  if (c instanceof HTMLElement && r.value) {
4900
- const m = c.offsetHeight;
4900
+ const C = c.offsetHeight;
4901
4901
  requestAnimationFrame(() => {
4902
- r.value && (r.value.style.height = `${m}px`);
4902
+ r.value && (r.value.style.height = `${C}px`);
4903
4903
  });
4904
4904
  }
4905
- }, y = () => {
4905
+ }, g = () => {
4906
4906
  r.value && (r.value.style.height = "");
4907
4907
  };
4908
- return ge(De, {
4908
+ return ye(De, {
4909
4909
  activeValue: a,
4910
4910
  setValue: d,
4911
4911
  registerTrigger: l,
@@ -4916,13 +4916,13 @@ const sl = {
4916
4916
  contentWrapperRef: r,
4917
4917
  focusOnChange: n
4918
4918
  }), () => {
4919
- const c = t.default?.() || [], m = [], $ = [];
4920
- c.forEach((C) => {
4921
- C.type?.name === "TabsContent" ? $.push(C) : m.push(C);
4919
+ const c = t.default?.() || [], C = [], $ = [];
4920
+ c.forEach((m) => {
4921
+ m.type?.name === "TabsContent" ? $.push(m) : C.push(m);
4922
4922
  });
4923
- const L = $.find((C) => C.props?.value === a.value);
4923
+ const L = $.find((m) => m.props?.value === a.value);
4924
4924
  return [
4925
- ...m,
4925
+ ...C,
4926
4926
  F(
4927
4927
  "div",
4928
4928
  {
@@ -4935,8 +4935,8 @@ const sl = {
4935
4935
  name: u.value,
4936
4936
  mode: "out-in",
4937
4937
  onBeforeLeave: p,
4938
- onEnter: k,
4939
- onAfterEnter: y
4938
+ onEnter: b,
4939
+ onAfterEnter: g
4940
4940
  },
4941
4941
  () => L ? [F(L.type, {
4942
4942
  ...L.props,
@@ -4947,7 +4947,7 @@ const sl = {
4947
4947
  ];
4948
4948
  };
4949
4949
  }
4950
- }), gl = T({
4950
+ }), yl = T({
4951
4951
  name: "TabsList",
4952
4952
  setup(e, { slots: o }) {
4953
4953
  const t = se(De);
@@ -4981,7 +4981,7 @@ const sl = {
4981
4981
  setup(e, { slots: o }) {
4982
4982
  const t = se(De);
4983
4983
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
4984
- const a = H(() => t.activeValue.value === e.value), n = () => !e.disabled && t.setValue(e.value), i = (s) => {
4984
+ const a = I(() => t.activeValue.value === e.value), n = () => !e.disabled && t.setValue(e.value), i = (s) => {
4985
4985
  if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(s.key)) return;
4986
4986
  s.preventDefault();
4987
4987
  const l = t.triggers.value.filter(Boolean);
@@ -5008,9 +5008,9 @@ const sl = {
5008
5008
  break;
5009
5009
  }
5010
5010
  u = (u + l.length) % l.length;
5011
- const k = l[u];
5012
- t.activationMode.value === "auto" && t.setValue(k), requestAnimationFrame(() => {
5013
- document.getElementById(`tab-${k}`)?.focus();
5011
+ const b = l[u];
5012
+ t.activationMode.value === "auto" && t.setValue(b), requestAnimationFrame(() => {
5013
+ document.getElementById(`tab-${b}`)?.focus();
5014
5014
  });
5015
5015
  };
5016
5016
  return ae(() => !e.disabled && t.registerTrigger(e.value, e.index)), be(() => t.triggers.value[e.index] = void 0), () => F(
@@ -5058,41 +5058,41 @@ const sl = {
5058
5058
  let o = 0;
5059
5059
  const t = h(!1), a = h(null), n = h({}), i = `dropdown-${de()}`, s = `${i}-menu`, r = `${i}-trigger`, l = () => t.value = !0, d = () => {
5060
5060
  t.value = !1, n.value = {}, o = 0, a.value?.focus({ preventScroll: !0 });
5061
- }, u = () => t.value = !t.value, p = (C) => {
5061
+ }, u = () => t.value = !t.value, p = (m) => {
5062
5062
  const B = `dropdown-item-${o++}`;
5063
- return n.value[B] = C, B;
5064
- }, k = (C) => {
5065
- const B = n.value[C];
5066
- B && B.focus();
5067
- }, y = () => {
5068
- const C = Object.keys(n.value)[0];
5069
- C && k(C);
5063
+ return n.value[B] = m, B;
5064
+ }, b = (m) => {
5065
+ const B = n.value[m];
5066
+ B && B.focus({ preventScroll: !0 });
5067
+ }, g = () => {
5068
+ const m = Object.keys(n.value)[0];
5069
+ m && b(m);
5070
5070
  }, c = () => {
5071
- const C = Object.keys(n.value), B = C[C.length - 1];
5072
- B && k(B);
5073
- }, m = (C) => {
5074
- const B = Object.keys(n.value), O = L(C), b = B[O + 1];
5075
- O >= 0 && O < B.length - 1 && b && k(b);
5076
- }, $ = (C) => {
5077
- const B = Object.keys(n.value), O = L(C), b = B[O - 1];
5078
- O > 0 && b && k(b);
5079
- }, L = (C) => Object.keys(n.value).indexOf(C);
5080
- return ge("DropdownContext", {
5071
+ const m = Object.keys(n.value), B = m[m.length - 1];
5072
+ B && b(B);
5073
+ }, C = (m) => {
5074
+ const B = Object.keys(n.value), O = L(m), k = B[O + 1];
5075
+ O >= 0 && O < B.length - 1 && k && b(k);
5076
+ }, $ = (m) => {
5077
+ const B = Object.keys(n.value), O = L(m), k = B[O - 1];
5078
+ O > 0 && k && b(k);
5079
+ }, L = (m) => Object.keys(n.value).indexOf(m);
5080
+ return ye("DropdownContext", {
5081
5081
  open: l,
5082
5082
  close: d,
5083
5083
  toggle: u,
5084
5084
  isOpen: t,
5085
5085
  registerItem: p,
5086
- focusItem: k,
5087
- focusNextItem: m,
5086
+ focusItem: b,
5087
+ focusNextItem: C,
5088
5088
  focusPrevItem: $,
5089
- focusFirstItem: y,
5089
+ focusFirstItem: g,
5090
5090
  focusLastItem: c,
5091
5091
  triggerRef: a,
5092
5092
  menuId: s,
5093
5093
  triggerId: r
5094
- }), (C, B) => (v(), f("div", wn, [
5095
- U(C.$slots, "default")
5094
+ }), (m, B) => (v(), f("div", wn, [
5095
+ U(m.$slots, "default")
5096
5096
  ]));
5097
5097
  }
5098
5098
  }), Mn = /* @__PURE__ */ T({
@@ -5138,12 +5138,20 @@ const sl = {
5138
5138
  }, i = (r) => r.key === "Escape" && o.close(), s = () => {
5139
5139
  const r = o.triggerRef.value, l = t.value;
5140
5140
  if (!r || !l) return;
5141
- const d = 8, u = r.getBoundingClientRect(), p = l.getBoundingClientRect();
5142
- let k = u.bottom, y = u.left;
5143
- y = Math.min(Math.max(d, y), window.innerWidth - p.width - d), a.value = {
5141
+ const d = 16, u = r.getBoundingClientRect(), p = l.getBoundingClientRect();
5142
+ let b = u.bottom, g = u.left;
5143
+ g = Math.min(
5144
+ Math.max(d, g),
5145
+ window.innerWidth - p.width - d
5146
+ );
5147
+ const c = window.innerHeight - u.bottom, C = u.top;
5148
+ c < p.height && C > p.height && (b = u.top - p.height), b = Math.min(
5149
+ Math.max(d, b),
5150
+ window.innerHeight - p.height - d
5151
+ ), a.value = {
5144
5152
  "--dropdown-menu-position": "fixed",
5145
- "--dropdown-menu-top": `${k}px`,
5146
- "--dropdown-menu-left": `${y}px`
5153
+ "--dropdown-menu-top": `${b}px`,
5154
+ "--dropdown-menu-left": `${g}px`
5147
5155
  };
5148
5156
  };
5149
5157
  return Y(
@@ -5157,13 +5165,13 @@ const sl = {
5157
5165
  window.addEventListener("scroll", s, !0), window.addEventListener("resize", s);
5158
5166
  }), be(() => {
5159
5167
  window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s);
5160
- }), (r, l) => (v(), J(He, { to: "body" }, [
5168
+ }), (r, l) => (v(), J(Ie, { to: "body" }, [
5161
5169
  S(o).isOpen.value ? (v(), f("div", {
5162
5170
  key: 0,
5163
5171
  role: "menu",
5164
5172
  ref_key: "menuRef",
5165
5173
  ref: t,
5166
- style: ye(a.value),
5174
+ style: ge(a.value),
5167
5175
  id: S(o).menuId,
5168
5176
  "aria-orientation": "vertical",
5169
5177
  "aria-labelledby": S(o).triggerId,
@@ -5174,7 +5182,7 @@ const sl = {
5174
5182
  ], 44, Ln)) : q("", !0)
5175
5183
  ]));
5176
5184
  }
5177
- }), Ll = /* @__PURE__ */ K(xn, [["__scopeId", "data-v-851556e4"]]), $n = /* @__PURE__ */ T({
5185
+ }), Ll = /* @__PURE__ */ K(xn, [["__scopeId", "data-v-acff21c3"]]), $n = /* @__PURE__ */ T({
5178
5186
  __name: "DropdownItem",
5179
5187
  setup(e) {
5180
5188
  const o = se("DropdownContext");
@@ -5198,20 +5206,20 @@ const sl = {
5198
5206
  ], 544));
5199
5207
  }
5200
5208
  }), xl = /* @__PURE__ */ K($n, [["__scopeId", "data-v-69de3d9c"]]), Vn = (e) => {
5201
- const o = /* @__PURE__ */ new Date(), t = e.locale || "default", a = h(e.modelValue ?? null), n = h(e.modelValue ? new Date(e.modelValue) : o), i = e.firstDayOfWeek ?? 0, s = H(() => {
5202
- const k = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(n.value);
5203
- return k.charAt(0).toUpperCase() + k.slice(1);
5204
- }), r = H(() => {
5205
- const k = new Date(2021, 5, 6);
5206
- return Array.from({ length: 7 }).map((y, c) => {
5207
- const m = new Date(k);
5208
- return m.setDate(k.getDate() + (c + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(m).replace(".", "");
5209
+ const o = /* @__PURE__ */ new Date(), t = e.locale || "default", a = h(e.modelValue ?? null), n = h(e.modelValue ? new Date(e.modelValue) : o), i = e.firstDayOfWeek ?? 0, s = I(() => {
5210
+ const b = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(n.value);
5211
+ return b.charAt(0).toUpperCase() + b.slice(1);
5212
+ }), r = I(() => {
5213
+ const b = new Date(2021, 5, 6);
5214
+ return Array.from({ length: 7 }).map((g, c) => {
5215
+ const C = new Date(b);
5216
+ return C.setDate(b.getDate() + (c + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(C).replace(".", "");
5209
5217
  });
5210
- }), l = H(() => {
5211
- const k = n.value.getFullYear(), y = n.value.getMonth(), c = new Date(k, y, 1), m = new Date(k, y + 1, 0), $ = (c.getDay() - i + 7) % 7, L = m.getDate(), C = [];
5212
- for (let B = 0; B < $; B++) C.push(null);
5213
- for (let B = 1; B <= L; B++) C.push(new Date(k, y, B));
5214
- return C;
5218
+ }), l = I(() => {
5219
+ const b = n.value.getFullYear(), g = n.value.getMonth(), c = new Date(b, g, 1), C = new Date(b, g + 1, 0), $ = (c.getDay() - i + 7) % 7, L = C.getDate(), m = [];
5220
+ for (let B = 0; B < $; B++) m.push(null);
5221
+ for (let B = 1; B <= L; B++) m.push(new Date(b, g, B));
5222
+ return m;
5215
5223
  });
5216
5224
  return {
5217
5225
  today: o,
@@ -5222,7 +5230,7 @@ const sl = {
5222
5230
  days: l,
5223
5231
  nextMonth: () => n.value = new Date(n.value.getFullYear(), n.value.getMonth() + 1, 1),
5224
5232
  prevMonth: () => n.value = new Date(n.value.getFullYear(), n.value.getMonth() - 1, 1),
5225
- select: (k) => a.value = k
5233
+ select: (b) => a.value = b
5226
5234
  };
5227
5235
  }, m1 = /(DD|MM|YYYY|HH|mm|ss)/g, Ee = (e, o) => {
5228
5236
  const t = {
@@ -5238,16 +5246,16 @@ const sl = {
5238
5246
  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}$`), n = e.match(a);
5239
5247
  if (!n?.groups) return null;
5240
5248
  const i = Number(n.groups.day ?? 1), s = Number(n.groups.month ?? 1), r = Number(n.groups.year ?? 1970), l = Number(n.groups.hour ?? 0), d = Number(n.groups.minute ?? 0), u = Number(n.groups.second ?? 0);
5241
- return In(i, s, r) ? new Date(r, s - 1, i, l, d, u, 0) : null;
5249
+ return Hn(i, s, r) ? new Date(r, s - 1, i, l, d, u, 0) : null;
5242
5250
  };
5243
- function In(e, o, t, a = 1900, n = 2100) {
5251
+ function Hn(e, o, t, a = 1900, n = 2100) {
5244
5252
  if (!Number.isInteger(e) || !Number.isInteger(o) || !Number.isInteger(t) || o < 1 || o > 12 || t < a || t > n) return !1;
5245
5253
  const i = new Date(t, o, 0).getDate();
5246
5254
  if (e < 1 || e > i) return !1;
5247
5255
  const s = new Date(t, o - 1, e);
5248
5256
  return s.getFullYear() === t && s.getMonth() === o - 1 && s.getDate() === e;
5249
5257
  }
5250
- const Hn = (e, o) => {
5258
+ const In = (e, o) => {
5251
5259
  const t = e.replace(/\D/g, ""), a = o.match(m1);
5252
5260
  if (!a) return e;
5253
5261
  let n = "", i = 0;
@@ -5290,10 +5298,10 @@ const Hn = (e, o) => {
5290
5298
  monthLabel: d,
5291
5299
  weekDays: u,
5292
5300
  currentMonth: p,
5293
- days: k,
5294
- nextMonth: y,
5301
+ days: b,
5302
+ nextMonth: g,
5295
5303
  prevMonth: c,
5296
- select: m
5304
+ select: C
5297
5305
  } = Vn({
5298
5306
  modelValue: t.value,
5299
5307
  locale: n.locale,
@@ -5306,7 +5314,7 @@ const Hn = (e, o) => {
5306
5314
  s.value = "", l.value = null;
5307
5315
  return;
5308
5316
  }
5309
- m(V), p.value = new Date(V), l.value = V, s.value = Ee(V, n.format);
5317
+ C(V), p.value = new Date(V), l.value = V, s.value = Ee(V, n.format);
5310
5318
  },
5311
5319
  { immediate: !0 }
5312
5320
  ), Y(
@@ -5319,20 +5327,20 @@ const Hn = (e, o) => {
5319
5327
  const R = /* @__PURE__ */ new Date();
5320
5328
  _ = Array.from(r.value?.querySelectorAll("button") || []).find((w) => Number(w.textContent) === R.getDate() && !w.disabled);
5321
5329
  }
5322
- _ && _.focus(), document.addEventListener("keydown", C);
5323
- } else document.removeEventListener("keydown", C);
5330
+ _ && _.focus(), document.addEventListener("keydown", m);
5331
+ } else document.removeEventListener("keydown", m);
5324
5332
  }
5325
5333
  );
5326
5334
  const $ = (V) => {
5327
- l.value = V, t.value = V, s.value = Ee(V, n.format), m(V), i.value = !1;
5328
- }, L = (V) => !V || !l.value ? "" : V.toDateString() === l.value.toDateString() ? "dp-selected" : "", C = (V) => V.key === "Escape" && (i.value = !1), B = (V) => {
5335
+ l.value = V, t.value = V, s.value = Ee(V, n.format), C(V), i.value = !1;
5336
+ }, L = (V) => !V || !l.value ? "" : V.toDateString() === l.value.toDateString() ? "dp-selected" : "", m = (V) => V.key === "Escape" && (i.value = !1), B = (V) => {
5329
5337
  V.key === "Backspace" || V.key === "Delete" || V.key === "ArrowLeft" || V.key === "ArrowRight" || V.key === "Tab" || /[0-9]/.test(V.key) || V.preventDefault();
5330
5338
  }, O = (V) => {
5331
5339
  const _ = V.target, R = _.selectionStart ?? 0, x = _.value.slice(0, R).replace(/\D/g, "").length;
5332
5340
  let E = _.value.replace(/\D/g, "");
5333
5341
  const G = Bn(n.format);
5334
5342
  E = E.slice(0, G);
5335
- const Q = Hn(E, n.format);
5343
+ const Q = In(E, n.format);
5336
5344
  s.value = Q, _.value = Q;
5337
5345
  let oe = 0, Z = 0;
5338
5346
  for (let A = 0; A < Q.length; A++)
@@ -5341,17 +5349,17 @@ const Hn = (e, o) => {
5341
5349
  break;
5342
5350
  }
5343
5351
  requestAnimationFrame(() => _.setSelectionRange(oe, oe));
5344
- const g = l1(Q, n.format);
5345
- g && (l.value = g, t.value = g);
5346
- }, b = () => {
5352
+ const y = l1(Q, n.format);
5353
+ y && (l.value = y, t.value = y);
5354
+ }, k = () => {
5347
5355
  i.value || (i.value = !0, a("update:open", !0));
5348
- }, I = (V) => {
5356
+ }, H = (V) => {
5349
5357
  r.value && (r.value.contains(V.target) || (i.value = !1, a("update:open", !1)));
5350
5358
  }, D = () => {
5351
5359
  const V = l1(s.value, n.format);
5352
5360
  !V && !l.value ? (s.value = "", t.value = null, l.value = null) : V && (l.value = V, t.value = V, s.value = Ee(V, n.format));
5353
5361
  };
5354
- return ae(() => document.addEventListener("mousedown", I)), Ie(() => document.removeEventListener("mousedown", I)), (V, _) => (v(), f("div", {
5362
+ return ae(() => document.addEventListener("mousedown", H)), He(() => document.removeEventListener("mousedown", H)), (V, _) => (v(), f("div", {
5355
5363
  ref_key: "root",
5356
5364
  ref: r,
5357
5365
  class: re(["dp", { required: Object.keys(V.$attrs).includes("required") }])
@@ -5367,7 +5375,7 @@ const Hn = (e, o) => {
5367
5375
  onBlur: D,
5368
5376
  onInput: O,
5369
5377
  onKeydown: B,
5370
- onMousedown: b,
5378
+ onMousedown: k,
5371
5379
  required: Object.keys(V.$attrs).includes("required") || void 0,
5372
5380
  "aria-invalid": !l.value && s.value !== "",
5373
5381
  disabled: e.disabled ? !0 : void 0,
@@ -5380,7 +5388,7 @@ const Hn = (e, o) => {
5380
5388
  P(he, {
5381
5389
  type: "button",
5382
5390
  class: "btn-icon",
5383
- onClick: b,
5391
+ onClick: k,
5384
5392
  disabled: e.disabled || void 0
5385
5393
  }, {
5386
5394
  default: W(() => [
@@ -5403,7 +5411,7 @@ const Hn = (e, o) => {
5403
5411
  M("span", Sn, N(S(d)), 1),
5404
5412
  M("button", {
5405
5413
  onClick: _[1] || (_[1] = //@ts-ignore
5406
- (...R) => S(y) && S(y)(...R)),
5414
+ (...R) => S(g) && S(g)(...R)),
5407
5415
  class: "btn__next_month",
5408
5416
  "aria-label": "Next month"
5409
5417
  }, "›")
@@ -5415,7 +5423,7 @@ const Hn = (e, o) => {
5415
5423
  }, N(R), 1))), 128))
5416
5424
  ]),
5417
5425
  M("div", Zn, [
5418
- (v(!0), f(te, null, ue(S(k), (R, w) => (v(), f("button", {
5426
+ (v(!0), f(te, null, ue(S(b), (R, w) => (v(), f("button", {
5419
5427
  key: w,
5420
5428
  type: "button",
5421
5429
  role: "gridcell",
@@ -5464,51 +5472,51 @@ const Hn = (e, o) => {
5464
5472
  }),
5465
5473
  emits: ["update:modelValue"],
5466
5474
  setup(e) {
5467
- const o = fe(e, "modelValue"), t = e, a = de(), n = h(!1), i = h(null), s = H(() => t.format.includes("HH")), r = H(() => t.format.includes("mm")), l = H(() => t.format.includes("ss")), d = h(o.value ?? null), u = h(o.value?.getHours() ?? (s.value ? 0 : void 0)), p = h(o.value?.getMinutes() ?? (r.value ? 0 : void 0)), k = h(o.value?.getSeconds() ?? (l.value ? 0 : void 0));
5475
+ const o = fe(e, "modelValue"), t = e, a = de(), n = h(!1), i = h(null), s = I(() => t.format.includes("HH")), r = I(() => t.format.includes("mm")), l = I(() => t.format.includes("ss")), d = h(o.value ?? null), u = h(o.value?.getHours() ?? (s.value ? 0 : void 0)), p = h(o.value?.getMinutes() ?? (r.value ? 0 : void 0)), b = h(o.value?.getSeconds() ?? (l.value ? 0 : void 0));
5468
5476
  Y(o, (L) => {
5469
5477
  if (L) {
5470
- const C = new Date(L);
5471
- d.value = C, u.value = C.getHours(), p.value = C.getMinutes(), k.value = C.getSeconds();
5478
+ const m = new Date(L);
5479
+ d.value = m, u.value = m.getHours(), p.value = m.getMinutes(), b.value = m.getSeconds();
5472
5480
  } else
5473
- d.value = null, u.value = 0, p.value = 0, k.value = 0;
5481
+ d.value = null, u.value = 0, p.value = 0, b.value = 0;
5474
5482
  }, { immediate: !0 }), Y(d, (L) => {
5475
5483
  if (!L) return;
5476
- const C = L.getHours(), B = L.getMinutes(), O = L.getSeconds();
5477
- C !== u.value && (u.value = C), B !== p.value && (p.value = B), O !== k.value && (k.value = O);
5478
- }, { immediate: !0 }), Y([d, u, p, k], () => {
5484
+ const m = L.getHours(), B = L.getMinutes(), O = L.getSeconds();
5485
+ m !== u.value && (u.value = m), B !== p.value && (p.value = B), O !== b.value && (b.value = O);
5486
+ }, { immediate: !0 }), Y([d, u, p, b], () => {
5479
5487
  if (!d.value) {
5480
5488
  o.value = null;
5481
5489
  return;
5482
5490
  }
5483
- const L = Math.min(Math.max(u.value ?? 0, 0), 23), C = Math.min(Math.max(p.value ?? 0, 0), 59), B = Math.min(Math.max(k.value ?? 0, 0), 59), O = new Date(d.value);
5484
- O.setHours(L, C, B, 0), (!o.value || o.value.getTime() !== O.getTime()) && (o.value = O);
5491
+ const L = Math.min(Math.max(u.value ?? 0, 0), 23), m = Math.min(Math.max(p.value ?? 0, 0), 59), B = Math.min(Math.max(b.value ?? 0, 0), 59), O = new Date(d.value);
5492
+ O.setHours(L, m, B, 0), (!o.value || o.value.getTime() !== O.getTime()) && (o.value = O);
5485
5493
  });
5486
- const y = (L) => {
5494
+ const g = (L) => {
5487
5495
  i.value && (i.value.contains(L.target) || (n.value = !1));
5488
5496
  }, c = (L) => {
5489
- const C = Number(L.target.value);
5490
- isNaN(C) || C < 0 ? u.value = 0 : C > 23 ? u.value = 23 : u.value = C;
5491
- }, m = (L) => {
5492
- const C = Number(L.target.value);
5493
- isNaN(C) || C < 0 ? p.value = 0 : C > 59 ? p.value = 59 : p.value = C;
5497
+ const m = Number(L.target.value);
5498
+ isNaN(m) || m < 0 ? u.value = 0 : m > 23 ? u.value = 23 : u.value = m;
5499
+ }, C = (L) => {
5500
+ const m = Number(L.target.value);
5501
+ isNaN(m) || m < 0 ? p.value = 0 : m > 59 ? p.value = 59 : p.value = m;
5494
5502
  }, $ = (L) => {
5495
- const C = Number(L.target.value);
5496
- isNaN(C) || C < 0 ? k.value = 0 : C > 59 ? k.value = 59 : k.value = C;
5503
+ const m = Number(L.target.value);
5504
+ isNaN(m) || m < 0 ? b.value = 0 : m > 59 ? b.value = 59 : b.value = m;
5497
5505
  };
5498
5506
  return ae(() => {
5499
- document.addEventListener("mousedown", y);
5500
- }), Ie(() => {
5501
- document.removeEventListener("mousedown", y);
5502
- }), (L, C) => (v(), f("div", {
5507
+ document.addEventListener("mousedown", g);
5508
+ }), He(() => {
5509
+ document.removeEventListener("mousedown", g);
5510
+ }), (L, m) => (v(), f("div", {
5503
5511
  class: "dtp",
5504
5512
  ref_key: "root",
5505
5513
  ref: i
5506
5514
  }, [
5507
5515
  P(On, {
5508
5516
  modelValue: d.value,
5509
- "onUpdate:modelValue": C[3] || (C[3] = (B) => d.value = B),
5517
+ "onUpdate:modelValue": m[3] || (m[3] = (B) => d.value = B),
5510
5518
  open: n.value,
5511
- "onUpdate:open": C[4] || (C[4] = (B) => n.value = B),
5519
+ "onUpdate:open": m[4] || (m[4] = (B) => n.value = B),
5512
5520
  locale: e.locale,
5513
5521
  format: e.format,
5514
5522
  label: e.label,
@@ -5521,7 +5529,7 @@ const Hn = (e, o) => {
5521
5529
  key: 0,
5522
5530
  id: `hour_${S(a)}`,
5523
5531
  type: "number",
5524
- "onUpdate:modelValue": C[0] || (C[0] = (B) => u.value = B),
5532
+ "onUpdate:modelValue": m[0] || (m[0] = (B) => u.value = B),
5525
5533
  min: "0",
5526
5534
  max: "23",
5527
5535
  "aria-label": "Hour",
@@ -5542,14 +5550,14 @@ const Hn = (e, o) => {
5542
5550
  key: 2,
5543
5551
  id: `minute_${S(a)}`,
5544
5552
  type: "number",
5545
- "onUpdate:modelValue": C[1] || (C[1] = (B) => p.value = B),
5553
+ "onUpdate:modelValue": m[1] || (m[1] = (B) => p.value = B),
5546
5554
  min: "0",
5547
5555
  max: "59",
5548
5556
  "aria-label": "Minute",
5549
5557
  "aria-valuemin": "0",
5550
5558
  "aria-valuemax": "59",
5551
5559
  "aria-valuenow": p.value,
5552
- onInput: m
5560
+ onInput: C
5553
5561
  }, null, 40, Pn)), [
5554
5562
  [
5555
5563
  Ae,
@@ -5563,18 +5571,18 @@ const Hn = (e, o) => {
5563
5571
  key: 4,
5564
5572
  id: `second_${S(a)}`,
5565
5573
  type: "number",
5566
- "onUpdate:modelValue": C[2] || (C[2] = (B) => k.value = B),
5574
+ "onUpdate:modelValue": m[2] || (m[2] = (B) => b.value = B),
5567
5575
  min: "0",
5568
5576
  max: "59",
5569
5577
  "aria-label": "Second",
5570
5578
  "aria-valuemin": "0",
5571
5579
  "aria-valuemax": "59",
5572
- "aria-valuenow": k.value,
5580
+ "aria-valuenow": b.value,
5573
5581
  onInput: $
5574
5582
  }, null, 40, Un)), [
5575
5583
  [
5576
5584
  Ae,
5577
- k.value,
5585
+ b.value,
5578
5586
  void 0,
5579
5587
  { number: !0 }
5580
5588
  ]
@@ -5789,7 +5797,7 @@ const Hn = (e, o) => {
5789
5797
  );
5790
5798
  };
5791
5799
  }
5792
- }), Re = /* @__PURE__ */ Symbol("AccordionContext"), Il = T({
5800
+ }), Re = /* @__PURE__ */ Symbol("AccordionContext"), Hl = T({
5793
5801
  name: "Accordion",
5794
5802
  props: {
5795
5803
  multiple: { type: Boolean, default: !1 },
@@ -5806,18 +5814,18 @@ const Hn = (e, o) => {
5806
5814
  }
5807
5815
  e.multiple || a.value.clear(), a.value.add(p);
5808
5816
  }, i = (p) => {
5809
- p.disabled || t.value.includes(p) || (t.value.push(p), t.value.sort((k, y) => k.offsetTop - y.offsetTop));
5810
- }, s = (p) => t.value = t.value.filter((k) => k !== p), r = (p) => {
5811
- const k = t.value.indexOf(p);
5812
- t.value[(k + 1) % t.value.length]?.focus();
5817
+ p.disabled || t.value.includes(p) || (t.value.push(p), t.value.sort((b, g) => b.offsetTop - g.offsetTop));
5818
+ }, s = (p) => t.value = t.value.filter((b) => b !== p), r = (p) => {
5819
+ const b = t.value.indexOf(p);
5820
+ t.value[(b + 1) % t.value.length]?.focus();
5813
5821
  }, l = (p) => {
5814
- const k = t.value.indexOf(p);
5815
- t.value[(k - 1 + t.value.length) % t.value.length]?.focus();
5822
+ const b = t.value.indexOf(p);
5823
+ t.value[(b - 1 + t.value.length) % t.value.length]?.focus();
5816
5824
  }, d = () => t.value[0]?.focus(), u = () => {
5817
5825
  const p = t.value;
5818
5826
  p.length && p[p.length - 1]?.focus();
5819
5827
  };
5820
- return ge(Re, {
5828
+ return ye(Re, {
5821
5829
  multiple: e.multiple,
5822
5830
  openItems: a,
5823
5831
  toggle: n,
@@ -5829,7 +5837,7 @@ const Hn = (e, o) => {
5829
5837
  focusLast: u
5830
5838
  }), () => o.default?.();
5831
5839
  }
5832
- }), Hl = T({
5840
+ }), Il = T({
5833
5841
  name: "AccordionItem",
5834
5842
  props: {
5835
5843
  id: { type: String, required: !0 },
@@ -5838,7 +5846,7 @@ const Hn = (e, o) => {
5838
5846
  setup(e, { slots: o }) {
5839
5847
  const t = se(Re);
5840
5848
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
5841
- const a = H(() => t.openItems.value.has(e.id));
5849
+ const a = I(() => t.openItems.value.has(e.id));
5842
5850
  return () => F(
5843
5851
  "div",
5844
5852
  {
@@ -5857,7 +5865,7 @@ const Hn = (e, o) => {
5857
5865
  setup(e, { slots: o }) {
5858
5866
  const t = se(Re), a = h(null);
5859
5867
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
5860
- const n = H(() => t.openItems.value.has(e.id)), i = () => {
5868
+ const n = I(() => t.openItems.value.has(e.id)), i = () => {
5861
5869
  e.disabled || t.toggle?.(e.id);
5862
5870
  }, s = (r) => {
5863
5871
  if (a.value)
@@ -5878,7 +5886,7 @@ const Hn = (e, o) => {
5878
5886
  };
5879
5887
  return ae(() => {
5880
5888
  a.value && t.registerHeader(a.value);
5881
- }), Ie(() => {
5889
+ }), He(() => {
5882
5890
  a.value && t.unregisterHeader(a.value);
5883
5891
  }), () => F(
5884
5892
  "button",
@@ -5916,7 +5924,7 @@ const Hn = (e, o) => {
5916
5924
  setup(e, { slots: o }) {
5917
5925
  const t = se(Re);
5918
5926
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
5919
- const a = H(() => t.openItems.value.has(e.id));
5927
+ const a = I(() => t.openItems.value.has(e.id));
5920
5928
  return () => F(
5921
5929
  "div",
5922
5930
  {
@@ -5936,9 +5944,9 @@ const Hn = (e, o) => {
5936
5944
  }
5937
5945
  });
5938
5946
  export {
5939
- Il as Accordion,
5947
+ Hl as Accordion,
5940
5948
  Bl as AccordionHeader,
5941
- Hl as AccordionItem,
5949
+ Il as AccordionItem,
5942
5950
  _l as AccordionPanel,
5943
5951
  ll as Autocomplete,
5944
5952
  Jn as Avatar,
@@ -5978,9 +5986,9 @@ export {
5978
5986
  vl as Step,
5979
5987
  fl as Steps,
5980
5988
  Vl as Table,
5981
- yl as Tabs,
5989
+ gl as Tabs,
5982
5990
  kl as TabsContent,
5983
- gl as TabsList,
5991
+ yl as TabsList,
5984
5992
  bl as TabsTrigger,
5985
5993
  U2 as Tag,
5986
5994
  al as Textarea,