@reinosoft-ui/core 0.1.78 → 0.1.79

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.
@@ -16,38 +16,38 @@ const Kt = ["aria-busy"], jt = ["aria-label"], Wt = ["src", "srcset", "sizes", "
16
16
  },
17
17
  emits: ["loaded", "error"],
18
18
  setup(e, { emit: n }) {
19
- const t = e, a = n, o = M(t.src), i = M(), r = M("loading"), l = R(() => t.ratio ? {
19
+ const t = e, a = n, o = M(t.src), i = M(), s = M("loading"), l = R(() => t.ratio ? {
20
20
  aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
21
- } : void 0), s = () => {
22
- r.value = "loaded", a("loaded");
21
+ } : void 0), r = () => {
22
+ s.value = "loaded", a("loaded");
23
23
  }, c = () => {
24
24
  if (t.fallbackSrc && o.value !== t.fallbackSrc) {
25
- o.value = t.fallbackSrc, r.value = "loading";
25
+ o.value = t.fallbackSrc, s.value = "loading";
26
26
  return;
27
27
  }
28
- r.value = "error", a("error");
28
+ s.value = "error", a("error");
29
29
  };
30
30
  return J(
31
31
  () => t.src,
32
32
  (u) => {
33
- o.value = u, r.value = "loading";
33
+ o.value = u, s.value = "loading";
34
34
  }
35
- ), ve(() => i.value?.complete && i.value.naturalWidth > 0 && (r.value = "loaded")), (u, h) => (p(), k("div", {
35
+ ), ve(() => i.value?.complete && i.value.naturalWidth > 0 && (s.value = "loaded")), (u, h) => (p(), k("div", {
36
36
  class: fe(["ui-image", {
37
- "is-loading": r.value === "loading",
38
- "is-error": r.value === "error",
39
- "is-loaded": r.value === "loaded",
37
+ "is-loading": s.value === "loading",
38
+ "is-error": s.value === "error",
39
+ "is-loaded": s.value === "loaded",
40
40
  transform: e.transform
41
41
  }]),
42
42
  style: Ie(l.value),
43
- "aria-busy": r.value === "loading" || void 0
43
+ "aria-busy": s.value === "loading" || void 0
44
44
  }, [
45
- r.value === "loading" ? G(u.$slots, "placeholder", { key: 0 }, () => [
45
+ s.value === "loading" ? G(u.$slots, "placeholder", { key: 0 }, () => [
46
46
  h[0] || (h[0] = I("div", {
47
47
  class: "ui-image__placeholder",
48
48
  "aria-hidden": "true"
49
49
  }, null, -1))
50
- ], !0) : r.value === "error" ? G(u.$slots, "fallback", { key: 1 }, () => [
50
+ ], !0) : s.value === "error" ? G(u.$slots, "fallback", { key: 1 }, () => [
51
51
  I("div", {
52
52
  class: "ui-image__fallback",
53
53
  role: "img",
@@ -65,10 +65,10 @@ const Kt = ["aria-busy"], jt = ["aria-label"], Wt = ["src", "srcset", "sizes", "
65
65
  "aria-hidden": e.decorative || void 0,
66
66
  loading: e.lazy ? "lazy" : void 0,
67
67
  decoding: e.decoding,
68
- onLoad: s,
68
+ onLoad: r,
69
69
  onError: c
70
70
  }, null, 40, Wt), [
71
- [lt, r.value !== "error"]
71
+ [lt, s.value !== "error"]
72
72
  ])
73
73
  ], 14, Kt));
74
74
  }
@@ -111,12 +111,12 @@ const Gt = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], Jt
111
111
  }),
112
112
  emits: /* @__PURE__ */ se(["change"], ["update:modelValue"]),
113
113
  setup(e, { emit: n }) {
114
- const t = ke(e, "modelValue"), a = n, o = e, i = R(() => t.value), r = () => {
114
+ const t = ke(e, "modelValue"), a = n, o = e, i = R(() => t.value), s = () => {
115
115
  if (o.disabled) return;
116
116
  const l = !t.value;
117
117
  t.value = l, a("change", l);
118
118
  };
119
- return (l, s) => (p(), k("button", {
119
+ return (l, r) => (p(), k("button", {
120
120
  id: e.id,
121
121
  role: "switch",
122
122
  type: "button",
@@ -124,12 +124,12 @@ const Gt = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], Jt
124
124
  "aria-checked": i.value,
125
125
  "aria-disabled": e.disabled || void 0,
126
126
  disabled: e.disabled || void 0,
127
- onClick: r,
127
+ onClick: s,
128
128
  onKeydown: [
129
- ye(ce(r, ["prevent"]), ["space"]),
130
- ye(ce(r, ["prevent"]), ["enter"])
129
+ ye(ce(s, ["prevent"]), ["space"]),
130
+ ye(ce(s, ["prevent"]), ["enter"])
131
131
  ]
132
- }, [...s[0] || (s[0] = [
132
+ }, [...r[0] || (r[0] = [
133
133
  I("span", { class: "ui-toggle__track" }, [
134
134
  I("span", { class: "ui-toggle__thumb" })
135
135
  ], -1)
@@ -167,11 +167,11 @@ const It = (e) => {
167
167
  const a = t.getRangeAt(0), o = Ht(a.startContainer, "li");
168
168
  if (o) {
169
169
  e.preventDefault();
170
- const i = o.textContent?.trim() === "", r = o.parentElement;
171
- if (!r) return;
170
+ const i = o.textContent?.trim() === "", s = o.parentElement;
171
+ if (!s) return;
172
172
  if (i) {
173
- const s = it("p");
174
- r.after(s), o.remove(), r.children.length === 0 && r.remove(), Ne(s), n?.normalize();
173
+ const r = it("p");
174
+ s.after(r), o.remove(), s.children.length === 0 && s.remove(), Ne(r), n?.normalize();
175
175
  return;
176
176
  }
177
177
  const l = document.createElement("li");
@@ -196,16 +196,16 @@ const It = (e) => {
196
196
  V && ["UL", "OL"].includes(V.tagName) && (o = V);
197
197
  }
198
198
  if (!o) return;
199
- const i = o.tagName.toLowerCase(), l = ["p", "h1", "blockquote"].includes(i) ? i : "p", s = it(l);
199
+ const i = o.tagName.toLowerCase(), l = ["p", "h1", "blockquote"].includes(i) ? i : "p", r = it(l);
200
200
  document.createRange().selectNodeContents(o);
201
201
  const u = a.cloneRange(), h = document.createRange();
202
202
  h.selectNodeContents(o), h.setEnd(u.startContainer, u.startOffset);
203
203
  const m = h.cloneContents(), f = document.createRange();
204
204
  f.selectNodeContents(o), f.setStart(u.startContainer, u.startOffset);
205
205
  const C = f.cloneContents();
206
- o.innerHTML = "", o.appendChild(m), o.innerHTML === "" && (o.innerHTML = "<br>"), s.innerHTML = "", s.appendChild(C), s.innerHTML === "" && (s.innerHTML = "<br>"), o.after(s);
206
+ o.innerHTML = "", o.appendChild(m), o.innerHTML === "" && (o.innerHTML = "<br>"), r.innerHTML = "", r.appendChild(C), r.innerHTML === "" && (r.innerHTML = "<br>"), o.after(r);
207
207
  const L = document.createRange();
208
- L.setStart(s, 0), L.collapse(!0), t.removeAllRanges(), t.addRange(L), n?.normalize();
208
+ L.setStart(r, 0), L.collapse(!0), t.removeAllRanges(), t.addRange(L), n?.normalize();
209
209
  }, n1 = () => {
210
210
  const e = window.getSelection();
211
211
  if (!e || e.rangeCount === 0) return;
@@ -223,20 +223,20 @@ const It = (e) => {
223
223
  return;
224
224
  }
225
225
  if (!a || !(a.textContent === "" || a.innerHTML === "<br>")) return;
226
- const r = a.previousElementSibling, l = a.nextElementSibling;
227
- if (e.preventDefault(), !r && !l) {
226
+ const s = a.previousElementSibling, l = a.nextElementSibling;
227
+ if (e.preventDefault(), !s && !l) {
228
228
  a.innerHTML = "<br>", Ne(a);
229
229
  return;
230
230
  }
231
- if (r) {
232
- if (r.dataset.block !== void 0) {
233
- a.remove(), pt(r);
231
+ if (s) {
232
+ if (s.dataset.block !== void 0) {
233
+ a.remove(), pt(s);
234
234
  return;
235
235
  }
236
- if (["UL", "OL"].includes(r.tagName)) {
237
- const s = r.lastElementChild;
238
- if (s) {
239
- a.remove(), pt(s);
236
+ if (["UL", "OL"].includes(s.tagName)) {
237
+ const r = s.lastElementChild;
238
+ if (r) {
239
+ a.remove(), pt(r);
240
240
  return;
241
241
  }
242
242
  }
@@ -247,9 +247,9 @@ const It = (e) => {
247
247
  return;
248
248
  }
249
249
  if (["UL", "OL"].includes(l.tagName)) {
250
- const s = l.firstElementChild;
251
- if (s) {
252
- a.remove(), Ne(s);
250
+ const r = l.firstElementChild;
251
+ if (r) {
252
+ a.remove(), Ne(r);
253
253
  return;
254
254
  }
255
255
  }
@@ -258,9 +258,9 @@ const It = (e) => {
258
258
  const n = document.createRange(), t = window.getSelection();
259
259
  n.selectNodeContents(e), n.collapse(!1), t?.removeAllRanges(), t?.addRange(n);
260
260
  }, o1 = (e, n) => {
261
- const t = M(null), a = n?.buttons ?? [], o = n?.uploadImage, i = n?.minImageResolution, r = n?.onImageResolutionError;
261
+ const t = M(null), a = n?.buttons ?? [], o = n?.uploadImage, i = n?.minImageResolution, s = n?.onImageResolutionError;
262
262
  let l = M(null);
263
- const s = () => {
263
+ const r = () => {
264
264
  const v = e;
265
265
  if (!v) return;
266
266
  const d = window.getSelection();
@@ -289,7 +289,7 @@ const It = (e) => {
289
289
  const ee = document.createRange();
290
290
  ee.setStart(ue[0], 0);
291
291
  const te = ue[ue.length - 1];
292
- ee.setEnd(te, te.textContent.length), d.removeAllRanges(), d.addRange(ee), s();
292
+ ee.setEnd(te, te.textContent.length), d.removeAllRanges(), d.addRange(ee), r();
293
293
  }
294
294
  return C(), L(v);
295
295
  }, u = (v, d) => {
@@ -418,11 +418,11 @@ const It = (e) => {
418
418
  );
419
419
  let xe = 0, Oe = null, Ke = 0, Ae = null, Ee = 0;
420
420
  for (; me.nextNode(); ) {
421
- const Se = me.currentNode, Je = Se.textContent?.length ?? 0;
422
- !Oe && xe + Je >= ue && (Oe = Se, Ke = ue - xe), !Ae && xe + Je >= te && (Ae = Se, Ee = te - xe), xe += Je;
421
+ const Se = me.currentNode, Qe = Se.textContent?.length ?? 0;
422
+ !Oe && xe + Qe >= ue && (Oe = Se, Ke = ue - xe), !Ae && xe + Qe >= te && (Ae = Se, Ee = te - xe), xe += Qe;
423
423
  }
424
424
  const Re = document.createRange();
425
- Oe ? Re.setStart(Oe, Ke) : Re.setStart(le, 0), !ne && Ae ? Re.setEnd(Ae, Ee) : Re.collapse(!0), d.removeAllRanges(), d.addRange(Re), s(), C();
425
+ Oe ? Re.setStart(Oe, Ke) : Re.setStart(le, 0), !ne && Ae ? Re.setEnd(Ae, Ee) : Re.collapse(!0), d.removeAllRanges(), d.addRange(Re), r(), C();
426
426
  }, U = (v) => {
427
427
  const d = e.parentElement?.querySelector("#editor-status");
428
428
  d && (d.textContent = v, setTimeout(() => d.textContent = "", 2e3));
@@ -585,7 +585,7 @@ const It = (e) => {
585
585
  }
586
586
  if (X) {
587
587
  if (!await w(y)) {
588
- r?.(i);
588
+ s?.(i);
589
589
  return;
590
590
  }
591
591
  re(y);
@@ -607,7 +607,7 @@ const It = (e) => {
607
607
  const d = window.getSelection();
608
608
  if (!d || d.rangeCount === 0 || d.isCollapsed) return;
609
609
  const y = d.getRangeAt(0), H = document.createElement("a");
610
- H.href = v, H.target = "_blank", H.rel = "noopener noreferrer", H.append(y.extractContents()), y.insertNode(H), y.selectNode(H), d.removeAllRanges(), d.addRange(y), s(), C();
610
+ H.href = v, H.target = "_blank", H.rel = "noopener noreferrer", H.append(y.extractContents()), y.insertNode(H), y.selectNode(H), d.removeAllRanges(), d.addRange(y), r(), C();
611
611
  }, Y = () => {
612
612
  const v = window.getSelection();
613
613
  if (!v || v.rangeCount === 0) return;
@@ -627,7 +627,7 @@ const It = (e) => {
627
627
  toggleBlock: h,
628
628
  normalize: C,
629
629
  rootElement: e,
630
- saveSelection: s,
630
+ saveSelection: r,
631
631
  restoreSelection: b,
632
632
  isInlineActive: L,
633
633
  isBlockActive: V,
@@ -674,7 +674,7 @@ const It = (e) => {
674
674
  m.altKey && (m.preventDefault(), t.editor?.restoreSelection(), t.editor?.toggleBlock("h1"), t.editor?.focus(), t.editor?.announce(t.editor.isBlockActive("h1") ? "Heading level 1 enabled" : "Heading level 1 disabled"));
675
675
  break;
676
676
  }
677
- }, r = () => {
677
+ }, s = () => {
678
678
  const m = window.getSelection();
679
679
  if (!m || m.rangeCount === 0) return;
680
680
  const f = o.value;
@@ -719,7 +719,7 @@ const It = (e) => {
719
719
  }), f.querySelectorAll("ul, ol").forEach((x) => {
720
720
  x.removeAttribute("data-block");
721
721
  }), f.body.innerHTML;
722
- }, s = () => {
722
+ }, r = () => {
723
723
  const m = window.getSelection();
724
724
  if (!m || m.rangeCount === 0) return;
725
725
  const f = m.anchorNode;
@@ -758,12 +758,12 @@ const It = (e) => {
758
758
  t.editor?.saveSelection(), x.dispatchEvent(new Event("input", { bubbles: !0 }));
759
759
  };
760
760
  return ve(() => {
761
- document.addEventListener("selectionchange", r);
761
+ document.addEventListener("selectionchange", s);
762
762
  const m = o.value;
763
763
  m && m.querySelectorAll("[data-block]").forEach((f) => {
764
764
  c(f);
765
765
  });
766
- }), Ve(() => document.removeEventListener("selectionchange", r)), n({
766
+ }), Ve(() => document.removeEventListener("selectionchange", s)), n({
767
767
  getRoot: () => o
768
768
  }), (m, f) => (p(), k(de, null, [
769
769
  I("div", {
@@ -776,7 +776,7 @@ const It = (e) => {
776
776
  "aria-multiline": "true",
777
777
  "aria-label": e.ariaLabel || "Text editor",
778
778
  "aria-describedby": "editor-help editor-status",
779
- onInput: s,
779
+ onInput: r,
780
780
  onPaste: h,
781
781
  onKeydown: [
782
782
  i,
@@ -2269,7 +2269,7 @@ const It = (e) => {
2269
2269
  "stroke-linejoin": "round"
2270
2270
  }
2271
2271
  ]
2272
- }, Qe = {
2272
+ }, et = {
2273
2273
  x: c1,
2274
2274
  eye: d1,
2275
2275
  sun: v1,
@@ -2365,14 +2365,14 @@ const It = (e) => {
2365
2365
  return (n, t) => (p(), k("svg", {
2366
2366
  xmlns: "http://www.w3.org/2000/svg",
2367
2367
  class: fe(["icon", { spin: e.spin }]),
2368
- viewBox: Z(Qe)[e.name].viewBox,
2369
- transform: Z(Qe)[e.name].transform || void 0,
2368
+ viewBox: Z(et)[e.name].viewBox,
2369
+ transform: Z(et)[e.name].transform || void 0,
2370
2370
  width: e.size || 24,
2371
2371
  height: e.size || 24,
2372
2372
  fill: "none",
2373
2373
  "aria-hidden": "true"
2374
2374
  }, [
2375
- (p(!0), k(de, null, he(Z(Qe)[e.name].paths, (a, o) => (p(), k(de, { key: o }, [
2375
+ (p(!0), k(de, null, he(Z(et)[e.name].paths, (a, o) => (p(), k(de, { key: o }, [
2376
2376
  a.type === "path" ? (p(), k("path", be({
2377
2377
  key: 0,
2378
2378
  ref_for: !0
@@ -2403,7 +2403,7 @@ const It = (e) => {
2403
2403
  }), Ce = /* @__PURE__ */ W(Oa, [["__scopeId", "data-v-dd8423eb"]]), qa = ["aria-controls"], Fa = ["aria-pressed", "onClick", "aria-label"], Pa = { key: 1 }, Ua = {
2404
2404
  key: 1,
2405
2405
  class: "link-popup"
2406
- }, et = 8, Ka = 6, ja = /* @__PURE__ */ z({
2406
+ }, tt = 8, Ka = 6, ja = /* @__PURE__ */ z({
2407
2407
  __name: "FloatingToolbar",
2408
2408
  props: {
2409
2409
  editor: {},
@@ -2411,17 +2411,17 @@ const It = (e) => {
2411
2411
  buttons: {}
2412
2412
  },
2413
2413
  setup(e, { expose: n }) {
2414
- const t = e, a = et + Ka, o = M(""), i = M(!1), r = M(!1), l = M([]), s = M(null), c = M({}), u = M(null);
2414
+ const t = e, a = tt + Ka, o = M(""), i = M(!1), s = M(!1), l = M([]), r = M(null), c = M({}), u = M(null);
2415
2415
  let h = !1, m = null, f = null, C = null, L = 0;
2416
2416
  const V = () => {
2417
2417
  c.value = x();
2418
2418
  };
2419
- J(r, async (g) => {
2419
+ J(s, async (g) => {
2420
2420
  if (!g) {
2421
2421
  C?.(), C = null, f?.disconnect(), f = null;
2422
2422
  return;
2423
2423
  }
2424
- await $e(), await $e(), V(), s.value && (f = new ResizeObserver(V), f.observe(s.value)), C = b(V);
2424
+ await $e(), await $e(), V(), r.value && (f = new ResizeObserver(V), f.observe(r.value)), C = b(V);
2425
2425
  }, { flush: "post" });
2426
2426
  const x = () => {
2427
2427
  if (!t.editor?.rootElement) return {};
@@ -2437,11 +2437,11 @@ const It = (e) => {
2437
2437
  if (!_) return {};
2438
2438
  const S = _.getClientRects().item(0) ?? _.getBoundingClientRect();
2439
2439
  if (!S || S.width === 0 && S.height === 0) return {};
2440
- const q = s.value;
2440
+ const q = r.value;
2441
2441
  if (!q) return {};
2442
2442
  const B = q.getBoundingClientRect(), w = B.width, T = S.left + S.width / 2, Y = Math.max(
2443
- w / 2 + et,
2444
- Math.min(T, window.innerWidth - w / 2 - et)
2443
+ w / 2 + tt,
2444
+ Math.min(T, window.innerWidth - w / 2 - tt)
2445
2445
  ), v = S.top - B.height - a;
2446
2446
  return v < 0 ? {} : {
2447
2447
  position: "fixed",
@@ -2459,7 +2459,7 @@ const It = (e) => {
2459
2459
  }, E = (g, _) => {
2460
2460
  g && (l.value[_] = g);
2461
2461
  };
2462
- J(r, () => {
2462
+ J(s, () => {
2463
2463
  l.value = [];
2464
2464
  });
2465
2465
  const N = R(() => [
@@ -2524,7 +2524,7 @@ const It = (e) => {
2524
2524
  g.removeLink(), g.focus();
2525
2525
  return;
2526
2526
  }
2527
- h = !0, i.value = !0, r.value = !0, $e(() => {
2527
+ h = !0, i.value = !0, s.value = !0, $e(() => {
2528
2528
  u.value?.focus(), requestAnimationFrame(() => {
2529
2529
  h = !1;
2530
2530
  });
@@ -2565,15 +2565,15 @@ const It = (e) => {
2565
2565
  _.contains(w) && !g.isCollapsed && (m = B.cloneRange());
2566
2566
  }
2567
2567
  if (i.value) {
2568
- r.value = !0;
2568
+ s.value = !0;
2569
2569
  return;
2570
2570
  }
2571
2571
  if (!g || g.rangeCount === 0) {
2572
- r.value = !1;
2572
+ s.value = !1;
2573
2573
  return;
2574
2574
  }
2575
2575
  const S = g.getRangeAt(0), q = S.commonAncestorContainer.nodeType === 3 ? S.commonAncestorContainer.parentNode : S.commonAncestorContainer;
2576
- r.value = _.contains(q) && !g.isCollapsed;
2576
+ s.value = _.contains(q) && !g.isCollapsed;
2577
2577
  });
2578
2578
  }, F = () => {
2579
2579
  o.value.trim() && (t.editor?.restoreSelection(), t.editor?.applyLink(o.value), o.value = "", i.value = !1, t.editor?.focus());
@@ -2583,16 +2583,16 @@ const It = (e) => {
2583
2583
  g.action(t.editor);
2584
2584
  }, A = (g) => {
2585
2585
  if (h) return;
2586
- const _ = g.target, S = s.value, q = t.editor?.rootElement;
2586
+ const _ = g.target, S = r.value, q = t.editor?.rootElement;
2587
2587
  if (i.value) {
2588
2588
  const T = S?.contains(_), Y = q?.contains(_);
2589
2589
  if (T || Y) return;
2590
- D(), r.value = !1;
2590
+ D(), s.value = !1;
2591
2591
  return;
2592
2592
  }
2593
2593
  if (!S || !q) return;
2594
2594
  const B = S.contains(_), w = q.contains(_);
2595
- B || w || (r.value = !1);
2595
+ B || w || (s.value = !1);
2596
2596
  };
2597
2597
  return ve(() => {
2598
2598
  document.addEventListener("selectionchange", () => {
@@ -2605,10 +2605,10 @@ const It = (e) => {
2605
2605
  }), (g, _) => (p(), ae(Ue, { to: "body" }, [
2606
2606
  P(Ze, { name: "tooltip-fade" }, {
2607
2607
  default: Q(() => [
2608
- r.value ? (p(), k("div", {
2608
+ s.value ? (p(), k("div", {
2609
2609
  key: 0,
2610
2610
  ref_key: "toolbarRef",
2611
- ref: s,
2611
+ ref: r,
2612
2612
  class: "toolbar",
2613
2613
  role: "toolbar",
2614
2614
  "aria-label": "Formatting options",
@@ -2675,38 +2675,38 @@ const It = (e) => {
2675
2675
  }),
2676
2676
  emits: ["update:modelValue"],
2677
2677
  setup(e, { expose: n }) {
2678
- const t = ke(e, "modelValue"), a = e, o = ge(), i = M(), r = M(null), l = M(null);
2678
+ const t = ke(e, "modelValue"), a = e, o = ge(), i = M(), s = M(null), l = M(null);
2679
2679
  return J(
2680
2680
  () => t.value,
2681
- (s) => {
2681
+ (r) => {
2682
2682
  const c = l.value?.getRoot()?.value;
2683
- c && c.innerHTML !== s && (c.innerHTML = s, r.value?.normalize());
2683
+ c && c.innerHTML !== r && (c.innerHTML = r, s.value?.normalize());
2684
2684
  },
2685
2685
  { immediate: !0 }
2686
2686
  ), J(
2687
2687
  () => l.value,
2688
2688
  () => {
2689
- const s = l.value?.getRoot()?.value;
2690
- !s || !t.value || t.value.trim().length === 0 || s.innerHTML !== t.value && (s.innerHTML = t.value, r.value?.normalize());
2689
+ const r = l.value?.getRoot()?.value;
2690
+ !r || !t.value || t.value.trim().length === 0 || r.innerHTML !== t.value && (r.innerHTML = t.value, s.value?.normalize());
2691
2691
  },
2692
2692
  { immediate: !0 }
2693
2693
  ), ve(() => {
2694
2694
  const c = l.value?.getRoot()?.value;
2695
2695
  if (!c) return;
2696
- r.value = o1(c, {
2696
+ s.value = o1(c, {
2697
2697
  buttons: a.buttons ?? [],
2698
2698
  minImageResolution: a.minImageResolution,
2699
2699
  onImageResolutionError: a.onImageResolutionError
2700
- }), r.value && (r.value.toolbarRef = i);
2700
+ }), s.value && (s.value.toolbarRef = i);
2701
2701
  const u = () => t.value = c.innerHTML;
2702
2702
  c.addEventListener("input", u), Ve(() => c.removeEventListener("input", u));
2703
- }), He("announce", (s) => r.value?.announce(s)), n({
2704
- editor: r
2705
- }), (s, c) => (p(), k("section", Ya, [
2703
+ }), He("announce", (r) => s.value?.announce(r)), n({
2704
+ editor: s
2705
+ }), (r, c) => (p(), k("section", Ya, [
2706
2706
  P(u1, {
2707
2707
  ref_key: "contentRef",
2708
2708
  ref: l,
2709
- editor: r.value,
2709
+ editor: s.value,
2710
2710
  "editor-id": Z(o),
2711
2711
  "aria-label": e.ariaLabel,
2712
2712
  "write-here-text": e.writeHereText,
@@ -2716,7 +2716,7 @@ const It = (e) => {
2716
2716
  P(Wa, {
2717
2717
  ref_key: "toolbarRef",
2718
2718
  ref: i,
2719
- editor: r.value,
2719
+ editor: s.value,
2720
2720
  "editor-id": Z(o)
2721
2721
  }, null, 8, ["editor", "editor-id"])
2722
2722
  ]));
@@ -2766,7 +2766,7 @@ const Xa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2766
2766
  }),
2767
2767
  emits: /* @__PURE__ */ se(["select", "upload", "remove"], ["update:modelValue"]),
2768
2768
  setup(e, { emit: n }) {
2769
- const t = ke(e, "modelValue"), a = e, o = n, i = M(0), r = M(""), l = M(!1), s = ge(), c = M(), u = R(() => t.value), h = R(() => a.maxSize === 1 / 0 ? "Unlimited" : re(a.maxSize)), m = R(() => !a.disabled && (a.multiple || t.value.length === 0)), f = R(() => u.value.some(($) => $.status === "uploading")), C = () => m.value && c.value?.click(), L = () => {
2769
+ const t = ke(e, "modelValue"), a = e, o = n, i = M(0), s = M(""), l = M(!1), r = ge(), c = M(), u = R(() => t.value), h = R(() => a.maxSize === 1 / 0 ? "Unlimited" : re(a.maxSize)), m = R(() => !a.disabled && (a.multiple || t.value.length === 0)), f = R(() => u.value.some(($) => $.status === "uploading")), C = () => m.value && c.value?.click(), L = () => {
2770
2770
  a.disabled || (i.value++, l.value = !0);
2771
2771
  }, V = () => {
2772
2772
  i.value = Math.max(0, i.value - 1), i.value === 0 && (l.value = !1);
@@ -2828,8 +2828,8 @@ const Xa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2828
2828
  $ /= 1024, g++;
2829
2829
  return `${$.toFixed(2)} ${A[g]}`;
2830
2830
  }, F = ($) => {
2831
- r.value = "", requestAnimationFrame(() => {
2832
- r.value = $;
2831
+ s.value = "", requestAnimationFrame(() => {
2832
+ s.value = $;
2833
2833
  });
2834
2834
  }, D = ($) => {
2835
2835
  $.controller && $.controller.abort(), o("remove", $), t.value = u.value.filter((A) => A.id !== $.id);
@@ -2839,7 +2839,7 @@ const Xa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2839
2839
  class: "ui-upload",
2840
2840
  tabindex: e.disabled ? -1 : 0,
2841
2841
  "aria-label": e.ariaLabel || "File upload area",
2842
- "aria-describedby": l.value ? Z(s) : void 0,
2842
+ "aria-describedby": l.value ? Z(r) : void 0,
2843
2843
  "aria-busy": f.value ? "true" : void 0,
2844
2844
  "aria-disabled": e.disabled ? "true" : void 0,
2845
2845
  "data-disabled": e.disabled || void 0,
@@ -2950,9 +2950,9 @@ const Xa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2950
2950
  ], !0)
2951
2951
  ]))), 128))
2952
2952
  ])) : O("", !0),
2953
- I("div", cn, K(r.value), 1),
2953
+ I("div", cn, K(s.value), 1),
2954
2954
  I("p", {
2955
- id: Z(s),
2955
+ id: Z(r),
2956
2956
  class: "sr-only"
2957
2957
  }, " Drop files to upload ", 8, dn)
2958
2958
  ], 40, Xa));
@@ -2975,17 +2975,17 @@ const fn = (e) => {
2975
2975
  disabled: { type: Boolean, default: !1 }
2976
2976
  },
2977
2977
  setup(e) {
2978
- const n = e, t = Cn + hn, a = M(!1), o = `tooltip-${ge()}`, i = M(null), r = M(null), l = M({});
2979
- let s = null, c = null, u = null;
2978
+ const n = e, t = Cn + hn, a = M(!1), o = `tooltip-${ge()}`, i = M(null), s = M(null), l = M({});
2979
+ let r = null, c = null, u = null;
2980
2980
  const h = () => {
2981
- n.disabled || (s && (clearTimeout(s), s = null), n.delay ? s = window.setTimeout(() => {
2982
- a.value = !0, s = null;
2981
+ n.disabled || (r && (clearTimeout(r), r = null), n.delay ? r = window.setTimeout(() => {
2982
+ a.value = !0, r = null;
2983
2983
  }, n.delay) : a.value = !0);
2984
2984
  }, m = () => {
2985
- s && (clearTimeout(s), s = null), a.value = !1;
2985
+ r && (clearTimeout(r), r = null), a.value = !1;
2986
2986
  }, f = () => {
2987
- if (!i.value || !r.value) return {};
2988
- const L = i.value.getBoundingClientRect(), V = r.value.getBoundingClientRect(), x = {
2987
+ if (!i.value || !s.value) return {};
2988
+ const L = i.value.getBoundingClientRect(), V = s.value.getBoundingClientRect(), x = {
2989
2989
  position: "fixed"
2990
2990
  };
2991
2991
  switch (n.placement) {
@@ -3011,7 +3011,7 @@ const fn = (e) => {
3011
3011
  c?.(), c = null, u?.disconnect(), u = null;
3012
3012
  return;
3013
3013
  }
3014
- await $e(), C(), c = fn(C), u = new ResizeObserver(C), r.value && u.observe(r.value), i.value && u.observe(i.value);
3014
+ await $e(), C(), c = fn(C), u = new ResizeObserver(C), s.value && u.observe(s.value), i.value && u.observe(i.value);
3015
3015
  }), _e(() => {
3016
3016
  c?.(), u?.disconnect();
3017
3017
  }), (L, V) => (p(), k(de, null, [
@@ -3036,7 +3036,7 @@ const fn = (e) => {
3036
3036
  a.value ? (p(), k("div", {
3037
3037
  key: 0,
3038
3038
  ref_key: "tooltipRef",
3039
- ref: r,
3039
+ ref: s,
3040
3040
  id: o,
3041
3041
  class: "tooltip-content",
3042
3042
  role: "tooltip",
@@ -3083,15 +3083,15 @@ const yn = {
3083
3083
  "is-clickable": t.clickable,
3084
3084
  "is-removable": t.removable
3085
3085
  }
3086
- ]), r = R(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (c) => {
3086
+ ]), s = R(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (c) => {
3087
3087
  t.disabled || !o.value || a("click", c);
3088
- }, s = () => a("remove");
3088
+ }, r = () => a("remove");
3089
3089
  return (c, u) => (p(), ae(ze(e.as), {
3090
3090
  ref: "rootRef",
3091
3091
  class: fe(["ui-tag", i.value]),
3092
3092
  "aria-disabled": e.disabled || void 0,
3093
- tabindex: e.disabled ? -1 : r.value ? 0 : void 0,
3094
- role: r.value ? "button" : void 0,
3093
+ tabindex: e.disabled ? -1 : s.value ? 0 : void 0,
3094
+ role: s.value ? "button" : void 0,
3095
3095
  onClick: l,
3096
3096
  onKeydown: [
3097
3097
  u[0] || (u[0] = ye(ce((h) => !e.disabled && o.value && l(h), ["prevent"]), ["enter"])),
@@ -3110,7 +3110,7 @@ const yn = {
3110
3110
  class: "ui-tag__remove",
3111
3111
  type: "button",
3112
3112
  "aria-label": `Remove ${e.textContent}`,
3113
- onClick: ce(s, ["stop"])
3113
+ onClick: ce(r, ["stop"])
3114
3114
  }, [
3115
3115
  P(Ce, {
3116
3116
  name: "close",
@@ -3138,7 +3138,7 @@ const yn = {
3138
3138
  }
3139
3139
  a("click", i);
3140
3140
  };
3141
- return (i, r) => (p(), k("a", {
3141
+ return (i, s) => (p(), k("a", {
3142
3142
  class: "link",
3143
3143
  href: e.disabled ? void 0 : e.href,
3144
3144
  "aria-disabled": e.disabled ? "true" : void 0,
@@ -3155,7 +3155,7 @@ const yn = {
3155
3155
  __name: "Dropdown",
3156
3156
  setup(e) {
3157
3157
  let n = 0;
3158
- const t = M(!1), a = M(null), o = M({}), i = `dropdown-${ge()}`, r = `${i}-menu`, l = `${i}-trigger`, s = () => t.value = !0, c = () => {
3158
+ const t = M(!1), a = M(null), o = M({}), i = `dropdown-${ge()}`, s = `${i}-menu`, l = `${i}-trigger`, r = () => t.value = !0, c = () => {
3159
3159
  t.value = !1, o.value = {}, n = 0, a.value?.focus({ preventScroll: !0 });
3160
3160
  }, u = () => t.value = !t.value, h = (b) => {
3161
3161
  const E = `dropdown-item-${n++}`;
@@ -3177,7 +3177,7 @@ const yn = {
3177
3177
  N > 0 && U && m(U);
3178
3178
  }, x = (b) => Object.keys(o.value).indexOf(b);
3179
3179
  return He("DropdownContext", {
3180
- open: s,
3180
+ open: r,
3181
3181
  close: c,
3182
3182
  toggle: u,
3183
3183
  isOpen: t,
@@ -3188,7 +3188,7 @@ const yn = {
3188
3188
  focusFirstItem: f,
3189
3189
  focusLastItem: C,
3190
3190
  triggerRef: a,
3191
- menuId: r,
3191
+ menuId: s,
3192
3192
  triggerId: l
3193
3193
  }), (b, E) => (p(), k("div", $n, [
3194
3194
  G(b.$slots, "default", {}, void 0, !0)
@@ -3206,7 +3206,7 @@ const yn = {
3206
3206
  const a = M(), o = (i) => {
3207
3207
  i.key === "ArrowDown" && (i.preventDefault(), t.open(), $e(() => t.focusFirstItem())), i.key === "ArrowUp" && (i.preventDefault(), t.open(), $e(() => t.focusLastItem()));
3208
3208
  };
3209
- return ve(() => t.triggerRef.value = a.value?.el), (i, r) => (p(), ae(Le, {
3209
+ return ve(() => t.triggerRef.value = a.value?.el), (i, s) => (p(), ae(Le, {
3210
3210
  ref_key: "btn",
3211
3211
  ref: a,
3212
3212
  id: Z(t).triggerId,
@@ -3234,10 +3234,10 @@ const yn = {
3234
3234
  if (!n) throw new Error("DropdownMenu must be used within a Dropdown");
3235
3235
  const t = M(), a = M({});
3236
3236
  let o = !1, i;
3237
- const r = (h) => {
3237
+ const s = (h) => {
3238
3238
  const m = h.target;
3239
3239
  t.value?.contains(m) || n.triggerRef.value?.contains(m) || n.close();
3240
- }, l = (h) => h.key === "Escape" && n.close(), s = () => {
3240
+ }, l = (h) => h.key === "Escape" && n.close(), r = () => {
3241
3241
  const h = n.triggerRef.value, m = t.value;
3242
3242
  if (!h || !m) return;
3243
3243
  const f = h.getBoundingClientRect(), C = m.getBoundingClientRect();
@@ -3251,17 +3251,17 @@ const yn = {
3251
3251
  J(
3252
3252
  () => n.isOpen.value,
3253
3253
  async (h) => {
3254
- h ? (await c(), await c(), s(), n.focusFirstItem(), document.addEventListener("pointerdown", r, !0)) : document.removeEventListener("pointerdown", r, !0);
3254
+ h ? (await c(), await c(), r(), n.focusFirstItem(), document.addEventListener("pointerdown", s, !0)) : document.removeEventListener("pointerdown", s, !0);
3255
3255
  }
3256
3256
  );
3257
3257
  const u = () => {
3258
3258
  n.isOpen.value && (o || (o = !0, requestAnimationFrame(() => {
3259
- s(), o = !1;
3259
+ r(), o = !1;
3260
3260
  })));
3261
3261
  };
3262
3262
  return ve(() => {
3263
3263
  i = new ResizeObserver(() => {
3264
- s();
3264
+ r();
3265
3265
  }), t.value && i.observe(t.value), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u);
3266
3266
  }), Ve(() => {
3267
3267
  i?.disconnect(), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
@@ -3332,9 +3332,9 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3332
3332
  continue;
3333
3333
  }
3334
3334
  for (; o < e.length; ) {
3335
- const r = e[o++];
3336
- if (r && Vt(r, i)) {
3337
- a += r;
3335
+ const s = e[o++];
3336
+ if (s && Vt(s, i)) {
3337
+ a += s;
3338
3338
  break;
3339
3339
  }
3340
3340
  }
@@ -3343,10 +3343,10 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3343
3343
  return a;
3344
3344
  }, Tn = (e, n) => {
3345
3345
  const a = Pe(n).filter((l) => l.type !== "literal");
3346
- let o = "", i = 0, r = 0;
3347
- for (; i < e.length && r < a.length; ) {
3348
- const l = e[i], s = a[r];
3349
- s && Vt(l, s) && (o += l, r++), i++;
3346
+ let o = "", i = 0, s = 0;
3347
+ for (; i < e.length && s < a.length; ) {
3348
+ const l = e[i], r = a[s];
3349
+ r && Vt(l, r) && (o += l, s++), i++;
3350
3350
  }
3351
3351
  return o;
3352
3352
  }, _n = (e, n) => e.slice(0, n).replace(/\D/g, "").length, Zn = (e, n) => {
@@ -3364,11 +3364,11 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3364
3364
  }, ut = (e, n, t, a) => R(() => {
3365
3365
  const o = [];
3366
3366
  return e.invalid && e.errorMessage && o.push(t), n.hint && o.push(a), o.length > 0 ? o.join(" ") : void 0;
3367
- }), We = (e) => R(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Nn = (e) => R(() => e.disabled === !0 ? "true" : void 0), On = (e, n, t) => {
3367
+ }), Ye = (e) => R(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Nn = (e) => R(() => e.disabled === !0 ? "true" : void 0), On = (e, n, t) => {
3368
3368
  n && (n.classList.add("focused"), t("focus", e));
3369
3369
  }, qn = (e, n, t, a) => {
3370
- nt(n, t), t && (t?.classList.remove("focused"), a("blur", e));
3371
- }, nt = (e, n) => {
3370
+ We(n, t), t && (t?.classList.remove("focused"), a("blur", e));
3371
+ }, We = (e, n) => {
3372
3372
  !e || !n || (e.value.length > 0 ? n.classList.add("filled") : n.classList.remove("filled"));
3373
3373
  }, Fn = ["id"], ct = /* @__PURE__ */ z({
3374
3374
  __name: "Hint",
@@ -3431,7 +3431,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3431
3431
  }),
3432
3432
  emits: /* @__PURE__ */ se(["focus", "blur"], ["update:modelValue"]),
3433
3433
  setup(e, { emit: n }) {
3434
- const t = ke(e, "modelValue"), a = e, o = n, i = rt(), r = M(null), l = ge(), s = `${l}-error`, c = `${l}-hint`, u = We(i).value, h = M(!1), m = M(""), f = M(!1), C = R(() => t.value !== null && t.value !== void 0 && t.value !== ""), L = R(() => u ? `${c} ${l}-required-hint` : c), V = R(() => a.invalid === !0 && a.errorMessage ? s : void 0), x = R(() => a.type === "password" ? f.value ? "text" : "password" : a.type), b = R(() => {
3434
+ const t = ke(e, "modelValue"), a = e, o = n, i = rt(), s = M(null), l = ge(), r = `${l}-error`, c = `${l}-hint`, u = Ye(i).value, h = M(!1), m = M(""), f = M(!1), C = R(() => t.value !== null && t.value !== void 0 && t.value !== ""), L = R(() => u ? `${c} ${l}-required-hint` : c), V = R(() => a.invalid === !0 && a.errorMessage ? r : void 0), x = R(() => a.type === "password" ? f.value ? "text" : "password" : a.type), b = R(() => {
3435
3435
  const { type: S, ...q } = i;
3436
3436
  return q;
3437
3437
  }), E = R(() => a.currency ? t.value === null || t.value === void 0 || t.value === "" ? "" : ie(m.value) : a.mask ? bt(String(t.value ?? ""), a.mask) : String(t.value ?? "")), N = R(() => a.mask ? Pe(a.mask).filter((S) => S.type !== "literal").length : 0), U = R(() => a.currency ? new Intl.NumberFormat(a.locale ?? "en-US", {
@@ -3448,14 +3448,14 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3448
3448
  if (!a.mask && !a.currency) return;
3449
3449
  if (a.currency) {
3450
3450
  const w = S.target, T = _(w.value);
3451
- r.value = {
3451
+ s.value = {
3452
3452
  rawCaret: T.length,
3453
3453
  inputType: S.inputType
3454
3454
  };
3455
3455
  return;
3456
3456
  }
3457
3457
  const q = S.target, B = q.selectionStart ?? 0;
3458
- r.value = {
3458
+ s.value = {
3459
3459
  rawCaret: _n(q.value, B),
3460
3460
  inputType: S.inputType
3461
3461
  };
@@ -3463,21 +3463,21 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3463
3463
  const q = S.target;
3464
3464
  if (a.currency) {
3465
3465
  let T = _(q.value);
3466
- r.value?.inputType === "deleteContentBackward" && (T = m.value.slice(0, -1)), m.value = T;
3466
+ s.value?.inputType === "deleteContentBackward" && (T = m.value.slice(0, -1)), m.value = T;
3467
3467
  const Y = ie(m.value);
3468
- q.value = Y, t.value = Number(m.value || "0") / 100, r.value = null;
3468
+ q.value = Y, t.value = Number(m.value || "0") / 100, s.value = null;
3469
3469
  return;
3470
3470
  }
3471
3471
  let B = a.mask ? Tn(q.value, a.mask) : q.value;
3472
3472
  a.mask && (B = B.slice(0, N.value));
3473
3473
  const w = a.mask ? bt(B, a.mask) : B;
3474
- if (q.value = w, t.value = a.type === "number" ? Number(B) : B, a.mask && r.value) {
3475
- let { rawCaret: T, inputType: Y } = r.value;
3474
+ if (q.value = w, t.value = a.type === "number" ? Number(B) : B, a.mask && s.value) {
3475
+ let { rawCaret: T, inputType: Y } = s.value;
3476
3476
  Y.startsWith("insert") && T++, Y === "deleteContentBackward" && (T = Math.max(0, T - 1));
3477
3477
  let v = Zn(w, T);
3478
3478
  v = zn(a.mask, v, 1), q.setSelectionRange(v, v);
3479
3479
  }
3480
- r.value = null;
3480
+ s.value = null;
3481
3481
  }, $ = (S) => {
3482
3482
  if (!a.mask || a.currency || S.key !== "Backspace") return;
3483
3483
  const q = S.target;
@@ -3519,7 +3519,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3519
3519
  required: Z(u),
3520
3520
  "aria-invalid": e.invalid ? "true" : void 0,
3521
3521
  "aria-errormessage": V.value,
3522
- "aria-describedby": Z(ut)(S.$props, S.$slots, s, L.value).value
3522
+ "aria-describedby": Z(ut)(S.$props, S.$slots, r, L.value).value
3523
3523
  }), null, 16, jn),
3524
3524
  P(ct, { hintId: c }, {
3525
3525
  default: Q(() => [
@@ -3532,7 +3532,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3532
3532
  isRequired: Z(u)
3533
3533
  }, null, 8, ["baseId", "isRequired"]),
3534
3534
  P(vt, {
3535
- errorId: s,
3535
+ errorId: r,
3536
3536
  invalid: e.invalid,
3537
3537
  errorMessage: e.errorMessage
3538
3538
  }, null, 8, ["invalid", "errorMessage"]),
@@ -3568,11 +3568,11 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3568
3568
  shape: { default: "circle" }
3569
3569
  },
3570
3570
  setup(e) {
3571
- const n = e, t = M("loading"), a = R(() => n.src && t.value !== "error"), o = R(() => n.name ? n.name.split(" ").map((s) => s[0]).slice(0, 2).join("").toUpperCase() : ""), i = R(() => n.alt ? n.alt : n.name ? n.name : "Avatar"), r = () => t.value = "loaded", l = () => t.value = "error";
3571
+ const n = e, t = M("loading"), a = R(() => n.src && t.value !== "error"), o = R(() => n.name ? n.name.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase() : ""), i = R(() => n.alt ? n.alt : n.name ? n.name : "Avatar"), s = () => t.value = "loaded", l = () => t.value = "error";
3572
3572
  return J(
3573
3573
  () => n.src,
3574
3574
  () => n.src && (t.value = "loading")
3575
- ), ve(() => !n.src && (t.value = "error")), (s, c) => (p(), k("div", {
3575
+ ), ve(() => !n.src && (t.value = "error")), (r, c) => (p(), k("div", {
3576
3576
  class: "ui-avatar",
3577
3577
  "data-size": e.size,
3578
3578
  "data-shape": e.shape,
@@ -3584,10 +3584,10 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3584
3584
  src: e.src,
3585
3585
  alt: e.alt ?? "",
3586
3586
  class: "ui-avatar__img",
3587
- onLoad: r,
3587
+ onLoad: s,
3588
3588
  onError: l
3589
3589
  }, null, 8, ["src", "alt"])) : t.value === "loading" ? (p(), k("div", Xn)) : (p(), k("div", Gn, [
3590
- G(s.$slots, "default", {}, () => [
3590
+ G(r.$slots, "default", {}, () => [
3591
3591
  Me(K(o.value), 1)
3592
3592
  ], !0)
3593
3593
  ]))
@@ -3611,7 +3611,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3611
3611
  J(i, (B) => {
3612
3612
  B ? document.addEventListener("mousedown", S) : document.removeEventListener("mousedown", S);
3613
3613
  });
3614
- const r = rt(), l = M(!1), s = M(null), c = R(() => a.id ?? ge()), u = `${c.value}-label`, h = `${c.value}-listbox`, m = `${c.value}-error`, f = `${c.value}-hint`, C = `${c.value}-value`, L = M(null), V = M(null), x = R(() => t.value !== null && t.value !== void 0 && t.value !== ""), b = R(() => L.value !== null ? `${h}-option-${L.value}` : void 0), E = We(r).value, N = R(() => E ? `${f} ${c.value}-required-hint` : f), U = R(() => i.value && b.value ? b.value : void 0), oe = R(() => V.value !== null ? a.options[V.value]?.value : "");
3614
+ const s = rt(), l = M(!1), r = M(null), c = R(() => a.id ?? ge()), u = `${c.value}-label`, h = `${c.value}-listbox`, m = `${c.value}-error`, f = `${c.value}-hint`, C = `${c.value}-value`, L = M(null), V = M(null), x = R(() => t.value !== null && t.value !== void 0 && t.value !== ""), b = R(() => L.value !== null ? `${h}-option-${L.value}` : void 0), E = Ye(s).value, N = R(() => E ? `${f} ${c.value}-required-hint` : f), U = R(() => i.value && b.value ? b.value : void 0), oe = R(() => V.value !== null ? a.options[V.value]?.value : "");
3615
3615
  J(
3616
3616
  () => t.value,
3617
3617
  () => q()
@@ -3623,12 +3623,12 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3623
3623
  const ie = (B) => {
3624
3624
  l.value = !0, o("focus", B);
3625
3625
  }, re = (B) => {
3626
- const w = B.relatedTarget, T = s.value;
3626
+ const w = B.relatedTarget, T = r.value;
3627
3627
  !T || T?.contains(w) || (l.value = !1, i.value = !1, o("blur", B));
3628
3628
  }, F = (B) => {
3629
3629
  i.value = !i.value, i.value && t.value.toString().length > 0 && (L.value = L.value ?? a.options.findIndex((w) => !w.disabled)), !(!a.options || a.options.length === 0) && o("click", B);
3630
3630
  }, D = (B, w) => {
3631
- const T = s.value;
3631
+ const T = r.value;
3632
3632
  !T || B.disabled || (V.value = w, L.value = w, B && B.key && B.key.toString().length > 0 ? T.classList.add("filled") : T.classList.remove("filled"), t.value = B.key, o("change", B.key));
3633
3633
  }, $ = (B) => {
3634
3634
  if (!i.value && ["ArrowDown", "ArrowUp"].includes(B.key)) {
@@ -3660,7 +3660,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3660
3660
  while (w >= 0 && w < a.options.length && a.options[w]?.disabled);
3661
3661
  w >= 0 && w < a.options.length && (L.value = w);
3662
3662
  }, g = () => a.options.findIndex((B) => !B.disabled), _ = () => [...a.options].reverse().findIndex((B) => !B.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((B) => !B.disabled) : -1, S = (B) => {
3663
- const w = s.value;
3663
+ const w = r.value;
3664
3664
  !w || w.contains(B.target) || (i.value = !1);
3665
3665
  };
3666
3666
  _e(() => {
@@ -3670,7 +3670,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3670
3670
  const B = a.options.findIndex((w) => !w.disabled && w.key === t.value);
3671
3671
  if (B > -1) {
3672
3672
  V.value = B, L.value = B;
3673
- const w = s.value;
3673
+ const w = r.value;
3674
3674
  w && w.classList.add("filled");
3675
3675
  }
3676
3676
  };
@@ -3681,7 +3681,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3681
3681
  }
3682
3682
  }), (B, w) => (p(), k("div", {
3683
3683
  ref_key: "selectRef",
3684
- ref: s,
3684
+ ref: r,
3685
3685
  class: fe(["select-box", { required: Object.keys(B.$attrs).includes("required"), error: e.invalid, filled: x.value, focused: l.value }])
3686
3686
  }, [
3687
3687
  I("button", be({
@@ -3698,7 +3698,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3698
3698
  "aria-required": Z(E),
3699
3699
  "aria-describedby": Z(ut)(B.$props, B.$slots, m, N.value).value,
3700
3700
  "aria-activedescendant": U.value,
3701
- "aria-disabled": Z(r).disabled ? "true" : void 0,
3701
+ "aria-disabled": Z(s).disabled ? "true" : void 0,
3702
3702
  onBlur: re,
3703
3703
  onFocus: ie,
3704
3704
  onClick: F,
@@ -3789,10 +3789,10 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3789
3789
  }),
3790
3790
  emits: /* @__PURE__ */ se(["change"], ["update:modelValue"]),
3791
3791
  setup(e, { emit: n }) {
3792
- const t = ke(e, "modelValue"), a = e, o = n, i = M([]), r = M("next"), l = M(null), s = `gallery-caption-${ge()}`, c = M(null), u = R(() => t.value), h = R(() => a.images[u.value]), m = (b, E) => {
3792
+ const t = ke(e, "modelValue"), a = e, o = n, i = M([]), s = M("next"), l = M(null), r = `gallery-caption-${ge()}`, c = M(null), u = R(() => t.value), h = R(() => a.images[u.value]), m = (b, E) => {
3793
3793
  b && (i.value[E] = b);
3794
3794
  }, f = (b) => {
3795
- b !== u.value && (r.value = b > u.value ? "next" : "prev", t.value = b, o("change", b));
3795
+ b !== u.value && (s.value = b > u.value ? "next" : "prev", t.value = b, o("change", b));
3796
3796
  }, C = () => {
3797
3797
  if (u.value === a.images.length - 1) {
3798
3798
  a.loop && f(0);
@@ -3826,7 +3826,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3826
3826
  "aria-roledescription": "carousel",
3827
3827
  "aria-label": e.ariaLabel || "Image gallery",
3828
3828
  "aria-live": "polite",
3829
- "aria-describedby": s
3829
+ "aria-describedby": r
3830
3830
  }, [
3831
3831
  I("div", {
3832
3832
  ref_key: "previewRef",
@@ -3840,7 +3840,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3840
3840
  ]
3841
3841
  }, [
3842
3842
  P(Ze, {
3843
- name: `rs-gallery-slide-${r.value}`,
3843
+ name: `rs-gallery-slide-${s.value}`,
3844
3844
  mode: "out-in",
3845
3845
  onBeforeLeave: V,
3846
3846
  onAfterEnter: x
@@ -3862,7 +3862,7 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3862
3862
  ], 44, lo),
3863
3863
  h.value?.title ? (p(), k("p", {
3864
3864
  key: 0,
3865
- id: s,
3865
+ id: r,
3866
3866
  class: "rs-gallery-caption"
3867
3867
  }, K(h.value.title), 1)) : O("", !0),
3868
3868
  e.showThumbnails ? (p(), k("ul", ro, [
@@ -3922,8 +3922,8 @@ const Pe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3922
3922
  ], 8, vo))), 128))
3923
3923
  ], 12, co));
3924
3924
  }
3925
- }), At = /* @__PURE__ */ W(fo, [["__scopeId", "data-v-17067a4b"]]), Ye = /* @__PURE__ */ Symbol("ModalContext");
3926
- let tt = 0, qe = 0, Fe = null;
3925
+ }), At = /* @__PURE__ */ W(fo, [["__scopeId", "data-v-17067a4b"]]), Xe = /* @__PURE__ */ Symbol("ModalContext");
3926
+ let at = 0, qe = 0, Fe = null;
3927
3927
  const ot = z({
3928
3928
  name: "Modal",
3929
3929
  props: {
@@ -3940,18 +3940,18 @@ const ot = z({
3940
3940
  },
3941
3941
  emits: ["update:open", "opened", "closed"],
3942
3942
  setup(e, { emit: n, slots: t }) {
3943
- const a = M(!1), o = M(e.open), i = ge(), r = `modal-title-${i}`, l = `modal-desc-${i}`;
3943
+ const a = M(!1), o = M(e.open), i = ge(), s = `modal-title-${i}`, l = `modal-desc-${i}`;
3944
3944
  J(() => e.open, (h) => o.value = h), J(o, (h) => {
3945
3945
  n("update:open", h), n(h ? "opened" : "closed");
3946
3946
  });
3947
- const s = () => o.value = !1, c = R(() => e.motion), u = R(() => e.size);
3948
- return He(Ye, {
3947
+ const r = () => o.value = !1, c = R(() => e.motion), u = R(() => e.size);
3948
+ return He(Xe, {
3949
3949
  isOpen: o,
3950
3950
  motion: c,
3951
3951
  size: u,
3952
- close: s,
3952
+ close: r,
3953
3953
  closeOnOverlay: e.closeOnOverlay,
3954
- labelId: r,
3954
+ labelId: s,
3955
3955
  descriptionId: l,
3956
3956
  hasTitle: a
3957
3957
  }), () => t.default?.();
@@ -3959,15 +3959,15 @@ const ot = z({
3959
3959
  }), Et = z({
3960
3960
  name: "ModalContent",
3961
3961
  setup(e, { slots: n }) {
3962
- const t = pe(Ye);
3962
+ const t = pe(Xe);
3963
3963
  if (!t) throw new Error("ModalContent components must be used inside <Modal>");
3964
3964
  const a = M(null);
3965
3965
  let o = 0;
3966
3966
  const i = (h) => {
3967
- h.key === "Escape" && o === tt && t.close();
3967
+ h.key === "Escape" && o === at && t.close();
3968
3968
  };
3969
- let r = !1, l = null;
3970
- const s = (h) => {
3969
+ let s = !1, l = null;
3970
+ const r = (h) => {
3971
3971
  const m = Array.from(
3972
3972
  h.querySelectorAll(
3973
3973
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
@@ -3999,13 +3999,13 @@ const ot = z({
3999
3999
  name: `modal-${t.motion.value}`,
4000
4000
  appear: !0,
4001
4001
  onEnter: () => {
4002
- o = ++tt, Fe = document.activeElement, c();
4002
+ o = ++at, Fe = document.activeElement, c();
4003
4003
  },
4004
4004
  onAfterEnter: () => {
4005
- a.value && (s(a.value), document.addEventListener("keydown", i));
4005
+ a.value && (r(a.value), document.addEventListener("keydown", i));
4006
4006
  },
4007
4007
  onAfterLeave: () => {
4008
- tt--, document.removeEventListener("keydown", i), l?.(), u(), Fe && document.contains(Fe) && Fe.focus(), Fe = null;
4008
+ at--, document.removeEventListener("keydown", i), l?.(), u(), Fe && document.contains(Fe) && Fe.focus(), Fe = null;
4009
4009
  }
4010
4010
  },
4011
4011
  {
@@ -4014,11 +4014,11 @@ const ot = z({
4014
4014
  {
4015
4015
  class: "modal-overlay",
4016
4016
  onMousedown: (h) => {
4017
- r = h.target === h.currentTarget;
4017
+ s = h.target === h.currentTarget;
4018
4018
  },
4019
4019
  onMouseup: (h) => {
4020
4020
  const m = h.target === h.currentTarget;
4021
- t.closeOnOverlay && r && m && t.close(), r = !1;
4021
+ t.closeOnOverlay && s && m && t.close(), s = !1;
4022
4022
  }
4023
4023
  },
4024
4024
  j(
@@ -4042,7 +4042,7 @@ const ot = z({
4042
4042
  }), Rt = z({
4043
4043
  name: "ModalTitle",
4044
4044
  setup(e, { slots: n }) {
4045
- const t = pe(Ye);
4045
+ const t = pe(Xe);
4046
4046
  if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
4047
4047
  return t.hasTitle.value = !0, () => j("h2", { id: t.labelId }, n.default?.());
4048
4048
  }
@@ -4064,7 +4064,7 @@ const ot = z({
4064
4064
  }), Tt = z({
4065
4065
  name: "ModalClose",
4066
4066
  setup() {
4067
- const e = pe(Ye);
4067
+ const e = pe(Xe);
4068
4068
  if (!e) throw new Error("ModalClose components must be used inside <Modal>");
4069
4069
  return () => j(
4070
4070
  "button",
@@ -4101,7 +4101,7 @@ const mo = /* @__PURE__ */ z({
4101
4101
  const n = M(0), t = M(!1), a = (i) => {
4102
4102
  n.value = i, t.value = !0;
4103
4103
  }, o = () => t.value = !1;
4104
- return (i, r) => (p(), k(de, null, [
4104
+ return (i, s) => (p(), k(de, null, [
4105
4105
  P(At, {
4106
4106
  images: e.images,
4107
4107
  onChange: a,
@@ -4110,7 +4110,7 @@ const mo = /* @__PURE__ */ z({
4110
4110
  }, null, 8, ["images", "aria-label", "transform"]),
4111
4111
  P(Z(ot), {
4112
4112
  open: t.value,
4113
- "onUpdate:open": r[2] || (r[2] = (l) => t.value = l),
4113
+ "onUpdate:open": s[2] || (s[2] = (l) => t.value = l),
4114
4114
  motion: "fade",
4115
4115
  size: "xl"
4116
4116
  }, {
@@ -4120,7 +4120,7 @@ const mo = /* @__PURE__ */ z({
4120
4120
  P(Z(St), null, {
4121
4121
  default: Q(() => [
4122
4122
  P(Z(Rt), null, {
4123
- default: Q(() => [...r[3] || (r[3] = [
4123
+ default: Q(() => [...s[3] || (s[3] = [
4124
4124
  Me("Image Gallery", -1)
4125
4125
  ])]),
4126
4126
  _: 1
@@ -4133,9 +4133,9 @@ const mo = /* @__PURE__ */ z({
4133
4133
  default: Q(() => [
4134
4134
  P(Bt, {
4135
4135
  modelValue: n.value,
4136
- "onUpdate:modelValue": r[0] || (r[0] = (l) => n.value = l),
4136
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
4137
4137
  images: e.images,
4138
- onChange: r[1] || (r[1] = (l) => i.$emit("change", l)),
4138
+ onChange: s[1] || (s[1] = (l) => i.$emit("change", l)),
4139
4139
  onClose: o,
4140
4140
  "aria-label": e.ariaLabel,
4141
4141
  "transform-thumbnails": e.transform
@@ -4205,15 +4205,15 @@ const mo = /* @__PURE__ */ z({
4205
4205
  setup(e, { emit: n }) {
4206
4206
  const t = ke(e, "modelValue"), a = n, o = R({
4207
4207
  get: () => t.value ?? 0,
4208
- set: (r) => {
4209
- t.value = r, a("change", r);
4208
+ set: (s) => {
4209
+ t.value = s, a("change", s);
4210
4210
  }
4211
- }), i = (r) => o.value = r;
4212
- return (r, l) => (p(), k("section", go, [
4211
+ }), i = (s) => o.value = s;
4212
+ return (s, l) => (p(), k("section", go, [
4213
4213
  e.layout === "carousel" ? (p(), ae(Bt, {
4214
4214
  key: 0,
4215
4215
  modelValue: o.value,
4216
- "onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s),
4216
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => o.value = r),
4217
4217
  images: e.images,
4218
4218
  loop: e.loop,
4219
4219
  "aria-label": e.ariaLabel,
@@ -4223,7 +4223,7 @@ const mo = /* @__PURE__ */ z({
4223
4223
  }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (p(), ae(At, {
4224
4224
  key: 1,
4225
4225
  modelValue: o.value,
4226
- "onUpdate:modelValue": l[1] || (l[1] = (s) => o.value = s),
4226
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => o.value = r),
4227
4227
  images: e.images,
4228
4228
  onSelect: i,
4229
4229
  columns: e.columns,
@@ -4233,14 +4233,14 @@ const mo = /* @__PURE__ */ z({
4233
4233
  }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (p(), ae(mo, {
4234
4234
  key: 2,
4235
4235
  modelValue: o.value,
4236
- "onUpdate:modelValue": l[2] || (l[2] = (s) => o.value = s),
4236
+ "onUpdate:modelValue": l[2] || (l[2] = (r) => o.value = r),
4237
4237
  images: e.images,
4238
4238
  transform: e.transform,
4239
4239
  "aria-label": e.ariaLabel
4240
4240
  }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (p(), ae(ho, {
4241
4241
  key: 3,
4242
4242
  modelValue: o.value,
4243
- "onUpdate:modelValue": l[3] || (l[3] = (s) => o.value = s),
4243
+ "onUpdate:modelValue": l[3] || (l[3] = (r) => o.value = r),
4244
4244
  images: e.images,
4245
4245
  transform: e.transform,
4246
4246
  "aria-label": e.ariaLabel
@@ -4266,21 +4266,21 @@ const bo = ["aria-busy"], ko = {
4266
4266
  !n.message || a.value !== null || o.value.length > 0 && (a.value = window.setInterval(() => {
4267
4267
  t.value = t.value % 3 + 1, o.value = `${n.message}${".".repeat(t.value)}`;
4268
4268
  }, 750));
4269
- }, r = () => {
4269
+ }, s = () => {
4270
4270
  a.value !== null && (clearInterval(a.value), a.value = null);
4271
4271
  };
4272
4272
  return J(
4273
4273
  () => n.message,
4274
- (l, s) => {
4275
- l !== s && (o.value = l || "", r());
4274
+ (l, r) => {
4275
+ l !== r && (o.value = l || "", s());
4276
4276
  }
4277
- ), ve(i), Ve(r), (l, s) => (p(), k("div", {
4277
+ ), ve(i), Ve(s), (l, r) => (p(), k("div", {
4278
4278
  class: "spinner-container",
4279
4279
  role: "status",
4280
4280
  "aria-live": "polite",
4281
4281
  "aria-busy": !!e.message
4282
4282
  }, [
4283
- s[0] || (s[0] = I("div", {
4283
+ r[0] || (r[0] = I("div", {
4284
4284
  class: "spinner",
4285
4285
  "aria-hidden": "true"
4286
4286
  }, null, -1)),
@@ -4312,7 +4312,7 @@ const bo = ["aria-busy"], ko = {
4312
4312
  }),
4313
4313
  emits: /* @__PURE__ */ se(["change"], ["update:modelValue"]),
4314
4314
  setup(e, { emit: n }) {
4315
- const t = n, a = ke(e, "modelValue"), o = e, i = ge(), r = R(() => o.id ?? `checkbox-${i}`), l = M(null), s = Nn(o).value, c = R(() => o.required ? !0 : void 0), u = R(() => o.triState && a.value === void 0 ? "mixed" : void 0);
4315
+ const t = n, a = ke(e, "modelValue"), o = e, i = ge(), s = R(() => o.id ?? `checkbox-${i}`), l = M(null), r = Nn(o).value, c = R(() => o.required ? !0 : void 0), u = R(() => o.triState && a.value === void 0 ? "mixed" : void 0);
4316
4316
  J(
4317
4317
  () => a.value,
4318
4318
  (m) => {
@@ -4334,14 +4334,14 @@ const bo = ["aria-busy"], ko = {
4334
4334
  class: fe(["checkbox-root", { required: c.value, error: e.invalid }])
4335
4335
  }, [
4336
4336
  I("input", {
4337
- id: r.value,
4337
+ id: s.value,
4338
4338
  type: "checkbox",
4339
4339
  class: "checkbox",
4340
4340
  required: c.value,
4341
4341
  checked: a.value === !0,
4342
4342
  disabled: e.disabled,
4343
4343
  "aria-invalid": e.invalid ? "true" : void 0,
4344
- "aria-disabled": Z(s),
4344
+ "aria-disabled": Z(r),
4345
4345
  "aria-checked": u.value,
4346
4346
  onClick: f[0] || (f[0] = (C) => e.triState ? h(C) : void 0),
4347
4347
  onChange: f[1] || (f[1] = (C) => e.triState ? void 0 : h(C)),
@@ -4382,17 +4382,19 @@ const bo = ["aria-busy"], ko = {
4382
4382
  }),
4383
4383
  emits: /* @__PURE__ */ se(["focus", "blur"], ["update:modelValue"]),
4384
4384
  setup(e, { emit: n }) {
4385
- const t = ke(e, "modelValue"), a = rt(), o = st(), i = n, r = e, l = M(null), s = M(null), c = ge(), u = `${c}-error`, h = `${c}-hint`, m = We(a).value, f = R(() => m ? `${h} ${c}-required-hint` : h), C = ut(r, o, u, f.value).value, L = (x) => {
4386
- nt(l.value, s.value);
4385
+ const t = ke(e, "modelValue"), a = rt(), o = st(), i = n, s = e, l = M(null), r = M(null), c = ge(), u = `${c}-error`, h = `${c}-hint`, m = Ye(a).value, f = R(() => m ? `${h} ${c}-required-hint` : h), C = ut(s, o, u, f.value).value, L = (x) => {
4386
+ We(l.value, r.value);
4387
4387
  const b = x.target;
4388
- t.value = r.type === "number" ? Number(b.value) : b.value;
4389
- }, V = R(() => r.invalid === !0 && r.errorMessage ? u : void 0);
4390
- return ve(() => {
4391
- nt(l.value, s.value);
4388
+ t.value = s.type === "number" ? Number(b.value) : b.value;
4389
+ }, V = R(() => s.invalid === !0 && s.errorMessage ? u : void 0);
4390
+ return J(() => t.value, () => {
4391
+ We(l.value, r.value);
4392
+ }), ve(() => {
4393
+ We(l.value, r.value);
4392
4394
  }), (x, b) => (p(), k("div", {
4393
4395
  class: fe(["textarea-box", { required: Z(m), error: e.invalid }]),
4394
4396
  ref_key: "inputBoxRef",
4395
- ref: s
4397
+ ref: r
4396
4398
  }, [
4397
4399
  I("label", {
4398
4400
  for: e.id,
@@ -4400,8 +4402,8 @@ const bo = ["aria-busy"], ko = {
4400
4402
  }, K(e.label), 9, Bo),
4401
4403
  I("textarea", be({ id: e.id }, x.$attrs, {
4402
4404
  class: "custom-textarea",
4403
- onFocus: b[0] || (b[0] = (E) => Z(On)(E, s.value, i)),
4404
- onBlur: b[1] || (b[1] = (E) => Z(qn)(E, l.value, s.value, i)),
4405
+ onFocus: b[0] || (b[0] = (E) => Z(On)(E, r.value, i)),
4406
+ onBlur: b[1] || (b[1] = (E) => Z(qn)(E, l.value, r.value, i)),
4405
4407
  onInput: L,
4406
4408
  value: t.value,
4407
4409
  required: Z(m),
@@ -4428,7 +4430,7 @@ const bo = ["aria-busy"], ko = {
4428
4430
  }, null, 8, ["invalid", "errorMessage"])
4429
4431
  ], 2));
4430
4432
  }
4431
- }), ql = /* @__PURE__ */ W(Eo, [["__scopeId", "data-v-3615613f"]]), Ro = { key: 0 }, So = { key: 1 }, Do = /* @__PURE__ */ z({
4433
+ }), ql = /* @__PURE__ */ W(Eo, [["__scopeId", "data-v-03dbbf13"]]), Ro = { key: 0 }, So = { key: 1 }, Do = /* @__PURE__ */ z({
4432
4434
  __name: "Highlight",
4433
4435
  props: {
4434
4436
  text: {},
@@ -4437,9 +4439,9 @@ const bo = ["aria-busy"], ko = {
4437
4439
  setup(e) {
4438
4440
  const n = (t, a) => {
4439
4441
  if (!a) return [{ text: t, match: !1 }];
4440
- const o = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(o, "ig"), r = [];
4442
+ const o = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(o, "ig"), s = [];
4441
4443
  let l = 0;
4442
- return t.replace(i, (s, c) => (c > l && r.push({ text: t.slice(l, c), match: !1 }), r.push({ text: s, match: !0 }), l = c + s.length, s)), l < t.length && r.push({ text: t.slice(l), match: !1 }), r;
4444
+ return t.replace(i, (r, c) => (c > l && s.push({ text: t.slice(l, c), match: !1 }), s.push({ text: r, match: !0 }), l = c + r.length, r)), l < t.length && s.push({ text: t.slice(l), match: !1 }), s;
4443
4445
  };
4444
4446
  return (t, a) => (p(!0), k(de, null, he(n(e.text, e.query), (o, i) => (p(), k(de, { key: i }, [
4445
4447
  o.match ? (p(), k("mark", Ro, K(o.text), 1)) : (p(), k("span", So, K(o.text), 1))
@@ -4483,7 +4485,7 @@ const bo = ["aria-busy"], ko = {
4483
4485
  },
4484
4486
  emits: ["valid"],
4485
4487
  setup(e, { emit: n }) {
4486
- const t = e, a = n, o = M([]), i = M(null), r = M(null), l = (f, C) => f && (o.value[C] = f);
4488
+ const t = e, a = n, o = M([]), i = M(null), s = M(null), l = (f, C) => f && (o.value[C] = f);
4487
4489
  J(
4488
4490
  () => t.password,
4489
4491
  () => {
@@ -4495,14 +4497,14 @@ const bo = ["aria-busy"], ko = {
4495
4497
  a("valid", c());
4496
4498
  }
4497
4499
  );
4498
- const s = {
4500
+ const r = {
4499
4501
  "--strength-fill-color": t.strengthFillColor
4500
4502
  }, c = () => {
4501
4503
  const f = u(), C = Object.values(h()).every(Boolean);
4502
4504
  return f && C;
4503
4505
  }, u = () => {
4504
4506
  const f = h(), C = Object.values(f).filter(Boolean).length, L = t.password.length >= 12 ? 1 : 0, V = Math.min(100, (C + L) * 20), x = Math.min(t.labels.length - 1, Math.floor(V / 25));
4505
- return i.value && (i.value.style.width = `${V}%`), r.value && (r.value.textContent = t.labels[x] ?? "Very weak"), C === t.rules.length;
4507
+ return i.value && (i.value.style.width = `${V}%`), s.value && (s.value.textContent = t.labels[x] ?? "Very weak"), C === t.rules.length;
4506
4508
  }, h = () => {
4507
4509
  const f = m();
4508
4510
  return o.value.forEach((C) => {
@@ -4536,12 +4538,12 @@ const bo = ["aria-busy"], ko = {
4536
4538
  C[1] || (C[1] = I("span", null, "Força da senha", -1)),
4537
4539
  I("span", {
4538
4540
  ref_key: "strengthLabelRef",
4539
- ref: r
4541
+ ref: s
4540
4542
  }, "Muito fraca", 512)
4541
4543
  ]),
4542
4544
  I("div", {
4543
4545
  class: "strength-bar",
4544
- style: s
4546
+ style: r
4545
4547
  }, [
4546
4548
  I("div", {
4547
4549
  class: "strength-fill",
@@ -4570,19 +4572,19 @@ const Po = {
4570
4572
  separator: { default: "/" }
4571
4573
  },
4572
4574
  setup(e) {
4573
- const n = e, t = pe(Ut), a = (l) => l === n.items.length - 1, o = (l, s) => i(l, s), i = (l, s) => a(s) || l.disabled ? "span" : l.to && t ? zt("RouterLink") : l.href ? "a" : "span", r = (l, s) => a(s) || l.disabled ? { "data-disabled": l.disabled || void 0 } : l.to ? { to: l.to } : l.href ? {
4575
+ const n = e, t = pe(Ut), a = (l) => l === n.items.length - 1, o = (l, r) => i(l, r), i = (l, r) => a(r) || l.disabled ? "span" : l.to && t ? zt("RouterLink") : l.href ? "a" : "span", s = (l, r) => a(r) || l.disabled ? { "data-disabled": l.disabled || void 0 } : l.to ? { to: l.to } : l.href ? {
4574
4576
  href: l.href,
4575
4577
  target: l.external ? "_blank" : void 0,
4576
4578
  rel: l.external ? "noopener noreferrer" : void 0,
4577
4579
  "aria-label": l.external ? `${l.label} (opens in a new tab)` : void 0
4578
4580
  } : {};
4579
- return (l, s) => (p(), k("nav", Po, [
4581
+ return (l, r) => (p(), k("nav", Po, [
4580
4582
  I("ol", Uo, [
4581
4583
  (p(!0), k(de, null, he(e.items, (c, u) => (p(), k("li", {
4582
4584
  key: c.to ?? c.href ?? `${c.label}-${u}`,
4583
4585
  class: "ui-breadcrumb__item"
4584
4586
  }, [
4585
- (p(), ae(ze(o(c, u)), be({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, r(c, u), {
4587
+ (p(), ae(ze(o(c, u)), be({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, s(c, u), {
4586
4588
  "aria-posinset": u + 1,
4587
4589
  "aria-setsize": e.items.length,
4588
4590
  "aria-current": a(u) ? "page" : void 0,
@@ -4625,23 +4627,23 @@ const Po = {
4625
4627
  emits: ["update:modelValue"],
4626
4628
  setup(e) {
4627
4629
  const n = e, t = ke(e, "modelValue"), a = R(() => n.invalid ? "true" : void 0), o = R(() => n.required && !n.disabled ? "true" : void 0), i = R(() => n.disabled ? !0 : void 0);
4628
- return (r, l) => (p(), k("fieldset", {
4630
+ return (s, l) => (p(), k("fieldset", {
4629
4631
  class: fe(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
4630
4632
  "aria-invalid": a.value,
4631
4633
  "aria-required": o.value,
4632
4634
  disabled: i.value
4633
4635
  }, [
4634
4636
  I("legend", Yo, K(e.name), 1),
4635
- (p(!0), k(de, null, he(e.options, (s) => (p(), k("label", {
4636
- key: s.key,
4637
- class: fe(["radio", { checked: t.value === s.key, disabled: e.disabled || s.disabled }])
4637
+ (p(!0), k(de, null, he(e.options, (r) => (p(), k("label", {
4638
+ key: r.key,
4639
+ class: fe(["radio", { checked: t.value === r.key, disabled: e.disabled || r.disabled }])
4638
4640
  }, [
4639
4641
  Be(I("input", {
4640
4642
  type: "radio",
4641
4643
  class: "radio-input",
4642
4644
  name: e.name,
4643
- value: s.key,
4644
- disabled: e.disabled || s.disabled,
4645
+ value: r.key,
4646
+ disabled: e.disabled || r.disabled,
4645
4647
  required: e.required,
4646
4648
  "onUpdate:modelValue": l[0] || (l[0] = (c) => t.value = c)
4647
4649
  }, null, 8, Xo), [
@@ -4649,12 +4651,12 @@ const Po = {
4649
4651
  ]),
4650
4652
  e.mode === "standard" ? (p(), k("span", Go)) : O("", !0),
4651
4653
  I("span", Jo, [
4652
- s.icon ? (p(), ae(Ce, {
4654
+ r.icon ? (p(), ae(Ce, {
4653
4655
  key: 0,
4654
- name: s.icon,
4656
+ name: r.icon,
4655
4657
  size: 22
4656
4658
  }, null, 8, ["name"])) : O("", !0),
4657
- Me(" " + K(s.label), 1)
4659
+ Me(" " + K(r.label), 1)
4658
4660
  ])
4659
4661
  ], 2))), 128))
4660
4662
  ], 10, Wo));
@@ -4701,19 +4703,19 @@ const Po = {
4701
4703
  }),
4702
4704
  emits: /* @__PURE__ */ se(["change", "select", "focus", "blur"], ["update:modelValue"]),
4703
4705
  setup(e, { emit: n }) {
4704
- const t = e, a = n, o = ke(e, "modelValue"), i = M(null), r = M(""), l = M(!1), s = M([]), c = M(null), u = M(null), h = R(() => t.id ? `${t.id}-search-history` : "search-history"), f = `${ge()}-list`, C = M(!1), L = R(() => o.value !== null && o.value !== void 0 && o.value !== ""), V = R(() => c.value !== null ? `${f}-option-${c.value}` : void 0), x = R(() => l.value && V.value ? V.value : void 0), b = R(() => s.value.length > 0), E = R(() => {
4706
+ const t = e, a = n, o = ke(e, "modelValue"), i = M(null), s = M(""), l = M(!1), r = M([]), c = M(null), u = M(null), h = R(() => t.id ? `${t.id}-search-history` : "search-history"), f = `${ge()}-list`, C = M(!1), L = R(() => o.value !== null && o.value !== void 0 && o.value !== ""), V = R(() => c.value !== null ? `${f}-option-${c.value}` : void 0), x = R(() => l.value && V.value ? V.value : void 0), b = R(() => r.value.length > 0), E = R(() => {
4705
4707
  if (!t.filterable) return t.options;
4706
- const w = r.value.toLowerCase();
4708
+ const w = s.value.toLowerCase();
4707
4709
  return t.options.filter((T) => t.getValue(T).toLowerCase().includes(w));
4708
- }), N = We(t).value;
4710
+ }), N = Ye(t).value;
4709
4711
  J(
4710
4712
  () => h.value,
4711
4713
  (w) => {
4712
4714
  if (w)
4713
4715
  try {
4714
- s.value = JSON.parse(localStorage.getItem(w) || "[]");
4716
+ r.value = JSON.parse(localStorage.getItem(w) || "[]");
4715
4717
  } catch {
4716
- s.value = [];
4718
+ r.value = [];
4717
4719
  }
4718
4720
  },
4719
4721
  { immediate: !0 }
@@ -4735,16 +4737,16 @@ const Po = {
4735
4737
  }
4736
4738
  );
4737
4739
  const U = (w) => {
4738
- r.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), C.value = !0, a("focus", w);
4740
+ s.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), C.value = !0, a("focus", w);
4739
4741
  }, oe = (w) => {
4740
4742
  const T = w.relatedTarget;
4741
- i.value?.contains(T) || (l.value = !1, o.value ? $() : r.value = "", C.value = !1, a("blur", w));
4743
+ i.value?.contains(T) || (l.value = !1, o.value ? $() : s.value = "", C.value = !1, a("blur", w));
4742
4744
  }, ie = (w, T) => {
4743
4745
  const Y = i.value;
4744
4746
  if (!Y || t.isDisabled(w)) return;
4745
- l.value = !1, g(r.value), u.value = T, c.value = T;
4747
+ l.value = !1, g(s.value), u.value = T, c.value = T;
4746
4748
  const v = t.getKey(w);
4747
- v && v.toString().length > 0 ? Y.classList.add("filled") : Y.classList.remove("filled"), r.value = t.getValue(w), o.value = v, a("select", v);
4749
+ v && v.toString().length > 0 ? Y.classList.add("filled") : Y.classList.remove("filled"), s.value = t.getValue(w), o.value = v, a("select", v);
4748
4750
  }, re = (w) => {
4749
4751
  if (!l.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
4750
4752
  l.value = !0, c.value = c.value ?? E.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
@@ -4775,11 +4777,11 @@ const Po = {
4775
4777
  while (T >= 0 && T < E.value.length && t.isDisabled(E.value[T]));
4776
4778
  T >= 0 && T < E.value.length && (c.value = T);
4777
4779
  }, D = () => {
4778
- r.value.length === 0 && (o.value = ""), r.value.length >= t.minChars ? (a("change", r.value), l.value = !0) : l.value = !1;
4780
+ s.value.length === 0 && (o.value = ""), s.value.length >= t.minChars ? (a("change", s.value), l.value = !0) : l.value = !1;
4779
4781
  }, $ = () => {
4780
4782
  if (o.value.toString().length === 0) return;
4781
4783
  const w = t.options.findIndex((T) => t.getKey(T) === o.value);
4782
- w > -1 ? (c.value = w, u.value = w, r.value = t.getValue(t.options[w])) : r.value = o.value.toString();
4784
+ w > -1 ? (c.value = w, u.value = w, s.value = t.getValue(t.options[w])) : s.value = o.value.toString();
4783
4785
  };
4784
4786
  J(
4785
4787
  [() => t.options.length, () => o.value],
@@ -4789,14 +4791,14 @@ const Po = {
4789
4791
  { flush: "post", immediate: !0 }
4790
4792
  );
4791
4793
  const A = () => {
4792
- r.value = "", o.value = "";
4794
+ s.value = "", o.value = "";
4793
4795
  }, g = (w) => {
4794
- !w || w.trim().length === 0 || (s.value = [
4796
+ !w || w.trim().length === 0 || (r.value = [
4795
4797
  w,
4796
- ...s.value.filter((T) => T !== w)
4797
- ].slice(0, t.suggestionsLimit), localStorage.setItem(h.value, JSON.stringify(s.value)));
4798
+ ...r.value.filter((T) => T !== w)
4799
+ ].slice(0, t.suggestionsLimit), localStorage.setItem(h.value, JSON.stringify(r.value)));
4798
4800
  }, _ = (w) => {
4799
- r.value = w, D();
4801
+ s.value = w, D();
4800
4802
  }, S = () => {
4801
4803
  const w = q();
4802
4804
  w >= 0 && (c.value = w);
@@ -4826,13 +4828,13 @@ const Po = {
4826
4828
  "aria-invalid": e.invalid ? "true" : void 0,
4827
4829
  disabled: e.disabled ? !0 : void 0,
4828
4830
  "aria-disabled": e.disabled ? !0 : void 0,
4829
- "onUpdate:modelValue": T[0] || (T[0] = (Y) => r.value = Y),
4831
+ "onUpdate:modelValue": T[0] || (T[0] = (Y) => s.value = Y),
4830
4832
  onFocus: U,
4831
4833
  onBlur: oe,
4832
4834
  onInput: D,
4833
4835
  onKeydown: re
4834
4836
  }), null, 16, t2), [
4835
- [Ot, r.value]
4837
+ [Ot, s.value]
4836
4838
  ]),
4837
4839
  P(Ze, { name: "select" }, {
4838
4840
  default: Q(() => [
@@ -4860,14 +4862,14 @@ const Po = {
4860
4862
  G(w.$slots, "option", {
4861
4863
  option: Y,
4862
4864
  value: e.getValue(Y),
4863
- query: r.value,
4865
+ query: s.value,
4864
4866
  selected: v === u.value,
4865
4867
  active: v === c.value
4866
4868
  }, () => [
4867
4869
  I("div", n2, [
4868
4870
  P(To, {
4869
4871
  text: e.getValue(Y),
4870
- query: r.value
4872
+ query: s.value
4871
4873
  }, null, 8, ["text", "query"])
4872
4874
  ])
4873
4875
  ], !0),
@@ -4883,7 +4885,7 @@ const Po = {
4883
4885
  b.value ? (p(), k("li", r2, [...T[4] || (T[4] = [
4884
4886
  I("div", { class: "option-value" }, " Recents ", -1)
4885
4887
  ])])) : O("", !0),
4886
- (p(!0), k(de, null, he(s.value, (Y) => (p(), k("li", {
4888
+ (p(!0), k(de, null, he(r.value, (Y) => (p(), k("li", {
4887
4889
  key: Y,
4888
4890
  role: "presentation",
4889
4891
  "aria-hidden": "true",
@@ -4902,7 +4904,7 @@ const Po = {
4902
4904
  w.$slots.icon ? (p(), k("span", u2, [
4903
4905
  G(w.$slots, "icon", {}, void 0, !0)
4904
4906
  ])) : O("", !0),
4905
- r.value.length > 0 && !e.disabled ? (p(), ae(Le, {
4907
+ s.value.length > 0 && !e.disabled ? (p(), ae(Le, {
4906
4908
  key: 1,
4907
4909
  type: "button",
4908
4910
  class: "btn btn-icon",
@@ -4966,30 +4968,30 @@ const De = (e, n = "info") => {
4966
4968
  },
4967
4969
  setup(e) {
4968
4970
  const n = e, t = M(null), a = M("open"), o = M(100);
4969
- let i = Date.now(), r;
4971
+ let i = Date.now(), s;
4970
4972
  const l = () => {
4971
4973
  const u = Date.now() - i;
4972
4974
  if (o.value = Math.max(0, 100 - u / n.duration * 100), o.value <= 0) {
4973
4975
  c();
4974
4976
  return;
4975
4977
  }
4976
- r = requestAnimationFrame(l);
4977
- }, s = () => {
4978
- if (cancelAnimationFrame(r), n.duration === 1 / 0) {
4978
+ s = requestAnimationFrame(l);
4979
+ }, r = () => {
4980
+ if (cancelAnimationFrame(s), n.duration === 1 / 0) {
4979
4981
  o.value = 100;
4980
4982
  return;
4981
4983
  }
4982
- i = Date.now(), r = requestAnimationFrame(l);
4984
+ i = Date.now(), s = requestAnimationFrame(l);
4983
4985
  };
4984
4986
  J(
4985
4987
  () => n.duration,
4986
- () => s(),
4988
+ () => r(),
4987
4989
  { immediate: !0 }
4988
4990
  );
4989
4991
  const c = () => {
4990
- cancelAnimationFrame(r), a.value = "closing", setTimeout(() => we.toasts = we.toasts.filter((u) => u.id !== n.id), h2);
4992
+ cancelAnimationFrame(s), a.value = "closing", setTimeout(() => we.toasts = we.toasts.filter((u) => u.id !== n.id), h2);
4991
4993
  };
4992
- return ve(() => n.variant === "error" && n.focus && t.value?.focus()), _e(() => cancelAnimationFrame(r)), (u, h) => (p(), k("div", {
4994
+ return ve(() => n.variant === "error" && n.focus && t.value?.focus()), _e(() => cancelAnimationFrame(s)), (u, h) => (p(), k("div", {
4993
4995
  ref_key: "rootRef",
4994
4996
  ref: t,
4995
4997
  tabindex: "-1",
@@ -5082,21 +5084,21 @@ const jl = {
5082
5084
  setup(e, { emit: n }) {
5083
5085
  const t = e, a = n, o = M(), i = M();
5084
5086
  He("card:labelId", o), He("card:descriptionId", i);
5085
- const r = R(() => t.clickable && t.as !== "button" && t.as !== "a"), l = () => t.clickable && a("click");
5086
- return (s, c) => (p(), ae(ze(e.as), {
5087
+ const s = R(() => t.clickable && t.as !== "button" && t.as !== "a"), l = () => t.clickable && a("click");
5088
+ return (r, c) => (p(), ae(ze(e.as), {
5087
5089
  class: fe(["rs-card", { clickable: e.clickable }]),
5088
- tabindex: r.value ? 0 : void 0,
5089
- role: r.value ? "button" : void 0,
5090
+ tabindex: s.value ? 0 : void 0,
5091
+ role: s.value ? "button" : void 0,
5090
5092
  onClick: l,
5091
5093
  onKeydown: [
5092
- c[0] || (c[0] = ye(ce((u) => r.value && l(), ["prevent"]), ["enter"])),
5093
- c[1] || (c[1] = ye(ce((u) => r.value && l(), ["prevent"]), ["space"]))
5094
+ c[0] || (c[0] = ye(ce((u) => s.value && l(), ["prevent"]), ["enter"])),
5095
+ c[1] || (c[1] = ye(ce((u) => s.value && l(), ["prevent"]), ["space"]))
5094
5096
  ],
5095
5097
  "aria-labelledby": o.value,
5096
5098
  "aria-describedby": i.value
5097
5099
  }, {
5098
5100
  default: Q(() => [
5099
- G(s.$slots, "default", {}, void 0, !0)
5101
+ G(r.$slots, "default", {}, void 0, !0)
5100
5102
  ]),
5101
5103
  _: 3
5102
5104
  }, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
@@ -5169,8 +5171,8 @@ const jl = {
5169
5171
  setup(e) {
5170
5172
  const n = e, t = pe("StepsContext");
5171
5173
  if (!t) throw new Error("Step component must be used inside Steps.");
5172
- const a = st(), o = M(null), i = M(null), r = R(() => t.orientation ?? "horizontal");
5173
- let l = null, s = null;
5174
+ const a = st(), o = M(null), i = M(null), s = R(() => t.orientation ?? "horizontal");
5175
+ let l = null, r = null;
5174
5176
  const c = pe("StepIndex");
5175
5177
  if (c == null) throw new Error("StepIndex component must be used inside Steps.");
5176
5178
  const u = R(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = R(() => t?.icons?.[u.value]), m = R(() => a.icon ? "slot" : n.icon ? n.icon : h.value), f = R(() => {
@@ -5249,18 +5251,18 @@ const jl = {
5249
5251
  return ve(() => {
5250
5252
  !o.value || !i.value || (requestAnimationFrame(() => {
5251
5253
  requestAnimationFrame(b);
5252
- }), s = new ResizeObserver(() => {
5254
+ }), r = new ResizeObserver(() => {
5253
5255
  x();
5254
- }), s.observe(o.value), s.observe(i.value), t.stepsRef.value && s.observe(t.stepsRef.value), t.registerStep(o.value));
5256
+ }), r.observe(o.value), r.observe(i.value), t.stepsRef.value && r.observe(t.stepsRef.value), t.registerStep(o.value));
5255
5257
  }), Ve(() => {
5256
- s?.disconnect(), t.unregisterStep(o.value), l != null && cancelAnimationFrame(l);
5258
+ r?.disconnect(), t.unregisterStep(o.value), l != null && cancelAnimationFrame(l);
5257
5259
  }), (N, U) => (p(), k("li", {
5258
5260
  ref_key: "stepRef",
5259
5261
  ref: o,
5260
5262
  class: fe(["step", `step__${L.value}`]),
5261
5263
  role: "listitem",
5262
5264
  "data-status": u.value,
5263
- "data-orientation": r.value,
5265
+ "data-orientation": s.value,
5264
5266
  "data-active": u.value === "active",
5265
5267
  "data-completed": u.value === "completed",
5266
5268
  "aria-labelledby": `step-title-${Z(c)}`,
@@ -5354,7 +5356,7 @@ const jl = {
5354
5356
  }),
5355
5357
  emits: ["update:modelValue"],
5356
5358
  setup(e) {
5357
- const n = e, t = M(0), a = st(), o = ke(e, "modelValue"), i = M([]), r = M(null), l = R(() => o.value ?? 0), s = `steps-description-${ge()}`, c = Pt({}), u = $t({});
5359
+ const n = e, t = M(0), a = st(), o = ke(e, "modelValue"), i = M([]), s = M(null), l = R(() => o.value ?? 0), r = `steps-description-${ge()}`, c = Pt({}), u = $t({});
5358
5360
  let h = null;
5359
5361
  const m = R(() => (a.default?.() ?? [])[l.value]?.props?.title ?? ""), f = R(() => Object.entries(u).filter(([, F]) => F !== "completed").length === 0), C = R(
5360
5362
  () => Object.values(u).includes("error")
@@ -5410,8 +5412,8 @@ const jl = {
5410
5412
  N(t.value - 1);
5411
5413
  }
5412
5414
  return ve(() => {
5413
- r.value && (h = new ResizeObserver(() => {
5414
- }), h.observe(r.value));
5415
+ s.value && (h = new ResizeObserver(() => {
5416
+ }), h.observe(s.value));
5415
5417
  }), Ve(() => h?.disconnect()), He("StepsContext", {
5416
5418
  current: R(() => o.value),
5417
5419
  update: (F) => o.value = F,
@@ -5420,7 +5422,7 @@ const jl = {
5420
5422
  size: n.size,
5421
5423
  orientation: n.orientation,
5422
5424
  stepStatusMap: u,
5423
- stepsRef: r,
5425
+ stepsRef: s,
5424
5426
  registerStepStatus: (F, D) => {
5425
5427
  u[F] = D;
5426
5428
  },
@@ -5435,15 +5437,15 @@ const jl = {
5435
5437
  }), (F, D) => (p(), k(de, null, [
5436
5438
  I("ol", {
5437
5439
  ref_key: "stepsRef",
5438
- ref: r,
5440
+ ref: s,
5439
5441
  class: "steps",
5440
5442
  role: "list",
5441
5443
  "data-size": e.size,
5442
5444
  "data-orientation": n.orientation,
5443
- "aria-describedby": s
5445
+ "aria-describedby": r
5444
5446
  }, [
5445
5447
  I("p", {
5446
- id: s,
5448
+ id: r,
5447
5449
  class: "sr-only"
5448
5450
  }, " This is a multi-step process. Use arrow keys to navigate between steps. "),
5449
5451
  I("div", {
@@ -5498,10 +5500,10 @@ const jl = {
5498
5500
  setup(e) {
5499
5501
  const n = e, t = pe("TimelineContext");
5500
5502
  if (!t) throw new Error("TimelineItem must be used within a Timeline component");
5501
- const a = ge(), o = ge(), i = R(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), r = (c) => {
5503
+ const a = ge(), o = ge(), i = R(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), s = (c) => {
5502
5504
  const u = new Date(c).getDay();
5503
5505
  return u < 10 ? `0${u}` : u;
5504
- }, l = (c) => new Date(c).toLocaleString("default", { month: "short" }), s = (c) => new Date(c).getFullYear();
5506
+ }, l = (c) => new Date(c).toLocaleString("default", { month: "short" }), r = (c) => new Date(c).getFullYear();
5505
5507
  return (c, u) => (p(), k("li", {
5506
5508
  tabindex: "0",
5507
5509
  class: fe([i.value, "ui-timeline-item"]),
@@ -5520,8 +5522,8 @@ const jl = {
5520
5522
  datetime: e.date
5521
5523
  }, [
5522
5524
  I("span", W2, K(l(e.date)), 1),
5523
- I("span", Y2, K(r(e.date)), 1),
5524
- I("span", X2, K(s(e.date)), 1)
5525
+ I("span", Y2, K(s(e.date)), 1),
5526
+ I("span", X2, K(r(e.date)), 1)
5525
5527
  ], 8, j2)) : O("", !0),
5526
5528
  I("div", {
5527
5529
  class: "ui-timeline-body",
@@ -5583,7 +5585,7 @@ const jl = {
5583
5585
  }),
5584
5586
  emits: ["update:modelValue"],
5585
5587
  setup(e) {
5586
- const n = ke(e, "modelValue"), t = e, a = M(0), o = M(0), i = M(0), r = M(0), l = M(0), s = M(0), c = M(!1), u = M(!1), h = M(0), m = M([]), f = M(1), C = M(n.value), L = M(null), V = M(null);
5588
+ const n = ke(e, "modelValue"), t = e, a = M(0), o = M(0), i = M(0), s = M(0), l = M(0), r = M(0), c = M(!1), u = M(!1), h = M(0), m = M([]), f = M(1), C = M(n.value), L = M(null), V = M(null);
5587
5589
  let x = null, b = null;
5588
5590
  J(
5589
5591
  () => n.value,
@@ -5622,11 +5624,11 @@ const jl = {
5622
5624
  for (const [H, X] of d) v >= H && (y = X);
5623
5625
  return y;
5624
5626
  }, w = (v) => {
5625
- v.button === 0 && (u.value = !0, o.value = v.clientX, a.value = v.clientX, s.value = v.clientX, i.value = 0, r.value = performance.now(), l.value = 0, h.value = C.value, V.value?.setPointerCapture(v.pointerId), q(), V.value.style.userSelect = "");
5627
+ v.button === 0 && (u.value = !0, o.value = v.clientX, a.value = v.clientX, r.value = v.clientX, i.value = 0, s.value = performance.now(), l.value = 0, h.value = C.value, V.value?.setPointerCapture(v.pointerId), q(), V.value.style.userSelect = "");
5626
5628
  }, T = (v) => {
5627
5629
  if (!u.value) return;
5628
- const d = performance.now(), y = v.clientX - a.value, H = d - r.value;
5629
- H > 0 && (l.value = y / H), a.value = v.clientX, r.value = d, s.value = v.clientX, i.value = s.value - o.value;
5630
+ const d = performance.now(), y = v.clientX - a.value, H = d - s.value;
5631
+ H > 0 && (l.value = y / H), a.value = v.clientX, s.value = d, r.value = v.clientX, i.value = r.value - o.value;
5630
5632
  }, Y = (v) => {
5631
5633
  if (!u.value) return;
5632
5634
  u.value = !1, V.value?.releasePointerCapture(v.pointerId), V.value.style.userSelect = "";
@@ -5728,19 +5730,19 @@ const jl = {
5728
5730
  const n = pe("CarouselContext");
5729
5731
  if (!n) throw new Error("CarouselItem must be used inside a Carousel");
5730
5732
  const t = "carousel-item-" + ge(), a = M(0), o = R(() => Math.abs(n.deltaX.value) > 5), i = R(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
5731
- return ve(() => a.value = n.register(t)), Ve(() => n.unregister(t)), (r, l) => (p(), k("div", {
5733
+ return ve(() => a.value = n.register(t)), Ve(() => n.unregister(t)), (s, l) => (p(), k("div", {
5732
5734
  role: "group",
5733
5735
  class: "carousel-item",
5734
5736
  id: t,
5735
5737
  "aria-roledescription": "slide",
5736
5738
  "aria-hidden": !i.value,
5737
5739
  "aria-label": `Slide ${a.value + 1}`,
5738
- onClickCapture: l[0] || (l[0] = (s) => o.value && s.preventDefault())
5740
+ onClickCapture: l[0] || (l[0] = (r) => o.value && r.preventDefault())
5739
5741
  }, [
5740
- G(r.$slots, "default", {}, void 0, !0)
5742
+ G(s.$slots, "default", {}, void 0, !0)
5741
5743
  ], 40, cl));
5742
5744
  }
5743
- }), nr = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-a569d055"]]), Xe = /* @__PURE__ */ Symbol("TabsContext"), or = z({
5745
+ }), nr = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-a569d055"]]), Ge = /* @__PURE__ */ Symbol("TabsContext"), or = z({
5744
5746
  name: "Tabs",
5745
5747
  props: {
5746
5748
  modelValue: String,
@@ -5756,7 +5758,7 @@ const jl = {
5756
5758
  },
5757
5759
  emits: ["update:modelValue"],
5758
5760
  setup(e, { emit: n, slots: t }) {
5759
- const a = M(e.modelValue ?? e.defaultValue), o = M(!1), i = M([]), r = M("forward"), l = M();
5761
+ const a = M(e.modelValue ?? e.defaultValue), o = M(!1), i = M([]), s = M("forward"), l = M();
5760
5762
  J(a, (C) => {
5761
5763
  !C || !o.value || requestAnimationFrame(() => {
5762
5764
  document.getElementById(`tab-${C}`)?.focus(), o.value = !1;
@@ -5769,7 +5771,7 @@ const jl = {
5769
5771
  ), J(i, (C) => {
5770
5772
  !a.value && C.length && (a.value = C[0]);
5771
5773
  });
5772
- const s = (C, L) => i.value[L] = C, c = (C) => {
5774
+ const r = (C, L) => i.value[L] = C, c = (C) => {
5773
5775
  const L = i.value.filter(Boolean);
5774
5776
  if (!L.length) return;
5775
5777
  const V = a.value;
@@ -5782,8 +5784,8 @@ const jl = {
5782
5784
  a.value = C, n("update:modelValue", C);
5783
5785
  return;
5784
5786
  }
5785
- x !== -1 && b !== -1 && (r.value = b > x ? "forward" : "backward"), V !== C && (a.value = C, n("update:modelValue", C));
5786
- }, u = R(() => r.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (C) => {
5787
+ x !== -1 && b !== -1 && (s.value = b > x ? "forward" : "backward"), V !== C && (a.value = C, n("update:modelValue", C));
5788
+ }, u = R(() => s.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (C) => {
5787
5789
  C instanceof HTMLElement && l.value && (l.value.style.height = `${C.offsetHeight}px`);
5788
5790
  }, m = (C) => {
5789
5791
  if (C instanceof HTMLElement && l.value) {
@@ -5795,11 +5797,11 @@ const jl = {
5795
5797
  }, f = () => {
5796
5798
  l.value && (l.value.style.height = "");
5797
5799
  };
5798
- return He(Xe, {
5800
+ return He(Ge, {
5799
5801
  activeValue: a,
5800
5802
  setValue: c,
5801
- registerTrigger: s,
5802
- direction: r,
5803
+ registerTrigger: r,
5804
+ direction: s,
5803
5805
  activationMode: M(e.activationMode),
5804
5806
  orientation: M(e.orientation),
5805
5807
  triggers: i,
@@ -5840,7 +5842,7 @@ const jl = {
5840
5842
  }), lr = z({
5841
5843
  name: "TabsList",
5842
5844
  setup(e, { slots: n }) {
5843
- const t = pe(Xe);
5845
+ const t = pe(Ge);
5844
5846
  if (!t) throw new Error("TabsList components must be used inside <Tabs>");
5845
5847
  return () => j(
5846
5848
  "div",
@@ -5869,15 +5871,15 @@ const jl = {
5869
5871
  }
5870
5872
  },
5871
5873
  setup(e, { slots: n }) {
5872
- const t = pe(Xe);
5874
+ const t = pe(Ge);
5873
5875
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
5874
- const a = R(() => t.activeValue.value === e.value), o = () => !e.disabled && t.setValue(e.value), i = (r) => {
5875
- if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(r.key)) return;
5876
- r.preventDefault();
5877
- const s = t.triggers.value.filter(Boolean);
5878
- let u = s.indexOf(e.value);
5876
+ const a = R(() => t.activeValue.value === e.value), o = () => !e.disabled && t.setValue(e.value), i = (s) => {
5877
+ if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(s.key)) return;
5878
+ s.preventDefault();
5879
+ const r = t.triggers.value.filter(Boolean);
5880
+ let u = r.indexOf(e.value);
5879
5881
  const h = t.orientation.value === "horizontal";
5880
- switch (r.key) {
5882
+ switch (s.key) {
5881
5883
  case "ArrowRight":
5882
5884
  h && u++;
5883
5885
  break;
@@ -5894,11 +5896,11 @@ const jl = {
5894
5896
  u = 0;
5895
5897
  break;
5896
5898
  case "End":
5897
- u = s.length - 1;
5899
+ u = r.length - 1;
5898
5900
  break;
5899
5901
  }
5900
- u = (u + s.length) % s.length;
5901
- const m = s[u];
5902
+ u = (u + r.length) % r.length;
5903
+ const m = r[u];
5902
5904
  t.activationMode.value === "auto" && t.setValue(m), requestAnimationFrame(() => {
5903
5905
  document.getElementById(`tab-${m}`)?.focus();
5904
5906
  });
@@ -5929,7 +5931,7 @@ const jl = {
5929
5931
  }
5930
5932
  },
5931
5933
  setup(e, { slots: n }) {
5932
- if (!pe(Xe)) throw new Error("TabsContent components must be used inside <Tabs>");
5934
+ if (!pe(Ge)) throw new Error("TabsContent components must be used inside <Tabs>");
5933
5935
  return () => j(
5934
5936
  "div",
5935
5937
  {
@@ -5951,22 +5953,22 @@ const jl = {
5951
5953
  const a = M(), o = (i) => {
5952
5954
  i.key === "ArrowDown" && (i.preventDefault(), n.focusNextItem(t)), i.key === "ArrowUp" && (i.preventDefault(), n.focusPrevItem(t)), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), a.value?.click(), n.close());
5953
5955
  };
5954
- return ve(() => t = n.registerItem(a.value)), (i, r) => (p(), k("div", {
5956
+ return ve(() => t = n.registerItem(a.value)), (i, s) => (p(), k("div", {
5955
5957
  ref_key: "itemRef",
5956
5958
  ref: a,
5957
5959
  role: "menuitem",
5958
5960
  class: "ui-dropdown-item",
5959
5961
  tabindex: "-1",
5960
5962
  onKeydown: o,
5961
- onClick: r[0] || (r[0] = //@ts-ignore
5963
+ onClick: s[0] || (s[0] = //@ts-ignore
5962
5964
  (...l) => Z(n).close && Z(n).close(...l)),
5963
- onPointerenter: r[1] || (r[1] = (l) => a.value?.focus())
5965
+ onPointerenter: s[1] || (s[1] = (l) => a.value?.focus())
5964
5966
  }, [
5965
5967
  G(i.$slots, "default", {}, void 0, !0)
5966
5968
  ], 544));
5967
5969
  }
5968
5970
  }), ir = /* @__PURE__ */ W(vl, [["__scopeId", "data-v-69de3d9c"]]), fl = (e) => {
5969
- const n = /* @__PURE__ */ new Date(), t = e.locale || "default", a = M(e.modelValue ?? null), o = M(e.modelValue ? new Date(e.modelValue) : n), i = e.firstDayOfWeek ?? 0, r = R(() => {
5971
+ const n = /* @__PURE__ */ new Date(), t = e.locale || "default", a = M(e.modelValue ?? null), o = M(e.modelValue ? new Date(e.modelValue) : n), i = e.firstDayOfWeek ?? 0, s = R(() => {
5970
5972
  const m = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(o.value);
5971
5973
  return m.charAt(0).toUpperCase() + m.slice(1);
5972
5974
  }), l = R(() => {
@@ -5975,7 +5977,7 @@ const jl = {
5975
5977
  const L = new Date(m);
5976
5978
  return L.setDate(m.getDate() + (C + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(L).replace(".", "");
5977
5979
  });
5978
- }), s = R(() => {
5980
+ }), r = R(() => {
5979
5981
  const m = o.value.getFullYear(), f = o.value.getMonth(), C = new Date(m, f, 1), L = new Date(m, f + 1, 0), V = (C.getDay() - i + 7) % 7, x = L.getDate(), b = [];
5980
5982
  for (let E = 0; E < V; E++) b.push(null);
5981
5983
  for (let E = 1; E <= x; E++) b.push(new Date(m, f, E));
@@ -5985,14 +5987,14 @@ const jl = {
5985
5987
  today: n,
5986
5988
  selected: a,
5987
5989
  currentMonth: o,
5988
- monthLabel: r,
5990
+ monthLabel: s,
5989
5991
  weekDays: l,
5990
- days: s,
5992
+ days: r,
5991
5993
  nextMonth: () => o.value = new Date(o.value.getFullYear(), o.value.getMonth() + 1, 1),
5992
5994
  prevMonth: () => o.value = new Date(o.value.getFullYear(), o.value.getMonth() - 1, 1),
5993
5995
  select: (m) => a.value = m
5994
5996
  };
5995
- }, Zt = /(DD|MM|YYYY|HH|mm|ss)/g, at = (e, n) => {
5997
+ }, Zt = /(DD|MM|YYYY|HH|mm|ss)/g, nt = (e, n) => {
5996
5998
  const t = {
5997
5999
  DD: String(e.getDate()).padStart(2, "0"),
5998
6000
  MM: String(e.getMonth() + 1).padStart(2, "0"),
@@ -6005,25 +6007,25 @@ const jl = {
6005
6007
  }, xt = (e, n) => {
6006
6008
  const t = n.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}$`), o = e.match(a);
6007
6009
  if (!o?.groups) return null;
6008
- const i = Number(o.groups.day ?? 1), r = Number(o.groups.month ?? 1), l = Number(o.groups.year ?? 1970), s = Number(o.groups.hour ?? 0), c = Number(o.groups.minute ?? 0), u = Number(o.groups.second ?? 0);
6009
- return ml(i, r, l) ? new Date(l, r - 1, i, s, c, u, 0) : null;
6010
+ const i = Number(o.groups.day ?? 1), s = Number(o.groups.month ?? 1), l = Number(o.groups.year ?? 1970), r = Number(o.groups.hour ?? 0), c = Number(o.groups.minute ?? 0), u = Number(o.groups.second ?? 0);
6011
+ return ml(i, s, l) ? new Date(l, s - 1, i, r, c, u, 0) : null;
6010
6012
  };
6011
6013
  function ml(e, n, t, a = 1900, o = 2100) {
6012
6014
  if (!Number.isInteger(e) || !Number.isInteger(n) || !Number.isInteger(t) || n < 1 || n > 12 || t < a || t > o) return !1;
6013
6015
  const i = new Date(t, n, 0).getDate();
6014
6016
  if (e < 1 || e > i) return !1;
6015
- const r = new Date(t, n - 1, e);
6016
- return r.getFullYear() === t && r.getMonth() === n - 1 && r.getDate() === e;
6017
+ const s = new Date(t, n - 1, e);
6018
+ return s.getFullYear() === t && s.getMonth() === n - 1 && s.getDate() === e;
6017
6019
  }
6018
6020
  const pl = (e, n) => {
6019
6021
  const t = e.replace(/\D/g, ""), a = n.match(Zt);
6020
6022
  if (!a) return e;
6021
6023
  let o = "", i = 0;
6022
- for (const r of a) {
6023
- const l = r.length, s = t.slice(i, i + l);
6024
- if (!s) break;
6025
- if (o += s, i += s.length, i < t.length) {
6026
- const c = n.indexOf(r) + r.length, u = n[c];
6024
+ for (const s of a) {
6025
+ const l = s.length, r = t.slice(i, i + l);
6026
+ if (!r) break;
6027
+ if (o += r, i += r.length, i < t.length) {
6028
+ const c = n.indexOf(s) + s.length, u = n[c];
6027
6029
  u && !u.match(/[DMYHms]/) && (o += u);
6028
6030
  }
6029
6031
  }
@@ -6055,7 +6057,7 @@ const pl = (e, n) => {
6055
6057
  }),
6056
6058
  emits: /* @__PURE__ */ se(["update:open"], ["update:modelValue"]),
6057
6059
  setup(e, { emit: n }) {
6058
- const t = ke(e, "modelValue"), a = n, o = e, i = M(!1), r = /* @__PURE__ */ new Date(), l = M(""), s = M(null), c = M(null), {
6060
+ const t = ke(e, "modelValue"), a = n, o = e, i = M(!1), s = /* @__PURE__ */ new Date(), l = M(""), r = M(null), c = M(null), {
6059
6061
  monthLabel: u,
6060
6062
  weekDays: h,
6061
6063
  currentMonth: m,
@@ -6075,7 +6077,7 @@ const pl = (e, n) => {
6075
6077
  l.value = "", c.value = null;
6076
6078
  return;
6077
6079
  }
6078
- V(D), m.value = new Date(D), c.value = D, l.value = at(D, o.format);
6080
+ V(D), m.value = new Date(D), c.value = D, l.value = nt(D, o.format);
6079
6081
  },
6080
6082
  { immediate: !0 }
6081
6083
  ), J(
@@ -6083,21 +6085,21 @@ const pl = (e, n) => {
6083
6085
  async (D) => {
6084
6086
  if (D) {
6085
6087
  await $e();
6086
- let $ = s.value?.querySelector('button[data-selected="true"]');
6088
+ let $ = r.value?.querySelector('button[data-selected="true"]');
6087
6089
  if (!$) {
6088
6090
  const A = /* @__PURE__ */ new Date();
6089
- $ = Array.from(s.value?.querySelectorAll("button") || []).find((g) => Number(g.textContent) === A.getDate() && !g.disabled);
6091
+ $ = Array.from(r.value?.querySelectorAll("button") || []).find((g) => Number(g.textContent) === A.getDate() && !g.disabled);
6090
6092
  }
6091
6093
  $ && $.focus(), document.addEventListener("keydown", N);
6092
6094
  } else document.removeEventListener("keydown", N);
6093
6095
  }
6094
6096
  );
6095
6097
  const x = (D) => {
6096
- c.value = D, t.value = D, l.value = at(D, o.format), V(D), i.value = !1;
6098
+ c.value = D, t.value = D, l.value = nt(D, o.format), V(D), i.value = !1;
6097
6099
  }, b = (D) => {
6098
6100
  if (!D) return "";
6099
6101
  const $ = [];
6100
- return c.value && E(D, c.value) && $.push("dp-selected"), E(D, r) && $.push("dp-today"), $.join(" ");
6102
+ return c.value && E(D, c.value) && $.push("dp-selected"), E(D, s) && $.push("dp-today"), $.join(" ");
6101
6103
  }, E = (D, $) => D.getFullYear() === $.getFullYear() && D.getMonth() === $.getMonth() && D.getDate() === $.getDate(), N = (D) => D.key === "Escape" && (i.value = !1), U = (D) => {
6102
6104
  D.key === "Backspace" || D.key === "Delete" || D.key === "ArrowLeft" || D.key === "ArrowRight" || D.key === "Tab" || /[0-9]/.test(D.key) || D.preventDefault();
6103
6105
  }, oe = (D) => {
@@ -6119,14 +6121,14 @@ const pl = (e, n) => {
6119
6121
  }, ie = () => {
6120
6122
  i.value || (i.value = !0, a("update:open", !0));
6121
6123
  }, re = (D) => {
6122
- s.value && (s.value.contains(D.target) || (i.value = !1, a("update:open", !1)));
6124
+ r.value && (r.value.contains(D.target) || (i.value = !1, a("update:open", !1)));
6123
6125
  }, F = () => {
6124
6126
  const D = xt(l.value, o.format);
6125
- !D && !c.value ? (l.value = "", t.value = null, c.value = null) : D && (c.value = D, t.value = D, l.value = at(D, o.format));
6127
+ !D && !c.value ? (l.value = "", t.value = null, c.value = null) : D && (c.value = D, t.value = D, l.value = nt(D, o.format));
6126
6128
  };
6127
6129
  return ve(() => document.addEventListener("mousedown", re)), _e(() => document.removeEventListener("mousedown", re)), (D, $) => (p(), k("div", {
6128
6130
  ref_key: "root",
6129
- ref: s,
6131
+ ref: r,
6130
6132
  class: fe(["dp", { required: Object.keys(D.$attrs).includes("required"), error: e.invalid }])
6131
6133
  }, [
6132
6134
  I("label", {
@@ -6240,7 +6242,7 @@ const pl = (e, n) => {
6240
6242
  }),
6241
6243
  emits: ["update:modelValue"],
6242
6244
  setup(e) {
6243
- const n = ke(e, "modelValue"), t = e, a = ge(), o = M(!1), i = M(null), r = R(() => t.format.includes("HH")), l = R(() => t.format.includes("mm")), s = R(() => t.format.includes("ss")), c = M(n.value ?? null), u = M(n.value?.getHours() ?? (r.value ? 0 : void 0)), h = M(n.value?.getMinutes() ?? (l.value ? 0 : void 0)), m = M(n.value?.getSeconds() ?? (s.value ? 0 : void 0));
6245
+ const n = ke(e, "modelValue"), t = e, a = ge(), o = M(!1), i = M(null), s = R(() => t.format.includes("HH")), l = R(() => t.format.includes("mm")), r = R(() => t.format.includes("ss")), c = M(n.value ?? null), u = M(n.value?.getHours() ?? (s.value ? 0 : void 0)), h = M(n.value?.getMinutes() ?? (l.value ? 0 : void 0)), m = M(n.value?.getSeconds() ?? (r.value ? 0 : void 0));
6244
6246
  J(n, (x) => {
6245
6247
  if (x) {
6246
6248
  const b = new Date(x);
@@ -6295,7 +6297,7 @@ const pl = (e, n) => {
6295
6297
  }), {
6296
6298
  time: Q(() => [
6297
6299
  o.value ? (p(), k("div", Il, [
6298
- r.value ? Be((p(), k("input", {
6300
+ s.value ? Be((p(), k("input", {
6299
6301
  key: 0,
6300
6302
  id: `hour_${Z(a)}`,
6301
6303
  type: "number",
@@ -6315,7 +6317,7 @@ const pl = (e, n) => {
6315
6317
  { number: !0 }
6316
6318
  ]
6317
6319
  ]) : O("", !0),
6318
- r.value && l.value ? (p(), k("span", Vl, ":")) : O("", !0),
6320
+ s.value && l.value ? (p(), k("span", Vl, ":")) : O("", !0),
6319
6321
  l.value ? Be((p(), k("input", {
6320
6322
  key: 2,
6321
6323
  id: `minute_${Z(a)}`,
@@ -6336,8 +6338,8 @@ const pl = (e, n) => {
6336
6338
  { number: !0 }
6337
6339
  ]
6338
6340
  ]) : O("", !0),
6339
- (r.value || l.value) && s.value ? (p(), k("span", Al, ":")) : O("", !0),
6340
- s.value ? Be((p(), k("input", {
6341
+ (s.value || l.value) && r.value ? (p(), k("span", Al, ":")) : O("", !0),
6342
+ r.value ? Be((p(), k("input", {
6341
6343
  key: 4,
6342
6344
  id: `second_${Z(a)}`,
6343
6345
  type: "number",
@@ -6390,11 +6392,11 @@ const pl = (e, n) => {
6390
6392
  },
6391
6393
  emits: ["update:sort", "rowClick"],
6392
6394
  setup(e, { emit: n, slots: t }) {
6393
- const a = (s) => {
6394
- if (!s.sortable) return;
6395
- const c = e.sort?.key === s.key && e.sort.direction === "asc" ? "desc" : "asc";
6396
- n("update:sort", { key: s.key, direction: c });
6397
- }, o = () => window.matchMedia("(max-width: 640px)").matches, i = (s, c) => c.split(".").reduce((u, h) => u?.[h], s), r = () => j(
6395
+ const a = (r) => {
6396
+ if (!r.sortable) return;
6397
+ const c = e.sort?.key === r.key && e.sort.direction === "asc" ? "desc" : "asc";
6398
+ n("update:sort", { key: r.key, direction: c });
6399
+ }, o = () => window.matchMedia("(max-width: 640px)").matches, i = (r, c) => c.split(".").reduce((u, h) => u?.[h], r), s = () => j(
6398
6400
  "div",
6399
6401
  {
6400
6402
  class: "rs-table-mobile",
@@ -6402,16 +6404,16 @@ const pl = (e, n) => {
6402
6404
  "aria-busy": e.loading || void 0
6403
6405
  },
6404
6406
  e.loading ? t.loading?.() ?? "Loading..." : e.data.length === 0 ? t.empty?.() ?? "No data available." : e.data.map(
6405
- (s, c) => j(
6407
+ (r, c) => j(
6406
6408
  "div",
6407
6409
  {
6408
- key: s.id ?? c,
6410
+ key: r.id ?? c,
6409
6411
  class: "rs-table-card",
6410
6412
  role: e.rowClickable ? "button" : "listitem",
6411
6413
  tabindex: e.rowClickable ? 0 : void 0,
6412
- onClick: e.rowClickable ? () => n("rowClick", s) : void 0,
6414
+ onClick: e.rowClickable ? () => n("rowClick", r) : void 0,
6413
6415
  onKeydown: e.rowClickable ? (u) => {
6414
- (u.key === "Enter" || u.key === " ") && (u.preventDefault(), n("rowClick", s));
6416
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), n("rowClick", r));
6415
6417
  } : void 0
6416
6418
  },
6417
6419
  e.columns.map(
@@ -6428,10 +6430,10 @@ const pl = (e, n) => {
6428
6430
  "span",
6429
6431
  { class: "rs-table-card-value" },
6430
6432
  t.cell?.({
6431
- row: s,
6433
+ row: r,
6432
6434
  column: u,
6433
- value: i(s, u.key)
6434
- }) ?? i(s, u.key)
6435
+ value: i(r, u.key)
6436
+ }) ?? i(r, u.key)
6435
6437
  )
6436
6438
  ]
6437
6439
  )
@@ -6458,19 +6460,19 @@ const pl = (e, n) => {
6458
6460
  "tr",
6459
6461
  null,
6460
6462
  e.columns.map(
6461
- (s) => j(
6463
+ (r) => j(
6462
6464
  "th",
6463
6465
  {
6464
- key: s.key,
6466
+ key: r.key,
6465
6467
  style: {
6466
- width: s.width || "auto",
6467
- textAlign: s.align || "left"
6468
+ width: r.width || "auto",
6469
+ textAlign: r.align || "left"
6468
6470
  },
6469
- "aria-sort": s.sortable ? e.sort?.key === s.key ? e.sort.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
6470
- tabindex: s.sortable ? 0 : void 0,
6471
- onClick: s.sortable ? () => a(s) : void 0,
6472
- onKeydown: s.sortable ? (c) => {
6473
- (c.key === "Enter" || c.key === " ") && (c.preventDefault(), a(s));
6471
+ "aria-sort": r.sortable ? e.sort?.key === r.key ? e.sort.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
6472
+ tabindex: r.sortable ? 0 : void 0,
6473
+ onClick: r.sortable ? () => a(r) : void 0,
6474
+ onKeydown: r.sortable ? (c) => {
6475
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), a(r));
6474
6476
  } : void 0,
6475
6477
  scope: "col"
6476
6478
  },
@@ -6480,12 +6482,12 @@ const pl = (e, n) => {
6480
6482
  [
6481
6483
  j(
6482
6484
  "span",
6483
- s.header
6485
+ r.header
6484
6486
  ),
6485
- s.sortable ? j(
6487
+ r.sortable ? j(
6486
6488
  Ce,
6487
6489
  {
6488
- name: e.sort?.key === s.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
6490
+ name: e.sort?.key === r.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
6489
6491
  size: 16
6490
6492
  }
6491
6493
  ) : null
@@ -6523,15 +6525,15 @@ const pl = (e, n) => {
6523
6525
  ]
6524
6526
  )
6525
6527
  ] : e.data.map(
6526
- (s, c) => j(
6528
+ (r, c) => j(
6527
6529
  "tr",
6528
6530
  {
6529
- key: s.id ?? c,
6531
+ key: r.id ?? c,
6530
6532
  tabindex: e.rowClickable ? 0 : void 0,
6531
6533
  role: e.rowClickable ? "button" : void 0,
6532
- onClick: e.rowClickable ? () => n("rowClick", s) : void 0,
6534
+ onClick: e.rowClickable ? () => n("rowClick", r) : void 0,
6533
6535
  onKeydown: e.rowClickable ? (u) => {
6534
- (u.key === "Enter" || u.key === " ") && (u.preventDefault(), n("rowClick", s));
6536
+ (u.key === "Enter" || u.key === " ") && (u.preventDefault(), n("rowClick", r));
6535
6537
  } : void 0,
6536
6538
  "data-clickable": e.rowClickable || void 0
6537
6539
  },
@@ -6545,10 +6547,10 @@ const pl = (e, n) => {
6545
6547
  }
6546
6548
  },
6547
6549
  t.cell?.({
6548
- row: s,
6550
+ row: r,
6549
6551
  column: u,
6550
- value: i(s, u.key)
6551
- }) ?? i(s, u.key)
6552
+ value: i(r, u.key)
6553
+ }) ?? i(r, u.key)
6552
6554
  )
6553
6555
  )
6554
6556
  )
@@ -6559,15 +6561,15 @@ const pl = (e, n) => {
6559
6561
  )
6560
6562
  );
6561
6563
  return () => {
6562
- const s = e.responsive === "card" || e.responsive === "auto" && o();
6564
+ const r = e.responsive === "card" || e.responsive === "auto" && o();
6563
6565
  return j(
6564
6566
  "div",
6565
6567
  { class: "rs-table-container" },
6566
- s ? r() : l()
6568
+ r ? s() : l()
6567
6569
  );
6568
6570
  };
6569
6571
  }
6570
- }), Ge = /* @__PURE__ */ Symbol("AccordionContext"), dr = z({
6572
+ }), Je = /* @__PURE__ */ Symbol("AccordionContext"), dr = z({
6571
6573
  name: "Accordion",
6572
6574
  props: {
6573
6575
  multiple: { type: Boolean, default: !1 },
@@ -6585,24 +6587,24 @@ const pl = (e, n) => {
6585
6587
  e.multiple || a.value.clear(), a.value.add(h);
6586
6588
  }, i = (h) => {
6587
6589
  h.disabled || t.value.includes(h) || (t.value.push(h), t.value.sort((m, f) => m.offsetTop - f.offsetTop));
6588
- }, r = (h) => t.value = t.value.filter((m) => m !== h), l = (h) => {
6590
+ }, s = (h) => t.value = t.value.filter((m) => m !== h), l = (h) => {
6589
6591
  const m = t.value.indexOf(h);
6590
6592
  t.value[(m + 1) % t.value.length]?.focus();
6591
- }, s = (h) => {
6593
+ }, r = (h) => {
6592
6594
  const m = t.value.indexOf(h);
6593
6595
  t.value[(m - 1 + t.value.length) % t.value.length]?.focus();
6594
6596
  }, c = () => t.value[0]?.focus(), u = () => {
6595
6597
  const h = t.value;
6596
6598
  h.length && h[h.length - 1]?.focus();
6597
6599
  };
6598
- return He(Ge, {
6600
+ return He(Je, {
6599
6601
  multiple: e.multiple,
6600
6602
  openItems: a,
6601
6603
  toggle: o,
6602
6604
  registerHeader: i,
6603
- unregisterHeader: r,
6605
+ unregisterHeader: s,
6604
6606
  focusNext: l,
6605
- focusPrev: s,
6607
+ focusPrev: r,
6606
6608
  focusFirst: c,
6607
6609
  focusLast: u
6608
6610
  }), () => n.default?.();
@@ -6614,7 +6616,7 @@ const pl = (e, n) => {
6614
6616
  disabled: { type: Boolean, default: !1 }
6615
6617
  },
6616
6618
  setup(e, { slots: n }) {
6617
- const t = pe(Ge);
6619
+ const t = pe(Je);
6618
6620
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
6619
6621
  const a = R(() => t.openItems.value.has(e.id));
6620
6622
  return () => j(
@@ -6633,11 +6635,11 @@ const pl = (e, n) => {
6633
6635
  disabled: { type: Boolean, default: !1 }
6634
6636
  },
6635
6637
  setup(e, { slots: n }) {
6636
- const t = pe(Ge), a = M(null);
6638
+ const t = pe(Je), a = M(null);
6637
6639
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
6638
6640
  const o = R(() => t.openItems.value.has(e.id)), i = () => {
6639
6641
  e.disabled || t.toggle?.(e.id);
6640
- }, r = (l) => {
6642
+ }, s = (l) => {
6641
6643
  if (a.value)
6642
6644
  switch (l.key) {
6643
6645
  case "ArrowDown":
@@ -6670,7 +6672,7 @@ const pl = (e, n) => {
6670
6672
  disabled: e.disabled,
6671
6673
  "data-state": o.value ? "open" : "closed",
6672
6674
  onClick: i,
6673
- onKeydown: r
6675
+ onKeydown: s
6674
6676
  },
6675
6677
  [
6676
6678
  j(
@@ -6692,7 +6694,7 @@ const pl = (e, n) => {
6692
6694
  id: { type: String, required: !0 }
6693
6695
  },
6694
6696
  setup(e, { slots: n }) {
6695
- const t = pe(Ge);
6697
+ const t = pe(Je);
6696
6698
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
6697
6699
  const a = R(() => t.openItems.value.has(e.id));
6698
6700
  return () => j(