@toife/vue 3.3.2 → 3.3.5

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