@reinosoft-ui/core 0.1.38 → 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.
@@ -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));
@@ -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] = [
@@ -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
  };
@@ -2862,14 +2862,14 @@ const N2 = {
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",
@@ -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,
@@ -3853,63 +3853,63 @@ const Ja = {
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);
3898
- console.log("IDX" + t.id, H, t.options, l.value), H > -1 && (u.value = H, p.value = H, n.value = t.getValue(t.options[H]));
3897
+ const H = t.options.findIndex((E) => t.getKey(E) === l.value);
3898
+ H > -1 && (u.value = H, p.value = H, n.value = t.getValue(t.options[H]));
3899
3899
  };
3900
3900
  X(
3901
- () => t.options.length,
3902
- async (H) => {
3903
- l.value && H !== 0 && (await we(), L());
3901
+ [() => t.options.length, () => l.value],
3902
+ async ([H, E]) => {
3903
+ E && H !== 0 && (await we(), L());
3904
3904
  },
3905
- { immediate: !0, flush: "post" }
3905
+ { flush: "post", immediate: !0 }
3906
3906
  );
3907
- const E = () => {
3907
+ const z = () => {
3908
3908
  n.value = "", l.value = "";
3909
3909
  }, W = (H) => {
3910
3910
  !H || H.trim().length === 0 || (c.value = [
3911
3911
  H,
3912
- ...c.value.filter((z) => z !== H)
3912
+ ...c.value.filter((E) => E !== H)
3913
3913
  ].slice(0, t.suggestionsLimit), localStorage.setItem(g.value, JSON.stringify(c.value)));
3914
3914
  }, ee = (H) => {
3915
3915
  n.value = H, M();
@@ -3920,7 +3920,7 @@ const Ja = {
3920
3920
  for (let H = R.value.length - 1; H >= 0; H--) if (!t.isDisabled(R.value[H])) return H;
3921
3921
  return -1;
3922
3922
  };
3923
- return ae(() => L()), (H, z) => (v(), f("div", {
3923
+ return ae(() => L()), (H, E) => (v(), f("div", {
3924
3924
  class: le(["autocomplete", { required: D(y), error: e.invalid, "has-icon": Object.keys(H.$slots).includes("icon"), filled: $.value, focused: C.value }]),
3925
3925
  ref_key: "autocompleteRef",
3926
3926
  ref: i
@@ -3942,7 +3942,7 @@ const Ja = {
3942
3942
  "aria-activedescendant": h.value,
3943
3943
  "aria-required": D(y),
3944
3944
  "aria-invalid": e.invalid ? "true" : void 0,
3945
- "onUpdate:modelValue": z[0] || (z[0] = (Z) => n.value = Z),
3945
+ "onUpdate:modelValue": E[0] || (E[0] = (Z) => n.value = Z),
3946
3946
  onFocus: I,
3947
3947
  onBlur: b,
3948
3948
  onInput: M,
@@ -3964,7 +3964,7 @@ const Ja = {
3964
3964
  class: le(["option", { "focus-visible": u.value === F }]),
3965
3965
  "aria-disabled": t.isDisabled(Z) || void 0,
3966
3966
  "aria-selected": F === p.value,
3967
- onMousedown: z[1] || (z[1] = ne(() => {
3967
+ onMousedown: E[1] || (E[1] = ne(() => {
3968
3968
  }, ["prevent"])),
3969
3969
  onClick: (se) => !t.isDisabled(Z) && A(Z, F)
3970
3970
  }, [
@@ -3988,7 +3988,7 @@ const Ja = {
3988
3988
  ])
3989
3989
  ], !0),
3990
3990
  w("div", fo, P(e.getValue(Z)), 1)
3991
- ], 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] = [
3992
3992
  w("div", { class: "option-value" }, "No results found", -1)
3993
3993
  ])])) : (v(), J(C1, {
3994
3994
  key: 2,
@@ -3996,7 +3996,7 @@ const Ja = {
3996
3996
  role: "status",
3997
3997
  message: "Loading"
3998
3998
  })),
3999
- _.value ? (v(), f("li", Co, [...z[4] || (z[4] = [
3999
+ _.value ? (v(), f("li", Co, [...E[4] || (E[4] = [
4000
4000
  w("div", { class: "option-value" }, " Recents ", -1)
4001
4001
  ])])) : O("", !0),
4002
4002
  (v(!0), f(te, null, ue(c.value, (Z) => (v(), f("li", {
@@ -4024,9 +4024,9 @@ const Ja = {
4024
4024
  class: "btn btn-icon",
4025
4025
  "aria-label": "Clear search query",
4026
4026
  title: "Clear search query",
4027
- onMousedown: z[2] || (z[2] = ne(() => {
4027
+ onMousedown: E[2] || (E[2] = ne(() => {
4028
4028
  }, ["prevent"])),
4029
- onClick: E
4029
+ onClick: z
4030
4030
  }, {
4031
4031
  default: G(() => [
4032
4032
  U(de, {
@@ -4040,7 +4040,7 @@ const Ja = {
4040
4040
  })) : O("", !0)
4041
4041
  ], 2));
4042
4042
  }
4043
- }), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-c16fc775"]]), bo = 5, pe = r1({
4043
+ }), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-6a07ce5d"]]), bo = 5, pe = r1({
4044
4044
  toasts: []
4045
4045
  });
4046
4046
  let ko = 0;
@@ -4486,7 +4486,7 @@ const sl = {
4486
4486
  width: `${L - M}px`
4487
4487
  };
4488
4488
  }), $ = V(() => {
4489
- const B = Object.values(c.value).sort((L, E) => L - E);
4489
+ const B = Object.values(c.value).sort((L, z) => L - z);
4490
4490
  if (B.length < 2) return {};
4491
4491
  const q = B[0], M = B[B.length - 1];
4492
4492
  return o.orientation === "vertical" ? {
@@ -4716,7 +4716,7 @@ const sl = {
4716
4716
  d.value = F, o.value = F;
4717
4717
  }, B = () => A(d.value + k.value), q = () => A(d.value - k.value), M = (Z) => {
4718
4718
  Z.key === "ArrowRight" ? B() : Z.key === "ArrowLeft" && q();
4719
- }, 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 = () => {
4720
4720
  !t.autoplay || x !== null || (x = window.setInterval(() => {
4721
4721
  c.value || B();
4722
4722
  }, t.autoplayDelay));
@@ -4735,7 +4735,7 @@ const sl = {
4735
4735
  if (!u.value) return;
4736
4736
  const F = performance.now(), se = Z.clientX - a.value, oe = F - i.value;
4737
4737
  oe > 0 && (n.value = se / oe), a.value = Z.clientX, i.value = F, r.value = Z.clientX, s.value = r.value - l.value;
4738
- }, z = (Z) => {
4738
+ }, E = (Z) => {
4739
4739
  if (!u.value) return;
4740
4740
  u.value = !1, $.value?.releasePointerCapture(Z.pointerId), $.value.style.userSelect = "";
4741
4741
  const F = $.value.clientWidth / k.value, se = s.value / F;
@@ -4756,7 +4756,7 @@ const sl = {
4756
4756
  { immediate: !0 }
4757
4757
  ), X(k, () => d.value = Math.min(d.value, I.value)), ge("CarouselContext", {
4758
4758
  register: L,
4759
- unregister: E,
4759
+ unregister: z,
4760
4760
  activeIndex: d,
4761
4761
  slideCount: W,
4762
4762
  deltaX: s,
@@ -4789,8 +4789,8 @@ const sl = {
4789
4789
  style: ye(b.value),
4790
4790
  onPointerdown: N,
4791
4791
  onPointermove: H,
4792
- onPointerup: z,
4793
- onPointercancel: z
4792
+ onPointerup: E,
4793
+ onPointercancel: E
4794
4794
  }, [
4795
4795
  Y(Z.$slots, "default", {}, void 0, !0)
4796
4796
  ], 36)
@@ -5328,8 +5328,8 @@ const Hn = (e, o) => {
5328
5328
  }, _ = (b) => {
5329
5329
  const A = b.target, B = A.selectionStart ?? 0, M = A.value.slice(0, B).replace(/\D/g, "").length;
5330
5330
  let L = A.value.replace(/\D/g, "");
5331
- const E = Bn(l.format);
5332
- L = L.slice(0, E);
5331
+ const z = Bn(l.format);
5332
+ L = L.slice(0, z);
5333
5333
  const W = Hn(L, l.format);
5334
5334
  i.value = W, A.value = W;
5335
5335
  let ee = 0, re = 0;