@rocketui/vue 0.2.93-alpha.1 → 0.2.93-alpha.2

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 T, openBlock as m, createElementBlock as Z, createElementVNode as s, unref as A1, reactive as E1, Fragment as i1, renderList as n1, normalizeClass as O, renderSlot as k, toDisplayString as b, createVNode as C1, computed as f, createCommentVNode as g, mergeProps as _1, createBlock as D, watch as N, getCurrentScope as y2, onScopeDispose as P2, ref as E, watchEffect as M2, onMounted as r2, onUnmounted as X1, Teleport as T2, withCtx as T1, withDirectives as a2, withModifiers as r1, withKeys as i2, vModelText as F2, createTextVNode as h1, normalizeStyle as Y1, vShow as R2, resolveComponent as x2, provide as v1, resolveDynamicComponent as D2, inject as w1 } from "vue";
2
- const E2 = {
1
+ import { defineComponent as P, openBlock as m, createElementBlock as a, createElementVNode as S, unref as A1, reactive as D1, Fragment as i1, renderList as o1, normalizeClass as O, renderSlot as B, toDisplayString as b, createVNode as J, computed as f, createCommentVNode as k, mergeProps as E1, createBlock as R, watch as $, getCurrentScope as b2, onScopeDispose as v2, ref as D, watchEffect as H2, onMounted as l2, onUnmounted as q1, Teleport as w2, withCtx as P1, withDirectives as o2, withModifiers as n1, withKeys as V2, vModelText as y2, createTextVNode as f1, normalizeStyle as j1, vShow as P2, resolveComponent as T2, provide as b1, resolveDynamicComponent as F2, inject as v1 } from "vue";
2
+ const R2 = {
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 E2 = {
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
- }, _2 = ["id", "height", "viewBox", "width"], $2 = ["id", "d"], R = /* @__PURE__ */ T({
7299
+ }, x2 = ["id", "height", "viewBox", "width"], D2 = ["id", "d"], F = /* @__PURE__ */ P({
7300
7300
  __name: "RIcon",
7301
7301
  props: {
7302
7302
  name: { default: "" },
@@ -7305,20 +7305,20 @@ const E2 = {
7305
7305
  },
7306
7306
  setup(H) {
7307
7307
  const V = H;
7308
- return (C, i) => (m(), Z("svg", {
7308
+ return (C, i) => (m(), a("svg", {
7309
7309
  id: C.id,
7310
7310
  class: "r-icon",
7311
7311
  height: V.size,
7312
7312
  viewBox: V.viewBox,
7313
7313
  width: V.size
7314
7314
  }, [
7315
- s("path", {
7315
+ S("path", {
7316
7316
  id: `${C.id}-path`,
7317
- d: A1(E2)[V.name]
7318
- }, null, 8, $2)
7319
- ], 8, _2));
7317
+ d: A1(R2)[V.name]
7318
+ }, null, 8, D2)
7319
+ ], 8, x2));
7320
7320
  }
7321
- }), W2 = ["id", "data-state", "onClick"], N2 = ["id"], I2 = { class: "r-accordion__title" }, Q2 = ["id"], G2 = ["id"], U2 = ["id"], J0 = /* @__PURE__ */ T({
7321
+ }), E2 = ["id", "data-state", "onClick"], _2 = ["id"], $2 = { class: "r-accordion__title" }, W2 = ["id"], N2 = ["id"], I2 = ["id"], j0 = /* @__PURE__ */ P({
7322
7322
  __name: "RAccordion",
7323
7323
  props: {
7324
7324
  accordions: {},
@@ -7326,7 +7326,7 @@ const E2 = {
7326
7326
  id: { default: "r-accordion" }
7327
7327
  },
7328
7328
  setup(H) {
7329
- const V = H, C = E1(
7329
+ const V = H, C = D1(
7330
7330
  V.accordions.map(({ title: A, content: L }, M) => ({
7331
7331
  title: A,
7332
7332
  content: L,
@@ -7345,7 +7345,7 @@ const E2 = {
7345
7345
  });
7346
7346
  }
7347
7347
  }
7348
- return (A, L) => (m(!0), Z(i1, null, n1(C, (M, e) => (m(), Z("div", {
7348
+ return (A, L) => (m(!0), a(i1, null, o1(C, (M, e) => (m(), a("div", {
7349
7349
  id: `${A.id}-${e}`,
7350
7350
  key: e,
7351
7351
  class: O(["r-accordion", {
@@ -7355,48 +7355,48 @@ const E2 = {
7355
7355
  "data-state": M.open ? "opened" : "closed",
7356
7356
  onClick: (d) => i(e)
7357
7357
  }, [
7358
- s("div", {
7358
+ S("div", {
7359
7359
  id: `${A.id}-header-${e}`,
7360
7360
  class: "r-accordion__header"
7361
7361
  }, [
7362
- k(A.$slots, "title", { accordion: M }, () => [
7363
- s("div", I2, b(M.title), 1)
7362
+ B(A.$slots, "title", { accordion: M }, () => [
7363
+ S("div", $2, b(M.title), 1)
7364
7364
  ]),
7365
- s("div", {
7365
+ S("div", {
7366
7366
  id: `${A.id}-icon-wrapper-${e}`,
7367
7367
  class: "r-accordion__icon"
7368
7368
  }, [
7369
- k(A.$slots, "icon", {
7369
+ B(A.$slots, "icon", {
7370
7370
  id: `${A.id}-icon-${e}`,
7371
7371
  item: M,
7372
7372
  open: M.open
7373
7373
  }, () => [
7374
- C1(R, {
7374
+ J(F, {
7375
7375
  id: `${A.id}-icon-${e}`,
7376
7376
  name: "mdiChevronDown"
7377
7377
  }, null, 8, ["id"])
7378
7378
  ])
7379
- ], 8, Q2)
7380
- ], 8, N2),
7381
- s("div", {
7379
+ ], 8, W2)
7380
+ ], 8, _2),
7381
+ S("div", {
7382
7382
  id: `${A.id}-content-${e}`,
7383
7383
  class: "r-accordion__content"
7384
7384
  }, [
7385
- k(A.$slots, "content", {
7385
+ B(A.$slots, "content", {
7386
7386
  id: `${A.id}-content-${e}`,
7387
7387
  accordion: M
7388
7388
  }, () => [
7389
- s("span", {
7389
+ S("span", {
7390
7390
  id: `${A.id}-content-${e}`
7391
- }, b(M.content), 9, U2)
7391
+ }, b(M.content), 9, I2)
7392
7392
  ])
7393
- ], 8, G2)
7394
- ], 10, W2))), 128));
7393
+ ], 8, N2)
7394
+ ], 10, E2))), 128));
7395
7395
  }
7396
- }), z2 = ["id"], K2 = ["id"], q2 = ["id"], j2 = { class: "r-alert__content__title" }, X2 = {
7396
+ }), Q2 = ["id"], G2 = ["id"], U2 = ["id"], z2 = { class: "r-alert__content__title" }, K2 = {
7397
7397
  key: 0,
7398
7398
  class: "r-alert__content__description"
7399
- }, Y2 = ["id"], C7 = /* @__PURE__ */ T({
7399
+ }, q2 = ["id"], X0 = /* @__PURE__ */ P({
7400
7400
  __name: "RAlert",
7401
7401
  props: {
7402
7402
  type: { default: "info" },
@@ -7423,40 +7423,40 @@ const E2 = {
7423
7423
  function M() {
7424
7424
  i("close");
7425
7425
  }
7426
- return (e, d) => (m(), Z("div", {
7426
+ return (e, d) => (m(), a("div", {
7427
7427
  id: e.id,
7428
7428
  class: O(A.value)
7429
7429
  }, [
7430
- s("div", {
7430
+ S("div", {
7431
7431
  id: `${e.id}-icon`,
7432
7432
  class: "r-alert__icon"
7433
7433
  }, [
7434
- k(e.$slots, "alert-icon", {}, () => [
7435
- C1(R, {
7434
+ B(e.$slots, "alert-icon", {}, () => [
7435
+ J(F, {
7436
7436
  name: L.value,
7437
7437
  size: 24
7438
7438
  }, null, 8, ["name"])
7439
7439
  ])
7440
- ], 8, K2),
7441
- s("div", {
7440
+ ], 8, G2),
7441
+ S("div", {
7442
7442
  id: `${e.id}-content`,
7443
7443
  class: "r-alert__content"
7444
7444
  }, [
7445
- k(e.$slots, "content", {}, () => [
7446
- s("p", j2, b(C.title), 1),
7447
- C.description ? (m(), Z("p", X2, b(C.description), 1)) : g("", !0)
7445
+ B(e.$slots, "content", {}, () => [
7446
+ S("p", z2, b(C.title), 1),
7447
+ C.description ? (m(), a("p", K2, b(C.description), 1)) : k("", !0)
7448
7448
  ])
7449
- ], 8, q2),
7450
- C.closable ? (m(), Z("div", {
7449
+ ], 8, U2),
7450
+ C.closable ? (m(), a("div", {
7451
7451
  key: 0,
7452
7452
  id: `${e.id}-close`,
7453
7453
  class: "r-alert__close"
7454
7454
  }, [
7455
- k(e.$slots, "custom-close", {
7455
+ B(e.$slots, "custom-close", {
7456
7456
  close: M,
7457
7457
  slotClass: "r-alert__close__button"
7458
7458
  }, () => [
7459
- C1(R, {
7459
+ J(F, {
7460
7460
  id: `${e.id}-close-button`,
7461
7461
  class: "r-alert__close__button",
7462
7462
  name: "mdiClose",
@@ -7464,14 +7464,14 @@ const E2 = {
7464
7464
  onClick: M
7465
7465
  }, null, 8, ["id"])
7466
7466
  ])
7467
- ], 8, Y2)) : g("", !0)
7468
- ], 10, z2));
7467
+ ], 8, q2)) : k("", !0)
7468
+ ], 10, Q2));
7469
7469
  }
7470
- }), A2 = "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", J2 = ["id"], C5 = ["id"], H5 = ["id"], V5 = ["id", "alt", "src"], L5 = ["id"], H7 = /* @__PURE__ */ T({
7470
+ }), L2 = "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", j2 = ["id"], X2 = ["id"], Y2 = ["id"], J2 = ["id", "alt", "src"], C5 = ["id"], Y0 = /* @__PURE__ */ P({
7471
7471
  __name: "RAvatar",
7472
7472
  props: {
7473
7473
  type: { default: "image" },
7474
- src: { default: A2 },
7474
+ src: { default: L2 },
7475
7475
  alt: { default: "Avatar" },
7476
7476
  size: { default: "2xl" },
7477
7477
  online: { type: Boolean, default: !1 },
@@ -7482,24 +7482,24 @@ const E2 = {
7482
7482
  const V = H, C = f(() => ({
7483
7483
  "r-avatar": !0,
7484
7484
  [`r-avatar--${V.size}`]: !0
7485
- })), i = f(() => V.type === "image" && !V.src), A = f(() => i.value ? A2 : V.src);
7485
+ })), i = f(() => V.type === "image" && !V.src), A = f(() => i.value ? L2 : V.src);
7486
7486
  function L(M) {
7487
7487
  const e = M.split(" ");
7488
7488
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7489
7489
  }
7490
- return (M, e) => (m(), Z("div", {
7490
+ return (M, e) => (m(), a("div", {
7491
7491
  id: M.id,
7492
7492
  class: "r-avatar__wrapper"
7493
7493
  }, [
7494
- s("div", {
7494
+ S("div", {
7495
7495
  id: `${M.id}-wrapper`,
7496
7496
  class: O(C.value)
7497
7497
  }, [
7498
- V.type === "text" ? (m(), Z("p", {
7498
+ V.type === "text" ? (m(), a("p", {
7499
7499
  key: 0,
7500
7500
  id: `${M.id}-text`,
7501
7501
  class: O(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7502
- }, b(L(V.text)), 11, H5)) : (m(), Z("img", {
7502
+ }, b(L(V.text)), 11, Y2)) : (m(), a("img", {
7503
7503
  key: 1,
7504
7504
  id: `${M.id}-image`,
7505
7505
  alt: V.alt,
@@ -7508,18 +7508,18 @@ const E2 = {
7508
7508
  "r-avatar__image--anonymous": i.value
7509
7509
  }]),
7510
7510
  src: A.value
7511
- }, null, 10, V5))
7512
- ], 10, C5),
7513
- V.online ? (m(), Z("span", {
7511
+ }, null, 10, J2))
7512
+ ], 10, X2),
7513
+ V.online ? (m(), a("span", {
7514
7514
  key: 0,
7515
7515
  id: `${M.id}-online`,
7516
7516
  class: O(["r-avatar__online", {
7517
7517
  [`r-avatar__online--${V.size}`]: !0
7518
7518
  }])
7519
- }, null, 10, L5)) : g("", !0)
7520
- ], 8, J2));
7519
+ }, null, 10, C5)) : k("", !0)
7520
+ ], 8, j2));
7521
7521
  }
7522
- }), M5 = ["id"], i5 = ["id"], A5 = ["id", "innerHTML"], V7 = /* @__PURE__ */ T({
7522
+ }), H5 = ["id"], V5 = ["id"], L5 = ["id", "innerHTML"], J0 = /* @__PURE__ */ P({
7523
7523
  __name: "RBadge",
7524
7524
  props: {
7525
7525
  variant: { default: "primary" },
@@ -7546,25 +7546,25 @@ const E2 = {
7546
7546
  [`r-badge--${V.variant}`]: V.variant,
7547
7547
  [V.class]: V.class
7548
7548
  }));
7549
- return (i, A) => (m(), Z("div", {
7549
+ return (i, A) => (m(), a("div", {
7550
7550
  id: i.id,
7551
7551
  class: O(["r-badge-wrapper group", [V.wrapperClass]])
7552
7552
  }, [
7553
- s("span", {
7553
+ S("span", {
7554
7554
  id: `${i.id}-badge`,
7555
7555
  class: O([{ "animate-ping-2": V.animation }, C.value])
7556
- }, null, 10, i5),
7557
- s("span", {
7556
+ }, null, 10, V5),
7557
+ S("span", {
7558
7558
  id: `${i.id}-content`,
7559
7559
  class: O(C.value),
7560
7560
  innerHTML: V.content
7561
- }, null, 10, A5),
7562
- k(i.$slots, "default", {
7561
+ }, null, 10, L5),
7562
+ B(i.$slots, "default", {
7563
7563
  id: `${i.id}-slot`
7564
7564
  })
7565
- ], 10, M5));
7565
+ ], 10, H5));
7566
7566
  }
7567
- }), e5 = ["id", "disabled"], L7 = /* @__PURE__ */ T({
7567
+ }), M5 = ["id", "disabled"], C7 = /* @__PURE__ */ P({
7568
7568
  __name: "RButton",
7569
7569
  props: {
7570
7570
  variant: { default: "default" },
@@ -7596,17 +7596,17 @@ const E2 = {
7596
7596
  })[V.size || "medium"]), A = f(() => ({
7597
7597
  height: V.height ? `${V.height}px` : ""
7598
7598
  }));
7599
- return (L, M) => (m(), Z("button", _1(L.$attrs, {
7599
+ return (L, M) => (m(), a("button", E1(L.$attrs, {
7600
7600
  id: L.id,
7601
7601
  class: C.value,
7602
7602
  disabled: L.disabled,
7603
7603
  style: A.value,
7604
7604
  onClick: M[0] || (M[0] = (e) => L.$emit("click"))
7605
7605
  }), [
7606
- k(L.$slots, "prepend", {
7606
+ B(L.$slots, "prepend", {
7607
7607
  onlyIcon: V.icon
7608
7608
  }, () => [
7609
- V.prependIcon ? (m(), D(R, {
7609
+ V.prependIcon ? (m(), R(F, {
7610
7610
  key: 0,
7611
7611
  id: `${L.id}-prepend-icon`,
7612
7612
  class: O(["r-button__prepend-icon", {
@@ -7614,26 +7614,26 @@ const E2 = {
7614
7614
  }]),
7615
7615
  name: V.prependIcon,
7616
7616
  size: i.value
7617
- }, null, 8, ["id", "class", "name", "size"])) : g("", !0)
7617
+ }, null, 8, ["id", "class", "name", "size"])) : k("", !0)
7618
7618
  ]),
7619
- k(L.$slots, "default", {
7619
+ B(L.$slots, "default", {
7620
7620
  id: `${L.id}-slot`,
7621
7621
  disabled: L.disabled
7622
7622
  }),
7623
- k(L.$slots, "append", {
7623
+ B(L.$slots, "append", {
7624
7624
  onlyIcon: V.icon
7625
7625
  }, () => [
7626
- !V.icon && V.appendIcon ? (m(), D(R, {
7626
+ !V.icon && V.appendIcon ? (m(), R(F, {
7627
7627
  key: 0,
7628
7628
  id: `${L.id}-append-icon`,
7629
7629
  class: "r-button__append-icon",
7630
7630
  name: V.appendIcon,
7631
7631
  size: i.value
7632
- }, null, 8, ["id", "name", "size"])) : g("", !0)
7632
+ }, null, 8, ["id", "name", "size"])) : k("", !0)
7633
7633
  ])
7634
- ], 16, e5));
7634
+ ], 16, M5));
7635
7635
  }
7636
- }), d5 = ["id"], t5 = ["id"], m5 = ["id", "checked", "disabled", "indeterminate"], l5 = ["id", "data-disabled"], o5 = ["id"], n5 = ["id", "data-disabled", "for"], r5 = ["id"], a5 = ["id"], Z5 = ["id"], M7 = /* @__PURE__ */ T({
7636
+ }), i5 = ["id"], A5 = ["id"], e5 = ["id", "checked", "disabled", "indeterminate"], d5 = ["id", "data-disabled"], t5 = ["id"], m5 = ["id", "data-disabled", "for"], l5 = ["id"], o5 = ["id"], n5 = ["id"], H7 = /* @__PURE__ */ P({
7637
7637
  __name: "RCheckbox",
7638
7638
  props: {
7639
7639
  id: { default: "" },
@@ -7647,7 +7647,7 @@ const E2 = {
7647
7647
  },
7648
7648
  emits: ["update:modelValue"],
7649
7649
  setup(H, { emit: V }) {
7650
- const C = H, i = V, A = E1({
7650
+ const C = H, i = V, A = D1({
7651
7651
  checked: !1,
7652
7652
  indeterminate: !1
7653
7653
  }), L = {
@@ -7664,7 +7664,7 @@ const E2 = {
7664
7664
  function d(n) {
7665
7665
  C.disabled || (A.checked = n.target.checked, A.indeterminate = !1, i("update:modelValue", A.checked));
7666
7666
  }
7667
- N(
7667
+ $(
7668
7668
  () => C.indeterminate,
7669
7669
  (n) => {
7670
7670
  A.indeterminate = n, n === !0 && (A.checked = !1, i("update:modelValue", A.checked));
@@ -7674,7 +7674,7 @@ const E2 = {
7674
7674
  // TODO: find a better way to do this
7675
7675
  immediate: !0
7676
7676
  }
7677
- ), N(
7677
+ ), $(
7678
7678
  () => C.modelValue,
7679
7679
  (n) => {
7680
7680
  A.checked = n;
@@ -7686,15 +7686,15 @@ const E2 = {
7686
7686
  }
7687
7687
  );
7688
7688
  const l = f(() => C.id || "r-checkbox");
7689
- return (n, u) => (m(), Z("div", {
7689
+ return (n, Z) => (m(), a("div", {
7690
7690
  id: l.value,
7691
7691
  class: "r-checkbox-wrapper"
7692
7692
  }, [
7693
- s("div", {
7693
+ S("div", {
7694
7694
  id: `${l.value}-container`,
7695
7695
  class: "r-checkbox-container"
7696
7696
  }, [
7697
- s("input", {
7697
+ S("input", {
7698
7698
  id: `${l.value}`,
7699
7699
  checked: A.checked,
7700
7700
  class: "r-checkbox-container__input",
@@ -7702,47 +7702,47 @@ const E2 = {
7702
7702
  indeterminate: A.indeterminate,
7703
7703
  type: "checkbox",
7704
7704
  onChange: d
7705
- }, null, 40, m5),
7706
- s("div", {
7705
+ }, null, 40, e5),
7706
+ S("div", {
7707
7707
  id: `${l.value}-icon`,
7708
7708
  class: O(e.value),
7709
7709
  "data-disabled": C.disabled
7710
7710
  }, [
7711
- C1(R, {
7711
+ J(F, {
7712
7712
  name: M.value,
7713
7713
  size: 24
7714
7714
  }, null, 8, ["name"])
7715
- ], 10, l5)
7716
- ], 8, t5),
7717
- s("div", {
7715
+ ], 10, d5)
7716
+ ], 8, A5),
7717
+ S("div", {
7718
7718
  id: `${l.value}-texts`,
7719
7719
  class: "r-checkbox-texts"
7720
7720
  }, [
7721
- s("label", {
7721
+ S("label", {
7722
7722
  id: `${l.value}`,
7723
7723
  class: "r-checkbox-texts__label",
7724
7724
  "data-disabled": C.disabled,
7725
7725
  for: l.value
7726
- }, b(C.label), 9, n5),
7727
- C.hideDetails ? g("", !0) : (m(), Z("div", {
7726
+ }, b(C.label), 9, m5),
7727
+ C.hideDetails ? k("", !0) : (m(), a("div", {
7728
7728
  key: 0,
7729
7729
  id: `${l.value}-details`,
7730
7730
  class: "r-checkbox-texts__details"
7731
7731
  }, [
7732
- C.errorMsg ? (m(), Z("p", {
7732
+ C.errorMsg ? (m(), a("p", {
7733
7733
  key: 0,
7734
7734
  id: `${l.value}-error`,
7735
7735
  class: "r-checkbox-texts__error"
7736
- }, b(C.errorMsg), 9, a5)) : (m(), Z("p", {
7736
+ }, b(C.errorMsg), 9, o5)) : (m(), a("p", {
7737
7737
  key: 1,
7738
7738
  id: `${l.value}-hint`,
7739
7739
  class: "r-checkbox-texts__hint"
7740
- }, b(C.hint), 9, Z5))
7741
- ], 8, r5))
7742
- ], 8, o5)
7743
- ], 8, d5));
7740
+ }, b(C.hint), 9, n5))
7741
+ ], 8, l5))
7742
+ ], 8, t5)
7743
+ ], 8, i5));
7744
7744
  }
7745
- }), u5 = ["id"], S5 = ["id"], s5 = ["id"], c5 = /* @__PURE__ */ T({
7745
+ }), r5 = ["id"], a5 = ["id"], Z5 = ["id"], u5 = /* @__PURE__ */ P({
7746
7746
  __name: "RChip",
7747
7747
  props: {
7748
7748
  variant: { default: "primary" },
@@ -7771,36 +7771,36 @@ const E2 = {
7771
7771
  C.disabled || !C.clearable || (d.stopPropagation(), i("click:close", d));
7772
7772
  }
7773
7773
  const e = f(() => C.clearable ? "mdiClose" : C.appendIcon);
7774
- return (d, l) => (m(), Z("div", {
7774
+ return (d, l) => (m(), a("div", {
7775
7775
  id: d.id,
7776
7776
  class: O(A.value)
7777
7777
  }, [
7778
- s("div", {
7778
+ S("div", {
7779
7779
  id: `${d.id}-content`,
7780
7780
  class: "r-chip__content",
7781
7781
  onClick: l[0] || (l[0] = (n) => L(n))
7782
7782
  }, [
7783
- k(d.$slots, "prepend", {
7783
+ B(d.$slots, "prepend", {
7784
7784
  disabled: C.disabled
7785
7785
  }, () => [
7786
- C.prependIcon ? (m(), D(R, {
7786
+ C.prependIcon ? (m(), R(F, {
7787
7787
  key: 0,
7788
7788
  id: `${d.id}-prepend-icon`,
7789
7789
  "aria-disabled": C.disabled,
7790
7790
  class: "r-chip__content__prepend-icon",
7791
7791
  name: C.prependIcon,
7792
7792
  size: 12
7793
- }, null, 8, ["id", "aria-disabled", "name"])) : g("", !0)
7793
+ }, null, 8, ["id", "aria-disabled", "name"])) : k("", !0)
7794
7794
  ]),
7795
- s("span", {
7795
+ S("span", {
7796
7796
  id: `${d.id}`,
7797
7797
  class: O(["r-chip__content__label", [C.noWrap && "whitespace-nowrap"]])
7798
- }, b(C.label), 11, s5)
7799
- ], 8, S5),
7800
- k(d.$slots, "append", {
7798
+ }, b(C.label), 11, Z5)
7799
+ ], 8, a5),
7800
+ B(d.$slots, "append", {
7801
7801
  disabled: C.disabled
7802
7802
  }, () => [
7803
- e.value ? (m(), D(R, {
7803
+ e.value ? (m(), R(F, {
7804
7804
  key: 0,
7805
7805
  id: `${d.id}-append-icon`,
7806
7806
  "aria-disabled": C.disabled,
@@ -7808,71 +7808,71 @@ const E2 = {
7808
7808
  name: e.value,
7809
7809
  size: 12,
7810
7810
  onClick: l[1] || (l[1] = (n) => M(n))
7811
- }, null, 8, ["id", "aria-disabled", "name"])) : g("", !0)
7811
+ }, null, 8, ["id", "aria-disabled", "name"])) : k("", !0)
7812
7812
  ])
7813
- ], 10, u5));
7813
+ ], 10, r5));
7814
7814
  }
7815
7815
  });
7816
- function p5(H) {
7817
- return y2() ? (P2(H), !0) : !1;
7816
+ function S5(H) {
7817
+ return b2() ? (v2(H), !0) : !1;
7818
7818
  }
7819
- function Z2(H) {
7819
+ function n2(H) {
7820
7820
  return typeof H == "function" ? H() : A1(H);
7821
7821
  }
7822
- const u2 = typeof window < "u" && typeof document < "u";
7822
+ const r2 = typeof window < "u" && typeof document < "u";
7823
7823
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7824
- const O5 = Object.prototype.toString, f5 = (H) => O5.call(H) === "[object Object]", U1 = () => {
7825
- }, h5 = /* @__PURE__ */ g5();
7826
- function g5() {
7824
+ const s5 = Object.prototype.toString, c5 = (H) => s5.call(H) === "[object Object]", Q1 = () => {
7825
+ }, p5 = /* @__PURE__ */ O5();
7826
+ function O5() {
7827
7827
  var H;
7828
- return u2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7828
+ return r2 && ((H = window == null ? void 0 : window.navigator) == null ? void 0 : H.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
7829
7829
  }
7830
- function c1(H) {
7830
+ function s1(H) {
7831
7831
  var V;
7832
- const C = Z2(H);
7832
+ const C = n2(H);
7833
7833
  return (V = C == null ? void 0 : C.$el) != null ? V : C;
7834
7834
  }
7835
- const S2 = u2 ? window : void 0;
7836
- function Q1(...H) {
7835
+ const a2 = r2 ? window : void 0;
7836
+ function I1(...H) {
7837
7837
  let V, C, i, A;
7838
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, i, A] = H, V = S2) : [V, C, i, A] = H, !V)
7839
- return U1;
7838
+ if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, i, A] = H, V = a2) : [V, C, i, A] = H, !V)
7839
+ return Q1;
7840
7840
  Array.isArray(C) || (C = [C]), Array.isArray(i) || (i = [i]);
7841
7841
  const L = [], M = () => {
7842
7842
  L.forEach((n) => n()), L.length = 0;
7843
- }, e = (n, u, o, r) => (n.addEventListener(u, o, r), () => n.removeEventListener(u, o, r)), d = N(
7844
- () => [c1(V), Z2(A)],
7845
- ([n, u]) => {
7843
+ }, e = (n, Z, o, r) => (n.addEventListener(Z, o, r), () => n.removeEventListener(Z, o, r)), d = $(
7844
+ () => [s1(V), n2(A)],
7845
+ ([n, Z]) => {
7846
7846
  if (M(), !n)
7847
7847
  return;
7848
- const o = f5(u) ? { ...u } : u;
7848
+ const o = c5(Z) ? { ...Z } : Z;
7849
7849
  L.push(
7850
- ...C.flatMap((r) => i.map((S) => e(n, r, S, o)))
7850
+ ...C.flatMap((r) => i.map((u) => e(n, r, u, o)))
7851
7851
  );
7852
7852
  },
7853
7853
  { immediate: !0, flush: "post" }
7854
7854
  ), l = () => {
7855
7855
  d(), M();
7856
7856
  };
7857
- return p5(l), l;
7857
+ return S5(l), l;
7858
7858
  }
7859
- let e2 = !1;
7860
- function k5(H, V, C = {}) {
7861
- const { window: i = S2, ignore: A = [], capture: L = !0, detectIframe: M = !1 } = C;
7859
+ let M2 = !1;
7860
+ function f5(H, V, C = {}) {
7861
+ const { window: i = a2, ignore: A = [], capture: L = !0, detectIframe: M = !1 } = C;
7862
7862
  if (!i)
7863
7863
  return;
7864
- h5 && !e2 && (e2 = !0, Array.from(i.document.body.children).forEach((o) => o.addEventListener("click", U1)), i.document.documentElement.addEventListener("click", U1));
7864
+ p5 && !M2 && (M2 = !0, Array.from(i.document.body.children).forEach((o) => o.addEventListener("click", Q1)), i.document.documentElement.addEventListener("click", Q1));
7865
7865
  let e = !0;
7866
7866
  const d = (o) => A.some((r) => {
7867
7867
  if (typeof r == "string")
7868
- return Array.from(i.document.querySelectorAll(r)).some((S) => S === o.target || o.composedPath().includes(S));
7868
+ return Array.from(i.document.querySelectorAll(r)).some((u) => u === o.target || o.composedPath().includes(u));
7869
7869
  {
7870
- const S = c1(r);
7871
- return S && (o.target === S || o.composedPath().includes(S));
7870
+ const u = s1(r);
7871
+ return u && (o.target === u || o.composedPath().includes(u));
7872
7872
  }
7873
7873
  }), n = [
7874
- Q1(i, "click", (o) => {
7875
- const r = c1(H);
7874
+ I1(i, "click", (o) => {
7875
+ const r = s1(H);
7876
7876
  if (!(!r || r === o.target || o.composedPath().includes(r))) {
7877
7877
  if (o.detail === 0 && (e = !d(o)), !e) {
7878
7878
  e = !0;
@@ -7881,76 +7881,76 @@ function k5(H, V, C = {}) {
7881
7881
  V(o);
7882
7882
  }
7883
7883
  }, { passive: !0, capture: L }),
7884
- Q1(i, "pointerdown", (o) => {
7885
- const r = c1(H);
7884
+ I1(i, "pointerdown", (o) => {
7885
+ const r = s1(H);
7886
7886
  e = !d(o) && !!(r && !o.composedPath().includes(r));
7887
7887
  }, { passive: !0 }),
7888
- M && Q1(i, "blur", (o) => {
7888
+ M && I1(i, "blur", (o) => {
7889
7889
  setTimeout(() => {
7890
7890
  var r;
7891
- const S = c1(H);
7892
- ((r = i.document.activeElement) == null ? void 0 : r.tagName) === "IFRAME" && !(S != null && S.contains(i.document.activeElement)) && V(o);
7891
+ const u = s1(H);
7892
+ ((r = i.document.activeElement) == null ? void 0 : r.tagName) === "IFRAME" && !(u != null && u.contains(i.document.activeElement)) && V(o);
7893
7893
  }, 0);
7894
7894
  })
7895
7895
  ].filter(Boolean);
7896
7896
  return () => n.forEach((o) => o());
7897
7897
  }
7898
- function B5() {
7898
+ function h5() {
7899
7899
  function H() {
7900
7900
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
7901
7901
  }
7902
7902
  return `${H() + H()}-${H()}-${H()}-${H()}-${H()}${H()}${H()}`;
7903
7903
  }
7904
- const b5 = ["top", "right", "bottom", "left"], O1 = Math.min, a1 = Math.max, F1 = Math.round, e1 = (H) => ({
7904
+ const g5 = ["top", "right", "bottom", "left"], p1 = Math.min, r1 = Math.max, T1 = Math.round, e1 = (H) => ({
7905
7905
  x: H,
7906
7906
  y: H
7907
- }), v5 = {
7907
+ }), k5 = {
7908
7908
  left: "right",
7909
7909
  right: "left",
7910
7910
  bottom: "top",
7911
7911
  top: "bottom"
7912
- }, w5 = {
7912
+ }, B5 = {
7913
7913
  start: "end",
7914
7914
  end: "start"
7915
7915
  };
7916
- function z1(H, V, C) {
7917
- return a1(H, O1(V, C));
7916
+ function G1(H, V, C) {
7917
+ return r1(H, p1(V, C));
7918
7918
  }
7919
- function S1(H, V) {
7919
+ function u1(H, V) {
7920
7920
  return typeof H == "function" ? H(V) : H;
7921
7921
  }
7922
- function o1(H) {
7922
+ function l1(H) {
7923
7923
  return H.split("-")[0];
7924
7924
  }
7925
- function g1(H) {
7925
+ function h1(H) {
7926
7926
  return H.split("-")[1];
7927
7927
  }
7928
- function s2(H) {
7928
+ function Z2(H) {
7929
7929
  return H === "x" ? "y" : "x";
7930
7930
  }
7931
- function J1(H) {
7931
+ function X1(H) {
7932
7932
  return H === "y" ? "height" : "width";
7933
7933
  }
7934
- function $1(H) {
7935
- return ["top", "bottom"].includes(o1(H)) ? "y" : "x";
7934
+ function _1(H) {
7935
+ return ["top", "bottom"].includes(l1(H)) ? "y" : "x";
7936
7936
  }
7937
- function C2(H) {
7938
- return s2($1(H));
7937
+ function Y1(H) {
7938
+ return Z2(_1(H));
7939
7939
  }
7940
- function y5(H, V, C) {
7940
+ function b5(H, V, C) {
7941
7941
  C === void 0 && (C = !1);
7942
- const i = g1(H), A = C2(H), L = J1(A);
7942
+ const i = h1(H), A = Y1(H), L = X1(A);
7943
7943
  let M = A === "x" ? i === (C ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
7944
- return V.reference[L] > V.floating[L] && (M = R1(M)), [M, R1(M)];
7944
+ return V.reference[L] > V.floating[L] && (M = F1(M)), [M, F1(M)];
7945
7945
  }
7946
- function P5(H) {
7947
- const V = R1(H);
7948
- return [K1(H), V, K1(V)];
7946
+ function v5(H) {
7947
+ const V = F1(H);
7948
+ return [U1(H), V, U1(V)];
7949
7949
  }
7950
- function K1(H) {
7951
- return H.replace(/start|end/g, (V) => w5[V]);
7950
+ function U1(H) {
7951
+ return H.replace(/start|end/g, (V) => B5[V]);
7952
7952
  }
7953
- function T5(H, V, C) {
7953
+ function w5(H, V, C) {
7954
7954
  const i = ["left", "right"], A = ["right", "left"], L = ["top", "bottom"], M = ["bottom", "top"];
7955
7955
  switch (H) {
7956
7956
  case "top":
@@ -7963,15 +7963,15 @@ function T5(H, V, C) {
7963
7963
  return [];
7964
7964
  }
7965
7965
  }
7966
- function F5(H, V, C, i) {
7967
- const A = g1(H);
7968
- let L = T5(o1(H), C === "start", i);
7969
- return A && (L = L.map((M) => M + "-" + A), V && (L = L.concat(L.map(K1)))), L;
7966
+ function y5(H, V, C, i) {
7967
+ const A = h1(H);
7968
+ let L = w5(l1(H), C === "start", i);
7969
+ return A && (L = L.map((M) => M + "-" + A), V && (L = L.concat(L.map(U1)))), L;
7970
7970
  }
7971
- function R1(H) {
7972
- return H.replace(/left|right|bottom|top/g, (V) => v5[V]);
7971
+ function F1(H) {
7972
+ return H.replace(/left|right|bottom|top/g, (V) => k5[V]);
7973
7973
  }
7974
- function R5(H) {
7974
+ function P5(H) {
7975
7975
  return {
7976
7976
  top: 0,
7977
7977
  right: 0,
@@ -7980,15 +7980,15 @@ function R5(H) {
7980
7980
  ...H
7981
7981
  };
7982
7982
  }
7983
- function c2(H) {
7984
- return typeof H != "number" ? R5(H) : {
7983
+ function u2(H) {
7984
+ return typeof H != "number" ? P5(H) : {
7985
7985
  top: H,
7986
7986
  right: H,
7987
7987
  bottom: H,
7988
7988
  left: H
7989
7989
  };
7990
7990
  }
7991
- function x1(H) {
7991
+ function R1(H) {
7992
7992
  return {
7993
7993
  ...H,
7994
7994
  top: H.y,
@@ -7997,12 +7997,12 @@ function x1(H) {
7997
7997
  bottom: H.y + H.height
7998
7998
  };
7999
7999
  }
8000
- function d2(H, V, C) {
8000
+ function i2(H, V, C) {
8001
8001
  let {
8002
8002
  reference: i,
8003
8003
  floating: A
8004
8004
  } = H;
8005
- const L = $1(V), M = C2(V), e = J1(M), d = o1(V), l = L === "y", n = i.x + i.width / 2 - A.width / 2, u = i.y + i.height / 2 - A.height / 2, o = i[e] / 2 - A[e] / 2;
8005
+ const L = _1(V), M = Y1(V), e = X1(M), d = l1(V), l = L === "y", n = i.x + i.width / 2 - A.width / 2, Z = i.y + i.height / 2 - A.height / 2, o = i[e] / 2 - A[e] / 2;
8006
8006
  let r;
8007
8007
  switch (d) {
8008
8008
  case "top":
@@ -8020,13 +8020,13 @@ function d2(H, V, C) {
8020
8020
  case "right":
8021
8021
  r = {
8022
8022
  x: i.x + i.width,
8023
- y: u
8023
+ y: Z
8024
8024
  };
8025
8025
  break;
8026
8026
  case "left":
8027
8027
  r = {
8028
8028
  x: i.x - A.width,
8029
- y: u
8029
+ y: Z
8030
8030
  };
8031
8031
  break;
8032
8032
  default:
@@ -8035,7 +8035,7 @@ function d2(H, V, C) {
8035
8035
  y: i.y
8036
8036
  };
8037
8037
  }
8038
- switch (g1(V)) {
8038
+ switch (h1(V)) {
8039
8039
  case "start":
8040
8040
  r[M] -= o * (C && l ? -1 : 1);
8041
8041
  break;
@@ -8045,7 +8045,7 @@ function d2(H, V, C) {
8045
8045
  }
8046
8046
  return r;
8047
8047
  }
8048
- const x5 = async (H, V, C) => {
8048
+ const T5 = async (H, V, C) => {
8049
8049
  const {
8050
8050
  placement: i = "bottom",
8051
8051
  strategy: A = "absolute",
@@ -8058,20 +8058,20 @@ const x5 = async (H, V, C) => {
8058
8058
  strategy: A
8059
8059
  }), {
8060
8060
  x: n,
8061
- y: u
8062
- } = d2(l, i, d), o = i, r = {}, S = 0;
8061
+ y: Z
8062
+ } = i2(l, i, d), o = i, r = {}, u = 0;
8063
8063
  for (let v = 0; v < e.length; v++) {
8064
8064
  const {
8065
- name: B,
8066
- fn: P
8065
+ name: h,
8066
+ fn: y
8067
8067
  } = e[v], {
8068
- x: c,
8068
+ x: p,
8069
8069
  y: w,
8070
- data: _,
8070
+ data: E,
8071
8071
  reset: x
8072
- } = await P({
8072
+ } = await y({
8073
8073
  x: n,
8074
- y: u,
8074
+ y: Z,
8075
8075
  initialPlacement: i,
8076
8076
  placement: o,
8077
8077
  strategy: A,
@@ -8083,33 +8083,33 @@ const x5 = async (H, V, C) => {
8083
8083
  floating: V
8084
8084
  }
8085
8085
  });
8086
- if (n = c ?? n, u = w ?? u, r = {
8086
+ if (n = p ?? n, Z = w ?? Z, r = {
8087
8087
  ...r,
8088
- [B]: {
8089
- ...r[B],
8090
- ..._
8088
+ [h]: {
8089
+ ...r[h],
8090
+ ...E
8091
8091
  }
8092
- }, x && S <= 50) {
8093
- S++, typeof x == "object" && (x.placement && (o = x.placement), x.rects && (l = x.rects === !0 ? await M.getElementRects({
8092
+ }, x && u <= 50) {
8093
+ u++, typeof x == "object" && (x.placement && (o = x.placement), x.rects && (l = x.rects === !0 ? await M.getElementRects({
8094
8094
  reference: H,
8095
8095
  floating: V,
8096
8096
  strategy: A
8097
8097
  }) : x.rects), {
8098
8098
  x: n,
8099
- y: u
8100
- } = d2(l, o, d)), v = -1;
8099
+ y: Z
8100
+ } = i2(l, o, d)), v = -1;
8101
8101
  continue;
8102
8102
  }
8103
8103
  }
8104
8104
  return {
8105
8105
  x: n,
8106
- y: u,
8106
+ y: Z,
8107
8107
  placement: o,
8108
8108
  strategy: A,
8109
8109
  middlewareData: r
8110
8110
  };
8111
8111
  };
8112
- async function D1(H, V) {
8112
+ async function x1(H, V) {
8113
8113
  var C;
8114
8114
  V === void 0 && (V = {});
8115
8115
  const {
@@ -8122,37 +8122,37 @@ async function D1(H, V) {
8122
8122
  } = H, {
8123
8123
  boundary: l = "clippingAncestors",
8124
8124
  rootBoundary: n = "viewport",
8125
- elementContext: u = "floating",
8125
+ elementContext: Z = "floating",
8126
8126
  altBoundary: o = !1,
8127
8127
  padding: r = 0
8128
- } = S1(V, H), S = c2(r), B = e[o ? u === "floating" ? "reference" : "floating" : u], P = x1(await L.getClippingRect({
8129
- element: (C = await (L.isElement == null ? void 0 : L.isElement(B))) == null || C ? B : B.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8128
+ } = u1(V, H), u = u2(r), h = e[o ? Z === "floating" ? "reference" : "floating" : Z], y = R1(await L.getClippingRect({
8129
+ element: (C = await (L.isElement == null ? void 0 : L.isElement(h))) == null || C ? h : h.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8130
8130
  boundary: l,
8131
8131
  rootBoundary: n,
8132
8132
  strategy: d
8133
- })), c = u === "floating" ? {
8133
+ })), p = Z === "floating" ? {
8134
8134
  ...M.floating,
8135
8135
  x: i,
8136
8136
  y: A
8137
- } : M.reference, w = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), _ = await (L.isElement == null ? void 0 : L.isElement(w)) ? await (L.getScale == null ? void 0 : L.getScale(w)) || {
8137
+ } : M.reference, w = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), E = await (L.isElement == null ? void 0 : L.isElement(w)) ? await (L.getScale == null ? void 0 : L.getScale(w)) || {
8138
8138
  x: 1,
8139
8139
  y: 1
8140
8140
  } : {
8141
8141
  x: 1,
8142
8142
  y: 1
8143
- }, x = x1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8144
- rect: c,
8143
+ }, x = R1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8144
+ rect: p,
8145
8145
  offsetParent: w,
8146
8146
  strategy: d
8147
- }) : c);
8147
+ }) : p);
8148
8148
  return {
8149
- top: (P.top - x.top + S.top) / _.y,
8150
- bottom: (x.bottom - P.bottom + S.bottom) / _.y,
8151
- left: (P.left - x.left + S.left) / _.x,
8152
- right: (x.right - P.right + S.right) / _.x
8149
+ top: (y.top - x.top + u.top) / E.y,
8150
+ bottom: (x.bottom - y.bottom + u.bottom) / E.y,
8151
+ left: (y.left - x.left + u.left) / E.x,
8152
+ right: (x.right - y.right + u.right) / E.x
8153
8153
  };
8154
8154
  }
8155
- const D5 = (H) => ({
8155
+ const F5 = (H) => ({
8156
8156
  name: "arrow",
8157
8157
  options: H,
8158
8158
  async fn(V) {
@@ -8167,29 +8167,29 @@ const D5 = (H) => ({
8167
8167
  } = V, {
8168
8168
  element: l,
8169
8169
  padding: n = 0
8170
- } = S1(H, V) || {};
8170
+ } = u1(H, V) || {};
8171
8171
  if (l == null)
8172
8172
  return {};
8173
- const u = c2(n), o = {
8173
+ const Z = u2(n), o = {
8174
8174
  x: C,
8175
8175
  y: i
8176
- }, r = C2(A), S = J1(r), v = await M.getDimensions(l), B = r === "y", P = B ? "top" : "left", c = B ? "bottom" : "right", w = B ? "clientHeight" : "clientWidth", _ = L.reference[S] + L.reference[r] - o[r] - L.floating[S], x = o[r] - L.reference[r], z = await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(l));
8177
- let $ = z ? z[w] : 0;
8178
- (!$ || !await (M.isElement == null ? void 0 : M.isElement(z))) && ($ = e.floating[w] || L.floating[S]);
8179
- const J = _ / 2 - x / 2, h = $ / 2 - v[S] / 2 - 1, F = O1(u[P], h), m1 = O1(u[c], h), I = F, l1 = $ - v[S] - m1, Q = $ / 2 - v[S] / 2 + J, j = z1(I, Q, l1), X = !d.arrow && g1(A) != null && Q != j && L.reference[S] / 2 - (Q < I ? F : m1) - v[S] / 2 < 0, K = X ? Q < I ? Q - I : Q - l1 : 0;
8176
+ }, r = Y1(A), u = X1(r), v = await M.getDimensions(l), h = r === "y", y = h ? "top" : "left", p = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", E = L.reference[u] + L.reference[r] - o[r] - L.floating[u], x = o[r] - L.reference[r], W = await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(l));
8177
+ let N = W ? W[w] : 0;
8178
+ (!N || !await (M.isElement == null ? void 0 : M.isElement(W))) && (N = e.floating[w] || L.floating[u]);
8179
+ const _ = E / 2 - x / 2, g = N / 2 - v[u] / 2 - 1, I = p1(Z[y], g), M1 = p1(Z[p], g), z = I, m1 = N - v[u] - M1, Q = N / 2 - v[u] / 2 + _, j = G1(z, Q, m1), K = !d.arrow && h1(A) != null && Q != j && L.reference[u] / 2 - (Q < z ? I : M1) - v[u] / 2 < 0, t = K ? Q < z ? Q - z : Q - m1 : 0;
8180
8180
  return {
8181
- [r]: o[r] + K,
8181
+ [r]: o[r] + t,
8182
8182
  data: {
8183
8183
  [r]: j,
8184
- centerOffset: Q - j - K,
8185
- ...X && {
8186
- alignmentOffset: K
8184
+ centerOffset: Q - j - t,
8185
+ ...K && {
8186
+ alignmentOffset: t
8187
8187
  }
8188
8188
  },
8189
- reset: X
8189
+ reset: K
8190
8190
  };
8191
8191
  }
8192
- }), E5 = function(H) {
8192
+ }), R5 = function(H) {
8193
8193
  return H === void 0 && (H = {}), {
8194
8194
  name: "flip",
8195
8195
  options: H,
@@ -8204,45 +8204,45 @@ const D5 = (H) => ({
8204
8204
  elements: l
8205
8205
  } = V, {
8206
8206
  mainAxis: n = !0,
8207
- crossAxis: u = !0,
8207
+ crossAxis: Z = !0,
8208
8208
  fallbackPlacements: o,
8209
8209
  fallbackStrategy: r = "bestFit",
8210
- fallbackAxisSideDirection: S = "none",
8210
+ fallbackAxisSideDirection: u = "none",
8211
8211
  flipAlignment: v = !0,
8212
- ...B
8213
- } = S1(H, V);
8212
+ ...h
8213
+ } = u1(H, V);
8214
8214
  if ((C = L.arrow) != null && C.alignmentOffset)
8215
8215
  return {};
8216
- const P = o1(A), c = o1(e) === e, w = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), _ = o || (c || !v ? [R1(e)] : P5(e));
8217
- !o && S !== "none" && _.push(...F5(e, v, S, w));
8218
- const x = [e, ..._], z = await D1(V, B), $ = [];
8219
- let J = ((i = L.flip) == null ? void 0 : i.overflows) || [];
8220
- if (n && $.push(z[P]), u) {
8221
- const I = y5(A, M, w);
8222
- $.push(z[I[0]], z[I[1]]);
8216
+ const y = l1(A), p = l1(e) === e, w = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), E = o || (p || !v ? [F1(e)] : v5(e));
8217
+ !o && u !== "none" && E.push(...y5(e, v, u, w));
8218
+ const x = [e, ...E], W = await x1(V, h), N = [];
8219
+ let _ = ((i = L.flip) == null ? void 0 : i.overflows) || [];
8220
+ if (n && N.push(W[y]), Z) {
8221
+ const z = b5(A, M, w);
8222
+ N.push(W[z[0]], W[z[1]]);
8223
8223
  }
8224
- if (J = [...J, {
8224
+ if (_ = [..._, {
8225
8225
  placement: A,
8226
- overflows: $
8227
- }], !$.every((I) => I <= 0)) {
8228
- var h, F;
8229
- const I = (((h = L.flip) == null ? void 0 : h.index) || 0) + 1, l1 = x[I];
8230
- if (l1)
8226
+ overflows: N
8227
+ }], !N.every((z) => z <= 0)) {
8228
+ var g, I;
8229
+ const z = (((g = L.flip) == null ? void 0 : g.index) || 0) + 1, m1 = x[z];
8230
+ if (m1)
8231
8231
  return {
8232
8232
  data: {
8233
- index: I,
8234
- overflows: J
8233
+ index: z,
8234
+ overflows: _
8235
8235
  },
8236
8236
  reset: {
8237
- placement: l1
8237
+ placement: m1
8238
8238
  }
8239
8239
  };
8240
- let Q = (F = J.filter((j) => j.overflows[0] <= 0).sort((j, X) => j.overflows[1] - X.overflows[1])[0]) == null ? void 0 : F.placement;
8240
+ let Q = (I = _.filter((j) => j.overflows[0] <= 0).sort((j, K) => j.overflows[1] - K.overflows[1])[0]) == null ? void 0 : I.placement;
8241
8241
  if (!Q)
8242
8242
  switch (r) {
8243
8243
  case "bestFit": {
8244
- var m1;
8245
- const j = (m1 = J.map((X) => [X.placement, X.overflows.filter((K) => K > 0).reduce((K, t) => K + t, 0)]).sort((X, K) => X[1] - K[1])[0]) == null ? void 0 : m1[0];
8244
+ var M1;
8245
+ const j = (M1 = _.map((K) => [K.placement, K.overflows.filter((t) => t > 0).reduce((t, s) => t + s, 0)]).sort((K, t) => K[1] - t[1])[0]) == null ? void 0 : M1[0];
8246
8246
  j && (Q = j);
8247
8247
  break;
8248
8248
  }
@@ -8261,7 +8261,7 @@ const D5 = (H) => ({
8261
8261
  }
8262
8262
  };
8263
8263
  };
8264
- function t2(H, V) {
8264
+ function A2(H, V) {
8265
8265
  return {
8266
8266
  top: H.top - V.height,
8267
8267
  right: H.right - V.width,
@@ -8269,10 +8269,10 @@ function t2(H, V) {
8269
8269
  left: H.left - V.width
8270
8270
  };
8271
8271
  }
8272
- function m2(H) {
8273
- return b5.some((V) => H[V] >= 0);
8272
+ function e2(H) {
8273
+ return g5.some((V) => H[V] >= 0);
8274
8274
  }
8275
- const _5 = function(H) {
8275
+ const x5 = function(H) {
8276
8276
  return H === void 0 && (H = {}), {
8277
8277
  name: "hide",
8278
8278
  options: H,
@@ -8282,29 +8282,29 @@ const _5 = function(H) {
8282
8282
  } = V, {
8283
8283
  strategy: i = "referenceHidden",
8284
8284
  ...A
8285
- } = S1(H, V);
8285
+ } = u1(H, V);
8286
8286
  switch (i) {
8287
8287
  case "referenceHidden": {
8288
- const L = await D1(V, {
8288
+ const L = await x1(V, {
8289
8289
  ...A,
8290
8290
  elementContext: "reference"
8291
- }), M = t2(L, C.reference);
8291
+ }), M = A2(L, C.reference);
8292
8292
  return {
8293
8293
  data: {
8294
8294
  referenceHiddenOffsets: M,
8295
- referenceHidden: m2(M)
8295
+ referenceHidden: e2(M)
8296
8296
  }
8297
8297
  };
8298
8298
  }
8299
8299
  case "escaped": {
8300
- const L = await D1(V, {
8300
+ const L = await x1(V, {
8301
8301
  ...A,
8302
8302
  altBoundary: !0
8303
- }), M = t2(L, C.floating);
8303
+ }), M = A2(L, C.floating);
8304
8304
  return {
8305
8305
  data: {
8306
8306
  escapedOffsets: M,
8307
- escaped: m2(M)
8307
+ escaped: e2(M)
8308
8308
  }
8309
8309
  };
8310
8310
  }
@@ -8314,27 +8314,27 @@ const _5 = function(H) {
8314
8314
  }
8315
8315
  };
8316
8316
  };
8317
- async function $5(H, V) {
8317
+ async function D5(H, V) {
8318
8318
  const {
8319
8319
  placement: C,
8320
8320
  platform: i,
8321
8321
  elements: A
8322
- } = H, L = await (i.isRTL == null ? void 0 : i.isRTL(A.floating)), M = o1(C), e = g1(C), d = $1(C) === "y", l = ["left", "top"].includes(M) ? -1 : 1, n = L && d ? -1 : 1, u = S1(V, H);
8322
+ } = H, L = await (i.isRTL == null ? void 0 : i.isRTL(A.floating)), M = l1(C), e = h1(C), d = _1(C) === "y", l = ["left", "top"].includes(M) ? -1 : 1, n = L && d ? -1 : 1, Z = u1(V, H);
8323
8323
  let {
8324
8324
  mainAxis: o,
8325
8325
  crossAxis: r,
8326
- alignmentAxis: S
8327
- } = typeof u == "number" ? {
8328
- mainAxis: u,
8326
+ alignmentAxis: u
8327
+ } = typeof Z == "number" ? {
8328
+ mainAxis: Z,
8329
8329
  crossAxis: 0,
8330
8330
  alignmentAxis: null
8331
8331
  } : {
8332
8332
  mainAxis: 0,
8333
8333
  crossAxis: 0,
8334
8334
  alignmentAxis: null,
8335
- ...u
8335
+ ...Z
8336
8336
  };
8337
- return e && typeof S == "number" && (r = e === "end" ? S * -1 : S), d ? {
8337
+ return e && typeof u == "number" && (r = e === "end" ? u * -1 : u), d ? {
8338
8338
  x: r * n,
8339
8339
  y: o * l
8340
8340
  } : {
@@ -8342,7 +8342,7 @@ async function $5(H, V) {
8342
8342
  y: r * n
8343
8343
  };
8344
8344
  }
8345
- const W5 = function(H) {
8345
+ const E5 = function(H) {
8346
8346
  return H === void 0 && (H = 0), {
8347
8347
  name: "offset",
8348
8348
  options: H,
@@ -8350,7 +8350,7 @@ const W5 = function(H) {
8350
8350
  const {
8351
8351
  x: C,
8352
8352
  y: i
8353
- } = V, A = await $5(V, H);
8353
+ } = V, A = await D5(V, H);
8354
8354
  return {
8355
8355
  x: C + A.x,
8356
8356
  y: i + A.y,
@@ -8358,7 +8358,7 @@ const W5 = function(H) {
8358
8358
  };
8359
8359
  }
8360
8360
  };
8361
- }, N5 = function(H) {
8361
+ }, _5 = function(H) {
8362
8362
  return H === void 0 && (H = {}), {
8363
8363
  name: "shift",
8364
8364
  options: H,
@@ -8371,35 +8371,35 @@ const W5 = function(H) {
8371
8371
  mainAxis: L = !0,
8372
8372
  crossAxis: M = !1,
8373
8373
  limiter: e = {
8374
- fn: (B) => {
8374
+ fn: (h) => {
8375
8375
  let {
8376
- x: P,
8377
- y: c
8378
- } = B;
8376
+ x: y,
8377
+ y: p
8378
+ } = h;
8379
8379
  return {
8380
- x: P,
8381
- y: c
8380
+ x: y,
8381
+ y: p
8382
8382
  };
8383
8383
  }
8384
8384
  },
8385
8385
  ...d
8386
- } = S1(H, V), l = {
8386
+ } = u1(H, V), l = {
8387
8387
  x: C,
8388
8388
  y: i
8389
- }, n = await D1(V, d), u = $1(o1(A)), o = s2(u);
8390
- let r = l[o], S = l[u];
8389
+ }, n = await x1(V, d), Z = _1(l1(A)), o = Z2(Z);
8390
+ let r = l[o], u = l[Z];
8391
8391
  if (L) {
8392
- const B = o === "y" ? "top" : "left", P = o === "y" ? "bottom" : "right", c = r + n[B], w = r - n[P];
8393
- r = z1(c, r, w);
8392
+ const h = o === "y" ? "top" : "left", y = o === "y" ? "bottom" : "right", p = r + n[h], w = r - n[y];
8393
+ r = G1(p, r, w);
8394
8394
  }
8395
8395
  if (M) {
8396
- const B = u === "y" ? "top" : "left", P = u === "y" ? "bottom" : "right", c = S + n[B], w = S - n[P];
8397
- S = z1(c, S, w);
8396
+ const h = Z === "y" ? "top" : "left", y = Z === "y" ? "bottom" : "right", p = u + n[h], w = u - n[y];
8397
+ u = G1(p, u, w);
8398
8398
  }
8399
8399
  const v = e.fn({
8400
8400
  ...V,
8401
8401
  [o]: r,
8402
- [u]: S
8402
+ [Z]: u
8403
8403
  });
8404
8404
  return {
8405
8405
  ...v,
@@ -8412,7 +8412,7 @@ const W5 = function(H) {
8412
8412
  };
8413
8413
  };
8414
8414
  function d1(H) {
8415
- return p2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8415
+ return S2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8416
8416
  }
8417
8417
  function q(H) {
8418
8418
  var V;
@@ -8420,21 +8420,21 @@ function q(H) {
8420
8420
  }
8421
8421
  function t1(H) {
8422
8422
  var V;
8423
- return (V = (p2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8423
+ return (V = (S2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8424
8424
  }
8425
- function p2(H) {
8425
+ function S2(H) {
8426
8426
  return H instanceof Node || H instanceof q(H).Node;
8427
8427
  }
8428
- function M1(H) {
8428
+ function L1(H) {
8429
8429
  return H instanceof Element || H instanceof q(H).Element;
8430
8430
  }
8431
- function H1(H) {
8431
+ function C1(H) {
8432
8432
  return H instanceof HTMLElement || H instanceof q(H).HTMLElement;
8433
8433
  }
8434
- function l2(H) {
8434
+ function d2(H) {
8435
8435
  return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof q(H).ShadowRoot;
8436
8436
  }
8437
- function k1(H) {
8437
+ function g1(H) {
8438
8438
  const {
8439
8439
  overflow: V,
8440
8440
  overflowX: C,
@@ -8443,33 +8443,33 @@ function k1(H) {
8443
8443
  } = Y(H);
8444
8444
  return /auto|scroll|overlay|hidden|clip/.test(V + i + C) && !["inline", "contents"].includes(A);
8445
8445
  }
8446
- function I5(H) {
8446
+ function $5(H) {
8447
8447
  return ["table", "td", "th"].includes(d1(H));
8448
8448
  }
8449
- function H2(H) {
8450
- const V = V2(), C = Y(H);
8449
+ function J1(H) {
8450
+ const V = C2(), C = Y(H);
8451
8451
  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((i) => (C.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (C.contain || "").includes(i));
8452
8452
  }
8453
- function Q5(H) {
8454
- let V = u1(H);
8455
- for (; H1(V) && !W1(V); ) {
8456
- if (H2(V))
8453
+ function W5(H) {
8454
+ let V = Z1(H);
8455
+ for (; C1(V) && !$1(V); ) {
8456
+ if (J1(V))
8457
8457
  return V;
8458
- V = u1(V);
8458
+ V = Z1(V);
8459
8459
  }
8460
8460
  return null;
8461
8461
  }
8462
- function V2() {
8462
+ function C2() {
8463
8463
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
8464
8464
  }
8465
- function W1(H) {
8465
+ function $1(H) {
8466
8466
  return ["html", "body", "#document"].includes(d1(H));
8467
8467
  }
8468
8468
  function Y(H) {
8469
8469
  return q(H).getComputedStyle(H);
8470
8470
  }
8471
- function N1(H) {
8472
- return M1(H) ? {
8471
+ function W1(H) {
8472
+ return L1(H) ? {
8473
8473
  scrollLeft: H.scrollLeft,
8474
8474
  scrollTop: H.scrollTop
8475
8475
  } : {
@@ -8477,96 +8477,96 @@ function N1(H) {
8477
8477
  scrollTop: H.pageYOffset
8478
8478
  };
8479
8479
  }
8480
- function u1(H) {
8480
+ function Z1(H) {
8481
8481
  if (d1(H) === "html")
8482
8482
  return H;
8483
8483
  const V = (
8484
8484
  // Step into the shadow DOM of the parent of a slotted node.
8485
8485
  H.assignedSlot || // DOM Element detected.
8486
8486
  H.parentNode || // ShadowRoot detected.
8487
- l2(H) && H.host || // Fallback.
8487
+ d2(H) && H.host || // Fallback.
8488
8488
  t1(H)
8489
8489
  );
8490
- return l2(V) ? V.host : V;
8490
+ return d2(V) ? V.host : V;
8491
8491
  }
8492
- function O2(H) {
8493
- const V = u1(H);
8494
- return W1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : H1(V) && k1(V) ? V : O2(V);
8492
+ function s2(H) {
8493
+ const V = Z1(H);
8494
+ return $1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : C1(V) && g1(V) ? V : s2(V);
8495
8495
  }
8496
- function q1(H, V, C) {
8496
+ function z1(H, V, C) {
8497
8497
  var i;
8498
8498
  V === void 0 && (V = []), C === void 0 && (C = !0);
8499
- const A = O2(H), L = A === ((i = H.ownerDocument) == null ? void 0 : i.body), M = q(A);
8500
- return L ? V.concat(M, M.visualViewport || [], k1(A) ? A : [], M.frameElement && C ? q1(M.frameElement) : []) : V.concat(A, q1(A, [], C));
8499
+ const A = s2(H), L = A === ((i = H.ownerDocument) == null ? void 0 : i.body), M = q(A);
8500
+ return L ? V.concat(M, M.visualViewport || [], g1(A) ? A : [], M.frameElement && C ? z1(M.frameElement) : []) : V.concat(A, z1(A, [], C));
8501
8501
  }
8502
- function f2(H) {
8502
+ function c2(H) {
8503
8503
  const V = Y(H);
8504
8504
  let C = parseFloat(V.width) || 0, i = parseFloat(V.height) || 0;
8505
- const A = H1(H), L = A ? H.offsetWidth : C, M = A ? H.offsetHeight : i, e = F1(C) !== L || F1(i) !== M;
8505
+ const A = C1(H), L = A ? H.offsetWidth : C, M = A ? H.offsetHeight : i, e = T1(C) !== L || T1(i) !== M;
8506
8506
  return e && (C = L, i = M), {
8507
8507
  width: C,
8508
8508
  height: i,
8509
8509
  $: e
8510
8510
  };
8511
8511
  }
8512
- function h2(H) {
8513
- return M1(H) ? H : H.contextElement;
8512
+ function p2(H) {
8513
+ return L1(H) ? H : H.contextElement;
8514
8514
  }
8515
- function Z1(H) {
8516
- const V = h2(H);
8517
- if (!H1(V))
8515
+ function a1(H) {
8516
+ const V = p2(H);
8517
+ if (!C1(V))
8518
8518
  return e1(1);
8519
8519
  const C = V.getBoundingClientRect(), {
8520
8520
  width: i,
8521
8521
  height: A,
8522
8522
  $: L
8523
- } = f2(V);
8524
- let M = (L ? F1(C.width) : C.width) / i, e = (L ? F1(C.height) : C.height) / A;
8523
+ } = c2(V);
8524
+ let M = (L ? T1(C.width) : C.width) / i, e = (L ? T1(C.height) : C.height) / A;
8525
8525
  return (!M || !Number.isFinite(M)) && (M = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8526
8526
  x: M,
8527
8527
  y: e
8528
8528
  };
8529
8529
  }
8530
- const G5 = /* @__PURE__ */ e1(0);
8531
- function g2(H) {
8530
+ const N5 = /* @__PURE__ */ e1(0);
8531
+ function O2(H) {
8532
8532
  const V = q(H);
8533
- return !V2() || !V.visualViewport ? G5 : {
8533
+ return !C2() || !V.visualViewport ? N5 : {
8534
8534
  x: V.visualViewport.offsetLeft,
8535
8535
  y: V.visualViewport.offsetTop
8536
8536
  };
8537
8537
  }
8538
- function U5(H, V, C) {
8538
+ function I5(H, V, C) {
8539
8539
  return V === void 0 && (V = !1), !C || V && C !== q(H) ? !1 : V;
8540
8540
  }
8541
- function f1(H, V, C, i) {
8541
+ function O1(H, V, C, i) {
8542
8542
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8543
- const A = H.getBoundingClientRect(), L = h2(H);
8543
+ const A = H.getBoundingClientRect(), L = p2(H);
8544
8544
  let M = e1(1);
8545
- V && (i ? M1(i) && (M = Z1(i)) : M = Z1(H));
8546
- const e = U5(L, C, i) ? g2(L) : e1(0);
8547
- let d = (A.left + e.x) / M.x, l = (A.top + e.y) / M.y, n = A.width / M.x, u = A.height / M.y;
8545
+ V && (i ? L1(i) && (M = a1(i)) : M = a1(H));
8546
+ const e = I5(L, C, i) ? O2(L) : e1(0);
8547
+ let d = (A.left + e.x) / M.x, l = (A.top + e.y) / M.y, n = A.width / M.x, Z = A.height / M.y;
8548
8548
  if (L) {
8549
- const o = q(L), r = i && M1(i) ? q(i) : i;
8550
- let S = o.frameElement;
8551
- for (; S && i && r !== o; ) {
8552
- const v = Z1(S), B = S.getBoundingClientRect(), P = Y(S), c = B.left + (S.clientLeft + parseFloat(P.paddingLeft)) * v.x, w = B.top + (S.clientTop + parseFloat(P.paddingTop)) * v.y;
8553
- d *= v.x, l *= v.y, n *= v.x, u *= v.y, d += c, l += w, S = q(S).frameElement;
8549
+ const o = q(L), r = i && L1(i) ? q(i) : i;
8550
+ let u = o.frameElement;
8551
+ for (; u && i && r !== o; ) {
8552
+ const v = a1(u), h = u.getBoundingClientRect(), y = Y(u), p = h.left + (u.clientLeft + parseFloat(y.paddingLeft)) * v.x, w = h.top + (u.clientTop + parseFloat(y.paddingTop)) * v.y;
8553
+ d *= v.x, l *= v.y, n *= v.x, Z *= v.y, d += p, l += w, u = q(u).frameElement;
8554
8554
  }
8555
8555
  }
8556
- return x1({
8556
+ return R1({
8557
8557
  width: n,
8558
- height: u,
8558
+ height: Z,
8559
8559
  x: d,
8560
8560
  y: l
8561
8561
  });
8562
8562
  }
8563
- function z5(H) {
8563
+ function Q5(H) {
8564
8564
  let {
8565
8565
  rect: V,
8566
8566
  offsetParent: C,
8567
8567
  strategy: i
8568
8568
  } = H;
8569
- const A = H1(C), L = t1(C);
8569
+ const A = C1(C), L = t1(C);
8570
8570
  if (C === L)
8571
8571
  return V;
8572
8572
  let M = {
@@ -8574,9 +8574,9 @@ function z5(H) {
8574
8574
  scrollTop: 0
8575
8575
  }, e = e1(1);
8576
8576
  const d = e1(0);
8577
- if ((A || !A && i !== "fixed") && ((d1(C) !== "body" || k1(L)) && (M = N1(C)), H1(C))) {
8578
- const l = f1(C);
8579
- e = Z1(C), d.x = l.x + C.clientLeft, d.y = l.y + C.clientTop;
8577
+ if ((A || !A && i !== "fixed") && ((d1(C) !== "body" || g1(L)) && (M = W1(C)), C1(C))) {
8578
+ const l = O1(C);
8579
+ e = a1(C), d.x = l.x + C.clientLeft, d.y = l.y + C.clientTop;
8580
8580
  }
8581
8581
  return {
8582
8582
  width: V.width * e.x,
@@ -8585,29 +8585,29 @@ function z5(H) {
8585
8585
  y: V.y * e.y - M.scrollTop * e.y + d.y
8586
8586
  };
8587
8587
  }
8588
- function K5(H) {
8588
+ function G5(H) {
8589
8589
  return Array.from(H.getClientRects());
8590
8590
  }
8591
- function k2(H) {
8592
- return f1(t1(H)).left + N1(H).scrollLeft;
8591
+ function f2(H) {
8592
+ return O1(t1(H)).left + W1(H).scrollLeft;
8593
8593
  }
8594
- function q5(H) {
8595
- const V = t1(H), C = N1(H), i = H.ownerDocument.body, A = a1(V.scrollWidth, V.clientWidth, i.scrollWidth, i.clientWidth), L = a1(V.scrollHeight, V.clientHeight, i.scrollHeight, i.clientHeight);
8596
- let M = -C.scrollLeft + k2(H);
8594
+ function U5(H) {
8595
+ const V = t1(H), C = W1(H), i = H.ownerDocument.body, A = r1(V.scrollWidth, V.clientWidth, i.scrollWidth, i.clientWidth), L = r1(V.scrollHeight, V.clientHeight, i.scrollHeight, i.clientHeight);
8596
+ let M = -C.scrollLeft + f2(H);
8597
8597
  const e = -C.scrollTop;
8598
- return Y(i).direction === "rtl" && (M += a1(V.clientWidth, i.clientWidth) - A), {
8598
+ return Y(i).direction === "rtl" && (M += r1(V.clientWidth, i.clientWidth) - A), {
8599
8599
  width: A,
8600
8600
  height: L,
8601
8601
  x: M,
8602
8602
  y: e
8603
8603
  };
8604
8604
  }
8605
- function j5(H, V) {
8605
+ function z5(H, V) {
8606
8606
  const C = q(H), i = t1(H), A = C.visualViewport;
8607
8607
  let L = i.clientWidth, M = i.clientHeight, e = 0, d = 0;
8608
8608
  if (A) {
8609
8609
  L = A.width, M = A.height;
8610
- const l = V2();
8610
+ const l = C2();
8611
8611
  (!l || l && V === "fixed") && (e = A.offsetLeft, d = A.offsetTop);
8612
8612
  }
8613
8613
  return {
@@ -8617,8 +8617,8 @@ function j5(H, V) {
8617
8617
  y: d
8618
8618
  };
8619
8619
  }
8620
- function X5(H, V) {
8621
- const C = f1(H, !0, V === "fixed"), i = C.top + H.clientTop, A = C.left + H.clientLeft, L = H1(H) ? Z1(H) : e1(1), M = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, l = i * L.y;
8620
+ function K5(H, V) {
8621
+ const C = O1(H, !0, V === "fixed"), i = C.top + H.clientTop, A = C.left + H.clientLeft, L = C1(H) ? a1(H) : e1(1), M = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, l = i * L.y;
8622
8622
  return {
8623
8623
  width: M,
8624
8624
  height: e,
@@ -8626,52 +8626,52 @@ function X5(H, V) {
8626
8626
  y: l
8627
8627
  };
8628
8628
  }
8629
- function o2(H, V, C) {
8629
+ function t2(H, V, C) {
8630
8630
  let i;
8631
8631
  if (V === "viewport")
8632
- i = j5(H, C);
8632
+ i = z5(H, C);
8633
8633
  else if (V === "document")
8634
- i = q5(t1(H));
8635
- else if (M1(V))
8636
- i = X5(V, C);
8634
+ i = U5(t1(H));
8635
+ else if (L1(V))
8636
+ i = K5(V, C);
8637
8637
  else {
8638
- const A = g2(H);
8638
+ const A = O2(H);
8639
8639
  i = {
8640
8640
  ...V,
8641
8641
  x: V.x - A.x,
8642
8642
  y: V.y - A.y
8643
8643
  };
8644
8644
  }
8645
- return x1(i);
8645
+ return R1(i);
8646
8646
  }
8647
- function B2(H, V) {
8648
- const C = u1(H);
8649
- return C === V || !M1(C) || W1(C) ? !1 : Y(C).position === "fixed" || B2(C, V);
8647
+ function h2(H, V) {
8648
+ const C = Z1(H);
8649
+ return C === V || !L1(C) || $1(C) ? !1 : Y(C).position === "fixed" || h2(C, V);
8650
8650
  }
8651
- function Y5(H, V) {
8651
+ function q5(H, V) {
8652
8652
  const C = V.get(H);
8653
8653
  if (C)
8654
8654
  return C;
8655
- let i = q1(H, [], !1).filter((e) => M1(e) && d1(e) !== "body"), A = null;
8655
+ let i = z1(H, [], !1).filter((e) => L1(e) && d1(e) !== "body"), A = null;
8656
8656
  const L = Y(H).position === "fixed";
8657
- let M = L ? u1(H) : H;
8658
- for (; M1(M) && !W1(M); ) {
8659
- const e = Y(M), d = H2(M);
8660
- !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || k1(M) && !d && B2(H, M)) ? i = i.filter((n) => n !== M) : A = e, M = u1(M);
8657
+ let M = L ? Z1(H) : H;
8658
+ for (; L1(M) && !$1(M); ) {
8659
+ const e = Y(M), d = J1(M);
8660
+ !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || g1(M) && !d && h2(H, M)) ? i = i.filter((n) => n !== M) : A = e, M = Z1(M);
8661
8661
  }
8662
8662
  return V.set(H, i), i;
8663
8663
  }
8664
- function J5(H) {
8664
+ function j5(H) {
8665
8665
  let {
8666
8666
  element: V,
8667
8667
  boundary: C,
8668
8668
  rootBoundary: i,
8669
8669
  strategy: A
8670
8670
  } = H;
8671
- const M = [...C === "clippingAncestors" ? Y5(V, this._c) : [].concat(C), i], e = M[0], d = M.reduce((l, n) => {
8672
- const u = o2(V, n, A);
8673
- return l.top = a1(u.top, l.top), l.right = O1(u.right, l.right), l.bottom = O1(u.bottom, l.bottom), l.left = a1(u.left, l.left), l;
8674
- }, o2(V, e, A));
8671
+ const M = [...C === "clippingAncestors" ? q5(V, this._c) : [].concat(C), i], e = M[0], d = M.reduce((l, n) => {
8672
+ const Z = t2(V, n, A);
8673
+ return l.top = r1(Z.top, l.top), l.right = p1(Z.right, l.right), l.bottom = p1(Z.bottom, l.bottom), l.left = r1(Z.left, l.left), l;
8674
+ }, t2(V, e, A));
8675
8675
  return {
8676
8676
  width: d.right - d.left,
8677
8677
  height: d.bottom - d.top,
@@ -8679,22 +8679,22 @@ function J5(H) {
8679
8679
  y: d.top
8680
8680
  };
8681
8681
  }
8682
- function C3(H) {
8683
- return f2(H);
8682
+ function X5(H) {
8683
+ return c2(H);
8684
8684
  }
8685
- function H3(H, V, C) {
8686
- const i = H1(V), A = t1(V), L = C === "fixed", M = f1(H, !0, L, V);
8685
+ function Y5(H, V, C) {
8686
+ const i = C1(V), A = t1(V), L = C === "fixed", M = O1(H, !0, L, V);
8687
8687
  let e = {
8688
8688
  scrollLeft: 0,
8689
8689
  scrollTop: 0
8690
8690
  };
8691
8691
  const d = e1(0);
8692
8692
  if (i || !i && !L)
8693
- if ((d1(V) !== "body" || k1(A)) && (e = N1(V)), i) {
8694
- const l = f1(V, !0, L, V);
8693
+ if ((d1(V) !== "body" || g1(A)) && (e = W1(V)), i) {
8694
+ const l = O1(V, !0, L, V);
8695
8695
  d.x = l.x + V.clientLeft, d.y = l.y + V.clientTop;
8696
8696
  } else
8697
- A && (d.x = k2(A));
8697
+ A && (d.x = f2(A));
8698
8698
  return {
8699
8699
  x: M.left + e.scrollLeft - d.x,
8700
8700
  y: M.top + e.scrollTop - d.y,
@@ -8702,27 +8702,27 @@ function H3(H, V, C) {
8702
8702
  height: M.height
8703
8703
  };
8704
8704
  }
8705
- function n2(H, V) {
8706
- return !H1(H) || Y(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8705
+ function m2(H, V) {
8706
+ return !C1(H) || Y(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8707
8707
  }
8708
- function b2(H, V) {
8708
+ function g2(H, V) {
8709
8709
  const C = q(H);
8710
- if (!H1(H))
8710
+ if (!C1(H))
8711
8711
  return C;
8712
- let i = n2(H, V);
8713
- for (; i && I5(i) && Y(i).position === "static"; )
8714
- i = n2(i, V);
8715
- return i && (d1(i) === "html" || d1(i) === "body" && Y(i).position === "static" && !H2(i)) ? C : i || Q5(H) || C;
8712
+ let i = m2(H, V);
8713
+ for (; i && $5(i) && Y(i).position === "static"; )
8714
+ i = m2(i, V);
8715
+ return i && (d1(i) === "html" || d1(i) === "body" && Y(i).position === "static" && !J1(i)) ? C : i || W5(H) || C;
8716
8716
  }
8717
- const V3 = async function(H) {
8717
+ const J5 = async function(H) {
8718
8718
  let {
8719
8719
  reference: V,
8720
8720
  floating: C,
8721
8721
  strategy: i
8722
8722
  } = H;
8723
- const A = this.getOffsetParent || b2, L = this.getDimensions;
8723
+ const A = this.getOffsetParent || g2, L = this.getDimensions;
8724
8724
  return {
8725
- reference: H3(V, await A(C), i),
8725
+ reference: Y5(V, await A(C), i),
8726
8726
  floating: {
8727
8727
  x: 0,
8728
8728
  y: 0,
@@ -8730,58 +8730,58 @@ const V3 = async function(H) {
8730
8730
  }
8731
8731
  };
8732
8732
  };
8733
- function L3(H) {
8733
+ function C3(H) {
8734
8734
  return Y(H).direction === "rtl";
8735
8735
  }
8736
- const M3 = {
8737
- convertOffsetParentRelativeRectToViewportRelativeRect: z5,
8736
+ const H3 = {
8737
+ convertOffsetParentRelativeRectToViewportRelativeRect: Q5,
8738
8738
  getDocumentElement: t1,
8739
- getClippingRect: J5,
8740
- getOffsetParent: b2,
8741
- getElementRects: V3,
8742
- getClientRects: K5,
8743
- getDimensions: C3,
8744
- getScale: Z1,
8745
- isElement: M1,
8746
- isRTL: L3
8747
- }, i3 = (H, V, C) => {
8739
+ getClippingRect: j5,
8740
+ getOffsetParent: g2,
8741
+ getElementRects: J5,
8742
+ getClientRects: G5,
8743
+ getDimensions: X5,
8744
+ getScale: a1,
8745
+ isElement: L1,
8746
+ isRTL: C3
8747
+ }, V3 = (H, V, C) => {
8748
8748
  const i = /* @__PURE__ */ new Map(), A = {
8749
- platform: M3,
8749
+ platform: H3,
8750
8750
  ...C
8751
8751
  }, L = {
8752
8752
  ...A.platform,
8753
8753
  _c: i
8754
8754
  };
8755
- return x5(H, V, {
8755
+ return T5(H, V, {
8756
8756
  ...A,
8757
8757
  platform: L
8758
8758
  });
8759
8759
  };
8760
- var v2 = /* @__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))(v2 || {}), L1 = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(L1 || {}), j1 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(j1 || {});
8761
- async function A3({ value: H }, { value: V }, { value: C }, i, A, L, M = 300, e) {
8762
- !H || !V || i3(H, V, {
8760
+ var k2 = /* @__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))(k2 || {}), V1 = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(V1 || {}), K1 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(K1 || {});
8761
+ async function L3({ value: H }, { value: V }, { value: C }, i, A, L, M = 300, e) {
8762
+ !H || !V || V3(H, V, {
8763
8763
  placement: i,
8764
8764
  middleware: [
8765
- W5(A),
8766
- N5({ padding: L }),
8767
- D5({ element: C }),
8768
- E5(),
8769
- _5()
8765
+ E5(A),
8766
+ _5({ padding: L }),
8767
+ F5({ element: C }),
8768
+ R5(),
8769
+ x5()
8770
8770
  ]
8771
- }).then(({ x: d, y: l, placement: n, middlewareData: u }) => {
8772
- var S, v;
8771
+ }).then(({ x: d, y: l, placement: n, middlewareData: Z }) => {
8772
+ var u, v;
8773
8773
  if (!V)
8774
8774
  return;
8775
- u.flip && V.setAttribute("data-placement", n);
8776
- const o = (S = H.offsetParent) == null ? void 0 : S.getBoundingClientRect().left, r = (v = H.offsetParent) == null ? void 0 : v.getBoundingClientRect().width;
8775
+ Z.flip && V.setAttribute("data-placement", n);
8776
+ const o = (u = H.offsetParent) == null ? void 0 : u.getBoundingClientRect().left, r = (v = H.offsetParent) == null ? void 0 : v.getBoundingClientRect().width;
8777
8777
  if (Object.assign(V.style, {
8778
8778
  maxWidth: e === "dropdown" ? `${r}px` : "auto",
8779
8779
  left: e === "dropdown" ? `${o}px` : `${d}px`,
8780
8780
  top: `${l}px`,
8781
8781
  animation: `r-tooltip-show ${M}ms ease-in-out forwards`,
8782
8782
  transformOrigin: "start"
8783
- }), C && u.arrow) {
8784
- const { x: B, y: P } = u.arrow, c = {
8783
+ }), C && Z.arrow) {
8784
+ const { x: h, y } = Z.arrow, p = {
8785
8785
  top: "bottom",
8786
8786
  right: "left",
8787
8787
  bottom: "top",
@@ -8789,23 +8789,23 @@ async function A3({ value: H }, { value: V }, { value: C }, i, A, L, M = 300, e)
8789
8789
  /* Right */
8790
8790
  }[n.split("-")[0]];
8791
8791
  Object.assign(C.style, {
8792
- left: d != null ? `${B}px` : "",
8793
- top: l != null ? `${P}px` : "",
8792
+ left: d != null ? `${h}px` : "",
8793
+ top: l != null ? `${y}px` : "",
8794
8794
  right: "",
8795
8795
  bottom: "",
8796
- [`${c}`]: "-4px"
8796
+ [`${p}`]: "-4px"
8797
8797
  });
8798
8798
  }
8799
8799
  });
8800
8800
  }
8801
- const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"], l3 = /* @__PURE__ */ T({
8801
+ const M3 = ["id", "aria-disabled"], i3 = ["innerHTML"], A3 = ["id"], e3 = ["id"], d3 = /* @__PURE__ */ P({
8802
8802
  __name: "RTooltip",
8803
8803
  props: {
8804
- placement: { default: v2.Top },
8804
+ placement: { default: k2.Top },
8805
8805
  text: { default: "" },
8806
8806
  dark: { type: Boolean, default: !0 },
8807
8807
  light: { type: Boolean, default: !1 },
8808
- triggers: { default: () => [L1.Hover] },
8808
+ triggers: { default: () => [V1.Hover] },
8809
8809
  autoHide: { type: Boolean, default: !0 },
8810
8810
  hideDelay: { default: 3e3 },
8811
8811
  showDelay: { default: 300 },
@@ -8819,154 +8819,154 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
8819
8819
  triggerClass: { default: "" },
8820
8820
  tooltipClass: { default: "" },
8821
8821
  persistent: { type: Boolean, default: !1 },
8822
- type: { default: j1.Tooltip }
8822
+ type: { default: K1.Tooltip }
8823
8823
  },
8824
8824
  emits: ["show", "hide"],
8825
8825
  setup(H, { emit: V }) {
8826
- const C = H, i = V, A = E(), L = E(), M = E(), e = B5();
8826
+ const C = H, i = V, A = D(), L = D(), M = D(), e = h5();
8827
8827
  let d = null;
8828
8828
  async function l() {
8829
8829
  if (!(C.disabled || !L.value)) {
8830
8830
  if (!C.persistent) {
8831
- const c = document.querySelectorAll(
8831
+ const p = document.querySelectorAll(
8832
8832
  ".r-tooltip--active"
8833
8833
  );
8834
- c.length > 0 && c.forEach((w) => {
8834
+ p.length > 0 && p.forEach((w) => {
8835
8835
  w.dataset.persistent === "true" || (w.style.display = "", w.classList.remove("r-tooltip--active"), w.dataset.show = "false");
8836
8836
  });
8837
8837
  }
8838
- L.value.classList.contains("r-tooltip--active") ? n() : (B(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", L.value.dataset.persistent = C.persistent.toString(), i("show", L.value.id), u());
8838
+ L.value.classList.contains("r-tooltip--active") ? n() : (h(), L.value.style.display = "block", L.value.classList.add("r-tooltip--active"), L.value.dataset.show = "true", L.value.dataset.persistent = C.persistent.toString(), i("show", L.value.id), Z());
8839
8839
  }
8840
8840
  }
8841
- function n(c = null) {
8841
+ function n(p = null) {
8842
8842
  C.disabled || !L.value || (L.value.style.display = "", L.value.classList.remove("r-tooltip--active"), L.value.dataset.show = "false", L.value.dataset.persistent = "false", i("hide", L.value.id));
8843
8843
  }
8844
- function u() {
8844
+ function Z() {
8845
8845
  C.autoHide && setTimeout(() => {
8846
8846
  n();
8847
8847
  }, C.hideDelay);
8848
8848
  }
8849
- function o(c) {
8850
- C.disabled || C.triggers.includes(L1.Click) && (L.value.style.display === "block" ? n() : l());
8849
+ function o(p) {
8850
+ C.disabled || C.triggers.includes(V1.Click) && (L.value.style.display === "block" ? n() : l());
8851
8851
  }
8852
8852
  function r() {
8853
- C.disabled || C.triggers.includes(L1.Hover) && l();
8853
+ C.disabled || C.triggers.includes(V1.Hover) && l();
8854
8854
  }
8855
- function S() {
8856
- C.disabled || (L.value.style.display === "" && C.triggers.includes(L1.Hover) ? l() : L.value.style.display !== "" && C.triggers.includes(L1.Hover) && n());
8855
+ function u() {
8856
+ C.disabled || (L.value.style.display === "" && C.triggers.includes(V1.Hover) ? l() : L.value.style.display !== "" && C.triggers.includes(V1.Hover) && n());
8857
8857
  }
8858
8858
  function v() {
8859
- C.triggers.includes(L1.Hover) && B();
8859
+ C.triggers.includes(V1.Hover) && h();
8860
8860
  }
8861
- function B() {
8862
- const { placement: c, offset: w, padding: _, disabled: x, showDelay: z, type: $ } = C;
8863
- x || A3(
8861
+ function h() {
8862
+ const { placement: p, offset: w, padding: E, disabled: x, showDelay: W, type: N } = C;
8863
+ x || L3(
8864
8864
  A,
8865
8865
  L,
8866
8866
  M,
8867
- c,
8867
+ p,
8868
8868
  w,
8869
- _,
8870
- z,
8871
- $
8869
+ E,
8870
+ W,
8871
+ N
8872
8872
  );
8873
8873
  }
8874
- const P = f(() => ({
8874
+ const y = f(() => ({
8875
8875
  "r-tooltip": !0,
8876
8876
  "r-tooltip--dark": C.dark && !C.light,
8877
8877
  "r-tooltip--light": C.light
8878
8878
  }));
8879
8879
  return window.onresize = () => {
8880
- C.resizable && B();
8881
- }, M2(
8880
+ C.resizable && h();
8881
+ }, H2(
8882
8882
  () => {
8883
- C.disabled || (C.shown && C.triggers.includes(L1.Manual) ? l() : !C.shown && C.triggers.includes(L1.Manual) && n());
8883
+ C.disabled || (C.shown && C.triggers.includes(V1.Manual) ? l() : !C.shown && C.triggers.includes(V1.Manual) && n());
8884
8884
  },
8885
8885
  { flush: "post" }
8886
8886
  // this is important to avoid infinite loop & for fire on mounted
8887
- ), M2(() => {
8888
- d && (d(), d = null), C.outsideClick && A.value && (d = k5(
8887
+ ), H2(() => {
8888
+ d && (d(), d = null), C.outsideClick && A.value && (d = f5(
8889
8889
  A,
8890
- (c) => {
8891
- L.value && L.value.classList.contains("r-tooltip--active") && n(c);
8890
+ (p) => {
8891
+ L.value && L.value.classList.contains("r-tooltip--active") && n(p);
8892
8892
  },
8893
8893
  { ignore: [L] }
8894
8894
  ) ?? null);
8895
- }), r2(() => {
8896
- var c, w;
8897
- C.resizable && ((w = (c = A.value) == null ? void 0 : c.parentElement) == null || w.parentElement.addEventListener(
8895
+ }), l2(() => {
8896
+ var p, w;
8897
+ C.resizable && ((w = (p = A.value) == null ? void 0 : p.parentElement) == null || w.parentElement.addEventListener(
8898
8898
  "scroll",
8899
- () => B()
8900
- )), C.type === j1.Dropdown && document.addEventListener("scroll", () => {
8901
- B();
8899
+ () => h()
8900
+ )), C.type === K1.Dropdown && document.addEventListener("scroll", () => {
8901
+ h();
8902
8902
  });
8903
- }), X1(() => {
8903
+ }), q1(() => {
8904
8904
  d && (d(), d = null);
8905
- }), (c, w) => (m(), Z(i1, null, [
8906
- s("div", {
8907
- id: c.id,
8905
+ }), (p, w) => (m(), a(i1, null, [
8906
+ S("div", {
8907
+ id: p.id,
8908
8908
  ref_key: "trigger",
8909
8909
  ref: A,
8910
8910
  "aria-disabled": C.disabled,
8911
- class: O(["r-tooltip-trigger", c.triggerClass]),
8911
+ class: O(["r-tooltip-trigger", p.triggerClass]),
8912
8912
  onClick: o,
8913
8913
  onMouseenter: r,
8914
- onMouseleave: S,
8914
+ onMouseleave: u,
8915
8915
  onMousemove: v
8916
8916
  }, [
8917
- k(c.$slots, "default", {
8918
- id: `${c.id}-slot`,
8917
+ B(p.$slots, "default", {
8918
+ id: `${p.id}-slot`,
8919
8919
  activators: {
8920
8920
  click: o,
8921
8921
  mouseenter: r,
8922
- mouseleave: S,
8922
+ mouseleave: u,
8923
8923
  mousemove: v
8924
8924
  },
8925
8925
  tooltipId: A1(e),
8926
- updatePosition: B
8926
+ updatePosition: h
8927
8927
  }, () => [
8928
- s("div", {
8928
+ S("div", {
8929
8929
  innerHTML: C.triggerContent
8930
- }, null, 8, d3)
8930
+ }, null, 8, i3)
8931
8931
  ])
8932
- ], 42, e3),
8933
- (m(), D(T2, { to: "body" }, [
8934
- s("div", {
8935
- id: `${c.id}-tooltip`,
8932
+ ], 42, M3),
8933
+ (m(), R(w2, { to: "body" }, [
8934
+ S("div", {
8935
+ id: `${p.id}-tooltip`,
8936
8936
  ref_key: "tooltip",
8937
8937
  ref: L,
8938
- class: O([P.value, c.tooltipClass]),
8938
+ class: O([y.value, p.tooltipClass]),
8939
8939
  "data-show": "false",
8940
8940
  role: "tooltip"
8941
8941
  }, [
8942
- k(c.$slots, "content", {
8943
- id: `${c.id}-content-slot`,
8942
+ B(p.$slots, "content", {
8943
+ id: `${p.id}-content-slot`,
8944
8944
  hide: n,
8945
- updatePosition: B
8945
+ updatePosition: h
8946
8946
  }, () => [
8947
- C.text ? (m(), Z("div", {
8947
+ C.text ? (m(), a("div", {
8948
8948
  key: 0,
8949
8949
  class: O(["r-tooltip__content", {
8950
8950
  "r-tooltip__content--dark": C.dark,
8951
8951
  "r-tooltip__content--light": C.light
8952
8952
  }])
8953
- }, b(C.text), 3)) : g("", !0),
8954
- C.text ? (m(), Z("div", {
8953
+ }, b(C.text), 3)) : k("", !0),
8954
+ C.text ? (m(), a("div", {
8955
8955
  key: 1,
8956
- id: `${c.id}-arrow`,
8956
+ id: `${p.id}-arrow`,
8957
8957
  ref_key: "arrowElement",
8958
8958
  ref: M,
8959
8959
  class: O(["r-tooltip__arrow", {
8960
8960
  "r-tooltip__arrow--dark": C.dark,
8961
8961
  "r-tooltip__arrow--light": C.light
8962
8962
  }])
8963
- }, null, 10, m3)) : g("", !0)
8963
+ }, null, 10, e3)) : k("", !0)
8964
8964
  ])
8965
- ], 10, t3)
8965
+ ], 10, A3)
8966
8966
  ]))
8967
8967
  ], 64));
8968
8968
  }
8969
- }), o3 = ["id"], n3 = ["id", "onClick"], r3 = ["id"], a3 = ["id"], Z3 = ["id"], u3 = ["id"], S3 = ["id"], s3 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], c3 = ["id", "data-has-value", "onClick"], p3 = ["id"], O3 = ["id"], f3 = ["onClick"], h3 = { class: "flex items-center" }, g3 = { class: "r-dropdown-options__option__label" }, k3 = ["id"], B3 = ["id", "aria-disabled", "onClick"], b3 = ["id"], v3 = ["id"], w3 = ["id"], y3 = ["id"], P3 = ["id"], T3 = ["id"], s1 = "rScrollLockCount", G1 = "rPreviousOverflowY", F3 = /* @__PURE__ */ T({
8969
+ }), t3 = ["id"], m3 = ["id", "onClick"], l3 = ["id"], o3 = ["id"], n3 = ["id"], r3 = ["id"], a3 = ["id"], Z3 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], u3 = ["id", "data-has-value", "onClick"], S3 = ["id"], s3 = ["id"], c3 = ["onClick"], p3 = { class: "flex items-center" }, O3 = { class: "r-dropdown-options__option__label" }, f3 = ["id"], h3 = ["id", "aria-disabled", "onClick"], g3 = ["id"], k3 = ["id"], B3 = ["id"], b3 = ["id"], v3 = ["id"], w3 = ["id"], y3 = /* @__PURE__ */ P({
8970
8970
  __name: "RDropdown",
8971
8971
  props: {
8972
8972
  options: { default: () => [] },
@@ -8999,31 +8999,31 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
8999
8999
  },
9000
9000
  emits: ["update:modelValue", "clear", "removeOption"],
9001
9001
  setup(H, { emit: V }) {
9002
- const C = H, i = V, A = E({}), L = E([]), M = E(!1), e = E("");
9002
+ const C = H, i = V, A = D({}), L = D([]), M = D(!1), e = D("");
9003
9003
  function d(t) {
9004
- const a = window.getComputedStyle(t);
9005
- return /(auto|scroll|overlay)/.test(a.overflowY);
9004
+ const s = window.getComputedStyle(t);
9005
+ return /(auto|scroll|overlay)/.test(s.overflowY);
9006
9006
  }
9007
9007
  function l(t) {
9008
- let a = t;
9009
- for (; a && a !== document.body; ) {
9010
- if (d(a))
9011
- return a;
9012
- a = a.parentElement;
9008
+ let s = t;
9009
+ for (; s && s !== document.body; ) {
9010
+ if (d(s))
9011
+ return s;
9012
+ s = s.parentElement;
9013
9013
  }
9014
9014
  return document.body;
9015
9015
  }
9016
9016
  function n(t) {
9017
9017
  if (!t || typeof t == "object" || typeof t == "function" || typeof t == "symbol" || typeof t > "u" || Array.isArray(t))
9018
9018
  return !0;
9019
- const [a] = Object.keys(t);
9020
- return ["label", "value"].includes(a);
9019
+ const [s] = Object.keys(t);
9020
+ return ["label", "value"].includes(s);
9021
9021
  }
9022
- const u = f(() => {
9022
+ const Z = f(() => {
9023
9023
  const t = C.options;
9024
- return n(t[0]) ? t : t.map((a) => ({
9025
- value: a,
9026
- label: String(a)
9024
+ return n(t[0]) ? t : t.map((s) => ({
9025
+ value: s,
9026
+ label: String(s)
9027
9027
  }));
9028
9028
  }), o = f(() => {
9029
9029
  const t = C.modelValue;
@@ -9031,139 +9031,123 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9031
9031
  value: t,
9032
9032
  label: String(t)
9033
9033
  };
9034
- }), r = E(), S = E(), v = E(), B = [];
9035
- function P(t) {
9036
- let a = t;
9037
- if (!a) {
9038
- const W = v.value || r.value;
9039
- W && (a = l(W));
9034
+ }), r = D(), u = D(), v = D(), h = D(null);
9035
+ function y() {
9036
+ if (!h.value) {
9037
+ const t = v.value || r.value;
9038
+ t && (h.value = l(t));
9040
9039
  }
9041
- if (!a)
9042
- return null;
9043
- const y = Number.parseInt(a.dataset[s1] || "0", 10);
9044
- return y === 0 && (a.dataset[G1] = a.style.overflowY || "", a.style.overflowY = "hidden"), a.dataset[s1] = String(y + 1), B.push(a), a;
9045
- }
9046
- function c(t) {
9047
- const a = t || B.pop();
9048
- if (!a)
9049
- return;
9050
- const y = Number.parseInt(a.dataset[s1] || "0", 10);
9051
- if (!(y <= 0))
9052
- if (y === 1) {
9053
- const W = a.dataset[G1];
9054
- W !== void 0 && (a.style.overflowY = W), delete a.dataset[s1], delete a.dataset[G1];
9055
- } else
9056
- a.dataset[s1] = String(y - 1);
9040
+ h.value && (M.value ? h.value.dataset.rOriginalOverflow || (h.value.dataset.rOriginalOverflow = h.value.style.overflowY || "", h.value.style.overflowY = "hidden") : h.value.dataset.rOriginalOverflow !== void 0 && (h.value.style.overflowY = h.value.dataset.rOriginalOverflow, delete h.value.dataset.rOriginalOverflow));
9057
9041
  }
9058
- function w(t) {
9059
- var W, p, G, B1;
9042
+ function p(t) {
9043
+ var X, c, G, k1;
9060
9044
  if (C.disabled)
9061
9045
  return;
9062
- const a = document.getElementById(t);
9046
+ const s = document.getElementById(t);
9063
9047
  document.querySelectorAll(".r-dropdown--active").forEach((U) => {
9064
- var b1;
9065
- if (U.id !== ((b1 = r.value) == null ? void 0 : b1.id) && U.classList.contains("r-dropdown--active")) {
9066
- const L2 = l(
9048
+ var B1;
9049
+ if (U.id !== ((B1 = r.value) == null ? void 0 : B1.id) && U.classList.contains("r-dropdown--active")) {
9050
+ const S1 = l(
9067
9051
  U
9068
9052
  );
9069
- L2 && c(L2), U.childNodes.forEach((V1) => {
9070
- V1 != null && V1.classList && (Object == null || Object.values(V1 == null ? void 0 : V1.classList).filter((I1) => I1.includes("--active")).forEach((I1) => {
9071
- V1 == null || V1.classList.remove(I1);
9053
+ S1 && S1.dataset.rOriginalOverflow !== void 0 && (S1.style.overflowY = S1.dataset.rOriginalOverflow, delete S1.dataset.rOriginalOverflow), U.childNodes.forEach((H1) => {
9054
+ H1 != null && H1.classList && (Object == null || Object.values(H1 == null ? void 0 : H1.classList).filter((N1) => N1.includes("--active")).forEach((N1) => {
9055
+ H1 == null || H1.classList.remove(N1);
9072
9056
  }));
9073
9057
  }), U.classList.remove("r-dropdown--active");
9074
9058
  }
9075
- }), a != null && a.classList.contains("r-dropdown--active") ? (a.classList.remove("r-dropdown--active"), M.value = !1, (W = r.value) == null || W.blur(), (p = S.value) == null || p.blur(), c()) : (a == null || a.classList.add("r-dropdown--active"), M.value = !0, (G = r.value) == null || G.focus(), (B1 = S.value) == null || B1.focus(), P(), a == null || a.childNodes.forEach((U) => {
9076
- U != null && U.classList && (Object == null || Object.values(U == null ? void 0 : U.classList).forEach((b1) => {
9077
- U == null || U.classList.add(`${b1}--active`);
9059
+ }), s != null && s.classList.contains("r-dropdown--active") ? (s.classList.remove("r-dropdown--active"), M.value = !1, (X = r.value) == null || X.blur(), (c = u.value) == null || c.blur()) : (s == null || s.classList.add("r-dropdown--active"), M.value = !0, (G = r.value) == null || G.focus(), (k1 = u.value) == null || k1.focus(), s == null || s.childNodes.forEach((U) => {
9060
+ U != null && U.classList && (Object == null || Object.values(U == null ? void 0 : U.classList).forEach((B1) => {
9061
+ U == null || U.classList.add(`${B1}--active`);
9078
9062
  }));
9079
9063
  }));
9080
9064
  }
9081
- function _(t) {
9082
- const a = document.getElementById(t);
9083
- a == null || a.classList.remove("r-dropdown--active"), M.value = !1, c();
9065
+ function w(t) {
9066
+ const s = document.getElementById(t);
9067
+ s == null || s.classList.remove("r-dropdown--active"), M.value = !1;
9084
9068
  }
9085
- function x(t, a, y, W) {
9086
- var p;
9087
- if (!(C.disabled || a.disabled)) {
9088
- if (W(), a.value === "select-all") {
9089
- j();
9069
+ function E(t, s, T, X) {
9070
+ var c;
9071
+ if (!(C.disabled || s.disabled)) {
9072
+ if (X(), s.value === "select-all") {
9073
+ Q();
9090
9074
  return;
9091
9075
  }
9092
9076
  if (C.multiple) {
9093
- if (!L.value.find((G) => G.value === a.value))
9094
- L.value.push(a);
9077
+ if (!L.value.find((G) => G.value === s.value))
9078
+ L.value.push(s);
9095
9079
  else {
9096
9080
  const G = L.value.findIndex(
9097
- (B1) => B1.value === a.value
9081
+ (k1) => k1.value === s.value
9098
9082
  );
9099
- L.value.splice(G, 1), i("removeOption", a);
9083
+ L.value.splice(G, 1), i("removeOption", s);
9100
9084
  }
9101
- e.value = "", C.searchable && ((p = S.value) == null || p.focus());
9085
+ e.value = "", C.searchable && ((c = u.value) == null || c.focus());
9102
9086
  return;
9103
9087
  }
9104
- z(t, a), C.closeOnSelect && y();
9088
+ x(t, s), C.closeOnSelect && T();
9105
9089
  }
9106
9090
  }
9107
- function z(t, a) {
9108
- if (A.value.value === a.value && !C.disableDeselect) {
9109
- A.value = {}, e.value = "", i("update:modelValue", ""), i("removeOption", a);
9091
+ function x(t, s) {
9092
+ if (A.value.value === s.value && !C.disableDeselect) {
9093
+ A.value = {}, e.value = "", i("update:modelValue", ""), i("removeOption", s);
9110
9094
  return;
9111
9095
  }
9112
- e.value = a.label, A.value = a, i("update:modelValue", a);
9096
+ e.value = s.label, A.value = s, i("update:modelValue", s);
9113
9097
  }
9114
- function $(t, a, y) {
9098
+ function W(t, s, T) {
9115
9099
  if (t instanceof KeyboardEvent && t.key !== "Backspace" || e.value !== "")
9116
9100
  return;
9117
- t.stopPropagation(), y();
9118
- const W = L.value.findIndex(
9119
- (p) => p.value === a.value
9101
+ t.stopPropagation(), T();
9102
+ const X = L.value.findIndex(
9103
+ (c) => c.value === s.value
9120
9104
  );
9121
- L.value.splice(W, 1), i("removeOption", a), i("update:modelValue", L.value);
9105
+ L.value.splice(X, 1), i("removeOption", s), i("update:modelValue", L.value);
9122
9106
  }
9123
- function J(t, a) {
9124
- var p;
9107
+ function N(t, s) {
9108
+ var c;
9125
9109
  if (!C.multiple)
9126
9110
  return;
9127
- t.stopPropagation(), a();
9128
- const y = e.value;
9129
- if (y === "")
9111
+ t.stopPropagation(), s();
9112
+ const T = e.value;
9113
+ if (T === "")
9130
9114
  return;
9131
- u.value.find(
9132
- (G) => G.label === y
9133
- ) || (L.value.push({ value: y, label: y }), e.value = "", (p = S.value) == null || p.focus());
9115
+ Z.value.find(
9116
+ (G) => G.label === T
9117
+ ) || (L.value.push({ value: T, label: T }), e.value = "", (c = u.value) == null || c.focus());
9134
9118
  }
9135
- function h(t) {
9136
- var a;
9137
- return !t || (t == null ? void 0 : t.value) === void 0 || (t == null ? void 0 : t.value) === null ? !1 : C.multiple ? L.value.find((y) => (y == null ? void 0 : y.value) === (t == null ? void 0 : t.value)) : ((a = A.value) == null ? void 0 : a.value) === (t == null ? void 0 : t.value);
9119
+ function _(t) {
9120
+ var s;
9121
+ return !t || (t == null ? void 0 : t.value) === void 0 || (t == null ? void 0 : t.value) === null ? !1 : C.multiple ? L.value.find((T) => (T == null ? void 0 : T.value) === (t == null ? void 0 : t.value)) : ((s = A.value) == null ? void 0 : s.value) === (t == null ? void 0 : t.value);
9138
9122
  }
9139
- const F = f(() => !C.searchable || A.value.label === e.value ? u.value : u.value.filter((a) => a.label.toLowerCase().includes(e.value.toLowerCase()))), m1 = f(() => !C.searchable);
9140
- function I() {
9123
+ const g = f(() => !C.searchable || A.value.label === e.value ? Z.value : Z.value.filter((s) => s.label.toLowerCase().includes(e.value.toLowerCase()))), I = f(() => !C.searchable);
9124
+ function M1() {
9141
9125
  o.value ? C.multiple ? L.value = o.value : (A.value = o.value, e.value = o.value.label) : (A.value = {}, L.value.splice(0, L.value.length));
9142
9126
  }
9143
- function l1(t) {
9127
+ function z(t) {
9144
9128
  C.searchable && t(), !C.multiple && e.value === "" && (A.value = {}, i("update:modelValue", ""), i("removeOption", A.value));
9145
9129
  }
9146
- function Q(t, a) {
9147
- if (t.stopPropagation(), a(), C.multiple) {
9130
+ function m1(t, s) {
9131
+ if (t.stopPropagation(), s(), C.multiple) {
9148
9132
  L.value.splice(0, L.value.length), i("clear", L.value);
9149
9133
  return;
9150
9134
  }
9151
9135
  A.value = {}, e.value = "", i("update:modelValue", ""), i("clear", A.value);
9152
9136
  }
9153
- function j() {
9154
- if (L.value.length === F.value.length) {
9137
+ function Q() {
9138
+ if (L.value.length === g.value.length) {
9155
9139
  L.value.splice(0, L.value.length);
9156
9140
  return;
9157
9141
  }
9158
- L.value = F.value;
9142
+ L.value = g.value;
9159
9143
  }
9160
- const X = f(() => !C.multiple || !Array.isArray(C.modelValue) ? [] : C.modelValue.slice(0, C.maxVisibleChips)), K = f(() => !C.multiple || !Array.isArray(C.modelValue) ? 0 : Math.max(0, C.modelValue.length - C.maxVisibleChips));
9161
- return r2(() => {
9162
- I(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute(
9144
+ const j = f(() => !C.multiple || !Array.isArray(C.modelValue) ? [] : C.modelValue.slice(0, C.maxVisibleChips)), K = f(() => !C.multiple || !Array.isArray(C.modelValue) ? 0 : Math.max(0, C.modelValue.length - C.maxVisibleChips));
9145
+ return l2(() => {
9146
+ M1(), navigator.userAgent.includes("iPhone") && document.querySelector("[name=viewport]").setAttribute(
9163
9147
  "content",
9164
9148
  "width=device-width, initial-scale=1, maximum-scale=1"
9165
9149
  );
9166
- }), N(
9150
+ }), $(
9167
9151
  L,
9168
9152
  (t) => {
9169
9153
  i("update:modelValue", t);
@@ -9171,26 +9155,25 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9171
9155
  {
9172
9156
  deep: !0
9173
9157
  }
9174
- ), N(
9158
+ ), $(
9175
9159
  () => o.value,
9176
9160
  (t) => {
9177
- I();
9161
+ M1();
9178
9162
  }
9179
- ), N(
9163
+ ), $(
9180
9164
  () => M.value,
9181
- (t) => {
9182
- t ? P() : t || c();
9165
+ () => {
9166
+ y();
9183
9167
  }
9184
- ), X1(() => {
9185
- for (; B.length > 0; )
9186
- c();
9187
- }), (t, a) => (m(), Z("div", {
9168
+ ), q1(() => {
9169
+ h.value && h.value.dataset.rOriginalOverflow !== void 0 && (h.value.style.overflowY = h.value.dataset.rOriginalOverflow, delete h.value.dataset.rOriginalOverflow);
9170
+ }), (t, s) => (m(), a("div", {
9188
9171
  id: t.id,
9189
9172
  ref_key: "wrapper",
9190
9173
  ref: v,
9191
9174
  class: "r-dropdown-wrapper"
9192
9175
  }, [
9193
- C1(l3, {
9176
+ J(d3, {
9194
9177
  id: `${t.id}-tooltip`,
9195
9178
  "auto-hide": !1,
9196
9179
  disabled: C.disabled,
@@ -9201,12 +9184,12 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9201
9184
  "trigger-class": "w-full",
9202
9185
  triggers: ["click"],
9203
9186
  type: "dropdown",
9204
- onHide: a[1] || (a[1] = (y) => {
9205
- _(y);
9187
+ onHide: s[1] || (s[1] = (T) => {
9188
+ w(T);
9206
9189
  })
9207
9190
  }, {
9208
- default: T1(({ updatePosition: y, tooltipId: W }) => [
9209
- s("div", {
9191
+ default: P1(({ updatePosition: T, tooltipId: X }) => [
9192
+ S("div", {
9210
9193
  id: `${t.id}-dropdown`,
9211
9194
  ref_key: "dropdown",
9212
9195
  ref: r,
@@ -9218,9 +9201,9 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9218
9201
  group: e.value !== "" || L.value.length
9219
9202
  }]),
9220
9203
  role: "select",
9221
- onClick: (p) => w(W)
9204
+ onClick: (c) => p(X)
9222
9205
  }, [
9223
- C.prependIcon || t.$slots.prepend ? (m(), Z("div", {
9206
+ C.prependIcon || t.$slots.prepend ? (m(), a("div", {
9224
9207
  key: 0,
9225
9208
  id: `${t.id}-prepend-icon`,
9226
9209
  class: O(["r-dropdown__prepend-icon", {
@@ -9228,102 +9211,102 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9228
9211
  "r-dropdown__prepend-icon--error": C.errorMsg
9229
9212
  }])
9230
9213
  }, [
9231
- k(t.$slots, "prepend", {
9214
+ B(t.$slots, "prepend", {
9232
9215
  id: `${t.id}-prepend-icon`,
9233
9216
  active: M.value,
9234
9217
  disabled: C.disabled,
9235
9218
  error: C.errorMsg.length,
9236
9219
  loading: C.loading
9237
9220
  }, () => [
9238
- C.prependIcon ? (m(), D(R, {
9221
+ C.prependIcon ? (m(), R(F, {
9239
9222
  key: 0,
9240
9223
  id: `${t.id}-prepend-icon`,
9241
9224
  name: C.prependIcon
9242
- }, null, 8, ["id", "name"])) : g("", !0)
9225
+ }, null, 8, ["id", "name"])) : k("", !0)
9243
9226
  ])
9244
- ], 10, r3)) : g("", !0),
9245
- s("div", {
9227
+ ], 10, l3)) : k("", !0),
9228
+ S("div", {
9246
9229
  id: `${t.id}-selections`,
9247
9230
  class: "r-dropdown__selections"
9248
9231
  }, [
9249
- k(t.$slots, "selection", {
9232
+ B(t.$slots, "selection", {
9250
9233
  id: `${t.id}-selection`,
9251
- removeOption: $,
9234
+ removeOption: W,
9252
9235
  selected: L.value
9253
9236
  }, () => [
9254
- s("div", {
9237
+ S("div", {
9255
9238
  id: `${t.id}-selections-content`,
9256
9239
  class: "flex flex-wrap items-center gap-2 text-sm"
9257
9240
  }, [
9258
- C.multiple && C.chips ? (m(), Z(i1, { key: 0 }, [
9259
- (m(!0), Z(i1, null, n1(X.value, (p) => (m(), D(c5, {
9260
- key: p.value,
9261
- id: `${t.id}-chip-${p.value}`,
9241
+ C.multiple && C.chips ? (m(), a(i1, { key: 0 }, [
9242
+ (m(!0), a(i1, null, o1(j.value, (c) => (m(), R(u5, {
9243
+ key: c.value,
9244
+ id: `${t.id}-chip-${c.value}`,
9262
9245
  clearable: "",
9263
9246
  ghost: "",
9264
- label: p.label,
9247
+ label: c.label,
9265
9248
  variant: "primary",
9266
- "onClick:close": (G) => $(G, p, y)
9249
+ "onClick:close": (G) => W(G, c, T)
9267
9250
  }, null, 8, ["id", "label", "onClick:close"]))), 128)),
9268
- k(t.$slots, "remaining-count", {
9251
+ B(t.$slots, "remaining-count", {
9269
9252
  id: `${t.id}-remaining-count`,
9270
9253
  count: K.value
9271
9254
  }, () => [
9272
- K.value > 0 ? (m(), Z("span", {
9255
+ K.value > 0 ? (m(), a("span", {
9273
9256
  key: 0,
9274
9257
  id: `${t.id}-remaining-count-text`,
9275
9258
  class: "r-dropdown__remaining-count-text"
9276
- }, " +" + b(K.value), 9, u3)) : g("", !0)
9259
+ }, " +" + b(K.value), 9, r3)) : k("", !0)
9277
9260
  ])
9278
- ], 64)) : C.multiple ? (m(!0), Z(i1, { key: 1 }, n1(L.value, (p, G) => (m(), Z("span", {
9261
+ ], 64)) : C.multiple ? (m(!0), a(i1, { key: 1 }, o1(L.value, (c, G) => (m(), a("span", {
9279
9262
  id: `${t.id}-selected-option-${G}`,
9280
- key: p.value
9281
- }, b(p.label) + b(G < L.value.length - 1 ? ", " : ""), 9, S3))), 128)) : g("", !0)
9282
- ], 8, Z3)
9263
+ key: c.value
9264
+ }, b(c.label) + b(G < L.value.length - 1 ? ", " : ""), 9, a3))), 128)) : k("", !0)
9265
+ ], 8, n3)
9283
9266
  ]),
9284
- a2(s("input", {
9267
+ o2(S("input", {
9285
9268
  id: `${t.id}`,
9286
9269
  ref_key: "input",
9287
- ref: S,
9288
- "onUpdate:modelValue": a[0] || (a[0] = (p) => e.value = p),
9270
+ ref: u,
9271
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value = c),
9289
9272
  autocomplete: C.autocomplete,
9290
9273
  class: O(["r-dropdown__input", {
9291
9274
  "r-dropdown__input--loading": C.loading
9292
9275
  }]),
9293
9276
  disabled: C.disabled,
9294
9277
  placeholder: C.placeholder,
9295
- readonly: m1.value,
9278
+ readonly: I.value,
9296
9279
  role: "presentation",
9297
9280
  type: "text",
9298
- onInput: r1((p) => l1(y), ["prevent"]),
9281
+ onInput: n1((c) => z(T), ["prevent"]),
9299
9282
  onKeydown: [
9300
- i2((p) => $(
9301
- p,
9283
+ V2((c) => W(
9284
+ c,
9302
9285
  L.value[L.value.length - 1],
9303
- y
9286
+ T
9304
9287
  ), ["backspace"]),
9305
- i2((p) => J(p, y), ["enter"])
9288
+ V2((c) => N(c, T), ["enter"])
9306
9289
  ]
9307
- }, null, 42, s3), [
9308
- [F2, e.value]
9290
+ }, null, 42, Z3), [
9291
+ [y2, e.value]
9309
9292
  ])
9310
- ], 8, a3),
9311
- C.clearable ? (m(), Z("div", {
9293
+ ], 8, o3),
9294
+ C.clearable ? (m(), a("div", {
9312
9295
  key: 1,
9313
9296
  id: C.id ? `${C.id}-clearable-icon` : "clearable-icon",
9314
9297
  class: "r-dropdown__clearable",
9315
9298
  "data-has-value": (e.value !== "" || L.value.length) && M.value,
9316
- onClick: (p) => Q(p, y)
9299
+ onClick: (c) => m1(c, T)
9317
9300
  }, [
9318
- k(t.$slots, "clearable", {}, () => [
9319
- C1(R, {
9301
+ B(t.$slots, "clearable", {}, () => [
9302
+ J(F, {
9320
9303
  id: `${t.id}-clearable-icon`,
9321
9304
  name: "mdiCloseCircle",
9322
9305
  size: "18"
9323
9306
  }, null, 8, ["id"])
9324
9307
  ])
9325
- ], 8, c3)) : g("", !0),
9326
- C.appendIcon || t.$slots.append ? (m(), Z("div", {
9308
+ ], 8, u3)) : k("", !0),
9309
+ C.appendIcon || t.$slots.append ? (m(), a("div", {
9327
9310
  key: 2,
9328
9311
  id: `${t.id}-append-icon`,
9329
9312
  class: O(["r-dropdown__append-icon", {
@@ -9331,147 +9314,147 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9331
9314
  "r-dropdown__append-icon--error": C.errorMsg
9332
9315
  }])
9333
9316
  }, [
9334
- k(t.$slots, "append", {
9317
+ B(t.$slots, "append", {
9335
9318
  id: `${t.id}-append-icon`,
9336
9319
  active: M.value,
9337
9320
  disabled: C.disabled,
9338
9321
  error: C.errorMsg.length,
9339
9322
  loading: C.loading
9340
9323
  }, () => [
9341
- C.appendIcon ? (m(), D(R, {
9324
+ C.appendIcon ? (m(), R(F, {
9342
9325
  key: 0,
9343
9326
  name: C.appendIcon
9344
- }, null, 8, ["name"])) : g("", !0)
9327
+ }, null, 8, ["name"])) : k("", !0)
9345
9328
  ])
9346
- ], 10, p3)) : g("", !0)
9347
- ], 10, n3)
9329
+ ], 10, S3)) : k("", !0)
9330
+ ], 10, m3)
9348
9331
  ]),
9349
- content: T1(({ hide: y, updatePosition: W }) => [
9350
- s("ul", {
9332
+ content: P1(({ hide: T, updatePosition: X }) => [
9333
+ S("ul", {
9351
9334
  id: `${t.id}-options`,
9352
9335
  class: O(["r-dropdown-options", {
9353
9336
  "r-dropdown-options--active": M.value,
9354
9337
  [C.optionsClass]: C.optionsClass
9355
9338
  }])
9356
9339
  }, [
9357
- C.showSelectAll && C.multiple && F.value.length > 0 ? (m(), Z("li", {
9340
+ C.showSelectAll && C.multiple && g.value.length > 0 ? (m(), a("li", {
9358
9341
  key: 0,
9359
9342
  class: O(["r-dropdown-options__option", {
9360
- "r-dropdown-options__option--active": L.value.length === F.value.length,
9343
+ "r-dropdown-options__option--active": L.value.length === g.value.length,
9361
9344
  "r-dropdown-options__option--disabled": !1
9362
9345
  }]),
9363
- onClick: r1((p) => x(
9364
- p,
9346
+ onClick: n1((c) => E(
9347
+ c,
9365
9348
  { label: C.selectAllText, value: "select-all" },
9366
- y,
9367
- W
9349
+ T,
9350
+ X
9368
9351
  ), ["prevent"])
9369
9352
  }, [
9370
- s("div", h3, [
9371
- s("p", g3, b(C.selectAllText), 1)
9353
+ S("div", p3, [
9354
+ S("p", O3, b(C.selectAllText), 1)
9372
9355
  ]),
9373
- L.value.length === F.value.length && !C.hideOptionCheckIcon ? (m(), D(R, {
9356
+ L.value.length === g.value.length && !C.hideOptionCheckIcon ? (m(), R(F, {
9374
9357
  key: 0,
9375
9358
  class: O(["r-dropdown-options__option__append-icon", {
9376
- "r-dropdown-options__option__append-icon--active": L.value.length === F.value.length
9359
+ "r-dropdown-options__option__append-icon--active": L.value.length === g.value.length
9377
9360
  }]),
9378
9361
  name: "mdiCheck"
9379
- }, null, 8, ["class"])) : g("", !0)
9380
- ], 10, f3)) : g("", !0),
9381
- C.showSelectAll && F.value.length > 0 ? (m(), Z("hr", {
9362
+ }, null, 8, ["class"])) : k("", !0)
9363
+ ], 10, c3)) : k("", !0),
9364
+ C.showSelectAll && g.value.length > 0 ? (m(), a("hr", {
9382
9365
  key: 1,
9383
9366
  id: `${t.id}-divider`,
9384
9367
  class: "r-dropdown-options__divider"
9385
- }, null, 8, k3)) : g("", !0),
9386
- (m(!0), Z(i1, null, n1(F.value, (p) => (m(), Z("li", {
9387
- id: `${t.id}-option-${p.value}`,
9388
- key: p.value,
9389
- "aria-disabled": p.disabled,
9368
+ }, null, 8, f3)) : k("", !0),
9369
+ (m(!0), a(i1, null, o1(g.value, (c) => (m(), a("li", {
9370
+ id: `${t.id}-option-${c.value}`,
9371
+ key: c.value,
9372
+ "aria-disabled": c.disabled,
9390
9373
  class: O(["r-dropdown-options__option", {
9391
- "r-dropdown-options__option--active": h(p),
9392
- "r-dropdown-options__option--disabled": p.disabled,
9393
- "r-dropdown-options__option--deselect": h(p) && C.disableDeselect
9374
+ "r-dropdown-options__option--active": _(c),
9375
+ "r-dropdown-options__option--disabled": c.disabled,
9376
+ "r-dropdown-options__option--deselect": _(c) && C.disableDeselect
9394
9377
  }]),
9395
- onClick: r1((G) => x(G, p, y, W), ["prevent"])
9378
+ onClick: n1((G) => E(G, c, T, X), ["prevent"])
9396
9379
  }, [
9397
- k(t.$slots, "option", {
9398
- id: `${t.id}-option-${p.value}`,
9399
- disabled: p.disabled,
9400
- isSelected: h(p),
9401
- item: p
9380
+ B(t.$slots, "option", {
9381
+ id: `${t.id}-option-${c.value}`,
9382
+ disabled: c.disabled,
9383
+ isSelected: _(c),
9384
+ item: c
9402
9385
  }, () => [
9403
- s("div", {
9404
- id: `${t.id}-option-content-${p.value}`,
9386
+ S("div", {
9387
+ id: `${t.id}-option-content-${c.value}`,
9405
9388
  class: "flex items-center"
9406
9389
  }, [
9407
- k(t.$slots, "option-prepend", {
9408
- id: `${t.id}-option-prepend-${p.value}`,
9409
- disabled: p.disabled,
9410
- isSelected: h(p)
9390
+ B(t.$slots, "option-prepend", {
9391
+ id: `${t.id}-option-prepend-${c.value}`,
9392
+ disabled: c.disabled,
9393
+ isSelected: _(c)
9411
9394
  }, () => [
9412
- p.prependIcon ? (m(), D(R, {
9395
+ c.prependIcon ? (m(), R(F, {
9413
9396
  key: 0,
9414
- id: `${t.id}-option-prepend-icon-${p.value}`,
9397
+ id: `${t.id}-option-prepend-icon-${c.value}`,
9415
9398
  class: O(["r-dropdown-options__option__prepend-icon", {
9416
- "r-dropdown-options__option__prepend-icon--active": h(p)
9399
+ "r-dropdown-options__option__prepend-icon--active": _(c)
9417
9400
  }]),
9418
- name: p.prependIcon
9419
- }, null, 8, ["id", "class", "name"])) : g("", !0)
9401
+ name: c.prependIcon
9402
+ }, null, 8, ["id", "class", "name"])) : k("", !0)
9420
9403
  ]),
9421
- s("p", {
9422
- id: `${t.id}-option-label-${p.value}`,
9404
+ S("p", {
9405
+ id: `${t.id}-option-label-${c.value}`,
9423
9406
  class: O(["r-dropdown-options__option__label", {
9424
- "r-dropdown-options__option__label--active": h(p)
9407
+ "r-dropdown-options__option__label--active": _(c)
9425
9408
  }])
9426
- }, b(p.label), 11, v3)
9427
- ], 8, b3),
9428
- k(t.$slots, "option-append", {
9429
- id: `${t.id}-option-append-${p.value}`,
9430
- disabled: p.disabled,
9431
- isSelected: h(p)
9409
+ }, b(c.label), 11, k3)
9410
+ ], 8, g3),
9411
+ B(t.$slots, "option-append", {
9412
+ id: `${t.id}-option-append-${c.value}`,
9413
+ disabled: c.disabled,
9414
+ isSelected: _(c)
9432
9415
  }, () => [
9433
- h(p) && !C.hideOptionCheckIcon ? (m(), D(R, {
9416
+ _(c) && !C.hideOptionCheckIcon ? (m(), R(F, {
9434
9417
  key: 0,
9435
9418
  class: O(["r-dropdown-options__option__append-icon", {
9436
- "r-dropdown-options__option__append-icon--active": h(p)
9419
+ "r-dropdown-options__option__append-icon--active": _(c)
9437
9420
  }]),
9438
9421
  name: "mdiCheck"
9439
- }, null, 8, ["class"])) : g("", !0)
9422
+ }, null, 8, ["class"])) : k("", !0)
9440
9423
  ])
9441
9424
  ])
9442
- ], 10, B3))), 128)),
9443
- F.value.length === 0 ? (m(), Z("li", {
9425
+ ], 10, h3))), 128)),
9426
+ g.value.length === 0 ? (m(), a("li", {
9444
9427
  key: 2,
9445
9428
  id: `${t.id}-no-option`,
9446
9429
  class: "r-dropdown-options__no-option"
9447
9430
  }, [
9448
- k(t.$slots, "not-options", {}, () => [
9449
- h1(b(C.noOptionsText), 1)
9431
+ B(t.$slots, "not-options", {}, () => [
9432
+ f1(b(C.noOptionsText), 1)
9450
9433
  ])
9451
- ], 8, w3)) : g("", !0)
9452
- ], 10, O3)
9434
+ ], 8, B3)) : k("", !0)
9435
+ ], 10, s3)
9453
9436
  ]),
9454
9437
  _: 3
9455
9438
  }, 8, ["id", "disabled", "tooltip-class"]),
9456
- t.$props.hideDetails ? g("", !0) : (m(), Z("div", {
9439
+ t.$props.hideDetails ? k("", !0) : (m(), a("div", {
9457
9440
  key: 0,
9458
9441
  id: `${t.id}-details`,
9459
9442
  class: "r-dropdown-details"
9460
9443
  }, [
9461
- C.errorMsg ? (m(), Z("div", {
9444
+ C.errorMsg ? (m(), a("div", {
9462
9445
  key: 0,
9463
9446
  id: `${t.id}-error`,
9464
9447
  class: "r-dropdown-error"
9465
- }, b(C.errorMsg), 9, P3)) : g("", !0),
9466
- C.hint ? (m(), Z("div", {
9448
+ }, b(C.errorMsg), 9, v3)) : k("", !0),
9449
+ C.hint ? (m(), a("div", {
9467
9450
  key: 1,
9468
9451
  id: `${t.id}-hint`,
9469
9452
  class: "r-dropdown-hint"
9470
- }, b(C.hint), 9, T3)) : g("", !0)
9471
- ], 8, y3))
9472
- ], 8, o3));
9453
+ }, b(C.hint), 9, w3)) : k("", !0)
9454
+ ], 8, b3))
9455
+ ], 8, t3));
9473
9456
  }
9474
- }), R3 = ["id", "for"], w2 = /* @__PURE__ */ T({
9457
+ }), P3 = ["id", "for"], B2 = /* @__PURE__ */ P({
9475
9458
  __name: "RLabel",
9476
9459
  props: {
9477
9460
  id: { default: "" },
@@ -9480,19 +9463,19 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9480
9463
  },
9481
9464
  setup(H) {
9482
9465
  const V = H, C = f(() => V.id || "r-label");
9483
- return (i, A) => (m(), Z("label", {
9466
+ return (i, A) => (m(), a("label", {
9484
9467
  id: C.value,
9485
9468
  class: "r-label",
9486
9469
  for: V.for
9487
9470
  }, [
9488
- k(i.$slots, "default", {
9471
+ B(i.$slots, "default", {
9489
9472
  id: `${C.value}-slot`
9490
9473
  }, () => [
9491
- h1(b(V.text), 1)
9474
+ f1(b(V.text), 1)
9492
9475
  ])
9493
- ], 8, R3));
9476
+ ], 8, P3));
9494
9477
  }
9495
- }), x3 = ["id", "onClick"], D3 = ["id", "open"], E3 = ["id"], _3 = ["id"], $3 = ["id"], W3 = ["id"], N3 = ["id"], I3 = ["id"], i7 = /* @__PURE__ */ T({
9478
+ }), T3 = ["id", "onClick"], F3 = ["id", "open"], R3 = ["id"], x3 = ["id"], D3 = ["id"], E3 = ["id"], _3 = ["id"], $3 = ["id"], V7 = /* @__PURE__ */ P({
9496
9479
  __name: "RModal",
9497
9480
  props: {
9498
9481
  modelValue: { type: Boolean, default: !1 },
@@ -9524,76 +9507,76 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9524
9507
  function M(e) {
9525
9508
  C.outsideClick && e.target === e.currentTarget && i("update:modelValue", !1);
9526
9509
  }
9527
- return X1(() => {
9510
+ return q1(() => {
9528
9511
  !C.modelValue && C.allowBodyScroll && (document.body.style.overflow = "auto");
9529
9512
  }), window.addEventListener("keydown", (e) => {
9530
9513
  e.key === "Escape" && C.modelValue && C.outsideClick && i("update:modelValue", !1);
9531
- }), (e, d) => a2((m(), Z("div", {
9514
+ }), (e, d) => o2((m(), a("div", {
9532
9515
  id: e.id,
9533
9516
  class: O(["r-modal-overlay", e.overlayClass]),
9534
- onClick: r1(M, ["stop"])
9517
+ onClick: n1(M, ["stop"])
9535
9518
  }, [
9536
- s("div", {
9519
+ S("div", {
9537
9520
  id: `${e.id}-dialog`,
9538
9521
  "aria-modal": "true",
9539
9522
  class: O(A.value),
9540
9523
  open: C.modelValue,
9541
9524
  role: "dialog",
9542
- style: Y1(L.value)
9525
+ style: j1(L.value)
9543
9526
  }, [
9544
- k(e.$slots, "wrapper", {
9527
+ B(e.$slots, "wrapper", {
9545
9528
  id: `${e.id}-wrapper`
9546
9529
  }, () => [
9547
- s("div", {
9530
+ S("div", {
9548
9531
  id: `${e.id}-header`,
9549
9532
  class: "r-dialog__header"
9550
9533
  }, [
9551
- k(e.$slots, "header", {
9534
+ B(e.$slots, "header", {
9552
9535
  id: `${e.id}-header`
9553
9536
  }),
9554
- C.icon ? (m(), Z("div", {
9537
+ C.icon ? (m(), a("div", {
9555
9538
  key: 0,
9556
9539
  id: `${e.id}-icon`,
9557
9540
  class: "icon"
9558
9541
  }, [
9559
- C1(R, {
9542
+ J(F, {
9560
9543
  name: C.icon
9561
9544
  }, null, 8, ["name"])
9562
- ], 8, _3)) : g("", !0),
9563
- C.title ? (m(), Z("div", {
9545
+ ], 8, x3)) : k("", !0),
9546
+ C.title ? (m(), a("div", {
9564
9547
  key: 1,
9565
9548
  id: `${e.id}-title`,
9566
9549
  class: "title"
9567
- }, b(C.title), 9, $3)) : g("", !0),
9568
- C.description ? (m(), Z("div", {
9550
+ }, b(C.title), 9, D3)) : k("", !0),
9551
+ C.description ? (m(), a("div", {
9569
9552
  key: 2,
9570
9553
  id: `${e.id}-description`,
9571
9554
  class: "description"
9572
- }, b(C.description), 9, W3)) : g("", !0)
9573
- ], 8, E3),
9574
- s("div", {
9555
+ }, b(C.description), 9, E3)) : k("", !0)
9556
+ ], 8, R3),
9557
+ S("div", {
9575
9558
  id: `${e.id}-body`,
9576
9559
  class: "r-dialog__body"
9577
9560
  }, [
9578
- k(e.$slots, "default", {
9561
+ B(e.$slots, "default", {
9579
9562
  id: `${e.id}-body`
9580
9563
  })
9581
- ], 8, N3),
9582
- s("div", {
9564
+ ], 8, _3),
9565
+ S("div", {
9583
9566
  id: `${e.id}-actions`,
9584
9567
  class: "r-dialog__actions"
9585
9568
  }, [
9586
- k(e.$slots, "actions", {
9569
+ B(e.$slots, "actions", {
9587
9570
  id: `${e.id}-actions`
9588
9571
  })
9589
- ], 8, I3)
9572
+ ], 8, $3)
9590
9573
  ])
9591
- ], 14, D3)
9592
- ], 10, x3)), [
9593
- [R2, e.modelValue]
9574
+ ], 14, F3)
9575
+ ], 10, T3)), [
9576
+ [P2, e.modelValue]
9594
9577
  ]);
9595
9578
  }
9596
- }), Q3 = ["id", "data-open"], G3 = ["id", "data-open"], U3 = ["id", "data-open"], A7 = /* @__PURE__ */ T({
9579
+ }), W3 = ["id", "data-open"], N3 = ["id", "data-open"], I3 = ["id", "data-open"], L7 = /* @__PURE__ */ P({
9597
9580
  __name: "RSidebar",
9598
9581
  props: {
9599
9582
  modelValue: { type: Boolean, default: !1 },
@@ -9606,37 +9589,37 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9606
9589
  emits: ["update:modelValue"],
9607
9590
  setup(H, { emit: V }) {
9608
9591
  const C = H, i = V;
9609
- return (A, L) => (m(), Z("div", {
9592
+ return (A, L) => (m(), a("div", {
9610
9593
  id: A.id,
9611
9594
  class: O(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
9612
9595
  "data-open": C.modelValue
9613
9596
  }, [
9614
- s("aside", {
9597
+ S("aside", {
9615
9598
  id: `${A.id}-aside`,
9616
9599
  class: O(["r-sidebar", [C.class]]),
9617
9600
  "data-open": C.modelValue
9618
9601
  }, [
9619
- k(A.$slots, "default", {
9602
+ B(A.$slots, "default", {
9620
9603
  open: C.modelValue
9621
9604
  })
9622
- ], 10, G3),
9623
- C.showTrigger ? (m(), Z("div", {
9605
+ ], 10, N3),
9606
+ C.showTrigger ? (m(), a("div", {
9624
9607
  key: 0,
9625
9608
  id: `${A.id}-trigger`,
9626
9609
  class: O(["r-sidebar__trigger", [C.triggerClass]]),
9627
9610
  "data-open": C.modelValue,
9628
9611
  onClick: L[0] || (L[0] = (M) => i("update:modelValue", !C.modelValue))
9629
9612
  }, [
9630
- k(A.$slots, "trigger", {
9613
+ B(A.$slots, "trigger", {
9631
9614
  id: `${A.id}-trigger-slot`,
9632
9615
  open: C.modelValue
9633
9616
  }, () => [
9634
- h1(" > ")
9617
+ f1(" > ")
9635
9618
  ])
9636
- ], 10, U3)) : g("", !0)
9637
- ], 10, Q3));
9619
+ ], 10, I3)) : k("", !0)
9620
+ ], 10, W3));
9638
9621
  }
9639
- }), z3 = ["id"], K3 = ["id"], e7 = /* @__PURE__ */ T({
9622
+ }), Q3 = ["id"], G3 = ["id"], M7 = /* @__PURE__ */ P({
9640
9623
  __name: "RSnackbar",
9641
9624
  props: {
9642
9625
  modelValue: { type: Boolean, default: !1 },
@@ -9651,7 +9634,7 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9651
9634
  emits: ["action", "update:modelValue"],
9652
9635
  setup(H, { emit: V }) {
9653
9636
  const C = H, i = V;
9654
- N(
9637
+ $(
9655
9638
  () => C.modelValue,
9656
9639
  () => {
9657
9640
  C.timeout > 0 && C.modelValue && setTimeout(() => {
@@ -9675,47 +9658,47 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9675
9658
  warning: "mdiAlert",
9676
9659
  info: "mdiInformation"
9677
9660
  })[C.variant || "info"]);
9678
- return (M, e) => (m(), Z("div", {
9661
+ return (M, e) => (m(), a("div", {
9679
9662
  id: M.id,
9680
9663
  class: O(A.value)
9681
9664
  }, [
9682
- k(M.$slots, "icon", {
9665
+ B(M.$slots, "icon", {
9683
9666
  id: `${M.id}-icon`
9684
9667
  }, () => [
9685
- C.variant ? (m(), D(R, {
9668
+ C.variant ? (m(), R(F, {
9686
9669
  key: 0,
9687
9670
  class: "r-snackbar__icon",
9688
9671
  name: L.value
9689
- }, null, 8, ["name"])) : g("", !0)
9672
+ }, null, 8, ["name"])) : k("", !0)
9690
9673
  ]),
9691
- s("div", {
9674
+ S("div", {
9692
9675
  id: `${M.id}-text`,
9693
9676
  class: "r-snackbar__text"
9694
9677
  }, [
9695
- k(M.$slots, "default", {
9678
+ B(M.$slots, "default", {
9696
9679
  id: `${M.id}-text-slot`
9697
9680
  }, () => [
9698
- h1(b(C.text), 1)
9681
+ f1(b(C.text), 1)
9699
9682
  ])
9700
- ], 8, K3),
9701
- C.closable ? (m(), Z("div", {
9683
+ ], 8, G3),
9684
+ C.closable ? (m(), a("div", {
9702
9685
  key: 0,
9703
9686
  class: "r-snackbar__close",
9704
- onClick: e[0] || (e[0] = r1((d) => M.$emit("update:modelValue", !1), ["stop"]))
9687
+ onClick: e[0] || (e[0] = n1((d) => M.$emit("update:modelValue", !1), ["stop"]))
9705
9688
  }, [
9706
- k(M.$slots, "close", {
9689
+ B(M.$slots, "close", {
9707
9690
  id: `${M.id}-close-slot`
9708
9691
  }, () => [
9709
- C1(R, {
9692
+ J(F, {
9710
9693
  id: `${M.id}-close-icon`,
9711
9694
  name: "mdiClose",
9712
9695
  size: 16
9713
9696
  }, null, 8, ["id"])
9714
9697
  ])
9715
- ])) : g("", !0)
9716
- ], 10, z3));
9698
+ ])) : k("", !0)
9699
+ ], 10, Q3));
9717
9700
  }
9718
- }), q3 = ["id"], j3 = ["id", "checked", "disabled", "name"], X3 = /* @__PURE__ */ s("span", { class: "slider round" }, null, -1), Y3 = ["id", "for"], J3 = ["id"], C0 = ["id"], H0 = ["id"], d7 = /* @__PURE__ */ T({
9701
+ }), U3 = ["id"], z3 = ["id", "checked", "disabled", "name"], K3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), q3 = ["id", "for"], j3 = ["id"], X3 = ["id"], Y3 = ["id"], i7 = /* @__PURE__ */ P({
9719
9702
  __name: "RSwitch",
9720
9703
  props: {
9721
9704
  id: { default: "switch" },
@@ -9731,7 +9714,7 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9731
9714
  },
9732
9715
  emits: ["update:modelValue"],
9733
9716
  setup(H, { emit: V }) {
9734
- const C = H, i = V, A = E({
9717
+ const C = H, i = V, A = D({
9735
9718
  checked: !1
9736
9719
  }), L = f(() => ({
9737
9720
  "r-switch": !0,
@@ -9742,7 +9725,7 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9742
9725
  function e(d) {
9743
9726
  C.disabled || (A.value.checked = d.target.checked, i("update:modelValue", A.value.checked));
9744
9727
  }
9745
- return N(
9728
+ return $(
9746
9729
  () => C.modelValue,
9747
9730
  (d) => {
9748
9731
  A.value.checked = d;
@@ -9752,17 +9735,17 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9752
9735
  // TODO: find a better way to do this
9753
9736
  immediate: !0
9754
9737
  }
9755
- ), (d, l) => (m(), Z("div", {
9738
+ ), (d, l) => (m(), a("div", {
9756
9739
  id: M.value,
9757
9740
  class: O(["r-switch-container", {
9758
9741
  "r-switch-container--reverse": C.reverse,
9759
9742
  "r-switch-container--hide-details": C.hideDetails
9760
9743
  }])
9761
9744
  }, [
9762
- s("div", {
9745
+ S("div", {
9763
9746
  class: O(L.value)
9764
9747
  }, [
9765
- s("input", {
9748
+ S("input", {
9766
9749
  id: `${M.value}`,
9767
9750
  checked: A.value.checked,
9768
9751
  class: "r-switch__input",
@@ -9770,44 +9753,44 @@ const e3 = ["id", "aria-disabled"], d3 = ["innerHTML"], t3 = ["id"], m3 = ["id"]
9770
9753
  name: C.name,
9771
9754
  type: "checkbox",
9772
9755
  onChange: e
9773
- }, null, 40, j3),
9774
- X3
9756
+ }, null, 40, z3),
9757
+ K3
9775
9758
  ], 2),
9776
- s("div", {
9759
+ S("div", {
9777
9760
  class: O(["r-switch-texts", {
9778
9761
  [`r-switch-texts--${C.size}`]: !0
9779
9762
  }])
9780
9763
  }, [
9781
- s("label", {
9764
+ S("label", {
9782
9765
  id: `${M.value}`,
9783
9766
  class: "r-switch-texts__label",
9784
9767
  for: M.value
9785
- }, b(C.label), 9, Y3),
9786
- C.hideDetails ? g("", !0) : (m(), Z("div", {
9768
+ }, b(C.label), 9, q3),
9769
+ C.hideDetails ? k("", !0) : (m(), a("div", {
9787
9770
  key: 0,
9788
9771
  id: `${M.value}-details`,
9789
9772
  class: "r-switch-texts__details"
9790
9773
  }, [
9791
- C.errorMsg ? (m(), Z("p", {
9774
+ C.errorMsg ? (m(), a("p", {
9792
9775
  key: 0,
9793
9776
  id: `${M.value}-error`,
9794
9777
  class: "r-switch-texts__error"
9795
- }, b(C.errorMsg), 9, C0)) : (m(), Z("p", {
9778
+ }, b(C.errorMsg), 9, X3)) : (m(), a("p", {
9796
9779
  key: 1,
9797
9780
  id: `${M.value}-hint`,
9798
9781
  class: "r-switch-texts__hint"
9799
- }, b(C.hint), 9, H0))
9800
- ], 8, J3))
9782
+ }, b(C.hint), 9, Y3))
9783
+ ], 8, j3))
9801
9784
  ], 2)
9802
- ], 10, q3));
9785
+ ], 10, U3));
9803
9786
  }
9804
9787
  });
9805
- var p1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(p1 || {});
9806
- const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }, M0 = /* @__PURE__ */ T({
9788
+ var c1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(c1 || {});
9789
+ const J3 = ["id", "aria-disabled", "aria-selected", "disabled"], C0 = { key: 0 }, H0 = /* @__PURE__ */ P({
9807
9790
  __name: "RTabItem",
9808
9791
  props: {
9809
9792
  id: {},
9810
- variant: { default: p1.DEFAULT },
9793
+ variant: { default: c1.DEFAULT },
9811
9794
  label: { default: "" },
9812
9795
  prependIcon: { default: "" },
9813
9796
  appendIcon: { default: "" },
@@ -9830,47 +9813,47 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9830
9813
  function e(d) {
9831
9814
  i("update:modelValue", d);
9832
9815
  }
9833
- return (d, l) => (m(), Z("button", {
9816
+ return (d, l) => (m(), a("button", {
9834
9817
  id: `r-tab-item-${C.id}`,
9835
9818
  "aria-disabled": C.disabled,
9836
9819
  "aria-selected": M.value,
9837
9820
  class: O(A.value),
9838
9821
  disabled: C.disabled,
9839
- style: Y1(L.value),
9840
- onClick: l[0] || (l[0] = r1((n) => e(C.id), ["stop"]))
9822
+ style: j1(L.value),
9823
+ onClick: l[0] || (l[0] = n1((n) => e(C.id), ["stop"]))
9841
9824
  }, [
9842
- k(d.$slots, "prepend", {
9825
+ B(d.$slots, "prepend", {
9843
9826
  active: M.value,
9844
9827
  disabled: C.disabled
9845
9828
  }, () => [
9846
- C.variant !== A1(p1).TEXT && C.prependIcon ? (m(), D(R, {
9829
+ C.variant !== A1(c1).TEXT && C.prependIcon ? (m(), R(F, {
9847
9830
  key: 0,
9848
9831
  class: "r-tab-item__prepend-icon",
9849
9832
  name: C.prependIcon,
9850
9833
  size: 16
9851
- }, null, 8, ["name"])) : g("", !0)
9834
+ }, null, 8, ["name"])) : k("", !0)
9852
9835
  ]),
9853
- C.variant !== A1(p1).ICON ? (m(), Z("span", L0, [
9854
- k(d.$slots, "default", {
9836
+ C.variant !== A1(c1).ICON ? (m(), a("span", C0, [
9837
+ B(d.$slots, "default", {
9855
9838
  label: C.label
9856
9839
  }, () => [
9857
- h1(b(C.label), 1)
9840
+ f1(b(C.label), 1)
9858
9841
  ])
9859
- ])) : g("", !0),
9860
- k(d.$slots, "append", {
9842
+ ])) : k("", !0),
9843
+ B(d.$slots, "append", {
9861
9844
  active: M.value,
9862
9845
  disabled: C.disabled
9863
9846
  }, () => [
9864
- C.variant !== A1(p1).TEXT && C.appendIcon ? (m(), D(R, {
9847
+ C.variant !== A1(c1).TEXT && C.appendIcon ? (m(), R(F, {
9865
9848
  key: 0,
9866
9849
  class: "r-tab-item__append-icon",
9867
9850
  name: C.appendIcon,
9868
9851
  size: 16
9869
- }, null, 8, ["name"])) : g("", !0)
9852
+ }, null, 8, ["name"])) : k("", !0)
9870
9853
  ])
9871
- ], 14, V0));
9854
+ ], 14, J3));
9872
9855
  }
9873
- }), i0 = ["id"], A0 = ["id"], t7 = /* @__PURE__ */ T({
9856
+ }), V0 = ["id"], L0 = ["id"], A7 = /* @__PURE__ */ P({
9874
9857
  __name: "RTabs",
9875
9858
  props: {
9876
9859
  tabs: { default: () => [] },
@@ -9882,16 +9865,16 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9882
9865
  },
9883
9866
  emits: ["update:modelValue"],
9884
9867
  setup(H, { emit: V }) {
9885
- const C = H, i = V, A = E(C.modelValue || (C.tabs.length > 0 ? C.tabs[0].id : "")), L = f(() => ({
9868
+ const C = H, i = V, A = D(C.modelValue || (C.tabs.length > 0 ? C.tabs[0].id : "")), L = f(() => ({
9886
9869
  "r-tabs": !0,
9887
9870
  "r-tabs--tile": C.tile
9888
9871
  }));
9889
- return N(
9872
+ return $(
9890
9873
  () => A.value,
9891
9874
  () => {
9892
9875
  i("update:modelValue", A.value);
9893
9876
  }
9894
- ), N(
9877
+ ), $(
9895
9878
  () => C.modelValue,
9896
9879
  () => {
9897
9880
  A.value = C.modelValue;
@@ -9899,11 +9882,11 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9899
9882
  {
9900
9883
  immediate: !0
9901
9884
  }
9902
- ), (M, e) => (m(), Z("div", {
9885
+ ), (M, e) => (m(), a("div", {
9903
9886
  id: M.id,
9904
9887
  class: O(L.value)
9905
9888
  }, [
9906
- s("div", {
9889
+ S("div", {
9907
9890
  id: `${M.id}-tabs`,
9908
9891
  class: O(["flex", [{
9909
9892
  "w-full": C.block,
@@ -9911,11 +9894,11 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9911
9894
  "gap-0.5": C.tile
9912
9895
  }]])
9913
9896
  }, [
9914
- k(M.$slots, "default", {
9897
+ B(M.$slots, "default", {
9915
9898
  id: `${M.id}-slot`,
9916
9899
  activeTab: A.value
9917
9900
  }, () => [
9918
- (m(!0), Z(i1, null, n1(C.tabs, (d, l) => (m(), D(M0, {
9901
+ (m(!0), a(i1, null, o1(C.tabs, (d, l) => (m(), R(H0, {
9919
9902
  id: d.id,
9920
9903
  key: l,
9921
9904
  modelValue: A.value,
@@ -9929,10 +9912,10 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9929
9912
  variant: d.variant
9930
9913
  }, null, 8, ["id", "modelValue", "append-icon", "block", "disabled", "label", "prepend-icon", "tile", "variant"]))), 128))
9931
9914
  ])
9932
- ], 10, A0)
9933
- ], 10, i0));
9915
+ ], 10, L0)
9916
+ ], 10, V0));
9934
9917
  }
9935
- }), e0 = ["id"], d0 = ["id", "disabled", "placeholder", "value"], t0 = ["id"], m0 = ["id"], l0 = ["id"], m7 = /* @__PURE__ */ T({
9918
+ }), M0 = ["id"], i0 = ["id", "disabled", "placeholder", "value"], A0 = ["id"], e0 = ["id"], d0 = ["id"], e7 = /* @__PURE__ */ P({
9936
9919
  __name: "RTextArea",
9937
9920
  props: {
9938
9921
  id: { default: "" },
@@ -9946,13 +9929,13 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9946
9929
  },
9947
9930
  emits: ["update:modelValue"],
9948
9931
  setup(H, { emit: V }) {
9949
- const C = H, i = V, A = E1({
9932
+ const C = H, i = V, A = D1({
9950
9933
  value: ""
9951
9934
  });
9952
9935
  function L(e) {
9953
9936
  i("update:modelValue", e.target.value);
9954
9937
  }
9955
- N(
9938
+ $(
9956
9939
  () => C.modelValue,
9957
9940
  (e) => {
9958
9941
  A.value = e;
@@ -9962,18 +9945,18 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9962
9945
  }
9963
9946
  );
9964
9947
  const M = f(() => C.id || "r-textarea");
9965
- return (e, d) => (m(), Z("div", {
9948
+ return (e, d) => (m(), a("div", {
9966
9949
  id: M.value,
9967
9950
  class: "r-textarea-wrapper"
9968
9951
  }, [
9969
- C.label ? (m(), D(w2, {
9952
+ C.label ? (m(), R(B2, {
9970
9953
  key: 0,
9971
9954
  id: `${M.value}`,
9972
9955
  class: "r-textarea__label",
9973
9956
  for: M.value,
9974
9957
  text: C.label
9975
- }, null, 8, ["id", "for", "text"])) : g("", !0),
9976
- s("textarea", _1(e.$attrs, {
9958
+ }, null, 8, ["id", "for", "text"])) : k("", !0),
9959
+ S("textarea", E1(e.$attrs, {
9977
9960
  id: `${M.value}`,
9978
9961
  class: ["r-textarea", {
9979
9962
  "r-textarea--error": C.errorMsg,
@@ -9983,28 +9966,28 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
9983
9966
  placeholder: C.placeholder,
9984
9967
  value: A.value,
9985
9968
  onInput: L
9986
- }), null, 16, d0),
9987
- C.hideDetails ? g("", !0) : (m(), Z("div", {
9969
+ }), null, 16, i0),
9970
+ C.hideDetails ? k("", !0) : (m(), a("div", {
9988
9971
  key: 1,
9989
9972
  id: `${M.value}-details`,
9990
9973
  class: "r-textarea__details"
9991
9974
  }, [
9992
- C.errorMsg ? (m(), Z("p", {
9975
+ C.errorMsg ? (m(), a("p", {
9993
9976
  key: 0,
9994
9977
  id: `${M.value}-error`,
9995
9978
  class: "r-textarea__error"
9996
- }, b(C.errorMsg), 9, m0)) : (m(), Z("p", {
9979
+ }, b(C.errorMsg), 9, e0)) : (m(), a("p", {
9997
9980
  key: 1,
9998
9981
  id: `${M.value}-hint`,
9999
9982
  class: "r-textarea__hint"
10000
- }, b(C.hint), 9, l0))
10001
- ], 8, t0))
10002
- ], 8, e0));
9983
+ }, b(C.hint), 9, d0))
9984
+ ], 8, A0))
9985
+ ], 8, M0));
10003
9986
  }
10004
- }), o0 = ["id"], n0 = ["id"], r0 = ["id"], a0 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], Z0 = ["id"], u0 = ["id"], S0 = {
9987
+ }), t0 = ["id"], m0 = ["id"], l0 = ["id"], o0 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], n0 = ["id"], r0 = ["id"], a0 = {
10005
9988
  key: 1,
10006
9989
  class: "r-textfield__hint"
10007
- }, l7 = /* @__PURE__ */ T({
9990
+ }, d7 = /* @__PURE__ */ P({
10008
9991
  __name: "RTextfield",
10009
9992
  props: {
10010
9993
  id: { default: "" },
@@ -10034,124 +10017,124 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10034
10017
  "click:clear"
10035
10018
  ],
10036
10019
  setup(H, { emit: V }) {
10037
- const C = H, i = V, A = E(), L = E1({
10020
+ const C = H, i = V, A = D(), L = D1({
10038
10021
  value: ""
10039
- }), M = E(C.type), e = {
10022
+ }), M = D(C.type), e = {
10040
10023
  password: "mdiLock",
10041
10024
  email: "mdiEmailOutline",
10042
10025
  tel: "mdiPhone",
10043
10026
  url: "mdiLink",
10044
10027
  number: "mdiNumeric",
10045
10028
  text: ""
10046
- }, d = E(!1), l = f(() => !!L.value), n = f(() => L.value.length > 0), u = f(() => {
10047
- var h;
10048
- return (h = C.errorMsg) == null ? void 0 : h.length;
10029
+ }, d = D(!1), l = f(() => !!L.value), n = f(() => L.value.length > 0), Z = f(() => {
10030
+ var g;
10031
+ return (g = C.errorMsg) == null ? void 0 : g.length;
10049
10032
  }), o = f(() => C.clearable && n.value), r = f(() => {
10050
- const { disabled: h, loading: F } = C;
10033
+ const { disabled: g, loading: I } = C;
10051
10034
  return {
10052
10035
  "r-textfield": !0,
10053
- "r-textfield--error": u.value,
10054
- "r-textfield--loading": F,
10055
- "r-textfield--disabled": h,
10036
+ "r-textfield--error": Z.value,
10037
+ "r-textfield--loading": I,
10038
+ "r-textfield--disabled": g,
10056
10039
  "r-textfield--clearable": o.value,
10057
10040
  "r-textfield--focus": d.value,
10058
10041
  "r-textfield--filled": l.value
10059
10042
  };
10060
- }), S = f(() => ({
10043
+ }), u = f(() => ({
10061
10044
  "r-textfield__prepend-icon": !0,
10062
10045
  "r-textfield__prepend-icon--loading": C.loading,
10063
- "r-textfield__prepend-icon--error": u.value && l.value
10046
+ "r-textfield__prepend-icon--error": Z.value && l.value
10064
10047
  })), v = f(() => ({
10065
10048
  "r-textfield__append-icon": !0,
10066
10049
  "r-textfield__append-icon--clear": o.value,
10067
- "r-textfield__append-icon--error": u.value
10068
- })), B = f(() => {
10069
- const { prependIcon: h, type: F } = C;
10070
- return h === "none" ? "" : h || e[F];
10071
- }), P = f(() => {
10072
- const { appendIcon: h, type: F } = C;
10073
- return h === "none" ? "" : u.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(F) ? "mdiClose" : F === "password" && M.value === "password" ? "mdiEyeOutline" : F === "password" && M.value === "text" ? "mdiEyeOffOutline" : h;
10074
- }), c = f(() => C.id || "r-textfield");
10075
- function w(h) {
10076
- d.value = !0, i("focus", h);
10050
+ "r-textfield__append-icon--error": Z.value
10051
+ })), h = f(() => {
10052
+ const { prependIcon: g, type: I } = C;
10053
+ return g === "none" ? "" : g || e[I];
10054
+ }), y = f(() => {
10055
+ const { appendIcon: g, type: I } = C;
10056
+ return g === "none" ? "" : Z.value ? "mdiAlertCircleOutline" : o.value && ["text", "email"].includes(I) ? "mdiClose" : I === "password" && M.value === "password" ? "mdiEyeOutline" : I === "password" && M.value === "text" ? "mdiEyeOffOutline" : g;
10057
+ }), p = f(() => C.id || "r-textfield");
10058
+ function w(g) {
10059
+ d.value = !0, i("focus", g);
10077
10060
  }
10078
- function _(h) {
10079
- d.value = !1, i("blur", h);
10061
+ function E(g) {
10062
+ d.value = !1, i("blur", g);
10080
10063
  }
10081
- function x(h) {
10082
- L.value = h.target.value, i("input", h);
10064
+ function x(g) {
10065
+ L.value = g.target.value, i("input", g);
10083
10066
  }
10084
- function z() {
10085
- var h;
10067
+ function W() {
10068
+ var g;
10086
10069
  if (o.value) {
10087
- L.value = "", (h = A.value) == null || h.focus(), i("click:clear", {
10070
+ L.value = "", (g = A.value) == null || g.focus(), i("click:clear", {
10088
10071
  value: M.value === "number" ? +L.value : L.value
10089
10072
  });
10090
10073
  return;
10091
10074
  }
10092
10075
  i("click:icon", {
10093
10076
  value: M.value === "number" ? +L.value : L.value
10094
- }), C.type === "password" && $();
10077
+ }), C.type === "password" && N();
10095
10078
  }
10096
- function $() {
10079
+ function N() {
10097
10080
  M.value = M.value === "password" ? "text" : "password";
10098
10081
  }
10099
- function J() {
10100
- var h;
10101
- (h = A.value) == null || h.focus();
10082
+ function _() {
10083
+ var g;
10084
+ (g = A.value) == null || g.focus();
10102
10085
  }
10103
- return N(
10086
+ return $(
10104
10087
  () => C.modelValue,
10105
- (h) => {
10106
- L.value = h;
10088
+ (g) => {
10089
+ L.value = g;
10107
10090
  },
10108
10091
  {
10109
10092
  immediate: !0
10110
10093
  }
10111
- ), N(
10094
+ ), $(
10112
10095
  () => L.value,
10113
- (h) => {
10096
+ (g) => {
10114
10097
  i(
10115
10098
  "update:modelValue",
10116
- M.value === "number" ? +h : h
10099
+ M.value === "number" ? +g : g
10117
10100
  );
10118
10101
  }
10119
- ), (h, F) => (m(), Z("div", {
10120
- id: c.value,
10102
+ ), (g, I) => (m(), a("div", {
10103
+ id: p.value,
10121
10104
  class: "r-textfield__wrapper"
10122
10105
  }, [
10123
- C.label ? (m(), D(w2, {
10106
+ C.label ? (m(), R(B2, {
10124
10107
  key: 0,
10125
- id: `${c.value}`,
10108
+ id: `${p.value}`,
10126
10109
  class: "r-textfield__label",
10127
- for: c.value,
10110
+ for: p.value,
10128
10111
  text: C.label,
10129
- onClick: J
10130
- }, null, 8, ["id", "for", "text"])) : g("", !0),
10131
- s("div", {
10132
- id: `${c.value}-input-wrapper`,
10112
+ onClick: _
10113
+ }, null, 8, ["id", "for", "text"])) : k("", !0),
10114
+ S("div", {
10115
+ id: `${p.value}-input-wrapper`,
10133
10116
  class: "input-wrapper"
10134
10117
  }, [
10135
- s("div", {
10136
- id: `${c.value}-input-wrapper-inner`,
10118
+ S("div", {
10119
+ id: `${p.value}-input-wrapper-inner`,
10137
10120
  class: O(r.value)
10138
10121
  }, [
10139
- k(h.$slots, "prepend", {
10140
- id: `${c.value}-prepend-slot`,
10122
+ B(g.$slots, "prepend", {
10123
+ id: `${p.value}-prepend-slot`,
10141
10124
  disabled: C.disabled,
10142
- error: u.value,
10125
+ error: Z.value,
10143
10126
  loading: C.loading
10144
10127
  }, () => [
10145
- B.value ? (m(), D(R, {
10128
+ h.value ? (m(), R(F, {
10146
10129
  key: 0,
10147
- id: `${c.value}-prepend-icon`,
10148
- class: O(S.value),
10149
- name: B.value,
10130
+ id: `${p.value}-prepend-icon`,
10131
+ class: O(u.value),
10132
+ name: h.value,
10150
10133
  size: 20
10151
- }, null, 8, ["id", "class", "name"])) : g("", !0)
10134
+ }, null, 8, ["id", "class", "name"])) : k("", !0)
10152
10135
  ]),
10153
- s("input", _1(h.$attrs, {
10154
- id: `${c.value}`,
10136
+ S("input", E1(g.$attrs, {
10137
+ id: `${p.value}`,
10155
10138
  ref_key: "inputRef",
10156
10139
  ref: A,
10157
10140
  disabled: C.disabled,
@@ -10162,49 +10145,49 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10162
10145
  role: C.role,
10163
10146
  type: M.value,
10164
10147
  value: L.value,
10165
- onBlur: _,
10148
+ onBlur: E,
10166
10149
  onFocus: w,
10167
10150
  onInput: x
10168
- }), null, 16, a0),
10169
- k(h.$slots, "append", {
10170
- id: `${c.value}-append-slot`,
10151
+ }), null, 16, o0),
10152
+ B(g.$slots, "append", {
10153
+ id: `${p.value}-append-slot`,
10171
10154
  disabled: C.disabled,
10172
- error: u.value,
10155
+ error: Z.value,
10173
10156
  loading: C.loading
10174
10157
  }, () => [
10175
- h.$props.type === "password" && u.value ? (m(), D(R, {
10158
+ g.$props.type === "password" && Z.value ? (m(), R(F, {
10176
10159
  key: 0,
10177
- id: `${c.value}-append-icon`,
10160
+ id: `${p.value}-append-icon`,
10178
10161
  name: M.value === "password" ? "mdiEyeOutline" : "mdiEyeOffOutline",
10179
10162
  size: 20,
10180
- onClick: z
10181
- }, null, 8, ["id", "name"])) : g("", !0),
10182
- P.value && !h.$slots.append || u.value ? (m(), D(R, {
10163
+ onClick: W
10164
+ }, null, 8, ["id", "name"])) : k("", !0),
10165
+ y.value && !g.$slots.append || Z.value ? (m(), R(F, {
10183
10166
  key: 1,
10184
- id: `${c.value}-append-icon`,
10167
+ id: `${p.value}-append-icon`,
10185
10168
  class: O(v.value),
10186
- name: `${P.value}`,
10169
+ name: `${y.value}`,
10187
10170
  size: 20,
10188
- onClick: z
10189
- }, null, 8, ["id", "class", "name"])) : g("", !0)
10171
+ onClick: W
10172
+ }, null, 8, ["id", "class", "name"])) : k("", !0)
10190
10173
  ])
10191
- ], 10, r0),
10192
- C.hideDetails ? g("", !0) : (m(), Z("div", {
10174
+ ], 10, l0),
10175
+ C.hideDetails ? k("", !0) : (m(), a("div", {
10193
10176
  key: 0,
10194
- id: `${c.value}-details`,
10177
+ id: `${p.value}-details`,
10195
10178
  class: "r-textfield__details"
10196
10179
  }, [
10197
- C.errorMsg ? (m(), Z("p", {
10180
+ C.errorMsg ? (m(), a("p", {
10198
10181
  key: 0,
10199
- id: `${c.value}-error`,
10182
+ id: `${p.value}-error`,
10200
10183
  class: "r-textfield__error"
10201
- }, b(C.errorMsg), 9, u0)) : g("", !0),
10202
- !C.errorMsg && C.hint ? (m(), Z("p", S0, b(C.hint), 1)) : g("", !0)
10203
- ], 8, Z0))
10204
- ], 8, n0)
10205
- ], 8, o0));
10184
+ }, b(C.errorMsg), 9, r0)) : k("", !0),
10185
+ !C.errorMsg && C.hint ? (m(), a("p", a0, b(C.hint), 1)) : k("", !0)
10186
+ ], 8, n0))
10187
+ ], 8, m0)
10188
+ ], 8, t0));
10206
10189
  }
10207
- }), s0 = ["id"], c0 = ["id"], o7 = /* @__PURE__ */ T({
10190
+ }), Z0 = ["id"], u0 = ["id"], t7 = /* @__PURE__ */ P({
10208
10191
  __name: "RBreadcrumb",
10209
10192
  props: {
10210
10193
  items: { default: () => [] },
@@ -10214,80 +10197,80 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10214
10197
  setup(H) {
10215
10198
  const V = H;
10216
10199
  return (C, i) => {
10217
- const A = x2("router-link");
10218
- return m(), Z("div", {
10200
+ const A = T2("router-link");
10201
+ return m(), a("div", {
10219
10202
  id: C.id,
10220
10203
  class: "r-breadcrumb"
10221
10204
  }, [
10222
- (m(!0), Z(i1, null, n1(V.items, (L, M) => (m(), Z("div", {
10205
+ (m(!0), a(i1, null, o1(V.items, (L, M) => (m(), a("div", {
10223
10206
  key: M,
10224
10207
  class: "r-breadcrumb__item"
10225
10208
  }, [
10226
- C1(A, {
10209
+ J(A, {
10227
10210
  id: `${C.id}-link-${M}`,
10228
10211
  class: "r-breadcrumb__link",
10229
10212
  to: L.to
10230
10213
  }, {
10231
- default: T1(() => [
10232
- k(C.$slots, "item-icon", {}, () => [
10233
- L.icon ? (m(), D(R, {
10214
+ default: P1(() => [
10215
+ B(C.$slots, "item-icon", {}, () => [
10216
+ L.icon ? (m(), R(F, {
10234
10217
  key: 0,
10235
10218
  name: L.icon
10236
- }, null, 8, ["name"])) : g("", !0)
10219
+ }, null, 8, ["name"])) : k("", !0)
10237
10220
  ]),
10238
- L.onlyIcon ? g("", !0) : (m(), Z("span", {
10221
+ L.onlyIcon ? k("", !0) : (m(), a("span", {
10239
10222
  key: 0,
10240
10223
  id: `${C.id}-title-${M}`,
10241
10224
  class: "r-breadcrumb__title"
10242
- }, b(L.title), 9, c0))
10225
+ }, b(L.title), 9, u0))
10243
10226
  ]),
10244
10227
  _: 2
10245
10228
  }, 1032, ["id", "to"]),
10246
- k(C.$slots, "custom-seperator", {
10229
+ B(C.$slots, "custom-seperator", {
10247
10230
  id: `${C.id}-separator-${M}`
10248
10231
  }, () => [
10249
- M !== C.items.length - 1 && V.seperator ? (m(), D(R, {
10232
+ M !== C.items.length - 1 && V.seperator ? (m(), R(F, {
10250
10233
  key: 0,
10251
10234
  id: `${C.id}-separator-${M}`,
10252
10235
  class: "r-breadcrumb__separator",
10253
10236
  name: V.seperator
10254
- }, null, 8, ["id", "name"])) : g("", !0)
10237
+ }, null, 8, ["id", "name"])) : k("", !0)
10255
10238
  ])
10256
10239
  ]))), 128))
10257
- ], 8, s0);
10240
+ ], 8, Z0);
10258
10241
  };
10259
10242
  }
10260
- }), p0 = ["id"], O0 = ["id"], f0 = ["id"], h0 = ["id"], g0 = ["id", "disabled"], k0 = /* @__PURE__ */ s("path", {
10243
+ }), S0 = ["id"], s0 = ["id"], c0 = ["id"], p0 = ["id"], O0 = ["id", "disabled"], f0 = /* @__PURE__ */ S("path", {
10261
10244
  d: "M0 0h24v24H0z",
10262
10245
  fill: "none",
10263
10246
  stroke: "none"
10264
- }, null, -1), B0 = /* @__PURE__ */ s("path", { d: "M7 6v12" }, null, -1), b0 = /* @__PURE__ */ s("path", { d: "M18 6l-6 6l6 6" }, null, -1), v0 = [
10265
- k0,
10266
- B0,
10267
- b0
10268
- ], w0 = ["id", "disabled"], y0 = /* @__PURE__ */ s("path", {
10247
+ }, null, -1), h0 = /* @__PURE__ */ S("path", { d: "M7 6v12" }, null, -1), g0 = /* @__PURE__ */ S("path", { d: "M18 6l-6 6l6 6" }, null, -1), k0 = [
10248
+ f0,
10249
+ h0,
10250
+ g0
10251
+ ], B0 = ["id", "disabled"], b0 = /* @__PURE__ */ S("path", {
10269
10252
  d: "M0 0h24v24H0z",
10270
10253
  fill: "none",
10271
10254
  stroke: "none"
10272
- }, null, -1), P0 = /* @__PURE__ */ s("path", { d: "M15 6l-6 6l6 6" }, null, -1), T0 = [
10273
- y0,
10274
- P0
10275
- ], F0 = ["id", "disabled"], R0 = /* @__PURE__ */ s("path", {
10255
+ }, null, -1), v0 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), w0 = [
10256
+ b0,
10257
+ v0
10258
+ ], y0 = ["id", "disabled"], P0 = /* @__PURE__ */ S("path", {
10276
10259
  d: "M0 0h24v24H0z",
10277
10260
  fill: "none",
10278
10261
  stroke: "none"
10279
- }, null, -1), x0 = /* @__PURE__ */ s("path", { d: "M9 6l6 6l-6 6" }, null, -1), D0 = [
10280
- R0,
10281
- x0
10282
- ], E0 = ["id", "disabled"], _0 = /* @__PURE__ */ s("path", {
10262
+ }, null, -1), T0 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), F0 = [
10263
+ P0,
10264
+ T0
10265
+ ], R0 = ["id", "disabled"], x0 = /* @__PURE__ */ S("path", {
10283
10266
  d: "M0 0h24v24H0z",
10284
10267
  fill: "none",
10285
10268
  stroke: "none"
10286
- }, null, -1), $0 = /* @__PURE__ */ s("path", { d: "M6 6l6 6l-6 6" }, null, -1), W0 = /* @__PURE__ */ s("path", { d: "M17 5v13" }, null, -1), N0 = [
10287
- _0,
10288
- $0,
10289
- W0
10290
- ], n7 = /* @__PURE__ */ T({
10269
+ }, null, -1), D0 = /* @__PURE__ */ S("path", { d: "M6 6l6 6l-6 6" }, null, -1), E0 = /* @__PURE__ */ S("path", { d: "M17 5v13" }, null, -1), _0 = [
10270
+ x0,
10271
+ D0,
10272
+ E0
10273
+ ], m7 = /* @__PURE__ */ P({
10291
10274
  __name: "RPagination",
10292
10275
  props: {
10293
10276
  page: { default: 1 },
@@ -10301,65 +10284,65 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10301
10284
  },
10302
10285
  emits: ["update:page", "update:perPage", "update:info"],
10303
10286
  setup(H, { emit: V }) {
10304
- const C = H, i = V, A = E(C.perPage || 10), L = f(() => Math.ceil(C.totalItems / C.perPage)), M = f(() => ({
10287
+ const C = H, i = V, A = D(C.perPage || 10), L = f(() => Math.ceil(C.totalItems / C.perPage)), M = f(() => ({
10305
10288
  start: C.page * C.perPage - C.perPage,
10306
10289
  end: C.page * C.perPage
10307
10290
  })), e = f(() => C.infoText || `${M.value.start + 1}-${M.value.end} of ${C.totalItems}`), d = f(() => +C.page == +L.value), l = f(() => +C.page == 1);
10308
- N(() => M.value, () => {
10291
+ $(() => M.value, () => {
10309
10292
  i("update:info", M.value);
10310
- }), N(() => C.perPage, () => {
10293
+ }), $(() => C.perPage, () => {
10311
10294
  A.value = C.perPage, n(1);
10312
10295
  });
10313
10296
  function n(o) {
10314
10297
  const r = Math.ceil(o);
10315
10298
  r < 1 || r > L.value || i("update:page", r);
10316
10299
  }
10317
- function u({ value: o }) {
10300
+ function Z({ value: o }) {
10318
10301
  if (o) {
10319
10302
  i("update:perPage", o);
10320
10303
  return;
10321
10304
  }
10322
10305
  i("update:perPage", 10);
10323
10306
  }
10324
- return (o, r) => (m(), Z("div", {
10307
+ return (o, r) => (m(), a("div", {
10325
10308
  id: o.id,
10326
10309
  class: O(["r-pagination", [`r-pagination--${C.position}`]])
10327
10310
  }, [
10328
- s("div", {
10311
+ S("div", {
10329
10312
  id: `${o.id}-paginator`,
10330
10313
  class: "r-pagination__paginator"
10331
10314
  }, [
10332
- s("div", {
10315
+ S("div", {
10333
10316
  id: `${o.id}-paginator-per-page`,
10334
10317
  class: "r-pagination__paginator__per-page"
10335
10318
  }, [
10336
- s("span", null, b(C.itemsPerPageText), 1),
10337
- C1(F3, {
10319
+ S("span", null, b(C.itemsPerPageText), 1),
10320
+ J(y3, {
10338
10321
  modelValue: A.value,
10339
10322
  "onUpdate:modelValue": [
10340
- r[0] || (r[0] = (S) => A.value = S),
10341
- u
10323
+ r[0] || (r[0] = (u) => A.value = u),
10324
+ Z
10342
10325
  ],
10343
10326
  class: "w-24",
10344
10327
  "hide-details": "",
10345
10328
  "hide-option-check-icon": "",
10346
10329
  options: C.perPageOptions
10347
10330
  }, null, 8, ["modelValue", "options"])
10348
- ], 8, f0),
10349
- s("span", {
10331
+ ], 8, c0),
10332
+ S("span", {
10350
10333
  id: `${o.id}-paginator-info`,
10351
10334
  class: "r-pagination__paginator__info"
10352
- }, b(e.value), 9, h0),
10353
- s("button", {
10335
+ }, b(e.value), 9, p0),
10336
+ S("button", {
10354
10337
  id: `${o.id}-paginator-first`,
10355
10338
  class: "r-pagination__paginator__first",
10356
10339
  disabled: l.value,
10357
- onClick: r[1] || (r[1] = (S) => n(1))
10340
+ onClick: r[1] || (r[1] = (u) => n(1))
10358
10341
  }, [
10359
- k(o.$slots, "first", {
10342
+ B(o.$slots, "first", {
10360
10343
  id: `${o.id}-paginator-first-slot`
10361
10344
  }, () => [
10362
- (m(), Z("svg", {
10345
+ (m(), a("svg", {
10363
10346
  class: O(["icon icon-tabler icon-tabler-chevron-left-pipe", { "stroke-gray-400": l.value }]),
10364
10347
  fill: "none",
10365
10348
  height: "20",
@@ -10370,19 +10353,19 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10370
10353
  viewBox: "0 0 24 24",
10371
10354
  width: "20",
10372
10355
  xmlns: "http://www.w3.org/2000/svg"
10373
- }, v0, 2))
10356
+ }, k0, 2))
10374
10357
  ])
10375
- ], 8, g0),
10376
- s("button", {
10358
+ ], 8, O0),
10359
+ S("button", {
10377
10360
  id: `${o.id}-paginator-prev`,
10378
10361
  class: "r-pagination__paginator__prev",
10379
10362
  disabled: l.value,
10380
- onClick: r[2] || (r[2] = (S) => n(+C.page - 1))
10363
+ onClick: r[2] || (r[2] = (u) => n(+C.page - 1))
10381
10364
  }, [
10382
- k(o.$slots, "prev", {
10365
+ B(o.$slots, "prev", {
10383
10366
  id: `${o.id}-paginator-prev-slot`
10384
10367
  }, () => [
10385
- (m(), Z("svg", {
10368
+ (m(), a("svg", {
10386
10369
  class: O(["icon icon-tabler icon-tabler-chevron-left", { "stroke-gray-400": l.value }]),
10387
10370
  fill: "none",
10388
10371
  height: "20",
@@ -10393,19 +10376,19 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10393
10376
  viewBox: "0 0 24 24",
10394
10377
  width: "20",
10395
10378
  xmlns: "http://www.w3.org/2000/svg"
10396
- }, T0, 2))
10379
+ }, w0, 2))
10397
10380
  ])
10398
- ], 8, w0),
10399
- s("button", {
10381
+ ], 8, B0),
10382
+ S("button", {
10400
10383
  id: `${o.id}-paginator-next`,
10401
10384
  class: "r-pagination__paginator__next",
10402
10385
  disabled: d.value,
10403
- onClick: r[3] || (r[3] = (S) => n(+C.page + 1))
10386
+ onClick: r[3] || (r[3] = (u) => n(+C.page + 1))
10404
10387
  }, [
10405
- k(o.$slots, "next", {
10388
+ B(o.$slots, "next", {
10406
10389
  id: `${o.id}-paginator-next-slot`
10407
10390
  }, () => [
10408
- (m(), Z("svg", {
10391
+ (m(), a("svg", {
10409
10392
  class: O(["icon icon-tabler icon-tabler-chevron-right", { "stroke-gray-400": d.value }]),
10410
10393
  fill: "none",
10411
10394
  height: "20",
@@ -10416,19 +10399,19 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10416
10399
  viewBox: "0 0 24 24",
10417
10400
  width: "20",
10418
10401
  xmlns: "http://www.w3.org/2000/svg"
10419
- }, D0, 2))
10402
+ }, F0, 2))
10420
10403
  ])
10421
- ], 8, F0),
10422
- s("button", {
10404
+ ], 8, y0),
10405
+ S("button", {
10423
10406
  id: `${o.id}-paginator-last`,
10424
10407
  class: "r-pagination__paginator__last",
10425
10408
  disabled: C.page === L.value,
10426
- onClick: r[4] || (r[4] = (S) => n(L.value))
10409
+ onClick: r[4] || (r[4] = (u) => n(L.value))
10427
10410
  }, [
10428
- k(o.$slots, "last", {
10411
+ B(o.$slots, "last", {
10429
10412
  id: `${o.id}-paginator-last-slot`
10430
10413
  }, () => [
10431
- (m(), Z("svg", {
10414
+ (m(), a("svg", {
10432
10415
  class: O(["icon icon-tabler icon-tabler-chevron-right-pipe", { "stroke-gray-400": d.value }]),
10433
10416
  fill: "none",
10434
10417
  height: "20",
@@ -10439,13 +10422,13 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10439
10422
  viewBox: "0 0 24 24",
10440
10423
  width: "20",
10441
10424
  xmlns: "http://www.w3.org/2000/svg"
10442
- }, N0, 2))
10425
+ }, _0, 2))
10443
10426
  ])
10444
- ], 8, E0)
10445
- ], 8, O0)
10446
- ], 10, p0));
10427
+ ], 8, R0)
10428
+ ], 8, s0)
10429
+ ], 10, S0));
10447
10430
  }
10448
- }), I0 = ["id", "value"], r7 = /* @__PURE__ */ T({
10431
+ }), $0 = ["id", "value"], l7 = /* @__PURE__ */ P({
10449
10432
  __name: "RProgressbar",
10450
10433
  props: {
10451
10434
  value: { default: 0 },
@@ -10454,17 +10437,17 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10454
10437
  },
10455
10438
  setup(H) {
10456
10439
  const V = H;
10457
- return (C, i) => (m(), Z("progress", {
10440
+ return (C, i) => (m(), a("progress", {
10458
10441
  id: C.id,
10459
10442
  "aria-valuemax": 100,
10460
10443
  class: "r-progressbar",
10461
10444
  max: 100,
10462
10445
  role: "progressbar",
10463
- style: Y1({ height: `${V.height}px` }),
10446
+ style: j1({ height: `${V.height}px` }),
10464
10447
  value: V.value
10465
- }, null, 12, I0));
10448
+ }, null, 12, $0));
10466
10449
  }
10467
- }), y1 = "rocket-ui:r-item-group", a7 = /* @__PURE__ */ T({
10450
+ }), w1 = "rocket-ui:r-item-group", o7 = /* @__PURE__ */ P({
10468
10451
  __name: "RItemGroup",
10469
10452
  props: {
10470
10453
  modelValue: { default: () => [] },
@@ -10478,24 +10461,24 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10478
10461
  },
10479
10462
  emits: ["update:modelValue"],
10480
10463
  setup(H, { emit: V }) {
10481
- const C = H, i = V, A = E(C.as ?? "div"), L = E(C.modelValue), M = f(() => C.selectedClass);
10482
- v1(`${y1}:selectedClass`, M.value);
10464
+ const C = H, i = V, A = D(C.as ?? "div"), L = D(C.modelValue), M = f(() => C.selectedClass);
10465
+ b1(`${w1}:selectedClass`, M.value);
10483
10466
  function e(n) {
10484
10467
  return L.value.includes(n);
10485
10468
  }
10486
- v1(`${y1}:isSelected`, e);
10487
- function d(n, u) {
10488
- C.disabled || C.mandatory && L.value.length === 1 && !u || C.max && L.value.length === C.max && u || (C.multiple ? u ? L.value.push(n) : L.value = L.value.filter((o) => o !== n) : L.value = n ? [n] : [], i("update:modelValue", L.value));
10469
+ b1(`${w1}:isSelected`, e);
10470
+ function d(n, Z) {
10471
+ C.disabled || C.mandatory && L.value.length === 1 && !Z || C.max && L.value.length === C.max && Z || (C.multiple ? Z ? L.value.push(n) : L.value = L.value.filter((o) => o !== n) : L.value = n ? [n] : [], i("update:modelValue", L.value));
10489
10472
  }
10490
- v1(`${y1}:select`, d);
10473
+ b1(`${w1}:select`, d);
10491
10474
  function l() {
10492
10475
  return C.disabled;
10493
10476
  }
10494
- return v1(`${y1}:isDisabled`, l), N(() => C.modelValue, () => {
10477
+ return b1(`${w1}:isDisabled`, l), $(() => C.modelValue, () => {
10495
10478
  L.value = C.modelValue;
10496
- }), (n, u) => (m(), D(D2(A.value), { id: n.id }, {
10497
- default: T1(() => [
10498
- k(n.$slots, "default", {
10479
+ }), (n, Z) => (m(), R(F2(A.value), { id: n.id }, {
10480
+ default: P1(() => [
10481
+ B(n.$slots, "default", {
10499
10482
  id: `${n.id}-slot`,
10500
10483
  isSelected: e,
10501
10484
  select: d,
@@ -10505,7 +10488,7 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10505
10488
  _: 3
10506
10489
  }, 8, ["id"]));
10507
10490
  }
10508
- }), P1 = "rocket-ui:r-item-group", Z7 = /* @__PURE__ */ T({
10491
+ }), y1 = "rocket-ui:r-item-group", n7 = /* @__PURE__ */ P({
10509
10492
  __name: "RItem",
10510
10493
  props: {
10511
10494
  value: { default: null },
@@ -10513,14 +10496,14 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10513
10496
  id: { default: "r-item" }
10514
10497
  },
10515
10498
  setup(H) {
10516
- const V = H, C = w1(`${P1}:isSelected`), i = w1(`${P1}:selectedClass`, ""), A = w1(`${P1}:select`), L = w1(`${P1}:isDisabled`), M = f(() => C(V.value) && [i, V.selectedClass]);
10499
+ const V = H, C = v1(`${y1}:isSelected`), i = v1(`${y1}:selectedClass`, ""), A = v1(`${y1}:select`), L = v1(`${y1}:isDisabled`), M = f(() => C(V.value) && [i, V.selectedClass]);
10517
10500
  function e() {
10518
10501
  V.disabled || A(V.value, !C(V.value));
10519
10502
  }
10520
10503
  function d() {
10521
10504
  V.disabled || A(V.value, !0);
10522
10505
  }
10523
- return (l, n) => k(l.$slots, "default", {
10506
+ return (l, n) => B(l.$slots, "default", {
10524
10507
  id: `${l.id}-slot`,
10525
10508
  disabled: A1(L)(V.value),
10526
10509
  isSelected: A1(C)(V.value),
@@ -10529,7 +10512,7 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10529
10512
  toggle: e
10530
10513
  });
10531
10514
  }
10532
- }), Q0 = ["id"], G0 = ["id", "checked", "disabled", "name", "value"], U0 = ["id"], z0 = ["id"], K0 = { class: "flex flex-col" }, q0 = ["id"], j0 = ["id"], X0 = ["id"], u7 = /* @__PURE__ */ T({
10515
+ }), W0 = ["id"], N0 = ["id", "checked", "disabled", "name", "value"], I0 = ["id"], Q0 = ["id"], G0 = { class: "flex flex-col" }, U0 = ["id"], z0 = ["id"], K0 = ["id"], r7 = /* @__PURE__ */ P({
10533
10516
  __name: "RRadio",
10534
10517
  props: {
10535
10518
  id: { default: "" },
@@ -10544,20 +10527,20 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10544
10527
  },
10545
10528
  emits: ["update:modelValue"],
10546
10529
  setup(H) {
10547
- const V = H, C = f(() => V.id || "r-radio"), i = E(V.modelValue), A = f(() => [
10530
+ const V = H, C = f(() => V.id || "r-radio"), i = D(V.modelValue), A = f(() => [
10548
10531
  "r-radio group",
10549
10532
  {
10550
10533
  "r-radio--disabled": V.disabled,
10551
10534
  "r-radio--error": V.errorMsg
10552
10535
  }
10553
10536
  ]);
10554
- return N(() => V.modelValue, (L) => {
10537
+ return $(() => V.modelValue, (L) => {
10555
10538
  i.value = L;
10556
- }, { immediate: !0 }), (L, M) => (m(), Z("div", {
10539
+ }, { immediate: !0 }), (L, M) => (m(), a("div", {
10557
10540
  id: C.value,
10558
10541
  class: O(A.value)
10559
10542
  }, [
10560
- s("input", _1(L.$attrs, {
10543
+ S("input", E1(L.$attrs, {
10561
10544
  id: `${C.value}`,
10562
10545
  checked: i.value,
10563
10546
  class: "r-radio__input",
@@ -10566,62 +10549,62 @@ const V0 = ["id", "aria-disabled", "aria-selected", "disabled"], L0 = { key: 0 }
10566
10549
  type: "radio",
10567
10550
  value: V.value,
10568
10551
  onChange: M[0] || (M[0] = (e) => L.$emit("update:modelValue"))
10569
- }), null, 16, G0),
10570
- s("span", {
10552
+ }), null, 16, N0),
10553
+ S("span", {
10571
10554
  id: `${C.value}`,
10572
10555
  class: O(["r-radio__label", [V.errorMsg && "r-radio__label--error"]]),
10573
10556
  onClick: M[1] || (M[1] = (e) => L.$emit("update:modelValue"))
10574
10557
  }, [
10575
- s("span", {
10558
+ S("span", {
10576
10559
  id: `${C.value}-custom`,
10577
10560
  class: O(["r-radio__custom", [V.errorMsg && "r-radio__custom--error", V.disabled && "r-radio__custom--disabled"]])
10578
- }, null, 10, z0),
10579
- s("div", K0, [
10580
- V.title ? (m(), Z("span", {
10561
+ }, null, 10, Q0),
10562
+ S("div", G0, [
10563
+ V.title ? (m(), a("span", {
10581
10564
  key: 0,
10582
10565
  id: `${C.value}-title`,
10583
10566
  class: O(["r-radio__title", [V.errorMsg && "r-radio__title--error", V.disabled && "r-radio__title--disabled"]])
10584
- }, b(V.title), 11, q0)) : g("", !0),
10585
- s("span", null, b(V.label), 1)
10567
+ }, b(V.title), 11, U0)) : k("", !0),
10568
+ S("span", null, b(V.label), 1)
10586
10569
  ])
10587
- ], 10, U0),
10588
- V.hint && !V.errorMsg ? (m(), Z("span", {
10570
+ ], 10, I0),
10571
+ V.hint && !V.errorMsg ? (m(), a("span", {
10589
10572
  key: 0,
10590
10573
  id: `${C.value}-hint`,
10591
10574
  class: O(["r-radio__hint", [V.disabled && "r-radio__hint--disabled"]])
10592
- }, b(V.hint), 11, j0)) : g("", !0),
10593
- V.errorMsg ? (m(), Z("span", {
10575
+ }, b(V.hint), 11, z0)) : k("", !0),
10576
+ V.errorMsg ? (m(), a("span", {
10594
10577
  key: 1,
10595
10578
  id: `${C.value}-error`,
10596
10579
  class: "r-radio__error"
10597
- }, b(V.errorMsg), 9, X0)) : g("", !0)
10598
- ], 10, Q0));
10580
+ }, b(V.errorMsg), 9, K0)) : k("", !0)
10581
+ ], 10, W0));
10599
10582
  }
10600
10583
  });
10601
10584
  export {
10602
- J0 as RAccordion,
10603
- C7 as RAlert,
10604
- H7 as RAvatar,
10605
- V7 as RBadge,
10606
- o7 as RBreadcrumb,
10607
- L7 as RButton,
10608
- M7 as RCheckbox,
10609
- c5 as RChip,
10610
- F3 as RDropdown,
10611
- R as RIcon,
10612
- Z7 as RItem,
10613
- a7 as RItemGroup,
10614
- w2 as RLabel,
10615
- i7 as RModal,
10616
- n7 as RPagination,
10617
- r7 as RProgressbar,
10618
- u7 as RRadio,
10619
- A7 as RSidebar,
10620
- e7 as RSnackbar,
10621
- d7 as RSwitch,
10622
- M0 as RTabItem,
10623
- t7 as RTabs,
10624
- m7 as RTextArea,
10625
- l7 as RTextfield,
10626
- l3 as RTooltip
10585
+ j0 as RAccordion,
10586
+ X0 as RAlert,
10587
+ Y0 as RAvatar,
10588
+ J0 as RBadge,
10589
+ t7 as RBreadcrumb,
10590
+ C7 as RButton,
10591
+ H7 as RCheckbox,
10592
+ u5 as RChip,
10593
+ y3 as RDropdown,
10594
+ F as RIcon,
10595
+ n7 as RItem,
10596
+ o7 as RItemGroup,
10597
+ B2 as RLabel,
10598
+ V7 as RModal,
10599
+ m7 as RPagination,
10600
+ l7 as RProgressbar,
10601
+ r7 as RRadio,
10602
+ L7 as RSidebar,
10603
+ M7 as RSnackbar,
10604
+ i7 as RSwitch,
10605
+ H0 as RTabItem,
10606
+ A7 as RTabs,
10607
+ e7 as RTextArea,
10608
+ d7 as RTextfield,
10609
+ d3 as RTooltip
10627
10610
  };