@reinosoft-ui/core 0.1.70 → 0.1.72

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 Z, ref as M, computed as V, watch as ee, onMounted as de, createElementBlock as b, openBlock as v, normalizeStyle as Ie, normalizeClass as fe, renderSlot as Y, createCommentVNode as q, withDirectives as De, createElementVNode as $, vShow as ot, mergeProps as ye, mergeModels as ue, useModel as ke, withKeys as be, withModifiers as ve, onUnmounted as Ve, Fragment as ce, unref as E, toDisplayString as K, renderList as Ce, nextTick as $e, onBeforeUnmount as _e, createBlock as oe, Teleport as Oe, createVNode as P, Transition as Ee, withCtx as te, useId as he, provide as He, createTextVNode as Me, resolveDynamicComponent as Ze, inject as me, useAttrs as lt, h as j, useSlots as rt, resolveComponent as _t, vModelRadio as Et, vModelDynamic as Zt, reactive as Lt, TransitionGroup as zt, createApp as Nt, shallowRef as qt, vModelText as Ge } from "vue";
1
+ import { defineComponent as Z, ref as M, computed as V, watch as ee, onMounted as de, createElementBlock as b, openBlock as v, normalizeStyle as Ie, normalizeClass as fe, renderSlot as Y, createCommentVNode as q, withDirectives as Re, createElementVNode as $, vShow as ot, mergeProps as ye, mergeModels as ue, useModel as ke, withKeys as be, withModifiers as ve, onUnmounted as Ve, Fragment as ce, unref as E, toDisplayString as K, renderList as Ce, nextTick as $e, onBeforeUnmount as _e, createBlock as oe, Teleport as Oe, createVNode as P, Transition as Ee, withCtx as te, useId as he, provide as He, createTextVNode as Me, resolveDynamicComponent as Ze, inject as me, useAttrs as lt, h as j, useSlots as rt, resolveComponent as _t, vModelRadio as Et, vModelDynamic as Zt, reactive as Lt, TransitionGroup as zt, createApp as Nt, shallowRef as qt, vModelText as Ge } from "vue";
2
2
  import { routerKey as Ft } from "vue-router";
3
3
  const Ot = ["aria-busy"], Pt = ["aria-label"], Kt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Ut = /* @__PURE__ */ Z({
4
4
  __name: "Image",
@@ -54,7 +54,7 @@ const Ot = ["aria-busy"], Pt = ["aria-label"], Kt = ["src", "srcset", "sizes", "
54
54
  "aria-label": e.decorative ? void 0 : e.alt
55
55
  }, "Image not available", 8, Pt)
56
56
  ], !0) : q("", !0),
