@reinosoft-ui/core 0.1.81 → 0.1.83

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 _e, 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 Ae, withCtx as J, vModelText as We, useId as ge, provide as Ve, createTextVNode as Le, resolveDynamicComponent as Ne, inject as me, useAttrs as st, reactive as it, h as j, useSlots as ut, resolveComponent as Ft, vModelRadio as Pt, vModelDynamic as Ut, TransitionGroup as Kt, createApp as jt, shallowRef as Wt } 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 Ae, 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 _e, 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 Pt, vModelRadio as Ut, vModelDynamic as Kt, reactive as ut, TransitionGroup as jt, createApp as Bt, shallowRef as Wt } from "vue";
2
2
  import { routerKey as Yt } from "vue-router";
3
- const Xt = ["aria-busy"], Gt = ["aria-label"], Jt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Qt = /* @__PURE__ */ z({
3
+ const Xt = ["aria-busy"], Gt = ["aria-label"], Jt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Qt = /* @__PURE__ */ Z({
4
4
  __name: "Image",
5
5
  props: {
6
6
  src: {},
@@ -39,7 +39,7 @@ const Xt = ["aria-busy"], Gt = ["aria-label"], Jt = ["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 Xt = ["aria-busy"], Gt = ["aria-label"], Jt = ["src", "srcset", "sizes", "
54
54
  "aria-label": e.decorative ? void 0 : e.alt
55
55
  }, "Image not available", 8, Gt)
56
56
  ], !0) : O("", !0),
57
- _e(x("img", {
57
+ Ae(x("img", {
58
58
  ref_key: "imgRef",
59
59
  ref: i,
60
60
  class: "ui-image__img",
@@ -81,13 +81,13 @@ const Xt = ["aria-busy"], Gt = ["aria-label"], Jt = ["src", "srcset", "sizes", "
81
81
  ze.install = (e) => {
82
82
  e.component("Image", ze);
83
83
  };
84
- const e1 = /* @__PURE__ */ z({
84
+ const e1 = /* @__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 e1 = /* @__PURE__ */ z({
96
96
  G(a.$slots, "default", {}, void 0, !0)
97
97
  ], 16));
98
98
  }
99
- }), xe = /* @__PURE__ */ W(e1, [["__scopeId", "data-v-59076f1d"]]);
100
- xe.install = (e) => {
101
- e.component("Button", xe);
99
+ }), Le = /* @__PURE__ */ W(e1, [["__scopeId", "data-v-59076f1d"]]);
100
+ Le.install = (e) => {
101
+ e.component("Button", Le);
102
102
  };
103
- const t1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], a1 = /* @__PURE__ */ z({
103
+ const t1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], a1 = /* @__PURE__ */ Z({
104
104
  __name: "Toggle",
105
105
  props: /* @__PURE__ */ ie({
106
106
  id: {},
@@ -111,7 +111,7 @@ const t1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], a1
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);
@@ -135,11 +135,11 @@ const t1 = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], a1
135
135
  ], -1)
136
136
  ])], 42, t1));
137
137
  }
138
- }), mt = /* @__PURE__ */ W(a1, [["__scopeId", "data-v-d2681823"]]);
139
- mt.install = (e) => {
140
- e.component("Toggle", mt);
138
+ }), pt = /* @__PURE__ */ W(a1, [["__scopeId", "data-v-d2681823"]]);
139
+ pt.install = (e) => {
140
+ e.component("Toggle", pt);
141
141
  };
