maz-ui 3.47.2-beta.2 → 3.47.2-beta.21

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