@toife/vue 3.2.6 → 3.2.7

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 (299) hide show
  1. package/package.json +19 -20
  2. package/src/components/action/action.composable.ts +32 -0
  3. package/src/components/action/action.html +25 -0
  4. package/src/components/action/action.vue +69 -0
  5. package/src/components/action/index.ts +2 -0
  6. package/src/components/app/app.html +24 -0
  7. package/src/components/app/app.vue +45 -0
  8. package/src/components/app/index.ts +1 -0
  9. package/src/components/avatar/avatar.html +3 -0
  10. package/src/components/avatar/avatar.vue +35 -0
  11. package/src/components/avatar/index.ts +1 -0
  12. package/src/components/button/button.html +6 -0
  13. package/src/components/button/button.vue +54 -0
  14. package/src/components/button/index.ts +1 -0
  15. package/src/components/cable/cable.html +3 -0
  16. package/src/components/cable/cable.vue +33 -0
  17. package/src/components/cable/index.ts +1 -0
  18. package/src/components/card/card/card.html +3 -0
  19. package/src/components/card/card/card.vue +52 -0
  20. package/src/components/card/card/index.ts +1 -0
  21. package/src/components/card/card-body/card-body.html +3 -0
  22. package/src/components/card/card-body/card-body.vue +6 -0
  23. package/src/components/card/card-body/index.ts +1 -0
  24. package/src/components/card/card-footer/card-footer.html +3 -0
  25. package/src/components/card/card-footer/card-footer.vue +18 -0
  26. package/src/components/card/card-footer/index.ts +1 -0
  27. package/src/components/card/card-header/card-header.html +3 -0
  28. package/src/components/card/card-header/card-header.vue +18 -0
  29. package/src/components/card/card-header/index.ts +1 -0
  30. package/src/components/card/index.ts +4 -0
  31. package/src/components/checkbox/checkbox.html +12 -0
  32. package/src/components/checkbox/checkbox.vue +74 -0
  33. package/src/components/checkbox/index.ts +1 -0
  34. package/src/components/collapse/collapse.html +16 -0
  35. package/src/components/collapse/collapse.vue +126 -0
  36. package/src/components/collapse/index.ts +1 -0
  37. package/src/components/container/container.html +1 -0
  38. package/src/components/container/container.vue +7 -0
  39. package/src/components/container/index.ts +1 -0
  40. package/src/components/decision-modal/decision-modal.composable.ts +33 -0
  41. package/src/components/decision-modal/decision-modal.html +29 -0
  42. package/src/components/decision-modal/decision-modal.vue +76 -0
  43. package/src/components/decision-modal/index.ts +2 -0
  44. package/src/components/divider/divider.html +1 -0
  45. package/src/components/divider/divider.vue +26 -0
  46. package/src/components/divider/index.ts +1 -0
  47. package/src/components/dropdown/dropdown.html +6 -0
  48. package/src/components/dropdown/dropdown.vue +101 -0
  49. package/src/components/dropdown/index.ts +1 -0
  50. package/src/components/field/field.html +30 -0
  51. package/src/components/field/field.vue +121 -0
  52. package/src/components/field/index.ts +1 -0
  53. package/src/components/form-group/form-group.html +3 -0
  54. package/src/components/form-group/form-group.vue +15 -0
  55. package/src/components/form-group/index.ts +1 -0
  56. package/src/components/gesture-indicator/gesture-indicator.html +1 -0
  57. package/src/components/gesture-indicator/gesture-indicator.vue +32 -0
  58. package/src/components/gesture-indicator/index.ts +1 -0
  59. package/src/components/image/image.html +1 -0
  60. package/src/components/image/image.vue +32 -0
  61. package/src/components/image/index.ts +1 -0
  62. package/src/components/index.ts +32 -0
  63. package/src/components/layout/flex/flex.html +1 -0
  64. package/src/components/layout/flex/flex.vue +15 -0
  65. package/src/components/layout/flex/index.ts +1 -0
  66. package/src/components/layout/flex-item/flex-item.html +1 -0
  67. package/src/components/layout/flex-item/flex-item.vue +11 -0
  68. package/src/components/layout/flex-item/index.ts +1 -0
  69. package/src/components/layout/grid/grid.html +1 -0
  70. package/src/components/layout/grid/grid.vue +15 -0
  71. package/src/components/layout/grid/index.ts +1 -0
  72. package/src/components/layout/grid-item/grid-item.html +1 -0
  73. package/src/components/layout/grid-item/grid-item.vue +11 -0
  74. package/src/components/layout/grid-item/index.ts +1 -0
  75. package/src/components/layout/index.ts +4 -0
  76. package/src/components/modal/index.ts +1 -0
  77. package/src/components/modal/modal.html +20 -0
  78. package/src/components/modal/modal.vue +248 -0
  79. package/src/components/page/index.ts +1 -0
  80. package/src/components/page/page.html +3 -0
  81. package/src/components/page/page.vue +7 -0
  82. package/src/components/present/index.ts +2 -0
  83. package/src/components/present/present.composable.ts +22 -0
  84. package/src/components/present/present.html +11 -0
  85. package/src/components/present/present.vue +234 -0
  86. package/src/components/radio/index.ts +2 -0
  87. package/src/components/radio/radio/index.ts +1 -0
  88. package/src/components/radio/radio/radio.html +11 -0
  89. package/src/components/radio/radio/radio.vue +84 -0
  90. package/src/components/radio/radio-group/index.ts +1 -0
  91. package/src/components/radio/radio-group/radio-group.html +3 -0
  92. package/src/components/radio/radio-group/radio-group.vue +59 -0
  93. package/src/components/refresher/index.ts +1 -0
  94. package/src/components/refresher/refresher.html +3 -0
  95. package/src/components/refresher/refresher.vue +100 -0
  96. package/src/components/route/index.ts +5 -0
  97. package/src/components/route/route-navigator/index.ts +1 -0
  98. package/src/components/route/route-navigator/route-navigator.html +19 -0
  99. package/src/components/route/route-navigator/route-navigator.vue +254 -0
  100. package/src/components/route/route-outlet/index.ts +1 -0
  101. package/src/components/route/route-outlet/route-outlet.html +1 -0
  102. package/src/components/route/route-outlet/route-outlet.vue +39 -0
  103. package/src/components/route/route-provider/index.ts +1 -0
  104. package/src/components/route/route-provider/route-provider.html +1 -0
  105. package/src/components/route/route-provider/route-provider.vue +24 -0
  106. package/src/components/route/route-wrapper/index.ts +2 -0
  107. package/src/components/route/route-wrapper/route-wrapper.composable.ts +49 -0
  108. package/src/components/route/route-wrapper/route-wrapper.html +3 -0
  109. package/src/components/route/route-wrapper/route-wrapper.vue +44 -0
  110. package/src/components/route/route.util.ts +9 -0
  111. package/src/components/segmented-field/index.ts +1 -0
  112. package/src/components/segmented-field/segmented-field.html +16 -0
  113. package/src/components/segmented-field/segmented-field.vue +243 -0
  114. package/src/components/select/index.ts +1 -0
  115. package/src/components/select/select.html +28 -0
  116. package/src/components/select/select.vue +101 -0
  117. package/src/components/skeleton/index.ts +1 -0
  118. package/src/components/skeleton/skeleton.html +1 -0
  119. package/src/components/skeleton/skeleton.vue +33 -0
  120. package/src/components/slide-range/index.ts +1 -0
  121. package/src/components/slide-range/slide-range.html +20 -0
  122. package/src/components/slide-range/slide-range.vue +269 -0
  123. package/src/components/switch/index.ts +1 -0
  124. package/src/components/switch/switch.html +14 -0
  125. package/src/components/switch/switch.vue +86 -0
  126. package/src/components/tabs/index.ts +2 -0
  127. package/src/components/tabs/tab/index.ts +1 -0
  128. package/src/components/tabs/tab/tab.html +5 -0
  129. package/src/components/tabs/tab/tab.vue +34 -0
  130. package/src/components/tabs/tabs/index.ts +1 -0
  131. package/src/components/tabs/tabs/tabs.html +3 -0
  132. package/src/components/tabs/tabs/tabs.vue +151 -0
  133. package/src/components/tag/index.ts +1 -0
  134. package/src/components/tag/tag.html +1 -0
  135. package/src/components/tag/tag.vue +33 -0
  136. package/src/components/toast/index.ts +3 -0
  137. package/src/components/toast/toast/index.ts +1 -0
  138. package/src/components/toast/toast/toast.html +9 -0
  139. package/src/components/toast/toast/toast.vue +28 -0
  140. package/src/components/toast/toast-content/index.ts +1 -0
  141. package/src/components/toast/toast-content/toast-content.html +1 -0
  142. package/src/components/toast/toast-content/toast-content.vue +51 -0
  143. package/src/components/toast/toast.composable.ts +22 -0
  144. package/src/components/toolbar/index.ts +1 -0
  145. package/src/components/toolbar/toolbar.html +3 -0
  146. package/src/components/toolbar/toolbar.vue +39 -0
  147. package/src/env.d.ts +7 -0
  148. package/src/factory.ts +162 -0
  149. package/src/index.ts +4 -0
  150. package/src/shared/provider-state.ts +8 -0
  151. package/src/types.ts +4 -0
  152. package/dist/components/action/action.composable.d.ts +0 -44
  153. package/dist/components/action/action.vue.d.ts +0 -16
  154. package/dist/components/action/index.d.ts +0 -2
  155. package/dist/components/app/app.vue.d.ts +0 -11
  156. package/dist/components/app/index.d.ts +0 -1
  157. package/dist/components/avatar/avatar.vue.d.ts +0 -8
  158. package/dist/components/avatar/index.d.ts +0 -1
  159. package/dist/components/button/button.vue.d.ts +0 -9
  160. package/dist/components/button/index.d.ts +0 -1
  161. package/dist/components/cable/cable.vue.d.ts +0 -6
  162. package/dist/components/cable/index.d.ts +0 -1
  163. package/dist/components/card/card/card.vue.d.ts +0 -7
  164. package/dist/components/card/card/index.d.ts +0 -1
  165. package/dist/components/card/card-body/card-body.vue.d.ts +0 -2
  166. package/dist/components/card/card-body/index.d.ts +0 -1
  167. package/dist/components/card/card-footer/card-footer.vue.d.ts +0 -2
  168. package/dist/components/card/card-footer/index.d.ts +0 -1
  169. package/dist/components/card/card-header/card-header.vue.d.ts +0 -2
  170. package/dist/components/card/card-header/index.d.ts +0 -1
  171. package/dist/components/card/index.d.ts +0 -4
  172. package/dist/components/checkbox/checkbox.vue.d.ts +0 -18
  173. package/dist/components/checkbox/index.d.ts +0 -1
  174. package/dist/components/collapse/collapse.vue.d.ts +0 -12
  175. package/dist/components/collapse/index.d.ts +0 -1
  176. package/dist/components/container/container.vue.d.ts +0 -2
  177. package/dist/components/container/index.d.ts +0 -1
  178. package/dist/components/decision-modal/decision-modal.composable.d.ts +0 -46
  179. package/dist/components/decision-modal/decision-modal.vue.d.ts +0 -16
  180. package/dist/components/decision-modal/index.d.ts +0 -2
  181. package/dist/components/divider/divider.vue.d.ts +0 -5
  182. package/dist/components/divider/index.d.ts +0 -1
  183. package/dist/components/dropdown/dropdown.vue.d.ts +0 -20
  184. package/dist/components/dropdown/index.d.ts +0 -1
  185. package/dist/components/field/field.vue.d.ts +0 -30
  186. package/dist/components/field/index.d.ts +0 -1
  187. package/dist/components/form-group/form-group.vue.d.ts +0 -5
  188. package/dist/components/form-group/index.d.ts +0 -1
  189. package/dist/components/gesture-indicator/gesture-indicator.vue.d.ts +0 -6
  190. package/dist/components/gesture-indicator/index.d.ts +0 -1
  191. package/dist/components/image/image.vue.d.ts +0 -3
  192. package/dist/components/image/index.d.ts +0 -1
  193. package/dist/components/index.d.ts +0 -32
  194. package/dist/components/layout/flex/flex.vue.d.ts +0 -5
  195. package/dist/components/layout/flex/index.d.ts +0 -1
  196. package/dist/components/layout/flex-item/flex-item.vue.d.ts +0 -5
  197. package/dist/components/layout/flex-item/index.d.ts +0 -1
  198. package/dist/components/layout/grid/grid.vue.d.ts +0 -5
  199. package/dist/components/layout/grid/index.d.ts +0 -1
  200. package/dist/components/layout/grid-item/grid-item.vue.d.ts +0 -5
  201. package/dist/components/layout/grid-item/index.d.ts +0 -1
  202. package/dist/components/layout/index.d.ts +0 -4
  203. package/dist/components/modal/index.d.ts +0 -1
  204. package/dist/components/modal/modal.vue.d.ts +0 -17
  205. package/dist/components/page/index.d.ts +0 -1
  206. package/dist/components/page/page.vue.d.ts +0 -2
  207. package/dist/components/present/index.d.ts +0 -2
  208. package/dist/components/present/present.composable.d.ts +0 -5
  209. package/dist/components/present/present.vue.d.ts +0 -18
  210. package/dist/components/radio/index.d.ts +0 -2
  211. package/dist/components/radio/radio/index.d.ts +0 -1
  212. package/dist/components/radio/radio/radio.vue.d.ts +0 -7
  213. package/dist/components/radio/radio-group/index.d.ts +0 -1
  214. package/dist/components/radio/radio-group/radio-group.vue.d.ts +0 -13
  215. package/dist/components/refresher/index.d.ts +0 -1
  216. package/dist/components/refresher/refresher.vue.d.ts +0 -12
  217. package/dist/components/route/index.d.ts +0 -5
  218. package/dist/components/route/route-navigator/index.d.ts +0 -1
  219. package/dist/components/route/route-navigator/route-navigator.vue.d.ts +0 -11
  220. package/dist/components/route/route-outlet/index.d.ts +0 -1
  221. package/dist/components/route/route-outlet/route-outlet.vue.d.ts +0 -5
  222. package/dist/components/route/route-provider/index.d.ts +0 -1
  223. package/dist/components/route/route-provider/route-provider.vue.d.ts +0 -3
  224. package/dist/components/route/route-wrapper/index.d.ts +0 -2
  225. package/dist/components/route/route-wrapper/route-wrapper.composable.d.ts +0 -6
  226. package/dist/components/route/route-wrapper/route-wrapper.vue.d.ts +0 -5
  227. package/dist/components/route/route.util.d.ts +0 -3
  228. package/dist/components/segmented-field/index.d.ts +0 -1
  229. package/dist/components/segmented-field/segmented-field.vue.d.ts +0 -28
  230. package/dist/components/select/index.d.ts +0 -1
  231. package/dist/components/select/select.vue.d.ts +0 -19
  232. package/dist/components/skeleton/index.d.ts +0 -1
  233. package/dist/components/skeleton/skeleton.vue.d.ts +0 -6
  234. package/dist/components/slide-range/index.d.ts +0 -1
  235. package/dist/components/slide-range/slide-range.vue.d.ts +0 -18
  236. package/dist/components/switch/index.d.ts +0 -1
  237. package/dist/components/switch/switch.vue.d.ts +0 -13
  238. package/dist/components/tabs/index.d.ts +0 -2
  239. package/dist/components/tabs/tab/index.d.ts +0 -1
  240. package/dist/components/tabs/tab/tab.vue.d.ts +0 -5
  241. package/dist/components/tabs/tabs/index.d.ts +0 -1
  242. package/dist/components/tabs/tabs/tabs.vue.d.ts +0 -14
  243. package/dist/components/tag/index.d.ts +0 -1
  244. package/dist/components/tag/tag.vue.d.ts +0 -6
  245. package/dist/components/toast/index.d.ts +0 -3
  246. package/dist/components/toast/toast/index.d.ts +0 -1
  247. package/dist/components/toast/toast/toast.vue.d.ts +0 -5
  248. package/dist/components/toast/toast-content/index.d.ts +0 -1
  249. package/dist/components/toast/toast-content/toast-content.vue.d.ts +0 -11
  250. package/dist/components/toast/toast.composable.d.ts +0 -22
  251. package/dist/components/toolbar/index.d.ts +0 -1
  252. package/dist/components/toolbar/toolbar.vue.d.ts +0 -7
  253. package/dist/factory.d.ts +0 -38
  254. package/dist/index.d.ts +0 -3
  255. package/dist/index.es.js +0 -3521
  256. package/dist/index.umd.js +0 -1
  257. package/dist/shared/provider-state.d.ts +0 -5
  258. package/dist/styles/action.css +0 -1
  259. package/dist/styles/app.css +0 -1
  260. package/dist/styles/avatar.css +0 -1
  261. package/dist/styles/button.css +0 -1
  262. package/dist/styles/cable.css +0 -1
  263. package/dist/styles/card-body.css +0 -1
  264. package/dist/styles/card-footer.css +0 -1
  265. package/dist/styles/card-header.css +0 -1
  266. package/dist/styles/card.css +0 -1
  267. package/dist/styles/checkbox.css +0 -1
  268. package/dist/styles/collapse.css +0 -1
  269. package/dist/styles/container.css +0 -1
  270. package/dist/styles/decision-modal.css +0 -1
  271. package/dist/styles/divider.css +0 -1
  272. package/dist/styles/dropdown.css +0 -1
  273. package/dist/styles/field.css +0 -1
  274. package/dist/styles/flex-item.css +0 -1
  275. package/dist/styles/flex.css +0 -1
  276. package/dist/styles/form-group.css +0 -1
  277. package/dist/styles/gesture-indicator.css +0 -1
  278. package/dist/styles/grid-item.css +0 -1
  279. package/dist/styles/grid.css +0 -1
  280. package/dist/styles/index.css +0 -40
  281. package/dist/styles/modal.css +0 -1
  282. package/dist/styles/page.css +0 -1
  283. package/dist/styles/present.css +0 -1
  284. package/dist/styles/radio-group.css +0 -1
  285. package/dist/styles/radio.css +0 -1
  286. package/dist/styles/refresher.css +0 -1
  287. package/dist/styles/route-navigator.css +0 -1
  288. package/dist/styles/segmented-field.css +0 -1
  289. package/dist/styles/select.css +0 -1
  290. package/dist/styles/skeleton.css +0 -1
  291. package/dist/styles/slide-range.css +0 -1
  292. package/dist/styles/switch.css +0 -1
  293. package/dist/styles/tab.css +0 -1
  294. package/dist/styles/tabs.css +0 -1
  295. package/dist/styles/tag.css +0 -1
  296. package/dist/styles/toast-content.css +0 -1
  297. package/dist/styles/toast.css +0 -1
  298. package/dist/styles/toolbar.css +0 -1
  299. package/dist/types.d.ts +0 -4
