@rocketui/vue 0.2.39-alpha.9 → 0.2.40

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,5 +1,5 @@
1
- import { defineComponent as x, openBlock as m, createElementBlock as u, createElementVNode as S, unref as J, reactive as Z1, Fragment as e1, renderList as o1, normalizeClass as O, renderSlot as p, toDisplayString as v, createVNode as j, computed as h, createCommentVNode as g, mergeProps as Y1, createBlock as _, watch as G, getCurrentScope as u2, onScopeDispose as S2, ref as I, watchEffect as s2, onMounted as J1, Teleport as c2, withCtx as h1, withDirectives as C2, withModifiers as n1, withKeys as Q1, vModelText as O2, createTextVNode as u1, onUnmounted as p2, normalizeStyle as E1, vShow as f2, resolveComponent as h2, provide as c1, resolveDynamicComponent as g2, inject as O1 } from "vue";
2
- const k2 = {
1
+ import { defineComponent as R, openBlock as m, createElementBlock as u, createElementVNode as S, unref as J, reactive as u1, Fragment as d1, renderList as n1, normalizeClass as O, renderSlot as p, toDisplayString as v, createVNode as q, computed as h, createCommentVNode as g, mergeProps as J1, createBlock as _, watch as $, getCurrentScope as S2, onScopeDispose as s2, ref as Q, watchEffect as c2, onMounted as C2, Teleport as O2, withCtx as g1, withDirectives as H2, withModifiers as r1, withKeys as G1, vModelText as p2, createTextVNode as S1, onUnmounted as f2, normalizeStyle as _1, vShow as h2, resolveComponent as g2, provide as O1, resolveDynamicComponent as k2, inject as p1 } from "vue";
2
+ const B2 = {
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",
5
5
  mdiAbjadArabic: "M12 4C10.08 4 8.5 5.58 8.5 7.5C8.5 8.43 8.88 9.28 9.5 9.91C7.97 10.91 7 12.62 7 14.5C7 17.53 9.47 20 12.5 20C14.26 20 16 19.54 17.5 18.66L16.5 16.93C15.28 17.63 13.9 18 12.5 18C10.56 18 9 16.45 9 14.5C9 12.91 10.06 11.53 11.59 11.12L16.8 9.72L16.28 7.79L11.83 9C11.08 8.9 10.5 8.28 10.5 7.5C10.5 6.66 11.16 6 12 6C12.26 6 12.5 6.07 12.75 6.2L13.75 4.47C13.22 4.16 12.61 4 12 4Z",
@@ -7296,7 +7296,7 @@ const k2 = {
7296
7296
  mdiZodiacScorpio: "M17.71,15.29L16.29,16.71L17.59,18H16A2,2 0 0,1 14,16V6A3,3 0 0,0 11,3C10.25,3 9.55,3.29 9,3.78C7.86,2.76 6.14,2.76 5,3.78C4.45,3.28 3.74,3 3,3V5A1,1 0 0,1 4,6V16H6V6A1,1 0 0,1 7,5A1,1 0 0,1 8,6V16H10V6A1,1 0 0,1 11,5A1,1 0 0,1 12,6V16A4,4 0 0,0 16,20H17.59L16.29,21.29L17.71,22.71L21.41,19L17.71,15.29Z",
7297
7297
  mdiZodiacTaurus: "M15.59,9C17.7,7.74 19,5.46 19,3H17A5,5 0 0,1 12,8A5,5 0 0,1 7,3H5C5,5.46 6.3,7.74 8.41,9C5.09,11 4,15.28 6,18.6C7.97,21.92 12.27,23 15.59,21C18.91,19.04 20,14.74 18,11.42C17.42,10.43 16.58,9.59 15.59,9M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20Z",
7298
7298
  mdiZodiacVirgo: "M18.5,19.13C20,17.77 20,15.18 20,14A4,4 0 0,0 16,10C15.3,10 14.6,10.2 14,10.56V6A3,3 0 0,0 11,3C10.25,3 9.55,3.29 9,3.78C7.86,2.76 6.14,2.76 5,3.78C4.45,3.28 3.74,3 3,3V5A1,1 0 0,1 4,6V16H6V6A1,1 0 0,1 7,5A1,1 0 0,1 8,6V16H10V6A1,1 0 0,1 11,5A1,1 0 0,1 12,6V14C12,15.18 12,17.77 13.5,19.13C12.72,19.54 11.88,19.84 11,20V22C12.29,22 14.84,20.74 16,20.13C17.16,20.74 19.71,22 21,22V20C20.12,19.84 19.28,19.54 18.5,19.13M16,12A2,2 0 0,1 18,14C18,16.92 17.46,18 16,18C14.54,18 14,16.92 14,14A2,2 0 0,1 16,12Z"
7299
- }, B2 = ["height", "viewBox", "width"], b2 = ["d"], E = /* @__PURE__ */ x({
7299
+ }, b2 = ["height", "viewBox", "width"], w2 = ["d"], E = /* @__PURE__ */ R({
7300
7300
  __name: "RIcon",
7301
7301
  props: {
7302
7302
  name: { default: "" },
@@ -7312,17 +7312,17 @@ const k2 = {
7312
7312
  width: V.size
7313
7313
  }, [
7314
7314
  S("path", {
7315
- d: J(k2)[V.name]
7316
- }, null, 8, b2)
7317
- ], 8, B2));
7315
+ d: J(B2)[V.name]
7316
+ }, null, 8, w2)
7317
+ ], 8, b2));
7318
7318
  }
