@banzamel/mineralui 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/README.md +1 -1
  2. package/dist/MAvatar-B4Y9P5ua.js +57 -0
  3. package/dist/MAvatar-B4Y9P5ua.js.map +1 -0
  4. package/dist/MAvatar-D4ZC9wml.cjs +2 -0
  5. package/dist/MAvatar-D4ZC9wml.cjs.map +1 -0
  6. package/dist/MBadge-BaeeIRhu.js +19 -0
  7. package/dist/MBadge-BaeeIRhu.js.map +1 -0
  8. package/dist/MBadge-DJuqtMP7.cjs +2 -0
  9. package/dist/MBadge-DJuqtMP7.cjs.map +1 -0
  10. package/dist/MButton-Rg85cgO1.cjs +2 -0
  11. package/dist/{MButton-B8rXmFX9.cjs.map → MButton-Rg85cgO1.cjs.map} +1 -1
  12. package/dist/MButton-pSNx-6UK.js +113 -0
  13. package/dist/{MButton-BmTDe5Oa.js.map → MButton-pSNx-6UK.js.map} +1 -1
  14. package/dist/{MDataTable-Cqwkiq7A.js → MDataTable-D5SnGm3D.js} +3 -3
  15. package/dist/{MDataTable-Cqwkiq7A.js.map → MDataTable-D5SnGm3D.js.map} +1 -1
  16. package/dist/{MDataTable-BI7wFZYN.cjs → MDataTable-_afEvx2S.cjs} +2 -2
  17. package/dist/{MDataTable-BI7wFZYN.cjs.map → MDataTable-_afEvx2S.cjs.map} +1 -1
  18. package/dist/{MDrawer-CSvjLrhB.cjs → MDrawer-2NDNRU77.cjs} +2 -2
  19. package/dist/{MDrawer-CSvjLrhB.cjs.map → MDrawer-2NDNRU77.cjs.map} +1 -1
  20. package/dist/{MDrawer-DXHtAckQ.js → MDrawer-CHvOVWPw.js} +2 -2
  21. package/dist/{MDrawer-DXHtAckQ.js.map → MDrawer-CHvOVWPw.js.map} +1 -1
  22. package/dist/MHeading-C5s-kb2D.js +21 -0
  23. package/dist/MHeading-C5s-kb2D.js.map +1 -0
  24. package/dist/MHeading-CvAYmqMN.cjs +2 -0
  25. package/dist/MHeading-CvAYmqMN.cjs.map +1 -0
  26. package/dist/MImage-DqAx0_B0.cjs +2 -0
  27. package/dist/MImage-DqAx0_B0.cjs.map +1 -0
  28. package/dist/MImage-F34N1nhB.js +53 -0
  29. package/dist/MImage-F34N1nhB.js.map +1 -0
  30. package/dist/MInline-BKY7arDg.js +41 -0
  31. package/dist/MInline-BKY7arDg.js.map +1 -0
  32. package/dist/MInline-FgdIt6kv.cjs +2 -0
  33. package/dist/MInline-FgdIt6kv.cjs.map +1 -0
  34. package/dist/{MInput-W7DJQ_ng.cjs → MInput-C_Prnehc.cjs} +2 -2
  35. package/dist/{MInput-W7DJQ_ng.cjs.map → MInput-C_Prnehc.cjs.map} +1 -1
  36. package/dist/{MInput-BSaKw0Uc.js → MInput-DI066RK9.js} +2 -2
  37. package/dist/{MInput-BSaKw0Uc.js.map → MInput-DI066RK9.js.map} +1 -1
  38. package/dist/{MInputCVC-DH_bjV5R.cjs → MInputCVC-B75iBIRt.cjs} +2 -2
  39. package/dist/{MInputCVC-DH_bjV5R.cjs.map → MInputCVC-B75iBIRt.cjs.map} +1 -1
  40. package/dist/{MInputCVC-Dqbl1zG9.js → MInputCVC-BlBZjRft.js} +2 -2
  41. package/dist/{MInputCVC-Dqbl1zG9.js.map → MInputCVC-BlBZjRft.js.map} +1 -1
  42. package/dist/{MInputSearch-C7betxTa.cjs → MInputSearch-BKQnKS-9.cjs} +2 -2
  43. package/dist/{MInputSearch-C7betxTa.cjs.map → MInputSearch-BKQnKS-9.cjs.map} +1 -1
  44. package/dist/{MInputSearch-CH5ZcjLq.js → MInputSearch-CBsBsuqu.js} +2 -2
  45. package/dist/{MInputSearch-CH5ZcjLq.js.map → MInputSearch-CBsBsuqu.js.map} +1 -1
  46. package/dist/MLink-BgYBHhce.js +31 -0
  47. package/dist/{MLink-ODytrwne.js.map → MLink-BgYBHhce.js.map} +1 -1
  48. package/dist/MLink-DmB3rcWB.cjs +2 -0
  49. package/dist/{MLink-DHryXq_D.cjs.map → MLink-DmB3rcWB.cjs.map} +1 -1
  50. package/dist/{MModal-pMcPs3pw.cjs → MModal-BaA098nr.cjs} +2 -2
  51. package/dist/{MModal-pMcPs3pw.cjs.map → MModal-BaA098nr.cjs.map} +1 -1
  52. package/dist/{MModal-DShADuLw.js → MModal-DXZ2SrJt.js} +2 -2
  53. package/dist/{MModal-DShADuLw.js.map → MModal-DXZ2SrJt.js.map} +1 -1
  54. package/dist/{MPagination-B7aho7rQ.js → MPagination-BFI_z3y6.js} +2 -2
  55. package/dist/{MPagination-B7aho7rQ.js.map → MPagination-BFI_z3y6.js.map} +1 -1
  56. package/dist/{MPagination-BWHAVgWN.cjs → MPagination-C6hnhbTp.cjs} +2 -2
  57. package/dist/{MPagination-BWHAVgWN.cjs.map → MPagination-C6hnhbTp.cjs.map} +1 -1
  58. package/dist/{MQrCode-6Cz9B7Qy.js → MQrCode-DfZwkhZV.js} +2 -2
  59. package/dist/{MQrCode-6Cz9B7Qy.js.map → MQrCode-DfZwkhZV.js.map} +1 -1
  60. package/dist/{MQrCode-Bp2CWpmX.cjs → MQrCode-L0trT6n3.cjs} +2 -2
  61. package/dist/{MQrCode-Bp2CWpmX.cjs.map → MQrCode-L0trT6n3.cjs.map} +1 -1
  62. package/dist/{MSkeleton-BfRBJ6ku.cjs → MSkeleton-BEdflu0F.cjs} +2 -2
  63. package/dist/{MSkeleton-BfRBJ6ku.cjs.map → MSkeleton-BEdflu0F.cjs.map} +1 -1
  64. package/dist/{MSkeleton-CauCfkzj.js → MSkeleton-DX9gJ311.js} +2 -2
  65. package/dist/{MSkeleton-CauCfkzj.js.map → MSkeleton-DX9gJ311.js.map} +1 -1
  66. package/dist/MStack-BgwBqm-V.cjs +2 -0
  67. package/dist/MStack-BgwBqm-V.cjs.map +1 -0
  68. package/dist/MStack-Dk0GNVBT.js +41 -0
  69. package/dist/MStack-Dk0GNVBT.js.map +1 -0
  70. package/dist/MSubText-D8VxE877.cjs +2 -0
  71. package/dist/MSubText-D8VxE877.cjs.map +1 -0
  72. package/dist/MSubText-DwNeDGYg.js +17 -0
  73. package/dist/MSubText-DwNeDGYg.js.map +1 -0
  74. package/dist/MSurface-CFbX5C63.cjs +2 -0
  75. package/dist/MSurface-CFbX5C63.cjs.map +1 -0
  76. package/dist/MSurface-COlEjDyo.js +41 -0
  77. package/dist/MSurface-COlEjDyo.js.map +1 -0
  78. package/dist/MTag-DZjcHYn0.cjs +2 -0
  79. package/dist/MTag-DZjcHYn0.cjs.map +1 -0
  80. package/dist/MTag-wsCYRndK.js +39 -0
  81. package/dist/MTag-wsCYRndK.js.map +1 -0
  82. package/dist/MText-CexZuJgV.js +45 -0
  83. package/dist/MText-CexZuJgV.js.map +1 -0
  84. package/dist/MText-YIBipYLh.cjs +2 -0
  85. package/dist/MText-YIBipYLh.cjs.map +1 -0
  86. package/dist/{cards-BE77zKTI.js → cards-BguCbFp7.js} +10 -10
  87. package/dist/{cards-BE77zKTI.js.map → cards-BguCbFp7.js.map} +1 -1
  88. package/dist/{cards-BINs-dmS.cjs → cards-DgOG2sWk.cjs} +2 -2
  89. package/dist/{cards-BINs-dmS.cjs.map → cards-DgOG2sWk.cjs.map} +1 -1
  90. package/dist/cards.cjs +1 -1
  91. package/dist/cards.js +2 -2
  92. package/dist/components/controls/MButton/MButton.types.d.ts +2 -2
  93. package/dist/components/feedback/MAlert/MAlert.d.ts +1 -1
  94. package/dist/components/feedback/MAlert/MAlert.types.d.ts +2 -2
  95. package/dist/components/feedback/MBadge/MBadge.d.ts +1 -1
  96. package/dist/components/feedback/MBadge/MBadge.types.d.ts +2 -2
  97. package/dist/components/feedback/MBanner/MBanner.d.ts +1 -1
  98. package/dist/components/feedback/MBanner/MBanner.types.d.ts +2 -2
  99. package/dist/components/feedback/MTag/MTag.d.ts +1 -1
  100. package/dist/components/feedback/MTag/MTag.types.d.ts +2 -2
  101. package/dist/components/layout/MContainer/MContainer.d.ts +1 -1
  102. package/dist/components/layout/MContainer/MContainer.types.d.ts +2 -1
  103. package/dist/components/layout/MDivider/MDivider.d.ts +1 -1
  104. package/dist/components/layout/MDivider/MDivider.types.d.ts +2 -1
  105. package/dist/components/layout/MFooter/MFooter.d.ts +1 -1
  106. package/dist/components/layout/MFooter/MFooter.types.d.ts +2 -1
  107. package/dist/components/layout/MGrid/MGrid.d.ts +2 -2
  108. package/dist/components/layout/MGrid/MGrid.types.d.ts +4 -2
  109. package/dist/components/layout/MHeader/MHeader.d.ts +1 -1
  110. package/dist/components/layout/MHeader/MHeader.types.d.ts +2 -1
  111. package/dist/components/layout/MInline/MInline.d.ts +1 -1
  112. package/dist/components/layout/MInline/MInline.types.d.ts +2 -1
  113. package/dist/components/layout/MNavbar/MNavbar.d.ts +1 -1
  114. package/dist/components/layout/MNavbar/MNavbar.types.d.ts +2 -1
  115. package/dist/components/layout/MNavs/index.d.ts +1 -1
  116. package/dist/components/layout/MSection/MSection.d.ts +1 -1
  117. package/dist/components/layout/MSection/MSection.types.d.ts +2 -1
  118. package/dist/components/layout/MStack/MStack.d.ts +1 -1
  119. package/dist/components/layout/MStack/MStack.types.d.ts +2 -1
  120. package/dist/components/layout/MSurface/MSurface.d.ts +1 -1
  121. package/dist/components/layout/MSurface/MSurface.types.d.ts +2 -1
  122. package/dist/components/layout/MTopbar/MTopbar.d.ts +1 -1
  123. package/dist/components/layout/MTopbar/MTopbar.types.d.ts +2 -2
  124. package/dist/components/media/MAvatar/MAvatar.d.ts +1 -1
  125. package/dist/components/media/MAvatar/MAvatar.types.d.ts +2 -2
  126. package/dist/components/media/MAvatarStack/MAvatarStack.d.ts +1 -1
  127. package/dist/components/media/MAvatarStack/MAvatarStack.types.d.ts +2 -2
  128. package/dist/components/media/MImage/MImage.d.ts +1 -1
  129. package/dist/components/media/MImage/MImage.types.d.ts +2 -1
  130. package/dist/components/typography/MHeading/MHeading.d.ts +563 -2
  131. package/dist/components/typography/MHeading/MHeading.types.d.ts +2 -2
  132. package/dist/components/typography/MLink/MLink.types.d.ts +2 -1
  133. package/dist/components/typography/MSubText/MSubText.d.ts +1 -1
  134. package/dist/components/typography/MSubText/MSubText.types.d.ts +2 -2
  135. package/dist/components/typography/MText/MText.d.ts +1 -1
  136. package/dist/components/typography/MText/MText.types.d.ts +2 -2
  137. package/dist/controls-CN5d1q6e.cjs +2 -0
  138. package/dist/{controls-DwL1-nVC.cjs.map → controls-CN5d1q6e.cjs.map} +1 -1
  139. package/dist/{controls-BMwQ3C1R.js → controls-CVdInuMI.js} +145 -143
  140. package/dist/{controls-BMwQ3C1R.js.map → controls-CVdInuMI.js.map} +1 -1
  141. package/dist/controls.cjs +1 -1
  142. package/dist/controls.js +2 -2
  143. package/dist/data-BZ3Uio4Z.cjs +2 -0
  144. package/dist/data-BZ3Uio4Z.cjs.map +1 -0
  145. package/dist/{data-s8Hkht1B.js → data-BpGAUxCL.js} +751 -750
  146. package/dist/data-BpGAUxCL.js.map +1 -0
  147. package/dist/data.cjs +1 -1
  148. package/dist/data.js +2 -2
  149. package/dist/{display-B0lpgApV.cjs → display-CCG1eb0m.cjs} +2 -2
  150. package/dist/{display-B0lpgApV.cjs.map → display-CCG1eb0m.cjs.map} +1 -1
  151. package/dist/{display-DuBRiEKr.js → display-gwrOWH2c.js} +3 -3
  152. package/dist/{display-DuBRiEKr.js.map → display-gwrOWH2c.js.map} +1 -1
  153. package/dist/display.cjs +1 -1
  154. package/dist/display.js +2 -2
  155. package/dist/{dropdowns-BcVrUMPE.js → dropdowns-CNKEy6vf.js} +4 -4
  156. package/dist/{dropdowns-BcVrUMPE.js.map → dropdowns-CNKEy6vf.js.map} +1 -1
  157. package/dist/{dropdowns-CK-oxd62.cjs → dropdowns-HY56LZkp.cjs} +2 -2
  158. package/dist/{dropdowns-CK-oxd62.cjs.map → dropdowns-HY56LZkp.cjs.map} +1 -1
  159. package/dist/dropdowns.cjs +1 -1
  160. package/dist/dropdowns.js +1 -1
  161. package/dist/{feedback-D3LLKNlY.js → feedback-BfSdnvUS.js} +304 -301
  162. package/dist/feedback-BfSdnvUS.js.map +1 -0
  163. package/dist/feedback-DkQNQVdK.cjs +2 -0
  164. package/dist/feedback-DkQNQVdK.cjs.map +1 -0
  165. package/dist/feedback.cjs +1 -1
  166. package/dist/feedback.js +5 -5
  167. package/dist/index.cjs +1 -1
  168. package/dist/index.js +59 -59
  169. package/dist/{inputs-bCxSLz-U.js → inputs-BO7bjvyf.js} +3 -3
  170. package/dist/{inputs-bCxSLz-U.js.map → inputs-BO7bjvyf.js.map} +1 -1
  171. package/dist/{inputs-Dcj6C_Fn.cjs → inputs-vov7Kj6q.cjs} +2 -2
  172. package/dist/{inputs-Dcj6C_Fn.cjs.map → inputs-vov7Kj6q.cjs.map} +1 -1
  173. package/dist/inputs.cjs +1 -1
  174. package/dist/inputs.js +4 -4
  175. package/dist/layout-BvKpFxol.js +905 -0
  176. package/dist/layout-BvKpFxol.js.map +1 -0
  177. package/dist/layout-TFV-1uoQ.cjs +2 -0
  178. package/dist/layout-TFV-1uoQ.cjs.map +1 -0
  179. package/dist/layout.cjs +1 -1
  180. package/dist/layout.js +5 -5
  181. package/dist/media-BhRjHzpA.cjs +2 -0
  182. package/dist/{media-D5YGOTm7.cjs.map → media-BhRjHzpA.cjs.map} +1 -1
  183. package/dist/{media-8aMOtckF.js → media-BuIEAgV-.js} +145 -143
  184. package/dist/{media-8aMOtckF.js.map → media-BuIEAgV-.js.map} +1 -1
  185. package/dist/media.cjs +1 -1
  186. package/dist/media.js +3 -3
  187. package/dist/{overlays-DCj-oV2H.cjs → overlays-CjEh_HWn.cjs} +2 -2
  188. package/dist/{overlays-DCj-oV2H.cjs.map → overlays-CjEh_HWn.cjs.map} +1 -1
  189. package/dist/{overlays-gjg00CAf.js → overlays-D1SAF1F_.js} +3 -3
  190. package/dist/{overlays-gjg00CAf.js.map → overlays-D1SAF1F_.js.map} +1 -1
  191. package/dist/overlays.cjs +1 -1
  192. package/dist/overlays.js +3 -3
  193. package/dist/style-runtime.cjs +1 -1
  194. package/dist/style-runtime.js +1 -1
  195. package/dist/styles.css +1 -1
  196. package/dist/theme/MTheme.types.d.ts +5 -0
  197. package/dist/theme/index.d.ts +2 -1
  198. package/dist/theme/responsive.d.ts +18 -0
  199. package/dist/{theme-DLorpkJc.cjs → theme-CyIOdO9W.cjs} +2 -2
  200. package/dist/theme-CyIOdO9W.cjs.map +1 -0
  201. package/dist/{theme-BV4qkzZU.js → theme-Dl4EpdnW.js} +14 -2
  202. package/dist/theme-Dl4EpdnW.js.map +1 -0
  203. package/dist/theme.cjs +1 -1
  204. package/dist/theme.js +2 -2
  205. package/dist/{typography-DKdr1Tds.js → typography-BrIbvz08.js} +2 -2
  206. package/dist/{typography-DKdr1Tds.js.map → typography-BrIbvz08.js.map} +1 -1
  207. package/dist/{typography-qbFGv1gA.cjs → typography-DHjL4YTH.cjs} +2 -2
  208. package/dist/{typography-qbFGv1gA.cjs.map → typography-DHjL4YTH.cjs.map} +1 -1
  209. package/dist/typography.cjs +1 -1
  210. package/dist/typography.js +5 -5
  211. package/package.json +1 -1
  212. package/dist/MAvatar-BoO51a6m.js +0 -55
  213. package/dist/MAvatar-BoO51a6m.js.map +0 -1
  214. package/dist/MAvatar-DJKtca9j.cjs +0 -2
  215. package/dist/MAvatar-DJKtca9j.cjs.map +0 -1
  216. package/dist/MBadge-CexVV675.cjs +0 -2
  217. package/dist/MBadge-CexVV675.cjs.map +0 -1
  218. package/dist/MBadge-Y1JnZiIC.js +0 -17
  219. package/dist/MBadge-Y1JnZiIC.js.map +0 -1
  220. package/dist/MButton-B8rXmFX9.cjs +0 -2
  221. package/dist/MButton-BmTDe5Oa.js +0 -111
  222. package/dist/MHeading-C3IgV22T.js +0 -19
  223. package/dist/MHeading-C3IgV22T.js.map +0 -1
  224. package/dist/MHeading-DqvWKia1.cjs +0 -2
  225. package/dist/MHeading-DqvWKia1.cjs.map +0 -1
  226. package/dist/MImage-BDcrV6IC.js +0 -49
  227. package/dist/MImage-BDcrV6IC.js.map +0 -1
  228. package/dist/MImage-BsQJ_eYf.cjs +0 -2
  229. package/dist/MImage-BsQJ_eYf.cjs.map +0 -1
  230. package/dist/MInline-BAhu2zT-.cjs +0 -2
  231. package/dist/MInline-BAhu2zT-.cjs.map +0 -1
  232. package/dist/MInline-Dfy3Lrjs.js +0 -39
  233. package/dist/MInline-Dfy3Lrjs.js.map +0 -1
  234. package/dist/MLink-DHryXq_D.cjs +0 -2
  235. package/dist/MLink-ODytrwne.js +0 -29
  236. package/dist/MStack-Cifiqeb2.js +0 -39
  237. package/dist/MStack-Cifiqeb2.js.map +0 -1
  238. package/dist/MStack-lrvy7l3w.cjs +0 -2
  239. package/dist/MStack-lrvy7l3w.cjs.map +0 -1
  240. package/dist/MSubText-78oYdJQy.cjs +0 -2
  241. package/dist/MSubText-78oYdJQy.cjs.map +0 -1
  242. package/dist/MSubText-C2oxXwKT.js +0 -15
  243. package/dist/MSubText-C2oxXwKT.js.map +0 -1
  244. package/dist/MSurface-B1LXFczo.js +0 -39
  245. package/dist/MSurface-B1LXFczo.js.map +0 -1
  246. package/dist/MSurface-BgZ86iYn.cjs +0 -2
  247. package/dist/MSurface-BgZ86iYn.cjs.map +0 -1
  248. package/dist/MTag-C4_rBj4b.cjs +0 -2
  249. package/dist/MTag-C4_rBj4b.cjs.map +0 -1
  250. package/dist/MTag-DOcKm3c2.js +0 -37
  251. package/dist/MTag-DOcKm3c2.js.map +0 -1
  252. package/dist/MText-CxSZ2md0.cjs +0 -2
  253. package/dist/MText-CxSZ2md0.cjs.map +0 -1
  254. package/dist/MText-DX9O7gh7.js +0 -43
  255. package/dist/MText-DX9O7gh7.js.map +0 -1
  256. package/dist/controls-DwL1-nVC.cjs +0 -2
  257. package/dist/data-BESfox0z.cjs +0 -2
  258. package/dist/data-BESfox0z.cjs.map +0 -1
  259. package/dist/data-s8Hkht1B.js.map +0 -1
  260. package/dist/feedback-D3LLKNlY.js.map +0 -1
  261. package/dist/feedback-DYjg0Dbp.cjs +0 -2
  262. package/dist/feedback-DYjg0Dbp.cjs.map +0 -1
  263. package/dist/layout-Cb94o3oU.js +0 -891
  264. package/dist/layout-Cb94o3oU.js.map +0 -1
  265. package/dist/layout-DgfsQ-Tn.cjs +0 -2
  266. package/dist/layout-DgfsQ-Tn.cjs.map +0 -1
  267. package/dist/media-D5YGOTm7.cjs +0 -2
  268. package/dist/theme-BV4qkzZU.js.map +0 -1
  269. package/dist/theme-DLorpkJc.cjs.map +0 -1
