@rocketui/vue 0.1.12 → 0.1.13

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 v, openBlock as m, createElementBlock as o, createElementVNode as S, unref as L1, reactive as d1, Fragment as H1, renderList as M1, normalizeClass as p, renderSlot as h, toDisplayString as b, createVNode as q, computed as k, createCommentVNode as s, mergeProps as a2, createBlock as R, watch as G, getCurrentScope as Z2, onScopeDispose as u2, ref as E, watchEffect as S2, onMounted as q1, Teleport as s2, withCtx as n1, withDirectives as Y1, withKeys as W1, vModelText as c2, withModifiers as r1, createTextVNode as R1, normalizeStyle as x1, vShow as O2, Transition as p2, resolveComponent as f2, provide as k1, resolveDynamicComponent as h2, inject as B1 } from "vue";
1
+ import { defineComponent as v, openBlock as m, createElementBlock as o, createElementVNode as S, unref as L1, reactive as d1, Fragment as H1, renderList as M1, normalizeClass as p, renderSlot as h, toDisplayString as b, createVNode as q, computed as k, createCommentVNode as s, mergeProps as Z2, createBlock as R, watch as G, getCurrentScope as u2, onScopeDispose as S2, ref as E, watchEffect as q1, onMounted as Y1, Teleport as s2, withCtx as n1, withDirectives as X1, withKeys as W1, vModelText as c2, withModifiers as r1, createTextVNode as R1, normalizeStyle as x1, vShow as O2, Transition as p2, resolveComponent as f2, provide as k1, resolveDynamicComponent as h2, inject as B1 } from "vue";
2
2
  const g2 = {
3
3
  mdiAbTesting: "M4 2A2 2 0 0 0 2 4V12H4V8H6V12H8V4A2 2 0 0 0 6 2H4M4 4H6V6H4M22 15.5V14A2 2 0 0 0 20 12H16V22H20A2 2 0 0 0 22 20V18.5A1.54 1.54 0 0 0 20.5 17A1.54 1.54 0 0 0 22 15.5M20 20H18V18H20V20M20 16H18V14H20M5.79 21.61L4.21 20.39L18.21 2.39L19.79 3.61Z",
4
4
  mdiAbacus: "M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",
@@ -7305,7 +7305,7 @@ const g2 = {
7305
7305
  },
7306
7306
  setup(H) {
7307
7307
  const V = H;
7308
- return (C, M) => (m(), o("svg", {
7308
+ return (C, L) => (m(), o("svg", {
7309
7309
  class: "r-icon",
7310
7310
  height: V.size,
7311
7311
  viewBox: V.viewBox,
@@ -7324,19 +7324,19 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7324
7324
  },
7325
7325
  setup(H) {
7326
7326
  const V = H, C = d1(
7327
- V.accordions.map(({ title: A, content: L }, i) => ({
7327
+ V.accordions.map(({ title: A, content: M }, i) => ({
7328
7328
  title: A,
7329
- content: L,
7329
+ content: M,
7330
7330
  open: V.accordions[i].open || !1,
7331
7331
  disabled: V.accordions[i].disabled || !1
7332
7332
  }))
7333
7333
  );
7334
- function M(A) {
7335
- C[A].disabled || C.forEach((L, i) => {
7334
+ function L(A) {
7335
+ C[A].disabled || C.forEach((M, i) => {
7336
7336
  C[i].open = i === A ? !C[i].open : !1;
7337
7337
  });
7338
7338
  }
7339
- return (A, L) => (m(!0), o(H1, null, M1(C, (i, e) => (m(), o("div", {
7339
+ return (A, M) => (m(!0), o(H1, null, M1(C, (i, e) => (m(), o("div", {
7340
7340
  key: e,
7341
7341
  class: p(["r-accordion", {
7342
7342
  "r-accordion--disabled": i.disabled
@@ -7345,7 +7345,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7345
7345
  }, [
7346
7346
  S("div", {
7347
7347
  class: "r-accordion__header",
7348
- onClick: (d) => M(e)
7348
+ onClick: (d) => L(e)
7349
7349
  }, [
7350
7350
  h(A.$slots, "title", {}, () => [
7351
7351
  S("div", y2, b(i.title), 1)
@@ -7379,19 +7379,19 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7379
7379
  },
7380
7380
  emits: ["close"],
7381
7381
  setup(H, { emit: V }) {
7382
- const C = H, M = V, A = k(() => ({
7382
+ const C = H, L = V, A = k(() => ({
7383
7383
  " r-alert": !0,
7384
7384
  [`r-alert--${C.variant}`]: !0,
7385
7385
  "r-alert--block": C.block,
7386
7386
  [`r-alert--${C.variant}--${C.type}`]: !0
7387
- })), L = k(() => ({
7387
+ })), M = k(() => ({
7388
7388
  success: "mdiCheckCircle",
7389
7389
  error: "mdiAlertCircle",
7390
7390
  warning: "mdiAlert",
7391
7391
  info: "mdiInformation"
7392
7392
  })[C.type]);
7393
7393
  function i() {
7394
- M("close");
7394
+ L("close");
7395
7395
  }
7396
7396
  return (e, d) => (m(), o("div", {
7397
7397
  class: p(A.value)
@@ -7399,7 +7399,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7399
7399
  S("div", v2, [
7400
7400
  h(e.$slots, "alert-icon", {}, () => [
7401
7401
  q(x, {
7402
- name: L.value,
7402
+ name: M.value,
7403
7403
  size: 24
7404
7404
  }, null, 8, ["name"])
7405
7405
  ])
@@ -7436,8 +7436,8 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7436
7436
  const V = H, C = k(() => ({
7437
7437
  "r-avatar": !0,
7438
7438
  [`r-avatar--${V.size}`]: !0
7439
- })), M = k(() => V.type === "image" && !V.src), A = k(() => M.value ? I1 : V.src);
7440
- function L(i) {
7439
+ })), L = k(() => V.type === "image" && !V.src), A = k(() => L.value ? I1 : V.src);
7440
+ function M(i) {
7441
7441
  const e = i.split(" ");
7442
7442
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7443
7443
  }
@@ -7448,12 +7448,12 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7448
7448
  V.type === "text" ? (m(), o("p", {
7449
7449
  key: 0,
7450
7450
  class: p(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7451
- }, b(L(V.text)), 3)) : (m(), o("img", {
7451
+ }, b(M(V.text)), 3)) : (m(), o("img", {
7452
7452
  key: 1,
7453
7453
  alt: V.alt,
7454
7454
  class: p(["r-avatar__image", {
7455
7455
  [`r-avatar__image--${V.size}`]: !0,
7456
- "r-avatar__image--anonymous": M.value
7456
+ "r-avatar__image--anonymous": L.value
7457
7457
  }]),
7458
7458
  src: A.value
7459
7459
  }, null, 10, E2))
@@ -7489,14 +7489,14 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7489
7489
  [`r-badge--${V.variant}`]: V.variant,
7490
7490
  [V.class]: V.class
7491
7491
  }));
7492
- return (M, A) => (m(), o("div", N2, [
7492
+ return (L, A) => (m(), o("div", N2, [
7493
7493
  S("span", {
7494
7494
  class: p([{ "animate-ping-2": V.animation }, C.value])
7495
7495
  }, null, 2),
7496
7496
  S("span", {
7497
7497
  class: p(C.value)
7498
7498
  }, null, 2),
7499
- h(M.$slots, "default")
7499
+ h(L.$slots, "default")
7500
7500
  ]));
7501
7501
  }
7502
7502
  }), W2 = ["disabled"], H0 = /* @__PURE__ */ v({
@@ -7523,36 +7523,36 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7523
7523
  [`r-button--${V.size || "medium"}`]: !0,
7524
7524
  "r-button--only-icon": V.icon,
7525
7525
  "r-button--block": V.block
7526
- })), M = k(() => ({
7526
+ })), L = k(() => ({
7527
7527
  small: 16,
7528
7528
  medium: 16,
7529
7529
  large: 20
7530
7530
  })[V.size || "medium"]), A = k(() => ({
7531
7531
  height: V.height ? `${V.height}px` : ""
7532
7532
  }));
7533
- return (L, i) => (m(), o("button", a2(L.$attrs, {
7533
+ return (M, i) => (m(), o("button", Z2(M.$attrs, {
7534
7534
  class: C.value,
7535
- disabled: L.disabled,
7535
+ disabled: M.disabled,
7536
7536
  style: A.value,
7537
- onClick: i[0] || (i[0] = (e) => L.$emit("click"))
7537
+ onClick: i[0] || (i[0] = (e) => M.$emit("click"))
7538
7538
  }), [
7539
- h(L.$slots, "prepend", {}, () => [
7539
+ h(M.$slots, "prepend", {}, () => [
7540
7540
  V.prependIcon ? (m(), R(x, {
7541
7541
  key: 0,
7542
7542
  class: p(["r-button__prepend-icon", {
7543
7543
  "r-button__prepend-icon--only": V.icon
7544
7544
  }]),
7545
7545
  name: V.prependIcon,
7546
- size: M.value
7546
+ size: L.value
7547
7547
  }, null, 8, ["class", "name", "size"])) : s("", !0)
7548
7548
  ]),
7549
- h(L.$slots, "default"),
7550
- h(L.$slots, "append", {}, () => [
7549
+ h(M.$slots, "default"),
7550
+ h(M.$slots, "append", {}, () => [
7551
7551
  !V.icon && V.appendIcon ? (m(), R(x, {
7552
7552
  key: 0,
7553
7553
  class: "r-button__append-icon",
7554
7554
  name: V.appendIcon,
7555
- size: M.value
7555
+ size: L.value
7556
7556
  }, null, 8, ["name", "size"])) : s("", !0)
7557
7557
  ])
7558
7558
  ], 16, W2));
@@ -7580,14 +7580,14 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7580
7580
  },
7581
7581
  emits: ["update:modelValue"],
7582
7582
  setup(H, { emit: V }) {
7583
- const C = H, M = V, A = d1({
7583
+ const C = H, L = V, A = d1({
7584
7584
  checked: !1,
7585
7585
  indeterminate: !1
7586
- }), L = {
7586
+ }), M = {
7587
7587
  checked: "mdiCheck",
7588
7588
  unchecked: "",
7589
7589
  indeterminate: "mdiMinus"
7590
- }, i = k(() => A.indeterminate ? L.indeterminate : A.checked ? L.checked : L.unchecked), e = k(() => ({
7590
+ }, i = k(() => A.indeterminate ? M.indeterminate : A.checked ? M.checked : M.unchecked), e = k(() => ({
7591
7591
  "r-checkbox": !0,
7592
7592
  "r-checkbox--checked": A.checked,
7593
7593
  "r-checkbox--disabled": C.disabled,
@@ -7595,12 +7595,12 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7595
7595
  "r-checkbox--error": !!C.errorMsg
7596
7596
  }));
7597
7597
  function d(t) {
7598
- C.disabled || (A.checked = t.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
7598
+ C.disabled || (A.checked = t.target.checked, A.indeterminate = !1, L("update:modelValue", A.checked));
7599
7599
  }
7600
7600
  return G(
7601
7601
  () => C.indeterminate,
7602
7602
  (t) => {
7603
- A.indeterminate = t, t === !0 && (A.checked = !1, M("update:modelValue", A.checked));
7603
+ A.indeterminate = t, t === !0 && (A.checked = !1, L("update:modelValue", A.checked));
7604
7604
  },
7605
7605
  {
7606
7606
  // need immediate to set the state on first render for storybook
@@ -7663,25 +7663,25 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7663
7663
  },
7664
7664
  emits: ["click:chip", "click:close"],
7665
7665
  setup(H, { emit: V }) {
7666
- const C = H, M = V, A = k(() => ({
7666
+ const C = H, L = V, A = k(() => ({
7667
7667
  "r-chip": !0,
7668
7668
  "r-chip--disabled": C.disabled,
7669
7669
  [`r-chip__${C.variant}`]: C.variant,
7670
7670
  [`r-chip__${C.variant}--ghost`]: C.ghost,
7671
7671
  "r-chip--closable": C.closable
7672
7672
  }));
7673
- function L(e) {
7674
- C.closable && e.stopPropagation(), !C.disabled && M("click:chip", e);
7673
+ function M(e) {
7674
+ C.closable && e.stopPropagation(), !C.disabled && L("click:chip", e);
7675
7675
  }
7676
7676
  function i(e) {
7677
- C.disabled || !C.closable || (e.stopPropagation(), M("click:close", e));
7677
+ C.disabled || !C.closable || (e.stopPropagation(), L("click:close", e));
7678
7678
  }
7679
7679
  return (e, d) => (m(), o("div", {
7680
7680
  class: p(A.value)
7681
7681
  }, [
7682
7682
  S("div", {
7683
7683
  class: "r-chip__content",
7684
- onClick: d[0] || (d[0] = (t) => L(t))
7684
+ onClick: d[0] || (d[0] = (t) => M(t))
7685
7685
  }, [
7686
7686
  h(e.$slots, "prepend", {}, () => [
7687
7687
  C.prependIcon ? (m(), R(x, {
@@ -7708,38 +7708,38 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7708
7708
  }
7709
7709
  });
7710
7710
  function J2(H) {
7711
- return Z2() ? (u2(H), !0) : !1;
7711
+ return u2() ? (S2(H), !0) : !1;
7712
7712
  }
7713
- function X1(H) {
7713
+ function J1(H) {
7714
7714
  return typeof H == "function" ? H() : L1(H);
7715
7715
  }
7716
- const J1 = typeof window < "u" && typeof document < "u", C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", P1 = () => {
7716
+ const C2 = typeof window < "u" && typeof document < "u", C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", P1 = () => {
7717
7717
  }, V5 = /* @__PURE__ */ L5();
7718
7718
  function L5() {
7719
7719
  var H;
7720
- return J1 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7720
+ return C2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7721
7721
  }
7722
7722
  function l1(H) {
7723
7723
  var V;
7724
- const C = X1(H);
7724
+ const C = J1(H);
7725
7725
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7726
7726
  }
7727
- const C2 = J1 ? window : void 0;
7727
+ const H2 = C2 ? window : void 0;
7728
7728
  function b1(...H) {
7729
- let V, C, M, A;
7730
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, A] = H, V = C2) : [V, C, M, A] = H, !V)
7729
+ let V, C, L, A;
7730
+ if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, A] = H, V = H2) : [V, C, L, A] = H, !V)
7731
7731
  return P1;
7732
- Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
7733
- const L = [], i = () => {
7734
- L.forEach((u) => u()), L.length = 0;
7732
+ Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
7733
+ const M = [], i = () => {
7734
+ M.forEach((u) => u()), M.length = 0;
7735
7735
  }, e = (u, r, n, l) => (u.addEventListener(r, n, l), () => u.removeEventListener(r, n, l)), d = G(
7736
- () => [l1(V), X1(A)],
7736
+ () => [l1(V), J1(A)],
7737
7737
  ([u, r]) => {
7738
7738
  if (i(), !u)
7739
7739
  return;
7740
7740
  const n = H5(r) ? { ...r } : r;
7741
- L.push(
7742
- ...C.flatMap((l) => M.map((a) => e(u, l, a, n)))
7741
+ M.push(
7742
+ ...C.flatMap((l) => L.map((a) => e(u, l, a, n)))
7743
7743
  );
7744
7744
  },
7745
7745
  { immediate: !0, flush: "post" }
@@ -7750,20 +7750,20 @@ function b1(...H) {
7750
7750
  }
7751
7751
  let Q1 = !1;
7752
7752
  function M5(H, V, C = {}) {
7753
- const { window: M = C2, ignore: A = [], capture: L = !0, detectIframe: i = !1 } = C;
7754
- if (!M)
7753
+ const { window: L = H2, ignore: A = [], capture: M = !0, detectIframe: i = !1 } = C;
7754
+ if (!L)
7755
7755
  return;
7756
- V5 && !Q1 && (Q1 = !0, Array.from(M.document.body.children).forEach((n) => n.addEventListener("click", P1)), M.document.documentElement.addEventListener("click", P1));
7756
+ V5 && !Q1 && (Q1 = !0, Array.from(L.document.body.children).forEach((n) => n.addEventListener("click", P1)), L.document.documentElement.addEventListener("click", P1));
7757
7757
  let e = !0;
7758
7758
  const d = (n) => A.some((l) => {
7759
7759
  if (typeof l == "string")
7760
- return Array.from(M.document.querySelectorAll(l)).some((a) => a === n.target || n.composedPath().includes(a));
7760
+ return Array.from(L.document.querySelectorAll(l)).some((a) => a === n.target || n.composedPath().includes(a));
7761
7761
  {
7762
7762
  const a = l1(l);
7763
7763
  return a && (n.target === a || n.composedPath().includes(a));
7764
7764
  }
7765
7765
  }), u = [
7766
- b1(M, "click", (n) => {
7766
+ b1(L, "click", (n) => {
7767
7767
  const l = l1(H);
7768
7768
  if (!(!l || l === n.target || n.composedPath().includes(l))) {
7769
7769
  if (n.detail === 0 && (e = !d(n)), !e) {
@@ -7772,16 +7772,16 @@ function M5(H, V, C = {}) {
7772
7772
  }
7773
7773
  V(n);
7774
7774
  }
7775
- }, { passive: !0, capture: L }),
7776
- b1(M, "pointerdown", (n) => {
7775
+ }, { passive: !0, capture: M }),
7776
+ b1(L, "pointerdown", (n) => {
7777
7777
  const l = l1(H);
7778
7778
  l && (e = !n.composedPath().includes(l) && !d(n));
7779
7779
  }, { passive: !0 }),
7780
- i && b1(M, "blur", (n) => {
7780
+ i && b1(L, "blur", (n) => {
7781
7781
  setTimeout(() => {
7782
7782
  var l;
7783
7783
  const a = l1(H);
7784
- ((l = M.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(a != null && a.contains(M.document.activeElement)) && V(n);
7784
+ ((l = L.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(a != null && a.contains(L.document.activeElement)) && V(n);
7785
7785
  }, 0);
7786
7786
  })
7787
7787
  ].filter(Boolean);
@@ -7811,7 +7811,7 @@ function V1(H) {
7811
7811
  function u1(H) {
7812
7812
  return H.split("-")[1];
7813
7813
  }
7814
- function H2(H) {
7814
+ function V2(H) {
7815
7815
  return H === "x" ? "y" : "x";
7816
7816
  }
7817
7817
  function D1(H) {
@@ -7821,13 +7821,13 @@ function f1(H) {
7821
7821
  return ["top", "bottom"].includes(V1(H)) ? "y" : "x";
7822
7822
  }
7823
7823
  function _1(H) {
7824
- return H2(f1(H));
7824
+ return V2(f1(H));
7825
7825
  }
7826
7826
  function d5(H, V, C) {
7827
7827
  C === void 0 && (C = !1);
7828
- const M = u1(H), A = _1(H), L = D1(A);
7829
- let i = A === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
7830
- return V.reference[L] > V.floating[L] && (i = c1(i)), [i, c1(i)];
7828
+ const L = u1(H), A = _1(H), M = D1(A);
7829
+ let i = A === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
7830
+ return V.reference[M] > V.floating[M] && (i = c1(i)), [i, c1(i)];
7831
7831
  }
7832
7832
  function t5(H) {
7833
7833
  const V = c1(H);
@@ -7837,22 +7837,22 @@ function v1(H) {
7837
7837
  return H.replace(/start|end/g, (V) => e5[V]);
7838
7838
  }
7839
7839
  function m5(H, V, C) {
7840
- const M = ["left", "right"], A = ["right", "left"], L = ["top", "bottom"], i = ["bottom", "top"];
7840
+ const L = ["left", "right"], A = ["right", "left"], M = ["top", "bottom"], i = ["bottom", "top"];
7841
7841
  switch (H) {
7842
7842
  case "top":
7843
7843
  case "bottom":
7844
- return C ? V ? A : M : V ? M : A;
7844
+ return C ? V ? A : L : V ? L : A;
7845
7845
  case "left":
7846
7846
  case "right":
7847
- return V ? L : i;
7847
+ return V ? M : i;
7848
7848
  default:
7849
7849
  return [];
7850
7850
  }
7851
7851
  }
7852
- function l5(H, V, C, M) {
7852
+ function l5(H, V, C, L) {
7853
7853
  const A = u1(H);
7854
- let L = m5(V1(H), C === "start", M);
7855
- return A && (L = L.map((i) => i + "-" + A), V && (L = L.concat(L.map(v1)))), L;
7854
+ let M = m5(V1(H), C === "start", L);
7855
+ return A && (M = M.map((i) => i + "-" + A), V && (M = M.concat(M.map(v1)))), M;
7856
7856
  }
7857
7857
  function c1(H) {
7858
7858
  return H.replace(/left|right|bottom|top/g, (V) => i5[V]);
@@ -7866,7 +7866,7 @@ function o5(H) {
7866
7866
  ...H
7867
7867
  };
7868
7868
  }
7869
- function V2(H) {
7869
+ function L2(H) {
7870
7870
  return typeof H != "number" ? o5(H) : {
7871
7871
  top: H,
7872
7872
  right: H,
@@ -7885,40 +7885,40 @@ function O1(H) {
7885
7885
  }
7886
7886
  function G1(H, V, C) {
7887
7887
  let {
7888
- reference: M,
7888
+ reference: L,
7889
7889
  floating: A
7890
7890
  } = H;
7891
- const L = f1(V), i = _1(V), e = D1(i), d = V1(V), t = L === "y", u = M.x + M.width / 2 - A.width / 2, r = M.y + M.height / 2 - A.height / 2, n = M[e] / 2 - A[e] / 2;
7891
+ const M = f1(V), i = _1(V), e = D1(i), d = V1(V), t = M === "y", u = L.x + L.width / 2 - A.width / 2, r = L.y + L.height / 2 - A.height / 2, n = L[e] / 2 - A[e] / 2;
7892
7892
  let l;
7893
7893
  switch (d) {
7894
7894
  case "top":
7895
7895
  l = {
7896
7896
  x: u,
7897
- y: M.y - A.height
7897
+ y: L.y - A.height
7898
7898
  };
7899
7899
  break;
7900
7900
  case "bottom":
7901
7901
  l = {
7902
7902
  x: u,
7903
- y: M.y + M.height
7903
+ y: L.y + L.height
7904
7904
  };
7905
7905
  break;
7906
7906
  case "right":
7907
7907
  l = {
7908
- x: M.x + M.width,
7908
+ x: L.x + L.width,
7909
7909
  y: r
7910
7910
  };
7911
7911
  break;
7912
7912
  case "left":
7913
7913
  l = {
7914
- x: M.x - A.width,
7914
+ x: L.x - A.width,
7915
7915
  y: r
7916
7916
  };
7917
7917
  break;
7918
7918
  default:
7919
7919
  l = {
7920
- x: M.x,
7921
- y: M.y
7920
+ x: L.x,
7921
+ y: L.y
7922
7922
  };
7923
7923
  }
7924
7924
  switch (u1(V)) {
@@ -7933,11 +7933,11 @@ function G1(H, V, C) {
7933
7933
  }
7934
7934
  const n5 = async (H, V, C) => {
7935
7935
  const {
7936
- placement: M = "bottom",
7936
+ placement: L = "bottom",
7937
7937
  strategy: A = "absolute",
7938
- middleware: L = [],
7938
+ middleware: M = [],
7939
7939
  platform: i
7940
- } = C, e = L.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7940
+ } = C, e = M.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7941
7941
  let t = await i.getElementRects({
7942
7942
  reference: H,
7943
7943
  floating: V,
@@ -7945,7 +7945,7 @@ const n5 = async (H, V, C) => {
7945
7945
  }), {
7946
7946
  x: u,
7947
7947
  y: r
7948
- } = G1(t, M, d), n = M, l = {}, a = 0;
7948
+ } = G1(t, L, d), n = L, l = {}, a = 0;
7949
7949
  for (let B = 0; B < e.length; B++) {
7950
7950
  const {
7951
7951
  name: g,
@@ -7958,7 +7958,7 @@ const n5 = async (H, V, C) => {
7958
7958
  } = await w({
7959
7959
  x: u,
7960
7960
  y: r,
7961
- initialPlacement: M,
7961
+ initialPlacement: L,
7962
7962
  placement: n,
7963
7963
  strategy: A,
7964
7964
  middlewareData: l,
@@ -7999,9 +7999,9 @@ async function p1(H, V) {
7999
7999
  var C;
8000
8000
  V === void 0 && (V = {});
8001
8001
  const {
8002
- x: M,
8002
+ x: L,
8003
8003
  y: A,
8004
- platform: L,
8004
+ platform: M,
8005
8005
  rects: i,
8006
8006
  elements: e,
8007
8007
  strategy: d
@@ -8011,22 +8011,22 @@ async function p1(H, V) {
8011
8011
  elementContext: r = "floating",
8012
8012
  altBoundary: n = !1,
8013
8013
  padding: l = 0
8014
- } = t1(V, H), a = V2(l), g = e[n ? r === "floating" ? "reference" : "floating" : r], w = O1(await L.getClippingRect({
8015
- element: (C = await (L.isElement == null ? void 0 : L.isElement(g))) == null || C ? g : g.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8014
+ } = t1(V, H), a = L2(l), g = e[n ? r === "floating" ? "reference" : "floating" : r], w = O1(await M.getClippingRect({
8015
+ element: (C = await (M.isElement == null ? void 0 : M.isElement(g))) == null || C ? g : g.contextElement || await (M.getDocumentElement == null ? void 0 : M.getDocumentElement(e.floating)),
8016
8016
  boundary: t,
8017
8017
  rootBoundary: u,
8018
8018
  strategy: d
8019
8019
  })), P = r === "floating" ? {
8020
8020
  ...i.floating,
8021
- x: M,
8021
+ x: L,
8022
8022
  y: A
8023
- } : i.reference, T = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), D = await (L.isElement == null ? void 0 : L.isElement(T)) ? await (L.getScale == null ? void 0 : L.getScale(T)) || {
8023
+ } : i.reference, T = await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(e.floating)), D = await (M.isElement == null ? void 0 : M.isElement(T)) ? await (M.getScale == null ? void 0 : M.getScale(T)) || {
8024
8024
  x: 1,
8025
8025
  y: 1
8026
8026
  } : {
8027
8027
  x: 1,
8028
8028
  y: 1
8029
- }, F = O1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8029
+ }, F = O1(M.convertOffsetParentRelativeRectToViewportRelativeRect ? await M.convertOffsetParentRelativeRectToViewportRelativeRect({
8030
8030
  rect: P,
8031
8031
  offsetParent: T,
8032
8032
  strategy: d
@@ -8044,9 +8044,9 @@ const r5 = (H) => ({
8044
8044
  async fn(V) {
8045
8045
  const {
8046
8046
  x: C,
8047
- y: M,
8047
+ y: L,
8048
8048
  placement: A,
8049
- rects: L,
8049
+ rects: M,
8050
8050
  platform: i,
8051
8051
  elements: e,
8052
8052
  middlewareData: d
@@ -8056,13 +8056,13 @@ const r5 = (H) => ({
8056
8056
  } = t1(H, V) || {};
8057
8057
  if (t == null)
8058
8058
  return {};
8059
- const r = V2(u), n = {
8059
+ const r = L2(u), n = {
8060
8060
  x: C,
8061
- y: M
8062
- }, l = _1(A), a = D1(l), B = await i.getDimensions(t), g = l === "y", w = g ? "top" : "left", P = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", D = L.reference[a] + L.reference[l] - n[l] - L.floating[a], F = n[l] - L.reference[l], c = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8061
+ y: L
8062
+ }, l = _1(A), a = D1(l), B = await i.getDimensions(t), g = l === "y", w = g ? "top" : "left", P = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", D = M.reference[a] + M.reference[l] - n[l] - M.floating[a], F = n[l] - M.reference[l], c = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8063
8063
  let f = c ? c[T] : 0;
8064
- (!f || !await (i.isElement == null ? void 0 : i.isElement(c))) && (f = e.floating[T] || L.floating[a]);
8065
- const Z = D / 2 - F / 2, y = f / 2 - B[a] / 2 - 1, O = a1(r[w], y), _ = a1(r[P], y), N = O, m1 = f - B[a] - _, W = f / 2 - B[a] / 2 + Z, z = T1(N, W, m1), U = !d.arrow && u1(A) != null && W != z && L.reference[a] / 2 - (W < N ? O : _) - B[a] / 2 < 0, K = U ? W < N ? W - N : W - m1 : 0;
8064
+ (!f || !await (i.isElement == null ? void 0 : i.isElement(c))) && (f = e.floating[T] || M.floating[a]);
8065
+ const Z = D / 2 - F / 2, y = f / 2 - B[a] / 2 - 1, O = a1(r[w], y), _ = a1(r[P], y), N = O, m1 = f - B[a] - _, W = f / 2 - B[a] / 2 + Z, z = T1(N, W, m1), U = !d.arrow && u1(A) != null && W != z && M.reference[a] / 2 - (W < N ? O : _) - B[a] / 2 < 0, K = U ? W < N ? W - N : W - m1 : 0;
8066
8066
  return {
8067
8067
  [l]: n[l] + K,
8068
8068
  data: {
@@ -8080,10 +8080,10 @@ const r5 = (H) => ({
8080
8080
  name: "flip",
8081
8081
  options: H,
8082
8082
  async fn(V) {
8083
- var C, M;
8083
+ var C, L;
8084
8084
  const {
8085
8085
  placement: A,
8086
- middlewareData: L,
8086
+ middlewareData: M,
8087
8087
  rects: i,
8088
8088
  initialPlacement: e,
8089
8089
  platform: d,
@@ -8097,12 +8097,12 @@ const r5 = (H) => ({
8097
8097
  flipAlignment: B = !0,
8098
8098
  ...g
8099
8099
  } = t1(H, V);
8100
- if ((C = L.arrow) != null && C.alignmentOffset)
8100
+ if ((C = M.arrow) != null && C.alignmentOffset)
8101
8101
  return {};
8102
8102
  const w = V1(A), P = V1(e) === e, T = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), D = n || (P || !B ? [c1(e)] : t5(e));
8103
8103
  !n && a !== "none" && D.push(...l5(e, B, a, T));
8104
8104
  const F = [e, ...D], c = await p1(V, g), f = [];
8105
- let Z = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8105
+ let Z = ((L = M.flip) == null ? void 0 : L.overflows) || [];
8106
8106
  if (u && f.push(c[w]), r) {
8107
8107
  const N = d5(A, i, T);
8108
8108
  f.push(c[N[0]], c[N[1]]);
@@ -8112,7 +8112,7 @@ const r5 = (H) => ({
8112
8112
  overflows: f
8113
8113
  }], !f.every((N) => N <= 0)) {
8114
8114
  var y, O;
8115
- const N = (((y = L.flip) == null ? void 0 : y.index) || 0) + 1, m1 = F[N];
8115
+ const N = (((y = M.flip) == null ? void 0 : y.index) || 0) + 1, m1 = F[N];
8116
8116
  if (m1)
8117
8117
  return {
8118
8118
  data: {
@@ -8128,7 +8128,7 @@ const r5 = (H) => ({
8128
8128
  switch (l) {
8129
8129
  case "bestFit": {
8130
8130
  var _;
8131
- const z = (_ = Z.map((U) => [U.placement, U.overflows.filter((K) => K > 0).reduce((K, r2) => K + r2, 0)]).sort((U, K) => U[1] - K[1])[0]) == null ? void 0 : _[0];
8131
+ const z = (_ = Z.map((U) => [U.placement, U.overflows.filter((K) => K > 0).reduce((K, a2) => K + a2, 0)]).sort((U, K) => U[1] - K[1])[0]) == null ? void 0 : _[0];
8132
8132
  z && (W = z);
8133
8133
  break;
8134
8134
  }
@@ -8166,15 +8166,15 @@ const Z5 = function(H) {
8166
8166
  const {
8167
8167
  rects: C
8168
8168
  } = V, {
8169
- strategy: M = "referenceHidden",
8169
+ strategy: L = "referenceHidden",
8170
8170
  ...A
8171
8171
  } = t1(H, V);
8172
- switch (M) {
8172
+ switch (L) {
8173
8173
  case "referenceHidden": {
8174
- const L = await p1(V, {
8174
+ const M = await p1(V, {
8175
8175
  ...A,
8176
8176
  elementContext: "reference"
8177
- }), i = z1(L, C.reference);
8177
+ }), i = z1(M, C.reference);
8178
8178
  return {
8179
8179
  data: {
8180
8180
  referenceHiddenOffsets: i,
@@ -8183,10 +8183,10 @@ const Z5 = function(H) {
8183
8183
  };
8184
8184
  }
8185
8185
  case "escaped": {
8186
- const L = await p1(V, {
8186
+ const M = await p1(V, {
8187
8187
  ...A,
8188
8188
  altBoundary: !0
8189
- }), i = z1(L, C.floating);
8189
+ }), i = z1(M, C.floating);
8190
8190
  return {
8191
8191
  data: {
8192
8192
  escapedOffsets: i,
@@ -8203,9 +8203,9 @@ const Z5 = function(H) {
8203
8203
  async function u5(H, V) {
8204
8204
  const {
8205
8205
  placement: C,
8206
- platform: M,
8206
+ platform: L,
8207
8207
  elements: A
8208
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = V1(C), e = u1(C), d = f1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, u = L && d ? -1 : 1, r = t1(V, H);
8208
+ } = H, M = await (L.isRTL == null ? void 0 : L.isRTL(A.floating)), i = V1(C), e = u1(C), d = f1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, u = M && d ? -1 : 1, r = t1(V, H);
8209
8209
  let {
8210
8210
  mainAxis: n,
8211
8211
  crossAxis: l,
@@ -8235,11 +8235,11 @@ const S5 = function(H) {
8235
8235
  async fn(V) {
8236
8236
  const {
8237
8237
  x: C,
8238
- y: M
8238
+ y: L
8239
8239
  } = V, A = await u5(V, H);
8240
8240
  return {
8241
8241
  x: C + A.x,
8242
- y: M + A.y,
8242
+ y: L + A.y,
8243
8243
  data: A
8244
8244
  };
8245
8245
  }
@@ -8251,10 +8251,10 @@ const S5 = function(H) {
8251
8251
  async fn(V) {
8252
8252
  const {
8253
8253
  x: C,
8254
- y: M,
8254
+ y: L,
8255
8255
  placement: A
8256
8256
  } = V, {
8257
- mainAxis: L = !0,
8257
+ mainAxis: M = !0,
8258
8258
  crossAxis: i = !1,
8259
8259
  limiter: e = {
8260
8260
  fn: (g) => {
@@ -8271,10 +8271,10 @@ const S5 = function(H) {
8271
8271
  ...d
8272
8272
  } = t1(H, V), t = {
8273
8273
  x: C,
8274
- y: M
8275
- }, u = await p1(V, d), r = f1(V1(A)), n = H2(r);
8274
+ y: L
8275
+ }, u = await p1(V, d), r = f1(V1(A)), n = V2(r);
8276
8276
  let l = t[n], a = t[r];
8277
- if (L) {
8277
+ if (M) {
8278
8278
  const g = n === "y" ? "top" : "left", w = n === "y" ? "bottom" : "right", P = l + u[g], T = l - u[w];
8279
8279
  l = T1(P, l, T);
8280
8280
  }
@@ -8291,14 +8291,14 @@ const S5 = function(H) {
8291
8291
  ...B,
8292
8292
  data: {
8293
8293
  x: B.x - C,
8294
- y: B.y - M
8294
+ y: B.y - L
8295
8295
  }
8296
8296
  };
8297
8297
  }
8298
8298
  };
8299
8299
  };
8300
8300
  function J(H) {
8301
- return L2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8301
+ return M2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8302
8302
  }
8303
8303
  function I(H) {
8304
8304
  var V;
@@ -8306,9 +8306,9 @@ function I(H) {
8306
8306
  }
8307
8307
  function C1(H) {
8308
8308
  var V;
8309
- return (V = (L2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8309
+ return (V = (M2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8310
8310
  }
8311
- function L2(H) {
8311
+ function M2(H) {
8312
8312
  return H instanceof Node || H instanceof I(H).Node;
8313
8313
  }
8314
8314
  function Y(H) {
@@ -8324,17 +8324,17 @@ function S1(H) {
8324
8324
  const {
8325
8325
  overflow: V,
8326
8326
  overflowX: C,
8327
- overflowY: M,
8327
+ overflowY: L,
8328
8328
  display: A
8329
8329
  } = Q(H);
8330
- return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(A);
8330
+ return /auto|scroll|overlay|hidden|clip/.test(V + L + C) && !["inline", "contents"].includes(A);
8331
8331
  }
8332
8332
  function c5(H) {
8333
8333
  return ["table", "td", "th"].includes(J(H));
8334
8334
  }
8335
8335
  function E1(H) {
8336
8336
  const V = N1(), C = Q(H);
8337
- return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
8337
+ return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((L) => (C.willChange || "").includes(L)) || ["paint", "layout", "strict", "content"].some((L) => (C.contain || "").includes(L));
8338
8338
  }
8339
8339
  function O5(H) {
8340
8340
  let V = e1(H);
@@ -8375,46 +8375,46 @@ function e1(H) {
8375
8375
  );
8376
8376
  return $1(V) ? V.host : V;
8377
8377
  }
8378
- function M2(H) {
8378
+ function A2(H) {
8379
8379
  const V = e1(H);
8380
- return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : $(V) && S1(V) ? V : M2(V);
8380
+ return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : $(V) && S1(V) ? V : A2(V);
8381
8381
  }
8382
8382
  function F1(H, V, C) {
8383
- var M;
8383
+ var L;
8384
8384
  V === void 0 && (V = []), C === void 0 && (C = !0);
8385
- const A = M2(H), L = A === ((M = H.ownerDocument) == null ? void 0 : M.body), i = I(A);
8386
- return L ? V.concat(i, i.visualViewport || [], S1(A) ? A : [], i.frameElement && C ? F1(i.frameElement) : []) : V.concat(A, F1(A, [], C));
8385
+ const A = A2(H), M = A === ((L = H.ownerDocument) == null ? void 0 : L.body), i = I(A);
8386
+ return M ? V.concat(i, i.visualViewport || [], S1(A) ? A : [], i.frameElement && C ? F1(i.frameElement) : []) : V.concat(A, F1(A, [], C));
8387
8387
  }
8388
- function A2(H) {
8388
+ function i2(H) {
8389
8389
  const V = Q(H);
8390
- let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
8391
- const A = $(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = s1(C) !== L || s1(M) !== i;
8392
- return e && (C = L, M = i), {
8390
+ let C = parseFloat(V.width) || 0, L = parseFloat(V.height) || 0;
8391
+ const A = $(H), M = A ? H.offsetWidth : C, i = A ? H.offsetHeight : L, e = s1(C) !== M || s1(L) !== i;
8392
+ return e && (C = M, L = i), {
8393
8393
  width: C,
8394
- height: M,
8394
+ height: L,
8395
8395
  $: e
8396
8396
  };
8397
8397
  }
8398
- function i2(H) {
8398
+ function e2(H) {
8399
8399
  return Y(H) ? H : H.contextElement;
8400
8400
  }
8401
8401
  function i1(H) {
8402
- const V = i2(H);
8402
+ const V = e2(H);
8403
8403
  if (!$(V))
8404
8404
  return X(1);
8405
8405
  const C = V.getBoundingClientRect(), {
8406
- width: M,
8406
+ width: L,
8407
8407
  height: A,
8408
- $: L
8409
- } = A2(V);
8410
- let i = (L ? s1(C.width) : C.width) / M, e = (L ? s1(C.height) : C.height) / A;
8408
+ $: M
8409
+ } = i2(V);
8410
+ let i = (M ? s1(C.width) : C.width) / L, e = (M ? s1(C.height) : C.height) / A;
8411
8411
  return (!i || !Number.isFinite(i)) && (i = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8412
8412
  x: i,
8413
8413
  y: e
8414
8414
  };
8415
8415
  }
8416
8416
  const p5 = /* @__PURE__ */ X(0);
8417
- function e2(H) {
8417
+ function d2(H) {
8418
8418
  const V = I(H);
8419
8419
  return !N1() || !V.visualViewport ? p5 : {
8420
8420
  x: V.visualViewport.offsetLeft,
@@ -8424,17 +8424,17 @@ function e2(H) {
8424
8424
  function f5(H, V, C) {
8425
8425
  return V === void 0 && (V = !1), !C || V && C !== I(H) ? !1 : V;
8426
8426
  }
8427
- function Z1(H, V, C, M) {
8427
+ function Z1(H, V, C, L) {
8428
8428
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8429
- const A = H.getBoundingClientRect(), L = i2(H);
8429
+ const A = H.getBoundingClientRect(), M = e2(H);
8430
8430
  let i = X(1);
8431
- V && (M ? Y(M) && (i = i1(M)) : i = i1(H));
8432
- const e = f5(L, C, M) ? e2(L) : X(0);
8431
+ V && (L ? Y(L) && (i = i1(L)) : i = i1(H));
8432
+ const e = f5(M, C, L) ? d2(M) : X(0);
8433
8433
  let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, u = A.width / i.x, r = A.height / i.y;
8434
- if (L) {
8435
- const n = I(L), l = M && Y(M) ? I(M) : M;
8434
+ if (M) {
8435
+ const n = I(M), l = L && Y(L) ? I(L) : L;
8436
8436
  let a = n.frameElement;
8437
- for (; a && M && l !== n; ) {
8437
+ for (; a && L && l !== n; ) {
8438
8438
  const B = i1(a), g = a.getBoundingClientRect(), w = Q(a), P = g.left + (a.clientLeft + parseFloat(w.paddingLeft)) * B.x, T = g.top + (a.clientTop + parseFloat(w.paddingTop)) * B.y;
8439
8439
  d *= B.x, t *= B.y, u *= B.x, r *= B.y, d += P, t += T, a = I(a).frameElement;
8440
8440
  }
@@ -8450,17 +8450,17 @@ function h5(H) {
8450
8450
  let {
8451
8451
  rect: V,
8452
8452
  offsetParent: C,
8453
- strategy: M
8453
+ strategy: L
8454
8454
  } = H;
8455
- const A = $(C), L = C1(C);
8456
- if (C === L)
8455
+ const A = $(C), M = C1(C);
8456
+ if (C === M)
8457
8457
  return V;
8458
8458
  let i = {
8459
8459
  scrollLeft: 0,
8460
8460
  scrollTop: 0
8461
8461
  }, e = X(1);
8462
8462
  const d = X(0);
8463
- if ((A || !A && M !== "fixed") && ((J(C) !== "body" || S1(L)) && (i = g1(C)), $(C))) {
8463
+ if ((A || !A && L !== "fixed") && ((J(C) !== "body" || S1(M)) && (i = g1(C)), $(C))) {
8464
8464
  const t = Z1(C);
8465
8465
  e = i1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
8466
8466
  }
@@ -8474,37 +8474,37 @@ function h5(H) {
8474
8474
  function g5(H) {
8475
8475
  return Array.from(H.getClientRects());
8476
8476
  }
8477
- function d2(H) {
8477
+ function t2(H) {
8478
8478
  return Z1(C1(H)).left + g1(H).scrollLeft;
8479
8479
  }
8480
8480
  function k5(H) {
8481
- const V = C1(H), C = g1(H), M = H.ownerDocument.body, A = A1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = A1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8482
- let i = -C.scrollLeft + d2(H);
8481
+ const V = C1(H), C = g1(H), L = H.ownerDocument.body, A = A1(V.scrollWidth, V.clientWidth, L.scrollWidth, L.clientWidth), M = A1(V.scrollHeight, V.clientHeight, L.scrollHeight, L.clientHeight);
8482
+ let i = -C.scrollLeft + t2(H);
8483
8483
  const e = -C.scrollTop;
8484
- return Q(M).direction === "rtl" && (i += A1(V.clientWidth, M.clientWidth) - A), {
8484
+ return Q(L).direction === "rtl" && (i += A1(V.clientWidth, L.clientWidth) - A), {
8485
8485
  width: A,
8486
- height: L,
8486
+ height: M,
8487
8487
  x: i,
8488
8488
  y: e
8489
8489
  };
8490
8490
  }
8491
8491
  function B5(H, V) {
8492
- const C = I(H), M = C1(H), A = C.visualViewport;
8493
- let L = M.clientWidth, i = M.clientHeight, e = 0, d = 0;
8492
+ const C = I(H), L = C1(H), A = C.visualViewport;
8493
+ let M = L.clientWidth, i = L.clientHeight, e = 0, d = 0;
8494
8494
  if (A) {
8495
- L = A.width, i = A.height;
8495
+ M = A.width, i = A.height;
8496
8496
  const t = N1();
8497
8497
  (!t || t && V === "fixed") && (e = A.offsetLeft, d = A.offsetTop);
8498
8498
  }
8499
8499
  return {
8500
- width: L,
8500
+ width: M,
8501
8501
  height: i,
8502
8502
  x: e,
8503
8503
  y: d
8504
8504
  };
8505
8505
  }
8506
8506
  function b5(H, V) {
8507
- const C = Z1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = $(H) ? i1(H) : X(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, t = M * L.y;
8507
+ const C = Z1(H, !0, V === "fixed"), L = C.top + H.clientTop, A = C.left + H.clientLeft, M = $(H) ? i1(H) : X(1), i = H.clientWidth * M.x, e = H.clientHeight * M.y, d = A * M.x, t = L * M.y;
8508
8508
  return {
8509
8509
  width: i,
8510
8510
  height: e,
@@ -8513,48 +8513,48 @@ function b5(H, V) {
8513
8513
  };
8514
8514
  }
8515
8515
  function K1(H, V, C) {
8516
- let M;
8516
+ let L;
8517
8517
  if (V === "viewport")
8518
- M = B5(H, C);
8518
+ L = B5(H, C);
8519
8519
  else if (V === "document")
8520
- M = k5(C1(H));
8520
+ L = k5(C1(H));
8521
8521
  else if (Y(V))
8522
- M = b5(V, C);
8522
+ L = b5(V, C);
8523
8523
  else {
8524
- const A = e2(H);
8525
- M = {
8524
+ const A = d2(H);
8525
+ L = {
8526
8526
  ...V,
8527
8527
  x: V.x - A.x,
8528
8528
  y: V.y - A.y
8529
8529
  };
8530
8530
  }
8531
- return O1(M);
8531
+ return O1(L);
8532
8532
  }
8533
- function t2(H, V) {
8533
+ function m2(H, V) {
8534
8534
  const C = e1(H);
8535
- return C === V || !Y(C) || h1(C) ? !1 : Q(C).position === "fixed" || t2(C, V);
8535
+ return C === V || !Y(C) || h1(C) ? !1 : Q(C).position === "fixed" || m2(C, V);
8536
8536
  }
8537
8537
  function w5(H, V) {
8538
8538
  const C = V.get(H);
8539
8539
  if (C)
8540
8540
  return C;
8541
- let M = F1(H, [], !1).filter((e) => Y(e) && J(e) !== "body"), A = null;
8542
- const L = Q(H).position === "fixed";
8543
- let i = L ? e1(H) : H;
8541
+ let L = F1(H, [], !1).filter((e) => Y(e) && J(e) !== "body"), A = null;
8542
+ const M = Q(H).position === "fixed";
8543
+ let i = M ? e1(H) : H;
8544
8544
  for (; Y(i) && !h1(i); ) {
8545
8545
  const e = Q(i), d = E1(i);
8546
- !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && t2(H, i)) ? M = M.filter((u) => u !== i) : A = e, i = e1(i);
8546
+ !d && e.position === "fixed" && (A = null), (M ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? L = L.filter((u) => u !== i) : A = e, i = e1(i);
8547
8547
  }
8548
- return V.set(H, M), M;
8548
+ return V.set(H, L), L;
8549
8549
  }
8550
8550
  function y5(H) {
8551
8551
  let {
8552
8552
  element: V,
8553
8553
  boundary: C,
8554
- rootBoundary: M,
8554
+ rootBoundary: L,
8555
8555
  strategy: A
8556
8556
  } = H;
8557
- const i = [...C === "clippingAncestors" ? w5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, u) => {
8557
+ const i = [...C === "clippingAncestors" ? w5(V, this._c) : [].concat(C), L], e = i[0], d = i.reduce((t, u) => {
8558
8558
  const r = K1(V, u, A);
8559
8559
  return t.top = A1(r.top, t.top), t.right = a1(r.right, t.right), t.bottom = a1(r.bottom, t.bottom), t.left = A1(r.left, t.left), t;
8560
8560
  }, K1(V, e, A));
@@ -8566,21 +8566,21 @@ function y5(H) {
8566
8566
  };
8567
8567
  }
8568
8568
  function P5(H) {
8569
- return A2(H);
8569
+ return i2(H);
8570
8570
  }
8571
8571
  function T5(H, V, C) {
8572
- const M = $(V), A = C1(V), L = C === "fixed", i = Z1(H, !0, L, V);
8572
+ const L = $(V), A = C1(V), M = C === "fixed", i = Z1(H, !0, M, V);
8573
8573
  let e = {
8574
8574
  scrollLeft: 0,
8575
8575
  scrollTop: 0
8576
8576
  };
8577
8577
  const d = X(0);
8578
- if (M || !M && !L)
8579
- if ((J(V) !== "body" || S1(A)) && (e = g1(V)), M) {
8580
- const t = Z1(V, !0, L, V);
8578
+ if (L || !L && !M)
8579
+ if ((J(V) !== "body" || S1(A)) && (e = g1(V)), L) {
8580
+ const t = Z1(V, !0, M, V);
8581
8581
  d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
8582
8582
  } else
8583
- A && (d.x = d2(A));
8583
+ A && (d.x = t2(A));
8584
8584
  return {
8585
8585
  x: i.left + e.scrollLeft - d.x,
8586
8586
  y: i.top + e.scrollTop - d.y,
@@ -8591,28 +8591,28 @@ function T5(H, V, C) {
8591
8591
  function j1(H, V) {
8592
8592
  return !$(H) || Q(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8593
8593
  }
8594
- function m2(H, V) {
8594
+ function l2(H, V) {
8595
8595
  const C = I(H);
8596
8596
  if (!$(H))
8597
8597
  return C;
8598
- let M = j1(H, V);
8599
- for (; M && c5(M) && Q(M).position === "static"; )
8600
- M = j1(M, V);
8601
- return M && (J(M) === "html" || J(M) === "body" && Q(M).position === "static" && !E1(M)) ? C : M || O5(H) || C;
8598
+ let L = j1(H, V);
8599
+ for (; L && c5(L) && Q(L).position === "static"; )
8600
+ L = j1(L, V);
8601
+ return L && (J(L) === "html" || J(L) === "body" && Q(L).position === "static" && !E1(L)) ? C : L || O5(H) || C;
8602
8602
  }
8603
8603
  const v5 = async function(H) {
8604
8604
  let {
8605
8605
  reference: V,
8606
8606
  floating: C,
8607
- strategy: M
8607
+ strategy: L
8608
8608
  } = H;
8609
- const A = this.getOffsetParent || m2, L = this.getDimensions;
8609
+ const A = this.getOffsetParent || l2, M = this.getDimensions;
8610
8610
  return {
8611
- reference: T5(V, await A(C), M),
8611
+ reference: T5(V, await A(C), L),
8612
8612
  floating: {
8613
8613
  x: 0,
8614
8614
  y: 0,
8615
- ...await L(C)
8615
+ ...await M(C)
8616
8616
  }
8617
8617
  };
8618
8618
  };
@@ -8623,7 +8623,7 @@ const R5 = {
8623
8623
  convertOffsetParentRelativeRectToViewportRelativeRect: h5,
8624
8624
  getDocumentElement: C1,
8625
8625
  getClippingRect: y5,
8626
- getOffsetParent: m2,
8626
+ getOffsetParent: l2,
8627
8627
  getElementRects: v5,
8628
8628
  getClientRects: g5,
8629
8629
  getDimensions: P5,
@@ -8631,25 +8631,25 @@ const R5 = {
8631
8631
  isElement: Y,
8632
8632
  isRTL: F5
8633
8633
  }, x5 = (H, V, C) => {
8634
- const M = /* @__PURE__ */ new Map(), A = {
8634
+ const L = /* @__PURE__ */ new Map(), A = {
8635
8635
  platform: R5,
8636
8636
  ...C
8637
- }, L = {
8637
+ }, M = {
8638
8638
  ...A.platform,
8639
- _c: M
8639
+ _c: L
8640
8640
  };
8641
8641
  return n5(H, V, {
8642
8642
  ...A,
8643
- platform: L
8643
+ platform: M
8644
8644
  });
8645
8645
  };
8646
- var l2 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(l2 || {}), j = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(j || {}), o2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(o2 || {});
8647
- async function D5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e) {
8646
+ var o2 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(o2 || {}), j = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(j || {}), n2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(n2 || {});
8647
+ async function D5({ value: H }, { value: V }, { value: C }, L, A, M, i = 300, e) {
8648
8648
  !H || !V || x5(H, V, {
8649
- placement: M,
8649
+ placement: L,
8650
8650
  middleware: [
8651
8651
  S5(A),
8652
- s5({ padding: L }),
8652
+ s5({ padding: M }),
8653
8653
  r5({ element: C }),
8654
8654
  a5(),
8655
8655
  Z5()
@@ -8686,7 +8686,7 @@ async function D5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e)
8686
8686
  const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8687
8687
  __name: "RTooltip",
8688
8688
  props: {
8689
- placement: { default: l2.Top },
8689
+ placement: { default: o2.Top },
8690
8690
  text: { default: "" },
8691
8691
  dark: { type: Boolean, default: !0 },
8692
8692
  light: { type: Boolean, default: !1 },
@@ -8703,16 +8703,16 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8703
8703
  resizable: { type: Boolean, default: !0 },
8704
8704
  triggerClass: { default: "" },
8705
8705
  tooltipClass: { default: "" },
8706
- type: { default: o2.Tooltip }
8706
+ type: { default: n2.Tooltip }
8707
8707
  },
8708
8708
  emits: ["show", "hide"],
8709
8709
  setup(H, { emit: V }) {
8710
- const C = H, M = V, A = E(), L = E(), i = E();
8710
+ const C = H, L = V, A = E(), M = E(), i = E();
8711
8711
  async function e() {
8712
- a(), L.value.style.display = "block", M("show"), t();
8712
+ a(), M.value.style.display = "block", L("show"), t();
8713
8713
  }
8714
8714
  function d() {
8715
- C.disabled || !L.value || (L.value.style.display = "", M("hide"));
8715
+ C.disabled || !M.value || (M.value.style.display = "", L("hide"));
8716
8716
  }
8717
8717
  function t() {
8718
8718
  C.autoHide && setTimeout(() => {
@@ -8720,20 +8720,20 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8720
8720
  }, C.hideDelay);
8721
8721
  }
8722
8722
  function u() {
8723
- C.disabled || C.triggers.includes(j.Click) && (L.value.style.display === "block" ? d() : e());
8723
+ C.disabled || C.triggers.includes(j.Click) && (M.value.style.display === "block" ? d() : e());
8724
8724
  }
8725
8725
  function r() {
8726
8726
  C.disabled || C.triggers.includes(j.Hover) && e();
8727
8727
  }
8728
8728
  function n() {
8729
- C.disabled || (L.value.style.display === "" && C.triggers.includes(j.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(j.Hover) && d());
8729
+ C.disabled || (M.value.style.display === "" && C.triggers.includes(j.Hover) ? e() : M.value.style.display !== "" && C.triggers.includes(j.Hover) && d());
8730
8730
  }
8731
8731
  function l() {
8732
8732
  C.triggers.includes(j.Hover) && a();
8733
8733
  }
8734
8734
  function a() {
8735
8735
  const { placement: g, offset: w, padding: P, disabled: T, showDelay: D, type: F } = C;
8736
- T || D5(A, L, i, g, w, P, D, F);
8736
+ T || D5(A, M, i, g, w, P, D, F);
8737
8737
  }
8738
8738
  const B = k(() => ({
8739
8739
  "r-tooltip": !0,
@@ -8742,20 +8742,22 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8742
8742
  }));
8743
8743
  return window.onresize = () => {
8744
8744
  C.resizable && a();
8745
- }, S2(
8745
+ }, document.addEventListener("scroll", () => {
8746
+ a();
8747
+ }), q1(
8746
8748
  () => {
8747
8749
  C.disabled || (C.shown && C.triggers.includes(j.Manual) ? e() : !C.shown && C.triggers.includes(j.Manual) && d());
8748
8750
  },
8749
8751
  { flush: "post" }
8750
8752
  // this is important to avoid infinite loop & for fire on mounted
8751
- ), q1(() => {
8753
+ ), Y1(() => {
8752
8754
  M5(
8753
8755
  A,
8754
8756
  () => {
8755
8757
  C.outsideClick && d();
8756
8758
  },
8757
8759
  {
8758
- ignore: [L.value]
8760
+ ignore: [M.value]
8759
8761
  }
8760
8762
  );
8761
8763
  }), (g, w) => (m(), o(H1, null, [
@@ -8787,7 +8789,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8787
8789
  S("div", {
8788
8790
  id: "tooltip",
8789
8791
  ref_key: "tooltip",
8790
- ref: L,
8792
+ ref: M,
8791
8793
  class: p([B.value, g.tooltipClass]),
8792
8794
  role: "tooltip"
8793
8795
  }, [
@@ -8859,7 +8861,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8859
8861
  },
8860
8862
  emits: ["update:modelValue"],
8861
8863
  setup(H, { emit: V }) {
8862
- const C = H, M = V, A = E({ value: "", label: "" }), L = d1([]), i = E(!1), e = E(""), d = E(), t = E(), u = E();
8864
+ const C = H, L = V, A = E({ value: "", label: "" }), M = d1([]), i = E(!1), e = E(""), d = E(), t = E(), u = E();
8863
8865
  function r(c, f) {
8864
8866
  var Z, y, O;
8865
8867
  if (c.stopPropagation(), !C.disabled) {
@@ -8878,7 +8880,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8878
8880
  var O;
8879
8881
  if (c.stopPropagation(), y(), !f.disabled) {
8880
8882
  if (C.multiple || C.taggable) {
8881
- L.find((_) => _.value === f.value) ? L.splice(L.indexOf(f), 1) : L.push(f), e.value = "", C.searchable && ((O = t.value) == null || O.focus());
8883
+ M.find((_) => _.value === f.value) ? M.splice(M.indexOf(f), 1) : M.push(f), e.value = "", C.searchable && ((O = t.value) == null || O.focus());
8882
8884
  return;
8883
8885
  }
8884
8886
  a(c, f), C.closeOnSelect && (Z(), n());
@@ -8886,17 +8888,17 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8886
8888
  }
8887
8889
  function a(c, f) {
8888
8890
  if (A.value.value === f.value) {
8889
- A.value = {}, e.value = "", M("update:modelValue", "");
8891
+ A.value = {}, e.value = "", L("update:modelValue", "");
8890
8892
  return;
8891
8893
  }
8892
- e.value = f.label, A.value = f, r(c), M("update:modelValue", f);
8894
+ e.value = f.label, A.value = f, r(c), L("update:modelValue", f);
8893
8895
  }
8894
8896
  function B(c, f, Z) {
8895
8897
  if (c instanceof KeyboardEvent && c.key !== "Backspace" || e.value !== "")
8896
8898
  return;
8897
8899
  c.stopPropagation(), Z();
8898
- const y = L.findIndex((O) => O.value === f.value);
8899
- L.splice(y, 1);
8900
+ const y = M.findIndex((O) => O.value === f.value);
8901
+ M.splice(y, 1);
8900
8902
  }
8901
8903
  function g(c, f) {
8902
8904
  var O;
@@ -8906,22 +8908,22 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8906
8908
  const Z = e.value;
8907
8909
  if (Z === "")
8908
8910
  return;
8909
- C.options.find((_) => _.label === Z) || (L.push({ value: Z, label: Z }), e.value = "", (O = t.value) == null || O.focus());
8911
+ C.options.find((_) => _.label === Z) || (M.push({ value: Z, label: Z }), e.value = "", (O = t.value) == null || O.focus());
8910
8912
  }
8911
8913
  function w(c) {
8912
- return C.multiple || C.taggable ? L.find((f) => f.value === c.value) : A.value.value === c.value;
8914
+ return C.multiple || C.taggable ? M.find((f) => f.value === c.value) : A.value.value === c.value;
8913
8915
  }
8914
8916
  const P = k(() => !C.searchable || A.value.label === e.value ? C.options : C.options.filter((f) => f.label.toLowerCase().includes(e.value.toLowerCase()))), T = k(() => !C.searchable);
8915
8917
  function D() {
8916
- C.modelValue ? C.multiple ? L.push(C.modelValue) : (A.value = C.modelValue, e.value = C.modelValue.label) : (A.value = {}, L.splice(0, L.length));
8918
+ C.modelValue ? C.multiple ? M.push(C.modelValue) : (A.value = C.modelValue, e.value = C.modelValue.label) : (A.value = {}, M.splice(0, M.length));
8917
8919
  }
8918
8920
  function F(c) {
8919
8921
  C.searchable && c();
8920
8922
  }
8921
- return q1(() => {
8923
+ return Y1(() => {
8922
8924
  D();
8923
- }), G(L, (c) => {
8924
- M("update:modelValue", c);
8925
+ }), G(M, (c) => {
8926
+ L("update:modelValue", c);
8925
8927
  }), G(() => C.modelValue, (c) => {
8926
8928
  D();
8927
8929
  }), (c, f) => (m(), o("div", {
@@ -8970,11 +8972,11 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8970
8972
  ], 2)) : s("", !0),
8971
8973
  C.taggable ? (m(), o("div", I5, [
8972
8974
  h(c.$slots, "tags", {
8973
- options: L,
8975
+ options: M,
8974
8976
  removeOption: B,
8975
8977
  updatePosition: y
8976
8978
  }, () => [
8977
- (m(!0), o(H1, null, M1(L, (O, _) => (m(), R(X2, {
8979
+ (m(!0), o(H1, null, M1(M, (O, _) => (m(), R(X2, {
8978
8980
  key: _,
8979
8981
  "append-icon": "mdiClose",
8980
8982
  class: "r-dropdown__tags__chip",
@@ -8986,9 +8988,9 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8986
8988
  ])
8987
8989
  ])) : s("", !0),
8988
8990
  C.multiple ? (m(), o("div", Q5, [
8989
- (m(!0), o(H1, null, M1(L, (O, _) => (m(), o("p", { key: _ }, b(`${O.label},`), 1))), 128))
8991
+ (m(!0), o(H1, null, M1(M, (O, _) => (m(), o("p", { key: _ }, b(`${O.label},`), 1))), 128))
8990
8992
  ])) : s("", !0),
8991
- Y1(S("input", {
8993
+ X1(S("input", {
8992
8994
  id: C.id,
8993
8995
  ref_key: "input",
8994
8996
  ref: t,
@@ -9003,7 +9005,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9003
9005
  type: "text",
9004
9006
  onInput: (O) => F(y),
9005
9007
  onKeydown: [
9006
- W1((O) => B(O, L[L.length - 1], y), ["backspace"]),
9008
+ W1((O) => B(O, M[M.length - 1], y), ["backspace"]),
9007
9009
  W1((O) => g(O, y), ["enter"])
9008
9010
  ]
9009
9011
  }, null, 42, G5), [
@@ -9080,7 +9082,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9080
9082
  ]))
9081
9083
  ], 512));
9082
9084
  }
9083
- }), Y5 = ["id", "for"], n2 = /* @__PURE__ */ v({
9085
+ }), Y5 = ["id", "for"], r2 = /* @__PURE__ */ v({
9084
9086
  __name: "RLabel",
9085
9087
  props: {
9086
9088
  id: { default: "" },
@@ -9089,7 +9091,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9089
9091
  },
9090
9092
  setup(H) {
9091
9093
  const V = H;
9092
- return (C, M) => (m(), o("label", {
9094
+ return (C, L) => (m(), o("label", {
9093
9095
  id: V.id,
9094
9096
  class: "r-label",
9095
9097
  for: V.for
@@ -9125,18 +9127,22 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9125
9127
  },
9126
9128
  emits: ["update:modelValue"],
9127
9129
  setup(H, { emit: V }) {
9128
- const C = H, M = V, A = k(() => ({
9130
+ const C = H, L = V, A = k(() => ({
9129
9131
  "r-dialog": !0,
9130
9132
  "r-dialog--block": C.block,
9131
9133
  [`${C.class}`]: !0
9132
- })), L = k(() => ({
9134
+ })), M = k(() => ({
9133
9135
  width: C.width,
9134
9136
  height: C.height
9135
9137
  }));
9136
9138
  function i(e) {
9137
- C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
9139
+ C.outsideClick && e.target === e.currentTarget && L("update:modelValue", !1);
9138
9140
  }
9139
- return (e, d) => Y1((m(), o("div", {
9141
+ return q1(() => {
9142
+ C.modelValue ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
9143
+ }), window.addEventListener("keydown", (e) => {
9144
+ e.key === "Escape" && C.modelValue && C.outsideClick && L("update:modelValue", !1);
9145
+ }), (e, d) => X1((m(), o("div", {
9140
9146
  class: p(["r-modal-overlay", e.overlayClass]),
9141
9147
  onClick: r1(i, ["stop"])
9142
9148
  }, [
@@ -9145,7 +9151,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9145
9151
  class: p(A.value),
9146
9152
  open: C.modelValue,
9147
9153
  role: "dialog",
9148
- style: x1(L.value)
9154
+ style: x1(M.value)
9149
9155
  }, [
9150
9156
  S("div", C3, [
9151
9157
  h(e.$slots, "header"),
@@ -9179,8 +9185,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9179
9185
  },
9180
9186
  emits: ["update:modelValue"],
9181
9187
  setup(H, { emit: V }) {
9182
- const C = H, M = V;
9183
- return (A, L) => (m(), o("div", {
9188
+ const C = H, L = V;
9189
+ return (A, M) => (m(), o("div", {
9184
9190
  class: p(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
9185
9191
  "data-open": C.modelValue
9186
9192
  }, [
@@ -9194,7 +9200,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9194
9200
  key: 0,
9195
9201
  class: p(["r-sidebar__trigger", [C.triggerClass]]),
9196
9202
  "data-open": C.modelValue,
9197
- onClick: L[0] || (L[0] = (i) => M("update:modelValue", !C.modelValue))
9203
+ onClick: M[0] || (M[0] = (i) => L("update:modelValue", !C.modelValue))
9198
9204
  }, [
9199
9205
  h(A.$slots, "trigger", {}, () => [
9200
9206
  R1(" > ")
@@ -9218,12 +9224,12 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9218
9224
  },
9219
9225
  emits: ["action", "update:modelValue"],
9220
9226
  setup(H, { emit: V }) {
9221
- const C = H, M = V;
9227
+ const C = H, L = V;
9222
9228
  G(
9223
9229
  () => C.modelValue,
9224
9230
  () => {
9225
9231
  C.timeout > 0 && C.modelValue && setTimeout(() => {
9226
- M("update:modelValue", !1);
9232
+ L("update:modelValue", !1);
9227
9233
  }, C.timeout);
9228
9234
  },
9229
9235
  {
@@ -9236,7 +9242,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9236
9242
  [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
9237
9243
  [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
9238
9244
  [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0
9239
- })), L = k(() => ({
9245
+ })), M = k(() => ({
9240
9246
  success: "mdiCheckCircle",
9241
9247
  error: "mdiAlertCircle",
9242
9248
  warning: "mdiAlert",
@@ -9249,7 +9255,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9249
9255
  C.variant ? (m(), R(x, {
9250
9256
  key: 0,
9251
9257
  class: "r-snackbar__icon",
9252
- name: L.value
9258
+ name: M.value
9253
9259
  }, null, 8, ["name"])) : s("", !0)
9254
9260
  ]),
9255
9261
  S("div", t3, b(C.text), 1),
@@ -9289,16 +9295,16 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9289
9295
  },
9290
9296
  emits: ["update:modelValue"],
9291
9297
  setup(H, { emit: V }) {
9292
- const C = H, M = V, A = d1({
9298
+ const C = H, L = V, A = d1({
9293
9299
  checked: !1
9294
- }), L = k(() => ({
9300
+ }), M = k(() => ({
9295
9301
  "r-switch": !0,
9296
9302
  "r-switch--disabled": C.disabled,
9297
9303
  [`r-switch--${C.size}`]: C.size,
9298
9304
  "r-switch--error": C.errorMsg
9299
9305
  }));
9300
9306
  function i(e) {
9301
- C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
9307
+ C.disabled || (A.checked = e.target.checked, L("update:modelValue", A.checked));
9302
9308
  }
9303
9309
  return G(
9304
9310
  () => C.modelValue,
@@ -9317,7 +9323,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9317
9323
  }])
9318
9324
  }, [
9319
9325
  S("div", {
9320
- class: p(L.value)
9326
+ class: p(M.value)
9321
9327
  }, [
9322
9328
  S("input", {
9323
9329
  id: C.id,
@@ -9366,26 +9372,26 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9366
9372
  },
9367
9373
  emits: ["update:modelValue", "click:icon"],
9368
9374
  setup(H, { emit: V }) {
9369
- const C = H, M = V, A = k(() => ({
9375
+ const C = H, L = V, A = k(() => ({
9370
9376
  "r-tab-item": !0,
9371
9377
  [`r-tab-item--${C.variant}`]: !0,
9372
9378
  "r-tab-item--tile": C.tile,
9373
9379
  "r-tab-item--block": C.block
9374
- })), L = k(() => ({
9380
+ })), M = k(() => ({
9375
9381
  color: C.color
9376
9382
  }));
9377
9383
  function i(d) {
9378
- M("update:modelValue", d);
9384
+ L("update:modelValue", d);
9379
9385
  }
9380
9386
  function e() {
9381
- M("click:icon");
9387
+ L("click:icon");
9382
9388
  }
9383
9389
  return (d, t) => (m(), o("button", {
9384
9390
  "aria-disabled": C.disabled,
9385
9391
  "aria-selected": C.modelValue === C.id,
9386
9392
  class: p(A.value),
9387
9393
  disabled: C.disabled,
9388
- style: x1(L.value),
9394
+ style: x1(M.value),
9389
9395
  onClick: t[0] || (t[0] = r1((u) => i(C.id), ["stop"]))
9390
9396
  }, [
9391
9397
  h(d.$slots, "prepend", {}, () => [
@@ -9427,7 +9433,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9427
9433
  },
9428
9434
  emits: ["update:modelValue", "click:icon"],
9429
9435
  setup(H, { emit: V }) {
9430
- const C = H, M = V, A = E(C.modelValue || C.tabs[0].id), L = k(() => ({
9436
+ const C = H, L = V, A = E(C.modelValue || C.tabs[0].id), M = k(() => ({
9431
9437
  "r-tabs": !0,
9432
9438
  "r-tabs--block": C.block,
9433
9439
  "r-tabs--tile": C.tile,
@@ -9436,14 +9442,14 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9436
9442
  G(
9437
9443
  () => A.value,
9438
9444
  () => {
9439
- M("update:modelValue", A.value);
9445
+ L("update:modelValue", A.value);
9440
9446
  }
9441
9447
  );
9442
9448
  function i() {
9443
- M("click:icon");
9449
+ L("click:icon");
9444
9450
  }
9445
9451
  return (e, d) => (m(), o("div", {
9446
- class: p(L.value)
9452
+ class: p(M.value)
9447
9453
  }, [
9448
9454
  h(e.$slots, "default", {}, () => [
9449
9455
  (m(!0), o(H1, null, M1(C.tabs, (t, u) => (m(), R(s3, {
@@ -9487,11 +9493,11 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9487
9493
  },
9488
9494
  emits: ["update:modelValue"],
9489
9495
  setup(H, { emit: V }) {
9490
- const C = H, M = V, A = d1({
9496
+ const C = H, L = V, A = d1({
9491
9497
  value: ""
9492
9498
  });
9493
- function L(i) {
9494
- M("update:modelValue", i.target.value);
9499
+ function M(i) {
9500
+ L("update:modelValue", i.target.value);
9495
9501
  }
9496
9502
  return G(
9497
9503
  () => C.modelValue,
@@ -9502,7 +9508,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9502
9508
  immediate: !0
9503
9509
  }
9504
9510
  ), (i, e) => (m(), o("div", c3, [
9505
- C.label ? (m(), R(n2, {
9511
+ C.label ? (m(), R(r2, {
9506
9512
  key: 0,
9507
9513
  id: "textarea",
9508
9514
  class: "r-textarea__label",
@@ -9518,7 +9524,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9518
9524
  disabled: C.disabled,
9519
9525
  placeholder: C.placeholder,
9520
9526
  value: A.value,
9521
- onInput: L
9527
+ onInput: M
9522
9528
  }, null, 42, O3),
9523
9529
  C.hideDetails ? s("", !0) : (m(), o("div", p3, [
9524
9530
  C.errorMsg ? (m(), o("p", f3, b(C.errorMsg), 1)) : (m(), o("p", h3, b(C.hint), 1))
@@ -9564,7 +9570,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9564
9570
  "click:clear"
9565
9571
  ],
9566
9572
  setup(H, { emit: V }) {
9567
- const C = H, M = V, A = E(), L = d1({
9573
+ const C = H, L = V, A = E(), M = d1({
9568
9574
  value: ""
9569
9575
  }), i = E(C.type), e = {
9570
9576
  password: "mdiLock",
@@ -9573,7 +9579,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9573
9579
  url: "mdiLink",
9574
9580
  number: "mdiNumeric",
9575
9581
  text: ""
9576
- }, d = E(!1), t = k(() => !!L.value), u = k(() => L.value.length > 0), r = k(() => {
9582
+ }, d = E(!1), t = k(() => !!M.value), u = k(() => M.value.length > 0), r = k(() => {
9577
9583
  var Z;
9578
9584
  return (Z = C.errorMsg) == null ? void 0 : Z.length;
9579
9585
  }), n = k(() => C.clearable && u.value), l = k(() => {
@@ -9603,24 +9609,24 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9603
9609
  return Z === "none" ? "" : r.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(y) ? "mdiClose" : y === "password" && i.value === "password" ? "mdiEyeOutline" : y === "password" && i.value === "text" ? "mdiEyeOffOutline" : Z;
9604
9610
  });
9605
9611
  function P(Z) {
9606
- d.value = !0, M("focus", Z);
9612
+ d.value = !0, L("focus", Z);
9607
9613
  }
9608
9614
  function T(Z) {
9609
- d.value = !1, M("blur", Z);
9615
+ d.value = !1, L("blur", Z);
9610
9616
  }
9611
9617
  function D(Z) {
9612
- L.value = Z.target.value, M("input", Z);
9618
+ M.value = Z.target.value, L("input", Z);
9613
9619
  }
9614
9620
  function F() {
9615
9621
  var Z;
9616
9622
  if (n.value) {
9617
- L.value = "", (Z = A.value) == null || Z.focus(), M("click:clear", {
9618
- value: i.value === "number" ? +L.value : L.value
9623
+ M.value = "", (Z = A.value) == null || Z.focus(), L("click:clear", {
9624
+ value: i.value === "number" ? +M.value : M.value
9619
9625
  });
9620
9626
  return;
9621
9627
  }
9622
- M("click:icon", {
9623
- value: i.value === "number" ? +L.value : L.value
9628
+ L("click:icon", {
9629
+ value: i.value === "number" ? +M.value : M.value
9624
9630
  }), i.value === "password" && c();
9625
9631
  }
9626
9632
  function c() {
@@ -9633,21 +9639,21 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9633
9639
  return G(
9634
9640
  () => C.modelValue,
9635
9641
  (Z) => {
9636
- L.value = Z;
9642
+ M.value = Z;
9637
9643
  },
9638
9644
  {
9639
9645
  immediate: !0
9640
9646
  }
9641
9647
  ), G(
9642
- () => L.value,
9648
+ () => M.value,
9643
9649
  (Z) => {
9644
- M(
9650
+ L(
9645
9651
  "update:modelValue",
9646
9652
  i.value === "number" ? +Z : Z
9647
9653
  );
9648
9654
  }
9649
9655
  ), (Z, y) => (m(), o("div", g3, [
9650
- C.label ? (m(), R(n2, {
9656
+ C.label ? (m(), R(r2, {
9651
9657
  key: 0,
9652
9658
  id: C.id,
9653
9659
  class: "r-textfield__label",
@@ -9677,7 +9683,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9677
9683
  readonly: C.readonly,
9678
9684
  role: C.role,
9679
9685
  type: i.value,
9680
- value: L.value,
9686
+ value: M.value,
9681
9687
  onBlur: T,
9682
9688
  onFocus: P,
9683
9689
  onInput: D
@@ -9709,25 +9715,25 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9709
9715
  },
9710
9716
  setup(H) {
9711
9717
  const V = H;
9712
- return (C, M) => {
9718
+ return (C, L) => {
9713
9719
  const A = f2("router-link");
9714
9720
  return m(), o("div", P3, [
9715
- (m(!0), o(H1, null, M1(V.items, (L, i) => (m(), o("div", {
9721
+ (m(!0), o(H1, null, M1(V.items, (M, i) => (m(), o("div", {
9716
9722
  key: i,
9717
9723
  class: "r-breadcrumb__item"
9718
9724
  }, [
9719
9725
  q(A, {
9720
9726
  class: "r-breadcrumb__link",
9721
- to: L.to
9727
+ to: M.to
9722
9728
  }, {
9723
9729
  default: n1(() => [
9724
9730
  h(C.$slots, "item-icon", {}, () => [
9725
- L.icon ? (m(), R(x, {
9731
+ M.icon ? (m(), R(x, {
9726
9732
  key: 0,
9727
- name: L.icon
9733
+ name: M.icon
9728
9734
  }, null, 8, ["name"])) : s("", !0)
9729
9735
  ]),
9730
- L.onlyIcon ? s("", !0) : (m(), o("span", T3, b(L.title), 1))
9736
+ M.onlyIcon ? s("", !0) : (m(), o("span", T3, b(M.title), 1))
9731
9737
  ]),
9732
9738
  _: 2
9733
9739
  }, 1032, ["to"]),
@@ -9768,9 +9774,9 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9768
9774
  },
9769
9775
  emits: ["update:page"],
9770
9776
  setup(H, { emit: V }) {
9771
- const C = H, M = V, A = k(() => Math.ceil(C.totalItems / C.perPage));
9772
- function L(i) {
9773
- i < 1 || i > A.value || M("update:page", i);
9777
+ const C = H, L = V, A = k(() => Math.ceil(C.totalItems / C.perPage));
9778
+ function M(i) {
9779
+ i < 1 || i > A.value || L("update:page", i);
9774
9780
  }
9775
9781
  return (i, e) => (m(), o("div", v3, [
9776
9782
  S("div", F3, [
@@ -9783,7 +9789,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9783
9789
  S("button", {
9784
9790
  class: "r-pagination__paginator__prev",
9785
9791
  disabled: C.page === 1,
9786
- onClick: e[0] || (e[0] = (d) => L(+C.page - 1))
9792
+ onClick: e[0] || (e[0] = (d) => M(+C.page - 1))
9787
9793
  }, [
9788
9794
  h(i.$slots, "prev", {}, () => [
9789
9795
  (m(), o("svg", {
@@ -9808,13 +9814,13 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9808
9814
  value: C.page,
9809
9815
  onBlur: e[1] || (e[1] = (d) => {
9810
9816
  var t;
9811
- return L(+((t = d == null ? void 0 : d.target) == null ? void 0 : t.value));
9817
+ return M(+((t = d == null ? void 0 : d.target) == null ? void 0 : t.value));
9812
9818
  })
9813
9819
  }, null, 40, Q3),
9814
9820
  S("button", {
9815
9821
  class: "r-pagination__paginator__next",
9816
9822
  disabled: C.page === A.value,
9817
- onClick: e[2] || (e[2] = (d) => L(+C.page + 1))
9823
+ onClick: e[2] || (e[2] = (d) => M(+C.page + 1))
9818
9824
  }, [
9819
9825
  h(i.$slots, "next", {}, () => [
9820
9826
  (m(), o("svg", {
@@ -9843,7 +9849,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9843
9849
  },
9844
9850
  setup(H) {
9845
9851
  const V = H;
9846
- return (C, M) => (m(), o("progress", {
9852
+ return (C, L) => (m(), o("progress", {
9847
9853
  "aria-valuemax": 100,
9848
9854
  class: "r-progressbar",
9849
9855
  max: 100,
@@ -9865,21 +9871,21 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9865
9871
  },
9866
9872
  emits: ["update:modelValue"],
9867
9873
  setup(H, { emit: V }) {
9868
- const C = H, M = V, A = E(C.as ?? "div"), L = E(C.modelValue ?? []), i = k(() => C.selectedClass);
9874
+ const C = H, L = V, A = E(C.as ?? "div"), M = E(C.modelValue ?? []), i = k(() => C.selectedClass);
9869
9875
  k1(`${w1}:selectedClass`, i.value);
9870
9876
  function e(t) {
9871
- return L.value.includes(t);
9877
+ return M.value.includes(t);
9872
9878
  }
9873
9879
  k1(`${w1}:isSelected`, e);
9874
9880
  function d(t, u) {
9875
- C.disabled || C.mandatory && L.value.length === 1 && u || C.max && L.value.length === C.max && u || (C.multiple ? u ? L.value.push(t) : L.value = L.value.filter((r) => r !== t) : L.value = u ? [t] : [], M("update:modelValue", L.value));
9881
+ C.disabled || C.mandatory && M.value.length === 1 && u || C.max && M.value.length === C.max && u || (C.multiple ? u ? M.value.push(t) : M.value = M.value.filter((r) => r !== t) : M.value = u ? [t] : [], L("update:modelValue", M.value));
9876
9882
  }
9877
9883
  return k1(`${w1}:select`, d), (t, u) => (m(), R(h2(A.value), null, {
9878
9884
  default: n1(() => [
9879
9885
  h(t.$slots, "default", {
9880
9886
  isSelected: e,
9881
9887
  select: d,
9882
- selected: L.value
9888
+ selected: M.value
9883
9889
  })
9884
9890
  ]),
9885
9891
  _: 3
@@ -9893,12 +9899,12 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9893
9899
  selectedClass: { default: "" }
9894
9900
  },
9895
9901
  setup(H) {
9896
- const V = H, C = B1(`${y1}:isSelected`), M = B1(`${y1}:selectedClass`, ""), A = k(() => C(V.value) && [M, V.selectedClass]), L = B1(`${y1}:select`);
9902
+ const V = H, C = B1(`${y1}:isSelected`), L = B1(`${y1}:selectedClass`, ""), A = k(() => C(V.value) && [L, V.selectedClass]), M = B1(`${y1}:select`);
9897
9903
  function i() {
9898
- V.disabled || L(V.value, !C(V.value));
9904
+ V.disabled || M(V.value, !C(V.value));
9899
9905
  }
9900
9906
  function e() {
9901
- V.disabled || L(V.value, !0);
9907
+ V.disabled || M(V.value, !0);
9902
9908
  }
9903
9909
  return (d, t) => h(d.$slots, "default", {
9904
9910
  disabled: V.disabled,
@@ -9923,7 +9929,7 @@ export {
9923
9929
  x as RIcon,
9924
9930
  a0 as RItem,
9925
9931
  r0 as RItemGroup,
9926
- n2 as RLabel,
9932
+ r2 as RLabel,
9927
9933
  M0 as RModal,
9928
9934
  o0 as RPagination,
9929
9935
  n0 as RProgressbar,