@reinosoft-ui/core 0.1.82 → 0.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { defineComponent as z, ref as M, computed as E, watch as Q, onMounted as ve, createElementBlock as b, openBlock as v, normalizeStyle as He, normalizeClass as fe, renderSlot as G, createCommentVNode as O, withDirectives as Ae, createElementVNode as x, vShow as rt, mergeProps as ke, mergeModels as ie, useModel as we, withKeys as ye, withModifiers as se, onUnmounted as Be, Fragment as de, unref as D, toDisplayString as K, renderList as he, nextTick as Ie, onBeforeUnmount as Se, createBlock as ae, Teleport as qe, createVNode as U, Transition as _e, withCtx as J, vModelText as We, useId as ge, provide as Ve, createTextVNode as Le, resolveDynamicComponent as Ne, inject as pe, useAttrs as st, h as j, useSlots as it, resolveComponent as Ut, vModelRadio as Kt, vModelDynamic as jt, reactive as ut, TransitionGroup as Wt, createApp as Bt, shallowRef as Yt } from "vue";
1
+ import { defineComponent as Z, ref as M, computed as E, watch as Q, onMounted as ve, createElementBlock as b, openBlock as v, normalizeStyle as Ie, normalizeClass as fe, renderSlot as G, createCommentVNode as O, withDirectives as _e, createElementVNode as x, vShow as rt, mergeProps as be, mergeModels as ie, useModel as ke, withKeys as ye, withModifiers as se, onUnmounted as Be, Fragment as de, unref as N, toDisplayString as K, renderList as he, nextTick as $e, onBeforeUnmount as Se, createBlock as ae, Teleport as Fe, createVNode as U, Transition as Ae, withCtx as J, vModelText as Ye, useId as ge, provide as He, createTextVNode as Me, resolveDynamicComponent as Ne, inject as pe, useAttrs as st, h as j, useSlots as it, resolveComponent as Ut, vModelRadio as Kt, vModelDynamic as jt, reactive as ut, TransitionGroup as Wt, createApp as _t, shallowRef as Yt } from "vue";
2
2
  import { routerKey as Xt } from "vue-router";
