@rocketui/vue 0.1.25 → 0.2.0

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