maz-ui 3.50.0 → 4.0.0-alpha.2
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/dist/assets/CountrySelector.Cnqbl3xF.css +1 -0
- package/dist/assets/MazAccordion.DaqF3ZAX.css +1 -0
- package/dist/assets/MazAnimatedCounter.DYYlw_wl.css +1 -0
- package/dist/assets/MazAnimatedElement.BIRRN8k1.css +1 -0
- package/dist/assets/MazAnimatedText.Dk4QO4xF.css +1 -0
- package/dist/assets/MazAvatar.L1UreldR.css +1 -0
- package/dist/assets/MazBackdrop.C72SNI28.css +1 -0
- package/dist/assets/MazBadge.RMWNkgZL.css +1 -0
- package/dist/assets/MazBottomSheet.Dqr-kpLb.css +1 -0
- package/dist/assets/MazBtn.7QWd6o3M.css +1 -0
- package/dist/assets/MazCard.Cod9pIM4.css +1 -0
- package/dist/assets/MazCardSpotlight.DuZac0w4.css +1 -0
- package/dist/assets/MazCarousel.BQIrqJ8T.css +1 -0
- package/dist/assets/MazCheckbox.BQVJ7EUB.css +1 -0
- package/dist/assets/MazChecklist.5ArDAEhG.css +1 -0
- package/dist/assets/MazCircularProgressBar.DywLXEfR.css +1 -0
- package/dist/assets/MazDialog.BLzdH8aa.css +1 -0
- package/dist/assets/MazDrawer.Cu4KVc_z.css +1 -0
- package/dist/assets/MazExpandAnimation.BEIRlAy-.css +1 -0
- package/dist/assets/MazFullscreenLoader.DTW_WUM6.css +1 -0
- package/dist/assets/MazGallery.ChuEM3_y.css +1 -0
- package/dist/assets/MazInput.C5uUOQLJ.css +1 -0
- package/dist/assets/MazInputCode.C1Mlb3p3.css +1 -0
- package/dist/assets/MazInputNumber.BQgG6Qvc.css +1 -0
- package/dist/assets/MazInputPhoneNumber.DKac4ZYj.css +1 -0
- package/dist/assets/MazInputTags.eygPFBJC.css +1 -0
- package/dist/assets/MazLazyImg.BvztvWbf.css +1 -0
- package/dist/assets/MazLink.DQ7r1i9T.css +1 -0
- package/dist/assets/MazLoadingBar.C6sNjytz.css +1 -0
- package/dist/assets/MazPagination.DSYY_yu7.css +1 -0
- package/dist/assets/MazPicker.fY2qT4ER.css +1 -0
- package/dist/assets/MazPickerCalendar.K1FbevcF.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.GACBSeof.css +1 -0
- package/dist/assets/MazPickerCalendarSwitcher.23EFP_7Y.css +1 -0
- package/dist/assets/MazPickerHeader.CfwpRnA1.css +1 -0
- package/dist/assets/MazPickerMonthSwitcher.Cl1WlZpR.css +1 -0
- package/dist/assets/MazPickerShortcuts.B1ASAi7L.css +1 -0
- package/dist/assets/MazPickerTime.5J3qaKGo.css +1 -0
- package/dist/assets/MazPickerYearSwitcher.Bt0efux6.css +1 -0
- package/dist/assets/MazPullToRefresh.BdvKaU9N.css +1 -0
- package/dist/assets/MazRadio.zYTBn9Pj.css +1 -0
- package/dist/assets/MazRadioButtons.CIq38oX6.css +1 -0
- package/dist/assets/MazReadingProgressBar.CbqVvC8N.css +1 -0
- package/dist/assets/MazSelect.CH_76PSg.css +1 -0
- package/dist/assets/MazSlider.D08gO9DD.css +1 -0
- package/dist/assets/MazSpinner.DTuz1RdS.css +1 -0
- package/dist/assets/MazStepper.BE3Mm9rm.css +1 -0
- package/dist/assets/MazTable.D06R_2nI.css +1 -0
- package/dist/assets/MazTableCell.BDmda4j7.css +1 -0
- package/dist/assets/MazTableRow.Copw9RJN.css +1 -0
- package/dist/assets/MazTableTitle.Cspgmj1g.css +1 -0
- package/dist/assets/MazTabsBar.-q3BbMXe.css +1 -0
- package/dist/assets/MazTabsContentItem.C0ygFU51.css +1 -0
- package/dist/assets/MazTextarea.QTMu0OQv.css +1 -0
- package/dist/assets/MazTransitionExpand.D3j4PawL.css +1 -0
- package/dist/assets/PhoneInput.utJQQXVJ.css +1 -0
- package/dist/assets/fullscreen-img.hjNozahA.css +1 -0
- package/dist/assets/toaster.C9zhIkIO.css +1 -0
- package/dist/chunks/CountrySelector.DdswEbFD.js +177 -0
- package/dist/chunks/MazChart.vue_vue_type_script_setup_true_lang.OYo-HXwF.js +92 -0
- package/dist/chunks/MazDialogPromise.vue_vue_type_script_setup_true_lang.4Oe-oHLl.js +213 -0
- package/dist/chunks/MazDropdown.vue_vue_type_style_index_0_lang.BfXJ_MY5.js +240 -0
- package/dist/chunks/MazIcon.vue_vue_type_script_setup_true_lang.CMbhrIdI.js +103 -0
- package/dist/chunks/MazInputNumber.vue_vue_type_style_index_0_lang.BC7pKYyR.js +126 -0
- package/dist/chunks/MazInputPhoneNumber.SX--TVUa.js +391 -0
- package/dist/chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.DOtT8uOc.js +85 -0
- package/dist/chunks/MazPicker.qrjLr1LC.js +768 -0
- package/dist/chunks/MazPickerCalendar.wLx9bpla.js +114 -0
- package/dist/chunks/MazPickerCalendarMonth.BAGEzpiX.js +257 -0
- package/dist/chunks/MazPickerCalendarSwitcher.DNOJBstV.js +90 -0
- package/dist/chunks/MazPickerHeader.D2MCckVK.js +136 -0
- package/dist/chunks/MazPickerMonthSwitcher.B-pkMUq_.js +82 -0
- package/dist/chunks/MazPickerShortcuts.BB98CX9u.js +62 -0
- package/dist/chunks/MazPickerTime.wPLppaUp.js +189 -0
- package/dist/chunks/MazPickerYearSwitcher.DEZEMpA9.js +96 -0
- package/dist/chunks/MazSwitch.vue_vue_type_style_index_0_lang.C0cqQKJt.js +86 -0
- package/dist/chunks/MazTable.vue_vue_type_style_index_0_scoped_4101f1d3_lang.DUP8S_W0.js +533 -0
- package/dist/chunks/MazTabs.vue_vue_type_script_setup_true_lang.DnbfPaVg.js +28 -0
- package/dist/chunks/MazTabsContent.vue_vue_type_script_setup_true_lang.BXptx7-v.js +26 -0
- package/dist/chunks/PhoneInput.BUrcSAlz.js +106 -0
- package/dist/chunks/arrow-top-right-on-square.wYk3YJI_.js +24 -0
- package/dist/chunks/arrow-up.HdMpMK4c.js +24 -0
- package/dist/chunks/banknotes.CQ9Qxg-e.js +24 -0
- package/dist/chunks/check-circle.DhFkXzgc.js +24 -0
- package/dist/chunks/check.B-gxQRxL.js +24 -0
- package/dist/chunks/chevron-double-left.C1WkQBYN.js +24 -0
- package/dist/chunks/chevron-down.CWWH3GZ1.js +24 -0
- package/dist/chunks/chevron-left.njfuF_Vt.js +24 -0
- package/dist/chunks/chevron-right.CEEKGU2c.js +24 -0
- package/dist/chunks/ellipsis-horizontal.BKw73_U9.js +24 -0
- package/dist/chunks/exclamation-circle.D4z1YE7G.js +24 -0
- package/dist/chunks/exclamation-triangle.DiZZcE2l.js +24 -0
- package/dist/chunks/eye-slash.BrQSe1kT.js +24 -0
- package/dist/chunks/eye.yaEU50DN.js +31 -0
- package/dist/chunks/fullscreen-img.directive.CaOkiCBy.js +328 -0
- package/dist/chunks/information-circle.CEsJ8VHx.js +24 -0
- package/dist/chunks/lazy-img.directive.Cjz2aiGf.js +188 -0
- package/dist/chunks/link.qHT4E8pY.js +24 -0
- package/dist/chunks/magnifying-glass.6EkSEo-G.js +24 -0
- package/dist/chunks/minus.BHEyT7J2.js +24 -0
- package/dist/chunks/no-photography.B6pz0xMN.js +24 -0
- package/dist/chunks/no-symbol.DqVEpOgn.js +24 -0
- package/dist/chunks/pencil.Cl_0Egfc.js +24 -0
- package/dist/chunks/plus.CNCGxFPJ.js +24 -0
- package/dist/chunks/trash.lmwqE3cE.js +24 -0
- package/dist/chunks/utils.Cg8nbVpk.js +321 -0
- package/dist/chunks/x-mark.DTWA3lfG.js +24 -0
- package/dist/components/MazAccordion.js +84 -0
- package/dist/components/MazAnimatedCounter.js +77 -0
- package/dist/components/MazAnimatedElement.js +33 -0
- package/dist/components/MazAnimatedText.js +79 -0
- package/dist/components/MazAvatar.js +124 -0
- package/dist/components/MazBackdrop.js +128 -0
- package/dist/components/MazBadge.js +28 -0
- package/dist/components/MazBottomSheet.js +53 -0
- package/dist/components/MazBtn.js +102 -0
- package/dist/components/MazCard.js +173 -0
- package/dist/components/MazCardSpotlight.js +68 -0
- package/dist/components/MazCarousel.js +97 -0
- package/dist/components/MazChart.js +4 -0
- package/dist/components/MazCheckbox.js +134 -0
- package/dist/components/MazChecklist.js +124 -0
- package/dist/components/MazCircularProgressBar.js +132 -0
- package/dist/components/MazDialog.js +135 -0
- package/dist/components/MazDialogPromise.js +6 -0
- package/dist/components/MazDrawer.js +69 -0
- package/dist/components/MazDropdown.js +4 -0
- package/dist/components/MazDropzone.js +194 -0
- package/dist/components/MazExpandAnimation.js +48 -0
- package/dist/components/MazFullscreenLoader.js +37 -0
- package/dist/components/MazGallery.js +124 -0
- package/dist/components/MazIcon.js +4 -0
- package/dist/components/MazInput.js +264 -0
- package/dist/components/MazInputCode.js +145 -0
- package/dist/components/MazInputNumber.js +4 -0
- package/dist/components/MazInputPhoneNumber.js +5 -0
- package/dist/components/MazInputPrice.js +4 -0
- package/dist/components/MazInputTags.js +153 -0
- package/dist/components/MazLazyImg.js +68 -0
- package/dist/components/MazLink.js +64 -0
- package/dist/components/MazLoadingBar.js +24 -0
- package/dist/components/MazPagination.js +189 -0
- package/dist/components/MazPicker.js +5 -0
- package/dist/components/MazPullToRefresh.js +146 -0
- package/dist/components/MazRadio.js +106 -0
- package/dist/components/MazRadioButtons.js +129 -0
- package/dist/components/MazReadingProgressBar.js +67 -0
- package/dist/components/MazSelect.js +377 -0
- package/dist/components/MazSlider.js +230 -0
- package/dist/components/MazSpinner.js +28 -0
- package/dist/components/MazStepper.js +160 -0
- package/dist/components/MazSwitch.js +4 -0
- package/dist/components/MazTable.js +8 -0
- package/dist/components/MazTableCell.js +18 -0
- package/dist/components/MazTableRow.js +25 -0
- package/dist/components/MazTableTitle.js +18 -0
- package/dist/components/MazTabs.js +4 -0
- package/dist/components/MazTabsBar.js +138 -0
- package/dist/components/MazTabsContent.js +4 -0
- package/dist/components/MazTabsContentItem.js +40 -0
- package/dist/components/MazTextarea.js +175 -0
- package/dist/components/MazTransitionExpand.js +46 -0
- package/dist/components.js +112 -0
- package/dist/composables/useAos.js +7 -0
- package/dist/composables/useBreakpoints.js +40 -0
- package/dist/composables/useDialog.js +7 -0
- package/dist/composables/useFormField.js +98 -0
- package/dist/composables/useFormValidator.js +116 -0
- package/dist/composables/useIdleTimeout.js +10 -0
- package/dist/composables/useInstanceUniqId.js +10 -0
- package/dist/composables/useLanguageDisplayNames.js +371 -0
- package/dist/composables/useReadingTime.js +39 -0
- package/dist/composables/useStringMatching.js +42 -0
- package/dist/composables/useSwipe.js +26 -0
- package/dist/composables/useThemeHandler.js +125 -0
- package/dist/composables/useTimer.js +32 -0
- package/dist/composables/useToast.js +7 -0
- package/dist/composables/useUserVisibilty.js +10 -0
- package/dist/composables/useWait.js +7 -0
- package/dist/composables/useWindowSize.js +21 -0
- package/dist/directives/vClickOutside.js +51 -0
- package/dist/directives/vClosable.js +41 -0
- package/dist/directives/vFullscreenImg.js +10 -0
- package/dist/directives/vLazyImg.js +23 -0
- package/dist/directives/vTooltip.js +73 -0
- package/dist/directives/vZoomImg.js +289 -0
- package/dist/filters/camelCase.js +6 -0
- package/dist/filters/capitalize.js +6 -0
- package/dist/filters/currency.js +34 -0
- package/dist/filters/date.js +21 -0
- package/dist/filters/number.js +23 -0
- package/dist/filters/pascalCase.js +8 -0
- package/dist/filters/telephone.js +10 -0
- package/dist/helpers/checkAvailability.js +16 -0
- package/dist/helpers/countryCodeToUnicodeFlag.js +10 -0
- package/dist/helpers/countryFlagFromFlagCdn.js +6 -0
- package/dist/helpers/debounce.js +11 -0
- package/dist/helpers/debounceCallback.js +7 -0
- package/dist/helpers/debounceId.js +21 -0
- package/dist/helpers/freezeValue.js +8 -0
- package/dist/helpers/idleTimeout.js +114 -0
- package/dist/helpers/injectStrict.js +10 -0
- package/dist/helpers/isClient.js +6 -0
- package/dist/helpers/isEqual.js +26 -0
- package/dist/helpers/isStandaloneMode.js +10 -0
- package/dist/helpers/mountComponent.js +16 -0
- package/dist/helpers/normalizeString.js +69 -0
- package/dist/helpers/scriptLoader.js +47 -0
- package/dist/helpers/sleep.js +6 -0
- package/dist/helpers/swipeHandler.js +85 -0
- package/dist/helpers/throttle.js +11 -0
- package/dist/helpers/throttleId.js +19 -0
- package/dist/helpers/truthyFilter.js +6 -0
- package/dist/helpers/userVisibility.js +53 -0
- package/dist/maz-ui.js +162 -0
- package/dist/plugins/aos.js +99 -0
- package/dist/plugins/dialog.js +42 -0
- package/dist/plugins/toaster.js +270 -0
- package/dist/plugins/wait.js +48 -0
- package/dist/resolvers/UnpluginDirectivesResolver.js +9 -0
- package/dist/resolvers/UnpluginModulesResolver.js +44 -0
- package/dist/resolvers/UnpluginVueComponentsResolver.js +15 -0
- package/dist/types/components/MazAccordion.vue.d.ts +35 -0
- package/dist/types/components/MazAnimatedCounter.vue.d.ts +56 -0
- package/dist/types/components/MazAnimatedElement.vue.d.ts +41 -0
- package/dist/types/components/MazAnimatedText.vue.d.ts +55 -0
- package/dist/types/components/MazAvatar.vue.d.ts +100 -0
- package/dist/types/components/MazBackdrop.vue.d.ts +70 -0
- package/dist/types/components/MazBadge.vue.d.ts +38 -0
- package/dist/types/components/MazBottomSheet.vue.d.ts +34 -0
- package/dist/types/components/MazBtn.vue.d.ts +133 -0
- package/dist/types/components/MazCard.vue.d.ts +93 -0
- package/dist/types/components/MazCardSpotlight.vue.d.ts +60 -0
- package/dist/types/components/MazCarousel.vue.d.ts +34 -0
- package/dist/types/components/MazChart.vue.d.ts +104 -0
- package/dist/types/components/MazCheckbox.vue.d.ts +57 -0
- package/dist/types/components/MazChecklist.vue.d.ts +77 -0
- package/dist/types/components/MazCircularProgressBar.vue.d.ts +190 -0
- package/dist/types/components/MazDialog.vue.d.ts +160 -0
- package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +80 -0
- package/dist/types/components/MazDialogPromise.vue.d.ts +47 -0
- package/dist/types/components/MazDrawer.vue.d.ts +52 -0
- package/dist/types/components/MazDropdown.vue.d.ts +166 -0
- package/dist/types/components/MazDropzone.vue.d.ts +129 -0
- package/dist/types/components/MazExpandAnimation.vue.d.ts +41 -0
- package/dist/types/components/MazFullscreenLoader.vue.d.ts +25 -0
- package/dist/types/components/MazGallery.vue.d.ts +165 -0
- package/dist/types/components/MazIcon.vue.d.ts +80 -0
- package/dist/types/components/MazInput.vue.d.ts +122 -0
- package/dist/types/components/MazInputCode.vue.d.ts +51 -0
- package/dist/types/components/MazInputNumber.vue.d.ts +62 -0
- package/dist/types/components/MazInputPhoneNumber/CountrySelector.vue.d.ts +101 -0
- package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +19 -0
- package/dist/types/components/MazInputPhoneNumber/types.d.ts +62 -0
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +16 -0
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +244 -0
- package/dist/types/components/MazInputPrice.vue.d.ts +62 -0
- package/dist/types/components/MazInputTags.vue.d.ts +51 -0
- package/dist/types/components/MazLazyImg.vue.d.ts +74 -0
- package/dist/types/components/MazLink.vue.d.ts +85 -0
- package/dist/types/components/MazLoadingBar.vue.d.ts +12 -0
- package/dist/types/components/MazPagination.vue.d.ts +75 -0
- package/dist/types/components/MazPicker/MazPickerCalendar.vue.d.ts +138 -0
- package/dist/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
- package/dist/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +115 -0
- package/dist/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +126 -0
- package/dist/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
- package/dist/types/components/MazPicker/MazPickerContainer.vue.d.ts +214 -0
- package/dist/types/components/MazPicker/MazPickerHeader.vue.d.ts +82 -0
- package/dist/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
- package/dist/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
- package/dist/types/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
- package/dist/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +36 -0
- package/dist/types/components/MazPicker/utils.d.ts +51 -0
- package/dist/types/components/MazPicker.vue.d.ts +125 -0
- package/dist/types/components/MazPullToRefresh.vue.d.ts +51 -0
- package/dist/types/components/MazRadio.vue.d.ts +57 -0
- package/dist/types/components/MazRadioButtons.vue.d.ts +71 -0
- package/dist/types/components/MazReadingProgressBar.vue.d.ts +55 -0
- package/dist/types/components/MazSelect.vue.d.ts +130 -0
- package/dist/types/components/MazSlider.vue.d.ts +111 -0
- package/dist/types/components/MazSpinner.vue.d.ts +15 -0
- package/dist/types/components/MazStepper.vue.d.ts +63 -0
- package/dist/types/components/MazSwitch.vue.d.ts +66 -0
- package/dist/types/components/MazTable.vue.d.ts +230 -0
- package/dist/types/components/MazTableCell.vue.d.ts +16 -0
- package/dist/types/components/MazTableRow.vue.d.ts +20 -0
- package/dist/types/components/MazTableTitle.vue.d.ts +16 -0
- package/dist/types/components/MazTabs.vue.d.ts +29 -0
- package/dist/types/components/MazTabsBar.vue.d.ts +72 -0
- package/dist/types/components/MazTabsContent.vue.d.ts +16 -0
- package/dist/types/components/MazTabsContentItem.vue.d.ts +28 -0
- package/dist/types/components/MazTextarea.vue.d.ts +90 -0
- package/dist/types/components/MazTransitionExpand.vue.d.ts +22 -0
- package/dist/types/components/constantes.d.ts +2 -0
- package/dist/types/components/index.d.ts +111 -0
- package/dist/types/components/types.d.ts +19 -0
- package/dist/types/composables/index.d.ts +18 -0
- package/dist/types/composables/useAos.d.ts +2 -0
- package/dist/types/composables/useBreakpoints.d.ts +38 -0
- package/dist/types/composables/useDialog.d.ts +2 -0
- package/dist/types/composables/useFormField.d.ts +56 -0
- package/dist/types/composables/useFormValidator/config.d.ts +7 -0
- package/dist/types/composables/useFormValidator/types.d.ts +110 -0
- package/dist/types/composables/useFormValidator/utils.d.ts +116 -0
- package/dist/types/composables/useFormValidator.d.ts +17 -0
- package/dist/types/composables/useIdleTimeout.d.ts +5 -0
- package/dist/types/composables/useInstanceUniqId.d.ts +4 -0
- package/dist/types/composables/useLanguageDisplayNames.d.ts +18 -0
- package/dist/types/composables/useReadingTime.d.ts +25 -0
- package/dist/types/composables/useStringMatching.d.ts +5 -0
- package/dist/types/composables/useSwipe.d.ts +14 -0
- package/dist/types/composables/useThemeHandler.d.ts +58 -0
- package/dist/types/composables/useTimer.d.ts +29 -0
- package/dist/types/composables/useToast.d.ts +2 -0
- package/dist/types/composables/useUserVisibilty.d.ts +5 -0
- package/dist/types/composables/useWait.d.ts +2 -0
- package/dist/types/composables/useWindowSize.d.ts +32 -0
- package/dist/types/directives/index.d.ts +10 -0
- package/dist/types/directives/vClickOutside.d.ts +15 -0
- package/dist/types/directives/vClosable.d.ts +18 -0
- package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +47 -0
- package/dist/types/directives/vFullscreenImg/fullscreen-img.directive.d.ts +7 -0
- package/dist/types/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
- package/dist/types/directives/vFullscreenImg.d.ts +6 -0
- package/dist/types/directives/vLazyImg/lazy-img.directive.d.ts +7 -0
- package/dist/types/directives/vLazyImg/lazy-img.handler.d.ts +39 -0
- package/dist/types/directives/vLazyImg/types.d.ts +35 -0
- package/dist/types/directives/vLazyImg.d.ts +6 -0
- package/dist/types/directives/vTooltip.d.ts +42 -0
- package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +6 -0
- package/dist/types/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
- package/dist/types/directives/vZoomImg.d.ts +6 -0
- package/dist/types/filters/camelCase.d.ts +1 -0
- package/dist/types/filters/index.d.ts +26 -0
- package/dist/types/filters/pascalCase.d.ts +1 -0
- package/dist/types/helpers/countryFlagFromFlagCdn.d.ts +7 -0
- package/dist/types/helpers/freezeValue.d.ts +5 -0
- package/dist/types/helpers/idleTimeout/idle-timeout-handler.d.ts +29 -0
- package/dist/types/helpers/idleTimeout/types.d.ts +29 -0
- package/dist/types/helpers/idleTimeout.d.ts +2 -0
- package/dist/types/helpers/index.d.ts +21 -0
- package/dist/types/helpers/injectStrict.d.ts +2 -0
- package/dist/types/helpers/isStandaloneMode.d.ts +1 -0
- package/dist/types/helpers/mountComponent.d.ts +14 -0
- package/dist/types/helpers/userVisibility/user-visibility-handler.d.ts +19 -0
- package/dist/types/helpers/userVisibility.d.ts +2 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/plugins/aos.d.ts +36 -0
- package/dist/types/plugins/dialog/DialogHandler.d.ts +15 -0
- package/dist/types/plugins/dialog.d.ts +6 -0
- package/dist/types/plugins/toaster/MazToast.vue.d.ts +37 -0
- package/dist/types/plugins/toaster/ToasterHandler.d.ts +32 -0
- package/dist/types/plugins/toaster.d.ts +9 -0
- package/dist/types/plugins/wait.d.ts +14 -0
- package/dist/types/resolvers/UnpluginDirectivesResolver.d.ts +8 -0
- package/dist/types/resolvers/UnpluginModulesResolver.d.ts +8 -0
- package/dist/types/resolvers/UnpluginVueComponentsResolver.d.ts +8 -0
- package/dist/types/resolvers/index.d.ts +3 -0
- package/dist/types/tailwindcss/tailwind.config.d.ts +121 -0
- package/dist/types/tailwindcss/utils/colors.d.ts +1 -0
- package/dist/types/ts-helpers/InferMaybeRef.d.ts +2 -0
- package/dist/types/ts-helpers/index.d.ts +1 -0
- package/package.json +16 -28
- package/README.md +0 -151
- package/components/MazAccordion.d.ts +0 -36
- package/components/MazAccordion.mjs +0 -269
- package/components/MazAnimatedCounter.d.ts +0 -57
- package/components/MazAnimatedCounter.mjs +0 -113
- package/components/MazAnimatedElement.d.ts +0 -42
- package/components/MazAnimatedElement.mjs +0 -43
- package/components/MazAnimatedText.d.ts +0 -55
- package/components/MazAnimatedText.mjs +0 -147
- package/components/MazAvatar.d.ts +0 -102
- package/components/MazAvatar.mjs +0 -4
- package/components/MazBackdrop.d.ts +0 -71
- package/components/MazBackdrop.mjs +0 -145
- package/components/MazBadge.d.ts +0 -39
- package/components/MazBadge.mjs +0 -38
- package/components/MazBottomSheet.d.ts +0 -35
- package/components/MazBottomSheet.mjs +0 -4
- package/components/MazBtn.d.ts +0 -135
- package/components/MazBtn.mjs +0 -4
- package/components/MazCard.d.ts +0 -95
- package/components/MazCard.mjs +0 -4
- package/components/MazCardSpotlight.d.ts +0 -62
- package/components/MazCardSpotlight.mjs +0 -96
- package/components/MazCarousel.d.ts +0 -35
- package/components/MazCarousel.mjs +0 -4
- package/components/MazChart.d.ts +0 -104
- package/components/MazChart.mjs +0 -98
- package/components/MazCheckbox.d.ts +0 -58
- package/components/MazCheckbox.mjs +0 -182
- package/components/MazChecklist.d.ts +0 -78
- package/components/MazChecklist.mjs +0 -4
- package/components/MazCircularProgressBar.d.ts +0 -115
- package/components/MazCircularProgressBar.mjs +0 -267
- package/components/MazDialog.d.ts +0 -163
- package/components/MazDialog.mjs +0 -4
- package/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -80
- package/components/MazDialogPromise.d.ts +0 -47
- package/components/MazDialogPromise.mjs +0 -5
- package/components/MazDrawer.d.ts +0 -53
- package/components/MazDrawer.mjs +0 -4
- package/components/MazDropdown.d.ts +0 -169
- package/components/MazDropdown.mjs +0 -4
- package/components/MazDropzone.d.ts +0 -129
- package/components/MazDropzone.mjs +0 -5
- package/components/MazExpandAnimation.d.ts +0 -42
- package/components/MazExpandAnimation.mjs +0 -58
- package/components/MazFullscreenLoader.d.ts +0 -26
- package/components/MazFullscreenLoader.mjs +0 -4
- package/components/MazGallery.d.ts +0 -166
- package/components/MazGallery.mjs +0 -4
- package/components/MazIcon.d.ts +0 -80
- package/components/MazIcon.mjs +0 -108
- package/components/MazInput.d.ts +0 -123
- package/components/MazInput.mjs +0 -4
- package/components/MazInputCode.d.ts +0 -52
- package/components/MazInputCode.mjs +0 -167
- package/components/MazInputNumber.d.ts +0 -63
- package/components/MazInputNumber.mjs +0 -4
- package/components/MazInputPrice.d.ts +0 -63
- package/components/MazInputPrice.mjs +0 -4
- package/components/MazInputTags.d.ts +0 -52
- package/components/MazInputTags.mjs +0 -4
- package/components/MazLazyImg.d.ts +0 -76
- package/components/MazLazyImg.mjs +0 -4
- package/components/MazLink.d.ts +0 -86
- package/components/MazLink.mjs +0 -71
- package/components/MazLoadingBar.d.ts +0 -13
- package/components/MazLoadingBar.mjs +0 -40
- package/components/MazPagination.d.ts +0 -76
- package/components/MazPagination.mjs +0 -4
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +0 -75
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +0 -19
- package/components/MazPhoneNumberInput/types.d.ts +0 -62
- package/components/MazPhoneNumberInput/useLibphonenumber.d.ts +0 -26
- package/components/MazPhoneNumberInput/useMazPhoneNumberInput.d.ts +0 -16
- package/components/MazPhoneNumberInput.d.ts +0 -246
- package/components/MazPhoneNumberInput.mjs +0 -4
- package/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -138
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -115
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -126
- package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -42
- package/components/MazPicker/MazPickerContainer.vue.d.ts +0 -214
- package/components/MazPicker/MazPickerFooter.vue.d.ts +0 -18
- package/components/MazPicker/MazPickerHeader.vue.d.ts +0 -82
- package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -44
- package/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -62
- package/components/MazPicker/MazPickerTime.vue.d.ts +0 -129
- package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -36
- package/components/MazPicker/utils.d.ts +0 -51
- package/components/MazPicker.d.ts +0 -126
- package/components/MazPicker.mjs +0 -4
- package/components/MazPullToRefresh.d.ts +0 -53
- package/components/MazPullToRefresh.mjs +0 -4
- package/components/MazRadio.d.ts +0 -58
- package/components/MazRadio.mjs +0 -131
- package/components/MazRadioButtons.d.ts +0 -72
- package/components/MazRadioButtons.mjs +0 -177
- package/components/MazReadingProgressBar.d.ts +0 -56
- package/components/MazReadingProgressBar.mjs +0 -90
- package/components/MazSelect.d.ts +0 -131
- package/components/MazSelect.mjs +0 -4
- package/components/MazSlider.d.ts +0 -112
- package/components/MazSlider.mjs +0 -271
- package/components/MazSpinner.d.ts +0 -16
- package/components/MazSpinner.mjs +0 -38
- package/components/MazStepper.d.ts +0 -65
- package/components/MazStepper.mjs +0 -4
- package/components/MazSwitch.d.ts +0 -68
- package/components/MazSwitch.mjs +0 -107
- package/components/MazTable.d.ts +0 -231
- package/components/MazTable.mjs +0 -5
- package/components/MazTableCell.d.ts +0 -17
- package/components/MazTableCell.mjs +0 -32
- package/components/MazTableRow.d.ts +0 -21
- package/components/MazTableRow.mjs +0 -39
- package/components/MazTableTitle.d.ts +0 -17
- package/components/MazTableTitle.mjs +0 -32
- package/components/MazTabs.d.ts +0 -30
- package/components/MazTabs.mjs +0 -28
- package/components/MazTabsBar.d.ts +0 -73
- package/components/MazTabsBar.mjs +0 -4
- package/components/MazTabsContent.d.ts +0 -17
- package/components/MazTabsContent.mjs +0 -44
- package/components/MazTabsContentItem.d.ts +0 -29
- package/components/MazTabsContentItem.mjs +0 -59
- package/components/MazTextarea.d.ts +0 -91
- package/components/MazTextarea.mjs +0 -201
- package/components/MazTransitionExpand.d.ts +0 -23
- package/components/MazTransitionExpand.mjs +0 -51
- package/components/assets/MazAccordion.DHZxplwt.css +0 -1
- package/components/assets/MazAnimatedCounter.DTzaNX_Y.css +0 -1
- package/components/assets/MazAnimatedElement.BkcmWrHr.css +0 -1
- package/components/assets/MazAnimatedText.B91Kt1PP.css +0 -1
- package/components/assets/MazAvatar.CgztJYCP.css +0 -1
- package/components/assets/MazBackdrop.DPLKrrH6.css +0 -1
- package/components/assets/MazBadge.CIY0hr5U.css +0 -1
- package/components/assets/MazBottomSheet.BaTeNHYH.css +0 -1
- package/components/assets/MazBtn.DRGAvMws.css +0 -1
- package/components/assets/MazCard.BVy6g9-V.css +0 -1
- package/components/assets/MazCardSpotlight.CrcVk5S1.css +0 -1
- package/components/assets/MazCarousel.Bo1M1Wh3.css +0 -1
- package/components/assets/MazCheckbox.CA7GJd2c.css +0 -1
- package/components/assets/MazChecklist.B4K89N7e.css +0 -1
- package/components/assets/MazCircularProgressBar.Cq-jEps6.css +0 -1
- package/components/assets/MazDialog.BD4tQQQl.css +0 -1
- package/components/assets/MazDialogPromise.BD4tQQQl.css +0 -1
- package/components/assets/MazDrawer.BdI1nBQ8.css +0 -1
- package/components/assets/MazExpandAnimation.iDSQfAB4.css +0 -1
- package/components/assets/MazFullscreenLoader.dL5SG0Ne.css +0 -1
- package/components/assets/MazGallery.CKpPdxL0.css +0 -1
- package/components/assets/MazInput.BAiQiFTc.css +0 -1
- package/components/assets/MazInputCode.DF9-aY4y.css +0 -1
- package/components/assets/MazInputNumber.fr4Y-AX1.css +0 -1
- package/components/assets/MazInputPrice.BAiQiFTc.css +0 -1
- package/components/assets/MazInputTags.CZgq4l94.css +0 -1
- package/components/assets/MazLazyImg.TL9A0G4-.css +0 -1
- package/components/assets/MazLink.BBYMGbI8.css +0 -1
- package/components/assets/MazLoadingBar.ByRp5OgY.css +0 -1
- package/components/assets/MazPagination.BGhtdKHn.css +0 -1
- package/components/assets/MazPhoneNumberInput.tFz9umj-.css +0 -1
- package/components/assets/MazPicker.BlZ4a3b1.css +0 -1
- package/components/assets/MazPickerMonthSwitcher.Bnp_FbY4.css +0 -1
- package/components/assets/MazPickerShortcuts.DxPdP3Ky.css +0 -1
- package/components/assets/MazPickerYearSwitcher.BTPNT2u1.css +0 -1
- package/components/assets/MazPullToRefresh.Bvm1bmiW.css +0 -1
- package/components/assets/MazRadio.El2ThGGg.css +0 -1
- package/components/assets/MazRadioButtons.CB6qMCtm.css +0 -1
- package/components/assets/MazReadingProgressBar.C4x7V-Bc.css +0 -1
- package/components/assets/MazSelect.DNrj4_e-.css +0 -1
- package/components/assets/MazSelect.KhiI70iv.css +0 -1
- package/components/assets/MazSlider.Dlk7nygF.css +0 -1
- package/components/assets/MazSpinner.DQ9_cbMH.css +0 -1
- package/components/assets/MazStepper.BbJJgs0b.css +0 -1
- package/components/assets/MazTable.zJ2YXDrE.css +0 -1
- package/components/assets/MazTableCell.BKBZEOQb.css +0 -1
- package/components/assets/MazTableCell.Bmbmz3CR.css +0 -1
- package/components/assets/MazTableRow.CEdLSgbg.css +0 -1
- package/components/assets/MazTableRow.CtZjgh-L.css +0 -1
- package/components/assets/MazTableTitle.DCRVBhuH.css +0 -1
- package/components/assets/MazTabsBar.yIJ7lCu6.css +0 -1
- package/components/assets/MazTabsContentItem.CIoBhqeU.css +0 -1
- package/components/assets/MazTextarea.BYPQCeL_.css +0 -1
- package/components/assets/MazTransitionExpand.CvCjUYCg.css +0 -1
- package/components/chunks/MazAvatar.CNx-fB-w.mjs +0 -154
- package/components/chunks/MazBadge.AdlIDWRs.mjs +0 -34
- package/components/chunks/MazBottomSheet.CgosU2oQ.mjs +0 -224
- package/components/chunks/MazBtn.1qp5aQ4N.mjs +0 -103
- package/components/chunks/MazBtn.B6UiTgcv.mjs +0 -103
- package/components/chunks/MazBtn.BAflMoEe.mjs +0 -103
- package/components/chunks/MazBtn.BE40HJng.mjs +0 -103
- package/components/chunks/MazBtn.BJh0vN8h.mjs +0 -103
- package/components/chunks/MazBtn.BcPKpdoJ.mjs +0 -103
- package/components/chunks/MazBtn.BsXkp99v.mjs +0 -103
- package/components/chunks/MazBtn.C6vJDOgv.mjs +0 -103
- package/components/chunks/MazBtn.CJYzU-Jj.mjs +0 -103
- package/components/chunks/MazBtn.CQ7scMZT.mjs +0 -108
- package/components/chunks/MazBtn.CtfRyE0d.mjs +0 -103
- package/components/chunks/MazBtn.DWNPohkh.mjs +0 -103
- package/components/chunks/MazBtn.NVrWAz8O.mjs +0 -103
- package/components/chunks/MazBtn.h5GSnFKe.mjs +0 -103
- package/components/chunks/MazCard.D4R5VJTH.mjs +0 -204
- package/components/chunks/MazCarousel.tT2IPWU9.mjs +0 -128
- package/components/chunks/MazCheckbox.CYeDQcMp.mjs +0 -150
- package/components/chunks/MazCheckbox.L0nhQFjM.mjs +0 -149
- package/components/chunks/MazCheckbox.UAnkvAoS.mjs +0 -149
- package/components/chunks/MazChecklist.CCPcVVKg.mjs +0 -478
- package/components/chunks/MazDialog.OnoOcvOM.mjs +0 -297
- package/components/chunks/MazDialogPromise.DslEyrLO.mjs +0 -551
- package/components/chunks/MazDrawer.D3JH9lqE.mjs +0 -226
- package/components/chunks/MazDropdown.CDW3gyaa.mjs +0 -427
- package/components/chunks/MazDropzone.BWN0kCz3.mjs +0 -222
- package/components/chunks/MazExpandAnimation.NRqY0IYX.mjs +0 -54
- package/components/chunks/MazFullscreenLoader.Bynu3Kvu.mjs +0 -48
- package/components/chunks/MazGallery.2XDJQmg_.mjs +0 -687
- package/components/chunks/MazGallery.Ck0j45dq.mjs +0 -692
- package/components/chunks/MazIcon.B5KEO0Na.mjs +0 -103
- package/components/chunks/MazIcon.B5hPzeLk.mjs +0 -103
- package/components/chunks/MazIcon.BfRXZ8qh.mjs +0 -4
- package/components/chunks/MazIcon.Cq1v4J3r.mjs +0 -108
- package/components/chunks/MazInput.5Zn7f5zz.mjs +0 -302
- package/components/chunks/MazInput.CwPPyy_i.mjs +0 -303
- package/components/chunks/MazInput.JrNzZZLk.mjs +0 -313
- package/components/chunks/MazInputNumber.Daeit65q.mjs +0 -589
- package/components/chunks/MazInputPrice.24GEm_Lg.mjs +0 -447
- package/components/chunks/MazInputTags.0Z_xEZiL.mjs +0 -602
- package/components/chunks/MazLazyImg.BtE4rUvl.mjs +0 -261
- package/components/chunks/MazLazyImg.CC9acnrW.mjs +0 -266
- package/components/chunks/MazLink.C92ctqOA.mjs +0 -67
- package/components/chunks/MazLoadingBar.LkmX0AHd.mjs +0 -36
- package/components/chunks/MazPagination.DgR9Wyv0.mjs +0 -327
- package/components/chunks/MazPhoneNumberInput.BcyaW-S8.mjs +0 -1803
- package/components/chunks/MazPicker.z_H1w2TI.mjs +0 -2482
- package/components/chunks/MazPickerMonthSwitcher.D42-_FwL.mjs +0 -95
- package/components/chunks/MazPickerShortcuts.D1UfHxwB.mjs +0 -72
- package/components/chunks/MazPickerYearSwitcher.BfS0Lz92.mjs +0 -105
- package/components/chunks/MazPullToRefresh.QikB7FQT.mjs +0 -182
- package/components/chunks/MazSelect.CZ8-FJbx.mjs +0 -551
- package/components/chunks/MazSelect.ke0PdTcU.mjs +0 -857
- package/components/chunks/MazSpinner.B2KPFXAm.mjs +0 -34
- package/components/chunks/MazSpinner.B4nEYwaU.mjs +0 -34
- package/components/chunks/MazSpinner.B8L6EKV9.mjs +0 -34
- package/components/chunks/MazSpinner.B9a2gCP3.mjs +0 -34
- package/components/chunks/MazSpinner.CBjYZ4KZ.mjs +0 -34
- package/components/chunks/MazSpinner.CPsKUg_o.mjs +0 -34
- package/components/chunks/MazSpinner.CXGURuw3.mjs +0 -34
- package/components/chunks/MazSpinner.C_i8HP1F.mjs +0 -34
- package/components/chunks/MazSpinner.Ce_9sxU7.mjs +0 -34
- package/components/chunks/MazSpinner.CmN9GG-h.mjs +0 -34
- package/components/chunks/MazSpinner.D9YU6PN7.mjs +0 -34
- package/components/chunks/MazSpinner.DJGs9ccb.mjs +0 -34
- package/components/chunks/MazSpinner.DMR3wKqs.mjs +0 -34
- package/components/chunks/MazSpinner.DP7ZDo4s.mjs +0 -34
- package/components/chunks/MazSpinner.DZT5jj-c.mjs +0 -34
- package/components/chunks/MazSpinner.DaGCwMP7.mjs +0 -34
- package/components/chunks/MazSpinner.DdHpWoUe.mjs +0 -34
- package/components/chunks/MazSpinner.Dl1PcqAK.mjs +0 -34
- package/components/chunks/MazSpinner.DnMH7xjZ.mjs +0 -34
- package/components/chunks/MazSpinner.DsiBNRdi.mjs +0 -34
- package/components/chunks/MazSpinner.J9PGgQcA.mjs +0 -34
- package/components/chunks/MazSpinner.KYBb2I3W.mjs +0 -34
- package/components/chunks/MazSpinner.u38Xp-ls.mjs +0 -34
- package/components/chunks/MazSpinner.wdUeBhfS.mjs +0 -34
- package/components/chunks/MazStepper.Gxu3fyI5.mjs +0 -218
- package/components/chunks/MazTable.BtL5to1U.mjs +0 -657
- package/components/chunks/MazTableCell.CN6g3CD7.mjs +0 -23
- package/components/chunks/MazTableRow.BjoUmiPj.mjs +0 -30
- package/components/chunks/MazTableTitle.Dh-2buat.mjs +0 -23
- package/components/chunks/MazTabsBar.fmCbDhYh.mjs +0 -177
- package/components/chunks/MazTransitionExpand.DL0tmQvU.mjs +0 -47
- package/components/chunks/arrow-top-right-on-square.jPmYJ34F.mjs +0 -30
- package/components/chunks/arrow-up.DjSlktWl.mjs +0 -30
- package/components/chunks/check-circle.Bf7AGSQ-.mjs +0 -30
- package/components/chunks/check.BmubdHc_.mjs +0 -30
- package/components/chunks/check.C9Q_W85g.mjs +0 -30
- package/components/chunks/chevron-double-left.D4-NpyrF.mjs +0 -30
- package/components/chunks/chevron-down.BkvtON3b.mjs +0 -30
- package/components/chunks/chevron-left.BqVOLRdC.mjs +0 -30
- package/components/chunks/chevron-right.CbjzEeHV.mjs +0 -30
- package/components/chunks/ellipsis-horizontal.6n158ATI.mjs +0 -30
- package/components/chunks/exclamation-circle.CUk0ZajS.mjs +0 -30
- package/components/chunks/exclamation-triangle.Z6d0ygp8.mjs +0 -30
- package/components/chunks/eye-slash.BoO00xzs.mjs +0 -30
- package/components/chunks/eye.f8zAUc30.mjs +0 -43
- package/components/chunks/inject-strict.DEDSuzCz.mjs +0 -10
- package/components/chunks/magnifying-glass.-nBiyXot.mjs +0 -30
- package/components/chunks/no-photography.PGT8fxs_.mjs +0 -36
- package/components/chunks/no-symbol.CIgKzsrB.mjs +0 -30
- package/components/chunks/pencil.Z-mPplOz.mjs +0 -30
- package/components/chunks/useInstanceUniqId.BkOfxhk8.mjs +0 -10
- package/components/chunks/x-mark.CnZwVvA7.mjs +0 -30
- package/components/chunks/x-mark.wyoa-ywi.mjs +0 -29
- package/components/index.d.ts +0 -56
- package/components/index.mjs +0 -58
- package/components/types.d.ts +0 -20
- package/css/aos.css +0 -1
- package/css/main.css +0 -1
- package/icons/academic-cap.svg +0 -3
- package/icons/adjustments-horizontal.svg +0 -3
- package/icons/adjustments-vertical.svg +0 -3
- package/icons/archive-box-arrow-down.svg +0 -3
- package/icons/archive-box-x-mark.svg +0 -3
- package/icons/archive-box.svg +0 -3
- package/icons/arrow-down-circle.svg +0 -3
- package/icons/arrow-down-left.svg +0 -3
- package/icons/arrow-down-on-square-stack.svg +0 -3
- package/icons/arrow-down-on-square.svg +0 -3
- package/icons/arrow-down-right.svg +0 -3
- package/icons/arrow-down-tray.svg +0 -3
- package/icons/arrow-down.svg +0 -3
- package/icons/arrow-left-circle.svg +0 -3
- package/icons/arrow-left-end-on-rectangle.svg +0 -3
- package/icons/arrow-left-on-rectangle.svg +0 -3
- package/icons/arrow-left-start-on-rectangle.svg +0 -3
- package/icons/arrow-left.svg +0 -3
- package/icons/arrow-long-down.svg +0 -3
- package/icons/arrow-long-left.svg +0 -3
- package/icons/arrow-long-right.svg +0 -3
- package/icons/arrow-long-up.svg +0 -3
- package/icons/arrow-path-rounded-square.svg +0 -3
- package/icons/arrow-path.svg +0 -3
- package/icons/arrow-right-circle.svg +0 -3
- package/icons/arrow-right-end-on-rectangle.svg +0 -3
- package/icons/arrow-right-on-rectangle.svg +0 -3
- package/icons/arrow-right-start-on-rectangle.svg +0 -3
- package/icons/arrow-right.svg +0 -3
- package/icons/arrow-small-down.svg +0 -3
- package/icons/arrow-small-left.svg +0 -3
- package/icons/arrow-small-right.svg +0 -3
- package/icons/arrow-small-up.svg +0 -3
- package/icons/arrow-top-right-on-square.svg +0 -3
- package/icons/arrow-trending-down.svg +0 -3
- package/icons/arrow-trending-up.svg +0 -3
- package/icons/arrow-up-circle.svg +0 -3
- package/icons/arrow-up-left.svg +0 -3
- package/icons/arrow-up-on-square-stack.svg +0 -3
- package/icons/arrow-up-on-square.svg +0 -3
- package/icons/arrow-up-right.svg +0 -3
- package/icons/arrow-up-tray.svg +0 -3
- package/icons/arrow-up.svg +0 -3
- package/icons/arrow-uturn-down.svg +0 -3
- package/icons/arrow-uturn-left.svg +0 -3
- package/icons/arrow-uturn-right.svg +0 -3
- package/icons/arrow-uturn-up.svg +0 -3
- package/icons/arrows-pointing-in.svg +0 -3
- package/icons/arrows-pointing-out.svg +0 -3
- package/icons/arrows-right-left.svg +0 -3
- package/icons/arrows-up-down.svg +0 -3
- package/icons/at-symbol.svg +0 -3
- package/icons/backspace.svg +0 -3
- package/icons/backward.svg +0 -4
- package/icons/banknotes.svg +0 -3
- package/icons/bars-2.svg +0 -3
- package/icons/bars-3-bottom-left.svg +0 -3
- package/icons/bars-3-bottom-right.svg +0 -3
- package/icons/bars-3-center-left.svg +0 -3
- package/icons/bars-3.svg +0 -3
- package/icons/bars-4.svg +0 -3
- package/icons/bars-arrow-down.svg +0 -3
- package/icons/bars-arrow-up.svg +0 -3
- package/icons/battery-0.svg +0 -3
- package/icons/battery-100.svg +0 -3
- package/icons/battery-50.svg +0 -3
- package/icons/beaker.svg +0 -3
- package/icons/bell-alert.svg +0 -3
- package/icons/bell-slash.svg +0 -3
- package/icons/bell-snooze.svg +0 -3
- package/icons/bell.svg +0 -3
- package/icons/bolt-slash.svg +0 -3
- package/icons/bolt.svg +0 -3
- package/icons/book-open.svg +0 -3
- package/icons/bookmark-slash.svg +0 -3
- package/icons/bookmark-square.svg +0 -3
- package/icons/bookmark.svg +0 -3
- package/icons/briefcase.svg +0 -3
- package/icons/bug-ant.svg +0 -3
- package/icons/building-library.svg +0 -3
- package/icons/building-office-2.svg +0 -3
- package/icons/building-office.svg +0 -3
- package/icons/building-storefront.svg +0 -3
- package/icons/cake.svg +0 -3
- package/icons/calculator.svg +0 -3
- package/icons/calendar-days.svg +0 -3
- package/icons/calendar.svg +0 -3
- package/icons/camera.svg +0 -5
- package/icons/chart-bar-square.svg +0 -3
- package/icons/chart-bar.svg +0 -5
- package/icons/chart-pie.svg +0 -4
- package/icons/chat-bubble-bottom-center-text.svg +0 -3
- package/icons/chat-bubble-bottom-center.svg +0 -3
- package/icons/chat-bubble-left-ellipsis.svg +0 -3
- package/icons/chat-bubble-left-right.svg +0 -3
- package/icons/chat-bubble-left.svg +0 -3
- package/icons/chat-bubble-oval-left-ellipsis.svg +0 -3
- package/icons/chat-bubble-oval-left.svg +0 -3
- package/icons/check-badge.svg +0 -3
- package/icons/check-circle.svg +0 -3
- package/icons/check.svg +0 -3
- package/icons/chevron-double-down.svg +0 -3
- package/icons/chevron-double-left.svg +0 -3
- package/icons/chevron-double-right.svg +0 -3
- package/icons/chevron-double-up.svg +0 -4
- package/icons/chevron-down.svg +0 -3
- package/icons/chevron-left.svg +0 -3
- package/icons/chevron-right.svg +0 -3
- package/icons/chevron-up-down.svg +0 -3
- package/icons/chevron-up.svg +0 -3
- package/icons/circle-stack.svg +0 -3
- package/icons/clipboard-document-check.svg +0 -3
- package/icons/clipboard-document-list.svg +0 -3
- package/icons/clipboard-document.svg +0 -3
- package/icons/clipboard.svg +0 -3
- package/icons/clock.svg +0 -3
- package/icons/cloud-arrow-down.svg +0 -3
- package/icons/cloud-arrow-up.svg +0 -3
- package/icons/cloud.svg +0 -3
- package/icons/code-bracket-square.svg +0 -3
- package/icons/code-bracket.svg +0 -3
- package/icons/cog-6-tooth.svg +0 -4
- package/icons/cog-8-tooth.svg +0 -4
- package/icons/cog.svg +0 -3
- package/icons/command-line.svg +0 -3
- package/icons/computer-desktop.svg +0 -3
- package/icons/cpu-chip.svg +0 -3
- package/icons/credit-card.svg +0 -3
- package/icons/cube-transparent.svg +0 -3
- package/icons/cube.svg +0 -3
- package/icons/currency-bangladeshi.svg +0 -3
- package/icons/currency-dollar.svg +0 -3
- package/icons/currency-euro.svg +0 -3
- package/icons/currency-pound.svg +0 -3
- package/icons/currency-rupee.svg +0 -3
- package/icons/currency-yen.svg +0 -3
- package/icons/cursor-arrow-rays.svg +0 -3
- package/icons/cursor-arrow-ripple.svg +0 -3
- package/icons/device-phone-mobile.svg +0 -3
- package/icons/device-tablet.svg +0 -3
- package/icons/document-arrow-down.svg +0 -3
- package/icons/document-arrow-up.svg +0 -3
- package/icons/document-chart-bar.svg +0 -3
- package/icons/document-check.svg +0 -3
- package/icons/document-duplicate.svg +0 -3
- package/icons/document-magnifying-glass.svg +0 -3
- package/icons/document-minus.svg +0 -3
- package/icons/document-plus.svg +0 -3
- package/icons/document-text.svg +0 -3
- package/icons/document.svg +0 -3
- package/icons/ellipsis-horizontal-circle.svg +0 -3
- package/icons/ellipsis-horizontal.svg +0 -5
- package/icons/ellipsis-vertical.svg +0 -5
- package/icons/envelope-open.svg +0 -3
- package/icons/envelope.svg +0 -3
- package/icons/exclamation-circle.svg +0 -3
- package/icons/exclamation-triangle.svg +0 -3
- package/icons/eye-dropper.svg +0 -3
- package/icons/eye-slash.svg +0 -3
- package/icons/eye.svg +0 -4
- package/icons/face-frown.svg +0 -3
- package/icons/face-smile.svg +0 -3
- package/icons/film.svg +0 -3
- package/icons/finger-print.svg +0 -3
- package/icons/fire.svg +0 -4
- package/icons/flag.svg +0 -3
- package/icons/folder-arrow-down.svg +0 -3
- package/icons/folder-minus.svg +0 -3
- package/icons/folder-open.svg +0 -3
- package/icons/folder-plus.svg +0 -3
- package/icons/folder.svg +0 -3
- package/icons/fork.svg +0 -6
- package/icons/forward.svg +0 -4
- package/icons/funnel.svg +0 -3
- package/icons/gif.svg +0 -3
- package/icons/gift-top.svg +0 -3
- package/icons/gift.svg +0 -3
- package/icons/github.svg +0 -5
- package/icons/globe-alt.svg +0 -3
- package/icons/globe-americas.svg +0 -3
- package/icons/globe-asia-australia.svg +0 -3
- package/icons/globe-europe-africa.svg +0 -3
- package/icons/hand-raised.svg +0 -3
- package/icons/hand-thumb-down.svg +0 -3
- package/icons/hand-thumb-up.svg +0 -3
- package/icons/hashtag.svg +0 -3
- package/icons/heart.svg +0 -3
- package/icons/home-modern.svg +0 -3
- package/icons/home.svg +0 -3
- package/icons/identification.svg +0 -3
- package/icons/inbox-arrow-down.svg +0 -3
- package/icons/inbox-stack.svg +0 -3
- package/icons/inbox.svg +0 -3
- package/icons/information-circle.svg +0 -3
- package/icons/key.svg +0 -3
- package/icons/language.svg +0 -3
- package/icons/lifebuoy.svg +0 -3
- package/icons/light-bulb.svg +0 -3
- package/icons/link.svg +0 -3
- package/icons/list-bullet.svg +0 -3
- package/icons/lock-closed.svg +0 -3
- package/icons/lock-open.svg +0 -3
- package/icons/magnifying-glass-circle.svg +0 -3
- package/icons/magnifying-glass-minus.svg +0 -3
- package/icons/magnifying-glass-plus.svg +0 -3
- package/icons/magnifying-glass.svg +0 -3
- package/icons/map-pin.svg +0 -4
- package/icons/map.svg +0 -3
- package/icons/megaphone.svg +0 -3
- package/icons/microphone.svg +0 -3
- package/icons/minus-circle.svg +0 -3
- package/icons/minus-small.svg +0 -3
- package/icons/minus.svg +0 -3
- package/icons/moon.svg +0 -3
- package/icons/musical-note.svg +0 -3
- package/icons/newspaper.svg +0 -3
- package/icons/no-photography.svg +0 -10
- package/icons/no-symbol.svg +0 -3
- package/icons/paint-brush.svg +0 -3
- package/icons/paper-airplane.svg +0 -3
- package/icons/paper-clip.svg +0 -3
- package/icons/pause-circle.svg +0 -3
- package/icons/pause.svg +0 -3
- package/icons/pencil-square.svg +0 -3
- package/icons/pencil.svg +0 -3
- package/icons/phone-arrow-down-left.svg +0 -3
- package/icons/phone-arrow-up-right.svg +0 -3
- package/icons/phone-x-mark.svg +0 -3
- package/icons/phone.svg +0 -3
- package/icons/photo.svg +0 -3
- package/icons/play-circle.svg +0 -4
- package/icons/play-pause.svg +0 -3
- package/icons/play.svg +0 -3
- package/icons/plus-circle.svg +0 -3
- package/icons/plus-small.svg +0 -3
- package/icons/plus.svg +0 -3
- package/icons/power.svg +0 -3
- package/icons/presentation-chart-bar.svg +0 -3
- package/icons/presentation-chart-line.svg +0 -3
- package/icons/printer.svg +0 -3
- package/icons/puzzle-piece.svg +0 -3
- package/icons/qr-code.svg +0 -13
- package/icons/question-mark-circle.svg +0 -3
- package/icons/queue-list.svg +0 -3
- package/icons/radio.svg +0 -3
- package/icons/receipt-percent.svg +0 -3
- package/icons/receipt-refund.svg +0 -3
- package/icons/rectangle-group.svg +0 -5
- package/icons/rectangle-stack.svg +0 -3
- package/icons/rocket-launch.svg +0 -3
- package/icons/rss.svg +0 -3
- package/icons/scale.svg +0 -3
- package/icons/scissors.svg +0 -3
- package/icons/server-stack.svg +0 -3
- package/icons/server.svg +0 -3
- package/icons/share.svg +0 -3
- package/icons/shield-check.svg +0 -3
- package/icons/shield-exclamation.svg +0 -3
- package/icons/shopping-bag.svg +0 -3
- package/icons/shopping-cart.svg +0 -3
- package/icons/signal-slash.svg +0 -3
- package/icons/signal.svg +0 -3
- package/icons/sparkles.svg +0 -5
- package/icons/speaker-wave.svg +0 -3
- package/icons/speaker-x-mark.svg +0 -3
- package/icons/square-2-stack.svg +0 -3
- package/icons/square-3-stack-3d.svg +0 -3
- package/icons/squares-2x2.svg +0 -6
- package/icons/squares-plus.svg +0 -3
- package/icons/star-solid.svg +0 -3
- package/icons/star.svg +0 -3
- package/icons/stop-circle.svg +0 -4
- package/icons/stop.svg +0 -3
- package/icons/sun.svg +0 -3
- package/icons/swatch.svg +0 -3
- package/icons/table-cells.svg +0 -3
- package/icons/tag.svg +0 -4
- package/icons/ticket.svg +0 -3
- package/icons/trash.svg +0 -3
- package/icons/trophy.svg +0 -3
- package/icons/truck.svg +0 -3
- package/icons/tv.svg +0 -3
- package/icons/user-circle.svg +0 -3
- package/icons/user-group.svg +0 -3
- package/icons/user-minus.svg +0 -3
- package/icons/user-plus.svg +0 -3
- package/icons/user.svg +0 -4
- package/icons/users.svg +0 -3
- package/icons/variable.svg +0 -3
- package/icons/video-camera-slash.svg +0 -3
- package/icons/video-camera.svg +0 -3
- package/icons/view-columns.svg +0 -3
- package/icons/viewfinder-circle.svg +0 -3
- package/icons/wallet.svg +0 -3
- package/icons/wifi.svg +0 -3
- package/icons/window.svg +0 -3
- package/icons/wrench-screwdriver.svg +0 -3
- package/icons/wrench.svg +0 -4
- package/icons/x-circle.svg +0 -3
- package/icons/x-mark.svg +0 -3
- package/modules/assets/MazBtn.DRGAvMws.css +0 -1
- package/modules/assets/MazSpinner.DQ9_cbMH.css +0 -1
- package/modules/assets/index.B3s7AfaL.css +0 -1
- package/modules/chunks/MazBtn.By2sbdh8.cjs +0 -1
- package/modules/chunks/MazBtn.CA5moYsw.mjs +0 -103
- package/modules/chunks/MazIcon.B0hxYaF0.cjs +0 -1
- package/modules/chunks/MazIcon.DBGqW7oS.mjs +0 -103
- package/modules/chunks/MazSpinner.Ci076Hb-.cjs +0 -1
- package/modules/chunks/MazSpinner.Cx7mdOJ3.mjs +0 -34
- package/modules/chunks/arrow-top-right-on-square.PZtr8Zs0.cjs +0 -1
- package/modules/chunks/arrow-top-right-on-square.jPmYJ34F.mjs +0 -30
- package/modules/chunks/check-circle.Bf7AGSQ-.mjs +0 -30
- package/modules/chunks/check-circle.D3i-p-t3.cjs +0 -1
- package/modules/chunks/chevron-left.BqVOLRdC.mjs +0 -30
- package/modules/chunks/chevron-left.Byr9GkwI.cjs +0 -1
- package/modules/chunks/exclamation-circle.BXs0Yj0f.cjs +0 -1
- package/modules/chunks/exclamation-circle.CUk0ZajS.mjs +0 -30
- package/modules/chunks/exclamation-triangle.BtW3be9S.cjs +0 -1
- package/modules/chunks/exclamation-triangle.Z6d0ygp8.mjs +0 -30
- package/modules/chunks/index.BgyjI1q8.mjs +0 -4299
- package/modules/chunks/index.CXVZhyjw.cjs +0 -1
- package/modules/chunks/index.CnuH12oV.cjs +0 -124
- package/modules/chunks/index.DfFhxzWz.mjs +0 -3762
- package/modules/chunks/information-circle.89FseEuJ.cjs +0 -1
- package/modules/chunks/information-circle.C7e5b_nL.mjs +0 -30
- package/modules/chunks/link.Br1lfjTR.mjs +0 -30
- package/modules/chunks/link.CUxj8BQ5.cjs +0 -1
- package/modules/chunks/no-photography.BJX8HSus.mjs +0 -4
- package/modules/chunks/no-photography.CLNgmzDi.cjs +0 -1
- package/modules/chunks/x-mark.CnZwVvA7.mjs +0 -30
- package/modules/chunks/x-mark.DW2WXkoF.cjs +0 -1
- package/modules/index.cjs +0 -1
- package/modules/index.mjs +0 -64
- package/nuxt/index.cjs +0 -5
- package/nuxt/index.d.mts +0 -157
- package/nuxt/index.d.ts +0 -157
- package/nuxt/index.json +0 -12
- package/nuxt/index.mjs +0 -294
- package/nuxt/runtime/composables/useAos.d.ts +0 -2
- package/nuxt/runtime/composables/useAos.js +0 -5
- package/nuxt/runtime/composables/useDialog.d.ts +0 -2
- package/nuxt/runtime/composables/useDialog.js +0 -5
- package/nuxt/runtime/composables/useThemeHandler.d.ts +0 -2
- package/nuxt/runtime/composables/useThemeHandler.js +0 -8
- package/nuxt/runtime/composables/useToast.d.ts +0 -2
- package/nuxt/runtime/composables/useToast.js +0 -5
- package/nuxt/runtime/composables/useWait.d.ts +0 -2
- package/nuxt/runtime/composables/useWait.js +0 -5
- package/nuxt/runtime/plugins/aos.d.ts +0 -8
- package/nuxt/runtime/plugins/aos.js +0 -12
- package/nuxt/runtime/plugins/dialog.d.ts +0 -8
- package/nuxt/runtime/plugins/dialog.js +0 -23
- package/nuxt/runtime/plugins/maz-icon-path.d.ts +0 -7
- package/nuxt/runtime/plugins/maz-icon-path.js +0 -10
- package/nuxt/runtime/plugins/toaster.d.ts +0 -8
- package/nuxt/runtime/plugins/toaster.js +0 -26
- package/nuxt/runtime/plugins/v-click-outside.d.ts +0 -2
- package/nuxt/runtime/plugins/v-click-outside.js +0 -5
- package/nuxt/runtime/plugins/v-fullscreen-img.d.ts +0 -2
- package/nuxt/runtime/plugins/v-fullscreen-img.js +0 -5
- package/nuxt/runtime/plugins/v-lazy-img.d.ts +0 -2
- package/nuxt/runtime/plugins/v-lazy-img.js +0 -7
- package/nuxt/runtime/plugins/v-tooltip.d.ts +0 -2
- package/nuxt/runtime/plugins/v-tooltip.js +0 -7
- package/nuxt/runtime/plugins/v-zoom-img.d.ts +0 -2
- package/nuxt/runtime/plugins/v-zoom-img.js +0 -5
- package/nuxt/runtime/plugins/wait.d.ts +0 -8
- package/nuxt/runtime/plugins/wait.js +0 -18
- package/nuxt/types.d.mts +0 -7
- package/nuxt/types.d.ts +0 -7
- package/resolvers/index.cjs +0 -1
- package/resolvers/index.d.ts +0 -3
- package/resolvers/index.mjs +0 -72
- package/resolvers/unplugin-directives-resolver.d.ts +0 -8
- package/resolvers/unplugin-modules-resolver.d.ts +0 -2
- package/resolvers/unplugin-vue-components-resolver.d.ts +0 -8
- package/tailwindcss/tailwind.config.ts +0 -51
- package/tailwindcss/tailwind.css +0 -4
- package/tailwindcss/utils/colors.ts +0 -27
- package/tailwindcss/variables/breakpoints.ts +0 -28
- package/tailwindcss/variables/colors.ts +0 -50
- package/tailwindcss/variables/utilities.ts +0 -24
- package/tailwindcss/variables/z-indexes.ts +0 -16
- package/types/components/MazAccordion.vue.d.ts +0 -36
- package/types/components/MazAnimatedCounter.vue.d.ts +0 -57
- package/types/components/MazAnimatedElement.vue.d.ts +0 -42
- package/types/components/MazAnimatedText.vue.d.ts +0 -55
- package/types/components/MazAvatar.vue.d.ts +0 -102
- package/types/components/MazBackdrop.vue.d.ts +0 -71
- package/types/components/MazBadge.vue.d.ts +0 -39
- package/types/components/MazBottomSheet.vue.d.ts +0 -35
- package/types/components/MazBtn.vue.d.ts +0 -135
- package/types/components/MazCard.vue.d.ts +0 -95
- package/types/components/MazCardSpotlight.vue.d.ts +0 -62
- package/types/components/MazCarousel.vue.d.ts +0 -35
- package/types/components/MazChart.vue.d.ts +0 -104
- package/types/components/MazCheckbox.vue.d.ts +0 -58
- package/types/components/MazChecklist.vue.d.ts +0 -78
- package/types/components/MazCircularProgressBar.vue.d.ts +0 -115
- package/types/components/MazDialog.vue.d.ts +0 -163
- package/types/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -80
- package/types/components/MazDialogPromise.vue.d.ts +0 -47
- package/types/components/MazDrawer.vue.d.ts +0 -53
- package/types/components/MazDropdown.vue.d.ts +0 -169
- package/types/components/MazDropzone.vue.d.ts +0 -129
- package/types/components/MazExpandAnimation.vue.d.ts +0 -42
- package/types/components/MazFullscreenLoader.vue.d.ts +0 -26
- package/types/components/MazGallery.vue.d.ts +0 -166
- package/types/components/MazIcon.vue.d.ts +0 -80
- package/types/components/MazInput.vue.d.ts +0 -123
- package/types/components/MazInputCode.vue.d.ts +0 -52
- package/types/components/MazInputNumber.vue.d.ts +0 -63
- package/types/components/MazInputPrice.vue.d.ts +0 -63
- package/types/components/MazInputTags.vue.d.ts +0 -52
- package/types/components/MazLazyImg.vue.d.ts +0 -76
- package/types/components/MazLink.vue.d.ts +0 -86
- package/types/components/MazLoadingBar.vue.d.ts +0 -13
- package/types/components/MazPagination.vue.d.ts +0 -76
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +0 -75
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +0 -19
- package/types/components/MazPhoneNumberInput/default-locales.d.ts +0 -11
- package/types/components/MazPhoneNumberInput/types.d.ts +0 -62
- package/types/components/MazPhoneNumberInput/useLibphonenumber.d.ts +0 -26
- package/types/components/MazPhoneNumberInput/useMazPhoneNumberInput.d.ts +0 -16
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -246
- package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -138
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -115
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -126
- package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -42
- package/types/components/MazPicker/MazPickerContainer.vue.d.ts +0 -214
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +0 -18
- package/types/components/MazPicker/MazPickerHeader.vue.d.ts +0 -82
- package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -44
- package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -62
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +0 -129
- package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -36
- package/types/components/MazPicker/types.d.ts +0 -15
- package/types/components/MazPicker/utils.d.ts +0 -51
- package/types/components/MazPicker.vue.d.ts +0 -126
- package/types/components/MazPullToRefresh.vue.d.ts +0 -53
- package/types/components/MazRadio.vue.d.ts +0 -58
- package/types/components/MazRadioButtons.vue.d.ts +0 -72
- package/types/components/MazReadingProgressBar.vue.d.ts +0 -56
- package/types/components/MazSelect.vue.d.ts +0 -131
- package/types/components/MazSlider/utils.d.ts +0 -15
- package/types/components/MazSlider.vue.d.ts +0 -112
- package/types/components/MazSpinner.vue.d.ts +0 -16
- package/types/components/MazStepper.vue.d.ts +0 -65
- package/types/components/MazSwitch.vue.d.ts +0 -68
- package/types/components/MazTable.vue.d.ts +0 -231
- package/types/components/MazTableCell.vue.d.ts +0 -17
- package/types/components/MazTableRow.vue.d.ts +0 -21
- package/types/components/MazTableTitle.vue.d.ts +0 -17
- package/types/components/MazTabs.vue.d.ts +0 -30
- package/types/components/MazTabsBar.vue.d.ts +0 -73
- package/types/components/MazTabsContent.vue.d.ts +0 -17
- package/types/components/MazTabsContentItem.vue.d.ts +0 -29
- package/types/components/MazTextarea/textarea-autogrow.d.ts +0 -9
- package/types/components/MazTextarea.vue.d.ts +0 -91
- package/types/components/MazTransitionExpand.vue.d.ts +0 -23
- package/types/components/index.d.ts +0 -56
- package/types/components/types.d.ts +0 -20
- package/types/modules/composables/index.d.ts +0 -16
- package/types/modules/composables/useAos.d.ts +0 -2
- package/types/modules/composables/useBreakpoints.d.ts +0 -38
- package/types/modules/composables/useDialog.d.ts +0 -2
- package/types/modules/composables/useFormValidator/config.d.ts +0 -7
- package/types/modules/composables/useFormValidator/index.d.ts +0 -3
- package/types/modules/composables/useFormValidator/types.d.ts +0 -109
- package/types/modules/composables/useFormValidator/useFormField.d.ts +0 -56
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +0 -17
- package/types/modules/composables/useFormValidator/utils.d.ts +0 -116
- package/types/modules/composables/useIdleTimeout.d.ts +0 -5
- package/types/modules/composables/useInstanceUniqId.d.ts +0 -4
- package/types/modules/composables/useLanguageDisplayNames.d.ts +0 -18
- package/types/modules/composables/useReadingTime.d.ts +0 -25
- package/types/modules/composables/useStringMatching.d.ts +0 -5
- package/types/modules/composables/useSwipe.d.ts +0 -14
- package/types/modules/composables/useThemeHandler.d.ts +0 -58
- package/types/modules/composables/useTimer.d.ts +0 -29
- package/types/modules/composables/useToast.d.ts +0 -2
- package/types/modules/composables/useUserVisibilty.d.ts +0 -5
- package/types/modules/composables/useWait.d.ts +0 -2
- package/types/modules/composables/useWindowSize.d.ts +0 -32
- package/types/modules/directives/click-outside.d.ts +0 -15
- package/types/modules/directives/closable.d.ts +0 -18
- package/types/modules/directives/index.d.ts +0 -11
- package/types/modules/directives/tooltip/index.d.ts +0 -43
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +0 -47
- package/types/modules/directives/v-fullscreen-img/fullscreen-img.directive.d.ts +0 -7
- package/types/modules/directives/v-fullscreen-img/fullscreen-img.handler.d.ts +0 -36
- package/types/modules/directives/v-fullscreen-img/index.d.ts +0 -6
- package/types/modules/directives/v-lazy-img/index.d.ts +0 -6
- package/types/modules/directives/v-lazy-img/lazy-img.directive.d.ts +0 -7
- package/types/modules/directives/v-lazy-img/lazy-img.handler.d.ts +0 -39
- package/types/modules/directives/v-lazy-img/types.d.ts +0 -35
- package/types/modules/directives/v-zoom-img/index.d.ts +0 -6
- package/types/modules/directives/v-zoom-img/zoom-img.directive.d.ts +0 -6
- package/types/modules/directives/v-zoom-img/zoom-img.handler.d.ts +0 -46
- package/types/modules/filters/index.d.ts +0 -20
- package/types/modules/helpers/InferMaybeRef.d.ts +0 -2
- package/types/modules/helpers/country-flag-from-flagcn.d.ts +0 -7
- package/types/modules/helpers/freeze-value.d.ts +0 -5
- package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +0 -29
- package/types/modules/helpers/idle-timeout/index.d.ts +0 -2
- package/types/modules/helpers/idle-timeout/types.d.ts +0 -29
- package/types/modules/helpers/index.d.ts +0 -15
- package/types/modules/helpers/inject-strict.d.ts +0 -2
- package/types/modules/helpers/is-standalone-mode.d.ts +0 -1
- package/types/modules/helpers/mount-component.d.ts +0 -14
- package/types/modules/helpers/user-visibility/index.d.ts +0 -2
- package/types/modules/helpers/user-visibility/user-visibility-handler.d.ts +0 -19
- package/types/modules/index.d.ts +0 -5
- package/types/modules/plugins/aos/index.d.ts +0 -36
- package/types/modules/plugins/dialog/DialogHandler.d.ts +0 -15
- package/types/modules/plugins/dialog/index.d.ts +0 -6
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +0 -37
- package/types/modules/plugins/toaster/ToasterHandler.d.ts +0 -32
- package/types/modules/plugins/toaster/index.d.ts +0 -9
- package/types/modules/plugins/wait/index.d.ts +0 -14
- package/types/resolvers/index.d.ts +0 -3
- package/types/resolvers/unplugin-directives-resolver.d.ts +0 -8
- package/types/resolvers/unplugin-modules-resolver.d.ts +0 -2
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +0 -8
- package/types/tailwindcss/tailwind.config.d.ts +0 -121
- package/types/tailwindcss/utils/colors.d.ts +0 -1
- package/types/utils/index.d.ts +0 -3
- /package/{components → dist}/assets/MazDropdown.CtzsOmDR.css +0 -0
- /package/{components → dist}/assets/MazDropzone.EfEdDH2u.css +0 -0
- /package/{components → dist}/assets/MazSwitch.DMLND-p2.css +0 -0
- /package/{components/chunks/_plugin-vue_export-helper.CHgC5LLL.mjs → dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js} +0 -0
- /package/{components/chunks/examples.mobile.json.tW3aL0qI.mjs → dist/chunks/examples.mobile.json.tW3aL0qI.js} +0 -0
- /package/{components/chunks/no-photography.BJX8HSus.mjs → dist/chunks/no-photography.BJX8HSus.js} +0 -0
- /package/{components/MazPhoneNumberInput → dist/types/components/MazInputPhoneNumber}/default-locales.d.ts +0 -0
- /package/{components → dist/types/components}/MazPicker/types.d.ts +0 -0
- /package/{components → dist/types/components}/MazSlider/utils.d.ts +0 -0
- /package/{components → dist/types/components}/MazTextarea/textarea-autogrow.d.ts +0 -0
- /package/{types/modules/directives/v-zoom-img → dist/types/directives/vZoomImg}/style.d.ts +0 -0
- /package/{types/modules/directives/v-zoom-img → dist/types/directives/vZoomImg}/svgs.d.ts +0 -0
- /package/{types/modules → dist/types}/filters/capitalize.d.ts +0 -0
- /package/{types/modules → dist/types}/filters/currency.d.ts +0 -0
- /package/{types/modules → dist/types}/filters/date.d.ts +0 -0
- /package/{types/modules → dist/types}/filters/number.d.ts +0 -0
- /package/{types/modules → dist/types}/filters/telephone.d.ts +0 -0
- /package/{types/modules → dist/types}/helpers/checkAvailability.d.ts +0 -0
- /package/{types/modules/helpers/country-code-to-unicode-flag.d.ts → dist/types/helpers/countryCodeToUnicodeFlag.d.ts} +0 -0
- /package/{types/modules → dist/types}/helpers/debounce.d.ts +0 -0
- /package/{types/modules/helpers/debounce-callback.d.ts → dist/types/helpers/debounceCallback.d.ts} +0 -0
- /package/{types/modules/helpers/debounce-id.d.ts → dist/types/helpers/debounceId.d.ts} +0 -0
- /package/{types/modules/helpers/is-client.d.ts → dist/types/helpers/isClient.d.ts} +0 -0
- /package/{types/modules/helpers/is-equal.d.ts → dist/types/helpers/isEqual.d.ts} +0 -0
- /package/{types/modules/helpers/normalize-string.d.ts → dist/types/helpers/normalizeString.d.ts} +0 -0
- /package/{types/modules/helpers/script-loader.d.ts → dist/types/helpers/scriptLoader.d.ts} +0 -0
- /package/{types/modules → dist/types}/helpers/sleep.d.ts +0 -0
- /package/{types/modules/helpers/swipe-handler.d.ts → dist/types/helpers/swipeHandler.d.ts} +0 -0
- /package/{types/modules → dist/types}/helpers/throttle.d.ts +0 -0
- /package/{types/modules/helpers/throttle-id.d.ts → dist/types/helpers/throttleId.d.ts} +0 -0
- /package/{types/modules/helpers/truthy-filter.d.ts → dist/types/helpers/truthyFilter.d.ts} +0 -0
- /package/{types/modules/helpers/user-visibility → dist/types/helpers/userVisibility}/types.d.ts +0 -0
- /package/{types/modules → dist/types}/plugins/index.d.ts +0 -0
- /package/{types/modules → dist/types}/plugins/toaster/types.d.ts +0 -0
- /package/{types/modules → dist/types}/plugins/wait/utils.d.ts +0 -0
- /package/{types → dist/types}/tailwindcss/variables/breakpoints.d.ts +0 -0
- /package/{types → dist/types}/tailwindcss/variables/colors.d.ts +0 -0
- /package/{types → dist/types}/tailwindcss/variables/utilities.d.ts +0 -0
- /package/{types → dist/types}/tailwindcss/variables/z-indexes.d.ts +0 -0
|
@@ -1,3762 +0,0 @@
|
|
|
1
|
-
import '../assets/index.B3s7AfaL.css';var $t = Object.defineProperty;
|
|
2
|
-
var Vt = (s, e, t) => e in s ? $t(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
-
var c = (s, e, t) => Vt(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { inject as rt, ref as b, onMounted as ce, onUnmounted as at, computed as h, toValue as ge, nextTick as le, getCurrentInstance as Ht, watch as G, provide as Bt, useId as Nt, onBeforeUnmount as lt, createVNode as ee, render as Ie, defineComponent as be, defineAsyncComponent as H, reactive as Ft, openBlock as A, createElementBlock as U, withModifiers as Z, withKeys as jt, unref as O, createCommentVNode as B, createElementVNode as V, normalizeClass as ue, withDirectives as ut, vShow as ct, createBlock as N, Teleport as qt, Transition as dt, withCtx as q, mergeProps as te, renderSlot as R, useAttrs as Ut, useSlots as Wt, createTextVNode as J, toDisplayString as X, Fragment as Ze, renderList as Rt, resolveDynamicComponent as _t, normalizeStyle as Kt } from "vue";
|
|
5
|
-
function Pe(s, e) {
|
|
6
|
-
const t = rt(s, e);
|
|
7
|
-
if (!t)
|
|
8
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s.toString()}`);
|
|
9
|
-
return t;
|
|
10
|
-
}
|
|
11
|
-
function Wn() {
|
|
12
|
-
return Pe("aos");
|
|
13
|
-
}
|
|
14
|
-
function Yt(s) {
|
|
15
|
-
const e = {};
|
|
16
|
-
for (const [t, n] of Object.entries(s))
|
|
17
|
-
e[t] = Number.parseInt(n, 10);
|
|
18
|
-
return e;
|
|
19
|
-
}
|
|
20
|
-
function F() {
|
|
21
|
-
return typeof document < "u";
|
|
22
|
-
}
|
|
23
|
-
function Zt(s = {}) {
|
|
24
|
-
const {
|
|
25
|
-
internalWindow: e = F() ? window : void 0,
|
|
26
|
-
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
27
|
-
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
28
|
-
includeScrollbar: o = !0
|
|
29
|
-
} = s, i = b(t), r = b(n);
|
|
30
|
-
function a() {
|
|
31
|
-
e && (o ? (i.value = e.innerWidth, r.value = e.innerHeight) : (i.value = e.document.documentElement.clientWidth, r.value = e.document.documentElement.clientHeight));
|
|
32
|
-
}
|
|
33
|
-
return a(), ce(() => {
|
|
34
|
-
e && window.addEventListener("resize", a, { passive: !0 });
|
|
35
|
-
}), at(() => {
|
|
36
|
-
e && window.removeEventListener("resize", a);
|
|
37
|
-
}), { width: i, height: r };
|
|
38
|
-
}
|
|
39
|
-
function Rn({
|
|
40
|
-
initialWidth: s = 0,
|
|
41
|
-
initialHeight: e,
|
|
42
|
-
includeScrollbar: t,
|
|
43
|
-
internalWindow: n,
|
|
44
|
-
listenOrientation: o,
|
|
45
|
-
breakpoints: i,
|
|
46
|
-
mediumBreakPoint: r = "md",
|
|
47
|
-
largeBreakPoint: a = "lg"
|
|
48
|
-
}) {
|
|
49
|
-
const { width: l } = Zt({
|
|
50
|
-
initialWidth: s,
|
|
51
|
-
// (SSR) mobile first
|
|
52
|
-
initialHeight: e,
|
|
53
|
-
includeScrollbar: t,
|
|
54
|
-
internalWindow: n,
|
|
55
|
-
listenOrientation: o
|
|
56
|
-
}), u = Yt(i), y = h(() => l.value >= u[a]), T = h(
|
|
57
|
-
() => l.value >= u[r] && l.value < u[a]
|
|
58
|
-
), w = h(() => l.value >= 0 && l.value < u[r]);
|
|
59
|
-
return {
|
|
60
|
-
width: l,
|
|
61
|
-
numericBreakpoints: u,
|
|
62
|
-
isSmallScreen: w,
|
|
63
|
-
isLargeScreen: y,
|
|
64
|
-
isMediumScreen: T,
|
|
65
|
-
breakpoints: i
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function _n() {
|
|
69
|
-
return Pe("dialog");
|
|
70
|
-
}
|
|
71
|
-
function mt(s, e, t) {
|
|
72
|
-
const n = {
|
|
73
|
-
maxAttempts: 20,
|
|
74
|
-
interval: 100,
|
|
75
|
-
...t
|
|
76
|
-
};
|
|
77
|
-
let o = 0;
|
|
78
|
-
function i() {
|
|
79
|
-
const r = s();
|
|
80
|
-
r != null ? n.expectedValue !== void 0 && r !== n.expectedValue ? o < n.maxAttempts ? (o++, setTimeout(i, n.interval)) : console.warn(n.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${n.maxAttempts} attempts for ref ${r}`) : e(r) : o < n.maxAttempts ? (o++, setTimeout(i, n.interval)) : console.warn(n.errorMessage || `[maz-ui](checkAvailability) Nothing found or expected value after ${n.maxAttempts} attempts for ref ${r}`);
|
|
81
|
-
}
|
|
82
|
-
i();
|
|
83
|
-
}
|
|
84
|
-
function ft(s) {
|
|
85
|
-
const e = ge(s);
|
|
86
|
-
return Array.isArray(e) ? Object.freeze([...e]) : typeof e == "object" && e !== null ? Object.freeze({ ...e }) : e;
|
|
87
|
-
}
|
|
88
|
-
function Xe(s) {
|
|
89
|
-
return s == null || typeof s == "string" || typeof s == "number" || typeof s == "boolean" || typeof s == "symbol" || typeof s == "bigint";
|
|
90
|
-
}
|
|
91
|
-
function Xt(s, e) {
|
|
92
|
-
if (s.length !== e.length)
|
|
93
|
-
return !1;
|
|
94
|
-
for (const [t, n] of s.entries())
|
|
95
|
-
if (!we(n, e[t]))
|
|
96
|
-
return !1;
|
|
97
|
-
return !0;
|
|
98
|
-
}
|
|
99
|
-
function Gt(s, e) {
|
|
100
|
-
const t = Object.keys(s), n = Object.keys(e);
|
|
101
|
-
if (t.length !== n.length)
|
|
102
|
-
return !1;
|
|
103
|
-
for (const o of t)
|
|
104
|
-
if (!n.includes(o) || !we(s[o], e[o]))
|
|
105
|
-
return !1;
|
|
106
|
-
return !0;
|
|
107
|
-
}
|
|
108
|
-
function we(s, e) {
|
|
109
|
-
return Xe(s) || Xe(e) ? s === e : s instanceof Date && e instanceof Date ? s.getTime() === e.getTime() : typeof s != typeof e || Array.isArray(s) !== Array.isArray(e) ? !1 : Array.isArray(s) && Array.isArray(e) ? Xt(s, e) : typeof s == "object" && typeof e == "object" ? Gt(s, e) : !1;
|
|
110
|
-
}
|
|
111
|
-
function Qt(s, e, t) {
|
|
112
|
-
const n = {};
|
|
113
|
-
return function(...o) {
|
|
114
|
-
n[s] || (n[s] = { timer: null, promise: null });
|
|
115
|
-
const i = n[s];
|
|
116
|
-
return i.timer && clearTimeout(i.timer), i.promise = new Promise((r, a) => {
|
|
117
|
-
i.timer = setTimeout(async () => {
|
|
118
|
-
try {
|
|
119
|
-
r(await e(...o));
|
|
120
|
-
} catch (l) {
|
|
121
|
-
a(l);
|
|
122
|
-
} finally {
|
|
123
|
-
delete n[s];
|
|
124
|
-
}
|
|
125
|
-
}, t);
|
|
126
|
-
}), i.promise;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function Jt(s, e, t) {
|
|
130
|
-
const n = {};
|
|
131
|
-
return async (...o) => {
|
|
132
|
-
const i = Date.now();
|
|
133
|
-
return n[s] || (n[s] = { promise: null, lastCall: 0, lastArgs: [] }), i - n[s].lastCall >= t ? (n[s].lastCall = i, e(...o)) : (n[s].lastArgs = o, n[s].promise || (n[s].promise = new Promise((r) => {
|
|
134
|
-
setTimeout(
|
|
135
|
-
async () => {
|
|
136
|
-
n[s].lastCall = Date.now();
|
|
137
|
-
const a = await e(...n[s].lastArgs);
|
|
138
|
-
n[s].promise = null, r(a);
|
|
139
|
-
},
|
|
140
|
-
t - (i - n[s].lastCall)
|
|
141
|
-
);
|
|
142
|
-
})), n[s].promise);
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
const se = {
|
|
146
|
-
mode: "lazy",
|
|
147
|
-
scrollToErrorSelector: ".has-field-error",
|
|
148
|
-
debounceTime: 300,
|
|
149
|
-
throttleTime: 1e3
|
|
150
|
-
};
|
|
151
|
-
function ht(s, e) {
|
|
152
|
-
return Object.keys(e).includes(s);
|
|
153
|
-
}
|
|
154
|
-
function Ge(s = se.scrollToErrorSelector) {
|
|
155
|
-
const e = document.querySelector(s);
|
|
156
|
-
e && e.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
157
|
-
}
|
|
158
|
-
function es(s, e) {
|
|
159
|
-
const t = {};
|
|
160
|
-
for (const [n, o] of Object.entries(s)) {
|
|
161
|
-
const i = o;
|
|
162
|
-
t[n] = e[n].error && i[0] ? i[0].message : void 0;
|
|
163
|
-
}
|
|
164
|
-
return t;
|
|
165
|
-
}
|
|
166
|
-
function Re(s) {
|
|
167
|
-
return s == null || s === "";
|
|
168
|
-
}
|
|
169
|
-
function ts({
|
|
170
|
-
name: s,
|
|
171
|
-
hasValidation: e,
|
|
172
|
-
debouncedFields: t,
|
|
173
|
-
throttledFields: n
|
|
174
|
-
}) {
|
|
175
|
-
if (!e)
|
|
176
|
-
return;
|
|
177
|
-
const o = String(s);
|
|
178
|
-
if (t != null && t[o] && (n != null && n[o]))
|
|
179
|
-
throw new Error(`The field "${o}" cannot be both debounced and throttled`);
|
|
180
|
-
return t != null && t[o] ? Qt(
|
|
181
|
-
o,
|
|
182
|
-
ye,
|
|
183
|
-
typeof t[o] == "number" ? t[o] : se.debounceTime
|
|
184
|
-
) : n != null && n[o] ? Jt(
|
|
185
|
-
o,
|
|
186
|
-
ye,
|
|
187
|
-
typeof n[o] == "number" ? n[o] : se.throttleTime
|
|
188
|
-
) : ye;
|
|
189
|
-
}
|
|
190
|
-
function vt({
|
|
191
|
-
name: s,
|
|
192
|
-
schema: e,
|
|
193
|
-
initialValue: t,
|
|
194
|
-
fieldState: n,
|
|
195
|
-
options: o
|
|
196
|
-
}) {
|
|
197
|
-
const i = e ? ht(s, e) : !1, r = ts({
|
|
198
|
-
name: s,
|
|
199
|
-
hasValidation: i,
|
|
200
|
-
debouncedFields: o == null ? void 0 : o.debouncedFields,
|
|
201
|
-
throttledFields: o == null ? void 0 : o.throttledFields
|
|
202
|
-
});
|
|
203
|
-
return {
|
|
204
|
-
blurred: !1,
|
|
205
|
-
dirty: !1,
|
|
206
|
-
errors: [],
|
|
207
|
-
error: !1,
|
|
208
|
-
valid: !i,
|
|
209
|
-
validating: !1,
|
|
210
|
-
validated: !1,
|
|
211
|
-
initialValue: ft(t),
|
|
212
|
-
validateFunction: r,
|
|
213
|
-
mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? se.mode : void 0
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function ss({
|
|
217
|
-
schema: s,
|
|
218
|
-
payload: e,
|
|
219
|
-
options: t
|
|
220
|
-
}) {
|
|
221
|
-
const n = {};
|
|
222
|
-
for (const o in s) {
|
|
223
|
-
const i = o;
|
|
224
|
-
n[i] = vt({
|
|
225
|
-
name: i,
|
|
226
|
-
schema: s,
|
|
227
|
-
options: t,
|
|
228
|
-
fieldState: n[i],
|
|
229
|
-
initialValue: e == null ? void 0 : e[i]
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
return n;
|
|
233
|
-
}
|
|
234
|
-
function ns({
|
|
235
|
-
fieldsStates: s,
|
|
236
|
-
payload: e,
|
|
237
|
-
schema: t,
|
|
238
|
-
options: n,
|
|
239
|
-
updateMode: o = !1
|
|
240
|
-
}) {
|
|
241
|
-
for (const i in t) {
|
|
242
|
-
const r = i;
|
|
243
|
-
s[r] = pt({
|
|
244
|
-
name: r,
|
|
245
|
-
fieldState: s[r],
|
|
246
|
-
payload: e,
|
|
247
|
-
schema: t,
|
|
248
|
-
options: n,
|
|
249
|
-
updateMode: o
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
function pt({
|
|
254
|
-
name: s,
|
|
255
|
-
fieldState: e,
|
|
256
|
-
payload: t,
|
|
257
|
-
schema: n,
|
|
258
|
-
options: o,
|
|
259
|
-
updateMode: i = !0
|
|
260
|
-
}) {
|
|
261
|
-
const { initialValue: r, mode: a, ...l } = vt({
|
|
262
|
-
name: s,
|
|
263
|
-
schema: n,
|
|
264
|
-
initialValue: o.defaultValue ?? t[s],
|
|
265
|
-
fieldState: e,
|
|
266
|
-
options: o
|
|
267
|
-
}), u = i ? a ?? e.mode ?? se.mode : e.mode;
|
|
268
|
-
return {
|
|
269
|
-
...e,
|
|
270
|
-
initialValue: r,
|
|
271
|
-
mode: u,
|
|
272
|
-
...e != null && e.mode && u !== e.mode ? l : {}
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
function os(s) {
|
|
276
|
-
const e = {};
|
|
277
|
-
for (const [t, { errors: n }] of Object.entries(s))
|
|
278
|
-
e[t] = n;
|
|
279
|
-
return e;
|
|
280
|
-
}
|
|
281
|
-
function is(s) {
|
|
282
|
-
return s instanceof HTMLInputElement || s instanceof HTMLSelectElement || s instanceof HTMLTextAreaElement ? [s] : s.querySelectorAll(
|
|
283
|
-
"input, select, textarea"
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
function rs({
|
|
287
|
-
interactiveElements: s,
|
|
288
|
-
onBlur: e,
|
|
289
|
-
mode: t
|
|
290
|
-
}) {
|
|
291
|
-
s.forEach((n) => {
|
|
292
|
-
Ee(["eager", "blur", "progressive"], t) && n.addEventListener("blur", e);
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function as({
|
|
296
|
-
interactiveElements: s,
|
|
297
|
-
onBlur: e
|
|
298
|
-
}) {
|
|
299
|
-
s.forEach((t) => {
|
|
300
|
-
t.removeEventListener("blur", e);
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
async function ls(s, e, t) {
|
|
304
|
-
const n = await hs(e), i = await (await bt("safeParseAsync"))(n.entries[s], t ?? "");
|
|
305
|
-
return {
|
|
306
|
-
result: i,
|
|
307
|
-
isValid: i.success
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
async function ye({
|
|
311
|
-
name: s,
|
|
312
|
-
fieldState: e,
|
|
313
|
-
schema: t,
|
|
314
|
-
payload: n,
|
|
315
|
-
setError: o = !0,
|
|
316
|
-
setErrorIfInvalidAndNotEmpty: i = !1
|
|
317
|
-
}) {
|
|
318
|
-
if (await le(), e.validating = !0, !t[s]) {
|
|
319
|
-
e.valid = !0, e.validating = !1, e.validated = !0, e.errors = [], e.error = !1;
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
const { result: r, isValid: a } = await ls(s, t, n[s]);
|
|
323
|
-
e.valid = a, (o || i && !a && !Re(n[s])) && (e.error = !a), e.errors = r.issues ?? [], e.validating = !1, e.validated = !0;
|
|
324
|
-
}
|
|
325
|
-
function gt({
|
|
326
|
-
name: s,
|
|
327
|
-
fieldState: e,
|
|
328
|
-
payload: t,
|
|
329
|
-
schema: n
|
|
330
|
-
}) {
|
|
331
|
-
var i;
|
|
332
|
-
const o = {
|
|
333
|
-
name: s,
|
|
334
|
-
fieldState: e,
|
|
335
|
-
payload: t,
|
|
336
|
-
schema: n,
|
|
337
|
-
setError: e.mode === "progressive" ? e.valid || e.blurred : !0
|
|
338
|
-
};
|
|
339
|
-
return (i = e.validateFunction) == null ? void 0 : i.call(e, o);
|
|
340
|
-
}
|
|
341
|
-
function us({
|
|
342
|
-
fieldsStates: s,
|
|
343
|
-
payload: e,
|
|
344
|
-
showErrors: t = !0,
|
|
345
|
-
schema: n
|
|
346
|
-
}) {
|
|
347
|
-
return Promise.all(
|
|
348
|
-
Object.keys(s).map(
|
|
349
|
-
(o) => ye({
|
|
350
|
-
name: o,
|
|
351
|
-
setError: t,
|
|
352
|
-
fieldState: s[o],
|
|
353
|
-
payload: e,
|
|
354
|
-
schema: n,
|
|
355
|
-
setErrorIfInvalidAndNotEmpty: s[o].mode === "lazy"
|
|
356
|
-
})
|
|
357
|
-
)
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
function yt({
|
|
361
|
-
eventName: s,
|
|
362
|
-
fieldState: e,
|
|
363
|
-
isSubmitted: t
|
|
364
|
-
}) {
|
|
365
|
-
const { dirty: n, blurred: o, mode: i, valid: r } = e;
|
|
366
|
-
return s === "blur" && (Ee(["lazy", "aggressive"], i) || r) || s === "input" && i === "blur" || !i ? !1 : t || i === "eager" && o || i === "blur" && o || i === "aggressive" && n || i === "lazy" && n || i === "progressive";
|
|
367
|
-
}
|
|
368
|
-
function cs({
|
|
369
|
-
name: s,
|
|
370
|
-
force: e = !1,
|
|
371
|
-
payload: t,
|
|
372
|
-
fieldState: n,
|
|
373
|
-
schema: o,
|
|
374
|
-
isSubmitted: i
|
|
375
|
-
}) {
|
|
376
|
-
const r = t[s], a = !Re(r) && !we(r, n.initialValue);
|
|
377
|
-
if (n.dirty = a, n.blurred = n.blurred || (n.mode === "eager" ? a : !0), !!(e || yt({ eventName: "blur", fieldState: n, isSubmitted: i })))
|
|
378
|
-
return gt({
|
|
379
|
-
name: s,
|
|
380
|
-
fieldState: n,
|
|
381
|
-
schema: o,
|
|
382
|
-
payload: t
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
function ds({
|
|
386
|
-
name: s,
|
|
387
|
-
payload: e,
|
|
388
|
-
fieldState: t,
|
|
389
|
-
schema: n,
|
|
390
|
-
isSubmitted: o,
|
|
391
|
-
forceValidation: i = !1
|
|
392
|
-
}) {
|
|
393
|
-
const r = e[s];
|
|
394
|
-
t.validated = !1;
|
|
395
|
-
const a = !Re(r) && !we(r, t.initialValue);
|
|
396
|
-
if (t.dirty = a, !!(i || yt({ eventName: "input", fieldState: t, isSubmitted: o })))
|
|
397
|
-
return gt({
|
|
398
|
-
name: s,
|
|
399
|
-
fieldState: t,
|
|
400
|
-
schema: n,
|
|
401
|
-
payload: e
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
function _e(s) {
|
|
405
|
-
const e = Ht();
|
|
406
|
-
if (!e)
|
|
407
|
-
throw new Error(`${s} must be called within setup()`);
|
|
408
|
-
return e;
|
|
409
|
-
}
|
|
410
|
-
function ms(s, e) {
|
|
411
|
-
var o;
|
|
412
|
-
const n = ((o = _e(e).formContexts) == null ? void 0 : o.get(s)) ?? rt(s);
|
|
413
|
-
if (!n)
|
|
414
|
-
throw new Error("useFormField must be used within a form (useFormValidator)");
|
|
415
|
-
return n;
|
|
416
|
-
}
|
|
417
|
-
function fs({
|
|
418
|
-
ref: s,
|
|
419
|
-
fieldState: e,
|
|
420
|
-
onBlur: t
|
|
421
|
-
}) {
|
|
422
|
-
if (!(s || Ee(["aggressive", "lazy"], e.mode)))
|
|
423
|
-
return {
|
|
424
|
-
onBlur: t
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
const Ne = {};
|
|
428
|
-
async function bt(s) {
|
|
429
|
-
if (Ne[s])
|
|
430
|
-
return Ne[s];
|
|
431
|
-
const e = await import("./index.BgyjI1q8.mjs");
|
|
432
|
-
return Ne[s] = e[s], e[s];
|
|
433
|
-
}
|
|
434
|
-
async function hs(s) {
|
|
435
|
-
return (await bt("objectAsync"))(s);
|
|
436
|
-
}
|
|
437
|
-
function Ee(s, e) {
|
|
438
|
-
return e ? s.includes(e) : !1;
|
|
439
|
-
}
|
|
440
|
-
function Kn(s, e) {
|
|
441
|
-
const t = {
|
|
442
|
-
formIdentifier: "main-form-validator",
|
|
443
|
-
...e
|
|
444
|
-
}, {
|
|
445
|
-
fieldsStates: n,
|
|
446
|
-
payload: o,
|
|
447
|
-
options: i,
|
|
448
|
-
internalSchema: r,
|
|
449
|
-
errorMessages: a,
|
|
450
|
-
isSubmitted: l
|
|
451
|
-
} = ms(t.formIdentifier, "useFormField"), u = ht(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
|
|
452
|
-
t.mode = u;
|
|
453
|
-
const y = h(() => n.value[s]);
|
|
454
|
-
if (n.value[s] = pt({
|
|
455
|
-
name: s,
|
|
456
|
-
fieldState: y.value,
|
|
457
|
-
payload: o.value,
|
|
458
|
-
schema: r.value,
|
|
459
|
-
options: { ...i, ...t }
|
|
460
|
-
}), t.defaultValue !== void 0 && !we(o.value[s], t.defaultValue)) {
|
|
461
|
-
const f = t.defaultValue;
|
|
462
|
-
o.value[s] = f, n.value[s].initialValue = ft(f);
|
|
463
|
-
}
|
|
464
|
-
u && ye({
|
|
465
|
-
name: s,
|
|
466
|
-
fieldState: y.value,
|
|
467
|
-
payload: o.value,
|
|
468
|
-
schema: r.value,
|
|
469
|
-
setError: u === "aggressive",
|
|
470
|
-
setErrorIfInvalidAndNotEmpty: u === "lazy"
|
|
471
|
-
});
|
|
472
|
-
function T() {
|
|
473
|
-
cs({
|
|
474
|
-
name: s,
|
|
475
|
-
fieldState: y.value,
|
|
476
|
-
payload: o.value,
|
|
477
|
-
schema: r.value,
|
|
478
|
-
isSubmitted: l.value
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
const w = h(
|
|
482
|
-
() => fs({
|
|
483
|
-
ref: t.ref,
|
|
484
|
-
onBlur: T,
|
|
485
|
-
fieldState: y.value
|
|
486
|
-
})
|
|
487
|
-
);
|
|
488
|
-
if (t.ref && Ee(["eager", "blur", "progressive"], u)) {
|
|
489
|
-
let f = [];
|
|
490
|
-
const k = (z) => {
|
|
491
|
-
f = is(z), rs({
|
|
492
|
-
interactiveElements: f,
|
|
493
|
-
onBlur: T,
|
|
494
|
-
mode: u
|
|
495
|
-
});
|
|
496
|
-
};
|
|
497
|
-
ce(() => {
|
|
498
|
-
const z = _e(`useFormField of ${s}`);
|
|
499
|
-
mt(() => z.refs[t.ref], (m) => {
|
|
500
|
-
const d = m instanceof HTMLElement ? m : m == null ? void 0 : m.$el;
|
|
501
|
-
d && k(d);
|
|
502
|
-
}, {
|
|
503
|
-
errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
|
|
504
|
-
});
|
|
505
|
-
}), at(() => {
|
|
506
|
-
as({
|
|
507
|
-
interactiveElements: f,
|
|
508
|
-
onBlur: T
|
|
509
|
-
});
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
return {
|
|
513
|
-
hasError: h(() => y.value.error),
|
|
514
|
-
errors: h(() => y.value.errors),
|
|
515
|
-
errorMessage: h(() => a.value[s]),
|
|
516
|
-
isValid: h(() => y.value.valid),
|
|
517
|
-
isDirty: h(() => y.value.dirty),
|
|
518
|
-
isBlurred: h(() => y.value.blurred),
|
|
519
|
-
isValidated: h(() => y.value.validated),
|
|
520
|
-
isValidating: h(() => y.value.validating),
|
|
521
|
-
mode: h(() => y.value.mode),
|
|
522
|
-
value: h({
|
|
523
|
-
get: () => o.value[s],
|
|
524
|
-
set: (f) => o.value[s] = f
|
|
525
|
-
}),
|
|
526
|
-
validationEvents: w,
|
|
527
|
-
onBlur: T
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function Yn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
531
|
-
const o = _e("useFormValidator"), i = {
|
|
532
|
-
mode: se.mode,
|
|
533
|
-
scrollToError: se.scrollToErrorSelector,
|
|
534
|
-
debouncedFields: null,
|
|
535
|
-
throttledFields: null,
|
|
536
|
-
identifier: "main-form-validator",
|
|
537
|
-
...n
|
|
538
|
-
}, r = b(e), a = b({ ...r.value, ...t == null ? void 0 : t.value }), l = b(s), u = b(
|
|
539
|
-
ss({
|
|
540
|
-
schema: l.value,
|
|
541
|
-
payload: a.value,
|
|
542
|
-
options: i
|
|
543
|
-
})
|
|
544
|
-
), y = b(!1), T = b(!1), w = h(() => Object.values(u.value).every(({ valid: L }) => L)), f = h(() => Object.values(u.value).some(({ dirty: L }) => L)), k = h(() => os(u.value)), z = h(() => es(k.value, u.value));
|
|
545
|
-
t && G(
|
|
546
|
-
a,
|
|
547
|
-
(L) => {
|
|
548
|
-
t.value = { ...r.value, ...L };
|
|
549
|
-
},
|
|
550
|
-
{ deep: !0 }
|
|
551
|
-
), G(
|
|
552
|
-
r,
|
|
553
|
-
(L) => {
|
|
554
|
-
a.value = { ...L, ...a.value };
|
|
555
|
-
},
|
|
556
|
-
{ deep: !0 }
|
|
557
|
-
), G(
|
|
558
|
-
l,
|
|
559
|
-
(L) => {
|
|
560
|
-
ns({
|
|
561
|
-
schema: L,
|
|
562
|
-
fieldsStates: u.value,
|
|
563
|
-
payload: a.value,
|
|
564
|
-
options: i
|
|
565
|
-
}), m();
|
|
566
|
-
},
|
|
567
|
-
{ deep: !0 }
|
|
568
|
-
), m();
|
|
569
|
-
function m(L = i.mode === "aggressive") {
|
|
570
|
-
return us({
|
|
571
|
-
fieldsStates: u.value,
|
|
572
|
-
payload: a.value,
|
|
573
|
-
schema: l.value,
|
|
574
|
-
showErrors: L
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
const d = [];
|
|
578
|
-
async function C(L) {
|
|
579
|
-
await le();
|
|
580
|
-
const P = G(
|
|
581
|
-
() => a.value[L],
|
|
582
|
-
() => {
|
|
583
|
-
const j = u.value[L];
|
|
584
|
-
ds({
|
|
585
|
-
name: L,
|
|
586
|
-
fieldState: j,
|
|
587
|
-
payload: a.value,
|
|
588
|
-
schema: l.value,
|
|
589
|
-
isSubmitted: T.value,
|
|
590
|
-
forceValidation: Ee(["aggressive", "lazy", "progressive"], j.mode)
|
|
591
|
-
});
|
|
592
|
-
},
|
|
593
|
-
{ deep: typeof l.value[L] == "object" }
|
|
594
|
-
);
|
|
595
|
-
d.push(P);
|
|
596
|
-
}
|
|
597
|
-
function p() {
|
|
598
|
-
for (const L of d)
|
|
599
|
-
L();
|
|
600
|
-
for (const L of Object.keys(l.value))
|
|
601
|
-
C(L);
|
|
602
|
-
}
|
|
603
|
-
function S(L, P) {
|
|
604
|
-
return async (j) => {
|
|
605
|
-
if (j == null || j.preventDefault(), !y.value) {
|
|
606
|
-
T.value = !0, y.value = !0;
|
|
607
|
-
try {
|
|
608
|
-
await m(!0);
|
|
609
|
-
const ne = typeof P == "string" ? P : i.scrollToError;
|
|
610
|
-
let Q;
|
|
611
|
-
return w.value ? Q = await L(a.value) : typeof ne != "boolean" && Ge(ne), y.value = !1, Q;
|
|
612
|
-
} finally {
|
|
613
|
-
y.value = !1;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
const D = {
|
|
619
|
-
fieldsStates: u,
|
|
620
|
-
payload: a,
|
|
621
|
-
options: i,
|
|
622
|
-
internalSchema: l,
|
|
623
|
-
errorMessages: z,
|
|
624
|
-
isSubmitted: T
|
|
625
|
-
};
|
|
626
|
-
return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier, D), Bt(i.identifier, D), p(), {
|
|
627
|
-
identifier: i.identifier,
|
|
628
|
-
isDirty: f,
|
|
629
|
-
isSubmitting: y,
|
|
630
|
-
isSubmitted: T,
|
|
631
|
-
isValid: w,
|
|
632
|
-
errors: k,
|
|
633
|
-
model: a,
|
|
634
|
-
fieldsStates: u,
|
|
635
|
-
validateForm: m,
|
|
636
|
-
scrollToError: Ge,
|
|
637
|
-
handleSubmit: S,
|
|
638
|
-
errorMessages: z
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
class vs {
|
|
642
|
-
constructor(e, t) {
|
|
643
|
-
c(this, "defaultOptions", {
|
|
644
|
-
element: void 0,
|
|
645
|
-
timeout: 60 * 1e3 * 5,
|
|
646
|
-
// 5 minutes
|
|
647
|
-
once: !1,
|
|
648
|
-
immediate: !0
|
|
649
|
-
});
|
|
650
|
-
c(this, "options");
|
|
651
|
-
c(this, "timeoutHandler");
|
|
652
|
-
c(this, "isIdle", !1);
|
|
653
|
-
c(this, "isDestroy", !1);
|
|
654
|
-
c(this, "startTime", 0);
|
|
655
|
-
c(this, "remainingTime", 0);
|
|
656
|
-
c(this, "lastClientX", -1);
|
|
657
|
-
c(this, "lastClientY", -1);
|
|
658
|
-
c(this, "eventNames", [
|
|
659
|
-
"DOMMouseScroll",
|
|
660
|
-
"mousedown",
|
|
661
|
-
"mousemove",
|
|
662
|
-
"mousewheel",
|
|
663
|
-
"MSPointerDown",
|
|
664
|
-
"MSPointerMove",
|
|
665
|
-
"keydown",
|
|
666
|
-
"touchmove",
|
|
667
|
-
"touchstart",
|
|
668
|
-
"wheel",
|
|
669
|
-
"click"
|
|
670
|
-
]);
|
|
671
|
-
c(this, "handleEvent", (e) => {
|
|
672
|
-
try {
|
|
673
|
-
if (this.remainingTime > 0)
|
|
674
|
-
return;
|
|
675
|
-
if (e.type === "mousemove") {
|
|
676
|
-
const { clientX: t, clientY: n } = e;
|
|
677
|
-
if (t === void 0 && n === void 0 || t === this.lastClientX && n === this.lastClientY)
|
|
678
|
-
return;
|
|
679
|
-
this.lastClientX = t, this.lastClientY = n;
|
|
680
|
-
}
|
|
681
|
-
this.resetTimeout(), this.callback({ isIdle: this.isIdle, eventType: e.type, instance: this });
|
|
682
|
-
} catch (t) {
|
|
683
|
-
throw new Error(`[IdleTimeout](handleEvent) ${t}`);
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
this.callback = e, this.options = {
|
|
687
|
-
...this.defaultOptions,
|
|
688
|
-
...t
|
|
689
|
-
}, F() && this.start();
|
|
690
|
-
}
|
|
691
|
-
get element() {
|
|
692
|
-
return this.options.element ?? document.body;
|
|
693
|
-
}
|
|
694
|
-
start() {
|
|
695
|
-
if (!F()) {
|
|
696
|
-
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
697
|
-
return;
|
|
698
|
-
}
|
|
699
|
-
for (const e of this.eventNames)
|
|
700
|
-
this.element.addEventListener(e, this.handleEvent);
|
|
701
|
-
this.resetTimeout(), this.options.immediate && this.callback({ isIdle: !1, instance: this });
|
|
702
|
-
}
|
|
703
|
-
pause() {
|
|
704
|
-
const e = this.startTime + this.options.timeout - Date.now();
|
|
705
|
-
e <= 0 || (this.remainingTime = e, this.timeoutHandler && (clearTimeout(this.timeoutHandler), this.timeoutHandler = void 0));
|
|
706
|
-
}
|
|
707
|
-
resume() {
|
|
708
|
-
this.remainingTime <= 0 || (this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this }), this.remainingTime = 0);
|
|
709
|
-
}
|
|
710
|
-
reset() {
|
|
711
|
-
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
712
|
-
}
|
|
713
|
-
destroy() {
|
|
714
|
-
if (!F()) {
|
|
715
|
-
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
this.isDestroy = !0;
|
|
719
|
-
for (const e of this.eventNames)
|
|
720
|
-
this.element.removeEventListener(e, this.handleEvent);
|
|
721
|
-
this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
722
|
-
}
|
|
723
|
-
resetTimeout() {
|
|
724
|
-
this.isIdle = !1, this.timeoutHandler && (clearTimeout(this.timeoutHandler), this.timeoutHandler = void 0), this.timeoutHandler = setTimeout(
|
|
725
|
-
this.handleTimeout.bind(this),
|
|
726
|
-
this.remainingTime || this.options.timeout
|
|
727
|
-
), this.startTime = Date.now();
|
|
728
|
-
}
|
|
729
|
-
handleTimeout() {
|
|
730
|
-
this.isIdle = !0, this.callback({ isIdle: this.isIdle, instance: this }), this.options.once && this.destroy();
|
|
731
|
-
}
|
|
732
|
-
get destroyed() {
|
|
733
|
-
return this.isDestroy;
|
|
734
|
-
}
|
|
735
|
-
get timeout() {
|
|
736
|
-
return this.options.timeout;
|
|
737
|
-
}
|
|
738
|
-
set timeout(e) {
|
|
739
|
-
this.options.timeout = e;
|
|
740
|
-
}
|
|
741
|
-
get idle() {
|
|
742
|
-
return this.isIdle;
|
|
743
|
-
}
|
|
744
|
-
set idle(e) {
|
|
745
|
-
e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
function Zn({
|
|
749
|
-
callback: s,
|
|
750
|
-
options: e
|
|
751
|
-
}) {
|
|
752
|
-
return new vs(s, e);
|
|
753
|
-
}
|
|
754
|
-
function Xn({
|
|
755
|
-
componentName: s,
|
|
756
|
-
providedId: e
|
|
757
|
-
}) {
|
|
758
|
-
return h(() => e ?? `${s}-${Nt().replace(/:/g, "")}`);
|
|
759
|
-
}
|
|
760
|
-
const ps = [
|
|
761
|
-
"af-ZA",
|
|
762
|
-
"sq-AL",
|
|
763
|
-
"ar-DZ",
|
|
764
|
-
"ar-BH",
|
|
765
|
-
"ar-EG",
|
|
766
|
-
"ar-IQ",
|
|
767
|
-
"ar-JO",
|
|
768
|
-
"ar-KW",
|
|
769
|
-
"ar-LB",
|
|
770
|
-
"ar-LY",
|
|
771
|
-
"ar-MA",
|
|
772
|
-
"ar-OM",
|
|
773
|
-
"ar-QA",
|
|
774
|
-
"ar-SA",
|
|
775
|
-
"ar-SY",
|
|
776
|
-
"ar-TN",
|
|
777
|
-
"ar-AE",
|
|
778
|
-
"ar-YE",
|
|
779
|
-
"hy-AM",
|
|
780
|
-
"Cy-az-AZ",
|
|
781
|
-
"Lt-az-AZ",
|
|
782
|
-
"eu-ES",
|
|
783
|
-
"be-BY",
|
|
784
|
-
"bg-BG",
|
|
785
|
-
"ca-ES",
|
|
786
|
-
"zh-CN",
|
|
787
|
-
"zh-HK",
|
|
788
|
-
"zh-MO",
|
|
789
|
-
"zh-SG",
|
|
790
|
-
"zh-TW",
|
|
791
|
-
"zh-CHS",
|
|
792
|
-
"zh-CHT",
|
|
793
|
-
"hr-HR",
|
|
794
|
-
"cs-CZ",
|
|
795
|
-
"da-DK",
|
|
796
|
-
"div-MV",
|
|
797
|
-
"nl-BE",
|
|
798
|
-
"nl-NL",
|
|
799
|
-
"en-AU",
|
|
800
|
-
"en-BZ",
|
|
801
|
-
"en-CA",
|
|
802
|
-
"en-CB",
|
|
803
|
-
"en-IE",
|
|
804
|
-
"en-JM",
|
|
805
|
-
"en-NZ",
|
|
806
|
-
"en-PH",
|
|
807
|
-
"en-ZA",
|
|
808
|
-
"en-TT",
|
|
809
|
-
"en-GB",
|
|
810
|
-
"en-US",
|
|
811
|
-
"en-ZW",
|
|
812
|
-
"et-EE",
|
|
813
|
-
"fo-FO",
|
|
814
|
-
"fa-IR",
|
|
815
|
-
"fi-FI",
|
|
816
|
-
"fr-BE",
|
|
817
|
-
"fr-CA",
|
|
818
|
-
"fr-FR",
|
|
819
|
-
"fr-LU",
|
|
820
|
-
"fr-MC",
|
|
821
|
-
"fr-CH",
|
|
822
|
-
"gl-ES",
|
|
823
|
-
"ka-GE",
|
|
824
|
-
"de-AT",
|
|
825
|
-
"de-DE",
|
|
826
|
-
"de-LI",
|
|
827
|
-
"de-LU",
|
|
828
|
-
"de-CH",
|
|
829
|
-
"el-GR",
|
|
830
|
-
"gu-IN",
|
|
831
|
-
"he-IL",
|
|
832
|
-
"hi-IN",
|
|
833
|
-
"hu-HU",
|
|
834
|
-
"is-IS",
|
|
835
|
-
"id-ID",
|
|
836
|
-
"it-IT",
|
|
837
|
-
"it-CH",
|
|
838
|
-
"ja-JP",
|
|
839
|
-
"kn-IN",
|
|
840
|
-
"kk-KZ",
|
|
841
|
-
"kok-IN",
|
|
842
|
-
"ko-KR",
|
|
843
|
-
"ky-KZ",
|
|
844
|
-
"lv-LV",
|
|
845
|
-
"lt-LT",
|
|
846
|
-
"mk-MK",
|
|
847
|
-
"ms-BN",
|
|
848
|
-
"ms-MY",
|
|
849
|
-
"mr-IN",
|
|
850
|
-
"mn-MN",
|
|
851
|
-
"nb-NO",
|
|
852
|
-
"nn-NO",
|
|
853
|
-
"pl-PL",
|
|
854
|
-
"pt-BR",
|
|
855
|
-
"pt-PT",
|
|
856
|
-
"pa-IN",
|
|
857
|
-
"ro-RO",
|
|
858
|
-
"ru-RU",
|
|
859
|
-
"sa-IN",
|
|
860
|
-
"Cy-sr-SP",
|
|
861
|
-
"Lt-sr-SP",
|
|
862
|
-
"sk-SK",
|
|
863
|
-
"sl-SI",
|
|
864
|
-
"es-AR",
|
|
865
|
-
"es-BO",
|
|
866
|
-
"es-CL",
|
|
867
|
-
"es-CO",
|
|
868
|
-
"es-CR",
|
|
869
|
-
"es-DO",
|
|
870
|
-
"es-EC",
|
|
871
|
-
"es-SV",
|
|
872
|
-
"es-GT",
|
|
873
|
-
"es-HN",
|
|
874
|
-
"es-MX",
|
|
875
|
-
"es-NI",
|
|
876
|
-
"es-PA",
|
|
877
|
-
"es-PY",
|
|
878
|
-
"es-PE",
|
|
879
|
-
"es-PR",
|
|
880
|
-
"es-ES",
|
|
881
|
-
"es-UY",
|
|
882
|
-
"es-VE",
|
|
883
|
-
"sw-KE",
|
|
884
|
-
"sv-FI",
|
|
885
|
-
"sv-SE",
|
|
886
|
-
"syr-SY",
|
|
887
|
-
"ta-IN",
|
|
888
|
-
"tt-RU",
|
|
889
|
-
"te-IN",
|
|
890
|
-
"th-TH",
|
|
891
|
-
"tr-TR",
|
|
892
|
-
"uk-UA",
|
|
893
|
-
"ur-PK",
|
|
894
|
-
"Cy-uz-UZ",
|
|
895
|
-
"Lt-uz-UZ",
|
|
896
|
-
"vi-VN"
|
|
897
|
-
], gs = [
|
|
898
|
-
"aa",
|
|
899
|
-
"ab",
|
|
900
|
-
"ae",
|
|
901
|
-
"af",
|
|
902
|
-
"ak",
|
|
903
|
-
"am",
|
|
904
|
-
"an",
|
|
905
|
-
"ar",
|
|
906
|
-
"as",
|
|
907
|
-
"av",
|
|
908
|
-
"ay",
|
|
909
|
-
"az",
|
|
910
|
-
"ba",
|
|
911
|
-
"be",
|
|
912
|
-
"bg",
|
|
913
|
-
"bh",
|
|
914
|
-
"bi",
|
|
915
|
-
"bm",
|
|
916
|
-
"bn",
|
|
917
|
-
"bo",
|
|
918
|
-
"br",
|
|
919
|
-
"bs",
|
|
920
|
-
"ca",
|
|
921
|
-
"ce",
|
|
922
|
-
"ch",
|
|
923
|
-
"co",
|
|
924
|
-
"cr",
|
|
925
|
-
"cs",
|
|
926
|
-
"cu",
|
|
927
|
-
"cv",
|
|
928
|
-
"cy",
|
|
929
|
-
"da",
|
|
930
|
-
"de",
|
|
931
|
-
"dv",
|
|
932
|
-
"dz",
|
|
933
|
-
"ee",
|
|
934
|
-
"el",
|
|
935
|
-
"en",
|
|
936
|
-
"eo",
|
|
937
|
-
"es",
|
|
938
|
-
"et",
|
|
939
|
-
"eu",
|
|
940
|
-
"fa",
|
|
941
|
-
"ff",
|
|
942
|
-
"fi",
|
|
943
|
-
"fj",
|
|
944
|
-
"fo",
|
|
945
|
-
"fr",
|
|
946
|
-
"fy",
|
|
947
|
-
"ga",
|
|
948
|
-
"gd",
|
|
949
|
-
"gl",
|
|
950
|
-
"gn",
|
|
951
|
-
"gu",
|
|
952
|
-
"gv",
|
|
953
|
-
"ha",
|
|
954
|
-
"he",
|
|
955
|
-
"hi",
|
|
956
|
-
"ho",
|
|
957
|
-
"hr",
|
|
958
|
-
"ht",
|
|
959
|
-
"hu",
|
|
960
|
-
"hy",
|
|
961
|
-
"hz",
|
|
962
|
-
"ia",
|
|
963
|
-
"id",
|
|
964
|
-
"ie",
|
|
965
|
-
"ig",
|
|
966
|
-
"ii",
|
|
967
|
-
"ik",
|
|
968
|
-
"io",
|
|
969
|
-
"is",
|
|
970
|
-
"it",
|
|
971
|
-
"iu",
|
|
972
|
-
"ja",
|
|
973
|
-
"jv",
|
|
974
|
-
"ka",
|
|
975
|
-
"kg",
|
|
976
|
-
"ki",
|
|
977
|
-
"kj",
|
|
978
|
-
"kk",
|
|
979
|
-
"kl",
|
|
980
|
-
"km",
|
|
981
|
-
"kn",
|
|
982
|
-
"ko",
|
|
983
|
-
"kr",
|
|
984
|
-
"ks",
|
|
985
|
-
"ku",
|
|
986
|
-
"kv",
|
|
987
|
-
"kw",
|
|
988
|
-
"ky",
|
|
989
|
-
"la",
|
|
990
|
-
"lb",
|
|
991
|
-
"lg",
|
|
992
|
-
"li",
|
|
993
|
-
"ln",
|
|
994
|
-
"lo",
|
|
995
|
-
"lt",
|
|
996
|
-
"lu",
|
|
997
|
-
"lv",
|
|
998
|
-
"mg",
|
|
999
|
-
"mh",
|
|
1000
|
-
"mi",
|
|
1001
|
-
"mk",
|
|
1002
|
-
"ml",
|
|
1003
|
-
"mn",
|
|
1004
|
-
"mr",
|
|
1005
|
-
"ms",
|
|
1006
|
-
"mt",
|
|
1007
|
-
"my",
|
|
1008
|
-
"na",
|
|
1009
|
-
"nb",
|
|
1010
|
-
"nd",
|
|
1011
|
-
"ne",
|
|
1012
|
-
"ng",
|
|
1013
|
-
"nl",
|
|
1014
|
-
"nn",
|
|
1015
|
-
"no",
|
|
1016
|
-
"nr",
|
|
1017
|
-
"nv",
|
|
1018
|
-
"ny",
|
|
1019
|
-
"oc",
|
|
1020
|
-
"oj",
|
|
1021
|
-
"om",
|
|
1022
|
-
"or",
|
|
1023
|
-
"os",
|
|
1024
|
-
"pa",
|
|
1025
|
-
"pi",
|
|
1026
|
-
"pl",
|
|
1027
|
-
"ps",
|
|
1028
|
-
"pt",
|
|
1029
|
-
"qu",
|
|
1030
|
-
"rm",
|
|
1031
|
-
"rn",
|
|
1032
|
-
"ro",
|
|
1033
|
-
"ru",
|
|
1034
|
-
"rw",
|
|
1035
|
-
"sa",
|
|
1036
|
-
"sc",
|
|
1037
|
-
"sd",
|
|
1038
|
-
"se",
|
|
1039
|
-
"sg",
|
|
1040
|
-
"si",
|
|
1041
|
-
"sk",
|
|
1042
|
-
"sl",
|
|
1043
|
-
"sm",
|
|
1044
|
-
"sn",
|
|
1045
|
-
"so",
|
|
1046
|
-
"sq",
|
|
1047
|
-
"sr",
|
|
1048
|
-
"ss",
|
|
1049
|
-
"st",
|
|
1050
|
-
"su",
|
|
1051
|
-
"sv",
|
|
1052
|
-
"sw",
|
|
1053
|
-
"ta",
|
|
1054
|
-
"te",
|
|
1055
|
-
"tg",
|
|
1056
|
-
"th",
|
|
1057
|
-
"ti",
|
|
1058
|
-
"tk",
|
|
1059
|
-
"tl",
|
|
1060
|
-
"tn",
|
|
1061
|
-
"to",
|
|
1062
|
-
"tr",
|
|
1063
|
-
"ts",
|
|
1064
|
-
"tt",
|
|
1065
|
-
"tw",
|
|
1066
|
-
"ty",
|
|
1067
|
-
"ug",
|
|
1068
|
-
"uk",
|
|
1069
|
-
"ur",
|
|
1070
|
-
"uz",
|
|
1071
|
-
"ve",
|
|
1072
|
-
"vi",
|
|
1073
|
-
"vo",
|
|
1074
|
-
"wa",
|
|
1075
|
-
"wo",
|
|
1076
|
-
"xh",
|
|
1077
|
-
"yi",
|
|
1078
|
-
"yo",
|
|
1079
|
-
"za",
|
|
1080
|
-
"zh",
|
|
1081
|
-
"zu"
|
|
1082
|
-
], ys = [...gs, ...ps];
|
|
1083
|
-
let W;
|
|
1084
|
-
function Qe(s, e) {
|
|
1085
|
-
return !s || (s == null ? void 0 : s.toLocaleLowerCase()) === e.toLocaleLowerCase();
|
|
1086
|
-
}
|
|
1087
|
-
function Gn(s) {
|
|
1088
|
-
function e(n, o) {
|
|
1089
|
-
return h(() => {
|
|
1090
|
-
const i = ge(o), r = ge(n);
|
|
1091
|
-
try {
|
|
1092
|
-
if (!i || !r)
|
|
1093
|
-
return r;
|
|
1094
|
-
(!W || i !== W.resolvedOptions().locale) && (W = new Intl.DisplayNames([i], { type: "language" }));
|
|
1095
|
-
const a = W.of(r);
|
|
1096
|
-
return !a || Qe(a, r) ? void 0 : a;
|
|
1097
|
-
} catch {
|
|
1098
|
-
return r;
|
|
1099
|
-
}
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
function t(n) {
|
|
1103
|
-
return h(() => {
|
|
1104
|
-
const o = ge(n);
|
|
1105
|
-
return o ? ((!W || o !== W.resolvedOptions().locale) && (W = new Intl.DisplayNames([o], {
|
|
1106
|
-
type: "language"
|
|
1107
|
-
})), ys.map((i) => {
|
|
1108
|
-
try {
|
|
1109
|
-
const r = W == null ? void 0 : W.of(i);
|
|
1110
|
-
return !r || Qe(r, i) ? void 0 : {
|
|
1111
|
-
language: r,
|
|
1112
|
-
code: i
|
|
1113
|
-
};
|
|
1114
|
-
} catch {
|
|
1115
|
-
return;
|
|
1116
|
-
}
|
|
1117
|
-
}).filter(Boolean)) : [];
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
return {
|
|
1121
|
-
getLanguageDisplayName: ({ code: n, locale: o }) => e(n, o || s),
|
|
1122
|
-
getAllLanguageDisplayNames: (n) => t(n || s)
|
|
1123
|
-
};
|
|
1124
|
-
}
|
|
1125
|
-
function wt(s) {
|
|
1126
|
-
const e = s.join(", ").match(/\b\w+\b/g);
|
|
1127
|
-
return e ? e.length : 0;
|
|
1128
|
-
}
|
|
1129
|
-
function bs(s, e = 150) {
|
|
1130
|
-
const t = wt([s]);
|
|
1131
|
-
return Math.ceil(t / e);
|
|
1132
|
-
}
|
|
1133
|
-
function Qn(s) {
|
|
1134
|
-
const e = h(
|
|
1135
|
-
() => {
|
|
1136
|
-
var r;
|
|
1137
|
-
return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
|
|
1138
|
-
}
|
|
1139
|
-
), t = h(() => {
|
|
1140
|
-
var r;
|
|
1141
|
-
return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
|
|
1142
|
-
}), n = h(() => {
|
|
1143
|
-
var r, a, l;
|
|
1144
|
-
if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
|
|
1145
|
-
return (a = s.contentRef.value) == null ? void 0 : a.textContent;
|
|
1146
|
-
if (t.value && typeof document < "u") {
|
|
1147
|
-
const u = document.querySelector(t.value);
|
|
1148
|
-
if (u)
|
|
1149
|
-
return u.textContent;
|
|
1150
|
-
}
|
|
1151
|
-
return typeof s.content == "string" ? s.content : (l = s.content) == null ? void 0 : l.value;
|
|
1152
|
-
}), o = h(() => bs(n.value, e.value)), i = h(() => wt([n.value]));
|
|
1153
|
-
return {
|
|
1154
|
-
content: n,
|
|
1155
|
-
wordCount: i,
|
|
1156
|
-
velocity: e,
|
|
1157
|
-
duration: o
|
|
1158
|
-
};
|
|
1159
|
-
}
|
|
1160
|
-
const ws = {
|
|
1161
|
-
removeAccents: !0,
|
|
1162
|
-
caseSensitive: !1,
|
|
1163
|
-
replaceSpaces: !0,
|
|
1164
|
-
removeSpecialCharacters: !1,
|
|
1165
|
-
trim: !0,
|
|
1166
|
-
normalizeSpaces: !0,
|
|
1167
|
-
removeNumbers: !1,
|
|
1168
|
-
customNormalizationForms: ["NFC", "NFKD"]
|
|
1169
|
-
};
|
|
1170
|
-
function Je(s, e) {
|
|
1171
|
-
const t = { ...ws, ...e }, n = {
|
|
1172
|
-
À: "A",
|
|
1173
|
-
Á: "A",
|
|
1174
|
-
Â: "A",
|
|
1175
|
-
Ã: "A",
|
|
1176
|
-
Ä: "A",
|
|
1177
|
-
Å: "A",
|
|
1178
|
-
à: "a",
|
|
1179
|
-
á: "a",
|
|
1180
|
-
â: "a",
|
|
1181
|
-
ã: "a",
|
|
1182
|
-
ä: "a",
|
|
1183
|
-
å: "a",
|
|
1184
|
-
È: "E",
|
|
1185
|
-
É: "E",
|
|
1186
|
-
Ê: "E",
|
|
1187
|
-
Ë: "E",
|
|
1188
|
-
è: "e",
|
|
1189
|
-
é: "e",
|
|
1190
|
-
ê: "e",
|
|
1191
|
-
ë: "e",
|
|
1192
|
-
Î: "I",
|
|
1193
|
-
Ï: "I",
|
|
1194
|
-
í: "I",
|
|
1195
|
-
î: "i",
|
|
1196
|
-
ï: "i",
|
|
1197
|
-
Ô: "O",
|
|
1198
|
-
Õ: "O",
|
|
1199
|
-
Ö: "O",
|
|
1200
|
-
Ø: "O",
|
|
1201
|
-
ô: "o",
|
|
1202
|
-
õ: "o",
|
|
1203
|
-
ö: "o",
|
|
1204
|
-
ø: "o",
|
|
1205
|
-
Ù: "U",
|
|
1206
|
-
Ú: "U",
|
|
1207
|
-
Û: "U",
|
|
1208
|
-
Ü: "U",
|
|
1209
|
-
ù: "u",
|
|
1210
|
-
ú: "u",
|
|
1211
|
-
û: "u",
|
|
1212
|
-
ü: "u",
|
|
1213
|
-
Ç: "C",
|
|
1214
|
-
ç: "c",
|
|
1215
|
-
ÿ: "y",
|
|
1216
|
-
Ñ: "N",
|
|
1217
|
-
ñ: "n",
|
|
1218
|
-
ó: "o"
|
|
1219
|
-
};
|
|
1220
|
-
let o = s.toString();
|
|
1221
|
-
if (t.trim && (o = o.trim()), t.normalizeSpaces && (o = o.replaceAll(/\s+/g, " ")), t.replaceSpaces && (o = o.replaceAll(" ", "-")), t.removeNumbers && (o = o.replaceAll(/\d/g, "")), t.removeAccents && (o = o.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => n[i] || i), o = o.replaceAll(/[\u0300-\u036F]/g, "")), t.caseSensitive === !1 && (o = o.toLowerCase()), t.removeSpecialCharacters && (o = o.replaceAll(/[^\dA-Z-]/gi, "")), t.trim && (o = o.trim()), t.customNormalizationForms)
|
|
1222
|
-
for (const i of t.customNormalizationForms)
|
|
1223
|
-
o = o.normalize(i);
|
|
1224
|
-
return o;
|
|
1225
|
-
}
|
|
1226
|
-
function Es(s, e) {
|
|
1227
|
-
const t = s.length, n = e.length, o = [];
|
|
1228
|
-
for (let i = 0; i <= t; i++)
|
|
1229
|
-
o[i] = [i];
|
|
1230
|
-
for (let i = 0; i <= n; i++)
|
|
1231
|
-
o[0][i] = i;
|
|
1232
|
-
for (let i = 1; i <= t; i++)
|
|
1233
|
-
for (let r = 1; r <= n; r++) {
|
|
1234
|
-
const a = s[i - 1] === e[r - 1] ? 0 : 1;
|
|
1235
|
-
o[i][r] = Math.min(
|
|
1236
|
-
o[i - 1][r] + 1,
|
|
1237
|
-
o[i][r - 1] + 1,
|
|
1238
|
-
o[i - 1][r - 1] + a
|
|
1239
|
-
);
|
|
1240
|
-
}
|
|
1241
|
-
return o[t][n];
|
|
1242
|
-
}
|
|
1243
|
-
function Et(s, e) {
|
|
1244
|
-
const t = Es(s, e), n = Math.max(s.length, e.length);
|
|
1245
|
-
return 1 - t / n;
|
|
1246
|
-
}
|
|
1247
|
-
function Ts(s, e, t = 0.75) {
|
|
1248
|
-
return Et(s, e) >= t;
|
|
1249
|
-
}
|
|
1250
|
-
function Jn(s, e, t = 0.75) {
|
|
1251
|
-
const n = h(
|
|
1252
|
-
() => Je(typeof s == "string" ? s : s.value)
|
|
1253
|
-
), o = h(
|
|
1254
|
-
() => Je(typeof e == "string" ? e : e.value)
|
|
1255
|
-
), i = h(() => typeof t == "number" ? t : t.value), r = h(() => Et(n.value, o.value));
|
|
1256
|
-
return {
|
|
1257
|
-
isMatching: h(
|
|
1258
|
-
() => Ts(n.value, o.value, i.value)
|
|
1259
|
-
),
|
|
1260
|
-
score: r
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
const zs = {
|
|
1264
|
-
preventDefaultOnTouchMove: !1,
|
|
1265
|
-
preventDefaultOnMouseWheel: !1,
|
|
1266
|
-
threshold: 50,
|
|
1267
|
-
immediate: !1,
|
|
1268
|
-
triggerOnEnd: !1
|
|
1269
|
-
};
|
|
1270
|
-
class Ls {
|
|
1271
|
-
constructor(e) {
|
|
1272
|
-
c(this, "element");
|
|
1273
|
-
c(this, "xStart");
|
|
1274
|
-
c(this, "yStart");
|
|
1275
|
-
c(this, "xEnd");
|
|
1276
|
-
c(this, "yEnd");
|
|
1277
|
-
c(this, "xDiff");
|
|
1278
|
-
c(this, "yDiff");
|
|
1279
|
-
c(this, "onToucheStartCallback");
|
|
1280
|
-
c(this, "onToucheMoveCallback");
|
|
1281
|
-
c(this, "onToucheEndCallback");
|
|
1282
|
-
c(this, "onMouseWheelCallback");
|
|
1283
|
-
c(this, "start");
|
|
1284
|
-
c(this, "stop");
|
|
1285
|
-
c(this, "options");
|
|
1286
|
-
this.inputOption = e, this.options = { ...zs, ...e }, this.onToucheStartCallback = this.toucheStartHandler.bind(this), this.onToucheMoveCallback = this.handleTouchMove.bind(this), this.onToucheEndCallback = this.handleTouchEnd.bind(this), this.onMouseWheelCallback = this.handleMouseWheel.bind(this), this.start = this.startListening.bind(this), this.stop = this.stopListening.bind(this), this.options.element && this.setElement(this.options.element), this.options.immediate && this.start();
|
|
1287
|
-
}
|
|
1288
|
-
startListening() {
|
|
1289
|
-
this.setElement(this.options.element), this.element.addEventListener("touchstart", this.onToucheStartCallback, { passive: !0 }), this.element.addEventListener("touchmove", this.onToucheMoveCallback, { passive: !0 }), this.options.triggerOnEnd && this.element.addEventListener("touchend", this.onToucheEndCallback, { passive: !0 }), this.options.preventDefaultOnMouseWheel && this.element.addEventListener("mousewheel", this.onMouseWheelCallback, { passive: !1 });
|
|
1290
|
-
}
|
|
1291
|
-
stopListening() {
|
|
1292
|
-
this.element.removeEventListener("touchstart", this.onToucheStartCallback), this.element.removeEventListener("touchmove", this.onToucheMoveCallback), this.element.removeEventListener("touchend", this.onToucheEndCallback), this.options.preventDefaultOnMouseWheel && this.element.removeEventListener("mousewheel", this.onMouseWheelCallback);
|
|
1293
|
-
}
|
|
1294
|
-
setElement(e) {
|
|
1295
|
-
if (!e) {
|
|
1296
|
-
console.error(
|
|
1297
|
-
"[maz-ui][SwipeHandler](setElement) Element should be provided. Its can be a string selector or an HTMLElement"
|
|
1298
|
-
);
|
|
1299
|
-
return;
|
|
1300
|
-
}
|
|
1301
|
-
if (typeof e == "string") {
|
|
1302
|
-
const t = document.querySelector(e);
|
|
1303
|
-
if (!(t instanceof HTMLElement)) {
|
|
1304
|
-
console.error("[maz-ui][SwipeHandler](setElement) String selector for element is not found");
|
|
1305
|
-
return;
|
|
1306
|
-
}
|
|
1307
|
-
this.element = t;
|
|
1308
|
-
} else
|
|
1309
|
-
this.element = e;
|
|
1310
|
-
}
|
|
1311
|
-
handleMouseWheel(e) {
|
|
1312
|
-
e.preventDefault();
|
|
1313
|
-
}
|
|
1314
|
-
toucheStartHandler(e) {
|
|
1315
|
-
this.xStart = e.touches[0].clientX, this.yStart = e.touches[0].clientY, this.emitValuesChanged();
|
|
1316
|
-
}
|
|
1317
|
-
emitValuesChanged() {
|
|
1318
|
-
var e, t;
|
|
1319
|
-
(t = (e = this.options).onValuesChanged) == null || t.call(e, {
|
|
1320
|
-
xStart: this.xStart,
|
|
1321
|
-
yStart: this.yStart,
|
|
1322
|
-
xEnd: this.xEnd,
|
|
1323
|
-
yEnd: this.yEnd,
|
|
1324
|
-
xDiff: this.xDiff,
|
|
1325
|
-
yDiff: this.yDiff
|
|
1326
|
-
});
|
|
1327
|
-
}
|
|
1328
|
-
handleTouchMove(e) {
|
|
1329
|
-
this.options.preventDefaultOnTouchMove && e.cancelable && e.preventDefault(), this.xEnd = e.touches[0].clientX, this.yEnd = e.touches[0].clientY, !(!this.xStart || !this.yStart) && (this.xDiff = this.xStart - this.xEnd, this.yDiff = this.yStart - this.yEnd, this.emitValuesChanged(), this.options.triggerOnEnd || this.runCallbacks(e));
|
|
1330
|
-
}
|
|
1331
|
-
handleTouchEnd(e) {
|
|
1332
|
-
this.runCallbacks(e), this.emitValuesChanged();
|
|
1333
|
-
}
|
|
1334
|
-
runCallbacks(e) {
|
|
1335
|
-
var t, n, o, i, r, a, l, u;
|
|
1336
|
-
typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? (n = (t = this.options).onLeft) == null || n.call(t, e) : (i = (o = this.options).onRight) == null || i.call(o, e) : this.yDiff > 0 ? (a = (r = this.options).onUp) == null || a.call(r, e) : (u = (l = this.options).onDown) == null || u.call(l, e), this.resetValues());
|
|
1337
|
-
}
|
|
1338
|
-
resetValues() {
|
|
1339
|
-
this.xStart = void 0, this.yStart = void 0, this.xEnd = void 0, this.yEnd = void 0, this.xDiff = void 0, this.yDiff = void 0, this.emitValuesChanged();
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
function eo(s) {
|
|
1343
|
-
const e = b(), t = b(), n = b(), o = b(), i = b(), r = b(), a = h(() => ge(s.element)), l = new Ls({
|
|
1344
|
-
...s,
|
|
1345
|
-
element: a.value,
|
|
1346
|
-
onValuesChanged(u) {
|
|
1347
|
-
e.value = u.xDiff, t.value = u.yDiff, n.value = u.xStart, o.value = u.xEnd, i.value = u.yStart, r.value = u.yEnd;
|
|
1348
|
-
}
|
|
1349
|
-
});
|
|
1350
|
-
return {
|
|
1351
|
-
xDiff: e,
|
|
1352
|
-
yDiff: t,
|
|
1353
|
-
xStart: n,
|
|
1354
|
-
xEnd: o,
|
|
1355
|
-
yStart: i,
|
|
1356
|
-
yEnd: r,
|
|
1357
|
-
start: () => {
|
|
1358
|
-
a.value && (l.options.element = a.value), l.start();
|
|
1359
|
-
},
|
|
1360
|
-
stop: l.stop
|
|
1361
|
-
};
|
|
1362
|
-
}
|
|
1363
|
-
const ks = {
|
|
1364
|
-
darkClass: "dark",
|
|
1365
|
-
lightClass: "light",
|
|
1366
|
-
storageThemeKey: "theme",
|
|
1367
|
-
storageThemeValueDark: "dark",
|
|
1368
|
-
storageThemeValueLight: "light",
|
|
1369
|
-
storageThemeValueSystem: "system",
|
|
1370
|
-
watchChanges: !0
|
|
1371
|
-
}, Te = b("system"), Y = b("system");
|
|
1372
|
-
function et() {
|
|
1373
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1374
|
-
}
|
|
1375
|
-
function ze({
|
|
1376
|
-
darkClass: s,
|
|
1377
|
-
lightClass: e,
|
|
1378
|
-
storageThemeKey: t,
|
|
1379
|
-
storageThemeValueDark: n,
|
|
1380
|
-
setLocalStorageValue: o = !0,
|
|
1381
|
-
setSelectedTheme: i = !0
|
|
1382
|
-
}) {
|
|
1383
|
-
F() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), Te.value = n, i && (Y.value = n), o && (localStorage[t] = n));
|
|
1384
|
-
}
|
|
1385
|
-
function Le({
|
|
1386
|
-
darkClass: s,
|
|
1387
|
-
lightClass: e,
|
|
1388
|
-
storageThemeKey: t,
|
|
1389
|
-
storageThemeValueLight: n,
|
|
1390
|
-
setLocalStorageValue: o = !0,
|
|
1391
|
-
setSelectedTheme: i = !0
|
|
1392
|
-
}) {
|
|
1393
|
-
F() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), Te.value = n, i && (Y.value = n), o && (localStorage[t] = n));
|
|
1394
|
-
}
|
|
1395
|
-
function Tt({
|
|
1396
|
-
setLocalStorageValue: s = !0,
|
|
1397
|
-
...e
|
|
1398
|
-
}) {
|
|
1399
|
-
if (F())
|
|
1400
|
-
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), Te.value = e.storageThemeValueSystem, Y.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), qe(e);
|
|
1401
|
-
}
|
|
1402
|
-
function zt(s) {
|
|
1403
|
-
if (!s.defaultTheme)
|
|
1404
|
-
return console.error("[maz-ui](useThemeHandler) No default theme set");
|
|
1405
|
-
if (!["light", "dark"].includes(s.defaultTheme))
|
|
1406
|
-
return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');
|
|
1407
|
-
switch (s.defaultTheme) {
|
|
1408
|
-
case "dark":
|
|
1409
|
-
return ze({
|
|
1410
|
-
...s,
|
|
1411
|
-
setLocalStorageValue: !1,
|
|
1412
|
-
setSelectedTheme: !0
|
|
1413
|
-
});
|
|
1414
|
-
case "light":
|
|
1415
|
-
return Le({
|
|
1416
|
-
...s,
|
|
1417
|
-
setLocalStorageValue: !1,
|
|
1418
|
-
setSelectedTheme: !0
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
function qe(s) {
|
|
1423
|
-
return F() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? zt(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && et() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && et() ? ze({
|
|
1424
|
-
...s,
|
|
1425
|
-
setLocalStorageValue: !1,
|
|
1426
|
-
setSelectedTheme: !1
|
|
1427
|
-
}) : Le({
|
|
1428
|
-
...s,
|
|
1429
|
-
setLocalStorageValue: !1,
|
|
1430
|
-
setSelectedTheme: !1
|
|
1431
|
-
}) : void 0;
|
|
1432
|
-
}
|
|
1433
|
-
function Fe({
|
|
1434
|
-
theme: s,
|
|
1435
|
-
...e
|
|
1436
|
-
}) {
|
|
1437
|
-
return s === "system" ? Tt(e) : s === "dark" ? ze(e) : Le(e);
|
|
1438
|
-
}
|
|
1439
|
-
function Cs(s) {
|
|
1440
|
-
return Te.value === s.storageThemeValueDark ? Le(s) : ze(s);
|
|
1441
|
-
}
|
|
1442
|
-
function to(s) {
|
|
1443
|
-
const e = {
|
|
1444
|
-
...ks,
|
|
1445
|
-
...s
|
|
1446
|
-
};
|
|
1447
|
-
function t() {
|
|
1448
|
-
qe(e);
|
|
1449
|
-
}
|
|
1450
|
-
return ce(() => {
|
|
1451
|
-
localStorage[e.storageThemeKey] && (Y.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
|
|
1452
|
-
}), lt(() => {
|
|
1453
|
-
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
|
|
1454
|
-
}), G(Y, (n) => {
|
|
1455
|
-
switch (localStorage[e.storageThemeKey] = n, n) {
|
|
1456
|
-
case e.storageThemeValueDark: {
|
|
1457
|
-
ze(e);
|
|
1458
|
-
break;
|
|
1459
|
-
}
|
|
1460
|
-
case e.storageThemeValueLight: {
|
|
1461
|
-
Le(e);
|
|
1462
|
-
break;
|
|
1463
|
-
}
|
|
1464
|
-
case e.storageThemeValueSystem: {
|
|
1465
|
-
Tt(e);
|
|
1466
|
-
break;
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
}), {
|
|
1470
|
-
autoSetTheme: () => qe(e),
|
|
1471
|
-
toggleTheme: () => Cs(e),
|
|
1472
|
-
setSystemTheme: () => Fe({ ...e, theme: "system" }),
|
|
1473
|
-
setDarkTheme: () => Fe({ ...e, theme: "dark" }),
|
|
1474
|
-
setLightTheme: () => Fe({ ...e, theme: "light" }),
|
|
1475
|
-
setDefaultTheme: () => zt(e),
|
|
1476
|
-
hasDarkTheme: h(() => Y.value === e.storageThemeValueDark),
|
|
1477
|
-
hasLightTheme: h(() => Y.value === e.storageThemeValueLight),
|
|
1478
|
-
hasSystemTheme: h(() => Y.value === e.storageThemeValueSystem),
|
|
1479
|
-
theme: Te,
|
|
1480
|
-
selectedTheme: Y
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
function Is({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
|
|
1484
|
-
const o = b(s), i = b(s);
|
|
1485
|
-
let r;
|
|
1486
|
-
function a(w) {
|
|
1487
|
-
typeof w == "number" && (i.value = w), typeof w == "number" && (o.value = w), l();
|
|
1488
|
-
}
|
|
1489
|
-
function l() {
|
|
1490
|
-
r || (r = setInterval(() => {
|
|
1491
|
-
i.value -= t, i.value <= 0 && (T(), setTimeout(() => e == null ? void 0 : e(), n));
|
|
1492
|
-
}, t));
|
|
1493
|
-
}
|
|
1494
|
-
function u() {
|
|
1495
|
-
r && (clearInterval(r), r = void 0);
|
|
1496
|
-
}
|
|
1497
|
-
function y() {
|
|
1498
|
-
!r && i.value > 0 && l();
|
|
1499
|
-
}
|
|
1500
|
-
function T() {
|
|
1501
|
-
setTimeout(() => i.value = o.value, n * 2), u();
|
|
1502
|
-
}
|
|
1503
|
-
return {
|
|
1504
|
-
remainingTime: i,
|
|
1505
|
-
start: a,
|
|
1506
|
-
pause: u,
|
|
1507
|
-
resume: y,
|
|
1508
|
-
stop: T
|
|
1509
|
-
};
|
|
1510
|
-
}
|
|
1511
|
-
function so() {
|
|
1512
|
-
return Pe("toast");
|
|
1513
|
-
}
|
|
1514
|
-
class As {
|
|
1515
|
-
constructor(e, t) {
|
|
1516
|
-
c(this, "eventHandlerFunction");
|
|
1517
|
-
c(this, "event", "visibilitychange");
|
|
1518
|
-
c(this, "timeoutHandler");
|
|
1519
|
-
c(this, "options");
|
|
1520
|
-
c(this, "defaultOptions", {
|
|
1521
|
-
timeout: 5e3,
|
|
1522
|
-
once: !1,
|
|
1523
|
-
immediate: !0
|
|
1524
|
-
});
|
|
1525
|
-
c(this, "isVisible", !1);
|
|
1526
|
-
this.callback = e, this.options = {
|
|
1527
|
-
...this.defaultOptions,
|
|
1528
|
-
...t
|
|
1529
|
-
}, this.eventHandlerFunction = this.eventHandler.bind(this), F() && this.start();
|
|
1530
|
-
}
|
|
1531
|
-
start() {
|
|
1532
|
-
if (!F()) {
|
|
1533
|
-
console.warn("[UserVisibility](start) you should run this method on client side");
|
|
1534
|
-
return;
|
|
1535
|
-
}
|
|
1536
|
-
this.options.immediate && this.emitCallback(), this.addEventListener();
|
|
1537
|
-
}
|
|
1538
|
-
emitCallback() {
|
|
1539
|
-
this.isVisible = document.visibilityState === "visible", this.callback({ isVisible: this.isVisible }), this.options.once && this.destroy();
|
|
1540
|
-
}
|
|
1541
|
-
eventHandler() {
|
|
1542
|
-
document.visibilityState === "visible" && !this.isVisible ? (this.clearTimeout(), this.emitCallback()) : document.visibilityState === "hidden" && this.initTimeout();
|
|
1543
|
-
}
|
|
1544
|
-
clearTimeout() {
|
|
1545
|
-
this.timeoutHandler && (clearTimeout(this.timeoutHandler), this.timeoutHandler = void 0);
|
|
1546
|
-
}
|
|
1547
|
-
initTimeout() {
|
|
1548
|
-
this.clearTimeout(), this.timeoutHandler = setTimeout(this.emitCallback.bind(this), this.options.timeout);
|
|
1549
|
-
}
|
|
1550
|
-
addEventListener() {
|
|
1551
|
-
document.addEventListener(this.event, this.eventHandlerFunction);
|
|
1552
|
-
}
|
|
1553
|
-
removeEventListener() {
|
|
1554
|
-
document.removeEventListener(this.event, this.eventHandlerFunction);
|
|
1555
|
-
}
|
|
1556
|
-
destroy() {
|
|
1557
|
-
this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
function no({
|
|
1561
|
-
callback: s,
|
|
1562
|
-
options: e
|
|
1563
|
-
}) {
|
|
1564
|
-
return new As(s, e);
|
|
1565
|
-
}
|
|
1566
|
-
function oo() {
|
|
1567
|
-
return Pe("wait");
|
|
1568
|
-
}
|
|
1569
|
-
const De = "__maz-click-outside__";
|
|
1570
|
-
function Lt() {
|
|
1571
|
-
return document.ontouchstart === null ? "touchstart" : "click";
|
|
1572
|
-
}
|
|
1573
|
-
async function kt(s, e) {
|
|
1574
|
-
try {
|
|
1575
|
-
Ct(s);
|
|
1576
|
-
const t = e.instance, n = e.value, o = typeof n == "function";
|
|
1577
|
-
if (!o)
|
|
1578
|
-
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
1579
|
-
await le(), s[De] = (r) => {
|
|
1580
|
-
if ((!s || r.target && !s.contains(r.target)) && n && o)
|
|
1581
|
-
return n.call(t, r);
|
|
1582
|
-
};
|
|
1583
|
-
const i = Lt();
|
|
1584
|
-
document.addEventListener(i, s[De], { passive: !0 });
|
|
1585
|
-
} catch (t) {
|
|
1586
|
-
console.error("[maz-ui](vClickOutside)", t);
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
function Ct(s) {
|
|
1590
|
-
try {
|
|
1591
|
-
const e = Lt();
|
|
1592
|
-
document.removeEventListener(e, s[De], !1), delete s[De];
|
|
1593
|
-
} catch (e) {
|
|
1594
|
-
console.error("[maz-ui](vClickOutside)", e);
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
function Ss(s, e) {
|
|
1598
|
-
try {
|
|
1599
|
-
if (e.value === e.oldValue)
|
|
1600
|
-
return;
|
|
1601
|
-
kt(s, e);
|
|
1602
|
-
} catch (t) {
|
|
1603
|
-
console.error("[maz-ui](vClickOutside)", t);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
const xs = {
|
|
1607
|
-
mounted: kt,
|
|
1608
|
-
updated: Ss,
|
|
1609
|
-
unmounted: Ct
|
|
1610
|
-
}, Os = {
|
|
1611
|
-
install: (s) => {
|
|
1612
|
-
s.directive("click-outside", xs);
|
|
1613
|
-
}
|
|
1614
|
-
};
|
|
1615
|
-
function It(s, e, t) {
|
|
1616
|
-
var r, a;
|
|
1617
|
-
s.stopPropagation();
|
|
1618
|
-
const n = typeof t.value == "function" ? t.value : t.value.handler, o = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
1619
|
-
let i = !1;
|
|
1620
|
-
if (o && o.length > 0) {
|
|
1621
|
-
for (const l of o)
|
|
1622
|
-
if (!i && s.target instanceof HTMLElement) {
|
|
1623
|
-
const u = (r = document.querySelector(l)) == null ? void 0 : r.getAttribute("id");
|
|
1624
|
-
i = (s.target.getAttribute("id") === u || ((a = document.querySelector(l)) == null ? void 0 : a.contains(s.target))) ?? !1;
|
|
1625
|
-
}
|
|
1626
|
-
}
|
|
1627
|
-
!e.contains(s.target) && !i && (n == null || n(s));
|
|
1628
|
-
}
|
|
1629
|
-
function At() {
|
|
1630
|
-
return document.ontouchstart === null ? "touchstart" : "click";
|
|
1631
|
-
}
|
|
1632
|
-
function Ds(s, e) {
|
|
1633
|
-
const t = At();
|
|
1634
|
-
document.removeEventListener(t, (n) => It(n, s, e));
|
|
1635
|
-
}
|
|
1636
|
-
function Ps(s, e) {
|
|
1637
|
-
if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
|
|
1638
|
-
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
1639
|
-
return;
|
|
1640
|
-
}
|
|
1641
|
-
const t = At();
|
|
1642
|
-
document.addEventListener(t, (n) => It(n, s, e));
|
|
1643
|
-
}
|
|
1644
|
-
const Ms = {
|
|
1645
|
-
mounted: Ps,
|
|
1646
|
-
unmounted: Ds
|
|
1647
|
-
}, $s = {
|
|
1648
|
-
install: (s) => {
|
|
1649
|
-
s.directive("closable", Ms);
|
|
1650
|
-
}
|
|
1651
|
-
}, Ue = {
|
|
1652
|
-
position: "top"
|
|
1653
|
-
};
|
|
1654
|
-
class St {
|
|
1655
|
-
constructor(e = {}) {
|
|
1656
|
-
c(this, "options");
|
|
1657
|
-
this.options = {
|
|
1658
|
-
...Ue,
|
|
1659
|
-
...e
|
|
1660
|
-
};
|
|
1661
|
-
}
|
|
1662
|
-
getPosition({ modifiers: e, value: t }) {
|
|
1663
|
-
return e.top ? "top" : e.bottom ? "bottom" : e.left ? "left" : e.right ? "right" : typeof t == "string" ? "top" : t.position ?? this.options.position;
|
|
1664
|
-
}
|
|
1665
|
-
getText({ value: e }) {
|
|
1666
|
-
return typeof e == "string" ? e : e.text;
|
|
1667
|
-
}
|
|
1668
|
-
getOpen({ value: e }) {
|
|
1669
|
-
return typeof e == "string" ? !1 : e.open ?? !1;
|
|
1670
|
-
}
|
|
1671
|
-
getColor({ value: e }) {
|
|
1672
|
-
return typeof e == "string" ? "default" : e.color ?? "default";
|
|
1673
|
-
}
|
|
1674
|
-
getOffset({ value: e }) {
|
|
1675
|
-
return typeof e == "string" ? "1rem" : e.offset ?? "1rem";
|
|
1676
|
-
}
|
|
1677
|
-
create(e, t) {
|
|
1678
|
-
e.setAttribute("data-tooltip", this.getText(t));
|
|
1679
|
-
const n = this.getOffset(t);
|
|
1680
|
-
n && e.style.setProperty("--tooltip-offset", n), e.classList.add("m-tooltip");
|
|
1681
|
-
const o = this.getPosition(t);
|
|
1682
|
-
e.classList.add(`m-tooltip--${o}`), e.classList.add(`m-tooltip--${this.getColor(t)}`), this.getOpen(t) && e.classList.add("m-tooltip--open");
|
|
1683
|
-
}
|
|
1684
|
-
update(e, t) {
|
|
1685
|
-
this.remove(e, t), this.create(e, t);
|
|
1686
|
-
}
|
|
1687
|
-
remove(e, t) {
|
|
1688
|
-
e.removeAttribute("data-tooltip"), e.classList.remove("m-tooltip"), e.classList.remove("m-tooltip--top"), e.classList.remove("m-tooltip--bottom"), e.classList.remove("m-tooltip--left"), e.classList.remove("m-tooltip--right"), e.classList.remove("m-tooltip--open"), e.classList.remove(`m-tooltip--${this.getColor(t)}`);
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
let Ae;
|
|
1692
|
-
const io = {
|
|
1693
|
-
beforeMount(s, e) {
|
|
1694
|
-
const t = typeof e.value == "object" ? e.value : {};
|
|
1695
|
-
return Ae = new St(t), Ae.create(s, e);
|
|
1696
|
-
},
|
|
1697
|
-
updated(s, e) {
|
|
1698
|
-
return Ae.update(s, e);
|
|
1699
|
-
},
|
|
1700
|
-
unmounted(s, e) {
|
|
1701
|
-
return Ae.remove(s, e);
|
|
1702
|
-
}
|
|
1703
|
-
}, Vs = {
|
|
1704
|
-
install: (s, e = Ue) => {
|
|
1705
|
-
const t = {
|
|
1706
|
-
...Ue,
|
|
1707
|
-
...e
|
|
1708
|
-
}, n = new St(t);
|
|
1709
|
-
s.directive("tooltip", {
|
|
1710
|
-
beforeMount: n.create.bind(n),
|
|
1711
|
-
updated: n.update.bind(n),
|
|
1712
|
-
unmounted: n.remove.bind(n)
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
};
|
|
1716
|
-
function Ke(s, e) {
|
|
1717
|
-
let t = e == null ? void 0 : e.element;
|
|
1718
|
-
function n() {
|
|
1719
|
-
t && Ie(null, t);
|
|
1720
|
-
}
|
|
1721
|
-
const o = { ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} }, i = ee(
|
|
1722
|
-
s,
|
|
1723
|
-
o,
|
|
1724
|
-
e == null ? void 0 : e.children
|
|
1725
|
-
);
|
|
1726
|
-
return e != null && e.app ? (i.appContext = e.app._context, t ? Ie(i, t) : typeof document < "u" && (t = document.createElement("div"), Ie(i, t))) : (t = t ?? document.body, Ie(i, t)), { vNode: i, destroy: n, el: t };
|
|
1727
|
-
}
|
|
1728
|
-
function Hs(s) {
|
|
1729
|
-
return !!s;
|
|
1730
|
-
}
|
|
1731
|
-
function ro(s) {
|
|
1732
|
-
return [...s].map((e) => {
|
|
1733
|
-
const t = e.codePointAt(0);
|
|
1734
|
-
return t ? t % 32 + 127461 : void 0;
|
|
1735
|
-
}).filter(Hs).map((e) => String.fromCodePoint(e)).join("");
|
|
1736
|
-
}
|
|
1737
|
-
function ao(s, e) {
|
|
1738
|
-
let t;
|
|
1739
|
-
return function(...n) {
|
|
1740
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
1741
|
-
s.apply(this, n);
|
|
1742
|
-
}, e);
|
|
1743
|
-
};
|
|
1744
|
-
}
|
|
1745
|
-
class lo {
|
|
1746
|
-
constructor({ src: e, identifier: t, once: n = !0, async: o = !0, defer: i = !0 }) {
|
|
1747
|
-
c(this, "src");
|
|
1748
|
-
c(this, "script");
|
|
1749
|
-
c(this, "once");
|
|
1750
|
-
c(this, "async");
|
|
1751
|
-
c(this, "defer");
|
|
1752
|
-
c(this, "identifier");
|
|
1753
|
-
if (typeof window > "u")
|
|
1754
|
-
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
1755
|
-
if (!e)
|
|
1756
|
-
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
1757
|
-
if (!t)
|
|
1758
|
-
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
1759
|
-
this.src = e, this.identifier = t, this.once = n, this.async = o, this.defer = i;
|
|
1760
|
-
}
|
|
1761
|
-
removeTag(e) {
|
|
1762
|
-
var t;
|
|
1763
|
-
typeof e == "string" ? (t = document.head.querySelector(`[data-identifier="${e}"]`)) == null || t.remove() : e.remove();
|
|
1764
|
-
}
|
|
1765
|
-
load() {
|
|
1766
|
-
const e = window, t = document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);
|
|
1767
|
-
if (this.once && e[this.identifier] && t.length > 0)
|
|
1768
|
-
return this.script = e[this.identifier], Promise.resolve(this.script);
|
|
1769
|
-
if (!this.once && t.length > 0)
|
|
1770
|
-
for (const n of t)
|
|
1771
|
-
this.removeTag(n);
|
|
1772
|
-
return this.injectScript();
|
|
1773
|
-
}
|
|
1774
|
-
injectScript() {
|
|
1775
|
-
const e = window;
|
|
1776
|
-
return new Promise((t, n) => {
|
|
1777
|
-
try {
|
|
1778
|
-
const o = document.createElement("script");
|
|
1779
|
-
o.src = this.src, o.async = this.async, o.defer = this.defer, o.dataset.identifier = this.identifier, o.addEventListener("error", (i) => n(new Error(`[ScriptLoader](injectScript) ${i.message}`))), o.addEventListener("load", (i) => (this.script = i, e[this.identifier] = i, t(i))), document.head.append(o);
|
|
1780
|
-
} catch (o) {
|
|
1781
|
-
throw new Error(`[ScriptLoader](init) ${o}`);
|
|
1782
|
-
}
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
function Bs(s) {
|
|
1787
|
-
return new Promise((e) => setTimeout(e, s));
|
|
1788
|
-
}
|
|
1789
|
-
function uo(s, e) {
|
|
1790
|
-
let t = !1, n, o;
|
|
1791
|
-
return function(...i) {
|
|
1792
|
-
t ? (clearTimeout(n), n = setTimeout(() => {
|
|
1793
|
-
Date.now() - o >= e && (s.apply(this, i), o = Date.now());
|
|
1794
|
-
}, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
|
|
1795
|
-
};
|
|
1796
|
-
}
|
|
1797
|
-
const Ns = ["onKeypress"], Fs = { class: "m-fullscreen-img-scroller" }, js = ["src", "alt"], qs = /* @__PURE__ */ be({
|
|
1798
|
-
__name: "MazFullscreenImg",
|
|
1799
|
-
props: {
|
|
1800
|
-
src: {},
|
|
1801
|
-
clickedElementBounds: { default: void 0 },
|
|
1802
|
-
offset: { default: void 0 },
|
|
1803
|
-
animation: { default: () => ({
|
|
1804
|
-
duration: 300,
|
|
1805
|
-
easing: "ease-in-out"
|
|
1806
|
-
}) },
|
|
1807
|
-
openInstanceClass: { default: "m-fullscreen-img-instance" },
|
|
1808
|
-
clickedElement: {},
|
|
1809
|
-
destroy: { type: Function, default: void 0 },
|
|
1810
|
-
alt: { default: void 0 },
|
|
1811
|
-
zoom: { type: Boolean, default: !0 }
|
|
1812
|
-
},
|
|
1813
|
-
emits: ["close", "previous", "next", "before-close"],
|
|
1814
|
-
setup(s, { emit: e }) {
|
|
1815
|
-
const t = s, n = e, o = H(() => import("./MazSpinner.Cx7mdOJ3.mjs")), i = H(() => import("./x-mark.CnZwVvA7.mjs")), r = H(() => import("./chevron-left.BqVOLRdC.mjs")), a = b(!1), l = b(!1), u = b(!1), y = b(!1), T = b(!1), w = Ft({
|
|
1816
|
-
running: !1,
|
|
1817
|
-
ended: !1
|
|
1818
|
-
}), f = b(t.clickedElement), k = h(() => t.clickedElement.getBoundingClientRect()), z = b(), m = b(t.src), d = b(t.alt), C = b(), p = b(), S = b(!0), D = h(() => ({
|
|
1819
|
-
"--is-zoomed": T.value,
|
|
1820
|
-
"--invisible": S.value,
|
|
1821
|
-
"--absolute": !T.value
|
|
1822
|
-
}));
|
|
1823
|
-
function L() {
|
|
1824
|
-
var g, E;
|
|
1825
|
-
p.value && (z.value = ((g = p.value) == null ? void 0 : g.naturalWidth) > ((E = p.value) == null ? void 0 : E.naturalHeight)), a.value = !0, l.value = !1, u.value = !0;
|
|
1826
|
-
}
|
|
1827
|
-
G(
|
|
1828
|
-
u,
|
|
1829
|
-
(g) => {
|
|
1830
|
-
g && x();
|
|
1831
|
-
},
|
|
1832
|
-
{ immediate: !0 }
|
|
1833
|
-
);
|
|
1834
|
-
function P() {
|
|
1835
|
-
n("before-close"), M();
|
|
1836
|
-
}
|
|
1837
|
-
function j(g) {
|
|
1838
|
-
g.key === "Escape" && (g.preventDefault(), P()), (g.key === "ArrowLeft" || g.key === "ArrowRight") && (g.preventDefault(), fe(g.key === "ArrowRight" ? "next" : "previous"));
|
|
1839
|
-
}
|
|
1840
|
-
function ne() {
|
|
1841
|
-
document.documentElement.classList.add("--m-fullscreen-open");
|
|
1842
|
-
}
|
|
1843
|
-
function Q() {
|
|
1844
|
-
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
1845
|
-
}
|
|
1846
|
-
function de() {
|
|
1847
|
-
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
1848
|
-
}
|
|
1849
|
-
function $e(g, E) {
|
|
1850
|
-
return E < 0 ? g.length - 1 : E >= g.length ? 0 : E;
|
|
1851
|
-
}
|
|
1852
|
-
function me(g, E) {
|
|
1853
|
-
g.classList.remove(t.openInstanceClass), E.classList.add(t.openInstanceClass);
|
|
1854
|
-
const I = E.getAttribute("data-src"), $ = E.getAttribute("data-alt");
|
|
1855
|
-
d.value = $, m.value = I ?? m.value;
|
|
1856
|
-
}
|
|
1857
|
-
function fe(g) {
|
|
1858
|
-
S.value = !0;
|
|
1859
|
-
const E = document.querySelector(
|
|
1860
|
-
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
1861
|
-
);
|
|
1862
|
-
if (E) {
|
|
1863
|
-
const I = de(), $ = I.indexOf(E), _ = g === "next" ? $ + 1 : $ - 1, K = I[$e(I, _)];
|
|
1864
|
-
f.value = K, K && me(E, K), n(g), a.value = !1, l.value = !0, mt(() => a.value === !0, () => {
|
|
1865
|
-
S.value = !1, T.value ? he() : v();
|
|
1866
|
-
}, {
|
|
1867
|
-
expectedValue: !0,
|
|
1868
|
-
interval: 100,
|
|
1869
|
-
maxAttempts: 50
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
function he() {
|
|
1874
|
-
const g = p.value;
|
|
1875
|
-
if (!g) {
|
|
1876
|
-
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1877
|
-
return;
|
|
1878
|
-
}
|
|
1879
|
-
g.style.removeProperty("max-width"), g.style.removeProperty("max-height"), g == null || g.style.removeProperty("top"), g == null || g.style.removeProperty("left"), z.value ? (g.style.height = "100vh", g.style.removeProperty("width")) : (g.style.width = "100vw", g.style.removeProperty("height"));
|
|
1880
|
-
}
|
|
1881
|
-
function Ve() {
|
|
1882
|
-
T.value ? (T.value = !T.value, v()) : (T.value = !T.value, he());
|
|
1883
|
-
}
|
|
1884
|
-
function oe(g) {
|
|
1885
|
-
var I;
|
|
1886
|
-
w.running = !0, S.value = !1;
|
|
1887
|
-
const E = (I = p.value) == null ? void 0 : I.animate(g, {
|
|
1888
|
-
duration: t.animation.duration,
|
|
1889
|
-
easing: t.animation.easing
|
|
1890
|
-
});
|
|
1891
|
-
if (!E) {
|
|
1892
|
-
console.error("[maz-ui](vFullscreenImg) animation is not defined"), w.running = !1, w.ended = !0;
|
|
1893
|
-
return;
|
|
1894
|
-
}
|
|
1895
|
-
return E;
|
|
1896
|
-
}
|
|
1897
|
-
function ke(g = t.offset ?? 0) {
|
|
1898
|
-
const E = f.value.clientWidth || 1, I = f.value.clientHeight || 1, $ = window.innerWidth, _ = window.innerHeight, K = Math.min(
|
|
1899
|
-
($ - 2 * g) / E,
|
|
1900
|
-
(_ - 2 * g) / I
|
|
1901
|
-
), He = ($ - E * K) / 2, Be = (_ - I * K) / 2;
|
|
1902
|
-
return {
|
|
1903
|
-
centerX: He,
|
|
1904
|
-
centerY: Be,
|
|
1905
|
-
width: E,
|
|
1906
|
-
height: I,
|
|
1907
|
-
scale: K
|
|
1908
|
-
};
|
|
1909
|
-
}
|
|
1910
|
-
function Ce({ trigger: g }) {
|
|
1911
|
-
const { width: E, height: I, scale: $, centerX: _, centerY: K } = ke(), { top: He, left: Be, width: Pt, height: Mt } = k.value, Ye = [
|
|
1912
|
-
{
|
|
1913
|
-
top: `${He}px`,
|
|
1914
|
-
left: `${Be}px`,
|
|
1915
|
-
width: `${Pt}px`,
|
|
1916
|
-
height: `${Mt}px`,
|
|
1917
|
-
opacity: 0
|
|
1918
|
-
},
|
|
1919
|
-
{
|
|
1920
|
-
top: `${K}px`,
|
|
1921
|
-
left: `${_}px`,
|
|
1922
|
-
width: `${E * $}px`,
|
|
1923
|
-
height: `${I * $}px`,
|
|
1924
|
-
opacity: 1
|
|
1925
|
-
}
|
|
1926
|
-
];
|
|
1927
|
-
return {
|
|
1928
|
-
frames: g === "open" ? Ye : Ye.reverse()
|
|
1929
|
-
};
|
|
1930
|
-
}
|
|
1931
|
-
function v() {
|
|
1932
|
-
const { height: g, width: E, scale: I } = ke(), $ = z.value ? {
|
|
1933
|
-
width: `${E * I}px`,
|
|
1934
|
-
maxHeight: `${g * I}px`
|
|
1935
|
-
} : {
|
|
1936
|
-
height: `${g * I}px`,
|
|
1937
|
-
maxWidth: `${E * I}px`
|
|
1938
|
-
};
|
|
1939
|
-
if (!p.value) {
|
|
1940
|
-
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1941
|
-
return;
|
|
1942
|
-
}
|
|
1943
|
-
z.value ? (p.value.style.removeProperty("height"), p.value.style.removeProperty("maxHeight")) : (p.value.style.removeProperty("width"), p.value.style.removeProperty("maxWidth")), Object.assign(p.value.style, $);
|
|
1944
|
-
}
|
|
1945
|
-
function x() {
|
|
1946
|
-
const { frames: g } = Ce({
|
|
1947
|
-
trigger: "open"
|
|
1948
|
-
}), E = oe(g);
|
|
1949
|
-
if (!E) {
|
|
1950
|
-
console.error("[maz-ui](vFullscreenImg) open animation is not defined"), v();
|
|
1951
|
-
return;
|
|
1952
|
-
}
|
|
1953
|
-
E.onfinish = () => {
|
|
1954
|
-
v(), w.running = !1, w.ended = !0;
|
|
1955
|
-
};
|
|
1956
|
-
}
|
|
1957
|
-
function M() {
|
|
1958
|
-
const { frames: g } = Ce({
|
|
1959
|
-
trigger: "close"
|
|
1960
|
-
}), E = oe(g);
|
|
1961
|
-
function I() {
|
|
1962
|
-
var $, _;
|
|
1963
|
-
n("close"), ($ = C.value) == null || $.remove(), (_ = t.destroy) == null || _.call(t), w.running = !1, w.ended = !0;
|
|
1964
|
-
}
|
|
1965
|
-
if (!E) {
|
|
1966
|
-
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), I();
|
|
1967
|
-
return;
|
|
1968
|
-
}
|
|
1969
|
-
E.onfinish = I;
|
|
1970
|
-
}
|
|
1971
|
-
function ve() {
|
|
1972
|
-
T.value || v();
|
|
1973
|
-
}
|
|
1974
|
-
return ce(() => {
|
|
1975
|
-
l.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", ve), ne(), y.value = de().length > 1;
|
|
1976
|
-
}), lt(() => {
|
|
1977
|
-
document.removeEventListener("keydown", j), window.removeEventListener("resize", ve), Q();
|
|
1978
|
-
}), (g, E) => (A(), U("div", {
|
|
1979
|
-
ref_key: "FullscreenImgElement",
|
|
1980
|
-
ref: C,
|
|
1981
|
-
role: "button",
|
|
1982
|
-
class: "m-fullscreen-img m-reset-css",
|
|
1983
|
-
tabindex: "0",
|
|
1984
|
-
onClick: Z(P, ["stop"]),
|
|
1985
|
-
onKeypress: jt(Z(P, ["prevent"]), ["esc"])
|
|
1986
|
-
}, [
|
|
1987
|
-
u.value && y.value ? (A(), U("button", {
|
|
1988
|
-
key: 0,
|
|
1989
|
-
type: "button",
|
|
1990
|
-
class: "m-fullscreen-btn --next",
|
|
1991
|
-
onClick: E[0] || (E[0] = Z((I) => fe("next"), ["stop"]))
|
|
1992
|
-
}, [
|
|
1993
|
-
ee(O(r), { class: "maz-rotate-180" })
|
|
1994
|
-
])) : B("v-if", !0),
|
|
1995
|
-
u.value && y.value ? (A(), U("button", {
|
|
1996
|
-
key: 1,
|
|
1997
|
-
type: "button",
|
|
1998
|
-
class: "m-fullscreen-btn --previous",
|
|
1999
|
-
onClick: E[1] || (E[1] = Z((I) => fe("previous"), ["stop"]))
|
|
2000
|
-
}, [
|
|
2001
|
-
ee(O(r))
|
|
2002
|
-
])) : B("v-if", !0),
|
|
2003
|
-
V("button", {
|
|
2004
|
-
type: "button",
|
|
2005
|
-
class: "m-fullscreen-btn --close",
|
|
2006
|
-
onClick: P
|
|
2007
|
-
}, [
|
|
2008
|
-
ee(O(i))
|
|
2009
|
-
]),
|
|
2010
|
-
V("div", Fs, [
|
|
2011
|
-
V("img", {
|
|
2012
|
-
ref_key: "ImgElement",
|
|
2013
|
-
ref: p,
|
|
2014
|
-
src: m.value,
|
|
2015
|
-
alt: d.value ?? void 0,
|
|
2016
|
-
tabindex: "0",
|
|
2017
|
-
class: ue([D.value]),
|
|
2018
|
-
onLoad: L,
|
|
2019
|
-
onClick: E[2] || (E[2] = Z((I) => g.zoom && Ve(), ["stop"]))
|
|
2020
|
-
}, null, 42, js),
|
|
2021
|
-
ut(ee(
|
|
2022
|
-
O(o),
|
|
2023
|
-
{ class: "m-fullscreen-img-loader" },
|
|
2024
|
-
null,
|
|
2025
|
-
512
|
|
2026
|
-
/* NEED_PATCH */
|
|
2027
|
-
), [
|
|
2028
|
-
[ct, l.value]
|
|
2029
|
-
])
|
|
2030
|
-
])
|
|
2031
|
-
], 40, Ns));
|
|
2032
|
-
}
|
|
2033
|
-
}), Me = (s, e) => {
|
|
2034
|
-
const t = s.__vccOpts || s;
|
|
2035
|
-
for (const [n, o] of e)
|
|
2036
|
-
t[n] = o;
|
|
2037
|
-
return t;
|
|
2038
|
-
}, Us = /* @__PURE__ */ Me(qs, [["__scopeId", "data-v-24a18baf"]]), tt = "m-fullscreen-is-open";
|
|
2039
|
-
class Ws {
|
|
2040
|
-
constructor() {
|
|
2041
|
-
c(this, "options");
|
|
2042
|
-
c(this, "defaultOptions", {
|
|
2043
|
-
scaleOnHover: !1,
|
|
2044
|
-
blurOnHover: !1,
|
|
2045
|
-
disabled: !1,
|
|
2046
|
-
zoom: !0,
|
|
2047
|
-
offset: 80,
|
|
2048
|
-
animation: {
|
|
2049
|
-
duration: 300,
|
|
2050
|
-
easing: "ease-in-out"
|
|
2051
|
-
}
|
|
2052
|
-
});
|
|
2053
|
-
c(this, "mouseEnterListener");
|
|
2054
|
-
c(this, "mouseLeaveListener");
|
|
2055
|
-
c(this, "renderPreviewListener");
|
|
2056
|
-
}
|
|
2057
|
-
buildOptions(e, t) {
|
|
2058
|
-
const n = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, o = (n == null ? void 0 : n.src) ?? this.getImgSrc(e), i = (n == null ? void 0 : n.alt) ?? this.getImgAlt(e);
|
|
2059
|
-
return {
|
|
2060
|
-
...this.defaultOptions,
|
|
2061
|
-
...n,
|
|
2062
|
-
src: o,
|
|
2063
|
-
alt: i
|
|
2064
|
-
};
|
|
2065
|
-
}
|
|
2066
|
-
get allInstances() {
|
|
2067
|
-
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
2068
|
-
}
|
|
2069
|
-
getImgSrc(e) {
|
|
2070
|
-
var n;
|
|
2071
|
-
const t = ((n = this.options) == null ? void 0 : n.src) || e.getAttribute("src") || e.getAttribute("data-src");
|
|
2072
|
-
if (!t)
|
|
2073
|
-
throw new Error(
|
|
2074
|
-
'[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes'
|
|
2075
|
-
);
|
|
2076
|
-
return t;
|
|
2077
|
-
}
|
|
2078
|
-
getImgAlt(e) {
|
|
2079
|
-
var t;
|
|
2080
|
-
return ((t = this.options) == null ? void 0 : t.alt) || e.getAttribute("alt") || e.getAttribute("data-alt");
|
|
2081
|
-
}
|
|
2082
|
-
create(e, t) {
|
|
2083
|
-
if (this.options = this.buildOptions(e, t), this.options.disabled)
|
|
2084
|
-
return;
|
|
2085
|
-
e.style.cursor = "move", (this.options.scaleOnHover || this.options.blurOnHover) && (e.style.transition = "all 200ms ease-in-out"), e.classList.add("m-fullscreen-img-instance"), e.setAttribute("data-src", this.getImgSrc(e));
|
|
2086
|
-
const n = this.getImgAlt(e);
|
|
2087
|
-
n && e.setAttribute("data-alt", n), this.mouseEnterListener = () => this.mouseEnter(e), this.mouseLeaveListener = () => this.mouseLeave(e), this.renderPreviewListener = () => this.renderPreview(e), e.addEventListener("mouseenter", this.mouseEnterListener), e.addEventListener("mouseleave", this.mouseLeaveListener), e.addEventListener("click", this.renderPreviewListener);
|
|
2088
|
-
}
|
|
2089
|
-
update(e, t) {
|
|
2090
|
-
this.options = this.buildOptions(e, t);
|
|
2091
|
-
}
|
|
2092
|
-
remove(e) {
|
|
2093
|
-
e.removeEventListener("mouseenter", this.mouseEnterListener), e.removeEventListener("mouseleave", this.mouseLeaveListener), e.removeEventListener("click", this.renderPreviewListener), e.classList.remove("m-fullscreen-img-instance"), e.style.cursor = "";
|
|
2094
|
-
}
|
|
2095
|
-
renderPreview(e) {
|
|
2096
|
-
return e.classList.add(tt), Ke(Us, {
|
|
2097
|
-
props: {
|
|
2098
|
-
...this.options,
|
|
2099
|
-
openInstanceClass: tt,
|
|
2100
|
-
clickedElement: e,
|
|
2101
|
-
clickedElementBounds: e.getBoundingClientRect()
|
|
2102
|
-
},
|
|
2103
|
-
addDestroyInProps: !0
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
mouseLeave(e) {
|
|
2107
|
-
this.options.scaleOnHover && (e.style.transform = ""), this.options.blurOnHover && (e.style.filter = ""), e.style.zIndex = "";
|
|
2108
|
-
}
|
|
2109
|
-
mouseEnter(e) {
|
|
2110
|
-
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
let Se;
|
|
2114
|
-
const Rs = {
|
|
2115
|
-
mounted(s, e) {
|
|
2116
|
-
return Se = new Ws(), Se.create(s, e);
|
|
2117
|
-
},
|
|
2118
|
-
updated(s, e) {
|
|
2119
|
-
return Se.update(s, e);
|
|
2120
|
-
},
|
|
2121
|
-
unmounted(s) {
|
|
2122
|
-
return Se.remove(s);
|
|
2123
|
-
}
|
|
2124
|
-
}, _s = {
|
|
2125
|
-
install(s) {
|
|
2126
|
-
s.directive("fullscreen-img", Rs);
|
|
2127
|
-
}
|
|
2128
|
-
}, Ks = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", We = {
|
|
2129
|
-
baseClass: "m-lazy-img",
|
|
2130
|
-
loadedClass: "m-lazy-loaded",
|
|
2131
|
-
loadingClass: "m-lazy-loading",
|
|
2132
|
-
errorClass: "m-lazy-error",
|
|
2133
|
-
noPhotoClass: "m-lazy-no-photo",
|
|
2134
|
-
noPhoto: !1,
|
|
2135
|
-
observerOnce: !0,
|
|
2136
|
-
loadOnce: !1,
|
|
2137
|
-
noUseErrorPhoto: !1,
|
|
2138
|
-
observerOptions: {
|
|
2139
|
-
threshold: 0.1
|
|
2140
|
-
}
|
|
2141
|
-
};
|
|
2142
|
-
class xt {
|
|
2143
|
-
constructor(e = {}) {
|
|
2144
|
-
c(this, "observers", []);
|
|
2145
|
-
c(this, "defaultOptions", We);
|
|
2146
|
-
c(this, "options");
|
|
2147
|
-
c(this, "onImgLoadedCallback");
|
|
2148
|
-
c(this, "onImgErrorCallback");
|
|
2149
|
-
c(this, "hasImgLoaded", !1);
|
|
2150
|
-
this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
|
|
2151
|
-
}
|
|
2152
|
-
async loadErrorPhoto() {
|
|
2153
|
-
const { default: e } = await import("./no-photography.BJX8HSus.mjs");
|
|
2154
|
-
return e;
|
|
2155
|
-
}
|
|
2156
|
-
buildOptions(e) {
|
|
2157
|
-
return {
|
|
2158
|
-
...this.defaultOptions,
|
|
2159
|
-
...e,
|
|
2160
|
-
observerOptions: {
|
|
2161
|
-
...this.defaultOptions.observerOptions,
|
|
2162
|
-
...e.observerOptions
|
|
2163
|
-
}
|
|
2164
|
-
};
|
|
2165
|
-
}
|
|
2166
|
-
removeClass(e, t) {
|
|
2167
|
-
e.classList.remove(t);
|
|
2168
|
-
}
|
|
2169
|
-
addClass(e, t) {
|
|
2170
|
-
e.classList.add(t);
|
|
2171
|
-
}
|
|
2172
|
-
removeAllStateClasses(e) {
|
|
2173
|
-
this.removeClass(e, this.options.loadedClass), this.removeClass(e, this.options.loadingClass), this.removeClass(e, this.options.errorClass), this.removeClass(e, this.options.noPhotoClass);
|
|
2174
|
-
}
|
|
2175
|
-
setBaseClass(e) {
|
|
2176
|
-
this.addClass(e, this.options.baseClass);
|
|
2177
|
-
}
|
|
2178
|
-
imageIsLoading(e) {
|
|
2179
|
-
var t, n;
|
|
2180
|
-
this.addClass(e, this.options.loadingClass), (n = (t = this.options).onLoading) == null || n.call(t, e);
|
|
2181
|
-
}
|
|
2182
|
-
imageHasNoPhoto(e) {
|
|
2183
|
-
this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.noPhotoClass), this.setDefaultPhoto(e);
|
|
2184
|
-
}
|
|
2185
|
-
imageIsLoaded(e) {
|
|
2186
|
-
var t, n;
|
|
2187
|
-
this.hasImgLoaded = !0, this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.loadedClass), (n = (t = this.options).onLoaded) == null || n.call(t, e);
|
|
2188
|
-
}
|
|
2189
|
-
imageHasError(e) {
|
|
2190
|
-
var t, n;
|
|
2191
|
-
this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.errorClass), (n = (t = this.options).onError) == null || n.call(t, e), this.setDefaultPhoto(e);
|
|
2192
|
-
}
|
|
2193
|
-
getSrc(e) {
|
|
2194
|
-
return typeof e.value == "object" ? e.value.src : e.value;
|
|
2195
|
-
}
|
|
2196
|
-
getImageUrl(e, t) {
|
|
2197
|
-
const n = this.getImgElement(e).getAttribute("data-lazy-src");
|
|
2198
|
-
return n || this.getSrc(t);
|
|
2199
|
-
}
|
|
2200
|
-
async setPictureSourceUrls(e) {
|
|
2201
|
-
const t = e.querySelectorAll("source");
|
|
2202
|
-
if (t.length > 0)
|
|
2203
|
-
for await (const n of t) {
|
|
2204
|
-
const o = n.getAttribute("data-lazy-srcset");
|
|
2205
|
-
if (o)
|
|
2206
|
-
n.srcset = o;
|
|
2207
|
-
else
|
|
2208
|
-
return this.imageHasError(e);
|
|
2209
|
-
}
|
|
2210
|
-
else
|
|
2211
|
-
this.imageHasError(e);
|
|
2212
|
-
}
|
|
2213
|
-
hasBgImgMode(e) {
|
|
2214
|
-
return e.arg === "bg-image";
|
|
2215
|
-
}
|
|
2216
|
-
isPictureElement(e) {
|
|
2217
|
-
return e instanceof HTMLPictureElement;
|
|
2218
|
-
}
|
|
2219
|
-
getImgElement(e) {
|
|
2220
|
-
return this.isPictureElement(e) ? e.querySelector("img") : e;
|
|
2221
|
-
}
|
|
2222
|
-
async setDefaultPhoto(e) {
|
|
2223
|
-
if (this.options.noUseErrorPhoto)
|
|
2224
|
-
return;
|
|
2225
|
-
const t = this.options.fallbackSrc ?? this.options.errorPhoto;
|
|
2226
|
-
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
2227
|
-
const n = t ?? await this.loadErrorPhoto(), o = e.querySelectorAll("source");
|
|
2228
|
-
if (o.length > 0)
|
|
2229
|
-
for await (const i of o)
|
|
2230
|
-
i.srcset = n;
|
|
2231
|
-
else
|
|
2232
|
-
this.setImgSrc(e, n);
|
|
2233
|
-
}
|
|
2234
|
-
addEventListenerToImg(e) {
|
|
2235
|
-
const t = this.getImgElement(e);
|
|
2236
|
-
t.addEventListener("load", () => this.onImgLoadedCallback(e), {
|
|
2237
|
-
once: !0
|
|
2238
|
-
}), t.addEventListener("error", (n) => this.onImgErrorCallback(e, n), { once: !0 });
|
|
2239
|
-
}
|
|
2240
|
-
async loadImage(e, t) {
|
|
2241
|
-
if (this.imageIsLoading(e), this.isPictureElement(e))
|
|
2242
|
-
this.addEventListenerToImg(e), await this.setPictureSourceUrls(e);
|
|
2243
|
-
else {
|
|
2244
|
-
const n = this.getImageUrl(e, t);
|
|
2245
|
-
if (!n)
|
|
2246
|
-
return this.imageHasError(e);
|
|
2247
|
-
this.hasBgImgMode(t) ? (e.style.backgroundImage = `url('${n}')`, this.imageIsLoaded(e)) : (this.addEventListenerToImg(e), this.setImgSrc(e, n));
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
setImgSrc(e, t) {
|
|
2251
|
-
const n = this.getImgElement(e);
|
|
2252
|
-
n.src = t;
|
|
2253
|
-
}
|
|
2254
|
-
handleIntersectionObserver(e, t, n, o) {
|
|
2255
|
-
var i, r;
|
|
2256
|
-
this.observers.push(o);
|
|
2257
|
-
for (const a of n)
|
|
2258
|
-
if (a.isIntersecting) {
|
|
2259
|
-
if ((r = (i = this.options).onIntersecting) == null || r.call(i, a.target), this.options.observerOnce && o.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
2260
|
-
return;
|
|
2261
|
-
this.loadImage(e, t);
|
|
2262
|
-
}
|
|
2263
|
-
}
|
|
2264
|
-
createObserver(e, t) {
|
|
2265
|
-
const n = (r, a) => {
|
|
2266
|
-
this.handleIntersectionObserver(e, t, r, a);
|
|
2267
|
-
}, o = this.options.observerOptions;
|
|
2268
|
-
new IntersectionObserver(n, o).observe(e);
|
|
2269
|
-
}
|
|
2270
|
-
async imageHandler(e, t, n) {
|
|
2271
|
-
if (n === "update")
|
|
2272
|
-
for await (const o of this.observers) o.unobserve(e);
|
|
2273
|
-
window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
|
|
2274
|
-
}
|
|
2275
|
-
async bindUpdateHandler(e, t, n) {
|
|
2276
|
-
if (this.options.noPhoto)
|
|
2277
|
-
return this.imageHasNoPhoto(e);
|
|
2278
|
-
await this.imageHandler(e, t, n);
|
|
2279
|
-
}
|
|
2280
|
-
async add(e, t) {
|
|
2281
|
-
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
2282
|
-
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
2283
|
-
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ks), await this.bindUpdateHandler(e, t, "bind");
|
|
2284
|
-
}
|
|
2285
|
-
async update(e, t) {
|
|
2286
|
-
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
2287
|
-
}
|
|
2288
|
-
remove(e, t) {
|
|
2289
|
-
this.hasImgLoaded = !1, this.hasBgImgMode(t) && (e.style.backgroundImage = ""), this.removeAllStateClasses(e);
|
|
2290
|
-
for (const n of this.observers)
|
|
2291
|
-
n.unobserve(e);
|
|
2292
|
-
this.observers = [];
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
let xe;
|
|
2296
|
-
const co = {
|
|
2297
|
-
created(s, e) {
|
|
2298
|
-
const t = typeof e.value == "object" ? e.value : {};
|
|
2299
|
-
xe = new xt(t), xe.add(s, e);
|
|
2300
|
-
},
|
|
2301
|
-
updated(s, e) {
|
|
2302
|
-
xe.update(s, e);
|
|
2303
|
-
},
|
|
2304
|
-
unmounted(s, e) {
|
|
2305
|
-
xe.remove(s, e);
|
|
2306
|
-
}
|
|
2307
|
-
}, Ys = {
|
|
2308
|
-
install(s, e = {}) {
|
|
2309
|
-
const t = {
|
|
2310
|
-
...We,
|
|
2311
|
-
...e,
|
|
2312
|
-
observerOptions: {
|
|
2313
|
-
...We.observerOptions,
|
|
2314
|
-
...e.observerOptions
|
|
2315
|
-
}
|
|
2316
|
-
}, n = new xt(t);
|
|
2317
|
-
s.directive("lazy-img", {
|
|
2318
|
-
created: n.add.bind(n),
|
|
2319
|
-
updated: n.update.bind(n),
|
|
2320
|
-
unmounted: n.remove.bind(n)
|
|
2321
|
-
});
|
|
2322
|
-
}
|
|
2323
|
-
}, Zs = `
|
|
2324
|
-
.maz-zoom-img {
|
|
2325
|
-
position: fixed;
|
|
2326
|
-
top: 0;
|
|
2327
|
-
bottom: 0;
|
|
2328
|
-
left: 0;
|
|
2329
|
-
right: 0;
|
|
2330
|
-
padding: 1rem;
|
|
2331
|
-
z-index: 1050;
|
|
2332
|
-
background-color: hsla(238, 15%, 40%, 0.7);
|
|
2333
|
-
display: flex;
|
|
2334
|
-
align-items: center;
|
|
2335
|
-
justify-content: center;
|
|
2336
|
-
flex-direction: column;
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
.maz-zoom-img,
|
|
2340
|
-
.maz-zoom-img * {
|
|
2341
|
-
box-sizing: border-box;
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
.maz-zoom-img .maz-zoom-img__wrapper {
|
|
2345
|
-
position: relative;
|
|
2346
|
-
display: flex;
|
|
2347
|
-
justify-content: center;
|
|
2348
|
-
align-items: center;
|
|
2349
|
-
min-width: 0;
|
|
2350
|
-
min-height: 0;
|
|
2351
|
-
max-width: 100%;
|
|
2352
|
-
max-height: 100%;
|
|
2353
|
-
transition: all 300ms ease-in-out;
|
|
2354
|
-
opacity: 0;
|
|
2355
|
-
transform: scale(0.5);
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {
|
|
2359
|
-
opacity: 1;
|
|
2360
|
-
transform: scale(1);
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__loader {
|
|
2364
|
-
position: absolute;
|
|
2365
|
-
top: 0;
|
|
2366
|
-
bottom: 0;
|
|
2367
|
-
left: 0;
|
|
2368
|
-
right: 0;
|
|
2369
|
-
display: flex;
|
|
2370
|
-
align-items: center;
|
|
2371
|
-
justify-content: center;
|
|
2372
|
-
background-color: hsla(238, 15%, 40%, 0.7);
|
|
2373
|
-
border-radius: 1rem;
|
|
2374
|
-
z-index: 2;
|
|
2375
|
-
min-width: 60px;
|
|
2376
|
-
min-height: 60px;
|
|
2377
|
-
}
|
|
2378
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {
|
|
2379
|
-
display: none;
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
@-webkit-keyframes spin {
|
|
2383
|
-
0% { transform: rotate(0deg); }
|
|
2384
|
-
100% { transform: rotate(360deg); }
|
|
2385
|
-
}
|
|
2386
|
-
|
|
2387
|
-
@keyframes spin {
|
|
2388
|
-
0% { transform: rotate(0deg); }
|
|
2389
|
-
100% { transform: rotate(360deg); }
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {
|
|
2393
|
-
animation: spin .6s linear infinite;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
.maz-zoom-img img {
|
|
2397
|
-
max-width: 100%;
|
|
2398
|
-
max-height: 100%;
|
|
2399
|
-
min-width: 0;
|
|
2400
|
-
border-radius: 1rem;
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
.maz-zoom-img .maz-zoom-btn {
|
|
2404
|
-
margin: 0 auto;
|
|
2405
|
-
border: none;
|
|
2406
|
-
background-color: hsla(0, 0%, 7%, 0.5);
|
|
2407
|
-
box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);
|
|
2408
|
-
height: 2.2rem;
|
|
2409
|
-
min-height: 2.2rem;
|
|
2410
|
-
width: 2.2rem;
|
|
2411
|
-
min-width: 2.2rem;
|
|
2412
|
-
display: flex;
|
|
2413
|
-
align-items: center;
|
|
2414
|
-
justify-content: center;
|
|
2415
|
-
border-radius: 2.2rem;
|
|
2416
|
-
cursor: pointer;
|
|
2417
|
-
flex: 0 0 auto;
|
|
2418
|
-
outline: none;
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
.maz-zoom-img .maz-zoom-btn svg {
|
|
2422
|
-
fill: white;
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {
|
|
2426
|
-
position: absolute;
|
|
2427
|
-
top: 0.5rem;
|
|
2428
|
-
right: 0.5rem;
|
|
2429
|
-
z-index: 1;
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {
|
|
2433
|
-
position: absolute;
|
|
2434
|
-
left: 0.5rem;
|
|
2435
|
-
z-index: 1;
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {
|
|
2439
|
-
position: absolute;
|
|
2440
|
-
right: 0.5rem;
|
|
2441
|
-
z-index: 1;
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
.maz-zoom-img .maz-zoom-btn:hover {
|
|
2445
|
-
background-color: hsl(0, 0%, 0%);
|
|
2446
|
-
}`, st = {
|
|
2447
|
-
close: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',
|
|
2448
|
-
next: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',
|
|
2449
|
-
previous: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',
|
|
2450
|
-
spinner: '<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'
|
|
2451
|
-
};
|
|
2452
|
-
class Xs {
|
|
2453
|
-
constructor(e) {
|
|
2454
|
-
c(this, "options");
|
|
2455
|
-
c(this, "loader");
|
|
2456
|
-
c(this, "wrapper");
|
|
2457
|
-
c(this, "img");
|
|
2458
|
-
c(this, "keydownHandler");
|
|
2459
|
-
c(this, "onImgLoadedCallback");
|
|
2460
|
-
c(this, "buttonsAdded");
|
|
2461
|
-
c(this, "defaultOptions", {
|
|
2462
|
-
scale: !0,
|
|
2463
|
-
blur: !0,
|
|
2464
|
-
disabled: !1
|
|
2465
|
-
});
|
|
2466
|
-
c(this, "mouseEnterListener");
|
|
2467
|
-
c(this, "mouseLeaveListener");
|
|
2468
|
-
c(this, "renderPreviewListener");
|
|
2469
|
-
if (!e.value)
|
|
2470
|
-
throw new Error(
|
|
2471
|
-
'[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`'
|
|
2472
|
-
);
|
|
2473
|
-
if (typeof e.value == "object" && !e.value.src)
|
|
2474
|
-
throw new Error("[maz-ui](zoom-img) src of image must be provided");
|
|
2475
|
-
this.buttonsAdded = !1, this.options = this.buildOptions(e), this.keydownHandler = this.keydownLister.bind(this), this.loader = this.getLoader(), this.wrapper = document.createElement("div"), this.wrapper.classList.add("maz-zoom-img__wrapper"), this.wrapper.prepend(this.loader), this.img = document.createElement("img"), this.onImgLoadedCallback = this.onImgLoaded.bind(this), this.imgEventHandler(!0);
|
|
2476
|
-
}
|
|
2477
|
-
buildOptions(e) {
|
|
2478
|
-
return {
|
|
2479
|
-
...this.defaultOptions,
|
|
2480
|
-
...typeof e.value == "object" ? e.value : { src: e.value }
|
|
2481
|
-
};
|
|
2482
|
-
}
|
|
2483
|
-
get allInstances() {
|
|
2484
|
-
return [...document.querySelectorAll(".maz-zoom-img-instance")];
|
|
2485
|
-
}
|
|
2486
|
-
create(e) {
|
|
2487
|
-
this.options.disabled || (e.style.cursor = "pointer", setTimeout(() => e.classList.add("maz-zoom-img-instance")), e.setAttribute("data-zoom-src", this.options.src), this.options.alt && e.setAttribute("data-zoom-alt", this.options.alt), e.style.transition = "all 300ms ease-in-out", this.mouseEnterListener = () => this.mouseEnter(e), this.mouseLeaveListener = () => this.mouseLeave(e), this.renderPreviewListener = () => this.renderPreview(e, this.options), e.addEventListener("mouseenter", this.mouseEnterListener), e.addEventListener("mouseleave", this.mouseLeaveListener), e.addEventListener("click", this.renderPreviewListener));
|
|
2488
|
-
}
|
|
2489
|
-
update(e) {
|
|
2490
|
-
this.options = this.buildOptions(e);
|
|
2491
|
-
}
|
|
2492
|
-
remove(e) {
|
|
2493
|
-
this.imgEventHandler(!1), e.removeEventListener("mouseenter", this.mouseEnterListener), e.removeEventListener("mouseleave", this.mouseLeaveListener), e.removeEventListener("click", this.renderPreviewListener), e.classList.remove("maz-zoom-img-instance"), e.removeAttribute("data-zoom-src"), e.removeAttribute("data-zoom-alt"), e.style.cursor = "";
|
|
2494
|
-
}
|
|
2495
|
-
renderPreview(e, t) {
|
|
2496
|
-
e.classList.add(
|
|
2497
|
-
"maz-is-open"
|
|
2498
|
-
/* OPEN */
|
|
2499
|
-
), this.addStyle(Zs);
|
|
2500
|
-
const n = document.createElement("div");
|
|
2501
|
-
n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (o) => {
|
|
2502
|
-
n.isEqualNode(o.target) && this.closePreview();
|
|
2503
|
-
}), typeof t == "object" && (this.img.setAttribute("src", t.src), t.alt && this.img.setAttribute("alt", t.alt), this.img.id = "MazImgElement"), this.wrapper.append(this.img), n.append(this.wrapper), document.body.append(n), this.keyboardEventHandler(!0), setTimeout(() => {
|
|
2504
|
-
n && n.classList.add("maz-animate");
|
|
2505
|
-
}, 100);
|
|
2506
|
-
}
|
|
2507
|
-
onImgLoaded() {
|
|
2508
|
-
this.wrapper.style.width = `${this.img.width}px`, this.wrapper.style.minWidth = "200px", this.loader.hidden = !0;
|
|
2509
|
-
const e = this.getButton(), t = [], n = this.allInstances.length > 1;
|
|
2510
|
-
if (!this.buttonsAdded) {
|
|
2511
|
-
if (this.buttonsAdded = !0, n) {
|
|
2512
|
-
const o = this.getButton("previous"), i = this.getButton("next");
|
|
2513
|
-
t.push(o, i);
|
|
2514
|
-
}
|
|
2515
|
-
this.wrapper.append(e), n && (this.wrapper.prepend(t[0]), this.wrapper.append(t[1]));
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
getLoader() {
|
|
2519
|
-
const e = document.createElement("div");
|
|
2520
|
-
return e.classList.add("maz-zoom-img__loader"), e.innerHTML = st.spinner, e;
|
|
2521
|
-
}
|
|
2522
|
-
mouseLeave(e) {
|
|
2523
|
-
this.options.scale && (e.style.transform = ""), this.options.blur && (e.style.filter = ""), e.style.zIndex = "";
|
|
2524
|
-
}
|
|
2525
|
-
mouseEnter(e) {
|
|
2526
|
-
e.style.zIndex = "1", this.options.scale && (e.style.transform = "scale(1.1)"), this.options.blur && (e.style.filter = "blur(2px)");
|
|
2527
|
-
}
|
|
2528
|
-
keydownLister(e) {
|
|
2529
|
-
e.preventDefault(), (e.key === "Escape" || e.key === " ") && this.closePreview(), (e.key === "ArrowLeft" || e.key === "ArrowRight") && this.nextPreviousImage(e.key === "ArrowRight");
|
|
2530
|
-
}
|
|
2531
|
-
getButton(e = "close") {
|
|
2532
|
-
const t = document.createElement("button");
|
|
2533
|
-
t.innerHTML = st[e];
|
|
2534
|
-
const n = () => e === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(e === "next") : null;
|
|
2535
|
-
return t.addEventListener("click", () => {
|
|
2536
|
-
n();
|
|
2537
|
-
}), t.classList.add("maz-zoom-btn"), t.classList.add(`maz-zoom-btn--${e}`), t;
|
|
2538
|
-
}
|
|
2539
|
-
closePreview() {
|
|
2540
|
-
const e = document.querySelector("#MazImgPreviewFullsize"), t = document.querySelector("#MazPreviewStyle"), n = document.querySelector(
|
|
2541
|
-
".maz-zoom-img-instance.maz-is-open"
|
|
2542
|
-
);
|
|
2543
|
-
n && n.classList.remove(
|
|
2544
|
-
"maz-is-open"
|
|
2545
|
-
/* OPEN */
|
|
2546
|
-
), e && e.classList.remove("maz-animate"), this.keyboardEventHandler(!1), setTimeout(() => {
|
|
2547
|
-
e && e.remove(), t && t.remove();
|
|
2548
|
-
}, 300);
|
|
2549
|
-
}
|
|
2550
|
-
getNewInstanceIndex(e) {
|
|
2551
|
-
let t = e;
|
|
2552
|
-
return t < 0 ? t = this.allInstances.length - 1 : t >= this.allInstances.length && (t = 0), t;
|
|
2553
|
-
}
|
|
2554
|
-
nextPreviousImage(e) {
|
|
2555
|
-
const t = e, n = document.querySelector(
|
|
2556
|
-
".maz-zoom-img-instance.maz-is-open"
|
|
2557
|
-
);
|
|
2558
|
-
if (n) {
|
|
2559
|
-
const o = this.allInstances.indexOf(n), i = t ? o + 1 : o - 1, r = this.allInstances[this.getNewInstanceIndex(i)];
|
|
2560
|
-
r && this.useNextInstance(n, r);
|
|
2561
|
-
}
|
|
2562
|
-
}
|
|
2563
|
-
useNextInstance(e, t) {
|
|
2564
|
-
e.classList.remove(
|
|
2565
|
-
"maz-is-open"
|
|
2566
|
-
/* OPEN */
|
|
2567
|
-
), t.classList.add(
|
|
2568
|
-
"maz-is-open"
|
|
2569
|
-
/* OPEN */
|
|
2570
|
-
);
|
|
2571
|
-
const n = t.getAttribute("data-zoom-src"), o = t.getAttribute("data-zoom-alt");
|
|
2572
|
-
this.wrapper.style.width = "", this.loader.hidden = !1, n && this.img.setAttribute("src", n), o && this.img.setAttribute("alt", o);
|
|
2573
|
-
}
|
|
2574
|
-
addStyle(e) {
|
|
2575
|
-
const t = document.createElement("style");
|
|
2576
|
-
t.id = "MazPreviewStyle", t.textContent = e, document.head.append(t);
|
|
2577
|
-
}
|
|
2578
|
-
keyboardEventHandler(e) {
|
|
2579
|
-
if (e)
|
|
2580
|
-
return document.addEventListener("keydown", this.keydownHandler);
|
|
2581
|
-
document.removeEventListener("keydown", this.keydownHandler);
|
|
2582
|
-
}
|
|
2583
|
-
imgEventHandler(e) {
|
|
2584
|
-
if (e)
|
|
2585
|
-
return this.img.addEventListener("load", this.onImgLoadedCallback);
|
|
2586
|
-
this.img.removeEventListener("load", this.onImgLoadedCallback);
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
let Oe;
|
|
2590
|
-
const Gs = {
|
|
2591
|
-
created(s, e) {
|
|
2592
|
-
Oe = new Xs(e), Oe.create(s);
|
|
2593
|
-
},
|
|
2594
|
-
updated(s, e) {
|
|
2595
|
-
Oe.update(e);
|
|
2596
|
-
},
|
|
2597
|
-
unmounted(s) {
|
|
2598
|
-
Oe.remove(s);
|
|
2599
|
-
}
|
|
2600
|
-
}, Qs = {
|
|
2601
|
-
install(s) {
|
|
2602
|
-
s.directive("zoom-img", Gs);
|
|
2603
|
-
}
|
|
2604
|
-
}, Js = [
|
|
2605
|
-
$s,
|
|
2606
|
-
Qs,
|
|
2607
|
-
Ys,
|
|
2608
|
-
Os,
|
|
2609
|
-
_s,
|
|
2610
|
-
Vs
|
|
2611
|
-
], mo = {
|
|
2612
|
-
install(s) {
|
|
2613
|
-
for (const e of Js)
|
|
2614
|
-
e.install(s, {});
|
|
2615
|
-
}
|
|
2616
|
-
};
|
|
2617
|
-
function en(s) {
|
|
2618
|
-
return s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "";
|
|
2619
|
-
}
|
|
2620
|
-
const tn = {
|
|
2621
|
-
style: "currency",
|
|
2622
|
-
minimumFractionDigits: 2,
|
|
2623
|
-
round: !1
|
|
2624
|
-
};
|
|
2625
|
-
function sn(s, e, t) {
|
|
2626
|
-
let n = Number(s);
|
|
2627
|
-
return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
|
|
2628
|
-
}
|
|
2629
|
-
function nn(s, e, t) {
|
|
2630
|
-
if (s === void 0)
|
|
2631
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
2632
|
-
if (e === void 0)
|
|
2633
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");
|
|
2634
|
-
if (typeof e != "string")
|
|
2635
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");
|
|
2636
|
-
if (t.currency === void 0)
|
|
2637
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
2638
|
-
}
|
|
2639
|
-
function on(s, e, t) {
|
|
2640
|
-
const n = {
|
|
2641
|
-
...tn,
|
|
2642
|
-
...t
|
|
2643
|
-
};
|
|
2644
|
-
nn(s, e, n);
|
|
2645
|
-
try {
|
|
2646
|
-
return sn(s, e, n);
|
|
2647
|
-
} catch (o) {
|
|
2648
|
-
throw new Error(`[maz-ui](FilterCurrency) ${o}`);
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
const rn = {
|
|
2652
|
-
month: "short",
|
|
2653
|
-
day: "numeric",
|
|
2654
|
-
year: "numeric"
|
|
2655
|
-
};
|
|
2656
|
-
function an(s, e, t) {
|
|
2657
|
-
if (e === void 0)
|
|
2658
|
-
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
2659
|
-
if (typeof e != "string")
|
|
2660
|
-
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
2661
|
-
const n = t ?? rn;
|
|
2662
|
-
try {
|
|
2663
|
-
const o = s instanceof Date ? s : new Date(s);
|
|
2664
|
-
return new Intl.DateTimeFormat(e, n).format(o);
|
|
2665
|
-
} catch (o) {
|
|
2666
|
-
throw new Error(`[maz-ui](FilterDate) ${o}`);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
const ln = {
|
|
2670
|
-
minimumFractionDigits: 2
|
|
2671
|
-
};
|
|
2672
|
-
function un(s, e, t) {
|
|
2673
|
-
const n = {
|
|
2674
|
-
...ln,
|
|
2675
|
-
...t
|
|
2676
|
-
};
|
|
2677
|
-
if (s === void 0)
|
|
2678
|
-
throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");
|
|
2679
|
-
if (e === void 0)
|
|
2680
|
-
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");
|
|
2681
|
-
if (typeof e != "string")
|
|
2682
|
-
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");
|
|
2683
|
-
try {
|
|
2684
|
-
return new Intl.NumberFormat(e, n).format(Number(s));
|
|
2685
|
-
} catch (o) {
|
|
2686
|
-
throw new Error(`[maz-ui](FilterNumber) ${o}`);
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
const cn = {
|
|
2690
|
-
capitalize: en,
|
|
2691
|
-
currency: on,
|
|
2692
|
-
date: an,
|
|
2693
|
-
number: un
|
|
2694
|
-
}, fo = {
|
|
2695
|
-
install(s) {
|
|
2696
|
-
s.provide("filters", cn);
|
|
2697
|
-
}
|
|
2698
|
-
}, je = {
|
|
2699
|
-
delay: 100,
|
|
2700
|
-
observer: {
|
|
2701
|
-
root: void 0,
|
|
2702
|
-
rootMargin: "0px",
|
|
2703
|
-
threshold: 0.2
|
|
2704
|
-
},
|
|
2705
|
-
animation: {
|
|
2706
|
-
once: !0,
|
|
2707
|
-
duration: 300,
|
|
2708
|
-
delay: 0
|
|
2709
|
-
}
|
|
2710
|
-
};
|
|
2711
|
-
class dn {
|
|
2712
|
-
constructor(e) {
|
|
2713
|
-
c(this, "options");
|
|
2714
|
-
this.options = {
|
|
2715
|
-
delay: (e == null ? void 0 : e.delay) ?? je.delay,
|
|
2716
|
-
observer: {
|
|
2717
|
-
...je.observer,
|
|
2718
|
-
...e == null ? void 0 : e.observer
|
|
2719
|
-
},
|
|
2720
|
-
animation: {
|
|
2721
|
-
...je.animation,
|
|
2722
|
-
...e == null ? void 0 : e.animation
|
|
2723
|
-
}
|
|
2724
|
-
};
|
|
2725
|
-
}
|
|
2726
|
-
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
2727
|
-
handleIntersect(e, t) {
|
|
2728
|
-
for (const n of e) {
|
|
2729
|
-
const i = n.target.getAttribute("data-maz-aos-children") === "true", r = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
2730
|
-
if (i) {
|
|
2731
|
-
const a = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
|
|
2732
|
-
(l) => l.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? l : void 0
|
|
2733
|
-
);
|
|
2734
|
-
for (const l of a)
|
|
2735
|
-
l && r.push(l);
|
|
2736
|
-
}
|
|
2737
|
-
for (const a of r) {
|
|
2738
|
-
const l = a.getAttribute("data-maz-aos-once"), u = typeof l == "string" ? l === "true" : this.options.animation.once;
|
|
2739
|
-
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
2740
|
-
const y = a.getAttribute("data-maz-aos-duration"), T = a.getAttribute("data-maz-aos-delay");
|
|
2741
|
-
if (y || (a.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
2742
|
-
a.style.transitionDuration = "0";
|
|
2743
|
-
}, 1e3)), T || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
2744
|
-
a.style.transitionDelay = "0";
|
|
2745
|
-
}, 1e3)), a.classList.add("maz-aos-animate"), u) {
|
|
2746
|
-
const w = a.getAttribute("data-maz-aos-anchor");
|
|
2747
|
-
if (w) {
|
|
2748
|
-
const f = document.querySelector(w);
|
|
2749
|
-
f && t.unobserve(f);
|
|
2750
|
-
}
|
|
2751
|
-
t.unobserve(a);
|
|
2752
|
-
}
|
|
2753
|
-
} else
|
|
2754
|
-
a.classList.remove("maz-aos-animate");
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
}
|
|
2758
|
-
async handleObserver() {
|
|
2759
|
-
await Bs(this.options.delay);
|
|
2760
|
-
const e = new IntersectionObserver(this.handleIntersect.bind(this), this.options.observer);
|
|
2761
|
-
for (const t of document.querySelectorAll("[data-maz-aos]")) {
|
|
2762
|
-
const n = t.getAttribute("data-maz-aos-anchor");
|
|
2763
|
-
if (n) {
|
|
2764
|
-
const o = document.querySelector(n);
|
|
2765
|
-
o ? (o.setAttribute("data-maz-aos-children", "true"), e.observe(o)) : console.warn(`[maz-ui](aos) no element found with selector "${n}"`);
|
|
2766
|
-
} else
|
|
2767
|
-
e.observe(t);
|
|
2768
|
-
}
|
|
2769
|
-
}
|
|
2770
|
-
runAnimations() {
|
|
2771
|
-
if (F())
|
|
2772
|
-
return this.handleObserver();
|
|
2773
|
-
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
2774
|
-
}
|
|
2775
|
-
}
|
|
2776
|
-
let pe;
|
|
2777
|
-
const ho = {
|
|
2778
|
-
install: (s, e) => {
|
|
2779
|
-
pe = new dn(e), s.provide("aos", pe), F() && (e != null && e.router ? e.router.afterEach(() => {
|
|
2780
|
-
pe.runAnimations();
|
|
2781
|
-
}) : pe.runAnimations());
|
|
2782
|
-
}
|
|
2783
|
-
};
|
|
2784
|
-
function vo() {
|
|
2785
|
-
return pe;
|
|
2786
|
-
}
|
|
2787
|
-
const mn = {
|
|
2788
|
-
role: "dialog",
|
|
2789
|
-
class: "m-backdrop-container",
|
|
2790
|
-
"aria-modal": "true"
|
|
2791
|
-
}, fn = { class: "m-backdrop-wrapper" }, nt = "--backdrop-present", hn = /* @__PURE__ */ be({
|
|
2792
|
-
inheritAttrs: !1,
|
|
2793
|
-
__name: "MazBackdrop",
|
|
2794
|
-
props: {
|
|
2795
|
-
modelValue: { type: Boolean, default: !1 },
|
|
2796
|
-
teleportSelector: { default: "body" },
|
|
2797
|
-
beforeClose: { type: Function, default: void 0 },
|
|
2798
|
-
persistent: { type: Boolean, default: !1 },
|
|
2799
|
-
noCloseOnEscKey: { type: Boolean, default: !1 },
|
|
2800
|
-
transitionName: { default: "backdrop-anim" },
|
|
2801
|
-
backdropClass: { default: () => {
|
|
2802
|
-
} },
|
|
2803
|
-
backdropContentClass: { default: () => {
|
|
2804
|
-
} },
|
|
2805
|
-
contentPadding: { type: Boolean, default: !1 },
|
|
2806
|
-
justify: { default: "none" },
|
|
2807
|
-
align: { default: "none" },
|
|
2808
|
-
variant: {}
|
|
2809
|
-
},
|
|
2810
|
-
emits: ["open", "close", "update:model-value", "before-close"],
|
|
2811
|
-
setup(s, { expose: e, emit: t }) {
|
|
2812
|
-
const n = t;
|
|
2813
|
-
function o() {
|
|
2814
|
-
document.documentElement.classList.add(nt);
|
|
2815
|
-
}
|
|
2816
|
-
function i() {
|
|
2817
|
-
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(nt);
|
|
2818
|
-
}
|
|
2819
|
-
const r = b(s.modelValue);
|
|
2820
|
-
function a() {
|
|
2821
|
-
l(!1);
|
|
2822
|
-
}
|
|
2823
|
-
async function l(d) {
|
|
2824
|
-
var C;
|
|
2825
|
-
d || (n("before-close"), await ((C = s.beforeClose) == null ? void 0 : C.call(s))), r.value = d;
|
|
2826
|
-
}
|
|
2827
|
-
function u() {
|
|
2828
|
-
n("open");
|
|
2829
|
-
}
|
|
2830
|
-
function y() {
|
|
2831
|
-
n("update:model-value", !1), n("close"), k();
|
|
2832
|
-
}
|
|
2833
|
-
function T() {
|
|
2834
|
-
s.persistent || a();
|
|
2835
|
-
}
|
|
2836
|
-
function w(d) {
|
|
2837
|
-
!s.noCloseOnEscKey && d.key === "Escape" && !s.persistent && a();
|
|
2838
|
-
}
|
|
2839
|
-
function f() {
|
|
2840
|
-
o(), document.addEventListener("keyup", w, !1);
|
|
2841
|
-
}
|
|
2842
|
-
function k() {
|
|
2843
|
-
document.removeEventListener("keyup", w), i();
|
|
2844
|
-
}
|
|
2845
|
-
ce(() => {
|
|
2846
|
-
s.modelValue ? f() : k();
|
|
2847
|
-
});
|
|
2848
|
-
let z = null;
|
|
2849
|
-
function m(d) {
|
|
2850
|
-
const C = document.querySelector(d), S = C && Array.from(C.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), D = S == null ? void 0 : S.filter((L) => {
|
|
2851
|
-
const P = window.getComputedStyle(L);
|
|
2852
|
-
return P.display !== "none" && P.visibility !== "hidden" && !L.disabled;
|
|
2853
|
-
});
|
|
2854
|
-
return D && D.length > 0 ? D[0] : null;
|
|
2855
|
-
}
|
|
2856
|
-
return G(
|
|
2857
|
-
() => s.modelValue,
|
|
2858
|
-
async (d) => {
|
|
2859
|
-
if (r.value = d, d) {
|
|
2860
|
-
f(), z = document.activeElement, await le();
|
|
2861
|
-
const C = m(".m-backdrop-content");
|
|
2862
|
-
C == null || C.focus();
|
|
2863
|
-
} else
|
|
2864
|
-
k(), await le(), z == null || z.focus();
|
|
2865
|
-
}
|
|
2866
|
-
), e({
|
|
2867
|
-
onBackdropAnimationEnter: u,
|
|
2868
|
-
onBackdropAnimationLeave: y,
|
|
2869
|
-
onBackdropClicked: T,
|
|
2870
|
-
close: a,
|
|
2871
|
-
present: r,
|
|
2872
|
-
toggleModal: l,
|
|
2873
|
-
onKeyPress: w
|
|
2874
|
-
}), (d, C) => (A(), N(qt, { to: d.teleportSelector }, [
|
|
2875
|
-
ee(dt, {
|
|
2876
|
-
appear: "",
|
|
2877
|
-
name: d.transitionName,
|
|
2878
|
-
onAfterEnter: u,
|
|
2879
|
-
onAfterLeave: y
|
|
2880
|
-
}, {
|
|
2881
|
-
default: q(() => [
|
|
2882
|
-
r.value ? (A(), U(
|
|
2883
|
-
"div",
|
|
2884
|
-
te({
|
|
2885
|
-
key: 0,
|
|
2886
|
-
class: "m-backdrop --present m-reset-css"
|
|
2887
|
-
}, d.$attrs, {
|
|
2888
|
-
class: [d.backdropClass, d.variant && `--variant-${d.variant}`, { "--persistent": d.persistent }]
|
|
2889
|
-
}),
|
|
2890
|
-
[
|
|
2891
|
-
V("div", mn, [
|
|
2892
|
-
V("div", fn, [
|
|
2893
|
-
V(
|
|
2894
|
-
"div",
|
|
2895
|
-
{
|
|
2896
|
-
class: ue(["m-backdrop-content", [d.backdropContentClass, `--justify-${d.justify}`, `--align-${d.align}`, { "--padding": d.contentPadding }]]),
|
|
2897
|
-
role: "button",
|
|
2898
|
-
tabindex: "-1",
|
|
2899
|
-
onClick: Z(T, ["self"])
|
|
2900
|
-
},
|
|
2901
|
-
[
|
|
2902
|
-
R(d.$slots, "default", {
|
|
2903
|
-
close: a,
|
|
2904
|
-
onBackdropClicked: T
|
|
2905
|
-
}, void 0, !0)
|
|
2906
|
-
],
|
|
2907
|
-
2
|
|
2908
|
-
/* CLASS */
|
|
2909
|
-
)
|
|
2910
|
-
])
|
|
2911
|
-
])
|
|
2912
|
-
],
|
|
2913
|
-
16
|
|
2914
|
-
/* FULL_PROPS */
|
|
2915
|
-
)) : B("v-if", !0)
|
|
2916
|
-
]),
|
|
2917
|
-
_: 3
|
|
2918
|
-
/* FORWARDED */
|
|
2919
|
-
}, 8, ["name"])
|
|
2920
|
-
], 8, ["to"]));
|
|
2921
|
-
}
|
|
2922
|
-
}), vn = /* @__PURE__ */ Me(hn, [["__scopeId", "data-v-90448c91"]]), pn = {
|
|
2923
|
-
key: 0,
|
|
2924
|
-
id: "dialogTitle",
|
|
2925
|
-
class: "m-dialog-title"
|
|
2926
|
-
}, gn = {
|
|
2927
|
-
key: 0,
|
|
2928
|
-
class: "m-dialog-footer"
|
|
2929
|
-
}, yn = /* @__PURE__ */ be({
|
|
2930
|
-
name: "MazDialog",
|
|
2931
|
-
inheritAttrs: !1,
|
|
2932
|
-
__name: "MazDialog",
|
|
2933
|
-
props: {
|
|
2934
|
-
modelValue: { type: Boolean },
|
|
2935
|
-
title: { default: void 0 },
|
|
2936
|
-
noClose: { type: Boolean, default: !1 },
|
|
2937
|
-
maxWidth: { default: "100%" },
|
|
2938
|
-
minWidth: { default: "32rem" },
|
|
2939
|
-
scrollable: { type: Boolean, default: !1 },
|
|
2940
|
-
persistent: { type: Boolean, default: !1 },
|
|
2941
|
-
teleportSelector: {},
|
|
2942
|
-
beforeClose: {},
|
|
2943
|
-
noCloseOnEscKey: { type: Boolean },
|
|
2944
|
-
transitionName: {},
|
|
2945
|
-
backdropClass: {},
|
|
2946
|
-
backdropContentClass: {},
|
|
2947
|
-
contentPadding: { type: Boolean },
|
|
2948
|
-
justify: {},
|
|
2949
|
-
align: {},
|
|
2950
|
-
variant: {}
|
|
2951
|
-
},
|
|
2952
|
-
emits: ["open", "close", "update:model-value"],
|
|
2953
|
-
setup(s, { expose: e }) {
|
|
2954
|
-
const t = s, n = H(() => import("./MazBtn.CA5moYsw.mjs")), o = H(() => import("./x-mark.CnZwVvA7.mjs")), i = Ut(), r = b();
|
|
2955
|
-
e({
|
|
2956
|
-
close: () => {
|
|
2957
|
-
var f, k;
|
|
2958
|
-
return (k = (f = r.value) == null ? void 0 : f.close) == null ? void 0 : k.call(f);
|
|
2959
|
-
}
|
|
2960
|
-
});
|
|
2961
|
-
const a = h(() => {
|
|
2962
|
-
const f = [
|
|
2963
|
-
"modelValue",
|
|
2964
|
-
"title",
|
|
2965
|
-
"noClose",
|
|
2966
|
-
"maxWidth",
|
|
2967
|
-
"minWidth",
|
|
2968
|
-
"scrollable"
|
|
2969
|
-
];
|
|
2970
|
-
return Object.fromEntries(
|
|
2971
|
-
Object.entries(t).filter(([k]) => !f.includes(k))
|
|
2972
|
-
);
|
|
2973
|
-
}), l = h(() => ({
|
|
2974
|
-
...i,
|
|
2975
|
-
class: void 0,
|
|
2976
|
-
style: void 0
|
|
2977
|
-
})), u = h(() => ({
|
|
2978
|
-
class: i.class,
|
|
2979
|
-
style: i.style
|
|
2980
|
-
})), y = b(), T = Wt(), w = h(() => !!T.footer);
|
|
2981
|
-
return t.scrollable && G(() => t.modelValue, async (f) => {
|
|
2982
|
-
await le(), f && y.value && setTimeout(() => {
|
|
2983
|
-
var k;
|
|
2984
|
-
(k = y.value) == null || k.scrollTo({ top: 0, behavior: "instant" });
|
|
2985
|
-
}, 0);
|
|
2986
|
-
}), (f, k) => (A(), N(vn, te({ ...l.value, ...a.value }, {
|
|
2987
|
-
ref_key: "backdrop",
|
|
2988
|
-
ref: r,
|
|
2989
|
-
"model-value": f.modelValue,
|
|
2990
|
-
"transition-name": "modal-anim",
|
|
2991
|
-
"aria-labelledby": "dialogTitle",
|
|
2992
|
-
"aria-describedby": "dialogDesc",
|
|
2993
|
-
"content-padding": "",
|
|
2994
|
-
justify: "center",
|
|
2995
|
-
variant: "dialog",
|
|
2996
|
-
onClose: k[0] || (k[0] = (z) => f.$emit("close", z)),
|
|
2997
|
-
onOpen: k[1] || (k[1] = (z) => f.$emit("open", z)),
|
|
2998
|
-
"onUpdate:modelValue": k[2] || (k[2] = (z) => f.$emit("update:model-value", z))
|
|
2999
|
-
}), {
|
|
3000
|
-
default: q(({ close: z, onBackdropClicked: m }) => [
|
|
3001
|
-
V(
|
|
3002
|
-
"div",
|
|
3003
|
-
te({
|
|
3004
|
-
class: ["m-dialog", { "--scrollable": f.scrollable }],
|
|
3005
|
-
role: "dialog",
|
|
3006
|
-
"aria-modal": "true",
|
|
3007
|
-
style: [{ "--max-width": f.maxWidth, "--min-width": f.minWidth }]
|
|
3008
|
-
}, u.value),
|
|
3009
|
-
[
|
|
3010
|
-
R(f.$slots, "header", {
|
|
3011
|
-
close: z,
|
|
3012
|
-
onBackdropClicked: m
|
|
3013
|
-
}, () => [
|
|
3014
|
-
V(
|
|
3015
|
-
"div",
|
|
3016
|
-
{
|
|
3017
|
-
class: ue(["m-dialog-header", { "--has-title": f.$slots.title || f.title }])
|
|
3018
|
-
},
|
|
3019
|
-
[
|
|
3020
|
-
f.$slots.title || f.title ? (A(), U("h2", pn, [
|
|
3021
|
-
R(f.$slots, "title", {}, () => [
|
|
3022
|
-
J(
|
|
3023
|
-
X(f.title),
|
|
3024
|
-
1
|
|
3025
|
-
/* TEXT */
|
|
3026
|
-
)
|
|
3027
|
-
], !0)
|
|
3028
|
-
])) : B("v-if", !0),
|
|
3029
|
-
!f.noClose && !f.persistent ? (A(), N(O(n), {
|
|
3030
|
-
key: 1,
|
|
3031
|
-
color: "transparent",
|
|
3032
|
-
size: "sm",
|
|
3033
|
-
icon: O(o),
|
|
3034
|
-
onClick: z
|
|
3035
|
-
}, null, 8, ["icon", "onClick"])) : B("v-if", !0)
|
|
3036
|
-
],
|
|
3037
|
-
2
|
|
3038
|
-
/* CLASS */
|
|
3039
|
-
)
|
|
3040
|
-
], !0),
|
|
3041
|
-
V(
|
|
3042
|
-
"div",
|
|
3043
|
-
{
|
|
3044
|
-
id: "dialogDesc",
|
|
3045
|
-
ref_key: "dialogContent",
|
|
3046
|
-
ref: y,
|
|
3047
|
-
class: ue(["m-dialog-content", { "--bottom-padding": !w.value }])
|
|
3048
|
-
},
|
|
3049
|
-
[
|
|
3050
|
-
R(f.$slots, "default", {
|
|
3051
|
-
close: z,
|
|
3052
|
-
onBackdropClicked: m
|
|
3053
|
-
}, void 0, !0)
|
|
3054
|
-
],
|
|
3055
|
-
2
|
|
3056
|
-
/* CLASS */
|
|
3057
|
-
),
|
|
3058
|
-
w.value ? (A(), U("div", gn, [
|
|
3059
|
-
R(f.$slots, "footer", {
|
|
3060
|
-
close: z,
|
|
3061
|
-
onBackdropClicked: m
|
|
3062
|
-
}, void 0, !0)
|
|
3063
|
-
])) : B("v-if", !0)
|
|
3064
|
-
],
|
|
3065
|
-
16
|
|
3066
|
-
/* FULL_PROPS */
|
|
3067
|
-
)
|
|
3068
|
-
]),
|
|
3069
|
-
_: 3
|
|
3070
|
-
/* FORWARDED */
|
|
3071
|
-
}, 16, ["model-value"]));
|
|
3072
|
-
}
|
|
3073
|
-
}), bn = /* @__PURE__ */ Me(yn, [["__scopeId", "data-v-17cbcac7"]]), ie = {
|
|
3074
|
-
cancelText: "Cancel",
|
|
3075
|
-
confirmText: "Confirm",
|
|
3076
|
-
cancelButton: {
|
|
3077
|
-
text: "Cancel",
|
|
3078
|
-
color: "danger"
|
|
3079
|
-
},
|
|
3080
|
-
confirmButton: {
|
|
3081
|
-
text: "Confirm",
|
|
3082
|
-
color: "success"
|
|
3083
|
-
}
|
|
3084
|
-
}, wn = b(ie), re = b([]);
|
|
3085
|
-
function En(s, e) {
|
|
3086
|
-
return new Promise((t, n) => {
|
|
3087
|
-
re.value = [
|
|
3088
|
-
...re.value,
|
|
3089
|
-
{
|
|
3090
|
-
id: s,
|
|
3091
|
-
isActive: !0,
|
|
3092
|
-
resolve: async (o) => {
|
|
3093
|
-
t(o), await (e == null ? void 0 : e());
|
|
3094
|
-
},
|
|
3095
|
-
reject: async (o) => {
|
|
3096
|
-
n(o), await (e == null ? void 0 : e());
|
|
3097
|
-
}
|
|
3098
|
-
}
|
|
3099
|
-
];
|
|
3100
|
-
});
|
|
3101
|
-
}
|
|
3102
|
-
function Ot(s) {
|
|
3103
|
-
return re.value = re.value.filter(({ id: e }) => e !== s), re.value;
|
|
3104
|
-
}
|
|
3105
|
-
function ot(s, e, t) {
|
|
3106
|
-
var n;
|
|
3107
|
-
e && ((n = e[s]) == null || n.call(e, t), e.isActive = !1, setTimeout(() => {
|
|
3108
|
-
Ot(e.id);
|
|
3109
|
-
}, 500));
|
|
3110
|
-
}
|
|
3111
|
-
function Dt() {
|
|
3112
|
-
return {
|
|
3113
|
-
data: wn,
|
|
3114
|
-
dialogState: re,
|
|
3115
|
-
showDialogAndWaitChoice: En,
|
|
3116
|
-
removeDialogFromState: Ot,
|
|
3117
|
-
rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), ot("reject", s, e)),
|
|
3118
|
-
resolveDialog: async (s, e = "accept", t) => (await (t == null ? void 0 : t()), ot("resolve", s, e))
|
|
3119
|
-
};
|
|
3120
|
-
}
|
|
3121
|
-
const Tn = { class: "maz-flex maz-items-center maz-gap-2" }, zn = /* @__PURE__ */ be({
|
|
3122
|
-
__name: "MazDialogPromise",
|
|
3123
|
-
props: {
|
|
3124
|
-
data: { default: void 0 },
|
|
3125
|
-
message: { default: void 0 },
|
|
3126
|
-
identifier: { default: void 0 },
|
|
3127
|
-
buttons: { default: void 0 },
|
|
3128
|
-
modelValue: { type: Boolean },
|
|
3129
|
-
title: {},
|
|
3130
|
-
noClose: { type: Boolean },
|
|
3131
|
-
maxWidth: {},
|
|
3132
|
-
minWidth: {},
|
|
3133
|
-
scrollable: { type: Boolean },
|
|
3134
|
-
persistent: { type: Boolean },
|
|
3135
|
-
teleportSelector: {},
|
|
3136
|
-
beforeClose: {},
|
|
3137
|
-
noCloseOnEscKey: { type: Boolean },
|
|
3138
|
-
transitionName: {},
|
|
3139
|
-
backdropClass: {},
|
|
3140
|
-
backdropContentClass: {},
|
|
3141
|
-
contentPadding: { type: Boolean },
|
|
3142
|
-
justify: {},
|
|
3143
|
-
align: {},
|
|
3144
|
-
variant: {},
|
|
3145
|
-
cancelText: {},
|
|
3146
|
-
cancelButton: { type: [Boolean, Object] },
|
|
3147
|
-
confirmText: {},
|
|
3148
|
-
confirmButton: { type: [Boolean, Object] }
|
|
3149
|
-
},
|
|
3150
|
-
emits: ["open", "close"],
|
|
3151
|
-
setup(s, { expose: e }) {
|
|
3152
|
-
const t = s, n = H(() => import("./MazBtn.CA5moYsw.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = Dt(), l = h(() => {
|
|
3153
|
-
var m;
|
|
3154
|
-
return t.buttons ?? ((m = t.data) == null ? void 0 : m.buttons) ?? a.value.buttons;
|
|
3155
|
-
}), u = h(() => ({
|
|
3156
|
-
...ie,
|
|
3157
|
-
...a.value,
|
|
3158
|
-
...t.data
|
|
3159
|
-
})), y = h(() => {
|
|
3160
|
-
var C, p, S, D;
|
|
3161
|
-
if (!(((C = a.value) == null ? void 0 : C.cancelButton) ?? ((p = t.data) == null ? void 0 : p.cancelButton) ?? ie.cancelButton))
|
|
3162
|
-
return;
|
|
3163
|
-
const d = {
|
|
3164
|
-
...ie.cancelButton,
|
|
3165
|
-
...(S = a.value) == null ? void 0 : S.cancelButton,
|
|
3166
|
-
...(D = t.data) == null ? void 0 : D.cancelButton
|
|
3167
|
-
};
|
|
3168
|
-
return {
|
|
3169
|
-
...d,
|
|
3170
|
-
text: t.cancelText || u.value.cancelText || d.text
|
|
3171
|
-
};
|
|
3172
|
-
}), T = h(() => {
|
|
3173
|
-
var C, p, S, D;
|
|
3174
|
-
if (!(((C = a.value) == null ? void 0 : C.confirmButton) ?? ((p = t.data) == null ? void 0 : p.confirmButton) ?? ie.confirmButton))
|
|
3175
|
-
return;
|
|
3176
|
-
const d = {
|
|
3177
|
-
...ie.confirmButton,
|
|
3178
|
-
...(S = a.value) == null ? void 0 : S.confirmButton,
|
|
3179
|
-
...(D = t.data) == null ? void 0 : D.confirmButton
|
|
3180
|
-
};
|
|
3181
|
-
return {
|
|
3182
|
-
...d,
|
|
3183
|
-
text: t.confirmText || u.value.confirmText || d.text
|
|
3184
|
-
};
|
|
3185
|
-
}), w = h(
|
|
3186
|
-
() => o.value.find(({ id: m }) => m === t.identifier)
|
|
3187
|
-
), f = b();
|
|
3188
|
-
e({
|
|
3189
|
-
close: () => {
|
|
3190
|
-
var m, d;
|
|
3191
|
-
return (d = (m = f.value) == null ? void 0 : m.close) == null ? void 0 : d.call(m);
|
|
3192
|
-
}
|
|
3193
|
-
});
|
|
3194
|
-
function k(m) {
|
|
3195
|
-
return "type" in m && (m.type === "resolve" || m.type === "reject");
|
|
3196
|
-
}
|
|
3197
|
-
function z(m, d) {
|
|
3198
|
-
return k(d) ? d.type === "resolve" ? r(m, d.response) : i(m, d.response) : r(m, void 0, d.action);
|
|
3199
|
-
}
|
|
3200
|
-
return (m, d) => {
|
|
3201
|
-
var C;
|
|
3202
|
-
return A(), N(bn, te({
|
|
3203
|
-
ref_key: "dialog",
|
|
3204
|
-
ref: f
|
|
3205
|
-
}, { ...m.$attrs, ...t }, {
|
|
3206
|
-
"model-value": ((C = w.value) == null ? void 0 : C.isActive) ?? m.modelValue ?? !1,
|
|
3207
|
-
onClose: d[2] || (d[2] = (p) => m.$emit("close", p)),
|
|
3208
|
-
onOpen: d[3] || (d[3] = (p) => m.$emit("open", p)),
|
|
3209
|
-
"onUpdate:modelValue": d[4] || (d[4] = (p) => O(i)(w.value))
|
|
3210
|
-
}), {
|
|
3211
|
-
title: q(() => [
|
|
3212
|
-
R(m.$slots, "title", {}, () => {
|
|
3213
|
-
var p;
|
|
3214
|
-
return [
|
|
3215
|
-
J(
|
|
3216
|
-
X(m.title || ((p = u.value) == null ? void 0 : p.title)),
|
|
3217
|
-
1
|
|
3218
|
-
/* TEXT */
|
|
3219
|
-
)
|
|
3220
|
-
];
|
|
3221
|
-
})
|
|
3222
|
-
]),
|
|
3223
|
-
default: q(() => [
|
|
3224
|
-
R(m.$slots, "default", {
|
|
3225
|
-
resolve: (p) => O(r)(w.value, p),
|
|
3226
|
-
reject: (p) => O(i)(w.value, p)
|
|
3227
|
-
}, () => {
|
|
3228
|
-
var p;
|
|
3229
|
-
return [
|
|
3230
|
-
J(
|
|
3231
|
-
X(m.message || ((p = u.value) == null ? void 0 : p.message)),
|
|
3232
|
-
1
|
|
3233
|
-
/* TEXT */
|
|
3234
|
-
)
|
|
3235
|
-
];
|
|
3236
|
-
})
|
|
3237
|
-
]),
|
|
3238
|
-
footer: q(() => [
|
|
3239
|
-
R(m.$slots, "footer-button", {
|
|
3240
|
-
resolve: (p) => O(r)(w.value, p),
|
|
3241
|
-
reject: (p) => O(i)(w.value, p)
|
|
3242
|
-
}, () => [
|
|
3243
|
-
V("div", Tn, [
|
|
3244
|
-
l.value ? (A(!0), U(
|
|
3245
|
-
Ze,
|
|
3246
|
-
{ key: 0 },
|
|
3247
|
-
Rt(l.value, (p, S) => (A(), N(O(n), te({
|
|
3248
|
-
key: S,
|
|
3249
|
-
ref_for: !0
|
|
3250
|
-
}, {
|
|
3251
|
-
...p,
|
|
3252
|
-
type: "button"
|
|
3253
|
-
}, {
|
|
3254
|
-
onClick: (D) => z(w.value, p)
|
|
3255
|
-
}), {
|
|
3256
|
-
default: q(() => [
|
|
3257
|
-
J(
|
|
3258
|
-
X(p.text),
|
|
3259
|
-
1
|
|
3260
|
-
/* TEXT */
|
|
3261
|
-
)
|
|
3262
|
-
]),
|
|
3263
|
-
_: 2
|
|
3264
|
-
/* DYNAMIC */
|
|
3265
|
-
}, 1040, ["onClick"]))),
|
|
3266
|
-
128
|
|
3267
|
-
/* KEYED_FRAGMENT */
|
|
3268
|
-
)) : (A(), U(
|
|
3269
|
-
Ze,
|
|
3270
|
-
{ key: 1 },
|
|
3271
|
-
[
|
|
3272
|
-
y.value ? (A(), N(
|
|
3273
|
-
O(n),
|
|
3274
|
-
te({ key: 0 }, y.value, {
|
|
3275
|
-
onClick: d[0] || (d[0] = (p) => O(i)(w.value))
|
|
3276
|
-
}),
|
|
3277
|
-
{
|
|
3278
|
-
default: q(() => [
|
|
3279
|
-
R(m.$slots, "cancel-text", {}, () => [
|
|
3280
|
-
J(
|
|
3281
|
-
X(y.value.text),
|
|
3282
|
-
1
|
|
3283
|
-
/* TEXT */
|
|
3284
|
-
)
|
|
3285
|
-
])
|
|
3286
|
-
]),
|
|
3287
|
-
_: 3
|
|
3288
|
-
/* FORWARDED */
|
|
3289
|
-
},
|
|
3290
|
-
16
|
|
3291
|
-
/* FULL_PROPS */
|
|
3292
|
-
)) : B("v-if", !0),
|
|
3293
|
-
T.value ? (A(), N(
|
|
3294
|
-
O(n),
|
|
3295
|
-
te({ key: 1 }, T.value, {
|
|
3296
|
-
onClick: d[1] || (d[1] = (p) => O(r)(w.value))
|
|
3297
|
-
}),
|
|
3298
|
-
{
|
|
3299
|
-
default: q(() => [
|
|
3300
|
-
R(m.$slots, "confirm-text", {}, () => [
|
|
3301
|
-
J(
|
|
3302
|
-
X(T.value.text),
|
|
3303
|
-
1
|
|
3304
|
-
/* TEXT */
|
|
3305
|
-
)
|
|
3306
|
-
])
|
|
3307
|
-
]),
|
|
3308
|
-
_: 3
|
|
3309
|
-
/* FORWARDED */
|
|
3310
|
-
},
|
|
3311
|
-
16
|
|
3312
|
-
/* FULL_PROPS */
|
|
3313
|
-
)) : B("v-if", !0)
|
|
3314
|
-
],
|
|
3315
|
-
64
|
|
3316
|
-
/* STABLE_FRAGMENT */
|
|
3317
|
-
))
|
|
3318
|
-
])
|
|
3319
|
-
])
|
|
3320
|
-
]),
|
|
3321
|
-
_: 3
|
|
3322
|
-
/* FORWARDED */
|
|
3323
|
-
}, 16, ["model-value"]);
|
|
3324
|
-
};
|
|
3325
|
-
}
|
|
3326
|
-
}), it = {
|
|
3327
|
-
identifier: "main-dialog"
|
|
3328
|
-
};
|
|
3329
|
-
class Ln {
|
|
3330
|
-
constructor(e, t = it) {
|
|
3331
|
-
this.app = e, this.globalOptions = t;
|
|
3332
|
-
}
|
|
3333
|
-
open(e) {
|
|
3334
|
-
const t = {
|
|
3335
|
-
...it,
|
|
3336
|
-
...this.globalOptions,
|
|
3337
|
-
...e
|
|
3338
|
-
}, { destroy: n, vNode: o } = Ke(zn, {
|
|
3339
|
-
props: t,
|
|
3340
|
-
app: this.app
|
|
3341
|
-
}), { showDialogAndWaitChoice: i } = Dt();
|
|
3342
|
-
function r() {
|
|
3343
|
-
var l, u, y;
|
|
3344
|
-
(u = (l = o.component) == null ? void 0 : l.exposed) == null || u.close(), (y = t.promiseCallback) == null || y.call(t), setTimeout(() => {
|
|
3345
|
-
n();
|
|
3346
|
-
}, 700);
|
|
3347
|
-
}
|
|
3348
|
-
return {
|
|
3349
|
-
promise: i(t.identifier, () => {
|
|
3350
|
-
r();
|
|
3351
|
-
}),
|
|
3352
|
-
destroy: n,
|
|
3353
|
-
close: r
|
|
3354
|
-
};
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
const po = {
|
|
3358
|
-
install(s, e) {
|
|
3359
|
-
s.provide("dialog", new Ln(s, e));
|
|
3360
|
-
}
|
|
3361
|
-
}, kn = { class: "m-toast__message-wrapper" }, Cn = { class: "m-toast__message" }, In = { class: "maz-flex maz-items-center maz-gap-2" }, An = { key: 0 }, Sn = {
|
|
3362
|
-
key: 4,
|
|
3363
|
-
class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
|
|
3364
|
-
}, xn = /* @__PURE__ */ be({
|
|
3365
|
-
__name: "MazToast",
|
|
3366
|
-
props: {
|
|
3367
|
-
message: { default: void 0 },
|
|
3368
|
-
position: { default: "bottom-right" },
|
|
3369
|
-
maxToasts: { type: [Number, Boolean], default: !1 },
|
|
3370
|
-
timeout: { type: [Number, Boolean], default: 1e4 },
|
|
3371
|
-
queue: { type: Boolean },
|
|
3372
|
-
noPauseOnHover: { type: Boolean },
|
|
3373
|
-
type: { default: "info" },
|
|
3374
|
-
link: { default: void 0 },
|
|
3375
|
-
action: { default: void 0 },
|
|
3376
|
-
persistent: { type: Boolean },
|
|
3377
|
-
icon: { type: Boolean, default: !0 }
|
|
3378
|
-
},
|
|
3379
|
-
emits: ["close", "click", "open"],
|
|
3380
|
-
setup(s, { expose: e, emit: t }) {
|
|
3381
|
-
const n = s, o = t, i = H(() => import("./MazBtn.CA5moYsw.mjs")), r = H(() => import("./x-mark.CnZwVvA7.mjs")), a = H(
|
|
3382
|
-
() => import("./arrow-top-right-on-square.jPmYJ34F.mjs")
|
|
3383
|
-
), l = H(
|
|
3384
|
-
() => import("./exclamation-triangle.Z6d0ygp8.mjs")
|
|
3385
|
-
), u = H(
|
|
3386
|
-
() => import("./exclamation-circle.CUk0ZajS.mjs")
|
|
3387
|
-
), y = H(
|
|
3388
|
-
() => import("./information-circle.C7e5b_nL.mjs")
|
|
3389
|
-
), T = H(() => import("./check-circle.Bf7AGSQ-.mjs")), w = H(() => import("./link.Br1lfjTR.mjs")), f = b(), k = h(() => {
|
|
3390
|
-
if (n.icon)
|
|
3391
|
-
switch (n.type) {
|
|
3392
|
-
case "danger":
|
|
3393
|
-
return l;
|
|
3394
|
-
case "info":
|
|
3395
|
-
return y;
|
|
3396
|
-
case "success":
|
|
3397
|
-
return T;
|
|
3398
|
-
case "warning":
|
|
3399
|
-
return u;
|
|
3400
|
-
default:
|
|
3401
|
-
return;
|
|
3402
|
-
}
|
|
3403
|
-
}), z = h(() => n.position.includes("top") ? "top" : "bottom"), m = h(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), d = h(() => m.value !== "center" ? m.value === "right" ? "m-slide-right" : "m-slide-left" : z.value === "top" ? "m-slide-top" : "m-slide-bottom"), C = b(!1), p = b(!1), S = b(), D = `m-toast-container m-reset-css --${z.value} --${m.value}`, L = `.${D.replaceAll(" ", ".")}`, P = Is({
|
|
3404
|
-
callback: oe,
|
|
3405
|
-
timeout: typeof n.timeout == "number" ? n.timeout : 0,
|
|
3406
|
-
callbackOffsetTime: 200
|
|
3407
|
-
});
|
|
3408
|
-
function j() {
|
|
3409
|
-
const v = document.querySelector(L);
|
|
3410
|
-
if (!v && !v) {
|
|
3411
|
-
const x = document.body, M = document.createElement("div");
|
|
3412
|
-
M.className = D, x.append(M);
|
|
3413
|
-
}
|
|
3414
|
-
}
|
|
3415
|
-
function ne() {
|
|
3416
|
-
const v = document.querySelector(L);
|
|
3417
|
-
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && v ? n.maxToasts <= v.childElementCount : v && v.childElementCount > 0;
|
|
3418
|
-
}
|
|
3419
|
-
function Q() {
|
|
3420
|
-
if (ne()) {
|
|
3421
|
-
S.value = setTimeout(Q, 250);
|
|
3422
|
-
return;
|
|
3423
|
-
}
|
|
3424
|
-
const v = document.querySelector(L);
|
|
3425
|
-
f.value && v && v.prepend(f.value), p.value = !0, typeof n.timeout == "number" && n.timeout > 0 && P.start();
|
|
3426
|
-
}
|
|
3427
|
-
const de = b("100%");
|
|
3428
|
-
function $e() {
|
|
3429
|
-
switch (n.type) {
|
|
3430
|
-
case "danger":
|
|
3431
|
-
return "maz-bg-danger-700";
|
|
3432
|
-
case "info":
|
|
3433
|
-
return "maz-bg-info-700";
|
|
3434
|
-
case "success":
|
|
3435
|
-
return "maz-bg-success-700";
|
|
3436
|
-
case "warning":
|
|
3437
|
-
return "maz-bg-warning-700";
|
|
3438
|
-
default:
|
|
3439
|
-
return "maz-bg-primary";
|
|
3440
|
-
}
|
|
3441
|
-
}
|
|
3442
|
-
G(
|
|
3443
|
-
P.remainingTime,
|
|
3444
|
-
(v) => {
|
|
3445
|
-
if (typeof n.timeout == "number") {
|
|
3446
|
-
const x = 100 * v / n.timeout;
|
|
3447
|
-
de.value = `${x}%`;
|
|
3448
|
-
}
|
|
3449
|
-
}
|
|
3450
|
-
);
|
|
3451
|
-
function me(v) {
|
|
3452
|
-
o("click", v), n.persistent || oe();
|
|
3453
|
-
}
|
|
3454
|
-
async function fe(v, x) {
|
|
3455
|
-
var M;
|
|
3456
|
-
C.value = !0, await v(), C.value = !1, (M = n.action) != null && M.closeToast && me(x);
|
|
3457
|
-
}
|
|
3458
|
-
function he(v) {
|
|
3459
|
-
n.noPauseOnHover || (v ? P.pause() : P.resume());
|
|
3460
|
-
}
|
|
3461
|
-
function Ve() {
|
|
3462
|
-
P.stop(), S.value && clearTimeout(S.value);
|
|
3463
|
-
}
|
|
3464
|
-
function oe() {
|
|
3465
|
-
Ve(), p.value = !1;
|
|
3466
|
-
}
|
|
3467
|
-
e({ closeToast: oe });
|
|
3468
|
-
function ke() {
|
|
3469
|
-
o("open");
|
|
3470
|
-
}
|
|
3471
|
-
function Ce() {
|
|
3472
|
-
var x;
|
|
3473
|
-
o("close"), (x = f.value) == null || x.remove();
|
|
3474
|
-
const v = document.querySelector(L);
|
|
3475
|
-
v && !(v != null && v.hasChildNodes()) && v.remove();
|
|
3476
|
-
}
|
|
3477
|
-
return ce(() => {
|
|
3478
|
-
j(), Q();
|
|
3479
|
-
}), (v, x) => (A(), N(dt, {
|
|
3480
|
-
name: d.value,
|
|
3481
|
-
onAfterLeave: Ce,
|
|
3482
|
-
onAfterEnter: ke,
|
|
3483
|
-
persisted: ""
|
|
3484
|
-
}, {
|
|
3485
|
-
default: q(() => [
|
|
3486
|
-
ut(V(
|
|
3487
|
-
"button",
|
|
3488
|
-
{
|
|
3489
|
-
ref_key: "Toaster",
|
|
3490
|
-
ref: f,
|
|
3491
|
-
class: ue(["m-toast m-reset-css", [
|
|
3492
|
-
`--${v.type}`,
|
|
3493
|
-
`--${z.value}`,
|
|
3494
|
-
`--${m.value}`,
|
|
3495
|
-
{ "maz-pb-1": typeof v.timeout == "number" && v.timeout > 0, "--persistent": v.persistent }
|
|
3496
|
-
]]),
|
|
3497
|
-
role: "alert",
|
|
3498
|
-
onMouseover: x[2] || (x[2] = (M) => he(!0)),
|
|
3499
|
-
onMouseleave: x[3] || (x[3] = (M) => he(!1)),
|
|
3500
|
-
onClick: x[4] || (x[4] = Z((M) => {
|
|
3501
|
-
var ve;
|
|
3502
|
-
return v.link && !((ve = v.link) != null && ve.closeToast) ? void 0 : me(M);
|
|
3503
|
-
}, ["stop"]))
|
|
3504
|
-
},
|
|
3505
|
-
[
|
|
3506
|
-
k.value ? (A(), N(_t(k.value), {
|
|
3507
|
-
key: 0,
|
|
3508
|
-
class: "maz-text-2xl"
|
|
3509
|
-
})) : B("v-if", !0),
|
|
3510
|
-
V("div", kn, [
|
|
3511
|
-
V(
|
|
3512
|
-
"p",
|
|
3513
|
-
Cn,
|
|
3514
|
-
X(v.message),
|
|
3515
|
-
1
|
|
3516
|
-
/* TEXT */
|
|
3517
|
-
)
|
|
3518
|
-
]),
|
|
3519
|
-
v.action ? (A(), N(O(i), {
|
|
3520
|
-
key: 1,
|
|
3521
|
-
"data-test": "action-btn",
|
|
3522
|
-
color: v.type,
|
|
3523
|
-
pastel: "",
|
|
3524
|
-
loading: C.value,
|
|
3525
|
-
size: "sm",
|
|
3526
|
-
onClick: x[0] || (x[0] = Z((M) => v.action ? fe(v.action.func, M) : void 0, ["stop"]))
|
|
3527
|
-
}, {
|
|
3528
|
-
default: q(() => [
|
|
3529
|
-
J(
|
|
3530
|
-
X(v.action.text),
|
|
3531
|
-
1
|
|
3532
|
-
/* TEXT */
|
|
3533
|
-
)
|
|
3534
|
-
]),
|
|
3535
|
-
_: 1
|
|
3536
|
-
/* STABLE */
|
|
3537
|
-
}, 8, ["color", "loading"])) : B("v-if", !0),
|
|
3538
|
-
v.link ? (A(), N(O(i), {
|
|
3539
|
-
key: 2,
|
|
3540
|
-
"data-test": "link-btn",
|
|
3541
|
-
color: v.type,
|
|
3542
|
-
pastel: "",
|
|
3543
|
-
size: "xs",
|
|
3544
|
-
href: v.link.href,
|
|
3545
|
-
target: v.link.target ?? "_self"
|
|
3546
|
-
}, {
|
|
3547
|
-
default: q(() => {
|
|
3548
|
-
var M;
|
|
3549
|
-
return [
|
|
3550
|
-
V("div", In, [
|
|
3551
|
-
v.link.text ? (A(), U(
|
|
3552
|
-
"span",
|
|
3553
|
-
An,
|
|
3554
|
-
X(v.link.text),
|
|
3555
|
-
1
|
|
3556
|
-
/* TEXT */
|
|
3557
|
-
)) : B("v-if", !0),
|
|
3558
|
-
((M = v.link) == null ? void 0 : M.target) === "_blank" ? (A(), N(O(a), {
|
|
3559
|
-
key: 1,
|
|
3560
|
-
class: "maz-text-xl"
|
|
3561
|
-
})) : (A(), N(O(w), {
|
|
3562
|
-
key: 2,
|
|
3563
|
-
class: "maz-text-xl"
|
|
3564
|
-
}))
|
|
3565
|
-
])
|
|
3566
|
-
];
|
|
3567
|
-
}),
|
|
3568
|
-
_: 1
|
|
3569
|
-
/* STABLE */
|
|
3570
|
-
}, 8, ["color", "href", "target"])) : B("v-if", !0),
|
|
3571
|
-
v.persistent ? B("v-if", !0) : (A(), U("button", {
|
|
3572
|
-
key: 3,
|
|
3573
|
-
class: "--close",
|
|
3574
|
-
onClick: x[1] || (x[1] = Z((M) => me(M), ["stop"]))
|
|
3575
|
-
}, [
|
|
3576
|
-
ee(O(r), { class: "--icon maz-text-xl" })
|
|
3577
|
-
])),
|
|
3578
|
-
typeof v.timeout == "number" && v.timeout > 0 ? (A(), U("div", Sn, [
|
|
3579
|
-
V(
|
|
3580
|
-
"div",
|
|
3581
|
-
{
|
|
3582
|
-
style: Kt({
|
|
3583
|
-
width: de.value
|
|
3584
|
-
}),
|
|
3585
|
-
class: ue(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", $e()])
|
|
3586
|
-
},
|
|
3587
|
-
null,
|
|
3588
|
-
6
|
|
3589
|
-
/* CLASS, STYLE */
|
|
3590
|
-
)
|
|
3591
|
-
])) : B("v-if", !0)
|
|
3592
|
-
],
|
|
3593
|
-
34
|
|
3594
|
-
/* CLASS, NEED_HYDRATION */
|
|
3595
|
-
), [
|
|
3596
|
-
[ct, p.value]
|
|
3597
|
-
])
|
|
3598
|
-
]),
|
|
3599
|
-
_: 1
|
|
3600
|
-
/* STABLE */
|
|
3601
|
-
}, 8, ["name"]));
|
|
3602
|
-
}
|
|
3603
|
-
}), On = /* @__PURE__ */ Me(xn, [["__scopeId", "data-v-b70bc12e"]]), Dn = {
|
|
3604
|
-
position: "bottom-right",
|
|
3605
|
-
timeout: 1e4,
|
|
3606
|
-
persistent: !1,
|
|
3607
|
-
icon: !0
|
|
3608
|
-
};
|
|
3609
|
-
class Pn {
|
|
3610
|
-
constructor(e, t) {
|
|
3611
|
-
this.app = e, this.globalOptions = t;
|
|
3612
|
-
}
|
|
3613
|
-
show(e, t) {
|
|
3614
|
-
const n = {
|
|
3615
|
-
...Dn,
|
|
3616
|
-
...this.globalOptions,
|
|
3617
|
-
...t,
|
|
3618
|
-
message: e
|
|
3619
|
-
}, { destroy: o, vNode: i } = Ke(On, {
|
|
3620
|
-
props: n,
|
|
3621
|
-
app: this.app
|
|
3622
|
-
});
|
|
3623
|
-
return {
|
|
3624
|
-
destroy: o,
|
|
3625
|
-
close: () => {
|
|
3626
|
-
var r, a;
|
|
3627
|
-
return (a = (r = i.component) == null ? void 0 : r.exposed) == null ? void 0 : a.closeToast();
|
|
3628
|
-
}
|
|
3629
|
-
};
|
|
3630
|
-
}
|
|
3631
|
-
getLocalOptions(e, t) {
|
|
3632
|
-
return {
|
|
3633
|
-
type: e,
|
|
3634
|
-
...t
|
|
3635
|
-
};
|
|
3636
|
-
}
|
|
3637
|
-
message(e, t) {
|
|
3638
|
-
return this.show(e, this.getLocalOptions("theme", t));
|
|
3639
|
-
}
|
|
3640
|
-
success(e, t) {
|
|
3641
|
-
return this.show(e, this.getLocalOptions("success", t));
|
|
3642
|
-
}
|
|
3643
|
-
error(e, t) {
|
|
3644
|
-
return this.show(e, this.getLocalOptions("danger", t));
|
|
3645
|
-
}
|
|
3646
|
-
info(e, t) {
|
|
3647
|
-
return this.show(e, this.getLocalOptions("info", t));
|
|
3648
|
-
}
|
|
3649
|
-
warning(e, t) {
|
|
3650
|
-
return this.show(e, this.getLocalOptions("warning", t));
|
|
3651
|
-
}
|
|
3652
|
-
}
|
|
3653
|
-
function Mn(s, e) {
|
|
3654
|
-
return new Pn(s, e);
|
|
3655
|
-
}
|
|
3656
|
-
const go = {
|
|
3657
|
-
install(s, e) {
|
|
3658
|
-
s.provide("toast", Mn(s, e));
|
|
3659
|
-
}
|
|
3660
|
-
}, ae = "";
|
|
3661
|
-
function $n(s) {
|
|
3662
|
-
return s.filter((e, t, n) => t === n.indexOf(e));
|
|
3663
|
-
}
|
|
3664
|
-
function Vn(s) {
|
|
3665
|
-
return (e = ae) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
|
|
3666
|
-
}
|
|
3667
|
-
const Hn = (s) => s.length > 0;
|
|
3668
|
-
function Bn(s) {
|
|
3669
|
-
return (e = ae) => $n([...s, e]);
|
|
3670
|
-
}
|
|
3671
|
-
function Nn(s) {
|
|
3672
|
-
return (e = ae) => s.filter((t) => t !== e);
|
|
3673
|
-
}
|
|
3674
|
-
class Fn {
|
|
3675
|
-
constructor() {
|
|
3676
|
-
c(this, "_loaders", b([]));
|
|
3677
|
-
}
|
|
3678
|
-
get loaders() {
|
|
3679
|
-
return h(() => this._loaders.value);
|
|
3680
|
-
}
|
|
3681
|
-
stop(e = ae) {
|
|
3682
|
-
this._loaders.value = Nn(this._loaders.value)(e);
|
|
3683
|
-
}
|
|
3684
|
-
start(e = ae) {
|
|
3685
|
-
return this._loaders.value = Bn(this._loaders.value)(e), () => this.stop(e);
|
|
3686
|
-
}
|
|
3687
|
-
get anyLoading() {
|
|
3688
|
-
return h(() => Hn(this._loaders.value));
|
|
3689
|
-
}
|
|
3690
|
-
isLoading(e = ae) {
|
|
3691
|
-
return h(() => Vn(this._loaders.value)(e)).value;
|
|
3692
|
-
}
|
|
3693
|
-
}
|
|
3694
|
-
const jn = new Fn(), yo = {
|
|
3695
|
-
install: (s) => {
|
|
3696
|
-
s.provide("wait", jn);
|
|
3697
|
-
}
|
|
3698
|
-
};
|
|
3699
|
-
export {
|
|
3700
|
-
vo as $,
|
|
3701
|
-
Vs as A,
|
|
3702
|
-
_s as B,
|
|
3703
|
-
Rs as C,
|
|
3704
|
-
Ys as D,
|
|
3705
|
-
co as E,
|
|
3706
|
-
Gs as F,
|
|
3707
|
-
Qs as G,
|
|
3708
|
-
fo as H,
|
|
3709
|
-
en as I,
|
|
3710
|
-
on as J,
|
|
3711
|
-
an as K,
|
|
3712
|
-
un as L,
|
|
3713
|
-
mt as M,
|
|
3714
|
-
ro as N,
|
|
3715
|
-
ao as O,
|
|
3716
|
-
vs as P,
|
|
3717
|
-
F as Q,
|
|
3718
|
-
Ke as R,
|
|
3719
|
-
Je as S,
|
|
3720
|
-
lo as T,
|
|
3721
|
-
Bs as U,
|
|
3722
|
-
Ls as V,
|
|
3723
|
-
uo as W,
|
|
3724
|
-
Hs as X,
|
|
3725
|
-
As as Y,
|
|
3726
|
-
dn as Z,
|
|
3727
|
-
Me as _,
|
|
3728
|
-
Rn as a,
|
|
3729
|
-
ho as a0,
|
|
3730
|
-
Ln as a1,
|
|
3731
|
-
po as a2,
|
|
3732
|
-
go as a3,
|
|
3733
|
-
Pn as a4,
|
|
3734
|
-
yo as a5,
|
|
3735
|
-
Fn as a6,
|
|
3736
|
-
jn as a7,
|
|
3737
|
-
_n as b,
|
|
3738
|
-
Kn as c,
|
|
3739
|
-
Yn as d,
|
|
3740
|
-
Zn as e,
|
|
3741
|
-
Xn as f,
|
|
3742
|
-
gs as g,
|
|
3743
|
-
Gn as h,
|
|
3744
|
-
Pe as i,
|
|
3745
|
-
Qn as j,
|
|
3746
|
-
Jn as k,
|
|
3747
|
-
ys as l,
|
|
3748
|
-
eo as m,
|
|
3749
|
-
to as n,
|
|
3750
|
-
Is as o,
|
|
3751
|
-
so as p,
|
|
3752
|
-
no as q,
|
|
3753
|
-
oo as r,
|
|
3754
|
-
Zt as s,
|
|
3755
|
-
mo as t,
|
|
3756
|
-
Wn as u,
|
|
3757
|
-
xs as v,
|
|
3758
|
-
Os as w,
|
|
3759
|
-
Ms as x,
|
|
3760
|
-
$s as y,
|
|
3761
|
-
io as z
|
|
3762
|
-
};
|