@rocketui/vue 0.3.0 → 0.3.1-beta.1

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