maz-ui 3.50.1 → 4.0.0-alpha.2

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 (1222) hide show
  1. package/dist/assets/CountrySelector.Cnqbl3xF.css +1 -0
  2. package/dist/assets/MazAccordion.DaqF3ZAX.css +1 -0
  3. package/dist/assets/MazAnimatedCounter.DYYlw_wl.css +1 -0
  4. package/dist/assets/MazAnimatedElement.BIRRN8k1.css +1 -0
  5. package/dist/assets/MazAnimatedText.Dk4QO4xF.css +1 -0
  6. package/dist/assets/MazAvatar.L1UreldR.css +1 -0
  7. package/dist/assets/MazBackdrop.C72SNI28.css +1 -0
  8. package/dist/assets/MazBadge.RMWNkgZL.css +1 -0
  9. package/dist/assets/MazBottomSheet.Dqr-kpLb.css +1 -0
  10. package/dist/assets/MazBtn.7QWd6o3M.css +1 -0
  11. package/dist/assets/MazCard.Cod9pIM4.css +1 -0
  12. package/dist/assets/MazCardSpotlight.DuZac0w4.css +1 -0
  13. package/dist/assets/MazCarousel.BQIrqJ8T.css +1 -0
  14. package/dist/assets/MazCheckbox.BQVJ7EUB.css +1 -0
  15. package/dist/assets/MazChecklist.5ArDAEhG.css +1 -0
  16. package/dist/assets/MazCircularProgressBar.DywLXEfR.css +1 -0
  17. package/dist/assets/MazDialog.BLzdH8aa.css +1 -0
  18. package/dist/assets/MazDrawer.Cu4KVc_z.css +1 -0
  19. package/dist/assets/MazExpandAnimation.BEIRlAy-.css +1 -0
  20. package/dist/assets/MazFullscreenLoader.DTW_WUM6.css +1 -0
  21. package/dist/assets/MazGallery.ChuEM3_y.css +1 -0
  22. package/dist/assets/MazInput.C5uUOQLJ.css +1 -0
  23. package/dist/assets/MazInputCode.C1Mlb3p3.css +1 -0
  24. package/dist/assets/MazInputNumber.BQgG6Qvc.css +1 -0
  25. package/dist/assets/MazInputPhoneNumber.DKac4ZYj.css +1 -0
  26. package/dist/assets/MazInputTags.eygPFBJC.css +1 -0
  27. package/dist/assets/MazLazyImg.BvztvWbf.css +1 -0
  28. package/dist/assets/MazLink.DQ7r1i9T.css +1 -0
  29. package/dist/assets/MazLoadingBar.C6sNjytz.css +1 -0
  30. package/dist/assets/MazPagination.DSYY_yu7.css +1 -0
  31. package/dist/assets/MazPicker.fY2qT4ER.css +1 -0
  32. package/dist/assets/MazPickerCalendar.K1FbevcF.css +1 -0
  33. package/dist/assets/MazPickerCalendarMonth.GACBSeof.css +1 -0
  34. package/dist/assets/MazPickerCalendarSwitcher.23EFP_7Y.css +1 -0
  35. package/dist/assets/MazPickerHeader.CfwpRnA1.css +1 -0
  36. package/dist/assets/MazPickerMonthSwitcher.Cl1WlZpR.css +1 -0
  37. package/dist/assets/MazPickerShortcuts.B1ASAi7L.css +1 -0
  38. package/dist/assets/MazPickerTime.5J3qaKGo.css +1 -0
  39. package/dist/assets/MazPickerYearSwitcher.Bt0efux6.css +1 -0
  40. package/dist/assets/MazPullToRefresh.BdvKaU9N.css +1 -0
  41. package/dist/assets/MazRadio.zYTBn9Pj.css +1 -0
  42. package/dist/assets/MazRadioButtons.CIq38oX6.css +1 -0
  43. package/dist/assets/MazReadingProgressBar.CbqVvC8N.css +1 -0
  44. package/dist/assets/MazSelect.CH_76PSg.css +1 -0
  45. package/dist/assets/MazSlider.D08gO9DD.css +1 -0
  46. package/dist/assets/MazSpinner.DTuz1RdS.css +1 -0
  47. package/dist/assets/MazStepper.BE3Mm9rm.css +1 -0
  48. package/dist/assets/MazTable.D06R_2nI.css +1 -0
  49. package/dist/assets/MazTableCell.BDmda4j7.css +1 -0
  50. package/dist/assets/MazTableRow.Copw9RJN.css +1 -0
  51. package/dist/assets/MazTableTitle.Cspgmj1g.css +1 -0
  52. package/dist/assets/MazTabsBar.-q3BbMXe.css +1 -0
  53. package/dist/assets/MazTabsContentItem.C0ygFU51.css +1 -0
  54. package/dist/assets/MazTextarea.QTMu0OQv.css +1 -0
  55. package/dist/assets/MazTransitionExpand.D3j4PawL.css +1 -0
  56. package/dist/assets/PhoneInput.utJQQXVJ.css +1 -0
  57. package/dist/assets/fullscreen-img.hjNozahA.css +1 -0
  58. package/dist/assets/toaster.C9zhIkIO.css +1 -0
  59. package/dist/chunks/CountrySelector.DdswEbFD.js +177 -0
  60. package/dist/chunks/MazChart.vue_vue_type_script_setup_true_lang.OYo-HXwF.js +92 -0
  61. package/dist/chunks/MazDialogPromise.vue_vue_type_script_setup_true_lang.4Oe-oHLl.js +213 -0
  62. package/dist/chunks/MazDropdown.vue_vue_type_style_index_0_lang.BfXJ_MY5.js +240 -0
  63. package/dist/chunks/MazIcon.vue_vue_type_script_setup_true_lang.CMbhrIdI.js +103 -0
  64. package/dist/chunks/MazInputNumber.vue_vue_type_style_index_0_lang.BC7pKYyR.js +126 -0
  65. package/dist/chunks/MazInputPhoneNumber.SX--TVUa.js +391 -0
  66. package/dist/chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.DOtT8uOc.js +85 -0
  67. package/dist/chunks/MazPicker.qrjLr1LC.js +768 -0
  68. package/dist/chunks/MazPickerCalendar.wLx9bpla.js +114 -0
  69. package/dist/chunks/MazPickerCalendarMonth.BAGEzpiX.js +257 -0
  70. package/dist/chunks/MazPickerCalendarSwitcher.DNOJBstV.js +90 -0
  71. package/dist/chunks/MazPickerHeader.D2MCckVK.js +136 -0
  72. package/dist/chunks/MazPickerMonthSwitcher.B-pkMUq_.js +82 -0
  73. package/dist/chunks/MazPickerShortcuts.BB98CX9u.js +62 -0
  74. package/dist/chunks/MazPickerTime.wPLppaUp.js +189 -0
  75. package/dist/chunks/MazPickerYearSwitcher.DEZEMpA9.js +96 -0
  76. package/dist/chunks/MazSwitch.vue_vue_type_style_index_0_lang.C0cqQKJt.js +86 -0
  77. package/dist/chunks/MazTable.vue_vue_type_style_index_0_scoped_4101f1d3_lang.DUP8S_W0.js +533 -0
  78. package/dist/chunks/MazTabs.vue_vue_type_script_setup_true_lang.DnbfPaVg.js +28 -0
  79. package/dist/chunks/MazTabsContent.vue_vue_type_script_setup_true_lang.BXptx7-v.js +26 -0
  80. package/dist/chunks/PhoneInput.BUrcSAlz.js +106 -0
  81. package/dist/chunks/arrow-top-right-on-square.wYk3YJI_.js +24 -0
  82. package/dist/chunks/arrow-up.HdMpMK4c.js +24 -0
  83. package/dist/chunks/banknotes.CQ9Qxg-e.js +24 -0
  84. package/dist/chunks/check-circle.DhFkXzgc.js +24 -0
  85. package/dist/chunks/check.B-gxQRxL.js +24 -0
  86. package/dist/chunks/chevron-double-left.C1WkQBYN.js +24 -0
  87. package/dist/chunks/chevron-down.CWWH3GZ1.js +24 -0
  88. package/dist/chunks/chevron-left.njfuF_Vt.js +24 -0
  89. package/dist/chunks/chevron-right.CEEKGU2c.js +24 -0
  90. package/dist/chunks/ellipsis-horizontal.BKw73_U9.js +24 -0
  91. package/dist/chunks/exclamation-circle.D4z1YE7G.js +24 -0
  92. package/dist/chunks/exclamation-triangle.DiZZcE2l.js +24 -0
  93. package/dist/chunks/eye-slash.BrQSe1kT.js +24 -0
  94. package/dist/chunks/eye.yaEU50DN.js +31 -0
  95. package/dist/chunks/fullscreen-img.directive.CaOkiCBy.js +328 -0
  96. package/dist/chunks/information-circle.CEsJ8VHx.js +24 -0
  97. package/dist/chunks/lazy-img.directive.Cjz2aiGf.js +188 -0
  98. package/dist/chunks/link.qHT4E8pY.js +24 -0
  99. package/dist/chunks/magnifying-glass.6EkSEo-G.js +24 -0
  100. package/dist/chunks/minus.BHEyT7J2.js +24 -0
  101. package/dist/chunks/no-photography.B6pz0xMN.js +24 -0
  102. package/dist/chunks/no-symbol.DqVEpOgn.js +24 -0
  103. package/dist/chunks/pencil.Cl_0Egfc.js +24 -0
  104. package/dist/chunks/plus.CNCGxFPJ.js +24 -0
  105. package/dist/chunks/trash.lmwqE3cE.js +24 -0
  106. package/dist/chunks/utils.Cg8nbVpk.js +321 -0
  107. package/dist/chunks/x-mark.DTWA3lfG.js +24 -0
  108. package/dist/components/MazAccordion.js +84 -0
  109. package/dist/components/MazAnimatedCounter.js +77 -0
  110. package/dist/components/MazAnimatedElement.js +33 -0
  111. package/dist/components/MazAnimatedText.js +79 -0
  112. package/dist/components/MazAvatar.js +124 -0
  113. package/dist/components/MazBackdrop.js +128 -0
  114. package/dist/components/MazBadge.js +28 -0
  115. package/dist/components/MazBottomSheet.js +53 -0
  116. package/dist/components/MazBtn.js +102 -0
  117. package/dist/components/MazCard.js +173 -0
  118. package/dist/components/MazCardSpotlight.js +68 -0
  119. package/dist/components/MazCarousel.js +97 -0
  120. package/dist/components/MazChart.js +4 -0
  121. package/dist/components/MazCheckbox.js +134 -0
  122. package/dist/components/MazChecklist.js +124 -0
  123. package/dist/components/MazCircularProgressBar.js +132 -0
  124. package/dist/components/MazDialog.js +135 -0
  125. package/dist/components/MazDialogPromise.js +6 -0
  126. package/dist/components/MazDrawer.js +69 -0
  127. package/dist/components/MazDropdown.js +4 -0
  128. package/dist/components/MazDropzone.js +194 -0
  129. package/dist/components/MazExpandAnimation.js +48 -0
  130. package/dist/components/MazFullscreenLoader.js +37 -0
  131. package/dist/components/MazGallery.js +124 -0
  132. package/dist/components/MazIcon.js +4 -0
  133. package/dist/components/MazInput.js +264 -0
  134. package/dist/components/MazInputCode.js +145 -0
  135. package/dist/components/MazInputNumber.js +4 -0
  136. package/dist/components/MazInputPhoneNumber.js +5 -0
  137. package/dist/components/MazInputPrice.js +4 -0
  138. package/dist/components/MazInputTags.js +153 -0
  139. package/dist/components/MazLazyImg.js +68 -0
  140. package/dist/components/MazLink.js +64 -0
  141. package/dist/components/MazLoadingBar.js +24 -0
  142. package/dist/components/MazPagination.js +189 -0
  143. package/dist/components/MazPicker.js +5 -0
  144. package/dist/components/MazPullToRefresh.js +146 -0
  145. package/dist/components/MazRadio.js +106 -0
  146. package/dist/components/MazRadioButtons.js +129 -0
  147. package/dist/components/MazReadingProgressBar.js +67 -0
  148. package/dist/components/MazSelect.js +377 -0
  149. package/dist/components/MazSlider.js +230 -0
  150. package/dist/components/MazSpinner.js +28 -0
  151. package/dist/components/MazStepper.js +160 -0
  152. package/dist/components/MazSwitch.js +4 -0
  153. package/dist/components/MazTable.js +8 -0
  154. package/dist/components/MazTableCell.js +18 -0
  155. package/dist/components/MazTableRow.js +25 -0
  156. package/dist/components/MazTableTitle.js +18 -0
  157. package/dist/components/MazTabs.js +4 -0
  158. package/dist/components/MazTabsBar.js +138 -0
  159. package/dist/components/MazTabsContent.js +4 -0
  160. package/dist/components/MazTabsContentItem.js +40 -0
  161. package/dist/components/MazTextarea.js +175 -0
  162. package/dist/components/MazTransitionExpand.js +46 -0
  163. package/dist/components.js +112 -0
  164. package/dist/composables/useAos.js +7 -0
  165. package/dist/composables/useBreakpoints.js +40 -0
  166. package/dist/composables/useDialog.js +7 -0
  167. package/dist/composables/useFormField.js +98 -0
  168. package/dist/composables/useFormValidator.js +116 -0
  169. package/dist/composables/useIdleTimeout.js +10 -0
  170. package/dist/composables/useInstanceUniqId.js +10 -0
  171. package/dist/composables/useLanguageDisplayNames.js +371 -0
  172. package/dist/composables/useReadingTime.js +39 -0
  173. package/dist/composables/useStringMatching.js +42 -0
  174. package/dist/composables/useSwipe.js +26 -0
  175. package/dist/composables/useThemeHandler.js +125 -0
  176. package/dist/composables/useTimer.js +32 -0
  177. package/dist/composables/useToast.js +7 -0
  178. package/dist/composables/useUserVisibilty.js +10 -0
  179. package/dist/composables/useWait.js +7 -0
  180. package/dist/composables/useWindowSize.js +21 -0
  181. package/dist/directives/vClickOutside.js +51 -0
  182. package/dist/directives/vClosable.js +41 -0
  183. package/dist/directives/vFullscreenImg.js +10 -0
  184. package/dist/directives/vLazyImg.js +23 -0
  185. package/dist/directives/vTooltip.js +73 -0
  186. package/dist/directives/vZoomImg.js +289 -0
  187. package/dist/filters/camelCase.js +6 -0
  188. package/dist/filters/capitalize.js +6 -0
  189. package/dist/filters/currency.js +34 -0
  190. package/dist/filters/date.js +21 -0
  191. package/dist/filters/number.js +23 -0
  192. package/dist/filters/pascalCase.js +8 -0
  193. package/dist/filters/telephone.js +10 -0
  194. package/dist/helpers/checkAvailability.js +16 -0
  195. package/dist/helpers/countryCodeToUnicodeFlag.js +10 -0
  196. package/dist/helpers/countryFlagFromFlagCdn.js +6 -0
  197. package/dist/helpers/debounce.js +11 -0
  198. package/dist/helpers/debounceCallback.js +7 -0
  199. package/dist/helpers/debounceId.js +21 -0
  200. package/dist/helpers/freezeValue.js +8 -0
  201. package/dist/helpers/idleTimeout.js +114 -0
  202. package/dist/helpers/injectStrict.js +10 -0
  203. package/dist/helpers/isClient.js +6 -0
  204. package/dist/helpers/isEqual.js +26 -0
  205. package/dist/helpers/isStandaloneMode.js +10 -0
  206. package/dist/helpers/mountComponent.js +16 -0
  207. package/dist/helpers/normalizeString.js +69 -0
  208. package/dist/helpers/scriptLoader.js +47 -0
  209. package/dist/helpers/sleep.js +6 -0
  210. package/dist/helpers/swipeHandler.js +85 -0
  211. package/dist/helpers/throttle.js +11 -0
  212. package/dist/helpers/throttleId.js +19 -0
  213. package/dist/helpers/truthyFilter.js +6 -0
  214. package/dist/helpers/userVisibility.js +53 -0
  215. package/dist/maz-ui.js +162 -0
  216. package/dist/plugins/aos.js +99 -0
  217. package/dist/plugins/dialog.js +42 -0
  218. package/dist/plugins/toaster.js +270 -0
  219. package/dist/plugins/wait.js +48 -0
  220. package/dist/resolvers/UnpluginDirectivesResolver.js +9 -0
  221. package/dist/resolvers/UnpluginModulesResolver.js +44 -0
  222. package/dist/resolvers/UnpluginVueComponentsResolver.js +15 -0
  223. package/dist/types/components/MazAccordion.vue.d.ts +35 -0
  224. package/dist/types/components/MazAnimatedCounter.vue.d.ts +56 -0
  225. package/dist/types/components/MazAnimatedElement.vue.d.ts +41 -0
  226. package/dist/types/components/MazAnimatedText.vue.d.ts +55 -0
  227. package/dist/types/components/MazAvatar.vue.d.ts +100 -0
  228. package/dist/types/components/MazBackdrop.vue.d.ts +70 -0
  229. package/dist/types/components/MazBadge.vue.d.ts +38 -0
  230. package/dist/types/components/MazBottomSheet.vue.d.ts +34 -0
  231. package/dist/types/components/MazBtn.vue.d.ts +133 -0
  232. package/dist/types/components/MazCard.vue.d.ts +93 -0
  233. package/dist/types/components/MazCardSpotlight.vue.d.ts +60 -0
  234. package/dist/types/components/MazCarousel.vue.d.ts +34 -0
  235. package/dist/types/components/MazChart.vue.d.ts +104 -0
  236. package/dist/types/components/MazCheckbox.vue.d.ts +57 -0
  237. package/dist/types/components/MazChecklist.vue.d.ts +77 -0
  238. package/dist/types/components/MazCircularProgressBar.vue.d.ts +190 -0
  239. package/dist/types/components/MazDialog.vue.d.ts +160 -0
  240. package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +80 -0
  241. package/dist/types/components/MazDialogPromise.vue.d.ts +47 -0
  242. package/dist/types/components/MazDrawer.vue.d.ts +52 -0
  243. package/dist/types/components/MazDropdown.vue.d.ts +166 -0
  244. package/dist/types/components/MazDropzone.vue.d.ts +129 -0
  245. package/dist/types/components/MazExpandAnimation.vue.d.ts +41 -0
  246. package/dist/types/components/MazFullscreenLoader.vue.d.ts +25 -0
  247. package/dist/types/components/MazGallery.vue.d.ts +165 -0
  248. package/dist/types/components/MazIcon.vue.d.ts +80 -0
  249. package/dist/types/components/MazInput.vue.d.ts +122 -0
  250. package/dist/types/components/MazInputCode.vue.d.ts +51 -0
  251. package/dist/types/components/MazInputNumber.vue.d.ts +62 -0
  252. package/dist/types/components/MazInputPhoneNumber/CountrySelector.vue.d.ts +101 -0
  253. package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +19 -0
  254. package/dist/types/components/MazInputPhoneNumber/types.d.ts +62 -0
  255. package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
  256. package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +16 -0
  257. package/dist/types/components/MazInputPhoneNumber.vue.d.ts +244 -0
  258. package/dist/types/components/MazInputPrice.vue.d.ts +62 -0
  259. package/dist/types/components/MazInputTags.vue.d.ts +51 -0
  260. package/dist/types/components/MazLazyImg.vue.d.ts +74 -0
  261. package/dist/types/components/MazLink.vue.d.ts +85 -0
  262. package/dist/types/components/MazLoadingBar.vue.d.ts +12 -0
  263. package/dist/types/components/MazPagination.vue.d.ts +75 -0
  264. package/dist/types/components/MazPicker/MazPickerCalendar.vue.d.ts +138 -0
  265. package/dist/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  266. package/dist/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +115 -0
  267. package/dist/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +126 -0
  268. package/dist/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
  269. package/dist/types/components/MazPicker/MazPickerContainer.vue.d.ts +214 -0
  270. package/dist/types/components/MazPicker/MazPickerHeader.vue.d.ts +82 -0
  271. package/dist/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
  272. package/dist/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
  273. package/dist/types/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
  274. package/dist/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +36 -0
  275. package/dist/types/components/MazPicker/utils.d.ts +51 -0
  276. package/dist/types/components/MazPicker.vue.d.ts +125 -0
  277. package/dist/types/components/MazPullToRefresh.vue.d.ts +51 -0
  278. package/dist/types/components/MazRadio.vue.d.ts +57 -0
  279. package/dist/types/components/MazRadioButtons.vue.d.ts +71 -0
  280. package/dist/types/components/MazReadingProgressBar.vue.d.ts +55 -0
  281. package/dist/types/components/MazSelect.vue.d.ts +130 -0
  282. package/dist/types/components/MazSlider.vue.d.ts +111 -0
  283. package/dist/types/components/MazSpinner.vue.d.ts +15 -0
  284. package/dist/types/components/MazStepper.vue.d.ts +63 -0
  285. package/dist/types/components/MazSwitch.vue.d.ts +66 -0
  286. package/dist/types/components/MazTable.vue.d.ts +230 -0
  287. package/dist/types/components/MazTableCell.vue.d.ts +16 -0
  288. package/dist/types/components/MazTableRow.vue.d.ts +20 -0
  289. package/dist/types/components/MazTableTitle.vue.d.ts +16 -0
  290. package/dist/types/components/MazTabs.vue.d.ts +29 -0
  291. package/dist/types/components/MazTabsBar.vue.d.ts +72 -0
  292. package/dist/types/components/MazTabsContent.vue.d.ts +16 -0
  293. package/dist/types/components/MazTabsContentItem.vue.d.ts +28 -0
  294. package/dist/types/components/MazTextarea.vue.d.ts +90 -0
  295. package/dist/types/components/MazTransitionExpand.vue.d.ts +22 -0
  296. package/dist/types/components/constantes.d.ts +2 -0
  297. package/dist/types/components/index.d.ts +111 -0
  298. package/dist/types/components/types.d.ts +19 -0
  299. package/dist/types/composables/index.d.ts +18 -0
  300. package/dist/types/composables/useAos.d.ts +2 -0
  301. package/dist/types/composables/useBreakpoints.d.ts +38 -0
  302. package/dist/types/composables/useDialog.d.ts +2 -0
  303. package/dist/types/composables/useFormField.d.ts +56 -0
  304. package/dist/types/composables/useFormValidator/config.d.ts +7 -0
  305. package/dist/types/composables/useFormValidator/types.d.ts +110 -0
  306. package/dist/types/composables/useFormValidator/utils.d.ts +116 -0
  307. package/dist/types/composables/useFormValidator.d.ts +17 -0
  308. package/dist/types/composables/useIdleTimeout.d.ts +5 -0
  309. package/dist/types/composables/useInstanceUniqId.d.ts +4 -0
  310. package/dist/types/composables/useLanguageDisplayNames.d.ts +18 -0
  311. package/dist/types/composables/useReadingTime.d.ts +25 -0
  312. package/dist/types/composables/useStringMatching.d.ts +5 -0
  313. package/dist/types/composables/useSwipe.d.ts +14 -0
  314. package/dist/types/composables/useThemeHandler.d.ts +58 -0
  315. package/dist/types/composables/useTimer.d.ts +29 -0
  316. package/dist/types/composables/useToast.d.ts +2 -0
  317. package/dist/types/composables/useUserVisibilty.d.ts +5 -0
  318. package/dist/types/composables/useWait.d.ts +2 -0
  319. package/dist/types/composables/useWindowSize.d.ts +32 -0
  320. package/dist/types/directives/index.d.ts +10 -0
  321. package/dist/types/directives/vClickOutside.d.ts +15 -0
  322. package/dist/types/directives/vClosable.d.ts +18 -0
  323. package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +47 -0
  324. package/dist/types/directives/vFullscreenImg/fullscreen-img.directive.d.ts +7 -0
  325. package/dist/types/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
  326. package/dist/types/directives/vFullscreenImg.d.ts +6 -0
  327. package/dist/types/directives/vLazyImg/lazy-img.directive.d.ts +7 -0
  328. package/dist/types/directives/vLazyImg/lazy-img.handler.d.ts +39 -0
  329. package/dist/types/directives/vLazyImg/types.d.ts +35 -0
  330. package/dist/types/directives/vLazyImg.d.ts +6 -0
  331. package/dist/types/directives/vTooltip.d.ts +42 -0
  332. package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +6 -0
  333. package/dist/types/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
  334. package/dist/types/directives/vZoomImg.d.ts +6 -0
  335. package/dist/types/filters/camelCase.d.ts +1 -0
  336. package/dist/types/filters/index.d.ts +26 -0
  337. package/dist/types/filters/pascalCase.d.ts +1 -0
  338. package/dist/types/helpers/countryFlagFromFlagCdn.d.ts +7 -0
  339. package/dist/types/helpers/freezeValue.d.ts +5 -0
  340. package/dist/types/helpers/idleTimeout/idle-timeout-handler.d.ts +29 -0
  341. package/dist/types/helpers/idleTimeout/types.d.ts +29 -0
  342. package/dist/types/helpers/idleTimeout.d.ts +2 -0
  343. package/dist/types/helpers/index.d.ts +21 -0
  344. package/dist/types/helpers/injectStrict.d.ts +2 -0
  345. package/dist/types/helpers/isStandaloneMode.d.ts +1 -0
  346. package/dist/types/helpers/mountComponent.d.ts +14 -0
  347. package/dist/types/helpers/userVisibility/user-visibility-handler.d.ts +19 -0
  348. package/dist/types/helpers/userVisibility.d.ts +2 -0
  349. package/dist/types/index.d.ts +7 -0
  350. package/dist/types/plugins/aos.d.ts +36 -0
  351. package/dist/types/plugins/dialog/DialogHandler.d.ts +15 -0
  352. package/dist/types/plugins/dialog.d.ts +6 -0
  353. package/dist/types/plugins/toaster/MazToast.vue.d.ts +37 -0
  354. package/dist/types/plugins/toaster/ToasterHandler.d.ts +32 -0
  355. package/dist/types/plugins/toaster.d.ts +9 -0
  356. package/dist/types/plugins/wait.d.ts +14 -0
  357. package/dist/types/resolvers/UnpluginDirectivesResolver.d.ts +8 -0
  358. package/dist/types/resolvers/UnpluginModulesResolver.d.ts +8 -0
  359. package/dist/types/resolvers/UnpluginVueComponentsResolver.d.ts +8 -0
  360. package/dist/types/resolvers/index.d.ts +3 -0
  361. package/dist/types/tailwindcss/tailwind.config.d.ts +121 -0
  362. package/dist/types/tailwindcss/utils/colors.d.ts +1 -0
  363. package/dist/types/ts-helpers/InferMaybeRef.d.ts +2 -0
  364. package/dist/types/ts-helpers/index.d.ts +1 -0
  365. package/package.json +16 -28
  366. package/README.md +0 -151
  367. package/components/MazAccordion.d.ts +0 -36
  368. package/components/MazAccordion.mjs +0 -269
  369. package/components/MazAnimatedCounter.d.ts +0 -57
  370. package/components/MazAnimatedCounter.mjs +0 -113
  371. package/components/MazAnimatedElement.d.ts +0 -42
  372. package/components/MazAnimatedElement.mjs +0 -43
  373. package/components/MazAnimatedText.d.ts +0 -55
  374. package/components/MazAnimatedText.mjs +0 -147
  375. package/components/MazAvatar.d.ts +0 -102
  376. package/components/MazAvatar.mjs +0 -4
  377. package/components/MazBackdrop.d.ts +0 -71
  378. package/components/MazBackdrop.mjs +0 -145
  379. package/components/MazBadge.d.ts +0 -39
  380. package/components/MazBadge.mjs +0 -38
  381. package/components/MazBottomSheet.d.ts +0 -35
  382. package/components/MazBottomSheet.mjs +0 -4
  383. package/components/MazBtn.d.ts +0 -135
  384. package/components/MazBtn.mjs +0 -4
  385. package/components/MazCard.d.ts +0 -95
  386. package/components/MazCard.mjs +0 -4
  387. package/components/MazCardSpotlight.d.ts +0 -62
  388. package/components/MazCardSpotlight.mjs +0 -96
  389. package/components/MazCarousel.d.ts +0 -35
  390. package/components/MazCarousel.mjs +0 -4
  391. package/components/MazChart.d.ts +0 -104
  392. package/components/MazChart.mjs +0 -98
  393. package/components/MazCheckbox.d.ts +0 -58
  394. package/components/MazCheckbox.mjs +0 -182
  395. package/components/MazChecklist.d.ts +0 -78
  396. package/components/MazChecklist.mjs +0 -4
  397. package/components/MazCircularProgressBar.d.ts +0 -115
  398. package/components/MazCircularProgressBar.mjs +0 -267
  399. package/components/MazDialog.d.ts +0 -163
  400. package/components/MazDialog.mjs +0 -4
  401. package/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -80
  402. package/components/MazDialogPromise.d.ts +0 -47
  403. package/components/MazDialogPromise.mjs +0 -5
  404. package/components/MazDrawer.d.ts +0 -53
  405. package/components/MazDrawer.mjs +0 -4
  406. package/components/MazDropdown.d.ts +0 -169
  407. package/components/MazDropdown.mjs +0 -4
  408. package/components/MazDropzone.d.ts +0 -129
  409. package/components/MazDropzone.mjs +0 -5
  410. package/components/MazExpandAnimation.d.ts +0 -42
  411. package/components/MazExpandAnimation.mjs +0 -58
  412. package/components/MazFullscreenLoader.d.ts +0 -26
  413. package/components/MazFullscreenLoader.mjs +0 -4
  414. package/components/MazGallery.d.ts +0 -166
  415. package/components/MazGallery.mjs +0 -4
  416. package/components/MazIcon.d.ts +0 -80
  417. package/components/MazIcon.mjs +0 -108
  418. package/components/MazInput.d.ts +0 -123
  419. package/components/MazInput.mjs +0 -4
  420. package/components/MazInputCode.d.ts +0 -52
  421. package/components/MazInputCode.mjs +0 -167
  422. package/components/MazInputNumber.d.ts +0 -63
  423. package/components/MazInputNumber.mjs +0 -4
  424. package/components/MazInputPrice.d.ts +0 -63
  425. package/components/MazInputPrice.mjs +0 -4
  426. package/components/MazInputTags.d.ts +0 -52
  427. package/components/MazInputTags.mjs +0 -4
  428. package/components/MazLazyImg.d.ts +0 -76
  429. package/components/MazLazyImg.mjs +0 -4
  430. package/components/MazLink.d.ts +0 -86
  431. package/components/MazLink.mjs +0 -71
  432. package/components/MazLoadingBar.d.ts +0 -13
  433. package/components/MazLoadingBar.mjs +0 -40
  434. package/components/MazPagination.d.ts +0 -76
  435. package/components/MazPagination.mjs +0 -4
  436. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +0 -75
  437. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +0 -19
  438. package/components/MazPhoneNumberInput/types.d.ts +0 -62
  439. package/components/MazPhoneNumberInput/useLibphonenumber.d.ts +0 -26
  440. package/components/MazPhoneNumberInput/useMazPhoneNumberInput.d.ts +0 -16
  441. package/components/MazPhoneNumberInput.d.ts +0 -246
  442. package/components/MazPhoneNumberInput.mjs +0 -4
  443. package/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -138
  444. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
  445. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -115
  446. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -126
  447. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -42
  448. package/components/MazPicker/MazPickerContainer.vue.d.ts +0 -214
  449. package/components/MazPicker/MazPickerFooter.vue.d.ts +0 -18
  450. package/components/MazPicker/MazPickerHeader.vue.d.ts +0 -82
  451. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -44
  452. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -62
  453. package/components/MazPicker/MazPickerTime.vue.d.ts +0 -129
  454. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -36
  455. package/components/MazPicker/utils.d.ts +0 -51
  456. package/components/MazPicker.d.ts +0 -126
  457. package/components/MazPicker.mjs +0 -4
  458. package/components/MazPullToRefresh.d.ts +0 -53
  459. package/components/MazPullToRefresh.mjs +0 -4
  460. package/components/MazRadio.d.ts +0 -58
  461. package/components/MazRadio.mjs +0 -131
  462. package/components/MazRadioButtons.d.ts +0 -72
  463. package/components/MazRadioButtons.mjs +0 -177
  464. package/components/MazReadingProgressBar.d.ts +0 -56
  465. package/components/MazReadingProgressBar.mjs +0 -90
  466. package/components/MazSelect.d.ts +0 -131
  467. package/components/MazSelect.mjs +0 -4
  468. package/components/MazSlider.d.ts +0 -112
  469. package/components/MazSlider.mjs +0 -271
  470. package/components/MazSpinner.d.ts +0 -16
  471. package/components/MazSpinner.mjs +0 -38
  472. package/components/MazStepper.d.ts +0 -65
  473. package/components/MazStepper.mjs +0 -4
  474. package/components/MazSwitch.d.ts +0 -68
  475. package/components/MazSwitch.mjs +0 -107
  476. package/components/MazTable.d.ts +0 -231
  477. package/components/MazTable.mjs +0 -5
  478. package/components/MazTableCell.d.ts +0 -17
  479. package/components/MazTableCell.mjs +0 -32
  480. package/components/MazTableRow.d.ts +0 -21
  481. package/components/MazTableRow.mjs +0 -39
  482. package/components/MazTableTitle.d.ts +0 -17
  483. package/components/MazTableTitle.mjs +0 -32
  484. package/components/MazTabs.d.ts +0 -30
  485. package/components/MazTabs.mjs +0 -28
  486. package/components/MazTabsBar.d.ts +0 -73
  487. package/components/MazTabsBar.mjs +0 -4
  488. package/components/MazTabsContent.d.ts +0 -17
  489. package/components/MazTabsContent.mjs +0 -44
  490. package/components/MazTabsContentItem.d.ts +0 -29
  491. package/components/MazTabsContentItem.mjs +0 -59
  492. package/components/MazTextarea.d.ts +0 -91
  493. package/components/MazTextarea.mjs +0 -201
  494. package/components/MazTransitionExpand.d.ts +0 -23
  495. package/components/MazTransitionExpand.mjs +0 -51
  496. package/components/assets/MazAccordion.DHZxplwt.css +0 -1
  497. package/components/assets/MazAnimatedCounter.DTzaNX_Y.css +0 -1
  498. package/components/assets/MazAnimatedElement.BkcmWrHr.css +0 -1
  499. package/components/assets/MazAnimatedText.B91Kt1PP.css +0 -1
  500. package/components/assets/MazAvatar.CgztJYCP.css +0 -1
  501. package/components/assets/MazBackdrop.DPLKrrH6.css +0 -1
  502. package/components/assets/MazBadge.CIY0hr5U.css +0 -1
  503. package/components/assets/MazBottomSheet.BaTeNHYH.css +0 -1
  504. package/components/assets/MazBtn.DRGAvMws.css +0 -1
  505. package/components/assets/MazCard.BVy6g9-V.css +0 -1
  506. package/components/assets/MazCardSpotlight.CrcVk5S1.css +0 -1
  507. package/components/assets/MazCarousel.Bo1M1Wh3.css +0 -1
  508. package/components/assets/MazCheckbox.CA7GJd2c.css +0 -1
  509. package/components/assets/MazChecklist.B4K89N7e.css +0 -1
  510. package/components/assets/MazCircularProgressBar.Cq-jEps6.css +0 -1
  511. package/components/assets/MazDialog.BD4tQQQl.css +0 -1
  512. package/components/assets/MazDialogPromise.BD4tQQQl.css +0 -1
  513. package/components/assets/MazDrawer.BdI1nBQ8.css +0 -1
  514. package/components/assets/MazExpandAnimation.iDSQfAB4.css +0 -1
  515. package/components/assets/MazFullscreenLoader.dL5SG0Ne.css +0 -1
  516. package/components/assets/MazGallery.CKpPdxL0.css +0 -1
  517. package/components/assets/MazInput.BAiQiFTc.css +0 -1
  518. package/components/assets/MazInputCode.DF9-aY4y.css +0 -1
  519. package/components/assets/MazInputNumber.fr4Y-AX1.css +0 -1
  520. package/components/assets/MazInputPrice.BAiQiFTc.css +0 -1
  521. package/components/assets/MazInputTags.CZgq4l94.css +0 -1
  522. package/components/assets/MazLazyImg.TL9A0G4-.css +0 -1
  523. package/components/assets/MazLink.BBYMGbI8.css +0 -1
  524. package/components/assets/MazLoadingBar.ByRp5OgY.css +0 -1
  525. package/components/assets/MazPagination.BGhtdKHn.css +0 -1
  526. package/components/assets/MazPhoneNumberInput.tFz9umj-.css +0 -1
  527. package/components/assets/MazPicker.DMFpwla9.css +0 -1
  528. package/components/assets/MazPullToRefresh.Bvm1bmiW.css +0 -1
  529. package/components/assets/MazRadio.El2ThGGg.css +0 -1
  530. package/components/assets/MazRadioButtons.CB6qMCtm.css +0 -1
  531. package/components/assets/MazReadingProgressBar.C4x7V-Bc.css +0 -1
  532. package/components/assets/MazSelect.DNrj4_e-.css +0 -1
  533. package/components/assets/MazSelect.KhiI70iv.css +0 -1
  534. package/components/assets/MazSlider.Dlk7nygF.css +0 -1
  535. package/components/assets/MazSpinner.DQ9_cbMH.css +0 -1
  536. package/components/assets/MazStepper.BbJJgs0b.css +0 -1
  537. package/components/assets/MazTable.zJ2YXDrE.css +0 -1
  538. package/components/assets/MazTableCell.BKBZEOQb.css +0 -1
  539. package/components/assets/MazTableCell.Bmbmz3CR.css +0 -1
  540. package/components/assets/MazTableRow.CEdLSgbg.css +0 -1
  541. package/components/assets/MazTableRow.CtZjgh-L.css +0 -1
  542. package/components/assets/MazTableTitle.DCRVBhuH.css +0 -1
  543. package/components/assets/MazTabsBar.yIJ7lCu6.css +0 -1
  544. package/components/assets/MazTabsContentItem.CIoBhqeU.css +0 -1
  545. package/components/assets/MazTextarea.BYPQCeL_.css +0 -1
  546. package/components/assets/MazTransitionExpand.CvCjUYCg.css +0 -1
  547. package/components/chunks/MazAvatar.CNx-fB-w.mjs +0 -154
  548. package/components/chunks/MazBadge.AdlIDWRs.mjs +0 -34
  549. package/components/chunks/MazBottomSheet.CgosU2oQ.mjs +0 -224
  550. package/components/chunks/MazBtn.1qp5aQ4N.mjs +0 -103
  551. package/components/chunks/MazBtn.B6UiTgcv.mjs +0 -103
  552. package/components/chunks/MazBtn.BAflMoEe.mjs +0 -103
  553. package/components/chunks/MazBtn.BE40HJng.mjs +0 -103
  554. package/components/chunks/MazBtn.BJh0vN8h.mjs +0 -103
  555. package/components/chunks/MazBtn.BcPKpdoJ.mjs +0 -103
  556. package/components/chunks/MazBtn.BsXkp99v.mjs +0 -103
  557. package/components/chunks/MazBtn.C6vJDOgv.mjs +0 -103
  558. package/components/chunks/MazBtn.CJYzU-Jj.mjs +0 -103
  559. package/components/chunks/MazBtn.CQ7scMZT.mjs +0 -108
  560. package/components/chunks/MazBtn.CtfRyE0d.mjs +0 -103
  561. package/components/chunks/MazBtn.DWNPohkh.mjs +0 -103
  562. package/components/chunks/MazBtn.NVrWAz8O.mjs +0 -103
  563. package/components/chunks/MazBtn.h5GSnFKe.mjs +0 -103
  564. package/components/chunks/MazCard.D4R5VJTH.mjs +0 -204
  565. package/components/chunks/MazCarousel.tT2IPWU9.mjs +0 -128
  566. package/components/chunks/MazCheckbox.CYeDQcMp.mjs +0 -150
  567. package/components/chunks/MazCheckbox.L0nhQFjM.mjs +0 -149
  568. package/components/chunks/MazCheckbox.UAnkvAoS.mjs +0 -149
  569. package/components/chunks/MazChecklist.CCPcVVKg.mjs +0 -478
  570. package/components/chunks/MazDialog.OnoOcvOM.mjs +0 -297
  571. package/components/chunks/MazDialogPromise.DslEyrLO.mjs +0 -551
  572. package/components/chunks/MazDrawer.D3JH9lqE.mjs +0 -226
  573. package/components/chunks/MazDropdown.CDW3gyaa.mjs +0 -427
  574. package/components/chunks/MazDropzone.BWN0kCz3.mjs +0 -222
  575. package/components/chunks/MazExpandAnimation.NRqY0IYX.mjs +0 -54
  576. package/components/chunks/MazFullscreenLoader.Bynu3Kvu.mjs +0 -48
  577. package/components/chunks/MazGallery.2XDJQmg_.mjs +0 -687
  578. package/components/chunks/MazGallery.Ck0j45dq.mjs +0 -692
  579. package/components/chunks/MazIcon.B5KEO0Na.mjs +0 -103
  580. package/components/chunks/MazIcon.B5hPzeLk.mjs +0 -103
  581. package/components/chunks/MazIcon.BfRXZ8qh.mjs +0 -4
  582. package/components/chunks/MazIcon.Cq1v4J3r.mjs +0 -108
  583. package/components/chunks/MazInput.5Zn7f5zz.mjs +0 -302
  584. package/components/chunks/MazInput.CwPPyy_i.mjs +0 -303
  585. package/components/chunks/MazInput.JrNzZZLk.mjs +0 -313
  586. package/components/chunks/MazInputNumber.Daeit65q.mjs +0 -589
  587. package/components/chunks/MazInputPrice.24GEm_Lg.mjs +0 -447
  588. package/components/chunks/MazInputTags.0Z_xEZiL.mjs +0 -602
  589. package/components/chunks/MazLazyImg.BtE4rUvl.mjs +0 -261
  590. package/components/chunks/MazLazyImg.CC9acnrW.mjs +0 -266
  591. package/components/chunks/MazLink.C92ctqOA.mjs +0 -67
  592. package/components/chunks/MazLoadingBar.LkmX0AHd.mjs +0 -36
  593. package/components/chunks/MazPagination.DgR9Wyv0.mjs +0 -327
  594. package/components/chunks/MazPhoneNumberInput.BcyaW-S8.mjs +0 -1803
  595. package/components/chunks/MazPicker.SL-MdmD5.mjs +0 -2752
  596. package/components/chunks/MazPullToRefresh.QikB7FQT.mjs +0 -182
  597. package/components/chunks/MazSelect.CZ8-FJbx.mjs +0 -551
  598. package/components/chunks/MazSelect.ke0PdTcU.mjs +0 -857
  599. package/components/chunks/MazSpinner.B2KPFXAm.mjs +0 -34
  600. package/components/chunks/MazSpinner.B4nEYwaU.mjs +0 -34
  601. package/components/chunks/MazSpinner.B8L6EKV9.mjs +0 -34
  602. package/components/chunks/MazSpinner.B9a2gCP3.mjs +0 -34
  603. package/components/chunks/MazSpinner.BabK9PkN.mjs +0 -34
  604. package/components/chunks/MazSpinner.CBjYZ4KZ.mjs +0 -34
  605. package/components/chunks/MazSpinner.CPsKUg_o.mjs +0 -34
  606. package/components/chunks/MazSpinner.CXGURuw3.mjs +0 -34
  607. package/components/chunks/MazSpinner.C_i8HP1F.mjs +0 -34
  608. package/components/chunks/MazSpinner.Ce_9sxU7.mjs +0 -34
  609. package/components/chunks/MazSpinner.CmN9GG-h.mjs +0 -34
  610. package/components/chunks/MazSpinner.DJGs9ccb.mjs +0 -34
  611. package/components/chunks/MazSpinner.DMR3wKqs.mjs +0 -34
  612. package/components/chunks/MazSpinner.DP7ZDo4s.mjs +0 -34
  613. package/components/chunks/MazSpinner.DZT5jj-c.mjs +0 -34
  614. package/components/chunks/MazSpinner.DaGCwMP7.mjs +0 -34
  615. package/components/chunks/MazSpinner.DdHpWoUe.mjs +0 -34
  616. package/components/chunks/MazSpinner.Dl1PcqAK.mjs +0 -34
  617. package/components/chunks/MazSpinner.DnMH7xjZ.mjs +0 -34
  618. package/components/chunks/MazSpinner.DsiBNRdi.mjs +0 -34
  619. package/components/chunks/MazSpinner.J9PGgQcA.mjs +0 -34
  620. package/components/chunks/MazSpinner.KYBb2I3W.mjs +0 -34
  621. package/components/chunks/MazSpinner.u38Xp-ls.mjs +0 -34
  622. package/components/chunks/MazSpinner.wdUeBhfS.mjs +0 -34
  623. package/components/chunks/MazStepper.Gxu3fyI5.mjs +0 -218
  624. package/components/chunks/MazTable.BtL5to1U.mjs +0 -657
  625. package/components/chunks/MazTableCell.CN6g3CD7.mjs +0 -23
  626. package/components/chunks/MazTableRow.BjoUmiPj.mjs +0 -30
  627. package/components/chunks/MazTableTitle.Dh-2buat.mjs +0 -23
  628. package/components/chunks/MazTabsBar.fmCbDhYh.mjs +0 -177
  629. package/components/chunks/MazTransitionExpand.DL0tmQvU.mjs +0 -47
  630. package/components/chunks/arrow-top-right-on-square.jPmYJ34F.mjs +0 -30
  631. package/components/chunks/arrow-up.DjSlktWl.mjs +0 -30
  632. package/components/chunks/check-circle.Bf7AGSQ-.mjs +0 -30
  633. package/components/chunks/check.BmubdHc_.mjs +0 -30
  634. package/components/chunks/check.C9Q_W85g.mjs +0 -30
  635. package/components/chunks/chevron-double-left.D4-NpyrF.mjs +0 -30
  636. package/components/chunks/chevron-down.BkvtON3b.mjs +0 -30
  637. package/components/chunks/chevron-left.BqVOLRdC.mjs +0 -30
  638. package/components/chunks/chevron-right.CbjzEeHV.mjs +0 -30
  639. package/components/chunks/ellipsis-horizontal.6n158ATI.mjs +0 -30
  640. package/components/chunks/exclamation-circle.CUk0ZajS.mjs +0 -30
  641. package/components/chunks/exclamation-triangle.Z6d0ygp8.mjs +0 -30
  642. package/components/chunks/eye-slash.BoO00xzs.mjs +0 -30
  643. package/components/chunks/eye.f8zAUc30.mjs +0 -43
  644. package/components/chunks/inject-strict.DEDSuzCz.mjs +0 -10
  645. package/components/chunks/magnifying-glass.-nBiyXot.mjs +0 -30
  646. package/components/chunks/no-photography.PGT8fxs_.mjs +0 -36
  647. package/components/chunks/no-symbol.CIgKzsrB.mjs +0 -30
  648. package/components/chunks/pencil.Z-mPplOz.mjs +0 -30
  649. package/components/chunks/useInstanceUniqId.BkOfxhk8.mjs +0 -10
  650. package/components/chunks/x-mark.CnZwVvA7.mjs +0 -30
  651. package/components/index.d.ts +0 -56
  652. package/components/index.mjs +0 -58
  653. package/components/types.d.ts +0 -20
  654. package/css/aos.css +0 -1
  655. package/css/main.css +0 -1
  656. package/icons/academic-cap.svg +0 -3
  657. package/icons/adjustments-horizontal.svg +0 -3
  658. package/icons/adjustments-vertical.svg +0 -3
  659. package/icons/archive-box-arrow-down.svg +0 -3
  660. package/icons/archive-box-x-mark.svg +0 -3
  661. package/icons/archive-box.svg +0 -3
  662. package/icons/arrow-down-circle.svg +0 -3
  663. package/icons/arrow-down-left.svg +0 -3
  664. package/icons/arrow-down-on-square-stack.svg +0 -3
  665. package/icons/arrow-down-on-square.svg +0 -3
  666. package/icons/arrow-down-right.svg +0 -3
  667. package/icons/arrow-down-tray.svg +0 -3
  668. package/icons/arrow-down.svg +0 -3
  669. package/icons/arrow-left-circle.svg +0 -3
  670. package/icons/arrow-left-end-on-rectangle.svg +0 -3
  671. package/icons/arrow-left-on-rectangle.svg +0 -3
  672. package/icons/arrow-left-start-on-rectangle.svg +0 -3
  673. package/icons/arrow-left.svg +0 -3
  674. package/icons/arrow-long-down.svg +0 -3
  675. package/icons/arrow-long-left.svg +0 -3
  676. package/icons/arrow-long-right.svg +0 -3
  677. package/icons/arrow-long-up.svg +0 -3
  678. package/icons/arrow-path-rounded-square.svg +0 -3
  679. package/icons/arrow-path.svg +0 -3
  680. package/icons/arrow-right-circle.svg +0 -3
  681. package/icons/arrow-right-end-on-rectangle.svg +0 -3
  682. package/icons/arrow-right-on-rectangle.svg +0 -3
  683. package/icons/arrow-right-start-on-rectangle.svg +0 -3
  684. package/icons/arrow-right.svg +0 -3
  685. package/icons/arrow-small-down.svg +0 -3
  686. package/icons/arrow-small-left.svg +0 -3
  687. package/icons/arrow-small-right.svg +0 -3
  688. package/icons/arrow-small-up.svg +0 -3
  689. package/icons/arrow-top-right-on-square.svg +0 -3
  690. package/icons/arrow-trending-down.svg +0 -3
  691. package/icons/arrow-trending-up.svg +0 -3
  692. package/icons/arrow-up-circle.svg +0 -3
  693. package/icons/arrow-up-left.svg +0 -3
  694. package/icons/arrow-up-on-square-stack.svg +0 -3
  695. package/icons/arrow-up-on-square.svg +0 -3
  696. package/icons/arrow-up-right.svg +0 -3
  697. package/icons/arrow-up-tray.svg +0 -3
  698. package/icons/arrow-up.svg +0 -3
  699. package/icons/arrow-uturn-down.svg +0 -3
  700. package/icons/arrow-uturn-left.svg +0 -3
  701. package/icons/arrow-uturn-right.svg +0 -3
  702. package/icons/arrow-uturn-up.svg +0 -3
  703. package/icons/arrows-pointing-in.svg +0 -3
  704. package/icons/arrows-pointing-out.svg +0 -3
  705. package/icons/arrows-right-left.svg +0 -3
  706. package/icons/arrows-up-down.svg +0 -3
  707. package/icons/at-symbol.svg +0 -3
  708. package/icons/backspace.svg +0 -3
  709. package/icons/backward.svg +0 -4
  710. package/icons/banknotes.svg +0 -3
  711. package/icons/bars-2.svg +0 -3
  712. package/icons/bars-3-bottom-left.svg +0 -3
  713. package/icons/bars-3-bottom-right.svg +0 -3
  714. package/icons/bars-3-center-left.svg +0 -3
  715. package/icons/bars-3.svg +0 -3
  716. package/icons/bars-4.svg +0 -3
  717. package/icons/bars-arrow-down.svg +0 -3
  718. package/icons/bars-arrow-up.svg +0 -3
  719. package/icons/battery-0.svg +0 -3
  720. package/icons/battery-100.svg +0 -3
  721. package/icons/battery-50.svg +0 -3
  722. package/icons/beaker.svg +0 -3
  723. package/icons/bell-alert.svg +0 -3
  724. package/icons/bell-slash.svg +0 -3
  725. package/icons/bell-snooze.svg +0 -3
  726. package/icons/bell.svg +0 -3
  727. package/icons/bolt-slash.svg +0 -3
  728. package/icons/bolt.svg +0 -3
  729. package/icons/book-open.svg +0 -3
  730. package/icons/bookmark-slash.svg +0 -3
  731. package/icons/bookmark-square.svg +0 -3
  732. package/icons/bookmark.svg +0 -3
  733. package/icons/briefcase.svg +0 -3
  734. package/icons/bug-ant.svg +0 -3
  735. package/icons/building-library.svg +0 -3
  736. package/icons/building-office-2.svg +0 -3
  737. package/icons/building-office.svg +0 -3
  738. package/icons/building-storefront.svg +0 -3
  739. package/icons/cake.svg +0 -3
  740. package/icons/calculator.svg +0 -3
  741. package/icons/calendar-days.svg +0 -3
  742. package/icons/calendar.svg +0 -3
  743. package/icons/camera.svg +0 -5
  744. package/icons/chart-bar-square.svg +0 -3
  745. package/icons/chart-bar.svg +0 -5
  746. package/icons/chart-pie.svg +0 -4
  747. package/icons/chat-bubble-bottom-center-text.svg +0 -3
  748. package/icons/chat-bubble-bottom-center.svg +0 -3
  749. package/icons/chat-bubble-left-ellipsis.svg +0 -3
  750. package/icons/chat-bubble-left-right.svg +0 -3
  751. package/icons/chat-bubble-left.svg +0 -3
  752. package/icons/chat-bubble-oval-left-ellipsis.svg +0 -3
  753. package/icons/chat-bubble-oval-left.svg +0 -3
  754. package/icons/check-badge.svg +0 -3
  755. package/icons/check-circle.svg +0 -3
  756. package/icons/check.svg +0 -3
  757. package/icons/chevron-double-down.svg +0 -3
  758. package/icons/chevron-double-left.svg +0 -3
  759. package/icons/chevron-double-right.svg +0 -3
  760. package/icons/chevron-double-up.svg +0 -4
  761. package/icons/chevron-down.svg +0 -3
  762. package/icons/chevron-left.svg +0 -3
  763. package/icons/chevron-right.svg +0 -3
  764. package/icons/chevron-up-down.svg +0 -3
  765. package/icons/chevron-up.svg +0 -3
  766. package/icons/circle-stack.svg +0 -3
  767. package/icons/clipboard-document-check.svg +0 -3
  768. package/icons/clipboard-document-list.svg +0 -3
  769. package/icons/clipboard-document.svg +0 -3
  770. package/icons/clipboard.svg +0 -3
  771. package/icons/clock.svg +0 -3
  772. package/icons/cloud-arrow-down.svg +0 -3
  773. package/icons/cloud-arrow-up.svg +0 -3
  774. package/icons/cloud.svg +0 -3
  775. package/icons/code-bracket-square.svg +0 -3
  776. package/icons/code-bracket.svg +0 -3
  777. package/icons/cog-6-tooth.svg +0 -4
  778. package/icons/cog-8-tooth.svg +0 -4
  779. package/icons/cog.svg +0 -3
  780. package/icons/command-line.svg +0 -3
  781. package/icons/computer-desktop.svg +0 -3
  782. package/icons/cpu-chip.svg +0 -3
  783. package/icons/credit-card.svg +0 -3
  784. package/icons/cube-transparent.svg +0 -3
  785. package/icons/cube.svg +0 -3
  786. package/icons/currency-bangladeshi.svg +0 -3
  787. package/icons/currency-dollar.svg +0 -3
  788. package/icons/currency-euro.svg +0 -3
  789. package/icons/currency-pound.svg +0 -3
  790. package/icons/currency-rupee.svg +0 -3
  791. package/icons/currency-yen.svg +0 -3
  792. package/icons/cursor-arrow-rays.svg +0 -3
  793. package/icons/cursor-arrow-ripple.svg +0 -3
  794. package/icons/device-phone-mobile.svg +0 -3
  795. package/icons/device-tablet.svg +0 -3
  796. package/icons/document-arrow-down.svg +0 -3
  797. package/icons/document-arrow-up.svg +0 -3
  798. package/icons/document-chart-bar.svg +0 -3
  799. package/icons/document-check.svg +0 -3
  800. package/icons/document-duplicate.svg +0 -3
  801. package/icons/document-magnifying-glass.svg +0 -3
  802. package/icons/document-minus.svg +0 -3
  803. package/icons/document-plus.svg +0 -3
  804. package/icons/document-text.svg +0 -3
  805. package/icons/document.svg +0 -3
  806. package/icons/ellipsis-horizontal-circle.svg +0 -3
  807. package/icons/ellipsis-horizontal.svg +0 -5
  808. package/icons/ellipsis-vertical.svg +0 -5
  809. package/icons/envelope-open.svg +0 -3
  810. package/icons/envelope.svg +0 -3
  811. package/icons/exclamation-circle.svg +0 -3
  812. package/icons/exclamation-triangle.svg +0 -3
  813. package/icons/eye-dropper.svg +0 -3
  814. package/icons/eye-slash.svg +0 -3
  815. package/icons/eye.svg +0 -4
  816. package/icons/face-frown.svg +0 -3
  817. package/icons/face-smile.svg +0 -3
  818. package/icons/film.svg +0 -3
  819. package/icons/finger-print.svg +0 -3
  820. package/icons/fire.svg +0 -4
  821. package/icons/flag.svg +0 -3
  822. package/icons/folder-arrow-down.svg +0 -3
  823. package/icons/folder-minus.svg +0 -3
  824. package/icons/folder-open.svg +0 -3
  825. package/icons/folder-plus.svg +0 -3
  826. package/icons/folder.svg +0 -3
  827. package/icons/fork.svg +0 -6
  828. package/icons/forward.svg +0 -4
  829. package/icons/funnel.svg +0 -3
  830. package/icons/gif.svg +0 -3
  831. package/icons/gift-top.svg +0 -3
  832. package/icons/gift.svg +0 -3
  833. package/icons/github.svg +0 -5
  834. package/icons/globe-alt.svg +0 -3
  835. package/icons/globe-americas.svg +0 -3
  836. package/icons/globe-asia-australia.svg +0 -3
  837. package/icons/globe-europe-africa.svg +0 -3
  838. package/icons/hand-raised.svg +0 -3
  839. package/icons/hand-thumb-down.svg +0 -3
  840. package/icons/hand-thumb-up.svg +0 -3
  841. package/icons/hashtag.svg +0 -3
  842. package/icons/heart.svg +0 -3
  843. package/icons/home-modern.svg +0 -3
  844. package/icons/home.svg +0 -3
  845. package/icons/identification.svg +0 -3
  846. package/icons/inbox-arrow-down.svg +0 -3
  847. package/icons/inbox-stack.svg +0 -3
  848. package/icons/inbox.svg +0 -3
  849. package/icons/information-circle.svg +0 -3
  850. package/icons/key.svg +0 -3
  851. package/icons/language.svg +0 -3
  852. package/icons/lifebuoy.svg +0 -3
  853. package/icons/light-bulb.svg +0 -3
  854. package/icons/link.svg +0 -3
  855. package/icons/list-bullet.svg +0 -3
  856. package/icons/lock-closed.svg +0 -3
  857. package/icons/lock-open.svg +0 -3
  858. package/icons/magnifying-glass-circle.svg +0 -3
  859. package/icons/magnifying-glass-minus.svg +0 -3
  860. package/icons/magnifying-glass-plus.svg +0 -3
  861. package/icons/magnifying-glass.svg +0 -3
  862. package/icons/map-pin.svg +0 -4
  863. package/icons/map.svg +0 -3
  864. package/icons/megaphone.svg +0 -3
  865. package/icons/microphone.svg +0 -3
  866. package/icons/minus-circle.svg +0 -3
  867. package/icons/minus-small.svg +0 -3
  868. package/icons/minus.svg +0 -3
  869. package/icons/moon.svg +0 -3
  870. package/icons/musical-note.svg +0 -3
  871. package/icons/newspaper.svg +0 -3
  872. package/icons/no-photography.svg +0 -10
  873. package/icons/no-symbol.svg +0 -3
  874. package/icons/paint-brush.svg +0 -3
  875. package/icons/paper-airplane.svg +0 -3
  876. package/icons/paper-clip.svg +0 -3
  877. package/icons/pause-circle.svg +0 -3
  878. package/icons/pause.svg +0 -3
  879. package/icons/pencil-square.svg +0 -3
  880. package/icons/pencil.svg +0 -3
  881. package/icons/phone-arrow-down-left.svg +0 -3
  882. package/icons/phone-arrow-up-right.svg +0 -3
  883. package/icons/phone-x-mark.svg +0 -3
  884. package/icons/phone.svg +0 -3
  885. package/icons/photo.svg +0 -3
  886. package/icons/play-circle.svg +0 -4
  887. package/icons/play-pause.svg +0 -3
  888. package/icons/play.svg +0 -3
  889. package/icons/plus-circle.svg +0 -3
  890. package/icons/plus-small.svg +0 -3
  891. package/icons/plus.svg +0 -3
  892. package/icons/power.svg +0 -3
  893. package/icons/presentation-chart-bar.svg +0 -3
  894. package/icons/presentation-chart-line.svg +0 -3
  895. package/icons/printer.svg +0 -3
  896. package/icons/puzzle-piece.svg +0 -3
  897. package/icons/qr-code.svg +0 -13
  898. package/icons/question-mark-circle.svg +0 -3
  899. package/icons/queue-list.svg +0 -3
  900. package/icons/radio.svg +0 -3
  901. package/icons/receipt-percent.svg +0 -3
  902. package/icons/receipt-refund.svg +0 -3
  903. package/icons/rectangle-group.svg +0 -5
  904. package/icons/rectangle-stack.svg +0 -3
  905. package/icons/rocket-launch.svg +0 -3
  906. package/icons/rss.svg +0 -3
  907. package/icons/scale.svg +0 -3
  908. package/icons/scissors.svg +0 -3
  909. package/icons/server-stack.svg +0 -3
  910. package/icons/server.svg +0 -3
  911. package/icons/share.svg +0 -3
  912. package/icons/shield-check.svg +0 -3
  913. package/icons/shield-exclamation.svg +0 -3
  914. package/icons/shopping-bag.svg +0 -3
  915. package/icons/shopping-cart.svg +0 -3
  916. package/icons/signal-slash.svg +0 -3
  917. package/icons/signal.svg +0 -3
  918. package/icons/sparkles.svg +0 -5
  919. package/icons/speaker-wave.svg +0 -3
  920. package/icons/speaker-x-mark.svg +0 -3
  921. package/icons/square-2-stack.svg +0 -3
  922. package/icons/square-3-stack-3d.svg +0 -3
  923. package/icons/squares-2x2.svg +0 -6
  924. package/icons/squares-plus.svg +0 -3
  925. package/icons/star-solid.svg +0 -3
  926. package/icons/star.svg +0 -3
  927. package/icons/stop-circle.svg +0 -4
  928. package/icons/stop.svg +0 -3
  929. package/icons/sun.svg +0 -3
  930. package/icons/swatch.svg +0 -3
  931. package/icons/table-cells.svg +0 -3
  932. package/icons/tag.svg +0 -4
  933. package/icons/ticket.svg +0 -3
  934. package/icons/trash.svg +0 -3
  935. package/icons/trophy.svg +0 -3
  936. package/icons/truck.svg +0 -3
  937. package/icons/tv.svg +0 -3
  938. package/icons/user-circle.svg +0 -3
  939. package/icons/user-group.svg +0 -3
  940. package/icons/user-minus.svg +0 -3
  941. package/icons/user-plus.svg +0 -3
  942. package/icons/user.svg +0 -4
  943. package/icons/users.svg +0 -3
  944. package/icons/variable.svg +0 -3
  945. package/icons/video-camera-slash.svg +0 -3
  946. package/icons/video-camera.svg +0 -3
  947. package/icons/view-columns.svg +0 -3
  948. package/icons/viewfinder-circle.svg +0 -3
  949. package/icons/wallet.svg +0 -3
  950. package/icons/wifi.svg +0 -3
  951. package/icons/window.svg +0 -3
  952. package/icons/wrench-screwdriver.svg +0 -3
  953. package/icons/wrench.svg +0 -4
  954. package/icons/x-circle.svg +0 -3
  955. package/icons/x-mark.svg +0 -3
  956. package/modules/assets/MazBtn.DRGAvMws.css +0 -1
  957. package/modules/assets/MazSpinner.DQ9_cbMH.css +0 -1
  958. package/modules/assets/index.B3s7AfaL.css +0 -1
  959. package/modules/chunks/MazBtn.By2sbdh8.cjs +0 -1
  960. package/modules/chunks/MazBtn.CA5moYsw.mjs +0 -103
  961. package/modules/chunks/MazIcon.B0hxYaF0.cjs +0 -1
  962. package/modules/chunks/MazIcon.DBGqW7oS.mjs +0 -103
  963. package/modules/chunks/MazSpinner.Ci076Hb-.cjs +0 -1
  964. package/modules/chunks/MazSpinner.Cx7mdOJ3.mjs +0 -34
  965. package/modules/chunks/arrow-top-right-on-square.PZtr8Zs0.cjs +0 -1
  966. package/modules/chunks/arrow-top-right-on-square.jPmYJ34F.mjs +0 -30
  967. package/modules/chunks/check-circle.Bf7AGSQ-.mjs +0 -30
  968. package/modules/chunks/check-circle.D3i-p-t3.cjs +0 -1
  969. package/modules/chunks/chevron-left.BqVOLRdC.mjs +0 -30
  970. package/modules/chunks/chevron-left.Byr9GkwI.cjs +0 -1
  971. package/modules/chunks/exclamation-circle.BXs0Yj0f.cjs +0 -1
  972. package/modules/chunks/exclamation-circle.CUk0ZajS.mjs +0 -30
  973. package/modules/chunks/exclamation-triangle.BtW3be9S.cjs +0 -1
  974. package/modules/chunks/exclamation-triangle.Z6d0ygp8.mjs +0 -30
  975. package/modules/chunks/index.BgyjI1q8.mjs +0 -4299
  976. package/modules/chunks/index.CXVZhyjw.cjs +0 -1
  977. package/modules/chunks/index.CnuH12oV.cjs +0 -124
  978. package/modules/chunks/index.DfFhxzWz.mjs +0 -3762
  979. package/modules/chunks/information-circle.89FseEuJ.cjs +0 -1
  980. package/modules/chunks/information-circle.C7e5b_nL.mjs +0 -30
  981. package/modules/chunks/link.Br1lfjTR.mjs +0 -30
  982. package/modules/chunks/link.CUxj8BQ5.cjs +0 -1
  983. package/modules/chunks/no-photography.BJX8HSus.mjs +0 -4
  984. package/modules/chunks/no-photography.CLNgmzDi.cjs +0 -1
  985. package/modules/chunks/x-mark.CnZwVvA7.mjs +0 -30
  986. package/modules/chunks/x-mark.DW2WXkoF.cjs +0 -1
  987. package/modules/index.cjs +0 -1
  988. package/modules/index.mjs +0 -64
  989. package/nuxt/index.cjs +0 -5
  990. package/nuxt/index.d.mts +0 -157
  991. package/nuxt/index.d.ts +0 -157
  992. package/nuxt/index.json +0 -12
  993. package/nuxt/index.mjs +0 -294
  994. package/nuxt/runtime/composables/useAos.d.ts +0 -2
  995. package/nuxt/runtime/composables/useAos.js +0 -5
  996. package/nuxt/runtime/composables/useDialog.d.ts +0 -2
  997. package/nuxt/runtime/composables/useDialog.js +0 -5
  998. package/nuxt/runtime/composables/useThemeHandler.d.ts +0 -2
  999. package/nuxt/runtime/composables/useThemeHandler.js +0 -8
  1000. package/nuxt/runtime/composables/useToast.d.ts +0 -2
  1001. package/nuxt/runtime/composables/useToast.js +0 -5
  1002. package/nuxt/runtime/composables/useWait.d.ts +0 -2
  1003. package/nuxt/runtime/composables/useWait.js +0 -5
  1004. package/nuxt/runtime/plugins/aos.d.ts +0 -8
  1005. package/nuxt/runtime/plugins/aos.js +0 -12
  1006. package/nuxt/runtime/plugins/dialog.d.ts +0 -8
  1007. package/nuxt/runtime/plugins/dialog.js +0 -23
  1008. package/nuxt/runtime/plugins/maz-icon-path.d.ts +0 -7
  1009. package/nuxt/runtime/plugins/maz-icon-path.js +0 -10
  1010. package/nuxt/runtime/plugins/toaster.d.ts +0 -8
  1011. package/nuxt/runtime/plugins/toaster.js +0 -26
  1012. package/nuxt/runtime/plugins/v-click-outside.d.ts +0 -2
  1013. package/nuxt/runtime/plugins/v-click-outside.js +0 -5
  1014. package/nuxt/runtime/plugins/v-fullscreen-img.d.ts +0 -2
  1015. package/nuxt/runtime/plugins/v-fullscreen-img.js +0 -5
  1016. package/nuxt/runtime/plugins/v-lazy-img.d.ts +0 -2
  1017. package/nuxt/runtime/plugins/v-lazy-img.js +0 -7
  1018. package/nuxt/runtime/plugins/v-tooltip.d.ts +0 -2
  1019. package/nuxt/runtime/plugins/v-tooltip.js +0 -7
  1020. package/nuxt/runtime/plugins/v-zoom-img.d.ts +0 -2
  1021. package/nuxt/runtime/plugins/v-zoom-img.js +0 -5
  1022. package/nuxt/runtime/plugins/wait.d.ts +0 -8
  1023. package/nuxt/runtime/plugins/wait.js +0 -18
  1024. package/nuxt/types.d.mts +0 -7
  1025. package/nuxt/types.d.ts +0 -7
  1026. package/resolvers/index.cjs +0 -1
  1027. package/resolvers/index.d.ts +0 -3
  1028. package/resolvers/index.mjs +0 -72
  1029. package/resolvers/unplugin-directives-resolver.d.ts +0 -8
  1030. package/resolvers/unplugin-modules-resolver.d.ts +0 -2
  1031. package/resolvers/unplugin-vue-components-resolver.d.ts +0 -8
  1032. package/tailwindcss/tailwind.config.ts +0 -51
  1033. package/tailwindcss/tailwind.css +0 -4
  1034. package/tailwindcss/utils/colors.ts +0 -27
  1035. package/tailwindcss/variables/breakpoints.ts +0 -28
  1036. package/tailwindcss/variables/colors.ts +0 -50
  1037. package/tailwindcss/variables/utilities.ts +0 -24
  1038. package/tailwindcss/variables/z-indexes.ts +0 -16
  1039. package/types/components/MazAccordion.vue.d.ts +0 -36
  1040. package/types/components/MazAnimatedCounter.vue.d.ts +0 -57
  1041. package/types/components/MazAnimatedElement.vue.d.ts +0 -42
  1042. package/types/components/MazAnimatedText.vue.d.ts +0 -55
  1043. package/types/components/MazAvatar.vue.d.ts +0 -102
  1044. package/types/components/MazBackdrop.vue.d.ts +0 -71
  1045. package/types/components/MazBadge.vue.d.ts +0 -39
  1046. package/types/components/MazBottomSheet.vue.d.ts +0 -35
  1047. package/types/components/MazBtn.vue.d.ts +0 -135
  1048. package/types/components/MazCard.vue.d.ts +0 -95
  1049. package/types/components/MazCardSpotlight.vue.d.ts +0 -62
  1050. package/types/components/MazCarousel.vue.d.ts +0 -35
  1051. package/types/components/MazChart.vue.d.ts +0 -104
  1052. package/types/components/MazCheckbox.vue.d.ts +0 -58
  1053. package/types/components/MazChecklist.vue.d.ts +0 -78
  1054. package/types/components/MazCircularProgressBar.vue.d.ts +0 -115
  1055. package/types/components/MazDialog.vue.d.ts +0 -163
  1056. package/types/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -80
  1057. package/types/components/MazDialogPromise.vue.d.ts +0 -47
  1058. package/types/components/MazDrawer.vue.d.ts +0 -53
  1059. package/types/components/MazDropdown.vue.d.ts +0 -169
  1060. package/types/components/MazDropzone.vue.d.ts +0 -129
  1061. package/types/components/MazExpandAnimation.vue.d.ts +0 -42
  1062. package/types/components/MazFullscreenLoader.vue.d.ts +0 -26
  1063. package/types/components/MazGallery.vue.d.ts +0 -166
  1064. package/types/components/MazIcon.vue.d.ts +0 -80
  1065. package/types/components/MazInput.vue.d.ts +0 -123
  1066. package/types/components/MazInputCode.vue.d.ts +0 -52
  1067. package/types/components/MazInputNumber.vue.d.ts +0 -63
  1068. package/types/components/MazInputPrice.vue.d.ts +0 -63
  1069. package/types/components/MazInputTags.vue.d.ts +0 -52
  1070. package/types/components/MazLazyImg.vue.d.ts +0 -76
  1071. package/types/components/MazLink.vue.d.ts +0 -86
  1072. package/types/components/MazLoadingBar.vue.d.ts +0 -13
  1073. package/types/components/MazPagination.vue.d.ts +0 -76
  1074. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +0 -75
  1075. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +0 -19
  1076. package/types/components/MazPhoneNumberInput/default-locales.d.ts +0 -11
  1077. package/types/components/MazPhoneNumberInput/types.d.ts +0 -62
  1078. package/types/components/MazPhoneNumberInput/useLibphonenumber.d.ts +0 -26
  1079. package/types/components/MazPhoneNumberInput/useMazPhoneNumberInput.d.ts +0 -16
  1080. package/types/components/MazPhoneNumberInput.vue.d.ts +0 -246
  1081. package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +0 -138
  1082. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +0 -20
  1083. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +0 -115
  1084. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +0 -126
  1085. package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +0 -42
  1086. package/types/components/MazPicker/MazPickerContainer.vue.d.ts +0 -214
  1087. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +0 -18
  1088. package/types/components/MazPicker/MazPickerHeader.vue.d.ts +0 -82
  1089. package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +0 -44
  1090. package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +0 -62
  1091. package/types/components/MazPicker/MazPickerTime.vue.d.ts +0 -129
  1092. package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +0 -36
  1093. package/types/components/MazPicker/types.d.ts +0 -15
  1094. package/types/components/MazPicker/utils.d.ts +0 -51
  1095. package/types/components/MazPicker.vue.d.ts +0 -126
  1096. package/types/components/MazPullToRefresh.vue.d.ts +0 -53
  1097. package/types/components/MazRadio.vue.d.ts +0 -58
  1098. package/types/components/MazRadioButtons.vue.d.ts +0 -72
  1099. package/types/components/MazReadingProgressBar.vue.d.ts +0 -56
  1100. package/types/components/MazSelect.vue.d.ts +0 -131
  1101. package/types/components/MazSlider/utils.d.ts +0 -15
  1102. package/types/components/MazSlider.vue.d.ts +0 -112
  1103. package/types/components/MazSpinner.vue.d.ts +0 -16
  1104. package/types/components/MazStepper.vue.d.ts +0 -65
  1105. package/types/components/MazSwitch.vue.d.ts +0 -68
  1106. package/types/components/MazTable.vue.d.ts +0 -231
  1107. package/types/components/MazTableCell.vue.d.ts +0 -17
  1108. package/types/components/MazTableRow.vue.d.ts +0 -21
  1109. package/types/components/MazTableTitle.vue.d.ts +0 -17
  1110. package/types/components/MazTabs.vue.d.ts +0 -30
  1111. package/types/components/MazTabsBar.vue.d.ts +0 -73
  1112. package/types/components/MazTabsContent.vue.d.ts +0 -17
  1113. package/types/components/MazTabsContentItem.vue.d.ts +0 -29
  1114. package/types/components/MazTextarea/textarea-autogrow.d.ts +0 -9
  1115. package/types/components/MazTextarea.vue.d.ts +0 -91
  1116. package/types/components/MazTransitionExpand.vue.d.ts +0 -23
  1117. package/types/components/index.d.ts +0 -56
  1118. package/types/components/types.d.ts +0 -20
  1119. package/types/modules/composables/index.d.ts +0 -16
  1120. package/types/modules/composables/useAos.d.ts +0 -2
  1121. package/types/modules/composables/useBreakpoints.d.ts +0 -38
  1122. package/types/modules/composables/useDialog.d.ts +0 -2
  1123. package/types/modules/composables/useFormValidator/config.d.ts +0 -7
  1124. package/types/modules/composables/useFormValidator/index.d.ts +0 -3
  1125. package/types/modules/composables/useFormValidator/types.d.ts +0 -109
  1126. package/types/modules/composables/useFormValidator/useFormField.d.ts +0 -56
  1127. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +0 -17
  1128. package/types/modules/composables/useFormValidator/utils.d.ts +0 -116
  1129. package/types/modules/composables/useIdleTimeout.d.ts +0 -5
  1130. package/types/modules/composables/useInstanceUniqId.d.ts +0 -4
  1131. package/types/modules/composables/useLanguageDisplayNames.d.ts +0 -18
  1132. package/types/modules/composables/useReadingTime.d.ts +0 -25
  1133. package/types/modules/composables/useStringMatching.d.ts +0 -5
  1134. package/types/modules/composables/useSwipe.d.ts +0 -14
  1135. package/types/modules/composables/useThemeHandler.d.ts +0 -58
  1136. package/types/modules/composables/useTimer.d.ts +0 -29
  1137. package/types/modules/composables/useToast.d.ts +0 -2
  1138. package/types/modules/composables/useUserVisibilty.d.ts +0 -5
  1139. package/types/modules/composables/useWait.d.ts +0 -2
  1140. package/types/modules/composables/useWindowSize.d.ts +0 -32
  1141. package/types/modules/directives/click-outside.d.ts +0 -15
  1142. package/types/modules/directives/closable.d.ts +0 -18
  1143. package/types/modules/directives/index.d.ts +0 -11
  1144. package/types/modules/directives/tooltip/index.d.ts +0 -43
  1145. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +0 -47
  1146. package/types/modules/directives/v-fullscreen-img/fullscreen-img.directive.d.ts +0 -7
  1147. package/types/modules/directives/v-fullscreen-img/fullscreen-img.handler.d.ts +0 -36
  1148. package/types/modules/directives/v-fullscreen-img/index.d.ts +0 -6
  1149. package/types/modules/directives/v-lazy-img/index.d.ts +0 -6
  1150. package/types/modules/directives/v-lazy-img/lazy-img.directive.d.ts +0 -7
  1151. package/types/modules/directives/v-lazy-img/lazy-img.handler.d.ts +0 -39
  1152. package/types/modules/directives/v-lazy-img/types.d.ts +0 -35
  1153. package/types/modules/directives/v-zoom-img/index.d.ts +0 -6
  1154. package/types/modules/directives/v-zoom-img/zoom-img.directive.d.ts +0 -6
  1155. package/types/modules/directives/v-zoom-img/zoom-img.handler.d.ts +0 -46
  1156. package/types/modules/filters/index.d.ts +0 -20
  1157. package/types/modules/helpers/InferMaybeRef.d.ts +0 -2
  1158. package/types/modules/helpers/country-flag-from-flagcn.d.ts +0 -7
  1159. package/types/modules/helpers/freeze-value.d.ts +0 -5
  1160. package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +0 -29
  1161. package/types/modules/helpers/idle-timeout/index.d.ts +0 -2
  1162. package/types/modules/helpers/idle-timeout/types.d.ts +0 -29
  1163. package/types/modules/helpers/index.d.ts +0 -15
  1164. package/types/modules/helpers/inject-strict.d.ts +0 -2
  1165. package/types/modules/helpers/is-standalone-mode.d.ts +0 -1
  1166. package/types/modules/helpers/mount-component.d.ts +0 -14
  1167. package/types/modules/helpers/user-visibility/index.d.ts +0 -2
  1168. package/types/modules/helpers/user-visibility/user-visibility-handler.d.ts +0 -19
  1169. package/types/modules/index.d.ts +0 -5
  1170. package/types/modules/plugins/aos/index.d.ts +0 -36
  1171. package/types/modules/plugins/dialog/DialogHandler.d.ts +0 -15
  1172. package/types/modules/plugins/dialog/index.d.ts +0 -6
  1173. package/types/modules/plugins/toaster/MazToast.vue.d.ts +0 -37
  1174. package/types/modules/plugins/toaster/ToasterHandler.d.ts +0 -32
  1175. package/types/modules/plugins/toaster/index.d.ts +0 -9
  1176. package/types/modules/plugins/wait/index.d.ts +0 -14
  1177. package/types/resolvers/index.d.ts +0 -3
  1178. package/types/resolvers/unplugin-directives-resolver.d.ts +0 -8
  1179. package/types/resolvers/unplugin-modules-resolver.d.ts +0 -2
  1180. package/types/resolvers/unplugin-vue-components-resolver.d.ts +0 -8
  1181. package/types/tailwindcss/tailwind.config.d.ts +0 -121
  1182. package/types/tailwindcss/utils/colors.d.ts +0 -1
  1183. package/types/utils/index.d.ts +0 -3
  1184. /package/{components → dist}/assets/MazDropdown.CtzsOmDR.css +0 -0
  1185. /package/{components → dist}/assets/MazDropzone.EfEdDH2u.css +0 -0
  1186. /package/{components → dist}/assets/MazSwitch.DMLND-p2.css +0 -0
  1187. /package/{components/chunks/_plugin-vue_export-helper.CHgC5LLL.mjs → dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js} +0 -0
  1188. /package/{components/chunks/examples.mobile.json.tW3aL0qI.mjs → dist/chunks/examples.mobile.json.tW3aL0qI.js} +0 -0
  1189. /package/{components/chunks/no-photography.BJX8HSus.mjs → dist/chunks/no-photography.BJX8HSus.js} +0 -0
  1190. /package/{components/MazPhoneNumberInput → dist/types/components/MazInputPhoneNumber}/default-locales.d.ts +0 -0
  1191. /package/{components → dist/types/components}/MazPicker/types.d.ts +0 -0
  1192. /package/{components → dist/types/components}/MazSlider/utils.d.ts +0 -0
  1193. /package/{components → dist/types/components}/MazTextarea/textarea-autogrow.d.ts +0 -0
  1194. /package/{types/modules/directives/v-zoom-img → dist/types/directives/vZoomImg}/style.d.ts +0 -0
  1195. /package/{types/modules/directives/v-zoom-img → dist/types/directives/vZoomImg}/svgs.d.ts +0 -0
  1196. /package/{types/modules → dist/types}/filters/capitalize.d.ts +0 -0
  1197. /package/{types/modules → dist/types}/filters/currency.d.ts +0 -0
  1198. /package/{types/modules → dist/types}/filters/date.d.ts +0 -0
  1199. /package/{types/modules → dist/types}/filters/number.d.ts +0 -0
  1200. /package/{types/modules → dist/types}/filters/telephone.d.ts +0 -0
  1201. /package/{types/modules → dist/types}/helpers/checkAvailability.d.ts +0 -0
  1202. /package/{types/modules/helpers/country-code-to-unicode-flag.d.ts → dist/types/helpers/countryCodeToUnicodeFlag.d.ts} +0 -0
  1203. /package/{types/modules → dist/types}/helpers/debounce.d.ts +0 -0
  1204. /package/{types/modules/helpers/debounce-callback.d.ts → dist/types/helpers/debounceCallback.d.ts} +0 -0
  1205. /package/{types/modules/helpers/debounce-id.d.ts → dist/types/helpers/debounceId.d.ts} +0 -0
  1206. /package/{types/modules/helpers/is-client.d.ts → dist/types/helpers/isClient.d.ts} +0 -0
  1207. /package/{types/modules/helpers/is-equal.d.ts → dist/types/helpers/isEqual.d.ts} +0 -0
  1208. /package/{types/modules/helpers/normalize-string.d.ts → dist/types/helpers/normalizeString.d.ts} +0 -0
  1209. /package/{types/modules/helpers/script-loader.d.ts → dist/types/helpers/scriptLoader.d.ts} +0 -0
  1210. /package/{types/modules → dist/types}/helpers/sleep.d.ts +0 -0
  1211. /package/{types/modules/helpers/swipe-handler.d.ts → dist/types/helpers/swipeHandler.d.ts} +0 -0
  1212. /package/{types/modules → dist/types}/helpers/throttle.d.ts +0 -0
  1213. /package/{types/modules/helpers/throttle-id.d.ts → dist/types/helpers/throttleId.d.ts} +0 -0
  1214. /package/{types/modules/helpers/truthy-filter.d.ts → dist/types/helpers/truthyFilter.d.ts} +0 -0
  1215. /package/{types/modules/helpers/user-visibility → dist/types/helpers/userVisibility}/types.d.ts +0 -0
  1216. /package/{types/modules → dist/types}/plugins/index.d.ts +0 -0
  1217. /package/{types/modules → dist/types}/plugins/toaster/types.d.ts +0 -0
  1218. /package/{types/modules → dist/types}/plugins/wait/utils.d.ts +0 -0
  1219. /package/{types → dist/types}/tailwindcss/variables/breakpoints.d.ts +0 -0
  1220. /package/{types → dist/types}/tailwindcss/variables/colors.d.ts +0 -0
  1221. /package/{types → dist/types}/tailwindcss/variables/utilities.d.ts +0 -0
  1222. /package/{types → dist/types}/tailwindcss/variables/z-indexes.d.ts +0 -0
