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,10 +1,9 @@
|
|
|
1
|
-
import '../assets/index.css';
|
|
2
|
-
var Je =
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
import { inject as tt, createVNode as V, render as ne, nextTick as st, defineComponent as Me, defineAsyncComponent as T, ref as v, computed as p, watch as ke, onMounted as ue, onBeforeUnmount as Pe, openBlock as E, createElementBlock as B, withModifiers as A, withKeys as nt, withDirectives as $e, unref as x, vShow as _e, createCommentVNode as S, createElementVNode as O, normalizeClass as Ee, createBlock as N, Transition as ot, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as rt, normalizeStyle as at, getCurrentInstance as lt, onUnmounted as ct } from "vue";
|
|
1
|
+
import '../assets/index.css';var Ge = Object.defineProperty;
|
|
2
|
+
var Je = (s, e, t) => e in s ? Ge(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var a = (s, e, t) => (Je(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { inject as et, createVNode as V, render as ie, nextTick as tt, defineComponent as De, defineAsyncComponent as I, ref as f, computed as v, watch as ke, onMounted as ue, onBeforeUnmount as Me, openBlock as E, createElementBlock as B, withModifiers as A, withKeys as st, withDirectives as Pe, unref as x, vShow as $e, createCommentVNode as S, createElementVNode as O, normalizeClass as Ee, createBlock as N, Transition as nt, withCtx as ye, resolveDynamicComponent as it, toDisplayString as be, createTextVNode as ot, normalizeStyle as rt, getCurrentInstance as at, onUnmounted as lt } from "vue";
|
|
6
5
|
function Se(s, e) {
|
|
7
|
-
const t =
|
|
6
|
+
const t = et(s, e);
|
|
8
7
|
if (!t)
|
|
9
8
|
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${s}`);
|
|
10
9
|
return t;
|
|
@@ -17,42 +16,42 @@ function Es(s, e) {
|
|
|
17
16
|
}, e);
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function ct(s) {
|
|
21
20
|
return !!s;
|
|
22
21
|
}
|
|
23
|
-
function
|
|
22
|
+
function _e(s, e) {
|
|
24
23
|
let t = e == null ? void 0 : e.element;
|
|
25
24
|
function n() {
|
|
26
|
-
t &&
|
|
25
|
+
t && ie(null, t);
|
|
27
26
|
}
|
|
28
|
-
const
|
|
27
|
+
const i = V(
|
|
29
28
|
s,
|
|
30
29
|
{ ...e == null ? void 0 : e.props, ...e != null && e.addDestroyInProps ? { destroy: n } : {} },
|
|
31
30
|
e == null ? void 0 : e.children
|
|
32
31
|
);
|
|
33
|
-
return e != null && e.app ? (
|
|
32
|
+
return e != null && e.app ? (i.appContext = e.app._context, t ? ie(i, t) : typeof document < "u" && (t = document.createElement("div"), ie(i, t))) : (t = t ?? document.body, ie(i, t)), { vNode: i, destroy: n, el: t };
|
|
34
33
|
}
|
|
35
34
|
function L() {
|
|
36
35
|
return typeof document < "u";
|
|
37
36
|
}
|
|
38
|
-
class
|
|
37
|
+
class ut {
|
|
39
38
|
constructor(e, t) {
|
|
40
|
-
|
|
39
|
+
a(this, "defaultOptions", {
|
|
41
40
|
element: void 0,
|
|
42
41
|
timeout: 60 * 1e3 * 5,
|
|
43
42
|
// 5 minutes
|
|
44
43
|
once: !1,
|
|
45
44
|
immediate: !0
|
|
46
45
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
a(this, "options");
|
|
47
|
+
a(this, "timeoutHandler");
|
|
48
|
+
a(this, "isIdle", !1);
|
|
49
|
+
a(this, "isDestroy", !1);
|
|
50
|
+
a(this, "startTime", 0);
|
|
51
|
+
a(this, "remainingTime", 0);
|
|
52
|
+
a(this, "lastClientX", -1);
|
|
53
|
+
a(this, "lastClientY", -1);
|
|
54
|
+
a(this, "eventNames", [
|
|
56
55
|
"DOMMouseScroll",
|
|
57
56
|
"mousedown",
|
|
58
57
|
"mousemove",
|
|
@@ -65,7 +64,7 @@ class mt {
|
|
|
65
64
|
"wheel",
|
|
66
65
|
"click"
|
|
67
66
|
]);
|
|
68
|
-
|
|
67
|
+
a(this, "handleEvent", (e) => {
|
|
69
68
|
try {
|
|
70
69
|
if (this.remainingTime > 0)
|
|
71
70
|
return;
|
|
@@ -142,18 +141,18 @@ class mt {
|
|
|
142
141
|
e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle });
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
|
-
class
|
|
144
|
+
class mt {
|
|
146
145
|
constructor(e, t) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
a(this, "eventHandlerFunction");
|
|
147
|
+
a(this, "event", "visibilitychange");
|
|
148
|
+
a(this, "timeoutHandler");
|
|
149
|
+
a(this, "options");
|
|
150
|
+
a(this, "defaultOptions", {
|
|
152
151
|
timeout: 5e3,
|
|
153
152
|
once: !1,
|
|
154
153
|
immediate: !0
|
|
155
154
|
});
|
|
156
|
-
|
|
155
|
+
a(this, "isVisible", !1);
|
|
157
156
|
this.callback = e, this.options = {
|
|
158
157
|
...this.defaultOptions,
|
|
159
158
|
...t
|
|
@@ -188,24 +187,24 @@ class dt {
|
|
|
188
187
|
this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
|
-
function
|
|
190
|
+
function dt(s) {
|
|
192
191
|
return new Promise((e) => setTimeout(e, s));
|
|
193
192
|
}
|
|
194
193
|
class Ls {
|
|
195
|
-
constructor({ src: e, identifier: t, once: n = !0, async:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
194
|
+
constructor({ src: e, identifier: t, once: n = !0, async: i = !0, defer: o = !0 }) {
|
|
195
|
+
a(this, "src");
|
|
196
|
+
a(this, "script");
|
|
197
|
+
a(this, "once");
|
|
198
|
+
a(this, "async");
|
|
199
|
+
a(this, "defer");
|
|
200
|
+
a(this, "identifier");
|
|
202
201
|
if (typeof window > "u")
|
|
203
202
|
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
204
203
|
if (!e)
|
|
205
204
|
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
206
205
|
if (!t)
|
|
207
206
|
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
208
|
-
this.src = e, this.identifier = t, this.once = n, this.async =
|
|
207
|
+
this.src = e, this.identifier = t, this.once = n, this.async = i, this.defer = o;
|
|
209
208
|
}
|
|
210
209
|
removeTag(e) {
|
|
211
210
|
var t;
|
|
@@ -224,10 +223,10 @@ class Ls {
|
|
|
224
223
|
const e = window;
|
|
225
224
|
return new Promise((t, n) => {
|
|
226
225
|
try {
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
} catch (
|
|
230
|
-
throw new Error(`[ScriptLoader](init) ${
|
|
226
|
+
const i = document.createElement("script");
|
|
227
|
+
i.src = this.src, i.async = this.async, i.defer = this.defer, i.dataset.identifier = this.identifier, i.addEventListener("error", (o) => n(new Error(`[ScriptLoader](injectScript) ${o.message}`))), i.addEventListener("load", (o) => (this.script = o, e[this.identifier] = o, t(o))), document.head.append(i);
|
|
228
|
+
} catch (i) {
|
|
229
|
+
throw new Error(`[ScriptLoader](init) ${i}`);
|
|
231
230
|
}
|
|
232
231
|
});
|
|
233
232
|
}
|
|
@@ -236,29 +235,29 @@ function Ts(s) {
|
|
|
236
235
|
return [...s].map((e) => {
|
|
237
236
|
const t = e.codePointAt(0);
|
|
238
237
|
return t ? t % 32 + 127461 : void 0;
|
|
239
|
-
}).filter(
|
|
238
|
+
}).filter(ct).map((e) => String.fromCodePoint(e)).join("");
|
|
240
239
|
}
|
|
241
|
-
class
|
|
240
|
+
class ht {
|
|
242
241
|
constructor(e) {
|
|
243
|
-
|
|
242
|
+
a(this, "defaultOptions", {
|
|
244
243
|
preventDefaultOnTouchMove: !1,
|
|
245
244
|
preventDefaultOnMouseWheel: !1,
|
|
246
245
|
threshold: 50,
|
|
247
246
|
immediate: !1,
|
|
248
247
|
triggerOnEnd: !1
|
|
249
248
|
});
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
249
|
+
a(this, "element");
|
|
250
|
+
a(this, "xStart");
|
|
251
|
+
a(this, "yStart");
|
|
252
|
+
a(this, "xEnd");
|
|
253
|
+
a(this, "yEnd");
|
|
254
|
+
a(this, "xDiff");
|
|
255
|
+
a(this, "yDiff");
|
|
256
|
+
a(this, "onToucheStartCallback");
|
|
257
|
+
a(this, "onToucheMoveCallback");
|
|
258
|
+
a(this, "onToucheEndCallback");
|
|
259
|
+
a(this, "onMouseWheelCallback");
|
|
260
|
+
a(this, "options");
|
|
262
261
|
if (this.inputOption = e, this.options = { ...this.defaultOptions, ...e }, !this.options.element)
|
|
263
262
|
throw new Error(
|
|
264
263
|
"[SwipeHandler] Element should be provided. Its can be a string selector or an HTMLElement"
|
|
@@ -302,8 +301,8 @@ class ft {
|
|
|
302
301
|
this.runCallbacks(e), this.emitValuesChanged();
|
|
303
302
|
}
|
|
304
303
|
runCallbacks(e) {
|
|
305
|
-
var t, n,
|
|
306
|
-
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) : (
|
|
304
|
+
var t, n, i, o, l, c, m, g;
|
|
305
|
+
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) : (o = (i = this.options).onRight) == null || o.call(i, e) : this.yDiff > 0 ? (c = (l = this.options).onUp) == null || c.call(l, e) : (g = (m = this.options).onDown) == null || g.call(m, e), this.resetValues());
|
|
307
306
|
}
|
|
308
307
|
resetValues() {
|
|
309
308
|
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();
|
|
@@ -316,7 +315,7 @@ function Is(s, e) {
|
|
|
316
315
|
n - t >= e && (await s(), t = n);
|
|
317
316
|
};
|
|
318
317
|
}
|
|
319
|
-
const
|
|
318
|
+
const ft = {
|
|
320
319
|
removeAccents: !0,
|
|
321
320
|
caseSensitive: !1,
|
|
322
321
|
replaceSpaces: !0,
|
|
@@ -327,7 +326,7 @@ const vt = {
|
|
|
327
326
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
328
327
|
};
|
|
329
328
|
function xe(s, e) {
|
|
330
|
-
const t = { ...
|
|
329
|
+
const t = { ...ft, ...e }, n = {
|
|
331
330
|
À: "A",
|
|
332
331
|
Á: "A",
|
|
333
332
|
Â: "A",
|
|
@@ -376,96 +375,100 @@ function xe(s, e) {
|
|
|
376
375
|
ñ: "n",
|
|
377
376
|
ó: "o"
|
|
378
377
|
};
|
|
379
|
-
let
|
|
380
|
-
if (t.trim && (
|
|
381
|
-
for (const
|
|
382
|
-
|
|
383
|
-
return
|
|
384
|
-
}
|
|
385
|
-
const ce = "__maz-click-outside__"
|
|
386
|
-
|
|
378
|
+
let i = s.toString();
|
|
379
|
+
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, (o) => n[o] || o), i = i.replaceAll(/[\u0300-\u036F]/g, "")), t.caseSensitive === !1 && (i = i.toLowerCase()), t.removeSpecialCharacters && (i = i.replaceAll(/[^\dA-Z-]/gi, "")), t.trim && (i = i.trim()), t.customNormalizationForms)
|
|
380
|
+
for (const o of t.customNormalizationForms)
|
|
381
|
+
i = i.normalize(o);
|
|
382
|
+
return i;
|
|
383
|
+
}
|
|
384
|
+
const ce = "__maz-click-outside__";
|
|
385
|
+
function Fe() {
|
|
386
|
+
return document.ontouchstart === null ? "touchstart" : "click";
|
|
387
|
+
}
|
|
388
|
+
async function Ne(s, e) {
|
|
387
389
|
try {
|
|
388
|
-
|
|
389
|
-
const t = e.instance, n = e.value,
|
|
390
|
-
if (!
|
|
390
|
+
Ve(s);
|
|
391
|
+
const t = e.instance, n = e.value, i = typeof n == "function";
|
|
392
|
+
if (!i)
|
|
391
393
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
392
|
-
await
|
|
393
|
-
if ((!s ||
|
|
394
|
-
return n.call(t,
|
|
394
|
+
await tt(), s[ce] = (l) => {
|
|
395
|
+
if ((!s || l.target && !s.contains(l.target)) && n && i)
|
|
396
|
+
return n.call(t, l);
|
|
395
397
|
};
|
|
396
|
-
const
|
|
397
|
-
document.addEventListener(
|
|
398
|
+
const o = Fe();
|
|
399
|
+
document.addEventListener(o, s[ce], { passive: !0 });
|
|
398
400
|
} catch (t) {
|
|
399
401
|
console.error("[maz-ui](vClickOutside)", t);
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
|
-
function
|
|
404
|
+
function Ve(s) {
|
|
403
405
|
try {
|
|
404
|
-
const e =
|
|
406
|
+
const e = Fe();
|
|
405
407
|
document.removeEventListener(e, s[ce], !1), delete s[ce];
|
|
406
408
|
} catch (e) {
|
|
407
409
|
console.error("[maz-ui](vClickOutside)", e);
|
|
408
410
|
}
|
|
409
411
|
}
|
|
410
|
-
function
|
|
412
|
+
function vt(s, e) {
|
|
411
413
|
try {
|
|
412
414
|
if (e.value === e.oldValue)
|
|
413
415
|
return;
|
|
414
|
-
|
|
416
|
+
Ne(s, e);
|
|
415
417
|
} catch (t) {
|
|
416
418
|
console.error("[maz-ui](vClickOutside)", t);
|
|
417
419
|
}
|
|
418
420
|
}
|
|
419
|
-
const
|
|
420
|
-
mounted:
|
|
421
|
-
updated:
|
|
422
|
-
unmounted:
|
|
423
|
-
},
|
|
421
|
+
const pt = {
|
|
422
|
+
mounted: Ne,
|
|
423
|
+
updated: vt,
|
|
424
|
+
unmounted: Ve
|
|
425
|
+
}, gt = {
|
|
424
426
|
install: (s) => {
|
|
425
|
-
s.directive("click-outside",
|
|
427
|
+
s.directive("click-outside", pt);
|
|
426
428
|
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
+
};
|
|
430
|
+
function Be(s, e, t) {
|
|
431
|
+
var l;
|
|
429
432
|
s.stopPropagation();
|
|
430
|
-
const n = typeof t.value == "function" ? t.value : t.value.handler,
|
|
431
|
-
let
|
|
432
|
-
if (
|
|
433
|
-
for (const c of
|
|
434
|
-
if (!
|
|
435
|
-
const m = (
|
|
436
|
-
|
|
433
|
+
const n = typeof t.value == "function" ? t.value : t.value.handler, i = typeof t.value == "object" ? t.value.exclude : void 0;
|
|
434
|
+
let o = !1;
|
|
435
|
+
if (i && i.length > 0) {
|
|
436
|
+
for (const c of i)
|
|
437
|
+
if (!o && s.target instanceof HTMLElement) {
|
|
438
|
+
const m = (l = document.querySelector(c)) == null ? void 0 : l.getAttribute("id");
|
|
439
|
+
o = s.target.getAttribute("id") === m;
|
|
437
440
|
}
|
|
438
441
|
}
|
|
439
|
-
!e.contains(s.target) && !
|
|
440
|
-
}
|
|
441
|
-
function
|
|
442
|
+
!e.contains(s.target) && !o && (n == null || n());
|
|
443
|
+
}
|
|
444
|
+
function qe() {
|
|
442
445
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
443
446
|
}
|
|
444
|
-
function
|
|
445
|
-
const t =
|
|
446
|
-
document.removeEventListener(t, (n) =>
|
|
447
|
+
function yt(s, e) {
|
|
448
|
+
const t = qe();
|
|
449
|
+
document.removeEventListener(t, (n) => Be(n, s, e));
|
|
447
450
|
}
|
|
448
|
-
function
|
|
451
|
+
function bt(s, e) {
|
|
449
452
|
if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
|
|
450
453
|
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
451
454
|
return;
|
|
452
455
|
}
|
|
453
|
-
const t =
|
|
454
|
-
document.addEventListener(t, (n) =>
|
|
456
|
+
const t = qe();
|
|
457
|
+
document.addEventListener(t, (n) => Be(n, s, e));
|
|
455
458
|
}
|
|
456
|
-
const
|
|
457
|
-
mounted:
|
|
458
|
-
unmounted:
|
|
459
|
-
},
|
|
459
|
+
const wt = {
|
|
460
|
+
mounted: bt,
|
|
461
|
+
unmounted: yt
|
|
462
|
+
}, zt = {
|
|
460
463
|
install: (s) => {
|
|
461
|
-
s.directive("closable",
|
|
464
|
+
s.directive("closable", wt);
|
|
462
465
|
}
|
|
463
466
|
}, Le = {
|
|
464
467
|
position: "top"
|
|
465
468
|
};
|
|
466
|
-
class
|
|
469
|
+
class Ue {
|
|
467
470
|
constructor(e = {}) {
|
|
468
|
-
|
|
471
|
+
a(this, "options");
|
|
469
472
|
this.options = {
|
|
470
473
|
...Le,
|
|
471
474
|
...e
|
|
@@ -499,7 +502,7 @@ let oe;
|
|
|
499
502
|
const ks = {
|
|
500
503
|
beforeMount(s, e) {
|
|
501
504
|
const t = typeof e.value == "object" ? e.value : {};
|
|
502
|
-
return oe = new
|
|
505
|
+
return oe = new Ue(t), oe.create(s, e);
|
|
503
506
|
},
|
|
504
507
|
updated(s, e) {
|
|
505
508
|
return oe.update(s, e);
|
|
@@ -507,19 +510,19 @@ const ks = {
|
|
|
507
510
|
unmounted(s, e) {
|
|
508
511
|
return oe.remove(s, e);
|
|
509
512
|
}
|
|
510
|
-
},
|
|
513
|
+
}, Et = {
|
|
511
514
|
install: (s, e = Le) => {
|
|
512
515
|
const t = {
|
|
513
516
|
...Le,
|
|
514
517
|
...e
|
|
515
|
-
}, n = new
|
|
518
|
+
}, n = new Ue(t);
|
|
516
519
|
s.directive("tooltip", {
|
|
517
520
|
beforeMount: n.create.bind(n),
|
|
518
521
|
updated: n.update.bind(n),
|
|
519
522
|
unmounted: n.remove.bind(n)
|
|
520
523
|
});
|
|
521
524
|
}
|
|
522
|
-
},
|
|
525
|
+
}, Lt = `
|
|
523
526
|
.maz-zoom-img {
|
|
524
527
|
position: fixed;
|
|
525
528
|
top: 0;
|
|
@@ -648,23 +651,23 @@ const ks = {
|
|
|
648
651
|
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>',
|
|
649
652
|
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>'
|
|
650
653
|
};
|
|
651
|
-
class
|
|
654
|
+
class Tt {
|
|
652
655
|
constructor(e) {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
656
|
+
a(this, "options");
|
|
657
|
+
a(this, "loader");
|
|
658
|
+
a(this, "wrapper");
|
|
659
|
+
a(this, "img");
|
|
660
|
+
a(this, "keydownHandler");
|
|
661
|
+
a(this, "onImgLoadedCallback");
|
|
662
|
+
a(this, "buttonsAdded");
|
|
663
|
+
a(this, "defaultOptions", {
|
|
661
664
|
scale: !0,
|
|
662
665
|
blur: !0,
|
|
663
666
|
disabled: !1
|
|
664
667
|
});
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
+
a(this, "mouseEnterListener");
|
|
669
|
+
a(this, "mouseLeaveListener");
|
|
670
|
+
a(this, "renderPreviewListener");
|
|
668
671
|
if (!e.value)
|
|
669
672
|
throw new Error(
|
|
670
673
|
'[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`'
|
|
@@ -695,10 +698,10 @@ class It {
|
|
|
695
698
|
e.classList.add(
|
|
696
699
|
"maz-is-open"
|
|
697
700
|
/* OPEN */
|
|
698
|
-
), this.addStyle(
|
|
701
|
+
), this.addStyle(Lt);
|
|
699
702
|
const n = document.createElement("div");
|
|
700
|
-
n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (
|
|
701
|
-
n.isEqualNode(
|
|
703
|
+
n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (i) => {
|
|
704
|
+
n.isEqualNode(i.target) && this.closePreview();
|
|
702
705
|
}), 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(() => {
|
|
703
706
|
n && n.classList.add("maz-animate");
|
|
704
707
|
}, 100);
|
|
@@ -708,8 +711,8 @@ class It {
|
|
|
708
711
|
const e = this.getButton(), t = [], n = this.allInstances.length > 1;
|
|
709
712
|
if (!this.buttonsAdded) {
|
|
710
713
|
if (this.buttonsAdded = !0, n) {
|
|
711
|
-
const
|
|
712
|
-
t.push(
|
|
714
|
+
const i = this.getButton("previous"), o = this.getButton("next");
|
|
715
|
+
t.push(i, o);
|
|
713
716
|
}
|
|
714
717
|
this.wrapper.append(e), n && (this.wrapper.prepend(t[0]), this.wrapper.append(t[1]));
|
|
715
718
|
}
|
|
@@ -729,9 +732,9 @@ class It {
|
|
|
729
732
|
}
|
|
730
733
|
getButton(e = "close") {
|
|
731
734
|
const t = document.createElement("button");
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
+
t.innerHTML = Ae[e];
|
|
736
|
+
const n = e === "close" ? this.closePreview() : this.allInstances ? this.nextPreviousImage(e === "next") : null;
|
|
737
|
+
return t.addEventListener("click", () => n), t.classList.add("maz-zoom-btn"), t.classList.add(`maz-zoom-btn--${e}`), t;
|
|
735
738
|
}
|
|
736
739
|
closePreview() {
|
|
737
740
|
const e = document.querySelector("#MazImgPreviewFullsize"), t = document.querySelector("#MazPreviewStyle"), n = document.querySelector(
|
|
@@ -752,8 +755,8 @@ class It {
|
|
|
752
755
|
".maz-zoom-img-instance.maz-is-open"
|
|
753
756
|
);
|
|
754
757
|
if (n) {
|
|
755
|
-
const
|
|
756
|
-
|
|
758
|
+
const i = this.allInstances.indexOf(n), o = t ? i + 1 : i - 1, l = this.allInstances[this.getNewInstanceIndex(o)];
|
|
759
|
+
l && this.useNextInstance(n, l);
|
|
757
760
|
}
|
|
758
761
|
}
|
|
759
762
|
useNextInstance(e, t) {
|
|
@@ -764,8 +767,8 @@ class It {
|
|
|
764
767
|
"maz-is-open"
|
|
765
768
|
/* OPEN */
|
|
766
769
|
);
|
|
767
|
-
const n = t.getAttribute("data-zoom-src"),
|
|
768
|
-
this.wrapper.style.width = "", this.loader.hidden = !1, n && this.img.setAttribute("src", n),
|
|
770
|
+
const n = t.getAttribute("data-zoom-src"), i = t.getAttribute("data-zoom-alt");
|
|
771
|
+
this.wrapper.style.width = "", this.loader.hidden = !1, n && this.img.setAttribute("src", n), i && this.img.setAttribute("alt", i);
|
|
769
772
|
}
|
|
770
773
|
addStyle(e) {
|
|
771
774
|
const t = document.createElement("style");
|
|
@@ -782,22 +785,22 @@ class It {
|
|
|
782
785
|
this.img.removeEventListener("load", this.onImgLoadedCallback);
|
|
783
786
|
}
|
|
784
787
|
}
|
|
785
|
-
let
|
|
786
|
-
const
|
|
788
|
+
let re;
|
|
789
|
+
const It = {
|
|
787
790
|
created(s, e) {
|
|
788
|
-
|
|
791
|
+
re = new Tt(e), re.create(s);
|
|
789
792
|
},
|
|
790
793
|
updated(s, e) {
|
|
791
|
-
|
|
794
|
+
re.update(e);
|
|
792
795
|
},
|
|
793
796
|
unmounted(s) {
|
|
794
|
-
|
|
797
|
+
re.remove(s);
|
|
795
798
|
}
|
|
796
|
-
},
|
|
799
|
+
}, kt = {
|
|
797
800
|
install(s) {
|
|
798
|
-
s.directive("zoom-img",
|
|
801
|
+
s.directive("zoom-img", It);
|
|
799
802
|
}
|
|
800
|
-
},
|
|
803
|
+
}, St = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Te = {
|
|
801
804
|
baseClass: "m-lazy-img",
|
|
802
805
|
loadedClass: "m-lazy-loaded",
|
|
803
806
|
loadingClass: "m-lazy-loading",
|
|
@@ -811,14 +814,14 @@ const kt = {
|
|
|
811
814
|
threshold: 0.1
|
|
812
815
|
}
|
|
813
816
|
};
|
|
814
|
-
class
|
|
817
|
+
class We {
|
|
815
818
|
constructor(e = {}) {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
819
|
+
a(this, "observers", []);
|
|
820
|
+
a(this, "defaultOptions", Te);
|
|
821
|
+
a(this, "options");
|
|
822
|
+
a(this, "onImgLoadedCallback");
|
|
823
|
+
a(this, "onImgErrorCallback");
|
|
824
|
+
a(this, "hasImgLoaded", !1);
|
|
822
825
|
this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
|
|
823
826
|
}
|
|
824
827
|
async loadErrorPhoto() {
|
|
@@ -873,9 +876,9 @@ class je {
|
|
|
873
876
|
const t = e.querySelectorAll("source");
|
|
874
877
|
if (t.length > 0)
|
|
875
878
|
for await (const n of t) {
|
|
876
|
-
const
|
|
877
|
-
if (
|
|
878
|
-
n.srcset =
|
|
879
|
+
const i = n.getAttribute("data-lazy-srcset");
|
|
880
|
+
if (i)
|
|
881
|
+
n.srcset = i;
|
|
879
882
|
else
|
|
880
883
|
return this.imageHasError(e);
|
|
881
884
|
}
|
|
@@ -896,10 +899,10 @@ class je {
|
|
|
896
899
|
return;
|
|
897
900
|
const t = this.options.fallbackSrc ?? this.options.errorPhoto;
|
|
898
901
|
typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
|
|
899
|
-
const n = t ?? await this.loadErrorPhoto(),
|
|
900
|
-
if (
|
|
901
|
-
for await (const
|
|
902
|
-
|
|
902
|
+
const n = t ?? await this.loadErrorPhoto(), i = e.querySelectorAll("source");
|
|
903
|
+
if (i.length > 0)
|
|
904
|
+
for await (const o of i)
|
|
905
|
+
o.srcset = n;
|
|
903
906
|
else
|
|
904
907
|
this.setImgSrc(e, n);
|
|
905
908
|
}
|
|
@@ -923,26 +926,26 @@ class je {
|
|
|
923
926
|
const n = this.getImgElement(e);
|
|
924
927
|
n.src = t;
|
|
925
928
|
}
|
|
926
|
-
handleIntersectionObserver(e, t, n,
|
|
927
|
-
var
|
|
928
|
-
this.observers.push(
|
|
929
|
+
handleIntersectionObserver(e, t, n, i) {
|
|
930
|
+
var o, l;
|
|
931
|
+
this.observers.push(i);
|
|
929
932
|
for (const c of n)
|
|
930
933
|
if (c.isIntersecting) {
|
|
931
|
-
if ((
|
|
934
|
+
if ((l = (o = this.options).onIntersecting) == null || l.call(o, c.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
|
|
932
935
|
return;
|
|
933
936
|
this.loadImage(e, t);
|
|
934
937
|
}
|
|
935
938
|
}
|
|
936
939
|
createObserver(e, t) {
|
|
937
|
-
const n = (
|
|
938
|
-
this.handleIntersectionObserver(e, t,
|
|
939
|
-
},
|
|
940
|
-
new IntersectionObserver(n,
|
|
940
|
+
const n = (l, c) => {
|
|
941
|
+
this.handleIntersectionObserver(e, t, l, c);
|
|
942
|
+
}, i = this.options.observerOptions;
|
|
943
|
+
new IntersectionObserver(n, i).observe(e);
|
|
941
944
|
}
|
|
942
945
|
async imageHandler(e, t, n) {
|
|
943
946
|
if (n === "update")
|
|
944
|
-
for await (const
|
|
945
|
-
|
|
947
|
+
for await (const i of this.observers)
|
|
948
|
+
i.unobserve(e);
|
|
946
949
|
window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
|
|
947
950
|
}
|
|
948
951
|
async bindUpdateHandler(e, t, n) {
|
|
@@ -953,7 +956,7 @@ class je {
|
|
|
953
956
|
async add(e, t) {
|
|
954
957
|
if (this.hasBgImgMode(t) && this.isPictureElement(e))
|
|
955
958
|
throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
|
|
956
|
-
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e,
|
|
959
|
+
setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, St), await this.bindUpdateHandler(e, t, "bind");
|
|
957
960
|
}
|
|
958
961
|
async update(e, t) {
|
|
959
962
|
t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
|
|
@@ -965,19 +968,19 @@ class je {
|
|
|
965
968
|
this.observers = [];
|
|
966
969
|
}
|
|
967
970
|
}
|
|
968
|
-
let
|
|
971
|
+
let ae;
|
|
969
972
|
const Ss = {
|
|
970
973
|
created(s, e) {
|
|
971
974
|
const t = typeof e.value == "object" ? e.value : {};
|
|
972
|
-
|
|
975
|
+
ae = new We(t), ae.add(s, e);
|
|
973
976
|
},
|
|
974
977
|
updated(s, e) {
|
|
975
|
-
|
|
978
|
+
ae.update(s, e);
|
|
976
979
|
},
|
|
977
980
|
unmounted(s, e) {
|
|
978
|
-
|
|
981
|
+
ae.remove(s, e);
|
|
979
982
|
}
|
|
980
|
-
},
|
|
983
|
+
}, Ct = {
|
|
981
984
|
install(s, e = {}) {
|
|
982
985
|
const t = {
|
|
983
986
|
...Te,
|
|
@@ -986,14 +989,14 @@ const Ss = {
|
|
|
986
989
|
...Te.observerOptions,
|
|
987
990
|
...e.observerOptions
|
|
988
991
|
}
|
|
989
|
-
}, n = new
|
|
992
|
+
}, n = new We(t);
|
|
990
993
|
s.directive("lazy-img", {
|
|
991
994
|
created: n.add.bind(n),
|
|
992
995
|
updated: n.update.bind(n),
|
|
993
996
|
unmounted: n.remove.bind(n)
|
|
994
997
|
});
|
|
995
998
|
}
|
|
996
|
-
},
|
|
999
|
+
}, xt = ["onKeypress"], At = { class: "m-fullscreen-img-scroller" }, Ot = ["src", "alt"], Ht = /* @__PURE__ */ De({
|
|
997
1000
|
__name: "MazFullscreenImg",
|
|
998
1001
|
props: {
|
|
999
1002
|
src: {},
|
|
@@ -1011,23 +1014,23 @@ const Ss = {
|
|
|
1011
1014
|
},
|
|
1012
1015
|
emits: ["close", "previous", "next", "before-close"],
|
|
1013
1016
|
setup(s, { emit: e }) {
|
|
1014
|
-
const t =
|
|
1015
|
-
() =>
|
|
1016
|
-
), $ =
|
|
1017
|
-
function
|
|
1018
|
-
c.value = !0, m.value = !1,
|
|
1017
|
+
const t = s, n = e, i = I(() => import("./MazSpinner-C9_xSbZZ.mjs")), o = I(() => import("./x-mark-BP8zWe_C.mjs")), l = I(() => import("./chevron-left-CcZaP3Rc.mjs")), c = f(!1), m = f(!1), g = f(!1), z = f(!1), y = f(!1), b = f(t.clickedElement), T = v(() => t.clickedElement.getBoundingClientRect()), Q = v(
|
|
1018
|
+
() => T.value.height < T.value.width
|
|
1019
|
+
), $ = f(t.src), H = f(t.alt), G = f(), k = f(), U = v(() => y.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
|
|
1020
|
+
function W() {
|
|
1021
|
+
c.value = !0, m.value = !1, g.value = !0;
|
|
1019
1022
|
}
|
|
1020
1023
|
ke(
|
|
1021
|
-
() =>
|
|
1024
|
+
() => g.value,
|
|
1022
1025
|
(u) => {
|
|
1023
|
-
u &&
|
|
1026
|
+
u && ne();
|
|
1024
1027
|
}
|
|
1025
1028
|
);
|
|
1026
1029
|
function D() {
|
|
1027
|
-
|
|
1030
|
+
n("before-close"), ve();
|
|
1028
1031
|
}
|
|
1029
1032
|
function M(u) {
|
|
1030
|
-
u.key === "Escape" && (u.preventDefault(), D()), (u.key === "ArrowLeft" || u.key === "ArrowRight") && (u.preventDefault(),
|
|
1033
|
+
u.key === "Escape" && (u.preventDefault(), D()), (u.key === "ArrowLeft" || u.key === "ArrowRight") && (u.preventDefault(), j(u.key === "ArrowRight" ? "next" : "previous"));
|
|
1031
1034
|
}
|
|
1032
1035
|
function me() {
|
|
1033
1036
|
document.documentElement.classList.add("--m-fullscreen-open");
|
|
@@ -1035,69 +1038,69 @@ const Ss = {
|
|
|
1035
1038
|
function de() {
|
|
1036
1039
|
document.documentElement.classList.remove("--m-fullscreen-open");
|
|
1037
1040
|
}
|
|
1038
|
-
function
|
|
1041
|
+
function J() {
|
|
1039
1042
|
return [...document.querySelectorAll(".m-fullscreen-img-instance")];
|
|
1040
1043
|
}
|
|
1041
1044
|
function he(u, d) {
|
|
1042
1045
|
return d < 0 ? u.length - 1 : d >= u.length ? 0 : d;
|
|
1043
1046
|
}
|
|
1044
1047
|
async function fe(u, d) {
|
|
1045
|
-
u.classList.remove(
|
|
1046
|
-
const
|
|
1047
|
-
H.value = h,
|
|
1048
|
+
u.classList.remove(t.openInstanceClass), d.classList.add(t.openInstanceClass);
|
|
1049
|
+
const r = d.getAttribute("data-src"), h = d.getAttribute("data-alt");
|
|
1050
|
+
H.value = h, r && ($.value = r), c.value = !1, c.value || (m.value = !0);
|
|
1048
1051
|
}
|
|
1049
|
-
function
|
|
1052
|
+
function j(u) {
|
|
1050
1053
|
const d = document.querySelector(
|
|
1051
|
-
`.m-fullscreen-img-instance.${
|
|
1054
|
+
`.m-fullscreen-img-instance.${t.openInstanceClass}`
|
|
1052
1055
|
);
|
|
1053
1056
|
if (d) {
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1057
|
+
const r = J(), h = r.indexOf(d), p = u === "next" ? h + 1 : h - 1, w = r[he(r, p)];
|
|
1058
|
+
b.value = w, w && fe(d, w), n(u), y.value ? ee(k.value) : F();
|
|
1056
1059
|
}
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1059
|
-
|
|
1061
|
+
function ee(u) {
|
|
1062
|
+
Q.value ? (u.style.width = `${window.innerWidth}px`, u.style.removeProperty("height")) : (u.style.height = `${window.innerHeight}px`, u.style.removeProperty("width")), u.style.removeProperty("top"), u.style.removeProperty("left");
|
|
1060
1063
|
}
|
|
1061
|
-
async function
|
|
1062
|
-
const u =
|
|
1063
|
-
|
|
1064
|
+
async function te() {
|
|
1065
|
+
const u = k.value;
|
|
1066
|
+
y.value ? (y.value = !y.value, F()) : (y.value = !y.value, ee(u));
|
|
1064
1067
|
}
|
|
1065
|
-
function
|
|
1068
|
+
function R(u) {
|
|
1066
1069
|
var d;
|
|
1067
|
-
return (d =
|
|
1068
|
-
duration:
|
|
1070
|
+
return (d = k.value) == null ? void 0 : d.animate(u, {
|
|
1071
|
+
duration: t.animation.duration,
|
|
1069
1072
|
// Durée de l'animation en millisecondes
|
|
1070
|
-
easing:
|
|
1073
|
+
easing: t.animation.easing
|
|
1071
1074
|
// Fonction d'interpolation pour l'animation inverse
|
|
1072
1075
|
});
|
|
1073
1076
|
}
|
|
1074
|
-
function
|
|
1075
|
-
const d = (
|
|
1077
|
+
function se(u = t.offset ?? 0) {
|
|
1078
|
+
const d = (b.value instanceof HTMLImageElement ? b.value.naturalWidth : b.value.clientWidth) || 1, r = (b.value instanceof HTMLImageElement ? b.value.naturalHeight : b.value.clientHeight) || 1, h = window.innerWidth, p = window.innerHeight, w = Math.min(
|
|
1076
1079
|
(h - 2 * u) / d,
|
|
1077
|
-
(
|
|
1078
|
-
), pe = (h - d * w) / 2, ge = (
|
|
1080
|
+
(p - 2 * u) / r
|
|
1081
|
+
), pe = (h - d * w) / 2, ge = (p - r * w) / 2;
|
|
1079
1082
|
return {
|
|
1080
1083
|
centerX: pe,
|
|
1081
1084
|
centerY: ge,
|
|
1082
1085
|
originalWidth: d,
|
|
1083
|
-
originalHeight:
|
|
1086
|
+
originalHeight: r,
|
|
1084
1087
|
scale: w
|
|
1085
1088
|
};
|
|
1086
1089
|
}
|
|
1087
1090
|
function _({ trigger: u }) {
|
|
1088
|
-
const { originalWidth: d, originalHeight:
|
|
1091
|
+
const { originalWidth: d, originalHeight: r, scale: h, centerX: p, centerY: w } = se(), { top: pe, left: ge, width: Ze, height: Qe } = T.value, Ce = [
|
|
1089
1092
|
{
|
|
1090
1093
|
top: `${pe}px`,
|
|
1091
1094
|
left: `${ge}px`,
|
|
1092
|
-
width: `${
|
|
1093
|
-
height: `${
|
|
1095
|
+
width: `${Ze}px`,
|
|
1096
|
+
height: `${Qe}px`,
|
|
1094
1097
|
opacity: 0
|
|
1095
1098
|
},
|
|
1096
1099
|
{
|
|
1097
1100
|
top: `${w}px`,
|
|
1098
|
-
left: `${
|
|
1101
|
+
left: `${p}px`,
|
|
1099
1102
|
width: `${d * h}px`,
|
|
1100
|
-
height: `${
|
|
1103
|
+
height: `${r * h}px`,
|
|
1101
1104
|
opacity: 1
|
|
1102
1105
|
}
|
|
1103
1106
|
];
|
|
@@ -1106,20 +1109,20 @@ const Ss = {
|
|
|
1106
1109
|
};
|
|
1107
1110
|
}
|
|
1108
1111
|
function F() {
|
|
1109
|
-
const { centerX: u, centerY: d, originalHeight:
|
|
1112
|
+
const { centerX: u, centerY: d, originalHeight: r, originalWidth: h, scale: p } = se(), w = {
|
|
1110
1113
|
top: `${d}px`,
|
|
1111
1114
|
left: `${u}px`,
|
|
1112
|
-
width: `${h *
|
|
1113
|
-
height: `${
|
|
1115
|
+
width: `${h * p}px`,
|
|
1116
|
+
height: `${r * p}px`
|
|
1114
1117
|
};
|
|
1115
|
-
if (!
|
|
1118
|
+
if (!k.value)
|
|
1116
1119
|
throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
|
|
1117
|
-
Object.assign(
|
|
1120
|
+
Object.assign(k.value.style, w);
|
|
1118
1121
|
}
|
|
1119
|
-
function
|
|
1122
|
+
function ne() {
|
|
1120
1123
|
const { frames: u } = _({
|
|
1121
1124
|
trigger: "open"
|
|
1122
|
-
}), d =
|
|
1125
|
+
}), d = R(u);
|
|
1123
1126
|
if (!d)
|
|
1124
1127
|
throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");
|
|
1125
1128
|
d.onfinish = () => {
|
|
@@ -1129,54 +1132,54 @@ const Ss = {
|
|
|
1129
1132
|
function ve() {
|
|
1130
1133
|
const { frames: u } = _({
|
|
1131
1134
|
trigger: "close"
|
|
1132
|
-
}), d =
|
|
1135
|
+
}), d = R(u);
|
|
1133
1136
|
if (!d)
|
|
1134
1137
|
throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
|
|
1135
1138
|
d.onfinish = () => {
|
|
1136
|
-
var
|
|
1137
|
-
|
|
1139
|
+
var r, h;
|
|
1140
|
+
n("close"), (r = G.value) == null || r.remove(), (h = t.destroy) == null || h.call(t);
|
|
1138
1141
|
};
|
|
1139
1142
|
}
|
|
1140
1143
|
function P() {
|
|
1141
|
-
|
|
1144
|
+
y.value || F();
|
|
1142
1145
|
}
|
|
1143
1146
|
return ue(() => {
|
|
1144
|
-
m.value = !0, document.addEventListener("keydown", M), window.addEventListener("resize", P), me(), z.value =
|
|
1145
|
-
}),
|
|
1147
|
+
m.value = !0, document.addEventListener("keydown", M), window.addEventListener("resize", P), me(), z.value = J().length > 1;
|
|
1148
|
+
}), Me(() => {
|
|
1146
1149
|
document.removeEventListener("keydown", M), window.removeEventListener("resize", P), de();
|
|
1147
1150
|
}), (u, d) => (E(), B("div", {
|
|
1148
1151
|
ref_key: "FullscreenImgElement",
|
|
1149
|
-
ref:
|
|
1152
|
+
ref: G,
|
|
1150
1153
|
role: "button",
|
|
1151
1154
|
class: "m-fullscreen-img",
|
|
1152
1155
|
tabindex: "0",
|
|
1153
1156
|
onClick: A(D, ["stop"]),
|
|
1154
|
-
onKeypress:
|
|
1157
|
+
onKeypress: st(A(D, ["prevent"]), ["esc"])
|
|
1155
1158
|
}, [
|
|
1156
|
-
|
|
1157
|
-
x(
|
|
1159
|
+
Pe(V(
|
|
1160
|
+
x(i),
|
|
1158
1161
|
{ class: "m-fullscreen-img-loader maz-h-16" },
|
|
1159
1162
|
null,
|
|
1160
1163
|
512
|
|
1161
1164
|
/* NEED_PATCH */
|
|
1162
1165
|
), [
|
|
1163
|
-
[
|
|
1166
|
+
[$e, m.value]
|
|
1164
1167
|
]),
|
|
1165
|
-
|
|
1168
|
+
g.value && z.value ? (E(), B("button", {
|
|
1166
1169
|
key: 0,
|
|
1167
1170
|
type: "button",
|
|
1168
1171
|
class: "m-fullscreen-btn --next",
|
|
1169
|
-
onClick: d[0] || (d[0] = A((
|
|
1172
|
+
onClick: d[0] || (d[0] = A((r) => j("next"), ["stop"]))
|
|
1170
1173
|
}, [
|
|
1171
|
-
V(x(
|
|
1174
|
+
V(x(l), { class: "maz-rotate-180 maz-text-3xl" })
|
|
1172
1175
|
])) : S("v-if", !0),
|
|
1173
|
-
|
|
1176
|
+
g.value && z.value ? (E(), B("button", {
|
|
1174
1177
|
key: 1,
|
|
1175
1178
|
type: "button",
|
|
1176
1179
|
class: "m-fullscreen-btn --previous",
|
|
1177
|
-
onClick: d[1] || (d[1] = A((
|
|
1180
|
+
onClick: d[1] || (d[1] = A((r) => j("previous"), ["stop"]))
|
|
1178
1181
|
}, [
|
|
1179
|
-
V(x(
|
|
1182
|
+
V(x(l), { class: "maz-text-3xl" })
|
|
1180
1183
|
])) : S("v-if", !0),
|
|
1181
1184
|
O("button", {
|
|
1182
1185
|
type: "button",
|
|
@@ -1185,31 +1188,31 @@ const Ss = {
|
|
|
1185
1188
|
}, [
|
|
1186
1189
|
V(x(o), { class: "maz-text-3xl" })
|
|
1187
1190
|
]),
|
|
1188
|
-
O("div",
|
|
1191
|
+
O("div", At, [
|
|
1189
1192
|
S(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
|
|
1190
1193
|
O("img", {
|
|
1191
1194
|
ref_key: "ImgElement",
|
|
1192
|
-
ref:
|
|
1195
|
+
ref: k,
|
|
1193
1196
|
src: $.value,
|
|
1194
1197
|
alt: H.value ?? void 0,
|
|
1195
1198
|
tabindex: "0",
|
|
1196
|
-
class: Ee([
|
|
1197
|
-
onLoad:
|
|
1198
|
-
onClick: d[2] || (d[2] = A((
|
|
1199
|
-
}, null, 42,
|
|
1199
|
+
class: Ee([U.value]),
|
|
1200
|
+
onLoad: W,
|
|
1201
|
+
onClick: d[2] || (d[2] = A((r) => u.zoom ? te() : void 0, ["stop"]))
|
|
1202
|
+
}, null, 42, Ot)
|
|
1200
1203
|
])
|
|
1201
|
-
], 40,
|
|
1204
|
+
], 40, xt));
|
|
1202
1205
|
}
|
|
1203
|
-
}),
|
|
1206
|
+
}), je = (s, e) => {
|
|
1204
1207
|
const t = s.__vccOpts || s;
|
|
1205
|
-
for (const [n,
|
|
1206
|
-
t[n] =
|
|
1208
|
+
for (const [n, i] of e)
|
|
1209
|
+
t[n] = i;
|
|
1207
1210
|
return t;
|
|
1208
|
-
},
|
|
1209
|
-
class
|
|
1211
|
+
}, Dt = /* @__PURE__ */ je(Ht, [["__scopeId", "data-v-884a2c57"]]), Oe = "m-fullscreen-is-open";
|
|
1212
|
+
class Mt {
|
|
1210
1213
|
constructor() {
|
|
1211
|
-
|
|
1212
|
-
|
|
1214
|
+
a(this, "options");
|
|
1215
|
+
a(this, "defaultOptions", {
|
|
1213
1216
|
scaleOnHover: !1,
|
|
1214
1217
|
blurOnHover: !1,
|
|
1215
1218
|
disabled: !1,
|
|
@@ -1220,17 +1223,17 @@ class Pt {
|
|
|
1220
1223
|
easing: "ease-in-out"
|
|
1221
1224
|
}
|
|
1222
1225
|
});
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
+
a(this, "mouseEnterListener");
|
|
1227
|
+
a(this, "mouseLeaveListener");
|
|
1228
|
+
a(this, "renderPreviewListener");
|
|
1226
1229
|
}
|
|
1227
1230
|
buildOptions(e, t) {
|
|
1228
|
-
const n = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 },
|
|
1231
|
+
const n = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, i = (n == null ? void 0 : n.src) ?? this.getImgSrc(e), o = (n == null ? void 0 : n.alt) ?? this.getImgAlt(e);
|
|
1229
1232
|
return {
|
|
1230
1233
|
...this.defaultOptions,
|
|
1231
1234
|
...n,
|
|
1232
|
-
src:
|
|
1233
|
-
alt:
|
|
1235
|
+
src: i,
|
|
1236
|
+
alt: o
|
|
1234
1237
|
};
|
|
1235
1238
|
}
|
|
1236
1239
|
get allInstances() {
|
|
@@ -1263,7 +1266,7 @@ class Pt {
|
|
|
1263
1266
|
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 = "";
|
|
1264
1267
|
}
|
|
1265
1268
|
renderPreview(e) {
|
|
1266
|
-
return e.classList.add(Oe),
|
|
1269
|
+
return e.classList.add(Oe), _e(Dt, {
|
|
1267
1270
|
props: {
|
|
1268
1271
|
...this.options,
|
|
1269
1272
|
openInstanceClass: Oe,
|
|
@@ -1280,41 +1283,47 @@ class Pt {
|
|
|
1280
1283
|
e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
|
|
1281
1284
|
}
|
|
1282
1285
|
}
|
|
1283
|
-
let
|
|
1284
|
-
const
|
|
1286
|
+
let le;
|
|
1287
|
+
const Pt = {
|
|
1285
1288
|
mounted(s, e) {
|
|
1286
|
-
return
|
|
1289
|
+
return le = new Mt(), le.create(s, e);
|
|
1287
1290
|
},
|
|
1288
1291
|
updated(s, e) {
|
|
1289
|
-
return
|
|
1292
|
+
return le.update(s, e);
|
|
1290
1293
|
},
|
|
1291
1294
|
unmounted(s) {
|
|
1292
|
-
return
|
|
1295
|
+
return le.remove(s);
|
|
1293
1296
|
}
|
|
1294
|
-
},
|
|
1297
|
+
}, $t = {
|
|
1295
1298
|
install(s) {
|
|
1296
|
-
s.directive("fullscreen-img",
|
|
1297
|
-
}
|
|
1298
|
-
},
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1299
|
+
s.directive("fullscreen-img", Pt);
|
|
1300
|
+
}
|
|
1301
|
+
}, _t = [
|
|
1302
|
+
zt,
|
|
1303
|
+
kt,
|
|
1304
|
+
Ct,
|
|
1305
|
+
gt,
|
|
1306
|
+
$t,
|
|
1307
|
+
Et
|
|
1305
1308
|
], Cs = {
|
|
1306
1309
|
install(s) {
|
|
1307
|
-
for (const e of
|
|
1310
|
+
for (const e of _t)
|
|
1308
1311
|
e.install(s, {});
|
|
1309
1312
|
}
|
|
1310
|
-
}
|
|
1313
|
+
};
|
|
1314
|
+
function Ft(s) {
|
|
1315
|
+
return s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "";
|
|
1316
|
+
}
|
|
1317
|
+
const Nt = {
|
|
1311
1318
|
style: "currency",
|
|
1312
1319
|
minimumFractionDigits: 2,
|
|
1313
1320
|
round: !1
|
|
1314
|
-
}
|
|
1321
|
+
};
|
|
1322
|
+
function Vt(s, e, t) {
|
|
1315
1323
|
let n = Number(s);
|
|
1316
1324
|
return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
|
|
1317
|
-
}
|
|
1325
|
+
}
|
|
1326
|
+
function Bt(s, e, t) {
|
|
1318
1327
|
if (s === void 0)
|
|
1319
1328
|
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
1320
1329
|
if (e === void 0)
|
|
@@ -1323,38 +1332,43 @@ const $t = {
|
|
|
1323
1332
|
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");
|
|
1324
1333
|
if (t.currency === void 0)
|
|
1325
1334
|
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
1326
|
-
}
|
|
1335
|
+
}
|
|
1336
|
+
function qt(s, e, t) {
|
|
1327
1337
|
const n = {
|
|
1328
|
-
...
|
|
1338
|
+
...Nt,
|
|
1329
1339
|
...t
|
|
1330
1340
|
};
|
|
1331
|
-
|
|
1341
|
+
Bt(s, e, n);
|
|
1332
1342
|
try {
|
|
1333
|
-
return
|
|
1334
|
-
} catch (
|
|
1335
|
-
throw new Error(`[maz-ui](FilterCurrency) ${
|
|
1343
|
+
return Vt(s, e, n);
|
|
1344
|
+
} catch (i) {
|
|
1345
|
+
throw new Error(`[maz-ui](FilterCurrency) ${i}`);
|
|
1336
1346
|
}
|
|
1337
|
-
}
|
|
1347
|
+
}
|
|
1348
|
+
const Ut = {
|
|
1338
1349
|
month: "short",
|
|
1339
1350
|
day: "numeric",
|
|
1340
1351
|
year: "numeric"
|
|
1341
|
-
}
|
|
1352
|
+
};
|
|
1353
|
+
function Wt(s, e, t) {
|
|
1342
1354
|
if (e === void 0)
|
|
1343
1355
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
1344
1356
|
if (typeof e != "string")
|
|
1345
1357
|
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
1346
|
-
const n = t ??
|
|
1358
|
+
const n = t ?? Ut;
|
|
1347
1359
|
try {
|
|
1348
|
-
const
|
|
1349
|
-
return new Intl.DateTimeFormat(e, n).format(
|
|
1350
|
-
} catch (
|
|
1351
|
-
throw new Error(`[maz-ui](FilterDate) ${
|
|
1360
|
+
const i = s instanceof Date ? s : new Date(s);
|
|
1361
|
+
return new Intl.DateTimeFormat(e, n).format(i);
|
|
1362
|
+
} catch (i) {
|
|
1363
|
+
throw new Error(`[maz-ui](FilterDate) ${i}`);
|
|
1352
1364
|
}
|
|
1353
|
-
}
|
|
1365
|
+
}
|
|
1366
|
+
const jt = {
|
|
1354
1367
|
minimumFractionDigits: 2
|
|
1355
|
-
}
|
|
1368
|
+
};
|
|
1369
|
+
function Rt(s, e, t) {
|
|
1356
1370
|
const n = {
|
|
1357
|
-
...
|
|
1371
|
+
...jt,
|
|
1358
1372
|
...t
|
|
1359
1373
|
};
|
|
1360
1374
|
if (s === void 0)
|
|
@@ -1365,51 +1379,52 @@ const $t = {
|
|
|
1365
1379
|
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");
|
|
1366
1380
|
try {
|
|
1367
1381
|
return new Intl.NumberFormat(e, n).format(Number(s));
|
|
1368
|
-
} catch (
|
|
1369
|
-
throw new Error(`[maz-ui](FilterNumber) ${
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1382
|
+
} catch (i) {
|
|
1383
|
+
throw new Error(`[maz-ui](FilterNumber) ${i}`);
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
const Yt = {
|
|
1387
|
+
capitalize: Ft,
|
|
1388
|
+
currency: qt,
|
|
1389
|
+
date: Wt,
|
|
1390
|
+
number: Rt
|
|
1376
1391
|
}, xs = {
|
|
1377
1392
|
install(s) {
|
|
1378
|
-
s.provide("filters",
|
|
1393
|
+
s.provide("filters", Yt);
|
|
1379
1394
|
}
|
|
1380
1395
|
};
|
|
1381
|
-
function
|
|
1382
|
-
const n =
|
|
1383
|
-
let
|
|
1384
|
-
function
|
|
1385
|
-
typeof
|
|
1396
|
+
function Kt({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200 }) {
|
|
1397
|
+
const n = f(s), i = f(s);
|
|
1398
|
+
let o;
|
|
1399
|
+
function l(y) {
|
|
1400
|
+
typeof y == "number" && (i.value = y), typeof y == "number" && (n.value = y), c();
|
|
1386
1401
|
}
|
|
1387
1402
|
function c() {
|
|
1388
|
-
|
|
1389
|
-
|
|
1403
|
+
o || (o = setInterval(() => {
|
|
1404
|
+
i.value -= t, i.value <= 0 && (z(), e == null || e());
|
|
1390
1405
|
}, t));
|
|
1391
1406
|
}
|
|
1392
1407
|
function m() {
|
|
1393
|
-
|
|
1408
|
+
o && (clearInterval(o), o = void 0);
|
|
1394
1409
|
}
|
|
1395
|
-
function
|
|
1396
|
-
!
|
|
1410
|
+
function g() {
|
|
1411
|
+
!o && i.value > 0 && c();
|
|
1397
1412
|
}
|
|
1398
1413
|
function z() {
|
|
1399
|
-
|
|
1414
|
+
i.value = n.value, m();
|
|
1400
1415
|
}
|
|
1401
1416
|
return {
|
|
1402
|
-
remainingTime:
|
|
1403
|
-
start:
|
|
1417
|
+
remainingTime: i,
|
|
1418
|
+
start: l,
|
|
1404
1419
|
pause: m,
|
|
1405
|
-
resume:
|
|
1420
|
+
resume: g,
|
|
1406
1421
|
stop: z
|
|
1407
1422
|
};
|
|
1408
1423
|
}
|
|
1409
|
-
const
|
|
1424
|
+
const Xt = { class: "m-toast__message-wrapper" }, Zt = { class: "m-toast__message" }, Qt = { class: "maz-flex maz-items-center maz-gap-2" }, Gt = { key: 0 }, Jt = {
|
|
1410
1425
|
key: 4,
|
|
1411
1426
|
class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
|
|
1412
|
-
},
|
|
1427
|
+
}, es = /* @__PURE__ */ De({
|
|
1413
1428
|
__name: "MazToast",
|
|
1414
1429
|
props: {
|
|
1415
1430
|
message: { default: void 0 },
|
|
@@ -1426,54 +1441,54 @@ const Zt = { class: "m-toast__message-wrapper" }, Qt = { class: "m-toast__messag
|
|
|
1426
1441
|
},
|
|
1427
1442
|
emits: ["close", "click", "open"],
|
|
1428
1443
|
setup(s, { expose: e, emit: t }) {
|
|
1429
|
-
const n =
|
|
1444
|
+
const n = s, i = t, o = I(() => import("./MazBtn-UBHTKqaN.mjs")), l = I(() => import("./x-mark-BP8zWe_C.mjs")), c = I(
|
|
1430
1445
|
() => import("./arrow-top-right-on-square-CkcBq4qD.mjs")
|
|
1431
|
-
),
|
|
1446
|
+
), m = I(
|
|
1432
1447
|
() => import("./exclamation-triangle-BfZLmRbP.mjs")
|
|
1433
|
-
),
|
|
1448
|
+
), g = I(
|
|
1434
1449
|
() => import("./exclamation-circle-DzBJ8vGa.mjs")
|
|
1435
|
-
),
|
|
1450
|
+
), z = I(
|
|
1436
1451
|
() => import("./information-circle-C0pE_7kr.mjs")
|
|
1437
|
-
), y =
|
|
1438
|
-
if (
|
|
1439
|
-
switch (
|
|
1452
|
+
), y = I(() => import("./check-circle-CtCMBYyp.mjs")), b = I(() => import("./link-D7FkvsK4.mjs")), T = f(), Q = v(() => {
|
|
1453
|
+
if (n.icon)
|
|
1454
|
+
switch (n.type) {
|
|
1440
1455
|
case "danger":
|
|
1441
|
-
return r;
|
|
1442
|
-
case "info":
|
|
1443
1456
|
return m;
|
|
1457
|
+
case "info":
|
|
1458
|
+
return z;
|
|
1444
1459
|
case "success":
|
|
1445
1460
|
return y;
|
|
1446
1461
|
case "warning":
|
|
1447
|
-
return
|
|
1462
|
+
return g;
|
|
1448
1463
|
default:
|
|
1449
1464
|
return;
|
|
1450
1465
|
}
|
|
1451
|
-
}),
|
|
1466
|
+
}), $ = v(() => n.position.includes("top") ? "top" : "bottom"), H = v(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), G = v(() => H.value !== "center" ? H.value === "right" ? "m-slide-right" : "m-slide-left" : $.value === "top" ? "m-slide-top" : "m-slide-bottom"), k = f(!1), U = f(!1), W = f(), D = `m-toast-container --${$.value} --${H.value}`, M = `.${D.replaceAll(" ", ".")}`, { start: me, stop: de, pause: J, resume: he, remainingTime: fe } = Kt({
|
|
1452
1467
|
callback: P,
|
|
1453
|
-
timeout: typeof
|
|
1468
|
+
timeout: typeof n.timeout == "number" ? n.timeout : 0
|
|
1454
1469
|
});
|
|
1455
|
-
function
|
|
1456
|
-
const
|
|
1457
|
-
if (!
|
|
1458
|
-
const h = document.body,
|
|
1459
|
-
|
|
1470
|
+
function j() {
|
|
1471
|
+
const r = document.querySelector(M);
|
|
1472
|
+
if (!r && !r) {
|
|
1473
|
+
const h = document.body, p = document.createElement("div");
|
|
1474
|
+
p.className = D, h.append(p);
|
|
1460
1475
|
}
|
|
1461
1476
|
}
|
|
1462
|
-
function J() {
|
|
1463
|
-
const a = document.querySelector(M);
|
|
1464
|
-
return !f.queue && f.maxToasts === !1 ? !1 : typeof f.maxToasts == "number" && a ? f.maxToasts <= a.childElementCount : a && a.childElementCount > 0;
|
|
1465
|
-
}
|
|
1466
1477
|
function ee() {
|
|
1467
|
-
|
|
1468
|
-
|
|
1478
|
+
const r = document.querySelector(M);
|
|
1479
|
+
return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && r ? n.maxToasts <= r.childElementCount : r && r.childElementCount > 0;
|
|
1480
|
+
}
|
|
1481
|
+
function te() {
|
|
1482
|
+
if (ee()) {
|
|
1483
|
+
W.value = setTimeout(te, 250);
|
|
1469
1484
|
return;
|
|
1470
1485
|
}
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1486
|
+
const r = document.querySelector(M);
|
|
1487
|
+
T.value && r && r.prepend(T.value), U.value = !0, typeof n.timeout == "number" && n.timeout > 0 && me();
|
|
1473
1488
|
}
|
|
1474
|
-
const
|
|
1475
|
-
function
|
|
1476
|
-
switch (
|
|
1489
|
+
const R = f("100%");
|
|
1490
|
+
function se() {
|
|
1491
|
+
switch (n.type) {
|
|
1477
1492
|
case "danger":
|
|
1478
1493
|
return "maz-bg-danger-700";
|
|
1479
1494
|
case "info":
|
|
@@ -1488,93 +1503,93 @@ const Zt = { class: "m-toast__message-wrapper" }, Qt = { class: "m-toast__messag
|
|
|
1488
1503
|
}
|
|
1489
1504
|
ke(
|
|
1490
1505
|
() => fe.value,
|
|
1491
|
-
(
|
|
1492
|
-
if (typeof
|
|
1493
|
-
const h = 100 *
|
|
1494
|
-
|
|
1506
|
+
(r) => {
|
|
1507
|
+
if (typeof n.timeout == "number") {
|
|
1508
|
+
const h = 100 * r / n.timeout;
|
|
1509
|
+
R.value = `${h}%`, r <= 0 && P();
|
|
1495
1510
|
}
|
|
1496
1511
|
}
|
|
1497
1512
|
);
|
|
1498
|
-
function _(
|
|
1499
|
-
|
|
1513
|
+
function _(r) {
|
|
1514
|
+
i("click", r), n.persistent || P();
|
|
1500
1515
|
}
|
|
1501
|
-
async function F(
|
|
1502
|
-
var
|
|
1503
|
-
|
|
1516
|
+
async function F(r, h) {
|
|
1517
|
+
var p;
|
|
1518
|
+
k.value = !0, await r(), k.value = !1, (p = n.action) != null && p.closeToast && _(h);
|
|
1504
1519
|
}
|
|
1505
|
-
function
|
|
1506
|
-
|
|
1520
|
+
function ne(r) {
|
|
1521
|
+
n.noPauseOnHover || (r ? J() : he());
|
|
1507
1522
|
}
|
|
1508
1523
|
function ve() {
|
|
1509
|
-
de(),
|
|
1524
|
+
de(), W.value && clearTimeout(W.value);
|
|
1510
1525
|
}
|
|
1511
1526
|
function P() {
|
|
1512
|
-
ve(),
|
|
1527
|
+
ve(), U.value = !1;
|
|
1513
1528
|
}
|
|
1514
1529
|
e({ close: P });
|
|
1515
1530
|
function u() {
|
|
1516
|
-
|
|
1531
|
+
i("open");
|
|
1517
1532
|
}
|
|
1518
1533
|
function d() {
|
|
1519
1534
|
var h;
|
|
1520
|
-
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1535
|
+
i("close"), (h = T.value) == null || h.remove();
|
|
1536
|
+
const r = document.querySelector(M);
|
|
1537
|
+
r && !(r != null && r.hasChildNodes()) && r.remove();
|
|
1523
1538
|
}
|
|
1524
1539
|
return ue(() => {
|
|
1525
|
-
|
|
1526
|
-
}), (
|
|
1527
|
-
name:
|
|
1540
|
+
j(), te();
|
|
1541
|
+
}), (r, h) => (E(), N(nt, {
|
|
1542
|
+
name: G.value,
|
|
1528
1543
|
onAfterLeave: d,
|
|
1529
1544
|
onAfterEnter: u,
|
|
1530
1545
|
persisted: ""
|
|
1531
1546
|
}, {
|
|
1532
1547
|
default: ye(() => [
|
|
1533
|
-
|
|
1548
|
+
Pe(O(
|
|
1534
1549
|
"button",
|
|
1535
1550
|
{
|
|
1536
1551
|
ref_key: "Toaster",
|
|
1537
|
-
ref:
|
|
1552
|
+
ref: T,
|
|
1538
1553
|
class: Ee(["m-toast", [
|
|
1539
|
-
`--${
|
|
1554
|
+
`--${r.type}`,
|
|
1540
1555
|
`--${$.value}`,
|
|
1541
1556
|
`--${H.value}`,
|
|
1542
|
-
{ "maz-pb-1": typeof
|
|
1557
|
+
{ "maz-pb-1": typeof r.timeout == "number" && r.timeout > 0, "--persistent": r.persistent }
|
|
1543
1558
|
]]),
|
|
1544
1559
|
role: "alert",
|
|
1545
|
-
onMouseover: h[2] || (h[2] = (
|
|
1546
|
-
onMouseleave: h[3] || (h[3] = (
|
|
1547
|
-
onClick: h[4] || (h[4] = A((
|
|
1560
|
+
onMouseover: h[2] || (h[2] = (p) => ne(!0)),
|
|
1561
|
+
onMouseleave: h[3] || (h[3] = (p) => ne(!1)),
|
|
1562
|
+
onClick: h[4] || (h[4] = A((p) => {
|
|
1548
1563
|
var w;
|
|
1549
|
-
return
|
|
1564
|
+
return r.link && !((w = r.link) != null && w.closeToast) ? void 0 : _(p);
|
|
1550
1565
|
}, ["stop"]))
|
|
1551
1566
|
},
|
|
1552
1567
|
[
|
|
1553
|
-
|
|
1568
|
+
Q.value ? (E(), N(it(Q.value), {
|
|
1554
1569
|
key: 0,
|
|
1555
1570
|
class: "maz-text-2xl"
|
|
1556
1571
|
})) : S("v-if", !0),
|
|
1557
|
-
O("div",
|
|
1572
|
+
O("div", Xt, [
|
|
1558
1573
|
O(
|
|
1559
1574
|
"p",
|
|
1560
|
-
|
|
1561
|
-
be(
|
|
1575
|
+
Zt,
|
|
1576
|
+
be(r.message),
|
|
1562
1577
|
1
|
|
1563
1578
|
/* TEXT */
|
|
1564
1579
|
)
|
|
1565
1580
|
]),
|
|
1566
|
-
|
|
1581
|
+
r.action ? (E(), N(x(o), {
|
|
1567
1582
|
key: 1,
|
|
1568
1583
|
"data-test": "action-btn",
|
|
1569
|
-
color:
|
|
1584
|
+
color: r.type,
|
|
1570
1585
|
pastel: "",
|
|
1571
|
-
loading:
|
|
1586
|
+
loading: k.value,
|
|
1572
1587
|
size: "sm",
|
|
1573
|
-
onClick: h[0] || (h[0] = A((
|
|
1588
|
+
onClick: h[0] || (h[0] = A((p) => r.action ? F(r.action.func, p) : void 0, ["stop"]))
|
|
1574
1589
|
}, {
|
|
1575
1590
|
default: ye(() => [
|
|
1576
|
-
|
|
1577
|
-
be(
|
|
1591
|
+
ot(
|
|
1592
|
+
be(r.action.text),
|
|
1578
1593
|
1
|
|
1579
1594
|
/* TEXT */
|
|
1580
1595
|
)
|
|
@@ -1582,30 +1597,30 @@ const Zt = { class: "m-toast__message-wrapper" }, Qt = { class: "m-toast__messag
|
|
|
1582
1597
|
_: 1
|
|
1583
1598
|
/* STABLE */
|
|
1584
1599
|
}, 8, ["color", "loading"])) : S("v-if", !0),
|
|
1585
|
-
|
|
1600
|
+
r.link ? (E(), N(x(o), {
|
|
1586
1601
|
key: 2,
|
|
1587
1602
|
"data-test": "link-btn",
|
|
1588
|
-
color:
|
|
1603
|
+
color: r.type,
|
|
1589
1604
|
pastel: "",
|
|
1590
1605
|
size: "xs",
|
|
1591
|
-
href:
|
|
1592
|
-
target:
|
|
1606
|
+
href: r.link.href,
|
|
1607
|
+
target: r.link.target ?? "_self"
|
|
1593
1608
|
}, {
|
|
1594
1609
|
default: ye(() => {
|
|
1595
|
-
var
|
|
1610
|
+
var p;
|
|
1596
1611
|
return [
|
|
1597
|
-
O("div",
|
|
1598
|
-
|
|
1612
|
+
O("div", Qt, [
|
|
1613
|
+
r.link.text ? (E(), B(
|
|
1599
1614
|
"span",
|
|
1600
|
-
|
|
1601
|
-
be(
|
|
1615
|
+
Gt,
|
|
1616
|
+
be(r.link.text),
|
|
1602
1617
|
1
|
|
1603
1618
|
/* TEXT */
|
|
1604
1619
|
)) : S("v-if", !0),
|
|
1605
|
-
((
|
|
1620
|
+
((p = r.link) == null ? void 0 : p.target) === "_blank" ? (E(), N(x(c), {
|
|
1606
1621
|
key: 1,
|
|
1607
1622
|
class: "maz-text-xl"
|
|
1608
|
-
})) : (E(), N(x(
|
|
1623
|
+
})) : (E(), N(x(b), {
|
|
1609
1624
|
key: 2,
|
|
1610
1625
|
class: "maz-text-xl"
|
|
1611
1626
|
}))
|
|
@@ -1615,21 +1630,21 @@ const Zt = { class: "m-toast__message-wrapper" }, Qt = { class: "m-toast__messag
|
|
|
1615
1630
|
_: 1
|
|
1616
1631
|
/* STABLE */
|
|
1617
1632
|
}, 8, ["color", "href", "target"])) : S("v-if", !0),
|
|
1618
|
-
|
|
1633
|
+
r.persistent ? S("v-if", !0) : (E(), B("button", {
|
|
1619
1634
|
key: 3,
|
|
1620
1635
|
class: "--close",
|
|
1621
|
-
onClick: h[1] || (h[1] = A((
|
|
1636
|
+
onClick: h[1] || (h[1] = A((p) => _(p), ["stop"]))
|
|
1622
1637
|
}, [
|
|
1623
|
-
V(x(
|
|
1638
|
+
V(x(l), { class: "--icon maz-text-xl" })
|
|
1624
1639
|
])),
|
|
1625
|
-
typeof
|
|
1640
|
+
typeof r.timeout == "number" && r.timeout > 0 ? (E(), B("div", Jt, [
|
|
1626
1641
|
O(
|
|
1627
1642
|
"div",
|
|
1628
1643
|
{
|
|
1629
|
-
style:
|
|
1630
|
-
width:
|
|
1644
|
+
style: rt({
|
|
1645
|
+
width: R.value
|
|
1631
1646
|
}),
|
|
1632
|
-
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear",
|
|
1647
|
+
class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", se()])
|
|
1633
1648
|
},
|
|
1634
1649
|
null,
|
|
1635
1650
|
6
|
|
@@ -1640,38 +1655,38 @@ const Zt = { class: "m-toast__message-wrapper" }, Qt = { class: "m-toast__messag
|
|
|
1640
1655
|
34
|
|
1641
1656
|
/* CLASS, NEED_HYDRATION */
|
|
1642
1657
|
), [
|
|
1643
|
-
[
|
|
1658
|
+
[$e, U.value]
|
|
1644
1659
|
])
|
|
1645
1660
|
]),
|
|
1646
1661
|
_: 1
|
|
1647
1662
|
/* STABLE */
|
|
1648
1663
|
}, 8, ["name"]));
|
|
1649
1664
|
}
|
|
1650
|
-
}),
|
|
1665
|
+
}), ts = /* @__PURE__ */ je(es, [["__scopeId", "data-v-18377575"]]), ss = {
|
|
1651
1666
|
position: "bottom-right",
|
|
1652
1667
|
timeout: 1e4,
|
|
1653
1668
|
persistent: !1,
|
|
1654
1669
|
icon: !0
|
|
1655
1670
|
};
|
|
1656
|
-
class
|
|
1671
|
+
class ns {
|
|
1657
1672
|
constructor(e, t) {
|
|
1658
1673
|
this.app = e, this.globalOptions = t;
|
|
1659
1674
|
}
|
|
1660
1675
|
show(e, t) {
|
|
1661
1676
|
const n = {
|
|
1662
|
-
...
|
|
1677
|
+
...ss,
|
|
1663
1678
|
...this.globalOptions,
|
|
1664
1679
|
...t,
|
|
1665
1680
|
message: e
|
|
1666
|
-
}, { destroy:
|
|
1681
|
+
}, { destroy: i, vNode: o } = _e(ts, {
|
|
1667
1682
|
props: n,
|
|
1668
1683
|
app: this.app
|
|
1669
1684
|
});
|
|
1670
1685
|
return {
|
|
1671
|
-
destroy:
|
|
1686
|
+
destroy: i,
|
|
1672
1687
|
close: () => {
|
|
1673
|
-
var
|
|
1674
|
-
return (c = (
|
|
1688
|
+
var l, c;
|
|
1689
|
+
return (c = (l = o.component) == null ? void 0 : l.exposed) == null ? void 0 : c.close();
|
|
1675
1690
|
}
|
|
1676
1691
|
};
|
|
1677
1692
|
}
|
|
@@ -1697,18 +1712,33 @@ class os {
|
|
|
1697
1712
|
return this.show(e, this.getLocalOptions("warning", t));
|
|
1698
1713
|
}
|
|
1699
1714
|
}
|
|
1700
|
-
|
|
1715
|
+
function is(s, e) {
|
|
1716
|
+
return new ns(s, e);
|
|
1717
|
+
}
|
|
1701
1718
|
const As = {
|
|
1702
1719
|
install(s, e) {
|
|
1703
|
-
|
|
1720
|
+
s.provide("toast", is(s, e));
|
|
1704
1721
|
}
|
|
1705
|
-
}, q = ""
|
|
1722
|
+
}, q = "";
|
|
1723
|
+
function os(s) {
|
|
1724
|
+
return s.filter((e, t, n) => t === n.indexOf(e));
|
|
1725
|
+
}
|
|
1726
|
+
function rs(s) {
|
|
1727
|
+
return (e = q) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
|
|
1728
|
+
}
|
|
1729
|
+
const as = (s) => s.length > 0;
|
|
1730
|
+
function ls(s) {
|
|
1731
|
+
return (e = q) => os([...s, e]);
|
|
1732
|
+
}
|
|
1733
|
+
function cs(s) {
|
|
1734
|
+
return (e = q) => s.filter((t) => t !== e);
|
|
1735
|
+
}
|
|
1706
1736
|
class us {
|
|
1707
1737
|
constructor() {
|
|
1708
|
-
|
|
1738
|
+
a(this, "_loaders", f([]));
|
|
1709
1739
|
}
|
|
1710
1740
|
get loaders() {
|
|
1711
|
-
return
|
|
1741
|
+
return v(() => this._loaders.value);
|
|
1712
1742
|
}
|
|
1713
1743
|
stop(e = q) {
|
|
1714
1744
|
this._loaders.value = cs(this._loaders.value)(e);
|
|
@@ -1717,10 +1747,10 @@ class us {
|
|
|
1717
1747
|
return this._loaders.value = ls(this._loaders.value)(e), () => this.stop(e);
|
|
1718
1748
|
}
|
|
1719
1749
|
get anyLoading() {
|
|
1720
|
-
return
|
|
1750
|
+
return v(() => as(this._loaders.value));
|
|
1721
1751
|
}
|
|
1722
1752
|
isLoading(e = q) {
|
|
1723
|
-
return
|
|
1753
|
+
return v(() => rs(this._loaders.value)(e)).value;
|
|
1724
1754
|
}
|
|
1725
1755
|
}
|
|
1726
1756
|
const ms = new us(), Os = {
|
|
@@ -1742,7 +1772,7 @@ const ms = new us(), Os = {
|
|
|
1742
1772
|
};
|
|
1743
1773
|
class ds {
|
|
1744
1774
|
constructor(e) {
|
|
1745
|
-
|
|
1775
|
+
a(this, "options");
|
|
1746
1776
|
this.options = {
|
|
1747
1777
|
delay: (e == null ? void 0 : e.delay) ?? we.delay,
|
|
1748
1778
|
observer: {
|
|
@@ -1757,27 +1787,27 @@ class ds {
|
|
|
1757
1787
|
}
|
|
1758
1788
|
handleIntersect(e, t) {
|
|
1759
1789
|
for (const n of e) {
|
|
1760
|
-
const
|
|
1761
|
-
if (
|
|
1790
|
+
const o = n.target.getAttribute("data-maz-aos-children") === "true", l = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
|
|
1791
|
+
if (o) {
|
|
1762
1792
|
const c = [...document.querySelectorAll("[data-maz-aos-anchor]")].map(
|
|
1763
1793
|
(m) => m.getAttribute("data-maz-aos-anchor") === `#${n.target.id}` ? m : void 0
|
|
1764
1794
|
);
|
|
1765
1795
|
for (const m of c)
|
|
1766
|
-
m &&
|
|
1796
|
+
m && l.push(m);
|
|
1767
1797
|
}
|
|
1768
|
-
for (const c of
|
|
1769
|
-
const m = c.getAttribute("data-maz-aos-once"),
|
|
1798
|
+
for (const c of l) {
|
|
1799
|
+
const m = c.getAttribute("data-maz-aos-once"), g = typeof m == "string" ? m === "true" : this.options.animation.once;
|
|
1770
1800
|
if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
|
|
1771
|
-
const z = c.getAttribute("data-maz-aos-duration"),
|
|
1801
|
+
const z = c.getAttribute("data-maz-aos-duration"), y = c.getAttribute("data-maz-aos-delay");
|
|
1772
1802
|
if (z || (c.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
|
|
1773
1803
|
c.style.transitionDuration = "0";
|
|
1774
|
-
}, 1e3)),
|
|
1804
|
+
}, 1e3)), y || (c.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
|
|
1775
1805
|
c.style.transitionDelay = "0";
|
|
1776
|
-
}, 1e3)), c.classList.add("maz-aos-animate"),
|
|
1777
|
-
const
|
|
1778
|
-
if (
|
|
1779
|
-
const
|
|
1780
|
-
|
|
1806
|
+
}, 1e3)), c.classList.add("maz-aos-animate"), g) {
|
|
1807
|
+
const b = c.getAttribute("data-maz-aos-anchor");
|
|
1808
|
+
if (b) {
|
|
1809
|
+
const T = document.querySelector(b);
|
|
1810
|
+
T && t.unobserve(T);
|
|
1781
1811
|
}
|
|
1782
1812
|
t.unobserve(c);
|
|
1783
1813
|
}
|
|
@@ -1787,15 +1817,15 @@ class ds {
|
|
|
1787
1817
|
}
|
|
1788
1818
|
}
|
|
1789
1819
|
async handleObserver() {
|
|
1790
|
-
await
|
|
1820
|
+
await dt(this.options.delay);
|
|
1791
1821
|
const e = new IntersectionObserver(this.handleIntersect.bind(this), {
|
|
1792
1822
|
...this.options.observer
|
|
1793
1823
|
});
|
|
1794
1824
|
for (const t of document.querySelectorAll("[data-maz-aos]")) {
|
|
1795
1825
|
const n = t.getAttribute("data-maz-aos-anchor");
|
|
1796
1826
|
if (n) {
|
|
1797
|
-
const
|
|
1798
|
-
|
|
1827
|
+
const i = document.querySelector(n);
|
|
1828
|
+
i ? (i.setAttribute("data-maz-aos-children", "true"), e.observe(i)) : console.warn(`[maz-ui](aos) no element found with selector "${n}"`);
|
|
1799
1829
|
} else
|
|
1800
1830
|
e.observe(t);
|
|
1801
1831
|
}
|
|
@@ -1806,14 +1836,18 @@ class ds {
|
|
|
1806
1836
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
1807
1837
|
}
|
|
1808
1838
|
}
|
|
1809
|
-
let
|
|
1839
|
+
let Y;
|
|
1810
1840
|
const Hs = {
|
|
1811
1841
|
install: (s, e) => {
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
}) :
|
|
1842
|
+
Y = new ds(e), s.provide("aos", Y), L() && (e != null && e.router ? e.router.afterEach(async () => {
|
|
1843
|
+
Y.runAnimations();
|
|
1844
|
+
}) : Y.runAnimations());
|
|
1815
1845
|
}
|
|
1816
|
-
}
|
|
1846
|
+
};
|
|
1847
|
+
function Ds() {
|
|
1848
|
+
return Y;
|
|
1849
|
+
}
|
|
1850
|
+
const hs = {
|
|
1817
1851
|
darkClass: "dark",
|
|
1818
1852
|
lightClass: "light",
|
|
1819
1853
|
storageThemeKey: "theme",
|
|
@@ -1821,8 +1855,8 @@ const Hs = {
|
|
|
1821
1855
|
storageThemeValueLight: "light",
|
|
1822
1856
|
storageThemeValueSystem: "system",
|
|
1823
1857
|
watchChanges: !0
|
|
1824
|
-
}, K =
|
|
1825
|
-
function
|
|
1858
|
+
}, K = f("system"), C = f("system");
|
|
1859
|
+
function He() {
|
|
1826
1860
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
1827
1861
|
}
|
|
1828
1862
|
function X({
|
|
@@ -1830,29 +1864,29 @@ function X({
|
|
|
1830
1864
|
lightClass: e,
|
|
1831
1865
|
storageThemeKey: t,
|
|
1832
1866
|
storageThemeValueDark: n,
|
|
1833
|
-
setLocalStorageValue:
|
|
1834
|
-
setSelectedTheme:
|
|
1867
|
+
setLocalStorageValue: i = !0,
|
|
1868
|
+
setSelectedTheme: o = !0
|
|
1835
1869
|
}) {
|
|
1836
|
-
L() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), K.value = n,
|
|
1870
|
+
L() && (document.documentElement.classList.remove(e), document.documentElement.classList.add(s), K.value = n, o && (C.value = n), i && (localStorage[t] = n));
|
|
1837
1871
|
}
|
|
1838
1872
|
function Z({
|
|
1839
1873
|
darkClass: s,
|
|
1840
1874
|
lightClass: e,
|
|
1841
1875
|
storageThemeKey: t,
|
|
1842
1876
|
storageThemeValueLight: n,
|
|
1843
|
-
setLocalStorageValue:
|
|
1844
|
-
setSelectedTheme:
|
|
1877
|
+
setLocalStorageValue: i = !0,
|
|
1878
|
+
setSelectedTheme: o = !0
|
|
1845
1879
|
}) {
|
|
1846
|
-
L() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), K.value = n,
|
|
1880
|
+
L() && (document.documentElement.classList.remove(s), document.documentElement.classList.add(e), K.value = n, o && (C.value = n), i && (localStorage[t] = n));
|
|
1847
1881
|
}
|
|
1848
|
-
function
|
|
1882
|
+
function Re({
|
|
1849
1883
|
setLocalStorageValue: s = !0,
|
|
1850
1884
|
...e
|
|
1851
1885
|
}) {
|
|
1852
1886
|
if (L())
|
|
1853
1887
|
return document.documentElement.classList.remove(e.darkClass), document.documentElement.classList.remove(e.lightClass), K.value = e.storageThemeValueSystem, C.value = e.storageThemeValueSystem, s && (localStorage[e.storageThemeKey] = e.storageThemeValueSystem), Ie(e);
|
|
1854
1888
|
}
|
|
1855
|
-
function
|
|
1889
|
+
function Ye(s) {
|
|
1856
1890
|
if (!s.defaultTheme)
|
|
1857
1891
|
return console.error("[maz-ui](useThemeHandler) No default theme set");
|
|
1858
1892
|
if (!["light", "dark"].includes(s.defaultTheme))
|
|
@@ -1873,7 +1907,7 @@ function Ke(s) {
|
|
|
1873
1907
|
}
|
|
1874
1908
|
}
|
|
1875
1909
|
function Ie(s) {
|
|
1876
|
-
return L() ? !localStorage[s.storageThemeKey] && s.defaultTheme ?
|
|
1910
|
+
return L() ? !localStorage[s.storageThemeKey] && s.defaultTheme ? Ye(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && He() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && He() ? X({
|
|
1877
1911
|
...s,
|
|
1878
1912
|
setLocalStorageValue: !1,
|
|
1879
1913
|
setSelectedTheme: !1
|
|
@@ -1887,12 +1921,12 @@ function ze({
|
|
|
1887
1921
|
theme: s,
|
|
1888
1922
|
...e
|
|
1889
1923
|
}) {
|
|
1890
|
-
return s === "system" ?
|
|
1924
|
+
return s === "system" ? Re(e) : s === "dark" ? X(e) : Z(e);
|
|
1891
1925
|
}
|
|
1892
1926
|
function fs(s) {
|
|
1893
1927
|
return K.value === s.storageThemeValueDark ? Z(s) : X(s);
|
|
1894
1928
|
}
|
|
1895
|
-
function
|
|
1929
|
+
function Ms(s) {
|
|
1896
1930
|
const e = {
|
|
1897
1931
|
...hs,
|
|
1898
1932
|
...s
|
|
@@ -1902,7 +1936,7 @@ function Ds(s) {
|
|
|
1902
1936
|
}
|
|
1903
1937
|
return ue(() => {
|
|
1904
1938
|
localStorage[e.storageThemeKey] && (C.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
|
|
1905
|
-
}),
|
|
1939
|
+
}), Me(() => {
|
|
1906
1940
|
e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
|
|
1907
1941
|
}), ke(C, (n) => {
|
|
1908
1942
|
switch (localStorage[e.storageThemeKey] = n, n) {
|
|
@@ -1915,7 +1949,7 @@ function Ds(s) {
|
|
|
1915
1949
|
break;
|
|
1916
1950
|
}
|
|
1917
1951
|
case e.storageThemeValueSystem: {
|
|
1918
|
-
|
|
1952
|
+
Re(e);
|
|
1919
1953
|
break;
|
|
1920
1954
|
}
|
|
1921
1955
|
}
|
|
@@ -1925,237 +1959,236 @@ function Ds(s) {
|
|
|
1925
1959
|
setSystemTheme: () => ze({ ...e, theme: "system" }),
|
|
1926
1960
|
setDarkTheme: () => ze({ ...e, theme: "dark" }),
|
|
1927
1961
|
setLightTheme: () => ze({ ...e, theme: "light" }),
|
|
1928
|
-
setDefaultTheme: () =>
|
|
1929
|
-
hasDarkTheme:
|
|
1930
|
-
hasLightTheme:
|
|
1931
|
-
hasSystemTheme:
|
|
1962
|
+
setDefaultTheme: () => Ye(e),
|
|
1963
|
+
hasDarkTheme: v(() => C.value === e.storageThemeValueDark),
|
|
1964
|
+
hasLightTheme: v(() => C.value === e.storageThemeValueLight),
|
|
1965
|
+
hasSystemTheme: v(() => C.value === e.storageThemeValueSystem),
|
|
1932
1966
|
theme: K,
|
|
1933
1967
|
selectedTheme: C
|
|
1934
1968
|
};
|
|
1935
1969
|
}
|
|
1936
|
-
function
|
|
1970
|
+
function Ps({
|
|
1937
1971
|
componentName: s,
|
|
1938
1972
|
providedId: e
|
|
1939
1973
|
}) {
|
|
1940
|
-
const t =
|
|
1941
|
-
return
|
|
1974
|
+
const t = at();
|
|
1975
|
+
return v(() => e ?? `${s}-${t == null ? void 0 : t.uid}`);
|
|
1942
1976
|
}
|
|
1943
|
-
function
|
|
1977
|
+
function $s() {
|
|
1944
1978
|
return Se("aos");
|
|
1945
1979
|
}
|
|
1946
|
-
function
|
|
1980
|
+
function _s() {
|
|
1947
1981
|
return Se("wait");
|
|
1948
1982
|
}
|
|
1949
|
-
function
|
|
1983
|
+
function Fs() {
|
|
1950
1984
|
return Se("toast");
|
|
1951
1985
|
}
|
|
1952
|
-
function
|
|
1986
|
+
function Ns({
|
|
1953
1987
|
callback: s,
|
|
1954
1988
|
options: e
|
|
1955
1989
|
}) {
|
|
1956
|
-
return new
|
|
1990
|
+
return new ut(s, e);
|
|
1957
1991
|
}
|
|
1958
|
-
function
|
|
1992
|
+
function Vs({
|
|
1959
1993
|
callback: s,
|
|
1960
1994
|
options: e
|
|
1961
1995
|
}) {
|
|
1962
|
-
return new
|
|
1996
|
+
return new mt(s, e);
|
|
1997
|
+
}
|
|
1998
|
+
function vs(s) {
|
|
1999
|
+
const e = {};
|
|
2000
|
+
for (const [t, n] of Object.entries(s))
|
|
2001
|
+
e[t] = Number.parseInt(n, 10);
|
|
2002
|
+
return e;
|
|
1963
2003
|
}
|
|
1964
|
-
function
|
|
2004
|
+
function ps(s = {}) {
|
|
1965
2005
|
const {
|
|
1966
2006
|
internalWindow: e = L() ? window : void 0,
|
|
1967
2007
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
1968
2008
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
1969
|
-
includeScrollbar:
|
|
1970
|
-
} = s,
|
|
2009
|
+
includeScrollbar: i = !0
|
|
2010
|
+
} = s, o = f(t), l = f(n);
|
|
1971
2011
|
function c() {
|
|
1972
|
-
e && (
|
|
2012
|
+
e && (i ? (o.value = e.innerWidth, l.value = e.innerHeight) : (o.value = e.document.documentElement.clientWidth, l.value = e.document.documentElement.clientHeight));
|
|
1973
2013
|
}
|
|
1974
2014
|
return c(), ue(() => {
|
|
1975
2015
|
e && window.addEventListener("resize", c, { passive: !0 });
|
|
1976
|
-
}),
|
|
2016
|
+
}), lt(() => {
|
|
1977
2017
|
e && window.removeEventListener("resize", c);
|
|
1978
|
-
}), { width:
|
|
2018
|
+
}), { width: o, height: l };
|
|
1979
2019
|
}
|
|
1980
|
-
function
|
|
1981
|
-
const e = {};
|
|
1982
|
-
for (const [t, n] of Object.entries(s))
|
|
1983
|
-
e[t] = Number.parseInt(n, 10);
|
|
1984
|
-
return e;
|
|
1985
|
-
}
|
|
1986
|
-
function Vs({
|
|
2020
|
+
function Bs({
|
|
1987
2021
|
initialWidth: s = 0,
|
|
1988
2022
|
initialHeight: e,
|
|
1989
2023
|
includeScrollbar: t,
|
|
1990
2024
|
internalWindow: n,
|
|
1991
|
-
listenOrientation:
|
|
1992
|
-
breakpoints:
|
|
1993
|
-
mediumBreakPoint:
|
|
2025
|
+
listenOrientation: i,
|
|
2026
|
+
breakpoints: o,
|
|
2027
|
+
mediumBreakPoint: l = "md",
|
|
1994
2028
|
largeBreakPoint: c = "lg"
|
|
1995
2029
|
}) {
|
|
1996
|
-
const { width: m } =
|
|
2030
|
+
const { width: m } = ps({
|
|
1997
2031
|
initialWidth: s,
|
|
1998
2032
|
// (SSR) mobile first
|
|
1999
2033
|
initialHeight: e,
|
|
2000
2034
|
includeScrollbar: t,
|
|
2001
2035
|
internalWindow: n,
|
|
2002
|
-
listenOrientation:
|
|
2003
|
-
}),
|
|
2004
|
-
() => m.value >=
|
|
2005
|
-
),
|
|
2036
|
+
listenOrientation: i
|
|
2037
|
+
}), g = vs(o), z = v(() => m.value >= g[c]), y = v(
|
|
2038
|
+
() => m.value >= g[l] && m.value < g[c]
|
|
2039
|
+
), b = v(() => m.value >= 0 && m.value < g[l]);
|
|
2006
2040
|
return {
|
|
2007
2041
|
width: m,
|
|
2008
|
-
numericBreakpoints:
|
|
2009
|
-
isSmallScreen:
|
|
2042
|
+
numericBreakpoints: g,
|
|
2043
|
+
isSmallScreen: b,
|
|
2010
2044
|
isLargeScreen: z,
|
|
2011
|
-
isMediumScreen:
|
|
2012
|
-
breakpoints:
|
|
2045
|
+
isMediumScreen: y,
|
|
2046
|
+
breakpoints: o
|
|
2013
2047
|
};
|
|
2014
2048
|
}
|
|
2015
|
-
function
|
|
2016
|
-
const e = new
|
|
2049
|
+
function qs(s) {
|
|
2050
|
+
const e = f(), t = f(), n = f(), i = f(), o = f(), l = f(), c = new ht({
|
|
2017
2051
|
...s,
|
|
2018
2052
|
element: s.element,
|
|
2019
2053
|
onValuesChanged(m) {
|
|
2020
|
-
|
|
2054
|
+
e.value = m.xDiff, t.value = m.yDiff, n.value = m.xStart, i.value = m.xEnd, o.value = m.yStart, l.value = m.yEnd;
|
|
2021
2055
|
}
|
|
2022
|
-
})
|
|
2056
|
+
});
|
|
2023
2057
|
return {
|
|
2024
|
-
xDiff:
|
|
2025
|
-
yDiff:
|
|
2026
|
-
xStart:
|
|
2058
|
+
xDiff: e,
|
|
2059
|
+
yDiff: t,
|
|
2060
|
+
xStart: n,
|
|
2027
2061
|
xEnd: i,
|
|
2028
|
-
yStart:
|
|
2029
|
-
yEnd:
|
|
2030
|
-
start:
|
|
2031
|
-
stop:
|
|
2062
|
+
yStart: o,
|
|
2063
|
+
yEnd: l,
|
|
2064
|
+
start: c.start,
|
|
2065
|
+
stop: c.stop
|
|
2032
2066
|
};
|
|
2033
2067
|
}
|
|
2034
|
-
function
|
|
2068
|
+
function Ke(s) {
|
|
2035
2069
|
const e = s.join(", ").match(/\b\w+\b/g);
|
|
2036
2070
|
return e ? e.length : 0;
|
|
2037
2071
|
}
|
|
2038
2072
|
function gs(s, e = 150) {
|
|
2039
|
-
const t =
|
|
2073
|
+
const t = Ke([s]);
|
|
2040
2074
|
return Math.ceil(t / e);
|
|
2041
2075
|
}
|
|
2042
|
-
function
|
|
2043
|
-
const e =
|
|
2076
|
+
function Us(s) {
|
|
2077
|
+
const e = v(
|
|
2044
2078
|
() => {
|
|
2045
|
-
var
|
|
2046
|
-
return typeof s.velocity == "number" ? s.velocity : ((
|
|
2079
|
+
var l;
|
|
2080
|
+
return typeof s.velocity == "number" ? s.velocity : ((l = s.velocity) == null ? void 0 : l.value) ?? 150;
|
|
2047
2081
|
}
|
|
2048
|
-
), t =
|
|
2049
|
-
var
|
|
2050
|
-
return typeof s.contentSelector == "string" ? s.contentSelector : (
|
|
2051
|
-
}), n =
|
|
2052
|
-
var
|
|
2053
|
-
if (typeof ((
|
|
2082
|
+
), t = v(() => {
|
|
2083
|
+
var l;
|
|
2084
|
+
return typeof s.contentSelector == "string" ? s.contentSelector : (l = s.contentSelector) == null ? void 0 : l.value;
|
|
2085
|
+
}), n = v(() => {
|
|
2086
|
+
var l, c, m;
|
|
2087
|
+
if (typeof ((l = s.contentRef) == null ? void 0 : l.value) == "object")
|
|
2054
2088
|
return (c = s.contentRef.value) == null ? void 0 : c.textContent;
|
|
2055
2089
|
if (t.value && typeof document < "u") {
|
|
2056
|
-
const
|
|
2057
|
-
if (
|
|
2058
|
-
return
|
|
2090
|
+
const g = document.querySelector(t.value);
|
|
2091
|
+
if (g)
|
|
2092
|
+
return g.textContent;
|
|
2059
2093
|
}
|
|
2060
2094
|
return typeof s.content == "string" ? s.content : (m = s.content) == null ? void 0 : m.value;
|
|
2061
|
-
}),
|
|
2095
|
+
}), i = v(() => gs(n.value, e.value)), o = v(() => Ke([n.value]));
|
|
2062
2096
|
return {
|
|
2063
2097
|
content: n,
|
|
2064
|
-
wordCount:
|
|
2098
|
+
wordCount: o,
|
|
2065
2099
|
velocity: e,
|
|
2066
|
-
duration:
|
|
2100
|
+
duration: i
|
|
2067
2101
|
};
|
|
2068
2102
|
}
|
|
2069
2103
|
function ys(s, e) {
|
|
2070
|
-
const t = s.length, n = e.length,
|
|
2071
|
-
for (let
|
|
2072
|
-
o
|
|
2073
|
-
for (let
|
|
2074
|
-
|
|
2075
|
-
for (let
|
|
2076
|
-
for (let
|
|
2077
|
-
const c = s[
|
|
2078
|
-
o
|
|
2079
|
-
o
|
|
2080
|
-
o
|
|
2081
|
-
o
|
|
2104
|
+
const t = s.length, n = e.length, i = [];
|
|
2105
|
+
for (let o = 0; o <= t; o++)
|
|
2106
|
+
i[o] = [o];
|
|
2107
|
+
for (let o = 0; o <= n; o++)
|
|
2108
|
+
i[0][o] = o;
|
|
2109
|
+
for (let o = 1; o <= t; o++)
|
|
2110
|
+
for (let l = 1; l <= n; l++) {
|
|
2111
|
+
const c = s[o - 1] === e[l - 1] ? 0 : 1;
|
|
2112
|
+
i[o][l] = Math.min(
|
|
2113
|
+
i[o - 1][l] + 1,
|
|
2114
|
+
i[o][l - 1] + 1,
|
|
2115
|
+
i[o - 1][l - 1] + c
|
|
2082
2116
|
);
|
|
2083
2117
|
}
|
|
2084
|
-
return
|
|
2118
|
+
return i[t][n];
|
|
2085
2119
|
}
|
|
2086
|
-
function
|
|
2120
|
+
function Xe(s, e) {
|
|
2087
2121
|
const t = ys(s, e), n = Math.max(s.length, e.length);
|
|
2088
2122
|
return 1 - t / n;
|
|
2089
2123
|
}
|
|
2090
2124
|
function bs(s, e, t = 0.75) {
|
|
2091
|
-
return
|
|
2125
|
+
return Xe(s, e) >= t;
|
|
2092
2126
|
}
|
|
2093
|
-
function
|
|
2094
|
-
const n =
|
|
2127
|
+
function Ws(s, e, t = 0.75) {
|
|
2128
|
+
const n = v(
|
|
2095
2129
|
() => xe(typeof s == "string" ? s : s.value)
|
|
2096
|
-
),
|
|
2130
|
+
), i = v(
|
|
2097
2131
|
() => xe(typeof e == "string" ? e : e.value)
|
|
2098
|
-
),
|
|
2132
|
+
), o = v(() => typeof t == "number" ? t : t.value), l = v(() => Xe(n.value, i.value));
|
|
2099
2133
|
return {
|
|
2100
|
-
isMatching:
|
|
2101
|
-
() => bs(n.value,
|
|
2134
|
+
isMatching: v(
|
|
2135
|
+
() => bs(n.value, i.value, o.value)
|
|
2102
2136
|
),
|
|
2103
|
-
score:
|
|
2137
|
+
score: l
|
|
2104
2138
|
};
|
|
2105
2139
|
}
|
|
2106
2140
|
export {
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
Yt as B,
|
|
2141
|
+
Wt as A,
|
|
2142
|
+
Rt as B,
|
|
2110
2143
|
As as C,
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2144
|
+
Os as D,
|
|
2145
|
+
ms as E,
|
|
2146
|
+
ds as F,
|
|
2147
|
+
Hs as G,
|
|
2148
|
+
Ds as H,
|
|
2149
|
+
ut as I,
|
|
2150
|
+
Ms as J,
|
|
2151
|
+
Ps as K,
|
|
2152
|
+
$s as L,
|
|
2153
|
+
_s as M,
|
|
2154
|
+
Fs as N,
|
|
2155
|
+
Ns as O,
|
|
2156
|
+
Vs as P,
|
|
2157
|
+
Kt as Q,
|
|
2158
|
+
Bs as R,
|
|
2126
2159
|
Ls as S,
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2160
|
+
ns as T,
|
|
2161
|
+
mt as U,
|
|
2162
|
+
ps as V,
|
|
2130
2163
|
us as W,
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2164
|
+
qs as X,
|
|
2165
|
+
Us as Y,
|
|
2166
|
+
Ws as Z,
|
|
2167
|
+
je as _,
|
|
2135
2168
|
L as a,
|
|
2136
|
-
|
|
2169
|
+
ht as b,
|
|
2137
2170
|
Ts as c,
|
|
2138
2171
|
Es as d,
|
|
2139
2172
|
Is as e,
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2173
|
+
pt as f,
|
|
2174
|
+
gt as g,
|
|
2175
|
+
Ct as h,
|
|
2143
2176
|
Se as i,
|
|
2144
2177
|
Ss as j,
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2178
|
+
kt as k,
|
|
2179
|
+
$t as l,
|
|
2180
|
+
_e as m,
|
|
2148
2181
|
xe as n,
|
|
2149
|
-
|
|
2182
|
+
Pt as o,
|
|
2150
2183
|
Cs as p,
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2184
|
+
wt as q,
|
|
2185
|
+
zt as r,
|
|
2186
|
+
dt as s,
|
|
2187
|
+
ct as t,
|
|
2188
|
+
Et as u,
|
|
2189
|
+
It as v,
|
|
2157
2190
|
ks as w,
|
|
2158
2191
|
xs as x,
|
|
2159
|
-
|
|
2160
|
-
|
|
2192
|
+
Ft as y,
|
|
2193
|
+
qt as z
|
|
2161
2194
|
};
|