@rocketui/vue 0.0.92 → 0.0.94

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