@reinosoft-ui/core 0.1.67 → 0.1.68

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 w, computed as V, watch as Q, onMounted as ce, createElementBlock as b, openBlock as d, normalizeStyle as Ie, normalizeClass as fe, renderSlot as G, createCommentVNode as F, withDirectives as Re, createElementVNode as x, vShow as ot, mergeProps as ke, mergeModels as ie, useModel as be, withKeys as ye, withModifiers as ve, onUnmounted as Ve, Fragment as ue, unref as E, toDisplayString as P, renderList as Ce, nextTick as $e, onBeforeUnmount as Te, createBlock as te, Teleport as Fe, createVNode as j, Transition as Ee, withCtx as ee, useId as he, provide as He, createTextVNode as Me, resolveDynamicComponent as Ze, useAttrs as lt, inject as me, h as U, useSlots as rt, resolveComponent as _t, vModelRadio as Tt, vModelDynamic as Et, reactive as Mt, TransitionGroup as Zt, createApp as zt, shallowRef as qt, vModelText as Ge } from "vue";
2
- import { routerKey as Ot } from "vue-router";
3
- const Nt = ["aria-busy"], Ft = ["aria-label"], Pt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Kt = /* @__PURE__ */ Z({
1
+ import { defineComponent as q, ref as M, computed as I, watch as te, onMounted as de, createElementBlock as b, openBlock as d, normalizeStyle as Ie, normalizeClass as fe, renderSlot as J, createCommentVNode as F, withDirectives as Re, createElementVNode as x, vShow as ot, mergeProps as ke, mergeModels as ie, useModel as be, withKeys as ye, withModifiers as ve, onUnmounted as Ve, Fragment as ue, unref as z, toDisplayString as P, renderList as Ce, nextTick as $e, onBeforeUnmount as _e, createBlock as ne, Teleport as Fe, createVNode as j, Transition as Ee, withCtx as ae, useId as he, provide as He, createTextVNode as Me, resolveDynamicComponent as Ze, useAttrs as lt, inject as me, h as U, useSlots as rt, resolveComponent as Tt, vModelRadio as _t, vModelDynamic as Et, reactive as Mt, TransitionGroup as Zt, createApp as zt, shallowRef as qt, vModelText as Ge } from "vue";
2
+ import { routerKey as Nt } from "vue-router";
3
+ const Ot = ["aria-busy"], Ft = ["aria-label"], Pt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Kt = /* @__PURE__ */ q({
4
4
  __name: "Image",
5
5
  props: {
6
6
  src: {},
@@ -16,7 +16,7 @@ const Nt = ["aria-busy"], Ft = ["aria-label"], Pt = ["src", "srcset", "sizes", "
16
16
  },
17
17
  emits: ["loaded", "error"],
18
18
  setup(e, { emit: n }) {
19
- const t = e, a = n, o = w(t.src), i = w(), l = w("loading"), s = V(() => t.ratio ? {
19
+ const t = e, a = n, o = M(t.src), i = M(), l = M("loading"), s = I(() => t.ratio ? {
20
20
  aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
21
21
  } : void 0), r = () => {
22
22
  l.value = "loaded", a("loaded");
@@ -27,12 +27,12 @@ const Nt = ["aria-busy"], Ft = ["aria-label"], Pt = ["src", "srcset", "sizes", "
27
27
  }
28
28
  l.value = "error", a("error");
29
29
  };
30
- return Q(
30
+ return te(
31
31
  () => t.src,
32
32
  (u) => {
33
33
  o.value = u, l.value = "loading";
34
34
  }
35
- ), ce(() => i.value?.complete && i.value.naturalWidth > 0 && (l.value = "loaded")), (u, h) => (d(), b("div", {
35
+ ), de(() => i.value?.complete && i.value.naturalWidth > 0 && (l.value = "loaded")), (u, h) => (d(), b("div", {
36
36
  class: fe(["ui-image", {
37
37
  "is-loading": l.value === "loading",
38
38
  "is-error": l.value === "error",
@@ -42,12 +42,12 @@ const Nt = ["aria-busy"], Ft = ["aria-label"], Pt = ["src", "srcset", "sizes", "
42
42
  style: Ie(s.value),
43
43
  "aria-busy": l.value === "loading" || void 0
44
44
  }, [
45
- l.value === "loading" ? G(u.$slots, "placeholder", { key: 0 }, () => [
45
+ l.value === "loading" ? J(u.$slots, "placeholder", { key: 0 }, () => [
46
46
  h[0] || (h[0] = x("div", {
47
47
  class: "ui-image__placeholder",
48
48
  "aria-hidden": "true"
49
49
  }, null, -1))
50
- ], !0) : l.value === "error" ? G(u.$slots, "fallback", { key: 1 }, () => [
50
+ ], !0) : l.value === "error" ? J(u.$slots, "fallback", { key: 1 }, () => [
51
51
  x("div", {
52
52
  class: "ui-image__fallback",
53
53
  role: "img",
@@ -70,21 +70,21 @@ const Nt = ["aria-busy"], Ft = ["aria-label"], Pt = ["src", "srcset", "sizes", "
70
70
  }, null, 40, Pt), [
71
71
  [ot, l.value !== "error"]
72
72
  ])
73
- ], 14, Nt));
73
+ ], 14, Ot));
74
74
  }
75
75
  }), W = (e, n) => {
76
76
  const t = e.__vccOpts || e;
77
77
  for (const [a, o] of n)
78
78
  t[a] = o;
79
79
  return t;
80
- }, _e = /* @__PURE__ */ W(Kt, [["__scopeId", "data-v-4c5a40da"]]);
81
- _e.install = (e) => {
82
- e.component("Image", _e);
80
+ }, Te = /* @__PURE__ */ W(Kt, [["__scopeId", "data-v-4c5a40da"]]);
81
+ Te.install = (e) => {
82
+ e.component("Image", Te);
83
83
  };
84
- const Ut = /* @__PURE__ */ Z({
84
+ const Ut = /* @__PURE__ */ q({
85
85
  __name: "Button",
86
86
  setup(e, { expose: n }) {
87
- const t = w();
87
+ const t = M();
88
88
  return n({
89
89
  el: t
90
90
  }), (a, o) => (d(), b("button", ke({
@@ -93,14 +93,14 @@ const Ut = /* @__PURE__ */ Z({
93
93
  type: "button",
94
94
  class: "btn"
95
95
  }, a.$attrs), [
96
- G(a.$slots, "default", {}, void 0, !0)
96
+ J(a.$slots, "default", {}, void 0, !0)
97
97
  ], 16));
98
98
  }
99
99
  }), Le = /* @__PURE__ */ W(Ut, [["__scopeId", "data-v-b46162b4"]]);
100
100
  Le.install = (e) => {
101
101
  e.component("Button", Le);
102
102
  };
103
- const jt = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], Wt = /* @__PURE__ */ Z({
103
+ const jt = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], Wt = /* @__PURE__ */ q({
104
104
  __name: "Toggle",
105
105
  props: /* @__PURE__ */ ie({
106
106
  id: {},
@@ -111,7 +111,7 @@ const jt = ["id", "aria-checked", "aria-disabled", "disabled", "onKeydown"], Wt
111
111
  }),
112
112
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
113
113
  setup(e, { emit: n }) {
114
- const t = be(e, "modelValue"), a = n, o = e, i = V(() => t.value), l = () => {
114
+ const t = be(e, "modelValue"), a = n, o = e, i = I(() => t.value), l = () => {
115
115
  if (o.disabled) return;
116
116
  const s = !t.value;
117
117
  t.value = s, a("change", s);
@@ -199,27 +199,27 @@ const Lt = (e) => {
199
199
  const n = document.createRange(), t = window.getSelection();
200
200
  n.selectNodeContents(e), n.collapse(!1), t?.removeAllRanges(), t?.addRange(n);
201
201
  }, a1 = (e, n) => {
202
- const t = w(null), a = n?.buttons ?? [], o = n?.uploadImage, i = n?.minImageResolution, l = n?.onImageResolutionError;
203
- let s = w(null);
202
+ const t = M(null), a = n?.buttons ?? [], o = n?.uploadImage, i = n?.minImageResolution, l = n?.onImageResolutionError;
203
+ let s = M(null);
204
204
  const r = () => {
205
205
  const f = e;
206
206
  if (!f) return;
207
207
  const v = window.getSelection();
208
208
  if (!v || v.rangeCount === 0) return;
209
- const g = v.getRangeAt(0);
210
- f.contains(g.commonAncestorContainer) && (t.value = g.cloneRange());
209
+ const y = v.getRangeAt(0);
210
+ f.contains(y.commonAncestorContainer) && (t.value = y.cloneRange());
211
211
  }, c = (f) => {
212
212
  const v = window.getSelection();
213
213
  if (!v || v.rangeCount === 0 || v.isCollapsed) return !1;
214
- const g = v.getRangeAt(0), B = e;
215
- if (!B) return !1;
216
- const K = u(g, B), re = [];
217
- if (K.forEach((Y) => {
218
- const X = Y === g.startContainer ? g.startOffset : 0, se = Y === g.endContainer ? g.endOffset : Y.textContent.length;
219
- if (X === se) return;
214
+ const y = v.getRangeAt(0), V = e;
215
+ if (!V) return !1;
216
+ const K = u(y, V), re = [];
217
+ if (K.forEach((X) => {
218
+ const G = X === y.startContainer ? y.startOffset : 0, se = X === y.endContainer ? y.endOffset : X.textContent.length;
219
+ if (G === se) return;
220
220
  let le;
221
- X === 0 && se === Y.textContent.length ? le = Y : (le = Y.splitText(X), se - X < le.textContent.length && le.splitText(se - X));
222
- const ge = Yt(le, f, B);
221
+ G === 0 && se === X.textContent.length ? le = X : (le = X.splitText(G), se - G < le.textContent.length && le.splitText(se - G));
222
+ const ge = Yt(le, f, V);
223
223
  if (ge)
224
224
  Xt(ge), re.push(le);
225
225
  else {
@@ -227,36 +227,36 @@ const Lt = (e) => {
227
227
  le.replaceWith(xe), xe.appendChild(le), re.push(le);
228
228
  }
229
229
  }), re.length > 0) {
230
- const Y = document.createRange();
231
- Y.setStart(re[0], 0);
232
- const X = re[re.length - 1];
233
- Y.setEnd(X, X.textContent.length), v.removeAllRanges(), v.addRange(Y), r();
230
+ const X = document.createRange();
231
+ X.setStart(re[0], 0);
232
+ const G = re[re.length - 1];
233
+ X.setEnd(G, G.textContent.length), v.removeAllRanges(), v.addRange(X), r();
234
234
  }
235
- return D(), $(f);
235
+ return R(), $(f);
236
236
  }, u = (f, v) => {
237
237
  if (!f || !v || !(v instanceof HTMLElement)) return [];
238
- const g = f.commonAncestorContainer, B = v.contains(g) ? v : g.nodeType === 3 ? g.parentNode : g, K = document.createTreeWalker(
239
- B,
238
+ const y = f.commonAncestorContainer, V = v.contains(y) ? v : y.nodeType === 3 ? y.parentNode : y, K = document.createTreeWalker(
239
+ V,
240
240
  NodeFilter.SHOW_TEXT,
241
241
  {
242
- acceptNode(X) {
243
- return v.contains(X) && f.intersectsNode(X) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
242
+ acceptNode(G) {
243
+ return v.contains(G) && f.intersectsNode(G) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
244
244
  }
245
245
  }
246
246
  ), re = [];
247
- let Y;
248
- for (; Y = K.nextNode(); ) re.push(Y);
247
+ let X;
248
+ for (; X = K.nextNode(); ) re.push(X);
249
249
  return re;
250
250
  }, h = (f) => {
251
251
  const v = window.getSelection();
252
252
  if (!v || v.rangeCount === 0) return !1;
253
- const g = v.getRangeAt(0), B = m(g.startContainer);
254
- if (!B) return !1;
255
- const re = B.tagName.toLowerCase() === f.toLowerCase() ? "p" : f.toLowerCase(), Y = document.createElement(re);
256
- for (re === "blockquote" && Y.setAttribute("class", "rs-blockquote"), Y.dataset.block = "true"; B.firstChild; ) Y.appendChild(B.firstChild);
257
- B.replaceWith(Y);
258
- const X = document.createRange();
259
- return X.selectNodeContents(Y), v.removeAllRanges(), v.addRange(X), r(), D(), k(f);
253
+ const y = v.getRangeAt(0), V = m(y.startContainer);
254
+ if (!V) return !1;
255
+ const re = V.tagName.toLowerCase() === f.toLowerCase() ? "p" : f.toLowerCase(), X = document.createElement(re);
256
+ for (re === "blockquote" && X.setAttribute("class", "rs-blockquote"), X.dataset.block = "true"; V.firstChild; ) X.appendChild(V.firstChild);
257
+ V.replaceWith(X);
258
+ const G = document.createRange();
259
+ return G.selectNodeContents(X), v.removeAllRanges(), v.addRange(G), r(), R(), k(f);
260
260
  }, m = (f) => {
261
261
  const v = e;
262
262
  if (!v) return null;
@@ -266,9 +266,9 @@ const Lt = (e) => {
266
266
  }
267
267
  return null;
268
268
  }, p = (f, v) => {
269
- const g = e;
270
- if (!g) return null;
271
- for (; f && f !== g; ) {
269
+ const y = e;
270
+ if (!y) return null;
271
+ for (; f && f !== y; ) {
272
272
  if (f instanceof HTMLElement && f.tagName.toLowerCase() === v.toLowerCase()) return f;
273
273
  f = f.parentNode;
274
274
  }
@@ -277,76 +277,76 @@ const Lt = (e) => {
277
277
  if (f.key !== "Enter" || f.shiftKey) return;
278
278
  const v = window.getSelection();
279
279
  if (!v || v.rangeCount === 0) return;
280
- const g = v.getRangeAt(0), B = p(g.startContainer, "li");
281
- if (!B) return;
280
+ const y = v.getRangeAt(0), V = p(y.startContainer, "li");
281
+ if (!V) return;
282
282
  f.preventDefault(), f.stopPropagation();
283
- const K = B.parentElement;
283
+ const K = V.parentElement;
284
284
  if (!K) return;
285
- if (B.textContent?.trim() === "") {
286
- const X = document.createElement("p");
287
- X.dataset.block = "true", X.innerHTML = "<br>", K.after(X), B.remove(), K.children.length === 0 && K.remove(), M(X);
285
+ if (V.textContent?.trim() === "") {
286
+ const G = document.createElement("p");
287
+ G.dataset.block = "true", G.innerHTML = "<br>", K.after(G), V.remove(), K.children.length === 0 && K.remove(), L(G);
288
288
  return;
289
289
  }
290
- const Y = document.createElement("li");
291
- Y.innerHTML = "<br>", B.after(Y), M(Y);
292
- }, M = (f) => {
293
- const v = document.createRange(), g = window.getSelection();
294
- v.selectNodeContents(f), v.collapse(!0), g?.removeAllRanges(), g?.addRange(v);
295
- }, D = () => {
290
+ const X = document.createElement("li");
291
+ X.innerHTML = "<br>", V.after(X), L(X);
292
+ }, L = (f) => {
293
+ const v = document.createRange(), y = window.getSelection();
294
+ v.selectNodeContents(f), v.collapse(!0), y?.removeAllRanges(), y?.addRange(v);
295
+ }, R = () => {
296
296
  const f = e;
297
297
  if (!f) return;
298
- f.querySelectorAll("p[data-block]").forEach((g) => {
299
- g.childNodes.forEach((B) => {
300
- B.nodeType === 3 && !B.textContent?.trim() && B.remove();
298
+ f.querySelectorAll("p[data-block]").forEach((y) => {
299
+ y.childNodes.forEach((V) => {
300
+ V.nodeType === 3 && !V.textContent?.trim() && V.remove();
301
301
  });
302
- }), f.querySelectorAll("p[data-block]").forEach((g) => {
303
- !g.querySelector("iframe") && g.hasAttribute("style") && g.removeAttribute("style");
304
- const K = g.querySelector("p[data-block]");
305
- K && g.replaceWith(K);
302
+ }), f.querySelectorAll("p[data-block]").forEach((y) => {
303
+ !y.querySelector("iframe") && y.hasAttribute("style") && y.removeAttribute("style");
304
+ const K = y.querySelector("p[data-block]");
305
+ K && y.replaceWith(K);
306
306
  }), f.normalize();
307
307
  }, $ = (f) => {
308
308
  const v = t.value;
309
309
  if (!v) return !1;
310
- let g = v.startContainer;
311
- g.nodeType === Node.TEXT_NODE && (g = g.parentNode);
312
- const B = e;
313
- if (!B) return !1;
314
- for (; g && g !== B; ) {
315
- if (g instanceof HTMLElement && g.tagName.toLowerCase() === f.toLowerCase()) return !0;
316
- g = g.parentNode;
310
+ let y = v.startContainer;
311
+ y.nodeType === Node.TEXT_NODE && (y = y.parentNode);
312
+ const V = e;
313
+ if (!V) return !1;
314
+ for (; y && y !== V; ) {
315
+ if (y instanceof HTMLElement && y.tagName.toLowerCase() === f.toLowerCase()) return !0;
316
+ y = y.parentNode;
317
317
  }
318
318
  return !1;
319
319
  }, k = (f) => {
320
320
  const v = t.value;
321
321
  if (!v) return !1;
322
- let g = v.startContainer;
323
- g.nodeType === Node.TEXT_NODE && (g = g.parentNode);
324
- const B = e;
325
- if (!B) return !1;
326
- for (; g && g !== B; ) {
327
- if (g instanceof HTMLElement && g.dataset.block !== void 0 && g.tagName.toLowerCase() === f.toLowerCase()) return !0;
328
- g = g.parentNode;
322
+ let y = v.startContainer;
323
+ y.nodeType === Node.TEXT_NODE && (y = y.parentNode);
324
+ const V = e;
325
+ if (!V) return !1;
326
+ for (; y && y !== V; ) {
327
+ if (y instanceof HTMLElement && y.dataset.block !== void 0 && y.tagName.toLowerCase() === f.toLowerCase()) return !0;
328
+ y = y.parentNode;
329
329
  }
330
330
  return !1;
331
331
  }, H = () => {
332
332
  const f = e;
333
333
  f && f.focus();
334
- }, y = () => {
334
+ }, g = () => {
335
335
  const f = e;
336
336
  if (!f || !t.value || !f || !f.contains(t.value.commonAncestorContainer)) return;
337
337
  const v = window.getSelection();
338
338
  v && (v.removeAllRanges(), v.addRange(t.value));
339
- }, T = () => s.value?.focusFirstButton?.(), N = (f) => {
339
+ }, _ = () => s.value?.focusFirstButton?.(), O = (f) => {
340
340
  const v = window.getSelection();
341
341
  if (!v || v.rangeCount === 0) return;
342
- const g = v.getRangeAt(0), B = m(g.startContainer);
343
- if (!B) return;
344
- const K = g.cloneRange();
345
- K.selectNodeContents(B), K.setEnd(g.startContainer, g.startOffset);
346
- const re = K.toString().length, Y = g.cloneRange();
347
- Y.selectNodeContents(B), Y.setEnd(g.endContainer, g.endOffset);
348
- const X = Y.toString().length, se = g.collapsed, le = f(B);
349
- B.replaceWith(le);
342
+ const y = v.getRangeAt(0), V = m(y.startContainer);
343
+ if (!V) return;
344
+ const K = y.cloneRange();
345
+ K.selectNodeContents(V), K.setEnd(y.startContainer, y.startOffset);
346
+ const re = K.toString().length, X = y.cloneRange();
347
+ X.selectNodeContents(V), X.setEnd(y.endContainer, y.endOffset);
348
+ const G = X.toString().length, se = y.collapsed, le = f(V);
349
+ V.replaceWith(le);
350
350
  const ge = document.createTreeWalker(
351
351
  le,
352
352
  NodeFilter.SHOW_TEXT,
@@ -355,69 +355,69 @@ const Lt = (e) => {
355
355
  let xe = 0, ze = null, Pe = 0, Be = null, Ae = 0;
356
356
  for (; ge.nextNode(); ) {
357
357
  const Ye = ge.currentNode, Xe = Ye.textContent?.length ?? 0;
358
- !ze && xe + Xe >= re && (ze = Ye, Pe = re - xe), !Be && xe + Xe >= X && (Be = Ye, Ae = X - xe), xe += Xe;
358
+ !ze && xe + Xe >= re && (ze = Ye, Pe = re - xe), !Be && xe + Xe >= G && (Be = Ye, Ae = G - xe), xe += Xe;
359
359
  }
360
360
  const De = document.createRange();
361
- ze ? De.setStart(ze, Pe) : De.setStart(le, 0), !se && Be ? De.setEnd(Be, Ae) : De.collapse(!0), v.removeAllRanges(), v.addRange(De), r(), D();
362
- }, J = (f) => {
361
+ ze ? De.setStart(ze, Pe) : De.setStart(le, 0), !se && Be ? De.setEnd(Be, Ae) : De.collapse(!0), v.removeAllRanges(), v.addRange(De), r(), R();
362
+ }, ee = (f) => {
363
363
  const v = e.parentElement?.querySelector("#editor-status");
364
364
  v && (v.textContent = f, setTimeout(() => v.textContent = "", 2e3));
365
365
  };
366
366
  e.addEventListener("keydown", C, { capture: !0 });
367
- const S = (f) => {
367
+ const D = (f) => {
368
368
  const v = e;
369
369
  if (!v) return;
370
- const g = document.createRange().createContextualFragment(f);
371
- v.appendChild(g), D(), v.dispatchEvent(new Event("input", { bubbles: !0 }));
372
- }, _ = (f) => {
370
+ const y = document.createRange().createContextualFragment(f);
371
+ v.appendChild(y), R(), v.dispatchEvent(new Event("input", { bubbles: !0 }));
372
+ }, S = (f) => {
373
373
  const v = window.getSelection();
374
374
  if (!v || v.rangeCount === 0) {
375
- S(f);
375
+ D(f);
376
376
  return;
377
377
  }
378
- const g = v.getRangeAt(0), B = m(g.startContainer);
379
- if (!B) {
380
- S(f);
378
+ const y = v.getRangeAt(0), V = m(y.startContainer);
379
+ if (!V) {
380
+ D(f);
381
381
  return;
382
382
  }
383
- B.insertAdjacentHTML("afterend", f), D(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
384
- }, R = (f) => {
383
+ V.insertAdjacentHTML("afterend", f), R(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
384
+ }, N = (f) => {
385
385
  const v = document.createElement("span");
386
386
  v.className = "img-resizable", v.style.display = "inline-block", v.style.position = "relative", v.style.width = "100%";
387
- const g = document.createElement("img");
388
- g.src = f, g.loading = "lazy";
389
- const B = document.createElement("span");
390
- B.className = "resize-handle", v.append(g, B), de(v.outerHTML);
391
- }, I = (f) => {
387
+ const y = document.createElement("img");
388
+ y.src = f, y.loading = "lazy";
389
+ const V = document.createElement("span");
390
+ V.className = "resize-handle", v.append(y, V), ce(v.outerHTML);
391
+ }, A = (f) => {
392
392
  const v = document.createElement("span");
393
393
  v.className = "img-resizable", v.style.display = "inline-block", v.style.position = "relative", v.style.width = "100%";
394
- const g = document.createElement("img");
395
- g.src = f, g.alt = "", g.loading = "lazy";
396
- const B = document.createElement("span");
397
- B.className = "resize-handle", v.append(g, B), _(v.outerHTML);
398
- }, A = (f) => {
394
+ const y = document.createElement("img");
395
+ y.src = f, y.alt = "", y.loading = "lazy";
396
+ const V = document.createElement("span");
397
+ V.className = "resize-handle", v.append(y, V), S(v.outerHTML);
398
+ }, E = (f) => {
399
399
  const v = f.closest(".img-resizable");
400
400
  if (!v) return;
401
- const g = v.querySelector(".resize-handle");
402
- if (!g || v.dataset.resizableInitialized === "true") return;
403
- v.dataset.resizableInitialized = "true", v.style.display = "inline-block", v.style.position = "relative", f.style.display = "block", f.style.width = "100%", g.style.display = "none";
404
- const B = () => {
405
- v.classList.add("active"), g.style.display = "block";
401
+ const y = v.querySelector(".resize-handle");
402
+ if (!y || v.dataset.resizableInitialized === "true") return;
403
+ v.dataset.resizableInitialized = "true", v.style.display = "inline-block", v.style.position = "relative", f.style.display = "block", f.style.width = "100%", y.style.display = "none";
404
+ const V = () => {
405
+ v.classList.add("active"), y.style.display = "block";
406
406
  }, K = () => {
407
- v.classList.remove("active"), g.style.display = "none";
407
+ v.classList.remove("active"), y.style.display = "none";
408
408
  };
409
409
  f.addEventListener("click", (se) => {
410
- se.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((le) => le.classList.remove("selected")), v.classList.add("selected"), B();
410
+ se.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((le) => le.classList.remove("selected")), v.classList.add("selected"), V();
411
411
  }), document.addEventListener("click", (se) => {
412
412
  const le = se.target;
413
413
  le.closest(".img-resizable") || e.querySelectorAll(".img-resizable.selected").forEach((ge) => ge.classList.remove("selected")), v.contains(le) || K();
414
414
  });
415
- let re = 0, Y = 0;
416
- const X = (se) => {
417
- se.preventDefault(), Y = v.offsetWidth, re = se instanceof TouchEvent ? se.touches[0].clientX : se.clientX;
415
+ let re = 0, X = 0;
416
+ const G = (se) => {
417
+ se.preventDefault(), X = v.offsetWidth, re = se instanceof TouchEvent ? se.touches[0].clientX : se.clientX;
418
418
  const le = (xe) => {
419
419
  const Pe = (xe instanceof TouchEvent ? xe.touches[0].clientX : xe.clientX) - re, Be = v.parentElement?.clientWidth || window.innerWidth;
420
- let Ae = Y + Pe;
420
+ let Ae = X + Pe;
421
421
  Ae > Be && (Ae = Be), Ae < 40 && (Ae = 40);
422
422
  const De = Ae / Be * 100;
423
423
  v.style.width = De + "%";
@@ -426,26 +426,26 @@ const Lt = (e) => {
426
426
  };
427
427
  document.addEventListener("mousemove", le), document.addEventListener("mouseup", ge), document.addEventListener("touchmove", le, { passive: !1 }), document.addEventListener("touchend", ge);
428
428
  };
429
- g.addEventListener("mousedown", X), g.addEventListener("touchstart", X, { passive: !1 });
430
- }, q = (f) => {
429
+ y.addEventListener("mousedown", G), y.addEventListener("touchstart", G, { passive: !1 });
430
+ }, B = (f) => {
431
431
  if (f.key !== "Backspace" && f.key !== "Delete") return;
432
432
  const v = e.querySelector(".img-resizable.selected");
433
433
  if (!v) return;
434
434
  f.preventDefault();
435
- const g = v.closest("p[data-block]");
436
- g && (v.remove(), g.replaceChildren(document.createElement("br")), M(g));
435
+ const y = v.closest("p[data-block]");
436
+ y && (v.remove(), y.replaceChildren(document.createElement("br")), L(y));
437
437
  };
438
- e.addEventListener("keydown", q, { capture: !0 });
439
- const ne = (f) => {
438
+ e.addEventListener("keydown", B, { capture: !0 });
439
+ const Y = (f) => {
440
440
  const v = f.match(
441
441
  /(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/
442
442
  );
443
443
  if (!v) return;
444
- const g = v[1];
445
- de(
444
+ const y = v[1];
445
+ ce(
446
446
  `
447
447
  <iframe
448
- src="https://www.youtube.com/embed/${g}?autoplay=0&mute=0&controls=0&showinfo=0&rel=0&iv_load_policy=3&modestbranding=1&enablejsapi=1&playsinline=1"
448
+ 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"
449
449
  frameborder="0"
450
450
  allowfullscreen
451
451
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
@@ -461,38 +461,38 @@ const Lt = (e) => {
461
461
  aspectRatio: "16/9"
462
462
  }
463
463
  );
464
- }, oe = (f) => {
464
+ }, Q = (f) => {
465
465
  if (f.key !== "Backspace" && f.key !== "Delete") return;
466
466
  const v = window.getSelection();
467
467
  if (!v || v.rangeCount === 0) return;
468
- const g = v.getRangeAt(0), B = m(g.startContainer);
469
- if (!B) return;
470
- const K = B.querySelector("iframe");
471
- K && (f.preventDefault(), f.stopPropagation(), K.remove(), B.removeAttribute("style"), B.replaceChildren(document.createElement("br")), M(B));
472
- }, de = (f, v) => {
473
- const g = e;
474
- if (!g) return;
475
- const B = window.getSelection();
468
+ const y = v.getRangeAt(0), V = m(y.startContainer);
469
+ if (!V) return;
470
+ const K = V.querySelector("iframe");
471
+ K && (f.preventDefault(), f.stopPropagation(), K.remove(), V.removeAttribute("style"), V.replaceChildren(document.createElement("br")), L(V));
472
+ }, ce = (f, v) => {
473
+ const y = e;
474
+ if (!y) return;
475
+ const V = window.getSelection();
476
476
  let K = null;
477
- if (B && B.rangeCount > 0) {
478
- const X = B.getRangeAt(0);
479
- K = m(X.startContainer);
477
+ if (V && V.rangeCount > 0) {
478
+ const G = V.getRangeAt(0);
479
+ K = m(G.startContainer);
480
480
  }
481
481
  const re = K && !K.textContent?.trim() && K.querySelectorAll("img, iframe").length === 0;
482
- let Y = null;
482
+ let X = null;
483
483
  if (re && K)
484
- v && Object.assign(K.style, v), K.innerHTML = f, Y = document.createElement("p"), Y.dataset.block = "true", Y.replaceChildren(document.createElement("br")), K.after(Y);
484
+ v && Object.assign(K.style, v), K.innerHTML = f, X = document.createElement("p"), X.dataset.block = "true", X.replaceChildren(document.createElement("br")), K.after(X);
485
485
  else {
486
- const X = document.createElement("p");
487
- X.dataset.block = "true", v && Object.assign(X.style, v), X.innerHTML = f;
486
+ const G = document.createElement("p");
487
+ G.dataset.block = "true", v && Object.assign(G.style, v), G.innerHTML = f;
488
488
  const se = document.createElement("p");
489
- se.dataset.block = "true", se.replaceChildren(document.createElement("br")), K ? (K.after(X), X.after(se)) : g.append(X, se), Y = se;
489
+ se.dataset.block = "true", se.replaceChildren(document.createElement("br")), K ? (K.after(G), G.after(se)) : y.append(G, se), X = se;
490
490
  }
491
- g.querySelectorAll(".img-resizable img").forEach((X) => A(X)), Y && M(Y), D(), g.dispatchEvent(new Event("input", { bubbles: !0 }));
492
- }, O = (f) => {
491
+ y.querySelectorAll(".img-resizable img").forEach((G) => E(G)), X && L(X), R(), y.dispatchEvent(new Event("input", { bubbles: !0 }));
492
+ }, Z = (f) => {
493
493
  const v = f.match(/(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);
494
494
  return v && typeof v[1] == "string" ? v[1] : null;
495
- }, L = async (f) => {
495
+ }, w = async (f) => {
496
496
  const v = f.clipboardData?.items;
497
497
  if (v && o) {
498
498
  for (const se of v)
@@ -502,73 +502,73 @@ const Lt = (e) => {
502
502
  if (!le) return;
503
503
  try {
504
504
  const ge = await o(le);
505
- R(ge);
505
+ N(ge);
506
506
  } catch (ge) {
507
507
  console.error("Image upload failed", ge);
508
508
  }
509
509
  return;
510
510
  }
511
511
  }
512
- const g = f.clipboardData?.getData("text/plain")?.trim();
513
- if (!g) return;
514
- const B = O(g), K = z(g);
515
- if (!B && !K) return;
512
+ const y = f.clipboardData?.getData("text/plain")?.trim();
513
+ if (!y) return;
514
+ const V = Z(y), K = T(y);
515
+ if (!V && !K) return;
516
516
  f.preventDefault();
517
517
  const re = window.getSelection();
518
518
  if (!re || re.rangeCount === 0) return;
519
- const Y = re.getRangeAt(0), X = m(Y.startContainer);
520
- if (X && X.textContent?.trim() === g && (X.innerHTML = "<br>"), B) {
521
- ne(g);
519
+ const X = re.getRangeAt(0), G = m(X.startContainer);
520
+ if (G && G.textContent?.trim() === y && (G.innerHTML = "<br>"), V) {
521
+ Y(y);
522
522
  return;
523
523
  }
524
524
  if (K) {
525
- if (!await ae(g)) {
525
+ if (!await oe(y)) {
526
526
  l?.(i);
527
527
  return;
528
528
  }
529
- R(g);
529
+ N(y);
530
530
  }
531
- }, z = (f) => {
531
+ }, T = (f) => {
532
532
  try {
533
533
  const v = new URL(f);
534
534
  return /\.(png|jpe?g|gif|webp|svg|avif)$/i.test(v.pathname);
535
535
  } catch {
536
536
  return !1;
537
537
  }
538
- }, ae = (f) => i ? new Promise((v) => {
539
- const g = new Image();
540
- g.onload = () => {
541
- const B = g.naturalWidth >= i.width || g.naturalHeight >= i.height;
542
- v(B);
543
- }, g.onerror = () => v(!1), g.src = f;
538
+ }, oe = (f) => i ? new Promise((v) => {
539
+ const y = new Image();
540
+ y.onload = () => {
541
+ const V = y.naturalWidth >= i.width || y.naturalHeight >= i.height;
542
+ v(V);
543
+ }, y.onerror = () => v(!1), y.src = f;
544
544
  }) : Promise.resolve(!0);
545
- return e.addEventListener("keydown", oe, { capture: !0 }), e.addEventListener("paste", L), {
545
+ return e.addEventListener("keydown", Q, { capture: !0 }), e.addEventListener("paste", w), {
546
546
  toggleInline: c,
547
547
  toggleBlock: h,
548
- normalize: D,
548
+ normalize: R,
549
549
  rootElement: e,
550
550
  saveSelection: r,
551
- restoreSelection: y,
551
+ restoreSelection: g,
552
552
  isInlineActive: $,
553
553
  isBlockActive: k,
554
554
  focus: H,
555
555
  toolbarRef: s,
556
- focusFirstToolbarButton: T,
557
- replaceCurrentBlock: N,
556
+ focusFirstToolbarButton: _,
557
+ replaceCurrentBlock: O,
558
558
  buttons: a,
559
- announce: J,
560
- appendBlock: S,
561
- insertBlockAfterCurrent: _,
562
- appendImage: R,
563
- insertImage: I,
564
- appendVideo: ne
559
+ announce: ee,
560
+ appendBlock: D,
561
+ insertBlockAfterCurrent: S,
562
+ appendImage: N,
563
+ insertImage: A,
564
+ appendVideo: Y
565
565
  };
566
566
  }, n1 = ["id", "aria-label"], o1 = ["data-placeholder"], l1 = {
567
567
  id: "editor-status",
568
568
  class: "sr-only",
569
569
  "aria-live": "polite",
570
570
  "aria-atomic": "true"
571
- }, r1 = /* @__PURE__ */ Z({
571
+ }, r1 = /* @__PURE__ */ q({
572
572
  __name: "EditorContent",
573
573
  props: {
574
574
  editor: {},
@@ -579,7 +579,7 @@ const Lt = (e) => {
579
579
  onImageResolutionError: {}
580
580
  },
581
581
  setup(e, { expose: n }) {
582
- const t = e, a = w(""), o = w(null), i = (m) => {
582
+ const t = e, a = M(""), o = M(null), i = (m) => {
583
583
  if (m.ctrlKey || m.metaKey)
584
584
  switch (m.altKey && m.key === "F10" && (m.preventDefault(), t.editor?.restoreSelection(), t.editor?.focusFirstToolbarButton()), m.key.toLowerCase()) {
585
585
  case "b":
@@ -612,15 +612,15 @@ const Lt = (e) => {
612
612
  "OL",
613
613
  "LI",
614
614
  "A"
615
- ]), M = document.createTreeWalker(
615
+ ]), L = document.createTreeWalker(
616
616
  p.body,
617
617
  NodeFilter.SHOW_ELEMENT,
618
618
  null
619
- ), D = [];
620
- for (; M.nextNode(); ) {
621
- const $ = M.currentNode;
619
+ ), R = [];
620
+ for (; L.nextNode(); ) {
621
+ const $ = L.currentNode;
622
622
  if (!C.has($.tagName)) {
623
- D.push($);
623
+ R.push($);
624
624
  continue;
625
625
  }
626
626
  if ($.removeAttribute("style"), $.removeAttribute("class"), $.tagName === "A") {
@@ -628,7 +628,7 @@ const Lt = (e) => {
628
628
  (!k || !k.startsWith("http")) && $.removeAttribute("href");
629
629
  }
630
630
  }
631
- return D.forEach(($) => {
631
+ return R.forEach(($) => {
632
632
  const k = $.parentNode;
633
633
  for (; $.firstChild; ) k?.insertBefore($.firstChild, $);
634
634
  k?.removeChild($);
@@ -641,25 +641,25 @@ const Lt = (e) => {
641
641
  const C = (p instanceof Element ? p : p.parentElement)?.closest("[data-block]");
642
642
  C && c(C);
643
643
  }, c = (m) => {
644
- const p = m.textContent?.replace(/\u00A0/g, "").trim() ?? "", C = m.querySelector("img, iframe"), M = m.innerHTML === "<br>";
645
- (p === "" || M) && !C ? m.dataset.empty = "true" : m.dataset.empty = "false";
644
+ const p = m.textContent?.replace(/\u00A0/g, "").trim() ?? "", C = m.querySelector("img, iframe"), L = m.innerHTML === "<br>";
645
+ (p === "" || L) && !C ? m.dataset.empty = "true" : m.dataset.empty = "false";
646
646
  }, u = (m) => {
647
647
  const p = window.getSelection();
648
648
  if (!p || p.rangeCount === 0) return;
649
649
  const C = p.getRangeAt(0);
650
650
  C.deleteContents();
651
- const M = C.createContextualFragment(m);
652
- C.insertNode(M), p.collapseToEnd();
651
+ const L = C.createContextualFragment(m);
652
+ C.insertNode(L), p.collapseToEnd();
653
653
  }, h = (m) => {
654
654
  m.preventDefault();
655
655
  const p = m.clipboardData?.getData("text/html"), C = m.clipboardData?.getData("text/plain");
656
656
  if (p) {
657
- const M = s(p);
658
- u(M);
657
+ const L = s(p);
658
+ u(L);
659
659
  } else C && u(`<p data-block>${C}</p>`);
660
660
  t.editor?.saveSelection(), o.value?.dispatchEvent(new Event("input", { bubbles: !0 }));
661
661
  };
662
- return ce(() => {
662
+ return de(() => {
663
663
  document.addEventListener("selectionchange", l);
664
664
  const m = o.value;
665
665
  m && m.querySelectorAll("[data-block]").forEach((p) => {
@@ -682,10 +682,10 @@ const Lt = (e) => {
682
682
  onPaste: h,
683
683
  onKeydown: [
684
684
  i,
685
- p[0] || (p[0] = ye((C) => E(Jt)(C, e.editor), ["enter"])),
685
+ p[0] || (p[0] = ye((C) => z(Jt)(C, e.editor), ["enter"])),
686
686
  p[1] || (p[1] = ye(
687
687
  //@ts-ignore
688
- (...C) => E(ft) && E(ft)(...C),
688
+ (...C) => z(ft) && z(ft)(...C),
689
689
  ["backspace"]
690
690
  ))
691
691
  ],
@@ -1147,7 +1147,7 @@ const Lt = (e) => {
1147
1147
  "stroke-linejoin": "round"
1148
1148
  }
1149
1149
  ]
1150
- }, _1 = {
1150
+ }, T1 = {
1151
1151
  viewBox: "0 0 24 24",
1152
1152
  paths: [
1153
1153
  {
@@ -1169,7 +1169,7 @@ const Lt = (e) => {
1169
1169
  fill: "currentColor"
1170
1170
  }
1171
1171
  ]
1172
- }, T1 = {
1172
+ }, _1 = {
1173
1173
  viewBox: "0 0 24 24",
1174
1174
  paths: [
1175
1175
  {
@@ -1272,7 +1272,7 @@ const Lt = (e) => {
1272
1272
  transform: "translate(189.5458984375,309.93798828125)"
1273
1273
  }
1274
1274
  ]
1275
- }, O1 = {
1275
+ }, N1 = {
1276
1276
  viewBox: "0 0 24 24",
1277
1277
  paths: [
1278
1278
  {
@@ -1281,7 +1281,7 @@ const Lt = (e) => {
1281
1281
  fill: "currentColor"
1282
1282
  }
1283
1283
  ]
1284
- }, N1 = {
1284
+ }, O1 = {
1285
1285
  viewBox: "0 0 24 24",
1286
1286
  paths: [
1287
1287
  {
@@ -2117,14 +2117,14 @@ const Lt = (e) => {
2117
2117
  close: A1,
2118
2118
  clock: R1,
2119
2119
  login: D1,
2120
- image: _1,
2121
- phone: T1,
2120
+ image: T1,
2121
+ phone: _1,
2122
2122
  trash: S1,
2123
2123
  share: E1,
2124
2124
  spotfy: q1,
2125
- church: O1,
2125
+ church: N1,
2126
2126
  health: G1,
2127
- blocks: N1,
2127
+ blocks: O1,
2128
2128
  shield: F1,
2129
2129
  upload: P1,
2130
2130
  italic: U1,
@@ -2167,7 +2167,7 @@ const Lt = (e) => {
2167
2167
  shoppingBag: Ha,
2168
2168
  directionDown: Va,
2169
2169
  shoppingBasket: Ba
2170
- }, Aa = ["viewBox", "transform", "width", "height"], Ra = /* @__PURE__ */ Z({
2170
+ }, Aa = ["viewBox", "transform", "width", "height"], Ra = /* @__PURE__ */ q({
2171
2171
  __name: "Icon",
2172
2172
  props: {
2173
2173
  name: {},
@@ -2178,14 +2178,14 @@ const Lt = (e) => {
2178
2178
  return (n, t) => (d(), b("svg", {
2179
2179
  xmlns: "http://www.w3.org/2000/svg",
2180
2180
  class: fe(["icon", { spin: e.spin }]),
2181
- viewBox: E(Je)[e.name].viewBox,
2182
- transform: E(Je)[e.name].transform || void 0,
2181
+ viewBox: z(Je)[e.name].viewBox,
2182
+ transform: z(Je)[e.name].transform || void 0,
2183
2183
  width: e.size || 24,
2184
2184
  height: e.size || 24,
2185
2185
  fill: "none",
2186
2186
  "aria-hidden": "true"
2187
2187
  }, [
2188
- (d(!0), b(ue, null, Ce(E(Je)[e.name].paths, (a, o) => (d(), b(ue, { key: o }, [
2188
+ (d(!0), b(ue, null, Ce(z(Je)[e.name].paths, (a, o) => (d(), b(ue, { key: o }, [
2189
2189
  a.type === "path" ? (d(), b("path", ke({
2190
2190
  key: 0,
2191
2191
  ref_for: !0
@@ -2213,7 +2213,7 @@ const Lt = (e) => {
2213
2213
  ], 64))), 128))
2214
2214
  ], 10, Aa));
2215
2215
  }
2216
- }), pe = /* @__PURE__ */ W(Ra, [["__scopeId", "data-v-dd8423eb"]]), Da = ["aria-controls"], Sa = ["aria-pressed", "onMousedown", "aria-label"], _a = { key: 1 }, Qe = 8, Ta = 6, Ea = /* @__PURE__ */ Z({
2216
+ }), pe = /* @__PURE__ */ W(Ra, [["__scopeId", "data-v-dd8423eb"]]), Da = ["aria-controls"], Sa = ["aria-pressed", "onMousedown", "aria-label"], Ta = { key: 1 }, Qe = 8, _a = 6, Ea = /* @__PURE__ */ q({
2217
2217
  __name: "FloatingToolbar",
2218
2218
  props: {
2219
2219
  editor: {},
@@ -2221,81 +2221,81 @@ const Lt = (e) => {
2221
2221
  buttons: {}
2222
2222
  },
2223
2223
  setup(e, { expose: n }) {
2224
- const t = e, a = Qe + Ta, o = w(!1), i = w([]), l = w(null), s = w({});
2224
+ const t = e, a = Qe + _a, o = M(!1), i = M([]), l = M(null), s = M({});
2225
2225
  let r = null, c = null, u = 0;
2226
2226
  const h = () => {
2227
2227
  s.value = m();
2228
2228
  };
2229
- Q(o, async (y) => {
2230
- if (!y) {
2229
+ te(o, async (g) => {
2230
+ if (!g) {
2231
2231
  c?.(), c = null, r?.disconnect(), r = null;
2232
2232
  return;
2233
2233
  }
2234
2234
  await $e(), await $e(), h(), l.value && (r = new ResizeObserver(h), r.observe(l.value)), c = p(h);
2235
2235
  }, { flush: "post" });
2236
2236
  const m = () => {
2237
- const y = window.getSelection();
2238
- if (!y || y.rangeCount === 0) return {};
2239
- const T = t.editor?.rootElement;
2240
- if (!T) return {};
2241
- const N = y.getRangeAt(0);
2242
- if (!T.contains(
2243
- N.commonAncestorContainer.nodeType === 3 ? N.commonAncestorContainer.parentNode : N.commonAncestorContainer
2244
- ) || y.isCollapsed) return {};
2245
- const J = N.getClientRects().item(0) ?? N.getBoundingClientRect();
2246
- if (J.width === 0 && J.height === 0) return {};
2247
- const S = l.value;
2248
- if (!S) return {};
2249
- const _ = S.getBoundingClientRect(), R = _.width, I = J.left + J.width / 2, A = Math.max(R / 2 + Qe, Math.min(I, window.innerWidth - R / 2 - Qe)), q = J.top - _.height - a;
2250
- return q < 0 ? {} : {
2237
+ const g = window.getSelection();
2238
+ if (!g || g.rangeCount === 0) return {};
2239
+ const _ = t.editor?.rootElement;
2240
+ if (!_) return {};
2241
+ const O = g.getRangeAt(0);
2242
+ if (!_.contains(
2243
+ O.commonAncestorContainer.nodeType === 3 ? O.commonAncestorContainer.parentNode : O.commonAncestorContainer
2244
+ ) || g.isCollapsed) return {};
2245
+ const ee = O.getClientRects().item(0) ?? O.getBoundingClientRect();
2246
+ if (ee.width === 0 && ee.height === 0) return {};
2247
+ const D = l.value;
2248
+ if (!D) return {};
2249
+ const S = D.getBoundingClientRect(), N = S.width, A = ee.left + ee.width / 2, E = Math.max(N / 2 + Qe, Math.min(A, window.innerWidth - N / 2 - Qe)), B = ee.top - S.height - a;
2250
+ return B < 0 ? {} : {
2251
2251
  position: "fixed",
2252
- left: `${A}px`,
2253
- top: `${q}px`
2252
+ left: `${E}px`,
2253
+ top: `${B}px`
2254
2254
  };
2255
- }, p = (y) => {
2256
- let T = 0;
2257
- const N = () => {
2258
- cancelAnimationFrame(T), T = requestAnimationFrame(y);
2259
- }, J = N, S = N;
2260
- return window.addEventListener("scroll", J, { capture: !0, passive: !0 }), window.addEventListener("resize", S, { passive: !0 }), () => {
2261
- cancelAnimationFrame(T), window.removeEventListener("scroll", J, { capture: !0 }), window.removeEventListener("resize", S);
2255
+ }, p = (g) => {
2256
+ let _ = 0;
2257
+ const O = () => {
2258
+ cancelAnimationFrame(_), _ = requestAnimationFrame(g);
2259
+ }, ee = O, D = O;
2260
+ return window.addEventListener("scroll", ee, { capture: !0, passive: !0 }), window.addEventListener("resize", D, { passive: !0 }), () => {
2261
+ cancelAnimationFrame(_), window.removeEventListener("scroll", ee, { capture: !0 }), window.removeEventListener("resize", D);
2262
2262
  };
2263
- }, C = (y, T) => {
2264
- y && (i.value[T] = y);
2263
+ }, C = (g, _) => {
2264
+ g && (i.value[_] = g);
2265
2265
  };
2266
- Q(o, () => {
2266
+ te(o, () => {
2267
2267
  i.value = [];
2268
2268
  });
2269
- const M = V(() => [
2269
+ const L = I(() => [
2270
2270
  {
2271
2271
  key: "strong",
2272
2272
  label: "bold",
2273
2273
  type: "icon",
2274
2274
  ariaLabel: "Bold",
2275
- action: (y) => {
2276
- y.restoreSelection(), y.toggleInline("strong"), y.focus(), y.announce(y.isInlineActive("strong") ? "Bold enabled" : "Bold disabled");
2275
+ action: (g) => {
2276
+ g.restoreSelection(), g.toggleInline("strong"), g.focus(), g.announce(g.isInlineActive("strong") ? "Bold enabled" : "Bold disabled");
2277
2277
  },
2278
- isActive: (y) => y.isInlineActive("strong")
2278
+ isActive: (g) => g.isInlineActive("strong")
2279
2279
  },
2280
2280
  {
2281
2281
  key: "em",
2282
2282
  label: "italic",
2283
2283
  type: "icon",
2284
2284
  ariaLabel: "Italic",
2285
- action: (y) => {
2286
- y.restoreSelection(), y.toggleInline("em"), y.focus(), y.announce(y.isInlineActive("em") ? "Italic enabled" : "Italic disabled");
2285
+ action: (g) => {
2286
+ g.restoreSelection(), g.toggleInline("em"), g.focus(), g.announce(g.isInlineActive("em") ? "Italic enabled" : "Italic disabled");
2287
2287
  },
2288
- isActive: (y) => y.isInlineActive("em")
2288
+ isActive: (g) => g.isInlineActive("em")
2289
2289
  },
2290
2290
  {
2291
2291
  key: "h1",
2292
2292
  label: "head",
2293
2293
  type: "icon",
2294
2294
  ariaLabel: "Heading 1",
2295
- action: (y) => {
2296
- y.restoreSelection(), y.toggleBlock("h1"), y.focus(), y.announce(y.isBlockActive("h1") ? "Heading level 1 enabled" : "Heading level 1 disabled");
2295
+ action: (g) => {
2296
+ g.restoreSelection(), g.toggleBlock("h1"), g.focus(), g.announce(g.isBlockActive("h1") ? "Heading level 1 enabled" : "Heading level 1 disabled");
2297
2297
  },
2298
- isActive: (y) => y.isBlockActive("h1")
2298
+ isActive: (g) => g.isBlockActive("h1")
2299
2299
  },
2300
2300
  {
2301
2301
  key: "h4",
@@ -2303,61 +2303,61 @@ const Lt = (e) => {
2303
2303
  type: "icon",
2304
2304
  ariaLabel: "Heading 4",
2305
2305
  size: 12,
2306
- action: (y) => {
2307
- y.restoreSelection(), y.toggleBlock("h4"), y.focus(), y.announce(y.isBlockActive("h4") ? "Heading level 4 enabled" : "Heading level 4 disabled");
2306
+ action: (g) => {
2307
+ g.restoreSelection(), g.toggleBlock("h4"), g.focus(), g.announce(g.isBlockActive("h4") ? "Heading level 4 enabled" : "Heading level 4 disabled");
2308
2308
  },
2309
- isActive: (y) => y.isBlockActive("h4")
2309
+ isActive: (g) => g.isBlockActive("h4")
2310
2310
  },
2311
2311
  {
2312
2312
  key: "quote",
2313
2313
  label: "❝",
2314
2314
  type: "text",
2315
2315
  ariaLabel: "Blockquote",
2316
- action: (y) => {
2317
- y.restoreSelection(), y.toggleBlock("blockquote"), y.focus(), y.announce(y.isBlockActive("blockquote") ? "Blockquote enabled" : "Blockquote disabled");
2316
+ action: (g) => {
2317
+ g.restoreSelection(), g.toggleBlock("blockquote"), g.focus(), g.announce(g.isBlockActive("blockquote") ? "Blockquote enabled" : "Blockquote disabled");
2318
2318
  },
2319
- isActive: (y) => y.isBlockActive("blockquote")
2319
+ isActive: (g) => g.isBlockActive("blockquote")
2320
2320
  }
2321
- ]), D = V(() => [
2322
- ...M.value,
2321
+ ]), R = I(() => [
2322
+ ...L.value,
2323
2323
  ...t.editor?.buttons ?? []
2324
2324
  ]), $ = async () => {
2325
2325
  await $e(), i.value[0]?.focus();
2326
- }, k = (y) => {
2327
- const T = i.value, N = T.indexOf(document.activeElement);
2328
- if (y.key === "ArrowRight") {
2329
- y.preventDefault();
2330
- const J = N < T.length - 1 ? N + 1 : 0;
2331
- T[J]?.focus();
2326
+ }, k = (g) => {
2327
+ const _ = i.value, O = _.indexOf(document.activeElement);
2328
+ if (g.key === "ArrowRight") {
2329
+ g.preventDefault();
2330
+ const ee = O < _.length - 1 ? O + 1 : 0;
2331
+ _[ee]?.focus();
2332
2332
  }
2333
- if (y.key === "ArrowLeft") {
2334
- y.preventDefault();
2335
- const J = N > 0 ? N - 1 : T.length - 1;
2336
- T[J]?.focus();
2333
+ if (g.key === "ArrowLeft") {
2334
+ g.preventDefault();
2335
+ const ee = O > 0 ? O - 1 : _.length - 1;
2336
+ _[ee]?.focus();
2337
2337
  }
2338
- y.key === "Home" && (y.preventDefault(), T[0]?.focus()), y.key === "End" && (y.preventDefault(), T[T.length - 1]?.focus()), y.key === "Escape" && (y.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
2338
+ g.key === "Home" && (g.preventDefault(), _[0]?.focus()), g.key === "End" && (g.preventDefault(), _[_.length - 1]?.focus()), g.key === "Escape" && (g.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
2339
2339
  }, H = () => {
2340
2340
  cancelAnimationFrame(u), u = requestAnimationFrame(() => {
2341
- const y = window.getSelection();
2342
- if (!y || y.rangeCount === 0) {
2341
+ const g = window.getSelection();
2342
+ if (!g || g.rangeCount === 0) {
2343
2343
  o.value && (o.value = !1);
2344
2344
  return;
2345
2345
  }
2346
- const T = t.editor?.rootElement;
2347
- if (!T) return;
2348
- const N = y.getRangeAt(0), J = N.commonAncestorContainer.nodeType === 3 ? N.commonAncestorContainer.parentNode ?? N.commonAncestorContainer : N.commonAncestorContainer, S = T.contains(J) && !y.isCollapsed;
2349
- o.value !== S && (o.value = S);
2346
+ const _ = t.editor?.rootElement;
2347
+ if (!_) return;
2348
+ const O = g.getRangeAt(0), ee = O.commonAncestorContainer.nodeType === 3 ? O.commonAncestorContainer.parentNode ?? O.commonAncestorContainer : O.commonAncestorContainer, D = _.contains(ee) && !g.isCollapsed;
2349
+ o.value !== D && (o.value = D);
2350
2350
  });
2351
2351
  };
2352
- return ce(() => {
2352
+ return de(() => {
2353
2353
  document.addEventListener("selectionchange", H);
2354
- }), Te(() => {
2354
+ }), _e(() => {
2355
2355
  c?.(), r?.disconnect(), r = null, cancelAnimationFrame(u), document.removeEventListener("selectionchange", H);
2356
2356
  }), n({
2357
2357
  focusFirstButton: $
2358
- }), (y, T) => (d(), te(Fe, { to: "body" }, [
2358
+ }), (g, _) => (d(), ne(Fe, { to: "body" }, [
2359
2359
  j(Ee, { name: "tooltip-fade" }, {
2360
- default: ee(() => [
2360
+ default: ae(() => [
2361
2361
  o.value ? (d(), b("div", {
2362
2362
  key: 0,
2363
2363
  ref_key: "toolbarRef",
@@ -2370,22 +2370,22 @@ const Lt = (e) => {
2370
2370
  tabindex: "-1",
2371
2371
  onKeydown: k
2372
2372
  }, [
2373
- T[0] || (T[0] = x("div", { class: "arrow" }, null, -1)),
2374
- (d(!0), b(ue, null, Ce(D.value, (N, J) => (d(), b("button", {
2375
- key: N.key ?? J,
2373
+ _[0] || (_[0] = x("div", { class: "arrow" }, null, -1)),
2374
+ (d(!0), b(ue, null, Ce(R.value, (O, ee) => (d(), b("button", {
2375
+ key: O.key ?? ee,
2376
2376
  type: "button",
2377
2377
  ref_for: !0,
2378
- ref: (S) => C(S, J),
2379
- class: fe({ "is-active": N.isActive?.(t.editor) }),
2380
- "aria-pressed": N.isActive?.(t.editor),
2381
- onMousedown: ve((S) => N.action(t.editor), ["prevent"]),
2382
- "aria-label": N.ariaLabel
2378
+ ref: (D) => C(D, ee),
2379
+ class: fe({ "is-active": O.isActive?.(t.editor) }),
2380
+ "aria-pressed": O.isActive?.(t.editor),
2381
+ onMousedown: ve((D) => O.action(t.editor), ["prevent"]),
2382
+ "aria-label": O.ariaLabel
2383
2383
  }, [
2384
- N.type === "icon" ? (d(), te(pe, {
2384
+ O.type === "icon" ? (d(), ne(pe, {
2385
2385
  key: 0,
2386
- name: N.label,
2387
- size: N.size ?? 14
2388
- }, null, 8, ["name", "size"])) : (d(), b("span", _a, P(N.label), 1))
2386
+ name: O.label,
2387
+ size: O.size ?? 14
2388
+ }, null, 8, ["name", "size"])) : (d(), b("span", Ta, P(O.label), 1))
2389
2389
  ], 42, Sa))), 128))
2390
2390
  ], 44, Da)) : F("", !0)
2391
2391
  ]),
@@ -2393,7 +2393,7 @@ const Lt = (e) => {
2393
2393
  })
2394
2394
  ]));
2395
2395
  }
2396
- }), Za = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-a4eb014c"]]), za = { class: "editor" }, mt = /* @__PURE__ */ Z({
2396
+ }), Za = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-a4eb014c"]]), za = { class: "editor" }, mt = /* @__PURE__ */ q({
2397
2397
  __name: "Editor",
2398
2398
  props: /* @__PURE__ */ ie({
2399
2399
  ariaLabel: {},
@@ -2409,14 +2409,14 @@ const Lt = (e) => {
2409
2409
  }),
2410
2410
  emits: ["update:modelValue"],
2411
2411
  setup(e, { expose: n }) {
2412
- const t = be(e, "modelValue"), a = e, o = he(), i = w(), l = w(null), s = w(null);
2413
- return Q(
2412
+ const t = be(e, "modelValue"), a = e, o = he(), i = M(), l = M(null), s = M(null);
2413
+ return te(
2414
2414
  () => t.value,
2415
2415
  (r) => {
2416
2416
  const c = s.value?.getRoot()?.value;
2417
2417
  c && c.innerHTML !== r && (c.innerHTML = r, l.value?.normalize());
2418
2418
  }
2419
- ), ce(() => {
2419
+ ), de(() => {
2420
2420
  const c = s.value?.getRoot()?.value;
2421
2421
  if (!c) return;
2422
2422
  l.value = a1(c, {
@@ -2433,7 +2433,7 @@ const Lt = (e) => {
2433
2433
  ref_key: "contentRef",
2434
2434
  ref: s,
2435
2435
  editor: l.value,
2436
- "editor-id": E(o),
2436
+ "editor-id": z(o),
2437
2437
  "aria-label": e.ariaLabel,
2438
2438
  "write-here-text": e.writeHereText,
2439
2439
  "min-image-resolution": e.minImageResolution,
@@ -2443,7 +2443,7 @@ const Lt = (e) => {
2443
2443
  ref_key: "toolbarRef",
2444
2444
  ref: i,
2445
2445
  editor: l.value,
2446
- "editor-id": E(o)
2446
+ "editor-id": z(o)
2447
2447
  }, null, 8, ["editor", "editor-id"])
2448
2448
  ]));
2449
2449
  }
@@ -2451,7 +2451,7 @@ const Lt = (e) => {
2451
2451
  mt.install = (e) => {
2452
2452
  e.component("Editor", mt);
2453
2453
  };
2454
- const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"], Oa = ["multiple", "accept", "disabled"], Na = {
2454
+ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"], Na = ["multiple", "accept", "disabled"], Oa = {
2455
2455
  key: 1,
2456
2456
  class: "ui-upload__list"
2457
2457
  }, Fa = { class: "ui-upload__item--default" }, Pa = { class: "ui-upload__file-name" }, Ka = { class: "ui-upload__file-size" }, Ua = {
@@ -2474,7 +2474,7 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2474
2474
  }, Ja = { class: "ui-upload__actions" }, Qa = {
2475
2475
  class: "sr-only",
2476
2476
  "aria-live": "polite"
2477
- }, e2 = ["id"], t2 = /* @__PURE__ */ Z({
2477
+ }, e2 = ["id"], t2 = /* @__PURE__ */ q({
2478
2478
  __name: "Upload",
2479
2479
  props: /* @__PURE__ */ ie({
2480
2480
  multiple: { type: Boolean, default: !1 },
@@ -2492,92 +2492,92 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2492
2492
  }),
2493
2493
  emits: /* @__PURE__ */ ie(["select", "upload", "remove"], ["update:modelValue"]),
2494
2494
  setup(e, { emit: n }) {
2495
- const t = be(e, "modelValue"), a = e, o = n, i = w(0), l = w(""), s = w(!1), r = he(), c = w(), u = V(() => t.value), h = V(() => a.maxSize === 1 / 0 ? "Unlimited" : S(a.maxSize)), m = V(() => !a.disabled && (a.multiple || t.value.length === 0)), p = V(() => u.value.some((I) => I.status === "uploading")), C = () => m.value && c.value?.click(), M = () => {
2495
+ const t = be(e, "modelValue"), a = e, o = n, i = M(0), l = M(""), s = M(!1), r = he(), c = M(), u = I(() => t.value), h = I(() => a.maxSize === 1 / 0 ? "Unlimited" : D(a.maxSize)), m = I(() => !a.disabled && (a.multiple || t.value.length === 0)), p = I(() => u.value.some((A) => A.status === "uploading")), C = () => m.value && c.value?.click(), L = () => {
2496
2496
  a.disabled || (i.value++, s.value = !0);
2497
- }, D = () => {
2497
+ }, R = () => {
2498
2498
  i.value = Math.max(0, i.value - 1), i.value === 0 && (s.value = !1);
2499
- }, $ = (I) => {
2500
- if (!a.disabled && !(!a.multiple && t.value.length > 0) && (i.value = 0, s.value = !1, !!I.dataTransfer)) {
2501
- if (!a.multiple && I.dataTransfer?.files.length) {
2502
- const A = I.dataTransfer.files[0];
2503
- H([A]);
2499
+ }, $ = (A) => {
2500
+ if (!a.disabled && !(!a.multiple && t.value.length > 0) && (i.value = 0, s.value = !1, !!A.dataTransfer)) {
2501
+ if (!a.multiple && A.dataTransfer?.files.length) {
2502
+ const E = A.dataTransfer.files[0];
2503
+ H([E]);
2504
2504
  return;
2505
2505
  }
2506
- H(Array.from(I.dataTransfer.files));
2506
+ H(Array.from(A.dataTransfer.files));
2507
2507
  }
2508
- }, k = (I) => {
2509
- const A = I.target;
2510
- A.files && (H(Array.from(A.files)), A.value = "");
2511
- }, H = (I) => {
2512
- const A = [];
2513
- for (const ne of I) {
2514
- if (u.value.length + A.length >= a.maxFiles) break;
2515
- ne.size > a.maxSize || A.push({
2508
+ }, k = (A) => {
2509
+ const E = A.target;
2510
+ E.files && (H(Array.from(E.files)), E.value = "");
2511
+ }, H = (A) => {
2512
+ const E = [];
2513
+ for (const Y of A) {
2514
+ if (u.value.length + E.length >= a.maxFiles) break;
2515
+ Y.size > a.maxSize || E.push({
2516
2516
  id: crypto.randomUUID(),
2517
- file: ne,
2517
+ file: Y,
2518
2518
  progress: 0,
2519
2519
  status: "idle"
2520
2520
  });
2521
2521
  }
2522
- if (!A.length) return;
2523
- o("select", A.map((ne) => ne.file));
2524
- const q = [...u.value, ...A];
2525
- t.value = q, a.autoUpload && A.forEach(y);
2526
- }, y = (I) => {
2527
- const A = new AbortController();
2528
- I.progress = 0, I.error = void 0, I.status = "uploading", I.controller = A, _(`Started uploading ${I.file.name}`);
2529
- const q = () => {
2530
- A.signal.removeEventListener("abort", q);
2522
+ if (!E.length) return;
2523
+ o("select", E.map((Y) => Y.file));
2524
+ const B = [...u.value, ...E];
2525
+ t.value = B, a.autoUpload && E.forEach(g);
2526
+ }, g = (A) => {
2527
+ const E = new AbortController();
2528
+ A.progress = 0, A.error = void 0, A.status = "uploading", A.controller = E, S(`Started uploading ${A.file.name}`);
2529
+ const B = () => {
2530
+ E.signal.removeEventListener("abort", B);
2531
2531
  };
2532
- A.signal.addEventListener("abort", q);
2533
- const ne = {
2534
- signal: A.signal,
2535
- onProgress: (oe) => {
2536
- I.progress = oe, J();
2532
+ E.signal.addEventListener("abort", B);
2533
+ const Y = {
2534
+ signal: E.signal,
2535
+ onProgress: (Q) => {
2536
+ A.progress = Q, ee();
2537
2537
  },
2538
2538
  done: () => {
2539
- I.status = "success", I.progress = 100, I.controller = void 0, _(`Finished uploading ${I.file.name}`), J();
2539
+ A.status = "success", A.progress = 100, A.controller = void 0, S(`Finished uploading ${A.file.name}`), ee();
2540
2540
  },
2541
- fail: (oe) => {
2542
- I.status = "error", I.error = oe, I.controller = void 0, _(`Failed to upload ${I.file.name}: ${oe}`), J();
2541
+ fail: (Q) => {
2542
+ A.status = "error", A.error = Q, A.controller = void 0, S(`Failed to upload ${A.file.name}: ${Q}`), ee();
2543
2543
  }
2544
2544
  };
2545
- o("upload", I, ne);
2546
- }, T = (I) => {
2547
- I.controller && (I.controller.abort(), I.status = "canceled", I.controller = void 0, _(`Canceled uploading ${I.file.name}`), J());
2548
- }, N = (I) => {
2549
- I.status !== "error" && I.status !== "canceled" || y(I);
2550
- }, J = () => t.value = [...u.value], S = (I) => {
2551
- const A = ["B", "KB", "MB", "GB", "TB"];
2552
- let q = 0;
2553
- for (; I >= 1024 && q < A.length - 1; )
2554
- I /= 1024, q++;
2555
- return `${I.toFixed(2)} ${A[q]}`;
2556
- }, _ = (I) => {
2545
+ o("upload", A, Y);
2546
+ }, _ = (A) => {
2547
+ A.controller && (A.controller.abort(), A.status = "canceled", A.controller = void 0, S(`Canceled uploading ${A.file.name}`), ee());
2548
+ }, O = (A) => {
2549
+ A.status !== "error" && A.status !== "canceled" || g(A);
2550
+ }, ee = () => t.value = [...u.value], D = (A) => {
2551
+ const E = ["B", "KB", "MB", "GB", "TB"];
2552
+ let B = 0;
2553
+ for (; A >= 1024 && B < E.length - 1; )
2554
+ A /= 1024, B++;
2555
+ return `${A.toFixed(2)} ${E[B]}`;
2556
+ }, S = (A) => {
2557
2557
  l.value = "", requestAnimationFrame(() => {
2558
- l.value = I;
2558
+ l.value = A;
2559
2559
  });
2560
- }, R = (I) => {
2561
- I.controller && I.controller.abort(), o("remove", I), t.value = u.value.filter((A) => A.id !== I.id);
2560
+ }, N = (A) => {
2561
+ A.controller && A.controller.abort(), o("remove", A), t.value = u.value.filter((E) => E.id !== A.id);
2562
2562
  };
2563
- return (I, A) => (d(), b("div", {
2563
+ return (A, E) => (d(), b("div", {
2564
2564
  role: "button",
2565
2565
  class: "ui-upload",
2566
2566
  tabindex: e.disabled ? -1 : 0,
2567
2567
  "aria-label": e.ariaLabel || "File upload area",
2568
- "aria-describedby": s.value ? E(r) : void 0,
2568
+ "aria-describedby": s.value ? z(r) : void 0,
2569
2569
  "aria-busy": p.value ? "true" : void 0,
2570
2570
  "aria-disabled": e.disabled ? "true" : void 0,
2571
2571
  "data-disabled": e.disabled || void 0,
2572
2572
  "data-dragging": s.value || void 0,
2573
- onClick: A[0] || (A[0] = (q) => !e.disabled && C()),
2573
+ onClick: E[0] || (E[0] = (B) => !e.disabled && C()),
2574
2574
  onKeydown: [
2575
- A[1] || (A[1] = ye(ve((q) => !e.disabled && C(), ["stop", "prevent"]), ["enter"])),
2576
- A[2] || (A[2] = ye(ve((q) => !e.disabled && C(), ["prevent"]), ["space"]))
2575
+ E[1] || (E[1] = ye(ve((B) => !e.disabled && C(), ["stop", "prevent"]), ["enter"])),
2576
+ E[2] || (E[2] = ye(ve((B) => !e.disabled && C(), ["prevent"]), ["space"]))
2577
2577
  ],
2578
- onDragover: A[3] || (A[3] = ve((q) => !e.disabled && M(), ["prevent"])),
2579
- onDragleave: D,
2580
- onDrop: A[4] || (A[4] = ve((q) => !e.disabled && $(q), ["prevent"]))
2578
+ onDragover: E[3] || (E[3] = ve((B) => !e.disabled && L(), ["prevent"])),
2579
+ onDragleave: R,
2580
+ onDrop: E[4] || (E[4] = ve((B) => !e.disabled && $(B), ["prevent"]))
2581
2581
  }, [
2582
2582
  x("input", {
2583
2583
  type: "file",
@@ -2588,8 +2588,8 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2588
2588
  accept: e.accept,
2589
2589
  disabled: e.disabled,
2590
2590
  onChange: k
2591
- }, null, 40, Oa),
2592
- e.multiple || !e.multiple && t.value.length === 0 ? G(I.$slots, "default", {
2591
+ }, null, 40, Na),
2592
+ e.multiple || !e.multiple && t.value.length === 0 ? J(A.$slots, "default", {
2593
2593
  key: 0,
2594
2594
  dragging: s.value
2595
2595
  }, () => [
@@ -2597,77 +2597,77 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2597
2597
  name: "upload",
2598
2598
  size: 32
2599
2599
  }),
2600
- A[6] || (A[6] = x("p", null, "Drag and Drop files here", -1)),
2601
- A[7] || (A[7] = x("span", null, "or", -1)),
2600
+ E[6] || (E[6] = x("p", null, "Drag and Drop files here", -1)),
2601
+ E[7] || (E[7] = x("span", null, "or", -1)),
2602
2602
  j(Le, {
2603
2603
  type: "button",
2604
2604
  class: "btn btn-outline"
2605
2605
  }, {
2606
- default: ee(() => [...A[5] || (A[5] = [
2606
+ default: ae(() => [...E[5] || (E[5] = [
2607
2607
  Me("Choose File", -1)
2608
2608
  ])]),
2609
2609
  _: 1
2610
2610
  }),
2611
2611
  x("span", null, "Maximum size: " + P(h.value), 1)
2612
2612
  ], !0) : F("", !0),
2613
- u.value?.length ? (d(), b("ul", Na, [
2614
- (d(!0), b(ue, null, Ce(u.value, (q) => (d(), b("li", {
2615
- key: q.id,
2613
+ u.value?.length ? (d(), b("ul", Oa, [
2614
+ (d(!0), b(ue, null, Ce(u.value, (B) => (d(), b("li", {
2615
+ key: B.id,
2616
2616
  class: "ui-upload__item"
2617
2617
  }, [
2618
- G(I.$slots, "file", {
2619
- file: q,
2620
- remove: () => R(q),
2621
- cancel: () => T(q),
2622
- retry: () => N(q)
2618
+ J(A.$slots, "file", {
2619
+ file: B,
2620
+ remove: () => N(B),
2621
+ cancel: () => _(B),
2622
+ retry: () => O(B)
2623
2623
  }, () => [
2624
2624
  x("div", Fa, [
2625
- x("span", Pa, P(q.file.name), 1),
2626
- x("span", Ka, P(S(q.file.size)), 1)
2625
+ x("span", Pa, P(B.file.name), 1),
2626
+ x("span", Ka, P(D(B.file.size)), 1)
2627
2627
  ]),
2628
- q.status === "uploading" ? (d(), b("div", Ua, [
2629
- x("span", ja, P(q.progress) + "% ", 1),
2628
+ B.status === "uploading" ? (d(), b("div", Ua, [
2629
+ x("span", ja, P(B.progress) + "% ", 1),
2630
2630
  x("progress", {
2631
2631
  class: "ui-upload__progress",
2632
- value: q.progress,
2632
+ value: B.progress,
2633
2633
  max: "100",
2634
- "aria-label": `Upload progress for ${q.file.name}`
2634
+ "aria-label": `Upload progress for ${B.file.name}`
2635
2635
  }, null, 8, Wa)
2636
2636
  ])) : F("", !0),
2637
- q.status === "success" ? (d(), b("span", Ya, " Uploaded successful ")) : F("", !0),
2638
- q.status === "error" ? (d(), b("span", Xa, P(q.error || "Upload failed"), 1)) : F("", !0),
2639
- q.status === "canceled" ? (d(), b("span", Ga, " Upload canceled ")) : F("", !0),
2637
+ B.status === "success" ? (d(), b("span", Ya, " Uploaded successful ")) : F("", !0),
2638
+ B.status === "error" ? (d(), b("span", Xa, P(B.error || "Upload failed"), 1)) : F("", !0),
2639
+ B.status === "canceled" ? (d(), b("span", Ga, " Upload canceled ")) : F("", !0),
2640
2640
  x("div", Ja, [
2641
- q.status === "uploading" ? (d(), te(Le, {
2641
+ B.status === "uploading" ? (d(), ne(Le, {
2642
2642
  key: 0,
2643
2643
  type: "button",
2644
2644
  class: "btn-danger btn-xs",
2645
- onClick: ve((ne) => T(q), ["stop"])
2645
+ onClick: ve((Y) => _(B), ["stop"])
2646
2646
  }, {
2647
- default: ee(() => [...A[8] || (A[8] = [
2647
+ default: ae(() => [...E[8] || (E[8] = [
2648
2648
  Me(" Cancel ", -1)
2649
2649
  ])]),
2650
2650
  _: 1
2651
2651
  }, 8, ["onClick"])) : F("", !0),
2652
- q.status === "error" || q.status === "canceled" ? (d(), te(Le, {
2652
+ B.status === "error" || B.status === "canceled" ? (d(), ne(Le, {
2653
2653
  key: 1,
2654
2654
  type: "button",
2655
2655
  class: "btn-info btn-xs",
2656
- onClick: ve((ne) => N(q), ["stop"])
2656
+ onClick: ve((Y) => O(B), ["stop"])
2657
2657
  }, {
2658
- default: ee(() => [...A[9] || (A[9] = [
2658
+ default: ae(() => [...E[9] || (E[9] = [
2659
2659
  Me(" Retry ", -1)
2660
2660
  ])]),
2661
2661
  _: 1
2662
2662
  }, 8, ["onClick"])) : F("", !0),
2663
- q.status !== "uploading" ? (d(), te(Le, {
2663
+ B.status !== "uploading" ? (d(), ne(Le, {
2664
2664
  key: 2,
2665
2665
  type: "button",
2666
2666
  class: "btn-outline btn-xs",
2667
- onClick: ve((ne) => R(q), ["stop"]),
2667
+ onClick: ve((Y) => N(B), ["stop"]),
2668
2668
  "aria-label": "Remove file"
2669
2669
  }, {
2670
- default: ee(() => [...A[10] || (A[10] = [
2670
+ default: ae(() => [...E[10] || (E[10] = [
2671
2671
  Me(" Remove ", -1)
2672
2672
  ])]),
2673
2673
  _: 1
@@ -2678,7 +2678,7 @@ const qa = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2678
2678
  ])) : F("", !0),
2679
2679
  x("div", Qa, P(l.value), 1),
2680
2680
  x("p", {
2681
- id: E(r),
2681
+ id: z(r),
2682
2682
  class: "sr-only"
2683
2683
  }, " Drop files to upload ", 8, e2)
2684
2684
  ], 40, qa));
@@ -2692,7 +2692,7 @@ const a2 = (e) => {
2692
2692
  return window.addEventListener("scroll", n, !0), window.addEventListener("resize", t), () => {
2693
2693
  window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", t);
2694
2694
  };
2695
- }, n2 = ["aria-describedby", "aria-disabled", "aria-expanded"], o2 = ["aria-hidden", "data-placement"], l2 = 8, r2 = 6, s2 = /* @__PURE__ */ Z({
2695
+ }, n2 = ["aria-describedby", "aria-disabled", "aria-expanded"], o2 = ["aria-hidden", "data-placement"], l2 = 8, r2 = 6, s2 = /* @__PURE__ */ q({
2696
2696
  __name: "Tooltip",
2697
2697
  props: {
2698
2698
  content: {},
@@ -2701,7 +2701,7 @@ const a2 = (e) => {
2701
2701
  disabled: { type: Boolean, default: !1 }
2702
2702
  },
2703
2703
  setup(e) {
2704
- const n = e, t = l2 + r2, a = w(!1), o = `tooltip-${he()}`, i = w(null), l = w(null), s = w({});
2704
+ const n = e, t = l2 + r2, a = M(!1), o = `tooltip-${he()}`, i = M(null), l = M(null), s = M({});
2705
2705
  let r = null, c = null, u = null;
2706
2706
  const h = () => {
2707
2707
  n.disabled || (r && (clearTimeout(r), r = null), n.delay ? r = window.setTimeout(() => {
@@ -2711,36 +2711,36 @@ const a2 = (e) => {
2711
2711
  r && (clearTimeout(r), r = null), a.value = !1;
2712
2712
  }, p = () => {
2713
2713
  if (!i.value || !l.value) return {};
2714
- const M = i.value.getBoundingClientRect(), D = l.value.getBoundingClientRect(), $ = {
2714
+ const L = i.value.getBoundingClientRect(), R = l.value.getBoundingClientRect(), $ = {
2715
2715
  position: "fixed"
2716
2716
  };
2717
2717
  switch (n.placement) {
2718
2718
  case "top":
2719
- $.left = `${M.left + M.width / 2 - D.width / 2}px`, $.top = `${M.top - D.height - t}px`;
2719
+ $.left = `${L.left + L.width / 2 - R.width / 2}px`, $.top = `${L.top - R.height - t}px`;
2720
2720
  break;
2721
2721
  case "bottom":
2722
- $.left = `${M.left + M.width / 2 - D.width / 2}px`, $.top = `${M.bottom + t}px`;
2722
+ $.left = `${L.left + L.width / 2 - R.width / 2}px`, $.top = `${L.bottom + t}px`;
2723
2723
  break;
2724
2724
  case "left":
2725
- $.left = `${M.left - D.width - t}px`, $.top = `${M.top + M.height / 2 - D.height / 2}px`;
2725
+ $.left = `${L.left - R.width - t}px`, $.top = `${L.top + L.height / 2 - R.height / 2}px`;
2726
2726
  break;
2727
2727
  case "right":
2728
- $.left = `${M.right + t}px`, $.top = `${M.top + M.height / 2 - D.height / 2}px`;
2728
+ $.left = `${L.right + t}px`, $.top = `${L.top + L.height / 2 - R.height / 2}px`;
2729
2729
  break;
2730
2730
  }
2731
2731
  return $;
2732
2732
  }, C = () => {
2733
2733
  s.value = p();
2734
2734
  };
2735
- return Q(a, async (M) => {
2736
- if (!M) {
2735
+ return te(a, async (L) => {
2736
+ if (!L) {
2737
2737
  c?.(), c = null, u?.disconnect(), u = null;
2738
2738
  return;
2739
2739
  }
2740
2740
  await $e(), C(), c = a2(C), u = new ResizeObserver(C), l.value && u.observe(l.value), i.value && u.observe(i.value);
2741
- }), Te(() => {
2741
+ }), _e(() => {
2742
2742
  c?.(), u?.disconnect();
2743
- }), (M, D) => (d(), b(ue, null, [
2743
+ }), (L, R) => (d(), b(ue, null, [
2744
2744
  x("span", {
2745
2745
  ref_key: "triggerRef",
2746
2746
  ref: i,
@@ -2754,11 +2754,11 @@ const a2 = (e) => {
2754
2754
  onBlur: m,
2755
2755
  onKeydown: ye(m, ["esc"])
2756
2756
  }, [
2757
- G(M.$slots, "default", {}, void 0, !0)
2757
+ J(L.$slots, "default", {}, void 0, !0)
2758
2758
  ], 40, n2),
2759
- (d(), te(Fe, { to: "body" }, [
2759
+ (d(), ne(Fe, { to: "body" }, [
2760
2760
  j(Ee, { name: "tooltip-fade" }, {
2761
- default: ee(() => [
2761
+ default: ae(() => [
2762
2762
  a.value ? (d(), b("div", {
2763
2763
  key: 0,
2764
2764
  ref_key: "tooltipRef",
@@ -2771,8 +2771,8 @@ const a2 = (e) => {
2771
2771
  "data-placement": n.placement,
2772
2772
  style: Ie(s.value)
2773
2773
  }, [
2774
- D[0] || (D[0] = x("div", { class: "tooltip-arrow" }, null, -1)),
2775
- G(M.$slots, "content", {}, () => [
2774
+ R[0] || (R[0] = x("div", { class: "tooltip-arrow" }, null, -1)),
2775
+ J(L.$slots, "content", {}, () => [
2776
2776
  Me(P(e.content), 1)
2777
2777
  ], !0)
2778
2778
  ], 12, o2)) : F("", !0)
@@ -2789,7 +2789,7 @@ Ct.install = (e) => {
2789
2789
  const i2 = {
2790
2790
  key: 0,
2791
2791
  class: "ui-tag__icon"
2792
- }, u2 = { class: "ui-tag__label" }, c2 = ["aria-label"], d2 = /* @__PURE__ */ Z({
2792
+ }, u2 = { class: "ui-tag__label" }, c2 = ["aria-label"], d2 = /* @__PURE__ */ q({
2793
2793
  __name: "Tag",
2794
2794
  props: {
2795
2795
  as: { default: "span" },
@@ -2802,42 +2802,41 @@ const i2 = {
2802
2802
  },
2803
2803
  emits: ["click", "remove"],
2804
2804
  setup(e, { emit: n }) {
2805
- const t = e, a = n, o = w(), i = V(() => t.clickable || t.as === "button" || t.as === "a"), l = V(() => [
2805
+ const t = e, a = n, o = I(() => t.clickable || t.as === "button" || t.as === "a"), i = I(() => [
2806
2806
  `ui-tag--${t.variant}`,
2807
2807
  `ui-tag--${t.size}`,
2808
2808
  {
2809
2809
  "is-clickable": t.clickable,
2810
2810
  "is-removable": t.removable
2811
2811
  }
2812
- ]), s = V(() => t.clickable && t.as !== "button" && t.as !== "a"), r = (u) => {
2813
- t.disabled || !i.value || a("click", u);
2814
- }, c = () => a("remove");
2815
- return (u, h) => (d(), te(Ze(e.as), {
2816
- ref_key: "rootRef",
2817
- ref: o,
2818
- class: fe(["ui-tag", l.value]),
2812
+ ]), l = I(() => t.clickable && t.as !== "button" && t.as !== "a"), s = (c) => {
2813
+ t.disabled || !o.value || a("click", c);
2814
+ }, r = () => a("remove");
2815
+ return (c, u) => (d(), ne(Ze(e.as), {
2816
+ ref: "rootRef",
2817
+ class: fe(["ui-tag", i.value]),
2819
2818
  "aria-disabled": e.disabled || void 0,
2820
- tabindex: e.disabled ? -1 : s.value ? 0 : void 0,
2821
- role: s.value ? "button" : void 0,
2822
- onClick: r,
2819
+ tabindex: e.disabled ? -1 : l.value ? 0 : void 0,
2820
+ role: l.value ? "button" : void 0,
2821
+ onClick: s,
2823
2822
  onKeydown: [
2824
- h[0] || (h[0] = ye(ve((m) => !e.disabled && i.value && r(m), ["prevent"]), ["enter"])),
2825
- h[1] || (h[1] = ye(ve((m) => !e.disabled && i.value && r(m), ["prevent"]), ["space"]))
2823
+ u[0] || (u[0] = ye(ve((h) => !e.disabled && o.value && s(h), ["prevent"]), ["enter"])),
2824
+ u[1] || (u[1] = ye(ve((h) => !e.disabled && o.value && s(h), ["prevent"]), ["space"]))
2826
2825
  ]
2827
2826
  }, {
2828
- default: ee(() => [
2829
- u.$slots.icon ? (d(), b("span", i2, [
2830
- G(u.$slots, "icon", {}, void 0, !0)
2827
+ default: ae(() => [
2828
+ c.$slots.icon ? (d(), b("span", i2, [
2829
+ J(c.$slots, "icon", {}, void 0, !0)
2831
2830
  ])) : F("", !0),
2832
2831
  x("span", u2, [
2833
- G(u.$slots, "default", {}, void 0, !0)
2832
+ J(c.$slots, "default", {}, void 0, !0)
2834
2833
  ]),
2835
2834
  e.removable ? (d(), b("button", {
2836
2835
  key: 1,
2837
2836
  class: "ui-tag__remove",
2838
2837
  type: "button",
2839
2838
  "aria-label": `Remove ${e.textContent}`,
2840
- onClick: ve(c, ["stop"])
2839
+ onClick: ve(r, ["stop"])
2841
2840
  }, [
2842
2841
  j(pe, {
2843
2842
  name: "close",
@@ -2848,7 +2847,7 @@ const i2 = {
2848
2847
  _: 3
2849
2848
  }, 40, ["class", "aria-disabled", "tabindex", "role"]));
2850
2849
  }
2851
- }), v2 = /* @__PURE__ */ W(d2, [["__scopeId", "data-v-ea48b943"]]), f2 = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], m2 = /* @__PURE__ */ Z({
2850
+ }), v2 = /* @__PURE__ */ W(d2, [["__scopeId", "data-v-8a4d6d55"]]), f2 = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], m2 = /* @__PURE__ */ q({
2852
2851
  __name: "Link",
2853
2852
  props: {
2854
2853
  target: {},
@@ -2875,12 +2874,12 @@ const i2 = {
2875
2874
  "aria-current": e.ariaCurrent,
2876
2875
  rel: e.target === "_blank" ? "noopener noreferrer" : void 0
2877
2876
  }, [
2878
- G(i.$slots, "default", {}, void 0, !0)
2877
+ J(i.$slots, "default", {}, void 0, !0)
2879
2878
  ], 8, f2));
2880
2879
  }
2881
- }), bl = /* @__PURE__ */ W(m2, [["__scopeId", "data-v-0f5d7308"]]), Ne = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ? { type: "letter" } : n === "*" ? { type: "alphanumeric" } : { type: "literal", value: n }), xt = (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, ht = (e, n) => {
2880
+ }), bl = /* @__PURE__ */ W(m2, [["__scopeId", "data-v-0f5d7308"]]), Oe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ? { type: "letter" } : n === "*" ? { type: "alphanumeric" } : { type: "literal", value: n }), xt = (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, ht = (e, n) => {
2882
2881
  if (!e) return "";
2883
- const t = Ne(n);
2882
+ const t = Oe(n);
2884
2883
  let a = "", o = 0;
2885
2884
  for (const i of t) {
2886
2885
  if (i.type === "literal") {
@@ -2898,7 +2897,7 @@ const i2 = {
2898
2897
  }
2899
2898
  return a;
2900
2899
  }, p2 = (e, n) => {
2901
- const a = Ne(n).filter((s) => s.type !== "literal");
2900
+ const a = Oe(n).filter((s) => s.type !== "literal");
2902
2901
  let o = "", i = 0, l = 0;
2903
2902
  for (; i < e.length && l < a.length; ) {
2904
2903
  const s = e[i], r = a[l];
@@ -2913,20 +2912,20 @@ const i2 = {
2913
2912
  }
2914
2913
  return e.length;
2915
2914
  }, g2 = (e, n, t) => {
2916
- const a = Ne(e);
2915
+ const a = Oe(e);
2917
2916
  for (; n > 0 && n < a.length && a[n - 1]?.type === "literal"; )
2918
2917
  n += t;
2919
2918
  return n;
2920
- }, st = (e, n, t, a) => V(() => {
2919
+ }, st = (e, n, t, a) => I(() => {
2921
2920
  const o = [];
2922
2921
  return e.invalid && e.errorMessage && o.push(t), n.hint && o.push(a), o.length > 0 ? o.join(" ") : void 0;
2923
- }), Ke = (e) => V(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), y2 = (e) => V(() => e.disabled === !0 ? "true" : void 0), b2 = (e, n, t) => {
2922
+ }), Ke = (e) => I(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), y2 = (e) => I(() => e.disabled === !0 ? "true" : void 0), b2 = (e, n, t) => {
2924
2923
  n && (n.classList.add("focused"), t("focus", e));
2925
2924
  }, k2 = (e, n, t, a) => {
2926
2925
  at(n, t), t && (t?.classList.remove("focused"), a("blur", e));
2927
2926
  }, at = (e, n) => {
2928
2927
  !e || !n || (e.value.length > 0 ? n.classList.add("filled") : n.classList.remove("filled"));
2929
- }, w2 = ["id"], it = /* @__PURE__ */ Z({
2928
+ }, w2 = ["id"], it = /* @__PURE__ */ q({
2930
2929
  __name: "Hint",
2931
2930
  props: {
2932
2931
  hintId: {}
@@ -2937,10 +2936,10 @@ const i2 = {
2937
2936
  id: e.hintId,
2938
2937
  class: "visually-hidden"
2939
2938
  }, [
2940
- G(n.$slots, "default")
2939
+ J(n.$slots, "default")
2941
2940
  ], 8, w2)) : F("", !0);
2942
2941
  }
2943
- }), M2 = ["id"], ut = /* @__PURE__ */ Z({
2942
+ }), M2 = ["id"], ut = /* @__PURE__ */ q({
2944
2943
  __name: "RequiredHint",
2945
2944
  props: {
2946
2945
  baseId: {},
@@ -2953,7 +2952,7 @@ const i2 = {
2953
2952
  class: "visually-hidden"
2954
2953
  }, " Required field ", 8, M2)) : F("", !0);
2955
2954
  }
2956
- }), L2 = ["id"], ct = /* @__PURE__ */ Z({
2955
+ }), L2 = ["id"], ct = /* @__PURE__ */ q({
2957
2956
  __name: "ErrorMessage",
2958
2957
  props: {
2959
2958
  errorId: {},
@@ -2968,7 +2967,7 @@ const i2 = {
2968
2967
  role: "alert"
2969
2968
  }, P(e.errorMessage), 9, L2)) : F("", !0);
2970
2969
  }
2971
- }), x2 = ["for"], $2 = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], I2 = /* @__PURE__ */ Z({
2970
+ }), x2 = ["for"], $2 = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], I2 = /* @__PURE__ */ q({
2972
2971
  __name: "Input",
2973
2972
  props: /* @__PURE__ */ ie({
2974
2973
  id: {},
@@ -2976,7 +2975,9 @@ const i2 = {
2976
2975
  type: {},
2977
2976
  invalid: { type: Boolean },
2978
2977
  errorMessage: {},
2979
- mask: {}
2978
+ mask: {},
2979
+ currency: {},
2980
+ locale: {}
2980
2981
  }, {
2981
2982
  modelValue: {
2982
2983
  required: !0
@@ -2985,42 +2986,75 @@ const i2 = {
2985
2986
  }),
2986
2987
  emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
2987
2988
  setup(e, { emit: n }) {
2988
- const t = be(e, "modelValue"), a = e, o = n, i = lt(), l = w(null), s = he(), r = `${s}-error`, c = `${s}-hint`, u = Ke(i).value, h = w(!1), m = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), p = V(() => u ? `${c} ${s}-required-hint` : c), C = V(() => a.invalid === !0 && a.errorMessage ? r : void 0), M = V(() => a.type === "password" ? H.value ? "text" : "password" : a.type), D = V(() => {
2989
- const { type: R, ...I } = i;
2990
- return I;
2991
- }), $ = V(() => a.mask ? ht(String(t.value ?? ""), a.mask) : String(t.value ?? "")), k = V(() => Ne(a.mask ?? "").filter((R) => R.type !== "literal").length), H = w(!1), y = () => H.value = !H.value, T = (R) => {
2992
- if (!a.mask) return;
2993
- const I = R.target, A = I.selectionStart ?? 0;
2989
+ const t = be(e, "modelValue"), a = e, o = n, i = lt(), l = M(null), s = he(), r = `${s}-error`, c = `${s}-hint`, u = Ke(i).value, h = M(!1), m = M(!1), p = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), C = I(() => u ? `${c} ${s}-required-hint` : c), L = I(() => a.invalid === !0 && a.errorMessage ? r : void 0), R = I(() => a.type === "password" ? m.value ? "text" : "password" : a.type), $ = I(() => {
2990
+ const { type: B, ...Y } = i;
2991
+ return Y;
2992
+ }), k = I(() => {
2993
+ if (a.currency) {
2994
+ if (t.value === null || t.value === void 0 || t.value === "") return "";
2995
+ const B = String(t.value ?? "").replace(/\D/g, "");
2996
+ return O(B);
2997
+ }
2998
+ return a.mask ? ht(String(t.value ?? ""), a.mask) : String(t.value ?? "");
2999
+ }), H = I(() => a.mask ? Oe(a.mask).filter((B) => B.type !== "literal").length : 0), g = I(() => a.currency ? new Intl.NumberFormat(a.locale ?? "en-US", {
3000
+ style: "currency",
3001
+ currency: a.currency
3002
+ }) : null), _ = I(() => ({
3003
+ input: !0,
3004
+ "input-currency": !!a.currency
3005
+ })), O = (B) => {
3006
+ if (!g.value) return B;
3007
+ const Y = Number(B || "0") / 100;
3008
+ return g.value.format(Y);
3009
+ }, ee = () => m.value = !m.value, D = (B) => {
3010
+ if (!a.mask && !a.currency) return;
3011
+ if (a.currency) {
3012
+ const Z = B.target.value.replace(/\D/g, "");
3013
+ l.value = {
3014
+ rawCaret: Z.length,
3015
+ inputType: B.inputType
3016
+ };
3017
+ return;
3018
+ }
3019
+ const Y = B.target, Q = Y.selectionStart ?? 0;
2994
3020
  l.value = {
2995
- rawCaret: C2(I.value, A),
2996
- inputType: R.inputType
3021
+ rawCaret: C2(Y.value, Q),
3022
+ inputType: B.inputType
2997
3023
  };
2998
- }, N = (R) => {
2999
- const I = R.target;
3000
- let A = a.mask ? p2(I.value, a.mask) : I.value;
3001
- a.mask && (A = A.slice(0, k.value));
3002
- const q = a.mask ? ht(A, a.mask) : A;
3003
- if (I.value = q, t.value = a.type === "number" ? Number(A) : A, a.mask && l.value) {
3004
- let { rawCaret: ne, inputType: oe } = l.value;
3005
- oe.startsWith("insert") && ne++, oe === "deleteContentBackward" && (ne = Math.max(0, ne - 1));
3006
- let de = h2(q, ne);
3007
- de = g2(a.mask, de, 1), I.setSelectionRange(de, de);
3024
+ }, S = (B) => {
3025
+ const Y = B.target;
3026
+ if (a.currency) {
3027
+ const Z = Y.value.replace(/\D/g, "");
3028
+ let w = Z;
3029
+ l.value?.inputType === "deleteContentBackward" && (w = Z.slice(0, -1));
3030
+ const T = O(w);
3031
+ Y.value = T, t.value = Number(w || "0") / 100, l.value = null;
3032
+ return;
3033
+ }
3034
+ let Q = a.mask ? p2(Y.value, a.mask) : Y.value;
3035
+ a.mask && (Q = Q.slice(0, H.value));
3036
+ const ce = a.mask ? ht(Q, a.mask) : Q;
3037
+ if (Y.value = ce, t.value = a.type === "number" ? Number(Q) : Q, a.mask && l.value) {
3038
+ let { rawCaret: Z, inputType: w } = l.value;
3039
+ w.startsWith("insert") && Z++, w === "deleteContentBackward" && (Z = Math.max(0, Z - 1));
3040
+ let T = h2(ce, Z);
3041
+ T = g2(a.mask, T, 1), Y.setSelectionRange(T, T);
3008
3042
  }
3009
3043
  l.value = null;
3010
- }, J = (R) => {
3011
- if (!a.mask || R.key !== "Backspace") return;
3012
- const I = R.target;
3013
- let A = I.selectionStart ?? 0;
3014
- const q = Ne(a.mask);
3015
- for (; A > 0 && q[A - 1]?.type === "literal"; ) A--;
3016
- requestAnimationFrame(() => I.setSelectionRange(A, A));
3017
- }, S = (R) => {
3018
- h.value = !0, o("focus", R);
3019
- }, _ = (R) => {
3020
- h.value = !1, o("blur", R);
3044
+ }, N = (B) => {
3045
+ if (!a.mask || a.currency || B.key !== "Backspace") return;
3046
+ const Y = B.target;
3047
+ let Q = Y.selectionStart ?? 0;
3048
+ const ce = Oe(a.mask);
3049
+ for (; Q > 0 && ce[Q - 1]?.type === "literal"; ) Q--;
3050
+ requestAnimationFrame(() => Y.setSelectionRange(Q, Q));
3051
+ }, A = (B) => {
3052
+ h.value = !0, o("focus", B);
3053
+ }, E = (B) => {
3054
+ h.value = !1, o("blur", B);
3021
3055
  };
3022
- return (R, I) => (d(), b("div", {
3023
- class: fe(["input-box", { required: E(u), error: e.invalid, filled: m.value, focused: h.value }])
3056
+ return (B, Y) => (d(), b("div", {
3057
+ class: fe(["input-box", { required: z(u), error: e.invalid, filled: p.value, focused: h.value }])
3024
3058
  }, [
3025
3059
  x("label", {
3026
3060
  for: e.id,
@@ -3028,58 +3062,58 @@ const i2 = {
3028
3062
  }, P(e.label), 9, x2),
3029
3063
  x("input", ke({
3030
3064
  id: e.id,
3031
- type: M.value
3032
- }, D.value, {
3033
- class: "input",
3034
- onBeforeinput: T,
3035
- onInput: N,
3036
- onFocus: S,
3037
- onBlur: _,
3038
- onKeydown: J,
3039
- value: $.value,
3040
- required: E(u),
3065
+ type: R.value
3066
+ }, $.value, {
3067
+ class: _.value,
3068
+ onBeforeinput: D,
3069
+ onInput: S,
3070
+ onFocus: A,
3071
+ onBlur: E,
3072
+ onKeydown: N,
3073
+ value: k.value,
3074
+ required: z(u),
3041
3075
  "aria-invalid": e.invalid ? "true" : void 0,
3042
- "aria-errormessage": C.value,
3043
- "aria-describedby": E(st)(R.$props, R.$slots, r, p.value).value
3076
+ "aria-errormessage": L.value,
3077
+ "aria-describedby": z(st)(B.$props, B.$slots, r, C.value).value
3044
3078
  }), null, 16, $2),
3045
3079
  j(it, { hintId: c }, {
3046
- default: ee(() => [
3047
- G(R.$slots, "hint", {}, void 0, !0)
3080
+ default: ae(() => [
3081
+ J(B.$slots, "hint", {}, void 0, !0)
3048
3082
  ]),
3049
3083
  _: 3
3050
3084
  }),
3051
3085
  j(ut, {
3052
- baseId: E(s),
3053
- isRequired: E(u)
3086
+ baseId: z(s),
3087
+ isRequired: z(u)
3054
3088
  }, null, 8, ["baseId", "isRequired"]),
3055
3089
  j(ct, {
3056
3090
  errorId: r,
3057
3091
  invalid: e.invalid,
3058
3092
  errorMessage: e.errorMessage
3059
3093
  }, null, 8, ["invalid", "errorMessage"]),
3060
- e.type === "password" ? (d(), te(Le, ke({ key: 0 }, Object.keys(R.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
3094
+ e.type === "password" ? (d(), ne(Le, ke({ key: 0 }, Object.keys(B.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
3061
3095
  type: "button",
3062
3096
  class: "btn-icon",
3063
- onClick: y,
3064
- "aria-label": H.value ? "Hide password" : "Show password"
3097
+ onClick: ee,
3098
+ "aria-label": m.value ? "Hide password" : "Show password"
3065
3099
  }), {
3066
- default: ee(() => [
3100
+ default: ae(() => [
3067
3101
  j(pe, {
3068
- name: H.value ? "eyeOff" : "eye"
3102
+ name: m.value ? "eyeOff" : "eye"
3069
3103
  }, null, 8, ["name"])
3070
3104
  ]),
3071
3105
  _: 1
3072
3106
  }, 16, ["aria-label"])) : F("", !0)
3073
3107
  ], 2));
3074
3108
  }
3075
- }), kl = /* @__PURE__ */ W(I2, [["__scopeId", "data-v-a553eb5b"]]), H2 = ["data-size", "data-shape", "aria-label", "aria-busy"], V2 = {
3109
+ }), kl = /* @__PURE__ */ W(I2, [["__scopeId", "data-v-f23a4492"]]), H2 = ["data-size", "data-shape", "aria-label", "aria-busy"], V2 = {
3076
3110
  key: 1,
3077
3111
  class: "ui-avatar__loading"
3078
3112
  }, B2 = {
3079
3113
  key: 2,
3080
3114
  class: "ui-avatar__fallback",
3081
3115
  "aria-hidden": "true"
3082
- }, A2 = /* @__PURE__ */ Z({
3116
+ }, A2 = /* @__PURE__ */ q({
3083
3117
  __name: "Avatar",
3084
3118
  props: {
3085
3119
  src: {},
@@ -3089,18 +3123,18 @@ const i2 = {
3089
3123
  shape: { default: "circle" }
3090
3124
  },
3091
3125
  setup(e) {
3092
- const n = e, t = w("loading"), a = V(() => n.src && t.value !== "error"), o = V(() => n.name ? n.name.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase() : ""), i = V(() => n.alt ? n.alt : n.name ? n.name : "Avatar"), l = () => t.value = "loaded", s = () => t.value = "error";
3093
- return Q(
3126
+ const n = e, t = M("loading"), a = I(() => n.src && t.value !== "error"), o = I(() => n.name ? n.name.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase() : ""), i = I(() => n.alt ? n.alt : n.name ? n.name : "Avatar"), l = () => t.value = "loaded", s = () => t.value = "error";
3127
+ return te(
3094
3128
  () => n.src,
3095
3129
  () => n.src && (t.value = "loading")
3096
- ), ce(() => !n.src && (t.value = "error")), (r, c) => (d(), b("div", {
3130
+ ), de(() => !n.src && (t.value = "error")), (r, c) => (d(), b("div", {
3097
3131
  class: "ui-avatar",
3098
3132
  "data-size": e.size,
3099
3133
  "data-shape": e.shape,
3100
3134
  "aria-label": a.value ? void 0 : i.value,
3101
3135
  "aria-busy": t.value === "loading" || void 0
3102
3136
  }, [
3103
- a.value ? (d(), te(_e, {
3137
+ a.value ? (d(), ne(Te, {
3104
3138
  key: 0,
3105
3139
  src: e.src,
3106
3140
  alt: e.alt ?? "",
@@ -3108,13 +3142,13 @@ const i2 = {
3108
3142
  onLoad: l,
3109
3143
  onError: s
3110
3144
  }, null, 8, ["src", "alt"])) : t.value === "loading" ? (d(), b("div", V2)) : (d(), b("div", B2, [
3111
- G(r.$slots, "default", {}, () => [
3145
+ J(r.$slots, "default", {}, () => [
3112
3146
  Me(P(o.value), 1)
3113
3147
  ], !0)
3114
3148
  ]))
3115
3149
  ], 8, H2));
3116
3150
  }
3117
- }), wl = /* @__PURE__ */ W(A2, [["__scopeId", "data-v-e36c822a"]]), R2 = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], D2 = ["innerHTML"], S2 = ["id", "aria-disabled", "aria-selected", "onClick"], _2 = ["innerHTML"], T2 = /* @__PURE__ */ Z({
3151
+ }), wl = /* @__PURE__ */ W(A2, [["__scopeId", "data-v-e36c822a"]]), R2 = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled"], D2 = ["innerHTML"], S2 = ["id", "aria-disabled", "aria-selected", "onClick"], T2 = ["innerHTML"], _2 = /* @__PURE__ */ q({
3118
3152
  __name: "Select",
3119
3153
  props: /* @__PURE__ */ ie({
3120
3154
  id: {},
@@ -3128,102 +3162,102 @@ const i2 = {
3128
3162
  }),
3129
3163
  emits: /* @__PURE__ */ ie(["focus", "blur", "change", "click"], ["update:modelValue"]),
3130
3164
  setup(e, { emit: n }) {
3131
- const t = be(e, "modelValue"), a = e, o = n, i = w(!1);
3132
- Q(i, (O) => {
3133
- O ? document.addEventListener("mousedown", oe) : document.removeEventListener("mousedown", oe);
3165
+ const t = be(e, "modelValue"), a = e, o = n, i = M(!1);
3166
+ te(i, (Z) => {
3167
+ Z ? document.addEventListener("mousedown", Q) : document.removeEventListener("mousedown", Q);
3134
3168
  });
3135
- const l = lt(), s = w(!1), r = w(null), c = V(() => a.id ?? he()), u = `${c.value}-label`, h = `${c.value}-listbox`, m = `${c.value}-error`, p = `${c.value}-hint`, C = `${c.value}-value`, M = w(null), D = w(null), $ = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = V(() => M.value !== null ? `${h}-option-${M.value}` : void 0), H = Ke(l).value, y = V(() => H ? `${p} ${c.value}-required-hint` : p), T = V(() => i.value && k.value ? k.value : void 0), N = V(() => D.value !== null ? a.options[D.value]?.value : "");
3136
- Q(
3169
+ const l = lt(), s = M(!1), r = M(null), c = I(() => a.id ?? he()), u = `${c.value}-label`, h = `${c.value}-listbox`, m = `${c.value}-error`, p = `${c.value}-hint`, C = `${c.value}-value`, L = M(null), R = M(null), $ = I(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = I(() => L.value !== null ? `${h}-option-${L.value}` : void 0), H = Ke(l).value, g = I(() => H ? `${p} ${c.value}-required-hint` : p), _ = I(() => i.value && k.value ? k.value : void 0), O = I(() => R.value !== null ? a.options[R.value]?.value : "");
3170
+ te(
3137
3171
  () => t.value,
3138
- () => de()
3139
- ), Q(
3172
+ () => ce()
3173
+ ), te(
3140
3174
  () => a.options,
3141
- () => de(),
3175
+ () => ce(),
3142
3176
  { deep: !0 }
3143
3177
  );
3144
- const J = (O) => {
3145
- s.value = !0, o("focus", O);
3146
- }, S = (O) => {
3147
- const L = O.relatedTarget, z = r.value;
3148
- !z || z?.contains(L) || (s.value = !1, i.value = !1, o("blur", O));
3149
- }, _ = (O) => {
3150
- i.value = !i.value, i.value && t.value.toString().length > 0 && (M.value = M.value ?? a.options.findIndex((L) => !L.disabled)), !(!a.options || a.options.length === 0) && o("click", O);
3151
- }, R = (O, L) => {
3152
- const z = r.value;
3153
- !z || O.disabled || (D.value = L, M.value = L, O && O.key && O.key.toString().length > 0 ? z.classList.add("filled") : z.classList.remove("filled"), t.value = O.key, o("change", O.key));
3154
- }, I = (O) => {
3155
- if (!i.value && ["ArrowDown", "ArrowUp"].includes(O.key)) {
3156
- i.value = !0, M.value = M.value ?? a.options.findIndex((L) => !L.disabled), O.preventDefault();
3178
+ const ee = (Z) => {
3179
+ s.value = !0, o("focus", Z);
3180
+ }, D = (Z) => {
3181
+ const w = Z.relatedTarget, T = r.value;
3182
+ !T || T?.contains(w) || (s.value = !1, i.value = !1, o("blur", Z));
3183
+ }, S = (Z) => {
3184
+ i.value = !i.value, i.value && t.value.toString().length > 0 && (L.value = L.value ?? a.options.findIndex((w) => !w.disabled)), !(!a.options || a.options.length === 0) && o("click", Z);
3185
+ }, N = (Z, w) => {
3186
+ const T = r.value;
3187
+ !T || Z.disabled || (R.value = w, L.value = w, Z && Z.key && Z.key.toString().length > 0 ? T.classList.add("filled") : T.classList.remove("filled"), t.value = Z.key, o("change", Z.key));
3188
+ }, A = (Z) => {
3189
+ if (!i.value && ["ArrowDown", "ArrowUp"].includes(Z.key)) {
3190
+ i.value = !0, L.value = L.value ?? a.options.findIndex((w) => !w.disabled), Z.preventDefault();
3157
3191
  return;
3158
3192
  }
3159
3193
  if (i.value) {
3160
- if (O.key === "ArrowDown" && (A(1), O.preventDefault()), O.key === "ArrowUp" && (A(-1), O.preventDefault()), O.key === "Home") {
3161
- const L = q();
3162
- L >= 0 && (M.value = L), O.preventDefault();
3194
+ if (Z.key === "ArrowDown" && (E(1), Z.preventDefault()), Z.key === "ArrowUp" && (E(-1), Z.preventDefault()), Z.key === "Home") {
3195
+ const w = B();
3196
+ w >= 0 && (L.value = w), Z.preventDefault();
3163
3197
  }
3164
- if (O.key === "End") {
3165
- const L = ne();
3166
- L >= 0 && (M.value = L), O.preventDefault();
3198
+ if (Z.key === "End") {
3199
+ const w = Y();
3200
+ w >= 0 && (L.value = w), Z.preventDefault();
3167
3201
  }
3168
- if (O.key === "Enter" || O.key === " ") {
3169
- if (M.value === null) return;
3170
- const L = a.options[M.value];
3171
- if (!L || L.disabled) return;
3172
- R(L, M.value), i.value = !1, O.preventDefault();
3202
+ if (Z.key === "Enter" || Z.key === " ") {
3203
+ if (L.value === null) return;
3204
+ const w = a.options[L.value];
3205
+ if (!w || w.disabled) return;
3206
+ N(w, L.value), i.value = !1, Z.preventDefault();
3173
3207
  }
3174
- O.key === "Escape" && (i.value = !1);
3208
+ Z.key === "Escape" && (i.value = !1);
3175
3209
  }
3176
- }, A = (O) => {
3177
- if (M.value === null) return;
3178
- let L = M.value;
3210
+ }, E = (Z) => {
3211
+ if (L.value === null) return;
3212
+ let w = L.value;
3179
3213
  do
3180
- L += O;
3181
- while (L >= 0 && L < a.options.length && a.options[L]?.disabled);
3182
- L >= 0 && L < a.options.length && (M.value = L);
3183
- }, q = () => a.options.findIndex((O) => !O.disabled), ne = () => [...a.options].reverse().findIndex((O) => !O.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((O) => !O.disabled) : -1, oe = (O) => {
3184
- const L = r.value;
3185
- !L || L.contains(O.target) || (i.value = !1);
3214
+ w += Z;
3215
+ while (w >= 0 && w < a.options.length && a.options[w]?.disabled);
3216
+ w >= 0 && w < a.options.length && (L.value = w);
3217
+ }, B = () => a.options.findIndex((Z) => !Z.disabled), Y = () => [...a.options].reverse().findIndex((Z) => !Z.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((Z) => !Z.disabled) : -1, Q = (Z) => {
3218
+ const w = r.value;
3219
+ !w || w.contains(Z.target) || (i.value = !1);
3186
3220
  };
3187
- Te(() => {
3188
- document.removeEventListener("mousedown", oe);
3221
+ _e(() => {
3222
+ document.removeEventListener("mousedown", Q);
3189
3223
  });
3190
- const de = () => {
3191
- const O = a.options.findIndex((L) => L.key === t.value);
3192
- if (O > -1) {
3193
- D.value = O, M.value = O;
3194
- const L = r.value;
3195
- L && L.classList.add("filled");
3224
+ const ce = () => {
3225
+ const Z = a.options.findIndex((w) => w.key === t.value);
3226
+ if (Z > -1) {
3227
+ R.value = Z, L.value = Z;
3228
+ const w = r.value;
3229
+ w && w.classList.add("filled");
3196
3230
  }
3197
3231
  };
3198
- return ce(() => {
3232
+ return de(() => {
3199
3233
  if (t.value.toString().length > 0) {
3200
3234
  if (!a.options || a.options.length === 0) return;
3201
- de();
3235
+ ce();
3202
3236
  }
3203
- }), (O, L) => (d(), b("div", {
3237
+ }), (Z, w) => (d(), b("div", {
3204
3238
  ref_key: "selectRef",
3205
3239
  ref: r,
3206
- class: fe(["select-box", { required: Object.keys(O.$attrs).includes("required"), error: e.invalid, filled: $.value, focused: s.value }])
3240
+ class: fe(["select-box", { required: Object.keys(Z.$attrs).includes("required"), error: e.invalid, filled: $.value, focused: s.value }])
3207
3241
  }, [
3208
3242
  x("button", ke({
3209
3243
  id: c.value,
3210
3244
  class: "select-btn",
3211
3245
  role: "combobox",
3212
3246
  type: "button"
3213
- }, O.$attrs, {
3247
+ }, Z.$attrs, {
3214
3248
  "aria-haspopup": "listbox",
3215
3249
  "aria-expanded": i.value,
3216
3250
  "aria-controls": h,
3217
3251
  "aria-invalid": e.invalid ? "true" : void 0,
3218
3252
  "aria-labelledby": `${u} ${C}`,
3219
- "aria-required": E(H),
3220
- "aria-describedby": E(st)(O.$props, O.$slots, m, y.value).value,
3221
- "aria-activedescendant": T.value,
3222
- "aria-disabled": E(l).disabled ? "true" : void 0,
3223
- onBlur: S,
3224
- onFocus: J,
3225
- onClick: _,
3226
- onKeydown: I,
3253
+ "aria-required": z(H),
3254
+ "aria-describedby": z(st)(Z.$props, Z.$slots, m, g.value).value,
3255
+ "aria-activedescendant": _.value,
3256
+ "aria-disabled": z(l).disabled ? "true" : void 0,
3257
+ onBlur: D,
3258
+ onFocus: ee,
3259
+ onClick: S,
3260
+ onKeydown: A,
3227
3261
  ref: "buttonRef"
3228
3262
  }), [
3229
3263
  x("span", {
@@ -3235,7 +3269,7 @@ const i2 = {
3235
3269
  class: "selected-object",
3236
3270
  "aria-live": "polite",
3237
3271
  "aria-atomic": "true",
3238
- innerHTML: N.value
3272
+ innerHTML: O.value
3239
3273
  }, null, 8, D2),
3240
3274
  j(pe, {
3241
3275
  name: "directionDown",
@@ -3243,25 +3277,25 @@ const i2 = {
3243
3277
  })
3244
3278
  ], 16, R2),
3245
3279
  j(Ee, { name: "select" }, {
3246
- default: ee(() => [
3280
+ default: ae(() => [
3247
3281
  Re(x("ul", {
3248
3282
  id: h,
3249
3283
  role: "listbox",
3250
3284
  class: "options"
3251
3285
  }, [
3252
- (d(!0), b(ue, null, Ce(e.options, (z, ae) => (d(), b("li", {
3253
- id: `${h}-option-${ae}`,
3254
- key: ae,
3286
+ (d(!0), b(ue, null, Ce(e.options, (T, oe) => (d(), b("li", {
3287
+ id: `${h}-option-${oe}`,
3288
+ key: oe,
3255
3289
  role: "option",
3256
- class: fe(["option", { "focus-visible": M.value === ae }]),
3257
- "aria-disabled": z.disabled,
3258
- "aria-selected": D.value === ae,
3259
- onClick: (f) => !z.disabled && R(z, ae)
3290
+ class: fe(["option", { "focus-visible": L.value === oe }]),
3291
+ "aria-disabled": T.disabled,
3292
+ "aria-selected": R.value === oe,
3293
+ onClick: (f) => !T.disabled && N(T, oe)
3260
3294
  }, [
3261
3295
  x("div", {
3262
3296
  class: "option-value",
3263
- innerHTML: z.value
3264
- }, null, 8, _2)
3297
+ innerHTML: T.value
3298
+ }, null, 8, T2)
3265
3299
  ], 10, S2))), 128))
3266
3300
  ], 512), [
3267
3301
  [ot, i.value]
@@ -3270,14 +3304,14 @@ const i2 = {
3270
3304
  _: 1
3271
3305
  }),
3272
3306
  j(it, { hintId: p }, {
3273
- default: ee(() => [
3274
- G(O.$slots, "hint", {}, void 0, !0)
3307
+ default: ae(() => [
3308
+ J(Z.$slots, "hint", {}, void 0, !0)
3275
3309
  ]),
3276
3310
  _: 3
3277
3311
  }),
3278
3312
  j(ut, {
3279
3313
  baseId: c.value,
3280
- isRequired: E(H)
3314
+ isRequired: z(H)
3281
3315
  }, null, 8, ["baseId", "isRequired"]),
3282
3316
  j(ct, {
3283
3317
  errorId: m,
@@ -3286,10 +3320,10 @@ const i2 = {
3286
3320
  }, null, 8, ["invalid", "errorMessage"])
3287
3321
  ], 2));
3288
3322
  }
3289
- }), Ml = /* @__PURE__ */ W(T2, [["__scopeId", "data-v-bb0418d3"]]), E2 = ["aria-label"], Z2 = ["onKeydown"], z2 = {
3323
+ }), Ml = /* @__PURE__ */ W(_2, [["__scopeId", "data-v-bb0418d3"]]), E2 = ["aria-label"], Z2 = ["onKeydown"], z2 = {
3290
3324
  key: 1,
3291
3325
  class: "rs-gallery-thumbs"
3292
- }, q2 = ["aria-selected"], O2 = ["onClick"], N2 = /* @__PURE__ */ Z({
3326
+ }, q2 = ["aria-selected"], N2 = ["onClick"], O2 = /* @__PURE__ */ q({
3293
3327
  __name: "GalleryCarousel",
3294
3328
  props: /* @__PURE__ */ ie({
3295
3329
  images: {},
@@ -3310,7 +3344,7 @@ const i2 = {
3310
3344
  }),
3311
3345
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
3312
3346
  setup(e, { emit: n }) {
3313
- const t = be(e, "modelValue"), a = e, o = n, i = w([]), l = w("next"), s = w(null), r = `gallery-caption-${he()}`, c = w(null), u = V(() => t.value), h = V(() => a.images[u.value]), m = (k, H) => {
3347
+ const t = be(e, "modelValue"), a = e, o = n, i = M([]), l = M("next"), s = M(null), r = `gallery-caption-${he()}`, c = M(null), u = I(() => t.value), h = I(() => a.images[u.value]), m = (k, H) => {
3314
3348
  k && (i.value[H] = k);
3315
3349
  }, p = (k) => {
3316
3350
  k !== u.value && (l.value = k > u.value ? "next" : "prev", t.value = k, o("change", k));
@@ -3320,18 +3354,18 @@ const i2 = {
3320
3354
  return;
3321
3355
  }
3322
3356
  p(u.value + 1);
3323
- }, M = () => {
3357
+ }, L = () => {
3324
3358
  if (u.value === 0) {
3325
3359
  a.loop && p(a.images.length - 1);
3326
3360
  return;
3327
3361
  }
3328
3362
  p(u.value - 1);
3329
- }, D = () => {
3363
+ }, R = () => {
3330
3364
  c.value && (s.value = c.value.offsetHeight);
3331
3365
  }, $ = () => {
3332
3366
  s.value = null;
3333
3367
  };
3334
- return Q(u, async (k) => {
3368
+ return te(u, async (k) => {
3335
3369
  await $e();
3336
3370
  const H = i.value[k];
3337
3371
  H && H.scrollIntoView({
@@ -3339,7 +3373,7 @@ const i2 = {
3339
3373
  inline: "center",
3340
3374
  block: "nearest"
3341
3375
  });
3342
- }), Q(() => a.images, () => {
3376
+ }), te(() => a.images, () => {
3343
3377
  i.value = [];
3344
3378
  }), (k, H) => (d(), b("div", {
3345
3379
  role: "region",
@@ -3356,18 +3390,18 @@ const i2 = {
3356
3390
  class: "rs-gallery-review",
3357
3391
  style: Ie(s.value ? { height: `${s.value}px` } : void 0),
3358
3392
  onKeydown: [
3359
- ye(ve(M, ["prevent"]), ["left"]),
3393
+ ye(ve(L, ["prevent"]), ["left"]),
3360
3394
  ye(ve(C, ["prevent"]), ["right"])
3361
3395
  ]
3362
3396
  }, [
3363
3397
  j(Ee, {
3364
3398
  name: `rs-gallery-slide-${l.value}`,
3365
3399
  mode: "out-in",
3366
- onBeforeLeave: D,
3400
+ onBeforeLeave: R,
3367
3401
  onAfterEnter: $
3368
3402
  }, {
3369
- default: ee(() => [
3370
- h.value ? (d(), te(_e, {
3403
+ default: ae(() => [
3404
+ h.value ? (d(), ne(Te, {
3371
3405
  key: h.value.src,
3372
3406
  src: h.value.src,
3373
3407
  alt: h.value.alt || "",
@@ -3376,7 +3410,7 @@ const i2 = {
3376
3410
  ]),
3377
3411
  _: 1
3378
3412
  }, 8, ["name"]),
3379
- G(k.$slots, "overlay", {
3413
+ J(k.$slots, "overlay", {
3380
3414
  image: h.value,
3381
3415
  index: u.value
3382
3416
  }, void 0, !0)
@@ -3387,28 +3421,28 @@ const i2 = {
3387
3421
  class: "rs-gallery-caption"
3388
3422
  }, P(h.value.title), 1)) : F("", !0),
3389
3423
  e.showThumbnails ? (d(), b("ul", z2, [
3390
- (d(!0), b(ue, null, Ce(e.images, (y, T) => (d(), b("li", {
3391
- key: y.src,
3424
+ (d(!0), b(ue, null, Ce(e.images, (g, _) => (d(), b("li", {
3425
+ key: g.src,
3392
3426
  ref_for: !0,
3393
- ref: (N) => m(N, T),
3394
- "aria-selected": u.value === T
3427
+ ref: (O) => m(O, _),
3428
+ "aria-selected": u.value === _
3395
3429
  }, [
3396
3430
  x("button", {
3397
3431
  type: "button",
3398
- class: fe(["rs-gallery-thumb", { active: u.value === T }]),
3399
- onClick: (N) => p(T)
3432
+ class: fe(["rs-gallery-thumb", { active: u.value === _ }]),
3433
+ onClick: (O) => p(_)
3400
3434
  }, [
3401
- j(_e, {
3402
- src: y.src,
3403
- alt: `Select image ${T + 1}`,
3435
+ j(Te, {
3436
+ src: g.src,
3437
+ alt: `Select image ${_ + 1}`,
3404
3438
  transform: e.transformThumbnails
3405
3439
  }, null, 8, ["src", "alt", "transform"])
3406
- ], 10, O2)
3440
+ ], 10, N2)
3407
3441
  ], 8, q2))), 128))
3408
3442
  ])) : F("", !0)
3409
3443
  ], 8, E2));
3410
3444
  }
3411
- }), $t = /* @__PURE__ */ W(N2, [["__scopeId", "data-v-dcfacff6"]]), F2 = ["aria-label"], P2 = ["onClick"], K2 = /* @__PURE__ */ Z({
3445
+ }), $t = /* @__PURE__ */ W(O2, [["__scopeId", "data-v-dcfacff6"]]), F2 = ["aria-label"], P2 = ["onClick"], K2 = /* @__PURE__ */ q({
3412
3446
  __name: "GalleryGrid",
3413
3447
  props: {
3414
3448
  images: {},
@@ -3435,7 +3469,7 @@ const i2 = {
3435
3469
  class: "grid-item",
3436
3470
  onClick: (i) => n.$emit("change", o)
3437
3471
  }, [
3438
- j(_e, {
3472
+ j(Te, {
3439
3473
  src: a.src,
3440
3474
  alt: a.alt || "",
3441
3475
  transform: e.transform
@@ -3444,8 +3478,8 @@ const i2 = {
3444
3478
  ], 12, F2));
3445
3479
  }
3446
3480
  }), It = /* @__PURE__ */ W(K2, [["__scopeId", "data-v-17067a4b"]]), Ue = /* @__PURE__ */ Symbol("ModalContext");
3447
- let et = 0, qe = 0, Oe = null;
3448
- const nt = Z({
3481
+ let et = 0, qe = 0, Ne = null;
3482
+ const nt = q({
3449
3483
  name: "Modal",
3450
3484
  props: {
3451
3485
  motion: {
@@ -3461,11 +3495,11 @@ const nt = Z({
3461
3495
  },
3462
3496
  emits: ["update:open", "opened", "closed"],
3463
3497
  setup(e, { emit: n, slots: t }) {
3464
- const a = w(!1), o = w(e.open), i = he(), l = `modal-title-${i}`, s = `modal-desc-${i}`;
3465
- Q(() => e.open, (h) => o.value = h), Q(o, (h) => {
3498
+ const a = M(!1), o = M(e.open), i = he(), l = `modal-title-${i}`, s = `modal-desc-${i}`;
3499
+ te(() => e.open, (h) => o.value = h), te(o, (h) => {
3466
3500
  n("update:open", h), n(h ? "opened" : "closed");
3467
3501
  });
3468
- const r = () => o.value = !1, c = V(() => e.motion), u = V(() => e.size);
3502
+ const r = () => o.value = !1, c = I(() => e.motion), u = I(() => e.size);
3469
3503
  return He(Ue, {
3470
3504
  isOpen: o,
3471
3505
  motion: c,
@@ -3477,12 +3511,12 @@ const nt = Z({
3477
3511
  hasTitle: a
3478
3512
  }), () => t.default?.();
3479
3513
  }
3480
- }), Ht = Z({
3514
+ }), Ht = q({
3481
3515
  name: "ModalContent",
3482
3516
  setup(e, { slots: n }) {
3483
3517
  const t = me(Ue);
3484
3518
  if (!t) throw new Error("ModalContent components must be used inside <Modal>");
3485
- const a = w(null);
3519
+ const a = M(null);
3486
3520
  let o = 0;
3487
3521
  const i = (u) => {
3488
3522
  u.key === "Escape" && o === et && t.close();
@@ -3493,13 +3527,13 @@ const nt = Z({
3493
3527
  u.querySelectorAll(
3494
3528
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
3495
3529
  )
3496
- ).filter((M) => !M.hasAttribute("disabled"));
3530
+ ).filter((L) => !L.hasAttribute("disabled"));
3497
3531
  if (h.length === 0) {
3498
3532
  u.setAttribute("tabindex", "-1"), u.focus();
3499
3533
  return;
3500
3534
  }
3501
- const m = h[0], p = h[h.length - 1], C = (M) => {
3502
- M.key === "Tab" && (M.shiftKey && document.activeElement === m ? (M.preventDefault(), p?.focus()) : !M.shiftKey && document.activeElement === p && (M.preventDefault(), m?.focus()));
3535
+ const m = h[0], p = h[h.length - 1], C = (L) => {
3536
+ L.key === "Tab" && (L.shiftKey && document.activeElement === m ? (L.preventDefault(), p?.focus()) : !L.shiftKey && document.activeElement === p && (L.preventDefault(), m?.focus()));
3503
3537
  };
3504
3538
  u.addEventListener("keydown", C), m?.focus(), l = () => {
3505
3539
  u.removeEventListener("keydown", C), l = null;
@@ -3520,13 +3554,13 @@ const nt = Z({
3520
3554
  name: `modal-${t.motion.value}`,
3521
3555
  appear: !0,
3522
3556
  onEnter: () => {
3523
- o = ++et, Oe = document.activeElement, r();
3557
+ o = ++et, Ne = document.activeElement, r();
3524
3558
  },
3525
3559
  onAfterEnter: () => {
3526
3560
  a.value && (s(a.value), document.addEventListener("keydown", i));
3527
3561
  },
3528
3562
  onAfterLeave: () => {
3529
- et--, document.removeEventListener("keydown", i), l?.(), c(), Oe && document.contains(Oe) && Oe.focus(), Oe = null;
3563
+ et--, document.removeEventListener("keydown", i), l?.(), c(), Ne && document.contains(Ne) && Ne.focus(), Ne = null;
3530
3564
  }
3531
3565
  },
3532
3566
  {
@@ -3554,29 +3588,29 @@ const nt = Z({
3554
3588
  )
3555
3589
  );
3556
3590
  }
3557
- }), Vt = Z({
3591
+ }), Vt = q({
3558
3592
  name: "ModalTitle",
3559
3593
  setup(e, { slots: n }) {
3560
3594
  const t = me(Ue);
3561
3595
  if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
3562
3596
  return t.hasTitle.value = !0, () => U("h2", { id: t.labelId }, n.default?.());
3563
3597
  }
3564
- }), Bt = Z({
3598
+ }), Bt = q({
3565
3599
  name: "ModalHeader",
3566
3600
  setup(e, { slots: n }) {
3567
3601
  return () => U("div", { class: "modal-header" }, n.default?.());
3568
3602
  }
3569
- }), At = Z({
3603
+ }), At = q({
3570
3604
  name: "ModalBody",
3571
3605
  setup(e, { slots: n }) {
3572
3606
  return () => U("div", { class: "modal-body" }, n.default?.());
3573
3607
  }
3574
- }), Ll = Z({
3608
+ }), Ll = q({
3575
3609
  name: "ModalFooter",
3576
3610
  setup(e, { slots: n }) {
3577
3611
  return () => U("div", { class: "modal-footer" }, n.default?.());
3578
3612
  }
3579
- }), Rt = Z({
3613
+ }), Rt = q({
3580
3614
  name: "ModalClose",
3581
3615
  setup() {
3582
3616
  const e = me(Ue);
@@ -3598,7 +3632,7 @@ Object.assign(nt, {
3598
3632
  e.component("Modal", nt), e.component("ModalBody", At), e.component("ModalTitle", Vt), e.component("ModalClose", Rt), e.component("ModalHeader", Bt), e.component("ModalContent", Ht);
3599
3633
  }
3600
3634
  });
3601
- const U2 = /* @__PURE__ */ Z({
3635
+ const U2 = /* @__PURE__ */ q({
3602
3636
  __name: "GalleryGridWithLightbox",
3603
3637
  props: {
3604
3638
  images: {},
@@ -3613,7 +3647,7 @@ const U2 = /* @__PURE__ */ Z({
3613
3647
  },
3614
3648
  emits: ["change"],
3615
3649
  setup(e) {
3616
- const n = w(0), t = w(!1), a = (i) => {
3650
+ const n = M(0), t = M(!1), a = (i) => {
3617
3651
  n.value = i, t.value = !0;
3618
3652
  }, o = () => t.value = !1;
3619
3653
  return (i, l) => (d(), b(ue, null, [
@@ -3623,29 +3657,29 @@ const U2 = /* @__PURE__ */ Z({
3623
3657
  "aria-label": e.ariaLabel,
3624
3658
  transform: e.transform
3625
3659
  }, null, 8, ["images", "aria-label", "transform"]),
3626
- j(E(nt), {
3660
+ j(z(nt), {
3627
3661
  open: t.value,
3628
3662
  "onUpdate:open": l[2] || (l[2] = (s) => t.value = s),
3629
3663
  motion: "fade",
3630
3664
  size: "xl"
3631
3665
  }, {
3632
- default: ee(() => [
3633
- j(E(Ht), null, {
3634
- default: ee(() => [
3635
- j(E(Bt), null, {
3636
- default: ee(() => [
3637
- j(E(Vt), null, {
3638
- default: ee(() => [...l[3] || (l[3] = [
3666
+ default: ae(() => [
3667
+ j(z(Ht), null, {
3668
+ default: ae(() => [
3669
+ j(z(Bt), null, {
3670
+ default: ae(() => [
3671
+ j(z(Vt), null, {
3672
+ default: ae(() => [...l[3] || (l[3] = [
3639
3673
  Me("Image Gallery", -1)
3640
3674
  ])]),
3641
3675
  _: 1
3642
3676
  }),
3643
- j(E(Rt))
3677
+ j(z(Rt))
3644
3678
  ]),
3645
3679
  _: 1
3646
3680
  }),
3647
- j(E(At), null, {
3648
- default: ee(() => [
3681
+ j(z(At), null, {
3682
+ default: ae(() => [
3649
3683
  j($t, {
3650
3684
  modelValue: n.value,
3651
3685
  "onUpdate:modelValue": l[0] || (l[0] = (s) => n.value = s),
@@ -3666,7 +3700,7 @@ const U2 = /* @__PURE__ */ Z({
3666
3700
  }, 8, ["open"])
3667
3701
  ], 64));
3668
3702
  }
3669
- }), j2 = { class: "rs-gallery-masonry" }, W2 = /* @__PURE__ */ Z({
3703
+ }), j2 = { class: "rs-gallery-masonry" }, W2 = /* @__PURE__ */ q({
3670
3704
  __name: "GalleryMasonry",
3671
3705
  props: {
3672
3706
  images: {},
@@ -3685,7 +3719,7 @@ const U2 = /* @__PURE__ */ Z({
3685
3719
  key: a.src,
3686
3720
  class: "masonry-item"
3687
3721
  }, [
3688
- j(_e, {
3722
+ j(Te, {
3689
3723
  src: a.src,
3690
3724
  alt: a.alt || "",
3691
3725
  transform: e.transform
@@ -3697,7 +3731,7 @@ const U2 = /* @__PURE__ */ Z({
3697
3731
  class: "rs-image-gallery",
3698
3732
  role: "region",
3699
3733
  "aria-label": "Image gallery"
3700
- }, G2 = /* @__PURE__ */ Z({
3734
+ }, G2 = /* @__PURE__ */ q({
3701
3735
  __name: "ImageGallery",
3702
3736
  props: /* @__PURE__ */ ie({
3703
3737
  images: {},
@@ -3718,14 +3752,14 @@ const U2 = /* @__PURE__ */ Z({
3718
3752
  }),
3719
3753
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
3720
3754
  setup(e, { emit: n }) {
3721
- const t = be(e, "modelValue"), a = n, o = V({
3755
+ const t = be(e, "modelValue"), a = n, o = I({
3722
3756
  get: () => t.value ?? 0,
3723
3757
  set: (l) => {
3724
3758
  t.value = l, a("change", l);
3725
3759
  }
3726
3760
  }), i = (l) => o.value = l;
3727
3761
  return (l, s) => (d(), b("section", X2, [
3728
- e.layout === "carousel" ? (d(), te($t, {
3762
+ e.layout === "carousel" ? (d(), ne($t, {
3729
3763
  key: 0,
3730
3764
  modelValue: o.value,
3731
3765
  "onUpdate:modelValue": s[0] || (s[0] = (r) => o.value = r),
@@ -3735,7 +3769,7 @@ const U2 = /* @__PURE__ */ Z({
3735
3769
  transform: e.transform,
3736
3770
  "transform-thumbnails": e.transformThumbnails,
3737
3771
  "show-thumbnails": e.showThumbnails
3738
- }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (d(), te(It, {
3772
+ }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (d(), ne(It, {
3739
3773
  key: 1,
3740
3774
  modelValue: o.value,
3741
3775
  "onUpdate:modelValue": s[1] || (s[1] = (r) => o.value = r),
@@ -3745,14 +3779,14 @@ const U2 = /* @__PURE__ */ Z({
3745
3779
  gap: e.gap,
3746
3780
  transform: e.transform,
3747
3781
  "aria-label": e.ariaLabel
3748
- }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (d(), te(U2, {
3782
+ }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (d(), ne(U2, {
3749
3783
  key: 2,
3750
3784
  modelValue: o.value,
3751
3785
  "onUpdate:modelValue": s[2] || (s[2] = (r) => o.value = r),
3752
3786
  images: e.images,
3753
3787
  transform: e.transform,
3754
3788
  "aria-label": e.ariaLabel
3755
- }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (d(), te(Y2, {
3789
+ }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (d(), ne(Y2, {
3756
3790
  key: 3,
3757
3791
  modelValue: o.value,
3758
3792
  "onUpdate:modelValue": s[3] || (s[3] = (r) => o.value = r),
@@ -3771,25 +3805,25 @@ const J2 = ["aria-busy"], Q2 = {
3771
3805
  }, en = {
3772
3806
  class: "message sr-only",
3773
3807
  "aria-atomic": "true"
3774
- }, tn = /* @__PURE__ */ Z({
3808
+ }, tn = /* @__PURE__ */ q({
3775
3809
  __name: "Spinner",
3776
3810
  props: {
3777
3811
  message: {}
3778
3812
  },
3779
3813
  setup(e) {
3780
- const n = e, t = w(0), a = w(null), o = w(n.message || ""), i = () => {
3814
+ const n = e, t = M(0), a = M(null), o = M(n.message || ""), i = () => {
3781
3815
  !n.message || a.value !== null || o.value.length > 0 && (a.value = window.setInterval(() => {
3782
3816
  t.value = t.value % 3 + 1, o.value = `${n.message}${".".repeat(t.value)}`;
3783
3817
  }, 750));
3784
3818
  }, l = () => {
3785
3819
  a.value !== null && (clearInterval(a.value), a.value = null);
3786
3820
  };
3787
- return Q(
3821
+ return te(
3788
3822
  () => n.message,
3789
3823
  (s, r) => {
3790
3824
  s !== r && (o.value = s || "", l());
3791
3825
  }
3792
- ), ce(i), Ve(l), (s, r) => (d(), b("div", {
3826
+ ), de(i), Ve(l), (s, r) => (d(), b("div", {
3793
3827
  class: "spinner-container",
3794
3828
  role: "status",
3795
3829
  "aria-live": "polite",
@@ -3813,7 +3847,7 @@ const J2 = ["aria-busy"], Q2 = {
3813
3847
  key: 1,
3814
3848
  class: "indeterminate",
3815
3849
  "view-box": "0 0 16 16"
3816
- }, rn = { class: "checkbox-label" }, sn = /* @__PURE__ */ Z({
3850
+ }, rn = { class: "checkbox-label" }, sn = /* @__PURE__ */ q({
3817
3851
  __name: "Checkbox",
3818
3852
  props: /* @__PURE__ */ ie({
3819
3853
  id: {},
@@ -3827,8 +3861,8 @@ const J2 = ["aria-busy"], Q2 = {
3827
3861
  }),
3828
3862
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
3829
3863
  setup(e, { emit: n }) {
3830
- const t = n, a = be(e, "modelValue"), o = e, i = he(), l = V(() => o.id ?? `checkbox-${i}`), s = w(null), r = y2(o).value, c = V(() => o.required ? !0 : void 0), u = V(() => o.triState && a.value === void 0 ? "mixed" : void 0);
3831
- Q(
3864
+ const t = n, a = be(e, "modelValue"), o = e, i = he(), l = I(() => o.id ?? `checkbox-${i}`), s = M(null), r = y2(o).value, c = I(() => o.required ? !0 : void 0), u = I(() => o.triState && a.value === void 0 ? "mixed" : void 0);
3865
+ te(
3832
3866
  () => a.value,
3833
3867
  (m) => {
3834
3868
  s.value && (s.value.indeterminate = m === void 0, s.value.checked = m === !0);
@@ -3856,7 +3890,7 @@ const J2 = ["aria-busy"], Q2 = {
3856
3890
  checked: a.value === !0,
3857
3891
  disabled: e.disabled,
3858
3892
  "aria-invalid": e.invalid ? "true" : void 0,
3859
- "aria-disabled": E(r),
3893
+ "aria-disabled": z(r),
3860
3894
  "aria-checked": u.value,
3861
3895
  onClick: p[0] || (p[0] = (C) => e.triState ? h(C) : void 0),
3862
3896
  onChange: p[1] || (p[1] = (C) => e.triState ? void 0 : h(C)),
@@ -3877,11 +3911,11 @@ const J2 = ["aria-busy"], Q2 = {
3877
3911
  ])])) : F("", !0)
3878
3912
  ]),
3879
3913
  x("span", rn, [
3880
- G(m.$slots, "default", {}, void 0, !0)
3914
+ J(m.$slots, "default", {}, void 0, !0)
3881
3915
  ])
3882
3916
  ], 2));
3883
3917
  }
3884
- }), xl = /* @__PURE__ */ W(sn, [["__scopeId", "data-v-3a0c4f73"]]), un = ["for"], cn = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], dn = /* @__PURE__ */ Z({
3918
+ }), xl = /* @__PURE__ */ W(sn, [["__scopeId", "data-v-3a0c4f73"]]), un = ["for"], cn = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], dn = /* @__PURE__ */ q({
3885
3919
  __name: "Textarea",
3886
3920
  props: /* @__PURE__ */ ie({
3887
3921
  id: {},
@@ -3897,15 +3931,15 @@ const J2 = ["aria-busy"], Q2 = {
3897
3931
  }),
3898
3932
  emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:modelValue"]),
3899
3933
  setup(e, { emit: n }) {
3900
- const t = be(e, "modelValue"), a = lt(), o = rt(), i = n, l = e, s = w(null), r = w(null), c = he(), u = `${c}-error`, h = `${c}-hint`, m = Ke(a).value, p = V(() => m ? `${h} ${c}-required-hint` : h), C = st(l, o, u, p.value).value, M = ($) => {
3934
+ const t = be(e, "modelValue"), a = lt(), o = rt(), i = n, l = e, s = M(null), r = M(null), c = he(), u = `${c}-error`, h = `${c}-hint`, m = Ke(a).value, p = I(() => m ? `${h} ${c}-required-hint` : h), C = st(l, o, u, p.value).value, L = ($) => {
3901
3935
  at(s.value, r.value);
3902
3936
  const k = $.target;
3903
3937
  t.value = l.type === "number" ? Number(k.value) : k.value;
3904
- }, D = V(() => l.invalid === !0 && l.errorMessage ? u : void 0);
3905
- return ce(() => {
3938
+ }, R = I(() => l.invalid === !0 && l.errorMessage ? u : void 0);
3939
+ return de(() => {
3906
3940
  at(s.value, r.value);
3907
3941
  }), ($, k) => (d(), b("div", {
3908
- class: fe(["textarea-box", { required: E(m), error: e.invalid }]),
3942
+ class: fe(["textarea-box", { required: z(m), error: e.invalid }]),
3909
3943
  ref_key: "inputBoxRef",
3910
3944
  ref: r
3911
3945
  }, [
@@ -3915,26 +3949,26 @@ const J2 = ["aria-busy"], Q2 = {
3915
3949
  }, P(e.label), 9, un),
3916
3950
  x("textarea", ke({ id: e.id }, $.$attrs, {
3917
3951
  class: "custom-textarea",
3918
- onFocus: k[0] || (k[0] = (H) => E(b2)(H, r.value, i)),
3919
- onBlur: k[1] || (k[1] = (H) => E(k2)(H, s.value, r.value, i)),
3920
- onInput: M,
3952
+ onFocus: k[0] || (k[0] = (H) => z(b2)(H, r.value, i)),
3953
+ onBlur: k[1] || (k[1] = (H) => z(k2)(H, s.value, r.value, i)),
3954
+ onInput: L,
3921
3955
  value: t.value,
3922
- required: E(m),
3956
+ required: z(m),
3923
3957
  "aria-invalid": e.invalid ? "true" : void 0,
3924
- "aria-errormessage": D.value,
3925
- "aria-describedby": E(C),
3958
+ "aria-errormessage": R.value,
3959
+ "aria-describedby": z(C),
3926
3960
  ref_key: "textareaRef",
3927
3961
  ref: s
3928
3962
  }), " ", 16, cn),
3929
3963
  j(it, { hintId: h }, {
3930
- default: ee(() => [
3931
- G($.$slots, "hint", {}, void 0, !0)
3964
+ default: ae(() => [
3965
+ J($.$slots, "hint", {}, void 0, !0)
3932
3966
  ]),
3933
3967
  _: 3
3934
3968
  }),
3935
3969
  j(ut, {
3936
- baseId: E(c),
3937
- isRequired: E(m)
3970
+ baseId: z(c),
3971
+ isRequired: z(m)
3938
3972
  }, null, 8, ["baseId", "isRequired"]),
3939
3973
  j(ct, {
3940
3974
  errorId: u,
@@ -3943,7 +3977,7 @@ const J2 = ["aria-busy"], Q2 = {
3943
3977
  }, null, 8, ["invalid", "errorMessage"])
3944
3978
  ], 2));
3945
3979
  }
3946
- }), $l = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-3615613f"]]), vn = { key: 0 }, fn = { key: 1 }, mn = /* @__PURE__ */ Z({
3980
+ }), $l = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-3615613f"]]), vn = { key: 0 }, fn = { key: 1 }, mn = /* @__PURE__ */ q({
3947
3981
  __name: "Highlight",
3948
3982
  props: {
3949
3983
  text: {},
@@ -3986,7 +4020,7 @@ const J2 = ["aria-busy"], Q2 = {
3986
4020
  label: "The passwords must match.",
3987
4021
  validator: (e, n) => e === n && e.length > 0
3988
4022
  }
3989
- ], hn = { class: "password-validation" }, gn = { class: "password-rules" }, yn = ["data-rule"], bn = { class: "strength-meter" }, kn = { class: "strength-top" }, wn = /* @__PURE__ */ Z({
4023
+ ], hn = { class: "password-validation" }, gn = { class: "password-rules" }, yn = ["data-rule"], bn = { class: "strength-meter" }, kn = { class: "strength-top" }, wn = /* @__PURE__ */ q({
3990
4024
  __name: "PasswordValidator",
3991
4025
  props: {
3992
4026
  id: {},
@@ -3998,13 +4032,13 @@ const J2 = ["aria-busy"], Q2 = {
3998
4032
  },
3999
4033
  emits: ["valid"],
4000
4034
  setup(e, { emit: n }) {
4001
- const t = e, a = n, o = w([]), i = w(null), l = w(null), s = (p, C) => p && (o.value[C] = p);
4002
- Q(
4035
+ const t = e, a = n, o = M([]), i = M(null), l = M(null), s = (p, C) => p && (o.value[C] = p);
4036
+ te(
4003
4037
  () => t.password,
4004
4038
  () => {
4005
4039
  a("valid", c());
4006
4040
  }
4007
- ), Q(
4041
+ ), te(
4008
4042
  () => t.passwordConfirmation,
4009
4043
  () => {
4010
4044
  a("valid", c());
@@ -4016,13 +4050,13 @@ const J2 = ["aria-busy"], Q2 = {
4016
4050
  const p = u(), C = Object.values(h()).every(Boolean);
4017
4051
  return p && C;
4018
4052
  }, u = () => {
4019
- const p = h(), C = Object.values(p).filter(Boolean).length, M = t.password.length >= 12 ? 1 : 0, D = Math.min(100, (C + M) * 20), $ = Math.min(t.labels.length - 1, Math.floor(D / 25));
4020
- return i.value && (i.value.style.width = `${D}%`), l.value && (l.value.textContent = t.labels[$] ?? "Very weak"), C === t.rules.length;
4053
+ const p = h(), C = Object.values(p).filter(Boolean).length, L = t.password.length >= 12 ? 1 : 0, R = Math.min(100, (C + L) * 20), $ = Math.min(t.labels.length - 1, Math.floor(R / 25));
4054
+ return i.value && (i.value.style.width = `${R}%`), l.value && (l.value.textContent = t.labels[$] ?? "Very weak"), C === t.rules.length;
4021
4055
  }, h = () => {
4022
4056
  const p = m();
4023
4057
  return o.value.forEach((C) => {
4024
- const M = C.dataset.rule, D = !!p[M];
4025
- C.classList.toggle("passed", D);
4058
+ const L = C.dataset.rule, R = !!p[L];
4059
+ C.classList.toggle("passed", R);
4026
4060
  }), p;
4027
4061
  }, m = () => {
4028
4062
  const p = {};
@@ -4035,15 +4069,15 @@ const J2 = ["aria-busy"], Q2 = {
4035
4069
  };
4036
4070
  return (p, C) => (d(), b("section", hn, [
4037
4071
  x("ul", gn, [
4038
- (d(!0), b(ue, null, Ce(t.rules, (M, D) => (d(), b("li", {
4039
- key: M.key,
4072
+ (d(!0), b(ue, null, Ce(t.rules, (L, R) => (d(), b("li", {
4073
+ key: L.key,
4040
4074
  class: "password-rule",
4041
- "data-rule": M.key,
4075
+ "data-rule": L.key,
4042
4076
  ref_for: !0,
4043
- ref: ($) => s($, D)
4077
+ ref: ($) => s($, R)
4044
4078
  }, [
4045
4079
  C[0] || (C[0] = x("span", { class: "rule-icon" }, "•", -1)),
4046
- Me(" " + P(M.label), 1)
4080
+ Me(" " + P(L.label), 1)
4047
4081
  ], 8, yn))), 128))
4048
4082
  ]),
4049
4083
  x("div", bn, [
@@ -4078,14 +4112,14 @@ const Mn = {
4078
4112
  key: 0,
4079
4113
  class: "ui-breadcrumb__separator",
4080
4114
  "aria-hidden": "true"
4081
- }, $n = /* @__PURE__ */ Z({
4115
+ }, $n = /* @__PURE__ */ q({
4082
4116
  __name: "Breadcrumb",
4083
4117
  props: {
4084
4118
  items: {},
4085
4119
  separator: { default: "/" }
4086
4120
  },
4087
4121
  setup(e) {
4088
- const n = e, t = me(Ot), a = (s) => s === n.items.length - 1, o = (s, r) => i(s, r), i = (s, r) => a(r) || s.disabled ? "span" : s.to && t ? _t("RouterLink") : s.href ? "a" : "span", l = (s, r) => a(r) || s.disabled ? { "data-disabled": s.disabled || void 0 } : s.to ? { to: s.to } : s.href ? {
4122
+ const n = e, t = me(Nt), a = (s) => s === n.items.length - 1, o = (s, r) => i(s, r), i = (s, r) => a(r) || s.disabled ? "span" : s.to && t ? Tt("RouterLink") : s.href ? "a" : "span", l = (s, r) => a(r) || s.disabled ? { "data-disabled": s.disabled || void 0 } : s.to ? { to: s.to } : s.href ? {
4089
4123
  href: s.href,
4090
4124
  target: s.external ? "_blank" : void 0,
4091
4125
  rel: s.external ? "noopener noreferrer" : void 0,
@@ -4097,19 +4131,19 @@ const Mn = {
4097
4131
  key: c.to ?? c.href ?? `${c.label}-${u}`,
4098
4132
  class: "ui-breadcrumb__item"
4099
4133
  }, [
4100
- (d(), te(Ze(o(c, u)), ke({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, l(c, u), {
4134
+ (d(), ne(Ze(o(c, u)), ke({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, l(c, u), {
4101
4135
  "aria-posinset": u + 1,
4102
4136
  "aria-setsize": e.items.length,
4103
4137
  "aria-current": a(u) ? "page" : void 0,
4104
4138
  tabindex: a(u) || o(c, u) === "span" ? -1 : void 0
4105
4139
  }), {
4106
- default: ee(() => [
4140
+ default: ae(() => [
4107
4141
  Me(P(c.label), 1)
4108
4142
  ]),
4109
4143
  _: 2
4110
4144
  }, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
4111
4145
  a(u) ? F("", !0) : (d(), b("span", xn, [
4112
- G(s.$slots, "separator", {}, () => [
4146
+ J(s.$slots, "separator", {}, () => [
4113
4147
  Me(P(e.separator), 1)
4114
4148
  ], !0)
4115
4149
  ]))
@@ -4121,7 +4155,7 @@ const Mn = {
4121
4155
  key: 0,
4122
4156
  class: "radio-control",
4123
4157
  "aria-hidden": "true"
4124
- }, An = { class: "radio-label" }, Rn = /* @__PURE__ */ Z({
4158
+ }, An = { class: "radio-label" }, Rn = /* @__PURE__ */ q({
4125
4159
  __name: "RadioButton",
4126
4160
  props: /* @__PURE__ */ ie({
4127
4161
  name: {},
@@ -4139,7 +4173,7 @@ const Mn = {
4139
4173
  }),
4140
4174
  emits: ["update:modelValue"],
4141
4175
  setup(e) {
4142
- const n = e, t = be(e, "modelValue"), a = V(() => n.invalid ? "true" : void 0), o = V(() => n.required && !n.disabled ? "true" : void 0), i = V(() => n.disabled ? !0 : void 0);
4176
+ const n = e, t = be(e, "modelValue"), a = I(() => n.invalid ? "true" : void 0), o = I(() => n.required && !n.disabled ? "true" : void 0), i = I(() => n.disabled ? !0 : void 0);
4143
4177
  return (l, s) => (d(), b("fieldset", {
4144
4178
  class: fe(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
4145
4179
  "aria-invalid": a.value,
@@ -4160,11 +4194,11 @@ const Mn = {
4160
4194
  required: e.required,
4161
4195
  "onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c)
4162
4196
  }, null, 8, Vn), [
4163
- [Tt, t.value]
4197
+ [_t, t.value]
4164
4198
  ]),
4165
4199
  e.mode === "standard" ? (d(), b("span", Bn)) : F("", !0),
4166
4200
  x("span", An, [
4167
- r.icon ? (d(), te(pe, {
4201
+ r.icon ? (d(), ne(pe, {
4168
4202
  key: 0,
4169
4203
  name: r.icon,
4170
4204
  size: 22
@@ -4174,7 +4208,7 @@ const Mn = {
4174
4208
  ], 2))), 128))
4175
4209
  ], 10, In));
4176
4210
  }
4177
- }), Hl = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-4a7c1870"]]), Dn = ["for"], Sn = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], _n = ["id", "aria-disabled", "aria-selected", "onClick"], Tn = {
4211
+ }), Hl = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-4a7c1870"]]), Dn = ["for"], Sn = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled", "aria-disabled"], Tn = ["id", "aria-disabled", "aria-selected", "onClick"], _n = {
4178
4212
  class: "option-value",
4179
4213
  "aria-hidden": "true"
4180
4214
  }, En = { class: "option-value sr-only" }, Zn = {
@@ -4186,11 +4220,11 @@ const Mn = {
4186
4220
  class: "option recents",
4187
4221
  "aria-disabled": "true",
4188
4222
  "aria-hidden": "true"
4189
- }, qn = ["onClick"], On = { class: "option-value" }, Nn = {
4223
+ }, qn = ["onClick"], Nn = { class: "option-value" }, On = {
4190
4224
  key: 0,
4191
4225
  class: "start-icon",
4192
4226
  "aria-hidden": "true"
4193
- }, Fn = /* @__PURE__ */ Z({
4227
+ }, Fn = /* @__PURE__ */ q({
4194
4228
  __name: "Autocomplete",
4195
4229
  props: /* @__PURE__ */ ie({
4196
4230
  id: {},
@@ -4216,111 +4250,111 @@ const Mn = {
4216
4250
  }),
4217
4251
  emits: /* @__PURE__ */ ie(["change", "select", "focus", "blur"], ["update:modelValue"]),
4218
4252
  setup(e, { emit: n }) {
4219
- const t = e, a = n, o = be(e, "modelValue"), i = w(null), l = w(""), s = w(!1), r = w([]), c = w(null), u = w(null), h = V(() => t.id ? `${t.id}-search-history` : "search-history"), p = `${he()}-list`, C = w(!1), M = V(() => o.value !== null && o.value !== void 0 && o.value !== ""), D = V(() => c.value !== null ? `${p}-option-${c.value}` : void 0), $ = V(() => s.value && D.value ? D.value : void 0), k = V(() => r.value.length > 0), H = V(() => {
4253
+ const t = e, a = n, o = be(e, "modelValue"), i = M(null), l = M(""), s = M(!1), r = M([]), c = M(null), u = M(null), h = I(() => t.id ? `${t.id}-search-history` : "search-history"), p = `${he()}-list`, C = M(!1), L = I(() => o.value !== null && o.value !== void 0 && o.value !== ""), R = I(() => c.value !== null ? `${p}-option-${c.value}` : void 0), $ = I(() => s.value && R.value ? R.value : void 0), k = I(() => r.value.length > 0), H = I(() => {
4220
4254
  if (!t.filterable) return t.options;
4221
- const L = l.value.toLowerCase();
4222
- return t.options.filter((z) => t.getValue(z).toLowerCase().includes(L));
4223
- }), y = Ke(t).value;
4224
- Q(
4255
+ const w = l.value.toLowerCase();
4256
+ return t.options.filter((T) => t.getValue(T).toLowerCase().includes(w));
4257
+ }), g = Ke(t).value;
4258
+ te(
4225
4259
  () => h.value,
4226
- (L) => {
4227
- if (L)
4260
+ (w) => {
4261
+ if (w)
4228
4262
  try {
4229
- r.value = JSON.parse(localStorage.getItem(L) || "[]");
4263
+ r.value = JSON.parse(localStorage.getItem(w) || "[]");
4230
4264
  } catch {
4231
4265
  r.value = [];
4232
4266
  }
4233
4267
  },
4234
4268
  { immediate: !0 }
4235
- ), Q(s, async (L) => {
4236
- if (!L) {
4269
+ ), te(s, async (w) => {
4270
+ if (!w) {
4237
4271
  c.value = null;
4238
4272
  return;
4239
4273
  }
4240
- H.value.length !== 0 && (await $e(), oe());
4241
- }), Q(
4274
+ H.value.length !== 0 && (await $e(), Q());
4275
+ }), te(
4242
4276
  () => t.loading,
4243
- async (L) => {
4244
- L || s.value && H.value.length !== 0 && (await $e(), oe());
4277
+ async (w) => {
4278
+ w || s.value && H.value.length !== 0 && (await $e(), Q());
4245
4279
  }
4246
- ), Q(
4280
+ ), te(
4247
4281
  () => t.options,
4248
4282
  () => {
4249
4283
  o.value || (u.value = null, c.value = null);
4250
4284
  }
4251
4285
  );
4252
- const T = (L) => {
4253
- l.value.length >= t.minChars && !t.filterable && !t.loading && (s.value = !0), C.value = !0, a("focus", L);
4254
- }, N = (L) => {
4255
- const z = L.relatedTarget;
4256
- i.value?.contains(z) || (s.value = !1, o.value ? I() : l.value = "", C.value = !1, a("blur", L));
4257
- }, J = (L, z) => {
4258
- const ae = i.value;
4259
- if (!ae || t.isDisabled(L)) return;
4260
- s.value = !1, q(l.value), u.value = z, c.value = z;
4261
- const f = t.getKey(L);
4262
- f && f.toString().length > 0 ? ae.classList.add("filled") : ae.classList.remove("filled"), l.value = t.getValue(L), o.value = f, a("select", f);
4263
- }, S = (L) => {
4264
- if (!s.value && ["ArrowDown", "ArrowUp"].includes(L.key)) {
4265
- s.value = !0, c.value = c.value ?? H.value.findIndex((z) => !t.isDisabled(z)), L.preventDefault();
4286
+ const _ = (w) => {
4287
+ l.value.length >= t.minChars && !t.filterable && !t.loading && (s.value = !0), C.value = !0, a("focus", w);
4288
+ }, O = (w) => {
4289
+ const T = w.relatedTarget;
4290
+ i.value?.contains(T) || (s.value = !1, o.value ? A() : l.value = "", C.value = !1, a("blur", w));
4291
+ }, ee = (w, T) => {
4292
+ const oe = i.value;
4293
+ if (!oe || t.isDisabled(w)) return;
4294
+ s.value = !1, B(l.value), u.value = T, c.value = T;
4295
+ const f = t.getKey(w);
4296
+ f && f.toString().length > 0 ? oe.classList.add("filled") : oe.classList.remove("filled"), l.value = t.getValue(w), o.value = f, a("select", f);
4297
+ }, D = (w) => {
4298
+ if (!s.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
4299
+ s.value = !0, c.value = c.value ?? H.value.findIndex((T) => !t.isDisabled(T)), w.preventDefault();
4266
4300
  return;
4267
4301
  }
4268
4302
  if (s.value) {
4269
- if (L.key === "ArrowDown" && (_(1), L.preventDefault()), L.key === "ArrowUp" && (_(-1), L.preventDefault()), L.key === "Home") {
4270
- const z = de();
4271
- z >= 0 && (c.value = z), L.preventDefault();
4303
+ if (w.key === "ArrowDown" && (S(1), w.preventDefault()), w.key === "ArrowUp" && (S(-1), w.preventDefault()), w.key === "Home") {
4304
+ const T = ce();
4305
+ T >= 0 && (c.value = T), w.preventDefault();
4272
4306
  }
4273
- if (L.key === "End") {
4274
- const z = O();
4275
- z >= 0 && (c.value = z), L.preventDefault();
4307
+ if (w.key === "End") {
4308
+ const T = Z();
4309
+ T >= 0 && (c.value = T), w.preventDefault();
4276
4310
  }
4277
- if (L.key === "Enter") {
4311
+ if (w.key === "Enter") {
4278
4312
  if (c.value === null) return;
4279
- const z = H.value[c.value];
4280
- if (!z || t.isDisabled(z)) return;
4281
- J(z, c.value), s.value = !1, L.preventDefault();
4313
+ const T = H.value[c.value];
4314
+ if (!T || t.isDisabled(T)) return;
4315
+ ee(T, c.value), s.value = !1, w.preventDefault();
4282
4316
  }
4283
- L.key === "Escape" && (s.value = !1);
4317
+ w.key === "Escape" && (s.value = !1);
4284
4318
  }
4285
- }, _ = (L) => {
4319
+ }, S = (w) => {
4286
4320
  if (c.value === null) return;
4287
- let z = c.value;
4321
+ let T = c.value;
4288
4322
  do
4289
- z += L;
4290
- while (z >= 0 && z < H.value.length && t.isDisabled(H.value[z]));
4291
- z >= 0 && z < H.value.length && (c.value = z);
4292
- }, R = () => {
4323
+ T += w;
4324
+ while (T >= 0 && T < H.value.length && t.isDisabled(H.value[T]));
4325
+ T >= 0 && T < H.value.length && (c.value = T);
4326
+ }, N = () => {
4293
4327
  l.value.length === 0 && (o.value = ""), l.value.length >= t.minChars ? (a("change", l.value), s.value = !0) : s.value = !1;
4294
- }, I = () => {
4328
+ }, A = () => {
4295
4329
  if (o.value.toString().length === 0 || !t.options || t.options.length === 0) return;
4296
- const L = t.options.findIndex((z) => t.getKey(z) === o.value);
4297
- L > -1 && (c.value = L, u.value = L, l.value = t.getValue(t.options[L]));
4330
+ const w = t.options.findIndex((T) => t.getKey(T) === o.value);
4331
+ w > -1 && (c.value = w, u.value = w, l.value = t.getValue(t.options[w]));
4298
4332
  };
4299
- Q(
4333
+ te(
4300
4334
  [() => t.options.length, () => o.value],
4301
- async ([L, z]) => {
4302
- z && L !== 0 && (await $e(), I());
4335
+ async ([w, T]) => {
4336
+ T && w !== 0 && (await $e(), A());
4303
4337
  },
4304
4338
  { flush: "post", immediate: !0 }
4305
4339
  );
4306
- const A = () => {
4340
+ const E = () => {
4307
4341
  l.value = "", o.value = "";
4308
- }, q = (L) => {
4309
- !L || L.trim().length === 0 || (r.value = [
4310
- L,
4311
- ...r.value.filter((z) => z !== L)
4342
+ }, B = (w) => {
4343
+ !w || w.trim().length === 0 || (r.value = [
4344
+ w,
4345
+ ...r.value.filter((T) => T !== w)
4312
4346
  ].slice(0, t.suggestionsLimit), localStorage.setItem(h.value, JSON.stringify(r.value)));
4313
- }, ne = (L) => {
4314
- l.value = L, R();
4315
- }, oe = () => {
4316
- const L = de();
4317
- L >= 0 && (c.value = L);
4318
- }, de = () => H.value.findIndex((L) => !t.isDisabled(L)), O = () => {
4319
- for (let L = H.value.length - 1; L >= 0; L--) if (!t.isDisabled(H.value[L])) return L;
4347
+ }, Y = (w) => {
4348
+ l.value = w, N();
4349
+ }, Q = () => {
4350
+ const w = ce();
4351
+ w >= 0 && (c.value = w);
4352
+ }, ce = () => H.value.findIndex((w) => !t.isDisabled(w)), Z = () => {
4353
+ for (let w = H.value.length - 1; w >= 0; w--) if (!t.isDisabled(H.value[w])) return w;
4320
4354
  return -1;
4321
4355
  };
4322
- return ce(() => I()), (L, z) => (d(), b("div", {
4323
- class: fe(["autocomplete", { required: E(y), error: e.invalid, "has-icon": Object.keys(L.$slots).includes("icon"), filled: M.value, focused: C.value }]),
4356
+ return de(() => A()), (w, T) => (d(), b("div", {
4357
+ class: fe(["autocomplete", { required: z(g), error: e.invalid, "has-icon": Object.keys(w.$slots).includes("icon"), filled: L.value, focused: C.value }]),
4324
4358
  ref_key: "autocompleteRef",
4325
4359
  ref: i
4326
4360
  }, [
@@ -4331,82 +4365,82 @@ const Mn = {
4331
4365
  Re(x("input", ke({
4332
4366
  id: e.id,
4333
4367
  type: e.type
4334
- }, L.$attrs, {
4368
+ }, w.$attrs, {
4335
4369
  role: "combobox",
4336
4370
  "aria-autocomplete": "list",
4337
4371
  "aria-expanded": s.value,
4338
4372
  "aria-controls": p,
4339
4373
  "aria-activedescendant": $.value,
4340
- "aria-required": E(y),
4374
+ "aria-required": z(g),
4341
4375
  "aria-invalid": e.invalid ? "true" : void 0,
4342
4376
  disabled: e.disabled ? !0 : void 0,
4343
4377
  "aria-disabled": e.disabled ? !0 : void 0,
4344
- "onUpdate:modelValue": z[0] || (z[0] = (ae) => l.value = ae),
4345
- onFocus: T,
4346
- onBlur: N,
4347
- onInput: R,
4348
- onKeydown: S
4378
+ "onUpdate:modelValue": T[0] || (T[0] = (oe) => l.value = oe),
4379
+ onFocus: _,
4380
+ onBlur: O,
4381
+ onInput: N,
4382
+ onKeydown: D
4349
4383
  }), null, 16, Sn), [
4350
4384
  [Et, l.value]
4351
4385
  ]),
4352
4386
  j(Ee, { name: "select" }, {
4353
- default: ee(() => [
4387
+ default: ae(() => [
4354
4388
  Re(x("ul", {
4355
4389
  id: p,
4356
4390
  role: "listbox",
4357
4391
  class: "options"
4358
4392
  }, [
4359
- H.value.length > 0 ? (d(!0), b(ue, { key: 0 }, Ce(H.value, (ae, f) => (d(), b("li", {
4393
+ H.value.length > 0 ? (d(!0), b(ue, { key: 0 }, Ce(H.value, (oe, f) => (d(), b("li", {
4360
4394
  id: `${p}-option-${f}`,
4361
- key: e.getKey(ae),
4395
+ key: e.getKey(oe),
4362
4396
  role: "option",
4363
4397
  class: fe(["option", { "focus-visible": c.value === f }]),
4364
- "aria-disabled": t.isDisabled(ae) || void 0,
4398
+ "aria-disabled": t.isDisabled(oe) || void 0,
4365
4399
  "aria-selected": f === u.value,
4366
- onMousedown: z[1] || (z[1] = ve(() => {
4400
+ onMousedown: T[1] || (T[1] = ve(() => {
4367
4401
  }, ["prevent"])),
4368
- onClick: (v) => !t.isDisabled(ae) && J(ae, f)
4402
+ onClick: (v) => !t.isDisabled(oe) && ee(oe, f)
4369
4403
  }, [
4370
- t.isDisabled(ae) ? F("", !0) : (d(), te(pe, {
4404
+ t.isDisabled(oe) ? F("", !0) : (d(), ne(pe, {
4371
4405
  key: 0,
4372
4406
  name: "search",
4373
4407
  size: 22
4374
4408
  })),
4375
- G(L.$slots, "option", {
4376
- option: ae,
4377
- value: e.getValue(ae),
4409
+ J(w.$slots, "option", {
4410
+ option: oe,
4411
+ value: e.getValue(oe),
4378
4412
  query: l.value,
4379
4413
  selected: f === u.value,
4380
4414
  active: f === c.value
4381
4415
  }, () => [
4382
- x("div", Tn, [
4416
+ x("div", _n, [
4383
4417
  j(pn, {
4384
- text: e.getValue(ae),
4418
+ text: e.getValue(oe),
4385
4419
  query: l.value
4386
4420
  }, null, 8, ["text", "query"])
4387
4421
  ])
4388
4422
  ], !0),
4389
- x("div", En, P(e.getValue(ae)), 1)
4390
- ], 42, _n))), 128)) : H.value.length === 0 && !e.loading ? (d(), b("li", Zn, [...z[3] || (z[3] = [
4423
+ x("div", En, P(e.getValue(oe)), 1)
4424
+ ], 42, Tn))), 128)) : H.value.length === 0 && !e.loading ? (d(), b("li", Zn, [...T[3] || (T[3] = [
4391
4425
  x("div", { class: "option-value" }, "No results found", -1)
4392
- ])])) : (d(), te(Dt, {
4426
+ ])])) : (d(), ne(Dt, {
4393
4427
  key: 2,
4394
4428
  "aria-live": "polite",
4395
4429
  role: "status",
4396
4430
  message: "Loading"
4397
4431
  })),
4398
- k.value ? (d(), b("li", zn, [...z[4] || (z[4] = [
4432
+ k.value ? (d(), b("li", zn, [...T[4] || (T[4] = [
4399
4433
  x("div", { class: "option-value" }, " Recents ", -1)
4400
4434
  ])])) : F("", !0),
4401
- (d(!0), b(ue, null, Ce(r.value, (ae) => (d(), b("li", {
4402
- key: ae,
4435
+ (d(!0), b(ue, null, Ce(r.value, (oe) => (d(), b("li", {
4436
+ key: oe,
4403
4437
  role: "presentation",
4404
4438
  "aria-hidden": "true",
4405
4439
  class: "option recent-item",
4406
- onClick: (f) => ne(ae)
4440
+ onClick: (f) => Y(oe)
4407
4441
  }, [
4408
4442
  j(pe, { name: "clock" }),
4409
- x("div", On, P(ae), 1)
4443
+ x("div", Nn, P(oe), 1)
4410
4444
  ], 8, qn))), 128))
4411
4445
  ], 512), [
4412
4446
  [ot, s.value]
@@ -4414,21 +4448,21 @@ const Mn = {
4414
4448
  ]),
4415
4449
  _: 3
4416
4450
  }),
4417
- L.$slots.icon ? (d(), b("span", Nn, [
4418
- G(L.$slots, "icon", {}, void 0, !0)
4451
+ w.$slots.icon ? (d(), b("span", On, [
4452
+ J(w.$slots, "icon", {}, void 0, !0)
4419
4453
  ])) : F("", !0),
4420
- l.value.length > 0 && !e.disabled ? (d(), te(Le, {
4454
+ l.value.length > 0 && !e.disabled ? (d(), ne(Le, {
4421
4455
  key: 1,
4422
4456
  type: "button",
4423
4457
  class: "btn btn-icon",
4424
4458
  "aria-label": "Clear search query",
4425
4459
  title: "Clear search query",
4426
4460
  "\\": "",
4427
- onMousedown: z[2] || (z[2] = ve(() => {
4461
+ onMousedown: T[2] || (T[2] = ve(() => {
4428
4462
  }, ["prevent"])),
4429
- onClick: A
4463
+ onClick: E
4430
4464
  }, {
4431
- default: ee(() => [
4465
+ default: ae(() => [
4432
4466
  j(pe, {
4433
4467
  class: "clear-search",
4434
4468
  "aria-hidden": "true",
@@ -4470,7 +4504,7 @@ const Se = (e, n = "info") => {
4470
4504
  ), jn = ["data-variant", "data-state", "role", "aria-describedby"], Wn = { class: "content" }, Yn = {
4471
4505
  key: 0,
4472
4506
  class: "progress"
4473
- }, Xn = 160, Gn = /* @__PURE__ */ Z({
4507
+ }, Xn = 160, Gn = /* @__PURE__ */ q({
4474
4508
  __name: "ToastRoot",
4475
4509
  props: {
4476
4510
  id: {},
@@ -4480,7 +4514,7 @@ const Se = (e, n = "info") => {
4480
4514
  focus: { type: Boolean }
4481
4515
  },
4482
4516
  setup(e) {
4483
- const n = e, t = w(null), a = w("open"), o = w(100);
4517
+ const n = e, t = M(null), a = M("open"), o = M(100);
4484
4518
  let i = Date.now(), l;
4485
4519
  const s = () => {
4486
4520
  const u = Date.now() - i;
@@ -4496,7 +4530,7 @@ const Se = (e, n = "info") => {
4496
4530
  }
4497
4531
  i = Date.now(), l = requestAnimationFrame(s);
4498
4532
  };
4499
- Q(
4533
+ te(
4500
4534
  () => n.duration,
4501
4535
  () => r(),
4502
4536
  { immediate: !0 }
@@ -4504,7 +4538,7 @@ const Se = (e, n = "info") => {
4504
4538
  const c = () => {
4505
4539
  cancelAnimationFrame(l), a.value = "closing", setTimeout(() => we.toasts = we.toasts.filter((u) => u.id !== n.id), Xn);
4506
4540
  };
4507
- return ce(() => n.variant === "error" && n.focus && t.value?.focus()), Te(() => cancelAnimationFrame(l)), (u, h) => (d(), b("div", {
4541
+ return de(() => n.variant === "error" && n.focus && t.value?.focus()), _e(() => cancelAnimationFrame(l)), (u, h) => (d(), b("div", {
4508
4542
  ref_key: "rootRef",
4509
4543
  ref: t,
4510
4544
  tabindex: "-1",
@@ -4517,14 +4551,14 @@ const Se = (e, n = "info") => {
4517
4551
  "aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
4518
4552
  }, [
4519
4553
  x("div", Wn, [
4520
- G(u.$slots, "default", {}, void 0, !0),
4554
+ J(u.$slots, "default", {}, void 0, !0),
4521
4555
  j(Le, {
4522
4556
  type: "button",
4523
4557
  onClick: c,
4524
4558
  "aria-label": `Close ${e.variant} notification`,
4525
4559
  class: "btn-sm"
4526
4560
  }, {
4527
- default: ee(() => [
4561
+ default: ae(() => [
4528
4562
  j(pe, {
4529
4563
  name: "close",
4530
4564
  size: 32
@@ -4541,24 +4575,24 @@ const Se = (e, n = "info") => {
4541
4575
  ])) : F("", !0)
4542
4576
  ], 8, jn));
4543
4577
  }
4544
- }), Jn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-f9e75b9d"]]), Qn = { class: "toast-viewport" }, eo = { class: "toast-message" }, to = { key: 0 }, ao = ["id"], no = /* @__PURE__ */ Z({
4578
+ }), Jn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-f9e75b9d"]]), Qn = { class: "toast-viewport" }, eo = { class: "toast-message" }, to = { key: 0 }, ao = ["id"], no = /* @__PURE__ */ q({
4545
4579
  __name: "ToastViewport",
4546
4580
  setup(e) {
4547
- return (n, t) => (d(), te(Fe, { to: "body" }, [
4581
+ return (n, t) => (d(), ne(Fe, { to: "body" }, [
4548
4582
  x("div", Qn, [
4549
4583
  j(Zt, { name: "toast-stack" }, {
4550
- default: ee(() => [
4551
- (d(!0), b(ue, null, Ce(E(we).toasts, (a) => (d(), te(Jn, {
4584
+ default: ae(() => [
4585
+ (d(!0), b(ue, null, Ce(z(we).toasts, (a) => (d(), ne(Jn, {
4552
4586
  key: a.id,
4553
4587
  id: a.id,
4554
4588
  duration: a.duration,
4555
4589
  variant: a.variant,
4556
4590
  loading: a.loading
4557
4591
  }, {
4558
- default: ee(() => [
4592
+ default: ae(() => [
4559
4593
  x("div", eo, [
4560
4594
  a.title ? (d(), b("strong", to, P(a.title), 1)) : F("", !0),
4561
- a.loading ? (d(), te(Dt, {
4595
+ a.loading ? (d(), ne(Dt, {
4562
4596
  key: 1,
4563
4597
  message: a.description,
4564
4598
  "aria-hidden": "true"
@@ -4587,7 +4621,7 @@ const Al = {
4587
4621
  a.setAttribute("data-toast-host", ""), document.body.appendChild(a), zt(bt).mount(a);
4588
4622
  }
4589
4623
  }
4590
- }, oo = /* @__PURE__ */ Z({
4624
+ }, oo = /* @__PURE__ */ q({
4591
4625
  __name: "Card",
4592
4626
  props: {
4593
4627
  as: { default: "div" },
@@ -4595,10 +4629,10 @@ const Al = {
4595
4629
  },
4596
4630
  emits: ["click"],
4597
4631
  setup(e, { emit: n }) {
4598
- const t = e, a = n, o = w(), i = w();
4632
+ const t = e, a = n, o = M(), i = M();
4599
4633
  He("card:labelId", o), He("card:descriptionId", i);
4600
- const l = V(() => t.clickable && t.as !== "button" && t.as !== "a"), s = () => t.clickable && a("click");
4601
- return (r, c) => (d(), te(Ze(e.as), {
4634
+ const l = I(() => t.clickable && t.as !== "button" && t.as !== "a"), s = () => t.clickable && a("click");
4635
+ return (r, c) => (d(), ne(Ze(e.as), {
4602
4636
  class: fe(["rs-card", { clickable: e.clickable }]),
4603
4637
  tabindex: l.value ? 0 : void 0,
4604
4638
  role: l.value ? "button" : void 0,
@@ -4610,54 +4644,54 @@ const Al = {
4610
4644
  "aria-labelledby": o.value,
4611
4645
  "aria-describedby": i.value
4612
4646
  }, {
4613
- default: ee(() => [
4614
- G(r.$slots, "default", {}, void 0, !0)
4647
+ default: ae(() => [
4648
+ J(r.$slots, "default", {}, void 0, !0)
4615
4649
  ]),
4616
4650
  _: 3
4617
4651
  }, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
4618
4652
  }
4619
- }), Rl = /* @__PURE__ */ W(oo, [["__scopeId", "data-v-e892a9f2"]]), lo = /* @__PURE__ */ Z({
4653
+ }), Rl = /* @__PURE__ */ W(oo, [["__scopeId", "data-v-e892a9f2"]]), lo = /* @__PURE__ */ q({
4620
4654
  __name: "CardHeader",
4621
4655
  props: {
4622
4656
  as: { default: "div" }
4623
4657
  },
4624
4658
  setup(e) {
4625
4659
  const n = me("card:labelId", void 0), t = `rs-card-label-${he()}`;
4626
- return ce(() => n && (n.value = t)), (a, o) => (d(), te(Ze(e.as), {
4660
+ return de(() => n && (n.value = t)), (a, o) => (d(), ne(Ze(e.as), {
4627
4661
  id: t,
4628
4662
  class: "rs-card-header"
4629
4663
  }, {
4630
- default: ee(() => [
4631
- G(a.$slots, "default", {}, void 0, !0)
4664
+ default: ae(() => [
4665
+ J(a.$slots, "default", {}, void 0, !0)
4632
4666
  ]),
4633
4667
  _: 3
4634
4668
  }));
4635
4669
  }
4636
- }), Dl = /* @__PURE__ */ W(lo, [["__scopeId", "data-v-570794b4"]]), ro = /* @__PURE__ */ Z({
4670
+ }), Dl = /* @__PURE__ */ W(lo, [["__scopeId", "data-v-570794b4"]]), ro = /* @__PURE__ */ q({
4637
4671
  __name: "CardBody",
4638
4672
  setup(e) {
4639
4673
  const n = me("card:descriptionId", void 0), t = `rs-card-desc-${he()}`;
4640
- return ce(() => n && (n.value = t)), (a, o) => (d(), b("div", {
4674
+ return de(() => n && (n.value = t)), (a, o) => (d(), b("div", {
4641
4675
  id: t,
4642
4676
  class: "rs-card-body"
4643
4677
  }, [
4644
- G(a.$slots, "default", {}, void 0, !0)
4678
+ J(a.$slots, "default", {}, void 0, !0)
4645
4679
  ]));
4646
4680
  }
4647
- }), Sl = /* @__PURE__ */ W(ro, [["__scopeId", "data-v-f0380fda"]]), so = /* @__PURE__ */ Z({
4681
+ }), Sl = /* @__PURE__ */ W(ro, [["__scopeId", "data-v-f0380fda"]]), so = /* @__PURE__ */ q({
4648
4682
  __name: "CardFooter",
4649
4683
  props: {
4650
4684
  as: { default: "div" }
4651
4685
  },
4652
4686
  setup(e) {
4653
- return (n, t) => (d(), te(Ze(e.as), { class: "rs-card-footer" }, {
4654
- default: ee(() => [
4655
- G(n.$slots, "default", {}, void 0, !0)
4687
+ return (n, t) => (d(), ne(Ze(e.as), { class: "rs-card-footer" }, {
4688
+ default: ae(() => [
4689
+ J(n.$slots, "default", {}, void 0, !0)
4656
4690
  ]),
4657
4691
  _: 3
4658
4692
  }));
4659
4693
  }
4660
- }), _l = /* @__PURE__ */ W(so, [["__scopeId", "data-v-9b223473"]]), io = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], uo = {
4694
+ }), Tl = /* @__PURE__ */ W(so, [["__scopeId", "data-v-9b223473"]]), io = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], uo = {
4661
4695
  key: 2,
4662
4696
  class: "icon",
4663
4697
  "aria-hidden": "true",
@@ -4673,7 +4707,7 @@ const Al = {
4673
4707
  }, fo = ["id"], mo = { class: "addons" }, po = ["id"], Co = {
4674
4708
  key: 0,
4675
4709
  class: "slot-default"
4676
- }, ho = /* @__PURE__ */ Z({
4710
+ }, ho = /* @__PURE__ */ q({
4677
4711
  __name: "Step",
4678
4712
  props: {
4679
4713
  title: {},
@@ -4684,11 +4718,11 @@ const Al = {
4684
4718
  setup(e) {
4685
4719
  const n = e, t = me("StepsContext");
4686
4720
  if (!t) throw new Error("Step component must be used inside Steps.");
4687
- const a = rt(), o = w(null), i = w(null), l = V(() => t.orientation ?? "horizontal");
4721
+ const a = rt(), o = M(null), i = M(null), l = I(() => t.orientation ?? "horizontal");
4688
4722
  let s = null, r = null;
4689
4723
  const c = me("StepIndex");
4690
4724
  if (c == null) throw new Error("StepIndex component must be used inside Steps.");
4691
- const u = V(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = V(() => t?.icons?.[u.value]), m = V(() => a.icon ? "slot" : n.icon ? n.icon : h.value), p = V(() => {
4725
+ const u = I(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = I(() => t?.icons?.[u.value]), m = I(() => a.icon ? "slot" : n.icon ? n.icon : h.value), p = I(() => {
4692
4726
  switch (u.value) {
4693
4727
  case "completed":
4694
4728
  return "Stage completed";
@@ -4699,7 +4733,7 @@ const Al = {
4699
4733
  default:
4700
4734
  return "Stage pending";
4701
4735
  }
4702
- }), C = V(() => {
4736
+ }), C = I(() => {
4703
4737
  switch (u.value) {
4704
4738
  case "completed":
4705
4739
  return "success";
@@ -4710,7 +4744,7 @@ const Al = {
4710
4744
  default:
4711
4745
  return "default";
4712
4746
  }
4713
- }), M = V(() => n.size ?? t.size ?? "sm"), D = V(() => {
4747
+ }), L = I(() => n.size ?? t.size ?? "sm"), R = I(() => {
4714
4748
  switch (u.value) {
4715
4749
  case "completed":
4716
4750
  return t.tagTitles.completed;
@@ -4722,9 +4756,9 @@ const Al = {
4722
4756
  return t.tagTitles.pending;
4723
4757
  }
4724
4758
  });
4725
- Q(
4759
+ te(
4726
4760
  () => u.value,
4727
- (y) => t.registerStepStatus(c, y),
4761
+ (g) => t.registerStepStatus(c, g),
4728
4762
  { immediate: !0 }
4729
4763
  );
4730
4764
  const $ = () => {
@@ -4733,22 +4767,22 @@ const Al = {
4733
4767
  }));
4734
4768
  }, k = () => {
4735
4769
  if (!o.value || !i.value) return;
4736
- const y = i.value.getBoundingClientRect(), T = t.stepsRef.value.getBoundingClientRect(), N = t.orientation === "vertical" ? y.top + y.height / 2 - T.top : y.left + y.width / 2 - T.left;
4737
- t.registerIndicatorCenter(c, N);
4738
- }, H = (y) => {
4739
- const T = t.orientation === "horizontal", N = t.orientation === "vertical";
4740
- switch (y.key) {
4770
+ const g = i.value.getBoundingClientRect(), _ = t.stepsRef.value.getBoundingClientRect(), O = t.orientation === "vertical" ? g.top + g.height / 2 - _.top : g.left + g.width / 2 - _.left;
4771
+ t.registerIndicatorCenter(c, O);
4772
+ }, H = (g) => {
4773
+ const _ = t.orientation === "horizontal", O = t.orientation === "vertical";
4774
+ switch (g.key) {
4741
4775
  case "ArrowRight":
4742
- T && t.focusNext();
4776
+ _ && t.focusNext();
4743
4777
  break;
4744
4778
  case "ArrowLeft":
4745
- T && t.focusPrev();
4779
+ _ && t.focusPrev();
4746
4780
  break;
4747
4781
  case "ArrowDown":
4748
- N && t.focusNext();
4782
+ O && t.focusNext();
4749
4783
  break;
4750
4784
  case "ArrowUp":
4751
- N && t.focusPrev();
4785
+ O && t.focusPrev();
4752
4786
  break;
4753
4787
  case "Home":
4754
4788
  t.focusFirst();
@@ -4759,9 +4793,9 @@ const Al = {
4759
4793
  default:
4760
4794
  return;
4761
4795
  }
4762
- y.preventDefault();
4796
+ g.preventDefault();
4763
4797
  };
4764
- return ce(() => {
4798
+ return de(() => {
4765
4799
  !o.value || !i.value || (requestAnimationFrame(() => {
4766
4800
  requestAnimationFrame(k);
4767
4801
  }), r = new ResizeObserver(() => {
@@ -4769,21 +4803,21 @@ const Al = {
4769
4803
  }), r.observe(o.value), r.observe(i.value), t.stepsRef.value && r.observe(t.stepsRef.value), t.registerStep(o.value));
4770
4804
  }), Ve(() => {
4771
4805
  r?.disconnect(), t.unregisterStep(o.value), s != null && cancelAnimationFrame(s);
4772
- }), (y, T) => (d(), b("li", {
4806
+ }), (g, _) => (d(), b("li", {
4773
4807
  ref_key: "stepRef",
4774
4808
  ref: o,
4775
- class: fe(["step", `step__${M.value}`]),
4809
+ class: fe(["step", `step__${L.value}`]),
4776
4810
  role: "listitem",
4777
4811
  "data-status": u.value,
4778
4812
  "data-orientation": l.value,
4779
4813
  "data-active": u.value === "active",
4780
4814
  "data-completed": u.value === "completed",
4781
- "aria-labelledby": `step-title-${E(c)}`,
4815
+ "aria-labelledby": `step-title-${z(c)}`,
4782
4816
  tabindex: u.value === "active" ? 0 : -1,
4783
4817
  "aria-current": u.value === "active" ? "step" : void 0,
4784
- "aria-posinset": E(c) + 1,
4785
- "aria-setsize": E(t).stepsCount.value,
4786
- "aria-describedby": `step-status-${E(c)}`,
4818
+ "aria-posinset": z(c) + 1,
4819
+ "aria-setsize": z(t).stepsCount.value,
4820
+ "aria-describedby": `step-status-${z(c)}`,
4787
4821
  onKeydown: H
4788
4822
  }, [
4789
4823
  x("span", {
@@ -4792,20 +4826,20 @@ const Al = {
4792
4826
  class: "indicator",
4793
4827
  "aria-hidden": "true"
4794
4828
  }, [
4795
- y.$slots.icon ? G(y.$slots, "icon", {
4829
+ g.$slots.icon ? J(g.$slots, "icon", {
4796
4830
  key: 0,
4797
4831
  status: u.value
4798
- }, void 0, !0) : m.value ? (d(), te(pe, {
4832
+ }, void 0, !0) : m.value ? (d(), ne(pe, {
4799
4833
  key: 1,
4800
4834
  name: m.value,
4801
4835
  class: "icon"
4802
4836
  }, null, 8, ["name"])) : F("", !0),
4803
- u.value === "completed" ? (d(), b("svg", uo, [...T[0] || (T[0] = [
4837
+ u.value === "completed" ? (d(), b("svg", uo, [..._[0] || (_[0] = [
4804
4838
  x("path", {
4805
4839
  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",
4806
4840
  fill: "currentColor"
4807
4841
  }, null, -1)
4808
- ])])) : u.value === "error" ? (d(), b("svg", co, [...T[1] || (T[1] = [
4842
+ ])])) : u.value === "error" ? (d(), b("svg", co, [..._[1] || (_[1] = [
4809
4843
  x("path", {
4810
4844
  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",
4811
4845
  fill: "currentColor"
@@ -4813,42 +4847,42 @@ const Al = {
4813
4847
  ])])) : u.value === "active" ? (d(), b("span", vo)) : F("", !0)
4814
4848
  ], 512),
4815
4849
  x("span", {
4816
- id: `step-status-${E(c)}`,
4850
+ id: `step-status-${z(c)}`,
4817
4851
  class: "sr-only"
4818
4852
  }, P(p.value), 9, fo),
4819
4853
  x("div", mo, [
4820
4854
  x("span", {
4821
- id: `step-title-${E(c)}`,
4855
+ id: `step-title-${z(c)}`,
4822
4856
  class: "title"
4823
4857
  }, P(e.title), 9, po),
4824
4858
  j(v2, {
4825
4859
  variant: C.value,
4826
4860
  size: "sm"
4827
4861
  }, {
4828
- default: ee(() => [
4829
- Me(P(D.value), 1)
4862
+ default: ae(() => [
4863
+ Me(P(R.value), 1)
4830
4864
  ]),
4831
4865
  _: 1
4832
4866
  }, 8, ["variant"]),
4833
- y.$slots.default ? (d(), b("span", Co, [
4834
- G(y.$slots, "default", {}, void 0, !0)
4867
+ g.$slots.default ? (d(), b("span", Co, [
4868
+ J(g.$slots, "default", {}, void 0, !0)
4835
4869
  ])) : F("", !0)
4836
4870
  ])
4837
4871
  ], 42, io));
4838
4872
  }
4839
- }), Tl = /* @__PURE__ */ W(ho, [["__scopeId", "data-v-22b83230"]]), go = /* @__PURE__ */ Z({
4873
+ }), _l = /* @__PURE__ */ W(ho, [["__scopeId", "data-v-22b83230"]]), go = /* @__PURE__ */ q({
4840
4874
  __name: "StepsItem",
4841
4875
  props: {
4842
4876
  index: {}
4843
4877
  },
4844
4878
  setup(e) {
4845
- return He("StepIndex", e.index), (t, a) => G(t.$slots, "default");
4879
+ return He("StepIndex", e.index), (t, a) => J(t.$slots, "default");
4846
4880
  }
4847
4881
  }), yo = ["data-size", "data-orientation"], bo = ["data-error", "data-completed"], ko = {
4848
4882
  "aria-live": "polite",
4849
4883
  "aria-atomic": "true",
4850
4884
  class: "sr-only"
4851
- }, wo = /* @__PURE__ */ Z({
4885
+ }, wo = /* @__PURE__ */ q({
4852
4886
  __name: "Steps",
4853
4887
  props: /* @__PURE__ */ ie({
4854
4888
  orientation: { default: "horizontal" },
@@ -4869,13 +4903,13 @@ const Al = {
4869
4903
  }),
4870
4904
  emits: ["update:modelValue"],
4871
4905
  setup(e) {
4872
- const n = e, t = w(0), a = rt(), o = be(e, "modelValue"), i = w([]), l = w(null), s = V(() => o.value ?? 0), r = `steps-description-${he()}`, c = qt({}), u = Mt({});
4906
+ const n = e, t = M(0), a = rt(), o = be(e, "modelValue"), i = M([]), l = M(null), s = I(() => o.value ?? 0), r = `steps-description-${he()}`, c = qt({}), u = Mt({});
4873
4907
  let h = null;
4874
- const m = V(() => (a.default?.() ?? [])[s.value]?.props?.title ?? ""), p = V(() => Object.entries(u).filter(([, _]) => _ !== "completed").length === 0), C = V(
4908
+ const m = I(() => (a.default?.() ?? [])[s.value]?.props?.title ?? ""), p = I(() => Object.entries(u).filter(([, S]) => S !== "completed").length === 0), C = I(
4875
4909
  () => Object.values(u).includes("error")
4876
- ), M = V(() => {
4877
- const _ = s.value, R = c;
4878
- if (R.value[0] == null || R.value[_] == null)
4910
+ ), L = I(() => {
4911
+ const S = s.value, N = c;
4912
+ if (N.value[0] == null || N.value[S] == null)
4879
4913
  return n.orientation === "vertical" ? {
4880
4914
  height: "100%",
4881
4915
  top: "0px"
@@ -4883,71 +4917,71 @@ const Al = {
4883
4917
  width: "100%",
4884
4918
  left: "0px"
4885
4919
  };
4886
- const I = R.value[0], A = R.value[_];
4920
+ const A = N.value[0], E = N.value[S];
4887
4921
  return n.orientation === "vertical" ? {
4888
- top: `${I}px`,
4889
- height: `${A - I}px`
4922
+ top: `${A}px`,
4923
+ height: `${E - A}px`
4890
4924
  } : {
4891
- left: `${I}px`,
4892
- width: `${A - I}px`
4925
+ left: `${A}px`,
4926
+ width: `${E - A}px`
4893
4927
  };
4894
- }), D = V(() => {
4895
- const _ = Object.values(c.value).sort((A, q) => A - q);
4896
- if (_.length < 2) return {};
4897
- const R = _[0], I = _[_.length - 1];
4928
+ }), R = I(() => {
4929
+ const S = Object.values(c.value).sort((E, B) => E - B);
4930
+ if (S.length < 2) return {};
4931
+ const N = S[0], A = S[S.length - 1];
4898
4932
  return n.orientation === "vertical" ? {
4899
- top: `${R}px`,
4900
- height: `${I - R}px`
4933
+ top: `${N}px`,
4934
+ height: `${A - N}px`
4901
4935
  } : {
4902
- left: `${R}px`,
4903
- right: `calc(100% - ${I}px)`
4936
+ left: `${N}px`,
4937
+ right: `calc(100% - ${A}px)`
4904
4938
  };
4905
- }), $ = (_, R) => c.value = { ...c.value, [_]: R };
4906
- function k(_) {
4907
- i.value.push(_), t.value = i.value.length;
4939
+ }), $ = (S, N) => c.value = { ...c.value, [S]: N };
4940
+ function k(S) {
4941
+ i.value.push(S), t.value = i.value.length;
4908
4942
  }
4909
- function H(_) {
4910
- i.value = i.value.filter((R) => R !== _), t.value = i.value.length;
4943
+ function H(S) {
4944
+ i.value = i.value.filter((N) => N !== S), t.value = i.value.length;
4911
4945
  }
4912
- function y(_) {
4913
- _ < 0 || _ >= i.value.length || (o.value = _, i.value[_]?.focus());
4946
+ function g(S) {
4947
+ S < 0 || S >= i.value.length || (o.value = S, i.value[S]?.focus());
4914
4948
  }
4915
- function T() {
4916
- y(o.value + 1);
4949
+ function _() {
4950
+ g(o.value + 1);
4917
4951
  }
4918
- function N() {
4919
- y(o.value - 1);
4952
+ function O() {
4953
+ g(o.value - 1);
4920
4954
  }
4921
- function J() {
4922
- y(0);
4955
+ function ee() {
4956
+ g(0);
4923
4957
  }
4924
- function S() {
4925
- y(t.value - 1);
4958
+ function D() {
4959
+ g(t.value - 1);
4926
4960
  }
4927
- return ce(() => {
4961
+ return de(() => {
4928
4962
  l.value && (h = new ResizeObserver(() => {
4929
4963
  }), h.observe(l.value));
4930
4964
  }), Ve(() => h?.disconnect()), He("StepsContext", {
4931
- current: V(() => o.value),
4932
- update: (_) => o.value = _,
4965
+ current: I(() => o.value),
4966
+ update: (S) => o.value = S,
4933
4967
  stepsCount: t,
4934
4968
  icons: n.icons,
4935
4969
  size: n.size,
4936
4970
  orientation: n.orientation,
4937
4971
  stepStatusMap: u,
4938
4972
  stepsRef: l,
4939
- registerStepStatus: (_, R) => {
4940
- u[_] = R;
4973
+ registerStepStatus: (S, N) => {
4974
+ u[S] = N;
4941
4975
  },
4942
4976
  registerIndicatorCenter: $,
4943
4977
  registerStep: k,
4944
4978
  unregisterStep: H,
4945
- focusNext: T,
4946
- focusPrev: N,
4947
- focusFirst: J,
4948
- focusLast: S,
4979
+ focusNext: _,
4980
+ focusPrev: O,
4981
+ focusFirst: ee,
4982
+ focusLast: D,
4949
4983
  tagTitles: n.tagTitles
4950
- }), (_, R) => (d(), b(ue, null, [
4984
+ }), (S, N) => (d(), b(ue, null, [
4951
4985
  x("ol", {
4952
4986
  ref_key: "stepsRef",
4953
4987
  ref: l,
@@ -4964,21 +4998,21 @@ const Al = {
4964
4998
  x("div", {
4965
4999
  class: "track",
4966
5000
  "aria-hidden": "true",
4967
- style: Ie(D.value)
5001
+ style: Ie(R.value)
4968
5002
  }, [
4969
5003
  x("div", {
4970
5004
  class: "track-progress",
4971
5005
  "data-error": C.value,
4972
5006
  "data-completed": p.value,
4973
- style: Ie(M.value)
5007
+ style: Ie(L.value)
4974
5008
  }, null, 12, bo)
4975
5009
  ], 4),
4976
- (d(!0), b(ue, null, Ce(_.$slots.default?.(), (I, A) => (d(), te(go, {
4977
- key: A,
4978
- index: A
5010
+ (d(!0), b(ue, null, Ce(S.$slots.default?.(), (A, E) => (d(), ne(go, {
5011
+ key: E,
5012
+ index: E
4979
5013
  }, {
4980
- default: ee(() => [
4981
- (d(), te(Ze(I)))
5014
+ default: ae(() => [
5015
+ (d(), ne(Ze(A)))
4982
5016
  ]),
4983
5017
  _: 2
4984
5018
  }, 1032, ["index"]))), 128))
@@ -4986,7 +5020,7 @@ const Al = {
4986
5020
  x("div", ko, " Step " + P(s.value + 1) + " of " + P(t.value) + ": " + P(m.value), 1)
4987
5021
  ], 64));
4988
5022
  }
4989
- }), El = /* @__PURE__ */ W(wo, [["__scopeId", "data-v-2fa0f578"]]), Mo = ["data-align"], Lo = /* @__PURE__ */ Z({
5023
+ }), El = /* @__PURE__ */ W(wo, [["__scopeId", "data-v-2fa0f578"]]), Mo = ["data-align"], Lo = /* @__PURE__ */ q({
4990
5024
  __name: "Timeline",
4991
5025
  props: {
4992
5026
  align: { default: "left" }
@@ -4997,10 +5031,10 @@ const Al = {
4997
5031
  class: "ui-timeline",
4998
5032
  "data-align": e.align
4999
5033
  }, [
5000
- G(t.$slots, "default", {}, void 0, !0)
5034
+ J(t.$slots, "default", {}, void 0, !0)
5001
5035
  ], 8, Mo));
5002
5036
  }
5003
- }), Zl = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-d56deb2b"]]), xo = ["data-align", "aria-labelledby", "aria-describedby"], $o = { class: "ui-timeline-content" }, Io = ["datetime"], Ho = { class: "ui-timeline-date--month" }, Vo = { class: "ui-timeline-date--day" }, Bo = { class: "ui-timeline-date--year" }, Ao = ["data-direction"], Ro = { class: "info" }, Do = ["id"], So = { class: "addons" }, _o = /* @__PURE__ */ Z({
5037
+ }), Zl = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-d56deb2b"]]), xo = ["data-align", "aria-labelledby", "aria-describedby"], $o = { class: "ui-timeline-content" }, Io = ["datetime"], Ho = { class: "ui-timeline-date--month" }, Vo = { class: "ui-timeline-date--day" }, Bo = { class: "ui-timeline-date--year" }, Ao = ["data-direction"], Ro = { class: "info" }, Do = ["id"], So = { class: "addons" }, To = /* @__PURE__ */ q({
5004
5038
  __name: "TimelineItem",
5005
5039
  props: {
5006
5040
  date: {},
@@ -5013,16 +5047,16 @@ const Al = {
5013
5047
  setup(e) {
5014
5048
  const n = e, t = me("TimelineContext");
5015
5049
  if (!t) throw new Error("TimelineItem must be used within a Timeline component");
5016
- const a = he(), o = he(), i = V(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), l = (c) => {
5050
+ const a = he(), o = he(), i = I(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), l = (c) => {
5017
5051
  const u = new Date(c).getDay();
5018
5052
  return u < 10 ? `0${u}` : u;
5019
5053
  }, s = (c) => new Date(c).toLocaleString("default", { month: "short" }), r = (c) => new Date(c).getFullYear();
5020
5054
  return (c, u) => (d(), b("li", {
5021
5055
  tabindex: "0",
5022
5056
  class: fe([i.value, "ui-timeline-item"]),
5023
- "data-align": E(t).align,
5024
- "aria-labelledby": e.title ? E(a) : void 0,
5025
- "aria-describedby": e.description ? E(o) : void 0
5057
+ "data-align": z(t).align,
5058
+ "aria-labelledby": e.title ? z(a) : void 0,
5059
+ "aria-describedby": e.description ? z(o) : void 0
5026
5060
  }, [
5027
5061
  u[0] || (u[0] = x("div", {
5028
5062
  class: "ui-timeline-marker",
@@ -5043,40 +5077,40 @@ const Al = {
5043
5077
  "data-direction": e.flexDirection
5044
5078
  }, [
5045
5079
  x("div", Ro, [
5046
- G(c.$slots, "title", {}, () => [
5047
- (d(), te(Ze(e.titleAs ?? "h3"), {
5048
- id: E(a),
5080
+ J(c.$slots, "title", {}, () => [
5081
+ (d(), ne(Ze(e.titleAs ?? "h3"), {
5082
+ id: z(a),
5049
5083
  class: "ui-timeline-title"
5050
5084
  }, {
5051
- default: ee(() => [
5085
+ default: ae(() => [
5052
5086
  Me(P(e.title), 1)
5053
5087
  ]),
5054
5088
  _: 1
5055
5089
  }, 8, ["id"]))
5056
5090
  ], !0),
5057
- G(c.$slots, "description", {}, () => [
5091
+ J(c.$slots, "description", {}, () => [
5058
5092
  e.description ? (d(), b("p", {
5059
5093
  key: 0,
5060
- id: E(o),
5094
+ id: z(o),
5061
5095
  class: "ui-timeline-description"
5062
5096
  }, P(e.description), 9, Do)) : F("", !0)
5063
5097
  ], !0)
5064
5098
  ]),
5065
5099
  x("div", So, [
5066
- G(c.$slots, "default", {}, void 0, !0)
5100
+ J(c.$slots, "default", {}, void 0, !0)
5067
5101
  ])
5068
5102
  ], 8, Ao)
5069
5103
  ])
5070
5104
  ], 10, xo));
5071
5105
  }
5072
- }), zl = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-10599410"]]), To = ["aria-label", "aria-activedescendant"], Eo = { class: "carousel-viewport" }, Zo = {
5106
+ }), zl = /* @__PURE__ */ W(To, [["__scopeId", "data-v-10599410"]]), _o = ["aria-label", "aria-activedescendant"], Eo = { class: "carousel-viewport" }, Zo = {
5073
5107
  class: "sr-only",
5074
5108
  "aria-live": "polite"
5075
5109
  }, zo = {
5076
5110
  key: 0,
5077
5111
  role: "tablist",
5078
5112
  class: "carousel-indicators"
5079
- }, qo = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], Oo = 0.35, No = 0.2, Fo = /* @__PURE__ */ Z({
5113
+ }, qo = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], No = 0.35, Oo = 0.2, Fo = /* @__PURE__ */ q({
5080
5114
  __name: "Carousel",
5081
5115
  props: /* @__PURE__ */ ie({
5082
5116
  ariaLabel: { default: "Carousel" },
@@ -5098,79 +5132,79 @@ const Al = {
5098
5132
  }),
5099
5133
  emits: ["update:modelValue"],
5100
5134
  setup(e) {
5101
- const n = be(e, "modelValue"), t = e, a = w(0), o = w(0), i = w(0), l = w(0), s = w(0), r = w(0), c = w(!1), u = w(!1), h = w(0), m = w([]), p = w(1), C = w(n.value), M = w(null), D = w(null);
5135
+ const n = be(e, "modelValue"), t = e, a = M(0), o = M(0), i = M(0), l = M(0), s = M(0), r = M(0), c = M(!1), u = M(!1), h = M(0), m = M([]), p = M(1), C = M(n.value), L = M(null), R = M(null);
5102
5136
  let $ = null, k = null;
5103
- Q(
5137
+ te(
5104
5138
  () => n.value,
5105
5139
  (f) => C.value = f
5106
5140
  );
5107
- const H = V(() => m.value[C.value] ?? void 0), y = V(() => Math.floor(C.value / p.value)), T = V(() => Math.ceil(ne.value / p.value)), N = V(() => Math.max(0, ne.value - p.value)), J = V(() => {
5108
- const f = C.value * (100 / p.value), v = u.value && D.value ? i.value / D.value.clientWidth * 100 : 0;
5141
+ const H = I(() => m.value[C.value] ?? void 0), g = I(() => Math.floor(C.value / p.value)), _ = I(() => Math.ceil(Y.value / p.value)), O = I(() => Math.max(0, Y.value - p.value)), ee = I(() => {
5142
+ const f = C.value * (100 / p.value), v = u.value && R.value ? i.value / R.value.clientWidth * 100 : 0;
5109
5143
  return {
5110
5144
  transform: `translateX(calc(-${f}% + ${v}%))`,
5111
5145
  transition: u.value ? "none" : "transform 300ms ease"
5112
5146
  };
5113
- }), S = (f) => {
5147
+ }), D = (f) => {
5114
5148
  let v = f;
5115
5149
  if (t.loop) {
5116
- const g = Math.round(f / p.value), B = T.value;
5117
- v = (g % B + B) % B * p.value;
5150
+ const y = Math.round(f / p.value), V = _.value;
5151
+ v = (y % V + V) % V * p.value;
5118
5152
  } else
5119
5153
  v = Math.min(
5120
5154
  Math.max(f, 0),
5121
- N.value
5155
+ O.value
5122
5156
  );
5123
5157
  C.value = v, n.value = v;
5124
- }, _ = () => S(C.value + p.value), R = () => S(C.value - p.value), I = (f) => {
5125
- f.key === "ArrowRight" ? _() : f.key === "ArrowLeft" && R();
5126
- }, A = (f) => (m.value.includes(f) || m.value.push(f), m.value.indexOf(f)), q = (f) => m.value = m.value.filter((v) => v !== f), ne = V(() => m.value.length), oe = () => {
5158
+ }, S = () => D(C.value + p.value), N = () => D(C.value - p.value), A = (f) => {
5159
+ f.key === "ArrowRight" ? S() : f.key === "ArrowLeft" && N();
5160
+ }, E = (f) => (m.value.includes(f) || m.value.push(f), m.value.indexOf(f)), B = (f) => m.value = m.value.filter((v) => v !== f), Y = I(() => m.value.length), Q = () => {
5127
5161
  !t.autoplay || $ !== null || ($ = window.setInterval(() => {
5128
- c.value || _();
5162
+ c.value || S();
5129
5163
  }, t.autoplayDelay));
5130
- }, de = () => {
5164
+ }, ce = () => {
5131
5165
  $ !== null && (clearInterval($), $ = null);
5132
- }, O = (f) => {
5166
+ }, Z = (f) => {
5133
5167
  if (typeof t.itemsPerView == "number")
5134
5168
  return t.itemsPerView;
5135
- const v = Object.entries(t.itemsPerView).map(([B, K]) => [Number(B), K]).sort((B, K) => B[0] - K[0]);
5136
- let g = v[0]?.[1] ?? 1;
5137
- for (const [B, K] of v) f >= B && (g = K);
5138
- return g;
5139
- }, L = (f) => {
5140
- f.button === 0 && (u.value = !0, o.value = f.clientX, a.value = f.clientX, r.value = f.clientX, i.value = 0, l.value = performance.now(), s.value = 0, h.value = C.value, D.value?.setPointerCapture(f.pointerId), de(), D.value.style.userSelect = "");
5141
- }, z = (f) => {
5169
+ const v = Object.entries(t.itemsPerView).map(([V, K]) => [Number(V), K]).sort((V, K) => V[0] - K[0]);
5170
+ let y = v[0]?.[1] ?? 1;
5171
+ for (const [V, K] of v) f >= V && (y = K);
5172
+ return y;
5173
+ }, w = (f) => {
5174
+ f.button === 0 && (u.value = !0, o.value = f.clientX, a.value = f.clientX, r.value = f.clientX, i.value = 0, l.value = performance.now(), s.value = 0, h.value = C.value, R.value?.setPointerCapture(f.pointerId), ce(), R.value.style.userSelect = "");
5175
+ }, T = (f) => {
5142
5176
  if (!u.value) return;
5143
- const v = performance.now(), g = f.clientX - a.value, B = v - l.value;
5144
- B > 0 && (s.value = g / B), a.value = f.clientX, l.value = v, r.value = f.clientX, i.value = r.value - o.value;
5145
- }, ae = (f) => {
5177
+ const v = performance.now(), y = f.clientX - a.value, V = v - l.value;
5178
+ V > 0 && (s.value = y / V), a.value = f.clientX, l.value = v, r.value = f.clientX, i.value = r.value - o.value;
5179
+ }, oe = (f) => {
5146
5180
  if (!u.value) return;
5147
- u.value = !1, D.value?.releasePointerCapture(f.pointerId), D.value.style.userSelect = "";
5148
- const v = D.value.clientWidth / p.value, g = i.value / v;
5149
- Math.abs(s.value) > Oo ? s.value < 0 ? _() : R() : Math.abs(g) > No ? g < 0 ? _() : R() : S(h.value), i.value = 0, s.value = 0, oe();
5181
+ u.value = !1, R.value?.releasePointerCapture(f.pointerId), R.value.style.userSelect = "";
5182
+ const v = R.value.clientWidth / p.value, y = i.value / v;
5183
+ Math.abs(s.value) > No ? s.value < 0 ? S() : N() : Math.abs(y) > Oo ? y < 0 ? S() : N() : D(h.value), i.value = 0, s.value = 0, Q();
5150
5184
  };
5151
- return ce(() => {
5152
- oe(), M.value && (k = new ResizeObserver((f) => {
5185
+ return de(() => {
5186
+ Q(), L.value && (k = new ResizeObserver((f) => {
5153
5187
  const v = f[0]?.contentRect.width;
5154
- v !== void 0 && (p.value = O(v));
5155
- }), k.observe(M.value));
5188
+ v !== void 0 && (p.value = Z(v));
5189
+ }), k.observe(L.value));
5156
5190
  }), Ve(() => {
5157
- de(), k?.disconnect();
5158
- }), Q(
5191
+ ce(), k?.disconnect();
5192
+ }), te(
5159
5193
  () => t.autoplay,
5160
5194
  (f) => {
5161
- f ? oe() : de();
5195
+ f ? Q() : ce();
5162
5196
  },
5163
5197
  { immediate: !0 }
5164
- ), Q(p, () => C.value = Math.min(C.value, N.value)), He("CarouselContext", {
5165
- register: A,
5166
- unregister: q,
5198
+ ), te(p, () => C.value = Math.min(C.value, O.value)), He("CarouselContext", {
5199
+ register: E,
5200
+ unregister: B,
5167
5201
  activeIndex: C,
5168
- slideCount: ne,
5202
+ slideCount: Y,
5169
5203
  deltaX: i,
5170
- itemsPerView: t.itemsPerView instanceof Object ? p : w(t.itemsPerView)
5204
+ itemsPerView: t.itemsPerView instanceof Object ? p : M(t.itemsPerView)
5171
5205
  }), (f, v) => (d(), b("div", {
5172
5206
  ref_key: "rootRef",
5173
- ref: M,
5207
+ ref: L,
5174
5208
  role: "region",
5175
5209
  class: "carousel",
5176
5210
  "aria-roledescription": "carousel",
@@ -5178,11 +5212,11 @@ const Al = {
5178
5212
  tabindex: "0",
5179
5213
  "aria-activedescendant": H.value,
5180
5214
  style: Ie({ "--items-per-view": p.value }),
5181
- onKeydown: I,
5182
- onMouseenter: v[0] || (v[0] = (g) => c.value = !0),
5183
- onMouseleave: v[1] || (v[1] = (g) => c.value = !1),
5184
- onFocusin: v[2] || (v[2] = (g) => c.value = !0),
5185
- onFocusout: v[3] || (v[3] = (g) => c.value = !1)
5215
+ onKeydown: A,
5216
+ onMouseenter: v[0] || (v[0] = (y) => c.value = !0),
5217
+ onMouseleave: v[1] || (v[1] = (y) => c.value = !1),
5218
+ onFocusin: v[2] || (v[2] = (y) => c.value = !0),
5219
+ onFocusout: v[3] || (v[3] = (y) => c.value = !1)
5186
5220
  }, [
5187
5221
  v[4] || (v[4] = x("span", {
5188
5222
  id: "carousel-instructions",
@@ -5191,23 +5225,23 @@ const Al = {
5191
5225
  x("div", Eo, [
5192
5226
  x("div", {
5193
5227
  ref_key: "trackRef",
5194
- ref: D,
5228
+ ref: R,
5195
5229
  class: "carousel-track",
5196
- style: Ie(J.value),
5197
- onPointerdown: L,
5198
- onPointermove: z,
5199
- onPointerup: ae,
5200
- onPointercancel: ae
5230
+ style: Ie(ee.value),
5231
+ onPointerdown: w,
5232
+ onPointermove: T,
5233
+ onPointerup: oe,
5234
+ onPointercancel: oe
5201
5235
  }, [
5202
- G(f.$slots, "default", {}, void 0, !0)
5236
+ J(f.$slots, "default", {}, void 0, !0)
5203
5237
  ], 36)
5204
5238
  ]),
5205
- x("span", Zo, " Slide " + P(Math.floor(C.value / p.value) + 1) + " of " + P(T.value), 1),
5239
+ x("span", Zo, " Slide " + P(Math.floor(C.value / p.value) + 1) + " of " + P(_.value), 1),
5206
5240
  x("button", {
5207
5241
  type: "button",
5208
5242
  class: "carousel-control prev",
5209
5243
  "aria-label": "Previous slide",
5210
- onClick: R
5244
+ onClick: N
5211
5245
  }, [
5212
5246
  j(pe, { name: "directionDown" })
5213
5247
  ]),
@@ -5215,35 +5249,35 @@ const Al = {
5215
5249
  type: "button",
5216
5250
  class: "carousel-control next",
5217
5251
  "aria-label": "Next slide",
5218
- onClick: _
5252
+ onClick: S
5219
5253
  }, [
5220
5254
  j(pe, { name: "directionDown" })
5221
5255
  ]),
5222
5256
  e.showIndicators ? (d(), b("div", zo, [
5223
- (d(!0), b(ue, null, Ce(T.value, (g, B) => (d(), b("button", {
5257
+ (d(!0), b(ue, null, Ce(_.value, (y, V) => (d(), b("button", {
5224
5258
  role: "tab",
5225
5259
  type: "button",
5226
- key: B,
5227
- class: fe(["indicator", { active: B === Math.floor(C.value / p.value) }]),
5228
- "aria-label": `Go to slide ${B + 1}`,
5229
- "aria-selected": B === y.value,
5230
- "aria-current": B === y.value,
5231
- onClick: (K) => S(B * p.value),
5260
+ key: V,
5261
+ class: fe(["indicator", { active: V === Math.floor(C.value / p.value) }]),
5262
+ "aria-label": `Go to slide ${V + 1}`,
5263
+ "aria-selected": V === g.value,
5264
+ "aria-current": V === g.value,
5265
+ onClick: (K) => D(V * p.value),
5232
5266
  onKeydown: [
5233
- ye(ve((K) => S((B - 1 + T.value) % T.value * p.value), ["prevent"]), ["left"]),
5234
- ye(ve((K) => S((B + 1) % T.value * p.value), ["prevent"]), ["right"])
5267
+ ye(ve((K) => D((V - 1 + _.value) % _.value * p.value), ["prevent"]), ["left"]),
5268
+ ye(ve((K) => D((V + 1) % _.value * p.value), ["prevent"]), ["right"])
5235
5269
  ]
5236
5270
  }, null, 42, qo))), 128))
5237
5271
  ])) : F("", !0)
5238
- ], 44, To));
5272
+ ], 44, _o));
5239
5273
  }
5240
- }), ql = /* @__PURE__ */ W(Fo, [["__scopeId", "data-v-30cdfc00"]]), Po = ["aria-hidden", "aria-label"], Ko = /* @__PURE__ */ Z({
5274
+ }), ql = /* @__PURE__ */ W(Fo, [["__scopeId", "data-v-30cdfc00"]]), Po = ["aria-hidden", "aria-label"], Ko = /* @__PURE__ */ q({
5241
5275
  __name: "CarouselItem",
5242
5276
  setup(e) {
5243
5277
  const n = me("CarouselContext");
5244
5278
  if (!n) throw new Error("CarouselItem must be used inside a Carousel");
5245
- const t = "carousel-item-" + he(), a = w(0), o = V(() => Math.abs(n.deltaX.value) > 5), i = V(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
5246
- return ce(() => a.value = n.register(t)), Ve(() => n.unregister(t)), (l, s) => (d(), b("div", {
5279
+ const t = "carousel-item-" + he(), a = M(0), o = I(() => Math.abs(n.deltaX.value) > 5), i = I(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
5280
+ return de(() => a.value = n.register(t)), Ve(() => n.unregister(t)), (l, s) => (d(), b("div", {
5247
5281
  role: "group",
5248
5282
  class: "carousel-item",
5249
5283
  id: t,
@@ -5252,10 +5286,10 @@ const Al = {
5252
5286
  "aria-label": `Slide ${a.value + 1}`,
5253
5287
  onClickCapture: s[0] || (s[0] = (r) => o.value && r.preventDefault())
5254
5288
  }, [
5255
- G(l.$slots, "default", {}, void 0, !0)
5289
+ J(l.$slots, "default", {}, void 0, !0)
5256
5290
  ], 40, Po));
5257
5291
  }
5258
- }), Ol = /* @__PURE__ */ W(Ko, [["__scopeId", "data-v-a569d055"]]), je = /* @__PURE__ */ Symbol("TabsContext"), Nl = Z({
5292
+ }), Nl = /* @__PURE__ */ W(Ko, [["__scopeId", "data-v-a569d055"]]), je = /* @__PURE__ */ Symbol("TabsContext"), Ol = q({
5259
5293
  name: "Tabs",
5260
5294
  props: {
5261
5295
  modelValue: String,
@@ -5271,40 +5305,40 @@ const Al = {
5271
5305
  },
5272
5306
  emits: ["update:modelValue"],
5273
5307
  setup(e, { emit: n, slots: t }) {
5274
- const a = w(e.modelValue ?? e.defaultValue), o = w(!1), i = w([]), l = w("forward"), s = w();
5275
- Q(a, (C) => {
5308
+ const a = M(e.modelValue ?? e.defaultValue), o = M(!1), i = M([]), l = M("forward"), s = M();
5309
+ te(a, (C) => {
5276
5310
  !C || !o.value || requestAnimationFrame(() => {
5277
5311
  document.getElementById(`tab-${C}`)?.focus(), o.value = !1;
5278
5312
  });
5279
- }), Q(
5313
+ }), te(
5280
5314
  () => e.modelValue,
5281
5315
  (C) => {
5282
5316
  C !== void 0 && (a.value = C);
5283
5317
  }
5284
- ), Q(i, (C) => {
5318
+ ), te(i, (C) => {
5285
5319
  !a.value && C.length && (a.value = C[0]);
5286
5320
  });
5287
- const r = (C, M) => i.value[M] = C, c = (C) => {
5288
- const M = i.value.filter(Boolean);
5289
- if (!M.length) return;
5290
- const D = a.value;
5291
- if (!D) {
5321
+ const r = (C, L) => i.value[L] = C, c = (C) => {
5322
+ const L = i.value.filter(Boolean);
5323
+ if (!L.length) return;
5324
+ const R = a.value;
5325
+ if (!R) {
5292
5326
  a.value = C, n("update:modelValue", C);
5293
5327
  return;
5294
5328
  }
5295
- const $ = M.indexOf(D), k = M.indexOf(C);
5329
+ const $ = L.indexOf(R), k = L.indexOf(C);
5296
5330
  if ($ === -1 || k === -1) {
5297
5331
  a.value = C, n("update:modelValue", C);
5298
5332
  return;
5299
5333
  }
5300
- $ !== -1 && k !== -1 && (l.value = k > $ ? "forward" : "backward"), D !== C && (a.value = C, n("update:modelValue", C));
5301
- }, u = V(() => l.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (C) => {
5334
+ $ !== -1 && k !== -1 && (l.value = k > $ ? "forward" : "backward"), R !== C && (a.value = C, n("update:modelValue", C));
5335
+ }, u = I(() => l.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (C) => {
5302
5336
  C instanceof HTMLElement && s.value && (s.value.style.height = `${C.offsetHeight}px`);
5303
5337
  }, m = (C) => {
5304
5338
  if (C instanceof HTMLElement && s.value) {
5305
- const M = C.offsetHeight;
5339
+ const L = C.offsetHeight;
5306
5340
  requestAnimationFrame(() => {
5307
- s.value && (s.value.style.height = `${M}px`);
5341
+ s.value && (s.value.style.height = `${L}px`);
5308
5342
  });
5309
5343
  }
5310
5344
  }, p = () => {
@@ -5315,19 +5349,19 @@ const Al = {
5315
5349
  setValue: c,
5316
5350
  registerTrigger: r,
5317
5351
  direction: l,
5318
- activationMode: w(e.activationMode),
5319
- orientation: w(e.orientation),
5352
+ activationMode: M(e.activationMode),
5353
+ orientation: M(e.orientation),
5320
5354
  triggers: i,
5321
5355
  contentWrapperRef: s,
5322
5356
  focusOnChange: o
5323
5357
  }), () => {
5324
- const C = t.default?.() || [], M = [], D = [];
5358
+ const C = t.default?.() || [], L = [], R = [];
5325
5359
  C.forEach((k) => {
5326
- k.type?.name === "TabsContent" ? D.push(k) : M.push(k);
5360
+ k.type?.name === "TabsContent" ? R.push(k) : L.push(k);
5327
5361
  });
5328
- const $ = D.find((k) => k.props?.value === a.value);
5362
+ const $ = R.find((k) => k.props?.value === a.value);
5329
5363
  return [
5330
- ...M,
5364
+ ...L,
5331
5365
  U(
5332
5366
  "div",
5333
5367
  {
@@ -5352,7 +5386,7 @@ const Al = {
5352
5386
  ];
5353
5387
  };
5354
5388
  }
5355
- }), Fl = Z({
5389
+ }), Fl = q({
5356
5390
  name: "TabsList",
5357
5391
  setup(e, { slots: n }) {
5358
5392
  const t = me(je);
@@ -5367,7 +5401,7 @@ const Al = {
5367
5401
  n.default?.()
5368
5402
  );
5369
5403
  }
5370
- }), Pl = Z({
5404
+ }), Pl = q({
5371
5405
  name: "TabsTrigger",
5372
5406
  props: {
5373
5407
  value: {
@@ -5386,7 +5420,7 @@ const Al = {
5386
5420
  setup(e, { slots: n }) {
5387
5421
  const t = me(je);
5388
5422
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
5389
- const a = V(() => t.activeValue.value === e.value), o = () => !e.disabled && t.setValue(e.value), i = (l) => {
5423
+ const a = I(() => t.activeValue.value === e.value), o = () => !e.disabled && t.setValue(e.value), i = (l) => {
5390
5424
  if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key)) return;
5391
5425
  l.preventDefault();
5392
5426
  const r = t.triggers.value.filter(Boolean);
@@ -5418,7 +5452,7 @@ const Al = {
5418
5452
  document.getElementById(`tab-${m}`)?.focus();
5419
5453
  });
5420
5454
  };
5421
- return ce(() => !e.disabled && t.registerTrigger(e.value, e.index)), Ve(() => t.triggers.value[e.index] = void 0), () => U(
5455
+ return de(() => !e.disabled && t.registerTrigger(e.value, e.index)), Ve(() => t.triggers.value[e.index] = void 0), () => U(
5422
5456
  Le,
5423
5457
  {
5424
5458
  role: "tab",
@@ -5435,7 +5469,7 @@ const Al = {
5435
5469
  { default: () => n.default?.() }
5436
5470
  );
5437
5471
  }
5438
- }), Kl = Z({
5472
+ }), Kl = q({
5439
5473
  name: "TabsContent",
5440
5474
  props: {
5441
5475
  value: {
@@ -5457,11 +5491,11 @@ const Al = {
5457
5491
  n.default?.()
5458
5492
  );
5459
5493
  }
5460
- }), Uo = { class: "ui-dropdown" }, Ul = /* @__PURE__ */ Z({
5494
+ }), Uo = { class: "ui-dropdown" }, Ul = /* @__PURE__ */ q({
5461
5495
  __name: "Dropdown",
5462
5496
  setup(e) {
5463
5497
  let n = 0;
5464
- const t = w(!1), a = w(null), o = w({}), i = `dropdown-${he()}`, l = `${i}-menu`, s = `${i}-trigger`, r = () => t.value = !0, c = () => {
5498
+ const t = M(!1), a = M(null), o = M({}), i = `dropdown-${he()}`, l = `${i}-menu`, s = `${i}-trigger`, r = () => t.value = !0, c = () => {
5465
5499
  t.value = !1, o.value = {}, n = 0, a.value?.focus({ preventScroll: !0 });
5466
5500
  }, u = () => t.value = !t.value, h = (k) => {
5467
5501
  const H = `dropdown-item-${n++}`;
@@ -5475,12 +5509,12 @@ const Al = {
5475
5509
  }, C = () => {
5476
5510
  const k = Object.keys(o.value), H = k[k.length - 1];
5477
5511
  H && m(H);
5478
- }, M = (k) => {
5479
- const H = Object.keys(o.value), y = $(k), T = H[y + 1];
5480
- y >= 0 && y < H.length - 1 && T && m(T);
5481
- }, D = (k) => {
5482
- const H = Object.keys(o.value), y = $(k), T = H[y - 1];
5483
- y > 0 && T && m(T);
5512
+ }, L = (k) => {
5513
+ const H = Object.keys(o.value), g = $(k), _ = H[g + 1];
5514
+ g >= 0 && g < H.length - 1 && _ && m(_);
5515
+ }, R = (k) => {
5516
+ const H = Object.keys(o.value), g = $(k), _ = H[g - 1];
5517
+ g > 0 && _ && m(_);
5484
5518
  }, $ = (k) => Object.keys(o.value).indexOf(k);
5485
5519
  return He("DropdownContext", {
5486
5520
  open: r,
@@ -5489,18 +5523,18 @@ const Al = {
5489
5523
  isOpen: t,
5490
5524
  registerItem: h,
5491
5525
  focusItem: m,
5492
- focusNextItem: M,
5493
- focusPrevItem: D,
5526
+ focusNextItem: L,
5527
+ focusPrevItem: R,
5494
5528
  focusFirstItem: p,
5495
5529
  focusLastItem: C,
5496
5530
  triggerRef: a,
5497
5531
  menuId: l,
5498
5532
  triggerId: s
5499
5533
  }), (k, H) => (d(), b("div", Uo, [
5500
- G(k.$slots, "default")
5534
+ J(k.$slots, "default")
5501
5535
  ]));
5502
5536
  }
5503
- }), jo = /* @__PURE__ */ Z({
5537
+ }), jo = /* @__PURE__ */ q({
5504
5538
  __name: "DropdownTrigger",
5505
5539
  props: {
5506
5540
  variant: { default: "button" }
@@ -5508,23 +5542,23 @@ const Al = {
5508
5542
  setup(e) {
5509
5543
  const n = e, t = me("DropdownContext");
5510
5544
  if (!t) throw new Error("DropdownTrigger must be used within a Dropdown");
5511
- const a = w(), o = (i) => {
5545
+ const a = M(), o = (i) => {
5512
5546
  i.key === "ArrowDown" && (i.preventDefault(), t.open(), $e(() => t.focusFirstItem())), i.key === "ArrowUp" && (i.preventDefault(), t.open(), $e(() => t.focusLastItem()));
5513
5547
  };
5514
- return ce(() => t.triggerRef.value = a.value?.el), (i, l) => (d(), te(Le, {
5548
+ return de(() => t.triggerRef.value = a.value?.el), (i, l) => (d(), ne(Le, {
5515
5549
  ref_key: "btn",
5516
5550
  ref: a,
5517
- id: E(t).triggerId,
5551
+ id: z(t).triggerId,
5518
5552
  class: fe(["ui-dropdown-trigger", { "btn-outline": n.variant === "button" }]),
5519
5553
  "aria-haspopup": "menu",
5520
- "aria-controls": E(t).menuId,
5521
- "aria-expanded": E(t).isOpen.value,
5522
- onClick: E(t).toggle,
5554
+ "aria-controls": z(t).menuId,
5555
+ "aria-expanded": z(t).isOpen.value,
5556
+ onClick: z(t).toggle,
5523
5557
  onKeydown: o
5524
5558
  }, {
5525
- default: ee(() => [
5526
- G(i.$slots, "default", {}, void 0, !0),
5527
- n.variant === "button" ? (d(), te(pe, {
5559
+ default: ae(() => [
5560
+ J(i.$slots, "default", {}, void 0, !0),
5561
+ n.variant === "button" ? (d(), ne(pe, {
5528
5562
  key: 0,
5529
5563
  name: "directionDown"
5530
5564
  })) : F("", !0)
@@ -5532,12 +5566,12 @@ const Al = {
5532
5566
  _: 3
5533
5567
  }, 8, ["id", "class", "aria-controls", "aria-expanded", "onClick"]));
5534
5568
  }
5535
- }), jl = /* @__PURE__ */ W(jo, [["__scopeId", "data-v-267a3d51"]]), Wo = ["id", "aria-labelledby"], Yo = /* @__PURE__ */ Z({
5569
+ }), jl = /* @__PURE__ */ W(jo, [["__scopeId", "data-v-267a3d51"]]), Wo = ["id", "aria-labelledby"], Yo = /* @__PURE__ */ q({
5536
5570
  __name: "DropdownMenu",
5537
5571
  setup(e) {
5538
5572
  const n = me("DropdownContext");
5539
5573
  if (!n) throw new Error("DropdownMenu must be used within a Dropdown");
5540
- const t = w(), a = w({}), o = (s) => {
5574
+ const t = M(), a = M({}), o = (s) => {
5541
5575
  const r = s.target;
5542
5576
  t.value?.contains(r) || n.triggerRef.value?.contains(r) || n.close();
5543
5577
  }, i = (s) => s.key === "Escape" && n.close(), l = () => {
@@ -5549,8 +5583,8 @@ const Al = {
5549
5583
  Math.max(c, p),
5550
5584
  window.innerWidth - h.width - c
5551
5585
  );
5552
- const C = window.innerHeight - u.bottom, M = u.top;
5553
- C < h.height && M > h.height && (m = u.top - h.height), m = Math.min(
5586
+ const C = window.innerHeight - u.bottom, L = u.top;
5587
+ C < h.height && L > h.height && (m = u.top - h.height), m = Math.min(
5554
5588
  Math.max(c, m),
5555
5589
  window.innerHeight - h.height - c
5556
5590
  ), a.value = {
@@ -5559,44 +5593,44 @@ const Al = {
5559
5593
  "--dropdown-menu-left": `${p}px`
5560
5594
  };
5561
5595
  };
5562
- return Q(
5596
+ return te(
5563
5597
  () => n.isOpen.value,
5564
5598
  (s) => {
5565
5599
  s ? (requestAnimationFrame(() => {
5566
5600
  l(), n.focusFirstItem();
5567
5601
  }), document.addEventListener("pointerdown", o, !0)) : document.removeEventListener("pointerdown", o, !0);
5568
5602
  }
5569
- ), ce(() => {
5603
+ ), de(() => {
5570
5604
  window.addEventListener("scroll", l, !0), window.addEventListener("resize", l);
5571
5605
  }), Ve(() => {
5572
5606
  window.removeEventListener("scroll", l, !0), window.removeEventListener("resize", l);
5573
- }), (s, r) => (d(), te(Fe, { to: "body" }, [
5574
- E(n).isOpen.value ? (d(), b("div", {
5607
+ }), (s, r) => (d(), ne(Fe, { to: "body" }, [
5608
+ z(n).isOpen.value ? (d(), b("div", {
5575
5609
  key: 0,
5576
5610
  role: "menu",
5577
5611
  ref_key: "menuRef",
5578
5612
  ref: t,
5579
5613
  style: Ie(a.value),
5580
- id: E(n).menuId,
5614
+ id: z(n).menuId,
5581
5615
  "aria-orientation": "vertical",
5582
- "aria-labelledby": E(n).triggerId,
5616
+ "aria-labelledby": z(n).triggerId,
5583
5617
  class: "ui-dropdown-menu",
5584
5618
  onKeydown: i
5585
5619
  }, [
5586
- G(s.$slots, "default", {}, void 0, !0)
5620
+ J(s.$slots, "default", {}, void 0, !0)
5587
5621
  ], 44, Wo)) : F("", !0)
5588
5622
  ]));
5589
5623
  }
5590
- }), Wl = /* @__PURE__ */ W(Yo, [["__scopeId", "data-v-acff21c3"]]), Xo = /* @__PURE__ */ Z({
5624
+ }), Wl = /* @__PURE__ */ W(Yo, [["__scopeId", "data-v-acff21c3"]]), Xo = /* @__PURE__ */ q({
5591
5625
  __name: "DropdownItem",
5592
5626
  setup(e) {
5593
5627
  const n = me("DropdownContext");
5594
5628
  if (!n) throw new Error("DropdownItem must be used within a Dropdown");
5595
5629
  let t;
5596
- const a = w(), o = (i) => {
5630
+ const a = M(), o = (i) => {
5597
5631
  i.key === "ArrowDown" && (i.preventDefault(), n.focusNextItem(t)), i.key === "ArrowUp" && (i.preventDefault(), n.focusPrevItem(t)), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), a.value?.click(), n.close());
5598
5632
  };
5599
- return ce(() => t = n.registerItem(a.value)), (i, l) => (d(), b("div", {
5633
+ return de(() => t = n.registerItem(a.value)), (i, l) => (d(), b("div", {
5600
5634
  ref_key: "itemRef",
5601
5635
  ref: a,
5602
5636
  role: "menuitem",
@@ -5604,25 +5638,25 @@ const Al = {
5604
5638
  tabindex: "-1",
5605
5639
  onKeydown: o,
5606
5640
  onClick: l[0] || (l[0] = //@ts-ignore
5607
- (...s) => E(n).close && E(n).close(...s)),
5641
+ (...s) => z(n).close && z(n).close(...s)),
5608
5642
  onPointerenter: l[1] || (l[1] = (s) => a.value?.focus())
5609
5643
  }, [
5610
- G(i.$slots, "default", {}, void 0, !0)
5644
+ J(i.$slots, "default", {}, void 0, !0)
5611
5645
  ], 544));
5612
5646
  }
5613
5647
  }), Yl = /* @__PURE__ */ W(Xo, [["__scopeId", "data-v-69de3d9c"]]), Go = (e) => {
5614
- const n = /* @__PURE__ */ new Date(), t = e.locale || "default", a = w(e.modelValue ?? null), o = w(e.modelValue ? new Date(e.modelValue) : n), i = e.firstDayOfWeek ?? 0, l = V(() => {
5648
+ 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, l = I(() => {
5615
5649
  const m = new Intl.DateTimeFormat(t, { month: "long", year: "numeric" }).format(o.value);
5616
5650
  return m.charAt(0).toUpperCase() + m.slice(1);
5617
- }), s = V(() => {
5651
+ }), s = I(() => {
5618
5652
  const m = new Date(2021, 5, 6);
5619
5653
  return Array.from({ length: 7 }).map((p, C) => {
5620
- const M = new Date(m);
5621
- return M.setDate(m.getDate() + (C + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(M).replace(".", "");
5654
+ const L = new Date(m);
5655
+ return L.setDate(m.getDate() + (C + i) % 7), new Intl.DateTimeFormat(t, { weekday: "short" }).format(L).replace(".", "");
5622
5656
  });
5623
- }), r = V(() => {
5624
- const m = o.value.getFullYear(), p = o.value.getMonth(), C = new Date(m, p, 1), M = new Date(m, p + 1, 0), D = (C.getDay() - i + 7) % 7, $ = M.getDate(), k = [];
5625
- for (let H = 0; H < D; H++) k.push(null);
5657
+ }), r = I(() => {
5658
+ const m = o.value.getFullYear(), p = o.value.getMonth(), C = new Date(m, p, 1), L = new Date(m, p + 1, 0), R = (C.getDay() - i + 7) % 7, $ = L.getDate(), k = [];
5659
+ for (let H = 0; H < R; H++) k.push(null);
5626
5660
  for (let H = 1; H <= $; H++) k.push(new Date(m, p, H));
5627
5661
  return k;
5628
5662
  });
@@ -5682,7 +5716,7 @@ const Qo = (e, n) => {
5682
5716
  }, ol = { class: "dp-header" }, ll = { class: "month__name" }, rl = { class: "dp-weekdays" }, sl = {
5683
5717
  class: "dp-days",
5684
5718
  role: "grid"
5685
- }, il = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], ul = /* @__PURE__ */ Z({
5719
+ }, il = ["disabled", "aria-pressed", "data-selected", "onMousedown", "aria-label"], ul = /* @__PURE__ */ q({
5686
5720
  __name: "DatePicker",
5687
5721
  props: /* @__PURE__ */ ie({
5688
5722
  id: {},
@@ -5700,75 +5734,75 @@ const Qo = (e, n) => {
5700
5734
  }),
5701
5735
  emits: /* @__PURE__ */ ie(["update:open"], ["update:modelValue"]),
5702
5736
  setup(e, { emit: n }) {
5703
- const t = be(e, "modelValue"), a = n, o = e, i = w(!1), l = w(""), s = w(null), r = w(null), {
5737
+ const t = be(e, "modelValue"), a = n, o = e, i = M(!1), l = M(""), s = M(null), r = M(null), {
5704
5738
  monthLabel: c,
5705
5739
  weekDays: u,
5706
5740
  currentMonth: h,
5707
5741
  days: m,
5708
5742
  nextMonth: p,
5709
5743
  prevMonth: C,
5710
- select: M
5744
+ select: L
5711
5745
  } = Go({
5712
5746
  modelValue: t.value,
5713
5747
  locale: o.locale,
5714
5748
  firstDayOfWeek: o.firstDayOfWeek
5715
5749
  });
5716
- Q(
5750
+ te(
5717
5751
  () => t.value,
5718
- (S) => {
5719
- if (!S) {
5752
+ (D) => {
5753
+ if (!D) {
5720
5754
  l.value = "", r.value = null;
5721
5755
  return;
5722
5756
  }
5723
- M(S), h.value = new Date(S), r.value = S, l.value = tt(S, o.format);
5757
+ L(D), h.value = new Date(D), r.value = D, l.value = tt(D, o.format);
5724
5758
  },
5725
5759
  { immediate: !0 }
5726
- ), Q(
5760
+ ), te(
5727
5761
  i,
5728
- async (S) => {
5729
- if (S) {
5762
+ async (D) => {
5763
+ if (D) {
5730
5764
  await $e();
5731
- let _ = s.value?.querySelector('button[data-selected="true"]');
5732
- if (!_) {
5733
- const R = /* @__PURE__ */ new Date();
5734
- _ = Array.from(s.value?.querySelectorAll("button") || []).find((I) => Number(I.textContent) === R.getDate() && !I.disabled);
5765
+ let S = s.value?.querySelector('button[data-selected="true"]');
5766
+ if (!S) {
5767
+ const N = /* @__PURE__ */ new Date();
5768
+ S = Array.from(s.value?.querySelectorAll("button") || []).find((A) => Number(A.textContent) === N.getDate() && !A.disabled);
5735
5769
  }
5736
- _ && _.focus(), document.addEventListener("keydown", k);
5770
+ S && S.focus(), document.addEventListener("keydown", k);
5737
5771
  } else document.removeEventListener("keydown", k);
5738
5772
  }
5739
5773
  );
5740
- const D = (S) => {
5741
- r.value = S, t.value = S, l.value = tt(S, o.format), M(S), i.value = !1;
5742
- }, $ = (S) => !S || !r.value ? "" : S.toDateString() === r.value.toDateString() ? "dp-selected" : "", k = (S) => S.key === "Escape" && (i.value = !1), H = (S) => {
5743
- S.key === "Backspace" || S.key === "Delete" || S.key === "ArrowLeft" || S.key === "ArrowRight" || S.key === "Tab" || /[0-9]/.test(S.key) || S.preventDefault();
5744
- }, y = (S) => {
5745
- const _ = S.target, R = _.selectionStart ?? 0, A = _.value.slice(0, R).replace(/\D/g, "").length;
5746
- let q = _.value.replace(/\D/g, "");
5747
- const ne = el(o.format);
5748
- q = q.slice(0, ne);
5749
- const oe = Qo(q, o.format);
5750
- l.value = oe, _.value = oe;
5751
- let de = 0, O = 0;
5752
- for (let z = 0; z < oe.length; z++)
5753
- if (/\d/.test(oe[z] ?? "") && O++, O >= A) {
5754
- de = z + 1;
5774
+ const R = (D) => {
5775
+ r.value = D, t.value = D, l.value = tt(D, o.format), L(D), i.value = !1;
5776
+ }, $ = (D) => !D || !r.value ? "" : D.toDateString() === r.value.toDateString() ? "dp-selected" : "", k = (D) => D.key === "Escape" && (i.value = !1), H = (D) => {
5777
+ D.key === "Backspace" || D.key === "Delete" || D.key === "ArrowLeft" || D.key === "ArrowRight" || D.key === "Tab" || /[0-9]/.test(D.key) || D.preventDefault();
5778
+ }, g = (D) => {
5779
+ const S = D.target, N = S.selectionStart ?? 0, E = S.value.slice(0, N).replace(/\D/g, "").length;
5780
+ let B = S.value.replace(/\D/g, "");
5781
+ const Y = el(o.format);
5782
+ B = B.slice(0, Y);
5783
+ const Q = Qo(B, o.format);
5784
+ l.value = Q, S.value = Q;
5785
+ let ce = 0, Z = 0;
5786
+ for (let T = 0; T < Q.length; T++)
5787
+ if (/\d/.test(Q[T] ?? "") && Z++, Z >= E) {
5788
+ ce = T + 1;
5755
5789
  break;
5756
5790
  }
5757
- requestAnimationFrame(() => _.setSelectionRange(de, de));
5758
- const L = wt(oe, o.format);
5759
- L && (r.value = L, t.value = L);
5760
- }, T = () => {
5791
+ requestAnimationFrame(() => S.setSelectionRange(ce, ce));
5792
+ const w = wt(Q, o.format);
5793
+ w && (r.value = w, t.value = w);
5794
+ }, _ = () => {
5761
5795
  i.value || (i.value = !0, a("update:open", !0));
5762
- }, N = (S) => {
5763
- s.value && (s.value.contains(S.target) || (i.value = !1, a("update:open", !1)));
5764
- }, J = () => {
5765
- const S = wt(l.value, o.format);
5766
- !S && !r.value ? (l.value = "", t.value = null, r.value = null) : S && (r.value = S, t.value = S, l.value = tt(S, o.format));
5796
+ }, O = (D) => {
5797
+ s.value && (s.value.contains(D.target) || (i.value = !1, a("update:open", !1)));
5798
+ }, ee = () => {
5799
+ const D = wt(l.value, o.format);
5800
+ !D && !r.value ? (l.value = "", t.value = null, r.value = null) : D && (r.value = D, t.value = D, l.value = tt(D, o.format));
5767
5801
  };
5768
- return ce(() => document.addEventListener("mousedown", N)), Te(() => document.removeEventListener("mousedown", N)), (S, _) => (d(), b("div", {
5802
+ return de(() => document.addEventListener("mousedown", O)), _e(() => document.removeEventListener("mousedown", O)), (D, S) => (d(), b("div", {
5769
5803
  ref_key: "root",
5770
5804
  ref: s,
5771
- class: fe(["dp", { required: Object.keys(S.$attrs).includes("required"), error: e.invalid }])
5805
+ class: fe(["dp", { required: Object.keys(D.$attrs).includes("required"), error: e.invalid }])
5772
5806
  }, [
5773
5807
  x("label", {
5774
5808
  for: e.id,
@@ -5778,11 +5812,11 @@ const Qo = (e, n) => {
5778
5812
  id: e.id,
5779
5813
  class: "dp-input",
5780
5814
  value: l.value,
5781
- onBlur: J,
5782
- onInput: y,
5815
+ onBlur: ee,
5816
+ onInput: g,
5783
5817
  onKeydown: H,
5784
- onMousedown: T,
5785
- required: Object.keys(S.$attrs).includes("required") || void 0,
5818
+ onMousedown: _,
5819
+ required: Object.keys(D.$attrs).includes("required") || void 0,
5786
5820
  "aria-invalid": !r.value && l.value !== "",
5787
5821
  disabled: e.disabled ? !0 : void 0,
5788
5822
  "data-disabled": e.disabled ? !0 : void 0,
@@ -5794,15 +5828,15 @@ const Qo = (e, n) => {
5794
5828
  j(Le, {
5795
5829
  type: "button",
5796
5830
  class: "btn-icon",
5797
- onClick: T,
5831
+ onClick: _,
5798
5832
  disabled: e.disabled || void 0
5799
5833
  }, {
5800
- default: ee(() => [
5834
+ default: ae(() => [
5801
5835
  j(pe, { name: "calendar" })
5802
5836
  ]),
5803
5837
  _: 1
5804
5838
  }, 8, ["disabled"]),
5805
- _[3] || (_[3] = x("small", {
5839
+ S[3] || (S[3] = x("small", {
5806
5840
  id: "time-help",
5807
5841
  class: "sr-only"
5808
5842
  }, "After selecting a date, adjust hours and minutes", -1)),
@@ -5810,49 +5844,49 @@ const Qo = (e, n) => {
5810
5844
  x("header", ol, [
5811
5845
  x("button", {
5812
5846
  type: "button",
5813
- onClick: _[0] || (_[0] = //@ts-ignore
5814
- (...R) => E(C) && E(C)(...R)),
5847
+ onClick: S[0] || (S[0] = //@ts-ignore
5848
+ (...N) => z(C) && z(C)(...N)),
5815
5849
  class: "btn__prev_month",
5816
5850
  "aria-label": "Previous month"
5817
5851
  }, "‹"),
5818
- x("span", ll, P(E(c)), 1),
5852
+ x("span", ll, P(z(c)), 1),
5819
5853
  x("button", {
5820
5854
  type: "button",
5821
- onClick: _[1] || (_[1] = //@ts-ignore
5822
- (...R) => E(p) && E(p)(...R)),
5855
+ onClick: S[1] || (S[1] = //@ts-ignore
5856
+ (...N) => z(p) && z(p)(...N)),
5823
5857
  class: "btn__next_month",
5824
5858
  "aria-label": "Next month"
5825
5859
  }, "›")
5826
5860
  ]),
5827
5861
  x("div", rl, [
5828
- (d(!0), b(ue, null, Ce(E(u), (R) => (d(), b("span", {
5862
+ (d(!0), b(ue, null, Ce(z(u), (N) => (d(), b("span", {
5829
5863
  class: "week-day__name",
5830
- key: R
5831
- }, P(R), 1))), 128))
5864
+ key: N
5865
+ }, P(N), 1))), 128))
5832
5866
  ]),
5833
5867
  x("div", sl, [
5834
- (d(!0), b(ue, null, Ce(E(m), (R, I) => (d(), b("button", {
5835
- key: I,
5868
+ (d(!0), b(ue, null, Ce(z(m), (N, A) => (d(), b("button", {
5869
+ key: A,
5836
5870
  type: "button",
5837
5871
  role: "gridcell",
5838
- class: fe(["btn__day", $(R)]),
5839
- disabled: !R,
5840
- "aria-pressed": $(R) === "dp-selected",
5841
- "data-selected": R && $(R) === "dp-selected",
5842
- onMousedown: ve((A) => R && D(R), ["prevent"]),
5843
- "aria-label": R ? R.toLocaleDateString(o.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
5844
- }, P(R?.getDate()), 43, il))), 128))
5872
+ class: fe(["btn__day", $(N)]),
5873
+ disabled: !N,
5874
+ "aria-pressed": $(N) === "dp-selected",
5875
+ "data-selected": N && $(N) === "dp-selected",
5876
+ onMousedown: ve((E) => N && R(N), ["prevent"]),
5877
+ "aria-label": N ? N.toLocaleDateString(o.locale, { weekday: "long", year: "numeric", month: "long", day: "numeric" }) : ""
5878
+ }, P(N?.getDate()), 43, il))), 128))
5845
5879
  ]),
5846
5880
  j(Le, {
5847
5881
  class: "btn-ghost btn-sm",
5848
- onClick: _[2] || (_[2] = (R) => t.value = /* @__PURE__ */ new Date())
5882
+ onClick: S[2] || (S[2] = (N) => t.value = /* @__PURE__ */ new Date())
5849
5883
  }, {
5850
- default: ee(() => [
5884
+ default: ae(() => [
5851
5885
  Me(P(e.todayLabel), 1)
5852
5886
  ]),
5853
5887
  _: 1
5854
5888
  }),
5855
- G(S.$slots, "time", {}, void 0, !0)
5889
+ J(D.$slots, "time", {}, void 0, !0)
5856
5890
  ])) : F("", !0)
5857
5891
  ], 2));
5858
5892
  }
@@ -5861,7 +5895,7 @@ const Qo = (e, n) => {
5861
5895
  class: "time-panel",
5862
5896
  role: "group",
5863
5897
  "aria-label": "Time selection"
5864
- }, vl = ["id", "aria-valuenow"], fl = { key: 1 }, ml = ["id", "aria-valuenow"], pl = { key: 3 }, Cl = ["id", "aria-valuenow"], hl = /* @__PURE__ */ Z({
5898
+ }, vl = ["id", "aria-valuenow"], fl = { key: 1 }, ml = ["id", "aria-valuenow"], pl = { key: 3 }, Cl = ["id", "aria-valuenow"], hl = /* @__PURE__ */ q({
5865
5899
  __name: "DateTimePicker",
5866
5900
  props: /* @__PURE__ */ ie({
5867
5901
  id: {},
@@ -5881,40 +5915,40 @@ const Qo = (e, n) => {
5881
5915
  }),
5882
5916
  emits: ["update:modelValue"],
5883
5917
  setup(e) {
5884
- const n = be(e, "modelValue"), t = e, a = he(), o = w(!1), i = w(null), l = V(() => t.format.includes("HH")), s = V(() => t.format.includes("mm")), r = V(() => t.format.includes("ss")), c = w(n.value ?? null), u = w(n.value?.getHours() ?? (l.value ? 0 : void 0)), h = w(n.value?.getMinutes() ?? (s.value ? 0 : void 0)), m = w(n.value?.getSeconds() ?? (r.value ? 0 : void 0));
5885
- Q(n, ($) => {
5918
+ const n = be(e, "modelValue"), t = e, a = he(), o = M(!1), i = M(null), l = I(() => t.format.includes("HH")), s = I(() => t.format.includes("mm")), r = I(() => t.format.includes("ss")), c = M(n.value ?? null), u = M(n.value?.getHours() ?? (l.value ? 0 : void 0)), h = M(n.value?.getMinutes() ?? (s.value ? 0 : void 0)), m = M(n.value?.getSeconds() ?? (r.value ? 0 : void 0));
5919
+ te(n, ($) => {
5886
5920
  if ($) {
5887
5921
  const k = new Date($);
5888
5922
  c.value = k, u.value = k.getHours(), h.value = k.getMinutes(), m.value = k.getSeconds();
5889
5923
  } else
5890
5924
  c.value = null, u.value = 0, h.value = 0, m.value = 0;
5891
- }, { immediate: !0 }), Q(c, ($) => {
5925
+ }, { immediate: !0 }), te(c, ($) => {
5892
5926
  if (!$) return;
5893
- const k = $.getHours(), H = $.getMinutes(), y = $.getSeconds();
5894
- k !== u.value && (u.value = k), H !== h.value && (h.value = H), y !== m.value && (m.value = y);
5895
- }, { immediate: !0 }), Q([c, u, h, m], () => {
5927
+ const k = $.getHours(), H = $.getMinutes(), g = $.getSeconds();
5928
+ k !== u.value && (u.value = k), H !== h.value && (h.value = H), g !== m.value && (m.value = g);
5929
+ }, { immediate: !0 }), te([c, u, h, m], () => {
5896
5930
  if (!c.value) {
5897
5931
  n.value = null;
5898
5932
  return;
5899
5933
  }
5900
- const $ = Math.min(Math.max(u.value ?? 0, 0), 23), k = Math.min(Math.max(h.value ?? 0, 0), 59), H = Math.min(Math.max(m.value ?? 0, 0), 59), y = new Date(c.value);
5901
- y.setHours($, k, H, 0), (!n.value || n.value.getTime() !== y.getTime()) && (n.value = y);
5934
+ const $ = Math.min(Math.max(u.value ?? 0, 0), 23), k = Math.min(Math.max(h.value ?? 0, 0), 59), H = Math.min(Math.max(m.value ?? 0, 0), 59), g = new Date(c.value);
5935
+ g.setHours($, k, H, 0), (!n.value || n.value.getTime() !== g.getTime()) && (n.value = g);
5902
5936
  });
5903
5937
  const p = ($) => {
5904
5938
  i.value && (i.value.contains($.target) || (o.value = !1));
5905
5939
  }, C = ($) => {
5906
5940
  const k = Number($.target.value);
5907
5941
  isNaN(k) || k < 0 ? u.value = 0 : k > 23 ? u.value = 23 : u.value = k;
5908
- }, M = ($) => {
5942
+ }, L = ($) => {
5909
5943
  const k = Number($.target.value);
5910
5944
  isNaN(k) || k < 0 ? h.value = 0 : k > 59 ? h.value = 59 : h.value = k;
5911
- }, D = ($) => {
5945
+ }, R = ($) => {
5912
5946
  const k = Number($.target.value);
5913
5947
  isNaN(k) || k < 0 ? m.value = 0 : k > 59 ? m.value = 59 : m.value = k;
5914
5948
  };
5915
- return ce(() => {
5949
+ return de(() => {
5916
5950
  document.addEventListener("mousedown", p);
5917
- }), Te(() => {
5951
+ }), _e(() => {
5918
5952
  document.removeEventListener("mousedown", p);
5919
5953
  }), ($, k) => (d(), b("div", {
5920
5954
  class: "dtp",
@@ -5934,11 +5968,11 @@ const Qo = (e, n) => {
5934
5968
  "first-day-of-week": e.firstDayOfWeek,
5935
5969
  placeholder: e.placeholder
5936
5970
  }), {
5937
- time: ee(() => [
5971
+ time: ae(() => [
5938
5972
  o.value ? (d(), b("div", dl, [
5939
5973
  l.value ? Re((d(), b("input", {
5940
5974
  key: 0,
5941
- id: `hour_${E(a)}`,
5975
+ id: `hour_${z(a)}`,
5942
5976
  type: "number",
5943
5977
  "onUpdate:modelValue": k[0] || (k[0] = (H) => u.value = H),
5944
5978
  min: "0",
@@ -5959,7 +5993,7 @@ const Qo = (e, n) => {
5959
5993
  l.value && s.value ? (d(), b("span", fl, ":")) : F("", !0),
5960
5994
  s.value ? Re((d(), b("input", {
5961
5995
  key: 2,
5962
- id: `minute_${E(a)}`,
5996
+ id: `minute_${z(a)}`,
5963
5997
  type: "number",
5964
5998
  "onUpdate:modelValue": k[1] || (k[1] = (H) => h.value = H),
5965
5999
  min: "0",
@@ -5968,7 +6002,7 @@ const Qo = (e, n) => {
5968
6002
  "aria-valuemin": "0",
5969
6003
  "aria-valuemax": "59",
5970
6004
  "aria-valuenow": h.value,
5971
- onInput: M
6005
+ onInput: L
5972
6006
  }, null, 40, ml)), [
5973
6007
  [
5974
6008
  Ge,
@@ -5980,7 +6014,7 @@ const Qo = (e, n) => {
5980
6014
  (l.value || s.value) && r.value ? (d(), b("span", pl, ":")) : F("", !0),
5981
6015
  r.value ? Re((d(), b("input", {
5982
6016
  key: 4,
5983
- id: `second_${E(a)}`,
6017
+ id: `second_${z(a)}`,
5984
6018
  type: "number",
5985
6019
  "onUpdate:modelValue": k[2] || (k[2] = (H) => m.value = H),
5986
6020
  min: "0",
@@ -5989,7 +6023,7 @@ const Qo = (e, n) => {
5989
6023
  "aria-valuemin": "0",
5990
6024
  "aria-valuemax": "59",
5991
6025
  "aria-valuenow": m.value,
5992
- onInput: D
6026
+ onInput: R
5993
6027
  }, null, 40, Cl)), [
5994
6028
  [
5995
6029
  Ge,
@@ -6004,7 +6038,7 @@ const Qo = (e, n) => {
6004
6038
  }, 16, ["modelValue", "open", "id", "invalid", "locale", "format", "label", "first-day-of-week", "placeholder"])
6005
6039
  ], 512));
6006
6040
  }
6007
- }), Xl = /* @__PURE__ */ W(hl, [["__scopeId", "data-v-870f6dd9"]]), Gl = Z({
6041
+ }), Xl = /* @__PURE__ */ W(hl, [["__scopeId", "data-v-870f6dd9"]]), Gl = q({
6008
6042
  name: "Table",
6009
6043
  props: {
6010
6044
  columns: {
@@ -6208,7 +6242,7 @@ const Qo = (e, n) => {
6208
6242
  );
6209
6243
  };
6210
6244
  }
6211
- }), We = /* @__PURE__ */ Symbol("AccordionContext"), Jl = Z({
6245
+ }), We = /* @__PURE__ */ Symbol("AccordionContext"), Jl = q({
6212
6246
  name: "Accordion",
6213
6247
  props: {
6214
6248
  multiple: { type: Boolean, default: !1 },
@@ -6218,7 +6252,7 @@ const Qo = (e, n) => {
6218
6252
  }
6219
6253
  },
6220
6254
  setup(e, { slots: n }) {
6221
- const t = w([]), a = w(new Set(e.defaultOpen)), o = (h) => {
6255
+ const t = M([]), a = M(new Set(e.defaultOpen)), o = (h) => {
6222
6256
  if (a.value.has(h)) {
6223
6257
  a.value.delete(h);
6224
6258
  return;
@@ -6248,7 +6282,7 @@ const Qo = (e, n) => {
6248
6282
  focusLast: u
6249
6283
  }), () => n.default?.();
6250
6284
  }
6251
- }), Ql = Z({
6285
+ }), Ql = q({
6252
6286
  name: "AccordionItem",
6253
6287
  props: {
6254
6288
  id: { type: String, required: !0 },
@@ -6257,7 +6291,7 @@ const Qo = (e, n) => {
6257
6291
  setup(e, { slots: n }) {
6258
6292
  const t = me(We);
6259
6293
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
6260
- const a = V(() => t.openItems.value.has(e.id));
6294
+ const a = I(() => t.openItems.value.has(e.id));
6261
6295
  return () => U(
6262
6296
  "div",
6263
6297
  {
@@ -6267,16 +6301,16 @@ const Qo = (e, n) => {
6267
6301
  n.default?.({ open: a.value })
6268
6302
  );
6269
6303
  }
6270
- }), er = Z({
6304
+ }), er = q({
6271
6305
  name: "AccordionHeader",
6272
6306
  props: {
6273
6307
  id: { type: String, required: !0 },
6274
6308
  disabled: { type: Boolean, default: !1 }
6275
6309
  },
6276
6310
  setup(e, { slots: n }) {
6277
- const t = me(We), a = w(null);
6311
+ const t = me(We), a = M(null);
6278
6312
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
6279
- const o = V(() => t.openItems.value.has(e.id)), i = () => {
6313
+ const o = I(() => t.openItems.value.has(e.id)), i = () => {
6280
6314
  e.disabled || t.toggle?.(e.id);
6281
6315
  }, l = (s) => {
6282
6316
  if (a.value)
@@ -6295,9 +6329,9 @@ const Qo = (e, n) => {
6295
6329
  break;
6296
6330
  }
6297
6331
  };
6298
- return ce(() => {
6332
+ return de(() => {
6299
6333
  a.value && t.registerHeader(a.value);
6300
- }), Te(() => {
6334
+ }), _e(() => {
6301
6335
  a.value && t.unregisterHeader(a.value);
6302
6336
  }), () => U(
6303
6337
  "button",
@@ -6327,7 +6361,7 @@ const Qo = (e, n) => {
6327
6361
  ]
6328
6362
  );
6329
6363
  }
6330
- }), tr = Z({
6364
+ }), tr = q({
6331
6365
  name: "AccordionPanel",
6332
6366
  props: {
6333
6367
  id: { type: String, required: !0 }
@@ -6335,7 +6369,7 @@ const Qo = (e, n) => {
6335
6369
  setup(e, { slots: n }) {
6336
6370
  const t = me(We);
6337
6371
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
6338
- const a = V(() => t.openItems.value.has(e.id));
6372
+ const a = I(() => t.openItems.value.has(e.id));
6339
6373
  return () => U(
6340
6374
  "div",
6341
6375
  {
@@ -6365,10 +6399,10 @@ export {
6365
6399
  Le as Button,
6366
6400
  Rl as Card,
6367
6401
  Sl as CardBody,
6368
- _l as CardFooter,
6402
+ Tl as CardFooter,
6369
6403
  Dl as CardHeader,
6370
6404
  ql as Carousel,
6371
- Ol as CarouselItem,
6405
+ Nl as CarouselItem,
6372
6406
  xl as Checkbox,
6373
6407
  cl as DatePicker,
6374
6408
  Xl as DateTimePicker,
@@ -6379,7 +6413,7 @@ export {
6379
6413
  mt as Editor,
6380
6414
  pn as Highlight,
6381
6415
  pe as Icon,
6382
- _e as Image,
6416
+ Te as Image,
6383
6417
  gt as ImageGallery,
6384
6418
  kl as Input,
6385
6419
  bl as Link,
@@ -6394,10 +6428,10 @@ export {
6394
6428
  Hl as RadioButton,
6395
6429
  Ml as Select,
6396
6430
  Dt as Spinner,
6397
- Tl as Step,
6431
+ _l as Step,
6398
6432
  El as Steps,
6399
6433
  Gl as Table,
6400
- Nl as Tabs,
6434
+ Ol as Tabs,
6401
6435
  Kl as TabsContent,
6402
6436
  Fl as TabsList,
6403
6437
  Pl as TabsTrigger,