@volverjs/ui-vue 0.0.10-beta.5 → 0.0.10-beta.50

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 (496) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +148 -51
  3. package/auto-imports.d.ts +25 -12
  4. package/bin/icons.cjs +1 -1
  5. package/bin/icons.js +28 -20
  6. package/dist/Volver.d.ts +11 -11
  7. package/dist/components/VvAccordion/VvAccordion.es.js +192 -104
  8. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  9. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +29 -10
  10. package/dist/components/VvAccordion/index.d.ts +8 -9
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +485 -206
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  13. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +61 -18
  14. package/dist/components/VvAccordionGroup/index.d.ts +16 -8
  15. package/dist/components/VvAction/VvAction.es.js +84 -33
  16. package/dist/components/VvAction/VvAction.umd.js +1 -1
  17. package/dist/components/VvAction/VvAction.vue.d.ts +61 -28
  18. package/dist/components/VvAction/index.d.ts +26 -10
  19. package/dist/components/VvAlert/VvAlert.es.js +350 -318
  20. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  21. package/dist/components/VvAlert/VvAlert.vue.d.ts +25 -17
  22. package/dist/components/VvAlert/index.d.ts +20 -11
  23. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +388 -327
  24. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  25. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +22 -17
  26. package/dist/components/VvAlertGroup/index.d.ts +10 -18
  27. package/dist/components/VvAvatar/VvAvatar.es.js +66 -28
  28. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  29. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +13 -5
  30. package/dist/components/VvAvatar/index.d.ts +4 -1
  31. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +147 -74
  32. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  33. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +17 -10
  34. package/dist/components/VvAvatarGroup/index.d.ts +6 -3
  35. package/dist/components/VvBadge/VvBadge.es.js +78 -34
  36. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  37. package/dist/components/VvBadge/VvBadge.vue.d.ts +13 -5
  38. package/dist/components/VvBadge/index.d.ts +4 -1
  39. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +294 -83
  40. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  41. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +28 -8
  42. package/dist/components/VvBreadcrumb/index.d.ts +6 -10
  43. package/dist/components/VvButton/VvButton.es.js +510 -488
  44. package/dist/components/VvButton/VvButton.umd.js +1 -1
  45. package/dist/components/VvButton/VvButton.vue.d.ts +97 -45
  46. package/dist/components/VvButton/index.d.ts +52 -30
  47. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +95 -45
  48. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  49. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +35 -17
  50. package/dist/components/VvButtonGroup/index.d.ts +13 -4
  51. package/dist/components/VvCard/VvCard.es.js +87 -42
  52. package/dist/components/VvCard/VvCard.umd.js +1 -1
  53. package/dist/components/VvCard/VvCard.vue.d.ts +13 -5
  54. package/dist/components/VvCard/index.d.ts +4 -1
  55. package/dist/components/VvCheckbox/VvCheckbox.es.js +177 -136
  56. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  57. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +105 -35
  58. package/dist/components/VvCheckbox/index.d.ts +52 -19
  59. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +408 -322
  60. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  61. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +103 -34
  62. package/dist/components/VvCheckboxGroup/index.d.ts +45 -12
  63. package/dist/components/VvCombobox/VvCombobox.es.js +2304 -1992
  64. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  65. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +258 -672
  66. package/dist/components/VvCombobox/index.d.ts +377 -135
  67. package/dist/components/VvDialog/VvDialog.es.js +177 -297
  68. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  69. package/dist/components/VvDialog/VvDialog.vue.d.ts +23 -7
  70. package/dist/components/VvDialog/index.d.ts +12 -0
  71. package/dist/components/VvDropdown/VvDropdown.es.js +172 -102
  72. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  73. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +110 -315
  74. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +77 -28
  75. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +13 -1
  76. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +13 -5
  77. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +38 -10
  78. package/dist/components/VvDropdown/index.d.ts +52 -118
  79. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +165 -60
  80. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  81. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +337 -10
  82. package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
  83. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +63 -20
  84. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  85. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +188 -80
  86. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  87. package/dist/components/VvIcon/VvIcon.es.js +24 -102
  88. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  89. package/dist/components/VvIcon/VvIcon.vue.d.ts +4 -68
  90. package/dist/components/VvIcon/index.d.ts +33 -48
  91. package/dist/components/VvInputFile/VvInputFile.es.js +1777 -0
  92. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
  93. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +317 -0
  94. package/dist/components/VvInputFile/index.d.ts +193 -0
  95. package/dist/components/VvInputText/VvInputClearAction.d.ts +16 -10
  96. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +20 -14
  97. package/dist/components/VvInputText/VvInputStepAction.d.ts +11 -7
  98. package/dist/components/VvInputText/VvInputText.es.js +1491 -551
  99. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  100. package/dist/components/VvInputText/VvInputText.vue.d.ts +216 -68
  101. package/dist/components/VvInputText/index.d.ts +101 -31
  102. package/dist/components/VvNav/VvNav.es.js +155 -75
  103. package/dist/components/VvNav/VvNav.umd.js +1 -1
  104. package/dist/components/VvNav/VvNav.vue.d.ts +32 -11
  105. package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
  106. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
  107. package/dist/components/VvNav/index.d.ts +5 -2
  108. package/dist/components/VvNavItem/VvNavItem.es.js +100 -39
  109. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  110. package/dist/components/VvProgress/VvProgress.es.js +73 -27
  111. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  112. package/dist/components/VvProgress/VvProgress.vue.d.ts +13 -6
  113. package/dist/components/VvProgress/index.d.ts +4 -1
  114. package/dist/components/VvRadio/VvRadio.es.js +175 -135
  115. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  116. package/dist/components/VvRadio/VvRadio.vue.d.ts +103 -33
  117. package/dist/components/VvRadio/index.d.ts +50 -17
  118. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +406 -321
  119. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  120. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +103 -34
  121. package/dist/components/VvRadioGroup/index.d.ts +45 -12
  122. package/dist/components/VvSelect/VvSelect.es.js +677 -611
  123. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  124. package/dist/components/VvSelect/VvSelect.vue.d.ts +107 -199
  125. package/dist/components/VvSelect/index.d.ts +196 -16
  126. package/dist/components/VvTab/VvTab.es.js +230 -110
  127. package/dist/components/VvTab/VvTab.umd.js +1 -1
  128. package/dist/components/VvTab/VvTab.vue.d.ts +34 -12
  129. package/dist/components/VvTab/index.d.ts +6 -3
  130. package/dist/components/VvTextarea/VvTextarea.es.js +606 -597
  131. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  132. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +159 -54
  133. package/dist/components/VvTextarea/index.d.ts +69 -20
  134. package/dist/components/VvTooltip/VvTooltip.es.js +83 -30
  135. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  136. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +16 -9
  137. package/dist/components/VvTooltip/index.d.ts +5 -2
  138. package/dist/components/common/HintSlot.d.ts +8 -9
  139. package/dist/components/index.d.ts +10 -0
  140. package/dist/components/index.es.js +4086 -2029
  141. package/dist/components/index.umd.js +1 -1
  142. package/dist/composables/alert/useAlerInject.d.ts +4 -0
  143. package/dist/composables/alert/useAlert.d.ts +71 -6
  144. package/dist/composables/alert/{useProvideAlert.d.ts → useAlertProvide.d.ts} +1 -1
  145. package/dist/composables/dropdown/useDropdownContextmenu.d.ts +18 -0
  146. package/dist/composables/dropdown/useDropdownInject.d.ts +12 -0
  147. package/dist/composables/dropdown/{useProvideDropdown.d.ts → useDropdownProvide.d.ts} +6 -7
  148. package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +17 -0
  149. package/dist/composables/group/useGroupStateInject.d.ts +9 -0
  150. package/dist/composables/group/useGroupStateProvide.d.ts +6 -0
  151. package/dist/composables/index.d.ts +3 -0
  152. package/dist/composables/index.es.js +178 -6
  153. package/dist/composables/index.umd.js +1 -1
  154. package/dist/composables/useBlurhash.d.ts +7 -0
  155. package/dist/composables/useComponentFocus.d.ts +2 -2
  156. package/dist/composables/useComponentIcon.d.ts +9 -8
  157. package/dist/composables/useOptions.d.ts +5 -5
  158. package/dist/composables/usePersistence.d.ts +3 -0
  159. package/dist/composables/useUniqueId.d.ts +2 -2
  160. package/dist/composables/useVolver.d.ts +1 -1
  161. package/dist/constants.d.ts +35 -33
  162. package/dist/directives/index.d.ts +3 -5
  163. package/dist/directives/index.es.js +247 -82
  164. package/dist/directives/index.umd.js +1 -1
  165. package/dist/directives/v-contextmenu.es.js +137 -31
  166. package/dist/directives/v-contextmenu.umd.js +1 -1
  167. package/dist/directives/v-tooltip.es.js +101 -39
  168. package/dist/directives/v-tooltip.umd.js +1 -1
  169. package/dist/icons.d.ts +17 -17
  170. package/dist/icons.es.js +516 -516
  171. package/dist/icons.umd.js +1 -1
  172. package/dist/index.d.ts +3 -1
  173. package/dist/index.es.js +74 -6
  174. package/dist/index.umd.js +1 -1
  175. package/dist/props/index.d.ts +277 -193
  176. package/dist/resolvers/unplugin.d.ts +6 -1
  177. package/dist/resolvers/unplugin.es.js +87 -10
  178. package/dist/resolvers/unplugin.umd.js +1 -1
  179. package/dist/stories/Accordion/Accordion.settings.d.ts +2 -57
  180. package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +2 -66
  181. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +2 -127
  182. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +1304 -538
  183. package/dist/stories/Alert/Alert.settings.d.ts +2 -109
  184. package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +2 -85
  185. package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
  186. package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +2 -38
  187. package/dist/stories/Badge/Badge.settings.d.ts +2 -26
  188. package/dist/stories/Badge/Badge.test.d.ts +1 -1
  189. package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
  190. package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +2 -18
  191. package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
  192. package/dist/stories/Button/Button.settings.d.ts +2 -194
  193. package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +2 -40
  194. package/dist/stories/Card/Card.settings.d.ts +2 -63
  195. package/dist/stories/Checkbox/Checkbox.settings.d.ts +2 -132
  196. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -141
  197. package/dist/stories/Combobox/Combobox.settings.d.ts +2 -609
  198. package/dist/stories/Combobox/Combobox.stories.d.ts +1 -0
  199. package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +1 -0
  200. package/dist/stories/Dialog/Dialog.settings.d.ts +2 -47
  201. package/dist/stories/Dialog/DialogModifiers.stories.d.ts +8 -0
  202. package/dist/stories/Dropdown/Dropdown.settings.d.ts +2 -205
  203. package/dist/stories/Icon/Icon.settings.d.ts +3 -68
  204. package/dist/stories/InputFile/InputFile.settings.d.ts +6 -0
  205. package/dist/stories/InputFile/InputFile.stories.d.ts +13 -0
  206. package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
  207. package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
  208. package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
  209. package/dist/stories/InputText/InputText.settings.d.ts +2 -438
  210. package/dist/stories/Nav/Nav.settings.d.ts +2 -10
  211. package/dist/stories/Progress/Progress.settings.d.ts +2 -27
  212. package/dist/stories/Radio/Radio.settings.d.ts +1 -110
  213. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -141
  214. package/dist/stories/Select/Select.settings.d.ts +2 -246
  215. package/dist/stories/Select/Select.stories.d.ts +1 -0
  216. package/dist/stories/Tab/Tab.settings.d.ts +2 -15
  217. package/dist/stories/Textarea/Textarea.settings.d.ts +2 -287
  218. package/dist/stories/argTypes.d.ts +27 -866
  219. package/dist/test/expect.d.ts +1 -2
  220. package/dist/test/options.d.ts +1 -1
  221. package/dist/test/sleep.d.ts +1 -1
  222. package/dist/types/alert.d.ts +9 -7
  223. package/dist/types/blurhash.d.ts +12 -0
  224. package/dist/types/floating-ui.d.ts +1 -1
  225. package/dist/types/generic.d.ts +1 -2
  226. package/dist/types/group.d.ts +37 -15
  227. package/dist/types/index.d.ts +7 -0
  228. package/dist/types/input-file.d.ts +9 -0
  229. package/dist/types/nav.d.ts +2 -2
  230. package/dist/utils/DomUtilities.d.ts +1 -0
  231. package/dist/utils/ObjectUtilities.d.ts +8 -9
  232. package/dist/workers/blurhash.d.ts +1 -0
  233. package/package.json +238 -246
  234. package/src/Volver.ts +251 -246
  235. package/src/assets/icons/detailed.json +1 -1
  236. package/src/assets/icons/normal.json +1 -1
  237. package/src/assets/icons/simple.json +1 -1
  238. package/src/components/VvAccordion/VvAccordion.vue +163 -100
  239. package/src/components/VvAccordion/index.ts +65 -80
  240. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +224 -106
  241. package/src/components/VvAccordionGroup/index.ts +42 -42
  242. package/src/components/VvAction/VvAction.vue +144 -130
  243. package/src/components/VvAlert/VvAlert.vue +72 -70
  244. package/src/components/VvAlert/index.ts +149 -147
  245. package/src/components/VvAlertGroup/VvAlertGroup.vue +57 -56
  246. package/src/components/VvAlertGroup/index.ts +102 -118
  247. package/src/components/VvAvatar/VvAvatar.vue +20 -14
  248. package/src/components/VvAvatar/index.ts +5 -5
  249. package/src/components/VvAvatarGroup/VvAvatarGroup.vue +58 -53
  250. package/src/components/VvAvatarGroup/index.ts +21 -21
  251. package/src/components/VvBadge/VvBadge.vue +15 -14
  252. package/src/components/VvBadge/index.ts +2 -2
  253. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +50 -48
  254. package/src/components/VvBreadcrumb/index.ts +3 -9
  255. package/src/components/VvButton/VvButton.vue +163 -152
  256. package/src/components/VvButton/index.ts +104 -111
  257. package/src/components/VvButtonGroup/VvButtonGroup.vue +73 -65
  258. package/src/components/VvButtonGroup/index.ts +23 -22
  259. package/src/components/VvCard/VvCard.vue +30 -30
  260. package/src/components/VvCard/index.ts +2 -2
  261. package/src/components/VvCheckbox/VvCheckbox.vue +186 -184
  262. package/src/components/VvCheckbox/index.ts +45 -45
  263. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +88 -87
  264. package/src/components/VvCombobox/VvCombobox.vue +655 -619
  265. package/src/components/VvCombobox/index.ts +210 -168
  266. package/src/components/VvDialog/VvDialog.vue +139 -129
  267. package/src/components/VvDialog/index.ts +42 -36
  268. package/src/components/VvDropdown/VvDropdown.vue +466 -445
  269. package/src/components/VvDropdown/VvDropdownAction.vue +37 -39
  270. package/src/components/VvDropdown/VvDropdownItem.vue +30 -26
  271. package/src/components/VvDropdown/VvDropdownOptgroup.vue +13 -12
  272. package/src/components/VvDropdown/VvDropdownOption.vue +47 -64
  273. package/src/components/VvDropdown/index.ts +61 -27
  274. package/src/components/VvIcon/README.md +1 -1
  275. package/src/components/VvIcon/VvIcon.vue +133 -133
  276. package/src/components/VvIcon/index.ts +84 -97
  277. package/src/components/VvInputFile/VvInputFile.vue +413 -0
  278. package/src/components/VvInputFile/index.ts +143 -0
  279. package/src/components/VvInputText/VvInputClearAction.ts +51 -47
  280. package/src/components/VvInputText/VvInputPasswordAction.ts +66 -62
  281. package/src/components/VvInputText/VvInputStepAction.ts +43 -43
  282. package/src/components/VvInputText/VvInputText.vue +652 -516
  283. package/src/components/VvInputText/VvInputTextActions.ts +87 -87
  284. package/src/components/VvInputText/index.ts +201 -186
  285. package/src/components/VvNav/VvNav.vue +40 -36
  286. package/src/components/VvNav/VvNavItem.vue +12 -12
  287. package/src/components/VvNav/VvNavSeparator.vue +6 -6
  288. package/src/components/VvNav/index.ts +2 -2
  289. package/src/components/VvProgress/VvProgress.vue +27 -27
  290. package/src/components/VvProgress/index.ts +28 -28
  291. package/src/components/VvRadio/VvRadio.vue +115 -112
  292. package/src/components/VvRadio/index.ts +29 -29
  293. package/src/components/VvRadioGroup/VvRadioGroup.vue +91 -90
  294. package/src/components/VvSelect/VvSelect.vue +262 -241
  295. package/src/components/VvSelect/index.ts +88 -63
  296. package/src/components/VvTab/VvTab.vue +79 -69
  297. package/src/components/VvTab/index.ts +13 -13
  298. package/src/components/VvTextarea/VvTextarea.vue +218 -219
  299. package/src/components/VvTextarea/index.ts +35 -35
  300. package/src/components/VvTooltip/VvTooltip.vue +22 -16
  301. package/src/components/VvTooltip/index.ts +12 -12
  302. package/src/components/common/HintSlot.ts +151 -152
  303. package/src/components/index.ts +10 -0
  304. package/src/composables/alert/{useInjectAlert.ts → useAlerInject.ts} +1 -1
  305. package/src/composables/alert/useAlert.ts +76 -73
  306. package/src/composables/alert/{useProvideAlert.ts → useAlertProvide.ts} +12 -12
  307. package/src/composables/dropdown/useDropdownContextmenu.ts +22 -0
  308. package/src/composables/dropdown/{useInjectDropdown.ts → useDropdownInject.ts} +6 -6
  309. package/src/composables/dropdown/useDropdownProvide.ts +94 -0
  310. package/src/composables/dropdown/useDropdownVirtualElement.ts +53 -0
  311. package/src/composables/group/useGroupStateInject.ts +55 -0
  312. package/src/composables/group/useGroupStateProvide.ts +14 -0
  313. package/src/composables/index.ts +3 -0
  314. package/src/composables/useBlurhash.ts +68 -0
  315. package/src/composables/useComponentFocus.ts +9 -9
  316. package/src/composables/useComponentIcon.ts +36 -35
  317. package/src/composables/useDebouncedInput.ts +25 -25
  318. package/src/composables/useDefaults.ts +81 -80
  319. package/src/composables/useModifiers.ts +29 -29
  320. package/src/composables/useOptions.ts +51 -42
  321. package/src/composables/usePersistence.ts +74 -0
  322. package/src/composables/useTextCount.ts +46 -46
  323. package/src/composables/useUniqueId.ts +4 -4
  324. package/src/composables/useVolver.ts +1 -1
  325. package/src/constants.ts +98 -83
  326. package/src/directives/index.ts +3 -6
  327. package/src/directives/v-contextmenu.ts +26 -34
  328. package/src/directives/v-tooltip.ts +20 -11
  329. package/src/icons.ts +2 -2
  330. package/src/index.ts +6 -4
  331. package/src/props/index.ts +461 -384
  332. package/src/resolvers/unplugin.ts +154 -144
  333. package/src/shims.d.ts +4 -5
  334. package/src/stories/Accordion/Accordion.settings.ts +51 -50
  335. package/src/stories/Accordion/Accordion.stories.ts +21 -21
  336. package/src/stories/Accordion/Accordion.test.ts +56 -54
  337. package/src/stories/Accordion/AccordionSlots.stories.ts +13 -13
  338. package/src/stories/AccordionGroup/AccordionGroup.settings.ts +70 -67
  339. package/src/stories/AccordionGroup/AccordionGroup.stories.ts +41 -39
  340. package/src/stories/AccordionGroup/AccordionGroup.test.ts +49 -45
  341. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +36 -36
  342. package/src/stories/Alert/Alert.settings.ts +117 -116
  343. package/src/stories/Alert/Alert.stories.ts +30 -30
  344. package/src/stories/Alert/Alert.test.ts +78 -80
  345. package/src/stories/Alert/AlertModifiers.stories.ts +45 -45
  346. package/src/stories/Alert/AlertSlots.stories.ts +35 -35
  347. package/src/stories/AlertGroup/AlertGroup.settings.ts +107 -105
  348. package/src/stories/AlertGroup/AlertGroup.stories.ts +25 -25
  349. package/src/stories/AlertGroup/AlertGroup.test.ts +69 -71
  350. package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +68 -68
  351. package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +23 -23
  352. package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +58 -58
  353. package/src/stories/Avatar/Avatar.settings.ts +29 -29
  354. package/src/stories/Avatar/Avatar.stories.ts +22 -22
  355. package/src/stories/Avatar/Avatar.test.ts +22 -24
  356. package/src/stories/Avatar/AvatarBadge.stories.ts +15 -15
  357. package/src/stories/Avatar/AvatarModifiers.stories.ts +60 -60
  358. package/src/stories/Avatar/AvatarSlots.stories.ts +17 -17
  359. package/src/stories/AvatarGroup/AvatarGroup.settings.ts +54 -53
  360. package/src/stories/AvatarGroup/AvatarGroup.stories.ts +17 -17
  361. package/src/stories/AvatarGroup/AvatarGroup.test.ts +24 -26
  362. package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +15 -15
  363. package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +17 -17
  364. package/src/stories/Badge/Badge.settings.ts +21 -20
  365. package/src/stories/Badge/Badge.stories.ts +24 -24
  366. package/src/stories/Badge/Badge.test.ts +8 -8
  367. package/src/stories/Badge/BadgeSlots.stories.ts +10 -10
  368. package/src/stories/Blurhash/BlurhashComposable.stories.ts +116 -0
  369. package/src/stories/Breadcrumb/Breadcrumb.settings.ts +35 -34
  370. package/src/stories/Breadcrumb/Breadcrumb.stories.ts +23 -23
  371. package/src/stories/Breadcrumb/Breadcrumb.test.ts +44 -43
  372. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +19 -19
  373. package/src/stories/Button/Button.settings.ts +147 -151
  374. package/src/stories/Button/Button.stories.ts +19 -19
  375. package/src/stories/Button/Button.test.ts +41 -42
  376. package/src/stories/Button/ButtonIcon.stories.ts +42 -42
  377. package/src/stories/Button/ButtonLink.stories.ts +24 -24
  378. package/src/stories/Button/ButtonLoading.stories.ts +22 -22
  379. package/src/stories/Button/ButtonModifiers.stories.ts +91 -91
  380. package/src/stories/Button/ButtonSlots.stories.ts +47 -47
  381. package/src/stories/Button/ButtonState.stories.ts +23 -23
  382. package/src/stories/Button/ButtonToggle.stories.ts +30 -30
  383. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +33 -24
  384. package/src/stories/ButtonGroup/ButtonGroup.stories.ts +19 -19
  385. package/src/stories/ButtonGroup/ButtonGroup.test.ts +23 -26
  386. package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +20 -20
  387. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +17 -17
  388. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +22 -22
  389. package/src/stories/Card/Card.settings.ts +49 -48
  390. package/src/stories/Card/Card.stories.ts +22 -22
  391. package/src/stories/Card/Card.test.ts +14 -16
  392. package/src/stories/Card/CardSlots.stories.ts +42 -42
  393. package/src/stories/Checkbox/Checkbox.settings.ts +36 -35
  394. package/src/stories/Checkbox/Checkbox.stories.ts +57 -57
  395. package/src/stories/Checkbox/Checkbox.test.ts +63 -66
  396. package/src/stories/Checkbox/CheckboxBinary.stories.ts +18 -18
  397. package/src/stories/Checkbox/CheckboxSlots.stories.ts +15 -15
  398. package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +9 -9
  399. package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +50 -50
  400. package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +64 -68
  401. package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +34 -34
  402. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +23 -23
  403. package/src/stories/Combobox/Combobox.settings.ts +408 -385
  404. package/src/stories/Combobox/Combobox.stories.ts +116 -107
  405. package/src/stories/Combobox/Combobox.test.ts +92 -92
  406. package/src/stories/Combobox/ComboboxIconPosition.stories.ts +25 -24
  407. package/src/stories/Combobox/ComboboxMultiple.stories.ts +32 -22
  408. package/src/stories/Combobox/ComboboxOptions.stories.ts +81 -84
  409. package/src/stories/Combobox/ComboboxSlots.stories.ts +55 -54
  410. package/src/stories/Dialog/Dialog.settings.ts +49 -40
  411. package/src/stories/Dialog/Dialog.stories.ts +28 -28
  412. package/src/stories/Dialog/Dialog.test.ts +49 -54
  413. package/src/stories/Dialog/DialogModifiers.stories.ts +42 -0
  414. package/src/stories/Dialog/DialogSlots.stories.ts +20 -20
  415. package/src/stories/Dropdown/Dropdown.settings.ts +62 -61
  416. package/src/stories/Dropdown/Dropdown.stories.ts +60 -60
  417. package/src/stories/Dropdown/Dropdown.test.ts +9 -13
  418. package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +18 -19
  419. package/src/stories/Dropdown/DropdownMultilevel.stories.ts +19 -19
  420. package/src/stories/Dropdown/DropdownSlots.stories.ts +51 -51
  421. package/src/stories/Icon/Icon.settings.ts +66 -65
  422. package/src/stories/Icon/Icon.stories.ts +29 -30
  423. package/src/stories/Icon/IconsCollection.stories.ts +24 -24
  424. package/src/stories/InputFile/InputFile.settings.ts +37 -0
  425. package/src/stories/InputFile/InputFile.stories.ts +97 -0
  426. package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
  427. package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
  428. package/src/stories/InputFile/InputFileSlots.stories.ts +33 -0
  429. package/src/stories/InputText/InputText.settings.ts +248 -246
  430. package/src/stories/InputText/InputText.stories.ts +68 -68
  431. package/src/stories/InputText/InputText.test.ts +119 -122
  432. package/src/stories/InputText/InputTextIconPosition.stories.ts +24 -24
  433. package/src/stories/InputText/InputTextLength.stories.ts +33 -33
  434. package/src/stories/InputText/InputTextMask.stories.ts +91 -91
  435. package/src/stories/InputText/InputTextMinMax.stories.ts +30 -30
  436. package/src/stories/InputText/InputTextSlots.stories.ts +20 -20
  437. package/src/stories/InputText/InputTextType.stories.ts +70 -70
  438. package/src/stories/Nav/Nav.settings.ts +27 -27
  439. package/src/stories/Nav/Nav.stories.ts +18 -18
  440. package/src/stories/Nav/Nav.test.ts +10 -12
  441. package/src/stories/Nav/NavModifiers.stories.ts +25 -25
  442. package/src/stories/Progress/Progress.settings.ts +24 -23
  443. package/src/stories/Progress/Progress.stories.ts +23 -23
  444. package/src/stories/Progress/Progress.test.ts +5 -5
  445. package/src/stories/Radio/Radio.settings.ts +9 -9
  446. package/src/stories/Radio/Radio.stories.ts +47 -47
  447. package/src/stories/Radio/Radio.test.ts +54 -57
  448. package/src/stories/Radio/RadioSlots.stories.ts +15 -15
  449. package/src/stories/RadioGroup/RadioGroup.settings.ts +9 -9
  450. package/src/stories/RadioGroup/RadioGroup.stories.ts +51 -52
  451. package/src/stories/RadioGroup/RadioGroup.test.ts +64 -68
  452. package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +35 -35
  453. package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +23 -23
  454. package/src/stories/Select/Select.settings.ts +72 -71
  455. package/src/stories/Select/Select.stories.ts +75 -66
  456. package/src/stories/Select/Select.test.ts +67 -70
  457. package/src/stories/Select/SelectIconPosition.stories.ts +27 -26
  458. package/src/stories/Select/SelectOptions.stories.ts +55 -55
  459. package/src/stories/Select/SelectSlots.stories.ts +21 -20
  460. package/src/stories/Tab/Tab.settings.ts +34 -34
  461. package/src/stories/Tab/Tab.stories.ts +16 -16
  462. package/src/stories/Tab/Tab.test.ts +17 -19
  463. package/src/stories/Textarea/Textarea.settings.ts +80 -78
  464. package/src/stories/Textarea/Textarea.stories.ts +63 -63
  465. package/src/stories/Textarea/Textarea.test.ts +70 -73
  466. package/src/stories/Textarea/TextareaLength.stories.ts +33 -33
  467. package/src/stories/Textarea/TextareaSlots.stories.ts +20 -20
  468. package/src/stories/Textarea/TextareatIconPosition.stories.ts +24 -24
  469. package/src/stories/Tooltip/Tooltip.settings.ts +16 -17
  470. package/src/stories/Tooltip/Tooltip.stories.ts +18 -18
  471. package/src/stories/Tooltip/Tooltip.test.ts +53 -54
  472. package/src/stories/Tooltip/TooltipDirective.stories.ts +37 -37
  473. package/src/stories/argTypes.ts +506 -505
  474. package/src/test/expect.ts +74 -79
  475. package/src/test/options.ts +17 -16
  476. package/src/test/sleep.ts +3 -2
  477. package/src/test/types.d.ts +12 -12
  478. package/src/types/alert.ts +21 -17
  479. package/src/types/blurhash.ts +21 -0
  480. package/src/types/floating-ui.ts +1 -1
  481. package/src/types/generic.ts +2 -3
  482. package/src/types/group.ts +35 -27
  483. package/src/types/index.ts +7 -0
  484. package/src/types/input-file.ts +10 -0
  485. package/src/types/nav.ts +13 -14
  486. package/src/utils/DomUtilities.ts +15 -0
  487. package/src/utils/ObjectUtilities.ts +192 -188
  488. package/src/workers/blurhash.ts +9 -0
  489. package/dist/composables/alert/useInjectAlert.d.ts +0 -9
  490. package/dist/composables/dropdown/useInjectDropdown.d.ts +0 -32
  491. package/dist/composables/group/useInjectedGroupState.d.ts +0 -10
  492. package/dist/composables/group/useProvideGroupState.d.ts +0 -6
  493. package/src/composables/dropdown/useProvideDropdown.ts +0 -94
  494. package/src/composables/group/useInjectedGroupState.ts +0 -51
  495. package/src/composables/group/useProvideGroupState.ts +0 -20
  496. /package/src/assets/icons/normal/{dulicate.svg → duplicate.svg} +0 -0
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("uid"),require("@vueuse/core"),require("@iconify/vue"),require("ts-dot-prop"),require("@floating-ui/vue"),require("mitt"),require("vue-imask")):"function"==typeof define&&define.amd?define(["exports","vue","uid","@vueuse/core","@iconify/vue","ts-dot-prop","@floating-ui/vue","mitt","vue-imask"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).components={},e.vue,e.uid,e.core,e.vue$1,e.tsDotProp,e.vue$2,e.mitt,e.vueImask)}(this,(function(e,t,l,o,a,n,r,i,u){"use strict";var s=(e=>(e.absolute="absolute",e.fixed="fixed",e))(s||{}),d=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(d||{}),c=(e=>(e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end",e))(c||{}),v=(e=>(e.before="before",e.after="after",e))(v||{}),p=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(p||{}),m=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(m||{}),f=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(f||{}),b=(e=>(e.listbox="listbox",e.menu="menu",e))(b||{}),g=(e=>(e.option="option",e.presentation="presentation",e))(g||{}),y=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(y||{});const h=Symbol.for("volver"),k=Symbol.for("buttonGroup"),S=Symbol.for("radioGroup"),V=Symbol.for("checkGroup"),B=Symbol.for("accordionGroup"),w=Symbol.for("dropdownTrigger"),x=Symbol.for("dropdownItem"),C=Symbol.for("dropdownAction"),_=Symbol.for("alertGroup"),$={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(y).includes(e)},rel:{type:String,default:"noopener noreferrer"}},P={valid:Boolean,validLabel:[String,Array]},E={invalid:Boolean,invalidLabel:[String,Array]},N={loading:Boolean,loadingLabel:{type:String,default:"Loading..."}},L={disabled:Boolean},A={selected:Boolean},R={active:Boolean},O={current:Boolean},D={pressed:Boolean},T={label:[String,Number]},z={readonly:Boolean},I={modifiers:[String,Array]},M={hintLabel:{type:String,default:""}},H={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},F={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},j={debounce:[Number,String]},G={icon:{type:[String,Object]},iconPosition:{type:String,default:v.before,validation:e=>Object.values(v).includes(e)}},U={tabindex:{type:[String,Number],default:0}},W={floating:Boolean},K={unselectable:{type:Boolean,default:!0}},q={id:[String,Number]},X={placement:{type:String,default:d.bottom,validator:e=>Object.values(d).includes(e)||Object.values(c).includes(e)},strategy:{type:String,default:void 0,validator:e=>Object.values(s).includes(e)},transitionName:{type:String},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean}},J={...q,name:{type:String,required:!0}},Y={autofocus:Boolean},Q={autocomplete:{type:String,default:"off"}},Z={...J,...Y,...Q,...U,...L,...z,...P,...E,...M,...N,...I,...F,...j,...G,...W,...T,minlength:[String,Number],maxlength:[String,Number],placeholder:String,required:Boolean},ee={...J,...U,...P,...E,...M,...L,...z,...I,...T,...N,value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String]},te={...P,...E,...H,...M,...L,...z,...I,...T,...N,modelValue:[String,Array,Boolean,Number,Symbol],name:{type:String,required:!0},vertical:Boolean},le={...L,...T,...D,...R,...O,...$,type:{type:String,default:p.button,validator:e=>Object.values(p).includes(e)},ariaLabel:{type:String,default:void 0}},oe={items:{type:Array,default:()=>[]}};function ae(e,t,l){return l?re(e,l)===re(t,l):ne(e,t)}function ne(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),o=Array.isArray(t);let a,n,r;if(l&&o){if(n=e.length,n!=t.length)return!1;for(a=n;0!=a--;)if(!ne(e[a],t[a]))return!1;return!0}if(l!=o)return!1;const i=e instanceof Date,u=t instanceof Date;if(i!=u)return!1;if(i&&u)return e.getTime()==t.getTime();const s=e instanceof RegExp,d=t instanceof RegExp;if(s!=d)return!1;if(s&&d)return e.toString()==t.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(t).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!ne(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}function re(e,t){if(e&&Object.keys(e).length&&t){if(-1===t.indexOf("."))return e[t];{const l=t.split(".");let o=e;for(let t=0,a=l.length;t<a;++t){if(null==e)return null;o=o[l[t]]}return o}}return null}function ie(e,t){if(null!=e&&t&&t.length)for(const l of t)if(ae(e,l))return!0;return!1}function ue(e){return null==(l=t.unref(e))||""===l||Array.isArray(l)&&0===l.length||!(l instanceof Date)&&"object"==typeof l&&0===Object.keys(l).length;var l}function se(e,t){const l=function(e,t){let l=-1;if(t)for(let o=0;o<t.length;o++)if(ae(t[o],e)){l=o;break}return l}(e,t);return l>-1?t.filter(((e,t)=>t!==l)):t}function de(e){const l=t.inject(e,void 0),o=t.computed((()=>!ue(l)));return{group:l,isInGroup:o,getGroupOrLocalRef:function(e,o,a){if(null==l?void 0:l.value){const o=t.unref(l.value)[e];return t.computed({get:()=>null==o?void 0:o.value,set(e){o.value=e}})}const n=t.toRef(o,e);return t.computed({get:()=>n.value,set(t){a&&a(`update:${e}`,t)}})}}}const ce={...I,name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},disabled:Boolean,not:Boolean};function ve(e,l,o){return t.computed((()=>{const a={[e]:!0},n="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return n&&Array.isArray(n)&&n.forEach((t=>{t&&(a[`${e}--${t}`]=!0)})),o&&Object.keys(o.value).forEach((l=>{a[`${e}--${l}`]=t.unref(o.value[l])})),a}))}const pe=["id","open"],me=["aria-controls","aria-expanded"],fe=["aria-hidden"],be=t.defineComponent({name:"VvAccordion",props:ce,emits:["update:modelValue"],setup(e,{emit:a}){const n=e,r=t.useAttrs(),i=t.computed((()=>n.name||(null==r?void 0:r.id)||l.uid())),{modifiers:u,title:s,content:d,disabled:c,collapse:v,modelValue:p,isInGroup:m,not:f}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=de(B),{title:r,content:i}=t.toRefs(e),u=n("modelValue",e,l),s=n("not",e),d=n("collapse",e),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))})),v=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)}));return{modelValue:u,not:s,isInGroup:a,group:o,collapse:d,modifiers:v,disabled:c,title:r,content:i}}(n,a),b=t.ref(!1),g=t.computed({get:()=>{let e=p.value;return m.value?e=v.value&&Array.isArray(p.value)?p.value.includes(i.value):p.value===i.value:void 0===p.value&&(e=b.value),f.value?!e:e},set:e=>{if(f.value&&(e=!e),m.value)return v.value&&Array.isArray(p.value)?e?void p.value.push(i.value):void(p.value=p.value.filter((e=>e!==i.value))):void(p.value=e?i.value:null);void 0!==p.value||"boolean"!=typeof e?p.value=e:b.value=e}}),y=ve("vv-accordion",u,t.computed((()=>({disabled:c.value})))),h=o.useToggle(g);return(e,l)=>(t.openBlock(),t.createElementBlock("details",{id:t.unref(i),class:t.normalizeClass(t.unref(y)),open:t.unref(g)},[t.createElementVNode("summary",{"aria-controls":t.unref(i),"aria-expanded":t.unref(g),class:"vv-accordion__summary",onClick:l[0]||(l[0]=t.withModifiers((e=>t.unref(h)()),["prevent"]))},[t.renderSlot(e.$slots,"summary",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(s)),1)]))],8,me),t.createElementVNode("div",{"aria-hidden":!t.unref(g),class:"vv-accordion__content"},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)),1)]))],8,fe)],10,pe))}}),ge={...I,modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,itemModifiers:{type:[String,Array],default:""},disabled:Boolean,not:Boolean,storeKey:String};function ye(e){if(Object.keys(e).some((l=>"key"!==l&&!t.isRef(e[l]))))throw Error("One or more groupState props aren't ref.");t.provide(e.key,t.computed((()=>e)))}const he=t.defineComponent({name:"VvAccordionGroup",props:ge,emits:["update:modelValue"],setup(e,{emit:l}){const a=e,{disabled:n,collapse:r,modifiers:i,itemModifiers:u,items:s,not:d}=t.toRefs(a);t.watchEffect((()=>{"string"==typeof a.modelValue&&r.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")}));let c=t.ref([]);t.watch((()=>a.storeKey),(e=>{c=e?o.useStorage(e,c.value):t.ref([])}),{immediate:!0});const v=t.computed({get:()=>{var e;return void 0!==a.modelValue?r.value?a.modelValue:Array.isArray(a.modelValue)?a.modelValue[0]:a.modelValue:r.value?c.value:null==(e=c.value)?void 0:e[0]},set:e=>{if(void 0!==a.modelValue)return!Array.isArray(a.modelValue)&&!r.value||Array.isArray(e)||(e=[e]),l("update:modelValue",e);c.value=Array.isArray(e)?e:[e]}});ye({key:B,modelValue:v,disabled:n,collapse:r,modifiers:u,not:d});const p=ve("vv-accordion-group",i,t.computed((()=>({disabled:n.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(p))},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(l=>(t.openBlock(),t.createBlock(be,t.mergeProps({key:l.title},{name:l.name,title:l.title,content:l.content}),{header:t.withCtx((o=>[t.renderSlot(e.$slots,`header::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),details:t.withCtx((o=>[t.renderSlot(e.$slots,`details::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),_:2},1040)))),128))]))],2))}}),ke=le;function Se(){return t.inject(h)}const Ve=t.defineComponent({name:"VvAction",props:ke,emits:["click","mouseover","mouseleave"],setup(e,{expose:l,emit:o}){const a=e,n=Se(),r=t.ref(null);l({$el:r});const{reference:i,bus:u,aria:s,expanded:d}=t.inject(w,{});t.watch((()=>r.value),(e=>{i&&(i.value=e)}));const c=t.computed((()=>a.pressed||(null==d?void 0:d.value))),{role:v}=t.inject(C,{}),p=t.computed((()=>{switch(!0){case a.disabled:return m.button;case void 0!==a.to:return(null==n?void 0:n.nuxt)?m.nuxtLink:m.routerLink;case void 0!==a.href:return m.a;default:return m.button}})),f=t.computed((()=>{const e={...null==s?void 0:s.value,ariaPressed:!!c.value||void 0,ariaLabel:a.ariaLabel,role:null==v?void 0:v.value};switch(p.value){case m.a:return{...e,href:a.href,target:a.target,rel:a.rel};case m.routerLink:case m.nuxtLink:return{...e,to:a.to,target:a.target};default:return{...e,type:a.type,disabled:a.disabled}}})),b=e=>{a.disabled?e.preventDefault():(null==u||u.emit("click",e),o("click",e))},g=e=>{null==u||u.emit("mouseover",e),o("mouseover",e)},y=e=>{null==u||u.emit("mouseleave",e),o("mouseleave",e)};return(e,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(p)),t.mergeProps(t.unref(f),{ref_key:"element",ref:r,class:{active:e.active,pressed:t.unref(c),disabled:e.disabled,current:e.current},onClickPassive:b,onMouseoverPassive:g,onMouseleavePassive:y}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]))])),_:3},16,["class"]))}}),Be={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}},we=t.defineComponent({name:"VvIcon",props:Be,setup(e){const l=e,o=t.computed((()=>"string"==typeof l.rotate?parseFloat(l.rotate):l.rotate)),n=t.ref(!0),r=Se(),{modifiers:i}=t.toRefs(l),u=ve("vv-icon",i),s=t.computed((()=>l.provider||(null==r?void 0:r.iconsProvider))),d=t.computed((()=>{const e=l.name??"",t=`@${s.value}:${l.prefix}:${e}`;if(a.iconExists(t))return t;const o=null==r?void 0:r.iconsCollections.find((t=>{const l=`@${s.value}:${t.prefix}:${e}`;return a.iconExists(l)}));return o?`@${s.value}:${o.prefix}:${e}`:e}));function c(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),o=(null==t?void 0:t.innerHTML.trim())||"";t&&o&&a.addIcon(`@${s.value}:${l.prefix}:${l.name}`,{body:o,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&l.src&&!a.iconExists(`@${s.value}:${l.prefix}:${l.name}`)&&(n.value=!1,r.fetchIcon(l.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),l.svg&&c(l.svg),(e,l)=>t.unref(n)?(t.openBlock(),t.createBlock(t.unref(a.Icon),t.mergeProps({key:0,class:t.unref(u)},{inline:e.inline,width:e.width,height:e.height,horizontalFlip:e.horizontalFlip,verticalFlip:e.verticalFlip,flip:e.flip,rotate:t.unref(o),color:e.color,onLoad:e.onLoad,icon:t.unref(d)}),null,16,["class"])):t.createCommentVNode("",!0)}});const xe=e=>t.computed((()=>String((null==e?void 0:e.value)||l.uid()))),Ce={...q,...I,...G,dismissable:{type:Boolean,default:!1},autoClose:{type:Number,default:0},closeLabel:{type:String,default:"Close"},title:{type:String,default:void 0},content:{type:String,default:void 0},footer:{type:String,default:void 0},role:{type:String,default:"alert"}},_e=(e,l)=>{const{bus:o}=t.inject(_,{}),a=xe(t.computed((()=>e.id))),n=t.computed((()=>`${a.value}-title`)),r=t.computed((()=>"string"==typeof e.icon?{name:e.icon}:e.icon)),i=ve("vv-alert",t.computed((()=>e.modifiers)),t.computed((()=>({dismissable:e.autoClose>0||e.dismissable,"auto-close":e.autoClose>0,hover:c.value})))),u=t.computed((()=>({"--alert-duration":`${e.autoClose}ms`}))),s=()=>{d&&clearTimeout(d),l("close",a.value),null==o||o.emit("close",a.value)};let d;t.watch((()=>e.autoClose),(e=>{e>0?d=setTimeout(s,e):d&&clearTimeout(d)}),{immediate:!0});const c=t.ref(!1),v=t.withModifiers((()=>{c.value=!0,d&&clearTimeout(d)}),["passive"]),p=t.withModifiers((()=>{c.value=!1,e.autoClose>0&&(d=setTimeout(s,e.autoClose))}),["passive"]);return{close:s,hasIcon:r,hasTitleId:n,hasProps:t.computed((()=>({onMouseover:v,onMouseleave:p,class:i.value,style:u.value,role:e.role,"aria-labelledby":n.value})))}},$e={key:0,class:"vv-alert__header"},Pe=["id"],Ee=["aria-label"],Ne=[t.createElementVNode("div",{class:"vv-alert__close-mask"},null,-1)],Le={key:1,class:"vv-alert__content"},Ae={key:2,class:"vv-alert__footer"},Re=t.defineComponent({name:"VvAlert",props:Ce,emits:["close"],setup(e,{expose:l,emit:o}){const a=e,{hasProps:n,hasTitleId:r,hasIcon:i,close:u}=_e(a,o);return l({close:u}),(e,l)=>(t.openBlock(),t.createElementBlock("div",t.normalizeProps(t.guardReactiveProps(t.unref(n))),[e.$slots.header||e.$slots.title||e.$slots.close||e.$slots["title::before"]||e.$slots["title::after"]||e.title||e.dismissable||e.autoClose?(t.openBlock(),t.createElementBlock("div",$e,[t.unref(i)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0},t.unref(i),{class:"vv-alert__icon"}),null,16)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"header",{},(()=>[t.renderSlot(e.$slots,"title::before"),e.$slots.title||e.title?(t.openBlock(),t.createElementBlock("strong",{key:0,id:t.unref(r),class:"vv-alert__title"},[t.renderSlot(e.$slots,"title",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))],8,Pe)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"title::after")])),t.renderSlot(e.$slots,"close",t.normalizeProps(t.guardReactiveProps({close:t.unref(u)})),(()=>[e.dismissable||e.autoClose?(t.openBlock(),t.createElementBlock("button",{key:0,class:"vv-alert__close",type:"button","aria-label":e.closeLabel,onClick:l[0]||(l[0]=t.withModifiers(((...e)=>t.unref(u)&&t.unref(u)(...e)),["stop"]))},Ne,8,Ee)):t.createCommentVNode("",!0)]))])):t.createCommentVNode("",!0),e.$slots.default||e.content?(t.openBlock(),t.createElementBlock("div",Le,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]))])):t.createCommentVNode("",!0),e.$slots.footer||e.footer?(t.openBlock(),t.createElementBlock("div",Ae,[t.renderSlot(e.$slots,"footer",{},(()=>[t.createTextVNode(t.toDisplayString(e.footer),1)]))])):t.createCommentVNode("",!0)],16))}}),Oe={...I,value:[String,Number]},De=t.defineComponent({name:"VvBadge",props:Oe,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-badge",o);return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"status"},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),Te={...I,routes:Array},ze={class:"vv-breadcrumb__list"},Ie=["content"],Me=t.defineComponent({name:"VvBreadcrumb",props:Te,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-breadcrumb",o);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(a)),"aria-label":"breadcrumbs"},[t.createElementVNode("ol",ze,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.routes,((l,o)=>{var a,n,r,i;return t.openBlock(),t.createElementBlock("li",{key:`${l.label}-${o}`,class:t.normalizeClass({"vv-breadcrumb__item":o<Number(null==(a=e.routes)?void 0:a.length)-1,"vv-breadcrumb__item-active":o===Number(null==(n=e.routes)?void 0:n.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.to?"router-link":l.href?"a":"span"),t.mergeProps(l,{class:{"vv-breadcrumb__link":o<Number(null==(r=e.routes)?void 0:r.length)-1},"aria-current":o===Number(null==(i=e.routes)?void 0:i.length)-1?"page":void 0,itemprop:"item"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"label",t.normalizeProps(t.guardReactiveProps({route:l,index:o})),(()=>[t.createTextVNode(t.toDisplayString(l.label),1)]))])),_:2},1040,["class","aria-current"])),t.createElementVNode("meta",{itemprop:"position",content:`${o+1}`},null,8,Ie)],2)})),128))])],2))}}),He={...le,...q,...I,...K,...N,icon:[String,Object],iconPosition:{type:String,default:d.left,validator:e=>Object.values(d).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};const Fe={key:1,class:"vv-button__label"},je={key:1,class:"vv-button__label"},Ge=t.defineComponent({name:"VvButton",props:He,emits:["update:modelValue"],setup(e,{expose:l,emit:o}){const a=e,n=t.useAttrs(),r=t.useSlots(),{id:i,modifiers:u,iconPosition:s,icon:c,label:v,modelValue:p,disabled:m,toggle:f,unselectable:b}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=de(k),{id:r,iconPosition:i,icon:u,label:s,pressed:d}=t.toRefs(e),c=n("modelValue",e,l),v=n("toggle",e),p=n("unselectable",e),m=t.computed((()=>(null==o?void 0:o.value.multiple.value)??!1)),f=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)})),b=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:p,multiple:m,modifiers:f,disabled:b,id:r,pressed:d,iconPosition:i,icon:u,label:s}}(a,o),g=xe(i),y=t.computed((()=>(null==n?void 0:n.name)||g.value)),h=t.ref(null);l({$el:t.computed((()=>{var e;return null==(e=h.value)?void 0:e.$el}))});const S=t.computed((()=>f.value?Array.isArray(p.value)?ie(y.value,p.value):ae(y.value,p.value):a.pressed)),V=ve("vv-button",u,t.computed((()=>({reverse:[d.right,d.bottom].includes(s.value),column:[d.top,d.bottom].includes(s.value),"icon-only":Boolean((null==c?void 0:c.value)&&!(null==v?void 0:v.value)&&!r.default)})))),B=t.computed((()=>"string"==typeof(null==c?void 0:c.value)?{name:null==c?void 0:c.value}:null==c?void 0:c.value)),w=t.computed((()=>void 0!==a.value?a.value:y.value)),x=()=>{if(f.value){if(Array.isArray(p.value))return ie(w.value,p.value)?void(b.value&&(p.value=p.value.filter((e=>e!==w.value)))):void p.value.push(w.value);if(w.value===p.value&&b.value)return void(p.value=a.uncheckedValue);p.value=w.value}};return(e,l)=>(t.openBlock(),t.createBlock(Ve,t.mergeProps({disabled:t.unref(m),pressed:t.unref(S),active:e.active,type:e.type,to:e.to,href:e.href,target:e.target,rel:e.rel,ariaLabel:e.ariaLabel},{id:t.unref(g),ref_key:"element",ref:h,class:t.unref(V),onClick:x}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[e.loadingIcon?(t.openBlock(),t.createBlock(we,{key:0,class:"vv-button__loading-icon",name:e.loadingIcon},null,8,["name"])):t.createCommentVNode("",!0),e.loadingLabel?(t.openBlock(),t.createElementBlock("span",Fe,t.toDisplayString(e.loadingLabel),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"before"),t.unref(c)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-button__icon"},t.unref(B)),null,16)):t.createCommentVNode("",!0),t.unref(v)?(t.openBlock(),t.createElementBlock("span",je,[t.renderSlot(e.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(v)),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"after")],64))]))])),_:3},16,["id","class"]))}}),Ue={...I,...L,...K,itemModifiers:{type:[String,Array],default:""},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array],default:void 0}},We=t.defineComponent({name:"VvButtonGroup",props:Ue,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,{disabled:a,toggle:n,modifiers:r,multiple:i,unselectable:u,itemModifiers:s}=t.toRefs(o);t.watchEffect((()=>{"string"==typeof o.modelValue&&i.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")}));const d=t.computed({get:()=>i.value?o.modelValue:Array.isArray(o.modelValue)?o.modelValue[0]:o.modelValue,set:e=>void 0===e||!Array.isArray(o.modelValue)&&!i.value||Array.isArray(e)?l("update:modelValue",e):l("update:modelValue",[e])});ye({key:k,modelValue:d,disabled:a,toggle:n,multiple:i,unselectable:u,modifiers:s});const c=ve("vv-button-group",r);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(c)),role:"group"},[t.renderSlot(e.$slots,"default")],2))}}),Ke={...I,title:String},qe={key:0,class:"vv-card__header"},Xe={key:1,class:"vv-card__content"},Je={key:2,class:"vv-card__footer"},Ye=t.defineComponent({name:"VvCard",props:Ke,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-card",o);return(e,l)=>(t.openBlock(),t.createElementBlock("article",{class:t.normalizeClass(t.unref(a))},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",qe,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.content?(t.openBlock(),t.createElementBlock("div",Xe,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",Je,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],2))}}),Qe={...ee,...I,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function Ze(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function et(e,l){const o=t.computed((()=>t.isRef(e)?e.value:e)),a=t.computed((()=>Ze(o.value.invalidLabel))),n=t.computed((()=>Ze(o.value.validLabel))),r=t.computed((()=>o.value.loadingLabel)),i=t.computed((()=>o.value.hintLabel)),u=t.computed((()=>Boolean(o.value.loading&&(l.loading||r.value)))),s=t.computed((()=>!u.value&&Boolean(o.value.invalid&&(l.invalid||a.value)))),d=t.computed((()=>!u.value&&!s.value&&Boolean(o.value.valid&&(l.valid||n.value)))),c=t.computed((()=>!u.value&&!s.value&&!d.value&&Boolean(l.hint||i.value))),v=t.computed((()=>s.value||d.value||u.value||c.value)),p=t.computed((()=>({modelValue:o.value.modelValue,valid:o.value.valid,invalid:o.value.invalid,loading:o.value.loading}))),m=t.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:v,invalidLabel:a,validLabel:n,loadingLabel:r,hintLabel:i,hasInvalidLabelOrSlot:s,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:u,hasHintLabelOrSlot:c}),render(){var e,l,o,a,n,r,i,u;if(this.isVisible){let s;return this.hasInvalidLabelOrSlot&&(s="alert"),this.hasValidLabelOrSlot&&(s="status"),this.hasLoadingLabelOrSlot?t.h(this.tag,{role:s},(null==(l=(e=this.$slots).loading)?void 0:l.call(e))??this.loadingLabel):this.hasInvalidLabelOrSlot?t.h(this.tag,{role:s},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?t.h(this.tag,{role:s},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):t.h(this.tag,{role:s},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:s,hasHintLabelOrSlot:c,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:u,hintSlotScope:p,HintSlot:m}}function tt(e,l,o){const a=Se(),n=t.computed((()=>{var t;if(a&&(null==(t=a.defaults.value)?void 0:t[e]))return a.defaults.value[e]}));return t.computed((()=>{if(void 0===n.value)return o;const e=n.value,t=l,a=o;return Object.keys(t).reduce(((l,o)=>{const n=a[o];if(l[o]=n,o in e){if(Array.isArray(t[o])){const a=t[o];if(a.length){a[0]===n&&(l[o]=e[o])}}if("function"==typeof t[o]){(0,t[o])()===n&&(l[o]=e[o])}if("object"==typeof t[o]){let a=t[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(l[o]=e[o]):a===n&&(l[o]=e[o])}}return l}),{})}))}const lt=["for"],ot=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],at=t.defineComponent({name:"VvCheckbox",props:Qe,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),n=tt("VvCheckbox",Qe,o),{id:r,disabled:i,readonly:u,valid:s,invalid:d,propsSwitch:c,modelValue:v,indeterminate:p,isInGroup:m}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=de(V),{id:r,switch:i,indeterminate:u}=t.toRefs(e),s=n("modelValue",e,l),d=n("valid",e),c=n("invalid",e),v=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==o?void 0:o.value)?void 0:t.readonly.value))})),p=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{id:r,propsSwitch:i,indeterminate:u,group:o,isInGroup:a,modelValue:s,valid:d,invalid:c,readonly:v,disabled:p}}(o,l),f=xe(r),b=t.computed((()=>`${f.value}-hint`)),g=t.computed((()=>k.value?-1:o.tabindex)),y=t.ref(),h=t.computed((()=>void 0!==o.uncheckedValue&&!m.value)),k=t.computed((()=>i.value||u.value)),S=t.computed((()=>!0===d.value||!0!==s.value&&void 0)),B=t.computed((()=>h.value?v.value===o.value:Array.isArray(v.value)?ie(o.value,v.value):ae(o.value,v.value))),w=t.computed((()=>!!p.value||!(B.value||!h.value||o.uncheckedValue===v.value))),x=t.computed((()=>{if(!h.value)return!["string","number","boolean"].includes(typeof o.value)||o.value})),C=t.computed({get:()=>B.value,set(e){if(h.value)v.value=e?o.value:o.uncheckedValue;else if(Array.isArray(v.value)||m.value){const t=new Set(Array.isArray(v.value)?v.value:void 0!==v.value?[v.value]:[]);e?t.add(o.value):t.delete(o.value),v.value=[...t]}else v.value=e?o.value:void 0;l("change",e)}}),{modifiers:_}=t.toRefs(o),$=ve("vv-checkbox",_,t.computed((()=>({switch:c.value,valid:s.value,invalid:d.value,disabled:i.value,readonly:u.value,indeterminate:p.value}))));t.watchEffect((()=>{h.value&&Array.isArray(v.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")})),t.watch((()=>w.value),(e=>{y.value.indeterminate=!!e})),t.onMounted((()=>{w.value&&(y.value.indeterminate=!0)}));const{HintSlot:P,hasHintLabelOrSlot:E,hasInvalidLabelOrSlot:N,hintSlotScope:L}=et(n,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref($)),for:t.unref(f)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(f),ref_key:"input",ref:y,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(C)?C.value=e:null),type:"checkbox",class:"vv-checkbox__input",name:e.name,disabled:t.unref(k),value:t.unref(x),tabindex:t.unref(g),"aria-invalid":t.unref(S),"aria-describedby":t.unref(E)?t.unref(b):void 0,"aria-errormessage":t.unref(N)?t.unref(b):void 0},null,8,ot),[[t.vModelCheckbox,t.unref(C)]]),t.renderSlot(e.$slots,"default",{value:t.unref(v)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(P),{id:t.unref(b),class:"vv-checkbox__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"3"}:void 0]),1032,["id"])],10,lt))}}),nt=te;function rt(e){const{options:l,labelKey:o,valueKey:a,disabledKey:r}=t.toRefs(e);return{options:l,getOptionLabel:e=>"object"!=typeof e&&null!==e?e:String("function"==typeof o.value?o.value(e):n.get(e,o.value)),getOptionValue:e=>"object"!=typeof e&&null!==e?e:"function"==typeof a.value?a.value(e):n.get(e,a.value),isOptionDisabled:e=>("object"==typeof e||null===e)&&("function"==typeof r.value?r.value(e):n.get(e,r.value)),getOptionGrouped:e=>"object"!=typeof e&&null!==e?[]:e.options||[]}}const it=["textContent"],ut={class:"vv-checkbox-group__wrapper"},st=t.defineComponent({name:"VvCheckboxGroup",props:nt,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvCheckboxGroup",nt,a),i=o.useVModel(a,"modelValue",l),{disabled:u,readonly:s,vertical:d,valid:c,invalid:v,modifiers:p}=t.toRefs(a);ye({key:V,modelValue:i,disabled:u,readonly:s,valid:c,invalid:v});const{getOptionLabel:m,getOptionValue:f}=rt(a),b=ve("vv-checkbox-group",p,t.computed((()=>({disabled:u.value,readonly:s.value,horizontal:!d.value,valid:c.value,invalid:v.value})))),{HintSlot:g,hintSlotScope:y}=et(r,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(b))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,it)):t.createCommentVNode("",!0),t.createElementVNode("div",ut,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(at,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:m(e),value:f(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(g),{class:"vv-checkbox-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"3"}:void 0]),1024)],2))}}),dt={...J,...U,...P,...E,...M,...N,...L,...z,...I,...H,...G,...W,...K,...X,...T,transitionName:{type:String,default:"vv-dropdown--mobile-fade-block"},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},noResultsLabel:{type:String,default:"No results"},noOptionsLabel:{type:String,default:"No options available"},selectedHintLabel:{type:String,default:"Selected"},deselectActionLabel:{type:String,default:"Deselect"},selectHintLabel:{type:String,default:"Press enter to select"},deselectHintLabel:{type:String,default:"Press enter to remove"},closeLabel:{type:String,default:"Close"},placeholder:String,searchable:Boolean,searchFunction:{type:Function,default:void 0},searchPlaceholder:{type:String,default:"Search..."},debounceSearch:{type:[Number,String],default:0},multiple:Boolean,maxValues:[Number,String],separator:{type:String,default:", "},native:Boolean,badges:Boolean,badgeModifiers:{type:[String,Array],default:"action sm"},triggerWidth:{...X.triggerWidth,default:!0},dropdownModifiers:{type:[String,Array],default:"mobile"},autoOpen:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1}},ct={...q,...X,...I,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:b.menu,validator:e=>Object.values(b).includes(e)}};const vt=["id","tabindex","role","aria-labelledby"],pt=t.defineComponent({name:"VvDropdown",inheritAttrs:!1,props:ct,emits:["update:modelValue","beforeExpand","beforeCollapse","afterExpand","afterCollapse","before-enter","after-leave","enter","after-enter","enter-cancelled","before-leave","leave","leave-cancelled"],setup(e,{expose:l,emit:a}){const n=e,{id:u}=t.toRefs(n),c=xe(u),v=t.useAttrs(),p=t.ref("auto"),m=t.ref("auto"),f=t.ref(null),y=t.ref(),h=t.ref(null),k=t.ref(null),S=t.computed({get:()=>n.reference??f.value,set:e=>{f.value=e}}),V=t.ref(!1);t.onMounted((()=>{o.useMutationObserver(y.value,(()=>{var e;V.value="true"===(null==(e=window.getComputedStyle(y.value).getPropertyValue("--dropdown-custom-position"))?void 0:e.trim())}),{attributeFilter:["style"],window:window})}));const B=t.computed((()=>{const e=[];if(n.autoPlacement?"boolean"==typeof n.autoPlacement?e.push(r.autoPlacement()):e.push(r.autoPlacement(n.autoPlacement)):n.flip&&("boolean"==typeof n.flip?e.push(r.flip({fallbackStrategy:"initialPlacement"})):e.push(r.flip(n.flip))),n.shift&&("boolean"==typeof n.shift?e.push(r.shift()):e.push(r.shift(n.shift))),n.size){const t=({availableWidth:e,availableHeight:t})=>{p.value=`${e}px`,m.value=`${t}px`};"boolean"==typeof n.size?e.push(r.size({apply:t})):e.push(r.size({...n.size,apply:t}))}return n.offset&&(e.push(r.offset(Number(n.offset))),["string","number"].includes(typeof n.offset)?e.push(r.offset(Number(n.offset))):e.push(r.offset(n.offset))),n.arrow&&e.push(r.arrow({element:h})),e})),{x:C,y:_,middlewareData:$,placement:P,strategy:E}=r.useFloating(S,y,{whileElementsMounted:(...e)=>r.autoUpdate(...e,{animationFrame:n.strategy===s.fixed}),placement:t.computed((()=>n.placement)),strategy:t.computed((()=>n.strategy)),middleware:B}),N=t.computed((()=>{var e;if(V.value)return;const t=n.triggerWidth&&S.value?`${null==(e=S.value)?void 0:e.offsetWidth}px`:void 0;return{position:E.value,top:`${_.value??0}px`,left:`${C.value??0}px`,maxWidth:t?void 0:p.value,maxHeight:m.value,width:t}})),L=t.computed((()=>P.value.split("-")[0])),A=t.computed((()=>{var e,t,l,o,a;if(V.value)return;const n={[d.top]:d.bottom,[d.right]:d.left,[d.bottom]:d.top,[d.left]:d.right}[L.value];return{left:void 0!==(null==(e=$.value.arrow)?void 0:e.x)?`${null==(t=$.value.arrow)?void 0:t.x}px`:void 0,top:void 0!==(null==(l=$.value.arrow)?void 0:l.y)?`${null==(o=$.value.arrow)?void 0:o.y}px`:void 0,[n]:-((null==(a=h.value)?void 0:a.offsetWidth)??0)/2+"px"}})),R=o.useVModel(n,"modelValue",a),O=t.ref(!1),D=t.computed({get:()=>R.value??O.value,set:e=>{void 0!==R.value?R.value=e:O.value=e}}),T=()=>{D.value=!0},z=()=>{D.value=!1},I=()=>{D.value=!D.value},M=e=>{S.value=e};l({toggle:I,show:T,hide:z,init:M,customPosition:V}),t.watch(D,(e=>{e&&n.autofocusFirst&&t.nextTick((()=>{const e=J(y.value);e.length>0&&e[0].focus({preventScroll:!0})}))})),o.onClickOutside(y,(()=>{!n.keepOpen&&D.value&&(D.value=!1)}),{ignore:[S]});const H=t.computed((()=>{var e,t;return(null==(t=null==(e=S.value)?void 0:e.getAttribute)?void 0:t.call(e,"id"))??void 0})),F=t.computed((()=>({"aria-controls":c.value,"aria-haspopup":!0,"aria-expanded":D.value}))),{component:j,bus:G}=function({reference:e,id:l,expanded:o,aria:a}){const n=i(),r=t.defineComponent({name:"VvDropdownTriggerProvider",setup(){t.provide(w,{reference:e,id:l,expanded:o,aria:a,bus:n})},render(){var e,l;return t.h(t.Fragment,{},null==(l=(e=this.$slots).default)?void 0:l.call(e))}});return{bus:n,component:r}}({reference:S,id:c,expanded:D,aria:F});G.on("click",I);const{role:U,modifiers:W}=t.toRefs(n),{itemRole:K}=function({role:e,expanded:l}){const o=t.computed((()=>e.value===b.listbox?g.option:g.presentation));return t.provide(x,{role:o,expanded:l}),{itemRole:o}}({role:U,expanded:D}),q=ve("vv-dropdown",W,t.computed((()=>({arrow:n.arrow})))),{focused:X}=o.useFocusWithin(y);function J(e){return e?[...e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))):[]}o.onKeyStroke("Escape",(e=>{D.value&&(e.preventDefault(),z())})),o.onKeyStroke("ArrowDown",(e=>{D.value&&X.value&&(e.preventDefault(),t.nextTick((()=>{if(X.value){const e=J(y.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t<e.length-1?e[t+1].focus({preventScroll:!0}):e[0].focus({preventScroll:!0})}})))})),o.onKeyStroke("ArrowUp",(e=>{D.value&&X.value&&(e.preventDefault(),t.nextTick((()=>{if(X.value){const e=J(y.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t>0?e[t-1].focus({preventScroll:!0}):e[e.length-1].focus({preventScroll:!0})}})))})),o.onKeyStroke([" ","Enter"],(e=>{const t=e.target;D.value&&X.value&&t&&(null==t||t.click())}));const Y={"before-enter":()=>{a(D.value?"beforeExpand":"beforeCollapse"),a("before-enter")},"after-leave":()=>{a(D.value?"afterExpand":"afterCollapse"),a("after-leave")},enter:()=>{a("enter")},"after-enter":()=>{a("after-enter")},"enter-cancelled":()=>{a("enter-cancelled")},"before-leave":()=>{a("before-leave")},leave:()=>{a("leave")},"leave-cancelled":()=>{a("leave-cancelled")}};return(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(j),null,{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({init:M,show:T,hide:z,toggle:I,expanded:t.unref(D),aria:t.unref(F)})))])),_:3}),t.createVNode(t.Transition,t.mergeProps({name:e.transitionName},t.toHandlers(Y)),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"floatingEl",ref:y,style:t.normalizeStyle(t.unref(N)),class:t.normalizeClass(t.unref(q))},[n.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowEl",ref:h,style:t.normalizeStyle(t.unref(A)),class:"vv-dropdown__arrow"},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(D)}))),t.createElementVNode("div",t.mergeProps(t.unref(v),{id:t.unref(c),ref_key:"listEl",ref:k,tabindex:t.unref(D)?void 0:-1,role:t.unref(U),"aria-labelledby":t.unref(H),class:"vv-dropdown__list"}),[t.renderSlot(e.$slots,"items",t.normalizeProps(t.guardReactiveProps({role:t.unref(K)})))],16,vt),t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(D)})))],6),[[t.vShow,t.unref(D)]])])),_:3},16,["name"])],64))}}),mt=t.defineComponent({name:"VvDropdownItem",setup(e){const{role:l,expanded:a}=t.inject(x,{}),n=t.ref(null);!function({expanded:e}){t.provide(C,{role:t.ref(f.menuitem),expanded:e})}({expanded:a});const r=o.useElementHover(n),{focused:i}=o.useFocus(n),{focused:u}=o.useFocusWithin(n);return t.watch(r,(e=>{e&&(i.value=!0)})),(e,o)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({role:t.unref(l)},{ref_key:"element",ref:n,class:["vv-dropdown__item",{"focus-visible":t.unref(i)||t.unref(u)}]}),[t.renderSlot(e.$slots,"default")],16))}}),ft=["title"],bt=t.defineComponent({name:"VvDropdownOption",props:{...L,...A,...K,...I,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-dropdown-option",o,t.computed((()=>({disabled:l.disabled,selected:l.selected,unselectable:l.unselectable&&l.selected})))),n=t.computed((()=>l.selected?l.unselectable?l.deselectHintLabel:l.selectedHintLabel:l.disabled?void 0:l.selectHintLabel));return(e,l)=>(t.openBlock(),t.createBlock(mt,{class:t.normalizeClass(t.unref(a)),tabindex:e.disabled?-1:0,"aria-selected":e.selected,"aria-disabled":e.disabled},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default"),t.createElementVNode("span",{class:"vv-dropdown-option__hint",title:t.unref(n)},[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps({disabled:e.disabled,selected:e.selected,unselectable:e.unselectable})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)),1)]))],8,ft)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}}),gt={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},yt=t.defineComponent({name:"VvDropdownOptgroup",props:{...T},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",gt,t.toDisplayString(l.label),1))}}),ht={...J,...Y,...Q,...U,...P,...E,...M,...N,...L,...z,...I,...H,...G,...W,...K,...T,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},placeholder:String};function kt(e,l){const{focused:a}=o.useFocus(e);return t.watch(a,(o=>{l(o?"focus":"blur",t.unref(e))})),{focused:a}}function St(e,l){const o=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===v.before))),a=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===v.after))),n=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.left))),r=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.right))),i=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.top))),u=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.bottom)));return{hasIcon:t.computed((()=>"string"==typeof(null==e?void 0:e.value)?{name:null==e?void 0:e.value}:null==e?void 0:e.value)),hasIconLeft:n,hasIconRight:r,hasIconTop:i,hasIconBottom:u,hasIconBefore:o,hasIconAfter:a}}const Vt=["for"],Bt={class:"vv-select__wrapper"},wt={key:0,class:"vv-select__input-before"},xt={class:"vv-select__inner"},Ct=["id"],_t=["disabled","hidden"],$t=["disabled","value"],Pt=["disabled","label"],Et=["disabled","value"],Nt={key:1,class:"vv-select__input-after"},Lt=t.defineComponent({name:"VvSelect",props:ht,emits:["update:modelValue","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvSelect",ht,a),i=t.ref(),{HintSlot:u,hasHintLabelOrSlot:s,hasInvalidLabelOrSlot:d,hintSlotScope:c}=et(r,n),{id:v,modifiers:p,disabled:m,readonly:f,loading:b,icon:g,iconPosition:y,invalid:h,valid:k,floating:S,multiple:V}=t.toRefs(a),B=xe(v),w=t.computed((()=>`${B.value}-hint`)),{focused:x}=kt(i,l),C=o.useElementVisibility(i);t.watch(C,(e=>{e&&a.autofocus&&(x.value=!0)}));const{hasIcon:_,hasIconBefore:$,hasIconAfter:P}=St(g,y),E=t.computed((()=>!ue(a.modelValue))),N=t.computed((()=>a.disabled||a.readonly)),L=t.computed((()=>N.value?-1:a.tabindex)),A=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),R=ve("vv-select",p,t.computed((()=>({valid:k.value,invalid:h.value,loading:b.value,disabled:m.value,readonly:f.value,"icon-before":$.value,"icon-after":P.value,dirty:E.value,focus:x.value,floating:S.value,multiple:V.value})))),O=t.computed((()=>({name:a.name,tabindex:L.value,disabled:N.value,required:a.required,size:a.size,autocomplete:a.autocomplete,multiple:a.multiple,"aria-invalid":A.value,"aria-describedby":s.value?w.value:void 0,"aria-errormessage":d.value?w.value:void 0}))),D=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue}))),{getOptionLabel:T,getOptionValue:z,isOptionDisabled:I,getOptionGrouped:M}=rt(a),H=t.computed({get:()=>a.modelValue,set:e=>{Array.isArray(e)&&(e=e.filter((e=>void 0!==e))),l("update:modelValue",e)}}),F=e=>"string"!=typeof e&&(e&&e.options&&e.options.length>0);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(R))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(B)},t.toDisplayString(e.label),9,Vt)):t.createCommentVNode("",!0),t.createElementVNode("div",Bt,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",wt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])):t.createCommentVNode("",!0),t.createElementVNode("div",xt,[t.unref($)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(_)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(B),ref_key:"select",ref:i,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(H)?H.value=e:null)},t.unref(O)),[e.placeholder?(t.openBlock(),t.createElementBlock("option",{key:0,value:void 0,disabled:!e.unselectable,hidden:!e.unselectable},t.toDisplayString(e.placeholder),9,_t)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,((e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[F(e)?(t.openBlock(),t.createElementBlock("optgroup",{key:`group-${l}`,disabled:t.unref(I)(e),label:t.unref(T)(e)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(M)(e),((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:`group-${l}-item-${o}`,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,Et)))),128))],8,Pt)):(t.openBlock(),t.createElementBlock("option",{key:l,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,$t))],64)))),256))],16,Ct),[[t.vModelSelect,t.unref(H)]]),t.unref(P)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(_)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Nt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(u),{id:t.unref(w),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"3"}:void 0]),1032,["id"])],2))}}),At=["id"],Rt=["id","for"],Ot=["id","aria-controls","placeholder"],Dt={key:0,class:"vv-select__input-before"},Tt={class:"vv-select__inner"},zt=["aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],It={key:0,class:"vv-select__value"},Mt=["aria-label","onClick"],Ht={key:1,class:"vv-select__input-after"},Ft={name:"VvCombobox",components:{VvDropdown:pt,VvDropdownOption:bt,VvDropdownOptgroup:yt,VvButton:Ge}},jt=t.defineComponent({...Ft,props:dt,emits:["update:modelValue","change:search","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvCombobox",dt,a),i=e=>"string"!=typeof e&&(e.options&&e.options.length>0),{HintSlot:u,hasHintLabelOrSlot:s,hasInvalidLabelOrSlot:d,hintSlotScope:c}=et(r,n),v=t.ref(null),p=t.ref(null),m=t.ref(null),{focused:f}=kt(v,l),{focused:g}=o.useFocusWithin(m);t.watch(f,(e=>{a.autoOpen&&(!e||k.value?e||!k.value||g.value||B():V())})),t.watch(g,(e=>{f.value||e||!k.value||B()}));const y=t.ref(""),h=o.refDebounced(y,t.computed((()=>Number(a.debounceSearch))));t.watch(h,(()=>l("change:search",h.value)));const k=t.ref(!1),S=()=>{a.disabled||a.readonly||(k.value=!k.value)},V=()=>{a.disabled||a.readonly||k.value||(k.value=!0)},B=()=>{a.disabled||a.readonly||!k.value||(k.value=!1)},w=()=>{r.value.searchable&&p.value&&p.value.focus({preventScroll:!0})},x=()=>{r.value.searchable&&(y.value="")},{id:C,icon:_,iconPosition:$,modifiers:P,disabled:E,readonly:N,loading:L,valid:A,invalid:R,floating:O}=t.toRefs(a),D=xe(C),T=t.computed((()=>`${D.value}-hint`)),z=t.computed((()=>`${D.value}-dropdown`)),I=t.computed((()=>`${D.value}-search`)),M=t.computed((()=>`${D.value}-label`)),H=t.ref(!1),F=t.computed((()=>H.value||L.value)),j=t.ref(),{hasIcon:G,hasIconBefore:U,hasIconAfter:W}=St(_,$),K=t.computed((()=>!ue(a.modelValue))),q=t.computed((()=>E.value||N.value?-1:a.tabindex)),X=ve("vv-select",P,t.computed((()=>({disabled:E.value,loading:F.value,readonly:N.value,"icon-before":Boolean(U.value),"icon-after":Boolean(W.value),valid:A.value,invalid:R.value,dirty:K.value,focus:f.value,floating:O.value,badges:a.badges})))),{getOptionLabel:J,getOptionValue:Y,getOptionGrouped:Q,isOptionDisabled:Z}=rt(a),ee=o.computedAsync((async()=>{var e;if(r.value.searchFunction){H.value=!0;const e=await Promise.resolve(r.value.searchFunction(h.value,a.options));return H.value=!1,e}return null==(e=a.options)?void 0:e.filter((e=>J(e).toLowerCase().includes(h.value.toLowerCase().trim())))}));function te(e){return Array.isArray(a.modelValue)?ie(e,a.modelValue)||ie(Y(e),a.modelValue):ae(e,a.modelValue)||ae(Y(e),a.modelValue)}const le=t.computed((()=>a.options.reduce(((e,t)=>i(t)?[...e,...Q(t)]:[...e,t]),[]).filter((e=>te(e))))),oe=t.computed((()=>le.value.map((e=>J(e))).join(a.separator))),ne=()=>{a.autoOpen?V():S()},re=e=>{var t;if(a.disabled||a.readonly)return;const o=Y(e);let n=o;if(a.multiple)if(Array.isArray(a.modelValue)){const e=Number(a.maxValues);if(void 0!==a.maxValues&&e>=0&&(null==(t=a.modelValue)?void 0:t.length)>=e&&!ie(o,a.modelValue))return;n=ie(o,a.modelValue)?se(o,a.modelValue):[...a.modelValue,o]}else n=[o];else a.keepOpen||B(),Array.isArray(a.modelValue)?n=a.unselectable&&a.modelValue.includes(o)?[]:[o]:a.unselectable&&o===a.modelValue&&(n=void 0);l("update:modelValue",n)},de=t.computed((()=>({id:D.value,name:a.name,tabindex:q.value,valid:A.value,validLabel:r.value.validLabel,invalid:R.value,invalidLabel:r.value.invalidLabel,hintLabel:r.value.hintLabel,loading:F.value,loadingLabel:r.value.loadingLabel,disabled:E.value,readonly:N.value,modifiers:r.value.modifiers,options:r.value.options,labelKey:r.value.labelKey,valueKey:r.value.valueKey,icon:r.value.icon,iconPosition:r.value.iconPosition,floating:r.value.floating,unselectable:r.value.unselectable,multiple:r.value.multiple,label:r.value.label,placeholder:r.value.placeholder,modelValue:a.modelValue}))),ce=t.computed((()=>({id:z.value,reference:m.value,placement:r.value.placement,strategy:r.value.strategy,transitionName:r.value.transitionName,offset:r.value.offset,shift:r.value.shift,flip:r.value.flip,autoPlacement:r.value.autoPlacement,arrow:r.value.arrow,autofocusFirst:!!r.value.searchable||r.value.autofocusFirst,triggerWidth:r.value.triggerWidth,modifiers:r.value.dropdownModifiers}))),pe=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue})));return o.onKeyStroke([" ","Enter"],(e=>{a.autoOpen||!k.value&&f.value&&(e.preventDefault(),e.stopImmediatePropagation(),S())}),{target:v}),(e,o)=>e.native?(t.openBlock(),t.createBlock(Lt,t.mergeProps({key:1},t.unref(de),{"onUpdate:modelValue":o[3]||(o[3]=e=>l("update:modelValue",e))}),null,16)):(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(D),class:t.normalizeClass(t.unref(X))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:t.unref(M),for:t.unref(r).searchable?t.unref(I):void 0},t.toDisplayString(e.label),9,Rt)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:m,class:"vv-select__wrapper"},[t.createVNode(pt,t.mergeProps({ref_key:"dropdownEl",ref:j,modelValue:t.unref(k),"onUpdate:modelValue":o[2]||(o[2]=e=>t.isRef(k)?k.value=e:null)},t.unref(ce),{role:t.unref(b).listbox,onAfterExpand:w,onAfterCollapse:x}),t.createSlots({default:t.withCtx((({aria:l})=>[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Dt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(pe))))])):t.createCommentVNode("",!0),t.createElementVNode("div",Tt,[t.unref(U)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(G)),null,16)):t.createCommentVNode("",!0),t.createElementVNode("div",t.mergeProps({ref_key:"inputEl",ref:v},l,{class:"vv-select__input",role:"combobox","aria-expanded":t.unref(k),"aria-labelledby":t.unref(M),"aria-describedby":t.unref(s)?t.unref(T):void 0,"aria-errormessage":t.unref(d)?t.unref(T):void 0,tabindex:t.unref(q),onClickPassive:ne}),[t.renderSlot(e.$slots,"value",t.normalizeProps(t.guardReactiveProps({selectedOptions:t.unref(le),onInput:re})),(()=>[t.unref(oe)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.badges?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(le),((l,o)=>(t.openBlock(),t.createBlock(De,{key:o,modifiers:e.badgeModifiers,class:"vv-select__badge"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(t.unref(J)(l))+" ",1),!e.unselectable||t.unref(N)||t.unref(E)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,"aria-label":t.unref(r).deselectActionLabel,type:"button",onClick:t.withModifiers((e=>re(l)),["stop"])},[t.createVNode(we,{name:"close"})],8,Mt))])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock("div",It,t.toDisplayString(t.unref(oe)),1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,zt),t.unref(W)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(G)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Ht,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(pe))))])):t.createCommentVNode("",!0)])),items:t.withCtx((()=>{var l;return[!t.unref(E)&&(null==(l=t.unref(ee))?void 0:l.length)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(ee),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[i(l)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(yt,{label:t.unref(J)(l)},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Q)(l),((o,a)=>(t.openBlock(),t.createBlock(bt,t.mergeProps({selected:te(o),disabled:t.unref(Z)(o),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{key:a,class:"vv-dropdown-option",onClickPassive:e=>re(o)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(le),selected:te(o),disabled:t.unref(Z)(o)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(J)(o)),1)]))])),_:2},1040,["onClickPassive"])))),128))],64)):(t.openBlock(),t.createBlock(bt,t.mergeProps({key:1},{selected:te(l),disabled:t.unref(Z)(l),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{class:"vv-dropdown-option",onClickPassive:e=>re(l)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(le),selected:te(l),disabled:t.unref(Z)(l)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(J)(l)),1)]))])),_:2},1040,["onClickPassive"]))],64)))),128)):e.options.length?t.unref(E)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(bt,{key:2,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-results",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noResultsLabel),1)]))])),_:3})):(t.openBlock(),t.createBlock(bt,{key:1,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-options",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noOptionsLabel),1)]))])),_:3}))]})),after:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::after",{},(()=>{var e;return[(null==(e=t.unref(j))?void 0:e.customPosition)?(t.openBlock(),t.createBlock(Ge,{key:0,label:t.unref(r).closeLabel,modifiers:"secondary",onClick:o[1]||(o[1]=e=>t.unref(j).hide())},null,8,["label"])):t.createCommentVNode("",!0)]}))])),_:2},[t.unref(r).searchable||e.$slots["dropdown::before"]?{name:"before",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::before"),t.unref(r).searchable&&!t.unref(E)?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(I),ref_key:"inputSearchEl",ref:p,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(y)?y.value=e:null),"aria-autocomplete":"list","aria-controls":t.unref(z),autocomplete:"off",spellcheck:"false",type:"search",class:"vv-dropdown__search",placeholder:t.unref(r).searchPlaceholder},null,8,Ot)),[[t.vModelText,t.unref(y)]]):t.createCommentVNode("",!0)])),key:"0"}:void 0]),1040,["modelValue","role"])],512),t.createVNode(t.unref(u),{id:t.unref(T),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"3"}:void 0]),1032,["id"])],10,At))}}),Gt={...q,title:String,modelValue:{type:Boolean,default:void 0},transition:{type:String,default:"fade-block"},size:String,keepOpen:{type:Boolean,default:!1}},Ut=["onCancel"],Wt={key:0,class:"vv-dialog__header"},Kt={class:"vv-dialog__content"},qt={key:1,class:"vv-dialog__footer"},Xt=t.defineComponent({name:"VvDialog",props:Gt,emits:["open","close","update:modelValue","before-enter","after-leave","enter","after-enter","enter-cancelled","before-leave","leave","leave-cancelled"],setup(e,{expose:l,emit:a}){const n=e,r=t.ref(),i=o.useVModel(n,"modelValue",a),u=t.ref(!1),s=t.computed({get:()=>i.value??u.value,set:e=>{void 0!==i.value?i.value=e:u.value=e}}),d=t.ref(null),c=t.computed((()=>{const{id:e}=n;return{id:e}})),v=t.computed((()=>n.size?["vv-dialog",`vv-dialog--${n.size}`]:"vv-dialog")),p=t.computed((()=>`vv-dialog--${n.transition}`)),m={"before-enter":()=>{var e,t;(null==(e=r.value)?void 0:e.open)||null==(t=r.value)||t.showModal(),a("open"),a("before-enter")},"after-leave":()=>{var e,t;(null==(e=r.value)?void 0:e.open)&&(null==(t=r.value)||t.close()),a("close"),a("after-leave")},enter:()=>{a("enter")},"after-enter":()=>{a("after-enter")},"enter-cancelled":()=>{a("enter-cancelled")},"before-leave":()=>{a("before-leave")},leave:()=>{a("leave")},"leave-cancelled":()=>{a("leave-cancelled")}};function f(){s.value=!1}o.onClickOutside(d,(()=>{n.keepOpen||f()})),l({close:f,open:function(){s.value=!0}});const b=()=>{n.keepOpen||f()};return(e,l)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(p)},t.toHandlers(m)),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("dialog",t.mergeProps(t.unref(c),{ref_key:"dialogEl",ref:r,class:t.unref(v),onCancel:t.withModifiers(b,["stop","prevent"])}),[t.createElementVNode("article",{ref_key:"modalWrapper",ref:d,class:"vv-dialog__wrapper"},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",Wt,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClickPassive:f},[t.createVNode(we,{name:"close"})],32)]))])):t.createCommentVNode("",!0),t.createElementVNode("div",Kt,[t.renderSlot(e.$slots,"default")]),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",qt,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],512)],16,Ut),[[t.vShow,t.unref(s)]])])),_:3},16,["name"]))}}),Jt={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},Yt="eye-on",Qt="eye-off",Zt="calendar",el="time",tl="color",ll="close",ol={...Z,modelValue:[String,Number],type:{type:String,default:Jt.TEXT,validator:e=>Object.values(Jt).includes(e)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:Yt},iconHidePassword:{type:String,default:Qt},iconClear:{type:String,default:ll},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"},iMask:{type:Object,default:void 0},masked:{type:String,default:void 0},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String},selectOnFocus:{type:Boolean,default:!1}},al=t.defineComponent({components:{VvIcon:we},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:Yt},iconHide:{type:String,default:Qt}},emits:["toggle-password"],setup(e,{emit:l}){const o=t.ref(!1),a=t.computed((()=>o.value?e.iconHide:e.iconShow));return{active:o,activeIcon:a,onClick:function(t){null==t||t.stopPropagation(),e.disabled||(o.value=!o.value,l("toggle-password",o.value))}}},render(){const e=t.h(we,{name:this.activeIcon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},e)}}),nl=t.defineComponent({components:{VvIcon:we},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:e=>["up","down"].includes(e),default:"up"}},emits:["step-up","step-down"],setup(e,{emit:l}){const o=t.computed((()=>"up"===e.mode));return{isUp:o,onClick:t=>{null==t||t.stopPropagation(),e.disabled||l(o.value?"step-up":"step-down")}}},render(){return t.h("button",{class:["vv-input-text__action vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}}),rl=t.defineComponent({components:{VvIcon:we},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup:(e,{emit:t})=>({onClick:function(l){null==l||l.stopPropagation(),e.disabled||t("clear")}}),render(){const e=t.h(we,{name:this.icon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},e)}});function il(e,l){return{name:"VvInputTextActions",components:{VvIcon:we,VvInputPasswordAction:al,VvInputStepAction:nl,VvInputClearAction:rl},setup:()=>({isDisabled:t.computed((()=>l.disabled||l.readonly)),labelStepUp:l.labelStepUp,labelStepDown:l.labelStepDown,labelShowPassword:l.labelShowPassword,labelHidePassword:l.labelHidePassword,labelClear:l.labelClear,iconShowPassword:l.iconShowPassword,iconHidePassword:l.iconHidePassword}),render(){let o=null;switch(e){case Jt.SEARCH:{const{onClear:e}=this.$attrs;o=[t.h(rl,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:e})];break}case Jt.PASSWORD:{const{onTogglePassword:e}=this.$attrs;o=[t.h(al,{disabled:this.isDisabled,onTogglePassword:e,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case Jt.NUMBER:{const{onStepUp:e,onStepDown:a}=this.$attrs;o=[t.h(nl,{mode:"up",disabled:this.isDisabled||void 0!==l.max&&l.modelValue===l.max,label:this.labelStepUp,onStepUp:e,onStepDown:a}),t.h(nl,{mode:"down",disabled:this.isDisabled||void 0!==l.min&&l.modelValue===l.min,label:this.labelStepDown,onStepUp:e,onStepDown:a})];break}}return Array.isArray(o)?t.h("div",{class:"vv-input-text__actions-group"},o):o}}}function ul(e,l,o=0,{getter:a=(e=>e),setter:n=(e=>e)}={}){let r;return"string"==typeof o&&(o=parseInt(o)),t.computed({get:()=>a(null==e?void 0:e.value),set:e=>{r&&clearTimeout(r),r=setTimeout((()=>{l("update:modelValue",n(e))}),o)}})}function sl(e,l){const o=t.computed((()=>(t.unref(e)??"").length)),a=t.computed((()=>void 0!==(null==l?void 0:l.lowerLimit)&&o.value<(null==l?void 0:l.lowerLimit)?o.value-l.lowerLimit:void 0!==(null==l?void 0:l.upperLimit)&&o.value<(null==l?void 0:l.upperLimit)?l.upperLimit-o.value:0)),n=t.computed((()=>{if(!1===(null==l?void 0:l.mode))return"";if("limit"===(null==l?void 0:l.mode)&&(null==l?void 0:l.upperLimit))return`${o.value} / ${l.lowerLimit?`${l.lowerLimit}-`:""}${l.upperLimit}`;if("countdown"===(null==l?void 0:l.mode)){if(0===a.value)return;return a}return o.value}));return{length:o,gap:a,formatted:n}}const dl=["for"],cl={class:"vv-input-text__wrapper"},vl={key:0,class:"vv-input-text__input-before"},pl=["onClick"],ml=["id"],fl={key:1,class:"vv-input-text__unit"},bl={key:5,class:"vv-input-text__input-after"},gl={key:6,class:"vv-input-text__limit"},yl=t.defineComponent({name:"VvInputText",props:ol,emits:["update:modelValue","update:masked","accept","accept:typed","accept:masked","accept:unmasked","complete","complete:typed","complete:masked","complete:unmasked","focus","blur","keyup","keydown","keypress"],setup(e,{expose:l,emit:a}){const n=e,r=t.useSlots(),i=tt("VvInputText",ol,n),{id:s,icon:d,iconPosition:c,label:v,modelValue:p,count:m,valid:f,invalid:b,loading:g,debounce:y,maxlength:h,minlength:k,type:S,iMask:V,step:B}=t.toRefs(n),w=xe(s),x=t.computed((()=>`${w.value}-hint`)),C=t.computed((()=>n.floating&&ue(n.placeholder)?" ":n.placeholder)),_=t.ref(!1),{el:$,mask:P,typed:E,masked:N,unmasked:L}=u.useIMask(t.computed((()=>(null==V?void 0:V.value)??{mask:/./})),{emit:a,onAccept:()=>{if(_.value){if(a("update:masked",N.value),S.value===Jt.NUMBER){if(""===N.value){if(null===O.value||void 0===O.value)return;return void(O.value=void 0)}return"number"!=typeof E.value?void(O.value=Number(E.value)):void(O.value=E.value)}if(S.value===Jt.DATE){if($.value instanceof HTMLInputElement&&"date"===$.value.type)return void(O.value=$.value.value);let e=E.value;if(null===e||""===e){if(!O.value)return;return void(O.value="")}return e instanceof Date||(e=new Date(e)),void(O.value=`${e.getFullYear()}-${("0"+(e.getMonth()+1)).slice(-2)}-${("0"+e.getDate()).slice(-2)}`)}if(S.value===Jt.DATETIME_LOCAL){if($.value instanceof HTMLInputElement&&"datetime-local"===$.value.type)return void(O.value=$.value.value);let e=E.value;if(null===e||""===e){if(!O.value)return;return void(O.value="")}return E.value instanceof Date||(e=new Date(e)),void(O.value=`${e.getFullYear()}-${("0"+(e.getMonth()+1)).slice(-2)}-${("0"+e.getDate()).slice(-2)}T${("0"+e.getHours()).slice(-2)}:${("0"+e.getMinutes()).slice(-2)}`)}(O.value||L.value)&&(O.value=L.value)}}});t.onMounted((()=>{P.value&&(_.value=!0,E.value=O.value??"")})),t.watch((()=>n.modelValue),(e=>{var t;P.value&&(E.value=e&&(null==(t=null==V?void 0:V.value)?void 0:t.mask)===Date?new Date(e):e??"")})),t.watch((()=>n.masked),(e=>{N.value=e??""}));const A=$,R=t.ref();l({$inner:R});const O=ul(p,a,(null==y?void 0:y.value)??0),{focused:D}=kt(A,a),T=t.computed((()=>D.value&&!n.disabled&&!n.readonly));t.watch(T,(e=>{e&&i.value.selectOnFocus&&A.value&&A.value.select()}));const z=o.useElementVisibility(A);t.watch(z,(e=>{e&&n.autofocus&&!n.disabled&&!n.readonly&&(D.value=!0)}));const I=t.ref(!1),M=t.computed((()=>n.type===Jt.PASSWORD)),H=()=>{I.value=!I.value},F=t.computed((()=>n.type===Jt.TIME||n.type===Jt.DATETIME_LOCAL||n.type===Jt.DATE||n.type===Jt.WEEK||n.type===Jt.MONTH)),j=t.computed((()=>n.type===Jt.NUMBER)),G=()=>{if(Z.value){if(null==V?void 0:V.value)return void(E.value=E.value+Number((null==B?void 0:B.value)??1));A.value.stepUp(),O.value=t.unref(A).value}},U=()=>{if(Z.value){if(null==V?void 0:V.value)return void(E.value=E.value-Number((null==B?void 0:B.value)??1));A.value.stepDown(),O.value=t.unref(A).value}},W=t.computed((()=>n.type===Jt.SEARCH)),K=()=>{O.value=""},{hasIcon:q,hasIconBefore:X,hasIconAfter:J}=St(d,c),Y=t.computed((()=>{switch(n.type){case Jt.COLOR:return{name:tl};case Jt.DATE:case Jt.DATETIME_LOCAL:case Jt.WEEK:case Jt.MONTH:return{name:Zt};case Jt.TIME:return{name:el};default:return""}})),{formatted:Q}=sl(O,{mode:m.value,upperLimit:Number(null==h?void 0:h.value),lowerLimit:Number(null==k?void 0:k.value)}),Z=t.computed((()=>!n.disabled&&!n.readonly)),ee=t.computed((()=>Z.value?n.tabindex:-1)),te=t.computed((()=>!ue(p))),le=t.computed((()=>!0===b.value||!0!==f.value&&void 0)),{modifiers:oe}=t.toRefs(n),ae=ve("vv-input-text",oe,t.computed((()=>({valid:f.value,invalid:b.value,loading:g.value,disabled:n.disabled,readonly:n.readonly,"icon-before":X.value,"icon-after":J.value||!ue(Y),floating:n.floating&&!ue(n.label),dirty:te.value,focus:T.value,"auto-width":n.autoWidth})))),ne=t.computed((()=>{const e=M.value&&I.value?Jt.TEXT:!F.value||te.value||D.value?(null==V?void 0:V.value)?Jt.TEXT:n.type:Jt.TEXT,t={type:e,name:n.name,tabindex:ee.value,disabled:n.disabled,readonly:n.readonly,required:n.required,autocomplete:n.autocomplete,"aria-invalid":le.value,"aria-describedby":se.value?x.value:void 0,"aria-errormessage":de.value?x.value:void 0};return e!==Jt.DATE&&e!==Jt.MONTH&&e!==Jt.WEEK&&e!==Jt.TIME&&e!==Jt.DATETIME_LOCAL&&e!==Jt.NUMBER||(t.step=n.step,t.max=void 0!==n.max?String(n.max):void 0,t.min=void 0!==n.min?String(n.min):void 0),e!==Jt.TEXT&&e!==Jt.SEARCH&&e!==Jt.URL&&e!==Jt.TEL&&e!==Jt.EMAIL&&e!==Jt.PASSWORD&&e!==Jt.NUMBER||(t.placeholder=C.value),e!==Jt.TEXT&&e!==Jt.SEARCH&&e!==Jt.URL&&e!==Jt.TEL&&e!==Jt.EMAIL&&e!==Jt.PASSWORD||(t.minlength=n.minlength,t.maxlength=n.maxlength,t.pattern=n.pattern),e===Jt.EMAIL&&(t.multiple=n.multiple),t})),re=t.computed((()=>({valid:n.valid,invalid:n.invalid,modelValue:n.modelValue,togglePassword:H,stepUp:G,stepDown:U,clear:K}))),{HintSlot:ie,hasHintLabelOrSlot:se,hasInvalidLabelOrSlot:de,hintSlotScope:ce}=et(i,r),pe=il(Jt.PASSWORD,n),me=il(Jt.NUMBER,n),fe=il(Jt.SEARCH,n),be=()=>{Z.value&&(D.value=!0)},ge=t.computed((()=>{if(n.autoWidth)return{width:void 0!==O.value?`${String(O.value).length+1}ch`:void 0}})),ye=e=>{switch(e.code){case"ArrowUp":j.value&&(G(),e.preventDefault());break;case"ArrowDown":j.value&&(U(),e.preventDefault())}a("keydown",e)};return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(ae))},[t.unref(v)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(w),class:"vv-input-text__label"},t.toDisplayString(t.unref(v)),9,dl)):t.createCommentVNode("",!0),t.createElementVNode("div",cl,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",vl,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(re))))])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"innerEl",ref:R,class:"vv-input-text__inner",onClick:t.withModifiers(be,["stop"])},[t.unref(X)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-input-text__icon"},t.unref(q)),null,16)):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(w),ref_key:"inputEl",ref:A},t.unref(ne),{style:t.unref(ge),onKeyup:l[0]||(l[0]=e=>a("keyup",e)),onKeydown:ye,onKeypress:l[1]||(l[1]=e=>a("keypress",e))}),null,16,ml),(e.unit||e.$slots.unit)&&t.unref(te)?(t.openBlock(),t.createElementBlock("div",fl,[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(t.unref(re))),(()=>[t.createTextVNode(t.toDisplayString(e.unit),1)]))])):t.createCommentVNode("",!0)],8,pl),t.unref(J)||t.unref(Y)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-input-text__icon vv-input-text__icon-after"},t.unref(J)?t.unref(q):t.unref(Y)),null,16)):t.unref(M)&&!e.hideActions&&t.unref(Z)?(t.openBlock(),t.createBlock(t.unref(pe),{key:2,onTogglePassword:H})):t.unref(j)&&!e.hideActions&&t.unref(Z)?(t.openBlock(),t.createBlock(t.unref(me),{key:3,onStepUp:G,onStepDown:U})):t.unref(W)&&!e.hideActions&&t.unref(Z)?(t.openBlock(),t.createBlock(t.unref(fe),{key:4,onClear:K})):t.createCommentVNode("",!0),e.$slots.after?(t.openBlock(),t.createElementBlock("div",bl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(re))))])):t.createCommentVNode("",!0),t.unref(m)?(t.openBlock(),t.createElementBlock("span",gl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(re))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(Q)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(ie),{id:t.unref(x),class:"vv-input-text__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"3"}:void 0]),1032,["id"])],2))}}),hl={...I,...oe},kl={class:"vv-nav__item",role:"presentation"},Sl=t.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:e=>(e,l)=>(t.openBlock(),t.createElementBlock("li",kl,[t.createVNode(Ve,t.mergeProps(e.$attrs,{class:"vv-nav__item-label"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16)]))}),Vl=["onClick"],Bl=t.defineComponent({__name:"VvNav",props:hl,emits:["click"],setup(e,{emit:l}){const o=e,{modifiers:a}=t.toRefs(o),n=e=>{var t;const a=e.target;if(null==a?void 0:a.dataset.index){const e=parseInt(a.dataset.index),n=null==(t=o.items)?void 0:t[e];if(!n||(null==n?void 0:n.disabled))return;l("click",n)}},r=ve("vv-nav",a);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(r))},[t.createElementVNode("ul",{class:"vv-nav__menu",role:"menu","aria-busy":"true",onClick:t.withModifiers(n,["stop"])},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(({on:e={},...l},o)=>(t.openBlock(),t.createBlock(Sl,t.mergeProps({key:o,"data-index":o},l,t.toHandlers(e)),null,16,["data-index"])))),128))]))],8,Vl)],2))}}),wl={...I,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},xl=t.defineComponent({name:"VvProgress",props:wl,setup(e){const l=e,{value:o,max:a,label:n}=t.toRefs(l),r=t.computed((()=>void 0===l.value)),{modifiers:i}=t.toRefs(l),u=ve("vv-progress",i,t.computed((()=>({indeterminate:r.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("progress",t.mergeProps({role:"progressbar"},{class:t.unref(u),ariaLabel:t.unref(n),max:t.unref(a),value:t.unref(o)}),null,16))}}),Cl=ee;const _l=["for"],$l=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Pl=t.defineComponent({name:"VvRadio",props:Cl,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),n=tt("VvRadio",Cl,o),{id:r,disabled:i,readonly:u,modelValue:s,valid:d,invalid:c}=function(e,l){const{id:o}=t.toRefs(e),{group:a,isInGroup:n,getGroupOrLocalRef:r}=de(S),i=r("modelValue",e,l),u=r("valid",e),s=r("invalid",e),d=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==a?void 0:a.value)?void 0:t.readonly.value))})),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==a?void 0:a.value)?void 0:t.disabled.value))}));return{id:o,group:a,isInGroup:n,modelValue:i,valid:u,invalid:s,readonly:d,disabled:c}}(o,l),v=xe(r),p=t.computed((()=>`${v.value}-hint`)),m=t.computed((()=>b.value?-1:o.tabindex)),f=t.ref(),b=t.computed((()=>i.value||u.value)),g=t.computed((()=>!0===c.value||!0!==d.value&&void 0)),y=t.computed((()=>Array.isArray(s.value)?ie(o.value,s.value):ae(o.value,s.value))),h=t.computed((()=>!["string","number","boolean"].includes(typeof o.value)||o.value)),k=t.computed({get:()=>y.value?h.value:null,set(e){Array.isArray(s.value)?s.value=[o.value]:s.value=o.value,l("change",e)}}),{modifiers:V}=t.toRefs(o),B=ve("vv-radio",V,t.computed((()=>({valid:d.value,invalid:c.value,disabled:i.value,readonly:u.value})))),{HintSlot:w,hasHintLabelOrSlot:x,hasInvalidLabelOrSlot:C,hintSlotScope:_}=et(n,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(B)),for:t.unref(v)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(v),ref_key:"input",ref:f,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(k)?k.value=e:null),type:"radio",class:"vv-radio__input",name:e.name,disabled:t.unref(b),value:t.unref(h),tabindex:t.unref(m),"aria-invalid":t.unref(g),"aria-describedby":t.unref(x)?t.unref(p):void 0,"aria-errormessage":t.unref(C)?t.unref(p):void 0},null,8,$l),[[t.vModelRadio,t.unref(k)]]),t.renderSlot(e.$slots,"default",{value:t.unref(s)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(w),{id:t.unref(p),class:"vv-radio__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"3"}:void 0]),1032,["id"])],10,_l))}}),El=te,Nl=["textContent"],Ll={class:"vv-radio-group__wrapper"},Al=t.defineComponent({name:"VvRadioGroup",props:El,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvRadioGroup",El,a),i=o.useVModel(a,"modelValue",l),{disabled:u,readonly:s,vertical:d,valid:c,invalid:v,modifiers:p}=t.toRefs(a);ye({key:S,modelValue:i,disabled:u,readonly:s,valid:c,invalid:v});const{getOptionLabel:m,getOptionValue:f}=rt(a),b=ve("vv-radio-group",p,t.computed((()=>({disabled:u.value,readonly:s.value,horizontal:!d.value,valid:c.value,invalid:v.value})))),{HintSlot:g,hintSlotScope:y}=et(r,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(b))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,Nl)):t.createCommentVNode("",!0),t.createElementVNode("div",Ll,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Pl,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:m(e),value:f(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(g),{class:"vv-radio-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"3"}:void 0]),1024)],2))}}),Rl={...I,navModifiers:{type:[String,Array]},modelValue:{type:String,default:""},items:{type:Array,default:()=>[]}},Ol=t.defineComponent({__name:"VvTab",props:Rl,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,{modifiers:a,items:n}=t.toRefs(o),r=t.computed((()=>n.value.reduce(((e,t)=>(t.tab&&e.push(t.tab),e)),[]))),i=t.ref(),u=t.computed({get:()=>{var e;return o.modelValue||i.value||(null==(e=r.value)?void 0:e[0])},set:e=>{i.value=e,l("update:modelValue",e)}}),s=t.computed((()=>{var e;return["tabs",...Array.isArray(o.navModifiers)?o.navModifiers:(null==(e=o.navModifiers)?void 0:e.split(" "))??[]]})),d=e=>{e.tab&&(u.value=e.tab)},c=t.computed((()=>o.items.map((e=>({current:e.tab===u.value,...e}))))),v=ve("vv-tab",a);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(v))},[t.createVNode(Bl,t.mergeProps({items:t.unref(c),modifiers:t.unref(s)},{onClick:d}),null,16),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[l.tab?(t.openBlock(),t.createElementBlock("article",{key:0,class:t.normalizeClass([{target:t.unref(u)===l.tab},"vv-tab__panel"])},[t.renderSlot(e.$slots,`panel::${l.tab}`)],2)):t.createCommentVNode("",!0)],64)))),128))],2))}}),Dl={...Z,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:"soft"},spellcheck:{type:[Boolean,String],default:"default"},resizable:Boolean},Tl=["for"],zl={class:"vv-textarea__wrapper"},Il={key:0,class:"vv-textarea__input-before"},Ml={class:"vv-textarea__inner"},Hl=["id"],Fl={key:1,class:"vv-textarea__input-after"},jl={key:2,class:"vv-textarea__limit"},Gl=t.defineComponent({name:"VvTextarea",props:Dl,emits:["update:modelValue","focus","blur","keyup"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvTextarea",Dl,a),i=t.ref(),{id:u,icon:s,iconPosition:d,label:c,modelValue:v,count:p,valid:m,invalid:f,loading:b,modifiers:g,debounce:y,minlength:h,maxlength:k}=t.toRefs(a),S=xe(u),V=t.computed((()=>`${S.value}-hint`)),B=t.computed((()=>a.floating&&ue(a.placeholder)?" ":a.placeholder)),w=ul(v,l,null==y?void 0:y.value),{hasIcon:x,hasIconBefore:C,hasIconAfter:_}=St(s,d),{focused:$}=kt(i,l),P=o.useElementVisibility(i);t.watch(P,(e=>{e&&a.autofocus&&($.value=!0)}));const{formatted:E}=sl(w,{mode:null==p?void 0:p.value,upperLimit:Number(null==k?void 0:k.value),lowerLimit:Number(null==h?void 0:h.value)}),N=t.computed((()=>!a.disabled&&!a.readonly)),L=t.computed((()=>N.value?a.tabindex:-1)),A=t.computed((()=>!ue(v))),R=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:O,hasHintLabelOrSlot:D,hasInvalidLabelOrSlot:T,hintSlotScope:z}=et(r,n),I=ve("vv-textarea",g,t.computed((()=>({valid:m.value,invalid:f.value,loading:b.value,disabled:a.disabled,readonly:a.readonly,"icon-before":C.value,"icon-after":_.value,floating:a.floating&&!ue(a.label),dirty:A.value,focused:$.value,resizable:a.resizable})))),M=t.computed((()=>({name:a.name,placeholder:B.value,tabindex:L.value,disabled:a.disabled,readonly:a.readonly,required:a.required,autocomplete:a.autocomplete,minlength:a.minlength,maxlength:a.maxlength,cols:a.cols,rows:a.rows,wrap:a.wrap,spellcheck:a.spellcheck,"aria-invalid":R.value,"aria-describedby":D.value?V.value:void 0,"aria-errormessage":T.value?V.value:void 0}))),H=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue,hintLabel:a.hintLabel,maxlength:a.maxlength,minlength:a.minlength,clear:F}))),F=()=>{w.value=void 0};return(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(I))},[t.unref(c)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(S),class:"vv-textarea__label"},t.toDisplayString(t.unref(c)),9,Tl)):t.createCommentVNode("",!0),t.createElementVNode("div",zl,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Il,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(H))))])):t.createCommentVNode("",!0),t.createElementVNode("div",Ml,[t.unref(C)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-textarea__icon"},t.unref(x)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(S),ref_key:"textarea",ref:i,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(w)?w.value=e:null)},t.unref(M),{onKeyup:o[1]||(o[1]=e=>l("keyup",e))}),null,16,Hl),[[t.vModelText,t.unref(w)]]),t.unref(_)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-textarea__icon vv-textarea__icon-after"},t.unref(x)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Fl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(H))))])):t.createCommentVNode("",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("span",jl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(H))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(E)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(O),{id:t.unref(V),class:"vv-textarea__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"3"}:void 0]),1032,["id"])],2))}}),Ul={...I,position:{type:String,default:d.bottom},value:{type:String}},Wl=t.defineComponent({__name:"VvTooltip",props:Ul,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-tooltip",o,t.computed((()=>({[l.position]:!0}))));return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"tooltip",inert:""},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}});e.VvAccordion=be,e.VvAccordionGroup=he,e.VvAction=Ve,e.VvAlert=Re,e.VvBadge=De,e.VvBreadcrumb=Me,e.VvButton=Ge,e.VvButtonGroup=We,e.VvCard=Ye,e.VvCheckbox=at,e.VvCheckboxGroup=st,e.VvCombobox=jt,e.VvDialog=Xt,e.VvDropdown=pt,e.VvIcon=we,e.VvInputText=yl,e.VvNav=Bl,e.VvProgress=xl,e.VvRadio=Pl,e.VvRadioGroup=Al,e.VvSelect=Lt,e.VvTab=Ol,e.VvTextarea=Gl,e.VvTooltip=Wl,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@vueuse/core"),require("mitt"),require("@iconify/vue"),require("ts-dot-prop"),require("@floating-ui/vue"),require("vuedraggable"),require("vue-imask")):"function"==typeof define&&define.amd?define(["exports","vue","@vueuse/core","mitt","@iconify/vue","ts-dot-prop","@floating-ui/vue","vuedraggable","vue-imask"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).components={},e.vue,e.core,e.mitt,e.vue$1,e.tsDotProp,e.vue$2,e.Sortable,e.vueImask)}(this,(function(e,t,l,o,a,n,r,i,u){"use strict";var s=(e=>(e.local="local",e.session="session",e))(s||{}),d=(e=>(e.absolute="absolute",e.fixed="fixed",e))(d||{}),c=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(c||{}),v=(e=>(e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end",e))(v||{}),p=(e=>(e.before="before",e.after="after",e))(p||{}),f=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(f||{}),m=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(m||{}),g=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(g||{}),b=(e=>(e.listbox="listbox",e.menu="menu",e))(b||{}),y=(e=>(e.option="option",e.presentation="presentation",e))(y||{}),h=(e=>(e.alert="alert",e.alertdialog="alertdialog",e))(h||{});const k=Symbol.for("volver"),S=Symbol.for("buttonGroup"),B=Symbol.for("radioGroup"),V=Symbol.for("checkGroup"),w=Symbol.for("accordionGroup"),x=Symbol.for("dropdownTrigger"),C=Symbol.for("dropdownItem"),_=Symbol.for("dropdownAction"),$=Symbol.for("alertGroup"),E={to:{type:[String,Object]},href:String,target:String,rel:{type:String,default:"noopener noreferrer"}},P={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},N={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},A={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},L={disabled:{type:Boolean,default:!1}},R={selected:{type:Boolean,default:!1}},O={active:{type:Boolean,default:!1}},D={current:{type:Boolean,default:!1}},T={pressed:{type:Boolean,default:!1}},z={label:{type:[String,Number],default:void 0}},I={readonly:{type:Boolean,default:!1}},M={modifiers:{type:[String,Array],default:void 0}},H={hintLabel:{type:String,default:""}},F={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},j={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},U={debounce:{type:[Number,String],default:void 0}},G={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:p.before,validation:e=>Object.values(p).includes(e)}},K={tabindex:{type:[String,Number],default:0}},W={floating:{type:Boolean,default:!1}},q={unselectable:{type:Boolean,default:!0}},J={id:[String,Number]},X={placement:{type:String,default:c.bottom,validator:e=>Object.values(c).includes(e)||Object.values(v).includes(e)},strategy:{type:String,default:void 0,validator:e=>Object.values(d).includes(e)},transitionName:{type:String,default:void 0},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean,default:!1}},Y={...J,name:{type:String,required:!0}},Z={autofocus:{type:Boolean,default:!1}},Q={autocomplete:{type:String,default:"off"}},ee={...Y,...Z,...Q,...K,...L,...I,...P,...N,...H,...A,...M,...j,...U,...G,...W,...z,minlength:{type:[String,Number],default:void 0},maxlength:{type:[String,Number],default:void 0},placeholder:{type:String,default:void 0},required:{type:Boolean,default:!1}},te={...Y,...K,...P,...N,...H,...L,...I,...M,...z,...A,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[Object,Number,Boolean,String],default:void 0}},le={...P,...N,...F,...H,...L,...I,...M,...z,...A,modelValue:{type:[String,Array,Boolean,Number,Symbol],default:void 0},name:{type:String,required:!0},vertical:{type:Boolean,default:!1}},oe={...L,...z,...T,...O,...D,...E,type:{type:String,default:f.button,validator:e=>Object.values(f).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:m.button}},ae={items:{type:Array,default:()=>[]}},ne={storageType:{type:String,default:s.local,validator:e=>Object.values(s).includes(e)},storageKey:String};function re(e){const l=t.inject(e,void 0),o=t.computed((()=>void 0!==l));return{group:l,isInGroup:o,getGroupOrLocalRef:function(e,o,a){const n=null==l?void 0:l[e];if(n)return t.computed({get:()=>n.value,set(e){n.value=e}});const r=t.toRef(o,e);return t.computed({get:()=>r.value,set(t){a&&a(`update:${e}`,t)}})}}}const ie={...M,name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},disabled:Boolean,not:Boolean};function ue(e,l,o){return t.computed((()=>{const a={[e]:!0},n="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return n&&Array.isArray(n)&&n.forEach((t=>{t&&(a[`${e}--${t}`]=!0)})),o&&Object.keys(o.value).forEach((l=>{a[`${e}--${l}`]=t.unref(o.value[l])})),a}))}const se=["id","open"],de=["aria-controls","aria-expanded"],ce=["aria-hidden"],ve=t.defineComponent({name:"VvAccordion",props:ie,emits:["update:modelValue"],setup(e,{expose:o,emit:a}){const n=e,r=a,i=t.useAttrs(),u=l.useVModel(n,"modelValue",r),s=t.computed((()=>n.name||(null==i?void 0:i.id)||t.useId())),{title:d,content:c,not:v}=t.toRefs(n),{isInGroup:p,modifiers:f,disabled:m,bus:g}=function(e){const{group:l,isInGroup:o}=re(w),a=t.computed((()=>Boolean(e.disabled||(null==l?void 0:l.disabled.value)))),n=t.computed((()=>{let t=e.modifiers,o=null==l?void 0:l.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),o&&(Array.isArray(o)||(o=o.split(" ")),o.forEach((e=>a.add(e)))),Array.from(a)}));return{isInGroup:o,group:l,modifiers:n,disabled:a,bus:null==l?void 0:l.bus}}(n),b=t.ref(!1);function y(){m.value||(p.value?null==g||g.emit("toggle",{name:s.value,value:!b.value}):b.value=!b.value)}function h(){b.value||y()}function k(){b.value&&y()}function S(e){g?g.emit("expand",{name:e}):console.warn(`[VvAccordion]: You are trying to expand accordion group of "${s.value}" but it is not in a group`)}function B(e){g?null==g||g.emit("collapse",{name:e}):console.warn(`[VvAccordion]: You are trying to collapse accordion group of "${s.value}" but it is not in a group`)}t.watch(u,(e=>{"boolean"==typeof e&&(b.value=v.value?!e:e)}),{immediate:!0}),t.watch(b,(e=>{u.value=v.value?!e:e})),null==g||g.on("toggle",(({name:e,value:t})=>{e===s.value&&(b.value=t)})),t.watch(s,((e,t)=>{g&&(t&&t!==e&&g.emit("unregister",{name:t}),g.emit("register",{name:e}))}),{immediate:!0}),t.onBeforeUnmount((()=>{g&&g.emit("unregister",{name:s.value})})),o({isExpanded:b,expand:h,collapse:k,groupExpand:S,groupCollapse:B});const V=ue("vv-accordion",f,t.computed((()=>({disabled:m.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("details",{id:t.unref(s),class:t.normalizeClass(t.unref(V)),open:t.unref(b)},[t.createElementVNode("summary",{"aria-controls":t.unref(s),"aria-expanded":t.unref(b),class:"vv-accordion__summary",onClick:l[0]||(l[0]=t.withModifiers((e=>y()),["prevent"]))},[t.renderSlot(e.$slots,"summary",t.normalizeProps(t.guardReactiveProps({isExpanded:t.unref(b),expand:h,collapse:k,groupExpand:S,groupCollapse:B})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)),1)]))],8,de),t.createElementVNode("div",{"aria-hidden":!t.unref(b),class:"vv-accordion__content"},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({isExpanded:t.unref(b),expand:h,collapse:k,groupExpand:S,groupCollapse:B})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(c)),1)]))],8,ce)],10,se))}}),pe={...M,...ne,modelValue:{type:[String,Array],default:void 0},items:{type:Array,default:()=>[]},collapse:Boolean,itemModifiers:{type:[String,Array],default:""},disabled:Boolean,not:Boolean};function fe(e,o=s.local,a){const n=t.ref();let r;return a&&(n.value=a),e&&t.watch(e,((e,a)=>{const i=t.unref(o)===s.session?sessionStorage:localStorage;a&&a!==e&&i.removeItem(a),r=e?l.useStorage(e,(null==r?void 0:r.value)??n.value,i):void 0}),{immediate:!0}),t.isRef(o)&&t.watch(o,((t,o)=>{if(null==e?void 0:e.value){if(t){const o=t===s.session?sessionStorage:localStorage;r=l.useStorage(e.value,(null==r?void 0:r.value)??n.value,o)}if(o&&o!==t){(o===s.session?sessionStorage:localStorage).removeItem(e.value)}}})),t.computed({get:()=>(null==r?void 0:r.value)??n.value,set:e=>{r?r.value=e:n.value=e}})}function me(e,l){t.provide(e,l)}const ge=t.defineComponent({name:"VvAccordionGroup",props:pe,emits:["update:modelValue"],setup(e,{expose:l,emit:a}){const n=e,r=a,{disabled:i,modifiers:u,itemModifiers:s,items:d,storageKey:c,storageType:v}=t.toRefs(n);t.watchEffect((()=>{"string"==typeof n.modelValue&&n.collapse&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")}));const p=t.reactive(new Set),f=fe(c,v,[]),m=t.computed({get:()=>null!==n.modelValue&&void 0!==n.modelValue?n.modelValue:f.value,set:e=>{r("update:modelValue",e),f.value=e}}),g=t.computed({get:()=>{if(void 0===m.value)return new Set;let e=new Set;return n.not?"string"==typeof m.value?e=new Set([...p].filter((e=>e!==m.value))):Array.isArray(m.value)&&(e=new Set([...p].filter((e=>!m.value.includes(e))))):"string"==typeof m.value?e=new Set([m.value]):Array.isArray(m.value)&&(e=new Set(m.value)),e},set:e=>{n.not?m.value=[...p].filter((t=>!e.has(t))):n.collapse?m.value=[...e]:m.value=e.values().next().value}});t.onMounted((()=>{n.not&&void 0===m.value&&(m.value=n.collapse?[]:[...p.values()].splice(1,p.size)),t.nextTick((()=>{for(const e of p)b.emit("toggle",{name:e,value:g.value.has(e)})}))}));const b=o();function y(e){if("string"!=typeof e)if(Array.isArray(e))for(const t of e)b.emit("toggle",{name:t,value:!0});else for(const t of p)b.emit("toggle",{name:t,value:!0});else b.emit("toggle",{name:e,value:!0})}function h(e){if("string"!=typeof e)if(Array.isArray(e))for(const t of e)b.emit("toggle",{name:t,value:!1});else for(const t of p)b.emit("toggle",{name:t,value:!1});else b.emit("toggle",{name:e,value:!1})}me(w,{disabled:i,modifiers:s,bus:b}),b.on("register",(({name:e})=>{p.add(e)})),b.on("unregister",(({name:e})=>{p.delete(e)})),b.on("toggle",(({name:e,value:t})=>{const l=new Set(g.value);if(t){if(!n.collapse){for(const t of l)t!==e&&b.emit("toggle",{name:t,value:!1});l.clear()}return l.add(e),void(g.value=l)}l.delete(e),g.value=l})),b.on("expand",(({name:e})=>y(e))),b.on("collapse",(({name:e})=>h(e))),l({expandedAccordions:g,expand:y,collapse:h});const k=ue("vv-accordion-group",u,t.computed((()=>({disabled:i.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(k))},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({expandedAccordions:t.unref(g),expand:y,collapse:h})),(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(l=>(t.openBlock(),t.createBlock(ve,t.mergeProps({key:l.title,ref_for:!0},{name:l.name,title:l.title,content:l.content}),t.createSlots({_:2},[e.$slots[`summary::${l.name}`]?{name:"summary",fn:t.withCtx((o=>[t.renderSlot(e.$slots,`summary::${l.name}`,t.mergeProps({ref_for:!0},o))])),key:"0"}:void 0,e.$slots[`content::${l.name}`]?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,`content::${l.name}`,t.mergeProps({ref_for:!0},o))])),key:"1"}:void 0]),1040)))),128))]))],2))}}),be=oe;function ye(){return t.inject(k)}const he=t.defineComponent({name:"VvAction",props:be,emits:["click","mouseover","mouseleave"],setup(e,{expose:l,emit:o}){const a=e,n=o,r=t.getCurrentInstance(),i=ye(),u=t.ref(null);l({$el:u});const{reference:s,bus:d,aria:c,expanded:v}=t.inject(x,{});t.watch((()=>u.value),(e=>{s&&(s.value=e)}));const p=t.computed((()=>a.pressed||(null==v?void 0:v.value))),{role:f}=t.inject(_,{}),g=t.computed((()=>{switch(!0){case a.disabled:return m.button;case void 0!==a.to:return(null==i?void 0:i.nuxt)?m.nuxtLink:m.routerLink;case void 0!==a.href:return m.a;default:return a.defaultTag}})),b=t.computed((()=>{const e={...null==c?void 0:c.value,ariaPressed:!!p.value||void 0,ariaLabel:a.ariaLabel,role:null==f?void 0:f.value};switch(g.value){case m.a:return{...e,href:a.href,target:a.target,rel:a.rel};case m.routerLink:case m.nuxtLink:return{...e,to:a.to,target:a.target};case m.button:return{...e,type:a.type,disabled:a.disabled};default:return e}}));function y(e){var t;a.disabled?e.preventDefault():(null==(t=null==r?void 0:r.vnode.props)?void 0:t.onClick)?n("click",e):null==d||d.emit("click",e)}function h(e){var t;(null==(t=null==r?void 0:r.vnode.props)?void 0:t.onMouseover)?n("mouseover",e):null==d||d.emit("mouseover",e)}function k(e){var t;(null==(t=null==r?void 0:r.vnode.props)?void 0:t.onMouseleave)?n("mouseleave",e):null==d||d.emit("mouseleave",e)}return(e,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(g)),t.mergeProps(t.unref(b),{ref_key:"element",ref:u,class:{active:e.active,pressed:t.unref(p),disabled:e.disabled,current:e.current},onClickPassive:y,onMouseoverPassive:h,onMouseleavePassive:k}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]))])),_:3},16,["class"]))}});function ke(e){return t.computed((()=>String((null==e?void 0:e.value)||t.useId())))}function Se(e,l){const o=t.computed((()=>"string"==typeof(null==e?void 0:e.value)?{name:null==e?void 0:e.value}:null==e?void 0:e.value)),a=t.computed((()=>(null==l?void 0:l.value)===p.before?o.value:void 0)),n=t.computed((()=>(null==l?void 0:l.value)===p.after?o.value:void 0)),r=t.computed((()=>(null==l?void 0:l.value)===c.left?o.value:void 0)),i=t.computed((()=>(null==l?void 0:l.value)===c.right?o.value:void 0)),u=t.computed((()=>(null==l?void 0:l.value)===c.top?o.value:void 0)),s=t.computed((()=>(null==l?void 0:l.value)===c.bottom?o.value:void 0));return{hasIcon:o,hasIconLeft:r,hasIconRight:i,hasIconTop:u,hasIconBottom:s,hasIconBefore:a,hasIconAfter:n}}const Be={...J,...G,modifiers:{type:[String,Array],default:void 0},dismissable:{type:Boolean,default:!1},autoClose:{type:Number,default:0},closeLabel:{type:String,default:"Close"},title:{type:String,default:void 0},content:{type:String,default:void 0},footer:{type:String,default:void 0},role:{type:String,default:h.alert}};function Ve(e,l){const{bus:o}=t.inject($,{}),a=ke(t.computed((()=>e.id))),n=t.computed((()=>`${a.value}-title`));let r;const i=()=>{r&&clearTimeout(r),l("close",a.value),null==o||o.emit("close",a.value)};t.watch((()=>e.autoClose),(e=>{e>0?r=setTimeout(i,e):r&&clearTimeout(r)}),{immediate:!0});const u=t.ref(!1),s=()=>{u.value=!0,r&&clearTimeout(r)},d=()=>{u.value=!1,e.autoClose>0&&(r=setTimeout(i,e.autoClose))},{hasIcon:c}=Se(t.computed((()=>e.icon))),v=ue("vv-alert",t.computed((()=>e.modifiers)),t.computed((()=>({dismissable:e.autoClose>0||e.dismissable,"auto-close":e.autoClose>0,hover:u.value})))),p=t.computed((()=>({"--alert-duration":`${e.autoClose}ms`})));return{close:i,hasIcon:c,hasTitleId:n,hasProps:t.computed((()=>({onMouseover:s,onMouseleave:d,class:v.value,style:p.value,role:e.role,"aria-labelledby":n.value})))}}const we="eye-on",xe="eye-off",Ce="calendar",_e="time",$e="color",Ee="close",Pe="add",Ne="trash",Ae="edit",Le="download",Re={prefix:"normal"},Oe=t.defineComponent({name:"VvIcon",props:t.mergeDefaults({name:{},color:{},width:{},height:{},provider:{},prefix:{},src:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{},mode:{},inline:{type:Boolean},rotate:{},onLoad:{type:Function},svg:{},modifiers:{}},Re),setup(e){const l=e,o=t.computed((()=>"string"==typeof l.rotate?Number.parseFloat(l.rotate):l.rotate)),n=t.ref(!0),r=ye(),{modifiers:i}=t.toRefs(l),u=ue("vv-icon",i),s=t.computed((()=>l.provider||(null==r?void 0:r.iconsProvider))),d=t.computed((()=>{const e=l.name??"",t=`@${s.value}:${l.prefix}:${e}`;if(a.iconExists(t))return t;const o=null==r?void 0:r.iconsCollections.find((t=>{const l=`@${s.value}:${t.prefix}:${e}`;return a.iconExists(l)}));return o?`@${s.value}:${o.prefix}:${e}`:e}));function c(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),o=(null==t?void 0:t.innerHTML.trim())||"";t&&o&&a.addIcon(`@${s.value}:${l.prefix}:${l.name}`,{body:o,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&l.src&&!a.iconExists(`@${s.value}:${l.prefix}:${l.name}`)&&(n.value=!1,r.fetchIcon(l.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),l.svg&&c(l.svg),(e,l)=>t.unref(n)?(t.openBlock(),t.createBlock(t.unref(a.Icon),t.mergeProps({key:0,class:t.unref(u)},{inline:e.inline,width:e.width,height:e.height,horizontalFlip:e.horizontalFlip,verticalFlip:e.verticalFlip,flip:e.flip,rotate:t.unref(o),color:e.color,onLoad:e.onLoad,icon:t.unref(d)}),null,16,["class"])):t.createCommentVNode("v-if",!0)}}),De={key:0,class:"vv-alert__header"},Te=["id"],ze=["aria-label"],Ie={key:1,class:"vv-alert__content"},Me={key:2,class:"vv-alert__footer"},He=t.defineComponent({name:"VvAlert",props:Be,emits:["close"],setup(e,{expose:l,emit:o}){const a=e,n=o,{hasProps:r,hasTitleId:i,hasIcon:u,close:s}=Ve(a,n);return l({close:s}),(e,l)=>(t.openBlock(),t.createElementBlock("div",t.normalizeProps(t.guardReactiveProps(t.unref(r))),[e.$slots.header||e.$slots.title||e.$slots.close||e.$slots["title::before"]||e.$slots["title::after"]||e.title||e.dismissable||e.autoClose?(t.openBlock(),t.createElementBlock("div",De,[t.unref(u)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:0},t.unref(u),{class:"vv-alert__icon"}),null,16)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"header",{},(()=>[t.renderSlot(e.$slots,"title::before"),e.$slots.title||e.title?(t.openBlock(),t.createElementBlock("strong",{key:0,id:t.unref(i),class:"vv-alert__title"},[t.renderSlot(e.$slots,"title",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))],8,Te)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"title::after")])),t.renderSlot(e.$slots,"close",t.normalizeProps(t.guardReactiveProps({close:t.unref(s)})),(()=>[e.dismissable||e.autoClose?(t.openBlock(),t.createElementBlock("button",{key:0,class:"vv-alert__close",type:"button","aria-label":e.closeLabel,onClick:l[0]||(l[0]=t.withModifiers(((...e)=>t.unref(s)&&t.unref(s)(...e)),["stop"]))},l[1]||(l[1]=[t.createElementVNode("div",{class:"vv-alert__close-mask"},null,-1)]),8,ze)):t.createCommentVNode("v-if",!0)]))])):t.createCommentVNode("v-if",!0),e.$slots.default||e.content?(t.openBlock(),t.createElementBlock("div",Ie,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]))])):t.createCommentVNode("v-if",!0),e.$slots.footer||e.footer?(t.openBlock(),t.createElementBlock("div",Me,[t.renderSlot(e.$slots,"footer",{},(()=>[t.createTextVNode(t.toDisplayString(e.footer),1)]))])):t.createCommentVNode("v-if",!0)],16))}});const Fe={...M,name:{type:String,required:!0},items:{type:Array,default:()=>[]},stack:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},inline:{type:String,default:void 0},block:{type:String,default:void 0},position:{type:String,default:void 0},transition:{type:String,default:void 0}};function je(e,l){const a=function({name:e}){const l=o();return t.provide($,{name:e,bus:l}),l}({name:t.computed((()=>e.name))});(e.block&&!e.inline||!e.block&&e.inline)&&console.warn("[VvAlertGroup]: block and inline props must coexist at the same time.");const n=t.computed((()=>{const l=[ue("vv-alert-group",t.computed((()=>e.modifiers)),t.computed((()=>({stack:e.stack,reverse:e.reverse,absolute:"absolute"===e.position,fixed:"fixed"===e.position})))).value];return e.inline&&e.block&&l.push(`vv-alert-group--${e.block}-${e.inline}`),l})),r=t.computed((()=>e.transition?e.transition:e.position?"start"===e.inline?"vv-alert--fade-inline-start":"end"===e.inline?"vv-alert--fade-inline-end":"top"===e.block?"vv-alert--fade-block-top":"bottom"===e.block?"vv-alert--fade-block-bottom":"vv-alert--fade":"vv-alert--fade"));return a.on("close",(e=>{l("close",e)})),{hasTransition:r,hasProps:t.computed((()=>({class:n.value})))}}const Ue=t.defineComponent({name:"VvAlertGroup",props:Fe,emits:["close","beforeEnter","afterLeave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(e,{emit:l}){const o=e,a=l,{hasProps:n,hasTransition:r}=je(o,a),i={"before-enter":()=>{a("beforeEnter")},"after-leave":()=>{a("afterLeave")},enter:()=>{a("enter")},"after-enter":()=>{a("afterEnter")},"enter-cancelled":()=>{a("enterCancelled")},"before-leave":()=>{a("beforeLeave")},leave:()=>{a("leave")},"leave-cancelled":()=>{a("leaveCancelled")}};return(e,l)=>(t.openBlock(),t.createElementBlock("div",t.normalizeProps(t.guardReactiveProps(t.unref(n))),[t.renderSlot(e.$slots,"before"),t.createVNode(t.TransitionGroup,t.mergeProps({tag:"div",role:"group",name:t.unref(r),class:"vv-alert-group__list"},t.toHandlers(i)),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(e=>(t.openBlock(),t.createBlock(He,t.mergeProps({ref_for:!0},e,{key:e.id}),null,16)))),128))]))])),_:3},16,["name"]),t.renderSlot(e.$slots,"after")],16))}}),Ge={...M,imgSrc:String},Ke=["role","aria-label"],We=["src"],qe=t.defineComponent({name:"VvAvatar",props:Ge,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-avatar",o);return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:e.imgSrc?void 0:"img","aria-label":e.imgSrc?void 0:"avatar"},[t.renderSlot(e.$slots,"default",{},(()=>[e.imgSrc?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.imgSrc,alt:"avatar"},null,8,We)):t.createCommentVNode("v-if",!0)]))],10,Ke))}}),Je={...M,items:{type:Array,default:()=>[],required:!0},toShow:{type:Number,default:3},totalItems:{type:Number},avatarModifiers:[String,Array]},Xe={key:0},Ye=t.defineComponent({name:"VvAvatarGroup",props:Je,setup(e){const l=e,{modifiers:o,items:a,toShow:n,totalItems:r,avatarModifiers:i}=t.toRefs(l),u=ue("vv-avatar-group",o),s=t.computed((()=>(null==i?void 0:i.value)&&Array.isArray(null==i?void 0:i.value)?i.value.join(" "):(null==i?void 0:i.value)||"")),d=t.computed((()=>a.value.slice(0,n.value).map((e=>{let t=[],l=[];return(null==i?void 0:i.value)&&(t=Array.isArray(null==i?void 0:i.value)?null==i?void 0:i.value:[null==i?void 0:i.value]),e.modifiers&&(l=Array.isArray(e.modifiers)?e.modifiers:[e.modifiers]),{...e,key:e.key||ke().value,modifiers:[...t,...l]}}))));return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(u))},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(e=>(t.openBlock(),t.createBlock(qe,t.mergeProps({key:e.key,ref_for:!0},{modifiers:e.modifiers,imgSrc:e.imgSrc}),{default:t.withCtx((()=>[e.text?(t.openBlock(),t.createElementBlock("span",Xe,t.toDisplayString(e.text),1)):t.createCommentVNode("v-if",!0)])),_:2},1040)))),128)),(t.unref(r)||t.unref(a).length)>t.unref(n)?(t.openBlock(),t.createBlock(qe,{key:0,modifiers:`${t.unref(s)} surface bordered`},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString("+"+((t.unref(r)||t.unref(a).length)-t.unref(n))),1)])),_:1},8,["modifiers"])):t.createCommentVNode("v-if",!0)]))],2))}}),Ze={...M,value:[String,Number]},Qe=t.defineComponent({name:"VvBadge",props:Ze,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-badge",o);return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a))},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),et={...M,routes:Array},tt={class:"vv-breadcrumb__list"},lt=["content"],ot=t.defineComponent({name:"VvBreadcrumb",props:et,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-breadcrumb",o),n=t.computed((()=>{var e;return(null==(e=l.routes)?void 0:e.length)??0})),r=e=>e===n.value-1;return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(a)),"aria-label":"breadcrumbs"},[t.createElementVNode("ol",tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.routes,(({label:l,...o},a)=>(t.openBlock(),t.createElementBlock("li",{key:`${l}-${a}`,class:t.normalizeClass(r(a)?"vv-breadcrumb__item-active":"vv-breadcrumb__item"),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[t.createVNode(he,t.mergeProps({ref_for:!0},o,{class:r(a)?"vv-breadcrumb__label":"vv-breadcrumb__link","aria-current":r(a)?"page":void 0,itemprop:"item","default-tag":"span"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"label",t.mergeProps({ref_for:!0},{...o,index:a,label:l,isLast:r(a)}),(()=>[t.createTextVNode(t.toDisplayString(l),1)]))])),_:2},1040,["class","aria-current"]),t.createElementVNode("meta",{itemprop:"position",content:`${a+1}`},null,8,lt)],2)))),128))])],2))}}),at={...oe,...J,...M,...q,...A,...G,iconPosition:{type:String,default:c.left,validator:e=>Object.values(c).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};function nt(e,t,l){return rt(e,t)}function rt(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),o=Array.isArray(t);let a,n,r;if(l&&o){if(n=e.length,n!==t.length)return!1;for(a=n;0!=a--;)if(!rt(e[a],t[a]))return!1;return!0}if(l!==o)return!1;const i=e instanceof Date,u=t instanceof Date;if(i!==u)return!1;if(i&&u)return e.getTime()===t.getTime();const s=e instanceof RegExp,d=t instanceof RegExp;if(s!==d)return!1;if(s&&d)return e.toString()===t.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(t).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!rt(e[r],t[r]))return!1;return!0}return Number.isNaN(e)&&Number.isNaN(t)}function it(e,t){if(null!=e&&t&&t.length)for(const l of t)if(nt(e,l))return!0;return!1}function ut(e){return null==(l=t.unref(e))||""===l||Array.isArray(l)&&0===l.length||!(l instanceof Date)&&"object"==typeof l&&0===Object.keys(l).length;var l}const st={key:1,class:"vv-button__label"},dt={key:1,class:"vv-button__label"},ct=t.defineComponent({name:"VvButton",inheritAttrs:!1,props:at,emits:["update:modelValue"],setup(e,{expose:l,emit:o}){const a=e,n=o,r=t.useAttrs(),i=t.useSlots(),{id:u,modifiers:s,iconPosition:d,icon:v,label:p,modelValue:f,disabled:m,toggle:g,unselectable:b}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=re(S),{id:r,iconPosition:i,icon:u,label:s,pressed:d}=t.toRefs(e),c=n("modelValue",e,l),v=n("toggle",e),p=n("unselectable",e),f=t.computed((()=>(null==o?void 0:o.multiple.value)??!1)),m=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)})),g=t.computed((()=>Boolean(e.disabled||(null==o?void 0:o.disabled.value))));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:p,multiple:f,modifiers:m,disabled:g,id:r,pressed:d,iconPosition:i,icon:u,label:s}}(a,n),y=ke(u),h=t.computed((()=>(null==r?void 0:r.name)||y.value)),k=t.ref(null);l({$el:t.computed((()=>{var e;return null==(e=k.value)?void 0:e.$el}))});const B=t.computed((()=>g.value?Array.isArray(f.value)?it(h.value,f.value):nt(h.value,f.value):a.pressed)),V=ue("vv-button",s,t.computed((()=>({reverse:[c.right,c.bottom].includes(d.value),column:[c.top,c.bottom].includes(d.value),"icon-only":Boolean((null==v?void 0:v.value)&&!(null==p?void 0:p.value)&&!i.default)})))),{hasIcon:w}=Se(v),x=t.computed((()=>void 0!==a.value?a.value:h.value)),C=t.computed((()=>{if(g.value)return{onClick:_}}));function _(){if(g.value){if(Array.isArray(f.value))return it(x.value,f.value)?void(b.value&&(f.value=f.value.filter((e=>e!==x.value)))):void f.value.push(x.value);if(x.value===f.value&&b.value)return void(f.value=a.uncheckedValue);f.value=x.value}}return(e,l)=>(t.openBlock(),t.createBlock(he,t.mergeProps({...t.unref(r),...t.unref(C),disabled:t.unref(m),pressed:t.unref(B),active:e.active,type:e.type,to:e.to,href:e.href,target:e.target,rel:e.rel,ariaLabel:e.ariaLabel},{id:t.unref(y),ref_key:"element",ref:k,class:t.unref(V)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[e.loadingIcon?(t.openBlock(),t.createBlock(Oe,{key:0,class:"vv-button__loading-icon",name:e.loadingIcon},null,8,["name"])):t.createCommentVNode("v-if",!0),e.loadingLabel?(t.openBlock(),t.createElementBlock("span",st,t.toDisplayString(e.loadingLabel),1)):t.createCommentVNode("v-if",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"before"),t.unref(w)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:0},t.unref(w),{class:"vv-button__icon"}),null,16)):t.createCommentVNode("v-if",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("span",dt,[t.renderSlot(e.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(p)),1)]))])):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"after")],64))]))])),_:3},16,["id","class"]))}}),vt={...M,...L,...q,legendLabel:{type:String},itemModifiers:{type:[String,Array],default:""},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array],default:void 0}},pt={key:0,class:"vv-button-group__legend"},ft=t.defineComponent({name:"VvButtonGroup",props:vt,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,a=l,{disabled:n,toggle:r,modifiers:i,multiple:u,unselectable:s,itemModifiers:d}=t.toRefs(o);t.watchEffect((()=>{"string"==typeof o.modelValue&&u.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")}));const c=t.computed({get:()=>u.value?o.modelValue:Array.isArray(o.modelValue)?o.modelValue[0]:o.modelValue,set:e=>void 0===e||!Array.isArray(o.modelValue)&&!u.value||Array.isArray(e)?a("update:modelValue",e):a("update:modelValue",[e])});me(S,{modelValue:c,disabled:n,toggle:r,multiple:u,unselectable:s,modifiers:d});const v=ue("vv-button-group",i);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(v)),role:"group"},[e.$slots.legend||e.legendLabel?(t.openBlock(),t.createElementBlock("legend",pt,[t.renderSlot(e.$slots,"legend",{},(()=>[t.createTextVNode(t.toDisplayString(e.legendLabel),1)]))])):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],2))}}),mt={...M,title:String},gt={key:0,class:"vv-card__header"},bt={key:1,class:"vv-card__content"},yt={key:2,class:"vv-card__footer"},ht=t.defineComponent({name:"VvCard",props:mt,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-card",o);return(e,l)=>(t.openBlock(),t.createElementBlock("article",{class:t.normalizeClass(t.unref(a))},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",gt,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))])):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default"),e.$slots.content?(t.openBlock(),t.createElementBlock("div",bt,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("v-if",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",yt,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)],2))}}),kt={...te,...M,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function St(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function Bt(e,l){const o=t.computed((()=>t.isRef(e)?e.value:e)),a=t.computed((()=>St(o.value.invalidLabel))),n=t.computed((()=>St(o.value.validLabel))),r=t.computed((()=>o.value.loadingLabel)),i=t.computed((()=>o.value.hintLabel)),u=t.computed((()=>Boolean(o.value.loading&&(l.loading||r.value)))),s=t.computed((()=>!u.value&&Boolean(o.value.invalid&&(l.invalid||a.value)))),d=t.computed((()=>!u.value&&!s.value&&Boolean(o.value.valid&&(l.valid||n.value)))),c=t.computed((()=>!u.value&&!s.value&&!d.value&&Boolean(l.hint||i.value))),v=t.computed((()=>s.value||d.value||u.value||c.value)),p=t.computed((()=>({modelValue:o.value.modelValue,valid:o.value.valid,invalid:o.value.invalid,loading:o.value.loading}))),f=t.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:v,invalidLabel:a,validLabel:n,loadingLabel:r,hintLabel:i,hasInvalidLabelOrSlot:s,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:u,hasHintLabelOrSlot:c}),render(){var e,l,o,a,n,r,i,u;if(this.isVisible){let s;return this.hasInvalidLabelOrSlot&&(s="alert"),this.hasValidLabelOrSlot&&(s="status"),this.hasLoadingLabelOrSlot?t.h(this.tag,{role:s},(null==(l=(e=this.$slots).loading)?void 0:l.call(e))??this.loadingLabel):this.hasInvalidLabelOrSlot?t.h(this.tag,{role:s},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?t.h(this.tag,{role:s},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):t.h(this.tag,{role:s},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:s,hasHintLabelOrSlot:c,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:u,hintSlotScope:p,HintSlot:f}}function Vt(e,l,o){const a=ye(),n=t.computed((()=>{var t;if(a&&(null==(t=a.defaults.value)?void 0:t[e]))return a.defaults.value[e]}));return t.computed((()=>{if(void 0===n.value)return o;const e=n.value,t=l,a=o;return Object.keys(t).reduce(((l,o)=>{const n=a[o];if(l[o]=n,o in e){if(Array.isArray(t[o])){const a=t[o];if(a.length){a[0]===n&&(l[o]=e[o])}}if("function"==typeof t[o]){(0,t[o])()===n&&(l[o]=e[o])}if("object"==typeof t[o]){let a=t[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(l[o]=e[o]):a===n&&(l[o]=e[o])}}return l}),{})}))}const wt=["for"],xt=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Ct=t.defineComponent({name:"VvCheckbox",props:kt,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=l,n=t.useSlots(),r=Vt("VvCheckbox",kt,o),{id:i,disabled:u,readonly:s,valid:d,invalid:c,propsSwitch:v,modelValue:p,indeterminate:f,isInGroup:m}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=re(V),{id:r,switch:i,indeterminate:u}=t.toRefs(e),s=n("modelValue",e,l),d=n("valid",e),c=n("invalid",e),v=t.computed((()=>Boolean(e.readonly||(null==o?void 0:o.readonly.value)))),p=t.computed((()=>Boolean(e.disabled||(null==o?void 0:o.disabled.value))));return{id:r,propsSwitch:i,indeterminate:u,group:o,isInGroup:a,modelValue:s,valid:d,invalid:c,readonly:v,disabled:p}}(o,a),g=ke(i),b=t.computed((()=>`${g.value}-hint`)),y=t.computed((()=>S.value?-1:o.tabindex)),h=t.ref(),k=t.computed((()=>void 0!==o.uncheckedValue&&!m.value)),S=t.computed((()=>u.value||s.value)),B=t.computed((()=>!0===c.value||!0!==d.value&&void 0)),w=t.computed((()=>k.value?p.value===o.value:Array.isArray(p.value)?it(o.value,p.value):nt(o.value,p.value))),x=t.computed((()=>!!f.value||!(w.value||!k.value||o.uncheckedValue===p.value))),C=t.computed((()=>{if(!k.value)return!["string","number","boolean"].includes(typeof o.value)||o.value})),_=t.computed({get:()=>w.value,set(e){if(k.value)p.value=e?o.value:o.uncheckedValue;else if(Array.isArray(p.value)||m.value){const t=p.value??[],l=new Set(Array.isArray(t)?t:[t]);e?l.add(o.value):l.delete(o.value),p.value=[...l]}else p.value=e?o.value:void 0;a("change",e)}}),{modifiers:$}=t.toRefs(o),E=ue("vv-checkbox",$,t.computed((()=>({switch:v.value,valid:d.value,invalid:c.value,disabled:u.value,readonly:s.value,indeterminate:f.value}))));t.watchEffect((()=>{k.value&&Array.isArray(p.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")})),t.watch((()=>x.value),(e=>{h.value.indeterminate=!!e})),t.onMounted((()=>{x.value&&(h.value.indeterminate=!0)}));const{HintSlot:P,hasHintLabelOrSlot:N,hasInvalidLabelOrSlot:A,hintSlotScope:L}=Bt(r,n);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(E)),for:t.unref(g)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(g),ref_key:"input",ref:h,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(_)?_.value=e:null),type:"checkbox",class:"vv-checkbox__input",name:e.name,disabled:t.unref(S),value:t.unref(C),tabindex:t.unref(y),"aria-invalid":t.unref(B),"aria-describedby":t.unref(N)?t.unref(b):void 0,"aria-errormessage":t.unref(A)?t.unref(b):void 0},null,8,xt),[[t.vModelCheckbox,t.unref(_)]]),t.renderSlot(e.$slots,"default",{value:t.unref(p)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(P),{id:t.unref(b),class:"vv-checkbox__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"3"}:void 0]),1032,["id"])],10,wt))}}),_t=le;function $t(e){const{options:l,labelKey:o,valueKey:a,disabledKey:r}=t.toRefs(e);return{options:l,getOptionLabel:e=>"string"==typeof e?e:"function"==typeof o.value?o.value(e):String(o.value?n.get(e,o.value):e),getOptionValue:e=>"string"==typeof e?e:"function"==typeof a.value?a.value(e):a.value?n.get(e,a.value):e,isOptionDisabled:e=>"string"!=typeof e&&("function"==typeof r.value?r.value(e):!!r.value&&n.get(e,r.value)),getOptionGrouped:e=>"string"==typeof e?[]:"object"==typeof e&&e&&"options"in e?e.options:[]}}const Et=["textContent"],Pt={class:"vv-checkbox-group__wrapper"},Nt=t.defineComponent({name:"VvCheckboxGroup",props:_t,emits:["update:modelValue","change"],setup(e,{emit:o}){const a=e,n=o,r=t.useSlots(),i=Vt("VvCheckboxGroup",_t,a),u=l.useVModel(a,"modelValue",n),{disabled:s,readonly:d,vertical:c,valid:v,invalid:p,modifiers:f}=t.toRefs(a);me(V,{modelValue:u,disabled:s,readonly:d,valid:v,invalid:p});const{getOptionLabel:m,getOptionValue:g}=$t(a),b=ue("vv-checkbox-group",f,t.computed((()=>({disabled:s.value,readonly:d.value,horizontal:!c.value,valid:v.value,invalid:p.value}))));const{HintSlot:y,hintSlotScope:h}=Bt(i,r);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(b))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,Et)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Pt,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Ct,t.mergeProps({key:l,ref_for:!0},function(e,t){return{id:`${a.name}_opt${t}`,name:a.name,label:m(e),value:g(e)}}(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(y),{class:"vv-checkbox-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"3"}:void 0]),1024)],2))}}),At={...Y,...K,...P,...N,...H,...A,...L,...I,...M,...F,...G,...W,...X,...z,transitionName:{type:String,default:"vv-dropdown--mobile-fade-block"},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},noResultsLabel:{type:String,default:"No results"},noOptionsLabel:{type:String,default:"No options available"},selectedHintLabel:{type:String,default:"Selected"},deselectActionLabel:{type:String,default:"Deselect"},selectHintLabel:{type:String,default:"Press enter to select"},deselectHintLabel:{type:String,default:"Press enter to remove"},closeLabel:{type:String,default:"Close"},placeholder:String,searchable:Boolean,searchFunction:{type:Function,default:void 0},searchPlaceholder:{type:String,default:"Search..."},debounceSearch:{type:[Number,String],default:0},multiple:Boolean,minValues:{type:[Number,String],default:0},maxValues:[Number,String],unselectable:{type:Boolean,default:!0},separator:{type:String,default:", "},native:Boolean,badges:Boolean,badgeModifiers:{type:[String,Array],default:"action sm"},triggerWidth:{...X.triggerWidth,default:!0},dropdownModifiers:{type:[String,Array],default:"mobile"},autoOpen:{type:Boolean,default:!1},autoselectFirst:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1}};function Lt(){return{...At,options:{...At.options,type:Array},searchFunction:{...At.searchFunction,type:Function}}}const Rt={...J,...X,...M,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:b.menu,validator:e=>Object.values(b).includes(e)}},Ot={focusOnHover:{type:Boolean,default:!1}},Dt={...L,...R,...q,...M,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String},focusOnHover:{type:Boolean,default:!1}};const Tt=["id","tabindex","role","aria-labelledby"],zt=t.defineComponent({name:"VvDropdown",inheritAttrs:!1,props:Rt,emits:["update:modelValue","beforeEnter","afterLeave","beforeExpand","beforeCollapse","afterExpand","afterCollapse","before-enter","after-leave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(e,{expose:a,emit:n}){const i=e,u=n,{id:s}=t.toRefs(i),v=ke(s),p=t.useAttrs(),f=t.ref("auto"),m=t.ref("auto"),g=t.ref(),h=t.ref(),k=t.ref(),S=t.ref(),B=t.computed({get:()=>i.reference??g.value,set:e=>{g.value=e}}),V=t.ref(!1);t.onMounted((()=>{l.useMutationObserver(h.value,(()=>{var e;V.value="true"===(null==(e=window.getComputedStyle(h.value).getPropertyValue("--dropdown-custom-position"))?void 0:e.trim())}),{attributeFilter:["style"],window:window})}));const w=t.computed((()=>{const e=[];if(i.autoPlacement?"boolean"==typeof i.autoPlacement?e.push(r.autoPlacement()):e.push(r.autoPlacement(i.autoPlacement)):i.flip&&("boolean"==typeof i.flip?e.push(r.flip({fallbackStrategy:"initialPlacement"})):e.push(r.flip(i.flip))),i.shift&&("boolean"==typeof i.shift?e.push(r.shift()):e.push(r.shift(i.shift))),i.size){const t=({availableWidth:e,availableHeight:t})=>{f.value=`${e}px`,m.value=`${t}px`};"boolean"==typeof i.size?e.push(r.size({apply:t})):e.push(r.size({...i.size,apply:t}))}return i.offset&&(e.push(r.offset(Number(i.offset))),["string","number"].includes(typeof i.offset)?e.push(r.offset(Number(i.offset))):e.push(r.offset(i.offset))),i.arrow&&e.push(r.arrow({element:k})),e})),{x:_,y:$,middlewareData:E,placement:P,strategy:N}=r.useFloating(B,h,{whileElementsMounted:(...e)=>r.autoUpdate(...e,{animationFrame:i.strategy===d.fixed}),placement:t.computed((()=>i.placement)),strategy:t.computed((()=>i.strategy)),middleware:w}),A=t.computed((()=>{var e;if(V.value)return;const t=i.triggerWidth&&B.value?`${null==(e=B.value)?void 0:e.offsetWidth}px`:void 0;return{position:N.value,top:`${$.value??0}px`,left:`${_.value??0}px`,maxWidth:t?void 0:f.value,maxHeight:m.value,width:t}})),L=t.computed((()=>P.value.split("-")[0])),R=t.computed((()=>{var e,t,l,o,a;if(V.value)return;const n={[c.top]:c.bottom,[c.right]:c.left,[c.bottom]:c.top,[c.left]:c.right}[L.value];return{left:void 0!==(null==(e=E.value.arrow)?void 0:e.x)?`${null==(t=E.value.arrow)?void 0:t.x}px`:void 0,top:void 0!==(null==(l=E.value.arrow)?void 0:l.y)?`${null==(o=E.value.arrow)?void 0:o.y}px`:void 0,[n]:-((null==(a=k.value)?void 0:a.offsetWidth)??0)/2+"px"}})),O=l.useVModel(i,"modelValue",u),D=t.ref(!1),T=t.computed({get:()=>O.value??D.value,set:e=>{void 0!==O.value?O.value=e:D.value=e}});function z(){T.value=!0}function I(){T.value=!1}function M(){T.value=!T.value}function H(e){B.value=e}a({toggle:M,show:z,hide:I,init:H,customPosition:V}),t.watch(T,(e=>{e&&i.autofocusFirst&&t.nextTick((()=>{const e=X(h.value);e.length>0&&e[0].focus({preventScroll:!0})}))})),l.onClickOutside(h,(()=>{!i.keepOpen&&T.value&&(T.value=!1)}),{ignore:[B]});const F=t.computed((()=>{var e,t;return(null==(t=null==(e=B.value)?void 0:e.getAttribute)?void 0:t.call(e,"id"))??void 0})),j=t.computed((()=>({"aria-controls":v.value,"aria-haspopup":!0,"aria-expanded":T.value}))),{component:U,bus:G}=function({reference:e,id:l,expanded:a,aria:n}){const r=o(),i=t.defineComponent({name:"VvDropdownTriggerProvider",setup(){t.provide(x,{reference:e,id:l,expanded:a,aria:n,bus:r})},render(){var e,l;return t.h(t.Fragment,{},null==(l=(e=this.$slots).default)?void 0:l.call(e))}});return{bus:r,component:i}}({reference:B,id:v,expanded:T,aria:j});G.on("click",M);const{role:K,modifiers:W}=t.toRefs(i),q=ue("vv-dropdown",W,t.computed((()=>({arrow:i.arrow})))),{focused:J}=l.useFocusWithin(h);function X(e){return e?[...e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))):[]}const Y=l.useElementHover(h),{itemRole:Z}=function({role:e,...l}){const o=t.computed((()=>e.value===b.listbox?y.option:y.presentation));return t.provide(C,{role:o,...l}),{itemRole:o}}({role:K,expanded:T,focused:J,hovered:Y});l.onKeyStroke("Escape",(e=>{T.value&&(e.preventDefault(),I())})),l.onKeyStroke("ArrowDown",(e=>{T.value&&J.value&&(e.preventDefault(),t.nextTick((()=>{if(J.value){const e=X(h.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t<e.length-1?e[t+1].focus({preventScroll:!0}):e[0].focus({preventScroll:!0})}})))})),l.onKeyStroke("ArrowUp",(e=>{T.value&&J.value&&(e.preventDefault(),t.nextTick((()=>{if(J.value){const e=X(h.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t>0?e[t-1].focus({preventScroll:!0}):e[e.length-1].focus({preventScroll:!0})}})))})),l.onKeyStroke([" ","Enter"],(e=>{const t=e.target;T.value&&J.value&&t&&(null==t||t.click())}));const Q={"before-enter":()=>{u(T.value?"beforeExpand":"beforeCollapse"),u("beforeEnter")},"after-leave":()=>{u(T.value?"afterExpand":"afterCollapse"),u("afterLeave")},enter:()=>{u("enter")},"after-enter":()=>{u("afterEnter")},"enter-cancelled":()=>{u("enterCancelled")},"before-leave":()=>{u("beforeLeave")},leave:()=>{u("leave")},"leave-cancelled":()=>{u("leaveCancelled")}};return(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(U),null,{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({init:H,show:z,hide:I,toggle:M,expanded:t.unref(T),aria:t.unref(j)})))])),_:3}),t.createVNode(t.Transition,t.mergeProps({name:e.transitionName},t.toHandlers(Q),{persisted:""}),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"floatingEl",ref:h,style:t.normalizeStyle(t.unref(A)),class:t.normalizeClass(t.unref(q))},[i.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowEl",ref:k,style:t.normalizeStyle(t.unref(R)),class:"vv-dropdown__arrow"},null,4)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(T)}))),t.createElementVNode("div",t.mergeProps(t.unref(p),{id:t.unref(v),ref_key:"listEl",ref:S,tabindex:t.unref(T)?void 0:-1,role:t.unref(K),"aria-labelledby":t.unref(F),class:"vv-dropdown__list"}),[t.renderSlot(e.$slots,"items",t.normalizeProps(t.guardReactiveProps({role:t.unref(Z)})))],16,Tt),t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(T)})))],6),[[t.vShow,t.unref(T)]])])),_:3},16,["name"])],64))}}),It={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},Mt=t.defineComponent({name:"VvDropdownOptgroup",props:{...z},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",It,t.toDisplayString(l.label),1))}}),Ht=t.defineComponent({name:"VvDropdownItem",props:Ot,setup(e){const o=e,{role:a,expanded:n}=t.inject(C,{}),r=t.ref(null);!function({expanded:e}){t.provide(_,{role:t.ref(g.menuitem),expanded:e})}({expanded:n});const i=l.useElementHover(r),{focused:u}=l.useFocus(r),{focused:s}=l.useFocusWithin(r);return t.watch(i,(e=>{e&&o.focusOnHover&&(u.value=!0)})),(e,l)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({role:t.unref(a)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":t.unref(u)||t.unref(s)}]}),[t.renderSlot(e.$slots,"default")],16))}}),Ft=["title"],jt=t.defineComponent({name:"VvDropdownOption",props:Dt,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-dropdown-option",o,t.computed((()=>({disabled:l.disabled,selected:l.selected,unselectable:l.unselectable&&l.selected})))),n=t.computed((()=>l.selected?l.unselectable?l.deselectHintLabel:l.selectedHintLabel:l.disabled?"":l.selectHintLabel));return(e,l)=>(t.openBlock(),t.createBlock(Ht,{class:t.normalizeClass(t.unref(a)),tabindex:e.disabled?-1:0,"aria-selected":e.selected,"aria-disabled":e.disabled,"focus-on-hover":e.focusOnHover},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default"),t.createElementVNode("span",{class:"vv-dropdown-option__hint",title:t.unref(n)},[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps({disabled:e.disabled,selected:e.selected,unselectable:e.unselectable})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)),1)]))],8,Ft)])),_:3},8,["class","tabindex","aria-selected","aria-disabled","focus-on-hover"]))}}),Ut={...Y,...Z,...Q,...K,...P,...N,...H,...A,...L,...I,...M,...F,...G,...W,...q,...z,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},autoselectFirst:{type:Boolean,default:!1},placeholder:String};function Gt(){return{...Ut,options:{...Ut.options,type:Array,default:()=>[]}}}function Kt(e,o){const{focused:a}=l.useFocus(e);return t.watch(a,(l=>{o(l?"focus":"blur",t.unref(e))})),{focused:a}}const Wt=["for"],qt={class:"vv-select__wrapper"},Jt={key:0,class:"vv-select__input-before"},Xt={class:"vv-select__inner"},Yt=["id"],Zt=["disabled","hidden"],Qt=["disabled","value"],el=["disabled","label"],tl=["disabled","value"],ll={key:1,class:"vv-select__input-after"},ol=t.defineComponent({name:"VvSelect",props:Gt(),emits:["update:modelValue","focus","blur"],setup(e,{emit:o}){const a=e,n=o,r=t.useSlots(),i=Vt("VvSelect",Gt(),a),u=t.ref(),{HintSlot:s,hasHintLabelOrSlot:d,hasInvalidLabelOrSlot:c,hintSlotScope:v}=Bt(i,r),{focused:p}=Kt(u,n);function f(e){var t;return"string"!=typeof e&&(null==(t=e.options)?void 0:t.length)}const{id:m,modifiers:g,disabled:b,readonly:y,loading:h,icon:k,iconPosition:S,invalid:B,valid:V,floating:w,multiple:x}=t.toRefs(a),C=ke(m),_=t.computed((()=>`${C.value}-hint`)),$=t.computed((()=>a.disabled||a.readonly)),E=t.computed((()=>$.value?-1:a.tabindex)),P=t.computed({get:()=>a.modelValue,set:e=>{Array.isArray(e)&&0===(e=e.filter((e=>void 0!==e))).length&&!a.unselectable&&u.value?u.value.value=String(a.modelValue):n("update:modelValue",e)}}),N=t.computed((()=>Array.isArray(P.value)?P.value.length>0:void 0!==P.value&&null!==P.value)),A=l.useElementVisibility(u);t.watch(A,(e=>{e&&a.autofocus&&(p.value=!0)}));const{hasIconBefore:L,hasIconAfter:R}=Se(k,S),O=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),D=ue("vv-select",g,t.computed((()=>({valid:V.value,invalid:B.value,loading:h.value,disabled:b.value,readonly:y.value,"icon-before":void 0!==L.value,"icon-after":void 0!==R.value,dirty:N.value,focus:p.value,floating:w.value,multiple:x.value})))),{getOptionLabel:T,getOptionValue:z,isOptionDisabled:I,getOptionGrouped:M}=$t(a);t.watch((()=>a.options),(e=>{if((null==e?void 0:e.length)&&a.autoselectFirst&&!N.value){const t=z(e[0]);P.value=a.multiple?[t]:t}}),{immediate:!0});const H=t.computed((()=>({name:a.name,tabindex:E.value,disabled:$.value,required:a.required,size:a.size,autocomplete:a.autocomplete,multiple:a.multiple,"aria-invalid":O.value,"aria-describedby":d.value?_.value:void 0,"aria-errormessage":c.value?_.value:void 0}))),F=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue})));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(D))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(C)},t.toDisplayString(e.label),9,Wt)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",qt,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Jt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(F))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Xt,[t.unref(L)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:0},t.unref(L),{class:"vv-select__icon"}),null,16)):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(C),ref_key:"selectEl",ref:u},t.unref(H),{"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(P)?P.value=e:null)}),[e.placeholder?(t.openBlock(),t.createElementBlock("option",{key:0,value:void 0,disabled:!e.unselectable,hidden:!e.unselectable},t.toDisplayString(e.placeholder),9,Zt)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,((e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[f(e)?(t.openBlock(),t.createElementBlock("optgroup",{key:`group-${l}`,disabled:t.unref(I)(e),label:t.unref(T)(e)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(M)(e),((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:`group-${l}-item-${o}`,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,tl)))),128))],8,el)):(t.openBlock(),t.createElementBlock("option",{key:l,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,Qt))],64)))),256))],16,Yt),[[t.vModelSelect,t.unref(P)]]),t.unref(R)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:1},t.unref(R),{class:"vv-select__icon vv-select__icon-after"}),null,16)):t.createCommentVNode("v-if",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",ll,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(F))))])):t.createCommentVNode("v-if",!0)]),t.createVNode(t.unref(s),{id:t.unref(_),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(v))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(v))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(v))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(v))))])),key:"3"}:void 0]),1032,["id"])],2))}}),al=["id"],nl=["id","for"],rl=["id","aria-controls","placeholder"],il={key:0,class:"vv-select__input-before"},ul={class:"vv-select__inner"},sl=["aria-controls","aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],dl={key:0,class:"vv-select__value"},cl=["aria-label","onClick"],vl={key:1,class:"vv-select__input-after"},pl={name:"VvCombobox",components:{VvDropdown:zt,VvDropdownOption:jt,VvDropdownOptgroup:Mt,VvButton:ct}},fl=t.defineComponent({...pl,props:Lt(),emits:["update:modelValue","update:search","change:search","focus","blur"],setup(e,{emit:o}){const a=e,n=o,r=t.useSlots(),i=Vt("VvCombobox",Lt(),a),u=t.ref(null),s=t.ref(null),d=t.ref(null),c=t.ref(),{HintSlot:v,hasHintLabelOrSlot:p,hasInvalidLabelOrSlot:f,hintSlotScope:m}=Bt(i,r),{focused:g}=Kt(u,n),{focused:y}=l.useFocusWithin(d);t.watch(g,(e=>{a.autoOpen&&(!e||S.value?e||!S.value||y.value||w():V())})),t.watch(y,(e=>{g.value||e||!S.value||w()}));const h=t.ref(""),k=l.refDebounced(h,t.computed((()=>Number(a.debounceSearch))));t.watch(k,(()=>{n("update:search",k.value),n("change:search",k.value)}));const S=t.ref(!1);function B(){j.value||(S.value=!S.value)}function V(){j.value||S.value||(S.value=!0)}function w(){!j.value&&S.value&&(S.value=!1)}function x(){i.value.searchable&&s.value&&s.value.focus({preventScroll:!0})}function C(){i.value.searchable&&(h.value="")}function _(e){var t;return"string"!=typeof e&&(null==(t=e.options)?void 0:t.length)}const{id:$,icon:E,iconPosition:P,modifiers:N,disabled:A,readonly:L,loading:R,valid:O,invalid:D,floating:T}=t.toRefs(a),z=ke($),I=t.computed((()=>`${z.value}-hint`)),M=t.computed((()=>`${z.value}-dropdown`)),H=t.computed((()=>`${z.value}-search`)),F=t.computed((()=>`${z.value}-label`)),j=t.computed((()=>a.disabled||a.readonly)),U=t.computed((()=>j.value?-1:a.tabindex)),G=t.computed({get:()=>Array.isArray(a.modelValue)?a.modelValue:void 0!==a.modelValue&&null!==a.modelValue?[a.modelValue]:[],set:e=>{n("update:modelValue",a.multiple||Array.isArray(a.modelValue)?e:e.pop())}}),K=t.computed((()=>G.value.length)),W=t.computed((()=>K.value>0)),q=t.computed((()=>a.multiple?void 0===a.maxValues?1/0:Number(a.maxValues):1)),J=t.computed((()=>!j.value&&(!!a.unselectable&&(0===Number(a.minValues)||K.value>Number(a.minValues))))),X=t.computed((()=>!j.value&&(!a.multiple||K.value<q.value))),Y=t.ref(!1),Z=t.computed((()=>Y.value||R.value)),{hasIconBefore:Q,hasIconAfter:ee}=Se(E,P),te=ue("vv-select",N,t.computed((()=>({disabled:A.value,loading:Z.value,readonly:L.value,"icon-before":void 0!==Q.value,"icon-after":void 0!==ee.value,valid:O.value,invalid:D.value,dirty:W.value,focus:g.value||y.value||S.value,floating:T.value,badges:a.badges})))),{getOptionLabel:le,getOptionValue:oe,getOptionGrouped:ae,isOptionDisabled:ne}=$t(a);function re(e){return ne(e)||!X.value&&!se(e)}const ie=l.computedAsync((async()=>{var e;if(i.value.searchFunction){Y.value=!0;const e=await Promise.resolve(i.value.searchFunction(k.value,a.options));return Y.value=!1,e}return null==(e=a.options)?void 0:e.filter((e=>le(e).toLowerCase().includes(k.value.toLowerCase().trim())))}));function se(e){const t=oe(e);return"object"==typeof t?G.value.some((e=>"object"==typeof e&&JSON.stringify(e)===JSON.stringify(t))):G.value.includes(t)}const de=t.computed((()=>a.options.reduce(((e,t)=>_(t)?[...e,...ae(t)]:[...e,t]),[]).filter((e=>se(e))))),ce=t.computed((()=>de.value.map((e=>le(e))).join(a.separator)));function ve(){a.autoOpen?V():B()}function pe(e){const t=se(e),l=oe(e);t&&J.value?G.value=G.value.filter((e=>"object"==typeof l&&"object"==typeof e?JSON.stringify(e)!==JSON.stringify(l):e!==l)):!t&&X.value&&(a.multiple||(G.value=[]),G.value=[...G.value,l]),a.multiple||a.keepOpen||w()}t.watch((()=>a.options),(e=>{(null==e?void 0:e.length)&&a.autoselectFirst&&!W.value&&pe(e[0])}),{immediate:!0});const fe=t.computed((()=>({id:z.value,name:a.name,tabindex:U.value,valid:O.value,validLabel:i.value.validLabel,invalid:D.value,invalidLabel:i.value.invalidLabel,hintLabel:i.value.hintLabel,loading:Z.value,loadingLabel:i.value.loadingLabel,disabled:A.value,readonly:L.value,modifiers:i.value.modifiers,options:i.value.options,labelKey:i.value.labelKey,valueKey:i.value.valueKey,icon:i.value.icon,iconPosition:i.value.iconPosition,floating:i.value.floating,unselectable:J.value,autoselectFirst:i.value.autoselectFirst,multiple:i.value.multiple,label:i.value.label,placeholder:i.value.placeholder,modelValue:a.modelValue}))),me=t.computed((()=>({id:M.value,reference:d.value,placement:i.value.placement,strategy:i.value.strategy,transitionName:i.value.transitionName,offset:i.value.offset,shift:i.value.shift,flip:i.value.flip,autoPlacement:i.value.autoPlacement,arrow:i.value.arrow,autofocusFirst:!!i.value.searchable||i.value.autofocusFirst,triggerWidth:i.value.triggerWidth,modifiers:i.value.dropdownModifiers}))),ge=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue})));return l.onKeyStroke([" ","Enter"],(e=>{a.autoOpen||!S.value&&g.value&&(e.preventDefault(),e.stopImmediatePropagation(),B())}),{target:u}),(e,l)=>e.native?(t.openBlock(),t.createBlock(ol,t.mergeProps({key:1},t.unref(fe),{"onUpdate:modelValue":l[3]||(l[3]=e=>n("update:modelValue",e))}),null,16)):(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(z),class:t.normalizeClass(t.unref(te))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:t.unref(F),for:t.unref(i).searchable?t.unref(H):void 0},t.toDisplayString(e.label),9,nl)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:d,class:"vv-select__wrapper"},[t.createVNode(zt,t.mergeProps({ref_key:"dropdownEl",ref:c,modelValue:t.unref(S),"onUpdate:modelValue":l[2]||(l[2]=e=>t.isRef(S)?S.value=e:null)},t.unref(me),{role:t.unref(b).listbox,onAfterExpand:x,onAfterCollapse:C}),t.createSlots({default:t.withCtx((({aria:l})=>[e.$slots.before?(t.openBlock(),t.createElementBlock("div",il,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(ge))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",ul,[t.unref(Q)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:0},t.unref(Q),{class:"vv-select__icon"}),null,16)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",t.mergeProps({ref_key:"inputEl",ref:u},l,{class:"vv-select__input",role:"combobox","aria-controls":t.unref(M),"aria-expanded":t.unref(S),"aria-labelledby":t.unref(F),"aria-describedby":t.unref(p)?t.unref(I):void 0,"aria-errormessage":t.unref(f)?t.unref(I):void 0,tabindex:t.unref(U),onClickPassive:ve}),[t.renderSlot(e.$slots,"value",t.normalizeProps(t.guardReactiveProps({selectedOptions:t.unref(de),onInput:pe})),(()=>[t.unref(ce)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.badges?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(de),((l,o)=>(t.openBlock(),t.createBlock(Qe,{key:o,modifiers:e.badgeModifiers,class:"vv-select__badge"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(t.unref(le)(l))+" ",1),t.unref(J)?(t.openBlock(),t.createElementBlock("button",{key:0,"aria-label":t.unref(i).deselectActionLabel,type:"button",onClick:t.withModifiers((e=>pe(l)),["stop"])},[t.createVNode(Oe,{name:"close"})],8,cl)):t.createCommentVNode("v-if",!0)])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock("div",dl,t.toDisplayString(t.unref(ce)),1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,sl),t.unref(ee)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:1},t.unref(ee),{class:"vv-select__icon vv-select__icon-after"}),null,16)):t.createCommentVNode("v-if",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",vl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(ge))))])):t.createCommentVNode("v-if",!0)])),items:t.withCtx((()=>{var l;return[!t.unref(A)&&(null==(l=t.unref(ie))?void 0:l.length)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(ie),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[_(l)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(Mt,{label:t.unref(le)(l)},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(ae)(l),((o,a)=>(t.openBlock(),t.createBlock(jt,t.mergeProps({ref_for:!0},{selected:se(o),disabled:re(o),unselectable:t.unref(J),deselectHintLabel:t.unref(i).deselectHintLabel,selectHintLabel:t.unref(i).selectHintLabel,selectedHintLabel:t.unref(i).selectedHintLabel},{key:a,class:"vv-dropdown-option","focus-on-hover":"",onClickPassive:e=>pe(o)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.mergeProps({ref_for:!0},{option:l,selectedOptions:t.unref(de),selected:se(o),disabled:re(o)}),(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)(o)),1)]))])),_:2},1040,["onClickPassive"])))),128))],64)):(t.openBlock(),t.createBlock(jt,t.mergeProps({key:1,ref_for:!0},{selected:se(l),disabled:re(l),unselectable:t.unref(J),deselectHintLabel:t.unref(i).deselectHintLabel,selectHintLabel:t.unref(i).selectHintLabel,selectedHintLabel:t.unref(i).selectedHintLabel},{class:"vv-dropdown-option","focus-on-hover":"",onClickPassive:e=>pe(l)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.mergeProps({ref_for:!0},{option:l,selectedOptions:t.unref(de),selected:se(l),disabled:re(l)}),(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)(l)),1)]))])),_:2},1040,["onClickPassive"]))],64)))),128)):e.options.length?t.unref(A)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(jt,{key:2,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-results",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(i).noResultsLabel),1)]))])),_:3})):(t.openBlock(),t.createBlock(jt,{key:1,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-options",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(i).noOptionsLabel),1)]))])),_:3}))]})),after:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::after",{},(()=>{var e;return[(null==(e=t.unref(c))?void 0:e.customPosition)?(t.openBlock(),t.createBlock(ct,{key:0,label:t.unref(i).closeLabel,modifiers:"secondary",onClick:l[1]||(l[1]=e=>t.unref(c).hide())},null,8,["label"])):t.createCommentVNode("v-if",!0)]}))])),_:2},[t.unref(i).searchable||e.$slots["dropdown::before"]?{name:"before",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::before"),t.unref(i).searchable&&!t.unref(A)?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(H),ref_key:"inputSearchEl",ref:s,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(h)?h.value=e:null),"aria-autocomplete":"list","aria-controls":t.unref(M),autocomplete:"off",spellcheck:"false",type:"search",class:"vv-dropdown__search",placeholder:t.unref(i).searchPlaceholder},null,8,rl)),[[t.vModelText,t.unref(h)]]):t.createCommentVNode("v-if",!0)])),key:"0"}:void 0]),1040,["modelValue","role"])],512),t.createVNode(t.unref(v),{id:t.unref(I),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(m))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(m))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(m))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(m))))])),key:"3"}:void 0]),1032,["id"])],10,al))}}),ml={...M,...J,title:String,modelValue:{type:Boolean,default:void 0},transition:{type:String,default:"fade-block"},size:String,keepOpen:{type:Boolean,default:!1},labelClose:{type:String,default:"Close"}},gl={key:0,class:"vv-dialog__header"},bl=["aria-label","title"],yl={class:"vv-dialog__content"},hl={key:1,class:"vv-dialog__footer"},kl=t.defineComponent({name:"VvDialog",props:ml,emits:["open","close","update:modelValue","beforeEnter","afterLeave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(e,{expose:o,emit:a}){const n=e,r=a,i=t.ref(),u=l.useVModel(n,"modelValue",r),s=t.ref(!1),d=t.computed({get:()=>u.value??s.value,set:e=>{void 0!==u.value?u.value=e:s.value=e}}),c=t.ref(null),{modifiers:v}=t.toRefs(n),p=ue("vv-dialog",v,t.computed((()=>n.size?{[n.size]:!!n.size}:{}))),f=t.computed((()=>{const{id:e}=n;return{id:e}})),m=t.computed((()=>`vv-dialog--${n.transition}`)),g={"before-enter":()=>{var e,t;(null==(e=i.value)?void 0:e.open)||null==(t=i.value)||t.showModal(),r("open"),r("beforeEnter")},"after-leave":()=>{var e,t;(null==(e=i.value)?void 0:e.open)&&(null==(t=i.value)||t.close()),r("close"),r("afterLeave")},enter:()=>{r("enter")},"after-enter":()=>{r("afterEnter")},"enter-cancelled":()=>{r("enterCancelled")},"before-leave":()=>{r("beforeLeave")},leave:()=>{r("leave")},"leave-cancelled":()=>{r("leaveCancelled")}};function b(){d.value=!1}function y(){n.keepOpen||b()}return l.onClickOutside(c,(()=>{n.keepOpen||b()})),o({close:b,open:function(){d.value=!0}}),(e,l)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(m)},t.toHandlers(g),{persisted:""}),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("dialog",t.mergeProps(t.unref(f),{ref_key:"dialogEl",ref:i,class:t.unref(p),onCancel:t.withModifiers(y,["stop","prevent"])}),[t.createElementVNode("article",{ref_key:"modalWrapper",ref:c,class:"vv-dialog__wrapper"},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",gl,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("button",{type:"button","aria-label":e.labelClose,title:e.labelClose,class:"vv-dialog__close",onClickPassive:b},null,40,bl)]))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",yl,[t.renderSlot(e.$slots,"default")]),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",hl,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)],512)],16),[[t.vShow,t.unref(d)]])])),_:3},16,["name"]))}}),Sl=t.defineComponent({__name:"VvDropdownAction",props:{...oe,...M},setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-dropdown-action",o);return(e,l)=>(t.openBlock(),t.createBlock(Ht,null,{default:t.withCtx((()=>[t.createVNode(he,t.mergeProps({disabled:e.disabled,pressed:e.pressed,active:e.active,type:e.type,to:e.to,href:e.href,target:e.target,rel:e.rel},{class:t.unref(a)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]))])),_:3},16,["class"])])),_:3}))}}),Bl={...Y,...M,...P,...N,...H,...z,...A,...I,...L,...G,modelValue:{type:Object},progress:{type:[Number,String],default:void 0},placeholder:{type:String,default:void 0},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!1},capture:{type:String,default:void 0,validation:e=>void 0===e||["user","environment"].includes(e)},max:{type:[Number,String],default:void 0},dropArea:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},labelAdd:{type:String,default:"Add file"},iconAdd:{type:[String,Object],default:Pe},labelReplace:{type:String,default:"Replace file"},iconReplace:{type:[String,Object],default:Ae},labelDownload:{type:String,default:"Downlaod file"},iconDownload:{type:[String,Object],default:Le},labelRemove:{type:String,default:"Remove file"}},Vl=["for"],wl={class:"vv-input-file__preview"},xl=["src","alt"],Cl={class:"vv-input-file__wrapper"},_l=["id","readonly","disabled","placeholder","aria-describedby","aria-invalid","aria-errormessage","multiple","accept","capture","name"],$l=["value"],El=["onClick"],Pl=["title","onClick"],Nl={class:"vv-input-file__item-name"},Al={class:"vv-input-file__item-info"},Ll=["title","disabled","onClick"],Rl=t.defineComponent({name:"VvInputFile",props:Bl,emits:["remove","download","update:modelValue"],setup(e,{emit:o}){const a=e,n=o,r=t.useSlots(),u=Vt("VvInputFile",Bl,a),{modifiers:s,id:d,readonly:c,disabled:v,icon:p,iconPosition:f,iconDownload:m}=t.toRefs(a),g=ke(d),b=t.computed((()=>`${g.value}-hint`)),y=t.computed((()=>{if(!a.progress)return!1;const e="string"==typeof a.progress?Number.parseInt(a.progress):a.progress;return e>0&&e<100})),{hasIconBefore:h,hasIconAfter:k}=Se(p,f),{hasIcon:S}=Se(m),B=ue("vv-input-file",s,t.computed((()=>({dragging:L.value,loading:a.loading&&!y.value,valid:!0===a.valid,invalid:!0===a.invalid,"icon-before":!!h.value,"icon-after":!!k.value,"drop-area":N.value})))),{HintSlot:V,hasHintLabelOrSlot:w,hasInvalidLabelOrSlot:x,hintSlotScope:C}=Bt(u,r),_=l.useVModel(a,"modelValue",n),$=t.computed({get:()=>{var e;return _.value&&(Array.isArray(_.value)||(null==(e=_.value)?void 0:e.name))?Array.isArray(_.value)?_.value:[_.value]:[]},set:e=>{A.value?_.value=e:_.value=null==e?void 0:e[0]}}),E=t.computed((()=>a.disabled||a.readonly)),P=t.computed((()=>"string"==typeof a.max?Number.parseInt(a.max):a.max)),N=t.computed((()=>a.dropArea&&!E.value)),A=t.computed((()=>!!a.multiple&&(!P.value||P.value-$.value.length>1))),L=t.ref(!1),R=t.ref();function O(){L.value=!0}function D(){L.value=!1}function T(e){var t,l;(null==(t=e.dataTransfer)?void 0:t.files)&&(L.value=!1,I(null==(l=e.dataTransfer)?void 0:l.files))}function z(){var e;(null==(e=R.value)?void 0:e.files)&&(I(R.value.files),R.value.value="")}function I(e){if(!a.multiple)return Array.isArray(_.value)?void(_.value=[...e]):void(_.value=e[0]);let t=[];t=!Array.isArray(_.value)&&_.value?[_.value]:_.value&&Array.isArray(_.value)?[..._.value]:t;for(const l of e){if(P.value&&t.length>=P.value)break;t.push(l)}_.value=t,H.value=t.length-1}function M(){R.value&&(E.value||R.value.click())}const H=t.ref(0),F=["image/jpeg","image/png"],j=t.computed((()=>{if(0===$.value.length)return;if(!$.value[H.value])return;if($.value[H.value]instanceof File){const e=$.value[H.value];if(!F.includes(e.type))return;return URL.createObjectURL(e)}const e=$.value[H.value];return e.thumbnailUrl?e.thumbnailUrl:F.includes(e.type)?e.url:void 0}));function U(e,t){if(!e)return;if(0===e)return"0 Bytes";const l=Math.floor(Math.log(e)/Math.log(1024));return`${Number.parseFloat((e/1024**l).toFixed(2))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][l]}`}t.watch(j,((e,t)=>{t&&URL.revokeObjectURL(t)})),t.onBeforeUnmount((()=>{j.value&&URL.revokeObjectURL(j.value)}));const G=t.computed((()=>0===$.value.length||A.value?a.labelAdd:a.labelReplace)),K=t.computed((()=>0===$.value.length||A.value?a.iconAdd:a.iconReplace));function W({newIndex:e}){null!==e&&(H.value=e)}return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(B))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(g)},t.toDisplayString(e.label),9,Vl)):t.createCommentVNode("v-if",!0),N.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"vv-input-file__drop-area",onDragenter:t.withModifiers(O,["prevent","stop"]),onDragleave:t.withModifiers(D,["prevent","stop"]),onDrop:t.withModifiers(T,["prevent","stop"]),onDragover:l[0]||(l[0]=t.withModifiers((()=>{}),["prevent","stop"])),onClick:t.withModifiers(M,["stop"])},[t.renderSlot(e.$slots,"drop-area",{},(()=>[t.createElementVNode("picture",wl,[j.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:j.value,alt:$.value[H.value].name},null,8,xl)):t.createCommentVNode("v-if",!0)]),t.unref(c)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(ct,{key:0,modifiers:"action",label:j.value?void 0:G.value,title:j.value?G.value:void 0,disabled:t.unref(v),class:t.normalizeClass({"vv-input-file__drop-area-action":j.value}),icon:K.value,onClick:t.withModifiers(M,["stop"])},null,8,["label","title","disabled","class","icon"]))]))],32)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Cl,[t.unref(h)?(t.openBlock(),t.createBlock(Oe,t.normalizeProps(t.mergeProps({key:0},t.unref(h))),null,16)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",{id:t.unref(g),ref_key:"inputEl",ref:R,type:"file",readonly:t.unref(c),disabled:t.unref(v),placeholder:e.placeholder,"aria-describedby":t.unref(w)?b.value:void 0,"aria-invalid":e.invalid,"aria-errormessage":t.unref(x)?b.value:void 0,multiple:A.value,accept:e.accept,capture:e.capture,name:e.name,onChange:z},null,40,_l),y.value?(t.openBlock(),t.createElementBlock("progress",{key:1,class:"vv-input-file__progress",value:e.progress,max:"100"},t.toDisplayString(e.progress)+"% ",9,$l)):t.createCommentVNode("v-if",!0),t.unref(k)?(t.openBlock(),t.createBlock(Oe,t.normalizeProps(t.mergeProps({key:2},t.unref(k))),null,16)):t.createCommentVNode("v-if",!0)]),t.createVNode(t.unref(i),{modelValue:$.value,"onUpdate:modelValue":l[1]||(l[1]=e=>$.value=e),tag:"ul",class:"vv-input-file__list","item-key":"name",move:()=>e.sortable,onEnd:W},{item:t.withCtx((({element:l,index:o})=>[t.createElementVNode("li",{class:t.normalizeClass(["vv-input-file__item",{active:o===H.value&&N.value&&$.value.length>1,"cursor-move":e.sortable}]),onClick:t.withModifiers((e=>function(e){H.value=e}(o)),["stop"])},[t.unref(S)?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",class:"vv-input-file__item-action",title:e.labelDownload,onClick:t.withModifiers((e=>function(e){n("download",e);const t=e instanceof File?URL.createObjectURL(e):e.url;if(!t)return;const l=document.createElement("a");l.href=t,l.setAttribute("download",e.name),document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(l.href)}(l)),["stop"])},[t.createVNode(Oe,t.normalizeProps(t.guardReactiveProps(t.unref(S))),null,16)],8,Pl)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Nl,t.toDisplayString(l.name),1),t.createElementVNode("small",Al,t.toDisplayString(U(l.size)),1),t.unref(c)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("button",{key:1,type:"button",class:"vv-input-file__item-remove",title:e.labelRemove,disabled:t.unref(v),onClick:t.withModifiers((e=>function(e){const t=Array.isArray(_.value)?_.value[e]:_.value;if(!t)return;if(n("remove",t),!Array.isArray(_.value))return void(_.value=void 0);H.value===e&&(H.value=0);const l=[..._.value];l.splice(e,1),_.value=l}(o)),["stop"])},null,8,Ll))],10,El)])),_:1},8,["modelValue","move"]),t.createVNode(t.unref(V),{id:b.value,class:"vv-input-file__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(C))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(C))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(C))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(C))))])),key:"3"}:void 0]),1032,["id"])],2))}}),Ol={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},Dl={...ee,...ne,modelValue:[String,Number],type:{type:String,default:Ol.TEXT,validator:e=>Object.values(Ol).includes(e)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:[String,Object],default:we},iconHidePassword:{type:[String,Object],default:xe},iconClear:{type:[String,Object],default:Ee},iconRemoveSuggestion:{type:[String,Object],default:Ne},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"},labelRemoveSuggestion:{type:String,default:"Remove suggestion"},iMask:{type:Object,default:void 0},masked:{type:String,default:void 0},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String},selectOnFocus:{type:Boolean,default:!1},maxSuggestions:{type:Number,default:5}},Tl=t.defineComponent({components:{VvIcon:Oe},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:[String,Object],default:"close"}},emits:["clear"],setup(e,{emit:l}){const{hasIcon:o}=Se(t.computed((()=>e.icon)));return{hasIcon:o,onClick:function(t){null==t||t.stopPropagation(),e.disabled||l("clear")}}},render(){const e=this.hasIcon?t.h(Oe,{...this.hasIcon,class:"vv-input-text__icon"}):void 0;return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},e)}}),zl=t.defineComponent({components:{VvIcon:Oe},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:[String,Object],default:we},iconHide:{type:[String,Object],default:xe}},emits:["toggle-password"],setup(e,{emit:l}){const o=t.ref(!1),a=t.computed((()=>o.value?e.iconHide:e.iconShow)),{hasIcon:n}=Se(a);return{active:o,activeIcon:a,hasIcon:n,onClick:function(t){null==t||t.stopPropagation(),e.disabled||(o.value=!o.value,l("toggle-password",o.value))}}},render(){const e=this.hasIcon?t.h(Oe,{...this.hasIcon,class:"vv-input-text__icon"}):void 0;return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},e)}}),Il=t.defineComponent({components:{VvIcon:Oe},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:e=>["up","down"].includes(e),default:"up"}},emits:["step-up","step-down"],setup(e,{emit:l}){const o=t.computed((()=>"up"===e.mode));return{isUp:o,onClick:t=>{null==t||t.stopPropagation(),e.disabled||l(o.value?"step-up":"step-down")}}},render(){return t.h("button",{class:["vv-input-text__action vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}});function Ml(e,l){return{name:"VvInputTextActions",components:{VvIcon:Oe,VvInputPasswordAction:zl,VvInputStepAction:Il,VvInputClearAction:Tl},setup:()=>({isDisabled:t.computed((()=>l.disabled||l.readonly)),labelStepUp:l.labelStepUp,labelStepDown:l.labelStepDown,labelShowPassword:l.labelShowPassword,labelHidePassword:l.labelHidePassword,labelClear:l.labelClear,iconShowPassword:l.iconShowPassword,iconHidePassword:l.iconHidePassword}),render(){let o=null;switch(e){case Ol.SEARCH:{const{onClear:e}=this.$attrs;o=[t.h(Tl,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:e})];break}case Ol.PASSWORD:{const{onTogglePassword:e}=this.$attrs;o=[t.h(zl,{disabled:this.isDisabled,onTogglePassword:e,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case Ol.NUMBER:{const{onStepUp:e,onStepDown:a}=this.$attrs;o=[t.h(Il,{mode:"up",disabled:this.isDisabled||void 0!==l.max&&l.modelValue===l.max,label:this.labelStepUp,onStepUp:e,onStepDown:a}),t.h(Il,{mode:"down",disabled:this.isDisabled||void 0!==l.min&&l.modelValue===l.min,label:this.labelStepDown,onStepUp:e,onStepDown:a})];break}}return Array.isArray(o)?t.h("div",{class:"vv-input-text__actions-group"},o):o}}}function Hl(e,l,o=0,{getter:a=e=>e,setter:n=e=>e}={}){let r;return"string"==typeof o&&(o=Number.parseInt(o)),t.computed({get:()=>a(null==e?void 0:e.value),set:e=>{r&&clearTimeout(r),r=setTimeout((()=>{l("update:modelValue",n(e))}),o)}})}function Fl(e,l){const o=t.computed((()=>(t.unref(e)??"").length)),a=t.computed((()=>void 0!==(null==l?void 0:l.lowerLimit)&&o.value<(null==l?void 0:l.lowerLimit)?o.value-l.lowerLimit:void 0!==(null==l?void 0:l.upperLimit)&&o.value<(null==l?void 0:l.upperLimit)?l.upperLimit-o.value:0)),n=t.computed((()=>{if(!1===(null==l?void 0:l.mode))return"";if("limit"===(null==l?void 0:l.mode)&&(null==l?void 0:l.upperLimit))return`${o.value} / ${l.lowerLimit?`${l.lowerLimit}-`:""}${l.upperLimit}`;if("countdown"===(null==l?void 0:l.mode)){if(0===a.value)return;return a}return o.value}));return{length:o,gap:a,formatted:n}}const jl=["for"],Ul={key:0,class:"vv-input-text__input-before"},Gl=["id"],Kl={key:1,class:"vv-input-text__unit"},Wl={key:5,class:"vv-input-text__input-after"},ql={key:6,class:"vv-input-text__limit"},Jl={class:"flex-1"},Xl=["title","onClick"],Yl=t.defineComponent({name:"VvInputText",props:Dl,emits:["update:modelValue","update:masked","accept","accept:typed","accept:masked","accept:unmasked","complete","complete:typed","complete:masked","complete:unmasked","focus","blur","keyup","keydown","keypress"],setup(e,{expose:o,emit:a}){const n=e,r=a,i=t.useSlots(),s=Vt("VvInputText",Dl,n),{count:d,debounce:c,icon:v,iconPosition:p,iconRemoveSuggestion:f,id:m,invalid:g,label:b,loading:y,maxlength:h,minlength:k,modelValue:S,step:B,storageKey:V,storageType:w,type:x,valid:C}=t.toRefs(n),_=ke(m),$=t.computed((()=>`${_.value}-hint`)),E=t.computed((()=>n.floating&&ut(n.placeholder)?" ":n.placeholder)),P=Hl(S,r,(null==c?void 0:c.value)??0),N=/^-0?[.,]?[0*]?$/,A=t.ref(!1),{el:L,mask:R,typed:O,masked:D,unmasked:T}=u.useIMask(t.computed((()=>{if(!n.iMask)return{mask:/./};if(n.iMask.mask===Number){const e={...n.iMask};return n.min&&(e.min=Number(n.min)),n.max&&(e.max=Number(n.max)),e}return n.iMask})),{emit:r,onAccept:()=>{if(A.value){if(r("update:masked",D.value),x.value===Ol.NUMBER){if(/^-$|^$/.test(T.value)){if(null===P.value||void 0===P.value)return;return void(P.value=void 0)}return N.test(T.value)?void(P.value=0):"number"!=typeof O.value?void(P.value=Number(O.value)):void(P.value=O.value)}if(x.value===Ol.DATE){if(L.value instanceof HTMLInputElement&&"date"===L.value.type)return void(P.value=L.value.value);let e=O.value;if(null===e||""===e){if(!P.value)return;return void(P.value="")}return e instanceof Date||(e=new Date(e)),void(P.value=`${e.getFullYear()}-${`0${e.getMonth()+1}`.slice(-2)}-${`0${e.getDate()}`.slice(-2)}`)}if(x.value===Ol.DATETIME_LOCAL){if(L.value instanceof HTMLInputElement&&"datetime-local"===L.value.type)return void(P.value=L.value.value);let e=O.value;if(null===e||""===e){if(!P.value)return;return void(P.value="")}return O.value instanceof Date||(e=new Date(e)),void(P.value=`${e.getFullYear()}-${`0${e.getMonth()+1}`.slice(-2)}-${`0${e.getDate()}`.slice(-2)}T${`0${e.getHours()}`.slice(-2)}:${`0${e.getMinutes()}`.slice(-2)}`)}(P.value||T.value)&&(P.value=T.value)}}});function z(e){var t;if(void 0===e)return O.value="",void(T.value="");(null==(t=n.iMask)?void 0:t.mask)!==Date?x.value===Ol.NUMBER&&N.test(T.value)&&0===e||(O.value=e,T.value=`${O.value}`):O.value=new Date(e)}t.onMounted((()=>{R.value&&(A.value=!0,z(n.modelValue))})),t.watch((()=>n.modelValue),(e=>{R.value&&z(e)})),t.watch((()=>n.masked),(e=>{D.value=e??""}));const I=L,M=t.ref(),H=t.ref(),F=t.ref();o({$inner:M});const{focused:j}=Kt(I,r),U=t.computed((()=>j.value&&!n.disabled&&!n.readonly));t.watch(U,(e=>{var t;e&&s.value.selectOnFocus&&I.value&&I.value.select(),e?null==(t=F.value)||t.show():setTimeout((()=>{if(se.value&&ce.value){const e=n.maxSuggestions-1;ce.value.size>e&&!ce.value.has(P.value)&&(ce.value=new Set([...ce.value].slice(ce.value.size-e))),ce.value.add(P.value)}}),300)}));const G=l.useElementVisibility(I);t.watch(G,(e=>{e&&n.autofocus&&!n.disabled&&!n.readonly&&(j.value=!0)}));const K=t.ref(!1),W=t.computed((()=>n.type===Ol.PASSWORD));function q(){K.value=!K.value}const J=t.computed((()=>n.type===Ol.TIME||n.type===Ol.DATETIME_LOCAL||n.type===Ol.DATE||n.type===Ol.WEEK||n.type===Ol.MONTH)),X=t.computed((()=>n.type===Ol.NUMBER));function Y(){if(re.value){if(n.iMask)return void(O.value=Number(O.value)+Number((null==B?void 0:B.value)??1));I.value.stepUp(),P.value=Number(t.unref(I).value)}}function Z(){if(re.value){if(n.iMask)return void(O.value=Number(O.value)-Number((null==B?void 0:B.value)??1));I.value.stepDown(),P.value=Number(t.unref(I).value)}}const Q=t.computed((()=>n.type===Ol.SEARCH));function ee(){P.value=""}const{hasIconBefore:te,hasIconAfter:le}=Se(v,p),oe=t.computed((()=>{if(void 0!==le.value)return le.value;switch(n.type){case Ol.COLOR:return{name:$e};case Ol.DATE:case Ol.DATETIME_LOCAL:case Ol.WEEK:case Ol.MONTH:return{name:Ce};case Ol.TIME:return{name:_e}}})),{hasIcon:ae}=Se(f),{formatted:ne}=Fl(P,{mode:d.value,upperLimit:Number(null==h?void 0:h.value),lowerLimit:Number(null==k?void 0:k.value)}),re=t.computed((()=>!n.disabled&&!n.readonly)),ie=t.computed((()=>re.value?n.tabindex:-1)),se=t.computed((()=>!ut(S))),de=t.computed((()=>!0===g.value||!0!==C.value&&void 0)),ce=fe(V,w,new Set),ve=t.computed((()=>ce.value?[...ce.value].filter((e=>ut(P.value)||`${e}`.toLowerCase().includes(`${P.value}`.toLowerCase())&&e!==P.value)).reverse():[])),pe=t.computed((()=>(null==V?void 0:V.value)&&ce.value&&ce.value.size>0));const{modifiers:me}=t.toRefs(n),ge=ue("vv-input-text",me,t.computed((()=>({valid:C.value,invalid:g.value,loading:y.value,disabled:n.disabled,readonly:n.readonly,"icon-before":!!te.value,"icon-after":!!oe.value,floating:n.floating&&!ut(n.label),dirty:se.value,focus:U.value,"auto-width":n.autoWidth})))),be=t.computed((()=>{const e=W.value&&K.value?Ol.TEXT:!J.value||se.value||j.value?n.iMask?Ol.TEXT:n.type:Ol.TEXT,t={type:e,name:n.name,tabindex:ie.value,disabled:n.disabled,readonly:n.readonly,required:n.required,autocomplete:n.autocomplete,"aria-invalid":de.value,"aria-describedby":Be.value?$.value:void 0,"aria-errormessage":Ve.value?$.value:void 0};if(e===Ol.DATE||e===Ol.MONTH||e===Ol.WEEK||e===Ol.TIME||e===Ol.DATETIME_LOCAL||e===Ol.NUMBER){let l=n.max;e!==Ol.DATE||l||(l="9999-12-31"),t.step=n.step,t.max=void 0!==l?String(l):void 0,t.min=void 0!==n.min?String(n.min):void 0}return e!==Ol.TEXT&&e!==Ol.SEARCH&&e!==Ol.URL&&e!==Ol.TEL&&e!==Ol.EMAIL&&e!==Ol.PASSWORD&&e!==Ol.NUMBER||(t.placeholder=E.value),e!==Ol.TEXT&&e!==Ol.SEARCH&&e!==Ol.URL&&e!==Ol.TEL&&e!==Ol.EMAIL&&e!==Ol.PASSWORD||(t.minlength=n.minlength,t.maxlength=n.maxlength,t.pattern=n.pattern),e===Ol.EMAIL&&(t.multiple=n.multiple),t})),ye=t.computed((()=>({valid:n.valid,invalid:n.invalid,modelValue:n.modelValue,togglePassword:q,stepUp:Y,stepDown:Z,clear:ee}))),{HintSlot:he,hasHintLabelOrSlot:Be,hasInvalidLabelOrSlot:Ve,hintSlotScope:we}=Bt(s,i),xe=Ml(Ol.PASSWORD,n),Ee=Ml(Ol.NUMBER,n),Pe=Ml(Ol.SEARCH,n);function Ne(){re.value&&(j.value=!0)}const Ae=t.computed((()=>{if(n.autoWidth)return{width:void 0!==P.value?`${String(P.value).length+1}ch`:void 0}}));function Le(e){switch(e.code){case"ArrowUp":X.value&&(Y(),e.preventDefault());break;case"ArrowDown":X.value&&(Z(),e.preventDefault())}r("keydown",e)}return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(ge))},[t.unref(b)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(_),class:"vv-input-text__label"},t.toDisplayString(t.unref(b)),9,jl)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:H,class:"vv-input-text__wrapper"},[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Ul,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(ye))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"innerEl",ref:M,class:"vv-input-text__inner",onClick:t.withModifiers(Ne,["stop"])},[t.unref(te)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:0},t.unref(te),{class:"vv-input-text__icon"}),null,16)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(_),ref_key:"inputEl",ref:I},t.unref(be),{style:t.unref(Ae),onKeyup:l[0]||(l[0]=e=>r("keyup",e)),onKeydown:Le,onKeypress:l[1]||(l[1]=e=>r("keypress",e))}),null,16,Gl),(e.unit||e.$slots.unit)&&t.unref(se)?(t.openBlock(),t.createElementBlock("div",Kl,[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(t.unref(ye))),(()=>[t.createTextVNode(t.toDisplayString(e.unit),1)]))])):t.createCommentVNode("v-if",!0)],512),t.unref(oe)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:1},t.unref(oe),{class:"vv-input-text__icon vv-input-text__icon-after"}),null,16)):t.unref(W)&&!e.hideActions&&t.unref(re)?(t.openBlock(),t.createBlock(t.unref(xe),{key:2,onTogglePassword:q})):t.unref(X)&&!e.hideActions&&t.unref(re)?(t.openBlock(),t.createBlock(t.unref(Ee),{key:3,onStepUp:Y,onStepDown:Z})):t.unref(Q)&&!e.hideActions&&t.unref(re)?(t.openBlock(),t.createBlock(t.unref(Pe),{key:4,onClear:ee})):t.createCommentVNode("v-if",!0),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Wl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(ye))))])):t.createCommentVNode("v-if",!0),t.unref(d)?(t.openBlock(),t.createElementBlock("span",ql,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(ye))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(ne)),1)]))])):t.createCommentVNode("v-if",!0)],512),t.createVNode(t.unref(he),{id:t.unref($),class:"vv-input-text__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(we))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(we))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(we))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(we))))])),key:"3"}:void 0]),1032,["id"]),t.unref(pe)?(t.openBlock(),t.createBlock(zt,{key:1,ref_key:"dropdownEl",ref:F,reference:t.unref(H),"autofocus-first":!1,"trigger-width":!0},{items:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(ve),(l=>(t.openBlock(),t.createBlock(jt,{key:l,onClick:t.withModifiers((e=>{return t=l,P.value=t,void(null==(o=F.value)||o.hide());var t,o}),["stop"])},{default:t.withCtx((()=>[t.createElementVNode("div",Jl,[t.renderSlot(e.$slots,"suggestion",t.mergeProps({ref_for:!0},{value:l}),(()=>[t.createTextVNode(t.toDisplayString(l),1)]))]),t.unref(ce)&&t.unref(ae)?(t.openBlock(),t.createElementBlock("button",{key:0,type:"button",tabindex:"-1",class:"cursor-pointer",title:e.labelRemoveSuggestion,onClick:t.withModifiers((e=>{return t=l,void(null==(o=ce.value)||o.delete(t));var t,o}),["stop"])},[t.createVNode(Oe,t.mergeProps({ref_for:!0},t.unref(ae)),null,16)],8,Xl)):t.createCommentVNode("v-if",!0)])),_:2},1032,["onClick"])))),128))])),_:3},8,["reference"])):t.createCommentVNode("v-if",!0)],2))}}),Zl={...M,...ae},Ql={class:"vv-nav__item",role:"presentation"},eo=t.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:e=>(e,l)=>(t.openBlock(),t.createElementBlock("li",Ql,[t.createVNode(he,t.mergeProps(e.$attrs,{class:"vv-nav__item-label",role:"menuitem"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16)]))}),to=t.defineComponent({name:"VvNav",props:Zl,emits:["click"],setup(e,{emit:l}){const o=e,a=l,{modifiers:n}=t.toRefs(o);function r(e){var t;const l=e.target;if(null==l?void 0:l.dataset.index){const e=Number.parseInt(l.dataset.index),n=null==(t=o.items)?void 0:t[e];if(!n||(null==n?void 0:n.disabled))return;a("click",n)}}const i=ue("vv-nav",n);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(i))},[t.createElementVNode("ul",{class:"vv-nav__menu",role:"menu",onClick:t.withModifiers(r,["stop"])},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(({on:l={},data:o,...a},n)=>(t.openBlock(),t.createBlock(eo,t.mergeProps({key:n,"data-index":n,ref_for:!0},a,t.toHandlers(l)),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"item",t.mergeProps({ref_for:!0},{item:a,data:o,index:n}))])),_:2},1040,["data-index"])))),128))]))])],2))}}),lo={class:"vv-nav__separator",role:"separator"};const oo=((e,t)=>{const l=e.__vccOpts||e;for(const[o,a]of t)l[o]=a;return l})({name:"VvNavSeparator"},[["render",function(e,l,o,a,n,r){return t.openBlock(),t.createElementBlock("li",lo,[t.renderSlot(e.$slots,"default")])}]]),ao={...M,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},no=t.defineComponent({name:"VvProgress",props:ao,setup(e){const l=e,{value:o,max:a,label:n}=t.toRefs(l),r=t.computed((()=>void 0===l.value)),{modifiers:i}=t.toRefs(l),u=ue("vv-progress",i,t.computed((()=>({indeterminate:r.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("progress",t.normalizeProps(t.guardReactiveProps({class:t.unref(u),ariaLabel:t.unref(n),max:t.unref(a),value:t.unref(o)})),null,16))}}),ro=te;const io=["for"],uo=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],so=t.defineComponent({name:"VvRadio",props:ro,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=l,n=t.useSlots(),r=Vt("VvRadio",ro,o),{id:i,disabled:u,readonly:s,modelValue:d,valid:c,invalid:v}=function(e,l){const{id:o}=t.toRefs(e),{group:a,isInGroup:n,getGroupOrLocalRef:r}=re(B),i=r("modelValue",e,l),u=r("valid",e),s=r("invalid",e),d=t.computed((()=>Boolean(e.readonly||(null==a?void 0:a.readonly.value)))),c=t.computed((()=>Boolean(e.disabled||(null==a?void 0:a.disabled.value))));return{id:o,group:a,isInGroup:n,modelValue:i,valid:u,invalid:s,readonly:d,disabled:c}}(o,a),p=ke(i),f=t.computed((()=>`${p.value}-hint`)),m=t.computed((()=>b.value?-1:o.tabindex)),g=t.ref(),b=t.computed((()=>u.value||s.value)),y=t.computed((()=>!0===v.value||!0!==c.value&&void 0)),h=t.computed((()=>Array.isArray(d.value)?it(o.value,d.value):nt(o.value,d.value))),k=t.computed((()=>!["string","number","boolean"].includes(typeof o.value)||o.value)),S=t.computed({get:()=>h.value?k.value:null,set(e){Array.isArray(d.value)?d.value=[o.value]:d.value=o.value,a("change",e)}}),{modifiers:V}=t.toRefs(o),w=ue("vv-radio",V,t.computed((()=>({valid:c.value,invalid:v.value,disabled:u.value,readonly:s.value})))),{HintSlot:x,hasHintLabelOrSlot:C,hasInvalidLabelOrSlot:_,hintSlotScope:$}=Bt(r,n);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(w)),for:t.unref(p)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(p),ref_key:"input",ref:g,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(S)?S.value=e:null),type:"radio",class:"vv-radio__input",name:e.name,disabled:t.unref(b),value:t.unref(k),tabindex:t.unref(m),"aria-invalid":t.unref(y),"aria-describedby":t.unref(C)?t.unref(f):void 0,"aria-errormessage":t.unref(_)?t.unref(f):void 0},null,8,uo),[[t.vModelRadio,t.unref(S)]]),t.renderSlot(e.$slots,"default",{value:t.unref(d)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(x),{id:t.unref(f),class:"vv-radio__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref($))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref($))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref($))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref($))))])),key:"3"}:void 0]),1032,["id"])],10,io))}}),co=le,vo=["textContent"],po={class:"vv-radio-group__wrapper"},fo=t.defineComponent({name:"VvRadioGroup",props:co,emits:["update:modelValue","change"],setup(e,{emit:o}){const a=e,n=o,r=t.useSlots(),i=Vt("VvRadioGroup",co,a),u=l.useVModel(a,"modelValue",n),{disabled:s,readonly:d,vertical:c,valid:v,invalid:p,modifiers:f}=t.toRefs(a);me(B,{modelValue:u,disabled:s,readonly:d,valid:v,invalid:p});const{getOptionLabel:m,getOptionValue:g}=$t(a),b=ue("vv-radio-group",f,t.computed((()=>({disabled:s.value,readonly:d.value,horizontal:!c.value,valid:v.value,invalid:p.value}))));const{HintSlot:y,hintSlotScope:h}=Bt(i,r);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(b))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,vo)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",po,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(so,t.mergeProps({key:l,ref_for:!0},function(e,t){return{id:`${a.name}_opt${t}`,name:a.name,label:m(e),value:g(e)}}(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(y),{class:"vv-radio-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(h))))])),key:"3"}:void 0]),1024)],2))}}),mo={...M,navModifiers:{type:[String,Array]},modelValue:{type:String,default:""},items:{type:Array,default:()=>[]}},go=t.defineComponent({name:"VvTab",props:mo,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,a=l,{modifiers:n,items:r}=t.toRefs(o),i=t.computed((()=>r.value.reduce(((e,t)=>(t.tab&&e.push(t.tab),e)),[]))),u=t.ref(),s=t.computed({get:()=>{var e;return o.modelValue||u.value||(null==(e=i.value)?void 0:e[0])},set:e=>{u.value=e,a("update:modelValue",e)}}),d=t.computed((()=>{var e;return["tabs",...Array.isArray(o.navModifiers)?o.navModifiers:(null==(e=o.navModifiers)?void 0:e.split(" "))??[]]}));function c(e){e.tab&&(s.value=e.tab)}const v=t.computed((()=>o.items.map((e=>({current:e.tab===s.value,...e}))))),p=ue("vv-tab",n);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(p))},[t.createVNode(to,t.mergeProps({items:t.unref(v),modifiers:t.unref(d)},{onClick:c}),{item:t.withCtx((({item:l,data:o,index:a})=>[t.renderSlot(e.$slots,"nav-item",t.normalizeProps(t.guardReactiveProps({item:l,data:o,index:a})))])),_:3},16),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(r),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[l.tab?(t.openBlock(),t.createElementBlock("article",{key:0,class:t.normalizeClass([{target:t.unref(s)===l.tab},"vv-tab__panel"])},[t.renderSlot(e.$slots,`panel::${l.tab}`)],2)):t.createCommentVNode("v-if",!0)],64)))),128))],2))}}),bo={...ee,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:"soft"},spellcheck:{type:[Boolean,String],default:"default"},resizable:Boolean},yo=["for"],ho={class:"vv-textarea__wrapper"},ko={key:0,class:"vv-textarea__input-before"},So={class:"vv-textarea__inner"},Bo=["id"],Vo={key:1,class:"vv-textarea__input-after"},wo={key:2,class:"vv-textarea__limit"},xo=t.defineComponent({name:"VvTextarea",props:bo,emits:["update:modelValue","focus","blur","keyup"],setup(e,{emit:o}){const a=e,n=o,r=t.useSlots(),i=Vt("VvTextarea",bo,a),u=t.ref(),{id:s,icon:d,iconPosition:c,label:v,modelValue:p,count:f,valid:m,invalid:g,loading:b,modifiers:y,debounce:h,minlength:k,maxlength:S}=t.toRefs(a),B=ke(s),V=t.computed((()=>`${B.value}-hint`)),w=t.computed((()=>a.floating&&ut(a.placeholder)?" ":a.placeholder)),x=Hl(p,n,null==h?void 0:h.value),{hasIconBefore:C,hasIconAfter:_}=Se(d,c),{focused:$}=Kt(u,n),E=l.useElementVisibility(u);t.watch(E,(e=>{e&&a.autofocus&&($.value=!0)}));const{formatted:P}=Fl(x,{mode:null==f?void 0:f.value,upperLimit:Number(null==S?void 0:S.value),lowerLimit:Number(null==k?void 0:k.value)}),N=t.computed((()=>!a.disabled&&!a.readonly)),A=t.computed((()=>N.value?a.tabindex:-1)),L=t.computed((()=>!ut(p))),R=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:O,hasHintLabelOrSlot:D,hasInvalidLabelOrSlot:T,hintSlotScope:z}=Bt(i,r),I=ue("vv-textarea",y,t.computed((()=>({valid:m.value,invalid:g.value,loading:b.value,disabled:a.disabled,readonly:a.readonly,"icon-before":void 0!==C.value,"icon-after":void 0!==_.value,floating:a.floating&&!ut(a.label),dirty:L.value,focus:$.value,resizable:a.resizable})))),M=t.computed((()=>({name:a.name,placeholder:w.value,tabindex:A.value,disabled:a.disabled,readonly:a.readonly,required:a.required,autocomplete:a.autocomplete,minlength:a.minlength,maxlength:a.maxlength,cols:a.cols,rows:a.rows,wrap:a.wrap,spellcheck:a.spellcheck,"aria-invalid":R.value,"aria-describedby":D.value?V.value:void 0,"aria-errormessage":T.value?V.value:void 0}))),H=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue,hintLabel:a.hintLabel,maxlength:a.maxlength,minlength:a.minlength,clear:F})));function F(){x.value=void 0}return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(I))},[t.unref(v)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(B),class:"vv-textarea__label"},t.toDisplayString(t.unref(v)),9,yo)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",ho,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",ko,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(H))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",So,[t.unref(C)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:0},t.unref(C),{class:"vv-textarea__icon"}),null,16)):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(B),ref_key:"textarea",ref:u,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(x)?x.value=e:null)},t.unref(M),{onKeyup:l[1]||(l[1]=e=>n("keyup",e))}),null,16,Bo),[[t.vModelText,t.unref(x)]]),t.unref(_)?(t.openBlock(),t.createBlock(Oe,t.mergeProps({key:1},t.unref(_),{class:"vv-textarea__icon vv-textarea__icon-after"}),null,16)):t.createCommentVNode("v-if",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Vo,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(H))))])):t.createCommentVNode("v-if",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("span",wo,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(H))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(P)),1)]))])):t.createCommentVNode("v-if",!0)]),t.createVNode(t.unref(O),{id:t.unref(V),class:"vv-textarea__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"3"}:void 0]),1032,["id"])],2))}}),Co={...M,position:{type:String,default:c.bottom},value:{type:String}},_o=t.defineComponent({name:"VvTooltip",props:Co,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ue("vv-tooltip",o,t.computed((()=>({[l.position]:!0}))));return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"tooltip",inert:""},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}});e.VvAccordion=ve,e.VvAccordionGroup=ge,e.VvAction=he,e.VvAlert=He,e.VvAlertGroup=Ue,e.VvAvatar=qe,e.VvAvatarGroup=Ye,e.VvBadge=Qe,e.VvBreadcrumb=ot,e.VvButton=ct,e.VvButtonGroup=ft,e.VvCard=ht,e.VvCheckbox=Ct,e.VvCheckboxGroup=Nt,e.VvCombobox=fl,e.VvDialog=kl,e.VvDropdown=zt,e.VvDropdownAction=Sl,e.VvDropdownItem=Ht,e.VvDropdownOptgroup=Mt,e.VvDropdownOption=jt,e.VvIcon=Oe,e.VvInputFile=Rl,e.VvInputText=Yl,e.VvNav=to,e.VvNavItem=eo,e.VvNavSeparator=oo,e.VvProgress=no,e.VvRadio=so,e.VvRadioGroup=fo,e.VvSelect=ol,e.VvTab=go,e.VvTextarea=xo,e.VvTooltip=_o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Injects alert group name
3
+ */
4
+ export declare function useInjectedAlertGroup(): import("../..").AlertGroupState;