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.
Files changed (358) hide show
  1. package/components/MazAccordion.d.ts +2 -2
  2. package/components/MazAccordion.mjs +84 -84
  3. package/components/MazAnimatedCounter.mjs +9 -10
  4. package/components/MazAvatar.d.ts +3 -3
  5. package/components/MazAvatar.mjs +1 -1
  6. package/components/MazBackdrop.d.ts +2 -2
  7. package/components/MazBackdrop.mjs +12 -10
  8. package/components/MazBadge.d.ts +2 -2
  9. package/components/MazBadge.mjs +3 -4
  10. package/components/MazBottomSheet.mjs +1 -1
  11. package/components/MazBtn.d.ts +7 -5
  12. package/components/MazBtn.mjs +1 -1
  13. package/components/MazCard.d.ts +3 -3
  14. package/components/MazCard.mjs +1 -1
  15. package/components/MazCardSpotlight.d.ts +2 -2
  16. package/components/MazCardSpotlight.mjs +4 -5
  17. package/components/MazCarousel.d.ts +2 -2
  18. package/components/MazCarousel.mjs +1 -1
  19. package/components/MazChart.d.ts +1 -1
  20. package/components/MazCheckbox.d.ts +2 -2
  21. package/components/MazCheckbox.mjs +10 -11
  22. package/components/MazCircularProgressBar.d.ts +1 -1
  23. package/components/MazCircularProgressBar.mjs +21 -23
  24. package/components/MazDialog.d.ts +2 -2
  25. package/components/MazDialog.mjs +1 -1
  26. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
  27. package/components/MazDialogPromise.mjs +1 -1
  28. package/components/MazDrawer.d.ts +2 -2
  29. package/components/MazDrawer.mjs +71 -69
  30. package/components/MazDropdown.d.ts +7 -6
  31. package/components/MazDropdown.mjs +130 -128
  32. package/components/MazDropzone.d.ts +1 -1
  33. package/components/MazDropzone.mjs +1 -1
  34. package/components/MazExpandAnimation.d.ts +2 -2
  35. package/components/MazExpandAnimation.mjs +26 -26
  36. package/components/MazFullscreenLoader.d.ts +2 -2
  37. package/components/MazFullscreenLoader.mjs +11 -10
  38. package/components/MazGallery.d.ts +2 -2
  39. package/components/MazGallery.mjs +1 -1
  40. package/components/MazIcon.mjs +45 -34
  41. package/components/MazInput.d.ts +4 -4
  42. package/components/MazInput.mjs +1 -1
  43. package/components/MazInputCode.d.ts +2 -2
  44. package/components/MazInputCode.mjs +4 -5
  45. package/components/MazInputNumber.d.ts +2 -2
  46. package/components/MazInputNumber.mjs +1 -1
  47. package/components/MazInputPrice.d.ts +2 -2
  48. package/components/MazInputPrice.mjs +1 -1
  49. package/components/MazInputTags.d.ts +7 -2
  50. package/components/MazInputTags.mjs +1 -1
  51. package/components/MazLazyImg.d.ts +2 -2
  52. package/components/MazLazyImg.mjs +1 -1
  53. package/components/MazLink.d.ts +6 -6
  54. package/components/MazLink.mjs +3 -4
  55. package/components/MazLoadingBar.d.ts +2 -2
  56. package/components/MazLoadingBar.mjs +17 -18
  57. package/components/MazPagination.d.ts +3 -3
  58. package/components/MazPagination.mjs +1 -1
  59. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
  60. package/components/MazPhoneNumberInput/types.d.ts +5 -5
  61. package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
  62. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  63. package/components/MazPhoneNumberInput.d.ts +8 -8
  64. package/components/MazPhoneNumberInput.mjs +1 -1
  65. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  66. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
  67. package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  68. package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  69. package/components/MazPicker/types.d.ts +4 -4
  70. package/components/MazPicker/utils.d.ts +4 -4
  71. package/components/MazPicker.d.ts +3 -3
  72. package/components/MazPicker.mjs +1 -1
  73. package/components/MazPullToRefresh.d.ts +2 -2
  74. package/components/MazPullToRefresh.mjs +1 -1
  75. package/components/MazRadio.mjs +8 -9
  76. package/components/MazRadioButtons.d.ts +2 -2
  77. package/components/MazRadioButtons.mjs +44 -42
  78. package/components/MazReadingProgressBar.d.ts +2 -2
  79. package/components/MazReadingProgressBar.mjs +12 -13
  80. package/components/MazSelect.d.ts +4 -4
  81. package/components/MazSelect.mjs +1 -1
  82. package/components/MazSlider/utils.d.ts +4 -4
  83. package/components/MazSlider.mjs +100 -87
  84. package/components/MazSpinner.mjs +6 -7
  85. package/components/MazStepper.d.ts +3 -3
  86. package/components/MazStepper.mjs +1 -1
  87. package/components/MazSwitch.d.ts +2 -2
  88. package/components/MazSwitch.mjs +6 -6
  89. package/components/MazTable.d.ts +13 -10
  90. package/components/MazTable.mjs +1 -1
  91. package/components/MazTableCell.mjs +4 -5
  92. package/components/MazTableRow.d.ts +2 -2
  93. package/components/MazTableRow.mjs +4 -5
  94. package/components/MazTableTitle.mjs +2 -3
  95. package/components/MazTabs.d.ts +4 -4
  96. package/components/MazTabsBar.d.ts +7 -5
  97. package/components/MazTabsBar.mjs +1 -1
  98. package/components/MazTabsContent.mjs +5 -4
  99. package/components/MazTabsContentItem.mjs +16 -17
  100. package/components/MazTextarea.d.ts +2 -2
  101. package/components/MazTextarea.mjs +19 -17
  102. package/components/MazTransitionExpand.d.ts +2 -2
  103. package/components/MazTransitionExpand.mjs +19 -18
  104. package/components/assets/MazAccordion.css +1 -1
  105. package/components/assets/MazAnimatedCounter.css +1 -1
  106. package/components/assets/MazAvatar.css +1 -1
  107. package/components/assets/MazBadge.css +1 -1
  108. package/components/assets/MazBottomSheet.css +1 -1
  109. package/components/assets/MazBtn.css +1 -1
  110. package/components/assets/MazCard.css +1 -1
  111. package/components/assets/MazCardSpotlight.css +1 -1
  112. package/components/assets/MazCarousel.css +1 -1
  113. package/components/assets/MazCheckbox.css +1 -1
  114. package/components/assets/MazCircularProgressBar.css +1 -1
  115. package/components/assets/MazDialog.css +1 -1
  116. package/components/assets/MazDialogPromise.css +1 -1
  117. package/components/assets/MazExpandAnimation.css +1 -1
  118. package/components/assets/MazGallery.css +1 -1
  119. package/components/assets/MazInput.css +1 -1
  120. package/components/assets/MazInputCode.css +1 -1
  121. package/components/assets/MazInputNumber.css +1 -1
  122. package/components/assets/MazInputPrice.css +1 -1
  123. package/components/assets/MazInputTags.css +1 -1
  124. package/components/assets/MazLazyImg.css +1 -1
  125. package/components/assets/MazLink.css +1 -1
  126. package/components/assets/MazLoadingBar.css +1 -1
  127. package/components/assets/MazPagination.css +1 -1
  128. package/components/assets/MazPhoneNumberInput.css +1 -1
  129. package/components/assets/MazPicker.css +1 -1
  130. package/components/assets/MazPickerMonthSwitcher.css +1 -1
  131. package/components/assets/MazPickerShortcuts.css +1 -1
  132. package/components/assets/MazPickerYearSwitcher.css +1 -1
  133. package/components/assets/MazPullToRefresh.css +1 -1
  134. package/components/assets/MazRadio.css +1 -1
  135. package/components/assets/MazRadioButtons.css +1 -1
  136. package/components/assets/MazReadingProgressBar.css +1 -1
  137. package/components/assets/MazSelect.css +1 -1
  138. package/components/assets/MazSlider.css +1 -1
  139. package/components/assets/MazSpinner.css +1 -1
  140. package/components/assets/MazStepper.css +1 -1
  141. package/components/assets/MazSwitch.css +1 -1
  142. package/components/assets/MazTable.css +1 -1
  143. package/components/assets/MazTableCell.css +1 -1
  144. package/components/assets/MazTableRow.css +1 -1
  145. package/components/assets/MazTableTitle.css +1 -1
  146. package/components/assets/MazTabsBar.css +1 -1
  147. package/components/assets/MazTabsContentItem.css +1 -1
  148. package/components/assets/MazTextarea.css +1 -1
  149. package/components/assets/MazTransitionExpand.css +1 -1
  150. package/components/chunks/{MazAvatar-DsJvzyS9.mjs → MazAvatar-BU1nJFcV.mjs} +8 -9
  151. package/components/chunks/{MazBadge-CYJlqITD.mjs → MazBadge-CwA0md19.mjs} +4 -5
  152. package/components/chunks/{MazBottomSheet-CIlIdn-2.mjs → MazBottomSheet-DUOIusEi.mjs} +54 -52
  153. package/components/chunks/{MazBtn-CCNGs6oo.mjs → MazBtn-5BSKOcqG.mjs} +35 -36
  154. package/components/chunks/{MazBtn-Ccvl1ZWv.mjs → MazBtn-B1-sTc7F.mjs} +31 -32
  155. package/components/chunks/{MazBtn-BC5OegPu.mjs → MazBtn-BY8WCtM7.mjs} +35 -36
  156. package/components/chunks/{MazBtn-CX4OgPzp.mjs → MazBtn-C5G78zLg.mjs} +35 -36
  157. package/components/chunks/MazBtn-CeVwyYR5.mjs +150 -0
  158. package/components/chunks/{MazBtn-BqgdERYQ.mjs → MazBtn-ColLVUca.mjs} +35 -36
  159. package/components/chunks/{MazBtn-beTASOLt.mjs → MazBtn-DJhQqzja.mjs} +35 -36
  160. package/components/chunks/MazBtn-DuY28-0U.mjs +150 -0
  161. package/components/chunks/{MazBtn-BydIwD1J.mjs → MazBtn-f1mBXJeU.mjs} +31 -32
  162. package/components/chunks/MazBtn-h3WmmaEO.mjs +150 -0
  163. package/components/chunks/MazBtn-zyRLUViT.mjs +150 -0
  164. package/components/chunks/{MazCard-bmiVPg8p.mjs → MazCard-BWxV_Z-i.mjs} +25 -26
  165. package/components/chunks/{MazCarousel-CL0bMygd.mjs → MazCarousel-D5EmW7Sa.mjs} +43 -35
  166. package/components/chunks/{MazCheckbox-DsFbvpp4.mjs → MazCheckbox-BWiMbecz.mjs} +11 -12
  167. package/components/chunks/{MazCheckbox-CCa7grGF.mjs → MazCheckbox-D3PXkt75.mjs} +11 -12
  168. package/components/chunks/{MazDialog-BckFta4N.mjs → MazDialog-CLWKCphI.mjs} +56 -54
  169. package/components/chunks/{MazDialogPromise-Bb6h4hFz.mjs → MazDialogPromise-DVOJwdVp.mjs} +139 -126
  170. package/components/chunks/{MazDropzone-C_8mRUbK.mjs → MazDropzone-Dm2IirHm.mjs} +33 -54
  171. package/components/chunks/MazExpandAnimation-ChSSdQAq.mjs +58 -0
  172. package/components/chunks/{MazGallery-CcpeM_zk.mjs → MazGallery-BlfPe8WG.mjs} +103 -101
  173. package/components/chunks/{MazGallery-6UK5sH9P.mjs → MazGallery-Bn9p1gNb.mjs} +102 -100
  174. package/{modules/chunks/MazIcon-CiNswMKM.mjs → components/chunks/MazIcon-B8A0hQAH.mjs} +45 -34
  175. package/components/chunks/{MazIcon-Cxrv3_OK.mjs → MazIcon-BDGxCy9M.mjs} +45 -34
  176. package/components/chunks/{MazIcon-BKuhvwwq.mjs → MazIcon-D3umgnku.mjs} +45 -34
  177. package/components/chunks/{MazInput-DNwBL54e.mjs → MazInput-BpsE-mdg.mjs} +69 -69
  178. package/components/chunks/{MazInputNumber-BSdVF8-q.mjs → MazInputNumber-DGBYbDSX.mjs} +186 -182
  179. package/components/chunks/{MazInputPrice-osrAz4xd.mjs → MazInputPrice-j2BNMeFp.mjs} +134 -129
  180. package/components/chunks/{MazInputTags-XUWwx6p8.mjs → MazInputTags-CJofVaj5.mjs} +234 -252
  181. package/components/chunks/{MazLazyImg-6qrfqWKr.mjs → MazLazyImg-BFG6FIJZ.mjs} +6 -7
  182. package/components/chunks/{MazLazyImg-BelScAEF.mjs → MazLazyImg-Dboc6Xfz.mjs} +5 -6
  183. package/components/chunks/{MazPagination-DUiHgLAp.mjs → MazPagination-C6ZehQSZ.mjs} +118 -119
  184. package/components/chunks/{MazPhoneNumberInput-HeEEyDu0.mjs → MazPhoneNumberInput-DpWoNQfx.mjs} +707 -695
  185. package/components/chunks/MazPicker-ia2BEmm5.mjs +2531 -0
  186. package/components/chunks/{MazPickerMonthSwitcher-CoV-84J1.mjs → MazPickerMonthSwitcher-CKtfZ_m-.mjs} +19 -19
  187. package/components/chunks/{MazPickerShortcuts-5IfUIwpz.mjs → MazPickerShortcuts-Cc9VoqBw.mjs} +10 -10
  188. package/components/chunks/{MazPickerYearSwitcher-MeptqtZk.mjs → MazPickerYearSwitcher-0b5Wrem9.mjs} +10 -8
  189. package/components/chunks/{MazPullToRefresh-DWbmwlzV.mjs → MazPullToRefresh-CUazP4y2.mjs} +21 -22
  190. package/components/chunks/MazSelect-COJoKXbV.mjs +847 -0
  191. package/components/chunks/MazSpinner-9Jue6cel.mjs +37 -0
  192. package/components/chunks/{MazSpinner-BKjRRWtc.mjs → MazSpinner-BGPOws6a.mjs} +6 -7
  193. package/components/chunks/{MazSpinner-BXxULdoD.mjs → MazSpinner-BWYdqSMP.mjs} +6 -7
  194. package/components/chunks/{MazSpinner-BRgzRI07.mjs → MazSpinner-BZOjTZBN.mjs} +6 -7
  195. package/components/chunks/{MazSpinner-B-svzg-R.mjs → MazSpinner-BaAMq7LI.mjs} +6 -7
  196. package/components/chunks/MazSpinner-Bad2n-0k.mjs +37 -0
  197. package/components/chunks/MazSpinner-BxnVFqUu.mjs +37 -0
  198. package/components/chunks/{MazSpinner-Mvsi6uCt.mjs → MazSpinner-C41VyUup.mjs} +6 -7
  199. package/components/chunks/MazSpinner-C6StE-Mb.mjs +37 -0
  200. package/components/chunks/{MazSpinner-BFXwybUv.mjs → MazSpinner-CNIlbDfg.mjs} +6 -7
  201. package/components/chunks/MazSpinner-Cz2DHV6g.mjs +37 -0
  202. package/components/chunks/MazSpinner-D4CdHpP2.mjs +37 -0
  203. package/{modules/chunks/MazSpinner--jWWogVn.mjs → components/chunks/MazSpinner-DHQH6Bhz.mjs} +6 -7
  204. package/components/chunks/MazSpinner-DRj2VpGA.mjs +37 -0
  205. package/components/chunks/{MazSpinner-C1lg-Klx.mjs → MazSpinner-DkXequnp.mjs} +6 -7
  206. package/components/chunks/MazSpinner-EA5ejB8F.mjs +37 -0
  207. package/components/chunks/{MazSpinner-BtpIL60X.mjs → MazSpinner-RvDGcBng.mjs} +6 -7
  208. package/components/chunks/{MazSpinner-B_WP-2kr.mjs → MazSpinner-V-bFi71W.mjs} +6 -7
  209. package/components/chunks/MazSpinner-aPFlrc5E.mjs +37 -0
  210. package/components/chunks/{MazSpinner-CfA_KEZT.mjs → MazSpinner-nH44Htog.mjs} +6 -7
  211. package/components/chunks/MazSpinner-nOD-7_sU.mjs +37 -0
  212. package/components/chunks/MazSpinner-yZGK-AQe.mjs +37 -0
  213. package/components/chunks/{MazStepper-DDofJsdg.mjs → MazStepper-DxrzKz06.mjs} +94 -83
  214. package/components/chunks/MazTable-DRUj_PZp.mjs +1960 -0
  215. package/components/chunks/{MazTabsBar-BXDEQkZM.mjs → MazTabsBar-xcIIXHx5.mjs} +67 -68
  216. package/components/chunks/{MazTransitionExpand-BwuAIzII.mjs → MazTransitionExpand-B08cSrmL.mjs} +20 -19
  217. package/components/chunks/{examples.mobile.json-um0ibyv5.mjs → examples.mobile.json-JpNGylGv.mjs} +1 -1
  218. package/css/main.css +1 -1
  219. package/modules/assets/MazBtn.css +1 -1
  220. package/modules/assets/MazSpinner.css +1 -1
  221. package/modules/assets/index.css +1 -1
  222. package/modules/chunks/{MazBtn-Czcbhr3Z.cjs → MazBtn-BbCGGxkK.cjs} +2 -2
  223. package/modules/chunks/{MazBtn-CXcW31TK.mjs → MazBtn-UBHTKqaN.mjs} +35 -36
  224. package/modules/chunks/MazIcon-BDSXZYZ8.cjs +1 -0
  225. package/{components/chunks/MazIcon-DtG5ii8R.mjs → modules/chunks/MazIcon-C2ch3jUS.mjs} +45 -34
  226. package/modules/chunks/{MazSpinner-Cw1KnqLM.cjs → MazSpinner-BiyFRA4w.cjs} +1 -1
  227. package/modules/chunks/MazSpinner-C9_xSbZZ.mjs +37 -0
  228. package/modules/chunks/{index-CThtJOu5.mjs → index-Cwbjspv3.mjs} +621 -588
  229. package/modules/chunks/index-tnjajVkX.cjs +124 -0
  230. package/modules/index.cjs +1 -1
  231. package/modules/index.mjs +34 -35
  232. package/nuxt/index.json +2 -2
  233. package/nuxt/index.mjs +3 -4
  234. package/nuxt/types.d.mts +24 -0
  235. package/nuxt/types.d.ts +24 -0
  236. package/package.json +77 -83
  237. package/resolvers/unplugin-directives-resolver.d.ts +1 -1
  238. package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  239. package/tailwindcss/tailwind.config.ts +9 -2
  240. package/tailwindcss/utils/colors.ts +3 -3
  241. package/tailwindcss/variables/colors.ts +12 -12
  242. package/tailwindcss/variables/utilities.ts +2 -2
  243. package/tailwindcss/variables/z-indexes.ts +12 -11
  244. package/types/components/MazAccordion.vue.d.ts +2 -2
  245. package/types/components/MazAvatar.vue.d.ts +3 -3
  246. package/types/components/MazBackdrop.vue.d.ts +2 -2
  247. package/types/components/MazBadge.vue.d.ts +2 -2
  248. package/types/components/MazBtn.vue.d.ts +7 -5
  249. package/types/components/MazCard.vue.d.ts +3 -3
  250. package/types/components/MazCardSpotlight.vue.d.ts +2 -2
  251. package/types/components/MazCarousel.vue.d.ts +2 -2
  252. package/types/components/MazChart.vue.d.ts +1 -1
  253. package/types/components/MazCheckbox.vue.d.ts +2 -2
  254. package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
  255. package/types/components/MazDialog.vue.d.ts +2 -2
  256. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
  257. package/types/components/MazDrawer.vue.d.ts +2 -2
  258. package/types/components/MazDropdown.vue.d.ts +7 -6
  259. package/types/components/MazDropzone.vue.d.ts +1 -1
  260. package/types/components/MazExpandAnimation.vue.d.ts +2 -2
  261. package/types/components/MazFullscreenLoader.vue.d.ts +2 -2
  262. package/types/components/MazGallery.vue.d.ts +2 -2
  263. package/types/components/MazInput.vue.d.ts +4 -4
  264. package/types/components/MazInputCode.vue.d.ts +2 -2
  265. package/types/components/MazInputNumber.vue.d.ts +2 -2
  266. package/types/components/MazInputPrice.vue.d.ts +2 -2
  267. package/types/components/MazInputTags.vue.d.ts +7 -2
  268. package/types/components/MazLazyImg.vue.d.ts +2 -2
  269. package/types/components/MazLink.vue.d.ts +6 -6
  270. package/types/components/MazLoadingBar.vue.d.ts +2 -2
  271. package/types/components/MazPagination.vue.d.ts +3 -3
  272. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
  273. package/types/components/MazPhoneNumberInput/types.d.ts +5 -5
  274. package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
  275. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  276. package/types/components/MazPhoneNumberInput.vue.d.ts +8 -8
  277. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  278. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
  279. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  280. package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  281. package/types/components/MazPicker/types.d.ts +4 -4
  282. package/types/components/MazPicker/utils.d.ts +4 -4
  283. package/types/components/MazPicker.vue.d.ts +3 -3
  284. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  285. package/types/components/MazRadioButtons.vue.d.ts +2 -2
  286. package/types/components/MazReadingProgressBar.vue.d.ts +2 -2
  287. package/types/components/MazSelect.vue.d.ts +4 -4
  288. package/types/components/MazSlider/utils.d.ts +4 -4
  289. package/types/components/MazStepper.vue.d.ts +3 -3
  290. package/types/components/MazSwitch.vue.d.ts +2 -2
  291. package/types/components/MazTable.vue.d.ts +13 -10
  292. package/types/components/MazTableRow.vue.d.ts +2 -2
  293. package/types/components/MazTabs.vue.d.ts +4 -4
  294. package/types/components/MazTabsBar.vue.d.ts +7 -5
  295. package/types/components/MazTextarea.vue.d.ts +2 -2
  296. package/types/components/MazTransitionExpand.vue.d.ts +2 -2
  297. package/types/modules/composables/use-reading-time.d.ts +5 -5
  298. package/types/modules/composables/use-theme-handler.d.ts +2 -2
  299. package/types/modules/directives/closable.d.ts +2 -2
  300. package/types/modules/directives/tooltip/index.d.ts +4 -4
  301. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
  302. package/types/modules/directives/v-lazy-img/index.d.ts +1 -1
  303. package/types/modules/filters/capitalize.d.ts +1 -1
  304. package/types/modules/filters/currency.d.ts +1 -1
  305. package/types/modules/filters/date.d.ts +1 -1
  306. package/types/modules/filters/index.d.ts +8 -4
  307. package/types/modules/filters/number.d.ts +1 -1
  308. package/types/modules/filters/telephone.d.ts +1 -1
  309. package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +1 -1
  310. package/types/modules/helpers/mount-component.d.ts +2 -2
  311. package/types/modules/helpers/normalize-string.d.ts +2 -2
  312. package/types/modules/helpers/swipe-handler.d.ts +2 -2
  313. package/types/modules/helpers/user-visibility/types.d.ts +2 -2
  314. package/types/modules/plugins/aos/index.d.ts +3 -3
  315. package/types/modules/plugins/index.d.ts +2 -2
  316. package/types/modules/plugins/toaster/MazToast.vue.d.ts +3 -3
  317. package/types/modules/plugins/toaster/index.d.ts +1 -2
  318. package/types/modules/plugins/toaster/types.d.ts +6 -6
  319. package/types/modules/plugins/wait/utils.d.ts +4 -4
  320. package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
  321. package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  322. package/types/tailwindcss/tailwind.config.d.ts +71 -9
  323. package/types/tailwindcss/variables/z-indexes.d.ts +11 -11
  324. package/components/chunks/MazBtn-BOb7Fg_d.mjs +0 -151
  325. package/components/chunks/MazBtn-DpkJQ_3W.mjs +0 -151
  326. package/components/chunks/MazBtn-Dw_CR_0X.mjs +0 -151
  327. package/components/chunks/MazBtn-_NGDIlQK.mjs +0 -151
  328. package/components/chunks/MazExpandAnimation-Cin7sZ3I.mjs +0 -58
  329. package/components/chunks/MazPicker-CltoTa2Z.mjs +0 -2477
  330. package/components/chunks/MazSelect-DDKbowf3.mjs +0 -835
  331. package/components/chunks/MazSpinner-2ti3NQjo.mjs +0 -38
  332. package/components/chunks/MazSpinner-BZUmasIf.mjs +0 -38
  333. package/components/chunks/MazSpinner-C-lFmcUR.mjs +0 -38
  334. package/components/chunks/MazSpinner-C75WMoEA.mjs +0 -38
  335. package/components/chunks/MazSpinner-CA38Ikqe.mjs +0 -38
  336. package/components/chunks/MazSpinner-CAHOYqvB.mjs +0 -38
  337. package/components/chunks/MazSpinner-COOp2WX8.mjs +0 -38
  338. package/components/chunks/MazSpinner-D-ONjGGv.mjs +0 -38
  339. package/components/chunks/MazSpinner-DJkziC4O.mjs +0 -38
  340. package/components/chunks/MazSpinner-Di0F6oZz.mjs +0 -38
  341. package/components/chunks/MazSpinner-EcA0uOQv.mjs +0 -38
  342. package/components/chunks/MazSpinner-s_0BLDqW.mjs +0 -38
  343. package/components/chunks/MazTable-B9JiJ2B2.mjs +0 -1950
  344. package/modules/chunks/MazIcon-DdFYd3W8.cjs +0 -1
  345. package/modules/chunks/index-RvIMpzcQ.cjs +0 -124
  346. package/nuxt/runtime/composables/{use-aos.mjs → use-aos.js} +0 -0
  347. package/nuxt/runtime/composables/{use-theme-handler.mjs → use-theme-handler.js} +1 -1
  348. package/nuxt/runtime/composables/{use-toast.mjs → use-toast.js} +0 -0
  349. package/nuxt/runtime/composables/{use-wait.mjs → use-wait.js} +0 -0
  350. package/nuxt/runtime/plugins/{aos.mjs → aos.js} +1 -1
  351. package/nuxt/runtime/plugins/{maz-icon-path.mjs → maz-icon-path.js} +0 -0
  352. package/nuxt/runtime/plugins/{toaster.mjs → toaster.js} +1 -1
  353. package/nuxt/runtime/plugins/{v-click-outside.mjs → v-click-outside.js} +1 -1
  354. package/nuxt/runtime/plugins/{v-fullscreen-img.mjs → v-fullscreen-img.js} +1 -1
  355. package/nuxt/runtime/plugins/{v-lazy-img.mjs → v-lazy-img.js} +1 -1
  356. package/nuxt/runtime/plugins/{v-tooltip.mjs → v-tooltip.js} +1 -1
  357. package/nuxt/runtime/plugins/{v-zoom-img.mjs → v-zoom-img.js} +1 -1
  358. package/nuxt/runtime/plugins/{wait.mjs → wait.js} +1 -1
