@reinosoft-ui/core 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, ref as m, computed as V, watch as X, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as le, renderSlot as Y, createCommentVNode as O, withDirectives as we, createElementVNode as w, vShow as qe, mergeProps as Ce, mergeModels as Q, useModel as fe, withKeys as ve, withModifiers as ne, onUnmounted as be, Fragment as te, unref as D, toDisplayString as P, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as Me, useId as ce, provide as ge, createVNode as U, createTextVNode as me, onBeforeUnmount as Ie, Teleport as He, resolveDynamicComponent as Ve, useAttrs as Ne, inject as ie, h as K, useSlots as Fe, resolveComponent as h1, vModelRadio as y1, vModelDynamic as g1, reactive as r1, TransitionGroup as b1, createApp as k1, shallowRef as w1, vModelText as Ae } from "vue";
1
+ import { defineComponent as S, ref as m, computed as V, watch as X, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as le, renderSlot as Y, createCommentVNode as O, withDirectives as Me, createElementVNode as w, vShow as qe, mergeProps as Ce, mergeModels as Q, useModel as fe, withKeys as ve, withModifiers as ne, onUnmounted as be, Fragment as te, unref as D, toDisplayString as P, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as we, useId as ce, provide as ge, createVNode as U, createTextVNode as me, onBeforeUnmount as Ie, Teleport as He, resolveDynamicComponent as Ve, useAttrs as Ne, inject as ie, h as K, useSlots as Fe, resolveComponent as h1, vModelRadio as y1, vModelDynamic as g1, reactive as r1, TransitionGroup as b1, createApp as k1, shallowRef as w1, vModelText as Ae } from "vue";
2
2
  import { routerKey as M1 } from "vue-router";
3
3
  const x1 = ["aria-busy"], L1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], V1 = /* @__PURE__ */ S({
4
4
  __name: "Image",
@@ -54,7 +54,7 @@ const x1 = ["aria-busy"], L1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "
54
54
  "aria-label": e.decorative ? void 0 : e.alt
55
55
  }, "Image not available", 8, L1)
56
56
  ], !0) : O("", !0),