3
- const Gt = ["aria-busy"], Jt = ["aria-label"], Qt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], e1 = /* @__PURE__ */ z({
3
+ const Gt = ["aria-busy"], Jt = ["aria-label"], Qt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], e1 = /* @__PURE__ */ Z({
4
4
  __name: "Image",
5
5
  props: {
6
6
  src: {},
@@ -39,7 +39,7 @@ const Gt = ["aria-busy"], Jt = ["aria-label"], Qt = ["src", "srcset", "sizes", "
39
39
  "is-loaded": r.value === "loaded",
40
40
  transform: e.transform
41
41
  }]),
42
- style: He(l.value),
42
+ style: Ie(l.value),
43
43
  "aria-busy": r.value === "loading" || void 0
44
44
  }, [
45
45
  r.value === "loading" ? G(u.$slots, "placeholder", { key: 0 }, () => [
@@ -54,7 +54,7 @@ const Gt = ["aria-busy"], Jt = ["aria-label"], Qt = ["src", "srcset", "sizes", "
54
54
  "aria-label": e.decorative ? void 0 : e.alt
55
55
  }, "Image not available", 8, Jt)
56
56
  ], !0) : O("", !0),
57
- Ae(x("img", {
57
+ _e(x("img", {
58
58
  ref_key: "imgRef",
59
59
  ref: i,
60
60
  class: "ui-image__img",
@@ -81,13 +81,13 @@ const Gt = ["aria-busy"], Jt = ["aria-label"], Qt = ["src", "srcset", "sizes", "
81
81
  ze.install = (e) => {
82
82
  e.component("Image", ze);
83
83
  };
84
- const t1 = /* @__PURE__ */ z({
84
+ const t1 = /* @__PURE__ */ Z({
85
85
  __name: "Button",
86
86
  setup(e, { expose: n }) {
87
87
  const t = M();
88
88
  return n({
89
89
  el: t
90
- }), (a, o) => (v(), b("button", ke({
90
+ }), (a, o) => (v(), b("button", be({
91
91
  ref_key: "rootRef",
92
92
  ref: t,
93
93
  type: "button",
@@ -96,11 +96,11 @@ const t1 = /* @__PURE__ */ z({
96
96
  G(a.$slots, "default", {}, void 0, !0)
97
97
  ], 16));
98
98
  }
99
- }), xe = /* @__PURE__ */ W(t1, [["__scopeId", "data-v-59076f1d"]]);
100
- xe.install = (e) => {
101
- e.component("Button", xe);
99
+ }), Le = /* @__PURE__ */ W(t1, [["__scopeId", "data-v-59076f1d"]]);
100
+ Le.install = (e) => {
101
+ e.component("Button", Le);
102
102
  };
103
- const a1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], n1 = /* @__PURE__ */ z({
103
+ const a1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], n1 = /* @__PURE__ */ Z({
104
104
  __name: "Toggle",
105
105
  props: /* @__PURE__ */ ie({
106
106
  id: {},
@@ -111,7 +111,7 @@ const a1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], n1
111
111
  }),
112
112
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
113
113
  setup(e, { emit: n }) {
114
- const t = we(e, "modelValue"), a = n, o = e, i = E(() => t.value), r = () => {
114
+ const t = ke(e, "modelValue"), a = n, o = e, i = E(() => t.value), r = () => {
115
115
  if (o.disabled) return;
116
116
  const l = !t.value;
117
117
  t.value = l, a("change", l);
@@ -164,7 +164,7 @@ const At = (e) => {
164
164
  }
165
165
  const t = window.getSelection();
166
166
  if (!t || t.rangeCount === 0) return;
167
- const a = t.getRangeAt(0), o = _t(a.startContainer, "li");
167
+ const a = t.getRangeAt(0), o = Et(a.startContainer, "li");
168
168
  if (o) {
169
169
  e.preventDefault();
170
170
  const i = o.textContent?.trim() === "", r = o.parentElement;
@@ -179,7 +179,7 @@ const At = (e) => {
179
179
  return;
180
180
  }
181
181
  s1(e, n);
182
- }, _t = (e, n) => {
182
+ }, Et = (e, n) => {
183
183
  for (; e; ) {
184
184
  if (e instanceof HTMLElement && e.tagName.toLowerCase() === n) return e;
185
185
  e = e.parentNode;
@@ -214,7 +214,7 @@ const At = (e) => {
214
214
  }, Ct = (e) => {
215
215
  const n = window.getSelection();
216
216
  if (!n || n.rangeCount === 0) return;
217
- const t = n.getRangeAt(0), a = At(t.startContainer), o = _t(t.startContainer, "li");
217
+ const t = n.getRangeAt(0), a = At(t.startContainer), o = Et(t.startContainer, "li");
218
218
  if (o) {
219
219
  if (!(o.textContent?.trim() === "")) return;
220
220
  e.preventDefault();
@@ -282,8 +282,8 @@ const At = (e) => {
282
282
  if (me)
283
283
  l1(me), ce.push(le);
284
284
  else {
285
- const $e = document.createElement(f);
286
- le.replaceWith($e), $e.appendChild(le), ce.push(le);
285
+ const xe = document.createElement(f);
286
+ le.replaceWith(xe), xe.appendChild(le), ce.push(le);
287
287
  }
288
288
  }), ce.length > 0) {
289
289
  const ee = document.createRange();
@@ -395,7 +395,7 @@ const At = (e) => {
395
395
  if (!f || !t.value || !f || !f.contains(t.value.commonAncestorContainer)) return;
396
396
  const d = window.getSelection();
397
397
  d && (d.removeAllRanges(), d.addRange(t.value));
398
- }, A = () => l.value?.focusFirstButton?.(), N = (f) => {
398
+ }, _ = () => l.value?.focusFirstButton?.(), z = (f) => {
399
399
  const d = window.getSelection();
400
400
  if (!d || d.rangeCount === 0) return;
401
401
  const y = d.getRangeAt(0);
@@ -416,13 +416,13 @@ const At = (e) => {
416
416
  NodeFilter.SHOW_TEXT,
417
417
  null
418
418
  );
419
- let $e = 0, Fe = null, je = 0, Ee = null, Re = 0;
419
+ let xe = 0, Pe = null, We = 0, Ee = null, Re = 0;
420
420
  for (; me.nextNode(); ) {
421
- const De = me.currentNode, Qe = De.textContent?.length ?? 0;
422
- !Fe && $e + Qe >= ce && (Fe = De, je = ce - $e), !Ee && $e + Qe >= te && (Ee = De, Re = te - $e), $e += Qe;
421
+ const De = me.currentNode, et = De.textContent?.length ?? 0;
422
+ !Pe && xe + et >= ce && (Pe = De, We = ce - xe), !Ee && xe + et >= te && (Ee = De, Re = te - xe), xe += et;
423
423
  }
424
424
  const Te = document.createRange();
425
- Fe ? Te.setStart(Fe, je) : Te.setStart(le, 0), !ne && Ee ? Te.setEnd(Ee, Re) : Te.collapse(!0), d.removeAllRanges(), d.addRange(Te), s(), p();
425
+ Pe ? Te.setStart(Pe, We) : Te.setStart(le, 0), !ne && Ee ? Te.setEnd(Ee, Re) : Te.collapse(!0), d.removeAllRanges(), d.addRange(Te), s(), p();
426
426
  }, P = (f) => {
427
427
  const d = e.parentElement?.querySelector("#editor-status");
428
428
  d && (d.textContent = f, setTimeout(() => d.textContent = "", 2e3));
@@ -449,7 +449,7 @@ const At = (e) => {
449
449
  const y = document.createElement("img");
450
450
  y.src = f, y.loading = "lazy";
451
451
  const H = document.createElement("span");
452
- H.className = "resize-handle", d.append(y, H), Z(d.outerHTML);
452
+ H.className = "resize-handle", d.append(y, H), D(d.outerHTML);
453
453
  }, F = (f) => {
454
454
  const d = document.createElement("span");
455
455
  d.className = "img-resizable", d.style.display = "inline-block", d.style.position = "relative", d.style.width = "100%";
@@ -477,9 +477,9 @@ const At = (e) => {
477
477
  let ce = 0, ee = 0;
478
478
  const te = (ne) => {
479
479
  ne.preventDefault(), ee = d.offsetWidth, ce = ne instanceof TouchEvent ? ne.touches[0].clientX : ne.clientX;
480
- const le = ($e) => {
481
- const je = ($e instanceof TouchEvent ? $e.touches[0].clientX : $e.clientX) - ce, Ee = d.parentElement?.clientWidth || window.innerWidth;
482
- let Re = ee + je;
480
+ const le = (xe) => {
481
+ const We = (xe instanceof TouchEvent ? xe.touches[0].clientX : xe.clientX) - ce, Ee = d.parentElement?.clientWidth || window.innerWidth;
482
+ let Re = ee + We;
483
483
  Re > Ee && (Re = Ee), Re < 40 && (Re = 40);
484
484
  const Te = Re / Ee * 100;
485
485
  d.style.width = Te + "%";
@@ -498,13 +498,13 @@ const At = (e) => {
498
498
  y && (d.remove(), y.replaceChildren(document.createElement("br")), m(y));
499
499
  };
500
500
  e.addEventListener("keydown", I, { capture: !0 });
501
- const _ = (f) => {
501
+ const A = (f) => {
502
502
  const d = f.match(
503
503
  /(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/
504
504
  );
505
505
  if (!d) return;
506
506
  const y = d[1];
507
- Z(
507
+ D(
508
508
  `
509
509
  <iframe
510
510
  src="https://www.youtube.com/embed/${y}?autoplay=0&mute=0&controls=0&showinfo=0&rel=0&iv_load_policy=3&modestbranding=1&enablejsapi=1&playsinline=1"
@@ -531,7 +531,7 @@ const At = (e) => {
531
531
  if (!H) return;
532
532
  const X = H.querySelector("iframe");
533
533
  X && (f.preventDefault(), f.stopPropagation(), X.remove(), H.removeAttribute("style"), H.replaceChildren(document.createElement("br")), m(H));
534
- }, Z = (f, d) => {
534
+ }, D = (f, d) => {
535
535
  const y = e;
536
536
  if (!y) return;
537
537
  const H = window.getSelection();
@@ -580,7 +580,7 @@ const At = (e) => {
580
580
  if (!ce || ce.rangeCount === 0) return;
581
581
  const ee = ce.getRangeAt(0), te = C(ee.startContainer);
582
582
  if (te && te.textContent?.trim() === y && (te.innerHTML = "<br>"), H) {
583
- _(y);
583
+ A(y);
584
584
  return;
585
585
  }
586
586
  if (X) {
@@ -633,15 +633,15 @@ const At = (e) => {
633
633
  isBlockActive: V,
634
634
  focus: $,
635
635
  toolbarRef: l,
636
- focusFirstToolbarButton: A,
637
- replaceCurrentBlock: N,
636
+ focusFirstToolbarButton: _,
637
+ replaceCurrentBlock: z,
638
638
  buttons: a,
639
639
  announce: P,
640
640
  appendBlock: oe,
641
641
  insertBlockAfterCurrent: ue,
642
642
  appendImage: re,
643
643
  insertImage: F,
644
- appendVideo: _,
644
+ appendVideo: A,
645
645
  applyLink: T,
646
646
  removeLink: Y
647
647
  };
@@ -650,7 +650,7 @@ const At = (e) => {
650
650
  class: "sr-only",
651
651
  "aria-live": "polite",
652
652
  "aria-atomic": "true"
653
- }, f1 = /* @__PURE__ */ z({
653
+ }, f1 = /* @__PURE__ */ Z({
654
654
  __name: "EditorContent",
655
655
  props: {
656
656
  editor: {},
@@ -752,8 +752,8 @@ const At = (e) => {
752
752
  if (!$) return;
753
753
  const k = (V.startContainer instanceof Element ? V.startContainer : V.startContainer.parentElement)?.closest("[data-block]");
754
754
  if (m) {
755
- const A = l(m);
756
- u(k ? A : `<p data-block>${A}</p>`);
755
+ const _ = l(m);
756
+ u(k ? _ : `<p data-block>${_}</p>`);
757
757
  } else p && u(k ? p : `<p data-block>${p}</p>`);
758
758
  t.editor?.saveSelection(), $.dispatchEvent(new Event("input", { bubbles: !0 }));
759
759
  };
@@ -780,10 +780,10 @@ const At = (e) => {
780
780
  onPaste: h,
781
781
  onKeydown: [
782
782
  i,
783
- m[0] || (m[0] = ye((p) => D(r1)(p, e.editor), ["enter"])),
783
+ m[0] || (m[0] = ye((p) => N(r1)(p, e.editor), ["enter"])),
784
784
  m[1] || (m[1] = ye(
785
785
  //@ts-ignore
786
- (...p) => D(Ct) && D(Ct)(...p),
786
+ (...p) => N(Ct) && N(Ct)(...p),
787
787
  ["backspace"]
788
788
  ))
789
789
  ],
@@ -1033,7 +1033,7 @@ const At = (e) => {
1033
1033
  fill: "currentColor"
1034
1034
  }
1035
1035
  ]
1036
- }, A1 = {
1036
+ }, _1 = {
1037
1037
  viewBox: "0 0 24 24",
1038
1038
  paths: [
1039
1039
  {
@@ -1042,7 +1042,7 @@ const At = (e) => {
1042
1042
  fill: "currentColor"
1043
1043
  }
1044
1044
  ]
1045
- }, _1 = {
1045
+ }, A1 = {
1046
1046
  viewBox: "0 0 24 24",
1047
1047
  paths: [
1048
1048
  {
@@ -2041,7 +2041,7 @@ const At = (e) => {
2041
2041
  "stroke-width": 2
2042
2042
  }
2043
2043
  ]
2044
- }, Aa = {
2044
+ }, _a = {
2045
2045
  viewBox: "0 0 24 24",
2046
2046
  paths: [
2047
2047
  {
@@ -2081,7 +2081,7 @@ const At = (e) => {
2081
2081
  "stroke-width": 2
2082
2082
  }
2083
2083
  ]
2084
- }, _a = {
2084
+ }, Aa = {
2085
2085
  viewBox: "0 0 24 24",
2086
2086
  paths: [
2087
2087
  {
@@ -2269,7 +2269,7 @@ const At = (e) => {
2269
2269
  "stroke-linejoin": "round"
2270
2270
  }
2271
2271
  ]
2272
- }, et = {
2272
+ }, tt = {
2273
2273
  x: p1,
2274
2274
  eye: C1,
2275
2275
  sun: h1,
@@ -2283,8 +2283,8 @@ const At = (e) => {
2283
2283
  star: L1,
2284
2284
  home: $1,
2285
2285
  edit: x1,
2286
- disk: A1,
2287
- user: _1,
2286
+ disk: _1,
2287
+ user: A1,
2288
2288
  info: I1,
2289
2289
  sort: B1,
2290
2290
  tick: E1,
@@ -2339,9 +2339,9 @@ const At = (e) => {
2339
2339
  location: Ia,
2340
2340
  keyShield: Ha,
2341
2341
  clipboard: Ba,
2342
- corporate: Aa,
2342
+ corporate: _a,
2343
2343
  instagram: Va,
2344
- arrowLeft: _a,
2344
+ arrowLeft: Aa,
2345
2345
  starSolid: Ea,
2346
2346
  basketball: Sa,
2347
2347
  smartPhone: Ra,
@@ -2354,7 +2354,7 @@ const At = (e) => {
2354
2354
  shoppingBag: qa,
2355
2355
  directionDown: Fa,
2356
2356
  shoppingBasket: Pa
2357
- }, Ua = ["viewBox", "transform", "width", "height"], Ka = /* @__PURE__ */ z({
2357
+ }, Ua = ["viewBox", "transform", "width", "height"], Ka = /* @__PURE__ */ Z({
2358
2358
  __name: "Icon",
2359
2359
  props: {
2360
2360
  name: {},
@@ -2365,35 +2365,35 @@ const At = (e) => {
2365
2365
  return (n, t) => (v(), b("svg", {
2366
2366
  xmlns: "http://www.w3.org/2000/svg",
2367
2367
  class: fe(["icon", { spin: e.spin }]),
2368
- viewBox: D(et)[e.name].viewBox,
2369
- transform: D(et)[e.name].transform || void 0,
2368
+ viewBox: N(tt)[e.name].viewBox,
2369
+ transform: N(tt)[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
- (v(!0), b(de, null, he(D(et)[e.name].paths, (a, o) => (v(), b(de, { key: o }, [
2376
- a.type === "path" ? (v(), b("path", ke({
2375
+ (v(!0), b(de, null, he(N(tt)[e.name].paths, (a, o) => (v(), b(de, { key: o }, [
2376
+ a.type === "path" ? (v(), b("path", be({
2377
2377
  key: 0,
2378
2378
  ref_for: !0
2379
2379
  }, a), null, 16)) : O("", !0),
2380
- a.type === "circle" ? (v(), b("circle", ke({
2380
+ a.type === "circle" ? (v(), b("circle", be({
2381
2381
  key: 1,
2382
2382
  ref_for: !0
2383
2383
  }, a), null, 16)) : O("", !0),
2384
- a.type === "line" ? (v(), b("line", ke({
2384
+ a.type === "line" ? (v(), b("line", be({
2385
2385
  key: 2,
2386
2386
  ref_for: !0
2387
2387
  }, a), null, 16)) : O("", !0),
2388
- a.type === "polyline" ? (v(), b("polyline", ke({
2388
+ a.type === "polyline" ? (v(), b("polyline", be({
2389
2389
  key: 3,
2390
2390
  ref_for: !0
2391
2391
  }, a), null, 16)) : O("", !0),
2392
- a.type === "rect" ? (v(), b("rect", ke({
2392
+ a.type === "rect" ? (v(), b("rect", be({
2393
2393
  key: 4,
2394
2394
  ref_for: !0
2395
2395
  }, a), null, 16)) : O("", !0),
2396
- a.type === "polygon" ? (v(), b("polygon", ke({
2396
+ a.type === "polygon" ? (v(), b("polygon", be({
2397
2397
  key: 5,
2398
2398
  ref_for: !0
2399
2399
  }, a), null, 16)) : O("", !0)
@@ -2403,7 +2403,7 @@ const At = (e) => {
2403
2403
  }), Ce = /* @__PURE__ */ W(Ka, [["__scopeId", "data-v-dd8423eb"]]), ja = ["aria-controls"], Wa = ["aria-pressed", "onClick", "aria-label"], Ya = { key: 1 }, Xa = {
2404
2404
  key: 1,
2405
2405
  class: "link-popup"
2406
- }, tt = 8, Ga = 6, Ja = /* @__PURE__ */ z({
2406
+ }, at = 8, Ga = 6, Ja = /* @__PURE__ */ Z({
2407
2407
  __name: "FloatingToolbar",
2408
2408
  props: {
2409
2409
  editor: {},
@@ -2411,7 +2411,7 @@ const At = (e) => {
2411
2411
  buttons: {}
2412
2412
  },
2413
2413
  setup(e, { expose: n }) {
2414
- const t = e, a = tt + Ga, o = M(""), i = M(!1), r = M(!1), l = M([]), s = M(null), c = M({}), u = M(null);
2414
+ const t = e, a = at + Ga, o = M(""), i = M(!1), r = M(!1), l = M([]), s = M(null), c = M({}), u = M(null);
2415
2415
  let h = !1, C = null, m = null, p = null, L = 0;
2416
2416
  const V = () => {
2417
2417
  c.value = $();
@@ -2421,27 +2421,27 @@ const At = (e) => {
2421
2421
  p?.(), p = null, m?.disconnect(), m = null;
2422
2422
  return;
2423
2423
  }
2424
- await Ie(), await Ie(), V(), s.value && (m = new ResizeObserver(V), m.observe(s.value)), p = k(V);
2424
+ await $e(), await $e(), V(), s.value && (m = new ResizeObserver(V), m.observe(s.value)), p = k(V);
2425
2425
  }, { flush: "post" });
2426
2426
  const $ = () => {
2427
2427
  if (!t.editor?.rootElement) return {};
2428
- let Z = null;
2428
+ let D = null;
2429
2429
  if (i.value && C)
2430
- Z = C;
2430
+ D = C;
2431
2431
  else {
2432
2432
  const d = window.getSelection();
2433
2433
  if (!d || d.rangeCount === 0) return {};
2434
2434
  if (!i.value && d.isCollapsed) return {};
2435
- Z = d.getRangeAt(0);
2435
+ D = d.getRangeAt(0);
2436
2436
  }
2437
- if (!Z) return {};
2438
- const R = Z.getClientRects().item(0) ?? Z.getBoundingClientRect();
2437
+ if (!D) return {};
2438
+ const R = D.getClientRects().item(0) ?? D.getBoundingClientRect();
2439
2439
  if (!R || R.width === 0 && R.height === 0) return {};
2440
2440
  const q = s.value;
2441
2441
  if (!q) return {};
2442
2442
  const B = q.getBoundingClientRect(), w = B.width, T = R.left + R.width / 2, Y = Math.max(
2443
- w / 2 + tt,
2444
- Math.min(T, window.innerWidth - w / 2 - tt)
2443
+ w / 2 + at,
2444
+ Math.min(T, window.innerWidth - w / 2 - at)
2445
2445
  ), f = R.top - B.height - a;
2446
2446
  return f < 0 ? {} : {
2447
2447
  position: "fixed",
@@ -2449,20 +2449,20 @@ const At = (e) => {
2449
2449
  top: `${f}px`
2450
2450
  };
2451
2451
  }, k = (g) => {
2452
- let Z = 0;
2452
+ let D = 0;
2453
2453
  const R = () => {
2454
- cancelAnimationFrame(Z), Z = requestAnimationFrame(g);
2454
+ cancelAnimationFrame(D), D = requestAnimationFrame(g);
2455
2455
  }, q = R, B = R;
2456
2456
  return window.addEventListener("scroll", q, { capture: !0, passive: !0 }), window.addEventListener("resize", B, { passive: !0 }), () => {
2457
- cancelAnimationFrame(Z), window.removeEventListener("scroll", q, { capture: !0 }), window.removeEventListener("resize", B);
2457
+ cancelAnimationFrame(D), window.removeEventListener("scroll", q, { capture: !0 }), window.removeEventListener("resize", B);
2458
2458
  };
2459
- }, A = (g, Z) => {
2460
- g && (l.value[Z] = g);
2459
+ }, _ = (g, D) => {
2460
+ g && (l.value[D] = g);
2461
2461
  };
2462
2462
  Q(r, () => {
2463
2463
  l.value = [];
2464
2464
  });
2465
- const N = E(() => [
2465
+ const z = E(() => [
2466
2466
  {
2467
2467
  key: "strong",
2468
2468
  label: "bold",
@@ -2524,7 +2524,7 @@ const At = (e) => {
2524
2524
  g.removeLink(), g.focus();
2525
2525
  return;
2526
2526
  }
2527
- h = !0, i.value = !0, r.value = !0, Ie(() => {
2527
+ h = !0, i.value = !0, r.value = !0, $e(() => {
2528
2528
  u.value?.focus(), requestAnimationFrame(() => {
2529
2529
  h = !1;
2530
2530
  });
@@ -2533,23 +2533,23 @@ const At = (e) => {
2533
2533
  isActive: (g) => g.isInlineActive("a")
2534
2534
  }
2535
2535
  ]), P = E(() => [
2536
- ...N.value,
2536
+ ...z.value,
2537
2537
  ...t.editor?.buttons ?? []
2538
2538
  ]), oe = async () => {
2539
- await Ie(), l.value[0]?.focus();
2539
+ await $e(), l.value[0]?.focus();
2540
2540
  }, ue = (g) => {
2541
- const Z = l.value, R = Z.indexOf(document.activeElement);
2541
+ const D = l.value, R = D.indexOf(document.activeElement);
2542
2542
  if (g.key === "ArrowRight") {
2543
2543
  g.preventDefault();
2544
- const q = R < Z.length - 1 ? R + 1 : 0;
2545
- Z[q]?.focus();
2544
+ const q = R < D.length - 1 ? R + 1 : 0;
2545
+ D[q]?.focus();
2546
2546
  }
2547
2547
  if (g.key === "ArrowLeft") {
2548
2548
  g.preventDefault();
2549
- const q = R > 0 ? R - 1 : Z.length - 1;
2550
- Z[q]?.focus();
2549
+ const q = R > 0 ? R - 1 : D.length - 1;
2550
+ D[q]?.focus();
2551
2551
  }
2552
- if (g.key === "Home" && (g.preventDefault(), Z[0]?.focus()), g.key === "End" && (g.preventDefault(), Z[Z.length - 1]?.focus()), g.key === "Escape") {
2552
+ if (g.key === "Home" && (g.preventDefault(), D[0]?.focus()), g.key === "End" && (g.preventDefault(), D[D.length - 1]?.focus()), g.key === "Escape") {
2553
2553
  if (g.preventDefault(), i.value) {
2554
2554
  S(), t.editor?.focus();
2555
2555
  return;
@@ -2558,11 +2558,11 @@ const At = (e) => {
2558
2558
  }
2559
2559
  }, re = () => {
2560
2560
  cancelAnimationFrame(L), L = requestAnimationFrame(() => {
2561
- const g = window.getSelection(), Z = t.editor?.rootElement;
2562
- if (!Z) return;
2561
+ const g = window.getSelection(), D = t.editor?.rootElement;
2562
+ if (!D) return;
2563
2563
  if (g && g.rangeCount > 0) {
2564
2564
  const B = g.getRangeAt(0), w = B.commonAncestorContainer.nodeType === 3 ? B.commonAncestorContainer.parentNode : B.commonAncestorContainer;
2565
- Z.contains(w) && !g.isCollapsed && (C = B.cloneRange());
2565
+ D.contains(w) && !g.isCollapsed && (C = B.cloneRange());
2566
2566
  }
2567
2567
  if (i.value) {
2568
2568
  r.value = !0;
@@ -2573,7 +2573,7 @@ const At = (e) => {
2573
2573
  return;
2574
2574
  }
2575
2575
  const R = g.getRangeAt(0), q = R.commonAncestorContainer.nodeType === 3 ? R.commonAncestorContainer.parentNode : R.commonAncestorContainer;
2576
- r.value = Z.contains(q) && !g.isCollapsed;
2576
+ r.value = D.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());
@@ -2581,29 +2581,29 @@ const At = (e) => {
2581
2581
  i.value = !1, o.value = "";
2582
2582
  }, I = (g) => {
2583
2583
  g.action(t.editor);
2584
- }, _ = (g) => {
2584
+ }, A = (g) => {
2585
2585
  if (h) return;
2586
- const Z = g.target, R = s.value, q = t.editor?.rootElement;
2586
+ const D = g.target, R = s.value, q = t.editor?.rootElement;
2587
2587
  if (i.value) {
2588
- const T = R?.contains(Z), Y = q?.contains(Z);
2588
+ const T = R?.contains(D), Y = q?.contains(D);
2589
2589
  if (T || Y) return;
2590
2590
  S(), r.value = !1;
2591
2591
  return;
2592
2592
  }
2593
2593
  if (!R || !q) return;
2594
- const B = R.contains(Z), w = q.contains(Z);
2594
+ const B = R.contains(D), w = q.contains(D);
2595
2595
  B || w || (r.value = !1);
2596
2596
  };
2597
2597
  return ve(() => {
2598
2598
  document.addEventListener("selectionchange", () => {
2599
2599
  re();
2600
- }), document.addEventListener("focusin", _);
2600
+ }), document.addEventListener("focusin", A);
2601
2601
  }), Se(() => {
2602
- p?.(), m?.disconnect(), m = null, cancelAnimationFrame(L), document.removeEventListener("selectionchange", re), document.removeEventListener("focusin", _);
2602
+ p?.(), m?.disconnect(), m = null, cancelAnimationFrame(L), document.removeEventListener("selectionchange", re), document.removeEventListener("focusin", A);
2603
2603
  }), n({
2604
2604
  focusFirstButton: oe
2605
- }), (g, Z) => (v(), ae(qe, { to: "body" }, [
2606
- U(_e, { name: "tooltip-fade" }, {
2605
+ }), (g, D) => (v(), ae(Fe, { to: "body" }, [
2606
+ U(Ae, { name: "tooltip-fade" }, {
2607
2607
  default: J(() => [
2608
2608
  r.value ? (v(), b("div", {
2609
2609
  key: 0,
@@ -2613,35 +2613,35 @@ const At = (e) => {
2613
2613
  role: "toolbar",
2614
2614
  "aria-label": "Formatting options",
2615
2615
  "aria-controls": e.editorId,
2616
- style: He(c.value),
2616
+ style: Ie(c.value),
2617
2617
  tabindex: "-1",
2618
2618
  onKeydown: ue
2619
2619
  }, [
2620
- Z[4] || (Z[4] = x("div", { class: "arrow" }, null, -1)),
2620
+ D[4] || (D[4] = x("div", { class: "arrow" }, null, -1)),
2621
2621
  i.value ? (v(), b("div", Xa, [
2622
- Ae(x("input", {
2622
+ _e(x("input", {
2623
2623
  ref_key: "linkInputRef",
2624
2624
  ref: u,
2625
- "onUpdate:modelValue": Z[0] || (Z[0] = (R) => o.value = R),
2625
+ "onUpdate:modelValue": D[0] || (D[0] = (R) => o.value = R),
2626
2626
  type: "text",
2627
2627
  placeholder: "https://...",
2628
- onBlur: Z[1] || (Z[1] = se((R) => i.value = !1, ["prevent"])),
2628
+ onBlur: D[1] || (D[1] = se((R) => i.value = !1, ["prevent"])),
2629
2629
  onKeydown: ye(F, ["enter"]),
2630
- onMousedown: Z[2] || (Z[2] = se(() => {
2630
+ onMousedown: D[2] || (D[2] = se(() => {
2631
2631
  }, ["stop"]))
2632
2632
  }, null, 544), [
2633
- [We, o.value]
2633
+ [Ye, o.value]
2634
2634
  ]),
2635
2635
  x("button", {
2636
2636
  onClick: F,
2637
- onMousedown: Z[3] || (Z[3] = se(() => {
2637
+ onMousedown: D[3] || (D[3] = se(() => {
2638
2638
  }, ["prevent"]))
2639
2639
  }, "Ok ", 32)
2640
2640
  ])) : (v(!0), b(de, { key: 0 }, he(P.value, (R, q) => (v(), b("button", {
2641
2641
  key: R.key ?? q,
2642
2642
  type: "button",
2643
2643
  ref_for: !0,
2644
- ref: (B) => A(B, q),
2644
+ ref: (B) => _(B, q),
2645
2645
  class: fe({ "is-active": R.isActive?.(t.editor) }),
2646
2646
  "aria-pressed": R.isActive?.(t.editor),
2647
2647
  onClick: (B) => I(R),
@@ -2659,7 +2659,7 @@ const At = (e) => {
2659
2659
  })
2660
2660
  ]));
2661
2661
  }
2662
- }), Qa = /* @__PURE__ */ W(Ja, [["__scopeId", "data-v-47000ede"]]), en = { class: "editor" }, gt = /* @__PURE__ */ z({
2662
+ }), Qa = /* @__PURE__ */ W(Ja, [["__scopeId", "data-v-47000ede"]]), en = { class: "editor" }, gt = /* @__PURE__ */ Z({
2663
2663
  __name: "Editor",
2664
2664
  props: /* @__PURE__ */ ie({
2665
2665
  ariaLabel: {},
@@ -2675,7 +2675,7 @@ const At = (e) => {
2675
2675
  }),
2676
2676
  emits: ["update:modelValue"],
2677
2677
  setup(e, { expose: n }) {
2678
- const t = we(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(), r = M(null), l = M(null);
2679
2679
  return Q(
2680
2680
  () => t.value,
2681
2681
  (s) => {
@@ -2700,14 +2700,14 @@ const At = (e) => {
2700
2700
  }), r.value && (r.value.toolbarRef = i);
2701
2701
  const u = () => t.value = c.innerHTML;
2702
2702
  c.addEventListener("input", u), Be(() => c.removeEventListener("input", u));
2703
- }), Ve("announce", (s) => r.value?.announce(s)), n({
2703
+ }), He("announce", (s) => r.value?.announce(s)), n({
2704
2704
  editor: r
2705
2705
  }), (s, c) => (v(), b("section", en, [
2706
2706
  U(m1, {
2707
2707
  ref_key: "contentRef",
2708
2708
  ref: l,
2709
2709
  editor: r.value,
2710
- "editor-id": D(o),
2710
+ "editor-id": N(o),
2711
2711
  "aria-label": e.ariaLabel,
2712
2712
  "write-here-text": e.writeHereText,
2713
2713
  "min-image-resolution": e.minImageResolution,
@@ -2717,7 +2717,7 @@ const At = (e) => {
2717
2717
  ref_key: "toolbarRef",
2718
2718
  ref: i,
2719
2719
  editor: r.value,
2720
- "editor-id": D(o)
2720
+ "editor-id": N(o)
2721
2721
  }, null, 8, ["editor", "editor-id"])
2722
2722
  ]));
2723
2723
  }
@@ -2748,7 +2748,7 @@ const tn = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2748
2748
  }, mn = { class: "ui-upload__actions" }, pn = {
2749
2749
  class: "sr-only",
2750
2750
  "aria-live": "polite"
2751
- }, Cn = ["id"], hn = /* @__PURE__ */ z({
2751
+ }, Cn = ["id"], hn = /* @__PURE__ */ Z({
2752
2752
  __name: "Upload",
2753
2753
  props: /* @__PURE__ */ ie({
2754
2754
  multiple: { type: Boolean, default: !1 },
@@ -2766,46 +2766,46 @@ const tn = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2766
2766
  }),
2767
2767
  emits: /* @__PURE__ */ ie(["select", "upload", "remove"], ["update:modelValue"]),
2768
2768
  setup(e, { emit: n }) {
2769
- const t = we(e, "modelValue"), a = e, o = n, i = M(0), r = M(""), l = M(!1), s = ge(), c = M(), u = E(() => t.value), h = E(() => a.maxSize === 1 / 0 ? "Unlimited" : re(a.maxSize)), C = E(() => !a.disabled && (a.multiple || t.value.length === 0)), m = E(() => u.value.some((I) => I.status === "uploading")), p = () => C.value && c.value?.click(), L = () => {
2769
+ const t = ke(e, "modelValue"), a = e, o = n, i = M(0), r = M(""), l = M(!1), s = ge(), c = M(), u = E(() => t.value), h = E(() => a.maxSize === 1 / 0 ? "Unlimited" : re(a.maxSize)), C = E(() => !a.disabled && (a.multiple || t.value.length === 0)), m = E(() => u.value.some((I) => I.status === "uploading")), p = () => C.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);
2773
2773
  }, $ = (I) => {
2774
2774
  if (!a.disabled && !(!a.multiple && t.value.length > 0) && (i.value = 0, l.value = !1, !!I.dataTransfer)) {
2775
2775
  if (!a.multiple && I.dataTransfer?.files.length) {
2776
- const _ = I.dataTransfer.files[0];
2777
- A([_]);
2776
+ const A = I.dataTransfer.files[0];
2777
+ _([A]);
2778
2778
  return;
2779
2779
  }
2780
- A(Array.from(I.dataTransfer.files));
2780
+ _(Array.from(I.dataTransfer.files));
2781
2781
  }
2782
2782
  }, k = (I) => {
2783
- const _ = I.target;
2784
- _.files && (A(Array.from(_.files)), _.value = "");
2785
- }, A = (I) => {
2786
- const _ = [];
2787
- for (const Z of I) {
2788
- if (u.value.length + _.length >= a.maxFiles) break;
2789
- Z.size > a.maxSize || _.push({
2783
+ const A = I.target;
2784
+ A.files && (_(Array.from(A.files)), A.value = "");
2785
+ }, _ = (I) => {
2786
+ const A = [];
2787
+ for (const D of I) {
2788
+ if (u.value.length + A.length >= a.maxFiles) break;
2789
+ D.size > a.maxSize || A.push({
2790
2790
  id: crypto.randomUUID(),
2791
- file: Z,
2791
+ file: D,
2792
2792
  progress: 0,
2793
2793
  status: "idle"
2794
2794
  });
2795
2795
  }
2796
- if (!_.length) return;
2797
- o("select", _.map((Z) => Z.file));
2798
- const g = [...u.value, ..._];
2799
- t.value = g, a.autoUpload && _.forEach(N);
2800
- }, N = (I) => {
2801
- const _ = new AbortController();
2802
- I.progress = 0, I.error = void 0, I.status = "uploading", I.controller = _, F(`Started uploading ${I.file.name}`);
2796
+ if (!A.length) return;
2797
+ o("select", A.map((D) => D.file));
2798
+ const g = [...u.value, ...A];
2799
+ t.value = g, a.autoUpload && A.forEach(z);
2800
+ }, z = (I) => {
2801
+ const A = new AbortController();
2802
+ I.progress = 0, I.error = void 0, I.status = "uploading", I.controller = A, F(`Started uploading ${I.file.name}`);
2803
2803
  const g = () => {
2804
- _.signal.removeEventListener("abort", g);
2804
+ A.signal.removeEventListener("abort", g);
2805
2805
  };
2806
- _.signal.addEventListener("abort", g);
2807
- const Z = {
2808
- signal: _.signal,
2806
+ A.signal.addEventListener("abort", g);
2807
+ const D = {
2808
+ signal: A.signal,
2809
2809
  onProgress: (R) => {
2810
2810
  I.progress = R, ue();
2811
2811
  },
@@ -2816,42 +2816,42 @@ const tn = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2816
2816
  I.status = "error", I.error = R, I.controller = void 0, F(`Failed to upload ${I.file.name}: ${R}`), ue();
2817
2817
  }
2818
2818
  };
2819
- o("upload", I, Z);
2819
+ o("upload", I, D);
2820
2820
  }, P = (I) => {
2821
2821
  I.controller && (I.controller.abort(), I.status = "canceled", I.controller = void 0, F(`Canceled uploading ${I.file.name}`), ue());
2822
2822
  }, oe = (I) => {
2823
- I.status !== "error" && I.status !== "canceled" || N(I);
2823
+ I.status !== "error" && I.status !== "canceled" || z(I);
2824
2824
  }, ue = () => t.value = [...u.value], re = (I) => {
2825
- const _ = ["B", "KB", "MB", "GB", "TB"];
2825
+ const A = ["B", "KB", "MB", "GB", "TB"];
2826
2826
  let g = 0;
2827
- for (; I >= 1024 && g < _.length - 1; )
2827
+ for (; I >= 1024 && g < A.length - 1; )
2828
2828
  I /= 1024, g++;
2829
- return `${I.toFixed(2)} ${_[g]}`;
2829
+ return `${I.toFixed(2)} ${A[g]}`;
2830
2830
  }, F = (I) => {
2831
2831
  r.value = "", requestAnimationFrame(() => {
2832
2832
  r.value = I;
2833
2833
  });
2834
2834
  }, S = (I) => {
2835
- I.controller && I.controller.abort(), o("remove", I), t.value = u.value.filter((_) => _.id !== I.id);
2835
+ I.controller && I.controller.abort(), o("remove", I), t.value = u.value.filter((A) => A.id !== I.id);
2836
2836
  };
2837
- return (I, _) => (v(), b("div", {
2837
+ return (I, A) => (v(), b("div", {
2838
2838
  role: "button",
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 ? D(s) : void 0,
2842
+ "aria-describedby": l.value ? N(s) : void 0,
2843
2843
  "aria-busy": m.value ? "true" : void 0,
2844
2844
  "aria-disabled": e.disabled ? "true" : void 0,
2845
2845
  "data-disabled": e.disabled || void 0,
2846
2846
  "data-dragging": l.value || void 0,
2847
- onClick: _[0] || (_[0] = (g) => !e.disabled && p()),
2847
+ onClick: A[0] || (A[0] = (g) => !e.disabled && p()),
2848
2848
  onKeydown: [
2849
- _[1] || (_[1] = ye(se((g) => !e.disabled && p(), ["stop", "prevent"]), ["enter"])),
2850
- _[2] || (_[2] = ye(se((g) => !e.disabled && p(), ["prevent"]), ["space"]))
2849
+ A[1] || (A[1] = ye(se((g) => !e.disabled && p(), ["stop", "prevent"]), ["enter"])),
2850
+ A[2] || (A[2] = ye(se((g) => !e.disabled && p(), ["prevent"]), ["space"]))
2851
2851
  ],
2852
- onDragover: _[3] || (_[3] = se((g) => !e.disabled && L(), ["prevent"])),
2852
+ onDragover: A[3] || (A[3] = se((g) => !e.disabled && L(), ["prevent"])),
2853
2853
  onDragleave: V,
2854
- onDrop: _[4] || (_[4] = se((g) => !e.disabled && $(g), ["prevent"]))
2854
+ onDrop: A[4] || (A[4] = se((g) => !e.disabled && $(g), ["prevent"]))
2855
2855
  }, [
2856
2856
  x("input", {
2857
2857
  type: "file",
@@ -2871,14 +2871,14 @@ const tn = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2871
2871
  name: "upload",
2872
2872
  size: 32
2873
2873
  }),
2874
- _[6] || (_[6] = x("p", null, "Drag and Drop files here", -1)),
2875
- _[7] || (_[7] = x("span", null, "or", -1)),
2876
- U(xe, {
2874
+ A[6] || (A[6] = x("p", null, "Drag and Drop files here", -1)),
2875
+ A[7] || (A[7] = x("span", null, "or", -1)),
2876
+ U(Le, {
2877
2877
  type: "button",
2878
2878
  class: "btn btn-outline"
2879
2879
  }, {
2880
- default: J(() => [..._[5] || (_[5] = [
2881
- Le("Choose File", -1)
2880
+ default: J(() => [...A[5] || (A[5] = [
2881
+ Me("Choose File", -1)
2882
2882
  ])]),
2883
2883
  _: 1
2884
2884
  }),
@@ -2912,37 +2912,37 @@ const tn = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2912
2912
  g.status === "error" ? (v(), b("span", vn, K(g.error || "Upload failed"), 1)) : O("", !0),
2913
2913
  g.status === "canceled" ? (v(), b("span", fn, " Upload canceled ")) : O("", !0),
2914
2914
  x("div", mn, [
2915
- g.status === "uploading" ? (v(), ae(xe, {
2915
+ g.status === "uploading" ? (v(), ae(Le, {
2916
2916
  key: 0,
2917
2917
  type: "button",
2918
2918
  class: "btn-danger btn-xs",
2919
- onClick: se((Z) => P(g), ["stop"])
2919
+ onClick: se((D) => P(g), ["stop"])
2920
2920
  }, {
2921
- default: J(() => [..._[8] || (_[8] = [
2922
- Le(" Cancel ", -1)
2921
+ default: J(() => [...A[8] || (A[8] = [
2922
+ Me(" Cancel ", -1)
2923
2923
  ])]),
2924
2924
  _: 1
2925
2925
  }, 8, ["onClick"])) : O("", !0),
2926
- g.status === "error" || g.status === "canceled" ? (v(), ae(xe, {
2926
+ g.status === "error" || g.status === "canceled" ? (v(), ae(Le, {
2927
2927
  key: 1,
2928
2928
  type: "button",
2929
2929
  class: "btn-info btn-xs",
2930
- onClick: se((Z) => oe(g), ["stop"])
2930
+ onClick: se((D) => oe(g), ["stop"])
2931
2931
  }, {
2932
- default: J(() => [..._[9] || (_[9] = [
2933
- Le(" Retry ", -1)
2932
+ default: J(() => [...A[9] || (A[9] = [
2933
+ Me(" Retry ", -1)
2934
2934
  ])]),
2935
2935
  _: 1
2936
2936
  }, 8, ["onClick"])) : O("", !0),
2937
- g.status !== "uploading" ? (v(), ae(xe, {
2937
+ g.status !== "uploading" ? (v(), ae(Le, {
2938
2938
  key: 2,
2939
2939
  type: "button",
2940
2940
  class: "btn-outline btn-xs",
2941
- onClick: se((Z) => S(g), ["stop"]),
2941
+ onClick: se((D) => S(g), ["stop"]),
2942
2942
  "aria-label": "Remove file"
2943
2943
  }, {
2944
- default: J(() => [..._[10] || (_[10] = [
2945
- Le(" Remove ", -1)
2944
+ default: J(() => [...A[10] || (A[10] = [
2945
+ Me(" Remove ", -1)
2946
2946
  ])]),
2947
2947
  _: 1
2948
2948
  }, 8, ["onClick"])) : O("", !0)
@@ -2952,7 +2952,7 @@ const tn = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2952
2952
  ])) : O("", !0),
2953
2953
  x("div", pn, K(r.value), 1),
2954
2954
  x("p", {
2955
- id: D(s),
2955
+ id: N(s),
2956
2956
  class: "sr-only"
2957
2957
  }, " Drop files to upload ", 8, Cn)
2958
2958
  ], 40, tn));
@@ -2966,7 +2966,7 @@ const gn = (e) => {
2966
2966
  return window.addEventListener("scroll", n, !0), window.addEventListener("resize", t), () => {
2967
2967
  window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", t);
2968
2968
  };
2969
- }, yn = ["aria-describedby", "aria-disabled", "aria-expanded"], bn = ["aria-hidden", "data-placement"], kn = 8, wn = 6, Mn = /* @__PURE__ */ z({
2969
+ }, yn = ["aria-describedby", "aria-disabled", "aria-expanded"], bn = ["aria-hidden", "data-placement"], kn = 8, wn = 6, Mn = /* @__PURE__ */ Z({
2970
2970
  __name: "Tooltip",
2971
2971
  props: {
2972
2972
  content: {},
@@ -3011,7 +3011,7 @@ const gn = (e) => {
3011
3011
  c?.(), c = null, u?.disconnect(), u = null;
3012
3012
  return;
3013
3013
  }
3014
- await Ie(), p(), c = gn(p), u = new ResizeObserver(p), r.value && u.observe(r.value), i.value && u.observe(i.value);
3014
+ await $e(), p(), c = gn(p), u = new ResizeObserver(p), r.value && u.observe(r.value), i.value && u.observe(i.value);
3015
3015
  }), Se(() => {
3016
3016
  c?.(), u?.disconnect();
3017
3017
  }), (L, V) => (v(), b(de, null, [
@@ -3030,8 +3030,8 @@ const gn = (e) => {
3030
3030
  }, [
3031
3031
  G(L.$slots, "default", {}, void 0, !0)
3032
3032
  ], 40, yn),
3033
- (v(), ae(qe, { to: "body" }, [
3034
- U(_e, { name: "tooltip-fade" }, {
3033
+ (v(), ae(Fe, { to: "body" }, [
3034
+ U(Ae, { name: "tooltip-fade" }, {
3035
3035
  default: J(() => [
3036
3036
  a.value ? (v(), b("div", {
3037
3037
  key: 0,
@@ -3043,11 +3043,11 @@ const gn = (e) => {
3043
3043
  "aria-live": "polite",
3044
3044
  "aria-hidden": !a.value,
3045
3045
  "data-placement": n.placement,
3046
- style: He(l.value)
3046
+ style: Ie(l.value)
3047
3047
  }, [
3048
3048
  V[0] || (V[0] = x("div", { class: "tooltip-arrow" }, null, -1)),
3049
3049
  G(L.$slots, "content", {}, () => [
3050
- Le(K(e.content), 1)
3050
+ Me(K(e.content), 1)
3051
3051
  ], !0)
3052
3052
  ], 12, bn)) : O("", !0)
3053
3053
  ]),
@@ -3063,7 +3063,7 @@ bt.install = (e) => {
3063
3063
  const Ln = {
3064
3064
  key: 0,
3065
3065
  class: "ui-tag__icon"
3066
- }, xn = { class: "ui-tag__label" }, $n = ["aria-label"], In = /* @__PURE__ */ z({
3066
+ }, xn = { class: "ui-tag__label" }, $n = ["aria-label"], In = /* @__PURE__ */ Z({
3067
3067
  __name: "Tag",
3068
3068
  props: {
3069
3069
  as: { default: "span" },
@@ -3121,7 +3121,7 @@ const Ln = {
3121
3121
  _: 3
3122
3122
  }, 40, ["class", "aria-disabled", "tabindex", "role"]));
3123
3123
  }
3124
- }), Hn = /* @__PURE__ */ W(In, [["__scopeId", "data-v-8a4d6d55"]]), Vn = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], Bn = /* @__PURE__ */ z({
3124
+ }), Hn = /* @__PURE__ */ W(In, [["__scopeId", "data-v-8a4d6d55"]]), Vn = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], Bn = /* @__PURE__ */ Z({
3125
3125
  __name: "Link",
3126
3126
  props: {
3127
3127
  target: {},
@@ -3151,32 +3151,32 @@ const Ln = {
3151
3151
  G(i.$slots, "default", {}, void 0, !0)
3152
3152
  ], 8, Vn));
3153
3153
  }
3154
- }), Gl = /* @__PURE__ */ W(Bn, [["__scopeId", "data-v-0f5d7308"]]), An = { class: "ui-dropdown" }, _n = /* @__PURE__ */ z({
3154
+ }), Ql = /* @__PURE__ */ W(Bn, [["__scopeId", "data-v-0f5d7308"]]), _n = { class: "ui-dropdown" }, An = /* @__PURE__ */ Z({
3155
3155
  __name: "Dropdown",
3156
3156
  setup(e) {
3157
3157
  let n = 0;
3158
3158
  const t = M(!1), a = M(null), o = M({}), i = `dropdown-${ge()}`, r = `${i}-menu`, l = `${i}-trigger`, s = () => 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 = (k) => {
3161
- const A = `dropdown-item-${n++}`;
3162
- return o.value[A] = k, A;
3161
+ const _ = `dropdown-item-${n++}`;
3162
+ return o.value[_] = k, _;
3163
3163
  }, C = (k) => {
3164
- const A = o.value[k];
3165
- A && A.focus({ preventScroll: !0 });
3164
+ const _ = o.value[k];
3165
+ _ && _.focus({ preventScroll: !0 });
3166
3166
  }, m = () => {
3167
3167
  const k = Object.keys(o.value)[0];
3168
3168
  k && C(k);
3169
3169
  }, p = () => {
3170
- const k = Object.keys(o.value), A = k[k.length - 1];
3171
- A && C(A);
3170
+ const k = Object.keys(o.value), _ = k[k.length - 1];
3171
+ _ && C(_);
3172
3172
  }, L = (k) => {
3173
- const A = Object.keys(o.value), N = $(k), P = A[N + 1];
3174
- N >= 0 && N < A.length - 1 && P && C(P);
3173
+ const _ = Object.keys(o.value), z = $(k), P = _[z + 1];
3174
+ z >= 0 && z < _.length - 1 && P && C(P);
3175
3175
  }, V = (k) => {
3176
- const A = Object.keys(o.value), N = $(k), P = A[N - 1];
3177
- N > 0 && P && C(P);
3176
+ const _ = Object.keys(o.value), z = $(k), P = _[z - 1];
3177
+ z > 0 && P && C(P);
3178
3178
  }, $ = (k) => Object.keys(o.value).indexOf(k);
3179
- return Ve("DropdownContext", {
3179
+ return He("DropdownContext", {
3180
3180
  open: s,
3181
3181
  close: c,
3182
3182
  toggle: u,
@@ -3190,11 +3190,11 @@ const Ln = {
3190
3190
  triggerRef: a,
3191
3191
  menuId: r,
3192
3192
  triggerId: l
3193
- }), (k, A) => (v(), b("div", An, [
3193
+ }), (k, _) => (v(), b("div", _n, [
3194
3194
  G(k.$slots, "default", {}, void 0, !0)
3195
3195
  ]));
3196
3196
  }
3197
- }), En = /* @__PURE__ */ W(_n, [["__scopeId", "data-v-3a863710"]]), Rn = /* @__PURE__ */ z({
3197
+ }), En = /* @__PURE__ */ W(An, [["__scopeId", "data-v-3a863710"]]), Rn = /* @__PURE__ */ Z({
3198
3198
  __name: "DropdownTrigger",
3199
3199
  props: {
3200
3200
  variant: { default: "button" },
@@ -3204,17 +3204,17 @@ const Ln = {
3204
3204
  const n = e, t = pe("DropdownContext");
3205
3205
  if (!t) throw new Error("DropdownTrigger must be used within a Dropdown");
3206
3206
  const a = M(), o = (i) => {
3207
- i.key === "ArrowDown" && (i.preventDefault(), t.open(), Ie(() => t.focusFirstItem())), i.key === "ArrowUp" && (i.preventDefault(), t.open(), Ie(() => t.focusLastItem()));
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) => (v(), ae(xe, {
3209
+ return ve(() => t.triggerRef.value = a.value?.el), (i, r) => (v(), ae(Le, {
3210
3210
  ref_key: "btn",
3211
3211
  ref: a,
3212
- id: D(t).triggerId,
3212
+ id: N(t).triggerId,
3213
3213
  class: fe(["ui-dropdown-trigger", [{ "btn-outline": n.variant === "button" }, e.classes]]),
3214
3214
  "aria-haspopup": "menu",
3215
- "aria-controls": D(t).menuId,
3216
- "aria-expanded": D(t).isOpen.value,
3217
- onClick: D(t).toggle,
3215
+ "aria-controls": N(t).menuId,
3216
+ "aria-expanded": N(t).isOpen.value,
3217
+ onClick: N(t).toggle,
3218
3218
  onKeydown: o
3219
3219
  }, {
3220
3220
  default: J(() => [
@@ -3227,7 +3227,7 @@ const Ln = {
3227
3227
  _: 3
3228
3228
  }, 8, ["id", "class", "aria-controls", "aria-expanded", "onClick"]));
3229
3229
  }
3230
- }), Sn = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-75ab95f2"]]), Tn = ["id", "aria-labelledby"], Dn = /* @__PURE__ */ z({
3230
+ }), Sn = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-75ab95f2"]]), Tn = ["id", "aria-labelledby"], Dn = /* @__PURE__ */ Z({
3231
3231
  __name: "DropdownMenu",
3232
3232
  setup(e) {
3233
3233
  const n = pe("DropdownContext");
@@ -3265,16 +3265,16 @@ const Ln = {
3265
3265
  }), t.value && i.observe(t.value), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u);
3266
3266
  }), Be(() => {
3267
3267
  i?.disconnect(), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
3268
- }), (h, C) => (v(), ae(qe, { to: "body" }, [
3269
- D(n).isOpen.value ? (v(), b("div", {
3268
+ }), (h, C) => (v(), ae(Fe, { to: "body" }, [
3269
+ N(n).isOpen.value ? (v(), b("div", {
3270
3270
  key: 0,
3271
3271
  role: "menu",
3272
3272
  ref_key: "menuRef",
3273
3273
  ref: t,
3274
- style: He(a.value),
3275
- id: D(n).menuId,
3274
+ style: Ie(a.value),
3275
+ id: N(n).menuId,
3276
3276
  "aria-orientation": "vertical",
3277
- "aria-labelledby": D(n).triggerId,
3277
+ "aria-labelledby": N(n).triggerId,
3278
3278
  class: "ui-dropdown-menu",
3279
3279
  onKeydown: l
3280
3280
  }, [
@@ -3282,7 +3282,7 @@ const Ln = {
3282
3282
  ], 44, Tn)) : O("", !0)
3283
3283
  ]));
3284
3284
  }
3285
- }), Zn = /* @__PURE__ */ W(Dn, [["__scopeId", "data-v-95ca8bce"]]), zn = { class: "ui-button-menu" }, Nn = /* @__PURE__ */ z({
3285
+ }), Zn = /* @__PURE__ */ W(Dn, [["__scopeId", "data-v-95ca8bce"]]), zn = { class: "ui-button-menu" }, Nn = /* @__PURE__ */ Z({
3286
3286
  __name: "ButtonMenu",
3287
3287
  props: {
3288
3288
  variant: {}
@@ -3290,7 +3290,7 @@ const Ln = {
3290
3290
  emits: ["click"],
3291
3291
  setup(e) {
3292
3292
  return (n, t) => (v(), b("div", zn, [
3293
- U(xe, ke({
3293
+ U(Le, be({
3294
3294
  class: ["btn-menu-primary", e.variant]
3295
3295
  }, n.$attrs, {
3296
3296
  onClick: t[0] || (t[0] = (a) => n.$emit("click"))
@@ -3322,9 +3322,9 @@ const Ln = {
3322
3322
  kt.install = (e) => {
3323
3323
  e.component("ButtonMenu", kt);
3324
3324
  };
3325
- const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ? { type: "letter" } : n === "*" ? { type: "alphanumeric" } : { type: "literal", value: n }), Et = (e, n) => n.type === "digit" ? /\d/.test(e) : n.type === "letter" ? /[a-z]/i.test(e) : n.type === "alphanumeric" ? /[a-z0-9]/i.test(e) : !1, wt = (e, n) => {
3325
+ const je = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ? { type: "letter" } : n === "*" ? { type: "alphanumeric" } : { type: "literal", value: n }), Rt = (e, n) => n.type === "digit" ? /\d/.test(e) : n.type === "letter" ? /[a-z]/i.test(e) : n.type === "alphanumeric" ? /[a-z0-9]/i.test(e) : !1, wt = (e, n) => {
3326
3326
  if (!e) return "";
3327
- const t = Ke(n);
3327
+ const t = je(n);
3328
3328
  let a = "", o = 0;
3329
3329
  for (const i of t) {
3330
3330
  if (i.type === "literal") {
@@ -3333,7 +3333,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3333
3333
  }
3334
3334
  for (; o < e.length; ) {
3335
3335
  const r = e[o++];
3336
- if (r && Et(r, i)) {
3336
+ if (r && Rt(r, i)) {
3337
3337
  a += r;
3338
3338
  break;
3339
3339
  }
@@ -3342,11 +3342,11 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3342
3342
  }
3343
3343
  return a;
3344
3344
  }, On = (e, n) => {
3345
- const a = Ke(n).filter((l) => l.type !== "literal");
3345
+ const a = je(n).filter((l) => l.type !== "literal");
3346
3346
  let o = "", i = 0, r = 0;
3347
3347
  for (; i < e.length && r < a.length; ) {
3348
3348
  const l = e[i], s = a[r];
3349
- s && Et(l, s) && (o += l, r++), i++;
3349
+ s && Rt(l, s) && (o += l, r++), i++;
3350
3350
  }
3351
3351
  return o;
3352
3352
  }, qn = (e, n) => e.slice(0, n).replace(/\D/g, "").length, Fn = (e, n) => {
@@ -3357,14 +3357,14 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3357
3357
  }
3358
3358
  return e.length;
3359
3359
  }, Pn = (e, n, t) => {
3360
- const a = Ke(e);
3360
+ const a = je(e);
3361
3361
  for (; n > 0 && n < a.length && a[n - 1]?.type === "literal"; )
3362
3362
  n += t;
3363
3363
  return n;
3364
3364
  }, dt = (e, n, t, a) => E(() => {
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
- }), Ye = (e) => E(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Un = (e) => E(() => e.disabled === !0 ? "true" : void 0), Kn = ["id"], vt = /* @__PURE__ */ z({
3367
+ }), Xe = (e) => E(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Un = (e) => E(() => e.disabled === !0 ? "true" : void 0), Kn = ["id"], vt = /* @__PURE__ */ Z({
3368
3368
  __name: "Hint",
3369
3369
  props: {
3370
3370
  hintId: {}
@@ -3378,7 +3378,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3378
3378
  G(n.$slots, "default")
3379
3379
  ], 8, Kn)) : O("", !0);
3380
3380
  }
3381
- }), jn = ["id"], ft = /* @__PURE__ */ z({
3381
+ }), jn = ["id"], ft = /* @__PURE__ */ Z({
3382
3382
  __name: "RequiredHint",
3383
3383
  props: {
3384
3384
  baseId: {},
@@ -3391,7 +3391,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3391
3391
  class: "visually-hidden"
3392
3392
  }, " Required field ", 8, jn)) : O("", !0);
3393
3393
  }
3394
- }), Wn = ["id"], mt = /* @__PURE__ */ z({
3394
+ }), Wn = ["id"], mt = /* @__PURE__ */ Z({
3395
3395
  __name: "ErrorMessage",
3396
3396
  props: {
3397
3397
  errorId: {},
@@ -3406,7 +3406,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3406
3406
  role: "alert"
3407
3407
  }, K(e.errorMessage), 9, Wn)) : O("", !0);
3408
3408
  }
3409
- }), Yn = ["for"], Xn = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Gn = /* @__PURE__ */ z({
3409
+ }), Yn = ["for"], Xn = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Gn = /* @__PURE__ */ Z({
3410
3410
  __name: "Input",
3411
3411
  props: /* @__PURE__ */ ie({
3412
3412
  id: {},
@@ -3425,10 +3425,10 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3425
3425
  }),
3426
3426
  emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
3427
3427
  setup(e, { emit: n }) {
3428
- const t = we(e, "modelValue"), a = e, o = n, i = st(), r = M(null), l = ge(), s = `${l}-error`, c = `${l}-hint`, u = Ye(i).value, h = M(!1), C = M(""), m = M(!1), p = E(() => t.value !== null && t.value !== void 0 && t.value !== ""), L = E(() => u ? `${c} ${l}-required-hint` : c), V = E(() => a.invalid === !0 && a.errorMessage ? s : void 0), $ = E(() => a.type === "password" ? m.value ? "text" : "password" : a.type), k = E(() => {
3428
+ const t = ke(e, "modelValue"), a = e, o = n, i = st(), r = M(null), l = ge(), s = `${l}-error`, c = `${l}-hint`, u = Xe(i).value, h = M(!1), C = M(""), m = M(!1), p = E(() => t.value !== null && t.value !== void 0 && t.value !== ""), L = E(() => u ? `${c} ${l}-required-hint` : c), V = E(() => a.invalid === !0 && a.errorMessage ? s : void 0), $ = E(() => a.type === "password" ? m.value ? "text" : "password" : a.type), k = E(() => {
3429
3429
  const { type: R, ...q } = i;
3430
3430
  return q;
3431
- }), A = E(() => a.currency ? t.value === null || t.value === void 0 || t.value === "" ? "" : ue(C.value) : a.mask ? wt(String(t.value ?? ""), a.mask) : String(t.value ?? "")), N = E(() => a.mask ? Ke(a.mask).filter((R) => R.type !== "literal").length : 0), P = E(() => a.currency ? new Intl.NumberFormat(a.locale ?? "en-US", {
3431
+ }), _ = E(() => a.currency ? t.value === null || t.value === void 0 || t.value === "" ? "" : ue(C.value) : a.mask ? wt(String(t.value ?? ""), a.mask) : String(t.value ?? "")), z = E(() => a.mask ? je(a.mask).filter((R) => R.type !== "literal").length : 0), P = E(() => a.currency ? new Intl.NumberFormat(a.locale ?? "en-US", {
3432
3432
  style: "currency",
3433
3433
  currency: a.currency
3434
3434
  }) : null), oe = E(() => ({
@@ -3441,7 +3441,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3441
3441
  }, re = () => m.value = !m.value, F = (R) => {
3442
3442
  if (!a.mask && !a.currency) return;
3443
3443
  if (a.currency) {
3444
- const w = R.target, T = Z(w.value);
3444
+ const w = R.target, T = D(w.value);
3445
3445
  r.value = {
3446
3446
  rawCaret: T.length,
3447
3447
  inputType: R.inputType
@@ -3456,14 +3456,14 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3456
3456
  }, S = (R) => {
3457
3457
  const q = R.target;
3458
3458
  if (a.currency) {
3459
- let T = Z(q.value);
3459
+ let T = D(q.value);
3460
3460
  r.value?.inputType === "deleteContentBackward" && (T = C.value.slice(0, -1)), C.value = T;
3461
3461
  const Y = ue(C.value);
3462
3462
  q.value = Y, t.value = Number(C.value || "0") / 100, r.value = null;
3463
3463
  return;
3464
3464
  }
3465
3465
  let B = a.mask ? On(q.value, a.mask) : q.value;
3466
- a.mask && (B = B.slice(0, N.value));
3466
+ a.mask && (B = B.slice(0, z.value));
3467
3467
  const w = a.mask ? wt(B, a.mask) : B;
3468
3468
  if (q.value = w, t.value = a.type === "number" ? Number(B) : B, a.mask && r.value) {
3469
3469
  let { rawCaret: T, inputType: Y } = r.value;
@@ -3476,14 +3476,14 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3476
3476
  if (!a.mask || a.currency || R.key !== "Backspace") return;
3477
3477
  const q = R.target;
3478
3478
  let B = q.selectionStart ?? 0;
3479
- const w = Ke(a.mask);
3479
+ const w = je(a.mask);
3480
3480
  for (; B > 0 && w[B - 1]?.type === "literal"; ) B--;
3481
3481
  requestAnimationFrame(() => q.setSelectionRange(B, B));
3482
- }, _ = (R) => {
3482
+ }, A = (R) => {
3483
3483
  h.value = !0, o("focus", R);
3484
3484
  }, g = (R) => {
3485
3485
  h.value = !1, o("blur", R);
3486
- }, Z = (R) => R.replace(/\D/g, "");
3486
+ }, D = (R) => R.replace(/\D/g, "");
3487
3487
  return Q(
3488
3488
  () => t.value,
3489
3489
  (R) => {
@@ -3493,27 +3493,27 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3493
3493
  },
3494
3494
  { immediate: !0 }
3495
3495
  ), (R, q) => (v(), b("div", {
3496
- class: fe(["input-box", { required: D(u), error: e.invalid, filled: p.value, focused: h.value }])
3496
+ class: fe(["input-box", { required: N(u), error: e.invalid, filled: p.value, focused: h.value }])
3497
3497
  }, [
3498
3498
  x("label", {
3499
3499
  for: e.id,
3500
3500
  class: "label"
3501
3501
  }, K(e.label), 9, Yn),
3502
- x("input", ke({
3502
+ x("input", be({
3503
3503
  id: e.id,
3504
3504
  type: $.value
3505
3505
  }, k.value, {
3506
3506
  class: oe.value,
3507
3507
  onBeforeinput: F,
3508
3508
  onInput: S,
3509
- onFocus: _,
3509
+ onFocus: A,
3510
3510
  onBlur: g,
3511
3511
  onKeydown: I,
3512
- value: A.value,
3513
- required: D(u),
3512
+ value: _.value,
3513
+ required: N(u),
3514
3514
  "aria-invalid": e.invalid ? "true" : void 0,
3515
3515
  "aria-errormessage": V.value,
3516
- "aria-describedby": D(dt)(R.$props, R.$slots, s, L.value).value
3516
+ "aria-describedby": N(dt)(R.$props, R.$slots, s, L.value).value
3517
3517
  }), null, 16, Xn),
3518
3518
  U(vt, { hintId: c }, {
3519
3519
  default: J(() => [
@@ -3522,15 +3522,15 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3522
3522
  _: 3
3523
3523
  }),
3524
3524
  U(ft, {
3525
- baseId: D(l),
3526
- isRequired: D(u)
3525
+ baseId: N(l),
3526
+ isRequired: N(u)
3527
3527
  }, null, 8, ["baseId", "isRequired"]),
3528
3528
  U(mt, {
3529
3529
  errorId: s,
3530
3530
  invalid: e.invalid,
3531
3531
  errorMessage: e.errorMessage
3532
3532
  }, null, 8, ["invalid", "errorMessage"]),
3533
- e.type === "password" ? (v(), ae(xe, ke({ key: 0 }, Object.keys(R.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
3533
+ e.type === "password" ? (v(), ae(Le, be({ key: 0 }, Object.keys(R.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
3534
3534
  type: "button",
3535
3535
  class: "btn-icon",
3536
3536
  onClick: re,
@@ -3545,14 +3545,14 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3545
3545
  }, 16, ["aria-label"])) : O("", !0)
3546
3546
  ], 2));
3547
3547
  }
3548
- }), Jl = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-aedae9eb"]]), Jn = ["data-size", "data-shape", "aria-label", "aria-busy"], Qn = {
3548
+ }), er = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-aedae9eb"]]), Jn = ["data-size", "data-shape", "aria-label", "aria-busy"], Qn = {
3549
3549
  key: 1,
3550
3550
  class: "ui-avatar__loading"
3551
3551
  }, eo = {
3552
3552
  key: 2,
3553
3553
  class: "ui-avatar__fallback",
3554
3554
  "aria-hidden": "true"
3555
- }, to = /* @__PURE__ */ z({
3555
+ }, to = /* @__PURE__ */ Z({
3556
3556
  __name: "Avatar",
3557
3557
  props: {
3558
3558
  src: {},
@@ -3582,12 +3582,12 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3582
3582
  onError: l
3583
3583
  }, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), b("div", Qn)) : (v(), b("div", eo, [
3584
3584
  G(s.$slots, "default", {}, () => [
3585
- Le(K(o.value), 1)
3585
+ Me(K(o.value), 1)
3586
3586
  ], !0)
3587
3587
  ]))
3588
3588
  ], 8, Jn));
3589
3589
  }
3590
- }), Ql = /* @__PURE__ */ W(to, [["__scopeId", "data-v-e36c822a"]]), ao = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], no = ["innerHTML"], oo = ["id", "aria-disabled", "aria-selected", "onClick"], lo = ["innerHTML"], ro = /* @__PURE__ */ z({
3590
+ }), tr = /* @__PURE__ */ W(to, [["__scopeId", "data-v-e36c822a"]]), ao = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], no = ["innerHTML"], oo = ["id", "aria-disabled", "aria-selected", "onClick"], lo = ["innerHTML"], ro = /* @__PURE__ */ Z({
3591
3591
  __name: "Select",
3592
3592
  props: /* @__PURE__ */ ie({
3593
3593
  id: {},
@@ -3601,11 +3601,11 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3601
3601
  }),
3602
3602
  emits: /* @__PURE__ */ ie(["focus", "blur", "change", "click"], ["update:modelValue"]),
3603
3603
  setup(e, { emit: n }) {
3604
- const t = we(e, "modelValue"), a = e, o = n, i = M(!1);
3604
+ const t = ke(e, "modelValue"), a = e, o = n, i = M(!1);
3605
3605
  Q(i, (B) => {
3606
3606
  B ? document.addEventListener("mousedown", R) : document.removeEventListener("mousedown", R);
3607
3607
  });
3608
- const r = st(), l = M(!1), s = M(null), c = E(() => a.id ?? ge()), u = `${c.value}-label`, h = `${c.value}-listbox`, C = `${c.value}-error`, m = `${c.value}-hint`, p = `${c.value}-value`, L = M(null), V = M(null), $ = E(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = E(() => L.value !== null ? `${h}-option-${L.value}` : void 0), A = Ye(r).value, N = E(() => A ? `${m} ${c.value}-required-hint` : m), P = E(() => i.value && k.value ? k.value : void 0), oe = E(() => V.value !== null ? a.options[V.value]?.value : "");
3608
+ const r = st(), l = M(!1), s = M(null), c = E(() => a.id ?? ge()), u = `${c.value}-label`, h = `${c.value}-listbox`, C = `${c.value}-error`, m = `${c.value}-hint`, p = `${c.value}-value`, L = M(null), V = M(null), $ = E(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = E(() => L.value !== null ? `${h}-option-${L.value}` : void 0), _ = Xe(r).value, z = E(() => _ ? `${m} ${c.value}-required-hint` : m), P = E(() => i.value && k.value ? k.value : void 0), oe = E(() => V.value !== null ? a.options[V.value]?.value : "");
3609
3609
  Q(
3610
3610
  () => t.value,
3611
3611
  () => q()
@@ -3630,12 +3630,12 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3630
3630
  return;
3631
3631
  }
3632
3632
  if (i.value) {
3633
- if (B.key === "ArrowDown" && (_(1), B.preventDefault()), B.key === "ArrowUp" && (_(-1), B.preventDefault()), B.key === "Home") {
3633
+ if (B.key === "ArrowDown" && (A(1), B.preventDefault()), B.key === "ArrowUp" && (A(-1), B.preventDefault()), B.key === "Home") {
3634
3634
  const w = g();
3635
3635
  w >= 0 && (L.value = w), B.preventDefault();
3636
3636
  }
3637
3637
  if (B.key === "End") {
3638
- const w = Z();
3638
+ const w = D();
3639
3639
  w >= 0 && (L.value = w), B.preventDefault();
3640
3640
  }
3641
3641
  if (B.key === "Enter" || B.key === " ") {
@@ -3646,14 +3646,14 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3646
3646
  }
3647
3647
  B.key === "Escape" && (i.value = !1);
3648
3648
  }
3649
- }, _ = (B) => {
3649
+ }, A = (B) => {
3650
3650
  if (L.value === null) return;
3651
3651
  let w = L.value;
3652
3652
  do
3653
3653
  w += B;
3654
3654
  while (w >= 0 && w < a.options.length && a.options[w]?.disabled);
3655
3655
  w >= 0 && w < a.options.length && (L.value = w);
3656
- }, g = () => a.options.findIndex((B) => !B.disabled), Z = () => [...a.options].reverse().findIndex((B) => !B.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((B) => !B.disabled) : -1, R = (B) => {
3656
+ }, g = () => a.options.findIndex((B) => !B.disabled), D = () => [...a.options].reverse().findIndex((B) => !B.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((B) => !B.disabled) : -1, R = (B) => {
3657
3657
  const w = s.value;
3658
3658
  !w || w.contains(B.target) || (i.value = !1);
3659
3659
  };
@@ -3678,7 +3678,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3678
3678
  ref: s,
3679
3679
  class: fe(["select-box", { required: Object.keys(B.$attrs).includes("required"), error: e.invalid, filled: $.value, focused: l.value }])
3680
3680
  }, [
3681
- x("button", ke({
3681
+ x("button", be({
3682
3682
  id: c.value,
3683
3683
  class: "select-btn",
3684
3684
  role: "combobox",
@@ -3689,10 +3689,10 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3689
3689
  "aria-controls": h,
3690
3690
  "aria-invalid": e.invalid ? "true" : void 0,
3691
3691
  "aria-labelledby": `${u} ${p}`,
3692
- "aria-required": D(A),
3693
- "aria-describedby": D(dt)(B.$props, B.$slots, C, N.value).value,
3692
+ "aria-required": N(_),
3693
+ "aria-describedby": N(dt)(B.$props, B.$slots, C, z.value).value,
3694
3694
  "aria-activedescendant": P.value,
3695
- "aria-disabled": D(r).disabled ? "true" : void 0,
3695
+ "aria-disabled": N(r).disabled ? "true" : void 0,
3696
3696
  onBlur: re,
3697
3697
  onFocus: ue,
3698
3698
  onClick: F,
@@ -3715,9 +3715,9 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3715
3715
  "aria-hidden": "true"
3716
3716
  })
3717
3717
  ], 16, ao),
3718
- U(_e, { name: "select" }, {
3718
+ U(Ae, { name: "select" }, {
3719
3719
  default: J(() => [
3720
- Ae(x("ul", {
3720
+ _e(x("ul", {
3721
3721
  id: h,
3722
3722
  role: "listbox",
3723
3723
  class: "options"
@@ -3750,7 +3750,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3750
3750
  }),
3751
3751
  U(ft, {
3752
3752
  baseId: c.value,
3753
- isRequired: D(A)
3753
+ isRequired: N(_)
3754
3754
  }, null, 8, ["baseId", "isRequired"]),
3755
3755
  U(mt, {
3756
3756
  errorId: C,
@@ -3759,10 +3759,10 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3759
3759
  }, null, 8, ["invalid", "errorMessage"])
3760
3760
  ], 2));
3761
3761
  }
3762
- }), er = /* @__PURE__ */ W(ro, [["__scopeId", "data-v-cddb3ba9"]]), so = ["aria-label"], io = ["onKeydown"], uo = {
3762
+ }), ar = /* @__PURE__ */ W(ro, [["__scopeId", "data-v-cddb3ba9"]]), so = ["aria-label"], io = ["onKeydown"], uo = {
3763
3763
  key: 1,
3764
3764
  class: "rs-gallery-thumbs"
3765
- }, co = ["aria-selected"], vo = ["onClick"], fo = /* @__PURE__ */ z({
3765
+ }, co = ["aria-selected"], vo = ["onClick"], fo = /* @__PURE__ */ Z({
3766
3766
  __name: "GalleryCarousel",
3767
3767
  props: /* @__PURE__ */ ie({
3768
3768
  images: {},
@@ -3783,8 +3783,8 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3783
3783
  }),
3784
3784
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
3785
3785
  setup(e, { emit: n }) {
3786
- const t = we(e, "modelValue"), a = e, o = n, i = M([]), r = M("next"), l = M(null), s = `gallery-caption-${ge()}`, c = M(null), u = E(() => t.value), h = E(() => a.images[u.value]), C = (k, A) => {
3787
- k && (i.value[A] = k);
3786
+ 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 = E(() => t.value), h = E(() => a.images[u.value]), C = (k, _) => {
3787
+ k && (i.value[_] = k);
3788
3788
  }, m = (k) => {
3789
3789
  k !== u.value && (r.value = k > u.value ? "next" : "prev", t.value = k, o("change", k));
3790
3790
  }, p = () => {
@@ -3805,16 +3805,16 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3805
3805
  l.value = null;
3806
3806
  };
3807
3807
  return Q(u, async (k) => {
3808
- await Ie();
3809
- const A = i.value[k];
3810
- A && A.scrollIntoView({
3808
+ await $e();
3809
+ const _ = i.value[k];
3810
+ _ && _.scrollIntoView({
3811
3811
  behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
3812
3812
  inline: "center",
3813
3813
  block: "nearest"
3814
3814
  });
3815
3815
  }), Q(() => a.images, () => {
3816
3816
  i.value = [];
3817
- }), (k, A) => (v(), b("div", {
3817
+ }), (k, _) => (v(), b("div", {
3818
3818
  role: "region",
3819
3819
  class: "rs-gallery",
3820
3820
  "aria-roledescription": "carousel",
@@ -3827,13 +3827,13 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3827
3827
  ref: c,
3828
3828
  tabindex: "0",
3829
3829
  class: "rs-gallery-review",
3830
- style: He(l.value ? { height: `${l.value}px` } : void 0),
3830
+ style: Ie(l.value ? { height: `${l.value}px` } : void 0),
3831
3831
  onKeydown: [
3832
3832
  ye(se(L, ["prevent"]), ["left"]),
3833
3833
  ye(se(p, ["prevent"]), ["right"])
3834
3834
  ]
3835
3835
  }, [
3836
- U(_e, {
3836
+ U(Ae, {
3837
3837
  name: `rs-gallery-slide-${r.value}`,
3838
3838
  mode: "out-in",
3839
3839
  onBeforeLeave: V,
@@ -3860,8 +3860,8 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3860
3860
  class: "rs-gallery-caption"
3861
3861
  }, K(h.value.title), 1)) : O("", !0),
3862
3862
  e.showThumbnails ? (v(), b("ul", uo, [
3863
- (v(!0), b(de, null, he(e.images, (N, P) => (v(), b("li", {
3864
- key: N.src,
3863
+ (v(!0), b(de, null, he(e.images, (z, P) => (v(), b("li", {
3864
+ key: z.src,
3865
3865
  ref_for: !0,
3866
3866
  ref: (oe) => C(oe, P),
3867
3867
  "aria-selected": u.value === P
@@ -3872,7 +3872,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3872
3872
  onClick: (oe) => m(P)
3873
3873
  }, [
3874
3874
  U(ze, {
3875
- src: N.src,
3875
+ src: z.src,
3876
3876
  alt: `Select image ${P + 1}`,
3877
3877
  transform: e.transformThumbnails
3878
3878
  }, null, 8, ["src", "alt", "transform"])
@@ -3881,7 +3881,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3881
3881
  ])) : O("", !0)
3882
3882
  ], 8, so));
3883
3883
  }
3884
- }), Rt = /* @__PURE__ */ W(fo, [["__scopeId", "data-v-dcfacff6"]]), mo = ["aria-label"], po = ["onClick"], Co = /* @__PURE__ */ z({
3884
+ }), St = /* @__PURE__ */ W(fo, [["__scopeId", "data-v-dcfacff6"]]), mo = ["aria-label"], po = ["onClick"], Co = /* @__PURE__ */ Z({
3885
3885
  __name: "GalleryGrid",
3886
3886
  props: {
3887
3887
  images: {},
@@ -3898,7 +3898,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3898
3898
  setup(e) {
3899
3899
  return (n, t) => (v(), b("div", {
3900
3900
  class: "rs-gallery-grid",
3901
- style: He({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
3901
+ style: Ie({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
3902
3902
  role: "list",
3903
3903
  "aria-label": e.ariaLabel || "Image grid gallery"
3904
3904
  }, [
@@ -3916,9 +3916,9 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3916
3916
  ], 8, po))), 128))
3917
3917
  ], 12, mo));
3918
3918
  }
3919
- }), St = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-17067a4b"]]), Xe = /* @__PURE__ */ Symbol("ModalContext");
3920
- let at = 0, Pe = 0, Ue = null;
3921
- const ot = z({
3919
+ }), Tt = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-17067a4b"]]), Ge = /* @__PURE__ */ Symbol("ModalContext");
3920
+ let nt = 0, Ue = 0, Ke = null;
3921
+ const lt = Z({
3922
3922
  name: "Modal",
3923
3923
  props: {
3924
3924
  motion: {
@@ -3939,7 +3939,7 @@ const ot = z({
3939
3939
  n("update:open", h), n(h ? "opened" : "closed");
3940
3940
  });
3941
3941
  const s = () => o.value = !1, c = E(() => e.motion), u = E(() => e.size);
3942
- return Ve(Xe, {
3942
+ return He(Ge, {
3943
3943
  isOpen: o,
3944
3944
  motion: c,
3945
3945
  size: u,
@@ -3950,15 +3950,15 @@ const ot = z({
3950
3950
  hasTitle: a
3951
3951
  }), () => t.default?.();
3952
3952
  }
3953
- }), Tt = z({
3953
+ }), Dt = Z({
3954
3954
  name: "ModalContent",
3955
3955
  setup(e, { slots: n }) {
3956
- const t = pe(Xe);
3956
+ const t = pe(Ge);
3957
3957
  if (!t) throw new Error("ModalContent components must be used inside <Modal>");
3958
3958
  const a = M(null);
3959
3959
  let o = 0;
3960
3960
  const i = (h) => {
3961
- h.key === "Escape" && o === at && t.close();
3961
+ h.key === "Escape" && o === nt && t.close();
3962
3962
  };
3963
3963
  let r = !1, l = null;
3964
3964
  const s = (h) => {
@@ -3978,28 +3978,28 @@ const ot = z({
3978
3978
  h.removeEventListener("keydown", L), l = null;
3979
3979
  };
3980
3980
  }, c = () => {
3981
- ++Pe === 1 && (document.body.style.overflow = "hidden");
3981
+ ++Ue === 1 && (document.body.style.overflow = "hidden");
3982
3982
  }, u = () => {
3983
- --Pe === 0 && (document.body.style.overflow = "");
3983
+ --Ue === 0 && (document.body.style.overflow = "");
3984
3984
  };
3985
3985
  return Be(() => {
3986
- l?.(), document.removeEventListener("keydown", i), Pe > 0 && Pe--, Pe === 0 && (document.body.style.overflow = "");
3986
+ l?.(), document.removeEventListener("keydown", i), Ue > 0 && Ue--, Ue === 0 && (document.body.style.overflow = "");
3987
3987
  }), () => j(
3988
- qe,
3988
+ Fe,
3989
3989
  { to: "body" },
3990
3990
  j(
3991
- _e,
3991
+ Ae,
3992
3992
  {
3993
3993
  name: `modal-${t.motion.value}`,
3994
3994
  appear: !0,
3995
3995
  onEnter: () => {
3996
- o = ++at, Ue = document.activeElement, c();
3996
+ o = ++nt, Ke = document.activeElement, c();
3997
3997
  },
3998
3998
  onAfterEnter: () => {
3999
3999
  a.value && (s(a.value), document.addEventListener("keydown", i));
4000
4000
  },
4001
4001
  onAfterLeave: () => {
4002
- at--, document.removeEventListener("keydown", i), l?.(), u(), Ue && document.contains(Ue) && Ue.focus(), Ue = null;
4002
+ nt--, document.removeEventListener("keydown", i), l?.(), u(), Ke && document.contains(Ke) && Ke.focus(), Ke = null;
4003
4003
  }
4004
4004
  },
4005
4005
  {
@@ -4033,32 +4033,32 @@ const ot = z({
4033
4033
  )
4034
4034
  );
4035
4035
  }
4036
- }), Dt = z({
4036
+ }), Zt = Z({
4037
4037
  name: "ModalTitle",
4038
4038
  setup(e, { slots: n }) {
4039
- const t = pe(Xe);
4039
+ const t = pe(Ge);
4040
4040
  if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
4041
4041
  return t.hasTitle.value = !0, () => j("h2", { id: t.labelId }, n.default?.());
4042
4042
  }
4043
- }), Zt = z({
4043
+ }), zt = Z({
4044
4044
  name: "ModalHeader",
4045
4045
  setup(e, { slots: n }) {
4046
4046
  return () => j("div", { class: "modal-header" }, n.default?.());
4047
4047
  }
4048
- }), zt = z({
4048
+ }), Nt = Z({
4049
4049
  name: "ModalBody",
4050
4050
  setup(e, { slots: n }) {
4051
4051
  return () => j("div", { class: "modal-body" }, n.default?.());
4052
4052
  }
4053
- }), tr = z({
4053
+ }), nr = Z({
4054
4054
  name: "ModalFooter",
4055
4055
  setup(e, { slots: n }) {
4056
4056
  return () => j("div", { class: "modal-footer" }, n.default?.());
4057
4057
  }
4058
- }), Nt = z({
4058
+ }), Ot = Z({
4059
4059
  name: "ModalClose",
4060
4060
  setup() {
4061
- const e = pe(Xe);
4061
+ const e = pe(Ge);
4062
4062
  if (!e) throw new Error("ModalClose components must be used inside <Modal>");
4063
4063
  return () => j(
4064
4064
  "button",
@@ -4072,12 +4072,12 @@ const ot = z({
4072
4072
  );
4073
4073
  }
4074
4074
  });
4075
- Object.assign(ot, {
4075
+ Object.assign(lt, {
4076
4076
  install(e) {
4077
- e.component("Modal", ot), e.component("ModalBody", zt), e.component("ModalTitle", Dt), e.component("ModalClose", Nt), e.component("ModalHeader", Zt), e.component("ModalContent", Tt);
4077
+ e.component("Modal", lt), e.component("ModalBody", Nt), e.component("ModalTitle", Zt), e.component("ModalClose", Ot), e.component("ModalHeader", zt), e.component("ModalContent", Dt);
4078
4078
  }
4079
4079
  });
4080
- const ho = /* @__PURE__ */ z({
4080
+ const ho = /* @__PURE__ */ Z({
4081
4081
  __name: "GalleryGridWithLightbox",
4082
4082
  props: {
4083
4083
  images: {},
@@ -4096,36 +4096,36 @@ const ho = /* @__PURE__ */ z({
4096
4096
  n.value = i, t.value = !0;
4097
4097
  }, o = () => t.value = !1;
4098
4098
  return (i, r) => (v(), b(de, null, [
4099
- U(St, {
4099
+ U(Tt, {
4100
4100
  images: e.images,
4101
4101
  onChange: a,
4102
4102
  "aria-label": e.ariaLabel,
4103
4103
  transform: e.transform
4104
4104
  }, null, 8, ["images", "aria-label", "transform"]),
4105
- U(D(ot), {
4105
+ U(N(lt), {
4106
4106
  open: t.value,
4107
4107
  "onUpdate:open": r[2] || (r[2] = (l) => t.value = l),
4108
4108
  motion: "fade",
4109
4109
  size: "xl"
4110
4110
  }, {
4111
4111
  default: J(() => [
4112
- U(D(Tt), null, {
4112
+ U(N(Dt), null, {
4113
4113
  default: J(() => [
4114
- U(D(Zt), null, {
4114
+ U(N(zt), null, {
4115
4115
  default: J(() => [
4116
- U(D(Dt), null, {
4116
+ U(N(Zt), null, {
4117
4117
  default: J(() => [...r[3] || (r[3] = [
4118
- Le("Image Gallery", -1)
4118
+ Me("Image Gallery", -1)
4119
4119
  ])]),
4120
4120
  _: 1
4121
4121
  }),
4122
- U(D(Nt))
4122
+ U(N(Ot))
4123
4123
  ]),
4124
4124
  _: 1
4125
4125
  }),
4126
- U(D(zt), null, {
4126
+ U(N(Nt), null, {
4127
4127
  default: J(() => [
4128
- U(Rt, {
4128
+ U(St, {
4129
4129
  modelValue: n.value,
4130
4130
  "onUpdate:modelValue": r[0] || (r[0] = (l) => n.value = l),
4131
4131
  images: e.images,
@@ -4145,7 +4145,7 @@ const ho = /* @__PURE__ */ z({
4145
4145
  }, 8, ["open"])
4146
4146
  ], 64));
4147
4147
  }
4148
- }), go = { class: "rs-gallery-masonry" }, yo = /* @__PURE__ */ z({
4148
+ }), go = { class: "rs-gallery-masonry" }, yo = /* @__PURE__ */ Z({
4149
4149
  __name: "GalleryMasonry",
4150
4150
  props: {
4151
4151
  images: {},
@@ -4176,7 +4176,7 @@ const ho = /* @__PURE__ */ z({
4176
4176
  class: "rs-image-gallery",
4177
4177
  role: "region",
4178
4178
  "aria-label": "Image gallery"
4179
- }, wo = /* @__PURE__ */ z({
4179
+ }, wo = /* @__PURE__ */ Z({
4180
4180
  __name: "ImageGallery",
4181
4181
  props: /* @__PURE__ */ ie({
4182
4182
  images: {},
@@ -4197,14 +4197,14 @@ const ho = /* @__PURE__ */ z({
4197
4197
  }),
4198
4198
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
4199
4199
  setup(e, { emit: n }) {
4200
- const t = we(e, "modelValue"), a = n, o = E({
4200
+ const t = ke(e, "modelValue"), a = n, o = E({
4201
4201
  get: () => t.value ?? 0,
4202
4202
  set: (r) => {
4203
4203
  t.value = r, a("change", r);
4204
4204
  }
4205
4205
  }), i = (r) => o.value = r;
4206
4206
  return (r, l) => (v(), b("section", ko, [
4207
- e.layout === "carousel" ? (v(), ae(Rt, {
4207
+ e.layout === "carousel" ? (v(), ae(St, {
4208
4208
  key: 0,
4209
4209
  modelValue: o.value,
4210
4210
  "onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s),
@@ -4214,7 +4214,7 @@ const ho = /* @__PURE__ */ z({
4214
4214
  transform: e.transform,
4215
4215
  "transform-thumbnails": e.transformThumbnails,
4216
4216
  "show-thumbnails": e.showThumbnails
4217
- }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), ae(St, {
4217
+ }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), ae(Tt, {
4218
4218
  key: 1,
4219
4219
  modelValue: o.value,
4220
4220
  "onUpdate:modelValue": l[1] || (l[1] = (s) => o.value = s),
@@ -4250,7 +4250,7 @@ const Mo = ["aria-busy"], Lo = {
4250
4250
  }, xo = {
4251
4251
  class: "message sr-only",
4252
4252
  "aria-atomic": "true"
4253
- }, $o = /* @__PURE__ */ z({
4253
+ }, $o = /* @__PURE__ */ Z({
4254
4254
  __name: "Spinner",
4255
4255
  props: {
4256
4256
  message: {}
@@ -4282,7 +4282,7 @@ const Mo = ["aria-busy"], Lo = {
4282
4282
  x("span", xo, K(e.message || "Loading"), 1)
4283
4283
  ], 8, Mo));
4284
4284
  }
4285
- }), Ot = /* @__PURE__ */ W($o, [["__scopeId", "data-v-e61a1cf5"]]), Io = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], Ho = {
4285
+ }), qt = /* @__PURE__ */ W($o, [["__scopeId", "data-v-e61a1cf5"]]), Io = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], Ho = {
4286
4286
  class: "checkbox-control",
4287
4287
  "aria-hidden": "true"
4288
4288
  }, Vo = {
@@ -4292,7 +4292,7 @@ const Mo = ["aria-busy"], Lo = {
4292
4292
  key: 1,
4293
4293
  class: "indeterminate",
4294
4294
  "view-box": "0 0 16 16"
4295
- }, Ao = { class: "checkbox-label" }, _o = /* @__PURE__ */ z({
4295
+ }, _o = { class: "checkbox-label" }, Ao = /* @__PURE__ */ Z({
4296
4296
  __name: "Checkbox",
4297
4297
  props: /* @__PURE__ */ ie({
4298
4298
  id: {},
@@ -4306,7 +4306,7 @@ const Mo = ["aria-busy"], Lo = {
4306
4306
  }),
4307
4307
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
4308
4308
  setup(e, { emit: n }) {
4309
- const t = n, a = we(e, "modelValue"), o = e, i = ge(), r = E(() => o.id ?? `checkbox-${i}`), l = M(null), s = Un(o).value, c = E(() => o.required ? !0 : void 0), u = E(() => o.triState && a.value === void 0 ? "mixed" : void 0);
4309
+ const t = n, a = ke(e, "modelValue"), o = e, i = ge(), r = E(() => o.id ?? `checkbox-${i}`), l = M(null), s = Un(o).value, c = E(() => o.required ? !0 : void 0), u = E(() => o.triState && a.value === void 0 ? "mixed" : void 0);
4310
4310
  Q(
4311
4311
  () => a.value,
4312
4312
  (C) => {
@@ -4335,7 +4335,7 @@ const Mo = ["aria-busy"], Lo = {
4335
4335
  checked: a.value === !0,
4336
4336
  disabled: e.disabled,
4337
4337
  "aria-invalid": e.invalid ? "true" : void 0,
4338
- "aria-disabled": D(s),
4338
+ "aria-disabled": N(s),
4339
4339
  "aria-checked": u.value,
4340
4340
  onClick: m[0] || (m[0] = (p) => e.triState ? h(p) : void 0),
4341
4341
  onChange: m[1] || (m[1] = (p) => e.triState ? void 0 : h(p)),
@@ -4355,12 +4355,12 @@ const Mo = ["aria-busy"], Lo = {
4355
4355
  }, null, -1)
4356
4356
  ])])) : O("", !0)
4357
4357
  ]),
4358
- x("span", Ao, [
4358
+ x("span", _o, [
4359
4359
  G(C.$slots, "default", {}, void 0, !0)
4360
4360
  ])
4361
4361
  ], 2));
4362
4362
  }
4363
- }), ar = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-3a0c4f73"]]), Eo = ["for"], Ro = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], So = /* @__PURE__ */ z({
4363
+ }), or = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3a0c4f73"]]), Eo = ["for"], Ro = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], So = /* @__PURE__ */ Z({
4364
4364
  __name: "Textarea",
4365
4365
  props: /* @__PURE__ */ ie({
4366
4366
  id: {},
@@ -4376,41 +4376,41 @@ const Mo = ["aria-busy"], Lo = {
4376
4376
  }),
4377
4377
  emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
4378
4378
  setup(e, { emit: n }) {
4379
- const t = we(e, "modelValue"), a = st(), o = it(), i = n, r = e, l = ge(), s = M(!1), c = `${l}-error`, u = `${l}-hint`, h = Ye(a).value, C = E(() => t.value !== null && t.value !== void 0 && t.value !== ""), m = E(() => h ? `${u} ${l}-required-hint` : u), p = dt(r, o, c, m.value).value, L = (A) => {
4380
- const N = A.target;
4381
- t.value = r.type === "number" ? Number(N.value) : N.value;
4382
- }, V = (A) => {
4383
- s.value = !0, i("focus", A);
4384
- }, $ = (A) => {
4385
- s.value = !1, i("blur", A);
4379
+ const t = ke(e, "modelValue"), a = st(), o = it(), i = n, r = e, l = ge(), s = M(!1), c = `${l}-error`, u = `${l}-hint`, h = Xe(a).value, C = E(() => t.value !== null && t.value !== void 0 && t.value !== ""), m = E(() => h ? `${u} ${l}-required-hint` : u), p = dt(r, o, c, m.value).value, L = (_) => {
4380
+ const z = _.target;
4381
+ t.value = r.type === "number" ? Number(z.value) : z.value;
4382
+ }, V = (_) => {
4383
+ s.value = !0, i("focus", _);
4384
+ }, $ = (_) => {
4385
+ s.value = !1, i("blur", _);
4386
4386
  }, k = E(() => r.invalid === !0 && r.errorMessage ? c : void 0);
4387
- return (A, N) => (v(), b("div", {
4388
- class: fe(["textarea-box", { required: D(h), error: e.invalid, filled: C.value, focused: s.value }])
4387
+ return (_, z) => (v(), b("div", {
4388
+ class: fe(["textarea-box", { required: N(h), error: e.invalid, filled: C.value, focused: s.value }])
4389
4389
  }, [
4390
4390
  x("label", {
4391
4391
  for: e.id,
4392
4392
  class: "label"
4393
4393
  }, K(e.label), 9, Eo),
4394
- x("textarea", ke({ id: e.id }, A.$attrs, {
4394
+ x("textarea", be({ id: e.id }, _.$attrs, {
4395
4395
  class: "custom-textarea",
4396
- onFocus: N[0] || (N[0] = (P) => V(P)),
4397
- onBlur: N[1] || (N[1] = (P) => $(P)),
4396
+ onFocus: z[0] || (z[0] = (P) => V(P)),
4397
+ onBlur: z[1] || (z[1] = (P) => $(P)),
4398
4398
  onInput: L,
4399
4399
  value: t.value,
4400
- required: D(h),
4400
+ required: N(h),
4401
4401
  "aria-invalid": e.invalid ? "true" : void 0,
4402
4402
  "aria-errormessage": k.value,
4403
- "aria-describedby": D(p)
4403
+ "aria-describedby": N(p)
4404
4404
  }), " ", 16, Ro),
4405
4405
  U(vt, { hintId: u }, {
4406
4406
  default: J(() => [
4407
- G(A.$slots, "hint", {}, void 0, !0)
4407
+ G(_.$slots, "hint", {}, void 0, !0)
4408
4408
  ]),
4409
4409
  _: 3
4410
4410
  }),
4411
4411
  U(ft, {
4412
- baseId: D(l),
4413
- isRequired: D(h)
4412
+ baseId: N(l),
4413
+ isRequired: N(h)
4414
4414
  }, null, 8, ["baseId", "isRequired"]),
4415
4415
  U(mt, {
4416
4416
  errorId: c,
@@ -4419,7 +4419,7 @@ const Mo = ["aria-busy"], Lo = {
4419
4419
  }, null, 8, ["invalid", "errorMessage"])
4420
4420
  ], 2));
4421
4421
  }
4422
- }), nr = /* @__PURE__ */ W(So, [["__scopeId", "data-v-d54f9689"]]), To = { key: 0 }, Do = { key: 1 }, Zo = /* @__PURE__ */ z({
4422
+ }), lr = /* @__PURE__ */ W(So, [["__scopeId", "data-v-d54f9689"]]), To = { key: 0 }, Do = { key: 1 }, Zo = /* @__PURE__ */ Z({
4423
4423
  __name: "Highlight",
4424
4424
  props: {
4425
4425
  text: {},
@@ -4462,7 +4462,7 @@ const Mo = ["aria-busy"], Lo = {
4462
4462
  label: "The passwords must match.",
4463
4463
  validator: (e, n) => e === n && e.length > 0
4464
4464
  }
4465
- ], Oo = { class: "password-validation" }, qo = { class: "password-rules" }, Fo = ["data-rule"], Po = { class: "strength-meter" }, Uo = { class: "strength-top" }, Ko = /* @__PURE__ */ z({
4465
+ ], Oo = { class: "password-validation" }, qo = { class: "password-rules" }, Fo = ["data-rule"], Po = { class: "strength-meter" }, Uo = { class: "strength-top" }, Ko = /* @__PURE__ */ Z({
4466
4466
  __name: "PasswordValidator",
4467
4467
  props: {
4468
4468
  id: {},
@@ -4519,7 +4519,7 @@ const Mo = ["aria-busy"], Lo = {
4519
4519
  ref: ($) => l($, V)
4520
4520
  }, [
4521
4521
  p[0] || (p[0] = x("span", { class: "rule-icon" }, "•", -1)),
4522
- Le(" " + K(L.label), 1)
4522
+ Me(" " + K(L.label), 1)
4523
4523
  ], 8, Fo))), 128))
4524
4524
  ]),
4525
4525
  x("div", Po, [
@@ -4554,7 +4554,7 @@ const jo = {
4554
4554
  key: 0,
4555
4555
  class: "ui-breadcrumb__separator",
4556
4556
  "aria-hidden": "true"
4557
- }, Xo = /* @__PURE__ */ z({
4557
+ }, Xo = /* @__PURE__ */ Z({
4558
4558
  __name: "Breadcrumb",
4559
4559
  props: {
4560
4560
  items: {},
@@ -4573,31 +4573,31 @@ const jo = {
4573
4573
  key: c.to ?? c.href ?? `${c.label}-${u}`,
4574
4574
  class: "ui-breadcrumb__item"
4575
4575
  }, [
4576
- (v(), ae(Ne(o(c, u)), ke({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, r(c, u), {
4576
+ (v(), ae(Ne(o(c, u)), be({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, r(c, u), {
4577
4577
  "aria-posinset": u + 1,
4578
4578
  "aria-setsize": e.items.length,
4579
4579
  "aria-current": a(u) ? "page" : void 0,
4580
4580
  tabindex: a(u) || o(c, u) === "span" ? -1 : void 0
4581
4581
  }), {
4582
4582
  default: J(() => [
4583
- Le(K(c.label), 1)
4583
+ Me(K(c.label), 1)
4584
4584
  ]),
4585
4585
  _: 2
4586
4586
  }, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
4587
4587
  a(u) ? O("", !0) : (v(), b("span", Yo, [
4588
4588
  G(l.$slots, "separator", {}, () => [
4589
- Le(K(e.separator), 1)
4589
+ Me(K(e.separator), 1)
4590
4590
  ], !0)
4591
4591
  ]))
4592
4592
  ]))), 128))
4593
4593
  ])
4594
4594
  ]));
4595
4595
  }
4596
- }), or = /* @__PURE__ */ W(Xo, [["__scopeId", "data-v-baed1592"]]), Go = ["aria-invalid", "aria-required", "disabled"], Jo = { class: "sr-only" }, Qo = ["name", "value", "disabled", "required"], e2 = {
4596
+ }), rr = /* @__PURE__ */ W(Xo, [["__scopeId", "data-v-baed1592"]]), Go = ["aria-invalid", "aria-required", "disabled"], Jo = { class: "sr-only" }, Qo = ["name", "value", "disabled", "required"], e2 = {
4597
4597
  key: 0,
4598
4598
  class: "radio-control",
4599
4599
  "aria-hidden": "true"
4600
- }, t2 = { class: "radio-label" }, a2 = /* @__PURE__ */ z({
4600
+ }, t2 = { class: "radio-label" }, a2 = /* @__PURE__ */ Z({
4601
4601
  __name: "RadioButton",
4602
4602
  props: /* @__PURE__ */ ie({
4603
4603
  name: {},
@@ -4615,7 +4615,7 @@ const jo = {
4615
4615
  }),
4616
4616
  emits: ["update:modelValue"],
4617
4617
  setup(e) {
4618
- const n = e, t = we(e, "modelValue"), a = E(() => n.invalid ? "true" : void 0), o = E(() => n.required && !n.disabled ? "true" : void 0), i = E(() => n.disabled ? !0 : void 0);
4618
+ const n = e, t = ke(e, "modelValue"), a = E(() => n.invalid ? "true" : void 0), o = E(() => n.required && !n.disabled ? "true" : void 0), i = E(() => n.disabled ? !0 : void 0);
4619
4619
  return (r, l) => (v(), b("fieldset", {
4620
4620
  class: fe(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
4621
4621
  "aria-invalid": a.value,
@@ -4627,7 +4627,7 @@ const jo = {
4627
4627
  key: s.key,
4628
4628
  class: fe(["radio", { checked: t.value === s.key, disabled: e.disabled || s.disabled }])
4629
4629
  }, [
4630
- Ae(x("input", {
4630
+ _e(x("input", {
4631
4631
  type: "radio",
4632
4632
  class: "radio-input",
4633
4633
  name: e.name,
@@ -4645,12 +4645,12 @@ const jo = {
4645
4645
  name: s.icon,
4646
4646
  size: 22
4647
4647
  }, null, 8, ["name"])) : O("", !0),
4648
- Le(" " + K(s.label), 1)
4648
+ Me(" " + K(s.label), 1)
4649
4649
  ])
4650
4650
  ], 2))), 128))
4651
4651
  ], 10, Go));
4652
4652
  }
4653
- }), lr = /* @__PURE__ */ W(a2, [["__scopeId", "data-v-67f86bfb"]]), n2 = ["for"], o2 = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], l2 = ["id", "aria-disabled", "aria-selected", "onClick"], r2 = {
4653
+ }), sr = /* @__PURE__ */ W(a2, [["__scopeId", "data-v-67f86bfb"]]), n2 = ["for"], o2 = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], l2 = ["id", "aria-disabled", "aria-selected", "onClick"], r2 = {
4654
4654
  class: "option-value",
4655
4655
  "aria-hidden": "true"
4656
4656
  }, s2 = { class: "option-value sr-only" }, i2 = {
@@ -4666,7 +4666,7 @@ const jo = {
4666
4666
  key: 0,
4667
4667
  class: "start-icon",
4668
4668
  "aria-hidden": "true"
4669
- }, f2 = /* @__PURE__ */ z({
4669
+ }, f2 = /* @__PURE__ */ Z({
4670
4670
  __name: "Autocomplete",
4671
4671
  props: /* @__PURE__ */ ie({
4672
4672
  id: {},
@@ -4692,11 +4692,11 @@ const jo = {
4692
4692
  }),
4693
4693
  emits: /* @__PURE__ */ ie(["change", "select", "focus", "blur"], ["update:modelValue"]),
4694
4694
  setup(e, { emit: n }) {
4695
- const t = e, a = n, o = we(e, "modelValue"), i = M(null), r = M(""), l = M(!1), s = M([]), c = M(null), u = M(null), h = E(() => t.id ? `${t.id}-search-history` : "search-history"), m = `${ge()}-list`, p = M(!1), L = E(() => o.value !== null && o.value !== void 0 && o.value !== ""), V = E(() => c.value !== null ? `${m}-option-${c.value}` : void 0), $ = E(() => l.value && V.value ? V.value : void 0), k = E(() => s.value.length > 0), A = E(() => {
4695
+ 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 = E(() => t.id ? `${t.id}-search-history` : "search-history"), m = `${ge()}-list`, p = M(!1), L = E(() => o.value !== null && o.value !== void 0 && o.value !== ""), V = E(() => c.value !== null ? `${m}-option-${c.value}` : void 0), $ = E(() => l.value && V.value ? V.value : void 0), k = E(() => s.value.length > 0), _ = E(() => {
4696
4696
  if (!t.filterable) return t.options;
4697
4697
  const w = r.value.toLowerCase();
4698
4698
  return t.options.filter((T) => t.getValue(T).toLowerCase().includes(w));
4699
- }), N = Ye(t).value;
4699
+ }), z = Xe(t).value;
4700
4700
  Q(
4701
4701
  () => h.value,
4702
4702
  (w) => {
@@ -4713,11 +4713,11 @@ const jo = {
4713
4713
  c.value = null;
4714
4714
  return;
4715
4715
  }
4716
- A.value.length !== 0 && (await Ie(), R());
4716
+ _.value.length !== 0 && (await $e(), R());
4717
4717
  }), Q(
4718
4718
  () => t.loading,
4719
4719
  async (w) => {
4720
- w || l.value && A.value.length !== 0 && (await Ie(), R());
4720
+ w || l.value && _.value.length !== 0 && (await $e(), R());
4721
4721
  }
4722
4722
  ), Q(
4723
4723
  () => t.options,
@@ -4738,7 +4738,7 @@ const jo = {
4738
4738
  f && f.toString().length > 0 ? Y.classList.add("filled") : Y.classList.remove("filled"), r.value = t.getValue(w), o.value = f, a("select", f);
4739
4739
  }, re = (w) => {
4740
4740
  if (!l.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
4741
- l.value = !0, c.value = c.value ?? A.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
4741
+ l.value = !0, c.value = c.value ?? _.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
4742
4742
  return;
4743
4743
  }
4744
4744
  if (l.value) {
@@ -4752,7 +4752,7 @@ const jo = {
4752
4752
  }
4753
4753
  if (w.key === "Enter") {
4754
4754
  if (c.value === null) return;
4755
- const T = A.value[c.value];
4755
+ const T = _.value[c.value];
4756
4756
  if (!T || t.isDisabled(T)) return;
4757
4757
  ue(T, c.value), l.value = !1, w.preventDefault();
4758
4758
  }
@@ -4763,8 +4763,8 @@ const jo = {
4763
4763
  let T = c.value;
4764
4764
  do
4765
4765
  T += w;
4766
- while (T >= 0 && T < A.value.length && t.isDisabled(A.value[T]));
4767
- T >= 0 && T < A.value.length && (c.value = T);
4766
+ while (T >= 0 && T < _.value.length && t.isDisabled(_.value[T]));
4767
+ T >= 0 && T < _.value.length && (c.value = T);
4768
4768
  }, S = () => {
4769
4769
  r.value.length === 0 && (o.value = ""), r.value.length >= t.minChars ? (a("change", r.value), l.value = !0) : l.value = !1;
4770
4770
  }, I = () => {
@@ -4775,28 +4775,28 @@ const jo = {
4775
4775
  Q(
4776
4776
  [() => t.options.length, () => o.value],
4777
4777
  async ([w, T]) => {
4778
- T && (await Ie(), I());
4778
+ T && (await $e(), I());
4779
4779
  },
4780
4780
  { flush: "post", immediate: !0 }
4781
4781
  );
4782
- const _ = () => {
4782
+ const A = () => {
4783
4783
  r.value = "", o.value = "";
4784
4784
  }, g = (w) => {
4785
4785
  !w || w.trim().length === 0 || (s.value = [
4786
4786
  w,
4787
4787
  ...s.value.filter((T) => T !== w)
4788
4788
  ].slice(0, t.suggestionsLimit), localStorage.setItem(h.value, JSON.stringify(s.value)));
4789
- }, Z = (w) => {
4789
+ }, D = (w) => {
4790
4790
  r.value = w, S();
4791
4791
  }, R = () => {
4792
4792
  const w = q();
4793
4793
  w >= 0 && (c.value = w);
4794
- }, q = () => A.value.findIndex((w) => !t.isDisabled(w)), B = () => {
4795
- for (let w = A.value.length - 1; w >= 0; w--) if (!t.isDisabled(A.value[w])) return w;
4794
+ }, q = () => _.value.findIndex((w) => !t.isDisabled(w)), B = () => {
4795
+ for (let w = _.value.length - 1; w >= 0; w--) if (!t.isDisabled(_.value[w])) return w;
4796
4796
  return -1;
4797
4797
  };
4798
4798
  return ve(() => I()), (w, T) => (v(), b("div", {
4799
- class: fe(["autocomplete", { required: D(N), error: e.invalid, "has-icon": Object.keys(w.$slots).includes("icon"), filled: L.value, focused: p.value }]),
4799
+ class: fe(["autocomplete", { required: N(z), error: e.invalid, "has-icon": Object.keys(w.$slots).includes("icon"), filled: L.value, focused: p.value }]),
4800
4800
  ref_key: "autocompleteRef",
4801
4801
  ref: i
4802
4802
  }, [
@@ -4804,7 +4804,7 @@ const jo = {
4804
4804
  for: e.id,
4805
4805
  class: "label"
4806
4806
  }, K(e.label), 9, n2),
4807
- Ae(x("input", ke({
4807
+ _e(x("input", be({
4808
4808
  id: e.id,
4809
4809
  type: e.type
4810
4810
  }, w.$attrs, {
@@ -4813,7 +4813,7 @@ const jo = {
4813
4813
  "aria-expanded": l.value,
4814
4814
  "aria-controls": m,
4815
4815
  "aria-activedescendant": $.value,
4816
- "aria-required": D(N),
4816
+ "aria-required": N(z),
4817
4817
  "aria-invalid": e.invalid ? "true" : void 0,
4818
4818
  disabled: e.disabled ? !0 : void 0,
4819
4819
  "aria-disabled": e.disabled ? !0 : void 0,
@@ -4825,14 +4825,14 @@ const jo = {
4825
4825
  }), null, 16, o2), [
4826
4826
  [jt, r.value]
4827
4827
  ]),
4828
- U(_e, { name: "select" }, {
4828
+ U(Ae, { name: "select" }, {
4829
4829
  default: J(() => [
4830
- Ae(x("ul", {
4830
+ _e(x("ul", {
4831
4831
  id: m,
4832
4832
  role: "listbox",
4833
4833
  class: "options"
4834
4834
  }, [
4835
- A.value.length > 0 ? (v(!0), b(de, { key: 0 }, he(A.value, (Y, f) => (v(), b("li", {
4835
+ _.value.length > 0 ? (v(!0), b(de, { key: 0 }, he(_.value, (Y, f) => (v(), b("li", {
4836
4836
  id: `${m}-option-${f}`,
4837
4837
  key: e.getKey(Y),
4838
4838
  role: "option",
@@ -4863,9 +4863,9 @@ const jo = {
4863
4863
  ])
4864
4864
  ], !0),
4865
4865
  x("div", s2, K(e.getValue(Y)), 1)
4866
- ], 42, l2))), 128)) : A.value.length === 0 && !e.loading ? (v(), b("li", i2, [...T[3] || (T[3] = [
4866
+ ], 42, l2))), 128)) : _.value.length === 0 && !e.loading ? (v(), b("li", i2, [...T[3] || (T[3] = [
4867
4867
  x("div", { class: "option-value" }, "No results found", -1)
4868
- ])])) : (v(), ae(Ot, {
4868
+ ])])) : (v(), ae(qt, {
4869
4869
  key: 2,
4870
4870
  "aria-live": "polite",
4871
4871
  role: "status",
@@ -4879,7 +4879,7 @@ const jo = {
4879
4879
  role: "presentation",
4880
4880
  "aria-hidden": "true",
4881
4881
  class: "option recent-item",
4882
- onClick: (f) => Z(Y)
4882
+ onClick: (f) => D(Y)
4883
4883
  }, [
4884
4884
  U(Ce, { name: "clock" }),
4885
4885
  x("div", d2, K(Y), 1)
@@ -4893,7 +4893,7 @@ const jo = {
4893
4893
  w.$slots.icon ? (v(), b("span", v2, [
4894
4894
  G(w.$slots, "icon", {}, void 0, !0)
4895
4895
  ])) : O("", !0),
4896
- r.value.length > 0 && !e.disabled ? (v(), ae(xe, {
4896
+ r.value.length > 0 && !e.disabled ? (v(), ae(Le, {
4897
4897
  key: 1,
4898
4898
  type: "button",
4899
4899
  class: "btn btn-icon",
@@ -4902,7 +4902,7 @@ const jo = {
4902
4902
  "\\": "",
4903
4903
  onMousedown: T[2] || (T[2] = se(() => {
4904
4904
  }, ["prevent"])),
4905
- onClick: _
4905
+ onClick: A
4906
4906
  }, {
4907
4907
  default: J(() => [
4908
4908
  U(Ce, {
@@ -4916,7 +4916,7 @@ const jo = {
4916
4916
  })) : O("", !0)
4917
4917
  ], 2));
4918
4918
  }
4919
- }), rr = /* @__PURE__ */ W(f2, [["__scopeId", "data-v-7b61315b"]]), m2 = 5, Me = ut({
4919
+ }), ir = /* @__PURE__ */ W(f2, [["__scopeId", "data-v-7b61315b"]]), m2 = 5, we = ut({
4920
4920
  toasts: []
4921
4921
  });
4922
4922
  let p2 = 0;
@@ -4927,8 +4927,8 @@ const Ze = (e, n = "info") => {
4927
4927
  ...typeof e == "string" ? { description: e } : e,
4928
4928
  variant: n
4929
4929
  };
4930
- return Me.toasts.push(t), Me.toasts.length > m2 && Me.toasts.shift(), t.id;
4931
- }, C2 = (e, n) => Me.toasts = Me.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t), sr = Object.assign(
4930
+ return we.toasts.push(t), we.toasts.length > m2 && we.toasts.shift(), t.id;
4931
+ }, C2 = (e, n) => we.toasts = we.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t), ur = Object.assign(
4932
4932
  (e) => Ze(e),
4933
4933
  {
4934
4934
  update: C2,
@@ -4937,16 +4937,16 @@ const Ze = (e, n = "info") => {
4937
4937
  info: (e) => Ze(e, "info"),
4938
4938
  warning: (e) => Ze(e, "warning"),
4939
4939
  loading: (e) => Ze({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
4940
- dismiss: (e) => Me.toasts = Me.toasts.filter((n) => n.id !== e),
4940
+ dismiss: (e) => we.toasts = we.toasts.filter((n) => n.id !== e),
4941
4941
  promise(e, n) {
4942
4942
  const t = Ze({ loading: !0, description: n.loading, duration: 1 / 0 });
4943
- return e.then(() => Me.toasts = Me.toasts.map((a) => a.id === t ? { ...a, description: n.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => Me.toasts = Me.toasts.map((a) => a.id === t ? { ...a, description: n.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
4943
+ return e.then(() => we.toasts = we.toasts.map((a) => a.id === t ? { ...a, description: n.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => we.toasts = we.toasts.map((a) => a.id === t ? { ...a, description: n.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
4944
4944
  }
4945
4945
  }
4946
4946
  ), h2 = ["data-variant", "data-state", "role", "aria-describedby"], g2 = { class: "content" }, y2 = {
4947
4947
  key: 0,
4948
4948
  class: "progress"
4949
- }, b2 = 160, k2 = /* @__PURE__ */ z({
4949
+ }, b2 = 160, k2 = /* @__PURE__ */ Z({
4950
4950
  __name: "ToastRoot",
4951
4951
  props: {
4952
4952
  id: {},
@@ -4978,7 +4978,7 @@ const Ze = (e, n = "info") => {
4978
4978
  { immediate: !0 }
4979
4979
  );
4980
4980
  const c = () => {
4981
- cancelAnimationFrame(r), a.value = "closing", setTimeout(() => Me.toasts = Me.toasts.filter((u) => u.id !== n.id), b2);
4981
+ cancelAnimationFrame(r), a.value = "closing", setTimeout(() => we.toasts = we.toasts.filter((u) => u.id !== n.id), b2);
4982
4982
  };
4983
4983
  return ve(() => n.variant === "error" && n.focus && t.value?.focus()), Se(() => cancelAnimationFrame(r)), (u, h) => (v(), b("div", {
4984
4984
  ref_key: "rootRef",
@@ -4994,7 +4994,7 @@ const Ze = (e, n = "info") => {
4994
4994
  }, [
4995
4995
  x("div", g2, [
4996
4996
  G(u.$slots, "default", {}, void 0, !0),
4997
- U(xe, {
4997
+ U(Le, {
4998
4998
  type: "button",
4999
4999
  onClick: c,
5000
5000
  "aria-label": `Close ${e.variant} notification`,
@@ -5012,19 +5012,19 @@ const Ze = (e, n = "info") => {
5012
5012
  e.duration !== 1 / 0 ? (v(), b("div", y2, [
5013
5013
  x("div", {
5014
5014
  class: "bar",
5015
- style: He({ width: o.value + "%" })
5015
+ style: Ie({ width: o.value + "%" })
5016
5016
  }, null, 4)
5017
5017
  ])) : O("", !0)
5018
5018
  ], 8, h2));
5019
5019
  }
5020
- }), w2 = /* @__PURE__ */ W(k2, [["__scopeId", "data-v-f9e75b9d"]]), M2 = { class: "toast-viewport" }, L2 = { class: "toast-message" }, x2 = { key: 0 }, $2 = ["id"], I2 = /* @__PURE__ */ z({
5020
+ }), w2 = /* @__PURE__ */ W(k2, [["__scopeId", "data-v-f9e75b9d"]]), M2 = { class: "toast-viewport" }, L2 = { class: "toast-message" }, x2 = { key: 0 }, $2 = ["id"], I2 = /* @__PURE__ */ Z({
5021
5021
  __name: "ToastViewport",
5022
5022
  setup(e) {
5023
- return (n, t) => (v(), ae(qe, { to: "body" }, [
5023
+ return (n, t) => (v(), ae(Fe, { to: "body" }, [
5024
5024
  x("div", M2, [
5025
5025
  U(Wt, { name: "toast-stack" }, {
5026
5026
  default: J(() => [
5027
- (v(!0), b(de, null, he(D(Me).toasts, (a) => (v(), ae(w2, {
5027
+ (v(!0), b(de, null, he(N(we).toasts, (a) => (v(), ae(w2, {
5028
5028
  key: a.id,
5029
5029
  id: a.id,
5030
5030
  duration: a.duration,
@@ -5034,7 +5034,7 @@ const Ze = (e, n = "info") => {
5034
5034
  default: J(() => [
5035
5035
  x("div", L2, [
5036
5036
  a.title ? (v(), b("strong", x2, K(a.title), 1)) : O("", !0),
5037
- a.loading ? (v(), ae(Ot, {
5037
+ a.loading ? (v(), ae(qt, {
5038
5038
  key: 1,
5039
5039
  message: a.description,
5040
5040
  "aria-hidden": "true"
@@ -5054,95 +5054,108 @@ const Ze = (e, n = "info") => {
5054
5054
  }
5055
5055
  }), xt = /* @__PURE__ */ W(I2, [["__scopeId", "data-v-afe47f2a"]]);
5056
5056
  let $t = !1;
5057
- const ir = {
5057
+ const cr = {
5058
5058
  install(e, n = {}) {
5059
5059
  const { autoMount: t = !0 } = n;
5060
5060
  if (e.component("ToastViewport", xt), t && !$t && typeof window < "u") {
5061
5061
  $t = !0;
5062
5062
  const a = document.createElement("div");
5063
- a.setAttribute("data-toast-host", ""), document.body.appendChild(a), Bt(xt).mount(a);
5063
+ a.setAttribute("data-toast-host", ""), document.body.appendChild(a), _t(xt).mount(a);
5064
5064
  }
5065
5065
  }
5066
- }, qt = {
5066
+ }, H2 = {
5067
5067
  title: "",
5068
5068
  text: "",
5069
5069
  type: "warning",
5070
- confirmText: "OK",
5071
- cancelText: "Cancelar"
5072
- }, be = ut({
5073
- ...qt,
5074
- open: !1
5075
- });
5076
- let Ft = [], lt = !1;
5077
- const H2 = (e, n) => {
5078
- lt = !0, Object.assign(be, qt, e, {
5079
- open: !0,
5080
- resolve: (t) => {
5081
- n(t), be.open = !1, lt = !1, Ft.shift()?.();
5082
- }
5083
- });
5070
+ confirmText: "Confirm",
5071
+ cancelText: "Cancel"
5072
+ }, It = "__REINOSOFT_CONFIRM_STORE__", Ve = globalThis[It] || (globalThis[It] = ut({
5073
+ current: null,
5074
+ queue: []
5075
+ }));
5076
+ let V2 = 0;
5077
+ const B2 = (e, n) => {
5078
+ const t = {
5079
+ id: `confirm-${V2++}`,
5080
+ ...H2,
5081
+ ...typeof e == "string" ? { text: e } : e,
5082
+ resolve: n
5083
+ };
5084
+ Ve.current ? Ve.queue.push(t) : Ve.current = t;
5085
+ }, Ft = () => {
5086
+ Ve.current = Ve.queue.shift() || null;
5084
5087
  };
5085
- function ur(e) {
5086
- const n = typeof e == "string" ? { text: e } : e;
5087
- return new Promise((t) => {
5088
- const a = () => H2(n, t);
5089
- lt ? Ft.push(a) : a();
5088
+ function qe(e) {
5089
+ return new Promise((n) => {
5090
+ B2(e, n);
5090
5091
  });
5091
5092
  }
5092
- const V2 = () => be.resolve?.(!0), B2 = () => be.resolve?.(!1), A2 = {
5093
+ const _2 = () => {
5094
+ Ve.current && (Ve.current.resolve(!0), Ft());
5095
+ }, A2 = () => {
5096
+ Ve.current && (Ve.current.resolve(!1), Ft());
5097
+ };
5098
+ qe.success = (e) => qe(typeof e == "string" ? { text: e, type: "success" } : { ...e, type: "success" });
5099
+ qe.error = (e) => qe(typeof e == "string" ? { text: e, type: "error" } : { ...e, type: "error" });
5100
+ qe.warning = (e) => qe(typeof e == "string" ? { text: e, type: "warning" } : { ...e, type: "warning" });
5101
+ const E2 = {
5093
5102
  class: "modal",
5094
5103
  role: "dialog",
5095
5104
  "aria-modal": "true"
5096
- }, _2 = ["data-type"], E2 = {
5105
+ }, R2 = ["data-type"], S2 = {
5097
5106
  key: 0,
5098
5107
  class: "icon__check"
5099
- }, R2 = {
5108
+ }, T2 = {
5100
5109
  key: 1,
5101
5110
  class: "icon__cross"
5102
- }, S2 = {
5111
+ }, D2 = {
5103
5112
  key: 2,
5104
5113
  class: "icon__warning"
5105
- }, T2 = {
5114
+ }, Z2 = {
5106
5115
  key: 0,
5107
5116
  class: "title"
5108
- }, D2 = {
5117
+ }, z2 = {
5109
5118
  key: 1,
5110
5119
  class: "text"
5111
- }, Z2 = { class: "actions" }, z2 = /* @__PURE__ */ z({
5120
+ }, N2 = { class: "actions" }, O2 = /* @__PURE__ */ Z({
5112
5121
  __name: "ConfirmModal",
5113
5122
  setup(e) {
5114
- const n = () => V2(), t = () => B2(), a = (o) => o.key === "Escape" && t();
5115
- return ve(() => window.addEventListener("keydown", a)), Se(() => window.removeEventListener("keydown", a)), (o, i) => (v(), ae(qe, { to: "body" }, [
5116
- U(_e, { name: "fade" }, {
5123
+ const n = E(() => Ve.current), t = () => {
5124
+ n && _2();
5125
+ }, a = () => {
5126
+ n.value && A2();
5127
+ }, o = (i) => i.key === "Escape" && n && a();
5128
+ return ve(() => window.addEventListener("keydown", o)), Se(() => window.removeEventListener("keydown", o)), (i, r) => (v(), ae(Fe, { to: "body" }, [
5129
+ U(Ae, { name: "fade" }, {
5117
5130
  default: J(() => [
5118
- D(be).open ? (v(), b("div", {
5119
- key: 0,
5131
+ n.value ? (v(), b("div", {
5132
+ key: n.value.id,
5120
5133
  class: "overlay",
5121
- onClick: se(t, ["self"])
5134
+ onClick: se(a, ["self"])
5122
5135
  }, [
5123
- U(_e, { name: "scale" }, {
5136
+ U(Ae, { name: "scale" }, {
5124
5137
  default: J(() => [
5125
- x("div", A2, [
5138
+ x("div", E2, [
5126
5139
  x("div", {
5127
5140
  class: "icon",
5128
- "data-type": D(be).type
5141
+ "data-type": n.value.type
5129
5142
  }, [
5130
- i[0] || (i[0] = x("span", { class: "icon__circle" }, null, -1)),
5131
- D(be).type === "success" ? (v(), b("span", E2)) : O("", !0),
5132
- D(be).type === "error" ? (v(), b("span", R2)) : O("", !0),
5133
- D(be).type === "warning" ? (v(), b("span", S2)) : O("", !0)
5134
- ], 8, _2),
5135
- D(be).title ? (v(), b("h3", T2, K(D(be).title), 1)) : O("", !0),
5136
- D(be).text ? (v(), b("p", D2, K(D(be).text), 1)) : O("", !0),
5137
- x("div", Z2, [
5143
+ r[0] || (r[0] = x("span", { class: "icon__circle" }, null, -1)),
5144
+ n.value.type === "success" ? (v(), b("span", S2)) : O("", !0),
5145
+ n.value.type === "error" ? (v(), b("span", T2)) : O("", !0),
5146
+ n.value.type === "warning" ? (v(), b("span", D2)) : O("", !0)
5147
+ ], 8, R2),
5148
+ n.value.title ? (v(), b("h3", Z2, K(n.value.title), 1)) : O("", !0),
5149
+ n.value.text ? (v(), b("p", z2, K(n.value.text), 1)) : O("", !0),
5150
+ x("div", N2, [
5138
5151
  x("button", {
5139
5152
  class: "btn btn--ghost",
5140
- onClick: t
5141
- }, K(D(be).cancelText), 1),
5153
+ onClick: a
5154
+ }, K(n.value.cancelText), 1),
5142
5155
  x("button", {
5143
5156
  class: "btn btn--primary",
5144
- onClick: n
5145
- }, K(D(be).confirmText), 1)
5157
+ onClick: t
5158
+ }, K(n.value.confirmText), 1)
5146
5159
  ])
5147
5160
  ])
5148
5161
  ]),
@@ -5154,18 +5167,18 @@ const V2 = () => be.resolve?.(!0), B2 = () => be.resolve?.(!1), A2 = {
5154
5167
  })
5155
5168
  ]));
5156
5169
  }
5157
- }), It = /* @__PURE__ */ W(z2, [["__scopeId", "data-v-e38fd64e"]]);
5158
- let Ht = !1;
5159
- const cr = {
5170
+ }), Ht = /* @__PURE__ */ W(O2, [["__scopeId", "data-v-0c0c3913"]]);
5171
+ let Vt = !1;
5172
+ const dr = {
5160
5173
  install(e, n = {}) {
5161
5174
  const { autoMount: t = !0 } = n;
5162
- if (e.component("ConfirmModal", It), t && !Ht && typeof window < "u") {
5163
- Ht = !0;
5175
+ if (e.component("ConfirmModal", Ht), t && !Vt && typeof window < "u") {
5176
+ Vt = !0;
5164
5177
  const a = document.createElement("div");
5165
- a.setAttribute("data-confirm-modal-host", ""), document.body.appendChild(a), Bt(It).mount(a);
5178
+ a.setAttribute("data-confirm-modal-host", ""), document.body.appendChild(a), _t(Ht).mount(a);
5166
5179
  }
5167
5180
  }
5168
- }, N2 = /* @__PURE__ */ z({
5181
+ }, q2 = /* @__PURE__ */ Z({
5169
5182
  __name: "Card",
5170
5183
  props: {
5171
5184
  as: { default: "div" },
@@ -5174,7 +5187,7 @@ const cr = {
5174
5187
  emits: ["click"],
5175
5188
  setup(e, { emit: n }) {
5176
5189
  const t = e, a = n, o = M(), i = M();
5177
- Ve("card:labelId", o), Ve("card:descriptionId", i);
5190
+ He("card:labelId", o), He("card:descriptionId", i);
5178
5191
  const r = E(() => t.clickable && t.as !== "button" && t.as !== "a"), l = () => t.clickable && a("click");
5179
5192
  return (s, c) => (v(), ae(Ne(e.as), {
5180
5193
  class: fe(["rs-card", { clickable: e.clickable }]),
@@ -5194,7 +5207,7 @@ const cr = {
5194
5207
  _: 3
5195
5208
  }, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
5196
5209
  }
5197
- }), dr = /* @__PURE__ */ W(N2, [["__scopeId", "data-v-e892a9f2"]]), O2 = /* @__PURE__ */ z({
5210
+ }), vr = /* @__PURE__ */ W(q2, [["__scopeId", "data-v-e892a9f2"]]), F2 = /* @__PURE__ */ Z({
5198
5211
  __name: "CardHeader",
5199
5212
  props: {
5200
5213
  as: { default: "div" }
@@ -5211,7 +5224,7 @@ const cr = {
5211
5224
  _: 3
5212
5225
  }));
5213
5226
  }
5214
- }), vr = /* @__PURE__ */ W(O2, [["__scopeId", "data-v-570794b4"]]), q2 = /* @__PURE__ */ z({
5227
+ }), fr = /* @__PURE__ */ W(F2, [["__scopeId", "data-v-570794b4"]]), P2 = /* @__PURE__ */ Z({
5215
5228
  __name: "CardBody",
5216
5229
  setup(e) {
5217
5230
  const n = pe("card:descriptionId", void 0), t = `rs-card-desc-${ge()}`;
@@ -5222,7 +5235,7 @@ const cr = {
5222
5235
  G(a.$slots, "default", {}, void 0, !0)
5223
5236
  ]));
5224
5237
  }
5225
- }), fr = /* @__PURE__ */ W(q2, [["__scopeId", "data-v-f0380fda"]]), F2 = /* @__PURE__ */ z({
5238
+ }), mr = /* @__PURE__ */ W(P2, [["__scopeId", "data-v-f0380fda"]]), U2 = /* @__PURE__ */ Z({
5226
5239
  __name: "CardFooter",
5227
5240
  props: {
5228
5241
  as: { default: "div" }
@@ -5235,23 +5248,23 @@ const cr = {
5235
5248
  _: 3
5236
5249
  }));
5237
5250
  }
5238
- }), mr = /* @__PURE__ */ W(F2, [["__scopeId", "data-v-9b223473"]]), P2 = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], U2 = {
5251
+ }), pr = /* @__PURE__ */ W(U2, [["__scopeId", "data-v-9b223473"]]), K2 = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], j2 = {
5239
5252
  key: 2,
5240
5253
  class: "icon",
5241
5254
  "aria-hidden": "true",
5242
5255
  focusable: "false"
5243
- }, K2 = {
5256
+ }, W2 = {
5244
5257
  key: 3,
5245
5258
  class: "icon",
5246
5259
  "aria-hidden": "true",
5247
5260
  focusable: "false"
5248
- }, j2 = {
5261
+ }, Y2 = {
5249
5262
  key: 4,
5250
5263
  class: "dot"
5251
- }, W2 = ["id"], Y2 = { class: "addons" }, X2 = ["id"], G2 = {
5264
+ }, X2 = ["id"], G2 = { class: "addons" }, J2 = ["id"], Q2 = {
5252
5265
  key: 0,
5253
5266
  class: "slot-default"
5254
- }, J2 = /* @__PURE__ */ z({
5267
+ }, el = /* @__PURE__ */ Z({
5255
5268
  __name: "Step",
5256
5269
  props: {
5257
5270
  title: {},
@@ -5302,7 +5315,7 @@ const cr = {
5302
5315
  });
5303
5316
  Q(
5304
5317
  () => u.value,
5305
- (N) => t.registerStepStatus(c, N),
5318
+ (z) => t.registerStepStatus(c, z),
5306
5319
  { immediate: !0 }
5307
5320
  );
5308
5321
  const $ = () => {
@@ -5311,11 +5324,11 @@ const cr = {
5311
5324
  }));
5312
5325
  }, k = () => {
5313
5326
  if (!o.value || !i.value) return;
5314
- const N = i.value.getBoundingClientRect(), P = t.stepsRef.value.getBoundingClientRect(), oe = t.orientation === "vertical" ? N.top + N.height / 2 - P.top : N.left + N.width / 2 - P.left;
5327
+ const z = i.value.getBoundingClientRect(), P = t.stepsRef.value.getBoundingClientRect(), oe = t.orientation === "vertical" ? z.top + z.height / 2 - P.top : z.left + z.width / 2 - P.left;
5315
5328
  t.registerIndicatorCenter(c, oe);
5316
- }, A = (N) => {
5329
+ }, _ = (z) => {
5317
5330
  const P = t.orientation === "horizontal", oe = t.orientation === "vertical";
5318
- switch (N.key) {
5331
+ switch (z.key) {
5319
5332
  case "ArrowRight":
5320
5333
  P && t.focusNext();
5321
5334
  break;
@@ -5337,7 +5350,7 @@ const cr = {
5337
5350
  default:
5338
5351
  return;
5339
5352
  }
5340
- N.preventDefault();
5353
+ z.preventDefault();
5341
5354
  };
5342
5355
  return ve(() => {
5343
5356
  !o.value || !i.value || (requestAnimationFrame(() => {
@@ -5347,7 +5360,7 @@ const cr = {
5347
5360
  }), s.observe(o.value), s.observe(i.value), t.stepsRef.value && s.observe(t.stepsRef.value), t.registerStep(o.value));
5348
5361
  }), Be(() => {
5349
5362
  s?.disconnect(), t.unregisterStep(o.value), l != null && cancelAnimationFrame(l);
5350
- }), (N, P) => (v(), b("li", {
5363
+ }), (z, P) => (v(), b("li", {
5351
5364
  ref_key: "stepRef",
5352
5365
  ref: o,
5353
5366
  class: fe(["step", `step__${L.value}`]),
@@ -5356,13 +5369,13 @@ const cr = {
5356
5369
  "data-orientation": r.value,
5357
5370
  "data-active": u.value === "active",
5358
5371
  "data-completed": u.value === "completed",
5359
- "aria-labelledby": `step-title-${D(c)}`,
5372
+ "aria-labelledby": `step-title-${N(c)}`,
5360
5373
  tabindex: u.value === "active" ? 0 : -1,
5361
5374
  "aria-current": u.value === "active" ? "step" : void 0,
5362
- "aria-posinset": D(c) + 1,
5363
- "aria-setsize": D(t).stepsCount.value,
5364
- "aria-describedby": `step-status-${D(c)}`,
5365
- onKeydown: A
5375
+ "aria-posinset": N(c) + 1,
5376
+ "aria-setsize": N(t).stepsCount.value,
5377
+ "aria-describedby": `step-status-${N(c)}`,
5378
+ onKeydown: _
5366
5379
  }, [
5367
5380
  x("span", {
5368
5381
  ref_key: "indicatorRef",
@@ -5370,7 +5383,7 @@ const cr = {
5370
5383
  class: "indicator",
5371
5384
  "aria-hidden": "true"
5372
5385
  }, [
5373
- N.$slots.icon ? G(N.$slots, "icon", {
5386
+ z.$slots.icon ? G(z.$slots, "icon", {
5374
5387
  key: 0,
5375
5388
  status: u.value
5376
5389
  }, void 0, !0) : C.value ? (v(), ae(Ce, {
@@ -5378,55 +5391,55 @@ const cr = {
5378
5391
  name: C.value,
5379
5392
  class: "icon"
5380
5393
  }, null, 8, ["name"])) : O("", !0),
5381
- u.value === "completed" ? (v(), b("svg", U2, [...P[0] || (P[0] = [
5394
+ u.value === "completed" ? (v(), b("svg", j2, [...P[0] || (P[0] = [
5382
5395
  x("path", {
5383
5396
  d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
5384
5397
  fill: "currentColor"
5385
5398
  }, null, -1)
5386
- ])])) : u.value === "error" ? (v(), b("svg", K2, [...P[1] || (P[1] = [
5399
+ ])])) : u.value === "error" ? (v(), b("svg", W2, [...P[1] || (P[1] = [
5387
5400
  x("path", {
5388
5401
  d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
5389
5402
  fill: "currentColor"
5390
5403
  }, null, -1)
5391
- ])])) : u.value === "active" ? (v(), b("span", j2)) : O("", !0)
5404
+ ])])) : u.value === "active" ? (v(), b("span", Y2)) : O("", !0)
5392
5405
  ], 512),
5393
5406
  x("span", {
5394
- id: `step-status-${D(c)}`,
5407
+ id: `step-status-${N(c)}`,
5395
5408
  class: "sr-only"
5396
- }, K(m.value), 9, W2),
5397
- x("div", Y2, [
5409
+ }, K(m.value), 9, X2),
5410
+ x("div", G2, [
5398
5411
  x("span", {
5399
- id: `step-title-${D(c)}`,
5412
+ id: `step-title-${N(c)}`,
5400
5413
  class: "title"
5401
- }, K(e.title), 9, X2),
5414
+ }, K(e.title), 9, J2),
5402
5415
  U(Hn, {
5403
5416
  variant: p.value,
5404
5417
  size: "sm"
5405
5418
  }, {
5406
5419
  default: J(() => [
5407
- Le(K(V.value), 1)
5420
+ Me(K(V.value), 1)
5408
5421
  ]),
5409
5422
  _: 1
5410
5423
  }, 8, ["variant"]),
5411
- N.$slots.default ? (v(), b("span", G2, [
5412
- G(N.$slots, "default", {}, void 0, !0)
5424
+ z.$slots.default ? (v(), b("span", Q2, [
5425
+ G(z.$slots, "default", {}, void 0, !0)
5413
5426
  ])) : O("", !0)
5414
5427
  ])
5415
- ], 42, P2));
5428
+ ], 42, K2));
5416
5429
  }
5417
- }), pr = /* @__PURE__ */ W(J2, [["__scopeId", "data-v-7424b337"]]), Q2 = /* @__PURE__ */ z({
5430
+ }), Cr = /* @__PURE__ */ W(el, [["__scopeId", "data-v-7424b337"]]), tl = /* @__PURE__ */ Z({
5418
5431
  __name: "StepsItem",
5419
5432
  props: {
5420
5433
  index: {}
5421
5434
  },
5422
5435
  setup(e) {
5423
- return Ve("StepIndex", e.index), (t, a) => G(t.$slots, "default");
5436
+ return He("StepIndex", e.index), (t, a) => G(t.$slots, "default");
5424
5437
  }
5425
- }), el = ["data-size", "data-orientation"], tl = ["data-error", "data-completed"], al = {
5438
+ }), al = ["data-size", "data-orientation"], nl = ["data-error", "data-completed"], ol = {
5426
5439
  "aria-live": "polite",
5427
5440
  "aria-atomic": "true",
5428
5441
  class: "sr-only"
5429
- }, nl = /* @__PURE__ */ z({
5442
+ }, ll = /* @__PURE__ */ Z({
5430
5443
  __name: "Steps",
5431
5444
  props: /* @__PURE__ */ ie({
5432
5445
  orientation: { default: "horizontal" },
@@ -5447,7 +5460,7 @@ const cr = {
5447
5460
  }),
5448
5461
  emits: ["update:modelValue"],
5449
5462
  setup(e) {
5450
- const n = e, t = M(0), a = it(), o = we(e, "modelValue"), i = M([]), r = M(null), l = E(() => o.value ?? 0), s = `steps-description-${ge()}`, c = Yt({}), u = ut({});
5463
+ const n = e, t = M(0), a = it(), o = ke(e, "modelValue"), i = M([]), r = M(null), l = E(() => o.value ?? 0), s = `steps-description-${ge()}`, c = Yt({}), u = ut({});
5451
5464
  let h = null;
5452
5465
  const C = E(() => (a.default?.() ?? [])[l.value]?.props?.title ?? ""), m = E(() => Object.entries(u).filter(([, F]) => F !== "completed").length === 0), p = E(
5453
5466
  () => Object.values(u).includes("error")
@@ -5461,16 +5474,16 @@ const cr = {
5461
5474
  width: "100%",
5462
5475
  left: "0px"
5463
5476
  };
5464
- const I = S.value[0], _ = S.value[F];
5477
+ const I = S.value[0], A = S.value[F];
5465
5478
  return n.orientation === "vertical" ? {
5466
5479
  top: `${I}px`,
5467
- height: `${_ - I}px`
5480
+ height: `${A - I}px`
5468
5481
  } : {
5469
5482
  left: `${I}px`,
5470
- width: `${_ - I}px`
5483
+ width: `${A - I}px`
5471
5484
  };
5472
5485
  }), V = E(() => {
5473
- const F = Object.values(c.value).sort((_, g) => _ - g);
5486
+ const F = Object.values(c.value).sort((A, g) => A - g);
5474
5487
  if (F.length < 2) return {};
5475
5488
  const S = F[0], I = F[F.length - 1];
5476
5489
  return n.orientation === "vertical" ? {
@@ -5484,28 +5497,28 @@ const cr = {
5484
5497
  function k(F) {
5485
5498
  i.value.push(F), t.value = i.value.length;
5486
5499
  }
5487
- function A(F) {
5500
+ function _(F) {
5488
5501
  i.value = i.value.filter((S) => S !== F), t.value = i.value.length;
5489
5502
  }
5490
- function N(F) {
5503
+ function z(F) {
5491
5504
  F < 0 || F >= i.value.length || (o.value = F, i.value[F]?.focus());
5492
5505
  }
5493
5506
  function P() {
5494
- N(o.value + 1);
5507
+ z(o.value + 1);
5495
5508
  }
5496
5509
  function oe() {
5497
- N(o.value - 1);
5510
+ z(o.value - 1);
5498
5511
  }
5499
5512
  function ue() {
5500
- N(0);
5513
+ z(0);
5501
5514
  }
5502
5515
  function re() {
5503
- N(t.value - 1);
5516
+ z(t.value - 1);
5504
5517
  }
5505
5518
  return ve(() => {
5506
5519
  r.value && (h = new ResizeObserver(() => {
5507
5520
  }), h.observe(r.value));
5508
- }), Be(() => h?.disconnect()), Ve("StepsContext", {
5521
+ }), Be(() => h?.disconnect()), He("StepsContext", {
5509
5522
  current: E(() => o.value),
5510
5523
  update: (F) => o.value = F,
5511
5524
  stepsCount: t,
@@ -5519,7 +5532,7 @@ const cr = {
5519
5532
  },
5520
5533
  registerIndicatorCenter: $,
5521
5534
  registerStep: k,
5522
- unregisterStep: A,
5535
+ unregisterStep: _,
5523
5536
  focusNext: P,
5524
5537
  focusPrev: oe,
5525
5538
  focusFirst: ue,
@@ -5542,43 +5555,43 @@ const cr = {
5542
5555
  x("div", {
5543
5556
  class: "track",
5544
5557
  "aria-hidden": "true",
5545
- style: He(V.value)
5558
+ style: Ie(V.value)
5546
5559
  }, [
5547
5560
  x("div", {
5548
5561
  class: "track-progress",
5549
5562
  "data-error": p.value,
5550
5563
  "data-completed": m.value,
5551
- style: He(L.value)
5552
- }, null, 12, tl)
5564
+ style: Ie(L.value)
5565
+ }, null, 12, nl)
5553
5566
  ], 4),
5554
- (v(!0), b(de, null, he(F.$slots.default?.(), (I, _) => (v(), ae(Q2, {
5555
- key: _,
5556
- index: _
5567
+ (v(!0), b(de, null, he(F.$slots.default?.(), (I, A) => (v(), ae(tl, {
5568
+ key: A,
5569
+ index: A
5557
5570
  }, {
5558
5571
  default: J(() => [
5559
5572
  (v(), ae(Ne(I)))
5560
5573
  ]),
5561
5574
  _: 2
5562
5575
  }, 1032, ["index"]))), 128))
5563
- ], 8, el),
5564
- x("div", al, " Step " + K(l.value + 1) + " of " + K(t.value) + ": " + K(C.value), 1)
5576
+ ], 8, al),
5577
+ x("div", ol, " Step " + K(l.value + 1) + " of " + K(t.value) + ": " + K(C.value), 1)
5565
5578
  ], 64));
5566
5579
  }
5567
- }), Cr = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-3b60596b"]]), ol = ["data-align"], ll = /* @__PURE__ */ z({
5580
+ }), hr = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-3b60596b"]]), rl = ["data-align"], sl = /* @__PURE__ */ Z({
5568
5581
  __name: "Timeline",
5569
5582
  props: {
5570
5583
  align: { default: "left" }
5571
5584
  },
5572
5585
  setup(e) {
5573
- return Ve("TimelineContext", e), (t, a) => (v(), b("ol", {
5586
+ return He("TimelineContext", e), (t, a) => (v(), b("ol", {
5574
5587
  role: "list",
5575
5588
  class: "ui-timeline",
5576
5589
  "data-align": e.align
5577
5590
  }, [
5578
5591
  G(t.$slots, "default", {}, void 0, !0)
5579
- ], 8, ol));
5592
+ ], 8, rl));
5580
5593
  }
5581
- }), hr = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-d56deb2b"]]), rl = ["data-align", "aria-labelledby", "aria-describedby"], sl = { class: "ui-timeline-content" }, il = ["datetime"], ul = { class: "ui-timeline-date--month" }, cl = { class: "ui-timeline-date--day" }, dl = { class: "ui-timeline-date--year" }, vl = ["data-direction"], fl = { class: "info" }, ml = ["id"], pl = { class: "addons" }, Cl = /* @__PURE__ */ z({
5594
+ }), gr = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-d56deb2b"]]), il = ["data-align", "aria-labelledby", "aria-describedby"], ul = { class: "ui-timeline-content" }, cl = ["datetime"], dl = { class: "ui-timeline-date--month" }, vl = { class: "ui-timeline-date--day" }, fl = { class: "ui-timeline-date--year" }, ml = ["data-direction"], pl = { class: "info" }, Cl = ["id"], hl = { class: "addons" }, gl = /* @__PURE__ */ Z({
5582
5595
  __name: "TimelineItem",
5583
5596
  props: {
5584
5597
  date: {},
@@ -5598,36 +5611,36 @@ const cr = {
5598
5611
  return (c, u) => (v(), b("li", {
5599
5612
  tabindex: "0",
5600
5613
  class: fe([i.value, "ui-timeline-item"]),
5601
- "data-align": D(t).align,
5602
- "aria-labelledby": e.title ? D(a) : void 0,
5603
- "aria-describedby": e.description ? D(o) : void 0
5614
+ "data-align": N(t).align,
5615
+ "aria-labelledby": e.title ? N(a) : void 0,
5616
+ "aria-describedby": e.description ? N(o) : void 0
5604
5617
  }, [
5605
5618
  u[0] || (u[0] = x("div", {
5606
5619
  class: "ui-timeline-marker",
5607
5620
  "aria-hidden": "true"
5608
5621
  }, null, -1)),
5609
- x("div", sl, [
5622
+ x("div", ul, [
5610
5623
  e.date ? (v(), b("time", {
5611
5624
  key: 0,
5612
5625
  class: "ui-timeline-date",
5613
5626
  datetime: e.date
5614
5627
  }, [
5615
- x("span", ul, K(l(e.date)), 1),
5616
- x("span", cl, K(r(e.date)), 1),
5617
- x("span", dl, K(s(e.date)), 1)
5618
- ], 8, il)) : O("", !0),
5628
+ x("span", dl, K(l(e.date)), 1),
5629
+ x("span", vl, K(r(e.date)), 1),
5630
+ x("span", fl, K(s(e.date)), 1)
5631
+ ], 8, cl)) : O("", !0),
5619
5632
  x("div", {
5620
5633
  class: "ui-timeline-body",
5621
5634
  "data-direction": e.flexDirection
5622
5635
  }, [
5623
- x("div", fl, [
5636
+ x("div", pl, [
5624
5637
  G(c.$slots, "title", {}, () => [
5625
5638
  (v(), ae(Ne(e.titleAs ?? "h3"), {
5626
- id: D(a),
5639
+ id: N(a),
5627
5640
  class: "ui-timeline-title"
5628
5641
  }, {
5629
5642
  default: J(() => [
5630
- Le(K(e.title), 1)
5643
+ Me(K(e.title), 1)
5631
5644
  ]),
5632
5645
  _: 1
5633
5646
  }, 8, ["id"]))
@@ -5635,26 +5648,26 @@ const cr = {
5635
5648
  G(c.$slots, "description", {}, () => [
5636
5649
  e.description ? (v(), b("p", {
5637
5650
  key: 0,
5638
- id: D(o),
5651
+ id: N(o),
5639
5652
  class: "ui-timeline-description"
5640
- }, K(e.description), 9, ml)) : O("", !0)
5653
+ }, K(e.description), 9, Cl)) : O("", !0)
5641
5654
  ], !0)
5642
5655
  ]),
5643
- x("div", pl, [
5656
+ x("div", hl, [
5644
5657
  G(c.$slots, "default", {}, void 0, !0)
5645
5658
  ])
5646
- ], 8, vl)
5659
+ ], 8, ml)
5647
5660
  ])
5648
- ], 10, rl));
5661
+ ], 10, il));
5649
5662
  }
5650
- }), gr = /* @__PURE__ */ W(Cl, [["__scopeId", "data-v-10599410"]]), hl = ["aria-label", "aria-activedescendant"], gl = { class: "carousel-viewport" }, yl = {
5663
+ }), yr = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-10599410"]]), yl = ["aria-label", "aria-activedescendant"], bl = { class: "carousel-viewport" }, kl = {
5651
5664
  class: "sr-only",
5652
5665
  "aria-live": "polite"
5653
- }, bl = {
5666
+ }, wl = {
5654
5667
  key: 0,
5655
5668
  role: "tablist",
5656
5669
  class: "carousel-indicators"
5657
- }, kl = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], wl = 0.35, Ml = 0.2, Ll = /* @__PURE__ */ z({
5670
+ }, Ml = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], Ll = 0.35, xl = 0.2, $l = /* @__PURE__ */ Z({
5658
5671
  __name: "Carousel",
5659
5672
  props: /* @__PURE__ */ ie({
5660
5673
  ariaLabel: { default: "Carousel" },
@@ -5676,13 +5689,13 @@ const cr = {
5676
5689
  }),
5677
5690
  emits: ["update:modelValue"],
5678
5691
  setup(e) {
5679
- const n = we(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), C = M([]), m = M(1), p = M(n.value), L = M(null), V = M(null);
5692
+ 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), C = M([]), m = M(1), p = M(n.value), L = M(null), V = M(null);
5680
5693
  let $ = null, k = null;
5681
5694
  Q(
5682
5695
  () => n.value,
5683
5696
  (f) => p.value = f
5684
5697
  );
5685
- const A = E(() => C.value[p.value] ?? void 0), N = E(() => Math.floor(p.value / m.value)), P = E(() => Math.ceil(Z.value / m.value)), oe = E(() => Math.max(0, Z.value - m.value)), ue = E(() => {
5698
+ const _ = E(() => C.value[p.value] ?? void 0), z = E(() => Math.floor(p.value / m.value)), P = E(() => Math.ceil(D.value / m.value)), oe = E(() => Math.max(0, D.value - m.value)), ue = E(() => {
5686
5699
  const f = p.value * (100 / m.value), d = u.value && V.value ? i.value / V.value.clientWidth * 100 : 0;
5687
5700
  return {
5688
5701
  transform: `translateX(calc(-${f}% + ${d}%))`,
@@ -5701,7 +5714,7 @@ const cr = {
5701
5714
  p.value = d, n.value = d;
5702
5715
  }, F = () => re(p.value + m.value), S = () => re(p.value - m.value), I = (f) => {
5703
5716
  f.key === "ArrowRight" ? F() : f.key === "ArrowLeft" && S();
5704
- }, _ = (f) => (C.value.includes(f) || C.value.push(f), C.value.indexOf(f)), g = (f) => C.value = C.value.filter((d) => d !== f), Z = E(() => C.value.length), R = () => {
5717
+ }, A = (f) => (C.value.includes(f) || C.value.push(f), C.value.indexOf(f)), g = (f) => C.value = C.value.filter((d) => d !== f), D = E(() => C.value.length), R = () => {
5705
5718
  !t.autoplay || $ !== null || ($ = window.setInterval(() => {
5706
5719
  c.value || F();
5707
5720
  }, t.autoplayDelay));
@@ -5724,7 +5737,7 @@ const cr = {
5724
5737
  if (!u.value) return;
5725
5738
  u.value = !1, V.value?.releasePointerCapture(f.pointerId), V.value.style.userSelect = "";
5726
5739
  const d = V.value.clientWidth / m.value, y = i.value / d;
5727
- Math.abs(l.value) > wl ? l.value < 0 ? F() : S() : Math.abs(y) > Ml ? y < 0 ? F() : S() : re(h.value), i.value = 0, l.value = 0, R();
5740
+ Math.abs(l.value) > Ll ? l.value < 0 ? F() : S() : Math.abs(y) > xl ? y < 0 ? F() : S() : re(h.value), i.value = 0, l.value = 0, R();
5728
5741
  };
5729
5742
  return ve(() => {
5730
5743
  R(), L.value && (k = new ResizeObserver((f) => {
@@ -5739,11 +5752,11 @@ const cr = {
5739
5752
  f ? R() : q();
5740
5753
  },
5741
5754
  { immediate: !0 }
5742
- ), Q(m, () => p.value = Math.min(p.value, oe.value)), Ve("CarouselContext", {
5743
- register: _,
5755
+ ), Q(m, () => p.value = Math.min(p.value, oe.value)), He("CarouselContext", {
5756
+ register: A,
5744
5757
  unregister: g,
5745
5758
  activeIndex: p,
5746
- slideCount: Z,
5759
+ slideCount: D,
5747
5760
  deltaX: i,
5748
5761
  itemsPerView: t.itemsPerView instanceof Object ? m : M(t.itemsPerView)
5749
5762
  }), (f, d) => (v(), b("div", {
@@ -5754,8 +5767,8 @@ const cr = {
5754
5767
  "aria-roledescription": "carousel",
5755
5768
  "aria-label": e.ariaLabel,
5756
5769
  tabindex: "0",
5757
- "aria-activedescendant": A.value,
5758
- style: He({ "--items-per-view": m.value }),
5770
+ "aria-activedescendant": _.value,
5771
+ style: Ie({ "--items-per-view": m.value }),
5759
5772
  onKeydown: I,
5760
5773
  onMouseenter: d[0] || (d[0] = (y) => c.value = !0),
5761
5774
  onMouseleave: d[1] || (d[1] = (y) => c.value = !1),
@@ -5766,12 +5779,12 @@ const cr = {
5766
5779
  id: "carousel-instructions",
5767
5780
  class: "sr-only"
5768
5781
  }, " Use left and right arrow keys to navigate slides ", -1)),
5769
- x("div", gl, [
5782
+ x("div", bl, [
5770
5783
  x("div", {
5771
5784
  ref_key: "trackRef",
5772
5785
  ref: V,
5773
5786
  class: "carousel-track",
5774
- style: He(ue.value),
5787
+ style: Ie(ue.value),
5775
5788
  onPointerdown: w,
5776
5789
  onPointermove: T,
5777
5790
  onPointerup: Y,
@@ -5780,7 +5793,7 @@ const cr = {
5780
5793
  G(f.$slots, "default", {}, void 0, !0)
5781
5794
  ], 36)
5782
5795
  ]),
5783
- x("span", yl, " Slide " + K(Math.floor(p.value / m.value) + 1) + " of " + K(P.value), 1),
5796
+ x("span", kl, " Slide " + K(Math.floor(p.value / m.value) + 1) + " of " + K(P.value), 1),
5784
5797
  x("button", {
5785
5798
  type: "button",
5786
5799
  class: "carousel-control prev",
@@ -5797,25 +5810,25 @@ const cr = {
5797
5810
  }, [
5798
5811
  U(Ce, { name: "directionDown" })
5799
5812
  ]),
5800
- e.showIndicators ? (v(), b("div", bl, [
5813
+ e.showIndicators ? (v(), b("div", wl, [
5801
5814
  (v(!0), b(de, null, he(P.value, (y, H) => (v(), b("button", {
5802
5815
  role: "tab",
5803
5816
  type: "button",
5804
5817
  key: H,
5805
5818
  class: fe(["indicator", { active: H === Math.floor(p.value / m.value) }]),
5806
5819
  "aria-label": `Go to slide ${H + 1}`,
5807
- "aria-selected": H === N.value,
5808
- "aria-current": H === N.value,
5820
+ "aria-selected": H === z.value,
5821
+ "aria-current": H === z.value,
5809
5822
  onClick: (X) => re(H * m.value),
5810
5823
  onKeydown: [
5811
5824
  ye(se((X) => re((H - 1 + P.value) % P.value * m.value), ["prevent"]), ["left"]),
5812
5825
  ye(se((X) => re((H + 1) % P.value * m.value), ["prevent"]), ["right"])
5813
5826
  ]
5814
- }, null, 42, kl))), 128))
5827
+ }, null, 42, Ml))), 128))
5815
5828
  ])) : O("", !0)
5816
- ], 44, hl));
5829
+ ], 44, yl));
5817
5830
  }
5818
- }), yr = /* @__PURE__ */ W(Ll, [["__scopeId", "data-v-30cdfc00"]]), xl = ["aria-hidden", "aria-label"], $l = /* @__PURE__ */ z({
5831
+ }), br = /* @__PURE__ */ W($l, [["__scopeId", "data-v-30cdfc00"]]), Il = ["aria-hidden", "aria-label"], Hl = /* @__PURE__ */ Z({
5819
5832
  __name: "CarouselItem",
5820
5833
  setup(e) {
5821
5834
  const n = pe("CarouselContext");
@@ -5831,9 +5844,9 @@ const cr = {
5831
5844
  onClickCapture: l[0] || (l[0] = (s) => o.value && s.preventDefault())
5832
5845
  }, [
5833
5846
  G(r.$slots, "default", {}, void 0, !0)
5834
- ], 40, xl));
5847
+ ], 40, Il));
5835
5848
  }
5836
- }), br = /* @__PURE__ */ W($l, [["__scopeId", "data-v-a569d055"]]), Ge = /* @__PURE__ */ Symbol("TabsContext"), kr = z({
5849
+ }), kr = /* @__PURE__ */ W(Hl, [["__scopeId", "data-v-a569d055"]]), Je = /* @__PURE__ */ Symbol("TabsContext"), wr = Z({
5837
5850
  name: "Tabs",
5838
5851
  props: {
5839
5852
  modelValue: String,
@@ -5888,7 +5901,7 @@ const cr = {
5888
5901
  }, m = () => {
5889
5902
  l.value && (l.value.style.height = "");
5890
5903
  };
5891
- return Ve(Ge, {
5904
+ return He(Je, {
5892
5905
  activeValue: a,
5893
5906
  setValue: c,
5894
5907
  registerTrigger: s,
@@ -5913,7 +5926,7 @@ const cr = {
5913
5926
  ref: l
5914
5927
  },
5915
5928
  j(
5916
- _e,
5929
+ Ae,
5917
5930
  {
5918
5931
  name: u.value,
5919
5932
  mode: "out-in",
@@ -5930,10 +5943,10 @@ const cr = {
5930
5943
  ];
5931
5944
  };
5932
5945
  }
5933
- }), wr = z({
5946
+ }), Mr = Z({
5934
5947
  name: "TabsList",
5935
5948
  setup(e, { slots: n }) {
5936
- const t = pe(Ge);
5949
+ const t = pe(Je);
5937
5950
  if (!t) throw new Error("TabsList components must be used inside <Tabs>");
5938
5951
  return () => j(
5939
5952
  "div",
@@ -5945,7 +5958,7 @@ const cr = {
5945
5958
  n.default?.()
5946
5959
  );
5947
5960
  }
5948
- }), Mr = z({
5961
+ }), Lr = Z({
5949
5962
  name: "TabsTrigger",
5950
5963
  props: {
5951
5964
  value: {
@@ -5962,7 +5975,7 @@ const cr = {
5962
5975
  }
5963
5976
  },
5964
5977
  setup(e, { slots: n }) {
5965
- const t = pe(Ge);
5978
+ const t = pe(Je);
5966
5979
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
5967
5980
  const a = E(() => t.activeValue.value === e.value), o = () => !e.disabled && t.setValue(e.value), i = (r) => {
5968
5981
  if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(r.key)) return;
@@ -5997,7 +6010,7 @@ const cr = {
5997
6010
  });
5998
6011
  };
5999
6012
  return ve(() => !e.disabled && t.registerTrigger(e.value, e.index)), Be(() => t.triggers.value[e.index] = void 0), () => j(
6000
- xe,
6013
+ Le,
6001
6014
  {
6002
6015
  role: "tab",
6003
6016
  id: `tab-${e.value}`,
@@ -6013,7 +6026,7 @@ const cr = {
6013
6026
  { default: () => n.default?.() }
6014
6027
  );
6015
6028
  }
6016
- }), Lr = z({
6029
+ }), xr = Z({
6017
6030
  name: "TabsContent",
6018
6031
  props: {
6019
6032
  value: {
@@ -6022,7 +6035,7 @@ const cr = {
6022
6035
  }
6023
6036
  },
6024
6037
  setup(e, { slots: n }) {
6025
- if (!pe(Ge)) throw new Error("TabsContent components must be used inside <Tabs>");
6038
+ if (!pe(Je)) throw new Error("TabsContent components must be used inside <Tabs>");
6026
6039
  return () => j(
6027
6040
  "div",
6028
6041
  {
@@ -6035,7 +6048,7 @@ const cr = {
6035
6048
  n.default?.()
6036
6049
  );
6037
6050
  }
6038
- }), Il = /* @__PURE__ */ z({
6051
+ }), Vl = /* @__PURE__ */ Z({
6039
6052
  __name: "DropdownItem",
6040
6053
  setup(e) {
6041
6054
  const n = pe("DropdownContext");
@@ -6052,13 +6065,13 @@ const cr = {
6052
6065
  tabindex: "-1",
6053
6066
  onKeydown: o,
6054
6067
  onClick: r[0] || (r[0] = //@ts-ignore
6055
- (...l) => D(n).close && D(n).close(...l)),
6068
+ (...l) => N(n).close && N(n).close(...l)),
6056
6069
  onPointerenter: r[1] || (r[1] = (l) => a.value?.focus())
6057
6070
  }, [
6058
6071
  G(i.$slots, "default", {}, void 0, !0)
6059
6072
  ], 544));
6060
6073
  }
6061
- }), xr = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-69de3d9c"]]), Hl = (e) => {
6074
+ }), $r = /* @__PURE__ */ W(Vl, [["__scopeId", "data-v-69de3d9c"]]), Bl = (e) => {
6062
6075
  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 = E(() => {
6063
6076
  const C = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(o.value);
6064
6077
  return C.charAt(0).toUpperCase() + C.slice(1);
@@ -6070,8 +6083,8 @@ const cr = {
6070
6083
  });
6071
6084
  }), s = E(() => {
6072
6085
  const C = o.value.getFullYear(), m = o.value.getMonth(), p = new Date(C, m, 1), L = new Date(C, m + 1, 0), V = (p.getDay() - i + 7) % 7, $ = L.getDate(), k = [];
6073
- for (let A = 0; A < V; A++) k.push(null);
6074
- for (let A = 1; A <= $; A++) k.push(new Date(C, m, A));
6086
+ for (let _ = 0; _ < V; _++) k.push(null);
6087
+ for (let _ = 1; _ <= $; _++) k.push(new Date(C, m, _));
6075
6088
  return k;
6076
6089
  });
6077
6090
  return {
@@ -6085,7 +6098,7 @@ const cr = {
6085
6098
  prevMonth: () => o.value = new Date(o.value.getFullYear(), o.value.getMonth() - 1, 1),
6086
6099
  select: (C) => a.value = C
6087
6100
  };
6088
- }, Pt = /(DD|MM|YYYY|HH|mm|ss)/g, nt = (e, n) => {
6101
+ }, Pt = /(DD|MM|YYYY|HH|mm|ss)/g, ot = (e, n) => {
6089
6102
  const t = {
6090
6103
  DD: String(e.getDate()).padStart(2, "0"),
6091
6104
  MM: String(e.getMonth() + 1).padStart(2, "0"),
@@ -6095,20 +6108,20 @@ const cr = {
6095
6108
  ss: String(e.getSeconds()).padStart(2, "0")
6096
6109
  };
6097
6110
  return n.replace(/DD|MM|YYYY|HH|mm|ss/g, (a) => t[a]);
6098
- }, Vt = (e, n) => {
6111
+ }, Bt = (e, n) => {
6099
6112
  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);
6100
6113
  if (!o?.groups) return null;
6101
6114
  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);
6102
- return Vl(i, r, l) ? new Date(l, r - 1, i, s, c, u, 0) : null;
6115
+ return _l(i, r, l) ? new Date(l, r - 1, i, s, c, u, 0) : null;
6103
6116
  };
6104
- function Vl(e, n, t, a = 1900, o = 2100) {
6117
+ function _l(e, n, t, a = 1900, o = 2100) {
6105
6118
  if (!Number.isInteger(e) || !Number.isInteger(n) || !Number.isInteger(t) || n < 1 || n > 12 || t < a || t > o) return !1;
6106
6119
  const i = new Date(t, n, 0).getDate();
6107
6120
  if (e < 1 || e > i) return !1;
6108
6121
  const r = new Date(t, n - 1, e);
6109
6122
  return r.getFullYear() === t && r.getMonth() === n - 1 && r.getDate() === e;
6110
6123
  }
6111
- const Bl = (e, n) => {
6124
+ const Al = (e, n) => {
6112
6125
  const t = e.replace(/\D/g, ""), a = n.match(Pt);
6113
6126
  if (!a) return e;
6114
6127
  let o = "", i = 0;
@@ -6121,16 +6134,16 @@ const Bl = (e, n) => {
6121
6134
  }
6122
6135
  }
6123
6136
  return o;
6124
- }, Al = (e) => {
6137
+ }, El = (e) => {
6125
6138
  const n = e.match(Pt);
6126
6139
  return n ? n.reduce((t, a) => t + a.length, 0) : 0;
6127
- }, _l = ["for"], El = ["id", "value", "required", "aria-invalid", "disabled", "data-disabled", "placeholder"], Rl = {
6140
+ }, Rl = ["for"], Sl = ["id", "value", "required", "aria-invalid", "disabled", "data-disabled", "placeholder"], Tl = {
6128
6141
  key: 0,
6129
6142
  class: "dp-panel"
6130
- }, Sl = { class: "dp-header" }, Tl = { class: "month__name" }, Dl = { class: "dp-weekdays" }, Zl = {
6143
+ }, Dl = { class: "dp-header" }, Zl = { class: "month__name" }, zl = { class: "dp-weekdays" }, Nl = {
6131
6144
  class: "dp-days",
6132
6145
  role: "grid"
6133
- }, zl = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], Nl = /* @__PURE__ */ z({
6146
+ }, Ol = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], ql = /* @__PURE__ */ Z({
6134
6147
  __name: "DatePicker",
6135
6148
  props: /* @__PURE__ */ ie({
6136
6149
  id: {},
@@ -6148,7 +6161,7 @@ const Bl = (e, n) => {
6148
6161
  }),
6149
6162
  emits: /* @__PURE__ */ ie(["update:open"], ["update:modelValue"]),
6150
6163
  setup(e, { emit: n }) {
6151
- const t = we(e, "modelValue"), a = n, o = e, i = M(!1), r = /* @__PURE__ */ new Date(), l = M(""), s = M(null), c = M(null), {
6164
+ const t = ke(e, "modelValue"), a = n, o = e, i = M(!1), r = /* @__PURE__ */ new Date(), l = M(""), s = M(null), c = M(null), {
6152
6165
  monthLabel: u,
6153
6166
  weekDays: h,
6154
6167
  currentMonth: C,
@@ -6156,7 +6169,7 @@ const Bl = (e, n) => {
6156
6169
  nextMonth: p,
6157
6170
  prevMonth: L,
6158
6171
  select: V
6159
- } = Hl({
6172
+ } = Bl({
6160
6173
  modelValue: t.value,
6161
6174
  locale: o.locale,
6162
6175
  firstDayOfWeek: o.firstDayOfWeek
@@ -6168,54 +6181,54 @@ const Bl = (e, n) => {
6168
6181
  l.value = "", c.value = null;
6169
6182
  return;
6170
6183
  }
6171
- V(S), C.value = new Date(S), c.value = S, l.value = nt(S, o.format);
6184
+ V(S), C.value = new Date(S), c.value = S, l.value = ot(S, o.format);
6172
6185
  },
6173
6186
  { immediate: !0 }
6174
6187
  ), Q(
6175
6188
  i,
6176
6189
  async (S) => {
6177
6190
  if (S) {
6178
- await Ie();
6191
+ await $e();
6179
6192
  let I = s.value?.querySelector('button[data-selected="true"]');
6180
6193
  if (!I) {
6181
- const _ = /* @__PURE__ */ new Date();
6182
- I = Array.from(s.value?.querySelectorAll("button") || []).find((g) => Number(g.textContent) === _.getDate() && !g.disabled);
6194
+ const A = /* @__PURE__ */ new Date();
6195
+ I = Array.from(s.value?.querySelectorAll("button") || []).find((g) => Number(g.textContent) === A.getDate() && !g.disabled);
6183
6196
  }
6184
- I && I.focus(), document.addEventListener("keydown", N);
6185
- } else document.removeEventListener("keydown", N);
6197
+ I && I.focus(), document.addEventListener("keydown", z);
6198
+ } else document.removeEventListener("keydown", z);
6186
6199
  }
6187
6200
  );
6188
6201
  const $ = (S) => {
6189
- c.value = S, t.value = S, l.value = nt(S, o.format), V(S), i.value = !1;
6202
+ c.value = S, t.value = S, l.value = ot(S, o.format), V(S), i.value = !1;
6190
6203
  }, k = (S) => {
6191
6204
  if (!S) return "";
6192
6205
  const I = [];
6193
- return c.value && A(S, c.value) && I.push("dp-selected"), A(S, r) && I.push("dp-today"), I.join(" ");
6194
- }, A = (S, I) => S.getFullYear() === I.getFullYear() && S.getMonth() === I.getMonth() && S.getDate() === I.getDate(), N = (S) => S.key === "Escape" && (i.value = !1), P = (S) => {
6206
+ return c.value && _(S, c.value) && I.push("dp-selected"), _(S, r) && I.push("dp-today"), I.join(" ");
6207
+ }, _ = (S, I) => S.getFullYear() === I.getFullYear() && S.getMonth() === I.getMonth() && S.getDate() === I.getDate(), z = (S) => S.key === "Escape" && (i.value = !1), P = (S) => {
6195
6208
  S.key === "Backspace" || S.key === "Delete" || S.key === "ArrowLeft" || S.key === "ArrowRight" || S.key === "Tab" || /[0-9]/.test(S.key) || S.preventDefault();
6196
6209
  }, oe = (S) => {
6197
- const I = S.target, _ = I.selectionStart ?? 0, Z = I.value.slice(0, _).replace(/\D/g, "").length;
6210
+ const I = S.target, A = I.selectionStart ?? 0, D = I.value.slice(0, A).replace(/\D/g, "").length;
6198
6211
  let R = I.value.replace(/\D/g, "");
6199
- const q = Al(o.format);
6212
+ const q = El(o.format);
6200
6213
  R = R.slice(0, q);
6201
- const B = Bl(R, o.format);
6214
+ const B = Al(R, o.format);
6202
6215
  l.value = B, I.value = B;
6203
6216
  let w = 0, T = 0;
6204
6217
  for (let f = 0; f < B.length; f++)
6205
- if (/\d/.test(B[f] ?? "") && T++, T >= Z) {
6218
+ if (/\d/.test(B[f] ?? "") && T++, T >= D) {
6206
6219
  w = f + 1;
6207
6220
  break;
6208
6221
  }
6209
6222
  requestAnimationFrame(() => I.setSelectionRange(w, w));
6210
- const Y = Vt(B, o.format);
6223
+ const Y = Bt(B, o.format);
6211
6224
  Y && (c.value = Y, t.value = Y);
6212
6225
  }, ue = () => {
6213
6226
  i.value || (i.value = !0, a("update:open", !0));
6214
6227
  }, re = (S) => {
6215
6228
  s.value && (s.value.contains(S.target) || (i.value = !1, a("update:open", !1)));
6216
6229
  }, F = () => {
6217
- const S = Vt(l.value, o.format);
6218
- !S && !c.value ? (l.value = "", t.value = null, c.value = null) : S && (c.value = S, t.value = S, l.value = nt(S, o.format));
6230
+ const S = Bt(l.value, o.format);
6231
+ !S && !c.value ? (l.value = "", t.value = null, c.value = null) : S && (c.value = S, t.value = S, l.value = ot(S, o.format));
6219
6232
  };
6220
6233
  return ve(() => document.addEventListener("mousedown", re)), Se(() => document.removeEventListener("mousedown", re)), (S, I) => (v(), b("div", {
6221
6234
  ref_key: "root",
@@ -6225,7 +6238,7 @@ const Bl = (e, n) => {
6225
6238
  x("label", {
6226
6239
  for: e.id,
6227
6240
  class: "label"
6228
- }, K(e.label), 9, _l),
6241
+ }, K(e.label), 9, Rl),
6229
6242
  x("input", {
6230
6243
  id: e.id,
6231
6244
  class: "dp-input",
@@ -6242,8 +6255,8 @@ const Bl = (e, n) => {
6242
6255
  inputmode: "numeric",
6243
6256
  autocomplete: "off",
6244
6257
  placeholder: e.placeholder || e.format
6245
- }, null, 40, El),
6246
- U(xe, {
6258
+ }, null, 40, Sl),
6259
+ U(Le, {
6247
6260
  type: "button",
6248
6261
  class: "btn-icon",
6249
6262
  onClick: ue,
@@ -6258,49 +6271,49 @@ const Bl = (e, n) => {
6258
6271
  id: "time-help",
6259
6272
  class: "sr-only"
6260
6273
  }, "After selecting a date, adjust hours and minutes", -1)),
6261
- i.value ? (v(), b("div", Rl, [
6262
- x("header", Sl, [
6274
+ i.value ? (v(), b("div", Tl, [
6275
+ x("header", Dl, [
6263
6276
  x("button", {
6264
6277
  type: "button",
6265
6278
  onClick: I[0] || (I[0] = //@ts-ignore
6266
- (..._) => D(L) && D(L)(..._)),
6279
+ (...A) => N(L) && N(L)(...A)),
6267
6280
  class: "btn__prev_month",
6268
6281
  "aria-label": "Previous month"
6269
6282
  }, "‹"),
6270
- x("span", Tl, K(D(u)), 1),
6283
+ x("span", Zl, K(N(u)), 1),
6271
6284
  x("button", {
6272
6285
  type: "button",
6273
6286
  onClick: I[1] || (I[1] = //@ts-ignore
6274
- (..._) => D(p) && D(p)(..._)),
6287
+ (...A) => N(p) && N(p)(...A)),
6275
6288
  class: "btn__next_month",
6276
6289
  "aria-label": "Next month"
6277
6290
  }, "›")
6278
6291
  ]),
6279
- x("div", Dl, [
6280
- (v(!0), b(de, null, he(D(h), (_) => (v(), b("span", {
6292
+ x("div", zl, [
6293
+ (v(!0), b(de, null, he(N(h), (A) => (v(), b("span", {
6281
6294
  class: "week-day__name",
6282
- key: _
6283
- }, K(_), 1))), 128))
6295
+ key: A
6296
+ }, K(A), 1))), 128))
6284
6297
  ]),
6285
- x("div", Zl, [
6286
- (v(!0), b(de, null, he(D(m), (_, g) => (v(), b("button", {
6298
+ x("div", Nl, [
6299
+ (v(!0), b(de, null, he(N(m), (A, g) => (v(), b("button", {
6287
6300
  key: g,
6288
6301
  type: "button",
6289
6302
  role: "gridcell",
6290
- class: fe(["btn__day", k(_)]),
6291
- disabled: !_,
6292
- "aria-pressed": k(_) === "dp-selected",
6293
- "data-selected": _ && k(_) === "dp-selected",
6294
- onMousedown: se((Z) => _ && $(_), ["prevent"]),
6295
- "aria-label": _ ? _.toLocaleDateString(o.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
6296
- }, K(_?.getDate()), 43, zl))), 128))
6303
+ class: fe(["btn__day", k(A)]),
6304
+ disabled: !A,
6305
+ "aria-pressed": k(A) === "dp-selected",
6306
+ "data-selected": A && k(A) === "dp-selected",
6307
+ onMousedown: se((D) => A && $(A), ["prevent"]),
6308
+ "aria-label": A ? A.toLocaleDateString(o.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
6309
+ }, K(A?.getDate()), 43, Ol))), 128))
6297
6310
  ]),
6298
- U(xe, {
6311
+ U(Le, {
6299
6312
  class: "btn-ghost btn-sm",
6300
- onClick: I[2] || (I[2] = (_) => t.value = /* @__PURE__ */ new Date())
6313
+ onClick: I[2] || (I[2] = (A) => t.value = /* @__PURE__ */ new Date())
6301
6314
  }, {
6302
6315
  default: J(() => [
6303
- Le(K(e.todayLabel), 1)
6316
+ Me(K(e.todayLabel), 1)
6304
6317
  ]),
6305
6318
  _: 1
6306
6319
  }),
@@ -6308,12 +6321,12 @@ const Bl = (e, n) => {
6308
6321
  ])) : O("", !0)
6309
6322
  ], 2));
6310
6323
  }
6311
- }), Ol = /* @__PURE__ */ W(Nl, [["__scopeId", "data-v-b69d8ae3"]]), ql = {
6324
+ }), Fl = /* @__PURE__ */ W(ql, [["__scopeId", "data-v-b69d8ae3"]]), Pl = {
6312
6325
  key: 0,
6313
6326
  class: "time-panel",
6314
6327
  role: "group",
6315
6328
  "aria-label": "Time selection"
6316
- }, Fl = ["id", "aria-valuenow"], Pl = { key: 1 }, Ul = ["id", "aria-valuenow"], Kl = { key: 3 }, jl = ["id", "aria-valuenow"], Wl = /* @__PURE__ */ z({
6329
+ }, Ul = ["id", "aria-valuenow"], Kl = { key: 1 }, jl = ["id", "aria-valuenow"], Wl = { key: 3 }, Yl = ["id", "aria-valuenow"], Xl = /* @__PURE__ */ Z({
6317
6330
  __name: "DateTimePicker",
6318
6331
  props: /* @__PURE__ */ ie({
6319
6332
  id: {},
@@ -6333,7 +6346,7 @@ const Bl = (e, n) => {
6333
6346
  }),
6334
6347
  emits: ["update:modelValue"],
6335
6348
  setup(e) {
6336
- const n = we(e, "modelValue"), t = e, a = ge(), o = M(!1), i = M(null), r = E(() => t.format.includes("HH")), l = E(() => t.format.includes("mm")), s = E(() => 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)), C = M(n.value?.getSeconds() ?? (s.value ? 0 : void 0));
6349
+ const n = ke(e, "modelValue"), t = e, a = ge(), o = M(!1), i = M(null), r = E(() => t.format.includes("HH")), l = E(() => t.format.includes("mm")), s = E(() => 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)), C = M(n.value?.getSeconds() ?? (s.value ? 0 : void 0));
6337
6350
  Q(n, ($) => {
6338
6351
  if ($) {
6339
6352
  const k = new Date($);
@@ -6342,15 +6355,15 @@ const Bl = (e, n) => {
6342
6355
  c.value = null, u.value = 0, h.value = 0, C.value = 0;
6343
6356
  }, { immediate: !0 }), Q(c, ($) => {
6344
6357
  if (!$) return;
6345
- const k = $.getHours(), A = $.getMinutes(), N = $.getSeconds();
6346
- k !== u.value && (u.value = k), A !== h.value && (h.value = A), N !== C.value && (C.value = N);
6358
+ const k = $.getHours(), _ = $.getMinutes(), z = $.getSeconds();
6359
+ k !== u.value && (u.value = k), _ !== h.value && (h.value = _), z !== C.value && (C.value = z);
6347
6360
  }, { immediate: !0 }), Q([c, u, h, C], () => {
6348
6361
  if (!c.value) {
6349
6362
  n.value = null;
6350
6363
  return;
6351
6364
  }
6352
- const $ = Math.min(Math.max(u.value ?? 0, 0), 23), k = Math.min(Math.max(h.value ?? 0, 0), 59), A = Math.min(Math.max(C.value ?? 0, 0), 59), N = new Date(c.value);
6353
- N.setHours($, k, A, 0), (!n.value || n.value.getTime() !== N.getTime()) && (n.value = N);
6365
+ const $ = Math.min(Math.max(u.value ?? 0, 0), 23), k = Math.min(Math.max(h.value ?? 0, 0), 59), _ = Math.min(Math.max(C.value ?? 0, 0), 59), z = new Date(c.value);
6366
+ z.setHours($, k, _, 0), (!n.value || n.value.getTime() !== z.getTime()) && (n.value = z);
6354
6367
  });
6355
6368
  const m = ($) => {
6356
6369
  i.value && (i.value.contains($.target) || (o.value = !1));
@@ -6373,11 +6386,11 @@ const Bl = (e, n) => {
6373
6386
  ref_key: "root",
6374
6387
  ref: i
6375
6388
  }, [
6376
- U(Ol, ke($.$attrs, {
6389
+ U(Fl, be($.$attrs, {
6377
6390
  modelValue: c.value,
6378
- "onUpdate:modelValue": k[3] || (k[3] = (A) => c.value = A),
6391
+ "onUpdate:modelValue": k[3] || (k[3] = (_) => c.value = _),
6379
6392
  open: o.value,
6380
- "onUpdate:open": k[4] || (k[4] = (A) => o.value = A),
6393
+ "onUpdate:open": k[4] || (k[4] = (_) => o.value = _),
6381
6394
  id: t.id,
6382
6395
  invalid: e.invalid,
6383
6396
  locale: e.locale,
@@ -6387,12 +6400,12 @@ const Bl = (e, n) => {
6387
6400
  placeholder: e.placeholder
6388
6401
  }), {
6389
6402
  time: J(() => [
6390
- o.value ? (v(), b("div", ql, [
6391
- r.value ? Ae((v(), b("input", {
6403
+ o.value ? (v(), b("div", Pl, [
6404
+ r.value ? _e((v(), b("input", {
6392
6405
  key: 0,
6393
- id: `hour_${D(a)}`,
6406
+ id: `hour_${N(a)}`,
6394
6407
  type: "number",
6395
- "onUpdate:modelValue": k[0] || (k[0] = (A) => u.value = A),
6408
+ "onUpdate:modelValue": k[0] || (k[0] = (_) => u.value = _),
6396
6409
  min: "0",
6397
6410
  max: "23",
6398
6411
  "aria-label": "Hour",
@@ -6400,20 +6413,20 @@ const Bl = (e, n) => {
6400
6413
  "aria-valuemax": "23",
6401
6414
  "aria-valuenow": u.value,
6402
6415
  onInput: p
6403
- }, null, 40, Fl)), [
6416
+ }, null, 40, Ul)), [
6404
6417
  [
6405
- We,
6418
+ Ye,
6406
6419
  u.value,
6407
6420
  void 0,
6408
6421
  { number: !0 }
6409
6422
  ]
6410
6423
  ]) : O("", !0),
6411
- r.value && l.value ? (v(), b("span", Pl, ":")) : O("", !0),
6412
- l.value ? Ae((v(), b("input", {
6424
+ r.value && l.value ? (v(), b("span", Kl, ":")) : O("", !0),
6425
+ l.value ? _e((v(), b("input", {
6413
6426
  key: 2,
6414
- id: `minute_${D(a)}`,
6427
+ id: `minute_${N(a)}`,
6415
6428
  type: "number",
6416
- "onUpdate:modelValue": k[1] || (k[1] = (A) => h.value = A),
6429
+ "onUpdate:modelValue": k[1] || (k[1] = (_) => h.value = _),
6417
6430
  min: "0",
6418
6431
  max: "59",
6419
6432
  "aria-label": "Minute",
@@ -6421,20 +6434,20 @@ const Bl = (e, n) => {
6421
6434
  "aria-valuemax": "59",
6422
6435
  "aria-valuenow": h.value,
6423
6436
  onInput: L
6424
- }, null, 40, Ul)), [
6437
+ }, null, 40, jl)), [
6425
6438
  [
6426
- We,
6439
+ Ye,
6427
6440
  h.value,
6428
6441
  void 0,
6429
6442
  { number: !0 }
6430
6443
  ]
6431
6444
  ]) : O("", !0),
6432
- (r.value || l.value) && s.value ? (v(), b("span", Kl, ":")) : O("", !0),
6433
- s.value ? Ae((v(), b("input", {
6445
+ (r.value || l.value) && s.value ? (v(), b("span", Wl, ":")) : O("", !0),
6446
+ s.value ? _e((v(), b("input", {
6434
6447
  key: 4,
6435
- id: `second_${D(a)}`,
6448
+ id: `second_${N(a)}`,
6436
6449
  type: "number",
6437
- "onUpdate:modelValue": k[2] || (k[2] = (A) => C.value = A),
6450
+ "onUpdate:modelValue": k[2] || (k[2] = (_) => C.value = _),
6438
6451
  min: "0",
6439
6452
  max: "59",
6440
6453
  "aria-label": "Second",
@@ -6442,9 +6455,9 @@ const Bl = (e, n) => {
6442
6455
  "aria-valuemax": "59",
6443
6456
  "aria-valuenow": C.value,
6444
6457
  onInput: V
6445
- }, null, 40, jl)), [
6458
+ }, null, 40, Yl)), [
6446
6459
  [
6447
- We,
6460
+ Ye,
6448
6461
  C.value,
6449
6462
  void 0,
6450
6463
  { number: !0 }
@@ -6456,7 +6469,7 @@ const Bl = (e, n) => {
6456
6469
  }, 16, ["modelValue", "open", "id", "invalid", "locale", "format", "label", "first-day-of-week", "placeholder"])
6457
6470
  ], 512));
6458
6471
  }
6459
- }), $r = /* @__PURE__ */ W(Wl, [["__scopeId", "data-v-870f6dd9"]]), Ir = z({
6472
+ }), Ir = /* @__PURE__ */ W(Xl, [["__scopeId", "data-v-870f6dd9"]]), Hr = Z({
6460
6473
  name: "Table",
6461
6474
  props: {
6462
6475
  columns: {
@@ -6660,7 +6673,7 @@ const Bl = (e, n) => {
6660
6673
  );
6661
6674
  };
6662
6675
  }
6663
- }), Je = /* @__PURE__ */ Symbol("AccordionContext"), Hr = z({
6676
+ }), Qe = /* @__PURE__ */ Symbol("AccordionContext"), Vr = Z({
6664
6677
  name: "Accordion",
6665
6678
  props: {
6666
6679
  multiple: { type: Boolean, default: !1 },
@@ -6688,7 +6701,7 @@ const Bl = (e, n) => {
6688
6701
  const h = t.value;
6689
6702
  h.length && h[h.length - 1]?.focus();
6690
6703
  };
6691
- return Ve(Je, {
6704
+ return He(Qe, {
6692
6705
  multiple: e.multiple,
6693
6706
  openItems: a,
6694
6707
  toggle: o,
@@ -6700,14 +6713,14 @@ const Bl = (e, n) => {
6700
6713
  focusLast: u
6701
6714
  }), () => n.default?.();
6702
6715
  }
6703
- }), Vr = z({
6716
+ }), Br = Z({
6704
6717
  name: "AccordionItem",
6705
6718
  props: {
6706
6719
  id: { type: String, required: !0 },
6707
6720
  disabled: { type: Boolean, default: !1 }
6708
6721
  },
6709
6722
  setup(e, { slots: n }) {
6710
- const t = pe(Je);
6723
+ const t = pe(Qe);
6711
6724
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
6712
6725
  const a = E(() => t.openItems.value.has(e.id));
6713
6726
  return () => j(
@@ -6719,14 +6732,14 @@ const Bl = (e, n) => {
6719
6732
  n.default?.({ open: a.value })
6720
6733
  );
6721
6734
  }
6722
- }), Br = z({
6735
+ }), _r = Z({
6723
6736
  name: "AccordionHeader",
6724
6737
  props: {
6725
6738
  id: { type: String, required: !0 },
6726
6739
  disabled: { type: Boolean, default: !1 }
6727
6740
  },
6728
6741
  setup(e, { slots: n }) {
6729
- const t = pe(Je), a = M(null);
6742
+ const t = pe(Qe), a = M(null);
6730
6743
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
6731
6744
  const o = E(() => t.openItems.value.has(e.id)), i = () => {
6732
6745
  e.disabled || t.toggle?.(e.id);
@@ -6779,13 +6792,13 @@ const Bl = (e, n) => {
6779
6792
  ]
6780
6793
  );
6781
6794
  }
6782
- }), Ar = z({
6795
+ }), Ar = Z({
6783
6796
  name: "AccordionPanel",
6784
6797
  props: {
6785
6798
  id: { type: String, required: !0 }
6786
6799
  },
6787
6800
  setup(e, { slots: n }) {
6788
- const t = pe(Je);
6801
+ const t = pe(Qe);
6789
6802
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
6790
6803
  const a = E(() => t.openItems.value.has(e.id));
6791
6804
  return () => j(
@@ -6807,28 +6820,28 @@ const Bl = (e, n) => {
6807
6820
  }
6808
6821
  });
6809
6822
  export {
6810
- Hr as Accordion,
6811
- Br as AccordionHeader,
6812
- Vr as AccordionItem,
6823
+ Vr as Accordion,
6824
+ _r as AccordionHeader,
6825
+ Br as AccordionItem,
6813
6826
  Ar as AccordionPanel,
6814
- rr as Autocomplete,
6815
- Ql as Avatar,
6816
- or as Breadcrumb,
6817
- xe as Button,
6827
+ ir as Autocomplete,
6828
+ tr as Avatar,
6829
+ rr as Breadcrumb,
6830
+ Le as Button,
6818
6831
  kt as ButtonMenu,
6819
- dr as Card,
6820
- fr as CardBody,
6821
- mr as CardFooter,
6822
- vr as CardHeader,
6823
- yr as Carousel,
6824
- br as CarouselItem,
6825
- ar as Checkbox,
6826
- It as ConfirmModal,
6827
- cr as ConfirmModalPlugin,
6828
- Ol as DatePicker,
6829
- $r as DateTimePicker,
6832
+ vr as Card,
6833
+ mr as CardBody,
6834
+ pr as CardFooter,
6835
+ fr as CardHeader,
6836
+ br as Carousel,
6837
+ kr as CarouselItem,
6838
+ or as Checkbox,
6839
+ Ht as ConfirmModal,
6840
+ dr as ConfirmModalPlugin,
6841
+ Fl as DatePicker,
6842
+ Ir as DateTimePicker,
6830
6843
  En as Dropdown,
6831
- xr as DropdownItem,
6844
+ $r as DropdownItem,
6832
6845
  Zn as DropdownMenu,
6833
6846
  Sn as DropdownTrigger,
6834
6847
  gt as Editor,
@@ -6836,35 +6849,35 @@ export {
6836
6849
  Ce as Icon,
6837
6850
  ze as Image,
6838
6851
  Mt as ImageGallery,
6839
- Jl as Input,
6840
- Gl as Link,
6841
- ot as Modal,
6842
- zt as ModalBody,
6843
- Nt as ModalClose,
6844
- Tt as ModalContent,
6845
- tr as ModalFooter,
6846
- Zt as ModalHeader,
6847
- Dt as ModalTitle,
6852
+ er as Input,
6853
+ Ql as Link,
6854
+ lt as Modal,
6855
+ Nt as ModalBody,
6856
+ Ot as ModalClose,
6857
+ Dt as ModalContent,
6858
+ nr as ModalFooter,
6859
+ zt as ModalHeader,
6860
+ Zt as ModalTitle,
6848
6861
  Lt as PasswordValidator,
6849
- lr as RadioButton,
6850
- er as Select,
6851
- Ot as Spinner,
6852
- pr as Step,
6853
- Cr as Steps,
6854
- Ir as Table,
6855
- kr as Tabs,
6856
- Lr as TabsContent,
6857
- wr as TabsList,
6858
- Mr as TabsTrigger,
6862
+ sr as RadioButton,
6863
+ ar as Select,
6864
+ qt as Spinner,
6865
+ Cr as Step,
6866
+ hr as Steps,
6867
+ Hr as Table,
6868
+ wr as Tabs,
6869
+ xr as TabsContent,
6870
+ Mr as TabsList,
6871
+ Lr as TabsTrigger,
6859
6872
  Hn as Tag,
6860
- nr as Textarea,
6861
- hr as Timeline,
6862
- gr as TimelineItem,
6863
- ir as ToastPlugin,
6873
+ lr as Textarea,
6874
+ gr as Timeline,
6875
+ yr as TimelineItem,
6876
+ cr as ToastPlugin,
6864
6877
  xt as ToastViewport,
6865
6878
  pt as Toggle,
6866
6879
  bt as Tooltip,
6867
6880
  yt as Upload,
6868
- ur as confirm,
6869
- sr as toast
6881
+ qe as confirm,
6882
+ ur as toast
6870
6883
  };