@@ -1,126 +1,127 @@
1
- import { $r as e, Ar as t, At as n, Br as r, Cr as i, Dr as a, Er as o, Fr as s, Gr as c, Hr as l, Ii as u, Ir as d, Jr as f, Kr as p, Lr as m, Ni as h, Nr as g, Or as _, Pr as v, Qr as y, Rr as b, Sr as x, Ti as S, Ur as C, Vr as w, Wr as T, Zr as E, _r as D, br as O, dn as k, ei as A, jr as j, jt as M, ki as N, kr as P, nn as ee, qr as te, ri as ne, sn as re, tn as ie, wr as ae, xr as F, zr as oe } from "./icons-D5DK-J2C.js";
2
- import { t as I } from "./cn-YER3QsV1.js";
3
- import { t as L } from "./MPortal-Dqlkh3hw.js";
1
+ import { t as e } from "./theme-Dl4EpdnW.js";
2
+ import { $r as t, Ar as n, At as r, Br as i, Cr as a, Dr as o, Er as s, Fr as c, Gr as l, Hr as u, Ii as d, Ir as f, Jr as p, Kr as m, Lr as h, Ni as g, Nr as _, Or as v, Pr as y, Qr as b, Rr as x, Sr as S, Ti as C, Ur as w, Vr as T, Wr as E, Zr as D, _r as O, br as k, dn as A, ei as j, jr as M, jt as N, ki as P, kr as ee, nn as te, qr as ne, ri as re, sn as ie, tn as ae, wr as oe, xr as F, zr as I } from "./icons-D5DK-J2C.js";
3
+ import { t as L } from "./cn-YER3QsV1.js";
4
+ import { t as se } from "./MPortal-Dqlkh3hw.js";
4
5
  import { t as R } from "./MPopover-BC9C5967.js";
5
- import { t as se } from "./MInline-Dfy3Lrjs.js";
6
- import { t as z } from "./MText-DX9O7gh7.js";
7
- import { t as ce } from "./MHeading-C3IgV22T.js";
8
- import { t as le } from "./MSubText-C2oxXwKT.js";
9
- import { r as ue, t as de } from "./MButton-BmTDe5Oa.js";
10
- import { t as fe } from "./MCheckbox-B7SpcD4H.js";
11
- import { t as B } from "./MBadge-Y1JnZiIC.js";
12
- import { n as V, r as H } from "./MSkeleton-CauCfkzj.js";
13
- import { t as pe } from "./MModal-DShADuLw.js";
14
- import { i as U, r as me } from "./MDropdownMenu-CxBhYxQb.js";
6
+ import { t as ce } from "./MInline-BKY7arDg.js";
7
+ import { t as z } from "./MText-CexZuJgV.js";
8
+ import { t as le } from "./MHeading-C5s-kb2D.js";
9
+ import { t as ue } from "./MSubText-DwNeDGYg.js";
10
+ import { r as de, t as B } from "./MButton-pSNx-6UK.js";
11
+ import { t as V } from "./MCheckbox-B7SpcD4H.js";
12
+ import { t as H } from "./MBadge-BaeeIRhu.js";
13
+ import { n as fe, r as U } from "./MSkeleton-DX9gJ311.js";
14
+ import { t as pe } from "./MModal-DXZ2SrJt.js";
15
+ import { i as W, r as me } from "./MDropdownMenu-CxBhYxQb.js";
15
16
  import { t as he } from "./locale-BNyzqXAU.js";
16
- import { t as ge } from "./MTimeAgo-xxl53mct.js";
17
- import { t as _e } from "./MImage-BDcrV6IC.js";
18
- import { t as ve } from "./MAvatar-BoO51a6m.js";
19
- import { t as ye } from "./MInputSearch-CH5ZcjLq.js";
20
- import { a as be, c as xe, d as Se, f as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as W, u as ke } from "./MSparkline-Cb_EwR-E.js";
21
- import { a as Ae, r as je, t as Me } from "./frameworkTexts-B6oE8pMk.js";
22
- import { t as Ne } from "./MStack-Cifiqeb2.js";
23
- import { Children as Pe, createContext as Fe, isValidElement as Ie, useCallback as G, useContext as Le, useEffect as Re, useMemo as K, useRef as q, useState as J } from "react";
24
- import { Fragment as ze, jsx as Y, jsxs as X } from "react/jsx-runtime";
17
+ import { t as G } from "./MTimeAgo-xxl53mct.js";
18
+ import { t as ge } from "./MImage-F34N1nhB.js";
19
+ import { t as _e } from "./MAvatar-B4Y9P5ua.js";
20
+ import { t as ve } from "./MInputSearch-CBsBsuqu.js";
21
+ import { a as ye, c as be, d as xe, f as Se, i as Ce, l as we, n as Te, o as Ee, r as De, s as K, u as Oe } from "./MSparkline-Cb_EwR-E.js";
22
+ import { a as ke, r as Ae, t as je } from "./frameworkTexts-B6oE8pMk.js";
23
+ import { t as Me } from "./MStack-Dk0GNVBT.js";
24
+ import { Children as Ne, createContext as Pe, isValidElement as Fe, useCallback as q, useContext as Ie, useEffect as Le, useMemo as J, useRef as Y, useState as X } from "react";
25
+ import { Fragment as Re, jsx as Z, jsxs as Q } from "react/jsx-runtime";
25
26
  //#region src/components/data/MChat/MChatContext.ts