57
- De($("img", {
57
+ Re($("img", {
58
58
  ref_key: "imgRef",
59
59
  ref: i,
60
60
  class: "ui-image__img",
@@ -211,15 +211,15 @@ const xt = (e) => {
211
211
  }, c = (d) => {
212
212
  const f = window.getSelection();
213
213
  if (!f || f.rangeCount === 0 || f.isCollapsed) return !1;
214
- const y = f.getRangeAt(0), D = e;
215
- if (!D) return !1;
216
- const U = u(y, D), se = [];
214
+ const y = f.getRangeAt(0), R = e;
215
+ if (!R) return !1;
216
+ const U = u(y, R), se = [];
217
217
  if (U.forEach((X) => {
218
218
  const G = X === y.startContainer ? y.startOffset : 0, ie = X === y.endContainer ? y.endOffset : X.textContent.length;
219
219
  if (G === ie) return;
220
220
  let re;
221
221
  G === 0 && ie === X.textContent.length ? re = X : (re = X.splitText(G), ie - G < re.textContent.length && re.splitText(ie - G));
222
- const ge = Xt(re, d, D);
222
+ const ge = Xt(re, d, R);
223
223
  if (ge)
224
224
  Gt(ge), se.push(re);
225
225
  else {
@@ -235,8 +235,8 @@ const xt = (e) => {
235
235
  return S(), I(d);
236
236
  }, u = (d, f) => {
237
237
  if (!d || !f || !(f instanceof HTMLElement)) return [];
238
- const y = d.commonAncestorContainer, D = f.contains(y) ? f : y.nodeType === 3 ? y.parentNode : y, U = document.createTreeWalker(
239
- D,
238
+ const y = d.commonAncestorContainer, R = f.contains(y) ? f : y.nodeType === 3 ? y.parentNode : y, U = document.createTreeWalker(
239
+ R,
240
240
  NodeFilter.SHOW_TEXT,
241
241
  {
242
242
  acceptNode(G) {
@@ -250,11 +250,11 @@ const xt = (e) => {
250
250
  }, h = (d) => {
251
251
  const f = window.getSelection();
252
252
  if (!f || f.rangeCount === 0) return !1;
253
- const y = f.getRangeAt(0), D = m(y.startContainer);
254
- if (!D) return !1;
255
- const se = D.tagName.toLowerCase() === d.toLowerCase() ? "p" : d.toLowerCase(), X = document.createElement(se);
256
- for (se === "blockquote" && X.setAttribute("class", "rs-blockquote"), X.dataset.block = "true"; D.firstChild; ) X.appendChild(D.firstChild);
257
- D.replaceWith(X);
253
+ const y = f.getRangeAt(0), R = m(y.startContainer);
254
+ if (!R) return !1;
255
+ const se = R.tagName.toLowerCase() === d.toLowerCase() ? "p" : d.toLowerCase(), X = document.createElement(se);
256
+ for (se === "blockquote" && X.setAttribute("class", "rs-blockquote"), X.dataset.block = "true"; R.firstChild; ) X.appendChild(R.firstChild);
257
+ R.replaceWith(X);
258
258
  const G = document.createRange();
259
259
  return G.selectNodeContents(X), f.removeAllRanges(), f.addRange(G), s(), S(), k(d);
260
260
  }, m = (d) => {
@@ -277,18 +277,18 @@ const xt = (e) => {
277
277
  if (d.key !== "Enter" || d.shiftKey) return;
278
278
  const f = window.getSelection();
279
279
  if (!f || f.rangeCount === 0) return;
280
- const y = f.getRangeAt(0), D = p(y.startContainer, "li");
281
- if (!D) return;
280
+ const y = f.getRangeAt(0), R = p(y.startContainer, "li");
281
+ if (!R) return;
282
282
  d.preventDefault(), d.stopPropagation();
283
- const U = D.parentElement;
283
+ const U = R.parentElement;
284
284
  if (!U) return;
285
- if (D.textContent?.trim() === "") {
285
+ if (R.textContent?.trim() === "") {
286
286
  const G = document.createElement("p");
287
- G.dataset.block = "true", G.innerHTML = "<br>", U.after(G), D.remove(), U.children.length === 0 && U.remove(), L(G);
287
+ G.dataset.block = "true", G.innerHTML = "<br>", U.after(G), R.remove(), U.children.length === 0 && U.remove(), L(G);
288
288
  return;
289
289
  }
290
290
  const X = document.createElement("li");
291
- X.innerHTML = "<br>", D.after(X), L(X);
291
+ X.innerHTML = "<br>", R.after(X), L(X);
292
292
  }, L = (d) => {
293
293
  const f = document.createRange(), y = window.getSelection();
294
294
  f.selectNodeContents(d), f.collapse(!0), y?.removeAllRanges(), y?.addRange(f);
@@ -296,8 +296,8 @@ const xt = (e) => {
296
296
  const d = e;
297
297
  if (!d) return;
298
298
  d.querySelectorAll("p[data-block]").forEach((y) => {
299
- y.childNodes.forEach((D) => {
300
- D.nodeType === 3 && !D.textContent?.trim() && D.remove();
299
+ y.childNodes.forEach((R) => {
300
+ R.nodeType === 3 && !R.textContent?.trim() && R.remove();
301
301
  });
302
302
  }), d.querySelectorAll("p[data-block]").forEach((y) => {
303
303
  !y.querySelector("iframe") && y.hasAttribute("style") && y.removeAttribute("style");
@@ -309,9 +309,9 @@ const xt = (e) => {
309
309
  if (!f) return !1;
310
310
  let y = f.startContainer;
311
311
  y.nodeType === Node.TEXT_NODE && (y = y.parentNode);
312
- const D = e;
313
- if (!D) return !1;
314
- for (; y && y !== D; ) {
312
+ const R = e;
313
+ if (!R) return !1;
314
+ for (; y && y !== R; ) {
315
315
  if (y instanceof HTMLElement && y.tagName.toLowerCase() === d.toLowerCase()) return !0;
316
316
  y = y.parentNode;
317
317
  }
@@ -321,9 +321,9 @@ const xt = (e) => {
321
321
  if (!f) return !1;
322
322
  let y = f.startContainer;
323
323
  y.nodeType === Node.TEXT_NODE && (y = y.parentNode);
324
- const D = e;
325
- if (!D) return !1;
326
- for (; y && y !== D; ) {
324
+ const R = e;
325
+ if (!R) return !1;
326
+ for (; y && y !== R; ) {
327
327
  if (y instanceof HTMLElement && y.dataset.block !== void 0 && y.tagName.toLowerCase() === d.toLowerCase()) return !0;
328
328
  y = y.parentNode;
329
329
  }
@@ -339,14 +339,14 @@ const xt = (e) => {
339
339
  }, _ = () => r.value?.focusFirstButton?.(), N = (d) => {
340
340
  const f = window.getSelection();
341
341
  if (!f || f.rangeCount === 0) return;
342
- const y = f.getRangeAt(0), D = m(y.startContainer);
343
- if (!D) return;
342
+ const y = f.getRangeAt(0), R = m(y.startContainer);
343
+ if (!R) return;
344
344
  const U = y.cloneRange();
345
- U.selectNodeContents(D), U.setEnd(y.startContainer, y.startOffset);
345
+ U.selectNodeContents(R), U.setEnd(y.startContainer, y.startOffset);
346
346
  const se = U.toString().length, X = y.cloneRange();
347
- X.selectNodeContents(D), X.setEnd(y.endContainer, y.endOffset);
348
- const G = X.toString().length, ie = y.collapsed, re = d(D);
349
- D.replaceWith(re);
347
+ X.selectNodeContents(R), X.setEnd(y.endContainer, y.endOffset);
348
+ const G = X.toString().length, ie = y.collapsed, re = d(R);
349
+ R.replaceWith(re);
350
350
  const ge = document.createTreeWalker(
351
351
  re,
352
352
  NodeFilter.SHOW_TEXT,
@@ -357,8 +357,8 @@ const xt = (e) => {
357
357
  const Ye = ge.currentNode, Xe = Ye.textContent?.length ?? 0;
358
358
  !ze && xe + Xe >= se && (ze = Ye, Pe = se - xe), !Be && xe + Xe >= G && (Be = Ye, Ae = G - xe), xe += Xe;
359
359
  }
360
- const Re = document.createRange();
361
- ze ? Re.setStart(ze, Pe) : Re.setStart(re, 0), !ie && Be ? Re.setEnd(Be, Ae) : Re.collapse(!0), f.removeAllRanges(), f.addRange(Re), s(), S();
360
+ const De = document.createRange();
361
+ ze ? De.setStart(ze, Pe) : De.setStart(re, 0), !ie && Be ? De.setEnd(Be, Ae) : De.collapse(!0), f.removeAllRanges(), f.addRange(De), s(), S();
362
362
  }, J = (d) => {
363
363
  const f = e.parentElement?.querySelector("#editor-status");
364
364
  f && (f.textContent = d, setTimeout(() => f.textContent = "", 2e3));
@@ -375,39 +375,39 @@ const xt = (e) => {
375
375
  ae(d);
376
376
  return;
377
377
  }
378
- const y = f.getRangeAt(0), D = m(y.startContainer);
379
- if (!D) {
378
+ const y = f.getRangeAt(0), R = m(y.startContainer);
379
+ if (!R) {
380
380
  ae(d);
381
381
  return;
382
382
  }
383
- D.insertAdjacentHTML("afterend", d), S(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
383
+ R.insertAdjacentHTML("afterend", d), S(), e.dispatchEvent(new Event("input", { bubbles: !0 }));
384
384
  }, A = (d) => {
385
385
  const f = document.createElement("span");
386
386
  f.className = "img-resizable", f.style.display = "inline-block", f.style.position = "relative", f.style.width = "100%";
387
387
  const y = document.createElement("img");
388
388
  y.src = d, y.loading = "lazy";
389
- const D = document.createElement("span");
390
- D.className = "resize-handle", f.append(y, D), ne(f.outerHTML);
389
+ const R = document.createElement("span");
390
+ R.className = "resize-handle", f.append(y, R), ne(f.outerHTML);
391
391
  }, x = (d) => {
392
392
  const f = document.createElement("span");
393
393
  f.className = "img-resizable", f.style.display = "inline-block", f.style.position = "relative", f.style.width = "100%";
394
394
  const y = document.createElement("img");
395
395
  y.src = d, y.alt = "", y.loading = "lazy";
396
- const D = document.createElement("span");
397
- D.className = "resize-handle", f.append(y, D), F(f.outerHTML);
396
+ const R = document.createElement("span");
397
+ R.className = "resize-handle", f.append(y, R), F(f.outerHTML);
398
398
  }, H = (d) => {
399
399
  const f = d.closest(".img-resizable");
400
400
  if (!f) return;
401
401
  const y = f.querySelector(".resize-handle");
402
402
  if (!y || f.dataset.resizableInitialized === "true") return;
403
403
  f.dataset.resizableInitialized = "true", f.style.display = "inline-block", f.style.position = "relative", d.style.display = "block", d.style.width = "100%", y.style.display = "none";
404
- const D = () => {
404
+ const R = () => {
405
405
  f.classList.add("active"), y.style.display = "block";
406
406
  }, U = () => {
407
407
  f.classList.remove("active"), y.style.display = "none";
408
408
  };
409
409
  d.addEventListener("click", (ie) => {
410
- ie.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((re) => re.classList.remove("selected")), f.classList.add("selected"), D();
410
+ ie.stopPropagation(), e.querySelectorAll(".img-resizable.selected").forEach((re) => re.classList.remove("selected")), f.classList.add("selected"), R();
411
411
  }), document.addEventListener("click", (ie) => {
412
412
  const re = ie.target;
413
413
  re.closest(".img-resizable") || e.querySelectorAll(".img-resizable.selected").forEach((ge) => ge.classList.remove("selected")), f.contains(re) || U();
@@ -419,8 +419,8 @@ const xt = (e) => {
419
419
  const Pe = (xe instanceof TouchEvent ? xe.touches[0].clientX : xe.clientX) - se, Be = f.parentElement?.clientWidth || window.innerWidth;
420
420
  let Ae = X + Pe;
421
421
  Ae > Be && (Ae = Be), Ae < 40 && (Ae = 40);
422
- const Re = Ae / Be * 100;
423
- f.style.width = Re + "%";
422
+ const De = Ae / Be * 100;
423
+ f.style.width = De + "%";
424
424
  }, ge = () => {
425
425
  document.removeEventListener("mousemove", re), document.removeEventListener("mouseup", ge), document.removeEventListener("touchmove", re), document.removeEventListener("touchend", ge);
426
426
  };
@@ -465,17 +465,17 @@ const xt = (e) => {
465
465
  if (d.key !== "Backspace" && d.key !== "Delete") return;
466
466
  const f = window.getSelection();
467
467
  if (!f || f.rangeCount === 0) return;
468
- const y = f.getRangeAt(0), D = m(y.startContainer);
469
- if (!D) return;
470
- const U = D.querySelector("iframe");
471
- U && (d.preventDefault(), d.stopPropagation(), U.remove(), D.removeAttribute("style"), D.replaceChildren(document.createElement("br")), L(D));
468
+ const y = f.getRangeAt(0), R = m(y.startContainer);
469
+ if (!R) return;
470
+ const U = R.querySelector("iframe");
471
+ U && (d.preventDefault(), d.stopPropagation(), U.remove(), R.removeAttribute("style"), R.replaceChildren(document.createElement("br")), L(R));
472
472
  }, ne = (d, f) => {
473
473
  const y = e;
474
474
  if (!y) return;
475
- const D = window.getSelection();
475
+ const R = window.getSelection();
476
476
  let U = null;
477
- if (D && D.rangeCount > 0) {
478
- const G = D.getRangeAt(0);
477
+ if (R && R.rangeCount > 0) {
478
+ const G = R.getRangeAt(0);
479
479
  U = m(G.startContainer);
480
480
  }
481
481
  const se = U && !U.textContent?.trim() && U.querySelectorAll("img, iframe").length === 0;
@@ -489,7 +489,7 @@ const xt = (e) => {
489
489
  ie.dataset.block = "true", ie.replaceChildren(document.createElement("br")), U ? (U.after(G), G.after(ie)) : y.append(G, ie), X = ie;
490
490
  }
491
491
  y.querySelectorAll(".img-resizable img").forEach((G) => H(G)), X && L(X), S(), y.dispatchEvent(new Event("input", { bubbles: !0 }));
492
- }, R = (d) => {
492
+ }, D = (d) => {
493
493
  const f = d.match(/(?:youtube\.com\/(?:watch\?v=|shorts\/|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);
494
494
  return f && typeof f[1] == "string" ? f[1] : null;
495
495
  }, w = async (d) => {
@@ -511,13 +511,13 @@ const xt = (e) => {
511
511
  }
512
512
  const y = d.clipboardData?.getData("text/plain")?.trim();
513
513
  if (!y) return;
514
- const D = R(y), U = T(y);
515
- if (!D && !U) return;
514
+ const R = D(y), U = T(y);
515
+ if (!R && !U) return;
516
516
  d.preventDefault();
517
517
  const se = window.getSelection();
518
518
  if (!se || se.rangeCount === 0) return;
519
519
  const X = se.getRangeAt(0), G = m(X.startContainer);
520
- if (G && G.textContent?.trim() === y && (G.innerHTML = "<br>"), D) {
520
+ if (G && G.textContent?.trim() === y && (G.innerHTML = "<br>"), R) {
521
521
  le(y);
522
522
  return;
523
523
  }
@@ -538,8 +538,8 @@ const xt = (e) => {
538
538
  }, Q = (d) => i ? new Promise((f) => {
539
539
  const y = new Image();
540
540
  y.onload = () => {
541
- const D = y.naturalWidth >= i.width || y.naturalHeight >= i.height;
542
- f(D);
541
+ const R = y.naturalWidth >= i.width || y.naturalHeight >= i.height;
542
+ f(R);
543
543
  }, y.onerror = () => f(!1), y.src = d;
544
544
  }) : Promise.resolve(!0);
545
545
  return e.addEventListener("keydown", O, { capture: !0 }), e.addEventListener("paste", w), {
@@ -1086,7 +1086,7 @@ const xt = (e) => {
1086
1086
  fill: "currentColor"
1087
1087
  }
1088
1088
  ]
1089
- }, D1 = {
1089
+ }, R1 = {
1090
1090
  viewBox: "0 0 24 24",
1091
1091
  paths: [
1092
1092
  {
@@ -1099,7 +1099,7 @@ const xt = (e) => {
1099
1099
  "stroke-linejoin": "round"
1100
1100
  }
1101
1101
  ]
1102
- }, R1 = {
1102
+ }, D1 = {
1103
1103
  viewBox: "0 0 24 24",
1104
1104
  paths: [
1105
1105
  {
@@ -2114,8 +2114,8 @@ const xt = (e) => {
2114
2114
  heart: z1,
2115
2115
  oList: B1,
2116
2116
  uList: A1,
2117
- close: D1,
2118
- clock: R1,
2117
+ close: R1,
2118
+ clock: D1,
2119
2119
  login: S1,
2120
2120
  image: _1,
2121
2121
  phone: E1,
@@ -2167,7 +2167,7 @@ const xt = (e) => {
2167
2167
  shoppingBag: Va,
2168
2168
  directionDown: Ba,
2169
2169
  shoppingBasket: Aa
2170
- }, Da = ["viewBox", "transform", "width", "height"], Ra = /* @__PURE__ */ Z({
2170
+ }, Ra = ["viewBox", "transform", "width", "height"], Da = /* @__PURE__ */ Z({
2171
2171
  __name: "Icon",
2172
2172
  props: {
2173
2173
  name: {},
@@ -2211,9 +2211,9 @@ const xt = (e) => {
2211
2211
  ref_for: !0
2212
2212
  }, a), null, 16)) : q("", !0)
2213
2213
  ], 64))), 128))
2214
- ], 10, Da));
2214
+ ], 10, Ra));
2215
2215
  }
2216
- }), pe = /* @__PURE__ */ W(Ra, [["__scopeId", "data-v-dd8423eb"]]), Sa = ["aria-controls"], Ta = ["aria-pressed", "onMousedown", "aria-label"], _a = { key: 1 }, Qe = 8, Ea = 6, Za = /* @__PURE__ */ Z({
2216
+ }), pe = /* @__PURE__ */ W(Da, [["__scopeId", "data-v-dd8423eb"]]), Sa = ["aria-controls"], Ta = ["aria-pressed", "onMousedown", "aria-label"], _a = { key: 1 }, Qe = 8, Ea = 6, Za = /* @__PURE__ */ Z({
2217
2217
  __name: "FloatingToolbar",
2218
2218
  props: {
2219
2219
  editor: {},
@@ -2415,7 +2415,15 @@ const xt = (e) => {
2415
2415
  (s) => {
2416
2416
  const c = r.value?.getRoot()?.value;
2417
2417
  c && c.innerHTML !== s && (c.innerHTML = s, l.value?.normalize());
2418
- }
2418
+ },
2419
+ { immediate: !0 }
2420
+ ), ee(
2421
+ () => r.value,
2422
+ () => {
2423
+ const s = r.value?.getRoot()?.value;
2424
+ !s || !t.value || t.value.trim().length === 0 || s.innerHTML !== t.value && (s.innerHTML = t.value, l.value?.normalize());
2425
+ },
2426
+ { immediate: !0 }
2419
2427
  ), de(() => {
2420
2428
  const c = r.value?.getRoot()?.value;
2421
2429
  if (!c) return;
@@ -3092,11 +3100,11 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3092
3100
  return e.invalid && e.errorMessage && o.push(t), n.hint && o.push(a), o.length > 0 ? o.join(" ") : void 0;
3093
3101
  }), Ke = (e) => V(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Bn = (e) => V(() => e.disabled === !0 ? "true" : void 0), An = (e, n, t) => {
3094
3102
  n && (n.classList.add("focused"), t("focus", e));
3095
- }, Dn = (e, n, t, a) => {
3103
+ }, Rn = (e, n, t, a) => {
3096
3104
  at(n, t), t && (t?.classList.remove("focused"), a("blur", e));
3097
3105
  }, at = (e, n) => {
3098
3106
  !e || !n || (e.value.length > 0 ? n.classList.add("filled") : n.classList.remove("filled"));
3099
- }, Rn = ["id"], it = /* @__PURE__ */ Z({
3107
+ }, Dn = ["id"], it = /* @__PURE__ */ Z({
3100
3108
  __name: "Hint",
3101
3109
  props: {
3102
3110
  hintId: {}
@@ -3108,7 +3116,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3108
3116
  class: "visually-hidden"
3109
3117
  }, [
3110
3118
  Y(n.$slots, "default")
3111
- ], 8, Rn)) : q("", !0);
3119
+ ], 8, Dn)) : q("", !0);
3112
3120
  }
3113
3121
  }), Sn = ["id"], ut = /* @__PURE__ */ Z({
3114
3122
  __name: "RequiredHint",
@@ -3180,9 +3188,9 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3180
3188
  };
3181
3189
  return;
3182
3190
  }
3183
- const ne = O.target, R = ne.selectionStart ?? 0;
3191
+ const ne = O.target, D = ne.selectionStart ?? 0;
3184
3192
  l.value = {
3185
- rawCaret: In(ne.value, R),
3193
+ rawCaret: In(ne.value, D),
3186
3194
  inputType: O.inputType
3187
3195
  };
3188
3196
  }, A = (O) => {
@@ -3194,10 +3202,10 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3194
3202
  ne.value = Q, t.value = Number(m.value || "0") / 100, l.value = null;
3195
3203
  return;
3196
3204
  }
3197
- let R = a.mask ? $n(ne.value, a.mask) : ne.value;
3198
- a.mask && (R = R.slice(0, g.value));
3199
- const w = a.mask ? gt(R, a.mask) : R;
3200
- if (ne.value = w, t.value = a.type === "number" ? Number(R) : R, a.mask && l.value) {
3205
+ let D = a.mask ? $n(ne.value, a.mask) : ne.value;
3206
+ a.mask && (D = D.slice(0, g.value));
3207
+ const w = a.mask ? gt(D, a.mask) : D;
3208
+ if (ne.value = w, t.value = a.type === "number" ? Number(D) : D, a.mask && l.value) {
3201
3209
  let { rawCaret: T, inputType: Q } = l.value;
3202
3210
  Q.startsWith("insert") && T++, Q === "deleteContentBackward" && (T = Math.max(0, T - 1));
3203
3211
  let d = Hn(w, T);
@@ -3207,10 +3215,10 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3207
3215
  }, x = (O) => {
3208
3216
  if (!a.mask || a.currency || O.key !== "Backspace") return;
3209
3217
  const ne = O.target;
3210
- let R = ne.selectionStart ?? 0;
3218
+ let D = ne.selectionStart ?? 0;
3211
3219
  const w = Fe(a.mask);
3212
- for (; R > 0 && w[R - 1]?.type === "literal"; ) R--;
3213
- requestAnimationFrame(() => ne.setSelectionRange(R, R));
3220
+ for (; D > 0 && w[D - 1]?.type === "literal"; ) D--;
3221
+ requestAnimationFrame(() => ne.setSelectionRange(D, D));
3214
3222
  }, H = (O) => {
3215
3223
  h.value = !0, o("focus", O);
3216
3224
  }, z = (O) => {
@@ -3334,8 +3342,8 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3334
3342
  emits: /* @__PURE__ */ ue(["focus", "blur", "change", "click"], ["update:modelValue"]),
3335
3343
  setup(e, { emit: n }) {
3336
3344
  const t = ke(e, "modelValue"), a = e, o = n, i = M(!1);
3337
- ee(i, (R) => {
3338
- R ? document.addEventListener("mousedown", O) : document.removeEventListener("mousedown", O);
3345
+ ee(i, (D) => {
3346
+ D ? document.addEventListener("mousedown", O) : document.removeEventListener("mousedown", O);
3339
3347
  });
3340
3348
  const l = lt(), r = M(!1), s = M(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`, L = M(null), S = M(null), I = V(() => t.value !== null && t.value !== void 0 && t.value !== ""), k = V(() => L.value !== null ? `${h}-option-${L.value}` : void 0), B = Ke(l).value, g = V(() => B ? `${p} ${c.value}-required-hint` : p), _ = V(() => i.value && k.value ? k.value : void 0), N = V(() => S.value !== null ? a.options[S.value]?.value : "");
3341
3349
  ee(
@@ -3346,56 +3354,56 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3346
3354
  () => ne(),
3347
3355
  { deep: !0 }
3348
3356
  );
3349
- const J = (R) => {
3350
- r.value = !0, o("focus", R);
3351
- }, ae = (R) => {
3352
- const w = R.relatedTarget, T = s.value;
3353
- !T || T?.contains(w) || (r.value = !1, i.value = !1, o("blur", R));
3354
- }, F = (R) => {
3355
- 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", R);
3356
- }, A = (R, w) => {
3357
+ const J = (D) => {
3358
+ r.value = !0, o("focus", D);
3359
+ }, ae = (D) => {
3360
+ const w = D.relatedTarget, T = s.value;
3361
+ !T || T?.contains(w) || (r.value = !1, i.value = !1, o("blur", D));
3362
+ }, F = (D) => {
3363
+ 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", D);
3364
+ }, A = (D, w) => {
3357
3365
  const T = s.value;
3358
- !T || R.disabled || (S.value = w, L.value = w, R && R.key && R.key.toString().length > 0 ? T.classList.add("filled") : T.classList.remove("filled"), t.value = R.key, o("change", R.key));
3359
- }, x = (R) => {
3360
- if (!i.value && ["ArrowDown", "ArrowUp"].includes(R.key)) {
3361
- i.value = !0, L.value = L.value ?? a.options.findIndex((w) => !w.disabled), R.preventDefault();
3366
+ !T || D.disabled || (S.value = w, L.value = w, D && D.key && D.key.toString().length > 0 ? T.classList.add("filled") : T.classList.remove("filled"), t.value = D.key, o("change", D.key));
3367
+ }, x = (D) => {
3368
+ if (!i.value && ["ArrowDown", "ArrowUp"].includes(D.key)) {
3369
+ i.value = !0, L.value = L.value ?? a.options.findIndex((w) => !w.disabled), D.preventDefault();
3362
3370
  return;
3363
3371
  }
3364
3372
  if (i.value) {
3365
- if (R.key === "ArrowDown" && (H(1), R.preventDefault()), R.key === "ArrowUp" && (H(-1), R.preventDefault()), R.key === "Home") {
3373
+ if (D.key === "ArrowDown" && (H(1), D.preventDefault()), D.key === "ArrowUp" && (H(-1), D.preventDefault()), D.key === "Home") {
3366
3374
  const w = z();
3367
- w >= 0 && (L.value = w), R.preventDefault();
3375
+ w >= 0 && (L.value = w), D.preventDefault();
3368
3376
  }
3369
- if (R.key === "End") {
3377
+ if (D.key === "End") {
3370
3378
  const w = le();
3371
- w >= 0 && (L.value = w), R.preventDefault();
3379
+ w >= 0 && (L.value = w), D.preventDefault();
3372
3380
  }
3373
- if (R.key === "Enter" || R.key === " ") {
3381
+ if (D.key === "Enter" || D.key === " ") {
3374
3382
  if (L.value === null) return;
3375
3383
  const w = a.options[L.value];
3376
3384
  if (!w || w.disabled) return;
3377
- A(w, L.value), i.value = !1, R.preventDefault();
3385
+ A(w, L.value), i.value = !1, D.preventDefault();
3378
3386
  }
3379
- R.key === "Escape" && (i.value = !1);
3387
+ D.key === "Escape" && (i.value = !1);
3380
3388
  }
3381
- }, H = (R) => {
3389
+ }, H = (D) => {
3382
3390
  if (L.value === null) return;
3383
3391
  let w = L.value;
3384
3392
  do
3385
- w += R;
3393
+ w += D;
3386
3394
  while (w >= 0 && w < a.options.length && a.options[w]?.disabled);
3387
3395
  w >= 0 && w < a.options.length && (L.value = w);
3388
- }, z = () => a.options.findIndex((R) => !R.disabled), le = () => [...a.options].reverse().findIndex((R) => !R.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((R) => !R.disabled) : -1, O = (R) => {
3396
+ }, z = () => a.options.findIndex((D) => !D.disabled), le = () => [...a.options].reverse().findIndex((D) => !D.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((D) => !D.disabled) : -1, O = (D) => {
3389
3397
  const w = s.value;
3390
- !w || w.contains(R.target) || (i.value = !1);
3398
+ !w || w.contains(D.target) || (i.value = !1);
3391
3399
  };
3392
3400
  _e(() => {
3393
3401
  document.removeEventListener("mousedown", O);
3394
3402
  });
3395
3403
  const ne = () => {
3396
- const R = a.options.findIndex((w) => w.key === t.value);
3397
- if (R > -1) {
3398
- S.value = R, L.value = R;
3404
+ const D = a.options.findIndex((w) => w.key === t.value);
3405
+ if (D > -1) {
3406
+ S.value = D, L.value = D;
3399
3407
  const w = s.value;
3400
3408
  w && w.classList.add("filled");
3401
3409
  }
@@ -3405,24 +3413,24 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3405
3413
  if (!a.options || a.options.length === 0) return;
3406
3414
  ne();
3407
3415
  }
3408
- }), (R, w) => (v(), b("div", {
3416
+ }), (D, w) => (v(), b("div", {
3409
3417
  ref_key: "selectRef",
3410
3418
  ref: s,
3411
- class: fe(["select-box", { required: Object.keys(R.$attrs).includes("required"), error: e.invalid, filled: I.value, focused: r.value }])
3419
+ class: fe(["select-box", { required: Object.keys(D.$attrs).includes("required"), error: e.invalid, filled: I.value, focused: r.value }])
3412
3420
  }, [
3413
3421
  $("button", ye({
3414
3422
  id: c.value,
3415
3423
  class: "select-btn",
3416
3424
  role: "combobox",
3417
3425
  type: "button"
3418
- }, R.$attrs, {
3426
+ }, D.$attrs, {
3419
3427
  "aria-haspopup": "listbox",
3420
3428
  "aria-expanded": i.value,
3421
3429
  "aria-controls": h,
3422
3430
  "aria-invalid": e.invalid ? "true" : void 0,
3423
3431
  "aria-labelledby": `${u} ${C}`,
3424
3432
  "aria-required": E(B),
3425
- "aria-describedby": E(st)(R.$props, R.$slots, m, g.value).value,
3433
+ "aria-describedby": E(st)(D.$props, D.$slots, m, g.value).value,
3426
3434
  "aria-activedescendant": _.value,
3427
3435
  "aria-disabled": E(l).disabled ? "true" : void 0,
3428
3436
  onBlur: ae,
@@ -3449,7 +3457,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3449
3457
  ], 16, On),
3450
3458
  P(Ee, { name: "select" }, {
3451
3459
  default: te(() => [
3452
- De($("ul", {
3460
+ Re($("ul", {
3453
3461
  id: h,
3454
3462
  role: "listbox",
3455
3463
  class: "options"
@@ -3476,7 +3484,7 @@ const Fe = (e) => [...e].map((n) => n === "9" ? { type: "digit" } : n === "A" ?
3476
3484
  }),
3477
3485
  P(it, { hintId: p }, {
3478
3486
  default: te(() => [
3479
- Y(R.$slots, "hint", {}, void 0, !0)
3487
+ Y(D.$slots, "hint", {}, void 0, !0)
3480
3488
  ]),
3481
3489
  _: 3
3482
3490
  }),
@@ -3771,7 +3779,7 @@ const nt = Z({
3771
3779
  setup(e, { slots: n }) {
3772
3780
  return () => j("div", { class: "modal-header" }, n.default?.());
3773
3781
  }
3774
- }), Dt = Z({
3782
+ }), Rt = Z({
3775
3783
  name: "ModalBody",
3776
3784
  setup(e, { slots: n }) {
3777
3785
  return () => j("div", { class: "modal-body" }, n.default?.());
@@ -3781,7 +3789,7 @@ const nt = Z({
3781
3789
  setup(e, { slots: n }) {
3782
3790
  return () => j("div", { class: "modal-footer" }, n.default?.());
3783
3791
  }
3784
- }), Rt = Z({
3792
+ }), Dt = Z({
3785
3793
  name: "ModalClose",
3786
3794
  setup() {
3787
3795
  const e = me(Ue);
@@ -3800,7 +3808,7 @@ const nt = Z({
3800
3808
  });
3801
3809
  Object.assign(nt, {
3802
3810
  install(e) {
3803
- e.component("Modal", nt), e.component("ModalBody", Dt), e.component("ModalTitle", Bt), e.component("ModalClose", Rt), e.component("ModalHeader", At), e.component("ModalContent", Vt);
3811
+ e.component("Modal", nt), e.component("ModalBody", Rt), e.component("ModalTitle", Bt), e.component("ModalClose", Dt), e.component("ModalHeader", At), e.component("ModalContent", Vt);
3804
3812
  }
3805
3813
  });
3806
3814
  const n2 = /* @__PURE__ */ Z({
@@ -3845,11 +3853,11 @@ const n2 = /* @__PURE__ */ Z({
3845
3853
  ])]),
3846
3854
  _: 1
3847
3855
  }),
3848
- P(E(Rt))
3856
+ P(E(Dt))
3849
3857
  ]),
3850
3858
  _: 1
3851
3859
  }),
3852
- P(E(Dt), null, {
3860
+ P(E(Rt), null, {
3853
3861
  default: te(() => [
3854
3862
  P(It, {
3855
3863
  modelValue: n.value,
@@ -4121,7 +4129,7 @@ const u2 = ["aria-busy"], c2 = {
4121
4129
  $("textarea", ye({ id: e.id }, I.$attrs, {
4122
4130
  class: "custom-textarea",
4123
4131
  onFocus: k[0] || (k[0] = (B) => E(An)(B, s.value, i)),
4124
- onBlur: k[1] || (k[1] = (B) => E(Dn)(B, r.value, s.value, i)),
4132
+ onBlur: k[1] || (k[1] = (B) => E(Rn)(B, r.value, s.value, i)),
4125
4133
  onInput: L,
4126
4134
  value: t.value,
4127
4135
  required: E(m),
@@ -4148,7 +4156,7 @@ const u2 = ["aria-busy"], c2 = {
4148
4156
  }, null, 8, ["invalid", "errorMessage"])
4149
4157
  ], 2));
4150
4158
  }
4151
- }), Dl = /* @__PURE__ */ W(k2, [["__scopeId", "data-v-3615613f"]]), w2 = { key: 0 }, M2 = { key: 1 }, L2 = /* @__PURE__ */ Z({
4159
+ }), Rl = /* @__PURE__ */ W(k2, [["__scopeId", "data-v-3615613f"]]), w2 = { key: 0 }, M2 = { key: 1 }, L2 = /* @__PURE__ */ Z({
4152
4160
  __name: "Highlight",
4153
4161
  props: {
4154
4162
  text: {},
@@ -4191,7 +4199,7 @@ const u2 = ["aria-busy"], c2 = {
4191
4199
  label: "The passwords must match.",
4192
4200
  validator: (e, n) => e === n && e.length > 0
4193
4201
  }
4194
- ], I2 = { class: "password-validation" }, H2 = { class: "password-rules" }, V2 = ["data-rule"], B2 = { class: "strength-meter" }, A2 = { class: "strength-top" }, D2 = /* @__PURE__ */ Z({
4202
+ ], I2 = { class: "password-validation" }, H2 = { class: "password-rules" }, V2 = ["data-rule"], B2 = { class: "strength-meter" }, A2 = { class: "strength-top" }, R2 = /* @__PURE__ */ Z({
4195
4203
  __name: "PasswordValidator",
4196
4204
  props: {
4197
4205
  id: {},
@@ -4272,11 +4280,11 @@ const u2 = ["aria-busy"], c2 = {
4272
4280
  ])
4273
4281
  ]));
4274
4282
  }
4275
- }), bt = /* @__PURE__ */ W(D2, [["__scopeId", "data-v-e7569cc0"]]);
4283
+ }), bt = /* @__PURE__ */ W(R2, [["__scopeId", "data-v-e7569cc0"]]);
4276
4284
  bt.install = (e) => {
4277
4285
  e.component("PasswordValidator", bt);
4278
4286
  };
4279
- const R2 = {
4287
+ const D2 = {
4280
4288
  class: "ui-breadcrumb",
4281
4289
  "aria-label": "Breadcrumb"
4282
4290
  }, S2 = { class: "ui-breadcrumb__list" }, T2 = {
@@ -4296,7 +4304,7 @@ const R2 = {
4296
4304
  rel: r.external ? "noopener noreferrer" : void 0,
4297
4305
  "aria-label": r.external ? `${r.label} (opens in a new tab)` : void 0
4298
4306
  } : {};
4299
- return (r, s) => (v(), b("nav", R2, [
4307
+ return (r, s) => (v(), b("nav", D2, [
4300
4308
  $("ol", S2, [
4301
4309
  (v(!0), b(ce, null, Ce(e.items, (c, u) => (v(), b("li", {
4302
4310
  key: c.to ?? c.href ?? `${c.label}-${u}`,
@@ -4322,7 +4330,7 @@ const R2 = {
4322
4330
  ])
4323
4331
  ]));
4324
4332
  }
4325
- }), Rl = /* @__PURE__ */ W(_2, [["__scopeId", "data-v-baed1592"]]), E2 = ["aria-invalid", "aria-required", "disabled"], Z2 = { class: "sr-only" }, z2 = ["name", "value", "disabled", "required"], N2 = {
4333
+ }), Dl = /* @__PURE__ */ W(_2, [["__scopeId", "data-v-baed1592"]]), E2 = ["aria-invalid", "aria-required", "disabled"], Z2 = { class: "sr-only" }, z2 = ["name", "value", "disabled", "required"], N2 = {
4326
4334
  key: 0,
4327
4335
  class: "radio-control",
4328
4336
  "aria-hidden": "true"
@@ -4356,7 +4364,7 @@ const R2 = {
4356
4364
  key: s.key,
4357
4365
  class: fe(["radio", { checked: t.value === s.key, disabled: e.disabled || s.disabled }])
4358
4366
  }, [
4359
- De($("input", {
4367
+ Re($("input", {
4360
4368
  type: "radio",
4361
4369
  class: "radio-input",
4362
4370
  name: e.name,
@@ -4476,7 +4484,7 @@ const R2 = {
4476
4484
  T >= 0 && (c.value = T), w.preventDefault();
4477
4485
  }
4478
4486
  if (w.key === "End") {
4479
- const T = R();
4487
+ const T = D();
4480
4488
  T >= 0 && (c.value = T), w.preventDefault();
4481
4489
  }
4482
4490
  if (w.key === "Enter") {
@@ -4497,14 +4505,14 @@ const R2 = {
4497
4505
  }, A = () => {
4498
4506
  l.value.length === 0 && (o.value = ""), l.value.length >= t.minChars ? (a("change", l.value), r.value = !0) : r.value = !1;
4499
4507
  }, x = () => {
4500
- if (o.value.toString().length === 0 || !t.options || t.options.length === 0) return;
4508
+ if (o.value.toString().length === 0) return;
4501
4509
  const w = t.options.findIndex((T) => t.getKey(T) === o.value);
4502
- w > -1 && (c.value = w, u.value = w, l.value = t.getValue(t.options[w]));
4510
+ w > -1 ? (c.value = w, u.value = w, l.value = t.getValue(t.options[w])) : l.value = o.value.toString();
4503
4511
  };
4504
4512
  ee(
4505
4513
  [() => t.options.length, () => o.value],
4506
4514
  async ([w, T]) => {
4507
- T && w !== 0 && (await $e(), x());
4515
+ T && (await $e(), x());
4508
4516
  },
4509
4517
  { flush: "post", immediate: !0 }
4510
4518
  );
@@ -4520,7 +4528,7 @@ const R2 = {
4520
4528
  }, O = () => {
4521
4529
  const w = ne();
4522
4530
  w >= 0 && (c.value = w);
4523
- }, ne = () => B.value.findIndex((w) => !t.isDisabled(w)), R = () => {
4531
+ }, ne = () => B.value.findIndex((w) => !t.isDisabled(w)), D = () => {
4524
4532
  for (let w = B.value.length - 1; w >= 0; w--) if (!t.isDisabled(B.value[w])) return w;
4525
4533
  return -1;
4526
4534
  };
@@ -4533,7 +4541,7 @@ const R2 = {
4533
4541
  for: e.id,
4534
4542
  class: "label"
4535
4543
  }, K(e.label), 9, O2),
4536
- De($("input", ye({
4544
+ Re($("input", ye({
4537
4545
  id: e.id,
4538
4546
  type: e.type
4539
4547
  }, w.$attrs, {
@@ -4556,7 +4564,7 @@ const R2 = {
4556
4564
  ]),
4557
4565
  P(Ee, { name: "select" }, {
4558
4566
  default: te(() => [
4559
- De($("ul", {
4567
+ Re($("ul", {
4560
4568
  id: p,
4561
4569
  role: "listbox",
4562
4570
  class: "options"
@@ -4645,7 +4653,7 @@ const R2 = {
4645
4653
  })) : q("", !0)
4646
4654
  ], 2));
4647
4655
  }
4648
- }), Tl = /* @__PURE__ */ W(Q2, [["__scopeId", "data-v-75e8a9a2"]]), eo = 5, we = Lt({
4656
+ }), Tl = /* @__PURE__ */ W(Q2, [["__scopeId", "data-v-7b61315b"]]), eo = 5, we = Lt({
4649
4657
  toasts: []
4650
4658
  });
4651
4659
  let to = 0;
@@ -5053,7 +5061,7 @@ const El = {
5053
5061
  "aria-live": "polite",
5054
5062
  "aria-atomic": "true",
5055
5063
  class: "sr-only"
5056
- }, Do = /* @__PURE__ */ Z({
5064
+ }, Ro = /* @__PURE__ */ Z({
5057
5065
  __name: "Steps",
5058
5066
  props: /* @__PURE__ */ ue({
5059
5067
  orientation: { default: "horizontal" },
@@ -5191,7 +5199,7 @@ const El = {
5191
5199
  $("div", Ao, " Step " + K(r.value + 1) + " of " + K(t.value) + ": " + K(m.value), 1)
5192
5200
  ], 64));
5193
5201
  }
5194
- }), Ol = /* @__PURE__ */ W(Do, [["__scopeId", "data-v-2fa0f578"]]), Ro = ["data-align"], So = /* @__PURE__ */ Z({
5202
+ }), Ol = /* @__PURE__ */ W(Ro, [["__scopeId", "data-v-2fa0f578"]]), Do = ["data-align"], So = /* @__PURE__ */ Z({
5195
5203
  __name: "Timeline",
5196
5204
  props: {
5197
5205
  align: { default: "left" }
@@ -5203,7 +5211,7 @@ const El = {
5203
5211
  "data-align": e.align
5204
5212
  }, [
5205
5213
  Y(t.$slots, "default", {}, void 0, !0)
5206
- ], 8, Ro));
5214
+ ], 8, Do));
5207
5215
  }
5208
5216
  }), Pl = /* @__PURE__ */ W(So, [["__scopeId", "data-v-d56deb2b"]]), To = ["data-align", "aria-labelledby", "aria-describedby"], _o = { class: "ui-timeline-content" }, Eo = ["datetime"], Zo = { class: "ui-timeline-date--month" }, zo = { class: "ui-timeline-date--day" }, No = { class: "ui-timeline-date--year" }, qo = ["data-direction"], Fo = { class: "info" }, Oo = ["id"], Po = { class: "addons" }, Ko = /* @__PURE__ */ Z({
5209
5217
  __name: "TimelineItem",
@@ -5318,8 +5326,8 @@ const El = {
5318
5326
  }), ae = (d) => {
5319
5327
  let f = d;
5320
5328
  if (t.loop) {
5321
- const y = Math.round(d / p.value), D = _.value;
5322
- f = (y % D + D) % D * p.value;
5329
+ const y = Math.round(d / p.value), R = _.value;
5330
+ f = (y % R + R) % R * p.value;
5323
5331
  } else
5324
5332
  f = Math.min(
5325
5333
  Math.max(d, 0),
@@ -5334,19 +5342,19 @@ const El = {
5334
5342
  }, t.autoplayDelay));
5335
5343
  }, ne = () => {
5336
5344
  I !== null && (clearInterval(I), I = null);
5337
- }, R = (d) => {
5345
+ }, D = (d) => {
5338
5346
  if (typeof t.itemsPerView == "number")
5339
5347
  return t.itemsPerView;
5340
- const f = Object.entries(t.itemsPerView).map(([D, U]) => [Number(D), U]).sort((D, U) => D[0] - U[0]);
5348
+ const f = Object.entries(t.itemsPerView).map(([R, U]) => [Number(R), U]).sort((R, U) => R[0] - U[0]);
5341
5349
  let y = f[0]?.[1] ?? 1;
5342
- for (const [D, U] of f) d >= D && (y = U);
5350
+ for (const [R, U] of f) d >= R && (y = U);
5343
5351
  return y;
5344
5352
  }, w = (d) => {
5345
5353
  d.button === 0 && (u.value = !0, o.value = d.clientX, a.value = d.clientX, s.value = d.clientX, i.value = 0, l.value = performance.now(), r.value = 0, h.value = C.value, S.value?.setPointerCapture(d.pointerId), ne(), S.value.style.userSelect = "");
5346
5354
  }, T = (d) => {
5347
5355
  if (!u.value) return;
5348
- const f = performance.now(), y = d.clientX - a.value, D = f - l.value;
5349
- D > 0 && (r.value = y / D), a.value = d.clientX, l.value = f, s.value = d.clientX, i.value = s.value - o.value;
5356
+ const f = performance.now(), y = d.clientX - a.value, R = f - l.value;
5357
+ R > 0 && (r.value = y / R), a.value = d.clientX, l.value = f, s.value = d.clientX, i.value = s.value - o.value;
5350
5358
  }, Q = (d) => {
5351
5359
  if (!u.value) return;
5352
5360
  u.value = !1, S.value?.releasePointerCapture(d.pointerId), S.value.style.userSelect = "";
@@ -5356,7 +5364,7 @@ const El = {
5356
5364
  return de(() => {
5357
5365
  O(), L.value && (k = new ResizeObserver((d) => {
5358
5366
  const f = d[0]?.contentRect.width;
5359
- f !== void 0 && (p.value = R(f));
5367
+ f !== void 0 && (p.value = D(f));
5360
5368
  }), k.observe(L.value));
5361
5369
  }), Ve(() => {
5362
5370
  ne(), k?.disconnect();
@@ -5425,18 +5433,18 @@ const El = {
5425
5433
  P(pe, { name: "directionDown" })
5426
5434
  ]),
5427
5435
  e.showIndicators ? (v(), b("div", Yo, [
5428
- (v(!0), b(ce, null, Ce(_.value, (y, D) => (v(), b("button", {
5436
+ (v(!0), b(ce, null, Ce(_.value, (y, R) => (v(), b("button", {
5429
5437
  role: "tab",
5430
5438
  type: "button",
5431
- key: D,
5432
- class: fe(["indicator", { active: D === Math.floor(C.value / p.value) }]),
5433
- "aria-label": `Go to slide ${D + 1}`,
5434
- "aria-selected": D === g.value,
5435
- "aria-current": D === g.value,
5436
- onClick: (U) => ae(D * p.value),
5439
+ key: R,
5440
+ class: fe(["indicator", { active: R === Math.floor(C.value / p.value) }]),
5441
+ "aria-label": `Go to slide ${R + 1}`,
5442
+ "aria-selected": R === g.value,
5443
+ "aria-current": R === g.value,
5444
+ onClick: (U) => ae(R * p.value),
5437
5445
  onKeydown: [
5438
- be(ve((U) => ae((D - 1 + _.value) % _.value * p.value), ["prevent"]), ["left"]),
5439
- be(ve((U) => ae((D + 1) % _.value * p.value), ["prevent"]), ["right"])
5446
+ be(ve((U) => ae((R - 1 + _.value) % _.value * p.value), ["prevent"]), ["left"]),
5447
+ be(ve((U) => ae((R + 1) % _.value * p.value), ["prevent"]), ["right"])
5440
5448
  ]
5441
5449
  }, null, 42, Xo))), 128))
5442
5450
  ])) : q("", !0)
@@ -5825,16 +5833,16 @@ const ll = (e, n) => {
5825
5833
  let O = x.value.replace(/\D/g, "");
5826
5834
  const ne = rl(o.format);
5827
5835
  O = O.slice(0, ne);
5828
- const R = ll(O, o.format);
5829
- r.value = R, x.value = R;
5836
+ const D = ll(O, o.format);
5837
+ r.value = D, x.value = D;
5830
5838
  let w = 0, T = 0;
5831
- for (let d = 0; d < R.length; d++)
5832
- if (/\d/.test(R[d] ?? "") && T++, T >= le) {
5839
+ for (let d = 0; d < D.length; d++)
5840
+ if (/\d/.test(D[d] ?? "") && T++, T >= le) {
5833
5841
  w = d + 1;
5834
5842
  break;
5835
5843
  }
5836
5844
  requestAnimationFrame(() => x.setSelectionRange(w, w));
5837
- const Q = Mt(R, o.format);
5845
+ const Q = Mt(D, o.format);
5838
5846
  Q && (c.value = Q, t.value = Q);
5839
5847
  }, J = () => {
5840
5848
  i.value || (i.value = !0, a("update:open", !0));
@@ -6015,7 +6023,7 @@ const ll = (e, n) => {
6015
6023
  }), {
6016
6024
  time: te(() => [
6017
6025
  o.value ? (v(), b("div", hl, [
6018
- l.value ? De((v(), b("input", {
6026
+ l.value ? Re((v(), b("input", {
6019
6027
  key: 0,
6020
6028
  id: `hour_${E(a)}`,
6021
6029
  type: "number",
@@ -6036,7 +6044,7 @@ const ll = (e, n) => {
6036
6044
  ]
6037
6045
  ]) : q("", !0),
6038
6046
  l.value && r.value ? (v(), b("span", yl, ":")) : q("", !0),
6039
- r.value ? De((v(), b("input", {
6047
+ r.value ? Re((v(), b("input", {
6040
6048
  key: 2,
6041
6049
  id: `minute_${E(a)}`,
6042
6050
  type: "number",
@@ -6057,7 +6065,7 @@ const ll = (e, n) => {
6057
6065
  ]
6058
6066
  ]) : q("", !0),
6059
6067
  (l.value || r.value) && s.value ? (v(), b("span", kl, ":")) : q("", !0),
6060
- s.value ? De((v(), b("input", {
6068
+ s.value ? Re((v(), b("input", {
6061
6069
  key: 4,
6062
6070
  id: `second_${E(a)}`,
6063
6071
  type: "number",
@@ -6440,7 +6448,7 @@ export {
6440
6448
  or as AccordionPanel,
6441
6449
  Tl as Autocomplete,
6442
6450
  Hl as Avatar,
6443
- Rl as Breadcrumb,
6451
+ Dl as Breadcrumb,
6444
6452
  Le as Button,
6445
6453
  ht as ButtonMenu,
6446
6454
  Zl as Card,
@@ -6464,8 +6472,8 @@ export {
6464
6472
  Il as Input,
6465
6473
  $l as Link,
6466
6474
  nt as Modal,
6467
- Dt as ModalBody,
6468
- Rt as ModalClose,
6475
+ Rt as ModalBody,
6476
+ Dt as ModalClose,
6469
6477
  Vt as ModalContent,
6470
6478
  Bl as ModalFooter,
6471
6479
  At as ModalHeader,
@@ -6482,7 +6490,7 @@ export {
6482
6490
  Yl as TabsList,
6483
6491
  Xl as TabsTrigger,
6484
6492
  mn as Tag,
6485
- Dl as Textarea,
6493
+ Rl as Textarea,
6486
6494
  Pl as Timeline,
6487
6495
  Kl as TimelineItem,
6488
6496
  El as ToastPlugin,