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