package/dist/index.es.js DELETED
@@ -1,3521 +0,0 @@
1
- import { ref as _, defineComponent as C, inject as y, computed as c, unref as u, onMounted as q, mergeDefaults as G, openBlock as m, createElementBlock as T, normalizeProps as w, guardReactiveProps as z, toDisplayString as ie, mergeProps as K, renderSlot as B, Fragment as de, renderList as ue, createBlock as ee, createCommentVNode as te, reactive as Ee, nextTick as re, watch as W, Teleport as Pn, withDirectives as fe, vShow as Re, createElementVNode as H, withCtx as ae, createTextVNode as an, toRefs as ke, provide as ne, createVNode as le, onUnmounted as oe, normalizeStyle as Tn, normalizeClass as sn, vModelText as Sn, vModelDynamic as En, markRaw as Xe, resolveDynamicComponent as Rn, shallowRef as kn, withKeys as On, withModifiers as ln } from "vue";
2
- import { gesture as pe } from "@toife/gesture";
3
- import { useRouter as Oe, useRoute as qe } from "vue-router";
4
- const be = _([]), wn = _(1), Je = () => ({
5
- messages: be,
6
- open: (n) => {
7
- be.value.push({ ...n, id: wn.value++ });
8
- },
9
- close: (n) => {
10
- be.value = be.value.filter((e) => e.id !== n);
11
- }
12
- }), Dn = (t) => !t || !(t instanceof HTMLElement) ? !1 : t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable, In = () => {
13
- const t = document.activeElement;
14
- t instanceof HTMLElement && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
15
- }, xn = () => {
16
- document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
17
- Dn(t.target) || In();
18
- }), "virtualKeyboard" in navigator && navigator.virtualKeyboard && (navigator.virtualKeyboard.overlaysContent = !0);
19
- };
20
- let Le = null, $e = null;
21
- const Cn = () => ($e || ($e = getComputedStyle(document.documentElement).getPropertyValue("--separator").trim()), $e), Fn = () => (Le || (Le = getComputedStyle(document.documentElement).getPropertyValue("--prefix").trim()), Le), i = (t) => {
22
- const r = Fn(), n = Cn();
23
- let e = [];
24
- return typeof t == "string" ? e = [t] : e = [...t], r && (e = [r, ...e]), e.filter((o) => o != null && o !== "").join(n);
25
- }, I = (t) => `--${i(t)}`, cs = (t) => `var(${I(t)})`, Qe = {
26
- visible: !1,
27
- shape: void 0,
28
- role: void 0,
29
- placement: "bottom",
30
- divider: void 0,
31
- shadow: void 0
32
- }, Ze = (t) => ({
33
- class: [
34
- i("action"),
35
- i(["layer", "action"]),
36
- i(["role", t.role]),
37
- i(["shape", t.shape]),
38
- t.placement,
39
- {
40
- pop: t.pop,
41
- divider: t.divider,
42
- shadow: t.shadow
43
- }
44
- ]
45
- }), R = "app-state", et = {
46
- shape: "pill",
47
- divider: !1,
48
- role: "mode",
49
- shadow: !1,
50
- triple: !1,
51
- direction: "left",
52
- data: () => ({})
53
- }, tt = (t) => ({
54
- class: [
55
- i("app"),
56
- i(["layer", "app"]),
57
- i(["shape", t.shape])
58
- ]
59
- }), rt = {
60
- size: "22px",
61
- src: "",
62
- role: void 0,
63
- divider: void 0
64
- }, nt = (t) => ({
65
- class: [
66
- i("avatar"),
67
- i(["layer", "avatar"]),
68
- i(["role", t.role]),
69
- i(["shape", t.shape]),
70
- { divider: t.divider }
71
- ],
72
- style: {
73
- [I("width")]: t.size + (typeof t.size == "number" ? "px" : ""),
74
- backgroundImage: t.src ? `url(${t.src})` : void 0
75
- }
76
- }), ot = {
77
- size: "standard",
78
- block: !1,
79
- loading: !1,
80
- variant: "fill",
81
- shadow: void 0
82
- }, at = (t) => ({
83
- class: [
84
- i(["layer", "button"]),
85
- i(["role", t.role + "-" + t.variant]),
86
- i(["shape", t.shape]),
87
- i("button"),
88
- i(["size", t.size]),
89
- {
90
- block: t.block,
91
- shadow: t.shadow,
92
- focus: t.focus
93
- }
94
- ]
95
- }), st = () => ({
96
- class: [i("loader")]
97
- }), we = "cable-state", lt = {
98
- keyboard: !1,
99
- placement: "bottom"
100
- }, it = (t) => ({
101
- class: [i(["layer", "cable"]), i("cable"), t.placement]
102
- }), ve = "card-state", ct = {
103
- divider: void 0,
104
- shape: void 0,
105
- role: void 0
106
- }, dt = (t) => ({
107
- class: [
108
- i(["layer", "card"]),
109
- i(["role", t.role]),
110
- i(["shape", t.shape]),
111
- i("card"),
112
- { divider: t.divider }
113
- ]
114
- }), ut = (t) => ({
115
- class: [i("card-header"), { divider: t.divider }]
116
- }), pt = (t) => ({
117
- class: [i("card-footer"), { divider: t.divider }]
118
- }), _t = () => ({
119
- class: [i("card-body")]
120
- }), ft = {
121
- modelValue: !1,
122
- disabled: !1,
123
- size: "standard",
124
- variant: "fill",
125
- readonly: !1,
126
- shadow: void 0
127
- }, vt = (t) => ({
128
- class: [
129
- i(["layer", "checkbox"]),
130
- i(["role", t.role + "-" + t.variant]),
131
- i(["shape", t.shape]),
132
- i(["size", t.size]),
133
- i("checkbox"),
134
- {
135
- on: t.modelValue,
136
- disabled: t.disabled,
137
- readonly: t.readonly,
138
- shadow: t.shadow,
139
- focus: t.focus
140
- }
141
- ]
142
- }), mt = () => ({
143
- class: [i("checkbox-icon")]
144
- }), gt = {
145
- modelValue: !1,
146
- duration: void 0,
147
- role: void 0,
148
- disabled: !1
149
- }, ht = (t) => ({
150
- class: [
151
- i(["layer", "collapse"]),
152
- i(["role", t.role]),
153
- i("collapse"),
154
- { open: t.open, disabled: t.disabled }
155
- ]
156
- }), bt = (t) => ({
157
- class: [i("collapse-trigger")],
158
- "aria-expanded": t.open,
159
- "aria-disabled": t.disabled
160
- }), At = (t) => ({
161
- class: [i("collapse-content"), { transition: t.transition }],
162
- style: {
163
- [I("duration")]: t.duration,
164
- [I("height")]: t.height
165
- }
166
- }), yt = () => i("collapse-content-inner"), Pt = () => ({
167
- class: [i("container")]
168
- }), Tt = {
169
- placement: "center",
170
- keepalive: !1,
171
- visible: !1,
172
- shape: void 0,
173
- role: void 0,
174
- divider: void 0,
175
- flow: "row"
176
- }, St = (t) => ({
177
- class: [
178
- i(["layer", "modal"]),
179
- i(["role", t.role]),
180
- i(["shape", t.shape]),
181
- i("decision-modal"),
182
- { pop: t.pop, divider: t.divider }
183
- ]
184
- }), Et = () => ({
185
- class: [i("decision-modal-header")]
186
- }), Rt = () => ({
187
- class: [i("decision-modal-body")]
188
- }), kt = (t) => ({
189
- class: [i("decision-modal-footer"), `actions-flow-${t.flow}`]
190
- }), Ot = {
191
- direction: "horizontal"
192
- }, wt = (t) => ({
193
- class: [
194
- i(["layer", "divider"]),
195
- i(["role", t.role]),
196
- i("divider"),
197
- { [t.direction]: !0 }
198
- ]
199
- }), Dt = {
200
- modelValue: !1,
201
- disabled: !1,
202
- placement: "bottom-start",
203
- role: void 0,
204
- shadow: void 0,
205
- shape: void 0,
206
- direction: void 0,
207
- size: "standard"
208
- }, It = (t) => ({
209
- class: [
210
- i(["layer", "dropdown"]),
211
- i(["role", t.role]),
212
- i(["shape", t.shape]),
213
- i(["size", t.size]),
214
- i("dropdown"),
215
- { open: t.open, disabled: t.disabled, shadow: t.shadow }
216
- ]
217
- }), xt = (t) => ({
218
- class: [i("dropdown-panel"), t.placement]
219
- }), Ct = {
220
- modelValue: "",
221
- type: "text",
222
- size: "standard",
223
- role: void 0,
224
- shape: void 0,
225
- disabled: !1,
226
- readonly: !1,
227
- message: "",
228
- variant: "outline",
229
- placeholder: "",
230
- shadow: void 0,
231
- direction: void 0,
232
- line: 1,
233
- maxLine: 1
234
- }, Ft = (t) => ({
235
- class: [
236
- i(["layer", "field"]),
237
- i(["role", t.role + "-" + t.variant]),
238
- i(["shape", t.shape]),
239
- i("field"),
240
- i(["size", t.size]),
241
- i(["direction", t.direction]),
242
- t.type,
243
- {
244
- disabled: t.disabled,
245
- focus: t.focus,
246
- shadow: t.shadow,
247
- readonly: t.readonly
248
- }
249
- ],
250
- style: {
251
- [I("line")]: t.line,
252
- [I("max-line")]: t.maxLine || t.line
253
- }
254
- }), Bt = () => ({ class: [i("field-content")] }), Vt = () => ({ class: [i("field-input")] }), Lt = () => ({ class: [i("field-message")] }), $t = {
255
- direction: "horizontal"
256
- }, zt = (t) => ({
257
- class: [i("form-group"), t.direction]
258
- }), Ut = {
259
- placement: "bottom",
260
- role: void 0
261
- }, Mt = (t) => ({
262
- class: [
263
- i(["layer", "gesture-indicator"]),
264
- i(["role", t.role]),
265
- i("gesture-indicator"),
266
- t.placement
267
- ]
268
- }), Kt = {
269
- options: () => []
270
- }, Nt = {
271
- options: () => []
272
- }, jt = {
273
- options: () => []
274
- }, Gt = {
275
- options: () => []
276
- }, Yt = (t) => ({
277
- class: [i("grid")],
278
- style: t.map((r) => ({
279
- [I(["gap", r?.breakpoint || ""])]: typeof r.gap == "number" ? `${r.gap}px` : r.gap,
280
- [I(["columns", r?.breakpoint || ""])]: r.columns,
281
- [I(["rows", r?.breakpoint || ""])]: r.rows,
282
- [I(["auto-flow", r?.breakpoint || ""])]: r.autoFlow
283
- }))
284
- }), Ht = (t) => ({
285
- class: [i("grid-item")],
286
- style: t.map((r) => ({
287
- [I(["row", r?.breakpoint || ""])]: r.row,
288
- [I(["column", r?.breakpoint || ""])]: r.column,
289
- [I(["justify", r?.breakpoint || ""])]: r.justify,
290
- [I(["align", r?.breakpoint || ""])]: r.align
291
- }))
292
- }), Wt = (t) => ({
293
- class: [i("flex")],
294
- style: t.map((r) => ({
295
- [I(["gap", r?.breakpoint || ""])]: typeof r.gap == "number" ? `${r.gap}px` : r.gap,
296
- [I(["direction", r?.breakpoint || ""])]: r.direction,
297
- [I(["wrap", r?.breakpoint || ""])]: r.wrap,
298
- [I(["justify", r?.breakpoint || ""])]: r.justify,
299
- [I(["align", r?.breakpoint || ""])]: r.align
300
- }))
301
- }), Xt = (t) => ({
302
- class: [i("flex-item")],
303
- style: t.map((r) => ({
304
- [I(["grow", r?.breakpoint || ""])]: r.grow,
305
- [I(["shrink", r?.breakpoint || ""])]: r.shrink,
306
- [I(["basis", r?.breakpoint || ""])]: r.basis,
307
- [I(["order", r?.breakpoint || ""])]: r.order
308
- }))
309
- }), qt = ["auto", "scroll", "overlay"], Jt = {
310
- backdrop: "display",
311
- keepalive: !0,
312
- visible: !1,
313
- gesture: !0,
314
- fullscreen: !1,
315
- placement: "bottom",
316
- indicator: !0,
317
- duration: 200,
318
- bounce: 0
319
- }, Qt = (t) => ({
320
- class: [
321
- i(["layer", "modal"]),
322
- i(["role", t.role]),
323
- i(["shape", t.shape]),
324
- i("modal"),
325
- { fullscreen: t.fullscreen, [t.placement]: !0 },
326
- t.className
327
- ],
328
- style: t.style
329
- }), Zt = () => ({
330
- class: [i("page")]
331
- }), er = {
332
- keepalive: !1,
333
- visible: !1,
334
- backdrop: "display",
335
- duration: 200,
336
- placement: "bottom",
337
- bounce: !1
338
- }, tr = {
339
- backdropTransitionDuration: "0.2s",
340
- backdropOpacity: void 0,
341
- presentTransitionDuration: "0.2s",
342
- presentTranslate: "0px",
343
- presentOpacity: 1
344
- }, ze = () => "." + i("app"), rr = (t) => ({
345
- class: [i(["layer", "backdrop"]), i("present-backdrop")],
346
- style: {
347
- zIndex: t.zIndex,
348
- [I("transition-duration")]: t.backdropTransitionDuration,
349
- [I("opacity")]: t.backdropOpacity
350
- }
351
- }), nr = (t) => ({
352
- class: [i("present"), t.className, t.placement],
353
- style: [
354
- {
355
- zIndex: t.zIndex,
356
- [I("transition-duration")]: t.presentTransitionDuration,
357
- [I("translate")]: t.presentTranslate,
358
- [I("opacity")]: t.presentOpacity
359
- },
360
- t.style
361
- ]
362
- }), De = "radio-group-state", or = {
363
- disabled: !1,
364
- readonly: !1,
365
- variant: "fill",
366
- direction: "vertical",
367
- shadow: void 0
368
- }, ar = {
369
- disabled: !1,
370
- size: "standard",
371
- shadow: void 0
372
- }, sr = (t) => ({
373
- class: [
374
- i(["layer", "radio"]),
375
- i(["role", t.role + "-" + t.variant]),
376
- i(["size", t.size]),
377
- i("radio"),
378
- {
379
- on: t.checked,
380
- disabled: t.disabled,
381
- readonly: t.readonly,
382
- shadow: t.shadow,
383
- focus: t.focus
384
- }
385
- ]
386
- }), lr = () => ({
387
- class: [i("radio-icon")]
388
- }), ir = (t) => ({
389
- class: [i("radio-group"), t.direction]
390
- }), cr = () => ({
391
- class: [i("refresher")]
392
- }), dr = {
393
- direction: "right",
394
- variant: "none",
395
- keepalive: !1
396
- }, Ie = "route-provider-state", ur = {
397
- homeRouteName: "home"
398
- }, Bn = (t) => t.variant === "none" ? "0s" : t.transform.duration !== void 0 ? t.transform.duration : t.transform.active > 0 ? "0s" : void 0, pr = (t) => ({
399
- class: [
400
- i("route-navigator"),
401
- t.direction,
402
- t.variant,
403
- { moving: t.moving }
404
- ],
405
- style: {
406
- [I("transform-back")]: t.transform.back + "%",
407
- [I("transform-prepare")]: t.transform.prepare + "%",
408
- [I("transform-active")]: t.transform.active + "%",
409
- [I("transition-duration")]: Bn(t),
410
- [I("percent")]: t.transform.backdrop
411
- }
412
- }), _r = (t) => ({
413
- class: [i("route-navigator-component"), t.direction]
414
- }), fr = (t) => ({
415
- class: [i("route-navigator-backdrop"), i(["layer", "backdrop"])],
416
- style: { zIndex: t.zIndex }
417
- }), vr = {
418
- modelValue: void 0,
419
- value: void 0,
420
- direction: void 0,
421
- length: 6,
422
- variant: "outline",
423
- size: "standard",
424
- disabled: !1,
425
- readonly: !1,
426
- type: "text",
427
- shadow: void 0,
428
- message: "",
429
- pattern: () => []
430
- }, mr = (t) => ({
431
- class: [
432
- i("segmented-field-wrapper"),
433
- i(["layer", "segmented-field"]),
434
- i(["role", t.role + "-" + t.variant]),
435
- i(["shape", t.shape]),
436
- i(["direction", t.direction]),
437
- t.size,
438
- { disabled: t.disabled }
439
- ]
440
- }), gr = () => ({
441
- class: [i("segmented-field-content")]
442
- }), hr = () => ({
443
- class: [i("segmented-field-message")]
444
- }), br = {
445
- modelValue: "",
446
- size: "standard",
447
- disabled: !1,
448
- message: "",
449
- variant: "outline",
450
- placeholder: "",
451
- shadow: void 0,
452
- direction: void 0,
453
- options: () => []
454
- }, Ar = (t) => ({
455
- class: [
456
- i(["layer", "select"]),
457
- i(["role", t.role]),
458
- i("select"),
459
- i(["direction", t.direction]),
460
- i(["size", t.size]),
461
- { disabled: t.disabled }
462
- ]
463
- }), yr = () => ({ class: [i("select-icon")] }), Pr = () => ({ class: [i("select-option")] }), Tr = () => ({ class: [i("select-message")] }), Sr = {
464
- width: "100%",
465
- height: "1rem"
466
- }, Er = (t) => ({
467
- class: [
468
- i(["layer", "skeleton"]),
469
- i(["role", t.role]),
470
- i(["shape", t.shape]),
471
- i("skeleton")
472
- ],
473
- style: {
474
- [I("width")]: t.width + (typeof t.width == "number" ? "px" : ""),
475
- [I("height")]: t.height + (typeof t.height == "number" ? "px" : "")
476
- }
477
- }), Rr = {
478
- modelValue: "",
479
- min: 0,
480
- max: 100,
481
- step: 1,
482
- unit: "",
483
- disabled: !1,
484
- readonly: !1,
485
- tick: !1
486
- }, kr = (t) => ({
487
- class: [
488
- i("slide-range"),
489
- i(["layer", "slide-range"]),
490
- i(["role", t.role]),
491
- i(["shape", t.shape]),
492
- { disabled: t.disabled, readonly: t.readonly }
493
- ]
494
- }), Or = () => ({
495
- class: [i("slide-range-track-container")]
496
- }), wr = () => ({
497
- class: [i("slide-range-track-body")]
498
- }), Dr = () => ({
499
- class: [i("slide-range-track"), "back"]
500
- }), Ir = (t) => ({
501
- class: [i("slide-range-track"), "front"],
502
- style: { [I("percent")]: `${t.percent}%` }
503
- }), xr = (t) => ({
504
- class: [i("slide-range-thumb")],
505
- style: { [I("percent")]: `${t.percent}%` }
506
- }), Cr = () => ({
507
- class: [i("slide-range-thumb-inner")]
508
- }), Fr = () => ({
509
- class: [i("slide-range-tooltip")]
510
- }), Br = (t) => ({
511
- class: [i("slide-range-tick"), { active: t.active }],
512
- style: { [I("left")]: `${t.percent}%` }
513
- }), Vr = {
514
- modelValue: !1,
515
- size: "standard",
516
- readonly: !1,
517
- shadow: void 0,
518
- bounce: 1.5
519
- }, Lr = (t) => ({
520
- class: [
521
- i("switch-wrapper"),
522
- {
523
- disabled: t.disabled,
524
- readonly: t.readonly,
525
- shadow: t.shadow,
526
- focus: t.focus,
527
- on: t.modelValue
528
- },
529
- { transition: t.transition }
530
- ],
531
- style: { [I(["bounce", "ratio"])]: t.bounce }
532
- }), $r = (t) => ({
533
- class: [
534
- i(["layer", "switch"]),
535
- i(["role", t.role]),
536
- i(["shape", t.shape]),
537
- i(["size", t.size]),
538
- i("switch")
539
- ]
540
- }), zr = () => ({ class: [i("switch-icon")] }), Ur = {
541
- disabled: !1
542
- }, xe = "tabs-state", Mr = {
543
- placement: "top-start",
544
- variant: "fill",
545
- margin: () => [0, 0],
546
- border: () => [2, 0],
547
- transition: !0,
548
- size: "standard"
549
- }, Kr = (t) => ({
550
- class: [i("tab"), { active: t.active }]
551
- }), Nr = (t) => ({
552
- class: [i(["shape", t.shape]), i(["size", t.size])]
553
- }), jr = (t) => ({
554
- class: [
555
- i(["layer", "tabs"]),
556
- i(["role", t.role + "-" + t.variant]),
557
- i(["shape", t.shape]),
558
- i("tabs"),
559
- t.placement,
560
- t.variant,
561
- { transition: t.transition }
562
- ]
563
- }), Gr = (t) => {
564
- let r = t.top - t.margin[0], n = t.left - t.margin[1], e = t.width + t.margin[1] * 2, o = t.height + t.margin[0] * 2;
565
- return t.variant === "underline" && (t.placement.startsWith("top-") && (r = o - t.border[0]), t.placement.startsWith("bottom-") && (r = 0), (t.placement.startsWith("top-") || t.placement.startsWith("bottom-")) && (o = t.border[0] + 0.5, t.border[1] && (n += (e - t.border[1]) / 2, e = t.border[1])), t.placement.startsWith("left-") && (n = e - t.border[0]), t.placement.startsWith("right-") && (n = 0), (t.placement.startsWith("left-") || t.placement.startsWith("right-")) && (e = t.border[0], t.border[1] && (r += (o - t.border[1]) / 2, o = t.border[1]))), { top: r, left: n, width: e, height: o };
566
- }, Yr = (t) => ({
567
- [I("highlight-top")]: typeof t.top == "string" ? t.top : t.top + "px",
568
- [I("highlight-left")]: typeof t.left == "string" ? t.left : t.left + "px",
569
- [I("highlight-width")]: typeof t.width == "string" ? t.width : t.width + "px",
570
- [I("highlight-height")]: typeof t.height == "string" ? t.height : t.height + "px",
571
- [I("highlight-space-x")]: (t.marginX > 0 ? t.marginX : 0) + "px",
572
- [I("highlight-space-y")]: (t.marginY > 0 ? t.marginY : 0) + "px"
573
- }), Hr = {
574
- size: "standard",
575
- variant: "fill"
576
- }, Wr = (t) => ({
577
- class: [
578
- i(["layer", "tag"]),
579
- i(["role", t.role + "-" + t.variant]),
580
- i(["shape", t.shape]),
581
- i("tag"),
582
- i(["size", t.size])
583
- ]
584
- }), Xr = {
585
- message: "",
586
- duration: 2e3,
587
- variant: "fill"
588
- }, qr = {
589
- placement: "bottom-end"
590
- }, Jr = (t) => ({
591
- class: [i("toast"), t.placement]
592
- }), Qr = (t) => ({
593
- class: [
594
- i(["layer", "toast"]),
595
- i(["role", t.role + "-" + t.variant]),
596
- i(["shape", t.shape]),
597
- i("toast-content"),
598
- { closing: t.closing }
599
- ]
600
- }), Zr = {
601
- placement: null,
602
- safe: !0,
603
- divider: void 0
604
- }, en = (t) => ({
605
- class: [
606
- i(["layer", "toolbar"]),
607
- i(["role", t.role]),
608
- i("toolbar"),
609
- t.placement,
610
- { safe: t.safe, divider: t.divider }
611
- ]
612
- }), Vn = /* @__PURE__ */ C({
613
- __name: "toast-content",
614
- props: /* @__PURE__ */ G({
615
- id: {},
616
- message: {},
617
- duration: {},
618
- role: {},
619
- variant: {},
620
- placement: {},
621
- shape: {}
622
- }, {
623
- ...Xr
624
- }),
625
- emits: ["close"],
626
- setup(t, { expose: r, emit: n }) {
627
- r();
628
- const e = t, o = n, a = y(R), s = _(!1), l = c(() => {
629
- const p = e.role || u(a?.role) || "", f = e.shape || u(a?.shape) || "";
630
- return Qr({
631
- role: p,
632
- shape: f,
633
- variant: e.variant,
634
- closing: s.value
635
- });
636
- });
637
- q(() => {
638
- setTimeout(() => {
639
- s.value = !0, setTimeout(() => {
640
- o("close");
641
- }, 500);
642
- }, e.duration);
643
- });
644
- const d = { props: e, emit: o, appState: a, isClosing: s, contentAttrs: l, unref: u, computed: c, inject: y, onMounted: q, ref: _, get TOAST_CONTENT_DEFAULT_PROPS() {
645
- return Xr;
646
- }, get APP_PROVIDER_STATE_KEY() {
647
- return R;
648
- }, get getToastContentAttrs() {
649
- return Qr;
650
- } };
651
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
652
- }
653
- });
654
- function Ln(t, r, n, e, o, a) {
655
- return m(), T("div", w(z(e.contentAttrs)), ie(e.props.message), 17);
656
- }
657
- const F = (t, r) => {
658
- const n = t.__vccOpts || t;
659
- for (const [e, o] of r)
660
- n[e] = o;
661
- return n;
662
- }, cn = /* @__PURE__ */ F(Vn, [["render", Ln], ["__scopeId", "data-v-ead3b322"]]), $n = /* @__PURE__ */ C({
663
- __name: "toast",
664
- props: /* @__PURE__ */ G({
665
- placement: {}
666
- }, {
667
- ...qr
668
- }),
669
- setup(t, { expose: r }) {
670
- r();
671
- const n = t, e = Je(), o = c(() => Jr({ placement: n.placement })), a = c(() => e.messages.value.filter((d) => d.placement == n.placement)), l = { props: n, toast: e, toastAttrs: o, toastMessages: a, dismiss: (d) => {
672
- e.close(d);
673
- }, computed: c, get useToast() {
674
- return Je;
675
- }, get ToastContent() {
676
- return cn;
677
- }, get TOAST_DEFAULT_PROPS() {
678
- return qr;
679
- }, get getToastAttrs() {
680
- return Jr;
681
- } };
682
- return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
683
- }
684
- });
685
- function zn(t, r, n, e, o, a) {
686
- return e.toastMessages.length > 0 ? (m(), T("div", w(K({ key: 0 }, e.toastAttrs)), [
687
- B(t.$slots, "content", {}, () => [
688
- (m(!0), T(de, null, ue(e.toastMessages, (s, l) => (m(), ee(e.ToastContent, K({ ref_for: !0 }, s, {
689
- onClose: (d) => e.dismiss(s.id)
690
- }), null, 16, ["onClose"]))), 256))
691
- ], !0)
692
- ], 16)) : te("", !0);
693
- }
694
- const dn = /* @__PURE__ */ F($n, [["render", zn], ["__scopeId", "data-v-bc21eb36"]]), me = _(1e3), tn = () => ({
695
- newIndex: () => (me.value += 2, me.value),
696
- resetIndex: () => (me.value = 1e3, me.value),
697
- index: me
698
- }), Un = /* @__PURE__ */ C({
699
- inheritAttrs: !1,
700
- __name: "present",
701
- props: /* @__PURE__ */ G({
702
- keepalive: { type: Boolean },
703
- visible: { type: Boolean },
704
- backdrop: {},
705
- placement: {},
706
- style: {},
707
- class: {},
708
- bounce: { type: [Number, String, Boolean] },
709
- duration: {},
710
- teleport: {}
711
- }, {
712
- ...er
713
- }),
714
- emits: ["close"],
715
- setup(t, { expose: r, emit: n }) {
716
- const e = t, o = n, a = tn(), s = y(R, null), l = _(!1), d = _(0), p = _(!1), f = _(!1), v = _(!1), b = Ee({ ...tr }), k = c(() => e.teleport ? e.teleport : u(s?.rootEl) ? u(s?.rootEl) : ze()), P = () => {
717
- if (e.teleport) {
718
- v.value = !!document.querySelector(e.teleport);
719
- return;
720
- }
721
- if (u(s?.rootEl)) {
722
- v.value = !0;
723
- return;
724
- }
725
- v.value = !!document.querySelector(ze());
726
- }, S = c(
727
- () => rr({
728
- zIndex: d.value - 1,
729
- backdropTransitionDuration: b.backdropTransitionDuration,
730
- backdropOpacity: e.backdrop === "transparent" ? 0 : b.backdropOpacity
731
- })
732
- ), A = c(
733
- () => nr({
734
- zIndex: d.value,
735
- presentTransitionDuration: b.presentTransitionDuration,
736
- presentTranslate: b.presentTranslate,
737
- presentOpacity: b.presentOpacity,
738
- className: e.class,
739
- placement: e.placement,
740
- style: e.style
741
- })
742
- ), M = c(() => p.value || e.keepalive), L = c(() => e.duration / 1e3 + "s"), E = () => {
743
- (d.value === 0 || !e.keepalive) && (d.value = a.newIndex());
744
- }, g = (D) => {
745
- D.backdropTransitionDuration !== void 0 && (b.backdropTransitionDuration = D.backdropTransitionDuration), D.presentTransitionDuration !== void 0 && (b.presentTransitionDuration = D.presentTransitionDuration), b.backdropOpacity = D.backdropOpacity, D.presentTranslate !== void 0 && (b.presentTranslate = D.presentTranslate), D.presentOpacity !== void 0 && (b.presentOpacity = D.presentOpacity);
746
- }, V = (D) => {
747
- D.preventDefault(), f.value && o("close", "backdrop");
748
- }, Y = () => {
749
- if (setTimeout(() => {
750
- f.value = !0;
751
- }, 300), e.bounce && !l.value) {
752
- l.value = !0;
753
- let D = e.bounce;
754
- (e.placement == "bottom" || e.placement == "right") && (D = `calc(${e.bounce} * -1)`), g({
755
- backdropTransitionDuration: L.value,
756
- backdropOpacity: void 0,
757
- presentTranslate: String(D),
758
- presentTransitionDuration: L.value,
759
- presentOpacity: 1
760
- }), setTimeout(() => {
761
- g({
762
- presentTranslate: "0px"
763
- });
764
- }, e.duration);
765
- } else
766
- g({
767
- backdropOpacity: void 0,
768
- backdropTransitionDuration: L.value,
769
- presentTranslate: "0px",
770
- presentTransitionDuration: L.value,
771
- presentOpacity: 1
772
- });
773
- }, $ = () => {
774
- f.value = !1, l.value = !1;
775
- let D = "0px", Q = 1;
776
- e.placement == "bottom" || e.placement == "right" ? D = "100%" : e.placement == "top" || e.placement == "left" ? D = "-100%" : e.placement == "center" && (D = "0px", Q = 0), g({
777
- backdropOpacity: 0,
778
- backdropTransitionDuration: L.value,
779
- presentTranslate: D,
780
- presentTransitionDuration: L.value,
781
- presentOpacity: Q
782
- });
783
- };
784
- q(() => {
785
- P(), v.value || re(() => {
786
- P(), v.value || requestAnimationFrame(P);
787
- }), e.visible ? Y() : $();
788
- }), W(
789
- () => [e.teleport, u(s?.rootEl)],
790
- () => P(),
791
- { immediate: !0 }
792
- ), W(
793
- () => e.visible,
794
- () => {
795
- e.visible ? (E(), p.value = !0, setTimeout(() => {
796
- Y();
797
- }, 100)) : ($(), setTimeout(() => {
798
- p.value = !1;
799
- }, e.duration));
800
- }
801
- ), r({
802
- render: g,
803
- open: Y,
804
- close: $
805
- });
806
- const U = { props: e, emit: o, presentIndex: a, appState: s, isBounced: l, zIndex: d, isShow: p, isReadyBackdrop: f, isTeleportReady: v, styles: b, teleportTo: k, syncTeleportReady: P, backdropAttrs: S, presentAttrs: A, isRender: M, time: L, createIndex: E, render: g, onClickBackdrop: V, open: Y, close: $, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, reactive: Ee, ref: _, watch: W, get usePresent() {
807
- return tn;
808
- }, get PRESENT_DEFAULT_PROPS() {
809
- return er;
810
- }, get PRESENT_DEFAULT_STYLES() {
811
- return tr;
812
- }, get APP_PROVIDER_STATE_KEY() {
813
- return R;
814
- }, get getAppClassSelector() {
815
- return ze;
816
- }, get getPresentAttrs() {
817
- return nr;
818
- }, get getPresentBackdropAttrs() {
819
- return rr;
820
- } };
821
- return Object.defineProperty(U, "__isScriptSetup", { enumerable: !1, value: !0 }), U;
822
- }
823
- });
824
- function Mn(t, r, n, e, o, a) {
825
- return m(), ee(Pn, {
826
- to: e.teleportTo,
827
- disabled: !e.isTeleportReady
828
- }, [
829
- e.isRender && n.backdrop !== "none" ? fe((m(), T("div", K({ key: 0 }, e.backdropAttrs, { onClick: e.onClickBackdrop }), null, 16)), [
830
- [Re, e.isShow]
831
- ]) : te("", !0),
832
- e.isRender ? fe((m(), T("div", w(K({ key: 1 }, e.presentAttrs)), [
833
- B(t.$slots, "default", {}, void 0, !0)
834
- ], 16)), [
835
- [Re, e.isShow]
836
- ]) : te("", !0)
837
- ], 8, ["to", "disabled"]);
838
- }
839
- const Ce = /* @__PURE__ */ F(Un, [["render", Mn], ["__scopeId", "data-v-98837759"]]), Kn = /* @__PURE__ */ C({
840
- __name: "button",
841
- props: /* @__PURE__ */ G({
842
- role: {},
843
- size: {},
844
- shape: {},
845
- block: { type: Boolean },
846
- loading: { type: Boolean },
847
- variant: {},
848
- shadow: { type: Boolean }
849
- }, {
850
- ...ot
851
- }),
852
- setup(t, { expose: r }) {
853
- r();
854
- const n = t, e = y(R), o = _(!1), a = c(() => {
855
- const f = n.shape || u(e?.shape) || "", v = n.role || u(e?.role) || "", b = (n?.shadow !== void 0 ? n.shadow : u(e?.shadow)) ?? !1;
856
- return at({
857
- role: v,
858
- shape: f,
859
- variant: n.variant,
860
- size: n.size,
861
- block: n.block,
862
- shadow: b,
863
- focus: o.value
864
- });
865
- }), s = st(), p = { props: n, appState: e, isFocused: o, buttonAttrs: a, loaderAttrs: s, onFocus: () => {
866
- o.value = !0;
867
- }, onBlur: () => {
868
- o.value = !1;
869
- }, unref: u, computed: c, inject: y, ref: _, get BUTTON_DEFAULT_PROPS() {
870
- return ot;
871
- }, get APP_PROVIDER_STATE_KEY() {
872
- return R;
873
- }, get getButtonAttrs() {
874
- return at;
875
- }, get getButtonLoaderAttrs() {
876
- return st;
877
- } };
878
- return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
879
- }
880
- });
881
- function Nn(t, r, n, e, o, a) {
882
- return m(), T("button", K(e.buttonAttrs, {
883
- onFocus: e.onFocus,
884
- onBlur: e.onBlur
885
- }), [
886
- fe(H("span", null, [
887
- B(t.$slots, "default", {}, void 0, !0)
888
- ], 512), [
889
- [Re, !e.props.loading]
890
- ]),
891
- e.props.loading ? (m(), T("span", w(K({ key: 0 }, e.loaderAttrs)), [
892
- B(t.$slots, "loading", {}, void 0, !0)
893
- ], 16)) : te("", !0)
894
- ], 16);
895
- }
896
- const Ne = /* @__PURE__ */ F(Kn, [["render", Nn], ["__scopeId", "data-v-c79b70d8"]]), jn = /* @__PURE__ */ C({
897
- __name: "form-group",
898
- props: /* @__PURE__ */ G({
899
- direction: {}
900
- }, {
901
- ...$t
902
- }),
903
- setup(t, { expose: r }) {
904
- r();
905
- const n = t, e = c(() => zt({ direction: n.direction })), o = { props: n, formGroupAttrs: e, computed: c, get FORM_GROUP_DEFAULT_PROPS() {
906
- return $t;
907
- }, get getFormGroupAttrs() {
908
- return zt;
909
- } };
910
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
911
- }
912
- });
913
- function Gn(t, r, n, e, o, a) {
914
- return m(), T("div", w(z(e.formGroupAttrs)), [
915
- B(t.$slots, "default", {}, void 0, !0)
916
- ], 16);
917
- }
918
- const un = /* @__PURE__ */ F(jn, [["render", Gn], ["__scopeId", "data-v-addb28b2"]]), Yn = /* @__PURE__ */ C({
919
- __name: "action",
920
- props: /* @__PURE__ */ G({
921
- visible: { type: Boolean },
922
- dismiss: {},
923
- actions: {},
924
- role: {},
925
- shape: {},
926
- divider: { type: Boolean },
927
- shadow: { type: Boolean },
928
- placement: {}
929
- }, {
930
- ...Qe
931
- }),
932
- emits: ["close", "choose"],
933
- setup(t, { expose: r, emit: n }) {
934
- r();
935
- const e = t, o = n, a = y(R), s = _(!1), l = c(() => {
936
- const v = (e?.divider !== void 0 ? e.divider : u(a?.divider)) ?? !1, b = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1, k = e.shape ?? u(a?.shape) ?? "", P = e.role ?? u(a?.role) ?? "";
937
- return Ze({
938
- role: P,
939
- shape: k,
940
- placement: e.placement,
941
- divider: v,
942
- shadow: b,
943
- pop: s.value
944
- });
945
- }), f = { props: e, emit: o, appState: a, pop: s, actionAttrs: l, onClose: (v) => {
946
- e.dismiss && e.dismiss.includes(v) ? o("close", v) : v === "backdrop" && (s.value = !0, setTimeout(() => {
947
- s.value = !1;
948
- }, 300));
949
- }, onChoose: (v) => {
950
- o("close"), v.handler?.(), o("choose", v);
951
- }, unref: u, computed: c, inject: y, ref: _, get Present() {
952
- return Ce;
953
- }, get CustomButton() {
954
- return Ne;
955
- }, get FormGroup() {
956
- return un;
957
- }, get ACTION_DEFAULT_PROPS() {
958
- return Qe;
959
- }, get APP_PROVIDER_STATE_KEY() {
960
- return R;
961
- }, get getActionAttrs() {
962
- return Ze;
963
- } };
964
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
965
- }
966
- });
967
- function Hn(t, r, n, e, o, a) {
968
- return m(), ee(e.Present, {
969
- placement: n.placement,
970
- backdrop: "display",
971
- keepalive: !1,
972
- visible: n.visible,
973
- onClose: e.onClose
974
- }, {
975
- default: ae(() => [
976
- H("div", w(z(e.actionAttrs)), [
977
- B(t.$slots, "body", {}, () => [
978
- (m(!0), T(de, null, ue(n.actions, (s, l) => (m(), ee(e.FormGroup, {
979
- direction: "vertical",
980
- key: l
981
- }, {
982
- default: ae(() => [
983
- (m(!0), T(de, null, ue(s, (d, p) => (m(), ee(e.CustomButton, {
984
- key: `${l}-${p}`,
985
- role: d.role,
986
- variant: d.variant,
987
- onClick: (f) => e.onChoose(d),
988
- shape: n.shape,
989
- shadow: d.shadow !== void 0 ? d.shadow : n.shadow,
990
- block: ""
991
- }, {
992
- default: ae(() => [
993
- an(ie(d.text), 1)
994
- ]),
995
- _: 2
996
- }, 1032, ["role", "variant", "onClick", "shape", "shadow"]))), 128))
997
- ]),
998
- _: 2
999
- }, 1024))), 128))
1000
- ], !0)
1001
- ], 16)
1002
- ]),
1003
- _: 3
1004
- }, 8, ["placement", "visible"]);
1005
- }
1006
- const pn = /* @__PURE__ */ F(Yn, [["render", Hn], ["__scopeId", "data-v-c7eb029c"]]), Ae = _(null), ye = _(!1), rn = () => ({
1007
- open: (e) => {
1008
- Ae.value = e, setTimeout(() => {
1009
- ye.value = !0;
1010
- }, 50);
1011
- },
1012
- close: (e) => {
1013
- Ae.value?.onClose?.(e), ye.value = !1;
1014
- },
1015
- choose: (e) => {
1016
- Ae.value?.onChoose?.(e), ye.value = !1;
1017
- },
1018
- visible: ye,
1019
- data: Ae
1020
- }), Wn = /* @__PURE__ */ C({
1021
- __name: "decision-modal",
1022
- props: /* @__PURE__ */ G({
1023
- visible: { type: Boolean },
1024
- title: {},
1025
- message: {},
1026
- actions: {},
1027
- dismiss: {},
1028
- placement: {},
1029
- role: {},
1030
- shape: {},
1031
- divider: { type: Boolean },
1032
- flow: {}
1033
- }, {
1034
- ...Tt
1035
- }),
1036
- emits: ["close", "choose"],
1037
- setup(t, { expose: r, emit: n }) {
1038
- r();
1039
- const e = t, o = n, a = y(R), s = _(!1), l = c(() => e.shape || u(a?.shape) || ""), d = c(() => (e.divider !== void 0 ? e.divider : u(a?.divider)) ?? !1), p = c(() => {
1040
- const A = e.role || u(a?.role) || "";
1041
- return St({
1042
- role: A,
1043
- shape: l.value,
1044
- pop: s.value,
1045
- divider: d.value
1046
- });
1047
- }), f = c(() => Et()), v = c(() => Rt()), b = c(() => kt({ flow: e.flow })), S = { props: e, emit: o, appState: a, pop: s, shape: l, divider: d, decisionModalAttrs: p, decisionModalHeaderAttrs: f, decisionModalBodyAttrs: v, decisionModalFooterAttrs: b, onClose: (A) => {
1048
- e.dismiss && e.dismiss.includes(A) ? o("close", A) : A === "backdrop" && (s.value = !0, setTimeout(() => {
1049
- s.value = !1;
1050
- }, 300));
1051
- }, onChoose: (A) => {
1052
- o("close"), A.handler?.(), o("choose", A);
1053
- }, unref: u, computed: c, inject: y, ref: _, get Present() {
1054
- return Ce;
1055
- }, get CustomButton() {
1056
- return Ne;
1057
- }, get DECISION_MODAL_DEFAULT_PROPS() {
1058
- return Tt;
1059
- }, get APP_PROVIDER_STATE_KEY() {
1060
- return R;
1061
- }, get getDecisionModalAttrs() {
1062
- return St;
1063
- }, get getDecisionModalBodyAttrs() {
1064
- return Rt;
1065
- }, get getDecisionModalFooterAttrs() {
1066
- return kt;
1067
- }, get getDecisionModalHeaderAttrs() {
1068
- return Et;
1069
- } };
1070
- return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
1071
- }
1072
- });
1073
- function Xn(t, r, n, e, o, a) {
1074
- return m(), ee(e.Present, {
1075
- placement: n.placement,
1076
- backdrop: "display",
1077
- keepalive: t.keepalive,
1078
- visible: n.visible,
1079
- onClose: e.onClose
1080
- }, {
1081
- default: ae(() => [
1082
- H("div", w(z(e.decisionModalAttrs)), [
1083
- B(t.$slots, "header", {}, () => [
1084
- n.title ? (m(), T("div", w(K({ key: 0 }, e.decisionModalHeaderAttrs)), ie(n.title), 17)) : te("", !0)
1085
- ], !0),
1086
- B(t.$slots, "body", {}, () => [
1087
- H("div", w(z(e.decisionModalBodyAttrs)), ie(n.message), 17)
1088
- ], !0),
1089
- B(t.$slots, "footer", {}, () => [
1090
- H("div", w(z(e.decisionModalFooterAttrs)), [
1091
- (m(!0), T(de, null, ue(n.actions, (s, l) => (m(), ee(e.CustomButton, {
1092
- key: `${l}`,
1093
- role: s.role,
1094
- variant: s.variant,
1095
- onClick: (d) => e.onChoose(s),
1096
- shape: e.shape
1097
- }, {
1098
- default: ae(() => [
1099
- an(ie(s.text), 1)
1100
- ]),
1101
- _: 2
1102
- }, 1032, ["role", "variant", "onClick", "shape"]))), 128))
1103
- ], 16)
1104
- ], !0)
1105
- ], 16)
1106
- ]),
1107
- _: 3
1108
- }, 8, ["placement", "keepalive", "visible"]);
1109
- }
1110
- const _n = /* @__PURE__ */ F(Wn, [["render", Xn], ["__scopeId", "data-v-2937fe1a"]]), Pe = _(null), Te = _(!1), nn = () => ({
1111
- open: (e) => {
1112
- Pe.value = e, setTimeout(() => {
1113
- Te.value = !0;
1114
- }, 50);
1115
- },
1116
- close: (e) => {
1117
- Pe.value?.onClose?.(), Te.value = !1;
1118
- },
1119
- choose: (e) => {
1120
- Pe.value?.onChoose?.(e), Te.value = !1;
1121
- },
1122
- visible: Te,
1123
- data: Pe
1124
- }), qn = /* @__PURE__ */ C({
1125
- __name: "app",
1126
- props: /* @__PURE__ */ G({
1127
- shape: {},
1128
- divider: { type: Boolean },
1129
- role: {},
1130
- shadow: { type: Boolean },
1131
- triple: { type: Boolean },
1132
- direction: {},
1133
- data: {}
1134
- }, {
1135
- ...et
1136
- }),
1137
- setup(t, { expose: r }) {
1138
- r();
1139
- const n = t, { shape: e, divider: o, role: a, shadow: s, triple: l, direction: d, data: p } = ke(n), f = nn(), v = rn(), b = _(), k = c(() => tt({ shape: e.value }));
1140
- ne(R, {
1141
- shape: e,
1142
- divider: o,
1143
- role: a,
1144
- shadow: s,
1145
- triple: l,
1146
- direction: d,
1147
- rootEl: b,
1148
- data: p
1149
- });
1150
- const P = { props: n, shape: e, divider: o, role: a, shadow: s, triple: l, direction: d, data: p, decisionModal: f, action: v, rootEl: b, appAttrs: k, computed: c, provide: ne, ref: _, toRefs: ke, get Toast() {
1151
- return dn;
1152
- }, get Action() {
1153
- return pn;
1154
- }, get useAction() {
1155
- return rn;
1156
- }, get DecisionModal() {
1157
- return _n;
1158
- }, get useDecisionModal() {
1159
- return nn;
1160
- }, get APP_DEFAULT_PROPS() {
1161
- return et;
1162
- }, get APP_PROVIDER_STATE_KEY() {
1163
- return R;
1164
- }, get getAppAttrs() {
1165
- return tt;
1166
- } };
1167
- return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
1168
- }
1169
- });
1170
- function Jn(t, r, n, e, o, a) {
1171
- return m(), T("div", K({ ref: "rootEl" }, e.appAttrs), [
1172
- B(t.$slots, "default", {}, void 0, !0),
1173
- B(t.$slots, "global", {}, void 0, !0),
1174
- le(e.Toast, { placement: "top-start" }),
1175
- le(e.Toast, { placement: "bottom-start" }),
1176
- le(e.Toast, { placement: "bottom-center" }),
1177
- le(e.Toast, { placement: "bottom-end" }),
1178
- le(e.Toast, { placement: "top-center" }),
1179
- le(e.Toast, { placement: "top-end" }),
1180
- e.action.data.value ? (m(), ee(e.Action, K({
1181
- key: 0,
1182
- visible: e.action.visible.value
1183
- }, e.action.data.value, {
1184
- onClose: e.action.close,
1185
- onChoose: e.action.choose
1186
- }), null, 16, ["visible", "onClose", "onChoose"])) : te("", !0),
1187
- e.decisionModal.data.value ? (m(), ee(e.DecisionModal, K({
1188
- key: 1,
1189
- visible: e.decisionModal.visible.value
1190
- }, e.decisionModal.data.value, {
1191
- onClose: e.decisionModal.close,
1192
- onChoose: e.decisionModal.choose
1193
- }), null, 16, ["visible", "onClose", "onChoose"])) : te("", !0)
1194
- ], 16);
1195
- }
1196
- const Qn = /* @__PURE__ */ F(qn, [["render", Jn], ["__scopeId", "data-v-291d6752"]]), Zn = /* @__PURE__ */ C({
1197
- __name: "gesture-indicator",
1198
- props: /* @__PURE__ */ G({
1199
- placement: {},
1200
- role: {}
1201
- }, {
1202
- ...Ut
1203
- }),
1204
- setup(t, { expose: r }) {
1205
- r();
1206
- const n = t, e = y(R), o = c(() => {
1207
- const s = n.role || u(e?.role) || "";
1208
- return Mt({ role: s, placement: n.placement });
1209
- }), a = { props: n, appState: e, gestureIndicatorAttrs: o, unref: u, computed: c, inject: y, get GESTURE_INDICATOR_DEFAULT_PROPS() {
1210
- return Ut;
1211
- }, get APP_PROVIDER_STATE_KEY() {
1212
- return R;
1213
- }, get getGestureIndicatorAttrs() {
1214
- return Mt;
1215
- } };
1216
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1217
- }
1218
- });
1219
- function eo(t, r, n, e, o, a) {
1220
- return m(), T("div", w(z(e.gestureIndicatorAttrs)), null, 16);
1221
- }
1222
- const fn = /* @__PURE__ */ F(Zn, [["render", eo], ["__scopeId", "data-v-467f711f"]]), to = /* @__PURE__ */ C({
1223
- __name: "modal",
1224
- props: /* @__PURE__ */ G({
1225
- role: {},
1226
- class: {},
1227
- visible: { type: Boolean },
1228
- gesture: { type: Boolean },
1229
- fullscreen: { type: Boolean },
1230
- placement: {},
1231
- keepalive: { type: Boolean },
1232
- backdrop: {},
1233
- shape: {},
1234
- indicator: { type: Boolean },
1235
- duration: {},
1236
- bounce: {},
1237
- style: {}
1238
- }, {
1239
- ...Jt
1240
- }),
1241
- emits: ["close"],
1242
- setup(t, { expose: r, emit: n }) {
1243
- r();
1244
- const e = t, o = n, a = y(R), s = _(), l = _(), d = _(!1), p = _(!1), f = _(null), v = c(() => {
1245
- if (e.placement == "bottom") return "down";
1246
- if (e.placement == "top") return "up";
1247
- if (e.placement == "left") return "left";
1248
- if (e.placement == "right") return "right";
1249
- }), b = c(() => {
1250
- const g = e?.shape || u(a?.shape) || "", V = e.role || u(a?.role) || "";
1251
- return Qt({
1252
- role: V,
1253
- shape: g,
1254
- placement: e.placement,
1255
- fullscreen: e.fullscreen,
1256
- className: e.class,
1257
- style: e.style
1258
- });
1259
- }), k = (g) => {
1260
- o("close", g);
1261
- };
1262
- function P(g) {
1263
- return qt.includes(g);
1264
- }
1265
- const S = (g, V) => {
1266
- const Y = getComputedStyle(g);
1267
- return V == "y" ? g.scrollHeight > g.clientHeight && P(Y.overflowY) : g.scrollWidth > g.clientWidth && P(Y.overflowX);
1268
- }, A = (g, V) => V == "down" ? g.scrollTop > 0 : V == "up" ? g.scrollTop < g.scrollHeight - g.clientHeight : V == "right" ? g.scrollLeft > 0 : g.scrollLeft < g.scrollWidth - g.clientWidth, M = (g) => {
1269
- if (!s.value || !v.value) return !0;
1270
- const V = g.target;
1271
- if (!(V instanceof Element)) return !0;
1272
- const Y = v.value == "left" || v.value == "right" ? "x" : "y";
1273
- let $ = V;
1274
- for (; $ && $ !== s.value; ) {
1275
- if ($ instanceof HTMLElement && S($, Y) && A($, v.value))
1276
- return !1;
1277
- $ = $.parentElement;
1278
- }
1279
- return !0;
1280
- }, L = () => {
1281
- d.value = !0, setTimeout(() => {
1282
- d.value = !1;
1283
- }, 300);
1284
- };
1285
- W(
1286
- () => s.value,
1287
- (g) => {
1288
- g && (f.value = pe(s.value, {
1289
- options: {
1290
- minDist: 30
1291
- },
1292
- beforeEvent(V) {
1293
- return !(d.value || !e.gesture || e.placement == "center" || !M(V));
1294
- },
1295
- down() {
1296
- p.value = !1;
1297
- },
1298
- fast({ initialDirection: V }) {
1299
- L(), V == v.value ? o("close", "gesture") : l.value.open();
1300
- },
1301
- move({ deltaY: V, deltaX: Y, initialDirection: $ }) {
1302
- if ($ != v.value) return;
1303
- let U = 0;
1304
- e.placement == "bottom" || e.placement == "top" ? U = V : U = Y, e.placement == "bottom" && (U = V > 0 ? V : 0), e.placement == "top" && (U = V < 0 ? V : 0), e.placement == "left" && (U = Y < 0 ? Y : 0), e.placement == "right" && (U = Y > 0 ? Y : 0), (e.placement == "bottom" && (U >= 10 || p.value) || e.placement == "top" && (U <= -10 || p.value) || e.placement == "left" && (U <= -10 || p.value) || e.placement == "right" && (U >= 10 || p.value)) && (p.value = !0, l.value.render({
1305
- presentTranslate: U + "px",
1306
- presentTransitionDuration: "0s"
1307
- }));
1308
- },
1309
- up({ deltaY: V, deltaX: Y, initialDirection: $ }) {
1310
- if (p.value = !1, L(), $ != v.value) {
1311
- l.value.open();
1312
- return;
1313
- }
1314
- let U, D, Q;
1315
- e.placement == "bottom" || e.placement == "top" ? (U = s.value.offsetHeight, Q = V) : (U = s.value.offsetWidth, Q = Y), D = Q / U * 100, D > 50 ? o("close", "gesture") : l.value.open();
1316
- },
1317
- cancel() {
1318
- p.value = !1, L(), l.value.open();
1319
- }
1320
- }));
1321
- }
1322
- ), oe(() => {
1323
- f.value && f.value.destroy();
1324
- });
1325
- const E = { props: e, emit: o, appState: a, modal: s, present: l, isBusy: d, isMoving: p, ges: f, gestureDir: v, modalAttrs: b, close: k, hasScrollableOverflow: P, isScrollable: S, hasRemainingScroll: A, canStartGesture: M, busy: L, computed: c, inject: y, onUnmounted: oe, ref: _, unref: u, watch: W, get toifeGesture() {
1326
- return pe;
1327
- }, get Present() {
1328
- return Ce;
1329
- }, get GestureIndicator() {
1330
- return fn;
1331
- }, get MODAL_DEFAULT_PROPS() {
1332
- return Jt;
1333
- }, get APP_PROVIDER_STATE_KEY() {
1334
- return R;
1335
- }, get SCROLLABLE_OVERFLOW_VALUES() {
1336
- return qt;
1337
- }, get getModalAttrs() {
1338
- return Qt;
1339
- } };
1340
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
1341
- }
1342
- });
1343
- function ro(t, r, n, e, o, a) {
1344
- return m(), ee(e.Present, {
1345
- ref: "present",
1346
- duration: n.duration,
1347
- bounce: n.bounce,
1348
- class: sn(n.class),
1349
- placement: n.placement,
1350
- backdrop: n.backdrop,
1351
- visible: n.visible,
1352
- keepalive: n.keepalive,
1353
- onClose: e.close,
1354
- style: Tn(n.style)
1355
- }, {
1356
- default: ae(() => [
1357
- n.gesture && n.indicator && n.placement != "center" ? (m(), ee(e.GestureIndicator, {
1358
- key: 0,
1359
- placement: n.placement
1360
- }, null, 8, ["placement"])) : te("", !0),
1361
- H("div", K({ ref: "modal" }, e.modalAttrs), [
1362
- B(t.$slots, "default", {}, void 0, !0)
1363
- ], 16)
1364
- ]),
1365
- _: 3
1366
- }, 8, ["duration", "bounce", "class", "placement", "backdrop", "visible", "keepalive", "style"]);
1367
- }
1368
- const no = /* @__PURE__ */ F(to, [["render", ro], ["__scopeId", "data-v-2b10da3f"]]), oo = /* @__PURE__ */ C({
1369
- __name: "grid",
1370
- props: /* @__PURE__ */ G({
1371
- options: {}
1372
- }, {
1373
- ...Gt
1374
- }),
1375
- setup(t, { expose: r }) {
1376
- r();
1377
- const n = t, e = c(() => Yt(n.options)), o = { props: n, gridAttrs: e, computed: c, get GRID_DEFAULT_PROPS() {
1378
- return Gt;
1379
- }, get getGridAttrs() {
1380
- return Yt;
1381
- } };
1382
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
1383
- }
1384
- });
1385
- function ao(t, r, n, e, o, a) {
1386
- return m(), T("div", w(z(e.gridAttrs)), [
1387
- B(t.$slots, "default", {}, void 0, !0)
1388
- ], 16);
1389
- }
1390
- const so = /* @__PURE__ */ F(oo, [["render", ao], ["__scopeId", "data-v-7b1bae0b"]]), lo = /* @__PURE__ */ C({
1391
- __name: "flex",
1392
- props: /* @__PURE__ */ G({
1393
- options: {}
1394
- }, {
1395
- ...Nt
1396
- }),
1397
- setup(t, { expose: r }) {
1398
- r();
1399
- const n = t, e = c(() => Wt(n.options)), o = { props: n, flexAttrs: e, computed: c, get FLEX_DEFAULT_PROPS() {
1400
- return Nt;
1401
- }, get getFlexAttrs() {
1402
- return Wt;
1403
- } };
1404
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
1405
- }
1406
- });
1407
- function io(t, r, n, e, o, a) {
1408
- return m(), T("div", w(z(e.flexAttrs)), [
1409
- B(t.$slots, "default", {}, void 0, !0)
1410
- ], 16);
1411
- }
1412
- const co = /* @__PURE__ */ F(lo, [["render", io], ["__scopeId", "data-v-551ea3b0"]]), uo = /* @__PURE__ */ C({
1413
- __name: "grid-item",
1414
- props: /* @__PURE__ */ G({
1415
- options: {}
1416
- }, {
1417
- ...jt
1418
- }),
1419
- setup(t, { expose: r }) {
1420
- r();
1421
- const n = t, e = c(() => Ht(n.options)), o = { props: n, gridItemAttrs: e, computed: c, get GRID_ITEM_DEFAULT_PROPS() {
1422
- return jt;
1423
- }, get getGridItemAttrs() {
1424
- return Ht;
1425
- } };
1426
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
1427
- }
1428
- });
1429
- function po(t, r, n, e, o, a) {
1430
- return m(), T("div", w(z(e.gridItemAttrs)), [
1431
- B(t.$slots, "default", {}, void 0, !0)
1432
- ], 16);
1433
- }
1434
- const _o = /* @__PURE__ */ F(uo, [["render", po], ["__scopeId", "data-v-3dc106be"]]), fo = /* @__PURE__ */ C({
1435
- __name: "flex-item",
1436
- props: /* @__PURE__ */ G({
1437
- options: {}
1438
- }, {
1439
- ...Kt
1440
- }),
1441
- setup(t, { expose: r }) {
1442
- r();
1443
- const n = t, e = c(() => Xt(n.options)), o = { props: n, flexItemAttrs: e, computed: c, get FLEX_ITEM_DEFAULT_PROPS() {
1444
- return Kt;
1445
- }, get getFlexItemAttrs() {
1446
- return Xt;
1447
- } };
1448
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
1449
- }
1450
- });
1451
- function vo(t, r, n, e, o, a) {
1452
- return m(), T("div", w(z(e.flexItemAttrs)), [
1453
- B(t.$slots, "default", {}, void 0, !0)
1454
- ], 16);
1455
- }
1456
- const mo = /* @__PURE__ */ F(fo, [["render", vo], ["__scopeId", "data-v-9aa28166"]]), go = /* @__PURE__ */ C({
1457
- __name: "cable",
1458
- props: /* @__PURE__ */ G({
1459
- keyboard: { type: Boolean },
1460
- placement: {}
1461
- }, {
1462
- ...lt
1463
- }),
1464
- setup(t, { expose: r }) {
1465
- r();
1466
- const n = t, { placement: e } = ke(n), o = c(() => it({ placement: e.value }));
1467
- ne(we, {
1468
- placement: e
1469
- });
1470
- const a = { props: n, placement: e, cableAttrs: o, computed: c, provide: ne, toRefs: ke, get CABLE_DEFAULT_PROPS() {
1471
- return lt;
1472
- }, get CABLE_PROVIDER_STATE_KEY() {
1473
- return we;
1474
- }, get getCableAttrs() {
1475
- return it;
1476
- } };
1477
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1478
- }
1479
- });
1480
- function ho(t, r, n, e, o, a) {
1481
- return m(), T("div", w(z(e.cableAttrs)), [
1482
- B(t.$slots, "default", {}, void 0, !0)
1483
- ], 16);
1484
- }
1485
- const bo = /* @__PURE__ */ F(go, [["render", ho], ["__scopeId", "data-v-4fd2ca97"]]), Ao = /* @__PURE__ */ C({
1486
- __name: "toolbar",
1487
- props: /* @__PURE__ */ G({
1488
- placement: {},
1489
- safe: { type: Boolean },
1490
- role: {},
1491
- divider: { type: Boolean }
1492
- }, {
1493
- ...Zr
1494
- }),
1495
- setup(t, { expose: r }) {
1496
- r();
1497
- const n = t, e = y(we), o = y(R), a = c(() => {
1498
- const l = n.role || u(o?.role) || "", d = n.placement || u(e?.placement) || "", p = (n?.divider !== void 0 ? n.divider : u(o?.divider)) ?? !1;
1499
- return en({
1500
- role: l,
1501
- placement: d,
1502
- safe: n.safe,
1503
- divider: p
1504
- });
1505
- }), s = { props: n, cable: e, appState: o, toolbarAttrs: a, unref: u, computed: c, inject: y, get TOOLBAR_DEFAULT_PROPS() {
1506
- return Zr;
1507
- }, get APP_PROVIDER_STATE_KEY() {
1508
- return R;
1509
- }, get CABLE_PROVIDER_STATE_KEY() {
1510
- return we;
1511
- }, get getToolbarAttrs() {
1512
- return en;
1513
- } };
1514
- return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
1515
- }
1516
- });
1517
- function yo(t, r, n, e, o, a) {
1518
- return m(), T("div", w(z(e.toolbarAttrs)), [
1519
- B(t.$slots, "default", {}, void 0, !0)
1520
- ], 16);
1521
- }
1522
- const Po = /* @__PURE__ */ F(Ao, [["render", yo], ["__scopeId", "data-v-4ae7e08d"]]), To = /* @__PURE__ */ C({
1523
- __name: "skeleton",
1524
- props: /* @__PURE__ */ G({
1525
- width: {},
1526
- height: {},
1527
- role: {},
1528
- shape: {}
1529
- }, {
1530
- ...Sr
1531
- }),
1532
- setup(t, { expose: r }) {
1533
- r();
1534
- const n = t, e = y(R), o = c(() => {
1535
- const s = n.shape || u(e?.shape) || "", l = n.role || u(e?.role) || "";
1536
- return Er({
1537
- role: l,
1538
- shape: s,
1539
- width: n.width,
1540
- height: n.height
1541
- });
1542
- }), a = { props: n, appState: e, skeletonAttrs: o, unref: u, computed: c, inject: y, get SKELETON_DEFAULT_PROPS() {
1543
- return Sr;
1544
- }, get APP_PROVIDER_STATE_KEY() {
1545
- return R;
1546
- }, get getSkeletonAttrs() {
1547
- return Er;
1548
- } };
1549
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
1550
- }
1551
- });
1552
- function So(t, r, n, e, o, a) {
1553
- return m(), T("div", w(z(e.skeletonAttrs)), null, 16);
1554
- }
1555
- const Eo = /* @__PURE__ */ F(To, [["render", So], ["__scopeId", "data-v-d2115b2f"]]), Ro = /* @__PURE__ */ C({
1556
- __name: "tabs",
1557
- props: /* @__PURE__ */ G({
1558
- placement: {},
1559
- variant: {},
1560
- role: {},
1561
- modelValue: {},
1562
- border: {},
1563
- margin: {},
1564
- shape: {},
1565
- transition: { type: Boolean },
1566
- size: {}
1567
- }, {
1568
- ...Mr
1569
- }),
1570
- emits: ["update:modelValue"],
1571
- setup(t, { expose: r, emit: n }) {
1572
- r();
1573
- const e = t, o = n, a = y(R), s = _(0), l = _(0), d = _(0), p = _(0), f = _(), v = _(!0), b = c(() => e.role || u(a?.role) || ""), k = c(() => e.shape || u(a?.shape) || ""), P = c(() => e.size), S = c(() => e.modelValue || ""), A = c(() => {
1574
- const g = Gr({
1575
- top: d.value,
1576
- left: p.value,
1577
- width: s.value,
1578
- height: l.value,
1579
- margin: e.margin,
1580
- border: e.border,
1581
- variant: e.variant,
1582
- placement: e.placement
1583
- });
1584
- return {
1585
- ...jr({
1586
- role: b.value,
1587
- shape: k.value,
1588
- placement: e.placement,
1589
- variant: e.variant,
1590
- transition: v.value ? !1 : e.transition
1591
- }),
1592
- style: Yr({
1593
- top: g.top,
1594
- left: g.left,
1595
- width: g.width,
1596
- height: g.height,
1597
- marginX: e.margin[1],
1598
- marginY: e.margin[0]
1599
- })
1600
- };
1601
- }), M = () => {
1602
- let g = f.value.querySelector(".active");
1603
- g && (s.value = g.offsetWidth, l.value = g.offsetHeight, p.value = g.getBoundingClientRect().left - f.value.getBoundingClientRect().left + f.value.scrollLeft, d.value = g.getBoundingClientRect().top - f.value.getBoundingClientRect().top + f.value.scrollTop);
1604
- }, L = async () => {
1605
- await re(), M();
1606
- };
1607
- W(
1608
- () => e.modelValue,
1609
- () => {
1610
- L();
1611
- }
1612
- ), q(() => {
1613
- L(), window.addEventListener("resize", M), setTimeout(() => {
1614
- v.value = !1;
1615
- }, 500);
1616
- }), oe(() => {
1617
- window.removeEventListener("resize", M);
1618
- }), ne(xe, {
1619
- activeValue: S,
1620
- role: b,
1621
- shape: k,
1622
- size: P,
1623
- setValue: (g) => {
1624
- o("update:modelValue", g);
1625
- }
1626
- });
1627
- const E = { props: e, emit: o, appState: a, width: s, height: l, top: d, left: p, container: f, isFirstRender: v, role: b, shape: k, size: P, activeValue: S, tabsAttrs: A, calcPosition: M, checkRender: L, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, onUnmounted: oe, provide: ne, ref: _, watch: W, get TABS_DEFAULT_PROPS() {
1628
- return Mr;
1629
- }, get APP_PROVIDER_STATE_KEY() {
1630
- return R;
1631
- }, get TABS_PROVIDER_STATE_KEY() {
1632
- return xe;
1633
- }, get getTabsAttrs() {
1634
- return jr;
1635
- }, get getTabsHighlightPosition() {
1636
- return Gr;
1637
- }, get getTabsHighlightStyle() {
1638
- return Yr;
1639
- } };
1640
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
1641
- }
1642
- });
1643
- function ko(t, r, n, e, o, a) {
1644
- return m(), T("ul", K({ ref: "container" }, e.tabsAttrs), [
1645
- B(t.$slots, "default", {}, void 0, !0)
1646
- ], 16);
1647
- }
1648
- const Oo = /* @__PURE__ */ F(Ro, [["render", ko], ["__scopeId", "data-v-72a632e5"]]), wo = /* @__PURE__ */ C({
1649
- __name: "tab",
1650
- props: /* @__PURE__ */ G({
1651
- value: {},
1652
- disabled: { type: Boolean }
1653
- }, {
1654
- ...Ur
1655
- }),
1656
- setup(t, { expose: r }) {
1657
- r();
1658
- const n = t, e = y(xe), o = c(() => u(e?.shape) || ""), a = c(() => u(e?.size) || "standard"), s = c(() => u(e?.activeValue) === n.value), l = c(() => Kr({ active: s.value })), d = c(() => Nr({ shape: o.value, size: a.value })), f = { props: n, tabsState: e, shape: o, size: a, isActive: s, tabAttrs: l, buttonAttrs: d, handleClick: () => {
1659
- n.disabled || e?.setValue(n.value || "");
1660
- }, computed: c, inject: y, unref: u, get TAB_DEFAULT_PROPS() {
1661
- return Ur;
1662
- }, get TABS_PROVIDER_STATE_KEY() {
1663
- return xe;
1664
- }, get getTabAttrs() {
1665
- return Kr;
1666
- }, get getTabButtonAttrs() {
1667
- return Nr;
1668
- } };
1669
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
1670
- }
1671
- });
1672
- function Do(t, r, n, e, o, a) {
1673
- return m(), T("li", w(z(e.tabAttrs)), [
1674
- H("button", K(e.buttonAttrs, { onClick: e.handleClick }), [
1675
- B(t.$slots, "default", {}, void 0, !0)
1676
- ], 16)
1677
- ], 16);
1678
- }
1679
- const Io = /* @__PURE__ */ F(wo, [["render", Do], ["__scopeId", "data-v-2eddd820"]]), xo = /* @__PURE__ */ C({
1680
- __name: "switch",
1681
- props: /* @__PURE__ */ G({
1682
- modelValue: { type: Boolean },
1683
- role: {},
1684
- size: {},
1685
- shape: {},
1686
- disabled: { type: Boolean },
1687
- readonly: { type: Boolean },
1688
- shadow: { type: Boolean },
1689
- bounce: {}
1690
- }, {
1691
- ...Vr
1692
- }),
1693
- emits: ["update:modelValue"],
1694
- setup(t, { expose: r, emit: n }) {
1695
- r();
1696
- const e = t, o = n, a = y(R), s = _(!1), l = _(!0), d = c(() => {
1697
- const A = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1;
1698
- return Lr({
1699
- disabled: e.disabled,
1700
- readonly: e.readonly,
1701
- shadow: A && !e.disabled && s.value,
1702
- focus: s.value,
1703
- modelValue: e.modelValue,
1704
- transition: !l.value,
1705
- bounce: e.bounce
1706
- });
1707
- }), p = c(() => {
1708
- const A = e.shape || u(a?.shape) || "", M = u(a?.role) || "", L = e.role || M;
1709
- return $r({
1710
- role: L,
1711
- shape: A,
1712
- size: e.size
1713
- });
1714
- }), f = zr(), v = () => {
1715
- e.disabled || e.readonly || o("update:modelValue", !e.modelValue);
1716
- }, b = () => {
1717
- e.disabled || e.readonly || (s.value = !0);
1718
- }, k = () => {
1719
- e.disabled || e.readonly || (s.value = !1);
1720
- }, P = (A) => {
1721
- A.key !== " " && A.key !== "Enter" || (A.preventDefault(), v());
1722
- };
1723
- q(() => {
1724
- setTimeout(() => {
1725
- l.value = !1;
1726
- }, 500);
1727
- });
1728
- const S = { props: e, emit: o, appState: a, isFocused: s, isFirstRender: l, switchWrapperAttrs: d, switchAttrs: p, switchIconAttrs: f, onSwitch: v, onFocus: b, onBlur: k, onKeydown: P, unref: u, computed: c, inject: y, ref: _, onMounted: q, get SWITCH_DEFAULT_PROPS() {
1729
- return Vr;
1730
- }, get APP_PROVIDER_STATE_KEY() {
1731
- return R;
1732
- }, get getSwitchAttrs() {
1733
- return $r;
1734
- }, get getSwitchIconAttrs() {
1735
- return zr;
1736
- }, get getSwitchWrapperAttrs() {
1737
- return Lr;
1738
- } };
1739
- return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
1740
- }
1741
- }), Co = ["tabindex", "aria-checked"];
1742
- function Fo(t, r, n, e, o, a) {
1743
- return m(), T("div", K(e.switchWrapperAttrs, {
1744
- tabindex: n.disabled ? -1 : 0,
1745
- "aria-checked": e.props.modelValue,
1746
- onPointerup: e.onSwitch,
1747
- onFocus: e.onFocus,
1748
- onBlur: e.onBlur,
1749
- onKeydown: e.onKeydown
1750
- }), [
1751
- H("div", w(z(e.switchAttrs)), [
1752
- H("div", w(z(e.switchIconAttrs)), null, 16)
1753
- ], 16),
1754
- B(t.$slots, "default", {}, void 0, !0)
1755
- ], 16, Co);
1756
- }
1757
- const Bo = /* @__PURE__ */ F(xo, [["render", Fo], ["__scopeId", "data-v-65bf583f"]]), Vo = /* @__PURE__ */ C({
1758
- __name: "checkbox",
1759
- props: /* @__PURE__ */ G({
1760
- modelValue: { type: Boolean },
1761
- role: {},
1762
- size: {},
1763
- shape: {},
1764
- variant: {},
1765
- readonly: { type: Boolean },
1766
- disabled: { type: Boolean },
1767
- shadow: { type: Boolean }
1768
- }, {
1769
- ...ft
1770
- }),
1771
- emits: ["update:modelValue", "focus", "blur"],
1772
- setup(t, { expose: r, emit: n }) {
1773
- r();
1774
- const e = t, o = n, a = y(R), s = _(!1), l = c(() => {
1775
- const P = u(a?.role) || "", S = e.role || P, A = e.shape || u(a?.shape) || "", M = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1;
1776
- return vt({
1777
- role: S,
1778
- shape: A,
1779
- size: e.size,
1780
- variant: e.variant,
1781
- modelValue: e.modelValue,
1782
- disabled: e.disabled,
1783
- readonly: e.readonly,
1784
- shadow: M && !e.disabled && s.value,
1785
- focus: s.value
1786
- });
1787
- }), d = mt(), p = () => {
1788
- e.disabled || e.readonly || o("update:modelValue", !e.modelValue);
1789
- }, k = { props: e, emit: o, appState: a, isFocused: s, checkboxAttrs: l, checkboxIconAttrs: d, onCheckbox: p, onFocus: () => {
1790
- e.disabled || e.readonly || (s.value = !0, o("focus"));
1791
- }, onBlur: () => {
1792
- e.disabled || e.readonly || (s.value = !1, o("blur"));
1793
- }, onKeydown: (P) => {
1794
- P.key !== " " && P.key !== "Enter" || (P.preventDefault(), p());
1795
- }, unref: u, computed: c, inject: y, ref: _, get CHECKBOX_DEFAULT_PROPS() {
1796
- return ft;
1797
- }, get APP_PROVIDER_STATE_KEY() {
1798
- return R;
1799
- }, get getCheckboxAttrs() {
1800
- return vt;
1801
- }, get getCheckboxIconAttrs() {
1802
- return mt;
1803
- } };
1804
- return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
1805
- }
1806
- }), Lo = ["tabindex", "aria-checked"];
1807
- function $o(t, r, n, e, o, a) {
1808
- return m(), T("div", K(e.checkboxAttrs, {
1809
- tabindex: n.disabled ? -1 : 0,
1810
- "aria-checked": e.props.modelValue,
1811
- onPointerup: e.onCheckbox,
1812
- onFocus: e.onFocus,
1813
- onBlur: e.onBlur,
1814
- onKeydown: e.onKeydown
1815
- }), [
1816
- H("div", w(z(e.checkboxIconAttrs)), null, 16),
1817
- B(t.$slots, "default", {}, void 0, !0)
1818
- ], 16, Lo);
1819
- }
1820
- const zo = /* @__PURE__ */ F(Vo, [["render", $o], ["__scopeId", "data-v-764d39e7"]]), Uo = /* @__PURE__ */ C({
1821
- __name: "radio",
1822
- props: /* @__PURE__ */ G({
1823
- value: {},
1824
- role: {},
1825
- size: {},
1826
- variant: {},
1827
- disabled: { type: Boolean },
1828
- readonly: { type: Boolean },
1829
- shadow: { type: Boolean }
1830
- }, {
1831
- ...ar
1832
- }),
1833
- setup(t, { expose: r }) {
1834
- r();
1835
- const n = t, e = y(R), o = y(
1836
- De,
1837
- null
1838
- ), a = _(!1), s = c(() => n.disabled || (u(o?.disabled) ?? !1)), l = c(() => n.readonly || (u(o?.readonly) ?? !1)), d = c(() => {
1839
- const S = (n?.shadow !== void 0 ? n.shadow : u(e?.shadow)) ?? !1, A = n.role || u(o?.role) || u(e?.role) || "", M = n.variant || u(o?.variant) || "", L = u(o?.modelValue) === n.value;
1840
- return sr({
1841
- role: A,
1842
- size: n.size,
1843
- variant: M,
1844
- checked: L,
1845
- disabled: s.value,
1846
- readonly: l.value,
1847
- shadow: S && !n.disabled && a.value,
1848
- focus: a.value
1849
- });
1850
- }), p = lr(), f = () => {
1851
- s.value || l.value || !o || o.setValue(n.value);
1852
- }, P = { props: n, appState: e, radioGroupState: o, isFocused: a, disabled: s, readonly: l, radioAttrs: d, radioIconAttrs: p, onRadio: f, onFocus: () => {
1853
- s.value || l.value || (a.value = !0);
1854
- }, onBlur: () => {
1855
- s.value || l.value || (a.value = !1);
1856
- }, onKeydown: (S) => {
1857
- S.key !== " " && S.key !== "Enter" || (S.preventDefault(), f());
1858
- }, unref: u, computed: c, inject: y, ref: _, get RADIO_DEFAULT_PROPS() {
1859
- return ar;
1860
- }, get APP_PROVIDER_STATE_KEY() {
1861
- return R;
1862
- }, get RADIO_GROUP_PROVIDER_STATE_KEY() {
1863
- return De;
1864
- }, get getRadioAttrs() {
1865
- return sr;
1866
- }, get getRadioIconAttrs() {
1867
- return lr;
1868
- } };
1869
- return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
1870
- }
1871
- }), Mo = ["tabindex"];
1872
- function Ko(t, r, n, e, o, a) {
1873
- return m(), T("div", K(e.radioAttrs, {
1874
- onPointerup: e.onRadio,
1875
- tabindex: e.disabled ? -1 : 0,
1876
- onFocus: e.onFocus,
1877
- onBlur: e.onBlur,
1878
- onKeydown: e.onKeydown
1879
- }), [
1880
- H("div", w(z(e.radioIconAttrs)), null, 16),
1881
- B(t.$slots, "default", {}, void 0, !0)
1882
- ], 16, Mo);
1883
- }
1884
- const No = /* @__PURE__ */ F(Uo, [["render", Ko], ["__scopeId", "data-v-e6db3cdd"]]), jo = /* @__PURE__ */ C({
1885
- __name: "radio-group",
1886
- props: /* @__PURE__ */ G({
1887
- modelValue: {},
1888
- role: {},
1889
- variant: {},
1890
- disabled: { type: Boolean },
1891
- readonly: { type: Boolean },
1892
- shadow: { type: Boolean },
1893
- direction: {}
1894
- }, {
1895
- ...or
1896
- }),
1897
- emits: ["update:modelValue"],
1898
- setup(t, { expose: r, emit: n }) {
1899
- r();
1900
- const e = t, o = n, a = y(R), s = c(() => e.modelValue), l = c(() => e.role || u(a?.role) || ""), d = c(() => e.variant), p = c(() => (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1), f = c(() => e.disabled), v = c(() => e.readonly), b = c(() => ir({ direction: e.direction }));
1901
- ne(De, {
1902
- modelValue: s,
1903
- role: l,
1904
- variant: d,
1905
- disabled: f,
1906
- readonly: v,
1907
- shadow: p,
1908
- setValue: (P) => {
1909
- o("update:modelValue", P);
1910
- }
1911
- });
1912
- const k = { props: e, emit: o, appState: a, modelValue: s, role: l, variant: d, shadow: p, disabled: f, readonly: v, radioGroupAttrs: b, unref: u, computed: c, inject: y, provide: ne, get RADIO_GROUP_DEFAULT_PROPS() {
1913
- return or;
1914
- }, get APP_PROVIDER_STATE_KEY() {
1915
- return R;
1916
- }, get RADIO_GROUP_PROVIDER_STATE_KEY() {
1917
- return De;
1918
- }, get getRadioGroupAttrs() {
1919
- return ir;
1920
- } };
1921
- return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
1922
- }
1923
- });
1924
- function Go(t, r, n, e, o, a) {
1925
- return m(), T("div", w(z(e.radioGroupAttrs)), [
1926
- B(t.$slots, "default", {}, void 0, !0)
1927
- ], 16);
1928
- }
1929
- const Yo = /* @__PURE__ */ F(jo, [["render", Go], ["__scopeId", "data-v-5008937a"]]), Ho = /* @__PURE__ */ C({
1930
- __name: "card",
1931
- props: /* @__PURE__ */ G({
1932
- role: {},
1933
- shape: {},
1934
- divider: { type: Boolean }
1935
- }, {
1936
- ...ct
1937
- }),
1938
- setup(t, { expose: r }) {
1939
- r();
1940
- const n = t, e = y(R), o = c(() => (n?.divider !== void 0 ? n.divider : u(e?.divider)) ?? !1), a = c(() => n?.shape || u(e?.shape) || ""), s = c(() => n.role || u(e?.role) || ""), l = c(
1941
- () => dt({
1942
- role: s.value,
1943
- shape: a.value,
1944
- divider: o.value
1945
- })
1946
- );
1947
- ne(ve, {
1948
- role: s,
1949
- shape: a,
1950
- divider: o
1951
- });
1952
- const d = { props: n, appState: e, divider: o, shape: a, role: s, cardAttrs: l, unref: u, computed: c, inject: y, provide: ne, get CARD_DEFAULT_PROPS() {
1953
- return ct;
1954
- }, get APP_PROVIDER_STATE_KEY() {
1955
- return R;
1956
- }, get CARD_PROVIDER_STATE_KEY() {
1957
- return ve;
1958
- }, get getCardAttrs() {
1959
- return dt;
1960
- } };
1961
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
1962
- }
1963
- });
1964
- function Wo(t, r, n, e, o, a) {
1965
- return m(), T("div", w(z(e.cardAttrs)), [
1966
- B(t.$slots, "default")
1967
- ], 16);
1968
- }
1969
- const Xo = /* @__PURE__ */ F(Ho, [["render", Wo]]), qo = /* @__PURE__ */ C({
1970
- __name: "card-body",
1971
- setup(t, { expose: r }) {
1972
- r();
1973
- const e = { cardBodyAttrs: _t(), get getCardBodyAttrs() {
1974
- return _t;
1975
- } };
1976
- return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
1977
- }
1978
- });
1979
- function Jo(t, r, n, e, o, a) {
1980
- return m(), T("div", w(z(e.cardBodyAttrs)), [
1981
- B(t.$slots, "default")
1982
- ], 16);
1983
- }
1984
- const Qo = /* @__PURE__ */ F(qo, [["render", Jo]]), Zo = /* @__PURE__ */ C({
1985
- __name: "card-header",
1986
- setup(t, { expose: r }) {
1987
- r();
1988
- const n = y(ve), e = c(() => {
1989
- const a = u(n?.divider) ?? !1;
1990
- return ut({ divider: a });
1991
- }), o = { cardProviderState: n, cardHeaderAttrs: e, computed: c, inject: y, unref: u, get CARD_PROVIDER_STATE_KEY() {
1992
- return ve;
1993
- }, get getCardHeaderAttrs() {
1994
- return ut;
1995
- } };
1996
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
1997
- }
1998
- });
1999
- function ea(t, r, n, e, o, a) {
2000
- return m(), T("div", w(z(e.cardHeaderAttrs)), [
2001
- B(t.$slots, "default")
2002
- ], 16);
2003
- }
2004
- const ta = /* @__PURE__ */ F(Zo, [["render", ea]]), ra = /* @__PURE__ */ C({
2005
- __name: "card-footer",
2006
- setup(t, { expose: r }) {
2007
- r();
2008
- const n = y(ve), e = c(() => {
2009
- const a = u(n?.divider) ?? !1;
2010
- return pt({ divider: a });
2011
- }), o = { cardProviderState: n, cardFooterAttrs: e, computed: c, inject: y, unref: u, get CARD_PROVIDER_STATE_KEY() {
2012
- return ve;
2013
- }, get getCardFooterAttrs() {
2014
- return pt;
2015
- } };
2016
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
2017
- }
2018
- });
2019
- function na(t, r, n, e, o, a) {
2020
- return m(), T("div", w(z(e.cardFooterAttrs)), [
2021
- B(t.$slots, "default")
2022
- ], 16);
2023
- }
2024
- const oa = /* @__PURE__ */ F(ra, [["render", na]]), aa = /* @__PURE__ */ C({
2025
- __name: "avatar",
2026
- props: /* @__PURE__ */ G({
2027
- shape: {},
2028
- size: {},
2029
- src: {},
2030
- role: {},
2031
- divider: { type: Boolean }
2032
- }, {
2033
- ...rt
2034
- }),
2035
- setup(t, { expose: r }) {
2036
- r();
2037
- const n = t, e = y(R), o = c(() => {
2038
- const s = n?.shape || u(e?.shape) || "", l = n?.role || u(e?.role) || "", d = (n?.divider !== void 0 ? n.divider : u(e?.divider)) ?? !1;
2039
- return nt({
2040
- role: l,
2041
- shape: s,
2042
- divider: d,
2043
- size: n.size,
2044
- src: n.src
2045
- });
2046
- }), a = { props: n, appState: e, avatarAttrs: o, unref: u, computed: c, inject: y, get AVATAR_DEFAULT_PROPS() {
2047
- return rt;
2048
- }, get APP_PROVIDER_STATE_KEY() {
2049
- return R;
2050
- }, get getAvatarAttrs() {
2051
- return nt;
2052
- } };
2053
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
2054
- }
2055
- });
2056
- function sa(t, r, n, e, o, a) {
2057
- return m(), T("div", w(z(e.avatarAttrs)), [
2058
- B(t.$slots, "default", {}, void 0, !0)
2059
- ], 16);
2060
- }
2061
- const la = /* @__PURE__ */ F(aa, [["render", sa], ["__scopeId", "data-v-f05249c9"]]), ia = /* @__PURE__ */ C({
2062
- __name: "divider",
2063
- props: /* @__PURE__ */ G({
2064
- direction: {},
2065
- role: {}
2066
- }, {
2067
- ...Ot
2068
- }),
2069
- setup(t, { expose: r }) {
2070
- r();
2071
- const n = t, e = y(R), o = c(() => {
2072
- const s = n.role || u(e?.role) || "";
2073
- return wt({ role: s, direction: n.direction });
2074
- }), a = { props: n, appState: e, dividerAttrs: o, unref: u, computed: c, inject: y, get DIVIDER_DEFAULT_PROPS() {
2075
- return Ot;
2076
- }, get APP_PROVIDER_STATE_KEY() {
2077
- return R;
2078
- }, get getDividerAttrs() {
2079
- return wt;
2080
- } };
2081
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
2082
- }
2083
- });
2084
- function ca(t, r, n, e, o, a) {
2085
- return m(), T("div", w(z(e.dividerAttrs)), null, 16);
2086
- }
2087
- const da = /* @__PURE__ */ F(ia, [["render", ca], ["__scopeId", "data-v-83a5abd7"]]), ua = /* @__PURE__ */ C({
2088
- __name: "image",
2089
- props: {
2090
- defaultSrc: {},
2091
- src: {}
2092
- },
2093
- setup(t, { expose: r }) {
2094
- r();
2095
- const n = t, e = y(R), o = _(n.src ?? ""), a = c(() => n.defaultSrc ?? u(e?.data)?.errorImageUrl ?? ""), s = () => {
2096
- a.value && (o.value = a.value);
2097
- };
2098
- W(
2099
- () => n.src,
2100
- (d) => {
2101
- o.value = d ?? "";
2102
- }
2103
- );
2104
- const l = { props: n, appState: e, dataSrc: o, defaultSrc: a, handleError: s, unref: u, ref: _, watch: W, computed: c, inject: y, get APP_PROVIDER_STATE_KEY() {
2105
- return R;
2106
- } };
2107
- return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
2108
- }
2109
- }), pa = ["src"];
2110
- function _a(t, r, n, e, o, a) {
2111
- return m(), T("img", {
2112
- onError: e.handleError,
2113
- src: e.dataSrc
2114
- }, null, 40, pa);
2115
- }
2116
- const fa = /* @__PURE__ */ F(ua, [["render", _a]]), va = /* @__PURE__ */ C({
2117
- __name: "field",
2118
- props: /* @__PURE__ */ G({
2119
- modelValue: {},
2120
- name: {},
2121
- variant: {},
2122
- role: {},
2123
- shape: {},
2124
- size: {},
2125
- shadow: { type: Boolean },
2126
- direction: {},
2127
- id: {},
2128
- value: {},
2129
- placeholder: {},
2130
- disabled: { type: Boolean },
2131
- readonly: { type: Boolean },
2132
- autocomplete: {},
2133
- maxLength: {},
2134
- tabindex: {},
2135
- type: {},
2136
- line: {},
2137
- maxLine: {},
2138
- message: {}
2139
- }, {
2140
- ...Ct
2141
- }),
2142
- emits: ["update:modelValue", "focus", "blur", "input", "beforeinput"],
2143
- setup(t, { expose: r, emit: n }) {
2144
- r();
2145
- const e = t, o = n, a = y(R), s = _(!1), l = _(0), d = _(""), p = c(() => {
2146
- const E = e.role || u(a?.role) || "", g = e.shape || u(a?.shape) || "", V = (e?.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1, Y = e.direction || u(a?.direction) || "left";
2147
- return Ft({
2148
- role: E,
2149
- shape: g,
2150
- size: e.size,
2151
- direction: Y,
2152
- variant: e.variant,
2153
- type: e.type,
2154
- disabled: e.disabled,
2155
- focus: s.value,
2156
- shadow: V,
2157
- readonly: e.readonly,
2158
- line: Number(e.line),
2159
- maxLine: e.maxLine !== void 0 ? Number(e.maxLine) : void 0
2160
- });
2161
- }), f = c(() => {
2162
- const E = e.modelValue;
2163
- if (E != null && E !== "")
2164
- return String(E);
2165
- const g = e.value;
2166
- return g != null && g !== "" ? String(g) : "";
2167
- }), v = c(() => Bt()), b = c(() => ({
2168
- ...Vt(),
2169
- name: e.name,
2170
- id: e.id,
2171
- placeholder: e.placeholder,
2172
- autocomplete: e.autocomplete,
2173
- type: e.type,
2174
- readonly: e.readonly,
2175
- disabled: e.disabled,
2176
- maxlength: e.maxLength,
2177
- tabindex: e.tabindex
2178
- })), k = c(() => Lt()), P = (E) => {
2179
- e.disabled || (s.value = !0, o("focus", E));
2180
- }, S = (E) => {
2181
- e.disabled || (s.value = !1, o("blur", E));
2182
- }, A = (E) => {
2183
- o("input", E);
2184
- }, M = (E) => {
2185
- o("beforeinput", E);
2186
- };
2187
- W(
2188
- () => f.value,
2189
- (E) => {
2190
- d.value = E.toString();
2191
- },
2192
- { immediate: !0 }
2193
- ), W(
2194
- () => d.value,
2195
- (E) => {
2196
- o("update:modelValue", E.toString());
2197
- }
2198
- );
2199
- const L = { props: e, emit: o, appState: a, isFocus: s, caret: l, content: d, fieldAttrs: p, rawContent: f, fieldContentAttrs: v, fieldInputAttrs: b, fieldMessageAttrs: k, onFocus: P, onBlur: S, onInput: A, onBeforeinput: M, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, ref: _, watch: W, get FIELD_DEFAULT_PROPS() {
2200
- return Ct;
2201
- }, get APP_PROVIDER_STATE_KEY() {
2202
- return R;
2203
- }, get getFieldAttrs() {
2204
- return Ft;
2205
- }, get getFieldContentAttrs() {
2206
- return Bt;
2207
- }, get getFieldInputAttrs() {
2208
- return Vt;
2209
- }, get getFieldMessageAttrs() {
2210
- return Lt;
2211
- } };
2212
- return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
2213
- }
2214
- }), ma = ["rows"], ga = ["type"];
2215
- function ha(t, r, n, e, o, a) {
2216
- return m(), T("div", w(z(e.fieldAttrs)), [
2217
- H("div", w(z(e.fieldContentAttrs)), [
2218
- B(t.$slots, "start-input", {}, void 0, !0),
2219
- B(t.$slots, "input", {}, () => [
2220
- n.type === "paragraph" ? fe((m(), T("textarea", K({ key: 0 }, e.fieldInputAttrs, {
2221
- onInput: e.onInput,
2222
- onFocus: e.onFocus,
2223
- onBlur: e.onBlur,
2224
- onBeforeinput: e.onBeforeinput,
2225
- "onUpdate:modelValue": r[0] || (r[0] = (s) => e.content = s),
2226
- rows: n.line
2227
- }), null, 16, ma)), [
2228
- [Sn, e.content]
2229
- ]) : fe((m(), T("input", K({ key: 1 }, e.fieldInputAttrs, {
2230
- onInput: e.onInput,
2231
- onFocus: e.onFocus,
2232
- onBlur: e.onBlur,
2233
- onBeforeinput: e.onBeforeinput,
2234
- "onUpdate:modelValue": r[1] || (r[1] = (s) => e.content = s),
2235
- type: n.type
2236
- }), null, 16, ga)), [
2237
- [En, e.content]
2238
- ])
2239
- ], !0),
2240
- B(t.$slots, "end-input", {}, void 0, !0)
2241
- ], 16),
2242
- n.message ? (m(), T("div", w(K({ key: 0 }, e.fieldMessageAttrs)), ie(n.message), 17)) : te("", !0),
2243
- B(t.$slots, "default", {}, void 0, !0)
2244
- ], 16);
2245
- }
2246
- const je = /* @__PURE__ */ F(va, [["render", ha], ["__scopeId", "data-v-837bf696"]]), ba = /* @__PURE__ */ C({
2247
- __name: "segmented-field",
2248
- props: /* @__PURE__ */ G({
2249
- modelValue: {},
2250
- value: {},
2251
- length: {},
2252
- variant: {},
2253
- size: {},
2254
- disabled: { type: Boolean },
2255
- readonly: { type: Boolean },
2256
- type: {},
2257
- role: {},
2258
- shape: {},
2259
- shadow: { type: Boolean },
2260
- message: {},
2261
- pattern: {},
2262
- direction: {}
2263
- }, {
2264
- ...vr
2265
- }),
2266
- emits: ["update:modelValue", "complete", "focus", "blur", "input"],
2267
- setup(t, { expose: r, emit: n }) {
2268
- r();
2269
- const e = t, o = n, a = y(R), s = _([]), l = _([]), d = c(() => {
2270
- const O = e.modelValue !== void 0 ? e.modelValue : e.value !== void 0 ? e.value : s.value;
2271
- return Array.from({ length: e.length }, (x, j) => O?.[j] ?? "");
2272
- }), p = c(() => {
2273
- const O = d.value.findIndex((x) => !x);
2274
- return O === -1 ? e.length - 1 : O;
2275
- }), f = c(() => {
2276
- const O = e.role || u(a?.role) || "", x = e.shape || u(a?.shape) || "", j = e.direction || u(a?.direction) || "left";
2277
- return mr({
2278
- role: O,
2279
- shape: x,
2280
- direction: j,
2281
- variant: e.variant,
2282
- size: e.size,
2283
- disabled: e.disabled
2284
- });
2285
- }), v = gr(), b = c(() => {
2286
- const O = e.role || u(a?.role) || "", x = e.shape || u(a?.shape) || "", j = (e.shadow !== void 0 ? e.shadow : u(a?.shadow)) ?? !1;
2287
- return {
2288
- variant: e.variant,
2289
- size: e.size,
2290
- disabled: e.disabled,
2291
- readonly: e.readonly,
2292
- shadow: j,
2293
- shape: x,
2294
- role: O,
2295
- type: e.type,
2296
- maxLength: 1,
2297
- autocomplete: "off"
2298
- };
2299
- }), k = hr(), P = (O, x) => {
2300
- if (!O) return "";
2301
- let j = O.slice(-1);
2302
- const X = e.pattern?.[x] ?? e.pattern?.[0];
2303
- return X && !new RegExp(X).test(j) ? "" : j;
2304
- }, S = (O) => l.value[O]?.$el?.querySelector("input, textarea"), A = async () => {
2305
- await re();
2306
- for (let O = 0; O < e.length; O++) {
2307
- const x = S(O);
2308
- x && (x.value = d.value[O] ?? "");
2309
- }
2310
- }, M = async (O) => {
2311
- const x = Array.from({ length: e.length }, (j, X) => O[X] ?? "");
2312
- s.value = x, o("update:modelValue", x), o("input", x), x.every((j) => j) && o("complete", x), await A();
2313
- }, L = async (O) => {
2314
- if (e.disabled || e.readonly) return;
2315
- const x = Math.max(0, Math.min(O, e.length - 1));
2316
- await re();
2317
- const j = S(x);
2318
- j?.focus(), j && "select" in j && j.select();
2319
- }, E = (O, x) => {
2320
- const j = [...d.value];
2321
- j[O] = x, M(j);
2322
- }, g = (O, x) => {
2323
- const j = P(x, O);
2324
- j && (E(O, j), O < e.length - 1 && L(O + 1));
2325
- }, V = (O, x) => {
2326
- const j = O.replace(/\s/g, "").split("");
2327
- if (!j.length) return;
2328
- const X = [...d.value];
2329
- let se = x;
2330
- for (const Fe of j) {
2331
- if (se >= e.length) break;
2332
- const _e = P(Fe, se);
2333
- _e && (X[se] = _e, se += 1);
2334
- }
2335
- M(X), L(Math.min(se, e.length - 1));
2336
- }, Q = { props: e, emit: o, appState: a, keepValue: s, fields: l, segments: d, firstEmptyIndex: p, wrapperAttrs: f, contentAttrs: v, fieldAttrs: b, messageAttrs: k, normalizeChar: P, getFieldInput: S, syncFieldInputs: A, updateValue: M, focusInput: L, setCell: E, applyChar: g, handlePaste: V, onFieldClick: () => {
2337
- L(p.value);
2338
- }, onSegmentFocus: (O, x) => {
2339
- o("focus", O), S(x)?.select?.();
2340
- }, onSegmentBeforeinput: (O, x) => {
2341
- if (e.disabled || e.readonly) return;
2342
- const { inputType: j } = O;
2343
- if (j === "insertText" && O.data != null) {
2344
- O.preventDefault(), O.data.length > 1 ? V(O.data, x) : g(x, O.data);
2345
- return;
2346
- }
2347
- if (j === "insertFromPaste" && O.dataTransfer) {
2348
- O.preventDefault();
2349
- const X = O.dataTransfer.getData("text");
2350
- V(X, x);
2351
- return;
2352
- }
2353
- if (j === "deleteContentBackward") {
2354
- O.preventDefault();
2355
- const X = [...d.value];
2356
- if (X[x]) {
2357
- X[x] = "", M(X);
2358
- return;
2359
- }
2360
- x > 0 && (X[x - 1] = "", M(X), L(x - 1));
2361
- }
2362
- }, onSegmentInput: (O, x) => {
2363
- if (e.disabled || e.readonly) return;
2364
- const j = O.target;
2365
- if (!j) return;
2366
- const X = j.value, se = d.value[x] ?? "";
2367
- if (!X) {
2368
- se || E(x, "");
2369
- return;
2370
- }
2371
- if (X.length > 1) {
2372
- V(X, x);
2373
- return;
2374
- }
2375
- X !== se && g(x, X);
2376
- }, unref: u, computed: c, inject: y, nextTick: re, ref: _, get Field() {
2377
- return je;
2378
- }, get SEGMENTED_FIELD_DEFAULT_PROPS() {
2379
- return vr;
2380
- }, get APP_PROVIDER_STATE_KEY() {
2381
- return R;
2382
- }, get getSegmentedFieldContentAttrs() {
2383
- return gr;
2384
- }, get getSegmentedFieldMessageAttrs() {
2385
- return hr;
2386
- }, get getSegmentedFieldWrapperAttrs() {
2387
- return mr;
2388
- } };
2389
- return Object.defineProperty(Q, "__isScriptSetup", { enumerable: !1, value: !0 }), Q;
2390
- }
2391
- });
2392
- function Aa(t, r, n, e, o, a) {
2393
- return m(), T("div", w(z(e.wrapperAttrs)), [
2394
- H("div", K(e.contentAttrs, { onPointerup: e.onFieldClick }), [
2395
- (m(!0), T(de, null, ue(e.props.length, (s, l) => (m(), ee(e.Field, K({ key: l }, { ref_for: !0 }, e.fieldAttrs, {
2396
- "model-value": e.segments[l],
2397
- tabindex: l === e.firstEmptyIndex ? 0 : -1,
2398
- onBeforeinput: (d) => e.onSegmentBeforeinput(d, l),
2399
- onInput: (d) => e.onSegmentInput(d, l),
2400
- onFocus: (d) => e.onSegmentFocus(d, l),
2401
- ref_for: !0,
2402
- ref: "fields"
2403
- }), null, 16, ["model-value", "tabindex", "onBeforeinput", "onInput", "onFocus"]))), 128))
2404
- ], 16),
2405
- n.message ? (m(), T("div", w(K({ key: 0 }, e.messageAttrs)), ie(n.message), 17)) : te("", !0)
2406
- ], 16);
2407
- }
2408
- const ya = /* @__PURE__ */ F(ba, [["render", Aa], ["__scopeId", "data-v-e1be0bb8"]]), Pa = /* @__PURE__ */ C({
2409
- __name: "container",
2410
- setup(t, { expose: r }) {
2411
- r();
2412
- const e = { containerAttrs: Pt(), get getContainerAttrs() {
2413
- return Pt;
2414
- } };
2415
- return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
2416
- }
2417
- });
2418
- function Ta(t, r, n, e, o, a) {
2419
- return m(), T("div", w(z(e.containerAttrs)), [
2420
- B(t.$slots, "default", {}, void 0, !0)
2421
- ], 16);
2422
- }
2423
- const Sa = /* @__PURE__ */ F(Pa, [["render", Ta], ["__scopeId", "data-v-047631ab"]]), Ea = /* @__PURE__ */ C({
2424
- __name: "refresher",
2425
- emits: ["move", "cancel", "end", "start"],
2426
- setup(t, { expose: r, emit: n }) {
2427
- r();
2428
- const e = n, o = _(!1), a = _();
2429
- let s, l = !1;
2430
- const d = c(() => cr()), p = () => {
2431
- o.value = !1;
2432
- }, f = () => (o.value = !0, p), v = () => {
2433
- e("end", { refresh: f });
2434
- }, b = () => {
2435
- l = !1, o.value = !1, e("cancel");
2436
- };
2437
- W(
2438
- () => a.value,
2439
- () => {
2440
- s && s.destroy(), a.value && (s = pe(
2441
- a.value,
2442
- {
2443
- options: {
2444
- minMove: 20
2445
- },
2446
- beforeEvent() {
2447
- return l ? !0 : !((a.value?.scrollTop || 0) > 0);
2448
- },
2449
- down() {
2450
- o.value || (l = (a.value?.scrollTop || 0) <= 0, l && e("start"));
2451
- },
2452
- move({ deltaY: P, initialDirection: S }) {
2453
- if (o.value || !l || S != "down") return;
2454
- const A = P < 0 ? 0 : P;
2455
- e("move", { refresh: f, offset: A });
2456
- },
2457
- up({ initialDirection: P }) {
2458
- const S = l;
2459
- if (l = !1, !(o.value || !S)) {
2460
- if (P != "down") {
2461
- b();
2462
- return;
2463
- }
2464
- v();
2465
- }
2466
- },
2467
- cancel() {
2468
- l = !1, !o.value && b();
2469
- }
2470
- },
2471
- {
2472
- passive: !1
2473
- }
2474
- ));
2475
- }
2476
- ), oe(() => {
2477
- s && s.destroy();
2478
- });
2479
- const k = { emit: e, refreshing: o, container: a, get cleanup() {
2480
- return s;
2481
- }, set cleanup(P) {
2482
- s = P;
2483
- }, get isPulling() {
2484
- return l;
2485
- }, set isPulling(P) {
2486
- l = P;
2487
- }, containerAttrs: d, close: p, refresh: f, up: v, cancel: b, ref: _, onUnmounted: oe, watch: W, computed: c, get gesture() {
2488
- return pe;
2489
- }, get getRefresherAttrs() {
2490
- return cr;
2491
- } };
2492
- return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
2493
- }
2494
- });
2495
- function Ra(t, r, n, e, o, a) {
2496
- return m(), T("div", K(e.containerAttrs, { ref: "container" }), [
2497
- B(t.$slots, "default", {}, void 0, !0)
2498
- ], 16);
2499
- }
2500
- const ka = /* @__PURE__ */ F(Ea, [["render", Ra], ["__scopeId", "data-v-bfabe45d"]]), Oa = /* @__PURE__ */ C({
2501
- __name: "route-provider",
2502
- props: {
2503
- stack: {}
2504
- },
2505
- setup(t, { expose: r }) {
2506
- r();
2507
- const n = t, e = c(() => n.stack);
2508
- ne(Ie, {
2509
- stack: e
2510
- });
2511
- const o = { props: n, stack: e, provide: ne, computed: c, get ROUTE_PROVIDER_STATE_KEY() {
2512
- return Ie;
2513
- } };
2514
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
2515
- }
2516
- });
2517
- function wa(t, r, n, e, o, a) {
2518
- return B(t.$slots, "default");
2519
- }
2520
- const Ge = /* @__PURE__ */ F(Oa, [["render", wa]]), Da = /* @__PURE__ */ C({
2521
- __name: "route-outlet",
2522
- props: {
2523
- component: {}
2524
- },
2525
- setup(t, { expose: r }) {
2526
- r();
2527
- const n = t, e = _(null), o = async (l) => {
2528
- if (typeof l != "function") return l;
2529
- const d = await l();
2530
- return d?.default ?? d;
2531
- }, a = async (l) => {
2532
- if (l == null) return null;
2533
- const d = typeof l == "object" && l !== null && "default" in l ? l.default : l;
2534
- return o(d);
2535
- };
2536
- q(async () => {
2537
- const l = await a(n.component);
2538
- e.value = l ? Xe(l) : null;
2539
- });
2540
- const s = { props: n, renderComponent: e, resolveComponent: o, resolveFromProp: a, markRaw: Xe, onMounted: q, ref: _ };
2541
- return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
2542
- }
2543
- });
2544
- function Ia(t, r, n, e, o, a) {
2545
- return e.renderComponent ? (m(), ee(Rn(e.renderComponent), { key: 0 })) : te("", !0);
2546
- }
2547
- const vn = /* @__PURE__ */ F(Da, [["render", Ia]]), Me = (t) => t.map((r) => ({
2548
- ...r,
2549
- stack: Me(r.stack)
2550
- })), Se = -40, xa = /* @__PURE__ */ C({
2551
- __name: "route-navigator",
2552
- props: /* @__PURE__ */ G({
2553
- direction: {},
2554
- variant: {},
2555
- keepalive: { type: Boolean }
2556
- }, {
2557
- ...dr
2558
- }),
2559
- emits: ["transform"],
2560
- setup(t, { expose: r, emit: n }) {
2561
- r();
2562
- const e = t, o = n, a = y(Ie), s = Oe(), l = _(), d = _(null), p = Ee({
2563
- back: Se,
2564
- prepare: 100,
2565
- active: 0,
2566
- backdrop: 0,
2567
- duration: void 0
2568
- }), f = _([]), v = _(0), b = _(0), k = c(
2569
- () => pr({
2570
- direction: e.direction,
2571
- variant: e.variant,
2572
- moving: p.active !== 0,
2573
- transform: p
2574
- })
2575
- ), P = c(
2576
- () => _r({ direction: e.direction })
2577
- ), S = c(
2578
- () => fr({ zIndex: b.value * 2 + 99 })
2579
- ), A = c(() => v.value > 0 ? f.value.at(v.value - 1) ?? null : null), M = ($) => {
2580
- const U = Me($);
2581
- if (f.value.length === 0) {
2582
- f.value = U;
2583
- return;
2584
- }
2585
- if (f.value.length === U.length) {
2586
- const D = f.value.length - 1;
2587
- f.value[D].stack = U[D].stack;
2588
- } else if (f.value.length > U.length) {
2589
- const D = v.value - 1;
2590
- E(), v.value = D, p.backdrop = 0, o("transform", p), setTimeout(() => {
2591
- f.value = f.value.slice(0, -1), b.value = D, p.backdrop = 100, o("transform", p);
2592
- }, 250);
2593
- } else
2594
- f.value.push(U[U.length - 1]), p.duration = "0s", p.backdrop = 0, o("transform", p), setTimeout(
2595
- () => {
2596
- b.value = b.value + 1, p.duration = void 0, o("transform", p);
2597
- },
2598
- e.variant === "swipe" ? 10 : 0
2599
- ), setTimeout(
2600
- () => {
2601
- p.backdrop = 100, v.value = f.value.length - 1, o("transform", p);
2602
- },
2603
- e.variant === "swipe" ? 100 : 0
2604
- );
2605
- }, L = () => {
2606
- v.value <= 0 || !f.value[v.value - 1] || s.back();
2607
- }, E = () => {
2608
- p.back = Se, p.prepare = 100, p.active = 0, p.duration = void 0, o("transform", p);
2609
- }, g = ($) => {
2610
- const U = l.value?.offsetWidth ?? 0;
2611
- let D = 0;
2612
- e.direction == "left" || e.direction == "right" ? D = Math.abs($.deltaX) / U * 100 : D = Math.abs($.deltaY) / U * 100, p.back = (100 - D) * Se / 100, p.active = D, p.backdrop = 100 - p.active, p.duration = "0s", o("transform", p);
2613
- }, V = ($) => {
2614
- const U = l.value?.offsetWidth ?? 0;
2615
- let D = 0;
2616
- e.direction == "left" || e.direction == "right" ? D = Math.abs($.deltaX) / U * 100 : D = Math.abs($.deltaY) / U * 100, D >= 60 ? L() : E();
2617
- };
2618
- W(
2619
- () => u(a?.stack),
2620
- ($) => {
2621
- M($);
2622
- }
2623
- ), q(() => {
2624
- M(u(a?.stack)), d.value = l.value && pe(
2625
- l.value,
2626
- {
2627
- options: {
2628
- trackOutsideElement: !0
2629
- },
2630
- beforeEvent($) {
2631
- return $.target?.closest("input, textarea, select, button, [contenteditable]") || e.variant === "none" || !A.value ? !1 : ($.stopPropagation(), !0);
2632
- },
2633
- fast({ initialDirection: $ }) {
2634
- !$ || $ !== e.direction || L();
2635
- },
2636
- move({ deltaX: $, deltaY: U, initialDirection: D, event: Q }) {
2637
- !D || D !== e.direction || (Q.cancelable && Q.preventDefault(), g({ deltaX: $, deltaY: U }));
2638
- },
2639
- up({ deltaX: $, deltaY: U, initialDirection: D }) {
2640
- !D || D !== e.direction || V({ deltaX: $, deltaY: U });
2641
- },
2642
- cancel() {
2643
- E();
2644
- }
2645
- },
2646
- {
2647
- element: { passive: !1 },
2648
- move: { passive: !1 }
2649
- }
2650
- );
2651
- }), oe(() => {
2652
- d.value && d.value.destroy();
2653
- });
2654
- const Y = { BACK_LAYER_PEEK_PCT: Se, props: e, emit: o, provider: a, router: s, navigatorRef: l, ges: d, transform: p, stack: f, activeIndex: v, backdropIndex: b, navigatorAttrs: k, componentAttrs: P, backdropAttrs: S, prevPage: A, changeRoute: M, goBack: L, resetTransform: E, move: g, up: V, computed: c, inject: y, onMounted: q, onUnmounted: oe, reactive: Ee, ref: _, watch: W, unref: u, get gesture() {
2655
- return pe;
2656
- }, get RouteProvider() {
2657
- return Ge;
2658
- }, get RouteOutlet() {
2659
- return vn;
2660
- }, get useRouter() {
2661
- return Oe;
2662
- }, get clone() {
2663
- return Me;
2664
- }, get ROUTE_NAVIGATOR_DEFAULT_PROPS() {
2665
- return dr;
2666
- }, get ROUTE_PROVIDER_STATE_KEY() {
2667
- return Ie;
2668
- }, get getRouteNavigatorAttrs() {
2669
- return pr;
2670
- }, get getRouteNavigatorBackdropAttrs() {
2671
- return fr;
2672
- }, get getRouteNavigatorComponentAttrs() {
2673
- return _r;
2674
- } };
2675
- return Object.defineProperty(Y, "__isScriptSetup", { enumerable: !1, value: !0 }), Y;
2676
- }
2677
- }), Ca = ["name"];
2678
- function Fa(t, r, n, e, o, a) {
2679
- return m(), T("div", K(e.navigatorAttrs, { ref: "navigatorRef" }), [
2680
- (m(!0), T(de, null, ue(e.stack, (s, l) => (m(), T("div", K({
2681
- key: s.name
2682
- }, { ref_for: !0 }, e.componentAttrs, {
2683
- style: { zIndex: l * 2 + 100 },
2684
- name: s.name,
2685
- class: {
2686
- active: l === e.activeIndex,
2687
- prepare: l === e.activeIndex + 1,
2688
- back: l === e.activeIndex - 1
2689
- }
2690
- }), [
2691
- le(e.RouteProvider, {
2692
- stack: s.stack
2693
- }, {
2694
- default: ae(() => [
2695
- le(e.RouteOutlet, {
2696
- component: s.component
2697
- }, null, 8, ["component"])
2698
- ]),
2699
- _: 2
2700
- }, 1032, ["stack"])
2701
- ], 16, Ca))), 128)),
2702
- H("div", w(z(e.backdropAttrs)), null, 16)
2703
- ], 16);
2704
- }
2705
- const Ba = /* @__PURE__ */ F(xa, [["render", Fa], ["__scopeId", "data-v-b1866f21"]]), Ue = kn([]), Ke = (t, r) => {
2706
- if (t.length === 0) return r;
2707
- if (r.length > 1 && r[r.length - 2]?.name === t[0].name && r.pop(), r.length > 0 && r[r.length - 1] && r[r.length - 1].name === t[0].name)
2708
- t.shift(), r[r.length - 1].stack = Ke(t, r[r.length - 1].stack);
2709
- else {
2710
- const n = String(t[0].name), e = t[0].components;
2711
- t.shift(), r.push({
2712
- name: n,
2713
- component: e,
2714
- stack: Ke(t, [])
2715
- });
2716
- }
2717
- return r;
2718
- }, on = () => ({
2719
- stack: Ue,
2720
- updateRoutes: (r) => {
2721
- Ue.value = Ke([...r], [...Ue.value]);
2722
- }
2723
- }), Va = /* @__PURE__ */ C({
2724
- __name: "route-wrapper",
2725
- props: /* @__PURE__ */ G({
2726
- homeRouteName: {}
2727
- }, {
2728
- ...ur
2729
- }),
2730
- setup(t, { expose: r }) {
2731
- r();
2732
- const n = t, { updateRoutes: e, stack: o } = on(), a = qe(), s = Oe();
2733
- W(
2734
- () => a.matched,
2735
- () => {
2736
- e(a.matched);
2737
- }
2738
- ), q(() => {
2739
- const d = n.homeRouteName;
2740
- if (a.name === d)
2741
- e(a.matched);
2742
- else {
2743
- const p = s.resolve({ name: d });
2744
- p.matched.length > 0 && e(p.matched), setTimeout(() => {
2745
- e(a.matched);
2746
- }, 50);
2747
- }
2748
- });
2749
- const l = { props: n, updateRoutes: e, stack: o, route: a, router: s, onMounted: q, watch: W, get useRouteWrapper() {
2750
- return on;
2751
- }, get useRouter() {
2752
- return Oe;
2753
- }, get useRoute() {
2754
- return qe;
2755
- }, get RouteProvider() {
2756
- return Ge;
2757
- }, get ROUTE_WRAPPER_DEFAULT_PROPS() {
2758
- return ur;
2759
- } };
2760
- return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
2761
- }
2762
- });
2763
- function La(t, r, n, e, o, a) {
2764
- return m(), ee(e.RouteProvider, { stack: e.stack }, {
2765
- default: ae(() => [
2766
- B(t.$slots, "default")
2767
- ]),
2768
- _: 3
2769
- }, 8, ["stack"]);
2770
- }
2771
- const $a = /* @__PURE__ */ F(Va, [["render", La]]), za = /* @__PURE__ */ C({
2772
- __name: "page",
2773
- setup(t, { expose: r }) {
2774
- r();
2775
- const e = { pageAttrs: Zt(), get getPageAttrs() {
2776
- return Zt;
2777
- } };
2778
- return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
2779
- }
2780
- });
2781
- function Ua(t, r, n, e, o, a) {
2782
- return m(), T("div", w(z(e.pageAttrs)), [
2783
- B(t.$slots, "default", {}, void 0, !0)
2784
- ], 16);
2785
- }
2786
- const Ma = /* @__PURE__ */ F(za, [["render", Ua], ["__scopeId", "data-v-454bda2b"]]), Ka = /* @__PURE__ */ C({
2787
- __name: "collapse",
2788
- props: /* @__PURE__ */ G({
2789
- modelValue: { type: Boolean },
2790
- duration: {},
2791
- role: {},
2792
- disabled: { type: Boolean }
2793
- }, {
2794
- ...gt
2795
- }),
2796
- emits: ["update:modelValue"],
2797
- setup(t, { expose: r, emit: n }) {
2798
- r();
2799
- const e = t, o = n, a = y(R), s = _(null), l = _(0), d = _(!1), p = _(!0), f = c(() => e.role ?? u(a?.role) ?? ""), v = c(
2800
- () => e.duration !== void 0 ? `${e.duration / 1e3}s` : void 0
2801
- ), b = c(
2802
- () => ht({
2803
- role: f.value,
2804
- open: d.value,
2805
- disabled: e.disabled
2806
- })
2807
- ), k = c(
2808
- () => bt({
2809
- open: d.value,
2810
- disabled: e.disabled
2811
- })
2812
- ), P = c(
2813
- () => At({
2814
- transition: !p.value,
2815
- duration: v.value,
2816
- height: d.value ? `${l.value}px` : "0px"
2817
- })
2818
- ), S = c(() => yt()), A = () => {
2819
- s.value && (l.value = s.value.scrollHeight);
2820
- }, M = () => {
2821
- e.disabled || (d.value = !d.value, o("update:modelValue", d.value));
2822
- }, L = () => {
2823
- };
2824
- W(
2825
- () => e.modelValue,
2826
- async (g) => {
2827
- d.value = g, g && (await re(), A(), p.value = !1);
2828
- },
2829
- { immediate: !0 }
2830
- ), W(
2831
- () => s.value,
2832
- (g) => {
2833
- g && d.value && A();
2834
- }
2835
- ), W(
2836
- () => [s.value?.innerHTML, d.value],
2837
- async () => {
2838
- d.value && (await re(), A());
2839
- }
2840
- ), q(async () => {
2841
- await re(), d.value && A();
2842
- });
2843
- const E = { props: e, emit: o, appState: a, contentRef: s, contentHeight: l, isOpen: d, isFirstOpen: p, role: f, durationCss: v, wrapperAttrs: b, triggerAttrs: k, contentAttrs: P, contentInnerClass: S, measureContent: A, toggle: M, onTransitionEnd: L, unref: u, computed: c, inject: y, nextTick: re, onMounted: q, ref: _, watch: W, get COLLAPSE_DEFAULT_PROPS() {
2844
- return gt;
2845
- }, get APP_PROVIDER_STATE_KEY() {
2846
- return R;
2847
- }, get getCollapseAttrs() {
2848
- return ht;
2849
- }, get getCollapseContentAttrs() {
2850
- return At;
2851
- }, get getCollapseContentInnerClass() {
2852
- return yt;
2853
- }, get getCollapseTriggerAttrs() {
2854
- return bt;
2855
- } };
2856
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
2857
- }
2858
- }), Na = ["onKeydown"];
2859
- function ja(t, r, n, e, o, a) {
2860
- return m(), T("div", w(z(e.wrapperAttrs)), [
2861
- H("div", K(e.triggerAttrs, {
2862
- role: "button",
2863
- tabindex: "0",
2864
- onPointerup: e.toggle,
2865
- onKeydown: On(ln(e.toggle, ["prevent"]), ["enter", "space"])
2866
- }), [
2867
- B(t.$slots, "trigger", {}, void 0, !0)
2868
- ], 16, Na),
2869
- H("div", K(e.contentAttrs, { onTransitionend: e.onTransitionEnd }), [
2870
- H("div", {
2871
- ref: "contentRef",
2872
- class: sn(e.contentInnerClass)
2873
- }, [
2874
- B(t.$slots, "default", {}, void 0, !0)
2875
- ], 2)
2876
- ], 16)
2877
- ], 16);
2878
- }
2879
- const Ga = /* @__PURE__ */ F(Ka, [["render", ja], ["__scopeId", "data-v-ec3e593e"]]), Ya = /* @__PURE__ */ C({
2880
- __name: "dropdown",
2881
- props: /* @__PURE__ */ G({
2882
- modelValue: { type: Boolean },
2883
- disabled: { type: Boolean },
2884
- placement: {},
2885
- role: {},
2886
- shadow: { type: Boolean },
2887
- shape: {},
2888
- direction: {},
2889
- size: {}
2890
- }, {
2891
- ...Dt
2892
- }),
2893
- emits: ["update:modelValue", "open", "close"],
2894
- setup(t, { expose: r, emit: n }) {
2895
- r();
2896
- const e = t, o = n, a = y(R), s = _(null), l = _(!1), d = c(() => {
2897
- const S = e.role ?? u(a?.role) ?? "", A = e.shadow ?? u(a?.shadow) ?? !1, M = e.shape ?? u(a?.shape) ?? "";
2898
- return It({
2899
- role: S,
2900
- shape: M,
2901
- size: e.size,
2902
- open: l.value,
2903
- disabled: e.disabled,
2904
- shadow: A
2905
- });
2906
- }), p = c(() => xt({ placement: e.placement })), f = () => {
2907
- e.disabled || (l.value = !l.value, o("update:modelValue", l.value));
2908
- }, v = () => {
2909
- l.value && (l.value = !1, o("update:modelValue", !1));
2910
- }, b = (S) => {
2911
- if (!l.value) return;
2912
- const A = s.value;
2913
- A && !A.contains(S.target) && v();
2914
- }, k = (S) => {
2915
- S.key === "Escape" && l.value && (S.preventDefault(), v());
2916
- };
2917
- W(
2918
- () => e.modelValue,
2919
- (S) => {
2920
- l.value = S;
2921
- },
2922
- { immediate: !0 }
2923
- ), W(l, (S, A) => {
2924
- S && !A && o("open"), !S && A && o("close");
2925
- }), q(() => {
2926
- document.addEventListener("pointerdown", b, !0), document.addEventListener("keydown", k, !0);
2927
- }), oe(() => {
2928
- document.removeEventListener("pointerdown", b, !0), document.removeEventListener("keydown", k, !0);
2929
- });
2930
- const P = { props: e, emit: o, appState: a, rootRef: s, isOpen: l, wrapperAttrs: d, panelAttrs: p, toggle: f, close: v, onDocPointerDown: b, onDocKeydown: k, unref: u, computed: c, inject: y, onMounted: q, onUnmounted: oe, ref: _, watch: W, get DROPDOWN_DEFAULT_PROPS() {
2931
- return Dt;
2932
- }, get APP_PROVIDER_STATE_KEY() {
2933
- return R;
2934
- }, get getDropdownAttrs() {
2935
- return It;
2936
- }, get getDropdownPanelAttrs() {
2937
- return xt;
2938
- } };
2939
- return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
2940
- }
2941
- });
2942
- function Ha(t, r, n, e, o, a) {
2943
- return m(), T("div", K({ ref: "rootRef" }, e.wrapperAttrs), [
2944
- B(t.$slots, "trigger", {
2945
- toggle: e.toggle,
2946
- isOpen: e.isOpen
2947
- }, void 0, !0),
2948
- fe(H("div", w(z(e.panelAttrs)), [
2949
- B(t.$slots, "default", {}, void 0, !0)
2950
- ], 16), [
2951
- [Re, e.isOpen]
2952
- ])
2953
- ], 16);
2954
- }
2955
- const mn = /* @__PURE__ */ F(Ya, [["render", Ha], ["__scopeId", "data-v-c632efac"]]), Wa = /* @__PURE__ */ C({
2956
- __name: "select",
2957
- props: /* @__PURE__ */ G({
2958
- modelValue: {},
2959
- name: {},
2960
- variant: {},
2961
- role: {},
2962
- shape: {},
2963
- size: {},
2964
- shadow: { type: Boolean },
2965
- direction: {},
2966
- id: {},
2967
- value: {},
2968
- placeholder: {},
2969
- disabled: { type: Boolean },
2970
- autocomplete: {},
2971
- tabindex: {},
2972
- line: {},
2973
- maxLine: {},
2974
- message: {},
2975
- options: {}
2976
- }, {
2977
- ...br
2978
- }),
2979
- emits: ["update:modelValue", "select"],
2980
- setup(t, { expose: r, emit: n }) {
2981
- r();
2982
- const e = t, o = y(R), a = n, s = _(!1), l = c(() => e.role || u(o?.role) || ""), d = c(() => e.direction || u(o?.direction) || "left"), p = c(() => e.shadow || u(o?.shadow) || !1), f = c(() => e.shape || u(o?.shape) || ""), v = c(
2983
- () => Ar({
2984
- role: l.value,
2985
- direction: d.value,
2986
- size: e.size,
2987
- disabled: e.disabled
2988
- })
2989
- ), b = c(() => ({
2990
- role: l.value,
2991
- direction: d.value,
2992
- shadow: p.value,
2993
- shape: f.value,
2994
- disabled: e.disabled
2995
- })), k = c(() => {
2996
- const E = e.modelValue || e.value;
2997
- let g = [];
2998
- return E && (g = typeof E == "string" ? [E] : E), {
2999
- modelValue: e.options.filter((Y) => (g || []).includes(Y.value)).map((Y) => Y.label ?? Y.value).join(","),
3000
- size: e.size,
3001
- variant: e.variant,
3002
- placeholder: e.placeholder,
3003
- direction: d.value,
3004
- role: l.value,
3005
- shape: f.value,
3006
- readonly: !0,
3007
- disabled: e.disabled,
3008
- shadow: p.value
3009
- };
3010
- }), P = c(() => yr()), S = c(() => Pr()), A = c(() => Tr()), L = { props: e, appState: o, emit: a, visible: s, role: l, direction: d, shadow: p, shape: f, selectAttrs: v, dropdownAttrs: b, fieldAttrs: k, selectIconAttrs: P, selectOptionAttrs: S, selectMessageAttrs: A, pickOption: (E) => {
3011
- E.disabled || E.value === void 0 || (a("update:modelValue", E.value), a("select", E), s.value = !1);
3012
- }, unref: u, computed: c, inject: y, ref: _, get Field() {
3013
- return je;
3014
- }, get Dropdown() {
3015
- return mn;
3016
- }, get SELECT_DEFAULT_PROPS() {
3017
- return br;
3018
- }, get APP_PROVIDER_STATE_KEY() {
3019
- return R;
3020
- }, get getSelectAttrs() {
3021
- return Ar;
3022
- }, get getSelectIconAttrs() {
3023
- return yr;
3024
- }, get getSelectMessageAttrs() {
3025
- return Tr;
3026
- }, get getSelectOptionAttrs() {
3027
- return Pr;
3028
- } };
3029
- return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
3030
- }
3031
- }), Xa = ["disabled", "onPointerup"];
3032
- function qa(t, r, n, e, o, a) {
3033
- return m(), T("div", w(z(e.selectAttrs)), [
3034
- le(e.Dropdown, K(e.dropdownAttrs, {
3035
- modelValue: e.visible,
3036
- "onUpdate:modelValue": r[0] || (r[0] = (s) => e.visible = s)
3037
- }), {
3038
- trigger: ae(({ toggle: s, isOpen: l }) => [
3039
- le(e.Field, K({
3040
- role: e.role,
3041
- variant: "outline",
3042
- onPointerup: s
3043
- }, e.fieldAttrs, {
3044
- class: { focus: l }
3045
- }), {
3046
- "end-input": ae(() => [
3047
- H("span", K(e.selectIconAttrs, {
3048
- class: { open: l }
3049
- }), null, 16)
3050
- ]),
3051
- _: 2
3052
- }, 1040, ["role", "onPointerup", "class"])
3053
- ]),
3054
- default: ae(() => [
3055
- (m(!0), T(de, null, ue(n.options, (s) => (m(), T("button", K({
3056
- key: s.value,
3057
- type: "button",
3058
- disabled: s.disabled
3059
- }, { ref_for: !0 }, e.selectOptionAttrs, {
3060
- onPointerup: (l) => e.pickOption(s)
3061
- }), ie(s.label), 17, Xa))), 128))
3062
- ]),
3063
- _: 1
3064
- }, 16, ["modelValue"]),
3065
- n.message ? (m(), T("div", w(K({ key: 0 }, e.selectMessageAttrs)), ie(n.message), 17)) : te("", !0)
3066
- ], 16);
3067
- }
3068
- const Ja = /* @__PURE__ */ F(Wa, [["render", qa], ["__scopeId", "data-v-1db077aa"]]), Qa = /* @__PURE__ */ C({
3069
- __name: "slide-range",
3070
- props: /* @__PURE__ */ G({
3071
- modelValue: {},
3072
- min: {},
3073
- max: {},
3074
- step: {},
3075
- unit: {},
3076
- disabled: { type: Boolean },
3077
- readonly: { type: Boolean },
3078
- role: {},
3079
- shape: {},
3080
- tick: { type: [Boolean, String, Number] }
3081
- }, {
3082
- ...Rr
3083
- }),
3084
- emits: ["update:modelValue", "change"],
3085
- setup(t, { expose: r, emit: n }) {
3086
- r();
3087
- const e = t, o = n, a = y(R), s = _(null), l = _(null), d = _(!1);
3088
- let p, f = null, v = 0, b = !1;
3089
- const k = (h) => {
3090
- h && h.stopPropagation();
3091
- }, P = (h) => h === "left" || h === "right", S = (h, N) => {
3092
- if (typeof h == "number") return h;
3093
- if (typeof h == "string") {
3094
- const J = Number.parseFloat(h);
3095
- return Number.isNaN(J) ? N : J;
3096
- }
3097
- return N;
3098
- }, A = c(() => S(e.min, 0)), M = c(() => S(e.max, 100)), L = c(() => {
3099
- const h = S(e.step, 1);
3100
- return h > 0 ? h : 1;
3101
- }), E = (h) => {
3102
- const N = A.value, J = M.value, Z = L.value;
3103
- if (J <= N) return N;
3104
- const ce = Math.max(N, Math.min(J, h)), Ve = Math.round((ce - N) / Z);
3105
- return Math.max(N, Math.min(J, N + Ve * Z));
3106
- }, g = c(() => {
3107
- const h = S(e.modelValue, A.value);
3108
- return E(h);
3109
- }), V = c(() => ge(g.value)), Y = c(() => {
3110
- if (e.tick === !1) return [];
3111
- const h = A.value, N = M.value, J = e.tick === !0 ? 1 : S(e.tick, 0);
3112
- if (J <= 0 || N < h) return [h, N];
3113
- const Z = [];
3114
- for (let ce = h; ce <= N; ce += J)
3115
- Z.push(ce);
3116
- return Z.at(-1) !== N && Z.push(N), Z;
3117
- }), $ = c(() => `${_e(V.value)}${e.unit || ""}`), U = c(() => {
3118
- const h = e.role || u(a?.role) || "", N = e.shape || u(a?.shape) || "";
3119
- return kr({
3120
- role: h,
3121
- shape: N,
3122
- disabled: e.disabled,
3123
- readonly: e.readonly
3124
- });
3125
- }), D = Or(), Q = wr(), O = Dr(), x = c(() => Ir({ percent: V.value })), j = c(() => xr({ percent: V.value })), X = Cr(), se = Fr(), Fe = (h) => {
3126
- const N = ge(h);
3127
- return Br({
3128
- active: V.value > N,
3129
- percent: N
3130
- });
3131
- }, _e = (h) => {
3132
- const N = A.value, J = M.value, Z = N + (J - N) * (h / 100);
3133
- return E(Z);
3134
- }, ge = (h) => {
3135
- const N = A.value, J = M.value;
3136
- if (J <= N) return 0;
3137
- const Z = (h - N) / (J - N) * 100;
3138
- return Math.max(0, Math.min(100, Z));
3139
- }, Be = () => {
3140
- p && clearTimeout(p), d.value = !0, p = setTimeout(() => {
3141
- d.value = !1;
3142
- }, 300);
3143
- }, he = (h) => {
3144
- if (e.disabled || e.readonly) return;
3145
- const N = _e(h);
3146
- N !== e.modelValue && (o("update:modelValue", N), o("change", N));
3147
- }, hn = (h, N) => {
3148
- k(N);
3149
- const J = ge(h);
3150
- he(J), Be();
3151
- }, bn = (h) => {
3152
- e.disabled || e.readonly || k(h);
3153
- }, An = (h) => {
3154
- e.disabled || e.readonly || k(h);
3155
- }, He = (h) => "changedTouches" in h && h.changedTouches.length > 0 ? h.changedTouches[0].clientX : h.clientX, yn = (h) => {
3156
- if (e.disabled || e.readonly || !l.value) return;
3157
- k(h);
3158
- const N = l.value.offsetWidth, J = l.value.getBoundingClientRect(), ce = (He(h) - J.left) / N * 100;
3159
- he(Math.max(0, Math.min(100, ce))), Be();
3160
- };
3161
- q(() => {
3162
- !s.value || !l.value || (f = pe(
3163
- s.value,
3164
- {
3165
- options: { trackOutsideElement: !0 },
3166
- beforeEvent(h) {
3167
- return !(e.disabled || e.readonly);
3168
- },
3169
- afterEvent(h) {
3170
- b && k(h);
3171
- },
3172
- down({ event: h }) {
3173
- e.disabled || e.readonly || (v = V.value, b = !1, k(h));
3174
- },
3175
- up({ event: h }) {
3176
- b = !1, d.value = !1, k(h);
3177
- },
3178
- cancel(h) {
3179
- b = !1, d.value = !1, k(h);
3180
- },
3181
- move({
3182
- initialDirection: h,
3183
- deltaX: N,
3184
- event: J
3185
- }) {
3186
- if (e.disabled || e.readonly || !P(h) || !l.value) return;
3187
- b = !0, k(J);
3188
- const Z = l.value.offsetWidth, ce = N / Z * 100, Ve = Math.max(0, Math.min(100, v + ce));
3189
- he(Ve), p && clearTimeout(p), d.value = !0;
3190
- }
3191
- },
3192
- { passive: !1, capture: !0 }
3193
- ));
3194
- }), oe(() => {
3195
- p && clearTimeout(p), f?.destroy();
3196
- });
3197
- const We = { props: e, emit: o, appState: a, point: s, container: l, isShowTooltip: d, get tooltipTimeout() {
3198
- return p;
3199
- }, set tooltipTimeout(h) {
3200
- p = h;
3201
- }, get gestureCleanup() {
3202
- return f;
3203
- }, set gestureCleanup(h) {
3204
- f = h;
3205
- }, get dragStartPercent() {
3206
- return v;
3207
- }, set dragStartPercent(h) {
3208
- v = h;
3209
- }, get isHorizontalDrag() {
3210
- return b;
3211
- }, set isHorizontalDrag(h) {
3212
- b = h;
3213
- }, suppressPointerEvent: k, isHorizontalDirection: P, parseRangeValue: S, rangeMin: A, rangeMax: M, rangeStep: L, snapToStep: E, normalizedValue: g, percent: V, ticks: Y, displayValue: $, slideRangeAttrs: U, trackContainerAttrs: D, trackBodyAttrs: Q, trackBackAttrs: O, trackFrontAttrs: x, thumbAttrs: j, thumbInnerAttrs: X, tooltipAttrs: se, tickAttrs: Fe, getValueFromPercent: _e, getPercentFromValue: ge, showTooltipTemporarily: Be, emitValueFromPercent: he, onTickSelect: hn, onTrackPointerDown: bn, onThumbPointerDown: An, getClientX: He, onClickPath: yn, get gesture() {
3214
- return pe;
3215
- }, computed: c, inject: y, onMounted: q, onUnmounted: oe, ref: _, unref: u, get SLIDE_RANGE_DEFAULT_PROPS() {
3216
- return Rr;
3217
- }, get APP_PROVIDER_STATE_KEY() {
3218
- return R;
3219
- }, get getSlideRangeAttrs() {
3220
- return kr;
3221
- }, get getSlideRangeTickAttrs() {
3222
- return Br;
3223
- }, get getSlideRangeThumbAttrs() {
3224
- return xr;
3225
- }, get getSlideRangeThumbInnerAttrs() {
3226
- return Cr;
3227
- }, get getSlideRangeTooltipAttrs() {
3228
- return Fr;
3229
- }, get getSlideRangeTrackBackAttrs() {
3230
- return Dr;
3231
- }, get getSlideRangeTrackBodyAttrs() {
3232
- return wr;
3233
- }, get getSlideRangeTrackContainerAttrs() {
3234
- return Or;
3235
- }, get getSlideRangeTrackFrontAttrs() {
3236
- return Ir;
3237
- } };
3238
- return Object.defineProperty(We, "__isScriptSetup", { enumerable: !1, value: !0 }), We;
3239
- }
3240
- }), Za = ["onPointerup"];
3241
- function es(t, r, n, e, o, a) {
3242
- return m(), T("div", w(z(e.slideRangeAttrs)), [
3243
- H("div", K(e.trackContainerAttrs, { ref: "container" }), [
3244
- H("div", K(e.trackBodyAttrs, {
3245
- onPointerdown: e.onTrackPointerDown,
3246
- onPointerup: e.onClickPath
3247
- }), [
3248
- H("div", w(z(e.trackBackAttrs)), null, 16),
3249
- H("div", w(z(e.trackFrontAttrs)), null, 16),
3250
- (m(!0), T(de, null, ue(e.ticks, (s) => (m(), T("div", K({ key: s }, { ref_for: !0 }, e.tickAttrs(s), {
3251
- onPointerdown: e.onTrackPointerDown,
3252
- onPointerup: (l) => e.onTickSelect(s, l)
3253
- }), null, 16, Za))), 128))
3254
- ], 16),
3255
- H("div", K(e.thumbAttrs, {
3256
- ref: "point",
3257
- onPointerdown: ln(e.onThumbPointerDown, ["stop", "prevent"])
3258
- }), [
3259
- H("div", w(z(e.thumbInnerAttrs)), null, 16),
3260
- e.percent > 0 && e.isShowTooltip ? (m(), T("span", w(K({ key: 0 }, e.tooltipAttrs)), ie(e.displayValue), 17)) : te("", !0)
3261
- ], 16)
3262
- ], 16)
3263
- ], 16);
3264
- }
3265
- const ts = /* @__PURE__ */ F(Qa, [["render", es], ["__scopeId", "data-v-128d47b9"]]), rs = /* @__PURE__ */ C({
3266
- __name: "tag",
3267
- props: /* @__PURE__ */ G({
3268
- role: {},
3269
- size: {},
3270
- shape: {},
3271
- variant: {}
3272
- }, {
3273
- ...Hr
3274
- }),
3275
- setup(t, { expose: r }) {
3276
- r();
3277
- const n = t, e = y(R), o = c(() => {
3278
- const s = n.shape || u(e?.shape) || "", l = n.role || u(e?.role) || "";
3279
- return Wr({
3280
- role: l,
3281
- shape: s,
3282
- size: n.size,
3283
- variant: n.variant
3284
- });
3285
- }), a = { props: n, appState: e, tagAttrs: o, unref: u, computed: c, inject: y, get TAG_DEFAULT_PROPS() {
3286
- return Hr;
3287
- }, get APP_PROVIDER_STATE_KEY() {
3288
- return R;
3289
- }, get getTagAttrs() {
3290
- return Wr;
3291
- } };
3292
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
3293
- }
3294
- });
3295
- function ns(t, r, n, e, o, a) {
3296
- return m(), T("span", w(z(e.tagAttrs)), [
3297
- B(t.$slots, "default", {}, void 0, !0)
3298
- ], 16);
3299
- }
3300
- const os = /* @__PURE__ */ F(rs, [["render", ns], ["__scopeId", "data-v-2bc218e5"]]), Ye = _({}), gn = "toife";
3301
- class as {
3302
- /**
3303
- * Subscribe options
3304
- */
3305
- options;
3306
- app;
3307
- /**
3308
- * Constructor
3309
- */
3310
- constructor(r, n) {
3311
- this.options = {
3312
- name: n?.name || gn,
3313
- prefix: n?.prefix || "t-"
3314
- }, this.app = r;
3315
- }
3316
- /**
3317
- * Subscribe components
3318
- */
3319
- subscribeAll() {
3320
- const r = this.options.prefix;
3321
- this.app.component(r + "app", Qn), this.app.component(r + "action", pn), this.app.component(r + "avatar", la), this.app.component(r + "button", Ne), this.app.component(r + "cable", bo), this.app.component(r + "card", Xo), this.app.component(r + "card-body", Qo), this.app.component(r + "card-header", ta), this.app.component(r + "card-footer", oa), this.app.component(r + "checkbox", zo), this.app.component(r + "radio", No), this.app.component(r + "radio-group", Yo), this.app.component(r + "collapse", Ga), this.app.component(r + "container", Sa), this.app.component(r + "decision-modal", _n), this.app.component(r + "divider", da), this.app.component(r + "dropdown", mn), this.app.component(r + "field", je), this.app.component(r + "flex", co), this.app.component(r + "flex-item", mo), this.app.component(r + "form-group", un), this.app.component(r + "gesture-indicator", fn), this.app.component(r + "grid", so), this.app.component(r + "grid-item", _o), this.app.component(r + "image", fa), this.app.component(r + "modal", no), this.app.component(r + "page", Ma), this.app.component(r + "present", Ce), this.app.component(r + "refresher", ka), this.app.component(r + "route-navigator", Ba), this.app.component(r + "route-wrapper", $a), this.app.component(r + "route-provider", Ge), this.app.component(r + "route-outlet", vn), this.app.component(r + "segmented-field", ya), this.app.component(r + "select", Ja), this.app.component(r + "slide-range", ts), this.app.component(r + "skeleton", Eo), this.app.component(r + "switch", Bo), this.app.component(r + "tag", os), this.app.component(r + "tab", Io), this.app.component(r + "tabs", Oo), this.app.component(r + "toast", dn), this.app.component(r + "toast-content", cn), this.app.component(r + "toolbar", Po);
3322
- }
3323
- /**
3324
- * Subscribe a component
3325
- */
3326
- subscribe(r, n) {
3327
- this.app.component(this.options.prefix + r) || this.app.component(this.options.prefix + r, n);
3328
- }
3329
- /**
3330
- * Prevent default behavior
3331
- */
3332
- preventDefault() {
3333
- xn();
3334
- }
3335
- }
3336
- const ds = (t, r) => {
3337
- const n = new as(t, r);
3338
- return Ye.value[n.options.name] = n, n;
3339
- }, us = (t = gn) => Ye.value[t] || null, ps = () => Ye.value;
3340
- export {
3341
- Qe as ACTION_DEFAULT_PROPS,
3342
- et as APP_DEFAULT_PROPS,
3343
- R as APP_PROVIDER_STATE_KEY,
3344
- rt as AVATAR_DEFAULT_PROPS,
3345
- pn as Action,
3346
- Qn as App,
3347
- la as Avatar,
3348
- ot as BUTTON_DEFAULT_PROPS,
3349
- Ne as Button,
3350
- lt as CABLE_DEFAULT_PROPS,
3351
- we as CABLE_PROVIDER_STATE_KEY,
3352
- ct as CARD_DEFAULT_PROPS,
3353
- ve as CARD_PROVIDER_STATE_KEY,
3354
- ft as CHECKBOX_DEFAULT_PROPS,
3355
- gt as COLLAPSE_DEFAULT_PROPS,
3356
- bo as Cable,
3357
- Xo as Card,
3358
- Qo as CardBody,
3359
- oa as CardFooter,
3360
- ta as CardHeader,
3361
- zo as Checkbox,
3362
- Ga as Collapse,
3363
- Sa as Container,
3364
- Tt as DECISION_MODAL_DEFAULT_PROPS,
3365
- Ot as DIVIDER_DEFAULT_PROPS,
3366
- Dt as DROPDOWN_DEFAULT_PROPS,
3367
- _n as DecisionModal,
3368
- da as Divider,
3369
- mn as Dropdown,
3370
- Ct as FIELD_DEFAULT_PROPS,
3371
- Nt as FLEX_DEFAULT_PROPS,
3372
- Kt as FLEX_ITEM_DEFAULT_PROPS,
3373
- $t as FORM_GROUP_DEFAULT_PROPS,
3374
- je as Field,
3375
- co as Flex,
3376
- mo as FlexItem,
3377
- un as FormGroup,
3378
- Ut as GESTURE_INDICATOR_DEFAULT_PROPS,
3379
- Gt as GRID_DEFAULT_PROPS,
3380
- jt as GRID_ITEM_DEFAULT_PROPS,
3381
- fn as GestureIndicator,
3382
- so as Grid,
3383
- _o as GridItem,
3384
- fa as Image,
3385
- Jt as MODAL_DEFAULT_PROPS,
3386
- no as Modal,
3387
- er as PRESENT_DEFAULT_PROPS,
3388
- tr as PRESENT_DEFAULT_STYLES,
3389
- Ma as Page,
3390
- Ce as Present,
3391
- ar as RADIO_DEFAULT_PROPS,
3392
- or as RADIO_GROUP_DEFAULT_PROPS,
3393
- De as RADIO_GROUP_PROVIDER_STATE_KEY,
3394
- dr as ROUTE_NAVIGATOR_DEFAULT_PROPS,
3395
- Ie as ROUTE_PROVIDER_STATE_KEY,
3396
- ur as ROUTE_WRAPPER_DEFAULT_PROPS,
3397
- No as Radio,
3398
- Yo as RadioGroup,
3399
- ka as Refresher,
3400
- Ba as RouteNavigator,
3401
- vn as RouteOutlet,
3402
- Ge as RouteProvider,
3403
- $a as RouteWrapper,
3404
- qt as SCROLLABLE_OVERFLOW_VALUES,
3405
- vr as SEGMENTED_FIELD_DEFAULT_PROPS,
3406
- br as SELECT_DEFAULT_PROPS,
3407
- Sr as SKELETON_DEFAULT_PROPS,
3408
- Rr as SLIDE_RANGE_DEFAULT_PROPS,
3409
- Vr as SWITCH_DEFAULT_PROPS,
3410
- ya as SegmentedField,
3411
- Ja as Select,
3412
- Eo as Skeleton,
3413
- ts as SlideRange,
3414
- Bo as Switch,
3415
- Mr as TABS_DEFAULT_PROPS,
3416
- xe as TABS_PROVIDER_STATE_KEY,
3417
- Ur as TAB_DEFAULT_PROPS,
3418
- Hr as TAG_DEFAULT_PROPS,
3419
- Xr as TOAST_CONTENT_DEFAULT_PROPS,
3420
- qr as TOAST_DEFAULT_PROPS,
3421
- Zr as TOOLBAR_DEFAULT_PROPS,
3422
- Io as Tab,
3423
- Oo as Tabs,
3424
- os as Tag,
3425
- dn as Toast,
3426
- cn as ToastContent,
3427
- Po as Toolbar,
3428
- In as blurCurrentActive,
3429
- Me as clone,
3430
- ds as createToife,
3431
- i as cssPrefix,
3432
- I as cssProperty,
3433
- cs as cssVariable,
3434
- Ze as getActionAttrs,
3435
- tt as getAppAttrs,
3436
- ze as getAppClassSelector,
3437
- ps as getApps,
3438
- nt as getAvatarAttrs,
3439
- at as getButtonAttrs,
3440
- st as getButtonLoaderAttrs,
3441
- it as getCableAttrs,
3442
- dt as getCardAttrs,
3443
- _t as getCardBodyAttrs,
3444
- pt as getCardFooterAttrs,
3445
- ut as getCardHeaderAttrs,
3446
- vt as getCheckboxAttrs,
3447
- mt as getCheckboxIconAttrs,
3448
- ht as getCollapseAttrs,
3449
- At as getCollapseContentAttrs,
3450
- yt as getCollapseContentInnerClass,
3451
- bt as getCollapseTriggerAttrs,
3452
- Pt as getContainerAttrs,
3453
- Fn as getCssPrefix,
3454
- Cn as getCssSeparator,
3455
- St as getDecisionModalAttrs,
3456
- Rt as getDecisionModalBodyAttrs,
3457
- kt as getDecisionModalFooterAttrs,
3458
- Et as getDecisionModalHeaderAttrs,
3459
- wt as getDividerAttrs,
3460
- It as getDropdownAttrs,
3461
- xt as getDropdownPanelAttrs,
3462
- Ft as getFieldAttrs,
3463
- Bt as getFieldContentAttrs,
3464
- Vt as getFieldInputAttrs,
3465
- Lt as getFieldMessageAttrs,
3466
- Wt as getFlexAttrs,
3467
- Xt as getFlexItemAttrs,
3468
- zt as getFormGroupAttrs,
3469
- Mt as getGestureIndicatorAttrs,
3470
- Yt as getGridAttrs,
3471
- Ht as getGridItemAttrs,
3472
- Qt as getModalAttrs,
3473
- Zt as getPageAttrs,
3474
- nr as getPresentAttrs,
3475
- rr as getPresentBackdropAttrs,
3476
- sr as getRadioAttrs,
3477
- ir as getRadioGroupAttrs,
3478
- lr as getRadioIconAttrs,
3479
- cr as getRefresherAttrs,
3480
- pr as getRouteNavigatorAttrs,
3481
- fr as getRouteNavigatorBackdropAttrs,
3482
- _r as getRouteNavigatorComponentAttrs,
3483
- Bn as getRouteNavigatorTransitionDuration,
3484
- gr as getSegmentedFieldContentAttrs,
3485
- hr as getSegmentedFieldMessageAttrs,
3486
- mr as getSegmentedFieldWrapperAttrs,
3487
- Ar as getSelectAttrs,
3488
- yr as getSelectIconAttrs,
3489
- Tr as getSelectMessageAttrs,
3490
- Pr as getSelectOptionAttrs,
3491
- Er as getSkeletonAttrs,
3492
- kr as getSlideRangeAttrs,
3493
- xr as getSlideRangeThumbAttrs,
3494
- Cr as getSlideRangeThumbInnerAttrs,
3495
- Br as getSlideRangeTickAttrs,
3496
- Fr as getSlideRangeTooltipAttrs,
3497
- Dr as getSlideRangeTrackBackAttrs,
3498
- wr as getSlideRangeTrackBodyAttrs,
3499
- Or as getSlideRangeTrackContainerAttrs,
3500
- Ir as getSlideRangeTrackFrontAttrs,
3501
- $r as getSwitchAttrs,
3502
- zr as getSwitchIconAttrs,
3503
- Lr as getSwitchWrapperAttrs,
3504
- Kr as getTabAttrs,
3505
- Nr as getTabButtonAttrs,
3506
- jr as getTabsAttrs,
3507
- Gr as getTabsHighlightPosition,
3508
- Yr as getTabsHighlightStyle,
3509
- Wr as getTagAttrs,
3510
- Jr as getToastAttrs,
3511
- Qr as getToastContentAttrs,
3512
- en as getToolbarAttrs,
3513
- Dn as isFormElement,
3514
- xn as preventDefault,
3515
- rn as useAction,
3516
- us as useApp,
3517
- nn as useDecisionModal,
3518
- tn as usePresent,
3519
- on as useRouteWrapper,
3520
- Je as useToast
3521
- };