@rocketui/vue 0.2.71-beta → 0.2.72

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