7319
- }), w2 = ["data-state"], y2 = ["onClick"], v2 = { class: "r-accordion__title" }, P2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, i0 = /* @__PURE__ */ x({
7319
+ }), y2 = ["data-state"], v2 = ["onClick"], P2 = { class: "r-accordion__title" }, T2 = { class: "r-accordion__icon" }, F2 = { class: "r-accordion__content" }, A0 = /* @__PURE__ */ R({
7320
7320
  __name: "RAccordion",
7321
7321
  props: {
7322
7322
  accordions: {}
7323
7323
  },
7324
7324
  setup(H) {
7325
- const V = H, C = Z1(
7325
+ const V = H, C = u1(
7326
7326
  V.accordions.map(({ title: i, content: L }, A) => ({
7327
7327
  title: i,
7328
7328
  content: L,
@@ -7335,7 +7335,7 @@ const k2 = {
7335
7335
  C[A].open = A === i ? !C[A].open : !1;
7336
7336
  });
7337
7337
  }
7338
- return (i, L) => (m(!0), u(e1, null, o1(C, (A, e) => (m(), u("div", {
7338
+ return (i, L) => (m(!0), u(d1, null, n1(C, (A, e) => (m(), u("div", {
7339
7339
  key: e,
7340
7340
  class: O(["r-accordion", {
7341
7341
  "r-accordion--disabled": A.disabled
@@ -7347,30 +7347,30 @@ const k2 = {
7347
7347
  onClick: (d) => M(e)
7348
7348
  }, [
7349
7349
  p(i.$slots, "title", { accordion: A }, () => [
7350
- S("div", v2, v(A.title), 1)
7350
+ S("div", P2, v(A.title), 1)
7351
7351
  ]),
7352
- S("div", P2, [
7352
+ S("div", T2, [
7353
7353
  p(i.$slots, "icon", {
7354
7354
  open: A.open
7355
7355
  }, () => [
7356
- j(E, { name: "mdiChevronUp" })
7356
+ q(E, { name: "mdiChevronUp" })
7357
7357
  ])
7358
7358
  ])
7359
- ], 8, y2),
7360
- S("div", T2, [
7359
+ ], 8, v2),
7360
+ S("div", F2, [
7361
7361
  p(i.$slots, "content", {}, () => [
7362
7362
  S("span", null, v(A.content), 1)
7363
7363
  ])
7364
7364
  ])
7365
- ], 10, w2))), 128));
7365
+ ], 10, y2))), 128));
7366
7366
  }
7367
- }), F2 = { class: "r-alert__icon" }, R2 = { class: "r-alert__content" }, x2 = { class: "r-alert__content__title" }, D2 = {
7367
+ }), R2 = { class: "r-alert__icon" }, x2 = { class: "r-alert__content" }, D2 = { class: "r-alert__content__title" }, E2 = {
7368
7368
  key: 0,
7369
7369
  class: "r-alert__content__description"
7370
- }, E2 = {
7370
+ }, _2 = {
7371
7371
  key: 0,
7372
7372
  class: "r-alert__close"
7373
- }, A0 = /* @__PURE__ */ x({
7373
+ }, e0 = /* @__PURE__ */ R({
7374
7374
  __name: "RAlert",
7375
7375
  props: {
7376
7376
  type: { default: "info" },
@@ -7399,26 +7399,26 @@ const k2 = {
7399
7399
  return (e, d) => (m(), u("div", {
7400
7400
  class: O(i.value)
7401
7401
  }, [
7402
- S("div", F2, [
7402
+ S("div", R2, [
7403
7403
  p(e.$slots, "alert-icon", {}, () => [
7404
- j(E, {
7404
+ q(E, {
7405
7405
  name: L.value,
7406
7406
  size: 24
7407
7407
  }, null, 8, ["name"])
7408
7408
  ])
7409
7409
  ]),
7410
- S("div", R2, [
7410
+ S("div", x2, [
7411
7411
  p(e.$slots, "content", {}, () => [
7412
- S("p", x2, v(C.title), 1),
7413
- C.description ? (m(), u("p", D2, v(C.description), 1)) : g("", !0)
7412
+ S("p", D2, v(C.title), 1),
7413
+ C.description ? (m(), u("p", E2, v(C.description), 1)) : g("", !0)
7414
7414
  ])
7415
7415
  ]),
7416
- C.closable ? (m(), u("div", E2, [
7416
+ C.closable ? (m(), u("div", _2, [
7417
7417
  p(e.$slots, "custom-close", {
7418
7418
  close: A,
7419
7419
  slotClass: "r-alert__close__button"
7420
7420
  }, () => [
7421
- j(E, {
7421
+ q(E, {
7422
7422
  class: "r-alert__close__button",
7423
7423
  name: "mdiClose",
7424
7424
  size: 16,
@@ -7428,11 +7428,11 @@ const k2 = {
7428
7428
  ])) : g("", !0)
7429
7429
  ], 2));
7430
7430
  }
7431
- }), G1 = "data:image/svg+xml,%3csvg%20width='27'%20height='28'%20viewBox='0%200%2027%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4993%2014C17.1827%2014%2020.166%2011.0167%2020.166%207.33334C20.166%203.65%2017.1827%200.666672%2013.4993%200.666672C9.81602%200.666672%206.83268%203.65%206.83268%207.33334C6.83268%2011.0167%209.81602%2014%2013.4993%2014ZM13.4993%2017.3333C9.04935%2017.3333%200.166016%2019.5667%200.166016%2024V25.6667C0.166016%2026.5833%200.916016%2027.3333%201.83268%2027.3333H25.166C26.0827%2027.3333%2026.8327%2026.5833%2026.8327%2025.6667V24C26.8327%2019.5667%2017.9493%2017.3333%2013.4993%2017.3333Z'%20fill='%234C5BE1'/%3e%3c/svg%3e", _2 = { class: "r-avatar__wrapper" }, W2 = ["alt", "src"], e0 = /* @__PURE__ */ x({
7431
+ }), $1 = "data:image/svg+xml,%3csvg%20width='27'%20height='28'%20viewBox='0%200%2027%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4993%2014C17.1827%2014%2020.166%2011.0167%2020.166%207.33334C20.166%203.65%2017.1827%200.666672%2013.4993%200.666672C9.81602%200.666672%206.83268%203.65%206.83268%207.33334C6.83268%2011.0167%209.81602%2014%2013.4993%2014ZM13.4993%2017.3333C9.04935%2017.3333%200.166016%2019.5667%200.166016%2024V25.6667C0.166016%2026.5833%200.916016%2027.3333%201.83268%2027.3333H25.166C26.0827%2027.3333%2026.8327%2026.5833%2026.8327%2025.6667V24C26.8327%2019.5667%2017.9493%2017.3333%2013.4993%2017.3333Z'%20fill='%234C5BE1'/%3e%3c/svg%3e", W2 = { class: "r-avatar__wrapper" }, N2 = ["alt", "src"], d0 = /* @__PURE__ */ R({
7432
7432
  __name: "RAvatar",
7433
7433
  props: {
7434
7434
  type: { default: "image" },
7435
- src: { default: G1 },
7435
+ src: { default: $1 },
7436
7436
  alt: { default: "Avatar" },
7437
7437
  size: { default: "2xl" },
7438
7438
  online: { type: Boolean, default: !1 },
@@ -7442,12 +7442,12 @@ const k2 = {
7442
7442
  const V = H, C = h(() => ({
7443
7443
  "r-avatar": !0,
7444
7444
  [`r-avatar--${V.size}`]: !0
7445
- })), M = h(() => V.type === "image" && !V.src), i = h(() => M.value ? G1 : V.src);
7445
+ })), M = h(() => V.type === "image" && !V.src), i = h(() => M.value ? $1 : V.src);
7446
7446
  function L(A) {
7447
7447
  const e = A.split(" ");
7448
7448
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7449
7449
  }
7450
- return (A, e) => (m(), u("div", _2, [
7450
+ return (A, e) => (m(), u("div", W2, [
7451
7451
  S("div", {
7452
7452
  class: O(C.value)
7453
7453
  }, [
@@ -7462,7 +7462,7 @@ const k2 = {
7462
7462
  "r-avatar__image--anonymous": M.value
7463
7463
  }]),
7464
7464
  src: i.value
7465
- }, null, 10, W2))
7465
+ }, null, 10, N2))
7466
7466
  ], 2),
7467
7467
  V.online ? (m(), u("span", {
7468
7468
  key: 0,
@@ -7472,7 +7472,7 @@ const k2 = {
7472
7472
  }, null, 2)) : g("", !0)
7473
7473
  ]));
7474
7474
  }
7475
- }), N2 = ["innerHTML"], d0 = /* @__PURE__ */ x({
7475
+ }), I2 = ["innerHTML"], t0 = /* @__PURE__ */ R({
7476
7476
  __name: "RBadge",
7477
7477
  props: {
7478
7478
  variant: { default: "primary" },
@@ -7507,11 +7507,11 @@ const k2 = {
7507
7507
  S("span", {
7508
7508
  class: O(C.value),
7509
7509
  innerHTML: V.content
7510
- }, null, 10, N2),
7510
+ }, null, 10, I2),
7511
7511
  p(M.$slots, "default")
7512
7512
  ], 2));
7513
7513
  }
7514
- }), I2 = ["disabled"], t0 = /* @__PURE__ */ x({
7514
+ }), Q2 = ["disabled"], m0 = /* @__PURE__ */ R({
7515
7515
  __name: "RButton",
7516
7516
  props: {
7517
7517
  variant: { default: "default" },
@@ -7542,7 +7542,7 @@ const k2 = {
7542
7542
  })[V.size || "medium"]), i = h(() => ({
7543
7543
  height: V.height ? `${V.height}px` : ""
7544
7544
  }));
7545
- return (L, A) => (m(), u("button", Y1(L.$attrs, {
7545
+ return (L, A) => (m(), u("button", J1(L.$attrs, {
7546
7546
  class: C.value,
7547
7547
  disabled: L.disabled,
7548
7548
  style: i.value,
@@ -7571,18 +7571,18 @@ const k2 = {
7571
7571
  size: M.value
7572
7572
  }, null, 8, ["name", "size"])) : g("", !0)
7573
7573
  ])
7574
- ], 16, I2));
7574
+ ], 16, Q2));
7575
7575
  }
7576
- }), Q2 = { class: "r-checkbox-wrapper" }, G2 = { class: "r-checkbox-container" }, $2 = ["id", "checked", "disabled", "indeterminate"], U2 = ["data-disabled"], z2 = { class: "r-checkbox-texts" }, K2 = ["data-disabled", "for"], q2 = {
7576
+ }), G2 = { class: "r-checkbox-wrapper" }, $2 = { class: "r-checkbox-container" }, U2 = ["id", "checked", "disabled", "indeterminate"], z2 = ["data-disabled"], K2 = { class: "r-checkbox-texts" }, q2 = ["data-disabled", "for"], j2 = {
7577
7577
  key: 0,
7578
7578
  class: "r-checkbox-texts__details"
7579
- }, j2 = {
7579
+ }, X2 = {
7580
7580
  key: 0,
7581
7581
  class: "r-checkbox-texts__error"
7582
- }, X2 = {
7582
+ }, Y2 = {
7583
7583
  key: 1,
7584
7584
  class: "r-checkbox-texts__hint"
7585
- }, m0 = /* @__PURE__ */ x({
7585
+ }, l0 = /* @__PURE__ */ R({
7586
7586
  __name: "RCheckbox",
7587
7587
  props: {
7588
7588
  id: { default: "" },
@@ -7596,7 +7596,7 @@ const k2 = {
7596
7596
  },
7597
7597
  emits: ["update:modelValue"],
7598
7598
  setup(H, { emit: V }) {
7599
- const C = H, M = V, i = Z1({
7599
+ const C = H, M = V, i = u1({
7600
7600
  checked: !1,
7601
7601
  indeterminate: !1
7602
7602
  }), L = {
@@ -7613,7 +7613,7 @@ const k2 = {
7613
7613
  function d(t) {
7614
7614
  C.disabled || (i.checked = t.target.checked, i.indeterminate = !1, M("update:modelValue", i.checked));
7615
7615
  }
7616
- return G(
7616
+ return $(
7617
7617
  () => C.indeterminate,
7618
7618
  (t) => {
7619
7619
  i.indeterminate = t, t === !0 && (i.checked = !1, M("update:modelValue", i.checked));
@@ -7623,7 +7623,7 @@ const k2 = {
7623
7623
  // TODO: find a better way to do this
7624
7624
  immediate: !0
7625
7625
  }
7626
- ), G(
7626
+ ), $(
7627
7627
  () => C.modelValue,
7628
7628
  (t) => {
7629
7629
  i.checked = t;
@@ -7633,8 +7633,8 @@ const k2 = {
7633
7633
  // TODO: find a better way to do this
7634
7634
  immediate: !0
7635
7635
  }
7636
- ), (t, r) => (m(), u("div", Q2, [
7637
- S("div", G2, [
7636
+ ), (t, n) => (m(), u("div", G2, [
7637
+ S("div", $2, [
7638
7638
  S("input", {
7639
7639
  id: C.id,
7640
7640
  checked: i.checked,
@@ -7643,30 +7643,30 @@ const k2 = {
7643
7643
  indeterminate: i.indeterminate,
7644
7644
  type: "checkbox",
7645
7645
  onChange: d
7646
- }, null, 40, $2),
7646
+ }, null, 40, U2),
7647
7647
  S("div", {
7648
7648
  class: O(e.value),
7649
7649
  "data-disabled": C.disabled
7650
7650
  }, [
7651
- j(E, {
7651
+ q(E, {
7652
7652
  name: A.value,
7653
7653
  size: 24
7654
7654
  }, null, 8, ["name"])
7655
- ], 10, U2)
7655
+ ], 10, z2)
7656
7656
  ]),
7657
- S("div", z2, [
7657
+ S("div", K2, [
7658
7658
  S("label", {
7659
7659
  class: "r-checkbox-texts__label",
7660
7660
  "data-disabled": C.disabled,
7661
7661
  for: C.id
7662
- }, v(C.label), 9, K2),
7663
- C.hideDetails ? g("", !0) : (m(), u("div", q2, [
7664
- C.errorMsg ? (m(), u("p", j2, v(C.errorMsg), 1)) : (m(), u("p", X2, v(C.hint), 1))
7662
+ }, v(C.label), 9, q2),
7663
+ C.hideDetails ? g("", !0) : (m(), u("div", j2, [
7664
+ C.errorMsg ? (m(), u("p", X2, v(C.errorMsg), 1)) : (m(), u("p", Y2, v(C.hint), 1))
7665
7665
  ]))
7666
7666
  ])
7667
7667
  ]));
7668
7668
  }
7669
- }), Y2 = /* @__PURE__ */ x({
7669
+ }), J2 = /* @__PURE__ */ R({
7670
7670
  __name: "RChip",
7671
7671
  props: {
7672
7672
  variant: { default: "primary" },
@@ -7699,7 +7699,7 @@ const k2 = {
7699
7699
  }, [
7700
7700
  S("div", {
7701
7701
  class: "r-chip__content",
7702
- onClick: t[0] || (t[0] = (r) => L(r))
7702
+ onClick: t[0] || (t[0] = (n) => L(n))
7703
7703
  }, [
7704
7704
  p(d.$slots, "prepend", {
7705
7705
  disabled: C.disabled
@@ -7725,72 +7725,72 @@ const k2 = {
7725
7725
  class: "r-chip__content__append-icon",
7726
7726
  name: e.value,
7727
7727
  size: 12,
7728
- onClick: t[1] || (t[1] = (r) => A(r))
7728
+ onClick: t[1] || (t[1] = (n) => A(n))
7729
7729
  }, null, 8, ["aria-disabled", "name"])) : g("", !0)
7730
7730
  ])
7731
7731
  ], 2));
7732
7732
  }
7733
7733
  });
7734
- function J2(H) {
7735
- return u2() ? (S2(H), !0) : !1;
7734
+ function C5(H) {
7735
+ return S2() ? (s2(H), !0) : !1;
7736
7736
  }
7737
- function H2(H) {
7737
+ function V2(H) {
7738
7738
  return typeof H == "function" ? H() : J(H);
7739
7739
  }
7740
- const V2 = typeof window < "u" && typeof document < "u";
7740
+ const L2 = typeof window < "u" && typeof document < "u";
7741
7741
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7742
- const C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", F1 = () => {
7743
- }, V5 = /* @__PURE__ */ L5();
7744
- function L5() {
7742
+ const H5 = Object.prototype.toString, V5 = (H) => H5.call(H) === "[object Object]", R1 = () => {
7743
+ }, L5 = /* @__PURE__ */ M5();
7744
+ function M5() {
7745
7745
  var H;
7746
- return V2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7746
+ return L2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7747
7747
  }
7748
- function m1(H) {
7748
+ function l1(H) {
7749
7749
  var V;
7750
- const C = H2(H);
7750
+ const C = V2(H);
7751
7751
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7752
7752
  }
7753
- const L2 = V2 ? window : void 0;
7754
- function T1(...H) {
7753
+ const M2 = L2 ? window : void 0;
7754
+ function F1(...H) {
7755
7755
  let V, C, M, i;
7756
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V = L2) : [V, C, M, i] = H, !V)
7757
- return F1;
7756
+ if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, i] = H, V = M2) : [V, C, M, i] = H, !V)
7757
+ return R1;
7758
7758
  Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
7759
7759
  const L = [], A = () => {
7760
- L.forEach((r) => r()), L.length = 0;
7761
- }, e = (r, a, o, l) => (r.addEventListener(a, o, l), () => r.removeEventListener(a, o, l)), d = G(
7762
- () => [m1(V), H2(i)],
7763
- ([r, a]) => {
7764
- if (A(), !r)
7760
+ L.forEach((n) => n()), L.length = 0;
7761
+ }, e = (n, r, o, l) => (n.addEventListener(r, o, l), () => n.removeEventListener(r, o, l)), d = $(
7762
+ () => [l1(V), V2(i)],
7763
+ ([n, r]) => {
7764
+ if (A(), !n)
7765
7765
  return;
7766
- const o = H5(a) ? { ...a } : a;
7766
+ const o = V5(r) ? { ...r } : r;
7767
7767
  L.push(
7768
- ...C.flatMap((l) => M.map((Z) => e(r, l, Z, o)))
7768
+ ...C.flatMap((l) => M.map((Z) => e(n, l, Z, o)))
7769
7769
  );
7770
7770
  },
7771
7771
  { immediate: !0, flush: "post" }
7772
7772
  ), t = () => {
7773
7773
  d(), A();
7774
7774
  };
7775
- return J2(t), t;
7775
+ return C5(t), t;
7776
7776
  }
7777
- let $1 = !1;
7778
- function M5(H, V, C = {}) {
7779
- const { window: M = L2, ignore: i = [], capture: L = !0, detectIframe: A = !1 } = C;
7777
+ let U1 = !1;
7778
+ function i5(H, V, C = {}) {
7779
+ const { window: M = M2, ignore: i = [], capture: L = !0, detectIframe: A = !1 } = C;
7780
7780
  if (!M)
7781
7781
  return;
7782
- V5 && !$1 && ($1 = !0, Array.from(M.document.body.children).forEach((o) => o.addEventListener("click", F1)), M.document.documentElement.addEventListener("click", F1));
7782
+ L5 && !U1 && (U1 = !0, Array.from(M.document.body.children).forEach((o) => o.addEventListener("click", R1)), M.document.documentElement.addEventListener("click", R1));
7783
7783
  let e = !0;
7784
7784
  const d = (o) => i.some((l) => {
7785
7785
  if (typeof l == "string")
7786
7786
  return Array.from(M.document.querySelectorAll(l)).some((Z) => Z === o.target || o.composedPath().includes(Z));
7787
7787
  {
7788
- const Z = m1(l);
7788
+ const Z = l1(l);
7789
7789
  return Z && (o.target === Z || o.composedPath().includes(Z));
7790
7790
  }
7791
- }), r = [
7792
- T1(M, "click", (o) => {
7793
- const l = m1(H);
7791
+ }), n = [
7792
+ F1(M, "click", (o) => {
7793
+ const l = l1(H);
7794
7794
  if (!(!l || l === o.target || o.composedPath().includes(l))) {
7795
7795
  if (o.detail === 0 && (e = !d(o)), !e) {
7796
7796
  e = !0;
@@ -7799,76 +7799,76 @@ function M5(H, V, C = {}) {
7799
7799
  V(o);
7800
7800
  }
7801
7801
  }, { passive: !0, capture: L }),
7802
- T1(M, "pointerdown", (o) => {
7803
- const l = m1(H);
7802
+ F1(M, "pointerdown", (o) => {
7803
+ const l = l1(H);
7804
7804
  e = !d(o) && !!(l && !o.composedPath().includes(l));
7805
7805
  }, { passive: !0 }),
7806
- A && T1(M, "blur", (o) => {
7806
+ A && F1(M, "blur", (o) => {
7807
7807
  setTimeout(() => {
7808
7808
  var l;
7809
- const Z = m1(H);
7809
+ const Z = l1(H);
7810
7810
  ((l = M.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(Z != null && Z.contains(M.document.activeElement)) && V(o);
7811
7811
  }, 0);
7812
7812
  })
7813
7813
  ].filter(Boolean);
7814
- return () => r.forEach((o) => o());
7814
+ return () => n.forEach((o) => o());
7815
7815
  }
7816
- function i5() {
7816
+ function A5() {
7817
7817
  function H() {
7818
7818
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
7819
7819
  }
7820
7820
  return `${H() + H()}-${H()}-${H()}-${H()}-${H()}${H()}${H()}`;
7821
7821
  }
7822
- const A5 = ["top", "right", "bottom", "left"], r1 = Math.min, i1 = Math.max, g1 = Math.round, H1 = (H) => ({
7822
+ const e5 = ["top", "right", "bottom", "left"], a1 = Math.min, A1 = Math.max, k1 = Math.round, H1 = (H) => ({
7823
7823
  x: H,
7824
7824
  y: H
7825
- }), e5 = {
7825
+ }), d5 = {
7826
7826
  left: "right",
7827
7827
  right: "left",
7828
7828
  bottom: "top",
7829
7829
  top: "bottom"
7830
- }, d5 = {
7830
+ }, t5 = {
7831
7831
  start: "end",
7832
7832
  end: "start"
7833
7833
  };
7834
- function R1(H, V, C) {
7835
- return i1(H, r1(V, C));
7834
+ function x1(H, V, C) {
7835
+ return A1(H, a1(V, C));
7836
7836
  }
7837
- function t1(H, V) {
7837
+ function m1(H, V) {
7838
7838
  return typeof H == "function" ? H(V) : H;
7839
7839
  }
7840
7840
  function M1(H) {
7841
7841
  return H.split("-")[0];
7842
7842
  }
7843
- function S1(H) {
7843
+ function s1(H) {
7844
7844
  return H.split("-")[1];
7845
7845
  }
7846
- function M2(H) {
7846
+ function i2(H) {
7847
7847
  return H === "x" ? "y" : "x";
7848
7848
  }
7849
- function _1(H) {
7849
+ function W1(H) {
7850
7850
  return H === "y" ? "height" : "width";
7851
7851
  }
7852
- function w1(H) {
7852
+ function y1(H) {
7853
7853
  return ["top", "bottom"].includes(M1(H)) ? "y" : "x";
7854
7854
  }
7855
- function W1(H) {
7856
- return M2(w1(H));
7855
+ function N1(H) {
7856
+ return i2(y1(H));
7857
7857
  }
7858
- function t5(H, V, C) {
7858
+ function m5(H, V, C) {
7859
7859
  C === void 0 && (C = !1);
7860
- const M = S1(H), i = W1(H), L = _1(i);
7860
+ const M = s1(H), i = N1(H), L = W1(i);
7861
7861
  let A = i === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
7862
- return V.reference[L] > V.floating[L] && (A = k1(A)), [A, k1(A)];
7862
+ return V.reference[L] > V.floating[L] && (A = B1(A)), [A, B1(A)];
7863
7863
  }
7864
- function m5(H) {
7865
- const V = k1(H);
7866
- return [x1(H), V, x1(V)];
7864
+ function l5(H) {
7865
+ const V = B1(H);
7866
+ return [D1(H), V, D1(V)];
7867
7867
  }
7868
- function x1(H) {
7869
- return H.replace(/start|end/g, (V) => d5[V]);
7868
+ function D1(H) {
7869
+ return H.replace(/start|end/g, (V) => t5[V]);
7870
7870
  }
7871
- function l5(H, V, C) {
7871
+ function o5(H, V, C) {
7872
7872
  const M = ["left", "right"], i = ["right", "left"], L = ["top", "bottom"], A = ["bottom", "top"];
7873
7873
  switch (H) {
7874
7874
  case "top":
@@ -7881,15 +7881,15 @@ function l5(H, V, C) {
7881
7881
  return [];
7882
7882
  }
7883
7883
  }
7884
- function o5(H, V, C, M) {
7885
- const i = S1(H);
7886
- let L = l5(M1(H), C === "start", M);
7887
- return i && (L = L.map((A) => A + "-" + i), V && (L = L.concat(L.map(x1)))), L;
7884
+ function n5(H, V, C, M) {
7885
+ const i = s1(H);
7886
+ let L = o5(M1(H), C === "start", M);
7887
+ return i && (L = L.map((A) => A + "-" + i), V && (L = L.concat(L.map(D1)))), L;
7888
7888
  }
7889
- function k1(H) {
7890
- return H.replace(/left|right|bottom|top/g, (V) => e5[V]);
7889
+ function B1(H) {
7890
+ return H.replace(/left|right|bottom|top/g, (V) => d5[V]);
7891
7891
  }
7892
- function n5(H) {
7892
+ function r5(H) {
7893
7893
  return {
7894
7894
  top: 0,
7895
7895
  right: 0,
@@ -7898,15 +7898,15 @@ function n5(H) {
7898
7898
  ...H
7899
7899
  };
7900
7900
  }
7901
- function i2(H) {
7902
- return typeof H != "number" ? n5(H) : {
7901
+ function A2(H) {
7902
+ return typeof H != "number" ? r5(H) : {
7903
7903
  top: H,
7904
7904
  right: H,
7905
7905
  bottom: H,
7906
7906
  left: H
7907
7907
  };
7908
7908
  }
7909
- function B1(H) {
7909
+ function b1(H) {
7910
7910
  return {
7911
7911
  ...H,
7912
7912
  top: H.y,
@@ -7915,36 +7915,36 @@ function B1(H) {
7915
7915
  bottom: H.y + H.height
7916
7916
  };
7917
7917
  }
7918
- function U1(H, V, C) {
7918
+ function z1(H, V, C) {
7919
7919
  let {
7920
7920
  reference: M,
7921
7921
  floating: i
7922
7922
  } = H;
7923
- const L = w1(V), A = W1(V), e = _1(A), d = M1(V), t = L === "y", r = M.x + M.width / 2 - i.width / 2, a = M.y + M.height / 2 - i.height / 2, o = M[e] / 2 - i[e] / 2;
7923
+ const L = y1(V), A = N1(V), e = W1(A), d = M1(V), t = L === "y", n = M.x + M.width / 2 - i.width / 2, r = M.y + M.height / 2 - i.height / 2, o = M[e] / 2 - i[e] / 2;
7924
7924
  let l;
7925
7925
  switch (d) {
7926
7926
  case "top":
7927
7927
  l = {
7928
- x: r,
7928
+ x: n,
7929
7929
  y: M.y - i.height
7930
7930
  };
7931
7931
  break;
7932
7932
  case "bottom":
7933
7933
  l = {
7934
- x: r,
7934
+ x: n,
7935
7935
  y: M.y + M.height
7936
7936
  };
7937
7937
  break;
7938
7938
  case "right":
7939
7939
  l = {
7940
7940
  x: M.x + M.width,
7941
- y: a
7941
+ y: r
7942
7942
  };
7943
7943
  break;
7944
7944
  case "left":
7945
7945
  l = {
7946
7946
  x: M.x - i.width,
7947
- y: a
7947
+ y: r
7948
7948
  };
7949
7949
  break;
7950
7950
  default:
@@ -7953,7 +7953,7 @@ function U1(H, V, C) {
7953
7953
  y: M.y
7954
7954
  };
7955
7955
  }
7956
- switch (S1(V)) {
7956
+ switch (s1(V)) {
7957
7957
  case "start":
7958
7958
  l[A] -= o * (C && t ? -1 : 1);
7959
7959
  break;
@@ -7963,7 +7963,7 @@ function U1(H, V, C) {
7963
7963
  }
7964
7964
  return l;
7965
7965
  }
7966
- const r5 = async (H, V, C) => {
7966
+ const a5 = async (H, V, C) => {
7967
7967
  const {
7968
7968
  placement: M = "bottom",
7969
7969
  strategy: i = "absolute",
@@ -7975,21 +7975,21 @@ const r5 = async (H, V, C) => {
7975
7975
  floating: V,
7976
7976
  strategy: i
7977
7977
  }), {
7978
- x: r,
7979
- y: a
7980
- } = U1(t, M, d), o = M, l = {}, Z = 0;
7981
- for (let B = 0; B < e.length; B++) {
7978
+ x: n,
7979
+ y: r
7980
+ } = z1(t, M, d), o = M, l = {}, Z = 0;
7981
+ for (let k = 0; k < e.length; k++) {
7982
7982
  const {
7983
7983
  name: y,
7984
- fn: k
7985
- } = e[B], {
7986
- x: b,
7987
- y: w,
7988
- data: W,
7989
- reset: D
7990
- } = await k({
7991
- x: r,
7992
- y: a,
7984
+ fn: B
7985
+ } = e[k], {
7986
+ x: w,
7987
+ y: P,
7988
+ data: T,
7989
+ reset: x
7990
+ } = await B({
7991
+ x: n,
7992
+ y: r,
7993
7993
  initialPlacement: M,
7994
7994
  placement: o,
7995
7995
  strategy: i,
@@ -8001,33 +8001,33 @@ const r5 = async (H, V, C) => {
8001
8001
  floating: V
8002
8002
  }
8003
8003
  });
8004
- if (r = b ?? r, a = w ?? a, l = {
8004
+ if (n = w ?? n, r = P ?? r, l = {
8005
8005
  ...l,
8006
8006
  [y]: {
8007
8007
  ...l[y],
8008
- ...W
8008
+ ...T
8009
8009
  }
8010
- }, D && Z <= 50) {
8011
- Z++, typeof D == "object" && (D.placement && (o = D.placement), D.rects && (t = D.rects === !0 ? await A.getElementRects({
8010
+ }, x && Z <= 50) {
8011
+ Z++, typeof x == "object" && (x.placement && (o = x.placement), x.rects && (t = x.rects === !0 ? await A.getElementRects({
8012
8012
  reference: H,
8013
8013
  floating: V,
8014
8014
  strategy: i
8015
- }) : D.rects), {
8016
- x: r,
8017
- y: a
8018
- } = U1(t, o, d)), B = -1;
8015
+ }) : x.rects), {
8016
+ x: n,
8017
+ y: r
8018
+ } = z1(t, o, d)), k = -1;
8019
8019
  continue;
8020
8020
  }
8021
8021
  }
8022
8022
  return {
8023
- x: r,
8024
- y: a,
8023
+ x: n,
8024
+ y: r,
8025
8025
  placement: o,
8026
8026
  strategy: i,
8027
8027
  middlewareData: l
8028
8028
  };
8029
8029
  };
8030
- async function b1(H, V) {
8030
+ async function w1(H, V) {
8031
8031
  var C;
8032
8032
  V === void 0 && (V = {});
8033
8033
  const {
@@ -8039,38 +8039,38 @@ async function b1(H, V) {
8039
8039
  strategy: d
8040
8040
  } = H, {
8041
8041
  boundary: t = "clippingAncestors",
8042
- rootBoundary: r = "viewport",
8043
- elementContext: a = "floating",
8042
+ rootBoundary: n = "viewport",
8043
+ elementContext: r = "floating",
8044
8044
  altBoundary: o = !1,
8045
8045
  padding: l = 0
8046
- } = t1(V, H), Z = i2(l), y = e[o ? a === "floating" ? "reference" : "floating" : a], k = B1(await L.getClippingRect({
8046
+ } = m1(V, H), Z = A2(l), y = e[o ? r === "floating" ? "reference" : "floating" : r], B = b1(await L.getClippingRect({
8047
8047
  element: (C = await (L.isElement == null ? void 0 : L.isElement(y))) == null || C ? y : y.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8048
8048
  boundary: t,
8049
- rootBoundary: r,
8049
+ rootBoundary: n,
8050
8050
  strategy: d
8051
- })), b = a === "floating" ? {
8051
+ })), w = r === "floating" ? {
8052
8052
  ...A.floating,
8053
8053
  x: M,
8054
8054
  y: i
8055
- } : A.reference, w = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), W = await (L.isElement == null ? void 0 : L.isElement(w)) ? await (L.getScale == null ? void 0 : L.getScale(w)) || {
8055
+ } : A.reference, P = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), T = await (L.isElement == null ? void 0 : L.isElement(P)) ? await (L.getScale == null ? void 0 : L.getScale(P)) || {
8056
8056
  x: 1,
8057
8057
  y: 1
8058
8058
  } : {
8059
8059
  x: 1,
8060
8060
  y: 1
8061
- }, D = B1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8062
- rect: b,
8063
- offsetParent: w,
8061
+ }, x = b1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8062
+ rect: w,
8063
+ offsetParent: P,
8064
8064
  strategy: d
8065
- }) : b);
8065
+ }) : w);
8066
8066
  return {
8067
- top: (k.top - D.top + Z.top) / W.y,
8068
- bottom: (D.bottom - k.bottom + Z.bottom) / W.y,
8069
- left: (k.left - D.left + Z.left) / W.x,
8070
- right: (D.right - k.right + Z.right) / W.x
8067
+ top: (B.top - x.top + Z.top) / T.y,
8068
+ bottom: (x.bottom - B.bottom + Z.bottom) / T.y,
8069
+ left: (B.left - x.left + Z.left) / T.x,
8070
+ right: (x.right - B.right + Z.right) / T.x
8071
8071
  };
8072
8072
  }
8073
- const a5 = (H) => ({
8073
+ const Z5 = (H) => ({
8074
8074
  name: "arrow",
8075
8075
  options: H,
8076
8076
  async fn(V) {
@@ -8084,30 +8084,30 @@ const a5 = (H) => ({
8084
8084
  middlewareData: d
8085
8085
  } = V, {
8086
8086
  element: t,
8087
- padding: r = 0
8088
- } = t1(H, V) || {};
8087
+ padding: n = 0
8088
+ } = m1(H, V) || {};
8089
8089
  if (t == null)
8090
8090
  return {};
8091
- const a = i2(r), o = {
8091
+ const r = A2(n), o = {
8092
8092
  x: C,
8093
8093
  y: M
8094
- }, l = W1(i), Z = _1(l), B = await A.getDimensions(t), y = l === "y", k = y ? "top" : "left", b = y ? "bottom" : "right", w = y ? "clientHeight" : "clientWidth", W = L.reference[Z] + L.reference[l] - o[l] - L.floating[Z], D = o[l] - L.reference[l], $ = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(t));
8095
- let Q = $ ? $[w] : 0;
8096
- (!Q || !await (A.isElement == null ? void 0 : A.isElement($))) && (Q = e.floating[w] || L.floating[Z]);
8097
- const f = W / 2 - D / 2, n = Q / 2 - B[Z] / 2 - 1, c = r1(a[k], n), P = r1(a[b], n), F = c, s = Q - B[Z] - P, T = Q / 2 - B[Z] / 2 + f, N = R1(F, T, s), R = !d.arrow && S1(i) != null && T != N && L.reference[Z] / 2 - (T < F ? c : P) - B[Z] / 2 < 0, U = R ? T < F ? T - F : T - s : 0;
8094
+ }, l = N1(i), Z = W1(l), k = await A.getDimensions(t), y = l === "y", B = y ? "top" : "left", w = y ? "bottom" : "right", P = y ? "clientHeight" : "clientWidth", T = L.reference[Z] + L.reference[l] - o[l] - L.floating[Z], x = o[l] - L.reference[l], U = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(t));
8095
+ let N = U ? U[P] : 0;
8096
+ (!N || !await (A.isElement == null ? void 0 : A.isElement(U))) && (N = e.floating[P] || L.floating[Z]);
8097
+ const f = T / 2 - x / 2, G = N / 2 - k[Z] / 2 - 1, a = a1(r[B], G), c = a1(r[w], G), b = a, W = N - k[Z] - c, s = N / 2 - k[Z] / 2 + f, D = x1(b, s, W), I = !d.arrow && s1(i) != null && s != D && L.reference[Z] / 2 - (s < b ? a : c) - k[Z] / 2 < 0, F = I ? s < b ? s - b : s - W : 0;
8098
8098
  return {
8099
- [l]: o[l] + U,
8099
+ [l]: o[l] + F,
8100
8100
  data: {
8101
- [l]: N,
8102
- centerOffset: T - N - U,
8103
- ...R && {
8104
- alignmentOffset: U
8101
+ [l]: D,
8102
+ centerOffset: s - D - F,
8103
+ ...I && {
8104
+ alignmentOffset: F
8105
8105
  }
8106
8106
  },
8107
- reset: R
8107
+ reset: I
8108
8108
  };
8109
8109
  }
8110
- }), Z5 = function(H) {
8110
+ }), u5 = function(H) {
8111
8111
  return H === void 0 && (H = {}), {
8112
8112
  name: "flip",
8113
8113
  options: H,
@@ -8121,57 +8121,57 @@ const a5 = (H) => ({
8121
8121
  platform: d,
8122
8122
  elements: t
8123
8123
  } = V, {
8124
- mainAxis: r = !0,
8125
- crossAxis: a = !0,
8124
+ mainAxis: n = !0,
8125
+ crossAxis: r = !0,
8126
8126
  fallbackPlacements: o,
8127
8127
  fallbackStrategy: l = "bestFit",
8128
8128
  fallbackAxisSideDirection: Z = "none",
8129
- flipAlignment: B = !0,
8129
+ flipAlignment: k = !0,
8130
8130
  ...y
8131
- } = t1(H, V);
8131
+ } = m1(H, V);
8132
8132
  if ((C = L.arrow) != null && C.alignmentOffset)
8133
8133
  return {};
8134
- const k = M1(i), b = M1(e) === e, w = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), W = o || (b || !B ? [k1(e)] : m5(e));
8135
- !o && Z !== "none" && W.push(...o5(e, B, Z, w));
8136
- const D = [e, ...W], $ = await b1(V, y), Q = [];
8134
+ const B = M1(i), w = M1(e) === e, P = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), T = o || (w || !k ? [B1(e)] : l5(e));
8135
+ !o && Z !== "none" && T.push(...n5(e, k, Z, P));
8136
+ const x = [e, ...T], U = await w1(V, y), N = [];
8137
8137
  let f = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8138
- if (r && Q.push($[k]), a) {
8139
- const F = t5(i, A, w);
8140
- Q.push($[F[0]], $[F[1]]);
8138
+ if (n && N.push(U[B]), r) {
8139
+ const b = m5(i, A, P);
8140
+ N.push(U[b[0]], U[b[1]]);
8141
8141
  }
8142
8142
  if (f = [...f, {
8143
8143
  placement: i,
8144
- overflows: Q
8145
- }], !Q.every((F) => F <= 0)) {
8146
- var n, c;
8147
- const F = (((n = L.flip) == null ? void 0 : n.index) || 0) + 1, s = D[F];
8148
- if (s)
8144
+ overflows: N
8145
+ }], !N.every((b) => b <= 0)) {
8146
+ var G, a;
8147
+ const b = (((G = L.flip) == null ? void 0 : G.index) || 0) + 1, W = x[b];
8148
+ if (W)
8149
8149
  return {
8150
8150
  data: {
8151
- index: F,
8151
+ index: b,
8152
8152
  overflows: f
8153
8153
  },
8154
8154
  reset: {
8155
- placement: s
8155
+ placement: W
8156
8156
  }
8157
8157
  };
8158
- let T = (c = f.filter((N) => N.overflows[0] <= 0).sort((N, R) => N.overflows[1] - R.overflows[1])[0]) == null ? void 0 : c.placement;
8159
- if (!T)
8158
+ let s = (a = f.filter((D) => D.overflows[0] <= 0).sort((D, I) => D.overflows[1] - I.overflows[1])[0]) == null ? void 0 : a.placement;
8159
+ if (!s)
8160
8160
  switch (l) {
8161
8161
  case "bestFit": {
8162
- var P;
8163
- const N = (P = f.map((R) => [R.placement, R.overflows.filter((U) => U > 0).reduce((U, q) => U + q, 0)]).sort((R, U) => R[1] - U[1])[0]) == null ? void 0 : P[0];
8164
- N && (T = N);
8162
+ var c;
8163
+ const D = (c = f.map((I) => [I.placement, I.overflows.filter((F) => F > 0).reduce((F, i1) => F + i1, 0)]).sort((I, F) => I[1] - F[1])[0]) == null ? void 0 : c[0];
8164
+ D && (s = D);
8165
8165
  break;
8166
8166
  }
8167
8167
  case "initialPlacement":
8168
- T = e;
8168
+ s = e;
8169
8169
  break;
8170
8170
  }
8171
- if (i !== T)
8171
+ if (i !== s)
8172
8172
  return {
8173
8173
  reset: {
8174
- placement: T
8174
+ placement: s
8175
8175
  }
8176
8176
  };
8177
8177
  }
@@ -8179,7 +8179,7 @@ const a5 = (H) => ({
8179
8179
  }
8180
8180
  };
8181
8181
  };
8182
- function z1(H, V) {
8182
+ function K1(H, V) {
8183
8183
  return {
8184
8184
  top: H.top - V.height,
8185
8185
  right: H.right - V.width,
@@ -8187,10 +8187,10 @@ function z1(H, V) {
8187
8187
  left: H.left - V.width
8188
8188
  };
8189
8189
  }
8190
- function K1(H) {
8191
- return A5.some((V) => H[V] >= 0);
8190
+ function q1(H) {
8191
+ return e5.some((V) => H[V] >= 0);
8192
8192
  }
8193
- const u5 = function(H) {
8193
+ const S5 = function(H) {
8194
8194
  return H === void 0 && (H = {}), {
8195
8195
  name: "hide",
8196
8196
  options: H,
@@ -8200,29 +8200,29 @@ const u5 = function(H) {
8200
8200
  } = V, {
8201
8201
  strategy: M = "referenceHidden",
8202
8202
  ...i
8203
- } = t1(H, V);
8203
+ } = m1(H, V);
8204
8204
  switch (M) {
8205
8205
  case "referenceHidden": {
8206
- const L = await b1(V, {
8206
+ const L = await w1(V, {
8207
8207
  ...i,
8208
8208
  elementContext: "reference"
8209
- }), A = z1(L, C.reference);
8209
+ }), A = K1(L, C.reference);
8210
8210
  return {
8211
8211
  data: {
8212
8212
  referenceHiddenOffsets: A,
8213
- referenceHidden: K1(A)
8213
+ referenceHidden: q1(A)
8214
8214
  }
8215
8215
  };
8216
8216
  }
8217
8217
  case "escaped": {
8218
- const L = await b1(V, {
8218
+ const L = await w1(V, {
8219
8219
  ...i,
8220
8220
  altBoundary: !0
8221
- }), A = z1(L, C.floating);
8221
+ }), A = K1(L, C.floating);
8222
8222
  return {
8223
8223
  data: {
8224
8224
  escapedOffsets: A,
8225
- escaped: K1(A)
8225
+ escaped: q1(A)
8226
8226
  }
8227
8227
  };
8228
8228
  }
@@ -8232,35 +8232,35 @@ const u5 = function(H) {
8232
8232
  }
8233
8233
  };
8234
8234
  };
8235
- async function S5(H, V) {
8235
+ async function s5(H, V) {
8236
8236
  const {
8237
8237
  placement: C,
8238
8238
  platform: M,
8239
8239
  elements: i
8240
- } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A = M1(C), e = S1(C), d = w1(C) === "y", t = ["left", "top"].includes(A) ? -1 : 1, r = L && d ? -1 : 1, a = t1(V, H);
8240
+ } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(i.floating)), A = M1(C), e = s1(C), d = y1(C) === "y", t = ["left", "top"].includes(A) ? -1 : 1, n = L && d ? -1 : 1, r = m1(V, H);
8241
8241
  let {
8242
8242
  mainAxis: o,
8243
8243
  crossAxis: l,
8244
8244
  alignmentAxis: Z
8245
- } = typeof a == "number" ? {
8246
- mainAxis: a,
8245
+ } = typeof r == "number" ? {
8246
+ mainAxis: r,
8247
8247
  crossAxis: 0,
8248
8248
  alignmentAxis: null
8249
8249
  } : {
8250
8250
  mainAxis: 0,
8251
8251
  crossAxis: 0,
8252
8252
  alignmentAxis: null,
8253
- ...a
8253
+ ...r
8254
8254
  };
8255
8255
  return e && typeof Z == "number" && (l = e === "end" ? Z * -1 : Z), d ? {
8256
- x: l * r,
8256
+ x: l * n,
8257
8257
  y: o * t
8258
8258
  } : {
8259
8259
  x: o * t,
8260
- y: l * r
8260
+ y: l * n
8261
8261
  };
8262
8262
  }
8263
- const s5 = function(H) {
8263
+ const c5 = function(H) {
8264
8264
  return H === void 0 && (H = 0), {
8265
8265
  name: "offset",
8266
8266
  options: H,
@@ -8268,7 +8268,7 @@ const s5 = function(H) {
8268
8268
  const {
8269
8269
  x: C,
8270
8270
  y: M
8271
- } = V, i = await S5(V, H);
8271
+ } = V, i = await s5(V, H);
8272
8272
  return {
8273
8273
  x: C + i.x,
8274
8274
  y: M + i.y,
@@ -8276,7 +8276,7 @@ const s5 = function(H) {
8276
8276
  };
8277
8277
  }
8278
8278
  };
8279
- }, c5 = function(H) {
8279
+ }, O5 = function(H) {
8280
8280
  return H === void 0 && (H = {}), {
8281
8281
  name: "shift",
8282
8282
  options: H,
@@ -8291,46 +8291,46 @@ const s5 = function(H) {
8291
8291
  limiter: e = {
8292
8292
  fn: (y) => {
8293
8293
  let {
8294
- x: k,
8295
- y: b
8294
+ x: B,
8295
+ y: w
8296
8296
  } = y;
8297
8297
  return {
8298
- x: k,
8299
- y: b
8298
+ x: B,
8299
+ y: w
8300
8300
  };
8301
8301
  }
8302
8302
  },
8303
8303
  ...d
8304
- } = t1(H, V), t = {
8304
+ } = m1(H, V), t = {
8305
8305
  x: C,
8306
8306
  y: M
8307
- }, r = await b1(V, d), a = w1(M1(i)), o = M2(a);
8308
- let l = t[o], Z = t[a];
8307
+ }, n = await w1(V, d), r = y1(M1(i)), o = i2(r);
8308
+ let l = t[o], Z = t[r];
8309
8309
  if (L) {
8310
- const y = o === "y" ? "top" : "left", k = o === "y" ? "bottom" : "right", b = l + r[y], w = l - r[k];
8311
- l = R1(b, l, w);
8310
+ const y = o === "y" ? "top" : "left", B = o === "y" ? "bottom" : "right", w = l + n[y], P = l - n[B];
8311
+ l = x1(w, l, P);
8312
8312
  }
8313
8313
  if (A) {
8314
- const y = a === "y" ? "top" : "left", k = a === "y" ? "bottom" : "right", b = Z + r[y], w = Z - r[k];
8315
- Z = R1(b, Z, w);
8314
+ const y = r === "y" ? "top" : "left", B = r === "y" ? "bottom" : "right", w = Z + n[y], P = Z - n[B];
8315
+ Z = x1(w, Z, P);
8316
8316
  }
8317
- const B = e.fn({
8317
+ const k = e.fn({
8318
8318
  ...V,
8319
8319
  [o]: l,
8320
- [a]: Z
8320
+ [r]: Z
8321
8321
  });
8322
8322
  return {
8323
- ...B,
8323
+ ...k,
8324
8324
  data: {
8325
- x: B.x - C,
8326
- y: B.y - M
8325
+ x: k.x - C,
8326
+ y: k.y - M
8327
8327
  }
8328
8328
  };
8329
8329
  }
8330
8330
  };
8331
8331
  };
8332
8332
  function V1(H) {
8333
- return A2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8333
+ return e2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8334
8334
  }
8335
8335
  function z(H) {
8336
8336
  var V;
@@ -8338,21 +8338,21 @@ function z(H) {
8338
8338
  }
8339
8339
  function L1(H) {
8340
8340
  var V;
8341
- return (V = (A2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8341
+ return (V = (e2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8342
8342
  }
8343
- function A2(H) {
8343
+ function e2(H) {
8344
8344
  return H instanceof Node || H instanceof z(H).Node;
8345
8345
  }
8346
8346
  function C1(H) {
8347
8347
  return H instanceof Element || H instanceof z(H).Element;
8348
8348
  }
8349
- function X(H) {
8349
+ function j(H) {
8350
8350
  return H instanceof HTMLElement || H instanceof z(H).HTMLElement;
8351
8351
  }
8352
- function q1(H) {
8352
+ function j1(H) {
8353
8353
  return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof z(H).ShadowRoot;
8354
8354
  }
8355
- function s1(H) {
8355
+ function c1(H) {
8356
8356
  const {
8357
8357
  overflow: V,
8358
8358
  overflowX: C,
@@ -8361,32 +8361,32 @@ function s1(H) {
8361
8361
  } = K(H);
8362
8362
  return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(i);
8363
8363
  }
8364
- function O5(H) {
8364
+ function p5(H) {
8365
8365
  return ["table", "td", "th"].includes(V1(H));
8366
8366
  }
8367
- function N1(H) {
8368
- const V = I1(), C = K(H);
8367
+ function I1(H) {
8368
+ const V = Q1(), C = K(H);
8369
8369
  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));
8370
8370
  }
8371
- function p5(H) {
8372
- let V = d1(H);
8373
- for (; X(V) && !y1(V); ) {
8374
- if (N1(V))
8371
+ function f5(H) {
8372
+ let V = t1(H);
8373
+ for (; j(V) && !v1(V); ) {
8374
+ if (I1(V))
8375
8375
  return V;
8376
- V = d1(V);
8376
+ V = t1(V);
8377
8377
  }
8378
8378
  return null;
8379
8379
  }
8380
- function I1() {
8380
+ function Q1() {
8381
8381
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
8382
8382
  }
8383
- function y1(H) {
8383
+ function v1(H) {
8384
8384
  return ["html", "body", "#document"].includes(V1(H));
8385
8385
  }
8386
8386
  function K(H) {
8387
8387
  return z(H).getComputedStyle(H);
8388
8388
  }
8389
- function v1(H) {
8389
+ function P1(H) {
8390
8390
  return C1(H) ? {
8391
8391
  scrollLeft: H.scrollLeft,
8392
8392
  scrollTop: H.scrollTop
@@ -8395,96 +8395,96 @@ function v1(H) {
8395
8395
  scrollTop: H.pageYOffset
8396
8396
  };
8397
8397
  }
8398
- function d1(H) {
8398
+ function t1(H) {
8399
8399
  if (V1(H) === "html")
8400
8400
  return H;
8401
8401
  const V = (
8402
8402
  // Step into the shadow DOM of the parent of a slotted node.
8403
8403
  H.assignedSlot || // DOM Element detected.
8404
8404
  H.parentNode || // ShadowRoot detected.
8405
- q1(H) && H.host || // Fallback.
8405
+ j1(H) && H.host || // Fallback.
8406
8406
  L1(H)
8407
8407
  );
8408
- return q1(V) ? V.host : V;
8408
+ return j1(V) ? V.host : V;
8409
8409
  }
8410
- function e2(H) {
8411
- const V = d1(H);
8412
- return y1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : X(V) && s1(V) ? V : e2(V);
8410
+ function d2(H) {
8411
+ const V = t1(H);
8412
+ return v1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : j(V) && c1(V) ? V : d2(V);
8413
8413
  }
8414
- function D1(H, V, C) {
8414
+ function E1(H, V, C) {
8415
8415
  var M;
8416
8416
  V === void 0 && (V = []), C === void 0 && (C = !0);
8417
- const i = e2(H), L = i === ((M = H.ownerDocument) == null ? void 0 : M.body), A = z(i);
8418
- return L ? V.concat(A, A.visualViewport || [], s1(i) ? i : [], A.frameElement && C ? D1(A.frameElement) : []) : V.concat(i, D1(i, [], C));
8417
+ const i = d2(H), L = i === ((M = H.ownerDocument) == null ? void 0 : M.body), A = z(i);
8418
+ return L ? V.concat(A, A.visualViewport || [], c1(i) ? i : [], A.frameElement && C ? E1(A.frameElement) : []) : V.concat(i, E1(i, [], C));
8419
8419
  }
8420
- function d2(H) {
8420
+ function t2(H) {
8421
8421
  const V = K(H);
8422
8422
  let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
8423
- const i = X(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, e = g1(C) !== L || g1(M) !== A;
8423
+ const i = j(H), L = i ? H.offsetWidth : C, A = i ? H.offsetHeight : M, e = k1(C) !== L || k1(M) !== A;
8424
8424
  return e && (C = L, M = A), {
8425
8425
  width: C,
8426
8426
  height: M,
8427
8427
  $: e
8428
8428
  };
8429
8429
  }
8430
- function t2(H) {
8430
+ function m2(H) {
8431
8431
  return C1(H) ? H : H.contextElement;
8432
8432
  }
8433
- function A1(H) {
8434
- const V = t2(H);
8435
- if (!X(V))
8433
+ function e1(H) {
8434
+ const V = m2(H);
8435
+ if (!j(V))
8436
8436
  return H1(1);
8437
8437
  const C = V.getBoundingClientRect(), {
8438
8438
  width: M,
8439
8439
  height: i,
8440
8440
  $: L
8441
- } = d2(V);
8442
- let A = (L ? g1(C.width) : C.width) / M, e = (L ? g1(C.height) : C.height) / i;
8441
+ } = t2(V);
8442
+ let A = (L ? k1(C.width) : C.width) / M, e = (L ? k1(C.height) : C.height) / i;
8443
8443
  return (!A || !Number.isFinite(A)) && (A = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8444
8444
  x: A,
8445
8445
  y: e
8446
8446
  };
8447
8447
  }
8448
- const f5 = /* @__PURE__ */ H1(0);
8449
- function m2(H) {
8448
+ const h5 = /* @__PURE__ */ H1(0);
8449
+ function l2(H) {
8450
8450
  const V = z(H);
8451
- return !I1() || !V.visualViewport ? f5 : {
8451
+ return !Q1() || !V.visualViewport ? h5 : {
8452
8452
  x: V.visualViewport.offsetLeft,
8453
8453
  y: V.visualViewport.offsetTop
8454
8454
  };
8455
8455
  }
8456
- function h5(H, V, C) {
8456
+ function g5(H, V, C) {
8457
8457
  return V === void 0 && (V = !1), !C || V && C !== z(H) ? !1 : V;
8458
8458
  }
8459
- function a1(H, V, C, M) {
8459
+ function Z1(H, V, C, M) {
8460
8460
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8461
- const i = H.getBoundingClientRect(), L = t2(H);
8461
+ const i = H.getBoundingClientRect(), L = m2(H);
8462
8462
  let A = H1(1);
8463
- V && (M ? C1(M) && (A = A1(M)) : A = A1(H));
8464
- const e = h5(L, C, M) ? m2(L) : H1(0);
8465
- let d = (i.left + e.x) / A.x, t = (i.top + e.y) / A.y, r = i.width / A.x, a = i.height / A.y;
8463
+ V && (M ? C1(M) && (A = e1(M)) : A = e1(H));
8464
+ const e = g5(L, C, M) ? l2(L) : H1(0);
8465
+ let d = (i.left + e.x) / A.x, t = (i.top + e.y) / A.y, n = i.width / A.x, r = i.height / A.y;
8466
8466
  if (L) {
8467
8467
  const o = z(L), l = M && C1(M) ? z(M) : M;
8468
8468
  let Z = o.frameElement;
8469
8469
  for (; Z && M && l !== o; ) {
8470
- const B = A1(Z), y = Z.getBoundingClientRect(), k = K(Z), b = y.left + (Z.clientLeft + parseFloat(k.paddingLeft)) * B.x, w = y.top + (Z.clientTop + parseFloat(k.paddingTop)) * B.y;
8471
- d *= B.x, t *= B.y, r *= B.x, a *= B.y, d += b, t += w, Z = z(Z).frameElement;
8470
+ const k = e1(Z), y = Z.getBoundingClientRect(), B = K(Z), w = y.left + (Z.clientLeft + parseFloat(B.paddingLeft)) * k.x, P = y.top + (Z.clientTop + parseFloat(B.paddingTop)) * k.y;
8471
+ d *= k.x, t *= k.y, n *= k.x, r *= k.y, d += w, t += P, Z = z(Z).frameElement;
8472
8472
  }
8473
8473
  }
8474
- return B1({
8475
- width: r,
8476
- height: a,
8474
+ return b1({
8475
+ width: n,
8476
+ height: r,
8477
8477
  x: d,
8478
8478
  y: t
8479
8479
  });
8480
8480
  }
8481
- function g5(H) {
8481
+ function k5(H) {
8482
8482
  let {
8483
8483
  rect: V,
8484
8484
  offsetParent: C,
8485
8485
  strategy: M
8486
8486
  } = H;
8487
- const i = X(C), L = L1(C);
8487
+ const i = j(C), L = L1(C);
8488
8488
  if (C === L)
8489
8489
  return V;
8490
8490
  let A = {
@@ -8492,9 +8492,9 @@ function g5(H) {
8492
8492
  scrollTop: 0
8493
8493
  }, e = H1(1);
8494
8494
  const d = H1(0);
8495
- if ((i || !i && M !== "fixed") && ((V1(C) !== "body" || s1(L)) && (A = v1(C)), X(C))) {
8496
- const t = a1(C);
8497
- e = A1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
8495
+ if ((i || !i && M !== "fixed") && ((V1(C) !== "body" || c1(L)) && (A = P1(C)), j(C))) {
8496
+ const t = Z1(C);
8497
+ e = e1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
8498
8498
  }
8499
8499
  return {
8500
8500
  width: V.width * e.x,
@@ -8503,29 +8503,29 @@ function g5(H) {
8503
8503
  y: V.y * e.y - A.scrollTop * e.y + d.y
8504
8504
  };
8505
8505
  }
8506
- function k5(H) {
8506
+ function B5(H) {
8507
8507
  return Array.from(H.getClientRects());
8508
8508
  }
8509
- function l2(H) {
8510
- return a1(L1(H)).left + v1(H).scrollLeft;
8509
+ function o2(H) {
8510
+ return Z1(L1(H)).left + P1(H).scrollLeft;
8511
8511
  }
8512
- function B5(H) {
8513
- const V = L1(H), C = v1(H), M = H.ownerDocument.body, i = i1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = i1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8514
- let A = -C.scrollLeft + l2(H);
8512
+ function b5(H) {
8513
+ const V = L1(H), C = P1(H), M = H.ownerDocument.body, i = A1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = A1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8514
+ let A = -C.scrollLeft + o2(H);
8515
8515
  const e = -C.scrollTop;
8516
- return K(M).direction === "rtl" && (A += i1(V.clientWidth, M.clientWidth) - i), {
8516
+ return K(M).direction === "rtl" && (A += A1(V.clientWidth, M.clientWidth) - i), {
8517
8517
  width: i,
8518
8518
  height: L,
8519
8519
  x: A,
8520
8520
  y: e
8521
8521
  };
8522
8522
  }
8523
- function b5(H, V) {
8523
+ function w5(H, V) {
8524
8524
  const C = z(H), M = L1(H), i = C.visualViewport;
8525
8525
  let L = M.clientWidth, A = M.clientHeight, e = 0, d = 0;
8526
8526
  if (i) {
8527
8527
  L = i.width, A = i.height;
8528
- const t = I1();
8528
+ const t = Q1();
8529
8529
  (!t || t && V === "fixed") && (e = i.offsetLeft, d = i.offsetTop);
8530
8530
  }
8531
8531
  return {
@@ -8535,8 +8535,8 @@ function b5(H, V) {
8535
8535
  y: d
8536
8536
  };
8537
8537
  }
8538
- function w5(H, V) {
8539
- const C = a1(H, !0, V === "fixed"), M = C.top + H.clientTop, i = C.left + H.clientLeft, L = X(H) ? A1(H) : H1(1), A = H.clientWidth * L.x, e = H.clientHeight * L.y, d = i * L.x, t = M * L.y;
8538
+ function y5(H, V) {
8539
+ const C = Z1(H, !0, V === "fixed"), M = C.top + H.clientTop, i = C.left + H.clientLeft, L = j(H) ? e1(H) : H1(1), A = H.clientWidth * L.x, e = H.clientHeight * L.y, d = i * L.x, t = M * L.y;
8540
8540
  return {
8541
8541
  width: A,
8542
8542
  height: e,
@@ -8544,52 +8544,52 @@ function w5(H, V) {
8544
8544
  y: t
8545
8545
  };
8546
8546
  }
8547
- function j1(H, V, C) {
8547
+ function X1(H, V, C) {
8548
8548
  let M;
8549
8549
  if (V === "viewport")
8550
- M = b5(H, C);
8550
+ M = w5(H, C);
8551
8551
  else if (V === "document")
8552
- M = B5(L1(H));
8552
+ M = b5(L1(H));
8553
8553
  else if (C1(V))
8554
- M = w5(V, C);
8554
+ M = y5(V, C);
8555
8555
  else {
8556
- const i = m2(H);
8556
+ const i = l2(H);
8557
8557
  M = {
8558
8558
  ...V,
8559
8559
  x: V.x - i.x,
8560
8560
  y: V.y - i.y
8561
8561
  };
8562
8562
  }
8563
- return B1(M);
8563
+ return b1(M);
8564
8564
  }
8565
- function o2(H, V) {
8566
- const C = d1(H);
8567
- return C === V || !C1(C) || y1(C) ? !1 : K(C).position === "fixed" || o2(C, V);
8565
+ function n2(H, V) {
8566
+ const C = t1(H);
8567
+ return C === V || !C1(C) || v1(C) ? !1 : K(C).position === "fixed" || n2(C, V);
8568
8568
  }
8569
- function y5(H, V) {
8569
+ function v5(H, V) {
8570
8570
  const C = V.get(H);
8571
8571
  if (C)
8572
8572
  return C;
8573
- let M = D1(H, [], !1).filter((e) => C1(e) && V1(e) !== "body"), i = null;
8573
+ let M = E1(H, [], !1).filter((e) => C1(e) && V1(e) !== "body"), i = null;
8574
8574
  const L = K(H).position === "fixed";
8575
- let A = L ? d1(H) : H;
8576
- for (; C1(A) && !y1(A); ) {
8577
- const e = K(A), d = N1(A);
8578
- !d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || s1(A) && !d && o2(H, A)) ? M = M.filter((r) => r !== A) : i = e, A = d1(A);
8575
+ let A = L ? t1(H) : H;
8576
+ for (; C1(A) && !v1(A); ) {
8577
+ const e = K(A), d = I1(A);
8578
+ !d && e.position === "fixed" && (i = null), (L ? !d && !i : !d && e.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || c1(A) && !d && n2(H, A)) ? M = M.filter((n) => n !== A) : i = e, A = t1(A);
8579
8579
  }
8580
8580
  return V.set(H, M), M;
8581
8581
  }
8582
- function v5(H) {
8582
+ function P5(H) {
8583
8583
  let {
8584
8584
  element: V,
8585
8585
  boundary: C,
8586
8586
  rootBoundary: M,
8587
8587
  strategy: i
8588
8588
  } = H;
8589
- const A = [...C === "clippingAncestors" ? y5(V, this._c) : [].concat(C), M], e = A[0], d = A.reduce((t, r) => {
8590
- const a = j1(V, r, i);
8591
- return t.top = i1(a.top, t.top), t.right = r1(a.right, t.right), t.bottom = r1(a.bottom, t.bottom), t.left = i1(a.left, t.left), t;
8592
- }, j1(V, e, i));
8589
+ const A = [...C === "clippingAncestors" ? v5(V, this._c) : [].concat(C), M], e = A[0], d = A.reduce((t, n) => {
8590
+ const r = X1(V, n, i);
8591
+ 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;
8592
+ }, X1(V, e, i));
8593
8593
  return {
8594
8594
  width: d.right - d.left,
8595
8595
  height: d.bottom - d.top,
@@ -8597,22 +8597,22 @@ function v5(H) {
8597
8597
  y: d.top
8598
8598
  };
8599
8599
  }
8600
- function P5(H) {
8601
- return d2(H);
8600
+ function T5(H) {
8601
+ return t2(H);
8602
8602
  }
8603
- function T5(H, V, C) {
8604
- const M = X(V), i = L1(V), L = C === "fixed", A = a1(H, !0, L, V);
8603
+ function F5(H, V, C) {
8604
+ const M = j(V), i = L1(V), L = C === "fixed", A = Z1(H, !0, L, V);
8605
8605
  let e = {
8606
8606
  scrollLeft: 0,
8607
8607
  scrollTop: 0
8608
8608
  };
8609
8609
  const d = H1(0);
8610
8610
  if (M || !M && !L)
8611
- if ((V1(V) !== "body" || s1(i)) && (e = v1(V)), M) {
8612
- const t = a1(V, !0, L, V);
8611
+ if ((V1(V) !== "body" || c1(i)) && (e = P1(V)), M) {
8612
+ const t = Z1(V, !0, L, V);
8613
8613
  d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
8614
8614
  } else
8615
- i && (d.x = l2(i));
8615
+ i && (d.x = o2(i));
8616
8616
  return {
8617
8617
  x: A.left + e.scrollLeft - d.x,
8618
8618
  y: A.top + e.scrollTop - d.y,
@@ -8620,27 +8620,27 @@ function T5(H, V, C) {
8620
8620
  height: A.height
8621
8621
  };
8622
8622
  }
8623
- function X1(H, V) {
8624
- return !X(H) || K(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8623
+ function Y1(H, V) {
8624
+ return !j(H) || K(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8625
8625
  }
8626
- function n2(H, V) {
8626
+ function r2(H, V) {
8627
8627
  const C = z(H);
8628
- if (!X(H))
8628
+ if (!j(H))
8629
8629
  return C;
8630
- let M = X1(H, V);
8631
- for (; M && O5(M) && K(M).position === "static"; )
8632
- M = X1(M, V);
8633
- return M && (V1(M) === "html" || V1(M) === "body" && K(M).position === "static" && !N1(M)) ? C : M || p5(H) || C;
8630
+ let M = Y1(H, V);
8631
+ for (; M && p5(M) && K(M).position === "static"; )
8632
+ M = Y1(M, V);
8633
+ return M && (V1(M) === "html" || V1(M) === "body" && K(M).position === "static" && !I1(M)) ? C : M || f5(H) || C;
8634
8634
  }
8635
- const F5 = async function(H) {
8635
+ const R5 = async function(H) {
8636
8636
  let {
8637
8637
  reference: V,
8638
8638
  floating: C,
8639
8639
  strategy: M
8640
8640
  } = H;
8641
- const i = this.getOffsetParent || n2, L = this.getDimensions;
8641
+ const i = this.getOffsetParent || r2, L = this.getDimensions;
8642
8642
  return {
8643
- reference: T5(V, await i(C), M),
8643
+ reference: F5(V, await i(C), M),
8644
8644
  floating: {
8645
8645
  x: 0,
8646
8646
  y: 0,
@@ -8648,78 +8648,78 @@ const F5 = async function(H) {
8648
8648
  }
8649
8649
  };
8650
8650
  };
8651
- function R5(H) {
8651
+ function x5(H) {
8652
8652
  return K(H).direction === "rtl";
8653
8653
  }
8654
- const x5 = {
8655
- convertOffsetParentRelativeRectToViewportRelativeRect: g5,
8654
+ const D5 = {
8655
+ convertOffsetParentRelativeRectToViewportRelativeRect: k5,
8656
8656
  getDocumentElement: L1,
8657
- getClippingRect: v5,
8658
- getOffsetParent: n2,
8659
- getElementRects: F5,
8660
- getClientRects: k5,
8661
- getDimensions: P5,
8662
- getScale: A1,
8657
+ getClippingRect: P5,
8658
+ getOffsetParent: r2,
8659
+ getElementRects: R5,
8660
+ getClientRects: B5,
8661
+ getDimensions: T5,
8662
+ getScale: e1,
8663
8663
  isElement: C1,
8664
- isRTL: R5
8665
- }, D5 = (H, V, C) => {
8664
+ isRTL: x5
8665
+ }, E5 = (H, V, C) => {
8666
8666
  const M = /* @__PURE__ */ new Map(), i = {
8667
- platform: x5,
8667
+ platform: D5,
8668
8668
  ...C
8669
8669
  }, L = {
8670
8670
  ...i.platform,
8671
8671
  _c: M
8672
8672
  };
8673
- return r5(H, V, {
8673
+ return a5(H, V, {
8674
8674
  ...i,
8675
8675
  platform: L
8676
8676
  });
8677
8677
  };
8678
- var r2 = /* @__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))(r2 || {}), Y = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(Y || {}), a2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(a2 || {});
8679
- async function E5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e) {
8680
- !H || !V || D5(H, V, {
8678
+ var a2 = /* @__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))(a2 || {}), Y = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(Y || {}), Z2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(Z2 || {});
8679
+ async function _5({ value: H }, { value: V }, { value: C }, M, i, L, A = 300, e) {
8680
+ !H || !V || E5(H, V, {
8681
8681
  placement: M,
8682
8682
  middleware: [
8683
- s5(i),
8684
- c5({ padding: L }),
8685
- a5({ element: C }),
8686
- Z5(),
8687
- u5()
8683
+ c5(i),
8684
+ O5({ padding: L }),
8685
+ Z5({ element: C }),
8686
+ u5(),
8687
+ S5()
8688
8688
  ]
8689
- }).then(({ x: d, y: t, placement: r, middlewareData: a }) => {
8690
- var Z, B;
8689
+ }).then(({ x: d, y: t, placement: n, middlewareData: r }) => {
8690
+ var Z, k;
8691
8691
  if (!V)
8692
8692
  return;
8693
- a.flip && V.setAttribute("data-placement", r);
8694
- const o = (Z = H.offsetParent) == null ? void 0 : Z.getBoundingClientRect().left, l = (B = H.offsetParent) == null ? void 0 : B.getBoundingClientRect().width;
8693
+ r.flip && V.setAttribute("data-placement", n);
8694
+ const o = (Z = H.offsetParent) == null ? void 0 : Z.getBoundingClientRect().left, l = (k = H.offsetParent) == null ? void 0 : k.getBoundingClientRect().width;
8695
8695
  if (Object.assign(V.style, {
8696
8696
  maxWidth: e === "dropdown" ? `${l}px` : "auto",
8697
8697
  left: e === "dropdown" ? `${o}px` : `${d}px`,
8698
8698
  top: `${t}px`,
8699
8699
  animation: `r-tooltip-show ${A}ms ease-in-out forwards`,
8700
8700
  transformOrigin: "start"
8701
- }), C && a.arrow) {
8702
- const { x: y, y: k } = a.arrow, b = {
8701
+ }), C && r.arrow) {
8702
+ const { x: y, y: B } = r.arrow, w = {
8703
8703
  top: "bottom",
8704
8704
  right: "left",
8705
8705
  bottom: "top",
8706
8706
  left: "right"
8707
8707
  /* Right */
8708
- }[r.split("-")[0]];
8708
+ }[n.split("-")[0]];
8709
8709
  Object.assign(C.style, {
8710
8710
  left: d != null ? `${y}px` : "",
8711
- top: t != null ? `${k}px` : "",
8711
+ top: t != null ? `${B}px` : "",
8712
8712
  right: "",
8713
8713
  bottom: "",
8714
- [`${b}`]: "-4px"
8714
+ [`${w}`]: "-4px"
8715
8715
  });
8716
8716
  }
8717
8717
  });
8718
8718
  }
8719
- const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__ */ x({
8719
+ const W5 = ["aria-disabled"], N5 = ["innerHTML"], I5 = ["id"], Q5 = /* @__PURE__ */ R({
8720
8720
  __name: "RTooltip",
8721
8721
  props: {
8722
- placement: { default: r2.Top },
8722
+ placement: { default: a2.Top },
8723
8723
  text: { default: "" },
8724
8724
  dark: { type: Boolean, default: !0 },
8725
8725
  light: { type: Boolean, default: !1 },
@@ -8736,28 +8736,28 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
8736
8736
  resizable: { type: Boolean, default: !0 },
8737
8737
  triggerClass: { default: "" },
8738
8738
  tooltipClass: { default: "" },
8739
- type: { default: a2.Tooltip }
8739
+ type: { default: Z2.Tooltip }
8740
8740
  },
8741
8741
  emits: ["show", "hide"],
8742
8742
  setup(H, { emit: V }) {
8743
- const C = H, M = V, i = I(), L = I(), A = I(), e = i5();
8743
+ const C = H, M = V, i = Q(), L = Q(), A = Q(), e = A5();
8744
8744
  async function d() {
8745
8745
  if (C.disabled || !L.value)
8746
8746
  return;
8747
- const k = document.querySelectorAll(".r-tooltip--active");
8748
- k.length > 0 && k.forEach((b) => {
8749
- b.style.display = "", b.classList.remove("r-tooltip--active"), b.dataset.show = "false", M("hide", b.id);
8750
- }), L.value.classList.contains("r-tooltip--active") ? t() : (B(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", M("show", L.value.id), r());
8747
+ const B = document.querySelectorAll(".r-tooltip--active");
8748
+ B.length > 0 && B.forEach((w) => {
8749
+ w.style.display = "", w.classList.remove("r-tooltip--active"), w.dataset.show = "false", M("hide", w.id);
8750
+ }), L.value.classList.contains("r-tooltip--active") ? t() : (k(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", M("show", L.value.id), n());
8751
8751
  }
8752
- function t(k = null) {
8752
+ function t(B = null) {
8753
8753
  C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", M("hide", L.value.id));
8754
8754
  }
8755
- function r() {
8755
+ function n() {
8756
8756
  C.autoHide && setTimeout(() => {
8757
8757
  t();
8758
8758
  }, C.hideDelay);
8759
8759
  }
8760
- function a(k) {
8760
+ function r(B) {
8761
8761
  C.disabled || C.triggers.includes(Y.Click) && (L.value.style.display === "block" ? t() : d());
8762
8762
  }
8763
8763
  function o() {
@@ -8767,11 +8767,11 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
8767
8767
  C.disabled || (L.value.style.display === "" && C.triggers.includes(Y.Hover) ? d() : L.value.style.display !== "" && C.triggers.includes(Y.Hover) && t());
8768
8768
  }
8769
8769
  function Z() {
8770
- C.triggers.includes(Y.Hover) && B();
8770
+ C.triggers.includes(Y.Hover) && k();
8771
8771
  }
8772
- function B(k) {
8773
- const { placement: b, offset: w, padding: W, disabled: D, showDelay: $, type: Q } = C;
8774
- D || E5(i, L, A, b, w, W, $, Q);
8772
+ function k(B) {
8773
+ const { placement: w, offset: P, padding: T, disabled: x, showDelay: U, type: N } = C;
8774
+ x || _5(i, L, A, w, P, T, U, N);
8775
8775
  }
8776
8776
  const y = h(() => ({
8777
8777
  "r-tooltip": !0,
@@ -8779,57 +8779,57 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
8779
8779
  "r-tooltip--light": C.light
8780
8780
  }));
8781
8781
  return window.onresize = () => {
8782
- C.resizable && B();
8782
+ C.resizable && k();
8783
8783
  }, document.addEventListener("scroll", () => {
8784
- B();
8785
- }), s2(
8784
+ k();
8785
+ }), c2(
8786
8786
  () => {
8787
8787
  C.disabled || (C.shown && C.triggers.includes(Y.Manual) ? d() : !C.shown && C.triggers.includes(Y.Manual) && t());
8788
8788
  },
8789
8789
  { flush: "post" }
8790
8790
  // this is important to avoid infinite loop & for fire on mounted
8791
- ), J1(() => {
8792
- C.resizable && i.value.parentElement.parentElement.addEventListener("scroll", B()), M5(i, (k) => {
8793
- L.value.classList.contains("r-tooltip--active") && a();
8794
- });
8795
- }), (k, b) => (m(), u(e1, null, [
8791
+ ), C2(() => {
8792
+ C.resizable && i.value.parentElement.parentElement.addEventListener("scroll", k()), i5(i, (B) => {
8793
+ L.value.classList.contains("r-tooltip--active") && t(B);
8794
+ }, { ignore: [L] });
8795
+ }), (B, w) => (m(), u(d1, null, [
8796
8796
  S("div", {
8797
8797
  ref_key: "trigger",
8798
8798
  ref: i,
8799
8799
  "aria-disabled": C.disabled,
8800
- class: O(["r-tooltip-trigger", k.triggerClass]),
8801
- onClick: a,
8800
+ class: O(["r-tooltip-trigger", B.triggerClass]),
8801
+ onClick: r,
8802
8802
  onMouseenter: o,
8803
8803
  onMouseleave: l,
8804
8804
  onMousemove: Z
8805
8805
  }, [
8806
- p(k.$slots, "default", {
8806
+ p(B.$slots, "default", {
8807
8807
  activators: {
8808
- click: a,
8808
+ click: r,
8809
8809
  mouseenter: o,
8810
8810
  mouseleave: l,
8811
8811
  mousemove: Z
8812
8812
  },
8813
8813
  tooltipId: J(e),
8814
- updatePosition: B
8814
+ updatePosition: k
8815
8815
  }, () => [
8816
8816
  S("div", {
8817
8817
  innerHTML: C.triggerContent
8818
- }, null, 8, W5)
8818
+ }, null, 8, N5)
8819
8819
  ])
8820
- ], 42, _5),
8821
- (m(), _(c2, { to: "body" }, [
8820
+ ], 42, W5),
8821
+ (m(), _(O2, { to: "body" }, [
8822
8822
  S("div", {
8823
8823
  id: J(e),
8824
8824
  ref_key: "tooltip",
8825
8825
  ref: L,
8826
- class: O([y.value, k.tooltipClass]),
8826
+ class: O([y.value, B.tooltipClass]),
8827
8827
  "data-show": "false",
8828
8828
  role: "tooltip"
8829
8829
  }, [
8830
- p(k.$slots, "content", {
8830
+ p(B.$slots, "content", {
8831
8831
  hide: t,
8832
- updatePosition: B
8832
+ updatePosition: k
8833
8833
  }, () => [
8834
8834
  C.text ? (m(), u("div", {
8835
8835
  key: 0,
@@ -8849,23 +8849,23 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
8849
8849
  }])
8850
8850
  }, null, 2)) : g("", !0)
8851
8851
  ])
8852
- ], 10, N5)
8852
+ ], 10, I5)
8853
8853
  ]))
8854
8854
  ], 64));
8855
8855
  }
8856
- }), Q5 = ["id", "onClick"], G5 = { class: "r-dropdown__selections" }, $5 = { key: 0 }, U5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], z5 = ["data-has-value", "onClick"], K5 = ["aria-disabled", "onClick"], q5 = { class: "flex items-center" }, j5 = {
8856
+ }), G5 = ["id", "onClick"], $5 = { class: "r-dropdown__selections" }, U5 = { key: 0 }, z5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], K5 = ["data-has-value", "onClick"], q5 = ["aria-disabled", "onClick"], j5 = { class: "flex items-center" }, X5 = {
8857
8857
  key: 0,
8858
8858
  class: "r-dropdown-options__no-option"
8859
- }, X5 = {
8859
+ }, Y5 = {
8860
8860
  key: 0,
8861
8861
  class: "r-dropdown-details"
8862
- }, Y5 = {
8862
+ }, J5 = {
8863
8863
  key: 0,
8864
8864
  class: "r-dropdown-error"
8865
- }, J5 = {
8865
+ }, C3 = {
8866
8866
  key: 1,
8867
8867
  class: "r-dropdown-hint"
8868
- }, C3 = /* @__PURE__ */ x({
8868
+ }, H3 = /* @__PURE__ */ R({
8869
8869
  __name: "RDropdown",
8870
8870
  props: {
8871
8871
  options: { default: () => [] },
@@ -8894,108 +8894,112 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
8894
8894
  },
8895
8895
  emits: ["update:modelValue"],
8896
8896
  setup(H, { emit: V }) {
8897
- const C = H, M = V, i = I({}), L = I([]), A = I(!1), e = I("");
8898
- function d(n) {
8899
- if (!n || typeof n == "object" || typeof n == "function" || typeof n == "symbol" || typeof n > "u" || Array.isArray(n))
8897
+ const C = H, M = V, i = Q({}), L = Q([]), A = Q(!1), e = Q("");
8898
+ function d(a) {
8899
+ if (!a || typeof a == "object" || typeof a == "function" || typeof a == "symbol" || typeof a > "u" || Array.isArray(a))
8900
8900
  return !0;
8901
- const [c] = Object == null ? void 0 : Object.keys(n);
8901
+ const [c] = Object == null ? void 0 : Object.keys(a);
8902
8902
  return ["label", "value"].includes(c);
8903
8903
  }
8904
8904
  const t = h(() => {
8905
- const n = C.options;
8906
- return d(n[0]) ? n : n.map((c) => ({
8905
+ const a = C.options;
8906
+ return d(a[0]) ? a : a.map((c) => ({
8907
8907
  value: c,
8908
8908
  label: String(c)
8909
8909
  }));
8910
- }), r = h(() => {
8911
- const n = C.modelValue;
8912
- return d(n) ? n : {
8913
- value: n,
8914
- label: String(n)
8910
+ }), n = h(() => {
8911
+ const a = C.modelValue;
8912
+ return d(a) ? a : {
8913
+ value: a,
8914
+ label: String(a)
8915
8915
  };
8916
- }), a = I(), o = I(), l = I();
8917
- function Z(n) {
8918
- var F, s, T, N;
8919
- if (console.log(n, "val"), C.disabled)
8916
+ }), r = Q(), o = Q(), l = Q();
8917
+ function Z(a) {
8918
+ var W, s, D, I;
8919
+ if (C.disabled)
8920
8920
  return;
8921
- const c = document.getElementById(n);
8922
- document.querySelectorAll(".r-dropdown--active").forEach((R) => {
8923
- var U;
8924
- R.id !== ((U = a.value) == null ? void 0 : U.id) && R.classList.contains("r-dropdown--active") && (R.childNodes.forEach((q) => {
8925
- q != null && q.classList && (Object == null || Object.values(q == null ? void 0 : q.classList).filter((P1) => P1.includes("--active")).forEach((P1) => {
8926
- q == null || q.classList.remove(P1);
8921
+ const c = document.getElementById(a);
8922
+ document.querySelectorAll(".r-dropdown--active").forEach((F) => {
8923
+ var i1;
8924
+ F.id !== ((i1 = r.value) == null ? void 0 : i1.id) && F.classList.contains("r-dropdown--active") && (F.childNodes.forEach((X) => {
8925
+ X != null && X.classList && (Object == null || Object.values(X == null ? void 0 : X.classList).filter((T1) => T1.includes("--active")).forEach((T1) => {
8926
+ X == null || X.classList.remove(T1);
8927
8927
  }));
8928
- }), R.classList.remove("r-dropdown--active"));
8929
- }), c != null && c.classList.contains("r-dropdown--active") ? (c.classList.remove("r-dropdown--active"), A.value = !1, (F = a.value) == null || F.blur(), (s = o.value) == null || s.blur()) : (c == null || c.classList.add("r-dropdown--active"), A.value = !0, (T = a.value) == null || T.focus(), (N = o.value) == null || N.focus(), c == null || c.childNodes.forEach((R) => {
8930
- R != null && R.classList && (Object == null || Object.values(R == null ? void 0 : R.classList).forEach((U) => {
8931
- R == null || R.classList.add(`${U}--active`);
8928
+ }), F.classList.remove("r-dropdown--active"));
8929
+ }), c != null && c.classList.contains("r-dropdown--active") ? (c.classList.remove("r-dropdown--active"), A.value = !1, (W = r.value) == null || W.blur(), (s = o.value) == null || s.blur()) : (c == null || c.classList.add("r-dropdown--active"), A.value = !0, (D = r.value) == null || D.focus(), (I = o.value) == null || I.focus(), c == null || c.childNodes.forEach((F) => {
8930
+ F != null && F.classList && (Object == null || Object.values(F == null ? void 0 : F.classList).forEach((i1) => {
8931
+ F == null || F.classList.add(`${i1}--active`);
8932
8932
  }));
8933
8933
  }));
8934
8934
  }
8935
- function B(n, c, P, F) {
8936
- var s, T;
8937
- if (F(), !c.disabled) {
8935
+ function k(a) {
8936
+ const c = document.getElementById(a);
8937
+ c != null && c.classList.contains("r-dropdown--active") && (c.classList.remove("r-dropdown--active"), A.value = !1);
8938
+ }
8939
+ function y(a, c, b, W) {
8940
+ var s, D;
8941
+ if (W(), !c.disabled) {
8938
8942
  if (C.multiple) {
8939
- L.value.find((N) => N.value === c.value) ? L.value.splice(L.value.indexOf(c), 1) : L.value.push(c), e.value = "", C.searchable && ((s = o.value) == null || s.focus());
8943
+ L.value.find((I) => I.value === c.value) ? L.value.splice(L.value.indexOf(c), 1) : L.value.push(c), e.value = "", C.searchable && ((s = o.value) == null || s.focus());
8940
8944
  return;
8941
8945
  }
8942
- y(n, c), C.closeOnSelect && (P(), Z((T = a.value) == null ? void 0 : T.id));
8946
+ B(a, c), C.closeOnSelect && (b(), Z((D = r.value) == null ? void 0 : D.id));
8943
8947
  }
8944
8948
  }
8945
- function y(n, c) {
8949
+ function B(a, c) {
8946
8950
  if (i.value.value === c.value) {
8947
8951
  i.value = {}, e.value = "", M("update:modelValue", "");
8948
8952
  return;
8949
8953
  }
8950
8954
  e.value = c.label, i.value = c, M("update:modelValue", c);
8951
8955
  }
8952
- function k(n, c, P) {
8953
- if (n instanceof KeyboardEvent && n.key !== "Backspace" || e.value !== "")
8956
+ function w(a, c, b) {
8957
+ if (a instanceof KeyboardEvent && a.key !== "Backspace" || e.value !== "")
8954
8958
  return;
8955
- n.stopPropagation(), P();
8956
- const F = L.value.findIndex((s) => s.value === c.value);
8957
- L.value.splice(F, 1);
8959
+ a.stopPropagation(), b();
8960
+ const W = L.value.findIndex((s) => s.value === c.value);
8961
+ L.value.splice(W, 1);
8958
8962
  }
8959
- function b(n, c) {
8963
+ function P(a, c) {
8960
8964
  var s;
8961
8965
  if (!C.multiple)
8962
8966
  return;
8963
- n.stopPropagation(), c();
8964
- const P = e.value;
8965
- if (P === "")
8967
+ a.stopPropagation(), c();
8968
+ const b = e.value;
8969
+ if (b === "")
8966
8970
  return;
8967
- t.value.find((T) => T.label === P) || (L.value.push({ value: P, label: P }), e.value = "", (s = o.value) == null || s.focus());
8971
+ t.value.find((D) => D.label === b) || (L.value.push({ value: b, label: b }), e.value = "", (s = o.value) == null || s.focus());
8968
8972
  }
8969
- function w(n) {
8973
+ function T(a) {
8970
8974
  var c;
8971
- return !n || (n == null ? void 0 : n.value) === void 0 || (n == null ? void 0 : n.value) === null ? !1 : C.multiple ? L.value.find((P) => (P == null ? void 0 : P.value) === (n == null ? void 0 : n.value)) : ((c = i.value) == null ? void 0 : c.value) === (n == null ? void 0 : n.value);
8975
+ return !a || (a == null ? void 0 : a.value) === void 0 || (a == null ? void 0 : a.value) === null ? !1 : C.multiple ? L.value.find((b) => (b == null ? void 0 : b.value) === (a == null ? void 0 : a.value)) : ((c = i.value) == null ? void 0 : c.value) === (a == null ? void 0 : a.value);
8972
8976
  }
8973
- const W = h(() => !C.searchable || i.value.label === e.value ? t.value : t.value.filter((c) => c.label.toLowerCase().includes(e.value.toLowerCase()))), D = h(() => !C.searchable);
8974
- function $() {
8975
- r.value ? C.multiple ? L.value = r.value : (i.value = r.value, e.value = r.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
8977
+ const x = h(() => !C.searchable || i.value.label === e.value ? t.value : t.value.filter((c) => c.label.toLowerCase().includes(e.value.toLowerCase()))), U = h(() => !C.searchable);
8978
+ function N() {
8979
+ n.value ? C.multiple ? L.value = n.value : (i.value = n.value, e.value = n.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
8976
8980
  }
8977
- function Q(n) {
8978
- C.searchable && n(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
8981
+ function f(a) {
8982
+ C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
8979
8983
  }
8980
- function f(n, c) {
8981
- if (n.stopPropagation(), c(), C.multiple) {
8984
+ function G(a, c) {
8985
+ if (a.stopPropagation(), c(), C.multiple) {
8982
8986
  L.value.splice(0, L.value.length);
8983
8987
  return;
8984
8988
  }
8985
8989
  i.value = {}, e.value = "", M("update:modelValue", "");
8986
8990
  }
8987
- return J1(() => {
8988
- $(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
8989
- }), G(L, (n) => {
8990
- M("update:modelValue", n);
8991
- }), G(() => r.value, (n) => {
8992
- $();
8993
- }), (n, c) => (m(), u("div", {
8991
+ return C2(() => {
8992
+ N(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1");
8993
+ }), $(L, (a) => {
8994
+ M("update:modelValue", a);
8995
+ }), $(() => n.value, (a) => {
8996
+ N();
8997
+ }), (a, c) => (m(), u("div", {
8994
8998
  ref_key: "wrapper",
8995
8999
  ref: l,
8996
9000
  class: "r-dropdown-wrapper"
8997
9001
  }, [
8998
- j(I5, {
9002
+ q(Q5, {
8999
9003
  "auto-hide": !1,
9000
9004
  offset: 0,
9001
9005
  placement: "bottom",
@@ -9003,13 +9007,16 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9003
9007
  "tooltip-class": ["w-full", C.tooltipClass],
9004
9008
  "trigger-class": "w-full",
9005
9009
  triggers: ["click"],
9006
- type: "dropdown"
9010
+ type: "dropdown",
9011
+ onHide: c[1] || (c[1] = (b) => {
9012
+ k(b);
9013
+ })
9007
9014
  }, {
9008
- default: h1(({ updatePosition: P, tooltipId: F }) => [
9015
+ default: g1(({ updatePosition: b, tooltipId: W }) => [
9009
9016
  S("div", {
9010
- id: F,
9017
+ id: W,
9011
9018
  ref_key: "dropdown",
9012
- ref: a,
9019
+ ref: r,
9013
9020
  class: O(["r-dropdown", {
9014
9021
  "r-dropdown--disabled": C.disabled,
9015
9022
  "r-dropdown--loading": C.loading,
@@ -9018,16 +9025,16 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9018
9025
  group: e.value !== "" || L.value.length
9019
9026
  }]),
9020
9027
  role: "select",
9021
- onClick: (s) => Z(F)
9028
+ onClick: (s) => Z(W)
9022
9029
  }, [
9023
- C.prependIcon || n.$slots.prepend ? (m(), u("div", {
9030
+ C.prependIcon || a.$slots.prepend ? (m(), u("div", {
9024
9031
  key: 0,
9025
9032
  class: O(["r-dropdown__prepend-icon", {
9026
9033
  "r-dropdown__prepend-icon--active": A.value,
9027
9034
  "r-dropdown__prepend-icon--error": C.errorMsg
9028
9035
  }])
9029
9036
  }, [
9030
- p(n.$slots, "prepend", {
9037
+ p(a.$slots, "prepend", {
9031
9038
  active: A.value,
9032
9039
  disabled: C.disabled,
9033
9040
  error: C.errorMsg.length,
@@ -9039,24 +9046,24 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9039
9046
  }, null, 8, ["name"])) : g("", !0)
9040
9047
  ])
9041
9048
  ], 2)) : g("", !0),
9042
- S("div", G5, [
9043
- (m(!0), u(e1, null, o1(L.value, (s, T) => p(n.$slots, "selection", {
9044
- key: T,
9045
- index: T,
9049
+ S("div", $5, [
9050
+ (m(!0), u(d1, null, n1(L.value, (s, D) => p(a.$slots, "selection", {
9051
+ key: D,
9052
+ index: D,
9046
9053
  option: s,
9047
- removeOption: k
9054
+ removeOption: w
9048
9055
  }, () => [
9049
- C.chips ? (m(), _(Y2, {
9056
+ C.chips ? (m(), _(J2, {
9050
9057
  key: 1,
9051
9058
  clearable: !C.hideChipClear,
9052
9059
  ghost: "",
9053
9060
  label: s.label,
9054
9061
  "no-wrap": "",
9055
9062
  variant: "primary",
9056
- "onClick:close": (N) => k(N, s, P)
9057
- }, null, 8, ["clearable", "label", "onClick:close"])) : (m(), u("p", $5, v(`${s.label}, `), 1))
9063
+ "onClick:close": (I) => w(I, s, b)
9064
+ }, null, 8, ["clearable", "label", "onClick:close"])) : (m(), u("p", U5, v(`${s.label}, `), 1))
9058
9065
  ])), 128)),
9059
- C2(S("input", {
9066
+ H2(S("input", {
9060
9067
  id: C.id,
9061
9068
  ref_key: "input",
9062
9069
  ref: o,
@@ -9067,39 +9074,39 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9067
9074
  }]),
9068
9075
  disabled: C.disabled,
9069
9076
  placeholder: C.placeholder,
9070
- readonly: D.value,
9077
+ readonly: U.value,
9071
9078
  role: "presentation",
9072
9079
  type: "text",
9073
- onInput: n1((s) => Q(P), ["prevent"]),
9080
+ onInput: r1((s) => f(b), ["prevent"]),
9074
9081
  onKeydown: [
9075
- Q1((s) => k(s, L.value[L.value.length - 1], P), ["backspace"]),
9076
- Q1((s) => b(s, P), ["enter"])
9082
+ G1((s) => w(s, L.value[L.value.length - 1], b), ["backspace"]),
9083
+ G1((s) => P(s, b), ["enter"])
9077
9084
  ]
9078
- }, null, 42, U5), [
9079
- [O2, e.value]
9085
+ }, null, 42, z5), [
9086
+ [p2, e.value]
9080
9087
  ])
9081
9088
  ]),
9082
9089
  C.clearable ? (m(), u("div", {
9083
9090
  key: 1,
9084
9091
  class: "r-dropdown__clearable",
9085
9092
  "data-has-value": (e.value !== "" || L.value.length) && A.value,
9086
- onClick: (s) => f(s, P)
9093
+ onClick: (s) => G(s, b)
9087
9094
  }, [
9088
- p(n.$slots, "clearable", {}, () => [
9089
- j(E, {
9095
+ p(a.$slots, "clearable", {}, () => [
9096
+ q(E, {
9090
9097
  name: "mdiCloseCircle",
9091
9098
  size: "18"
9092
9099
  })
9093
9100
  ])
9094
- ], 8, z5)) : g("", !0),
9095
- C.appendIcon || n.$slots.append ? (m(), u("div", {
9101
+ ], 8, K5)) : g("", !0),
9102
+ C.appendIcon || a.$slots.append ? (m(), u("div", {
9096
9103
  key: 2,
9097
9104
  class: O(["r-dropdown__append-icon", {
9098
9105
  "r-dropdown__append-icon--active": A.value,
9099
9106
  "r-dropdown__append-icon--error": C.errorMsg
9100
9107
  }])
9101
9108
  }, [
9102
- p(n.$slots, "append", {
9109
+ p(a.$slots, "append", {
9103
9110
  active: A.value,
9104
9111
  disabled: C.disabled,
9105
9112
  error: C.errorMsg.length,
@@ -9111,77 +9118,77 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9111
9118
  }, null, 8, ["name"])) : g("", !0)
9112
9119
  ])
9113
9120
  ], 2)) : g("", !0)
9114
- ], 10, Q5)
9121
+ ], 10, G5)
9115
9122
  ]),
9116
- content: h1(({ hide: P, updatePosition: F }) => [
9123
+ content: g1(({ hide: b, updatePosition: W }) => [
9117
9124
  S("ul", {
9118
9125
  class: O(["r-dropdown-options", {
9119
9126
  "r-dropdown-options--active": A.value,
9120
9127
  [C.optionsClass]: C.optionsClass
9121
9128
  }])
9122
9129
  }, [
9123
- (m(!0), u(e1, null, o1(W.value, (s) => (m(), u("li", {
9130
+ (m(!0), u(d1, null, n1(x.value, (s) => (m(), u("li", {
9124
9131
  key: s.value,
9125
9132
  "aria-disabled": s.disabled,
9126
9133
  class: O(["r-dropdown-options__option", {
9127
- "r-dropdown-options__option--active": w(s),
9134
+ "r-dropdown-options__option--active": T(s),
9128
9135
  "r-dropdown-options__option--disabled": s.disabled
9129
9136
  }]),
9130
- onClick: n1((T) => B(T, s, P, F), ["prevent"])
9137
+ onClick: r1((D) => y(D, s, b, W), ["prevent"])
9131
9138
  }, [
9132
- p(n.$slots, "option", {
9139
+ p(a.$slots, "option", {
9133
9140
  disabled: s.disabled,
9134
- isSelected: w(s)
9141
+ isSelected: T(s)
9135
9142
  }, () => [
9136
- S("div", q5, [
9137
- p(n.$slots, "option-prepend", {
9143
+ S("div", j5, [
9144
+ p(a.$slots, "option-prepend", {
9138
9145
  disabled: s.disabled,
9139
- isSelected: w(s)
9146
+ isSelected: T(s)
9140
9147
  }, () => [
9141
9148
  s.prependIcon ? (m(), _(E, {
9142
9149
  key: 0,
9143
9150
  class: O(["r-dropdown-options__option__prepend-icon", {
9144
- "r-dropdown-options__option__prepend-icon--active": w(s)
9151
+ "r-dropdown-options__option__prepend-icon--active": T(s)
9145
9152
  }]),
9146
9153
  name: s.prependIcon
9147
9154
  }, null, 8, ["class", "name"])) : g("", !0)
9148
9155
  ]),
9149
9156
  S("p", {
9150
9157
  class: O(["r-dropdown-options__option__label", {
9151
- "r-dropdown-options__option__label--active": w(s)
9158
+ "r-dropdown-options__option__label--active": T(s)
9152
9159
  }])
9153
9160
  }, v(s.label), 3)
9154
9161
  ]),
9155
- p(n.$slots, "option-append", {
9162
+ p(a.$slots, "option-append", {
9156
9163
  disabled: s.disabled,
9157
- isSelected: w(s)
9164
+ isSelected: T(s)
9158
9165
  }, () => [
9159
- w(s) && !C.hideOptionCheckIcon ? (m(), _(E, {
9166
+ T(s) && !C.hideOptionCheckIcon ? (m(), _(E, {
9160
9167
  key: 0,
9161
9168
  class: O(["r-dropdown-options__option__append-icon", {
9162
- "r-dropdown-options__option__append-icon--active": w(s)
9169
+ "r-dropdown-options__option__append-icon--active": T(s)
9163
9170
  }]),
9164
9171
  name: "mdiCheck"
9165
9172
  }, null, 8, ["class"])) : g("", !0)
9166
9173
  ])
9167
9174
  ])
9168
- ], 10, K5))), 128)),
9169
- W.value.length === 0 ? (m(), u("li", j5, [
9170
- p(n.$slots, "not-options", {}, () => [
9171
- u1(v(C.multiple ? "No options hit to enter for create" : C.noOptionsText), 1)
9175
+ ], 10, q5))), 128)),
9176
+ x.value.length === 0 ? (m(), u("li", X5, [
9177
+ p(a.$slots, "not-options", {}, () => [
9178
+ S1(v(C.multiple ? "No options hit to enter for create" : C.noOptionsText), 1)
9172
9179
  ])
9173
9180
  ])) : g("", !0)
9174
9181
  ], 2)
9175
9182
  ]),
9176
9183
  _: 3
9177
9184
  }, 8, ["tooltip-class"]),
9178
- n.$props.hideDetails ? g("", !0) : (m(), u("div", X5, [
9179
- C.errorMsg ? (m(), u("div", Y5, v(C.errorMsg), 1)) : g("", !0),
9180
- C.hint ? (m(), u("div", J5, v(C.hint), 1)) : g("", !0)
9185
+ a.$props.hideDetails ? g("", !0) : (m(), u("div", Y5, [
9186
+ C.errorMsg ? (m(), u("div", J5, v(C.errorMsg), 1)) : g("", !0),
9187
+ C.hint ? (m(), u("div", C3, v(C.hint), 1)) : g("", !0)
9181
9188
  ]))
9182
9189
  ], 512));
9183
9190
  }
9184
- }), H3 = ["id", "for"], Z2 = /* @__PURE__ */ x({
9191
+ }), V3 = ["id", "for"], u2 = /* @__PURE__ */ R({
9185
9192
  __name: "RLabel",
9186
9193
  props: {
9187
9194
  id: { default: "" },
@@ -9196,20 +9203,20 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9196
9203
  for: V.for
9197
9204
  }, [
9198
9205
  p(C.$slots, "default", {}, () => [
9199
- u1(v(V.text), 1)
9206
+ S1(v(V.text), 1)
9200
9207
  ])
9201
- ], 8, H3));
9208
+ ], 8, V3));
9202
9209
  }
9203
- }), V3 = ["onClick"], L3 = ["open"], M3 = { class: "r-dialog__header" }, i3 = {
9210
+ }), L3 = ["onClick"], M3 = ["open"], i3 = { class: "r-dialog__header" }, A3 = {
9204
9211
  key: 0,
9205
9212
  class: "icon"
9206
- }, A3 = {
9213
+ }, e3 = {
9207
9214
  key: 1,
9208
9215
  class: "title"
9209
- }, e3 = {
9216
+ }, d3 = {
9210
9217
  key: 2,
9211
9218
  class: "description"
9212
- }, d3 = { class: "r-dialog__body" }, t3 = { class: "r-dialog__actions" }, l0 = /* @__PURE__ */ x({
9219
+ }, t3 = { class: "r-dialog__body" }, m3 = { class: "r-dialog__actions" }, o0 = /* @__PURE__ */ R({
9213
9220
  __name: "RModal",
9214
9221
  props: {
9215
9222
  modelValue: { type: Boolean, default: !1 },
@@ -9238,43 +9245,43 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9238
9245
  function A(e) {
9239
9246
  C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
9240
9247
  }
9241
- return p2(() => {
9248
+ return f2(() => {
9242
9249
  !C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
9243
9250
  }), window.addEventListener("keydown", (e) => {
9244
9251
  e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9245
- }), (e, d) => C2((m(), u("div", {
9252
+ }), (e, d) => H2((m(), u("div", {
9246
9253
  class: O(["r-modal-overlay", e.overlayClass]),
9247
- onClick: n1(A, ["stop"])
9254
+ onClick: r1(A, ["stop"])
9248
9255
  }, [
9249
9256
  S("div", {
9250
9257
  "aria-modal": "true",
9251
9258
  class: O(i.value),
9252
9259
  open: C.modelValue,
9253
9260
  role: "dialog",
9254
- style: E1(L.value)
9261
+ style: _1(L.value)
9255
9262
  }, [
9256
- S("div", M3, [
9263
+ S("div", i3, [
9257
9264
  p(e.$slots, "header"),
9258
- C.icon ? (m(), u("div", i3, [
9259
- j(E, {
9265
+ C.icon ? (m(), u("div", A3, [
9266
+ q(E, {
9260
9267
  name: C.icon
9261
9268
  }, null, 8, ["name"])
9262
9269
  ])) : g("", !0),
9263
- C.title ? (m(), u("div", A3, v(C.title), 1)) : g("", !0),
9264
- C.description ? (m(), u("div", e3, v(C.description), 1)) : g("", !0)
9270
+ C.title ? (m(), u("div", e3, v(C.title), 1)) : g("", !0),
9271
+ C.description ? (m(), u("div", d3, v(C.description), 1)) : g("", !0)
9265
9272
  ]),
9266
- S("div", d3, [
9273
+ S("div", t3, [
9267
9274
  p(e.$slots, "default")
9268
9275
  ]),
9269
- S("div", t3, [
9276
+ S("div", m3, [
9270
9277
  p(e.$slots, "actions")
9271
9278
  ])
9272
- ], 14, L3)
9273
- ], 10, V3)), [
9274
- [f2, e.modelValue]
9279
+ ], 14, M3)
9280
+ ], 10, L3)), [
9281
+ [h2, e.modelValue]
9275
9282
  ]);
9276
9283
  }
9277
- }), m3 = ["data-open"], l3 = ["data-open"], o3 = ["data-open"], o0 = /* @__PURE__ */ x({
9284
+ }), l3 = ["data-open"], o3 = ["data-open"], n3 = ["data-open"], n0 = /* @__PURE__ */ R({
9278
9285
  __name: "RSidebar",
9279
9286
  props: {
9280
9287
  modelValue: { type: Boolean, default: !1 },
@@ -9297,7 +9304,7 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9297
9304
  p(i.$slots, "default", {
9298
9305
  open: C.modelValue
9299
9306
  })
9300
- ], 10, l3),
9307
+ ], 10, o3),
9301
9308
  C.showTrigger ? (m(), u("div", {
9302
9309
  key: 0,
9303
9310
  class: O(["r-sidebar__trigger", [C.triggerClass]]),
@@ -9307,12 +9314,12 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9307
9314
  p(i.$slots, "trigger", {
9308
9315
  open: C.modelValue
9309
9316
  }, () => [
9310
- u1(" > ")
9317
+ S1(" > ")
9311
9318
  ])
9312
- ], 10, o3)) : g("", !0)
9313
- ], 10, m3));
9319
+ ], 10, n3)) : g("", !0)
9320
+ ], 10, l3));
9314
9321
  }
9315
- }), n3 = { class: "r-snackbar__text" }, n0 = /* @__PURE__ */ x({
9322
+ }), r3 = { class: "r-snackbar__text" }, r0 = /* @__PURE__ */ R({
9316
9323
  __name: "RSnackbar",
9317
9324
  props: {
9318
9325
  modelValue: { type: Boolean, default: !1 },
@@ -9326,7 +9333,7 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9326
9333
  emits: ["action", "update:modelValue"],
9327
9334
  setup(H, { emit: V }) {
9328
9335
  const C = H, M = V;
9329
- G(
9336
+ $(
9330
9337
  () => C.modelValue,
9331
9338
  () => {
9332
9339
  C.timeout > 0 && C.modelValue && setTimeout(() => {
@@ -9360,18 +9367,18 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9360
9367
  name: L.value
9361
9368
  }, null, 8, ["name"])) : g("", !0)
9362
9369
  ]),
9363
- S("div", n3, [
9370
+ S("div", r3, [
9364
9371
  p(A.$slots, "default", {}, () => [
9365
- u1(v(C.text), 1)
9372
+ S1(v(C.text), 1)
9366
9373
  ])
9367
9374
  ]),
9368
9375
  C.closable ? (m(), u("div", {
9369
9376
  key: 0,
9370
9377
  class: "r-snackbar__close",
9371
- onClick: e[0] || (e[0] = n1((d) => A.$emit("update:modelValue", !1), ["stop"]))
9378
+ onClick: e[0] || (e[0] = r1((d) => A.$emit("update:modelValue", !1), ["stop"]))
9372
9379
  }, [
9373
9380
  p(A.$slots, "close", {}, () => [
9374
- j(E, {
9381
+ q(E, {
9375
9382
  name: "mdiClose",
9376
9383
  size: 16
9377
9384
  })
@@ -9379,16 +9386,16 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9379
9386
  ])) : g("", !0)
9380
9387
  ], 2));
9381
9388
  }
9382
- }), r3 = ["id", "checked", "disabled"], a3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), Z3 = ["id", "for"], u3 = {
9389
+ }), a3 = ["id", "checked", "disabled"], Z3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), u3 = ["id", "for"], S3 = {
9383
9390
  key: 0,
9384
9391
  class: "r-switch-texts__details"
9385
- }, S3 = {
9392
+ }, s3 = {
9386
9393
  key: 0,
9387
9394
  class: "r-switch-texts__error"
9388
- }, s3 = {
9395
+ }, c3 = {
9389
9396
  key: 1,
9390
9397
  class: "r-switch-texts__hint"
9391
- }, r0 = /* @__PURE__ */ x({
9398
+ }, a0 = /* @__PURE__ */ R({
9392
9399
  __name: "RSwitch",
9393
9400
  props: {
9394
9401
  id: { default: "switch" },
@@ -9403,7 +9410,7 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9403
9410
  },
9404
9411
  emits: ["update:modelValue"],
9405
9412
  setup(H, { emit: V }) {
9406
- const C = H, M = V, i = Z1({
9413
+ const C = H, M = V, i = u1({
9407
9414
  checked: !1
9408
9415
  }), L = h(() => ({
9409
9416
  "r-switch": !0,
@@ -9414,7 +9421,7 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9414
9421
  function A(e) {
9415
9422
  C.disabled || (i.checked = e.target.checked, M("update:modelValue", i.checked));
9416
9423
  }
9417
- return G(
9424
+ return $(
9418
9425
  () => C.modelValue,
9419
9426
  (e) => {
9420
9427
  i.checked = e;
@@ -9440,8 +9447,8 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9440
9447
  disabled: C.disabled,
9441
9448
  type: "checkbox",
9442
9449
  onChange: A
9443
- }, null, 40, r3),
9444
- a3
9450
+ }, null, 40, a3),
9451
+ Z3
9445
9452
  ], 2),
9446
9453
  S("div", {
9447
9454
  class: O(["r-switch-texts", {
@@ -9452,20 +9459,20 @@ const _5 = ["aria-disabled"], W5 = ["innerHTML"], N5 = ["id"], I5 = /* @__PURE__
9452
9459
  id: `${C.id}-label`,
9453
9460
  class: "r-switch-texts__label",
9454
9461
  for: C.id
9455
- }, v(C.label), 9, Z3),
9456
- C.hideDetails ? g("", !0) : (m(), u("div", u3, [
9457
- C.errorMsg ? (m(), u("p", S3, v(C.errorMsg), 1)) : (m(), u("p", s3, v(C.hint), 1))
9462
+ }, v(C.label), 9, u3),
9463
+ C.hideDetails ? g("", !0) : (m(), u("div", S3, [
9464
+ C.errorMsg ? (m(), u("p", s3, v(C.errorMsg), 1)) : (m(), u("p", c3, v(C.hint), 1))
9458
9465
  ]))
9459
9466
  ], 2)
9460
9467
  ], 2));
9461
9468
  }
9462
9469
  });
9463
- var l1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(l1 || {});
9464
- const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 = /* @__PURE__ */ x({
9470
+ var o1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(o1 || {});
9471
+ const O3 = ["aria-disabled", "aria-selected", "disabled"], p3 = { key: 0 }, f3 = /* @__PURE__ */ R({
9465
9472
  __name: "RTabItem",
9466
9473
  props: {
9467
9474
  id: {},
9468
- variant: { default: l1.DEFAULT },
9475
+ variant: { default: o1.DEFAULT },
9469
9476
  label: { default: "" },
9470
9477
  prependIcon: { default: "" },
9471
9478
  appendIcon: { default: "" },
@@ -9493,41 +9500,41 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9493
9500
  "aria-selected": A.value,
9494
9501
  class: O(i.value),
9495
9502
  disabled: C.disabled,
9496
- style: E1(L.value),
9497
- onClick: t[0] || (t[0] = n1((r) => e(C.id), ["stop"]))
9503
+ style: _1(L.value),
9504
+ onClick: t[0] || (t[0] = r1((n) => e(C.id), ["stop"]))
9498
9505
  }, [
9499
9506
  p(d.$slots, "prepend", {
9500
9507
  active: A.value,
9501
9508
  disabled: C.disabled
9502
9509
  }, () => [
9503
- C.variant !== J(l1).TEXT && C.prependIcon ? (m(), _(E, {
9510
+ C.variant !== J(o1).TEXT && C.prependIcon ? (m(), _(E, {
9504
9511
  key: 0,
9505
9512
  class: "r-tab-item__prepend-icon",
9506
9513
  name: C.prependIcon,
9507
9514
  size: 16
9508
9515
  }, null, 8, ["name"])) : g("", !0)
9509
9516
  ]),
9510
- C.variant !== J(l1).ICON ? (m(), u("span", O3, [
9517
+ C.variant !== J(o1).ICON ? (m(), u("span", p3, [
9511
9518
  p(d.$slots, "default", {
9512
9519
  label: C.label
9513
9520
  }, () => [
9514
- u1(v(C.label), 1)
9521
+ S1(v(C.label), 1)
9515
9522
  ])
9516
9523
  ])) : g("", !0),
9517
9524
  p(d.$slots, "append", {
9518
9525
  active: A.value,
9519
9526
  disabled: C.disabled
9520
9527
  }, () => [
9521
- C.variant !== J(l1).TEXT && C.appendIcon ? (m(), _(E, {
9528
+ C.variant !== J(o1).TEXT && C.appendIcon ? (m(), _(E, {
9522
9529
  key: 0,
9523
9530
  class: "r-tab-item__append-icon",
9524
9531
  name: C.appendIcon,
9525
9532
  size: 16
9526
9533
  }, null, 8, ["name"])) : g("", !0)
9527
9534
  ])
9528
- ], 14, c3));
9535
+ ], 14, O3));
9529
9536
  }
9530
- }), a0 = /* @__PURE__ */ x({
9537
+ }), Z0 = /* @__PURE__ */ R({
9531
9538
  __name: "RTabs",
9532
9539
  props: {
9533
9540
  tabs: { default: () => [] },
@@ -9538,16 +9545,16 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9538
9545
  },
9539
9546
  emits: ["update:modelValue"],
9540
9547
  setup(H, { emit: V }) {
9541
- const C = H, M = V, i = I(C.modelValue || C.tabs[0].id), L = h(() => ({
9548
+ const C = H, M = V, i = Q(C.modelValue || C.tabs[0].id), L = h(() => ({
9542
9549
  "r-tabs": !0,
9543
9550
  "r-tabs--tile": C.tile
9544
9551
  }));
9545
- return G(
9552
+ return $(
9546
9553
  () => i.value,
9547
9554
  () => {
9548
9555
  M("update:modelValue", i.value);
9549
9556
  }
9550
- ), G(
9557
+ ), $(
9551
9558
  () => C.modelValue,
9552
9559
  () => {
9553
9560
  i.value = C.modelValue;
@@ -9566,11 +9573,11 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9566
9573
  }]])
9567
9574
  }, [
9568
9575
  p(A.$slots, "default", { activeTab: i.value }, () => [
9569
- (m(!0), u(e1, null, o1(C.tabs, (d, t) => (m(), _(p3, {
9576
+ (m(!0), u(d1, null, n1(C.tabs, (d, t) => (m(), _(f3, {
9570
9577
  id: d.id,
9571
9578
  key: t,
9572
9579
  modelValue: i.value,
9573
- "onUpdate:modelValue": e[0] || (e[0] = (r) => i.value = r),
9580
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => i.value = n),
9574
9581
  active: t === i.value,
9575
9582
  "append-icon": d.appendIcon,
9576
9583
  block: A.block,
@@ -9584,16 +9591,16 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9584
9591
  ], 2)
9585
9592
  ], 2));
9586
9593
  }
9587
- }), f3 = { class: "r-textarea-wrapper" }, h3 = ["id", "disabled", "placeholder", "value"], g3 = {
9594
+ }), h3 = { class: "r-textarea-wrapper" }, g3 = ["id", "disabled", "placeholder", "value"], k3 = {
9588
9595
  key: 1,
9589
9596
  class: "r-textarea__details"
9590
- }, k3 = {
9597
+ }, B3 = {
9591
9598
  key: 0,
9592
9599
  class: "r-textarea__error"
9593
- }, B3 = {
9600
+ }, b3 = {
9594
9601
  key: 1,
9595
9602
  class: "r-textarea__hint"
9596
- }, Z0 = /* @__PURE__ */ x({
9603
+ }, u0 = /* @__PURE__ */ R({
9597
9604
  __name: "RTextArea",
9598
9605
  props: {
9599
9606
  id: { default: "" },
@@ -9607,13 +9614,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9607
9614
  },
9608
9615
  emits: ["update:modelValue"],
9609
9616
  setup(H, { emit: V }) {
9610
- const C = H, M = V, i = Z1({
9617
+ const C = H, M = V, i = u1({
9611
9618
  value: ""
9612
9619
  });
9613
9620
  function L(A) {
9614
9621
  M("update:modelValue", A.target.value);
9615
9622
  }
9616
- return G(
9623
+ return $(
9617
9624
  () => C.modelValue,
9618
9625
  (A) => {
9619
9626
  i.value = A;
@@ -9621,15 +9628,15 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9621
9628
  {
9622
9629
  immediate: !0
9623
9630
  }
9624
- ), (A, e) => (m(), u("div", f3, [
9625
- C.label ? (m(), _(Z2, {
9631
+ ), (A, e) => (m(), u("div", h3, [
9632
+ C.label ? (m(), _(u2, {
9626
9633
  key: 0,
9627
9634
  id: `${C.id}-label`,
9628
9635
  class: "r-textarea__label",
9629
9636
  for: "textarea",
9630
9637
  text: C.label
9631
9638
  }, null, 8, ["id", "text"])) : g("", !0),
9632
- S("textarea", Y1(A.$attrs, {
9639
+ S("textarea", J1(A.$attrs, {
9633
9640
  id: C.id,
9634
9641
  class: ["r-textarea", {
9635
9642
  "r-textarea--error": C.errorMsg,
@@ -9639,22 +9646,22 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9639
9646
  placeholder: C.placeholder,
9640
9647
  value: i.value,
9641
9648
  onInput: L
9642
- }), null, 16, h3),
9643
- C.hideDetails ? g("", !0) : (m(), u("div", g3, [
9644
- C.errorMsg ? (m(), u("p", k3, v(C.errorMsg), 1)) : (m(), u("p", B3, v(C.hint), 1))
9649
+ }), null, 16, g3),
9650
+ C.hideDetails ? g("", !0) : (m(), u("div", k3, [
9651
+ C.errorMsg ? (m(), u("p", B3, v(C.errorMsg), 1)) : (m(), u("p", b3, v(C.hint), 1))
9645
9652
  ]))
9646
9653
  ]));
9647
9654
  }
9648
- }), b3 = { class: "r-textfield__wrapper" }, w3 = { class: "input-wrapper" }, y3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], v3 = {
9655
+ }), w3 = { class: "r-textfield__wrapper" }, y3 = { class: "input-wrapper" }, v3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], P3 = {
9649
9656
  key: 0,
9650
9657
  class: "r-textfield__details"
9651
- }, P3 = {
9658
+ }, T3 = {
9652
9659
  key: 0,
9653
9660
  class: "r-textfield__error"
9654
- }, T3 = {
9661
+ }, F3 = {
9655
9662
  key: 1,
9656
9663
  class: "r-textfield__hint"
9657
- }, u0 = /* @__PURE__ */ x({
9664
+ }, S0 = /* @__PURE__ */ R({
9658
9665
  __name: "RTextfield",
9659
9666
  props: {
9660
9667
  id: { default: "" },
@@ -9684,24 +9691,24 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9684
9691
  "click:clear"
9685
9692
  ],
9686
9693
  setup(H, { emit: V }) {
9687
- const C = H, M = V, i = I(), L = Z1({
9694
+ const C = H, M = V, i = Q(), L = u1({
9688
9695
  value: ""
9689
- }), A = I(C.type), e = {
9696
+ }), A = Q(C.type), e = {
9690
9697
  password: "mdiLock",
9691
9698
  email: "mdiEmailOutline",
9692
9699
  tel: "mdiPhone",
9693
9700
  url: "mdiLink",
9694
9701
  number: "mdiNumeric",
9695
9702
  text: ""
9696
- }, d = I(!1), t = h(() => !!L.value), r = h(() => L.value.length > 0), a = h(() => {
9703
+ }, d = Q(!1), t = h(() => !!L.value), n = h(() => L.value.length > 0), r = h(() => {
9697
9704
  var f;
9698
9705
  return (f = C.errorMsg) == null ? void 0 : f.length;
9699
- }), o = h(() => C.clearable && r.value), l = h(() => {
9700
- const { disabled: f, loading: n } = C;
9706
+ }), o = h(() => C.clearable && n.value), l = h(() => {
9707
+ const { disabled: f, loading: G } = C;
9701
9708
  return {
9702
9709
  "r-textfield": !0,
9703
- "r-textfield--error": a.value,
9704
- "r-textfield--loading": n,
9710
+ "r-textfield--error": r.value,
9711
+ "r-textfield--loading": G,
9705
9712
  "r-textfield--disabled": f,
9706
9713
  "r-textfield--clearable": o.value,
9707
9714
  "r-textfield--focus": d.value,
@@ -9710,28 +9717,28 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9710
9717
  }), Z = h(() => ({
9711
9718
  "r-textfield__prepend-icon": !0,
9712
9719
  "r-textfield__prepend-icon--loading": C.loading,
9713
- "r-textfield__prepend-icon--error": a.value && t.value
9714
- })), B = h(() => ({
9720
+ "r-textfield__prepend-icon--error": r.value && t.value
9721
+ })), k = h(() => ({
9715
9722
  "r-textfield__append-icon": !0,
9716
9723
  "r-textfield__append-icon--clear": o.value,
9717
- "r-textfield__append-icon--error": a.value
9724
+ "r-textfield__append-icon--error": r.value
9718
9725
  })), y = h(() => {
9719
- const { prependIcon: f, type: n } = C;
9720
- return f === "none" ? "" : f || e[n];
9721
- }), k = h(() => {
9722
- const { appendIcon: f, type: n } = C;
9723
- return f === "none" ? "" : a.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(n) ? "mdiClose" : n === "password" && A.value === "password" ? "mdiEyeOutline" : n === "password" && A.value === "text" ? "mdiEyeOffOutline" : f;
9726
+ const { prependIcon: f, type: G } = C;
9727
+ return f === "none" ? "" : f || e[G];
9728
+ }), B = h(() => {
9729
+ const { appendIcon: f, type: G } = C;
9730
+ return f === "none" ? "" : r.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(G) ? "mdiClose" : G === "password" && A.value === "password" ? "mdiEyeOutline" : G === "password" && A.value === "text" ? "mdiEyeOffOutline" : f;
9724
9731
  });
9725
- function b(f) {
9732
+ function w(f) {
9726
9733
  d.value = !0, M("focus", f);
9727
9734
  }
9728
- function w(f) {
9735
+ function P(f) {
9729
9736
  d.value = !1, M("blur", f);
9730
9737
  }
9731
- function W(f) {
9738
+ function T(f) {
9732
9739
  L.value = f.target.value, M("input", f);
9733
9740
  }
9734
- function D() {
9741
+ function x() {
9735
9742
  var f;
9736
9743
  if (o.value) {
9737
9744
  L.value = "", (f = i.value) == null || f.focus(), M("click:clear", {
@@ -9741,16 +9748,16 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9741
9748
  }
9742
9749
  M("click:icon", {
9743
9750
  value: A.value === "number" ? +L.value : L.value
9744
- }), C.type === "password" && $();
9751
+ }), C.type === "password" && U();
9745
9752
  }
9746
- function $() {
9753
+ function U() {
9747
9754
  A.value = A.value === "password" ? "text" : "password";
9748
9755
  }
9749
- function Q() {
9756
+ function N() {
9750
9757
  var f;
9751
9758
  (f = i.value) == null || f.focus();
9752
9759
  }
9753
- return G(
9760
+ return $(
9754
9761
  () => C.modelValue,
9755
9762
  (f) => {
9756
9763
  L.value = f;
@@ -9758,7 +9765,7 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9758
9765
  {
9759
9766
  immediate: !0
9760
9767
  }
9761
- ), G(
9768
+ ), $(
9762
9769
  () => L.value,
9763
9770
  (f) => {
9764
9771
  M(
@@ -9766,22 +9773,22 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9766
9773
  A.value === "number" ? +f : f
9767
9774
  );
9768
9775
  }
9769
- ), (f, n) => (m(), u("div", b3, [
9770
- C.label ? (m(), _(Z2, {
9776
+ ), (f, G) => (m(), u("div", w3, [
9777
+ C.label ? (m(), _(u2, {
9771
9778
  key: 0,
9772
9779
  id: `${C.id}-label`,
9773
9780
  class: "r-textfield__label",
9774
9781
  for: C.id,
9775
9782
  text: C.label,
9776
- onClick: Q
9783
+ onClick: N
9777
9784
  }, null, 8, ["id", "for", "text"])) : g("", !0),
9778
- S("div", w3, [
9785
+ S("div", y3, [
9779
9786
  S("div", {
9780
9787
  class: O(l.value)
9781
9788
  }, [
9782
9789
  p(f.$slots, "prepend", {
9783
9790
  disabled: C.disabled,
9784
- error: a.value,
9791
+ error: r.value,
9785
9792
  loading: C.loading
9786
9793
  }, () => [
9787
9794
  y.value ? (m(), _(E, {
@@ -9803,35 +9810,35 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9803
9810
  role: C.role,
9804
9811
  type: A.value,
9805
9812
  value: L.value,
9806
- onBlur: w,
9807
- onFocus: b,
9808
- onInput: W
9809
- }, null, 40, y3),
9813
+ onBlur: P,
9814
+ onFocus: w,
9815
+ onInput: T
9816
+ }, null, 40, v3),
9810
9817
  p(f.$slots, "append", {
9811
9818
  disabled: C.disabled,
9812
- error: a.value,
9819
+ error: r.value,
9813
9820
  loading: C.loading
9814
9821
  }, () => [
9815
- k.value && !f.$slots.append || a.value ? (m(), _(E, {
9822
+ B.value && !f.$slots.append || r.value ? (m(), _(E, {
9816
9823
  key: 0,
9817
- class: O(B.value),
9818
- name: `${k.value}`,
9824
+ class: O(k.value),
9825
+ name: `${B.value}`,
9819
9826
  size: 20,
9820
- onClick: D
9827
+ onClick: x
9821
9828
  }, null, 8, ["class", "name"])) : g("", !0)
9822
9829
  ])
9823
9830
  ], 2),
9824
- C.hideDetails ? g("", !0) : (m(), u("div", v3, [
9825
- C.errorMsg ? (m(), u("p", P3, v(C.errorMsg), 1)) : g("", !0),
9826
- !C.errorMsg && C.hint ? (m(), u("p", T3, v(C.hint), 1)) : g("", !0)
9831
+ C.hideDetails ? g("", !0) : (m(), u("div", P3, [
9832
+ C.errorMsg ? (m(), u("p", T3, v(C.errorMsg), 1)) : g("", !0),
9833
+ !C.errorMsg && C.hint ? (m(), u("p", F3, v(C.hint), 1)) : g("", !0)
9827
9834
  ]))
9828
9835
  ])
9829
9836
  ]));
9830
9837
  }
9831
- }), F3 = { class: "r-breadcrumb" }, R3 = {
9838
+ }), R3 = { class: "r-breadcrumb" }, x3 = {
9832
9839
  key: 0,
9833
9840
  class: "r-breadcrumb__title"
9834
- }, S0 = /* @__PURE__ */ x({
9841
+ }, s0 = /* @__PURE__ */ R({
9835
9842
  __name: "RBreadcrumb",
9836
9843
  props: {
9837
9844
  items: { default: () => [] },
@@ -9840,24 +9847,24 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9840
9847
  setup(H) {
9841
9848
  const V = H;
9842
9849
  return (C, M) => {
9843
- const i = h2("router-link");
9844
- return m(), u("div", F3, [
9845
- (m(!0), u(e1, null, o1(V.items, (L, A) => (m(), u("div", {
9850
+ const i = g2("router-link");
9851
+ return m(), u("div", R3, [
9852
+ (m(!0), u(d1, null, n1(V.items, (L, A) => (m(), u("div", {
9846
9853
  key: A,
9847
9854
  class: "r-breadcrumb__item"
9848
9855
  }, [
9849
- j(i, {
9856
+ q(i, {
9850
9857
  class: "r-breadcrumb__link",
9851
9858
  to: L.to
9852
9859
  }, {
9853
- default: h1(() => [
9860
+ default: g1(() => [
9854
9861
  p(C.$slots, "item-icon", {}, () => [
9855
9862
  L.icon ? (m(), _(E, {
9856
9863
  key: 0,
9857
9864
  name: L.icon
9858
9865
  }, null, 8, ["name"])) : g("", !0)
9859
9866
  ]),
9860
- L.onlyIcon ? g("", !0) : (m(), u("span", R3, v(L.title), 1))
9867
+ L.onlyIcon ? g("", !0) : (m(), u("span", x3, v(L.title), 1))
9861
9868
  ]),
9862
9869
  _: 2
9863
9870
  }, 1032, ["to"]),
@@ -9872,37 +9879,37 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9872
9879
  ]);
9873
9880
  };
9874
9881
  }
9875
- }), x3 = { class: "r-pagination__paginator" }, D3 = { class: "r-pagination__paginator__per-page" }, E3 = { class: "r-pagination__paginator__info" }, _3 = ["disabled"], W3 = /* @__PURE__ */ S("path", {
9882
+ }), D3 = { class: "r-pagination__paginator" }, E3 = { class: "r-pagination__paginator__per-page" }, _3 = { class: "r-pagination__paginator__info" }, W3 = ["disabled"], N3 = /* @__PURE__ */ S("path", {
9876
9883
  d: "M0 0h24v24H0z",
9877
9884
  fill: "none",
9878
9885
  stroke: "none"
9879
- }, null, -1), N3 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), I3 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), Q3 = [
9880
- W3,
9886
+ }, null, -1), I3 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), Q3 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), G3 = [
9881
9887
  N3,
9882
- I3
9883
- ], G3 = ["disabled"], $3 = /* @__PURE__ */ S("path", {
9888
+ I3,
9889
+ Q3
9890
+ ], $3 = ["disabled"], U3 = /* @__PURE__ */ S("path", {
9884
9891
  d: "M0 0h24v24H0z",
9885
9892
  fill: "none",
9886
9893
  stroke: "none"
9887
- }, null, -1), U3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), z3 = [
9888
- $3,
9889
- U3
9890
- ], K3 = ["disabled"], q3 = /* @__PURE__ */ S("path", {
9894
+ }, null, -1), z3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), K3 = [
9895
+ U3,
9896
+ z3
9897
+ ], q3 = ["disabled"], j3 = /* @__PURE__ */ S("path", {
9891
9898
  d: "M0 0h24v24H0z",
9892
9899
  fill: "none",
9893
9900
  stroke: "none"
9894
- }, null, -1), j3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), X3 = [
9895
- q3,
9896
- j3
9897
- ], Y3 = ["disabled"], J3 = /* @__PURE__ */ S("path", {
9901
+ }, null, -1), X3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), Y3 = [
9902
+ j3,
9903
+ X3
9904
+ ], J3 = ["disabled"], C0 = /* @__PURE__ */ S("path", {
9898
9905
  d: "M0 0h24v24H0z",
9899
9906
  fill: "none",
9900
9907
  stroke: "none"
9901
- }, null, -1), C0 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), H0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), V0 = [
9902
- J3,
9908
+ }, null, -1), H0 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), V0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), L0 = [
9903
9909
  C0,
9904
- H0
9905
- ], s0 = /* @__PURE__ */ x({
9910
+ H0,
9911
+ V0
9912
+ ], c0 = /* @__PURE__ */ R({
9906
9913
  __name: "RPagination",
9907
9914
  props: {
9908
9915
  page: { default: 1 },
@@ -9915,33 +9922,33 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9915
9922
  },
9916
9923
  emits: ["update:page", "update:perPage", "update:info"],
9917
9924
  setup(H, { emit: V }) {
9918
- const C = H, M = V, i = I(C.perPage || 10), L = h(() => Math.ceil(C.totalItems / C.perPage)), A = h(() => ({
9925
+ const C = H, M = V, i = Q(C.perPage || 10), L = h(() => Math.ceil(C.totalItems / C.perPage)), A = h(() => ({
9919
9926
  start: C.page * C.perPage - C.perPage,
9920
9927
  end: C.page * C.perPage
9921
9928
  })), e = h(() => C.infoText || `${A.value.start + 1}-${A.value.end} of ${C.totalItems}`), d = h(() => +C.page == +L.value), t = h(() => +C.page == 1);
9922
- G(() => A.value, () => {
9929
+ $(() => A.value, () => {
9923
9930
  M("update:info", A.value);
9924
- }), G(() => C.perPage, () => {
9925
- i.value = C.perPage, r(1);
9931
+ }), $(() => C.perPage, () => {
9932
+ i.value = C.perPage, n(1);
9926
9933
  });
9927
- function r(o) {
9934
+ function n(o) {
9928
9935
  const l = Math.ceil(o);
9929
9936
  l < 1 || l > L.value || M("update:page", l);
9930
9937
  }
9931
- function a({ value: o }) {
9938
+ function r({ value: o }) {
9932
9939
  M("update:perPage", o);
9933
9940
  }
9934
9941
  return (o, l) => (m(), u("div", {
9935
9942
  class: O(["r-pagination", [`r-pagination--${C.position}`]])
9936
9943
  }, [
9937
- S("div", x3, [
9938
- S("div", D3, [
9944
+ S("div", D3, [
9945
+ S("div", E3, [
9939
9946
  S("span", null, v(C.itemsPerPageText), 1),
9940
- j(C3, {
9947
+ q(H3, {
9941
9948
  modelValue: i.value,
9942
9949
  "onUpdate:modelValue": [
9943
9950
  l[0] || (l[0] = (Z) => i.value = Z),
9944
- a
9951
+ r
9945
9952
  ],
9946
9953
  class: "w-24",
9947
9954
  "hide-details": "",
@@ -9949,11 +9956,11 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9949
9956
  options: C.perPageOptions
9950
9957
  }, null, 8, ["modelValue", "options"])
9951
9958
  ]),
9952
- S("span", E3, v(e.value), 1),
9959
+ S("span", _3, v(e.value), 1),
9953
9960
  S("button", {
9954
9961
  class: "r-pagination__paginator__first",
9955
9962
  disabled: t.value,
9956
- onClick: l[1] || (l[1] = (Z) => r(1))
9963
+ onClick: l[1] || (l[1] = (Z) => n(1))
9957
9964
  }, [
9958
9965
  p(o.$slots, "first", {}, () => [
9959
9966
  (m(), u("svg", {
@@ -9967,13 +9974,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9967
9974
  viewBox: "0 0 24 24",
9968
9975
  width: "20",
9969
9976
  xmlns: "http://www.w3.org/2000/svg"
9970
- }, Q3, 2))
9977
+ }, G3, 2))
9971
9978
  ])
9972
- ], 8, _3),
9979
+ ], 8, W3),
9973
9980
  S("button", {
9974
9981
  class: "r-pagination__paginator__prev",
9975
9982
  disabled: t.value,
9976
- onClick: l[2] || (l[2] = (Z) => r(+C.page - 1))
9983
+ onClick: l[2] || (l[2] = (Z) => n(+C.page - 1))
9977
9984
  }, [
9978
9985
  p(o.$slots, "prev", {}, () => [
9979
9986
  (m(), u("svg", {
@@ -9987,13 +9994,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
9987
9994
  viewBox: "0 0 24 24",
9988
9995
  width: "20",
9989
9996
  xmlns: "http://www.w3.org/2000/svg"
9990
- }, z3, 2))
9997
+ }, K3, 2))
9991
9998
  ])
9992
- ], 8, G3),
9999
+ ], 8, $3),
9993
10000
  S("button", {
9994
10001
  class: "r-pagination__paginator__next",
9995
10002
  disabled: d.value,
9996
- onClick: l[3] || (l[3] = (Z) => r(+C.page + 1))
10003
+ onClick: l[3] || (l[3] = (Z) => n(+C.page + 1))
9997
10004
  }, [
9998
10005
  p(o.$slots, "next", {}, () => [
9999
10006
  (m(), u("svg", {
@@ -10007,13 +10014,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
10007
10014
  viewBox: "0 0 24 24",
10008
10015
  width: "20",
10009
10016
  xmlns: "http://www.w3.org/2000/svg"
10010
- }, X3, 2))
10017
+ }, Y3, 2))
10011
10018
  ])
10012
- ], 8, K3),
10019
+ ], 8, q3),
10013
10020
  S("button", {
10014
10021
  class: "r-pagination__paginator__last",
10015
10022
  disabled: C.page === L.value,
10016
- onClick: l[4] || (l[4] = (Z) => r(L.value))
10023
+ onClick: l[4] || (l[4] = (Z) => n(L.value))
10017
10024
  }, [
10018
10025
  p(o.$slots, "last", {}, () => [
10019
10026
  (m(), u("svg", {
@@ -10027,13 +10034,13 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
10027
10034
  viewBox: "0 0 24 24",
10028
10035
  width: "20",
10029
10036
  xmlns: "http://www.w3.org/2000/svg"
10030
- }, V0, 2))
10037
+ }, L0, 2))
10031
10038
  ])
10032
- ], 8, Y3)
10039
+ ], 8, J3)
10033
10040
  ])
10034
10041
  ], 2));
10035
10042
  }
10036
- }), L0 = ["value"], c0 = /* @__PURE__ */ x({
10043
+ }), M0 = ["value"], O0 = /* @__PURE__ */ R({
10037
10044
  __name: "RProgressbar",
10038
10045
  props: {
10039
10046
  value: { default: 0 },
@@ -10046,11 +10053,11 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
10046
10053
  class: "r-progressbar",
10047
10054
  max: 100,
10048
10055
  role: "progressbar",
10049
- style: E1({ height: `${V.height}px` }),
10056
+ style: _1({ height: `${V.height}px` }),
10050
10057
  value: V.value
10051
- }, null, 12, L0));
10058
+ }, null, 12, M0));
10052
10059
  }
10053
- }), p1 = "rocket-ui:r-item-group", O0 = /* @__PURE__ */ x({
10060
+ }), f1 = "rocket-ui:r-item-group", p0 = /* @__PURE__ */ R({
10054
10061
  __name: "RItemGroup",
10055
10062
  props: {
10056
10063
  modelValue: { default: () => [] },
@@ -10063,24 +10070,24 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
10063
10070
  },
10064
10071
  emits: ["update:modelValue"],
10065
10072
  setup(H, { emit: V }) {
10066
- const C = H, M = V, i = I(C.as ?? "div"), L = I(C.modelValue), A = h(() => C.selectedClass);
10067
- c1(`${p1}:selectedClass`, A.value);
10068
- function e(r) {
10069
- return L.value.includes(r);
10073
+ const C = H, M = V, i = Q(C.as ?? "div"), L = Q(C.modelValue), A = h(() => C.selectedClass);
10074
+ O1(`${f1}:selectedClass`, A.value);
10075
+ function e(n) {
10076
+ return L.value.includes(n);
10070
10077
  }
10071
- c1(`${p1}:isSelected`, e);
10072
- function d(r, a) {
10073
- C.disabled || C.mandatory && L.value.length === 1 && !a || C.max && L.value.length === C.max && a || (C.multiple ? a ? L.value.push(r) : L.value = L.value.filter((o) => o !== r) : L.value = r ? [r] : [], M("update:modelValue", L.value));
10078
+ O1(`${f1}:isSelected`, e);
10079
+ function d(n, r) {
10080
+ C.disabled || C.mandatory && L.value.length === 1 && !r || C.max && L.value.length === C.max && r || (C.multiple ? r ? L.value.push(n) : L.value = L.value.filter((o) => o !== n) : L.value = n ? [n] : [], M("update:modelValue", L.value));
10074
10081
  }
10075
- c1(`${p1}:select`, d);
10082
+ O1(`${f1}:select`, d);
10076
10083
  function t() {
10077
10084
  return C.disabled;
10078
10085
  }
10079
- return c1(`${p1}:isDisabled`, t), G(() => C.modelValue, () => {
10086
+ return O1(`${f1}:isDisabled`, t), $(() => C.modelValue, () => {
10080
10087
  L.value = C.modelValue;
10081
- }), (r, a) => (m(), _(g2(i.value), null, {
10082
- default: h1(() => [
10083
- p(r.$slots, "default", {
10088
+ }), (n, r) => (m(), _(k2(i.value), null, {
10089
+ default: g1(() => [
10090
+ p(n.$slots, "default", {
10084
10091
  isSelected: e,
10085
10092
  select: d,
10086
10093
  selected: L.value
@@ -10089,21 +10096,21 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
10089
10096
  _: 3
10090
10097
  }));
10091
10098
  }
10092
- }), f1 = "rocket-ui:r-item-group", p0 = /* @__PURE__ */ x({
10099
+ }), h1 = "rocket-ui:r-item-group", f0 = /* @__PURE__ */ R({
10093
10100
  __name: "RItem",
10094
10101
  props: {
10095
10102
  value: { default: null },
10096
10103
  selectedClass: { default: "" }
10097
10104
  },
10098
10105
  setup(H) {
10099
- const V = H, C = O1(`${f1}:isSelected`), M = O1(`${f1}:selectedClass`, ""), i = O1(`${f1}:select`), L = O1(`${f1}:isDisabled`), A = h(() => C(V.value) && [M, V.selectedClass]);
10106
+ const V = H, C = p1(`${h1}:isSelected`), M = p1(`${h1}:selectedClass`, ""), i = p1(`${h1}:select`), L = p1(`${h1}:isDisabled`), A = h(() => C(V.value) && [M, V.selectedClass]);
10100
10107
  function e() {
10101
10108
  V.disabled || i(V.value, !C(V.value));
10102
10109
  }
10103
10110
  function d() {
10104
10111
  V.disabled || i(V.value, !0);
10105
10112
  }
10106
- return (t, r) => p(t.$slots, "default", {
10113
+ return (t, n) => p(t.$slots, "default", {
10107
10114
  disabled: J(L)(V.value),
10108
10115
  isSelected: J(C)(V.value),
10109
10116
  select: d,
@@ -10113,28 +10120,28 @@ const c3 = ["aria-disabled", "aria-selected", "disabled"], O3 = { key: 0 }, p3 =
10113
10120
  }
10114
10121
  });
10115
10122
  export {
10116
- i0 as RAccordion,
10117
- A0 as RAlert,
10118
- e0 as RAvatar,
10119
- d0 as RBadge,
10120
- S0 as RBreadcrumb,
10121
- t0 as RButton,
10122
- m0 as RCheckbox,
10123
- Y2 as RChip,
10124
- C3 as RDropdown,
10123
+ A0 as RAccordion,
10124
+ e0 as RAlert,
10125
+ d0 as RAvatar,
10126
+ t0 as RBadge,
10127
+ s0 as RBreadcrumb,
10128
+ m0 as RButton,
10129
+ l0 as RCheckbox,
10130
+ J2 as RChip,
10131
+ H3 as RDropdown,
10125
10132
  E as RIcon,
10126
- p0 as RItem,
10127
- O0 as RItemGroup,
10128
- Z2 as RLabel,
10129
- l0 as RModal,
10130
- s0 as RPagination,
10131
- c0 as RProgressbar,
10132
- o0 as RSidebar,
10133
- n0 as RSnackbar,
10134
- r0 as RSwitch,
10135
- p3 as RTabItem,
10136
- a0 as RTabs,
10137
- Z0 as RTextArea,
10138
- u0 as RTextfield,
10139
- I5 as RTooltip
10133
+ f0 as RItem,
10134
+ p0 as RItemGroup,
10135
+ u2 as RLabel,
10136
+ o0 as RModal,
10137
+ c0 as RPagination,
10138
+ O0 as RProgressbar,
10139
+ n0 as RSidebar,
10140
+ r0 as RSnackbar,
10141
+ a0 as RSwitch,
10142
+ f3 as RTabItem,
10143
+ Z0 as RTabs,
10144
+ u0 as RTextArea,
10145
+ S0 as RTextfield,
10146
+ Q5 as RTooltip
10140
10147
  };