maz-ui 3.47.2-beta.8 → 3.48.0

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