26
- var Be = Fe({});
27
- function Ve() {
28
- return Le(Be);
27
+ var ze = Pe({});
28
+ function Be() {
29
+ return Ie(ze);
29
30
  }
30
31
  //#endregion
31
32
  //#region src/components/data/MChat/MChat.tsx
32
- function He(e, t) {
33
- return Ie(e) && !!e.type[t];
33
+ function Ve(e, t) {
34
+ return Fe(e) && !!e.type[t];
34
35
  }
35
- function Ue({ variant: e = "inline", open: t, onToggle: r, unreadCount: i, color: a = "primary", className: o, children: s, ...c }) {
36
+ function He({ variant: e = "inline", open: t, onToggle: n, unreadCount: i, color: a = "primary", className: o, children: s, ...c }) {
36
37
  let l = null, u = null, d = [];
37
- Pe.forEach(s, (e) => {
38
- if (He(e, "__chatHeader")) {
38
+ Ne.forEach(s, (e) => {
39
+ if (Ve(e, "__chatHeader")) {
39
40
  l = e;
40
41
  return;
41
42
  }
42
- if (He(e, "__chatConversationList")) {
43
+ if (Ve(e, "__chatConversationList")) {
43
44
  u = e;
44
45
  return;
45
46
  }
46
47
  d.push(e);
47
48
  });
48
- let f = K(() => ({ color: a }), [a]), p = /* @__PURE__ */ Y(Be.Provider, {
49
+ let f = J(() => ({ color: a }), [a]), p = /* @__PURE__ */ Z(ze.Provider, {
49
50
  value: f,
50
- children: /* @__PURE__ */ X("div", {
51
- className: I("chat", e, `color-${a}`, e === "floating" && t && "open", o),
51
+ children: /* @__PURE__ */ Q("div", {
52
+ className: L("chat", e, `color-${a}`, e === "floating" && t && "open", o),
52
53
  ...c,
53
- children: [u && /* @__PURE__ */ Y("div", {
54
+ children: [u && /* @__PURE__ */ Z("div", {
54
55
  className: "chat-sidebar",
55
56
  children: u
56
- }), /* @__PURE__ */ X("div", {
57
+ }), /* @__PURE__ */ Q("div", {
57
58
  className: "chat-main",
58
59
  children: [l, d]
59
60
  })]
60
61
  })
61
62
  });
62
- return e === "floating" ? /* @__PURE__ */ Y(L, { children: /* @__PURE__ */ X("div", {
63
- className: I("chat-floating-wrapper", t && "open"),
64
- children: [t && p, /* @__PURE__ */ Y(de, {
63
+ return e === "floating" ? /* @__PURE__ */ Z(se, { children: /* @__PURE__ */ Q("div", {
64
+ className: L("chat-floating-wrapper", t && "open"),
65
+ children: [t && p, /* @__PURE__ */ Z(B, {
65
66
  variant: "filled",
66
67
  color: a,
67
68
  shape: "circle",
68
69
  size: "lg",
69
70
  className: "chat-floating-trigger",
70
- onClick: r,
71
+ onClick: n,
71
72
  "aria-label": t ? "Close chat" : "Open chat",
72
73
  badge: !t && i ? i : void 0,
73
74
  badgeColor: "error",
74
75
  badgePulsing: !t && !!i,
75
- children: /* @__PURE__ */ Y(n, {})
76
+ children: /* @__PURE__ */ Z(r, {})
76
77
  })]
77
78
  }) }) : p;
78
79
  }
79
80
  //#endregion
80
81
  //#region src/components/data/MChat/MChatHeader.tsx
81
- function We({ bordered: e = !1, className: t, children: n, ...r }) {
82
- return /* @__PURE__ */ Y("div", {
83
- className: I("chat-header", e && "bordered", t),
82
+ function Ue({ bordered: e = !1, className: t, children: n, ...r }) {
83
+ return /* @__PURE__ */ Z("div", {
84
+ className: L("chat-header", e && "bordered", t),
84
85
  ...r,
85
86
  children: n
86
87
  });
87
88
  }
88
- We.__chatHeader = !0;
89
+ Ue.__chatHeader = !0;
89
90
  //#endregion
90
91
  //#region src/components/data/MChat/MChatMessage.tsx
91
- function Ge({ status: e }) {
92
+ function We({ status: e }) {
92
93
  if (!e) return null;
93
94
  let t = e === "delivered" || e === "read";
94
- return /* @__PURE__ */ Y("span", {
95
- className: I("chat-status", e === "read" ? "chat-status-read" : ""),
95
+ return /* @__PURE__ */ Z("span", {
96
+ className: L("chat-status", e === "read" ? "chat-status-read" : ""),
96
97
  "aria-label": e,
97
98
  children: t ? "✓✓" : "✓"
98
99
  });
99
100
  }
100
- function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, className: i, ...a }) {
101
+ function Ge({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, className: i, ...a }) {
101
102
  let { content: o, sender: s, timestamp: c, status: l, isOwn: u, images: d } = e;
102
- return /* @__PURE__ */ X("div", {
103
- className: I("chat-message", u && "own", r || void 0, i),
103
+ return /* @__PURE__ */ Q("div", {
104
+ className: L("chat-message", u && "own", r || void 0, i),
104
105
  ...a,
105
- children: [t && !u && /* @__PURE__ */ Y(ve, {
106
+ children: [t && !u && /* @__PURE__ */ Z(_e, {
106
107
  src: s.avatar,
107
108
  name: s.name,
108
109
  size: "sm",
109
110
  color: r,
110
111
  className: "chat-message-avatar"
111
- }), /* @__PURE__ */ X("div", {
112
+ }), /* @__PURE__ */ Q("div", {
112
113
  className: "chat-message-content",
113
114
  children: [
114
- !u && /* @__PURE__ */ Y(z, {
115
+ !u && /* @__PURE__ */ Z(z, {
115
116
  className: "chat-message-sender",
116
117
  color: "neutral",
117
118
  children: s.name
118
119
  }),
119
- /* @__PURE__ */ X("div", {
120
+ /* @__PURE__ */ Q("div", {
120
121
  className: "chat-message-bubble",
121
- children: [o && /* @__PURE__ */ Y(z, { children: o }), d && d.length > 0 && /* @__PURE__ */ Y("div", {
122
- className: I("chat-message-images", d.length > 1 && "grid"),
123
- children: d.map((e, t) => /* @__PURE__ */ Y(_e, {
122
+ children: [o && /* @__PURE__ */ Z(z, { children: o }), d && d.length > 0 && /* @__PURE__ */ Z("div", {
123
+ className: L("chat-message-images", d.length > 1 && "grid"),
124
+ children: d.map((e, t) => /* @__PURE__ */ Z(ge, {
124
125
  src: e,
125
126
  alt: "",
126
127
  fit: "cover",
@@ -129,11 +130,11 @@ function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
129
130
  }, t))
130
131
  })]
131
132
  }),
132
- /* @__PURE__ */ X("div", {
133
+ /* @__PURE__ */ Q("div", {
133
134
  className: "chat-message-meta",
134
- children: [u && /* @__PURE__ */ Y(Ge, { status: l }), n && /* @__PURE__ */ Y(le, {
135
+ children: [u && /* @__PURE__ */ Z(We, { status: l }), n && /* @__PURE__ */ Z(ue, {
135
136
  className: "chat-message-time",
136
- children: /* @__PURE__ */ Y(ge, { value: c })
137
+ children: /* @__PURE__ */ Z(G, { value: c })
137
138
  })]
138
139
  })
139
140
  ]
@@ -142,30 +143,30 @@ function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
142
143
  }
143
144
  //#endregion
144
145
  //#region src/components/data/MChat/MChatBody.tsx
145
- function qe({ messages: e, onScrollTop: t, loading: n = !1, color: r, className: i, children: a, ...o }) {
146
- let { color: s } = Ve(), c = r ?? s, l = q(null), u = q(!0), d = q(0), f = G(() => {
146
+ function Ke({ messages: e, onScrollTop: t, loading: n = !1, color: r, className: i, children: a, ...o }) {
147
+ let { color: s } = Be(), c = r ?? s, l = Y(null), u = Y(!0), d = Y(0), f = q(() => {
147
148
  let e = l.current;
148
149
  e && (e.scrollTop = e.scrollHeight);
149
150
  }, []);
150
- return Re(() => {
151
+ return Le(() => {
151
152
  let t = e?.length ?? 0;
152
153
  t > d.current && u.current && f(), d.current = t;
153
- }, [e?.length, f]), Re(() => {
154
+ }, [e?.length, f]), Le(() => {
154
155
  f();
155
- }, [f]), /* @__PURE__ */ X("div", {
156
+ }, [f]), /* @__PURE__ */ Q("div", {
156
157
  ref: l,
157
- className: I("chat-body", i),
158
+ className: L("chat-body", i),
158
159
  onScroll: () => {
159
160
  let e = l.current;
160
161
  e && (u.current = e.scrollHeight - e.scrollTop - e.clientHeight < 40, e.scrollTop < 40 && t && !n && t());
161
162
  },
162
163
  ...o,
163
164
  children: [
164
- n && /* @__PURE__ */ Y("div", {
165
+ n && /* @__PURE__ */ Z("div", {
165
166
  className: "chat-body-loader",
166
- children: /* @__PURE__ */ Y(ue, { size: "sm" })
167
+ children: /* @__PURE__ */ Z(de, { size: "sm" })
167
168
  }),
168
- e?.map((e) => /* @__PURE__ */ Y(Ke, {
169
+ e?.map((e) => /* @__PURE__ */ Z(Ge, {
169
170
  message: e,
170
171
  color: c
171
172
  }, e.id)),
@@ -175,7 +176,7 @@ function qe({ messages: e, onScrollTop: t, loading: n = !1, color: r, className:
175
176
  }
176
177
  //#endregion
177
178
  //#region src/components/data/MChat/emojis.ts
178
- var Je = [
179
+ var qe = [
179
180
  {
180
181
  label: "Smileys",
181
182
  emojis: /* @__PURE__ */ "😀.😃.😄.😁.😆.😅.🤣.😂.🙂.😊.😇.🥰.😍.🤩.😘.😗.😋.😛.😜.🤪.😝.🤗.🤔.🫡.🤐.🤨.😐.😑.😶.🫠.😏.😒.🙄.😬.😮‍💨.🤥.😌.😔.😪.🤤.😴.😷.🤒.🤕.🤢.🤮.🤧.🥵.🥶.😵.🤯.🥳.🥸.😎.🤓.🧐".split(".")
@@ -234,21 +235,21 @@ var Je = [
234
235
  "🔔"
235
236
  ]
236
237
  }
237
- ], Ye = "image/png,image/jpeg,image/gif,image/webp";
238
- function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1, showEmoji: r = !0, showAttach: i = !0, onTyping: a, color: o, className: s, ...c }) {
239
- let { color: l } = Ve(), d = o ?? l, [f, p] = J(""), [m, h] = J(!1), [g, _] = J([]), [v, y] = J([]), [b, x] = J(!1), C = q(null), w = q(null), T = q(null), E = q(!1), D = q(void 0), O = G((e) => {
238
+ ], Je = "image/png,image/jpeg,image/gif,image/webp";
239
+ function Ye({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1, showEmoji: r = !0, showAttach: i = !0, onTyping: a, color: o, className: s, ...c }) {
240
+ let { color: l } = Be(), u = o ?? l, [f, p] = X(""), [m, h] = X(!1), [g, _] = X([]), [v, y] = X([]), [b, x] = X(!1), S = Y(null), w = Y(null), T = Y(null), E = Y(!1), D = Y(void 0), O = q((e) => {
240
241
  let t = e.filter((e) => e.type.startsWith("image/"));
241
242
  t.length !== 0 && (_((e) => [...e, ...t]), t.forEach((e) => {
242
243
  let t = URL.createObjectURL(e);
243
244
  y((e) => [...e, t]);
244
245
  }));
245
- }, []), k = G((e) => {
246
+ }, []), k = q((e) => {
246
247
  y((t) => (URL.revokeObjectURL(t[e]), t.filter((t, n) => n !== e))), _((t) => t.filter((t, n) => n !== e));
247
248
  }, []);
248
- Re(() => () => v.forEach((e) => URL.revokeObjectURL(e)), []);
249
- let A = G(() => {
249
+ Le(() => () => v.forEach((e) => URL.revokeObjectURL(e)), []);
250
+ let A = q(() => {
250
251
  let t = f.trim();
251
- !t && g.length === 0 || n || (e?.(t, g.length > 0 ? g : void 0), p(""), _([]), y((e) => (e.forEach((e) => URL.revokeObjectURL(e)), [])), C.current && (C.current.style.height = "auto"), E.current && (E.current = !1, a?.(!1)));
252
+ !t && g.length === 0 || n || (e?.(t, g.length > 0 ? g : void 0), p(""), _([]), y((e) => (e.forEach((e) => URL.revokeObjectURL(e)), [])), S.current && (S.current.style.height = "auto"), E.current && (E.current = !1, a?.(!1)));
252
253
  }, [
253
254
  f,
254
255
  g,
@@ -257,16 +258,16 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
257
258
  a
258
259
  ]), j = (e) => {
259
260
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), A());
260
- }, N = (e) => {
261
+ }, M = (e) => {
261
262
  p(e.target.value), P(e.target), a && (E.current || (E.current = !0, a(!0)), clearTimeout(D.current), D.current = setTimeout(() => {
262
263
  E.current = !1, a(!1);
263
264
  }, 1500));
264
265
  }, P = (e) => {
265
266
  e.style.height = "auto", e.style.height = Math.min(e.scrollHeight, 120) + "px";
266
267
  };
267
- Re(() => () => clearTimeout(D.current), []);
268
+ Le(() => () => clearTimeout(D.current), []);
268
269
  let ee = (e) => {
269
- p((t) => t + e), h(!1), C.current?.focus();
270
+ p((t) => t + e), h(!1), S.current?.focus();
270
271
  }, te = (e) => {
271
272
  e.preventDefault(), x(!0);
272
273
  }, ne = (e) => {
@@ -277,34 +278,34 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
277
278
  let e = T.current?.files;
278
279
  e && O(Array.from(e)), T.current && (T.current.value = "");
279
280
  }, ae = f.trim() || g.length > 0;
280
- return /* @__PURE__ */ X("div", {
281
- className: I("chat-input", b && "drag-over", s),
281
+ return /* @__PURE__ */ Q("div", {
282
+ className: L("chat-input", b && "drag-over", s),
282
283
  onDragOver: te,
283
284
  onDragLeave: ne,
284
285
  onDrop: re,
285
286
  ...c,
286
- children: [v.length > 0 && /* @__PURE__ */ Y("div", {
287
+ children: [v.length > 0 && /* @__PURE__ */ Z("div", {
287
288
  className: "chat-input-previews",
288
- children: v.map((e, t) => /* @__PURE__ */ X("div", {
289
+ children: v.map((e, t) => /* @__PURE__ */ Q("div", {
289
290
  className: "chat-input-preview",
290
- children: [/* @__PURE__ */ Y(_e, {
291
+ children: [/* @__PURE__ */ Z(ge, {
291
292
  src: e,
292
293
  alt: "",
293
294
  fit: "cover",
294
295
  rounded: !0,
295
296
  className: "chat-input-preview-img"
296
- }), /* @__PURE__ */ Y("button", {
297
+ }), /* @__PURE__ */ Z("button", {
297
298
  type: "button",
298
299
  className: "chat-input-preview-remove",
299
300
  onClick: () => k(t),
300
301
  "aria-label": "Remove image",
301
- children: /* @__PURE__ */ Y(u, {})
302
+ children: /* @__PURE__ */ Z(d, {})
302
303
  })]
303
304
  }, t))
304
- }), /* @__PURE__ */ X("div", {
305
+ }), /* @__PURE__ */ Q("div", {
305
306
  className: "chat-input-field",
306
307
  children: [
307
- r && /* @__PURE__ */ X(ze, { children: [/* @__PURE__ */ Y("button", {
308
+ r && /* @__PURE__ */ Q(Re, { children: [/* @__PURE__ */ Z("button", {
308
309
  ref: w,
309
310
  type: "button",
310
311
  className: "chat-input-emoji-trigger",
@@ -312,21 +313,21 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
312
313
  "aria-label": "Emoji",
313
314
  disabled: n,
314
315
  children: "😊"
315
- }), /* @__PURE__ */ Y(R, {
316
+ }), /* @__PURE__ */ Z(R, {
316
317
  open: m,
317
318
  anchorRef: w,
318
319
  onClose: () => h(!1),
319
320
  placement: "top-start",
320
- children: /* @__PURE__ */ Y("div", {
321
+ children: /* @__PURE__ */ Z("div", {
321
322
  className: "chat-emoji-picker",
322
- children: Je.map((e) => /* @__PURE__ */ X("div", {
323
+ children: qe.map((e) => /* @__PURE__ */ Q("div", {
323
324
  className: "chat-emoji-category",
324
- children: [/* @__PURE__ */ Y("div", {
325
+ children: [/* @__PURE__ */ Z("div", {
325
326
  className: "chat-emoji-category-label",
326
327
  children: e.label
327
- }), /* @__PURE__ */ Y("div", {
328
+ }), /* @__PURE__ */ Z("div", {
328
329
  className: "chat-emoji-grid",
329
- children: e.emojis.map((e) => /* @__PURE__ */ Y("button", {
330
+ children: e.emojis.map((e) => /* @__PURE__ */ Z("button", {
330
331
  type: "button",
331
332
  className: "chat-emoji-btn",
332
333
  onClick: () => ee(e),
@@ -336,43 +337,43 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
336
337
  }, e.label))
337
338
  })
338
339
  })] }),
339
- i && /* @__PURE__ */ X(ze, { children: [/* @__PURE__ */ Y("input", {
340
+ i && /* @__PURE__ */ Q(Re, { children: [/* @__PURE__ */ Z("input", {
340
341
  ref: T,
341
342
  type: "file",
342
- accept: Ye,
343
+ accept: Je,
343
344
  multiple: !0,
344
345
  className: "chat-input-file-hidden",
345
346
  onChange: ie,
346
347
  tabIndex: -1
347
- }), /* @__PURE__ */ Y("button", {
348
+ }), /* @__PURE__ */ Z("button", {
348
349
  type: "button",
349
350
  className: "chat-input-attach-trigger",
350
351
  onClick: () => T.current?.click(),
351
352
  "aria-label": "Attach image",
352
353
  disabled: n,
353
- children: /* @__PURE__ */ Y(S, { color: "inherit" })
354
+ children: /* @__PURE__ */ Z(C, { color: "inherit" })
354
355
  })] }),
355
- /* @__PURE__ */ Y("textarea", {
356
- ref: C,
356
+ /* @__PURE__ */ Z("textarea", {
357
+ ref: S,
357
358
  className: "chat-input-textarea",
358
359
  value: f,
359
- onChange: N,
360
+ onChange: M,
360
361
  onKeyDown: j,
361
362
  placeholder: t,
362
363
  disabled: n,
363
364
  rows: 1
364
365
  }),
365
- /* @__PURE__ */ Y(de, {
366
+ /* @__PURE__ */ Z(B, {
366
367
  variant: "filled",
367
368
  size: "sm",
368
- color: d ?? "primary",
369
+ color: u ?? "primary",
369
370
  iconOnly: !0,
370
371
  shape: "circle",
371
372
  className: "chat-input-send",
372
373
  onClick: A,
373
374
  disabled: n || !ae,
374
375
  "aria-label": "Send",
375
- children: /* @__PURE__ */ Y(M, {})
376
+ children: /* @__PURE__ */ Z(N, {})
376
377
  })
377
378
  ]
378
379
  })]
@@ -380,44 +381,44 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
380
381
  }
381
382
  //#endregion
382
383
  //#region src/components/data/MChat/MChatTypingIndicator.tsx
383
- function Ze({ users: e = [], visible: t = !0, className: n, ...r }) {
384
+ function Xe({ users: e = [], visible: t = !0, className: n, ...r }) {
384
385
  if (!t || e.length === 0) return null;
385
386
  let i = e.length === 1 ? `${e[0].name} is typing` : e.length === 2 ? `${e[0].name} and ${e[1].name} are typing` : `${e[0].name} and ${e.length - 1} others are typing`;
386
- return /* @__PURE__ */ X("div", {
387
- className: I("chat-typing", n),
387
+ return /* @__PURE__ */ Q("div", {
388
+ className: L("chat-typing", n),
388
389
  "aria-label": i,
389
390
  ...r,
390
- children: [e.length === 1 && /* @__PURE__ */ Y(ve, {
391
+ children: [e.length === 1 && /* @__PURE__ */ Z(_e, {
391
392
  src: e[0].avatar,
392
393
  name: e[0].name,
393
394
  size: "sm",
394
395
  className: "chat-typing-avatar"
395
- }), /* @__PURE__ */ X("div", {
396
+ }), /* @__PURE__ */ Q("div", {
396
397
  className: "chat-typing-dots",
397
398
  children: [
398
- /* @__PURE__ */ Y("span", { className: "chat-typing-dot" }),
399
- /* @__PURE__ */ Y("span", { className: "chat-typing-dot" }),
400
- /* @__PURE__ */ Y("span", { className: "chat-typing-dot" })
399
+ /* @__PURE__ */ Z("span", { className: "chat-typing-dot" }),
400
+ /* @__PURE__ */ Z("span", { className: "chat-typing-dot" }),
401
+ /* @__PURE__ */ Z("span", { className: "chat-typing-dot" })
401
402
  ]
402
403
  })]
403
404
  });
404
405
  }
405
406
  //#endregion
406
407
  //#region src/components/data/MChat/MChatConversationList.tsx
407
- function Qe({ className: e, children: t, ...n }) {
408
- return /* @__PURE__ */ Y("div", {
409
- className: I("chat-conversation-list", e),
408
+ function Ze({ className: e, children: t, ...n }) {
409
+ return /* @__PURE__ */ Z("div", {
410
+ className: L("chat-conversation-list", e),
410
411
  ...n,
411
412
  children: t
412
413
  });
413
414
  }
414
- Qe.__chatConversationList = !0;
415
+ Ze.__chatConversationList = !0;
415
416
  //#endregion
416
417
  //#region src/components/data/MChat/MChatConversationItem.tsx
417
- function $e({ conversation: e, active: t = !1, color: n, onClick: r, className: i, ...a }) {
418
- let { color: o } = Ve(), s = n ?? o, { title: c, participants: l, lastMessage: u, unreadCount: d } = e, f = c ?? l.map((e) => e.name).join(", "), p = l[0], m = l.some((e) => e.online);
419
- return /* @__PURE__ */ X("div", {
420
- className: I("chat-conversation-item", t && "active", i),
418
+ function Qe({ conversation: e, active: t = !1, color: n, onClick: r, className: i, ...a }) {
419
+ let { color: o } = Be(), s = n ?? o, { title: c, participants: l, lastMessage: u, unreadCount: d } = e, f = c ?? l.map((e) => e.name).join(", "), p = l[0], m = l.some((e) => e.online);
420
+ return /* @__PURE__ */ Q("div", {
421
+ className: L("chat-conversation-item", t && "active", i),
421
422
  onClick: () => r?.(e),
422
423
  role: "button",
423
424
  tabIndex: 0,
@@ -425,7 +426,7 @@ function $e({ conversation: e, active: t = !1, color: n, onClick: r, className:
425
426
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r?.(e));
426
427
  },
427
428
  ...a,
428
- children: [/* @__PURE__ */ Y(ve, {
429
+ children: [/* @__PURE__ */ Z(_e, {
429
430
  src: p?.avatar,
430
431
  name: p?.name,
431
432
  size: "md",
@@ -433,23 +434,23 @@ function $e({ conversation: e, active: t = !1, color: n, onClick: r, className:
433
434
  badge: m,
434
435
  badgeColor: "success",
435
436
  className: "chat-conversation-avatar"
436
- }), /* @__PURE__ */ X("div", {
437
+ }), /* @__PURE__ */ Q("div", {
437
438
  className: "chat-conversation-info",
438
- children: [/* @__PURE__ */ X("div", {
439
+ children: [/* @__PURE__ */ Q("div", {
439
440
  className: "chat-conversation-top",
440
- children: [/* @__PURE__ */ Y(z, {
441
+ children: [/* @__PURE__ */ Z(z, {
441
442
  className: "chat-conversation-name",
442
443
  children: f
443
- }), u && /* @__PURE__ */ Y(le, {
444
+ }), u && /* @__PURE__ */ Z(ue, {
444
445
  className: "chat-conversation-time",
445
- children: /* @__PURE__ */ Y(ge, { value: u.timestamp })
446
+ children: /* @__PURE__ */ Z(G, { value: u.timestamp })
446
447
  })]
447
- }), u && /* @__PURE__ */ X("div", {
448
+ }), u && /* @__PURE__ */ Q("div", {
448
449
  className: "chat-conversation-bottom",
449
- children: [/* @__PURE__ */ X(le, {
450
+ children: [/* @__PURE__ */ Q(ue, {
450
451
  className: "chat-conversation-preview",
451
452
  children: [u.isOwn ? "You: " : "", u.content]
452
- }), !!d && d > 0 && /* @__PURE__ */ Y(B, {
453
+ }), !!d && d > 0 && /* @__PURE__ */ Z(H, {
453
454
  color: s ?? "primary",
454
455
  size: "sm",
455
456
  rounded: !0,
@@ -461,51 +462,51 @@ function $e({ conversation: e, active: t = !1, color: n, onClick: r, className:
461
462
  }
462
463
  //#endregion
463
464
  //#region src/components/data/MTreeView/MTreeView.tsx
464
- var et = {
465
- pdf: /* @__PURE__ */ Y(e, {}),
466
- ts: /* @__PURE__ */ Y(l, {}),
467
- tsx: /* @__PURE__ */ Y(C, {}),
468
- js: /* @__PURE__ */ Y(t, {}),
469
- jsx: /* @__PURE__ */ Y(E, {}),
470
- css: /* @__PURE__ */ Y(i, {}),
471
- scss: /* @__PURE__ */ Y(i, {}),
472
- html: /* @__PURE__ */ Y(_, {}),
473
- json: /* @__PURE__ */ Y(j, {}),
474
- md: /* @__PURE__ */ Y(g, {}),
475
- txt: /* @__PURE__ */ Y(T, {}),
476
- csv: /* @__PURE__ */ Y(ae, {}),
477
- zip: /* @__PURE__ */ Y(f, {}),
478
- rar: /* @__PURE__ */ Y(r, {}),
479
- svg: /* @__PURE__ */ Y(w, {}),
480
- png: /* @__PURE__ */ Y(b, {}),
481
- jpg: /* @__PURE__ */ Y(P, {}),
482
- jpeg: /* @__PURE__ */ Y(y, {}),
483
- gif: /* @__PURE__ */ Y(a, {}),
484
- webp: /* @__PURE__ */ Y(c, {}),
485
- php: /* @__PURE__ */ Y(m, {}),
486
- xml: /* @__PURE__ */ Y(te, {}),
487
- xls: /* @__PURE__ */ Y(p, {}),
488
- ppt: /* @__PURE__ */ Y(oe, {}),
489
- odt: /* @__PURE__ */ Y(d, {}),
490
- exe: /* @__PURE__ */ Y(o, {}),
491
- mp3: /* @__PURE__ */ Y(v, {}),
492
- mp4: /* @__PURE__ */ Y(s, {})
465
+ var $e = {
466
+ pdf: /* @__PURE__ */ Z(t, {}),
467
+ ts: /* @__PURE__ */ Z(u, {}),
468
+ tsx: /* @__PURE__ */ Z(w, {}),
469
+ js: /* @__PURE__ */ Z(n, {}),
470
+ jsx: /* @__PURE__ */ Z(D, {}),
471
+ css: /* @__PURE__ */ Z(a, {}),
472
+ scss: /* @__PURE__ */ Z(a, {}),
473
+ html: /* @__PURE__ */ Z(v, {}),
474
+ json: /* @__PURE__ */ Z(M, {}),
475
+ md: /* @__PURE__ */ Z(_, {}),
476
+ txt: /* @__PURE__ */ Z(E, {}),
477
+ csv: /* @__PURE__ */ Z(oe, {}),
478
+ zip: /* @__PURE__ */ Z(p, {}),
479
+ rar: /* @__PURE__ */ Z(i, {}),
480
+ svg: /* @__PURE__ */ Z(T, {}),
481
+ png: /* @__PURE__ */ Z(x, {}),
482
+ jpg: /* @__PURE__ */ Z(ee, {}),
483
+ jpeg: /* @__PURE__ */ Z(b, {}),
484
+ gif: /* @__PURE__ */ Z(o, {}),
485
+ webp: /* @__PURE__ */ Z(l, {}),
486
+ php: /* @__PURE__ */ Z(h, {}),
487
+ xml: /* @__PURE__ */ Z(ne, {}),
488
+ xls: /* @__PURE__ */ Z(m, {}),
489
+ ppt: /* @__PURE__ */ Z(I, {}),
490
+ odt: /* @__PURE__ */ Z(f, {}),
491
+ exe: /* @__PURE__ */ Z(s, {}),
492
+ mp3: /* @__PURE__ */ Z(y, {}),
493
+ mp4: /* @__PURE__ */ Z(c, {})
493
494
  };
494
- function tt(e) {
495
+ function et(e) {
495
496
  let t = e.lastIndexOf(".");
496
497
  return t < 1 ? null : e.slice(t + 1).toLowerCase();
497
498
  }
498
- function nt(e) {
499
+ function tt(e) {
499
500
  return e.kind === "folder" || !!e.children?.length;
500
501
  }
501
- function rt(e) {
502
- let t = tt(e);
503
- return t ? et[t] ?? /* @__PURE__ */ Y(A, {}) : /* @__PURE__ */ Y(ne, {});
502
+ function nt(e) {
503
+ let t = et(e);
504
+ return t ? $e[t] ?? /* @__PURE__ */ Z(j, {}) : /* @__PURE__ */ Z(re, {});
504
505
  }
505
- function it(e, t, n) {
506
- return e.icon ? e.icon : n ? nt(e) ? Y(t ? F : x, {}) : rt(e.label) : null;
506
+ function rt(e, t, n) {
507
+ return e.icon ? e.icon : n ? tt(e) ? Z(t ? F : S, {}) : nt(e.label) : null;
507
508
  }
508
- function at(e) {
509
+ function it(e) {
509
510
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
510
511
  function r(e) {
511
512
  t.set(e.id, e);
@@ -518,7 +519,7 @@ function at(e) {
518
519
  descendants: n
519
520
  };
520
521
  }
521
- function ot(e, t) {
522
+ function at(e, t) {
522
523
  return typeof window > "u" ? {
523
524
  x: e,
524
525
  y: t
@@ -527,45 +528,45 @@ function ot(e, t) {
527
528
  y: Math.max(8, Math.min(t, window.innerHeight - 16))
528
529
  };
529
530
  }
530
- function st({ node: e, level: t, expandable: n, selectable: r, expandedIds: i, selectedId: a, draggedId: o, dropTargetId: s, onToggle: c, onSelect: l, indent: u, showLines: d, fileIcons: f, draggable: p, canDropOnNode: m, onContextMenu: g, onDragStart: _, onDragOver: v, onDrop: y, onDragEnd: b }) {
531
- let x = nt(e), S = i.has(e.id), C = a === e.id, w = o === e.id, T = s === e.id, E = m?.(e), D = it(e, S, !!f);
532
- return /* @__PURE__ */ X("li", {
531
+ function ot({ node: e, level: t, expandable: n, selectable: r, expandedIds: i, selectedId: a, draggedId: o, dropTargetId: s, onToggle: c, onSelect: l, indent: u, showLines: d, fileIcons: f, draggable: p, canDropOnNode: m, onContextMenu: h, onDragStart: _, onDragOver: v, onDrop: y, onDragEnd: b }) {
532
+ let x = tt(e), S = i.has(e.id), C = a === e.id, w = o === e.id, T = s === e.id, E = m?.(e), D = rt(e, S, !!f);
533
+ return /* @__PURE__ */ Q("li", {
533
534
  role: "treeitem",
534
535
  "aria-expanded": x ? S : void 0,
535
- children: [/* @__PURE__ */ X("div", {
536
- className: I("item", C && "selected", e.disabled && "disabled", r && !e.disabled && "selectable", p && !e.disabled && "draggable", w && "dragging", E && "can-drop", T && "drop-target"),
536
+ children: [/* @__PURE__ */ Q("div", {
537
+ className: L("item", C && "selected", e.disabled && "disabled", r && !e.disabled && "selectable", p && !e.disabled && "draggable", w && "dragging", E && "can-drop", T && "drop-target"),
537
538
  style: { paddingLeft: t * u },
538
539
  draggable: p && !e.disabled,
539
540
  onClick: () => {
540
541
  e.disabled || (x && n && c(e.id), r && l?.(e.id, e));
541
542
  },
542
- onContextMenu: (t) => g?.(t, e),
543
+ onContextMenu: (t) => h?.(t, e),
543
544
  onDragStart: (t) => _?.(t, e),
544
545
  onDragOver: (t) => v?.(t, e),
545
546
  onDrop: (t) => y?.(t, e),
546
547
  onDragEnd: b,
547
548
  children: [
548
- /* @__PURE__ */ Y("span", {
549
+ /* @__PURE__ */ Z("span", {
549
550
  className: "toggle",
550
- children: x && n ? /* @__PURE__ */ Y("span", {
551
- className: I("arrow", S && "expanded"),
552
- children: /* @__PURE__ */ Y(h, {})
553
- }) : /* @__PURE__ */ Y("span", { className: "spacer" })
551
+ children: x && n ? /* @__PURE__ */ Z("span", {
552
+ className: L("arrow", S && "expanded"),
553
+ children: /* @__PURE__ */ Z(g, {})
554
+ }) : /* @__PURE__ */ Z("span", { className: "spacer" })
554
555
  }),
555
- D && /* @__PURE__ */ Y("span", {
556
+ D && /* @__PURE__ */ Z("span", {
556
557
  className: "icon",
557
558
  children: D
558
559
  }),
559
- /* @__PURE__ */ Y("span", {
560
+ /* @__PURE__ */ Z("span", {
560
561
  className: "label",
561
562
  children: e.label
562
563
  })
563
564
  ]
564
- }), x && S && /* @__PURE__ */ Y("ul", {
565
+ }), x && S && /* @__PURE__ */ Z("ul", {
565
566
  className: "list",
566
567
  role: "group",
567
568
  style: d ? { "--line-left": `${t * u + 17}px` } : void 0,
568
- children: (e.children ?? []).map((e) => /* @__PURE__ */ Y(st, {
569
+ children: (e.children ?? []).map((e) => /* @__PURE__ */ Z(ot, {
569
570
  node: e,
570
571
  level: t + 1,
571
572
  expandable: n,
@@ -581,7 +582,7 @@ function st({ node: e, level: t, expandable: n, selectable: r, expandedIds: i, s
581
582
  fileIcons: f,
582
583
  draggable: p,
583
584
  canDropOnNode: m,
584
- onContextMenu: g,
585
+ onContextMenu: h,
585
586
  onDragStart: _,
586
587
  onDragOver: v,
587
588
  onDrop: y,
@@ -590,9 +591,9 @@ function st({ node: e, level: t, expandable: n, selectable: r, expandedIds: i, s
590
591
  })]
591
592
  });
592
593
  }
593
- function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded: r = [], expanded: i, onExpandChange: a, selected: o, onSelect: s, indent: c = 20, showLines: l = !0, fileIcons: u = !0, draggable: d = !1, canDrop: f, onMove: p, contextMenuItems: m, onContextMenuAction: h, className: g, ..._ }) {
594
- let [v, y] = J(r), [b, x] = J(null), [S, C] = J(null), [w, T] = J(null), [E, D] = J(null), O = q(null), k = i ?? v, A = new Set(k), j = o === void 0 ? b : o, { nodeMap: M, descendants: N } = at(e), P = S ? M.get(S) ?? null : null;
595
- Re(() => {
594
+ function st({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded: r = [], expanded: i, onExpandChange: a, selected: o, onSelect: s, indent: c = 20, showLines: l = !0, fileIcons: u = !0, draggable: d = !1, canDrop: f, onMove: p, contextMenuItems: m, onContextMenuAction: h, className: g, ..._ }) {
595
+ let [v, y] = X(r), [b, x] = X(null), [S, C] = X(null), [w, T] = X(null), [E, D] = X(null), O = Y(null), k = i ?? v, A = new Set(k), j = o === void 0 ? b : o, { nodeMap: M, descendants: N } = it(e), P = S ? M.get(S) ?? null : null;
596
+ Le(() => {
596
597
  if (!E) return;
597
598
  function e(e) {
598
599
  e && O.current && O.current.contains(e.target) || D(null);
@@ -615,14 +616,14 @@ function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
615
616
  C(null), T(null);
616
617
  }
617
618
  function re(e) {
618
- return !P || !d || !p || e.disabled || !nt(e) || e.id === P.id || N.get(P.id)?.has(e.id) ? !1 : f ? f(P, e) : !0;
619
+ return !P || !d || !p || e.disabled || !tt(e) || e.id === P.id || N.get(P.id)?.has(e.id) ? !1 : f ? f(P, e) : !0;
619
620
  }
620
621
  function ie(e, t) {
621
622
  if (!m || t.disabled) return;
622
623
  let n = m(t).filter(Boolean);
623
624
  if (!n.length) return;
624
625
  e.preventDefault(), te(t.id, t);
625
- let r = ot(e.clientX, e.clientY);
626
+ let r = at(e.clientX, e.clientY);
626
627
  D({
627
628
  node: t,
628
629
  items: n,
@@ -633,10 +634,10 @@ function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
633
634
  function ae(e, t) {
634
635
  !d || t.disabled || (e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", t.id), D(null), C(t.id));
635
636
  }
636
- function F(e, t) {
637
+ function oe(e, t) {
637
638
  re(t) && (e.preventDefault(), e.dataTransfer.dropEffect = "move", T(t.id));
638
639
  }
639
- function oe(e, n) {
640
+ function F(e, n) {
640
641
  if (e.preventDefault(), !P || !re(n)) {
641
642
  ne();
642
643
  return;
@@ -648,13 +649,13 @@ function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
648
649
  targetNode: n
649
650
  }), t && !A.has(n.id) && ee(n.id), ne();
650
651
  }
651
- return /* @__PURE__ */ X("div", {
652
- className: I("tree", l && "lines", g),
652
+ return /* @__PURE__ */ Q("div", {
653
+ className: L("tree", l && "lines", g),
653
654
  ..._,
654
- children: [/* @__PURE__ */ Y("ul", {
655
+ children: [/* @__PURE__ */ Z("ul", {
655
656
  className: "list",
656
657
  role: "tree",
657
- children: e.map((e) => /* @__PURE__ */ Y(st, {
658
+ children: e.map((e) => /* @__PURE__ */ Z(ot, {
658
659
  node: e,
659
660
  level: 0,
660
661
  expandable: t,
@@ -672,11 +673,11 @@ function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
672
673
  canDropOnNode: re,
673
674
  onContextMenu: ie,
674
675
  onDragStart: ae,
675
- onDragOver: F,
676
- onDrop: oe,
676
+ onDragOver: oe,
677
+ onDrop: F,
677
678
  onDragEnd: ne
678
679
  }, e.id))
679
- }), E && /* @__PURE__ */ Y(L, { children: /* @__PURE__ */ Y("div", {
680
+ }), E && /* @__PURE__ */ Z(se, { children: /* @__PURE__ */ Z("div", {
680
681
  ref: O,
681
682
  className: "tree menu",
682
683
  style: {
@@ -684,36 +685,36 @@ function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
684
685
  left: E.x
685
686
  },
686
687
  role: "menu",
687
- children: E.items.map((e) => /* @__PURE__ */ X("button", {
688
+ children: E.items.map((e) => /* @__PURE__ */ Q("button", {
688
689
  type: "button",
689
- className: I("action", e.color, e.disabled && "disabled"),
690
+ className: L("action", e.color, e.disabled && "disabled"),
690
691
  role: "menuitem",
691
692
  disabled: e.disabled,
692
693
  onClick: () => {
693
694
  e.disabled || (h?.(e.id, E.node), D(null));
694
695
  },
695
- children: [e.icon && /* @__PURE__ */ Y("span", {
696
+ children: [e.icon && /* @__PURE__ */ Z("span", {
696
697
  className: "icon",
697
698
  children: e.icon
698
- }), /* @__PURE__ */ Y("span", { children: e.label })]
699
+ }), /* @__PURE__ */ Z("span", { children: e.label })]
699
700
  }, e.id))
700
701
  }) })]
701
702
  });
702
703
  }
703
704
  //#endregion
704
705
  //#region src/components/data/MTaskList/MTaskList.tsx
705
- function lt({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r, className: i, ...a }) {
706
- return /* @__PURE__ */ Y("div", {
707
- className: I("task list", `color-${t}`, i),
706
+ function ct({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r, className: i, ...a }) {
707
+ return /* @__PURE__ */ Z("div", {
708
+ className: L("task list", `color-${t}`, i),
708
709
  role: "list",
709
710
  ...a,
710
- children: e.map((e) => /* @__PURE__ */ X("div", {
711
- className: I("task item", e.checked && "checked", e.disabled && "disabled"),
711
+ children: e.map((e) => /* @__PURE__ */ Q("div", {
712
+ className: L("task item", e.checked && "checked", e.disabled && "disabled"),
712
713
  role: "listitem",
713
714
  onClick: (t) => {
714
715
  e.disabled || t.target.closest(".checkbox") || r?.(e.id, !(e.checked ?? !1));
715
716
  },
716
- children: [/* @__PURE__ */ Y(fe, {
717
+ children: [/* @__PURE__ */ Z(V, {
717
718
  className: "task control",
718
719
  checked: e.checked ?? !1,
719
720
  color: t,
@@ -721,8 +722,8 @@ function lt({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r
721
722
  disabled: e.disabled,
722
723
  onChange: (t) => r?.(e.id, t.target.checked),
723
724
  clickEffect: "ripple"
724
- }), /* @__PURE__ */ Y("span", {
725
- className: I("task label", e.checked && n && "done"),
725
+ }), /* @__PURE__ */ Z("span", {
726
+ className: L("task label", e.checked && n && "done"),
726
727
  children: e.label
727
728
  })]
728
729
  }, e.id))
@@ -730,51 +731,51 @@ function lt({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r
730
731
  }
731
732
  //#endregion
732
733
  //#region src/components/data/MFileManager/MFileManager.tsx
733
- var ut = {
734
- pdf: /* @__PURE__ */ Y(e, {}),
735
- ts: /* @__PURE__ */ Y(l, {}),
736
- tsx: /* @__PURE__ */ Y(C, {}),
737
- js: /* @__PURE__ */ Y(t, {}),
738
- jsx: /* @__PURE__ */ Y(E, {}),
739
- css: /* @__PURE__ */ Y(i, {}),
740
- scss: /* @__PURE__ */ Y(i, {}),
741
- html: /* @__PURE__ */ Y(_, {}),
742
- json: /* @__PURE__ */ Y(j, {}),
743
- md: /* @__PURE__ */ Y(g, {}),
744
- txt: /* @__PURE__ */ Y(T, {}),
745
- csv: /* @__PURE__ */ Y(ae, {}),
746
- zip: /* @__PURE__ */ Y(f, {}),
747
- rar: /* @__PURE__ */ Y(r, {}),
748
- svg: /* @__PURE__ */ Y(w, {}),
749
- png: /* @__PURE__ */ Y(b, {}),
750
- jpg: /* @__PURE__ */ Y(P, {}),
751
- jpeg: /* @__PURE__ */ Y(y, {}),
752
- gif: /* @__PURE__ */ Y(a, {}),
753
- webp: /* @__PURE__ */ Y(c, {}),
754
- php: /* @__PURE__ */ Y(m, {}),
755
- xml: /* @__PURE__ */ Y(te, {}),
756
- xls: /* @__PURE__ */ Y(p, {}),
757
- ppt: /* @__PURE__ */ Y(oe, {}),
758
- odt: /* @__PURE__ */ Y(d, {}),
759
- exe: /* @__PURE__ */ Y(o, {}),
760
- mp3: /* @__PURE__ */ Y(v, {}),
761
- mp4: /* @__PURE__ */ Y(s, {})
734
+ var lt = {
735
+ pdf: /* @__PURE__ */ Z(t, {}),
736
+ ts: /* @__PURE__ */ Z(u, {}),
737
+ tsx: /* @__PURE__ */ Z(w, {}),
738
+ js: /* @__PURE__ */ Z(n, {}),
739
+ jsx: /* @__PURE__ */ Z(D, {}),
740
+ css: /* @__PURE__ */ Z(a, {}),
741
+ scss: /* @__PURE__ */ Z(a, {}),
742
+ html: /* @__PURE__ */ Z(v, {}),
743
+ json: /* @__PURE__ */ Z(M, {}),
744
+ md: /* @__PURE__ */ Z(_, {}),
745
+ txt: /* @__PURE__ */ Z(E, {}),
746
+ csv: /* @__PURE__ */ Z(oe, {}),
747
+ zip: /* @__PURE__ */ Z(p, {}),
748
+ rar: /* @__PURE__ */ Z(i, {}),
749
+ svg: /* @__PURE__ */ Z(T, {}),
750
+ png: /* @__PURE__ */ Z(x, {}),
751
+ jpg: /* @__PURE__ */ Z(ee, {}),
752
+ jpeg: /* @__PURE__ */ Z(b, {}),
753
+ gif: /* @__PURE__ */ Z(o, {}),
754
+ webp: /* @__PURE__ */ Z(l, {}),
755
+ php: /* @__PURE__ */ Z(h, {}),
756
+ xml: /* @__PURE__ */ Z(ne, {}),
757
+ xls: /* @__PURE__ */ Z(m, {}),
758
+ ppt: /* @__PURE__ */ Z(I, {}),
759
+ odt: /* @__PURE__ */ Z(f, {}),
760
+ exe: /* @__PURE__ */ Z(s, {}),
761
+ mp3: /* @__PURE__ */ Z(y, {}),
762
+ mp4: /* @__PURE__ */ Z(c, {})
762
763
  };
763
- function dt(e) {
764
+ function ut(e) {
764
765
  let t = e.lastIndexOf(".");
765
766
  return t < 1 ? null : e.slice(t + 1).toLowerCase();
766
767
  }
767
- function Z(e) {
768
+ function $(e) {
768
769
  return e?.kind === "folder" || !!e?.children?.length;
769
770
  }
770
- function ft(e) {
771
- let t = dt(e);
772
- return t ? ut[t] ?? /* @__PURE__ */ Y(A, {}) : /* @__PURE__ */ Y(ne, {});
771
+ function dt(e) {
772
+ let t = ut(e);
773
+ return t ? lt[t] ?? /* @__PURE__ */ Z(j, {}) : /* @__PURE__ */ Z(re, {});
773
774
  }
774
- function pt(e, t = !1) {
775
- return e.icon ? e.icon : Z(e) ? Y(t ? F : x, {}) : ft(e.label);
775
+ function ft(e, t = !1) {
776
+ return e.icon ? e.icon : $(e) ? Z(t ? F : S, {}) : dt(e.label);
776
777
  }
777
- function mt(e) {
778
+ function pt(e) {
778
779
  if (!e || e < 1) return null;
779
780
  let t = [
780
781
  "B",
@@ -787,7 +788,7 @@ function mt(e) {
787
788
  let i = n >= 100 || r === 0 ? 0 : 1;
788
789
  return `${n.toFixed(i)} ${t[r]}`;
789
790
  }
790
- function ht(e, t) {
791
+ function mt(e, t) {
791
792
  if (!e) return null;
792
793
  let n = e instanceof Date ? e : new Date(e);
793
794
  return Number.isNaN(n.getTime()) ? null : new Intl.DateTimeFormat(t, {
@@ -798,7 +799,7 @@ function ht(e, t) {
798
799
  minute: "2-digit"
799
800
  }).format(n);
800
801
  }
801
- function gt(e) {
802
+ function ht(e) {
802
803
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
803
804
  function r(e, i) {
804
805
  for (let a of e) t.set(a.id, a), n.set(a.id, i), a.children?.length && r(a.children, a.id);
@@ -808,14 +809,14 @@ function gt(e) {
808
809
  parentMap: n
809
810
  };
810
811
  }
811
- function _t(e) {
812
- return e.flatMap((e) => Z(e) ? [{
812
+ function gt(e) {
813
+ return e.flatMap((e) => $(e) ? [{
813
814
  ...e,
814
815
  kind: "folder",
815
- children: _t(e.children ?? [])
816
+ children: gt(e.children ?? [])
816
817
  }] : []);
817
818
  }
818
- function vt(e, t, n) {
819
+ function _t(e, t, n) {
819
820
  let r = [], i = e;
820
821
  for (; i;) {
821
822
  let e = t.get(i);
@@ -824,15 +825,15 @@ function vt(e, t, n) {
824
825
  }
825
826
  return r;
826
827
  }
827
- function yt(e, t, n) {
828
+ function vt(e, t, n) {
828
829
  if (!e) return null;
829
830
  let r = t.get(e);
830
- return r ? Z(r) ? r.id : n.get(r.id) ?? null : null;
831
+ return r ? $(r) ? r.id : n.get(r.id) ?? null : null;
831
832
  }
832
- function bt(e, t) {
833
+ function yt(e, t) {
833
834
  return e ? e.children ?? [] : t;
834
835
  }
835
- function xt(e, t, n, r, i) {
836
+ function bt(e, t, n, r, i) {
836
837
  let a = e ? t.get(e) ?? null : null, o = a ? n.get(a.id) ?? null : null;
837
838
  return {
838
839
  id: e,
@@ -843,248 +844,248 @@ function xt(e, t, n, r, i) {
843
844
  activeFolder: i
844
845
  };
845
846
  }
846
- function St(e, t) {
847
+ function xt(e, t) {
847
848
  return [
848
- ...Z(e) ? [] : [{
849
+ ...$(e) ? [] : [{
849
850
  id: "download",
850
851
  label: t.download,
851
- icon: /* @__PURE__ */ Y(ie, {}),
852
+ icon: /* @__PURE__ */ Z(ae, {}),
852
853
  color: "primary"
853
854
  }],
854
855
  {
855
856
  id: "rename",
856
857
  label: t.rename,
857
- icon: /* @__PURE__ */ Y(ee, {})
858
+ icon: /* @__PURE__ */ Z(te, {})
858
859
  },
859
860
  {
860
861
  id: "move",
861
862
  label: t.moveTo,
862
- icon: /* @__PURE__ */ Y(N, {})
863
+ icon: /* @__PURE__ */ Z(P, {})
863
864
  },
864
865
  {
865
866
  id: "delete",
866
867
  label: t.delete,
867
- icon: /* @__PURE__ */ Y(k, {}),
868
+ icon: /* @__PURE__ */ Z(A, {}),
868
869
  color: "error"
869
870
  }
870
871
  ];
871
872
  }
872
- function Ct(e, t) {
873
- return [...Z(e) ? [{
873
+ function St(e, t) {
874
+ return [...$(e) ? [{
874
875
  id: "new-folder",
875
876
  label: t.newFolder,
876
- icon: /* @__PURE__ */ Y(O, {})
877
- }] : [], ...St(e, t)];
877
+ icon: /* @__PURE__ */ Z(k, {})
878
+ }] : [], ...xt(e, t)];
878
879
  }
879
- function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpandChange: i, folderId: a, defaultFolderId: o = null, onFolderChange: s, selectedId: c, onSelectionChange: l, view: u, defaultView: d = "list", onViewChange: f, searchValue: p, defaultSearchValue: m = "", onSearchChange: h, searchable: g = !0, searchPlaceholder: _, showSidebar: v = !0, showPreview: y = !0, emptyText: b, toolbarActions: x = [], onToolbarAction: S, onOpenItem: C, onItemAction: w, onContextMenuAction: T, canDrop: E, onMove: O, renderPreview: k, className: A, ...j }) {
880
- let M = he(t), N = Ae(), [P, ee] = J(o), [te, ne] = J(null), [ie, ae] = J(d), [F, oe] = J(m), { nodeMap: L, parentMap: R } = K(() => gt(e), [e]), ce = K(() => _t(e), [e]), le = yt(a === void 0 ? P : a, L, R), ue = le ? L.get(le) ?? null : null, fe = c === void 0 ? te : c, V = fe ? L.get(fe) ?? null : null, H = V ? V.id : null, pe = u ?? ie, ge = p ?? F, _e = bt(ue, e), ve = ge.trim().toLowerCase(), be = vt(le, L, R), xe = _ ?? N.searchPlaceholder, Se = b ?? N.emptyText, Ce = !!(w || T), we = K(() => ve ? _e.filter((e) => e.label.toLowerCase().includes(ve)) : _e, [_e, ve]);
881
- function Te(e) {
882
- let t = yt(e, L, R), n = t ? L.get(t) ?? null : null;
880
+ function Ct({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpandChange: i, folderId: a, defaultFolderId: o = null, onFolderChange: s, selectedId: c, onSelectionChange: l, view: u, defaultView: d = "list", onViewChange: f, searchValue: p, defaultSearchValue: m = "", onSearchChange: h, searchable: g = !0, searchPlaceholder: _, showSidebar: v = !0, showPreview: y = !0, emptyText: b, toolbarActions: x = [], onToolbarAction: S, onOpenItem: C, onItemAction: w, onContextMenuAction: T, canDrop: E, onMove: D, renderPreview: k, className: A, ...j }) {
881
+ let M = he(t), N = ke(), [P, ee] = X(o), [te, ne] = X(null), [re, ae] = X(d), [oe, F] = X(m), { nodeMap: I, parentMap: se } = J(() => ht(e), [e]), R = J(() => gt(e), [e]), le = vt(a === void 0 ? P : a, I, se), ue = le ? I.get(le) ?? null : null, de = c === void 0 ? te : c, V = de ? I.get(de) ?? null : null, fe = V ? V.id : null, U = u ?? re, pe = p ?? oe, G = yt(ue, e), ge = pe.trim().toLowerCase(), _e = _t(le, I, se), ye = _ ?? N.searchPlaceholder, be = b ?? N.emptyText, xe = !!(w || T), Se = J(() => ge ? G.filter((e) => e.label.toLowerCase().includes(ge)) : G, [G, ge]);
882
+ function Ce(e) {
883
+ let t = vt(e, I, se), n = t ? I.get(t) ?? null : null;
883
884
  s ? s(t, n) : ee(t);
884
885
  }
885
- function Ee(e, t = le, n = ue) {
886
- let r = xt(e, L, R, t, n);
886
+ function we(e, t = le, n = ue) {
887
+ let r = bt(e, I, se, t, n);
887
888
  l ? l(r) : ne(e);
888
889
  }
889
- function De(e) {
890
+ function Te(e) {
890
891
  f ? f(e) : ae(e);
891
892
  }
892
- function Oe(e) {
893
- h ? h(e) : oe(e);
893
+ function Ee(e) {
894
+ h ? h(e) : F(e);
894
895
  }
895
- function W(e, t) {
896
- Te(e), Ee(e, t.id, t);
896
+ function De(e, t) {
897
+ Ce(e), we(e, t.id, t);
897
898
  }
898
- function ke(e) {
899
- if (Z(e)) {
900
- Te(e.id), Ee(e.id, e.id, e);
899
+ function K(e) {
900
+ if ($(e)) {
901
+ Ce(e.id), we(e.id, e.id, e);
901
902
  return;
902
903
  }
903
- Ee(e.id);
904
+ we(e.id);
904
905
  }
905
- function je(e) {
906
+ function Oe(e) {
906
907
  S && S({
907
- ...xt(H, L, R, le, ue),
908
+ ...bt(fe, I, se, le, ue),
908
909
  actionId: e,
909
- visibleItems: we
910
+ visibleItems: Se
910
911
  });
911
912
  }
912
- function Me(e, t) {
913
+ function Ae(e, t) {
913
914
  (w ?? T)?.(e, t);
914
915
  }
915
- function Pe(e, t) {
916
+ function je(e, t) {
916
917
  (T ?? w)?.(e, t);
917
918
  }
918
- function Fe(e) {
919
- let t = [], n = mt(e.size), r = ht(e.modifiedAt, M);
920
- return Z(e) && t.push(N.itemsCount(e.children?.length ?? 0)), n && t.push(n), r && t.push(r), t.join(" / ");
919
+ function Ne(e) {
920
+ let t = [], n = pt(e.size), r = mt(e.modifiedAt, M);
921
+ return $(e) && t.push(N.itemsCount(e.children?.length ?? 0)), n && t.push(n), r && t.push(r), t.join(" / ");
921
922
  }
922
- return /* @__PURE__ */ X("div", {
923
- className: I("file-manager", !v && "no-sidebar", !y && "no-preview", A),
923
+ return /* @__PURE__ */ Q("div", {
924
+ className: L("file-manager", !v && "no-sidebar", !y && "no-preview", A),
924
925
  ...j,
925
- children: [/* @__PURE__ */ X("div", {
926
+ children: [/* @__PURE__ */ Q("div", {
926
927
  className: "toolbar",
927
- children: [/* @__PURE__ */ X("div", {
928
+ children: [/* @__PURE__ */ Q("div", {
928
929
  className: "toolbar-main",
929
- children: [/* @__PURE__ */ X("div", {
930
+ children: [/* @__PURE__ */ Q("div", {
930
931
  className: "breadcrumbs",
931
- children: [/* @__PURE__ */ X("button", {
932
+ children: [/* @__PURE__ */ Q("button", {
932
933
  type: "button",
933
934
  className: "breadcrumb root",
934
- onClick: () => Te(null),
935
- children: [/* @__PURE__ */ Y(D, {}), /* @__PURE__ */ Y(z, {
935
+ onClick: () => Ce(null),
936
+ children: [/* @__PURE__ */ Z(O, {}), /* @__PURE__ */ Z(z, {
936
937
  as: "span",
937
938
  weight: "semibold",
938
939
  children: N.home
939
940
  })]
940
- }), be.map((e) => /* @__PURE__ */ X("div", {
941
+ }), _e.map((e) => /* @__PURE__ */ Q("div", {
941
942
  className: "breadcrumbs",
942
- children: [/* @__PURE__ */ Y("span", {
943
+ children: [/* @__PURE__ */ Z("span", {
943
944
  className: "breadcrumb-separator",
944
945
  children: "/"
945
- }), /* @__PURE__ */ Y("button", {
946
+ }), /* @__PURE__ */ Z("button", {
946
947
  type: "button",
947
948
  className: "breadcrumb",
948
- onClick: () => Te(e.id),
949
- children: /* @__PURE__ */ Y(z, {
949
+ onClick: () => Ce(e.id),
950
+ children: /* @__PURE__ */ Z(z, {
950
951
  as: "span",
951
952
  children: e.label
952
953
  })
953
954
  })]
954
955
  }, e.id))]
955
- }), g && /* @__PURE__ */ Y(ye, {
956
+ }), g && /* @__PURE__ */ Z(ve, {
956
957
  className: "toolbar-search",
957
958
  size: "sm",
958
- placeholder: xe,
959
- value: ge,
960
- onChange: (e) => Oe(e.target.value),
961
- onClear: () => Oe("")
959
+ placeholder: ye,
960
+ value: pe,
961
+ onChange: (e) => Ee(e.target.value),
962
+ onClear: () => Ee("")
962
963
  })]
963
- }), /* @__PURE__ */ X("div", {
964
+ }), /* @__PURE__ */ Q("div", {
964
965
  className: "toolbar-actions",
965
- children: [x.map((e) => /* @__PURE__ */ Y(de, {
966
+ children: [x.map((e) => /* @__PURE__ */ Z(B, {
966
967
  size: "sm",
967
968
  variant: e.variant ?? "ghost",
968
969
  color: e.color,
969
970
  disabled: e.disabled,
970
- onClick: () => je(e.id),
971
+ onClick: () => Oe(e.id),
971
972
  startIcon: e.icon,
972
973
  children: e.label
973
- }, e.id)), /* @__PURE__ */ X("div", {
974
+ }, e.id)), /* @__PURE__ */ Q("div", {
974
975
  className: "view-switch",
975
- children: [/* @__PURE__ */ Y(de, {
976
+ children: [/* @__PURE__ */ Z(B, {
976
977
  size: "sm",
977
- variant: pe === "list" ? "secondary" : "ghost",
978
- onClick: () => De("list"),
978
+ variant: U === "list" ? "secondary" : "ghost",
979
+ onClick: () => Te("list"),
979
980
  children: N.listView
980
- }), /* @__PURE__ */ Y(de, {
981
+ }), /* @__PURE__ */ Z(B, {
981
982
  size: "sm",
982
- variant: pe === "grid" ? "secondary" : "ghost",
983
- onClick: () => De("grid"),
983
+ variant: U === "grid" ? "secondary" : "ghost",
984
+ onClick: () => Te("grid"),
984
985
  children: N.gridView
985
986
  })]
986
987
  })]
987
988
  })]
988
- }), /* @__PURE__ */ X("div", {
989
+ }), /* @__PURE__ */ Q("div", {
989
990
  className: "body",
990
991
  children: [
991
- v && /* @__PURE__ */ X("aside", {
992
+ v && /* @__PURE__ */ Q("aside", {
992
993
  className: "panel",
993
- children: [/* @__PURE__ */ X("div", {
994
+ children: [/* @__PURE__ */ Q("div", {
994
995
  className: "panel-header",
995
- children: [/* @__PURE__ */ Y(z, {
996
+ children: [/* @__PURE__ */ Z(z, {
996
997
  weight: "semibold",
997
998
  children: N.folders
998
- }), /* @__PURE__ */ Y(B, {
999
+ }), /* @__PURE__ */ Z(H, {
999
1000
  size: "sm",
1000
1001
  color: "info",
1001
- children: ce.length
1002
+ children: R.length
1002
1003
  })]
1003
- }), /* @__PURE__ */ Y("div", {
1004
+ }), /* @__PURE__ */ Z("div", {
1004
1005
  className: "panel-body sidebar-body",
1005
- children: ce.length > 0 ? /* @__PURE__ */ Y(ct, {
1006
- items: ce,
1006
+ children: R.length > 0 ? /* @__PURE__ */ Z(st, {
1007
+ items: R,
1007
1008
  selectable: !0,
1008
1009
  fileIcons: !0,
1009
1010
  defaultExpanded: n,
1010
1011
  expanded: r,
1011
1012
  onExpandChange: i,
1012
1013
  selected: le,
1013
- onSelect: (e, t) => W(e, t),
1014
- draggable: !!O,
1014
+ onSelect: (e, t) => De(e, t),
1015
+ draggable: !!D,
1015
1016
  canDrop: E ? (e, t) => E(e, t) : void 0,
1016
- onMove: O ? (e) => O({
1017
+ onMove: D ? (e) => D({
1017
1018
  draggedId: e.draggedId,
1018
1019
  draggedNode: e.draggedNode,
1019
1020
  targetId: e.targetId,
1020
1021
  targetNode: e.targetNode
1021
1022
  }) : void 0,
1022
- contextMenuItems: Ce ? (e) => Ct(e, N) : void 0,
1023
- onContextMenuAction: Ce ? (e, t) => Pe(e, t) : void 0
1024
- }) : /* @__PURE__ */ Y("div", {
1023
+ contextMenuItems: xe ? (e) => St(e, N) : void 0,
1024
+ onContextMenuAction: xe ? (e, t) => je(e, t) : void 0
1025
+ }) : /* @__PURE__ */ Z("div", {
1025
1026
  className: "empty-state",
1026
1027
  children: N.noFoldersAvailable
1027
1028
  })
1028
1029
  })]
1029
1030
  }),
1030
- /* @__PURE__ */ X("section", {
1031
+ /* @__PURE__ */ Q("section", {
1031
1032
  className: "panel",
1032
- children: [/* @__PURE__ */ X("div", {
1033
+ children: [/* @__PURE__ */ Q("div", {
1033
1034
  className: "panel-header",
1034
- children: [/* @__PURE__ */ X(se, {
1035
+ children: [/* @__PURE__ */ Q(ce, {
1035
1036
  align: "center",
1036
1037
  wrap: "wrap",
1037
- children: [/* @__PURE__ */ Y(z, {
1038
+ children: [/* @__PURE__ */ Z(z, {
1038
1039
  weight: "semibold",
1039
1040
  children: ue?.label ?? N.home
1040
- }), /* @__PURE__ */ Y(B, {
1041
+ }), /* @__PURE__ */ Z(H, {
1041
1042
  size: "sm",
1042
- children: we.length
1043
+ children: Se.length
1043
1044
  })]
1044
- }), /* @__PURE__ */ Y(z, {
1045
+ }), /* @__PURE__ */ Z(z, {
1045
1046
  size: "sm",
1046
1047
  tone: "muted",
1047
- children: ve ? N.filteredBy(ge) : N.currentFolder
1048
+ children: ge ? N.filteredBy(pe) : N.currentFolder
1048
1049
  })]
1049
- }), /* @__PURE__ */ Y("div", {
1050
+ }), /* @__PURE__ */ Z("div", {
1050
1051
  className: "panel-body",
1051
- children: we.length > 0 ? /* @__PURE__ */ Y("div", {
1052
- className: I("content-items", pe),
1053
- children: we.map((e) => {
1054
- let t = H === e.id, n = Fe(e), r = Ce ? St(e, N) : [];
1055
- return /* @__PURE__ */ X("div", {
1056
- className: I("item-card", t && "selected"),
1057
- children: [/* @__PURE__ */ X("button", {
1052
+ children: Se.length > 0 ? /* @__PURE__ */ Z("div", {
1053
+ className: L("content-items", U),
1054
+ children: Se.map((e) => {
1055
+ let t = fe === e.id, n = Ne(e), r = xe ? xt(e, N) : [];
1056
+ return /* @__PURE__ */ Q("div", {
1057
+ className: L("item-card", t && "selected"),
1058
+ children: [/* @__PURE__ */ Q("button", {
1058
1059
  type: "button",
1059
1060
  className: "item-card-main",
1060
- onClick: () => ke(e),
1061
+ onClick: () => K(e),
1061
1062
  onDoubleClick: () => C?.(e),
1062
- children: [/* @__PURE__ */ Y("span", {
1063
+ children: [/* @__PURE__ */ Z("span", {
1063
1064
  className: "item-icon",
1064
- children: pt(e)
1065
- }), /* @__PURE__ */ X("span", {
1065
+ children: ft(e)
1066
+ }), /* @__PURE__ */ Q("span", {
1066
1067
  className: "item-text",
1067
1068
  children: [
1068
- /* @__PURE__ */ Y(z, {
1069
+ /* @__PURE__ */ Z(z, {
1069
1070
  as: "span",
1070
1071
  weight: "semibold",
1071
1072
  truncate: !0,
1072
1073
  children: e.label
1073
1074
  }),
1074
- e.description ? /* @__PURE__ */ Y(z, {
1075
+ e.description ? /* @__PURE__ */ Z(z, {
1075
1076
  as: "span",
1076
1077
  size: "sm",
1077
1078
  tone: "muted",
1078
1079
  truncate: 2,
1079
1080
  children: e.description
1080
1081
  }) : null,
1081
- /* @__PURE__ */ X("span", {
1082
+ /* @__PURE__ */ Q("span", {
1082
1083
  className: "item-meta",
1083
- children: [/* @__PURE__ */ Y(B, {
1084
+ children: [/* @__PURE__ */ Z(H, {
1084
1085
  size: "sm",
1085
- color: Z(e) ? "info" : "primary",
1086
- children: Z(e) ? N.folder : N.file
1087
- }), n ? /* @__PURE__ */ Y(z, {
1086
+ color: $(e) ? "info" : "primary",
1087
+ children: $(e) ? N.folder : N.file
1088
+ }), n ? /* @__PURE__ */ Z(z, {
1088
1089
  as: "span",
1089
1090
  size: "sm",
1090
1091
  tone: "muted",
@@ -1094,94 +1095,94 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1094
1095
  })
1095
1096
  ]
1096
1097
  })]
1097
- }), r.length > 0 ? /* @__PURE__ */ Y("div", {
1098
+ }), r.length > 0 ? /* @__PURE__ */ Z("div", {
1098
1099
  className: "item-card-actions",
1099
- children: /* @__PURE__ */ Y(U, {
1100
+ children: /* @__PURE__ */ Z(W, {
1100
1101
  placement: "bottom-end",
1101
- trigger: /* @__PURE__ */ Y(de, {
1102
+ trigger: /* @__PURE__ */ Z(B, {
1102
1103
  "aria-label": `${N.preview}: ${e.label}`,
1103
1104
  variant: "ghost",
1104
1105
  size: "sm",
1105
1106
  iconOnly: !0,
1106
- children: /* @__PURE__ */ Y(re, {})
1107
+ children: /* @__PURE__ */ Z(ie, {})
1107
1108
  }),
1108
- children: r.map((t) => /* @__PURE__ */ Y(me, {
1109
+ children: r.map((t) => /* @__PURE__ */ Z(me, {
1109
1110
  icon: t.icon,
1110
1111
  label: t.label,
1111
1112
  color: t.color,
1112
- onClick: () => Me(t.id, e)
1113
+ onClick: () => Ae(t.id, e)
1113
1114
  }, t.id))
1114
1115
  })
1115
1116
  }) : null]
1116
1117
  }, e.id);
1117
1118
  })
1118
- }) : /* @__PURE__ */ Y("div", {
1119
+ }) : /* @__PURE__ */ Z("div", {
1119
1120
  className: "empty-state",
1120
- children: Se
1121
+ children: be
1121
1122
  })
1122
1123
  })]
1123
1124
  }),
1124
- y && /* @__PURE__ */ X("aside", {
1125
+ y && /* @__PURE__ */ Q("aside", {
1125
1126
  className: "panel",
1126
- children: [/* @__PURE__ */ X("div", {
1127
+ children: [/* @__PURE__ */ Q("div", {
1127
1128
  className: "panel-header",
1128
- children: [/* @__PURE__ */ Y(z, {
1129
+ children: [/* @__PURE__ */ Z(z, {
1129
1130
  weight: "semibold",
1130
1131
  children: N.preview
1131
- }), V ? /* @__PURE__ */ Y(B, {
1132
+ }), V ? /* @__PURE__ */ Z(H, {
1132
1133
  size: "sm",
1133
- color: Z(V) ? "info" : "primary",
1134
- children: Z(V) ? N.folder : N.file
1134
+ color: $(V) ? "info" : "primary",
1135
+ children: $(V) ? N.folder : N.file
1135
1136
  }) : null]
1136
- }), /* @__PURE__ */ Y("div", {
1137
+ }), /* @__PURE__ */ Z("div", {
1137
1138
  className: "panel-body",
1138
- children: V ? /* @__PURE__ */ X(Ne, { children: [
1139
- /* @__PURE__ */ Y("div", {
1139
+ children: V ? /* @__PURE__ */ Q(Me, { children: [
1140
+ /* @__PURE__ */ Z("div", {
1140
1141
  className: "preview-visual",
1141
- children: k ? k(V) : V.preview ? V.preview : /* @__PURE__ */ Y("span", {
1142
+ children: k ? k(V) : V.preview ? V.preview : /* @__PURE__ */ Z("span", {
1142
1143
  className: "preview-icon",
1143
- children: pt(V, !0)
1144
+ children: ft(V, !0)
1144
1145
  })
1145
1146
  }),
1146
- /* @__PURE__ */ Y(z, {
1147
+ /* @__PURE__ */ Z(z, {
1147
1148
  weight: "semibold",
1148
1149
  children: V.label
1149
1150
  }),
1150
- V.description ? /* @__PURE__ */ Y(z, {
1151
+ V.description ? /* @__PURE__ */ Z(z, {
1151
1152
  size: "sm",
1152
1153
  tone: "muted",
1153
1154
  children: V.description
1154
1155
  }) : null,
1155
- /* @__PURE__ */ X("div", {
1156
+ /* @__PURE__ */ Q("div", {
1156
1157
  className: "preview-meta",
1157
1158
  children: [
1158
- /* @__PURE__ */ Y(B, {
1159
+ /* @__PURE__ */ Z(H, {
1159
1160
  size: "sm",
1160
- color: Z(V) ? "info" : "primary",
1161
- children: Z(V) ? N.folder : N.file
1161
+ color: $(V) ? "info" : "primary",
1162
+ children: $(V) ? N.folder : N.file
1162
1163
  }),
1163
- mt(V.size) ? /* @__PURE__ */ Y(B, {
1164
+ pt(V.size) ? /* @__PURE__ */ Z(H, {
1164
1165
  size: "sm",
1165
- children: mt(V.size)
1166
+ children: pt(V.size)
1166
1167
  }) : null,
1167
- ht(V.modifiedAt, M) ? /* @__PURE__ */ Y(B, {
1168
+ mt(V.modifiedAt, M) ? /* @__PURE__ */ Z(H, {
1168
1169
  size: "sm",
1169
1170
  color: "neutral",
1170
- children: ht(V.modifiedAt, M)
1171
+ children: mt(V.modifiedAt, M)
1171
1172
  }) : null
1172
1173
  ]
1173
1174
  }),
1174
- /* @__PURE__ */ X(z, {
1175
+ /* @__PURE__ */ Q(z, {
1175
1176
  size: "sm",
1176
1177
  tone: "muted",
1177
1178
  children: [
1178
1179
  N.path,
1179
1180
  ":",
1180
1181
  " ",
1181
- [N.home, ...vt(V.id, L, R).map((e) => e.label)].join(" / ")
1182
+ [N.home, ..._t(V.id, I, se).map((e) => e.label)].join(" / ")
1182
1183
  ]
1183
1184
  })
1184
- ] }) : /* @__PURE__ */ Y("div", {
1185
+ ] }) : /* @__PURE__ */ Z("div", {
1185
1186
  className: "preview-empty",
1186
1187
  children: N.selectItemToInspect
1187
1188
  })
@@ -1193,40 +1194,40 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1193
1194
  }
1194
1195
  //#endregion
1195
1196
  //#region src/components/data/MCalendarBoard/MCalendarBoard.tsx
1196
- function Q(e) {
1197
+ function wt(e) {
1197
1198
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1198
1199
  }
1199
1200
  function Tt(e) {
1200
1201
  if (!e) return null;
1201
- if (e instanceof Date) return Q(e);
1202
+ if (e instanceof Date) return wt(e);
1202
1203
  let t = new Date(e);
1203
- return Number.isNaN(t.getTime()) ? null : Q(t);
1204
+ return Number.isNaN(t.getTime()) ? null : wt(t);
1204
1205
  }
1205
- function $(e) {
1206
+ function Et(e) {
1206
1207
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
1207
1208
  }
1208
- function Et(e) {
1209
+ function Dt(e) {
1209
1210
  return Tt(e.date);
1210
1211
  }
1211
- function Dt(e, t) {
1212
+ function Ot(e, t) {
1212
1213
  let n = new Date(e);
1213
- return n.setDate(n.getDate() + t), Q(n);
1214
+ return n.setDate(n.getDate() + t), wt(n);
1214
1215
  }
1215
- function Ot(e, t) {
1216
- let n = Q(e);
1217
- return Dt(n, -((n.getDay() - t + 7) % 7));
1216
+ function kt(e, t) {
1217
+ let n = wt(e);
1218
+ return Ot(n, -((n.getDay() - t + 7) % 7));
1218
1219
  }
1219
- function kt(e) {
1220
+ function At(e) {
1220
1221
  return [...e].sort((e, t) => {
1221
1222
  let n = e.startTime ?? "99:99", r = t.startTime ?? "99:99";
1222
1223
  return n.localeCompare(r);
1223
1224
  });
1224
1225
  }
1225
- function At(e, t) {
1226
- let n = Ot(new Date(e.getFullYear(), e.getMonth(), 1), t);
1227
- return Array.from({ length: 42 }, (e, t) => Dt(n, t));
1226
+ function jt(e, t) {
1227
+ let n = kt(new Date(e.getFullYear(), e.getMonth(), 1), t);
1228
+ return Array.from({ length: 42 }, (e, t) => Ot(n, t));
1228
1229
  }
1229
- function jt(e) {
1230
+ function Mt(e) {
1230
1231
  switch (e) {
1231
1232
  case "active": return "rgba(14, 165, 233, 1)";
1232
1233
  case "done": return "rgba(34, 197, 94, 1)";
@@ -1234,7 +1235,7 @@ function jt(e) {
1234
1235
  default: return "rgba(245, 158, 11, 1)";
1235
1236
  }
1236
1237
  }
1237
- function Mt(e, t) {
1238
+ function Nt(e, t) {
1238
1239
  return new Intl.DateTimeFormat(t, {
1239
1240
  weekday: "long",
1240
1241
  day: "numeric",
@@ -1242,63 +1243,63 @@ function Mt(e, t) {
1242
1243
  year: "numeric"
1243
1244
  }).format(e);
1244
1245
  }
1245
- function Nt(e, t) {
1246
- let n = Dt(e, 6), r = new Intl.DateTimeFormat(t, {
1246
+ function Pt(e, t) {
1247
+ let n = Ot(e, 6), r = new Intl.DateTimeFormat(t, {
1247
1248
  day: "numeric",
1248
1249
  month: "short"
1249
1250
  });
1250
1251
  return `${r.format(e)} - ${r.format(n)}`;
1251
1252
  }
1252
- function Pt(e, t) {
1253
+ function Ft(e, t) {
1253
1254
  return e.startTime && e.endTime ? `${e.startTime} - ${e.endTime}` : e.startTime ? e.startTime : t.allDay;
1254
1255
  }
1255
- function Ft(e, t) {
1256
+ function It(e, t) {
1256
1257
  let n = /* @__PURE__ */ new Date(), r = new Date(e);
1257
1258
  r.setHours(t, 0, 0, 0);
1258
1259
  let i = new Date(r);
1259
1260
  return i.setHours(t + 1, 0, 0, 0), i <= n ? "past" : r <= n && i > n ? "active" : "upcoming";
1260
1261
  }
1261
- function It(e) {
1262
- return kt(e).slice(0, 4).map((e) => /* @__PURE__ */ Y("span", {
1262
+ function Lt(e) {
1263
+ return At(e).slice(0, 4).map((e) => /* @__PURE__ */ Z("span", {
1263
1264
  className: "marker",
1264
- style: { background: e.color ?? jt(e.status) },
1265
+ style: { background: e.color ?? Mt(e.status) },
1265
1266
  "aria-hidden": "true"
1266
1267
  }, e.id));
1267
1268
  }
1268
- function Lt(e, t, n) {
1269
+ function Rt(e, t, n) {
1269
1270
  if (!t.length || !n.length) return e;
1270
1271
  let r = t.filter((e) => n.includes(e.id));
1271
1272
  return r.length ? e.filter((e) => r.some((t) => t.predicate(e))) : e;
1272
1273
  }
1273
- function Rt(e, t, n, r) {
1274
- return t === "week" ? Nt(Ot(e, r), n) : new Intl.DateTimeFormat(n, {
1274
+ function zt(e, t, n, r) {
1275
+ return t === "week" ? Pt(kt(e, r), n) : new Intl.DateTimeFormat(n, {
1275
1276
  month: "long",
1276
1277
  year: "numeric"
1277
1278
  }).format(e);
1278
1279
  }
1279
- function zt(e, t) {
1280
+ function Bt(e, t) {
1280
1281
  return e === "week" ? t.weekView : t.monthView;
1281
1282
  }
1282
- function Bt({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHour: i, showTimeline: a, emptyStateText: o, renderEventItem: s }) {
1283
+ function Vt({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHour: i, showTimeline: a, emptyStateText: o, renderEventItem: s }) {
1283
1284
  if (!e) return null;
1284
- let c = Me();
1285
- return /* @__PURE__ */ X(Ne, { children: [
1286
- /* @__PURE__ */ X(Ne, { children: [/* @__PURE__ */ Y(ce, {
1285
+ let c = je();
1286
+ return /* @__PURE__ */ Q(Me, { children: [
1287
+ /* @__PURE__ */ Q(Me, { children: [/* @__PURE__ */ Z(le, {
1287
1288
  level: 4,
1288
- children: Mt(e, n)
1289
- }), /* @__PURE__ */ Y(z, {
1289
+ children: Nt(e, n)
1290
+ }), /* @__PURE__ */ Z(z, {
1290
1291
  tone: "muted",
1291
1292
  size: "sm",
1292
1293
  children: t.length > 0 ? c.itemsCount(t.length) : o
1293
1294
  })] }),
1294
- /* @__PURE__ */ Y(Gt, {
1295
+ /* @__PURE__ */ Z(Kt, {
1295
1296
  events: t,
1296
1297
  locale: n,
1297
1298
  currentDate: e,
1298
1299
  emptyStateText: o,
1299
1300
  renderEventItem: s
1300
1301
  }),
1301
- a && /* @__PURE__ */ Y(Kt, {
1302
+ a && /* @__PURE__ */ Z(qt, {
1302
1303
  date: e,
1303
1304
  events: t,
1304
1305
  locale: n,
@@ -1307,12 +1308,12 @@ function Bt({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHo
1307
1308
  })
1308
1309
  ] });
1309
1310
  }
1310
- function Vt({ filters: e, activeFilterIds: t, onToggle: n }) {
1311
- return e.length ? /* @__PURE__ */ Y("div", {
1311
+ function Ht({ filters: e, activeFilterIds: t, onToggle: n }) {
1312
+ return e.length ? /* @__PURE__ */ Z("div", {
1312
1313
  className: "calendar filters",
1313
1314
  children: e.map((e) => {
1314
1315
  let r = t.includes(e.id);
1315
- return /* @__PURE__ */ Y(de, {
1316
+ return /* @__PURE__ */ Z(B, {
1316
1317
  type: "button",
1317
1318
  size: "sm",
1318
1319
  variant: "outlined",
@@ -1325,15 +1326,15 @@ function Vt({ filters: e, activeFilterIds: t, onToggle: n }) {
1325
1326
  })
1326
1327
  }) : null;
1327
1328
  }
1328
- function Ht({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInteract: i, onDayHover: a, onDayLeave: o, dayBadge: s, renderDayCell: c }) {
1329
- let l = $(Q(/* @__PURE__ */ new Date()));
1330
- return /* @__PURE__ */ Y("div", {
1329
+ function Ut({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInteract: i, onDayHover: a, onDayLeave: o, dayBadge: s, renderDayCell: c }) {
1330
+ let l = Et(wt(/* @__PURE__ */ new Date()));
1331
+ return /* @__PURE__ */ Z("div", {
1331
1332
  className: "calendar week",
1332
1333
  children: e.map((e) => {
1333
- let u = $(e), d = t.get(u) ?? [], f = s?.(e, d) ?? (d.length > 0 ? /* @__PURE__ */ Y(B, {
1334
+ let u = Et(e), d = t.get(u) ?? [], f = s?.(e, d) ?? (d.length > 0 ? /* @__PURE__ */ Z(H, {
1334
1335
  size: "sm",
1335
1336
  children: d.length
1336
- }) : null), p = It(d), m = !!(n && $(n) === u), h = {
1337
+ }) : null), p = Lt(d), m = !!(n && Et(n) === u), h = {
1337
1338
  date: e,
1338
1339
  events: d,
1339
1340
  badge: f,
@@ -1341,15 +1342,15 @@ function Ht({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInte
1341
1342
  isSelected: m,
1342
1343
  isOutsideMonth: !1
1343
1344
  };
1344
- return /* @__PURE__ */ Y("div", {
1345
+ return /* @__PURE__ */ Z("div", {
1345
1346
  className: "calendar week column",
1346
- children: /* @__PURE__ */ Y(Ut, {
1347
+ children: /* @__PURE__ */ Z(Wt, {
1347
1348
  date: e,
1348
1349
  events: d,
1349
1350
  badge: f,
1350
1351
  markers: p,
1351
1352
  isToday: h.isToday,
1352
- isSelected: m || !!(r && $(r) === u),
1353
+ isSelected: m || !!(r && Et(r) === u),
1353
1354
  isOutsideMonth: !1,
1354
1355
  onClick: (t) => i(e, t.currentTarget, d),
1355
1356
  onMouseEnter: (t) => a(e, t.currentTarget, d),
@@ -1360,78 +1361,78 @@ function Ht({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInte
1360
1361
  })
1361
1362
  });
1362
1363
  }
1363
- function Ut({ date: e, events: t = [], badge: n, markers: r, isToday: i = !1, isSelected: a = !1, isOutsideMonth: o = !1, className: s, children: c, ...l }) {
1364
- return /* @__PURE__ */ Y("button", {
1364
+ function Wt({ date: e, events: t = [], badge: n, markers: r, isToday: i = !1, isSelected: a = !1, isOutsideMonth: o = !1, className: s, children: c, ...l }) {
1365
+ return /* @__PURE__ */ Z("button", {
1365
1366
  type: "button",
1366
- className: I("calendar day cell", i && "today", a && "selected", o && "outside-month", s),
1367
+ className: L("calendar day cell", i && "today", a && "selected", o && "outside-month", s),
1367
1368
  ...l,
1368
- children: c ?? /* @__PURE__ */ X(ze, { children: [/* @__PURE__ */ X("div", {
1369
+ children: c ?? /* @__PURE__ */ Q(Re, { children: [/* @__PURE__ */ Q("div", {
1369
1370
  className: "day header",
1370
- children: [/* @__PURE__ */ Y("span", {
1371
+ children: [/* @__PURE__ */ Z("span", {
1371
1372
  className: "day number",
1372
1373
  children: e.getDate()
1373
- }), /* @__PURE__ */ Y("div", {
1374
+ }), /* @__PURE__ */ Z("div", {
1374
1375
  className: "day meta",
1375
1376
  children: n
1376
1377
  })]
1377
- }), /* @__PURE__ */ Y("div", {
1378
+ }), /* @__PURE__ */ Z("div", {
1378
1379
  className: "markers",
1379
- children: r ?? It(t)
1380
+ children: r ?? Lt(t)
1380
1381
  })] })
1381
1382
  });
1382
1383
  }
1383
- function Wt({ event: e, locale: t, className: n, currentDate: r, ...i }) {
1384
- let a = he(t), o = Me(), s = e.status === "cancelled" ? "error" : e.status === "done" ? "success" : e.status === "active" ? "info" : "warning";
1385
- return /* @__PURE__ */ X("div", {
1386
- className: I("calendar event item", n),
1384
+ function Gt({ event: e, locale: t, className: n, currentDate: r, ...i }) {
1385
+ let a = he(t), o = je(), s = e.status === "cancelled" ? "error" : e.status === "done" ? "success" : e.status === "active" ? "info" : "warning";
1386
+ return /* @__PURE__ */ Q("div", {
1387
+ className: L("calendar event item", n),
1387
1388
  ...i,
1388
- children: [/* @__PURE__ */ Y("div", {
1389
+ children: [/* @__PURE__ */ Z("div", {
1389
1390
  className: "event time",
1390
- children: Pt(e, o)
1391
- }), /* @__PURE__ */ X("div", {
1391
+ children: Ft(e, o)
1392
+ }), /* @__PURE__ */ Q("div", {
1392
1393
  className: "event content",
1393
1394
  children: [
1394
- /* @__PURE__ */ X("div", {
1395
+ /* @__PURE__ */ Q("div", {
1395
1396
  className: "event title row",
1396
- children: [/* @__PURE__ */ Y(ce, {
1397
+ children: [/* @__PURE__ */ Z(le, {
1397
1398
  level: 5,
1398
1399
  children: e.title
1399
- }), e.status && /* @__PURE__ */ Y(B, {
1400
+ }), e.status && /* @__PURE__ */ Z(H, {
1400
1401
  color: s,
1401
1402
  size: "sm",
1402
1403
  children: e.status
1403
1404
  })]
1404
1405
  }),
1405
- e.description && /* @__PURE__ */ Y(z, {
1406
+ e.description && /* @__PURE__ */ Z(z, {
1406
1407
  size: "sm",
1407
1408
  tone: "muted",
1408
1409
  children: e.description
1409
1410
  }),
1410
- /* @__PURE__ */ X("div", {
1411
+ /* @__PURE__ */ Q("div", {
1411
1412
  className: "event details",
1412
1413
  children: [
1413
- e.type && /* @__PURE__ */ Y(B, {
1414
+ e.type && /* @__PURE__ */ Z(H, {
1414
1415
  color: "neutral",
1415
1416
  size: "sm",
1416
1417
  children: e.type
1417
1418
  }),
1418
- e.badgeLabel && /* @__PURE__ */ Y(B, {
1419
+ e.badgeLabel && /* @__PURE__ */ Z(H, {
1419
1420
  size: "sm",
1420
1421
  children: e.badgeLabel
1421
1422
  }),
1422
- e.user && /* @__PURE__ */ X("span", {
1423
+ e.user && /* @__PURE__ */ Q("span", {
1423
1424
  className: "event user",
1424
- children: [/* @__PURE__ */ Y(ve, {
1425
+ children: [/* @__PURE__ */ Z(_e, {
1425
1426
  size: "sm",
1426
1427
  src: e.user.avatar,
1427
1428
  name: e.user.name,
1428
1429
  backgroundColor: e.user.color
1429
1430
  }), e.user.name]
1430
1431
  }),
1431
- !e.startTime && !e.endTime && r && /* @__PURE__ */ Y(z, {
1432
+ !e.startTime && !e.endTime && r && /* @__PURE__ */ Z(z, {
1432
1433
  size: "sm",
1433
1434
  tone: "muted",
1434
- children: Mt(r, a)
1435
+ children: Nt(r, a)
1435
1436
  })
1436
1437
  ]
1437
1438
  })
@@ -1439,57 +1440,57 @@ function Wt({ event: e, locale: t, className: n, currentDate: r, ...i }) {
1439
1440
  })]
1440
1441
  });
1441
1442
  }
1442
- function Gt({ events: e, locale: t, currentDate: n, emptyStateText: r, renderEventItem: i, className: a, ...o }) {
1443
- let s = he(t), c = Me();
1444
- return e.length ? /* @__PURE__ */ Y("div", {
1445
- className: I("calendar event list", a),
1443
+ function Kt({ events: e, locale: t, currentDate: n, emptyStateText: r, renderEventItem: i, className: a, ...o }) {
1444
+ let s = he(t), c = je();
1445
+ return e.length ? /* @__PURE__ */ Z("div", {
1446
+ className: L("calendar event list", a),
1446
1447
  ...o,
1447
- children: /* @__PURE__ */ Y(Ne, { children: kt(e).map((e) => i ? /* @__PURE__ */ Y("div", { children: i(e) }, e.id) : /* @__PURE__ */ Y(Wt, {
1448
+ children: /* @__PURE__ */ Z(Me, { children: At(e).map((e) => i ? /* @__PURE__ */ Z("div", { children: i(e) }, e.id) : /* @__PURE__ */ Z(Gt, {
1448
1449
  event: e,
1449
1450
  locale: s,
1450
1451
  currentDate: n
1451
1452
  }, e.id)) })
1452
- }) : /* @__PURE__ */ Y(z, {
1453
+ }) : /* @__PURE__ */ Z(z, {
1453
1454
  size: "sm",
1454
1455
  tone: "muted",
1455
- className: I("calendar event list", a),
1456
+ className: L("calendar event list", a),
1456
1457
  ...o,
1457
1458
  children: r ?? c.emptyStateText
1458
1459
  });
1459
1460
  }
1460
- function Kt({ date: e, events: t, locale: n, startHour: r = 6, endHour: i = 22, emptyStateText: a, className: o, ...s }) {
1461
+ function qt({ date: e, events: t, locale: n, startHour: r = 6, endHour: i = 22, emptyStateText: a, className: o, ...s }) {
1461
1462
  he(n);
1462
- let c = Me(), l = Array.from({ length: Math.max(i - r + 1, 1) }, (e, t) => r + t);
1463
- return /* @__PURE__ */ Y("div", {
1464
- className: I("calendar timeline", o),
1463
+ let c = je(), l = Array.from({ length: Math.max(i - r + 1, 1) }, (e, t) => r + t);
1464
+ return /* @__PURE__ */ Z("div", {
1465
+ className: L("calendar timeline", o),
1465
1466
  ...s,
1466
- children: /* @__PURE__ */ X(Ne, { children: [/* @__PURE__ */ Y(ce, {
1467
+ children: /* @__PURE__ */ Q(Me, { children: [/* @__PURE__ */ Z(le, {
1467
1468
  level: 5,
1468
1469
  children: c.timelineTitle
1469
- }), /* @__PURE__ */ Y("div", {
1470
+ }), /* @__PURE__ */ Z("div", {
1470
1471
  className: "timeline slots",
1471
1472
  children: l.map((n) => {
1472
1473
  let r = t.filter((e) => e.startTime ? Number(e.startTime.split(":")[0]) === n : !1);
1473
- return /* @__PURE__ */ X("div", {
1474
- className: I("timeline slot", Ft(e, n)),
1474
+ return /* @__PURE__ */ Q("div", {
1475
+ className: L("timeline slot", It(e, n)),
1475
1476
  children: [
1476
- /* @__PURE__ */ Y("div", {
1477
+ /* @__PURE__ */ Z("div", {
1477
1478
  className: "slot time",
1478
1479
  children: `${String(n).padStart(2, "0")}:00`
1479
1480
  }),
1480
- /* @__PURE__ */ Y("div", { className: "slot line" }),
1481
- /* @__PURE__ */ Y("div", {
1481
+ /* @__PURE__ */ Z("div", { className: "slot line" }),
1482
+ /* @__PURE__ */ Z("div", {
1482
1483
  className: "slot content",
1483
- children: r.length > 0 ? /* @__PURE__ */ Y(Ne, { children: r.map((e) => /* @__PURE__ */ X("div", {
1484
+ children: r.length > 0 ? /* @__PURE__ */ Z(Me, { children: r.map((e) => /* @__PURE__ */ Q("div", {
1484
1485
  className: "slot event",
1485
- children: [/* @__PURE__ */ Y("span", {
1486
+ children: [/* @__PURE__ */ Z("span", {
1486
1487
  className: "slot event dot",
1487
- style: { background: e.color ?? jt(e.status) }
1488
- }), /* @__PURE__ */ Y(z, {
1488
+ style: { background: e.color ?? Mt(e.status) }
1489
+ }), /* @__PURE__ */ Z(z, {
1489
1490
  size: "sm",
1490
1491
  children: e.title
1491
1492
  })]
1492
- }, e.id)) }) : /* @__PURE__ */ Y(z, {
1493
+ }, e.id)) }) : /* @__PURE__ */ Z(z, {
1493
1494
  size: "sm",
1494
1495
  tone: "muted",
1495
1496
  children: a ?? c.timelineEmptyState
@@ -1501,20 +1502,20 @@ function Kt({ date: e, events: t, locale: n, startHour: r = 6, endHour: i = 22,
1501
1502
  })] })
1502
1503
  });
1503
1504
  }
1504
- function qt({ open: e, anchorRef: t, onClose: n, onPointerEnter: r, onPointerLeave: i, date: a, events: o, locale: s, timelineStartHour: c = 6, timelineEndHour: l = 22, showTimeline: u = !0, emptyStateText: d, renderEventItem: f, className: p, style: m }) {
1505
- let h = he(s), g = Me();
1506
- return /* @__PURE__ */ Y(R, {
1505
+ function Jt({ open: e, anchorRef: t, onClose: n, onPointerEnter: r, onPointerLeave: i, date: a, events: o, locale: s, timelineStartHour: c = 6, timelineEndHour: l = 22, showTimeline: u = !0, emptyStateText: d, renderEventItem: f, className: p, style: m }) {
1506
+ let h = he(s), g = je();
1507
+ return /* @__PURE__ */ Z(R, {
1507
1508
  open: e,
1508
1509
  anchorRef: t,
1509
1510
  onClose: n,
1510
1511
  placement: "bottom-start",
1511
- className: I("calendar popover", p),
1512
+ className: L("calendar popover", p),
1512
1513
  style: m,
1513
- children: /* @__PURE__ */ Y(V, {
1514
+ children: /* @__PURE__ */ Z(fe, {
1514
1515
  className: "calendar event popover",
1515
1516
  onPointerEnter: r,
1516
1517
  onPointerLeave: i,
1517
- children: /* @__PURE__ */ Y(H, { children: /* @__PURE__ */ Y(Bt, {
1518
+ children: /* @__PURE__ */ Z(U, { children: /* @__PURE__ */ Z(Vt, {
1518
1519
  date: a,
1519
1520
  events: o,
1520
1521
  locale: h,
@@ -1527,159 +1528,159 @@ function qt({ open: e, anchorRef: t, onClose: n, onPointerEnter: r, onPointerLea
1527
1528
  })
1528
1529
  });
1529
1530
  }
1530
- function Jt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], locale: i, weekStartsOn: a = 1, view: o, defaultView: s = "month", views: c = ["month", "week"], onViewChange: l, selectedDate: u, defaultSelectedDate: d, onDayClick: f, dayBadge: p, renderDayCell: m, renderEventItem: h, detailsTrigger: g = "click", detailsMode: _ = "auto", showTimeline: v = !0, timelineStartHour: y = 6, timelineEndHour: b = 22, emptyStateText: x, filters: S = [], activeFilters: C, defaultActiveFilters: w = [], onActiveFiltersChange: T, fullWidth: E = !1, className: D, ...O }) {
1531
- let k = he(i), A = je(), j = Me(), M = Q(/* @__PURE__ */ new Date()), [N, P] = J(Q(t ?? e ?? M)), [ee, te] = J(s), [ne, re] = J(Tt(d)), [ie, ae] = J(w), [F, oe] = J(null), [L, R] = J(!1), [se, le] = J(!1), ue = q(null), fe = q(null), V = e !== void 0 && typeof n == "function", H = Q(V ? e ?? N : N), U = o ?? ee, me = Tt(u) ?? ne, ge = C ?? ie;
1532
- Re(() => {
1533
- let e = window.matchMedia("(max-width: 768px)"), t = () => le(e.matches);
1534
- return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
1535
- }, []), Re(() => {
1536
- V && e && P(Q(e));
1537
- }, [V, e]), Re(() => {
1538
- o && te(o);
1539
- }, [o]), Re(() => {
1540
- u !== void 0 && re(Tt(u));
1541
- }, [u]), Re(() => () => {
1542
- fe.current && window.clearTimeout(fe.current);
1531
+ function Yt({ month: t, defaultMonth: n, onMonthChange: r, events: i = [], locale: a, weekStartsOn: o = 1, view: s, defaultView: c = "month", views: l = ["month", "week"], onViewChange: u, selectedDate: d, defaultSelectedDate: f, onDayClick: p, dayBadge: m, renderDayCell: h, renderEventItem: g, detailsTrigger: _ = "click", detailsMode: v = "auto", showTimeline: y = !0, timelineStartHour: b = 6, timelineEndHour: x = 22, emptyStateText: S, filters: C = [], activeFilters: w, defaultActiveFilters: T = [], onActiveFiltersChange: E, fullWidth: D = !1, className: O, ...k }) {
1532
+ let A = he(a), j = Ae(), M = je(), N = wt(/* @__PURE__ */ new Date()), [P, ee] = X(wt(n ?? t ?? N)), [te, ne] = X(c), [re, ie] = X(Tt(f)), [ae, oe] = X(T), [F, I] = X(null), [se, R] = X(!1), [ce, ue] = X(!1), de = Y(null), V = Y(null), fe = t !== void 0 && typeof r == "function", U = wt(fe ? t ?? P : P), W = s ?? te, me = Tt(d) ?? re, G = w ?? ae;
1533
+ Le(() => {
1534
+ let t = window.matchMedia(`(max-width: ${e.md}px)`), n = () => ue(t.matches);
1535
+ return n(), t.addEventListener("change", n), () => t.removeEventListener("change", n);
1536
+ }, []), Le(() => {
1537
+ fe && t && ee(wt(t));
1538
+ }, [fe, t]), Le(() => {
1539
+ s && ne(s);
1540
+ }, [s]), Le(() => {
1541
+ d !== void 0 && ie(Tt(d));
1542
+ }, [d]), Le(() => () => {
1543
+ V.current && window.clearTimeout(V.current);
1543
1544
  }, []);
1544
- let _e = K(() => Lt(r, S, ge), [
1545
- r,
1546
- S,
1547
- ge
1548
- ]), ve = K(() => {
1545
+ let ge = J(() => Rt(i, C, G), [
1546
+ i,
1547
+ C,
1548
+ G
1549
+ ]), _e = J(() => {
1549
1550
  let e = /* @__PURE__ */ new Map();
1550
- return _e.forEach((t) => {
1551
- let n = Et(t);
1551
+ return ge.forEach((t) => {
1552
+ let n = Dt(t);
1552
1553
  if (!n) return;
1553
- let r = $(n), i = e.get(r) ?? [];
1554
+ let r = Et(n), i = e.get(r) ?? [];
1554
1555
  i.push(t), e.set(r, i);
1555
1556
  }), e;
1556
- }, [_e]), ye = K(() => {
1557
- if (U === "week") {
1558
- let e = Ot(me ?? H, a);
1559
- return Array.from({ length: 7 }, (t, n) => Dt(e, n));
1557
+ }, [ge]), ve = J(() => {
1558
+ if (W === "week") {
1559
+ let e = kt(me ?? U, o);
1560
+ return Array.from({ length: 7 }, (t, n) => Ot(e, n));
1560
1561
  }
1561
- return At(H, a);
1562
+ return jt(U, o);
1562
1563
  }, [
1563
- U,
1564
+ W,
1564
1565
  me,
1565
- H,
1566
- a
1567
- ]), be = _ === "auto" ? se ? "modal" : "popover" : _, xe = F ? ve.get($(F)) ?? [] : [], Se = c.includes("month"), Ce = c.includes("week"), we = (e) => {
1568
- let t = Q(e);
1569
- P(t), n?.(t);
1570
- }, Te = (e) => {
1571
- if (U === "week") {
1572
- let t = Dt(me ?? H, e * 7);
1573
- we(t), re(t), oe(t), R(!1);
1566
+ U,
1567
+ o
1568
+ ]), ye = v === "auto" ? ce ? "modal" : "popover" : v, be = F ? _e.get(Et(F)) ?? [] : [], xe = l.includes("month"), Se = l.includes("week"), Ce = (e) => {
1569
+ let t = wt(e);
1570
+ ee(t), r?.(t);
1571
+ }, we = (e) => {
1572
+ if (W === "week") {
1573
+ let t = Ot(me ?? U, e * 7);
1574
+ Ce(t), ie(t), I(t), R(!1);
1574
1575
  return;
1575
1576
  }
1576
- we(new Date(H.getFullYear(), H.getMonth() + e, 1)), R(!1), oe(null);
1577
- }, Ee = (e) => {
1578
- te(e), l?.(e);
1579
- }, De = (e, t) => {
1580
- let n = Q(e);
1581
- re(n), f?.(n, t);
1582
- }, Oe = () => {
1583
- fe.current &&= (window.clearTimeout(fe.current), null);
1584
- }, W = () => {
1585
- Oe(), fe.current = window.setTimeout(() => {
1577
+ Ce(new Date(U.getFullYear(), U.getMonth() + e, 1)), R(!1), I(null);
1578
+ }, Te = (e) => {
1579
+ ne(e), u?.(e);
1580
+ }, Ee = (e, t) => {
1581
+ let n = wt(e);
1582
+ ie(n), p?.(n, t);
1583
+ }, De = () => {
1584
+ V.current &&= (window.clearTimeout(V.current), null);
1585
+ }, K = () => {
1586
+ De(), V.current = window.setTimeout(() => {
1586
1587
  R(!1);
1587
1588
  }, 180);
1589
+ }, Oe = (e, t, n) => {
1590
+ de.current = t, I(e), Ee(e, n), R(!0);
1588
1591
  }, ke = (e, t, n) => {
1589
- ue.current = t, oe(e), De(e, n), R(!0);
1590
- }, Ae = (e, t, n) => {
1591
- Oe(), ke(e, t, n), U === "month" && e.getMonth() !== H.getMonth() && we(new Date(e.getFullYear(), e.getMonth(), 1));
1592
- }, Pe = (e, t, n) => {
1593
- g !== "hover" || be !== "popover" || (Oe(), ke(e, t, n));
1594
- }, Fe = (e) => {
1595
- let t = ge.includes(e) ? ge.filter((t) => t !== e) : [...ge, e];
1596
- ae(t), T?.(t);
1597
- }, Ie = Ot(U === "week" ? me ?? H : H, a);
1598
- return /* @__PURE__ */ X("div", {
1599
- className: I("calendar board", E && "full-width", D),
1600
- ...O,
1592
+ De(), Oe(e, t, n), W === "month" && e.getMonth() !== U.getMonth() && Ce(new Date(e.getFullYear(), e.getMonth(), 1));
1593
+ }, Ne = (e, t, n) => {
1594
+ _ !== "hover" || ye !== "popover" || (De(), Oe(e, t, n));
1595
+ }, Pe = (e) => {
1596
+ let t = G.includes(e) ? G.filter((t) => t !== e) : [...G, e];
1597
+ oe(t), E?.(t);
1598
+ }, Fe = kt(W === "week" ? me ?? U : U, o);
1599
+ return /* @__PURE__ */ Q("div", {
1600
+ className: L("calendar board", D && "full-width", O),
1601
+ ...k,
1601
1602
  children: [
1602
- /* @__PURE__ */ X("div", {
1603
+ /* @__PURE__ */ Q("div", {
1603
1604
  className: "calendar header",
1604
- children: [/* @__PURE__ */ X(Ne, { children: [/* @__PURE__ */ Y(ce, {
1605
+ children: [/* @__PURE__ */ Q(Me, { children: [/* @__PURE__ */ Z(le, {
1605
1606
  level: 3,
1606
- children: Rt(H, U, k, a)
1607
- }), /* @__PURE__ */ Y(z, {
1607
+ children: zt(U, W, A, o)
1608
+ }), /* @__PURE__ */ Z(z, {
1608
1609
  size: "sm",
1609
1610
  tone: "muted",
1610
- children: zt(U, j)
1611
- })] }), /* @__PURE__ */ X(Ne, {
1611
+ children: Bt(W, M)
1612
+ })] }), /* @__PURE__ */ Q(Me, {
1612
1613
  align: "end",
1613
- children: [/* @__PURE__ */ X("div", {
1614
+ children: [/* @__PURE__ */ Q("div", {
1614
1615
  className: "calendar actions",
1615
- children: [/* @__PURE__ */ Y(de, {
1616
+ children: [/* @__PURE__ */ Z(B, {
1616
1617
  type: "button",
1617
1618
  size: "sm",
1618
1619
  variant: "outlined",
1619
1620
  color: "neutral",
1620
- onClick: () => Te(-1),
1621
- children: U === "week" ? j.previousWeek : A.previousMonth
1622
- }), /* @__PURE__ */ Y(de, {
1621
+ onClick: () => we(-1),
1622
+ children: W === "week" ? M.previousWeek : j.previousMonth
1623
+ }), /* @__PURE__ */ Z(B, {
1623
1624
  type: "button",
1624
1625
  size: "sm",
1625
1626
  variant: "outlined",
1626
1627
  color: "neutral",
1627
- onClick: () => Te(1),
1628
- children: U === "week" ? j.nextWeek : A.nextMonth
1628
+ onClick: () => we(1),
1629
+ children: W === "week" ? M.nextWeek : j.nextMonth
1629
1630
  })]
1630
- }), (Se || Ce) && /* @__PURE__ */ X("div", {
1631
+ }), (xe || Se) && /* @__PURE__ */ Q("div", {
1631
1632
  className: "calendar views",
1632
- children: [Se && /* @__PURE__ */ Y(de, {
1633
+ children: [xe && /* @__PURE__ */ Z(B, {
1633
1634
  type: "button",
1634
1635
  size: "sm",
1635
1636
  variant: "outlined",
1636
- color: U === "month" ? "primary" : "neutral",
1637
- active: U === "month",
1638
- onClick: () => Ee("month"),
1639
- children: j.monthView
1640
- }), Ce && /* @__PURE__ */ Y(de, {
1637
+ color: W === "month" ? "primary" : "neutral",
1638
+ active: W === "month",
1639
+ onClick: () => Te("month"),
1640
+ children: M.monthView
1641
+ }), Se && /* @__PURE__ */ Z(B, {
1641
1642
  type: "button",
1642
1643
  size: "sm",
1643
1644
  variant: "outlined",
1644
- color: U === "week" ? "primary" : "neutral",
1645
- active: U === "week",
1646
- onClick: () => Ee("week"),
1647
- children: j.weekView
1645
+ color: W === "week" ? "primary" : "neutral",
1646
+ active: W === "week",
1647
+ onClick: () => Te("week"),
1648
+ children: M.weekView
1648
1649
  })]
1649
1650
  })]
1650
1651
  })]
1651
1652
  }),
1652
- /* @__PURE__ */ Y(Vt, {
1653
- filters: S,
1654
- activeFilterIds: ge,
1655
- onToggle: Fe
1653
+ /* @__PURE__ */ Z(Ht, {
1654
+ filters: C,
1655
+ activeFilterIds: G,
1656
+ onToggle: Pe
1656
1657
  }),
1657
- /* @__PURE__ */ Y("div", {
1658
+ /* @__PURE__ */ Z("div", {
1658
1659
  className: "calendar days",
1659
- children: Array.from({ length: 7 }, (e, t) => Dt(Ie, t)).map((e) => /* @__PURE__ */ Y("div", {
1660
+ children: Array.from({ length: 7 }, (e, t) => Ot(Fe, t)).map((e) => /* @__PURE__ */ Z("div", {
1660
1661
  className: "calendar day",
1661
- children: new Intl.DateTimeFormat(k, { weekday: "short" }).format(e)
1662
- }, $(e)))
1662
+ children: new Intl.DateTimeFormat(A, { weekday: "short" }).format(e)
1663
+ }, Et(e)))
1663
1664
  }),
1664
- U === "week" ? /* @__PURE__ */ Y(Ht, {
1665
- days: ye,
1666
- eventsByDay: ve,
1665
+ W === "week" ? /* @__PURE__ */ Z(Ut, {
1666
+ days: ve,
1667
+ eventsByDay: _e,
1667
1668
  selectedDate: me,
1668
1669
  activeDate: F,
1669
- onDayInteract: Ae,
1670
- onDayHover: Pe,
1670
+ onDayInteract: ke,
1671
+ onDayHover: Ne,
1671
1672
  onDayLeave: () => {
1672
- g === "hover" && be === "popover" && W();
1673
+ _ === "hover" && ye === "popover" && K();
1673
1674
  },
1674
- dayBadge: p,
1675
- renderDayCell: m
1676
- }) : /* @__PURE__ */ Y("div", {
1675
+ dayBadge: m,
1676
+ renderDayCell: h
1677
+ }) : /* @__PURE__ */ Z("div", {
1677
1678
  className: "calendar grid",
1678
- children: ye.map((e) => {
1679
- let t = $(e), n = ve.get(t) ?? [], r = p?.(e, n) ?? (n.length > 0 ? /* @__PURE__ */ Y(B, {
1679
+ children: ve.map((e) => {
1680
+ let t = Et(e), n = _e.get(t) ?? [], r = m?.(e, n) ?? (n.length > 0 ? /* @__PURE__ */ Z(H, {
1680
1681
  size: "sm",
1681
1682
  children: n.length
1682
- }) : null), i = t === $(M), a = !!(me && t === $(me)), o = e.getMonth() !== H.getMonth(), s = It(n), c = {
1683
+ }) : null), i = t === Et(N), a = !!(me && t === Et(me)), o = e.getMonth() !== U.getMonth(), s = Lt(n), c = {
1683
1684
  date: e,
1684
1685
  events: n,
1685
1686
  badge: r,
@@ -1687,52 +1688,52 @@ function Jt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], local
1687
1688
  isSelected: a,
1688
1689
  isOutsideMonth: o
1689
1690
  };
1690
- return /* @__PURE__ */ Y(Ut, {
1691
+ return /* @__PURE__ */ Z(Wt, {
1691
1692
  date: e,
1692
1693
  events: n,
1693
1694
  badge: r,
1694
1695
  markers: s,
1695
1696
  isToday: i,
1696
- isSelected: a || !!(F && t === $(F)),
1697
+ isSelected: a || !!(F && t === Et(F)),
1697
1698
  isOutsideMonth: o,
1698
- onClick: (t) => Ae(e, t.currentTarget, n),
1699
- onMouseEnter: (t) => Pe(e, t.currentTarget, n),
1699
+ onClick: (t) => ke(e, t.currentTarget, n),
1700
+ onMouseEnter: (t) => Ne(e, t.currentTarget, n),
1700
1701
  onMouseLeave: () => {
1701
- g === "hover" && be === "popover" && W();
1702
+ _ === "hover" && ye === "popover" && K();
1702
1703
  },
1703
- children: m ? m(e, c) : void 0
1704
+ children: h ? h(e, c) : void 0
1704
1705
  }, t);
1705
1706
  })
1706
1707
  }),
1707
- be === "popover" ? /* @__PURE__ */ Y(qt, {
1708
- open: L && !!F && !!ue.current,
1709
- anchorRef: ue,
1708
+ ye === "popover" ? /* @__PURE__ */ Z(Jt, {
1709
+ open: se && !!F && !!de.current,
1710
+ anchorRef: de,
1710
1711
  onClose: () => R(!1),
1711
- onPointerEnter: () => Oe(),
1712
- onPointerLeave: () => W(),
1712
+ onPointerEnter: () => De(),
1713
+ onPointerLeave: () => K(),
1713
1714
  date: F,
1714
- events: xe,
1715
- locale: k,
1716
- timelineStartHour: y,
1717
- timelineEndHour: b,
1718
- showTimeline: v,
1719
- emptyStateText: x ?? j.emptyStateText,
1720
- renderEventItem: h
1721
- }) : /* @__PURE__ */ Y(pe, {
1722
- open: L && !!F,
1715
+ events: be,
1716
+ locale: A,
1717
+ timelineStartHour: b,
1718
+ timelineEndHour: x,
1719
+ showTimeline: y,
1720
+ emptyStateText: S ?? M.emptyStateText,
1721
+ renderEventItem: g
1722
+ }) : /* @__PURE__ */ Z(pe, {
1723
+ open: se && !!F,
1723
1724
  onClose: () => R(!1),
1724
- title: F ? Mt(F, k) : void 0,
1725
- description: F ? j.itemsCount(xe.length) : void 0,
1725
+ title: F ? Nt(F, A) : void 0,
1726
+ description: F ? M.itemsCount(be.length) : void 0,
1726
1727
  size: "lg",
1727
- children: /* @__PURE__ */ Y(Bt, {
1728
+ children: /* @__PURE__ */ Z(Vt, {
1728
1729
  date: F,
1729
- events: xe,
1730
- locale: k,
1731
- timelineStartHour: y,
1732
- timelineEndHour: b,
1733
- showTimeline: v,
1734
- emptyStateText: x ?? j.emptyStateText,
1735
- renderEventItem: h
1730
+ events: be,
1731
+ locale: A,
1732
+ timelineStartHour: b,
1733
+ timelineEndHour: x,
1734
+ showTimeline: y,
1735
+ emptyStateText: S ?? M.emptyStateText,
1736
+ renderEventItem: g
1736
1737
  })
1737
1738
  })
1738
1739
  ]
@@ -1740,7 +1741,7 @@ function Jt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], local
1740
1741
  }
1741
1742
  //#endregion
1742
1743
  //#region src/components/data/MChart/MChart.types.ts
1743
- var Yt = [
1744
+ var Xt = [
1744
1745
  "primary",
1745
1746
  "info",
1746
1747
  "success",
@@ -1749,12 +1750,12 @@ var Yt = [
1749
1750
  "news",
1750
1751
  "neutral",
1751
1752
  "dark"
1752
- ], Xt = {
1753
+ ], Zt = {
1753
1754
  top: 20,
1754
1755
  right: 20,
1755
1756
  bottom: 40,
1756
1757
  left: 50
1757
- }, Zt = {
1758
+ }, Qt = {
1758
1759
  top: 20,
1759
1760
  right: 20,
1760
1761
  bottom: 55,
@@ -1762,24 +1763,24 @@ var Yt = [
1762
1763
  };
1763
1764
  //#endregion
1764
1765
  //#region src/components/data/MChart/utils/formats.ts
1765
- function Qt(e) {
1766
+ function $t(e) {
1766
1767
  return Math.abs(e) >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : Math.abs(e) >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : Number.isInteger(e) ? String(e) : e.toFixed(1);
1767
1768
  }
1768
- function $t(e) {
1769
+ function en(e) {
1769
1770
  return e;
1770
1771
  }
1771
1772
  //#endregion
1772
1773
  //#region src/components/data/MChart/parts/ChartGrid.tsx
1773
- function en({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines: a }) {
1774
- return /* @__PURE__ */ X("g", {
1774
+ function tn({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines: a }) {
1775
+ return /* @__PURE__ */ Q("g", {
1775
1776
  className: "chart-grid",
1776
- children: [i.map((t, r) => /* @__PURE__ */ Y("line", {
1777
+ children: [i.map((t, r) => /* @__PURE__ */ Z("line", {
1777
1778
  x1: e,
1778
1779
  y1: t,
1779
1780
  x2: e + n,
1780
1781
  y2: t,
1781
1782
  className: "chart-grid-line"
1782
- }, `h${r}`)), a?.map((e, n) => /* @__PURE__ */ Y("line", {
1783
+ }, `h${r}`)), a?.map((e, n) => /* @__PURE__ */ Z("line", {
1783
1784
  x1: e,
1784
1785
  y1: t,
1785
1786
  x2: e,
@@ -1790,25 +1791,25 @@ function en({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines
1790
1791
  }
1791
1792
  //#endregion
1792
1793
  //#region src/components/data/MChart/parts/ChartAxis.tsx
1793
- function tn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1794
+ function nn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1794
1795
  let o = e === "x";
1795
- return /* @__PURE__ */ X("g", {
1796
+ return /* @__PURE__ */ Q("g", {
1796
1797
  className: `chart-axis chart-axis-${e}`,
1797
1798
  children: [
1798
- /* @__PURE__ */ Y("line", {
1799
+ /* @__PURE__ */ Z("line", {
1799
1800
  x1: t,
1800
1801
  y1: n,
1801
1802
  x2: o ? t + r : t,
1802
1803
  y2: o ? n : n - r,
1803
1804
  className: "chart-axis-line"
1804
1805
  }),
1805
- i.map((e, r) => /* @__PURE__ */ Y("g", { children: o ? /* @__PURE__ */ Y("text", {
1806
+ i.map((e, r) => /* @__PURE__ */ Z("g", { children: o ? /* @__PURE__ */ Z("text", {
1806
1807
  x: e.position,
1807
1808
  y: n + 16,
1808
1809
  textAnchor: "middle",
1809
1810
  className: "chart-axis-label",
1810
1811
  children: e.label
1811
- }) : /* @__PURE__ */ Y("text", {
1812
+ }) : /* @__PURE__ */ Z("text", {
1812
1813
  x: t - 8,
1813
1814
  y: e.position,
1814
1815
  textAnchor: "end",
@@ -1816,13 +1817,13 @@ function tn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1816
1817
  className: "chart-axis-label",
1817
1818
  children: e.label
1818
1819
  }) }, r)),
1819
- a && (o ? /* @__PURE__ */ Y("text", {
1820
+ a && (o ? /* @__PURE__ */ Z("text", {
1820
1821
  x: t + r / 2,
1821
1822
  y: n + 36,
1822
1823
  textAnchor: "middle",
1823
1824
  className: "chart-axis-title",
1824
1825
  children: a
1825
- }) : /* @__PURE__ */ Y("text", {
1826
+ }) : /* @__PURE__ */ Z("text", {
1826
1827
  x: t - 40,
1827
1828
  y: n - r / 2,
1828
1829
  textAnchor: "middle",
@@ -1836,9 +1837,9 @@ function tn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1836
1837
  }
1837
1838
  //#endregion
1838
1839
  //#region src/components/data/MChart/charts/MLineChart.tsx
1839
- function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, curved: u, animated: d, valueFormatter: f = Qt, onTooltip: p, onDataClick: m }) {
1840
- let [h, g] = J(null), _ = n - i.left - i.right, v = r - i.top - i.bottom, { yMin: y, yMax: b, yTicks: x, xLabels: S, seriesPoints: C } = K(() => {
1841
- let t = e.map((e) => e.data), [n, r] = Te(t), i = o?.min ?? Ce(n), s = o?.max ?? Se(r, n), c = xe(i, s, o?.ticks ?? 5), l = Math.max(...t.map((e) => e.length), 1), u = a?.labels ?? Array.from({ length: l }, (e, t) => String(t)), d = W([0, Math.max(l - 1, 1)], [0, _]), f = W([i, s], [v, 0]);
1840
+ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, curved: u, animated: d, valueFormatter: f = $t, onTooltip: p, onDataClick: m }) {
1841
+ let [h, g] = X(null), _ = n - i.left - i.right, v = r - i.top - i.bottom, { yMin: y, yMax: b, yTicks: x, xLabels: S, seriesPoints: C } = J(() => {
1842
+ let t = e.map((e) => e.data), [n, r] = we(t), i = o?.min ?? Se(n), s = o?.max ?? xe(r, n), c = be(i, s, o?.ticks ?? 5), l = Math.max(...t.map((e) => e.length), 1), u = a?.labels ?? Array.from({ length: l }, (e, t) => String(t)), d = K([0, Math.max(l - 1, 1)], [0, _]), f = K([i, s], [v, 0]);
1842
1843
  return {
1843
1844
  yMin: i,
1844
1845
  yMax: s,
@@ -1855,7 +1856,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1855
1856
  v,
1856
1857
  a,
1857
1858
  o
1858
- ]), w = W([y, b], [v, 0]), T = W([0, Math.max(S.length - 1, 1)], [0, _]), E = G((r) => {
1859
+ ]), w = K([y, b], [v, 0]), T = K([0, Math.max(S.length - 1, 1)], [0, _]), E = q((r) => {
1859
1860
  let a = r.currentTarget.closest("svg");
1860
1861
  if (!a) return;
1861
1862
  let o = a.getBoundingClientRect(), s = n / o.width, c = (r.clientX - o.left) * s - i.left, l = Math.round(c / _ * Math.max(S.length - 1, 1)), u = Math.max(0, Math.min(l, S.length - 1));
@@ -1877,7 +1878,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1877
1878
  i.left,
1878
1879
  n,
1879
1880
  p
1880
- ]), D = G(() => {
1881
+ ]), D = q(() => {
1881
1882
  g(null), p(null);
1882
1883
  }, [p]), O = x.map((e) => i.top + w(e)), k = S.map((e, t) => i.left + T(t)), A = x.map((e) => ({
1883
1884
  position: i.top + w(e),
@@ -1886,8 +1887,8 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1886
1887
  position: i.left + T(t),
1887
1888
  label: e
1888
1889
  }));
1889
- return /* @__PURE__ */ X("g", { children: [
1890
- s && /* @__PURE__ */ Y(en, {
1890
+ return /* @__PURE__ */ Q("g", { children: [
1891
+ s && /* @__PURE__ */ Z(tn, {
1891
1892
  x: i.left,
1892
1893
  y: i.top,
1893
1894
  width: _,
@@ -1895,7 +1896,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1895
1896
  horizontalLines: O,
1896
1897
  verticalLines: k
1897
1898
  }),
1898
- l && /* @__PURE__ */ Y(tn, {
1899
+ l && /* @__PURE__ */ Z(nn, {
1899
1900
  type: "y",
1900
1901
  x: i.left,
1901
1902
  y: i.top + v,
@@ -1903,7 +1904,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1903
1904
  ticks: A,
1904
1905
  title: o?.title
1905
1906
  }),
1906
- c && /* @__PURE__ */ Y(tn, {
1907
+ c && /* @__PURE__ */ Z(nn, {
1907
1908
  type: "x",
1908
1909
  x: i.left,
1909
1910
  y: i.top + v,
@@ -1911,11 +1912,11 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1911
1912
  ticks: j,
1912
1913
  title: a?.title
1913
1914
  }),
1914
- /* @__PURE__ */ X("g", {
1915
+ /* @__PURE__ */ Q("g", {
1915
1916
  onMouseMove: E,
1916
1917
  onMouseLeave: D,
1917
1918
  children: [
1918
- /* @__PURE__ */ Y("rect", {
1919
+ /* @__PURE__ */ Z("rect", {
1919
1920
  x: i.left,
1920
1921
  y: i.top,
1921
1922
  width: _,
@@ -1923,17 +1924,17 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1923
1924
  fill: "transparent"
1924
1925
  }),
1925
1926
  C.map((n, r) => {
1926
- let a = e[r].color ?? t[r % t.length], o = u ? Oe(n.map((e) => ({
1927
+ let a = e[r].color ?? t[r % t.length], o = u ? De(n.map((e) => ({
1927
1928
  x: e.x + i.left,
1928
1929
  y: e.y + i.top
1929
- }))) : we(n.map((e) => ({
1930
+ }))) : Ce(n.map((e) => ({
1930
1931
  x: e.x + i.left,
1931
1932
  y: e.y + i.top
1932
1933
  })));
1933
- return /* @__PURE__ */ X("g", { children: [/* @__PURE__ */ Y("path", {
1934
+ return /* @__PURE__ */ Q("g", { children: [/* @__PURE__ */ Z("path", {
1934
1935
  className: `chart-line ${a} ${d ? "animated" : ""}`,
1935
1936
  d: o
1936
- }), n.map((t, n) => /* @__PURE__ */ Y("circle", {
1937
+ }), n.map((t, n) => /* @__PURE__ */ Z("circle", {
1937
1938
  className: `chart-dot ${a} ${h === n ? "active" : ""}`,
1938
1939
  cx: t.x + i.left,
1939
1940
  cy: t.y + i.top,
@@ -1942,7 +1943,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1942
1943
  style: { cursor: m ? "pointer" : void 0 }
1943
1944
  }, n))] }, r);
1944
1945
  }),
1945
- h !== null && /* @__PURE__ */ Y("line", {
1946
+ h !== null && /* @__PURE__ */ Z("line", {
1946
1947
  className: "chart-crosshair",
1947
1948
  x1: i.left + T(h),
1948
1949
  y1: i.top,
@@ -1955,15 +1956,15 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1955
1956
  }
1956
1957
  //#endregion
1957
1958
  //#region src/components/data/MChart/charts/MBarChart.tsx
1958
- function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, stacked: u, animated: d, valueFormatter: f = Qt, onTooltip: p, onDataClick: m }) {
1959
- let [h, g] = J(null), _ = n - i.left - i.right, v = r - i.top - i.bottom, { yMin: y, yMax: b, yTicks: x, xLabels: S, maxLen: C } = K(() => {
1959
+ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, stacked: u, animated: d, valueFormatter: f = $t, onTooltip: p, onDataClick: m }) {
1960
+ let [h, g] = X(null), _ = n - i.left - i.right, v = r - i.top - i.bottom, { yMin: y, yMax: b, yTicks: x, xLabels: S, maxLen: C } = J(() => {
1960
1961
  let t = e.map((e) => e.data), n = Math.max(...t.map((e) => e.length), 1), r, i;
1961
- u ? [r, i] = ke(t) : [r, i] = Te(t);
1962
- let s = o?.min ?? Ce(r), c = o?.max ?? Se(i, r);
1962
+ u ? [r, i] = Oe(t) : [r, i] = we(t);
1963
+ let s = o?.min ?? Se(r), c = o?.max ?? xe(i, r);
1963
1964
  return {
1964
1965
  yMin: s,
1965
1966
  yMax: c,
1966
- yTicks: xe(s, c, o?.ticks ?? 5),
1967
+ yTicks: be(s, c, o?.ticks ?? 5),
1967
1968
  xLabels: a?.labels ?? Array.from({ length: n }, (e, t) => String(t)),
1968
1969
  maxLen: n
1969
1970
  };
@@ -1972,7 +1973,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1972
1973
  a,
1973
1974
  o,
1974
1975
  u
1975
- ]), w = W([y, b], [v, 0]), T = _ / C, E = Math.max(T * .1, 2), D = e.length, O = G((n, r, i) => {
1976
+ ]), w = K([y, b], [v, 0]), T = _ / C, E = Math.max(T * .1, 2), D = e.length, O = q((n, r, i) => {
1976
1977
  g({
1977
1978
  di: n,
1978
1979
  pi: r
@@ -2000,7 +2001,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2000
2001
  S,
2001
2002
  u,
2002
2003
  p
2003
- ]), k = G(() => {
2004
+ ]), k = q(() => {
2004
2005
  g(null), p(null);
2005
2006
  }, [p]), A = x.map((e) => i.top + w(e)), j = S.map((e, t) => ({
2006
2007
  position: i.left + T * t + T / 2,
@@ -2009,15 +2010,15 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2009
2010
  position: i.top + w(e),
2010
2011
  label: (o?.formatter ?? f)(e)
2011
2012
  })), N = w(0);
2012
- return /* @__PURE__ */ X("g", { children: [
2013
- s && /* @__PURE__ */ Y(en, {
2013
+ return /* @__PURE__ */ Q("g", { children: [
2014
+ s && /* @__PURE__ */ Z(tn, {
2014
2015
  x: i.left,
2015
2016
  y: i.top,
2016
2017
  width: _,
2017
2018
  height: v,
2018
2019
  horizontalLines: A
2019
2020
  }),
2020
- l && /* @__PURE__ */ Y(tn, {
2021
+ l && /* @__PURE__ */ Z(nn, {
2021
2022
  type: "y",
2022
2023
  x: i.left,
2023
2024
  y: i.top + v,
@@ -2025,7 +2026,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2025
2026
  ticks: M,
2026
2027
  title: o?.title
2027
2028
  }),
2028
- c && /* @__PURE__ */ Y(tn, {
2029
+ c && /* @__PURE__ */ Z(nn, {
2029
2030
  type: "x",
2030
2031
  x: i.left,
2031
2032
  y: i.top + v,
@@ -2033,15 +2034,15 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2033
2034
  ticks: j,
2034
2035
  title: a?.title
2035
2036
  }),
2036
- /* @__PURE__ */ Y("g", {
2037
+ /* @__PURE__ */ Z("g", {
2037
2038
  onMouseLeave: k,
2038
2039
  children: u ? S.map((n, r) => {
2039
2040
  let a = N, o = T - E * 2, s = i.left + T * r + E;
2040
- return /* @__PURE__ */ Y("g", { children: e.map((n, c) => {
2041
+ return /* @__PURE__ */ Z("g", { children: e.map((n, c) => {
2041
2042
  let l = n.data[r] ?? 0, u = N - w(l), f = a - u;
2042
2043
  a = f;
2043
2044
  let p = n.color ?? t[c % t.length], g = h?.di === c && h?.pi === r;
2044
- return /* @__PURE__ */ Y("rect", {
2045
+ return /* @__PURE__ */ Z("rect", {
2045
2046
  className: `chart-bar ${p} ${d ? "animated" : ""} ${g ? "active" : ""}`,
2046
2047
  x: s,
2047
2048
  y: i.top + f,
@@ -2055,9 +2056,9 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2055
2056
  }) }, r);
2056
2057
  }) : e.map((e, n) => {
2057
2058
  let r = (T - E * 2) / D;
2058
- return /* @__PURE__ */ Y("g", { children: e.data.map((a, o) => {
2059
+ return /* @__PURE__ */ Z("g", { children: e.data.map((a, o) => {
2059
2060
  let s = N - w(a), c = i.left + T * o + E + r * n, l = Math.min(N, w(a)), u = e.color ?? t[n % t.length], f = h?.di === n && h?.pi === o;
2060
- return /* @__PURE__ */ Y("rect", {
2061
+ return /* @__PURE__ */ Z("rect", {
2061
2062
  className: `chart-bar ${u} ${d ? "animated" : ""} ${f ? "active" : ""}`,
2062
2063
  x: c,
2063
2064
  y: i.top + l,
@@ -2075,11 +2076,11 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2075
2076
  }
2076
2077
  //#endregion
2077
2078
  //#region src/components/data/MChart/charts/MAreaChart.tsx
2078
- function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, curved: u, stacked: d, animated: f, valueFormatter: p = Qt, onTooltip: m, onDataClick: h }) {
2079
- let [g, _] = J(null), v = n - i.left - i.right, y = r - i.top - i.bottom, { yMin: b, yMax: x, yTicks: S, xLabels: C, seriesPoints: w, stackedPaths: T } = K(() => {
2079
+ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, curved: u, stacked: d, animated: f, valueFormatter: p = $t, onTooltip: m, onDataClick: h }) {
2080
+ let [g, _] = X(null), v = n - i.left - i.right, y = r - i.top - i.bottom, { yMin: b, yMax: x, yTicks: S, xLabels: C, seriesPoints: w, stackedPaths: T } = J(() => {
2080
2081
  let t = e.map((e) => e.data), n = Math.max(...t.map((e) => e.length), 1), r, s;
2081
- d ? [r, s] = ke(t) : [r, s] = Te(t);
2082
- let c = o?.min ?? Ce(r), l = o?.max ?? Se(s, r), f = xe(c, l, o?.ticks ?? 5), p = a?.labels ?? Array.from({ length: n }, (e, t) => String(t)), m = W([0, Math.max(n - 1, 1)], [0, v]), h = W([c, l], [y, 0]);
2082
+ d ? [r, s] = Oe(t) : [r, s] = we(t);
2083
+ let c = o?.min ?? Se(r), l = o?.max ?? xe(s, r), f = be(c, l, o?.ticks ?? 5), p = a?.labels ?? Array.from({ length: n }, (e, t) => String(t)), m = K([0, Math.max(n - 1, 1)], [0, v]), h = K([c, l], [y, 0]);
2083
2084
  if (d) {
2084
2085
  let e = [];
2085
2086
  for (let r = 0; r < t.length; r++) {
@@ -2098,14 +2099,14 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2098
2099
  y: i.top + h(e)
2099
2100
  }));
2100
2101
  return {
2101
- area: De(r, n === 0 ? t.map((e, t) => ({
2102
+ area: Ee(r, n === 0 ? t.map((e, t) => ({
2102
2103
  x: i.left + m(t),
2103
2104
  y: i.top + h(0)
2104
2105
  })) : e[n - 1].map((e, t) => ({
2105
2106
  x: i.left + m(t),
2106
2107
  y: i.top + h(e)
2107
2108
  })), u),
2108
- line: u ? Oe(r) : we(r),
2109
+ line: u ? De(r) : Ce(r),
2109
2110
  topPts: r
2110
2111
  };
2111
2112
  })
@@ -2131,7 +2132,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2131
2132
  d,
2132
2133
  u,
2133
2134
  i
2134
- ]), E = W([b, x], [y, 0]), D = W([0, Math.max(C.length - 1, 1)], [0, v]), O = G((r) => {
2135
+ ]), E = K([b, x], [y, 0]), D = K([0, Math.max(C.length - 1, 1)], [0, v]), O = q((r) => {
2135
2136
  let a = r.currentTarget.closest("svg");
2136
2137
  if (!a) return;
2137
2138
  let o = a.getBoundingClientRect(), s = n / o.width, c = (r.clientX - o.left) * s - i.left, l = Math.round(c / v * Math.max(C.length - 1, 1)), u = Math.max(0, Math.min(l, C.length - 1));
@@ -2153,7 +2154,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2153
2154
  i.left,
2154
2155
  n,
2155
2156
  m
2156
- ]), k = G(() => {
2157
+ ]), k = q(() => {
2157
2158
  _(null), m(null);
2158
2159
  }, [m]), A = S.map((e) => i.top + E(e)), j = S.map((e) => ({
2159
2160
  position: i.top + E(e),
@@ -2162,15 +2163,15 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2162
2163
  position: i.left + D(t),
2163
2164
  label: e
2164
2165
  }));
2165
- return /* @__PURE__ */ X("g", { children: [
2166
- s && /* @__PURE__ */ Y(en, {
2166
+ return /* @__PURE__ */ Q("g", { children: [
2167
+ s && /* @__PURE__ */ Z(tn, {
2167
2168
  x: i.left,
2168
2169
  y: i.top,
2169
2170
  width: v,
2170
2171
  height: y,
2171
2172
  horizontalLines: A
2172
2173
  }),
2173
- l && /* @__PURE__ */ Y(tn, {
2174
+ l && /* @__PURE__ */ Z(nn, {
2174
2175
  type: "y",
2175
2176
  x: i.left,
2176
2177
  y: i.top + y,
@@ -2178,7 +2179,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2178
2179
  ticks: j,
2179
2180
  title: o?.title
2180
2181
  }),
2181
- c && /* @__PURE__ */ Y(tn, {
2182
+ c && /* @__PURE__ */ Z(nn, {
2182
2183
  type: "x",
2183
2184
  x: i.left,
2184
2185
  y: i.top + y,
@@ -2186,11 +2187,11 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2186
2187
  ticks: M,
2187
2188
  title: a?.title
2188
2189
  }),
2189
- /* @__PURE__ */ X("g", {
2190
+ /* @__PURE__ */ Q("g", {
2190
2191
  onMouseMove: O,
2191
2192
  onMouseLeave: k,
2192
2193
  children: [
2193
- /* @__PURE__ */ Y("rect", {
2194
+ /* @__PURE__ */ Z("rect", {
2194
2195
  x: i.left,
2195
2196
  y: i.top,
2196
2197
  width: v,
@@ -2199,25 +2200,25 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2199
2200
  }),
2200
2201
  d && T ? T.map((n, r) => {
2201
2202
  let i = e[r].color ?? t[r % t.length];
2202
- return /* @__PURE__ */ X("g", { children: [/* @__PURE__ */ Y("path", {
2203
+ return /* @__PURE__ */ Q("g", { children: [/* @__PURE__ */ Z("path", {
2203
2204
  className: `chart-area-fill ${i}`,
2204
2205
  d: n.area
2205
- }), /* @__PURE__ */ Y("path", {
2206
+ }), /* @__PURE__ */ Z("path", {
2206
2207
  className: `chart-line ${i} ${f ? "animated" : ""}`,
2207
2208
  d: n.line
2208
2209
  })] }, r);
2209
2210
  }) : w.map((n, r) => {
2210
- let a = e[r].color ?? t[r % t.length], o = u ? Oe(n) : we(n), s = Ee(n, i.top + y, u);
2211
- return /* @__PURE__ */ X("g", { children: [
2212
- /* @__PURE__ */ Y("path", {
2211
+ let a = e[r].color ?? t[r % t.length], o = u ? De(n) : Ce(n), s = Te(n, i.top + y, u);
2212
+ return /* @__PURE__ */ Q("g", { children: [
2213
+ /* @__PURE__ */ Z("path", {
2213
2214
  className: `chart-area-fill ${a}`,
2214
2215
  d: s
2215
2216
  }),
2216
- /* @__PURE__ */ Y("path", {
2217
+ /* @__PURE__ */ Z("path", {
2217
2218
  className: `chart-line ${a} ${f ? "animated" : ""}`,
2218
2219
  d: o
2219
2220
  }),
2220
- n.map((t, n) => /* @__PURE__ */ Y("circle", {
2221
+ n.map((t, n) => /* @__PURE__ */ Z("circle", {
2221
2222
  className: `chart-dot ${a} ${g === n ? "active" : ""}`,
2222
2223
  cx: t.x,
2223
2224
  cy: t.y,
@@ -2227,7 +2228,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2227
2228
  }, n))
2228
2229
  ] }, r);
2229
2230
  }),
2230
- g !== null && /* @__PURE__ */ Y("line", {
2231
+ g !== null && /* @__PURE__ */ Z("line", {
2231
2232
  className: "chart-crosshair",
2232
2233
  x1: i.left + D(g),
2233
2234
  y1: i.top,
@@ -2240,8 +2241,8 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2240
2241
  }
2241
2242
  //#endregion
2242
2243
  //#region src/components/data/MChart/charts/MPieChart.tsx
2243
- function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donutWidth: a, animated: o, valueFormatter: s = Qt, xAxis: c, onTooltip: l, onDataClick: u }) {
2244
- let [d, f] = J(null), p = n / 2, m = r / 2, h = Math.min(p, m) - 10, g = i ? h - (a ?? h * .4) : 0, _ = K(() => {
2244
+ function sn({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donutWidth: a, animated: o, valueFormatter: s = $t, xAxis: c, onTooltip: l, onDataClick: u }) {
2245
+ let [d, f] = X(null), p = n / 2, m = r / 2, h = Math.min(p, m) - 10, g = i ? h - (a ?? h * .4) : 0, _ = J(() => {
2245
2246
  let n = e.length === 1 ? e[0].data : e.map((e) => e.data[0] ?? 0), r = e.length === 1 ? c?.labels ?? n.map((e, t) => `Segment ${t + 1}`) : e.map((e) => e.label), i = n.reduce((e, t) => e + Math.max(t, 0), 0) || 1, a = -Math.PI / 2;
2246
2247
  return n.map((n, o) => {
2247
2248
  let s = Math.max(n, 0) / i * Math.PI * 2, c = {
@@ -2258,7 +2259,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2258
2259
  e,
2259
2260
  t,
2260
2261
  c
2261
- ]), v = G((e, t) => {
2262
+ ]), v = q((e, t) => {
2262
2263
  f(e);
2263
2264
  let n = t.currentTarget.closest("svg");
2264
2265
  if (!n) return;
@@ -2273,12 +2274,12 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2273
2274
  x: t.clientX - r.left,
2274
2275
  y: t.clientY - r.top
2275
2276
  });
2276
- }, [_, l]), y = G(() => {
2277
+ }, [_, l]), y = q(() => {
2277
2278
  f(null), l(null);
2278
2279
  }, [l]);
2279
- return /* @__PURE__ */ X("g", { children: [_.map((e, t) => {
2280
- let n = d === t, r = be(p, m, n ? h + 4 : h, g, e.startAngle, e.endAngle);
2281
- return /* @__PURE__ */ Y("path", {
2280
+ return /* @__PURE__ */ Q("g", { children: [_.map((e, t) => {
2281
+ let n = d === t, r = ye(p, m, n ? h + 4 : h, g, e.startAngle, e.endAngle);
2282
+ return /* @__PURE__ */ Z("path", {
2282
2283
  className: `chart-pie-segment ${e.color} ${o ? "animated" : ""} ${n ? "active" : ""}`,
2283
2284
  d: r,
2284
2285
  onMouseEnter: (e) => v(t, e),
@@ -2301,7 +2302,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2301
2302
  onClick: () => u?.(0, t, e.value),
2302
2303
  style: { cursor: u ? "pointer" : void 0 }
2303
2304
  }, t);
2304
- }), i && /* @__PURE__ */ Y("text", {
2305
+ }), i && /* @__PURE__ */ Z("text", {
2305
2306
  x: p,
2306
2307
  y: m,
2307
2308
  textAnchor: "middle",
@@ -2312,7 +2313,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2312
2313
  }
2313
2314
  //#endregion
2314
2315
  //#region src/components/data/MChart/parts/ChartDefs.tsx
2315
- var sn = [
2316
+ var cn = [
2316
2317
  "primary",
2317
2318
  "info",
2318
2319
  "success",
@@ -2323,46 +2324,46 @@ var sn = [
2323
2324
  "dark",
2324
2325
  "light"
2325
2326
  ];
2326
- function cn() {
2327
- return /* @__PURE__ */ X("defs", { children: [
2328
- sn.map((e) => /* @__PURE__ */ X("linearGradient", {
2327
+ function ln() {
2328
+ return /* @__PURE__ */ Q("defs", { children: [
2329
+ cn.map((e) => /* @__PURE__ */ Q("linearGradient", {
2329
2330
  id: `chart-bar-grad-${e}`,
2330
2331
  x1: "0",
2331
2332
  y1: "0",
2332
2333
  x2: "0",
2333
2334
  y2: "1",
2334
- children: [/* @__PURE__ */ Y("stop", {
2335
+ children: [/* @__PURE__ */ Z("stop", {
2335
2336
  offset: "0%",
2336
2337
  className: `chart-grad-stop-start ${e}`
2337
- }), /* @__PURE__ */ Y("stop", {
2338
+ }), /* @__PURE__ */ Z("stop", {
2338
2339
  offset: "100%",
2339
2340
  className: `chart-grad-stop-end ${e}`
2340
2341
  })]
2341
2342
  }, `bar-${e}`)),
2342
- sn.map((e) => /* @__PURE__ */ X("linearGradient", {
2343
+ cn.map((e) => /* @__PURE__ */ Q("linearGradient", {
2343
2344
  id: `chart-pie-grad-${e}`,
2344
2345
  x1: "0.3",
2345
2346
  y1: "0",
2346
2347
  x2: "0.7",
2347
2348
  y2: "1",
2348
- children: [/* @__PURE__ */ Y("stop", {
2349
+ children: [/* @__PURE__ */ Z("stop", {
2349
2350
  offset: "0%",
2350
2351
  className: `chart-grad-stop-start ${e}`
2351
- }), /* @__PURE__ */ Y("stop", {
2352
+ }), /* @__PURE__ */ Z("stop", {
2352
2353
  offset: "100%",
2353
2354
  className: `chart-grad-stop-end ${e}`
2354
2355
  })]
2355
2356
  }, `pie-${e}`)),
2356
- sn.map((e) => /* @__PURE__ */ X("linearGradient", {
2357
+ cn.map((e) => /* @__PURE__ */ Q("linearGradient", {
2357
2358
  id: `chart-area-grad-${e}`,
2358
2359
  x1: "0",
2359
2360
  y1: "0",
2360
2361
  x2: "0",
2361
2362
  y2: "1",
2362
- children: [/* @__PURE__ */ Y("stop", {
2363
+ children: [/* @__PURE__ */ Z("stop", {
2363
2364
  offset: "0%",
2364
2365
  className: `chart-grad-area-start ${e}`
2365
- }), /* @__PURE__ */ Y("stop", {
2366
+ }), /* @__PURE__ */ Z("stop", {
2366
2367
  offset: "100%",
2367
2368
  className: `chart-grad-area-end ${e}`
2368
2369
  })]
@@ -2371,25 +2372,25 @@ function cn() {
2371
2372
  }
2372
2373
  //#endregion
2373
2374
  //#region src/components/data/MChart/parts/ChartTooltip.tsx
2374
- function ln({ data: e, valueFormatter: t }) {
2375
- return e ? /* @__PURE__ */ X("div", {
2375
+ function un({ data: e, valueFormatter: t }) {
2376
+ return e ? /* @__PURE__ */ Q("div", {
2376
2377
  className: "chart-tooltip",
2377
2378
  style: {
2378
2379
  left: e.x,
2379
2380
  top: e.y
2380
2381
  },
2381
- children: [/* @__PURE__ */ Y("div", {
2382
+ children: [/* @__PURE__ */ Z("div", {
2382
2383
  className: "chart-tooltip-label",
2383
2384
  children: e.label
2384
- }), e.items.map((e, n) => /* @__PURE__ */ X("div", {
2385
+ }), e.items.map((e, n) => /* @__PURE__ */ Q("div", {
2385
2386
  className: "chart-tooltip-row",
2386
2387
  children: [
2387
- /* @__PURE__ */ Y("span", { className: `chart-tooltip-dot ${e.color}` }),
2388
- /* @__PURE__ */ Y("span", {
2388
+ /* @__PURE__ */ Z("span", { className: `chart-tooltip-dot ${e.color}` }),
2389
+ /* @__PURE__ */ Z("span", {
2389
2390
  className: "chart-tooltip-name",
2390
2391
  children: e.name
2391
2392
  }),
2392
- /* @__PURE__ */ Y("span", {
2393
+ /* @__PURE__ */ Z("span", {
2393
2394
  className: "chart-tooltip-value",
2394
2395
  children: t(e.value)
2395
2396
  })
@@ -2399,12 +2400,12 @@ function ln({ data: e, valueFormatter: t }) {
2399
2400
  }
2400
2401
  //#endregion
2401
2402
  //#region src/components/data/MChart/parts/ChartLegend.tsx
2402
- function un({ items: e }) {
2403
- return e.length <= 1 ? null : /* @__PURE__ */ Y("div", {
2403
+ function dn({ items: e }) {
2404
+ return e.length <= 1 ? null : /* @__PURE__ */ Z("div", {
2404
2405
  className: "chart-legend",
2405
- children: e.map((e, t) => /* @__PURE__ */ X("div", {
2406
+ children: e.map((e, t) => /* @__PURE__ */ Q("div", {
2406
2407
  className: "chart-legend-item",
2407
- children: [/* @__PURE__ */ Y("span", { className: `chart-legend-dot ${e.color}` }), /* @__PURE__ */ Y("span", {
2408
+ children: [/* @__PURE__ */ Z("span", { className: `chart-legend-dot ${e.color}` }), /* @__PURE__ */ Z("span", {
2408
2409
  className: "chart-legend-label",
2409
2410
  children: e.label
2410
2411
  })]
@@ -2413,10 +2414,10 @@ function un({ items: e }) {
2413
2414
  }
2414
2415
  //#endregion
2415
2416
  //#region src/components/data/MChart/MChart.tsx
2416
- function dn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio: i, xAxis: a, yAxis: o, showGrid: s = !0, showXAxis: c = !0, showYAxis: l = !0, showLegend: u = !0, showTooltip: d = !0, animated: f = !0, stacked: p = !1, curved: m = !1, donut: h = !1, donutWidth: g, valueFormatter: _ = Qt, labelFormatter: v = $t, onDataClick: y, className: b, style: x, ...S }) {
2417
- let C = q(null), [w, T] = J(null), E = Yt, D = a?.title || o?.title ? Zt : Xt, O = i ? void 0 : typeof r == "number" ? r : 300, k = O ?? 300, A = G((e) => {
2417
+ function fn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio: i, xAxis: a, yAxis: o, showGrid: s = !0, showXAxis: c = !0, showYAxis: l = !0, showLegend: u = !0, showTooltip: d = !0, animated: f = !0, stacked: p = !1, curved: m = !1, donut: h = !1, donutWidth: g, valueFormatter: _ = $t, labelFormatter: v = en, onDataClick: y, className: b, style: x, ...S }) {
2418
+ let C = Y(null), [w, T] = X(null), E = Xt, D = a?.title || o?.title ? Qt : Zt, O = i ? void 0 : typeof r == "number" ? r : 300, k = O ?? 300, A = q((e) => {
2418
2419
  d && T(e);
2419
- }, [d]), j = K(() => e === "pie" && t.length === 1 ? (a?.labels ?? t[0].data.map((e, t) => `Segment ${t + 1}`)).map((e, t) => ({
2420
+ }, [d]), j = J(() => e === "pie" && t.length === 1 ? (a?.labels ?? t[0].data.map((e, t) => `Segment ${t + 1}`)).map((e, t) => ({
2420
2421
  label: e,
2421
2422
  color: E[t % E.length]
2422
2423
  })) : t.map((e, t) => ({
@@ -2443,9 +2444,9 @@ function dn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio:
2443
2444
  onTooltip: A,
2444
2445
  onDataClick: y
2445
2446
  };
2446
- return /* @__PURE__ */ X("div", {
2447
+ return /* @__PURE__ */ Q("div", {
2447
2448
  ref: C,
2448
- className: I("chart", b),
2449
+ className: L("chart", b),
2449
2450
  style: {
2450
2451
  width: n,
2451
2452
  height: i ? void 0 : O,
@@ -2454,73 +2455,73 @@ function dn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio:
2454
2455
  },
2455
2456
  ...S,
2456
2457
  children: [
2457
- /* @__PURE__ */ X("svg", {
2458
+ /* @__PURE__ */ Q("svg", {
2458
2459
  viewBox: `0 0 600 ${k}`,
2459
2460
  preserveAspectRatio: "xMidYMid meet",
2460
2461
  className: "chart-svg",
2461
2462
  children: [
2462
- /* @__PURE__ */ Y(cn, {}),
2463
- e === "line" && /* @__PURE__ */ Y(nn, {
2463
+ /* @__PURE__ */ Z(ln, {}),
2464
+ e === "line" && /* @__PURE__ */ Z(rn, {
2464
2465
  ...M,
2465
2466
  curved: m
2466
2467
  }),
2467
- e === "bar" && /* @__PURE__ */ Y(rn, {
2468
+ e === "bar" && /* @__PURE__ */ Z(an, {
2468
2469
  ...M,
2469
2470
  stacked: p
2470
2471
  }),
2471
- e === "area" && /* @__PURE__ */ Y(an, {
2472
+ e === "area" && /* @__PURE__ */ Z(on, {
2472
2473
  ...M,
2473
2474
  curved: m,
2474
2475
  stacked: p
2475
2476
  }),
2476
- e === "pie" && /* @__PURE__ */ Y(on, {
2477
+ e === "pie" && /* @__PURE__ */ Z(sn, {
2477
2478
  ...M,
2478
2479
  donut: h,
2479
2480
  donutWidth: g
2480
2481
  })
2481
2482
  ]
2482
2483
  }),
2483
- d && /* @__PURE__ */ Y(ln, {
2484
+ d && /* @__PURE__ */ Z(un, {
2484
2485
  data: w,
2485
2486
  valueFormatter: _
2486
2487
  }),
2487
- u && /* @__PURE__ */ Y(un, { items: j })
2488
+ u && /* @__PURE__ */ Z(dn, { items: j })
2488
2489
  ]
2489
2490
  });
2490
2491
  }
2491
2492
  //#endregion
2492
2493
  //#region src/components/data/MChart/MLineChart.tsx
2493
- function fn(e) {
2494
- return /* @__PURE__ */ Y(dn, {
2494
+ function pn(e) {
2495
+ return /* @__PURE__ */ Z(fn, {
2495
2496
  type: "line",
2496
2497
  ...e
2497
2498
  });
2498
2499
  }
2499
2500
  //#endregion
2500
2501
  //#region src/components/data/MChart/MBarChart.tsx
2501
- function pn(e) {
2502
- return /* @__PURE__ */ Y(dn, {
2502
+ function mn(e) {
2503
+ return /* @__PURE__ */ Z(fn, {
2503
2504
  type: "bar",
2504
2505
  ...e
2505
2506
  });
2506
2507
  }
2507
2508
  //#endregion
2508
2509
  //#region src/components/data/MChart/MAreaChart.tsx
2509
- function mn(e) {
2510
- return /* @__PURE__ */ Y(dn, {
2510
+ function hn(e) {
2511
+ return /* @__PURE__ */ Z(fn, {
2511
2512
  type: "area",
2512
2513
  ...e
2513
2514
  });
2514
2515
  }
2515
2516
  //#endregion
2516
2517
  //#region src/components/data/MChart/MPieChart.tsx
2517
- function hn(e) {
2518
- return /* @__PURE__ */ Y(dn, {
2518
+ function gn(e) {
2519
+ return /* @__PURE__ */ Z(fn, {
2519
2520
  type: "pie",
2520
2521
  ...e
2521
2522
  });
2522
2523
  }
2523
2524
  //#endregion
2524
- export { Xe as _, Jt as a, We as b, Gt as c, wt as d, lt as f, Ze as g, Qe as h, fn as i, qt as l, $e as m, mn as n, Ut as o, ct as p, pn as r, Wt as s, hn as t, Kt as u, qe as v, Ue as x, Ke as y };
2525
+ export { Ye as _, Yt as a, Ue as b, Kt as c, Ct as d, ct as f, Xe as g, Ze as h, pn as i, Jt as l, Qe as m, hn as n, Wt as o, st as p, mn as r, Gt as s, gn as t, qt as u, Ke as v, He as x, Ge as y };
2525
2526
 
2526
- //# sourceMappingURL=data-s8Hkht1B.js.map
2527
+ //# sourceMappingURL=data-BpGAUxCL.js.map