@@ -1,2752 +0,0 @@
1
- import { computed as $, useId as lt, nextTick as ge, openBlock as k, createElementBlock as I, createElementVNode as K, defineComponent as ne, defineAsyncComponent as De, ref as X, onMounted as Xe, useSlots as it, normalizeClass as U, normalizeStyle as Me, unref as N, toDisplayString as re, createCommentVNode as R, renderSlot as ke, createBlock as F, resolveDynamicComponent as we, withDirectives as Ee, mergeProps as Ke, toHandlers as st, vModelDynamic as ut, withModifiers as ye, withCtx as G, createVNode as j, Fragment as le, renderList as ie, useAttrs as dt, useCssVars as ct, watch as pe, TransitionGroup as Be, createTextVNode as $e, Transition as Fe, onBeforeMount as mt, onUnmounted as ft, vShow as vt } from "vue";
2
- import '../assets/MazPicker.DMFpwla9.css';function Pe(t) {
3
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4
- }
5
- var Oe = { exports: {} }, ht = Oe.exports, Ze;
6
- function yt() {
7
- return Ze || (Ze = 1, function(t, a) {
8
- (function(e, u) {
9
- t.exports = u();
10
- })(ht, function() {
11
- var e = 1e3, u = 6e4, s = 36e5, Y = "millisecond", v = "second", d = "minute", h = "hour", p = "day", f = "week", z = "month", x = "quarter", w = "year", b = "date", Q = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, A = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
12
- var n = ["th", "st", "nd", "rd"], o = M % 100;
13
- return "[" + M + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
14
- } }, H = function(M, n, o) {
15
- var m = String(M);
16
- return !m || m.length >= n ? M : "" + Array(n + 1 - m.length).join(o) + M;
17
- }, E = { s: H, z: function(M) {
18
- var n = -M.utcOffset(), o = Math.abs(n), m = Math.floor(o / 60), c = o % 60;
19
- return (n <= 0 ? "+" : "-") + H(m, 2, "0") + ":" + H(c, 2, "0");
20
- }, m: function M(n, o) {
21
- if (n.date() < o.date()) return -M(o, n);
22
- var m = 12 * (o.year() - n.year()) + (o.month() - n.month()), c = n.clone().add(m, z), r = o - c < 0, l = n.clone().add(m + (r ? -1 : 1), z);
23
- return +(-(m + (o - c) / (r ? c - l : l - c)) || 0);
24
- }, a: function(M) {
25
- return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
26
- }, p: function(M) {
27
- return { M: z, y: w, w: f, d: p, D: b, h, m: d, s: v, ms: Y, Q: x }[M] || String(M || "").toLowerCase().replace(/s$/, "");
28
- }, u: function(M) {
29
- return M === void 0;
30
- } }, g = "en", S = {};
31
- S[g] = A;
32
- var B = "$isDayjsObject", C = function(M) {
33
- return M instanceof Z || !(!M || !M[B]);
34
- }, L = function M(n, o, m) {
35
- var c;
36
- if (!n) return g;
37
- if (typeof n == "string") {
38
- var r = n.toLowerCase();
39
- S[r] && (c = r), o && (S[r] = o, c = r);
40
- var l = n.split("-");
41
- if (!c && l.length > 1) return M(l[0]);
42
- } else {
43
- var y = n.name;
44
- S[y] = n, c = y;
45
- }
46
- return !m && c && (g = c), c || !m && g;
47
- }, P = function(M, n) {
48
- if (C(M)) return M.clone();
49
- var o = typeof n == "object" ? n : {};
50
- return o.date = M, o.args = arguments, new Z(o);
51
- }, q = E;
52
- q.l = L, q.i = C, q.w = function(M, n) {
53
- return P(M, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
54
- };
55
- var Z = function() {
56
- function M(o) {
57
- this.$L = L(o.locale, null, !0), this.parse(o), this.$x = this.$x || o.x || {}, this[B] = !0;
58
- }
59
- var n = M.prototype;
60
- return n.parse = function(o) {
61
- this.$d = function(m) {
62
- var c = m.date, r = m.utc;
63
- if (c === null) return /* @__PURE__ */ new Date(NaN);
64
- if (q.u(c)) return /* @__PURE__ */ new Date();
65
- if (c instanceof Date) return new Date(c);
66
- if (typeof c == "string" && !/Z$/i.test(c)) {
67
- var l = c.match(V);
68
- if (l) {
69
- var y = l[2] - 1 || 0, O = (l[7] || "0").substring(0, 3);
70
- return r ? new Date(Date.UTC(l[1], y, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, O)) : new Date(l[1], y, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, O);
71
- }
72
- }
73
- return new Date(c);
74
- }(o), this.init();
75
- }, n.init = function() {
76
- var o = this.$d;
77
- this.$y = o.getFullYear(), this.$M = o.getMonth(), this.$D = o.getDate(), this.$W = o.getDay(), this.$H = o.getHours(), this.$m = o.getMinutes(), this.$s = o.getSeconds(), this.$ms = o.getMilliseconds();
78
- }, n.$utils = function() {
79
- return q;
80
- }, n.isValid = function() {
81
- return this.$d.toString() !== Q;
82
- }, n.isSame = function(o, m) {
83
- var c = P(o);
84
- return this.startOf(m) <= c && c <= this.endOf(m);
85
- }, n.isAfter = function(o, m) {
86
- return P(o) < this.startOf(m);
87
- }, n.isBefore = function(o, m) {
88
- return this.endOf(m) < P(o);
89
- }, n.$g = function(o, m, c) {
90
- return q.u(o) ? this[m] : this.set(c, o);
91
- }, n.unix = function() {
92
- return Math.floor(this.valueOf() / 1e3);
93
- }, n.valueOf = function() {
94
- return this.$d.getTime();
95
- }, n.startOf = function(o, m) {
96
- var c = this, r = !!q.u(m) || m, l = q.p(o), y = function(me, te) {
97
- var ue = q.w(c.$u ? Date.UTC(c.$y, te, me) : new Date(c.$y, te, me), c);
98
- return r ? ue : ue.endOf(p);
99
- }, O = function(me, te) {
100
- return q.w(c.toDate()[me].apply(c.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), c);
101
- }, W = this.$W, J = this.$M, _ = this.$D, se = "set" + (this.$u ? "UTC" : "");
102
- switch (l) {
103
- case w:
104
- return r ? y(1, 0) : y(31, 11);
105
- case z:
106
- return r ? y(1, J) : y(0, J + 1);
107
- case f:
108
- var ce = this.$locale().weekStart || 0, ve = (W < ce ? W + 7 : W) - ce;
109
- return y(r ? _ - ve : _ + (6 - ve), J);
110
- case p:
111
- case b:
112
- return O(se + "Hours", 0);
113
- case h:
114
- return O(se + "Minutes", 1);
115
- case d:
116
- return O(se + "Seconds", 2);
117
- case v:
118
- return O(se + "Milliseconds", 3);
119
- default:
120
- return this.clone();
121
- }
122
- }, n.endOf = function(o) {
123
- return this.startOf(o, !1);
124
- }, n.$set = function(o, m) {
125
- var c, r = q.p(o), l = "set" + (this.$u ? "UTC" : ""), y = (c = {}, c[p] = l + "Date", c[b] = l + "Date", c[z] = l + "Month", c[w] = l + "FullYear", c[h] = l + "Hours", c[d] = l + "Minutes", c[v] = l + "Seconds", c[Y] = l + "Milliseconds", c)[r], O = r === p ? this.$D + (m - this.$W) : m;
126
- if (r === z || r === w) {
127
- var W = this.clone().set(b, 1);
128
- W.$d[y](O), W.init(), this.$d = W.set(b, Math.min(this.$D, W.daysInMonth())).$d;
129
- } else y && this.$d[y](O);
130
- return this.init(), this;
131
- }, n.set = function(o, m) {
132
- return this.clone().$set(o, m);
133
- }, n.get = function(o) {
134
- return this[q.p(o)]();
135
- }, n.add = function(o, m) {
136
- var c, r = this;
137
- o = Number(o);
138
- var l = q.p(m), y = function(J) {
139
- var _ = P(r);
140
- return q.w(_.date(_.date() + Math.round(J * o)), r);
141
- };
142
- if (l === z) return this.set(z, this.$M + o);
143
- if (l === w) return this.set(w, this.$y + o);
144
- if (l === p) return y(1);
145
- if (l === f) return y(7);
146
- var O = (c = {}, c[d] = u, c[h] = s, c[v] = e, c)[l] || 1, W = this.$d.getTime() + o * O;
147
- return q.w(W, this);
148
- }, n.subtract = function(o, m) {
149
- return this.add(-1 * o, m);
150
- }, n.format = function(o) {
151
- var m = this, c = this.$locale();
152
- if (!this.isValid()) return c.invalidDate || Q;
153
- var r = o || "YYYY-MM-DDTHH:mm:ssZ", l = q.z(this), y = this.$H, O = this.$m, W = this.$M, J = c.weekdays, _ = c.months, se = c.meridiem, ce = function(te, ue, he, be) {
154
- return te && (te[ue] || te(m, r)) || he[ue].slice(0, be);
155
- }, ve = function(te) {
156
- return q.s(y % 12 || 12, te, "0");
157
- }, me = se || function(te, ue, he) {
158
- var be = te < 12 ? "AM" : "PM";
159
- return he ? be.toLowerCase() : be;
160
- };
161
- return r.replace(T, function(te, ue) {
162
- return ue || function(he) {
163
- switch (he) {
164
- case "YY":
165
- return String(m.$y).slice(-2);
166
- case "YYYY":
167
- return q.s(m.$y, 4, "0");
168
- case "M":
169
- return W + 1;
170
- case "MM":
171
- return q.s(W + 1, 2, "0");
172
- case "MMM":
173
- return ce(c.monthsShort, W, _, 3);
174
- case "MMMM":
175
- return ce(_, W);
176
- case "D":
177
- return m.$D;
178
- case "DD":
179
- return q.s(m.$D, 2, "0");
180
- case "d":
181
- return String(m.$W);
182
- case "dd":
183
- return ce(c.weekdaysMin, m.$W, J, 2);
184
- case "ddd":
185
- return ce(c.weekdaysShort, m.$W, J, 3);
186
- case "dddd":
187
- return J[m.$W];
188
- case "H":
189
- return String(y);
190
- case "HH":
191
- return q.s(y, 2, "0");
192
- case "h":
193
- return ve(1);
194
- case "hh":
195
- return ve(2);
196
- case "a":
197
- return me(y, O, !0);
198
- case "A":
199
- return me(y, O, !1);
200
- case "m":
201
- return String(O);
202
- case "mm":
203
- return q.s(O, 2, "0");
204
- case "s":
205
- return String(m.$s);
206
- case "ss":
207
- return q.s(m.$s, 2, "0");
208
- case "SSS":
209
- return q.s(m.$ms, 3, "0");
210
- case "Z":
211
- return l;
212
- }
213
- return null;
214
- }(te) || l.replace(":", "");
215
- });
216
- }, n.utcOffset = function() {
217
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
218
- }, n.diff = function(o, m, c) {
219
- var r, l = this, y = q.p(m), O = P(o), W = (O.utcOffset() - this.utcOffset()) * u, J = this - O, _ = function() {
220
- return q.m(l, O);
221
- };
222
- switch (y) {
223
- case w:
224
- r = _() / 12;
225
- break;
226
- case z:
227
- r = _();
228
- break;
229
- case x:
230
- r = _() / 3;
231
- break;
232
- case f:
233
- r = (J - W) / 6048e5;
234
- break;
235
- case p:
236
- r = (J - W) / 864e5;
237
- break;
238
- case h:
239
- r = J / s;
240
- break;
241
- case d:
242
- r = J / u;
243
- break;
244
- case v:
245
- r = J / e;
246
- break;
247
- default:
248
- r = J;
249
- }
250
- return c ? r : q.a(r);
251
- }, n.daysInMonth = function() {
252
- return this.endOf(z).$D;
253
- }, n.$locale = function() {
254
- return S[this.$L];
255
- }, n.locale = function(o, m) {
256
- if (!o) return this.$L;
257
- var c = this.clone(), r = L(o, m, !0);
258
- return r && (c.$L = r), c;
259
- }, n.clone = function() {
260
- return q.w(this.$d, this);
261
- }, n.toDate = function() {
262
- return new Date(this.valueOf());
263
- }, n.toJSON = function() {
264
- return this.isValid() ? this.toISOString() : null;
265
- }, n.toISOString = function() {
266
- return this.$d.toISOString();
267
- }, n.toString = function() {
268
- return this.$d.toUTCString();
269
- }, M;
270
- }(), i = Z.prototype;
271
- return P.prototype = i, [["$ms", Y], ["$s", v], ["$m", d], ["$H", h], ["$W", p], ["$M", z], ["$y", w], ["$D", b]].forEach(function(M) {
272
- i[M[1]] = function(n) {
273
- return this.$g(n, M[0], M[1]);
274
- };
275
- }), P.extend = function(M, n) {
276
- return M.$i || (M(n, Z, P), M.$i = !0), P;
277
- }, P.locale = L, P.isDayjs = C, P.unix = function(M) {
278
- return P(1e3 * M);
279
- }, P.en = S[g], P.Ls = S, P.p = {}, P;
280
- });
281
- }(Oe)), Oe.exports;
282
- }
283
- var pt = yt();
284
- const D = /* @__PURE__ */ Pe(pt);
285
- var Ce = { exports: {} }, bt = Ce.exports, Re;
286
- function Dt() {
287
- return Re || (Re = 1, function(t, a) {
288
- (function(e, u) {
289
- t.exports = u();
290
- })(bt, function() {
291
- var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, Y = /\d\d/, v = /\d\d?/, d = /\d*[^-_:/,()\s\d]+/, h = {}, p = function(V) {
292
- return (V = +V) + (V > 68 ? 1900 : 2e3);
293
- }, f = function(V) {
294
- return function(T) {
295
- this[V] = +T;
296
- };
297
- }, z = [/[+-]\d\d:?(\d\d)?|Z/, function(V) {
298
- (this.zone || (this.zone = {})).offset = function(T) {
299
- if (!T || T === "Z") return 0;
300
- var A = T.match(/([+-]|\d\d)/g), H = 60 * A[1] + (+A[2] || 0);
301
- return H === 0 ? 0 : A[0] === "+" ? -H : H;
302
- }(V);
303
- }], x = function(V) {
304
- var T = h[V];
305
- return T && (T.indexOf ? T : T.s.concat(T.f));
306
- }, w = function(V, T) {
307
- var A, H = h.meridiem;
308
- if (H) {
309
- for (var E = 1; E <= 24; E += 1) if (V.indexOf(H(E, 0, T)) > -1) {
310
- A = E > 12;
311
- break;
312
- }
313
- } else A = V === (T ? "pm" : "PM");
314
- return A;
315
- }, b = { A: [d, function(V) {
316
- this.afternoon = w(V, !1);
317
- }], a: [d, function(V) {
318
- this.afternoon = w(V, !0);
319
- }], Q: [s, function(V) {
320
- this.month = 3 * (V - 1) + 1;
321
- }], S: [s, function(V) {
322
- this.milliseconds = 100 * +V;
323
- }], SS: [Y, function(V) {
324
- this.milliseconds = 10 * +V;
325
- }], SSS: [/\d{3}/, function(V) {
326
- this.milliseconds = +V;
327
- }], s: [v, f("seconds")], ss: [v, f("seconds")], m: [v, f("minutes")], mm: [v, f("minutes")], H: [v, f("hours")], h: [v, f("hours")], HH: [v, f("hours")], hh: [v, f("hours")], D: [v, f("day")], DD: [Y, f("day")], Do: [d, function(V) {
328
- var T = h.ordinal, A = V.match(/\d+/);
329
- if (this.day = A[0], T) for (var H = 1; H <= 31; H += 1) T(H).replace(/\[|\]/g, "") === V && (this.day = H);
330
- }], w: [v, f("week")], ww: [Y, f("week")], M: [v, f("month")], MM: [Y, f("month")], MMM: [d, function(V) {
331
- var T = x("months"), A = (x("monthsShort") || T.map(function(H) {
332
- return H.slice(0, 3);
333
- })).indexOf(V) + 1;
334
- if (A < 1) throw new Error();
335
- this.month = A % 12 || A;
336
- }], MMMM: [d, function(V) {
337
- var T = x("months").indexOf(V) + 1;
338
- if (T < 1) throw new Error();
339
- this.month = T % 12 || T;
340
- }], Y: [/[+-]?\d+/, f("year")], YY: [Y, function(V) {
341
- this.year = p(V);
342
- }], YYYY: [/\d{4}/, f("year")], Z: z, ZZ: z };
343
- function Q(V) {
344
- var T, A;
345
- T = V, A = h && h.formats;
346
- for (var H = (V = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(P, q, Z) {
347
- var i = Z && Z.toUpperCase();
348
- return q || A[Z] || e[Z] || A[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, n, o) {
349
- return n || o.slice(1);
350
- });
351
- })).match(u), E = H.length, g = 0; g < E; g += 1) {
352
- var S = H[g], B = b[S], C = B && B[0], L = B && B[1];
353
- H[g] = L ? { regex: C, parser: L } : S.replace(/^\[|\]$/g, "");
354
- }
355
- return function(P) {
356
- for (var q = {}, Z = 0, i = 0; Z < E; Z += 1) {
357
- var M = H[Z];
358
- if (typeof M == "string") i += M.length;
359
- else {
360
- var n = M.regex, o = M.parser, m = P.slice(i), c = n.exec(m)[0];
361
- o.call(q, c), P = P.replace(c, "");
362
- }
363
- }
364
- return function(r) {
365
- var l = r.afternoon;
366
- if (l !== void 0) {
367
- var y = r.hours;
368
- l ? y < 12 && (r.hours += 12) : y === 12 && (r.hours = 0), delete r.afternoon;
369
- }
370
- }(q), q;
371
- };
372
- }
373
- return function(V, T, A) {
374
- A.p.customParseFormat = !0, V && V.parseTwoDigitYear && (p = V.parseTwoDigitYear);
375
- var H = T.prototype, E = H.parse;
376
- H.parse = function(g) {
377
- var S = g.date, B = g.utc, C = g.args;
378
- this.$u = B;
379
- var L = C[1];
380
- if (typeof L == "string") {
381
- var P = C[2] === !0, q = C[3] === !0, Z = P || q, i = C[2];
382
- q && (i = C[2]), h = this.$locale(), !P && i && (h = A.Ls[i]), this.$d = function(m, c, r, l) {
383
- try {
384
- if (["x", "X"].indexOf(c) > -1) return new Date((c === "X" ? 1e3 : 1) * m);
385
- var y = Q(c)(m), O = y.year, W = y.month, J = y.day, _ = y.hours, se = y.minutes, ce = y.seconds, ve = y.milliseconds, me = y.zone, te = y.week, ue = /* @__PURE__ */ new Date(), he = J || (O || W ? 1 : ue.getDate()), be = O || ue.getFullYear(), ze = 0;
386
- O && !W || (ze = W > 0 ? W - 1 : ue.getMonth());
387
- var Se, xe = _ || 0, Ae = se || 0, Le = ce || 0, je = ve || 0;
388
- return me ? new Date(Date.UTC(be, ze, he, xe, Ae, Le, je + 60 * me.offset * 1e3)) : r ? new Date(Date.UTC(be, ze, he, xe, Ae, Le, je)) : (Se = new Date(be, ze, he, xe, Ae, Le, je), te && (Se = l(Se).week(te).toDate()), Se);
389
- } catch {
390
- return /* @__PURE__ */ new Date("");
391
- }
392
- }(S, L, B, A), this.init(), i && i !== !0 && (this.$L = this.locale(i).$L), Z && S != this.format(L) && (this.$d = /* @__PURE__ */ new Date("")), h = {};
393
- } else if (L instanceof Array) for (var M = L.length, n = 1; n <= M; n += 1) {
394
- C[1] = L[n - 1];
395
- var o = A.apply(this, C);
396
- if (o.isValid()) {
397
- this.$d = o.$d, this.$L = o.$L, this.init();
398
- break;
399
- }
400
- n === M && (this.$d = /* @__PURE__ */ new Date(""));
401
- }
402
- else E.call(this, g);
403
- };
404
- };
405
- });
406
- }(Ce)), Ce.exports;
407
- }
408
- var kt = Dt();
409
- const gt = /* @__PURE__ */ Pe(kt);
410
- var qe = { exports: {} }, wt = qe.exports, Ge;
411
- function $t() {
412
- return Ge || (Ge = 1, function(t, a) {
413
- (function(e, u) {
414
- t.exports = u();
415
- })(wt, function() {
416
- return function(e, u, s) {
417
- u.prototype.isBetween = function(Y, v, d, h) {
418
- var p = s(Y), f = s(v), z = (h = h || "()")[0] === "(", x = h[1] === ")";
419
- return (z ? this.isAfter(p, d) : !this.isBefore(p, d)) && (x ? this.isBefore(f, d) : !this.isAfter(f, d)) || (z ? this.isBefore(p, d) : !this.isAfter(p, d)) && (x ? this.isAfter(f, d) : !this.isBefore(f, d));
420
- };
421
- };
422
- });
423
- }(qe)), qe.exports;
424
- }
425
- var Mt = $t();
426
- const zt = /* @__PURE__ */ Pe(Mt);
427
- function _e({
428
- componentName: t,
429
- providedId: a
430
- }) {
431
- return $(() => a ?? `${t}-${lt().replace(/:/g, "")}`);
432
- }
433
- const Te = "__maz-click-outside__";
434
- function et() {
435
- return document.ontouchstart === null ? "touchstart" : "click";
436
- }
437
- async function tt(t, a) {
438
- try {
439
- at(t);
440
- const e = a.instance, u = a.value, s = typeof u == "function";
441
- if (!s)
442
- throw new Error("[maz-ui](vClickOutside) the callback should be a function");
443
- await ge(), t[Te] = (v) => {
444
- if ((!t || v.target && !t.contains(v.target)) && u && s)
445
- return u.call(e, v);
446
- };
447
- const Y = et();
448
- document.addEventListener(Y, t[Te], { passive: !0 });
449
- } catch (e) {
450
- console.error("[maz-ui](vClickOutside)", e);
451
- }
452
- }
453
- function at(t) {
454
- try {
455
- const a = et();
456
- document.removeEventListener(a, t[Te], !1), delete t[Te];
457
- } catch (a) {
458
- console.error("[maz-ui](vClickOutside)", a);
459
- }
460
- }
461
- function St(t, a) {
462
- try {
463
- if (a.value === a.oldValue)
464
- return;
465
- tt(t, a);
466
- } catch (e) {
467
- console.error("[maz-ui](vClickOutside)", e);
468
- }
469
- }
470
- const Yt = {
471
- mounted: tt,
472
- updated: St,
473
- unmounted: at
474
- }, Vt = {
475
- xmlns: "http://www.w3.org/2000/svg",
476
- width: "1em",
477
- height: "1em",
478
- fill: "none",
479
- viewBox: "0 0 24 24"
480
- };
481
- function Bt(t, a) {
482
- return k(), I("svg", Vt, a[0] || (a[0] = [
483
- K(
484
- "path",
485
- {
486
- stroke: "currentColor",
487
- "stroke-linecap": "round",
488
- "stroke-linejoin": "round",
489
- "stroke-width": "1.5",
490
- d: "m19.5 8.25-7.5 7.5-7.5-7.5"
491
- },
492
- null,
493
- -1
494
- /* HOISTED */
495
- )
496
- ]));
497
- }
498
- const Ot = { render: Bt }, Ct = {
499
- month: "short",
500
- day: "numeric",
501
- year: "numeric"
502
- };
503
- function ee(t, a, e) {
504
- if (a === void 0)
505
- throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
506
- if (typeof a != "string")
507
- throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
508
- const u = e ?? Ct;
509
- try {
510
- const s = t instanceof Date ? t : new Date(t);
511
- return new Intl.DateTimeFormat(a, u).format(s);
512
- } catch (s) {
513
- throw new Error(`[maz-ui](FilterDate) ${s}`);
514
- }
515
- }
516
- function rt(t, a) {
517
- let e;
518
- return function(...u) {
519
- clearTimeout(e), e = setTimeout(() => {
520
- t.apply(this, u);
521
- }, a);
522
- };
523
- }
524
- const qt = ["for"], It = {
525
- key: 0,
526
- class: "m-input-wrapper-left"
527
- }, Tt = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], Ht = {
528
- key: 1,
529
- class: "m-input-wrapper-right"
530
- }, Pt = /* @__PURE__ */ ne({
531
- inheritAttrs: !1,
532
- __name: "MazInput",
533
- props: {
534
- style: { default: void 0 },
535
- class: { default: void 0 },
536
- modelValue: { default: void 0 },
537
- placeholder: { default: void 0 },
538
- label: { default: void 0 },
539
- topLabel: {},
540
- assistiveText: {},
541
- name: { default: void 0 },
542
- color: { default: "primary" },
543
- type: { default: "text" },
544
- required: { type: Boolean, default: !1 },
545
- disabled: { type: Boolean, default: !1 },
546
- readonly: { type: Boolean, default: !1 },
547
- id: { default: void 0 },
548
- error: { type: Boolean, default: !1 },
549
- success: { type: Boolean, default: !1 },
550
- warning: { type: Boolean, default: !1 },
551
- hint: { default: void 0 },
552
- inputClasses: { default: void 0 },
553
- noBorder: { type: Boolean, default: !1 },
554
- noRadius: { type: Boolean, default: !1 },
555
- inputmode: { default: "text" },
556
- size: { default: "md" },
557
- debounce: { type: [Boolean, Number], default: !1 },
558
- debounceDelay: { default: 500 },
559
- validButton: { type: Boolean, default: !1 },
560
- validButtonLoading: { type: Boolean, default: !1 },
561
- autoFocus: { type: Boolean, default: !1 },
562
- borderActive: { type: Boolean, default: !1 },
563
- leftIcon: { type: [String, Function, Object], default: void 0 },
564
- rightIcon: { type: [String, Function, Object], default: void 0 },
565
- roundedSize: { default: void 0 },
566
- block: { type: Boolean },
567
- autocomplete: {}
568
- },
569
- emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
570
- setup(t, { emit: a }) {
571
- const e = t, u = a, s = De(() => Promise.resolve().then(() => aa)), Y = De(() => import("./MazIcon.Cq1v4J3r.mjs")), v = De(() => import("./eye-slash.BoO00xzs.mjs")), d = De(() => import("./eye.f8zAUc30.mjs")), h = De(() => import("./check.BmubdHc_.mjs")), p = X(!1), f = X(!1), z = X(), x = _e({
572
- componentName: "MazInput",
573
- providedId: e.id
574
- });
575
- Xe(() => {
576
- var i;
577
- e.autoFocus && ((i = z.value) == null || i.focus());
578
- });
579
- const w = $(() => e.type === "password"), b = $(() => p.value ? "text" : e.type), Q = $(() => {
580
- if (!e.noBorder) {
581
- if (e.error)
582
- return "maz-border-danger";
583
- if (e.success)
584
- return "maz-border-success";
585
- if (e.warning)
586
- return "maz-border-warning";
587
- if (f.value || e.borderActive) {
588
- if (e.color === "black")
589
- return "maz-border-black";
590
- if (e.color === "danger")
591
- return "maz-border-danger";
592
- if (e.color === "info")
593
- return "maz-border-info";
594
- if (e.color === "primary")
595
- return "maz-border-primary";
596
- if (e.color === "secondary")
597
- return "maz-border-secondary";
598
- if (e.color === "success")
599
- return "maz-border-success";
600
- if (e.color === "warning")
601
- return "maz-border-warning";
602
- if (e.color === "white")
603
- return "maz-border-white";
604
- }
605
- return "--default-border";
606
- }
607
- }), V = it(), T = $(() => E.value !== void 0 && E.value !== ""), A = rt(
608
- (i) => {
609
- u("update:model-value", i);
610
- },
611
- typeof e.debounce == "number" ? e.debounce : e.debounceDelay ?? 500
612
- );
613
- function H(i) {
614
- if (e.debounce)
615
- return A(i);
616
- u("update:model-value", i);
617
- }
618
- const E = $({
619
- get: () => e.modelValue,
620
- set: (i) => H(i)
621
- }), g = $(() => (!!e.label || !!e.hint) && (f.value || !!T.value || !!e.placeholder || ["date", "month", "week"].includes(e.type))), S = $(() => !!e.label || !!e.hint);
622
- function B() {
623
- return !!V["right-icon"] || w.value || !!V["valid-button"] || e.validButton || !!e.rightIcon;
624
- }
625
- function C() {
626
- return !!V["left-icon"] || !!e.leftIcon;
627
- }
628
- function L(i) {
629
- u("focus", i), f.value = !0;
630
- }
631
- function P(i) {
632
- u("blur", i), f.value = !1;
633
- }
634
- function q(i) {
635
- return u("change", i);
636
- }
637
- function Z(i) {
638
- return u("input", i);
639
- }
640
- return (i, M) => (k(), I(
641
- "div",
642
- {
643
- class: U(["m-input", [
644
- {
645
- "--is-focused": f.value || i.borderActive,
646
- "--should-up": g.value,
647
- "--has-label": S.value,
648
- "--is-disabled": i.disabled,
649
- "--is-readonly": i.readonly,
650
- "--has-z-2": i.error || i.warning || i.success,
651
- "--has-state": i.error || i.warning || i.success,
652
- "--block": i.block
653
- },
654
- e.class,
655
- `--${i.color}`
656
- ]]),
657
- style: Me(i.style)
658
- },
659
- [
660
- i.topLabel ? (k(), I("label", {
661
- key: 0,
662
- for: N(x),
663
- class: "m-input-top-label"
664
- }, re(i.topLabel), 9, qt)) : R("v-if", !0),
665
- K(
666
- "div",
667
- {
668
- class: U(["m-input-wrapper m-reset-css", [
669
- i.inputClasses,
670
- Q.value,
671
- i.roundedSize ? `--rounded-${i.roundedSize}` : { "maz-rounded": !i.noRadius },
672
- { "--block": i.block }
673
- ]])
674
- },
675
- [
676
- C() ? (k(), I("div", It, [
677
- i.$slots["left-icon"] || i.leftIcon ? ke(i.$slots, "left-icon", { key: 0 }, () => [
678
- typeof i.leftIcon == "string" ? (k(), F(N(Y), {
679
- key: 0,
680
- name: i.leftIcon,
681
- class: "maz-text-xl maz-text-muted"
682
- }, null, 8, ["name"])) : i.leftIcon ? (k(), F(we(i.leftIcon), {
683
- key: 1,
684
- class: "maz-text-xl maz-text-muted"
685
- })) : R("v-if", !0)
686
- ], !0) : R("v-if", !0)
687
- ])) : R("v-if", !0),
688
- K(
689
- "div",
690
- {
691
- class: U(["m-input-wrapper-input", [`--${i.size}`, { "--top-label": !!i.topLabel }]])
692
- },
693
- [
694
- Ee(K("input", Ke({ id: N(x) }, i.$attrs, {
695
- ref_key: "input",
696
- ref: z,
697
- "onUpdate:modelValue": M[0] || (M[0] = (n) => E.value = n),
698
- name: i.name,
699
- placeholder: i.placeholder,
700
- "aria-label": i.label || i.placeholder,
701
- type: b.value,
702
- inputmode: i.inputmode,
703
- disabled: i.disabled,
704
- readonly: i.readonly,
705
- autocomplete: i.autocomplete,
706
- required: i.required,
707
- class: "m-input-input"
708
- }, st({
709
- blur: P,
710
- focus: L,
711
- change: q,
712
- input: Z
713
- }, !0), {
714
- onClick: M[1] || (M[1] = (n) => i.$emit("click", n))
715
- }), null, 16, Tt), [
716
- [ut, E.value]
717
- ]),
718
- i.label || i.hint ? (k(), I(
719
- "span",
720
- {
721
- key: 0,
722
- class: U(["m-input-label", [
723
- {
724
- "maz-text-danger-600": i.error,
725
- "maz-text-success-600": i.success,
726
- "maz-text-warning-600": i.warning
727
- }
728
- ]])
729
- },
730
- re(i.hint || i.label),
731
- 3
732
- /* TEXT, CLASS */
733
- )) : R("v-if", !0)
734
- ],
735
- 2
736
- /* CLASS */
737
- ),
738
- B() ? (k(), I("div", Ht, [
739
- i.$slots["right-icon"] || i.rightIcon ? ke(i.$slots, "right-icon", { key: 0 }, () => [
740
- typeof i.rightIcon == "string" ? (k(), F(N(Y), {
741
- key: 0,
742
- name: i.rightIcon,
743
- class: "maz-text-xl maz-text-muted"
744
- }, null, 8, ["name"])) : i.rightIcon ? (k(), F(we(i.rightIcon), {
745
- key: 1,
746
- class: "maz-text-xl maz-text-muted"
747
- })) : R("v-if", !0)
748
- ], !0) : R("v-if", !0),
749
- w.value ? (k(), F(N(s), {
750
- key: 1,
751
- color: "transparent",
752
- tabindex: "-1",
753
- size: "mini",
754
- onClick: M[2] || (M[2] = ye((n) => p.value = !p.value, ["stop"]))
755
- }, {
756
- default: G(() => [
757
- p.value ? (k(), F(N(v), {
758
- key: 0,
759
- class: "maz-text-xl maz-text-muted"
760
- })) : (k(), F(N(d), {
761
- key: 1,
762
- class: "maz-text-xl maz-text-muted"
763
- }))
764
- ]),
765
- _: 1
766
- /* STABLE */
767
- })) : R("v-if", !0),
768
- i.$slots["valid-button"] || i.validButton ? ke(i.$slots, "valid-button", { key: 2 }, () => [
769
- j(N(s), {
770
- color: "transparent",
771
- disabled: i.disabled,
772
- tabindex: "-1",
773
- loading: i.validButtonLoading,
774
- class: "m-input-valid-button",
775
- size: "mini",
776
- type: "submit"
777
- }, {
778
- default: G(() => [
779
- j(N(h), { class: "maz-text-2xl maz-text-normal" })
780
- ]),
781
- _: 1
782
- /* STABLE */
783
- }, 8, ["disabled", "loading"])
784
- ], !0) : R("v-if", !0)
785
- ])) : R("v-if", !0)
786
- ],
787
- 2
788
- /* CLASS */
789
- ),
790
- i.assistiveText ? (k(), I(
791
- "div",
792
- {
793
- key: 1,
794
- class: U(["m-input-bottom-text", [
795
- {
796
- "maz-text-danger-600": i.error,
797
- "maz-text-success-600": i.success,
798
- "maz-text-warning-600": i.warning,
799
- "maz-text-muted": !i.error && !i.success && !i.warning
800
- }
801
- ]])
802
- },
803
- re(i.assistiveText),
804
- 3
805
- /* TEXT, CLASS */
806
- )) : R("v-if", !0)
807
- ],
808
- 6
809
- /* CLASS, STYLE */
810
- ));
811
- }
812
- }), oe = (t, a) => {
813
- const e = t.__vccOpts || t;
814
- for (const [u, s] of a)
815
- e[u] = s;
816
- return e;
817
- }, xt = /* @__PURE__ */ oe(Pt, [["__scopeId", "data-v-8def99c5"]]);
818
- var Ie = { exports: {} }, At = Ie.exports, Je;
819
- function Lt() {
820
- return Je || (Je = 1, function(t, a) {
821
- (function(e, u) {
822
- t.exports = u();
823
- })(At, function() {
824
- return function(e, u) {
825
- u.prototype.weekday = function(s) {
826
- var Y = this.$locale().weekStart || 0, v = this.$W, d = (v < Y ? v + 7 : v) - Y;
827
- return this.$utils().u(s) ? d : this.subtract(d, "day").add(s, "day");
828
- };
829
- };
830
- });
831
- }(Ie)), Ie.exports;
832
- }
833
- var jt = Lt();
834
- const Wt = /* @__PURE__ */ Pe(jt);
835
- function fe(t) {
836
- return t ? (t = t.toString(), t.charAt(0).toUpperCase() + t.slice(1)) : "";
837
- }
838
- D.extend(Wt);
839
- function Ue({
840
- value: t,
841
- locale: a,
842
- options: e
843
- }) {
844
- return t ? fe(ee(t, a, e)) : void 0;
845
- }
846
- function Et({
847
- value: t,
848
- locale: a,
849
- options: e
850
- }) {
851
- const u = Ue({
852
- value: t.start,
853
- locale: a,
854
- options: e
855
- }), s = Ue({
856
- value: t.end,
857
- locale: a,
858
- options: e
859
- });
860
- return u || s ? `${u || "..."} - ${s || "..."}` : void 0;
861
- }
862
- function Ft(t) {
863
- return D(t).startOf("month").day();
864
- }
865
- function Ut(t, a) {
866
- const e = D().locale(t), u = [];
867
- for (let s = 0; s < 7; s++) {
868
- const Y = e.day(s + a).toDate(), v = ee(Y, t, { weekday: "short" });
869
- u.push(v);
870
- }
871
- return u;
872
- }
873
- function Nt(t) {
874
- return D(t).daysInMonth();
875
- }
876
- function Zt(t) {
877
- return D().isSame(t, "date");
878
- }
879
- function de(t, a, e) {
880
- return D(t).isSame(a, e);
881
- }
882
- function nt(t, a) {
883
- return D(t).day() === a;
884
- }
885
- function Ne(t, a = "YYYY-MM-DD") {
886
- if (t)
887
- return D(t).format(a);
888
- }
889
- function Rt(t, a = "YYYY-MM-DD") {
890
- return {
891
- start: Ne(t.start, a),
892
- end: Ne(t.end, a)
893
- };
894
- }
895
- function We({
896
- value: t,
897
- minDate: a,
898
- maxDate: e,
899
- format: u
900
- }) {
901
- return a && D(t).isBefore(a) ? {
902
- newValue: a,
903
- newCurrentDate: D(a, u).format()
904
- } : e && D(t).isAfter(e) ? {
905
- newValue: e,
906
- newCurrentDate: D(e, u).format()
907
- } : {
908
- newValue: void 0,
909
- newCurrentDate: void 0
910
- };
911
- }
912
- function Ye({
913
- value: t,
914
- disabledWeekly: a
915
- }) {
916
- return a.some((e) => nt(t, e));
917
- }
918
- function Ve({
919
- value: t,
920
- disabledDates: a
921
- }) {
922
- return a.some((e) => D(t).isSame(D(e), "date"));
923
- }
924
- const Gt = function(t, a, e = 0, u = !0) {
925
- t.scrollTo({
926
- top: a.offsetTop - e,
927
- behavior: u ? "smooth" : "auto"
928
- });
929
- };
930
- function Qe(t, a) {
931
- return t.reduce((e, u) => Math.abs(u - a) < Math.abs(e - a) ? u : e);
932
- }
933
- function Jt() {
934
- try {
935
- return typeof window > "u" ? void 0 : window.navigator.language;
936
- } catch (t) {
937
- throw new Error(`[MazPhoneNumberInput] (browserLocale) ${t}`);
938
- }
939
- }
940
- async function Qt() {
941
- try {
942
- const t = await fetch("https://ipwho.is"), { country_code: a } = await t.json();
943
- return a;
944
- } catch (t) {
945
- console.error(`[maz-ui](MazPicker)(fetchCountryCode) ${t}`);
946
- }
947
- }
948
- const Xt = { class: "maz-picker-calendar-days" }, Kt = /* @__PURE__ */ ne({
949
- __name: "MazPickerCalendarDays",
950
- props: {
951
- locale: { type: String, required: !0 },
952
- firstDayOfWeek: { type: Number, required: !0 }
953
- },
954
- setup(t) {
955
- const a = t, e = $(() => Ut(a.locale, a.firstDayOfWeek));
956
- return (u, s) => (k(), I("div", Xt, [
957
- (k(!0), I(
958
- le,
959
- null,
960
- ie(e.value, (Y) => (k(), I(
961
- "span",
962
- { key: Y },
963
- re(Y),
964
- 1
965
- /* TEXT */
966
- ))),
967
- 128
968
- /* KEYED_FRAGMENT */
969
- ))
970
- ]));
971
- }
972
- }), _t = /* @__PURE__ */ oe(Kt, [["__scopeId", "data-v-4315c0cd"]]), ea = {
973
- key: 0,
974
- class: "m-btn-loader-container"
975
- }, ta = /* @__PURE__ */ ne({
976
- __name: "MazBtn",
977
- props: {
978
- variant: { default: "button" },
979
- size: { default: "md" },
980
- color: { default: "primary" },
981
- type: { default: "button" },
982
- rounded: { type: Boolean },
983
- roundedSize: { default: "lg" },
984
- noRounded: { type: Boolean },
985
- outline: { type: Boolean },
986
- pastel: { type: Boolean },
987
- block: { type: Boolean },
988
- noUnderline: { type: Boolean },
989
- loading: { type: Boolean },
990
- disabled: { type: Boolean },
991
- fab: { type: Boolean },
992
- icon: { type: [String, Function, Object], default: void 0 },
993
- leftIcon: { type: [String, Function, Object], default: void 0 },
994
- rightIcon: { type: [String, Function, Object], default: void 0 },
995
- noPadding: { type: Boolean },
996
- noElevation: { type: Boolean },
997
- justify: { default: "center" }
998
- },
999
- setup(t) {
1000
- const a = t, e = De(() => import("./MazSpinner.BabK9PkN.mjs")), u = De(() => import("./MazIcon.Cq1v4J3r.mjs")), { href: s, to: Y } = dt(), v = $(() => s ? "a" : Y ? "router-link" : "button"), d = $(() => a.pastel ? `--${a.color}-pastel` : a.outline ? `--${a.color}-outline` : `--${a.color}`), h = $(
1001
- () => (a.loading || a.disabled) && v.value === "button"
1002
- ), p = $(() => h.value ? "--cursor-default" : "--cursor-pointer"), f = $(() => `--is-${a.variant}`), z = $(() => a.loading && a.variant === "button"), x = $(() => v.value === "button" ? a.type : void 0), w = $(() => a.size === "xl" ? "maz-text-3xl" : a.size === "lg" ? "maz-text-2xl" : a.size === "md" ? "maz-text-xl" : a.size === "sm" ? "maz-text-lg" : a.size === "xs" ? "maz-text-base" : a.size === "mini" ? "maz-text-sm" : "maz-text-xl");
1003
- return (b, Q) => (k(), F(we(v.value), {
1004
- disabled: h.value || void 0,
1005
- class: U(["m-btn m-reset-css", [
1006
- `--${b.size}`,
1007
- !b.fab && !b.rounded && b.roundedSize && `--rounded-${b.roundedSize}`,
1008
- d.value,
1009
- p.value,
1010
- f.value,
1011
- {
1012
- "--block": b.block,
1013
- "--no-underline": b.noUnderline,
1014
- "--fab": b.fab,
1015
- "--loading": b.loading,
1016
- "--disabled": h.value,
1017
- "--rounded": b.rounded,
1018
- "--no-rounded": b.noRounded,
1019
- "--no-padding": b.noPadding,
1020
- "--no-elevation": b.noElevation
1021
- }
1022
- ]]),
1023
- style: Me([`--justify: ${b.justify}`]),
1024
- type: x.value
1025
- }, {
1026
- default: G(() => [
1027
- ke(b.$slots, "left-icon", {}, () => [
1028
- typeof b.leftIcon == "string" ? (k(), F(N(u), {
1029
- key: 0,
1030
- name: b.leftIcon,
1031
- class: U([w.value])
1032
- }, null, 8, ["name", "class"])) : b.leftIcon ? (k(), F(we(b.leftIcon), {
1033
- key: 1,
1034
- class: U([w.value])
1035
- }, null, 8, ["class"])) : R("v-if", !0)
1036
- ], !0),
1037
- ke(b.$slots, "icon", {}, () => [
1038
- typeof b.icon == "string" ? (k(), F(N(u), {
1039
- key: 0,
1040
- name: b.icon,
1041
- class: U([w.value])
1042
- }, null, 8, ["name", "class"])) : b.icon ? (k(), F(we(b.icon), {
1043
- key: 1,
1044
- class: U([w.value])
1045
- }, null, 8, ["class"])) : R("v-if", !0)
1046
- ], !0),
1047
- ke(b.$slots, "default", {}, void 0, !0),
1048
- ke(b.$slots, "right-icon", {}, () => [
1049
- typeof b.rightIcon == "string" ? (k(), F(N(u), {
1050
- key: 0,
1051
- name: b.rightIcon,
1052
- class: U([w.value])
1053
- }, null, 8, ["name", "class"])) : b.rightIcon ? (k(), F(we(b.rightIcon), {
1054
- key: 1,
1055
- class: U([w.value])
1056
- }, null, 8, ["class"])) : R("v-if", !0)
1057
- ], !0),
1058
- z.value ? (k(), I("div", ea, [
1059
- j(N(e), {
1060
- size: "2em",
1061
- color: b.color
1062
- }, null, 8, ["color"])
1063
- ])) : R("v-if", !0)
1064
- ]),
1065
- _: 3
1066
- /* FORWARDED */
1067
- }, 8, ["disabled", "class", "style", "type"]));
1068
- }
1069
- }), ae = /* @__PURE__ */ oe(ta, [["__scopeId", "data-v-6b881156"]]), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1070
- __proto__: null,
1071
- default: ae
1072
- }, Symbol.toStringTag, { value: "Module" })), ra = /* @__PURE__ */ ne({
1073
- __name: "MazPickerCalendarGrid",
1074
- props: {
1075
- modelValue: {
1076
- type: [String, Object],
1077
- default: void 0
1078
- },
1079
- calendarDate: { type: String, required: !0 },
1080
- hasTime: { type: Boolean, required: !0 },
1081
- locale: { type: String, required: !0 },
1082
- firstDayOfWeek: { type: Number, required: !0 },
1083
- color: { type: String, required: !0 },
1084
- minDate: { type: String, default: void 0 },
1085
- maxDate: { type: String, default: void 0 },
1086
- disabledWeekly: { type: Array, required: !0 },
1087
- disabledDates: { type: Array, required: !0 },
1088
- hoverredDay: { type: Object, default: void 0 },
1089
- disabled: { type: Boolean, required: !0 }
1090
- },
1091
- emits: ["update:model-value", "update:hoverred-day"],
1092
- setup(t, { emit: a }) {
1093
- ct((n) => ({
1094
- "7c5235de": h.value,
1095
- "2c4cc5ce": f.value,
1096
- "2df83176": p.value
1097
- }));
1098
- const e = t, u = a, s = X(), Y = X("maz-slidenext"), v = $(() => [e.calendarDate]), d = $(() => e.modelValue && typeof e.modelValue == "object"), h = $(() => `var(--maz-color-${e.color}-alpha-20)`), p = $(() => `var(--maz-color-${e.color}-alpha)`), f = $(() => `var(--maz-color-${e.color}-alpha-20)`), z = $({
1099
- get: () => e.modelValue,
1100
- set: (n) => u("update:model-value", n)
1101
- }), x = $(
1102
- () => Array.from({ length: Nt(e.calendarDate) }, (n, o) => o + 1).map((n) => ({
1103
- label: n,
1104
- date: D(e.calendarDate).set("date", n)
1105
- }))
1106
- ), w = $(() => (Ft(e.calendarDate) - e.firstDayOfWeek + 7) % 7);
1107
- function b(n) {
1108
- const o = e.modelValue;
1109
- o.start && !o.end && n && n.isAfter(o.start) ? u("update:hoverred-day", n) : u("update:hoverred-day");
1110
- }
1111
- function Q(n) {
1112
- const o = e.modelValue;
1113
- return !o.start || !e.hoverredDay ? void 0 : D(n).isBetween(o.start, e.hoverredDay, "date", "(]") ? 3 : void 0;
1114
- }
1115
- function V(n) {
1116
- if (e.hoverredDay)
1117
- return D(n).isSame(e.hoverredDay);
1118
- }
1119
- function T(n) {
1120
- var o;
1121
- return e.modelValue && e.modelValue && typeof e.modelValue == "object" && (o = e.modelValue) != null && o.start ? de(n, e.modelValue.start, "date") : !1;
1122
- }
1123
- function A(n) {
1124
- var o;
1125
- return e.modelValue && e.modelValue && typeof e.modelValue == "object" && (o = e.modelValue) != null && o.end ? de(n, e.modelValue.end, "date") : !1;
1126
- }
1127
- function H(n) {
1128
- const o = e.modelValue;
1129
- return typeof o == "object" ? o.start && de(n, o.start, "date") || o.end && de(n, o.end, "date") || C(n) ? e.color : "transparent" : B(n) ? e.color : "transparent";
1130
- }
1131
- function E(n) {
1132
- if (e.modelValue && typeof e.modelValue == "object") {
1133
- if (e.modelValue.start && de(n, e.modelValue.start, "date"))
1134
- return 1;
1135
- if (e.modelValue.end) {
1136
- if (de(n, e.modelValue.end, "date"))
1137
- return 1;
1138
- if (C(n))
1139
- return 2;
1140
- }
1141
- } else if (B(n))
1142
- return 1;
1143
- return 0;
1144
- }
1145
- function g(n) {
1146
- d.value && b();
1147
- const o = n.format();
1148
- if (typeof z.value == "object") {
1149
- let m = z.value;
1150
- m.start && m.end && (m = {
1151
- start: void 0,
1152
- end: void 0
1153
- });
1154
- const c = D(o).isBefore(m.start, "date");
1155
- z.value = !m.start || c ? {
1156
- start: o,
1157
- end: void 0
1158
- } : {
1159
- start: m.start,
1160
- end: o
1161
- };
1162
- } else
1163
- z.value = o;
1164
- }
1165
- function S(n) {
1166
- return Zt(n);
1167
- }
1168
- function B(n) {
1169
- if (!e.modelValue)
1170
- return !1;
1171
- const o = e.modelValue;
1172
- return de(n, o, "date");
1173
- }
1174
- function C(n) {
1175
- const o = e.modelValue;
1176
- return !o.start || !o.end ? !1 : D(n).isBetween(o.start, o.end, "date", "()");
1177
- }
1178
- function L(n) {
1179
- return e.minDate ? D(n).isBefore(e.minDate, "date") : !1;
1180
- }
1181
- function P(n) {
1182
- var o;
1183
- return (o = e.disabledWeekly) != null && o.length ? e.disabledWeekly.some((m) => nt(n, m)) : !1;
1184
- }
1185
- function q(n) {
1186
- var o;
1187
- return (o = e.disabledDates) != null && o.length ? e.disabledDates.some((m) => de(n, m, "date")) : !1;
1188
- }
1189
- function Z(n) {
1190
- return e.maxDate ? D(n).isAfter(e.maxDate, "date") : !1;
1191
- }
1192
- const i = rt(() => {
1193
- s.value && (s.value.style.minHeight = "");
1194
- }, 400);
1195
- function M() {
1196
- var n;
1197
- s.value && (s.value.style.minHeight = `${((n = s.value) == null ? void 0 : n.clientHeight) || 176}px`, i());
1198
- }
1199
- return pe(
1200
- () => e.calendarDate,
1201
- (n, o) => {
1202
- Y.value = D(n).isAfter(o, "date") ? "maz-slidenext" : "maz-slideprev", M();
1203
- }
1204
- ), (n, o) => (k(), I(
1205
- "div",
1206
- {
1207
- ref_key: "MazPickerGrid",
1208
- ref: s,
1209
- class: "maz-picker-calendar-grid"
1210
- },
1211
- [
1212
- j(Be, { name: Y.value }, {
1213
- default: G(() => [
1214
- (k(!0), I(
1215
- le,
1216
- null,
1217
- ie([v.value], (m, c) => (k(), I(
1218
- "div",
1219
- {
1220
- key: `${m[c]}`,
1221
- class: U(["maz-picker-calendar-grid__container", { "--is-range": d.value }])
1222
- },
1223
- [
1224
- (k(!0), I(
1225
- le,
1226
- null,
1227
- ie(w.value, (r) => (k(), I("div", { key: r }))),
1228
- 128
1229
- /* KEYED_FRAGMENT */
1230
- )),
1231
- (k(!0), I(
1232
- le,
1233
- null,
1234
- ie(x.value, ({ label: r, date: l }, y) => (k(), F(ae, {
1235
- key: y,
1236
- size: "mini",
1237
- color: H(l),
1238
- type: "button",
1239
- disabled: t.disabled || L(l) || Z(l) || P(l) || q(l),
1240
- class: U({
1241
- "--is-today": S(l),
1242
- "--is-first": T(l),
1243
- "--is-last": A(l) || d.value && V(l),
1244
- "--is-selected": E(l) === 1,
1245
- "--is-between": E(l) === 2,
1246
- "--is-between-hoverred": d.value ? Q(l) === 3 : void 0
1247
- }),
1248
- onClick: (O) => g(l),
1249
- onMouseover: (O) => d.value ? b(l) : void 0,
1250
- onMouseleave: o[0] || (o[0] = (O) => d.value ? b() : void 0),
1251
- onFocus: (O) => d.value ? b(l) : void 0,
1252
- onBlur: o[1] || (o[1] = (O) => d.value ? b() : void 0)
1253
- }, {
1254
- default: G(() => [
1255
- K(
1256
- "span",
1257
- null,
1258
- re(r),
1259
- 1
1260
- /* TEXT */
1261
- )
1262
- ]),
1263
- _: 2
1264
- /* DYNAMIC */
1265
- }, 1032, ["color", "disabled", "class", "onClick", "onMouseover", "onFocus"]))),
1266
- 128
1267
- /* KEYED_FRAGMENT */
1268
- ))
1269
- ],
1270
- 2
1271
- /* CLASS */
1272
- ))),
1273
- 128
1274
- /* KEYED_FRAGMENT */
1275
- ))
1276
- ]),
1277
- _: 1
1278
- /* STABLE */
1279
- }, 8, ["name"])
1280
- ],
1281
- 512
1282
- /* NEED_PATCH */
1283
- ));
1284
- }
1285
- }), na = /* @__PURE__ */ oe(ra, [["__scopeId", "data-v-a04fc985"]]), oa = { class: "maz-picker-calendar-month --has-padding" }, la = /* @__PURE__ */ ne({
1286
- __name: "MazPickerCalendarMonth",
1287
- props: {
1288
- modelValue: {
1289
- type: [String, Object],
1290
- default: void 0
1291
- },
1292
- color: { type: String, required: !0 },
1293
- locale: { type: String, required: !0 },
1294
- hasTime: { type: Boolean, required: !0 },
1295
- firstDayOfWeek: { type: Number, required: !0 },
1296
- calendarDate: { type: String, required: !0 },
1297
- offsetMonth: { type: Number, default: 0 },
1298
- minDate: { type: String, default: void 0 },
1299
- maxDate: { type: String, default: void 0 },
1300
- disabledWeekly: { type: Array, required: !0 },
1301
- disabledDates: { type: Array, required: !0 },
1302
- hoverredDay: { type: Object, default: void 0 },
1303
- disabled: { type: Boolean, required: !0 }
1304
- },
1305
- emits: ["update:model-value", "update:calendar-date", "update:hoverred-day"],
1306
- setup(t, { emit: a }) {
1307
- const e = t, u = a, s = $({
1308
- get: () => e.modelValue,
1309
- set: (h) => u("update:model-value", h)
1310
- }), Y = $({
1311
- get: () => e.hoverredDay,
1312
- set: (h) => u("update:hoverred-day", h)
1313
- });
1314
- function v(h) {
1315
- return D(e.calendarDate).add(h, "month").format();
1316
- }
1317
- const d = $({
1318
- get: () => v(e.offsetMonth),
1319
- set: (h) => u("update:calendar-date", h)
1320
- });
1321
- return (h, p) => (k(), I("div", oa, [
1322
- j(_t, {
1323
- locale: t.locale,
1324
- "first-day-of-week": t.firstDayOfWeek,
1325
- class: "maz-picker-calendar-month__days"
1326
- }, null, 8, ["locale", "first-day-of-week"]),
1327
- j(na, {
1328
- modelValue: s.value,
1329
- "onUpdate:modelValue": p[0] || (p[0] = (f) => s.value = f),
1330
- "hoverred-day": Y.value,
1331
- "onUpdate:hoverredDay": p[1] || (p[1] = (f) => Y.value = f),
1332
- locale: t.locale,
1333
- color: t.color,
1334
- "has-time": t.hasTime,
1335
- "calendar-date": d.value,
1336
- "first-day-of-week": t.firstDayOfWeek,
1337
- "min-date": t.minDate,
1338
- "max-date": t.maxDate,
1339
- "disabled-weekly": t.disabledWeekly,
1340
- "disabled-dates": t.disabledDates,
1341
- disabled: t.disabled
1342
- }, null, 8, ["modelValue", "hoverred-day", "locale", "color", "has-time", "calendar-date", "first-day-of-week", "min-date", "max-date", "disabled-weekly", "disabled-dates", "disabled"])
1343
- ]));
1344
- }
1345
- }), ia = /* @__PURE__ */ oe(la, [["__scopeId", "data-v-c9ace16d"]]), sa = {
1346
- xmlns: "http://www.w3.org/2000/svg",
1347
- width: "1em",
1348
- height: "1em",
1349
- fill: "none",
1350
- viewBox: "0 0 24 24"
1351
- };
1352
- function ua(t, a) {
1353
- return k(), I("svg", sa, a[0] || (a[0] = [
1354
- K(
1355
- "path",
1356
- {
1357
- stroke: "currentColor",
1358
- "stroke-linecap": "round",
1359
- "stroke-linejoin": "round",
1360
- "stroke-width": "1.5",
1361
- d: "M15.75 19.5 8.25 12l7.5-7.5"
1362
- },
1363
- null,
1364
- -1
1365
- /* HOISTED */
1366
- )
1367
- ]));
1368
- }
1369
- const He = { render: ua }, da = { class: "m-picker-calendar-switcher" }, ca = /* @__PURE__ */ ne({
1370
- __name: "MazPickerCalendarSwitcher",
1371
- props: {
1372
- calendarDate: { type: String, default: void 0 },
1373
- locale: { type: String, required: !0 },
1374
- double: { type: Boolean, required: !0 }
1375
- },
1376
- emits: [
1377
- "previous",
1378
- "next",
1379
- "open-month-switcher",
1380
- "open-year-switcher",
1381
- "update:calendar-date"
1382
- ],
1383
- setup(t, { emit: a }) {
1384
- const e = t, u = a, s = $(() => D(e.calendarDate)), Y = $(() => e.double ? `${fe(
1385
- ee(s.value.format(), e.locale, { month: "long" })
1386
- )} - ${fe(
1387
- ee(s.value.add(1, "month").format(), e.locale, {
1388
- month: "long"
1389
- })
1390
- )}` : fe(ee(s.value.format(), e.locale, { month: "long" }))), v = $(
1391
- () => ee(s.value.format(), e.locale, { year: "numeric" })
1392
- );
1393
- function d() {
1394
- u("update:calendar-date", D(e.calendarDate).subtract(1, "month").format());
1395
- }
1396
- function h() {
1397
- u("update:calendar-date", D(e.calendarDate).add(1, "month").format());
1398
- }
1399
- return (p, f) => (k(), I("div", da, [
1400
- j(ae, {
1401
- size: "xs",
1402
- color: "transparent",
1403
- type: "button",
1404
- onClick: d
1405
- }, {
1406
- default: G(() => [
1407
- j(N(He), { class: "maz-text-lg" })
1408
- ]),
1409
- _: 1
1410
- /* STABLE */
1411
- }),
1412
- j(ae, {
1413
- size: "sm",
1414
- color: "transparent",
1415
- type: "button",
1416
- class: "m-picker-calendar-switcher__date",
1417
- onClick: f[0] || (f[0] = (z) => p.$emit("open-month-switcher", z))
1418
- }, {
1419
- default: G(() => [
1420
- $e(
1421
- re(Y.value),
1422
- 1
1423
- /* TEXT */
1424
- )
1425
- ]),
1426
- _: 1
1427
- /* STABLE */
1428
- }),
1429
- j(ae, {
1430
- size: "sm",
1431
- color: "transparent",
1432
- type: "button",
1433
- class: "m-picker-calendar-switcher__date",
1434
- onClick: f[1] || (f[1] = (z) => p.$emit("open-year-switcher", z))
1435
- }, {
1436
- default: G(() => [
1437
- $e(
1438
- re(v.value),
1439
- 1
1440
- /* TEXT */
1441
- )
1442
- ]),
1443
- _: 1
1444
- /* STABLE */
1445
- }),
1446
- j(ae, {
1447
- size: "xs",
1448
- color: "transparent",
1449
- type: "button",
1450
- onClick: h
1451
- }, {
1452
- default: G(() => [
1453
- j(N(He), { class: "maz-rotate-180 maz-text-lg" })
1454
- ]),
1455
- _: 1
1456
- /* STABLE */
1457
- })
1458
- ]));
1459
- }
1460
- }), ma = /* @__PURE__ */ oe(ca, [["__scopeId", "data-v-bd07ac27"]]), fa = {
1461
- xmlns: "http://www.w3.org/2000/svg",
1462
- width: "1em",
1463
- height: "1em",
1464
- fill: "none",
1465
- viewBox: "0 0 24 24"
1466
- };
1467
- function va(t, a) {
1468
- return k(), I("svg", fa, a[0] || (a[0] = [
1469
- K(
1470
- "path",
1471
- {
1472
- stroke: "currentColor",
1473
- "stroke-linecap": "round",
1474
- "stroke-linejoin": "round",
1475
- "stroke-width": "1.5",
1476
- d: "M6 18 18 6M6 6l12 12"
1477
- },
1478
- null,
1479
- -1
1480
- /* HOISTED */
1481
- )
1482
- ]));
1483
- }
1484
- const ot = { render: va }, ha = { class: "maz-picker-month-switcher" }, ya = { class: "maz-picker-month-switcher__header" }, pa = /* @__PURE__ */ ne({
1485
- __name: "MazPickerMonthSwitcher",
1486
- props: {
1487
- calendarDate: { type: String, required: !0 },
1488
- color: { type: String, required: !0 },
1489
- locale: { type: String, required: !0 },
1490
- double: { type: Boolean, required: !0 }
1491
- },
1492
- emits: ["update:calendar-date", "close"],
1493
- setup(t, { emit: a }) {
1494
- const e = t, u = a, s = $(() => Array.from({ length: 12 }, (v, d) => d).map((v) => {
1495
- const d = D(e.calendarDate).set("month", v);
1496
- return e.double ? {
1497
- label: `${fe(
1498
- ee(d.format(), e.locale, {
1499
- month: "short"
1500
- })
1501
- )} - ${fe(
1502
- ee(d.add(1, "month").format(), e.locale, {
1503
- month: "short"
1504
- })
1505
- )}`,
1506
- date: d
1507
- } : {
1508
- label: fe(
1509
- ee(d.format(), e.locale, {
1510
- month: "long"
1511
- })
1512
- ),
1513
- date: d
1514
- };
1515
- }));
1516
- function Y(v) {
1517
- u("update:calendar-date", v.format()), u("close");
1518
- }
1519
- return (v, d) => (k(), I("div", ha, [
1520
- K("div", ya, [
1521
- j(ae, {
1522
- size: "xs",
1523
- color: "transparent",
1524
- type: "button",
1525
- onClick: d[0] || (d[0] = ye((h) => v.$emit("close", h), ["stop"]))
1526
- }, {
1527
- default: G(() => [
1528
- j(N(ot), { class: "maz-text-lg" })
1529
- ]),
1530
- _: 1
1531
- /* STABLE */
1532
- })
1533
- ]),
1534
- K(
1535
- "div",
1536
- {
1537
- class: U(["maz-picker-month-switcher__main", { "--has-double": t.double }])
1538
- },
1539
- [
1540
- (k(!0), I(
1541
- le,
1542
- null,
1543
- ie(s.value, (h) => (k(), F(ae, {
1544
- key: h.label,
1545
- size: e.double ? "sm" : "xs",
1546
- class: U({
1547
- "--is-selected": N(de)(h.date, t.calendarDate, "month")
1548
- }),
1549
- color: N(de)(h.date, t.calendarDate, "month") ? t.color : "transparent",
1550
- type: "button",
1551
- onClick: ye((p) => Y(h.date), ["stop"])
1552
- }, {
1553
- default: G(() => [
1554
- $e(
1555
- re(h.label),
1556
- 1
1557
- /* TEXT */
1558
- )
1559
- ]),
1560
- _: 2
1561
- /* DYNAMIC */
1562
- }, 1032, ["size", "class", "color", "onClick"]))),
1563
- 128
1564
- /* KEYED_FRAGMENT */
1565
- ))
1566
- ],
1567
- 2
1568
- /* CLASS */
1569
- )
1570
- ]));
1571
- }
1572
- }), ba = /* @__PURE__ */ oe(pa, [["__scopeId", "data-v-e125d63c"]]), Da = { class: "maz-picker-shortcuts" }, ka = /* @__PURE__ */ ne({
1573
- __name: "MazPickerShortcuts",
1574
- props: {
1575
- color: { type: String, required: !0 },
1576
- modelValue: {
1577
- type: [String, Object],
1578
- default: void 0
1579
- },
1580
- shortcuts: {
1581
- type: Array,
1582
- required: !0
1583
- },
1584
- double: { type: Boolean, required: !0 },
1585
- shortcut: { type: String, default: void 0 },
1586
- disabled: { type: Boolean, required: !0 }
1587
- },
1588
- emits: ["update:model-value"],
1589
- setup(t, { emit: a }) {
1590
- const e = t, u = a, s = X(e.shortcut);
1591
- function Y(v, d) {
1592
- s.value = d, u("update:model-value", v);
1593
- }
1594
- return pe(
1595
- () => e.modelValue,
1596
- (v) => {
1597
- const d = v;
1598
- d != null && d.end || (s.value = void 0);
1599
- }
1600
- ), pe(
1601
- () => e.shortcut,
1602
- (v) => {
1603
- const d = e.shortcuts.find(({ identifier: h }) => v === h);
1604
- if (d) {
1605
- const { value: h, identifier: p } = d;
1606
- Y(h, p);
1607
- }
1608
- },
1609
- { immediate: !0 }
1610
- ), (v, d) => (k(), I("div", Da, [
1611
- (k(!0), I(
1612
- le,
1613
- null,
1614
- ie(t.shortcuts, ({ identifier: h, label: p, value: f }) => (k(), F(ae, {
1615
- key: h,
1616
- type: "button",
1617
- size: "sm",
1618
- disabled: t.disabled,
1619
- color: h === s.value ? e.color : "transparent",
1620
- class: U({ "--is-selected": h === s.value }),
1621
- onClick: ye((z) => Y(f, h), ["stop"])
1622
- }, {
1623
- default: G(() => [
1624
- $e(
1625
- re(p),
1626
- 1
1627
- /* TEXT */
1628
- )
1629
- ]),
1630
- _: 2
1631
- /* DYNAMIC */
1632
- }, 1032, ["disabled", "color", "class", "onClick"]))),
1633
- 128
1634
- /* KEYED_FRAGMENT */
1635
- ))
1636
- ]));
1637
- }
1638
- }), ga = /* @__PURE__ */ oe(ka, [["__scopeId", "data-v-3b44c0d0"]]), wa = { class: "maz-picker-year-switcher" }, $a = { class: "maz-picker-year-switcher__header" }, Ma = { class: "maz-flex maz-space-x-2" }, za = { class: "maz-picker-year-switcher__main" }, Sa = /* @__PURE__ */ ne({
1639
- __name: "MazPickerYearSwitcher",
1640
- props: {
1641
- color: { type: String, required: !0 },
1642
- locale: { type: String, required: !0 },
1643
- calendarDate: { type: String, required: !0 }
1644
- },
1645
- emits: ["update:calendar-date", "close"],
1646
- setup(t, { emit: a }) {
1647
- const e = t, u = a, s = X(e.calendarDate), Y = $(() => Array.from({ length: 15 }, (p, f) => f - 7).map((p) => {
1648
- const f = D(s.value).get("year"), z = D(s.value).set("year", f + p);
1649
- return {
1650
- label: ee(z.format(), e.locale, {
1651
- year: "numeric"
1652
- }),
1653
- date: z
1654
- };
1655
- }));
1656
- function v(p) {
1657
- u("update:calendar-date", D(p).format()), u("close");
1658
- }
1659
- function d() {
1660
- s.value = D(s.value).subtract(7, "year").format();
1661
- }
1662
- function h() {
1663
- s.value = D(s.value).add(7, "year").format();
1664
- }
1665
- return (p, f) => (k(), I("div", wa, [
1666
- K("div", $a, [
1667
- K("div", Ma, [
1668
- j(ae, {
1669
- size: "xs",
1670
- color: "transparent",
1671
- type: "button",
1672
- onClick: ye(d, ["stop"])
1673
- }, {
1674
- default: G(() => [
1675
- j(N(He), { class: "maz-text-lg" })
1676
- ]),
1677
- _: 1
1678
- /* STABLE */
1679
- }),
1680
- j(ae, {
1681
- size: "xs",
1682
- color: "transparent",
1683
- type: "button",
1684
- onClick: ye(h, ["stop"])
1685
- }, {
1686
- default: G(() => [
1687
- j(N(He), { class: "maz-rotate-180 maz-text-lg" })
1688
- ]),
1689
- _: 1
1690
- /* STABLE */
1691
- })
1692
- ]),
1693
- j(ae, {
1694
- size: "xs",
1695
- color: "transparent",
1696
- type: "button",
1697
- onClick: f[0] || (f[0] = ye((z) => p.$emit("close", z), ["stop"]))
1698
- }, {
1699
- default: G(() => [
1700
- j(N(ot), { class: "maz-text-lg" })
1701
- ]),
1702
- _: 1
1703
- /* STABLE */
1704
- })
1705
- ]),
1706
- K("div", za, [
1707
- (k(!0), I(
1708
- le,
1709
- null,
1710
- ie(Y.value, (z) => (k(), F(ae, {
1711
- key: z.label,
1712
- size: "sm",
1713
- type: "button",
1714
- class: U({
1715
- "--is-selected": N(de)(z.date, t.calendarDate, "year")
1716
- }),
1717
- color: N(de)(z.date, t.calendarDate, "year") ? t.color : "transparent",
1718
- onClick: ye((x) => v(z.date), ["stop"])
1719
- }, {
1720
- default: G(() => [
1721
- $e(
1722
- re(z.label),
1723
- 1
1724
- /* TEXT */
1725
- )
1726
- ]),
1727
- _: 2
1728
- /* DYNAMIC */
1729
- }, 1032, ["class", "color", "onClick"]))),
1730
- 128
1731
- /* KEYED_FRAGMENT */
1732
- ))
1733
- ])
1734
- ]));
1735
- }
1736
- }), Ya = /* @__PURE__ */ oe(Sa, [["__scopeId", "data-v-1d7d1729"]]), Va = { class: "maz-picker-calendar flex" }, Ba = { class: "maz-picker-calendar__months" }, Oa = /* @__PURE__ */ ne({
1737
- __name: "MazPickerCalendar",
1738
- props: {
1739
- modelValue: {
1740
- type: [String, Object],
1741
- default: void 0
1742
- },
1743
- calendarDate: { type: String, required: !0 },
1744
- color: { type: String, required: !0 },
1745
- locale: { type: String, required: !0 },
1746
- firstDayOfWeek: { type: Number, required: !0 },
1747
- double: { type: Boolean, required: !0 },
1748
- minDate: { type: String, default: void 0 },
1749
- maxDate: { type: String, default: void 0 },
1750
- disabledWeekly: { type: Array, required: !0 },
1751
- disabledDates: { type: Array, required: !0 },
1752
- shortcuts: {
1753
- type: Array,
1754
- required: !0
1755
- },
1756
- noShortcuts: { type: Boolean, required: !0 },
1757
- hasTime: { type: Boolean, required: !0 },
1758
- shortcut: { type: String, default: void 0 },
1759
- disabled: { type: Boolean, required: !0 }
1760
- },
1761
- emits: ["update:model-value", "update:calendar-date"],
1762
- setup(t, { emit: a }) {
1763
- const e = t, u = a, s = X(), Y = $(() => e.modelValue && typeof e.modelValue == "object"), v = $(
1764
- () => !e.noShortcuts && e.shortcuts.length > 0 && Y.value
1765
- ), d = X(!1), h = X(!1), p = $({
1766
- get: () => e.modelValue,
1767
- set: (x) => u("update:model-value", x)
1768
- }), f = $(() => Array.from({ length: e.double ? 2 : 1 }, (x, w) => w)), z = $({
1769
- get: () => e.calendarDate,
1770
- set: (x) => u("update:calendar-date", x)
1771
- });
1772
- return (x, w) => (k(), I("div", Va, [
1773
- v.value ? (k(), F(ga, {
1774
- key: 0,
1775
- modelValue: p.value,
1776
- "onUpdate:modelValue": w[0] || (w[0] = (b) => p.value = b),
1777
- color: t.color,
1778
- shortcuts: t.shortcuts,
1779
- shortcut: t.shortcut,
1780
- double: t.double,
1781
- disabled: t.disabled
1782
- }, null, 8, ["modelValue", "color", "shortcuts", "shortcut", "double", "disabled"])) : R("v-if", !0),
1783
- K(
1784
- "div",
1785
- {
1786
- class: U(["maz-picker-calendar__main", { "--has-double": t.double }])
1787
- },
1788
- [
1789
- j(ma, {
1790
- "calendar-date": z.value,
1791
- "onUpdate:calendarDate": w[1] || (w[1] = (b) => z.value = b),
1792
- locale: t.locale,
1793
- double: t.double,
1794
- onOpenMonthSwitcher: w[2] || (w[2] = (b) => d.value = !0),
1795
- onOpenYearSwitcher: w[3] || (w[3] = (b) => h.value = !0)
1796
- }, null, 8, ["calendar-date", "locale", "double"]),
1797
- j(Fe, { name: "maz-picker-slide" }, {
1798
- default: G(() => [
1799
- d.value ? (k(), F(ba, {
1800
- key: 0,
1801
- "calendar-date": z.value,
1802
- "onUpdate:calendarDate": w[4] || (w[4] = (b) => z.value = b),
1803
- color: t.color,
1804
- double: t.double,
1805
- locale: t.locale,
1806
- onClose: w[5] || (w[5] = (b) => d.value = !1)
1807
- }, null, 8, ["calendar-date", "color", "double", "locale"])) : R("v-if", !0)
1808
- ]),
1809
- _: 1
1810
- /* STABLE */
1811
- }),
1812
- j(Fe, { name: "maz-picker-slide" }, {
1813
- default: G(() => [
1814
- h.value ? (k(), F(Ya, {
1815
- key: 0,
1816
- "calendar-date": z.value,
1817
- "onUpdate:calendarDate": w[6] || (w[6] = (b) => z.value = b),
1818
- color: t.color,
1819
- locale: t.locale,
1820
- onClose: w[7] || (w[7] = (b) => h.value = !1)
1821
- }, null, 8, ["calendar-date", "color", "locale"])) : R("v-if", !0)
1822
- ]),
1823
- _: 1
1824
- /* STABLE */
1825
- }),
1826
- K("div", Ba, [
1827
- (k(!0), I(
1828
- le,
1829
- null,
1830
- ie(f.value, (b) => (k(), F(ia, {
1831
- key: b,
1832
- modelValue: p.value,
1833
- "onUpdate:modelValue": w[8] || (w[8] = (Q) => p.value = Q),
1834
- "hoverred-day": s.value,
1835
- "onUpdate:hoverredDay": w[9] || (w[9] = (Q) => s.value = Q),
1836
- "calendar-date": z.value,
1837
- locale: t.locale,
1838
- "has-time": t.hasTime,
1839
- color: t.color,
1840
- "offset-month": b,
1841
- "first-day-of-week": t.firstDayOfWeek,
1842
- "min-date": t.minDate,
1843
- "max-date": t.maxDate,
1844
- disabled: t.disabled,
1845
- "disabled-weekly": t.disabledWeekly,
1846
- "disabled-dates": t.disabledDates
1847
- }, null, 8, ["modelValue", "hoverred-day", "calendar-date", "locale", "has-time", "color", "offset-month", "first-day-of-week", "min-date", "max-date", "disabled", "disabled-weekly", "disabled-dates"]))),
1848
- 128
1849
- /* KEYED_FRAGMENT */
1850
- ))
1851
- ])
1852
- ],
1853
- 2
1854
- /* CLASS */
1855
- )
1856
- ]));
1857
- }
1858
- }), Ca = /* @__PURE__ */ oe(Oa, [["__scopeId", "data-v-caeb31ab"]]), qa = {
1859
- key: 0,
1860
- class: "m-picker-header__date"
1861
- }, Ia = /* @__PURE__ */ ne({
1862
- __name: "MazPickerHeader",
1863
- props: {
1864
- modelValue: {
1865
- type: [String, Object],
1866
- default: void 0
1867
- },
1868
- color: { type: String, required: !0 },
1869
- locale: { type: String, required: !0 },
1870
- noShortcuts: { type: Boolean, required: !0 },
1871
- double: { type: Boolean, required: !0 },
1872
- hasDate: { type: Boolean, required: !0 },
1873
- hasTime: { type: Boolean, required: !0 },
1874
- formatterOptions: {
1875
- type: Object,
1876
- required: !0
1877
- },
1878
- calendarDate: { type: String, required: !0 }
1879
- },
1880
- setup(t) {
1881
- const a = t, e = $(
1882
- () => {
1883
- var f;
1884
- return typeof a.modelValue == "string" ? a.modelValue : (f = a.modelValue) == null ? void 0 : f.start;
1885
- }
1886
- ), u = X("maz-slidevnext"), s = $(() => a.modelValue && typeof a.modelValue == "object" ? `${a.modelValue.start ? ee(a.modelValue.start, a.locale, {
1887
- year: "numeric",
1888
- timeZone: a.formatterOptions.timeZone
1889
- }) : "..."} - ${a.modelValue.end ? ee(a.modelValue.end, a.locale, {
1890
- year: "numeric",
1891
- timeZone: a.formatterOptions.timeZone
1892
- }) : "..."}` : typeof a.modelValue == "string" ? ee(a.modelValue, a.locale, {
1893
- year: "numeric",
1894
- timeZone: a.formatterOptions.timeZone
1895
- }) : "-"), Y = $(() => a.hasDate ? [s.value] : void 0), v = $(() => {
1896
- if (a.modelValue && typeof a.modelValue == "object" && (a.modelValue.start || a.modelValue.end)) {
1897
- const f = a.noShortcuts && !a.double ? "short" : "long";
1898
- return `${a.modelValue.start ? fe(
1899
- ee(a.modelValue.start, a.locale, {
1900
- weekday: f,
1901
- month: f,
1902
- day: "numeric",
1903
- timeZone: a.formatterOptions.timeZone
1904
- })
1905
- ) : "..."} - ${a.modelValue.end ? fe(
1906
- ee(a.modelValue.end, a.locale, {
1907
- weekday: f,
1908
- month: f,
1909
- day: "numeric",
1910
- timeZone: a.formatterOptions.timeZone
1911
- })
1912
- ) : "..."}`;
1913
- } else if (typeof a.modelValue == "string")
1914
- return fe(
1915
- ee(a.modelValue, a.locale, {
1916
- weekday: "long",
1917
- month: "long",
1918
- day: "numeric",
1919
- timeZone: a.formatterOptions.timeZone
1920
- })
1921
- );
1922
- return "-";
1923
- }), d = $(() => a.hasDate ? [v.value] : void 0), h = $(() => e.value ? ee(e.value, a.locale, {
1924
- timeStyle: "short",
1925
- timeZone: a.formatterOptions.timeZone,
1926
- hour12: a.formatterOptions.hour12
1927
- }) : void 0), p = $(() => a.hasTime ? [h.value] : void 0);
1928
- return pe(
1929
- () => a.modelValue,
1930
- (f, z) => {
1931
- const x = typeof f == "object" ? f.start : f, w = typeof z == "object" ? z.start : z;
1932
- u.value = D(x).isAfter(w, "date") || D(x).isSame(w, "date") ? "maz-slidevnext" : "maz-slidevprev";
1933
- }
1934
- ), (f, z) => (k(), I(
1935
- "div",
1936
- {
1937
- class: U(["m-picker-header", [`--${t.color}`]])
1938
- },
1939
- [
1940
- t.hasDate ? (k(), I("div", qa, [
1941
- j(Be, {
1942
- name: u.value,
1943
- tag: "div",
1944
- class: "m-picker-header__year-transition"
1945
- }, {
1946
- default: G(() => [
1947
- (k(!0), I(
1948
- le,
1949
- null,
1950
- ie(Y.value, (x, w) => (k(), I(
1951
- "span",
1952
- {
1953
- key: `${x}-${w}`,
1954
- class: "m-picker-header__year-text"
1955
- },
1956
- re(x),
1957
- 1
1958
- /* TEXT */
1959
- ))),
1960
- 128
1961
- /* KEYED_FRAGMENT */
1962
- ))
1963
- ]),
1964
- _: 1
1965
- /* STABLE */
1966
- }, 8, ["name"]),
1967
- j(Be, {
1968
- name: u.value,
1969
- tag: "div",
1970
- class: "m-picker-header__date-transition"
1971
- }, {
1972
- default: G(() => [
1973
- (k(!0), I(
1974
- le,
1975
- null,
1976
- ie(d.value, (x, w) => (k(), I(
1977
- "span",
1978
- {
1979
- key: `${x}-${w}`,
1980
- class: "m-picker-header__date-text"
1981
- },
1982
- re(x),
1983
- 1
1984
- /* TEXT */
1985
- ))),
1986
- 128
1987
- /* KEYED_FRAGMENT */
1988
- ))
1989
- ]),
1990
- _: 1
1991
- /* STABLE */
1992
- }, 8, ["name"])
1993
- ])) : R("v-if", !0),
1994
- p.value ? (k(), I(
1995
- "div",
1996
- {
1997
- key: 1,
1998
- class: U(["m-picker-header__time", { "--has-date": t.hasDate }])
1999
- },
2000
- [
2001
- j(Be, {
2002
- name: u.value,
2003
- tag: "div",
2004
- class: "m-picker-header__time-transition"
2005
- }, {
2006
- default: G(() => [
2007
- (k(!0), I(
2008
- le,
2009
- null,
2010
- ie(p.value, (x, w) => (k(), I(
2011
- "span",
2012
- {
2013
- key: `${x}-${w}`,
2014
- class: "m-picker-header__time-text"
2015
- },
2016
- re(x),
2017
- 1
2018
- /* TEXT */
2019
- ))),
2020
- 128
2021
- /* KEYED_FRAGMENT */
2022
- ))
2023
- ]),
2024
- _: 1
2025
- /* STABLE */
2026
- }, 8, ["name"])
2027
- ],
2028
- 2
2029
- /* CLASS */
2030
- )) : R("v-if", !0)
2031
- ],
2032
- 2
2033
- /* CLASS */
2034
- ));
2035
- }
2036
- }), Ta = /* @__PURE__ */ oe(Ia, [["__scopeId", "data-v-5facbbf5"]]), Ha = { class: "m-picker-time__column__items" }, Pa = /* @__PURE__ */ ne({
2037
- __name: "MazPickerTime",
2038
- props: {
2039
- modelValue: {
2040
- type: [String, Object],
2041
- default: void 0
2042
- },
2043
- calendarDate: { type: String, required: !0 },
2044
- formatterOptions: {
2045
- type: Object,
2046
- required: !0
2047
- },
2048
- locale: { type: String, required: !0 },
2049
- color: { type: String, required: !0 },
2050
- isOpen: { type: Boolean, required: !0 },
2051
- hasDate: { type: Boolean, required: !0 },
2052
- minuteInterval: { type: Number, required: !0 },
2053
- disabledHours: { type: Array, default: void 0 },
2054
- format: { type: String, required: !0 },
2055
- isHour12: { type: Boolean, required: !0 },
2056
- minDate: { type: String, default: void 0 },
2057
- maxDate: { type: String, default: void 0 },
2058
- disabled: { type: Boolean, required: !0 }
2059
- },
2060
- emits: ["update:model-value"],
2061
- setup(t, { emit: a }) {
2062
- const e = t, u = a, s = $({
2063
- get: () => e.modelValue,
2064
- set: (g) => {
2065
- u("update:model-value", g);
2066
- }
2067
- }), Y = $(() => Array.from({ length: e.isHour12 ? 12 : 24 }, (g, S) => S).map((g) => {
2068
- const S = g + (e.isHour12 ? 1 : 0), B = Q(S), C = D(s.value).set("hour", B), L = T(B) || (e.minDate && s.value ? D(e.minDate).isAfter(C, "hour") : !1) || (e.maxDate && s.value ? D(e.maxDate).isBefore(C, "hour") : !1);
2069
- return {
2070
- label: `${S < 10 ? "0" : ""}${S}`,
2071
- value: D(s.value).set("hour", B),
2072
- isDisabled: L
2073
- };
2074
- })), v = $(() => {
2075
- const g = Math.floor(60 / e.minuteInterval) - 0;
2076
- return Array.from({ length: g }, (S, B) => B * e.minuteInterval).map((S) => {
2077
- const B = D(s.value).set("minute", S), C = (e.minDate && s.value ? D(e.minDate).isAfter(B, "minute") : !1) || (e.maxDate && s.value ? D(e.maxDate).isBefore(B, "minute") : !1);
2078
- return {
2079
- label: `${S < 10 ? "0" : ""}${S}`,
2080
- value: B,
2081
- isDisabled: C
2082
- };
2083
- });
2084
- }), d = $(() => typeof s.value == "string" ? x(D(s.value).get("hour")) : void 0), h = $(
2085
- () => typeof s.value == "string" ? Qe(
2086
- v.value.map(({ value: g }) => g.get("minute")),
2087
- D(s.value).get("minute")
2088
- ) : void 0
2089
- ), p = $(() => typeof d.value == "number" ? d.value >= 12 ? "pm" : "am" : void 0), f = $(
2090
- () => e.isHour12 ? [
2091
- { label: "AM", value: "am" },
2092
- { label: "PM", value: "pm" }
2093
- ] : []
2094
- ), z = $(() => {
2095
- const g = [
2096
- {
2097
- identifier: "hour",
2098
- values: Y.value
2099
- },
2100
- {
2101
- identifier: "minute",
2102
- values: v.value
2103
- }
2104
- ];
2105
- return e.isHour12 && g.push({
2106
- identifier: "ampm",
2107
- values: f.value
2108
- }), g;
2109
- });
2110
- function x(g) {
2111
- if (!e.disabledHours)
2112
- return g;
2113
- const S = Array.from({ length: 24 }, (C, L) => L).filter(
2114
- (C) => {
2115
- var L;
2116
- return !((L = e.disabledHours) != null && L.includes(C)) || !0;
2117
- }
2118
- ), B = Qe(S, g);
2119
- return B !== g && E("hour", D(s.value).set("hour", B)), B;
2120
- }
2121
- const w = X(), b = X();
2122
- function Q(g) {
2123
- if (e.isHour12) {
2124
- const B = p.value === "pm" ? g + 12 : g;
2125
- return B === 12 ? 0 : B === 24 ? 12 : B;
2126
- } else
2127
- return g;
2128
- }
2129
- pe(
2130
- () => e.isOpen,
2131
- async (g) => {
2132
- var S;
2133
- if (g) {
2134
- if (await ge(), w.value) {
2135
- const B = w.value.querySelector(
2136
- ".m-picker-time__column .m-btn"
2137
- ), C = B == null ? void 0 : B.offsetHeight, P = ((S = w.value) == null ? void 0 : S.offsetHeight) / 2 - C / 2;
2138
- b.value = P / 16;
2139
- }
2140
- V(!1);
2141
- }
2142
- },
2143
- { immediate: !0 }
2144
- ), pe(
2145
- () => e.modelValue,
2146
- async (g, S) => {
2147
- g !== S && (await ge(), V(!0));
2148
- },
2149
- { immediate: !0 }
2150
- );
2151
- function V(g) {
2152
- H("hour", g), H("minute", g), e.isHour12 && H("ampm", g);
2153
- }
2154
- function T(g) {
2155
- return (e.disabledHours && e.disabledHours.includes(g)) ?? !1;
2156
- }
2157
- function A(g, S) {
2158
- return S === "am" || S === "pm" ? p.value === S : g === "hour" ? d.value === S.get(g) : g === "minute" ? h.value === S.get(g) : !1;
2159
- }
2160
- async function H(g, S = !0) {
2161
- if (w.value) {
2162
- const B = w.value.querySelector(`.m-picker-time__column__${g}`), C = w.value.querySelector(
2163
- `.m-picker-time__column__${g} .--is-selected`
2164
- );
2165
- b.value && B && C && w.value && (await ge(), Gt(B, C, b.value * 16, S));
2166
- }
2167
- }
2168
- async function E(g, S) {
2169
- const B = D(s.value);
2170
- if (g === "hour" && typeof S == "object" && (s.value = B.set("hour", S.get("hour")).format()), g === "minute" && typeof S == "object") {
2171
- const C = B.set("minute", S.get("minute"));
2172
- s.value = C.format();
2173
- }
2174
- if (g === "ampm" && (p.value !== S || !d.value) && (S === "am" && (s.value = B.set("hour", B.get("hour")).subtract(12, "hour").format()), S === "pm")) {
2175
- const C = B.get("hour"), L = C + 12 > 12 && C + 12 < 24 ? C + 12 : C === 0 ? 12 : C;
2176
- s.value = B.set("hour", L).format();
2177
- }
2178
- await ge(), H(g);
2179
- }
2180
- return (g, S) => (k(), I(
2181
- "div",
2182
- {
2183
- ref_key: "MazPickerTime",
2184
- ref: w,
2185
- class: U(["m-picker-time", { "--has-date": t.hasDate }])
2186
- },
2187
- [
2188
- (k(!0), I(
2189
- le,
2190
- null,
2191
- ie(z.value, ({ values: B, identifier: C }, L) => (k(), I(
2192
- "div",
2193
- {
2194
- key: L,
2195
- class: U(["m-picker-time__column", [`m-picker-time__column__${C}`]])
2196
- },
2197
- [
2198
- K(
2199
- "div",
2200
- {
2201
- style: Me({ height: `${b.value}rem` }),
2202
- class: "m-picker-time__column__divider"
2203
- },
2204
- null,
2205
- 4
2206
- /* STYLE */
2207
- ),
2208
- K("div", Ha, [
2209
- (k(!0), I(
2210
- le,
2211
- null,
2212
- ie(B, ({ value: P, label: q, isDisabled: Z }, i) => (k(), F(ae, {
2213
- key: i,
2214
- size: "xs",
2215
- color: A(C, P) ? t.color : "transparent",
2216
- class: U({ "--is-selected": A(C, P) }),
2217
- disabled: Z || t.disabled,
2218
- type: "button",
2219
- onClick: ye((M) => E(C, P), ["stop"])
2220
- }, {
2221
- default: G(() => [
2222
- $e(
2223
- re(q),
2224
- 1
2225
- /* TEXT */
2226
- )
2227
- ]),
2228
- _: 2
2229
- /* DYNAMIC */
2230
- }, 1032, ["color", "class", "disabled", "onClick"]))),
2231
- 128
2232
- /* KEYED_FRAGMENT */
2233
- ))
2234
- ]),
2235
- K(
2236
- "div",
2237
- {
2238
- style: Me({ height: `${b.value}rem` }),
2239
- class: "m-picker-time__column__divider"
2240
- },
2241
- null,
2242
- 4
2243
- /* STYLE */
2244
- )
2245
- ],
2246
- 2
2247
- /* CLASS */
2248
- ))),
2249
- 128
2250
- /* KEYED_FRAGMENT */
2251
- ))
2252
- ],
2253
- 2
2254
- /* CLASS */
2255
- ));
2256
- }
2257
- }), xa = /* @__PURE__ */ oe(Pa, [["__scopeId", "data-v-7347ac9d"]]), Aa = { class: "m-picker-container__wrapper" }, La = /* @__PURE__ */ ne({
2258
- __name: "MazPickerContainer",
2259
- props: {
2260
- modelValue: {
2261
- type: [String, Object],
2262
- default: void 0
2263
- },
2264
- calendarDate: { type: String, required: !0 },
2265
- color: { type: String, required: !0 },
2266
- locale: { type: String, required: !0 },
2267
- noHeader: { type: Boolean, default: !1 },
2268
- firstDayOfWeek: { type: Number, required: !0 },
2269
- double: { type: Boolean, required: !0 },
2270
- hasDate: { type: Boolean, required: !0 },
2271
- minDate: { type: String, default: void 0 },
2272
- maxDate: { type: String, default: void 0 },
2273
- inline: { type: Boolean, required: !0 },
2274
- noShortcuts: { type: Boolean, required: !0 },
2275
- shortcuts: {
2276
- type: Array,
2277
- required: !0
2278
- },
2279
- shortcut: { type: String, default: void 0 },
2280
- hasTime: { type: Boolean, required: !0 },
2281
- isOpen: { type: Boolean, required: !0 },
2282
- format: { type: String, required: !0 },
2283
- isHour12: { type: Boolean, required: !0 },
2284
- formatterOptions: {
2285
- type: Object,
2286
- required: !0
2287
- },
2288
- minuteInterval: { type: Number, required: !0 },
2289
- disabled: { type: Boolean, required: !0 },
2290
- disabledWeekly: { type: Array, required: !0 },
2291
- disabledHours: { type: Array, required: !0 },
2292
- disabledDates: { type: Array, required: !0 }
2293
- },
2294
- emits: ["update:model-value", "update:calendar-date", "close"],
2295
- setup(t, { emit: a }) {
2296
- const e = t, u = a, s = $({
2297
- get: () => e.modelValue,
2298
- set: (v) => {
2299
- u("update:model-value", v);
2300
- }
2301
- }), Y = $({
2302
- get: () => e.calendarDate,
2303
- set: (v) => u("update:calendar-date", v)
2304
- });
2305
- return (v, d) => (k(), I(
2306
- "div",
2307
- {
2308
- class: U(["m-picker-container", {
2309
- "--has-double": t.double,
2310
- "--is-inline": t.inline,
2311
- "--has-date": t.hasDate
2312
- }])
2313
- },
2314
- [
2315
- t.noHeader ? R("v-if", !0) : (k(), F(Ta, {
2316
- key: 0,
2317
- color: t.color,
2318
- "has-time": t.hasTime,
2319
- "model-value": t.modelValue,
2320
- locale: t.locale,
2321
- "calendar-date": Y.value,
2322
- "has-date": t.hasDate,
2323
- "formatter-options": t.formatterOptions,
2324
- double: t.double,
2325
- "no-shortcuts": t.noShortcuts,
2326
- class: "m-picker-container__header"
2327
- }, null, 8, ["color", "has-time", "model-value", "locale", "calendar-date", "has-date", "formatter-options", "double", "no-shortcuts"])),
2328
- K("div", Aa, [
2329
- t.hasDate ? (k(), F(Ca, {
2330
- key: 0,
2331
- modelValue: s.value,
2332
- "onUpdate:modelValue": d[0] || (d[0] = (h) => s.value = h),
2333
- "calendar-date": Y.value,
2334
- "onUpdate:calendarDate": d[1] || (d[1] = (h) => Y.value = h),
2335
- color: t.color,
2336
- locale: t.locale,
2337
- "has-time": t.hasTime,
2338
- double: t.double,
2339
- "min-date": t.minDate,
2340
- "max-date": t.maxDate,
2341
- "first-day-of-week": t.firstDayOfWeek,
2342
- disabled: t.disabled,
2343
- "disabled-weekly": t.disabledWeekly,
2344
- "disabled-dates": t.disabledDates,
2345
- shortcuts: t.shortcuts,
2346
- shortcut: t.shortcut,
2347
- "no-shortcuts": t.noShortcuts,
2348
- class: "m-picker-container__calendar"
2349
- }, null, 8, ["modelValue", "calendar-date", "color", "locale", "has-time", "double", "min-date", "max-date", "first-day-of-week", "disabled", "disabled-weekly", "disabled-dates", "shortcuts", "shortcut", "no-shortcuts"])) : R("v-if", !0),
2350
- t.hasTime ? (k(), F(xa, {
2351
- key: 1,
2352
- modelValue: s.value,
2353
- "onUpdate:modelValue": d[2] || (d[2] = (h) => s.value = h),
2354
- "calendar-date": Y.value,
2355
- "onUpdate:calendarDate": d[3] || (d[3] = (h) => Y.value = h),
2356
- "is-open": t.isOpen,
2357
- color: t.color,
2358
- locale: t.locale,
2359
- "min-date": t.minDate,
2360
- "max-date": t.maxDate,
2361
- "has-date": t.hasDate,
2362
- format: t.format,
2363
- disabled: t.disabled,
2364
- "disabled-hours": t.disabledHours,
2365
- "minute-interval": t.minuteInterval,
2366
- "formatter-options": t.formatterOptions,
2367
- "is-hour12": t.isHour12,
2368
- class: "m-picker-container__time"
2369
- }, null, 8, ["modelValue", "calendar-date", "is-open", "color", "locale", "min-date", "max-date", "has-date", "format", "disabled", "disabled-hours", "minute-interval", "formatter-options", "is-hour12"])) : R("v-if", !0)
2370
- ])
2371
- ],
2372
- 2
2373
- /* CLASS */
2374
- ));
2375
- }
2376
- }), ja = /* @__PURE__ */ oe(La, [["__scopeId", "data-v-eaeb756b"]]), Wa = /* @__PURE__ */ ne({
2377
- inheritAttrs: !1,
2378
- __name: "MazPicker",
2379
- props: {
2380
- id: {},
2381
- style: { default: void 0 },
2382
- class: { default: void 0 },
2383
- modelValue: { default: void 0 },
2384
- format: { default: "YYYY-MM-DD" },
2385
- open: { type: Boolean, default: !1 },
2386
- label: { default: void 0 },
2387
- placeholder: { default: void 0 },
2388
- inputDateStyle: { default: () => ({ dateStyle: "full" }) },
2389
- inputDateTransformer: { type: Function, default: void 0 },
2390
- locale: { default: void 0 },
2391
- noHeader: { type: Boolean, default: !1 },
2392
- disabled: { type: Boolean, default: !1 },
2393
- firstDayOfWeek: { default: 0 },
2394
- autoClose: { type: Boolean, default: !1 },
2395
- customElementSelector: { default: void 0 },
2396
- double: { type: Boolean, default: !1 },
2397
- inline: { type: Boolean, default: !1 },
2398
- color: { default: "primary" },
2399
- pickerPosition: { default: void 0 },
2400
- time: { type: Boolean, default: !1 },
2401
- onlyTime: { type: Boolean, default: !1 },
2402
- minuteInterval: { default: 5 },
2403
- noUseBrowserLocale: { type: Boolean, default: !1 },
2404
- noFetchLocal: { type: Boolean, default: !1 },
2405
- noShortcuts: { type: Boolean, default: !1 },
2406
- shortcuts: { default: () => [
2407
- {
2408
- label: "Last 7 days",
2409
- identifier: "last7Days",
2410
- value: {
2411
- start: D().subtract(6, "day").format("YYYY-MM-DD"),
2412
- end: D().format("YYYY-MM-DD")
2413
- }
2414
- },
2415
- {
2416
- label: "Last 30 days",
2417
- identifier: "last30Days",
2418
- value: {
2419
- start: D().subtract(29, "day").format("YYYY-MM-DD"),
2420
- end: D().format("YYYY-MM-DD")
2421
- }
2422
- },
2423
- {
2424
- label: "This week",
2425
- identifier: "thisWeek",
2426
- value: {
2427
- start: D().startOf("week").format("YYYY-MM-DD"),
2428
- end: D().endOf("week").format("YYYY-MM-DD")
2429
- }
2430
- },
2431
- {
2432
- label: "Last week",
2433
- identifier: "lastWeek",
2434
- value: {
2435
- start: D().subtract(1, "week").startOf("week").format("YYYY-MM-DD"),
2436
- end: D().subtract(1, "week").endOf("week").format("YYYY-MM-DD")
2437
- }
2438
- },
2439
- {
2440
- label: "This month",
2441
- identifier: "thisMonth",
2442
- value: {
2443
- start: D().set("date", 1).format("YYYY-MM-DD"),
2444
- end: D().set("date", D().daysInMonth()).format("YYYY-MM-DD")
2445
- }
2446
- },
2447
- {
2448
- label: "This year",
2449
- identifier: "thisYear",
2450
- value: {
2451
- start: D().startOf("year").format("YYYY-MM-DD"),
2452
- end: D().endOf("year").format("YYYY-MM-DD")
2453
- }
2454
- },
2455
- {
2456
- label: "Last year",
2457
- identifier: "lastYear",
2458
- value: {
2459
- start: D().subtract(1, "year").startOf("year").format("YYYY-MM-DD"),
2460
- end: D().subtract(1, "year").endOf("year").format("YYYY-MM-DD")
2461
- }
2462
- }
2463
- ] },
2464
- shortcut: { default: void 0 },
2465
- minDate: { default: void 0 },
2466
- maxDate: { default: void 0 },
2467
- disabledWeekly: { default: () => [] },
2468
- disabledDates: { default: () => [] },
2469
- disabledHours: { default: () => [] },
2470
- block: { type: Boolean }
2471
- },
2472
- emits: ["update:model-value", "close"],
2473
- setup(t, { emit: a }) {
2474
- const e = t, u = a;
2475
- D.extend(gt), D.extend(zt);
2476
- const s = _e({ componentName: "MazPicker", providedId: e.id }), Y = X(e.locale), v = $(() => e.locale ?? Y.value ?? "en-US"), d = $(() => `mazPickerContainer-${s.value}`), h = X(), p = $({
2477
- get: () => e.modelValue && typeof e.modelValue == "object" ? {
2478
- start: e.modelValue.start ? D(e.modelValue.start, e.format).format() : void 0,
2479
- end: e.modelValue.end ? D(e.modelValue.end, e.format).format() : void 0
2480
- } : e.modelValue ? D(e.modelValue, e.format).format() : void 0,
2481
- set: (r) => {
2482
- if (e.disabled)
2483
- return;
2484
- m(r);
2485
- const l = typeof r == "object";
2486
- e.autoClose && (!l || l && r.end) && P();
2487
- }
2488
- }), f = $(() => e.time || e.onlyTime), z = $(() => e.double && !e.onlyTime), x = $(() => !e.onlyTime), w = $(() => typeof p.value == "object");
2489
- mt(() => {
2490
- w.value && f.value && console.error("[maz-ui](MazPicker) You can't use time picker with range picker"), f.value && !(e.format.includes("h") || e.format.includes("H")) && console.error(
2491
- '[maz-ui](MazPicker) When you use the time picker, you must provided a format with time - Ex: "YYYY-MM-DD HH:mm"'
2492
- ), e.format.includes("h") && !(e.format.includes("a") || e.format.includes("A")) && console.error(
2493
- '[maz-ui](MazPicker) if you use the 12 format "h" or "hh", you must add "a" or "A" at the end of the format - Ex: "YYYY-MM-DD hh:mm a"'
2494
- );
2495
- });
2496
- function b(r) {
2497
- const l = (typeof r == "object" ? r.start : r) ?? D().format();
2498
- return e.minDate && D(l).isBefore(e.minDate) ? e.minDate : e.maxDate && D(l).isAfter(e.maxDate) ? e.minDate ?? e.maxDate : l;
2499
- }
2500
- const Q = X(b(p.value)), V = $(
2501
- () => e.format.includes("a") || e.format.includes("A") || e.format.includes("h")
2502
- ), T = $(() => ({
2503
- ...e.inputDateStyle,
2504
- timeStyle: e.inputDateStyle.timeStyle ?? f.value ? "short" : void 0,
2505
- hour12: f.value ? e.inputDateStyle.hour12 ?? V.value : void 0
2506
- })), A = $(() => {
2507
- if (!p.value)
2508
- return;
2509
- let r;
2510
- return e.onlyTime ? r = p.value ? ee(D(p.value).format(), v.value, {
2511
- timeStyle: T.value.timeStyle,
2512
- hour12: T.value.hour12
2513
- }) : void 0 : typeof p.value == "object" ? r = Et({
2514
- value: p.value,
2515
- locale: v.value,
2516
- options: T.value
2517
- }) : r = Ue({
2518
- value: D(p.value).format(),
2519
- locale: v.value,
2520
- options: T.value
2521
- }), e.inputDateTransformer && r ? e.inputDateTransformer({ formattedDate: r, value: e.modelValue, locale: v.value }) : r;
2522
- }), H = X(!1), E = X(!1), g = X({
2523
- vertical: "bottom",
2524
- horizontal: "left"
2525
- }), S = $(() => (H.value || e.open || E.value) && !e.disabled || e.inline), B = X(!1);
2526
- Xe(async () => {
2527
- if (B.value = !0, e.customElementSelector && i(e.customElementSelector), !e.locale) {
2528
- const r = Jt();
2529
- if (!e.noUseBrowserLocale && r)
2530
- Y.value = r;
2531
- else if (!e.noFetchLocal) {
2532
- const l = await Qt();
2533
- l && (Y.value = l);
2534
- }
2535
- }
2536
- }), ft(() => {
2537
- e.customElementSelector && M(e.customElementSelector);
2538
- });
2539
- async function C() {
2540
- if (e.pickerPosition) {
2541
- const r = e.pickerPosition.includes("right") ? "right" : "left", l = e.pickerPosition.includes("top") ? "top" : "bottom";
2542
- return {
2543
- horizontal: r,
2544
- vertical: l
2545
- };
2546
- } else
2547
- return {
2548
- horizontal: "left",
2549
- vertical: await L(h.value)
2550
- };
2551
- }
2552
- async function L(r) {
2553
- if (typeof window > "u")
2554
- return "bottom";
2555
- const l = 30;
2556
- await ge();
2557
- const y = document.querySelector(`#${d.value}`), O = r == null ? void 0 : r.getBoundingClientRect(), W = window.innerHeight, J = ((y == null ? void 0 : y.clientHeight) ?? 0) - l, _ = (O && W - O.bottom) ?? 0, se = (O && O.top) ?? 0, ce = _ && _ >= J, ve = se && se >= J;
2558
- return !ce && (ve || se >= _) ? "top" : "bottom";
2559
- }
2560
- function P() {
2561
- H.value = !1, E.value = !1, u("close");
2562
- }
2563
- function q() {
2564
- e.customElementSelector || P();
2565
- }
2566
- function Z() {
2567
- E.value = !E.value;
2568
- }
2569
- function i(r) {
2570
- const l = document.querySelector(r);
2571
- if (l)
2572
- l.addEventListener("click", Z);
2573
- else
2574
- throw new Error(
2575
- `[maz-ui](MazPicker) impossible to find custom element with selector "${r}"`
2576
- );
2577
- }
2578
- function M(r) {
2579
- const l = document.querySelector(r);
2580
- l == null || l.removeEventListener("click", Z);
2581
- }
2582
- function n(r) {
2583
- if (e.minDate || e.maxDate) {
2584
- if (typeof r == "string") {
2585
- const { newValue: l, newCurrentDate: y } = We({
2586
- value: r,
2587
- minDate: e.minDate,
2588
- maxDate: e.maxDate,
2589
- format: e.format
2590
- });
2591
- l && m(l), y && o(y);
2592
- } else if (typeof r == "object" && (r.start || r.end)) {
2593
- let l = r.start, y = r.end;
2594
- if (r.start) {
2595
- const { newValue: O, newCurrentDate: W } = We({
2596
- value: r.start,
2597
- minDate: e.minDate,
2598
- maxDate: e.maxDate,
2599
- format: e.format
2600
- });
2601
- O && (l = O), W && o(W);
2602
- }
2603
- if (r.end) {
2604
- const { newValue: O } = We({
2605
- value: r.end,
2606
- minDate: e.minDate,
2607
- maxDate: e.maxDate,
2608
- format: e.format
2609
- });
2610
- O && (y = O);
2611
- }
2612
- m({
2613
- start: l,
2614
- end: y
2615
- });
2616
- }
2617
- }
2618
- }
2619
- function o(r) {
2620
- r && !D(Q.value).isSame(r, "month") && (Q.value = r);
2621
- }
2622
- function m(r) {
2623
- if (typeof r == "object") {
2624
- const l = Rt(r, e.format);
2625
- u("update:model-value", l), l.start && o(l.start);
2626
- } else
2627
- u("update:model-value", Ne(r, e.format));
2628
- }
2629
- pe(
2630
- () => [p.value, e.minDate, e.maxDate],
2631
- (r, l) => {
2632
- const y = r[0], O = l == null ? void 0 : l[0];
2633
- typeof y == "object" && (y.start || y.end) ? (!O || typeof O == "object" && (O.start !== y.start || O.end !== y.end)) && (m(y), n(y)) : typeof y == "string" && y !== O && (m(y), n(y));
2634
- },
2635
- { immediate: !0 }
2636
- );
2637
- function c(r) {
2638
- r.code === "Escape" && S.value && (r.preventDefault(), P());
2639
- }
2640
- return pe(
2641
- () => S.value,
2642
- async (r) => {
2643
- r ? (g.value = await C(), !e.inline && B.value && document.addEventListener("keydown", c)) : !e.inline && B.value && document.removeEventListener("keydown", c);
2644
- },
2645
- { immediate: !0 }
2646
- ), pe(
2647
- () => [p.value, e.disabledWeekly, e.disabledDates],
2648
- (r) => {
2649
- const l = r[0], y = r[1], O = r[2];
2650
- typeof l == "object" && (l.start || l.end) ? ((l.start && Ye({ value: l.start, disabledWeekly: y }) || l.start && Ve({ value: l.start, disabledDates: O }) || l.end && Ye({ value: l.end, disabledWeekly: y }) || l.end && Ve({ value: l.end, disabledDates: O })) && (p.value = { start: void 0, end: void 0 }), (l.end && Ye({ value: l.end, disabledWeekly: y }) || l.end && Ve({ value: l.end, disabledDates: O })) && (p.value = { start: l.start, end: void 0 })) : typeof l == "string" && (Ye({ value: l, disabledWeekly: y }) || Ve({ value: l, disabledDates: O })) && (p.value = void 0);
2651
- },
2652
- { immediate: !0 }
2653
- ), (r, l) => Ee((k(), I(
2654
- "div",
2655
- {
2656
- ref_key: "MazPicker",
2657
- ref: h,
2658
- class: U(["m-picker m-reset-css", [
2659
- `m-picker--${r.color}`,
2660
- `m-picker--${g.value.vertical}`,
2661
- `m-picker--${g.value.horizontal}`,
2662
- {
2663
- "--is-open": S.value,
2664
- "--is-disabled": r.disabled,
2665
- "--block": r.block
2666
- },
2667
- e.class
2668
- ]]),
2669
- role: "none",
2670
- style: Me(r.style)
2671
- },
2672
- [
2673
- !r.customElementSelector && !r.inline ? (k(), F(xt, Ke({
2674
- key: 0,
2675
- "model-value": A.value,
2676
- readonly: ""
2677
- }, r.$attrs, {
2678
- block: "",
2679
- autocomplete: "off",
2680
- class: "m-picker__input",
2681
- label: r.label,
2682
- disabled: r.disabled,
2683
- placeholder: r.placeholder,
2684
- color: r.color,
2685
- onClick: l[1] || (l[1] = (y) => H.value = !H.value)
2686
- }), {
2687
- "right-icon": G(() => [
2688
- K("button", {
2689
- type: "button",
2690
- tabindex: "-1",
2691
- class: "m-picker__button",
2692
- onClick: l[0] || (l[0] = (y) => H.value = !H.value)
2693
- }, [
2694
- j(N(Ot), { class: "m-picker__button__chevron maz-text-lg" })
2695
- ])
2696
- ]),
2697
- _: 1
2698
- /* STABLE */
2699
- }, 16, ["model-value", "label", "disabled", "placeholder", "color"])) : R("v-if", !0),
2700
- j(Fe, {
2701
- name: g.value.vertical === "top" ? "maz-slideinvert" : "maz-slide",
2702
- persisted: ""
2703
- }, {
2704
- default: G(() => [
2705
- Ee(j(ja, {
2706
- id: d.value,
2707
- modelValue: p.value,
2708
- "onUpdate:modelValue": l[2] || (l[2] = (y) => p.value = y),
2709
- "calendar-date": Q.value,
2710
- "onUpdate:calendarDate": l[3] || (l[3] = (y) => Q.value = y),
2711
- "is-open": S.value,
2712
- color: r.color,
2713
- locale: v.value,
2714
- "has-date": x.value,
2715
- double: z.value,
2716
- "has-time": f.value,
2717
- "formatter-options": T.value,
2718
- "no-header": r.noHeader,
2719
- "min-date": r.minDate,
2720
- format: r.format,
2721
- "is-hour12": V.value,
2722
- "max-date": r.maxDate,
2723
- "disabled-weekly": r.disabledWeekly,
2724
- inline: r.inline,
2725
- "first-day-of-week": r.firstDayOfWeek,
2726
- shortcuts: r.shortcuts,
2727
- shortcut: r.shortcut,
2728
- disabled: r.disabled,
2729
- "disabled-hours": r.disabledHours,
2730
- "disabled-dates": r.disabledDates,
2731
- "minute-interval": r.minuteInterval,
2732
- "no-shortcuts": r.noShortcuts,
2733
- onClose: P
2734
- }, null, 8, ["id", "modelValue", "calendar-date", "is-open", "color", "locale", "has-date", "double", "has-time", "formatter-options", "no-header", "min-date", "format", "is-hour12", "max-date", "disabled-weekly", "inline", "first-day-of-week", "shortcuts", "shortcut", "disabled", "disabled-hours", "disabled-dates", "minute-interval", "no-shortcuts"]), [
2735
- [vt, S.value]
2736
- ])
2737
- ]),
2738
- _: 1
2739
- /* STABLE */
2740
- }, 8, ["name"])
2741
- ],
2742
- 6
2743
- /* CLASS, STYLE */
2744
- )), [
2745
- [N(Yt), q]
2746
- ]);
2747
- }
2748
- }), Ua = /* @__PURE__ */ oe(Wa, [["__scopeId", "data-v-6984a661"]]);
2749
- export {
2750
- Ua as M,
2751
- oe as _
2752
- };