57
- we(w("img", {
57
+ Me(w("img", {
58
58
  ref_key: "imgRef",
59
59
  ref: s,
60
60
  class: "ui-image__img",
@@ -215,10 +215,10 @@ const s1 = (e) => {
215
215
  if (!A) return !1;
216
216
  const B = n(b, A), q = [];
217
217
  if (B.forEach((M) => {
218
- const L = M === b.startContainer ? b.startOffset : 0, E = M === b.endContainer ? b.endOffset : M.textContent.length;
219
- if (L === E) return;
218
+ const L = M === b.startContainer ? b.startOffset : 0, z = M === b.endContainer ? b.endOffset : M.textContent.length;
219
+ if (L === z) return;
220
220
  let W;
221
- L === 0 && E === M.textContent.length ? W = M : (W = M.splitText(L), E - L < W.textContent.length && W.splitText(E - L));
221
+ L === 0 && z === M.textContent.length ? W = M : (W = M.splitText(L), z - L < W.textContent.length && W.splitText(z - L));
222
222
  const ee = _1(W, y, A);
223
223
  if (ee)
224
224
  D1(ee), q.push(W);
@@ -335,20 +335,20 @@ const s1 = (e) => {
335
335
  B.selectNodeContents(A), B.setEnd(b.startContainer, b.startOffset);
336
336
  const q = B.toString().length, M = b.cloneRange();
337
337
  M.selectNodeContents(A), M.setEnd(b.endContainer, b.endOffset);
338
- const L = M.toString().length, E = b.collapsed, W = y(A);
338
+ const L = M.toString().length, z = b.collapsed, W = y(A);
339
339
  A.replaceWith(W);
340
340
  const ee = document.createTreeWalker(
341
341
  W,
342
342
  NodeFilter.SHOW_TEXT,
343
343
  null
344
344
  );
345
- let re = 0, T = null, N = 0, H = null, z = 0;
345
+ let re = 0, T = null, N = 0, H = null, E = 0;
346
346
  for (; ee.nextNode(); ) {
347
347
  const F = ee.currentNode, se = F.textContent?.length ?? 0;
348
- !T && re + se >= q && (T = F, N = q - re), !H && re + se >= L && (H = F, z = L - re), re += se;
348
+ !T && re + se >= q && (T = F, N = q - re), !H && re + se >= L && (H = F, E = L - re), re += se;
349
349
  }
350
350
  const Z = document.createRange();
351
- T ? Z.setStart(T, N) : Z.setStart(W, 0), !E && H ? Z.setEnd(H, z) : Z.collapse(!0), I.removeAllRanges(), I.addRange(Z), s(), k();
351
+ T ? Z.setStart(T, N) : Z.setStart(W, 0), !z && H ? Z.setEnd(H, E) : Z.collapse(!0), I.removeAllRanges(), I.addRange(Z), s(), k();
352
352
  }, R = (y) => {
353
353
  const I = e.parentElement?.querySelector("#editor-status");
354
354
  I && (I.textContent = y, setTimeout(() => I.textContent = "", 2e3));
@@ -2017,7 +2017,7 @@ const s1 = (e) => {
2017
2017
  ...c.value,
2018
2018
  ...t.editor?.buttons ?? []
2019
2019
  ]), p = async () => {
2020
- await Me(), i.value[0]?.focus();
2020
+ await we(), i.value[0]?.focus();
2021
2021
  }, g = (d) => {
2022
2022
  const C = i.value, $ = C.indexOf(document.activeElement);
2023
2023
  if (d.key === "ArrowRight") {
@@ -2203,15 +2203,15 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2203
2203
  }
2204
2204
  if (!L.length) return;
2205
2205
  l("select", L.map((W) => W.file));
2206
- const E = [...u.value, ...L];
2207
- t.value = E, a.autoUpload && L.forEach(R);
2206
+ const z = [...u.value, ...L];
2207
+ t.value = z, a.autoUpload && L.forEach(R);
2208
2208
  }, R = (M) => {
2209
2209
  const L = new AbortController();
2210
2210
  M.progress = 0, M.error = void 0, M.status = "uploading", M.controller = L, B(`Started uploading ${M.file.name}`);
2211
- const E = () => {
2212
- L.signal.removeEventListener("abort", E);
2211
+ const z = () => {
2212
+ L.signal.removeEventListener("abort", z);
2213
2213
  };
2214
- L.signal.addEventListener("abort", E);
2214
+ L.signal.addEventListener("abort", z);
2215
2215
  const W = {
2216
2216
  signal: L.signal,
2217
2217
  onProgress: (ee) => {
@@ -2231,10 +2231,10 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2231
2231
  M.status !== "error" && M.status !== "canceled" || R(M);
2232
2232
  }, b = () => t.value = [...u.value], A = (M) => {
2233
2233
  const L = ["B", "KB", "MB", "GB", "TB"];
2234
- let E = 0;
2235
- for (; M >= 1024 && E < L.length - 1; )
2236
- M /= 1024, E++;
2237
- return `${M.toFixed(2)} ${L[E]}`;
2234
+ let z = 0;
2235
+ for (; M >= 1024 && z < L.length - 1; )
2236
+ M /= 1024, z++;
2237
+ return `${M.toFixed(2)} ${L[z]}`;
2238
2238
  }, B = (M) => {
2239
2239
  i.value = "", requestAnimationFrame(() => {
2240
2240
  i.value = M;
@@ -2252,14 +2252,14 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2252
2252
  "aria-disabled": e.disabled ? "true" : void 0,
2253
2253
  "data-disabled": e.disabled || void 0,
2254
2254
  "data-dragging": n.value || void 0,
2255
- onClick: L[0] || (L[0] = (E) => !e.disabled && d()),
2255
+ onClick: L[0] || (L[0] = (z) => !e.disabled && d()),
2256
2256
  onKeydown: [
2257
- L[1] || (L[1] = ve(ne((E) => !e.disabled && d(), ["stop", "prevent"]), ["enter"])),
2258
- L[2] || (L[2] = ve(ne((E) => !e.disabled && d(), ["prevent"]), ["space"]))
2257
+ L[1] || (L[1] = ve(ne((z) => !e.disabled && d(), ["stop", "prevent"]), ["enter"])),
2258
+ L[2] || (L[2] = ve(ne((z) => !e.disabled && d(), ["prevent"]), ["space"]))
2259
2259
  ],
2260
- onDragover: L[3] || (L[3] = ne((E) => !e.disabled && C(), ["prevent"])),
2260
+ onDragover: L[3] || (L[3] = ne((z) => !e.disabled && C(), ["prevent"])),
2261
2261
  onDragleave: $,
2262
- onDrop: L[4] || (L[4] = ne((E) => !e.disabled && x(E), ["prevent"]))
2262
+ onDrop: L[4] || (L[4] = ne((z) => !e.disabled && x(z), ["prevent"]))
2263
2263
  }, [
2264
2264
  w("input", {
2265
2265
  type: "file",
@@ -2293,60 +2293,60 @@ const b2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
2293
2293
  w("span", null, "Maximum size: " + P(p.value), 1)
2294
2294
  ], !0) : O("", !0),
2295
2295
  u.value?.length ? (v(), f("ul", w2, [
2296
- (v(!0), f(te, null, ue(u.value, (E) => (v(), f("li", {
2297
- key: E.id,
2296
+ (v(!0), f(te, null, ue(u.value, (z) => (v(), f("li", {
2297
+ key: z.id,
2298
2298
  class: "ui-upload__item"
2299
2299
  }, [
2300
2300
  Y(M.$slots, "file", {
2301
- file: E,
2302
- remove: () => q(E),
2303
- cancel: () => y(E),
2304
- retry: () => I(E)
2301
+ file: z,
2302
+ remove: () => q(z),
2303
+ cancel: () => y(z),
2304
+ retry: () => I(z)
2305
2305
  }, () => [
2306
2306
  w("div", M2, [
2307
- w("span", x2, P(E.file.name), 1),
2308
- w("span", L2, P(A(E.file.size)), 1)
2307
+ w("span", x2, P(z.file.name), 1),
2308
+ w("span", L2, P(A(z.file.size)), 1)
2309
2309
  ]),
2310
- E.status === "uploading" ? (v(), f("div", $2, [
2311
- w("span", V2, P(E.progress) + "% ", 1),
2310
+ z.status === "uploading" ? (v(), f("div", $2, [
2311
+ w("span", V2, P(z.progress) + "% ", 1),
2312
2312
  w("progress", {
2313
2313
  class: "ui-upload__progress",
2314
- value: E.progress,
2314
+ value: z.progress,
2315
2315
  max: "100",
2316
- "aria-label": `Upload progress for ${E.file.name}`
2316
+ "aria-label": `Upload progress for ${z.file.name}`
2317
2317
  }, null, 8, I2)
2318
2318
  ])) : O("", !0),
2319
- E.status === "success" ? (v(), f("span", H2, " Uploaded successful ")) : O("", !0),
2320
- E.status === "error" ? (v(), f("span", B2, P(E.error || "Upload failed"), 1)) : O("", !0),
2321
- E.status === "canceled" ? (v(), f("span", _2, " Upload canceled ")) : O("", !0),
2319
+ z.status === "success" ? (v(), f("span", H2, " Uploaded successful ")) : O("", !0),
2320
+ z.status === "error" ? (v(), f("span", B2, P(z.error || "Upload failed"), 1)) : O("", !0),
2321
+ z.status === "canceled" ? (v(), f("span", _2, " Upload canceled ")) : O("", !0),
2322
2322
  w("div", D2, [
2323
- E.status === "uploading" ? (v(), J(he, {
2323
+ z.status === "uploading" ? (v(), J(he, {
2324
2324
  key: 0,
2325
2325
  type: "button",
2326
2326
  class: "btn-danger btn-xs",
2327
- onClick: ne((W) => y(E), ["stop"])
2327
+ onClick: ne((W) => y(z), ["stop"])
2328
2328
  }, {
2329
2329
  default: G(() => [...L[8] || (L[8] = [
2330
2330
  me(" Cancel ", -1)
2331
2331
  ])]),
2332
2332
  _: 1
2333
2333
  }, 8, ["onClick"])) : O("", !0),
2334
- E.status === "error" || E.status === "canceled" ? (v(), J(he, {
2334
+ z.status === "error" || z.status === "canceled" ? (v(), J(he, {
2335
2335
  key: 1,
2336
2336
  type: "button",
2337
2337
  class: "btn-info btn-xs",
2338
- onClick: ne((W) => I(E), ["stop"])
2338
+ onClick: ne((W) => I(z), ["stop"])
2339
2339
  }, {
2340
2340
  default: G(() => [...L[9] || (L[9] = [
2341
2341
  me(" Retry ", -1)
2342
2342
  ])]),
2343
2343
  _: 1
2344
2344
  }, 8, ["onClick"])) : O("", !0),
2345
- E.status !== "uploading" ? (v(), J(he, {
2345
+ z.status !== "uploading" ? (v(), J(he, {
2346
2346
  key: 2,
2347
2347
  type: "button",
2348
2348
  class: "btn-outline btn-xs",
2349
- onClick: ne((W) => q(E), ["stop"]),
2349
+ onClick: ne((W) => q(z), ["stop"]),
2350
2350
  "aria-label": "Remove file"
2351
2351
  }, {
2352
2352
  default: G(() => [...L[10] || (L[10] = [
@@ -2419,7 +2419,7 @@ const T2 = (e) => {
2419
2419
  c?.(), c = null, u?.disconnect(), u = null;
2420
2420
  return;
2421
2421
  }
2422
- await Me(), d(), c = T2(d), u = new ResizeObserver(d), i.value && u.observe(i.value), s.value && u.observe(s.value);
2422
+ await we(), d(), c = T2(d), u = new ResizeObserver(d), i.value && u.observe(i.value), s.value && u.observe(s.value);
2423
2423
  }), Ie(() => {
2424
2424
  c?.(), u?.disconnect();
2425
2425
  }), (C, $) => (v(), f(te, null, [
@@ -2771,7 +2771,7 @@ const N2 = {
2771
2771
  }
2772
2772
  if (s.value) {
2773
2773
  if (T.key === "ArrowDown" && (L(1), T.preventDefault()), T.key === "ArrowUp" && (L(-1), T.preventDefault()), T.key === "Home") {
2774
- const N = E();
2774
+ const N = z();
2775
2775
  N >= 0 && (C.value = N), T.preventDefault();
2776
2776
  }
2777
2777
  if (T.key === "End") {
@@ -2793,7 +2793,7 @@ const N2 = {
2793
2793
  N += T;
2794
2794
  while (N >= 0 && N < a.options.length && a.options[N]?.disabled);
2795
2795
  N >= 0 && N < a.options.length && (C.value = N);
2796
- }, E = () => a.options.findIndex((T) => !T.disabled), W = () => [...a.options].reverse().findIndex((T) => !T.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((T) => !T.disabled) : -1, ee = (T) => {
2796
+ }, z = () => a.options.findIndex((T) => !T.disabled), W = () => [...a.options].reverse().findIndex((T) => !T.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((T) => !T.disabled) : -1, ee = (T) => {
2797
2797
  const N = r.value;
2798
2798
  !N || N.contains(T.target) || (s.value = !1);
2799
2799
  };
@@ -2857,19 +2857,19 @@ const N2 = {
2857
2857
  ], 16, ia),
2858
2858
  U($e, { name: "select" }, {
2859
2859
  default: G(() => [
2860
- we(w("ul", {
2860
+ Me(w("ul", {
2861
2861
  id: p,
2862
2862
  role: "listbox",
2863
2863
  class: "options"
2864
2864
  }, [
2865
- (v(!0), f(te, null, ue(e.options, (H, z) => (v(), f("li", {
2866
- id: `${p}-option-${z}`,
2867
- key: z,
2865
+ (v(!0), f(te, null, ue(e.options, (H, E) => (v(), f("li", {
2866
+ id: `${p}-option-${E}`,
2867
+ key: E,
2868
2868
  role: "option",
2869
- class: le(["option", { "focus-visible": C.value === z }]),
2869
+ class: le(["option", { "focus-visible": C.value === E }]),
2870
2870
  "aria-disabled": H.disabled,
2871
- "aria-selected": $.value === z,
2872
- onClick: (Z) => !H.disabled && q(H, z)
2871
+ "aria-selected": $.value === E,
2872
+ onClick: (Z) => !H.disabled && q(H, E)
2873
2873
  }, [
2874
2874
  w("div", {
2875
2875
  class: "option-value",
@@ -2945,7 +2945,7 @@ const N2 = {
2945
2945
  n.value = null;
2946
2946
  };
2947
2947
  return X(u, async (h) => {
2948
- await Me();
2948
+ await we();
2949
2949
  const _ = s.value[h];
2950
2950
  _ && _.scrollIntoView({
2951
2951
  behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
@@ -3760,7 +3760,7 @@ const Ja = {
3760
3760
  key: r.key,
3761
3761
  class: le(["radio", { checked: t.value === r.key, disabled: e.disabled || r.disabled }])
3762
3762
  }, [
3763
- we(w("input", {
3763
+ Me(w("input", {
3764
3764
  type: "radio",
3765
3765
  class: "radio-input",
3766
3766
  name: e.name,
@@ -3820,7 +3820,7 @@ const Ja = {
3820
3820
  const t = e, a = o, l = fe(e, "modelValue"), s = m(null), i = m(null), n = m(""), r = m(!1), c = m([]), u = m(null), p = m(null), g = V(() => t.id ? `${t.id}-search-history` : "search-history"), d = `${ce()}-list`, C = m(!1), $ = V(() => l.value !== null && l.value !== void 0 && l.value !== ""), x = V(() => u.value !== null ? `${d}-option-${u.value}` : void 0), h = V(() => r.value && x.value ? x.value : void 0), _ = V(() => c.value.length > 0), R = V(() => {
3821
3821
  if (!t.filterable) return t.options;
3822
3822
  const H = n.value.toLowerCase();
3823
- return t.options.filter((z) => t.getValue(z).toLowerCase().includes(H));
3823
+ return t.options.filter((E) => t.getValue(E).toLowerCase().includes(H));
3824
3824
  }), y = Be(t).value;
3825
3825
  X(
3826
3826
  () => g.value,
@@ -3838,70 +3838,78 @@ const Ja = {
3838
3838
  u.value = null;
3839
3839
  return;
3840
3840
  }
3841
- R.value.length !== 0 && (await Me(), re());
3841
+ R.value.length !== 0 && (await we(), re());
3842
3842
  }), X(
3843
3843
  () => t.loading,
3844
3844
  async (H) => {
3845
- H || r.value && R.value.length !== 0 && (await Me(), re());
3845
+ H || r.value && R.value.length !== 0 && (await we(), re());
3846
3846
  }
3847
3847
  ), X(
3848
3848
  () => t.options,
3849
3849
  () => {
3850
- p.value = null;
3850
+ l.value || (p.value = null, u.value = null);
3851
3851
  }
3852
3852
  );
3853
3853
  const I = (H) => {
3854
3854
  n.value.length >= t.minChars && !t.filterable && !t.loading && (r.value = !0), C.value = !0, a("focus", H);
3855
3855
  }, b = (H) => {
3856
- const z = H.relatedTarget;
3857
- i.value?.contains(z) || (r.value = !1, l.value ? L() : n.value = "", C.value = !1, a("blur", H));
3858
- }, A = (H, z) => {
3856
+ const E = H.relatedTarget;
3857
+ i.value?.contains(E) || (r.value = !1, l.value ? L() : n.value = "", C.value = !1, a("blur", H));
3858
+ }, A = (H, E) => {
3859
3859
  const Z = i.value;
3860
3860
  if (!Z || t.isDisabled(H)) return;
3861
- r.value = !1, W(n.value), p.value = z, u.value = z;
3861
+ r.value = !1, W(n.value), p.value = E, u.value = E;
3862
3862
  const F = t.getKey(H);
3863
3863
  F && F.toString().length > 0 ? Z.classList.add("filled") : Z.classList.remove("filled"), n.value = t.getValue(H), l.value = F, a("select", F);
3864
3864
  }, B = (H) => {
3865
3865
  if (!r.value && ["ArrowDown", "ArrowUp"].includes(H.key)) {
3866
- r.value = !0, u.value = u.value ?? R.value.findIndex((z) => !t.isDisabled(z)), H.preventDefault();
3866
+ r.value = !0, u.value = u.value ?? R.value.findIndex((E) => !t.isDisabled(E)), H.preventDefault();
3867
3867
  return;
3868
3868
  }
3869
3869
  if (r.value) {
3870
3870
  if (H.key === "ArrowDown" && (q(1), H.preventDefault()), H.key === "ArrowUp" && (q(-1), H.preventDefault()), H.key === "Home") {
3871
- const z = T();
3872
- z >= 0 && (u.value = z), H.preventDefault();
3871
+ const E = T();
3872
+ E >= 0 && (u.value = E), H.preventDefault();
3873
3873
  }
3874
3874
  if (H.key === "End") {
3875
- const z = N();
3876
- z >= 0 && (u.value = z), H.preventDefault();
3875
+ const E = N();
3876
+ E >= 0 && (u.value = E), H.preventDefault();
3877
3877
  }
3878
3878
  if (H.key === "Enter") {
3879
3879
  if (u.value === null) return;
3880
- const z = R.value[u.value];
3881
- if (!z || t.isDisabled(z)) return;
3882
- A(z, u.value), r.value = !1, H.preventDefault();
3880
+ const E = R.value[u.value];
3881
+ if (!E || t.isDisabled(E)) return;
3882
+ A(E, u.value), r.value = !1, H.preventDefault();
3883
3883
  }
3884
3884
  H.key === "Escape" && (r.value = !1);
3885
3885
  }
3886
3886
  }, q = (H) => {
3887
3887
  if (u.value === null) return;
3888
- let z = u.value;
3888
+ let E = u.value;
3889
3889
  do
3890
- z += H;
3891
- while (z >= 0 && z < R.value.length && t.isDisabled(R.value[z]));
3892
- z >= 0 && z < R.value.length && (u.value = z);
3890
+ E += H;
3891
+ while (E >= 0 && E < R.value.length && t.isDisabled(R.value[E]));
3892
+ E >= 0 && E < R.value.length && (u.value = E);
3893
3893
  }, M = () => {
3894
3894
  n.value.length === 0 && (l.value = ""), n.value.length >= t.minChars ? (a("change", n.value), r.value = !0) : r.value = !1;
3895
3895
  }, L = () => {
3896
3896
  if (l.value.toString().length === 0 || !t.options || t.options.length === 0) return;
3897
- const H = t.options.findIndex((z) => t.getKey(z) === l.value);
3897
+ const H = t.options.findIndex((E) => t.getKey(E) === l.value);
3898
3898
  H > -1 && (u.value = H, p.value = H, n.value = t.getValue(t.options[H]));
3899
- }, E = () => {
3899
+ };
3900
+ X(
3901
+ [() => t.options.length, () => l.value],
3902
+ async ([H, E]) => {
3903
+ E && H !== 0 && (await we(), L());
3904
+ },
3905
+ { flush: "post", immediate: !0 }
3906
+ );
3907
+ const z = () => {
3900
3908
  n.value = "", l.value = "";
3901
3909
  }, W = (H) => {
3902
3910
  !H || H.trim().length === 0 || (c.value = [
3903
3911
  H,
3904
- ...c.value.filter((z) => z !== H)
3912
+ ...c.value.filter((E) => E !== H)
3905
3913
  ].slice(0, t.suggestionsLimit), localStorage.setItem(g.value, JSON.stringify(c.value)));
3906
3914
  }, ee = (H) => {
3907
3915
  n.value = H, M();
@@ -3912,7 +3920,7 @@ const Ja = {
3912
3920
  for (let H = R.value.length - 1; H >= 0; H--) if (!t.isDisabled(R.value[H])) return H;
3913
3921
  return -1;
3914
3922
  };
3915
- return ae(() => L()), (H, z) => (v(), f("div", {
3923
+ return ae(() => L()), (H, E) => (v(), f("div", {
3916
3924
  class: le(["autocomplete", { required: D(y), error: e.invalid, "has-icon": Object.keys(H.$slots).includes("icon"), filled: $.value, focused: C.value }]),
3917
3925
  ref_key: "autocompleteRef",
3918
3926
  ref: i
@@ -3921,7 +3929,7 @@ const Ja = {
3921
3929
  for: e.id,
3922
3930
  class: "label"
3923
3931
  }, P(e.label), 9, io),
3924
- we(w("input", Ce({
3932
+ Me(w("input", Ce({
3925
3933
  id: e.id,
3926
3934
  type: e.type
3927
3935
  }, H.$attrs, {
@@ -3934,7 +3942,7 @@ const Ja = {
3934
3942
  "aria-activedescendant": h.value,
3935
3943
  "aria-required": D(y),
3936
3944
  "aria-invalid": e.invalid ? "true" : void 0,
3937
- "onUpdate:modelValue": z[0] || (z[0] = (Z) => n.value = Z),
3945
+ "onUpdate:modelValue": E[0] || (E[0] = (Z) => n.value = Z),
3938
3946
  onFocus: I,
3939
3947
  onBlur: b,
3940
3948
  onInput: M,
@@ -3944,7 +3952,7 @@ const Ja = {
3944
3952
  ]),
3945
3953
  U($e, { name: "select" }, {
3946
3954
  default: G(() => [
3947
- we(w("ul", {
3955
+ Me(w("ul", {
3948
3956
  id: d,
3949
3957
  role: "listbox",
3950
3958
  class: "options"
@@ -3956,7 +3964,7 @@ const Ja = {
3956
3964
  class: le(["option", { "focus-visible": u.value === F }]),
3957
3965
  "aria-disabled": t.isDisabled(Z) || void 0,
3958
3966
  "aria-selected": F === p.value,
3959
- onMousedown: z[1] || (z[1] = ne(() => {
3967
+ onMousedown: E[1] || (E[1] = ne(() => {
3960
3968
  }, ["prevent"])),
3961
3969
  onClick: (se) => !t.isDisabled(Z) && A(Z, F)
3962
3970
  }, [
@@ -3980,7 +3988,7 @@ const Ja = {
3980
3988
  ])
3981
3989
  ], !0),
3982
3990
  w("div", fo, P(e.getValue(Z)), 1)
3983
- ], 42, co))), 128)) : R.value.length === 0 && !e.loading ? (v(), f("li", po, [...z[3] || (z[3] = [
3991
+ ], 42, co))), 128)) : R.value.length === 0 && !e.loading ? (v(), f("li", po, [...E[3] || (E[3] = [
3984
3992
  w("div", { class: "option-value" }, "No results found", -1)
3985
3993
  ])])) : (v(), J(C1, {
3986
3994
  key: 2,
@@ -3988,7 +3996,7 @@ const Ja = {
3988
3996
  role: "status",
3989
3997
  message: "Loading"
3990
3998
  })),
3991
- _.value ? (v(), f("li", Co, [...z[4] || (z[4] = [
3999
+ _.value ? (v(), f("li", Co, [...E[4] || (E[4] = [
3992
4000
  w("div", { class: "option-value" }, " Recents ", -1)
3993
4001
  ])])) : O("", !0),
3994
4002
  (v(!0), f(te, null, ue(c.value, (Z) => (v(), f("li", {
@@ -4016,9 +4024,9 @@ const Ja = {
4016
4024
  class: "btn btn-icon",
4017
4025
  "aria-label": "Clear search query",
4018
4026
  title: "Clear search query",
4019
- onMousedown: z[2] || (z[2] = ne(() => {
4027
+ onMousedown: E[2] || (E[2] = ne(() => {
4020
4028
  }, ["prevent"])),
4021
- onClick: E
4029
+ onClick: z
4022
4030
  }, {
4023
4031
  default: G(() => [
4024
4032
  U(de, {
@@ -4032,7 +4040,7 @@ const Ja = {
4032
4040
  })) : O("", !0)
4033
4041
  ], 2));
4034
4042
  }
4035
- }), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-f6d926bc"]]), bo = 5, pe = r1({
4043
+ }), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-6a07ce5d"]]), bo = 5, pe = r1({
4036
4044
  toasts: []
4037
4045
  });
4038
4046
  let ko = 0;
@@ -4478,7 +4486,7 @@ const sl = {
4478
4486
  width: `${L - M}px`
4479
4487
  };
4480
4488
  }), $ = V(() => {
4481
- const B = Object.values(c.value).sort((L, E) => L - E);
4489
+ const B = Object.values(c.value).sort((L, z) => L - z);
4482
4490
  if (B.length < 2) return {};
4483
4491
  const q = B[0], M = B[B.length - 1];
4484
4492
  return o.orientation === "vertical" ? {
@@ -4708,7 +4716,7 @@ const sl = {
4708
4716
  d.value = F, o.value = F;
4709
4717
  }, B = () => A(d.value + k.value), q = () => A(d.value - k.value), M = (Z) => {
4710
4718
  Z.key === "ArrowRight" ? B() : Z.key === "ArrowLeft" && q();
4711
- }, L = (Z) => (g.value.includes(Z) || g.value.push(Z), g.value.indexOf(Z)), E = (Z) => g.value = g.value.filter((F) => F !== Z), W = V(() => g.value.length), ee = () => {
4719
+ }, L = (Z) => (g.value.includes(Z) || g.value.push(Z), g.value.indexOf(Z)), z = (Z) => g.value = g.value.filter((F) => F !== Z), W = V(() => g.value.length), ee = () => {
4712
4720
  !t.autoplay || x !== null || (x = window.setInterval(() => {
4713
4721
  c.value || B();
4714
4722
  }, t.autoplayDelay));
@@ -4727,7 +4735,7 @@ const sl = {
4727
4735
  if (!u.value) return;
4728
4736
  const F = performance.now(), se = Z.clientX - a.value, oe = F - i.value;
4729
4737
  oe > 0 && (n.value = se / oe), a.value = Z.clientX, i.value = F, r.value = Z.clientX, s.value = r.value - l.value;
4730
- }, z = (Z) => {
4738
+ }, E = (Z) => {
4731
4739
  if (!u.value) return;
4732
4740
  u.value = !1, $.value?.releasePointerCapture(Z.pointerId), $.value.style.userSelect = "";
4733
4741
  const F = $.value.clientWidth / k.value, se = s.value / F;
@@ -4748,7 +4756,7 @@ const sl = {
4748
4756
  { immediate: !0 }
4749
4757
  ), X(k, () => d.value = Math.min(d.value, I.value)), ge("CarouselContext", {
4750
4758
  register: L,
4751
- unregister: E,
4759
+ unregister: z,
4752
4760
  activeIndex: d,
4753
4761
  slideCount: W,
4754
4762
  deltaX: s,
@@ -4781,8 +4789,8 @@ const sl = {
4781
4789
  style: ye(b.value),
4782
4790
  onPointerdown: N,
4783
4791
  onPointermove: H,
4784
- onPointerup: z,
4785
- onPointercancel: z
4792
+ onPointerup: E,
4793
+ onPointercancel: E
4786
4794
  }, [
4787
4795
  Y(Z.$slots, "default", {}, void 0, !0)
4788
4796
  ], 36)
@@ -5094,7 +5102,7 @@ const sl = {
5094
5102
  const o = e, t = ie("DropdownContext");
5095
5103
  if (!t) throw new Error("DropdownTrigger must be used within a Dropdown");
5096
5104
  const a = m(), l = (s) => {
5097
- s.key === "ArrowDown" && (s.preventDefault(), t.open(), Me(() => t.focusFirstItem())), s.key === "ArrowUp" && (s.preventDefault(), t.open(), Me(() => t.focusLastItem()));
5105
+ s.key === "ArrowDown" && (s.preventDefault(), t.open(), we(() => t.focusFirstItem())), s.key === "ArrowUp" && (s.preventDefault(), t.open(), we(() => t.focusLastItem()));
5098
5106
  };
5099
5107
  return ae(() => t.triggerRef.value = a.value?.el), (s, i) => (v(), J(he, {
5100
5108
  ref_key: "btn",
@@ -5303,7 +5311,7 @@ const Hn = (e, o) => {
5303
5311
  s,
5304
5312
  async (b) => {
5305
5313
  if (b) {
5306
- await Me();
5314
+ await we();
5307
5315
  let A = n.value?.querySelector('button[data-selected="true"]');
5308
5316
  if (!A) {
5309
5317
  const B = /* @__PURE__ */ new Date();
@@ -5320,8 +5328,8 @@ const Hn = (e, o) => {
5320
5328
  }, _ = (b) => {
5321
5329
  const A = b.target, B = A.selectionStart ?? 0, M = A.value.slice(0, B).replace(/\D/g, "").length;
5322
5330
  let L = A.value.replace(/\D/g, "");
5323
- const E = Bn(l.format);
5324
- L = L.slice(0, E);
5331
+ const z = Bn(l.format);
5332
+ L = L.slice(0, z);
5325
5333
  const W = Hn(L, l.format);
5326
5334
  i.value = W, A.value = W;
5327
5335
  let ee = 0, re = 0;
@@ -5497,7 +5505,7 @@ const Hn = (e, o) => {
5497
5505
  }, {
5498
5506
  time: G(() => [
5499
5507
  l.value ? (v(), f("div", qn, [
5500
- i.value ? we((v(), f("input", {
5508
+ i.value ? Me((v(), f("input", {
5501
5509
  key: 0,
5502
5510
  id: `hour_${D(a)}`,
5503
5511
  type: "number",
@@ -5518,7 +5526,7 @@ const Hn = (e, o) => {
5518
5526
  ]
5519
5527
  ]) : O("", !0),
5520
5528
  i.value && n.value ? (v(), f("span", Fn, ":")) : O("", !0),
5521
- n.value ? we((v(), f("input", {
5529
+ n.value ? Me((v(), f("input", {
5522
5530
  key: 2,
5523
5531
  id: `minute_${D(a)}`,
5524
5532
  type: "number",
@@ -5539,7 +5547,7 @@ const Hn = (e, o) => {
5539
5547
  ]
5540
5548
  ]) : O("", !0),
5541
5549
  (i.value || n.value) && r.value ? (v(), f("span", Kn, ":")) : O("", !0),
5542
- r.value ? we((v(), f("input", {
5550
+ r.value ? Me((v(), f("input", {
5543
5551
  key: 4,
5544
5552
  id: `second_${D(a)}`,
5545
5553
  type: "number",