maz-ui 3.47.1 → 3.47.2-beta.10
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 +82 -90
- package/components/MazAnimatedCounter.d.ts +16 -32
- package/components/MazAnimatedCounter.mjs +27 -29
- package/components/MazAvatar.d.ts +2 -1
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +2 -1
- package/components/MazBadge.d.ts +7 -2
- package/components/MazBadge.mjs +1 -1
- package/components/MazBottomSheet.d.ts +2 -1
- 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/MazChart.d.ts +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazCheckbox.d.ts +4 -3
- package/components/MazCheckbox.mjs +74 -70
- package/components/MazChecklist.d.ts +2 -5
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +19 -66
- package/components/MazCircularProgressBar.mjs +47 -52
- package/components/MazDialog.d.ts +5 -3
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +25 -3
- package/components/MazDropdown.mjs +2 -348
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazExpandAnimation.d.ts +6 -5
- package/components/MazExpandAnimation.mjs +27 -31
- package/components/MazFullscreenLoader.d.ts +2 -1
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +14 -13
- package/components/MazInput.d.ts +16 -3
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +1 -1
- package/components/MazInputCode.mjs +26 -30
- 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 +19 -31
- 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 +29 -53
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
- package/components/MazPhoneNumberInput.d.ts +6 -5
- 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 +27 -37
- package/components/MazRadioButtons.d.ts +1 -1
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazSlider.mjs +107 -116
- 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 +20 -27
- package/components/MazTable.d.ts +38 -55
- 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 +7 -7
- package/components/MazTextarea.d.ts +58 -32
- package/components/MazTextarea.mjs +125 -107
- 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/MazBadge.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/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/MazLink.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/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-CNSfzYq-.mjs → MazBadge-CupQjB8D.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-D9EPpEV8.mjs} +28 -29
- package/components/chunks/MazBtn-BSgCMRt0.mjs +103 -0
- package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
- package/components/chunks/MazBtn-BfIn7glE.mjs +103 -0
- package/components/chunks/MazBtn-Br3xKJMD.mjs +103 -0
- package/components/chunks/MazBtn-CB6xVwox.mjs +103 -0
- package/components/chunks/MazBtn-CIAdgMGr.mjs +111 -0
- package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +103 -0
- package/components/chunks/MazBtn-Chk7DWOF.mjs +103 -0
- package/components/chunks/MazBtn-Ck84sP9a.mjs +103 -0
- package/components/chunks/MazBtn-DI80W9rl.mjs +103 -0
- package/components/chunks/MazBtn-DhSKmF01.mjs +103 -0
- package/components/chunks/MazBtn-DzwuLea3.mjs +103 -0
- package/components/chunks/MazBtn-tOUtVpek.mjs +103 -0
- package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-XBaeDZkg.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-COTaKhKF.mjs} +20 -21
- package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-B-Sw22La.mjs} +63 -60
- package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-DjY15PA3.mjs} +63 -58
- package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-DxfneUvu.mjs} +63 -59
- package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-DaozZlNb.mjs} +160 -166
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-XiX9LEiz.mjs} +66 -81
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +488 -0
- package/components/chunks/MazDropdown-CKuIGitT.mjs +427 -0
- package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
- package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-BooLoRWi.mjs} +247 -208
- package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-DUOQamrE.mjs} +265 -226
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
- package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
- package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-DFW4cVVf.mjs} +4 -3
- package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
- package/components/chunks/MazInput-BWAWlxDa.mjs +314 -0
- package/components/chunks/MazInput-DIN1VAoX.mjs +325 -0
- package/components/chunks/MazInput-HLPtw5QK.mjs +313 -0
- package/components/chunks/MazInputNumber-7Ku2ZcG-.mjs +601 -0
- package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-C5yErBFP.mjs} +199 -176
- package/components/chunks/MazInputTags-DvbQ2mK8.mjs +614 -0
- package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
- package/components/chunks/MazLink-mrqHeBS0.mjs +67 -0
- package/components/chunks/MazLoadingBar-CNm3Yt6D.mjs +36 -0
- package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
- package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +597 -613
- package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
- package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
- package/components/chunks/MazSelect-DOexatNj.mjs +871 -0
- package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-DaDRzcT_.mjs} +172 -188
- package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
- package/components/chunks/MazSpinner-BJpv1muf.mjs +34 -0
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
- package/components/chunks/MazSpinner-C30YfScc.mjs +34 -0
- package/components/chunks/MazSpinner-C5mnD76l.mjs +34 -0
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-CDx6lo7l.mjs} +1 -1
- package/components/chunks/MazSpinner-C_GueolV.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-Cc-KlPEG.mjs} +1 -1
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +34 -0
- package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-CkKIUYXO.mjs} +1 -1
- package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-CxyUHAvm.mjs} +1 -1
- package/components/chunks/MazSpinner-DROgQW2M.mjs +34 -0
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-DjUU4G1h.mjs} +1 -1
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +34 -0
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +34 -0
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-b90e3OQK.mjs} +1 -1
- package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
- package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-Ci8nhgOP.mjs} +199 -239
- package/components/chunks/MazTableCell-BIganK6X.mjs +23 -0
- package/components/chunks/MazTableRow-CIO-x6Lb.mjs +30 -0
- package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-OEgTPQB3.mjs} +4 -4
- package/components/chunks/MazTabsBar-CT35SCIK.mjs +177 -0
- package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-Bcwdl9g2.mjs} +8 -8
- package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-0CRjeBvn.mjs +103 -0
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +1 -0
- package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
- package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
- package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-DersvZQw.cjs} +1 -1
- package/modules/chunks/index-DvromXrX.cjs +124 -0
- package/modules/chunks/{index-C2yAjM0P.mjs → index-Kry9j5uD.mjs} +948 -944
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +22 -21
- 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 +2 -1
- package/types/components/MazBadge.vue.d.ts +7 -2
- package/types/components/MazBottomSheet.vue.d.ts +2 -1
- 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/MazChart.vue.d.ts +1 -1
- 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 +19 -66
- package/types/components/MazDialog.vue.d.ts +5 -3
- package/types/components/MazDrawer.vue.d.ts +2 -1
- 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 +16 -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 +29 -53
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
- package/types/components/MazPhoneNumberInput.vue.d.ts +6 -5
- 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 +1 -1
- 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 +38 -55
- 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 +9 -5
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +4 -4
- package/types/modules/composables/useFormValidator/utils.d.ts +17 -17
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +7 -7
- package/types/modules/helpers/check-availability.d.ts +1 -0
- package/types/modules/helpers/inject-strict.d.ts +2 -1
- package/types/tailwindcss/variables/colors.d.ts +2 -0
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BRnLMzhy.mjs +0 -118
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-CnqRnXh_.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D6Jxw9Nr.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DlD5m7T4.mjs +0 -118
- package/components/chunks/MazBtn-Dt8lr0GH.mjs +0 -118
- package/components/chunks/MazBtn-DzBXfedt.mjs +0 -123
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazBtn-TkePGm5o.mjs +0 -118
- package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazExpandAnimation-Bkw_wFTi.mjs +0 -58
- package/components/chunks/MazInput-CBiCdd0F.mjs +0 -302
- package/components/chunks/MazInput-Dx2cCzFS.mjs +0 -290
- package/components/chunks/MazInput-O6Q41Fm0.mjs +0 -291
- package/components/chunks/MazInputNumber-DYPVUz4k.mjs +0 -593
- package/components/chunks/MazInputTags-CxXBsTdM.mjs +0 -605
- package/components/chunks/MazLink-Dl9ePCGm.mjs +0 -79
- package/components/chunks/MazLoadingBar-Di2OIrPD.mjs +0 -32
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazPicker-BcQ_-AJH.mjs +0 -2477
- package/components/chunks/MazSelect-BXzgSKmL.mjs +0 -863
- package/components/chunks/MazSpinner-Cg26sBU2.mjs +0 -34
- package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
- package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
- package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
- package/components/chunks/MazSpinner-DlMKBtyt.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-M4r0cykl.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
- package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTableCell-BXDbkEJq.mjs +0 -23
- package/components/chunks/MazTableRow-Ds3CDEit.mjs +0 -30
- package/components/chunks/MazTabsBar-MZYefBb8.mjs +0 -204
- package/modules/chunks/MazBtn-CTqI4qhg.mjs +0 -118
- package/modules/chunks/MazBtn-D_CpNgpD.cjs +0 -9
- package/modules/chunks/index-BIX1NMzX.cjs +0 -149
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '../assets/index.css';var
|
|
2
|
-
var
|
|
3
|
-
var d = (s, e, t) =>
|
|
4
|
-
import { inject as
|
|
5
|
-
function
|
|
6
|
-
const t =
|
|
1
|
+
import '../assets/index.css';var Pt = Object.defineProperty;
|
|
2
|
+
var Mt = (s, e, t) => e in s ? Pt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var d = (s, e, t) => Mt(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { inject as ot, ref as y, onMounted as ue, onUnmounted as it, computed as f, toValue as ae, nextTick as Ue, getCurrentInstance as $t, watch as X, provide as Ht, useId as Vt, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ge, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as _, withModifiers as Y, withKeys as Nt, unref as A, createCommentVNode as V, createElementVNode as B, normalizeClass as le, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as U, mergeProps as ee, renderSlot as q, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as Ut, resolveDynamicComponent as _t, normalizeStyle as qt } from "vue";
|
|
5
|
+
function Oe(s, e) {
|
|
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 Fn() {
|
|
12
|
+
return Oe("aos");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Wt(s) {
|
|
15
15
|
const e = {};
|
|
16
16
|
for (const [t, n] of Object.entries(s))
|
|
17
17
|
e[t] = Number.parseInt(n, 10);
|
|
@@ -20,7 +20,7 @@ function jt(s) {
|
|
|
20
20
|
function F() {
|
|
21
21
|
return typeof document < "u";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Rt(s = {}) {
|
|
24
24
|
const {
|
|
25
25
|
internalWindow: e = F() ? window : void 0,
|
|
26
26
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
@@ -30,13 +30,13 @@ function Ut(s = {}) {
|
|
|
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(), ue(() => {
|
|
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 jn({
|
|
40
40
|
initialWidth: s = 0,
|
|
41
41
|
initialHeight: e,
|
|
42
42
|
includeScrollbar: t,
|
|
@@ -46,14 +46,14 @@ function Bn({
|
|
|
46
46
|
mediumBreakPoint: r = "md",
|
|
47
47
|
largeBreakPoint: a = "lg"
|
|
48
48
|
}) {
|
|
49
|
-
const { width: u } =
|
|
49
|
+
const { width: u } = Rt({
|
|
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
|
-
}), l =
|
|
56
|
+
}), l = Wt(i), h = f(() => u.value >= l[a]), g = f(
|
|
57
57
|
() => u.value >= l[r] && u.value < l[a]
|
|
58
58
|
), E = f(() => u.value >= 0 && u.value < l[r]);
|
|
59
59
|
return {
|
|
@@ -61,14 +61,14 @@ function Bn({
|
|
|
61
61
|
numericBreakpoints: l,
|
|
62
62
|
isSmallScreen: E,
|
|
63
63
|
isLargeScreen: h,
|
|
64
|
-
isMediumScreen:
|
|
64
|
+
isMediumScreen: g,
|
|
65
65
|
breakpoints: i
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function Un() {
|
|
69
|
+
return Oe("dialog");
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ct(s, e, t) {
|
|
72
72
|
const n = {
|
|
73
73
|
maxAttempts: 20,
|
|
74
74
|
interval: 100,
|
|
@@ -77,38 +77,38 @@ function _t(s, e, t) {
|
|
|
77
77
|
let o = 0;
|
|
78
78
|
function i() {
|
|
79
79
|
const r = s();
|
|
80
|
-
r != null ? e(r) : o < n.maxAttempts ? (o++, setTimeout(i, n.interval)) : console.warn(n.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${n.maxAttempts} attempts for ref ${r}`);
|
|
80
|
+
r != null ? n.expectedValue !== void 0 && r !== n.expectedValue ? o < n.maxAttempts ? (o++, setTimeout(i, n.interval)) : console.warn(n.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${n.maxAttempts} attempts for ref ${r}`) : e(r) : o < n.maxAttempts ? (o++, setTimeout(i, n.interval)) : console.warn(n.errorMessage || `[maz-ui](checkAvailability) Nothing found or expected value after ${n.maxAttempts} attempts for ref ${r}`);
|
|
81
81
|
}
|
|
82
82
|
i();
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
const e =
|
|
84
|
+
function dt(s) {
|
|
85
|
+
const e = ae(s);
|
|
86
86
|
return Array.isArray(e) ? Object.freeze([...e]) : typeof e == "object" && e !== null ? Object.freeze({ ...e }) : e;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ze(s) {
|
|
89
89
|
return s == null || typeof s == "string" || typeof s == "number" || typeof s == "boolean" || typeof s == "symbol" || typeof s == "bigint";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
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 (!ye(n, e[t]))
|
|
96
96
|
return !1;
|
|
97
97
|
return !0;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Yt(s, e) {
|
|
100
100
|
const t = Object.keys(s), n = Object.keys(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) || !ye(s[o], e[o]))
|
|
105
105
|
return !1;
|
|
106
106
|
return !0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function ye(s, e) {
|
|
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
|
-
function
|
|
111
|
+
function Zt(s, e, t) {
|
|
112
112
|
const n = {};
|
|
113
113
|
return async function(...o) {
|
|
114
114
|
n[s] || (n[s] = { timer: null, promise: null });
|
|
@@ -126,7 +126,7 @@ function Rt(s, e, t) {
|
|
|
126
126
|
}), i.promise;
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Xt(s, e, t) {
|
|
130
130
|
const n = {};
|
|
131
131
|
return async (...o) => {
|
|
132
132
|
const i = Date.now();
|
|
@@ -148,14 +148,14 @@ const te = {
|
|
|
148
148
|
debounceTime: 300,
|
|
149
149
|
throttleTime: 1e3
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function mt(s, e) {
|
|
152
152
|
return Object.keys(e).includes(s);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Xe(s = te.scrollToErrorSelector) {
|
|
155
155
|
const e = document.querySelector(s);
|
|
156
156
|
e && e.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Gt(s, e) {
|
|
159
159
|
const t = {};
|
|
160
160
|
for (const [n, o] of Object.entries(s)) {
|
|
161
161
|
const i = o;
|
|
@@ -163,37 +163,38 @@ function Yt(s, e) {
|
|
|
163
163
|
}
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function _e(s) {
|
|
167
167
|
return s == null || s === "";
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Qt({
|
|
170
170
|
name: s,
|
|
171
171
|
hasValidation: e,
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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;
|
|
189
|
+
}
|
|
190
|
+
function ft({
|
|
190
191
|
name: s,
|
|
191
192
|
schema: e,
|
|
192
193
|
initialValue: t,
|
|
193
194
|
fieldState: n,
|
|
194
195
|
options: o
|
|
195
196
|
}) {
|
|
196
|
-
const i = e ?
|
|
197
|
+
const i = e ? mt(s, e) : !1, r = Qt({
|
|
197
198
|
name: s,
|
|
198
199
|
hasValidation: i,
|
|
199
200
|
debouncedFields: o == null ? void 0 : o.debouncedFields,
|
|
@@ -207,12 +208,12 @@ function ct({
|
|
|
207
208
|
valid: !i,
|
|
208
209
|
validating: !1,
|
|
209
210
|
validated: !1,
|
|
210
|
-
initialValue:
|
|
211
|
+
initialValue: dt(t),
|
|
211
212
|
validateFunction: r,
|
|
212
213
|
mode: i ? (o == null ? void 0 : o.mode) ?? (n == null ? void 0 : n.mode) ?? te.mode : void 0
|
|
213
214
|
};
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function Jt({
|
|
216
217
|
schema: s,
|
|
217
218
|
payload: e,
|
|
218
219
|
options: t
|
|
@@ -220,7 +221,7 @@ function Xt({
|
|
|
220
221
|
const n = {};
|
|
221
222
|
for (const o in s) {
|
|
222
223
|
const i = o;
|
|
223
|
-
n[i] =
|
|
224
|
+
n[i] = ft({
|
|
224
225
|
name: i,
|
|
225
226
|
schema: s,
|
|
226
227
|
options: t,
|
|
@@ -230,7 +231,7 @@ function Xt({
|
|
|
230
231
|
}
|
|
231
232
|
return n;
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function es({
|
|
234
235
|
fieldsStates: s,
|
|
235
236
|
payload: e,
|
|
236
237
|
schema: t,
|
|
@@ -239,7 +240,7 @@ function Gt({
|
|
|
239
240
|
}) {
|
|
240
241
|
for (const i in t) {
|
|
241
242
|
const r = i;
|
|
242
|
-
s[r] =
|
|
243
|
+
s[r] = ht({
|
|
243
244
|
name: r,
|
|
244
245
|
fieldState: s[r],
|
|
245
246
|
payload: e,
|
|
@@ -249,7 +250,7 @@ function Gt({
|
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
+
function ht({
|
|
253
254
|
name: s,
|
|
254
255
|
fieldState: e,
|
|
255
256
|
payload: t,
|
|
@@ -257,7 +258,7 @@ function dt({
|
|
|
257
258
|
options: o,
|
|
258
259
|
updateMode: i = !0
|
|
259
260
|
}) {
|
|
260
|
-
const { initialValue: r, mode: a, ...u } =
|
|
261
|
+
const { initialValue: r, mode: a, ...u } = ft({
|
|
261
262
|
name: s,
|
|
262
263
|
schema: n,
|
|
263
264
|
initialValue: o.defaultValue ?? t[s],
|
|
@@ -271,27 +272,27 @@ function dt({
|
|
|
271
272
|
...e != null && e.mode && l !== e.mode ? u : {}
|
|
272
273
|
};
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
+
function ts(s) {
|
|
275
276
|
const e = {};
|
|
276
277
|
for (const [t, { errors: n }] of Object.entries(s))
|
|
277
278
|
e[t] = n;
|
|
278
279
|
return e;
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
+
function ss(s) {
|
|
281
282
|
return s instanceof HTMLInputElement || s instanceof HTMLSelectElement || s instanceof HTMLTextAreaElement ? [s] : s.querySelectorAll(
|
|
282
283
|
"input, select, textarea"
|
|
283
284
|
);
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function ns({
|
|
286
287
|
interactiveElements: s,
|
|
287
288
|
onBlurHandler: e,
|
|
288
289
|
mode: t
|
|
289
290
|
}) {
|
|
290
291
|
s.forEach((n) => {
|
|
291
|
-
|
|
292
|
+
be(["eager", "blur", "progressive"], t) && n.addEventListener("blur", e);
|
|
292
293
|
});
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function os({
|
|
295
296
|
interactiveElements: s,
|
|
296
297
|
onBlurHandler: e
|
|
297
298
|
}) {
|
|
@@ -299,14 +300,14 @@ function ts({
|
|
|
299
300
|
t.removeEventListener("blur", e);
|
|
300
301
|
});
|
|
301
302
|
}
|
|
302
|
-
async function
|
|
303
|
-
const n = await
|
|
303
|
+
async function is(s, e, t) {
|
|
304
|
+
const n = await ds(e), i = await (await gt("safeParseAsync"))(n.entries[s], t ?? "");
|
|
304
305
|
return {
|
|
305
306
|
result: i,
|
|
306
307
|
isValid: i.success
|
|
307
308
|
};
|
|
308
309
|
}
|
|
309
|
-
async function
|
|
310
|
+
async function pe({
|
|
310
311
|
name: s,
|
|
311
312
|
fieldState: e,
|
|
312
313
|
schema: t,
|
|
@@ -314,14 +315,14 @@ async function he({
|
|
|
314
315
|
setError: o = !0,
|
|
315
316
|
setErrorIfInvalidAndNotEmpty: i = !1
|
|
316
317
|
}) {
|
|
317
|
-
if (await
|
|
318
|
+
if (await Ue(), 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
|
-
const { result: r, isValid: a } = await
|
|
322
|
-
e.valid = a, (o || i && !a && !
|
|
322
|
+
const { result: r, isValid: a } = await is(s, t, n[s]);
|
|
323
|
+
e.valid = a, (o || i && !a && !_e(n[s])) && (e.error = !a), e.errors = r.issues ?? [], e.validating = !1, e.validated = !0;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function vt({
|
|
325
326
|
name: s,
|
|
326
327
|
fieldState: e,
|
|
327
328
|
payload: t,
|
|
@@ -337,7 +338,7 @@ function mt({
|
|
|
337
338
|
};
|
|
338
339
|
return (i = e.validateFunction) == null ? void 0 : i.call(e, o);
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function rs({
|
|
341
342
|
fieldsStates: s,
|
|
342
343
|
payload: e,
|
|
343
344
|
showErrors: t = !0,
|
|
@@ -345,7 +346,7 @@ function ns({
|
|
|
345
346
|
}) {
|
|
346
347
|
return Promise.all(
|
|
347
348
|
Object.keys(s).map(
|
|
348
|
-
(o) =>
|
|
349
|
+
(o) => pe({
|
|
349
350
|
name: o,
|
|
350
351
|
setError: t,
|
|
351
352
|
fieldState: s[o],
|
|
@@ -356,15 +357,15 @@ function ns({
|
|
|
356
357
|
)
|
|
357
358
|
);
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function pt({
|
|
360
361
|
eventName: s,
|
|
361
362
|
fieldState: e,
|
|
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" && (be(["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
|
-
function
|
|
368
|
+
function as({
|
|
368
369
|
name: s,
|
|
369
370
|
force: e = !1,
|
|
370
371
|
payload: t,
|
|
@@ -372,16 +373,16 @@ function os({
|
|
|
372
373
|
schema: o,
|
|
373
374
|
isSubmitted: i
|
|
374
375
|
}) {
|
|
375
|
-
const r = t[s], a = !
|
|
376
|
-
if (n.dirty = a, n.blurred = n.blurred || (n.mode === "eager" ? a : !0), !!(e ||
|
|
377
|
-
return
|
|
376
|
+
const r = t[s], a = !_e(r) && !ye(r, n.initialValue);
|
|
377
|
+
if (n.dirty = a, n.blurred = n.blurred || (n.mode === "eager" ? a : !0), !!(e || pt({ eventName: "blur", fieldState: n, isSubmitted: i })))
|
|
378
|
+
return vt({
|
|
378
379
|
name: s,
|
|
379
380
|
fieldState: n,
|
|
380
381
|
schema: o,
|
|
381
382
|
payload: t
|
|
382
383
|
});
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function ls({
|
|
385
386
|
name: s,
|
|
386
387
|
payload: e,
|
|
387
388
|
fieldState: t,
|
|
@@ -391,52 +392,52 @@ function is({
|
|
|
391
392
|
}) {
|
|
392
393
|
const r = e[s];
|
|
393
394
|
t.validated = !1;
|
|
394
|
-
const a = !
|
|
395
|
-
if (t.dirty = a, !!(i ||
|
|
396
|
-
return
|
|
395
|
+
const a = !_e(r) && !ye(r, t.initialValue);
|
|
396
|
+
if (t.dirty = a, !!(i || pt({ eventName: "input", fieldState: t, isSubmitted: o })))
|
|
397
|
+
return vt({
|
|
397
398
|
name: s,
|
|
398
399
|
fieldState: t,
|
|
399
400
|
schema: n,
|
|
400
401
|
payload: e
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
-
const e =
|
|
404
|
+
function qe(s) {
|
|
405
|
+
const e = $t();
|
|
405
406
|
if (!e)
|
|
406
407
|
throw new Error(`${s} must be called within setup()`);
|
|
407
408
|
return e;
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
+
function us(s, e) {
|
|
410
411
|
var o;
|
|
411
|
-
const n = ((o =
|
|
412
|
+
const n = ((o = qe(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;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
+
function cs({
|
|
417
418
|
ref: s,
|
|
418
419
|
fieldState: e,
|
|
419
420
|
onBlurHandler: t
|
|
420
421
|
}) {
|
|
421
|
-
if (!(s ||
|
|
422
|
+
if (!(s || be(["aggressive", "lazy"], e.mode)))
|
|
422
423
|
return {
|
|
423
424
|
onBlur: t
|
|
424
425
|
};
|
|
425
426
|
}
|
|
426
|
-
const
|
|
427
|
-
async function
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
427
|
+
const He = {};
|
|
428
|
+
async function gt(s) {
|
|
429
|
+
if (He[s])
|
|
430
|
+
return He[s];
|
|
430
431
|
const e = await import("./index-BgyjI1q8.mjs");
|
|
431
|
-
return
|
|
432
|
+
return He[s] = e[s], e[s];
|
|
432
433
|
}
|
|
433
|
-
async function
|
|
434
|
-
return (await
|
|
434
|
+
async function ds(s) {
|
|
435
|
+
return (await gt("objectAsync"))(s);
|
|
435
436
|
}
|
|
436
|
-
function
|
|
437
|
+
function be(s, e) {
|
|
437
438
|
return e ? s.includes(e) : !1;
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
+
function _n(s, e) {
|
|
440
441
|
const t = {
|
|
441
442
|
formIdentifier: "main-form-validator",
|
|
442
443
|
...e
|
|
@@ -447,20 +448,20 @@ function Nn(s, e) {
|
|
|
447
448
|
internalSchema: r,
|
|
448
449
|
errorMessages: a,
|
|
449
450
|
isSubmitted: u
|
|
450
|
-
} =
|
|
451
|
+
} = us(t.formIdentifier, "useFormField"), l = mt(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
|
|
451
452
|
t.mode = l;
|
|
452
453
|
const h = f(() => n.value[s]);
|
|
453
|
-
if (n.value[s] =
|
|
454
|
+
if (n.value[s] = ht({
|
|
454
455
|
name: s,
|
|
455
456
|
fieldState: h.value,
|
|
456
457
|
payload: o.value,
|
|
457
458
|
schema: r.value,
|
|
458
459
|
options: { ...i, ...t }
|
|
459
|
-
}), t.defaultValue !== void 0 && !
|
|
460
|
+
}), t.defaultValue !== void 0 && !ye(o.value[s], t.defaultValue)) {
|
|
460
461
|
const T = t.defaultValue;
|
|
461
|
-
o.value[s] = T, n.value[s].initialValue =
|
|
462
|
+
o.value[s] = T, n.value[s].initialValue = dt(T);
|
|
462
463
|
}
|
|
463
|
-
l &&
|
|
464
|
+
l && pe({
|
|
464
465
|
name: s,
|
|
465
466
|
fieldState: h.value,
|
|
466
467
|
payload: o.value,
|
|
@@ -468,8 +469,8 @@ function Nn(s, e) {
|
|
|
468
469
|
setError: l === "aggressive",
|
|
469
470
|
setErrorIfInvalidAndNotEmpty: l === "lazy"
|
|
470
471
|
});
|
|
471
|
-
function
|
|
472
|
-
|
|
472
|
+
function g() {
|
|
473
|
+
as({
|
|
473
474
|
name: s,
|
|
474
475
|
fieldState: h.value,
|
|
475
476
|
payload: o.value,
|
|
@@ -478,33 +479,33 @@ function Nn(s, e) {
|
|
|
478
479
|
});
|
|
479
480
|
}
|
|
480
481
|
const E = f(
|
|
481
|
-
() =>
|
|
482
|
+
() => cs({
|
|
482
483
|
ref: t.ref,
|
|
483
|
-
onBlurHandler:
|
|
484
|
+
onBlurHandler: g,
|
|
484
485
|
fieldState: h.value
|
|
485
486
|
})
|
|
486
487
|
);
|
|
487
|
-
if (t.ref &&
|
|
488
|
+
if (t.ref && be(["eager", "blur", "progressive"], l)) {
|
|
488
489
|
let T = [];
|
|
489
|
-
const
|
|
490
|
-
T =
|
|
490
|
+
const M = (I) => {
|
|
491
|
+
T = ss(I), ns({
|
|
491
492
|
interactiveElements: T,
|
|
492
|
-
onBlurHandler:
|
|
493
|
+
onBlurHandler: g,
|
|
493
494
|
mode: l
|
|
494
495
|
});
|
|
495
496
|
};
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
const
|
|
500
|
-
|
|
497
|
+
ue(() => {
|
|
498
|
+
const I = qe(`useFormField of ${s}`);
|
|
499
|
+
ct(() => I.refs[t.ref], (c) => {
|
|
500
|
+
const b = c instanceof HTMLElement ? c : c == null ? void 0 : c.$el;
|
|
501
|
+
b && M(b);
|
|
501
502
|
}, {
|
|
502
503
|
errorMessage: `[maz-ui](useFormField) No element found for ref ${t.ref} for field ${s}`
|
|
503
504
|
});
|
|
504
|
-
}),
|
|
505
|
-
|
|
505
|
+
}), it(() => {
|
|
506
|
+
os({
|
|
506
507
|
interactiveElements: T,
|
|
507
|
-
onBlurHandler:
|
|
508
|
+
onBlurHandler: g
|
|
508
509
|
});
|
|
509
510
|
});
|
|
510
511
|
}
|
|
@@ -525,8 +526,8 @@ function Nn(s, e) {
|
|
|
525
526
|
validationEvents: E
|
|
526
527
|
};
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
-
const o =
|
|
529
|
+
function qn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
530
|
+
const o = qe("useFormValidator"), i = {
|
|
530
531
|
mode: te.mode,
|
|
531
532
|
scrollToError: te.scrollToErrorSelector,
|
|
532
533
|
debouncedFields: null,
|
|
@@ -534,29 +535,29 @@ function jn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
|
534
535
|
identifier: "main-form-validator",
|
|
535
536
|
...n
|
|
536
537
|
}, r = y(e), a = y({ ...r.value, ...t == null ? void 0 : t.value }), u = y(s), l = y(
|
|
537
|
-
|
|
538
|
+
Jt({
|
|
538
539
|
schema: u.value,
|
|
539
540
|
payload: a.value,
|
|
540
541
|
options: i
|
|
541
542
|
})
|
|
542
|
-
), h = y(!1),
|
|
543
|
-
t &&
|
|
543
|
+
), h = y(!1), g = y(!1), E = f(() => Object.values(l.value).every(({ valid: L }) => L)), T = f(() => Object.values(l.value).some(({ dirty: L }) => L)), M = f(() => ts(l.value)), I = f(() => Gt(M.value, l.value));
|
|
544
|
+
t && X(
|
|
544
545
|
a,
|
|
545
|
-
(
|
|
546
|
-
t.value = { ...r.value, ...
|
|
546
|
+
(L) => {
|
|
547
|
+
t.value = { ...r.value, ...L };
|
|
547
548
|
},
|
|
548
549
|
{ deep: !0 }
|
|
549
|
-
),
|
|
550
|
+
), X(
|
|
550
551
|
r,
|
|
551
|
-
(
|
|
552
|
-
a.value = { ...
|
|
552
|
+
(L) => {
|
|
553
|
+
a.value = { ...L, ...a.value };
|
|
553
554
|
},
|
|
554
555
|
{ deep: !0 }
|
|
555
|
-
),
|
|
556
|
+
), X(
|
|
556
557
|
u,
|
|
557
|
-
(
|
|
558
|
-
|
|
559
|
-
schema:
|
|
558
|
+
(L) => {
|
|
559
|
+
es({
|
|
560
|
+
schema: L,
|
|
560
561
|
fieldsStates: l.value,
|
|
561
562
|
payload: a.value,
|
|
562
563
|
options: i
|
|
@@ -564,74 +565,79 @@ function jn({ schema: s, defaultValues: e, model: t, options: n }) {
|
|
|
564
565
|
},
|
|
565
566
|
{ deep: !0 }
|
|
566
567
|
), c();
|
|
567
|
-
function c(
|
|
568
|
-
return
|
|
568
|
+
function c(L = i.mode === "aggressive") {
|
|
569
|
+
return rs({
|
|
569
570
|
fieldsStates: l.value,
|
|
570
571
|
payload: a.value,
|
|
571
572
|
schema: u.value,
|
|
572
|
-
showErrors:
|
|
573
|
+
showErrors: L
|
|
573
574
|
});
|
|
574
575
|
}
|
|
575
|
-
const
|
|
576
|
-
async function
|
|
577
|
-
await
|
|
578
|
-
const
|
|
579
|
-
() => a.value[
|
|
576
|
+
const b = [];
|
|
577
|
+
async function O(L) {
|
|
578
|
+
await Ue();
|
|
579
|
+
const D = X(
|
|
580
|
+
() => a.value[L],
|
|
580
581
|
() => {
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
name:
|
|
584
|
-
fieldState:
|
|
582
|
+
const j = l.value[L];
|
|
583
|
+
ls({
|
|
584
|
+
name: L,
|
|
585
|
+
fieldState: j,
|
|
585
586
|
payload: a.value,
|
|
586
587
|
schema: u.value,
|
|
587
|
-
isSubmitted:
|
|
588
|
-
forceValidation:
|
|
588
|
+
isSubmitted: g.value,
|
|
589
|
+
forceValidation: be(["aggressive", "lazy", "progressive"], j.mode)
|
|
589
590
|
});
|
|
590
591
|
},
|
|
591
|
-
{ deep: typeof u.value[
|
|
592
|
+
{ deep: typeof u.value[L] == "object" }
|
|
592
593
|
);
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
function
|
|
596
|
-
for (const
|
|
597
|
-
|
|
598
|
-
for (const
|
|
599
|
-
|
|
600
|
-
}
|
|
601
|
-
function
|
|
602
|
-
return async (
|
|
603
|
-
if (
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
594
|
+
b.push(D);
|
|
595
|
+
}
|
|
596
|
+
function v() {
|
|
597
|
+
for (const L of b)
|
|
598
|
+
L();
|
|
599
|
+
for (const L of Object.keys(u.value))
|
|
600
|
+
O(L);
|
|
601
|
+
}
|
|
602
|
+
function S(L, D) {
|
|
603
|
+
return async (j) => {
|
|
604
|
+
if (j == null || j.preventDefault(), !h.value) {
|
|
605
|
+
g.value = !0, h.value = !0;
|
|
606
|
+
try {
|
|
607
|
+
await c(!0);
|
|
608
|
+
const se = typeof D == "string" ? D : i.scrollToError;
|
|
609
|
+
let G;
|
|
610
|
+
return E.value ? G = await L(a.value) : typeof se != "boolean" && Xe(se), h.value = !1, G;
|
|
611
|
+
} finally {
|
|
612
|
+
h.value = !1;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
609
615
|
};
|
|
610
616
|
}
|
|
611
|
-
const
|
|
617
|
+
const $ = {
|
|
612
618
|
fieldsStates: l,
|
|
613
619
|
payload: a,
|
|
614
620
|
options: i,
|
|
615
621
|
internalSchema: u,
|
|
616
|
-
errorMessages:
|
|
617
|
-
isSubmitted:
|
|
622
|
+
errorMessages: I,
|
|
623
|
+
isSubmitted: g
|
|
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, $), Ht(i.identifier, $), v(), {
|
|
620
626
|
identifier: i.identifier,
|
|
621
627
|
isDirty: T,
|
|
622
628
|
isSubmitting: h,
|
|
623
|
-
isSubmitted:
|
|
629
|
+
isSubmitted: g,
|
|
624
630
|
isValid: E,
|
|
625
|
-
errors:
|
|
631
|
+
errors: M,
|
|
626
632
|
model: a,
|
|
627
633
|
fieldsStates: l,
|
|
628
634
|
validateForm: c,
|
|
629
|
-
scrollToError:
|
|
630
|
-
handleSubmit:
|
|
631
|
-
errorMessages:
|
|
635
|
+
scrollToError: Xe,
|
|
636
|
+
handleSubmit: S,
|
|
637
|
+
errorMessages: I
|
|
632
638
|
};
|
|
633
639
|
}
|
|
634
|
-
class
|
|
640
|
+
class ms {
|
|
635
641
|
constructor(e, t) {
|
|
636
642
|
d(this, "defaultOptions", {
|
|
637
643
|
element: void 0,
|
|
@@ -738,20 +744,20 @@ class us {
|
|
|
738
744
|
e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
739
745
|
}
|
|
740
746
|
}
|
|
741
|
-
function
|
|
747
|
+
function Wn({
|
|
742
748
|
callback: s,
|
|
743
749
|
options: e
|
|
744
750
|
}) {
|
|
745
|
-
return new
|
|
751
|
+
return new ms(s, e);
|
|
746
752
|
}
|
|
747
|
-
function
|
|
753
|
+
function Rn({
|
|
748
754
|
componentName: s,
|
|
749
755
|
providedId: e
|
|
750
756
|
}) {
|
|
751
|
-
const t =
|
|
757
|
+
const t = Vt();
|
|
752
758
|
return f(() => e ?? `${s}-${t}`);
|
|
753
759
|
}
|
|
754
|
-
const
|
|
760
|
+
const fs = [
|
|
755
761
|
"af-ZA",
|
|
756
762
|
"sq-AL",
|
|
757
763
|
"ar-DZ",
|
|
@@ -889,9 +895,9 @@ const cs = [
|
|
|
889
895
|
"Lt-uz-UZ",
|
|
890
896
|
"vi-VN"
|
|
891
897
|
];
|
|
892
|
-
function
|
|
898
|
+
function hs(s, e) {
|
|
893
899
|
return f(() => {
|
|
894
|
-
const t =
|
|
900
|
+
const t = ae(e), n = ae(s);
|
|
895
901
|
try {
|
|
896
902
|
return !t || !n ? n : new Intl.DisplayNames([t], { type: "language" }).of(n) || n;
|
|
897
903
|
} catch {
|
|
@@ -899,9 +905,9 @@ function ds(s, e) {
|
|
|
899
905
|
}
|
|
900
906
|
});
|
|
901
907
|
}
|
|
902
|
-
function
|
|
908
|
+
function vs(s) {
|
|
903
909
|
return f(() => {
|
|
904
|
-
const e =
|
|
910
|
+
const e = ae(s);
|
|
905
911
|
if (!e)
|
|
906
912
|
return [];
|
|
907
913
|
const t = 65, n = 90, o = new Intl.DisplayNames([e], { type: "language" }), i = [];
|
|
@@ -916,15 +922,15 @@ function ms(s) {
|
|
|
916
922
|
return i;
|
|
917
923
|
});
|
|
918
924
|
}
|
|
919
|
-
function
|
|
925
|
+
function ps(s) {
|
|
920
926
|
return f(() => {
|
|
921
|
-
const e =
|
|
927
|
+
const e = ae(s);
|
|
922
928
|
if (!e)
|
|
923
929
|
return [];
|
|
924
930
|
const t = new Intl.DisplayNames([e], {
|
|
925
931
|
type: "language"
|
|
926
932
|
});
|
|
927
|
-
return
|
|
933
|
+
return fs.map((n) => {
|
|
928
934
|
try {
|
|
929
935
|
const o = t.of(n);
|
|
930
936
|
return !o || n.toLocaleLowerCase() === o.toLocaleLowerCase() ? void 0 : {
|
|
@@ -937,22 +943,22 @@ function fs(s) {
|
|
|
937
943
|
}).filter(Boolean);
|
|
938
944
|
});
|
|
939
945
|
}
|
|
940
|
-
function
|
|
946
|
+
function Kn(s) {
|
|
941
947
|
return {
|
|
942
|
-
getLanguageDisplayName: ({ isoCode: e, locale: t }) =>
|
|
943
|
-
getAllPossibleLanguages: (e) =>
|
|
944
|
-
getLanguageDisplayNamesForIsoCodes: (e) =>
|
|
948
|
+
getLanguageDisplayName: ({ isoCode: e, locale: t }) => hs(e, t || s),
|
|
949
|
+
getAllPossibleLanguages: (e) => vs(e || s),
|
|
950
|
+
getLanguageDisplayNamesForIsoCodes: (e) => ps(e || s)
|
|
945
951
|
};
|
|
946
952
|
}
|
|
947
|
-
function
|
|
953
|
+
function yt(s) {
|
|
948
954
|
const e = s.join(", ").match(/\b\w+\b/g);
|
|
949
955
|
return e ? e.length : 0;
|
|
950
956
|
}
|
|
951
|
-
function
|
|
952
|
-
const t =
|
|
957
|
+
function gs(s, e = 150) {
|
|
958
|
+
const t = yt([s]);
|
|
953
959
|
return Math.ceil(t / e);
|
|
954
960
|
}
|
|
955
|
-
function
|
|
961
|
+
function Yn(s) {
|
|
956
962
|
const e = f(
|
|
957
963
|
() => {
|
|
958
964
|
var r;
|
|
@@ -971,7 +977,7 @@ function Wn(s) {
|
|
|
971
977
|
return l.textContent;
|
|
972
978
|
}
|
|
973
979
|
return typeof s.content == "string" ? s.content : (u = s.content) == null ? void 0 : u.value;
|
|
974
|
-
}), o = f(() =>
|
|
980
|
+
}), o = f(() => gs(n.value, e.value)), i = f(() => yt([n.value]));
|
|
975
981
|
return {
|
|
976
982
|
content: n,
|
|
977
983
|
wordCount: i,
|
|
@@ -979,7 +985,7 @@ function Wn(s) {
|
|
|
979
985
|
duration: o
|
|
980
986
|
};
|
|
981
987
|
}
|
|
982
|
-
const
|
|
988
|
+
const ys = {
|
|
983
989
|
removeAccents: !0,
|
|
984
990
|
caseSensitive: !1,
|
|
985
991
|
replaceSpaces: !0,
|
|
@@ -989,8 +995,8 @@ const vs = {
|
|
|
989
995
|
removeNumbers: !1,
|
|
990
996
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
991
997
|
};
|
|
992
|
-
function
|
|
993
|
-
const t = { ...
|
|
998
|
+
function Ge(s, e) {
|
|
999
|
+
const t = { ...ys, ...e }, n = {
|
|
994
1000
|
À: "A",
|
|
995
1001
|
Á: "A",
|
|
996
1002
|
Â: "A",
|
|
@@ -1045,7 +1051,7 @@ function Ze(s, e) {
|
|
|
1045
1051
|
o = o.normalize(i);
|
|
1046
1052
|
return o;
|
|
1047
1053
|
}
|
|
1048
|
-
function
|
|
1054
|
+
function bs(s, e) {
|
|
1049
1055
|
const t = s.length, n = e.length, o = [];
|
|
1050
1056
|
for (let i = 0; i <= t; i++)
|
|
1051
1057
|
o[i] = [i];
|
|
@@ -1062,34 +1068,34 @@ function ps(s, e) {
|
|
|
1062
1068
|
}
|
|
1063
1069
|
return o[t][n];
|
|
1064
1070
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const t =
|
|
1071
|
+
function bt(s, e) {
|
|
1072
|
+
const t = bs(s, e), n = Math.max(s.length, e.length);
|
|
1067
1073
|
return 1 - t / n;
|
|
1068
1074
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return
|
|
1075
|
+
function ws(s, e, t = 0.75) {
|
|
1076
|
+
return bt(s, e) >= t;
|
|
1071
1077
|
}
|
|
1072
|
-
function
|
|
1078
|
+
function Zn(s, e, t = 0.75) {
|
|
1073
1079
|
const n = f(
|
|
1074
|
-
() =>
|
|
1080
|
+
() => Ge(typeof s == "string" ? s : s.value)
|
|
1075
1081
|
), o = f(
|
|
1076
|
-
() =>
|
|
1077
|
-
), i = f(() => typeof t == "number" ? t : t.value), r = f(() =>
|
|
1082
|
+
() => Ge(typeof e == "string" ? e : e.value)
|
|
1083
|
+
), i = f(() => typeof t == "number" ? t : t.value), r = f(() => bt(n.value, o.value));
|
|
1078
1084
|
return {
|
|
1079
1085
|
isMatching: f(
|
|
1080
|
-
() =>
|
|
1086
|
+
() => ws(n.value, o.value, i.value)
|
|
1081
1087
|
),
|
|
1082
1088
|
score: r
|
|
1083
1089
|
};
|
|
1084
1090
|
}
|
|
1085
|
-
const
|
|
1091
|
+
const Es = {
|
|
1086
1092
|
preventDefaultOnTouchMove: !1,
|
|
1087
1093
|
preventDefaultOnMouseWheel: !1,
|
|
1088
1094
|
threshold: 50,
|
|
1089
1095
|
immediate: !1,
|
|
1090
1096
|
triggerOnEnd: !1
|
|
1091
1097
|
};
|
|
1092
|
-
class
|
|
1098
|
+
class Ts {
|
|
1093
1099
|
constructor(e) {
|
|
1094
1100
|
d(this, "element");
|
|
1095
1101
|
d(this, "xStart");
|
|
@@ -1105,7 +1111,7 @@ class bs {
|
|
|
1105
1111
|
d(this, "start");
|
|
1106
1112
|
d(this, "stop");
|
|
1107
1113
|
d(this, "options");
|
|
1108
|
-
this.inputOption = e, this.options = { ...
|
|
1114
|
+
this.inputOption = e, this.options = { ...Es, ...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
1115
|
}
|
|
1110
1116
|
startListening() {
|
|
1111
1117
|
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 });
|
|
@@ -1161,8 +1167,8 @@ class bs {
|
|
|
1161
1167
|
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
1168
|
}
|
|
1163
1169
|
}
|
|
1164
|
-
function
|
|
1165
|
-
const e = y(), t = y(), n = y(), o = y(), i = y(), r = y(), a = f(() =>
|
|
1170
|
+
function Xn(s) {
|
|
1171
|
+
const e = y(), t = y(), n = y(), o = y(), i = y(), r = y(), a = f(() => ae(s.element)), u = new Ts({
|
|
1166
1172
|
...s,
|
|
1167
1173
|
element: a.value,
|
|
1168
1174
|
onValuesChanged(l) {
|
|
@@ -1182,7 +1188,7 @@ function Kn(s) {
|
|
|
1182
1188
|
stop: u.stop
|
|
1183
1189
|
};
|
|
1184
1190
|
}
|
|
1185
|
-
const
|
|
1191
|
+
const Ls = {
|
|
1186
1192
|
darkClass: "dark",
|
|
1187
1193
|
lightClass: "light",
|
|
1188
1194
|
storageThemeKey: "theme",
|
|
@@ -1190,11 +1196,11 @@ const ws = {
|
|
|
1190
1196
|
storageThemeValueLight: "light",
|
|
1191
1197
|
storageThemeValueSystem: "system",
|
|
1192
1198
|
watchChanges: !0
|
|
1193
|
-
},
|
|
1194
|
-
function
|
|
1199
|
+
}, we = y("system"), K = y("system");
|
|
1200
|
+
function Qe() {
|
|
1195
1201
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1196
1202
|
}
|
|
1197
|
-
function
|
|
1203
|
+
function Ee({
|
|
1198
1204
|
darkClass: s,
|
|
1199
1205
|
lightClass: e,
|
|
1200
1206
|
storageThemeKey: t,
|
|
@@ -1202,9 +1208,9 @@ function be({
|
|
|
1202
1208
|
setLocalStorageValue: o = !0,
|
|
1203
1209
|
setSelectedTheme: i = !0
|
|
1204
1210
|
}) {
|
|
1205
|
-
F() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s),
|
|
1211
|
+
F() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), we.value = n, i && (K.value = n), o && (localStorage[t] = n));
|
|
1206
1212
|
}
|
|
1207
|
-
function
|
|
1213
|
+
function Te({
|
|
1208
1214
|
darkClass: s,
|
|
1209
1215
|
lightClass: e,
|
|
1210
1216
|
storageThemeKey: t,
|
|
@@ -1212,97 +1218,97 @@ function we({
|
|
|
1212
1218
|
setLocalStorageValue: o = !0,
|
|
1213
1219
|
setSelectedTheme: i = !0
|
|
1214
1220
|
}) {
|
|
1215
|
-
F() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e),
|
|
1221
|
+
F() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), we.value = n, i && (K.value = n), o && (localStorage[t] = n));
|
|
1216
1222
|
}
|
|
1217
|
-
function
|
|
1223
|
+
function wt({
|
|
1218
1224
|
setLocalStorageValue: s = !0,
|
|
1219
1225
|
...e
|
|
1220
1226
|
}) {
|
|
1221
1227
|
if (F())
|
|
1222
|
-
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass),
|
|
1228
|
+
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), we.value = e.storageThemeValueSystem, K.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), Ne(e);
|
|
1223
1229
|
}
|
|
1224
|
-
function
|
|
1230
|
+
function Et(s) {
|
|
1225
1231
|
if (!s.defaultTheme)
|
|
1226
1232
|
return console.error("[maz-ui](useThemeHandler) No default theme set");
|
|
1227
1233
|
if (!["light", "dark"].includes(s.defaultTheme))
|
|
1228
1234
|
return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');
|
|
1229
1235
|
switch (s.defaultTheme) {
|
|
1230
1236
|
case "dark":
|
|
1231
|
-
return
|
|
1237
|
+
return Ee({
|
|
1232
1238
|
...s,
|
|
1233
1239
|
setLocalStorageValue: !1,
|
|
1234
1240
|
setSelectedTheme: !0
|
|
1235
1241
|
});
|
|
1236
1242
|
case "light":
|
|
1237
|
-
return
|
|
1243
|
+
return Te({
|
|
1238
1244
|
...s,
|
|
1239
1245
|
setLocalStorageValue: !1,
|
|
1240
1246
|
setSelectedTheme: !0
|
|
1241
1247
|
});
|
|
1242
1248
|
}
|
|
1243
1249
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return F() ? !localStorage[s.storageThemeKey] && s.defaultTheme ?
|
|
1250
|
+
function Ne(s) {
|
|
1251
|
+
return F() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Et(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && Qe() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && Qe() ? Ee({
|
|
1246
1252
|
...s,
|
|
1247
1253
|
setLocalStorageValue: !1,
|
|
1248
1254
|
setSelectedTheme: !1
|
|
1249
|
-
}) :
|
|
1255
|
+
}) : Te({
|
|
1250
1256
|
...s,
|
|
1251
1257
|
setLocalStorageValue: !1,
|
|
1252
1258
|
setSelectedTheme: !1
|
|
1253
1259
|
}) : void 0;
|
|
1254
1260
|
}
|
|
1255
|
-
function
|
|
1261
|
+
function Ve({
|
|
1256
1262
|
theme: s,
|
|
1257
1263
|
...e
|
|
1258
1264
|
}) {
|
|
1259
|
-
return s === "system" ?
|
|
1265
|
+
return s === "system" ? wt(e) : s === "dark" ? Ee(e) : Te(e);
|
|
1260
1266
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return
|
|
1267
|
+
function zs(s) {
|
|
1268
|
+
return we.value === s.storageThemeValueDark ? Te(s) : Ee(s);
|
|
1263
1269
|
}
|
|
1264
|
-
function
|
|
1270
|
+
function Gn(s) {
|
|
1265
1271
|
const e = {
|
|
1266
|
-
...
|
|
1272
|
+
...Ls,
|
|
1267
1273
|
...s
|
|
1268
1274
|
};
|
|
1269
1275
|
function t() {
|
|
1270
|
-
|
|
1276
|
+
Ne(e);
|
|
1271
1277
|
}
|
|
1272
|
-
return
|
|
1273
|
-
localStorage[e.storageThemeKey] && (
|
|
1274
|
-
}),
|
|
1278
|
+
return ue(() => {
|
|
1279
|
+
localStorage[e.storageThemeKey] && (K.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
|
|
1280
|
+
}), rt(() => {
|
|
1275
1281
|
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
|
|
1276
|
-
}),
|
|
1282
|
+
}), X(K, (n) => {
|
|
1277
1283
|
switch (localStorage[e.storageThemeKey] = n, n) {
|
|
1278
1284
|
case e.storageThemeValueDark: {
|
|
1279
|
-
|
|
1285
|
+
Ee(e);
|
|
1280
1286
|
break;
|
|
1281
1287
|
}
|
|
1282
1288
|
case e.storageThemeValueLight: {
|
|
1283
|
-
|
|
1289
|
+
Te(e);
|
|
1284
1290
|
break;
|
|
1285
1291
|
}
|
|
1286
1292
|
case e.storageThemeValueSystem: {
|
|
1287
|
-
|
|
1293
|
+
wt(e);
|
|
1288
1294
|
break;
|
|
1289
1295
|
}
|
|
1290
1296
|
}
|
|
1291
1297
|
}), {
|
|
1292
|
-
autoSetTheme: () =>
|
|
1293
|
-
toggleTheme: () =>
|
|
1294
|
-
setSystemTheme: () =>
|
|
1295
|
-
setDarkTheme: () =>
|
|
1296
|
-
setLightTheme: () =>
|
|
1297
|
-
setDefaultTheme: () =>
|
|
1298
|
-
hasDarkTheme: f(() =>
|
|
1299
|
-
hasLightTheme: f(() =>
|
|
1300
|
-
hasSystemTheme: f(() =>
|
|
1301
|
-
theme:
|
|
1302
|
-
selectedTheme:
|
|
1298
|
+
autoSetTheme: () => Ne(e),
|
|
1299
|
+
toggleTheme: () => zs(e),
|
|
1300
|
+
setSystemTheme: () => Ve({ ...e, theme: "system" }),
|
|
1301
|
+
setDarkTheme: () => Ve({ ...e, theme: "dark" }),
|
|
1302
|
+
setLightTheme: () => Ve({ ...e, theme: "light" }),
|
|
1303
|
+
setDefaultTheme: () => Et(e),
|
|
1304
|
+
hasDarkTheme: f(() => K.value === e.storageThemeValueDark),
|
|
1305
|
+
hasLightTheme: f(() => K.value === e.storageThemeValueLight),
|
|
1306
|
+
hasSystemTheme: f(() => K.value === e.storageThemeValueSystem),
|
|
1307
|
+
theme: we,
|
|
1308
|
+
selectedTheme: K
|
|
1303
1309
|
};
|
|
1304
1310
|
}
|
|
1305
|
-
function
|
|
1311
|
+
function Cs({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
|
|
1306
1312
|
const o = y(s), i = y(s);
|
|
1307
1313
|
let r;
|
|
1308
1314
|
function a(E) {
|
|
@@ -1310,7 +1316,7 @@ function zs({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callb
|
|
|
1310
1316
|
}
|
|
1311
1317
|
function u() {
|
|
1312
1318
|
r || (r = setInterval(() => {
|
|
1313
|
-
i.value -= t, i.value <= 0 && (
|
|
1319
|
+
i.value -= t, i.value <= 0 && (g(), setTimeout(() => e == null ? void 0 : e(), n));
|
|
1314
1320
|
}, t));
|
|
1315
1321
|
}
|
|
1316
1322
|
function l() {
|
|
@@ -1319,7 +1325,7 @@ function zs({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callb
|
|
|
1319
1325
|
function h() {
|
|
1320
1326
|
!r && i.value > 0 && u();
|
|
1321
1327
|
}
|
|
1322
|
-
function
|
|
1328
|
+
function g() {
|
|
1323
1329
|
setTimeout(() => i.value = o.value, n * 2), l();
|
|
1324
1330
|
}
|
|
1325
1331
|
return {
|
|
@@ -1327,13 +1333,13 @@ function zs({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callb
|
|
|
1327
1333
|
start: a,
|
|
1328
1334
|
pause: l,
|
|
1329
1335
|
resume: h,
|
|
1330
|
-
stop:
|
|
1336
|
+
stop: g
|
|
1331
1337
|
};
|
|
1332
1338
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1339
|
+
function Qn() {
|
|
1340
|
+
return Oe("toast");
|
|
1335
1341
|
}
|
|
1336
|
-
class
|
|
1342
|
+
class Is {
|
|
1337
1343
|
constructor(e, t) {
|
|
1338
1344
|
d(this, "eventHandlerFunction");
|
|
1339
1345
|
d(this, "event", "visibilitychange");
|
|
@@ -1379,62 +1385,62 @@ class Ts {
|
|
|
1379
1385
|
this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
1380
1386
|
}
|
|
1381
1387
|
}
|
|
1382
|
-
function
|
|
1388
|
+
function Jn({
|
|
1383
1389
|
callback: s,
|
|
1384
1390
|
options: e
|
|
1385
1391
|
}) {
|
|
1386
|
-
return new
|
|
1392
|
+
return new Is(s, e);
|
|
1387
1393
|
}
|
|
1388
|
-
function
|
|
1389
|
-
return
|
|
1394
|
+
function eo() {
|
|
1395
|
+
return Oe("wait");
|
|
1390
1396
|
}
|
|
1391
|
-
const
|
|
1392
|
-
function
|
|
1397
|
+
const xe = "__maz-click-outside__";
|
|
1398
|
+
function Tt() {
|
|
1393
1399
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
1394
1400
|
}
|
|
1395
|
-
async function
|
|
1401
|
+
async function Lt(s, e) {
|
|
1396
1402
|
try {
|
|
1397
|
-
|
|
1403
|
+
zt(s);
|
|
1398
1404
|
const t = e.instance, n = e.value, o = typeof n == "function";
|
|
1399
1405
|
if (!o)
|
|
1400
1406
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
1401
|
-
await
|
|
1407
|
+
await Ue(), s[xe] = (r) => {
|
|
1402
1408
|
if ((!s || r.target && !s.contains(r.target)) && n && o)
|
|
1403
1409
|
return n.call(t, r);
|
|
1404
1410
|
};
|
|
1405
|
-
const i =
|
|
1406
|
-
document.addEventListener(i, s[
|
|
1411
|
+
const i = Tt();
|
|
1412
|
+
document.addEventListener(i, s[xe], { passive: !0 });
|
|
1407
1413
|
} catch (t) {
|
|
1408
1414
|
console.error("[maz-ui](vClickOutside)", t);
|
|
1409
1415
|
}
|
|
1410
1416
|
}
|
|
1411
|
-
function
|
|
1417
|
+
function zt(s) {
|
|
1412
1418
|
try {
|
|
1413
|
-
const e =
|
|
1414
|
-
document.removeEventListener(e, s[
|
|
1419
|
+
const e = Tt();
|
|
1420
|
+
document.removeEventListener(e, s[xe], !1), delete s[xe];
|
|
1415
1421
|
} catch (e) {
|
|
1416
1422
|
console.error("[maz-ui](vClickOutside)", e);
|
|
1417
1423
|
}
|
|
1418
1424
|
}
|
|
1419
|
-
function
|
|
1425
|
+
function ks(s, e) {
|
|
1420
1426
|
try {
|
|
1421
1427
|
if (e.value === e.oldValue)
|
|
1422
1428
|
return;
|
|
1423
|
-
|
|
1429
|
+
Lt(s, e);
|
|
1424
1430
|
} catch (t) {
|
|
1425
1431
|
console.error("[maz-ui](vClickOutside)", t);
|
|
1426
1432
|
}
|
|
1427
1433
|
}
|
|
1428
|
-
const
|
|
1429
|
-
mounted:
|
|
1430
|
-
updated:
|
|
1431
|
-
unmounted:
|
|
1432
|
-
},
|
|
1434
|
+
const As = {
|
|
1435
|
+
mounted: Lt,
|
|
1436
|
+
updated: ks,
|
|
1437
|
+
unmounted: zt
|
|
1438
|
+
}, Ss = {
|
|
1433
1439
|
install: (s) => {
|
|
1434
|
-
s.directive("click-outside",
|
|
1440
|
+
s.directive("click-outside", As);
|
|
1435
1441
|
}
|
|
1436
1442
|
};
|
|
1437
|
-
function
|
|
1443
|
+
function Ct(s, e, t) {
|
|
1438
1444
|
var r;
|
|
1439
1445
|
s.stopPropagation();
|
|
1440
1446
|
const n = typeof t.value == "function" ? t.value : t.value.handler, o = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
@@ -1448,36 +1454,36 @@ function zt(s, e, t) {
|
|
|
1448
1454
|
}
|
|
1449
1455
|
!e.contains(s.target) && !i && (n == null || n());
|
|
1450
1456
|
}
|
|
1451
|
-
function
|
|
1457
|
+
function It() {
|
|
1452
1458
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
1453
1459
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const t =
|
|
1456
|
-
document.removeEventListener(t, (n) =>
|
|
1460
|
+
function xs(s, e) {
|
|
1461
|
+
const t = It();
|
|
1462
|
+
document.removeEventListener(t, (n) => Ct(n, s, e));
|
|
1457
1463
|
}
|
|
1458
|
-
function
|
|
1464
|
+
function Os(s, e) {
|
|
1459
1465
|
if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
|
|
1460
1466
|
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
1461
1467
|
return;
|
|
1462
1468
|
}
|
|
1463
|
-
const t =
|
|
1464
|
-
document.addEventListener(t, (n) =>
|
|
1469
|
+
const t = It();
|
|
1470
|
+
document.addEventListener(t, (n) => Ct(n, s, e));
|
|
1465
1471
|
}
|
|
1466
|
-
const
|
|
1467
|
-
mounted:
|
|
1468
|
-
unmounted:
|
|
1469
|
-
},
|
|
1472
|
+
const Ds = {
|
|
1473
|
+
mounted: Os,
|
|
1474
|
+
unmounted: xs
|
|
1475
|
+
}, Ps = {
|
|
1470
1476
|
install: (s) => {
|
|
1471
|
-
s.directive("closable",
|
|
1477
|
+
s.directive("closable", Ds);
|
|
1472
1478
|
}
|
|
1473
|
-
},
|
|
1479
|
+
}, Fe = {
|
|
1474
1480
|
position: "top"
|
|
1475
1481
|
};
|
|
1476
|
-
class
|
|
1482
|
+
class kt {
|
|
1477
1483
|
constructor(e = {}) {
|
|
1478
1484
|
d(this, "options");
|
|
1479
1485
|
this.options = {
|
|
1480
|
-
...
|
|
1486
|
+
...Fe,
|
|
1481
1487
|
...e
|
|
1482
1488
|
};
|
|
1483
1489
|
}
|
|
@@ -1505,24 +1511,24 @@ class Lt {
|
|
|
1505
1511
|
e.removeAttribute("data-tooltip"), e.classList.remove("m-tooltip"), e.classList.remove("m-tooltip--top"), e.classList.remove("m-tooltip--bottom"), e.classList.remove("m-tooltip--left"), e.classList.remove("m-tooltip--right"), e.classList.remove("m-tooltip--open"), e.classList.remove(`m-tooltip--${this.getColor(t)}`);
|
|
1506
1512
|
}
|
|
1507
1513
|
}
|
|
1508
|
-
let
|
|
1509
|
-
const
|
|
1514
|
+
let Ie;
|
|
1515
|
+
const to = {
|
|
1510
1516
|
beforeMount(s, e) {
|
|
1511
1517
|
const t = typeof e.value == "object" ? e.value : {};
|
|
1512
|
-
return
|
|
1518
|
+
return Ie = new kt(t), Ie.create(s, e);
|
|
1513
1519
|
},
|
|
1514
1520
|
updated(s, e) {
|
|
1515
|
-
return
|
|
1521
|
+
return Ie.update(s, e);
|
|
1516
1522
|
},
|
|
1517
1523
|
unmounted(s, e) {
|
|
1518
|
-
return
|
|
1524
|
+
return Ie.remove(s, e);
|
|
1519
1525
|
}
|
|
1520
|
-
},
|
|
1521
|
-
install: (s, e =
|
|
1526
|
+
}, Ms = {
|
|
1527
|
+
install: (s, e = Fe) => {
|
|
1522
1528
|
const t = {
|
|
1523
|
-
...
|
|
1529
|
+
...Fe,
|
|
1524
1530
|
...e
|
|
1525
|
-
}, n = new
|
|
1531
|
+
}, n = new kt(t);
|
|
1526
1532
|
s.directive("tooltip", {
|
|
1527
1533
|
beforeMount: n.create.bind(n),
|
|
1528
1534
|
updated: n.update.bind(n),
|
|
@@ -1530,19 +1536,88 @@ const Qn = {
|
|
|
1530
1536
|
});
|
|
1531
1537
|
}
|
|
1532
1538
|
};
|
|
1533
|
-
function
|
|
1539
|
+
function We(s, e) {
|
|
1534
1540
|
let t = e == null ? void 0 : e.element;
|
|
1535
1541
|
function n() {
|
|
1536
|
-
t &&
|
|
1542
|
+
t && Ce(null, t);
|
|
1537
1543
|
}
|
|
1538
1544
|
const o = { ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} }, i = J(
|
|
1539
1545
|
s,
|
|
1540
1546
|
o,
|
|
1541
1547
|
e == null ? void 0 : e.children
|
|
1542
1548
|
);
|
|
1543
|
-
return e != null && e.app ? (i.appContext = e.app._context, t ?
|
|
1549
|
+
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 };
|
|
1550
|
+
}
|
|
1551
|
+
function $s(s) {
|
|
1552
|
+
return !!s;
|
|
1553
|
+
}
|
|
1554
|
+
function so(s) {
|
|
1555
|
+
return [...s].map((e) => {
|
|
1556
|
+
const t = e.codePointAt(0);
|
|
1557
|
+
return t ? t % 32 + 127461 : void 0;
|
|
1558
|
+
}).filter($s).map((e) => String.fromCodePoint(e)).join("");
|
|
1544
1559
|
}
|
|
1545
|
-
|
|
1560
|
+
function no(s, e) {
|
|
1561
|
+
let t;
|
|
1562
|
+
return function(...n) {
|
|
1563
|
+
clearTimeout(t), t = setTimeout(() => {
|
|
1564
|
+
s.apply(this, n);
|
|
1565
|
+
}, e);
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
class oo {
|
|
1569
|
+
constructor({ src: e, identifier: t, once: n = !0, async: o = !0, defer: i = !0 }) {
|
|
1570
|
+
d(this, "src");
|
|
1571
|
+
d(this, "script");
|
|
1572
|
+
d(this, "once");
|
|
1573
|
+
d(this, "async");
|
|
1574
|
+
d(this, "defer");
|
|
1575
|
+
d(this, "identifier");
|
|
1576
|
+
if (typeof window > "u")
|
|
1577
|
+
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
1578
|
+
if (!e)
|
|
1579
|
+
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
1580
|
+
if (!t)
|
|
1581
|
+
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
1582
|
+
this.src = e, this.identifier = t, this.once = n, this.async = o, this.defer = i;
|
|
1583
|
+
}
|
|
1584
|
+
removeTag(e) {
|
|
1585
|
+
var t;
|
|
1586
|
+
typeof e == "string" ? (t = document.head.querySelector(`[data-identifier="${e}"]`)) == null || t.remove() : e.remove();
|
|
1587
|
+
}
|
|
1588
|
+
load() {
|
|
1589
|
+
const e = window, t = document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);
|
|
1590
|
+
if (this.once && e[this.identifier] && t.length > 0)
|
|
1591
|
+
return this.script = e[this.identifier], Promise.resolve(this.script);
|
|
1592
|
+
if (!this.once && t.length > 0)
|
|
1593
|
+
for (const n of t)
|
|
1594
|
+
this.removeTag(n);
|
|
1595
|
+
return this.injectScript();
|
|
1596
|
+
}
|
|
1597
|
+
injectScript() {
|
|
1598
|
+
const e = window;
|
|
1599
|
+
return new Promise((t, n) => {
|
|
1600
|
+
try {
|
|
1601
|
+
const o = document.createElement("script");
|
|
1602
|
+
o.src = this.src, o.async = this.async, o.defer = this.defer, o.dataset.identifier = this.identifier, o.addEventListener("error", (i) => n(new Error(`[ScriptLoader](injectScript) ${i.message}`))), o.addEventListener("load", (i) => (this.script = i, e[this.identifier] = i, t(i))), document.head.append(o);
|
|
1603
|
+
} catch (o) {
|
|
1604
|
+
throw new Error(`[ScriptLoader](init) ${o}`);
|
|
1605
|
+
}
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
function Hs(s) {
|
|
1610
|
+
return new Promise((e) => setTimeout(e, s));
|
|
1611
|
+
}
|
|
1612
|
+
function io(s, e) {
|
|
1613
|
+
let t = !1, n, o;
|
|
1614
|
+
return function(...i) {
|
|
1615
|
+
t ? (clearTimeout(n), n = setTimeout(() => {
|
|
1616
|
+
Date.now() - o >= e && (s.apply(this, i), o = Date.now());
|
|
1617
|
+
}, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
const Vs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["src", "alt"], Fs = /* @__PURE__ */ ge({
|
|
1546
1621
|
__name: "MazFullscreenImg",
|
|
1547
1622
|
props: {
|
|
1548
1623
|
src: {},
|
|
@@ -1560,202 +1635,231 @@ const Ds = ["onKeypress"], Ms = { class: "m-fullscreen-img-scroller" }, Ps = ["s
|
|
|
1560
1635
|
},
|
|
1561
1636
|
emits: ["close", "previous", "next", "before-close"],
|
|
1562
1637
|
setup(s, { emit: e }) {
|
|
1563
|
-
const t = s, n = e, o =
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1638
|
+
const t = s, n = e, o = H(() => import("./MazSpinner-DV--lwdI.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = y(!1), u = y(!1), l = y(!1), h = y(!1), g = y(!1), E = Bt({
|
|
1639
|
+
running: !1,
|
|
1640
|
+
ended: !1
|
|
1641
|
+
}), T = y(t.clickedElement), M = f(() => t.clickedElement.getBoundingClientRect()), I = y(), c = y(t.src), b = y(t.alt), O = y(), v = y(), S = y(!0), $ = f(() => ({
|
|
1642
|
+
"--is-zoomed": g.value,
|
|
1643
|
+
"--invisible": S.value,
|
|
1644
|
+
"--absolute": !g.value
|
|
1645
|
+
}));
|
|
1646
|
+
function L() {
|
|
1647
|
+
var p, w;
|
|
1648
|
+
v.value && (I.value = ((p = v.value) == null ? void 0 : p.naturalWidth) > ((w = v.value) == null ? void 0 : w.naturalHeight)), a.value = !0, u.value = !1, l.value = !0;
|
|
1568
1649
|
}
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
(
|
|
1572
|
-
|
|
1573
|
-
}
|
|
1650
|
+
X(
|
|
1651
|
+
l,
|
|
1652
|
+
async (p) => {
|
|
1653
|
+
p && k();
|
|
1654
|
+
},
|
|
1655
|
+
{ immediate: !0 }
|
|
1574
1656
|
);
|
|
1575
|
-
function
|
|
1576
|
-
n("before-close"),
|
|
1657
|
+
function D() {
|
|
1658
|
+
n("before-close"), x();
|
|
1577
1659
|
}
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1660
|
+
function j(p) {
|
|
1661
|
+
p.key === "Escape" && (p.preventDefault(), D()), (p.key === "ArrowLeft" || p.key === "ArrowRight") && (p.preventDefault(), me(p.key === "ArrowRight" ? "next" : "previous"));
|
|
1580
1662
|
}
|
|
1581
|
-
function
|
|
1663
|
+
function se() {
|
|
1582
1664
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
1583
1665
|
}
|
|
1584
|
-
function
|
|
1666
|
+
function G() {
|
|
1585
1667
|
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
1586
1668
|
}
|
|
1587
|
-
function
|
|
1669
|
+
function ce() {
|
|
1588
1670
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
1589
1671
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return w < 0 ?
|
|
1672
|
+
function De(p, w) {
|
|
1673
|
+
return w < 0 ? p.length - 1 : w >= p.length ? 0 : w;
|
|
1592
1674
|
}
|
|
1593
|
-
async function
|
|
1594
|
-
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1675
|
+
async function de(p, w) {
|
|
1676
|
+
p.classList.remove(t.openInstanceClass), w.classList.add(t.openInstanceClass);
|
|
1677
|
+
const z = w.getAttribute("data-src"), P = w.getAttribute("data-alt");
|
|
1678
|
+
b.value = P, c.value = z ?? c.value;
|
|
1597
1679
|
}
|
|
1598
|
-
function
|
|
1680
|
+
function me(p) {
|
|
1681
|
+
S.value = !0;
|
|
1599
1682
|
const w = document.querySelector(
|
|
1600
1683
|
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
1601
1684
|
);
|
|
1602
1685
|
if (w) {
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1686
|
+
const z = ce(), P = z.indexOf(w), W = p === "next" ? P + 1 : P - 1, R = z[De(z, W)];
|
|
1687
|
+
T.value = R, R && de(w, R), n(p), a.value = !1, u.value = !0, ct(() => a.value === !0, () => {
|
|
1688
|
+
S.value = !1, g.value ? fe() : m();
|
|
1689
|
+
}, {
|
|
1690
|
+
expectedValue: !0,
|
|
1691
|
+
interval: 100,
|
|
1692
|
+
maxAttempts: 50
|
|
1693
|
+
});
|
|
1605
1694
|
}
|
|
1606
1695
|
}
|
|
1607
|
-
function
|
|
1608
|
-
|
|
1696
|
+
function fe() {
|
|
1697
|
+
const p = v.value;
|
|
1698
|
+
if (!p) {
|
|
1699
|
+
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
p.style.removeProperty("max-width"), p.style.removeProperty("max-height"), p == null || p.style.removeProperty("top"), p == null || p.style.removeProperty("left"), I.value ? (p.style.height = "100vh", p.style.removeProperty("width")) : (p.style.width = "100vw", p.style.removeProperty("height"));
|
|
1609
1703
|
}
|
|
1610
|
-
async function
|
|
1611
|
-
|
|
1612
|
-
p.value ? (p.value = !p.value, oe()) : (p.value = !p.value, se(m));
|
|
1704
|
+
async function Pe() {
|
|
1705
|
+
g.value ? (g.value = !g.value, m()) : (g.value = !g.value, fe());
|
|
1613
1706
|
}
|
|
1614
|
-
function
|
|
1615
|
-
var
|
|
1616
|
-
|
|
1707
|
+
function ne(p) {
|
|
1708
|
+
var z;
|
|
1709
|
+
E.running = !0, S.value = !1;
|
|
1710
|
+
const w = (z = v.value) == null ? void 0 : z.animate(p, {
|
|
1617
1711
|
duration: t.animation.duration,
|
|
1618
|
-
// Durée de l'animation en millisecondes
|
|
1619
1712
|
easing: t.animation.easing
|
|
1620
|
-
// Fonction d'interpolation pour l'animation inverse
|
|
1621
1713
|
});
|
|
1714
|
+
if (!w) {
|
|
1715
|
+
console.error("[maz-ui](vFullscreenImg) animation is not defined"), E.running = !1, E.ended = !0;
|
|
1716
|
+
return;
|
|
1717
|
+
}
|
|
1718
|
+
return w;
|
|
1622
1719
|
}
|
|
1623
|
-
function
|
|
1624
|
-
const w =
|
|
1625
|
-
(
|
|
1626
|
-
(W - 2 *
|
|
1627
|
-
),
|
|
1720
|
+
function Le(p = t.offset ?? 0) {
|
|
1721
|
+
const w = T.value.clientWidth || 1, z = T.value.clientHeight || 1, P = window.innerWidth, W = window.innerHeight, R = Math.min(
|
|
1722
|
+
(P - 2 * p) / w,
|
|
1723
|
+
(W - 2 * p) / z
|
|
1724
|
+
), Me = (P - w * R) / 2, $e = (W - z * R) / 2;
|
|
1628
1725
|
return {
|
|
1629
|
-
centerX:
|
|
1630
|
-
centerY:
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
scale:
|
|
1726
|
+
centerX: Me,
|
|
1727
|
+
centerY: $e,
|
|
1728
|
+
width: w,
|
|
1729
|
+
height: z,
|
|
1730
|
+
scale: R
|
|
1634
1731
|
};
|
|
1635
1732
|
}
|
|
1636
|
-
function
|
|
1637
|
-
const {
|
|
1733
|
+
function ze({ trigger: p }) {
|
|
1734
|
+
const { width: w, height: z, scale: P, centerX: W, centerY: R } = Le(), { top: Me, left: $e, width: Ot, height: Dt } = M.value, Ke = [
|
|
1638
1735
|
{
|
|
1639
|
-
top: `${
|
|
1640
|
-
left: `${
|
|
1641
|
-
width: `${
|
|
1642
|
-
height: `${
|
|
1736
|
+
top: `${Me}px`,
|
|
1737
|
+
left: `${$e}px`,
|
|
1738
|
+
width: `${Ot}px`,
|
|
1739
|
+
height: `${Dt}px`,
|
|
1643
1740
|
opacity: 0
|
|
1644
1741
|
},
|
|
1645
1742
|
{
|
|
1646
|
-
top: `${
|
|
1743
|
+
top: `${R}px`,
|
|
1647
1744
|
left: `${W}px`,
|
|
1648
|
-
width: `${w *
|
|
1649
|
-
height: `${
|
|
1745
|
+
width: `${w * P}px`,
|
|
1746
|
+
height: `${z * P}px`,
|
|
1650
1747
|
opacity: 1
|
|
1651
1748
|
}
|
|
1652
1749
|
];
|
|
1653
1750
|
return {
|
|
1654
|
-
frames:
|
|
1751
|
+
frames: p === "open" ? Ke : Ke.reverse()
|
|
1655
1752
|
};
|
|
1656
1753
|
}
|
|
1657
|
-
function
|
|
1658
|
-
const {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
height: `${
|
|
1754
|
+
function m() {
|
|
1755
|
+
const { height: p, width: w, scale: z } = Le(), P = I.value ? {
|
|
1756
|
+
width: `${w * z}px`,
|
|
1757
|
+
maxHeight: `${p * z}px`
|
|
1758
|
+
} : {
|
|
1759
|
+
height: `${p * z}px`,
|
|
1760
|
+
maxWidth: `${w * z}px`
|
|
1663
1761
|
};
|
|
1664
|
-
if (!
|
|
1665
|
-
|
|
1666
|
-
|
|
1762
|
+
if (!v.value) {
|
|
1763
|
+
console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1764
|
+
return;
|
|
1765
|
+
}
|
|
1766
|
+
I.value ? (v.value.style.removeProperty("height"), v.value.style.removeProperty("maxHeight")) : (v.value.style.removeProperty("width"), v.value.style.removeProperty("maxWidth")), Object.assign(v.value.style, P);
|
|
1667
1767
|
}
|
|
1668
|
-
function
|
|
1669
|
-
const { frames:
|
|
1768
|
+
function k() {
|
|
1769
|
+
const { frames: p } = ze({
|
|
1670
1770
|
trigger: "open"
|
|
1671
|
-
}), w =
|
|
1672
|
-
if (!w)
|
|
1673
|
-
|
|
1771
|
+
}), w = ne(p);
|
|
1772
|
+
if (!w) {
|
|
1773
|
+
console.error("[maz-ui](vFullscreenImg) open animation is not defined"), m();
|
|
1774
|
+
return;
|
|
1775
|
+
}
|
|
1674
1776
|
w.onfinish = () => {
|
|
1675
|
-
|
|
1777
|
+
m(), E.running = !1, E.ended = !0;
|
|
1676
1778
|
};
|
|
1677
1779
|
}
|
|
1678
|
-
function
|
|
1679
|
-
const { frames:
|
|
1780
|
+
function x() {
|
|
1781
|
+
const { frames: p } = ze({
|
|
1680
1782
|
trigger: "close"
|
|
1681
|
-
}), w =
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1783
|
+
}), w = ne(p);
|
|
1784
|
+
function z() {
|
|
1785
|
+
var P, W;
|
|
1786
|
+
n("close"), (P = O.value) == null || P.remove(), (W = t.destroy) == null || W.call(t), E.running = !1, E.ended = !0;
|
|
1787
|
+
}
|
|
1788
|
+
if (!w) {
|
|
1789
|
+
console.error("[maz-ui](vFullscreenImg) close animation is not defined"), z();
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1792
|
+
w.onfinish = z;
|
|
1688
1793
|
}
|
|
1689
|
-
function
|
|
1690
|
-
|
|
1794
|
+
function he() {
|
|
1795
|
+
g.value || m();
|
|
1691
1796
|
}
|
|
1692
|
-
return
|
|
1693
|
-
u.value = !0, document.addEventListener("keydown",
|
|
1694
|
-
}),
|
|
1695
|
-
document.removeEventListener("keydown",
|
|
1696
|
-
}), (
|
|
1797
|
+
return ue(() => {
|
|
1798
|
+
u.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), se(), h.value = ce().length > 1;
|
|
1799
|
+
}), rt(() => {
|
|
1800
|
+
document.removeEventListener("keydown", j), window.removeEventListener("resize", he), G();
|
|
1801
|
+
}), (p, w) => (C(), _("div", {
|
|
1697
1802
|
ref_key: "FullscreenImgElement",
|
|
1698
|
-
ref:
|
|
1803
|
+
ref: O,
|
|
1699
1804
|
role: "button",
|
|
1700
1805
|
class: "m-fullscreen-img",
|
|
1701
1806
|
tabindex: "0",
|
|
1702
|
-
onClick:
|
|
1703
|
-
onKeypress:
|
|
1807
|
+
onClick: Y(D, ["stop"]),
|
|
1808
|
+
onKeypress: Nt(Y(D, ["prevent"]), ["esc"])
|
|
1704
1809
|
}, [
|
|
1705
|
-
|
|
1706
|
-
A(o),
|
|
1707
|
-
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
1708
|
-
null,
|
|
1709
|
-
512
|
|
1710
|
-
/* NEED_PATCH */
|
|
1711
|
-
), [
|
|
1712
|
-
[rt, u.value]
|
|
1713
|
-
]),
|
|
1714
|
-
l.value && h.value ? (L(), U("button", {
|
|
1810
|
+
l.value && h.value ? (C(), _("button", {
|
|
1715
1811
|
key: 0,
|
|
1716
1812
|
type: "button",
|
|
1717
1813
|
class: "m-fullscreen-btn --next",
|
|
1718
|
-
onClick: w[0] || (w[0] =
|
|
1814
|
+
onClick: w[0] || (w[0] = Y((z) => me("next"), ["stop"]))
|
|
1719
1815
|
}, [
|
|
1720
|
-
J(A(r), { class: "maz-rotate-180
|
|
1721
|
-
])) :
|
|
1722
|
-
l.value && h.value ? (
|
|
1816
|
+
J(A(r), { class: "maz-rotate-180" })
|
|
1817
|
+
])) : V("v-if", !0),
|
|
1818
|
+
l.value && h.value ? (C(), _("button", {
|
|
1723
1819
|
key: 1,
|
|
1724
1820
|
type: "button",
|
|
1725
1821
|
class: "m-fullscreen-btn --previous",
|
|
1726
|
-
onClick: w[1] || (w[1] =
|
|
1822
|
+
onClick: w[1] || (w[1] = Y((z) => me("previous"), ["stop"]))
|
|
1727
1823
|
}, [
|
|
1728
|
-
J(A(r)
|
|
1729
|
-
])) :
|
|
1730
|
-
|
|
1824
|
+
J(A(r))
|
|
1825
|
+
])) : V("v-if", !0),
|
|
1826
|
+
B("button", {
|
|
1731
1827
|
type: "button",
|
|
1732
1828
|
class: "m-fullscreen-btn --close",
|
|
1733
|
-
onClick:
|
|
1829
|
+
onClick: D
|
|
1734
1830
|
}, [
|
|
1735
|
-
J(A(i)
|
|
1831
|
+
J(A(i))
|
|
1736
1832
|
]),
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
H("img", {
|
|
1833
|
+
B("div", Bs, [
|
|
1834
|
+
B("img", {
|
|
1740
1835
|
ref_key: "ImgElement",
|
|
1741
|
-
ref:
|
|
1742
|
-
src:
|
|
1743
|
-
alt:
|
|
1836
|
+
ref: v,
|
|
1837
|
+
src: c.value,
|
|
1838
|
+
alt: b.value ?? void 0,
|
|
1744
1839
|
tabindex: "0",
|
|
1745
|
-
class:
|
|
1746
|
-
onLoad:
|
|
1747
|
-
onClick: w[2] || (w[2] =
|
|
1748
|
-
}, null, 42,
|
|
1840
|
+
class: le([$.value]),
|
|
1841
|
+
onLoad: L,
|
|
1842
|
+
onClick: w[2] || (w[2] = Y((z) => p.zoom && Pe(), ["stop"]))
|
|
1843
|
+
}, null, 42, Ns),
|
|
1844
|
+
at(J(
|
|
1845
|
+
A(o),
|
|
1846
|
+
{ class: "m-fullscreen-img-loader" },
|
|
1847
|
+
null,
|
|
1848
|
+
512
|
|
1849
|
+
/* NEED_PATCH */
|
|
1850
|
+
), [
|
|
1851
|
+
[lt, u.value]
|
|
1852
|
+
])
|
|
1749
1853
|
])
|
|
1750
|
-
], 40,
|
|
1854
|
+
], 40, Vs));
|
|
1751
1855
|
}
|
|
1752
|
-
}),
|
|
1856
|
+
}), Re = (s, e) => {
|
|
1753
1857
|
const t = s.__vccOpts || s;
|
|
1754
1858
|
for (const [n, o] of e)
|
|
1755
1859
|
t[n] = o;
|
|
1756
1860
|
return t;
|
|
1757
|
-
},
|
|
1758
|
-
class
|
|
1861
|
+
}, js = /* @__PURE__ */ Re(Fs, [["__scopeId", "data-v-037cf196"]]), Je = "m-fullscreen-is-open";
|
|
1862
|
+
class Us {
|
|
1759
1863
|
constructor() {
|
|
1760
1864
|
d(this, "options");
|
|
1761
1865
|
d(this, "defaultOptions", {
|
|
@@ -1812,10 +1916,10 @@ class Vs {
|
|
|
1812
1916
|
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 = "";
|
|
1813
1917
|
}
|
|
1814
1918
|
renderPreview(e) {
|
|
1815
|
-
return e.classList.add(
|
|
1919
|
+
return e.classList.add(Je), We(js, {
|
|
1816
1920
|
props: {
|
|
1817
1921
|
...this.options,
|
|
1818
|
-
openInstanceClass:
|
|
1922
|
+
openInstanceClass: Je,
|
|
1819
1923
|
clickedElement: e,
|
|
1820
1924
|
clickedElementBounds: e.getBoundingClientRect()
|
|
1821
1925
|
},
|
|
@@ -1829,22 +1933,22 @@ class Vs {
|
|
|
1829
1933
|
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
1830
1934
|
}
|
|
1831
1935
|
}
|
|
1832
|
-
let
|
|
1833
|
-
const
|
|
1936
|
+
let ke;
|
|
1937
|
+
const _s = {
|
|
1834
1938
|
mounted(s, e) {
|
|
1835
|
-
return
|
|
1939
|
+
return ke = new Us(), ke.create(s, e);
|
|
1836
1940
|
},
|
|
1837
1941
|
updated(s, e) {
|
|
1838
|
-
return
|
|
1942
|
+
return ke.update(s, e);
|
|
1839
1943
|
},
|
|
1840
1944
|
unmounted(s) {
|
|
1841
|
-
return
|
|
1945
|
+
return ke.remove(s);
|
|
1842
1946
|
}
|
|
1843
|
-
},
|
|
1947
|
+
}, qs = {
|
|
1844
1948
|
install(s) {
|
|
1845
|
-
s.directive("fullscreen-img",
|
|
1949
|
+
s.directive("fullscreen-img", _s);
|
|
1846
1950
|
}
|
|
1847
|
-
},
|
|
1951
|
+
}, Ws = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", je = {
|
|
1848
1952
|
baseClass: "m-lazy-img",
|
|
1849
1953
|
loadedClass: "m-lazy-loaded",
|
|
1850
1954
|
loadingClass: "m-lazy-loading",
|
|
@@ -1858,10 +1962,10 @@ const Bs = {
|
|
|
1858
1962
|
threshold: 0.1
|
|
1859
1963
|
}
|
|
1860
1964
|
};
|
|
1861
|
-
class
|
|
1965
|
+
class At {
|
|
1862
1966
|
constructor(e = {}) {
|
|
1863
1967
|
d(this, "observers", []);
|
|
1864
|
-
d(this, "defaultOptions",
|
|
1968
|
+
d(this, "defaultOptions", je);
|
|
1865
1969
|
d(this, "options");
|
|
1866
1970
|
d(this, "onImgLoadedCallback");
|
|
1867
1971
|
d(this, "onImgErrorCallback");
|
|
@@ -1999,7 +2103,7 @@ class Ct {
|
|
|
1999
2103
|
async add(e, t) {
|
|
2000
2104
|
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
2001
2105
|
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
2002
|
-
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e,
|
|
2106
|
+
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ws), await this.bindUpdateHandler(e, t, "bind");
|
|
2003
2107
|
}
|
|
2004
2108
|
async update(e, t) {
|
|
2005
2109
|
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
@@ -2011,35 +2115,35 @@ class Ct {
|
|
|
2011
2115
|
this.observers = [];
|
|
2012
2116
|
}
|
|
2013
2117
|
}
|
|
2014
|
-
let
|
|
2015
|
-
const
|
|
2118
|
+
let Ae;
|
|
2119
|
+
const ro = {
|
|
2016
2120
|
created(s, e) {
|
|
2017
2121
|
const t = typeof e.value == "object" ? e.value : {};
|
|
2018
|
-
|
|
2122
|
+
Ae = new At(t), Ae.add(s, e);
|
|
2019
2123
|
},
|
|
2020
2124
|
updated(s, e) {
|
|
2021
|
-
|
|
2125
|
+
Ae.update(s, e);
|
|
2022
2126
|
},
|
|
2023
2127
|
unmounted(s, e) {
|
|
2024
|
-
|
|
2128
|
+
Ae.remove(s, e);
|
|
2025
2129
|
}
|
|
2026
|
-
},
|
|
2130
|
+
}, Rs = {
|
|
2027
2131
|
install(s, e = {}) {
|
|
2028
2132
|
const t = {
|
|
2029
|
-
...
|
|
2133
|
+
...je,
|
|
2030
2134
|
...e,
|
|
2031
2135
|
observerOptions: {
|
|
2032
|
-
...
|
|
2136
|
+
...je.observerOptions,
|
|
2033
2137
|
...e.observerOptions
|
|
2034
2138
|
}
|
|
2035
|
-
}, n = new
|
|
2139
|
+
}, n = new At(t);
|
|
2036
2140
|
s.directive("lazy-img", {
|
|
2037
2141
|
created: n.add.bind(n),
|
|
2038
2142
|
updated: n.update.bind(n),
|
|
2039
2143
|
unmounted: n.remove.bind(n)
|
|
2040
2144
|
});
|
|
2041
2145
|
}
|
|
2042
|
-
},
|
|
2146
|
+
}, Ks = `
|
|
2043
2147
|
.maz-zoom-img {
|
|
2044
2148
|
position: fixed;
|
|
2045
2149
|
top: 0;
|
|
@@ -2162,13 +2266,13 @@ const Jn = {
|
|
|
2162
2266
|
|
|
2163
2267
|
.maz-zoom-img .maz-zoom-btn:hover {
|
|
2164
2268
|
background-color: hsl(0, 0%, 0%);
|
|
2165
|
-
}`,
|
|
2269
|
+
}`, et = {
|
|
2166
2270
|
close: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',
|
|
2167
2271
|
next: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',
|
|
2168
2272
|
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>',
|
|
2169
2273
|
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>'
|
|
2170
2274
|
};
|
|
2171
|
-
class
|
|
2275
|
+
class Ys {
|
|
2172
2276
|
constructor(e) {
|
|
2173
2277
|
d(this, "options");
|
|
2174
2278
|
d(this, "loader");
|
|
@@ -2215,7 +2319,7 @@ class _s {
|
|
|
2215
2319
|
e.classList.add(
|
|
2216
2320
|
"maz-is-open"
|
|
2217
2321
|
/* OPEN */
|
|
2218
|
-
), this.addStyle(
|
|
2322
|
+
), this.addStyle(Ks);
|
|
2219
2323
|
const n = document.createElement("div");
|
|
2220
2324
|
n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (o) => {
|
|
2221
2325
|
n.isEqualNode(o.target) && this.closePreview();
|
|
@@ -2236,7 +2340,7 @@ class _s {
|
|
|
2236
2340
|
}
|
|
2237
2341
|
getLoader() {
|
|
2238
2342
|
const e = document.createElement("div");
|
|
2239
|
-
return e.classList.add("maz-zoom-img__loader"), e.innerHTML =
|
|
2343
|
+
return e.classList.add("maz-zoom-img__loader"), e.innerHTML = et.spinner, e;
|
|
2240
2344
|
}
|
|
2241
2345
|
mouseLeave(e) {
|
|
2242
2346
|
this.options.scale && (e.style.transform = ""), this.options.blur && (e.style.filter = ""), e.style.zIndex = "";
|
|
@@ -2249,9 +2353,11 @@ class _s {
|
|
|
2249
2353
|
}
|
|
2250
2354
|
getButton(e = "close") {
|
|
2251
2355
|
const t = document.createElement("button");
|
|
2252
|
-
t.innerHTML =
|
|
2253
|
-
const n = e === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(e === "next") : null;
|
|
2254
|
-
return t.addEventListener("click", () =>
|
|
2356
|
+
t.innerHTML = et[e];
|
|
2357
|
+
const n = () => e === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(e === "next") : null;
|
|
2358
|
+
return t.addEventListener("click", () => {
|
|
2359
|
+
n();
|
|
2360
|
+
}), t.classList.add("maz-zoom-btn"), t.classList.add(`maz-zoom-btn--${e}`), t;
|
|
2255
2361
|
}
|
|
2256
2362
|
closePreview() {
|
|
2257
2363
|
const e = document.querySelector("#MazImgPreviewFullsize"), t = document.querySelector("#MazPreviewStyle"), n = document.querySelector(
|
|
@@ -2265,7 +2371,8 @@ class _s {
|
|
|
2265
2371
|
}, 300);
|
|
2266
2372
|
}
|
|
2267
2373
|
getNewInstanceIndex(e) {
|
|
2268
|
-
|
|
2374
|
+
let t = e;
|
|
2375
|
+
return t < 0 ? t = this.allInstances.length - 1 : t >= this.allInstances.length && (t = 0), t;
|
|
2269
2376
|
}
|
|
2270
2377
|
nextPreviousImage(e) {
|
|
2271
2378
|
const t = e, n = document.querySelector(
|
|
@@ -2302,47 +2409,47 @@ class _s {
|
|
|
2302
2409
|
this.img.removeEventListener("load", this.onImgLoadedCallback);
|
|
2303
2410
|
}
|
|
2304
2411
|
}
|
|
2305
|
-
let
|
|
2306
|
-
const
|
|
2412
|
+
let Se;
|
|
2413
|
+
const Zs = {
|
|
2307
2414
|
created(s, e) {
|
|
2308
|
-
|
|
2415
|
+
Se = new Ys(e), Se.create(s);
|
|
2309
2416
|
},
|
|
2310
2417
|
updated(s, e) {
|
|
2311
|
-
|
|
2418
|
+
Se.update(e);
|
|
2312
2419
|
},
|
|
2313
2420
|
unmounted(s) {
|
|
2314
|
-
|
|
2421
|
+
Se.remove(s);
|
|
2315
2422
|
}
|
|
2316
|
-
},
|
|
2423
|
+
}, Xs = {
|
|
2317
2424
|
install(s) {
|
|
2318
|
-
s.directive("zoom-img",
|
|
2319
|
-
}
|
|
2320
|
-
},
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
],
|
|
2425
|
+
s.directive("zoom-img", Zs);
|
|
2426
|
+
}
|
|
2427
|
+
}, Gs = [
|
|
2428
|
+
Ps,
|
|
2429
|
+
Xs,
|
|
2430
|
+
Rs,
|
|
2431
|
+
Ss,
|
|
2432
|
+
qs,
|
|
2433
|
+
Ms
|
|
2434
|
+
], ao = {
|
|
2328
2435
|
install(s) {
|
|
2329
|
-
for (const e of
|
|
2436
|
+
for (const e of Gs)
|
|
2330
2437
|
e.install(s, {});
|
|
2331
2438
|
}
|
|
2332
2439
|
};
|
|
2333
|
-
function
|
|
2440
|
+
function Qs(s) {
|
|
2334
2441
|
return s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "";
|
|
2335
2442
|
}
|
|
2336
|
-
const
|
|
2443
|
+
const Js = {
|
|
2337
2444
|
style: "currency",
|
|
2338
2445
|
minimumFractionDigits: 2,
|
|
2339
2446
|
round: !1
|
|
2340
2447
|
};
|
|
2341
|
-
function
|
|
2448
|
+
function en(s, e, t) {
|
|
2342
2449
|
let n = Number(s);
|
|
2343
2450
|
return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
|
|
2344
2451
|
}
|
|
2345
|
-
function
|
|
2452
|
+
function tn(s, e, t) {
|
|
2346
2453
|
if (s === void 0)
|
|
2347
2454
|
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
2348
2455
|
if (e === void 0)
|
|
@@ -2352,29 +2459,29 @@ function Xs(s, e, t) {
|
|
|
2352
2459
|
if (t.currency === void 0)
|
|
2353
2460
|
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
2354
2461
|
}
|
|
2355
|
-
function
|
|
2462
|
+
function sn(s, e, t) {
|
|
2356
2463
|
const n = {
|
|
2357
|
-
...
|
|
2464
|
+
...Js,
|
|
2358
2465
|
...t
|
|
2359
2466
|
};
|
|
2360
|
-
|
|
2467
|
+
tn(s, e, n);
|
|
2361
2468
|
try {
|
|
2362
|
-
return
|
|
2469
|
+
return en(s, e, n);
|
|
2363
2470
|
} catch (o) {
|
|
2364
2471
|
throw new Error(`[maz-ui](FilterCurrency) ${o}`);
|
|
2365
2472
|
}
|
|
2366
2473
|
}
|
|
2367
|
-
const
|
|
2474
|
+
const nn = {
|
|
2368
2475
|
month: "short",
|
|
2369
2476
|
day: "numeric",
|
|
2370
2477
|
year: "numeric"
|
|
2371
2478
|
};
|
|
2372
|
-
function
|
|
2479
|
+
function on(s, e, t) {
|
|
2373
2480
|
if (e === void 0)
|
|
2374
2481
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
2375
2482
|
if (typeof e != "string")
|
|
2376
2483
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
2377
|
-
const n = t ??
|
|
2484
|
+
const n = t ?? nn;
|
|
2378
2485
|
try {
|
|
2379
2486
|
const o = s instanceof Date ? s : new Date(s);
|
|
2380
2487
|
return new Intl.DateTimeFormat(e, n).format(o);
|
|
@@ -2382,12 +2489,12 @@ function Js(s, e, t) {
|
|
|
2382
2489
|
throw new Error(`[maz-ui](FilterDate) ${o}`);
|
|
2383
2490
|
}
|
|
2384
2491
|
}
|
|
2385
|
-
const
|
|
2492
|
+
const rn = {
|
|
2386
2493
|
minimumFractionDigits: 2
|
|
2387
2494
|
};
|
|
2388
|
-
function
|
|
2495
|
+
function an(s, e, t) {
|
|
2389
2496
|
const n = {
|
|
2390
|
-
...
|
|
2497
|
+
...rn,
|
|
2391
2498
|
...t
|
|
2392
2499
|
};
|
|
2393
2500
|
if (s === void 0)
|
|
@@ -2402,86 +2509,16 @@ function tn(s, e, t) {
|
|
|
2402
2509
|
throw new Error(`[maz-ui](FilterNumber) ${o}`);
|
|
2403
2510
|
}
|
|
2404
2511
|
}
|
|
2405
|
-
const
|
|
2406
|
-
capitalize:
|
|
2407
|
-
currency:
|
|
2408
|
-
date:
|
|
2409
|
-
number:
|
|
2410
|
-
},
|
|
2512
|
+
const ln = {
|
|
2513
|
+
capitalize: Qs,
|
|
2514
|
+
currency: sn,
|
|
2515
|
+
date: on,
|
|
2516
|
+
number: an
|
|
2517
|
+
}, lo = {
|
|
2411
2518
|
install(s) {
|
|
2412
|
-
s.provide("filters",
|
|
2413
|
-
}
|
|
2414
|
-
};
|
|
2415
|
-
function nn(s) {
|
|
2416
|
-
return !!s;
|
|
2417
|
-
}
|
|
2418
|
-
function so(s) {
|
|
2419
|
-
return [...s].map((e) => {
|
|
2420
|
-
const t = e.codePointAt(0);
|
|
2421
|
-
return t ? t % 32 + 127461 : void 0;
|
|
2422
|
-
}).filter(nn).map((e) => String.fromCodePoint(e)).join("");
|
|
2423
|
-
}
|
|
2424
|
-
function no(s, e) {
|
|
2425
|
-
let t;
|
|
2426
|
-
return function(...n) {
|
|
2427
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
2428
|
-
s.apply(this, n);
|
|
2429
|
-
}, e);
|
|
2430
|
-
};
|
|
2431
|
-
}
|
|
2432
|
-
class oo {
|
|
2433
|
-
constructor({ src: e, identifier: t, once: n = !0, async: o = !0, defer: i = !0 }) {
|
|
2434
|
-
d(this, "src");
|
|
2435
|
-
d(this, "script");
|
|
2436
|
-
d(this, "once");
|
|
2437
|
-
d(this, "async");
|
|
2438
|
-
d(this, "defer");
|
|
2439
|
-
d(this, "identifier");
|
|
2440
|
-
if (typeof window > "u")
|
|
2441
|
-
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
2442
|
-
if (!e)
|
|
2443
|
-
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
2444
|
-
if (!t)
|
|
2445
|
-
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
2446
|
-
this.src = e, this.identifier = t, this.once = n, this.async = o, this.defer = i;
|
|
2519
|
+
s.provide("filters", ln);
|
|
2447
2520
|
}
|
|
2448
|
-
|
|
2449
|
-
var t;
|
|
2450
|
-
typeof e == "string" ? (t = document.head.querySelector(`[data-identifier="${e}"]`)) == null || t.remove() : e.remove();
|
|
2451
|
-
}
|
|
2452
|
-
load() {
|
|
2453
|
-
const e = window, t = document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);
|
|
2454
|
-
if (this.once && e[this.identifier] && t.length > 0)
|
|
2455
|
-
return this.script = e[this.identifier], Promise.resolve(this.script);
|
|
2456
|
-
if (!this.once && t.length > 0)
|
|
2457
|
-
for (const n of t)
|
|
2458
|
-
this.removeTag(n);
|
|
2459
|
-
return this.injectScript();
|
|
2460
|
-
}
|
|
2461
|
-
injectScript() {
|
|
2462
|
-
const e = window;
|
|
2463
|
-
return new Promise((t, n) => {
|
|
2464
|
-
try {
|
|
2465
|
-
const o = document.createElement("script");
|
|
2466
|
-
o.src = this.src, o.async = this.async, o.defer = this.defer, o.dataset.identifier = this.identifier, o.addEventListener("error", (i) => n(new Error(`[ScriptLoader](injectScript) ${i.message}`))), o.addEventListener("load", (i) => (this.script = i, e[this.identifier] = i, t(i))), document.head.append(o);
|
|
2467
|
-
} catch (o) {
|
|
2468
|
-
throw new Error(`[ScriptLoader](init) ${o}`);
|
|
2469
|
-
}
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
function on(s) {
|
|
2474
|
-
return new Promise((e) => setTimeout(e, s));
|
|
2475
|
-
}
|
|
2476
|
-
function io(s, e) {
|
|
2477
|
-
let t = !1, n, o;
|
|
2478
|
-
return function(...i) {
|
|
2479
|
-
t ? (clearTimeout(n), n = setTimeout(() => {
|
|
2480
|
-
Date.now() - o >= e && (s.apply(this, i), o = Date.now());
|
|
2481
|
-
}, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
|
|
2482
|
-
};
|
|
2483
|
-
}
|
|
2484
|
-
const He = {
|
|
2521
|
+
}, Be = {
|
|
2485
2522
|
delay: 100,
|
|
2486
2523
|
observer: {
|
|
2487
2524
|
root: void 0,
|
|
@@ -2494,21 +2531,22 @@ const He = {
|
|
|
2494
2531
|
delay: 0
|
|
2495
2532
|
}
|
|
2496
2533
|
};
|
|
2497
|
-
class
|
|
2534
|
+
class un {
|
|
2498
2535
|
constructor(e) {
|
|
2499
2536
|
d(this, "options");
|
|
2500
2537
|
this.options = {
|
|
2501
|
-
delay: (e == null ? void 0 : e.delay) ??
|
|
2538
|
+
delay: (e == null ? void 0 : e.delay) ?? Be.delay,
|
|
2502
2539
|
observer: {
|
|
2503
|
-
...
|
|
2540
|
+
...Be.observer,
|
|
2504
2541
|
...e == null ? void 0 : e.observer
|
|
2505
2542
|
},
|
|
2506
2543
|
animation: {
|
|
2507
|
-
...
|
|
2544
|
+
...Be.animation,
|
|
2508
2545
|
...e == null ? void 0 : e.animation
|
|
2509
2546
|
}
|
|
2510
2547
|
};
|
|
2511
2548
|
}
|
|
2549
|
+
// eslint-disable-next-line sonarjs/cognitive-complexity
|
|
2512
2550
|
handleIntersect(e, t) {
|
|
2513
2551
|
for (const n of e) {
|
|
2514
2552
|
const i = n.target.getAttribute("data-maz-aos-children") === "true", r = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
@@ -2522,10 +2560,10 @@ class rn {
|
|
|
2522
2560
|
for (const a of r) {
|
|
2523
2561
|
const u = a.getAttribute("data-maz-aos-once"), l = typeof u == "string" ? u === "true" : this.options.animation.once;
|
|
2524
2562
|
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
2525
|
-
const h = a.getAttribute("data-maz-aos-duration"),
|
|
2563
|
+
const h = a.getAttribute("data-maz-aos-duration"), g = a.getAttribute("data-maz-aos-delay");
|
|
2526
2564
|
if (h || (a.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
2527
2565
|
a.style.transitionDuration = "0";
|
|
2528
|
-
}, 1e3)),
|
|
2566
|
+
}, 1e3)), g || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
2529
2567
|
a.style.transitionDelay = "0";
|
|
2530
2568
|
}, 1e3)), a.classList.add("maz-aos-animate"), l) {
|
|
2531
2569
|
const E = a.getAttribute("data-maz-aos-anchor");
|
|
@@ -2541,7 +2579,7 @@ class rn {
|
|
|
2541
2579
|
}
|
|
2542
2580
|
}
|
|
2543
2581
|
async handleObserver() {
|
|
2544
|
-
await
|
|
2582
|
+
await Hs(this.options.delay);
|
|
2545
2583
|
const e = new IntersectionObserver(this.handleIntersect.bind(this), this.options.observer);
|
|
2546
2584
|
for (const t of document.querySelectorAll("[data-maz-aos]")) {
|
|
2547
2585
|
const n = t.getAttribute("data-maz-aos-anchor");
|
|
@@ -2558,18 +2596,18 @@ class rn {
|
|
|
2558
2596
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
2559
2597
|
}
|
|
2560
2598
|
}
|
|
2561
|
-
let
|
|
2562
|
-
const
|
|
2599
|
+
let ve;
|
|
2600
|
+
const uo = {
|
|
2563
2601
|
install: (s, e) => {
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
}) :
|
|
2602
|
+
ve = new un(e), s.provide("aos", ve), F() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
2603
|
+
ve.runAnimations();
|
|
2604
|
+
}) : ve.runAnimations());
|
|
2567
2605
|
}
|
|
2568
2606
|
};
|
|
2569
|
-
function
|
|
2570
|
-
return
|
|
2607
|
+
function co() {
|
|
2608
|
+
return ve;
|
|
2571
2609
|
}
|
|
2572
|
-
const
|
|
2610
|
+
const tt = "--backdrop-present", cn = /* @__PURE__ */ ge({
|
|
2573
2611
|
inheritAttrs: !1,
|
|
2574
2612
|
__name: "MazBackdrop",
|
|
2575
2613
|
props: {
|
|
@@ -2586,24 +2624,24 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2586
2624
|
setup(s, { expose: e, emit: t }) {
|
|
2587
2625
|
const n = s, o = t;
|
|
2588
2626
|
function i() {
|
|
2589
|
-
document.documentElement.classList.add(
|
|
2627
|
+
document.documentElement.classList.add(tt);
|
|
2590
2628
|
}
|
|
2591
2629
|
async function r() {
|
|
2592
|
-
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(
|
|
2630
|
+
document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(tt);
|
|
2593
2631
|
}
|
|
2594
2632
|
const a = y(n.modelValue);
|
|
2595
2633
|
function u() {
|
|
2596
2634
|
l(!1);
|
|
2597
2635
|
}
|
|
2598
2636
|
async function l(c) {
|
|
2599
|
-
var
|
|
2600
|
-
c || (o("before-close"), await ((
|
|
2637
|
+
var b;
|
|
2638
|
+
c || (o("before-close"), await ((b = n.beforeClose) == null ? void 0 : b.call(n))), a.value = c;
|
|
2601
2639
|
}
|
|
2602
2640
|
function h() {
|
|
2603
2641
|
o("open");
|
|
2604
2642
|
}
|
|
2605
|
-
function
|
|
2606
|
-
o("update:model-value", !1), o("close"),
|
|
2643
|
+
function g() {
|
|
2644
|
+
o("update:model-value", !1), o("close"), I();
|
|
2607
2645
|
}
|
|
2608
2646
|
function E() {
|
|
2609
2647
|
n.persistent || u();
|
|
@@ -2611,56 +2649,56 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2611
2649
|
function T(c) {
|
|
2612
2650
|
!n.noCloseOnEscKey && c.key === "Escape" && !n.persistent && u();
|
|
2613
2651
|
}
|
|
2614
|
-
function
|
|
2652
|
+
function M() {
|
|
2615
2653
|
i(), document.addEventListener("keyup", T, !1);
|
|
2616
2654
|
}
|
|
2617
|
-
function
|
|
2655
|
+
function I() {
|
|
2618
2656
|
document.removeEventListener("keyup", T), r();
|
|
2619
2657
|
}
|
|
2620
|
-
return
|
|
2621
|
-
n.modelValue ?
|
|
2622
|
-
}),
|
|
2658
|
+
return ue(() => {
|
|
2659
|
+
n.modelValue ? M() : I();
|
|
2660
|
+
}), X(
|
|
2623
2661
|
() => n.modelValue,
|
|
2624
2662
|
(c) => {
|
|
2625
|
-
a.value = c, c ?
|
|
2663
|
+
a.value = c, c ? M() : I();
|
|
2626
2664
|
}
|
|
2627
2665
|
), e({
|
|
2628
2666
|
onBackdropAnimationEnter: h,
|
|
2629
|
-
onBackdropAnimationLeave:
|
|
2667
|
+
onBackdropAnimationLeave: g,
|
|
2630
2668
|
onBackdropClicked: E,
|
|
2631
2669
|
close: u,
|
|
2632
2670
|
present: a,
|
|
2633
2671
|
toggleModal: l,
|
|
2634
2672
|
onKeyPress: T
|
|
2635
|
-
}), (c,
|
|
2636
|
-
J(
|
|
2673
|
+
}), (c, b) => (C(), N(Ft, { to: c.teleportSelector }, [
|
|
2674
|
+
J(ut, {
|
|
2637
2675
|
appear: "",
|
|
2638
2676
|
name: c.transitionName,
|
|
2639
2677
|
onAfterEnter: h,
|
|
2640
|
-
onAfterLeave:
|
|
2678
|
+
onAfterLeave: g
|
|
2641
2679
|
}, {
|
|
2642
|
-
default:
|
|
2643
|
-
a.value ? (
|
|
2680
|
+
default: U(() => [
|
|
2681
|
+
a.value ? (C(), _(
|
|
2644
2682
|
"div",
|
|
2645
2683
|
{
|
|
2646
2684
|
key: 0,
|
|
2647
|
-
class:
|
|
2685
|
+
class: le(["m-backdrop --present", [c.backdropClass]]),
|
|
2648
2686
|
tabindex: "-1",
|
|
2649
2687
|
role: "dialog"
|
|
2650
2688
|
},
|
|
2651
2689
|
[
|
|
2652
|
-
|
|
2690
|
+
B(
|
|
2653
2691
|
"button",
|
|
2654
2692
|
{
|
|
2655
|
-
class:
|
|
2693
|
+
class: le(["m-backdrop-overlay", { "--disabled": c.persistent }]),
|
|
2656
2694
|
tabindex: "-1",
|
|
2657
|
-
onClick:
|
|
2695
|
+
onClick: Y(E, ["self"])
|
|
2658
2696
|
},
|
|
2659
2697
|
null,
|
|
2660
2698
|
2
|
|
2661
2699
|
/* CLASS */
|
|
2662
2700
|
),
|
|
2663
|
-
|
|
2701
|
+
B(
|
|
2664
2702
|
"div",
|
|
2665
2703
|
ee({
|
|
2666
2704
|
class: ["m-backdrop-content", c.backdropContentClass]
|
|
@@ -2677,24 +2715,24 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2677
2715
|
],
|
|
2678
2716
|
2
|
|
2679
2717
|
/* CLASS */
|
|
2680
|
-
)) :
|
|
2718
|
+
)) : V("v-if", !0)
|
|
2681
2719
|
]),
|
|
2682
2720
|
_: 3
|
|
2683
2721
|
/* FORWARDED */
|
|
2684
2722
|
}, 8, ["name"])
|
|
2685
2723
|
], 8, ["to"]));
|
|
2686
2724
|
}
|
|
2687
|
-
}),
|
|
2725
|
+
}), dn = {
|
|
2688
2726
|
key: 0,
|
|
2689
2727
|
id: "dialogTitle",
|
|
2690
2728
|
class: "maz-my-0 maz-text-xl maz-font-semibold"
|
|
2691
|
-
},
|
|
2729
|
+
}, mn = {
|
|
2692
2730
|
id: "dialogDesc",
|
|
2693
2731
|
class: "m-dialog-content"
|
|
2694
|
-
},
|
|
2732
|
+
}, fn = {
|
|
2695
2733
|
key: 0,
|
|
2696
2734
|
class: "m-dialog-footer"
|
|
2697
|
-
},
|
|
2735
|
+
}, hn = /* @__PURE__ */ ge({
|
|
2698
2736
|
__name: "MazDialog",
|
|
2699
2737
|
props: {
|
|
2700
2738
|
modelValue: { type: Boolean },
|
|
@@ -2714,7 +2752,7 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2714
2752
|
},
|
|
2715
2753
|
emits: ["open", "close", "update:model-value"],
|
|
2716
2754
|
setup(s, { expose: e }) {
|
|
2717
|
-
const t = s, n =
|
|
2755
|
+
const t = s, n = H(() => import("./MazBtn-0CRjeBvn.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = y();
|
|
2718
2756
|
e({
|
|
2719
2757
|
close: () => {
|
|
2720
2758
|
var l, h;
|
|
@@ -2729,7 +2767,7 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2729
2767
|
class: i.class,
|
|
2730
2768
|
style: i.style
|
|
2731
2769
|
}));
|
|
2732
|
-
return (l, h) => (
|
|
2770
|
+
return (l, h) => (C(), N(cn, ee({ ...a.value, ...t }, {
|
|
2733
2771
|
ref_key: "backdrop",
|
|
2734
2772
|
ref: r,
|
|
2735
2773
|
persistent: l.persistent,
|
|
@@ -2737,12 +2775,12 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2737
2775
|
"transition-name": "modal-anim",
|
|
2738
2776
|
"aria-labelledby": "dialogTitle",
|
|
2739
2777
|
"aria-describedby": "dialogDesc",
|
|
2740
|
-
onClose: h[0] || (h[0] = (
|
|
2741
|
-
onOpen: h[1] || (h[1] = (
|
|
2742
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
2778
|
+
onClose: h[0] || (h[0] = (g) => l.$emit("close", g)),
|
|
2779
|
+
onOpen: h[1] || (h[1] = (g) => l.$emit("open", g)),
|
|
2780
|
+
"onUpdate:modelValue": h[2] || (h[2] = (g) => l.$emit("update:model-value", g))
|
|
2743
2781
|
}), {
|
|
2744
|
-
default:
|
|
2745
|
-
|
|
2782
|
+
default: U(({ close: g }) => [
|
|
2783
|
+
B(
|
|
2746
2784
|
"div",
|
|
2747
2785
|
ee({
|
|
2748
2786
|
class: ["m-dialog", { "--scrollable": l.scrollable }],
|
|
@@ -2751,56 +2789,41 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2751
2789
|
style: [{ width: l.width, maxWidth: l.maxWidth, maxHeight: l.maxHeight }]
|
|
2752
2790
|
}, u.value),
|
|
2753
2791
|
[
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
@binding {Function} close close function
|
|
2757
|
-
`),
|
|
2758
|
-
q(l.$slots, "header", { close: p }, () => [
|
|
2759
|
-
H(
|
|
2792
|
+
q(l.$slots, "header", { close: g }, () => [
|
|
2793
|
+
B(
|
|
2760
2794
|
"div",
|
|
2761
2795
|
{
|
|
2762
|
-
class:
|
|
2796
|
+
class: le(["m-dialog-header", { "--has-title": l.$slots.title || l.title }])
|
|
2763
2797
|
},
|
|
2764
2798
|
[
|
|
2765
|
-
l.$slots.title || l.title ? (
|
|
2766
|
-
C(`
|
|
2767
|
-
@slot Title slot in the header
|
|
2768
|
-
`),
|
|
2799
|
+
l.$slots.title || l.title ? (C(), _("h2", dn, [
|
|
2769
2800
|
q(l.$slots, "title", {}, () => [
|
|
2770
2801
|
Q(
|
|
2771
|
-
|
|
2802
|
+
Z(l.title),
|
|
2772
2803
|
1
|
|
2773
2804
|
/* TEXT */
|
|
2774
2805
|
)
|
|
2775
2806
|
], !0)
|
|
2776
|
-
])) :
|
|
2777
|
-
!l.noClose && !l.persistent ? (
|
|
2807
|
+
])) : V("v-if", !0),
|
|
2808
|
+
!l.noClose && !l.persistent ? (C(), N(A(n), {
|
|
2778
2809
|
key: 1,
|
|
2779
2810
|
class: "m-dialog-closebtn",
|
|
2780
2811
|
color: "transparent",
|
|
2781
2812
|
size: "sm",
|
|
2782
2813
|
icon: A(o),
|
|
2783
|
-
onClick:
|
|
2784
|
-
}, null, 8, ["icon", "onClick"])) :
|
|
2814
|
+
onClick: g
|
|
2815
|
+
}, null, 8, ["icon", "onClick"])) : V("v-if", !0)
|
|
2785
2816
|
],
|
|
2786
2817
|
2
|
|
2787
2818
|
/* CLASS */
|
|
2788
2819
|
)
|
|
2789
2820
|
], !0),
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
@slot Default content
|
|
2793
|
-
@binding {Function} close close function
|
|
2794
|
-
`),
|
|
2795
|
-
q(l.$slots, "default", { close: p }, void 0, !0)
|
|
2821
|
+
B("div", mn, [
|
|
2822
|
+
q(l.$slots, "default", { close: g }, void 0, !0)
|
|
2796
2823
|
]),
|
|
2797
|
-
l.$slots.footer ? (
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
@binding {Function} close close function
|
|
2801
|
-
`),
|
|
2802
|
-
q(l.$slots, "footer", { close: p }, void 0, !0)
|
|
2803
|
-
])) : C("v-if", !0)
|
|
2824
|
+
l.$slots.footer ? (C(), _("div", fn, [
|
|
2825
|
+
q(l.$slots, "footer", { close: g }, void 0, !0)
|
|
2826
|
+
])) : V("v-if", !0)
|
|
2804
2827
|
],
|
|
2805
2828
|
16
|
|
2806
2829
|
/* FULL_PROPS */
|
|
@@ -2810,7 +2833,7 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2810
2833
|
/* FORWARDED */
|
|
2811
2834
|
}, 16, ["persistent", "model-value"]));
|
|
2812
2835
|
}
|
|
2813
|
-
}),
|
|
2836
|
+
}), vn = /* @__PURE__ */ Re(hn, [["__scopeId", "data-v-50775b17"]]), oe = {
|
|
2814
2837
|
cancelText: "Cancel",
|
|
2815
2838
|
confirmText: "Confirm",
|
|
2816
2839
|
cancelButton: {
|
|
@@ -2821,11 +2844,11 @@ const Je = "--backdrop-present", an = /* @__PURE__ */ ve({
|
|
|
2821
2844
|
text: "Confirm",
|
|
2822
2845
|
color: "success"
|
|
2823
2846
|
}
|
|
2824
|
-
},
|
|
2825
|
-
function
|
|
2847
|
+
}, pn = y(oe), ie = y([]);
|
|
2848
|
+
function gn(s, e) {
|
|
2826
2849
|
return new Promise((t, n) => {
|
|
2827
|
-
|
|
2828
|
-
...
|
|
2850
|
+
ie.value = [
|
|
2851
|
+
...ie.value,
|
|
2829
2852
|
{
|
|
2830
2853
|
id: s,
|
|
2831
2854
|
isActive: !0,
|
|
@@ -2839,26 +2862,26 @@ function hn(s, e) {
|
|
|
2839
2862
|
];
|
|
2840
2863
|
});
|
|
2841
2864
|
}
|
|
2842
|
-
function
|
|
2843
|
-
return
|
|
2865
|
+
function St(s) {
|
|
2866
|
+
return ie.value = ie.value.filter(({ id: e }) => e !== s), ie.value;
|
|
2844
2867
|
}
|
|
2845
|
-
function
|
|
2868
|
+
function st(s, e, t) {
|
|
2846
2869
|
var n;
|
|
2847
2870
|
e && ((n = e[s]) == null || n.call(e, t), e.isActive = !1, setTimeout(() => {
|
|
2848
|
-
|
|
2871
|
+
St(e.id);
|
|
2849
2872
|
}, 500));
|
|
2850
2873
|
}
|
|
2851
|
-
function
|
|
2874
|
+
function xt() {
|
|
2852
2875
|
return {
|
|
2853
|
-
data:
|
|
2854
|
-
dialogState:
|
|
2855
|
-
showDialogAndWaitChoice:
|
|
2856
|
-
removeDialogFromState:
|
|
2857
|
-
rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()),
|
|
2858
|
-
resolveDialog: async (s, e = "accept", t) => (await (t == null ? void 0 : t()),
|
|
2876
|
+
data: pn,
|
|
2877
|
+
dialogState: ie,
|
|
2878
|
+
showDialogAndWaitChoice: gn,
|
|
2879
|
+
removeDialogFromState: St,
|
|
2880
|
+
rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), st("reject", s, e)),
|
|
2881
|
+
resolveDialog: async (s, e = "accept", t) => (await (t == null ? void 0 : t()), st("resolve", s, e))
|
|
2859
2882
|
};
|
|
2860
2883
|
}
|
|
2861
|
-
const
|
|
2884
|
+
const yn = { class: "maz-flex maz-items-center maz-gap-2" }, bn = /* @__PURE__ */ ge({
|
|
2862
2885
|
__name: "MazDialogPromise",
|
|
2863
2886
|
props: {
|
|
2864
2887
|
data: { default: void 0 },
|
|
@@ -2886,126 +2909,113 @@ const vn = { class: "maz-flex maz-items-center maz-gap-2" }, pn = /* @__PURE__ *
|
|
|
2886
2909
|
},
|
|
2887
2910
|
emits: ["open", "close"],
|
|
2888
2911
|
setup(s, { expose: e }) {
|
|
2889
|
-
const t = s, n =
|
|
2912
|
+
const t = s, n = H(() => import("./MazBtn-0CRjeBvn.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), u = f(() => {
|
|
2890
2913
|
var c;
|
|
2891
2914
|
return t.buttons ?? ((c = t.data) == null ? void 0 : c.buttons) ?? a.value.buttons;
|
|
2892
2915
|
}), l = f(() => ({
|
|
2893
|
-
...
|
|
2916
|
+
...oe,
|
|
2894
2917
|
...a.value,
|
|
2895
2918
|
...t.data
|
|
2896
2919
|
})), h = f(() => {
|
|
2897
|
-
var
|
|
2898
|
-
if (!(((
|
|
2920
|
+
var O, v, S, $;
|
|
2921
|
+
if (!(((O = a.value) == null ? void 0 : O.cancelButton) ?? ((v = t.data) == null ? void 0 : v.cancelButton) ?? oe.cancelButton))
|
|
2899
2922
|
return;
|
|
2900
|
-
const
|
|
2901
|
-
...
|
|
2902
|
-
...(
|
|
2903
|
-
...(
|
|
2923
|
+
const b = {
|
|
2924
|
+
...oe.cancelButton,
|
|
2925
|
+
...(S = a.value) == null ? void 0 : S.cancelButton,
|
|
2926
|
+
...($ = t.data) == null ? void 0 : $.cancelButton
|
|
2904
2927
|
};
|
|
2905
2928
|
return {
|
|
2906
|
-
...
|
|
2907
|
-
text: l.value.cancelText ||
|
|
2929
|
+
...b,
|
|
2930
|
+
text: t.cancelText || l.value.cancelText || b.text
|
|
2908
2931
|
};
|
|
2909
|
-
}),
|
|
2910
|
-
var
|
|
2911
|
-
if (!(((
|
|
2932
|
+
}), g = f(() => {
|
|
2933
|
+
var O, v, S, $;
|
|
2934
|
+
if (!(((O = a.value) == null ? void 0 : O.confirmButton) ?? ((v = t.data) == null ? void 0 : v.confirmButton) ?? oe.confirmButton))
|
|
2912
2935
|
return;
|
|
2913
|
-
const
|
|
2914
|
-
...
|
|
2915
|
-
...(
|
|
2916
|
-
...(
|
|
2936
|
+
const b = {
|
|
2937
|
+
...oe.confirmButton,
|
|
2938
|
+
...(S = a.value) == null ? void 0 : S.confirmButton,
|
|
2939
|
+
...($ = t.data) == null ? void 0 : $.confirmButton
|
|
2917
2940
|
};
|
|
2918
2941
|
return {
|
|
2919
|
-
...
|
|
2920
|
-
text: l.value.confirmText ||
|
|
2942
|
+
...b,
|
|
2943
|
+
text: t.confirmText || l.value.confirmText || b.text
|
|
2921
2944
|
};
|
|
2922
2945
|
}), E = f(
|
|
2923
2946
|
() => o.value.find(({ id: c }) => c === t.identifier)
|
|
2924
2947
|
), T = y();
|
|
2925
2948
|
e({
|
|
2926
2949
|
close: () => {
|
|
2927
|
-
var c,
|
|
2928
|
-
return (
|
|
2950
|
+
var c, b;
|
|
2951
|
+
return (b = (c = T.value) == null ? void 0 : c.close) == null ? void 0 : b.call(c);
|
|
2929
2952
|
}
|
|
2930
2953
|
});
|
|
2931
|
-
function
|
|
2954
|
+
function M(c) {
|
|
2932
2955
|
return "type" in c && (c.type === "resolve" || c.type === "reject");
|
|
2933
2956
|
}
|
|
2934
|
-
function
|
|
2935
|
-
return
|
|
2957
|
+
function I(c, b) {
|
|
2958
|
+
return M(b) ? b.type === "resolve" ? r(c, b.response) : i(c, b.response) : r(c, void 0, b.action);
|
|
2936
2959
|
}
|
|
2937
|
-
return (c,
|
|
2938
|
-
var
|
|
2939
|
-
return
|
|
2960
|
+
return (c, b) => {
|
|
2961
|
+
var O;
|
|
2962
|
+
return C(), N(vn, ee({
|
|
2940
2963
|
ref_key: "dialog",
|
|
2941
2964
|
ref: T
|
|
2942
2965
|
}, { ...c.$attrs, ...t }, {
|
|
2943
|
-
"model-value": ((
|
|
2944
|
-
onClose:
|
|
2945
|
-
onOpen:
|
|
2946
|
-
"onUpdate:modelValue":
|
|
2966
|
+
"model-value": ((O = E.value) == null ? void 0 : O.isActive) ?? c.modelValue ?? !1,
|
|
2967
|
+
onClose: b[2] || (b[2] = (v) => c.$emit("close", v)),
|
|
2968
|
+
onOpen: b[3] || (b[3] = (v) => c.$emit("open", v)),
|
|
2969
|
+
"onUpdate:modelValue": b[4] || (b[4] = (v) => A(i)(E.value))
|
|
2947
2970
|
}), {
|
|
2948
|
-
title:
|
|
2949
|
-
C(`
|
|
2950
|
-
@slot title slot - Place your title
|
|
2951
|
-
`),
|
|
2971
|
+
title: U(() => [
|
|
2952
2972
|
q(c.$slots, "title", {}, () => {
|
|
2953
|
-
var
|
|
2973
|
+
var v;
|
|
2954
2974
|
return [
|
|
2955
2975
|
Q(
|
|
2956
|
-
|
|
2976
|
+
Z(c.title || ((v = l.value) == null ? void 0 : v.title)),
|
|
2957
2977
|
1
|
|
2958
2978
|
/* TEXT */
|
|
2959
2979
|
)
|
|
2960
2980
|
];
|
|
2961
2981
|
})
|
|
2962
2982
|
]),
|
|
2963
|
-
default:
|
|
2964
|
-
C(`
|
|
2965
|
-
@slot Default slot - Place your content
|
|
2966
|
-
@binding {Function} resolve resolve function
|
|
2967
|
-
@binding {Function} reject reject function
|
|
2968
|
-
`),
|
|
2983
|
+
default: U(() => [
|
|
2969
2984
|
q(c.$slots, "default", {
|
|
2970
|
-
resolve: (
|
|
2971
|
-
reject: (
|
|
2985
|
+
resolve: (v) => A(r)(E.value, v),
|
|
2986
|
+
reject: (v) => A(i)(E.value, v)
|
|
2972
2987
|
}, () => {
|
|
2973
|
-
var
|
|
2988
|
+
var v;
|
|
2974
2989
|
return [
|
|
2975
2990
|
Q(
|
|
2976
|
-
|
|
2991
|
+
Z(c.message || ((v = l.value) == null ? void 0 : v.message)),
|
|
2977
2992
|
1
|
|
2978
2993
|
/* TEXT */
|
|
2979
2994
|
)
|
|
2980
2995
|
];
|
|
2981
2996
|
})
|
|
2982
2997
|
]),
|
|
2983
|
-
footer:
|
|
2984
|
-
C(`
|
|
2985
|
-
@slot Footer slot
|
|
2986
|
-
@binding {Function} resolve resolve function
|
|
2987
|
-
@binding {Function} reject reject function
|
|
2988
|
-
`),
|
|
2998
|
+
footer: U(() => [
|
|
2989
2999
|
q(c.$slots, "footer-button", {
|
|
2990
|
-
resolve: (
|
|
2991
|
-
reject: (
|
|
3000
|
+
resolve: (v) => A(r)(E.value, v),
|
|
3001
|
+
reject: (v) => A(i)(E.value, v)
|
|
2992
3002
|
}, () => [
|
|
2993
|
-
|
|
2994
|
-
u.value ? (
|
|
2995
|
-
|
|
3003
|
+
B("div", yn, [
|
|
3004
|
+
u.value ? (C(!0), _(
|
|
3005
|
+
Ye,
|
|
2996
3006
|
{ key: 0 },
|
|
2997
|
-
|
|
2998
|
-
key:
|
|
3007
|
+
Ut(u.value, (v, S) => (C(), N(A(n), ee({
|
|
3008
|
+
key: S,
|
|
2999
3009
|
ref_for: !0
|
|
3000
3010
|
}, {
|
|
3001
|
-
...
|
|
3011
|
+
...v,
|
|
3002
3012
|
type: "button"
|
|
3003
3013
|
}, {
|
|
3004
|
-
onClick: (
|
|
3014
|
+
onClick: ($) => I(E.value, v)
|
|
3005
3015
|
}), {
|
|
3006
|
-
default:
|
|
3016
|
+
default: U(() => [
|
|
3007
3017
|
Q(
|
|
3008
|
-
|
|
3018
|
+
Z(v.text),
|
|
3009
3019
|
1
|
|
3010
3020
|
/* TEXT */
|
|
3011
3021
|
)
|
|
@@ -3015,23 +3025,20 @@ const vn = { class: "maz-flex maz-items-center maz-gap-2" }, pn = /* @__PURE__ *
|
|
|
3015
3025
|
}, 1040, ["onClick"]))),
|
|
3016
3026
|
128
|
|
3017
3027
|
/* KEYED_FRAGMENT */
|
|
3018
|
-
)) : (
|
|
3019
|
-
|
|
3028
|
+
)) : (C(), _(
|
|
3029
|
+
Ye,
|
|
3020
3030
|
{ key: 1 },
|
|
3021
3031
|
[
|
|
3022
|
-
h.value ? (
|
|
3032
|
+
h.value ? (C(), N(
|
|
3023
3033
|
A(n),
|
|
3024
3034
|
ee({ key: 0 }, h.value, {
|
|
3025
|
-
onClick:
|
|
3035
|
+
onClick: b[0] || (b[0] = (v) => A(i)(E.value))
|
|
3026
3036
|
}),
|
|
3027
3037
|
{
|
|
3028
|
-
default:
|
|
3029
|
-
C(`
|
|
3030
|
-
@slot cancel-text slot - Place your cancel text
|
|
3031
|
-
`),
|
|
3038
|
+
default: U(() => [
|
|
3032
3039
|
q(c.$slots, "cancel-text", {}, () => [
|
|
3033
3040
|
Q(
|
|
3034
|
-
|
|
3041
|
+
Z(h.value.text),
|
|
3035
3042
|
1
|
|
3036
3043
|
/* TEXT */
|
|
3037
3044
|
)
|
|
@@ -3042,20 +3049,17 @@ const vn = { class: "maz-flex maz-items-center maz-gap-2" }, pn = /* @__PURE__ *
|
|
|
3042
3049
|
},
|
|
3043
3050
|
16
|
|
3044
3051
|
/* FULL_PROPS */
|
|
3045
|
-
)) :
|
|
3046
|
-
|
|
3052
|
+
)) : V("v-if", !0),
|
|
3053
|
+
g.value ? (C(), N(
|
|
3047
3054
|
A(n),
|
|
3048
|
-
ee({ key: 1 },
|
|
3049
|
-
onClick:
|
|
3055
|
+
ee({ key: 1 }, g.value, {
|
|
3056
|
+
onClick: b[1] || (b[1] = (v) => A(r)(E.value))
|
|
3050
3057
|
}),
|
|
3051
3058
|
{
|
|
3052
|
-
default:
|
|
3053
|
-
C(`
|
|
3054
|
-
@slot confirm-text slot - Place your confirm text
|
|
3055
|
-
`),
|
|
3059
|
+
default: U(() => [
|
|
3056
3060
|
q(c.$slots, "confirm-text", {}, () => [
|
|
3057
3061
|
Q(
|
|
3058
|
-
|
|
3062
|
+
Z(g.value.text),
|
|
3059
3063
|
1
|
|
3060
3064
|
/* TEXT */
|
|
3061
3065
|
)
|
|
@@ -3066,7 +3070,7 @@ const vn = { class: "maz-flex maz-items-center maz-gap-2" }, pn = /* @__PURE__ *
|
|
|
3066
3070
|
},
|
|
3067
3071
|
16
|
|
3068
3072
|
/* FULL_PROPS */
|
|
3069
|
-
)) :
|
|
3073
|
+
)) : V("v-if", !0)
|
|
3070
3074
|
],
|
|
3071
3075
|
64
|
|
3072
3076
|
/* STABLE_FRAGMENT */
|
|
@@ -3079,22 +3083,22 @@ const vn = { class: "maz-flex maz-items-center maz-gap-2" }, pn = /* @__PURE__ *
|
|
|
3079
3083
|
}, 16, ["model-value"]);
|
|
3080
3084
|
};
|
|
3081
3085
|
}
|
|
3082
|
-
}),
|
|
3086
|
+
}), nt = {
|
|
3083
3087
|
identifier: "main-dialog"
|
|
3084
3088
|
};
|
|
3085
|
-
class
|
|
3086
|
-
constructor(e, t =
|
|
3089
|
+
class wn {
|
|
3090
|
+
constructor(e, t = nt) {
|
|
3087
3091
|
this.app = e, this.globalOptions = t;
|
|
3088
3092
|
}
|
|
3089
3093
|
open(e) {
|
|
3090
3094
|
const t = {
|
|
3091
|
-
...
|
|
3095
|
+
...nt,
|
|
3092
3096
|
...this.globalOptions,
|
|
3093
3097
|
...e
|
|
3094
|
-
}, { destroy: n, vNode: o } =
|
|
3098
|
+
}, { destroy: n, vNode: o } = We(bn, {
|
|
3095
3099
|
props: t,
|
|
3096
3100
|
app: this.app
|
|
3097
|
-
}), { showDialogAndWaitChoice: i } =
|
|
3101
|
+
}), { showDialogAndWaitChoice: i } = xt();
|
|
3098
3102
|
function r() {
|
|
3099
3103
|
var u, l, h;
|
|
3100
3104
|
(l = (u = o.component) == null ? void 0 : u.exposed) == null || l.close(), (h = t.promiseCallback) == null || h.call(t), setTimeout(() => {
|
|
@@ -3110,14 +3114,14 @@ class gn {
|
|
|
3110
3114
|
};
|
|
3111
3115
|
}
|
|
3112
3116
|
}
|
|
3113
|
-
const
|
|
3117
|
+
const mo = {
|
|
3114
3118
|
install(s, e) {
|
|
3115
|
-
s.provide("dialog", new
|
|
3119
|
+
s.provide("dialog", new wn(s, e));
|
|
3116
3120
|
}
|
|
3117
|
-
},
|
|
3121
|
+
}, En = { class: "m-toast__message-wrapper" }, Tn = { class: "m-toast__message" }, Ln = { class: "maz-flex maz-items-center maz-gap-2" }, zn = { key: 0 }, Cn = {
|
|
3118
3122
|
key: 4,
|
|
3119
3123
|
class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
|
|
3120
|
-
},
|
|
3124
|
+
}, In = /* @__PURE__ */ ge({
|
|
3121
3125
|
__name: "MazToast",
|
|
3122
3126
|
props: {
|
|
3123
3127
|
message: { default: void 0 },
|
|
@@ -3134,15 +3138,15 @@ const lo = {
|
|
|
3134
3138
|
},
|
|
3135
3139
|
emits: ["close", "click", "open"],
|
|
3136
3140
|
setup(s, { expose: e, emit: t }) {
|
|
3137
|
-
const n = s, o = t, i =
|
|
3141
|
+
const n = s, o = t, i = H(() => import("./MazBtn-0CRjeBvn.mjs")), r = H(() => import("./x-mark-CnZwVvA7.mjs")), a = H(
|
|
3138
3142
|
() => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
|
|
3139
|
-
), u =
|
|
3143
|
+
), u = H(
|
|
3140
3144
|
() => import("./exclamation-triangle-Z6d0ygp8.mjs")
|
|
3141
|
-
), l =
|
|
3145
|
+
), l = H(
|
|
3142
3146
|
() => import("./exclamation-circle-CUk0ZajS.mjs")
|
|
3143
|
-
), h =
|
|
3147
|
+
), h = H(
|
|
3144
3148
|
() => import("./information-circle-C7e5b_nL.mjs")
|
|
3145
|
-
),
|
|
3149
|
+
), g = H(() => import("./check-circle-Bf7AGSQ-.mjs")), E = H(() => import("./link-Br1lfjTR.mjs")), T = y(), M = f(() => {
|
|
3146
3150
|
if (n.icon)
|
|
3147
3151
|
switch (n.type) {
|
|
3148
3152
|
case "danger":
|
|
@@ -3150,38 +3154,38 @@ const lo = {
|
|
|
3150
3154
|
case "info":
|
|
3151
3155
|
return h;
|
|
3152
3156
|
case "success":
|
|
3153
|
-
return
|
|
3157
|
+
return g;
|
|
3154
3158
|
case "warning":
|
|
3155
3159
|
return l;
|
|
3156
3160
|
default:
|
|
3157
3161
|
return;
|
|
3158
3162
|
}
|
|
3159
|
-
}),
|
|
3163
|
+
}), I = f(() => n.position.includes("top") ? "top" : "bottom"), c = f(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), b = f(() => c.value !== "center" ? c.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), O = y(!1), v = y(!1), S = y(), $ = `m-toast-container --${I.value} --${c.value}`, L = `.${$.replaceAll(" ", ".")}`, D = Cs({
|
|
3160
3164
|
callback: ne,
|
|
3161
3165
|
timeout: typeof n.timeout == "number" ? n.timeout : 0,
|
|
3162
3166
|
callbackOffsetTime: 200
|
|
3163
3167
|
});
|
|
3164
|
-
function
|
|
3165
|
-
const
|
|
3166
|
-
if (!
|
|
3167
|
-
const
|
|
3168
|
-
|
|
3168
|
+
function j() {
|
|
3169
|
+
const m = document.querySelector(L);
|
|
3170
|
+
if (!m && !m) {
|
|
3171
|
+
const k = document.body, x = document.createElement("div");
|
|
3172
|
+
x.className = $, k.append(x);
|
|
3169
3173
|
}
|
|
3170
3174
|
}
|
|
3171
|
-
function
|
|
3172
|
-
const
|
|
3173
|
-
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" &&
|
|
3175
|
+
function se() {
|
|
3176
|
+
const m = document.querySelector(L);
|
|
3177
|
+
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && m ? n.maxToasts <= m.childElementCount : m && m.childElementCount > 0;
|
|
3174
3178
|
}
|
|
3175
3179
|
function G() {
|
|
3176
|
-
if (
|
|
3177
|
-
|
|
3180
|
+
if (se()) {
|
|
3181
|
+
S.value = setTimeout(G, 250);
|
|
3178
3182
|
return;
|
|
3179
3183
|
}
|
|
3180
|
-
const
|
|
3181
|
-
T.value &&
|
|
3184
|
+
const m = document.querySelector(L);
|
|
3185
|
+
T.value && m && m.prepend(T.value), v.value = !0, typeof n.timeout == "number" && n.timeout > 0 && D.start();
|
|
3182
3186
|
}
|
|
3183
|
-
const
|
|
3184
|
-
function
|
|
3187
|
+
const ce = y("100%");
|
|
3188
|
+
function De() {
|
|
3185
3189
|
switch (n.type) {
|
|
3186
3190
|
case "danger":
|
|
3187
3191
|
return "maz-bg-danger-700";
|
|
@@ -3192,129 +3196,129 @@ const lo = {
|
|
|
3192
3196
|
case "warning":
|
|
3193
3197
|
return "maz-bg-warning-700";
|
|
3194
3198
|
default:
|
|
3195
|
-
return "maz-bg-
|
|
3199
|
+
return "maz-bg-primary";
|
|
3196
3200
|
}
|
|
3197
3201
|
}
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
(
|
|
3202
|
+
X(
|
|
3203
|
+
D.remainingTime,
|
|
3204
|
+
(m) => {
|
|
3201
3205
|
if (typeof n.timeout == "number") {
|
|
3202
|
-
const
|
|
3203
|
-
|
|
3206
|
+
const k = 100 * m / n.timeout;
|
|
3207
|
+
ce.value = `${k}%`;
|
|
3204
3208
|
}
|
|
3205
3209
|
}
|
|
3206
3210
|
);
|
|
3207
|
-
function
|
|
3208
|
-
o("click",
|
|
3211
|
+
function de(m) {
|
|
3212
|
+
o("click", m), n.persistent || ne();
|
|
3209
3213
|
}
|
|
3210
|
-
async function
|
|
3211
|
-
var
|
|
3212
|
-
|
|
3214
|
+
async function me(m, k) {
|
|
3215
|
+
var x;
|
|
3216
|
+
O.value = !0, await m(), O.value = !1, (x = n.action) != null && x.closeToast && de(k);
|
|
3213
3217
|
}
|
|
3214
|
-
function
|
|
3215
|
-
n.noPauseOnHover || (
|
|
3218
|
+
function fe(m) {
|
|
3219
|
+
n.noPauseOnHover || (m ? D.pause() : D.resume());
|
|
3216
3220
|
}
|
|
3217
|
-
function
|
|
3218
|
-
|
|
3221
|
+
function Pe() {
|
|
3222
|
+
D.stop(), S.value && clearTimeout(S.value);
|
|
3219
3223
|
}
|
|
3220
3224
|
function ne() {
|
|
3221
|
-
|
|
3225
|
+
Pe(), v.value = !1;
|
|
3222
3226
|
}
|
|
3223
3227
|
e({ closeToast: ne });
|
|
3224
|
-
function
|
|
3228
|
+
function Le() {
|
|
3225
3229
|
o("open");
|
|
3226
3230
|
}
|
|
3227
|
-
function
|
|
3228
|
-
var
|
|
3229
|
-
o("close"), (
|
|
3230
|
-
const
|
|
3231
|
-
|
|
3231
|
+
function ze() {
|
|
3232
|
+
var k;
|
|
3233
|
+
o("close"), (k = T.value) == null || k.remove();
|
|
3234
|
+
const m = document.querySelector(L);
|
|
3235
|
+
m && !(m != null && m.hasChildNodes()) && m.remove();
|
|
3232
3236
|
}
|
|
3233
|
-
return
|
|
3234
|
-
|
|
3235
|
-
}), (
|
|
3236
|
-
name:
|
|
3237
|
-
onAfterLeave:
|
|
3238
|
-
onAfterEnter:
|
|
3237
|
+
return ue(() => {
|
|
3238
|
+
j(), G();
|
|
3239
|
+
}), (m, k) => (C(), N(ut, {
|
|
3240
|
+
name: b.value,
|
|
3241
|
+
onAfterLeave: ze,
|
|
3242
|
+
onAfterEnter: Le,
|
|
3239
3243
|
persisted: ""
|
|
3240
3244
|
}, {
|
|
3241
|
-
default:
|
|
3242
|
-
|
|
3245
|
+
default: U(() => [
|
|
3246
|
+
at(B(
|
|
3243
3247
|
"button",
|
|
3244
3248
|
{
|
|
3245
3249
|
ref_key: "Toaster",
|
|
3246
3250
|
ref: T,
|
|
3247
|
-
class:
|
|
3248
|
-
`--${
|
|
3249
|
-
`--${
|
|
3251
|
+
class: le(["m-toast", [
|
|
3252
|
+
`--${m.type}`,
|
|
3253
|
+
`--${I.value}`,
|
|
3250
3254
|
`--${c.value}`,
|
|
3251
|
-
{ "maz-pb-1": typeof
|
|
3255
|
+
{ "maz-pb-1": typeof m.timeout == "number" && m.timeout > 0, "--persistent": m.persistent }
|
|
3252
3256
|
]]),
|
|
3253
3257
|
role: "alert",
|
|
3254
|
-
onMouseover:
|
|
3255
|
-
onMouseleave:
|
|
3256
|
-
onClick:
|
|
3257
|
-
var
|
|
3258
|
-
return
|
|
3258
|
+
onMouseover: k[2] || (k[2] = (x) => fe(!0)),
|
|
3259
|
+
onMouseleave: k[3] || (k[3] = (x) => fe(!1)),
|
|
3260
|
+
onClick: k[4] || (k[4] = Y((x) => {
|
|
3261
|
+
var he;
|
|
3262
|
+
return m.link && !((he = m.link) != null && he.closeToast) ? void 0 : de(x);
|
|
3259
3263
|
}, ["stop"]))
|
|
3260
3264
|
},
|
|
3261
3265
|
[
|
|
3262
|
-
|
|
3266
|
+
M.value ? (C(), N(_t(M.value), {
|
|
3263
3267
|
key: 0,
|
|
3264
3268
|
class: "maz-text-2xl"
|
|
3265
|
-
})) :
|
|
3266
|
-
|
|
3267
|
-
|
|
3269
|
+
})) : V("v-if", !0),
|
|
3270
|
+
B("div", En, [
|
|
3271
|
+
B(
|
|
3268
3272
|
"p",
|
|
3269
|
-
|
|
3270
|
-
|
|
3273
|
+
Tn,
|
|
3274
|
+
Z(m.message),
|
|
3271
3275
|
1
|
|
3272
3276
|
/* TEXT */
|
|
3273
3277
|
)
|
|
3274
3278
|
]),
|
|
3275
|
-
|
|
3279
|
+
m.action ? (C(), N(A(i), {
|
|
3276
3280
|
key: 1,
|
|
3277
3281
|
"data-test": "action-btn",
|
|
3278
|
-
color:
|
|
3282
|
+
color: m.type,
|
|
3279
3283
|
pastel: "",
|
|
3280
|
-
loading:
|
|
3284
|
+
loading: O.value,
|
|
3281
3285
|
size: "sm",
|
|
3282
|
-
onClick:
|
|
3286
|
+
onClick: k[0] || (k[0] = Y((x) => m.action ? me(m.action.func, x) : void 0, ["stop"]))
|
|
3283
3287
|
}, {
|
|
3284
|
-
default:
|
|
3288
|
+
default: U(() => [
|
|
3285
3289
|
Q(
|
|
3286
|
-
|
|
3290
|
+
Z(m.action.text),
|
|
3287
3291
|
1
|
|
3288
3292
|
/* TEXT */
|
|
3289
3293
|
)
|
|
3290
3294
|
]),
|
|
3291
3295
|
_: 1
|
|
3292
3296
|
/* STABLE */
|
|
3293
|
-
}, 8, ["color", "loading"])) :
|
|
3294
|
-
|
|
3297
|
+
}, 8, ["color", "loading"])) : V("v-if", !0),
|
|
3298
|
+
m.link ? (C(), N(A(i), {
|
|
3295
3299
|
key: 2,
|
|
3296
3300
|
"data-test": "link-btn",
|
|
3297
|
-
color:
|
|
3301
|
+
color: m.type,
|
|
3298
3302
|
pastel: "",
|
|
3299
3303
|
size: "xs",
|
|
3300
|
-
href:
|
|
3301
|
-
target:
|
|
3304
|
+
href: m.link.href,
|
|
3305
|
+
target: m.link.target ?? "_self"
|
|
3302
3306
|
}, {
|
|
3303
|
-
default:
|
|
3304
|
-
var
|
|
3307
|
+
default: U(() => {
|
|
3308
|
+
var x;
|
|
3305
3309
|
return [
|
|
3306
|
-
|
|
3307
|
-
|
|
3310
|
+
B("div", Ln, [
|
|
3311
|
+
m.link.text ? (C(), _(
|
|
3308
3312
|
"span",
|
|
3309
|
-
|
|
3310
|
-
|
|
3313
|
+
zn,
|
|
3314
|
+
Z(m.link.text),
|
|
3311
3315
|
1
|
|
3312
3316
|
/* TEXT */
|
|
3313
|
-
)) :
|
|
3314
|
-
((
|
|
3317
|
+
)) : V("v-if", !0),
|
|
3318
|
+
((x = m.link) == null ? void 0 : x.target) === "_blank" ? (C(), N(A(a), {
|
|
3315
3319
|
key: 1,
|
|
3316
3320
|
class: "maz-text-xl"
|
|
3317
|
-
})) : (
|
|
3321
|
+
})) : (C(), N(A(E), {
|
|
3318
3322
|
key: 2,
|
|
3319
3323
|
class: "maz-text-xl"
|
|
3320
3324
|
}))
|
|
@@ -3323,56 +3327,56 @@ const lo = {
|
|
|
3323
3327
|
}),
|
|
3324
3328
|
_: 1
|
|
3325
3329
|
/* STABLE */
|
|
3326
|
-
}, 8, ["color", "href", "target"])) :
|
|
3327
|
-
|
|
3330
|
+
}, 8, ["color", "href", "target"])) : V("v-if", !0),
|
|
3331
|
+
m.persistent ? V("v-if", !0) : (C(), _("button", {
|
|
3328
3332
|
key: 3,
|
|
3329
3333
|
class: "--close",
|
|
3330
|
-
onClick:
|
|
3334
|
+
onClick: k[1] || (k[1] = Y((x) => de(x), ["stop"]))
|
|
3331
3335
|
}, [
|
|
3332
3336
|
J(A(r), { class: "--icon maz-text-xl" })
|
|
3333
3337
|
])),
|
|
3334
|
-
typeof
|
|
3335
|
-
|
|
3338
|
+
typeof m.timeout == "number" && m.timeout > 0 ? (C(), _("div", Cn, [
|
|
3339
|
+
B(
|
|
3336
3340
|
"div",
|
|
3337
3341
|
{
|
|
3338
|
-
style:
|
|
3339
|
-
width:
|
|
3342
|
+
style: qt({
|
|
3343
|
+
width: ce.value
|
|
3340
3344
|
}),
|
|
3341
|
-
class:
|
|
3345
|
+
class: le(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", De()])
|
|
3342
3346
|
},
|
|
3343
3347
|
null,
|
|
3344
3348
|
6
|
|
3345
3349
|
/* CLASS, STYLE */
|
|
3346
3350
|
)
|
|
3347
|
-
])) :
|
|
3351
|
+
])) : V("v-if", !0)
|
|
3348
3352
|
],
|
|
3349
3353
|
34
|
|
3350
3354
|
/* CLASS, NEED_HYDRATION */
|
|
3351
3355
|
), [
|
|
3352
|
-
[
|
|
3356
|
+
[lt, v.value]
|
|
3353
3357
|
])
|
|
3354
3358
|
]),
|
|
3355
3359
|
_: 1
|
|
3356
3360
|
/* STABLE */
|
|
3357
3361
|
}, 8, ["name"]));
|
|
3358
3362
|
}
|
|
3359
|
-
}),
|
|
3363
|
+
}), kn = /* @__PURE__ */ Re(In, [["__scopeId", "data-v-eaf59fd1"]]), An = {
|
|
3360
3364
|
position: "bottom-right",
|
|
3361
3365
|
timeout: 1e4,
|
|
3362
3366
|
persistent: !1,
|
|
3363
3367
|
icon: !0
|
|
3364
3368
|
};
|
|
3365
|
-
class
|
|
3369
|
+
class Sn {
|
|
3366
3370
|
constructor(e, t) {
|
|
3367
3371
|
this.app = e, this.globalOptions = t;
|
|
3368
3372
|
}
|
|
3369
3373
|
show(e, t) {
|
|
3370
3374
|
const n = {
|
|
3371
|
-
...
|
|
3375
|
+
...An,
|
|
3372
3376
|
...this.globalOptions,
|
|
3373
3377
|
...t,
|
|
3374
3378
|
message: e
|
|
3375
|
-
}, { destroy: o, vNode: i } =
|
|
3379
|
+
}, { destroy: o, vNode: i } = We(kn, {
|
|
3376
3380
|
props: n,
|
|
3377
3381
|
app: this.app
|
|
3378
3382
|
});
|
|
@@ -3406,112 +3410,112 @@ class In {
|
|
|
3406
3410
|
return this.show(e, this.getLocalOptions("warning", t));
|
|
3407
3411
|
}
|
|
3408
3412
|
}
|
|
3409
|
-
function
|
|
3410
|
-
return new
|
|
3413
|
+
function xn(s, e) {
|
|
3414
|
+
return new Sn(s, e);
|
|
3411
3415
|
}
|
|
3412
|
-
const
|
|
3416
|
+
const fo = {
|
|
3413
3417
|
install(s, e) {
|
|
3414
|
-
s.provide("toast",
|
|
3418
|
+
s.provide("toast", xn(s, e));
|
|
3415
3419
|
}
|
|
3416
|
-
},
|
|
3417
|
-
function
|
|
3420
|
+
}, re = "";
|
|
3421
|
+
function On(s) {
|
|
3418
3422
|
return s.filter((e, t, n) => t === n.indexOf(e));
|
|
3419
3423
|
}
|
|
3420
|
-
function
|
|
3421
|
-
return (e =
|
|
3424
|
+
function Dn(s) {
|
|
3425
|
+
return (e = re) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
|
|
3422
3426
|
}
|
|
3423
|
-
const
|
|
3424
|
-
function
|
|
3425
|
-
return (e =
|
|
3427
|
+
const Pn = (s) => s.length > 0;
|
|
3428
|
+
function Mn(s) {
|
|
3429
|
+
return (e = re) => On([...s, e]);
|
|
3426
3430
|
}
|
|
3427
|
-
function
|
|
3428
|
-
return (e =
|
|
3431
|
+
function $n(s) {
|
|
3432
|
+
return (e = re) => s.filter((t) => t !== e);
|
|
3429
3433
|
}
|
|
3430
|
-
class
|
|
3434
|
+
class Hn {
|
|
3431
3435
|
constructor() {
|
|
3432
3436
|
d(this, "_loaders", y([]));
|
|
3433
3437
|
}
|
|
3434
3438
|
get loaders() {
|
|
3435
3439
|
return f(() => this._loaders.value);
|
|
3436
3440
|
}
|
|
3437
|
-
stop(e =
|
|
3438
|
-
this._loaders.value =
|
|
3441
|
+
stop(e = re) {
|
|
3442
|
+
this._loaders.value = $n(this._loaders.value)(e);
|
|
3439
3443
|
}
|
|
3440
|
-
start(e =
|
|
3441
|
-
return this._loaders.value =
|
|
3444
|
+
start(e = re) {
|
|
3445
|
+
return this._loaders.value = Mn(this._loaders.value)(e), () => this.stop(e);
|
|
3442
3446
|
}
|
|
3443
3447
|
get anyLoading() {
|
|
3444
|
-
return f(() =>
|
|
3448
|
+
return f(() => Pn(this._loaders.value));
|
|
3445
3449
|
}
|
|
3446
|
-
isLoading(e =
|
|
3447
|
-
return f(() =>
|
|
3450
|
+
isLoading(e = re) {
|
|
3451
|
+
return f(() => Dn(this._loaders.value)(e)).value;
|
|
3448
3452
|
}
|
|
3449
3453
|
}
|
|
3450
|
-
const
|
|
3454
|
+
const Vn = new Hn(), ho = {
|
|
3451
3455
|
install: (s) => {
|
|
3452
|
-
s.provide("wait",
|
|
3456
|
+
s.provide("wait", Vn);
|
|
3453
3457
|
}
|
|
3454
3458
|
};
|
|
3455
3459
|
export {
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3460
|
+
uo as $,
|
|
3461
|
+
qs as A,
|
|
3462
|
+
_s as B,
|
|
3463
|
+
Rs as C,
|
|
3464
|
+
ro as D,
|
|
3465
|
+
Xs as E,
|
|
3466
|
+
Zs as F,
|
|
3467
|
+
lo as G,
|
|
3468
|
+
Qs as H,
|
|
3469
|
+
sn as I,
|
|
3470
|
+
on as J,
|
|
3471
|
+
an as K,
|
|
3472
|
+
ct as L,
|
|
3469
3473
|
so as M,
|
|
3470
3474
|
no as N,
|
|
3471
|
-
|
|
3475
|
+
ms as O,
|
|
3472
3476
|
F as P,
|
|
3473
|
-
|
|
3474
|
-
|
|
3477
|
+
We as Q,
|
|
3478
|
+
Ge as R,
|
|
3475
3479
|
oo as S,
|
|
3476
|
-
|
|
3477
|
-
|
|
3480
|
+
Hs as T,
|
|
3481
|
+
Ts as U,
|
|
3478
3482
|
io as V,
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3483
|
+
$s as W,
|
|
3484
|
+
Is as X,
|
|
3485
|
+
un as Y,
|
|
3486
|
+
co as Z,
|
|
3487
|
+
Re as _,
|
|
3488
|
+
jn as a,
|
|
3489
|
+
wn as a0,
|
|
3490
|
+
mo as a1,
|
|
3491
|
+
fo as a2,
|
|
3492
|
+
Sn as a3,
|
|
3493
|
+
Vn as a4,
|
|
3494
|
+
ho as a5,
|
|
3495
|
+
Hn as a6,
|
|
3496
|
+
Un as b,
|
|
3497
|
+
_n as c,
|
|
3498
|
+
qn as d,
|
|
3499
|
+
Wn as e,
|
|
3500
|
+
Rn as f,
|
|
3501
|
+
fs as g,
|
|
3502
|
+
Kn as h,
|
|
3503
|
+
Oe as i,
|
|
3504
|
+
Yn as j,
|
|
3505
|
+
Zn as k,
|
|
3506
|
+
Xn as l,
|
|
3507
|
+
Gn as m,
|
|
3508
|
+
Cs as n,
|
|
3509
|
+
Qn as o,
|
|
3510
|
+
Jn as p,
|
|
3511
|
+
eo as q,
|
|
3512
|
+
Rt as r,
|
|
3513
|
+
ao as s,
|
|
3514
|
+
As as t,
|
|
3515
|
+
Fn as u,
|
|
3516
|
+
Ss as v,
|
|
3517
|
+
Ds as w,
|
|
3518
|
+
Ps as x,
|
|
3519
|
+
to as y,
|
|
3520
|
+
Ms as z
|
|
3517
3521
|
};
|