@rocketui/vue 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, openBlock as m, createElementBlock as o, createElementVNode as S, unref as L1, reactive as d1, Fragment as H1, renderList as M1, normalizeClass as p, renderSlot as h, toDisplayString as b, createVNode as q, computed as k, createCommentVNode as s, mergeProps as Z2, createBlock as R, watch as G, getCurrentScope as u2, onScopeDispose as S2, ref as E, watchEffect as q1, onMounted as Y1, Teleport as s2, withCtx as n1, withDirectives as X1, withKeys as W1, vModelText as c2, withModifiers as r1, createTextVNode as R1, normalizeStyle as x1, vShow as O2, Transition as p2, resolveComponent as f2, provide as k1, resolveDynamicComponent as h2, inject as B1 } from "vue";
1
+ import { defineComponent as T, openBlock as m, createElementBlock as n, createElementVNode as S, unref as M1, reactive as t1, Fragment as V1, renderList as A1, normalizeClass as p, renderSlot as f, toDisplayString as b, createVNode as $, computed as g, createCommentVNode as c, mergeProps as Z2, createBlock as D, watch as G, getCurrentScope as u2, onScopeDispose as S2, ref as E, watchEffect as q1, onMounted as Y1, Teleport as s2, withCtx as n1, withDirectives as X1, withKeys as W1, vModelText as c2, withModifiers as r1, createTextVNode as R1, normalizeStyle as x1, vShow as O2, Transition as p2, resolveComponent as f2, provide as k1, resolveDynamicComponent as h2, inject as B1 } from "vue";
2
2
  const g2 = {
3
3
  mdiAbTesting: "M4 2A2 2 0 0 0 2 4V12H4V8H6V12H8V4A2 2 0 0 0 6 2H4M4 4H6V6H4M22 15.5V14A2 2 0 0 0 20 12H16V22H20A2 2 0 0 0 22 20V18.5A1.54 1.54 0 0 0 20.5 17A1.54 1.54 0 0 0 22 15.5M20 20H18V18H20V20M20 16H18V14H20M5.79 21.61L4.21 20.39L18.21 2.39L19.79 3.61Z",
4
4
  mdiAbacus: "M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",
@@ -7296,7 +7296,7 @@ const g2 = {
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
- }, k2 = ["height", "viewBox", "width"], B2 = ["d"], x = /* @__PURE__ */ v({
7299
+ }, k2 = ["height", "viewBox", "width"], B2 = ["d"], x = /* @__PURE__ */ T({
7300
7300
  __name: "RIcon",
7301
7301
  props: {
7302
7302
  name: { default: "" },
@@ -7305,38 +7305,38 @@ const g2 = {
7305
7305
  },
7306
7306
  setup(H) {
7307
7307
  const V = H;
7308
- return (C, L) => (m(), o("svg", {
7308
+ return (C, M) => (m(), n("svg", {
7309
7309
  class: "r-icon",
7310
7310
  height: V.size,
7311
7311
  viewBox: V.viewBox,
7312
7312
  width: V.size
7313
7313
  }, [
7314
7314
  S("path", {
7315
- d: L1(g2)[V.name]
7315
+ d: M1(g2)[V.name]
7316
7316
  }, null, 8, B2)
7317
7317
  ], 8, k2));
7318
7318
  }
7319
7319
  });
7320
- const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title" }, P2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, Y3 = /* @__PURE__ */ v({
7320
+ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title" }, P2 = { class: "r-accordion__icon" }, T2 = { class: "r-accordion__content" }, X3 = /* @__PURE__ */ T({
7321
7321
  __name: "RAccordion",
7322
7322
  props: {
7323
7323
  accordions: {}
7324
7324
  },
7325
7325
  setup(H) {
7326
- const V = H, C = d1(
7327
- V.accordions.map(({ title: A, content: M }, i) => ({
7326
+ const V = H, C = t1(
7327
+ V.accordions.map(({ title: A, content: L }, i) => ({
7328
7328
  title: A,
7329
- content: M,
7329
+ content: L,
7330
7330
  open: V.accordions[i].open || !1,
7331
7331
  disabled: V.accordions[i].disabled || !1
7332
7332
  }))
7333
7333
  );
7334
- function L(A) {
7335
- C[A].disabled || C.forEach((M, i) => {
7334
+ function M(A) {
7335
+ C[A].disabled || C.forEach((L, i) => {
7336
7336
  C[i].open = i === A ? !C[i].open : !1;
7337
7337
  });
7338
7338
  }
7339
- return (A, M) => (m(!0), o(H1, null, M1(C, (i, e) => (m(), o("div", {
7339
+ return (A, L) => (m(!0), n(V1, null, A1(C, (i, e) => (m(), n("div", {
7340
7340
  key: e,
7341
7341
  class: p(["r-accordion", {
7342
7342
  "r-accordion--disabled": i.disabled
@@ -7345,17 +7345,17 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7345
7345
  }, [
7346
7346
  S("div", {
7347
7347
  class: "r-accordion__header",
7348
- onClick: (d) => L(e)
7348
+ onClick: (d) => M(e)
7349
7349
  }, [
7350
- h(A.$slots, "title", {}, () => [
7350
+ f(A.$slots, "title", {}, () => [
7351
7351
  S("div", y2, b(i.title), 1)
7352
7352
  ]),
7353
7353
  S("div", P2, [
7354
- q(x, { name: "mdiChevronUp" })
7354
+ $(x, { name: "mdiChevronUp" })
7355
7355
  ])
7356
7356
  ], 8, w2),
7357
7357
  S("div", T2, [
7358
- h(A.$slots, "content", {}, () => [
7358
+ f(A.$slots, "content", {}, () => [
7359
7359
  S("span", null, b(i.content), 1)
7360
7360
  ])
7361
7361
  ])
@@ -7367,7 +7367,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7367
7367
  }, D2 = {
7368
7368
  key: 0,
7369
7369
  class: "r-alert__close"
7370
- }, X3 = /* @__PURE__ */ v({
7370
+ }, J3 = /* @__PURE__ */ T({
7371
7371
  __name: "RAlert",
7372
7372
  props: {
7373
7373
  type: { default: "info" },
@@ -7379,50 +7379,50 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7379
7379
  },
7380
7380
  emits: ["close"],
7381
7381
  setup(H, { emit: V }) {
7382
- const C = H, L = V, A = k(() => ({
7382
+ const C = H, M = V, A = g(() => ({
7383
7383
  " r-alert": !0,
7384
7384
  [`r-alert--${C.variant}`]: !0,
7385
7385
  "r-alert--block": C.block,
7386
7386
  [`r-alert--${C.variant}--${C.type}`]: !0
7387
- })), M = k(() => ({
7387
+ })), L = g(() => ({
7388
7388
  success: "mdiCheckCircle",
7389
7389
  error: "mdiAlertCircle",
7390
7390
  warning: "mdiAlert",
7391
7391
  info: "mdiInformation"
7392
7392
  })[C.type]);
7393
7393
  function i() {
7394
- L("close");
7394
+ M("close");
7395
7395
  }
7396
- return (e, d) => (m(), o("div", {
7396
+ return (e, d) => (m(), n("div", {
7397
7397
  class: p(A.value)
7398
7398
  }, [
7399
7399
  S("div", v2, [
7400
- h(e.$slots, "alert-icon", {}, () => [
7401
- q(x, {
7402
- name: M.value,
7400
+ f(e.$slots, "alert-icon", {}, () => [
7401
+ $(x, {
7402
+ name: L.value,
7403
7403
  size: 24
7404
7404
  }, null, 8, ["name"])
7405
7405
  ])
7406
7406
  ]),
7407
7407
  S("div", F2, [
7408
- h(e.$slots, "content", {}, () => [
7408
+ f(e.$slots, "content", {}, () => [
7409
7409
  S("p", R2, b(C.title), 1),
7410
- C.description ? (m(), o("p", x2, b(C.description), 1)) : s("", !0)
7410
+ C.description ? (m(), n("p", x2, b(C.description), 1)) : c("", !0)
7411
7411
  ])
7412
7412
  ]),
7413
- C.closable ? (m(), o("div", D2, [
7414
- h(e.$slots, "custom-close", {}, () => [
7415
- q(x, {
7413
+ C.closable ? (m(), n("div", D2, [
7414
+ f(e.$slots, "custom-close", {}, () => [
7415
+ $(x, {
7416
7416
  class: "r-alert__close__button",
7417
7417
  name: "mdiClose",
7418
7418
  size: 16,
7419
7419
  onClick: i
7420
7420
  })
7421
7421
  ])
7422
- ])) : s("", !0)
7422
+ ])) : c("", !0)
7423
7423
  ], 2));
7424
7424
  }
7425
- }), I1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", _2 = { class: "r-avatar__wrapper" }, E2 = ["alt", "src"], J3 = /* @__PURE__ */ v({
7425
+ }), I1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyNyAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQ5OTMgMTRDMTcuMTgyNyAxNCAyMC4xNjYgMTEuMDE2NyAyMC4xNjYgNy4zMzMzNEMyMC4xNjYgMy42NSAxNy4xODI3IDAuNjY2NjcyIDEzLjQ5OTMgMC42NjY2NzJDOS44MTYwMiAwLjY2NjY3MiA2LjgzMjY4IDMuNjUgNi44MzI2OCA3LjMzMzM0QzYuODMyNjggMTEuMDE2NyA5LjgxNjAyIDE0IDEzLjQ5OTMgMTRaTTEzLjQ5OTMgMTcuMzMzM0M5LjA0OTM1IDE3LjMzMzMgMC4xNjYwMTYgMTkuNTY2NyAwLjE2NjAxNiAyNFYyNS42NjY3QzAuMTY2MDE2IDI2LjU4MzMgMC45MTYwMTYgMjcuMzMzMyAxLjgzMjY4IDI3LjMzMzNIMjUuMTY2QzI2LjA4MjcgMjcuMzMzMyAyNi44MzI3IDI2LjU4MzMgMjYuODMyNyAyNS42NjY3VjI0QzI2LjgzMjcgMTkuNTY2NyAxNy45NDkzIDE3LjMzMzMgMTMuNDk5MyAxNy4zMzMzWiIgZmlsbD0iIzRDNUJFMSIvPgo8L3N2Zz4K", _2 = { class: "r-avatar__wrapper" }, E2 = ["alt", "src"], C0 = /* @__PURE__ */ T({
7426
7426
  __name: "RAvatar",
7427
7427
  props: {
7428
7428
  type: { default: "image" },
@@ -7433,40 +7433,40 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7433
7433
  text: { default: "" }
7434
7434
  },
7435
7435
  setup(H) {
7436
- const V = H, C = k(() => ({
7436
+ const V = H, C = g(() => ({
7437
7437
  "r-avatar": !0,
7438
7438
  [`r-avatar--${V.size}`]: !0
7439
- })), L = k(() => V.type === "image" && !V.src), A = k(() => L.value ? I1 : V.src);
7440
- function M(i) {
7439
+ })), M = g(() => V.type === "image" && !V.src), A = g(() => M.value ? I1 : V.src);
7440
+ function L(i) {
7441
7441
  const e = i.split(" ");
7442
7442
  return e.length === 1 ? e[0].substring(0, 2) : `${e[0].charAt(0)}${e[1].charAt(0)}`;
7443
7443
  }
7444
- return (i, e) => (m(), o("div", _2, [
7444
+ return (i, e) => (m(), n("div", _2, [
7445
7445
  S("div", {
7446
7446
  class: p(C.value)
7447
7447
  }, [
7448
- V.type === "text" ? (m(), o("p", {
7448
+ V.type === "text" ? (m(), n("p", {
7449
7449
  key: 0,
7450
7450
  class: p(["r-avatar__text", { [`r-avatar__text--${V.size}`]: !0 }])
7451
- }, b(M(V.text)), 3)) : (m(), o("img", {
7451
+ }, b(L(V.text)), 3)) : (m(), n("img", {
7452
7452
  key: 1,
7453
7453
  alt: V.alt,
7454
7454
  class: p(["r-avatar__image", {
7455
7455
  [`r-avatar__image--${V.size}`]: !0,
7456
- "r-avatar__image--anonymous": L.value
7456
+ "r-avatar__image--anonymous": M.value
7457
7457
  }]),
7458
7458
  src: A.value
7459
7459
  }, null, 10, E2))
7460
7460
  ], 2),
7461
- V.online ? (m(), o("span", {
7461
+ V.online ? (m(), n("span", {
7462
7462
  key: 0,
7463
7463
  class: p(["r-avatar__online", {
7464
7464
  [`r-avatar__online--${V.size}`]: !0
7465
7465
  }])
7466
- }, null, 2)) : s("", !0)
7466
+ }, null, 2)) : c("", !0)
7467
7467
  ]));
7468
7468
  }
7469
- }), N2 = { class: "r-badge-wrapper group" }, C0 = /* @__PURE__ */ v({
7469
+ }), N2 = { class: "r-badge-wrapper group" }, H0 = /* @__PURE__ */ T({
7470
7470
  __name: "RBadge",
7471
7471
  props: {
7472
7472
  variant: { default: "primary" },
@@ -7479,7 +7479,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7479
7479
  },
7480
7480
  emits: ["click"],
7481
7481
  setup(H) {
7482
- const V = H, C = k(() => ({
7482
+ const V = H, C = g(() => ({
7483
7483
  "r-badge": !0,
7484
7484
  "r-badge__content": V.content,
7485
7485
  [`r-badge--overlap-${V.placement}`]: V.overlap,
@@ -7489,17 +7489,17 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7489
7489
  [`r-badge--${V.variant}`]: V.variant,
7490
7490
  [V.class]: V.class
7491
7491
  }));
7492
- return (L, A) => (m(), o("div", N2, [
7492
+ return (M, A) => (m(), n("div", N2, [
7493
7493
  S("span", {
7494
7494
  class: p([{ "animate-ping-2": V.animation }, C.value])
7495
7495
  }, null, 2),
7496
7496
  S("span", {
7497
7497
  class: p(C.value)
7498
7498
  }, null, 2),
7499
- h(L.$slots, "default")
7499
+ f(M.$slots, "default")
7500
7500
  ]));
7501
7501
  }
7502
- }), W2 = ["disabled"], H0 = /* @__PURE__ */ v({
7502
+ }), W2 = ["disabled"], V0 = /* @__PURE__ */ T({
7503
7503
  __name: "RButton",
7504
7504
  props: {
7505
7505
  variant: { default: "default" },
@@ -7515,7 +7515,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7515
7515
  },
7516
7516
  emits: ["click"],
7517
7517
  setup(H) {
7518
- const V = H, C = k(() => ({
7518
+ const V = H, C = g(() => ({
7519
7519
  "r-button": !0,
7520
7520
  [`r-button__${V.variant}`]: !0,
7521
7521
  [`r-button__${V.variant}--${V.variant === "default" && V.color === void 0 ? "primary" : V.color}`]: !0,
@@ -7523,37 +7523,37 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7523
7523
  [`r-button--${V.size || "medium"}`]: !0,
7524
7524
  "r-button--only-icon": V.icon,
7525
7525
  "r-button--block": V.block
7526
- })), L = k(() => ({
7526
+ })), M = g(() => ({
7527
7527
  small: 16,
7528
7528
  medium: 16,
7529
7529
  large: 20
7530
- })[V.size || "medium"]), A = k(() => ({
7530
+ })[V.size || "medium"]), A = g(() => ({
7531
7531
  height: V.height ? `${V.height}px` : ""
7532
7532
  }));
7533
- return (M, i) => (m(), o("button", Z2(M.$attrs, {
7533
+ return (L, i) => (m(), n("button", Z2(L.$attrs, {
7534
7534
  class: C.value,
7535
- disabled: M.disabled,
7535
+ disabled: L.disabled,
7536
7536
  style: A.value,
7537
- onClick: i[0] || (i[0] = (e) => M.$emit("click"))
7537
+ onClick: i[0] || (i[0] = (e) => L.$emit("click"))
7538
7538
  }), [
7539
- h(M.$slots, "prepend", {}, () => [
7540
- V.prependIcon ? (m(), R(x, {
7539
+ f(L.$slots, "prepend", {}, () => [
7540
+ V.prependIcon ? (m(), D(x, {
7541
7541
  key: 0,
7542
7542
  class: p(["r-button__prepend-icon", {
7543
7543
  "r-button__prepend-icon--only": V.icon
7544
7544
  }]),
7545
7545
  name: V.prependIcon,
7546
- size: L.value
7547
- }, null, 8, ["class", "name", "size"])) : s("", !0)
7546
+ size: M.value
7547
+ }, null, 8, ["class", "name", "size"])) : c("", !0)
7548
7548
  ]),
7549
- h(M.$slots, "default"),
7550
- h(M.$slots, "append", {}, () => [
7551
- !V.icon && V.appendIcon ? (m(), R(x, {
7549
+ f(L.$slots, "default"),
7550
+ f(L.$slots, "append", {}, () => [
7551
+ !V.icon && V.appendIcon ? (m(), D(x, {
7552
7552
  key: 0,
7553
7553
  class: "r-button__append-icon",
7554
7554
  name: V.appendIcon,
7555
- size: L.value
7556
- }, null, 8, ["name", "size"])) : s("", !0)
7555
+ size: M.value
7556
+ }, null, 8, ["name", "size"])) : c("", !0)
7557
7557
  ])
7558
7558
  ], 16, W2));
7559
7559
  }
@@ -7566,7 +7566,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7566
7566
  }, q2 = {
7567
7567
  key: 1,
7568
7568
  class: "r-checkbox-texts__hint"
7569
- }, V0 = /* @__PURE__ */ v({
7569
+ }, L0 = /* @__PURE__ */ T({
7570
7570
  __name: "RCheckbox",
7571
7571
  props: {
7572
7572
  id: { default: "" },
@@ -7580,14 +7580,14 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7580
7580
  },
7581
7581
  emits: ["update:modelValue"],
7582
7582
  setup(H, { emit: V }) {
7583
- const C = H, L = V, A = d1({
7583
+ const C = H, M = V, A = t1({
7584
7584
  checked: !1,
7585
7585
  indeterminate: !1
7586
- }), M = {
7586
+ }), L = {
7587
7587
  checked: "mdiCheck",
7588
7588
  unchecked: "",
7589
7589
  indeterminate: "mdiMinus"
7590
- }, i = k(() => A.indeterminate ? M.indeterminate : A.checked ? M.checked : M.unchecked), e = k(() => ({
7590
+ }, i = g(() => A.indeterminate ? L.indeterminate : A.checked ? L.checked : L.unchecked), e = g(() => ({
7591
7591
  "r-checkbox": !0,
7592
7592
  "r-checkbox--checked": A.checked,
7593
7593
  "r-checkbox--disabled": C.disabled,
@@ -7595,12 +7595,12 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7595
7595
  "r-checkbox--error": !!C.errorMsg
7596
7596
  }));
7597
7597
  function d(t) {
7598
- C.disabled || (A.checked = t.target.checked, A.indeterminate = !1, L("update:modelValue", A.checked));
7598
+ C.disabled || (A.checked = t.target.checked, A.indeterminate = !1, M("update:modelValue", A.checked));
7599
7599
  }
7600
7600
  return G(
7601
7601
  () => C.indeterminate,
7602
7602
  (t) => {
7603
- A.indeterminate = t, t === !0 && (A.checked = !1, L("update:modelValue", A.checked));
7603
+ A.indeterminate = t, t === !0 && (A.checked = !1, M("update:modelValue", A.checked));
7604
7604
  },
7605
7605
  {
7606
7606
  // need immediate to set the state on first render for storybook
@@ -7617,7 +7617,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7617
7617
  // TODO: find a better way to do this
7618
7618
  immediate: !0
7619
7619
  }
7620
- ), (t, u) => (m(), o("div", I2, [
7620
+ ), (t, u) => (m(), n("div", I2, [
7621
7621
  S("div", Q2, [
7622
7622
  S("input", {
7623
7623
  id: C.id,
@@ -7632,7 +7632,7 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7632
7632
  class: p(e.value),
7633
7633
  "data-disabled": C.disabled
7634
7634
  }, [
7635
- q(x, {
7635
+ $(x, {
7636
7636
  name: i.value,
7637
7637
  size: 24
7638
7638
  }, null, 8, ["name"])
@@ -7644,13 +7644,13 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7644
7644
  "data-disabled": C.disabled,
7645
7645
  for: C.id
7646
7646
  }, b(C.label), 9, $2),
7647
- C.hideDetails ? s("", !0) : (m(), o("div", K2, [
7648
- C.errorMsg ? (m(), o("p", j2, b(C.errorMsg), 1)) : (m(), o("p", q2, b(C.hint), 1))
7647
+ C.hideDetails ? c("", !0) : (m(), n("div", K2, [
7648
+ C.errorMsg ? (m(), n("p", j2, b(C.errorMsg), 1)) : (m(), n("p", q2, b(C.hint), 1))
7649
7649
  ]))
7650
7650
  ])
7651
7651
  ]));
7652
7652
  }
7653
- }), Y2 = { class: "r-chip__content__label" }, X2 = /* @__PURE__ */ v({
7653
+ }), Y2 = { class: "r-chip__content__label" }, X2 = /* @__PURE__ */ T({
7654
7654
  __name: "RChip",
7655
7655
  props: {
7656
7656
  variant: { default: "primary" },
@@ -7663,46 +7663,46 @@ const b2 = ["data-state"], w2 = ["onClick"], y2 = { class: "r-accordion__title"
7663
7663
  },
7664
7664
  emits: ["click:chip", "click:close"],
7665
7665
  setup(H, { emit: V }) {
7666
- const C = H, L = V, A = k(() => ({
7666
+ const C = H, M = V, A = g(() => ({
7667
7667
  "r-chip": !0,
7668
7668
  "r-chip--disabled": C.disabled,
7669
7669
  [`r-chip__${C.variant}`]: C.variant,
7670
7670
  [`r-chip__${C.variant}--ghost`]: C.ghost,
7671
7671
  "r-chip--closable": C.closable
7672
7672
  }));
7673
- function M(e) {
7674
- C.closable && e.stopPropagation(), !C.disabled && L("click:chip", e);
7673
+ function L(e) {
7674
+ C.closable && e.stopPropagation(), !C.disabled && M("click:chip", e);
7675
7675
  }
7676
7676
  function i(e) {
7677
- C.disabled || !C.closable || (e.stopPropagation(), L("click:close", e));
7677
+ C.disabled || !C.closable || (e.stopPropagation(), M("click:close", e));
7678
7678
  }
7679
- return (e, d) => (m(), o("div", {
7679
+ return (e, d) => (m(), n("div", {
7680
7680
  class: p(A.value)
7681
7681
  }, [
7682
7682
  S("div", {
7683
7683
  class: "r-chip__content",
7684
- onClick: d[0] || (d[0] = (t) => M(t))
7684
+ onClick: d[0] || (d[0] = (t) => L(t))
7685
7685
  }, [
7686
- h(e.$slots, "prepend", {}, () => [
7687
- C.prependIcon ? (m(), R(x, {
7686
+ f(e.$slots, "prepend", {}, () => [
7687
+ C.prependIcon ? (m(), D(x, {
7688
7688
  key: 0,
7689
7689
  "aria-disabled": C.disabled,
7690
7690
  class: "r-chip__content__prepend-icon",
7691
7691
  name: C.prependIcon,
7692
7692
  size: 12
7693
- }, null, 8, ["aria-disabled", "name"])) : s("", !0)
7693
+ }, null, 8, ["aria-disabled", "name"])) : c("", !0)
7694
7694
  ]),
7695
7695
  S("span", Y2, b(C.label), 1)
7696
7696
  ]),
7697
- h(e.$slots, "append", {}, () => [
7698
- C.appendIcon ? (m(), R(x, {
7697
+ f(e.$slots, "append", {}, () => [
7698
+ C.appendIcon ? (m(), D(x, {
7699
7699
  key: 0,
7700
7700
  "aria-disabled": C.disabled,
7701
7701
  class: "r-chip__content__append-icon",
7702
7702
  name: C.appendIcon,
7703
7703
  size: 12,
7704
7704
  onClick: d[1] || (d[1] = (t) => i(t))
7705
- }, null, 8, ["aria-disabled", "name"])) : s("", !0)
7705
+ }, null, 8, ["aria-disabled", "name"])) : c("", !0)
7706
7706
  ])
7707
7707
  ], 2));
7708
7708
  }
@@ -7711,9 +7711,11 @@ function J2(H) {
7711
7711
  return u2() ? (S2(H), !0) : !1;
7712
7712
  }
7713
7713
  function J1(H) {
7714
- return typeof H == "function" ? H() : L1(H);
7714
+ return typeof H == "function" ? H() : M1(H);
7715
7715
  }
7716
- const C2 = typeof window < "u" && typeof document < "u", C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", P1 = () => {
7716
+ const C2 = typeof window < "u" && typeof document < "u";
7717
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7718
+ const C5 = Object.prototype.toString, H5 = (H) => C5.call(H) === "[object Object]", P1 = () => {
7717
7719
  }, V5 = /* @__PURE__ */ L5();
7718
7720
  function L5() {
7719
7721
  var H;
@@ -7726,20 +7728,20 @@ function l1(H) {
7726
7728
  }
7727
7729
  const H2 = C2 ? window : void 0;
7728
7730
  function b1(...H) {
7729
- let V, C, L, A;
7730
- if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, L, A] = H, V = H2) : [V, C, L, A] = H, !V)
7731
+ let V, C, M, A;
7732
+ if (typeof H[0] == "string" || Array.isArray(H[0]) ? ([C, M, A] = H, V = H2) : [V, C, M, A] = H, !V)
7731
7733
  return P1;
7732
- Array.isArray(C) || (C = [C]), Array.isArray(L) || (L = [L]);
7733
- const M = [], i = () => {
7734
- M.forEach((u) => u()), M.length = 0;
7735
- }, e = (u, a, n, l) => (u.addEventListener(a, n, l), () => u.removeEventListener(a, n, l)), d = G(
7734
+ Array.isArray(C) || (C = [C]), Array.isArray(M) || (M = [M]);
7735
+ const L = [], i = () => {
7736
+ L.forEach((u) => u()), L.length = 0;
7737
+ }, e = (u, Z, r, o) => (u.addEventListener(Z, r, o), () => u.removeEventListener(Z, r, o)), d = G(
7736
7738
  () => [l1(V), J1(A)],
7737
- ([u, a]) => {
7739
+ ([u, Z]) => {
7738
7740
  if (i(), !u)
7739
7741
  return;
7740
- const n = H5(a) ? { ...a } : a;
7741
- M.push(
7742
- ...C.flatMap((l) => L.map((r) => e(u, l, r, n)))
7742
+ const r = H5(Z) ? { ...Z } : Z;
7743
+ L.push(
7744
+ ...C.flatMap((o) => M.map((a) => e(u, o, a, r)))
7743
7745
  );
7744
7746
  },
7745
7747
  { immediate: !0, flush: "post" }
@@ -7750,44 +7752,44 @@ function b1(...H) {
7750
7752
  }
7751
7753
  let Q1 = !1;
7752
7754
  function M5(H, V, C = {}) {
7753
- const { window: L = H2, ignore: A = [], capture: M = !0, detectIframe: i = !1 } = C;
7754
- if (!L)
7755
+ const { window: M = H2, ignore: A = [], capture: L = !0, detectIframe: i = !1 } = C;
7756
+ if (!M)
7755
7757
  return;
7756
- V5 && !Q1 && (Q1 = !0, Array.from(L.document.body.children).forEach((n) => n.addEventListener("click", P1)), L.document.documentElement.addEventListener("click", P1));
7758
+ V5 && !Q1 && (Q1 = !0, Array.from(M.document.body.children).forEach((r) => r.addEventListener("click", P1)), M.document.documentElement.addEventListener("click", P1));
7757
7759
  let e = !0;
7758
- const d = (n) => A.some((l) => {
7759
- if (typeof l == "string")
7760
- return Array.from(L.document.querySelectorAll(l)).some((r) => r === n.target || n.composedPath().includes(r));
7760
+ const d = (r) => A.some((o) => {
7761
+ if (typeof o == "string")
7762
+ return Array.from(M.document.querySelectorAll(o)).some((a) => a === r.target || r.composedPath().includes(a));
7761
7763
  {
7762
- const r = l1(l);
7763
- return r && (n.target === r || n.composedPath().includes(r));
7764
+ const a = l1(o);
7765
+ return a && (r.target === a || r.composedPath().includes(a));
7764
7766
  }
7765
7767
  }), u = [
7766
- b1(L, "click", (n) => {
7767
- const l = l1(H);
7768
- if (!(!l || l === n.target || n.composedPath().includes(l))) {
7769
- if (n.detail === 0 && (e = !d(n)), !e) {
7768
+ b1(M, "click", (r) => {
7769
+ const o = l1(H);
7770
+ if (!(!o || o === r.target || r.composedPath().includes(o))) {
7771
+ if (r.detail === 0 && (e = !d(r)), !e) {
7770
7772
  e = !0;
7771
7773
  return;
7772
7774
  }
7773
- V(n);
7775
+ V(r);
7774
7776
  }
7775
- }, { passive: !0, capture: M }),
7776
- b1(L, "pointerdown", (n) => {
7777
- const l = l1(H);
7778
- l && (e = !n.composedPath().includes(l) && !d(n));
7777
+ }, { passive: !0, capture: L }),
7778
+ b1(M, "pointerdown", (r) => {
7779
+ const o = l1(H);
7780
+ e = !d(r) && !!(o && !r.composedPath().includes(o));
7779
7781
  }, { passive: !0 }),
7780
- i && b1(L, "blur", (n) => {
7782
+ i && b1(M, "blur", (r) => {
7781
7783
  setTimeout(() => {
7782
- var l;
7783
- const r = l1(H);
7784
- ((l = L.document.activeElement) == null ? void 0 : l.tagName) === "IFRAME" && !(r != null && r.contains(L.document.activeElement)) && V(n);
7784
+ var o;
7785
+ const a = l1(H);
7786
+ ((o = M.document.activeElement) == null ? void 0 : o.tagName) === "IFRAME" && !(a != null && a.contains(M.document.activeElement)) && V(r);
7785
7787
  }, 0);
7786
7788
  })
7787
7789
  ].filter(Boolean);
7788
- return () => u.forEach((n) => n());
7790
+ return () => u.forEach((r) => r());
7789
7791
  }
7790
- const A5 = ["top", "right", "bottom", "left"], a1 = Math.min, A1 = Math.max, s1 = Math.round, X = (H) => ({
7792
+ const A5 = ["top", "right", "bottom", "left"], a1 = Math.min, i1 = Math.max, s1 = Math.round, X = (H) => ({
7791
7793
  x: H,
7792
7794
  y: H
7793
7795
  }), i5 = {
@@ -7800,12 +7802,12 @@ const A5 = ["top", "right", "bottom", "left"], a1 = Math.min, A1 = Math.max, s1
7800
7802
  end: "start"
7801
7803
  };
7802
7804
  function T1(H, V, C) {
7803
- return A1(H, a1(V, C));
7805
+ return i1(H, a1(V, C));
7804
7806
  }
7805
- function t1(H, V) {
7807
+ function m1(H, V) {
7806
7808
  return typeof H == "function" ? H(V) : H;
7807
7809
  }
7808
- function V1(H) {
7810
+ function L1(H) {
7809
7811
  return H.split("-")[0];
7810
7812
  }
7811
7813
  function u1(H) {
@@ -7818,16 +7820,16 @@ function D1(H) {
7818
7820
  return H === "y" ? "height" : "width";
7819
7821
  }
7820
7822
  function f1(H) {
7821
- return ["top", "bottom"].includes(V1(H)) ? "y" : "x";
7823
+ return ["top", "bottom"].includes(L1(H)) ? "y" : "x";
7822
7824
  }
7823
7825
  function _1(H) {
7824
7826
  return V2(f1(H));
7825
7827
  }
7826
7828
  function d5(H, V, C) {
7827
7829
  C === void 0 && (C = !1);
7828
- const L = u1(H), A = _1(H), M = D1(A);
7829
- let i = A === "x" ? L === (C ? "end" : "start") ? "right" : "left" : L === "start" ? "bottom" : "top";
7830
- return V.reference[M] > V.floating[M] && (i = c1(i)), [i, c1(i)];
7830
+ const M = u1(H), A = _1(H), L = D1(A);
7831
+ let i = A === "x" ? M === (C ? "end" : "start") ? "right" : "left" : M === "start" ? "bottom" : "top";
7832
+ return V.reference[L] > V.floating[L] && (i = c1(i)), [i, c1(i)];
7831
7833
  }
7832
7834
  function t5(H) {
7833
7835
  const V = c1(H);
@@ -7837,22 +7839,22 @@ function v1(H) {
7837
7839
  return H.replace(/start|end/g, (V) => e5[V]);
7838
7840
  }
7839
7841
  function m5(H, V, C) {
7840
- const L = ["left", "right"], A = ["right", "left"], M = ["top", "bottom"], i = ["bottom", "top"];
7842
+ const M = ["left", "right"], A = ["right", "left"], L = ["top", "bottom"], i = ["bottom", "top"];
7841
7843
  switch (H) {
7842
7844
  case "top":
7843
7845
  case "bottom":
7844
- return C ? V ? A : L : V ? L : A;
7846
+ return C ? V ? A : M : V ? M : A;
7845
7847
  case "left":
7846
7848
  case "right":
7847
- return V ? M : i;
7849
+ return V ? L : i;
7848
7850
  default:
7849
7851
  return [];
7850
7852
  }
7851
7853
  }
7852
- function l5(H, V, C, L) {
7854
+ function l5(H, V, C, M) {
7853
7855
  const A = u1(H);
7854
- let M = m5(V1(H), C === "start", L);
7855
- return A && (M = M.map((i) => i + "-" + A), V && (M = M.concat(M.map(v1)))), M;
7856
+ let L = m5(L1(H), C === "start", M);
7857
+ return A && (L = L.map((i) => i + "-" + A), V && (L = L.concat(L.map(v1)))), L;
7856
7858
  }
7857
7859
  function c1(H) {
7858
7860
  return H.replace(/left|right|bottom|top/g, (V) => i5[V]);
@@ -7885,83 +7887,83 @@ function O1(H) {
7885
7887
  }
7886
7888
  function G1(H, V, C) {
7887
7889
  let {
7888
- reference: L,
7890
+ reference: M,
7889
7891
  floating: A
7890
7892
  } = H;
7891
- const M = f1(V), i = _1(V), e = D1(i), d = V1(V), t = M === "y", u = L.x + L.width / 2 - A.width / 2, a = L.y + L.height / 2 - A.height / 2, n = L[e] / 2 - A[e] / 2;
7892
- let l;
7893
+ const L = f1(V), i = _1(V), e = D1(i), d = L1(V), t = L === "y", u = M.x + M.width / 2 - A.width / 2, Z = M.y + M.height / 2 - A.height / 2, r = M[e] / 2 - A[e] / 2;
7894
+ let o;
7893
7895
  switch (d) {
7894
7896
  case "top":
7895
- l = {
7897
+ o = {
7896
7898
  x: u,
7897
- y: L.y - A.height
7899
+ y: M.y - A.height
7898
7900
  };
7899
7901
  break;
7900
7902
  case "bottom":
7901
- l = {
7903
+ o = {
7902
7904
  x: u,
7903
- y: L.y + L.height
7905
+ y: M.y + M.height
7904
7906
  };
7905
7907
  break;
7906
7908
  case "right":
7907
- l = {
7908
- x: L.x + L.width,
7909
- y: a
7909
+ o = {
7910
+ x: M.x + M.width,
7911
+ y: Z
7910
7912
  };
7911
7913
  break;
7912
7914
  case "left":
7913
- l = {
7914
- x: L.x - A.width,
7915
- y: a
7915
+ o = {
7916
+ x: M.x - A.width,
7917
+ y: Z
7916
7918
  };
7917
7919
  break;
7918
7920
  default:
7919
- l = {
7920
- x: L.x,
7921
- y: L.y
7921
+ o = {
7922
+ x: M.x,
7923
+ y: M.y
7922
7924
  };
7923
7925
  }
7924
7926
  switch (u1(V)) {
7925
7927
  case "start":
7926
- l[i] -= n * (C && t ? -1 : 1);
7928
+ o[i] -= r * (C && t ? -1 : 1);
7927
7929
  break;
7928
7930
  case "end":
7929
- l[i] += n * (C && t ? -1 : 1);
7931
+ o[i] += r * (C && t ? -1 : 1);
7930
7932
  break;
7931
7933
  }
7932
- return l;
7934
+ return o;
7933
7935
  }
7934
7936
  const n5 = async (H, V, C) => {
7935
7937
  const {
7936
- placement: L = "bottom",
7938
+ placement: M = "bottom",
7937
7939
  strategy: A = "absolute",
7938
- middleware: M = [],
7940
+ middleware: L = [],
7939
7941
  platform: i
7940
- } = C, e = M.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7942
+ } = C, e = L.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(V));
7941
7943
  let t = await i.getElementRects({
7942
7944
  reference: H,
7943
7945
  floating: V,
7944
7946
  strategy: A
7945
7947
  }), {
7946
7948
  x: u,
7947
- y: a
7948
- } = G1(t, L, d), n = L, l = {}, r = 0;
7949
- for (let B = 0; B < e.length; B++) {
7949
+ y: Z
7950
+ } = G1(t, M, d), r = M, o = {}, a = 0;
7951
+ for (let k = 0; k < e.length; k++) {
7950
7952
  const {
7951
- name: g,
7953
+ name: h,
7952
7954
  fn: w
7953
- } = e[B], {
7954
- x: P,
7955
- y: T,
7956
- data: D,
7957
- reset: F
7955
+ } = e[k], {
7956
+ x: y,
7957
+ y: P,
7958
+ data: _,
7959
+ reset: v
7958
7960
  } = await w({
7959
7961
  x: u,
7960
- y: a,
7961
- initialPlacement: L,
7962
- placement: n,
7962
+ y: Z,
7963
+ initialPlacement: M,
7964
+ placement: r,
7963
7965
  strategy: A,
7964
- middlewareData: l,
7966
+ middlewareData: o,
7965
7967
  rects: t,
7966
7968
  platform: i,
7967
7969
  elements: {
@@ -7969,73 +7971,73 @@ const n5 = async (H, V, C) => {
7969
7971
  floating: V
7970
7972
  }
7971
7973
  });
7972
- if (u = P ?? u, a = T ?? a, l = {
7973
- ...l,
7974
- [g]: {
7975
- ...l[g],
7976
- ...D
7974
+ if (u = y ?? u, Z = P ?? Z, o = {
7975
+ ...o,
7976
+ [h]: {
7977
+ ...o[h],
7978
+ ..._
7977
7979
  }
7978
- }, F && r <= 50) {
7979
- r++, typeof F == "object" && (F.placement && (n = F.placement), F.rects && (t = F.rects === !0 ? await i.getElementRects({
7980
+ }, v && a <= 50) {
7981
+ a++, typeof v == "object" && (v.placement && (r = v.placement), v.rects && (t = v.rects === !0 ? await i.getElementRects({
7980
7982
  reference: H,
7981
7983
  floating: V,
7982
7984
  strategy: A
7983
- }) : F.rects), {
7985
+ }) : v.rects), {
7984
7986
  x: u,
7985
- y: a
7986
- } = G1(t, n, d)), B = -1;
7987
+ y: Z
7988
+ } = G1(t, r, d)), k = -1;
7987
7989
  continue;
7988
7990
  }
7989
7991
  }
7990
7992
  return {
7991
7993
  x: u,
7992
- y: a,
7993
- placement: n,
7994
+ y: Z,
7995
+ placement: r,
7994
7996
  strategy: A,
7995
- middlewareData: l
7997
+ middlewareData: o
7996
7998
  };
7997
7999
  };
7998
8000
  async function p1(H, V) {
7999
8001
  var C;
8000
8002
  V === void 0 && (V = {});
8001
8003
  const {
8002
- x: L,
8004
+ x: M,
8003
8005
  y: A,
8004
- platform: M,
8006
+ platform: L,
8005
8007
  rects: i,
8006
8008
  elements: e,
8007
8009
  strategy: d
8008
8010
  } = H, {
8009
8011
  boundary: t = "clippingAncestors",
8010
8012
  rootBoundary: u = "viewport",
8011
- elementContext: a = "floating",
8012
- altBoundary: n = !1,
8013
- padding: l = 0
8014
- } = t1(V, H), r = L2(l), g = e[n ? a === "floating" ? "reference" : "floating" : a], w = O1(await M.getClippingRect({
8015
- element: (C = await (M.isElement == null ? void 0 : M.isElement(g))) == null || C ? g : g.contextElement || await (M.getDocumentElement == null ? void 0 : M.getDocumentElement(e.floating)),
8013
+ elementContext: Z = "floating",
8014
+ altBoundary: r = !1,
8015
+ padding: o = 0
8016
+ } = m1(V, H), a = L2(o), h = e[r ? Z === "floating" ? "reference" : "floating" : Z], w = O1(await L.getClippingRect({
8017
+ element: (C = await (L.isElement == null ? void 0 : L.isElement(h))) == null || C ? h : h.contextElement || await (L.getDocumentElement == null ? void 0 : L.getDocumentElement(e.floating)),
8016
8018
  boundary: t,
8017
8019
  rootBoundary: u,
8018
8020
  strategy: d
8019
- })), P = a === "floating" ? {
8021
+ })), y = Z === "floating" ? {
8020
8022
  ...i.floating,
8021
- x: L,
8023
+ x: M,
8022
8024
  y: A
8023
- } : i.reference, T = await (M.getOffsetParent == null ? void 0 : M.getOffsetParent(e.floating)), D = await (M.isElement == null ? void 0 : M.isElement(T)) ? await (M.getScale == null ? void 0 : M.getScale(T)) || {
8025
+ } : i.reference, P = await (L.getOffsetParent == null ? void 0 : L.getOffsetParent(e.floating)), _ = await (L.isElement == null ? void 0 : L.isElement(P)) ? await (L.getScale == null ? void 0 : L.getScale(P)) || {
8024
8026
  x: 1,
8025
8027
  y: 1
8026
8028
  } : {
8027
8029
  x: 1,
8028
8030
  y: 1
8029
- }, F = O1(M.convertOffsetParentRelativeRectToViewportRelativeRect ? await M.convertOffsetParentRelativeRectToViewportRelativeRect({
8030
- rect: P,
8031
- offsetParent: T,
8031
+ }, v = O1(L.convertOffsetParentRelativeRectToViewportRelativeRect ? await L.convertOffsetParentRelativeRectToViewportRelativeRect({
8032
+ rect: y,
8033
+ offsetParent: P,
8032
8034
  strategy: d
8033
- }) : P);
8035
+ }) : y);
8034
8036
  return {
8035
- top: (w.top - F.top + r.top) / D.y,
8036
- bottom: (F.bottom - w.bottom + r.bottom) / D.y,
8037
- left: (w.left - F.left + r.left) / D.x,
8038
- right: (F.right - w.right + r.right) / D.x
8037
+ top: (w.top - v.top + a.top) / _.y,
8038
+ bottom: (v.bottom - w.bottom + a.bottom) / _.y,
8039
+ left: (w.left - v.left + a.left) / _.x,
8040
+ right: (v.right - w.right + a.right) / _.x
8039
8041
  };
8040
8042
  }
8041
8043
  const r5 = (H) => ({
@@ -8044,32 +8046,32 @@ const r5 = (H) => ({
8044
8046
  async fn(V) {
8045
8047
  const {
8046
8048
  x: C,
8047
- y: L,
8049
+ y: M,
8048
8050
  placement: A,
8049
- rects: M,
8051
+ rects: L,
8050
8052
  platform: i,
8051
8053
  elements: e,
8052
8054
  middlewareData: d
8053
8055
  } = V, {
8054
8056
  element: t,
8055
8057
  padding: u = 0
8056
- } = t1(H, V) || {};
8058
+ } = m1(H, V) || {};
8057
8059
  if (t == null)
8058
8060
  return {};
8059
- const a = L2(u), n = {
8061
+ const Z = L2(u), r = {
8060
8062
  x: C,
8061
- y: L
8062
- }, l = _1(A), r = D1(l), B = await i.getDimensions(t), g = l === "y", w = g ? "top" : "left", P = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", D = M.reference[r] + M.reference[l] - n[l] - M.floating[r], F = n[l] - M.reference[l], c = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8063
- let f = c ? c[T] : 0;
8064
- (!f || !await (i.isElement == null ? void 0 : i.isElement(c))) && (f = e.floating[T] || M.floating[r]);
8065
- const Z = D / 2 - F / 2, y = f / 2 - B[r] / 2 - 1, O = a1(a[w], y), _ = a1(a[P], y), N = O, m1 = f - B[r] - _, W = f / 2 - B[r] / 2 + Z, z = T1(N, W, m1), U = !d.arrow && u1(A) != null && W != z && M.reference[r] / 2 - (W < N ? O : _) - B[r] / 2 < 0, K = U ? W < N ? W - N : W - m1 : 0;
8063
+ y: M
8064
+ }, o = _1(A), a = D1(o), k = await i.getDimensions(t), h = o === "y", w = h ? "top" : "left", y = h ? "bottom" : "right", P = h ? "clientHeight" : "clientWidth", _ = L.reference[a] + L.reference[o] - r[o] - L.floating[a], v = r[o] - L.reference[o], Q = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(t));
8065
+ let s = Q ? Q[P] : 0;
8066
+ (!s || !await (i.isElement == null ? void 0 : i.isElement(Q))) && (s = e.floating[P] || L.floating[a]);
8067
+ const l = _ / 2 - v / 2, B = s / 2 - k[a] / 2 - 1, F = a1(Z[w], B), O = a1(Z[y], B), R = F, H1 = s - k[a] - O, N = s / 2 - k[a] / 2 + l, z = T1(R, N, H1), U = !d.arrow && u1(A) != null && N != z && L.reference[a] / 2 - (N < R ? F : O) - k[a] / 2 < 0, j = U ? N < R ? N - R : N - H1 : 0;
8066
8068
  return {
8067
- [l]: n[l] + K,
8069
+ [o]: r[o] + j,
8068
8070
  data: {
8069
- [l]: z,
8070
- centerOffset: W - z - K,
8071
+ [o]: z,
8072
+ centerOffset: N - z - j,
8071
8073
  ...U && {
8072
- alignmentOffset: K
8074
+ alignmentOffset: j
8073
8075
  }
8074
8076
  },
8075
8077
  reset: U
@@ -8080,66 +8082,66 @@ const r5 = (H) => ({
8080
8082
  name: "flip",
8081
8083
  options: H,
8082
8084
  async fn(V) {
8083
- var C, L;
8085
+ var C, M;
8084
8086
  const {
8085
8087
  placement: A,
8086
- middlewareData: M,
8088
+ middlewareData: L,
8087
8089
  rects: i,
8088
8090
  initialPlacement: e,
8089
8091
  platform: d,
8090
8092
  elements: t
8091
8093
  } = V, {
8092
8094
  mainAxis: u = !0,
8093
- crossAxis: a = !0,
8094
- fallbackPlacements: n,
8095
- fallbackStrategy: l = "bestFit",
8096
- fallbackAxisSideDirection: r = "none",
8097
- flipAlignment: B = !0,
8098
- ...g
8099
- } = t1(H, V);
8100
- if ((C = M.arrow) != null && C.alignmentOffset)
8095
+ crossAxis: Z = !0,
8096
+ fallbackPlacements: r,
8097
+ fallbackStrategy: o = "bestFit",
8098
+ fallbackAxisSideDirection: a = "none",
8099
+ flipAlignment: k = !0,
8100
+ ...h
8101
+ } = m1(H, V);
8102
+ if ((C = L.arrow) != null && C.alignmentOffset)
8101
8103
  return {};
8102
- const w = V1(A), P = V1(e) === e, T = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), D = n || (P || !B ? [c1(e)] : t5(e));
8103
- !n && r !== "none" && D.push(...l5(e, B, r, T));
8104
- const F = [e, ...D], c = await p1(V, g), f = [];
8105
- let Z = ((L = M.flip) == null ? void 0 : L.overflows) || [];
8106
- if (u && f.push(c[w]), a) {
8107
- const N = d5(A, i, T);
8108
- f.push(c[N[0]], c[N[1]]);
8104
+ const w = L1(A), y = L1(e) === e, P = await (d.isRTL == null ? void 0 : d.isRTL(t.floating)), _ = r || (y || !k ? [c1(e)] : t5(e));
8105
+ !r && a !== "none" && _.push(...l5(e, k, a, P));
8106
+ const v = [e, ..._], Q = await p1(V, h), s = [];
8107
+ let l = ((M = L.flip) == null ? void 0 : M.overflows) || [];
8108
+ if (u && s.push(Q[w]), Z) {
8109
+ const R = d5(A, i, P);
8110
+ s.push(Q[R[0]], Q[R[1]]);
8109
8111
  }
8110
- if (Z = [...Z, {
8112
+ if (l = [...l, {
8111
8113
  placement: A,
8112
- overflows: f
8113
- }], !f.every((N) => N <= 0)) {
8114
- var y, O;
8115
- const N = (((y = M.flip) == null ? void 0 : y.index) || 0) + 1, m1 = F[N];
8116
- if (m1)
8114
+ overflows: s
8115
+ }], !s.every((R) => R <= 0)) {
8116
+ var B, F;
8117
+ const R = (((B = L.flip) == null ? void 0 : B.index) || 0) + 1, H1 = v[R];
8118
+ if (H1)
8117
8119
  return {
8118
8120
  data: {
8119
- index: N,
8120
- overflows: Z
8121
+ index: R,
8122
+ overflows: l
8121
8123
  },
8122
8124
  reset: {
8123
- placement: m1
8125
+ placement: H1
8124
8126
  }
8125
8127
  };
8126
- let W = (O = Z.filter((z) => z.overflows[0] <= 0).sort((z, U) => z.overflows[1] - U.overflows[1])[0]) == null ? void 0 : O.placement;
8127
- if (!W)
8128
- switch (l) {
8128
+ let N = (F = l.filter((z) => z.overflows[0] <= 0).sort((z, U) => z.overflows[1] - U.overflows[1])[0]) == null ? void 0 : F.placement;
8129
+ if (!N)
8130
+ switch (o) {
8129
8131
  case "bestFit": {
8130
- var _;
8131
- const z = (_ = Z.map((U) => [U.placement, U.overflows.filter((K) => K > 0).reduce((K, a2) => K + a2, 0)]).sort((U, K) => U[1] - K[1])[0]) == null ? void 0 : _[0];
8132
- z && (W = z);
8132
+ var O;
8133
+ const z = (O = l.map((U) => [U.placement, U.overflows.filter((j) => j > 0).reduce((j, a2) => j + a2, 0)]).sort((U, j) => U[1] - j[1])[0]) == null ? void 0 : O[0];
8134
+ z && (N = z);
8133
8135
  break;
8134
8136
  }
8135
8137
  case "initialPlacement":
8136
- W = e;
8138
+ N = e;
8137
8139
  break;
8138
8140
  }
8139
- if (A !== W)
8141
+ if (A !== N)
8140
8142
  return {
8141
8143
  reset: {
8142
- placement: W
8144
+ placement: N
8143
8145
  }
8144
8146
  };
8145
8147
  }
@@ -8166,15 +8168,15 @@ const Z5 = function(H) {
8166
8168
  const {
8167
8169
  rects: C
8168
8170
  } = V, {
8169
- strategy: L = "referenceHidden",
8171
+ strategy: M = "referenceHidden",
8170
8172
  ...A
8171
- } = t1(H, V);
8172
- switch (L) {
8173
+ } = m1(H, V);
8174
+ switch (M) {
8173
8175
  case "referenceHidden": {
8174
- const M = await p1(V, {
8176
+ const L = await p1(V, {
8175
8177
  ...A,
8176
8178
  elementContext: "reference"
8177
- }), i = z1(M, C.reference);
8179
+ }), i = z1(L, C.reference);
8178
8180
  return {
8179
8181
  data: {
8180
8182
  referenceHiddenOffsets: i,
@@ -8183,10 +8185,10 @@ const Z5 = function(H) {
8183
8185
  };
8184
8186
  }
8185
8187
  case "escaped": {
8186
- const M = await p1(V, {
8188
+ const L = await p1(V, {
8187
8189
  ...A,
8188
8190
  altBoundary: !0
8189
- }), i = z1(M, C.floating);
8191
+ }), i = z1(L, C.floating);
8190
8192
  return {
8191
8193
  data: {
8192
8194
  escapedOffsets: i,
@@ -8203,29 +8205,29 @@ const Z5 = function(H) {
8203
8205
  async function u5(H, V) {
8204
8206
  const {
8205
8207
  placement: C,
8206
- platform: L,
8208
+ platform: M,
8207
8209
  elements: A
8208
- } = H, M = await (L.isRTL == null ? void 0 : L.isRTL(A.floating)), i = V1(C), e = u1(C), d = f1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, u = M && d ? -1 : 1, a = t1(V, H);
8210
+ } = H, L = await (M.isRTL == null ? void 0 : M.isRTL(A.floating)), i = L1(C), e = u1(C), d = f1(C) === "y", t = ["left", "top"].includes(i) ? -1 : 1, u = L && d ? -1 : 1, Z = m1(V, H);
8209
8211
  let {
8210
- mainAxis: n,
8211
- crossAxis: l,
8212
- alignmentAxis: r
8213
- } = typeof a == "number" ? {
8214
- mainAxis: a,
8212
+ mainAxis: r,
8213
+ crossAxis: o,
8214
+ alignmentAxis: a
8215
+ } = typeof Z == "number" ? {
8216
+ mainAxis: Z,
8215
8217
  crossAxis: 0,
8216
8218
  alignmentAxis: null
8217
8219
  } : {
8218
8220
  mainAxis: 0,
8219
8221
  crossAxis: 0,
8220
8222
  alignmentAxis: null,
8221
- ...a
8223
+ ...Z
8222
8224
  };
8223
- return e && typeof r == "number" && (l = e === "end" ? r * -1 : r), d ? {
8224
- x: l * u,
8225
- y: n * t
8225
+ return e && typeof a == "number" && (o = e === "end" ? a * -1 : a), d ? {
8226
+ x: o * u,
8227
+ y: r * t
8226
8228
  } : {
8227
- x: n * t,
8228
- y: l * u
8229
+ x: r * t,
8230
+ y: o * u
8229
8231
  };
8230
8232
  }
8231
8233
  const S5 = function(H) {
@@ -8235,11 +8237,11 @@ const S5 = function(H) {
8235
8237
  async fn(V) {
8236
8238
  const {
8237
8239
  x: C,
8238
- y: L
8240
+ y: M
8239
8241
  } = V, A = await u5(V, H);
8240
8242
  return {
8241
8243
  x: C + A.x,
8242
- y: L + A.y,
8244
+ y: M + A.y,
8243
8245
  data: A
8244
8246
  };
8245
8247
  }
@@ -8251,47 +8253,47 @@ const S5 = function(H) {
8251
8253
  async fn(V) {
8252
8254
  const {
8253
8255
  x: C,
8254
- y: L,
8256
+ y: M,
8255
8257
  placement: A
8256
8258
  } = V, {
8257
- mainAxis: M = !0,
8259
+ mainAxis: L = !0,
8258
8260
  crossAxis: i = !1,
8259
8261
  limiter: e = {
8260
- fn: (g) => {
8262
+ fn: (h) => {
8261
8263
  let {
8262
8264
  x: w,
8263
- y: P
8264
- } = g;
8265
+ y
8266
+ } = h;
8265
8267
  return {
8266
8268
  x: w,
8267
- y: P
8269
+ y
8268
8270
  };
8269
8271
  }
8270
8272
  },
8271
8273
  ...d
8272
- } = t1(H, V), t = {
8274
+ } = m1(H, V), t = {
8273
8275
  x: C,
8274
- y: L
8275
- }, u = await p1(V, d), a = f1(V1(A)), n = V2(a);
8276
- let l = t[n], r = t[a];
8277
- if (M) {
8278
- const g = n === "y" ? "top" : "left", w = n === "y" ? "bottom" : "right", P = l + u[g], T = l - u[w];
8279
- l = T1(P, l, T);
8276
+ y: M
8277
+ }, u = await p1(V, d), Z = f1(L1(A)), r = V2(Z);
8278
+ let o = t[r], a = t[Z];
8279
+ if (L) {
8280
+ const h = r === "y" ? "top" : "left", w = r === "y" ? "bottom" : "right", y = o + u[h], P = o - u[w];
8281
+ o = T1(y, o, P);
8280
8282
  }
8281
8283
  if (i) {
8282
- const g = a === "y" ? "top" : "left", w = a === "y" ? "bottom" : "right", P = r + u[g], T = r - u[w];
8283
- r = T1(P, r, T);
8284
+ const h = Z === "y" ? "top" : "left", w = Z === "y" ? "bottom" : "right", y = a + u[h], P = a - u[w];
8285
+ a = T1(y, a, P);
8284
8286
  }
8285
- const B = e.fn({
8287
+ const k = e.fn({
8286
8288
  ...V,
8287
- [n]: l,
8288
- [a]: r
8289
+ [r]: o,
8290
+ [Z]: a
8289
8291
  });
8290
8292
  return {
8291
- ...B,
8293
+ ...k,
8292
8294
  data: {
8293
- x: B.x - C,
8294
- y: B.y - L
8295
+ x: k.x - C,
8296
+ y: k.y - M
8295
8297
  }
8296
8298
  };
8297
8299
  }
@@ -8300,7 +8302,7 @@ const S5 = function(H) {
8300
8302
  function J(H) {
8301
8303
  return M2(H) ? (H.nodeName || "").toLowerCase() : "#document";
8302
8304
  }
8303
- function I(H) {
8305
+ function W(H) {
8304
8306
  var V;
8305
8307
  return (H == null || (V = H.ownerDocument) == null ? void 0 : V.defaultView) || window;
8306
8308
  }
@@ -8309,39 +8311,39 @@ function C1(H) {
8309
8311
  return (V = (M2(H) ? H.ownerDocument : H.document) || window.document) == null ? void 0 : V.documentElement;
8310
8312
  }
8311
8313
  function M2(H) {
8312
- return H instanceof Node || H instanceof I(H).Node;
8314
+ return H instanceof Node || H instanceof W(H).Node;
8313
8315
  }
8314
8316
  function Y(H) {
8315
- return H instanceof Element || H instanceof I(H).Element;
8317
+ return H instanceof Element || H instanceof W(H).Element;
8316
8318
  }
8317
- function $(H) {
8318
- return H instanceof HTMLElement || H instanceof I(H).HTMLElement;
8319
+ function K(H) {
8320
+ return H instanceof HTMLElement || H instanceof W(H).HTMLElement;
8319
8321
  }
8320
8322
  function $1(H) {
8321
- return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof I(H).ShadowRoot;
8323
+ return typeof ShadowRoot > "u" ? !1 : H instanceof ShadowRoot || H instanceof W(H).ShadowRoot;
8322
8324
  }
8323
8325
  function S1(H) {
8324
8326
  const {
8325
8327
  overflow: V,
8326
8328
  overflowX: C,
8327
- overflowY: L,
8329
+ overflowY: M,
8328
8330
  display: A
8329
- } = Q(H);
8330
- return /auto|scroll|overlay|hidden|clip/.test(V + L + C) && !["inline", "contents"].includes(A);
8331
+ } = I(H);
8332
+ return /auto|scroll|overlay|hidden|clip/.test(V + M + C) && !["inline", "contents"].includes(A);
8331
8333
  }
8332
8334
  function c5(H) {
8333
8335
  return ["table", "td", "th"].includes(J(H));
8334
8336
  }
8335
8337
  function E1(H) {
8336
- const V = N1(), C = Q(H);
8337
- return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((L) => (C.willChange || "").includes(L)) || ["paint", "layout", "strict", "content"].some((L) => (C.contain || "").includes(L));
8338
+ const V = N1(), C = I(H);
8339
+ return C.transform !== "none" || C.perspective !== "none" || (C.containerType ? C.containerType !== "normal" : !1) || !V && (C.backdropFilter ? C.backdropFilter !== "none" : !1) || !V && (C.filter ? C.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((M) => (C.willChange || "").includes(M)) || ["paint", "layout", "strict", "content"].some((M) => (C.contain || "").includes(M));
8338
8340
  }
8339
8341
  function O5(H) {
8340
- let V = e1(H);
8341
- for (; $(V) && !h1(V); ) {
8342
+ let V = d1(H);
8343
+ for (; K(V) && !h1(V); ) {
8342
8344
  if (E1(V))
8343
8345
  return V;
8344
- V = e1(V);
8346
+ V = d1(V);
8345
8347
  }
8346
8348
  return null;
8347
8349
  }
@@ -8351,8 +8353,8 @@ function N1() {
8351
8353
  function h1(H) {
8352
8354
  return ["html", "body", "#document"].includes(J(H));
8353
8355
  }
8354
- function Q(H) {
8355
- return I(H).getComputedStyle(H);
8356
+ function I(H) {
8357
+ return W(H).getComputedStyle(H);
8356
8358
  }
8357
8359
  function g1(H) {
8358
8360
  return Y(H) ? {
@@ -8363,7 +8365,7 @@ function g1(H) {
8363
8365
  scrollTop: H.pageYOffset
8364
8366
  };
8365
8367
  }
8366
- function e1(H) {
8368
+ function d1(H) {
8367
8369
  if (J(H) === "html")
8368
8370
  return H;
8369
8371
  const V = (
@@ -8376,38 +8378,38 @@ function e1(H) {
8376
8378
  return $1(V) ? V.host : V;
8377
8379
  }
8378
8380
  function A2(H) {
8379
- const V = e1(H);
8380
- return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : $(V) && S1(V) ? V : A2(V);
8381
+ const V = d1(H);
8382
+ return h1(V) ? H.ownerDocument ? H.ownerDocument.body : H.body : K(V) && S1(V) ? V : A2(V);
8381
8383
  }
8382
8384
  function F1(H, V, C) {
8383
- var L;
8385
+ var M;
8384
8386
  V === void 0 && (V = []), C === void 0 && (C = !0);
8385
- const A = A2(H), M = A === ((L = H.ownerDocument) == null ? void 0 : L.body), i = I(A);
8386
- return M ? V.concat(i, i.visualViewport || [], S1(A) ? A : [], i.frameElement && C ? F1(i.frameElement) : []) : V.concat(A, F1(A, [], C));
8387
+ const A = A2(H), L = A === ((M = H.ownerDocument) == null ? void 0 : M.body), i = W(A);
8388
+ return L ? V.concat(i, i.visualViewport || [], S1(A) ? A : [], i.frameElement && C ? F1(i.frameElement) : []) : V.concat(A, F1(A, [], C));
8387
8389
  }
8388
8390
  function i2(H) {
8389
- const V = Q(H);
8390
- let C = parseFloat(V.width) || 0, L = parseFloat(V.height) || 0;
8391
- const A = $(H), M = A ? H.offsetWidth : C, i = A ? H.offsetHeight : L, e = s1(C) !== M || s1(L) !== i;
8392
- return e && (C = M, L = i), {
8391
+ const V = I(H);
8392
+ let C = parseFloat(V.width) || 0, M = parseFloat(V.height) || 0;
8393
+ const A = K(H), L = A ? H.offsetWidth : C, i = A ? H.offsetHeight : M, e = s1(C) !== L || s1(M) !== i;
8394
+ return e && (C = L, M = i), {
8393
8395
  width: C,
8394
- height: L,
8396
+ height: M,
8395
8397
  $: e
8396
8398
  };
8397
8399
  }
8398
8400
  function e2(H) {
8399
8401
  return Y(H) ? H : H.contextElement;
8400
8402
  }
8401
- function i1(H) {
8403
+ function e1(H) {
8402
8404
  const V = e2(H);
8403
- if (!$(V))
8405
+ if (!K(V))
8404
8406
  return X(1);
8405
8407
  const C = V.getBoundingClientRect(), {
8406
- width: L,
8408
+ width: M,
8407
8409
  height: A,
8408
- $: M
8410
+ $: L
8409
8411
  } = i2(V);
8410
- let i = (M ? s1(C.width) : C.width) / L, e = (M ? s1(C.height) : C.height) / A;
8412
+ let i = (L ? s1(C.width) : C.width) / M, e = (L ? s1(C.height) : C.height) / A;
8411
8413
  return (!i || !Number.isFinite(i)) && (i = 1), (!e || !Number.isFinite(e)) && (e = 1), {
8412
8414
  x: i,
8413
8415
  y: e
@@ -8415,33 +8417,33 @@ function i1(H) {
8415
8417
  }
8416
8418
  const p5 = /* @__PURE__ */ X(0);
8417
8419
  function d2(H) {
8418
- const V = I(H);
8420
+ const V = W(H);
8419
8421
  return !N1() || !V.visualViewport ? p5 : {
8420
8422
  x: V.visualViewport.offsetLeft,
8421
8423
  y: V.visualViewport.offsetTop
8422
8424
  };
8423
8425
  }
8424
8426
  function f5(H, V, C) {
8425
- return V === void 0 && (V = !1), !C || V && C !== I(H) ? !1 : V;
8427
+ return V === void 0 && (V = !1), !C || V && C !== W(H) ? !1 : V;
8426
8428
  }
8427
- function Z1(H, V, C, L) {
8429
+ function Z1(H, V, C, M) {
8428
8430
  V === void 0 && (V = !1), C === void 0 && (C = !1);
8429
- const A = H.getBoundingClientRect(), M = e2(H);
8431
+ const A = H.getBoundingClientRect(), L = e2(H);
8430
8432
  let i = X(1);
8431
- V && (L ? Y(L) && (i = i1(L)) : i = i1(H));
8432
- const e = f5(M, C, L) ? d2(M) : X(0);
8433
- let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, u = A.width / i.x, a = A.height / i.y;
8434
- if (M) {
8435
- const n = I(M), l = L && Y(L) ? I(L) : L;
8436
- let r = n.frameElement;
8437
- for (; r && L && l !== n; ) {
8438
- const B = i1(r), g = r.getBoundingClientRect(), w = Q(r), P = g.left + (r.clientLeft + parseFloat(w.paddingLeft)) * B.x, T = g.top + (r.clientTop + parseFloat(w.paddingTop)) * B.y;
8439
- d *= B.x, t *= B.y, u *= B.x, a *= B.y, d += P, t += T, r = I(r).frameElement;
8433
+ V && (M ? Y(M) && (i = e1(M)) : i = e1(H));
8434
+ const e = f5(L, C, M) ? d2(L) : X(0);
8435
+ let d = (A.left + e.x) / i.x, t = (A.top + e.y) / i.y, u = A.width / i.x, Z = A.height / i.y;
8436
+ if (L) {
8437
+ const r = W(L), o = M && Y(M) ? W(M) : M;
8438
+ let a = r.frameElement;
8439
+ for (; a && M && o !== r; ) {
8440
+ const k = e1(a), h = a.getBoundingClientRect(), w = I(a), y = h.left + (a.clientLeft + parseFloat(w.paddingLeft)) * k.x, P = h.top + (a.clientTop + parseFloat(w.paddingTop)) * k.y;
8441
+ d *= k.x, t *= k.y, u *= k.x, Z *= k.y, d += y, t += P, a = W(a).frameElement;
8440
8442
  }
8441
8443
  }
8442
8444
  return O1({
8443
8445
  width: u,
8444
- height: a,
8446
+ height: Z,
8445
8447
  x: d,
8446
8448
  y: t
8447
8449
  });
@@ -8450,19 +8452,19 @@ function h5(H) {
8450
8452
  let {
8451
8453
  rect: V,
8452
8454
  offsetParent: C,
8453
- strategy: L
8455
+ strategy: M
8454
8456
  } = H;
8455
- const A = $(C), M = C1(C);
8456
- if (C === M)
8457
+ const A = K(C), L = C1(C);
8458
+ if (C === L)
8457
8459
  return V;
8458
8460
  let i = {
8459
8461
  scrollLeft: 0,
8460
8462
  scrollTop: 0
8461
8463
  }, e = X(1);
8462
8464
  const d = X(0);
8463
- if ((A || !A && L !== "fixed") && ((J(C) !== "body" || S1(M)) && (i = g1(C)), $(C))) {
8465
+ if ((A || !A && M !== "fixed") && ((J(C) !== "body" || S1(L)) && (i = g1(C)), K(C))) {
8464
8466
  const t = Z1(C);
8465
- e = i1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
8467
+ e = e1(C), d.x = t.x + C.clientLeft, d.y = t.y + C.clientTop;
8466
8468
  }
8467
8469
  return {
8468
8470
  width: V.width * e.x,
@@ -8478,33 +8480,33 @@ function t2(H) {
8478
8480
  return Z1(C1(H)).left + g1(H).scrollLeft;
8479
8481
  }
8480
8482
  function k5(H) {
8481
- const V = C1(H), C = g1(H), L = H.ownerDocument.body, A = A1(V.scrollWidth, V.clientWidth, L.scrollWidth, L.clientWidth), M = A1(V.scrollHeight, V.clientHeight, L.scrollHeight, L.clientHeight);
8483
+ const V = C1(H), C = g1(H), M = H.ownerDocument.body, A = i1(V.scrollWidth, V.clientWidth, M.scrollWidth, M.clientWidth), L = i1(V.scrollHeight, V.clientHeight, M.scrollHeight, M.clientHeight);
8482
8484
  let i = -C.scrollLeft + t2(H);
8483
8485
  const e = -C.scrollTop;
8484
- return Q(L).direction === "rtl" && (i += A1(V.clientWidth, L.clientWidth) - A), {
8486
+ return I(M).direction === "rtl" && (i += i1(V.clientWidth, M.clientWidth) - A), {
8485
8487
  width: A,
8486
- height: M,
8488
+ height: L,
8487
8489
  x: i,
8488
8490
  y: e
8489
8491
  };
8490
8492
  }
8491
8493
  function B5(H, V) {
8492
- const C = I(H), L = C1(H), A = C.visualViewport;
8493
- let M = L.clientWidth, i = L.clientHeight, e = 0, d = 0;
8494
+ const C = W(H), M = C1(H), A = C.visualViewport;
8495
+ let L = M.clientWidth, i = M.clientHeight, e = 0, d = 0;
8494
8496
  if (A) {
8495
- M = A.width, i = A.height;
8497
+ L = A.width, i = A.height;
8496
8498
  const t = N1();
8497
8499
  (!t || t && V === "fixed") && (e = A.offsetLeft, d = A.offsetTop);
8498
8500
  }
8499
8501
  return {
8500
- width: M,
8502
+ width: L,
8501
8503
  height: i,
8502
8504
  x: e,
8503
8505
  y: d
8504
8506
  };
8505
8507
  }
8506
8508
  function b5(H, V) {
8507
- const C = Z1(H, !0, V === "fixed"), L = C.top + H.clientTop, A = C.left + H.clientLeft, M = $(H) ? i1(H) : X(1), i = H.clientWidth * M.x, e = H.clientHeight * M.y, d = A * M.x, t = L * M.y;
8509
+ const C = Z1(H, !0, V === "fixed"), M = C.top + H.clientTop, A = C.left + H.clientLeft, L = K(H) ? e1(H) : X(1), i = H.clientWidth * L.x, e = H.clientHeight * L.y, d = A * L.x, t = M * L.y;
8508
8510
  return {
8509
8511
  width: i,
8510
8512
  height: e,
@@ -8513,50 +8515,50 @@ function b5(H, V) {
8513
8515
  };
8514
8516
  }
8515
8517
  function K1(H, V, C) {
8516
- let L;
8518
+ let M;
8517
8519
  if (V === "viewport")
8518
- L = B5(H, C);
8520
+ M = B5(H, C);
8519
8521
  else if (V === "document")
8520
- L = k5(C1(H));
8522
+ M = k5(C1(H));
8521
8523
  else if (Y(V))
8522
- L = b5(V, C);
8524
+ M = b5(V, C);
8523
8525
  else {
8524
8526
  const A = d2(H);
8525
- L = {
8527
+ M = {
8526
8528
  ...V,
8527
8529
  x: V.x - A.x,
8528
8530
  y: V.y - A.y
8529
8531
  };
8530
8532
  }
8531
- return O1(L);
8533
+ return O1(M);
8532
8534
  }
8533
8535
  function m2(H, V) {
8534
- const C = e1(H);
8535
- return C === V || !Y(C) || h1(C) ? !1 : Q(C).position === "fixed" || m2(C, V);
8536
+ const C = d1(H);
8537
+ return C === V || !Y(C) || h1(C) ? !1 : I(C).position === "fixed" || m2(C, V);
8536
8538
  }
8537
8539
  function w5(H, V) {
8538
8540
  const C = V.get(H);
8539
8541
  if (C)
8540
8542
  return C;
8541
- let L = F1(H, [], !1).filter((e) => Y(e) && J(e) !== "body"), A = null;
8542
- const M = Q(H).position === "fixed";
8543
- let i = M ? e1(H) : H;
8543
+ let M = F1(H, [], !1).filter((e) => Y(e) && J(e) !== "body"), A = null;
8544
+ const L = I(H).position === "fixed";
8545
+ let i = L ? d1(H) : H;
8544
8546
  for (; Y(i) && !h1(i); ) {
8545
- const e = Q(i), d = E1(i);
8546
- !d && e.position === "fixed" && (A = null), (M ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? L = L.filter((u) => u !== i) : A = e, i = e1(i);
8547
+ const e = I(i), d = E1(i);
8548
+ !d && e.position === "fixed" && (A = null), (L ? !d && !A : !d && e.position === "static" && !!A && ["absolute", "fixed"].includes(A.position) || S1(i) && !d && m2(H, i)) ? M = M.filter((u) => u !== i) : A = e, i = d1(i);
8547
8549
  }
8548
- return V.set(H, L), L;
8550
+ return V.set(H, M), M;
8549
8551
  }
8550
8552
  function y5(H) {
8551
8553
  let {
8552
8554
  element: V,
8553
8555
  boundary: C,
8554
- rootBoundary: L,
8556
+ rootBoundary: M,
8555
8557
  strategy: A
8556
8558
  } = H;
8557
- const i = [...C === "clippingAncestors" ? w5(V, this._c) : [].concat(C), L], e = i[0], d = i.reduce((t, u) => {
8558
- const a = K1(V, u, A);
8559
- return t.top = A1(a.top, t.top), t.right = a1(a.right, t.right), t.bottom = a1(a.bottom, t.bottom), t.left = A1(a.left, t.left), t;
8559
+ const i = [...C === "clippingAncestors" ? w5(V, this._c) : [].concat(C), M], e = i[0], d = i.reduce((t, u) => {
8560
+ const Z = K1(V, u, A);
8561
+ return t.top = i1(Z.top, t.top), t.right = a1(Z.right, t.right), t.bottom = a1(Z.bottom, t.bottom), t.left = i1(Z.left, t.left), t;
8560
8562
  }, K1(V, e, A));
8561
8563
  return {
8562
8564
  width: d.right - d.left,
@@ -8569,15 +8571,15 @@ function P5(H) {
8569
8571
  return i2(H);
8570
8572
  }
8571
8573
  function T5(H, V, C) {
8572
- const L = $(V), A = C1(V), M = C === "fixed", i = Z1(H, !0, M, V);
8574
+ const M = K(V), A = C1(V), L = C === "fixed", i = Z1(H, !0, L, V);
8573
8575
  let e = {
8574
8576
  scrollLeft: 0,
8575
8577
  scrollTop: 0
8576
8578
  };
8577
8579
  const d = X(0);
8578
- if (L || !L && !M)
8579
- if ((J(V) !== "body" || S1(A)) && (e = g1(V)), L) {
8580
- const t = Z1(V, !0, M, V);
8580
+ if (M || !M && !L)
8581
+ if ((J(V) !== "body" || S1(A)) && (e = g1(V)), M) {
8582
+ const t = Z1(V, !0, L, V);
8581
8583
  d.x = t.x + V.clientLeft, d.y = t.y + V.clientTop;
8582
8584
  } else
8583
8585
  A && (d.x = t2(A));
@@ -8589,35 +8591,35 @@ function T5(H, V, C) {
8589
8591
  };
8590
8592
  }
8591
8593
  function j1(H, V) {
8592
- return !$(H) || Q(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8594
+ return !K(H) || I(H).position === "fixed" ? null : V ? V(H) : H.offsetParent;
8593
8595
  }
8594
8596
  function l2(H, V) {
8595
- const C = I(H);
8596
- if (!$(H))
8597
+ const C = W(H);
8598
+ if (!K(H))
8597
8599
  return C;
8598
- let L = j1(H, V);
8599
- for (; L && c5(L) && Q(L).position === "static"; )
8600
- L = j1(L, V);
8601
- return L && (J(L) === "html" || J(L) === "body" && Q(L).position === "static" && !E1(L)) ? C : L || O5(H) || C;
8600
+ let M = j1(H, V);
8601
+ for (; M && c5(M) && I(M).position === "static"; )
8602
+ M = j1(M, V);
8603
+ return M && (J(M) === "html" || J(M) === "body" && I(M).position === "static" && !E1(M)) ? C : M || O5(H) || C;
8602
8604
  }
8603
8605
  const v5 = async function(H) {
8604
8606
  let {
8605
8607
  reference: V,
8606
8608
  floating: C,
8607
- strategy: L
8609
+ strategy: M
8608
8610
  } = H;
8609
- const A = this.getOffsetParent || l2, M = this.getDimensions;
8611
+ const A = this.getOffsetParent || l2, L = this.getDimensions;
8610
8612
  return {
8611
- reference: T5(V, await A(C), L),
8613
+ reference: T5(V, await A(C), M),
8612
8614
  floating: {
8613
8615
  x: 0,
8614
8616
  y: 0,
8615
- ...await M(C)
8617
+ ...await L(C)
8616
8618
  }
8617
8619
  };
8618
8620
  };
8619
8621
  function F5(H) {
8620
- return Q(H).direction === "rtl";
8622
+ return I(H).direction === "rtl";
8621
8623
  }
8622
8624
  const R5 = {
8623
8625
  convertOffsetParentRelativeRectToViewportRelativeRect: h5,
@@ -8627,46 +8629,46 @@ const R5 = {
8627
8629
  getElementRects: v5,
8628
8630
  getClientRects: g5,
8629
8631
  getDimensions: P5,
8630
- getScale: i1,
8632
+ getScale: e1,
8631
8633
  isElement: Y,
8632
8634
  isRTL: F5
8633
8635
  }, x5 = (H, V, C) => {
8634
- const L = /* @__PURE__ */ new Map(), A = {
8636
+ const M = /* @__PURE__ */ new Map(), A = {
8635
8637
  platform: R5,
8636
8638
  ...C
8637
- }, M = {
8639
+ }, L = {
8638
8640
  ...A.platform,
8639
- _c: L
8641
+ _c: M
8640
8642
  };
8641
8643
  return n5(H, V, {
8642
8644
  ...A,
8643
- platform: M
8645
+ platform: L
8644
8646
  });
8645
8647
  };
8646
- var o2 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(o2 || {}), j = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(j || {}), n2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(n2 || {});
8647
- async function D5({ value: H }, { value: V }, { value: C }, L, A, M, i = 300, e) {
8648
+ var o2 = /* @__PURE__ */ ((H) => (H.Top = "top", H.Bottom = "bottom", H.Left = "left", H.Right = "right", H.TopStart = "top-start", H.TopEnd = "top-end", H.RightStart = "right-start", H.RightEnd = "right-end", H.BottomStart = "bottom-start", H.BottomEnd = "bottom-end", H.LeftStart = "left-start", H.LeftEnd = "left-end", H))(o2 || {}), q = /* @__PURE__ */ ((H) => (H.Click = "click", H.Hover = "hover", H.Manual = "manual", H))(q || {}), n2 = /* @__PURE__ */ ((H) => (H.Tooltip = "tooltip", H.Popover = "popover", H.Dropdown = "dropdown", H))(n2 || {});
8649
+ async function D5({ value: H }, { value: V }, { value: C }, M, A, L, i = 300, e) {
8648
8650
  !H || !V || x5(H, V, {
8649
- placement: L,
8651
+ placement: M,
8650
8652
  middleware: [
8651
8653
  S5(A),
8652
- s5({ padding: M }),
8654
+ s5({ padding: L }),
8653
8655
  r5({ element: C }),
8654
8656
  a5(),
8655
8657
  Z5()
8656
8658
  ]
8657
- }).then(({ x: d, y: t, placement: u, middlewareData: a }) => {
8658
- var l;
8659
+ }).then(({ x: d, y: t, placement: u, middlewareData: Z }) => {
8660
+ var o;
8659
8661
  if (!V)
8660
8662
  return;
8661
- const n = ((l = H.offsetParent) == null ? void 0 : l.getBoundingClientRect().left) || 0;
8663
+ const r = ((o = H.offsetParent) == null ? void 0 : o.getBoundingClientRect().left) || 0;
8662
8664
  if (Object.assign(V.style, {
8663
8665
  minWidth: e === "dropdown" ? `${H.offsetWidth - 2}px` : "auto",
8664
- left: e === "dropdown" ? `${n}px` : `${d}px`,
8666
+ left: e === "dropdown" ? `${r}px` : `${d}px`,
8665
8667
  top: `${t}px`,
8666
8668
  animation: `r-tooltip-show ${i}ms ease-in-out forwards`,
8667
8669
  transformOrigin: "start"
8668
- }), C && a.arrow) {
8669
- const { x: r, y: B } = a.arrow, g = {
8670
+ }), C && Z.arrow) {
8671
+ const { x: a, y: k } = Z.arrow, h = {
8670
8672
  top: "bottom",
8671
8673
  right: "left",
8672
8674
  bottom: "top",
@@ -8674,23 +8676,23 @@ async function D5({ value: H }, { value: V }, { value: C }, L, A, M, i = 300, e)
8674
8676
  /* Right */
8675
8677
  }[u.split("-")[0]];
8676
8678
  Object.assign(C.style, {
8677
- left: d != null ? `${r}px` : "",
8678
- top: t != null ? `${B}px` : "",
8679
+ left: d != null ? `${a}px` : "",
8680
+ top: t != null ? `${k}px` : "",
8679
8681
  right: "",
8680
8682
  bottom: "",
8681
- [`${g}`]: "-4px"
8683
+ [`${h}`]: "-4px"
8682
8684
  });
8683
8685
  }
8684
8686
  });
8685
8687
  }
8686
- const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8688
+ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ T({
8687
8689
  __name: "RTooltip",
8688
8690
  props: {
8689
8691
  placement: { default: o2.Top },
8690
8692
  text: { default: "" },
8691
8693
  dark: { type: Boolean, default: !0 },
8692
8694
  light: { type: Boolean, default: !1 },
8693
- triggers: { default: () => [j.Hover] },
8695
+ triggers: { default: () => [q.Hover] },
8694
8696
  autoHide: { type: Boolean, default: !0 },
8695
8697
  hideDelay: { default: 3e3 },
8696
8698
  showDelay: { default: 300 },
@@ -8707,12 +8709,12 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8707
8709
  },
8708
8710
  emits: ["show", "hide"],
8709
8711
  setup(H, { emit: V }) {
8710
- const C = H, L = V, A = E(), M = E(), i = E();
8712
+ const C = H, M = V, A = E(), L = E(), i = E();
8711
8713
  async function e() {
8712
- r(), M.value.style.display = "block", L("show"), t();
8714
+ a(), L.value.style.display = "block", M("show"), t();
8713
8715
  }
8714
8716
  function d() {
8715
- C.disabled || !M.value || (M.value.style.display = "", L("hide"));
8717
+ C.disabled || !L.value || (L.value.style.display = "", M("hide"));
8716
8718
  }
8717
8719
  function t() {
8718
8720
  C.autoHide && setTimeout(() => {
@@ -8720,91 +8722,91 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8720
8722
  }, C.hideDelay);
8721
8723
  }
8722
8724
  function u() {
8723
- C.disabled || C.triggers.includes(j.Click) && (M.value.style.display === "block" ? d() : e());
8725
+ C.disabled || C.triggers.includes(q.Click) && (L.value.style.display === "block" ? d() : e());
8724
8726
  }
8725
- function a() {
8726
- C.disabled || C.triggers.includes(j.Hover) && e();
8727
+ function Z() {
8728
+ C.disabled || C.triggers.includes(q.Hover) && e();
8727
8729
  }
8728
- function n() {
8729
- C.disabled || (M.value.style.display === "" && C.triggers.includes(j.Hover) ? e() : M.value.style.display !== "" && C.triggers.includes(j.Hover) && d());
8730
+ function r() {
8731
+ C.disabled || (L.value.style.display === "" && C.triggers.includes(q.Hover) ? e() : L.value.style.display !== "" && C.triggers.includes(q.Hover) && d());
8730
8732
  }
8731
- function l() {
8732
- C.triggers.includes(j.Hover) && r();
8733
+ function o() {
8734
+ C.triggers.includes(q.Hover) && a();
8733
8735
  }
8734
- function r() {
8735
- const { placement: g, offset: w, padding: P, disabled: T, showDelay: D, type: F } = C;
8736
- T || D5(A, M, i, g, w, P, D, F);
8736
+ function a() {
8737
+ const { placement: h, offset: w, padding: y, disabled: P, showDelay: _, type: v } = C;
8738
+ P || D5(A, L, i, h, w, y, _, v);
8737
8739
  }
8738
- const B = k(() => ({
8740
+ const k = g(() => ({
8739
8741
  "r-tooltip": !0,
8740
8742
  "r-tooltip--dark": C.dark && !C.light,
8741
8743
  "r-tooltip--light": C.light
8742
8744
  }));
8743
8745
  return window.onresize = () => {
8744
- C.resizable && r();
8746
+ C.resizable && a();
8745
8747
  }, document.addEventListener("scroll", () => {
8746
- r();
8748
+ a();
8747
8749
  }), q1(
8748
8750
  () => {
8749
- C.disabled || (C.shown && C.triggers.includes(j.Manual) ? e() : !C.shown && C.triggers.includes(j.Manual) && d());
8751
+ C.disabled || (C.shown && C.triggers.includes(q.Manual) ? e() : !C.shown && C.triggers.includes(q.Manual) && d());
8750
8752
  },
8751
8753
  { flush: "post" }
8752
8754
  // this is important to avoid infinite loop & for fire on mounted
8753
8755
  ), Y1(() => {
8754
- C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", r()), M5(
8756
+ C.resizable && A.value.parentElement.parentElement.addEventListener("scroll", a()), M5(
8755
8757
  A,
8756
8758
  () => {
8757
8759
  C.outsideClick && d();
8758
8760
  },
8759
8761
  {
8760
- ignore: [M.value]
8762
+ ignore: [L.value]
8761
8763
  }
8762
8764
  );
8763
- }), (g, w) => (m(), o(H1, null, [
8765
+ }), (h, w) => (m(), n(V1, null, [
8764
8766
  S("div", {
8765
8767
  ref_key: "trigger",
8766
8768
  ref: A,
8767
8769
  "aria-disabled": C.disabled,
8768
- class: p(["r-tooltip-trigger", g.triggerClass]),
8770
+ class: p(["r-tooltip-trigger", h.triggerClass]),
8769
8771
  onClick: u,
8770
- onMouseenter: a,
8771
- onMouseleave: n,
8772
- onMousemove: l
8772
+ onMouseenter: Z,
8773
+ onMouseleave: r,
8774
+ onMousemove: o
8773
8775
  }, [
8774
- h(g.$slots, "default", {
8776
+ f(h.$slots, "default", {
8775
8777
  activators: {
8776
8778
  click: u,
8777
- mouseenter: a,
8778
- mouseleave: n,
8779
- mousemove: l
8779
+ mouseenter: Z,
8780
+ mouseleave: r,
8781
+ mousemove: o
8780
8782
  },
8781
- updatePosition: r
8783
+ updatePosition: a
8782
8784
  }, () => [
8783
8785
  S("div", {
8784
8786
  innerHTML: C.triggerContent
8785
8787
  }, null, 8, E5)
8786
8788
  ])
8787
8789
  ], 42, _5),
8788
- (m(), R(s2, { to: "body" }, [
8790
+ (m(), D(s2, { to: "body" }, [
8789
8791
  S("div", {
8790
8792
  id: "tooltip",
8791
8793
  ref_key: "tooltip",
8792
- ref: M,
8793
- class: p([B.value, g.tooltipClass]),
8794
+ ref: L,
8795
+ class: p([k.value, h.tooltipClass]),
8794
8796
  role: "tooltip"
8795
8797
  }, [
8796
- h(g.$slots, "content", {
8798
+ f(h.$slots, "content", {
8797
8799
  hide: d,
8798
- updatePosition: r
8800
+ updatePosition: a
8799
8801
  }, () => [
8800
- C.text ? (m(), o("div", {
8802
+ C.text ? (m(), n("div", {
8801
8803
  key: 0,
8802
8804
  class: p(["r-tooltip__content", {
8803
8805
  "r-tooltip__content--dark": C.dark,
8804
8806
  "r-tooltip__content--light": C.light
8805
8807
  }])
8806
- }, b(C.text), 3)) : s("", !0),
8807
- C.text ? (m(), o("div", {
8808
+ }, b(C.text), 3)) : c("", !0),
8809
+ C.text ? (m(), n("div", {
8808
8810
  key: 1,
8809
8811
  id: "arrow",
8810
8812
  ref_key: "arrowElement",
@@ -8813,7 +8815,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8813
8815
  "r-tooltip__arrow--dark": C.dark,
8814
8816
  "r-tooltip__arrow--light": C.light
8815
8817
  }])
8816
- }, null, 2)) : s("", !0)
8818
+ }, null, 2)) : c("", !0)
8817
8819
  ])
8818
8820
  ], 2)
8819
8821
  ]))
@@ -8825,19 +8827,19 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8825
8827
  }, Q5 = {
8826
8828
  key: 2,
8827
8829
  class: "r-dropdown__multiple"
8828
- }, G5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], z5 = ["aria-disabled", "onClick"], U5 = { style: { display: "flex", "align-items": "center" } }, $5 = {
8830
+ }, G5 = ["id", "autocomplete", "disabled", "placeholder", "readonly", "onInput", "onKeydown"], z5 = ["data-has-value", "onClick"], U5 = ["aria-disabled", "onClick"], $5 = { class: "flex items-center" }, K5 = {
8829
8831
  key: 0,
8830
8832
  class: "r-dropdown-options__no-option"
8831
- }, K5 = {
8833
+ }, j5 = {
8832
8834
  key: 0,
8833
8835
  class: "r-dropdown-details"
8834
- }, j5 = {
8836
+ }, q5 = {
8835
8837
  key: 0,
8836
8838
  class: "r-dropdown-error"
8837
- }, q5 = {
8839
+ }, Y5 = {
8838
8840
  key: 1,
8839
8841
  class: "r-dropdown-hint"
8840
- }, L0 = /* @__PURE__ */ v({
8842
+ }, M0 = /* @__PURE__ */ T({
8841
8843
  __name: "RDropdown",
8842
8844
  props: {
8843
8845
  options: { default: () => [] },
@@ -8850,6 +8852,7 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8850
8852
  prependIcon: { default: "" },
8851
8853
  appendIcon: { default: "mdiChevronDown" },
8852
8854
  searchable: { type: Boolean, default: !1 },
8855
+ clearable: { type: Boolean, default: !1 },
8853
8856
  id: { default: "test" },
8854
8857
  closeOnSelect: { type: Boolean, default: !0 },
8855
8858
  dropdownClass: { default: "" },
@@ -8861,88 +8864,96 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8861
8864
  },
8862
8865
  emits: ["update:modelValue"],
8863
8866
  setup(H, { emit: V }) {
8864
- const C = H, L = V, A = E({ value: "", label: "" }), M = d1([]), i = E(!1), e = E(""), d = E(), t = E(), u = E();
8865
- function a(c, f) {
8866
- var Z, y, O;
8867
- if (c.stopPropagation(), !C.disabled) {
8868
- if (i.value = !i.value, f && f(), i.value) {
8869
- (Z = d.value) == null || Z.classList.add("r-dropdown--active"), (y = d.value) == null || y.focus(), C.searchable && ((O = t.value) == null || O.focus());
8867
+ const C = H, M = V, A = E({ value: "", label: "" }), L = t1([]), i = E(!1), e = E(""), d = E(), t = E(), u = E();
8868
+ function Z(s, l) {
8869
+ var B, F, O;
8870
+ if (s.stopPropagation(), !C.disabled) {
8871
+ if (i.value = !0, l && l(), i.value) {
8872
+ (B = d.value) == null || B.classList.add("r-dropdown--active"), (F = d.value) == null || F.focus(), C.searchable && ((O = t.value) == null || O.focus());
8870
8873
  return;
8871
8874
  }
8872
- n();
8875
+ r();
8873
8876
  }
8874
8877
  }
8875
- function n() {
8876
- var c, f, Z;
8877
- i.value = !1, (c = d.value) == null || c.classList.remove("r-dropdown--active"), (f = d.value) == null || f.blur(), (Z = t.value) == null || Z.blur();
8878
+ function r() {
8879
+ var s, l, B;
8880
+ i.value = !1, (s = d.value) == null || s.classList.remove("r-dropdown--active"), (l = d.value) == null || l.blur(), (B = t.value) == null || B.blur();
8878
8881
  }
8879
- function l(c, f, Z, y) {
8882
+ function o(s, l, B, F) {
8880
8883
  var O;
8881
- if (c.stopPropagation(), y(), !f.disabled) {
8884
+ if (s.stopPropagation(), F(), !l.disabled) {
8882
8885
  if (C.multiple || C.taggable) {
8883
- M.find((_) => _.value === f.value) ? M.splice(M.indexOf(f), 1) : M.push(f), e.value = "", C.searchable && ((O = t.value) == null || O.focus());
8886
+ L.find((R) => R.value === l.value) ? L.splice(L.indexOf(l), 1) : L.push(l), e.value = "", C.searchable && ((O = t.value) == null || O.focus());
8884
8887
  return;
8885
8888
  }
8886
- r(c, f), C.closeOnSelect && (Z(), n());
8889
+ a(s, l), C.closeOnSelect && (B(), r());
8887
8890
  }
8888
8891
  }
8889
- function r(c, f) {
8890
- if (A.value.value === f.value) {
8891
- A.value = {}, e.value = "", L("update:modelValue", "");
8892
+ function a(s, l) {
8893
+ if (A.value.value === l.value) {
8894
+ A.value = {}, e.value = "", M("update:modelValue", "");
8892
8895
  return;
8893
8896
  }
8894
- e.value = f.label, A.value = f, a(c), L("update:modelValue", f);
8897
+ e.value = l.label, A.value = l, Z(s), M("update:modelValue", l);
8895
8898
  }
8896
- function B(c, f, Z) {
8897
- if (c instanceof KeyboardEvent && c.key !== "Backspace" || e.value !== "")
8899
+ function k(s, l, B) {
8900
+ if (s instanceof KeyboardEvent && s.key !== "Backspace" || e.value !== "")
8898
8901
  return;
8899
- c.stopPropagation(), Z();
8900
- const y = M.findIndex((O) => O.value === f.value);
8901
- M.splice(y, 1);
8902
+ s.stopPropagation(), B();
8903
+ const F = L.findIndex((O) => O.value === l.value);
8904
+ L.splice(F, 1);
8902
8905
  }
8903
- function g(c, f) {
8906
+ function h(s, l) {
8904
8907
  var O;
8905
8908
  if (!C.taggable)
8906
8909
  return;
8907
- c.stopPropagation(), f();
8908
- const Z = e.value;
8909
- if (Z === "")
8910
+ s.stopPropagation(), l();
8911
+ const B = e.value;
8912
+ if (B === "")
8910
8913
  return;
8911
- C.options.find((_) => _.label === Z) || (M.push({ value: Z, label: Z }), e.value = "", (O = t.value) == null || O.focus());
8914
+ C.options.find((R) => R.label === B) || (L.push({ value: B, label: B }), e.value = "", (O = t.value) == null || O.focus());
8912
8915
  }
8913
- function w(c) {
8914
- return C.multiple || C.taggable ? M.find((f) => f.value === c.value) : A.value.value === c.value;
8916
+ function w(s) {
8917
+ return C.multiple || C.taggable ? L.find((l) => l.value === s.value) : A.value.value === s.value;
8915
8918
  }
8916
- const P = k(() => !C.searchable || A.value.label === e.value ? C.options : C.options.filter((f) => f.label.toLowerCase().includes(e.value.toLowerCase()))), T = k(() => !C.searchable);
8917
- function D() {
8918
- C.modelValue ? C.multiple ? M.push(C.modelValue) : (A.value = C.modelValue, e.value = C.modelValue.label) : (A.value = {}, M.splice(0, M.length));
8919
+ const y = g(() => !C.searchable || A.value.label === e.value ? C.options : C.options.filter((l) => l.label.toLowerCase().includes(e.value.toLowerCase()))), P = g(() => !C.searchable);
8920
+ function _() {
8921
+ C.modelValue ? C.multiple ? L.push(C.modelValue) : (A.value = C.modelValue, e.value = C.modelValue.label) : (A.value = {}, L.splice(0, L.length));
8919
8922
  }
8920
- function F(c) {
8921
- C.searchable && c();
8923
+ function v(s) {
8924
+ C.searchable && s();
8925
+ }
8926
+ function Q(s, l) {
8927
+ if (s.stopPropagation(), l(), C.multiple || C.taggable) {
8928
+ L.splice(0, L.length);
8929
+ return;
8930
+ }
8931
+ A.value = {}, e.value = "", M("update:modelValue", "");
8922
8932
  }
8923
8933
  return Y1(() => {
8924
- D();
8925
- }), G(M, (c) => {
8926
- L("update:modelValue", c);
8927
- }), G(() => C.modelValue, (c) => {
8928
- D();
8929
- }), (c, f) => (m(), o("div", {
8934
+ _();
8935
+ }), G(L, (s) => {
8936
+ M("update:modelValue", s);
8937
+ }), G(() => C.modelValue, (s) => {
8938
+ _();
8939
+ }), (s, l) => (m(), n("div", {
8930
8940
  ref_key: "wrapper",
8931
8941
  ref: u,
8932
8942
  class: "r-dropdown-wrapper"
8933
8943
  }, [
8934
- q(N5, {
8944
+ $(N5, {
8935
8945
  "auto-hide": !1,
8936
8946
  offset: 0,
8937
8947
  "outside-click": "",
8938
8948
  placement: "bottom",
8949
+ resizable: "",
8939
8950
  "tooltip-class": "w-max",
8940
8951
  "trigger-class": "w-full",
8941
8952
  triggers: ["click"],
8942
8953
  type: "dropdown",
8943
- onHide: n
8954
+ onHide: r
8944
8955
  }, {
8945
- default: n1(({ activators: Z, updatePosition: y }) => [
8956
+ default: n1(({ activators: B, updatePosition: F }) => [
8946
8957
  S("div", {
8947
8958
  ref_key: "dropdown",
8948
8959
  ref: d,
@@ -8953,104 +8964,116 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
8953
8964
  "r-dropdown--error": C.errorMsg
8954
8965
  }]),
8955
8966
  role: "select",
8956
- onClick: (O) => a(O, Z.click)
8967
+ onClick: (O) => Z(O, B.click)
8957
8968
  }, [
8958
- C.prependIcon || c.$slots.prepend ? (m(), o("div", {
8969
+ C.prependIcon || s.$slots.prepend ? (m(), n("div", {
8959
8970
  key: 0,
8960
8971
  class: p(["r-dropdown__prepend-icon", {
8961
8972
  "r-dropdown__prepend-icon--active": i.value,
8962
8973
  "r-dropdown__prepend-icon--error": C.errorMsg
8963
8974
  }])
8964
8975
  }, [
8965
- h(c.$slots, "prepend", {}, () => [
8966
- C.prependIcon ? (m(), R(x, {
8976
+ f(s.$slots, "prepend", {}, () => [
8977
+ C.prependIcon ? (m(), D(x, {
8967
8978
  key: 0,
8968
8979
  name: C.prependIcon
8969
- }, null, 8, ["name"])) : s("", !0)
8980
+ }, null, 8, ["name"])) : c("", !0)
8970
8981
  ])
8971
- ], 2)) : s("", !0),
8972
- C.taggable ? (m(), o("div", I5, [
8973
- h(c.$slots, "tags", {
8974
- options: M,
8975
- removeOption: B,
8976
- updatePosition: y
8982
+ ], 2)) : c("", !0),
8983
+ C.taggable ? (m(), n("div", I5, [
8984
+ f(s.$slots, "tags", {
8985
+ options: L,
8986
+ removeOption: k,
8987
+ updatePosition: F
8977
8988
  }, () => [
8978
- (m(!0), o(H1, null, M1(M, (O, _) => (m(), R(X2, {
8979
- key: _,
8989
+ (m(!0), n(V1, null, A1(L, (O, R) => (m(), D(X2, {
8990
+ key: R,
8980
8991
  "append-icon": "mdiClose",
8981
8992
  class: "r-dropdown__tags__chip",
8982
8993
  closable: "",
8983
8994
  label: O.label,
8984
8995
  variant: "primary",
8985
- "onClick:close": (N) => B(N, O, y)
8996
+ "onClick:close": (H1) => k(H1, O, F)
8986
8997
  }, null, 8, ["label", "onClick:close"]))), 128))
8987
8998
  ])
8988
- ])) : s("", !0),
8989
- C.multiple ? (m(), o("div", Q5, [
8990
- (m(!0), o(H1, null, M1(M, (O, _) => (m(), o("p", { key: _ }, b(`${O.label},`), 1))), 128))
8991
- ])) : s("", !0),
8999
+ ])) : c("", !0),
9000
+ C.multiple ? (m(), n("div", Q5, [
9001
+ (m(!0), n(V1, null, A1(L, (O, R) => (m(), n("p", { key: R }, b(`${O.label},`), 1))), 128))
9002
+ ])) : c("", !0),
8992
9003
  X1(S("input", {
8993
9004
  id: C.id,
8994
9005
  ref_key: "input",
8995
9006
  ref: t,
8996
- "onUpdate:modelValue": f[0] || (f[0] = (O) => e.value = O),
9007
+ "onUpdate:modelValue": l[0] || (l[0] = (O) => e.value = O),
8997
9008
  autocomplete: C.autocomplete,
8998
9009
  class: p(["r-dropdown__input", {
8999
9010
  "r-dropdown__input--loading": C.loading
9000
9011
  }]),
9001
9012
  disabled: C.disabled,
9002
9013
  placeholder: C.placeholder,
9003
- readonly: T.value,
9014
+ readonly: P.value,
9015
+ role: "presentation",
9004
9016
  type: "text",
9005
- onInput: (O) => F(y),
9017
+ onInput: (O) => v(F),
9006
9018
  onKeydown: [
9007
- W1((O) => B(O, M[M.length - 1], y), ["backspace"]),
9008
- W1((O) => g(O, y), ["enter"])
9019
+ W1((O) => k(O, L[L.length - 1], F), ["backspace"]),
9020
+ W1((O) => h(O, F), ["enter"])
9009
9021
  ]
9010
9022
  }, null, 42, G5), [
9011
9023
  [c2, e.value]
9012
9024
  ]),
9013
- C.appendIcon || c.$slots.append ? (m(), o("div", {
9025
+ C.clearable ? (m(), n("div", {
9014
9026
  key: 3,
9027
+ class: "r-dropdown__clearable",
9028
+ "data-has-value": (e.value !== "" || L.length) && i.value,
9029
+ onClick: (O) => Q(O, F)
9030
+ }, [
9031
+ $(x, {
9032
+ name: "mdiCloseCircle",
9033
+ size: "18"
9034
+ })
9035
+ ], 8, z5)) : c("", !0),
9036
+ C.appendIcon || s.$slots.append ? (m(), n("div", {
9037
+ key: 4,
9015
9038
  class: p(["r-dropdown__append-icon", {
9016
9039
  "r-dropdown__append-icon--active": i.value,
9017
9040
  "r-dropdown__append-icon--error": C.errorMsg
9018
9041
  }])
9019
9042
  }, [
9020
- h(c.$slots, "append", {}, () => [
9021
- C.appendIcon ? (m(), R(x, {
9043
+ f(s.$slots, "append", {}, () => [
9044
+ C.appendIcon ? (m(), D(x, {
9022
9045
  key: 0,
9023
9046
  name: C.appendIcon
9024
- }, null, 8, ["name"])) : s("", !0)
9047
+ }, null, 8, ["name"])) : c("", !0)
9025
9048
  ])
9026
- ], 2)) : s("", !0)
9049
+ ], 2)) : c("", !0)
9027
9050
  ], 10, W5)
9028
9051
  ]),
9029
- content: n1(({ hide: Z, updatePosition: y }) => [
9052
+ content: n1(({ hide: B, updatePosition: F }) => [
9030
9053
  S("ul", {
9031
9054
  class: p(["r-dropdown-options", {
9032
9055
  "r-dropdown-options--active": i.value,
9033
9056
  [C.optionsClass]: C.optionsClass
9034
9057
  }])
9035
9058
  }, [
9036
- (m(!0), o(H1, null, M1(P.value, (O) => (m(), o("li", {
9059
+ (m(!0), n(V1, null, A1(y.value, (O) => (m(), n("li", {
9037
9060
  key: O.value,
9038
9061
  "aria-disabled": O.disabled,
9039
9062
  class: p(["r-dropdown-options__option", {
9040
9063
  "r-dropdown-options__option--active": w(O),
9041
9064
  "r-dropdown-options__option--disabled": O.disabled
9042
9065
  }]),
9043
- onClick: r1((_) => l(_, O, Z, y), ["prevent"])
9066
+ onClick: r1((R) => o(R, O, B, F), ["prevent"])
9044
9067
  }, [
9045
- S("div", U5, [
9046
- h(c.$slots, "option-prepend", {}, () => [
9047
- O.prependIcon ? (m(), R(x, {
9068
+ S("div", $5, [
9069
+ f(s.$slots, "option-prepend", {}, () => [
9070
+ O.prependIcon ? (m(), D(x, {
9048
9071
  key: 0,
9049
9072
  class: p(["r-dropdown-options__option__prepend-icon", {
9050
9073
  "r-dropdown-options__option__prepend-icon--active": w(O)
9051
9074
  }]),
9052
9075
  name: O.prependIcon
9053
- }, null, 8, ["class", "name"])) : s("", !0)
9076
+ }, null, 8, ["class", "name"])) : c("", !0)
9054
9077
  ]),
9055
9078
  S("p", {
9056
9079
  class: p(["r-dropdown-options__option__label", {
@@ -9058,30 +9081,30 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9058
9081
  }])
9059
9082
  }, b(O.label), 3)
9060
9083
  ]),
9061
- w(O) ? (m(), R(x, {
9084
+ w(O) ? (m(), D(x, {
9062
9085
  key: 0,
9063
9086
  class: p(["r-dropdown-options__option__append-icon", {
9064
9087
  "r-dropdown-options__option__append-icon--active": w(O)
9065
9088
  }]),
9066
9089
  name: "mdiCheck"
9067
- }, null, 8, ["class"])) : s("", !0)
9068
- ], 10, z5))), 128)),
9069
- P.value.length === 0 ? (m(), o("li", $5, [
9070
- h(c.$slots, "not-options", {}, () => [
9090
+ }, null, 8, ["class"])) : c("", !0)
9091
+ ], 10, U5))), 128)),
9092
+ y.value.length === 0 ? (m(), n("li", K5, [
9093
+ f(s.$slots, "not-options", {}, () => [
9071
9094
  R1(" No options ")
9072
9095
  ])
9073
- ])) : s("", !0)
9096
+ ])) : c("", !0)
9074
9097
  ], 2)
9075
9098
  ]),
9076
9099
  _: 3
9077
9100
  }),
9078
- c.$props.hideDetails ? s("", !0) : (m(), o("div", K5, [
9079
- C.errorMsg ? (m(), o("div", j5, b(C.errorMsg), 1)) : s("", !0),
9080
- C.hint ? (m(), o("div", q5, b(C.hint), 1)) : s("", !0)
9101
+ s.$props.hideDetails ? c("", !0) : (m(), n("div", j5, [
9102
+ C.errorMsg ? (m(), n("div", q5, b(C.errorMsg), 1)) : c("", !0),
9103
+ C.hint ? (m(), n("div", Y5, b(C.hint), 1)) : c("", !0)
9081
9104
  ]))
9082
9105
  ], 512));
9083
9106
  }
9084
- }), Y5 = ["id", "for"], r2 = /* @__PURE__ */ v({
9107
+ }), X5 = ["id", "for"], r2 = /* @__PURE__ */ T({
9085
9108
  __name: "RLabel",
9086
9109
  props: {
9087
9110
  id: { default: "" },
@@ -9090,26 +9113,26 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9090
9113
  },
9091
9114
  setup(H) {
9092
9115
  const V = H;
9093
- return (C, L) => (m(), o("label", {
9116
+ return (C, M) => (m(), n("label", {
9094
9117
  id: V.id,
9095
9118
  class: "r-label",
9096
9119
  for: V.for
9097
9120
  }, [
9098
- h(C.$slots, "default", {}, () => [
9121
+ f(C.$slots, "default", {}, () => [
9099
9122
  R1(b(V.text), 1)
9100
9123
  ])
9101
- ], 8, Y5));
9124
+ ], 8, X5));
9102
9125
  }
9103
- }), X5 = ["onClick"], J5 = ["open"], C3 = { class: "r-dialog__header" }, H3 = {
9126
+ }), J5 = ["onClick"], C3 = ["open"], H3 = { class: "r-dialog__header" }, V3 = {
9104
9127
  key: 0,
9105
9128
  class: "icon"
9106
- }, V3 = {
9129
+ }, L3 = {
9107
9130
  key: 1,
9108
9131
  class: "title"
9109
- }, L3 = {
9132
+ }, M3 = {
9110
9133
  key: 2,
9111
9134
  class: "description"
9112
- }, M3 = { class: "r-dialog__body" }, A3 = { class: "r-dialog__actions" }, M0 = /* @__PURE__ */ v({
9135
+ }, A3 = { class: "r-dialog__body" }, i3 = { class: "r-dialog__actions" }, A0 = /* @__PURE__ */ T({
9113
9136
  __name: "RModal",
9114
9137
  props: {
9115
9138
  modelValue: { type: Boolean, default: !1 },
@@ -9126,22 +9149,22 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9126
9149
  },
9127
9150
  emits: ["update:modelValue"],
9128
9151
  setup(H, { emit: V }) {
9129
- const C = H, L = V, A = k(() => ({
9152
+ const C = H, M = V, A = g(() => ({
9130
9153
  "r-dialog": !0,
9131
9154
  "r-dialog--block": C.block,
9132
9155
  [`${C.class}`]: !0
9133
- })), M = k(() => ({
9156
+ })), L = g(() => ({
9134
9157
  width: C.width,
9135
9158
  height: C.height
9136
9159
  }));
9137
9160
  function i(e) {
9138
- C.outsideClick && e.target === e.currentTarget && L("update:modelValue", !1);
9161
+ C.outsideClick && e.target === e.currentTarget && M("update:modelValue", !1);
9139
9162
  }
9140
9163
  return q1(() => {
9141
9164
  C.modelValue ? document.body.style.overflow = "hidden" : document.body.style.overflow = "auto";
9142
9165
  }), window.addEventListener("keydown", (e) => {
9143
- e.key === "Escape" && C.modelValue && C.outsideClick && L("update:modelValue", !1);
9144
- }), (e, d) => X1((m(), o("div", {
9166
+ e.key === "Escape" && C.modelValue && C.outsideClick && M("update:modelValue", !1);
9167
+ }), (e, d) => X1((m(), n("div", {
9145
9168
  class: p(["r-modal-overlay", e.overlayClass]),
9146
9169
  onClick: r1(i, ["stop"])
9147
9170
  }, [
@@ -9150,30 +9173,30 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9150
9173
  class: p(A.value),
9151
9174
  open: C.modelValue,
9152
9175
  role: "dialog",
9153
- style: x1(M.value)
9176
+ style: x1(L.value)
9154
9177
  }, [
9155
- S("div", C3, [
9156
- h(e.$slots, "header"),
9157
- C.icon ? (m(), o("div", H3, [
9158
- q(x, {
9178
+ S("div", H3, [
9179
+ f(e.$slots, "header"),
9180
+ C.icon ? (m(), n("div", V3, [
9181
+ $(x, {
9159
9182
  name: C.icon
9160
9183
  }, null, 8, ["name"])
9161
- ])) : s("", !0),
9162
- C.title ? (m(), o("div", V3, b(C.title), 1)) : s("", !0),
9163
- C.description ? (m(), o("div", L3, b(C.description), 1)) : s("", !0)
9164
- ]),
9165
- S("div", M3, [
9166
- h(e.$slots, "default")
9184
+ ])) : c("", !0),
9185
+ C.title ? (m(), n("div", L3, b(C.title), 1)) : c("", !0),
9186
+ C.description ? (m(), n("div", M3, b(C.description), 1)) : c("", !0)
9167
9187
  ]),
9168
9188
  S("div", A3, [
9169
- h(e.$slots, "actions")
9189
+ f(e.$slots, "default")
9190
+ ]),
9191
+ S("div", i3, [
9192
+ f(e.$slots, "actions")
9170
9193
  ])
9171
- ], 14, J5)
9172
- ], 10, X5)), [
9194
+ ], 14, C3)
9195
+ ], 10, J5)), [
9173
9196
  [O2, e.modelValue]
9174
9197
  ]);
9175
9198
  }
9176
- }), i3 = ["data-open"], e3 = ["data-open"], d3 = ["data-open"], A0 = /* @__PURE__ */ v({
9199
+ }), e3 = ["data-open"], d3 = ["data-open"], t3 = ["data-open"], i0 = /* @__PURE__ */ T({
9177
9200
  __name: "RSidebar",
9178
9201
  props: {
9179
9202
  modelValue: { type: Boolean, default: !1 },
@@ -9184,8 +9207,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9184
9207
  },
9185
9208
  emits: ["update:modelValue"],
9186
9209
  setup(H, { emit: V }) {
9187
- const C = H, L = V;
9188
- return (A, M) => (m(), o("div", {
9210
+ const C = H, M = V;
9211
+ return (A, L) => (m(), n("div", {
9189
9212
  class: p(["r-sidebar__wrapper", [A.$props.wrapperClass]]),
9190
9213
  "data-open": C.modelValue
9191
9214
  }, [
@@ -9193,24 +9216,24 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9193
9216
  class: p(["r-sidebar", [C.class]]),
9194
9217
  "data-open": C.modelValue
9195
9218
  }, [
9196
- h(A.$slots, "default")
9197
- ], 10, e3),
9198
- C.showTrigger ? (m(), o("div", {
9219
+ f(A.$slots, "default")
9220
+ ], 10, d3),
9221
+ C.showTrigger ? (m(), n("div", {
9199
9222
  key: 0,
9200
9223
  class: p(["r-sidebar__trigger", [C.triggerClass]]),
9201
9224
  "data-open": C.modelValue,
9202
- onClick: M[0] || (M[0] = (i) => L("update:modelValue", !C.modelValue))
9225
+ onClick: L[0] || (L[0] = (i) => M("update:modelValue", !C.modelValue))
9203
9226
  }, [
9204
- h(A.$slots, "trigger", {}, () => [
9227
+ f(A.$slots, "trigger", {}, () => [
9205
9228
  R1(" > ")
9206
9229
  ])
9207
- ], 10, d3)) : s("", !0)
9208
- ], 10, i3));
9230
+ ], 10, t3)) : c("", !0)
9231
+ ], 10, e3));
9209
9232
  }
9210
- }), t3 = { class: "r-snackbar__text" }, m3 = {
9233
+ }), m3 = { class: "r-snackbar__text" }, l3 = {
9211
9234
  key: 0,
9212
9235
  class: "r-snackbar__close"
9213
- }, i0 = /* @__PURE__ */ v({
9236
+ }, e0 = /* @__PURE__ */ T({
9214
9237
  __name: "RSnackbar",
9215
9238
  props: {
9216
9239
  modelValue: { type: Boolean, default: !1 },
@@ -9223,63 +9246,63 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9223
9246
  },
9224
9247
  emits: ["action", "update:modelValue"],
9225
9248
  setup(H, { emit: V }) {
9226
- const C = H, L = V;
9249
+ const C = H, M = V;
9227
9250
  G(
9228
9251
  () => C.modelValue,
9229
9252
  () => {
9230
9253
  C.timeout > 0 && C.modelValue && setTimeout(() => {
9231
- L("update:modelValue", !1);
9254
+ M("update:modelValue", !1);
9232
9255
  }, C.timeout);
9233
9256
  },
9234
9257
  {
9235
9258
  immediate: !0
9236
9259
  }
9237
9260
  );
9238
- const A = k(() => ({
9261
+ const A = g(() => ({
9239
9262
  "r-snackbar": !0,
9240
9263
  [`r-snackbar--${C.variant}`]: !0,
9241
9264
  [C.left ? "r-snackbar__left" : "r-snackbar__right"]: !0,
9242
9265
  [C.modelValue ? "r-snackbar--shown" : "r-snackbar--hidden"]: !0,
9243
9266
  [C.top ? "r-snackbar__top" : "r-snackbar__bottom"]: !0
9244
- })), M = k(() => ({
9267
+ })), L = g(() => ({
9245
9268
  success: "mdiCheckCircle",
9246
9269
  error: "mdiAlertCircle",
9247
9270
  warning: "mdiAlert",
9248
9271
  info: "mdiInformation"
9249
9272
  })[C.variant || "info"]);
9250
- return (i, e) => (m(), o("div", {
9273
+ return (i, e) => (m(), n("div", {
9251
9274
  class: p(A.value)
9252
9275
  }, [
9253
- h(i.$slots, "default", {}, () => [
9254
- C.variant ? (m(), R(x, {
9276
+ f(i.$slots, "default", {}, () => [
9277
+ C.variant ? (m(), D(x, {
9255
9278
  key: 0,
9256
9279
  class: "r-snackbar__icon",
9257
- name: M.value
9258
- }, null, 8, ["name"])) : s("", !0)
9280
+ name: L.value
9281
+ }, null, 8, ["name"])) : c("", !0)
9259
9282
  ]),
9260
- S("div", t3, b(C.text), 1),
9261
- h(i.$slots, "action"),
9262
- C.closable ? (m(), o("div", m3, [
9263
- h(i.$slots, "close", {}, () => [
9264
- q(x, {
9283
+ S("div", m3, b(C.text), 1),
9284
+ f(i.$slots, "action"),
9285
+ C.closable ? (m(), n("div", l3, [
9286
+ f(i.$slots, "close", {}, () => [
9287
+ $(x, {
9265
9288
  name: "mdiClose",
9266
9289
  size: 16,
9267
9290
  onClick: e[0] || (e[0] = r1((d) => i.$emit("update:modelValue", !1), ["stop"]))
9268
9291
  })
9269
9292
  ])
9270
- ])) : s("", !0)
9293
+ ])) : c("", !0)
9271
9294
  ], 2));
9272
9295
  }
9273
- }), l3 = ["id", "checked", "disabled"], o3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), n3 = ["id", "for"], r3 = {
9296
+ }), o3 = ["id", "checked", "disabled"], n3 = /* @__PURE__ */ S("span", { class: "slider round" }, null, -1), r3 = ["id", "for"], a3 = {
9274
9297
  key: 0,
9275
9298
  class: "r-switch-texts__details"
9276
- }, a3 = {
9299
+ }, Z3 = {
9277
9300
  key: 0,
9278
9301
  class: "r-switch-texts__error"
9279
- }, Z3 = {
9302
+ }, u3 = {
9280
9303
  key: 1,
9281
9304
  class: "r-switch-texts__hint"
9282
- }, e0 = /* @__PURE__ */ v({
9305
+ }, d0 = /* @__PURE__ */ T({
9283
9306
  __name: "RSwitch",
9284
9307
  props: {
9285
9308
  id: { default: "switch" },
@@ -9294,16 +9317,16 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9294
9317
  },
9295
9318
  emits: ["update:modelValue"],
9296
9319
  setup(H, { emit: V }) {
9297
- const C = H, L = V, A = d1({
9320
+ const C = H, M = V, A = t1({
9298
9321
  checked: !1
9299
- }), M = k(() => ({
9322
+ }), L = g(() => ({
9300
9323
  "r-switch": !0,
9301
9324
  "r-switch--disabled": C.disabled,
9302
9325
  [`r-switch--${C.size}`]: C.size,
9303
9326
  "r-switch--error": C.errorMsg
9304
9327
  }));
9305
9328
  function i(e) {
9306
- C.disabled || (A.checked = e.target.checked, L("update:modelValue", A.checked));
9329
+ C.disabled || (A.checked = e.target.checked, M("update:modelValue", A.checked));
9307
9330
  }
9308
9331
  return G(
9309
9332
  () => C.modelValue,
@@ -9315,14 +9338,14 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9315
9338
  // TODO: find a better way to do this
9316
9339
  immediate: !0
9317
9340
  }
9318
- ), (e, d) => (m(), o("div", {
9341
+ ), (e, d) => (m(), n("div", {
9319
9342
  class: p(["r-switch-container", {
9320
9343
  "r-switch-container--reverse": C.reverse,
9321
9344
  "r-switch-container--hide-details": C.hideDetails
9322
9345
  }])
9323
9346
  }, [
9324
9347
  S("div", {
9325
- class: p(M.value)
9348
+ class: p(L.value)
9326
9349
  }, [
9327
9350
  S("input", {
9328
9351
  id: C.id,
@@ -9331,8 +9354,8 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9331
9354
  disabled: C.disabled,
9332
9355
  type: "checkbox",
9333
9356
  onChange: i
9334
- }, null, 40, l3),
9335
- o3
9357
+ }, null, 40, o3),
9358
+ n3
9336
9359
  ], 2),
9337
9360
  S("div", {
9338
9361
  class: p(["r-switch-texts", {
@@ -9343,19 +9366,19 @@ const _5 = ["aria-disabled"], E5 = ["innerHTML"], N5 = /* @__PURE__ */ v({
9343
9366
  id: C.id,
9344
9367
  class: "r-switch-texts__label",
9345
9368
  for: C.id
9346
- }, b(C.label), 9, n3),
9347
- C.hideDetails ? s("", !0) : (m(), o("div", r3, [
9348
- C.errorMsg ? (m(), o("p", a3, b(C.errorMsg), 1)) : (m(), o("p", Z3, b(C.hint), 1))
9369
+ }, b(C.label), 9, r3),
9370
+ C.hideDetails ? c("", !0) : (m(), n("div", a3, [
9371
+ C.errorMsg ? (m(), n("p", Z3, b(C.errorMsg), 1)) : (m(), n("p", u3, b(C.hint), 1))
9349
9372
  ]))
9350
9373
  ], 2)
9351
9374
  ], 2));
9352
9375
  }
9353
9376
  });
9354
9377
  var o1 = /* @__PURE__ */ ((H) => (H.DEFAULT = "default", H.TEXT = "text", H.ICON = "icon", H))(o1 || {});
9355
- const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9378
+ const S3 = ["aria-disabled", "aria-selected", "disabled"], s3 = {
9356
9379
  key: 0,
9357
9380
  class: "r-tab-item__label"
9358
- }, s3 = /* @__PURE__ */ v({
9381
+ }, c3 = /* @__PURE__ */ T({
9359
9382
  __name: "RTabItem",
9360
9383
  props: {
9361
9384
  id: {},
@@ -9371,57 +9394,57 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9371
9394
  },
9372
9395
  emits: ["update:modelValue", "click:icon"],
9373
9396
  setup(H, { emit: V }) {
9374
- const C = H, L = V, A = k(() => ({
9397
+ const C = H, M = V, A = g(() => ({
9375
9398
  "r-tab-item": !0,
9376
9399
  [`r-tab-item--${C.variant}`]: !0,
9377
9400
  "r-tab-item--tile": C.tile,
9378
9401
  "r-tab-item--block": C.block
9379
- })), M = k(() => ({
9402
+ })), L = g(() => ({
9380
9403
  color: C.color
9381
9404
  }));
9382
9405
  function i(d) {
9383
- L("update:modelValue", d);
9406
+ M("update:modelValue", d);
9384
9407
  }
9385
9408
  function e() {
9386
- L("click:icon");
9409
+ M("click:icon");
9387
9410
  }
9388
- return (d, t) => (m(), o("button", {
9411
+ return (d, t) => (m(), n("button", {
9389
9412
  "aria-disabled": C.disabled,
9390
9413
  "aria-selected": C.modelValue === C.id,
9391
9414
  class: p(A.value),
9392
9415
  disabled: C.disabled,
9393
- style: x1(M.value),
9416
+ style: x1(L.value),
9394
9417
  onClick: t[0] || (t[0] = r1((u) => i(C.id), ["stop"]))
9395
9418
  }, [
9396
- h(d.$slots, "prepend", {}, () => [
9397
- C.variant !== L1(o1).TEXT && C.prependIcon ? (m(), R(x, {
9419
+ f(d.$slots, "prepend", {}, () => [
9420
+ C.variant !== M1(o1).TEXT && C.prependIcon ? (m(), D(x, {
9398
9421
  key: 0,
9399
9422
  class: "r-tab-item__prepend-icon",
9400
9423
  name: C.prependIcon,
9401
9424
  size: 16
9402
- }, null, 8, ["name"])) : s("", !0)
9425
+ }, null, 8, ["name"])) : c("", !0)
9403
9426
  ]),
9404
- q(p2, {
9427
+ $(p2, {
9405
9428
  duration: 150,
9406
9429
  name: "fade"
9407
9430
  }, {
9408
9431
  default: n1(() => [
9409
- C.variant !== L1(o1).ICON ? (m(), o("span", S3, b(C.label), 1)) : s("", !0)
9432
+ C.variant !== M1(o1).ICON ? (m(), n("span", s3, b(C.label), 1)) : c("", !0)
9410
9433
  ]),
9411
9434
  _: 1
9412
9435
  }),
9413
- h(d.$slots, "append", {}, () => [
9414
- C.variant !== L1(o1).TEXT && C.appendIcon ? (m(), R(x, {
9436
+ f(d.$slots, "append", {}, () => [
9437
+ C.variant !== M1(o1).TEXT && C.appendIcon ? (m(), D(x, {
9415
9438
  key: 0,
9416
9439
  class: "r-tab-item__append-icon",
9417
9440
  name: C.appendIcon,
9418
9441
  size: 16,
9419
9442
  onClick: r1(e, ["stop"])
9420
- }, null, 8, ["name", "onClick"])) : s("", !0)
9443
+ }, null, 8, ["name", "onClick"])) : c("", !0)
9421
9444
  ])
9422
- ], 14, u3));
9445
+ ], 14, S3));
9423
9446
  }
9424
- }), d0 = /* @__PURE__ */ v({
9447
+ }), t0 = /* @__PURE__ */ T({
9425
9448
  __name: "RTabs",
9426
9449
  props: {
9427
9450
  tabs: { default: () => [] },
@@ -9432,7 +9455,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9432
9455
  },
9433
9456
  emits: ["update:modelValue", "click:icon"],
9434
9457
  setup(H, { emit: V }) {
9435
- const C = H, L = V, A = E(C.modelValue || C.tabs[0].id), M = k(() => ({
9458
+ const C = H, M = V, A = E(C.modelValue || C.tabs[0].id), L = g(() => ({
9436
9459
  "r-tabs": !0,
9437
9460
  "r-tabs--block": C.block,
9438
9461
  "r-tabs--tile": C.tile,
@@ -9441,21 +9464,21 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9441
9464
  G(
9442
9465
  () => A.value,
9443
9466
  () => {
9444
- L("update:modelValue", A.value);
9467
+ M("update:modelValue", A.value);
9445
9468
  }
9446
9469
  );
9447
9470
  function i() {
9448
- L("click:icon");
9471
+ M("click:icon");
9449
9472
  }
9450
- return (e, d) => (m(), o("div", {
9451
- class: p(M.value)
9473
+ return (e, d) => (m(), n("div", {
9474
+ class: p(L.value)
9452
9475
  }, [
9453
- h(e.$slots, "default", {}, () => [
9454
- (m(!0), o(H1, null, M1(C.tabs, (t, u) => (m(), R(s3, {
9476
+ f(e.$slots, "default", {}, () => [
9477
+ (m(!0), n(V1, null, A1(C.tabs, (t, u) => (m(), D(c3, {
9455
9478
  id: t.id,
9456
9479
  key: u,
9457
9480
  modelValue: A.value,
9458
- "onUpdate:modelValue": d[0] || (d[0] = (a) => A.value = a),
9481
+ "onUpdate:modelValue": d[0] || (d[0] = (Z) => A.value = Z),
9459
9482
  active: u === A.value,
9460
9483
  "append-icon": t.appendIcon,
9461
9484
  block: e.block,
@@ -9469,16 +9492,16 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9469
9492
  ])
9470
9493
  ], 2));
9471
9494
  }
9472
- }), c3 = { class: "r-textarea-wrapper" }, O3 = ["id", "disabled", "placeholder", "value"], p3 = {
9495
+ }), O3 = { class: "r-textarea-wrapper" }, p3 = ["id", "disabled", "placeholder", "value"], f3 = {
9473
9496
  key: 1,
9474
9497
  class: "r-textarea__details"
9475
- }, f3 = {
9498
+ }, h3 = {
9476
9499
  key: 0,
9477
9500
  class: "r-textarea__error"
9478
- }, h3 = {
9501
+ }, g3 = {
9479
9502
  key: 1,
9480
9503
  class: "r-textarea__hint"
9481
- }, t0 = /* @__PURE__ */ v({
9504
+ }, m0 = /* @__PURE__ */ T({
9482
9505
  __name: "RTextArea",
9483
9506
  props: {
9484
9507
  id: { default: "" },
@@ -9492,11 +9515,11 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9492
9515
  },
9493
9516
  emits: ["update:modelValue"],
9494
9517
  setup(H, { emit: V }) {
9495
- const C = H, L = V, A = d1({
9518
+ const C = H, M = V, A = t1({
9496
9519
  value: ""
9497
9520
  });
9498
- function M(i) {
9499
- L("update:modelValue", i.target.value);
9521
+ function L(i) {
9522
+ M("update:modelValue", i.target.value);
9500
9523
  }
9501
9524
  return G(
9502
9525
  () => C.modelValue,
@@ -9506,14 +9529,14 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9506
9529
  {
9507
9530
  immediate: !0
9508
9531
  }
9509
- ), (i, e) => (m(), o("div", c3, [
9510
- C.label ? (m(), R(r2, {
9532
+ ), (i, e) => (m(), n("div", O3, [
9533
+ C.label ? (m(), D(r2, {
9511
9534
  key: 0,
9512
9535
  id: "textarea",
9513
9536
  class: "r-textarea__label",
9514
9537
  for: "textarea",
9515
9538
  text: C.label
9516
- }, null, 8, ["text"])) : s("", !0),
9539
+ }, null, 8, ["text"])) : c("", !0),
9517
9540
  S("textarea", {
9518
9541
  id: C.id,
9519
9542
  class: p(["r-textarea", {
@@ -9523,23 +9546,23 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9523
9546
  disabled: C.disabled,
9524
9547
  placeholder: C.placeholder,
9525
9548
  value: A.value,
9526
- onInput: M
9527
- }, null, 42, O3),
9528
- C.hideDetails ? s("", !0) : (m(), o("div", p3, [
9529
- C.errorMsg ? (m(), o("p", f3, b(C.errorMsg), 1)) : (m(), o("p", h3, b(C.hint), 1))
9549
+ onInput: L
9550
+ }, null, 42, p3),
9551
+ C.hideDetails ? c("", !0) : (m(), n("div", f3, [
9552
+ C.errorMsg ? (m(), n("p", h3, b(C.errorMsg), 1)) : (m(), n("p", g3, b(C.hint), 1))
9530
9553
  ]))
9531
9554
  ]));
9532
9555
  }
9533
- }), g3 = { class: "r-textfield__wrapper" }, k3 = { class: "input-wrapper" }, B3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], b3 = {
9556
+ }), k3 = { class: "r-textfield__wrapper" }, B3 = { class: "input-wrapper" }, b3 = ["id", "disabled", "max", "min", "placeholder", "readonly", "role", "type", "value"], w3 = {
9534
9557
  key: 0,
9535
9558
  class: "r-textfield__details"
9536
- }, w3 = {
9559
+ }, y3 = {
9537
9560
  key: 0,
9538
9561
  class: "r-textfield__error"
9539
- }, y3 = {
9562
+ }, P3 = {
9540
9563
  key: 1,
9541
9564
  class: "r-textfield__hint"
9542
- }, m0 = /* @__PURE__ */ v({
9565
+ }, l0 = /* @__PURE__ */ T({
9543
9566
  __name: "RTextfield",
9544
9567
  props: {
9545
9568
  id: { default: "" },
@@ -9569,7 +9592,7 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9569
9592
  "click:clear"
9570
9593
  ],
9571
9594
  setup(H, { emit: V }) {
9572
- const C = H, L = V, A = E(), M = d1({
9595
+ const C = H, M = V, A = E(), L = t1({
9573
9596
  value: ""
9574
9597
  }), i = E(C.type), e = {
9575
9598
  password: "mdiLock",
@@ -9578,99 +9601,99 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9578
9601
  url: "mdiLink",
9579
9602
  number: "mdiNumeric",
9580
9603
  text: ""
9581
- }, d = E(!1), t = k(() => !!M.value), u = k(() => M.value.length > 0), a = k(() => {
9582
- var Z;
9583
- return (Z = C.errorMsg) == null ? void 0 : Z.length;
9584
- }), n = k(() => C.clearable && u.value), l = k(() => {
9585
- const { disabled: Z, loading: y } = C;
9604
+ }, d = E(!1), t = g(() => !!L.value), u = g(() => L.value.length > 0), Z = g(() => {
9605
+ var l;
9606
+ return (l = C.errorMsg) == null ? void 0 : l.length;
9607
+ }), r = g(() => C.clearable && u.value), o = g(() => {
9608
+ const { disabled: l, loading: B } = C;
9586
9609
  return {
9587
9610
  "r-textfield": !0,
9588
- "r-textfield--error": a.value,
9589
- "r-textfield--loading": y,
9590
- "r-textfield--disabled": Z,
9591
- "r-textfield--clearable": n.value,
9611
+ "r-textfield--error": Z.value,
9612
+ "r-textfield--loading": B,
9613
+ "r-textfield--disabled": l,
9614
+ "r-textfield--clearable": r.value,
9592
9615
  "r-textfield--focus": d.value,
9593
9616
  "r-textfield--filled": t.value
9594
9617
  };
9595
- }), r = k(() => ({
9618
+ }), a = g(() => ({
9596
9619
  "r-textfield__prepend-icon": !0,
9597
9620
  "r-textfield__prepend-icon--loading": C.loading,
9598
- "r-textfield__prepend-icon--error": a.value && t.value
9599
- })), B = k(() => ({
9621
+ "r-textfield__prepend-icon--error": Z.value && t.value
9622
+ })), k = g(() => ({
9600
9623
  "r-textfield__append-icon": !0,
9601
- "r-textfield__append-icon--clear": n.value,
9602
- "r-textfield__append-icon--error": a.value
9603
- })), g = k(() => {
9604
- const { prependIcon: Z, type: y } = C;
9605
- return Z === "none" ? "" : Z || e[y];
9606
- }), w = k(() => {
9607
- const { appendIcon: Z, type: y } = C;
9608
- return Z === "none" ? "" : a.value ? "mdiAlertCircleOutline" : n.value && ["text", "email"].includes(y) ? "mdiClose" : y === "password" && i.value === "password" ? "mdiEyeOutline" : y === "password" && i.value === "text" ? "mdiEyeOffOutline" : Z;
9624
+ "r-textfield__append-icon--clear": r.value,
9625
+ "r-textfield__append-icon--error": Z.value
9626
+ })), h = g(() => {
9627
+ const { prependIcon: l, type: B } = C;
9628
+ return l === "none" ? "" : l || e[B];
9629
+ }), w = g(() => {
9630
+ const { appendIcon: l, type: B } = C;
9631
+ return l === "none" ? "" : Z.value ? "mdiAlertCircleOutline" : r.value && ["text", "email"].includes(B) ? "mdiClose" : B === "password" && i.value === "password" ? "mdiEyeOutline" : B === "password" && i.value === "text" ? "mdiEyeOffOutline" : l;
9609
9632
  });
9610
- function P(Z) {
9611
- d.value = !0, L("focus", Z);
9633
+ function y(l) {
9634
+ d.value = !0, M("focus", l);
9612
9635
  }
9613
- function T(Z) {
9614
- d.value = !1, L("blur", Z);
9636
+ function P(l) {
9637
+ d.value = !1, M("blur", l);
9615
9638
  }
9616
- function D(Z) {
9617
- M.value = Z.target.value, L("input", Z);
9639
+ function _(l) {
9640
+ L.value = l.target.value, M("input", l);
9618
9641
  }
9619
- function F() {
9620
- var Z;
9621
- if (n.value) {
9622
- M.value = "", (Z = A.value) == null || Z.focus(), L("click:clear", {
9623
- value: i.value === "number" ? +M.value : M.value
9642
+ function v() {
9643
+ var l;
9644
+ if (r.value) {
9645
+ L.value = "", (l = A.value) == null || l.focus(), M("click:clear", {
9646
+ value: i.value === "number" ? +L.value : L.value
9624
9647
  });
9625
9648
  return;
9626
9649
  }
9627
- L("click:icon", {
9628
- value: i.value === "number" ? +M.value : M.value
9629
- }), C.type === "password" && c();
9650
+ M("click:icon", {
9651
+ value: i.value === "number" ? +L.value : L.value
9652
+ }), C.type === "password" && Q();
9630
9653
  }
9631
- function c() {
9654
+ function Q() {
9632
9655
  i.value = i.value === "password" ? "text" : "password";
9633
9656
  }
9634
- function f() {
9635
- var Z;
9636
- (Z = A.value) == null || Z.focus();
9657
+ function s() {
9658
+ var l;
9659
+ (l = A.value) == null || l.focus();
9637
9660
  }
9638
9661
  return G(
9639
9662
  () => C.modelValue,
9640
- (Z) => {
9641
- M.value = Z;
9663
+ (l) => {
9664
+ L.value = l;
9642
9665
  },
9643
9666
  {
9644
9667
  immediate: !0
9645
9668
  }
9646
9669
  ), G(
9647
- () => M.value,
9648
- (Z) => {
9649
- L(
9670
+ () => L.value,
9671
+ (l) => {
9672
+ M(
9650
9673
  "update:modelValue",
9651
- i.value === "number" ? +Z : Z
9674
+ i.value === "number" ? +l : l
9652
9675
  );
9653
9676
  }
9654
- ), (Z, y) => (m(), o("div", g3, [
9655
- C.label ? (m(), R(r2, {
9677
+ ), (l, B) => (m(), n("div", k3, [
9678
+ C.label ? (m(), D(r2, {
9656
9679
  key: 0,
9657
9680
  id: C.id,
9658
9681
  class: "r-textfield__label",
9659
9682
  for: C.id,
9660
9683
  text: C.label,
9661
- onClick: f
9662
- }, null, 8, ["id", "for", "text"])) : s("", !0),
9663
- S("div", k3, [
9684
+ onClick: s
9685
+ }, null, 8, ["id", "for", "text"])) : c("", !0),
9686
+ S("div", B3, [
9664
9687
  S("div", {
9665
- class: p(l.value)
9688
+ class: p(o.value)
9666
9689
  }, [
9667
- h(Z.$slots, "prepend"),
9668
- g.value && !Z.$slots.prepend ? (m(), R(x, {
9690
+ f(l.$slots, "prepend"),
9691
+ h.value && !l.$slots.prepend ? (m(), D(x, {
9669
9692
  key: 0,
9670
- class: p(r.value),
9671
- name: g.value,
9693
+ class: p(a.value),
9694
+ name: h.value,
9672
9695
  size: 20
9673
- }, null, 8, ["class", "name"])) : s("", !0),
9696
+ }, null, 8, ["class", "name"])) : c("", !0),
9674
9697
  S("input", {
9675
9698
  id: C.id,
9676
9699
  ref_key: "inputRef",
@@ -9682,31 +9705,31 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9682
9705
  readonly: C.readonly,
9683
9706
  role: C.role,
9684
9707
  type: i.value,
9685
- value: M.value,
9686
- onBlur: T,
9687
- onFocus: P,
9688
- onInput: D
9689
- }, null, 40, B3),
9690
- a.value ? s("", !0) : h(Z.$slots, "append", { key: 1 }),
9691
- w.value && !Z.$slots.append || a.value ? (m(), R(x, {
9708
+ value: L.value,
9709
+ onBlur: P,
9710
+ onFocus: y,
9711
+ onInput: _
9712
+ }, null, 40, b3),
9713
+ Z.value ? c("", !0) : f(l.$slots, "append", { key: 1 }),
9714
+ w.value && !l.$slots.append || Z.value ? (m(), D(x, {
9692
9715
  key: 2,
9693
- class: p(B.value),
9716
+ class: p(k.value),
9694
9717
  name: `${w.value}`,
9695
9718
  size: 20,
9696
- onClick: F
9697
- }, null, 8, ["class", "name"])) : s("", !0)
9719
+ onClick: v
9720
+ }, null, 8, ["class", "name"])) : c("", !0)
9698
9721
  ], 2),
9699
- C.hideDetails ? s("", !0) : (m(), o("div", b3, [
9700
- C.errorMsg ? (m(), o("p", w3, b(C.errorMsg), 1)) : s("", !0),
9701
- !C.errorMsg && C.hint ? (m(), o("p", y3, b(C.hint), 1)) : s("", !0)
9722
+ C.hideDetails ? c("", !0) : (m(), n("div", w3, [
9723
+ C.errorMsg ? (m(), n("p", y3, b(C.errorMsg), 1)) : c("", !0),
9724
+ !C.errorMsg && C.hint ? (m(), n("p", P3, b(C.hint), 1)) : c("", !0)
9702
9725
  ]))
9703
9726
  ])
9704
9727
  ]));
9705
9728
  }
9706
- }), P3 = { class: "r-breadcrumb" }, T3 = {
9729
+ }), T3 = { class: "r-breadcrumb" }, v3 = {
9707
9730
  key: 0,
9708
9731
  class: "r-breadcrumb__title"
9709
- }, l0 = /* @__PURE__ */ v({
9732
+ }, o0 = /* @__PURE__ */ T({
9710
9733
  __name: "RBreadcrumb",
9711
9734
  props: {
9712
9735
  items: { default: () => [] },
@@ -9714,54 +9737,54 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9714
9737
  },
9715
9738
  setup(H) {
9716
9739
  const V = H;
9717
- return (C, L) => {
9740
+ return (C, M) => {
9718
9741
  const A = f2("router-link");
9719
- return m(), o("div", P3, [
9720
- (m(!0), o(H1, null, M1(V.items, (M, i) => (m(), o("div", {
9742
+ return m(), n("div", T3, [
9743
+ (m(!0), n(V1, null, A1(V.items, (L, i) => (m(), n("div", {
9721
9744
  key: i,
9722
9745
  class: "r-breadcrumb__item"
9723
9746
  }, [
9724
- q(A, {
9747
+ $(A, {
9725
9748
  class: "r-breadcrumb__link",
9726
- to: M.to
9749
+ to: L.to
9727
9750
  }, {
9728
9751
  default: n1(() => [
9729
- h(C.$slots, "item-icon", {}, () => [
9730
- M.icon ? (m(), R(x, {
9752
+ f(C.$slots, "item-icon", {}, () => [
9753
+ L.icon ? (m(), D(x, {
9731
9754
  key: 0,
9732
- name: M.icon
9733
- }, null, 8, ["name"])) : s("", !0)
9755
+ name: L.icon
9756
+ }, null, 8, ["name"])) : c("", !0)
9734
9757
  ]),
9735
- M.onlyIcon ? s("", !0) : (m(), o("span", T3, b(M.title), 1))
9758
+ L.onlyIcon ? c("", !0) : (m(), n("span", v3, b(L.title), 1))
9736
9759
  ]),
9737
9760
  _: 2
9738
9761
  }, 1032, ["to"]),
9739
- h(C.$slots, "custom-seperator", {}, () => [
9740
- i !== C.items.length - 1 && V.seperator ? (m(), R(x, {
9762
+ f(C.$slots, "custom-seperator", {}, () => [
9763
+ i !== C.items.length - 1 && V.seperator ? (m(), D(x, {
9741
9764
  key: 0,
9742
9765
  class: "r-breadcrumb__separator",
9743
9766
  name: V.seperator
9744
- }, null, 8, ["name"])) : s("", !0)
9767
+ }, null, 8, ["name"])) : c("", !0)
9745
9768
  ])
9746
9769
  ]))), 128))
9747
9770
  ]);
9748
9771
  };
9749
9772
  }
9750
- }), v3 = { class: "r-pagination" }, F3 = { class: "r-pagination__page-info" }, R3 = { key: 0 }, x3 = { class: "r-pagination__page-info__current-page" }, D3 = { class: "r-pagination__page-info__total-pages" }, _3 = { class: "r-pagination__paginator" }, E3 = ["disabled"], N3 = /* @__PURE__ */ S("path", {
9773
+ }), F3 = { class: "r-pagination" }, R3 = { class: "r-pagination__page-info" }, x3 = { key: 0 }, D3 = { class: "r-pagination__page-info__current-page" }, _3 = { class: "r-pagination__page-info__total-pages" }, E3 = { class: "r-pagination__paginator" }, N3 = ["disabled"], W3 = /* @__PURE__ */ S("path", {
9751
9774
  d: "M0 0h24v24H0z",
9752
9775
  fill: "none",
9753
9776
  stroke: "none"
9754
- }, null, -1), W3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), I3 = [
9755
- N3,
9756
- W3
9757
- ], Q3 = ["max", "value"], G3 = ["disabled"], z3 = /* @__PURE__ */ S("path", {
9777
+ }, null, -1), I3 = /* @__PURE__ */ S("path", { d: "M15 6l-6 6l6 6" }, null, -1), Q3 = [
9778
+ W3,
9779
+ I3
9780
+ ], G3 = ["max", "value"], z3 = ["disabled"], U3 = /* @__PURE__ */ S("path", {
9758
9781
  d: "M0 0h24v24H0z",
9759
9782
  fill: "none",
9760
9783
  stroke: "none"
9761
- }, null, -1), U3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), $3 = [
9762
- z3,
9763
- U3
9764
- ], K3 = { class: "r-pagination__paginator__total" }, o0 = /* @__PURE__ */ v({
9784
+ }, null, -1), $3 = /* @__PURE__ */ S("path", { d: "M9 6l6 6l-6 6" }, null, -1), K3 = [
9785
+ U3,
9786
+ $3
9787
+ ], j3 = { class: "r-pagination__paginator__total" }, n0 = /* @__PURE__ */ T({
9765
9788
  __name: "RPagination",
9766
9789
  props: {
9767
9790
  page: { default: 1 },
@@ -9773,25 +9796,25 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9773
9796
  },
9774
9797
  emits: ["update:page"],
9775
9798
  setup(H, { emit: V }) {
9776
- const C = H, L = V, A = k(() => Math.ceil(C.totalItems / C.perPage));
9777
- function M(i) {
9778
- i < 1 || i > A.value || L("update:page", i);
9799
+ const C = H, M = V, A = g(() => Math.ceil(C.totalItems / C.perPage));
9800
+ function L(i) {
9801
+ i < 1 || i > A.value || M("update:page", i);
9779
9802
  }
9780
- return (i, e) => (m(), o("div", v3, [
9781
- S("div", F3, [
9782
- i.slash ? s("", !0) : (m(), o("span", R3, b(C.pageText), 1)),
9783
- S("span", x3, b(C.page), 1),
9803
+ return (i, e) => (m(), n("div", F3, [
9804
+ S("div", R3, [
9805
+ i.slash ? c("", !0) : (m(), n("span", x3, b(C.pageText), 1)),
9806
+ S("span", D3, b(C.page), 1),
9784
9807
  S("span", null, b(i.slash ? "/" : C.ofText), 1),
9785
- S("span", D3, b(A.value), 1)
9808
+ S("span", _3, b(A.value), 1)
9786
9809
  ]),
9787
- S("div", _3, [
9810
+ S("div", E3, [
9788
9811
  S("button", {
9789
9812
  class: "r-pagination__paginator__prev",
9790
9813
  disabled: C.page === 1,
9791
- onClick: e[0] || (e[0] = (d) => M(+C.page - 1))
9814
+ onClick: e[0] || (e[0] = (d) => L(+C.page - 1))
9792
9815
  }, [
9793
- h(i.$slots, "prev", {}, () => [
9794
- (m(), o("svg", {
9816
+ f(i.$slots, "prev", {}, () => [
9817
+ (m(), n("svg", {
9795
9818
  class: p({ "stroke-gray-400": C.page === 1 }),
9796
9819
  fill: "none",
9797
9820
  height: "16",
@@ -9802,9 +9825,9 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9802
9825
  viewBox: "0 0 24 24",
9803
9826
  width: "16",
9804
9827
  xmlns: "http://www.w3.org/2000/svg"
9805
- }, I3, 2))
9828
+ }, Q3, 2))
9806
9829
  ])
9807
- ], 8, E3),
9830
+ ], 8, N3),
9808
9831
  S("input", {
9809
9832
  class: "r-pagination__paginator__input",
9810
9833
  max: A.value,
@@ -9813,16 +9836,16 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9813
9836
  value: C.page,
9814
9837
  onBlur: e[1] || (e[1] = (d) => {
9815
9838
  var t;
9816
- return M(+((t = d == null ? void 0 : d.target) == null ? void 0 : t.value));
9839
+ return L(+((t = d == null ? void 0 : d.target) == null ? void 0 : t.value));
9817
9840
  })
9818
- }, null, 40, Q3),
9841
+ }, null, 40, G3),
9819
9842
  S("button", {
9820
9843
  class: "r-pagination__paginator__next",
9821
9844
  disabled: C.page === A.value,
9822
- onClick: e[2] || (e[2] = (d) => M(+C.page + 1))
9845
+ onClick: e[2] || (e[2] = (d) => L(+C.page + 1))
9823
9846
  }, [
9824
- h(i.$slots, "next", {}, () => [
9825
- (m(), o("svg", {
9847
+ f(i.$slots, "next", {}, () => [
9848
+ (m(), n("svg", {
9826
9849
  class: p({ "stroke-gray-400": C.page === A.value }),
9827
9850
  fill: "none",
9828
9851
  height: "16",
@@ -9833,14 +9856,14 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9833
9856
  viewBox: "0 0 24 24",
9834
9857
  width: "16",
9835
9858
  xmlns: "http://www.w3.org/2000/svg"
9836
- }, $3, 2))
9859
+ }, K3, 2))
9837
9860
  ])
9838
- ], 8, G3),
9839
- S("div", K3, " / " + b(A.value), 1)
9861
+ ], 8, z3),
9862
+ S("div", j3, " / " + b(A.value), 1)
9840
9863
  ])
9841
9864
  ]));
9842
9865
  }
9843
- }), j3 = ["value"], n0 = /* @__PURE__ */ v({
9866
+ }), q3 = ["value"], r0 = /* @__PURE__ */ T({
9844
9867
  __name: "RProgressbar",
9845
9868
  props: {
9846
9869
  value: { default: 0 },
@@ -9848,16 +9871,16 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9848
9871
  },
9849
9872
  setup(H) {
9850
9873
  const V = H;
9851
- return (C, L) => (m(), o("progress", {
9874
+ return (C, M) => (m(), n("progress", {
9852
9875
  "aria-valuemax": 100,
9853
9876
  class: "r-progressbar",
9854
9877
  max: 100,
9855
9878
  role: "progressbar",
9856
9879
  style: x1({ height: `${V.height}px` }),
9857
9880
  value: V.value
9858
- }, null, 12, j3));
9881
+ }, null, 12, q3));
9859
9882
  }
9860
- }), w1 = "rocket-ui:r-item-group", r0 = /* @__PURE__ */ v({
9883
+ }), w1 = "rocket-ui:r-item-group", a0 = /* @__PURE__ */ T({
9861
9884
  __name: "RItemGroup",
9862
9885
  props: {
9863
9886
  modelValue: { default: () => [] },
@@ -9870,27 +9893,27 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9870
9893
  },
9871
9894
  emits: ["update:modelValue"],
9872
9895
  setup(H, { emit: V }) {
9873
- const C = H, L = V, A = E(C.as ?? "div"), M = E(C.modelValue ?? []), i = k(() => C.selectedClass);
9896
+ const C = H, M = V, A = E(C.as ?? "div"), L = E(C.modelValue ?? []), i = g(() => C.selectedClass);
9874
9897
  k1(`${w1}:selectedClass`, i.value);
9875
9898
  function e(t) {
9876
- return M.value.includes(t);
9899
+ return L.value.includes(t);
9877
9900
  }
9878
9901
  k1(`${w1}:isSelected`, e);
9879
9902
  function d(t, u) {
9880
- C.disabled || C.mandatory && M.value.length === 1 && u || C.max && M.value.length === C.max && u || (C.multiple ? u ? M.value.push(t) : M.value = M.value.filter((a) => a !== t) : M.value = u ? [t] : [], L("update:modelValue", M.value));
9903
+ C.disabled || C.mandatory && L.value.length === 1 && u || C.max && L.value.length === C.max && u || (C.multiple ? u ? L.value.push(t) : L.value = L.value.filter((Z) => Z !== t) : L.value = u ? [t] : [], M("update:modelValue", L.value));
9881
9904
  }
9882
- return k1(`${w1}:select`, d), (t, u) => (m(), R(h2(A.value), null, {
9905
+ return k1(`${w1}:select`, d), (t, u) => (m(), D(h2(A.value), null, {
9883
9906
  default: n1(() => [
9884
- h(t.$slots, "default", {
9907
+ f(t.$slots, "default", {
9885
9908
  isSelected: e,
9886
9909
  select: d,
9887
- selected: M.value
9910
+ selected: L.value
9888
9911
  })
9889
9912
  ]),
9890
9913
  _: 3
9891
9914
  }));
9892
9915
  }
9893
- }), y1 = "rocket-ui:r-item-group", a0 = /* @__PURE__ */ v({
9916
+ }), y1 = "rocket-ui:r-item-group", Z0 = /* @__PURE__ */ T({
9894
9917
  __name: "RItem",
9895
9918
  props: {
9896
9919
  value: { default: null },
@@ -9898,16 +9921,16 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9898
9921
  selectedClass: { default: "" }
9899
9922
  },
9900
9923
  setup(H) {
9901
- const V = H, C = B1(`${y1}:isSelected`), L = B1(`${y1}:selectedClass`, ""), A = k(() => C(V.value) && [L, V.selectedClass]), M = B1(`${y1}:select`);
9924
+ const V = H, C = B1(`${y1}:isSelected`), M = B1(`${y1}:selectedClass`, ""), A = g(() => C(V.value) && [M, V.selectedClass]), L = B1(`${y1}:select`);
9902
9925
  function i() {
9903
- V.disabled || M(V.value, !C(V.value));
9926
+ V.disabled || L(V.value, !C(V.value));
9904
9927
  }
9905
9928
  function e() {
9906
- V.disabled || M(V.value, !0);
9929
+ V.disabled || L(V.value, !0);
9907
9930
  }
9908
- return (d, t) => h(d.$slots, "default", {
9931
+ return (d, t) => f(d.$slots, "default", {
9909
9932
  disabled: V.disabled,
9910
- isSelected: L1(C)(V.value),
9933
+ isSelected: M1(C)(V.value),
9911
9934
  select: e,
9912
9935
  selectedClass: A.value,
9913
9936
  toggle: i,
@@ -9916,28 +9939,28 @@ const u3 = ["aria-disabled", "aria-selected", "disabled"], S3 = {
9916
9939
  }
9917
9940
  });
9918
9941
  export {
9919
- Y3 as RAccordion,
9920
- X3 as RAlert,
9921
- J3 as RAvatar,
9922
- C0 as RBadge,
9923
- l0 as RBreadcrumb,
9924
- H0 as RButton,
9925
- V0 as RCheckbox,
9942
+ X3 as RAccordion,
9943
+ J3 as RAlert,
9944
+ C0 as RAvatar,
9945
+ H0 as RBadge,
9946
+ o0 as RBreadcrumb,
9947
+ V0 as RButton,
9948
+ L0 as RCheckbox,
9926
9949
  X2 as RChip,
9927
- L0 as RDropdown,
9950
+ M0 as RDropdown,
9928
9951
  x as RIcon,
9929
- a0 as RItem,
9930
- r0 as RItemGroup,
9952
+ Z0 as RItem,
9953
+ a0 as RItemGroup,
9931
9954
  r2 as RLabel,
9932
- M0 as RModal,
9933
- o0 as RPagination,
9934
- n0 as RProgressbar,
9935
- A0 as RSidebar,
9936
- i0 as RSnackbar,
9937
- e0 as RSwitch,
9938
- s3 as RTabItem,
9939
- d0 as RTabs,
9940
- t0 as RTextArea,
9941
- m0 as RTextfield,
9955
+ A0 as RModal,
9956
+ n0 as RPagination,
9957
+ r0 as RProgressbar,
9958
+ i0 as RSidebar,
9959
+ e0 as RSnackbar,
9960
+ d0 as RSwitch,
9961
+ c3 as RTabItem,
9962
+ t0 as RTabs,
9963
+ m0 as RTextArea,
9964
+ l0 as RTextfield,
9942
9965
  N5 as RTooltip
9943
9966
  };