@rocketui/vue 0.2.39-alpha.7 → 0.2.39

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