maz-ui 3.43.4 → 3.44.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 +2 -2
- package/components/MazAccordion.mjs +84 -84
- package/components/MazAnimatedCounter.mjs +9 -10
- package/components/MazAvatar.d.ts +3 -3
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +2 -2
- package/components/MazBackdrop.mjs +12 -10
- package/components/MazBadge.d.ts +2 -2
- package/components/MazBadge.mjs +3 -4
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +7 -5
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +3 -3
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +2 -2
- package/components/MazCardSpotlight.mjs +4 -5
- package/components/MazCarousel.d.ts +2 -2
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazCheckbox.d.ts +2 -2
- package/components/MazCheckbox.mjs +10 -11
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazCircularProgressBar.mjs +21 -23
- package/components/MazDialog.d.ts +2 -2
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -2
- package/components/MazDrawer.mjs +71 -69
- package/components/MazDropdown.d.ts +7 -6
- package/components/MazDropdown.mjs +130 -128
- package/components/MazDropzone.d.ts +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.d.ts +2 -2
- package/components/MazExpandAnimation.mjs +26 -26
- package/components/MazFullscreenLoader.d.ts +2 -2
- package/components/MazFullscreenLoader.mjs +11 -10
- package/components/MazGallery.d.ts +2 -2
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +45 -34
- package/components/MazInput.d.ts +4 -4
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.d.ts +2 -2
- package/components/MazInputCode.mjs +4 -5
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +7 -2
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.d.ts +2 -2
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +6 -6
- package/components/MazLink.mjs +3 -4
- package/components/MazLoadingBar.d.ts +2 -2
- package/components/MazLoadingBar.mjs +17 -18
- package/components/MazPagination.d.ts +3 -3
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
- package/components/MazPhoneNumberInput/types.d.ts +5 -5
- package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
- package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
- package/components/MazPhoneNumberInput.d.ts +8 -8
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
- package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/components/MazPicker/types.d.ts +4 -4
- package/components/MazPicker/utils.d.ts +4 -4
- package/components/MazPicker.d.ts +3 -3
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +2 -2
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +8 -9
- package/components/MazRadioButtons.d.ts +2 -2
- package/components/MazRadioButtons.mjs +44 -42
- package/components/MazReadingProgressBar.d.ts +2 -2
- package/components/MazReadingProgressBar.mjs +12 -13
- package/components/MazSelect.d.ts +4 -4
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider/utils.d.ts +4 -4
- package/components/MazSlider.mjs +100 -87
- package/components/MazSpinner.mjs +6 -7
- package/components/MazStepper.d.ts +3 -3
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.d.ts +2 -2
- package/components/MazSwitch.mjs +6 -6
- package/components/MazTable.d.ts +13 -10
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +4 -5
- package/components/MazTableRow.d.ts +2 -2
- package/components/MazTableRow.mjs +4 -5
- package/components/MazTableTitle.mjs +2 -3
- package/components/MazTabs.d.ts +4 -4
- package/components/MazTabsBar.d.ts +7 -5
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +5 -4
- package/components/MazTabsContentItem.mjs +16 -17
- package/components/MazTextarea.d.ts +2 -2
- package/components/MazTextarea.mjs +19 -17
- package/components/MazTransitionExpand.d.ts +2 -2
- package/components/MazTransitionExpand.mjs +19 -18
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/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/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/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/MazPickerMonthSwitcher.css +1 -1
- package/components/assets/MazPickerShortcuts.css +1 -1
- package/components/assets/MazPickerYearSwitcher.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/MazSwitch.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-DsJvzyS9.mjs → MazAvatar-BU1nJFcV.mjs} +8 -9
- package/components/chunks/{MazBadge-CYJlqITD.mjs → MazBadge-CwA0md19.mjs} +4 -5
- package/components/chunks/{MazBottomSheet-CIlIdn-2.mjs → MazBottomSheet-DUOIusEi.mjs} +54 -52
- package/components/chunks/{MazBtn-CCNGs6oo.mjs → MazBtn-5BSKOcqG.mjs} +35 -36
- package/components/chunks/{MazBtn-Ccvl1ZWv.mjs → MazBtn-B1-sTc7F.mjs} +31 -32
- package/components/chunks/{MazBtn-BC5OegPu.mjs → MazBtn-BY8WCtM7.mjs} +35 -36
- package/components/chunks/{MazBtn-CX4OgPzp.mjs → MazBtn-C5G78zLg.mjs} +35 -36
- package/components/chunks/MazBtn-CeVwyYR5.mjs +150 -0
- package/components/chunks/{MazBtn-BqgdERYQ.mjs → MazBtn-ColLVUca.mjs} +35 -36
- package/components/chunks/{MazBtn-beTASOLt.mjs → MazBtn-DJhQqzja.mjs} +35 -36
- package/components/chunks/MazBtn-DuY28-0U.mjs +150 -0
- package/components/chunks/{MazBtn-BydIwD1J.mjs → MazBtn-f1mBXJeU.mjs} +31 -32
- package/components/chunks/MazBtn-h3WmmaEO.mjs +150 -0
- package/components/chunks/MazBtn-zyRLUViT.mjs +150 -0
- package/components/chunks/{MazCard-bmiVPg8p.mjs → MazCard-BWxV_Z-i.mjs} +25 -26
- package/components/chunks/{MazCarousel-CL0bMygd.mjs → MazCarousel-D5EmW7Sa.mjs} +43 -35
- package/components/chunks/{MazCheckbox-DsFbvpp4.mjs → MazCheckbox-BWiMbecz.mjs} +11 -12
- package/components/chunks/{MazCheckbox-CCa7grGF.mjs → MazCheckbox-D3PXkt75.mjs} +11 -12
- package/components/chunks/{MazDialog-BckFta4N.mjs → MazDialog-CLWKCphI.mjs} +56 -54
- package/components/chunks/{MazDialogPromise-Bb6h4hFz.mjs → MazDialogPromise-DVOJwdVp.mjs} +139 -126
- package/components/chunks/{MazDropzone-C_8mRUbK.mjs → MazDropzone-Dm2IirHm.mjs} +33 -54
- package/components/chunks/MazExpandAnimation-ChSSdQAq.mjs +58 -0
- package/components/chunks/{MazGallery-CcpeM_zk.mjs → MazGallery-BlfPe8WG.mjs} +103 -101
- package/components/chunks/{MazGallery-6UK5sH9P.mjs → MazGallery-Bn9p1gNb.mjs} +102 -100
- package/{modules/chunks/MazIcon-CiNswMKM.mjs → components/chunks/MazIcon-B8A0hQAH.mjs} +45 -34
- package/components/chunks/{MazIcon-Cxrv3_OK.mjs → MazIcon-BDGxCy9M.mjs} +45 -34
- package/components/chunks/{MazIcon-BKuhvwwq.mjs → MazIcon-D3umgnku.mjs} +45 -34
- package/components/chunks/{MazInput-DNwBL54e.mjs → MazInput-BpsE-mdg.mjs} +69 -69
- package/components/chunks/{MazInputNumber-BSdVF8-q.mjs → MazInputNumber-DGBYbDSX.mjs} +186 -182
- package/components/chunks/{MazInputPrice-osrAz4xd.mjs → MazInputPrice-j2BNMeFp.mjs} +134 -129
- package/components/chunks/{MazInputTags-XUWwx6p8.mjs → MazInputTags-CJofVaj5.mjs} +234 -252
- package/components/chunks/{MazLazyImg-6qrfqWKr.mjs → MazLazyImg-BFG6FIJZ.mjs} +6 -7
- package/components/chunks/{MazLazyImg-BelScAEF.mjs → MazLazyImg-Dboc6Xfz.mjs} +5 -6
- package/components/chunks/{MazPagination-DUiHgLAp.mjs → MazPagination-C6ZehQSZ.mjs} +118 -119
- package/components/chunks/{MazPhoneNumberInput-HeEEyDu0.mjs → MazPhoneNumberInput-DpWoNQfx.mjs} +707 -695
- package/components/chunks/MazPicker-ia2BEmm5.mjs +2531 -0
- package/components/chunks/{MazPickerMonthSwitcher-CoV-84J1.mjs → MazPickerMonthSwitcher-CKtfZ_m-.mjs} +19 -19
- package/components/chunks/{MazPickerShortcuts-5IfUIwpz.mjs → MazPickerShortcuts-Cc9VoqBw.mjs} +10 -10
- package/components/chunks/{MazPickerYearSwitcher-MeptqtZk.mjs → MazPickerYearSwitcher-0b5Wrem9.mjs} +10 -8
- package/components/chunks/{MazPullToRefresh-DWbmwlzV.mjs → MazPullToRefresh-CUazP4y2.mjs} +21 -22
- package/components/chunks/MazSelect-COJoKXbV.mjs +847 -0
- package/components/chunks/MazSpinner-9Jue6cel.mjs +37 -0
- package/components/chunks/{MazSpinner-BKjRRWtc.mjs → MazSpinner-BGPOws6a.mjs} +6 -7
- package/components/chunks/{MazSpinner-BXxULdoD.mjs → MazSpinner-BWYdqSMP.mjs} +6 -7
- package/components/chunks/{MazSpinner-BRgzRI07.mjs → MazSpinner-BZOjTZBN.mjs} +6 -7
- package/components/chunks/{MazSpinner-B-svzg-R.mjs → MazSpinner-BaAMq7LI.mjs} +6 -7
- package/components/chunks/MazSpinner-Bad2n-0k.mjs +37 -0
- package/components/chunks/MazSpinner-BxnVFqUu.mjs +37 -0
- package/components/chunks/{MazSpinner-Mvsi6uCt.mjs → MazSpinner-C41VyUup.mjs} +6 -7
- package/components/chunks/MazSpinner-C6StE-Mb.mjs +37 -0
- package/components/chunks/{MazSpinner-BFXwybUv.mjs → MazSpinner-CNIlbDfg.mjs} +6 -7
- package/components/chunks/MazSpinner-Cz2DHV6g.mjs +37 -0
- package/components/chunks/MazSpinner-D4CdHpP2.mjs +37 -0
- package/{modules/chunks/MazSpinner--jWWogVn.mjs → components/chunks/MazSpinner-DHQH6Bhz.mjs} +6 -7
- package/components/chunks/MazSpinner-DRj2VpGA.mjs +37 -0
- package/components/chunks/{MazSpinner-C1lg-Klx.mjs → MazSpinner-DkXequnp.mjs} +6 -7
- package/components/chunks/MazSpinner-EA5ejB8F.mjs +37 -0
- package/components/chunks/{MazSpinner-BtpIL60X.mjs → MazSpinner-RvDGcBng.mjs} +6 -7
- package/components/chunks/{MazSpinner-B_WP-2kr.mjs → MazSpinner-V-bFi71W.mjs} +6 -7
- package/components/chunks/MazSpinner-aPFlrc5E.mjs +37 -0
- package/components/chunks/{MazSpinner-CfA_KEZT.mjs → MazSpinner-nH44Htog.mjs} +6 -7
- package/components/chunks/MazSpinner-nOD-7_sU.mjs +37 -0
- package/components/chunks/MazSpinner-yZGK-AQe.mjs +37 -0
- package/components/chunks/{MazStepper-DDofJsdg.mjs → MazStepper-DxrzKz06.mjs} +94 -83
- package/components/chunks/MazTable-DRUj_PZp.mjs +1960 -0
- package/components/chunks/{MazTabsBar-BXDEQkZM.mjs → MazTabsBar-xcIIXHx5.mjs} +67 -68
- package/components/chunks/{MazTransitionExpand-BwuAIzII.mjs → MazTransitionExpand-B08cSrmL.mjs} +20 -19
- package/components/chunks/{examples.mobile.json-um0ibyv5.mjs → examples.mobile.json-JpNGylGv.mjs} +1 -1
- 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-Czcbhr3Z.cjs → MazBtn-BbCGGxkK.cjs} +2 -2
- package/modules/chunks/{MazBtn-CXcW31TK.mjs → MazBtn-UBHTKqaN.mjs} +35 -36
- package/modules/chunks/MazIcon-BDSXZYZ8.cjs +1 -0
- package/{components/chunks/MazIcon-DtG5ii8R.mjs → modules/chunks/MazIcon-C2ch3jUS.mjs} +45 -34
- package/modules/chunks/{MazSpinner-Cw1KnqLM.cjs → MazSpinner-BiyFRA4w.cjs} +1 -1
- package/modules/chunks/MazSpinner-C9_xSbZZ.mjs +37 -0
- package/modules/chunks/{index-CThtJOu5.mjs → index-Cwbjspv3.mjs} +621 -588
- package/modules/chunks/index-tnjajVkX.cjs +124 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +34 -35
- package/nuxt/index.json +2 -2
- package/nuxt/index.mjs +3 -4
- package/nuxt/types.d.mts +24 -0
- package/nuxt/types.d.ts +24 -0
- package/package.json +77 -83
- package/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/tailwindcss/tailwind.config.ts +9 -2
- package/tailwindcss/utils/colors.ts +3 -3
- package/tailwindcss/variables/colors.ts +12 -12
- package/tailwindcss/variables/utilities.ts +2 -2
- package/tailwindcss/variables/z-indexes.ts +12 -11
- package/types/components/MazAccordion.vue.d.ts +2 -2
- package/types/components/MazAvatar.vue.d.ts +3 -3
- package/types/components/MazBackdrop.vue.d.ts +2 -2
- package/types/components/MazBadge.vue.d.ts +2 -2
- package/types/components/MazBtn.vue.d.ts +7 -5
- package/types/components/MazCard.vue.d.ts +3 -3
- package/types/components/MazCardSpotlight.vue.d.ts +2 -2
- package/types/components/MazCarousel.vue.d.ts +2 -2
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazCheckbox.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDialog.vue.d.ts +2 -2
- package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
- package/types/components/MazDrawer.vue.d.ts +2 -2
- package/types/components/MazDropdown.vue.d.ts +7 -6
- package/types/components/MazDropzone.vue.d.ts +1 -1
- package/types/components/MazExpandAnimation.vue.d.ts +2 -2
- package/types/components/MazFullscreenLoader.vue.d.ts +2 -2
- package/types/components/MazGallery.vue.d.ts +2 -2
- package/types/components/MazInput.vue.d.ts +4 -4
- package/types/components/MazInputCode.vue.d.ts +2 -2
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazInputTags.vue.d.ts +7 -2
- package/types/components/MazLazyImg.vue.d.ts +2 -2
- package/types/components/MazLink.vue.d.ts +6 -6
- package/types/components/MazLoadingBar.vue.d.ts +2 -2
- package/types/components/MazPagination.vue.d.ts +3 -3
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
- package/types/components/MazPhoneNumberInput/types.d.ts +5 -5
- package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
- package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
- package/types/components/MazPhoneNumberInput.vue.d.ts +8 -8
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
- package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
- package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
- package/types/components/MazPicker/types.d.ts +4 -4
- package/types/components/MazPicker/utils.d.ts +4 -4
- package/types/components/MazPicker.vue.d.ts +3 -3
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazRadioButtons.vue.d.ts +2 -2
- package/types/components/MazReadingProgressBar.vue.d.ts +2 -2
- package/types/components/MazSelect.vue.d.ts +4 -4
- package/types/components/MazSlider/utils.d.ts +4 -4
- package/types/components/MazStepper.vue.d.ts +3 -3
- package/types/components/MazSwitch.vue.d.ts +2 -2
- package/types/components/MazTable.vue.d.ts +13 -10
- package/types/components/MazTableRow.vue.d.ts +2 -2
- package/types/components/MazTabs.vue.d.ts +4 -4
- package/types/components/MazTabsBar.vue.d.ts +7 -5
- package/types/components/MazTextarea.vue.d.ts +2 -2
- package/types/components/MazTransitionExpand.vue.d.ts +2 -2
- package/types/modules/composables/use-reading-time.d.ts +5 -5
- package/types/modules/composables/use-theme-handler.d.ts +2 -2
- package/types/modules/directives/closable.d.ts +2 -2
- package/types/modules/directives/tooltip/index.d.ts +4 -4
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
- package/types/modules/directives/v-lazy-img/index.d.ts +1 -1
- package/types/modules/filters/capitalize.d.ts +1 -1
- package/types/modules/filters/currency.d.ts +1 -1
- package/types/modules/filters/date.d.ts +1 -1
- package/types/modules/filters/index.d.ts +8 -4
- package/types/modules/filters/number.d.ts +1 -1
- package/types/modules/filters/telephone.d.ts +1 -1
- package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +1 -1
- package/types/modules/helpers/mount-component.d.ts +2 -2
- package/types/modules/helpers/normalize-string.d.ts +2 -2
- package/types/modules/helpers/swipe-handler.d.ts +2 -2
- package/types/modules/helpers/user-visibility/types.d.ts +2 -2
- package/types/modules/plugins/aos/index.d.ts +3 -3
- package/types/modules/plugins/index.d.ts +2 -2
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +3 -3
- package/types/modules/plugins/toaster/index.d.ts +1 -2
- package/types/modules/plugins/toaster/types.d.ts +6 -6
- package/types/modules/plugins/wait/utils.d.ts +4 -4
- package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
- package/types/tailwindcss/tailwind.config.d.ts +71 -9
- package/types/tailwindcss/variables/z-indexes.d.ts +11 -11
- package/components/chunks/MazBtn-BOb7Fg_d.mjs +0 -151
- package/components/chunks/MazBtn-DpkJQ_3W.mjs +0 -151
- package/components/chunks/MazBtn-Dw_CR_0X.mjs +0 -151
- package/components/chunks/MazBtn-_NGDIlQK.mjs +0 -151
- package/components/chunks/MazExpandAnimation-Cin7sZ3I.mjs +0 -58
- package/components/chunks/MazPicker-CltoTa2Z.mjs +0 -2477
- package/components/chunks/MazSelect-DDKbowf3.mjs +0 -835
- package/components/chunks/MazSpinner-2ti3NQjo.mjs +0 -38
- package/components/chunks/MazSpinner-BZUmasIf.mjs +0 -38
- package/components/chunks/MazSpinner-C-lFmcUR.mjs +0 -38
- package/components/chunks/MazSpinner-C75WMoEA.mjs +0 -38
- package/components/chunks/MazSpinner-CA38Ikqe.mjs +0 -38
- package/components/chunks/MazSpinner-CAHOYqvB.mjs +0 -38
- package/components/chunks/MazSpinner-COOp2WX8.mjs +0 -38
- package/components/chunks/MazSpinner-D-ONjGGv.mjs +0 -38
- package/components/chunks/MazSpinner-DJkziC4O.mjs +0 -38
- package/components/chunks/MazSpinner-Di0F6oZz.mjs +0 -38
- package/components/chunks/MazSpinner-EcA0uOQv.mjs +0 -38
- package/components/chunks/MazSpinner-s_0BLDqW.mjs +0 -38
- package/components/chunks/MazTable-B9JiJ2B2.mjs +0 -1950
- package/modules/chunks/MazIcon-DdFYd3W8.cjs +0 -1
- package/modules/chunks/index-RvIMpzcQ.cjs +0 -124
- package/nuxt/runtime/composables/{use-aos.mjs → use-aos.js} +0 -0
- package/nuxt/runtime/composables/{use-theme-handler.mjs → use-theme-handler.js} +1 -1
- package/nuxt/runtime/composables/{use-toast.mjs → use-toast.js} +0 -0
- package/nuxt/runtime/composables/{use-wait.mjs → use-wait.js} +0 -0
- package/nuxt/runtime/plugins/{aos.mjs → aos.js} +1 -1
- package/nuxt/runtime/plugins/{maz-icon-path.mjs → maz-icon-path.js} +0 -0
- package/nuxt/runtime/plugins/{toaster.mjs → toaster.js} +1 -1
- package/nuxt/runtime/plugins/{v-click-outside.mjs → v-click-outside.js} +1 -1
- package/nuxt/runtime/plugins/{v-fullscreen-img.mjs → v-fullscreen-img.js} +1 -1
- package/nuxt/runtime/plugins/{v-lazy-img.mjs → v-lazy-img.js} +1 -1
- package/nuxt/runtime/plugins/{v-tooltip.mjs → v-tooltip.js} +1 -1
- package/nuxt/runtime/plugins/{v-zoom-img.mjs → v-zoom-img.js} +1 -1
- package/nuxt/runtime/plugins/{wait.mjs → wait.js} +1 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-RvIMpzcQ.cjs"),T=["innerHTML"],b=t.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:a=>a}},emits:["loaded","unloaded","error"],setup(a,{emit:f}){const i={},s=t.ref(),d=t.ref(),g=()=>{try{return C.injectStrict("mazIconPath")}catch{return}},l=a,u=f,m=t.computed(()=>l.path??g()),p=t.computed(()=>l.src?l.src:m.value?`${m.value}/${l.name}.svg`:`/${l.name}.svg`);t.onMounted(()=>{!l.name&&!l.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});const h=(e,r)=>{const n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=r;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=r,e.append(o)}},S=e=>Object.keys(e).reduce((r,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(r[n]=e[n]),r),{}),y=e=>{const r={},n=e.attributes;if(!n)return r;for(let o=n.length-1;o>=0;o--)r[n[o].name]=n[o].value;return r},w=e=>{let r=e.cloneNode(!0);return r=l.transformSource(e),l.title&&h(r,l.title),e.innerHTML},E=async e=>{i[e]||(i[e]=M(e));try{s.value=await i[e],await t.nextTick(),u("loaded",d.value)}catch(r){s.value&&(s.value=void 0,u("unloaded")),delete i[e],u("error",r)}},M=e=>new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.addEventListener("load",()=>{if(o.status>=200&&o.status<400)try{let c=new DOMParser().parseFromString(o.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=l.transformSource(c),r(c)):n(new Error('Loaded file is not valid SVG"'))}catch(v){n(v)}else n(new Error("Error loading SVG"))}),o.addEventListener("error",()=>n()),o.send()});return t.watchEffect(()=>E(p.value)),(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable vue/no-v-html "),t.createCommentVNode(" eslint-disable vue/html-self-closing "),s.value?(t.openBlock(),t.createElementBlock("svg",t.mergeProps({key:0,ref_key:"svgElem",ref:d,width:"1em",height:"1em"},{...y(s.value),...S(e.$attrs)},{style:`font-size: ${a.size}`,innerHTML:w(s.value)}),null,16,T)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-enable vue/no-v-html "),t.createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}});exports.default=b;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
require('../assets/index.css');"use strict";var st=Object.defineProperty;var nt=(s,e,t)=>e in s?st(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var c=(s,e,t)=>(nt(s,typeof e!="symbol"?e+"":e,t),t);const o=require("vue");function G(s,e){const t=o.inject(s,e);if(!t)throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);return t}function ot(s,e){let t;return function(...n){clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function ye(s){return!!s}function de(s,e){let t=e==null?void 0:e.element;function n(){t&&o.render(null,t)}const i=o.createVNode(s,{...e==null?void 0:e.props,...e!=null&&e.addDestroyInProps?{destroy:n}:{}},e==null?void 0:e.children);return e!=null&&e.app?(i.appContext=e.app._context,t?o.render(i,t):typeof document<"u"&&(t=document.createElement("div"),o.render(i,t))):(t=t??document.body,o.render(i,t)),{vNode:i,destroy:n,el:t}}function w(){return typeof document<"u"}class be{constructor(e,t){c(this,"defaultOptions",{element:void 0,timeout:60*1e3*5,once:!1,immediate:!0});c(this,"options");c(this,"timeoutHandler");c(this,"isIdle",!1);c(this,"isDestroy",!1);c(this,"startTime",0);c(this,"remainingTime",0);c(this,"lastClientX",-1);c(this,"lastClientY",-1);c(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]);c(this,"handleEvent",e=>{try{if(this.remainingTime>0)return;if(e.type==="mousemove"){const{clientX:t,clientY:n}=e;if(t===void 0&&n===void 0||t===this.lastClientX&&n===this.lastClientY)return;this.lastClientX=t,this.lastClientY=n}this.resetTimeout(),this.callback({isIdle:this.isIdle,eventType:e.type})}catch(t){throw new Error(`[IdleTimeout](handleEvent) ${t}`)}});this.callback=e,this.options={...this.defaultOptions,...t},w()&&this.start()}get element(){return this.options.element??document.body}start(){if(!w()){console.warn("[IdleTimeout](start) you should run this method on client side");return}for(const e of this.eventNames)this.element.addEventListener(e,this.handleEvent);this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}pause(){const e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}resume(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}reset(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}destroy(){if(!w()){console.warn("[IdleTimeout](destroy) you should run this method on client side");return}this.isDestroy=!0;for(const e of this.eventNames)this.element.removeEventListener(e,this.handleEvent);this.timeoutHandler&&clearTimeout(this.timeoutHandler)}resetTimeout(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}handleTimeout(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}get destroyed(){return this.isDestroy}get timeout(){return this.options.timeout}set timeout(e){this.options.timeout=e}get idle(){return this.isIdle}set idle(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}class we{constructor(e,t){c(this,"eventHandlerFunction");c(this,"event","visibilitychange");c(this,"timeoutHandler");c(this,"options");c(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0});c(this,"isVisible",!1);this.callback=e,this.options={...this.defaultOptions,...t},this.eventHandlerFunction=this.eventHandler.bind(this),w()&&this.start()}start(){if(!w()){console.warn("[UserVisibility](start) you should run this method on client side");return}this.options.immediate&&this.emitCallback(),this.addEventListener()}emitCallback(){this.isVisible=document.visibilityState==="visible",this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}eventHandler(){document.visibilityState==="visible"&&!this.isVisible?(this.clearTimeout(),this.emitCallback()):document.visibilityState==="hidden"&&this.initTimeout()}clearTimeout(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}initTimeout(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}addEventListener(){document.addEventListener(this.event,this.eventHandlerFunction)}removeEventListener(){document.removeEventListener(this.event,this.eventHandlerFunction)}destroy(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}function Ee(s){return new Promise(e=>setTimeout(e,s))}class it{constructor({src:e,identifier:t,once:n=!0,async:i=!0,defer:r=!0}){c(this,"src");c(this,"script");c(this,"once");c(this,"async");c(this,"defer");c(this,"identifier");if(typeof window>"u")throw new TypeError("[ScriptLoader]: Is supported only on browser side");if(!e)throw new Error('[ScriptLoader]: You should provide the attribut "src"');if(!t)throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');this.src=e,this.identifier=t,this.once=n,this.async=i,this.defer=r}removeTag(e){var t;typeof e=="string"?(t=document.head.querySelector(`[data-identifier="${e}"]`))==null||t.remove():e.remove()}load(){const e=window,t=document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);if(this.once&&e[this.identifier]&&t.length>0)return this.script=e[this.identifier],Promise.resolve(this.script);if(!this.once&&t.length>0)for(const n of t)this.removeTag(n);return this.injectScript()}injectScript(){const e=window;return new Promise((t,n)=>{try{const i=document.createElement("script");i.src=this.src,i.async=this.async,i.defer=this.defer,i.dataset.identifier=this.identifier,i.addEventListener("error",r=>n(new Error(`[ScriptLoader](injectScript) ${r.message}`))),i.addEventListener("load",r=>(this.script=r,e[this.identifier]=r,t(r))),document.head.append(i)}catch(i){throw new Error(`[ScriptLoader](init) ${i}`)}})}}function rt(s){return[...s].map(e=>{const t=e.codePointAt(0);return t?t%32+127461:void 0}).filter(ye).map(e=>String.fromCodePoint(e)).join("")}class ze{constructor(e){c(this,"defaultOptions",{preventDefaultOnTouchMove:!1,preventDefaultOnMouseWheel:!1,threshold:50,immediate:!1,triggerOnEnd:!1});c(this,"element");c(this,"xStart");c(this,"yStart");c(this,"xEnd");c(this,"yEnd");c(this,"xDiff");c(this,"yDiff");c(this,"onToucheStartCallback");c(this,"onToucheMoveCallback");c(this,"onToucheEndCallback");c(this,"onMouseWheelCallback");c(this,"options");if(this.inputOption=e,this.options={...this.defaultOptions,...e},!this.options.element)throw new Error("[SwipeHandler] Element should be provided. Its can be a string selector or an HTMLElement");if(typeof this.options.element=="string"){const t=document.querySelector(this.options.element);if(!(t instanceof HTMLElement))throw new TypeError("[SwipeHandler] String selector for element is not found");this.element=t}else this.element=this.options.element;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.options.immediate&&this.start()}start(){this.element.addEventListener("touchstart",this.onToucheStartCallback,{passive:!0}),this.element.addEventListener("touchmove",this.onToucheMoveCallback,{passive:!0}),this.options.triggerOnEnd&&this.element.addEventListener("touchend",this.onToucheEndCallback,{passive:!0}),this.options.preventDefaultOnMouseWheel&&this.element.addEventListener("mousewheel",this.onMouseWheelCallback,{passive:!1})}stop(){this.element.removeEventListener("touchstart",this.onToucheStartCallback),this.element.removeEventListener("touchmove",this.onToucheMoveCallback),this.element.removeEventListener("touchend",this.onToucheEndCallback),this.options.preventDefaultOnMouseWheel&&this.element.removeEventListener("mousewheel",this.onMouseWheelCallback)}handleMouseWheel(e){e.preventDefault()}toucheStartHandler(e){this.xStart=e.touches[0].clientX,this.yStart=e.touches[0].clientY,this.emitValuesChanged()}emitValuesChanged(){var e,t;(t=(e=this.options).onValuesChanged)==null||t.call(e,{xStart:this.xStart,yStart:this.yStart,xEnd:this.xEnd,yEnd:this.yEnd,xDiff:this.xDiff,yDiff:this.yDiff})}handleTouchMove(e){this.options.preventDefaultOnTouchMove&&e.cancelable&&e.preventDefault(),this.xEnd=e.touches[0].clientX,this.yEnd=e.touches[0].clientY,!(!this.xStart||!this.yStart)&&(this.xDiff=this.xStart-this.xEnd,this.yDiff=this.yStart-this.yEnd,this.emitValuesChanged(),this.options.triggerOnEnd||this.runCallbacks(e))}handleTouchEnd(e){this.runCallbacks(e),this.emitValuesChanged()}runCallbacks(e){var t,n,i,r,a,u,d,g;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):(r=(i=this.options).onRight)==null||r.call(i,e):this.yDiff>0?(u=(a=this.options).onUp)==null||u.call(a,e):(g=(d=this.options).onDown)==null||g.call(d,e),this.resetValues())}resetValues(){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()}}function at(s,e){let t=0;return async function(){const n=Date.now();n-t>=e&&(await s(),t=n)}}const lt={removeAccents:!0,caseSensitive:!1,replaceSpaces:!0,removeSpecialCharacters:!1,trim:!0,normalizeSpaces:!0,removeNumbers:!1,customNormalizationForms:["NFC","NFKD"]};function le(s,e){const t={...lt,...e},n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Î:"I",Ï:"I",í:"I",î:"i",ï:"i",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ç:"C",ç:"c",ÿ:"y",Ñ:"N",ñ:"n",ó:"o"};let i=s.toString();if(t.trim&&(i=i.trim()),t.normalizeSpaces&&(i=i.replaceAll(/\s+/g," ")),t.replaceSpaces&&(i=i.replaceAll(" ","-")),t.removeNumbers&&(i=i.replaceAll(/\d/g,"")),t.removeAccents&&(i=i.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g,r=>n[r]||r),i=i.replaceAll(/[\u0300-\u036F]/g,"")),t.caseSensitive===!1&&(i=i.toLowerCase()),t.removeSpecialCharacters&&(i=i.replaceAll(/[^\dA-Za-z-]/g,"")),t.trim&&(i=i.trim()),t.customNormalizationForms)for(const r of t.customNormalizationForms)i=i.normalize(r);return i}const Q="__maz-click-outside__",Le=()=>document.ontouchstart===null?"touchstart":"click";async function Te(s,e){try{Ie(s);const t=e.instance,n=e.value,i=typeof n=="function";if(!i)throw new Error("[maz-ui](vClickOutside) the callback should be a function");await o.nextTick(),s[Q]=a=>{if((!s||a.target&&!s.contains(a.target))&&n&&i)return n.call(t,a)};const r=Le();document.addEventListener(r,s[Q],{passive:!0})}catch(t){console.error("[maz-ui](vClickOutside)",t)}}function Ie(s){try{const e=Le();document.removeEventListener(e,s[Q],!1),delete s[Q]}catch(e){console.error("[maz-ui](vClickOutside)",e)}}function ct(s,e){try{if(e.value===e.oldValue)return;Te(s,e)}catch(t){console.error("[maz-ui](vClickOutside)",t)}}const ke={mounted:Te,updated:ct,unmounted:Ie},Ce={install:s=>{s.directive("click-outside",ke)}},Se=(s,e,t)=>{var a;s.stopPropagation();const n=typeof t.value=="function"?t.value:t.value.handler,i=typeof t.value=="object"?t.value.exclude:void 0;let r=!1;if(i&&i.length>0){for(const u of i)if(!r&&s.target instanceof HTMLElement){const d=(a=document.querySelector(u))==null?void 0:a.getAttribute("id");r=s.target.getAttribute("id")===d}}!e.contains(s.target)&&!r&&(n==null||n())};function Ae(){return document.ontouchstart===null?"touchstart":"click"}function ut(s,e){const t=Ae();document.removeEventListener(t,n=>Se(n,s,e))}function mt(s,e){if(typeof e.value!="function"&&typeof e.value=="object"&&typeof e.value.handler!="function"){console.error("[maz-ui](vClosable) v-closable directive requires a handler function");return}const t=Ae();document.addEventListener(t,n=>Se(n,s,e))}const xe={mounted:mt,unmounted:ut},Oe={install:s=>{s.directive("closable",xe)}},ce={position:"top"};class Me{constructor(e={}){c(this,"options");this.options={...ce,...e}}getPosition({modifiers:e,value:t}){return e.top?"top":e.bottom?"bottom":e.left?"left":e.right?"right":typeof t=="string"?"top":t.position??this.options.position}getText({value:e}){return typeof e=="string"?e:e.text}getOpen({value:e}){return typeof e=="string"?!1:e.open??!1}getColor({value:e}){return typeof e=="string"?"default":e.color??"default"}create(e,t){e.setAttribute("data-tooltip",this.getText(t)),e.classList.add("m-tooltip");const n=this.getPosition(t);e.classList.add(`m-tooltip--${n}`),e.classList.add(`m-tooltip--${this.getColor(t)}`),this.getOpen(t)&&e.classList.add("m-tooltip--open")}update(e,t){this.remove(e,t),this.create(e,t)}remove(e,t){e.removeAttribute("data-tooltip"),e.classList.remove("m-tooltip"),e.classList.remove("m-tooltip--top"),e.classList.remove("m-tooltip--bottom"),e.classList.remove("m-tooltip--left"),e.classList.remove("m-tooltip--right"),e.classList.remove("m-tooltip--open"),e.classList.remove(`m-tooltip--${this.getColor(t)}`)}}let Y;const dt={beforeMount(s,e){const t=typeof e.value=="object"?e.value:{};return Y=new Me(t),Y.create(s,e)},updated(s,e){return Y.update(s,e)},unmounted(s,e){return Y.remove(s,e)}},He={install:(s,e=ce)=>{const t={...ce,...e},n=new Me(t);s.directive("tooltip",{beforeMount:n.create.bind(n),updated:n.update.bind(n),unmounted:n.remove.bind(n)})}},ht=`
|
|
2
|
-
.maz-zoom-img {
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
padding: 1rem;
|
|
9
|
-
z-index: 1050;
|
|
10
|
-
background-color: hsla(238, 15%, 40%, 0.7);
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.maz-zoom-img,
|
|
18
|
-
.maz-zoom-img * {
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.maz-zoom-img .maz-zoom-img__wrapper {
|
|
23
|
-
position: relative;
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
min-width: 0;
|
|
28
|
-
min-height: 0;
|
|
29
|
-
max-width: 100%;
|
|
30
|
-
max-height: 100%;
|
|
31
|
-
transition: all 300ms ease-in-out;
|
|
32
|
-
opacity: 0;
|
|
33
|
-
transform: scale(0.5);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {
|
|
37
|
-
opacity: 1;
|
|
38
|
-
transform: scale(1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__loader {
|
|
42
|
-
position: absolute;
|
|
43
|
-
top: 0;
|
|
44
|
-
bottom: 0;
|
|
45
|
-
left: 0;
|
|
46
|
-
right: 0;
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
background-color: hsla(238, 15%, 40%, 0.7);
|
|
51
|
-
border-radius: 1rem;
|
|
52
|
-
z-index: 2;
|
|
53
|
-
min-width: 60px;
|
|
54
|
-
min-height: 60px;
|
|
55
|
-
}
|
|
56
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@-webkit-keyframes spin {
|
|
61
|
-
0% { transform: rotate(0deg); }
|
|
62
|
-
100% { transform: rotate(360deg); }
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@keyframes spin {
|
|
66
|
-
0% { transform: rotate(0deg); }
|
|
67
|
-
100% { transform: rotate(360deg); }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {
|
|
71
|
-
animation: spin .6s linear infinite;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.maz-zoom-img img {
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
max-height: 100%;
|
|
77
|
-
min-width: 0;
|
|
78
|
-
border-radius: 1rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.maz-zoom-img .maz-zoom-btn {
|
|
82
|
-
margin: 0 auto;
|
|
83
|
-
border: none;
|
|
84
|
-
background-color: hsla(0, 0%, 7%, 0.5);
|
|
85
|
-
box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);
|
|
86
|
-
height: 2.2rem;
|
|
87
|
-
min-height: 2.2rem;
|
|
88
|
-
width: 2.2rem;
|
|
89
|
-
min-width: 2.2rem;
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
border-radius: 2.2rem;
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
flex: 0 0 auto;
|
|
96
|
-
outline: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.maz-zoom-img .maz-zoom-btn svg {
|
|
100
|
-
fill: white;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {
|
|
104
|
-
position: absolute;
|
|
105
|
-
top: 0.5rem;
|
|
106
|
-
right: 0.5rem;
|
|
107
|
-
z-index: 1;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {
|
|
111
|
-
position: absolute;
|
|
112
|
-
left: 0.5rem;
|
|
113
|
-
z-index: 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {
|
|
117
|
-
position: absolute;
|
|
118
|
-
right: 0.5rem;
|
|
119
|
-
z-index: 1;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.maz-zoom-img .maz-zoom-btn:hover {
|
|
123
|
-
background-color: hsl(0, 0%, 0%);
|
|
124
|
-
}`,ve={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};class ft{constructor(e){c(this,"options");c(this,"loader");c(this,"wrapper");c(this,"img");c(this,"keydownHandler");c(this,"onImgLoadedCallback");c(this,"buttonsAdded");c(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(this,"renderPreviewListener");if(!e.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if(typeof e.value=="object"&&!e.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(e),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}buildOptions(e){return{...this.defaultOptions,...typeof e.value=="object"?e.value:{src:e.value}}}get allInstances(){return[...document.querySelectorAll(".maz-zoom-img-instance")]}create(e){this.options.disabled||(e.style.cursor="pointer",setTimeout(()=>e.classList.add("maz-zoom-img-instance")),e.setAttribute("data-zoom-src",this.options.src),this.options.alt&&e.setAttribute("data-zoom-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e,this.options),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}update(e){this.options=this.buildOptions(e)}remove(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-zoom-src"),e.removeAttribute("data-zoom-alt"),e.style.cursor=""}renderPreview(e,t){e.classList.add("maz-is-open"),this.addStyle(ht);const n=document.createElement("div");n.classList.add("maz-zoom-img"),n.setAttribute("id","MazImgPreviewFullsize"),n.addEventListener("click",i=>{n.isEqualNode(i.target)&&this.closePreview()}),typeof t=="object"&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),n.append(this.wrapper),document.body.append(n),this.keyboardEventHandler(!0),setTimeout(()=>{n&&n.classList.add("maz-animate")},100)}onImgLoaded(){this.wrapper.style.width=`${this.img.width}px`,this.wrapper.style.minWidth="200px",this.loader.hidden=!0;const e=this.getButton(),t=[],n=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,n){const i=this.getButton("previous"),r=this.getButton("next");t.push(i,r)}this.wrapper.append(e),n&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}getLoader(){const e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ve.spinner,e}mouseLeave(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}keydownLister(e){e.preventDefault(),(e.key==="Escape"||e.key===" ")&&this.closePreview(),(e.key==="ArrowLeft"||e.key==="ArrowRight")&&this.nextPreviousImage(e.key==="ArrowRight")}getButton(e="close"){const t=document.createElement("button");return t.innerHTML=ve[e],t.addEventListener("click",()=>{e==="close"?this.closePreview():this.allInstances&&this.nextPreviousImage(e==="next")}),t.classList.add("maz-zoom-btn"),t.classList.add(`maz-zoom-btn--${e}`),t}closePreview(){const e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),n=document.querySelector(".maz-zoom-img-instance.maz-is-open");n&&n.classList.remove("maz-is-open"),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout(()=>{e&&e.remove(),t&&t.remove()},300)}getNewInstanceIndex(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}nextPreviousImage(e){const t=e,n=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(n){const i=this.allInstances.indexOf(n),r=t?i+1:i-1,a=this.allInstances[this.getNewInstanceIndex(r)];a&&this.useNextInstance(n,a)}}useNextInstance(e,t){e.classList.remove("maz-is-open"),t.classList.add("maz-is-open");const n=t.getAttribute("data-zoom-src"),i=t.getAttribute("data-zoom-alt");this.wrapper.style.width="",this.loader.hidden=!1,n&&this.img.setAttribute("src",n),i&&this.img.setAttribute("alt",i)}addStyle(e){const t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}keyboardEventHandler(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}imgEventHandler(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}let K;const Pe={created(s,e){K=new ft(e),K.create(s)},updated(s,e){K.update(e)},unmounted(s){K.remove(s)}},De={install(s){s.directive("zoom-img",Pe)}},vt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ue={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}};class $e{constructor(e={}){c(this,"observers",[]);c(this,"defaultOptions",ue);c(this,"options");c(this,"onImgLoadedCallback");c(this,"onImgErrorCallback");c(this,"hasImgLoaded",!1);this.options=this.buildOptions(e),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}async loadErrorPhoto(){const{default:e}=await Promise.resolve().then(()=>require("./no-photography-CLNgmzDi.cjs"));return e}buildOptions(e){return{...this.defaultOptions,...e,observerOptions:{...this.defaultOptions.observerOptions,...e.observerOptions}}}removeClass(e,t){e.classList.remove(t)}addClass(e,t){e.classList.add(t)}removeAllStateClasses(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}setBaseClass(e){this.addClass(e,this.options.baseClass)}imageIsLoading(e){var t,n;this.addClass(e,this.options.loadingClass),(n=(t=this.options).onLoading)==null||n.call(t,e)}imageHasNoPhoto(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}imageIsLoaded(e){var t,n;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),(n=(t=this.options).onLoaded)==null||n.call(t,e)}imageHasError(e){var t,n;this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),(n=(t=this.options).onError)==null||n.call(t,e),this.setDefaultPhoto(e)}getSrc(e){return typeof e.value=="object"?e.value.src:e.value}getImageUrl(e,t){const n=this.getImgElement(e).getAttribute("data-lazy-src");return n||this.getSrc(t)}async setPictureSourceUrls(e){const t=e.querySelectorAll("source");if(t.length>0)for await(const n of t){const i=n.getAttribute("data-lazy-srcset");if(i)n.srcset=i;else return this.imageHasError(e)}else this.imageHasError(e)}hasBgImgMode(e){return e.arg==="bg-image"}isPictureElement(e){return e instanceof HTMLPictureElement}getImgElement(e){return this.isPictureElement(e)?e.querySelector("img"):e}async setDefaultPhoto(e){if(this.options.noUseErrorPhoto)return;const t=this.options.fallbackSrc??this.options.errorPhoto;typeof t=="string"&&this.addClass(e,this.options.noPhotoClass);const n=t??await this.loadErrorPhoto(),i=e.querySelectorAll("source");if(i.length>0)for await(const r of i)r.srcset=n;else this.setImgSrc(e,n)}addEventListenerToImg(e){const t=this.getImgElement(e);t.addEventListener("load",()=>this.onImgLoadedCallback(e),{once:!0}),t.addEventListener("error",n=>this.onImgErrorCallback(e,n),{once:!0})}async loadImage(e,t){if(this.imageIsLoading(e),this.isPictureElement(e))this.addEventListenerToImg(e),await this.setPictureSourceUrls(e);else{const n=this.getImageUrl(e,t);if(!n)return this.imageHasError(e);this.hasBgImgMode(t)?(e.style.backgroundImage=`url('${n}')`,this.imageIsLoaded(e)):(this.addEventListenerToImg(e),this.setImgSrc(e,n))}}setImgSrc(e,t){const n=this.getImgElement(e);n.src=t}handleIntersectionObserver(e,t,n,i){var r,a;this.observers.push(i);for(const u of n)if(u.isIntersecting){if((a=(r=this.options).onIntersecting)==null||a.call(r,u.target),this.options.observerOnce&&i.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}createObserver(e,t){const n=(a,u)=>{this.handleIntersectionObserver(e,t,a,u)},i=this.options.observerOptions;new IntersectionObserver(n,i).observe(e)}async imageHandler(e,t,n){if(n==="update")for await(const i of this.observers)i.unobserve(e);window.IntersectionObserver?this.createObserver(e,t):this.loadImage(e,t)}async bindUpdateHandler(e,t,n){if(this.options.noPhoto)return this.imageHasNoPhoto(e);await this.imageHandler(e,t,n)}async add(e,t){if(this.hasBgImgMode(t)&&this.isPictureElement(e))throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);setTimeout(()=>this.setBaseClass(e),0),e.getAttribute("src")||this.setImgSrc(e,vt),await this.bindUpdateHandler(e,t,"bind")}async update(e,t){t.value!==t.oldValue&&(this.hasImgLoaded=!1,this.removeAllStateClasses(e),await this.bindUpdateHandler(e,t,"update"))}remove(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);for(const n of this.observers)n.unobserve(e);this.observers=[]}}let X;const pt={created(s,e){const t=typeof e.value=="object"?e.value:{};X=new $e(t),X.add(s,e)},updated(s,e){X.update(s,e)},unmounted(s,e){X.remove(s,e)}},Ne={install(s,e={}){const t={...ue,...e,observerOptions:{...ue.observerOptions,...e.observerOptions}},n=new $e(t);s.directive("lazy-img",{created:n.add.bind(n),updated:n.update.bind(n),unmounted:n.remove.bind(n)})}},gt=["onKeypress"],yt={class:"m-fullscreen-img-scroller"},bt=["src","alt"],wt=o.defineComponent({__name:"MazFullscreenImg",props:{src:{},clickedElementBounds:{default:void 0},offset:{default:void 0},animation:{default:()=>({duration:300,easing:"ease-in-out"})},openInstanceClass:{default:"m-fullscreen-img-instance"},clickedElement:{},destroy:{type:Function,default:void 0},alt:{default:void 0},zoom:{type:Boolean,default:!0}},emits:["close","previous","next","before-close"],setup(s,{emit:e}){const t=e,n=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-Cw1KnqLM.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),r=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./chevron-left-D2bYJFWX.cjs"))),a=s,u=o.ref(!1),d=o.ref(!1),g=o.ref(!1),E=o.ref(!1),y=o.ref(!1),v=o.ref(a.clickedElement),L=o.computed(()=>a.clickedElement.getBoundingClientRect()),H=o.computed(()=>L.value.height<L.value.width),A=o.ref(a.src),I=o.ref(a.alt),V=o.ref(),z=o.ref(),P=o.computed(()=>y.value?"--is-zoomed maz-cursor-zoom-out":"maz-cursor-zoom-in");function D(){u.value=!0,d.value=!1,g.value=!0}o.watch(()=>g.value,m=>{m&&R()});function k(){t("before-close"),ne()}function C(m){m.key==="Escape"&&(m.preventDefault(),k()),(m.key==="ArrowLeft"||m.key==="ArrowRight")&&(m.preventDefault(),$(m.key==="ArrowRight"?"next":"previous"))}function J(){document.documentElement.classList.add("--m-fullscreen-open")}function ee(){document.documentElement.classList.remove("--m-fullscreen-open")}function q(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}function te(m,h){return h<0?m.length-1:h>=m.length?0:h}async function se(m,h){m.classList.remove(a.openInstanceClass),h.classList.add(a.openInstanceClass);const l=h.getAttribute("data-src"),f=h.getAttribute("data-alt");I.value=f,l&&(A.value=l),u.value=!1,u.value||(d.value=!0)}function $(m){const h=document.querySelector(`.m-fullscreen-img-instance.${a.openInstanceClass}`);if(h){const l=q(),f=l.indexOf(h),p=m==="next"?f+1:f-1,b=l[te(l,p)];v.value=b,b&&se(h,b),t(m),y.value?U(z.value):O()}}function U(m){H.value?(m.style.width=`${window.innerWidth}px`,m.style.removeProperty("height")):(m.style.height=`${window.innerHeight}px`,m.style.removeProperty("width")),m.style.removeProperty("top"),m.style.removeProperty("left")}async function W(){const m=z.value;y.value?(y.value=!y.value,O()):(y.value=!y.value,U(m))}function N(m){var h;return(h=z.value)==null?void 0:h.animate(m,{duration:a.animation.duration,easing:a.animation.easing})}function j(m=a.offset??0){const h=(v.value instanceof HTMLImageElement?v.value.naturalWidth:v.value.clientWidth)||1,l=(v.value instanceof HTMLImageElement?v.value.naturalHeight:v.value.clientHeight)||1,f=window.innerWidth,p=window.innerHeight,b=Math.min((f-2*m)/h,(p-2*m)/l),oe=(f-h*b)/2,ie=(p-l*b)/2;return{centerX:oe,centerY:ie,originalWidth:h,originalHeight:l,scale:b}}function x({trigger:m}){const{originalWidth:h,originalHeight:l,scale:f,centerX:p,centerY:b}=j(),{top:oe,left:ie,width:et,height:tt}=L.value,fe=[{top:`${oe}px`,left:`${ie}px`,width:`${et}px`,height:`${tt}px`,opacity:0},{top:`${b}px`,left:`${p}px`,width:`${h*f}px`,height:`${l*f}px`,opacity:1}];return{frames:m==="open"?fe:fe.reverse()}}function O(){const{centerX:m,centerY:h,originalHeight:l,originalWidth:f,scale:p}=j(),b={top:`${h}px`,left:`${m}px`,width:`${f*p}px`,height:`${l*p}px`};if(!z.value)throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");Object.assign(z.value.style,b)}function R(){const{frames:m}=x({trigger:"open"}),h=N(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");h.onfinish=()=>{O()}}function ne(){const{frames:m}=x({trigger:"close"}),h=N(m);if(!h)throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");h.onfinish=()=>{var l,f;t("close"),(l=V.value)==null||l.remove(),(f=a.destroy)==null||f.call(a)}}function S(){y.value||O()}return o.onMounted(()=>{d.value=!0,document.addEventListener("keydown",C),window.addEventListener("resize",S),J(),E.value=q().length>1}),o.onBeforeUnmount(()=>{document.removeEventListener("keydown",C),window.removeEventListener("resize",S),ee()}),(m,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"FullscreenImgElement",ref:V,role:"button",class:"m-fullscreen-img",tabindex:"0",onClick:o.withModifiers(k,["stop"]),onKeypress:o.withKeys(o.withModifiers(k,["prevent"]),["esc"])},[o.withDirectives(o.createVNode(o.unref(n),{class:"m-fullscreen-img-loader maz-h-16"},null,512),[[o.vShow,d.value]]),g.value&&E.value?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:"m-fullscreen-btn --next",onClick:h[0]||(h[0]=o.withModifiers(l=>$("next"),["stop"]))},[o.createVNode(o.unref(r),{class:"maz-rotate-180 maz-text-3xl"})])):o.createCommentVNode("v-if",!0),g.value&&E.value?(o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:"m-fullscreen-btn --previous",onClick:h[1]||(h[1]=o.withModifiers(l=>$("previous"),["stop"]))},[o.createVNode(o.unref(r),{class:"maz-text-3xl"})])):o.createCommentVNode("v-if",!0),o.createElementVNode("button",{type:"button",class:"m-fullscreen-btn --close",onClick:k},[o.createVNode(o.unref(i),{class:"maz-text-3xl"})]),o.createElementVNode("div",yt,[o.createCommentVNode(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),o.createElementVNode("img",{ref_key:"ImgElement",ref:z,src:A.value,alt:I.value??void 0,tabindex:"0",class:o.normalizeClass([P.value]),onLoad:D,onClick:h[2]||(h[2]=o.withModifiers(l=>m.zoom?W():void 0,["stop"]))},null,42,bt)])],40,gt))}}),he=(s,e)=>{const t=s.__vccOpts||s;for(const[n,i]of e)t[n]=i;return t},Et=he(wt,[["__scopeId","data-v-d975dba3"]]),pe="m-fullscreen-is-open";class zt{constructor(){c(this,"options");c(this,"defaultOptions",{scaleOnHover:!1,blurOnHover:!1,disabled:!1,zoom:!0,offset:80,animation:{duration:300,easing:"ease-in-out"}});c(this,"mouseEnterListener");c(this,"mouseLeaveListener");c(this,"renderPreviewListener")}buildOptions(e,t){const n=typeof t.value=="object"?t.value:{src:t.value,alt:void 0},i=(n==null?void 0:n.src)??this.getImgSrc(e),r=(n==null?void 0:n.alt)??this.getImgAlt(e);return{...this.defaultOptions,...n,src:i,alt:r}}get allInstances(){return[...document.querySelectorAll(".m-fullscreen-img-instance")]}getImgSrc(e){var n;const t=((n=this.options)==null?void 0:n.src)||e.getAttribute("src")||e.getAttribute("data-src");if(!t)throw new Error('[maz-ui](fullscreen-img) src of image must be provided by `v-fullscreen=""`, `v-fullscreen="{ src: "" }"`, `src=""` or `data-src=""` atributes');return t}getImgAlt(e){var t;return((t=this.options)==null?void 0:t.alt)||e.getAttribute("alt")||e.getAttribute("data-alt")}create(e,t){if(this.options=this.buildOptions(e,t),this.options.disabled)return;e.style.cursor="move",(this.options.scaleOnHover||this.options.blurOnHover)&&(e.style.transition="all 200ms ease-in-out"),e.classList.add("m-fullscreen-img-instance"),e.setAttribute("data-src",this.getImgSrc(e));const n=this.getImgAlt(e);n&&e.setAttribute("data-alt",n),this.mouseEnterListener=()=>this.mouseEnter(e),this.mouseLeaveListener=()=>this.mouseLeave(e),this.renderPreviewListener=()=>this.renderPreview(e),e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener)}update(e,t){this.options=this.buildOptions(e,t)}remove(e){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=""}renderPreview(e){return e.classList.add(pe),de(Et,{props:{...this.options,openInstanceClass:pe,clickedElement:e,clickedElementBounds:e.getBoundingClientRect()},addDestroyInProps:!0})}mouseLeave(e){this.options.scaleOnHover&&(e.style.transform=""),this.options.blurOnHover&&(e.style.filter=""),e.style.zIndex=""}mouseEnter(e){e.style.zIndex="1",this.options.scaleOnHover&&(e.style.transform="scale(1.04)"),this.options.blurOnHover&&(e.style.filter="blur(3px)")}}let Z;const _e={mounted(s,e){return Z=new zt,Z.create(s,e)},updated(s,e){return Z.update(s,e)},unmounted(s){return Z.remove(s)}},Be={install(s){s.directive("fullscreen-img",_e)}},Lt=[Oe,De,Ne,Ce,Be,He],Tt={install(s){for(const e of Lt)e.install(s,{})}},Fe=s=>s?(s=s.toString(),s.charAt(0).toUpperCase()+s.slice(1)):"",It={style:"currency",minimumFractionDigits:2,round:!1},kt=(s,e,t)=>{let n=Number(s);return t.round&&(n=Math.floor(n),t.minimumFractionDigits=0),new Intl.NumberFormat(e,t).format(n)},Ct=(s,e,t)=>{if(s===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(t.currency===void 0)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")},Ve=(s,e,t)=>{const n={...It,...t};Ct(s,e,n);try{return kt(s,e,n)}catch(i){throw new Error(`[maz-ui](FilterCurrency) ${i}`)}},St={month:"short",day:"numeric",year:"numeric"},qe=(s,e,t)=>{if(e===void 0)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");const n=t??St;try{const i=s instanceof Date?s:new Date(s);return new Intl.DateTimeFormat(e,n).format(i)}catch(i){throw new Error(`[maz-ui](FilterDate) ${i}`)}},At={minimumFractionDigits:2},Ue=(s,e,t)=>{const n={...At,...t};if(s===void 0)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(e===void 0)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if(typeof e!="string")throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(e,n).format(Number(s))}catch(i){throw new Error(`[maz-ui](FilterNumber) ${i}`)}},xt={capitalize:Fe,currency:Ve,date:qe,number:Ue},Ot={install(s){s.provide("filters",xt)}};function We({timeout:s=1e3,callback:e,remainingTimeUpdate:t=200}){const n=o.ref(s),i=o.ref(s);let r;function a(y){typeof y=="number"&&(i.value=y),typeof y=="number"&&(n.value=y),u()}function u(){r||(r=setInterval(()=>{i.value-=t,i.value<=0&&(E(),e==null||e())},t))}function d(){r&&(clearInterval(r),r=void 0)}function g(){!r&&i.value>0&&u()}function E(){i.value=n.value,d()}return{remainingTime:i,start:a,pause:d,resume:g,stop:E}}const Mt={class:"m-toast__message-wrapper"},Ht={class:"m-toast__message"},Pt={class:"maz-flex maz-items-center maz-gap-2"},Dt={key:0},$t={key:4,class:"progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"},Nt=o.defineComponent({__name:"MazToast",props:{message:{default:void 0},position:{default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:[Number,Boolean],default:1e4},queue:{type:Boolean},noPauseOnHover:{type:Boolean},type:{default:"info"},link:{default:void 0},action:{default:void 0},persistent:{type:Boolean},icon:{type:Boolean,default:!0}},emits:["close","click","open"],setup(s,{expose:e,emit:t}){const n=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazBtn-Czcbhr3Z.cjs"))),i=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./x-mark-BETcRuRC.cjs"))),r=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrow-top-right-on-square-Kw3b5yYN.cjs"))),a=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-triangle-BhBdL4E2.cjs"))),u=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./exclamation-circle-Cw7wlH9H.cjs"))),d=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./information-circle-i_xlqw0y.cjs"))),g=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./check-circle-Bm2TJi5n.cjs"))),E=o.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./link-BbXTqAk3.cjs"))),y=o.ref(),v=s,L=o.computed(()=>{if(v.icon)switch(v.type){case"danger":return a;case"info":return d;case"success":return g;case"warning":return u;default:return}}),H=t,A=o.computed(()=>v.position.includes("top")?"top":"bottom"),I=o.computed(()=>v.position.includes("left")?"left":v.position.includes("right")?"right":"center"),V=o.computed(()=>I.value!=="center"?I.value==="right"?"m-slide-right":"m-slide-left":A.value==="top"?"m-slide-top":"m-slide-bottom"),z=o.ref(!1),P=o.ref(!1),D=o.ref(),k=`m-toast-container --${A.value} --${I.value}`,C=`.${k.replaceAll(" ",".")}`,{start:J,stop:ee,pause:q,resume:te,remainingTime:se}=We({callback:S,timeout:typeof v.timeout=="number"?v.timeout:0});function $(){const l=document.querySelector(C);if(!l&&!l){const f=document.body,p=document.createElement("div");p.className=k,f.append(p)}}function U(){const l=document.querySelector(C);return!v.queue&&v.maxToasts===!1?!1:typeof v.maxToasts=="number"&&l?v.maxToasts<=l.childElementCount:l&&l.childElementCount>0}function W(){if(U()){D.value=setTimeout(W,250);return}const l=document.querySelector(C);y.value&&l&&l.prepend(y.value),P.value=!0,typeof v.timeout=="number"&&v.timeout>0&&J()}const N=o.ref("100%");function j(){switch(v.type){case"danger":return"maz-bg-danger-700";case"info":return"maz-bg-info-700";case"success":return"maz-bg-success-700";case"warning":return"maz-bg-warning-700";default:return"maz-bg-secondary"}}o.watch(()=>se.value,l=>{if(typeof l=="number"&&typeof v.timeout=="number"){const f=100*l/v.timeout;N.value=`${f}%`,l<=0&&S()}});function x(l){H("click",l),v.persistent||S()}async function O(l,f){var p;z.value=!0,await l(),z.value=!1,(p=v.action)!=null&&p.closeToast&&x(f)}function R(l){v.noPauseOnHover||(l?q():te())}function ne(){ee(),D.value&&clearTimeout(D.value)}function S(){ne(),P.value=!1}e({close:S});function m(){H("open")}function h(){var f;H("close"),(f=y.value)==null||f.remove();const l=document.querySelector(C);l&&!(l!=null&&l.hasChildNodes())&&l.remove()}return o.onMounted(()=>{$(),W()}),(l,f)=>(o.openBlock(),o.createBlock(o.Transition,{name:V.value,onAfterLeave:h,onAfterEnter:m,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("button",{ref_key:"Toaster",ref:y,class:o.normalizeClass(["m-toast",[`--${l.type}`,`--${A.value}`,`--${I.value}`,{"maz-pb-1":typeof l.timeout=="number"&&l.timeout>0,"--persistent":l.persistent}]]),role:"alert",onMouseover:f[2]||(f[2]=p=>R(!0)),onMouseleave:f[3]||(f[3]=p=>R(!1)),onClick:f[4]||(f[4]=o.withModifiers(p=>{var b;return l.link&&!((b=l.link)!=null&&b.closeToast)?void 0:x(p)},["stop"]))},[L.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(L.value),{key:0,class:"maz-text-2xl"})):o.createCommentVNode("v-if",!0),o.createElementVNode("div",Mt,[o.createElementVNode("p",Ht,o.toDisplayString(l.message),1)]),l.action?(o.openBlock(),o.createBlock(o.unref(n),{key:1,"data-test":"action-btn",color:l.type,pastel:"",loading:z.value,size:"sm",onClick:f[0]||(f[0]=o.withModifiers(p=>l.action?O(l.action.func,p):void 0,["stop"]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.action.text),1)]),_:1},8,["color","loading"])):o.createCommentVNode("v-if",!0),l.link?(o.openBlock(),o.createBlock(o.unref(n),{key:2,"data-test":"link-btn",color:l.type,pastel:"",size:"xs",href:l.link.href,target:l.link.target??"_self"},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",Pt,[l.link.text?(o.openBlock(),o.createElementBlock("span",Dt,o.toDisplayString(l.link.text),1)):o.createCommentVNode("v-if",!0),((p=l.link)==null?void 0:p.target)=="_blank"?(o.openBlock(),o.createBlock(o.unref(r),{key:1,class:"maz-text-xl"})):(o.openBlock(),o.createBlock(o.unref(E),{key:2,class:"maz-text-xl"}))])]}),_:1},8,["color","href","target"])):o.createCommentVNode("v-if",!0),l.persistent?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("button",{key:3,class:"--close",onClick:f[1]||(f[1]=o.withModifiers(p=>x(p),["stop"]))},[o.createVNode(o.unref(i),{class:"--icon maz-text-xl"})])),typeof l.timeout=="number"&&l.timeout>0?(o.openBlock(),o.createElementBlock("div",$t,[o.createElementVNode("div",{style:o.normalizeStyle({width:N.value}),class:o.normalizeClass(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",j()])},null,6)])):o.createCommentVNode("v-if",!0)],34),[[o.vShow,P.value]])]),_:1},8,["name"]))}}),_t=he(Nt,[["__scopeId","data-v-b7764b1b"]]),Bt={position:"bottom-right",timeout:1e4,persistent:!1,icon:!0};class je{constructor(e,t){this.app=e,this.globalOptions=t}show(e,t){const n={...Bt,...this.globalOptions,...t,message:e},{destroy:i,vNode:r}=de(_t,{props:n,app:this.app});return{destroy:i,close:()=>{var a,u;return(u=(a=r.component)==null?void 0:a.exposed)==null?void 0:u.close()}}}getLocalOptions(e,t){return{type:e,...t}}message(e,t){return this.show(e,this.getLocalOptions("theme",t))}success(e,t){return this.show(e,this.getLocalOptions("success",t))}error(e,t){return this.show(e,this.getLocalOptions("danger",t))}info(e,t){return this.show(e,this.getLocalOptions("info",t))}warning(e,t){return this.show(e,this.getLocalOptions("warning",t))}}exports.toastInstance=void 0;const Ft={install(s,e){exports.toastInstance=new je(s,e),s.provide("toast",exports.toastInstance)}},M="",Vt=s=>s.filter((e,t,n)=>t===n.indexOf(e)),qt=s=>(e=M)=>typeof e=="function"?s.findIndex((...t)=>e(...t))>-1:s.includes(e),Ut=s=>s.length>0,Wt=s=>(e=M)=>Vt([...s,e]),jt=s=>(e=M)=>s.filter(t=>t!==e);class Re{constructor(){c(this,"_loaders",o.ref([]))}get loaders(){return o.computed(()=>this._loaders.value)}stop(e=M){this._loaders.value=jt(this._loaders.value)(e)}start(e=M){return this._loaders.value=Wt(this._loaders.value)(e),()=>this.stop(e)}get anyLoading(){return o.computed(()=>Ut(this._loaders.value))}isLoading(e=M){return o.computed(()=>qt(this._loaders.value)(e)).value}}const Ye=new Re,Rt={install:s=>{s.provide("wait",Ye)}},re={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300,delay:0}};class Ke{constructor(e){c(this,"options");this.options={delay:(e==null?void 0:e.delay)??re.delay,observer:{...re.observer,...e==null?void 0:e.observer},animation:{...re.animation,...e==null?void 0:e.animation}}}handleIntersect(e,t){for(const n of e){const r=n.target.getAttribute("data-maz-aos-children")==="true",a=n.target.getAttribute("data-maz-aos")?[n.target]:[];if(r){const u=[...document.querySelectorAll("[data-maz-aos-anchor]")].map(d=>d.getAttribute("data-maz-aos-anchor")===`#${n.target.id}`?d:void 0);for(const d of u)d&&a.push(d)}for(const u of a){const d=u.getAttribute("data-maz-aos-once"),g=typeof d=="string"?d==="true":this.options.animation.once;if(typeof this.options.observer.threshold=="number"&&n.intersectionRatio>this.options.observer.threshold){const E=u.getAttribute("data-maz-aos-duration"),y=u.getAttribute("data-maz-aos-delay");if(E||(u.style.transitionDuration=`${this.options.animation.duration}ms`,setTimeout(()=>{u.style.transitionDuration="0"},1e3)),y||(u.style.transitionDelay=`${this.options.animation.delay}ms`,setTimeout(()=>{u.style.transitionDelay="0"},1e3)),u.classList.add("maz-aos-animate"),g){const v=u.getAttribute("data-maz-aos-anchor");if(v){const L=document.querySelector(v);L&&t.unobserve(L)}t.unobserve(u)}}else u.classList.remove("maz-aos-animate")}}}async handleObserver(){await Ee(this.options.delay);const e=new IntersectionObserver(this.handleIntersect.bind(this),{...this.options.observer});for(const t of document.querySelectorAll("[data-maz-aos]")){const n=t.getAttribute("data-maz-aos-anchor");if(n){const i=document.querySelector(n);i?(i.setAttribute("data-maz-aos-children","true"),e.observe(i)):console.warn(`[maz-ui](aos) no element found with selector "${n}"`)}else e.observe(t)}}runAnimations(){if(w())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}}exports.instance$1=void 0;const Yt={install:(s,e)=>{exports.instance$1=new Ke(e),s.provide("aos",exports.instance$1),w()&&(e!=null&&e.router?e.router.afterEach(async()=>{exports.instance$1.runAnimations()}):exports.instance$1.runAnimations())}},Kt={darkClass:"dark",lightClass:"light",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light",storageThemeValueSystem:"system",watchChanges:!0},_=o.ref("system"),T=o.ref("system");function ge(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function B({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueDark:n,setLocalStorageValue:i=!0,setSelectedTheme:r=!0}){w()&&(document.documentElement.classList.remove(e),document.documentElement.classList.add(s),_.value=n,r&&(T.value=n),i&&(localStorage[t]=n))}function F({darkClass:s,lightClass:e,storageThemeKey:t,storageThemeValueLight:n,setLocalStorageValue:i=!0,setSelectedTheme:r=!0}){w()&&(document.documentElement.classList.remove(s),document.documentElement.classList.add(e),_.value=n,r&&(T.value=n),i&&(localStorage[t]=n))}function Xe({setLocalStorageValue:s=!0,...e}){if(w())return document.documentElement.classList.remove(e.darkClass),document.documentElement.classList.remove(e.lightClass),_.value=e.storageThemeValueSystem,T.value=e.storageThemeValueSystem,s&&(localStorage[e.storageThemeKey]=e.storageThemeValueSystem),me(e)}function Ze(s){if(!s.defaultTheme)return console.error("[maz-ui](useThemeHandler) No default theme set");if(!["light","dark"].includes(s.defaultTheme))return console.error('[maz-ui](useThemeHandler) Default theme must be "light" or "dark"');switch(s.defaultTheme){case"dark":return B({...s,setLocalStorageValue:!1,setSelectedTheme:!0});case"light":return F({...s,setLocalStorageValue:!1,setSelectedTheme:!0})}}function me(s){return w()?!localStorage[s.storageThemeKey]&&s.defaultTheme?Ze(s):localStorage[s.storageThemeKey]===s.storageThemeValueDark||!localStorage[s.storageThemeKey]&&ge()||localStorage[s.storageThemeKey]===s.storageThemeValueSystem&&ge()?B({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):F({...s,setLocalStorageValue:!1,setSelectedTheme:!1}):void 0}function ae({theme:s,...e}){return s==="system"?Xe(e):s==="dark"?B(e):F(e)}function Xt(s){return _.value===s.storageThemeValueDark?F(s):B(s)}function Zt(s){const e={...Kt,...s};function t(){me(e)}return o.onMounted(()=>{localStorage[e.storageThemeKey]&&(T.value=localStorage[e.storageThemeKey]),e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t)}),o.onBeforeUnmount(()=>{e.watchChanges&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}),o.watch(T,n=>{switch(localStorage[e.storageThemeKey]=n,n){case e.storageThemeValueDark:{B(e);break}case e.storageThemeValueLight:{F(e);break}case e.storageThemeValueSystem:{Xe(e);break}}}),{autoSetTheme:()=>me(e),toggleTheme:()=>Xt(e),setSystemTheme:()=>ae({...e,theme:"system"}),setDarkTheme:()=>ae({...e,theme:"dark"}),setLightTheme:()=>ae({...e,theme:"light"}),setDefaultTheme:()=>Ze(e),hasDarkTheme:o.computed(()=>T.value===e.storageThemeValueDark),hasLightTheme:o.computed(()=>T.value===e.storageThemeValueLight),hasSystemTheme:o.computed(()=>T.value===e.storageThemeValueSystem),theme:_,selectedTheme:T}}function Qt({componentName:s,providedId:e}){const t=o.getCurrentInstance();return o.computed(()=>e??`${s}-${t==null?void 0:t.uid}`)}function Gt(){return G("aos")}function Jt(){return G("wait")}function es(){return G("toast")}function ts({callback:s,options:e}){return new be(s,e)}function ss({callback:s,options:e}){return new we(s,e)}function Qe(s={}){const{internalWindow:e=w()?window:void 0,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,includeScrollbar:i=!0}=s,r=o.ref(t),a=o.ref(n);function u(){e&&(i?(r.value=e.innerWidth,a.value=e.innerHeight):(r.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))}return u(),o.onMounted(()=>{e&&window.addEventListener("resize",u,{passive:!0})}),o.onUnmounted(()=>{e&&window.removeEventListener("resize",u)}),{width:r,height:a}}function ns(s){const e={};for(const[t,n]of Object.entries(s))e[t]=Number.parseInt(n,10);return e}function os({initialWidth:s=0,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:i,breakpoints:r,mediumBreakPoint:a="md",largeBreakPoint:u="lg"}){const{width:d}=Qe({initialWidth:s,initialHeight:e,includeScrollbar:t,internalWindow:n,listenOrientation:i}),g=ns(r),E=o.computed(()=>d.value>=g[u]),y=o.computed(()=>d.value>=g[a]&&d.value<g[u]),v=o.computed(()=>d.value>=0&&d.value<g[a]);return{width:d,numericBreakpoints:g,isSmallScreen:v,isLargeScreen:E,isMediumScreen:y,breakpoints:r}}function is(s){const e=new ze({...s,element:s.element,onValuesChanged(d){t.value=d.xDiff,n.value=d.yDiff,i.value=d.xStart,r.value=d.xEnd,a.value=d.yStart,u.value=d.yEnd}}),t=o.ref(),n=o.ref(),i=o.ref(),r=o.ref(),a=o.ref(),u=o.ref();return{xDiff:t,yDiff:n,xStart:i,xEnd:r,yStart:a,yEnd:u,start:e.start,stop:e.stop}}function Ge(s){const e=s.join(", ").match(/\b\w+\b/g);return e?e.length:0}function rs(s,e=150){const t=Ge([s]);return Math.ceil(t/e)}function as(s){const e=o.computed(()=>{var a;return typeof s.velocity=="number"?s.velocity:((a=s.velocity)==null?void 0:a.value)??150}),t=o.computed(()=>{var a;return typeof s.contentSelector=="string"?s.contentSelector:(a=s.contentSelector)==null?void 0:a.value}),n=o.computed(()=>{var a,u,d;if(typeof((a=s.contentRef)==null?void 0:a.value)=="object")return(u=s.contentRef.value)==null?void 0:u.textContent;if(t.value&&typeof document<"u"){const g=document.querySelector(t.value);if(g)return g.textContent}return typeof s.content=="string"?s.content:(d=s.content)==null?void 0:d.value}),i=o.computed(()=>rs(n.value,e.value)),r=o.computed(()=>Ge([n.value]));return{content:n,wordCount:r,velocity:e,duration:i}}function ls(s,e){const t=s.length,n=e.length,i=[];for(let r=0;r<=t;r++)i[r]=[r];for(let r=0;r<=n;r++)i[0][r]=r;for(let r=1;r<=t;r++)for(let a=1;a<=n;a++){const u=s[r-1]===e[a-1]?0:1;i[r][a]=Math.min(i[r-1][a]+1,i[r][a-1]+1,i[r-1][a-1]+u)}return i[t][n]}function Je(s,e){const t=ls(s,e),n=Math.max(s.length,e.length);return 1-t/n}function cs(s,e,t=.75){return Je(s,e)>=t}function us(s,e,t=.75){const n=o.computed(()=>le(typeof s=="string"?s:s.value)),i=o.computed(()=>le(typeof e=="string"?e:e.value)),r=o.computed(()=>typeof t=="number"?t:t.value),a=o.computed(()=>Je(n.value,i.value));return{isMatching:o.computed(()=>cs(n.value,i.value,r.value)),score:a}}exports.AosHandler=Ke;exports.IdleTimeout=be;exports.ScriptLoader=it;exports.Swipe=ze;exports.ToasterHandler=je;exports.UserVisibility=we;exports.WaitHandler=Re;exports._export_sfc=he;exports.capitalize=Fe;exports.countryCodeToUnicodeFlag=rt;exports.currency=Ve;exports.date=qe;exports.debounce=ot;exports.directive=ke;exports.directive$1=pt;exports.directive$2=_e;exports.directive$3=xe;exports.directive$4=dt;exports.injectStrict=G;exports.installFilters=Ot;exports.installToaster=Ft;exports.instance=Ye;exports.isClient=w;exports.mount=de;exports.normalizeString=le;exports.number=Ue;exports.plugin=Tt;exports.plugin$1=Ce;exports.plugin$2=Ne;exports.plugin$3=De;exports.plugin$4=Be;exports.plugin$5=Oe;exports.plugin$6=He;exports.plugin$7=Rt;exports.plugin$8=Yt;exports.sleep=Ee;exports.throttle=at;exports.truthyFilter=ye;exports.useAos=Gt;exports.useBreakpoints=os;exports.useIdleTimeout=ts;exports.useInstanceUniqId=Qt;exports.useReadingTime=as;exports.useStringMatching=us;exports.useSwipe=is;exports.useThemeHandler=Zt;exports.useTimer=We;exports.useToast=es;exports.useUserVisibility=ss;exports.useWait=Jt;exports.useWindowSize=Qe;exports.vZoomImg=Pe;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useNuxtApp } from "#imports";
|
|
2
1
|
import { useThemeHandler as useThemeHandlerComposable } from "maz-ui";
|
|
2
|
+
import { useNuxtApp } from "#imports";
|
|
3
3
|
export function useThemeHandler(options) {
|
|
4
4
|
const { $config } = useNuxtApp();
|
|
5
5
|
const themeHandlerOptions = $config.public.mazUi?.injectUseThemeHandler;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineNuxtPlugin, useRouter } from "#imports";
|
|
2
1
|
import { AosHandler, installAos } from "maz-ui";
|
|
2
|
+
import { defineNuxtPlugin, useRouter } from "#imports";
|
|
3
3
|
export default defineNuxtPlugin(({ $config, vueApp }) => {
|
|
4
4
|
const aosOptions = $config.public.mazUi?.injectAos;
|
|
5
5
|
const options = typeof aosOptions === "object" ? { ...aosOptions, router: aosOptions.router ? useRouter() : void 0 } : {};
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#imports";
|
|
2
1
|
import { ToasterHandler } from "maz-ui";
|
|
2
|
+
import { defineNuxtPlugin } from "#imports";
|
|
3
3
|
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
4
4
|
const toasterOptions = $config.public.mazUi?.injectUseToast;
|
|
5
5
|
const options = typeof toasterOptions === "object" ? toasterOptions : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#imports";
|
|
2
1
|
import { vLazyImgInstall } from "maz-ui";
|
|
2
|
+
import { defineNuxtPlugin } from "#imports";
|
|
3
3
|
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
4
4
|
const vLazyImgOptions = $config.public.mazUi?.installVLazyImg;
|
|
5
5
|
const options = typeof vLazyImgOptions === "object" ? vLazyImgOptions : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#imports";
|
|
2
1
|
import { vTooltipInstall } from "maz-ui";
|
|
2
|
+
import { defineNuxtPlugin } from "#imports";
|
|
3
3
|
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
4
4
|
const installVTooltip = $config.public.mazUi?.installVTooltip;
|
|
5
5
|
const options = typeof installVTooltip === "object" ? installVTooltip : void 0;
|