@@ -1,10 +1,9 @@
1
- import '../assets/index.css';
2
- var Je = Object.defineProperty;
3
- var et = (s, e, t) => e in s ? Je(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
4
- var l = (s, e, t) => (et(s, typeof e != "symbol" ? e + "" : e, t), t);
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 = tt(s, e);
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 ut(s) {
19
+ function ct(s) {
21
20
  return !!s;
22
21
  }
23
- function Fe(s, e) {
22
+ function _e(s, e) {
24
23
  let t = e == null ? void 0 : e.element;
25
24
  function n() {
26
- t && ne(null, t);
25
+ t && ie(null, t);
27
26
  }
28
- const o = V(
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 ? (o.appContext = e.app._context, t ? ne(o, t) : typeof document < "u" && (t = document.createElement("div"), ne(o, t))) : (t = t ?? document.body, ne(o, t)), { vNode: o, destroy: n, el: t };
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 mt {
37
+ class ut {
39
38
  constructor(e, t) {
40
- l(this, "defaultOptions", {
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
- l(this, "options");
48
- l(this, "timeoutHandler");
49
- l(this, "isIdle", !1);
50
- l(this, "isDestroy", !1);
51
- l(this, "startTime", 0);
52
- l(this, "remainingTime", 0);
53
- l(this, "lastClientX", -1);
54
- l(this, "lastClientY", -1);
55
- l(this, "eventNames", [
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
- l(this, "handleEvent", (e) => {
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 dt {
144
+ class mt {
146
145
  constructor(e, t) {
147
- l(this, "eventHandlerFunction");
148
- l(this, "event", "visibilitychange");
149
- l(this, "timeoutHandler");
150
- l(this, "options");
151
- l(this, "defaultOptions", {
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
- l(this, "isVisible", !1);
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 ht(s) {
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: o = !0, defer: i = !0 }) {
196
- l(this, "src");
197
- l(this, "script");
198
- l(this, "once");
199
- l(this, "async");
200
- l(this, "defer");
201
- l(this, "identifier");
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 = o, this.defer = i;
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 o = document.createElement("script");
228
- o.src = this.src, o.async = this.async, o.defer = this.defer, o.dataset.identifier = this.identifier, o.addEventListener("error", (i) => n(new Error(`[ScriptLoader](injectScript) ${i.message}`))), o.addEventListener("load", (i) => (this.script = i, e[this.identifier] = i, t(i))), document.head.append(o);
229
- } catch (o) {
230
- throw new Error(`[ScriptLoader](init) ${o}`);
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(ut).map((e) => String.fromCodePoint(e)).join("");
238
+ }).filter(ct).map((e) => String.fromCodePoint(e)).join("");
240
239
  }
241
- class ft {
240
+ class ht {
242
241
  constructor(e) {
243
- l(this, "defaultOptions", {
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
- l(this, "element");
251
- l(this, "xStart");
252
- l(this, "yStart");
253
- l(this, "xEnd");
254
- l(this, "yEnd");
255
- l(this, "xDiff");
256
- l(this, "yDiff");
257
- l(this, "onToucheStartCallback");
258
- l(this, "onToucheMoveCallback");
259
- l(this, "onToucheEndCallback");
260
- l(this, "onMouseWheelCallback");
261
- l(this, "options");
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, o, i, r, c, m, y;
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) : (i = (o = this.options).onRight) == null || i.call(o, e) : this.yDiff > 0 ? (c = (r = this.options).onUp) == null || c.call(r, e) : (y = (m = this.options).onDown) == null || y.call(m, e), this.resetValues());
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 vt = {
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 = { ...vt, ...e }, n = {
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 o = s.toString();
380
- if (t.trim && (o = o.trim()), t.normalizeSpaces && (o = o.replaceAll(/\s+/g, " ")), t.replaceSpaces && (o = o.replaceAll(" ", "-")), t.removeNumbers && (o = o.replaceAll(/\d/g, "")), t.removeAccents && (o = o.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => n[i] || i), o = o.replaceAll(/[\u0300-\u036F]/g, "")), t.caseSensitive === !1 && (o = o.toLowerCase()), t.removeSpecialCharacters && (o = o.replaceAll(/[^\dA-Za-z-]/g, "")), t.trim && (o = o.trim()), t.customNormalizationForms)
381
- for (const i of t.customNormalizationForms)
382
- o = o.normalize(i);
383
- return o;
384
- }
385
- const ce = "__maz-click-outside__", Ne = () => document.ontouchstart === null ? "touchstart" : "click";
386
- async function Ve(s, e) {
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
- Be(s);
389
- const t = e.instance, n = e.value, o = typeof n == "function";
390
- if (!o)
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 st(), s[ce] = (r) => {
393
- if ((!s || r.target && !s.contains(r.target)) && n && o)
394
- return n.call(t, r);
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 i = Ne();
397
- document.addEventListener(i, s[ce], { passive: !0 });
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 Be(s) {
404
+ function Ve(s) {
403
405
  try {
404
- const e = Ne();
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 pt(s, e) {
412
+ function vt(s, e) {
411
413
  try {
412
414
  if (e.value === e.oldValue)
413
415
  return;
414
- Ve(s, e);
416
+ Ne(s, e);
415
417
  } catch (t) {
416
418
  console.error("[maz-ui](vClickOutside)", t);
417
419
  }
418
420
  }
419
- const gt = {
420
- mounted: Ve,
421
- updated: pt,
422
- unmounted: Be
423
- }, yt = {
421
+ const pt = {
422
+ mounted: Ne,
423
+ updated: vt,
424
+ unmounted: Ve
425
+ }, gt = {
424
426
  install: (s) => {
425
- s.directive("click-outside", gt);
427
+ s.directive("click-outside", pt);
426
428
  }
427
- }, qe = (s, e, t) => {
428
- var r;
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, o = typeof t.value == "object" ? t.value.exclude : void 0;
431
- let i = !1;
432
- if (o && o.length > 0) {
433
- for (const c of o)
434
- if (!i && s.target instanceof HTMLElement) {
435
- const m = (r = document.querySelector(c)) == null ? void 0 : r.getAttribute("id");
436
- i = s.target.getAttribute("id") === m;
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) && !i && (n == null || n());
440
- };
441
- function Ue() {
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 bt(s, e) {
445
- const t = Ue();
446
- document.removeEventListener(t, (n) => qe(n, s, e));
447
+ function yt(s, e) {
448
+ const t = qe();
449
+ document.removeEventListener(t, (n) => Be(n, s, e));
447
450
  }
448
- function wt(s, e) {
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 = Ue();
454
- document.addEventListener(t, (n) => qe(n, s, e));
456
+ const t = qe();
457
+ document.addEventListener(t, (n) => Be(n, s, e));
455
458
  }
456
- const zt = {
457
- mounted: wt,
458
- unmounted: bt
459
- }, Et = {
459
+ const wt = {
460
+ mounted: bt,
461
+ unmounted: yt
462
+ }, zt = {
460
463
  install: (s) => {
461
- s.directive("closable", zt);
464
+ s.directive("closable", wt);
462
465
  }
463
466
  }, Le = {
464
467
  position: "top"
465
468
  };
466
- class We {
469
+ class Ue {
467
470
  constructor(e = {}) {
468
- l(this, "options");
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 We(t), oe.create(s, e);
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
- }, Lt = {
513
+ }, Et = {
511
514
  install: (s, e = Le) => {
512
515
  const t = {
513
516
  ...Le,
514
517
  ...e
515
- }, n = new We(t);
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
- }, Tt = `
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 It {
654
+ class Tt {
652
655
  constructor(e) {
653
- l(this, "options");
654
- l(this, "loader");
655
- l(this, "wrapper");
656
- l(this, "img");
657
- l(this, "keydownHandler");
658
- l(this, "onImgLoadedCallback");
659
- l(this, "buttonsAdded");
660
- l(this, "defaultOptions", {
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
- l(this, "mouseEnterListener");
666
- l(this, "mouseLeaveListener");
667
- l(this, "renderPreviewListener");
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(Tt);
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", (o) => {
701
- n.isEqualNode(o.target) && this.closePreview();
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 o = this.getButton("previous"), i = this.getButton("next");
712
- t.push(o, i);
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
- return t.innerHTML = Ae[e], t.addEventListener("click", () => {
733
- e === "close" ? this.closePreview() : this.allInstances && this.nextPreviousImage(e === "next");
734
- }), t.classList.add("maz-zoom-btn"), t.classList.add(`maz-zoom-btn--${e}`), t;
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 o = this.allInstances.indexOf(n), i = t ? o + 1 : o - 1, r = this.allInstances[this.getNewInstanceIndex(i)];
756
- r && this.useNextInstance(n, r);
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"), o = t.getAttribute("data-zoom-alt");
768
- this.wrapper.style.width = "", this.loader.hidden = !1, n && this.img.setAttribute("src", n), o && this.img.setAttribute("alt", o);
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 ie;
786
- const kt = {
788
+ let re;
789
+ const It = {
787
790
  created(s, e) {
788
- ie = new It(e), ie.create(s);
791
+ re = new Tt(e), re.create(s);
789
792
  },
790
793
  updated(s, e) {
791
- ie.update(e);
794
+ re.update(e);
792
795
  },
793
796
  unmounted(s) {
794
- ie.remove(s);
797
+ re.remove(s);
795
798
  }
796
- }, St = {
799
+ }, kt = {
797
800
  install(s) {
798
- s.directive("zoom-img", kt);
801
+ s.directive("zoom-img", It);
799
802
  }
800
- }, Ct = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Te = {
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 je {
817
+ class We {
815
818
  constructor(e = {}) {
816
- l(this, "observers", []);
817
- l(this, "defaultOptions", Te);
818
- l(this, "options");
819
- l(this, "onImgLoadedCallback");
820
- l(this, "onImgErrorCallback");
821
- l(this, "hasImgLoaded", !1);
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 o = n.getAttribute("data-lazy-srcset");
877
- if (o)
878
- n.srcset = o;
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(), o = e.querySelectorAll("source");
900
- if (o.length > 0)
901
- for await (const i of o)
902
- i.srcset = n;
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, o) {
927
- var i, r;
928
- this.observers.push(o);
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 ((r = (i = this.options).onIntersecting) == null || r.call(i, c.target), this.options.observerOnce && o.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
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 = (r, c) => {
938
- this.handleIntersectionObserver(e, t, r, c);
939
- }, o = this.options.observerOptions;
940
- new IntersectionObserver(n, o).observe(e);
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 o of this.observers)
945
- o.unobserve(e);
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, Ct), await this.bindUpdateHandler(e, t, "bind");
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 re;
971
+ let ae;
969
972
  const Ss = {
970
973
  created(s, e) {
971
974
  const t = typeof e.value == "object" ? e.value : {};
972
- re = new je(t), re.add(s, e);
975
+ ae = new We(t), ae.add(s, e);
973
976
  },
974
977
  updated(s, e) {
975
- re.update(s, e);
978
+ ae.update(s, e);
976
979
  },
977
980
  unmounted(s, e) {
978
- re.remove(s, e);
981
+ ae.remove(s, e);
979
982
  }
980
- }, xt = {
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 je(t);
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
- }, At = ["onKeypress"], Ot = { class: "m-fullscreen-img-scroller" }, Ht = ["src", "alt"], Dt = /* @__PURE__ */ Me({
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 = e, n = T(() => import("./MazSpinner--jWWogVn.mjs")), o = T(() => import("./x-mark-BP8zWe_C.mjs")), i = T(() => import("./chevron-left-CcZaP3Rc.mjs")), r = s, c = v(!1), m = v(!1), y = v(!1), z = v(!1), b = v(!1), f = v(r.clickedElement), k = p(() => r.clickedElement.getBoundingClientRect()), U = p(
1015
- () => k.value.height < k.value.width
1016
- ), $ = v(r.src), H = v(r.alt), Q = v(), I = v(), W = p(() => b.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
1017
- function j() {
1018
- c.value = !0, m.value = !1, y.value = !0;
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
- () => y.value,
1024
+ () => g.value,
1022
1025
  (u) => {
1023
- u && se();
1026
+ u && ne();
1024
1027
  }
1025
1028
  );
1026
1029
  function D() {
1027
- t("before-close"), ve();
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(), R(u.key === "ArrowRight" ? "next" : "previous"));
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 G() {
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(r.openInstanceClass), d.classList.add(r.openInstanceClass);
1046
- const a = d.getAttribute("data-src"), h = d.getAttribute("data-alt");
1047
- H.value = h, a && ($.value = a), c.value = !1, c.value || (m.value = !0);
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 R(u) {
1052
+ function j(u) {
1050
1053
  const d = document.querySelector(
1051
- `.m-fullscreen-img-instance.${r.openInstanceClass}`
1054
+ `.m-fullscreen-img-instance.${t.openInstanceClass}`
1052
1055
  );
1053
1056
  if (d) {
1054
- const a = G(), h = a.indexOf(d), g = u === "next" ? h + 1 : h - 1, w = a[he(a, g)];
1055
- f.value = w, w && fe(d, w), t(u), b.value ? J(I.value) : F();
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 J(u) {
1059
- U.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");
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 ee() {
1062
- const u = I.value;
1063
- b.value ? (b.value = !b.value, F()) : (b.value = !b.value, J(u));
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 Y(u) {
1068
+ function R(u) {
1066
1069
  var d;
1067
- return (d = I.value) == null ? void 0 : d.animate(u, {
1068
- duration: r.animation.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: r.animation.easing
1073
+ easing: t.animation.easing
1071
1074
  // Fonction d'interpolation pour l'animation inverse
1072
1075
  });
1073
1076
  }
1074
- function te(u = r.offset ?? 0) {
1075
- const d = (f.value instanceof HTMLImageElement ? f.value.naturalWidth : f.value.clientWidth) || 1, a = (f.value instanceof HTMLImageElement ? f.value.naturalHeight : f.value.clientHeight) || 1, h = window.innerWidth, g = window.innerHeight, w = Math.min(
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
- (g - 2 * u) / a
1078
- ), pe = (h - d * w) / 2, ge = (g - a * w) / 2;
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: a,
1086
+ originalHeight: r,
1084
1087
  scale: w
1085
1088
  };
1086
1089
  }
1087
1090
  function _({ trigger: u }) {
1088
- const { originalWidth: d, originalHeight: a, scale: h, centerX: g, centerY: w } = te(), { top: pe, left: ge, width: Qe, height: Ge } = k.value, Ce = [
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: `${Qe}px`,
1093
- height: `${Ge}px`,
1095
+ width: `${Ze}px`,
1096
+ height: `${Qe}px`,
1094
1097
  opacity: 0
1095
1098
  },
1096
1099
  {
1097
1100
  top: `${w}px`,
1098
- left: `${g}px`,
1101
+ left: `${p}px`,
1099
1102
  width: `${d * h}px`,
1100
- height: `${a * h}px`,
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: a, originalWidth: h, scale: g } = te(), w = {
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 * g}px`,
1113
- height: `${a * g}px`
1115
+ width: `${h * p}px`,
1116
+ height: `${r * p}px`
1114
1117
  };
1115
- if (!I.value)
1118
+ if (!k.value)
1116
1119
  throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
1117
- Object.assign(I.value.style, w);
1120
+ Object.assign(k.value.style, w);
1118
1121
  }
1119
- function se() {
1122
+ function ne() {
1120
1123
  const { frames: u } = _({
1121
1124
  trigger: "open"
1122
- }), d = Y(u);
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 = Y(u);
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 a, h;
1137
- t("close"), (a = Q.value) == null || a.remove(), (h = r.destroy) == null || h.call(r);
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
- b.value || F();
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 = G().length > 1;
1145
- }), Pe(() => {
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: Q,
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: nt(A(D, ["prevent"]), ["esc"])
1157
+ onKeypress: st(A(D, ["prevent"]), ["esc"])
1155
1158
  }, [
1156
- $e(V(
1157
- x(n),
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
- [_e, m.value]
1166
+ [$e, m.value]
1164
1167
  ]),
1165
- y.value && z.value ? (E(), B("button", {
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((a) => R("next"), ["stop"]))
1172
+ onClick: d[0] || (d[0] = A((r) => j("next"), ["stop"]))
1170
1173
  }, [
1171
- V(x(i), { class: "maz-rotate-180 maz-text-3xl" })
1174
+ V(x(l), { class: "maz-rotate-180 maz-text-3xl" })
1172
1175
  ])) : S("v-if", !0),
1173
- y.value && z.value ? (E(), B("button", {
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((a) => R("previous"), ["stop"]))
1180
+ onClick: d[1] || (d[1] = A((r) => j("previous"), ["stop"]))
1178
1181
  }, [
1179
- V(x(i), { class: "maz-text-3xl" })
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", Ot, [
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: I,
1195
+ ref: k,
1193
1196
  src: $.value,
1194
1197
  alt: H.value ?? void 0,
1195
1198
  tabindex: "0",
1196
- class: Ee([W.value]),
1197
- onLoad: j,
1198
- onClick: d[2] || (d[2] = A((a) => u.zoom ? ee() : void 0, ["stop"]))
1199
- }, null, 42, Ht)
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, At));
1204
+ ], 40, xt));
1202
1205
  }
1203
- }), Re = (s, e) => {
1206
+ }), je = (s, e) => {
1204
1207
  const t = s.__vccOpts || s;
1205
- for (const [n, o] of e)
1206
- t[n] = o;
1208
+ for (const [n, i] of e)
1209
+ t[n] = i;
1207
1210
  return t;
1208
- }, Mt = /* @__PURE__ */ Re(Dt, [["__scopeId", "data-v-d975dba3"]]), Oe = "m-fullscreen-is-open";
1209
- class Pt {
1211
+ }, Dt = /* @__PURE__ */ je(Ht, [["__scopeId", "data-v-884a2c57"]]), Oe = "m-fullscreen-is-open";
1212
+ class Mt {
1210
1213
  constructor() {
1211
- l(this, "options");
1212
- l(this, "defaultOptions", {
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
- l(this, "mouseEnterListener");
1224
- l(this, "mouseLeaveListener");
1225
- l(this, "renderPreviewListener");
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 }, o = (n == null ? void 0 : n.src) ?? this.getImgSrc(e), i = (n == null ? void 0 : n.alt) ?? this.getImgAlt(e);
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: o,
1233
- alt: i
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), Fe(Mt, {
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 ae;
1284
- const $t = {
1286
+ let le;
1287
+ const Pt = {
1285
1288
  mounted(s, e) {
1286
- return ae = new Pt(), ae.create(s, e);
1289
+ return le = new Mt(), le.create(s, e);
1287
1290
  },
1288
1291
  updated(s, e) {
1289
- return ae.update(s, e);
1292
+ return le.update(s, e);
1290
1293
  },
1291
1294
  unmounted(s) {
1292
- return ae.remove(s);
1295
+ return le.remove(s);
1293
1296
  }
1294
- }, _t = {
1297
+ }, $t = {
1295
1298
  install(s) {
1296
- s.directive("fullscreen-img", $t);
1297
- }
1298
- }, Ft = [
1299
- Et,
1300
- St,
1301
- xt,
1302
- yt,
1303
- _t,
1304
- Lt
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 Ft)
1310
+ for (const e of _t)
1308
1311
  e.install(s, {});
1309
1312
  }
1310
- }, Nt = (s) => s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "", Vt = {
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
- }, Bt = (s, e, t) => {
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
- }, qt = (s, e, t) => {
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
- }, Ut = (s, e, t) => {
1335
+ }
1336
+ function qt(s, e, t) {
1327
1337
  const n = {
1328
- ...Vt,
1338
+ ...Nt,
1329
1339
  ...t
1330
1340
  };
1331
- qt(s, e, n);
1341
+ Bt(s, e, n);
1332
1342
  try {
1333
- return Bt(s, e, n);
1334
- } catch (o) {
1335
- throw new Error(`[maz-ui](FilterCurrency) ${o}`);
1343
+ return Vt(s, e, n);
1344
+ } catch (i) {
1345
+ throw new Error(`[maz-ui](FilterCurrency) ${i}`);
1336
1346
  }
1337
- }, Wt = {
1347
+ }
1348
+ const Ut = {
1338
1349
  month: "short",
1339
1350
  day: "numeric",
1340
1351
  year: "numeric"
1341
- }, jt = (s, e, t) => {
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 ?? Wt;
1358
+ const n = t ?? Ut;
1347
1359
  try {
1348
- const o = s instanceof Date ? s : new Date(s);
1349
- return new Intl.DateTimeFormat(e, n).format(o);
1350
- } catch (o) {
1351
- throw new Error(`[maz-ui](FilterDate) ${o}`);
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
- }, Rt = {
1365
+ }
1366
+ const jt = {
1354
1367
  minimumFractionDigits: 2
1355
- }, Yt = (s, e, t) => {
1368
+ };
1369
+ function Rt(s, e, t) {
1356
1370
  const n = {
1357
- ...Rt,
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 (o) {
1369
- throw new Error(`[maz-ui](FilterNumber) ${o}`);
1370
- }
1371
- }, Kt = {
1372
- capitalize: Nt,
1373
- currency: Ut,
1374
- date: jt,
1375
- number: Yt
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", Kt);
1393
+ s.provide("filters", Yt);
1379
1394
  }
1380
1395
  };
1381
- function Xt({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200 }) {
1382
- const n = v(s), o = v(s);
1383
- let i;
1384
- function r(b) {
1385
- typeof b == "number" && (o.value = b), typeof b == "number" && (n.value = b), c();
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
- i || (i = setInterval(() => {
1389
- o.value -= t, o.value <= 0 && (z(), e == null || e());
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
- i && (clearInterval(i), i = void 0);
1408
+ o && (clearInterval(o), o = void 0);
1394
1409
  }
1395
- function y() {
1396
- !i && o.value > 0 && c();
1410
+ function g() {
1411
+ !o && i.value > 0 && c();
1397
1412
  }
1398
1413
  function z() {
1399
- o.value = n.value, m();
1414
+ i.value = n.value, m();
1400
1415
  }
1401
1416
  return {
1402
- remainingTime: o,
1403
- start: r,
1417
+ remainingTime: i,
1418
+ start: l,
1404
1419
  pause: m,
1405
- resume: y,
1420
+ resume: g,
1406
1421
  stop: z
1407
1422
  };
1408
1423
  }
1409
- const Zt = { class: "m-toast__message-wrapper" }, Qt = { class: "m-toast__message" }, Gt = { class: "maz-flex maz-items-center maz-gap-2" }, Jt = { key: 0 }, es = {
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
- }, ts = /* @__PURE__ */ Me({
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 = T(() => import("./MazBtn-CXcW31TK.mjs")), o = T(() => import("./x-mark-BP8zWe_C.mjs")), i = T(
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
- ), r = T(
1446
+ ), m = I(
1432
1447
  () => import("./exclamation-triangle-BfZLmRbP.mjs")
1433
- ), c = T(
1448
+ ), g = I(
1434
1449
  () => import("./exclamation-circle-DzBJ8vGa.mjs")
1435
- ), m = T(
1450
+ ), z = I(
1436
1451
  () => import("./information-circle-C0pE_7kr.mjs")
1437
- ), y = T(() => import("./check-circle-CtCMBYyp.mjs")), z = T(() => import("./link-D7FkvsK4.mjs")), b = v(), f = s, k = p(() => {
1438
- if (f.icon)
1439
- switch (f.type) {
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 c;
1462
+ return g;
1448
1463
  default:
1449
1464
  return;
1450
1465
  }
1451
- }), U = t, $ = p(() => f.position.includes("top") ? "top" : "bottom"), H = p(() => f.position.includes("left") ? "left" : f.position.includes("right") ? "right" : "center"), Q = p(() => H.value !== "center" ? H.value === "right" ? "m-slide-right" : "m-slide-left" : $.value === "top" ? "m-slide-top" : "m-slide-bottom"), I = v(!1), W = v(!1), j = v(), D = `m-toast-container --${$.value} --${H.value}`, M = `.${D.replaceAll(" ", ".")}`, { start: me, stop: de, pause: G, resume: he, remainingTime: fe } = Xt({
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 f.timeout == "number" ? f.timeout : 0
1468
+ timeout: typeof n.timeout == "number" ? n.timeout : 0
1454
1469
  });
1455
- function R() {
1456
- const a = document.querySelector(M);
1457
- if (!a && !a) {
1458
- const h = document.body, g = document.createElement("div");
1459
- g.className = D, h.append(g);
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
- if (J()) {
1468
- j.value = setTimeout(ee, 250);
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 a = document.querySelector(M);
1472
- b.value && a && a.prepend(b.value), W.value = !0, typeof f.timeout == "number" && f.timeout > 0 && me();
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 Y = v("100%");
1475
- function te() {
1476
- switch (f.type) {
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
- (a) => {
1492
- if (typeof a == "number" && typeof f.timeout == "number") {
1493
- const h = 100 * a / f.timeout;
1494
- Y.value = `${h}%`, a <= 0 && P();
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 _(a) {
1499
- U("click", a), f.persistent || P();
1513
+ function _(r) {
1514
+ i("click", r), n.persistent || P();
1500
1515
  }
1501
- async function F(a, h) {
1502
- var g;
1503
- I.value = !0, await a(), I.value = !1, (g = f.action) != null && g.closeToast && _(h);
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 se(a) {
1506
- f.noPauseOnHover || (a ? G() : he());
1520
+ function ne(r) {
1521
+ n.noPauseOnHover || (r ? J() : he());
1507
1522
  }
1508
1523
  function ve() {
1509
- de(), j.value && clearTimeout(j.value);
1524
+ de(), W.value && clearTimeout(W.value);
1510
1525
  }
1511
1526
  function P() {
1512
- ve(), W.value = !1;
1527
+ ve(), U.value = !1;
1513
1528
  }
1514
1529
  e({ close: P });
1515
1530
  function u() {
1516
- U("open");
1531
+ i("open");
1517
1532
  }
1518
1533
  function d() {
1519
1534
  var h;
1520
- U("close"), (h = b.value) == null || h.remove();
1521
- const a = document.querySelector(M);
1522
- a && !(a != null && a.hasChildNodes()) && a.remove();
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
- R(), ee();
1526
- }), (a, h) => (E(), N(ot, {
1527
- name: Q.value,
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
- $e(O(
1548
+ Pe(O(
1534
1549
  "button",
1535
1550
  {
1536
1551
  ref_key: "Toaster",
1537
- ref: b,
1552
+ ref: T,
1538
1553
  class: Ee(["m-toast", [
1539
- `--${a.type}`,
1554
+ `--${r.type}`,
1540
1555
  `--${$.value}`,
1541
1556
  `--${H.value}`,
1542
- { "maz-pb-1": typeof a.timeout == "number" && a.timeout > 0, "--persistent": a.persistent }
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] = (g) => se(!0)),
1546
- onMouseleave: h[3] || (h[3] = (g) => se(!1)),
1547
- onClick: h[4] || (h[4] = A((g) => {
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 a.link && !((w = a.link) != null && w.closeToast) ? void 0 : _(g);
1564
+ return r.link && !((w = r.link) != null && w.closeToast) ? void 0 : _(p);
1550
1565
  }, ["stop"]))
1551
1566
  },
1552
1567
  [
1553
- k.value ? (E(), N(it(k.value), {
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", Zt, [
1572
+ O("div", Xt, [
1558
1573
  O(
1559
1574
  "p",
1560
- Qt,
1561
- be(a.message),
1575
+ Zt,
1576
+ be(r.message),
1562
1577
  1
1563
1578
  /* TEXT */
1564
1579
  )
1565
1580
  ]),
1566
- a.action ? (E(), N(x(n), {
1581
+ r.action ? (E(), N(x(o), {
1567
1582
  key: 1,
1568
1583
  "data-test": "action-btn",
1569
- color: a.type,
1584
+ color: r.type,
1570
1585
  pastel: "",
1571
- loading: I.value,
1586
+ loading: k.value,
1572
1587
  size: "sm",
1573
- onClick: h[0] || (h[0] = A((g) => a.action ? F(a.action.func, g) : void 0, ["stop"]))
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
- rt(
1577
- be(a.action.text),
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
- a.link ? (E(), N(x(n), {
1600
+ r.link ? (E(), N(x(o), {
1586
1601
  key: 2,
1587
1602
  "data-test": "link-btn",
1588
- color: a.type,
1603
+ color: r.type,
1589
1604
  pastel: "",
1590
1605
  size: "xs",
1591
- href: a.link.href,
1592
- target: a.link.target ?? "_self"
1606
+ href: r.link.href,
1607
+ target: r.link.target ?? "_self"
1593
1608
  }, {
1594
1609
  default: ye(() => {
1595
- var g;
1610
+ var p;
1596
1611
  return [
1597
- O("div", Gt, [
1598
- a.link.text ? (E(), B(
1612
+ O("div", Qt, [
1613
+ r.link.text ? (E(), B(
1599
1614
  "span",
1600
- Jt,
1601
- be(a.link.text),
1615
+ Gt,
1616
+ be(r.link.text),
1602
1617
  1
1603
1618
  /* TEXT */
1604
1619
  )) : S("v-if", !0),
1605
- ((g = a.link) == null ? void 0 : g.target) == "_blank" ? (E(), N(x(i), {
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(z), {
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
- a.persistent ? S("v-if", !0) : (E(), B("button", {
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((g) => _(g), ["stop"]))
1636
+ onClick: h[1] || (h[1] = A((p) => _(p), ["stop"]))
1622
1637
  }, [
1623
- V(x(o), { class: "--icon maz-text-xl" })
1638
+ V(x(l), { class: "--icon maz-text-xl" })
1624
1639
  ])),
1625
- typeof a.timeout == "number" && a.timeout > 0 ? (E(), B("div", es, [
1640
+ typeof r.timeout == "number" && r.timeout > 0 ? (E(), B("div", Jt, [
1626
1641
  O(
1627
1642
  "div",
1628
1643
  {
1629
- style: at({
1630
- width: Y.value
1644
+ style: rt({
1645
+ width: R.value
1631
1646
  }),
1632
- class: Ee(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", te()])
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
- [_e, W.value]
1658
+ [$e, U.value]
1644
1659
  ])
1645
1660
  ]),
1646
1661
  _: 1
1647
1662
  /* STABLE */
1648
1663
  }, 8, ["name"]));
1649
1664
  }
1650
- }), ss = /* @__PURE__ */ Re(ts, [["__scopeId", "data-v-b7764b1b"]]), ns = {
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 os {
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
- ...ns,
1677
+ ...ss,
1663
1678
  ...this.globalOptions,
1664
1679
  ...t,
1665
1680
  message: e
1666
- }, { destroy: o, vNode: i } = Fe(ss, {
1681
+ }, { destroy: i, vNode: o } = _e(ts, {
1667
1682
  props: n,
1668
1683
  app: this.app
1669
1684
  });
1670
1685
  return {
1671
- destroy: o,
1686
+ destroy: i,
1672
1687
  close: () => {
1673
- var r, c;
1674
- return (c = (r = i.component) == null ? void 0 : r.exposed) == null ? void 0 : c.close();
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
- let He;
1715
+ function is(s, e) {
1716
+ return new ns(s, e);
1717
+ }
1701
1718
  const As = {
1702
1719
  install(s, e) {
1703
- He = new os(s, e), s.provide("toast", He);
1720
+ s.provide("toast", is(s, e));
1704
1721
  }
1705
- }, q = "", is = (s) => s.filter((e, t, n) => t === n.indexOf(e)), rs = (s) => (e = q) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e), as = (s) => s.length > 0, ls = (s) => (e = q) => is([...s, e]), cs = (s) => (e = q) => s.filter((t) => t !== e);
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
- l(this, "_loaders", v([]));
1738
+ a(this, "_loaders", f([]));
1709
1739
  }
1710
1740
  get loaders() {
1711
- return p(() => this._loaders.value);
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 p(() => as(this._loaders.value));
1750
+ return v(() => as(this._loaders.value));
1721
1751
  }
1722
1752
  isLoading(e = q) {
1723
- return p(() => rs(this._loaders.value)(e)).value;
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
- l(this, "options");
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 i = n.target.getAttribute("data-maz-aos-children") === "true", r = n.target.getAttribute("data-maz-aos") ? [n.target] : [];
1761
- if (i) {
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 && r.push(m);
1796
+ m && l.push(m);
1767
1797
  }
1768
- for (const c of r) {
1769
- const m = c.getAttribute("data-maz-aos-once"), y = typeof m == "string" ? m === "true" : this.options.animation.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"), b = c.getAttribute("data-maz-aos-delay");
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)), b || (c.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
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"), y) {
1777
- const f = c.getAttribute("data-maz-aos-anchor");
1778
- if (f) {
1779
- const k = document.querySelector(f);
1780
- k && t.unobserve(k);
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 ht(this.options.delay);
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 o = document.querySelector(n);
1798
- o ? (o.setAttribute("data-maz-aos-children", "true"), e.observe(o)) : console.warn(`[maz-ui](aos) no element found with selector "${n}"`);
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 le;
1839
+ let Y;
1810
1840
  const Hs = {
1811
1841
  install: (s, e) => {
1812
- le = new ds(e), s.provide("aos", le), L() && (e != null && e.router ? e.router.afterEach(async () => {
1813
- le.runAnimations();
1814
- }) : le.runAnimations());
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
- }, hs = {
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 = v("system"), C = v("system");
1825
- function De() {
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: o = !0,
1834
- setSelectedTheme: i = !0
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, i && (C.value = n), o && (localStorage[t] = 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: o = !0,
1844
- setSelectedTheme: i = !0
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, i && (C.value = n), o && (localStorage[t] = 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 Ye({
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 Ke(s) {
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 ? Ke(s) : localStorage[s.storageThemeKey] === s.storageThemeValueDark || !localStorage[s.storageThemeKey] && De() || localStorage[s.storageThemeKey] === s.storageThemeValueSystem && De() ? X({
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" ? Ye(e) : s === "dark" ? X(e) : Z(e);
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 Ds(s) {
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
- }), Pe(() => {
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
- Ye(e);
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: () => Ke(e),
1929
- hasDarkTheme: p(() => C.value === e.storageThemeValueDark),
1930
- hasLightTheme: p(() => C.value === e.storageThemeValueLight),
1931
- hasSystemTheme: p(() => C.value === e.storageThemeValueSystem),
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 Ms({
1970
+ function Ps({
1937
1971
  componentName: s,
1938
1972
  providedId: e
1939
1973
  }) {
1940
- const t = lt();
1941
- return p(() => e ?? `${s}-${t == null ? void 0 : t.uid}`);
1974
+ const t = at();
1975
+ return v(() => e ?? `${s}-${t == null ? void 0 : t.uid}`);
1942
1976
  }
1943
- function Ps() {
1977
+ function $s() {
1944
1978
  return Se("aos");
1945
1979
  }
1946
- function $s() {
1980
+ function _s() {
1947
1981
  return Se("wait");
1948
1982
  }
1949
- function _s() {
1983
+ function Fs() {
1950
1984
  return Se("toast");
1951
1985
  }
1952
- function Fs({
1986
+ function Ns({
1953
1987
  callback: s,
1954
1988
  options: e
1955
1989
  }) {
1956
- return new mt(s, e);
1990
+ return new ut(s, e);
1957
1991
  }
1958
- function Ns({
1992
+ function Vs({
1959
1993
  callback: s,
1960
1994
  options: e
1961
1995
  }) {
1962
- return new dt(s, e);
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 vs(s = {}) {
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: o = !0
1970
- } = s, i = v(t), r = v(n);
2009
+ includeScrollbar: i = !0
2010
+ } = s, o = f(t), l = f(n);
1971
2011
  function c() {
1972
- e && (o ? (i.value = e.innerWidth, r.value = e.innerHeight) : (i.value = e.document.documentElement.clientWidth, r.value = e.document.documentElement.clientHeight));
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
- }), ct(() => {
2016
+ }), lt(() => {
1977
2017
  e && window.removeEventListener("resize", c);
1978
- }), { width: i, height: r };
2018
+ }), { width: o, height: l };
1979
2019
  }
1980
- function ps(s) {
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: o,
1992
- breakpoints: i,
1993
- mediumBreakPoint: r = "md",
2025
+ listenOrientation: i,
2026
+ breakpoints: o,
2027
+ mediumBreakPoint: l = "md",
1994
2028
  largeBreakPoint: c = "lg"
1995
2029
  }) {
1996
- const { width: m } = vs({
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: o
2003
- }), y = ps(i), z = p(() => m.value >= y[c]), b = p(
2004
- () => m.value >= y[r] && m.value < y[c]
2005
- ), f = p(() => m.value >= 0 && m.value < y[r]);
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: y,
2009
- isSmallScreen: f,
2042
+ numericBreakpoints: g,
2043
+ isSmallScreen: b,
2010
2044
  isLargeScreen: z,
2011
- isMediumScreen: b,
2012
- breakpoints: i
2045
+ isMediumScreen: y,
2046
+ breakpoints: o
2013
2047
  };
2014
2048
  }
2015
- function Bs(s) {
2016
- const e = new ft({
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
- t.value = m.xDiff, n.value = m.yDiff, o.value = m.xStart, i.value = m.xEnd, r.value = m.yStart, c.value = m.yEnd;
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
- }), t = v(), n = v(), o = v(), i = v(), r = v(), c = v();
2056
+ });
2023
2057
  return {
2024
- xDiff: t,
2025
- yDiff: n,
2026
- xStart: o,
2058
+ xDiff: e,
2059
+ yDiff: t,
2060
+ xStart: n,
2027
2061
  xEnd: i,
2028
- yStart: r,
2029
- yEnd: c,
2030
- start: e.start,
2031
- stop: e.stop
2062
+ yStart: o,
2063
+ yEnd: l,
2064
+ start: c.start,
2065
+ stop: c.stop
2032
2066
  };
2033
2067
  }
2034
- function Xe(s) {
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 = Xe([s]);
2073
+ const t = Ke([s]);
2040
2074
  return Math.ceil(t / e);
2041
2075
  }
2042
- function qs(s) {
2043
- const e = p(
2076
+ function Us(s) {
2077
+ const e = v(
2044
2078
  () => {
2045
- var r;
2046
- return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
2079
+ var l;
2080
+ return typeof s.velocity == "number" ? s.velocity : ((l = s.velocity) == null ? void 0 : l.value) ?? 150;
2047
2081
  }
2048
- ), t = p(() => {
2049
- var r;
2050
- return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
2051
- }), n = p(() => {
2052
- var r, c, m;
2053
- if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
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 y = document.querySelector(t.value);
2057
- if (y)
2058
- return y.textContent;
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
- }), o = p(() => gs(n.value, e.value)), i = p(() => Xe([n.value]));
2095
+ }), i = v(() => gs(n.value, e.value)), o = v(() => Ke([n.value]));
2062
2096
  return {
2063
2097
  content: n,
2064
- wordCount: i,
2098
+ wordCount: o,
2065
2099
  velocity: e,
2066
- duration: o
2100
+ duration: i
2067
2101
  };
2068
2102
  }
2069
2103
  function ys(s, e) {
2070
- const t = s.length, n = e.length, o = [];
2071
- for (let i = 0; i <= t; i++)
2072
- o[i] = [i];
2073
- for (let i = 0; i <= n; i++)
2074
- o[0][i] = i;
2075
- for (let i = 1; i <= t; i++)
2076
- for (let r = 1; r <= n; r++) {
2077
- const c = s[i - 1] === e[r - 1] ? 0 : 1;
2078
- o[i][r] = Math.min(
2079
- o[i - 1][r] + 1,
2080
- o[i][r - 1] + 1,
2081
- o[i - 1][r - 1] + c
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 o[t][n];
2118
+ return i[t][n];
2085
2119
  }
2086
- function Ze(s, e) {
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 Ze(s, e) >= t;
2125
+ return Xe(s, e) >= t;
2092
2126
  }
2093
- function Us(s, e, t = 0.75) {
2094
- const n = p(
2127
+ function Ws(s, e, t = 0.75) {
2128
+ const n = v(
2095
2129
  () => xe(typeof s == "string" ? s : s.value)
2096
- ), o = p(
2130
+ ), i = v(
2097
2131
  () => xe(typeof e == "string" ? e : e.value)
2098
- ), i = p(() => typeof t == "number" ? t : t.value), r = p(() => Ze(n.value, o.value));
2132
+ ), o = v(() => typeof t == "number" ? t : t.value), l = v(() => Xe(n.value, i.value));
2099
2133
  return {
2100
- isMatching: p(
2101
- () => bs(n.value, o.value, i.value)
2134
+ isMatching: v(
2135
+ () => bs(n.value, i.value, o.value)
2102
2136
  ),
2103
- score: r
2137
+ score: l
2104
2138
  };
2105
2139
  }
2106
2140
  export {
2107
- Us as $,
2108
- jt as A,
2109
- Yt as B,
2141
+ Wt as A,
2142
+ Rt as B,
2110
2143
  As as C,
2111
- He as D,
2112
- Os as E,
2113
- ms as F,
2114
- ds as G,
2115
- Hs as H,
2116
- mt as I,
2117
- le as J,
2118
- Ds as K,
2119
- Ms as L,
2120
- Ps as M,
2121
- $s as N,
2122
- _s as O,
2123
- Fs as P,
2124
- Ns as Q,
2125
- Xt as R,
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
- os as T,
2128
- dt as U,
2129
- Vs as V,
2160
+ ns as T,
2161
+ mt as U,
2162
+ ps as V,
2130
2163
  us as W,
2131
- vs as X,
2132
- Bs as Y,
2133
- qs as Z,
2134
- Re as _,
2164
+ qs as X,
2165
+ Us as Y,
2166
+ Ws as Z,
2167
+ je as _,
2135
2168
  L as a,
2136
- ft as b,
2169
+ ht as b,
2137
2170
  Ts as c,
2138
2171
  Es as d,
2139
2172
  Is as e,
2140
- gt as f,
2141
- yt as g,
2142
- xt as h,
2173
+ pt as f,
2174
+ gt as g,
2175
+ Ct as h,
2143
2176
  Se as i,
2144
2177
  Ss as j,
2145
- St as k,
2146
- _t as l,
2147
- Fe as m,
2178
+ kt as k,
2179
+ $t as l,
2180
+ _e as m,
2148
2181
  xe as n,
2149
- $t as o,
2182
+ Pt as o,
2150
2183
  Cs as p,
2151
- zt as q,
2152
- Et as r,
2153
- ht as s,
2154
- ut as t,
2155
- Lt as u,
2156
- kt as v,
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
- Nt as y,
2160
- Ut as z
2192
+ Ft as y,
2193
+ qt as z
2161
2194
  };