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,1803 +0,0 @@
1
- import '../assets/MazPhoneNumberInput.tFz9umj-.css';var Xe = Object.defineProperty;
2
- var xe = (a, e, t) => e in a ? Xe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var Z = (a, e, t) => xe(a, typeof e != "symbol" ? e + "" : e, t);
4
- import { computed as y, useId as _e, inject as eo, defineComponent as ae, defineAsyncComponent as q, withDirectives as Ie, openBlock as C, createElementBlock as S, normalizeClass as $, normalizeStyle as X, Fragment as Ce, renderList as Me, createElementVNode as j, mergeProps as _, createVNode as D, unref as I, createCommentVNode as P, renderSlot as T, ref as V, onMounted as Ae, useSlots as oo, toDisplayString as x, createBlock as H, resolveDynamicComponent as Le, toHandlers as to, vModelDynamic as lo, withModifiers as le, withCtx as Q, onBeforeMount as Te, nextTick as ue, Transition as ao, mergeModels as so, useModel as no, watch as ve, provide as ro } from "vue";
5
- import { getCountries as Fe, getCountryCallingCode as de, isSupportedCountry as io, parsePhoneNumberFromString as uo, getExampleNumber as co, AsYouType as mo } from "libphonenumber-js";
6
- function we({
7
- componentName: a,
8
- providedId: e
9
- }) {
10
- return y(() => e ?? `${a}-${_e().replace(/:/g, "")}`);
11
- }
12
- function Ee(a, e = "20x15") {
13
- return `https://flagcdn.com/${e}/${a.toLowerCase()}.png`;
14
- }
15
- function Ne(a, e) {
16
- const t = eo(a, e);
17
- if (!t)
18
- throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${a.toString()}`);
19
- return t;
20
- }
21
- function po(a) {
22
- return !!a;
23
- }
24
- const fo = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", ho = {
25
- baseClass: "m-lazy-img",
26
- loadedClass: "m-lazy-loaded",
27
- loadingClass: "m-lazy-loading",
28
- errorClass: "m-lazy-error",
29
- noPhotoClass: "m-lazy-no-photo",
30
- noPhoto: !1,
31
- observerOnce: !0,
32
- loadOnce: !1,
33
- noUseErrorPhoto: !1,
34
- observerOptions: {
35
- threshold: 0.1
36
- }
37
- };
38
- class vo {
39
- constructor(e = {}) {
40
- Z(this, "observers", []);
41
- Z(this, "defaultOptions", ho);
42
- Z(this, "options");
43
- Z(this, "onImgLoadedCallback");
44
- Z(this, "onImgErrorCallback");
45
- Z(this, "hasImgLoaded", !1);
46
- this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
47
- }
48
- async loadErrorPhoto() {
49
- const { default: e } = await import("./no-photography.BJX8HSus.mjs");
50
- return e;
51
- }
52
- buildOptions(e) {
53
- return {
54
- ...this.defaultOptions,
55
- ...e,
56
- observerOptions: {
57
- ...this.defaultOptions.observerOptions,
58
- ...e.observerOptions
59
- }
60
- };
61
- }
62
- removeClass(e, t) {
63
- e.classList.remove(t);
64
- }
65
- addClass(e, t) {
66
- e.classList.add(t);
67
- }
68
- removeAllStateClasses(e) {
69
- this.removeClass(e, this.options.loadedClass), this.removeClass(e, this.options.loadingClass), this.removeClass(e, this.options.errorClass), this.removeClass(e, this.options.noPhotoClass);
70
- }
71
- setBaseClass(e) {
72
- this.addClass(e, this.options.baseClass);
73
- }
74
- imageIsLoading(e) {
75
- var t, o;
76
- this.addClass(e, this.options.loadingClass), (o = (t = this.options).onLoading) == null || o.call(t, e);
77
- }
78
- imageHasNoPhoto(e) {
79
- this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.noPhotoClass), this.setDefaultPhoto(e);
80
- }
81
- imageIsLoaded(e) {
82
- var t, o;
83
- this.hasImgLoaded = !0, this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.loadedClass), (o = (t = this.options).onLoaded) == null || o.call(t, e);
84
- }
85
- imageHasError(e) {
86
- var t, o;
87
- this.removeClass(e, this.options.loadingClass), this.addClass(e, this.options.errorClass), (o = (t = this.options).onError) == null || o.call(t, e), this.setDefaultPhoto(e);
88
- }
89
- getSrc(e) {
90
- return typeof e.value == "object" ? e.value.src : e.value;
91
- }
92
- getImageUrl(e, t) {
93
- const o = this.getImgElement(e).getAttribute("data-lazy-src");
94
- return o || this.getSrc(t);
95
- }
96
- async setPictureSourceUrls(e) {
97
- const t = e.querySelectorAll("source");
98
- if (t.length > 0)
99
- for await (const o of t) {
100
- const i = o.getAttribute("data-lazy-srcset");
101
- if (i)
102
- o.srcset = i;
103
- else
104
- return this.imageHasError(e);
105
- }
106
- else
107
- this.imageHasError(e);
108
- }
109
- hasBgImgMode(e) {
110
- return e.arg === "bg-image";
111
- }
112
- isPictureElement(e) {
113
- return e instanceof HTMLPictureElement;
114
- }
115
- getImgElement(e) {
116
- return this.isPictureElement(e) ? e.querySelector("img") : e;
117
- }
118
- async setDefaultPhoto(e) {
119
- if (this.options.noUseErrorPhoto)
120
- return;
121
- const t = this.options.fallbackSrc ?? this.options.errorPhoto;
122
- typeof t == "string" && this.addClass(e, this.options.noPhotoClass);
123
- const o = t ?? await this.loadErrorPhoto(), i = e.querySelectorAll("source");
124
- if (i.length > 0)
125
- for await (const r of i)
126
- r.srcset = o;
127
- else
128
- this.setImgSrc(e, o);
129
- }
130
- addEventListenerToImg(e) {
131
- const t = this.getImgElement(e);
132
- t.addEventListener("load", () => this.onImgLoadedCallback(e), {
133
- once: !0
134
- }), t.addEventListener("error", (o) => this.onImgErrorCallback(e, o), { once: !0 });
135
- }
136
- async loadImage(e, t) {
137
- if (this.imageIsLoading(e), this.isPictureElement(e))
138
- this.addEventListenerToImg(e), await this.setPictureSourceUrls(e);
139
- else {
140
- const o = this.getImageUrl(e, t);
141
- if (!o)
142
- return this.imageHasError(e);
143
- this.hasBgImgMode(t) ? (e.style.backgroundImage = `url('${o}')`, this.imageIsLoaded(e)) : (this.addEventListenerToImg(e), this.setImgSrc(e, o));
144
- }
145
- }
146
- setImgSrc(e, t) {
147
- const o = this.getImgElement(e);
148
- o.src = t;
149
- }
150
- handleIntersectionObserver(e, t, o, i) {
151
- var r, g;
152
- this.observers.push(i);
153
- for (const v of o)
154
- if (v.isIntersecting) {
155
- if ((g = (r = this.options).onIntersecting) == null || g.call(r, v.target), this.options.observerOnce && i.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
156
- return;
157
- this.loadImage(e, t);
158
- }
159
- }
160
- createObserver(e, t) {
161
- const o = (g, v) => {
162
- this.handleIntersectionObserver(e, t, g, v);
163
- }, i = this.options.observerOptions;
164
- new IntersectionObserver(o, i).observe(e);
165
- }
166
- async imageHandler(e, t, o) {
167
- if (o === "update")
168
- for await (const i of this.observers) i.unobserve(e);
169
- window.IntersectionObserver ? this.createObserver(e, t) : this.loadImage(e, t);
170
- }
171
- async bindUpdateHandler(e, t, o) {
172
- if (this.options.noPhoto)
173
- return this.imageHasNoPhoto(e);
174
- await this.imageHandler(e, t, o);
175
- }
176
- async add(e, t) {
177
- if (this.hasBgImgMode(t) && this.isPictureElement(e))
178
- throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
179
- setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, fo), await this.bindUpdateHandler(e, t, "bind");
180
- }
181
- async update(e, t) {
182
- t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
183
- }
184
- remove(e, t) {
185
- this.hasImgLoaded = !1, this.hasBgImgMode(t) && (e.style.backgroundImage = ""), this.removeAllStateClasses(e);
186
- for (const o of this.observers)
187
- o.unobserve(e);
188
- this.observers = [];
189
- }
190
- }
191
- let ie;
192
- const yo = {
193
- created(a, e) {
194
- const t = typeof e.value == "object" ? e.value : {};
195
- ie = new vo(t), ie.add(a, e);
196
- },
197
- updated(a, e) {
198
- ie.update(a, e);
199
- },
200
- unmounted(a, e) {
201
- ie.remove(a, e);
202
- }
203
- }, go = ["data-lazy-srcset", "media"], bo = ["alt"], Co = {
204
- key: 0,
205
- class: "m-lazy-img-component-loader"
206
- }, zo = /* @__PURE__ */ ae({
207
- inheritAttrs: !1,
208
- __name: "MazLazyImg",
209
- props: {
210
- style: { default: void 0 },
211
- class: { default: void 0 },
212
- image: { default: void 0 },
213
- src: { default: void 0 },
214
- alt: { default: void 0 },
215
- noPhoto: { type: Boolean },
216
- noLoader: { type: Boolean },
217
- noObserverOnce: { type: Boolean },
218
- loadOnce: { type: Boolean },
219
- imageHeightFull: { type: Boolean },
220
- observerOptions: { default: void 0 },
221
- fallbackSrc: { default: void 0 },
222
- imgClass: {},
223
- block: { type: Boolean }
224
- },
225
- emits: ["intersecting", "loading", "loaded", "error"],
226
- setup(a) {
227
- const e = a, t = q(() => import("./MazSpinner.DZT5jj-c.mjs")), o = y(() => e.image || e.src), i = y(() => {
228
- var r;
229
- return typeof o.value == "string" ? [{ srcset: o.value }] : (r = o.value) == null ? void 0 : r.sources;
230
- });
231
- return (r, g) => Ie((C(), S(
232
- "picture",
233
- {
234
- class: $(["m-lazy-img-component m-reset-css", [{ "--use-loader": !r.noLoader, "--height-full": r.imageHeightFull, "--block": r.block }, e.class]]),
235
- style: X(r.style)
236
- },
237
- [
238
- (C(!0), S(
239
- Ce,
240
- null,
241
- Me(i.value, ({ srcset: v, media: L }, b) => (C(), S("source", {
242
- key: b,
243
- "data-lazy-srcset": v,
244
- media: L
245
- }, null, 8, go))),
246
- 128
247
- /* KEYED_FRAGMENT */
248
- )),
249
- j("img", _(r.$attrs, {
250
- src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
251
- loading: "lazy",
252
- alt: r.alt,
253
- class: r.imgClass
254
- }), null, 16, bo),
255
- r.noLoader ? P("v-if", !0) : (C(), S("div", Co, [
256
- D(I(t), { size: "2em" })
257
- ])),
258
- T(r.$slots, "default", {}, void 0, !0)
259
- ],
260
- 6
261
- /* CLASS, STYLE */
262
- )), [
263
- [I(yo), {
264
- noPhoto: r.noPhoto,
265
- loadOnce: r.loadOnce,
266
- observerOptions: r.observerOptions,
267
- fallbackSrc: r.fallbackSrc,
268
- observerOnce: !r.noObserverOnce,
269
- onIntersecting: (v) => r.$emit("intersecting", v),
270
- onLoading: (v) => r.$emit("loading", v),
271
- onLoaded: (v) => r.$emit("loaded", v),
272
- onError: (v) => r.$emit("error", v)
273
- }]
274
- ]);
275
- }
276
- }), se = (a, e) => {
277
- const t = a.__vccOpts || a;
278
- for (const [o, i] of e)
279
- t[o] = i;
280
- return t;
281
- }, $e = /* @__PURE__ */ se(zo, [["__scopeId", "data-v-16d47574"]]), Io = {
282
- removeAccents: !0,
283
- caseSensitive: !1,
284
- replaceSpaces: !0,
285
- removeSpecialCharacters: !1,
286
- trim: !0,
287
- normalizeSpaces: !0,
288
- removeNumbers: !1,
289
- customNormalizationForms: ["NFC", "NFKD"]
290
- };
291
- function ce(a, e) {
292
- const t = { ...Io, ...e }, o = {
293
- À: "A",
294
- Á: "A",
295
- Â: "A",
296
- Ã: "A",
297
- Ä: "A",
298
- Å: "A",
299
- à: "a",
300
- á: "a",
301
- â: "a",
302
- ã: "a",
303
- ä: "a",
304
- å: "a",
305
- È: "E",
306
- É: "E",
307
- Ê: "E",
308
- Ë: "E",
309
- è: "e",
310
- é: "e",
311
- ê: "e",
312
- ë: "e",
313
- Î: "I",
314
- Ï: "I",
315
- í: "I",
316
- î: "i",
317
- ï: "i",
318
- Ô: "O",
319
- Õ: "O",
320
- Ö: "O",
321
- Ø: "O",
322
- ô: "o",
323
- õ: "o",
324
- ö: "o",
325
- ø: "o",
326
- Ù: "U",
327
- Ú: "U",
328
- Û: "U",
329
- Ü: "U",
330
- ù: "u",
331
- ú: "u",
332
- û: "u",
333
- ü: "u",
334
- Ç: "C",
335
- ç: "c",
336
- ÿ: "y",
337
- Ñ: "N",
338
- ñ: "n",
339
- ó: "o"
340
- };
341
- let i = a.toString();
342
- if (t.trim && (i = i.trim()), t.normalizeSpaces && (i = i.replaceAll(/\s+/g, " ")), t.replaceSpaces && (i = i.replaceAll(" ", "-")), t.removeNumbers && (i = i.replaceAll(/\d/g, "")), t.removeAccents && (i = i.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (r) => o[r] || r), i = i.replaceAll(/[\u0300-\u036F]/g, "")), t.caseSensitive === !1 && (i = i.toLowerCase()), t.removeSpecialCharacters && (i = i.replaceAll(/[^\dA-Z-]/gi, "")), t.trim && (i = i.trim()), t.customNormalizationForms)
343
- for (const r of t.customNormalizationForms)
344
- i = i.normalize(r);
345
- return i;
346
- }
347
- function Ao(a, e) {
348
- const t = a.length, o = e.length, i = [];
349
- for (let r = 0; r <= t; r++)
350
- i[r] = [r];
351
- for (let r = 0; r <= o; r++)
352
- i[0][r] = r;
353
- for (let r = 1; r <= t; r++)
354
- for (let g = 1; g <= o; g++) {
355
- const v = a[r - 1] === e[g - 1] ? 0 : 1;
356
- i[r][g] = Math.min(
357
- i[r - 1][g] + 1,
358
- i[r][g - 1] + 1,
359
- i[r - 1][g - 1] + v
360
- );
361
- }
362
- return i[t][o];
363
- }
364
- function Ke(a, e) {
365
- const t = Ao(a, e), o = Math.max(a.length, e.length);
366
- return 1 - t / o;
367
- }
368
- function wo(a, e, t = 0.75) {
369
- return Ke(a, e) >= t;
370
- }
371
- function ye(a, e, t = 0.75) {
372
- const o = y(
373
- () => ce(typeof a == "string" ? a : a.value)
374
- ), i = y(
375
- () => ce(typeof e == "string" ? e : e.value)
376
- ), r = y(() => typeof t == "number" ? t : t.value), g = y(() => Ke(o.value, i.value));
377
- return {
378
- isMatching: y(
379
- () => wo(o.value, i.value, r.value)
380
- ),
381
- score: g
382
- };
383
- }
384
- function Ue(a, e, t) {
385
- var g, v;
386
- a.stopPropagation();
387
- const o = typeof t.value == "function" ? t.value : t.value.handler, i = typeof t.value == "object" ? t.value.exclude : void 0;
388
- let r = !1;
389
- if (i && i.length > 0) {
390
- for (const L of i)
391
- if (!r && a.target instanceof HTMLElement) {
392
- const b = (g = document.querySelector(L)) == null ? void 0 : g.getAttribute("id");
393
- r = (a.target.getAttribute("id") === b || ((v = document.querySelector(L)) == null ? void 0 : v.contains(a.target))) ?? !1;
394
- }
395
- }
396
- !e.contains(a.target) && !r && (o == null || o(a));
397
- }
398
- function He() {
399
- return document.ontouchstart === null ? "touchstart" : "click";
400
- }
401
- function So(a, e) {
402
- const t = He();
403
- document.removeEventListener(t, (o) => Ue(o, a, e));
404
- }
405
- function Vo(a, e) {
406
- if (typeof e.value != "function" && typeof e.value == "object" && typeof e.value.handler != "function") {
407
- console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
408
- return;
409
- }
410
- const t = He();
411
- document.addEventListener(t, (o) => Ue(o, a, e));
412
- }
413
- const ko = {
414
- mounted: Vo,
415
- unmounted: So
416
- };
417
- let ge = null;
418
- function Po(a, e) {
419
- ge && clearTimeout(ge), ge = setTimeout(a, e);
420
- }
421
- function Bo(a, e) {
422
- let t;
423
- return function(...o) {
424
- clearTimeout(t), t = setTimeout(() => {
425
- a.apply(this, o);
426
- }, e);
427
- };
428
- }
429
- const Lo = ["for"], Eo = {
430
- key: 0,
431
- class: "m-input-wrapper-left"
432
- }, $o = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], Oo = {
433
- key: 1,
434
- class: "m-input-wrapper-right"
435
- }, Mo = /* @__PURE__ */ ae({
436
- inheritAttrs: !1,
437
- __name: "MazInput",
438
- props: {
439
- style: { default: void 0 },
440
- class: { default: void 0 },
441
- modelValue: { default: void 0 },
442
- placeholder: { default: void 0 },
443
- label: { default: void 0 },
444
- topLabel: {},
445
- assistiveText: {},
446
- name: { default: void 0 },
447
- color: { default: "primary" },
448
- type: { default: "text" },
449
- required: { type: Boolean, default: !1 },
450
- disabled: { type: Boolean, default: !1 },
451
- readonly: { type: Boolean, default: !1 },
452
- id: { default: void 0 },
453
- error: { type: Boolean, default: !1 },
454
- success: { type: Boolean, default: !1 },
455
- warning: { type: Boolean, default: !1 },
456
- hint: { default: void 0 },
457
- inputClasses: { default: void 0 },
458
- noBorder: { type: Boolean, default: !1 },
459
- noRadius: { type: Boolean, default: !1 },
460
- inputmode: { default: "text" },
461
- size: { default: "md" },
462
- debounce: { type: [Boolean, Number], default: !1 },
463
- debounceDelay: { default: 500 },
464
- validButton: { type: Boolean, default: !1 },
465
- validButtonLoading: { type: Boolean, default: !1 },
466
- autoFocus: { type: Boolean, default: !1 },
467
- borderActive: { type: Boolean, default: !1 },
468
- leftIcon: { type: [String, Function, Object], default: void 0 },
469
- rightIcon: { type: [String, Function, Object], default: void 0 },
470
- roundedSize: { default: void 0 },
471
- block: { type: Boolean },
472
- autocomplete: {}
473
- },
474
- emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
475
- setup(a, { emit: e }) {
476
- const t = a, o = e, i = q(() => import("./MazBtn.1qp5aQ4N.mjs")), r = q(() => import("./MazIcon.B5hPzeLk.mjs")), g = q(() => import("./eye-slash.BoO00xzs.mjs")), v = q(() => import("./eye.f8zAUc30.mjs")), L = q(() => import("./check.C9Q_W85g.mjs")), b = V(!1), h = V(!1), O = V(), c = we({
477
- componentName: "MazInput",
478
- providedId: t.id
479
- });
480
- Ae(() => {
481
- var s;
482
- t.autoFocus && ((s = O.value) == null || s.focus());
483
- });
484
- const A = y(() => t.type === "password"), m = y(() => b.value ? "text" : t.type), p = y(() => {
485
- if (!t.noBorder) {
486
- if (t.error)
487
- return "maz-border-danger";
488
- if (t.success)
489
- return "maz-border-success";
490
- if (t.warning)
491
- return "maz-border-warning";
492
- if (h.value || t.borderActive) {
493
- if (t.color === "black")
494
- return "maz-border-black";
495
- if (t.color === "danger")
496
- return "maz-border-danger";
497
- if (t.color === "info")
498
- return "maz-border-info";
499
- if (t.color === "primary")
500
- return "maz-border-primary";
501
- if (t.color === "secondary")
502
- return "maz-border-secondary";
503
- if (t.color === "success")
504
- return "maz-border-success";
505
- if (t.color === "warning")
506
- return "maz-border-warning";
507
- if (t.color === "white")
508
- return "maz-border-white";
509
- }
510
- return "--default-border";
511
- }
512
- }), E = oo(), J = y(() => F.value !== void 0 && F.value !== ""), ee = Bo(
513
- (s) => {
514
- o("update:model-value", s);
515
- },
516
- typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
517
- );
518
- function oe(s) {
519
- if (t.debounce)
520
- return ee(s);
521
- o("update:model-value", s);
522
- }
523
- const F = y({
524
- get: () => t.modelValue,
525
- set: (s) => oe(s)
526
- }), Y = y(() => (!!t.label || !!t.hint) && (h.value || !!J.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), N = y(() => !!t.label || !!t.hint);
527
- function n() {
528
- return !!E["right-icon"] || A.value || !!E["valid-button"] || t.validButton || !!t.rightIcon;
529
- }
530
- function w() {
531
- return !!E["left-icon"] || !!t.leftIcon;
532
- }
533
- function K(s) {
534
- o("focus", s), h.value = !0;
535
- }
536
- function k(s) {
537
- o("blur", s), h.value = !1;
538
- }
539
- function G(s) {
540
- return o("change", s);
541
- }
542
- function me(s) {
543
- return o("input", s);
544
- }
545
- return (s, M) => (C(), S(
546
- "div",
547
- {
548
- class: $(["m-input", [
549
- {
550
- "--is-focused": h.value || s.borderActive,
551
- "--should-up": Y.value,
552
- "--has-label": N.value,
553
- "--is-disabled": s.disabled,
554
- "--is-readonly": s.readonly,
555
- "--has-z-2": s.error || s.warning || s.success,
556
- "--has-state": s.error || s.warning || s.success,
557
- "--block": s.block
558
- },
559
- t.class,
560
- `--${s.color}`
561
- ]]),
562
- style: X(s.style)
563
- },
564
- [
565
- s.topLabel ? (C(), S("label", {
566
- key: 0,
567
- for: I(c),
568
- class: "m-input-top-label"
569
- }, x(s.topLabel), 9, Lo)) : P("v-if", !0),
570
- j(
571
- "div",
572
- {
573
- class: $(["m-input-wrapper m-reset-css", [
574
- s.inputClasses,
575
- p.value,
576
- s.roundedSize ? `--rounded-${s.roundedSize}` : { "maz-rounded": !s.noRadius },
577
- { "--block": s.block }
578
- ]])
579
- },
580
- [
581
- w() ? (C(), S("div", Eo, [
582
- s.$slots["left-icon"] || s.leftIcon ? T(s.$slots, "left-icon", { key: 0 }, () => [
583
- typeof s.leftIcon == "string" ? (C(), H(I(r), {
584
- key: 0,
585
- name: s.leftIcon,
586
- class: "maz-text-xl maz-text-muted"
587
- }, null, 8, ["name"])) : s.leftIcon ? (C(), H(Le(s.leftIcon), {
588
- key: 1,
589
- class: "maz-text-xl maz-text-muted"
590
- })) : P("v-if", !0)
591
- ], !0) : P("v-if", !0)
592
- ])) : P("v-if", !0),
593
- j(
594
- "div",
595
- {
596
- class: $(["m-input-wrapper-input", [`--${s.size}`, { "--top-label": !!s.topLabel }]])
597
- },
598
- [
599
- Ie(j("input", _({ id: I(c) }, s.$attrs, {
600
- ref_key: "input",
601
- ref: O,
602
- "onUpdate:modelValue": M[0] || (M[0] = (U) => F.value = U),
603
- name: s.name,
604
- placeholder: s.placeholder,
605
- "aria-label": s.label || s.placeholder,
606
- type: m.value,
607
- inputmode: s.inputmode,
608
- disabled: s.disabled,
609
- readonly: s.readonly,
610
- autocomplete: s.autocomplete,
611
- required: s.required,
612
- class: "m-input-input"
613
- }, to({
614
- blur: k,
615
- focus: K,
616
- change: G,
617
- input: me
618
- }, !0), {
619
- onClick: M[1] || (M[1] = (U) => s.$emit("click", U))
620
- }), null, 16, $o), [
621
- [lo, F.value]
622
- ]),
623
- s.label || s.hint ? (C(), S(
624
- "span",
625
- {
626
- key: 0,
627
- class: $(["m-input-label", [
628
- {
629
- "maz-text-danger-600": s.error,
630
- "maz-text-success-600": s.success,
631
- "maz-text-warning-600": s.warning
632
- }
633
- ]])
634
- },
635
- x(s.hint || s.label),
636
- 3
637
- /* TEXT, CLASS */
638
- )) : P("v-if", !0)
639
- ],
640
- 2
641
- /* CLASS */
642
- ),
643
- n() ? (C(), S("div", Oo, [
644
- s.$slots["right-icon"] || s.rightIcon ? T(s.$slots, "right-icon", { key: 0 }, () => [
645
- typeof s.rightIcon == "string" ? (C(), H(I(r), {
646
- key: 0,
647
- name: s.rightIcon,
648
- class: "maz-text-xl maz-text-muted"
649
- }, null, 8, ["name"])) : s.rightIcon ? (C(), H(Le(s.rightIcon), {
650
- key: 1,
651
- class: "maz-text-xl maz-text-muted"
652
- })) : P("v-if", !0)
653
- ], !0) : P("v-if", !0),
654
- A.value ? (C(), H(I(i), {
655
- key: 1,
656
- color: "transparent",
657
- tabindex: "-1",
658
- size: "mini",
659
- onClick: M[2] || (M[2] = le((U) => b.value = !b.value, ["stop"]))
660
- }, {
661
- default: Q(() => [
662
- b.value ? (C(), H(I(g), {
663
- key: 0,
664
- class: "maz-text-xl maz-text-muted"
665
- })) : (C(), H(I(v), {
666
- key: 1,
667
- class: "maz-text-xl maz-text-muted"
668
- }))
669
- ]),
670
- _: 1
671
- /* STABLE */
672
- })) : P("v-if", !0),
673
- s.$slots["valid-button"] || s.validButton ? T(s.$slots, "valid-button", { key: 2 }, () => [
674
- D(I(i), {
675
- color: "transparent",
676
- disabled: s.disabled,
677
- tabindex: "-1",
678
- loading: s.validButtonLoading,
679
- class: "m-input-valid-button",
680
- size: "mini",
681
- type: "submit"
682
- }, {
683
- default: Q(() => [
684
- D(I(L), { class: "maz-text-2xl maz-text-normal" })
685
- ]),
686
- _: 1
687
- /* STABLE */
688
- }, 8, ["disabled", "loading"])
689
- ], !0) : P("v-if", !0)
690
- ])) : P("v-if", !0)
691
- ],
692
- 2
693
- /* CLASS */
694
- ),
695
- s.assistiveText ? (C(), S(
696
- "div",
697
- {
698
- key: 1,
699
- class: $(["m-input-bottom-text", [
700
- {
701
- "maz-text-danger-600": s.error,
702
- "maz-text-success-600": s.success,
703
- "maz-text-warning-600": s.warning,
704
- "maz-text-muted": !s.error && !s.success && !s.warning
705
- }
706
- ]])
707
- },
708
- x(s.assistiveText),
709
- 3
710
- /* TEXT, CLASS */
711
- )) : P("v-if", !0)
712
- ],
713
- 6
714
- /* CLASS, STYLE */
715
- ));
716
- }
717
- }), ze = /* @__PURE__ */ se(Mo, [["__scopeId", "data-v-8def99c5"]]), To = ["aria-label"], Fo = { class: "m-select-list__no-results" }, No = {
718
- key: 2,
719
- class: "m-select-list__scroll-wrapper",
720
- tabindex: "-1"
721
- }, Ko = { class: "m-select-list-optgroup" }, Uo = ["onClick"], Ho = /* @__PURE__ */ ae({
722
- inheritAttrs: !1,
723
- __name: "MazSelect",
724
- props: {
725
- style: { default: void 0 },
726
- class: { default: void 0 },
727
- id: { default: void 0 },
728
- modelValue: { default: void 0 },
729
- options: { default: void 0 },
730
- optionValueKey: { default: "value" },
731
- optionLabelKey: { default: "label" },
732
- optionInputValueKey: { default: "label" },
733
- listPosition: { default: "bottom left" },
734
- itemHeight: { default: void 0 },
735
- maxListHeight: { default: 240 },
736
- maxListWidth: { default: void 0 },
737
- minListHeight: { default: void 0 },
738
- minListWidth: { default: void 0 },
739
- size: { default: "md" },
740
- color: { default: "primary" },
741
- search: { type: Boolean },
742
- searchPlaceholder: { default: "Search in options" },
743
- searchFunction: {},
744
- searchThreshold: { default: 0.75 },
745
- open: { type: Boolean },
746
- multiple: { type: Boolean, default: void 0 },
747
- required: { type: Boolean },
748
- disabled: { type: Boolean },
749
- block: { type: Boolean },
750
- excludeSelectors: { default: void 0 },
751
- autocomplete: { default: "off" }
752
- },
753
- emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
754
- setup(a, { expose: e, emit: t }) {
755
- const o = a, i = t, r = q(() => import("./MazCheckbox.UAnkvAoS.mjs")), g = q(() => import("./magnifying-glass.-nBiyXot.mjs")), v = q(() => import("./chevron-down.BkvtON3b.mjs")), L = q(() => import("./no-symbol.CIgKzsrB.mjs"));
756
- e({
757
- /** Method to open the option list */
758
- openList: ne,
759
- /** Method to close the option list */
760
- closeList: te
761
- });
762
- const b = V(!1), h = V(), O = y(
763
- () => ["black", "transparent", "white"].includes(o.color)
764
- ), c = y(
765
- () => O.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
766
- ), A = y(
767
- () => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-100)`
768
- ), m = y(
769
- () => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-200)`
770
- ), p = y(() => b.value || o.open), E = we({
771
- componentName: "MazSelect",
772
- providedId: o.id
773
- });
774
- function J(l) {
775
- return {
776
- [o.optionValueKey]: l,
777
- [o.optionLabelKey]: l,
778
- [o.optionInputValueKey]: l
779
- };
780
- }
781
- function ee(l) {
782
- return {
783
- ...l,
784
- [o.optionValueKey]: l[o.optionValueKey],
785
- [o.optionLabelKey]: l[o.optionLabelKey],
786
- [o.optionInputValueKey]: l[o.optionInputValueKey]
787
- };
788
- }
789
- function oe(l) {
790
- const u = [];
791
- if (!(l != null && l.length))
792
- return [];
793
- for (const d of l)
794
- typeof d == "string" || typeof d == "number" || typeof d == "boolean" ? u.push(J(d)) : typeof d == "object" && "options" in d && Array.isArray(d.options) ? u.push(
795
- { label: d.label, isOptGroup: !0 },
796
- ...d.options.map(
797
- (f) => typeof f == "string" || typeof f == "number" || typeof f == "boolean" ? J(f) : ee(f)
798
- )
799
- ) : u.push(ee(d));
800
- return u;
801
- }
802
- const F = y(() => oe(o.options ?? [])), Y = y(
803
- () => {
804
- var l;
805
- return ((l = F.value) == null ? void 0 : l.filter((u) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(u[o.optionValueKey]) && !k(u[o.optionValueKey]) : !1 : o.modelValue === u[o.optionValueKey] && !k(u[o.optionValueKey]))) ?? [];
806
- }
807
- );
808
- Te(() => {
809
- var l;
810
- (l = o.options) != null && l.length || console.warn("[maz-ui](MazSelect) you must provide options"), he();
811
- });
812
- const N = V(), n = V(), w = V(), K = V();
813
- function k(l) {
814
- return l == null;
815
- }
816
- function G(l) {
817
- var d;
818
- return (((d = Y.value) == null ? void 0 : d.some(
819
- (f) => f[o.optionValueKey] === l[o.optionValueKey]
820
- )) ?? !1) && !k(l[o.optionValueKey]);
821
- }
822
- const me = y(() => {
823
- var u;
824
- if (o.multiple && o.modelValue && Array.isArray(o.modelValue))
825
- return o.modelValue.map(
826
- (d) => {
827
- var f, z;
828
- return (z = (f = F.value) == null ? void 0 : f.find((B) => B[o.optionValueKey] === d)) == null ? void 0 : z[o.optionInputValueKey];
829
- }
830
- ).join(", ");
831
- const l = (u = F.value) == null ? void 0 : u.find(
832
- (d) => d[o.optionValueKey] === o.modelValue
833
- );
834
- return k(o.modelValue) || l == null ? void 0 : l[o.optionInputValueKey];
835
- }), s = y(
836
- () => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
837
- ), M = V(""), U = V("");
838
- function pe(l, u) {
839
- return u && l && ce(l).includes(ce(u));
840
- }
841
- function Ve(l) {
842
- var u;
843
- return l ? (u = F.value) == null ? void 0 : u.filter((d) => {
844
- const f = d[o.optionLabelKey], z = d[o.optionValueKey], B = d[o.optionInputValueKey], R = o.searchThreshold;
845
- return pe(f, l) || pe(B, l) || pe(z, l) || typeof f == "string" && ye(f, l, R).isMatching.value || typeof B == "string" && ye(B, l, R).isMatching.value || typeof z == "string" && ye(z, l, R).isMatching.value;
846
- }) : F.value;
847
- }
848
- const W = y(() => o.searchFunction && o.search && M.value ? oe(o.searchFunction(M.value, o.options ?? []) ?? []) : Ve(M.value));
849
- async function te(l) {
850
- var d, f;
851
- if (!p.value)
852
- return;
853
- if (l && ("relatedTarget" in l && ((d = N.value) != null && d.contains(l.relatedTarget)) || l.type === "keydown"))
854
- return l.preventDefault();
855
- const u = l && "relatedTarget" in l && l.relatedTarget instanceof HTMLElement && l.relatedTarget.getAttribute("id");
856
- if ((f = o.excludeSelectors) != null && f.includes(`#${u}`))
857
- return l == null ? void 0 : l.preventDefault();
858
- await ue(), b.value = !1, h.value = 0, i("close", l);
859
- }
860
- async function ne(l) {
861
- o.disabled || p.value || (l == null || l.preventDefault(), b.value = !0, await fe(), i("focus", l), i("open", b.value));
862
- }
863
- function ke() {
864
- var l, u;
865
- (u = ((l = n.value) == null ? void 0 : l.$el).querySelector("input")) == null || u.focus();
866
- }
867
- function je() {
868
- var l, u;
869
- (u = ((l = n.value) == null ? void 0 : l.$el).querySelector("input")) == null || u.dispatchEvent(new Event("input"));
870
- }
871
- function Ye(l) {
872
- b.value ? te(l) : ke();
873
- }
874
- function We(l) {
875
- var u, d;
876
- M.value = l, (d = ((u = w.value) == null ? void 0 : u.$el).querySelector("input")) == null || d.focus();
877
- }
878
- function Qe(l) {
879
- var d;
880
- l === "Backspace" && U.value.length > 0 ? U.value = U.value.slice(0, -1) : U.value += l;
881
- const u = Ve(U.value);
882
- u != null && u.length && (h.value = (d = W.value) == null ? void 0 : d.findIndex(
883
- (f) => f[o.optionValueKey] === u[0][o.optionValueKey]
884
- ), typeof h.value == "number" && h.value >= 0 && fe(h.value)), Po(() => {
885
- U.value = "";
886
- }, 1e3);
887
- }
888
- function Ge(l) {
889
- const u = l.key;
890
- /^[\dA-Za-z\u0400-\u04FF]$/.test(u) ? (l.preventDefault(), ne(l), o.search ? We(u) : Qe(u)) : Pe(l);
891
- }
892
- function Pe(l, u = !0) {
893
- const d = l.code, f = ["ArrowUp", "ArrowDown"].includes(d), z = (u ? ["Enter", "Space"] : ["Enter"]).includes(d), B = d === "Escape" && p.value;
894
- f ? Je(l, h.value) : z ? Ze(l, h.value) : B && te(l);
895
- }
896
- function Je(l, u) {
897
- var z;
898
- l.preventDefault();
899
- const d = l.code;
900
- p.value || ne(l);
901
- const f = (z = W.value) == null ? void 0 : z.length;
902
- f && (typeof u == "number" ? u === f - 1 && d === "ArrowDown" ? h.value = 0 : u === 0 && d === "ArrowUp" ? h.value = f - 1 : h.value = d === "ArrowDown" ? u + 1 : u - 1 : h.value = d === "ArrowDown" ? 0 : f - 1, fe(h.value));
903
- }
904
- function Ze(l, u) {
905
- var f, z, B;
906
- if (!p.value)
907
- return;
908
- l.preventDefault();
909
- const d = u ? ((f = W.value) == null ? void 0 : f[u]) ?? ((z = W.value) == null ? void 0 : z[0]) : (B = W.value) == null ? void 0 : B[0];
910
- k(d) || Be(d);
911
- }
912
- async function fe(l) {
913
- var d, f;
914
- await ue(), typeof l != "number" && he();
915
- const u = l ?? h.value;
916
- if (typeof u == "number" && u >= 0) {
917
- const z = (d = K.value) == null ? void 0 : d.querySelectorAll(".m-select-list-item");
918
- (f = z == null ? void 0 : z[u]) == null || f.scrollIntoView({
919
- behavior: "auto",
920
- block: "nearest",
921
- inline: "start"
922
- });
923
- }
924
- }
925
- function he(l) {
926
- var d;
927
- const u = (d = W.value) == null ? void 0 : d.findIndex((f) => {
928
- var z, B;
929
- return o.multiple && Array.isArray(o.modelValue) ? l ? l[o.optionValueKey] === f[o.optionValueKey] : [...o.modelValue].reverse()[0] === f[o.optionValueKey] : ((B = (z = Y.value) == null ? void 0 : z[0]) == null ? void 0 : B[o.optionValueKey]) === f[o.optionValueKey];
930
- });
931
- h.value = u && u >= 0 ? u : 0;
932
- }
933
- function Be(l, u = !0) {
934
- var B;
935
- u && !o.multiple && ue(() => te()), M.value = "";
936
- const d = (B = Y.value) == null ? void 0 : B.some(
937
- (R) => R[o.optionValueKey] === l[o.optionValueKey]
938
- );
939
- let f = Y.value;
940
- d && o.multiple ? f = f == null ? void 0 : f.filter(
941
- (R) => R[o.optionValueKey] !== l[o.optionValueKey]
942
- ) : o.multiple ? f.push(l) : f = [l];
943
- const z = f.map((R) => R[o.optionValueKey]);
944
- i("update:model-value", o.multiple ? z : z[0]), i("selected-option", l), je(), he(l), ke();
945
- }
946
- return (l, u) => Ie((C(), S(
947
- "div",
948
- {
949
- ref_key: "mazSelectElement",
950
- ref: N,
951
- class: $(["m-select m-reset-css", [
952
- { "--is-open": p.value, "--disabled": l.disabled, "--block": l.block },
953
- o.class,
954
- `--${l.size}`
955
- ]]),
956
- style: X([l.style, { "--keyboard-selected-bg-color": m.value, "--selected-bg-color": A.value, "--selected-text-color": c.value }])
957
- },
958
- [
959
- D(ze, _({
960
- id: I(E),
961
- ref_key: "mazInputComponent",
962
- ref: n,
963
- class: "m-select-input"
964
- }, l.$attrs, {
965
- required: l.required,
966
- "border-active": b.value,
967
- color: l.color,
968
- "model-value": me.value,
969
- size: l.size,
970
- block: "",
971
- autocomplete: l.autocomplete,
972
- disabled: l.disabled,
973
- onFocus: le(ne, ["prevent", "stop"]),
974
- onBlur: le(te, ["prevent", "stop"]),
975
- onClick: le(ne, ["prevent", "stop"]),
976
- onChange: u[0] || (u[0] = (d) => i("change", d)),
977
- onInput: u[1] || (u[1] = (d) => i("input", d)),
978
- onKeydown: Ge
979
- }), {
980
- "right-icon": Q(() => [
981
- j("button", {
982
- tabindex: "-1",
983
- type: "button",
984
- class: "m-select-input__toggle-button maz-custom",
985
- "aria-label": `${p.value ? "collapse" : "expand"} list of options`,
986
- onClick: le(Ye, ["stop"])
987
- }, [
988
- D(I(v), { class: "m-select-chevron maz-text-xl" })
989
- ], 8, To)
990
- ]),
991
- _: 1
992
- /* STABLE */
993
- }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
994
- D(ao, { name: s.value }, {
995
- default: Q(() => [
996
- p.value ? (C(), S(
997
- "div",
998
- {
999
- key: 0,
1000
- ref_key: "optionListElement",
1001
- ref: K,
1002
- class: $(["m-select-list", {
1003
- "--top": l.listPosition.includes("top"),
1004
- "--left": l.listPosition.includes("left"),
1005
- "--right": l.listPosition.includes("right"),
1006
- "--bottom": l.listPosition.includes("bottom")
1007
- }]),
1008
- style: X({
1009
- maxHeight: `${l.maxListHeight}px`,
1010
- maxWidth: `${l.maxListWidth}px`,
1011
- minHeight: `${l.minListHeight}px`,
1012
- minWidth: `${l.minListWidth}px`
1013
- })
1014
- },
1015
- [
1016
- l.search ? (C(), H(ze, {
1017
- key: 0,
1018
- ref_key: "searchInputComponent",
1019
- ref: w,
1020
- modelValue: M.value,
1021
- "onUpdate:modelValue": [
1022
- u[2] || (u[2] = (d) => M.value = d),
1023
- u[4] || (u[4] = (d) => h.value = 0)
1024
- ],
1025
- size: "sm",
1026
- color: l.color,
1027
- placeholder: l.searchPlaceholder,
1028
- name: "search",
1029
- inputmode: "search",
1030
- block: "",
1031
- autocomplete: "off",
1032
- tabindex: "-1",
1033
- class: "m-select-list__search-input maz-flex-none",
1034
- "left-icon": I(g),
1035
- onKeydown: u[3] || (u[3] = (d) => Pe(d, !1))
1036
- }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : P("v-if", !0),
1037
- !W.value || W.value.length <= 0 ? T(l.$slots, "no-results", { key: 1 }, () => [
1038
- j("span", Fo, [
1039
- D(I(L), { class: "maz-h-6 maz-w-6 maz-text-normal" })
1040
- ])
1041
- ], !0) : (C(), S("div", No, [
1042
- (C(!0), S(
1043
- Ce,
1044
- null,
1045
- Me(W.value, (d, f) => (C(), S(
1046
- Ce,
1047
- { key: f },
1048
- [
1049
- d.label && d.isOptGroup ? T(l.$slots, "optgroup", {
1050
- key: 0,
1051
- label: d.label
1052
- }, () => [
1053
- j(
1054
- "span",
1055
- Ko,
1056
- x(d.label),
1057
- 1
1058
- /* TEXT */
1059
- )
1060
- ], !0) : (C(), S("button", {
1061
- key: 1,
1062
- tabindex: "-1",
1063
- type: "button",
1064
- class: $(["m-select-list-item maz-custom maz-flex-none", [
1065
- {
1066
- "--is-keyboard-selected": h.value === f,
1067
- "--is-selected": G(d),
1068
- "--is-none-value": k(d[l.optionValueKey])
1069
- }
1070
- ]]),
1071
- style: X(l.itemHeight ? { height: `${l.itemHeight}px` } : void 0),
1072
- onClick: le((z) => Be(d), ["prevent", "stop"])
1073
- }, [
1074
- l.multiple ? (C(), H(I(r), {
1075
- key: 0,
1076
- tabindex: "-1",
1077
- "model-value": G(d),
1078
- size: "sm",
1079
- color: l.color
1080
- }, null, 8, ["model-value", "color"])) : P("v-if", !0),
1081
- T(l.$slots, "default", {
1082
- option: d,
1083
- isSelected: G(d)
1084
- }, () => [
1085
- j(
1086
- "span",
1087
- null,
1088
- x(d[l.optionLabelKey]),
1089
- 1
1090
- /* TEXT */
1091
- )
1092
- ], !0)
1093
- ], 14, Uo))
1094
- ],
1095
- 64
1096
- /* STABLE_FRAGMENT */
1097
- ))),
1098
- 128
1099
- /* KEYED_FRAGMENT */
1100
- ))
1101
- ]))
1102
- ],
1103
- 6
1104
- /* CLASS, STYLE */
1105
- )) : P("v-if", !0)
1106
- ]),
1107
- _: 3
1108
- /* FORWARDED */
1109
- }, 8, ["name"])
1110
- ],
1111
- 6
1112
- /* CLASS, STYLE */
1113
- )), [
1114
- [I(ko), {
1115
- exclude: l.excludeSelectors,
1116
- handler: te
1117
- }]
1118
- ]);
1119
- }
1120
- }), Do = /* @__PURE__ */ se(Ho, [["__scopeId", "data-v-98157b75"]]);
1121
- function De() {
1122
- if (typeof window > "u")
1123
- return;
1124
- const a = window.navigator.language;
1125
- if (!a)
1126
- return;
1127
- let e = a.slice(3, 7).toUpperCase();
1128
- return e === "" && (e = a.slice(0, 2).toUpperCase()), e === "EN" && (e = "US"), e === "JA" && (e = "JP"), {
1129
- locale: e,
1130
- browserLocale: a
1131
- };
1132
- }
1133
- let be, Oe;
1134
- function Ro(a, e, t) {
1135
- return t != null && t[e] ? t[e] : ((Oe !== a || !be) && (Oe = a, be = new Intl.DisplayNames([a], { type: "region" })), be.of(e));
1136
- }
1137
- function qo(a, e) {
1138
- var i;
1139
- const t = [], o = Fe();
1140
- a = a ?? ((i = De()) == null ? void 0 : i.browserLocale) ?? "en-US";
1141
- for (const r of o) {
1142
- const g = Ro(a, r, e);
1143
- if (g)
1144
- try {
1145
- const v = de(r);
1146
- t.push({
1147
- iso2: r,
1148
- dialCode: v,
1149
- name: g
1150
- });
1151
- } catch (v) {
1152
- console.error(`[MazPhoneNumberInput](getCountryCallingCode) ${v}`);
1153
- }
1154
- }
1155
- return t;
1156
- }
1157
- async function jo() {
1158
- try {
1159
- const a = await fetch("https://ipwho.is"), { country_code: e } = await a.json();
1160
- return e;
1161
- } catch (a) {
1162
- throw new Error(`[MazPhoneNumberInput](fetchCountryCode) ${a}`);
1163
- }
1164
- }
1165
- function Yo(a) {
1166
- if (!a)
1167
- return "";
1168
- const e = new RegExp(/[^\d ()+-]/g);
1169
- return a.replaceAll(e, "").trim();
1170
- }
1171
- function Se() {
1172
- return {
1173
- sanitizePhoneNumber: Yo,
1174
- fetchCountryCode: jo,
1175
- getBrowserLocale: De,
1176
- getCountriesList: qo
1177
- };
1178
- }
1179
- const Wo = ["id"], Qo = {
1180
- key: 0,
1181
- class: "m-country-selector__select__item__flag-container"
1182
- }, Go = /* @__PURE__ */ ae({
1183
- __name: "CountrySelector",
1184
- props: {
1185
- style: { default: void 0 },
1186
- class: { default: void 0 },
1187
- modelValue: { default: void 0 },
1188
- id: {},
1189
- color: {},
1190
- size: {},
1191
- preferredCountries: { default: void 0 },
1192
- ignoredCountries: { default: void 0 },
1193
- onlyCountries: { default: void 0 },
1194
- customCountriesList: { default: void 0 },
1195
- locales: {},
1196
- listPosition: { default: "bottom left" },
1197
- noFlags: { type: Boolean },
1198
- noSearch: { type: Boolean },
1199
- disabled: { type: Boolean },
1200
- showCodeOnList: { type: Boolean },
1201
- countryLocale: { default: void 0 },
1202
- success: { type: Boolean },
1203
- error: { type: Boolean },
1204
- countrySelectorDisplayName: { type: Boolean },
1205
- searchThreshold: {},
1206
- width: { default: "9rem" },
1207
- excludeSelectors: { default: void 0 }
1208
- },
1209
- emits: ["update:model-value"],
1210
- setup(a) {
1211
- const e = a, { phoneNumber: t } = Ne("data"), o = V(), { getCountriesList: i } = Se(), r = y(() => i(e.countryLocale, e.customCountriesList)), g = y(
1212
- () => {
1213
- var c;
1214
- return (c = r.value) == null ? void 0 : c.filter((A) => {
1215
- var m;
1216
- return !((m = e.ignoredCountries) != null && m.includes(A.iso2));
1217
- });
1218
- }
1219
- ), v = y(() => {
1220
- const c = e.onlyCountries || e.preferredCountries;
1221
- return c == null ? void 0 : c.map(
1222
- (A) => {
1223
- var m;
1224
- return (m = g.value) == null ? void 0 : m.find((p) => p.iso2.includes(A));
1225
- }
1226
- );
1227
- }), L = y(
1228
- () => {
1229
- var c;
1230
- return (c = g.value) == null ? void 0 : c.filter((A) => {
1231
- var m;
1232
- return !((m = e.preferredCountries) != null && m.includes(A.iso2));
1233
- });
1234
- }
1235
- ), b = y(
1236
- () => e.preferredCountries ? [...v.value ?? [], ...L.value ?? []] : e.onlyCountries ? v.value : g.value
1237
- ), h = y(
1238
- () => {
1239
- var c;
1240
- return (c = b.value) == null ? void 0 : c.map(
1241
- (A) => A ? {
1242
- ...A,
1243
- dialCode: `+${A.dialCode}`
1244
- } : void 0
1245
- ).filter(po);
1246
- }
1247
- );
1248
- function O() {
1249
- var c;
1250
- (c = o.value) == null || c.openList();
1251
- }
1252
- return (c, A) => (C(), S(
1253
- "div",
1254
- {
1255
- class: $(["m-country-selector", [e.class, { "--no-flags": c.noFlags }]]),
1256
- style: X(c.style)
1257
- },
1258
- [
1259
- c.modelValue && !c.noFlags ? (C(), S("button", {
1260
- key: 0,
1261
- id: `country-selector-flag-button-${c.id}`,
1262
- class: $(["m-country-selector__country-flag", {
1263
- "--should-have-bottom-flag": c.locales.countrySelector.placeholder.length > 0
1264
- }]),
1265
- tabindex: "-1",
1266
- type: "button",
1267
- onClick: O
1268
- }, [
1269
- T(c.$slots, "selector-flag", { countryCode: c.modelValue }, () => [
1270
- D($e, {
1271
- src: I(Ee)(c.modelValue, "h20"),
1272
- alt: c.modelValue,
1273
- width: "20",
1274
- height: "20",
1275
- "img-class": "maz-w-5 maz-h-4 maz-rounded-sm"
1276
- }, null, 8, ["src", "alt"])
1277
- ], !0)
1278
- ], 10, Wo)) : P("v-if", !0),
1279
- D(Do, _({
1280
- id: `country-selector-${c.id}`,
1281
- ref_key: "CountrySelectorRef",
1282
- ref: o,
1283
- "model-value": c.modelValue
1284
- }, { ...c.$attrs }, {
1285
- class: "m-country-selector__select",
1286
- "option-value-key": "iso2",
1287
- "option-label-key": "name",
1288
- "option-input-value-key": c.countrySelectorDisplayName ? "name" : "dialCode",
1289
- name: "country",
1290
- "max-list-width": 250,
1291
- "min-list-width": 200,
1292
- disabled: c.disabled,
1293
- color: c.color,
1294
- size: c.size,
1295
- error: c.error,
1296
- "list-position": c.listPosition,
1297
- "item-height": 38,
1298
- success: c.success,
1299
- search: !c.noSearch,
1300
- "search-placeholder": c.locales.countrySelector.searchPlaceholder,
1301
- "search-threshold": c.searchThreshold,
1302
- options: h.value,
1303
- hint: I(t) && !c.modelValue ? c.locales.countrySelector.error : void 0,
1304
- label: c.locales.countrySelector.placeholder,
1305
- style: {
1306
- width: c.width
1307
- },
1308
- "exclude-selectors": [`#country-selector-flag-button-${c.id}`, ...c.excludeSelectors ?? []],
1309
- "onUpdate:modelValue": A[0] || (A[0] = (m) => c.$emit("update:model-value", m))
1310
- }), {
1311
- "no-results": Q(() => [
1312
- T(c.$slots, "no-results", {}, void 0, !0)
1313
- ]),
1314
- default: Q(({ option: m, isSelected: p }) => [
1315
- j(
1316
- "div",
1317
- {
1318
- class: $(["m-country-selector__select__item", {
1319
- "m-country-selector__select__item--selected": p
1320
- }])
1321
- },
1322
- [
1323
- !c.noFlags && typeof m.iso2 == "string" ? (C(), S("span", Qo, [
1324
- T(c.$slots, "country-list-flag", {
1325
- countryCode: m.iso2,
1326
- option: m,
1327
- isSelected: p
1328
- }, () => [
1329
- D($e, {
1330
- src: I(Ee)(m.iso2, "h20"),
1331
- alt: `${m.name} flag`,
1332
- width: "20",
1333
- height: "20",
1334
- "img-class": "maz-rounded-full maz-w-5 maz-h-5"
1335
- }, null, 8, ["src", "alt"])
1336
- ], !0)
1337
- ])) : P("v-if", !0),
1338
- c.showCodeOnList ? (C(), S(
1339
- "span",
1340
- {
1341
- key: 1,
1342
- class: $(["maz-w-9 maz-flex-none", { "maz-text-muted": !p }])
1343
- },
1344
- x(m.dialCode),
1345
- 3
1346
- /* TEXT, CLASS */
1347
- )) : P("v-if", !0),
1348
- j(
1349
- "span",
1350
- {
1351
- class: $(["maz-flex-1 maz-truncate", { "maz-font-semibold": p }])
1352
- },
1353
- x(m.name),
1354
- 3
1355
- /* TEXT, CLASS */
1356
- )
1357
- ],
1358
- 2
1359
- /* CLASS */
1360
- )
1361
- ]),
1362
- _: 3
1363
- /* FORWARDED */
1364
- }, 16, ["id", "model-value", "option-input-value-key", "disabled", "color", "size", "error", "list-position", "success", "search", "search-placeholder", "search-threshold", "options", "hint", "label", "style", "exclude-selectors"])
1365
- ],
1366
- 6
1367
- /* CLASS, STYLE */
1368
- ));
1369
- }
1370
- }), Jo = /* @__PURE__ */ se(Go, [["__scopeId", "data-v-e2fee821"]]), Zo = {
1371
- countrySelector: {
1372
- placeholder: "Country code",
1373
- error: "Choose country",
1374
- searchPlaceholder: "Search the country"
1375
- },
1376
- phoneInput: {
1377
- placeholder: "Phone number",
1378
- example: "Example:"
1379
- }
1380
- }, re = V();
1381
- function Xo(a) {
1382
- try {
1383
- const e = io(a);
1384
- return e || (console.error(`[maz-ui](MazPhoneNumberInput) The code country "${a}" is not available`), !1);
1385
- } catch (e) {
1386
- return console.error(`[maz-ui](MazPhoneNumberInput) ${e}`), !1;
1387
- }
1388
- }
1389
- function xo({
1390
- phoneNumber: a,
1391
- countryCode: e,
1392
- checkCountryCode: t = !1
1393
- }) {
1394
- try {
1395
- if (!a)
1396
- return {
1397
- isValid: !1,
1398
- countryCode: e
1399
- };
1400
- const o = uo(a, e ?? void 0), i = (o == null ? void 0 : o.isValid()) ?? !1, r = e && t ? (o == null ? void 0 : o.country) && e === o.country : !0;
1401
- return {
1402
- isValid: i && !!r,
1403
- countryCode: e,
1404
- parsedCountryCode: o == null ? void 0 : o.country,
1405
- isPossible: o == null ? void 0 : o.isPossible(),
1406
- countryCallingCode: o == null ? void 0 : o.countryCallingCode,
1407
- nationalNumber: o == null ? void 0 : o.nationalNumber,
1408
- type: o == null ? void 0 : o.getType(),
1409
- formatInternational: o == null ? void 0 : o.formatInternational(),
1410
- formatNational: o == null ? void 0 : o.formatNational(),
1411
- uri: o == null ? void 0 : o.getURI(),
1412
- e164: o == null ? void 0 : o.format("E.164"),
1413
- rfc3966: o == null ? void 0 : o.format("RFC3966"),
1414
- possibleCountries: o == null ? void 0 : o.getPossibleCountries(),
1415
- phoneNumber: a
1416
- };
1417
- } catch (o) {
1418
- throw new Error(`[MazPhoneNumberInput](getResultsFromPhoneNumber) ${o}`);
1419
- }
1420
- }
1421
- async function Re() {
1422
- const { default: a } = await import("./examples.mobile.json.tW3aL0qI.mjs");
1423
- return a;
1424
- }
1425
- function _o(a) {
1426
- var e;
1427
- try {
1428
- return re.value && a ? (e = co(a, re.value)) == null ? void 0 : e.formatNational() : void 0;
1429
- } catch (t) {
1430
- console.error(`[maz-ui](MazPhoneNumberInput) ${t}`);
1431
- }
1432
- }
1433
- function et(a, e) {
1434
- try {
1435
- return !e || !a ? void 0 : new mo(a).input(e);
1436
- } catch (t) {
1437
- throw new Error(`[MazPhoneNumberInput](getAsYouTypeFormat) ${t}`);
1438
- }
1439
- }
1440
- function ot(a, e) {
1441
- return de(a) === de(e);
1442
- }
1443
- async function tt() {
1444
- try {
1445
- if (re.value)
1446
- return;
1447
- re.value = await Re();
1448
- } catch (a) {
1449
- console.error("[maz-ui](MazPhoneNumberInput) while loading phone number examples file", a);
1450
- }
1451
- }
1452
- function qe() {
1453
- return {
1454
- examples: re,
1455
- getAsYouTypeFormat: et,
1456
- getPhoneNumberResults: xo,
1457
- getPhoneNumberExamplesFile: Re,
1458
- getPhoneNumberExample: _o,
1459
- isSameCountryCallingCode: ot,
1460
- isCountryAvailable: Xo,
1461
- getCountries: Fe,
1462
- getCountryCallingCode: de,
1463
- loadExamples: tt
1464
- };
1465
- }
1466
- const lt = /* @__PURE__ */ ae({
1467
- __name: "PhoneInput",
1468
- props: /* @__PURE__ */ so({
1469
- style: {},
1470
- class: {},
1471
- placeholder: {},
1472
- label: {},
1473
- topLabel: {},
1474
- assistiveText: {},
1475
- name: {},
1476
- color: {},
1477
- type: {},
1478
- required: { type: Boolean },
1479
- disabled: { type: Boolean },
1480
- readonly: { type: Boolean },
1481
- id: {},
1482
- error: { type: Boolean },
1483
- success: { type: Boolean },
1484
- warning: { type: Boolean },
1485
- hint: {},
1486
- inputClasses: {},
1487
- noBorder: { type: Boolean },
1488
- noRadius: { type: Boolean },
1489
- inputmode: {},
1490
- size: {},
1491
- debounce: { type: [Boolean, Number] },
1492
- debounceDelay: {},
1493
- validButton: { type: Boolean },
1494
- validButtonLoading: { type: Boolean },
1495
- autoFocus: { type: Boolean },
1496
- borderActive: { type: Boolean },
1497
- leftIcon: { type: [String, Function, Object] },
1498
- rightIcon: { type: [String, Function, Object] },
1499
- roundedSize: {},
1500
- block: { type: Boolean },
1501
- autocomplete: {},
1502
- locales: {},
1503
- noExample: { type: Boolean },
1504
- hasRadius: { type: Boolean },
1505
- autoFormat: { type: Boolean }
1506
- }, {
1507
- modelValue: {},
1508
- modelModifiers: {}
1509
- }),
1510
- emits: ["update:modelValue"],
1511
- setup(a) {
1512
- const { getPhoneNumberExample: e, getAsYouTypeFormat: t, loadExamples: o } = qe(), { sanitizePhoneNumber: i } = Se(), { results: r, selectedCountry: g } = Ne("data"), v = no(a, "modelValue"), L = y(() => {
1513
- const m = r.value.isValid ? r.value.formatNational : v.value;
1514
- return t(g.value, m) || m;
1515
- }), b = V(!1), h = y({
1516
- get: () => !b.value && a.autoFormat ? L.value : v.value,
1517
- set: (m) => {
1518
- v.value = i(m);
1519
- }
1520
- });
1521
- function O(m) {
1522
- const p = e(m);
1523
- return p ? `${a.locales.phoneInput.example} ${p}` : void 0;
1524
- }
1525
- const c = y(() => {
1526
- var p;
1527
- if (a.label || a.placeholder)
1528
- return a.label || a.placeholder;
1529
- const m = a.locales.phoneInput.placeholder;
1530
- if (a.noExample || !b.value)
1531
- return m;
1532
- {
1533
- const E = O(g.value);
1534
- return (p = r.value) != null && p.isValid || !E ? m : E;
1535
- }
1536
- }), A = y(() => a.placeholder ? { placeholder: c.value } : { label: c.value });
1537
- return Ae(() => {
1538
- a.noExample || o();
1539
- }), (m, p) => (C(), H(ze, _({
1540
- id: m.id,
1541
- modelValue: h.value,
1542
- "onUpdate:modelValue": p[0] || (p[0] = (E) => h.value = E)
1543
- }, { ...m.$attrs, ...A.value }, {
1544
- disabled: m.disabled,
1545
- color: m.color,
1546
- error: m.error,
1547
- size: m.size,
1548
- success: m.success,
1549
- name: m.name,
1550
- inputmode: m.inputmode,
1551
- autocomplete: m.autocomplete,
1552
- class: ["m-phone-input", [
1553
- {
1554
- "--border-radius": m.hasRadius,
1555
- "--error": m.error || !I(r).isValid,
1556
- "--focused": b.value
1557
- }
1558
- ]],
1559
- onFocus: p[1] || (p[1] = (E) => b.value = !0),
1560
- onBlur: p[2] || (p[2] = (E) => b.value = !1)
1561
- }), null, 16, ["id", "modelValue", "disabled", "color", "error", "size", "success", "name", "inputmode", "autocomplete", "class"]));
1562
- }
1563
- }), at = /* @__PURE__ */ se(lt, [["__scopeId", "data-v-3619d84c"]]), st = /* @__PURE__ */ ae({
1564
- name: "MazPhoneNumberInput",
1565
- inheritAttrs: !1,
1566
- __name: "MazPhoneNumberInput",
1567
- props: {
1568
- style: { default: void 0 },
1569
- class: { default: void 0 },
1570
- modelValue: { default: void 0 },
1571
- defaultPhoneNumber: { default: void 0 },
1572
- countryCode: { default: void 0 },
1573
- defaultCountryCode: { default: void 0 },
1574
- id: { default: void 0 },
1575
- placeholder: { default: void 0 },
1576
- label: { default: void 0 },
1577
- preferredCountries: { default: void 0 },
1578
- ignoredCountries: { default: void 0 },
1579
- onlyCountries: { default: void 0 },
1580
- translations: { default: void 0 },
1581
- listPosition: { default: "bottom left" },
1582
- color: { default: "primary" },
1583
- size: { default: "md" },
1584
- noFlags: { type: Boolean },
1585
- disabled: { type: Boolean },
1586
- noExample: { type: Boolean, default: !1 },
1587
- noSearch: { type: Boolean },
1588
- searchThreshold: { default: 0.75 },
1589
- noUseBrowserLocale: { type: Boolean },
1590
- fetchCountry: { type: Boolean },
1591
- noCountrySelector: { type: Boolean },
1592
- showCodeOnList: { type: Boolean },
1593
- customCountriesList: { default: void 0 },
1594
- autoFormat: { type: Boolean, default: !0 },
1595
- noFormattingAsYouType: { type: Boolean, default: !1 },
1596
- countryLocale: { default: void 0 },
1597
- noValidationError: { type: Boolean },
1598
- noValidationSuccess: { type: Boolean },
1599
- success: { type: Boolean },
1600
- error: { type: Boolean },
1601
- countrySelectorDisplayName: { type: Boolean },
1602
- countrySelectorWidth: { default: "9rem" },
1603
- block: { type: Boolean },
1604
- excludeSelectors: { default: void 0 },
1605
- orientation: { default: "responsive" },
1606
- countrySelectAttributes: { default: () => ({
1607
- name: "country",
1608
- autocomplete: "off"
1609
- }) },
1610
- phoneInputAttributes: { default: () => ({
1611
- name: "phone",
1612
- autocomplete: "tel",
1613
- inputmode: "tel"
1614
- }) }
1615
- },
1616
- emits: ["update:model-value", "country-code", "update:country-code", "update", "data"],
1617
- setup(a, { emit: e }) {
1618
- const t = a, o = e, { fetchCountryCode: i, getBrowserLocale: r } = Se(), { isCountryAvailable: g, getPhoneNumberResults: v } = qe(), L = we({
1619
- componentName: "MazPhoneNumberInput",
1620
- providedId: t.id
1621
- }), b = V(), h = V(), O = V(!1), c = V(!1), A = y(() => ({
1622
- ...Zo,
1623
- ...t.translations
1624
- })), m = y(() => t.autoFormat && !t.noFormattingAsYouType), p = V({
1625
- isValid: !1,
1626
- countryCode: t.countryCode ?? t.defaultCountryCode,
1627
- phoneNumber: t.modelValue
1628
- }), E = V();
1629
- Te(async () => {
1630
- if ((t.countryCode || t.defaultCountryCode) && !h.value && N({ countryCode: t.countryCode ?? t.defaultCountryCode }), t.fetchCountry && !h.value) {
1631
- const n = await i();
1632
- N({ countryCode: n });
1633
- }
1634
- }), Ae(() => {
1635
- var n;
1636
- if (!h.value && !t.noUseBrowserLocale) {
1637
- const w = (n = r()) == null ? void 0 : n.locale;
1638
- N({ countryCode: w });
1639
- }
1640
- });
1641
- function J({
1642
- phone: n = b.value || t.modelValue,
1643
- countryCode: w = h.value,
1644
- checkCountryCode: K = !1
1645
- }) {
1646
- p.value = v({
1647
- phoneNumber: n,
1648
- countryCode: w,
1649
- checkCountryCode: K
1650
- });
1651
- }
1652
- function ee() {
1653
- var n;
1654
- return (n = E.value) == null ? void 0 : n.$el.querySelector("input");
1655
- }
1656
- async function oe() {
1657
- var n;
1658
- await ue(), (n = ee()) == null || n.select();
1659
- }
1660
- function F(n) {
1661
- if (n) {
1662
- if (!g(n)) {
1663
- console.warn(`[MazPhoneNumberInput] Country code not available: "${n}"`), h.value = void 0;
1664
- return;
1665
- }
1666
- h.value = n;
1667
- }
1668
- }
1669
- function Y({
1670
- newPhoneNumber: n
1671
- }) {
1672
- var w;
1673
- J({ phone: n }), p.value.parsedCountryCode && p.value.parsedCountryCode !== h.value && N({
1674
- countryCode: p.value.parsedCountryCode,
1675
- updateResults: !1
1676
- }), p.value.isValid && m.value ? b.value = (w = p.value.formatNational) == null ? void 0 : w.trim().replaceAll(new RegExp(/\D/g), "") : b.value = n, O.value = !0, p.value.e164 ? o("update:model-value", p.value.e164) : o("update:model-value", p.value.phoneNumber), setTimeout(() => {
1677
- O.value = !1;
1678
- }, 0);
1679
- }
1680
- function N({
1681
- countryCode: n,
1682
- updateResults: w = !0,
1683
- selectPhoneNumber: K = !1
1684
- }) {
1685
- if (!n) {
1686
- h.value = void 0;
1687
- return;
1688
- }
1689
- c.value = !0, n !== h.value && F(n), w && J({
1690
- countryCode: h.value,
1691
- checkCountryCode: !0
1692
- });
1693
- const k = p.value.countryCode || p.value.parsedCountryCode;
1694
- o("country-code", k), o("update:country-code", k), K && !p.value.isValid && oe(), setTimeout(() => {
1695
- c.value = !1;
1696
- }, 0);
1697
- }
1698
- return ve(
1699
- () => t.modelValue ?? t.defaultPhoneNumber,
1700
- (n, w) => {
1701
- !O.value && n !== w && n !== b.value && Y({ newPhoneNumber: n });
1702
- },
1703
- { immediate: !0 }
1704
- ), ve(
1705
- () => t.countryCode ?? t.defaultCountryCode,
1706
- (n, w) => {
1707
- !c.value && n && n !== w && n !== h.value && N({ countryCode: n });
1708
- },
1709
- { immediate: !0 }
1710
- ), ve(
1711
- p,
1712
- (n) => {
1713
- o("update", n), o("data", n);
1714
- },
1715
- { immediate: !0 }
1716
- ), ro("data", {
1717
- selectedCountry: h,
1718
- phoneNumber: b,
1719
- results: p
1720
- }), (n, w) => {
1721
- var K;
1722
- return C(), S(
1723
- "div",
1724
- {
1725
- class: $(["m-phone-number-input m-reset-css", [t.class, { "--block": n.block }, n.orientation ? `--${n.orientation}` : void 0]]),
1726
- style: X(n.style)
1727
- },
1728
- [
1729
- n.noCountrySelector ? P("v-if", !0) : (C(), H(Jo, _({
1730
- key: 0,
1731
- id: I(L)
1732
- }, n.countrySelectAttributes, {
1733
- "model-value": h.value,
1734
- color: n.color,
1735
- size: n.size,
1736
- "country-locale": n.countryLocale,
1737
- "country-selector-display-name": n.countrySelectorDisplayName,
1738
- "custom-countries-list": n.customCountriesList,
1739
- "ignored-countries": n.ignoredCountries,
1740
- "list-position": n.listPosition,
1741
- "no-flags": n.noFlags,
1742
- "no-search": n.noSearch,
1743
- "exclude-selectors": n.excludeSelectors,
1744
- error: n.error || (n.noValidationError ? !1 : !!b.value && !h.value),
1745
- success: n.success || (n.noValidationSuccess ? !1 : (K = p.value) == null ? void 0 : K.isValid),
1746
- locales: A.value,
1747
- disabled: n.disabled,
1748
- "search-threshold": n.searchThreshold,
1749
- "show-code-on-list": n.showCodeOnList,
1750
- "only-countries": n.onlyCountries,
1751
- "preferred-countries": n.preferredCountries,
1752
- width: n.countrySelectorWidth,
1753
- "onUpdate:modelValue": w[0] || (w[0] = (k) => N({ countryCode: k, selectPhoneNumber: !0 }))
1754
- }), {
1755
- "no-results": Q(() => [
1756
- T(n.$slots, "no-results", {}, void 0, !0)
1757
- ]),
1758
- "selector-flag": Q(({ countryCode: k }) => [
1759
- T(n.$slots, "selector-flag", { countryCode: k }, void 0, !0)
1760
- ]),
1761
- "country-list-flag": Q(({ isSelected: k, option: G }) => [
1762
- T(n.$slots, "country-list-flag", {
1763
- countryCode: G.iso2,
1764
- option: G,
1765
- isSelected: k
1766
- }, void 0, !0)
1767
- ]),
1768
- _: 3
1769
- /* FORWARDED */
1770
- }, 16, ["id", "model-value", "color", "size", "country-locale", "country-selector-display-name", "custom-countries-list", "ignored-countries", "list-position", "no-flags", "no-search", "exclude-selectors", "error", "success", "locales", "disabled", "search-threshold", "show-code-on-list", "only-countries", "preferred-countries", "width"])),
1771
- D(at, _({
1772
- id: I(L),
1773
- ref_key: "PhoneInputRef",
1774
- ref: E,
1775
- "model-value": b.value
1776
- }, { ...n.$attrs, ...n.phoneInputAttributes }, {
1777
- color: n.color,
1778
- size: n.size,
1779
- "auto-format": m.value,
1780
- "no-example": n.noExample,
1781
- block: "",
1782
- disabled: n.disabled,
1783
- "has-radius": !n.noCountrySelector,
1784
- success: n.success || (n.noValidationSuccess ? !1 : p.value.isValid),
1785
- error: n.error || (n.noValidationError ? !1 : !!b.value && !p.value.isValid),
1786
- locales: A.value,
1787
- label: n.label,
1788
- placeholder: n.placeholder,
1789
- "onUpdate:modelValue": w[1] || (w[1] = (k) => Y({ newPhoneNumber: k }))
1790
- }), null, 16, ["id", "model-value", "color", "size", "auto-format", "no-example", "disabled", "has-radius", "success", "error", "locales", "label", "placeholder"])
1791
- ],
1792
- 6
1793
- /* CLASS, STYLE */
1794
- );
1795
- };
1796
- }
1797
- }), ut = /* @__PURE__ */ se(st, [["__scopeId", "data-v-fb5085d5"]]);
1798
- export {
1799
- ut as M,
1800
- se as _,
1801
- Ne as i,
1802
- we as u
1803
- };