maz-ui 3.47.2-beta.23 → 3.47.2-beta.25

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 (247) hide show
  1. package/components/MazAccordion.mjs +56 -56
  2. package/components/MazAnimatedCounter.mjs +7 -7
  3. package/components/MazAvatar.mjs +1 -1
  4. package/components/MazBackdrop.mjs +9 -9
  5. package/components/MazBadge.mjs +2 -2
  6. package/components/MazBottomSheet.mjs +1 -1
  7. package/components/MazBtn.mjs +1 -1
  8. package/components/MazCard.mjs +1 -1
  9. package/components/MazCardSpotlight.mjs +7 -7
  10. package/components/MazCarousel.mjs +1 -1
  11. package/components/MazChart.mjs +13 -13
  12. package/components/MazCheckbox.mjs +2 -2
  13. package/components/MazChecklist.mjs +1 -1
  14. package/components/MazCircularProgressBar.mjs +11 -11
  15. package/components/MazDialog.mjs +1 -1
  16. package/components/MazDialogPromise.mjs +1 -1
  17. package/components/MazDrawer.mjs +1 -1
  18. package/components/MazDropdown.mjs +1 -1
  19. package/components/MazDropzone.mjs +1 -1
  20. package/components/MazExpandAnimation.mjs +8 -8
  21. package/components/MazFullscreenLoader.mjs +2 -40
  22. package/components/MazGallery.mjs +1 -1
  23. package/components/MazIcon.mjs +9 -8
  24. package/components/MazInput.mjs +1 -1
  25. package/components/MazInputCode.mjs +2 -2
  26. package/components/MazInputNumber.mjs +1 -1
  27. package/components/MazInputPrice.mjs +1 -1
  28. package/components/MazInputTags.mjs +1 -1
  29. package/components/MazLazyImg.mjs +1 -1
  30. package/components/MazLink.d.ts +2 -2
  31. package/components/MazLink.mjs +6 -6
  32. package/components/MazLoadingBar.mjs +17 -17
  33. package/components/MazPagination.mjs +1 -1
  34. package/components/MazPhoneNumberInput.mjs +1 -1
  35. package/components/MazPicker.mjs +1 -1
  36. package/components/MazPullToRefresh.mjs +1 -1
  37. package/components/MazRadio.mjs +11 -11
  38. package/components/MazRadioButtons.mjs +2 -2
  39. package/components/MazReadingProgressBar.mjs +15 -15
  40. package/components/MazSelect.mjs +1 -1
  41. package/components/MazSlider.mjs +31 -31
  42. package/components/MazSpinner.mjs +7 -7
  43. package/components/MazStepper.d.ts +1 -1
  44. package/components/MazStepper.mjs +1 -1
  45. package/components/MazSwitch.mjs +9 -9
  46. package/components/MazTable.mjs +1 -1
  47. package/components/MazTableCell.mjs +12 -12
  48. package/components/MazTableRow.mjs +6 -6
  49. package/components/MazTableTitle.mjs +11 -11
  50. package/components/MazTabs.d.ts +3 -3
  51. package/components/MazTabs.mjs +7 -7
  52. package/components/MazTabsBar.mjs +1 -1
  53. package/components/MazTabsContent.mjs +4 -4
  54. package/components/MazTabsContentItem.mjs +8 -8
  55. package/components/MazTextarea.mjs +2 -2
  56. package/components/MazTransitionExpand.mjs +10 -10
  57. package/components/assets/MazAccordion.css +1 -1
  58. package/components/assets/MazAnimatedCounter.css +1 -1
  59. package/components/assets/MazAvatar.css +1 -1
  60. package/components/assets/MazBackdrop.css +1 -1
  61. package/components/assets/MazBadge.css +1 -1
  62. package/components/assets/MazBottomSheet.css +1 -1
  63. package/components/assets/MazBtn.css +1 -1
  64. package/components/assets/MazCard.css +1 -1
  65. package/components/assets/MazCardSpotlight.css +1 -1
  66. package/components/assets/MazCarousel.css +1 -1
  67. package/components/assets/MazCheckbox.css +1 -1
  68. package/components/assets/MazChecklist.css +1 -1
  69. package/components/assets/MazCircularProgressBar.css +1 -1
  70. package/components/assets/MazDialog.css +1 -1
  71. package/components/assets/MazDialogPromise.css +1 -1
  72. package/components/assets/MazDrawer.css +1 -1
  73. package/components/assets/MazExpandAnimation.css +1 -1
  74. package/components/assets/MazFullscreenLoader.css +1 -1
  75. package/components/assets/MazGallery.css +1 -1
  76. package/components/assets/MazInput.css +1 -1
  77. package/components/assets/MazInputCode.css +1 -1
  78. package/components/assets/MazInputNumber.css +1 -1
  79. package/components/assets/MazInputPrice.css +1 -1
  80. package/components/assets/MazInputTags.css +1 -1
  81. package/components/assets/MazLazyImg.css +1 -1
  82. package/components/assets/MazLink.css +1 -1
  83. package/components/assets/MazLoadingBar.css +1 -1
  84. package/components/assets/MazPagination.css +1 -1
  85. package/components/assets/MazPhoneNumberInput.css +1 -1
  86. package/components/assets/MazPicker.css +1 -1
  87. package/components/assets/MazPullToRefresh.css +1 -1
  88. package/components/assets/MazRadio.css +1 -1
  89. package/components/assets/MazRadioButtons.css +1 -1
  90. package/components/assets/MazReadingProgressBar.css +1 -1
  91. package/components/assets/MazSelect.css +1 -1
  92. package/components/assets/MazSlider.css +1 -1
  93. package/components/assets/MazSpinner.css +1 -1
  94. package/components/assets/MazStepper.css +1 -1
  95. package/components/assets/MazTable.css +1 -1
  96. package/components/assets/MazTableCell.css +1 -1
  97. package/components/assets/MazTableRow.css +1 -1
  98. package/components/assets/MazTableTitle.css +1 -1
  99. package/components/assets/MazTabsBar.css +1 -1
  100. package/components/assets/MazTabsContentItem.css +1 -1
  101. package/components/assets/MazTextarea.css +1 -1
  102. package/components/assets/MazTransitionExpand.css +1 -1
  103. package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
  104. package/components/chunks/{MazBadge-DCzaExPj.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
  105. package/components/chunks/{MazBottomSheet-DGsGO0zo.mjs → MazBottomSheet-CMqzf-dT.mjs} +15 -15
  106. package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
  107. package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
  108. package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
  109. package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
  110. package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
  111. package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
  112. package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
  113. package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
  114. package/components/chunks/{MazBtn-oZhhJy09.mjs → MazBtn-DETtZdlj.mjs} +3 -3
  115. package/components/chunks/{MazBtn-BS2kvd1Z.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
  116. package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
  117. package/components/chunks/{MazBtn-4-B-zs6Y.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
  118. package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
  119. package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
  120. package/components/chunks/{MazCard-98OuVlyK.mjs → MazCard-l54W3CUU.mjs} +3 -3
  121. package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
  122. package/components/chunks/{MazCheckbox-CbfTOJdy.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
  123. package/components/chunks/{MazCheckbox-CCma_qyQ.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
  124. package/components/chunks/{MazCheckbox-eOEEACaM.mjs → MazCheckbox-D-7-TdgO.mjs} +3 -3
  125. package/components/chunks/{MazChecklist-Bb_70sf5.mjs → MazChecklist-DSfD55m5.mjs} +125 -125
  126. package/components/chunks/{MazDialog-Ca3jJ12T.mjs → MazDialog-BjQ3ivmv.mjs} +107 -107
  127. package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
  128. package/components/chunks/{MazDrawer-Bas9dy0D.mjs → MazDrawer-BqNLfW4e.mjs} +3 -3
  129. package/components/chunks/{MazDropdown-0r445NfW.mjs → MazDropdown-DNXKdC_3.mjs} +3 -2
  130. package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
  131. package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
  132. package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
  133. package/components/chunks/{MazGallery-r8SBTCgJ.mjs → MazGallery-CzlKPQFX.mjs} +65 -65
  134. package/components/chunks/{MazGallery-xPp1apvO.mjs → MazGallery-DdZ3bFvX.mjs} +5 -5
  135. package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
  136. package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
  137. package/{modules/chunks/MazIcon-C3__MBEL.mjs → components/chunks/MazIcon-DR6-win-.mjs} +12 -11
  138. package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
  139. package/components/chunks/{MazInput-BM4n-byz.mjs → MazInput-BjnuoFvn.mjs} +26 -26
  140. package/components/chunks/{MazInput-BcutbP8N.mjs → MazInput-DB4HtpCQ.mjs} +4 -4
  141. package/components/chunks/{MazInput-C9Qh4Gt3.mjs → MazInput-yBii2AFS.mjs} +19 -19
  142. package/components/chunks/{MazInputNumber-DgjOMiOt.mjs → MazInputNumber-DqnLi9-C.mjs} +37 -37
  143. package/components/chunks/{MazInputPrice-D6fJN9yv.mjs → MazInputPrice-Ca8mL53M.mjs} +4 -4
  144. package/components/chunks/{MazInputTags-DthGSyHQ.mjs → MazInputTags-Bto9dVQq.mjs} +40 -40
  145. package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
  146. package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
  147. package/components/chunks/{MazLink-tud3eDgU.mjs → MazLink-DlUG7E5K.mjs} +3 -3
  148. package/components/chunks/{MazLoadingBar-C2qPjfEQ.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
  149. package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
  150. package/components/chunks/{MazPhoneNumberInput-BAGcArnr.mjs → MazPhoneNumberInput-C3j3JyDI.mjs} +11 -11
  151. package/components/chunks/{MazPicker-BljfUneI.mjs → MazPicker-BUXJof_-.mjs} +9 -9
  152. package/components/chunks/{MazPickerMonthSwitcher-CEVb4BXw.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
  153. package/components/chunks/{MazPickerShortcuts-DayGMC9m.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
  154. package/components/chunks/{MazPickerYearSwitcher-DC1lFIbp.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
  155. package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
  156. package/components/chunks/{MazSelect-CH3JdigO.mjs → MazSelect-BwahUlbE.mjs} +49 -49
  157. package/components/chunks/{MazSelect-D3KXcHJS.mjs → MazSelect-CBaOs6va.mjs} +44 -44
  158. package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
  159. package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
  160. package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
  161. package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
  162. package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
  163. package/components/chunks/{MazSpinner-BBZoDxwq.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
  164. package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
  165. package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
  166. package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
  167. package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
  168. package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
  169. package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
  170. package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
  171. package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
  172. package/components/chunks/{MazSpinner-BlbTztM3.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
  173. package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
  174. package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
  175. package/components/chunks/{MazSpinner-BIPm54-3.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
  176. package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
  177. package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
  178. package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
  179. package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
  180. package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
  181. package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
  182. package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
  183. package/components/chunks/{MazTable-BU3Hluiu.mjs → MazTable-Soe-MrTW.mjs} +79 -74
  184. package/components/chunks/{MazTableCell-DKMZAanm.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
  185. package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
  186. package/components/chunks/{MazTableTitle-BSFZ84Ob.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
  187. package/components/chunks/{MazTabsBar--Xq_cpuz.mjs → MazTabsBar-8wchBiYF.mjs} +20 -20
  188. package/components/chunks/{MazTransitionExpand-Cedz9Ree.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
  189. package/css/main.css +1 -1
  190. package/modules/assets/MazBtn.css +1 -1
  191. package/modules/assets/MazSpinner.css +1 -1
  192. package/modules/assets/index.css +1 -1
  193. package/modules/chunks/MazBtn-D0bVfaLm.cjs +1 -0
  194. package/{components/chunks/MazBtn-C60T0UDa.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
  195. package/modules/chunks/{MazIcon-CqhvM2xp.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
  196. package/{components/chunks/MazIcon-BSUswKRF.mjs → modules/chunks/MazIcon-XtyPgbu6.mjs} +12 -11
  197. package/{components/chunks/MazSpinner-B5JChIrj.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
  198. package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
  199. package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
  200. package/modules/chunks/{index-CXu9R01-.mjs → index-YwIF5a3Q.mjs} +746 -745
  201. package/modules/index.cjs +1 -1
  202. package/modules/index.mjs +1 -1
  203. package/nuxt/index.json +1 -1
  204. package/package.json +1 -1
  205. package/tailwindcss/tailwind.css +0 -6
  206. package/tailwindcss/variables/utilities.ts +3 -0
  207. package/types/components/MazLink.vue.d.ts +2 -2
  208. package/types/components/MazStepper.vue.d.ts +1 -1
  209. package/types/components/MazTabs.vue.d.ts +3 -3
  210. package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
  211. package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
  212. package/types/tailwindcss/variables/utilities.d.ts +3 -0
  213. package/components/chunks/MazBtn-C6zsmGnw.mjs +0 -103
  214. package/components/chunks/MazBtn-CC9H3U2X.mjs +0 -103
  215. package/components/chunks/MazBtn-CsLtHm4K.mjs +0 -103
  216. package/components/chunks/MazBtn-D1jMqwE1.mjs +0 -103
  217. package/components/chunks/MazBtn-DAXwt847.mjs +0 -103
  218. package/components/chunks/MazBtn-DOWVQgpN.mjs +0 -103
  219. package/components/chunks/MazBtn-DZaVjTvW.mjs +0 -103
  220. package/components/chunks/MazBtn-ZAcYNusG.mjs +0 -103
  221. package/components/chunks/MazDialogPromise-DOnmLhui.mjs +0 -551
  222. package/components/chunks/MazIcon-BoTByt7n.mjs +0 -4
  223. package/components/chunks/MazSpinner-C-ln9ldX.mjs +0 -34
  224. package/components/chunks/MazSpinner-C11EOZZd.mjs +0 -34
  225. package/components/chunks/MazSpinner-C6h03sqc.mjs +0 -34
  226. package/components/chunks/MazSpinner-CCc9ajpj.mjs +0 -34
  227. package/components/chunks/MazSpinner-CgKOIkQQ.mjs +0 -34
  228. package/components/chunks/MazSpinner-Cp_nPioh.mjs +0 -34
  229. package/components/chunks/MazSpinner-CwdlrYSt.mjs +0 -34
  230. package/components/chunks/MazSpinner-D5Sbo759.mjs +0 -34
  231. package/components/chunks/MazSpinner-DOPjHhPx.mjs +0 -34
  232. package/components/chunks/MazSpinner-DPur0-r-.mjs +0 -34
  233. package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
  234. package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
  235. package/components/chunks/MazSpinner-DqD51Fb6.mjs +0 -34
  236. package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
  237. package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
  238. package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
  239. package/components/chunks/MazSpinner-ZFhNCy24.mjs +0 -34
  240. package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
  241. package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
  242. package/components/chunks/MazTableRow-CDHpmXfw.mjs +0 -30
  243. package/modules/chunks/MazBtn-CFge_w1W.cjs +0 -1
  244. package/modules/chunks/MazBtn-yNCoLFA6.mjs +0 -103
  245. package/modules/chunks/MazSpinner-C4XtaFJk.mjs +0 -34
  246. package/modules/chunks/MazSpinner-DkJAN36F.cjs +0 -1
  247. package/modules/chunks/index-Bawg2UGE.cjs +0 -124
@@ -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 w, onMounted as le, onUnmounted as it, computed as p, toValue as ve, nextTick as ae, getCurrentInstance as $t, watch as X, provide as Vt, useId as Ht, onBeforeUnmount as rt, createVNode as J, render as Ce, defineComponent as ye, defineAsyncComponent as H, reactive as Bt, openBlock as C, createElementBlock as U, withModifiers as Y, withKeys as Nt, unref as x, createCommentVNode as B, createElementVNode as V, normalizeClass as ge, withDirectives as at, vShow as lt, createBlock as N, Teleport as Ft, Transition as ut, withCtx as q, mergeProps as ee, renderSlot as W, useAttrs as jt, createTextVNode as Q, toDisplayString as Z, Fragment as Ye, renderList as qt, resolveDynamicComponent as Ut, normalizeStyle as Wt } from "vue";
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
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 jn() {
11
+ function qn() {
12
12
  return De("aos");
13
13
  }
14
- function Rt(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,23 +20,23 @@ function Rt(s) {
20
20
  function F() {
21
21
  return typeof document < "u";
22
22
  }
23
- function _t(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 = w(t), r = w(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
  }
33
- return a(), le(() => {
33
+ return a(), ue(() => {
34
34
  e && window.addEventListener("resize", a, { passive: !0 });
35
35
  }), it(() => {
36
36
  e && window.removeEventListener("resize", a);
37
37
  }), { width: i, height: r };
38
38
  }
39
- function qn({
39
+ function Un({
40
40
  initialWidth: s = 0,
41
41
  initialHeight: e,
42
42
  includeScrollbar: t,
@@ -46,26 +46,26 @@ function qn({
46
46
  mediumBreakPoint: r = "md",
47
47
  largeBreakPoint: a = "lg"
48
48
  }) {
49
- const { width: l } = _t({
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
- }), u = Rt(i), b = p(() => l.value >= u[a]), c = p(
56
+ }), u = _t(i), y = h(() => l.value >= u[a]), z = h(
57
57
  () => l.value >= u[r] && l.value < u[a]
58
- ), f = p(() => l.value >= 0 && l.value < u[r]);
58
+ ), w = h(() => l.value >= 0 && l.value < u[r]);
59
59
  return {
60
60
  width: l,
61
61
  numericBreakpoints: u,
62
- isSmallScreen: f,
63
- isLargeScreen: b,
64
- isMediumScreen: c,
62
+ isSmallScreen: w,
63
+ isLargeScreen: y,
64
+ isMediumScreen: z,
65
65
  breakpoints: i
66
66
  };
67
67
  }
68
- function Un() {
68
+ function Wn() {
69
69
  return De("dialog");
70
70
  }
71
71
  function ct(s, e, t) {
@@ -82,13 +82,13 @@ function ct(s, e, t) {
82
82
  i();
83
83
  }
84
84
  function dt(s) {
85
- const e = ve(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())
@@ -96,7 +96,7 @@ function Kt(s, e) {
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;
@@ -106,9 +106,9 @@ function Yt(s, e) {
106
106
  return !0;
107
107
  }
108
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) ? Kt(s, e) : typeof s == "object" && typeof e == "object" ? Yt(s, e) : !1;
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
113
  return function(...o) {
114
114
  n[s] || (n[s] = { timer: null, promise: null });
@@ -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;
@@ -166,7 +166,7 @@ function Gt(s, e) {
166
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,
@@ -272,42 +272,42 @@ function ht({
272
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
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,
@@ -319,7 +319,7 @@ async function pe({
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]);
322
+ const { result: r, isValid: a } = await rs(s, t, n[s]);
323
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({
@@ -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],
@@ -365,7 +365,7 @@ function pt({
365
365
  const { dirty: n, blurred: o, mode: i, valid: r } = e;
366
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,
@@ -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,
@@ -407,17 +407,17 @@ function Re(s) {
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
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
422
  if (!(s || we(["aggressive", "lazy"], e.mode)))
423
423
  return {
@@ -431,13 +431,13 @@ async function gt(s) {
431
431
  const e = await import("./index-BgyjI1q8.mjs");
432
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
437
  function we(s, e) {
438
438
  return e ? s.includes(e) : !1;
439
439
  }
440
- function Wn(s, e) {
440
+ function Rn(s, e) {
441
441
  const t = {
442
442
  formIdentifier: "main-form-validator",
443
443
  ...e
@@ -448,85 +448,86 @@ function Wn(s, e) {
448
448
  internalSchema: r,
449
449
  errorMessages: a,
450
450
  isSubmitted: l
451
- } = us(t.formIdentifier, "useFormField"), u = mt(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
451
+ } = cs(t.formIdentifier, "useFormField"), u = mt(s, r.value) ? (e == null ? void 0 : e.mode) ?? i.mode : void 0;
452
452
  t.mode = u;
453
- const b = p(() => n.value[s]);
453
+ const y = h(() => n.value[s]);
454
454
  if (n.value[s] = ht({
455
455
  name: s,
456
- fieldState: b.value,
456
+ fieldState: y.value,
457
457
  payload: o.value,
458
458
  schema: r.value,
459
459
  options: { ...i, ...t }
460
460
  }), t.defaultValue !== void 0 && !be(o.value[s], t.defaultValue)) {
461
- const E = t.defaultValue;
462
- o.value[s] = E, n.value[s].initialValue = dt(E);
461
+ const f = t.defaultValue;
462
+ o.value[s] = f, n.value[s].initialValue = dt(f);
463
463
  }
464
- u && pe({
464
+ u && ge({
465
465
  name: s,
466
- fieldState: b.value,
466
+ fieldState: y.value,
467
467
  payload: o.value,
468
468
  schema: r.value,
469
469
  setError: u === "aggressive",
470
470
  setErrorIfInvalidAndNotEmpty: u === "lazy"
471
471
  });
472
- function c() {
473
- as({
472
+ function z() {
473
+ ls({
474
474
  name: s,
475
- fieldState: b.value,
475
+ fieldState: y.value,
476
476
  payload: o.value,
477
477
  schema: r.value,
478
478
  isSubmitted: l.value
479
479
  });
480
480
  }
481
- const f = p(
482
- () => cs({
481
+ const w = h(
482
+ () => ds({
483
483
  ref: t.ref,
484
- onBlurHandler: c,
485
- fieldState: b.value
484
+ onBlur: z,
485
+ fieldState: y.value
486
486
  })
487
487
  );
488
488
  if (t.ref && we(["eager", "blur", "progressive"], u)) {
489
- let E = [];
490
- const O = (I) => {
491
- E = ss(I), ns({
492
- interactiveElements: E,
493
- onBlurHandler: c,
489
+ let f = [];
490
+ const k = (T) => {
491
+ f = ns(T), os({
492
+ interactiveElements: f,
493
+ onBlur: z,
494
494
  mode: u
495
495
  });
496
496
  };
497
- le(() => {
498
- const I = Re(`useFormField of ${s}`);
499
- ct(() => I.refs[t.ref], (h) => {
500
- const m = h instanceof HTMLElement ? h : h == null ? void 0 : h.$el;
501
- m && O(m);
497
+ ue(() => {
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: E,
508
- onBlurHandler: c
506
+ is({
507
+ interactiveElements: f,
508
+ onBlur: z
509
509
  });
510
510
  });
511
511
  }
512
512
  return {
513
- hasError: p(() => b.value.error),
514
- errors: p(() => b.value.errors),
515
- errorMessage: p(() => a.value[s]),
516
- isValid: p(() => b.value.valid),
517
- isDirty: p(() => b.value.dirty),
518
- isBlurred: p(() => b.value.blurred),
519
- isValidated: p(() => b.value.validated),
520
- isValidating: p(() => b.value.validating),
521
- mode: p(() => b.value.mode),
522
- value: p({
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: (E) => o.value[s] = E
524
+ set: (f) => o.value[s] = f
525
525
  }),
526
- validationEvents: f
526
+ validationEvents: w,
527
+ onBlur: z
527
528
  };
528
529
  }
529
- function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
530
+ function _n({ schema: s, defaultValues: e, model: t, options: n }) {
530
531
  const o = Re("useFormValidator"), i = {
531
532
  mode: te.mode,
532
533
  scrollToError: te.scrollToErrorSelector,
@@ -534,82 +535,82 @@ function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
534
535
  throttledFields: null,
535
536
  identifier: "main-form-validator",
536
537
  ...n
537
- }, r = w(e), a = w({ ...r.value, ...t == null ? void 0 : t.value }), l = w(s), u = w(
538
- Jt({
538
+ }, r = b(e), a = b({ ...r.value, ...t == null ? void 0 : t.value }), l = b(s), u = b(
539
+ es({
539
540
  schema: l.value,
540
541
  payload: a.value,
541
542
  options: i
542
543
  })
543
- ), b = w(!1), c = w(!1), f = p(() => Object.values(u.value).every(({ valid: T }) => T)), E = p(() => Object.values(u.value).some(({ dirty: T }) => T)), O = p(() => ts(u.value)), I = p(() => Gt(O.value, u.value));
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
- (T) => {
547
- t.value = { ...r.value, ...T };
547
+ (L) => {
548
+ t.value = { ...r.value, ...L };
548
549
  },
549
550
  { deep: !0 }
550
551
  ), X(
551
552
  r,
552
- (T) => {
553
- a.value = { ...T, ...a.value };
553
+ (L) => {
554
+ a.value = { ...L, ...a.value };
554
555
  },
555
556
  { deep: !0 }
556
557
  ), X(
557
558
  l,
558
- (T) => {
559
- es({
560
- schema: T,
559
+ (L) => {
560
+ ts({
561
+ schema: L,
561
562
  fieldsStates: u.value,
562
563
  payload: a.value,
563
564
  options: i
564
- }), h();
565
+ }), m();
565
566
  },
566
567
  { deep: !0 }
567
- ), h();
568
- function h(T = i.mode === "aggressive") {
569
- return rs({
568
+ ), m();
569
+ function m(L = i.mode === "aggressive") {
570
+ return as({
570
571
  fieldsStates: u.value,
571
572
  payload: a.value,
572
573
  schema: l.value,
573
- showErrors: T
574
+ showErrors: L
574
575
  });
575
576
  }
576
- const m = [];
577
- async function L(T) {
577
+ const d = [];
578
+ async function C(L) {
578
579
  await ae();
579
580
  const P = X(
580
- () => a.value[T],
581
+ () => a.value[L],
581
582
  () => {
582
- const j = u.value[T];
583
- ls({
584
- name: T,
583
+ const j = u.value[L];
584
+ us({
585
+ name: L,
585
586
  fieldState: j,
586
587
  payload: a.value,
587
588
  schema: l.value,
588
- isSubmitted: c.value,
589
+ isSubmitted: z.value,
589
590
  forceValidation: we(["aggressive", "lazy", "progressive"], j.mode)
590
591
  });
591
592
  },
592
- { deep: typeof l.value[T] == "object" }
593
+ { deep: typeof l.value[L] == "object" }
593
594
  );
594
- m.push(P);
595
+ d.push(P);
595
596
  }
596
- function g() {
597
- for (const T of m)
598
- T();
599
- for (const T of Object.keys(l.value))
600
- L(T);
597
+ function p() {
598
+ for (const L of d)
599
+ L();
600
+ for (const L of Object.keys(l.value))
601
+ C(L);
601
602
  }
602
- function A(T, P) {
603
+ function S(L, P) {
603
604
  return async (j) => {
604
- if (j == null || j.preventDefault(), !b.value) {
605
- c.value = !0, b.value = !0;
605
+ if (j == null || j.preventDefault(), !y.value) {
606
+ z.value = !0, y.value = !0;
606
607
  try {
607
- await h(!0);
608
+ await m(!0);
608
609
  const se = typeof P == "string" ? P : i.scrollToError;
609
610
  let G;
610
- return f.value ? G = await T(a.value) : typeof se != "boolean" && Xe(se), b.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
- b.value = !1;
613
+ y.value = !1;
613
614
  }
614
615
  }
615
616
  };
@@ -619,42 +620,42 @@ function Rn({ schema: s, defaultValues: e, model: t, options: n }) {
619
620
  payload: a,
620
621
  options: i,
621
622
  internalSchema: l,
622
- errorMessages: I,
623
- isSubmitted: c
623
+ errorMessages: T,
624
+ isSubmitted: z
624
625
  };
625
- return o.formContexts ?? (o.formContexts = /* @__PURE__ */ new Map()), o.formContexts.set(i.identifier, D), Vt(i.identifier, D), g(), {
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: E,
628
- isSubmitting: b,
629
- isSubmitted: c,
630
- isValid: f,
631
- errors: O,
628
+ isDirty: f,
629
+ isSubmitting: y,
630
+ isSubmitted: z,
631
+ isValid: w,
632
+ errors: k,
632
633
  model: a,
633
634
  fieldsStates: u,
634
- validateForm: h,
635
+ validateForm: m,
635
636
  scrollToError: Xe,
636
- handleSubmit: A,
637
- errorMessages: I
637
+ handleSubmit: S,
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,19 +745,19 @@ class ms {
744
745
  e ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
745
746
  }
746
747
  }
747
- function _n({
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 Kn({
754
+ function Yn({
754
755
  componentName: s,
755
756
  providedId: e
756
757
  }) {
757
- return p(() => e ?? `${s}-${Ht().replace(/:/g, "")}`);
758
+ return h(() => e ?? `${s}-${Ht().replace(/:/g, "")}`);
758
759
  }
759
- const fs = [
760
+ const hs = [
760
761
  "af-ZA",
761
762
  "sq-AL",
762
763
  "ar-DZ",
@@ -893,7 +894,7 @@ const fs = [
893
894
  "Cy-uz-UZ",
894
895
  "Lt-uz-UZ",
895
896
  "vi-VN"
896
- ], hs = [
897
+ ], vs = [
897
898
  "aa",
898
899
  "ab",
899
900
  "ae",
@@ -1078,11 +1079,11 @@ const fs = [
1078
1079
  "za",
1079
1080
  "zh",
1080
1081
  "zu"
1081
- ], vs = [...hs, ...fs];
1082
- function Yn(s) {
1082
+ ], ps = [...vs, ...hs];
1083
+ function Zn(s) {
1083
1084
  function e(n, o) {
1084
- return p(() => {
1085
- const i = ve(o), r = ve(n);
1085
+ return h(() => {
1086
+ const i = pe(o), r = pe(n);
1086
1087
  try {
1087
1088
  return !i || !r ? r : new Intl.DisplayNames([i], { type: "language" }).of(r) || r;
1088
1089
  } catch {
@@ -1091,14 +1092,14 @@ function Yn(s) {
1091
1092
  });
1092
1093
  }
1093
1094
  function t(n) {
1094
- return p(() => {
1095
- const o = ve(n);
1095
+ return h(() => {
1096
+ const o = pe(n);
1096
1097
  if (!o)
1097
1098
  return [];
1098
1099
  const i = new Intl.DisplayNames([o], {
1099
1100
  type: "language"
1100
1101
  });
1101
- return vs.map((r) => {
1102
+ return ps.map((r) => {
1102
1103
  try {
1103
1104
  const a = i.of(r);
1104
1105
  return !a || r.toLocaleLowerCase() === a.toLocaleLowerCase() ? void 0 : {
@@ -1120,20 +1121,20 @@ function yt(s) {
1120
1121
  const e = s.join(", ").match(/\b\w+\b/g);
1121
1122
  return e ? e.length : 0;
1122
1123
  }
1123
- function ps(s, e = 150) {
1124
+ function gs(s, e = 150) {
1124
1125
  const t = yt([s]);
1125
1126
  return Math.ceil(t / e);
1126
1127
  }
1127
- function Zn(s) {
1128
- const e = p(
1128
+ function Xn(s) {
1129
+ const e = h(
1129
1130
  () => {
1130
1131
  var r;
1131
1132
  return typeof s.velocity == "number" ? s.velocity : ((r = s.velocity) == null ? void 0 : r.value) ?? 150;
1132
1133
  }
1133
- ), t = p(() => {
1134
+ ), t = h(() => {
1134
1135
  var r;
1135
1136
  return typeof s.contentSelector == "string" ? s.contentSelector : (r = s.contentSelector) == null ? void 0 : r.value;
1136
- }), n = p(() => {
1137
+ }), n = h(() => {
1137
1138
  var r, a, l;
1138
1139
  if (typeof ((r = s.contentRef) == null ? void 0 : r.value) == "object")
1139
1140
  return (a = s.contentRef.value) == null ? void 0 : a.textContent;
@@ -1143,7 +1144,7 @@ function Zn(s) {
1143
1144
  return u.textContent;
1144
1145
  }
1145
1146
  return typeof s.content == "string" ? s.content : (l = s.content) == null ? void 0 : l.value;
1146
- }), o = p(() => ps(n.value, e.value)), i = p(() => yt([n.value]));
1147
+ }), o = h(() => gs(n.value, e.value)), i = h(() => yt([n.value]));
1147
1148
  return {
1148
1149
  content: n,
1149
1150
  wordCount: i,
@@ -1151,7 +1152,7 @@ function Zn(s) {
1151
1152
  duration: o
1152
1153
  };
1153
1154
  }
1154
- const gs = {
1155
+ const ys = {
1155
1156
  removeAccents: !0,
1156
1157
  caseSensitive: !1,
1157
1158
  replaceSpaces: !0,
@@ -1162,7 +1163,7 @@ const gs = {
1162
1163
  customNormalizationForms: ["NFC", "NFKD"]
1163
1164
  };
1164
1165
  function Ge(s, e) {
1165
- const t = { ...gs, ...e }, n = {
1166
+ const t = { ...ys, ...e }, n = {
1166
1167
  À: "A",
1167
1168
  Á: "A",
1168
1169
  Â: "A",
@@ -1217,7 +1218,7 @@ function Ge(s, e) {
1217
1218
  o = o.normalize(i);
1218
1219
  return o;
1219
1220
  }
1220
- function ys(s, e) {
1221
+ function bs(s, e) {
1221
1222
  const t = s.length, n = e.length, o = [];
1222
1223
  for (let i = 0; i <= t; i++)
1223
1224
  o[i] = [i];
@@ -1235,49 +1236,49 @@ function ys(s, e) {
1235
1236
  return o[t][n];
1236
1237
  }
1237
1238
  function bt(s, e) {
1238
- const t = ys(s, e), n = Math.max(s.length, e.length);
1239
+ const t = bs(s, e), n = Math.max(s.length, e.length);
1239
1240
  return 1 - t / n;
1240
1241
  }
1241
- function bs(s, e, t = 0.75) {
1242
+ function ws(s, e, t = 0.75) {
1242
1243
  return bt(s, e) >= t;
1243
1244
  }
1244
- function Xn(s, e, t = 0.75) {
1245
- const n = p(
1245
+ function Gn(s, e, t = 0.75) {
1246
+ const n = h(
1246
1247
  () => Ge(typeof s == "string" ? s : s.value)
1247
- ), o = p(
1248
+ ), o = h(
1248
1249
  () => Ge(typeof e == "string" ? e : e.value)
1249
- ), i = p(() => typeof t == "number" ? t : t.value), r = p(() => bt(n.value, o.value));
1250
+ ), i = h(() => typeof t == "number" ? t : t.value), r = h(() => bt(n.value, o.value));
1250
1251
  return {
1251
- isMatching: p(
1252
- () => bs(n.value, o.value, i.value)
1252
+ isMatching: h(
1253
+ () => ws(n.value, o.value, i.value)
1253
1254
  ),
1254
1255
  score: r
1255
1256
  };
1256
1257
  }
1257
- const ws = {
1258
+ const Es = {
1258
1259
  preventDefaultOnTouchMove: !1,
1259
1260
  preventDefaultOnMouseWheel: !1,
1260
1261
  threshold: 50,
1261
1262
  immediate: !1,
1262
1263
  triggerOnEnd: !1
1263
1264
  };
1264
- class Es {
1265
+ class zs {
1265
1266
  constructor(e) {
1266
- d(this, "element");
1267
- d(this, "xStart");
1268
- d(this, "yStart");
1269
- d(this, "xEnd");
1270
- d(this, "yEnd");
1271
- d(this, "xDiff");
1272
- d(this, "yDiff");
1273
- d(this, "onToucheStartCallback");
1274
- d(this, "onToucheMoveCallback");
1275
- d(this, "onToucheEndCallback");
1276
- d(this, "onMouseWheelCallback");
1277
- d(this, "start");
1278
- d(this, "stop");
1279
- d(this, "options");
1280
- this.inputOption = e, this.options = { ...ws, ...e }, this.onToucheStartCallback = this.toucheStartHandler.bind(this), this.onToucheMoveCallback = this.handleTouchMove.bind(this), this.onToucheEndCallback = this.handleTouchEnd.bind(this), this.onMouseWheelCallback = this.handleMouseWheel.bind(this), this.start = this.startListening.bind(this), this.stop = this.stopListening.bind(this), this.options.element && this.setElement(this.options.element), this.options.immediate && this.start();
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");
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();
1281
1282
  }
1282
1283
  startListening() {
1283
1284
  this.setElement(this.options.element), this.element.addEventListener("touchstart", this.onToucheStartCallback, { passive: !0 }), this.element.addEventListener("touchmove", this.onToucheMoveCallback, { passive: !0 }), this.options.triggerOnEnd && this.element.addEventListener("touchend", this.onToucheEndCallback, { passive: !0 }), this.options.preventDefaultOnMouseWheel && this.element.addEventListener("mousewheel", this.onMouseWheelCallback, { passive: !1 });
@@ -1333,8 +1334,8 @@ class Es {
1333
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();
1334
1335
  }
1335
1336
  }
1336
- function Gn(s) {
1337
- const e = w(), t = w(), n = w(), o = w(), i = w(), r = w(), a = p(() => ve(s.element)), l = new Es({
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({
1338
1339
  ...s,
1339
1340
  element: a.value,
1340
1341
  onValuesChanged(u) {
@@ -1354,7 +1355,7 @@ function Gn(s) {
1354
1355
  stop: l.stop
1355
1356
  };
1356
1357
  }
1357
- const zs = {
1358
+ const Ts = {
1358
1359
  darkClass: "dark",
1359
1360
  lightClass: "light",
1360
1361
  storageThemeKey: "theme",
@@ -1362,7 +1363,7 @@ const zs = {
1362
1363
  storageThemeValueLight: "light",
1363
1364
  storageThemeValueSystem: "system",
1364
1365
  watchChanges: !0
1365
- }, Ee = w("system"), K = w("system");
1366
+ }, Ee = b("system"), K = b("system");
1366
1367
  function Qe() {
1367
1368
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
1368
1369
  }
@@ -1430,18 +1431,18 @@ function Ne({
1430
1431
  }) {
1431
1432
  return s === "system" ? wt(e) : s === "dark" ? ze(e) : Te(e);
1432
1433
  }
1433
- function Ts(s) {
1434
+ function Ls(s) {
1434
1435
  return Ee.value === s.storageThemeValueDark ? Te(s) : ze(s);
1435
1436
  }
1436
- function Qn(s) {
1437
+ function Jn(s) {
1437
1438
  const e = {
1438
- ...zs,
1439
+ ...Ts,
1439
1440
  ...s
1440
1441
  };
1441
1442
  function t() {
1442
1443
  je(e);
1443
1444
  }
1444
- return le(() => {
1445
+ return ue(() => {
1445
1446
  localStorage[e.storageThemeKey] && (K.value = localStorage[e.storageThemeKey]), e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", t);
1446
1447
  }), rt(() => {
1447
1448
  e.watchChanges && window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", t);
@@ -1462,61 +1463,61 @@ function Qn(s) {
1462
1463
  }
1463
1464
  }), {
1464
1465
  autoSetTheme: () => je(e),
1465
- toggleTheme: () => Ts(e),
1466
+ toggleTheme: () => Ls(e),
1466
1467
  setSystemTheme: () => Ne({ ...e, theme: "system" }),
1467
1468
  setDarkTheme: () => Ne({ ...e, theme: "dark" }),
1468
1469
  setLightTheme: () => Ne({ ...e, theme: "light" }),
1469
1470
  setDefaultTheme: () => Et(e),
1470
- hasDarkTheme: p(() => K.value === e.storageThemeValueDark),
1471
- hasLightTheme: p(() => K.value === e.storageThemeValueLight),
1472
- hasSystemTheme: p(() => K.value === e.storageThemeValueSystem),
1471
+ hasDarkTheme: h(() => K.value === e.storageThemeValueDark),
1472
+ hasLightTheme: h(() => K.value === e.storageThemeValueLight),
1473
+ hasSystemTheme: h(() => K.value === e.storageThemeValueSystem),
1473
1474
  theme: Ee,
1474
1475
  selectedTheme: K
1475
1476
  };
1476
1477
  }
1477
- function Ls({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1478
- const o = w(s), i = w(s);
1478
+ function ks({ timeout: s = 1e3, callback: e, remainingTimeUpdate: t = 200, callbackOffsetTime: n = 0 }) {
1479
+ const o = b(s), i = b(s);
1479
1480
  let r;
1480
- function a(f) {
1481
- typeof f == "number" && (i.value = f), typeof f == "number" && (o.value = f), l();
1481
+ function a(w) {
1482
+ typeof w == "number" && (i.value = w), typeof w == "number" && (o.value = w), l();
1482
1483
  }
1483
1484
  function l() {
1484
1485
  r || (r = setInterval(() => {
1485
- i.value -= t, i.value <= 0 && (c(), setTimeout(() => e == null ? void 0 : e(), n));
1486
+ i.value -= t, i.value <= 0 && (z(), setTimeout(() => e == null ? void 0 : e(), n));
1486
1487
  }, t));
1487
1488
  }
1488
1489
  function u() {
1489
1490
  r && (clearInterval(r), r = void 0);
1490
1491
  }
1491
- function b() {
1492
+ function y() {
1492
1493
  !r && i.value > 0 && l();
1493
1494
  }
1494
- function c() {
1495
+ function z() {
1495
1496
  setTimeout(() => i.value = o.value, n * 2), u();
1496
1497
  }
1497
1498
  return {
1498
1499
  remainingTime: i,
1499
1500
  start: a,
1500
1501
  pause: u,
1501
- resume: b,
1502
- stop: c
1502
+ resume: y,
1503
+ stop: z
1503
1504
  };
1504
1505
  }
1505
- function Jn() {
1506
+ function eo() {
1506
1507
  return De("toast");
1507
1508
  }
1508
- class ks {
1509
+ class Cs {
1509
1510
  constructor(e, t) {
1510
- d(this, "eventHandlerFunction");
1511
- d(this, "event", "visibilitychange");
1512
- d(this, "timeoutHandler");
1513
- d(this, "options");
1514
- d(this, "defaultOptions", {
1511
+ c(this, "eventHandlerFunction");
1512
+ c(this, "event", "visibilitychange");
1513
+ c(this, "timeoutHandler");
1514
+ c(this, "options");
1515
+ c(this, "defaultOptions", {
1515
1516
  timeout: 5e3,
1516
1517
  once: !1,
1517
1518
  immediate: !0
1518
1519
  });
1519
- d(this, "isVisible", !1);
1520
+ c(this, "isVisible", !1);
1520
1521
  this.callback = e, this.options = {
1521
1522
  ...this.defaultOptions,
1522
1523
  ...t
@@ -1551,13 +1552,13 @@ class ks {
1551
1552
  this.removeEventListener(), this.timeoutHandler && clearTimeout(this.timeoutHandler);
1552
1553
  }
1553
1554
  }
1554
- function eo({
1555
+ function to({
1555
1556
  callback: s,
1556
1557
  options: e
1557
1558
  }) {
1558
- return new ks(s, e);
1559
+ return new Cs(s, e);
1559
1560
  }
1560
- function to() {
1561
+ function so() {
1561
1562
  return De("wait");
1562
1563
  }
1563
1564
  const Oe = "__maz-click-outside__";
@@ -1588,7 +1589,7 @@ function Lt(s) {
1588
1589
  console.error("[maz-ui](vClickOutside)", e);
1589
1590
  }
1590
1591
  }
1591
- function Cs(s, e) {
1592
+ function Is(s, e) {
1592
1593
  try {
1593
1594
  if (e.value === e.oldValue)
1594
1595
  return;
@@ -1597,13 +1598,13 @@ function Cs(s, e) {
1597
1598
  console.error("[maz-ui](vClickOutside)", t);
1598
1599
  }
1599
1600
  }
1600
- const Is = {
1601
+ const As = {
1601
1602
  mounted: Tt,
1602
- updated: Cs,
1603
+ updated: Is,
1603
1604
  unmounted: Lt
1604
- }, As = {
1605
+ }, Ss = {
1605
1606
  install: (s) => {
1606
- s.directive("click-outside", Is);
1607
+ s.directive("click-outside", As);
1607
1608
  }
1608
1609
  };
1609
1610
  function kt(s, e, t) {
@@ -1623,11 +1624,11 @@ function kt(s, e, t) {
1623
1624
  function Ct() {
1624
1625
  return document.ontouchstart === null ? "touchstart" : "click";
1625
1626
  }
1626
- function Ss(s, e) {
1627
+ function xs(s, e) {
1627
1628
  const t = Ct();
1628
1629
  document.removeEventListener(t, (n) => kt(n, s, e));
1629
1630
  }
1630
- function xs(s, e) {
1631
+ function Os(s, e) {
1631
1632
  if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
1632
1633
  console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
1633
1634
  return;
@@ -1635,19 +1636,19 @@ function xs(s, e) {
1635
1636
  const t = Ct();
1636
1637
  document.addEventListener(t, (n) => kt(n, s, e));
1637
1638
  }
1638
- const Os = {
1639
- mounted: xs,
1640
- unmounted: Ss
1641
- }, Ds = {
1639
+ const Ds = {
1640
+ mounted: Os,
1641
+ unmounted: xs
1642
+ }, Ps = {
1642
1643
  install: (s) => {
1643
- s.directive("closable", Os);
1644
+ s.directive("closable", Ds);
1644
1645
  }
1645
1646
  }, qe = {
1646
1647
  position: "top"
1647
1648
  };
1648
1649
  class It {
1649
1650
  constructor(e = {}) {
1650
- d(this, "options");
1651
+ c(this, "options");
1651
1652
  this.options = {
1652
1653
  ...qe,
1653
1654
  ...e
@@ -1683,7 +1684,7 @@ class It {
1683
1684
  }
1684
1685
  }
1685
1686
  let Ie;
1686
- const so = {
1687
+ const no = {
1687
1688
  beforeMount(s, e) {
1688
1689
  const t = typeof e.value == "object" ? e.value : {};
1689
1690
  return Ie = new It(t), Ie.create(s, e);
@@ -1694,7 +1695,7 @@ const so = {
1694
1695
  unmounted(s, e) {
1695
1696
  return Ie.remove(s, e);
1696
1697
  }
1697
- }, Ps = {
1698
+ }, Ms = {
1698
1699
  install: (s, e = qe) => {
1699
1700
  const t = {
1700
1701
  ...qe,
@@ -1719,16 +1720,16 @@ function _e(s, e) {
1719
1720
  );
1720
1721
  return e != null && e.app ? (i.appContext = e.app._context, t ? Ce(i, t) : typeof document < "u" && (t = document.createElement("div"), Ce(i, t))) : (t = t ?? document.body, Ce(i, t)), { vNode: i, destroy: n, el: t };
1721
1722
  }
1722
- function Ms(s) {
1723
+ function $s(s) {
1723
1724
  return !!s;
1724
1725
  }
1725
- function no(s) {
1726
+ function oo(s) {
1726
1727
  return [...s].map((e) => {
1727
1728
  const t = e.codePointAt(0);
1728
1729
  return t ? t % 32 + 127461 : void 0;
1729
- }).filter(Ms).map((e) => String.fromCodePoint(e)).join("");
1730
+ }).filter($s).map((e) => String.fromCodePoint(e)).join("");
1730
1731
  }
1731
- function oo(s, e) {
1732
+ function io(s, e) {
1732
1733
  let t;
1733
1734
  return function(...n) {
1734
1735
  clearTimeout(t), t = setTimeout(() => {
@@ -1736,14 +1737,14 @@ function oo(s, e) {
1736
1737
  }, e);
1737
1738
  };
1738
1739
  }
1739
- class io {
1740
+ class ro {
1740
1741
  constructor({ src: e, identifier: t, once: n = !0, async: o = !0, defer: i = !0 }) {
1741
- d(this, "src");
1742
- d(this, "script");
1743
- d(this, "once");
1744
- d(this, "async");
1745
- d(this, "defer");
1746
- 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");
1747
1748
  if (typeof window > "u")
1748
1749
  throw new TypeError("[ScriptLoader]: Is supported only on browser side");
1749
1750
  if (!e)
@@ -1777,10 +1778,10 @@ class io {
1777
1778
  });
1778
1779
  }
1779
1780
  }
1780
- function $s(s) {
1781
+ function Vs(s) {
1781
1782
  return new Promise((e) => setTimeout(e, s));
1782
1783
  }
1783
- function ro(s, e) {
1784
+ function ao(s, e) {
1784
1785
  let t = !1, n, o;
1785
1786
  return function(...i) {
1786
1787
  t ? (clearTimeout(n), n = setTimeout(() => {
@@ -1788,7 +1789,7 @@ function ro(s, e) {
1788
1789
  }, Math.max(e - (Date.now() - o), 0))) : (s.apply(this, i), o = Date.now(), t = !0);
1789
1790
  };
1790
1791
  }
1791
- const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["src", "alt"], Ns = /* @__PURE__ */ ye({
1792
+ const Hs = ["onKeypress"], Bs = { class: "m-fullscreen-img-scroller" }, Ns = ["src", "alt"], Fs = /* @__PURE__ */ ye({
1792
1793
  __name: "MazFullscreenImg",
1793
1794
  props: {
1794
1795
  src: {},
@@ -1806,30 +1807,30 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1806
1807
  },
1807
1808
  emits: ["close", "previous", "next", "before-close"],
1808
1809
  setup(s, { emit: e }) {
1809
- const t = s, n = e, o = H(() => import("./MazSpinner-C4XtaFJk.mjs")), i = H(() => import("./x-mark-CnZwVvA7.mjs")), r = H(() => import("./chevron-left-BqVOLRdC.mjs")), a = w(!1), l = w(!1), u = w(!1), b = w(!1), c = w(!1), f = Bt({
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({
1810
1811
  running: !1,
1811
1812
  ended: !1
1812
- }), E = w(t.clickedElement), O = p(() => t.clickedElement.getBoundingClientRect()), I = w(), h = w(t.src), m = w(t.alt), L = w(), g = w(), A = w(!0), D = p(() => ({
1813
- "--is-zoomed": c.value,
1814
- "--invisible": A.value,
1815
- "--absolute": !c.value
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,
1815
+ "--invisible": S.value,
1816
+ "--absolute": !z.value
1816
1817
  }));
1817
- function T() {
1818
- var y, z;
1819
- g.value && (I.value = ((y = g.value) == null ? void 0 : y.naturalWidth) > ((z = g.value) == null ? void 0 : z.naturalHeight)), a.value = !0, l.value = !1, u.value = !0;
1818
+ function L() {
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;
1820
1821
  }
1821
1822
  X(
1822
1823
  u,
1823
- (y) => {
1824
- y && S();
1824
+ (g) => {
1825
+ g && x();
1825
1826
  },
1826
1827
  { immediate: !0 }
1827
1828
  );
1828
1829
  function P() {
1829
1830
  n("before-close"), M();
1830
1831
  }
1831
- function j(y) {
1832
- y.key === "Escape" && (y.preventDefault(), P()), (y.key === "ArrowLeft" || y.key === "ArrowRight") && (y.preventDefault(), de(y.key === "ArrowRight" ? "next" : "previous"));
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"));
1833
1834
  }
1834
1835
  function se() {
1835
1836
  document.documentElement.classList.add("--m-fullscreen-open");
@@ -1837,26 +1838,26 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1837
1838
  function G() {
1838
1839
  document.documentElement.classList.remove("--m-fullscreen-open");
1839
1840
  }
1840
- function ue() {
1841
+ function ce() {
1841
1842
  return [...document.querySelectorAll(".m-fullscreen-img-instance")];
1842
1843
  }
1843
- function Me(y, z) {
1844
- return z < 0 ? y.length - 1 : z >= y.length ? 0 : z;
1844
+ function Me(g, E) {
1845
+ return E < 0 ? g.length - 1 : E >= g.length ? 0 : E;
1845
1846
  }
1846
- function ce(y, z) {
1847
- y.classList.remove(t.openInstanceClass), z.classList.add(t.openInstanceClass);
1848
- const k = z.getAttribute("data-src"), $ = z.getAttribute("data-alt");
1849
- m.value = $, h.value = k ?? h.value;
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;
1850
1851
  }
1851
- function de(y) {
1852
- A.value = !0;
1853
- const z = document.querySelector(
1852
+ function me(g) {
1853
+ S.value = !0;
1854
+ const E = document.querySelector(
1854
1855
  `.m-fullscreen-img-instance.${t.openInstanceClass}`
1855
1856
  );
1856
- if (z) {
1857
- const k = ue(), $ = k.indexOf(z), R = y === "next" ? $ + 1 : $ - 1, _ = k[Me(k, R)];
1858
- E.value = _, _ && ce(z, _), n(y), a.value = !1, l.value = !0, ct(() => a.value === !0, () => {
1859
- A.value = !1, c.value ? me() : v();
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();
1860
1861
  }, {
1861
1862
  expectedValue: !0,
1862
1863
  interval: 100,
@@ -1864,45 +1865,45 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1864
1865
  });
1865
1866
  }
1866
1867
  }
1867
- function me() {
1868
- const y = g.value;
1869
- if (!y) {
1868
+ function fe() {
1869
+ const g = p.value;
1870
+ if (!g) {
1870
1871
  console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
1871
1872
  return;
1872
1873
  }
1873
- y.style.removeProperty("max-width"), y.style.removeProperty("max-height"), y == null || y.style.removeProperty("top"), y == null || y.style.removeProperty("left"), I.value ? (y.style.height = "100vh", y.style.removeProperty("width")) : (y.style.width = "100vw", y.style.removeProperty("height"));
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"));
1874
1875
  }
1875
1876
  function $e() {
1876
- c.value ? (c.value = !c.value, v()) : (c.value = !c.value, me());
1877
+ z.value ? (z.value = !z.value, v()) : (z.value = !z.value, fe());
1877
1878
  }
1878
- function ne(y) {
1879
- var k;
1880
- f.running = !0, A.value = !1;
1881
- const z = (k = g.value) == null ? void 0 : k.animate(y, {
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, {
1882
1883
  duration: t.animation.duration,
1883
1884
  easing: t.animation.easing
1884
1885
  });
1885
- if (!z) {
1886
- console.error("[maz-ui](vFullscreenImg) animation is not defined"), f.running = !1, f.ended = !0;
1886
+ if (!E) {
1887
+ console.error("[maz-ui](vFullscreenImg) animation is not defined"), w.running = !1, w.ended = !0;
1887
1888
  return;
1888
1889
  }
1889
- return z;
1890
+ return E;
1890
1891
  }
1891
- function Le(y = t.offset ?? 0) {
1892
- const z = E.value.clientWidth || 1, k = E.value.clientHeight || 1, $ = window.innerWidth, R = window.innerHeight, _ = Math.min(
1893
- ($ - 2 * y) / z,
1894
- (R - 2 * y) / k
1895
- ), Ve = ($ - z * _) / 2, He = (R - k * _) / 2;
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;
1896
1897
  return {
1897
1898
  centerX: Ve,
1898
1899
  centerY: He,
1899
- width: z,
1900
- height: k,
1900
+ width: E,
1901
+ height: I,
1901
1902
  scale: _
1902
1903
  };
1903
1904
  }
1904
- function ke({ trigger: y }) {
1905
- const { width: z, height: k, scale: $, centerX: R, centerY: _ } = Le(), { top: Ve, left: He, width: Ot, height: Dt } = O.value, Ke = [
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 = [
1906
1907
  {
1907
1908
  top: `${Ve}px`,
1908
1909
  left: `${He}px`,
@@ -1913,107 +1914,107 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
1913
1914
  {
1914
1915
  top: `${_}px`,
1915
1916
  left: `${R}px`,
1916
- width: `${z * $}px`,
1917
- height: `${k * $}px`,
1917
+ width: `${E * $}px`,
1918
+ height: `${I * $}px`,
1918
1919
  opacity: 1
1919
1920
  }
1920
1921
  ];
1921
1922
  return {
1922
- frames: y === "open" ? Ke : Ke.reverse()
1923
+ frames: g === "open" ? Ke : Ke.reverse()
1923
1924
  };
1924
1925
  }
1925
1926
  function v() {
1926
- const { height: y, width: z, scale: k } = Le(), $ = I.value ? {
1927
- width: `${z * k}px`,
1928
- maxHeight: `${y * k}px`
1927
+ const { height: g, width: E, scale: I } = Le(), $ = T.value ? {
1928
+ width: `${E * I}px`,
1929
+ maxHeight: `${g * I}px`
1929
1930
  } : {
1930
- height: `${y * k}px`,
1931
- maxWidth: `${z * k}px`
1931
+ height: `${g * I}px`,
1932
+ maxWidth: `${E * I}px`
1932
1933
  };
1933
- if (!g.value) {
1934
+ if (!p.value) {
1934
1935
  console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
1935
1936
  return;
1936
1937
  }
1937
- I.value ? (g.value.style.removeProperty("height"), g.value.style.removeProperty("maxHeight")) : (g.value.style.removeProperty("width"), g.value.style.removeProperty("maxWidth")), Object.assign(g.value.style, $);
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, $);
1938
1939
  }
1939
- function S() {
1940
- const { frames: y } = ke({
1940
+ function x() {
1941
+ const { frames: g } = ke({
1941
1942
  trigger: "open"
1942
- }), z = ne(y);
1943
- if (!z) {
1943
+ }), E = ne(g);
1944
+ if (!E) {
1944
1945
  console.error("[maz-ui](vFullscreenImg) open animation is not defined"), v();
1945
1946
  return;
1946
1947
  }
1947
- z.onfinish = () => {
1948
- v(), f.running = !1, f.ended = !0;
1948
+ E.onfinish = () => {
1949
+ v(), w.running = !1, w.ended = !0;
1949
1950
  };
1950
1951
  }
1951
1952
  function M() {
1952
- const { frames: y } = ke({
1953
+ const { frames: g } = ke({
1953
1954
  trigger: "close"
1954
- }), z = ne(y);
1955
- function k() {
1955
+ }), E = ne(g);
1956
+ function I() {
1956
1957
  var $, R;
1957
- n("close"), ($ = L.value) == null || $.remove(), (R = t.destroy) == null || R.call(t), f.running = !1, f.ended = !0;
1958
+ n("close"), ($ = C.value) == null || $.remove(), (R = t.destroy) == null || R.call(t), w.running = !1, w.ended = !0;
1958
1959
  }
1959
- if (!z) {
1960
- console.error("[maz-ui](vFullscreenImg) close animation is not defined"), k();
1960
+ if (!E) {
1961
+ console.error("[maz-ui](vFullscreenImg) close animation is not defined"), I();
1961
1962
  return;
1962
1963
  }
1963
- z.onfinish = k;
1964
+ E.onfinish = I;
1964
1965
  }
1965
- function fe() {
1966
- c.value || v();
1966
+ function he() {
1967
+ z.value || v();
1967
1968
  }
1968
- return le(() => {
1969
- l.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", fe), se(), b.value = ue().length > 1;
1969
+ return ue(() => {
1970
+ l.value = !0, document.addEventListener("keydown", j), window.addEventListener("resize", he), se(), y.value = ce().length > 1;
1970
1971
  }), rt(() => {
1971
- document.removeEventListener("keydown", j), window.removeEventListener("resize", fe), G();
1972
- }), (y, z) => (C(), U("div", {
1972
+ document.removeEventListener("keydown", j), window.removeEventListener("resize", he), G();
1973
+ }), (g, E) => (A(), U("div", {
1973
1974
  ref_key: "FullscreenImgElement",
1974
- ref: L,
1975
+ ref: C,
1975
1976
  role: "button",
1976
- class: "m-fullscreen-img",
1977
+ class: "m-fullscreen-img m-reset-css",
1977
1978
  tabindex: "0",
1978
1979
  onClick: Y(P, ["stop"]),
1979
1980
  onKeypress: Nt(Y(P, ["prevent"]), ["esc"])
1980
1981
  }, [
1981
- u.value && b.value ? (C(), U("button", {
1982
+ u.value && y.value ? (A(), U("button", {
1982
1983
  key: 0,
1983
1984
  type: "button",
1984
1985
  class: "m-fullscreen-btn --next",
1985
- onClick: z[0] || (z[0] = Y((k) => de("next"), ["stop"]))
1986
+ onClick: E[0] || (E[0] = Y((I) => me("next"), ["stop"]))
1986
1987
  }, [
1987
- J(x(r), { class: "maz-rotate-180" })
1988
+ J(O(r), { class: "maz-rotate-180" })
1988
1989
  ])) : B("v-if", !0),
1989
- u.value && b.value ? (C(), U("button", {
1990
+ u.value && y.value ? (A(), U("button", {
1990
1991
  key: 1,
1991
1992
  type: "button",
1992
1993
  class: "m-fullscreen-btn --previous",
1993
- onClick: z[1] || (z[1] = Y((k) => de("previous"), ["stop"]))
1994
+ onClick: E[1] || (E[1] = Y((I) => me("previous"), ["stop"]))
1994
1995
  }, [
1995
- J(x(r))
1996
+ J(O(r))
1996
1997
  ])) : B("v-if", !0),
1997
1998
  V("button", {
1998
1999
  type: "button",
1999
2000
  class: "m-fullscreen-btn --close",
2000
2001
  onClick: P
2001
2002
  }, [
2002
- J(x(i))
2003
+ J(O(i))
2003
2004
  ]),
2004
- V("div", Hs, [
2005
+ V("div", Bs, [
2005
2006
  V("img", {
2006
2007
  ref_key: "ImgElement",
2007
- ref: g,
2008
- src: h.value,
2009
- alt: m.value ?? void 0,
2008
+ ref: p,
2009
+ src: m.value,
2010
+ alt: d.value ?? void 0,
2010
2011
  tabindex: "0",
2011
- class: ge([D.value]),
2012
- onLoad: T,
2013
- onClick: z[2] || (z[2] = Y((k) => y.zoom && $e(), ["stop"]))
2014
- }, null, 42, Bs),
2012
+ class: le([D.value]),
2013
+ onLoad: L,
2014
+ onClick: E[2] || (E[2] = Y((I) => g.zoom && $e(), ["stop"]))
2015
+ }, null, 42, Ns),
2015
2016
  at(J(
2016
- x(o),
2017
+ O(o),
2017
2018
  { class: "m-fullscreen-img-loader" },
2018
2019
  null,
2019
2020
  512
@@ -2022,18 +2023,18 @@ const Vs = ["onKeypress"], Hs = { class: "m-fullscreen-img-scroller" }, Bs = ["s
2022
2023
  [lt, l.value]
2023
2024
  ])
2024
2025
  ])
2025
- ], 40, Vs));
2026
+ ], 40, Hs));
2026
2027
  }
2027
2028
  }), Pe = (s, e) => {
2028
2029
  const t = s.__vccOpts || s;
2029
2030
  for (const [n, o] of e)
2030
2031
  t[n] = o;
2031
2032
  return t;
2032
- }, Fs = /* @__PURE__ */ Pe(Ns, [["__scopeId", "data-v-4a73acb2"]]), Je = "m-fullscreen-is-open";
2033
- class js {
2033
+ }, js = /* @__PURE__ */ Pe(Fs, [["__scopeId", "data-v-24a18baf"]]), Je = "m-fullscreen-is-open";
2034
+ class qs {
2034
2035
  constructor() {
2035
- d(this, "options");
2036
- d(this, "defaultOptions", {
2036
+ c(this, "options");
2037
+ c(this, "defaultOptions", {
2037
2038
  scaleOnHover: !1,
2038
2039
  blurOnHover: !1,
2039
2040
  disabled: !1,
@@ -2044,9 +2045,9 @@ class js {
2044
2045
  easing: "ease-in-out"
2045
2046
  }
2046
2047
  });
2047
- d(this, "mouseEnterListener");
2048
- d(this, "mouseLeaveListener");
2049
- d(this, "renderPreviewListener");
2048
+ c(this, "mouseEnterListener");
2049
+ c(this, "mouseLeaveListener");
2050
+ c(this, "renderPreviewListener");
2050
2051
  }
2051
2052
  buildOptions(e, t) {
2052
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);
@@ -2087,7 +2088,7 @@ class js {
2087
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 = "";
2088
2089
  }
2089
2090
  renderPreview(e) {
2090
- return e.classList.add(Je), _e(Fs, {
2091
+ return e.classList.add(Je), _e(js, {
2091
2092
  props: {
2092
2093
  ...this.options,
2093
2094
  openInstanceClass: Je,
@@ -2105,9 +2106,9 @@ class js {
2105
2106
  }
2106
2107
  }
2107
2108
  let Ae;
2108
- const qs = {
2109
+ const Us = {
2109
2110
  mounted(s, e) {
2110
- return Ae = new js(), Ae.create(s, e);
2111
+ return Ae = new qs(), Ae.create(s, e);
2111
2112
  },
2112
2113
  updated(s, e) {
2113
2114
  return Ae.update(s, e);
@@ -2115,11 +2116,11 @@ const qs = {
2115
2116
  unmounted(s) {
2116
2117
  return Ae.remove(s);
2117
2118
  }
2118
- }, Us = {
2119
+ }, Ws = {
2119
2120
  install(s) {
2120
- s.directive("fullscreen-img", qs);
2121
+ s.directive("fullscreen-img", Us);
2121
2122
  }
2122
- }, Ws = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Ue = {
2123
+ }, Rs = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Ue = {
2123
2124
  baseClass: "m-lazy-img",
2124
2125
  loadedClass: "m-lazy-loaded",
2125
2126
  loadingClass: "m-lazy-loading",
@@ -2135,12 +2136,12 @@ const qs = {
2135
2136
  };
2136
2137
  class At {
2137
2138
  constructor(e = {}) {
2138
- d(this, "observers", []);
2139
- d(this, "defaultOptions", Ue);
2140
- d(this, "options");
2141
- d(this, "onImgLoadedCallback");
2142
- d(this, "onImgErrorCallback");
2143
- 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);
2144
2145
  this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
2145
2146
  }
2146
2147
  async loadErrorPhoto() {
@@ -2274,7 +2275,7 @@ class At {
2274
2275
  async add(e, t) {
2275
2276
  if (this.hasBgImgMode(t) && this.isPictureElement(e))
2276
2277
  throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
2277
- 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");
2278
2279
  }
2279
2280
  async update(e, t) {
2280
2281
  t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
@@ -2287,7 +2288,7 @@ class At {
2287
2288
  }
2288
2289
  }
2289
2290
  let Se;
2290
- const ao = {
2291
+ const lo = {
2291
2292
  created(s, e) {
2292
2293
  const t = typeof e.value == "object" ? e.value : {};
2293
2294
  Se = new At(t), Se.add(s, e);
@@ -2298,7 +2299,7 @@ const ao = {
2298
2299
  unmounted(s, e) {
2299
2300
  Se.remove(s, e);
2300
2301
  }
2301
- }, Rs = {
2302
+ }, _s = {
2302
2303
  install(s, e = {}) {
2303
2304
  const t = {
2304
2305
  ...Ue,
@@ -2314,7 +2315,7 @@ const ao = {
2314
2315
  unmounted: n.remove.bind(n)
2315
2316
  });
2316
2317
  }
2317
- }, _s = `
2318
+ }, Ks = `
2318
2319
  .maz-zoom-img {
2319
2320
  position: fixed;
2320
2321
  top: 0;
@@ -2443,23 +2444,23 @@ const ao = {
2443
2444
  previous: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',
2444
2445
  spinner: '<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'
2445
2446
  };
2446
- class Ks {
2447
+ class Ys {
2447
2448
  constructor(e) {
2448
- d(this, "options");
2449
- d(this, "loader");
2450
- d(this, "wrapper");
2451
- d(this, "img");
2452
- d(this, "keydownHandler");
2453
- d(this, "onImgLoadedCallback");
2454
- d(this, "buttonsAdded");
2455
- 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", {
2456
2457
  scale: !0,
2457
2458
  blur: !0,
2458
2459
  disabled: !1
2459
2460
  });
2460
- d(this, "mouseEnterListener");
2461
- d(this, "mouseLeaveListener");
2462
- d(this, "renderPreviewListener");
2461
+ c(this, "mouseEnterListener");
2462
+ c(this, "mouseLeaveListener");
2463
+ c(this, "renderPreviewListener");
2463
2464
  if (!e.value)
2464
2465
  throw new Error(
2465
2466
  '[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`'
@@ -2490,7 +2491,7 @@ class Ks {
2490
2491
  e.classList.add(
2491
2492
  "maz-is-open"
2492
2493
  /* OPEN */
2493
- ), this.addStyle(_s);
2494
+ ), this.addStyle(Ks);
2494
2495
  const n = document.createElement("div");
2495
2496
  n.classList.add("maz-zoom-img"), n.setAttribute("id", "MazImgPreviewFullsize"), n.addEventListener("click", (o) => {
2496
2497
  n.isEqualNode(o.target) && this.closePreview();
@@ -2581,9 +2582,9 @@ class Ks {
2581
2582
  }
2582
2583
  }
2583
2584
  let xe;
2584
- const Ys = {
2585
+ const Zs = {
2585
2586
  created(s, e) {
2586
- xe = new Ks(e), xe.create(s);
2587
+ xe = new Ys(e), xe.create(s);
2587
2588
  },
2588
2589
  updated(s, e) {
2589
2590
  xe.update(e);
@@ -2591,36 +2592,36 @@ const Ys = {
2591
2592
  unmounted(s) {
2592
2593
  xe.remove(s);
2593
2594
  }
2594
- }, Zs = {
2595
+ }, Xs = {
2595
2596
  install(s) {
2596
- s.directive("zoom-img", Ys);
2597
- }
2598
- }, Xs = [
2599
- Ds,
2600
- Zs,
2601
- Rs,
2602
- As,
2603
- Us,
2604
- Ps
2605
- ], lo = {
2597
+ s.directive("zoom-img", Zs);
2598
+ }
2599
+ }, Gs = [
2600
+ Ps,
2601
+ Xs,
2602
+ _s,
2603
+ Ss,
2604
+ Ws,
2605
+ Ms
2606
+ ], uo = {
2606
2607
  install(s) {
2607
- for (const e of Xs)
2608
+ for (const e of Gs)
2608
2609
  e.install(s, {});
2609
2610
  }
2610
2611
  };
2611
- function Gs(s) {
2612
+ function Qs(s) {
2612
2613
  return s ? (s = s.toString(), s.charAt(0).toUpperCase() + s.slice(1)) : "";
2613
2614
  }
2614
- const Qs = {
2615
+ const Js = {
2615
2616
  style: "currency",
2616
2617
  minimumFractionDigits: 2,
2617
2618
  round: !1
2618
2619
  };
2619
- function Js(s, e, t) {
2620
+ function en(s, e, t) {
2620
2621
  let n = Number(s);
2621
2622
  return t.round && (n = Math.floor(n), t.minimumFractionDigits = 0), new Intl.NumberFormat(e, t).format(n);
2622
2623
  }
2623
- function en(s, e, t) {
2624
+ function tn(s, e, t) {
2624
2625
  if (s === void 0)
2625
2626
  throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
2626
2627
  if (e === void 0)
@@ -2630,29 +2631,29 @@ function en(s, e, t) {
2630
2631
  if (t.currency === void 0)
2631
2632
  throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
2632
2633
  }
2633
- function tn(s, e, t) {
2634
+ function sn(s, e, t) {
2634
2635
  const n = {
2635
- ...Qs,
2636
+ ...Js,
2636
2637
  ...t
2637
2638
  };
2638
- en(s, e, n);
2639
+ tn(s, e, n);
2639
2640
  try {
2640
- return Js(s, e, n);
2641
+ return en(s, e, n);
2641
2642
  } catch (o) {
2642
2643
  throw new Error(`[maz-ui](FilterCurrency) ${o}`);
2643
2644
  }
2644
2645
  }
2645
- const sn = {
2646
+ const nn = {
2646
2647
  month: "short",
2647
2648
  day: "numeric",
2648
2649
  year: "numeric"
2649
2650
  };
2650
- function nn(s, e, t) {
2651
+ function on(s, e, t) {
2651
2652
  if (e === void 0)
2652
2653
  throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
2653
2654
  if (typeof e != "string")
2654
2655
  throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
2655
- const n = t ?? sn;
2656
+ const n = t ?? nn;
2656
2657
  try {
2657
2658
  const o = s instanceof Date ? s : new Date(s);
2658
2659
  return new Intl.DateTimeFormat(e, n).format(o);
@@ -2660,12 +2661,12 @@ function nn(s, e, t) {
2660
2661
  throw new Error(`[maz-ui](FilterDate) ${o}`);
2661
2662
  }
2662
2663
  }
2663
- const on = {
2664
+ const rn = {
2664
2665
  minimumFractionDigits: 2
2665
2666
  };
2666
- function rn(s, e, t) {
2667
+ function an(s, e, t) {
2667
2668
  const n = {
2668
- ...on,
2669
+ ...rn,
2669
2670
  ...t
2670
2671
  };
2671
2672
  if (s === void 0)
@@ -2680,14 +2681,14 @@ function rn(s, e, t) {
2680
2681
  throw new Error(`[maz-ui](FilterNumber) ${o}`);
2681
2682
  }
2682
2683
  }
2683
- const an = {
2684
- capitalize: Gs,
2685
- currency: tn,
2686
- date: nn,
2687
- number: rn
2688
- }, uo = {
2684
+ const ln = {
2685
+ capitalize: Qs,
2686
+ currency: sn,
2687
+ date: on,
2688
+ number: an
2689
+ }, co = {
2689
2690
  install(s) {
2690
- s.provide("filters", an);
2691
+ s.provide("filters", ln);
2691
2692
  }
2692
2693
  }, Fe = {
2693
2694
  delay: 100,
@@ -2702,9 +2703,9 @@ const an = {
2702
2703
  delay: 0
2703
2704
  }
2704
2705
  };
2705
- class ln {
2706
+ class un {
2706
2707
  constructor(e) {
2707
- d(this, "options");
2708
+ c(this, "options");
2708
2709
  this.options = {
2709
2710
  delay: (e == null ? void 0 : e.delay) ?? Fe.delay,
2710
2711
  observer: {
@@ -2731,16 +2732,16 @@ class ln {
2731
2732
  for (const a of r) {
2732
2733
  const l = a.getAttribute("data-maz-aos-once"), u = typeof l == "string" ? l === "true" : this.options.animation.once;
2733
2734
  if (typeof this.options.observer.threshold == "number" && n.intersectionRatio > this.options.observer.threshold) {
2734
- const b = a.getAttribute("data-maz-aos-duration"), c = a.getAttribute("data-maz-aos-delay");
2735
- if (b || (a.style.transitionDuration = `${this.options.animation.duration}ms`, setTimeout(() => {
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(() => {
2736
2737
  a.style.transitionDuration = "0";
2737
- }, 1e3)), c || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
2738
+ }, 1e3)), z || (a.style.transitionDelay = `${this.options.animation.delay}ms`, setTimeout(() => {
2738
2739
  a.style.transitionDelay = "0";
2739
2740
  }, 1e3)), a.classList.add("maz-aos-animate"), u) {
2740
- const f = a.getAttribute("data-maz-aos-anchor");
2741
- if (f) {
2742
- const E = document.querySelector(f);
2743
- E && t.unobserve(E);
2741
+ const w = a.getAttribute("data-maz-aos-anchor");
2742
+ if (w) {
2743
+ const f = document.querySelector(w);
2744
+ f && t.unobserve(f);
2744
2745
  }
2745
2746
  t.unobserve(a);
2746
2747
  }
@@ -2750,7 +2751,7 @@ class ln {
2750
2751
  }
2751
2752
  }
2752
2753
  async handleObserver() {
2753
- await $s(this.options.delay);
2754
+ await Vs(this.options.delay);
2754
2755
  const e = new IntersectionObserver(this.handleIntersect.bind(this), this.options.observer);
2755
2756
  for (const t of document.querySelectorAll("[data-maz-aos]")) {
2756
2757
  const n = t.getAttribute("data-maz-aos-anchor");
@@ -2767,22 +2768,22 @@ class ln {
2767
2768
  console.warn("[MazAos](runAnimations) should be executed on client side");
2768
2769
  }
2769
2770
  }
2770
- let he;
2771
- const co = {
2771
+ let ve;
2772
+ const mo = {
2772
2773
  install: (s, e) => {
2773
- he = new ln(e), s.provide("aos", he), F() && (e != null && e.router ? e.router.afterEach(() => {
2774
- he.runAnimations();
2775
- }) : he.runAnimations());
2774
+ ve = new un(e), s.provide("aos", ve), F() && (e != null && e.router ? e.router.afterEach(() => {
2775
+ ve.runAnimations();
2776
+ }) : ve.runAnimations());
2776
2777
  }
2777
2778
  };
2778
- function mo() {
2779
- return he;
2779
+ function fo() {
2780
+ return ve;
2780
2781
  }
2781
- const un = {
2782
+ const cn = {
2782
2783
  role: "dialog",
2783
2784
  class: "m-backdrop-container",
2784
2785
  "aria-modal": "true"
2785
- }, cn = { class: "m-backdrop-wrapper" }, tt = "--backdrop-present", dn = /* @__PURE__ */ ye({
2786
+ }, dn = { class: "m-backdrop-wrapper" }, tt = "--backdrop-present", mn = /* @__PURE__ */ ye({
2786
2787
  inheritAttrs: !1,
2787
2788
  __name: "MazBackdrop",
2788
2789
  props: {
@@ -2810,92 +2811,92 @@ const un = {
2810
2811
  function i() {
2811
2812
  document.querySelector(".m-backdrop.--present") || document.documentElement.classList.remove(tt);
2812
2813
  }
2813
- const r = w(s.modelValue);
2814
+ const r = b(s.modelValue);
2814
2815
  function a() {
2815
2816
  l(!1);
2816
2817
  }
2817
- async function l(m) {
2818
- var L;
2819
- m || (n("before-close"), await ((L = s.beforeClose) == null ? void 0 : L.call(s))), r.value = m;
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;
2820
2821
  }
2821
2822
  function u() {
2822
2823
  n("open");
2823
2824
  }
2824
- function b() {
2825
- n("update:model-value", !1), n("close"), O();
2825
+ function y() {
2826
+ n("update:model-value", !1), n("close"), k();
2826
2827
  }
2827
- function c() {
2828
+ function z() {
2828
2829
  s.persistent || a();
2829
2830
  }
2830
- function f(m) {
2831
- !s.noCloseOnEscKey && m.key === "Escape" && !s.persistent && a();
2831
+ function w(d) {
2832
+ !s.noCloseOnEscKey && d.key === "Escape" && !s.persistent && a();
2832
2833
  }
2833
- function E() {
2834
- o(), document.addEventListener("keyup", f, !1);
2834
+ function f() {
2835
+ o(), document.addEventListener("keyup", w, !1);
2835
2836
  }
2836
- function O() {
2837
- document.removeEventListener("keyup", f), i();
2837
+ function k() {
2838
+ document.removeEventListener("keyup", w), i();
2838
2839
  }
2839
- le(() => {
2840
- s.modelValue ? E() : O();
2840
+ ue(() => {
2841
+ s.modelValue ? f() : k();
2841
2842
  });
2842
- let I = null;
2843
- function h(m) {
2844
- const L = document.querySelector(m), A = L && Array.from(L.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select')), D = A == null ? void 0 : A.filter((T) => {
2845
- const P = window.getComputedStyle(T);
2846
- return P.display !== "none" && P.visibility !== "hidden" && !T.disabled;
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;
2847
2848
  });
2848
2849
  return D && D.length > 0 ? D[0] : null;
2849
2850
  }
2850
2851
  return X(
2851
2852
  () => s.modelValue,
2852
- async (m) => {
2853
- if (r.value = m, m) {
2854
- E(), I = document.activeElement, await ae();
2855
- const L = h(".m-backdrop-content");
2856
- L == null || L.focus();
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();
2857
2858
  } else
2858
- O(), await ae(), I == null || I.focus();
2859
+ k(), await ae(), T == null || T.focus();
2859
2860
  }
2860
2861
  ), e({
2861
2862
  onBackdropAnimationEnter: u,
2862
- onBackdropAnimationLeave: b,
2863
- onBackdropClicked: c,
2863
+ onBackdropAnimationLeave: y,
2864
+ onBackdropClicked: z,
2864
2865
  close: a,
2865
2866
  present: r,
2866
2867
  toggleModal: l,
2867
- onKeyPress: f
2868
- }), (m, L) => (C(), N(Ft, { to: m.teleportSelector }, [
2868
+ onKeyPress: w
2869
+ }), (d, C) => (A(), N(Ft, { to: d.teleportSelector }, [
2869
2870
  J(ut, {
2870
2871
  appear: "",
2871
- name: m.transitionName,
2872
+ name: d.transitionName,
2872
2873
  onAfterEnter: u,
2873
- onAfterLeave: b
2874
+ onAfterLeave: y
2874
2875
  }, {
2875
2876
  default: q(() => [
2876
- r.value ? (C(), U(
2877
+ r.value ? (A(), U(
2877
2878
  "div",
2878
2879
  ee({
2879
2880
  key: 0,
2880
- class: "m-backdrop --present"
2881
- }, m.$attrs, {
2882
- class: [m.backdropClass, m.variant && `--variant-${m.variant}`, { "--persistent": m.persistent }]
2881
+ class: "m-backdrop --present m-reset-css"
2882
+ }, d.$attrs, {
2883
+ class: [d.backdropClass, d.variant && `--variant-${d.variant}`, { "--persistent": d.persistent }]
2883
2884
  }),
2884
2885
  [
2885
- V("div", un, [
2886
- V("div", cn, [
2886
+ V("div", cn, [
2887
+ V("div", dn, [
2887
2888
  V(
2888
2889
  "div",
2889
2890
  {
2890
- class: ge(["m-backdrop-content", [m.backdropContentClass, `--justify-${m.justify}`, `--align-${m.align}`, { "--padding": m.contentPadding }]]),
2891
+ class: le(["m-backdrop-content", [d.backdropContentClass, `--justify-${d.justify}`, `--align-${d.align}`, { "--padding": d.contentPadding }]]),
2891
2892
  role: "button",
2892
2893
  tabindex: "-1",
2893
- onClick: Y(c, ["self"])
2894
+ onClick: Y(z, ["self"])
2894
2895
  },
2895
2896
  [
2896
- W(m.$slots, "default", {
2897
+ W(d.$slots, "default", {
2897
2898
  close: a,
2898
- onBackdropClicked: c
2899
+ onBackdropClicked: z
2899
2900
  }, void 0, !0)
2900
2901
  ],
2901
2902
  2
@@ -2913,14 +2914,14 @@ const un = {
2913
2914
  }, 8, ["name"])
2914
2915
  ], 8, ["to"]));
2915
2916
  }
2916
- }), mn = /* @__PURE__ */ Pe(dn, [["__scopeId", "data-v-7aa1682e"]]), fn = {
2917
+ }), fn = /* @__PURE__ */ Pe(mn, [["__scopeId", "data-v-90448c91"]]), hn = {
2917
2918
  key: 0,
2918
2919
  id: "dialogTitle",
2919
2920
  class: "m-dialog-title"
2920
- }, hn = {
2921
+ }, vn = {
2921
2922
  key: 0,
2922
2923
  class: "m-dialog-footer"
2923
- }, vn = /* @__PURE__ */ ye({
2924
+ }, pn = /* @__PURE__ */ ye({
2924
2925
  name: "MazDialog",
2925
2926
  inheritAttrs: !1,
2926
2927
  __name: "MazDialog",
@@ -2945,15 +2946,15 @@ const un = {
2945
2946
  },
2946
2947
  emits: ["open", "close", "update:model-value"],
2947
2948
  setup(s, { expose: e }) {
2948
- const t = s, n = H(() => import("./MazBtn-yNCoLFA6.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = w();
2949
+ const t = s, n = H(() => import("./MazBtn-Z86MClP9.mjs")), o = H(() => import("./x-mark-CnZwVvA7.mjs")), i = jt(), r = b();
2949
2950
  e({
2950
2951
  close: () => {
2951
- var c, f;
2952
- return (f = (c = r.value) == null ? void 0 : c.close) == null ? void 0 : f.call(c);
2952
+ var f, k;
2953
+ return (k = (f = r.value) == null ? void 0 : f.close) == null ? void 0 : k.call(f);
2953
2954
  }
2954
2955
  });
2955
- const a = p(() => {
2956
- const c = [
2956
+ const a = h(() => {
2957
+ const f = [
2957
2958
  "modelValue",
2958
2959
  "title",
2959
2960
  "noClose",
@@ -2962,70 +2963,70 @@ const un = {
2962
2963
  "scrollable"
2963
2964
  ];
2964
2965
  return Object.fromEntries(
2965
- Object.entries(t).filter(([f]) => !c.includes(f))
2966
+ Object.entries(t).filter(([k]) => !f.includes(k))
2966
2967
  );
2967
- }), l = p(() => ({
2968
+ }), l = h(() => ({
2968
2969
  ...i,
2969
2970
  class: void 0,
2970
2971
  style: void 0
2971
- })), u = p(() => ({
2972
+ })), u = h(() => ({
2972
2973
  class: i.class,
2973
2974
  style: i.style
2974
- })), b = w();
2975
- return t.scrollable && X(() => t.modelValue, async (c) => {
2976
- await ae(), c && b.value && setTimeout(() => {
2977
- var f;
2978
- (f = b.value) == null || f.scrollTo({ top: 0, behavior: "instant" });
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" });
2979
2980
  }, 0);
2980
- }), (c, f) => (C(), N(mn, ee({ ...l.value, ...a.value }, {
2981
+ }), (f, k) => (A(), N(fn, ee({ ...l.value, ...a.value }, {
2981
2982
  ref_key: "backdrop",
2982
2983
  ref: r,
2983
- "model-value": c.modelValue,
2984
+ "model-value": f.modelValue,
2984
2985
  "transition-name": "modal-anim",
2985
2986
  "aria-labelledby": "dialogTitle",
2986
2987
  "aria-describedby": "dialogDesc",
2987
2988
  "content-padding": "",
2988
2989
  justify: "center",
2989
2990
  variant: "dialog",
2990
- onClose: f[0] || (f[0] = (E) => c.$emit("close", E)),
2991
- onOpen: f[1] || (f[1] = (E) => c.$emit("open", E)),
2992
- "onUpdate:modelValue": f[2] || (f[2] = (E) => c.$emit("update:model-value", E))
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))
2993
2994
  }), {
2994
- default: q(({ close: E, onBackdropClicked: O }) => [
2995
+ default: q(({ close: T, onBackdropClicked: m }) => [
2995
2996
  V(
2996
2997
  "div",
2997
2998
  ee({
2998
- class: ["m-dialog", { "--scrollable": c.scrollable }],
2999
+ class: ["m-dialog", { "--scrollable": f.scrollable }],
2999
3000
  role: "dialog",
3000
3001
  "aria-modal": "true",
3001
- style: [{ "--max-width": c.maxWidth, "--min-width": c.minWidth }]
3002
+ style: [{ "--max-width": f.maxWidth, "--min-width": f.minWidth }]
3002
3003
  }, u.value),
3003
3004
  [
3004
- W(c.$slots, "header", {
3005
- close: E,
3006
- onBackdropClicked: O
3005
+ W(f.$slots, "header", {
3006
+ close: T,
3007
+ onBackdropClicked: m
3007
3008
  }, () => [
3008
3009
  V(
3009
3010
  "div",
3010
3011
  {
3011
- class: ge(["m-dialog-header", { "--has-title": c.$slots.title || c.title }])
3012
+ class: le(["m-dialog-header", { "--has-title": f.$slots.title || f.title }])
3012
3013
  },
3013
3014
  [
3014
- c.$slots.title || c.title ? (C(), U("h2", fn, [
3015
- W(c.$slots, "title", {}, () => [
3015
+ f.$slots.title || f.title ? (A(), U("h2", hn, [
3016
+ W(f.$slots, "title", {}, () => [
3016
3017
  Q(
3017
- Z(c.title),
3018
+ Z(f.title),
3018
3019
  1
3019
3020
  /* TEXT */
3020
3021
  )
3021
3022
  ], !0)
3022
3023
  ])) : B("v-if", !0),
3023
- !c.noClose && !c.persistent ? (C(), N(x(n), {
3024
+ !f.noClose && !f.persistent ? (A(), N(O(n), {
3024
3025
  key: 1,
3025
3026
  color: "transparent",
3026
3027
  size: "sm",
3027
- icon: x(o),
3028
- onClick: E
3028
+ icon: O(o),
3029
+ onClick: T
3029
3030
  }, null, 8, ["icon", "onClick"])) : B("v-if", !0)
3030
3031
  ],
3031
3032
  2
@@ -3037,22 +3038,22 @@ const un = {
3037
3038
  {
3038
3039
  id: "dialogDesc",
3039
3040
  ref_key: "dialogContent",
3040
- ref: b,
3041
- class: "m-dialog-content"
3041
+ ref: y,
3042
+ class: le(["m-dialog-content", { "--bottom-padding": !w.value }])
3042
3043
  },
3043
3044
  [
3044
- W(c.$slots, "default", {
3045
- close: E,
3046
- onBackdropClicked: O
3045
+ W(f.$slots, "default", {
3046
+ close: T,
3047
+ onBackdropClicked: m
3047
3048
  }, void 0, !0)
3048
3049
  ],
3049
- 512
3050
- /* NEED_PATCH */
3050
+ 2
3051
+ /* CLASS */
3051
3052
  ),
3052
- c.$slots.footer ? (C(), U("div", hn, [
3053
- W(c.$slots, "footer", {
3054
- close: E,
3055
- onBackdropClicked: O
3053
+ w.value ? (A(), U("div", vn, [
3054
+ W(f.$slots, "footer", {
3055
+ close: T,
3056
+ onBackdropClicked: m
3056
3057
  }, void 0, !0)
3057
3058
  ])) : B("v-if", !0)
3058
3059
  ],
@@ -3064,7 +3065,7 @@ const un = {
3064
3065
  /* FORWARDED */
3065
3066
  }, 16, ["model-value"]));
3066
3067
  }
3067
- }), pn = /* @__PURE__ */ Pe(vn, [["__scopeId", "data-v-b16ef3d7"]]), oe = {
3068
+ }), gn = /* @__PURE__ */ Pe(pn, [["__scopeId", "data-v-b8a6c7fb"]]), oe = {
3068
3069
  cancelText: "Cancel",
3069
3070
  confirmText: "Confirm",
3070
3071
  cancelButton: {
@@ -3075,8 +3076,8 @@ const un = {
3075
3076
  text: "Confirm",
3076
3077
  color: "success"
3077
3078
  }
3078
- }, gn = w(oe), ie = w([]);
3079
- function yn(s, e) {
3079
+ }, yn = b(oe), ie = b([]);
3080
+ function bn(s, e) {
3080
3081
  return new Promise((t, n) => {
3081
3082
  ie.value = [
3082
3083
  ...ie.value,
@@ -3104,15 +3105,15 @@ function st(s, e, t) {
3104
3105
  }
3105
3106
  function xt() {
3106
3107
  return {
3107
- data: gn,
3108
+ data: yn,
3108
3109
  dialogState: ie,
3109
- showDialogAndWaitChoice: yn,
3110
+ showDialogAndWaitChoice: bn,
3110
3111
  removeDialogFromState: St,
3111
3112
  rejectDialog: async (s, e = new Error("cancel"), t) => (await (t == null ? void 0 : t()), st("reject", s, e)),
3112
3113
  resolveDialog: async (s, e = "accept", t) => (await (t == null ? void 0 : t()), st("resolve", s, e))
3113
3114
  };
3114
3115
  }
3115
- const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ */ ye({
3116
+ const wn = { class: "maz-flex maz-items-center maz-gap-2" }, En = /* @__PURE__ */ ye({
3116
3117
  __name: "MazDialogPromise",
3117
3118
  props: {
3118
3119
  data: { default: void 0 },
@@ -3143,71 +3144,71 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3143
3144
  },
3144
3145
  emits: ["open", "close"],
3145
3146
  setup(s, { expose: e }) {
3146
- const t = s, n = H(() => import("./MazBtn-yNCoLFA6.mjs")), { dialogState: o, rejectDialog: i, resolveDialog: r, data: a } = xt(), l = p(() => {
3147
- var h;
3148
- return t.buttons ?? ((h = t.data) == null ? void 0 : h.buttons) ?? a.value.buttons;
3149
- }), u = p(() => ({
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(() => ({
3150
3151
  ...oe,
3151
3152
  ...a.value,
3152
3153
  ...t.data
3153
- })), b = p(() => {
3154
- var L, g, A, D;
3155
- if (!(((L = a.value) == null ? void 0 : L.cancelButton) ?? ((g = t.data) == null ? void 0 : g.cancelButton) ?? oe.cancelButton))
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))
3156
3157
  return;
3157
- const m = {
3158
+ const d = {
3158
3159
  ...oe.cancelButton,
3159
- ...(A = a.value) == null ? void 0 : A.cancelButton,
3160
+ ...(S = a.value) == null ? void 0 : S.cancelButton,
3160
3161
  ...(D = t.data) == null ? void 0 : D.cancelButton
3161
3162
  };
3162
3163
  return {
3163
- ...m,
3164
- text: t.cancelText || u.value.cancelText || m.text
3164
+ ...d,
3165
+ text: t.cancelText || u.value.cancelText || d.text
3165
3166
  };
3166
- }), c = p(() => {
3167
- var L, g, A, D;
3168
- if (!(((L = a.value) == null ? void 0 : L.confirmButton) ?? ((g = t.data) == null ? void 0 : g.confirmButton) ?? oe.confirmButton))
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))
3169
3170
  return;
3170
- const m = {
3171
+ const d = {
3171
3172
  ...oe.confirmButton,
3172
- ...(A = a.value) == null ? void 0 : A.confirmButton,
3173
+ ...(S = a.value) == null ? void 0 : S.confirmButton,
3173
3174
  ...(D = t.data) == null ? void 0 : D.confirmButton
3174
3175
  };
3175
3176
  return {
3176
- ...m,
3177
- text: t.confirmText || u.value.confirmText || m.text
3177
+ ...d,
3178
+ text: t.confirmText || u.value.confirmText || d.text
3178
3179
  };
3179
- }), f = p(
3180
- () => o.value.find(({ id: h }) => h === t.identifier)
3181
- ), E = w();
3180
+ }), w = h(
3181
+ () => o.value.find(({ id: m }) => m === t.identifier)
3182
+ ), f = b();
3182
3183
  e({
3183
3184
  close: () => {
3184
- var h, m;
3185
- return (m = (h = E.value) == null ? void 0 : h.close) == null ? void 0 : m.call(h);
3185
+ var m, d;
3186
+ return (d = (m = f.value) == null ? void 0 : m.close) == null ? void 0 : d.call(m);
3186
3187
  }
3187
3188
  });
3188
- function O(h) {
3189
- return "type" in h && (h.type === "resolve" || h.type === "reject");
3189
+ function k(m) {
3190
+ return "type" in m && (m.type === "resolve" || m.type === "reject");
3190
3191
  }
3191
- function I(h, m) {
3192
- return O(m) ? m.type === "resolve" ? r(h, m.response) : i(h, m.response) : r(h, void 0, m.action);
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);
3193
3194
  }
3194
- return (h, m) => {
3195
- var L;
3196
- return C(), N(pn, ee({
3195
+ return (m, d) => {
3196
+ var C;
3197
+ return A(), N(gn, ee({
3197
3198
  ref_key: "dialog",
3198
- ref: E
3199
- }, { ...h.$attrs, ...t }, {
3200
- "model-value": ((L = f.value) == null ? void 0 : L.isActive) ?? h.modelValue ?? !1,
3201
- onClose: m[2] || (m[2] = (g) => h.$emit("close", g)),
3202
- onOpen: m[3] || (m[3] = (g) => h.$emit("open", g)),
3203
- "onUpdate:modelValue": m[4] || (m[4] = (g) => x(i)(f.value))
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))
3204
3205
  }), {
3205
3206
  title: q(() => [
3206
- W(h.$slots, "title", {}, () => {
3207
- var g;
3207
+ W(m.$slots, "title", {}, () => {
3208
+ var p;
3208
3209
  return [
3209
3210
  Q(
3210
- Z(h.title || ((g = u.value) == null ? void 0 : g.title)),
3211
+ Z(m.title || ((p = u.value) == null ? void 0 : p.title)),
3211
3212
  1
3212
3213
  /* TEXT */
3213
3214
  )
@@ -3215,14 +3216,14 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3215
3216
  })
3216
3217
  ]),
3217
3218
  default: q(() => [
3218
- W(h.$slots, "default", {
3219
- resolve: (g) => x(r)(f.value, g),
3220
- reject: (g) => x(i)(f.value, g)
3219
+ W(m.$slots, "default", {
3220
+ resolve: (p) => O(r)(w.value, p),
3221
+ reject: (p) => O(i)(w.value, p)
3221
3222
  }, () => {
3222
- var g;
3223
+ var p;
3223
3224
  return [
3224
3225
  Q(
3225
- Z(h.message || ((g = u.value) == null ? void 0 : g.message)),
3226
+ Z(m.message || ((p = u.value) == null ? void 0 : p.message)),
3226
3227
  1
3227
3228
  /* TEXT */
3228
3229
  )
@@ -3230,26 +3231,26 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3230
3231
  })
3231
3232
  ]),
3232
3233
  footer: q(() => [
3233
- W(h.$slots, "footer-button", {
3234
- resolve: (g) => x(r)(f.value, g),
3235
- reject: (g) => x(i)(f.value, g)
3234
+ W(m.$slots, "footer-button", {
3235
+ resolve: (p) => O(r)(w.value, p),
3236
+ reject: (p) => O(i)(w.value, p)
3236
3237
  }, () => [
3237
- V("div", bn, [
3238
- l.value ? (C(!0), U(
3238
+ V("div", wn, [
3239
+ l.value ? (A(!0), U(
3239
3240
  Ye,
3240
3241
  { key: 0 },
3241
- qt(l.value, (g, A) => (C(), N(x(n), ee({
3242
- key: A,
3242
+ Ut(l.value, (p, S) => (A(), N(O(n), ee({
3243
+ key: S,
3243
3244
  ref_for: !0
3244
3245
  }, {
3245
- ...g,
3246
+ ...p,
3246
3247
  type: "button"
3247
3248
  }, {
3248
- onClick: (D) => I(f.value, g)
3249
+ onClick: (D) => T(w.value, p)
3249
3250
  }), {
3250
3251
  default: q(() => [
3251
3252
  Q(
3252
- Z(g.text),
3253
+ Z(p.text),
3253
3254
  1
3254
3255
  /* TEXT */
3255
3256
  )
@@ -3259,20 +3260,20 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3259
3260
  }, 1040, ["onClick"]))),
3260
3261
  128
3261
3262
  /* KEYED_FRAGMENT */
3262
- )) : (C(), U(
3263
+ )) : (A(), U(
3263
3264
  Ye,
3264
3265
  { key: 1 },
3265
3266
  [
3266
- b.value ? (C(), N(
3267
- x(n),
3268
- ee({ key: 0 }, b.value, {
3269
- onClick: m[0] || (m[0] = (g) => x(i)(f.value))
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))
3270
3271
  }),
3271
3272
  {
3272
3273
  default: q(() => [
3273
- W(h.$slots, "cancel-text", {}, () => [
3274
+ W(m.$slots, "cancel-text", {}, () => [
3274
3275
  Q(
3275
- Z(b.value.text),
3276
+ Z(y.value.text),
3276
3277
  1
3277
3278
  /* TEXT */
3278
3279
  )
@@ -3284,16 +3285,16 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3284
3285
  16
3285
3286
  /* FULL_PROPS */
3286
3287
  )) : B("v-if", !0),
3287
- c.value ? (C(), N(
3288
- x(n),
3289
- ee({ key: 1 }, c.value, {
3290
- onClick: m[1] || (m[1] = (g) => x(r)(f.value))
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))
3291
3292
  }),
3292
3293
  {
3293
3294
  default: q(() => [
3294
- W(h.$slots, "confirm-text", {}, () => [
3295
+ W(m.$slots, "confirm-text", {}, () => [
3295
3296
  Q(
3296
- Z(c.value.text),
3297
+ Z(z.value.text),
3297
3298
  1
3298
3299
  /* TEXT */
3299
3300
  )
@@ -3320,7 +3321,7 @@ const bn = { class: "maz-flex maz-items-center maz-gap-2" }, wn = /* @__PURE__ *
3320
3321
  }), nt = {
3321
3322
  identifier: "main-dialog"
3322
3323
  };
3323
- class En {
3324
+ class zn {
3324
3325
  constructor(e, t = nt) {
3325
3326
  this.app = e, this.globalOptions = t;
3326
3327
  }
@@ -3329,13 +3330,13 @@ class En {
3329
3330
  ...nt,
3330
3331
  ...this.globalOptions,
3331
3332
  ...e
3332
- }, { destroy: n, vNode: o } = _e(wn, {
3333
+ }, { destroy: n, vNode: o } = _e(En, {
3333
3334
  props: t,
3334
3335
  app: this.app
3335
3336
  }), { showDialogAndWaitChoice: i } = xt();
3336
3337
  function r() {
3337
- var l, u, b;
3338
- (u = (l = o.component) == null ? void 0 : l.exposed) == null || u.close(), (b = t.promiseCallback) == null || b.call(t), setTimeout(() => {
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(() => {
3339
3340
  n();
3340
3341
  }, 700);
3341
3342
  }
@@ -3348,14 +3349,14 @@ class En {
3348
3349
  };
3349
3350
  }
3350
3351
  }
3351
- const fo = {
3352
+ const ho = {
3352
3353
  install(s, e) {
3353
- s.provide("dialog", new En(s, e));
3354
+ s.provide("dialog", new zn(s, e));
3354
3355
  }
3355
- }, zn = { class: "m-toast__message-wrapper" }, Tn = { class: "m-toast__message" }, Ln = { class: "maz-flex maz-items-center maz-gap-2" }, kn = { key: 0 }, Cn = {
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 = {
3356
3357
  key: 4,
3357
3358
  class: "progress-bar maz-absolute maz-inset-x-0 maz-bottom-0 maz-h-1"
3358
- }, In = /* @__PURE__ */ ye({
3359
+ }, An = /* @__PURE__ */ ye({
3359
3360
  __name: "MazToast",
3360
3361
  props: {
3361
3362
  message: { default: void 0 },
@@ -3372,53 +3373,53 @@ const fo = {
3372
3373
  },
3373
3374
  emits: ["close", "click", "open"],
3374
3375
  setup(s, { expose: e, emit: t }) {
3375
- const n = s, o = t, i = H(() => import("./MazBtn-yNCoLFA6.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(
3376
3377
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
3377
3378
  ), l = H(
3378
3379
  () => import("./exclamation-triangle-Z6d0ygp8.mjs")
3379
3380
  ), u = H(
3380
3381
  () => import("./exclamation-circle-CUk0ZajS.mjs")
3381
- ), b = H(
3382
+ ), y = H(
3382
3383
  () => import("./information-circle-C7e5b_nL.mjs")
3383
- ), c = H(() => import("./check-circle-Bf7AGSQ-.mjs")), f = H(() => import("./link-Br1lfjTR.mjs")), E = w(), O = p(() => {
3384
+ ), z = H(() => import("./check-circle-Bf7AGSQ-.mjs")), w = H(() => import("./link-Br1lfjTR.mjs")), f = b(), k = h(() => {
3384
3385
  if (n.icon)
3385
3386
  switch (n.type) {
3386
3387
  case "danger":
3387
3388
  return l;
3388
3389
  case "info":
3389
- return b;
3390
+ return y;
3390
3391
  case "success":
3391
- return c;
3392
+ return z;
3392
3393
  case "warning":
3393
3394
  return u;
3394
3395
  default:
3395
3396
  return;
3396
3397
  }
3397
- }), I = p(() => n.position.includes("top") ? "top" : "bottom"), h = p(() => n.position.includes("left") ? "left" : n.position.includes("right") ? "right" : "center"), m = p(() => h.value !== "center" ? h.value === "right" ? "m-slide-right" : "m-slide-left" : I.value === "top" ? "m-slide-top" : "m-slide-bottom"), L = w(!1), g = w(!1), A = w(), D = `m-toast-container --${I.value} --${h.value}`, T = `.${D.replaceAll(" ", ".")}`, P = Ls({
3398
+ }), 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({
3398
3399
  callback: ne,
3399
3400
  timeout: typeof n.timeout == "number" ? n.timeout : 0,
3400
3401
  callbackOffsetTime: 200
3401
3402
  });
3402
3403
  function j() {
3403
- const v = document.querySelector(T);
3404
+ const v = document.querySelector(L);
3404
3405
  if (!v && !v) {
3405
- const S = document.body, M = document.createElement("div");
3406
- M.className = D, S.append(M);
3406
+ const x = document.body, M = document.createElement("div");
3407
+ M.className = D, x.append(M);
3407
3408
  }
3408
3409
  }
3409
3410
  function se() {
3410
- const v = document.querySelector(T);
3411
+ const v = document.querySelector(L);
3411
3412
  return !n.queue && n.maxToasts === !1 ? !1 : typeof n.maxToasts == "number" && v ? n.maxToasts <= v.childElementCount : v && v.childElementCount > 0;
3412
3413
  }
3413
3414
  function G() {
3414
3415
  if (se()) {
3415
- A.value = setTimeout(G, 250);
3416
+ S.value = setTimeout(G, 250);
3416
3417
  return;
3417
3418
  }
3418
- const v = document.querySelector(T);
3419
- E.value && v && v.prepend(E.value), g.value = !0, typeof n.timeout == "number" && n.timeout > 0 && P.start();
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();
3420
3421
  }
3421
- const ue = w("100%");
3422
+ const ce = b("100%");
3422
3423
  function Me() {
3423
3424
  switch (n.type) {
3424
3425
  case "danger":
@@ -3437,41 +3438,41 @@ const fo = {
3437
3438
  P.remainingTime,
3438
3439
  (v) => {
3439
3440
  if (typeof n.timeout == "number") {
3440
- const S = 100 * v / n.timeout;
3441
- ue.value = `${S}%`;
3441
+ const x = 100 * v / n.timeout;
3442
+ ce.value = `${x}%`;
3442
3443
  }
3443
3444
  }
3444
3445
  );
3445
- function ce(v) {
3446
+ function de(v) {
3446
3447
  o("click", v), n.persistent || ne();
3447
3448
  }
3448
- async function de(v, S) {
3449
+ async function me(v, x) {
3449
3450
  var M;
3450
- L.value = !0, await v(), L.value = !1, (M = n.action) != null && M.closeToast && ce(S);
3451
+ C.value = !0, await v(), C.value = !1, (M = n.action) != null && M.closeToast && de(x);
3451
3452
  }
3452
- function me(v) {
3453
+ function fe(v) {
3453
3454
  n.noPauseOnHover || (v ? P.pause() : P.resume());
3454
3455
  }
3455
3456
  function $e() {
3456
- P.stop(), A.value && clearTimeout(A.value);
3457
+ P.stop(), S.value && clearTimeout(S.value);
3457
3458
  }
3458
3459
  function ne() {
3459
- $e(), g.value = !1;
3460
+ $e(), p.value = !1;
3460
3461
  }
3461
3462
  e({ closeToast: ne });
3462
3463
  function Le() {
3463
3464
  o("open");
3464
3465
  }
3465
3466
  function ke() {
3466
- var S;
3467
- o("close"), (S = E.value) == null || S.remove();
3468
- const v = document.querySelector(T);
3467
+ var x;
3468
+ o("close"), (x = f.value) == null || x.remove();
3469
+ const v = document.querySelector(L);
3469
3470
  v && !(v != null && v.hasChildNodes()) && v.remove();
3470
3471
  }
3471
- return le(() => {
3472
+ return ue(() => {
3472
3473
  j(), G();
3473
- }), (v, S) => (C(), N(ut, {
3474
- name: m.value,
3474
+ }), (v, x) => (A(), N(ut, {
3475
+ name: d.value,
3475
3476
  onAfterLeave: ke,
3476
3477
  onAfterEnter: Le,
3477
3478
  persisted: ""
@@ -3481,43 +3482,43 @@ const fo = {
3481
3482
  "button",
3482
3483
  {
3483
3484
  ref_key: "Toaster",
3484
- ref: E,
3485
- class: ge(["m-toast", [
3485
+ ref: f,
3486
+ class: le(["m-toast m-reset-css", [
3486
3487
  `--${v.type}`,
3487
- `--${I.value}`,
3488
- `--${h.value}`,
3488
+ `--${T.value}`,
3489
+ `--${m.value}`,
3489
3490
  { "maz-pb-1": typeof v.timeout == "number" && v.timeout > 0, "--persistent": v.persistent }
3490
3491
  ]]),
3491
3492
  role: "alert",
3492
- onMouseover: S[2] || (S[2] = (M) => me(!0)),
3493
- onMouseleave: S[3] || (S[3] = (M) => me(!1)),
3494
- onClick: S[4] || (S[4] = Y((M) => {
3495
- var fe;
3496
- return v.link && !((fe = v.link) != null && fe.closeToast) ? void 0 : ce(M);
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) => {
3496
+ var he;
3497
+ return v.link && !((he = v.link) != null && he.closeToast) ? void 0 : de(M);
3497
3498
  }, ["stop"]))
3498
3499
  },
3499
3500
  [
3500
- O.value ? (C(), N(Ut(O.value), {
3501
+ k.value ? (A(), N(Wt(k.value), {
3501
3502
  key: 0,
3502
3503
  class: "maz-text-2xl"
3503
3504
  })) : B("v-if", !0),
3504
- V("div", zn, [
3505
+ V("div", Tn, [
3505
3506
  V(
3506
3507
  "p",
3507
- Tn,
3508
+ Ln,
3508
3509
  Z(v.message),
3509
3510
  1
3510
3511
  /* TEXT */
3511
3512
  )
3512
3513
  ]),
3513
- v.action ? (C(), N(x(i), {
3514
+ v.action ? (A(), N(O(i), {
3514
3515
  key: 1,
3515
3516
  "data-test": "action-btn",
3516
3517
  color: v.type,
3517
3518
  pastel: "",
3518
- loading: L.value,
3519
+ loading: C.value,
3519
3520
  size: "sm",
3520
- onClick: S[0] || (S[0] = Y((M) => v.action ? de(v.action.func, M) : void 0, ["stop"]))
3521
+ onClick: x[0] || (x[0] = Y((M) => v.action ? me(v.action.func, M) : void 0, ["stop"]))
3521
3522
  }, {
3522
3523
  default: q(() => [
3523
3524
  Q(
@@ -3529,7 +3530,7 @@ const fo = {
3529
3530
  _: 1
3530
3531
  /* STABLE */
3531
3532
  }, 8, ["color", "loading"])) : B("v-if", !0),
3532
- v.link ? (C(), N(x(i), {
3533
+ v.link ? (A(), N(O(i), {
3533
3534
  key: 2,
3534
3535
  "data-test": "link-btn",
3535
3536
  color: v.type,
@@ -3541,18 +3542,18 @@ const fo = {
3541
3542
  default: q(() => {
3542
3543
  var M;
3543
3544
  return [
3544
- V("div", Ln, [
3545
- v.link.text ? (C(), U(
3545
+ V("div", kn, [
3546
+ v.link.text ? (A(), U(
3546
3547
  "span",
3547
- kn,
3548
+ Cn,
3548
3549
  Z(v.link.text),
3549
3550
  1
3550
3551
  /* TEXT */
3551
3552
  )) : B("v-if", !0),
3552
- ((M = v.link) == null ? void 0 : M.target) === "_blank" ? (C(), N(x(a), {
3553
+ ((M = v.link) == null ? void 0 : M.target) === "_blank" ? (A(), N(O(a), {
3553
3554
  key: 1,
3554
3555
  class: "maz-text-xl"
3555
- })) : (C(), N(x(f), {
3556
+ })) : (A(), N(O(w), {
3556
3557
  key: 2,
3557
3558
  class: "maz-text-xl"
3558
3559
  }))
@@ -3562,21 +3563,21 @@ const fo = {
3562
3563
  _: 1
3563
3564
  /* STABLE */
3564
3565
  }, 8, ["color", "href", "target"])) : B("v-if", !0),
3565
- v.persistent ? B("v-if", !0) : (C(), U("button", {
3566
+ v.persistent ? B("v-if", !0) : (A(), U("button", {
3566
3567
  key: 3,
3567
3568
  class: "--close",
3568
- onClick: S[1] || (S[1] = Y((M) => ce(M), ["stop"]))
3569
+ onClick: x[1] || (x[1] = Y((M) => de(M), ["stop"]))
3569
3570
  }, [
3570
- J(x(r), { class: "--icon maz-text-xl" })
3571
+ J(O(r), { class: "--icon maz-text-xl" })
3571
3572
  ])),
3572
- typeof v.timeout == "number" && v.timeout > 0 ? (C(), U("div", Cn, [
3573
+ typeof v.timeout == "number" && v.timeout > 0 ? (A(), U("div", In, [
3573
3574
  V(
3574
3575
  "div",
3575
3576
  {
3576
- style: Wt({
3577
- width: ue.value
3577
+ style: Rt({
3578
+ width: ce.value
3578
3579
  }),
3579
- class: ge(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", Me()])
3580
+ class: le(["maz-h-full !maz-transition-all !maz-duration-200 !maz-ease-linear", Me()])
3580
3581
  },
3581
3582
  null,
3582
3583
  6
@@ -3587,30 +3588,30 @@ const fo = {
3587
3588
  34
3588
3589
  /* CLASS, NEED_HYDRATION */
3589
3590
  ), [
3590
- [lt, g.value]
3591
+ [lt, p.value]
3591
3592
  ])
3592
3593
  ]),
3593
3594
  _: 1
3594
3595
  /* STABLE */
3595
3596
  }, 8, ["name"]));
3596
3597
  }
3597
- }), An = /* @__PURE__ */ Pe(In, [["__scopeId", "data-v-eaf59fd1"]]), Sn = {
3598
+ }), Sn = /* @__PURE__ */ Pe(An, [["__scopeId", "data-v-33ed4ad5"]]), xn = {
3598
3599
  position: "bottom-right",
3599
3600
  timeout: 1e4,
3600
3601
  persistent: !1,
3601
3602
  icon: !0
3602
3603
  };
3603
- class xn {
3604
+ class On {
3604
3605
  constructor(e, t) {
3605
3606
  this.app = e, this.globalOptions = t;
3606
3607
  }
3607
3608
  show(e, t) {
3608
3609
  const n = {
3609
- ...Sn,
3610
+ ...xn,
3610
3611
  ...this.globalOptions,
3611
3612
  ...t,
3612
3613
  message: e
3613
- }, { destroy: o, vNode: i } = _e(An, {
3614
+ }, { destroy: o, vNode: i } = _e(Sn, {
3614
3615
  props: n,
3615
3616
  app: this.app
3616
3617
  });
@@ -3644,113 +3645,113 @@ class xn {
3644
3645
  return this.show(e, this.getLocalOptions("warning", t));
3645
3646
  }
3646
3647
  }
3647
- function On(s, e) {
3648
- return new xn(s, e);
3648
+ function Dn(s, e) {
3649
+ return new On(s, e);
3649
3650
  }
3650
- const ho = {
3651
+ const vo = {
3651
3652
  install(s, e) {
3652
- s.provide("toast", On(s, e));
3653
+ s.provide("toast", Dn(s, e));
3653
3654
  }
3654
3655
  }, re = "";
3655
- function Dn(s) {
3656
+ function Pn(s) {
3656
3657
  return s.filter((e, t, n) => t === n.indexOf(e));
3657
3658
  }
3658
- function Pn(s) {
3659
+ function Mn(s) {
3659
3660
  return (e = re) => typeof e == "function" ? s.findIndex((...t) => e(...t)) > -1 : s.includes(e);
3660
3661
  }
3661
- const Mn = (s) => s.length > 0;
3662
- function $n(s) {
3663
- return (e = re) => Dn([...s, e]);
3664
- }
3662
+ const $n = (s) => s.length > 0;
3665
3663
  function Vn(s) {
3664
+ return (e = re) => Pn([...s, e]);
3665
+ }
3666
+ function Hn(s) {
3666
3667
  return (e = re) => s.filter((t) => t !== e);
3667
3668
  }
3668
- class Hn {
3669
+ class Bn {
3669
3670
  constructor() {
3670
- d(this, "_loaders", w([]));
3671
+ c(this, "_loaders", b([]));
3671
3672
  }
3672
3673
  get loaders() {
3673
- return p(() => this._loaders.value);
3674
+ return h(() => this._loaders.value);
3674
3675
  }
3675
3676
  stop(e = re) {
3676
- this._loaders.value = Vn(this._loaders.value)(e);
3677
+ this._loaders.value = Hn(this._loaders.value)(e);
3677
3678
  }
3678
3679
  start(e = re) {
3679
- return this._loaders.value = $n(this._loaders.value)(e), () => this.stop(e);
3680
+ return this._loaders.value = Vn(this._loaders.value)(e), () => this.stop(e);
3680
3681
  }
3681
3682
  get anyLoading() {
3682
- return p(() => Mn(this._loaders.value));
3683
+ return h(() => $n(this._loaders.value));
3683
3684
  }
3684
3685
  isLoading(e = re) {
3685
- return p(() => Pn(this._loaders.value)(e)).value;
3686
+ return h(() => Mn(this._loaders.value)(e)).value;
3686
3687
  }
3687
3688
  }
3688
- const Bn = new Hn(), vo = {
3689
+ const Nn = new Bn(), po = {
3689
3690
  install: (s) => {
3690
- s.provide("wait", Bn);
3691
+ s.provide("wait", Nn);
3691
3692
  }
3692
3693
  };
3693
3694
  export {
3694
- mo as $,
3695
- Ps as A,
3696
- Us as B,
3697
- qs as C,
3698
- Rs as D,
3699
- ao as E,
3700
- Zs as F,
3701
- Ys as G,
3702
- uo as H,
3703
- Gs as I,
3704
- tn as J,
3705
- nn as K,
3706
- rn as L,
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,
3707
3708
  ct as M,
3708
- no as N,
3709
- oo as O,
3710
- ms as P,
3709
+ oo as N,
3710
+ io as O,
3711
+ fs as P,
3711
3712
  F as Q,
3712
3713
  _e as R,
3713
3714
  Ge as S,
3714
- io as T,
3715
- $s as U,
3716
- Es as V,
3717
- ro as W,
3718
- Ms as X,
3719
- ks as Y,
3720
- ln as Z,
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,
3721
3722
  Pe as _,
3722
- qn as a,
3723
- co as a0,
3724
- En as a1,
3725
- fo as a2,
3726
- ho as a3,
3727
- xn as a4,
3728
- Bn as a5,
3729
- vo as a6,
3730
- Hn as a7,
3731
- Un as b,
3732
- Wn as c,
3733
- Rn as d,
3734
- _n as e,
3735
- Kn as f,
3736
- hs as g,
3737
- Yn as h,
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,
3738
3739
  De as i,
3739
- Zn as j,
3740
- Xn as k,
3741
- vs as l,
3742
- Gn as m,
3743
- Qn as n,
3744
- Ls as o,
3745
- Jn as p,
3746
- eo as q,
3747
- to as r,
3748
- _t as s,
3749
- lo as t,
3750
- jn as u,
3751
- Is as v,
3752
- As as w,
3753
- Os as x,
3754
- Ds as y,
3755
- so as z
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
3756
3757
  };