@volverjs/ui-vue 0.0.10-beta.4 → 0.0.10-beta.41
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.
- package/LICENSE +1 -1
- package/README.md +146 -49
- package/auto-imports.d.ts +7 -2
- package/bin/icons.cjs +1 -1
- package/bin/icons.js +27 -20
- package/dist/Volver.d.ts +11 -11
- package/dist/components/VvAccordion/VvAccordion.es.js +190 -101
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +30 -8
- package/dist/components/VvAccordion/index.d.ts +8 -9
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +450 -170
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +58 -13
- package/dist/components/VvAccordionGroup/index.d.ts +14 -6
- package/dist/components/VvAction/VvAction.es.js +84 -33
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +57 -22
- package/dist/components/VvAction/index.d.ts +25 -9
- package/dist/components/VvAlert/VvAlert.es.js +228 -193
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +24 -14
- package/dist/components/VvAlert/index.d.ts +17 -9
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +549 -485
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +16 -9
- package/dist/components/VvAlertGroup/index.d.ts +7 -15
- package/dist/components/VvAvatar/VvAvatar.es.js +65 -22
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +12 -4
- package/dist/components/VvAvatar/index.d.ts +4 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +128 -49
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +10 -3
- package/dist/components/VvAvatarGroup/index.d.ts +4 -1
- package/dist/components/VvBadge/VvBadge.es.js +77 -28
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +12 -4
- package/dist/components/VvBadge/index.d.ts +4 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +276 -60
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +27 -7
- package/dist/components/VvBreadcrumb/index.d.ts +6 -10
- package/dist/components/VvButton/VvButton.es.js +307 -262
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +94 -40
- package/dist/components/VvButton/index.d.ts +51 -29
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +95 -40
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +31 -11
- package/dist/components/VvButtonGroup/index.d.ts +11 -2
- package/dist/components/VvCard/VvCard.es.js +86 -36
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +12 -4
- package/dist/components/VvCard/index.d.ts +4 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +315 -251
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +106 -34
- package/dist/components/VvCheckbox/index.d.ts +47 -14
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +238 -129
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +101 -30
- package/dist/components/VvCheckboxGroup/index.d.ts +45 -12
- package/dist/components/VvCombobox/VvCombobox.es.js +1377 -1059
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +606 -680
- package/dist/components/VvCombobox/index.d.ts +488 -26
- package/dist/components/VvDialog/VvDialog.es.js +180 -176
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +13 -4
- package/dist/components/VvDialog/index.d.ts +5 -0
- package/dist/components/VvDropdown/VvDropdown.es.js +165 -94
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +111 -81
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +66 -25
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +13 -1
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +12 -4
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +35 -7
- package/dist/components/VvDropdown/index.d.ts +52 -10
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +163 -53
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +335 -8
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +63 -20
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +188 -80
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +24 -97
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -66
- package/dist/components/VvIcon/index.d.ts +33 -48
- package/dist/components/VvInputFile/VvInputFile.es.js +1789 -0
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +391 -0
- package/dist/components/VvInputFile/index.d.ts +210 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +7 -5
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +10 -8
- package/dist/components/VvInputText/VvInputStepAction.d.ts +2 -2
- package/dist/components/VvInputText/VvInputText.es.js +1489 -563
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +207 -57
- package/dist/components/VvInputText/index.d.ts +105 -30
- package/dist/components/VvNav/VvNav.es.js +160 -75
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +32 -9
- package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
- package/dist/components/VvNav/index.d.ts +5 -2
- package/dist/components/VvNavItem/VvNavItem.es.js +100 -39
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +73 -27
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +10 -3
- package/dist/components/VvProgress/index.d.ts +4 -1
- package/dist/components/VvRadio/VvRadio.es.js +313 -250
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +103 -31
- package/dist/components/VvRadio/index.d.ts +50 -17
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +236 -128
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +101 -30
- package/dist/components/VvRadioGroup/index.d.ts +45 -12
- package/dist/components/VvSelect/VvSelect.es.js +367 -300
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +232 -203
- package/dist/components/VvSelect/index.d.ts +195 -15
- package/dist/components/VvTab/VvTab.es.js +222 -97
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +31 -7
- package/dist/components/VvTab/index.d.ts +4 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +258 -248
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +156 -49
- package/dist/components/VvTextarea/index.d.ts +68 -19
- package/dist/components/VvTooltip/VvTooltip.es.js +83 -30
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +13 -6
- package/dist/components/VvTooltip/index.d.ts +5 -2
- package/dist/components/common/HintSlot.d.ts +4 -5
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.es.js +4575 -2534
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +101 -6
- package/dist/composables/alert/useInjectAlert.d.ts +1 -6
- package/dist/composables/dropdown/useInjectDropdown.d.ts +3 -23
- package/dist/composables/dropdown/useProvideDropdown.d.ts +3 -4
- package/dist/composables/group/useInjectedGroupState.d.ts +4 -5
- package/dist/composables/group/useProvideGroupState.d.ts +3 -3
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.es.js +94 -5
- package/dist/composables/index.umd.js +1 -1
- package/dist/composables/useBlurhash.d.ts +7 -0
- package/dist/composables/useComponentFocus.d.ts +1 -1
- package/dist/composables/useComponentIcon.d.ts +9 -8
- package/dist/composables/useOptions.d.ts +4 -4
- package/dist/composables/usePersistence.d.ts +3 -0
- package/dist/composables/useUniqueId.d.ts +1 -1
- package/dist/composables/useVolver.d.ts +1 -1
- package/dist/constants.d.ts +34 -32
- package/dist/directives/index.d.ts +3 -5
- package/dist/directives/index.es.js +104 -45
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-contextmenu.es.js +1 -1
- package/dist/directives/v-contextmenu.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +101 -39
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +267 -267
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +92 -18
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +272 -81
- package/dist/resolvers/unplugin.d.ts +6 -1
- package/dist/resolvers/unplugin.es.js +87 -10
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/Accordion/Accordion.settings.d.ts +2 -57
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +2 -66
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +2 -127
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +1437 -495
- package/dist/stories/Alert/Alert.settings.d.ts +2 -109
- package/dist/stories/Alert/AlertModifiers.stories.d.ts +1 -1
- package/dist/stories/Alert/AlertSlots.stories.d.ts +1 -1
- package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +2 -85
- package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +1 -1
- package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +1 -1
- package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +2 -2
- package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +2 -38
- package/dist/stories/Badge/Badge.settings.d.ts +2 -26
- package/dist/stories/Badge/Badge.test.d.ts +1 -1
- package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
- package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +2 -18
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
- package/dist/stories/Button/Button.settings.d.ts +2 -194
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +2 -40
- package/dist/stories/Card/Card.settings.d.ts +2 -63
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +2 -132
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -141
- package/dist/stories/Combobox/Combobox.settings.d.ts +2 -609
- package/dist/stories/Combobox/Combobox.stories.d.ts +1 -0
- package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +1 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +2 -47
- package/dist/stories/Dialog/DialogModifiers.stories.d.ts +8 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +2 -205
- package/dist/stories/Icon/Icon.settings.d.ts +3 -68
- package/dist/stories/InputFile/InputFile.settings.d.ts +6 -0
- package/dist/stories/InputFile/InputFile.stories.d.ts +12 -0
- package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
- package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
- package/dist/stories/InputText/InputText.settings.d.ts +2 -438
- package/dist/stories/Nav/Nav.settings.d.ts +2 -10
- package/dist/stories/Progress/Progress.settings.d.ts +2 -27
- package/dist/stories/Radio/Radio.settings.d.ts +1 -110
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -141
- package/dist/stories/Select/Select.settings.d.ts +2 -246
- package/dist/stories/Select/Select.stories.d.ts +1 -0
- package/dist/stories/Tab/Tab.settings.d.ts +2 -15
- package/dist/stories/Textarea/Textarea.settings.d.ts +2 -287
- package/dist/stories/argTypes.d.ts +27 -866
- package/dist/test/expect.d.ts +1 -1
- package/dist/test/options.d.ts +1 -1
- package/dist/test/sleep.d.ts +1 -1
- package/dist/types/alert.d.ts +9 -7
- package/dist/types/blurhash.d.ts +12 -0
- package/dist/types/generic.d.ts +1 -2
- package/dist/types/group.d.ts +37 -15
- package/dist/types/index.d.ts +7 -0
- package/dist/types/input-file.d.ts +16 -0
- package/dist/types/nav.d.ts +2 -2
- package/dist/utils/ObjectUtilities.d.ts +7 -8
- package/dist/workers/blurhash.d.ts +1 -0
- package/package.json +239 -246
- package/src/Volver.ts +245 -234
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/VvAccordion.vue +163 -100
- package/src/components/VvAccordion/index.ts +64 -79
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +223 -105
- package/src/components/VvAccordionGroup/index.ts +42 -42
- package/src/components/VvAction/VvAction.vue +144 -130
- package/src/components/VvAlert/VvAlert.vue +72 -70
- package/src/components/VvAlert/index.ts +149 -147
- package/src/components/VvAlertGroup/VvAlertGroup.vue +57 -56
- package/src/components/VvAlertGroup/index.ts +101 -117
- package/src/components/VvAvatar/VvAvatar.vue +20 -14
- package/src/components/VvAvatar/index.ts +5 -5
- package/src/components/VvAvatarGroup/VvAvatarGroup.vue +58 -53
- package/src/components/VvAvatarGroup/index.ts +21 -21
- package/src/components/VvBadge/VvBadge.vue +15 -14
- package/src/components/VvBadge/index.ts +2 -2
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +50 -48
- package/src/components/VvBreadcrumb/index.ts +3 -9
- package/src/components/VvButton/VvButton.vue +163 -152
- package/src/components/VvButton/index.ts +103 -110
- package/src/components/VvButtonGroup/VvButtonGroup.vue +72 -64
- package/src/components/VvButtonGroup/index.ts +22 -21
- package/src/components/VvCard/VvCard.vue +30 -30
- package/src/components/VvCard/index.ts +2 -2
- package/src/components/VvCheckbox/VvCheckbox.vue +185 -183
- package/src/components/VvCheckbox/index.ts +44 -44
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +88 -87
- package/src/components/VvCombobox/VvCombobox.vue +639 -619
- package/src/components/VvCombobox/index.ts +206 -164
- package/src/components/VvDialog/VvDialog.vue +141 -129
- package/src/components/VvDialog/index.ts +38 -36
- package/src/components/VvDropdown/VvDropdown.vue +466 -445
- package/src/components/VvDropdown/VvDropdownAction.vue +37 -39
- package/src/components/VvDropdown/VvDropdownItem.vue +30 -26
- package/src/components/VvDropdown/VvDropdownOptgroup.vue +13 -12
- package/src/components/VvDropdown/VvDropdownOption.vue +47 -64
- package/src/components/VvDropdown/index.ts +61 -27
- package/src/components/VvIcon/README.md +1 -1
- package/src/components/VvIcon/VvIcon.vue +133 -133
- package/src/components/VvIcon/index.ts +84 -97
- package/src/components/VvInputFile/VvInputFile.vue +402 -0
- package/src/components/VvInputFile/index.ts +141 -0
- package/src/components/VvInputText/VvInputClearAction.ts +51 -47
- package/src/components/VvInputText/VvInputPasswordAction.ts +66 -62
- package/src/components/VvInputText/VvInputStepAction.ts +43 -43
- package/src/components/VvInputText/VvInputText.vue +638 -516
- package/src/components/VvInputText/VvInputTextActions.ts +86 -86
- package/src/components/VvInputText/index.ts +200 -185
- package/src/components/VvNav/VvNav.vue +40 -36
- package/src/components/VvNav/VvNavItem.vue +12 -12
- package/src/components/VvNav/VvNavSeparator.vue +6 -6
- package/src/components/VvNav/index.ts +2 -2
- package/src/components/VvProgress/VvProgress.vue +27 -27
- package/src/components/VvProgress/index.ts +28 -28
- package/src/components/VvRadio/VvRadio.vue +115 -112
- package/src/components/VvRadio/index.ts +28 -28
- package/src/components/VvRadioGroup/VvRadioGroup.vue +91 -90
- package/src/components/VvSelect/VvSelect.vue +262 -241
- package/src/components/VvSelect/index.ts +88 -63
- package/src/components/VvTab/VvTab.vue +79 -69
- package/src/components/VvTab/index.ts +12 -12
- package/src/components/VvTextarea/VvTextarea.vue +218 -219
- package/src/components/VvTextarea/index.ts +35 -35
- package/src/components/VvTooltip/VvTooltip.vue +22 -16
- package/src/components/VvTooltip/index.ts +12 -12
- package/src/components/common/HintSlot.ts +149 -150
- package/src/components/index.ts +10 -0
- package/src/composables/alert/useAlert.ts +76 -73
- package/src/composables/alert/useInjectAlert.ts +1 -1
- package/src/composables/alert/useProvideAlert.ts +10 -10
- package/src/composables/dropdown/useInjectDropdown.ts +6 -6
- package/src/composables/dropdown/useProvideDropdown.ts +63 -63
- package/src/composables/group/useInjectedGroupState.ts +46 -42
- package/src/composables/group/useProvideGroupState.ts +9 -15
- package/src/composables/index.ts +1 -0
- package/src/composables/useBlurhash.ts +68 -0
- package/src/composables/useComponentFocus.ts +9 -9
- package/src/composables/useComponentIcon.ts +36 -35
- package/src/composables/useDebouncedInput.ts +25 -25
- package/src/composables/useDefaults.ts +77 -76
- package/src/composables/useModifiers.ts +29 -29
- package/src/composables/useOptions.ts +52 -43
- package/src/composables/usePersistence.ts +74 -0
- package/src/composables/useTextCount.ts +44 -44
- package/src/composables/useUniqueId.ts +3 -2
- package/src/composables/useVolver.ts +1 -1
- package/src/constants.ts +97 -82
- package/src/directives/index.ts +3 -6
- package/src/directives/v-contextmenu.ts +34 -34
- package/src/directives/v-tooltip.ts +18 -9
- package/src/index.ts +6 -4
- package/src/props/index.ts +457 -380
- package/src/resolvers/unplugin.ts +146 -136
- package/src/shims.d.ts +4 -5
- package/src/stories/Accordion/Accordion.settings.ts +51 -50
- package/src/stories/Accordion/Accordion.stories.ts +21 -21
- package/src/stories/Accordion/Accordion.test.ts +56 -54
- package/src/stories/Accordion/AccordionSlots.stories.ts +13 -13
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +70 -67
- package/src/stories/AccordionGroup/AccordionGroup.stories.ts +41 -39
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +49 -45
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +35 -35
- package/src/stories/Alert/Alert.settings.ts +117 -116
- package/src/stories/Alert/Alert.stories.ts +30 -30
- package/src/stories/Alert/Alert.test.ts +78 -80
- package/src/stories/Alert/AlertModifiers.stories.ts +45 -45
- package/src/stories/Alert/AlertSlots.stories.ts +35 -35
- package/src/stories/AlertGroup/AlertGroup.settings.ts +107 -105
- package/src/stories/AlertGroup/AlertGroup.stories.ts +25 -25
- package/src/stories/AlertGroup/AlertGroup.test.ts +67 -69
- package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +68 -68
- package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +23 -23
- package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +58 -58
- package/src/stories/Avatar/Avatar.settings.ts +29 -29
- package/src/stories/Avatar/Avatar.stories.ts +23 -23
- package/src/stories/Avatar/Avatar.test.ts +22 -24
- package/src/stories/Avatar/AvatarBadge.stories.ts +15 -15
- package/src/stories/Avatar/AvatarModifiers.stories.ts +61 -61
- package/src/stories/Avatar/AvatarSlots.stories.ts +18 -18
- package/src/stories/AvatarGroup/AvatarGroup.settings.ts +54 -53
- package/src/stories/AvatarGroup/AvatarGroup.stories.ts +17 -17
- package/src/stories/AvatarGroup/AvatarGroup.test.ts +24 -26
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +15 -15
- package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +17 -17
- package/src/stories/Badge/Badge.settings.ts +21 -20
- package/src/stories/Badge/Badge.stories.ts +24 -24
- package/src/stories/Badge/Badge.test.ts +8 -8
- package/src/stories/Badge/BadgeSlots.stories.ts +10 -10
- package/src/stories/Blurhash/BlurhashComposable.stories.ts +196 -0
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +35 -34
- package/src/stories/Breadcrumb/Breadcrumb.stories.ts +23 -23
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +44 -43
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +17 -17
- package/src/stories/Button/Button.settings.ts +146 -150
- package/src/stories/Button/Button.stories.ts +19 -19
- package/src/stories/Button/Button.test.ts +41 -42
- package/src/stories/Button/ButtonIcon.stories.ts +42 -42
- package/src/stories/Button/ButtonLink.stories.ts +24 -24
- package/src/stories/Button/ButtonLoading.stories.ts +22 -22
- package/src/stories/Button/ButtonModifiers.stories.ts +91 -91
- package/src/stories/Button/ButtonSlots.stories.ts +47 -47
- package/src/stories/Button/ButtonState.stories.ts +23 -23
- package/src/stories/Button/ButtonToggle.stories.ts +30 -30
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +33 -24
- package/src/stories/ButtonGroup/ButtonGroup.stories.ts +20 -20
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +23 -26
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +20 -20
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +18 -18
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +22 -22
- package/src/stories/Card/Card.settings.ts +49 -48
- package/src/stories/Card/Card.stories.ts +22 -22
- package/src/stories/Card/Card.test.ts +14 -16
- package/src/stories/Card/CardSlots.stories.ts +42 -42
- package/src/stories/Checkbox/Checkbox.settings.ts +36 -35
- package/src/stories/Checkbox/Checkbox.stories.ts +57 -57
- package/src/stories/Checkbox/Checkbox.test.ts +63 -66
- package/src/stories/Checkbox/CheckboxBinary.stories.ts +18 -18
- package/src/stories/Checkbox/CheckboxSlots.stories.ts +15 -15
- package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +9 -9
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +50 -50
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +63 -67
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +34 -34
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +23 -23
- package/src/stories/Combobox/Combobox.settings.ts +407 -384
- package/src/stories/Combobox/Combobox.stories.ts +116 -107
- package/src/stories/Combobox/Combobox.test.ts +91 -91
- package/src/stories/Combobox/ComboboxIconPosition.stories.ts +25 -24
- package/src/stories/Combobox/ComboboxMultiple.stories.ts +32 -22
- package/src/stories/Combobox/ComboboxOptions.stories.ts +81 -84
- package/src/stories/Combobox/ComboboxSlots.stories.ts +56 -55
- package/src/stories/Dialog/Dialog.settings.ts +49 -40
- package/src/stories/Dialog/Dialog.stories.ts +28 -28
- package/src/stories/Dialog/Dialog.test.ts +49 -54
- package/src/stories/Dialog/DialogModifiers.stories.ts +42 -0
- package/src/stories/Dialog/DialogSlots.stories.ts +20 -20
- package/src/stories/Dropdown/Dropdown.settings.ts +63 -62
- package/src/stories/Dropdown/Dropdown.stories.ts +59 -59
- package/src/stories/Dropdown/Dropdown.test.ts +9 -13
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +16 -16
- package/src/stories/Dropdown/DropdownMultilevel.stories.ts +18 -18
- package/src/stories/Dropdown/DropdownSlots.stories.ts +50 -50
- package/src/stories/Icon/Icon.settings.ts +66 -65
- package/src/stories/Icon/Icon.stories.ts +28 -29
- package/src/stories/Icon/IconsCollection.stories.ts +22 -22
- package/src/stories/InputFile/InputFile.settings.ts +37 -0
- package/src/stories/InputFile/InputFile.stories.ts +89 -0
- package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
- package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
- package/src/stories/InputFile/InputFileSlots.stories.ts +33 -0
- package/src/stories/InputText/InputText.settings.ts +246 -244
- package/src/stories/InputText/InputText.stories.ts +67 -67
- package/src/stories/InputText/InputText.test.ts +118 -121
- package/src/stories/InputText/InputTextIconPosition.stories.ts +24 -24
- package/src/stories/InputText/InputTextLength.stories.ts +33 -33
- package/src/stories/InputText/InputTextMask.stories.ts +91 -91
- package/src/stories/InputText/InputTextMinMax.stories.ts +30 -30
- package/src/stories/InputText/InputTextSlots.stories.ts +20 -20
- package/src/stories/InputText/InputTextType.stories.ts +70 -70
- package/src/stories/Nav/Nav.settings.ts +27 -27
- package/src/stories/Nav/Nav.stories.ts +18 -18
- package/src/stories/Nav/Nav.test.ts +10 -12
- package/src/stories/Nav/NavModifiers.stories.ts +25 -25
- package/src/stories/Progress/Progress.settings.ts +24 -23
- package/src/stories/Progress/Progress.stories.ts +23 -23
- package/src/stories/Progress/Progress.test.ts +4 -4
- package/src/stories/Radio/Radio.settings.ts +9 -9
- package/src/stories/Radio/Radio.stories.ts +47 -47
- package/src/stories/Radio/Radio.test.ts +54 -57
- package/src/stories/Radio/RadioSlots.stories.ts +15 -15
- package/src/stories/RadioGroup/RadioGroup.settings.ts +9 -9
- package/src/stories/RadioGroup/RadioGroup.stories.ts +51 -52
- package/src/stories/RadioGroup/RadioGroup.test.ts +63 -67
- package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +35 -35
- package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +23 -23
- package/src/stories/Select/Select.settings.ts +71 -70
- package/src/stories/Select/Select.stories.ts +75 -66
- package/src/stories/Select/Select.test.ts +67 -70
- package/src/stories/Select/SelectIconPosition.stories.ts +27 -26
- package/src/stories/Select/SelectOptions.stories.ts +55 -55
- package/src/stories/Select/SelectSlots.stories.ts +21 -20
- package/src/stories/Tab/Tab.settings.ts +34 -34
- package/src/stories/Tab/Tab.stories.ts +17 -17
- package/src/stories/Tab/Tab.test.ts +17 -19
- package/src/stories/Textarea/Textarea.settings.ts +79 -77
- package/src/stories/Textarea/Textarea.stories.ts +63 -63
- package/src/stories/Textarea/Textarea.test.ts +70 -73
- package/src/stories/Textarea/TextareaLength.stories.ts +33 -33
- package/src/stories/Textarea/TextareaSlots.stories.ts +20 -20
- package/src/stories/Textarea/TextareatIconPosition.stories.ts +24 -24
- package/src/stories/Tooltip/Tooltip.settings.ts +16 -17
- package/src/stories/Tooltip/Tooltip.stories.ts +18 -18
- package/src/stories/Tooltip/Tooltip.test.ts +53 -54
- package/src/stories/Tooltip/TooltipDirective.stories.ts +37 -37
- package/src/stories/argTypes.ts +506 -505
- package/src/test/expect.ts +72 -77
- package/src/test/options.ts +17 -16
- package/src/test/sleep.ts +3 -2
- package/src/test/types.d.ts +11 -11
- package/src/types/alert.ts +21 -17
- package/src/types/blurhash.ts +21 -0
- package/src/types/generic.ts +2 -3
- package/src/types/group.ts +34 -26
- package/src/types/index.ts +7 -0
- package/src/types/input-file.ts +18 -0
- package/src/types/nav.ts +13 -14
- package/src/utils/ObjectUtilities.ts +192 -188
- package/src/workers/blurhash.ts +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("uid"),require("@vueuse/core"),require("@iconify/vue"),require("ts-dot-prop"),require("@floating-ui/vue"),require("mitt"),require("vue-imask")):"function"==typeof define&&define.amd?define(["exports","vue","uid","@vueuse/core","@iconify/vue","ts-dot-prop","@floating-ui/vue","mitt","vue-imask"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).components={},e.vue,e.uid,e.core,e.vue$1,e.tsDotProp,e.vue$2,e.mitt,e.vueImask)}(this,(function(e,t,l,o,a,n,r,i,u){"use strict";var s=(e=>(e.absolute="absolute",e.fixed="fixed",e))(s||{}),d=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(d||{}),c=(e=>(e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end",e))(c||{}),v=(e=>(e.before="before",e.after="after",e))(v||{}),p=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(p||{}),m=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(m||{}),f=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(f||{}),b=(e=>(e.listbox="listbox",e.menu="menu",e))(b||{}),g=(e=>(e.option="option",e.presentation="presentation",e))(g||{}),y=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(y||{});const h=Symbol.for("volver"),k=Symbol.for("buttonGroup"),S=Symbol.for("radioGroup"),V=Symbol.for("checkGroup"),B=Symbol.for("accordionGroup"),w=Symbol.for("dropdownTrigger"),x=Symbol.for("dropdownItem"),C=Symbol.for("dropdownAction"),_=Symbol.for("alertGroup"),$={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(y).includes(e)},rel:{type:String,default:"noopener noreferrer"}},P={valid:Boolean,validLabel:[String,Array]},E={invalid:Boolean,invalidLabel:[String,Array]},N={loading:Boolean,loadingLabel:{type:String,default:"Loading..."}},L={disabled:Boolean},A={selected:Boolean},R={active:Boolean},O={current:Boolean},D={pressed:Boolean},T={label:[String,Number]},z={readonly:Boolean},I={modifiers:[String,Array]},M={hintLabel:{type:String,default:""}},H={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},F={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},j={debounce:[Number,String]},G={icon:{type:[String,Object]},iconPosition:{type:String,default:v.before,validation:e=>Object.values(v).includes(e)}},U={tabindex:{type:[String,Number],default:0}},W={floating:Boolean},K={unselectable:{type:Boolean,default:!0}},q={id:[String,Number]},X={placement:{type:String,default:d.bottom,validator:e=>Object.values(d).includes(e)||Object.values(c).includes(e)},strategy:{type:String,default:void 0,validator:e=>Object.values(s).includes(e)},transitionName:{type:String},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean}},J={...q,name:{type:String,required:!0}},Y={autofocus:Boolean},Q={autocomplete:{type:String,default:"off"}},Z={...J,...Y,...Q,...U,...L,...z,...P,...E,...M,...N,...I,...F,...j,...G,...W,...T,minlength:[String,Number],maxlength:[String,Number],placeholder:String,required:Boolean},ee={...J,...U,...P,...E,...M,...L,...z,...I,...T,...N,value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String]},te={...P,...E,...H,...M,...L,...z,...I,...T,...N,modelValue:[String,Array,Boolean,Number,Symbol],name:{type:String,required:!0},vertical:Boolean},le={...L,...T,...D,...R,...O,...$,type:{type:String,default:p.button,validator:e=>Object.values(p).includes(e)},ariaLabel:{type:String,default:void 0}},oe={items:{type:Array,default:()=>[]}};function ae(e,t,l){return l?re(e,l)===re(t,l):ne(e,t)}function ne(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),o=Array.isArray(t);let a,n,r;if(l&&o){if(n=e.length,n!=t.length)return!1;for(a=n;0!=a--;)if(!ne(e[a],t[a]))return!1;return!0}if(l!=o)return!1;const i=e instanceof Date,u=t instanceof Date;if(i!=u)return!1;if(i&&u)return e.getTime()==t.getTime();const s=e instanceof RegExp,d=t instanceof RegExp;if(s!=d)return!1;if(s&&d)return e.toString()==t.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(t).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!ne(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}function re(e,t){if(e&&Object.keys(e).length&&t){if(-1===t.indexOf("."))return e[t];{const l=t.split(".");let o=e;for(let t=0,a=l.length;t<a;++t){if(null==e)return null;o=o[l[t]]}return o}}return null}function ie(e,t){if(null!=e&&t&&t.length)for(const l of t)if(ae(e,l))return!0;return!1}function ue(e){return null==(l=t.unref(e))||""===l||Array.isArray(l)&&0===l.length||!(l instanceof Date)&&"object"==typeof l&&0===Object.keys(l).length;var l}function se(e,t){const l=function(e,t){let l=-1;if(t)for(let o=0;o<t.length;o++)if(ae(t[o],e)){l=o;break}return l}(e,t);return l>-1?t.filter(((e,t)=>t!==l)):t}function de(e){const l=t.inject(e,void 0),o=t.computed((()=>!ue(l)));return{group:l,isInGroup:o,getGroupOrLocalRef:function(e,o,a){if(null==l?void 0:l.value){const o=t.unref(l.value)[e];return t.computed({get:()=>null==o?void 0:o.value,set(e){o.value=e}})}const n=t.toRef(o,e);return t.computed({get:()=>n.value,set(t){a&&a(`update:${e}`,t)}})}}}const ce={...I,name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},disabled:Boolean,not:Boolean};function ve(e,l,o){return t.computed((()=>{const a={[e]:!0},n="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return n&&Array.isArray(n)&&n.forEach((t=>{t&&(a[`${e}--${t}`]=!0)})),o&&Object.keys(o.value).forEach((l=>{a[`${e}--${l}`]=t.unref(o.value[l])})),a}))}const pe=["id","open"],me=["aria-controls","aria-expanded"],fe=["aria-hidden"],be=t.defineComponent({name:"VvAccordion",props:ce,emits:["update:modelValue"],setup(e,{emit:a}){const n=e,r=t.useAttrs(),i=t.computed((()=>n.name||(null==r?void 0:r.id)||l.uid())),{modifiers:u,title:s,content:d,disabled:c,collapse:v,modelValue:p,isInGroup:m,not:f}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=de(B),{title:r,content:i}=t.toRefs(e),u=n("modelValue",e,l),s=n("not",e),d=n("collapse",e),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))})),v=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)}));return{modelValue:u,not:s,isInGroup:a,group:o,collapse:d,modifiers:v,disabled:c,title:r,content:i}}(n,a),b=t.ref(!1),g=t.computed({get:()=>{let e=p.value;return m.value?e=v.value&&Array.isArray(p.value)?p.value.includes(i.value):p.value===i.value:void 0===p.value&&(e=b.value),f.value?!e:e},set:e=>{if(f.value&&(e=!e),m.value)return v.value&&Array.isArray(p.value)?e?void p.value.push(i.value):void(p.value=p.value.filter((e=>e!==i.value))):void(p.value=e?i.value:null);void 0!==p.value||"boolean"!=typeof e?p.value=e:b.value=e}}),y=ve("vv-accordion",u,t.computed((()=>({disabled:c.value})))),h=o.useToggle(g);return(e,l)=>(t.openBlock(),t.createElementBlock("details",{id:t.unref(i),class:t.normalizeClass(t.unref(y)),open:t.unref(g)},[t.createElementVNode("summary",{"aria-controls":t.unref(i),"aria-expanded":t.unref(g),class:"vv-accordion__summary",onClick:l[0]||(l[0]=t.withModifiers((e=>t.unref(h)()),["prevent"]))},[t.renderSlot(e.$slots,"summary",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(s)),1)]))],8,me),t.createElementVNode("div",{"aria-hidden":!t.unref(g),class:"vv-accordion__content"},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)),1)]))],8,fe)],10,pe))}}),ge={...I,modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,itemModifiers:{type:[String,Array],default:""},disabled:Boolean,not:Boolean,storeKey:String};function ye(e){if(Object.keys(e).some((l=>"key"!==l&&!t.isRef(e[l]))))throw Error("One or more groupState props aren't ref.");t.provide(e.key,t.computed((()=>e)))}const he=t.defineComponent({name:"VvAccordionGroup",props:ge,emits:["update:modelValue"],setup(e,{emit:l}){const a=e,{disabled:n,collapse:r,modifiers:i,itemModifiers:u,items:s,not:d}=t.toRefs(a);t.watchEffect((()=>{"string"==typeof a.modelValue&&r.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")}));let c=t.ref([]);t.watch((()=>a.storeKey),(e=>{c=e?o.useStorage(e,c.value):t.ref([])}),{immediate:!0});const v=t.computed({get:()=>{var e;return void 0!==a.modelValue?r.value?a.modelValue:Array.isArray(a.modelValue)?a.modelValue[0]:a.modelValue:r.value?c.value:null==(e=c.value)?void 0:e[0]},set:e=>{if(void 0!==a.modelValue)return!Array.isArray(a.modelValue)&&!r.value||Array.isArray(e)||(e=[e]),l("update:modelValue",e);c.value=Array.isArray(e)?e:[e]}});ye({key:B,modelValue:v,disabled:n,collapse:r,modifiers:u,not:d});const p=ve("vv-accordion-group",i,t.computed((()=>({disabled:n.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(p))},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(l=>(t.openBlock(),t.createBlock(be,t.mergeProps({key:l.title},{name:l.name,title:l.title,content:l.content}),{header:t.withCtx((o=>[t.renderSlot(e.$slots,`header::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),details:t.withCtx((o=>[t.renderSlot(e.$slots,`details::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),_:2},1040)))),128))]))],2))}}),ke=le;function Se(){return t.inject(h)}const Ve=t.defineComponent({name:"VvAction",props:ke,emits:["click","mouseover","mouseleave"],setup(e,{expose:l,emit:o}){const a=e,n=Se(),r=t.ref(null);l({$el:r});const{reference:i,bus:u,aria:s,expanded:d}=t.inject(w,{});t.watch((()=>r.value),(e=>{i&&(i.value=e)}));const c=t.computed((()=>a.pressed||(null==d?void 0:d.value))),{role:v}=t.inject(C,{}),p=t.computed((()=>{switch(!0){case a.disabled:return m.button;case void 0!==a.to:return(null==n?void 0:n.nuxt)?m.nuxtLink:m.routerLink;case void 0!==a.href:return m.a;default:return m.button}})),f=t.computed((()=>{const e={...null==s?void 0:s.value,ariaPressed:!!c.value||void 0,ariaLabel:a.ariaLabel,role:null==v?void 0:v.value};switch(p.value){case m.a:return{...e,href:a.href,target:a.target,rel:a.rel};case m.routerLink:case m.nuxtLink:return{...e,to:a.to,target:a.target};default:return{...e,type:a.type,disabled:a.disabled}}})),b=e=>{a.disabled?e.preventDefault():(null==u||u.emit("click",e),o("click",e))},g=e=>{null==u||u.emit("mouseover",e),o("mouseover",e)},y=e=>{null==u||u.emit("mouseleave",e),o("mouseleave",e)};return(e,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(p)),t.mergeProps(t.unref(f),{ref_key:"element",ref:r,class:{active:e.active,pressed:t.unref(c),disabled:e.disabled,current:e.current},onClickPassive:b,onMouseoverPassive:g,onMouseleavePassive:y}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]))])),_:3},16,["class"]))}}),Be={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}},we=t.defineComponent({name:"VvIcon",props:Be,setup(e){const l=e,o=t.computed((()=>"string"==typeof l.rotate?parseFloat(l.rotate):l.rotate)),n=t.ref(!0),r=Se(),{modifiers:i}=t.toRefs(l),u=ve("vv-icon",i),s=t.computed((()=>l.provider||(null==r?void 0:r.iconsProvider))),d=t.computed((()=>{const e=l.name??"",t=`@${s.value}:${l.prefix}:${e}`;if(a.iconExists(t))return t;const o=null==r?void 0:r.iconsCollections.find((t=>{const l=`@${s.value}:${t.prefix}:${e}`;return a.iconExists(l)}));return o?`@${s.value}:${o.prefix}:${e}`:e}));function c(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),o=(null==t?void 0:t.innerHTML.trim())||"";t&&o&&a.addIcon(`@${s.value}:${l.prefix}:${l.name}`,{body:o,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&l.src&&!a.iconExists(`@${s.value}:${l.prefix}:${l.name}`)&&(n.value=!1,r.fetchIcon(l.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),l.svg&&c(l.svg),(e,l)=>t.unref(n)?(t.openBlock(),t.createBlock(t.unref(a.Icon),t.mergeProps({key:0,class:t.unref(u)},{inline:e.inline,width:e.width,height:e.height,horizontalFlip:e.horizontalFlip,verticalFlip:e.verticalFlip,flip:e.flip,rotate:t.unref(o),color:e.color,onLoad:e.onLoad,icon:t.unref(d)}),null,16,["class"])):t.createCommentVNode("",!0)}});const xe=e=>t.computed((()=>String((null==e?void 0:e.value)||l.uid()))),Ce={...q,...I,...G,dismissable:{type:Boolean,default:!1},autoClose:{type:Number,default:0},closeLabel:{type:String,default:"Close"},title:{type:String,default:void 0},content:{type:String,default:void 0},footer:{type:String,default:void 0},role:{type:String,default:"alert"}},_e=(e,l)=>{const{bus:o}=t.inject(_,{}),a=xe(t.computed((()=>e.id))),n=t.computed((()=>`${a.value}-title`)),r=t.computed((()=>"string"==typeof e.icon?{name:e.icon}:e.icon)),i=ve("vv-alert",t.computed((()=>e.modifiers)),t.computed((()=>({dismissable:e.autoClose>0||e.dismissable,"auto-close":e.autoClose>0,hover:c.value})))),u=t.computed((()=>({"--alert-duration":`${e.autoClose}ms`}))),s=()=>{d&&clearTimeout(d),l("close",a.value),null==o||o.emit("close",a.value)};let d;t.watch((()=>e.autoClose),(e=>{e>0?d=setTimeout(s,e):d&&clearTimeout(d)}),{immediate:!0});const c=t.ref(!1),v=t.withModifiers((()=>{c.value=!0,d&&clearTimeout(d)}),["passive"]),p=t.withModifiers((()=>{c.value=!1,e.autoClose>0&&(d=setTimeout(s,e.autoClose))}),["passive"]);return{close:s,hasIcon:r,hasTitleId:n,hasProps:t.computed((()=>({onMouseover:v,onMouseleave:p,class:i.value,style:u.value,role:e.role,"aria-labelledby":n.value})))}},$e={key:0,class:"vv-alert__header"},Pe=["id"],Ee=["aria-label"],Ne=[t.createElementVNode("div",{class:"vv-alert__close-mask"},null,-1)],Le={key:1,class:"vv-alert__content"},Ae={key:2,class:"vv-alert__footer"},Re=t.defineComponent({name:"VvAlert",props:Ce,emits:["close"],setup(e,{expose:l,emit:o}){const a=e,{hasProps:n,hasTitleId:r,hasIcon:i,close:u}=_e(a,o);return l({close:u}),(e,l)=>(t.openBlock(),t.createElementBlock("div",t.normalizeProps(t.guardReactiveProps(t.unref(n))),[e.$slots.header||e.$slots.title||e.$slots.close||e.$slots["title::before"]||e.$slots["title::after"]||e.title||e.dismissable||e.autoClose?(t.openBlock(),t.createElementBlock("div",$e,[t.unref(i)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0},t.unref(i),{class:"vv-alert__icon"}),null,16)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"header",{},(()=>[t.renderSlot(e.$slots,"title::before"),e.$slots.title||e.title?(t.openBlock(),t.createElementBlock("strong",{key:0,id:t.unref(r),class:"vv-alert__title"},[t.renderSlot(e.$slots,"title",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))],8,Pe)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"title::after")])),t.renderSlot(e.$slots,"close",t.normalizeProps(t.guardReactiveProps({close:t.unref(u)})),(()=>[e.dismissable||e.autoClose?(t.openBlock(),t.createElementBlock("button",{key:0,class:"vv-alert__close",type:"button","aria-label":e.closeLabel,onClick:l[0]||(l[0]=t.withModifiers(((...e)=>t.unref(u)&&t.unref(u)(...e)),["stop"]))},Ne,8,Ee)):t.createCommentVNode("",!0)]))])):t.createCommentVNode("",!0),e.$slots.default||e.content?(t.openBlock(),t.createElementBlock("div",Le,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]))])):t.createCommentVNode("",!0),e.$slots.footer||e.footer?(t.openBlock(),t.createElementBlock("div",Ae,[t.renderSlot(e.$slots,"footer",{},(()=>[t.createTextVNode(t.toDisplayString(e.footer),1)]))])):t.createCommentVNode("",!0)],16))}}),Oe={...I,value:[String,Number]},De=t.defineComponent({name:"VvBadge",props:Oe,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-badge",o);return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"status"},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),Te={...I,routes:Array},ze={class:"vv-breadcrumb__list"},Ie=["content"],Me=t.defineComponent({name:"VvBreadcrumb",props:Te,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-breadcrumb",o);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(a)),"aria-label":"breadcrumbs"},[t.createElementVNode("ol",ze,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.routes,((l,o)=>{var a,n,r,i;return t.openBlock(),t.createElementBlock("li",{key:`${l.label}-${o}`,class:t.normalizeClass({"vv-breadcrumb__item":o<Number(null==(a=e.routes)?void 0:a.length)-1,"vv-breadcrumb__item-active":o===Number(null==(n=e.routes)?void 0:n.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.to?"router-link":l.href?"a":"span"),t.mergeProps(l,{class:{"vv-breadcrumb__link":o<Number(null==(r=e.routes)?void 0:r.length)-1},"aria-current":o===Number(null==(i=e.routes)?void 0:i.length)-1?"page":void 0,itemprop:"item"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"label",t.normalizeProps(t.guardReactiveProps({route:l,index:o})),(()=>[t.createTextVNode(t.toDisplayString(l.label),1)]))])),_:2},1040,["class","aria-current"])),t.createElementVNode("meta",{itemprop:"position",content:`${o+1}`},null,8,Ie)],2)})),128))])],2))}}),He={...le,...q,...I,...K,...N,icon:[String,Object],iconPosition:{type:String,default:d.left,validator:e=>Object.values(d).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};const Fe={key:1,class:"vv-button__label"},je={key:1,class:"vv-button__label"},Ge=t.defineComponent({name:"VvButton",props:He,emits:["update:modelValue"],setup(e,{expose:l,emit:o}){const a=e,n=t.useAttrs(),r=t.useSlots(),{id:i,modifiers:u,iconPosition:s,icon:c,label:v,modelValue:p,disabled:m,toggle:f,unselectable:b}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=de(k),{id:r,iconPosition:i,icon:u,label:s,pressed:d}=t.toRefs(e),c=n("modelValue",e,l),v=n("toggle",e),p=n("unselectable",e),m=t.computed((()=>(null==o?void 0:o.value.multiple.value)??!1)),f=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)})),b=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:p,multiple:m,modifiers:f,disabled:b,id:r,pressed:d,iconPosition:i,icon:u,label:s}}(a,o),g=xe(i),y=t.computed((()=>(null==n?void 0:n.name)||g.value)),h=t.ref(null);l({$el:t.computed((()=>{var e;return null==(e=h.value)?void 0:e.$el}))});const S=t.computed((()=>f.value?Array.isArray(p.value)?ie(y.value,p.value):ae(y.value,p.value):a.pressed)),V=ve("vv-button",u,t.computed((()=>({reverse:[d.right,d.bottom].includes(s.value),column:[d.top,d.bottom].includes(s.value),"icon-only":Boolean((null==c?void 0:c.value)&&!(null==v?void 0:v.value)&&!r.default)})))),B=t.computed((()=>"string"==typeof(null==c?void 0:c.value)?{name:null==c?void 0:c.value}:null==c?void 0:c.value)),w=t.computed((()=>void 0!==a.value?a.value:y.value)),x=()=>{if(f.value){if(Array.isArray(p.value))return ie(w.value,p.value)?void(b.value&&(p.value=p.value.filter((e=>e!==w.value)))):void p.value.push(w.value);if(w.value===p.value&&b.value)return void(p.value=a.uncheckedValue);p.value=w.value}};return(e,l)=>(t.openBlock(),t.createBlock(Ve,t.mergeProps({disabled:t.unref(m),pressed:t.unref(S),active:e.active,type:e.type,to:e.to,href:e.href,target:e.target,rel:e.rel,ariaLabel:e.ariaLabel},{id:t.unref(g),ref_key:"element",ref:h,class:t.unref(V),onClick:x}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[e.loadingIcon?(t.openBlock(),t.createBlock(we,{key:0,class:"vv-button__loading-icon",name:e.loadingIcon},null,8,["name"])):t.createCommentVNode("",!0),e.loadingLabel?(t.openBlock(),t.createElementBlock("span",Fe,t.toDisplayString(e.loadingLabel),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"before"),t.unref(c)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-button__icon"},t.unref(B)),null,16)):t.createCommentVNode("",!0),t.unref(v)?(t.openBlock(),t.createElementBlock("span",je,[t.renderSlot(e.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(v)),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"after")],64))]))])),_:3},16,["id","class"]))}}),Ue={...I,...L,...K,itemModifiers:{type:[String,Array],default:""},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array],default:void 0}},We=t.defineComponent({name:"VvButtonGroup",props:Ue,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,{disabled:a,toggle:n,modifiers:r,multiple:i,unselectable:u,itemModifiers:s}=t.toRefs(o);t.watchEffect((()=>{"string"==typeof o.modelValue&&i.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")}));const d=t.computed({get:()=>i.value?o.modelValue:Array.isArray(o.modelValue)?o.modelValue[0]:o.modelValue,set:e=>void 0===e||!Array.isArray(o.modelValue)&&!i.value||Array.isArray(e)?l("update:modelValue",e):l("update:modelValue",[e])});ye({key:k,modelValue:d,disabled:a,toggle:n,multiple:i,unselectable:u,modifiers:s});const c=ve("vv-button-group",r);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(c)),role:"group"},[t.renderSlot(e.$slots,"default")],2))}}),Ke={...I,title:String},qe={key:0,class:"vv-card__header"},Xe={key:1,class:"vv-card__content"},Je={key:2,class:"vv-card__footer"},Ye=t.defineComponent({name:"VvCard",props:Ke,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-card",o);return(e,l)=>(t.openBlock(),t.createElementBlock("article",{class:t.normalizeClass(t.unref(a))},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",qe,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.content?(t.openBlock(),t.createElementBlock("div",Xe,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",Je,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],2))}}),Qe={...ee,...I,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function Ze(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function et(e,l){const o=t.computed((()=>t.isRef(e)?e.value:e)),a=t.computed((()=>Ze(o.value.invalidLabel))),n=t.computed((()=>Ze(o.value.validLabel))),r=t.computed((()=>o.value.loadingLabel)),i=t.computed((()=>o.value.hintLabel)),u=t.computed((()=>Boolean(o.value.loading&&(l.loading||r.value)))),s=t.computed((()=>!u.value&&Boolean(o.value.invalid&&(l.invalid||a.value)))),d=t.computed((()=>!u.value&&!s.value&&Boolean(o.value.valid&&(l.valid||n.value)))),c=t.computed((()=>!u.value&&!s.value&&!d.value&&Boolean(l.hint||i.value))),v=t.computed((()=>s.value||d.value||u.value||c.value)),p=t.computed((()=>({modelValue:o.value.modelValue,valid:o.value.valid,invalid:o.value.invalid,loading:o.value.loading}))),m=t.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:v,invalidLabel:a,validLabel:n,loadingLabel:r,hintLabel:i,hasInvalidLabelOrSlot:s,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:u,hasHintLabelOrSlot:c}),render(){var e,l,o,a,n,r,i,u;if(this.isVisible){let s;return this.hasInvalidLabelOrSlot&&(s="alert"),this.hasValidLabelOrSlot&&(s="status"),this.hasLoadingLabelOrSlot?t.h(this.tag,{role:s},(null==(l=(e=this.$slots).loading)?void 0:l.call(e))??this.loadingLabel):this.hasInvalidLabelOrSlot?t.h(this.tag,{role:s},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?t.h(this.tag,{role:s},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):t.h(this.tag,{role:s},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:s,hasHintLabelOrSlot:c,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:u,hintSlotScope:p,HintSlot:m}}function tt(e,l,o){const a=Se(),n=t.computed((()=>{var t;if(a&&(null==(t=a.defaults.value)?void 0:t[e]))return a.defaults.value[e]}));return t.computed((()=>{if(void 0===n.value)return o;const e=n.value,t=l,a=o;return Object.keys(t).reduce(((l,o)=>{const n=a[o];if(l[o]=n,o in e){if(Array.isArray(t[o])){const a=t[o];if(a.length){a[0]===n&&(l[o]=e[o])}}if("function"==typeof t[o]){(0,t[o])()===n&&(l[o]=e[o])}if("object"==typeof t[o]){let a=t[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(l[o]=e[o]):a===n&&(l[o]=e[o])}}return l}),{})}))}const lt=["for"],ot=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],at=t.defineComponent({name:"VvCheckbox",props:Qe,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),n=tt("VvCheckbox",Qe,o),{id:r,disabled:i,readonly:u,valid:s,invalid:d,propsSwitch:c,modelValue:v,indeterminate:p,isInGroup:m}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=de(V),{id:r,switch:i,indeterminate:u}=t.toRefs(e),s=n("modelValue",e,l),d=n("valid",e),c=n("invalid",e),v=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==o?void 0:o.value)?void 0:t.readonly.value))})),p=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{id:r,propsSwitch:i,indeterminate:u,group:o,isInGroup:a,modelValue:s,valid:d,invalid:c,readonly:v,disabled:p}}(o,l),f=xe(r),b=t.computed((()=>`${f.value}-hint`)),g=t.computed((()=>k.value?-1:o.tabindex)),y=t.ref(),h=t.computed((()=>void 0!==o.uncheckedValue&&!m.value)),k=t.computed((()=>i.value||u.value)),S=t.computed((()=>!0===d.value||!0!==s.value&&void 0)),B=t.computed((()=>h.value?v.value===o.value:Array.isArray(v.value)?ie(o.value,v.value):ae(o.value,v.value))),w=t.computed((()=>!!p.value||!(B.value||!h.value||o.uncheckedValue===v.value))),x=t.computed((()=>{if(!h.value)return!["string","number","boolean"].includes(typeof o.value)||o.value})),C=t.computed({get:()=>B.value,set(e){if(h.value)v.value=e?o.value:o.uncheckedValue;else if(Array.isArray(v.value)||m.value){const t=new Set(Array.isArray(v.value)?v.value:void 0!==v.value?[v.value]:[]);e?t.add(o.value):t.delete(o.value),v.value=[...t]}else v.value=e?o.value:void 0;l("change",e)}}),{modifiers:_}=t.toRefs(o),$=ve("vv-checkbox",_,t.computed((()=>({switch:c.value,valid:s.value,invalid:d.value,disabled:i.value,readonly:u.value,indeterminate:p.value}))));t.watchEffect((()=>{h.value&&Array.isArray(v.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")})),t.watch((()=>w.value),(e=>{y.value.indeterminate=!!e})),t.onMounted((()=>{w.value&&(y.value.indeterminate=!0)}));const{HintSlot:P,hasHintLabelOrSlot:E,hasInvalidLabelOrSlot:N,hintSlotScope:L}=et(n,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref($)),for:t.unref(f)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(f),ref_key:"input",ref:y,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(C)?C.value=e:null),type:"checkbox",class:"vv-checkbox__input",name:e.name,disabled:t.unref(k),value:t.unref(x),tabindex:t.unref(g),"aria-invalid":t.unref(S),"aria-describedby":t.unref(E)?t.unref(b):void 0,"aria-errormessage":t.unref(N)?t.unref(b):void 0},null,8,ot),[[t.vModelCheckbox,t.unref(C)]]),t.renderSlot(e.$slots,"default",{value:t.unref(v)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(P),{id:t.unref(b),class:"vv-checkbox__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(L))))])),key:"3"}:void 0]),1032,["id"])],10,lt))}}),nt=te;function rt(e){const{options:l,labelKey:o,valueKey:a,disabledKey:r}=t.toRefs(e);return{options:l,getOptionLabel:e=>"object"!=typeof e&&null!==e?e:String("function"==typeof o.value?o.value(e):n.get(e,o.value)),getOptionValue:e=>"object"!=typeof e&&null!==e?e:"function"==typeof a.value?a.value(e):n.get(e,a.value),isOptionDisabled:e=>("object"==typeof e||null===e)&&("function"==typeof r.value?r.value(e):n.get(e,r.value)),getOptionGrouped:e=>"object"!=typeof e&&null!==e?[]:e.options||[]}}const it=["textContent"],ut={class:"vv-checkbox-group__wrapper"},st=t.defineComponent({name:"VvCheckboxGroup",props:nt,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvCheckboxGroup",nt,a),i=o.useVModel(a,"modelValue",l),{disabled:u,readonly:s,vertical:d,valid:c,invalid:v,modifiers:p}=t.toRefs(a);ye({key:V,modelValue:i,disabled:u,readonly:s,valid:c,invalid:v});const{getOptionLabel:m,getOptionValue:f}=rt(a),b=ve("vv-checkbox-group",p,t.computed((()=>({disabled:u.value,readonly:s.value,horizontal:!d.value,valid:c.value,invalid:v.value})))),{HintSlot:g,hintSlotScope:y}=et(r,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(b))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,it)):t.createCommentVNode("",!0),t.createElementVNode("div",ut,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(at,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:m(e),value:f(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(g),{class:"vv-checkbox-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"3"}:void 0]),1024)],2))}}),dt={...J,...U,...P,...E,...M,...N,...L,...z,...I,...H,...G,...W,...K,...X,...T,transitionName:{type:String,default:"vv-dropdown--mobile-fade-block"},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},noResultsLabel:{type:String,default:"No results"},noOptionsLabel:{type:String,default:"No options available"},selectedHintLabel:{type:String,default:"Selected"},deselectActionLabel:{type:String,default:"Deselect"},selectHintLabel:{type:String,default:"Press enter to select"},deselectHintLabel:{type:String,default:"Press enter to remove"},closeLabel:{type:String,default:"Close"},placeholder:String,searchable:Boolean,searchFunction:{type:Function,default:void 0},searchPlaceholder:{type:String,default:"Search..."},debounceSearch:{type:[Number,String],default:0},multiple:Boolean,maxValues:[Number,String],separator:{type:String,default:", "},native:Boolean,badges:Boolean,badgeModifiers:{type:[String,Array],default:"action sm"},triggerWidth:{...X.triggerWidth,default:!0},dropdownModifiers:{type:[String,Array],default:"mobile"},autoOpen:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1}},ct={...q,...X,...I,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:b.menu,validator:e=>Object.values(b).includes(e)}};const vt=["id","tabindex","role","aria-labelledby"],pt=t.defineComponent({name:"VvDropdown",inheritAttrs:!1,props:ct,emits:["update:modelValue","beforeExpand","beforeCollapse","afterExpand","afterCollapse","before-enter","after-leave","enter","after-enter","enter-cancelled","before-leave","leave","leave-cancelled"],setup(e,{expose:l,emit:a}){const n=e,{id:u}=t.toRefs(n),c=xe(u),v=t.useAttrs(),p=t.ref("auto"),m=t.ref("auto"),f=t.ref(null),y=t.ref(),h=t.ref(null),k=t.ref(null),S=t.computed({get:()=>n.reference??f.value,set:e=>{f.value=e}}),V=t.ref(!1);t.onMounted((()=>{o.useMutationObserver(y.value,(()=>{var e;V.value="true"===(null==(e=window.getComputedStyle(y.value).getPropertyValue("--dropdown-custom-position"))?void 0:e.trim())}),{attributeFilter:["style"],window:window})}));const B=t.computed((()=>{const e=[];if(n.autoPlacement?"boolean"==typeof n.autoPlacement?e.push(r.autoPlacement()):e.push(r.autoPlacement(n.autoPlacement)):n.flip&&("boolean"==typeof n.flip?e.push(r.flip({fallbackStrategy:"initialPlacement"})):e.push(r.flip(n.flip))),n.shift&&("boolean"==typeof n.shift?e.push(r.shift()):e.push(r.shift(n.shift))),n.size){const t=({availableWidth:e,availableHeight:t})=>{p.value=`${e}px`,m.value=`${t}px`};"boolean"==typeof n.size?e.push(r.size({apply:t})):e.push(r.size({...n.size,apply:t}))}return n.offset&&(e.push(r.offset(Number(n.offset))),["string","number"].includes(typeof n.offset)?e.push(r.offset(Number(n.offset))):e.push(r.offset(n.offset))),n.arrow&&e.push(r.arrow({element:h})),e})),{x:C,y:_,middlewareData:$,placement:P,strategy:E}=r.useFloating(S,y,{whileElementsMounted:(...e)=>r.autoUpdate(...e,{animationFrame:n.strategy===s.fixed}),placement:t.computed((()=>n.placement)),strategy:t.computed((()=>n.strategy)),middleware:B}),N=t.computed((()=>{var e;if(V.value)return;const t=n.triggerWidth&&S.value?`${null==(e=S.value)?void 0:e.offsetWidth}px`:void 0;return{position:E.value,top:`${_.value??0}px`,left:`${C.value??0}px`,maxWidth:t?void 0:p.value,maxHeight:m.value,width:t}})),L=t.computed((()=>P.value.split("-")[0])),A=t.computed((()=>{var e,t,l,o,a;if(V.value)return;const n={[d.top]:d.bottom,[d.right]:d.left,[d.bottom]:d.top,[d.left]:d.right}[L.value];return{left:void 0!==(null==(e=$.value.arrow)?void 0:e.x)?`${null==(t=$.value.arrow)?void 0:t.x}px`:void 0,top:void 0!==(null==(l=$.value.arrow)?void 0:l.y)?`${null==(o=$.value.arrow)?void 0:o.y}px`:void 0,[n]:-((null==(a=h.value)?void 0:a.offsetWidth)??0)/2+"px"}})),R=o.useVModel(n,"modelValue",a),O=t.ref(!1),D=t.computed({get:()=>R.value??O.value,set:e=>{void 0!==R.value?R.value=e:O.value=e}}),T=()=>{D.value=!0},z=()=>{D.value=!1},I=()=>{D.value=!D.value},M=e=>{S.value=e};l({toggle:I,show:T,hide:z,init:M,customPosition:V}),t.watch(D,(e=>{e&&n.autofocusFirst&&t.nextTick((()=>{const e=J(y.value);e.length>0&&e[0].focus({preventScroll:!0})}))})),o.onClickOutside(y,(()=>{!n.keepOpen&&D.value&&(D.value=!1)}),{ignore:[S]});const H=t.computed((()=>{var e,t;return(null==(t=null==(e=S.value)?void 0:e.getAttribute)?void 0:t.call(e,"id"))??void 0})),F=t.computed((()=>({"aria-controls":c.value,"aria-haspopup":!0,"aria-expanded":D.value}))),{component:j,bus:G}=function({reference:e,id:l,expanded:o,aria:a}){const n=i(),r=t.defineComponent({name:"VvDropdownTriggerProvider",setup(){t.provide(w,{reference:e,id:l,expanded:o,aria:a,bus:n})},render(){var e,l;return t.h(t.Fragment,{},null==(l=(e=this.$slots).default)?void 0:l.call(e))}});return{bus:n,component:r}}({reference:S,id:c,expanded:D,aria:F});G.on("click",I);const{role:U,modifiers:W}=t.toRefs(n),{itemRole:K}=function({role:e,expanded:l}){const o=t.computed((()=>e.value===b.listbox?g.option:g.presentation));return t.provide(x,{role:o,expanded:l}),{itemRole:o}}({role:U,expanded:D}),q=ve("vv-dropdown",W,t.computed((()=>({arrow:n.arrow})))),{focused:X}=o.useFocusWithin(y);function J(e){return e?[...e.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))):[]}o.onKeyStroke("Escape",(e=>{D.value&&(e.preventDefault(),z())})),o.onKeyStroke("ArrowDown",(e=>{D.value&&X.value&&(e.preventDefault(),t.nextTick((()=>{if(X.value){const e=J(y.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t<e.length-1?e[t+1].focus({preventScroll:!0}):e[0].focus({preventScroll:!0})}})))})),o.onKeyStroke("ArrowUp",(e=>{D.value&&X.value&&(e.preventDefault(),t.nextTick((()=>{if(X.value){const e=J(y.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t>0?e[t-1].focus({preventScroll:!0}):e[e.length-1].focus({preventScroll:!0})}})))})),o.onKeyStroke([" ","Enter"],(e=>{const t=e.target;D.value&&X.value&&t&&(null==t||t.click())}));const Y={"before-enter":()=>{a(D.value?"beforeExpand":"beforeCollapse"),a("before-enter")},"after-leave":()=>{a(D.value?"afterExpand":"afterCollapse"),a("after-leave")},enter:()=>{a("enter")},"after-enter":()=>{a("after-enter")},"enter-cancelled":()=>{a("enter-cancelled")},"before-leave":()=>{a("before-leave")},leave:()=>{a("leave")},"leave-cancelled":()=>{a("leave-cancelled")}};return(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(j),null,{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({init:M,show:T,hide:z,toggle:I,expanded:t.unref(D),aria:t.unref(F)})))])),_:3}),t.createVNode(t.Transition,t.mergeProps({name:e.transitionName},t.toHandlers(Y)),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"floatingEl",ref:y,style:t.normalizeStyle(t.unref(N)),class:t.normalizeClass(t.unref(q))},[n.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowEl",ref:h,style:t.normalizeStyle(t.unref(A)),class:"vv-dropdown__arrow"},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(D)}))),t.createElementVNode("div",t.mergeProps(t.unref(v),{id:t.unref(c),ref_key:"listEl",ref:k,tabindex:t.unref(D)?void 0:-1,role:t.unref(U),"aria-labelledby":t.unref(H),class:"vv-dropdown__list"}),[t.renderSlot(e.$slots,"items",t.normalizeProps(t.guardReactiveProps({role:t.unref(K)})))],16,vt),t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(D)})))],6),[[t.vShow,t.unref(D)]])])),_:3},16,["name"])],64))}}),mt=t.defineComponent({name:"VvDropdownItem",setup(e){const{role:l,expanded:a}=t.inject(x,{}),n=t.ref(null);!function({expanded:e}){t.provide(C,{role:t.ref(f.menuitem),expanded:e})}({expanded:a});const r=o.useElementHover(n),{focused:i}=o.useFocus(n),{focused:u}=o.useFocusWithin(n);return t.watch(r,(e=>{e&&(i.value=!0)})),(e,o)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({role:t.unref(l)},{ref_key:"element",ref:n,class:["vv-dropdown__item",{"focus-visible":t.unref(i)||t.unref(u)}]}),[t.renderSlot(e.$slots,"default")],16))}}),ft=["title"],bt=t.defineComponent({name:"VvDropdownOption",props:{...L,...A,...K,...I,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-dropdown-option",o,t.computed((()=>({disabled:l.disabled,selected:l.selected,unselectable:l.unselectable&&l.selected})))),n=t.computed((()=>l.selected?l.unselectable?l.deselectHintLabel:l.selectedHintLabel:l.disabled?void 0:l.selectHintLabel));return(e,l)=>(t.openBlock(),t.createBlock(mt,{class:t.normalizeClass(t.unref(a)),tabindex:e.disabled?-1:0,"aria-selected":e.selected,"aria-disabled":e.disabled},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default"),t.createElementVNode("span",{class:"vv-dropdown-option__hint",title:t.unref(n)},[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps({disabled:e.disabled,selected:e.selected,unselectable:e.unselectable})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)),1)]))],8,ft)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}}),gt={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},yt=t.defineComponent({name:"VvDropdownOptgroup",props:{...T},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",gt,t.toDisplayString(l.label),1))}}),ht={...J,...Y,...Q,...U,...P,...E,...M,...N,...L,...z,...I,...H,...G,...W,...K,...T,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},placeholder:String};function kt(e,l){const{focused:a}=o.useFocus(e);return t.watch(a,(o=>{l(o?"focus":"blur",t.unref(e))})),{focused:a}}function St(e,l){const o=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===v.before))),a=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===v.after))),n=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.left))),r=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.right))),i=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.top))),u=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===d.bottom)));return{hasIcon:t.computed((()=>"string"==typeof(null==e?void 0:e.value)?{name:null==e?void 0:e.value}:null==e?void 0:e.value)),hasIconLeft:n,hasIconRight:r,hasIconTop:i,hasIconBottom:u,hasIconBefore:o,hasIconAfter:a}}const Vt=["for"],Bt={class:"vv-select__wrapper"},wt={key:0,class:"vv-select__input-before"},xt={class:"vv-select__inner"},Ct=["id"],_t=["disabled","hidden"],$t=["disabled","value"],Pt=["disabled","label"],Et=["disabled","value"],Nt={key:1,class:"vv-select__input-after"},Lt=t.defineComponent({name:"VvSelect",props:ht,emits:["update:modelValue","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvSelect",ht,a),i=t.ref(),{HintSlot:u,hasHintLabelOrSlot:s,hasInvalidLabelOrSlot:d,hintSlotScope:c}=et(r,n),{id:v,modifiers:p,disabled:m,readonly:f,loading:b,icon:g,iconPosition:y,invalid:h,valid:k,floating:S,multiple:V}=t.toRefs(a),B=xe(v),w=t.computed((()=>`${B.value}-hint`)),{focused:x}=kt(i,l),C=o.useElementVisibility(i);t.watch(C,(e=>{e&&a.autofocus&&(x.value=!0)}));const{hasIcon:_,hasIconBefore:$,hasIconAfter:P}=St(g,y),E=t.computed((()=>!ue(a.modelValue))),N=t.computed((()=>a.disabled||a.readonly)),L=t.computed((()=>N.value?-1:a.tabindex)),A=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),R=ve("vv-select",p,t.computed((()=>({valid:k.value,invalid:h.value,loading:b.value,disabled:m.value,readonly:f.value,"icon-before":$.value,"icon-after":P.value,dirty:E.value,focus:x.value,floating:S.value,multiple:V.value})))),O=t.computed((()=>({name:a.name,tabindex:L.value,disabled:N.value,required:a.required,size:a.size,autocomplete:a.autocomplete,multiple:a.multiple,"aria-invalid":A.value,"aria-describedby":s.value?w.value:void 0,"aria-errormessage":d.value?w.value:void 0}))),D=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue}))),{getOptionLabel:T,getOptionValue:z,isOptionDisabled:I,getOptionGrouped:M}=rt(a),H=t.computed({get:()=>a.modelValue,set:e=>{Array.isArray(e)&&(e=e.filter((e=>void 0!==e))),l("update:modelValue",e)}}),F=e=>"string"!=typeof e&&(e&&e.options&&e.options.length>0);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(R))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(B)},t.toDisplayString(e.label),9,Vt)):t.createCommentVNode("",!0),t.createElementVNode("div",Bt,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",wt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])):t.createCommentVNode("",!0),t.createElementVNode("div",xt,[t.unref($)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(_)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(B),ref_key:"select",ref:i,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(H)?H.value=e:null)},t.unref(O)),[e.placeholder?(t.openBlock(),t.createElementBlock("option",{key:0,value:void 0,disabled:!e.unselectable,hidden:!e.unselectable},t.toDisplayString(e.placeholder),9,_t)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,((e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[F(e)?(t.openBlock(),t.createElementBlock("optgroup",{key:`group-${l}`,disabled:t.unref(I)(e),label:t.unref(T)(e)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(M)(e),((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:`group-${l}-item-${o}`,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,Et)))),128))],8,Pt)):(t.openBlock(),t.createElementBlock("option",{key:l,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,$t))],64)))),256))],16,Ct),[[t.vModelSelect,t.unref(H)]]),t.unref(P)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(_)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Nt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(u),{id:t.unref(w),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"3"}:void 0]),1032,["id"])],2))}}),At=["id"],Rt=["id","for"],Ot=["id","aria-controls","placeholder"],Dt={key:0,class:"vv-select__input-before"},Tt={class:"vv-select__inner"},zt=["aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],It={key:0,class:"vv-select__value"},Mt=["aria-label","onClick"],Ht={key:1,class:"vv-select__input-after"},Ft={name:"VvCombobox",components:{VvDropdown:pt,VvDropdownOption:bt,VvDropdownOptgroup:yt,VvButton:Ge}},jt=t.defineComponent({...Ft,props:dt,emits:["update:modelValue","change:search","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvCombobox",dt,a),i=e=>"string"!=typeof e&&(e.options&&e.options.length>0),{HintSlot:u,hasHintLabelOrSlot:s,hasInvalidLabelOrSlot:d,hintSlotScope:c}=et(r,n),v=t.ref(null),p=t.ref(null),m=t.ref(null),{focused:f}=kt(v,l),{focused:g}=o.useFocusWithin(m);t.watch(f,(e=>{a.autoOpen&&(!e||k.value?e||!k.value||g.value||B():V())})),t.watch(g,(e=>{f.value||e||!k.value||B()}));const y=t.ref(""),h=o.refDebounced(y,t.computed((()=>Number(a.debounceSearch))));t.watch(h,(()=>l("change:search",h.value)));const k=t.ref(!1),S=()=>{a.disabled||a.readonly||(k.value=!k.value)},V=()=>{a.disabled||a.readonly||k.value||(k.value=!0)},B=()=>{a.disabled||a.readonly||!k.value||(k.value=!1)},w=()=>{r.value.searchable&&p.value&&p.value.focus({preventScroll:!0})},x=()=>{r.value.searchable&&(y.value="")},{id:C,icon:_,iconPosition:$,modifiers:P,disabled:E,readonly:N,loading:L,valid:A,invalid:R,floating:O}=t.toRefs(a),D=xe(C),T=t.computed((()=>`${D.value}-hint`)),z=t.computed((()=>`${D.value}-dropdown`)),I=t.computed((()=>`${D.value}-search`)),M=t.computed((()=>`${D.value}-label`)),H=t.ref(!1),F=t.computed((()=>H.value||L.value)),j=t.ref(),{hasIcon:G,hasIconBefore:U,hasIconAfter:W}=St(_,$),K=t.computed((()=>!ue(a.modelValue))),q=t.computed((()=>E.value||N.value?-1:a.tabindex)),X=ve("vv-select",P,t.computed((()=>({disabled:E.value,loading:F.value,readonly:N.value,"icon-before":Boolean(U.value),"icon-after":Boolean(W.value),valid:A.value,invalid:R.value,dirty:K.value,focus:f.value,floating:O.value,badges:a.badges})))),{getOptionLabel:J,getOptionValue:Y,getOptionGrouped:Q,isOptionDisabled:Z}=rt(a),ee=o.computedAsync((async()=>{var e;if(r.value.searchFunction){H.value=!0;const e=await Promise.resolve(r.value.searchFunction(h.value,a.options));return H.value=!1,e}return null==(e=a.options)?void 0:e.filter((e=>J(e).toLowerCase().includes(h.value.toLowerCase().trim())))}));function te(e){return Array.isArray(a.modelValue)?ie(e,a.modelValue)||ie(Y(e),a.modelValue):ae(e,a.modelValue)||ae(Y(e),a.modelValue)}const le=t.computed((()=>a.options.reduce(((e,t)=>i(t)?[...e,...Q(t)]:[...e,t]),[]).filter((e=>te(e))))),oe=t.computed((()=>le.value.map((e=>J(e))).join(a.separator))),ne=()=>{a.autoOpen?V():S()},re=e=>{var t;if(a.disabled||a.readonly)return;const o=Y(e);let n=o;if(a.multiple)if(Array.isArray(a.modelValue)){const e=Number(a.maxValues);if(void 0!==a.maxValues&&e>=0&&(null==(t=a.modelValue)?void 0:t.length)>=e&&!ie(o,a.modelValue))return;n=ie(o,a.modelValue)?se(o,a.modelValue):[...a.modelValue,o]}else n=[o];else a.keepOpen||B(),Array.isArray(a.modelValue)?n=a.unselectable&&a.modelValue.includes(o)?[]:[o]:a.unselectable&&o===a.modelValue&&(n=void 0);l("update:modelValue",n)},de=t.computed((()=>({id:D.value,name:a.name,tabindex:q.value,valid:A.value,validLabel:r.value.validLabel,invalid:R.value,invalidLabel:r.value.invalidLabel,hintLabel:r.value.hintLabel,loading:F.value,loadingLabel:r.value.loadingLabel,disabled:E.value,readonly:N.value,modifiers:r.value.modifiers,options:r.value.options,labelKey:r.value.labelKey,valueKey:r.value.valueKey,icon:r.value.icon,iconPosition:r.value.iconPosition,floating:r.value.floating,unselectable:r.value.unselectable,multiple:r.value.multiple,label:r.value.label,placeholder:r.value.placeholder,modelValue:a.modelValue}))),ce=t.computed((()=>({id:z.value,reference:m.value,placement:r.value.placement,strategy:r.value.strategy,transitionName:r.value.transitionName,offset:r.value.offset,shift:r.value.shift,flip:r.value.flip,autoPlacement:r.value.autoPlacement,arrow:r.value.arrow,autofocusFirst:!!r.value.searchable||r.value.autofocusFirst,triggerWidth:r.value.triggerWidth,modifiers:r.value.dropdownModifiers}))),pe=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue})));return o.onKeyStroke([" ","Enter"],(e=>{a.autoOpen||!k.value&&f.value&&(e.preventDefault(),e.stopImmediatePropagation(),S())}),{target:v}),(e,o)=>e.native?(t.openBlock(),t.createBlock(Lt,t.mergeProps({key:1},t.unref(de),{"onUpdate:modelValue":o[3]||(o[3]=e=>l("update:modelValue",e))}),null,16)):(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(D),class:t.normalizeClass(t.unref(X))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:t.unref(M),for:t.unref(r).searchable?t.unref(I):void 0},t.toDisplayString(e.label),9,Rt)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:m,class:"vv-select__wrapper"},[t.createVNode(pt,t.mergeProps({ref_key:"dropdownEl",ref:j,modelValue:t.unref(k),"onUpdate:modelValue":o[2]||(o[2]=e=>t.isRef(k)?k.value=e:null)},t.unref(ce),{role:t.unref(b).listbox,onAfterExpand:w,onAfterCollapse:x}),t.createSlots({default:t.withCtx((({aria:l})=>[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Dt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(pe))))])):t.createCommentVNode("",!0),t.createElementVNode("div",Tt,[t.unref(U)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(G)),null,16)):t.createCommentVNode("",!0),t.createElementVNode("div",t.mergeProps({ref_key:"inputEl",ref:v},l,{class:"vv-select__input",role:"combobox","aria-expanded":t.unref(k),"aria-labelledby":t.unref(M),"aria-describedby":t.unref(s)?t.unref(T):void 0,"aria-errormessage":t.unref(d)?t.unref(T):void 0,tabindex:t.unref(q),onClickPassive:ne}),[t.renderSlot(e.$slots,"value",t.normalizeProps(t.guardReactiveProps({selectedOptions:t.unref(le),onInput:re})),(()=>[t.unref(oe)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.badges?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(le),((l,o)=>(t.openBlock(),t.createBlock(De,{key:o,modifiers:e.badgeModifiers,class:"vv-select__badge"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(t.unref(J)(l))+" ",1),!e.unselectable||t.unref(N)||t.unref(E)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,"aria-label":t.unref(r).deselectActionLabel,type:"button",onClick:t.withModifiers((e=>re(l)),["stop"])},[t.createVNode(we,{name:"close"})],8,Mt))])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock("div",It,t.toDisplayString(t.unref(oe)),1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,zt),t.unref(W)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(G)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Ht,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(pe))))])):t.createCommentVNode("",!0)])),items:t.withCtx((()=>{var l;return[!t.unref(E)&&(null==(l=t.unref(ee))?void 0:l.length)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(ee),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[i(l)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(yt,{label:t.unref(J)(l)},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Q)(l),((o,a)=>(t.openBlock(),t.createBlock(bt,t.mergeProps({selected:te(o),disabled:t.unref(Z)(o),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{key:a,class:"vv-dropdown-option",onClickPassive:e=>re(o)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(le),selected:te(o),disabled:t.unref(Z)(o)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(J)(o)),1)]))])),_:2},1040,["onClickPassive"])))),128))],64)):(t.openBlock(),t.createBlock(bt,t.mergeProps({key:1},{selected:te(l),disabled:t.unref(Z)(l),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{class:"vv-dropdown-option",onClickPassive:e=>re(l)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(le),selected:te(l),disabled:t.unref(Z)(l)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(J)(l)),1)]))])),_:2},1040,["onClickPassive"]))],64)))),128)):e.options.length?t.unref(E)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(bt,{key:2,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-results",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noResultsLabel),1)]))])),_:3})):(t.openBlock(),t.createBlock(bt,{key:1,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-options",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noOptionsLabel),1)]))])),_:3}))]})),after:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::after",{},(()=>{var e;return[(null==(e=t.unref(j))?void 0:e.customPosition)?(t.openBlock(),t.createBlock(Ge,{key:0,label:t.unref(r).closeLabel,modifiers:"secondary",onClick:o[1]||(o[1]=e=>t.unref(j).hide())},null,8,["label"])):t.createCommentVNode("",!0)]}))])),_:2},[t.unref(r).searchable||e.$slots["dropdown::before"]?{name:"before",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::before"),t.unref(r).searchable&&!t.unref(E)?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(I),ref_key:"inputSearchEl",ref:p,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(y)?y.value=e:null),"aria-autocomplete":"list","aria-controls":t.unref(z),autocomplete:"off",spellcheck:"false",type:"search",class:"vv-dropdown__search",placeholder:t.unref(r).searchPlaceholder},null,8,Ot)),[[t.vModelText,t.unref(y)]]):t.createCommentVNode("",!0)])),key:"0"}:void 0]),1040,["modelValue","role"])],512),t.createVNode(t.unref(u),{id:t.unref(T),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"3"}:void 0]),1032,["id"])],10,At))}}),Gt={...q,title:String,modelValue:{type:Boolean,default:void 0},transition:{type:String,default:"fade-block"},size:String,keepOpen:{type:Boolean,default:!1}},Ut=["onCancel"],Wt={key:0,class:"vv-dialog__header"},Kt={class:"vv-dialog__content"},qt={key:1,class:"vv-dialog__footer"},Xt=t.defineComponent({name:"VvDialog",props:Gt,emits:["open","close","update:modelValue","before-enter","after-leave","enter","after-enter","enter-cancelled","before-leave","leave","leave-cancelled"],setup(e,{expose:l,emit:a}){const n=e,r=t.ref(),i=o.useVModel(n,"modelValue",a),u=t.ref(!1),s=t.computed({get:()=>i.value??u.value,set:e=>{void 0!==i.value?i.value=e:u.value=e}}),d=t.ref(null),c=t.computed((()=>{const{id:e}=n;return{id:e}})),v=t.computed((()=>n.size?["vv-dialog",`vv-dialog--${n.size}`]:"vv-dialog")),p=t.computed((()=>`vv-dialog--${n.transition}`)),m={"before-enter":()=>{var e,t;(null==(e=r.value)?void 0:e.open)||null==(t=r.value)||t.showModal(),a("open"),a("before-enter")},"after-leave":()=>{var e,t;(null==(e=r.value)?void 0:e.open)&&(null==(t=r.value)||t.close()),a("close"),a("after-leave")},enter:()=>{a("enter")},"after-enter":()=>{a("after-enter")},"enter-cancelled":()=>{a("enter-cancelled")},"before-leave":()=>{a("before-leave")},leave:()=>{a("leave")},"leave-cancelled":()=>{a("leave-cancelled")}};function f(){s.value=!1}o.onClickOutside(d,(()=>{n.keepOpen||f()})),l({close:f,open:function(){s.value=!0}});const b=()=>{n.keepOpen||f()};return(e,l)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(p)},t.toHandlers(m)),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("dialog",t.mergeProps(t.unref(c),{ref_key:"dialogEl",ref:r,class:t.unref(v),onCancel:t.withModifiers(b,["stop","prevent"])}),[t.createElementVNode("article",{ref_key:"modalWrapper",ref:d,class:"vv-dialog__wrapper"},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",Wt,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClickPassive:f},[t.createVNode(we,{name:"close"})],32)]))])):t.createCommentVNode("",!0),t.createElementVNode("div",Kt,[t.renderSlot(e.$slots,"default")]),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",qt,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],512)],16,Ut),[[t.vShow,t.unref(s)]])])),_:3},16,["name"]))}}),Jt={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},Yt="eye-on",Qt="eye-off",Zt="calendar",el="time",tl="color",ll="close",ol={...Z,modelValue:[String,Number],type:{type:String,default:Jt.TEXT,validator:e=>Object.values(Jt).includes(e)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:Yt},iconHidePassword:{type:String,default:Qt},iconClear:{type:String,default:ll},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"},iMask:{type:Object,default:void 0},masked:{type:String,default:void 0},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String},selectOnFocus:{type:Boolean,default:!1}},al=t.defineComponent({components:{VvIcon:we},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:Yt},iconHide:{type:String,default:Qt}},emits:["toggle-password"],setup(e,{emit:l}){const o=t.ref(!1),a=t.computed((()=>o.value?e.iconHide:e.iconShow));return{active:o,activeIcon:a,onClick:function(t){null==t||t.stopPropagation(),e.disabled||(o.value=!o.value,l("toggle-password",o.value))}}},render(){const e=t.h(we,{name:this.activeIcon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},e)}}),nl=t.defineComponent({components:{VvIcon:we},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:e=>["up","down"].includes(e),default:"up"}},emits:["step-up","step-down"],setup(e,{emit:l}){const o=t.computed((()=>"up"===e.mode));return{isUp:o,onClick:t=>{null==t||t.stopPropagation(),e.disabled||l(o.value?"step-up":"step-down")}}},render(){return t.h("button",{class:["vv-input-text__action vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}}),rl=t.defineComponent({components:{VvIcon:we},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup:(e,{emit:t})=>({onClick:function(l){null==l||l.stopPropagation(),e.disabled||t("clear")}}),render(){const e=t.h(we,{name:this.icon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},e)}});function il(e,l){return{name:"VvInputTextActions",components:{VvIcon:we,VvInputPasswordAction:al,VvInputStepAction:nl,VvInputClearAction:rl},setup:()=>({isDisabled:t.computed((()=>l.disabled||l.readonly)),labelStepUp:l.labelStepUp,labelStepDown:l.labelStepDown,labelShowPassword:l.labelShowPassword,labelHidePassword:l.labelHidePassword,labelClear:l.labelClear,iconShowPassword:l.iconShowPassword,iconHidePassword:l.iconHidePassword}),render(){let o=null;switch(e){case Jt.SEARCH:{const{onClear:e}=this.$attrs;o=[t.h(rl,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:e})];break}case Jt.PASSWORD:{const{onTogglePassword:e}=this.$attrs;o=[t.h(al,{disabled:this.isDisabled,onTogglePassword:e,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case Jt.NUMBER:{const{onStepUp:e,onStepDown:a}=this.$attrs;o=[t.h(nl,{mode:"up",disabled:this.isDisabled||void 0!==l.max&&l.modelValue===l.max,label:this.labelStepUp,onStepUp:e,onStepDown:a}),t.h(nl,{mode:"down",disabled:this.isDisabled||void 0!==l.min&&l.modelValue===l.min,label:this.labelStepDown,onStepUp:e,onStepDown:a})];break}}return Array.isArray(o)?t.h("div",{class:"vv-input-text__actions-group"},o):o}}}function ul(e,l,o=0,{getter:a=(e=>e),setter:n=(e=>e)}={}){let r;return"string"==typeof o&&(o=parseInt(o)),t.computed({get:()=>a(null==e?void 0:e.value),set:e=>{r&&clearTimeout(r),r=setTimeout((()=>{l("update:modelValue",n(e))}),o)}})}function sl(e,l){const o=t.computed((()=>(t.unref(e)??"").length)),a=t.computed((()=>void 0!==(null==l?void 0:l.lowerLimit)&&o.value<(null==l?void 0:l.lowerLimit)?o.value-l.lowerLimit:void 0!==(null==l?void 0:l.upperLimit)&&o.value<(null==l?void 0:l.upperLimit)?l.upperLimit-o.value:0)),n=t.computed((()=>{if(!1===(null==l?void 0:l.mode))return"";if("limit"===(null==l?void 0:l.mode)&&(null==l?void 0:l.upperLimit))return`${o.value} / ${l.lowerLimit?`${l.lowerLimit}-`:""}${l.upperLimit}`;if("countdown"===(null==l?void 0:l.mode)){if(0===a.value)return;return a}return o.value}));return{length:o,gap:a,formatted:n}}const dl=["for"],cl={class:"vv-input-text__wrapper"},vl={key:0,class:"vv-input-text__input-before"},pl=["onClick"],ml=["id"],fl={key:1,class:"vv-input-text__unit"},bl={key:5,class:"vv-input-text__input-after"},gl={key:6,class:"vv-input-text__limit"},yl=t.defineComponent({name:"VvInputText",props:ol,emits:["update:modelValue","update:masked","accept","accept:typed","accept:masked","accept:unmasked","complete","complete:typed","complete:masked","complete:unmasked","focus","blur","keyup","keydown","keypress"],setup(e,{expose:l,emit:a}){const n=e,r=t.useSlots(),i=tt("VvInputText",ol,n),{id:s,icon:d,iconPosition:c,label:v,modelValue:p,count:m,valid:f,invalid:b,loading:g,debounce:y,maxlength:h,minlength:k,type:S,iMask:V,step:B}=t.toRefs(n),w=xe(s),x=t.computed((()=>`${w.value}-hint`)),C=t.computed((()=>n.floating&&ue(n.placeholder)?" ":n.placeholder)),_=t.ref(!1),{el:$,mask:P,typed:E,masked:N,unmasked:L}=u.useIMask(t.computed((()=>(null==V?void 0:V.value)??{mask:/./})),{emit:a,onAccept:()=>{if(_.value){if(a("update:masked",N.value),S.value===Jt.NUMBER){if(""===N.value){if(null===O.value||void 0===O.value)return;return void(O.value=void 0)}return"number"!=typeof E.value?void(O.value=Number(E.value)):void(O.value=E.value)}if(S.value===Jt.DATE){if($.value instanceof HTMLInputElement&&"date"===$.value.type)return void(O.value=$.value.value);let e=E.value;if(null===e||""===e){if(!O.value)return;return void(O.value="")}return e instanceof Date||(e=new Date(e)),void(O.value=`${e.getFullYear()}-${("0"+(e.getMonth()+1)).slice(-2)}-${("0"+e.getDate()).slice(-2)}`)}if(S.value===Jt.DATETIME_LOCAL){if($.value instanceof HTMLInputElement&&"datetime-local"===$.value.type)return void(O.value=$.value.value);let e=E.value;if(null===e||""===e){if(!O.value)return;return void(O.value="")}return E.value instanceof Date||(e=new Date(e)),void(O.value=`${e.getFullYear()}-${("0"+(e.getMonth()+1)).slice(-2)}-${("0"+e.getDate()).slice(-2)}T${("0"+e.getHours()).slice(-2)}:${("0"+e.getMinutes()).slice(-2)}`)}(O.value||L.value)&&(O.value=L.value)}}});t.onMounted((()=>{P.value&&(_.value=!0,E.value=O.value??"")})),t.watch((()=>n.modelValue),(e=>{var t;P.value&&(E.value=e&&(null==(t=null==V?void 0:V.value)?void 0:t.mask)===Date?new Date(e):e??"")})),t.watch((()=>n.masked),(e=>{N.value=e??""}));const A=$,R=t.ref();l({$inner:R});const O=ul(p,a,(null==y?void 0:y.value)??0),{focused:D}=kt(A,a),T=t.computed((()=>D.value&&!n.disabled&&!n.readonly));t.watch(T,(e=>{e&&i.value.selectOnFocus&&A.value&&A.value.select()}));const z=o.useElementVisibility(A);t.watch(z,(e=>{e&&n.autofocus&&!n.disabled&&!n.readonly&&(D.value=!0)}));const I=t.ref(!1),M=t.computed((()=>n.type===Jt.PASSWORD)),H=()=>{I.value=!I.value},F=t.computed((()=>n.type===Jt.TIME||n.type===Jt.DATETIME_LOCAL||n.type===Jt.DATE||n.type===Jt.WEEK||n.type===Jt.MONTH)),j=t.computed((()=>n.type===Jt.NUMBER)),G=()=>{if(Z.value){if(null==V?void 0:V.value)return void(E.value=E.value+Number((null==B?void 0:B.value)??1));A.value.stepUp(),O.value=t.unref(A).value}},U=()=>{if(Z.value){if(null==V?void 0:V.value)return void(E.value=E.value-Number((null==B?void 0:B.value)??1));A.value.stepDown(),O.value=t.unref(A).value}},W=t.computed((()=>n.type===Jt.SEARCH)),K=()=>{O.value=""},{hasIcon:q,hasIconBefore:X,hasIconAfter:J}=St(d,c),Y=t.computed((()=>{switch(n.type){case Jt.COLOR:return{name:tl};case Jt.DATE:case Jt.DATETIME_LOCAL:case Jt.WEEK:case Jt.MONTH:return{name:Zt};case Jt.TIME:return{name:el};default:return""}})),{formatted:Q}=sl(O,{mode:m.value,upperLimit:Number(null==h?void 0:h.value),lowerLimit:Number(null==k?void 0:k.value)}),Z=t.computed((()=>!n.disabled&&!n.readonly)),ee=t.computed((()=>Z.value?n.tabindex:-1)),te=t.computed((()=>!ue(p))),le=t.computed((()=>!0===b.value||!0!==f.value&&void 0)),{modifiers:oe}=t.toRefs(n),ae=ve("vv-input-text",oe,t.computed((()=>({valid:f.value,invalid:b.value,loading:g.value,disabled:n.disabled,readonly:n.readonly,"icon-before":X.value,"icon-after":J.value||!ue(Y),floating:n.floating&&!ue(n.label),dirty:te.value,focus:T.value,"auto-width":n.autoWidth})))),ne=t.computed((()=>{const e=M.value&&I.value?Jt.TEXT:!F.value||te.value||D.value?(null==V?void 0:V.value)?Jt.TEXT:n.type:Jt.TEXT,t={type:e,name:n.name,tabindex:ee.value,disabled:n.disabled,readonly:n.readonly,required:n.required,autocomplete:n.autocomplete,"aria-invalid":le.value,"aria-describedby":se.value?x.value:void 0,"aria-errormessage":de.value?x.value:void 0};return e!==Jt.DATE&&e!==Jt.MONTH&&e!==Jt.WEEK&&e!==Jt.TIME&&e!==Jt.DATETIME_LOCAL&&e!==Jt.NUMBER||(t.step=n.step,t.max=void 0!==n.max?String(n.max):void 0,t.min=void 0!==n.min?String(n.min):void 0),e!==Jt.TEXT&&e!==Jt.SEARCH&&e!==Jt.URL&&e!==Jt.TEL&&e!==Jt.EMAIL&&e!==Jt.PASSWORD&&e!==Jt.NUMBER||(t.placeholder=C.value),e!==Jt.TEXT&&e!==Jt.SEARCH&&e!==Jt.URL&&e!==Jt.TEL&&e!==Jt.EMAIL&&e!==Jt.PASSWORD||(t.minlength=n.minlength,t.maxlength=n.maxlength,t.pattern=n.pattern),e===Jt.EMAIL&&(t.multiple=n.multiple),t})),re=t.computed((()=>({valid:n.valid,invalid:n.invalid,modelValue:n.modelValue,togglePassword:H,stepUp:G,stepDown:U,clear:K}))),{HintSlot:ie,hasHintLabelOrSlot:se,hasInvalidLabelOrSlot:de,hintSlotScope:ce}=et(i,r),pe=il(Jt.PASSWORD,n),me=il(Jt.NUMBER,n),fe=il(Jt.SEARCH,n),be=()=>{Z.value&&(D.value=!0)},ge=t.computed((()=>{if(n.autoWidth)return{width:void 0!==O.value?`${String(O.value).length+1}ch`:void 0}})),ye=e=>{switch(e.code){case"ArrowUp":j.value&&(G(),e.preventDefault());break;case"ArrowDown":j.value&&(U(),e.preventDefault())}a("keydown",e)};return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(ae))},[t.unref(v)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(w),class:"vv-input-text__label"},t.toDisplayString(t.unref(v)),9,dl)):t.createCommentVNode("",!0),t.createElementVNode("div",cl,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",vl,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(re))))])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"innerEl",ref:R,class:"vv-input-text__inner",onClick:t.withModifiers(be,["stop"])},[t.unref(X)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-input-text__icon"},t.unref(q)),null,16)):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(w),ref_key:"inputEl",ref:A},t.unref(ne),{style:t.unref(ge),onKeyup:l[0]||(l[0]=e=>a("keyup",e)),onKeydown:ye,onKeypress:l[1]||(l[1]=e=>a("keypress",e))}),null,16,ml),(e.unit||e.$slots.unit)&&t.unref(te)?(t.openBlock(),t.createElementBlock("div",fl,[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(t.unref(re))),(()=>[t.createTextVNode(t.toDisplayString(e.unit),1)]))])):t.createCommentVNode("",!0)],8,pl),t.unref(J)||t.unref(Y)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-input-text__icon vv-input-text__icon-after"},t.unref(J)?t.unref(q):t.unref(Y)),null,16)):t.unref(M)&&!e.hideActions&&t.unref(Z)?(t.openBlock(),t.createBlock(t.unref(pe),{key:2,onTogglePassword:H})):t.unref(j)&&!e.hideActions&&t.unref(Z)?(t.openBlock(),t.createBlock(t.unref(me),{key:3,onStepUp:G,onStepDown:U})):t.unref(W)&&!e.hideActions&&t.unref(Z)?(t.openBlock(),t.createBlock(t.unref(fe),{key:4,onClear:K})):t.createCommentVNode("",!0),e.$slots.after?(t.openBlock(),t.createElementBlock("div",bl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(re))))])):t.createCommentVNode("",!0),t.unref(m)?(t.openBlock(),t.createElementBlock("span",gl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(re))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(Q)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(ie),{id:t.unref(x),class:"vv-input-text__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])),key:"3"}:void 0]),1032,["id"])],2))}}),hl={...I,...oe},kl={class:"vv-nav__item",role:"presentation"},Sl=t.defineComponent({name:"VvNavItem",inheritAttrs:!1,setup:e=>(e,l)=>(t.openBlock(),t.createElementBlock("li",kl,[t.createVNode(Ve,t.mergeProps(e.$attrs,{class:"vv-nav__item-label"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16)]))}),Vl=["onClick"],Bl=t.defineComponent({__name:"VvNav",props:hl,emits:["click"],setup(e,{emit:l}){const o=e,{modifiers:a}=t.toRefs(o),n=e=>{var t;const a=e.target;if(null==a?void 0:a.dataset.index){const e=parseInt(a.dataset.index),n=null==(t=o.items)?void 0:t[e];if(!n||(null==n?void 0:n.disabled))return;l("click",n)}},r=ve("vv-nav",a);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(r))},[t.createElementVNode("ul",{class:"vv-nav__menu",role:"menu","aria-busy":"true",onClick:t.withModifiers(n,["stop"])},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(({on:e={},...l},o)=>(t.openBlock(),t.createBlock(Sl,t.mergeProps({key:o,"data-index":o},l,t.toHandlers(e)),null,16,["data-index"])))),128))]))],8,Vl)],2))}}),wl={...I,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},xl=t.defineComponent({name:"VvProgress",props:wl,setup(e){const l=e,{value:o,max:a,label:n}=t.toRefs(l),r=t.computed((()=>void 0===l.value)),{modifiers:i}=t.toRefs(l),u=ve("vv-progress",i,t.computed((()=>({indeterminate:r.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("progress",t.mergeProps({role:"progressbar"},{class:t.unref(u),ariaLabel:t.unref(n),max:t.unref(a),value:t.unref(o)}),null,16))}}),Cl=ee;const _l=["for"],$l=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Pl=t.defineComponent({name:"VvRadio",props:Cl,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),n=tt("VvRadio",Cl,o),{id:r,disabled:i,readonly:u,modelValue:s,valid:d,invalid:c}=function(e,l){const{id:o}=t.toRefs(e),{group:a,isInGroup:n,getGroupOrLocalRef:r}=de(S),i=r("modelValue",e,l),u=r("valid",e),s=r("invalid",e),d=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==a?void 0:a.value)?void 0:t.readonly.value))})),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==a?void 0:a.value)?void 0:t.disabled.value))}));return{id:o,group:a,isInGroup:n,modelValue:i,valid:u,invalid:s,readonly:d,disabled:c}}(o,l),v=xe(r),p=t.computed((()=>`${v.value}-hint`)),m=t.computed((()=>b.value?-1:o.tabindex)),f=t.ref(),b=t.computed((()=>i.value||u.value)),g=t.computed((()=>!0===c.value||!0!==d.value&&void 0)),y=t.computed((()=>Array.isArray(s.value)?ie(o.value,s.value):ae(o.value,s.value))),h=t.computed((()=>!["string","number","boolean"].includes(typeof o.value)||o.value)),k=t.computed({get:()=>y.value?h.value:null,set(e){Array.isArray(s.value)?s.value=[o.value]:s.value=o.value,l("change",e)}}),{modifiers:V}=t.toRefs(o),B=ve("vv-radio",V,t.computed((()=>({valid:d.value,invalid:c.value,disabled:i.value,readonly:u.value})))),{HintSlot:w,hasHintLabelOrSlot:x,hasInvalidLabelOrSlot:C,hintSlotScope:_}=et(n,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(B)),for:t.unref(v)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(v),ref_key:"input",ref:f,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(k)?k.value=e:null),type:"radio",class:"vv-radio__input",name:e.name,disabled:t.unref(b),value:t.unref(h),tabindex:t.unref(m),"aria-invalid":t.unref(g),"aria-describedby":t.unref(x)?t.unref(p):void 0,"aria-errormessage":t.unref(C)?t.unref(p):void 0},null,8,$l),[[t.vModelRadio,t.unref(k)]]),t.renderSlot(e.$slots,"default",{value:t.unref(s)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(w),{id:t.unref(p),class:"vv-radio__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(_))))])),key:"3"}:void 0]),1032,["id"])],10,_l))}}),El=te,Nl=["textContent"],Ll={class:"vv-radio-group__wrapper"},Al=t.defineComponent({name:"VvRadioGroup",props:El,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvRadioGroup",El,a),i=o.useVModel(a,"modelValue",l),{disabled:u,readonly:s,vertical:d,valid:c,invalid:v,modifiers:p}=t.toRefs(a);ye({key:S,modelValue:i,disabled:u,readonly:s,valid:c,invalid:v});const{getOptionLabel:m,getOptionValue:f}=rt(a),b=ve("vv-radio-group",p,t.computed((()=>({disabled:u.value,readonly:s.value,horizontal:!d.value,valid:c.value,invalid:v.value})))),{HintSlot:g,hintSlotScope:y}=et(r,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(b))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,Nl)):t.createCommentVNode("",!0),t.createElementVNode("div",Ll,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Pl,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:m(e),value:f(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(g),{class:"vv-radio-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(y))))])),key:"3"}:void 0]),1024)],2))}}),Rl={...I,navModifiers:{type:[String,Array]},modelValue:{type:String,default:""},items:{type:Array,default:()=>[]}},Ol=t.defineComponent({__name:"VvTab",props:Rl,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,{modifiers:a,items:n}=t.toRefs(o),r=t.computed((()=>n.value.reduce(((e,t)=>(t.tab&&e.push(t.tab),e)),[]))),i=t.ref(),u=t.computed({get:()=>{var e;return o.modelValue||i.value||(null==(e=r.value)?void 0:e[0])},set:e=>{i.value=e,l("update:modelValue",e)}}),s=t.computed((()=>{var e;return["tabs",...Array.isArray(o.navModifiers)?o.navModifiers:(null==(e=o.navModifiers)?void 0:e.split(" "))??[]]})),d=e=>{e.tab&&(u.value=e.tab)},c=t.computed((()=>o.items.map((e=>({current:e.tab===u.value,...e}))))),v=ve("vv-tab",a);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(v))},[t.createVNode(Bl,t.mergeProps({items:t.unref(c),modifiers:t.unref(s)},{onClick:d}),null,16),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[l.tab?(t.openBlock(),t.createElementBlock("article",{key:0,class:t.normalizeClass([{target:t.unref(u)===l.tab},"vv-tab__panel"])},[t.renderSlot(e.$slots,`panel::${l.tab}`)],2)):t.createCommentVNode("",!0)],64)))),128))],2))}}),Dl={...Z,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:"soft"},spellcheck:{type:[Boolean,String],default:"default"},resizable:Boolean},Tl=["for"],zl={class:"vv-textarea__wrapper"},Il={key:0,class:"vv-textarea__input-before"},Ml={class:"vv-textarea__inner"},Hl=["id"],Fl={key:1,class:"vv-textarea__input-after"},jl={key:2,class:"vv-textarea__limit"},Gl=t.defineComponent({name:"VvTextarea",props:Dl,emits:["update:modelValue","focus","blur","keyup"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=tt("VvTextarea",Dl,a),i=t.ref(),{id:u,icon:s,iconPosition:d,label:c,modelValue:v,count:p,valid:m,invalid:f,loading:b,modifiers:g,debounce:y,minlength:h,maxlength:k}=t.toRefs(a),S=xe(u),V=t.computed((()=>`${S.value}-hint`)),B=t.computed((()=>a.floating&&ue(a.placeholder)?" ":a.placeholder)),w=ul(v,l,null==y?void 0:y.value),{hasIcon:x,hasIconBefore:C,hasIconAfter:_}=St(s,d),{focused:$}=kt(i,l),P=o.useElementVisibility(i);t.watch(P,(e=>{e&&a.autofocus&&($.value=!0)}));const{formatted:E}=sl(w,{mode:null==p?void 0:p.value,upperLimit:Number(null==k?void 0:k.value),lowerLimit:Number(null==h?void 0:h.value)}),N=t.computed((()=>!a.disabled&&!a.readonly)),L=t.computed((()=>N.value?a.tabindex:-1)),A=t.computed((()=>!ue(v))),R=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:O,hasHintLabelOrSlot:D,hasInvalidLabelOrSlot:T,hintSlotScope:z}=et(r,n),I=ve("vv-textarea",g,t.computed((()=>({valid:m.value,invalid:f.value,loading:b.value,disabled:a.disabled,readonly:a.readonly,"icon-before":C.value,"icon-after":_.value,floating:a.floating&&!ue(a.label),dirty:A.value,focused:$.value,resizable:a.resizable})))),M=t.computed((()=>({name:a.name,placeholder:B.value,tabindex:L.value,disabled:a.disabled,readonly:a.readonly,required:a.required,autocomplete:a.autocomplete,minlength:a.minlength,maxlength:a.maxlength,cols:a.cols,rows:a.rows,wrap:a.wrap,spellcheck:a.spellcheck,"aria-invalid":R.value,"aria-describedby":D.value?V.value:void 0,"aria-errormessage":T.value?V.value:void 0}))),H=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue,hintLabel:a.hintLabel,maxlength:a.maxlength,minlength:a.minlength,clear:F}))),F=()=>{w.value=void 0};return(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(I))},[t.unref(c)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(S),class:"vv-textarea__label"},t.toDisplayString(t.unref(c)),9,Tl)):t.createCommentVNode("",!0),t.createElementVNode("div",zl,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Il,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(H))))])):t.createCommentVNode("",!0),t.createElementVNode("div",Ml,[t.unref(C)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:0,class:"vv-textarea__icon"},t.unref(x)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(S),ref_key:"textarea",ref:i,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(w)?w.value=e:null)},t.unref(M),{onKeyup:o[1]||(o[1]=e=>l("keyup",e))}),null,16,Hl),[[t.vModelText,t.unref(w)]]),t.unref(_)?(t.openBlock(),t.createBlock(we,t.mergeProps({key:1,class:"vv-textarea__icon vv-textarea__icon-after"},t.unref(x)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Fl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(H))))])):t.createCommentVNode("",!0),t.unref(p)?(t.openBlock(),t.createElementBlock("span",jl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(H))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(E)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(O),{id:t.unref(V),class:"vv-textarea__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])),key:"3"}:void 0]),1032,["id"])],2))}}),Ul={...I,position:{type:String,default:d.bottom},value:{type:String}},Wl=t.defineComponent({__name:"VvTooltip",props:Ul,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ve("vv-tooltip",o,t.computed((()=>({[l.position]:!0}))));return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"tooltip",inert:""},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}});e.VvAccordion=be,e.VvAccordionGroup=he,e.VvAction=Ve,e.VvAlert=Re,e.VvBadge=De,e.VvBreadcrumb=Me,e.VvButton=Ge,e.VvButtonGroup=We,e.VvCard=Ye,e.VvCheckbox=at,e.VvCheckboxGroup=st,e.VvCombobox=jt,e.VvDialog=Xt,e.VvDropdown=pt,e.VvIcon=we,e.VvInputText=yl,e.VvNav=Bl,e.VvProgress=xl,e.VvRadio=Pl,e.VvRadioGroup=Al,e.VvSelect=Lt,e.VvTab=Ol,e.VvTextarea=Gl,e.VvTooltip=Wl,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("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}},X={unselectable:{type:Boolean,default:!0}},Y={id:[String,Number]},J={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}},Q={...Y,name:{type:String,required:!0}},Z={autofocus:{type:Boolean,default:!1}},ee={autocomplete:{type:String,default:"off"}},te={...Q,...Z,...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={...Q,...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={...Y,...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"],Xe=["src"],Ye=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,Xe)):t.createCommentVNode("v-if",!0)]))],10,qe))}}),Je={...H,items:{type:Array,default:()=>[],required:!0},toShow:{type:Number,default:3},totalItems:{type:Number},avatarModifiers:[String,Array]},Qe={key:0},Ze=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=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(Ye,t.mergeProps({key:e.key,ref_for:!0},{modifiers:e.modifiers,imgSrc:e.imgSrc}),{default:t.withCtx((()=>[e.text?(t.openBlock(),t.createElementBlock("span",Qe,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(Ye,{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,...Y,...H,...X,...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 l?st(e,l)===st(t,l):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(e&&Object.keys(e).length&&t){if(t.includes(".")){const l=t.split(".");let o=e;for(let t=0,a=l.length;t<a;++t){if(null==e)return null;o=o[l[t]]}return o}return e[t]}return null}function dt(e,t){if(null!=e&&t&&t.length)for(const l of t)if(it(e,l))return!0;return!1}function ct(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 vt={key:1,class:"vv-button__label"},pt={key:1,class:"vv-button__label"},ft=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)?dt(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 dt(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",vt,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",pt,[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"]))}}),mt={...H,...R,...X,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}},gt={key:0,class:"vv-button-group__legend"},bt=t.defineComponent({name:"VvButtonGroup",props:mt,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",gt,[t.renderSlot(e.$slots,"legend",{},(()=>[t.createTextVNode(t.toDisplayString(e.legendLabel),1)]))])):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],2))}}),yt={...H,title:String},ht={key:0,class:"vv-card__header"},kt={key:1,class:"vv-card__content"},St={key:2,class:"vv-card__footer"},Bt=t.defineComponent({name:"VvCard",props:yt,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",ht,[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",kt,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("v-if",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",St,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)],2))}});function Vt(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function wt(e,l){const o=t.computed((()=>t.isRef(e)?e.value:e)),a=t.computed((()=>Vt(o.value.invalidLabel))),n=t.computed((()=>Vt(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 xt={...le,...H,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function Ct(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 _t=["for"],$t=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Et=t.defineComponent({name:"VvCheckbox",props:xt,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=l,n=t.useSlots(),r=Ct("VvCheckbox",xt,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)?dt(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}=wt(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,_t))}}),Pt=oe;function Nt(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 At=["textContent"],Lt={class:"vv-checkbox-group__wrapper"},Rt=t.defineComponent({name:"VvCheckboxGroup",props:Pt,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=Ct("VvCheckboxGroup",Pt,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}=Nt(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}=wt(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,At)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Lt,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Et,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))}}),Ot={...Y,...J,...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)}},Dt={focusOnHover:{type:Boolean,default:!1}},Tt={...R,...O,...X,...H,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String},focusOnHover:{type:Boolean,default:!1}};const zt=["id","tabindex","role","aria-labelledby"],It=t.defineComponent({name:"VvDropdown",inheritAttrs:!1,props:Ot,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=Y(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:X}=o.useFocusWithin(b);function Y(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 J=o.useElementHover(b),{itemRole:Q}=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:X,hovered:J});o.onKeyStroke("Escape",(e=>{T.value&&(e.preventDefault(),I())})),o.onKeyStroke("ArrowDown",(e=>{T.value&&X.value&&(e.preventDefault(),t.nextTick((()=>{if(X.value){const e=Y(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&&X.value&&(e.preventDefault(),t.nextTick((()=>{if(X.value){const e=Y(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&&X.value&&t&&(null==t||t.click())}));const Z={"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(Z),{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(Q)})))],16,zt),t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(T)})))],6),[[t.vShow,t.unref(T)]])])),_:3},16,["name"])],64))}}),Mt=t.defineComponent({name:"VvDropdownItem",props:Dt,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))}}),Ht=["title"],Ft=t.defineComponent({name:"VvDropdownOption",props:Tt,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(Mt,{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,Ht)])),_:3},8,["class","tabindex","aria-selected","aria-disabled","focus-on-hover"]))}}),jt={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},Ut=t.defineComponent({name:"VvDropdownOptgroup",props:{...I},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",jt,t.toDisplayString(l.label),1))}}),Gt={...Q,...Z,...ee,...W,...N,...A,...F,...L,...R,...M,...H,...j,...K,...q,...X,...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 Kt(){return{...Gt,options:{...Gt.options,type:Array,default:()=>[]}}}function Wt(e,l){const{focused:a}=o.useFocus(e);return t.watch(a,(o=>{l(o?"focus":"blur",t.unref(e))})),{focused:a}}const qt=["for"],Xt={class:"vv-select__wrapper"},Yt={key:0,class:"vv-select__input-before"},Jt={class:"vv-select__inner"},Qt=["id"],Zt=["disabled","hidden"],el=["disabled","value"],tl=["disabled","label"],ll=["disabled","value"],ol={key:1,class:"vv-select__input-after"},al=t.defineComponent({name:"VvSelect",props:Kt(),emits:["update:modelValue","focus","blur"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=Ct("VvSelect",Kt(),a),u=t.ref(),{HintSlot:s,hasHintLabelOrSlot:d,hasInvalidLabelOrSlot:c,hintSlotScope:v}=wt(i,r),{focused:p}=Wt(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}=Nt(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,qt)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Xt,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Yt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(F))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Jt,[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,ll)))),128))],8,tl)):(t.openBlock(),t.createElementBlock("option",{key:l,disabled:t.unref(I)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(T)(e)),9,el))],64)))),256))],16,Qt),[[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",ol,[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))}}),nl={...Q,...W,...N,...A,...F,...L,...R,...M,...H,...j,...K,...q,...J,...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:{...J.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 rl(){return{...nl,options:{...nl.options,type:Array},searchFunction:{...nl.searchFunction,type:Function}}}const il=["id"],ul=["id","for"],sl=["id","aria-controls","placeholder"],dl={key:0,class:"vv-select__input-before"},cl={class:"vv-select__inner"},vl=["aria-controls","aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],pl={key:0,class:"vv-select__value"},fl=["aria-label","onClick"],ml={key:1,class:"vv-select__input-after"},gl={name:"VvCombobox",components:{VvDropdown:It,VvDropdownOption:Ft,VvDropdownOptgroup:Ut,VvButton:ft}},bl=t.defineComponent({...gl,props:rl(),emits:["update:modelValue","update:search","change:search","focus","blur"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=Ct("VvCombobox",rl(),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}=wt(i,r),{focused:g}=Wt(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)?new Set(a.modelValue):void 0!==a.modelValue&&null!==a.modelValue?new Set([a.modelValue]):new Set,set:e=>{n("update:modelValue",a.multiple?[...e]:[...e].pop())}}),K=t.computed((()=>G.value.size)),W=t.computed((()=>K.value>0)),q=t.computed((()=>a.multiple?void 0===a.maxValues?1/0:Number(a.maxValues):1)),X=t.computed((()=>!j.value&&(!!a.unselectable&&K.value>Number(a.minValues)))),Y=t.computed((()=>!j.value&&(!a.multiple||K.value<q.value))),J=t.ref(!1),Q=t.computed((()=>J.value||R.value)),{hasIconBefore:Z,hasIconAfter:ee}=Re(E,P),te=se("vv-select",N,t.computed((()=>({disabled:A.value,loading:Q.value,readonly:L.value,"icon-before":void 0!==Z.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}=Nt(a);function re(e){return ne(e)||!Y.value&&!ue(e)}const ie=o.computedAsync((async()=>{var e;if(i.value.searchFunction){J.value=!0;const e=await Promise.resolve(i.value.searchFunction(k.value,a.options));return J.value=!1,e}return null==(e=a.options)?void 0:e.filter((e=>le(e).toLowerCase().includes(k.value.toLowerCase().trim())))}));function ue(e){return G.value.has(oe(e))}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);t&&X.value?G.value.delete(oe(e)):!t&&Y.value&&G.value.add(oe(e)),G.value=new Set(G.value),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:Q.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:X.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(al,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,ul)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:d,class:"vv-select__wrapper"},[t.createVNode(It,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",dl,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(ge))))])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",cl,[t.unref(Z)?(t.openBlock(),t.createBlock(Ae,t.mergeProps({key:0},t.unref(Z),{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(X)?(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,fl)):t.createCommentVNode("v-if",!0)])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock("div",pl,t.toDisplayString(t.unref(ce)),1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,vl),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",ml,[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(Ut,{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(Ft,t.mergeProps({ref_for:!0},{selected:ue(o),disabled:re(o),unselectable:t.unref(X),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(Ft,t.mergeProps({key:1,ref_for:!0},{selected:ue(l),disabled:re(l),unselectable:t.unref(X),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(Ft,{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(Ft,{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(ft,{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,sl)),[[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,il))}}),yl={...H,...Y,title:String,modelValue:{type:Boolean,default:void 0},transition:{type:String,default:"fade-block"},size:String,keepOpen:{type:Boolean,default:!1}},hl={key:0,class:"vv-dialog__header"},kl={class:"vv-dialog__content"},Sl={key:1,class:"vv-dialog__footer"},Bl=t.defineComponent({name:"VvDialog",props:yl,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",hl,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClickPassive:b},[t.createVNode(Ae,{name:"close"})],32)]))])):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(Mt,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=Ct("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&&ct(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((()=>n.iMask??{mask:/./})),{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}=Wt(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 X=t.computed((()=>n.type===_l.TIME||n.type===_l.DATETIME_LOCAL||n.type===_l.DATE||n.type===_l.WEEK||n.type===_l.MONTH)),Y=t.computed((()=>n.type===_l.NUMBER));function J(){if(re.value){if(n.iMask)return void(O.value=O.value+Number((null==B?void 0:B.value)??1));I.value.stepUp(),P.value=Number(t.unref(I).value)}}function Q(){if(re.value){if(n.iMask)return void(O.value=O.value-Number((null==B?void 0:B.value)??1));I.value.stepDown(),P.value=Number(t.unref(I).value)}}const Z=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((()=>!ct(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=>ct(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&&!ct(n.label),dirty:ue.value,focus:U.value,"auto-width":n.autoWidth})))),be=t.computed((()=>{const e=W.value&&K.value?_l.TEXT:!X.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:J,stepDown:Q,clear:ee}))),{HintSlot:he,hasHintLabelOrSlot:ke,hasInvalidLabelOrSlot:Se,hintSlotScope:Be}=wt(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":Y.value&&(J(),e.preventDefault());break;case"ArrowDown":Y.value&&(Q(),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(Y)&&!e.hideActions&&t.unref(re)?(t.openBlock(),t.createBlock(t.unref(_e),{key:3,onStepUp:J,onStepDown:Q})):t.unref(Z)&&!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(It,{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(Ft,{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))}}),Xl=le;const Yl=["for"],Jl=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Ql=t.defineComponent({name:"VvRadio",props:Xl,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=l,n=t.useSlots(),r=Ct("VvRadio",Xl,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)?dt(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:$}=wt(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,Jl),[[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,Yl))}}),Zl=oe,eo=["textContent"],to={class:"vv-radio-group__wrapper"},lo=t.defineComponent({name:"VvRadioGroup",props:Zl,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=l,r=t.useSlots(),i=Ct("VvRadioGroup",Zl,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}=Nt(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}=wt(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(Ql,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=Ct("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&&ct(a.placeholder)?" ":a.placeholder)),x=Pl(p,n,null==h?void 0:h.value),{hasIconBefore:C,hasIconAfter:_}=Re(d,c),{focused:$}=Wt(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((()=>!ct(p))),R=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:O,hasHintLabelOrSlot:D,hasInvalidLabelOrSlot:T,hintSlotScope:z}=wt(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&&!ct(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={...Q,...H,...N,...A,...F,...I,...L,...M,...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","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","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=Ct("VvInputFile",bo,a),{modifiers:u,id:d,readonly:c,icon:v,iconPosition:p,iconDownload:f}=t.toRefs(a),m=Le(d),g=t.computed((()=>`${m.value}-hint`)),b=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:y,hasIconAfter:h}=Re(v,p),{hasIcon:k}=Re(f),S=se("vv-input-file",u,t.computed((()=>({dragging:N.value,loading:a.loading&&!b.value,valid:!0===a.valid,invalid:!0===a.invalid,"icon-before":!!y.value,"icon-after":!!h.value,"drop-area":E.value})))),{HintSlot:B,hasHintLabelOrSlot:V,hasInvalidLabelOrSlot:w,hintSlotScope:x}=wt(i,r),C=o.useVModel(a,"modelValue",n),_=t.computed({get:()=>{var e;return C.value&&(Array.isArray(C.value)||(null==(e=C.value)?void 0:e.name))?Array.isArray(C.value)?C.value:[C.value]:[]},set:e=>{P.value?C.value=e:C.value=null==e?void 0:e[0]}}),$=t.computed((()=>"string"==typeof a.max?Number.parseInt(a.max):a.max)),E=t.computed((()=>a.dropArea&&!c.value)),P=t.computed((()=>!!a.multiple&&(!$.value||$.value-_.value.length>1))),N=t.ref(!1),A=t.ref();function L(){N.value=!0}function R(){N.value=!1}function O(e){var t,l;(null==(t=e.dataTransfer)?void 0:t.files)&&(N.value=!1,T(null==(l=e.dataTransfer)?void 0:l.files))}function D(){var e;(null==(e=A.value)?void 0:e.files)&&(T(A.value.files),A.value.value="")}function T(e){if(!a.multiple)return Array.isArray(C.value)?void(C.value=[...e]):void(C.value=e[0]);let t=[];t=!Array.isArray(C.value)&&C.value?[C.value]:C.value&&Array.isArray(C.value)?[...C.value]:t;for(const l of e){if($.value&&t.length>=$.value)break;t.push(l)}C.value=t,I.value=t.length-1}function z(){A.value&&(c.value||A.value.click())}const I=t.ref(0),M=["image/jpeg","image/png"],H=t.computed((()=>{if(0===_.value.length)return;if(!_.value[I.value])return;if(_.value[I.value]instanceof File){const e=_.value[I.value];if(!M.includes(e.type))return;return URL.createObjectURL(e)}const e=_.value[I.value];return e.thumbnailUrl?e.thumbnailUrl:M.includes(e.type)?e.url:void 0}));function F(e){if(e)return Math.floor(e/1024)}t.watch(H,((e,t)=>{t&&URL.revokeObjectURL(t)})),t.onBeforeUnmount((()=>{H.value&&URL.revokeObjectURL(H.value)}));const j=t.computed((()=>0===_.value.length||P.value?a.labelAdd:a.labelReplace)),U=t.computed((()=>0===_.value.length||P.value?a.iconAdd:a.iconReplace));function G({newIndex:e}){null!==e&&(I.value=e)}return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(S))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(m)},t.toDisplayString(e.label),9,yo)):t.createCommentVNode("v-if",!0),E.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"vv-input-file__drop-area",onDragenter:t.withModifiers(L,["prevent","stop"]),onDragleave:t.withModifiers(R,["prevent","stop"]),onDrop:t.withModifiers(O,["prevent","stop"]),onDragover:l[0]||(l[0]=t.withModifiers((()=>{}),["prevent","stop"])),onClick:t.withModifiers(z,["stop"])},[t.renderSlot(e.$slots,"drop-area",{},(()=>[t.createElementVNode("picture",ho,[H.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:H.value,alt:_.value[I.value].name},null,8,ko)):t.createCommentVNode("v-if",!0)]),t.unref(c)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(ft,{key:0,modifiers:"action",label:H.value?void 0:j.value,title:H.value?j.value:void 0,class:t.normalizeClass({"vv-input-file__drop-area-action":H.value}),icon:U.value,onClick:t.withModifiers(z,["stop"])},null,8,["label","title","class","icon"]))]))],32)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",So,[t.unref(y)?(t.openBlock(),t.createBlock(Ae,t.normalizeProps(t.mergeProps({key:0},t.unref(y))),null,16)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",{id:t.unref(m),ref_key:"inputEl",ref:A,type:"file",readonly:t.unref(c),placeholder:e.placeholder,"aria-describedby":t.unref(V)?g.value:void 0,"aria-invalid":e.invalid,"aria-errormessage":t.unref(w)?g.value:void 0,multiple:P.value,accept:e.accept,capture:e.capture,name:e.name,onChange:D},null,40,Bo),b.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(h)?(t.openBlock(),t.createBlock(Ae,t.normalizeProps(t.mergeProps({key:2},t.unref(h))),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:G},{item:t.withCtx((({element:l,index:o})=>[t.createElementVNode("li",{class:t.normalizeClass(["vv-input-file__item",{active:o===I.value&&E.value&&_.value.length>1,"cursor-move":e.sortable}]),onClick:t.withModifiers((e=>function(e){I.value=e}(o)),["stop"])},[t.unref(k)?(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(k))),null,16)],8,xo)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Co,t.toDisplayString(l.name),1),t.createElementVNode("small",_o,t.toDisplayString(F(l.size))+" KB ",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,onClick:t.withModifiers((e=>function(e){const t=Array.isArray(C.value)?C.value[e]:C.value;if(!t)return;if(n("remove",t),!Array.isArray(C.value))return void(C.value=void 0);I.value===e&&(I.value=0);const l=[...C.value];l.splice(e,1),C.value=l}(o)),["stop"])},null,8,$o))],10,wo)])),_:1},8,["modelValue","move"]),t.createVNode(t.unref(B),{id:g.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(x))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(x))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(x))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(x))))])),key:"3"}:void 0]),1032,["id"])],2))}});e.VvAccordion=pe,e.VvAccordionGroup=be,e.VvAction=ke,e.VvAlert=je,e.VvAlertGroup=Ke,e.VvAvatar=Ye,e.VvAvatarGroup=Ze,e.VvBadge=tt,e.VvBreadcrumb=nt,e.VvButton=ft,e.VvButtonGroup=bt,e.VvCard=Bt,e.VvCheckbox=Et,e.VvCheckboxGroup=Rt,e.VvCombobox=bl,e.VvDialog=Bl,e.VvDropdown=It,e.VvDropdownAction=Vl,e.VvDropdownItem=Mt,e.VvDropdownOptgroup=Ut,e.VvDropdownOption=Ft,e.VvIcon=Ae,e.VvInputFile=Eo,e.VvInputText=Ml,e.VvNav=Ul,e.VvNavItem=Fl,e.VvNavSeparator=Kl,e.VvProgress=ql,e.VvRadio=Ql,e.VvRadioGroup=lo,e.VvSelect=al,e.VvTab=ao,e.VvTextarea=fo,e.VvTooltip=go,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|