maz-ui 3.47.2-beta.2 → 3.47.2-beta.21
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/components/MazAccordion.d.ts +3 -2
- package/components/MazAccordion.mjs +90 -98
- package/components/MazAnimatedCounter.d.ts +16 -32
- package/components/MazAnimatedCounter.mjs +26 -26
- package/components/MazAvatar.d.ts +2 -1
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +23 -14
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.d.ts +7 -2
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.d.ts +13 -25
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +4 -3
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +5 -4
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +3 -2
- package/components/MazCardSpotlight.mjs +18 -22
- package/components/MazCarousel.d.ts +3 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +86 -83
- package/components/MazChecklist.d.ts +2 -5
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +31 -60
- package/components/MazCircularProgressBar.mjs +76 -74
- package/components/MazDialog.d.ts +24 -33
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +9 -5
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.d.ts +25 -3
- package/components/MazDropdown.mjs +2 -325
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazExpandAnimation.mjs +22 -25
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazFullscreenLoader.mjs +7 -7
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +14 -13
- package/components/MazInput.d.ts +18 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputCode.mjs +36 -39
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +4 -3
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -1
- package/components/MazLink.d.ts +2 -1
- package/components/MazLink.mjs +1 -1
- package/components/MazLoadingBar.d.ts +1 -1
- package/components/MazLoadingBar.mjs +31 -27
- package/components/MazPagination.d.ts +3 -2
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +31 -55
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +13 -24
- package/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
- package/components/MazPicker.d.ts +3 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +4 -3
- package/components/MazRadio.d.ts +1 -1
- package/components/MazRadio.mjs +31 -37
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.d.ts +2 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazSpinner.d.ts +1 -1
- package/components/MazStepper.d.ts +3 -2
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -1
- package/components/MazSwitch.mjs +29 -33
- package/components/MazTable.d.ts +8 -2
- package/components/MazTable.mjs +3 -2
- package/components/MazTableCell.d.ts +3 -2
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.d.ts +3 -2
- package/components/MazTableRow.mjs +16 -16
- package/components/MazTableTitle.d.ts +3 -2
- package/components/MazTableTitle.mjs +18 -18
- package/components/MazTabs.d.ts +3 -2
- package/components/MazTabsBar.d.ts +3 -2
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.d.ts +3 -2
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.d.ts +2 -1
- package/components/MazTabsContentItem.mjs +11 -11
- package/components/MazTextarea.d.ts +58 -32
- package/components/MazTextarea.mjs +128 -109
- package/components/MazTransitionExpand.d.ts +2 -1
- package/components/MazTransitionExpand.mjs +9 -9
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-DFoZvWmg.mjs → MazAvatar-CZzOIbzh.mjs} +54 -54
- package/components/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-DCzaExPj.mjs} +2 -2
- package/components/chunks/MazBottomSheet-DGsGO0zo.mjs +224 -0
- package/components/chunks/MazBtn-4-B-zs6Y.mjs +103 -0
- package/components/chunks/MazBtn-BS2kvd1Z.mjs +103 -0
- package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
- package/components/chunks/MazBtn-C60T0UDa.mjs +103 -0
- package/components/chunks/MazBtn-C6zsmGnw.mjs +103 -0
- package/components/chunks/MazBtn-C7yEnuOD.mjs +103 -0
- package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
- package/components/chunks/MazBtn-CsLtHm4K.mjs +103 -0
- package/components/chunks/MazBtn-D1jMqwE1.mjs +103 -0
- package/components/chunks/MazBtn-DAXwt847.mjs +103 -0
- package/components/chunks/MazBtn-DOWVQgpN.mjs +103 -0
- package/components/chunks/MazBtn-DZaVjTvW.mjs +103 -0
- package/components/chunks/MazBtn-ZAcYNusG.mjs +103 -0
- package/components/chunks/MazBtn-oZhhJy09.mjs +103 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-98OuVlyK.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-COTaKhKF.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BNvSeNBP.mjs} +63 -59
- package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-CCma_qyQ.mjs} +63 -59
- package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-eOEEACaM.mjs} +64 -60
- package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-Bb_70sf5.mjs} +110 -111
- package/components/chunks/MazDialog-Ca3jJ12T.mjs +297 -0
- package/components/chunks/MazDialogPromise-DOnmLhui.mjs +551 -0
- package/components/chunks/MazDrawer-Bas9dy0D.mjs +226 -0
- package/components/chunks/MazDropdown-0r445NfW.mjs +426 -0
- package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-r8SBTCgJ.mjs} +42 -45
- package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-xPp1apvO.mjs} +94 -97
- package/components/chunks/MazIcon-BoTByt7n.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
- package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-kLACGOa2.mjs} +4 -3
- package/components/chunks/MazInput-BM4n-byz.mjs +313 -0
- package/components/chunks/MazInput-BcutbP8N.mjs +314 -0
- package/components/chunks/MazInput-C9Qh4Gt3.mjs +324 -0
- package/components/chunks/MazInputNumber-DgjOMiOt.mjs +600 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-D6fJN9yv.mjs} +200 -169
- package/components/chunks/{MazInputTags-Dj3sW-e5.mjs → MazInputTags-DthGSyHQ.mjs} +251 -223
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-tud3eDgU.mjs} +1 -1
- package/components/chunks/MazLoadingBar-C2qPjfEQ.mjs +36 -0
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/MazPhoneNumberInput-BQjByOtQ.mjs +1813 -0
- package/components/chunks/MazPicker-BljfUneI.mjs +2486 -0
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-CEVb4BXw.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-DayGMC9m.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-DC1lFIbp.mjs} +1 -1
- package/components/chunks/MazSelect-CH3JdigO.mjs +867 -0
- package/components/chunks/MazSelect-D3KXcHJS.mjs +550 -0
- package/components/chunks/MazSpinner-B5JChIrj.mjs +34 -0
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-BBZoDxwq.mjs} +1 -1
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-BIPm54-3.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/MazSpinner-C-ln9ldX.mjs +34 -0
- package/components/chunks/MazSpinner-C11EOZZd.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C6h03sqc.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-CCc9ajpj.mjs} +1 -1
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CgKOIkQQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner-Cp_nPioh.mjs} +1 -1
- package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-CwdlrYSt.mjs} +1 -1
- package/components/chunks/MazSpinner-D5Sbo759.mjs +34 -0
- package/components/chunks/MazSpinner-DPur0-r-.mjs +34 -0
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +34 -0
- package/components/chunks/MazSpinner-DoPIk0St.mjs +34 -0
- package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-DqD51Fb6.mjs} +1 -1
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZFhNCy24.mjs +34 -0
- package/components/chunks/MazSpinner-b90e3OQK.mjs +34 -0
- package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
- package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BU3Hluiu.mjs} +85 -81
- package/components/chunks/MazTableCell-DKMZAanm.mjs +23 -0
- package/components/chunks/MazTableRow-CDHpmXfw.mjs +30 -0
- package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-BSFZ84Ob.mjs} +4 -4
- package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar--Xq_cpuz.mjs} +62 -78
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-Cedz9Ree.mjs} +8 -8
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-CFge_w1W.cjs +1 -0
- package/modules/chunks/MazBtn-yNCoLFA6.mjs +103 -0
- package/modules/chunks/{MazIcon-DEgoQbMj.mjs → MazIcon-C3__MBEL.mjs} +4 -3
- package/modules/chunks/{MazIcon-CkuzyufF.cjs → MazIcon-CqhvM2xp.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BurN-1pb.mjs → MazSpinner-C4XtaFJk.mjs} +1 -1
- package/modules/chunks/{MazSpinner-jP4QsCNE.cjs → MazSpinner-DkJAN36F.cjs} +1 -1
- package/modules/chunks/index-Bawg2UGE.cjs +124 -0
- package/modules/chunks/{index-CxFUggmu.mjs → index-CXu9R01-.mjs} +1207 -962
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +23 -22
- package/tailwindcss/variables/colors.ts +2 -0
- package/types/components/MazAccordion.vue.d.ts +3 -2
- package/types/components/MazAnimatedCounter.vue.d.ts +16 -32
- package/types/components/MazAvatar.vue.d.ts +2 -1
- package/types/components/MazBackdrop.vue.d.ts +23 -14
- package/types/components/MazBadge.vue.d.ts +7 -2
- package/types/components/MazBottomSheet.vue.d.ts +13 -25
- package/types/components/MazBtn.vue.d.ts +4 -3
- package/types/components/MazCard.vue.d.ts +5 -4
- package/types/components/MazCardSpotlight.vue.d.ts +3 -2
- package/types/components/MazCarousel.vue.d.ts +3 -2
- package/types/components/MazCheckbox.vue.d.ts +4 -3
- package/types/components/MazChecklist.vue.d.ts +2 -5
- package/types/components/MazCircularProgressBar.vue.d.ts +31 -60
- package/types/components/MazDialog.vue.d.ts +24 -33
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +9 -5
- package/types/components/MazDropdown.vue.d.ts +25 -3
- package/types/components/MazDropzone.vue.d.ts +1 -1
- package/types/components/MazExpandAnimation.vue.d.ts +6 -5
- package/types/components/MazFullscreenLoader.vue.d.ts +2 -1
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInput.vue.d.ts +18 -3
- package/types/components/MazInputCode.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +4 -3
- package/types/components/MazLazyImg.vue.d.ts +2 -1
- package/types/components/MazLink.vue.d.ts +2 -1
- package/types/components/MazLoadingBar.vue.d.ts +1 -1
- package/types/components/MazPagination.vue.d.ts +3 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +31 -55
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +13 -24
- package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +3 -1
- package/types/components/MazPullToRefresh.vue.d.ts +4 -3
- package/types/components/MazRadio.vue.d.ts +1 -1
- package/types/components/MazRadioButtons.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSelect.vue.d.ts +2 -2
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/components/MazSpinner.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +3 -2
- package/types/components/MazSwitch.vue.d.ts +2 -1
- package/types/components/MazTable.vue.d.ts +8 -2
- package/types/components/MazTableCell.vue.d.ts +3 -2
- package/types/components/MazTableRow.vue.d.ts +3 -2
- package/types/components/MazTableTitle.vue.d.ts +3 -2
- package/types/components/MazTabs.vue.d.ts +3 -2
- package/types/components/MazTabsBar.vue.d.ts +3 -2
- package/types/components/MazTabsContent.vue.d.ts +3 -2
- package/types/components/MazTabsContentItem.vue.d.ts +2 -1
- package/types/components/MazTextarea.vue.d.ts +58 -32
- package/types/components/MazTransitionExpand.vue.d.ts +2 -1
- package/types/modules/composables/useFormValidator/types.d.ts +8 -8
- package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
- package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
- package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/MazPhoneNumberInput.d.ts +0 -239
- package/components/chunks/MazBottomSheet-CGRvZmGd.mjs +0 -208
- package/components/chunks/MazBtn-2VKM1wZu.mjs +0 -106
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BMYXMZuX.mjs +0 -106
- package/components/chunks/MazBtn-BijEMn4r.mjs +0 -106
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-DfqRZvbB.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cDJlUVVY.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazDialog-khofH-7I.mjs +0 -237
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +0 -488
- package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
- package/components/chunks/MazInput-DC3S-CVu.mjs +0 -282
- package/components/chunks/MazInput-DzWkS-g8.mjs +0 -293
- package/components/chunks/MazInput-NE6H-10w.mjs +0 -281
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazLoadingBar-DdjHRC7g.mjs +0 -32
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazPhoneNumberInput-BbssOUzo.mjs +0 -1778
- package/components/chunks/MazPicker-DwWiIYAR.mjs +0 -2456
- package/components/chunks/MazSelect-BJ07NVXQ.mjs +0 -843
- package/components/chunks/MazSelect-CDV9Fx6m.mjs +0 -556
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CykRbNHD.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-Dmkr_r9u.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
- package/components/chunks/MazTableCell-DILuUCTe.mjs +0 -23
- package/components/chunks/MazTableRow-D6H6-c8J.mjs +0 -30
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
- package/modules/chunks/MazBtn-B_Xlvgbg.cjs +0 -1
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +0 -106
- package/modules/chunks/index-CUNN0eIB.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -239
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '../assets/index.css';var Pt = Object.defineProperty;
|
|
2
2
|
var Mt = (s, e, t) => e in s ? Pt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var d = (s, e, t) => Mt(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { inject as ot, ref as
|
|
5
|
-
function
|
|
4
|
+
import { inject as ot, ref as w, onMounted as le, onUnmounted as it, computed as p, toValue as ve, nextTick as ae, getCurrentInstance as $t, watch as X, provide as Vt, useId as Ht, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ye, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as U, withModifiers as Y, withKeys as Nt, unref as x, createCommentVNode as B, createElementVNode as V, normalizeClass as ge, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as q, mergeProps as ee, renderSlot as W, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as qt, resolveDynamicComponent as Ut, normalizeStyle as Wt } from "vue";
|
|
5
|
+
function De(s, e) {
|
|
6
6
|
const t = ot(s, e);
|
|
7
7
|
if (!t)
|
|
8
|
-
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);
|
|
8
|
+
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s.toString()}`);
|
|
9
9
|
return t;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return
|
|
11
|
+
function jn() {
|
|
12
|
+
return De("aos");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Rt(s) {
|
|
15
15
|
const e = {};
|
|
16
16
|
for (const [t, n] of Object.entries(s))
|
|
17
17
|
e[t] = Number.parseInt(n, 10);
|
|
@@ -20,23 +20,23 @@ function Wt(s) {
|
|
|
20
20
|
function F() {
|
|
21
21
|
return typeof document < "u";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function _t(s = {}) {
|
|
24
24
|
const {
|
|
25
25
|
internalWindow: e = F() ? window : void 0,
|
|
26
26
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
27
27
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
28
28
|
includeScrollbar: o = !0
|
|
29
|
-
} = s, i =
|
|
29
|
+
} = s, i = w(t), r = w(n);
|
|
30
30
|
function a() {
|
|
31
31
|
e && (o ? (i.value = e.innerWidth, r.value = e.innerHeight) : (i.value = e.document.documentElement.clientWidth, r.value = e.document.documentElement.clientHeight));
|
|
32
32
|
}
|
|
33
|
-
return a(),
|
|
33
|
+
return a(), le(() => {
|
|
34
34
|
e && window.addEventListener("resize", a, { passive: !0 });
|
|
35
35
|
}), it(() => {
|
|
36
36
|
e && window.removeEventListener("resize", a);
|
|
37
37
|
}), { width: i, height: r };
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function qn({
|
|
40
40
|
initialWidth: s = 0,
|
|
41
41
|
initialHeight: e,
|
|
42
42
|
includeScrollbar: t,
|
|
@@ -46,27 +46,27 @@ function jn({
|
|
|
46
46
|
mediumBreakPoint: r = "md",
|
|
47
47
|
largeBreakPoint: a = "lg"
|
|
48
48
|
}) {
|
|
49
|
-
const { width:
|
|
49
|
+
const { width: l } = _t({
|
|
50
50
|
initialWidth: s,
|
|
51
51
|
// (SSR) mobile first
|
|
52
52
|
initialHeight: e,
|
|
53
53
|
includeScrollbar: t,
|
|
54
54
|
internalWindow: n,
|
|
55
55
|
listenOrientation: o
|
|
56
|
-
}),
|
|
57
|
-
() =>
|
|
58
|
-
),
|
|
56
|
+
}), u = Rt(i), b = p(() => l.value >= u[a]), c = p(
|
|
57
|
+
() => l.value >= u[r] && l.value < u[a]
|
|
58
|
+
), f = p(() => l.value >= 0 && l.value < u[r]);
|
|
59
59
|
return {
|
|
60
|
-
width:
|
|
61
|
-
numericBreakpoints:
|
|
62
|
-
isSmallScreen:
|
|
63
|
-
isLargeScreen:
|
|
64
|
-
isMediumScreen:
|
|
60
|
+
width: l,
|
|
61
|
+
numericBreakpoints: u,
|
|
62
|
+
isSmallScreen: f,
|
|
63
|
+
isLargeScreen: b,
|
|
64
|
+
isMediumScreen: c,
|
|
65
65
|
breakpoints: i
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function Un() {
|
|
69
|
-
return
|
|
69
|
+
return De("dialog");
|
|
70
70
|
}
|
|
71
71
|
function ct(s, e, t) {
|
|
72
72
|
const n = {
|
|
@@ -82,7 +82,7 @@ function ct(s, e, t) {
|
|
|
82
82
|
i();
|
|
83
83
|
}
|
|
84
84
|
function dt(s) {
|
|
85
|
-
const e =
|
|
85
|
+
const e = ve(s);
|
|
86
86
|
return Array.isArray(e) ? Object.freeze([...e]) : typeof e == "object" && e !== null ? Object.freeze({ ...e }) : e;
|
|
87
87
|
}
|
|
88
88
|
function Ze(s) {
|
|
@@ -92,7 +92,7 @@ function Kt(s, e) {
|
|
|
92
92
|
if (s.length !== e.length)
|
|
93
93
|
return !1;
|
|
94
94
|
for (const [t, n] of s.entries())
|
|
95
|
-
if (!
|
|
95
|
+
if (!be(n, e[t]))
|
|
96
96
|
return !1;
|
|
97
97
|
return !0;
|
|
98
98
|
}
|
|
@@ -101,24 +101,24 @@ function Yt(s, e) {
|
|
|
101
101
|
if (t.length !== n.length)
|
|
102
102
|
return !1;
|
|
103
103
|
for (const o of t)
|
|
104
|
-
if (!n.includes(o) || !
|
|
104
|
+
if (!n.includes(o) || !be(s[o], e[o]))
|
|
105
105
|
return !1;
|
|
106
106
|
return !0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function be(s, e) {
|
|
109
109
|
return Ze(s) || Ze(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) ? Kt(s, e) : typeof s == "object" && typeof e == "object" ? Yt(s, e) : !1;
|
|
110
110
|
}
|
|
111
111
|
function Zt(s, e, t) {
|
|
112
112
|
const n = {};
|
|
113
|
-
return
|
|
113
|
+
return function(...o) {
|
|
114
114
|
n[s] || (n[s] = { timer: null, promise: null });
|
|
115
115
|
const i = n[s];
|
|
116
116
|
return i.timer && clearTimeout(i.timer), i.promise = new Promise((r, a) => {
|
|
117
117
|
i.timer = setTimeout(async () => {
|
|
118
118
|
try {
|
|
119
119
|
r(await e(...o));
|
|
120
|
-
} catch (
|
|
121
|
-
a(
|
|
120
|
+
} catch (l) {
|
|
121
|
+
a(l);
|
|
122
122
|
} finally {
|
|
123
123
|
delete n[s];
|
|
124
124
|
}
|
|
@@ -142,7 +142,7 @@ function Xt(s, e, t) {
|
|
|
142
142
|
})), n[s].promise);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const te = {
|
|
146
146
|
mode: "lazy",
|
|
147
147
|
scrollToErrorSelector: ".has-field-error",
|
|
148
148
|
debounceTime: 300,
|
|
@@ -151,7 +151,7 @@ const se = {
|
|
|
151
151
|
function mt(s, e) {
|
|
152
152
|
return Object.keys(e).includes(s);
|
|
153
153
|
}
|
|
154
|
-
function Xe(s =
|
|
154
|
+
function Xe(s = te.scrollToErrorSelector) {
|
|
155
155
|
const e = document.querySelector(s);
|
|
156
156
|
e && e.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
157
157
|
}
|
|
@@ -163,7 +163,7 @@ function Gt(s, e) {
|
|
|
163
163
|
}
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function We(s) {
|
|
167
167
|
return s == null || s === "";
|
|
168
168
|
}
|
|
169
169
|
function Qt({
|
|
@@ -172,19 +172,20 @@ function Qt({
|
|
|
172
172
|
debouncedFields: t,
|
|
173
173
|
throttledFields: n
|
|
174
174
|
}) {
|
|
175
|
-
if (e)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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] ? Zt(
|
|
181
|
+
o,
|
|
182
|
+
pe,
|
|
183
|
+
typeof t[o] == "number" ? t[o] : te.debounceTime
|
|
184
|
+
) : n != null && n[o] ? Xt(
|
|
185
|
+
o,
|
|
186
|
+
pe,
|
|
187
|
+
typeof n[o] == "number" ? n[o] : te.throttleTime
|
|
188
|
+
) : pe;
|
|
188
189
|
}
|
|
189
190
|
function ft({
|
|
190
191
|
name: s,
|
|
@@ -209,7 +210,7 @@ function ft({
|
|
|
209
210
|
validated: !1,
|
|
210
211
|
initialValue: dt(t),
|
|
211
212
|
validateFunction: r,
|
|
212
|
-
mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ??
|
|
213
|
+
mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? te.mode : void 0
|
|
213
214
|
};
|
|
214
215
|
}
|
|
215
216
|
function Jt({
|
|
@@ -257,18 +258,18 @@ function ht({
|
|
|
257
258
|
options: o,
|
|
258
259
|
updateMode: i = !0
|
|
259
260
|
}) {
|
|
260
|
-
const { initialValue: r, mode: a, ...
|
|
261
|
+
const { initialValue: r, mode: a, ...l } = ft({
|
|
261
262
|
name: s,
|
|
262
263
|
schema: n,
|
|
263
264
|
initialValue: o.defaultValue ?? t[s],
|
|
264
265
|
fieldState: e,
|
|
265
266
|
options: o
|
|
266
|
-
}),
|
|
267
|
+
}), u = i ? a ?? e.mode ?? te.mode : e.mode;
|
|
267
268
|
return {
|
|
268
269
|
...e,
|
|
269
270
|
initialValue: r,
|
|
270
|
-
mode:
|
|
271
|
-
...e != null && e.mode &&
|
|
271
|
+
mode: u,
|
|
272
|
+
...e != null && e.mode && u !== e.mode ? l : {}
|
|
272
273
|
};
|
|
273
274
|
}
|
|
274
275
|
function ts(s) {
|
|
@@ -288,7 +289,7 @@ function ns({
|
|
|
288
289
|
mode: t
|
|
289
290
|
}) {
|
|
290
291
|
s.forEach((n) => {
|
|
291
|
-
|
|
292
|
+
we(["eager", "blur", "progressive"], t) && n.addEventListener("blur", e);
|
|
292
293
|
});
|
|
293
294
|
}
|
|
294
295
|
function os({
|
|
@@ -314,12 +315,12 @@ async function pe({
|
|
|
314
315
|
setError: o = !0,
|
|
315
316
|
setErrorIfInvalidAndNotEmpty: i = !1
|
|
316
317
|
}) {
|
|
317
|
-
if (await
|
|
318
|
+
if (await ae(), e.validating = !0, !t[s]) {
|
|
318
319
|
e.valid = !0, e.validating = !1, e.validated = !0, e.errors = [], e.error = !1;
|
|
319
320
|
return;
|
|
320
321
|
}
|
|
321
322
|
const { result: r, isValid: a } = await is(s, t, n[s]);
|
|
322
|
-
e.valid = a, (o || i && !a && !
|
|
323
|
+
e.valid = a, (o || i && !a && !We(n[s])) && (e.error = !a), e.errors = r.issues ?? [], e.validating = !1, e.validated = !0;
|
|
323
324
|
}
|
|
324
325
|
function vt({
|
|
325
326
|
name: s,
|
|
@@ -362,7 +363,7 @@ function pt({
|
|
|
362
363
|
isSubmitted: t
|
|
363
364
|
}) {
|
|
364
365
|
const { dirty: n, blurred: o, mode: i, valid: r } = e;
|
|
365
|
-
return s === "blur" && (
|
|
366
|
+
return s === "blur" && (we(["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";
|
|
366
367
|
}
|
|
367
368
|
function as({
|
|
368
369
|
name: s,
|
|
@@ -372,7 +373,7 @@ function as({
|
|
|
372
373
|
schema: o,
|
|
373
374
|
isSubmitted: i
|
|
374
375
|
}) {
|
|
375
|
-
const r = t[s], a = !
|
|
376
|
+
const r = t[s], a = !We(r) && !be(r, n.initialValue);
|
|
376
377
|
if (n.dirty = a, n.blurred = n.blurred || (n.mode === "eager" ? a : !0), !!(e || pt({ eventName: "blur", fieldState: n, isSubmitted: i })))
|
|
377
378
|
return vt({
|
|
378
379
|
name: s,
|
|
@@ -391,7 +392,7 @@ function ls({
|
|
|
391
392
|
}) {
|
|
392
393
|
const r = e[s];
|
|
393
394
|
t.validated = !1;
|
|
394
|
-
const a = !
|
|
395
|
+
const a = !We(r) && !be(r, t.initialValue);
|
|
395
396
|
if (t.dirty = a, !!(i || pt({ eventName: "input", fieldState: t, isSubmitted: o })))
|
|
396
397
|
return vt({
|
|
397
398
|
name: s,
|
|
@@ -400,7 +401,7 @@ function ls({
|
|
|
400
401
|
payload: e
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function Re(s) {
|
|
404
405
|
const e = $t();
|
|
405
406
|
if (!e)
|
|
406
407
|
throw new Error(`${s} must be called within setup()`);
|
|
@@ -408,7 +409,7 @@ function qe(s) {
|
|
|
408
409
|
}
|
|
409
410
|
function us(s, e) {
|
|
410
411
|
var o;
|
|
411
|
-
const n = ((o =
|
|
412
|
+
const n = ((o = Re(e).formContexts) == null ? void 0 : o.get(s)) ?? ot(s);
|
|
412
413
|
if (!n)
|
|
413
414
|
throw new Error("useFormField must be used within a form (useFormValidator)");
|
|
414
415
|
return n;
|
|
@@ -418,25 +419,25 @@ function cs({
|
|
|
418
419
|
fieldState: e,
|
|
419
420
|
onBlurHandler: t
|
|
420
421
|
}) {
|
|
421
|
-
if (!(s ||
|
|
422
|
+
if (!(s || we(["aggressive", "lazy"], e.mode)))
|
|
422
423
|
return {
|
|
423
424
|
onBlur: t
|
|
424
425
|
};
|
|
425
426
|
}
|
|
426
|
-
const
|
|
427
|
+
const Be = {};
|
|
427
428
|
async function gt(s) {
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
429
|
+
if (Be[s])
|
|
430
|
+
return Be[s];
|
|
430
431
|
const e = await import("./index-BgyjI1q8.mjs");
|
|
431
|
-
return
|
|
432
|
+
return Be[s] = e[s], e[s];
|
|
432
433
|
}
|
|
433
434
|
async function ds(s) {
|
|
434
435
|
return (await gt("objectAsync"))(s);
|
|
435
436
|
}
|
|
436
|
-
function
|
|
437
|
+
function we(s, e) {
|
|
437
438
|
return e ? s.includes(e) : !1;
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
+
function Wn(s, e) {
|
|
440
441
|
const t = {
|
|
441
442
|
formIdentifier: "main-form-validator",
|
|
442
443
|
...e
|
|
@@ -446,188 +447,193 @@ function _n(s, e) {
|
|
|
446
447
|
options: i,
|
|
447
448
|
internalSchema: r,
|
|
448
449
|
errorMessages: a,
|
|
449
|
-
isSubmitted:
|
|
450
|
-
} = us(t.formIdentifier, "useFormField"),
|
|
451
|
-
t.mode =
|
|
452
|
-
const
|
|
450
|
+
isSubmitted: l
|
|
451
|
+
} = us(t.formIdentifier, "useFormField"), u = mt(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
|
|
452
|
+
t.mode = u;
|
|
453
|
+
const b = p(() => n.value[s]);
|
|
453
454
|
if (n.value[s] = ht({
|
|
454
455
|
name: s,
|
|
455
|
-
fieldState:
|
|
456
|
+
fieldState: b.value,
|
|
456
457
|
payload: o.value,
|
|
457
458
|
schema: r.value,
|
|
458
459
|
options: { ...i, ...t }
|
|
459
|
-
}), t.defaultValue !== void 0 && !
|
|
460
|
-
const
|
|
461
|
-
o.value[s] =
|
|
460
|
+
}), t.defaultValue !== void 0 && !be(o.value[s], t.defaultValue)) {
|
|
461
|
+
const E = t.defaultValue;
|
|
462
|
+
o.value[s] = E, n.value[s].initialValue = dt(E);
|
|
462
463
|
}
|
|
463
|
-
|
|
464
|
+
u && pe({
|
|
464
465
|
name: s,
|
|
465
|
-
fieldState:
|
|
466
|
+
fieldState: b.value,
|
|
466
467
|
payload: o.value,
|
|
467
468
|
schema: r.value,
|
|
468
|
-
setError:
|
|
469
|
-
setErrorIfInvalidAndNotEmpty:
|
|
469
|
+
setError: u === "aggressive",
|
|
470
|
+
setErrorIfInvalidAndNotEmpty: u === "lazy"
|
|
470
471
|
});
|
|
471
|
-
function
|
|
472
|
+
function c() {
|
|
472
473
|
as({
|
|
473
474
|
name: s,
|
|
474
|
-
fieldState:
|
|
475
|
+
fieldState: b.value,
|
|
475
476
|
payload: o.value,
|
|
476
477
|
schema: r.value,
|
|
477
|
-
isSubmitted:
|
|
478
|
+
isSubmitted: l.value
|
|
478
479
|
});
|
|
479
480
|
}
|
|
480
|
-
const
|
|
481
|
+
const f = p(
|
|
481
482
|
() => cs({
|
|
482
483
|
ref: t.ref,
|
|
483
|
-
onBlurHandler:
|
|
484
|
-
fieldState:
|
|
484
|
+
onBlurHandler: c,
|
|
485
|
+
fieldState: b.value
|
|
485
486
|
})
|
|
486
487
|
);
|
|
487
|
-
if (t.ref &&
|
|
488
|
-
let
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
interactiveElements:
|
|
492
|
-
onBlurHandler:
|
|
493
|
-
mode:
|
|
488
|
+
if (t.ref && we(["eager", "blur", "progressive"], u)) {
|
|
489
|
+
let E = [];
|
|
490
|
+
const O = (I) => {
|
|
491
|
+
E = ss(I), ns({
|
|
492
|
+
interactiveElements: E,
|
|
493
|
+
onBlurHandler: c,
|
|
494
|
+
mode: u
|
|
494
495
|
});
|
|
495
496
|
};
|
|
496
|
-
|
|
497
|
-
const I =
|
|
498
|
-
ct(() => I.refs[t.ref], (
|
|
499
|
-
const
|
|
500
|
-
|
|
497
|
+
le(() => {
|
|
498
|
+
const I = Re(`useFormField of ${s}`);
|
|
499
|
+
ct(() => I.refs[t.ref], (h) => {
|
|
500
|
+
const m = h instanceof HTMLElement ? h : h == null ? void 0 : h.$el;
|
|
501
|
+
m && O(m);
|
|
501
502
|
}, {
|
|
502
|
-
errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s
|
|
503
|
+
errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
|
|
503
504
|
});
|
|
504
505
|
}), it(() => {
|
|
505
506
|
os({
|
|
506
|
-
interactiveElements:
|
|
507
|
-
onBlurHandler:
|
|
507
|
+
interactiveElements: E,
|
|
508
|
+
onBlurHandler: c
|
|
508
509
|
});
|
|
509
510
|
});
|
|
510
511
|
}
|
|
511
512
|
return {
|
|
512
|
-
hasError:
|
|
513
|
-
errors:
|
|
514
|
-
errorMessage:
|
|
515
|
-
isValid:
|
|
516
|
-
isDirty:
|
|
517
|
-
isBlurred:
|
|
518
|
-
isValidated:
|
|
519
|
-
isValidating:
|
|
520
|
-
mode:
|
|
521
|
-
value:
|
|
513
|
+
hasError: p(() => b.value.error),
|
|
514
|
+
errors: p(() => b.value.errors),
|
|
515
|
+
errorMessage: p(() => a.value[s]),
|
|
516
|
+
isValid: p(() => b.value.valid),
|
|
517
|
+
isDirty: p(() => b.value.dirty),
|
|
518
|
+
isBlurred: p(() => b.value.blurred),
|
|
519
|
+
isValidated: p(() => b.value.validated),
|
|
520
|
+
isValidating: p(() => b.value.validating),
|
|
521
|
+
mode: p(() => b.value.mode),
|
|
522
|
+
value: p({
|
|
522
523
|
get: () => o.value[s],
|
|
523
|
-
set: (
|
|
524
|
+
set: (E) => o.value[s] = E
|
|
524
525
|
}),
|
|
525
|
-
validationEvents:
|
|
526
|
+
validationEvents: f
|
|
526
527
|
};
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
-
const o =
|
|
530
|
-
mode:
|
|
531
|
-
scrollToError:
|
|
529
|
+
function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
530
|
+
const o = Re("useFormValidator"), i = {
|
|
531
|
+
mode: te.mode,
|
|
532
|
+
scrollToError: te.scrollToErrorSelector,
|
|
532
533
|
debouncedFields: null,
|
|
533
534
|
throttledFields: null,
|
|
534
535
|
identifier: "main-form-validator",
|
|
535
536
|
...n
|
|
536
|
-
}, r =
|
|
537
|
+
}, r = w(e), a = w({ ...r.value, ...t == null ? void 0 : t.value }), l = w(s), u = w(
|
|
537
538
|
Jt({
|
|
538
|
-
schema:
|
|
539
|
+
schema: l.value,
|
|
539
540
|
payload: a.value,
|
|
540
541
|
options: i
|
|
541
542
|
})
|
|
542
|
-
),
|
|
543
|
+
), b = w(!1), c = w(!1), f = p(() => Object.values(u.value).every(({ valid: T }) => T)), E = p(() => Object.values(u.value).some(({ dirty: T }) => T)), O = p(() => ts(u.value)), I = p(() => Gt(O.value, u.value));
|
|
543
544
|
t && X(
|
|
544
545
|
a,
|
|
545
|
-
(
|
|
546
|
-
t.value = { ...r.value, ...
|
|
546
|
+
(T) => {
|
|
547
|
+
t.value = { ...r.value, ...T };
|
|
547
548
|
},
|
|
548
549
|
{ deep: !0 }
|
|
549
550
|
), X(
|
|
550
551
|
r,
|
|
551
|
-
(
|
|
552
|
-
a.value = { ...
|
|
552
|
+
(T) => {
|
|
553
|
+
a.value = { ...T, ...a.value };
|
|
553
554
|
},
|
|
554
555
|
{ deep: !0 }
|
|
555
556
|
), X(
|
|
556
|
-
|
|
557
|
-
(
|
|
557
|
+
l,
|
|
558
|
+
(T) => {
|
|
558
559
|
es({
|
|
559
|
-
schema:
|
|
560
|
-
fieldsStates:
|
|
560
|
+
schema: T,
|
|
561
|
+
fieldsStates: u.value,
|
|
561
562
|
payload: a.value,
|
|
562
563
|
options: i
|
|
563
|
-
}),
|
|
564
|
+
}), h();
|
|
564
565
|
},
|
|
565
566
|
{ deep: !0 }
|
|
566
|
-
),
|
|
567
|
-
function
|
|
567
|
+
), h();
|
|
568
|
+
function h(T = i.mode === "aggressive") {
|
|
568
569
|
return rs({
|
|
569
|
-
fieldsStates:
|
|
570
|
+
fieldsStates: u.value,
|
|
570
571
|
payload: a.value,
|
|
571
|
-
schema:
|
|
572
|
-
showErrors:
|
|
572
|
+
schema: l.value,
|
|
573
|
+
showErrors: T
|
|
573
574
|
});
|
|
574
575
|
}
|
|
575
|
-
const
|
|
576
|
-
async function
|
|
577
|
-
await
|
|
578
|
-
const
|
|
579
|
-
() => a.value[
|
|
576
|
+
const m = [];
|
|
577
|
+
async function L(T) {
|
|
578
|
+
await ae();
|
|
579
|
+
const P = X(
|
|
580
|
+
() => a.value[T],
|
|
580
581
|
() => {
|
|
581
|
-
const j =
|
|
582
|
+
const j = u.value[T];
|
|
582
583
|
ls({
|
|
583
|
-
name:
|
|
584
|
+
name: T,
|
|
584
585
|
fieldState: j,
|
|
585
586
|
payload: a.value,
|
|
586
|
-
schema:
|
|
587
|
-
isSubmitted:
|
|
588
|
-
forceValidation:
|
|
587
|
+
schema: l.value,
|
|
588
|
+
isSubmitted: c.value,
|
|
589
|
+
forceValidation: we(["aggressive", "lazy", "progressive"], j.mode)
|
|
589
590
|
});
|
|
590
591
|
},
|
|
591
|
-
{ deep: typeof
|
|
592
|
+
{ deep: typeof l.value[T] == "object" }
|
|
592
593
|
);
|
|
593
|
-
|
|
594
|
+
m.push(P);
|
|
594
595
|
}
|
|
595
|
-
function
|
|
596
|
-
for (const
|
|
597
|
-
|
|
598
|
-
for (const
|
|
599
|
-
|
|
596
|
+
function g() {
|
|
597
|
+
for (const T of m)
|
|
598
|
+
T();
|
|
599
|
+
for (const T of Object.keys(l.value))
|
|
600
|
+
L(T);
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function A(T, P) {
|
|
602
603
|
return async (j) => {
|
|
603
|
-
if (j == null || j.preventDefault(),
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
604
|
+
if (j == null || j.preventDefault(), !b.value) {
|
|
605
|
+
c.value = !0, b.value = !0;
|
|
606
|
+
try {
|
|
607
|
+
await h(!0);
|
|
608
|
+
const se = typeof P == "string" ? P : i.scrollToError;
|
|
609
|
+
let G;
|
|
610
|
+
return f.value ? G = await T(a.value) : typeof se != "boolean" && Xe(se), b.value = !1, G;
|
|
611
|
+
} finally {
|
|
612
|
+
b.value = !1;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
609
615
|
};
|
|
610
616
|
}
|
|
611
|
-
const
|
|
612
|
-
fieldsStates:
|
|
617
|
+
const D = {
|
|
618
|
+
fieldsStates: u,
|
|
613
619
|
payload: a,
|
|
614
620
|
options: i,
|
|
615
|
-
internalSchema:
|
|
621
|
+
internalSchema: l,
|
|
616
622
|
errorMessages: I,
|
|
617
|
-
isSubmitted:
|
|
623
|
+
isSubmitted: c
|
|
618
624
|
};
|
|
619
|
-
return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier,
|
|
625
|
+
return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier, D), Vt(i.identifier, D), g(), {
|
|
620
626
|
identifier: i.identifier,
|
|
621
|
-
isDirty:
|
|
622
|
-
isSubmitting:
|
|
623
|
-
isSubmitted:
|
|
624
|
-
isValid:
|
|
625
|
-
errors:
|
|
627
|
+
isDirty: E,
|
|
628
|
+
isSubmitting: b,
|
|
629
|
+
isSubmitted: c,
|
|
630
|
+
isValid: f,
|
|
631
|
+
errors: O,
|
|
626
632
|
model: a,
|
|
627
|
-
fieldsStates:
|
|
628
|
-
validateForm:
|
|
633
|
+
fieldsStates: u,
|
|
634
|
+
validateForm: h,
|
|
629
635
|
scrollToError: Xe,
|
|
630
|
-
handleSubmit:
|
|
636
|
+
handleSubmit: A,
|
|
631
637
|
errorMessages: I
|
|
632
638
|
};
|
|
633
639
|
}
|
|
@@ -738,18 +744,17 @@ class ms {
|
|
|
738
744
|
e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
739
745
|
}
|
|
740
746
|
}
|
|
741
|
-
function
|
|
747
|
+
function _n({
|
|
742
748
|
callback: s,
|
|
743
749
|
options: e
|
|
744
750
|
}) {
|
|
745
751
|
return new ms(s, e);
|
|
746
752
|
}
|
|
747
|
-
function
|
|
753
|
+
function Kn({
|
|
748
754
|
componentName: s,
|
|
749
755
|
providedId: e
|
|
750
756
|
}) {
|
|
751
|
-
|
|
752
|
-
return f(() => e ?? `${s}-${t}`);
|
|
757
|
+
return p(() => e ?? `${s}-${Ht().replace(/:/g, "")}`);
|
|
753
758
|
}
|
|
754
759
|
const fs = [
|
|
755
760
|
"af-ZA",
|
|
@@ -888,90 +893,257 @@ const fs = [
|
|
|
888
893
|
"Cy-uz-UZ",
|
|
889
894
|
"Lt-uz-UZ",
|
|
890
895
|
"vi-VN"
|
|
891
|
-
]
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
896
|
+
], hs = [
|
|
897
|
+
"aa",
|
|
898
|
+
"ab",
|
|
899
|
+
"ae",
|
|
900
|
+
"af",
|
|
901
|
+
"ak",
|
|
902
|
+
"am",
|
|
903
|
+
"an",
|
|
904
|
+
"ar",
|
|
905
|
+
"as",
|
|
906
|
+
"av",
|
|
907
|
+
"ay",
|
|
908
|
+
"az",
|
|
909
|
+
"ba",
|
|
910
|
+
"be",
|
|
911
|
+
"bg",
|
|
912
|
+
"bh",
|
|
913
|
+
"bi",
|
|
914
|
+
"bm",
|
|
915
|
+
"bn",
|
|
916
|
+
"bo",
|
|
917
|
+
"br",
|
|
918
|
+
"bs",
|
|
919
|
+
"ca",
|
|
920
|
+
"ce",
|
|
921
|
+
"ch",
|
|
922
|
+
"co",
|
|
923
|
+
"cr",
|
|
924
|
+
"cs",
|
|
925
|
+
"cu",
|
|
926
|
+
"cv",
|
|
927
|
+
"cy",
|
|
928
|
+
"da",
|
|
929
|
+
"de",
|
|
930
|
+
"dv",
|
|
931
|
+
"dz",
|
|
932
|
+
"ee",
|
|
933
|
+
"el",
|
|
934
|
+
"en",
|
|
935
|
+
"eo",
|
|
936
|
+
"es",
|
|
937
|
+
"et",
|
|
938
|
+
"eu",
|
|
939
|
+
"fa",
|
|
940
|
+
"ff",
|
|
941
|
+
"fi",
|
|
942
|
+
"fj",
|
|
943
|
+
"fo",
|
|
944
|
+
"fr",
|
|
945
|
+
"fy",
|
|
946
|
+
"ga",
|
|
947
|
+
"gd",
|
|
948
|
+
"gl",
|
|
949
|
+
"gn",
|
|
950
|
+
"gu",
|
|
951
|
+
"gv",
|
|
952
|
+
"ha",
|
|
953
|
+
"he",
|
|
954
|
+
"hi",
|
|
955
|
+
"ho",
|
|
956
|
+
"hr",
|
|
957
|
+
"ht",
|
|
958
|
+
"hu",
|
|
959
|
+
"hy",
|
|
960
|
+
"hz",
|
|
961
|
+
"ia",
|
|
962
|
+
"id",
|
|
963
|
+
"ie",
|
|
964
|
+
"ig",
|
|
965
|
+
"ii",
|
|
966
|
+
"ik",
|
|
967
|
+
"io",
|
|
968
|
+
"is",
|
|
969
|
+
"it",
|
|
970
|
+
"iu",
|
|
971
|
+
"ja",
|
|
972
|
+
"jv",
|
|
973
|
+
"ka",
|
|
974
|
+
"kg",
|
|
975
|
+
"ki",
|
|
976
|
+
"kj",
|
|
977
|
+
"kk",
|
|
978
|
+
"kl",
|
|
979
|
+
"km",
|
|
980
|
+
"kn",
|
|
981
|
+
"ko",
|
|
982
|
+
"kr",
|
|
983
|
+
"ks",
|
|
984
|
+
"ku",
|
|
985
|
+
"kv",
|
|
986
|
+
"kw",
|
|
987
|
+
"ky",
|
|
988
|
+
"la",
|
|
989
|
+
"lb",
|
|
990
|
+
"lg",
|
|
991
|
+
"li",
|
|
992
|
+
"ln",
|
|
993
|
+
"lo",
|
|
994
|
+
"lt",
|
|
995
|
+
"lu",
|
|
996
|
+
"lv",
|
|
997
|
+
"mg",
|
|
998
|
+
"mh",
|
|
999
|
+
"mi",
|
|
1000
|
+
"mk",
|
|
1001
|
+
"ml",
|
|
1002
|
+
"mn",
|
|
1003
|
+
"mr",
|
|
1004
|
+
"ms",
|
|
1005
|
+
"mt",
|
|
1006
|
+
"my",
|
|
1007
|
+
"na",
|
|
1008
|
+
"nb",
|
|
1009
|
+
"nd",
|
|
1010
|
+
"ne",
|
|
1011
|
+
"ng",
|
|
1012
|
+
"nl",
|
|
1013
|
+
"nn",
|
|
1014
|
+
"no",
|
|
1015
|
+
"nr",
|
|
1016
|
+
"nv",
|
|
1017
|
+
"ny",
|
|
1018
|
+
"oc",
|
|
1019
|
+
"oj",
|
|
1020
|
+
"om",
|
|
1021
|
+
"or",
|
|
1022
|
+
"os",
|
|
1023
|
+
"pa",
|
|
1024
|
+
"pi",
|
|
1025
|
+
"pl",
|
|
1026
|
+
"ps",
|
|
1027
|
+
"pt",
|
|
1028
|
+
"qu",
|
|
1029
|
+
"rm",
|
|
1030
|
+
"rn",
|
|
1031
|
+
"ro",
|
|
1032
|
+
"ru",
|
|
1033
|
+
"rw",
|
|
1034
|
+
"sa",
|
|
1035
|
+
"sc",
|
|
1036
|
+
"sd",
|
|
1037
|
+
"se",
|
|
1038
|
+
"sg",
|
|
1039
|
+
"si",
|
|
1040
|
+
"sk",
|
|
1041
|
+
"sl",
|
|
1042
|
+
"sm",
|
|
1043
|
+
"sn",
|
|
1044
|
+
"so",
|
|
1045
|
+
"sq",
|
|
1046
|
+
"sr",
|
|
1047
|
+
"ss",
|
|
1048
|
+
"st",
|
|
1049
|
+
"su",
|
|
1050
|
+
"sv",
|
|
1051
|
+
"sw",
|
|
1052
|
+
"ta",
|
|
1053
|
+
"te",
|
|
1054
|
+
"tg",
|
|
1055
|
+
"th",
|
|
1056
|
+
"ti",
|
|
1057
|
+
"tk",
|
|
1058
|
+
"tl",
|
|
1059
|
+
"tn",
|
|
1060
|
+
"to",
|
|
1061
|
+
"tr",
|
|
1062
|
+
"ts",
|
|
1063
|
+
"tt",
|
|
1064
|
+
"tw",
|
|
1065
|
+
"ty",
|
|
1066
|
+
"ug",
|
|
1067
|
+
"uk",
|
|
1068
|
+
"ur",
|
|
1069
|
+
"uz",
|
|
1070
|
+
"ve",
|
|
1071
|
+
"vi",
|
|
1072
|
+
"vo",
|
|
1073
|
+
"wa",
|
|
1074
|
+
"wo",
|
|
1075
|
+
"xh",
|
|
1076
|
+
"yi",
|
|
1077
|
+
"yo",
|
|
1078
|
+
"za",
|
|
1079
|
+
"zh",
|
|
1080
|
+
"zu"
|
|
1081
|
+
], vs = [...hs, ...fs];
|
|
1082
|
+
function Yn(s) {
|
|
1083
|
+
function e(n, o) {
|
|
1084
|
+
return p(() => {
|
|
1085
|
+
const i = ve(o), r = ve(n);
|
|
928
1086
|
try {
|
|
929
|
-
|
|
930
|
-
return !o || n.toLocaleLowerCase() === o.toLocaleLowerCase() ? void 0 : {
|
|
931
|
-
language: o,
|
|
932
|
-
code: n
|
|
933
|
-
};
|
|
1087
|
+
return !i || !r ? r : new Intl.DisplayNames([i], { type: "language" }).of(r) || r;
|
|
934
1088
|
} catch {
|
|
935
|
-
return;
|
|
1089
|
+
return r;
|
|
936
1090
|
}
|
|
937
|
-
})
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
function t(n) {
|
|
1094
|
+
return p(() => {
|
|
1095
|
+
const o = ve(n);
|
|
1096
|
+
if (!o)
|
|
1097
|
+
return [];
|
|
1098
|
+
const i = new Intl.DisplayNames([o], {
|
|
1099
|
+
type: "language"
|
|
1100
|
+
});
|
|
1101
|
+
return vs.map((r) => {
|
|
1102
|
+
try {
|
|
1103
|
+
const a = i.of(r);
|
|
1104
|
+
return !a || r.toLocaleLowerCase() === a.toLocaleLowerCase() ? void 0 : {
|
|
1105
|
+
language: a,
|
|
1106
|
+
code: r
|
|
1107
|
+
};
|
|
1108
|
+
} catch {
|
|
1109
|
+
return;
|
|
1110
|
+
}
|
|
1111
|
+
}).filter(Boolean);
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
941
1114
|
return {
|
|
942
|
-
getLanguageDisplayName: ({
|
|
943
|
-
|
|
944
|
-
getLanguageDisplayNamesForIsoCodes: (e) => ps(e || s)
|
|
1115
|
+
getLanguageDisplayName: ({ code: n, locale: o }) => e(n, o || s),
|
|
1116
|
+
getAllLanguageDisplayNames: (n) => t(n || s)
|
|
945
1117
|
};
|
|
946
1118
|
}
|
|
947
1119
|
function yt(s) {
|
|
948
1120
|
const e = s.join(", ").match(/\b\w+\b/g);
|
|
949
1121
|
return e ? e.length : 0;
|
|
950
1122
|
}
|
|
951
|
-
function
|
|
1123
|
+
function ps(s, e = 150) {
|
|
952
1124
|
const t = yt([s]);
|
|
953
1125
|
return Math.ceil(t / e);
|
|
954
1126
|
}
|
|
955
|
-
function
|
|
956
|
-
const e =
|
|
1127
|
+
function Zn(s) {
|
|
1128
|
+
const e = p(
|
|
957
1129
|
() => {
|
|
958
1130
|
var r;
|
|
959
1131
|
return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
|
|
960
1132
|
}
|
|
961
|
-
), t =
|
|
1133
|
+
), t = p(() => {
|
|
962
1134
|
var r;
|
|
963
1135
|
return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
|
|
964
|
-
}), n =
|
|
965
|
-
var r, a,
|
|
1136
|
+
}), n = p(() => {
|
|
1137
|
+
var r, a, l;
|
|
966
1138
|
if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
|
|
967
1139
|
return (a = s.contentRef.value) == null ? void 0 : a.textContent;
|
|
968
1140
|
if (t.value && typeof document < "u") {
|
|
969
|
-
const
|
|
970
|
-
if (
|
|
971
|
-
return
|
|
1141
|
+
const u = document.querySelector(t.value);
|
|
1142
|
+
if (u)
|
|
1143
|
+
return u.textContent;
|
|
972
1144
|
}
|
|
973
|
-
return typeof s.content == "string" ? s.content : (
|
|
974
|
-
}), o =
|
|
1145
|
+
return typeof s.content == "string" ? s.content : (l = s.content) == null ? void 0 : l.value;
|
|
1146
|
+
}), o = p(() => ps(n.value, e.value)), i = p(() => yt([n.value]));
|
|
975
1147
|
return {
|
|
976
1148
|
content: n,
|
|
977
1149
|
wordCount: i,
|
|
@@ -979,7 +1151,7 @@ function Yn(s) {
|
|
|
979
1151
|
duration: o
|
|
980
1152
|
};
|
|
981
1153
|
}
|
|
982
|
-
const
|
|
1154
|
+
const gs = {
|
|
983
1155
|
removeAccents: !0,
|
|
984
1156
|
caseSensitive: !1,
|
|
985
1157
|
replaceSpaces: !0,
|
|
@@ -990,7 +1162,7 @@ const ys = {
|
|
|
990
1162
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
991
1163
|
};
|
|
992
1164
|
function Ge(s, e) {
|
|
993
|
-
const t = { ...
|
|
1165
|
+
const t = { ...gs, ...e }, n = {
|
|
994
1166
|
À: "A",
|
|
995
1167
|
Á: "A",
|
|
996
1168
|
Â: "A",
|
|
@@ -1045,7 +1217,7 @@ function Ge(s, e) {
|
|
|
1045
1217
|
o = o.normalize(i);
|
|
1046
1218
|
return o;
|
|
1047
1219
|
}
|
|
1048
|
-
function
|
|
1220
|
+
function ys(s, e) {
|
|
1049
1221
|
const t = s.length, n = e.length, o = [];
|
|
1050
1222
|
for (let i = 0; i <= t; i++)
|
|
1051
1223
|
o[i] = [i];
|
|
@@ -1063,33 +1235,33 @@ function bs(s, e) {
|
|
|
1063
1235
|
return o[t][n];
|
|
1064
1236
|
}
|
|
1065
1237
|
function bt(s, e) {
|
|
1066
|
-
const t =
|
|
1238
|
+
const t = ys(s, e), n = Math.max(s.length, e.length);
|
|
1067
1239
|
return 1 - t / n;
|
|
1068
1240
|
}
|
|
1069
|
-
function
|
|
1241
|
+
function bs(s, e, t = 0.75) {
|
|
1070
1242
|
return bt(s, e) >= t;
|
|
1071
1243
|
}
|
|
1072
|
-
function
|
|
1073
|
-
const n =
|
|
1244
|
+
function Xn(s, e, t = 0.75) {
|
|
1245
|
+
const n = p(
|
|
1074
1246
|
() => Ge(typeof s == "string" ? s : s.value)
|
|
1075
|
-
), o =
|
|
1247
|
+
), o = p(
|
|
1076
1248
|
() => Ge(typeof e == "string" ? e : e.value)
|
|
1077
|
-
), i =
|
|
1249
|
+
), i = p(() => typeof t == "number" ? t : t.value), r = p(() => bt(n.value, o.value));
|
|
1078
1250
|
return {
|
|
1079
|
-
isMatching:
|
|
1080
|
-
() =>
|
|
1251
|
+
isMatching: p(
|
|
1252
|
+
() => bs(n.value, o.value, i.value)
|
|
1081
1253
|
),
|
|
1082
1254
|
score: r
|
|
1083
1255
|
};
|
|
1084
1256
|
}
|
|
1085
|
-
const
|
|
1257
|
+
const ws = {
|
|
1086
1258
|
preventDefaultOnTouchMove: !1,
|
|
1087
1259
|
preventDefaultOnMouseWheel: !1,
|
|
1088
1260
|
threshold: 50,
|
|
1089
1261
|
immediate: !1,
|
|
1090
1262
|
triggerOnEnd: !1
|
|
1091
1263
|
};
|
|
1092
|
-
class
|
|
1264
|
+
class Es {
|
|
1093
1265
|
constructor(e) {
|
|
1094
1266
|
d(this, "element");
|
|
1095
1267
|
d(this, "xStart");
|
|
@@ -1105,7 +1277,7 @@ class Ts {
|
|
|
1105
1277
|
d(this, "start");
|
|
1106
1278
|
d(this, "stop");
|
|
1107
1279
|
d(this, "options");
|
|
1108
|
-
this.inputOption = e, this.options = { ...
|
|
1280
|
+
this.inputOption = e, this.options = { ...ws, ...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();
|
|
1109
1281
|
}
|
|
1110
1282
|
startListening() {
|
|
1111
1283
|
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 });
|
|
@@ -1154,19 +1326,19 @@ class Ts {
|
|
|
1154
1326
|
this.runCallbacks(e), this.emitValuesChanged();
|
|
1155
1327
|
}
|
|
1156
1328
|
runCallbacks(e) {
|
|
1157
|
-
var t, n, o, i, r, a,
|
|
1158
|
-
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) : (
|
|
1329
|
+
var t, n, o, i, r, a, l, u;
|
|
1330
|
+
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());
|
|
1159
1331
|
}
|
|
1160
1332
|
resetValues() {
|
|
1161
1333
|
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();
|
|
1162
1334
|
}
|
|
1163
1335
|
}
|
|
1164
|
-
function
|
|
1165
|
-
const e =
|
|
1336
|
+
function Gn(s) {
|
|
1337
|
+
const e = w(), t = w(), n = w(), o = w(), i = w(), r = w(), a = p(() => ve(s.element)), l = new Es({
|
|
1166
1338
|
...s,
|
|
1167
1339
|
element: a.value,
|
|
1168
|
-
onValuesChanged(
|
|
1169
|
-
e.value =
|
|
1340
|
+
onValuesChanged(u) {
|
|
1341
|
+
e.value = u.xDiff, t.value = u.yDiff, n.value = u.xStart, o.value = u.xEnd, i.value = u.yStart, r.value = u.yEnd;
|
|
1170
1342
|
}
|
|
1171
1343
|
});
|
|
1172
1344
|
return {
|
|
@@ -1177,12 +1349,12 @@ function Xn(s) {
|
|
|
1177
1349
|
yStart: i,
|
|
1178
1350
|
yEnd: r,
|
|
1179
1351
|
start: () => {
|
|
1180
|
-
a.value && (
|
|
1352
|
+
a.value && (l.options.element = a.value), l.start();
|
|
1181
1353
|
},
|
|
1182
|
-
stop:
|
|
1354
|
+
stop: l.stop
|
|
1183
1355
|
};
|
|
1184
1356
|
}
|
|
1185
|
-
const
|
|
1357
|
+
const zs = {
|
|
1186
1358
|
darkClass: "dark",
|
|
1187
1359
|
lightClass: "light",
|
|
1188
1360
|
storageThemeKey: "theme",
|
|
@@ -1190,11 +1362,11 @@ const Ls = {
|
|
|
1190
1362
|
storageThemeValueLight: "light",
|
|
1191
1363
|
storageThemeValueSystem: "system",
|
|
1192
1364
|
watchChanges: !0
|
|
1193
|
-
},
|
|
1365
|
+
}, Ee = w("system"), K = w("system");
|
|
1194
1366
|
function Qe() {
|
|
1195
1367
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1196
1368
|
}
|
|
1197
|
-
function
|
|
1369
|
+
function ze({
|
|
1198
1370
|
darkClass: s,
|
|
1199
1371
|
lightClass: e,
|
|
1200
1372
|
storageThemeKey: t,
|
|
@@ -1202,7 +1374,7 @@ function Ee({
|
|
|
1202
1374
|
setLocalStorageValue: o = !0,
|
|
1203
1375
|
setSelectedTheme: i = !0
|
|
1204
1376
|
}) {
|
|
1205
|
-
F() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s),
|
|
1377
|
+
F() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), Ee.value = n, i && (K.value = n), o && (localStorage[t] = n));
|
|
1206
1378
|
}
|
|
1207
1379
|
function Te({
|
|
1208
1380
|
darkClass: s,
|
|
@@ -1212,14 +1384,14 @@ function Te({
|
|
|
1212
1384
|
setLocalStorageValue: o = !0,
|
|
1213
1385
|
setSelectedTheme: i = !0
|
|
1214
1386
|
}) {
|
|
1215
|
-
F() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e),
|
|
1387
|
+
F() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), Ee.value = n, i && (K.value = n), o && (localStorage[t] = n));
|
|
1216
1388
|
}
|
|
1217
1389
|
function wt({
|
|
1218
1390
|
setLocalStorageValue: s = !0,
|
|
1219
1391
|
...e
|
|
1220
1392
|
}) {
|
|
1221
1393
|
if (F())
|
|
1222
|
-
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass),
|
|
1394
|
+
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), Ee.value = e.storageThemeValueSystem, K.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), je(e);
|
|
1223
1395
|
}
|
|
1224
1396
|
function Et(s) {
|
|
1225
1397
|
if (!s.defaultTheme)
|
|
@@ -1228,7 +1400,7 @@ function Et(s) {
|
|
|
1228
1400
|
return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');
|
|
1229
1401
|
switch (s.defaultTheme) {
|
|
1230
1402
|
case "dark":
|
|
1231
|
-
return
|
|
1403
|
+
return ze({
|
|
1232
1404
|
...s,
|
|
1233
1405
|
setLocalStorageValue: !1,
|
|
1234
1406
|
setSelectedTheme: !0
|
|
@@ -1241,8 +1413,8 @@ function Et(s) {
|
|
|
1241
1413
|
});
|
|
1242
1414
|
}
|
|
1243
1415
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return F() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Et(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && Qe() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && Qe() ?
|
|
1416
|
+
function je(s) {
|
|
1417
|
+
return F() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Et(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && Qe() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && Qe() ? ze({
|
|
1246
1418
|
...s,
|
|
1247
1419
|
setLocalStorageValue: !1,
|
|
1248
1420
|
setSelectedTheme: !1
|
|
@@ -1252,31 +1424,31 @@ function Ne(s) {
|
|
|
1252
1424
|
setSelectedTheme: !1
|
|
1253
1425
|
}) : void 0;
|
|
1254
1426
|
}
|
|
1255
|
-
function
|
|
1427
|
+
function Ne({
|
|
1256
1428
|
theme: s,
|
|
1257
1429
|
...e
|
|
1258
1430
|
}) {
|
|
1259
|
-
return s === "system" ? wt(e) : s === "dark" ?
|
|
1431
|
+
return s === "system" ? wt(e) : s === "dark" ? ze(e) : Te(e);
|
|
1260
1432
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return
|
|
1433
|
+
function Ts(s) {
|
|
1434
|
+
return Ee.value === s.storageThemeValueDark ? Te(s) : ze(s);
|
|
1263
1435
|
}
|
|
1264
|
-
function
|
|
1436
|
+
function Qn(s) {
|
|
1265
1437
|
const e = {
|
|
1266
|
-
...
|
|
1438
|
+
...zs,
|
|
1267
1439
|
...s
|
|
1268
1440
|
};
|
|
1269
1441
|
function t() {
|
|
1270
|
-
|
|
1442
|
+
je(e);
|
|
1271
1443
|
}
|
|
1272
|
-
return
|
|
1444
|
+
return le(() => {
|
|
1273
1445
|
localStorage[e.storageThemeKey] && (K.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
|
|
1274
1446
|
}), rt(() => {
|
|
1275
1447
|
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
|
|
1276
1448
|
}), X(K, (n) => {
|
|
1277
1449
|
switch (localStorage[e.storageThemeKey] = n, n) {
|
|
1278
1450
|
case e.storageThemeValueDark: {
|
|
1279
|
-
|
|
1451
|
+
ze(e);
|
|
1280
1452
|
break;
|
|
1281
1453
|
}
|
|
1282
1454
|
case e.storageThemeValueLight: {
|
|
@@ -1289,51 +1461,51 @@ function Gn(s) {
|
|
|
1289
1461
|
}
|
|
1290
1462
|
}
|
|
1291
1463
|
}), {
|
|
1292
|
-
autoSetTheme: () =>
|
|
1293
|
-
toggleTheme: () =>
|
|
1294
|
-
setSystemTheme: () =>
|
|
1295
|
-
setDarkTheme: () =>
|
|
1296
|
-
setLightTheme: () =>
|
|
1464
|
+
autoSetTheme: () => je(e),
|
|
1465
|
+
toggleTheme: () => Ts(e),
|
|
1466
|
+
setSystemTheme: () => Ne({ ...e, theme: "system" }),
|
|
1467
|
+
setDarkTheme: () => Ne({ ...e, theme: "dark" }),
|
|
1468
|
+
setLightTheme: () => Ne({ ...e, theme: "light" }),
|
|
1297
1469
|
setDefaultTheme: () => Et(e),
|
|
1298
|
-
hasDarkTheme:
|
|
1299
|
-
hasLightTheme:
|
|
1300
|
-
hasSystemTheme:
|
|
1301
|
-
theme:
|
|
1470
|
+
hasDarkTheme: p(() => K.value === e.storageThemeValueDark),
|
|
1471
|
+
hasLightTheme: p(() => K.value === e.storageThemeValueLight),
|
|
1472
|
+
hasSystemTheme: p(() => K.value === e.storageThemeValueSystem),
|
|
1473
|
+
theme: Ee,
|
|
1302
1474
|
selectedTheme: K
|
|
1303
1475
|
};
|
|
1304
1476
|
}
|
|
1305
|
-
function
|
|
1306
|
-
const o =
|
|
1477
|
+
function Ls({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
|
|
1478
|
+
const o = w(s), i = w(s);
|
|
1307
1479
|
let r;
|
|
1308
|
-
function a(
|
|
1309
|
-
typeof
|
|
1480
|
+
function a(f) {
|
|
1481
|
+
typeof f == "number" && (i.value = f), typeof f == "number" && (o.value = f), l();
|
|
1310
1482
|
}
|
|
1311
|
-
function
|
|
1483
|
+
function l() {
|
|
1312
1484
|
r || (r = setInterval(() => {
|
|
1313
|
-
i.value -= t, i.value <= 0 && (
|
|
1485
|
+
i.value -= t, i.value <= 0 && (c(), setTimeout(() => e == null ? void 0 : e(), n));
|
|
1314
1486
|
}, t));
|
|
1315
1487
|
}
|
|
1316
|
-
function
|
|
1488
|
+
function u() {
|
|
1317
1489
|
r && (clearInterval(r), r = void 0);
|
|
1318
1490
|
}
|
|
1319
|
-
function
|
|
1320
|
-
!r && i.value > 0 &&
|
|
1491
|
+
function b() {
|
|
1492
|
+
!r && i.value > 0 && l();
|
|
1321
1493
|
}
|
|
1322
|
-
function
|
|
1323
|
-
setTimeout(() => i.value = o.value, n * 2),
|
|
1494
|
+
function c() {
|
|
1495
|
+
setTimeout(() => i.value = o.value, n * 2), u();
|
|
1324
1496
|
}
|
|
1325
1497
|
return {
|
|
1326
1498
|
remainingTime: i,
|
|
1327
1499
|
start: a,
|
|
1328
|
-
pause:
|
|
1329
|
-
resume:
|
|
1330
|
-
stop:
|
|
1500
|
+
pause: u,
|
|
1501
|
+
resume: b,
|
|
1502
|
+
stop: c
|
|
1331
1503
|
};
|
|
1332
1504
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1505
|
+
function Jn() {
|
|
1506
|
+
return De("toast");
|
|
1335
1507
|
}
|
|
1336
|
-
class
|
|
1508
|
+
class ks {
|
|
1337
1509
|
constructor(e, t) {
|
|
1338
1510
|
d(this, "eventHandlerFunction");
|
|
1339
1511
|
d(this, "event", "visibilitychange");
|
|
@@ -1379,105 +1551,105 @@ class Is {
|
|
|
1379
1551
|
this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
1380
1552
|
}
|
|
1381
1553
|
}
|
|
1382
|
-
function
|
|
1554
|
+
function eo({
|
|
1383
1555
|
callback: s,
|
|
1384
1556
|
options: e
|
|
1385
1557
|
}) {
|
|
1386
|
-
return new
|
|
1558
|
+
return new ks(s, e);
|
|
1387
1559
|
}
|
|
1388
|
-
function
|
|
1389
|
-
return
|
|
1560
|
+
function to() {
|
|
1561
|
+
return De("wait");
|
|
1390
1562
|
}
|
|
1391
|
-
const
|
|
1392
|
-
function
|
|
1563
|
+
const Oe = "__maz-click-outside__";
|
|
1564
|
+
function zt() {
|
|
1393
1565
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
1394
1566
|
}
|
|
1395
|
-
async function
|
|
1567
|
+
async function Tt(s, e) {
|
|
1396
1568
|
try {
|
|
1397
|
-
|
|
1569
|
+
Lt(s);
|
|
1398
1570
|
const t = e.instance, n = e.value, o = typeof n == "function";
|
|
1399
1571
|
if (!o)
|
|
1400
1572
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
1401
|
-
await
|
|
1573
|
+
await ae(), s[Oe] = (r) => {
|
|
1402
1574
|
if ((!s || r.target && !s.contains(r.target)) && n && o)
|
|
1403
1575
|
return n.call(t, r);
|
|
1404
1576
|
};
|
|
1405
|
-
const i =
|
|
1406
|
-
document.addEventListener(i, s[
|
|
1577
|
+
const i = zt();
|
|
1578
|
+
document.addEventListener(i, s[Oe], { passive: !0 });
|
|
1407
1579
|
} catch (t) {
|
|
1408
1580
|
console.error("[maz-ui](vClickOutside)", t);
|
|
1409
1581
|
}
|
|
1410
1582
|
}
|
|
1411
|
-
function
|
|
1583
|
+
function Lt(s) {
|
|
1412
1584
|
try {
|
|
1413
|
-
const e =
|
|
1414
|
-
document.removeEventListener(e, s[
|
|
1585
|
+
const e = zt();
|
|
1586
|
+
document.removeEventListener(e, s[Oe], !1), delete s[Oe];
|
|
1415
1587
|
} catch (e) {
|
|
1416
1588
|
console.error("[maz-ui](vClickOutside)", e);
|
|
1417
1589
|
}
|
|
1418
1590
|
}
|
|
1419
|
-
function
|
|
1591
|
+
function Cs(s, e) {
|
|
1420
1592
|
try {
|
|
1421
1593
|
if (e.value === e.oldValue)
|
|
1422
1594
|
return;
|
|
1423
|
-
|
|
1595
|
+
Tt(s, e);
|
|
1424
1596
|
} catch (t) {
|
|
1425
1597
|
console.error("[maz-ui](vClickOutside)", t);
|
|
1426
1598
|
}
|
|
1427
1599
|
}
|
|
1428
|
-
const
|
|
1429
|
-
mounted:
|
|
1430
|
-
updated:
|
|
1431
|
-
unmounted:
|
|
1432
|
-
},
|
|
1600
|
+
const Is = {
|
|
1601
|
+
mounted: Tt,
|
|
1602
|
+
updated: Cs,
|
|
1603
|
+
unmounted: Lt
|
|
1604
|
+
}, As = {
|
|
1433
1605
|
install: (s) => {
|
|
1434
|
-
s.directive("click-outside",
|
|
1606
|
+
s.directive("click-outside", Is);
|
|
1435
1607
|
}
|
|
1436
1608
|
};
|
|
1437
|
-
function
|
|
1438
|
-
var r;
|
|
1609
|
+
function kt(s, e, t) {
|
|
1610
|
+
var r, a;
|
|
1439
1611
|
s.stopPropagation();
|
|
1440
1612
|
const n = typeof t.value == "function" ? t.value : t.value.handler, o = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
1441
1613
|
let i = !1;
|
|
1442
1614
|
if (o && o.length > 0) {
|
|
1443
|
-
for (const
|
|
1615
|
+
for (const l of o)
|
|
1444
1616
|
if (!i && s.target instanceof HTMLElement) {
|
|
1445
|
-
const u = (r = document.querySelector(
|
|
1446
|
-
i = s.target.getAttribute("id") === u;
|
|
1617
|
+
const u = (r = document.querySelector(l)) == null ? void 0 : r.getAttribute("id");
|
|
1618
|
+
i = (s.target.getAttribute("id") === u || ((a = document.querySelector(l)) == null ? void 0 : a.contains(s.target))) ?? !1;
|
|
1447
1619
|
}
|
|
1448
1620
|
}
|
|
1449
|
-
!e.contains(s.target) && !i && (n == null || n());
|
|
1621
|
+
!e.contains(s.target) && !i && (n == null || n(s));
|
|
1450
1622
|
}
|
|
1451
|
-
function
|
|
1623
|
+
function Ct() {
|
|
1452
1624
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
1453
1625
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const t =
|
|
1456
|
-
document.removeEventListener(t, (n) =>
|
|
1626
|
+
function Ss(s, e) {
|
|
1627
|
+
const t = Ct();
|
|
1628
|
+
document.removeEventListener(t, (n) => kt(n, s, e));
|
|
1457
1629
|
}
|
|
1458
|
-
function
|
|
1630
|
+
function xs(s, e) {
|
|
1459
1631
|
if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
|
|
1460
1632
|
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
1461
1633
|
return;
|
|
1462
1634
|
}
|
|
1463
|
-
const t =
|
|
1464
|
-
document.addEventListener(t, (n) =>
|
|
1635
|
+
const t = Ct();
|
|
1636
|
+
document.addEventListener(t, (n) => kt(n, s, e));
|
|
1465
1637
|
}
|
|
1466
|
-
const
|
|
1467
|
-
mounted:
|
|
1468
|
-
unmounted:
|
|
1469
|
-
},
|
|
1638
|
+
const Os = {
|
|
1639
|
+
mounted: xs,
|
|
1640
|
+
unmounted: Ss
|
|
1641
|
+
}, Ds = {
|
|
1470
1642
|
install: (s) => {
|
|
1471
|
-
s.directive("closable",
|
|
1643
|
+
s.directive("closable", Os);
|
|
1472
1644
|
}
|
|
1473
|
-
},
|
|
1645
|
+
}, qe = {
|
|
1474
1646
|
position: "top"
|
|
1475
1647
|
};
|
|
1476
|
-
class
|
|
1648
|
+
class It {
|
|
1477
1649
|
constructor(e = {}) {
|
|
1478
1650
|
d(this, "options");
|
|
1479
1651
|
this.options = {
|
|
1480
|
-
...
|
|
1652
|
+
...qe,
|
|
1481
1653
|
...e
|
|
1482
1654
|
};
|
|
1483
1655
|
}
|
|
@@ -1493,10 +1665,15 @@ class kt {
|
|
|
1493
1665
|
getColor({ value: e }) {
|
|
1494
1666
|
return typeof e == "string" ? "default" : e.color ?? "default";
|
|
1495
1667
|
}
|
|
1668
|
+
getOffset({ value: e }) {
|
|
1669
|
+
return typeof e == "string" ? "1rem" : e.offset ?? "1rem";
|
|
1670
|
+
}
|
|
1496
1671
|
create(e, t) {
|
|
1497
|
-
e.setAttribute("data-tooltip", this.getText(t))
|
|
1498
|
-
const n = this.
|
|
1499
|
-
|
|
1672
|
+
e.setAttribute("data-tooltip", this.getText(t));
|
|
1673
|
+
const n = this.getOffset(t);
|
|
1674
|
+
n && e.style.setProperty("--tooltip-offset", n), e.classList.add("m-tooltip");
|
|
1675
|
+
const o = this.getPosition(t);
|
|
1676
|
+
e.classList.add(`m-tooltip--${o}`), e.classList.add(`m-tooltip--${this.getColor(t)}`), this.getOpen(t) && e.classList.add("m-tooltip--open");
|
|
1500
1677
|
}
|
|
1501
1678
|
update(e, t) {
|
|
1502
1679
|
this.remove(e, t), this.create(e, t);
|
|
@@ -1506,10 +1683,10 @@ class kt {
|
|
|
1506
1683
|
}
|
|
1507
1684
|
}
|
|
1508
1685
|
let Ie;
|
|
1509
|
-
const
|
|
1686
|
+
const so = {
|
|
1510
1687
|
beforeMount(s, e) {
|
|
1511
1688
|
const t = typeof e.value == "object" ? e.value : {};
|
|
1512
|
-
return Ie = new
|
|
1689
|
+
return Ie = new It(t), Ie.create(s, e);
|
|
1513
1690
|
},
|
|
1514
1691
|
updated(s, e) {
|
|
1515
1692
|
return Ie.update(s, e);
|
|
@@ -1517,12 +1694,12 @@ const to = {
|
|
|
1517
1694
|
unmounted(s, e) {
|
|
1518
1695
|
return Ie.remove(s, e);
|
|
1519
1696
|
}
|
|
1520
|
-
},
|
|
1521
|
-
install: (s, e =
|
|
1697
|
+
}, Ps = {
|
|
1698
|
+
install: (s, e = qe) => {
|
|
1522
1699
|
const t = {
|
|
1523
|
-
...
|
|
1700
|
+
...qe,
|
|
1524
1701
|
...e
|
|
1525
|
-
}, n = new
|
|
1702
|
+
}, n = new It(t);
|
|
1526
1703
|
s.directive("tooltip", {
|
|
1527
1704
|
beforeMount: n.create.bind(n),
|
|
1528
1705
|
updated: n.update.bind(n),
|
|
@@ -1530,7 +1707,7 @@ const to = {
|
|
|
1530
1707
|
});
|
|
1531
1708
|
}
|
|
1532
1709
|
};
|
|
1533
|
-
function
|
|
1710
|
+
function _e(s, e) {
|
|
1534
1711
|
let t = e == null ? void 0 : e.element;
|
|
1535
1712
|
function n() {
|
|
1536
1713
|
t && Ce(null, t);
|
|
@@ -1542,16 +1719,16 @@ function We(s, e) {
|
|
|
1542
1719
|
);
|
|
1543
1720
|
return e != null && e.app ? (i.appContext = e.app._context, t ? Ce(i, t) : typeof document < "u" && (t = document.createElement("div"), Ce(i, t))) : (t = t ?? document.body, Ce(i, t)), { vNode: i, destroy: n, el: t };
|
|
1544
1721
|
}
|
|
1545
|
-
function
|
|
1722
|
+
function Ms(s) {
|
|
1546
1723
|
return !!s;
|
|
1547
1724
|
}
|
|
1548
|
-
function
|
|
1725
|
+
function no(s) {
|
|
1549
1726
|
return [...s].map((e) => {
|
|
1550
1727
|
const t = e.codePointAt(0);
|
|
1551
1728
|
return t ? t % 32 + 127461 : void 0;
|
|
1552
|
-
}).filter(
|
|
1729
|
+
}).filter(Ms).map((e) => String.fromCodePoint(e)).join("");
|
|
1553
1730
|
}
|
|
1554
|
-
function
|
|
1731
|
+
function oo(s, e) {
|
|
1555
1732
|
let t;
|
|
1556
1733
|
return function(...n) {
|
|
1557
1734
|
clearTimeout(t), t = setTimeout(() => {
|
|
@@ -1559,7 +1736,7 @@ function no(s, e) {
|
|
|
1559
1736
|
}, e);
|
|
1560
1737
|
};
|
|
1561
1738
|
}
|
|
1562
|
-
class
|
|
1739
|
+
class io {
|
|
1563
1740
|
constructor({ src: e, identifier: t, once: n = !0, async: o = !0, defer: i = !0 }) {
|
|
1564
1741
|
d(this, "src");
|
|
1565
1742
|
d(this, "script");
|
|
@@ -1600,10 +1777,10 @@ class oo {
|
|
|
1600
1777
|
});
|
|
1601
1778
|
}
|
|
1602
1779
|
}
|
|
1603
|
-
function
|
|
1780
|
+
function $s(s) {
|
|
1604
1781
|
return new Promise((e) => setTimeout(e, s));
|
|
1605
1782
|
}
|
|
1606
|
-
function
|
|
1783
|
+
function ro(s, e) {
|
|
1607
1784
|
let t = !1, n, o;
|
|
1608
1785
|
return function(...i) {
|
|
1609
1786
|
t ? (clearTimeout(n), n = setTimeout(() => {
|
|
@@ -1611,7 +1788,7 @@ function io(s, e) {
|
|
|
1611
1788
|
}, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
|
|
1612
1789
|
};
|
|
1613
1790
|
}
|
|
1614
|
-
const Vs = ["onKeypress"],
|
|
1791
|
+
const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["src", "alt"], Ns = /* @__PURE__ */ ye({
|
|
1615
1792
|
__name: "MazFullscreenImg",
|
|
1616
1793
|
props: {
|
|
1617
1794
|
src: {},
|
|
@@ -1629,57 +1806,57 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
|
|
|
1629
1806
|
},
|
|
1630
1807
|
emits: ["close", "previous", "next", "before-close"],
|
|
1631
1808
|
setup(s, { emit: e }) {
|
|
1632
|
-
const t = s, n = e, o = H(() => import("./MazSpinner-
|
|
1809
|
+
const t = s, n = e, o = H(() => import("./MazSpinner-C4XtaFJk.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = w(!1), l = w(!1), u = w(!1), b = w(!1), c = w(!1), f = Bt({
|
|
1633
1810
|
running: !1,
|
|
1634
1811
|
ended: !1
|
|
1635
|
-
}),
|
|
1636
|
-
"--is-zoomed":
|
|
1637
|
-
"--invisible":
|
|
1638
|
-
"--absolute": !
|
|
1812
|
+
}), E = w(t.clickedElement), O = p(() => t.clickedElement.getBoundingClientRect()), I = w(), h = w(t.src), m = w(t.alt), L = w(), g = w(), A = w(!0), D = p(() => ({
|
|
1813
|
+
"--is-zoomed": c.value,
|
|
1814
|
+
"--invisible": A.value,
|
|
1815
|
+
"--absolute": !c.value
|
|
1639
1816
|
}));
|
|
1640
|
-
function
|
|
1641
|
-
var
|
|
1642
|
-
|
|
1817
|
+
function T() {
|
|
1818
|
+
var y, z;
|
|
1819
|
+
g.value && (I.value = ((y = g.value) == null ? void 0 : y.naturalWidth) > ((z = g.value) == null ? void 0 : z.naturalHeight)), a.value = !0, l.value = !1, u.value = !0;
|
|
1643
1820
|
}
|
|
1644
1821
|
X(
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1822
|
+
u,
|
|
1823
|
+
(y) => {
|
|
1824
|
+
y && S();
|
|
1648
1825
|
},
|
|
1649
1826
|
{ immediate: !0 }
|
|
1650
1827
|
);
|
|
1651
|
-
function
|
|
1652
|
-
n("before-close"),
|
|
1828
|
+
function P() {
|
|
1829
|
+
n("before-close"), M();
|
|
1653
1830
|
}
|
|
1654
|
-
function j(
|
|
1655
|
-
|
|
1831
|
+
function j(y) {
|
|
1832
|
+
y.key === "Escape" && (y.preventDefault(), P()), (y.key === "ArrowLeft" || y.key === "ArrowRight") && (y.preventDefault(), de(y.key === "ArrowRight" ? "next" : "previous"));
|
|
1656
1833
|
}
|
|
1657
|
-
function
|
|
1834
|
+
function se() {
|
|
1658
1835
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
1659
1836
|
}
|
|
1660
1837
|
function G() {
|
|
1661
1838
|
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
1662
1839
|
}
|
|
1663
|
-
function
|
|
1840
|
+
function ue() {
|
|
1664
1841
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
1665
1842
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return
|
|
1843
|
+
function Me(y, z) {
|
|
1844
|
+
return z < 0 ? y.length - 1 : z >= y.length ? 0 : z;
|
|
1668
1845
|
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1846
|
+
function ce(y, z) {
|
|
1847
|
+
y.classList.remove(t.openInstanceClass), z.classList.add(t.openInstanceClass);
|
|
1848
|
+
const k = z.getAttribute("data-src"), $ = z.getAttribute("data-alt");
|
|
1849
|
+
m.value = $, h.value = k ?? h.value;
|
|
1673
1850
|
}
|
|
1674
|
-
function
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1851
|
+
function de(y) {
|
|
1852
|
+
A.value = !0;
|
|
1853
|
+
const z = document.querySelector(
|
|
1677
1854
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
1678
1855
|
);
|
|
1679
|
-
if (
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1682
|
-
|
|
1856
|
+
if (z) {
|
|
1857
|
+
const k = ue(), $ = k.indexOf(z), R = y === "next" ? $ + 1 : $ - 1, _ = k[Me(k, R)];
|
|
1858
|
+
E.value = _, _ && ce(z, _), n(y), a.value = !1, l.value = !0, ct(() => a.value === !0, () => {
|
|
1859
|
+
A.value = !1, c.value ? me() : v();
|
|
1683
1860
|
}, {
|
|
1684
1861
|
expectedValue: !0,
|
|
1685
1862
|
interval: 100,
|
|
@@ -1687,173 +1864,173 @@ const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["s
|
|
|
1687
1864
|
});
|
|
1688
1865
|
}
|
|
1689
1866
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const
|
|
1692
|
-
if (!
|
|
1867
|
+
function me() {
|
|
1868
|
+
const y = g.value;
|
|
1869
|
+
if (!y) {
|
|
1693
1870
|
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1694
1871
|
return;
|
|
1695
1872
|
}
|
|
1696
|
-
|
|
1873
|
+
y.style.removeProperty("max-width"), y.style.removeProperty("max-height"), y == null || y.style.removeProperty("top"), y == null || y.style.removeProperty("left"), I.value ? (y.style.height = "100vh", y.style.removeProperty("width")) : (y.style.width = "100vw", y.style.removeProperty("height"));
|
|
1697
1874
|
}
|
|
1698
|
-
|
|
1699
|
-
|
|
1875
|
+
function $e() {
|
|
1876
|
+
c.value ? (c.value = !c.value, v()) : (c.value = !c.value, me());
|
|
1700
1877
|
}
|
|
1701
|
-
function
|
|
1702
|
-
var
|
|
1703
|
-
|
|
1704
|
-
const
|
|
1878
|
+
function ne(y) {
|
|
1879
|
+
var k;
|
|
1880
|
+
f.running = !0, A.value = !1;
|
|
1881
|
+
const z = (k = g.value) == null ? void 0 : k.animate(y, {
|
|
1705
1882
|
duration: t.animation.duration,
|
|
1706
1883
|
easing: t.animation.easing
|
|
1707
1884
|
});
|
|
1708
|
-
if (!
|
|
1709
|
-
console.error("[maz-ui](vFullscreenImg) animation is not defined"),
|
|
1885
|
+
if (!z) {
|
|
1886
|
+
console.error("[maz-ui](vFullscreenImg) animation is not defined"), f.running = !1, f.ended = !0;
|
|
1710
1887
|
return;
|
|
1711
1888
|
}
|
|
1712
|
-
return
|
|
1889
|
+
return z;
|
|
1713
1890
|
}
|
|
1714
|
-
function Le(
|
|
1715
|
-
const
|
|
1716
|
-
(
|
|
1717
|
-
(
|
|
1718
|
-
),
|
|
1891
|
+
function Le(y = t.offset ?? 0) {
|
|
1892
|
+
const z = E.value.clientWidth || 1, k = E.value.clientHeight || 1, $ = window.innerWidth, R = window.innerHeight, _ = Math.min(
|
|
1893
|
+
($ - 2 * y) / z,
|
|
1894
|
+
(R - 2 * y) / k
|
|
1895
|
+
), Ve = ($ - z * _) / 2, He = (R - k * _) / 2;
|
|
1719
1896
|
return {
|
|
1720
|
-
centerX:
|
|
1721
|
-
centerY:
|
|
1722
|
-
width:
|
|
1723
|
-
height:
|
|
1724
|
-
scale:
|
|
1897
|
+
centerX: Ve,
|
|
1898
|
+
centerY: He,
|
|
1899
|
+
width: z,
|
|
1900
|
+
height: k,
|
|
1901
|
+
scale: _
|
|
1725
1902
|
};
|
|
1726
1903
|
}
|
|
1727
|
-
function
|
|
1728
|
-
const { width:
|
|
1904
|
+
function ke({ trigger: y }) {
|
|
1905
|
+
const { width: z, height: k, scale: $, centerX: R, centerY: _ } = Le(), { top: Ve, left: He, width: Ot, height: Dt } = O.value, Ke = [
|
|
1729
1906
|
{
|
|
1730
|
-
top: `${
|
|
1731
|
-
left: `${
|
|
1907
|
+
top: `${Ve}px`,
|
|
1908
|
+
left: `${He}px`,
|
|
1732
1909
|
width: `${Ot}px`,
|
|
1733
1910
|
height: `${Dt}px`,
|
|
1734
1911
|
opacity: 0
|
|
1735
1912
|
},
|
|
1736
1913
|
{
|
|
1737
|
-
top: `${
|
|
1738
|
-
left: `${
|
|
1739
|
-
width: `${
|
|
1740
|
-
height: `${
|
|
1914
|
+
top: `${_}px`,
|
|
1915
|
+
left: `${R}px`,
|
|
1916
|
+
width: `${z * $}px`,
|
|
1917
|
+
height: `${k * $}px`,
|
|
1741
1918
|
opacity: 1
|
|
1742
1919
|
}
|
|
1743
1920
|
];
|
|
1744
1921
|
return {
|
|
1745
|
-
frames:
|
|
1922
|
+
frames: y === "open" ? Ke : Ke.reverse()
|
|
1746
1923
|
};
|
|
1747
1924
|
}
|
|
1748
|
-
function
|
|
1749
|
-
const { height:
|
|
1750
|
-
width: `${
|
|
1751
|
-
maxHeight: `${
|
|
1925
|
+
function v() {
|
|
1926
|
+
const { height: y, width: z, scale: k } = Le(), $ = I.value ? {
|
|
1927
|
+
width: `${z * k}px`,
|
|
1928
|
+
maxHeight: `${y * k}px`
|
|
1752
1929
|
} : {
|
|
1753
|
-
height: `${
|
|
1754
|
-
maxWidth: `${
|
|
1930
|
+
height: `${y * k}px`,
|
|
1931
|
+
maxWidth: `${z * k}px`
|
|
1755
1932
|
};
|
|
1756
|
-
if (!
|
|
1933
|
+
if (!g.value) {
|
|
1757
1934
|
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1758
1935
|
return;
|
|
1759
1936
|
}
|
|
1760
|
-
I.value ? (
|
|
1937
|
+
I.value ? (g.value.style.removeProperty("height"), g.value.style.removeProperty("maxHeight")) : (g.value.style.removeProperty("width"), g.value.style.removeProperty("maxWidth")), Object.assign(g.value.style, $);
|
|
1761
1938
|
}
|
|
1762
|
-
function
|
|
1763
|
-
const { frames:
|
|
1939
|
+
function S() {
|
|
1940
|
+
const { frames: y } = ke({
|
|
1764
1941
|
trigger: "open"
|
|
1765
|
-
}),
|
|
1766
|
-
if (!
|
|
1767
|
-
console.error("[maz-ui](vFullscreenImg) open animation is not defined"),
|
|
1942
|
+
}), z = ne(y);
|
|
1943
|
+
if (!z) {
|
|
1944
|
+
console.error("[maz-ui](vFullscreenImg) open animation is not defined"), v();
|
|
1768
1945
|
return;
|
|
1769
1946
|
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1947
|
+
z.onfinish = () => {
|
|
1948
|
+
v(), f.running = !1, f.ended = !0;
|
|
1772
1949
|
};
|
|
1773
1950
|
}
|
|
1774
|
-
function
|
|
1775
|
-
const { frames:
|
|
1951
|
+
function M() {
|
|
1952
|
+
const { frames: y } = ke({
|
|
1776
1953
|
trigger: "close"
|
|
1777
|
-
}),
|
|
1778
|
-
function
|
|
1779
|
-
var
|
|
1780
|
-
n("close"), (
|
|
1954
|
+
}), z = ne(y);
|
|
1955
|
+
function k() {
|
|
1956
|
+
var $, R;
|
|
1957
|
+
n("close"), ($ = L.value) == null || $.remove(), (R = t.destroy) == null || R.call(t), f.running = !1, f.ended = !0;
|
|
1781
1958
|
}
|
|
1782
|
-
if (!
|
|
1783
|
-
console.error("[maz-ui](vFullscreenImg) close animation is not defined"),
|
|
1959
|
+
if (!z) {
|
|
1960
|
+
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), k();
|
|
1784
1961
|
return;
|
|
1785
1962
|
}
|
|
1786
|
-
|
|
1963
|
+
z.onfinish = k;
|
|
1787
1964
|
}
|
|
1788
|
-
function
|
|
1789
|
-
|
|
1965
|
+
function fe() {
|
|
1966
|
+
c.value || v();
|
|
1790
1967
|
}
|
|
1791
|
-
return
|
|
1792
|
-
|
|
1968
|
+
return le(() => {
|
|
1969
|
+
l.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", fe), se(), b.value = ue().length > 1;
|
|
1793
1970
|
}), rt(() => {
|
|
1794
|
-
document.removeEventListener("keydown", j), window.removeEventListener("resize",
|
|
1795
|
-
}), (
|
|
1971
|
+
document.removeEventListener("keydown", j), window.removeEventListener("resize", fe), G();
|
|
1972
|
+
}), (y, z) => (C(), U("div", {
|
|
1796
1973
|
ref_key: "FullscreenImgElement",
|
|
1797
|
-
ref:
|
|
1974
|
+
ref: L,
|
|
1798
1975
|
role: "button",
|
|
1799
1976
|
class: "m-fullscreen-img",
|
|
1800
1977
|
tabindex: "0",
|
|
1801
|
-
onClick: Y(
|
|
1802
|
-
onKeypress: Nt(Y(
|
|
1978
|
+
onClick: Y(P, ["stop"]),
|
|
1979
|
+
onKeypress: Nt(Y(P, ["prevent"]), ["esc"])
|
|
1803
1980
|
}, [
|
|
1804
|
-
|
|
1981
|
+
u.value && b.value ? (C(), U("button", {
|
|
1805
1982
|
key: 0,
|
|
1806
1983
|
type: "button",
|
|
1807
1984
|
class: "m-fullscreen-btn --next",
|
|
1808
|
-
onClick:
|
|
1985
|
+
onClick: z[0] || (z[0] = Y((k) => de("next"), ["stop"]))
|
|
1809
1986
|
}, [
|
|
1810
|
-
J(
|
|
1811
|
-
])) :
|
|
1812
|
-
|
|
1987
|
+
J(x(r), { class: "maz-rotate-180" })
|
|
1988
|
+
])) : B("v-if", !0),
|
|
1989
|
+
u.value && b.value ? (C(), U("button", {
|
|
1813
1990
|
key: 1,
|
|
1814
1991
|
type: "button",
|
|
1815
1992
|
class: "m-fullscreen-btn --previous",
|
|
1816
|
-
onClick:
|
|
1993
|
+
onClick: z[1] || (z[1] = Y((k) => de("previous"), ["stop"]))
|
|
1817
1994
|
}, [
|
|
1818
|
-
J(
|
|
1819
|
-
])) :
|
|
1820
|
-
|
|
1995
|
+
J(x(r))
|
|
1996
|
+
])) : B("v-if", !0),
|
|
1997
|
+
V("button", {
|
|
1821
1998
|
type: "button",
|
|
1822
1999
|
class: "m-fullscreen-btn --close",
|
|
1823
|
-
onClick:
|
|
2000
|
+
onClick: P
|
|
1824
2001
|
}, [
|
|
1825
|
-
J(
|
|
2002
|
+
J(x(i))
|
|
1826
2003
|
]),
|
|
1827
|
-
|
|
1828
|
-
|
|
2004
|
+
V("div", Hs, [
|
|
2005
|
+
V("img", {
|
|
1829
2006
|
ref_key: "ImgElement",
|
|
1830
|
-
ref:
|
|
1831
|
-
src:
|
|
1832
|
-
alt:
|
|
2007
|
+
ref: g,
|
|
2008
|
+
src: h.value,
|
|
2009
|
+
alt: m.value ?? void 0,
|
|
1833
2010
|
tabindex: "0",
|
|
1834
|
-
class:
|
|
1835
|
-
onLoad:
|
|
1836
|
-
onClick:
|
|
1837
|
-
}, null, 42,
|
|
2011
|
+
class: ge([D.value]),
|
|
2012
|
+
onLoad: T,
|
|
2013
|
+
onClick: z[2] || (z[2] = Y((k) => y.zoom && $e(), ["stop"]))
|
|
2014
|
+
}, null, 42, Bs),
|
|
1838
2015
|
at(J(
|
|
1839
|
-
|
|
2016
|
+
x(o),
|
|
1840
2017
|
{ class: "m-fullscreen-img-loader" },
|
|
1841
2018
|
null,
|
|
1842
2019
|
512
|
|
1843
2020
|
/* NEED_PATCH */
|
|
1844
2021
|
), [
|
|
1845
|
-
[lt,
|
|
2022
|
+
[lt, l.value]
|
|
1846
2023
|
])
|
|
1847
2024
|
])
|
|
1848
2025
|
], 40, Vs));
|
|
1849
2026
|
}
|
|
1850
|
-
}),
|
|
2027
|
+
}), Pe = (s, e) => {
|
|
1851
2028
|
const t = s.__vccOpts || s;
|
|
1852
2029
|
for (const [n, o] of e)
|
|
1853
2030
|
t[n] = o;
|
|
1854
2031
|
return t;
|
|
1855
|
-
},
|
|
1856
|
-
class
|
|
2032
|
+
}, Fs = /* @__PURE__ */ Pe(Ns, [["__scopeId", "data-v-4a73acb2"]]), Je = "m-fullscreen-is-open";
|
|
2033
|
+
class js {
|
|
1857
2034
|
constructor() {
|
|
1858
2035
|
d(this, "options");
|
|
1859
2036
|
d(this, "defaultOptions", {
|
|
@@ -1910,7 +2087,7 @@ class Us {
|
|
|
1910
2087
|
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 = "";
|
|
1911
2088
|
}
|
|
1912
2089
|
renderPreview(e) {
|
|
1913
|
-
return e.classList.add(Je),
|
|
2090
|
+
return e.classList.add(Je), _e(Fs, {
|
|
1914
2091
|
props: {
|
|
1915
2092
|
...this.options,
|
|
1916
2093
|
openInstanceClass: Je,
|
|
@@ -1927,22 +2104,22 @@ class Us {
|
|
|
1927
2104
|
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
1928
2105
|
}
|
|
1929
2106
|
}
|
|
1930
|
-
let
|
|
1931
|
-
const
|
|
2107
|
+
let Ae;
|
|
2108
|
+
const qs = {
|
|
1932
2109
|
mounted(s, e) {
|
|
1933
|
-
return
|
|
2110
|
+
return Ae = new js(), Ae.create(s, e);
|
|
1934
2111
|
},
|
|
1935
2112
|
updated(s, e) {
|
|
1936
|
-
return
|
|
2113
|
+
return Ae.update(s, e);
|
|
1937
2114
|
},
|
|
1938
2115
|
unmounted(s) {
|
|
1939
|
-
return
|
|
2116
|
+
return Ae.remove(s);
|
|
1940
2117
|
}
|
|
1941
|
-
},
|
|
2118
|
+
}, Us = {
|
|
1942
2119
|
install(s) {
|
|
1943
|
-
s.directive("fullscreen-img",
|
|
2120
|
+
s.directive("fullscreen-img", qs);
|
|
1944
2121
|
}
|
|
1945
|
-
}, Ws = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
2122
|
+
}, Ws = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Ue = {
|
|
1946
2123
|
baseClass: "m-lazy-img",
|
|
1947
2124
|
loadedClass: "m-lazy-loaded",
|
|
1948
2125
|
loadingClass: "m-lazy-loading",
|
|
@@ -1959,7 +2136,7 @@ const _s = {
|
|
|
1959
2136
|
class At {
|
|
1960
2137
|
constructor(e = {}) {
|
|
1961
2138
|
d(this, "observers", []);
|
|
1962
|
-
d(this, "defaultOptions",
|
|
2139
|
+
d(this, "defaultOptions", Ue);
|
|
1963
2140
|
d(this, "options");
|
|
1964
2141
|
d(this, "onImgLoadedCallback");
|
|
1965
2142
|
d(this, "onImgErrorCallback");
|
|
@@ -2109,25 +2286,25 @@ class At {
|
|
|
2109
2286
|
this.observers = [];
|
|
2110
2287
|
}
|
|
2111
2288
|
}
|
|
2112
|
-
let
|
|
2113
|
-
const
|
|
2289
|
+
let Se;
|
|
2290
|
+
const ao = {
|
|
2114
2291
|
created(s, e) {
|
|
2115
2292
|
const t = typeof e.value == "object" ? e.value : {};
|
|
2116
|
-
|
|
2293
|
+
Se = new At(t), Se.add(s, e);
|
|
2117
2294
|
},
|
|
2118
2295
|
updated(s, e) {
|
|
2119
|
-
|
|
2296
|
+
Se.update(s, e);
|
|
2120
2297
|
},
|
|
2121
2298
|
unmounted(s, e) {
|
|
2122
|
-
|
|
2299
|
+
Se.remove(s, e);
|
|
2123
2300
|
}
|
|
2124
2301
|
}, Rs = {
|
|
2125
2302
|
install(s, e = {}) {
|
|
2126
2303
|
const t = {
|
|
2127
|
-
...
|
|
2304
|
+
...Ue,
|
|
2128
2305
|
...e,
|
|
2129
2306
|
observerOptions: {
|
|
2130
|
-
...
|
|
2307
|
+
...Ue.observerOptions,
|
|
2131
2308
|
...e.observerOptions
|
|
2132
2309
|
}
|
|
2133
2310
|
}, n = new At(t);
|
|
@@ -2137,7 +2314,7 @@ const ro = {
|
|
|
2137
2314
|
unmounted: n.remove.bind(n)
|
|
2138
2315
|
});
|
|
2139
2316
|
}
|
|
2140
|
-
},
|
|
2317
|
+
}, _s = `
|
|
2141
2318
|
.maz-zoom-img {
|
|
2142
2319
|
position: fixed;
|
|
2143
2320
|
top: 0;
|
|
@@ -2266,7 +2443,7 @@ const ro = {
|
|
|
2266
2443
|
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>',
|
|
2267
2444
|
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>'
|
|
2268
2445
|
};
|
|
2269
|
-
class
|
|
2446
|
+
class Ks {
|
|
2270
2447
|
constructor(e) {
|
|
2271
2448
|
d(this, "options");
|
|
2272
2449
|
d(this, "loader");
|
|
@@ -2313,7 +2490,7 @@ class Ys {
|
|
|
2313
2490
|
e.classList.add(
|
|
2314
2491
|
"maz-is-open"
|
|
2315
2492
|
/* OPEN */
|
|
2316
|
-
), this.addStyle(
|
|
2493
|
+
), this.addStyle(_s);
|
|
2317
2494
|
const n = document.createElement("div");
|
|
2318
2495
|
n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (o) => {
|
|
2319
2496
|
n.isEqualNode(o.target) && this.closePreview();
|
|
@@ -2348,8 +2525,10 @@ class Ys {
|
|
|
2348
2525
|
getButton(e = "close") {
|
|
2349
2526
|
const t = document.createElement("button");
|
|
2350
2527
|
t.innerHTML = et[e];
|
|
2351
|
-
const n = e === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(e === "next") : null;
|
|
2352
|
-
return t.addEventListener("click", () =>
|
|
2528
|
+
const n = () => e === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(e === "next") : null;
|
|
2529
|
+
return t.addEventListener("click", () => {
|
|
2530
|
+
n();
|
|
2531
|
+
}), t.classList.add("maz-zoom-btn"), t.classList.add(`maz-zoom-btn--${e}`), t;
|
|
2353
2532
|
}
|
|
2354
2533
|
closePreview() {
|
|
2355
2534
|
const e = document.querySelector("#MazImgPreviewFullsize"), t = document.querySelector("#MazPreviewStyle"), n = document.querySelector(
|
|
@@ -2363,7 +2542,8 @@ class Ys {
|
|
|
2363
2542
|
}, 300);
|
|
2364
2543
|
}
|
|
2365
2544
|
getNewInstanceIndex(e) {
|
|
2366
|
-
|
|
2545
|
+
let t = e;
|
|
2546
|
+
return t < 0 ? t = this.allInstances.length - 1 : t >= this.allInstances.length && (t = 0), t;
|
|
2367
2547
|
}
|
|
2368
2548
|
nextPreviousImage(e) {
|
|
2369
2549
|
const t = e, n = document.querySelector(
|
|
@@ -2400,47 +2580,47 @@ class Ys {
|
|
|
2400
2580
|
this.img.removeEventListener("load", this.onImgLoadedCallback);
|
|
2401
2581
|
}
|
|
2402
2582
|
}
|
|
2403
|
-
let
|
|
2404
|
-
const
|
|
2583
|
+
let xe;
|
|
2584
|
+
const Ys = {
|
|
2405
2585
|
created(s, e) {
|
|
2406
|
-
|
|
2586
|
+
xe = new Ks(e), xe.create(s);
|
|
2407
2587
|
},
|
|
2408
2588
|
updated(s, e) {
|
|
2409
|
-
|
|
2589
|
+
xe.update(e);
|
|
2410
2590
|
},
|
|
2411
2591
|
unmounted(s) {
|
|
2412
|
-
|
|
2592
|
+
xe.remove(s);
|
|
2413
2593
|
}
|
|
2414
|
-
},
|
|
2594
|
+
}, Zs = {
|
|
2415
2595
|
install(s) {
|
|
2416
|
-
s.directive("zoom-img",
|
|
2596
|
+
s.directive("zoom-img", Ys);
|
|
2417
2597
|
}
|
|
2418
|
-
},
|
|
2419
|
-
|
|
2420
|
-
|
|
2598
|
+
}, Xs = [
|
|
2599
|
+
Ds,
|
|
2600
|
+
Zs,
|
|
2421
2601
|
Rs,
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
],
|
|
2602
|
+
As,
|
|
2603
|
+
Us,
|
|
2604
|
+
Ps
|
|
2605
|
+
], lo = {
|
|
2426
2606
|
install(s) {
|
|
2427
|
-
for (const e of
|
|
2607
|
+
for (const e of Xs)
|
|
2428
2608
|
e.install(s, {});
|
|
2429
2609
|
}
|
|
2430
2610
|
};
|
|
2431
|
-
function
|
|
2611
|
+
function Gs(s) {
|
|
2432
2612
|
return s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "";
|
|
2433
2613
|
}
|
|
2434
|
-
const
|
|
2614
|
+
const Qs = {
|
|
2435
2615
|
style: "currency",
|
|
2436
2616
|
minimumFractionDigits: 2,
|
|
2437
2617
|
round: !1
|
|
2438
2618
|
};
|
|
2439
|
-
function
|
|
2619
|
+
function Js(s, e, t) {
|
|
2440
2620
|
let n = Number(s);
|
|
2441
2621
|
return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
|
|
2442
2622
|
}
|
|
2443
|
-
function
|
|
2623
|
+
function en(s, e, t) {
|
|
2444
2624
|
if (s === void 0)
|
|
2445
2625
|
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
2446
2626
|
if (e === void 0)
|
|
@@ -2450,29 +2630,29 @@ function tn(s, e, t) {
|
|
|
2450
2630
|
if (t.currency === void 0)
|
|
2451
2631
|
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
2452
2632
|
}
|
|
2453
|
-
function
|
|
2633
|
+
function tn(s, e, t) {
|
|
2454
2634
|
const n = {
|
|
2455
|
-
...
|
|
2635
|
+
...Qs,
|
|
2456
2636
|
...t
|
|
2457
2637
|
};
|
|
2458
|
-
|
|
2638
|
+
en(s, e, n);
|
|
2459
2639
|
try {
|
|
2460
|
-
return
|
|
2640
|
+
return Js(s, e, n);
|
|
2461
2641
|
} catch (o) {
|
|
2462
2642
|
throw new Error(`[maz-ui](FilterCurrency) ${o}`);
|
|
2463
2643
|
}
|
|
2464
2644
|
}
|
|
2465
|
-
const
|
|
2645
|
+
const sn = {
|
|
2466
2646
|
month: "short",
|
|
2467
2647
|
day: "numeric",
|
|
2468
2648
|
year: "numeric"
|
|
2469
2649
|
};
|
|
2470
|
-
function
|
|
2650
|
+
function nn(s, e, t) {
|
|
2471
2651
|
if (e === void 0)
|
|
2472
2652
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
2473
2653
|
if (typeof e != "string")
|
|
2474
2654
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
2475
|
-
const n = t ??
|
|
2655
|
+
const n = t ?? sn;
|
|
2476
2656
|
try {
|
|
2477
2657
|
const o = s instanceof Date ? s : new Date(s);
|
|
2478
2658
|
return new Intl.DateTimeFormat(e, n).format(o);
|
|
@@ -2480,12 +2660,12 @@ function on(s, e, t) {
|
|
|
2480
2660
|
throw new Error(`[maz-ui](FilterDate) ${o}`);
|
|
2481
2661
|
}
|
|
2482
2662
|
}
|
|
2483
|
-
const
|
|
2663
|
+
const on = {
|
|
2484
2664
|
minimumFractionDigits: 2
|
|
2485
2665
|
};
|
|
2486
|
-
function
|
|
2666
|
+
function rn(s, e, t) {
|
|
2487
2667
|
const n = {
|
|
2488
|
-
...
|
|
2668
|
+
...on,
|
|
2489
2669
|
...t
|
|
2490
2670
|
};
|
|
2491
2671
|
if (s === void 0)
|
|
@@ -2500,16 +2680,16 @@ function an(s, e, t) {
|
|
|
2500
2680
|
throw new Error(`[maz-ui](FilterNumber) ${o}`);
|
|
2501
2681
|
}
|
|
2502
2682
|
}
|
|
2503
|
-
const
|
|
2504
|
-
capitalize:
|
|
2505
|
-
currency:
|
|
2506
|
-
date:
|
|
2507
|
-
number:
|
|
2508
|
-
},
|
|
2683
|
+
const an = {
|
|
2684
|
+
capitalize: Gs,
|
|
2685
|
+
currency: tn,
|
|
2686
|
+
date: nn,
|
|
2687
|
+
number: rn
|
|
2688
|
+
}, uo = {
|
|
2509
2689
|
install(s) {
|
|
2510
|
-
s.provide("filters",
|
|
2690
|
+
s.provide("filters", an);
|
|
2511
2691
|
}
|
|
2512
|
-
},
|
|
2692
|
+
}, Fe = {
|
|
2513
2693
|
delay: 100,
|
|
2514
2694
|
observer: {
|
|
2515
2695
|
root: void 0,
|
|
@@ -2522,44 +2702,45 @@ const ln = {
|
|
|
2522
2702
|
delay: 0
|
|
2523
2703
|
}
|
|
2524
2704
|
};
|
|
2525
|
-
class
|
|
2705
|
+
class ln {
|
|
2526
2706
|
constructor(e) {
|
|
2527
2707
|
d(this, "options");
|
|
2528
2708
|
this.options = {
|
|
2529
|
-
delay: (e == null ? void 0 : e.delay) ??
|
|
2709
|
+
delay: (e == null ? void 0 : e.delay) ?? Fe.delay,
|
|
2530
2710
|
observer: {
|
|
2531
|
-
...
|
|
2711
|
+
...Fe.observer,
|
|
2532
2712
|
...e == null ? void 0 : e.observer
|
|
2533
2713
|
},
|
|
2534
2714
|
animation: {
|
|
2535
|
-
...
|
|
2715
|
+
...Fe.animation,
|
|
2536
2716
|
...e == null ? void 0 : e.animation
|
|
2537
2717
|
}
|
|
2538
2718
|
};
|
|
2539
2719
|
}
|
|
2720
|
+
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
2540
2721
|
handleIntersect(e, t) {
|
|
2541
2722
|
for (const n of e) {
|
|
2542
2723
|
const i = n.target.getAttribute("data-maz-aos-children") === "true", r = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
2543
2724
|
if (i) {
|
|
2544
2725
|
const a = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
|
|
2545
|
-
(
|
|
2726
|
+
(l) => l.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? l : void 0
|
|
2546
2727
|
);
|
|
2547
|
-
for (const
|
|
2548
|
-
|
|
2728
|
+
for (const l of a)
|
|
2729
|
+
l && r.push(l);
|
|
2549
2730
|
}
|
|
2550
2731
|
for (const a of r) {
|
|
2551
|
-
const
|
|
2732
|
+
const l = a.getAttribute("data-maz-aos-once"), u = typeof l == "string" ? l === "true" : this.options.animation.once;
|
|
2552
2733
|
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
2553
|
-
const
|
|
2554
|
-
if (
|
|
2734
|
+
const b = a.getAttribute("data-maz-aos-duration"), c = a.getAttribute("data-maz-aos-delay");
|
|
2735
|
+
if (b || (a.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
2555
2736
|
a.style.transitionDuration = "0";
|
|
2556
|
-
}, 1e3)),
|
|
2737
|
+
}, 1e3)), c || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
2557
2738
|
a.style.transitionDelay = "0";
|
|
2558
|
-
}, 1e3)), a.classList.add("maz-aos-animate"),
|
|
2559
|
-
const
|
|
2560
|
-
if (
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2739
|
+
}, 1e3)), a.classList.add("maz-aos-animate"), u) {
|
|
2740
|
+
const f = a.getAttribute("data-maz-aos-anchor");
|
|
2741
|
+
if (f) {
|
|
2742
|
+
const E = document.querySelector(f);
|
|
2743
|
+
E && t.unobserve(E);
|
|
2563
2744
|
}
|
|
2564
2745
|
t.unobserve(a);
|
|
2565
2746
|
}
|
|
@@ -2569,7 +2750,7 @@ class un {
|
|
|
2569
2750
|
}
|
|
2570
2751
|
}
|
|
2571
2752
|
async handleObserver() {
|
|
2572
|
-
await
|
|
2753
|
+
await $s(this.options.delay);
|
|
2573
2754
|
const e = new IntersectionObserver(this.handleIntersect.bind(this), this.options.observer);
|
|
2574
2755
|
for (const t of document.querySelectorAll("[data-maz-aos]")) {
|
|
2575
2756
|
const n = t.getAttribute("data-maz-aos-anchor");
|
|
@@ -2586,18 +2767,22 @@ class un {
|
|
|
2586
2767
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
2587
2768
|
}
|
|
2588
2769
|
}
|
|
2589
|
-
let
|
|
2590
|
-
const
|
|
2770
|
+
let he;
|
|
2771
|
+
const co = {
|
|
2591
2772
|
install: (s, e) => {
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
}) :
|
|
2773
|
+
he = new ln(e), s.provide("aos", he), F() && (e != null && e.router ? e.router.afterEach(() => {
|
|
2774
|
+
he.runAnimations();
|
|
2775
|
+
}) : he.runAnimations());
|
|
2595
2776
|
}
|
|
2596
2777
|
};
|
|
2597
|
-
function
|
|
2598
|
-
return
|
|
2599
|
-
}
|
|
2600
|
-
const
|
|
2778
|
+
function mo() {
|
|
2779
|
+
return he;
|
|
2780
|
+
}
|
|
2781
|
+
const un = {
|
|
2782
|
+
role: "dialog",
|
|
2783
|
+
class: "m-backdrop-container",
|
|
2784
|
+
"aria-modal": "true"
|
|
2785
|
+
}, cn = { class: "m-backdrop-wrapper" }, tt = "--backdrop-present", dn = /* @__PURE__ */ ye({
|
|
2601
2786
|
inheritAttrs: !1,
|
|
2602
2787
|
__name: "MazBackdrop",
|
|
2603
2788
|
props: {
|
|
@@ -2607,130 +2792,144 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2607
2792
|
persistent: { type: Boolean, default: !1 },
|
|
2608
2793
|
noCloseOnEscKey: { type: Boolean, default: !1 },
|
|
2609
2794
|
transitionName: { default: "backdrop-anim" },
|
|
2610
|
-
backdropClass: { default:
|
|
2611
|
-
|
|
2795
|
+
backdropClass: { default: () => {
|
|
2796
|
+
} },
|
|
2797
|
+
backdropContentClass: { default: () => {
|
|
2798
|
+
} },
|
|
2799
|
+
contentPadding: { type: Boolean, default: !1 },
|
|
2800
|
+
justify: { default: "none" },
|
|
2801
|
+
align: { default: "none" },
|
|
2802
|
+
variant: {}
|
|
2612
2803
|
},
|
|
2613
2804
|
emits: ["open", "close", "update:model-value", "before-close"],
|
|
2614
2805
|
setup(s, { expose: e, emit: t }) {
|
|
2615
|
-
const n =
|
|
2616
|
-
function
|
|
2806
|
+
const n = t;
|
|
2807
|
+
function o() {
|
|
2617
2808
|
document.documentElement.classList.add(tt);
|
|
2618
2809
|
}
|
|
2619
|
-
|
|
2810
|
+
function i() {
|
|
2620
2811
|
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(tt);
|
|
2621
2812
|
}
|
|
2622
|
-
const
|
|
2623
|
-
function
|
|
2813
|
+
const r = w(s.modelValue);
|
|
2814
|
+
function a() {
|
|
2624
2815
|
l(!1);
|
|
2625
2816
|
}
|
|
2626
|
-
async function l(
|
|
2627
|
-
var
|
|
2628
|
-
|
|
2817
|
+
async function l(m) {
|
|
2818
|
+
var L;
|
|
2819
|
+
m || (n("before-close"), await ((L = s.beforeClose) == null ? void 0 : L.call(s))), r.value = m;
|
|
2629
2820
|
}
|
|
2630
|
-
function
|
|
2631
|
-
|
|
2821
|
+
function u() {
|
|
2822
|
+
n("open");
|
|
2632
2823
|
}
|
|
2633
|
-
function
|
|
2634
|
-
|
|
2824
|
+
function b() {
|
|
2825
|
+
n("update:model-value", !1), n("close"), O();
|
|
2635
2826
|
}
|
|
2636
|
-
function
|
|
2637
|
-
|
|
2827
|
+
function c() {
|
|
2828
|
+
s.persistent || a();
|
|
2638
2829
|
}
|
|
2639
|
-
function
|
|
2640
|
-
!
|
|
2830
|
+
function f(m) {
|
|
2831
|
+
!s.noCloseOnEscKey && m.key === "Escape" && !s.persistent && a();
|
|
2641
2832
|
}
|
|
2642
|
-
function
|
|
2643
|
-
|
|
2833
|
+
function E() {
|
|
2834
|
+
o(), document.addEventListener("keyup", f, !1);
|
|
2644
2835
|
}
|
|
2645
|
-
function
|
|
2646
|
-
document.removeEventListener("keyup",
|
|
2836
|
+
function O() {
|
|
2837
|
+
document.removeEventListener("keyup", f), i();
|
|
2838
|
+
}
|
|
2839
|
+
le(() => {
|
|
2840
|
+
s.modelValue ? E() : O();
|
|
2841
|
+
});
|
|
2842
|
+
let I = null;
|
|
2843
|
+
function h(m) {
|
|
2844
|
+
const L = document.querySelector(m), A = L && Array.from(L.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), D = A == null ? void 0 : A.filter((T) => {
|
|
2845
|
+
const P = window.getComputedStyle(T);
|
|
2846
|
+
return P.display !== "none" && P.visibility !== "hidden" && !T.disabled;
|
|
2847
|
+
});
|
|
2848
|
+
return D && D.length > 0 ? D[0] : null;
|
|
2647
2849
|
}
|
|
2648
|
-
return
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2850
|
+
return X(
|
|
2851
|
+
() => s.modelValue,
|
|
2852
|
+
async (m) => {
|
|
2853
|
+
if (r.value = m, m) {
|
|
2854
|
+
E(), I = document.activeElement, await ae();
|
|
2855
|
+
const L = h(".m-backdrop-content");
|
|
2856
|
+
L == null || L.focus();
|
|
2857
|
+
} else
|
|
2858
|
+
O(), await ae(), I == null || I.focus();
|
|
2654
2859
|
}
|
|
2655
2860
|
), e({
|
|
2656
|
-
onBackdropAnimationEnter:
|
|
2657
|
-
onBackdropAnimationLeave:
|
|
2658
|
-
onBackdropClicked:
|
|
2659
|
-
close:
|
|
2660
|
-
present:
|
|
2861
|
+
onBackdropAnimationEnter: u,
|
|
2862
|
+
onBackdropAnimationLeave: b,
|
|
2863
|
+
onBackdropClicked: c,
|
|
2864
|
+
close: a,
|
|
2865
|
+
present: r,
|
|
2661
2866
|
toggleModal: l,
|
|
2662
|
-
onKeyPress:
|
|
2663
|
-
}), (
|
|
2867
|
+
onKeyPress: f
|
|
2868
|
+
}), (m, L) => (C(), N(Ft, { to: m.teleportSelector }, [
|
|
2664
2869
|
J(ut, {
|
|
2665
2870
|
appear: "",
|
|
2666
|
-
name:
|
|
2667
|
-
onAfterEnter:
|
|
2668
|
-
onAfterLeave:
|
|
2871
|
+
name: m.transitionName,
|
|
2872
|
+
onAfterEnter: u,
|
|
2873
|
+
onAfterLeave: b
|
|
2669
2874
|
}, {
|
|
2670
|
-
default:
|
|
2671
|
-
|
|
2875
|
+
default: q(() => [
|
|
2876
|
+
r.value ? (C(), U(
|
|
2672
2877
|
"div",
|
|
2673
|
-
{
|
|
2878
|
+
ee({
|
|
2674
2879
|
key: 0,
|
|
2675
|
-
class:
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
},
|
|
2880
|
+
class: "m-backdrop --present"
|
|
2881
|
+
}, m.$attrs, {
|
|
2882
|
+
class: [m.backdropClass, m.variant && `--variant-${m.variant}`, { "--persistent": m.persistent }]
|
|
2883
|
+
}),
|
|
2679
2884
|
[
|
|
2680
|
-
|
|
2681
|
-
"
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
],
|
|
2702
|
-
16
|
|
2703
|
-
/* FULL_PROPS */
|
|
2704
|
-
)
|
|
2885
|
+
V("div", un, [
|
|
2886
|
+
V("div", cn, [
|
|
2887
|
+
V(
|
|
2888
|
+
"div",
|
|
2889
|
+
{
|
|
2890
|
+
class: ge(["m-backdrop-content", [m.backdropContentClass, `--justify-${m.justify}`, `--align-${m.align}`, { "--padding": m.contentPadding }]]),
|
|
2891
|
+
role: "button",
|
|
2892
|
+
tabindex: "-1",
|
|
2893
|
+
onClick: Y(c, ["self"])
|
|
2894
|
+
},
|
|
2895
|
+
[
|
|
2896
|
+
W(m.$slots, "default", {
|
|
2897
|
+
close: a,
|
|
2898
|
+
onBackdropClicked: c
|
|
2899
|
+
}, void 0, !0)
|
|
2900
|
+
],
|
|
2901
|
+
2
|
|
2902
|
+
/* CLASS */
|
|
2903
|
+
)
|
|
2904
|
+
])
|
|
2905
|
+
])
|
|
2705
2906
|
],
|
|
2706
|
-
|
|
2707
|
-
/*
|
|
2708
|
-
)) :
|
|
2907
|
+
16
|
|
2908
|
+
/* FULL_PROPS */
|
|
2909
|
+
)) : B("v-if", !0)
|
|
2709
2910
|
]),
|
|
2710
2911
|
_: 3
|
|
2711
2912
|
/* FORWARDED */
|
|
2712
2913
|
}, 8, ["name"])
|
|
2713
2914
|
], 8, ["to"]));
|
|
2714
2915
|
}
|
|
2715
|
-
}), dn = {
|
|
2916
|
+
}), mn = /* @__PURE__ */ Pe(dn, [["__scopeId", "data-v-7aa1682e"]]), fn = {
|
|
2716
2917
|
key: 0,
|
|
2717
2918
|
id: "dialogTitle",
|
|
2718
|
-
class: "
|
|
2719
|
-
},
|
|
2720
|
-
id: "dialogDesc",
|
|
2721
|
-
class: "m-dialog-content"
|
|
2722
|
-
}, fn = {
|
|
2919
|
+
class: "m-dialog-title"
|
|
2920
|
+
}, hn = {
|
|
2723
2921
|
key: 0,
|
|
2724
2922
|
class: "m-dialog-footer"
|
|
2725
|
-
},
|
|
2923
|
+
}, vn = /* @__PURE__ */ ye({
|
|
2924
|
+
name: "MazDialog",
|
|
2925
|
+
inheritAttrs: !1,
|
|
2726
2926
|
__name: "MazDialog",
|
|
2727
2927
|
props: {
|
|
2728
2928
|
modelValue: { type: Boolean },
|
|
2729
2929
|
title: { default: void 0 },
|
|
2730
2930
|
noClose: { type: Boolean, default: !1 },
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
maxHeight: { default: "95vh" },
|
|
2931
|
+
maxWidth: { default: "100%" },
|
|
2932
|
+
minWidth: { default: "32rem" },
|
|
2734
2933
|
scrollable: { type: Boolean, default: !1 },
|
|
2735
2934
|
persistent: { type: Boolean, default: !1 },
|
|
2736
2935
|
teleportSelector: {},
|
|
@@ -2738,82 +2937,124 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2738
2937
|
noCloseOnEscKey: { type: Boolean },
|
|
2739
2938
|
transitionName: {},
|
|
2740
2939
|
backdropClass: {},
|
|
2741
|
-
backdropContentClass: {}
|
|
2940
|
+
backdropContentClass: {},
|
|
2941
|
+
contentPadding: { type: Boolean },
|
|
2942
|
+
justify: {},
|
|
2943
|
+
align: {},
|
|
2944
|
+
variant: {}
|
|
2742
2945
|
},
|
|
2743
2946
|
emits: ["open", "close", "update:model-value"],
|
|
2744
2947
|
setup(s, { expose: e }) {
|
|
2745
|
-
const t = s, n = H(() => import("./MazBtn-
|
|
2948
|
+
const t = s, n = H(() => import("./MazBtn-yNCoLFA6.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = w();
|
|
2746
2949
|
e({
|
|
2747
2950
|
close: () => {
|
|
2748
|
-
var
|
|
2749
|
-
return (
|
|
2951
|
+
var c, f;
|
|
2952
|
+
return (f = (c = r.value) == null ? void 0 : c.close) == null ? void 0 : f.call(c);
|
|
2750
2953
|
}
|
|
2751
2954
|
});
|
|
2752
|
-
const a =
|
|
2955
|
+
const a = p(() => {
|
|
2956
|
+
const c = [
|
|
2957
|
+
"modelValue",
|
|
2958
|
+
"title",
|
|
2959
|
+
"noClose",
|
|
2960
|
+
"maxWidth",
|
|
2961
|
+
"minWidth",
|
|
2962
|
+
"scrollable"
|
|
2963
|
+
];
|
|
2964
|
+
return Object.fromEntries(
|
|
2965
|
+
Object.entries(t).filter(([f]) => !c.includes(f))
|
|
2966
|
+
);
|
|
2967
|
+
}), l = p(() => ({
|
|
2753
2968
|
...i,
|
|
2754
2969
|
class: void 0,
|
|
2755
2970
|
style: void 0
|
|
2756
|
-
})), u =
|
|
2971
|
+
})), u = p(() => ({
|
|
2757
2972
|
class: i.class,
|
|
2758
2973
|
style: i.style
|
|
2759
|
-
}));
|
|
2760
|
-
return
|
|
2974
|
+
})), b = w();
|
|
2975
|
+
return t.scrollable && X(() => t.modelValue, async (c) => {
|
|
2976
|
+
await ae(), c && b.value && setTimeout(() => {
|
|
2977
|
+
var f;
|
|
2978
|
+
(f = b.value) == null || f.scrollTo({ top: 0, behavior: "instant" });
|
|
2979
|
+
}, 0);
|
|
2980
|
+
}), (c, f) => (C(), N(mn, ee({ ...l.value, ...a.value }, {
|
|
2761
2981
|
ref_key: "backdrop",
|
|
2762
2982
|
ref: r,
|
|
2763
|
-
|
|
2764
|
-
"model-value": l.modelValue,
|
|
2983
|
+
"model-value": c.modelValue,
|
|
2765
2984
|
"transition-name": "modal-anim",
|
|
2766
2985
|
"aria-labelledby": "dialogTitle",
|
|
2767
2986
|
"aria-describedby": "dialogDesc",
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2987
|
+
"content-padding": "",
|
|
2988
|
+
justify: "center",
|
|
2989
|
+
variant: "dialog",
|
|
2990
|
+
onClose: f[0] || (f[0] = (E) => c.$emit("close", E)),
|
|
2991
|
+
onOpen: f[1] || (f[1] = (E) => c.$emit("open", E)),
|
|
2992
|
+
"onUpdate:modelValue": f[2] || (f[2] = (E) => c.$emit("update:model-value", E))
|
|
2771
2993
|
}), {
|
|
2772
|
-
default:
|
|
2773
|
-
|
|
2994
|
+
default: q(({ close: E, onBackdropClicked: O }) => [
|
|
2995
|
+
V(
|
|
2774
2996
|
"div",
|
|
2775
2997
|
ee({
|
|
2776
|
-
class: ["m-dialog", { "--scrollable":
|
|
2998
|
+
class: ["m-dialog", { "--scrollable": c.scrollable }],
|
|
2777
2999
|
role: "dialog",
|
|
2778
3000
|
"aria-modal": "true",
|
|
2779
|
-
style: [{ width:
|
|
3001
|
+
style: [{ "--max-width": c.maxWidth, "--min-width": c.minWidth }]
|
|
2780
3002
|
}, u.value),
|
|
2781
3003
|
[
|
|
2782
|
-
|
|
2783
|
-
|
|
3004
|
+
W(c.$slots, "header", {
|
|
3005
|
+
close: E,
|
|
3006
|
+
onBackdropClicked: O
|
|
3007
|
+
}, () => [
|
|
3008
|
+
V(
|
|
2784
3009
|
"div",
|
|
2785
3010
|
{
|
|
2786
|
-
class:
|
|
3011
|
+
class: ge(["m-dialog-header", { "--has-title": c.$slots.title || c.title }])
|
|
2787
3012
|
},
|
|
2788
3013
|
[
|
|
2789
|
-
|
|
2790
|
-
|
|
3014
|
+
c.$slots.title || c.title ? (C(), U("h2", fn, [
|
|
3015
|
+
W(c.$slots, "title", {}, () => [
|
|
2791
3016
|
Q(
|
|
2792
|
-
Z(
|
|
3017
|
+
Z(c.title),
|
|
2793
3018
|
1
|
|
2794
3019
|
/* TEXT */
|
|
2795
3020
|
)
|
|
2796
3021
|
], !0)
|
|
2797
|
-
])) :
|
|
2798
|
-
!
|
|
3022
|
+
])) : B("v-if", !0),
|
|
3023
|
+
!c.noClose && !c.persistent ? (C(), N(x(n), {
|
|
2799
3024
|
key: 1,
|
|
2800
|
-
class: "m-dialog-closebtn",
|
|
2801
3025
|
color: "transparent",
|
|
2802
3026
|
size: "sm",
|
|
2803
|
-
icon:
|
|
2804
|
-
onClick:
|
|
2805
|
-
}, null, 8, ["icon", "onClick"])) :
|
|
3027
|
+
icon: x(o),
|
|
3028
|
+
onClick: E
|
|
3029
|
+
}, null, 8, ["icon", "onClick"])) : B("v-if", !0)
|
|
2806
3030
|
],
|
|
2807
3031
|
2
|
|
2808
3032
|
/* CLASS */
|
|
2809
3033
|
)
|
|
2810
3034
|
], !0),
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
3035
|
+
V(
|
|
3036
|
+
"div",
|
|
3037
|
+
{
|
|
3038
|
+
id: "dialogDesc",
|
|
3039
|
+
ref_key: "dialogContent",
|
|
3040
|
+
ref: b,
|
|
3041
|
+
class: "m-dialog-content"
|
|
3042
|
+
},
|
|
3043
|
+
[
|
|
3044
|
+
W(c.$slots, "default", {
|
|
3045
|
+
close: E,
|
|
3046
|
+
onBackdropClicked: O
|
|
3047
|
+
}, void 0, !0)
|
|
3048
|
+
],
|
|
3049
|
+
512
|
|
3050
|
+
/* NEED_PATCH */
|
|
3051
|
+
),
|
|
3052
|
+
c.$slots.footer ? (C(), U("div", hn, [
|
|
3053
|
+
W(c.$slots, "footer", {
|
|
3054
|
+
close: E,
|
|
3055
|
+
onBackdropClicked: O
|
|
3056
|
+
}, void 0, !0)
|
|
3057
|
+
])) : B("v-if", !0)
|
|
2817
3058
|
],
|
|
2818
3059
|
16
|
|
2819
3060
|
/* FULL_PROPS */
|
|
@@ -2821,9 +3062,9 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2821
3062
|
]),
|
|
2822
3063
|
_: 3
|
|
2823
3064
|
/* FORWARDED */
|
|
2824
|
-
}, 16, ["
|
|
3065
|
+
}, 16, ["model-value"]));
|
|
2825
3066
|
}
|
|
2826
|
-
}),
|
|
3067
|
+
}), pn = /* @__PURE__ */ Pe(vn, [["__scopeId", "data-v-b16ef3d7"]]), oe = {
|
|
2827
3068
|
cancelText: "Cancel",
|
|
2828
3069
|
confirmText: "Confirm",
|
|
2829
3070
|
cancelButton: {
|
|
@@ -2834,11 +3075,11 @@ const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
|
2834
3075
|
text: "Confirm",
|
|
2835
3076
|
color: "success"
|
|
2836
3077
|
}
|
|
2837
|
-
},
|
|
2838
|
-
function
|
|
3078
|
+
}, gn = w(oe), ie = w([]);
|
|
3079
|
+
function yn(s, e) {
|
|
2839
3080
|
return new Promise((t, n) => {
|
|
2840
|
-
|
|
2841
|
-
...
|
|
3081
|
+
ie.value = [
|
|
3082
|
+
...ie.value,
|
|
2842
3083
|
{
|
|
2843
3084
|
id: s,
|
|
2844
3085
|
isActive: !0,
|
|
@@ -2853,7 +3094,7 @@ function gn(s, e) {
|
|
|
2853
3094
|
});
|
|
2854
3095
|
}
|
|
2855
3096
|
function St(s) {
|
|
2856
|
-
return
|
|
3097
|
+
return ie.value = ie.value.filter(({ id: e }) => e !== s), ie.value;
|
|
2857
3098
|
}
|
|
2858
3099
|
function st(s, e, t) {
|
|
2859
3100
|
var n;
|
|
@@ -2863,15 +3104,15 @@ function st(s, e, t) {
|
|
|
2863
3104
|
}
|
|
2864
3105
|
function xt() {
|
|
2865
3106
|
return {
|
|
2866
|
-
data:
|
|
2867
|
-
dialogState:
|
|
2868
|
-
showDialogAndWaitChoice:
|
|
3107
|
+
data: gn,
|
|
3108
|
+
dialogState: ie,
|
|
3109
|
+
showDialogAndWaitChoice: yn,
|
|
2869
3110
|
removeDialogFromState: St,
|
|
2870
3111
|
rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), st("reject", s, e)),
|
|
2871
3112
|
resolveDialog: async (s, e = "accept", t) => (await (t == null ? void 0 : t()), st("resolve", s, e))
|
|
2872
3113
|
};
|
|
2873
3114
|
}
|
|
2874
|
-
const
|
|
3115
|
+
const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ */ ye({
|
|
2875
3116
|
__name: "MazDialogPromise",
|
|
2876
3117
|
props: {
|
|
2877
3118
|
data: { default: void 0 },
|
|
@@ -2881,9 +3122,8 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2881
3122
|
modelValue: { type: Boolean },
|
|
2882
3123
|
title: {},
|
|
2883
3124
|
noClose: { type: Boolean },
|
|
2884
|
-
width: {},
|
|
2885
3125
|
maxWidth: {},
|
|
2886
|
-
|
|
3126
|
+
minWidth: {},
|
|
2887
3127
|
scrollable: { type: Boolean },
|
|
2888
3128
|
persistent: { type: Boolean },
|
|
2889
3129
|
teleportSelector: {},
|
|
@@ -2892,6 +3132,10 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2892
3132
|
transitionName: {},
|
|
2893
3133
|
backdropClass: {},
|
|
2894
3134
|
backdropContentClass: {},
|
|
3135
|
+
contentPadding: { type: Boolean },
|
|
3136
|
+
justify: {},
|
|
3137
|
+
align: {},
|
|
3138
|
+
variant: {},
|
|
2895
3139
|
cancelText: {},
|
|
2896
3140
|
cancelButton: { type: [Boolean, Object] },
|
|
2897
3141
|
confirmText: {},
|
|
@@ -2899,113 +3143,113 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
2899
3143
|
},
|
|
2900
3144
|
emits: ["open", "close"],
|
|
2901
3145
|
setup(s, { expose: e }) {
|
|
2902
|
-
const t = s, n = H(() => import("./MazBtn-
|
|
2903
|
-
var
|
|
2904
|
-
return t.buttons ?? ((
|
|
2905
|
-
}),
|
|
2906
|
-
...
|
|
3146
|
+
const t = s, n = H(() => import("./MazBtn-yNCoLFA6.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), l = p(() => {
|
|
3147
|
+
var h;
|
|
3148
|
+
return t.buttons ?? ((h = t.data) == null ? void 0 : h.buttons) ?? a.value.buttons;
|
|
3149
|
+
}), u = p(() => ({
|
|
3150
|
+
...oe,
|
|
2907
3151
|
...a.value,
|
|
2908
3152
|
...t.data
|
|
2909
|
-
})),
|
|
2910
|
-
var
|
|
2911
|
-
if (!(((
|
|
3153
|
+
})), b = p(() => {
|
|
3154
|
+
var L, g, A, D;
|
|
3155
|
+
if (!(((L = a.value) == null ? void 0 : L.cancelButton) ?? ((g = t.data) == null ? void 0 : g.cancelButton) ?? oe.cancelButton))
|
|
2912
3156
|
return;
|
|
2913
|
-
const
|
|
2914
|
-
...
|
|
2915
|
-
...(
|
|
2916
|
-
...(
|
|
3157
|
+
const m = {
|
|
3158
|
+
...oe.cancelButton,
|
|
3159
|
+
...(A = a.value) == null ? void 0 : A.cancelButton,
|
|
3160
|
+
...(D = t.data) == null ? void 0 : D.cancelButton
|
|
2917
3161
|
};
|
|
2918
3162
|
return {
|
|
2919
|
-
...
|
|
2920
|
-
text: t.cancelText ||
|
|
3163
|
+
...m,
|
|
3164
|
+
text: t.cancelText || u.value.cancelText || m.text
|
|
2921
3165
|
};
|
|
2922
|
-
}),
|
|
2923
|
-
var
|
|
2924
|
-
if (!(((
|
|
3166
|
+
}), c = p(() => {
|
|
3167
|
+
var L, g, A, D;
|
|
3168
|
+
if (!(((L = a.value) == null ? void 0 : L.confirmButton) ?? ((g = t.data) == null ? void 0 : g.confirmButton) ?? oe.confirmButton))
|
|
2925
3169
|
return;
|
|
2926
|
-
const
|
|
2927
|
-
...
|
|
2928
|
-
...(
|
|
2929
|
-
...(
|
|
3170
|
+
const m = {
|
|
3171
|
+
...oe.confirmButton,
|
|
3172
|
+
...(A = a.value) == null ? void 0 : A.confirmButton,
|
|
3173
|
+
...(D = t.data) == null ? void 0 : D.confirmButton
|
|
2930
3174
|
};
|
|
2931
3175
|
return {
|
|
2932
|
-
...
|
|
2933
|
-
text: t.confirmText ||
|
|
3176
|
+
...m,
|
|
3177
|
+
text: t.confirmText || u.value.confirmText || m.text
|
|
2934
3178
|
};
|
|
2935
|
-
}),
|
|
2936
|
-
() => o.value.find(({ id:
|
|
2937
|
-
),
|
|
3179
|
+
}), f = p(
|
|
3180
|
+
() => o.value.find(({ id: h }) => h === t.identifier)
|
|
3181
|
+
), E = w();
|
|
2938
3182
|
e({
|
|
2939
3183
|
close: () => {
|
|
2940
|
-
var
|
|
2941
|
-
return (
|
|
3184
|
+
var h, m;
|
|
3185
|
+
return (m = (h = E.value) == null ? void 0 : h.close) == null ? void 0 : m.call(h);
|
|
2942
3186
|
}
|
|
2943
3187
|
});
|
|
2944
|
-
function
|
|
2945
|
-
return "type" in
|
|
3188
|
+
function O(h) {
|
|
3189
|
+
return "type" in h && (h.type === "resolve" || h.type === "reject");
|
|
2946
3190
|
}
|
|
2947
|
-
function I(
|
|
2948
|
-
return
|
|
3191
|
+
function I(h, m) {
|
|
3192
|
+
return O(m) ? m.type === "resolve" ? r(h, m.response) : i(h, m.response) : r(h, void 0, m.action);
|
|
2949
3193
|
}
|
|
2950
|
-
return (
|
|
2951
|
-
var
|
|
2952
|
-
return C(), N(
|
|
3194
|
+
return (h, m) => {
|
|
3195
|
+
var L;
|
|
3196
|
+
return C(), N(pn, ee({
|
|
2953
3197
|
ref_key: "dialog",
|
|
2954
|
-
ref:
|
|
2955
|
-
}, { ...
|
|
2956
|
-
"model-value": ((
|
|
2957
|
-
onClose:
|
|
2958
|
-
onOpen:
|
|
2959
|
-
"onUpdate:modelValue":
|
|
3198
|
+
ref: E
|
|
3199
|
+
}, { ...h.$attrs, ...t }, {
|
|
3200
|
+
"model-value": ((L = f.value) == null ? void 0 : L.isActive) ?? h.modelValue ?? !1,
|
|
3201
|
+
onClose: m[2] || (m[2] = (g) => h.$emit("close", g)),
|
|
3202
|
+
onOpen: m[3] || (m[3] = (g) => h.$emit("open", g)),
|
|
3203
|
+
"onUpdate:modelValue": m[4] || (m[4] = (g) => x(i)(f.value))
|
|
2960
3204
|
}), {
|
|
2961
|
-
title:
|
|
2962
|
-
|
|
2963
|
-
var
|
|
3205
|
+
title: q(() => [
|
|
3206
|
+
W(h.$slots, "title", {}, () => {
|
|
3207
|
+
var g;
|
|
2964
3208
|
return [
|
|
2965
3209
|
Q(
|
|
2966
|
-
Z(
|
|
3210
|
+
Z(h.title || ((g = u.value) == null ? void 0 : g.title)),
|
|
2967
3211
|
1
|
|
2968
3212
|
/* TEXT */
|
|
2969
3213
|
)
|
|
2970
3214
|
];
|
|
2971
3215
|
})
|
|
2972
3216
|
]),
|
|
2973
|
-
default:
|
|
2974
|
-
|
|
2975
|
-
resolve: (
|
|
2976
|
-
reject: (
|
|
3217
|
+
default: q(() => [
|
|
3218
|
+
W(h.$slots, "default", {
|
|
3219
|
+
resolve: (g) => x(r)(f.value, g),
|
|
3220
|
+
reject: (g) => x(i)(f.value, g)
|
|
2977
3221
|
}, () => {
|
|
2978
|
-
var
|
|
3222
|
+
var g;
|
|
2979
3223
|
return [
|
|
2980
3224
|
Q(
|
|
2981
|
-
Z(
|
|
3225
|
+
Z(h.message || ((g = u.value) == null ? void 0 : g.message)),
|
|
2982
3226
|
1
|
|
2983
3227
|
/* TEXT */
|
|
2984
3228
|
)
|
|
2985
3229
|
];
|
|
2986
3230
|
})
|
|
2987
3231
|
]),
|
|
2988
|
-
footer:
|
|
2989
|
-
|
|
2990
|
-
resolve: (
|
|
2991
|
-
reject: (
|
|
3232
|
+
footer: q(() => [
|
|
3233
|
+
W(h.$slots, "footer-button", {
|
|
3234
|
+
resolve: (g) => x(r)(f.value, g),
|
|
3235
|
+
reject: (g) => x(i)(f.value, g)
|
|
2992
3236
|
}, () => [
|
|
2993
|
-
|
|
2994
|
-
|
|
3237
|
+
V("div", bn, [
|
|
3238
|
+
l.value ? (C(!0), U(
|
|
2995
3239
|
Ye,
|
|
2996
3240
|
{ key: 0 },
|
|
2997
|
-
|
|
2998
|
-
key:
|
|
3241
|
+
qt(l.value, (g, A) => (C(), N(x(n), ee({
|
|
3242
|
+
key: A,
|
|
2999
3243
|
ref_for: !0
|
|
3000
3244
|
}, {
|
|
3001
|
-
...
|
|
3245
|
+
...g,
|
|
3002
3246
|
type: "button"
|
|
3003
3247
|
}, {
|
|
3004
|
-
onClick: (
|
|
3248
|
+
onClick: (D) => I(f.value, g)
|
|
3005
3249
|
}), {
|
|
3006
|
-
default:
|
|
3250
|
+
default: q(() => [
|
|
3007
3251
|
Q(
|
|
3008
|
-
Z(
|
|
3252
|
+
Z(g.text),
|
|
3009
3253
|
1
|
|
3010
3254
|
/* TEXT */
|
|
3011
3255
|
)
|
|
@@ -3015,20 +3259,20 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3015
3259
|
}, 1040, ["onClick"]))),
|
|
3016
3260
|
128
|
|
3017
3261
|
/* KEYED_FRAGMENT */
|
|
3018
|
-
)) : (C(),
|
|
3262
|
+
)) : (C(), U(
|
|
3019
3263
|
Ye,
|
|
3020
3264
|
{ key: 1 },
|
|
3021
3265
|
[
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
ee({ key: 0 },
|
|
3025
|
-
onClick:
|
|
3266
|
+
b.value ? (C(), N(
|
|
3267
|
+
x(n),
|
|
3268
|
+
ee({ key: 0 }, b.value, {
|
|
3269
|
+
onClick: m[0] || (m[0] = (g) => x(i)(f.value))
|
|
3026
3270
|
}),
|
|
3027
3271
|
{
|
|
3028
|
-
default:
|
|
3029
|
-
|
|
3272
|
+
default: q(() => [
|
|
3273
|
+
W(h.$slots, "cancel-text", {}, () => [
|
|
3030
3274
|
Q(
|
|
3031
|
-
Z(
|
|
3275
|
+
Z(b.value.text),
|
|
3032
3276
|
1
|
|
3033
3277
|
/* TEXT */
|
|
3034
3278
|
)
|
|
@@ -3039,17 +3283,17 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3039
3283
|
},
|
|
3040
3284
|
16
|
|
3041
3285
|
/* FULL_PROPS */
|
|
3042
|
-
)) :
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
ee({ key: 1 },
|
|
3046
|
-
onClick:
|
|
3286
|
+
)) : B("v-if", !0),
|
|
3287
|
+
c.value ? (C(), N(
|
|
3288
|
+
x(n),
|
|
3289
|
+
ee({ key: 1 }, c.value, {
|
|
3290
|
+
onClick: m[1] || (m[1] = (g) => x(r)(f.value))
|
|
3047
3291
|
}),
|
|
3048
3292
|
{
|
|
3049
|
-
default:
|
|
3050
|
-
|
|
3293
|
+
default: q(() => [
|
|
3294
|
+
W(h.$slots, "confirm-text", {}, () => [
|
|
3051
3295
|
Q(
|
|
3052
|
-
Z(
|
|
3296
|
+
Z(c.value.text),
|
|
3053
3297
|
1
|
|
3054
3298
|
/* TEXT */
|
|
3055
3299
|
)
|
|
@@ -3060,7 +3304,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3060
3304
|
},
|
|
3061
3305
|
16
|
|
3062
3306
|
/* FULL_PROPS */
|
|
3063
|
-
)) :
|
|
3307
|
+
)) : B("v-if", !0)
|
|
3064
3308
|
],
|
|
3065
3309
|
64
|
|
3066
3310
|
/* STABLE_FRAGMENT */
|
|
@@ -3076,7 +3320,7 @@ const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ *
|
|
|
3076
3320
|
}), nt = {
|
|
3077
3321
|
identifier: "main-dialog"
|
|
3078
3322
|
};
|
|
3079
|
-
class
|
|
3323
|
+
class En {
|
|
3080
3324
|
constructor(e, t = nt) {
|
|
3081
3325
|
this.app = e, this.globalOptions = t;
|
|
3082
3326
|
}
|
|
@@ -3085,13 +3329,13 @@ class wn {
|
|
|
3085
3329
|
...nt,
|
|
3086
3330
|
...this.globalOptions,
|
|
3087
3331
|
...e
|
|
3088
|
-
}, { destroy: n, vNode: o } =
|
|
3332
|
+
}, { destroy: n, vNode: o } = _e(wn, {
|
|
3089
3333
|
props: t,
|
|
3090
3334
|
app: this.app
|
|
3091
3335
|
}), { showDialogAndWaitChoice: i } = xt();
|
|
3092
3336
|
function r() {
|
|
3093
|
-
var
|
|
3094
|
-
(
|
|
3337
|
+
var l, u, b;
|
|
3338
|
+
(u = (l = o.component) == null ? void 0 : l.exposed) == null || u.close(), (b = t.promiseCallback) == null || b.call(t), setTimeout(() => {
|
|
3095
3339
|
n();
|
|
3096
3340
|
}, 700);
|
|
3097
3341
|
}
|
|
@@ -3104,14 +3348,14 @@ class wn {
|
|
|
3104
3348
|
};
|
|
3105
3349
|
}
|
|
3106
3350
|
}
|
|
3107
|
-
const
|
|
3351
|
+
const fo = {
|
|
3108
3352
|
install(s, e) {
|
|
3109
|
-
s.provide("dialog", new
|
|
3353
|
+
s.provide("dialog", new En(s, e));
|
|
3110
3354
|
}
|
|
3111
|
-
},
|
|
3355
|
+
}, zn = { class: "m-toast__message-wrapper" }, Tn = { class: "m-toast__message" }, Ln = { class: "maz-flex maz-items-center maz-gap-2" }, kn = { key: 0 }, Cn = {
|
|
3112
3356
|
key: 4,
|
|
3113
3357
|
class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
|
|
3114
|
-
}, In = /* @__PURE__ */
|
|
3358
|
+
}, In = /* @__PURE__ */ ye({
|
|
3115
3359
|
__name: "MazToast",
|
|
3116
3360
|
props: {
|
|
3117
3361
|
message: { default: void 0 },
|
|
@@ -3128,54 +3372,54 @@ const mo = {
|
|
|
3128
3372
|
},
|
|
3129
3373
|
emits: ["close", "click", "open"],
|
|
3130
3374
|
setup(s, { expose: e, emit: t }) {
|
|
3131
|
-
const n = s, o = t, i = H(() => import("./MazBtn-
|
|
3375
|
+
const n = s, o = t, i = H(() => import("./MazBtn-yNCoLFA6.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
|
|
3132
3376
|
() => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
|
|
3133
|
-
), u = H(
|
|
3134
|
-
() => import("./exclamation-triangle-Z6d0ygp8.mjs")
|
|
3135
3377
|
), l = H(
|
|
3378
|
+
() => import("./exclamation-triangle-Z6d0ygp8.mjs")
|
|
3379
|
+
), u = H(
|
|
3136
3380
|
() => import("./exclamation-circle-CUk0ZajS.mjs")
|
|
3137
|
-
),
|
|
3381
|
+
), b = H(
|
|
3138
3382
|
() => import("./information-circle-C7e5b_nL.mjs")
|
|
3139
|
-
),
|
|
3383
|
+
), c = H(() => import("./check-circle-Bf7AGSQ-.mjs")), f = H(() => import("./link-Br1lfjTR.mjs")), E = w(), O = p(() => {
|
|
3140
3384
|
if (n.icon)
|
|
3141
3385
|
switch (n.type) {
|
|
3142
3386
|
case "danger":
|
|
3143
|
-
return
|
|
3387
|
+
return l;
|
|
3144
3388
|
case "info":
|
|
3145
|
-
return
|
|
3389
|
+
return b;
|
|
3146
3390
|
case "success":
|
|
3147
|
-
return
|
|
3391
|
+
return c;
|
|
3148
3392
|
case "warning":
|
|
3149
|
-
return
|
|
3393
|
+
return u;
|
|
3150
3394
|
default:
|
|
3151
3395
|
return;
|
|
3152
3396
|
}
|
|
3153
|
-
}), I =
|
|
3154
|
-
callback:
|
|
3397
|
+
}), I = p(() => n.position.includes("top") ? "top" : "bottom"), h = p(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), m = p(() => h.value !== "center" ? h.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), L = w(!1), g = w(!1), A = w(), D = `m-toast-container --${I.value} --${h.value}`, T = `.${D.replaceAll(" ", ".")}`, P = Ls({
|
|
3398
|
+
callback: ne,
|
|
3155
3399
|
timeout: typeof n.timeout == "number" ? n.timeout : 0,
|
|
3156
3400
|
callbackOffsetTime: 200
|
|
3157
3401
|
});
|
|
3158
3402
|
function j() {
|
|
3159
|
-
const
|
|
3160
|
-
if (!
|
|
3161
|
-
const
|
|
3162
|
-
|
|
3403
|
+
const v = document.querySelector(T);
|
|
3404
|
+
if (!v && !v) {
|
|
3405
|
+
const S = document.body, M = document.createElement("div");
|
|
3406
|
+
M.className = D, S.append(M);
|
|
3163
3407
|
}
|
|
3164
3408
|
}
|
|
3165
|
-
function
|
|
3166
|
-
const
|
|
3167
|
-
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" &&
|
|
3409
|
+
function se() {
|
|
3410
|
+
const v = document.querySelector(T);
|
|
3411
|
+
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && v ? n.maxToasts <= v.childElementCount : v && v.childElementCount > 0;
|
|
3168
3412
|
}
|
|
3169
3413
|
function G() {
|
|
3170
|
-
if (
|
|
3171
|
-
|
|
3414
|
+
if (se()) {
|
|
3415
|
+
A.value = setTimeout(G, 250);
|
|
3172
3416
|
return;
|
|
3173
3417
|
}
|
|
3174
|
-
const
|
|
3175
|
-
|
|
3418
|
+
const v = document.querySelector(T);
|
|
3419
|
+
E.value && v && v.prepend(E.value), g.value = !0, typeof n.timeout == "number" && n.timeout > 0 && P.start();
|
|
3176
3420
|
}
|
|
3177
|
-
const
|
|
3178
|
-
function
|
|
3421
|
+
const ue = w("100%");
|
|
3422
|
+
function Me() {
|
|
3179
3423
|
switch (n.type) {
|
|
3180
3424
|
case "danger":
|
|
3181
3425
|
return "maz-bg-danger-700";
|
|
@@ -3190,125 +3434,125 @@ const mo = {
|
|
|
3190
3434
|
}
|
|
3191
3435
|
}
|
|
3192
3436
|
X(
|
|
3193
|
-
|
|
3194
|
-
(
|
|
3437
|
+
P.remainingTime,
|
|
3438
|
+
(v) => {
|
|
3195
3439
|
if (typeof n.timeout == "number") {
|
|
3196
|
-
const
|
|
3197
|
-
|
|
3440
|
+
const S = 100 * v / n.timeout;
|
|
3441
|
+
ue.value = `${S}%`;
|
|
3198
3442
|
}
|
|
3199
3443
|
}
|
|
3200
3444
|
);
|
|
3201
|
-
function
|
|
3202
|
-
o("click",
|
|
3445
|
+
function ce(v) {
|
|
3446
|
+
o("click", v), n.persistent || ne();
|
|
3203
3447
|
}
|
|
3204
|
-
async function
|
|
3205
|
-
var
|
|
3206
|
-
|
|
3448
|
+
async function de(v, S) {
|
|
3449
|
+
var M;
|
|
3450
|
+
L.value = !0, await v(), L.value = !1, (M = n.action) != null && M.closeToast && ce(S);
|
|
3207
3451
|
}
|
|
3208
|
-
function
|
|
3209
|
-
n.noPauseOnHover || (
|
|
3452
|
+
function me(v) {
|
|
3453
|
+
n.noPauseOnHover || (v ? P.pause() : P.resume());
|
|
3210
3454
|
}
|
|
3211
|
-
function
|
|
3212
|
-
|
|
3455
|
+
function $e() {
|
|
3456
|
+
P.stop(), A.value && clearTimeout(A.value);
|
|
3213
3457
|
}
|
|
3214
|
-
function
|
|
3215
|
-
|
|
3458
|
+
function ne() {
|
|
3459
|
+
$e(), g.value = !1;
|
|
3216
3460
|
}
|
|
3217
|
-
e({ closeToast:
|
|
3461
|
+
e({ closeToast: ne });
|
|
3218
3462
|
function Le() {
|
|
3219
3463
|
o("open");
|
|
3220
3464
|
}
|
|
3221
|
-
function
|
|
3222
|
-
var
|
|
3223
|
-
o("close"), (
|
|
3224
|
-
const
|
|
3225
|
-
|
|
3465
|
+
function ke() {
|
|
3466
|
+
var S;
|
|
3467
|
+
o("close"), (S = E.value) == null || S.remove();
|
|
3468
|
+
const v = document.querySelector(T);
|
|
3469
|
+
v && !(v != null && v.hasChildNodes()) && v.remove();
|
|
3226
3470
|
}
|
|
3227
|
-
return
|
|
3471
|
+
return le(() => {
|
|
3228
3472
|
j(), G();
|
|
3229
|
-
}), (
|
|
3230
|
-
name:
|
|
3231
|
-
onAfterLeave:
|
|
3473
|
+
}), (v, S) => (C(), N(ut, {
|
|
3474
|
+
name: m.value,
|
|
3475
|
+
onAfterLeave: ke,
|
|
3232
3476
|
onAfterEnter: Le,
|
|
3233
3477
|
persisted: ""
|
|
3234
3478
|
}, {
|
|
3235
|
-
default:
|
|
3236
|
-
at(
|
|
3479
|
+
default: q(() => [
|
|
3480
|
+
at(V(
|
|
3237
3481
|
"button",
|
|
3238
3482
|
{
|
|
3239
3483
|
ref_key: "Toaster",
|
|
3240
|
-
ref:
|
|
3241
|
-
class:
|
|
3242
|
-
`--${
|
|
3484
|
+
ref: E,
|
|
3485
|
+
class: ge(["m-toast", [
|
|
3486
|
+
`--${v.type}`,
|
|
3243
3487
|
`--${I.value}`,
|
|
3244
|
-
`--${
|
|
3245
|
-
{ "maz-pb-1": typeof
|
|
3488
|
+
`--${h.value}`,
|
|
3489
|
+
{ "maz-pb-1": typeof v.timeout == "number" && v.timeout > 0, "--persistent": v.persistent }
|
|
3246
3490
|
]]),
|
|
3247
3491
|
role: "alert",
|
|
3248
|
-
onMouseover:
|
|
3249
|
-
onMouseleave:
|
|
3250
|
-
onClick:
|
|
3251
|
-
var
|
|
3252
|
-
return
|
|
3492
|
+
onMouseover: S[2] || (S[2] = (M) => me(!0)),
|
|
3493
|
+
onMouseleave: S[3] || (S[3] = (M) => me(!1)),
|
|
3494
|
+
onClick: S[4] || (S[4] = Y((M) => {
|
|
3495
|
+
var fe;
|
|
3496
|
+
return v.link && !((fe = v.link) != null && fe.closeToast) ? void 0 : ce(M);
|
|
3253
3497
|
}, ["stop"]))
|
|
3254
3498
|
},
|
|
3255
3499
|
[
|
|
3256
|
-
|
|
3500
|
+
O.value ? (C(), N(Ut(O.value), {
|
|
3257
3501
|
key: 0,
|
|
3258
3502
|
class: "maz-text-2xl"
|
|
3259
|
-
})) :
|
|
3260
|
-
|
|
3261
|
-
|
|
3503
|
+
})) : B("v-if", !0),
|
|
3504
|
+
V("div", zn, [
|
|
3505
|
+
V(
|
|
3262
3506
|
"p",
|
|
3263
3507
|
Tn,
|
|
3264
|
-
Z(
|
|
3508
|
+
Z(v.message),
|
|
3265
3509
|
1
|
|
3266
3510
|
/* TEXT */
|
|
3267
3511
|
)
|
|
3268
3512
|
]),
|
|
3269
|
-
|
|
3513
|
+
v.action ? (C(), N(x(i), {
|
|
3270
3514
|
key: 1,
|
|
3271
3515
|
"data-test": "action-btn",
|
|
3272
|
-
color:
|
|
3516
|
+
color: v.type,
|
|
3273
3517
|
pastel: "",
|
|
3274
|
-
loading:
|
|
3518
|
+
loading: L.value,
|
|
3275
3519
|
size: "sm",
|
|
3276
|
-
onClick:
|
|
3520
|
+
onClick: S[0] || (S[0] = Y((M) => v.action ? de(v.action.func, M) : void 0, ["stop"]))
|
|
3277
3521
|
}, {
|
|
3278
|
-
default:
|
|
3522
|
+
default: q(() => [
|
|
3279
3523
|
Q(
|
|
3280
|
-
Z(
|
|
3524
|
+
Z(v.action.text),
|
|
3281
3525
|
1
|
|
3282
3526
|
/* TEXT */
|
|
3283
3527
|
)
|
|
3284
3528
|
]),
|
|
3285
3529
|
_: 1
|
|
3286
3530
|
/* STABLE */
|
|
3287
|
-
}, 8, ["color", "loading"])) :
|
|
3288
|
-
|
|
3531
|
+
}, 8, ["color", "loading"])) : B("v-if", !0),
|
|
3532
|
+
v.link ? (C(), N(x(i), {
|
|
3289
3533
|
key: 2,
|
|
3290
3534
|
"data-test": "link-btn",
|
|
3291
|
-
color:
|
|
3535
|
+
color: v.type,
|
|
3292
3536
|
pastel: "",
|
|
3293
3537
|
size: "xs",
|
|
3294
|
-
href:
|
|
3295
|
-
target:
|
|
3538
|
+
href: v.link.href,
|
|
3539
|
+
target: v.link.target ?? "_self"
|
|
3296
3540
|
}, {
|
|
3297
|
-
default:
|
|
3298
|
-
var
|
|
3541
|
+
default: q(() => {
|
|
3542
|
+
var M;
|
|
3299
3543
|
return [
|
|
3300
|
-
|
|
3301
|
-
|
|
3544
|
+
V("div", Ln, [
|
|
3545
|
+
v.link.text ? (C(), U(
|
|
3302
3546
|
"span",
|
|
3303
|
-
|
|
3304
|
-
Z(
|
|
3547
|
+
kn,
|
|
3548
|
+
Z(v.link.text),
|
|
3305
3549
|
1
|
|
3306
3550
|
/* TEXT */
|
|
3307
|
-
)) :
|
|
3308
|
-
((
|
|
3551
|
+
)) : B("v-if", !0),
|
|
3552
|
+
((M = v.link) == null ? void 0 : M.target) === "_blank" ? (C(), N(x(a), {
|
|
3309
3553
|
key: 1,
|
|
3310
3554
|
class: "maz-text-xl"
|
|
3311
|
-
})) : (C(), N(
|
|
3555
|
+
})) : (C(), N(x(f), {
|
|
3312
3556
|
key: 2,
|
|
3313
3557
|
class: "maz-text-xl"
|
|
3314
3558
|
}))
|
|
@@ -3317,56 +3561,56 @@ const mo = {
|
|
|
3317
3561
|
}),
|
|
3318
3562
|
_: 1
|
|
3319
3563
|
/* STABLE */
|
|
3320
|
-
}, 8, ["color", "href", "target"])) :
|
|
3321
|
-
|
|
3564
|
+
}, 8, ["color", "href", "target"])) : B("v-if", !0),
|
|
3565
|
+
v.persistent ? B("v-if", !0) : (C(), U("button", {
|
|
3322
3566
|
key: 3,
|
|
3323
3567
|
class: "--close",
|
|
3324
|
-
onClick:
|
|
3568
|
+
onClick: S[1] || (S[1] = Y((M) => ce(M), ["stop"]))
|
|
3325
3569
|
}, [
|
|
3326
|
-
J(
|
|
3570
|
+
J(x(r), { class: "--icon maz-text-xl" })
|
|
3327
3571
|
])),
|
|
3328
|
-
typeof
|
|
3329
|
-
|
|
3572
|
+
typeof v.timeout == "number" && v.timeout > 0 ? (C(), U("div", Cn, [
|
|
3573
|
+
V(
|
|
3330
3574
|
"div",
|
|
3331
3575
|
{
|
|
3332
|
-
style:
|
|
3333
|
-
width:
|
|
3576
|
+
style: Wt({
|
|
3577
|
+
width: ue.value
|
|
3334
3578
|
}),
|
|
3335
|
-
class:
|
|
3579
|
+
class: ge(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", Me()])
|
|
3336
3580
|
},
|
|
3337
3581
|
null,
|
|
3338
3582
|
6
|
|
3339
3583
|
/* CLASS, STYLE */
|
|
3340
3584
|
)
|
|
3341
|
-
])) :
|
|
3585
|
+
])) : B("v-if", !0)
|
|
3342
3586
|
],
|
|
3343
3587
|
34
|
|
3344
3588
|
/* CLASS, NEED_HYDRATION */
|
|
3345
3589
|
), [
|
|
3346
|
-
[lt,
|
|
3590
|
+
[lt, g.value]
|
|
3347
3591
|
])
|
|
3348
3592
|
]),
|
|
3349
3593
|
_: 1
|
|
3350
3594
|
/* STABLE */
|
|
3351
3595
|
}, 8, ["name"]));
|
|
3352
3596
|
}
|
|
3353
|
-
}),
|
|
3597
|
+
}), An = /* @__PURE__ */ Pe(In, [["__scopeId", "data-v-eaf59fd1"]]), Sn = {
|
|
3354
3598
|
position: "bottom-right",
|
|
3355
3599
|
timeout: 1e4,
|
|
3356
3600
|
persistent: !1,
|
|
3357
3601
|
icon: !0
|
|
3358
3602
|
};
|
|
3359
|
-
class
|
|
3603
|
+
class xn {
|
|
3360
3604
|
constructor(e, t) {
|
|
3361
3605
|
this.app = e, this.globalOptions = t;
|
|
3362
3606
|
}
|
|
3363
3607
|
show(e, t) {
|
|
3364
3608
|
const n = {
|
|
3365
|
-
...
|
|
3609
|
+
...Sn,
|
|
3366
3610
|
...this.globalOptions,
|
|
3367
3611
|
...t,
|
|
3368
3612
|
message: e
|
|
3369
|
-
}, { destroy: o, vNode: i } =
|
|
3613
|
+
}, { destroy: o, vNode: i } = _e(An, {
|
|
3370
3614
|
props: n,
|
|
3371
3615
|
app: this.app
|
|
3372
3616
|
});
|
|
@@ -3400,112 +3644,113 @@ class Sn {
|
|
|
3400
3644
|
return this.show(e, this.getLocalOptions("warning", t));
|
|
3401
3645
|
}
|
|
3402
3646
|
}
|
|
3403
|
-
function
|
|
3404
|
-
return new
|
|
3647
|
+
function On(s, e) {
|
|
3648
|
+
return new xn(s, e);
|
|
3405
3649
|
}
|
|
3406
|
-
const
|
|
3650
|
+
const ho = {
|
|
3407
3651
|
install(s, e) {
|
|
3408
|
-
s.provide("toast",
|
|
3652
|
+
s.provide("toast", On(s, e));
|
|
3409
3653
|
}
|
|
3410
|
-
},
|
|
3411
|
-
function On(s) {
|
|
3412
|
-
return s.filter((e, t, n) => t === n.indexOf(e));
|
|
3413
|
-
}
|
|
3654
|
+
}, re = "";
|
|
3414
3655
|
function Dn(s) {
|
|
3415
|
-
return
|
|
3656
|
+
return s.filter((e, t, n) => t === n.indexOf(e));
|
|
3416
3657
|
}
|
|
3417
|
-
|
|
3418
|
-
function
|
|
3419
|
-
return (e = ae) => On([...s, e]);
|
|
3658
|
+
function Pn(s) {
|
|
3659
|
+
return (e = re) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
|
|
3420
3660
|
}
|
|
3661
|
+
const Mn = (s) => s.length > 0;
|
|
3421
3662
|
function $n(s) {
|
|
3422
|
-
return (e =
|
|
3663
|
+
return (e = re) => Dn([...s, e]);
|
|
3664
|
+
}
|
|
3665
|
+
function Vn(s) {
|
|
3666
|
+
return (e = re) => s.filter((t) => t !== e);
|
|
3423
3667
|
}
|
|
3424
3668
|
class Hn {
|
|
3425
3669
|
constructor() {
|
|
3426
|
-
d(this, "_loaders",
|
|
3670
|
+
d(this, "_loaders", w([]));
|
|
3427
3671
|
}
|
|
3428
3672
|
get loaders() {
|
|
3429
|
-
return
|
|
3673
|
+
return p(() => this._loaders.value);
|
|
3430
3674
|
}
|
|
3431
|
-
stop(e =
|
|
3432
|
-
this._loaders.value =
|
|
3675
|
+
stop(e = re) {
|
|
3676
|
+
this._loaders.value = Vn(this._loaders.value)(e);
|
|
3433
3677
|
}
|
|
3434
|
-
start(e =
|
|
3435
|
-
return this._loaders.value =
|
|
3678
|
+
start(e = re) {
|
|
3679
|
+
return this._loaders.value = $n(this._loaders.value)(e), () => this.stop(e);
|
|
3436
3680
|
}
|
|
3437
3681
|
get anyLoading() {
|
|
3438
|
-
return
|
|
3682
|
+
return p(() => Mn(this._loaders.value));
|
|
3439
3683
|
}
|
|
3440
|
-
isLoading(e =
|
|
3441
|
-
return
|
|
3684
|
+
isLoading(e = re) {
|
|
3685
|
+
return p(() => Pn(this._loaders.value)(e)).value;
|
|
3442
3686
|
}
|
|
3443
3687
|
}
|
|
3444
|
-
const
|
|
3688
|
+
const Bn = new Hn(), vo = {
|
|
3445
3689
|
install: (s) => {
|
|
3446
|
-
s.provide("wait",
|
|
3690
|
+
s.provide("wait", Bn);
|
|
3447
3691
|
}
|
|
3448
3692
|
};
|
|
3449
3693
|
export {
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3694
|
+
mo as $,
|
|
3695
|
+
Ps as A,
|
|
3696
|
+
Us as B,
|
|
3697
|
+
qs as C,
|
|
3698
|
+
Rs as D,
|
|
3699
|
+
ao as E,
|
|
3456
3700
|
Zs as F,
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3701
|
+
Ys as G,
|
|
3702
|
+
uo as H,
|
|
3703
|
+
Gs as I,
|
|
3704
|
+
tn as J,
|
|
3705
|
+
nn as K,
|
|
3706
|
+
rn as L,
|
|
3707
|
+
ct as M,
|
|
3464
3708
|
no as N,
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3709
|
+
oo as O,
|
|
3710
|
+
ms as P,
|
|
3711
|
+
F as Q,
|
|
3712
|
+
_e as R,
|
|
3713
|
+
Ge as S,
|
|
3714
|
+
io as T,
|
|
3715
|
+
$s as U,
|
|
3716
|
+
Es as V,
|
|
3717
|
+
ro as W,
|
|
3718
|
+
Ms as X,
|
|
3719
|
+
ks as Y,
|
|
3720
|
+
ln as Z,
|
|
3721
|
+
Pe as _,
|
|
3722
|
+
qn as a,
|
|
3723
|
+
co as a0,
|
|
3724
|
+
En as a1,
|
|
3481
3725
|
fo as a2,
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3726
|
+
ho as a3,
|
|
3727
|
+
xn as a4,
|
|
3728
|
+
Bn as a5,
|
|
3729
|
+
vo as a6,
|
|
3730
|
+
Hn as a7,
|
|
3486
3731
|
Un as b,
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3732
|
+
Wn as c,
|
|
3733
|
+
Rn as d,
|
|
3734
|
+
_n as e,
|
|
3735
|
+
Kn as f,
|
|
3736
|
+
hs as g,
|
|
3737
|
+
Yn as h,
|
|
3738
|
+
De as i,
|
|
3739
|
+
Zn as j,
|
|
3740
|
+
Xn as k,
|
|
3741
|
+
vs as l,
|
|
3497
3742
|
Gn as m,
|
|
3498
|
-
|
|
3499
|
-
|
|
3743
|
+
Qn as n,
|
|
3744
|
+
Ls as o,
|
|
3500
3745
|
Jn as p,
|
|
3501
3746
|
eo as q,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3747
|
+
to as r,
|
|
3748
|
+
_t as s,
|
|
3749
|
+
lo as t,
|
|
3750
|
+
jn as u,
|
|
3751
|
+
Is as v,
|
|
3752
|
+
As as w,
|
|
3753
|
+
Os as x,
|
|
3754
|
+
Ds as y,
|
|
3755
|
+
so as z
|
|
3511
3756
|
};
|