142
- const Vt = (e) => {
142
+ const At = (e) => {
143
143
  for (; e; ) {
144
144
  if (e instanceof HTMLElement && e.dataset?.block !== void 0) return e;
145
145
  e = e.parentNode;
@@ -164,7 +164,7 @@ const Vt = (e) => {
164
164
  }
165
165
  const t = window.getSelection();
166
166
  if (!t || t.rangeCount === 0) return;
167
- const a = t.getRangeAt(0), o = Bt(a.startContainer, "li");
167
+ const a = t.getRangeAt(0), o = _t(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 Vt = (e) => {
179
179
  return;
180
180
  }
181
181
  r1(e, n);
182
- }, Bt = (e, n) => {
182
+ }, _t = (e, n) => {
183
183
  for (; e; ) {
184
184
  if (e instanceof HTMLElement && e.tagName.toLowerCase() === n) return e;
185
185
  e = e.parentNode;
@@ -190,7 +190,7 @@ const Vt = (e) => {
190
190
  const t = window.getSelection();
191
191
  if (!t || t.rangeCount === 0) return;
192
192
  const a = t.getRangeAt(0);
193
- let o = Vt(a.startContainer);
193
+ let o = At(a.startContainer);
194
194
  if (o && o.tagName === "LI") {
195
195
  const V = o.parentElement;
196
196
  V && ["UL", "OL"].includes(V.tagName) && (o = V);
@@ -200,10 +200,10 @@ const Vt = (e) => {
200
200
  document.createRange().selectNodeContents(o);
201
201
  const u = a.cloneRange(), h = document.createRange();
202
202
  h.selectNodeContents(o), h.setEnd(u.startContainer, u.startOffset);
203
- const C = h.cloneContents(), p = document.createRange();
204
- p.selectNodeContents(o), p.setStart(u.startContainer, u.startOffset);
205
- const m = p.cloneContents();
206
- o.innerHTML = "", o.appendChild(C), o.innerHTML === "" && (o.innerHTML = "<br>"), s.innerHTML = "", s.appendChild(m), s.innerHTML === "" && (s.innerHTML = "<br>"), o.after(s);
203
+ const C = h.cloneContents(), m = document.createRange();
204
+ m.selectNodeContents(o), m.setStart(u.startContainer, u.startOffset);
205
+ const p = m.cloneContents();
206
+ o.innerHTML = "", o.appendChild(C), o.innerHTML === "" && (o.innerHTML = "<br>"), s.innerHTML = "", s.appendChild(p), s.innerHTML === "" && (s.innerHTML = "<br>"), o.after(s);
207
207
  const L = document.createRange();
208
208
  L.setStart(s, 0), L.collapse(!0), t.removeAllRanges(), t.addRange(L), n?.normalize();
209
209
  }, s1 = () => {
@@ -214,7 +214,7 @@ const Vt = (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 = Vt(t.startContainer), o = Bt(t.startContainer, "li");
217
+ const t = n.getRangeAt(0), a = At(t.startContainer), o = _t(t.startContainer, "li");
218
218
  if (o) {
219
219
  if (!(o.textContent?.trim() === "")) return;
220
220
  e.preventDefault();
@@ -278,12 +278,12 @@ const Vt = (e) => {
278
278
  if (te === ne) return;
279
279
  let le;
280
280
  te === 0 && ne === ee.textContent.length ? le = ee : (le = ee.splitText(te), ne - te < le.textContent.length && le.splitText(ne - te));
281
- const pe = n1(le, f, H);
282
- if (pe)
283
- o1(pe), ce.push(le);
281
+ const me = n1(le, f, H);
282
+ if (me)
283
+ o1(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();
@@ -291,7 +291,7 @@ const Vt = (e) => {
291
291
  const te = ce[ce.length - 1];
292
292
  ee.setEnd(te, te.textContent.length), d.removeAllRanges(), d.addRange(ee), s();
293
293
  }
294
- return m(), L(f);
294
+ return p(), L(f);
295
295
  }, u = (f, d) => {
296
296
  if (!f || !d || !(d instanceof HTMLElement)) return [];
297
297
  const y = f.commonAncestorContainer, H = d.contains(y) ? d : y.nodeType === 3 ? y.parentNode : y, X = document.createTreeWalker(
@@ -316,16 +316,16 @@ const Vt = (e) => {
316
316
  if (H.tagName === "LI") {
317
317
  const le = H.parentElement;
318
318
  if (!le) return !1;
319
- const pe = document.createElement("p");
320
- return pe.dataset.block = "true", pe.innerHTML = H.innerHTML, le.replaceWith(pe), p(pe), m(), !1;
319
+ const me = document.createElement("p");
320
+ return me.dataset.block = "true", me.innerHTML = H.innerHTML, le.replaceWith(me), m(me), p(), !1;
321
321
  }
322
322
  const te = document.createElement(f), ne = document.createElement("li");
323
323
  for (ne.dataset.block = "true"; H.firstChild; ) ne.appendChild(H.firstChild);
324
- return te.appendChild(ne), H.replaceWith(te), p(ne), m(), !0;
324
+ return te.appendChild(ne), H.replaceWith(te), m(ne), p(), !0;
325
325
  }
326
326
  const ce = X ? "p" : f.toLowerCase(), ee = document.createElement(ce);
327
327
  for (ce === "blockquote" && (ee.className = "rs-blockquote"), ee.dataset.block = "true"; H.firstChild; ) ee.appendChild(H.firstChild);
328
- return H.replaceWith(ee), p(ee), m(), V(f);
328
+ return H.replaceWith(ee), m(ee), p(), V(f);
329
329
  }, C = (f) => {
330
330
  const d = e;
331
331
  if (!d) return null;
@@ -334,10 +334,10 @@ const Vt = (e) => {
334
334
  f = f.parentNode;
335
335
  }
336
336
  return null;
337
- }, p = (f) => {
337
+ }, m = (f) => {
338
338
  const d = document.createRange(), y = window.getSelection();
339
339
  d.selectNodeContents(f), d.collapse(!0), y?.removeAllRanges(), y?.addRange(d);
340
- }, m = () => {
340
+ }, p = () => {
341
341
  const f = e;
342
342
  f && (f.querySelectorAll("[data-block]").forEach((d) => {
343
343
  d.childNodes.forEach((y) => {
@@ -395,7 +395,7 @@ const Vt = (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
- }, _ = () => l.value?.focusFirstButton?.(), N = (f) => {
398
+ }, A = () => 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);
@@ -411,18 +411,18 @@ const Vt = (e) => {
411
411
  ee.selectNodeContents(H), ee.setEnd(y.endContainer, y.endOffset);
412
412
  const te = ee.toString().length, ne = y.collapsed, le = f(H);
413
413
  H.replaceWith(le);
414
- const pe = document.createTreeWalker(
414
+ const me = document.createTreeWalker(
415
415
  le,
416
416
  NodeFilter.SHOW_TEXT,
417
417
  null
418
418
  );
419
- let $e = 0, Fe = null, je = 0, Ee = null, Re = 0;
420
- for (; pe.nextNode(); ) {
421
- const De = pe.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;
419
+ let xe = 0, Pe = null, We = 0, Ee = null, Re = 0;
420
+ for (; me.nextNode(); ) {
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(), m();
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));
@@ -430,7 +430,7 @@ const Vt = (e) => {
430
430
  const d = e;
431
431
  if (!d) return;
432
432
  const y = document.createRange().createContextualFragment(f);
433
- d.appendChild(y), m(), d.dispatchEvent(new Event("input", { bubbles: !0 }));
433
+ d.appendChild(y), p(), d.dispatchEvent(new Event("input", { bubbles: !0 }));
434
434
  }, ue = (f) => {
435
435
  const d = window.getSelection();
436
436
  if (!d || d.rangeCount === 0) {
@@ -442,14 +442,14 @@ const Vt = (e) => {
442
442
  oe(f);
443
443
  return;
444
444
  }
445
- H.insertAdjacentHTML("afterend", f), m(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
445
+ H.insertAdjacentHTML("afterend", f), p(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
446
446
  }, re = (f) => {
447
447
  const d = document.createElement("span");
448
448
  d.className = "img-resizable", d.style.display = "inline-block", d.style.position = "relative", d.style.width = "100%";
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%";
@@ -472,21 +472,21 @@ const Vt = (e) => {
472
472
  ne.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((le) => le.classList.remove("selected")), d.classList.add("selected"), H();
473
473
  }), document.addEventListener("click", (ne) => {
474
474
  const le = ne.target;
475
- le.closest(".img-resizable") || e.querySelectorAll(".img-resizable.selected").forEach((pe) => pe.classList.remove("selected")), d.contains(le) || X();
475
+ le.closest(".img-resizable") || e.querySelectorAll(".img-resizable.selected").forEach((me) => me.classList.remove("selected")), d.contains(le) || X();
476
476
  });
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 + "%";
486
- }, pe = () => {
487
- document.removeEventListener("mousemove", le), document.removeEventListener("mouseup", pe), document.removeEventListener("touchmove", le), document.removeEventListener("touchend", pe);
486
+ }, me = () => {
487
+ document.removeEventListener("mousemove", le), document.removeEventListener("mouseup", me), document.removeEventListener("touchmove", le), document.removeEventListener("touchend", me);
488
488
  };
489
- document.addEventListener("mousemove", le), document.addEventListener("mouseup", pe), document.addEventListener("touchmove", le, { passive: !1 }), document.addEventListener("touchend", pe);
489
+ document.addEventListener("mousemove", le), document.addEventListener("mouseup", me), document.addEventListener("touchmove", le, { passive: !1 }), document.addEventListener("touchend", me);
490
490
  };
491
491
  y.addEventListener("mousedown", te), y.addEventListener("touchstart", te, { passive: !1 });
492
492
  }, I = (f) => {
@@ -495,16 +495,16 @@ const Vt = (e) => {
495
495
  if (!d) return;
496
496
  f.preventDefault();
497
497
  const y = d.closest("p[data-block]");
498
- y && (d.remove(), y.replaceChildren(document.createElement("br")), p(y));
498
+ y && (d.remove(), y.replaceChildren(document.createElement("br")), m(y));
499
499
  };
500
500
  e.addEventListener("keydown", I, { capture: !0 });
501
- const A = (f) => {
501
+ const _ = (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"
@@ -530,8 +530,8 @@ const Vt = (e) => {
530
530
  const y = d.getRangeAt(0), H = C(y.startContainer);
531
531
  if (!H) return;
532
532
  const X = H.querySelector("iframe");
533
- X && (f.preventDefault(), f.stopPropagation(), X.remove(), H.removeAttribute("style"), H.replaceChildren(document.createElement("br")), p(H));
534
- }, Z = (f, d) => {
533
+ X && (f.preventDefault(), f.stopPropagation(), X.remove(), H.removeAttribute("style"), H.replaceChildren(document.createElement("br")), m(H));
534
+ }, D = (f, d) => {
535
535
  const y = e;
536
536
  if (!y) return;
537
537
  const H = window.getSelection();
@@ -550,7 +550,7 @@ const Vt = (e) => {
550
550
  const ne = document.createElement("p");
551
551
  ne.dataset.block = "true", ne.replaceChildren(document.createElement("br")), X ? (X.after(te), te.after(ne)) : y.append(te, ne), ee = ne;
552
552
  }
553
- y.querySelectorAll(".img-resizable img").forEach((te) => S(te)), ee && p(ee), m(), y.dispatchEvent(new Event("input", { bubbles: !0 }));
553
+ y.querySelectorAll(".img-resizable img").forEach((te) => S(te)), ee && m(ee), p(), y.dispatchEvent(new Event("input", { bubbles: !0 }));
554
554
  }, R = (f) => {
555
555
  const d = f.match(/(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);
556
556
  return d && typeof d[1] == "string" ? d[1] : null;
@@ -563,10 +563,10 @@ const Vt = (e) => {
563
563
  const le = ne.getAsFile();
564
564
  if (!le) return;
565
565
  try {
566
- const pe = await o(le);
567
- re(pe);
568
- } catch (pe) {
569
- console.error("Image upload failed", pe);
566
+ const me = await o(le);
567
+ re(me);
568
+ } catch (me) {
569
+ console.error("Image upload failed", me);
570
570
  }
571
571
  return;
572
572
  }
@@ -580,7 +580,7 @@ const Vt = (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
- A(y);
583
+ _(y);
584
584
  return;
585
585
  }
586
586
  if (X) {
@@ -607,7 +607,7 @@ const Vt = (e) => {
607
607
  const d = window.getSelection();
608
608
  if (!d || d.rangeCount === 0 || d.isCollapsed) return;
609
609
  const y = d.getRangeAt(0), H = document.createElement("a");
610
- H.href = f, H.target = "_blank", H.rel = "noopener noreferrer", H.append(y.extractContents()), y.insertNode(H), y.selectNode(H), d.removeAllRanges(), d.addRange(y), s(), m();
610
+ H.href = f, H.target = "_blank", H.rel = "noopener noreferrer", H.append(y.extractContents()), y.insertNode(H), y.selectNode(H), d.removeAllRanges(), d.addRange(y), s(), p();
611
611
  }, Y = () => {
612
612
  const f = window.getSelection();
613
613
  if (!f || f.rangeCount === 0) return;
@@ -625,7 +625,7 @@ const Vt = (e) => {
625
625
  return e.addEventListener("keydown", g, { capture: !0 }), e.addEventListener("paste", q), {
626
626
  toggleInline: c,
627
627
  toggleBlock: h,
628
- normalize: m,
628
+ normalize: p,
629
629
  rootElement: e,
630
630
  saveSelection: s,
631
631
  restoreSelection: k,
@@ -633,15 +633,15 @@ const Vt = (e) => {
633
633
  isBlockActive: V,
634
634
  focus: $,
635
635
  toolbarRef: l,
636
- focusFirstToolbarButton: _,
637
- replaceCurrentBlock: N,
636
+ focusFirstToolbarButton: A,
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: A,
644
+ appendVideo: _,
645
645
  applyLink: T,
646
646
  removeLink: Y
647
647
  };
@@ -650,7 +650,7 @@ const Vt = (e) => {
650
650
  class: "sr-only",
651
651
  "aria-live": "polite",
652
652
  "aria-atomic": "true"
653
- }, v1 = /* @__PURE__ */ z({
653
+ }, v1 = /* @__PURE__ */ Z({
654
654
  __name: "EditorContent",
655
655
  props: {
656
656
  editor: {},
@@ -677,12 +677,12 @@ const Vt = (e) => {
677
677
  }, r = () => {
678
678
  const C = window.getSelection();
679
679
  if (!C || C.rangeCount === 0) return;
680
- const p = o.value;
681
- if (!p) return;
682
- const m = C.getRangeAt(0);
683
- p.contains(m.commonAncestorContainer) && t.editor?.saveSelection();
680
+ const m = o.value;
681
+ if (!m) return;
682
+ const p = C.getRangeAt(0);
683
+ m.contains(p.commonAncestorContainer) && t.editor?.saveSelection();
684
684
  }, l = (C) => {
685
- const p = new DOMParser().parseFromString(C, "text/html"), m = /* @__PURE__ */ new Set([
685
+ const m = new DOMParser().parseFromString(C, "text/html"), p = /* @__PURE__ */ new Set([
686
686
  "P",
687
687
  "BR",
688
688
  "STRONG",
@@ -695,13 +695,13 @@ const Vt = (e) => {
695
695
  "LI",
696
696
  "A"
697
697
  ]), L = document.createTreeWalker(
698
- p.body,
698
+ m.body,
699
699
  NodeFilter.SHOW_ELEMENT,
700
700
  null
701
701
  ), V = [];
702
702
  for (; L.nextNode(); ) {
703
703
  const $ = L.currentNode;
704
- if (!m.has($.tagName)) {
704
+ if (!p.has($.tagName)) {
705
705
  V.push($);
706
706
  continue;
707
707
  }
@@ -714,58 +714,58 @@ const Vt = (e) => {
714
714
  const k = $.parentNode;
715
715
  for (; $.firstChild; ) k?.insertBefore($.firstChild, $);
716
716
  k?.removeChild($);
717
- }), p.querySelectorAll("li").forEach(($) => {
717
+ }), m.querySelectorAll("li").forEach(($) => {
718
718
  $.setAttribute("data-block", "true");
719
- }), p.querySelectorAll("ul, ol").forEach(($) => {
719
+ }), m.querySelectorAll("ul, ol").forEach(($) => {
720
720
  $.removeAttribute("data-block");
721
- }), p.body.innerHTML;
721
+ }), m.body.innerHTML;
722
722
  }, s = () => {
723
723
  const C = window.getSelection();
724
724
  if (!C || C.rangeCount === 0) return;
725
- const p = C.anchorNode;
726
- if (!p) return;
727
- const m = (p instanceof Element ? p : p.parentElement)?.closest("[data-block]");
728
- m && c(m);
725
+ const m = C.anchorNode;
726
+ if (!m) return;
727
+ const p = (m instanceof Element ? m : m.parentElement)?.closest("[data-block]");
728
+ p && c(p);
729
729
  }, c = (C) => {
730
- const p = C.textContent?.replace(/\u00A0/g, "").trim() ?? "", m = C.querySelector("img, iframe"), L = C.innerHTML === "<br>";
731
- (p === "" || L) && !m ? C.dataset.empty = "true" : C.dataset.empty = "false";
730
+ const m = C.textContent?.replace(/\u00A0/g, "").trim() ?? "", p = C.querySelector("img, iframe"), L = C.innerHTML === "<br>";
731
+ (m === "" || L) && !p ? C.dataset.empty = "true" : C.dataset.empty = "false";
732
732
  }, u = (C) => {
733
- const p = window.getSelection();
734
- if (!p || p.rangeCount === 0) return;
735
- const m = p.getRangeAt(0);
736
- m.deleteContents();
737
- const L = m.createContextualFragment(C), V = document.createElement("div");
733
+ const m = window.getSelection();
734
+ if (!m || m.rangeCount === 0) return;
735
+ const p = m.getRangeAt(0);
736
+ p.deleteContents();
737
+ const L = p.createContextualFragment(C), V = document.createElement("div");
738
738
  V.appendChild(L);
739
- const $ = (m.startContainer instanceof Element ? m.startContainer : m.startContainer.parentElement)?.closest("[data-block]");
739
+ const $ = (p.startContainer instanceof Element ? p.startContainer : p.startContainer.parentElement)?.closest("[data-block]");
740
740
  $ && V.querySelectorAll("[data-block]").forEach((k) => {
741
741
  if (k !== $) {
742
742
  for (; k.firstChild; )
743
743
  $.insertBefore(k.firstChild, $.nextSibling);
744
744
  k.remove();
745
745
  }
746
- }), m.insertNode(V), p.collapseToEnd();
746
+ }), p.insertNode(V), m.collapseToEnd();
747
747
  }, h = (C) => {
748
748
  C.preventDefault();
749
- const p = C.clipboardData?.getData("text/html"), m = C.clipboardData?.getData("text/plain"), L = window.getSelection();
749
+ const m = C.clipboardData?.getData("text/html"), p = C.clipboardData?.getData("text/plain"), L = window.getSelection();
750
750
  if (!L || L.rangeCount === 0) return;
751
751
  const V = L.getRangeAt(0), $ = o.value;
752
752
  if (!$) return;
753
753
  const k = (V.startContainer instanceof Element ? V.startContainer : V.startContainer.parentElement)?.closest("[data-block]");
754
- if (p) {
755
- const _ = l(p);
756
- u(k ? _ : `<p data-block>${_}</p>`);
757
- } else m && u(k ? m : `<p data-block>${m}</p>`);
754
+ if (m) {
755
+ const A = l(m);
756
+ u(k ? A : `<p data-block>${A}</p>`);
757
+ } else p && u(k ? p : `<p data-block>${p}</p>`);
758
758
  t.editor?.saveSelection(), $.dispatchEvent(new Event("input", { bubbles: !0 }));
759
759
  };
760
760
  return ve(() => {
761
761
  document.addEventListener("selectionchange", r);
762
762
  const C = o.value;
763
- C && C.querySelectorAll("[data-block]").forEach((p) => {
764
- c(p);
763
+ C && C.querySelectorAll("[data-block]").forEach((m) => {
764
+ c(m);
765
765
  });
766
766
  }), Be(() => document.removeEventListener("selectionchange", r)), n({
767
767
  getRoot: () => o
768
- }), (C, p) => (v(), b(de, null, [
768
+ }), (C, m) => (v(), b(de, null, [
769
769
  x("div", {
770
770
  ref_key: "rootRef",
771
771
  ref: o,
@@ -780,17 +780,17 @@ const Vt = (e) => {
780
780
  onPaste: h,
781
781
  onKeydown: [
782
782
  i,
783
- p[0] || (p[0] = ye((m) => D(l1)(m, e.editor), ["enter"])),
784
- p[1] || (p[1] = ye(
783
+ m[0] || (m[0] = ye((p) => N(l1)(p, e.editor), ["enter"])),
784
+ m[1] || (m[1] = ye(
785
785
  //@ts-ignore
786
- (...m) => D(Ct) && D(Ct)(...m),
786
+ (...p) => N(Ct) && N(Ct)(...p),
787
787
  ["backspace"]
788
788
  ))
789
789
  ],
790
- onMouseup: p[2] || (p[2] = //@ts-ignore
791
- (...m) => e.editor?.saveSelection && e.editor?.saveSelection(...m)),
792
- onKeyup: p[3] || (p[3] = //@ts-ignore
793
- (...m) => e.editor?.saveSelection && e.editor?.saveSelection(...m))
790
+ onMouseup: m[2] || (m[2] = //@ts-ignore
791
+ (...p) => e.editor?.saveSelection && e.editor?.saveSelection(...p)),
792
+ onKeyup: m[3] || (m[3] = //@ts-ignore
793
+ (...p) => e.editor?.saveSelection && e.editor?.saveSelection(...p))
794
794
  }, [
795
795
  x("p", {
796
796
  "data-block": "",
@@ -799,13 +799,13 @@ const Vt = (e) => {
799
799
  }, null, 8, c1)
800
800
  ], 40, u1),
801
801
  x("div", d1, K(a.value), 1),
802
- p[4] || (p[4] = x("p", {
802
+ m[4] || (m[4] = x("p", {
803
803
  id: "editor-help",
804
804
  class: "sr-only"
805
805
  }, " Use Ctrl+B for bold, Ctrl+I for italic, Alt+Ctrl+1 for heading level 1. ", -1))
806
806
  ], 64));
807
807
  }
808
- }), f1 = /* @__PURE__ */ W(v1, [["__scopeId", "data-v-33b7c80d"]]), p1 = {
808
+ }), f1 = /* @__PURE__ */ W(v1, [["__scopeId", "data-v-33b7c80d"]]), m1 = {
809
809
  viewBox: "0 0 512 512",
810
810
  paths: [
811
811
  {
@@ -815,7 +815,7 @@ const Vt = (e) => {
815
815
  transform: "translate(5,0)"
816
816
  }
817
817
  ]
818
- }, m1 = {
818
+ }, p1 = {
819
819
  viewBox: "0 0 24 24",
820
820
  paths: [
821
821
  {
@@ -1042,7 +1042,7 @@ const Vt = (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
  {
@@ -1064,7 +1064,7 @@ const Vt = (e) => {
1064
1064
  fill: "currentColor"
1065
1065
  }
1066
1066
  ]
1067
- }, A1 = {
1067
+ }, _1 = {
1068
1068
  viewBox: "0 0 24 24",
1069
1069
  paths: [
1070
1070
  {
@@ -1726,7 +1726,7 @@ const Vt = (e) => {
1726
1726
  "stroke-width": 2
1727
1727
  }
1728
1728
  ]
1729
- }, pa = {
1729
+ }, ma = {
1730
1730
  viewBox: "0 0 24 24",
1731
1731
  paths: [
1732
1732
  {
@@ -1739,7 +1739,7 @@ const Vt = (e) => {
1739
1739
  "stroke-linejoin": "round"
1740
1740
  }
1741
1741
  ]
1742
- }, ma = {
1742
+ }, pa = {
1743
1743
  viewBox: "0 0 24 24",
1744
1744
  paths: [
1745
1745
  {
@@ -2081,7 +2081,7 @@ const Vt = (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
  {
@@ -2092,7 +2092,7 @@ const Vt = (e) => {
2092
2092
  "stroke-width": 2
2093
2093
  }
2094
2094
  ]
2095
- }, Aa = {
2095
+ }, _a = {
2096
2096
  viewBox: "0 0 24 24",
2097
2097
  paths: [
2098
2098
  {
@@ -2269,9 +2269,9 @@ const Vt = (e) => {
2269
2269
  "stroke-linejoin": "round"
2270
2270
  }
2271
2271
  ]
2272
- }, et = {
2273
- x: p1,
2274
- eye: m1,
2272
+ }, tt = {
2273
+ x: m1,
2274
+ eye: p1,
2275
2275
  sun: C1,
2276
2276
  box: h1,
2277
2277
  art: g1,
@@ -2284,10 +2284,10 @@ const Vt = (e) => {
2284
2284
  home: x1,
2285
2285
  edit: L1,
2286
2286
  disk: B1,
2287
- user: _1,
2287
+ user: A1,
2288
2288
  info: $1,
2289
2289
  sort: V1,
2290
- tick: A1,
2290
+ tick: _1,
2291
2291
  link: I1,
2292
2292
  head: H1,
2293
2293
  bold: E1,
@@ -2324,8 +2324,8 @@ const Vt = (e) => {
2324
2324
  pencil: J1,
2325
2325
  fashion: va,
2326
2326
  addUser: fa,
2327
- loading: ma,
2328
- sortAsc: pa,
2327
+ loading: pa,
2328
+ sortAsc: ma,
2329
2329
  profile: Ca,
2330
2330
  youtube: ga,
2331
2331
  warning: ha,
@@ -2341,8 +2341,8 @@ const Vt = (e) => {
2341
2341
  clipboard: Va,
2342
2342
  corporate: Ba,
2343
2343
  instagram: Ha,
2344
- arrowLeft: _a,
2345
- starSolid: Aa,
2344
+ arrowLeft: Aa,
2345
+ starSolid: _a,
2346
2346
  basketball: Ra,
2347
2347
  smartPhone: Ea,
2348
2348
  gastronomy: Ta,
@@ -2354,7 +2354,7 @@ const Vt = (e) => {
2354
2354
  shoppingBag: Oa,
2355
2355
  directionDown: qa,
2356
2356
  shoppingBasket: Fa
2357
- }, Pa = ["viewBox", "transform", "width", "height"], Ua = /* @__PURE__ */ z({
2357
+ }, Pa = ["viewBox", "transform", "width", "height"], Ua = /* @__PURE__ */ Z({
2358
2358
  __name: "Icon",
2359
2359
  props: {
2360
2360
  name: {},
@@ -2365,35 +2365,35 @@ const Vt = (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 Vt = (e) => {
2403
2403
  }), Ce = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-dd8423eb"]]), Ka = ["aria-controls"], ja = ["aria-pressed", "onClick", "aria-label"], Wa = { key: 1 }, Ya = {
2404
2404
  key: 1,
2405
2405
  class: "link-popup"
2406
- }, tt = 8, Xa = 6, Ga = /* @__PURE__ */ z({
2406
+ }, at = 8, Xa = 6, Ga = /* @__PURE__ */ Z({
2407
2407
  __name: "FloatingToolbar",
2408
2408
  props: {
2409
2409
  editor: {},
@@ -2411,37 +2411,37 @@ const Vt = (e) => {
2411
2411
  buttons: {}
2412
2412
  },
2413
2413
  setup(e, { expose: n }) {
2414
- const t = e, a = tt + Xa, o = M(""), i = M(!1), r = M(!1), l = M([]), s = M(null), c = M({}), u = M(null);
2415
- let h = !1, C = null, p = null, m = null, L = 0;
2414
+ const t = e, a = at + Xa, o = M(""), i = M(!1), r = M(!1), l = M([]), s = M(null), c = M({}), u = M(null);
2415
+ let h = !1, C = null, m = null, p = null, L = 0;
2416
2416
  const V = () => {
2417
2417
  c.value = $();
2418
2418
  };
2419
2419
  Q(r, async (g) => {
2420
2420
  if (!g) {
2421
- m?.(), m = null, p?.disconnect(), p = null;
2421
+ p?.(), p = null, m?.disconnect(), m = null;
2422
2422
  return;
2423
2423
  }
2424
- await Ie(), await Ie(), V(), s.value && (p = new ResizeObserver(V), p.observe(s.value)), m = 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 Vt = (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
- }, _ = (g, Z) => {
2460
- g && (l.value[Z] = g);
2459
+ }, A = (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 Vt = (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 Vt = (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 Vt = (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 Vt = (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 Vt = (e) => {
2581
2581
  i.value = !1, o.value = "";
2582
2582
  }, I = (g) => {
2583
2583
  g.action(t.editor);
2584
- }, A = (g) => {
2584
+ }, _ = (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", A);
2600
+ }), document.addEventListener("focusin", _);
2601
2601
  }), Se(() => {
2602
- m?.(), p?.disconnect(), p = null, cancelAnimationFrame(L), document.removeEventListener("selectionchange", re), document.removeEventListener("focusin", A);
2602
+ p?.(), m?.disconnect(), m = null, cancelAnimationFrame(L), document.removeEventListener("selectionchange", re), document.removeEventListener("focusin", _);
2603
2603
  }), n({
2604
2604
  focusFirstButton: oe
2605
- }), (g, Z) => (v(), ae(qe, { to: "body" }, [
2606
- U(Ae, { name: "tooltip-fade" }, {
2605
+ }), (g, D) => (v(), ae(Fe, { to: "body" }, [
2606
+ U(_e, { name: "tooltip-fade" }, {
2607
2607
  default: J(() => [
2608
2608
  r.value ? (v(), b("div", {
2609
2609
  key: 0,
@@ -2613,35 +2613,35 @@ const Vt = (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", Ya, [
2622
- _e(x("input", {
2622
+ Ae(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) => _(B, q),
2644
+ ref: (B) => A(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 Vt = (e) => {
2659
2659
  })
2660
2660
  ]));
2661
2661
  }
2662
- }), Ja = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-47000ede"]]), Qa = { class: "editor" }, gt = /* @__PURE__ */ z({
2662
+ }), Ja = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-47000ede"]]), Qa = { class: "editor" }, gt = /* @__PURE__ */ Z({
2663
2663
  __name: "Editor",
2664
2664
  props: /* @__PURE__ */ ie({
2665
2665
  ariaLabel: {},
@@ -2675,7 +2675,7 @@ const Vt = (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 Vt = (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", Qa, [
2706
2706
  U(f1, {
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 Vt = (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
  }
@@ -2745,10 +2745,10 @@ const en = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2745
2745
  key: 3,
2746
2746
  class: "ui-upload__status canceled",
2747
2747
  role: "status"
2748
- }, fn = { class: "ui-upload__actions" }, pn = {
2748
+ }, fn = { class: "ui-upload__actions" }, mn = {
2749
2749
  class: "sr-only",
2750
2750
  "aria-live": "polite"
2751
- }, mn = ["id"], Cn = /* @__PURE__ */ z({
2751
+ }, pn = ["id"], Cn = /* @__PURE__ */ Z({
2752
2752
  __name: "Upload",
2753
2753
  props: /* @__PURE__ */ ie({
2754
2754
  multiple: { type: Boolean, default: !1 },
@@ -2766,46 +2766,46 @@ const en = ["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)), p = E(() => u.value.some((I) => I.status === "uploading")), m = () => 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 A = I.dataTransfer.files[0];
2777
- _([A]);
2776
+ const _ = I.dataTransfer.files[0];
2777
+ A([_]);
2778
2778
  return;
2779
2779
  }
2780
- _(Array.from(I.dataTransfer.files));
2780
+ A(Array.from(I.dataTransfer.files));
2781
2781
  }
2782
2782
  }, k = (I) => {
2783
- const A = I.target;
2784
- A.files && (_(Array.from(A.files)), A.value = "");
2785
- }, _ = (I) => {
2786
- const A = [];
2787
- for (const Z of I) {
2788
- if (u.value.length + A.length >= a.maxFiles) break;
2789
- Z.size > a.maxSize || A.push({
2783
+ const _ = I.target;
2784
+ _.files && (A(Array.from(_.files)), _.value = "");
2785
+ }, A = (I) => {
2786
+ const _ = [];
2787
+ for (const D of I) {
2788
+ if (u.value.length + _.length >= a.maxFiles) break;
2789
+ D.size > a.maxSize || _.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 (!A.length) return;
2797
- o("select", A.map((Z) => Z.file));
2798
- const g = [...u.value, ...A];
2799
- t.value = g, a.autoUpload && A.forEach(N);
2800
- }, N = (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}`);
2796
+ if (!_.length) return;
2797
+ o("select", _.map((D) => D.file));
2798
+ const g = [...u.value, ..._];
2799
+ t.value = g, a.autoUpload && _.forEach(z);
2800
+ }, z = (I) => {
2801
+ const _ = new AbortController();
2802
+ I.progress = 0, I.error = void 0, I.status = "uploading", I.controller = _, F(`Started uploading ${I.file.name}`);
2803
2803
  const g = () => {
2804
- A.signal.removeEventListener("abort", g);
2804
+ _.signal.removeEventListener("abort", g);
2805
2805
  };
2806
- A.signal.addEventListener("abort", g);
2807
- const Z = {
2808
- signal: A.signal,
2806
+ _.signal.addEventListener("abort", g);
2807
+ const D = {
2808
+ signal: _.signal,
2809
2809
  onProgress: (R) => {
2810
2810
  I.progress = R, ue();
2811
2811
  },
@@ -2816,42 +2816,42 @@ const en = ["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 A = ["B", "KB", "MB", "GB", "TB"];
2825
+ const _ = ["B", "KB", "MB", "GB", "TB"];
2826
2826
  let g = 0;
2827
- for (; I >= 1024 && g < A.length - 1; )
2827
+ for (; I >= 1024 && g < _.length - 1; )
2828
2828
  I /= 1024, g++;
2829
- return `${I.toFixed(2)} ${A[g]}`;
2829
+ return `${I.toFixed(2)} ${_[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((A) => A.id !== I.id);
2835
+ I.controller && I.controller.abort(), o("remove", I), t.value = u.value.filter((_) => _.id !== I.id);
2836
2836
  };
2837
- return (I, A) => (v(), b("div", {
2837
+ return (I, _) => (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,
2843
- "aria-busy": p.value ? "true" : void 0,
2842
+ "aria-describedby": l.value ? N(s) : void 0,
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: A[0] || (A[0] = (g) => !e.disabled && m()),
2847
+ onClick: _[0] || (_[0] = (g) => !e.disabled && p()),
2848
2848
  onKeydown: [
2849
- A[1] || (A[1] = ye(se((g) => !e.disabled && m(), ["stop", "prevent"]), ["enter"])),
2850
- A[2] || (A[2] = ye(se((g) => !e.disabled && m(), ["prevent"]), ["space"]))
2849
+ _[1] || (_[1] = ye(se((g) => !e.disabled && p(), ["stop", "prevent"]), ["enter"])),
2850
+ _[2] || (_[2] = ye(se((g) => !e.disabled && p(), ["prevent"]), ["space"]))
2851
2851
  ],
2852
- onDragover: A[3] || (A[3] = se((g) => !e.disabled && L(), ["prevent"])),
2852
+ onDragover: _[3] || (_[3] = se((g) => !e.disabled && L(), ["prevent"])),
2853
2853
  onDragleave: V,
2854
- onDrop: A[4] || (A[4] = se((g) => !e.disabled && $(g), ["prevent"]))
2854
+ onDrop: _[4] || (_[4] = se((g) => !e.disabled && $(g), ["prevent"]))
2855
2855
  }, [
2856
2856
  x("input", {
2857
2857
  type: "file",
@@ -2871,14 +2871,14 @@ const en = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2871
2871
  name: "upload",
2872
2872
  size: 32
2873
2873
  }),
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(xe, {
2874
+ _[6] || (_[6] = x("p", null, "Drag and Drop files here", -1)),
2875
+ _[7] || (_[7] = x("span", null, "or", -1)),
2876
+ U(Le, {
2877
2877
  type: "button",
2878
2878
  class: "btn btn-outline"
2879
2879
  }, {
2880
- default: J(() => [...A[5] || (A[5] = [
2881
- Le("Choose File", -1)
2880
+ default: J(() => [..._[5] || (_[5] = [
2881
+ Me("Choose File", -1)
2882
2882
  ])]),
2883
2883
  _: 1
2884
2884
  }),
@@ -2912,37 +2912,37 @@ const en = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2912
2912
  g.status === "error" ? (v(), b("span", dn, K(g.error || "Upload failed"), 1)) : O("", !0),
2913
2913
  g.status === "canceled" ? (v(), b("span", vn, " Upload canceled ")) : O("", !0),
2914
2914
  x("div", fn, [
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(() => [...A[8] || (A[8] = [
2922
- Le(" Cancel ", -1)
2921
+ default: J(() => [..._[8] || (_[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(() => [...A[9] || (A[9] = [
2933
- Le(" Retry ", -1)
2932
+ default: J(() => [..._[9] || (_[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(() => [...A[10] || (A[10] = [
2945
- Le(" Remove ", -1)
2944
+ default: J(() => [..._[10] || (_[10] = [
2945
+ Me(" Remove ", -1)
2946
2946
  ])]),
2947
2947
  _: 1
2948
2948
  }, 8, ["onClick"])) : O("", !0)
@@ -2950,11 +2950,11 @@ const en = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2950
2950
  ], !0)
2951
2951
  ]))), 128))
2952
2952
  ])) : O("", !0),
2953
- x("div", pn, K(r.value), 1),
2953
+ x("div", mn, K(r.value), 1),
2954
2954
  x("p", {
2955
- id: D(s),
2955
+ id: N(s),
2956
2956
  class: "sr-only"
2957
- }, " Drop files to upload ", 8, mn)
2957
+ }, " Drop files to upload ", 8, pn)
2958
2958
  ], 40, en));
2959
2959
  }
2960
2960
  }), yt = /* @__PURE__ */ W(Cn, [["__scopeId", "data-v-041ff337"]]);
@@ -2966,7 +2966,7 @@ const hn = (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
- }, gn = ["aria-describedby", "aria-disabled", "aria-expanded"], yn = ["aria-hidden", "data-placement"], bn = 8, kn = 6, wn = /* @__PURE__ */ z({
2969
+ }, gn = ["aria-describedby", "aria-disabled", "aria-expanded"], yn = ["aria-hidden", "data-placement"], bn = 8, kn = 6, wn = /* @__PURE__ */ Z({
2970
2970
  __name: "Tooltip",
2971
2971
  props: {
2972
2972
  content: {},
@@ -2983,7 +2983,7 @@ const hn = (e) => {
2983
2983
  }, n.delay) : a.value = !0);
2984
2984
  }, C = () => {
2985
2985
  s && (clearTimeout(s), s = null), a.value = !1;
2986
- }, p = () => {
2986
+ }, m = () => {
2987
2987
  if (!i.value || !r.value) return {};
2988
2988
  const L = i.value.getBoundingClientRect(), V = r.value.getBoundingClientRect(), $ = {
2989
2989
  position: "fixed"
@@ -3003,15 +3003,15 @@ const hn = (e) => {
3003
3003
  break;
3004
3004
  }
3005
3005
  return $;
3006
- }, m = () => {
3007
- l.value = p();
3006
+ }, p = () => {
3007
+ l.value = m();
3008
3008
  };
3009
3009
  return Q(a, async (L) => {
3010
3010
  if (!L) {
3011
3011
  c?.(), c = null, u?.disconnect(), u = null;
3012
3012
  return;
3013
3013
  }
3014
- await Ie(), m(), c = hn(m), u = new ResizeObserver(m), r.value && u.observe(r.value), i.value && u.observe(i.value);
3014
+ await $e(), p(), c = hn(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 hn = (e) => {
3030
3030
  }, [
3031
3031
  G(L.$slots, "default", {}, void 0, !0)
3032
3032
  ], 40, gn),
3033
- (v(), ae(qe, { to: "body" }, [
3034
- U(Ae, { name: "tooltip-fade" }, {
3033
+ (v(), ae(Fe, { to: "body" }, [
3034
+ U(_e, { name: "tooltip-fade" }, {
3035
3035
  default: J(() => [
3036
3036
  a.value ? (v(), b("div", {
3037
3037
  key: 0,
@@ -3043,11 +3043,11 @@ const hn = (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, yn)) : O("", !0)
3053
3053
  ]),
@@ -3063,7 +3063,7 @@ bt.install = (e) => {
3063
3063
  const Mn = {
3064
3064
  key: 0,
3065
3065
  class: "ui-tag__icon"
3066
- }, Ln = { class: "ui-tag__label" }, xn = ["aria-label"], $n = /* @__PURE__ */ z({
3066
+ }, Ln = { class: "ui-tag__label" }, xn = ["aria-label"], $n = /* @__PURE__ */ Z({
3067
3067
  __name: "Tag",
3068
3068
  props: {
3069
3069
  as: { default: "span" },
@@ -3121,7 +3121,7 @@ const Mn = {
3121
3121
  _: 3
3122
3122
  }, 40, ["class", "aria-disabled", "tabindex", "role"]));
3123
3123
  }
3124
- }), In = /* @__PURE__ */ W($n, [["__scopeId", "data-v-8a4d6d55"]]), Hn = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], Vn = /* @__PURE__ */ z({
3124
+ }), In = /* @__PURE__ */ W($n, [["__scopeId", "data-v-8a4d6d55"]]), Hn = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], Vn = /* @__PURE__ */ Z({
3125
3125
  __name: "Link",
3126
3126
  props: {
3127
3127
  target: {},
@@ -3151,32 +3151,32 @@ const Mn = {
3151
3151
  G(i.$slots, "default", {}, void 0, !0)
3152
3152
  ], 8, Hn));
3153
3153
  }
3154
- }), Xl = /* @__PURE__ */ W(Vn, [["__scopeId", "data-v-0f5d7308"]]), Bn = { class: "ui-dropdown" }, _n = /* @__PURE__ */ z({
3154
+ }), Jl = /* @__PURE__ */ W(Vn, [["__scopeId", "data-v-0f5d7308"]]), Bn = { 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 _ = `dropdown-item-${n++}`;
3162
- return o.value[_] = k, _;
3161
+ const A = `dropdown-item-${n++}`;
3162
+ return o.value[A] = k, A;
3163
3163
  }, C = (k) => {
3164
- const _ = o.value[k];
3165
- _ && _.focus({ preventScroll: !0 });
3166
- }, p = () => {
3164
+ const A = o.value[k];
3165
+ A && A.focus({ preventScroll: !0 });
3166
+ }, m = () => {
3167
3167
  const k = Object.keys(o.value)[0];
3168
3168
  k && C(k);
3169
- }, m = () => {
3170
- const k = Object.keys(o.value), _ = k[k.length - 1];
3171
- _ && C(_);
3169
+ }, p = () => {
3170
+ const k = Object.keys(o.value), A = k[k.length - 1];
3171
+ A && C(A);
3172
3172
  }, L = (k) => {
3173
- const _ = Object.keys(o.value), N = $(k), P = _[N + 1];
3174
- N >= 0 && N < _.length - 1 && P && C(P);
3173
+ const A = Object.keys(o.value), z = $(k), P = A[z + 1];
3174
+ z >= 0 && z < A.length - 1 && P && C(P);
3175
3175
  }, V = (k) => {
3176
- const _ = Object.keys(o.value), N = $(k), P = _[N - 1];
3177
- N > 0 && P && C(P);
3176
+ const A = Object.keys(o.value), z = $(k), P = A[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,
@@ -3185,36 +3185,36 @@ const Mn = {
3185
3185
  focusItem: C,
3186
3186
  focusNextItem: L,
3187
3187
  focusPrevItem: V,
3188
- focusFirstItem: p,
3189
- focusLastItem: m,
3188
+ focusFirstItem: m,
3189
+ focusLastItem: p,
3190
3190
  triggerRef: a,
3191
3191
  menuId: r,
3192
3192
  triggerId: l
3193
- }), (k, _) => (v(), b("div", Bn, [
3193
+ }), (k, A) => (v(), b("div", Bn, [
3194
3194
  G(k.$slots, "default", {}, void 0, !0)
3195
3195
  ]));
3196
3196
  }
3197
- }), An = /* @__PURE__ */ W(_n, [["__scopeId", "data-v-3a863710"]]), En = /* @__PURE__ */ z({
3197
+ }), _n = /* @__PURE__ */ W(An, [["__scopeId", "data-v-3a863710"]]), En = /* @__PURE__ */ Z({
3198
3198
  __name: "DropdownTrigger",
3199
3199
  props: {
3200
3200
  variant: { default: "button" },
3201
3201
  classes: {}
3202
3202
  },
3203
3203
  setup(e) {
3204
- const n = e, t = me("DropdownContext");
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,10 +3227,10 @@ const Mn = {
3227
3227
  _: 3
3228
3228
  }, 8, ["id", "class", "aria-controls", "aria-expanded", "onClick"]));
3229
3229
  }
3230
- }), Rn = /* @__PURE__ */ W(En, [["__scopeId", "data-v-75ab95f2"]]), Sn = ["id", "aria-labelledby"], Tn = /* @__PURE__ */ z({
3230
+ }), Rn = /* @__PURE__ */ W(En, [["__scopeId", "data-v-75ab95f2"]]), Sn = ["id", "aria-labelledby"], Tn = /* @__PURE__ */ Z({
3231
3231
  __name: "DropdownMenu",
3232
3232
  setup(e) {
3233
- const n = me("DropdownContext");
3233
+ const n = pe("DropdownContext");
3234
3234
  if (!n) throw new Error("DropdownMenu must be used within a Dropdown");
3235
3235
  const t = M(), a = M({});
3236
3236
  let o = !1, i;
@@ -3240,9 +3240,9 @@ const Mn = {
3240
3240
  }, l = (h) => h.key === "Escape" && n.close(), s = () => {
3241
3241
  const h = n.triggerRef.value, C = t.value;
3242
3242
  if (!h || !C) return;
3243
- const p = h.getBoundingClientRect(), m = C.getBoundingClientRect();
3243
+ const m = h.getBoundingClientRect(), p = C.getBoundingClientRect();
3244
3244
  let L, V;
3245
- window.innerHeight - p.bottom >= m.height ? L = p.bottom : L = p.top - m.height, window.innerWidth - p.left <= m.width ? V = p.right - m.width : V = p.left, a.value = {
3245
+ window.innerHeight - m.bottom >= p.height ? L = m.bottom : L = m.top - p.height, window.innerWidth - m.left <= p.width ? V = m.right - p.width : V = m.left, a.value = {
3246
3246
  "--dropdown-menu-position": "fixed",
3247
3247
  "--dropdown-menu-top": `${L}px`,
3248
3248
  "--dropdown-menu-left": `${V}px`
@@ -3265,16 +3265,16 @@ const Mn = {
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 Mn = {
3282
3282
  ], 44, Sn)) : O("", !0)
3283
3283
  ]));
3284
3284
  }
3285
- }), Dn = /* @__PURE__ */ W(Tn, [["__scopeId", "data-v-95ca8bce"]]), Zn = { class: "ui-button-menu" }, zn = /* @__PURE__ */ z({
3285
+ }), Dn = /* @__PURE__ */ W(Tn, [["__scopeId", "data-v-95ca8bce"]]), Zn = { class: "ui-button-menu" }, zn = /* @__PURE__ */ Z({
3286
3286
  __name: "ButtonMenu",
3287
3287
  props: {
3288
3288
  variant: {}
@@ -3290,7 +3290,7 @@ const Mn = {
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"))
@@ -3300,7 +3300,7 @@ const Mn = {
3300
3300
  ]),
3301
3301
  _: 3
3302
3302
  }, 16, ["class"]),
3303
- U(An, null, {
3303
+ U(_n, null, {
3304
3304
  default: J(() => [
3305
3305
  U(Rn, {
3306
3306
  class: "btn-menu-trigger",
@@ -3322,9 +3322,9 @@ const Mn = {
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 }), _t = (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 }), 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) => {
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 && _t(r, i)) {
3336
+ if (r && Et(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
  }, Nn = (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 && _t(l, s) && (o += l, r++), i++;
3349
+ s && Et(l, s) && (o += l, r++), i++;
3350
3350
  }
3351
3351
  return o;
3352
3352
  }, On = (e, n) => e.slice(0, n).replace(/\D/g, "").length, qn = (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
  }, Fn = (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), Pn = (e) => E(() => e.disabled === !0 ? "true" : void 0), Un = ["id"], vt = /* @__PURE__ */ z({
3367
+ }), Xe = (e) => E(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Pn = (e) => E(() => e.disabled === !0 ? "true" : void 0), Un = ["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, Un)) : O("", !0);
3380
3380
  }
3381
- }), Kn = ["id"], ft = /* @__PURE__ */ z({
3381
+ }), Kn = ["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, Kn)) : O("", !0);
3393
3393
  }
3394
- }), jn = ["id"], pt = /* @__PURE__ */ z({
3394
+ }), jn = ["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, jn)) : O("", !0);
3408
3408
  }
3409
- }), Wn = ["for"], Yn = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Xn = /* @__PURE__ */ z({
3409
+ }), Wn = ["for"], Yn = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Xn = /* @__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(""), p = M(!1), m = 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" ? p.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
- }), _ = 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
+ }), 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 ?? "")), 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(() => ({
@@ -3438,10 +3438,10 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3438
3438
  if (!P.value) return R;
3439
3439
  const q = Number(R || "0") / 100;
3440
3440
  return P.value.format(q);
3441
- }, re = () => p.value = !p.value, F = (R) => {
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 ? Nn(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
- }, A = (R) => {
3482
+ }, _ = (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: m.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, Wn),
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: A,
3509
+ onFocus: _,
3510
3510
  onBlur: g,
3511
3511
  onKeydown: I,
3512
- value: _.value,
3513
- required: D(u),
3512
+ value: A.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, Yn),
3518
3518
  U(vt, { hintId: c }, {
3519
3519
  default: J(() => [
@@ -3522,37 +3522,37 @@ 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
- U(pt, {
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,
3537
- "aria-label": p.value ? "Hide password" : "Show password"
3537
+ "aria-label": m.value ? "Hide password" : "Show password"
3538
3538
  }), {
3539
3539
  default: J(() => [
3540
3540
  U(Ce, {
3541
- name: p.value ? "eyeOff" : "eye"
3541
+ name: m.value ? "eyeOff" : "eye"
3542
3542
  }, null, 8, ["name"])
3543
3543
  ]),
3544
3544
  _: 1
3545
3545
  }, 16, ["aria-label"])) : O("", !0)
3546
3546
  ], 2));
3547
3547
  }
3548
- }), Gl = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-aedae9eb"]]), Gn = ["data-size", "data-shape", "aria-label", "aria-busy"], Jn = {
3548
+ }), Ql = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-aedae9eb"]]), Gn = ["data-size", "data-shape", "aria-label", "aria-busy"], Jn = {
3549
3549
  key: 1,
3550
3550
  class: "ui-avatar__loading"
3551
3551
  }, Qn = {
3552
3552
  key: 2,
3553
3553
  class: "ui-avatar__fallback",
3554
3554
  "aria-hidden": "true"
3555
- }, eo = /* @__PURE__ */ z({
3555
+ }, eo = /* @__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", Jn)) : (v(), b("div", Qn, [
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, Gn));
3589
3589
  }
3590
- }), Jl = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-e36c822a"]]), to = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], ao = ["innerHTML"], no = ["id", "aria-disabled", "aria-selected", "onClick"], oo = ["innerHTML"], lo = /* @__PURE__ */ z({
3590
+ }), er = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-e36c822a"]]), to = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], ao = ["innerHTML"], no = ["id", "aria-disabled", "aria-selected", "onClick"], oo = ["innerHTML"], lo = /* @__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`, p = `${c.value}-hint`, m = `${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), _ = Ye(r).value, N = E(() => _ ? `${p} ${c.value}-required-hint` : p), 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), A = Xe(r).value, z = 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 : "");
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" && (A(1), B.preventDefault()), B.key === "ArrowUp" && (A(-1), B.preventDefault()), B.key === "Home") {
3633
+ if (B.key === "ArrowDown" && (_(1), B.preventDefault()), B.key === "ArrowUp" && (_(-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
- }, A = (B) => {
3649
+ }, _ = (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",
@@ -3688,11 +3688,11 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3688
3688
  "aria-expanded": i.value,
3689
3689
  "aria-controls": h,
3690
3690
  "aria-invalid": e.invalid ? "true" : void 0,
3691
- "aria-labelledby": `${u} ${m}`,
3692
- "aria-required": D(_),
3693
- "aria-describedby": D(dt)(B.$props, B.$slots, C, N.value).value,
3691
+ "aria-labelledby": `${u} ${p}`,
3692
+ "aria-required": N(A),
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,
@@ -3704,7 +3704,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3704
3704
  class: "label"
3705
3705
  }, K(e.label), 1),
3706
3706
  x("span", {
3707
- id: m,
3707
+ id: p,
3708
3708
  class: "selected-object",
3709
3709
  "aria-live": "polite",
3710
3710
  "aria-atomic": "true",
@@ -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, to),
3718
- U(Ae, { name: "select" }, {
3718
+ U(_e, { name: "select" }, {
3719
3719
  default: J(() => [
3720
- _e(x("ul", {
3720
+ Ae(x("ul", {
3721
3721
  id: h,
3722
3722
  role: "listbox",
3723
3723
  class: "options"
@@ -3742,7 +3742,7 @@ const Ke = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3742
3742
  ]),
3743
3743
  _: 1
3744
3744
  }),
3745
- U(vt, { hintId: p }, {
3745
+ U(vt, { hintId: m }, {
3746
3746
  default: J(() => [
3747
3747
  G(B.$slots, "hint", {}, void 0, !0)
3748
3748
  ]),
@@ -3750,114 +3750,19 @@ 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(_)
3753
+ isRequired: N(A)
3754
3754
  }, null, 8, ["baseId", "isRequired"]),
3755
- U(pt, {
3755
+ U(mt, {
3756
3756
  errorId: C,
3757
3757
  invalid: e.invalid,
3758
3758
  errorMessage: e.errorMessage
3759
3759
  }, null, 8, ["invalid", "errorMessage"])
3760
3760
  ], 2));
3761
3761
  }
3762
- }), Ql = /* @__PURE__ */ W(lo, [["__scopeId", "data-v-cddb3ba9"]]), At = {
3763
- title: "",
3764
- text: "",
3765
- type: "warning",
3766
- confirmText: "OK",
3767
- cancelText: "Cancelar"
3768
- }, be = it({
3769
- ...At,
3770
- open: !1
3771
- });
3772
- let Et = [], ot = !1;
3773
- const ro = (e, n) => {
3774
- ot = !0, Object.assign(be, At, e, {
3775
- open: !0,
3776
- resolve: (t) => {
3777
- n(t), be.open = !1, ot = !1, Et.shift()?.();
3778
- }
3779
- });
3780
- };
3781
- function er(e) {
3782
- const n = typeof e == "string" ? { text: e } : e;
3783
- return new Promise((t) => {
3784
- const a = () => ro(n, t);
3785
- ot ? Et.push(a) : a();
3786
- });
3787
- }
3788
- const so = () => be.resolve?.(!0), io = () => be.resolve?.(!1), uo = {
3789
- class: "modal",
3790
- role: "dialog",
3791
- "aria-modal": "true"
3792
- }, co = ["data-type"], vo = {
3793
- key: 0,
3794
- class: "icon__check"
3795
- }, fo = {
3796
- key: 1,
3797
- class: "icon__cross"
3798
- }, po = {
3799
- key: 2,
3800
- class: "icon__warning"
3801
- }, mo = {
3802
- key: 0,
3803
- class: "title"
3804
- }, Co = {
3805
- key: 1,
3806
- class: "text"
3807
- }, ho = { class: "actions" }, go = /* @__PURE__ */ z({
3808
- __name: "ConfirmModal",
3809
- setup(e) {
3810
- const n = () => so(), t = () => io(), a = (o) => o.key === "Escape" && t();
3811
- return ve(() => window.addEventListener("keydown", a)), Se(() => window.removeEventListener("keydown", a)), (o, i) => (v(), ae(qe, { to: "body" }, [
3812
- U(Ae, { name: "fade" }, {
3813
- default: J(() => [
3814
- D(be).open ? (v(), b("div", {
3815
- key: 0,
3816
- class: "overlay",
3817
- onClick: se(t, ["self"])
3818
- }, [
3819
- U(Ae, { name: "scale" }, {
3820
- default: J(() => [
3821
- x("div", uo, [
3822
- x("div", {
3823
- class: "icon",
3824
- "data-type": D(be).type
3825
- }, [
3826
- i[0] || (i[0] = x("span", { class: "icon__circle" }, null, -1)),
3827
- D(be).type === "success" ? (v(), b("span", vo)) : O("", !0),
3828
- D(be).type === "error" ? (v(), b("span", fo)) : O("", !0),
3829
- D(be).type === "warning" ? (v(), b("span", po)) : O("", !0)
3830
- ], 8, co),
3831
- D(be).title ? (v(), b("h3", mo, K(D(be).title), 1)) : O("", !0),
3832
- D(be).text ? (v(), b("p", Co, K(D(be).text), 1)) : O("", !0),
3833
- x("div", ho, [
3834
- x("button", {
3835
- class: "btn btn--ghost",
3836
- onClick: t
3837
- }, K(D(be).cancelText), 1),
3838
- x("button", {
3839
- class: "btn btn--primary",
3840
- onClick: n
3841
- }, K(D(be).confirmText), 1)
3842
- ])
3843
- ])
3844
- ]),
3845
- _: 1
3846
- })
3847
- ])) : O("", !0)
3848
- ]),
3849
- _: 1
3850
- })
3851
- ]));
3852
- }
3853
- }), Mt = /* @__PURE__ */ W(go, [["__scopeId", "data-v-e38fd64e"]]);
3854
- Mt.install = (e) => {
3855
- e.component("ConfirmModal", Mt);
3856
- };
3857
- const yo = ["aria-label"], bo = ["onKeydown"], ko = {
3762
+ }), tr = /* @__PURE__ */ W(lo, [["__scopeId", "data-v-cddb3ba9"]]), ro = ["aria-label"], so = ["onKeydown"], io = {
3858
3763
  key: 1,
3859
3764
  class: "rs-gallery-thumbs"
3860
- }, wo = ["aria-selected"], Mo = ["onClick"], Lo = /* @__PURE__ */ z({
3765
+ }, uo = ["aria-selected"], co = ["onClick"], vo = /* @__PURE__ */ Z({
3861
3766
  __name: "GalleryCarousel",
3862
3767
  props: /* @__PURE__ */ ie({
3863
3768
  images: {},
@@ -3878,38 +3783,38 @@ const yo = ["aria-label"], bo = ["onKeydown"], ko = {
3878
3783
  }),
3879
3784
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
3880
3785
  setup(e, { emit: n }) {
3881
- 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, _) => {
3882
- k && (i.value[_] = k);
3883
- }, p = (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, A) => {
3787
+ k && (i.value[A] = k);
3788
+ }, m = (k) => {
3884
3789
  k !== u.value && (r.value = k > u.value ? "next" : "prev", t.value = k, o("change", k));
3885
- }, m = () => {
3790
+ }, p = () => {
3886
3791
  if (u.value === a.images.length - 1) {
3887
- a.loop && p(0);
3792
+ a.loop && m(0);
3888
3793
  return;
3889
3794
  }
3890
- p(u.value + 1);
3795
+ m(u.value + 1);
3891
3796
  }, L = () => {
3892
3797
  if (u.value === 0) {
3893
- a.loop && p(a.images.length - 1);
3798
+ a.loop && m(a.images.length - 1);
3894
3799
  return;
3895
3800
  }
3896
- p(u.value - 1);
3801
+ m(u.value - 1);
3897
3802
  }, V = () => {
3898
3803
  c.value && (l.value = c.value.offsetHeight);
3899
3804
  }, $ = () => {
3900
3805
  l.value = null;
3901
3806
  };
3902
3807
  return Q(u, async (k) => {
3903
- await Ie();
3904
- const _ = i.value[k];
3905
- _ && _.scrollIntoView({
3808
+ await $e();
3809
+ const A = i.value[k];
3810
+ A && A.scrollIntoView({
3906
3811
  behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
3907
3812
  inline: "center",
3908
3813
  block: "nearest"
3909
3814
  });
3910
3815
  }), Q(() => a.images, () => {
3911
3816
  i.value = [];
3912
- }), (k, _) => (v(), b("div", {
3817
+ }), (k, A) => (v(), b("div", {
3913
3818
  role: "region",
3914
3819
  class: "rs-gallery",
3915
3820
  "aria-roledescription": "carousel",
@@ -3922,13 +3827,13 @@ const yo = ["aria-label"], bo = ["onKeydown"], ko = {
3922
3827
  ref: c,
3923
3828
  tabindex: "0",
3924
3829
  class: "rs-gallery-review",
3925
- style: He(l.value ? { height: `${l.value}px` } : void 0),
3830
+ style: Ie(l.value ? { height: `${l.value}px` } : void 0),
3926
3831
  onKeydown: [
3927
3832
  ye(se(L, ["prevent"]), ["left"]),
3928
- ye(se(m, ["prevent"]), ["right"])
3833
+ ye(se(p, ["prevent"]), ["right"])
3929
3834
  ]
3930
3835
  }, [
3931
- U(Ae, {
3836
+ U(_e, {
3932
3837
  name: `rs-gallery-slide-${r.value}`,
3933
3838
  mode: "out-in",
3934
3839
  onBeforeLeave: V,
@@ -3948,15 +3853,15 @@ const yo = ["aria-label"], bo = ["onKeydown"], ko = {
3948
3853
  image: h.value,
3949
3854
  index: u.value
3950
3855
  }, void 0, !0)
3951
- ], 44, bo),
3856
+ ], 44, so),
3952
3857
  h.value?.title ? (v(), b("p", {
3953
3858
  key: 0,
3954
3859
  id: s,
3955
3860
  class: "rs-gallery-caption"
3956
3861
  }, K(h.value.title), 1)) : O("", !0),
3957
- e.showThumbnails ? (v(), b("ul", ko, [
3958
- (v(!0), b(de, null, he(e.images, (N, P) => (v(), b("li", {
3959
- key: N.src,
3862
+ e.showThumbnails ? (v(), b("ul", io, [
3863
+ (v(!0), b(de, null, he(e.images, (z, P) => (v(), b("li", {
3864
+ key: z.src,
3960
3865
  ref_for: !0,
3961
3866
  ref: (oe) => C(oe, P),
3962
3867
  "aria-selected": u.value === P
@@ -3964,19 +3869,19 @@ const yo = ["aria-label"], bo = ["onKeydown"], ko = {
3964
3869
  x("button", {
3965
3870
  type: "button",
3966
3871
  class: fe(["rs-gallery-thumb", { active: u.value === P }]),
3967
- onClick: (oe) => p(P)
3872
+ onClick: (oe) => m(P)
3968
3873
  }, [
3969
3874
  U(ze, {
3970
- src: N.src,
3875
+ src: z.src,
3971
3876
  alt: `Select image ${P + 1}`,
3972
3877
  transform: e.transformThumbnails
3973
3878
  }, null, 8, ["src", "alt", "transform"])
3974
- ], 10, Mo)
3975
- ], 8, wo))), 128))
3879
+ ], 10, co)
3880
+ ], 8, uo))), 128))
3976
3881
  ])) : O("", !0)
3977
- ], 8, yo));
3882
+ ], 8, ro));
3978
3883
  }
3979
- }), Rt = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-dcfacff6"]]), xo = ["aria-label"], $o = ["onClick"], Io = /* @__PURE__ */ z({
3884
+ }), Rt = /* @__PURE__ */ W(vo, [["__scopeId", "data-v-dcfacff6"]]), fo = ["aria-label"], mo = ["onClick"], po = /* @__PURE__ */ Z({
3980
3885
  __name: "GalleryGrid",
3981
3886
  props: {
3982
3887
  images: {},
@@ -3993,7 +3898,7 @@ const yo = ["aria-label"], bo = ["onKeydown"], ko = {
3993
3898
  setup(e) {
3994
3899
  return (n, t) => (v(), b("div", {
3995
3900
  class: "rs-gallery-grid",
3996
- style: He({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
3901
+ style: Ie({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
3997
3902
  role: "list",
3998
3903
  "aria-label": e.ariaLabel || "Image grid gallery"
3999
3904
  }, [
@@ -4008,12 +3913,12 @@ const yo = ["aria-label"], bo = ["onKeydown"], ko = {
4008
3913
  alt: a.alt || "",
4009
3914
  transform: e.transform
4010
3915
  }, null, 8, ["src", "alt", "transform"])
4011
- ], 8, $o))), 128))
4012
- ], 12, xo));
3916
+ ], 8, mo))), 128))
3917
+ ], 12, fo));
4013
3918
  }
4014
- }), St = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-17067a4b"]]), Xe = /* @__PURE__ */ Symbol("ModalContext");
4015
- let at = 0, Pe = 0, Ue = null;
4016
- const lt = z({
3919
+ }), St = /* @__PURE__ */ W(po, [["__scopeId", "data-v-17067a4b"]]), Ge = /* @__PURE__ */ Symbol("ModalContext");
3920
+ let nt = 0, Ue = 0, Ke = null;
3921
+ const lt = Z({
4017
3922
  name: "Modal",
4018
3923
  props: {
4019
3924
  motion: {
@@ -4034,7 +3939,7 @@ const lt = z({
4034
3939
  n("update:open", h), n(h ? "opened" : "closed");
4035
3940
  });
4036
3941
  const s = () => o.value = !1, c = E(() => e.motion), u = E(() => e.size);
4037
- return Ve(Xe, {
3942
+ return He(Ge, {
4038
3943
  isOpen: o,
4039
3944
  motion: c,
4040
3945
  size: u,
@@ -4045,15 +3950,15 @@ const lt = z({
4045
3950
  hasTitle: a
4046
3951
  }), () => t.default?.();
4047
3952
  }
4048
- }), Tt = z({
3953
+ }), Tt = Z({
4049
3954
  name: "ModalContent",
4050
3955
  setup(e, { slots: n }) {
4051
- const t = me(Xe);
3956
+ const t = pe(Ge);
4052
3957
  if (!t) throw new Error("ModalContent components must be used inside <Modal>");
4053
3958
  const a = M(null);
4054
3959
  let o = 0;
4055
3960
  const i = (h) => {
4056
- h.key === "Escape" && o === at && t.close();
3961
+ h.key === "Escape" && o === nt && t.close();
4057
3962
  };
4058
3963
  let r = !1, l = null;
4059
3964
  const s = (h) => {
@@ -4066,35 +3971,35 @@ const lt = z({
4066
3971
  h.setAttribute("tabindex", "-1"), h.focus();
4067
3972
  return;
4068
3973
  }
4069
- const p = C[0], m = C[C.length - 1], L = (V) => {
4070
- V.key === "Tab" && (V.shiftKey && document.activeElement === p ? (V.preventDefault(), m?.focus()) : !V.shiftKey && document.activeElement === m && (V.preventDefault(), p?.focus()));
3974
+ const m = C[0], p = C[C.length - 1], L = (V) => {
3975
+ V.key === "Tab" && (V.shiftKey && document.activeElement === m ? (V.preventDefault(), p?.focus()) : !V.shiftKey && document.activeElement === p && (V.preventDefault(), m?.focus()));
4071
3976
  };
4072
- h.addEventListener("keydown", L), p?.focus(), l = () => {
3977
+ h.addEventListener("keydown", L), m?.focus(), l = () => {
4073
3978
  h.removeEventListener("keydown", L), l = null;
4074
3979
  };
4075
3980
  }, c = () => {
4076
- ++Pe === 1 && (document.body.style.overflow = "hidden");
3981
+ ++Ue === 1 && (document.body.style.overflow = "hidden");
4077
3982
  }, u = () => {
4078
- --Pe === 0 && (document.body.style.overflow = "");
3983
+ --Ue === 0 && (document.body.style.overflow = "");
4079
3984
  };
4080
3985
  return Be(() => {
4081
- 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 = "");
4082
3987
  }), () => j(
4083
- qe,
3988
+ Fe,
4084
3989
  { to: "body" },
4085
3990
  j(
4086
- Ae,
3991
+ _e,
4087
3992
  {
4088
3993
  name: `modal-${t.motion.value}`,
4089
3994
  appear: !0,
4090
3995
  onEnter: () => {
4091
- o = ++at, Ue = document.activeElement, c();
3996
+ o = ++nt, Ke = document.activeElement, c();
4092
3997
  },
4093
3998
  onAfterEnter: () => {
4094
3999
  a.value && (s(a.value), document.addEventListener("keydown", i));
4095
4000
  },
4096
4001
  onAfterLeave: () => {
4097
- 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;
4098
4003
  }
4099
4004
  },
4100
4005
  {
@@ -4128,32 +4033,32 @@ const lt = z({
4128
4033
  )
4129
4034
  );
4130
4035
  }
4131
- }), Dt = z({
4036
+ }), Dt = Z({
4132
4037
  name: "ModalTitle",
4133
4038
  setup(e, { slots: n }) {
4134
- const t = me(Xe);
4039
+ const t = pe(Ge);
4135
4040
  if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
4136
4041
  return t.hasTitle.value = !0, () => j("h2", { id: t.labelId }, n.default?.());
4137
4042
  }
4138
- }), Zt = z({
4043
+ }), Zt = Z({
4139
4044
  name: "ModalHeader",
4140
4045
  setup(e, { slots: n }) {
4141
4046
  return () => j("div", { class: "modal-header" }, n.default?.());
4142
4047
  }
4143
- }), zt = z({
4048
+ }), zt = Z({
4144
4049
  name: "ModalBody",
4145
4050
  setup(e, { slots: n }) {
4146
4051
  return () => j("div", { class: "modal-body" }, n.default?.());
4147
4052
  }
4148
- }), tr = z({
4053
+ }), ar = Z({
4149
4054
  name: "ModalFooter",
4150
4055
  setup(e, { slots: n }) {
4151
4056
  return () => j("div", { class: "modal-footer" }, n.default?.());
4152
4057
  }
4153
- }), Nt = z({
4058
+ }), Nt = Z({
4154
4059
  name: "ModalClose",
4155
4060
  setup() {
4156
- const e = me(Xe);
4061
+ const e = pe(Ge);
4157
4062
  if (!e) throw new Error("ModalClose components must be used inside <Modal>");
4158
4063
  return () => j(
4159
4064
  "button",
@@ -4172,7 +4077,7 @@ Object.assign(lt, {
4172
4077
  e.component("Modal", lt), e.component("ModalBody", zt), e.component("ModalTitle", Dt), e.component("ModalClose", Nt), e.component("ModalHeader", Zt), e.component("ModalContent", Tt);
4173
4078
  }
4174
4079
  });
4175
- const Ho = /* @__PURE__ */ z({
4080
+ const Co = /* @__PURE__ */ Z({
4176
4081
  __name: "GalleryGridWithLightbox",
4177
4082
  props: {
4178
4083
  images: {},
@@ -4197,28 +4102,28 @@ const Ho = /* @__PURE__ */ z({
4197
4102
  "aria-label": e.ariaLabel,
4198
4103
  transform: e.transform
4199
4104
  }, null, 8, ["images", "aria-label", "transform"]),
4200
- U(D(lt), {
4105
+ U(N(lt), {
4201
4106
  open: t.value,
4202
4107
  "onUpdate:open": r[2] || (r[2] = (l) => t.value = l),
4203
4108
  motion: "fade",
4204
4109
  size: "xl"
4205
4110
  }, {
4206
4111
  default: J(() => [
4207
- U(D(Tt), null, {
4112
+ U(N(Tt), null, {
4208
4113
  default: J(() => [
4209
- U(D(Zt), null, {
4114
+ U(N(Zt), null, {
4210
4115
  default: J(() => [
4211
- U(D(Dt), null, {
4116
+ U(N(Dt), null, {
4212
4117
  default: J(() => [...r[3] || (r[3] = [
4213
- Le("Image Gallery", -1)
4118
+ Me("Image Gallery", -1)
4214
4119
  ])]),
4215
4120
  _: 1
4216
4121
  }),
4217
- U(D(Nt))
4122
+ U(N(Nt))
4218
4123
  ]),
4219
4124
  _: 1
4220
4125
  }),
4221
- U(D(zt), null, {
4126
+ U(N(zt), null, {
4222
4127
  default: J(() => [
4223
4128
  U(Rt, {
4224
4129
  modelValue: n.value,
@@ -4240,7 +4145,7 @@ const Ho = /* @__PURE__ */ z({
4240
4145
  }, 8, ["open"])
4241
4146
  ], 64));
4242
4147
  }
4243
- }), Vo = { class: "rs-gallery-masonry" }, Bo = /* @__PURE__ */ z({
4148
+ }), ho = { class: "rs-gallery-masonry" }, go = /* @__PURE__ */ Z({
4244
4149
  __name: "GalleryMasonry",
4245
4150
  props: {
4246
4151
  images: {},
@@ -4254,7 +4159,7 @@ const Ho = /* @__PURE__ */ z({
4254
4159
  gap: { default: "1rem" }
4255
4160
  },
4256
4161
  setup(e) {
4257
- return (n, t) => (v(), b("div", Vo, [
4162
+ return (n, t) => (v(), b("div", ho, [
4258
4163
  (v(!0), b(de, null, he(e.images, (a) => (v(), b("button", {
4259
4164
  key: a.src,
4260
4165
  class: "masonry-item"
@@ -4267,11 +4172,11 @@ const Ho = /* @__PURE__ */ z({
4267
4172
  ]))), 128))
4268
4173
  ]));
4269
4174
  }
4270
- }), _o = /* @__PURE__ */ W(Bo, [["__scopeId", "data-v-afb75845"]]), Ao = {
4175
+ }), yo = /* @__PURE__ */ W(go, [["__scopeId", "data-v-afb75845"]]), bo = {
4271
4176
  class: "rs-image-gallery",
4272
4177
  role: "region",
4273
4178
  "aria-label": "Image gallery"
4274
- }, Eo = /* @__PURE__ */ z({
4179
+ }, ko = /* @__PURE__ */ Z({
4275
4180
  __name: "ImageGallery",
4276
4181
  props: /* @__PURE__ */ ie({
4277
4182
  images: {},
@@ -4292,13 +4197,13 @@ const Ho = /* @__PURE__ */ z({
4292
4197
  }),
4293
4198
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
4294
4199
  setup(e, { emit: n }) {
4295
- const t = we(e, "modelValue"), a = n, o = E({
4200
+ const t = ke(e, "modelValue"), a = n, o = E({
4296
4201
  get: () => t.value ?? 0,
4297
4202
  set: (r) => {
4298
4203
  t.value = r, a("change", r);
4299
4204
  }
4300
4205
  }), i = (r) => o.value = r;
4301
- return (r, l) => (v(), b("section", Ao, [
4206
+ return (r, l) => (v(), b("section", bo, [
4302
4207
  e.layout === "carousel" ? (v(), ae(Rt, {
4303
4208
  key: 0,
4304
4209
  modelValue: o.value,
@@ -4319,14 +4224,14 @@ const Ho = /* @__PURE__ */ z({
4319
4224
  gap: e.gap,
4320
4225
  transform: e.transform,
4321
4226
  "aria-label": e.ariaLabel
4322
- }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), ae(Ho, {
4227
+ }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), ae(Co, {
4323
4228
  key: 2,
4324
4229
  modelValue: o.value,
4325
4230
  "onUpdate:modelValue": l[2] || (l[2] = (s) => o.value = s),
4326
4231
  images: e.images,
4327
4232
  transform: e.transform,
4328
4233
  "aria-label": e.ariaLabel
4329
- }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), ae(_o, {
4234
+ }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), ae(yo, {
4330
4235
  key: 3,
4331
4236
  modelValue: o.value,
4332
4237
  "onUpdate:modelValue": l[3] || (l[3] = (s) => o.value = s),
@@ -4336,16 +4241,16 @@ const Ho = /* @__PURE__ */ z({
4336
4241
  }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : O("", !0)
4337
4242
  ]));
4338
4243
  }
4339
- }), Lt = /* @__PURE__ */ W(Eo, [["__scopeId", "data-v-d6be1b96"]]);
4340
- Lt.install = (e) => e.component("ImageGallery", Lt);
4341
- const Ro = ["aria-busy"], So = {
4244
+ }), Mt = /* @__PURE__ */ W(ko, [["__scopeId", "data-v-d6be1b96"]]);
4245
+ Mt.install = (e) => e.component("ImageGallery", Mt);
4246
+ const wo = ["aria-busy"], Mo = {
4342
4247
  key: 0,
4343
4248
  class: "message",
4344
4249
  "aria-hidden": "true"
4345
- }, To = {
4250
+ }, Lo = {
4346
4251
  class: "message sr-only",
4347
4252
  "aria-atomic": "true"
4348
- }, Do = /* @__PURE__ */ z({
4253
+ }, xo = /* @__PURE__ */ Z({
4349
4254
  __name: "Spinner",
4350
4255
  props: {
4351
4256
  message: {}
@@ -4373,21 +4278,21 @@ const Ro = ["aria-busy"], So = {
4373
4278
  class: "spinner",
4374
4279
  "aria-hidden": "true"
4375
4280
  }, null, -1)),
4376
- e.message ? (v(), b("span", So, K(o.value), 1)) : O("", !0),
4377
- x("span", To, K(e.message || "Loading"), 1)
4378
- ], 8, Ro));
4281
+ e.message ? (v(), b("span", Mo, K(o.value), 1)) : O("", !0),
4282
+ x("span", Lo, K(e.message || "Loading"), 1)
4283
+ ], 8, wo));
4379
4284
  }
4380
- }), Ot = /* @__PURE__ */ W(Do, [["__scopeId", "data-v-e61a1cf5"]]), Zo = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], zo = {
4285
+ }), Ot = /* @__PURE__ */ W(xo, [["__scopeId", "data-v-e61a1cf5"]]), $o = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], Io = {
4381
4286
  class: "checkbox-control",
4382
4287
  "aria-hidden": "true"
4383
- }, No = {
4288
+ }, Ho = {
4384
4289
  key: 0,
4385
4290
  "view-box": "0 0 16 16"
4386
- }, Oo = {
4291
+ }, Vo = {
4387
4292
  key: 1,
4388
4293
  class: "indeterminate",
4389
4294
  "view-box": "0 0 16 16"
4390
- }, qo = { class: "checkbox-label" }, Fo = /* @__PURE__ */ z({
4295
+ }, Bo = { class: "checkbox-label" }, Ao = /* @__PURE__ */ Z({
4391
4296
  __name: "Checkbox",
4392
4297
  props: /* @__PURE__ */ ie({
4393
4298
  id: {},
@@ -4401,7 +4306,7 @@ const Ro = ["aria-busy"], So = {
4401
4306
  }),
4402
4307
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
4403
4308
  setup(e, { emit: n }) {
4404
- const t = n, a = we(e, "modelValue"), o = e, i = ge(), r = E(() => o.id ?? `checkbox-${i}`), l = M(null), s = Pn(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 = Pn(o).value, c = E(() => o.required ? !0 : void 0), u = E(() => o.triState && a.value === void 0 ? "mixed" : void 0);
4405
4310
  Q(
4406
4311
  () => a.value,
4407
4312
  (C) => {
@@ -4412,14 +4317,14 @@ const Ro = ["aria-busy"], So = {
4412
4317
  const h = (C) => {
4413
4318
  if (!o.disabled) {
4414
4319
  if (!o.triState) {
4415
- const p = C.target.checked;
4416
- a.value = p, t("change", a.value);
4320
+ const m = C.target.checked;
4321
+ a.value = m, t("change", a.value);
4417
4322
  return;
4418
4323
  }
4419
4324
  a.value === !1 ? a.value = !0 : a.value === !0 ? a.value = void 0 : a.value = !1, t("change", a.value);
4420
4325
  }
4421
4326
  };
4422
- return (C, p) => (v(), b("label", {
4327
+ return (C, m) => (v(), b("label", {
4423
4328
  class: fe(["checkbox-root", { required: c.value, error: e.invalid }])
4424
4329
  }, [
4425
4330
  x("input", {
@@ -4430,32 +4335,32 @@ const Ro = ["aria-busy"], So = {
4430
4335
  checked: a.value === !0,
4431
4336
  disabled: e.disabled,
4432
4337
  "aria-invalid": e.invalid ? "true" : void 0,
4433
- "aria-disabled": D(s),
4338
+ "aria-disabled": N(s),
4434
4339
  "aria-checked": u.value,
4435
- onClick: p[0] || (p[0] = (m) => e.triState ? h(m) : void 0),
4436
- onChange: p[1] || (p[1] = (m) => e.triState ? void 0 : h(m)),
4340
+ onClick: m[0] || (m[0] = (p) => e.triState ? h(p) : void 0),
4341
+ onChange: m[1] || (m[1] = (p) => e.triState ? void 0 : h(p)),
4437
4342
  ref_key: "inputRef",
4438
4343
  ref: l
4439
- }, null, 40, Zo),
4440
- x("span", zo, [
4441
- a.value === !0 ? (v(), b("svg", No, [...p[2] || (p[2] = [
4344
+ }, null, 40, $o),
4345
+ x("span", Io, [
4346
+ a.value === !0 ? (v(), b("svg", Ho, [...m[2] || (m[2] = [
4442
4347
  x("path", {
4443
4348
  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",
4444
4349
  fill: "currentColor"
4445
4350
  }, null, -1)
4446
- ])])) : a.value === void 0 ? (v(), b("svg", Oo, [...p[3] || (p[3] = [
4351
+ ])])) : a.value === void 0 ? (v(), b("svg", Vo, [...m[3] || (m[3] = [
4447
4352
  x("path", {
4448
4353
  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",
4449
4354
  fill: "currentColor"
4450
4355
  }, null, -1)
4451
4356
  ])])) : O("", !0)
4452
4357
  ]),
4453
- x("span", qo, [
4358
+ x("span", Bo, [
4454
4359
  G(C.$slots, "default", {}, void 0, !0)
4455
4360
  ])
4456
4361
  ], 2));
4457
4362
  }
4458
- }), ar = /* @__PURE__ */ W(Fo, [["__scopeId", "data-v-3a0c4f73"]]), Po = ["for"], Uo = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Ko = /* @__PURE__ */ z({
4363
+ }), nr = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3a0c4f73"]]), _o = ["for"], Eo = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Ro = /* @__PURE__ */ Z({
4459
4364
  __name: "Textarea",
4460
4365
  props: /* @__PURE__ */ ie({
4461
4366
  id: {},
@@ -4471,50 +4376,50 @@ const Ro = ["aria-busy"], So = {
4471
4376
  }),
4472
4377
  emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
4473
4378
  setup(e, { emit: n }) {
4474
- const t = we(e, "modelValue"), a = st(), o = ut(), 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 !== ""), p = E(() => h ? `${u} ${l}-required-hint` : u), m = dt(r, o, c, p.value).value, L = (_) => {
4475
- const N = _.target;
4476
- t.value = r.type === "number" ? Number(N.value) : N.value;
4477
- }, V = (_) => {
4478
- s.value = !0, i("focus", _);
4479
- }, $ = (_) => {
4480
- s.value = !1, i("blur", _);
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 = (A) => {
4380
+ const z = A.target;
4381
+ t.value = r.type === "number" ? Number(z.value) : z.value;
4382
+ }, V = (A) => {
4383
+ s.value = !0, i("focus", A);
4384
+ }, $ = (A) => {
4385
+ s.value = !1, i("blur", A);
4481
4386
  }, k = E(() => r.invalid === !0 && r.errorMessage ? c : void 0);
4482
- return (_, N) => (v(), b("div", {
4483
- class: fe(["textarea-box", { required: D(h), error: e.invalid, filled: C.value, focused: s.value }])
4387
+ return (A, z) => (v(), b("div", {
4388
+ class: fe(["textarea-box", { required: N(h), error: e.invalid, filled: C.value, focused: s.value }])
4484
4389
  }, [
4485
4390
  x("label", {
4486
4391
  for: e.id,
4487
4392
  class: "label"
4488
- }, K(e.label), 9, Po),
4489
- x("textarea", ke({ id: e.id }, _.$attrs, {
4393
+ }, K(e.label), 9, _o),
4394
+ x("textarea", be({ id: e.id }, A.$attrs, {
4490
4395
  class: "custom-textarea",
4491
- onFocus: N[0] || (N[0] = (P) => V(P)),
4492
- onBlur: N[1] || (N[1] = (P) => $(P)),
4396
+ onFocus: z[0] || (z[0] = (P) => V(P)),
4397
+ onBlur: z[1] || (z[1] = (P) => $(P)),
4493
4398
  onInput: L,
4494
4399
  value: t.value,
4495
- required: D(h),
4400
+ required: N(h),
4496
4401
  "aria-invalid": e.invalid ? "true" : void 0,
4497
4402
  "aria-errormessage": k.value,
4498
- "aria-describedby": D(m)
4499
- }), " ", 16, Uo),
4403
+ "aria-describedby": N(p)
4404
+ }), " ", 16, Eo),
4500
4405
  U(vt, { hintId: u }, {
4501
4406
  default: J(() => [
4502
- G(_.$slots, "hint", {}, void 0, !0)
4407
+ G(A.$slots, "hint", {}, void 0, !0)
4503
4408
  ]),
4504
4409
  _: 3
4505
4410
  }),
4506
4411
  U(ft, {
4507
- baseId: D(l),
4508
- isRequired: D(h)
4412
+ baseId: N(l),
4413
+ isRequired: N(h)
4509
4414
  }, null, 8, ["baseId", "isRequired"]),
4510
- U(pt, {
4415
+ U(mt, {
4511
4416
  errorId: c,
4512
4417
  invalid: e.invalid,
4513
4418
  errorMessage: e.errorMessage
4514
4419
  }, null, 8, ["invalid", "errorMessage"])
4515
4420
  ], 2));
4516
4421
  }
4517
- }), nr = /* @__PURE__ */ W(Ko, [["__scopeId", "data-v-d54f9689"]]), jo = { key: 0 }, Wo = { key: 1 }, Yo = /* @__PURE__ */ z({
4422
+ }), or = /* @__PURE__ */ W(Ro, [["__scopeId", "data-v-d54f9689"]]), So = { key: 0 }, To = { key: 1 }, Do = /* @__PURE__ */ Z({
4518
4423
  __name: "Highlight",
4519
4424
  props: {
4520
4425
  text: {},
@@ -4528,10 +4433,10 @@ const Ro = ["aria-busy"], So = {
4528
4433
  return t.replace(i, (s, c) => (c > l && r.push({ text: t.slice(l, c), match: !1 }), r.push({ text: s, match: !0 }), l = c + s.length, s)), l < t.length && r.push({ text: t.slice(l), match: !1 }), r;
4529
4434
  };
4530
4435
  return (t, a) => (v(!0), b(de, null, he(n(e.text, e.query), (o, i) => (v(), b(de, { key: i }, [
4531
- o.match ? (v(), b("mark", jo, K(o.text), 1)) : (v(), b("span", Wo, K(o.text), 1))
4436
+ o.match ? (v(), b("mark", So, K(o.text), 1)) : (v(), b("span", To, K(o.text), 1))
4532
4437
  ], 64))), 128));
4533
4438
  }
4534
- }), Xo = /* @__PURE__ */ W(Yo, [["__scopeId", "data-v-edfa70b3"]]), Go = [
4439
+ }), Zo = /* @__PURE__ */ W(Do, [["__scopeId", "data-v-edfa70b3"]]), zo = [
4535
4440
  {
4536
4441
  key: "length",
4537
4442
  label: "At least 8 characters",
@@ -4557,19 +4462,19 @@ const Ro = ["aria-busy"], So = {
4557
4462
  label: "The passwords must match.",
4558
4463
  validator: (e, n) => e === n && e.length > 0
4559
4464
  }
4560
- ], Jo = { class: "password-validation" }, Qo = { class: "password-rules" }, e2 = ["data-rule"], t2 = { class: "strength-meter" }, a2 = { class: "strength-top" }, n2 = /* @__PURE__ */ z({
4465
+ ], No = { class: "password-validation" }, Oo = { class: "password-rules" }, qo = ["data-rule"], Fo = { class: "strength-meter" }, Po = { class: "strength-top" }, Uo = /* @__PURE__ */ Z({
4561
4466
  __name: "PasswordValidator",
4562
4467
  props: {
4563
4468
  id: {},
4564
4469
  password: {},
4565
4470
  passwordConfirmation: {},
4566
- rules: { default: () => Go },
4471
+ rules: { default: () => zo },
4567
4472
  labels: { default: () => ["Very weak", "Weak", "Average", "Good", "Excellent"] },
4568
4473
  strengthFillColor: { default: "linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e, #2563eb)" }
4569
4474
  },
4570
4475
  emits: ["valid"],
4571
4476
  setup(e, { emit: n }) {
4572
- const t = e, a = n, o = M([]), i = M(null), r = M(null), l = (p, m) => p && (o.value[m] = p);
4477
+ const t = e, a = n, o = M([]), i = M(null), r = M(null), l = (m, p) => m && (o.value[p] = m);
4573
4478
  Q(
4574
4479
  () => t.password,
4575
4480
  () => {
@@ -4584,28 +4489,28 @@ const Ro = ["aria-busy"], So = {
4584
4489
  const s = {
4585
4490
  "--strength-fill-color": t.strengthFillColor
4586
4491
  }, c = () => {
4587
- const p = u(), m = Object.values(h()).every(Boolean);
4588
- return p && m;
4492
+ const m = u(), p = Object.values(h()).every(Boolean);
4493
+ return m && p;
4589
4494
  }, u = () => {
4590
- const p = h(), m = Object.values(p).filter(Boolean).length, L = t.password.length >= 12 ? 1 : 0, V = Math.min(100, (m + L) * 20), $ = Math.min(t.labels.length - 1, Math.floor(V / 25));
4591
- return i.value && (i.value.style.width = `${V}%`), r.value && (r.value.textContent = t.labels[$] ?? "Very weak"), m === t.rules.length;
4495
+ const m = h(), p = Object.values(m).filter(Boolean).length, L = t.password.length >= 12 ? 1 : 0, V = Math.min(100, (p + L) * 20), $ = Math.min(t.labels.length - 1, Math.floor(V / 25));
4496
+ return i.value && (i.value.style.width = `${V}%`), r.value && (r.value.textContent = t.labels[$] ?? "Very weak"), p === t.rules.length;
4592
4497
  }, h = () => {
4593
- const p = C();
4594
- return o.value.forEach((m) => {
4595
- const L = m.dataset.rule, V = !!p[L];
4596
- m.classList.toggle("passed", V);
4597
- }), p;
4498
+ const m = C();
4499
+ return o.value.forEach((p) => {
4500
+ const L = p.dataset.rule, V = !!m[L];
4501
+ p.classList.toggle("passed", V);
4502
+ }), m;
4598
4503
  }, C = () => {
4599
- const p = {};
4600
- return t.rules.forEach((m) => {
4601
- p[m.key] = m.validator(
4504
+ const m = {};
4505
+ return t.rules.forEach((p) => {
4506
+ m[p.key] = p.validator(
4602
4507
  t.password,
4603
4508
  t.passwordConfirmation
4604
4509
  );
4605
- }), p;
4510
+ }), m;
4606
4511
  };
4607
- return (p, m) => (v(), b("section", Jo, [
4608
- x("ul", Qo, [
4512
+ return (m, p) => (v(), b("section", No, [
4513
+ x("ul", Oo, [
4609
4514
  (v(!0), b(de, null, he(t.rules, (L, V) => (v(), b("li", {
4610
4515
  key: L.key,
4611
4516
  class: "password-rule",
@@ -4613,13 +4518,13 @@ const Ro = ["aria-busy"], So = {
4613
4518
  ref_for: !0,
4614
4519
  ref: ($) => l($, V)
4615
4520
  }, [
4616
- m[0] || (m[0] = x("span", { class: "rule-icon" }, "•", -1)),
4617
- Le(" " + K(L.label), 1)
4618
- ], 8, e2))), 128))
4521
+ p[0] || (p[0] = x("span", { class: "rule-icon" }, "•", -1)),
4522
+ Me(" " + K(L.label), 1)
4523
+ ], 8, qo))), 128))
4619
4524
  ]),
4620
- x("div", t2, [
4621
- x("div", a2, [
4622
- m[1] || (m[1] = x("span", null, "Força da senha", -1)),
4525
+ x("div", Fo, [
4526
+ x("div", Po, [
4527
+ p[1] || (p[1] = x("span", null, "Força da senha", -1)),
4623
4528
  x("span", {
4624
4529
  ref_key: "strengthLabelRef",
4625
4530
  ref: r
@@ -4638,61 +4543,61 @@ const Ro = ["aria-busy"], So = {
4638
4543
  ])
4639
4544
  ]));
4640
4545
  }
4641
- }), xt = /* @__PURE__ */ W(n2, [["__scopeId", "data-v-e7569cc0"]]);
4642
- xt.install = (e) => {
4643
- e.component("PasswordValidator", xt);
4546
+ }), Lt = /* @__PURE__ */ W(Uo, [["__scopeId", "data-v-e7569cc0"]]);
4547
+ Lt.install = (e) => {
4548
+ e.component("PasswordValidator", Lt);
4644
4549
  };
4645
- const o2 = {
4550
+ const Ko = {
4646
4551
  class: "ui-breadcrumb",
4647
4552
  "aria-label": "Breadcrumb"
4648
- }, l2 = { class: "ui-breadcrumb__list" }, r2 = {
4553
+ }, jo = { class: "ui-breadcrumb__list" }, Wo = {
4649
4554
  key: 0,
4650
4555
  class: "ui-breadcrumb__separator",
4651
4556
  "aria-hidden": "true"
4652
- }, s2 = /* @__PURE__ */ z({
4557
+ }, Yo = /* @__PURE__ */ Z({
4653
4558
  __name: "Breadcrumb",
4654
4559
  props: {
4655
4560
  items: {},
4656
4561
  separator: { default: "/" }
4657
4562
  },
4658
4563
  setup(e) {
4659
- const n = e, t = me(Yt), a = (l) => l === n.items.length - 1, o = (l, s) => i(l, s), i = (l, s) => a(s) || l.disabled ? "span" : l.to && t ? Ft("RouterLink") : l.href ? "a" : "span", r = (l, s) => a(s) || l.disabled ? { "data-disabled": l.disabled || void 0 } : l.to ? { to: l.to } : l.href ? {
4564
+ const n = e, t = pe(Yt), a = (l) => l === n.items.length - 1, o = (l, s) => i(l, s), i = (l, s) => a(s) || l.disabled ? "span" : l.to && t ? Pt("RouterLink") : l.href ? "a" : "span", r = (l, s) => a(s) || l.disabled ? { "data-disabled": l.disabled || void 0 } : l.to ? { to: l.to } : l.href ? {
4660
4565
  href: l.href,
4661
4566
  target: l.external ? "_blank" : void 0,
4662
4567
  rel: l.external ? "noopener noreferrer" : void 0,
4663
4568
  "aria-label": l.external ? `${l.label} (opens in a new tab)` : void 0
4664
4569
  } : {};
4665
- return (l, s) => (v(), b("nav", o2, [
4666
- x("ol", l2, [
4570
+ return (l, s) => (v(), b("nav", Ko, [
4571
+ x("ol", jo, [
4667
4572
  (v(!0), b(de, null, he(e.items, (c, u) => (v(), b("li", {
4668
4573
  key: c.to ?? c.href ?? `${c.label}-${u}`,
4669
4574
  class: "ui-breadcrumb__item"
4670
4575
  }, [
4671
- (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), {
4672
4577
  "aria-posinset": u + 1,
4673
4578
  "aria-setsize": e.items.length,
4674
4579
  "aria-current": a(u) ? "page" : void 0,
4675
4580
  tabindex: a(u) || o(c, u) === "span" ? -1 : void 0
4676
4581
  }), {
4677
4582
  default: J(() => [
4678
- Le(K(c.label), 1)
4583
+ Me(K(c.label), 1)
4679
4584
  ]),
4680
4585
  _: 2
4681
4586
  }, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
4682
- a(u) ? O("", !0) : (v(), b("span", r2, [
4587
+ a(u) ? O("", !0) : (v(), b("span", Wo, [
4683
4588
  G(l.$slots, "separator", {}, () => [
4684
- Le(K(e.separator), 1)
4589
+ Me(K(e.separator), 1)
4685
4590
  ], !0)
4686
4591
  ]))
4687
4592
  ]))), 128))
4688
4593
  ])
4689
4594
  ]));
4690
4595
  }
4691
- }), or = /* @__PURE__ */ W(s2, [["__scopeId", "data-v-baed1592"]]), i2 = ["aria-invalid", "aria-required", "disabled"], u2 = { class: "sr-only" }, c2 = ["name", "value", "disabled", "required"], d2 = {
4596
+ }), lr = /* @__PURE__ */ W(Yo, [["__scopeId", "data-v-baed1592"]]), Xo = ["aria-invalid", "aria-required", "disabled"], Go = { class: "sr-only" }, Jo = ["name", "value", "disabled", "required"], Qo = {
4692
4597
  key: 0,
4693
4598
  class: "radio-control",
4694
4599
  "aria-hidden": "true"
4695
- }, v2 = { class: "radio-label" }, f2 = /* @__PURE__ */ z({
4600
+ }, e2 = { class: "radio-label" }, t2 = /* @__PURE__ */ Z({
4696
4601
  __name: "RadioButton",
4697
4602
  props: /* @__PURE__ */ ie({
4698
4603
  name: {},
@@ -4710,19 +4615,19 @@ const o2 = {
4710
4615
  }),
4711
4616
  emits: ["update:modelValue"],
4712
4617
  setup(e) {
4713
- 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);
4714
4619
  return (r, l) => (v(), b("fieldset", {
4715
4620
  class: fe(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
4716
4621
  "aria-invalid": a.value,
4717
4622
  "aria-required": o.value,
4718
4623
  disabled: i.value
4719
4624
  }, [
4720
- x("legend", u2, K(e.name), 1),
4625
+ x("legend", Go, K(e.name), 1),
4721
4626
  (v(!0), b(de, null, he(e.options, (s) => (v(), b("label", {
4722
4627
  key: s.key,
4723
4628
  class: fe(["radio", { checked: t.value === s.key, disabled: e.disabled || s.disabled }])
4724
4629
  }, [
4725
- _e(x("input", {
4630
+ Ae(x("input", {
4726
4631
  type: "radio",
4727
4632
  class: "radio-input",
4728
4633
  name: e.name,
@@ -4730,38 +4635,38 @@ const o2 = {
4730
4635
  disabled: e.disabled || s.disabled,
4731
4636
  required: e.required,
4732
4637
  "onUpdate:modelValue": l[0] || (l[0] = (c) => t.value = c)
4733
- }, null, 8, c2), [
4734
- [Pt, t.value]
4638
+ }, null, 8, Jo), [
4639
+ [Ut, t.value]
4735
4640
  ]),
4736
- e.mode === "standard" ? (v(), b("span", d2)) : O("", !0),
4737
- x("span", v2, [
4641
+ e.mode === "standard" ? (v(), b("span", Qo)) : O("", !0),
4642
+ x("span", e2, [
4738
4643
  s.icon ? (v(), ae(Ce, {
4739
4644
  key: 0,
4740
4645
  name: s.icon,
4741
4646
  size: 22
4742
4647
  }, null, 8, ["name"])) : O("", !0),
4743
- Le(" " + K(s.label), 1)
4648
+ Me(" " + K(s.label), 1)
4744
4649
  ])
4745
4650
  ], 2))), 128))
4746
- ], 10, i2));
4651
+ ], 10, Xo));
4747
4652
  }
4748
- }), lr = /* @__PURE__ */ W(f2, [["__scopeId", "data-v-67f86bfb"]]), p2 = ["for"], m2 = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], C2 = ["id", "aria-disabled", "aria-selected", "onClick"], h2 = {
4653
+ }), rr = /* @__PURE__ */ W(t2, [["__scopeId", "data-v-67f86bfb"]]), a2 = ["for"], n2 = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], o2 = ["id", "aria-disabled", "aria-selected", "onClick"], l2 = {
4749
4654
  class: "option-value",
4750
4655
  "aria-hidden": "true"
4751
- }, g2 = { class: "option-value sr-only" }, y2 = {
4656
+ }, r2 = { class: "option-value sr-only" }, s2 = {
4752
4657
  key: 1,
4753
4658
  class: "option no-found",
4754
4659
  "aria-disabled": "true"
4755
- }, b2 = {
4660
+ }, i2 = {
4756
4661
  key: 3,
4757
4662
  class: "option recents",
4758
4663
  "aria-disabled": "true",
4759
4664
  "aria-hidden": "true"
4760
- }, k2 = ["onClick"], w2 = { class: "option-value" }, M2 = {
4665
+ }, u2 = ["onClick"], c2 = { class: "option-value" }, d2 = {
4761
4666
  key: 0,
4762
4667
  class: "start-icon",
4763
4668
  "aria-hidden": "true"
4764
- }, L2 = /* @__PURE__ */ z({
4669
+ }, v2 = /* @__PURE__ */ Z({
4765
4670
  __name: "Autocomplete",
4766
4671
  props: /* @__PURE__ */ ie({
4767
4672
  id: {},
@@ -4787,11 +4692,11 @@ const o2 = {
4787
4692
  }),
4788
4693
  emits: /* @__PURE__ */ ie(["change", "select", "focus", "blur"], ["update:modelValue"]),
4789
4694
  setup(e, { emit: n }) {
4790
- 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"), p = `${ge()}-list`, m = M(!1), L = E(() => o.value !== null && o.value !== void 0 && o.value !== ""), V = E(() => c.value !== null ? `${p}-option-${c.value}` : void 0), $ = E(() => l.value && V.value ? V.value : void 0), k = E(() => s.value.length > 0), _ = 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), A = E(() => {
4791
4696
  if (!t.filterable) return t.options;
4792
4697
  const w = r.value.toLowerCase();
4793
4698
  return t.options.filter((T) => t.getValue(T).toLowerCase().includes(w));
4794
- }), N = Ye(t).value;
4699
+ }), z = Xe(t).value;
4795
4700
  Q(
4796
4701
  () => h.value,
4797
4702
  (w) => {
@@ -4808,11 +4713,11 @@ const o2 = {
4808
4713
  c.value = null;
4809
4714
  return;
4810
4715
  }
4811
- _.value.length !== 0 && (await Ie(), R());
4716
+ A.value.length !== 0 && (await $e(), R());
4812
4717
  }), Q(
4813
4718
  () => t.loading,
4814
4719
  async (w) => {
4815
- w || l.value && _.value.length !== 0 && (await Ie(), R());
4720
+ w || l.value && A.value.length !== 0 && (await $e(), R());
4816
4721
  }
4817
4722
  ), Q(
4818
4723
  () => t.options,
@@ -4821,10 +4726,10 @@ const o2 = {
4821
4726
  }
4822
4727
  );
4823
4728
  const P = (w) => {
4824
- r.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), m.value = !0, a("focus", w);
4729
+ r.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), p.value = !0, a("focus", w);
4825
4730
  }, oe = (w) => {
4826
4731
  const T = w.relatedTarget;
4827
- i.value?.contains(T) || (l.value = !1, o.value ? I() : r.value = "", m.value = !1, a("blur", w));
4732
+ i.value?.contains(T) || (l.value = !1, o.value ? I() : r.value = "", p.value = !1, a("blur", w));
4828
4733
  }, ue = (w, T) => {
4829
4734
  const Y = i.value;
4830
4735
  if (!Y || t.isDisabled(w)) return;
@@ -4833,7 +4738,7 @@ const o2 = {
4833
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);
4834
4739
  }, re = (w) => {
4835
4740
  if (!l.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
4836
- l.value = !0, c.value = c.value ?? _.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
4741
+ l.value = !0, c.value = c.value ?? A.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
4837
4742
  return;
4838
4743
  }
4839
4744
  if (l.value) {
@@ -4847,7 +4752,7 @@ const o2 = {
4847
4752
  }
4848
4753
  if (w.key === "Enter") {
4849
4754
  if (c.value === null) return;
4850
- const T = _.value[c.value];
4755
+ const T = A.value[c.value];
4851
4756
  if (!T || t.isDisabled(T)) return;
4852
4757
  ue(T, c.value), l.value = !1, w.preventDefault();
4853
4758
  }
@@ -4858,8 +4763,8 @@ const o2 = {
4858
4763
  let T = c.value;
4859
4764
  do
4860
4765
  T += w;
4861
- while (T >= 0 && T < _.value.length && t.isDisabled(_.value[T]));
4862
- T >= 0 && T < _.value.length && (c.value = T);
4766
+ while (T >= 0 && T < A.value.length && t.isDisabled(A.value[T]));
4767
+ T >= 0 && T < A.value.length && (c.value = T);
4863
4768
  }, S = () => {
4864
4769
  r.value.length === 0 && (o.value = ""), r.value.length >= t.minChars ? (a("change", r.value), l.value = !0) : l.value = !1;
4865
4770
  }, I = () => {
@@ -4870,45 +4775,45 @@ const o2 = {
4870
4775
  Q(
4871
4776
  [() => t.options.length, () => o.value],
4872
4777
  async ([w, T]) => {
4873
- T && (await Ie(), I());
4778
+ T && (await $e(), I());
4874
4779
  },
4875
4780
  { flush: "post", immediate: !0 }
4876
4781
  );
4877
- const A = () => {
4782
+ const _ = () => {
4878
4783
  r.value = "", o.value = "";
4879
4784
  }, g = (w) => {
4880
4785
  !w || w.trim().length === 0 || (s.value = [
4881
4786
  w,
4882
4787
  ...s.value.filter((T) => T !== w)
4883
4788
  ].slice(0, t.suggestionsLimit), localStorage.setItem(h.value, JSON.stringify(s.value)));
4884
- }, Z = (w) => {
4789
+ }, D = (w) => {
4885
4790
  r.value = w, S();
4886
4791
  }, R = () => {
4887
4792
  const w = q();
4888
4793
  w >= 0 && (c.value = w);
4889
- }, q = () => _.value.findIndex((w) => !t.isDisabled(w)), B = () => {
4890
- for (let w = _.value.length - 1; w >= 0; w--) if (!t.isDisabled(_.value[w])) return 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;
4891
4796
  return -1;
4892
4797
  };
4893
4798
  return ve(() => I()), (w, T) => (v(), b("div", {
4894
- class: fe(["autocomplete", { required: D(N), error: e.invalid, "has-icon": Object.keys(w.$slots).includes("icon"), filled: L.value, focused: m.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 }]),
4895
4800
  ref_key: "autocompleteRef",
4896
4801
  ref: i
4897
4802
  }, [
4898
4803
  x("label", {
4899
4804
  for: e.id,
4900
4805
  class: "label"
4901
- }, K(e.label), 9, p2),
4902
- _e(x("input", ke({
4806
+ }, K(e.label), 9, a2),
4807
+ Ae(x("input", be({
4903
4808
  id: e.id,
4904
4809
  type: e.type
4905
4810
  }, w.$attrs, {
4906
4811
  role: "combobox",
4907
4812
  "aria-autocomplete": "list",
4908
4813
  "aria-expanded": l.value,
4909
- "aria-controls": p,
4814
+ "aria-controls": m,
4910
4815
  "aria-activedescendant": $.value,
4911
- "aria-required": D(N),
4816
+ "aria-required": N(z),
4912
4817
  "aria-invalid": e.invalid ? "true" : void 0,
4913
4818
  disabled: e.disabled ? !0 : void 0,
4914
4819
  "aria-disabled": e.disabled ? !0 : void 0,
@@ -4917,18 +4822,18 @@ const o2 = {
4917
4822
  onBlur: oe,
4918
4823
  onInput: S,
4919
4824
  onKeydown: re
4920
- }), null, 16, m2), [
4921
- [Ut, r.value]
4825
+ }), null, 16, n2), [
4826
+ [Kt, r.value]
4922
4827
  ]),
4923
- U(Ae, { name: "select" }, {
4828
+ U(_e, { name: "select" }, {
4924
4829
  default: J(() => [
4925
- _e(x("ul", {
4926
- id: p,
4830
+ Ae(x("ul", {
4831
+ id: m,
4927
4832
  role: "listbox",
4928
4833
  class: "options"
4929
4834
  }, [
4930
- _.value.length > 0 ? (v(!0), b(de, { key: 0 }, he(_.value, (Y, f) => (v(), b("li", {
4931
- id: `${p}-option-${f}`,
4835
+ A.value.length > 0 ? (v(!0), b(de, { key: 0 }, he(A.value, (Y, f) => (v(), b("li", {
4836
+ id: `${m}-option-${f}`,
4932
4837
  key: e.getKey(Y),
4933
4838
  role: "option",
4934
4839
  class: fe(["option", { "focus-visible": c.value === f }]),
@@ -4950,15 +4855,15 @@ const o2 = {
4950
4855
  selected: f === u.value,
4951
4856
  active: f === c.value
4952
4857
  }, () => [
4953
- x("div", h2, [
4954
- U(Xo, {
4858
+ x("div", l2, [
4859
+ U(Zo, {
4955
4860
  text: e.getValue(Y),
4956
4861
  query: r.value
4957
4862
  }, null, 8, ["text", "query"])
4958
4863
  ])
4959
4864
  ], !0),
4960
- x("div", g2, K(e.getValue(Y)), 1)
4961
- ], 42, C2))), 128)) : _.value.length === 0 && !e.loading ? (v(), b("li", y2, [...T[3] || (T[3] = [
4865
+ x("div", r2, K(e.getValue(Y)), 1)
4866
+ ], 42, o2))), 128)) : A.value.length === 0 && !e.loading ? (v(), b("li", s2, [...T[3] || (T[3] = [
4962
4867
  x("div", { class: "option-value" }, "No results found", -1)
4963
4868
  ])])) : (v(), ae(Ot, {
4964
4869
  key: 2,
@@ -4966,7 +4871,7 @@ const o2 = {
4966
4871
  role: "status",
4967
4872
  message: "Loading"
4968
4873
  })),
4969
- k.value ? (v(), b("li", b2, [...T[4] || (T[4] = [
4874
+ k.value ? (v(), b("li", i2, [...T[4] || (T[4] = [
4970
4875
  x("div", { class: "option-value" }, " Recents ", -1)
4971
4876
  ])])) : O("", !0),
4972
4877
  (v(!0), b(de, null, he(s.value, (Y) => (v(), b("li", {
@@ -4974,21 +4879,21 @@ const o2 = {
4974
4879
  role: "presentation",
4975
4880
  "aria-hidden": "true",
4976
4881
  class: "option recent-item",
4977
- onClick: (f) => Z(Y)
4882
+ onClick: (f) => D(Y)
4978
4883
  }, [
4979
4884
  U(Ce, { name: "clock" }),
4980
- x("div", w2, K(Y), 1)
4981
- ], 8, k2))), 128))
4885
+ x("div", c2, K(Y), 1)
4886
+ ], 8, u2))), 128))
4982
4887
  ], 512), [
4983
4888
  [rt, l.value]
4984
4889
  ])
4985
4890
  ]),
4986
4891
  _: 3
4987
4892
  }),
4988
- w.$slots.icon ? (v(), b("span", M2, [
4893
+ w.$slots.icon ? (v(), b("span", d2, [
4989
4894
  G(w.$slots, "icon", {}, void 0, !0)
4990
4895
  ])) : O("", !0),
4991
- r.value.length > 0 && !e.disabled ? (v(), ae(xe, {
4896
+ r.value.length > 0 && !e.disabled ? (v(), ae(Le, {
4992
4897
  key: 1,
4993
4898
  type: "button",
4994
4899
  class: "btn btn-icon",
@@ -4997,7 +4902,7 @@ const o2 = {
4997
4902
  "\\": "",
4998
4903
  onMousedown: T[2] || (T[2] = se(() => {
4999
4904
  }, ["prevent"])),
5000
- onClick: A
4905
+ onClick: _
5001
4906
  }, {
5002
4907
  default: J(() => [
5003
4908
  U(Ce, {
@@ -5011,37 +4916,37 @@ const o2 = {
5011
4916
  })) : O("", !0)
5012
4917
  ], 2));
5013
4918
  }
5014
- }), rr = /* @__PURE__ */ W(L2, [["__scopeId", "data-v-7b61315b"]]), x2 = 5, Me = it({
4919
+ }), sr = /* @__PURE__ */ W(v2, [["__scopeId", "data-v-7b61315b"]]), f2 = 5, we = ut({
5015
4920
  toasts: []
5016
4921
  });
5017
- let $2 = 0;
4922
+ let m2 = 0;
5018
4923
  const Ze = (e, n = "info") => {
5019
4924
  const t = {
5020
- id: `toast-${$2++}`,
4925
+ id: `toast-${m2++}`,
5021
4926
  duration: 4e3,
5022
4927
  ...typeof e == "string" ? { description: e } : e,
5023
4928
  variant: n
5024
4929
  };
5025
- return Me.toasts.push(t), Me.toasts.length > x2 && Me.toasts.shift(), t.id;
5026
- }, I2 = (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 > f2 && we.toasts.shift(), t.id;
4931
+ }, p2 = (e, n) => we.toasts = we.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t), ir = Object.assign(
5027
4932
  (e) => Ze(e),
5028
4933
  {
5029
- update: I2,
4934
+ update: p2,
5030
4935
  success: (e) => Ze(e, "success"),
5031
4936
  error: (e) => Ze(e, "error"),
5032
4937
  info: (e) => Ze(e, "info"),
5033
4938
  warning: (e) => Ze(e, "warning"),
5034
4939
  loading: (e) => Ze({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
5035
- dismiss: (e) => Me.toasts = Me.toasts.filter((n) => n.id !== e),
4940
+ dismiss: (e) => we.toasts = we.toasts.filter((n) => n.id !== e),
5036
4941
  promise(e, n) {
5037
4942
  const t = Ze({ loading: !0, description: n.loading, duration: 1 / 0 });
5038
- 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;
5039
4944
  }
5040
4945
  }
5041
- ), H2 = ["data-variant", "data-state", "role", "aria-describedby"], V2 = { class: "content" }, B2 = {
4946
+ ), C2 = ["data-variant", "data-state", "role", "aria-describedby"], h2 = { class: "content" }, g2 = {
5042
4947
  key: 0,
5043
4948
  class: "progress"
5044
- }, _2 = 160, A2 = /* @__PURE__ */ z({
4949
+ }, y2 = 160, b2 = /* @__PURE__ */ Z({
5045
4950
  __name: "ToastRoot",
5046
4951
  props: {
5047
4952
  id: {},
@@ -5073,7 +4978,7 @@ const Ze = (e, n = "info") => {
5073
4978
  { immediate: !0 }
5074
4979
  );
5075
4980
  const c = () => {
5076
- cancelAnimationFrame(r), a.value = "closing", setTimeout(() => Me.toasts = Me.toasts.filter((u) => u.id !== n.id), _2);
4981
+ cancelAnimationFrame(r), a.value = "closing", setTimeout(() => we.toasts = we.toasts.filter((u) => u.id !== n.id), y2);
5077
4982
  };
5078
4983
  return ve(() => n.variant === "error" && n.focus && t.value?.focus()), Se(() => cancelAnimationFrame(r)), (u, h) => (v(), b("div", {
5079
4984
  ref_key: "rootRef",
@@ -5087,9 +4992,9 @@ const Ze = (e, n = "info") => {
5087
4992
  "aria-atomic": "true",
5088
4993
  "aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
5089
4994
  }, [
5090
- x("div", V2, [
4995
+ x("div", h2, [
5091
4996
  G(u.$slots, "default", {}, void 0, !0),
5092
- U(xe, {
4997
+ U(Le, {
5093
4998
  type: "button",
5094
4999
  onClick: c,
5095
5000
  "aria-label": `Close ${e.variant} notification`,
@@ -5104,22 +5009,22 @@ const Ze = (e, n = "info") => {
5104
5009
  _: 1
5105
5010
  }, 8, ["aria-label"])
5106
5011
  ]),
5107
- e.duration !== 1 / 0 ? (v(), b("div", B2, [
5012
+ e.duration !== 1 / 0 ? (v(), b("div", g2, [
5108
5013
  x("div", {
5109
5014
  class: "bar",
5110
- style: He({ width: o.value + "%" })
5015
+ style: Ie({ width: o.value + "%" })
5111
5016
  }, null, 4)
5112
5017
  ])) : O("", !0)
5113
- ], 8, H2));
5018
+ ], 8, C2));
5114
5019
  }
5115
- }), E2 = /* @__PURE__ */ W(A2, [["__scopeId", "data-v-f9e75b9d"]]), R2 = { class: "toast-viewport" }, S2 = { class: "toast-message" }, T2 = { key: 0 }, D2 = ["id"], Z2 = /* @__PURE__ */ z({
5020
+ }), k2 = /* @__PURE__ */ W(b2, [["__scopeId", "data-v-f9e75b9d"]]), w2 = { class: "toast-viewport" }, M2 = { class: "toast-message" }, L2 = { key: 0 }, x2 = ["id"], $2 = /* @__PURE__ */ Z({
5116
5021
  __name: "ToastViewport",
5117
5022
  setup(e) {
5118
- return (n, t) => (v(), ae(qe, { to: "body" }, [
5119
- x("div", R2, [
5120
- U(Kt, { name: "toast-stack" }, {
5023
+ return (n, t) => (v(), ae(Fe, { to: "body" }, [
5024
+ x("div", w2, [
5025
+ U(jt, { name: "toast-stack" }, {
5121
5026
  default: J(() => [
5122
- (v(!0), b(de, null, he(D(Me).toasts, (a) => (v(), ae(E2, {
5027
+ (v(!0), b(de, null, he(N(we).toasts, (a) => (v(), ae(k2, {
5123
5028
  key: a.id,
5124
5029
  id: a.id,
5125
5030
  duration: a.duration,
@@ -5127,8 +5032,8 @@ const Ze = (e, n = "info") => {
5127
5032
  loading: a.loading
5128
5033
  }, {
5129
5034
  default: J(() => [
5130
- x("div", S2, [
5131
- a.title ? (v(), b("strong", T2, K(a.title), 1)) : O("", !0),
5035
+ x("div", M2, [
5036
+ a.title ? (v(), b("strong", L2, K(a.title), 1)) : O("", !0),
5132
5037
  a.loading ? (v(), ae(Ot, {
5133
5038
  key: 1,
5134
5039
  message: a.description,
@@ -5136,7 +5041,7 @@ const Ze = (e, n = "info") => {
5136
5041
  }, null, 8, ["message"])) : (v(), b("p", {
5137
5042
  key: 2,
5138
5043
  id: `toast-desc-${a.id}`
5139
- }, K(a.description), 9, D2))
5044
+ }, K(a.description), 9, x2))
5140
5045
  ])
5141
5046
  ]),
5142
5047
  _: 2
@@ -5147,18 +5052,133 @@ const Ze = (e, n = "info") => {
5147
5052
  ])
5148
5053
  ]));
5149
5054
  }
5150
- }), $t = /* @__PURE__ */ W(Z2, [["__scopeId", "data-v-afe47f2a"]]);
5151
- let It = !1;
5152
- const ir = {
5055
+ }), xt = /* @__PURE__ */ W($2, [["__scopeId", "data-v-afe47f2a"]]);
5056
+ let $t = !1;
5057
+ const ur = {
5153
5058
  install(e, n = {}) {
5154
5059
  const { autoMount: t = !0 } = n;
5155
- if (e.component("ToastViewport", $t), t && !It && typeof window < "u") {
5156
- It = !0;
5060
+ if (e.component("ToastViewport", xt), t && !$t && typeof window < "u") {
5061
+ $t = !0;
5157
5062
  const a = document.createElement("div");
5158
- a.setAttribute("data-toast-host", ""), document.body.appendChild(a), jt($t).mount(a);
5063
+ a.setAttribute("data-toast-host", ""), document.body.appendChild(a), Bt(xt).mount(a);
5159
5064
  }
5160
5065
  }
5161
- }, z2 = /* @__PURE__ */ z({
5066
+ }, I2 = {
5067
+ title: "",
5068
+ text: "",
5069
+ type: "warning",
5070
+ confirmText: "Confirm",
5071
+ cancelText: "Cancel"
5072
+ }, Ve = ut({
5073
+ current: null,
5074
+ queue: []
5075
+ });
5076
+ let H2 = 0;
5077
+ const V2 = (e, n) => {
5078
+ const t = {
5079
+ id: `confirm-${H2++}`,
5080
+ ...I2,
5081
+ ...typeof e == "string" ? { text: e } : e,
5082
+ resolve: n
5083
+ };
5084
+ Ve.current ? Ve.queue.push(t) : Ve.current = t;
5085
+ }, qt = () => {
5086
+ Ve.current = Ve.queue.shift() || null;
5087
+ };
5088
+ function qe(e) {
5089
+ return new Promise((n) => {
5090
+ V2(e, n);
5091
+ });
5092
+ }
5093
+ const B2 = () => {
5094
+ Ve.current && (Ve.current.resolve(!0), qt());
5095
+ }, A2 = () => {
5096
+ Ve.current && (Ve.current.resolve(!1), qt());
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 _2 = {
5102
+ class: "modal",
5103
+ role: "dialog",
5104
+ "aria-modal": "true"
5105
+ }, E2 = ["data-type"], R2 = {
5106
+ key: 0,
5107
+ class: "icon__check"
5108
+ }, S2 = {
5109
+ key: 1,
5110
+ class: "icon__cross"
5111
+ }, T2 = {
5112
+ key: 2,
5113
+ class: "icon__warning"
5114
+ }, D2 = {
5115
+ key: 0,
5116
+ class: "title"
5117
+ }, Z2 = {
5118
+ key: 1,
5119
+ class: "text"
5120
+ }, z2 = { class: "actions" }, N2 = /* @__PURE__ */ Z({
5121
+ __name: "ConfirmModal",
5122
+ setup(e) {
5123
+ const n = E(() => Ve.current), t = () => {
5124
+ n && B2();
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(_e, { name: "fade" }, {
5130
+ default: J(() => [
5131
+ n.value ? (v(), b("div", {
5132
+ key: n.value.id,
5133
+ class: "overlay",
5134
+ onClick: se(a, ["self"])
5135
+ }, [
5136
+ U(_e, { name: "scale" }, {
5137
+ default: J(() => [
5138
+ x("div", _2, [
5139
+ x("div", {
5140
+ class: "icon",
5141
+ "data-type": n.value.type
5142
+ }, [
5143
+ r[0] || (r[0] = x("span", { class: "icon__circle" }, null, -1)),
5144
+ n.value.type === "success" ? (v(), b("span", R2)) : O("", !0),
5145
+ n.value.type === "error" ? (v(), b("span", S2)) : O("", !0),
5146
+ n.value.type === "warning" ? (v(), b("span", T2)) : O("", !0)
5147
+ ], 8, E2),
5148
+ n.value.title ? (v(), b("h3", D2, 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", z2, [
5151
+ x("button", {
5152
+ class: "btn btn--ghost",
5153
+ onClick: a
5154
+ }, K(n.value.cancelText), 1),
5155
+ x("button", {
5156
+ class: "btn btn--primary",
5157
+ onClick: t
5158
+ }, K(n.value.confirmText), 1)
5159
+ ])
5160
+ ])
5161
+ ]),
5162
+ _: 1
5163
+ })
5164
+ ])) : O("", !0)
5165
+ ]),
5166
+ _: 1
5167
+ })
5168
+ ]));
5169
+ }
5170
+ }), It = /* @__PURE__ */ W(N2, [["__scopeId", "data-v-0c0c3913"]]);
5171
+ let Ht = !1;
5172
+ const cr = {
5173
+ install(e, n = {}) {
5174
+ const { autoMount: t = !0 } = n;
5175
+ if (e.component("ConfirmModal", It), t && !Ht && typeof window < "u") {
5176
+ Ht = !0;
5177
+ const a = document.createElement("div");
5178
+ a.setAttribute("data-confirm-modal-host", ""), document.body.appendChild(a), Bt(It).mount(a);
5179
+ }
5180
+ }
5181
+ }, O2 = /* @__PURE__ */ Z({
5162
5182
  __name: "Card",
5163
5183
  props: {
5164
5184
  as: { default: "div" },
@@ -5167,7 +5187,7 @@ const ir = {
5167
5187
  emits: ["click"],
5168
5188
  setup(e, { emit: n }) {
5169
5189
  const t = e, a = n, o = M(), i = M();
5170
- Ve("card:labelId", o), Ve("card:descriptionId", i);
5190
+ He("card:labelId", o), He("card:descriptionId", i);
5171
5191
  const r = E(() => t.clickable && t.as !== "button" && t.as !== "a"), l = () => t.clickable && a("click");
5172
5192
  return (s, c) => (v(), ae(Ne(e.as), {
5173
5193
  class: fe(["rs-card", { clickable: e.clickable }]),
@@ -5187,13 +5207,13 @@ const ir = {
5187
5207
  _: 3
5188
5208
  }, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
5189
5209
  }
5190
- }), ur = /* @__PURE__ */ W(z2, [["__scopeId", "data-v-e892a9f2"]]), N2 = /* @__PURE__ */ z({
5210
+ }), dr = /* @__PURE__ */ W(O2, [["__scopeId", "data-v-e892a9f2"]]), q2 = /* @__PURE__ */ Z({
5191
5211
  __name: "CardHeader",
5192
5212
  props: {
5193
5213
  as: { default: "div" }
5194
5214
  },
5195
5215
  setup(e) {
5196
- const n = me("card:labelId", void 0), t = `rs-card-label-${ge()}`;
5216
+ const n = pe("card:labelId", void 0), t = `rs-card-label-${ge()}`;
5197
5217
  return ve(() => n && (n.value = t)), (a, o) => (v(), ae(Ne(e.as), {
5198
5218
  id: t,
5199
5219
  class: "rs-card-header"
@@ -5204,10 +5224,10 @@ const ir = {
5204
5224
  _: 3
5205
5225
  }));
5206
5226
  }
5207
- }), cr = /* @__PURE__ */ W(N2, [["__scopeId", "data-v-570794b4"]]), O2 = /* @__PURE__ */ z({
5227
+ }), vr = /* @__PURE__ */ W(q2, [["__scopeId", "data-v-570794b4"]]), F2 = /* @__PURE__ */ Z({
5208
5228
  __name: "CardBody",
5209
5229
  setup(e) {
5210
- const n = me("card:descriptionId", void 0), t = `rs-card-desc-${ge()}`;
5230
+ const n = pe("card:descriptionId", void 0), t = `rs-card-desc-${ge()}`;
5211
5231
  return ve(() => n && (n.value = t)), (a, o) => (v(), b("div", {
5212
5232
  id: t,
5213
5233
  class: "rs-card-body"
@@ -5215,7 +5235,7 @@ const ir = {
5215
5235
  G(a.$slots, "default", {}, void 0, !0)
5216
5236
  ]));
5217
5237
  }
5218
- }), dr = /* @__PURE__ */ W(O2, [["__scopeId", "data-v-f0380fda"]]), q2 = /* @__PURE__ */ z({
5238
+ }), fr = /* @__PURE__ */ W(F2, [["__scopeId", "data-v-f0380fda"]]), P2 = /* @__PURE__ */ Z({
5219
5239
  __name: "CardFooter",
5220
5240
  props: {
5221
5241
  as: { default: "div" }
@@ -5228,23 +5248,23 @@ const ir = {
5228
5248
  _: 3
5229
5249
  }));
5230
5250
  }
5231
- }), vr = /* @__PURE__ */ W(q2, [["__scopeId", "data-v-9b223473"]]), F2 = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], P2 = {
5251
+ }), mr = /* @__PURE__ */ W(P2, [["__scopeId", "data-v-9b223473"]]), U2 = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], K2 = {
5232
5252
  key: 2,
5233
5253
  class: "icon",
5234
5254
  "aria-hidden": "true",
5235
5255
  focusable: "false"
5236
- }, U2 = {
5256
+ }, j2 = {
5237
5257
  key: 3,
5238
5258
  class: "icon",
5239
5259
  "aria-hidden": "true",
5240
5260
  focusable: "false"
5241
- }, K2 = {
5261
+ }, W2 = {
5242
5262
  key: 4,
5243
5263
  class: "dot"
5244
- }, j2 = ["id"], W2 = { class: "addons" }, Y2 = ["id"], X2 = {
5264
+ }, Y2 = ["id"], X2 = { class: "addons" }, G2 = ["id"], J2 = {
5245
5265
  key: 0,
5246
5266
  class: "slot-default"
5247
- }, G2 = /* @__PURE__ */ z({
5267
+ }, Q2 = /* @__PURE__ */ Z({
5248
5268
  __name: "Step",
5249
5269
  props: {
5250
5270
  title: {},
@@ -5253,13 +5273,13 @@ const ir = {
5253
5273
  size: { default: "sm" }
5254
5274
  },
5255
5275
  setup(e) {
5256
- const n = e, t = me("StepsContext");
5276
+ const n = e, t = pe("StepsContext");
5257
5277
  if (!t) throw new Error("Step component must be used inside Steps.");
5258
- const a = ut(), o = M(null), i = M(null), r = E(() => t.orientation ?? "horizontal");
5278
+ const a = it(), o = M(null), i = M(null), r = E(() => t.orientation ?? "horizontal");
5259
5279
  let l = null, s = null;
5260
- const c = me("StepIndex");
5280
+ const c = pe("StepIndex");
5261
5281
  if (c == null) throw new Error("StepIndex component must be used inside Steps.");
5262
- const u = E(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = E(() => t?.icons?.[u.value]), C = E(() => a.icon ? "slot" : n.icon ? n.icon : h.value), p = E(() => {
5282
+ const u = E(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = E(() => t?.icons?.[u.value]), C = E(() => a.icon ? "slot" : n.icon ? n.icon : h.value), m = E(() => {
5263
5283
  switch (u.value) {
5264
5284
  case "completed":
5265
5285
  return "Stage completed";
@@ -5270,7 +5290,7 @@ const ir = {
5270
5290
  default:
5271
5291
  return "Stage pending";
5272
5292
  }
5273
- }), m = E(() => {
5293
+ }), p = E(() => {
5274
5294
  switch (u.value) {
5275
5295
  case "completed":
5276
5296
  return "success";
@@ -5295,7 +5315,7 @@ const ir = {
5295
5315
  });
5296
5316
  Q(
5297
5317
  () => u.value,
5298
- (N) => t.registerStepStatus(c, N),
5318
+ (z) => t.registerStepStatus(c, z),
5299
5319
  { immediate: !0 }
5300
5320
  );
5301
5321
  const $ = () => {
@@ -5304,11 +5324,11 @@ const ir = {
5304
5324
  }));
5305
5325
  }, k = () => {
5306
5326
  if (!o.value || !i.value) return;
5307
- 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;
5308
5328
  t.registerIndicatorCenter(c, oe);
5309
- }, _ = (N) => {
5329
+ }, A = (z) => {
5310
5330
  const P = t.orientation === "horizontal", oe = t.orientation === "vertical";
5311
- switch (N.key) {
5331
+ switch (z.key) {
5312
5332
  case "ArrowRight":
5313
5333
  P && t.focusNext();
5314
5334
  break;
@@ -5330,7 +5350,7 @@ const ir = {
5330
5350
  default:
5331
5351
  return;
5332
5352
  }
5333
- N.preventDefault();
5353
+ z.preventDefault();
5334
5354
  };
5335
5355
  return ve(() => {
5336
5356
  !o.value || !i.value || (requestAnimationFrame(() => {
@@ -5340,7 +5360,7 @@ const ir = {
5340
5360
  }), s.observe(o.value), s.observe(i.value), t.stepsRef.value && s.observe(t.stepsRef.value), t.registerStep(o.value));
5341
5361
  }), Be(() => {
5342
5362
  s?.disconnect(), t.unregisterStep(o.value), l != null && cancelAnimationFrame(l);
5343
- }), (N, P) => (v(), b("li", {
5363
+ }), (z, P) => (v(), b("li", {
5344
5364
  ref_key: "stepRef",
5345
5365
  ref: o,
5346
5366
  class: fe(["step", `step__${L.value}`]),
@@ -5349,13 +5369,13 @@ const ir = {
5349
5369
  "data-orientation": r.value,
5350
5370
  "data-active": u.value === "active",
5351
5371
  "data-completed": u.value === "completed",
5352
- "aria-labelledby": `step-title-${D(c)}`,
5372
+ "aria-labelledby": `step-title-${N(c)}`,
5353
5373
  tabindex: u.value === "active" ? 0 : -1,
5354
5374
  "aria-current": u.value === "active" ? "step" : void 0,
5355
- "aria-posinset": D(c) + 1,
5356
- "aria-setsize": D(t).stepsCount.value,
5357
- "aria-describedby": `step-status-${D(c)}`,
5358
- onKeydown: _
5375
+ "aria-posinset": N(c) + 1,
5376
+ "aria-setsize": N(t).stepsCount.value,
5377
+ "aria-describedby": `step-status-${N(c)}`,
5378
+ onKeydown: A
5359
5379
  }, [
5360
5380
  x("span", {
5361
5381
  ref_key: "indicatorRef",
@@ -5363,7 +5383,7 @@ const ir = {
5363
5383
  class: "indicator",
5364
5384
  "aria-hidden": "true"
5365
5385
  }, [
5366
- N.$slots.icon ? G(N.$slots, "icon", {
5386
+ z.$slots.icon ? G(z.$slots, "icon", {
5367
5387
  key: 0,
5368
5388
  status: u.value
5369
5389
  }, void 0, !0) : C.value ? (v(), ae(Ce, {
@@ -5371,55 +5391,55 @@ const ir = {
5371
5391
  name: C.value,
5372
5392
  class: "icon"
5373
5393
  }, null, 8, ["name"])) : O("", !0),
5374
- u.value === "completed" ? (v(), b("svg", P2, [...P[0] || (P[0] = [
5394
+ u.value === "completed" ? (v(), b("svg", K2, [...P[0] || (P[0] = [
5375
5395
  x("path", {
5376
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",
5377
5397
  fill: "currentColor"
5378
5398
  }, null, -1)
5379
- ])])) : u.value === "error" ? (v(), b("svg", U2, [...P[1] || (P[1] = [
5399
+ ])])) : u.value === "error" ? (v(), b("svg", j2, [...P[1] || (P[1] = [
5380
5400
  x("path", {
5381
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",
5382
5402
  fill: "currentColor"
5383
5403
  }, null, -1)
5384
- ])])) : u.value === "active" ? (v(), b("span", K2)) : O("", !0)
5404
+ ])])) : u.value === "active" ? (v(), b("span", W2)) : O("", !0)
5385
5405
  ], 512),
5386
5406
  x("span", {
5387
- id: `step-status-${D(c)}`,
5407
+ id: `step-status-${N(c)}`,
5388
5408
  class: "sr-only"
5389
- }, K(p.value), 9, j2),
5390
- x("div", W2, [
5409
+ }, K(m.value), 9, Y2),
5410
+ x("div", X2, [
5391
5411
  x("span", {
5392
- id: `step-title-${D(c)}`,
5412
+ id: `step-title-${N(c)}`,
5393
5413
  class: "title"
5394
- }, K(e.title), 9, Y2),
5414
+ }, K(e.title), 9, G2),
5395
5415
  U(In, {
5396
- variant: m.value,
5416
+ variant: p.value,
5397
5417
  size: "sm"
5398
5418
  }, {
5399
5419
  default: J(() => [
5400
- Le(K(V.value), 1)
5420
+ Me(K(V.value), 1)
5401
5421
  ]),
5402
5422
  _: 1
5403
5423
  }, 8, ["variant"]),
5404
- N.$slots.default ? (v(), b("span", X2, [
5405
- G(N.$slots, "default", {}, void 0, !0)
5424
+ z.$slots.default ? (v(), b("span", J2, [
5425
+ G(z.$slots, "default", {}, void 0, !0)
5406
5426
  ])) : O("", !0)
5407
5427
  ])
5408
- ], 42, F2));
5428
+ ], 42, U2));
5409
5429
  }
5410
- }), fr = /* @__PURE__ */ W(G2, [["__scopeId", "data-v-7424b337"]]), J2 = /* @__PURE__ */ z({
5430
+ }), pr = /* @__PURE__ */ W(Q2, [["__scopeId", "data-v-7424b337"]]), el = /* @__PURE__ */ Z({
5411
5431
  __name: "StepsItem",
5412
5432
  props: {
5413
5433
  index: {}
5414
5434
  },
5415
5435
  setup(e) {
5416
- return Ve("StepIndex", e.index), (t, a) => G(t.$slots, "default");
5436
+ return He("StepIndex", e.index), (t, a) => G(t.$slots, "default");
5417
5437
  }
5418
- }), Q2 = ["data-size", "data-orientation"], el = ["data-error", "data-completed"], tl = {
5438
+ }), tl = ["data-size", "data-orientation"], al = ["data-error", "data-completed"], nl = {
5419
5439
  "aria-live": "polite",
5420
5440
  "aria-atomic": "true",
5421
5441
  class: "sr-only"
5422
- }, al = /* @__PURE__ */ z({
5442
+ }, ol = /* @__PURE__ */ Z({
5423
5443
  __name: "Steps",
5424
5444
  props: /* @__PURE__ */ ie({
5425
5445
  orientation: { default: "horizontal" },
@@ -5440,9 +5460,9 @@ const ir = {
5440
5460
  }),
5441
5461
  emits: ["update:modelValue"],
5442
5462
  setup(e) {
5443
- const n = e, t = M(0), a = ut(), o = we(e, "modelValue"), i = M([]), r = M(null), l = E(() => o.value ?? 0), s = `steps-description-${ge()}`, c = Wt({}), u = it({});
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 = Wt({}), u = ut({});
5444
5464
  let h = null;
5445
- const C = E(() => (a.default?.() ?? [])[l.value]?.props?.title ?? ""), p = E(() => Object.entries(u).filter(([, F]) => F !== "completed").length === 0), m = E(
5465
+ const C = E(() => (a.default?.() ?? [])[l.value]?.props?.title ?? ""), m = E(() => Object.entries(u).filter(([, F]) => F !== "completed").length === 0), p = E(
5446
5466
  () => Object.values(u).includes("error")
5447
5467
  ), L = E(() => {
5448
5468
  const F = l.value, S = c;
@@ -5454,16 +5474,16 @@ const ir = {
5454
5474
  width: "100%",
5455
5475
  left: "0px"
5456
5476
  };
5457
- const I = S.value[0], A = S.value[F];
5477
+ const I = S.value[0], _ = S.value[F];
5458
5478
  return n.orientation === "vertical" ? {
5459
5479
  top: `${I}px`,
5460
- height: `${A - I}px`
5480
+ height: `${_ - I}px`
5461
5481
  } : {
5462
5482
  left: `${I}px`,
5463
- width: `${A - I}px`
5483
+ width: `${_ - I}px`
5464
5484
  };
5465
5485
  }), V = E(() => {
5466
- const F = Object.values(c.value).sort((A, g) => A - g);
5486
+ const F = Object.values(c.value).sort((_, g) => _ - g);
5467
5487
  if (F.length < 2) return {};
5468
5488
  const S = F[0], I = F[F.length - 1];
5469
5489
  return n.orientation === "vertical" ? {
@@ -5477,28 +5497,28 @@ const ir = {
5477
5497
  function k(F) {
5478
5498
  i.value.push(F), t.value = i.value.length;
5479
5499
  }
5480
- function _(F) {
5500
+ function A(F) {
5481
5501
  i.value = i.value.filter((S) => S !== F), t.value = i.value.length;
5482
5502
  }
5483
- function N(F) {
5503
+ function z(F) {
5484
5504
  F < 0 || F >= i.value.length || (o.value = F, i.value[F]?.focus());
5485
5505
  }
5486
5506
  function P() {
5487
- N(o.value + 1);
5507
+ z(o.value + 1);
5488
5508
  }
5489
5509
  function oe() {
5490
- N(o.value - 1);
5510
+ z(o.value - 1);
5491
5511
  }
5492
5512
  function ue() {
5493
- N(0);
5513
+ z(0);
5494
5514
  }
5495
5515
  function re() {
5496
- N(t.value - 1);
5516
+ z(t.value - 1);
5497
5517
  }
5498
5518
  return ve(() => {
5499
5519
  r.value && (h = new ResizeObserver(() => {
5500
5520
  }), h.observe(r.value));
5501
- }), Be(() => h?.disconnect()), Ve("StepsContext", {
5521
+ }), Be(() => h?.disconnect()), He("StepsContext", {
5502
5522
  current: E(() => o.value),
5503
5523
  update: (F) => o.value = F,
5504
5524
  stepsCount: t,
@@ -5512,7 +5532,7 @@ const ir = {
5512
5532
  },
5513
5533
  registerIndicatorCenter: $,
5514
5534
  registerStep: k,
5515
- unregisterStep: _,
5535
+ unregisterStep: A,
5516
5536
  focusNext: P,
5517
5537
  focusPrev: oe,
5518
5538
  focusFirst: ue,
@@ -5535,43 +5555,43 @@ const ir = {
5535
5555
  x("div", {
5536
5556
  class: "track",
5537
5557
  "aria-hidden": "true",
5538
- style: He(V.value)
5558
+ style: Ie(V.value)
5539
5559
  }, [
5540
5560
  x("div", {
5541
5561
  class: "track-progress",
5542
- "data-error": m.value,
5543
- "data-completed": p.value,
5544
- style: He(L.value)
5545
- }, null, 12, el)
5562
+ "data-error": p.value,
5563
+ "data-completed": m.value,
5564
+ style: Ie(L.value)
5565
+ }, null, 12, al)
5546
5566
  ], 4),
5547
- (v(!0), b(de, null, he(F.$slots.default?.(), (I, A) => (v(), ae(J2, {
5548
- key: A,
5549
- index: A
5567
+ (v(!0), b(de, null, he(F.$slots.default?.(), (I, _) => (v(), ae(el, {
5568
+ key: _,
5569
+ index: _
5550
5570
  }, {
5551
5571
  default: J(() => [
5552
5572
  (v(), ae(Ne(I)))
5553
5573
  ]),
5554
5574
  _: 2
5555
5575
  }, 1032, ["index"]))), 128))
5556
- ], 8, Q2),
5557
- x("div", tl, " Step " + K(l.value + 1) + " of " + K(t.value) + ": " + K(C.value), 1)
5576
+ ], 8, tl),
5577
+ x("div", nl, " Step " + K(l.value + 1) + " of " + K(t.value) + ": " + K(C.value), 1)
5558
5578
  ], 64));
5559
5579
  }
5560
- }), pr = /* @__PURE__ */ W(al, [["__scopeId", "data-v-3b60596b"]]), nl = ["data-align"], ol = /* @__PURE__ */ z({
5580
+ }), Cr = /* @__PURE__ */ W(ol, [["__scopeId", "data-v-3b60596b"]]), ll = ["data-align"], rl = /* @__PURE__ */ Z({
5561
5581
  __name: "Timeline",
5562
5582
  props: {
5563
5583
  align: { default: "left" }
5564
5584
  },
5565
5585
  setup(e) {
5566
- return Ve("TimelineContext", e), (t, a) => (v(), b("ol", {
5586
+ return He("TimelineContext", e), (t, a) => (v(), b("ol", {
5567
5587
  role: "list",
5568
5588
  class: "ui-timeline",
5569
5589
  "data-align": e.align
5570
5590
  }, [
5571
5591
  G(t.$slots, "default", {}, void 0, !0)
5572
- ], 8, nl));
5592
+ ], 8, ll));
5573
5593
  }
5574
- }), mr = /* @__PURE__ */ W(ol, [["__scopeId", "data-v-d56deb2b"]]), ll = ["data-align", "aria-labelledby", "aria-describedby"], rl = { class: "ui-timeline-content" }, sl = ["datetime"], il = { class: "ui-timeline-date--month" }, ul = { class: "ui-timeline-date--day" }, cl = { class: "ui-timeline-date--year" }, dl = ["data-direction"], vl = { class: "info" }, fl = ["id"], pl = { class: "addons" }, ml = /* @__PURE__ */ z({
5594
+ }), hr = /* @__PURE__ */ W(rl, [["__scopeId", "data-v-d56deb2b"]]), sl = ["data-align", "aria-labelledby", "aria-describedby"], il = { class: "ui-timeline-content" }, ul = ["datetime"], cl = { class: "ui-timeline-date--month" }, dl = { class: "ui-timeline-date--day" }, vl = { class: "ui-timeline-date--year" }, fl = ["data-direction"], ml = { class: "info" }, pl = ["id"], Cl = { class: "addons" }, hl = /* @__PURE__ */ Z({
5575
5595
  __name: "TimelineItem",
5576
5596
  props: {
5577
5597
  date: {},
@@ -5582,7 +5602,7 @@ const ir = {
5582
5602
  titleAs: {}
5583
5603
  },
5584
5604
  setup(e) {
5585
- const n = e, t = me("TimelineContext");
5605
+ const n = e, t = pe("TimelineContext");
5586
5606
  if (!t) throw new Error("TimelineItem must be used within a Timeline component");
5587
5607
  const a = ge(), o = ge(), i = E(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), r = (c) => {
5588
5608
  const u = new Date(c).getDay();
@@ -5591,36 +5611,36 @@ const ir = {
5591
5611
  return (c, u) => (v(), b("li", {
5592
5612
  tabindex: "0",
5593
5613
  class: fe([i.value, "ui-timeline-item"]),
5594
- "data-align": D(t).align,
5595
- "aria-labelledby": e.title ? D(a) : void 0,
5596
- "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
5597
5617
  }, [
5598
5618
  u[0] || (u[0] = x("div", {
5599
5619
  class: "ui-timeline-marker",
5600
5620
  "aria-hidden": "true"
5601
5621
  }, null, -1)),
5602
- x("div", rl, [
5622
+ x("div", il, [
5603
5623
  e.date ? (v(), b("time", {
5604
5624
  key: 0,
5605
5625
  class: "ui-timeline-date",
5606
5626
  datetime: e.date
5607
5627
  }, [
5608
- x("span", il, K(l(e.date)), 1),
5609
- x("span", ul, K(r(e.date)), 1),
5610
- x("span", cl, K(s(e.date)), 1)
5611
- ], 8, sl)) : O("", !0),
5628
+ x("span", cl, K(l(e.date)), 1),
5629
+ x("span", dl, K(r(e.date)), 1),
5630
+ x("span", vl, K(s(e.date)), 1)
5631
+ ], 8, ul)) : O("", !0),
5612
5632
  x("div", {
5613
5633
  class: "ui-timeline-body",
5614
5634
  "data-direction": e.flexDirection
5615
5635
  }, [
5616
- x("div", vl, [
5636
+ x("div", ml, [
5617
5637
  G(c.$slots, "title", {}, () => [
5618
5638
  (v(), ae(Ne(e.titleAs ?? "h3"), {
5619
- id: D(a),
5639
+ id: N(a),
5620
5640
  class: "ui-timeline-title"
5621
5641
  }, {
5622
5642
  default: J(() => [
5623
- Le(K(e.title), 1)
5643
+ Me(K(e.title), 1)
5624
5644
  ]),
5625
5645
  _: 1
5626
5646
  }, 8, ["id"]))
@@ -5628,26 +5648,26 @@ const ir = {
5628
5648
  G(c.$slots, "description", {}, () => [
5629
5649
  e.description ? (v(), b("p", {
5630
5650
  key: 0,
5631
- id: D(o),
5651
+ id: N(o),
5632
5652
  class: "ui-timeline-description"
5633
- }, K(e.description), 9, fl)) : O("", !0)
5653
+ }, K(e.description), 9, pl)) : O("", !0)
5634
5654
  ], !0)
5635
5655
  ]),
5636
- x("div", pl, [
5656
+ x("div", Cl, [
5637
5657
  G(c.$slots, "default", {}, void 0, !0)
5638
5658
  ])
5639
- ], 8, dl)
5659
+ ], 8, fl)
5640
5660
  ])
5641
- ], 10, ll));
5661
+ ], 10, sl));
5642
5662
  }
5643
- }), Cr = /* @__PURE__ */ W(ml, [["__scopeId", "data-v-10599410"]]), Cl = ["aria-label", "aria-activedescendant"], hl = { class: "carousel-viewport" }, gl = {
5663
+ }), gr = /* @__PURE__ */ W(hl, [["__scopeId", "data-v-10599410"]]), gl = ["aria-label", "aria-activedescendant"], yl = { class: "carousel-viewport" }, bl = {
5644
5664
  class: "sr-only",
5645
5665
  "aria-live": "polite"
5646
- }, yl = {
5666
+ }, kl = {
5647
5667
  key: 0,
5648
5668
  role: "tablist",
5649
5669
  class: "carousel-indicators"
5650
- }, bl = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], kl = 0.35, wl = 0.2, Ml = /* @__PURE__ */ z({
5670
+ }, wl = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], Ml = 0.35, Ll = 0.2, xl = /* @__PURE__ */ Z({
5651
5671
  __name: "Carousel",
5652
5672
  props: /* @__PURE__ */ ie({
5653
5673
  ariaLabel: { default: "Carousel" },
@@ -5669,14 +5689,14 @@ const ir = {
5669
5689
  }),
5670
5690
  emits: ["update:modelValue"],
5671
5691
  setup(e) {
5672
- 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([]), p = M(1), m = 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);
5673
5693
  let $ = null, k = null;
5674
5694
  Q(
5675
5695
  () => n.value,
5676
- (f) => m.value = f
5696
+ (f) => p.value = f
5677
5697
  );
5678
- const _ = E(() => C.value[m.value] ?? void 0), N = E(() => Math.floor(m.value / p.value)), P = E(() => Math.ceil(Z.value / p.value)), oe = E(() => Math.max(0, Z.value - p.value)), ue = E(() => {
5679
- const f = m.value * (100 / p.value), d = u.value && V.value ? i.value / V.value.clientWidth * 100 : 0;
5698
+ const A = 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(() => {
5699
+ const f = p.value * (100 / m.value), d = u.value && V.value ? i.value / V.value.clientWidth * 100 : 0;
5680
5700
  return {
5681
5701
  transform: `translateX(calc(-${f}% + ${d}%))`,
5682
5702
  transition: u.value ? "none" : "transform 300ms ease"
@@ -5684,17 +5704,17 @@ const ir = {
5684
5704
  }), re = (f) => {
5685
5705
  let d = f;
5686
5706
  if (t.loop) {
5687
- const y = Math.round(f / p.value), H = P.value;
5688
- d = (y % H + H) % H * p.value;
5707
+ const y = Math.round(f / m.value), H = P.value;
5708
+ d = (y % H + H) % H * m.value;
5689
5709
  } else
5690
5710
  d = Math.min(
5691
5711
  Math.max(f, 0),
5692
5712
  oe.value
5693
5713
  );
5694
- m.value = d, n.value = d;
5695
- }, F = () => re(m.value + p.value), S = () => re(m.value - p.value), I = (f) => {
5714
+ p.value = d, n.value = d;
5715
+ }, F = () => re(p.value + m.value), S = () => re(p.value - m.value), I = (f) => {
5696
5716
  f.key === "ArrowRight" ? F() : f.key === "ArrowLeft" && S();
5697
- }, A = (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
+ }, _ = (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 = () => {
5698
5718
  !t.autoplay || $ !== null || ($ = window.setInterval(() => {
5699
5719
  c.value || F();
5700
5720
  }, t.autoplayDelay));
@@ -5708,7 +5728,7 @@ const ir = {
5708
5728
  for (const [H, X] of d) f >= H && (y = X);
5709
5729
  return y;
5710
5730
  }, w = (f) => {
5711
- f.button === 0 && (u.value = !0, o.value = f.clientX, a.value = f.clientX, s.value = f.clientX, i.value = 0, r.value = performance.now(), l.value = 0, h.value = m.value, V.value?.setPointerCapture(f.pointerId), q(), V.value.style.userSelect = "");
5731
+ f.button === 0 && (u.value = !0, o.value = f.clientX, a.value = f.clientX, s.value = f.clientX, i.value = 0, r.value = performance.now(), l.value = 0, h.value = p.value, V.value?.setPointerCapture(f.pointerId), q(), V.value.style.userSelect = "");
5712
5732
  }, T = (f) => {
5713
5733
  if (!u.value) return;
5714
5734
  const d = performance.now(), y = f.clientX - a.value, H = d - r.value;
@@ -5716,13 +5736,13 @@ const ir = {
5716
5736
  }, Y = (f) => {
5717
5737
  if (!u.value) return;
5718
5738
  u.value = !1, V.value?.releasePointerCapture(f.pointerId), V.value.style.userSelect = "";
5719
- const d = V.value.clientWidth / p.value, y = i.value / d;
5720
- Math.abs(l.value) > kl ? l.value < 0 ? F() : S() : Math.abs(y) > wl ? y < 0 ? F() : S() : re(h.value), i.value = 0, l.value = 0, R();
5739
+ const d = V.value.clientWidth / m.value, y = i.value / d;
5740
+ Math.abs(l.value) > Ml ? l.value < 0 ? F() : S() : Math.abs(y) > Ll ? y < 0 ? F() : S() : re(h.value), i.value = 0, l.value = 0, R();
5721
5741
  };
5722
5742
  return ve(() => {
5723
5743
  R(), L.value && (k = new ResizeObserver((f) => {
5724
5744
  const d = f[0]?.contentRect.width;
5725
- d !== void 0 && (p.value = B(d));
5745
+ d !== void 0 && (m.value = B(d));
5726
5746
  }), k.observe(L.value));
5727
5747
  }), Be(() => {
5728
5748
  q(), k?.disconnect();
@@ -5732,13 +5752,13 @@ const ir = {
5732
5752
  f ? R() : q();
5733
5753
  },
5734
5754
  { immediate: !0 }
5735
- ), Q(p, () => m.value = Math.min(m.value, oe.value)), Ve("CarouselContext", {
5736
- register: A,
5755
+ ), Q(m, () => p.value = Math.min(p.value, oe.value)), He("CarouselContext", {
5756
+ register: _,
5737
5757
  unregister: g,
5738
- activeIndex: m,
5739
- slideCount: Z,
5758
+ activeIndex: p,
5759
+ slideCount: D,
5740
5760
  deltaX: i,
5741
- itemsPerView: t.itemsPerView instanceof Object ? p : M(t.itemsPerView)
5761
+ itemsPerView: t.itemsPerView instanceof Object ? m : M(t.itemsPerView)
5742
5762
  }), (f, d) => (v(), b("div", {
5743
5763
  ref_key: "rootRef",
5744
5764
  ref: L,
@@ -5747,8 +5767,8 @@ const ir = {
5747
5767
  "aria-roledescription": "carousel",
5748
5768
  "aria-label": e.ariaLabel,
5749
5769
  tabindex: "0",
5750
- "aria-activedescendant": _.value,
5751
- style: He({ "--items-per-view": p.value }),
5770
+ "aria-activedescendant": A.value,
5771
+ style: Ie({ "--items-per-view": m.value }),
5752
5772
  onKeydown: I,
5753
5773
  onMouseenter: d[0] || (d[0] = (y) => c.value = !0),
5754
5774
  onMouseleave: d[1] || (d[1] = (y) => c.value = !1),
@@ -5759,12 +5779,12 @@ const ir = {
5759
5779
  id: "carousel-instructions",
5760
5780
  class: "sr-only"
5761
5781
  }, " Use left and right arrow keys to navigate slides ", -1)),
5762
- x("div", hl, [
5782
+ x("div", yl, [
5763
5783
  x("div", {
5764
5784
  ref_key: "trackRef",
5765
5785
  ref: V,
5766
5786
  class: "carousel-track",
5767
- style: He(ue.value),
5787
+ style: Ie(ue.value),
5768
5788
  onPointerdown: w,
5769
5789
  onPointermove: T,
5770
5790
  onPointerup: Y,
@@ -5773,7 +5793,7 @@ const ir = {
5773
5793
  G(f.$slots, "default", {}, void 0, !0)
5774
5794
  ], 36)
5775
5795
  ]),
5776
- x("span", gl, " Slide " + K(Math.floor(m.value / p.value) + 1) + " of " + K(P.value), 1),
5796
+ x("span", bl, " Slide " + K(Math.floor(p.value / m.value) + 1) + " of " + K(P.value), 1),
5777
5797
  x("button", {
5778
5798
  type: "button",
5779
5799
  class: "carousel-control prev",
@@ -5790,28 +5810,28 @@ const ir = {
5790
5810
  }, [
5791
5811
  U(Ce, { name: "directionDown" })
5792
5812
  ]),
5793
- e.showIndicators ? (v(), b("div", yl, [
5813
+ e.showIndicators ? (v(), b("div", kl, [
5794
5814
  (v(!0), b(de, null, he(P.value, (y, H) => (v(), b("button", {
5795
5815
  role: "tab",
5796
5816
  type: "button",
5797
5817
  key: H,
5798
- class: fe(["indicator", { active: H === Math.floor(m.value / p.value) }]),
5818
+ class: fe(["indicator", { active: H === Math.floor(p.value / m.value) }]),
5799
5819
  "aria-label": `Go to slide ${H + 1}`,
5800
- "aria-selected": H === N.value,
5801
- "aria-current": H === N.value,
5802
- onClick: (X) => re(H * p.value),
5820
+ "aria-selected": H === z.value,
5821
+ "aria-current": H === z.value,
5822
+ onClick: (X) => re(H * m.value),
5803
5823
  onKeydown: [
5804
- ye(se((X) => re((H - 1 + P.value) % P.value * p.value), ["prevent"]), ["left"]),
5805
- ye(se((X) => re((H + 1) % P.value * p.value), ["prevent"]), ["right"])
5824
+ ye(se((X) => re((H - 1 + P.value) % P.value * m.value), ["prevent"]), ["left"]),
5825
+ ye(se((X) => re((H + 1) % P.value * m.value), ["prevent"]), ["right"])
5806
5826
  ]
5807
- }, null, 42, bl))), 128))
5827
+ }, null, 42, wl))), 128))
5808
5828
  ])) : O("", !0)
5809
- ], 44, Cl));
5829
+ ], 44, gl));
5810
5830
  }
5811
- }), hr = /* @__PURE__ */ W(Ml, [["__scopeId", "data-v-30cdfc00"]]), Ll = ["aria-hidden", "aria-label"], xl = /* @__PURE__ */ z({
5831
+ }), yr = /* @__PURE__ */ W(xl, [["__scopeId", "data-v-30cdfc00"]]), $l = ["aria-hidden", "aria-label"], Il = /* @__PURE__ */ Z({
5812
5832
  __name: "CarouselItem",
5813
5833
  setup(e) {
5814
- const n = me("CarouselContext");
5834
+ const n = pe("CarouselContext");
5815
5835
  if (!n) throw new Error("CarouselItem must be used inside a Carousel");
5816
5836
  const t = "carousel-item-" + ge(), a = M(0), o = E(() => Math.abs(n.deltaX.value) > 5), i = E(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
5817
5837
  return ve(() => a.value = n.register(t)), Be(() => n.unregister(t)), (r, l) => (v(), b("div", {
@@ -5824,9 +5844,9 @@ const ir = {
5824
5844
  onClickCapture: l[0] || (l[0] = (s) => o.value && s.preventDefault())
5825
5845
  }, [
5826
5846
  G(r.$slots, "default", {}, void 0, !0)
5827
- ], 40, Ll));
5847
+ ], 40, $l));
5828
5848
  }
5829
- }), gr = /* @__PURE__ */ W(xl, [["__scopeId", "data-v-a569d055"]]), Ge = /* @__PURE__ */ Symbol("TabsContext"), yr = z({
5849
+ }), br = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-a569d055"]]), Je = /* @__PURE__ */ Symbol("TabsContext"), kr = Z({
5830
5850
  name: "Tabs",
5831
5851
  props: {
5832
5852
  modelValue: String,
@@ -5843,45 +5863,45 @@ const ir = {
5843
5863
  emits: ["update:modelValue"],
5844
5864
  setup(e, { emit: n, slots: t }) {
5845
5865
  const a = M(e.modelValue ?? e.defaultValue), o = M(!1), i = M([]), r = M("forward"), l = M();
5846
- Q(a, (m) => {
5847
- !m || !o.value || requestAnimationFrame(() => {
5848
- document.getElementById(`tab-${m}`)?.focus(), o.value = !1;
5866
+ Q(a, (p) => {
5867
+ !p || !o.value || requestAnimationFrame(() => {
5868
+ document.getElementById(`tab-${p}`)?.focus(), o.value = !1;
5849
5869
  });
5850
5870
  }), Q(
5851
5871
  () => e.modelValue,
5852
- (m) => {
5853
- m !== void 0 && (a.value = m);
5872
+ (p) => {
5873
+ p !== void 0 && (a.value = p);
5854
5874
  }
5855
- ), Q(i, (m) => {
5856
- !a.value && m.length && (a.value = m[0]);
5875
+ ), Q(i, (p) => {
5876
+ !a.value && p.length && (a.value = p[0]);
5857
5877
  });
5858
- const s = (m, L) => i.value[L] = m, c = (m) => {
5878
+ const s = (p, L) => i.value[L] = p, c = (p) => {
5859
5879
  const L = i.value.filter(Boolean);
5860
5880
  if (!L.length) return;
5861
5881
  const V = a.value;
5862
5882
  if (!V) {
5863
- a.value = m, n("update:modelValue", m);
5883
+ a.value = p, n("update:modelValue", p);
5864
5884
  return;
5865
5885
  }
5866
- const $ = L.indexOf(V), k = L.indexOf(m);
5886
+ const $ = L.indexOf(V), k = L.indexOf(p);
5867
5887
  if ($ === -1 || k === -1) {
5868
- a.value = m, n("update:modelValue", m);
5888
+ a.value = p, n("update:modelValue", p);
5869
5889
  return;
5870
5890
  }
5871
- $ !== -1 && k !== -1 && (r.value = k > $ ? "forward" : "backward"), V !== m && (a.value = m, n("update:modelValue", m));
5872
- }, u = E(() => r.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (m) => {
5873
- m instanceof HTMLElement && l.value && (l.value.style.height = `${m.offsetHeight}px`);
5874
- }, C = (m) => {
5875
- if (m instanceof HTMLElement && l.value) {
5876
- const L = m.offsetHeight;
5891
+ $ !== -1 && k !== -1 && (r.value = k > $ ? "forward" : "backward"), V !== p && (a.value = p, n("update:modelValue", p));
5892
+ }, u = E(() => r.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (p) => {
5893
+ p instanceof HTMLElement && l.value && (l.value.style.height = `${p.offsetHeight}px`);
5894
+ }, C = (p) => {
5895
+ if (p instanceof HTMLElement && l.value) {
5896
+ const L = p.offsetHeight;
5877
5897
  requestAnimationFrame(() => {
5878
5898
  l.value && (l.value.style.height = `${L}px`);
5879
5899
  });
5880
5900
  }
5881
- }, p = () => {
5901
+ }, m = () => {
5882
5902
  l.value && (l.value.style.height = "");
5883
5903
  };
5884
- return Ve(Ge, {
5904
+ return He(Je, {
5885
5905
  activeValue: a,
5886
5906
  setValue: c,
5887
5907
  registerTrigger: s,
@@ -5892,8 +5912,8 @@ const ir = {
5892
5912
  contentWrapperRef: l,
5893
5913
  focusOnChange: o
5894
5914
  }), () => {
5895
- const m = t.default?.() || [], L = [], V = [];
5896
- m.forEach((k) => {
5915
+ const p = t.default?.() || [], L = [], V = [];
5916
+ p.forEach((k) => {
5897
5917
  k.type?.name === "TabsContent" ? V.push(k) : L.push(k);
5898
5918
  });
5899
5919
  const $ = V.find((k) => k.props?.value === a.value);
@@ -5906,13 +5926,13 @@ const ir = {
5906
5926
  ref: l
5907
5927
  },
5908
5928
  j(
5909
- Ae,
5929
+ _e,
5910
5930
  {
5911
5931
  name: u.value,
5912
5932
  mode: "out-in",
5913
5933
  onBeforeLeave: h,
5914
5934
  onEnter: C,
5915
- onAfterEnter: p
5935
+ onAfterEnter: m
5916
5936
  },
5917
5937
  () => $ ? [j($.type, {
5918
5938
  ...$.props,
@@ -5923,10 +5943,10 @@ const ir = {
5923
5943
  ];
5924
5944
  };
5925
5945
  }
5926
- }), br = z({
5946
+ }), wr = Z({
5927
5947
  name: "TabsList",
5928
5948
  setup(e, { slots: n }) {
5929
- const t = me(Ge);
5949
+ const t = pe(Je);
5930
5950
  if (!t) throw new Error("TabsList components must be used inside <Tabs>");
5931
5951
  return () => j(
5932
5952
  "div",
@@ -5938,7 +5958,7 @@ const ir = {
5938
5958
  n.default?.()
5939
5959
  );
5940
5960
  }
5941
- }), kr = z({
5961
+ }), Mr = Z({
5942
5962
  name: "TabsTrigger",
5943
5963
  props: {
5944
5964
  value: {
@@ -5955,7 +5975,7 @@ const ir = {
5955
5975
  }
5956
5976
  },
5957
5977
  setup(e, { slots: n }) {
5958
- const t = me(Ge);
5978
+ const t = pe(Je);
5959
5979
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
5960
5980
  const a = E(() => t.activeValue.value === e.value), o = () => !e.disabled && t.setValue(e.value), i = (r) => {
5961
5981
  if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(r.key)) return;
@@ -5990,7 +6010,7 @@ const ir = {
5990
6010
  });
5991
6011
  };
5992
6012
  return ve(() => !e.disabled && t.registerTrigger(e.value, e.index)), Be(() => t.triggers.value[e.index] = void 0), () => j(
5993
- xe,
6013
+ Le,
5994
6014
  {
5995
6015
  role: "tab",
5996
6016
  id: `tab-${e.value}`,
@@ -6006,7 +6026,7 @@ const ir = {
6006
6026
  { default: () => n.default?.() }
6007
6027
  );
6008
6028
  }
6009
- }), wr = z({
6029
+ }), Lr = Z({
6010
6030
  name: "TabsContent",
6011
6031
  props: {
6012
6032
  value: {
@@ -6015,7 +6035,7 @@ const ir = {
6015
6035
  }
6016
6036
  },
6017
6037
  setup(e, { slots: n }) {
6018
- if (!me(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>");
6019
6039
  return () => j(
6020
6040
  "div",
6021
6041
  {
@@ -6028,10 +6048,10 @@ const ir = {
6028
6048
  n.default?.()
6029
6049
  );
6030
6050
  }
6031
- }), $l = /* @__PURE__ */ z({
6051
+ }), Hl = /* @__PURE__ */ Z({
6032
6052
  __name: "DropdownItem",
6033
6053
  setup(e) {
6034
- const n = me("DropdownContext");
6054
+ const n = pe("DropdownContext");
6035
6055
  if (!n) throw new Error("DropdownItem must be used within a Dropdown");
6036
6056
  let t;
6037
6057
  const a = M(), o = (i) => {
@@ -6045,26 +6065,26 @@ const ir = {
6045
6065
  tabindex: "-1",
6046
6066
  onKeydown: o,
6047
6067
  onClick: r[0] || (r[0] = //@ts-ignore
6048
- (...l) => D(n).close && D(n).close(...l)),
6068
+ (...l) => N(n).close && N(n).close(...l)),
6049
6069
  onPointerenter: r[1] || (r[1] = (l) => a.value?.focus())
6050
6070
  }, [
6051
6071
  G(i.$slots, "default", {}, void 0, !0)
6052
6072
  ], 544));
6053
6073
  }
6054
- }), Mr = /* @__PURE__ */ W($l, [["__scopeId", "data-v-69de3d9c"]]), Il = (e) => {
6074
+ }), xr = /* @__PURE__ */ W(Hl, [["__scopeId", "data-v-69de3d9c"]]), Vl = (e) => {
6055
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(() => {
6056
6076
  const C = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(o.value);
6057
6077
  return C.charAt(0).toUpperCase() + C.slice(1);
6058
6078
  }), l = E(() => {
6059
6079
  const C = new Date(2021, 5, 6);
6060
- return Array.from({ length: 7 }).map((p, m) => {
6080
+ return Array.from({ length: 7 }).map((m, p) => {
6061
6081
  const L = new Date(C);
6062
- return L.setDate(C.getDate() + (m + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(L).replace(".", "");
6082
+ return L.setDate(C.getDate() + (p + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(L).replace(".", "");
6063
6083
  });
6064
6084
  }), s = E(() => {
6065
- const C = o.value.getFullYear(), p = o.value.getMonth(), m = new Date(C, p, 1), L = new Date(C, p + 1, 0), V = (m.getDay() - i + 7) % 7, $ = L.getDate(), k = [];
6066
- for (let _ = 0; _ < V; _++) k.push(null);
6067
- for (let _ = 1; _ <= $; _++) k.push(new Date(C, p, _));
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 = [];
6086
+ for (let A = 0; A < V; A++) k.push(null);
6087
+ for (let A = 1; A <= $; A++) k.push(new Date(C, m, A));
6068
6088
  return k;
6069
6089
  });
6070
6090
  return {
@@ -6078,7 +6098,7 @@ const ir = {
6078
6098
  prevMonth: () => o.value = new Date(o.value.getFullYear(), o.value.getMonth() - 1, 1),
6079
6099
  select: (C) => a.value = C
6080
6100
  };
6081
- }, qt = /(DD|MM|YYYY|HH|mm|ss)/g, nt = (e, n) => {
6101
+ }, Ft = /(DD|MM|YYYY|HH|mm|ss)/g, ot = (e, n) => {
6082
6102
  const t = {
6083
6103
  DD: String(e.getDate()).padStart(2, "0"),
6084
6104
  MM: String(e.getMonth() + 1).padStart(2, "0"),
@@ -6088,21 +6108,21 @@ const ir = {
6088
6108
  ss: String(e.getSeconds()).padStart(2, "0")
6089
6109
  };
6090
6110
  return n.replace(/DD|MM|YYYY|HH|mm|ss/g, (a) => t[a]);
6091
- }, Ht = (e, n) => {
6111
+ }, Vt = (e, n) => {
6092
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);
6093
6113
  if (!o?.groups) return null;
6094
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);
6095
- return Hl(i, r, l) ? new Date(l, r - 1, i, s, c, u, 0) : null;
6115
+ return Bl(i, r, l) ? new Date(l, r - 1, i, s, c, u, 0) : null;
6096
6116
  };
6097
- function Hl(e, n, t, a = 1900, o = 2100) {
6117
+ function Bl(e, n, t, a = 1900, o = 2100) {
6098
6118
  if (!Number.isInteger(e) || !Number.isInteger(n) || !Number.isInteger(t) || n < 1 || n > 12 || t < a || t > o) return !1;
6099
6119
  const i = new Date(t, n, 0).getDate();
6100
6120
  if (e < 1 || e > i) return !1;
6101
6121
  const r = new Date(t, n - 1, e);
6102
6122
  return r.getFullYear() === t && r.getMonth() === n - 1 && r.getDate() === e;
6103
6123
  }
6104
- const Vl = (e, n) => {
6105
- const t = e.replace(/\D/g, ""), a = n.match(qt);
6124
+ const Al = (e, n) => {
6125
+ const t = e.replace(/\D/g, ""), a = n.match(Ft);
6106
6126
  if (!a) return e;
6107
6127
  let o = "", i = 0;
6108
6128
  for (const r of a) {
@@ -6114,16 +6134,16 @@ const Vl = (e, n) => {
6114
6134
  }
6115
6135
  }
6116
6136
  return o;
6117
- }, Bl = (e) => {
6118
- const n = e.match(qt);
6137
+ }, _l = (e) => {
6138
+ const n = e.match(Ft);
6119
6139
  return n ? n.reduce((t, a) => t + a.length, 0) : 0;
6120
- }, _l = ["for"], Al = ["id", "value", "required", "aria-invalid", "disabled", "data-disabled", "placeholder"], El = {
6140
+ }, El = ["for"], Rl = ["id", "value", "required", "aria-invalid", "disabled", "data-disabled", "placeholder"], Sl = {
6121
6141
  key: 0,
6122
6142
  class: "dp-panel"
6123
- }, Rl = { class: "dp-header" }, Sl = { class: "month__name" }, Tl = { class: "dp-weekdays" }, Dl = {
6143
+ }, Tl = { class: "dp-header" }, Dl = { class: "month__name" }, Zl = { class: "dp-weekdays" }, zl = {
6124
6144
  class: "dp-days",
6125
6145
  role: "grid"
6126
- }, Zl = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], zl = /* @__PURE__ */ z({
6146
+ }, Nl = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], Ol = /* @__PURE__ */ Z({
6127
6147
  __name: "DatePicker",
6128
6148
  props: /* @__PURE__ */ ie({
6129
6149
  id: {},
@@ -6141,15 +6161,15 @@ const Vl = (e, n) => {
6141
6161
  }),
6142
6162
  emits: /* @__PURE__ */ ie(["update:open"], ["update:modelValue"]),
6143
6163
  setup(e, { emit: n }) {
6144
- 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), {
6145
6165
  monthLabel: u,
6146
6166
  weekDays: h,
6147
6167
  currentMonth: C,
6148
- days: p,
6149
- nextMonth: m,
6168
+ days: m,
6169
+ nextMonth: p,
6150
6170
  prevMonth: L,
6151
6171
  select: V
6152
- } = Il({
6172
+ } = Vl({
6153
6173
  modelValue: t.value,
6154
6174
  locale: o.locale,
6155
6175
  firstDayOfWeek: o.firstDayOfWeek
@@ -6161,54 +6181,54 @@ const Vl = (e, n) => {
6161
6181
  l.value = "", c.value = null;
6162
6182
  return;
6163
6183
  }
6164
- 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);
6165
6185
  },
6166
6186
  { immediate: !0 }
6167
6187
  ), Q(
6168
6188
  i,
6169
6189
  async (S) => {
6170
6190
  if (S) {
6171
- await Ie();
6191
+ await $e();
6172
6192
  let I = s.value?.querySelector('button[data-selected="true"]');
6173
6193
  if (!I) {
6174
- const A = /* @__PURE__ */ new Date();
6175
- I = Array.from(s.value?.querySelectorAll("button") || []).find((g) => Number(g.textContent) === A.getDate() && !g.disabled);
6194
+ const _ = /* @__PURE__ */ new Date();
6195
+ I = Array.from(s.value?.querySelectorAll("button") || []).find((g) => Number(g.textContent) === _.getDate() && !g.disabled);
6176
6196
  }
6177
- I && I.focus(), document.addEventListener("keydown", N);
6178
- } else document.removeEventListener("keydown", N);
6197
+ I && I.focus(), document.addEventListener("keydown", z);
6198
+ } else document.removeEventListener("keydown", z);
6179
6199
  }
6180
6200
  );
6181
6201
  const $ = (S) => {
6182
- 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;
6183
6203
  }, k = (S) => {
6184
6204
  if (!S) return "";
6185
6205
  const I = [];
6186
- return c.value && _(S, c.value) && I.push("dp-selected"), _(S, r) && I.push("dp-today"), I.join(" ");
6187
- }, _ = (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 && A(S, c.value) && I.push("dp-selected"), A(S, r) && I.push("dp-today"), I.join(" ");
6207
+ }, A = (S, I) => S.getFullYear() === I.getFullYear() && S.getMonth() === I.getMonth() && S.getDate() === I.getDate(), z = (S) => S.key === "Escape" && (i.value = !1), P = (S) => {
6188
6208
  S.key === "Backspace" || S.key === "Delete" || S.key === "ArrowLeft" || S.key === "ArrowRight" || S.key === "Tab" || /[0-9]/.test(S.key) || S.preventDefault();
6189
6209
  }, oe = (S) => {
6190
- const I = S.target, A = I.selectionStart ?? 0, Z = I.value.slice(0, A).replace(/\D/g, "").length;
6210
+ const I = S.target, _ = I.selectionStart ?? 0, D = I.value.slice(0, _).replace(/\D/g, "").length;
6191
6211
  let R = I.value.replace(/\D/g, "");
6192
- const q = Bl(o.format);
6212
+ const q = _l(o.format);
6193
6213
  R = R.slice(0, q);
6194
- const B = Vl(R, o.format);
6214
+ const B = Al(R, o.format);
6195
6215
  l.value = B, I.value = B;
6196
6216
  let w = 0, T = 0;
6197
6217
  for (let f = 0; f < B.length; f++)
6198
- if (/\d/.test(B[f] ?? "") && T++, T >= Z) {
6218
+ if (/\d/.test(B[f] ?? "") && T++, T >= D) {
6199
6219
  w = f + 1;
6200
6220
  break;
6201
6221
  }
6202
6222
  requestAnimationFrame(() => I.setSelectionRange(w, w));
6203
- const Y = Ht(B, o.format);
6223
+ const Y = Vt(B, o.format);
6204
6224
  Y && (c.value = Y, t.value = Y);
6205
6225
  }, ue = () => {
6206
6226
  i.value || (i.value = !0, a("update:open", !0));
6207
6227
  }, re = (S) => {
6208
6228
  s.value && (s.value.contains(S.target) || (i.value = !1, a("update:open", !1)));
6209
6229
  }, F = () => {
6210
- const S = Ht(l.value, o.format);
6211
- !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 = Vt(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));
6212
6232
  };
6213
6233
  return ve(() => document.addEventListener("mousedown", re)), Se(() => document.removeEventListener("mousedown", re)), (S, I) => (v(), b("div", {
6214
6234
  ref_key: "root",
@@ -6218,7 +6238,7 @@ const Vl = (e, n) => {
6218
6238
  x("label", {
6219
6239
  for: e.id,
6220
6240
  class: "label"
6221
- }, K(e.label), 9, _l),
6241
+ }, K(e.label), 9, El),
6222
6242
  x("input", {
6223
6243
  id: e.id,
6224
6244
  class: "dp-input",
@@ -6235,8 +6255,8 @@ const Vl = (e, n) => {
6235
6255
  inputmode: "numeric",
6236
6256
  autocomplete: "off",
6237
6257
  placeholder: e.placeholder || e.format
6238
- }, null, 40, Al),
6239
- U(xe, {
6258
+ }, null, 40, Rl),
6259
+ U(Le, {
6240
6260
  type: "button",
6241
6261
  class: "btn-icon",
6242
6262
  onClick: ue,
@@ -6251,49 +6271,49 @@ const Vl = (e, n) => {
6251
6271
  id: "time-help",
6252
6272
  class: "sr-only"
6253
6273
  }, "After selecting a date, adjust hours and minutes", -1)),
6254
- i.value ? (v(), b("div", El, [
6255
- x("header", Rl, [
6274
+ i.value ? (v(), b("div", Sl, [
6275
+ x("header", Tl, [
6256
6276
  x("button", {
6257
6277
  type: "button",
6258
6278
  onClick: I[0] || (I[0] = //@ts-ignore
6259
- (...A) => D(L) && D(L)(...A)),
6279
+ (..._) => N(L) && N(L)(..._)),
6260
6280
  class: "btn__prev_month",
6261
6281
  "aria-label": "Previous month"
6262
6282
  }, "‹"),
6263
- x("span", Sl, K(D(u)), 1),
6283
+ x("span", Dl, K(N(u)), 1),
6264
6284
  x("button", {
6265
6285
  type: "button",
6266
6286
  onClick: I[1] || (I[1] = //@ts-ignore
6267
- (...A) => D(m) && D(m)(...A)),
6287
+ (..._) => N(p) && N(p)(..._)),
6268
6288
  class: "btn__next_month",
6269
6289
  "aria-label": "Next month"
6270
6290
  }, "›")
6271
6291
  ]),
6272
- x("div", Tl, [
6273
- (v(!0), b(de, null, he(D(h), (A) => (v(), b("span", {
6292
+ x("div", Zl, [
6293
+ (v(!0), b(de, null, he(N(h), (_) => (v(), b("span", {
6274
6294
  class: "week-day__name",
6275
- key: A
6276
- }, K(A), 1))), 128))
6295
+ key: _
6296
+ }, K(_), 1))), 128))
6277
6297
  ]),
6278
- x("div", Dl, [
6279
- (v(!0), b(de, null, he(D(p), (A, g) => (v(), b("button", {
6298
+ x("div", zl, [
6299
+ (v(!0), b(de, null, he(N(m), (_, g) => (v(), b("button", {
6280
6300
  key: g,
6281
6301
  type: "button",
6282
6302
  role: "gridcell",
6283
- class: fe(["btn__day", k(A)]),
6284
- disabled: !A,
6285
- "aria-pressed": k(A) === "dp-selected",
6286
- "data-selected": A && k(A) === "dp-selected",
6287
- onMousedown: se((Z) => A && $(A), ["prevent"]),
6288
- "aria-label": A ? A.toLocaleDateString(o.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
6289
- }, K(A?.getDate()), 43, Zl))), 128))
6303
+ class: fe(["btn__day", k(_)]),
6304
+ disabled: !_,
6305
+ "aria-pressed": k(_) === "dp-selected",
6306
+ "data-selected": _ && k(_) === "dp-selected",
6307
+ onMousedown: se((D) => _ && $(_), ["prevent"]),
6308
+ "aria-label": _ ? _.toLocaleDateString(o.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
6309
+ }, K(_?.getDate()), 43, Nl))), 128))
6290
6310
  ]),
6291
- U(xe, {
6311
+ U(Le, {
6292
6312
  class: "btn-ghost btn-sm",
6293
- onClick: I[2] || (I[2] = (A) => t.value = /* @__PURE__ */ new Date())
6313
+ onClick: I[2] || (I[2] = (_) => t.value = /* @__PURE__ */ new Date())
6294
6314
  }, {
6295
6315
  default: J(() => [
6296
- Le(K(e.todayLabel), 1)
6316
+ Me(K(e.todayLabel), 1)
6297
6317
  ]),
6298
6318
  _: 1
6299
6319
  }),
@@ -6301,12 +6321,12 @@ const Vl = (e, n) => {
6301
6321
  ])) : O("", !0)
6302
6322
  ], 2));
6303
6323
  }
6304
- }), Nl = /* @__PURE__ */ W(zl, [["__scopeId", "data-v-b69d8ae3"]]), Ol = {
6324
+ }), ql = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-b69d8ae3"]]), Fl = {
6305
6325
  key: 0,
6306
6326
  class: "time-panel",
6307
6327
  role: "group",
6308
6328
  "aria-label": "Time selection"
6309
- }, ql = ["id", "aria-valuenow"], Fl = { key: 1 }, Pl = ["id", "aria-valuenow"], Ul = { key: 3 }, Kl = ["id", "aria-valuenow"], jl = /* @__PURE__ */ z({
6329
+ }, Pl = ["id", "aria-valuenow"], Ul = { key: 1 }, Kl = ["id", "aria-valuenow"], jl = { key: 3 }, Wl = ["id", "aria-valuenow"], Yl = /* @__PURE__ */ Z({
6310
6330
  __name: "DateTimePicker",
6311
6331
  props: /* @__PURE__ */ ie({
6312
6332
  id: {},
@@ -6326,7 +6346,7 @@ const Vl = (e, n) => {
6326
6346
  }),
6327
6347
  emits: ["update:modelValue"],
6328
6348
  setup(e) {
6329
- 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));
6330
6350
  Q(n, ($) => {
6331
6351
  if ($) {
6332
6352
  const k = new Date($);
@@ -6335,19 +6355,19 @@ const Vl = (e, n) => {
6335
6355
  c.value = null, u.value = 0, h.value = 0, C.value = 0;
6336
6356
  }, { immediate: !0 }), Q(c, ($) => {
6337
6357
  if (!$) return;
6338
- const k = $.getHours(), _ = $.getMinutes(), N = $.getSeconds();
6339
- k !== u.value && (u.value = k), _ !== h.value && (h.value = _), N !== C.value && (C.value = N);
6358
+ const k = $.getHours(), A = $.getMinutes(), z = $.getSeconds();
6359
+ k !== u.value && (u.value = k), A !== h.value && (h.value = A), z !== C.value && (C.value = z);
6340
6360
  }, { immediate: !0 }), Q([c, u, h, C], () => {
6341
6361
  if (!c.value) {
6342
6362
  n.value = null;
6343
6363
  return;
6344
6364
  }
6345
- 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), N = new Date(c.value);
6346
- N.setHours($, k, _, 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), A = Math.min(Math.max(C.value ?? 0, 0), 59), z = new Date(c.value);
6366
+ z.setHours($, k, A, 0), (!n.value || n.value.getTime() !== z.getTime()) && (n.value = z);
6347
6367
  });
6348
- const p = ($) => {
6368
+ const m = ($) => {
6349
6369
  i.value && (i.value.contains($.target) || (o.value = !1));
6350
- }, m = ($) => {
6370
+ }, p = ($) => {
6351
6371
  const k = Number($.target.value);
6352
6372
  isNaN(k) || k < 0 ? u.value = 0 : k > 23 ? u.value = 23 : u.value = k;
6353
6373
  }, L = ($) => {
@@ -6358,19 +6378,19 @@ const Vl = (e, n) => {
6358
6378
  isNaN(k) || k < 0 ? C.value = 0 : k > 59 ? C.value = 59 : C.value = k;
6359
6379
  };
6360
6380
  return ve(() => {
6361
- document.addEventListener("mousedown", p);
6381
+ document.addEventListener("mousedown", m);
6362
6382
  }), Se(() => {
6363
- document.removeEventListener("mousedown", p);
6383
+ document.removeEventListener("mousedown", m);
6364
6384
  }), ($, k) => (v(), b("div", {
6365
6385
  class: "dtp",
6366
6386
  ref_key: "root",
6367
6387
  ref: i
6368
6388
  }, [
6369
- U(Nl, ke($.$attrs, {
6389
+ U(ql, be($.$attrs, {
6370
6390
  modelValue: c.value,
6371
- "onUpdate:modelValue": k[3] || (k[3] = (_) => c.value = _),
6391
+ "onUpdate:modelValue": k[3] || (k[3] = (A) => c.value = A),
6372
6392
  open: o.value,
6373
- "onUpdate:open": k[4] || (k[4] = (_) => o.value = _),
6393
+ "onUpdate:open": k[4] || (k[4] = (A) => o.value = A),
6374
6394
  id: t.id,
6375
6395
  invalid: e.invalid,
6376
6396
  locale: e.locale,
@@ -6380,33 +6400,33 @@ const Vl = (e, n) => {
6380
6400
  placeholder: e.placeholder
6381
6401
  }), {
6382
6402
  time: J(() => [
6383
- o.value ? (v(), b("div", Ol, [
6384
- r.value ? _e((v(), b("input", {
6403
+ o.value ? (v(), b("div", Fl, [
6404
+ r.value ? Ae((v(), b("input", {
6385
6405
  key: 0,
6386
- id: `hour_${D(a)}`,
6406
+ id: `hour_${N(a)}`,
6387
6407
  type: "number",
6388
- "onUpdate:modelValue": k[0] || (k[0] = (_) => u.value = _),
6408
+ "onUpdate:modelValue": k[0] || (k[0] = (A) => u.value = A),
6389
6409
  min: "0",
6390
6410
  max: "23",
6391
6411
  "aria-label": "Hour",
6392
6412
  "aria-valuemin": "0",
6393
6413
  "aria-valuemax": "23",
6394
6414
  "aria-valuenow": u.value,
6395
- onInput: m
6396
- }, null, 40, ql)), [
6415
+ onInput: p
6416
+ }, null, 40, Pl)), [
6397
6417
  [
6398
- We,
6418
+ Ye,
6399
6419
  u.value,
6400
6420
  void 0,
6401
6421
  { number: !0 }
6402
6422
  ]
6403
6423
  ]) : O("", !0),
6404
- r.value && l.value ? (v(), b("span", Fl, ":")) : O("", !0),
6405
- l.value ? _e((v(), b("input", {
6424
+ r.value && l.value ? (v(), b("span", Ul, ":")) : O("", !0),
6425
+ l.value ? Ae((v(), b("input", {
6406
6426
  key: 2,
6407
- id: `minute_${D(a)}`,
6427
+ id: `minute_${N(a)}`,
6408
6428
  type: "number",
6409
- "onUpdate:modelValue": k[1] || (k[1] = (_) => h.value = _),
6429
+ "onUpdate:modelValue": k[1] || (k[1] = (A) => h.value = A),
6410
6430
  min: "0",
6411
6431
  max: "59",
6412
6432
  "aria-label": "Minute",
@@ -6414,20 +6434,20 @@ const Vl = (e, n) => {
6414
6434
  "aria-valuemax": "59",
6415
6435
  "aria-valuenow": h.value,
6416
6436
  onInput: L
6417
- }, null, 40, Pl)), [
6437
+ }, null, 40, Kl)), [
6418
6438
  [
6419
- We,
6439
+ Ye,
6420
6440
  h.value,
6421
6441
  void 0,
6422
6442
  { number: !0 }
6423
6443
  ]
6424
6444
  ]) : O("", !0),
6425
- (r.value || l.value) && s.value ? (v(), b("span", Ul, ":")) : O("", !0),
6426
- s.value ? _e((v(), b("input", {
6445
+ (r.value || l.value) && s.value ? (v(), b("span", jl, ":")) : O("", !0),
6446
+ s.value ? Ae((v(), b("input", {
6427
6447
  key: 4,
6428
- id: `second_${D(a)}`,
6448
+ id: `second_${N(a)}`,
6429
6449
  type: "number",
6430
- "onUpdate:modelValue": k[2] || (k[2] = (_) => C.value = _),
6450
+ "onUpdate:modelValue": k[2] || (k[2] = (A) => C.value = A),
6431
6451
  min: "0",
6432
6452
  max: "59",
6433
6453
  "aria-label": "Second",
@@ -6435,9 +6455,9 @@ const Vl = (e, n) => {
6435
6455
  "aria-valuemax": "59",
6436
6456
  "aria-valuenow": C.value,
6437
6457
  onInput: V
6438
- }, null, 40, Kl)), [
6458
+ }, null, 40, Wl)), [
6439
6459
  [
6440
- We,
6460
+ Ye,
6441
6461
  C.value,
6442
6462
  void 0,
6443
6463
  { number: !0 }
@@ -6449,7 +6469,7 @@ const Vl = (e, n) => {
6449
6469
  }, 16, ["modelValue", "open", "id", "invalid", "locale", "format", "label", "first-day-of-week", "placeholder"])
6450
6470
  ], 512));
6451
6471
  }
6452
- }), Lr = /* @__PURE__ */ W(jl, [["__scopeId", "data-v-870f6dd9"]]), xr = z({
6472
+ }), $r = /* @__PURE__ */ W(Yl, [["__scopeId", "data-v-870f6dd9"]]), Ir = Z({
6453
6473
  name: "Table",
6454
6474
  props: {
6455
6475
  columns: {
@@ -6653,7 +6673,7 @@ const Vl = (e, n) => {
6653
6673
  );
6654
6674
  };
6655
6675
  }
6656
- }), Je = /* @__PURE__ */ Symbol("AccordionContext"), $r = z({
6676
+ }), Qe = /* @__PURE__ */ Symbol("AccordionContext"), Hr = Z({
6657
6677
  name: "Accordion",
6658
6678
  props: {
6659
6679
  multiple: { type: Boolean, default: !1 },
@@ -6670,7 +6690,7 @@ const Vl = (e, n) => {
6670
6690
  }
6671
6691
  e.multiple || a.value.clear(), a.value.add(h);
6672
6692
  }, i = (h) => {
6673
- h.disabled || t.value.includes(h) || (t.value.push(h), t.value.sort((C, p) => C.offsetTop - p.offsetTop));
6693
+ h.disabled || t.value.includes(h) || (t.value.push(h), t.value.sort((C, m) => C.offsetTop - m.offsetTop));
6674
6694
  }, r = (h) => t.value = t.value.filter((C) => C !== h), l = (h) => {
6675
6695
  const C = t.value.indexOf(h);
6676
6696
  t.value[(C + 1) % t.value.length]?.focus();
@@ -6681,7 +6701,7 @@ const Vl = (e, n) => {
6681
6701
  const h = t.value;
6682
6702
  h.length && h[h.length - 1]?.focus();
6683
6703
  };
6684
- return Ve(Je, {
6704
+ return He(Qe, {
6685
6705
  multiple: e.multiple,
6686
6706
  openItems: a,
6687
6707
  toggle: o,
@@ -6693,14 +6713,14 @@ const Vl = (e, n) => {
6693
6713
  focusLast: u
6694
6714
  }), () => n.default?.();
6695
6715
  }
6696
- }), Ir = z({
6716
+ }), Vr = Z({
6697
6717
  name: "AccordionItem",
6698
6718
  props: {
6699
6719
  id: { type: String, required: !0 },
6700
6720
  disabled: { type: Boolean, default: !1 }
6701
6721
  },
6702
6722
  setup(e, { slots: n }) {
6703
- const t = me(Je);
6723
+ const t = pe(Qe);
6704
6724
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
6705
6725
  const a = E(() => t.openItems.value.has(e.id));
6706
6726
  return () => j(
@@ -6712,14 +6732,14 @@ const Vl = (e, n) => {
6712
6732
  n.default?.({ open: a.value })
6713
6733
  );
6714
6734
  }
6715
- }), Hr = z({
6735
+ }), Br = Z({
6716
6736
  name: "AccordionHeader",
6717
6737
  props: {
6718
6738
  id: { type: String, required: !0 },
6719
6739
  disabled: { type: Boolean, default: !1 }
6720
6740
  },
6721
6741
  setup(e, { slots: n }) {
6722
- const t = me(Je), a = M(null);
6742
+ const t = pe(Qe), a = M(null);
6723
6743
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
6724
6744
  const o = E(() => t.openItems.value.has(e.id)), i = () => {
6725
6745
  e.disabled || t.toggle?.(e.id);
@@ -6772,13 +6792,13 @@ const Vl = (e, n) => {
6772
6792
  ]
6773
6793
  );
6774
6794
  }
6775
- }), Vr = z({
6795
+ }), Ar = Z({
6776
6796
  name: "AccordionPanel",
6777
6797
  props: {
6778
6798
  id: { type: String, required: !0 }
6779
6799
  },
6780
6800
  setup(e, { slots: n }) {
6781
- const t = me(Je);
6801
+ const t = pe(Qe);
6782
6802
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
6783
6803
  const a = E(() => t.openItems.value.has(e.id));
6784
6804
  return () => j(
@@ -6800,63 +6820,64 @@ const Vl = (e, n) => {
6800
6820
  }
6801
6821
  });
6802
6822
  export {
6803
- $r as Accordion,
6804
- Hr as AccordionHeader,
6805
- Ir as AccordionItem,
6806
- Vr as AccordionPanel,
6807
- rr as Autocomplete,
6808
- Jl as Avatar,
6809
- or as Breadcrumb,
6810
- xe as Button,
6823
+ Hr as Accordion,
6824
+ Br as AccordionHeader,
6825
+ Vr as AccordionItem,
6826
+ Ar as AccordionPanel,
6827
+ sr as Autocomplete,
6828
+ er as Avatar,
6829
+ lr as Breadcrumb,
6830
+ Le as Button,
6811
6831
  kt as ButtonMenu,
6812
- ur as Card,
6813
- dr as CardBody,
6814
- vr as CardFooter,
6815
- cr as CardHeader,
6816
- hr as Carousel,
6817
- gr as CarouselItem,
6818
- ar as Checkbox,
6819
- Mt as ConfirmModal,
6820
- Nl as DatePicker,
6821
- Lr as DateTimePicker,
6822
- An as Dropdown,
6823
- Mr as DropdownItem,
6832
+ dr as Card,
6833
+ fr as CardBody,
6834
+ mr as CardFooter,
6835
+ vr as CardHeader,
6836
+ yr as Carousel,
6837
+ br as CarouselItem,
6838
+ nr as Checkbox,
6839
+ It as ConfirmModal,
6840
+ cr as ConfirmModalPlugin,
6841
+ ql as DatePicker,
6842
+ $r as DateTimePicker,
6843
+ _n as Dropdown,
6844
+ xr as DropdownItem,
6824
6845
  Dn as DropdownMenu,
6825
6846
  Rn as DropdownTrigger,
6826
6847
  gt as Editor,
6827
- Xo as Highlight,
6848
+ Zo as Highlight,
6828
6849
  Ce as Icon,
6829
6850
  ze as Image,
6830
- Lt as ImageGallery,
6831
- Gl as Input,
6832
- Xl as Link,
6851
+ Mt as ImageGallery,
6852
+ Ql as Input,
6853
+ Jl as Link,
6833
6854
  lt as Modal,
6834
6855
  zt as ModalBody,
6835
6856
  Nt as ModalClose,
6836
6857
  Tt as ModalContent,
6837
- tr as ModalFooter,
6858
+ ar as ModalFooter,
6838
6859
  Zt as ModalHeader,
6839
6860
  Dt as ModalTitle,
6840
- xt as PasswordValidator,
6841
- lr as RadioButton,
6842
- Ql as Select,
6861
+ Lt as PasswordValidator,
6862
+ rr as RadioButton,
6863
+ tr as Select,
6843
6864
  Ot as Spinner,
6844
- fr as Step,
6845
- pr as Steps,
6846
- xr as Table,
6847
- yr as Tabs,
6848
- wr as TabsContent,
6849
- br as TabsList,
6850
- kr as TabsTrigger,
6865
+ pr as Step,
6866
+ Cr as Steps,
6867
+ Ir as Table,
6868
+ kr as Tabs,
6869
+ Lr as TabsContent,
6870
+ wr as TabsList,
6871
+ Mr as TabsTrigger,
6851
6872
  In as Tag,
6852
- nr as Textarea,
6853
- mr as Timeline,
6854
- Cr as TimelineItem,
6855
- ir as ToastPlugin,
6856
- $t as ToastViewport,
6857
- mt as Toggle,
6873
+ or as Textarea,
6874
+ hr as Timeline,
6875
+ gr as TimelineItem,
6876
+ ur as ToastPlugin,
6877
+ xt as ToastViewport,
6878
+ pt as Toggle,
6858
6879
  bt as Tooltip,
6859
6880
  yt as Upload,
6860
- er as confirm,
6861
- sr as toast
6881
+ qe as confirm,
6882
+ ir as toast
6862
6883
  };