@rocketui/vue 0.2.69 → 0.2.71-beta

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