@rocketui/vue 0.2.39-alpha.6 → 0.2.39-alpha.8

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