@volverjs/ui-vue 0.0.10-beta.47 → 0.0.10-beta.49

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 (357) hide show
  1. package/README.md +2 -2
  2. package/auto-imports.d.ts +19 -11
  3. package/bin/icons.js +1 -0
  4. package/dist/components/VvAccordion/VvAccordion.es.js +4 -5
  5. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  6. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +8 -11
  7. package/dist/components/VvAccordion/index.d.ts +2 -2
  8. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +45 -46
  9. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +11 -13
  11. package/dist/components/VvAccordionGroup/index.d.ts +2 -2
  12. package/dist/components/VvAction/VvAction.vue.d.ts +8 -10
  13. package/dist/components/VvAction/index.d.ts +1 -1
  14. package/dist/components/VvAlert/VvAlert.es.js +158 -161
  15. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  16. package/dist/components/VvAlert/VvAlert.vue.d.ts +20 -22
  17. package/dist/components/VvAlert/index.d.ts +1 -1
  18. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +271 -274
  19. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  20. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +9 -11
  21. package/dist/components/VvAlertGroup/index.d.ts +2 -2
  22. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +6 -6
  23. package/dist/components/VvAvatar/index.d.ts +1 -1
  24. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +21 -22
  25. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  26. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +6 -6
  27. package/dist/components/VvAvatarGroup/index.d.ts +1 -1
  28. package/dist/components/VvBadge/VvBadge.vue.d.ts +6 -6
  29. package/dist/components/VvBadge/index.d.ts +1 -1
  30. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +23 -23
  31. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  32. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +19 -19
  33. package/dist/components/VvBreadcrumb/index.d.ts +1 -1
  34. package/dist/components/VvButton/VvButton.es.js +313 -314
  35. package/dist/components/VvButton/VvButton.umd.js +1 -1
  36. package/dist/components/VvButton/VvButton.vue.d.ts +14 -16
  37. package/dist/components/VvButton/index.d.ts +9 -9
  38. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +2 -2
  39. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +6 -8
  40. package/dist/components/VvButtonGroup/index.d.ts +1 -1
  41. package/dist/components/VvCard/VvCard.vue.d.ts +6 -6
  42. package/dist/components/VvCard/index.d.ts +1 -1
  43. package/dist/components/VvCheckbox/VvCheckbox.es.js +186 -187
  44. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  45. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +11 -13
  46. package/dist/components/VvCheckbox/index.d.ts +7 -7
  47. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -191
  48. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  49. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +11 -13
  50. package/dist/components/VvCheckboxGroup/index.d.ts +2 -2
  51. package/dist/components/VvCombobox/VvCombobox.es.js +1864 -1865
  52. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  53. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +72 -291
  54. package/dist/components/VvCombobox/index.d.ts +1 -1
  55. package/dist/components/VvDialog/VvDialog.vue.d.ts +7 -9
  56. package/dist/components/VvDialog/index.d.ts +1 -1
  57. package/dist/components/VvDropdown/VvDropdown.es.js +9 -10
  58. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  59. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +51 -51
  60. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +22 -16
  61. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +4 -4
  62. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +4 -4
  63. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +6 -6
  64. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +2 -2
  65. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +2 -2
  66. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +2 -2
  67. package/dist/components/VvIcon/VvIcon.vue.d.ts +2 -23
  68. package/dist/components/VvInputFile/VvInputFile.es.js +651 -652
  69. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  70. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +19 -19
  71. package/dist/components/VvInputFile/index.d.ts +4 -4
  72. package/dist/components/VvInputText/VvInputClearAction.d.ts +10 -6
  73. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +11 -7
  74. package/dist/components/VvInputText/VvInputStepAction.d.ts +10 -6
  75. package/dist/components/VvInputText/VvInputText.es.js +715 -716
  76. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  77. package/dist/components/VvInputText/VvInputText.vue.d.ts +30 -32
  78. package/dist/components/VvInputText/index.d.ts +1 -1
  79. package/dist/components/VvNav/VvNav.es.js +5 -5
  80. package/dist/components/VvNav/VvNav.umd.js +1 -1
  81. package/dist/components/VvNav/VvNav.vue.d.ts +8 -10
  82. package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
  83. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
  84. package/dist/components/VvNav/index.d.ts +2 -2
  85. package/dist/components/VvProgress/VvProgress.vue.d.ts +6 -6
  86. package/dist/components/VvProgress/index.d.ts +1 -1
  87. package/dist/components/VvRadio/VvRadio.es.js +186 -187
  88. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  89. package/dist/components/VvRadio/VvRadio.vue.d.ts +10 -12
  90. package/dist/components/VvRadio/index.d.ts +5 -5
  91. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +190 -191
  92. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  93. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +11 -13
  94. package/dist/components/VvRadioGroup/index.d.ts +2 -2
  95. package/dist/components/VvSelect/VvSelect.es.js +337 -338
  96. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  97. package/dist/components/VvSelect/VvSelect.vue.d.ts +20 -131
  98. package/dist/components/VvSelect/index.d.ts +7 -7
  99. package/dist/components/VvTab/VvTab.es.js +18 -18
  100. package/dist/components/VvTab/VvTab.umd.js +1 -1
  101. package/dist/components/VvTab/VvTab.vue.d.ts +6 -8
  102. package/dist/components/VvTab/index.d.ts +1 -1
  103. package/dist/components/VvTextarea/VvTextarea.es.js +292 -293
  104. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  105. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +14 -16
  106. package/dist/components/VvTextarea/index.d.ts +3 -3
  107. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +8 -8
  108. package/dist/components/common/HintSlot.d.ts +6 -6
  109. package/dist/components/index.d.ts +1 -1
  110. package/dist/components/index.es.js +2760 -2763
  111. package/dist/components/index.umd.js +1 -1
  112. package/dist/composables/alert/useAlert.d.ts +4 -4
  113. package/dist/composables/alert/{useProvideAlert.d.ts → useAlertProvide.d.ts} +1 -1
  114. package/dist/composables/dropdown/useDropdownContextmenu.d.ts +18 -0
  115. package/dist/composables/dropdown/{useProvideDropdown.d.ts → useDropdownProvide.d.ts} +6 -6
  116. package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +17 -0
  117. package/dist/composables/group/{useInjectedGroupState.d.ts → useGroupStateInject.d.ts} +1 -1
  118. package/dist/composables/group/{useProvideGroupState.d.ts → useGroupStateProvide.d.ts} +2 -2
  119. package/dist/composables/index.d.ts +2 -0
  120. package/dist/composables/index.es.js +87 -3
  121. package/dist/composables/index.umd.js +1 -1
  122. package/dist/composables/useComponentFocus.d.ts +1 -1
  123. package/dist/composables/useOptions.d.ts +1 -1
  124. package/dist/composables/usePersistence.d.ts +1 -1
  125. package/dist/composables/useUniqueId.d.ts +1 -1
  126. package/dist/constants.d.ts +3 -3
  127. package/dist/directives/index.d.ts +2 -2
  128. package/dist/directives/index.es.js +145 -39
  129. package/dist/directives/index.umd.js +1 -1
  130. package/dist/directives/v-contextmenu.es.js +137 -31
  131. package/dist/directives/v-contextmenu.umd.js +1 -1
  132. package/dist/icons.d.ts +17 -17
  133. package/dist/icons.es.js +424 -424
  134. package/dist/icons.umd.js +1 -1
  135. package/dist/index.d.ts +1 -1
  136. package/dist/index.umd.js +1 -1
  137. package/dist/props/index.d.ts +4 -4
  138. package/dist/resolvers/unplugin.umd.js +1 -1
  139. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +178 -474
  140. package/dist/stories/Alert/Alert.settings.d.ts +1 -1
  141. package/dist/stories/Alert/AlertModifiers.stories.d.ts +1 -1
  142. package/dist/stories/Alert/AlertSlots.stories.d.ts +1 -1
  143. package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +1 -1
  144. package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +1 -1
  145. package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
  146. package/dist/stories/Button/Button.settings.d.ts +1 -1
  147. package/dist/stories/Combobox/Combobox.settings.d.ts +1 -1
  148. package/dist/stories/Nav/Nav.settings.d.ts +1 -1
  149. package/dist/stories/Tab/Tab.settings.d.ts +1 -1
  150. package/dist/types/floating-ui.d.ts +1 -1
  151. package/dist/types/group.d.ts +1 -1
  152. package/dist/types/index.d.ts +2 -2
  153. package/dist/utils/DomUtilities.d.ts +1 -0
  154. package/package.json +43 -43
  155. package/src/Volver.ts +3 -3
  156. package/src/assets/icons/detailed.json +1 -1
  157. package/src/assets/icons/normal.json +1 -1
  158. package/src/assets/icons/simple.json +1 -1
  159. package/src/components/VvAccordion/VvAccordion.vue +5 -5
  160. package/src/components/VvAccordion/index.ts +2 -2
  161. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +5 -5
  162. package/src/components/VvAction/VvAction.vue +1 -1
  163. package/src/components/VvAlert/VvAlert.vue +1 -1
  164. package/src/components/VvAlert/index.ts +1 -1
  165. package/src/components/VvAlertGroup/VvAlertGroup.vue +1 -1
  166. package/src/components/VvAlertGroup/index.ts +3 -3
  167. package/src/components/VvAvatarGroup/VvAvatarGroup.vue +1 -1
  168. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +2 -2
  169. package/src/components/VvBreadcrumb/index.ts +1 -1
  170. package/src/components/VvButton/VvButton.vue +3 -3
  171. package/src/components/VvButton/index.ts +4 -4
  172. package/src/components/VvButtonGroup/VvButtonGroup.vue +3 -3
  173. package/src/components/VvCheckbox/VvCheckbox.vue +2 -2
  174. package/src/components/VvCheckbox/index.ts +2 -2
  175. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +2 -2
  176. package/src/components/VvCombobox/VvCombobox.vue +9 -9
  177. package/src/components/VvCombobox/index.ts +15 -15
  178. package/src/components/VvDropdown/VvDropdown.vue +19 -19
  179. package/src/components/VvDropdown/VvDropdownAction.vue +1 -1
  180. package/src/components/VvDropdown/VvDropdownItem.vue +1 -1
  181. package/src/components/VvDropdown/VvDropdownOption.vue +1 -1
  182. package/src/components/VvDropdown/index.ts +2 -2
  183. package/src/components/VvIcon/VvIcon.vue +2 -2
  184. package/src/components/VvInputFile/VvInputFile.vue +7 -7
  185. package/src/components/VvInputFile/index.ts +7 -7
  186. package/src/components/VvInputText/VvInputPasswordAction.ts +1 -1
  187. package/src/components/VvInputText/VvInputText.vue +19 -19
  188. package/src/components/VvInputText/VvInputTextActions.ts +4 -4
  189. package/src/components/VvInputText/index.ts +2 -2
  190. package/src/components/VvNav/VvNav.vue +1 -1
  191. package/src/components/VvRadio/VvRadio.vue +1 -1
  192. package/src/components/VvRadio/index.ts +2 -2
  193. package/src/components/VvRadioGroup/VvRadioGroup.vue +2 -2
  194. package/src/components/VvSelect/VvSelect.vue +6 -6
  195. package/src/components/VvSelect/index.ts +12 -12
  196. package/src/components/VvTab/VvTab.vue +2 -2
  197. package/src/components/VvTab/index.ts +1 -1
  198. package/src/components/VvTextarea/VvTextarea.vue +1 -1
  199. package/src/components/common/HintSlot.ts +14 -14
  200. package/src/components/index.ts +1 -1
  201. package/src/composables/alert/useAlert.ts +2 -2
  202. package/src/composables/alert/{useProvideAlert.ts → useAlertProvide.ts} +2 -2
  203. package/src/composables/dropdown/useDropdownContextmenu.ts +22 -0
  204. package/src/composables/dropdown/{useProvideDropdown.ts → useDropdownProvide.ts} +9 -9
  205. package/src/composables/dropdown/useDropdownVirtualElement.ts +53 -0
  206. package/src/composables/group/{useInjectedGroupState.ts → useGroupStateInject.ts} +2 -2
  207. package/src/composables/group/{useProvideGroupState.ts → useGroupStateProvide.ts} +2 -2
  208. package/src/composables/index.ts +2 -0
  209. package/src/composables/useBlurhash.ts +2 -2
  210. package/src/composables/useOptions.ts +1 -1
  211. package/src/composables/usePersistence.ts +1 -1
  212. package/src/composables/useTextCount.ts +2 -2
  213. package/src/composables/useUniqueId.ts +2 -3
  214. package/src/constants.ts +5 -5
  215. package/src/directives/index.ts +2 -2
  216. package/src/directives/v-contextmenu.ts +21 -29
  217. package/src/directives/v-tooltip.ts +2 -2
  218. package/src/icons.ts +2 -2
  219. package/src/index.ts +1 -1
  220. package/src/props/index.ts +7 -7
  221. package/src/resolvers/unplugin.ts +5 -5
  222. package/src/stories/Accordion/Accordion.stories.ts +2 -2
  223. package/src/stories/Accordion/Accordion.test.ts +1 -1
  224. package/src/stories/Accordion/AccordionSlots.stories.ts +2 -2
  225. package/src/stories/AccordionGroup/AccordionGroup.stories.ts +2 -2
  226. package/src/stories/AccordionGroup/AccordionGroup.test.ts +1 -1
  227. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +3 -3
  228. package/src/stories/Alert/Alert.settings.ts +1 -1
  229. package/src/stories/Alert/Alert.stories.ts +2 -2
  230. package/src/stories/Alert/Alert.test.ts +1 -1
  231. package/src/stories/Alert/AlertModifiers.stories.ts +2 -2
  232. package/src/stories/Alert/AlertSlots.stories.ts +2 -2
  233. package/src/stories/AlertGroup/AlertGroup.stories.ts +2 -2
  234. package/src/stories/AlertGroup/AlertGroup.test.ts +3 -3
  235. package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +2 -2
  236. package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +2 -2
  237. package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +2 -2
  238. package/src/stories/Avatar/Avatar.stories.ts +2 -2
  239. package/src/stories/Avatar/Avatar.test.ts +1 -1
  240. package/src/stories/Avatar/AvatarBadge.stories.ts +1 -1
  241. package/src/stories/Avatar/AvatarModifiers.stories.ts +2 -2
  242. package/src/stories/Avatar/AvatarSlots.stories.ts +2 -2
  243. package/src/stories/AvatarGroup/AvatarGroup.stories.ts +2 -2
  244. package/src/stories/AvatarGroup/AvatarGroup.test.ts +1 -1
  245. package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +2 -2
  246. package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +3 -3
  247. package/src/stories/Badge/Badge.stories.ts +2 -2
  248. package/src/stories/Badge/Badge.test.ts +1 -1
  249. package/src/stories/Badge/BadgeSlots.stories.ts +2 -2
  250. package/src/stories/Blurhash/BlurhashComposable.stories.ts +37 -117
  251. package/src/stories/Breadcrumb/Breadcrumb.stories.ts +2 -2
  252. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +5 -5
  253. package/src/stories/Button/Button.settings.ts +3 -3
  254. package/src/stories/Button/Button.stories.ts +2 -2
  255. package/src/stories/Button/Button.test.ts +1 -1
  256. package/src/stories/Button/ButtonIcon.stories.ts +2 -2
  257. package/src/stories/Button/ButtonLink.stories.ts +2 -2
  258. package/src/stories/Button/ButtonLoading.stories.ts +2 -2
  259. package/src/stories/Button/ButtonModifiers.stories.ts +2 -2
  260. package/src/stories/Button/ButtonSlots.stories.ts +3 -3
  261. package/src/stories/Button/ButtonState.stories.ts +2 -2
  262. package/src/stories/Button/ButtonToggle.stories.ts +2 -2
  263. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +2 -2
  264. package/src/stories/ButtonGroup/ButtonGroup.stories.ts +2 -2
  265. package/src/stories/ButtonGroup/ButtonGroup.test.ts +1 -1
  266. package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +2 -2
  267. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +2 -2
  268. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +2 -2
  269. package/src/stories/Card/Card.stories.ts +2 -2
  270. package/src/stories/Card/Card.test.ts +1 -1
  271. package/src/stories/Card/CardSlots.stories.ts +2 -2
  272. package/src/stories/Checkbox/Checkbox.stories.ts +2 -2
  273. package/src/stories/Checkbox/Checkbox.test.ts +1 -1
  274. package/src/stories/Checkbox/CheckboxBinary.stories.ts +2 -2
  275. package/src/stories/Checkbox/CheckboxSlots.stories.ts +2 -2
  276. package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +2 -2
  277. package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +2 -2
  278. package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +2 -2
  279. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +3 -3
  280. package/src/stories/Combobox/Combobox.settings.ts +9 -9
  281. package/src/stories/Combobox/Combobox.stories.ts +2 -2
  282. package/src/stories/Combobox/Combobox.test.ts +2 -2
  283. package/src/stories/Combobox/ComboboxIconPosition.stories.ts +2 -2
  284. package/src/stories/Combobox/ComboboxMultiple.stories.ts +2 -2
  285. package/src/stories/Combobox/ComboboxOptions.stories.ts +2 -2
  286. package/src/stories/Combobox/ComboboxSlots.stories.ts +3 -3
  287. package/src/stories/Dialog/Dialog.stories.ts +2 -2
  288. package/src/stories/Dialog/Dialog.test.ts +1 -1
  289. package/src/stories/Dialog/DialogModifiers.stories.ts +2 -2
  290. package/src/stories/Dialog/DialogSlots.stories.ts +2 -2
  291. package/src/stories/Dropdown/Dropdown.settings.ts +1 -1
  292. package/src/stories/Dropdown/Dropdown.stories.ts +4 -4
  293. package/src/stories/Dropdown/Dropdown.test.ts +1 -1
  294. package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +3 -4
  295. package/src/stories/Dropdown/DropdownMultilevel.stories.ts +4 -4
  296. package/src/stories/Dropdown/DropdownSlots.stories.ts +4 -4
  297. package/src/stories/Icon/Icon.settings.ts +1 -1
  298. package/src/stories/Icon/Icon.stories.ts +2 -2
  299. package/src/stories/Icon/IconsCollection.stories.ts +3 -3
  300. package/src/stories/InputFile/InputFile.settings.ts +1 -1
  301. package/src/stories/InputFile/InputFile.stories.ts +1 -1
  302. package/src/stories/InputFile/InputFileDropArea.stories.ts +2 -2
  303. package/src/stories/InputFile/InputFileIconPosition.stories.ts +2 -2
  304. package/src/stories/InputFile/InputFileSlots.stories.ts +2 -2
  305. package/src/stories/InputText/InputText.settings.ts +2 -2
  306. package/src/stories/InputText/InputText.stories.ts +2 -2
  307. package/src/stories/InputText/InputText.test.ts +2 -2
  308. package/src/stories/InputText/InputTextIconPosition.stories.ts +2 -2
  309. package/src/stories/InputText/InputTextLength.stories.ts +2 -2
  310. package/src/stories/InputText/InputTextMask.stories.ts +2 -2
  311. package/src/stories/InputText/InputTextMinMax.stories.ts +2 -2
  312. package/src/stories/InputText/InputTextSlots.stories.ts +2 -2
  313. package/src/stories/InputText/InputTextType.stories.ts +2 -2
  314. package/src/stories/Nav/Nav.settings.ts +1 -1
  315. package/src/stories/Nav/Nav.stories.ts +2 -2
  316. package/src/stories/Nav/Nav.test.ts +1 -1
  317. package/src/stories/Nav/NavModifiers.stories.ts +2 -2
  318. package/src/stories/Progress/Progress.stories.ts +2 -2
  319. package/src/stories/Progress/Progress.test.ts +2 -2
  320. package/src/stories/Radio/Radio.stories.ts +2 -2
  321. package/src/stories/Radio/Radio.test.ts +1 -1
  322. package/src/stories/Radio/RadioSlots.stories.ts +2 -2
  323. package/src/stories/RadioGroup/RadioGroup.stories.ts +2 -2
  324. package/src/stories/RadioGroup/RadioGroup.test.ts +2 -2
  325. package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +2 -2
  326. package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +3 -3
  327. package/src/stories/Select/Select.settings.ts +10 -10
  328. package/src/stories/Select/Select.stories.ts +2 -2
  329. package/src/stories/Select/Select.test.ts +1 -1
  330. package/src/stories/Select/SelectIconPosition.stories.ts +2 -2
  331. package/src/stories/Select/SelectOptions.stories.ts +2 -2
  332. package/src/stories/Select/SelectSlots.stories.ts +2 -2
  333. package/src/stories/Tab/Tab.settings.ts +1 -1
  334. package/src/stories/Tab/Tab.stories.ts +1 -1
  335. package/src/stories/Tab/Tab.test.ts +1 -1
  336. package/src/stories/Textarea/Textarea.settings.ts +1 -1
  337. package/src/stories/Textarea/Textarea.stories.ts +2 -2
  338. package/src/stories/Textarea/Textarea.test.ts +1 -1
  339. package/src/stories/Textarea/TextareaLength.stories.ts +2 -2
  340. package/src/stories/Textarea/TextareaSlots.stories.ts +2 -2
  341. package/src/stories/Textarea/TextareatIconPosition.stories.ts +2 -2
  342. package/src/stories/Tooltip/Tooltip.stories.ts +3 -3
  343. package/src/stories/Tooltip/Tooltip.test.ts +1 -1
  344. package/src/stories/Tooltip/TooltipDirective.stories.ts +3 -3
  345. package/src/test/expect.ts +3 -3
  346. package/src/test/types.d.ts +2 -2
  347. package/src/types/floating-ui.ts +1 -1
  348. package/src/types/group.ts +1 -1
  349. package/src/types/index.ts +2 -2
  350. package/src/utils/DomUtilities.ts +15 -0
  351. package/src/utils/ObjectUtilities.ts +4 -4
  352. package/src/workers/blurhash.ts +1 -1
  353. package/dist/composables/alert/{useInjectAlert.d.ts → useAlerInject.d.ts} +0 -0
  354. package/dist/composables/dropdown/{useInjectDropdown.d.ts → useDropdownInject.d.ts} +0 -0
  355. package/src/assets/icons/normal/{dulicate.svg → duplicate.svg} +0 -0
  356. package/src/composables/alert/{useInjectAlert.ts → useAlerInject.ts} +0 -0
  357. package/src/composables/dropdown/{useInjectDropdown.ts → useDropdownInject.ts} +1 -1
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("uid"),require("@vueuse/core"),require("mitt"),require("@iconify/vue"),require("ts-dot-prop"),require("@floating-ui/vue"),require("vue-imask"),require("vuedraggable")):"function"==typeof define&&define.amd?define(["exports","vue","uid","@vueuse/core","mitt","@iconify/vue","ts-dot-prop","@floating-ui/vue","vue-imask","vuedraggable"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).components={},e.vue,e.uid,e.core,e.mitt,e.vue$1,e.tsDotProp,e.vue$2,e.vueImask,e.Sortable)}(this,(function(e,t,l,o,a,n,r,i,u,s){"use strict";var d=(e=>(e.local="local",e.session="session",e))(d||{}),c=(e=>(e.absolute="absolute",e.fixed="fixed",e))(c||{}),v=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(v||{}),p=(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))(p||{}),f=(e=>(e.before="before",e.after="after",e))(f||{}),m=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(m||{}),g=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(g||{}),b=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(b||{}),y=(e=>(e.listbox="listbox",e.menu="menu",e))(y||{}),h=(e=>(e.option="option",e.presentation="presentation",e))(h||{}),k=(e=>(e.alert="alert",e.alertdialog="alertdialog",e))(k||{});const S=Symbol.for("volver"),B=Symbol.for("buttonGroup"),V=Symbol.for("radioGroup"),w=Symbol.for("checkGroup"),x=Symbol.for("accordionGroup"),C=Symbol.for("dropdownTrigger"),_=Symbol.for("dropdownItem"),$=Symbol.for("dropdownAction"),E=Symbol.for("alertGroup"),P={to:{type:[String,Object]},href:String,target:String,rel:{type:String,default:"noopener noreferrer"}},N={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},A={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},L={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},R={disabled:{type:Boolean,default:!1}},O={selected:{type:Boolean,default:!1}},D={active:{type:Boolean,default:!1}},T={current:{type:Boolean,default:!1}},z={pressed:{type:Boolean,default:!1}},I={label:{type:[String,Number],default:void 0}},M={readonly:{type:Boolean,default:!1}},H={modifiers:{type:[String,Array],default:void 0}},F={hintLabel:{type:String,default:""}},j={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},U={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},G={debounce:{type:[Number,String],default:void 0}},K={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:f.before,validation:e=>Object.values(f).includes(e)}},W={tabindex:{type:[String,Number],default:0}},q={floating:{type:Boolean,default:!1}},J={unselectable:{type:Boolean,default:!0}},X={id:[String,Number]},Y={placement:{type:String,default:v.bottom,validator:e=>Object.values(v).includes(e)||Object.values(p).includes(e)},strategy:{type:String,default:void 0,validator:e=>Object.values(c).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}},Z={...X,name:{type:String,required:!0}},Q={autofocus:{type:Boolean,default:!1}},ee={autocomplete:{type:String,default:"off"}},te={...Z,...Q,...ee,...W,...R,...M,...N,...A,...F,...L,...H,...U,...G,...K,...q,...I,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}},le={...Z,...W,...N,...A,...F,...R,...M,...H,...I,...L,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[Object,Number,Boolean,String],default:void 0}},oe={...N,...A,...j,...F,...R,...M,...H,...I,...L,modelValue:{type:[String,Array,Boolean,Number,Symbol],default:void 0},name:{type:String,required:!0},vertical:{type:Boolean,default:!1}},ae={...R,...I,...z,...D,...T,...P,type:{type:String,default:m.button,validator:e=>Object.values(m).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:g.button}},ne={items:{type:Array,default:()=>[]}},re={storageType:{type:String,default:d.local,validator:e=>Object.values(d).includes(e)},storageKey:String};function ie(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 ue={...H,name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},disabled:Boolean,not:Boolean};function se(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 de=["id","open"],ce=["aria-controls","aria-expanded"],ve=["aria-hidden"],pe=t.defineComponent({name:"VvAccordion",props:ue,emits:["update:modelValue"],setup(e,{expose:a,emit:n}){const r=e,i=n,u=t.useAttrs(),s=o.useVModel(r,"modelValue",i),d=t.computed((()=>r.name||(null==u?void 0:u.id)||l.uid())),{title:c,content:v,not:p}=t.toRefs(r),{isInGroup:f,modifiers:m,disabled:g,bus:b}=function(e){const{group:l,isInGroup:o}=ie(x),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}}(r),y=t.ref(!1);function h(){g.value||(f.value?null==b||b.emit("toggle",{name:d.value,value:!y.value}):y.value=!y.value)}function k(){y.value||h()}function S(){y.value&&h()}function B(e){b?b.emit("expand",{name:e}):console.warn(`[VvAccordion]: You are trying to expand accordion group of "${d.value}" but it is not in a group`)}function V(e){b?null==b||b.emit("collapse",{name:e}):console.warn(`[VvAccordion]: You are trying to collapse accordion group of "${d.value}" but it is not in a group`)}t.watch(s,(e=>{"boolean"==typeof e&&(y.value=p.value?!e:e)}),{immediate:!0}),t.watch(y,(e=>{s.value=p.value?!e:e})),null==b||b.on("toggle",(({name:e,value:t})=>{e===d.value&&(y.value=t)})),t.watch(d,((e,t)=>{b&&(t&&t!==e&&b.emit("unregister",{name:t}),b.emit("register",{name:e}))}),{immediate:!0}),t.onBeforeUnmount((()=>{b&&b.emit("unregister",{name:d.value})})),a({isExpanded:y,expand:k,collapse:S,groupExpand:B,groupCollapse:V});const w=se("vv-accordion",m,t.computed((()=>({disabled:g.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("details",{id:t.unref(d),class:t.normalizeClass(t.unref(w)),open:t.unref(y)},[t.createElementVNode("summary",{"aria-controls":t.unref(d),"aria-expanded":t.unref(y),class:"vv-accordion__summary",onClick:l[0]||(l[0]=t.withModifiers((e=>h()),["prevent"]))},[t.renderSlot(e.$slots,"summary",t.normalizeProps(t.guardReactiveProps({isExpanded:t.unref(y),expand:k,collapse:S,groupExpand:B,groupCollapse:V})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(c)),1)]))],8,ce),t.createElementVNode("div",{"aria-hidden":!t.unref(y),class:"vv-accordion__content"},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({isExpanded:t.unref(y),expand:k,collapse:S,groupExpand:B,groupCollapse:V})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(v)),1)]))],8,ve)],10,de))}}),fe={...H,...re,modelValue:{type:[String,Array],default:void 0},items:{type:Array,default:()=>[]},collapse:Boolean,itemModifiers:{type:[String,Array],default:""},disabled:Boolean,not:Boolean};function me(e,l=d.local,a){const n=t.ref();let r;return a&&(n.value=a),e&&t.watch(e,((e,a)=>{const i=t.unref(l)===d.session?sessionStorage:localStorage;a&&a!==e&&i.removeItem(a),r=e?o.useStorage(e,(null==r?void 0:r.value)??n.value,i):void 0}),{immediate:!0}),t.isRef(l)&&t.watch(l,((t,l)=>{if(null==e?void 0:e.value){if(t){const l=t===d.session?sessionStorage:localStorage;r=o.useStorage(e.value,(null==r?void 0:r.value)??n.value,l)}if(l&&l!==t){(l===d.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 ge(e,l){t.provide(e,l)}const be=t.defineComponent({name:"VvAccordionGroup",props:fe,emits:["update:modelValue"],setup(e,{expose:l,emit:o}){const n=e,r=o,{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=me(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=a();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})}ge(x,{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=se("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(pe,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))}}),ye=ae;function he(){return t.inject(S)}const ke=t.defineComponent({name:"VvAction",props:ye,emits:["click","mouseover","mouseleave"],setup(e,{expose:l,emit:o}){const a=e,n=o,r=t.getCurrentInstance(),i=he(),u=t.ref(null);l({$el:u});const{reference:s,bus:d,aria:c,expanded:v}=t.inject(C,{});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($,{}),m=t.computed((()=>{switch(!0){case a.disabled:return g.button;case void 0!==a.to:return(null==i?void 0:i.nuxt)?g.nuxtLink:g.routerLink;case void 0!==a.href:return g.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(m.value){case g.a:return{...e,href:a.href,target:a.target,rel:a.rel};case g.routerLink:case g.nuxtLink:return{...e,to:a.to,target:a.target};case g.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(m)),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"]))}}),Se="eye-on",Be="eye-off",Ve="calendar",we="time",xe="color",Ce="close",_e="add",$e="trash",Ee="edit",Pe="download",Ne={prefix:"normal"},Ae=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:{}},Ne),setup(e){const l=e,o=t.computed((()=>"string"==typeof l.rotate?Number.parseFloat(l.rotate):l.rotate)),a=t.ref(!0),r=he(),{modifiers:i}=t.toRefs(l),u=se("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(n.iconExists(t))return t;const o=null==r?void 0:r.iconsCollections.find((t=>{const l=`@${s.value}:${t.prefix}:${e}`;return n.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&&n.addIcon(`@${s.value}:${l.prefix}:${l.name}`,{body:o,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&l.src&&!n.iconExists(`@${s.value}:${l.prefix}:${l.name}`)&&(a.value=!1,r.fetchIcon(l.src).then((e=>{e&&(c(e),a.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(a)?(t.openBlock(),t.createBlock(t.unref(n.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)}});function Le(e){return t.computed((()=>String((null==e?void 0:e.value)||l.uid())))}function Re(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)===f.before?o.value:void 0)),n=t.computed((()=>(null==l?void 0:l.value)===f.after?o.value:void 0)),r=t.computed((()=>(null==l?void 0:l.value)===v.left?o.value:void 0)),i=t.computed((()=>(null==l?void 0:l.value)===v.right?o.value:void 0)),u=t.computed((()=>(null==l?void 0:l.value)===v.top?o.value:void 0)),s=t.computed((()=>(null==l?void 0:l.value)===v.bottom?o.value:void 0));return{hasIcon:o,hasIconLeft:r,hasIconRight:i,hasIconTop:u,hasIconBottom:s,hasIconBefore:a,hasIconAfter:n}}const Oe={...X,...K,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:k.alert}};function De(e,l){const{bus:o}=t.inject(E,{}),a=Le(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}=Re(t.computed((()=>e.icon))),v=se("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 Te={key:0,class:"vv-alert__header"},ze=["id"],Ie=["aria-label"],Me=[t.createElementVNode("div",{class:"vv-alert__close-mask"},null,-1)],He={key:1,class:"vv-alert__content"},Fe={key:2,class:"vv-alert__footer"},je=t.defineComponent({name:"VvAlert",props:Oe,emits:["close"],setup(e,{expose:l,emit:o}){const a=e,n=o,{hasProps:r,hasTitleId:i,hasIcon:u,close:s}=De(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",Te,[t.unref(u)?(t.openBlock(),t.createBlock(Ae,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,ze)):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"]))},Me,8,Ie)):t.createCommentVNode("v-if",!0)]))])):t.createCommentVNode("v-if",!0),e.$slots.default||e.content?(t.openBlock(),t.createElementBlock("div",He,[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",Fe,[t.renderSlot(e.$slots,"footer",{},(()=>[t.createTextVNode(t.toDisplayString(e.footer),1)]))])):t.createCommentVNode("v-if",!0)],16))}});const Ue={...H,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 Ge(e,l){const o=function({name:e}){const l=a();return t.provide(E,{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=[se("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 o.on("close",(e=>{l("close",e)})),{hasTransition:r,hasProps:t.computed((()=>({class:n.value})))}}const Ke=t.defineComponent({name:"VvAlertGroup",props:Ue,emits:["close","beforeEnter","afterLeave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(e,{emit:l}){const o=e,a=l,{hasProps:n,hasTransition:r}=Ge(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(je,t.mergeProps({ref_for:!0},e,{key:e.id}),null,16)))),128))]))])),_:3},16,["name"]),t.renderSlot(e.$slots,"after")],16))}}),We={...H,imgSrc:String},qe=["role","aria-label"],Je=["src"],Xe=t.defineComponent({name:"VvAvatar",props:We,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("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,Je)):t.createCommentVNode("v-if",!0)]))],10,qe))}}),Ye={...H,items:{type:Array,default:()=>[],required:!0},toShow:{type:Number,default:3},totalItems:{type:Number},avatarModifiers:[String,Array]},Ze={key:0},Qe=t.defineComponent({name:"VvAvatarGroup",props:Ye,setup(e){const l=e,{modifiers:o,items:a,toShow:n,totalItems:r,avatarModifiers:i}=t.toRefs(l),u=se("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||Le().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(Xe,t.mergeProps({key:e.key,ref_for:!0},{modifiers:e.modifiers,imgSrc:e.imgSrc}),{default:t.withCtx((()=>[e.text?(t.openBlock(),t.createElementBlock("span",Ze,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(Xe,{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))}}),et={...H,value:[String,Number]},tt=t.defineComponent({name:"VvBadge",props:et,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("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))}}),lt={...H,routes:Array},ot={class:"vv-breadcrumb__list"},at=["content"],nt=t.defineComponent({name:"VvBreadcrumb",props:lt,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("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",ot,[(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(ke,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},{route:o,index:a}),(()=>[t.createTextVNode(t.toDisplayString(l),1)]))])),_:2},1040,["class","aria-current"]),t.createElementVNode("meta",{itemprop:"position",content:`${a+1}`},null,8,at)],2)))),128))])],2))}}),rt={...ae,...X,...H,...J,...L,...K,iconPosition:{type:String,default:v.left,validator:e=>Object.values(v).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 it(e,t,l){return ut(e,t)}function ut(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(!ut(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],!ut(e[r],t[r]))return!1;return!0}return Number.isNaN(e)&&Number.isNaN(t)}function st(e,t){if(null!=e&&t&&t.length)for(const l of t)if(it(e,l))return!0;return!1}function dt(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 ct={key:1,class:"vv-button__label"},vt={key:1,class:"vv-button__label"},pt=t.defineComponent({name:"VvButton",inheritAttrs:!1,props:rt,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:c,label:p,modelValue:f,disabled:m,toggle:g,unselectable:b}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=ie(B),{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=Le(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 S=t.computed((()=>g.value?Array.isArray(f.value)?st(h.value,f.value):it(h.value,f.value):a.pressed)),V=se("vv-button",s,t.computed((()=>({reverse:[v.right,v.bottom].includes(d.value),column:[v.top,v.bottom].includes(d.value),"icon-only":Boolean((null==c?void 0:c.value)&&!(null==p?void 0:p.value)&&!i.default)})))),{hasIcon:w}=Re(c),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 st(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(ke,t.mergeProps({...t.unref(r),...t.unref(C),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(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(Ae,{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",ct,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(Ae,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",vt,[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"]))}}),ft={...H,...R,...J,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}},mt={key:0,class:"vv-button-group__legend"},gt=t.defineComponent({name:"VvButtonGroup",props:ft,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])});ge(B,{modelValue:c,disabled:n,toggle:r,multiple:u,unselectable:s,modifiers:d});const v=se("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",mt,[t.renderSlot(e.$slots,"legend",{},(()=>[t.createTextVNode(t.toDisplayString(e.legendLabel),1)]))])):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],2))}}),bt={...H,title:String},yt={key:0,class:"vv-card__header"},ht={key:1,class:"vv-card__content"},kt={key:2,class:"vv-card__footer"},St=t.defineComponent({name:"VvCard",props:bt,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("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",yt,[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",ht,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("v-if",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",kt,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)],2))}});function Bt(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function Vt(e,l){const o=t.computed((()=>t.isRef(e)?e.value:e)),a=t.computed((()=>Bt(o.value.invalidLabel))),n=t.computed((()=>Bt(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}}const wt={...le,...H,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function xt(e,l,o){const a=he(),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 Ct=["for"],_t=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],$t=t.defineComponent({name:"VvCheckbox",props:wt,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=l,n=t.useSlots(),r=xt("VvCheckbox",wt,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}=ie(w),{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=Le(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)),V=t.computed((()=>k.value?p.value===o.value:Array.isArray(p.value)?st(o.value,p.value):it(o.value,p.value))),x=t.computed((()=>!!f.value||!(V.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:()=>V.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=se("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}=Vt(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,_t),[[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,Ct))}}),Et=oe;function Pt(e){const{options:l,labelKey:o,valueKey:a,disabledKey:n}=t.toRefs(e);return{options:l,getOptionLabel:e=>"string"==typeof e?e:"function"==typeof o.value?o.value(e):String(o.value?r.get(e,o.value):e),getOptionValue:e=>"string"==typeof e?e:"function"==typeof a.value?a.value(e):a.value?r.get(e,a.value):e,isOptionDisabled:e=>"string"!=typeof e&&("function"==typeof n.value?n.value(e):!!n.value&&r.get(e,n.value)),getOptionGrouped:e=>"string"==typeof e?[]:"object"==typeof e&&e&&"options"in e?e.options:[]}}const Nt=["textContent"],At={class:"vv-checkbox-group__wrapper"},Lt=t.defineComponent({name:"VvCheckboxGroup",props:Et,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=xt("VvCheckboxGroup",Et,a),u=o.useVModel(a,"modelValue",n),{disabled:s,readonly:d,vertical:c,valid:v,invalid:p,modifiers:f}=t.toRefs(a);ge(w,{modelValue:u,disabled:s,readonly:d,valid:v,invalid:p});const{getOptionLabel:m,getOptionValue:g}=Pt(a),b=se("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}=Vt(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,Nt)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",At,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock($t,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))}}),Rt={...X,...Y,...H,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:y.menu,validator:e=>Object.values(y).includes(e)}},Ot={focusOnHover:{type:Boolean,default:!1}},Dt={...R,...O,...J,...H,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:l,emit:n}){const r=e,u=n,{id:s}=t.toRefs(r),d=Le(s),p=t.useAttrs(),f=t.ref("auto"),m=t.ref("auto"),g=t.ref(null),b=t.ref(),k=t.ref(null),S=t.ref(null),B=t.computed({get:()=>r.reference??g.value,set:e=>{g.value=e}}),V=t.ref(!1);t.onMounted((()=>{o.useMutationObserver(b.value,(()=>{var e;V.value="true"===(null==(e=window.getComputedStyle(b.value).getPropertyValue("--dropdown-custom-position"))?void 0:e.trim())}),{attributeFilter:["style"],window:window})}));const w=t.computed((()=>{const e=[];if(r.autoPlacement?"boolean"==typeof r.autoPlacement?e.push(i.autoPlacement()):e.push(i.autoPlacement(r.autoPlacement)):r.flip&&("boolean"==typeof r.flip?e.push(i.flip({fallbackStrategy:"initialPlacement"})):e.push(i.flip(r.flip))),r.shift&&("boolean"==typeof r.shift?e.push(i.shift()):e.push(i.shift(r.shift))),r.size){const t=({availableWidth:e,availableHeight:t})=>{f.value=`${e}px`,m.value=`${t}px`};"boolean"==typeof r.size?e.push(i.size({apply:t})):e.push(i.size({...r.size,apply:t}))}return r.offset&&(e.push(i.offset(Number(r.offset))),["string","number"].includes(typeof r.offset)?e.push(i.offset(Number(r.offset))):e.push(i.offset(r.offset))),r.arrow&&e.push(i.arrow({element:k})),e})),{x:x,y:$,middlewareData:E,placement:P,strategy:N}=i.useFloating(B,b,{whileElementsMounted:(...e)=>i.autoUpdate(...e,{animationFrame:r.strategy===c.fixed}),placement:t.computed((()=>r.placement)),strategy:t.computed((()=>r.strategy)),middleware:w}),A=t.computed((()=>{var e;if(V.value)return;const t=r.triggerWidth&&B.value?`${null==(e=B.value)?void 0:e.offsetWidth}px`:void 0;return{position:N.value,top:`${$.value??0}px`,left:`${x.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={[v.top]:v.bottom,[v.right]:v.left,[v.bottom]:v.top,[v.left]:v.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=o.useVModel(r,"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}l({toggle:M,show:z,hide:I,init:H,customPosition:V}),t.watch(T,(e=>{e&&r.autofocusFirst&&t.nextTick((()=>{const e=X(b.value);e.length>0&&e[0].focus({preventScroll:!0})}))})),o.onClickOutside(b,(()=>{!r.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":d.value,"aria-haspopup":!0,"aria-expanded":T.value}))),{component:U,bus:G}=function({reference:e,id:l,expanded:o,aria:n}){const r=a(),i=t.defineComponent({name:"VvDropdownTriggerProvider",setup(){t.provide(C,{reference:e,id:l,expanded:o,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:d,expanded:T,aria:j});G.on("click",M);const{role:K,modifiers:W}=t.toRefs(r),q=se("vv-dropdown",W,t.computed((()=>({arrow:r.arrow})))),{focused:J}=o.useFocusWithin(b);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=o.useElementHover(b),{itemRole:Z}=function({role:e,...l}){const o=t.computed((()=>e.value===y.listbox?h.option:h.presentation));return t.provide(_,{role:o,...l}),{itemRole:o}}({role:K,expanded:T,focused:J,hovered:Y});o.onKeyStroke("Escape",(e=>{T.value&&(e.preventDefault(),I())})),o.onKeyStroke("ArrowDown",(e=>{T.value&&J.value&&(e.preventDefault(),t.nextTick((()=>{if(J.value){const e=X(b.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=>{T.value&&J.value&&(e.preventDefault(),t.nextTick((()=>{if(J.value){const e=X(b.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;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:b,style:t.normalizeStyle(t.unref(A)),class:t.normalizeClass(t.unref(q))},[r.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(d),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=t.defineComponent({name:"VvDropdownItem",props:Ot,setup(e){const l=e,{role:a,expanded:n}=t.inject(_,{}),r=t.ref(null);!function({expanded:e}){t.provide($,{role:t.ref(b.menuitem),expanded:e})}({expanded:n});const i=o.useElementHover(r),{focused:u}=o.useFocus(r),{focused:s}=o.useFocusWithin(r);return t.watch(i,(e=>{e&&l.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))}}),Mt=["title"],Ht=t.defineComponent({name:"VvDropdownOption",props:Dt,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("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(It,{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,Mt)])),_:3},8,["class","tabindex","aria-selected","aria-disabled","focus-on-hover"]))}}),Ft={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},jt=t.defineComponent({name:"VvDropdownOptgroup",props:{...I},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",Ft,t.toDisplayString(l.label),1))}}),Ut={...Z,...Q,...ee,...W,...N,...A,...F,...L,...R,...M,...H,...j,...K,...q,...J,...I,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,l){const{focused:a}=o.useFocus(e);return t.watch(a,(o=>{l(o?"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:l}){const a=e,n=l,r=t.useSlots(),i=xt("VvSelect",Gt(),a),u=t.ref(),{HintSlot:s,hasHintLabelOrSlot:d,hasInvalidLabelOrSlot:c,hintSlotScope:v}=Vt(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=Le(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?n("update:modelValue",e):u.value.value=a.modelValue}}),N=t.computed((()=>Array.isArray(P.value)?P.value.length>0:void 0!==P.value&&null!==P.value)),A=o.useElementVisibility(u);t.watch(A,(e=>{e&&a.autofocus&&(p.value=!0)}));const{hasIconBefore:L,hasIconAfter:R}=Re(k,S),O=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),D=se("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}=Pt(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(Ae,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(Ae,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={...Z,...W,...N,...A,...F,...L,...R,...M,...H,...j,...K,...q,...Y,...I,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:{...Y.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 nl(){return{...al,options:{...al.options,type:Array},searchFunction:{...al.searchFunction,type:Function}}}const rl=["id"],il=["id","for"],ul=["id","aria-controls","placeholder"],sl={key:0,class:"vv-select__input-before"},dl={class:"vv-select__inner"},cl=["aria-controls","aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],vl={key:0,class:"vv-select__value"},pl=["aria-label","onClick"],fl={key:1,class:"vv-select__input-after"},ml={name:"VvCombobox",components:{VvDropdown:zt,VvDropdownOption:Ht,VvDropdownOptgroup:jt,VvButton:pt}},gl=t.defineComponent({...ml,props:nl(),emits:["update:modelValue","update:search","change:search","focus","blur"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=xt("VvCombobox",nl(),a),u=t.ref(null),s=t.ref(null),d=t.ref(null),c=t.ref(null),{HintSlot:v,hasHintLabelOrSlot:p,hasInvalidLabelOrSlot:f,hintSlotScope:m}=Vt(i,r),{focused:g}=Kt(u,n),{focused:b}=o.useFocusWithin(d);t.watch(g,(e=>{a.autoOpen&&(!e||S.value?e||!S.value||b.value||w():V())})),t.watch(b,(e=>{g.value||e||!S.value||w()}));const h=t.ref(""),k=o.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=Le($),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}=Re(E,P),te=se("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||b.value||S.value,floating:T.value,badges:a.badges})))),{getOptionLabel:le,getOptionValue:oe,getOptionGrouped:ae,isOptionDisabled:ne}=Pt(a);function re(e){return ne(e)||!X.value&&!ue(e)}const ie=o.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 ue(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=>ue(e))))),ce=t.computed((()=>de.value.map((e=>le(e))).join(a.separator)));function ve(){a.autoOpen?V():B()}function pe(e){const t=ue(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 o.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,il)):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(y).listbox,onAfterExpand:x,onAfterCollapse:C}),t.createSlots({default:t.withCtx((({aria:l})=>[e.$slots.before?(t.openBlock(),t.createElementBlock("div",sl,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(ge))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",dl,[t.unref(Q)?(t.openBlock(),t.createBlock(Ae,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(tt,{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(Ae,{name:"close"})],8,pl)):t.createCommentVNode("v-if",!0)])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock("div",vl,t.toDisplayString(t.unref(ce)),1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,cl),t.unref(ee)?(t.openBlock(),t.createBlock(Ae,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",fl,[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(jt,{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(Ht,t.mergeProps({ref_for:!0},{selected:ue(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:ue(o),disabled:re(o)}),(()=>[t.createTextVNode(t.toDisplayString(t.unref(le)(o)),1)]))])),_:2},1040,["onClickPassive"])))),128))],64)):(t.openBlock(),t.createBlock(Ht,t.mergeProps({key:1,ref_for:!0},{selected:ue(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:ue(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(Ht,{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(Ht,{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(pt,{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,ul)),[[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,rl))}}),bl={...H,...X,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"}},yl={key:0,class:"vv-dialog__header"},hl=["aria-label","title"],kl={class:"vv-dialog__content"},Sl={key:1,class:"vv-dialog__footer"},Bl=t.defineComponent({name:"VvDialog",props:bl,emits:["open","close","update:modelValue","beforeEnter","afterLeave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(e,{expose:l,emit:a}){const n=e,r=a,i=t.ref(),u=o.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=se("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 o.onClickOutside(c,(()=>{n.keepOpen||b()})),l({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",yl,[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,hl)]))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",kl,[t.renderSlot(e.$slots,"default")]),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",Sl,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)],512)],16),[[t.vShow,t.unref(d)]])])),_:3},16,["name"]))}}),Vl=t.defineComponent({__name:"VvDropdownAction",props:{...ae,...H},setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("vv-dropdown-action",o);return(e,l)=>(t.openBlock(),t.createBlock(It,null,{default:t.withCtx((()=>[t.createVNode(ke,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}))}}),wl=t.defineComponent({components:{VvIcon:Ae},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:[String,Object],default:Se},iconHide:{type:[String,Object],default:Be}},emits:["toggle-password"],setup(e,{emit:l}){const o=t.ref(!1),a=t.computed((()=>o.value?e.iconHide:e.iconShow)),{hasIcon:n}=Re(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(Ae,{...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)}}),xl=t.defineComponent({components:{VvIcon:Ae},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})}}),Cl=t.defineComponent({components:{VvIcon:Ae},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}=Re(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(Ae,{...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)}}),_l={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"},$l={...te,...re,modelValue:[String,Number],type:{type:String,default:_l.TEXT,validator:e=>Object.values(_l).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:Se},iconHidePassword:{type:[String,Object],default:Be},iconClear:{type:[String,Object],default:Ce},iconRemoveSuggestion:{type:[String,Object],default:$e},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}};function El(e,l){return{name:"VvInputTextActions",components:{VvIcon:Ae,VvInputPasswordAction:wl,VvInputStepAction:xl,VvInputClearAction:Cl},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 _l.SEARCH:{const{onClear:e}=this.$attrs;o=[t.h(Cl,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:e})];break}case _l.PASSWORD:{const{onTogglePassword:e}=this.$attrs;o=[t.h(wl,{disabled:this.isDisabled,onTogglePassword:e,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case _l.NUMBER:{const{onStepUp:e,onStepDown:a}=this.$attrs;o=[t.h(xl,{mode:"up",disabled:this.isDisabled||void 0!==l.max&&l.modelValue===l.max,label:this.labelStepUp,onStepUp:e,onStepDown:a}),t.h(xl,{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 Pl(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 Nl(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 Al=["for"],Ll={key:0,class:"vv-input-text__input-before"},Rl=["id"],Ol={key:1,class:"vv-input-text__unit"},Dl={key:5,class:"vv-input-text__input-after"},Tl={key:6,class:"vv-input-text__limit"},zl={class:"flex-1"},Il=["title","onClick"],Ml=t.defineComponent({name:"VvInputText",props:$l,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=a,i=t.useSlots(),s=xt("VvInputText",$l,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),_=Le(m),$=t.computed((()=>`${_.value}-hint`)),E=t.computed((()=>n.floating&&dt(n.placeholder)?" ":n.placeholder)),P=Pl(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===_l.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===_l.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===_l.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===_l.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();l({$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(ue.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=o.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===_l.PASSWORD));function q(){K.value=!K.value}const J=t.computed((()=>n.type===_l.TIME||n.type===_l.DATETIME_LOCAL||n.type===_l.DATE||n.type===_l.WEEK||n.type===_l.MONTH)),X=t.computed((()=>n.type===_l.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===_l.SEARCH));function ee(){P.value=""}const{hasIconBefore:te,hasIconAfter:le}=Re(v,p),oe=t.computed((()=>{if(void 0!==le.value)return le.value;switch(n.type){case _l.COLOR:return{name:xe};case _l.DATE:case _l.DATETIME_LOCAL:case _l.WEEK:case _l.MONTH:return{name:Ve};case _l.TIME:return{name:we}}})),{hasIcon:ae}=Re(f),{formatted:ne}=Nl(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)),ue=t.computed((()=>!dt(S))),de=t.computed((()=>!0===g.value||!0!==C.value&&void 0)),ce=me(V,w,new Set),ve=t.computed((()=>ce.value?[...ce.value].filter((e=>dt(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:fe}=t.toRefs(n),ge=se("vv-input-text",fe,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&&!dt(n.label),dirty:ue.value,focus:U.value,"auto-width":n.autoWidth})))),be=t.computed((()=>{const e=W.value&&K.value?_l.TEXT:!J.value||ue.value||j.value?n.iMask?_l.TEXT:n.type:_l.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":ke.value?$.value:void 0,"aria-errormessage":Se.value?$.value:void 0};if(e===_l.DATE||e===_l.MONTH||e===_l.WEEK||e===_l.TIME||e===_l.DATETIME_LOCAL||e===_l.NUMBER){let l=n.max;e!==_l.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!==_l.TEXT&&e!==_l.SEARCH&&e!==_l.URL&&e!==_l.TEL&&e!==_l.EMAIL&&e!==_l.PASSWORD&&e!==_l.NUMBER||(t.placeholder=E.value),e!==_l.TEXT&&e!==_l.SEARCH&&e!==_l.URL&&e!==_l.TEL&&e!==_l.EMAIL&&e!==_l.PASSWORD||(t.minlength=n.minlength,t.maxlength=n.maxlength,t.pattern=n.pattern),e===_l.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:ke,hasInvalidLabelOrSlot:Se,hintSlotScope:Be}=Vt(s,i),Ce=El(_l.PASSWORD,n),_e=El(_l.NUMBER,n),$e=El(_l.SEARCH,n);function Ee(){re.value&&(j.value=!0)}const Pe=t.computed((()=>{if(n.autoWidth)return{width:void 0!==P.value?`${String(P.value).length+1}ch`:void 0}}));function Ne(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,Al)):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",Ll,[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(Ee,["stop"])},[t.unref(te)?(t.openBlock(),t.createBlock(Ae,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(Pe),onKeyup:l[0]||(l[0]=e=>r("keyup",e)),onKeydown:Ne,onKeypress:l[1]||(l[1]=e=>r("keypress",e))}),null,16,Rl),(e.unit||e.$slots.unit)&&t.unref(ue)?(t.openBlock(),t.createElementBlock("div",Ol,[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(Ae,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(Ce),{key:2,onTogglePassword:q})):t.unref(X)&&!e.hideActions&&t.unref(re)?(t.openBlock(),t.createBlock(t.unref(_e),{key:3,onStepUp:Y,onStepDown:Z})):t.unref(Q)&&!e.hideActions&&t.unref(re)?(t.openBlock(),t.createBlock(t.unref($e),{key:4,onClear:ee})):t.createCommentVNode("v-if",!0),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Dl,[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",Tl,[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(Be))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(Be))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(Be))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(Be))))])),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(Ht,{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",zl,[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(Ae,t.mergeProps({ref_for:!0},t.unref(ae)),null,16)],8,Il)):t.createCommentVNode("v-if",!0)])),_:2},1032,["onClick"])))),128))])),_:3},8,["reference"])):t.createCommentVNode("v-if",!0)],2))}}),Hl={class:"vv-nav__item",role:"presentation"},Fl=t.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:e=>(e,l)=>(t.openBlock(),t.createElementBlock("li",Hl,[t.createVNode(ke,t.mergeProps(e.$attrs,{class:"vv-nav__item-label",role:"menuitem"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16)]))}),jl={...H,...ne},Ul=t.defineComponent({name:"VvNav",props:jl,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=se("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(Fl,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))}}),Gl={class:"vv-nav__separator",role:"separator"};const Kl=((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",Gl,[t.renderSlot(e.$slots,"default")])}]]),Wl={...H,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},ql=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=se("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))}}),Jl=le;const Xl=["for"],Yl=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Zl=t.defineComponent({name:"VvRadio",props:Jl,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=l,n=t.useSlots(),r=xt("VvRadio",Jl,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}=ie(V),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=Le(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)?st(o.value,d.value):it(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:B}=t.toRefs(o),w=se("vv-radio",B,t.computed((()=>({valid:c.value,invalid:v.value,disabled:u.value,readonly:s.value})))),{HintSlot:x,hasHintLabelOrSlot:C,hasInvalidLabelOrSlot:_,hintSlotScope:$}=Vt(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,Yl),[[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,Xl))}}),Ql=oe,eo=["textContent"],to={class:"vv-radio-group__wrapper"},lo=t.defineComponent({name:"VvRadioGroup",props:Ql,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=xt("VvRadioGroup",Ql,a),u=o.useVModel(a,"modelValue",n),{disabled:s,readonly:d,vertical:c,valid:v,invalid:p,modifiers:f}=t.toRefs(a);ge(V,{modelValue:u,disabled:s,readonly:d,valid:v,invalid:p});const{getOptionLabel:m,getOptionValue:g}=Pt(a),b=se("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}=Vt(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,eo)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",to,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Zl,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))}}),oo={...H,navModifiers:{type:[String,Array]},modelValue:{type:String,default:""},items:{type:Array,default:()=>[]}},ao=t.defineComponent({name:"VvTab",props:oo,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=se("vv-tab",n);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(p))},[t.createVNode(Ul,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))}}),no={...te,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},ro=["for"],io={class:"vv-textarea__wrapper"},uo={key:0,class:"vv-textarea__input-before"},so={class:"vv-textarea__inner"},co=["id"],vo={key:1,class:"vv-textarea__input-after"},po={key:2,class:"vv-textarea__limit"},fo=t.defineComponent({name:"VvTextarea",props:no,emits:["update:modelValue","focus","blur","keyup"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=xt("VvTextarea",no,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=Le(s),V=t.computed((()=>`${B.value}-hint`)),w=t.computed((()=>a.floating&&dt(a.placeholder)?" ":a.placeholder)),x=Pl(p,n,null==h?void 0:h.value),{hasIconBefore:C,hasIconAfter:_}=Re(d,c),{focused:$}=Kt(u,n),E=o.useElementVisibility(u);t.watch(E,(e=>{e&&a.autofocus&&($.value=!0)}));const{formatted:P}=Nl(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((()=>!dt(p))),R=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:O,hasHintLabelOrSlot:D,hasInvalidLabelOrSlot:T,hintSlotScope:z}=Vt(i,r),I=se("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&&!dt(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,ro)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",io,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",uo,[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(Ae,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,co),[[t.vModelText,t.unref(x)]]),t.unref(_)?(t.openBlock(),t.createBlock(Ae,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",po,[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))}}),mo={...H,position:{type:String,default:v.bottom},value:{type:String}},go=t.defineComponent({name:"VvTooltip",props:mo,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=se("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))}}),bo={...Z,...H,...N,...A,...F,...I,...L,...M,...R,...K,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:_e},labelReplace:{type:String,default:"Replace file"},iconReplace:{type:[String,Object],default:Ee},labelDownload:{type:String,default:"Downlaod file"},iconDownload:{type:[String,Object],default:Pe},labelRemove:{type:String,default:"Remove file"}},yo=["for"],ho={class:"vv-input-file__preview"},ko=["src","alt"],So={class:"vv-input-file__wrapper"},Bo=["id","readonly","disabled","placeholder","aria-describedby","aria-invalid","aria-errormessage","multiple","accept","capture","name"],Vo=["value"],wo=["onClick"],xo=["title","onClick"],Co={class:"vv-input-file__item-name"},_o={class:"vv-input-file__item-info"},$o=["title","disabled","onClick"],Eo=t.defineComponent({name:"VvInputFile",props:bo,emits:["remove","download","update:modelValue"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=xt("VvInputFile",bo,a),{modifiers:u,id:d,readonly:c,disabled:v,icon:p,iconPosition:f,iconDownload:m}=t.toRefs(a),g=Le(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}=Re(p,f),{hasIcon:S}=Re(m),B=se("vv-input-file",u,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}=Vt(i,r),_=o.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,yo)):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",ho,[j.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:j.value,alt:$.value[H.value].name},null,8,ko)):t.createCommentVNode("v-if",!0)]),t.unref(c)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(pt,{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",So,[t.unref(h)?(t.openBlock(),t.createBlock(Ae,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,Bo),y.value?(t.openBlock(),t.createElementBlock("progress",{key:1,class:"vv-input-file__progress",value:e.progress,max:"100"},t.toDisplayString(e.progress)+"% ",9,Vo)):t.createCommentVNode("v-if",!0),t.unref(k)?(t.openBlock(),t.createBlock(Ae,t.normalizeProps(t.mergeProps({key:2},t.unref(k))),null,16)):t.createCommentVNode("v-if",!0)]),t.createVNode(t.unref(s),{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(Ae,t.normalizeProps(t.guardReactiveProps(t.unref(S))),null,16)],8,xo)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Co,t.toDisplayString(l.name),1),t.createElementVNode("small",_o,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,$o))],10,wo)])),_: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))}});e.VvAccordion=pe,e.VvAccordionGroup=be,e.VvAction=ke,e.VvAlert=je,e.VvAlertGroup=Ke,e.VvAvatar=Xe,e.VvAvatarGroup=Qe,e.VvBadge=tt,e.VvBreadcrumb=nt,e.VvButton=pt,e.VvButtonGroup=gt,e.VvCard=St,e.VvCheckbox=$t,e.VvCheckboxGroup=Lt,e.VvCombobox=gl,e.VvDialog=Bl,e.VvDropdown=zt,e.VvDropdownAction=Vl,e.VvDropdownItem=It,e.VvDropdownOptgroup=jt,e.VvDropdownOption=Ht,e.VvIcon=Ae,e.VvInputFile=Eo,e.VvInputText=Ml,e.VvNav=Ul,e.VvNavItem=Fl,e.VvNavSeparator=Kl,e.VvProgress=ql,e.VvRadio=Zl,e.VvRadioGroup=lo,e.VvSelect=ol,e.VvTab=ao,e.VvTextarea=fo,e.VvTooltip=go,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.useTemplateRef("arrowEl"),S=t.useTemplateRef("listEl"),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.useTemplateRef("selectEl"),{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.useTemplateRef("dropdownEl"),{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.useTemplateRef("inputEl");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.useTemplateRef("innerEl"),H=t.useTemplateRef("wrapperEl"),F=t.useTemplateRef("dropdownEl");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"})}));