@banzamel/mineralui 1.0.8 → 1.1.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 (268) hide show
  1. package/README.md +1 -1
  2. package/dist/{MAvatar-Blh5pfSO.js → MAvatar-BDfA-fQT.js} +1 -1
  3. package/dist/{MAvatar-Blh5pfSO.js.map → MAvatar-BDfA-fQT.js.map} +1 -1
  4. package/dist/{MAvatar-DMM1CsdO.cjs → MAvatar-C8tWuy5K.cjs} +1 -1
  5. package/dist/{MAvatar-DMM1CsdO.cjs.map → MAvatar-C8tWuy5K.cjs.map} +1 -1
  6. package/dist/{MBrandMoreIcons-ClUq3DXO.js → MBrandMoreIcons-IQoXQOXv.js} +1 -1
  7. package/dist/{MBrandMoreIcons-ClUq3DXO.js.map → MBrandMoreIcons-IQoXQOXv.js.map} +1 -1
  8. package/dist/{MBrandMoreIcons-Xxf9FaIx.cjs → MBrandMoreIcons-aks8CSrY.cjs} +1 -1
  9. package/dist/{MBrandMoreIcons-Xxf9FaIx.cjs.map → MBrandMoreIcons-aks8CSrY.cjs.map} +1 -1
  10. package/dist/{MCalendarIcon-DXx62vjV.js → MCalendarIcon-DXTVH31q.js} +1 -1
  11. package/dist/{MCalendarIcon-DXx62vjV.js.map → MCalendarIcon-DXTVH31q.js.map} +1 -1
  12. package/dist/{MCalendarIcon-4PilFCrR.cjs → MCalendarIcon-S4GQsUlu.cjs} +1 -1
  13. package/dist/{MCalendarIcon-4PilFCrR.cjs.map → MCalendarIcon-S4GQsUlu.cjs.map} +1 -1
  14. package/dist/{MChatIcon-CnDOfqkO.js → MChatIcon-Bb3DbYgB.js} +13 -19
  15. package/dist/MChatIcon-Bb3DbYgB.js.map +1 -0
  16. package/dist/MChatIcon-C-5VN1TR.cjs +2 -0
  17. package/dist/MChatIcon-C-5VN1TR.cjs.map +1 -0
  18. package/dist/{MCheckbox-BhtJDdip.cjs → MCheckbox-9WMKKIUO.cjs} +1 -1
  19. package/dist/{MCheckbox-BhtJDdip.cjs.map → MCheckbox-9WMKKIUO.cjs.map} +1 -1
  20. package/dist/{MCheckbox-CugP7F6H.js → MCheckbox-DW-liYve.js} +1 -1
  21. package/dist/{MCheckbox-CugP7F6H.js.map → MCheckbox-DW-liYve.js.map} +1 -1
  22. package/dist/{MClockIcon-DefFl5ks.js → MClockIcon-DTevPaRf.js} +1 -1
  23. package/dist/{MClockIcon-DefFl5ks.js.map → MClockIcon-DTevPaRf.js.map} +1 -1
  24. package/dist/{MClockIcon-C-zYY2A0.cjs → MClockIcon-DoskImOg.cjs} +1 -1
  25. package/dist/{MClockIcon-C-zYY2A0.cjs.map → MClockIcon-DoskImOg.cjs.map} +1 -1
  26. package/dist/{MCookieBootstrap-Ck_8aUQK.cjs → MCookieBootstrap-I7jiqvBM.cjs} +1 -1
  27. package/dist/{MCookieBootstrap-Ck_8aUQK.cjs.map → MCookieBootstrap-I7jiqvBM.cjs.map} +1 -1
  28. package/dist/{MCookieBootstrap-BbpXuRtS.js → MCookieBootstrap-v2JRvgUH.js} +1 -1
  29. package/dist/{MCookieBootstrap-BbpXuRtS.js.map → MCookieBootstrap-v2JRvgUH.js.map} +1 -1
  30. package/dist/{MDataTable-8ZhnWhqW.cjs → MDataTable-B0QbAjVI.cjs} +2 -2
  31. package/dist/{MDataTable-8ZhnWhqW.cjs.map → MDataTable-B0QbAjVI.cjs.map} +1 -1
  32. package/dist/{MDataTable--pUkQHAv.js → MDataTable-C-CRvZ45.js} +7 -7
  33. package/dist/{MDataTable--pUkQHAv.js.map → MDataTable-C-CRvZ45.js.map} +1 -1
  34. package/dist/{MDrawer-00BvU8Dn.js → MDrawer-CHbmY08J.js} +1 -1
  35. package/dist/{MDrawer-00BvU8Dn.js.map → MDrawer-CHbmY08J.js.map} +1 -1
  36. package/dist/{MDrawer-FYS50FtQ.cjs → MDrawer-_Bao-x1w.cjs} +1 -1
  37. package/dist/{MDrawer-FYS50FtQ.cjs.map → MDrawer-_Bao-x1w.cjs.map} +1 -1
  38. package/dist/{MDropdownMenu-BLBdToIz.cjs → MDropdownMenu-Bd6MfUmF.cjs} +1 -1
  39. package/dist/{MDropdownMenu-BLBdToIz.cjs.map → MDropdownMenu-Bd6MfUmF.cjs.map} +1 -1
  40. package/dist/{MDropdownMenu-BgOiM5yr.js → MDropdownMenu-D3O3-l8O.js} +1 -1
  41. package/dist/{MDropdownMenu-BgOiM5yr.js.map → MDropdownMenu-D3O3-l8O.js.map} +1 -1
  42. package/dist/{MEllipsisVerticalIcon-CNn1AQ8W.js → MEllipsisVerticalIcon-CXmu-bHJ.js} +9 -3
  43. package/dist/MEllipsisVerticalIcon-CXmu-bHJ.js.map +1 -0
  44. package/dist/MEllipsisVerticalIcon-CufhU4cO.cjs +2 -0
  45. package/dist/MEllipsisVerticalIcon-CufhU4cO.cjs.map +1 -0
  46. package/dist/{MFileExtIcons-DH9oZPpf.cjs → MFileExtIcons-CPsgV8eQ.cjs} +1 -1
  47. package/dist/{MFileExtIcons-DH9oZPpf.cjs.map → MFileExtIcons-CPsgV8eQ.cjs.map} +1 -1
  48. package/dist/{MFileExtIcons-BoG3GPxg.js → MFileExtIcons-Cxbgd5Fz.js} +1 -1
  49. package/dist/{MFileExtIcons-BoG3GPxg.js.map → MFileExtIcons-Cxbgd5Fz.js.map} +1 -1
  50. package/dist/MHeading-7-5TESyc.cjs +2 -0
  51. package/dist/MHeading-7-5TESyc.cjs.map +1 -0
  52. package/dist/MHeading-BlDlbYcY.js +19 -0
  53. package/dist/MHeading-BlDlbYcY.js.map +1 -0
  54. package/dist/{MImage-CKrjXRmf.js → MImage-C99xrQQ9.js} +2 -2
  55. package/dist/{MImage-CKrjXRmf.js.map → MImage-C99xrQQ9.js.map} +1 -1
  56. package/dist/{MImage-f854avZS.cjs → MImage-DbianX0t.cjs} +2 -2
  57. package/dist/{MImage-f854avZS.cjs.map → MImage-DbianX0t.cjs.map} +1 -1
  58. package/dist/MInline-Bvfuvqsf.cjs +2 -0
  59. package/dist/MInline-Bvfuvqsf.cjs.map +1 -0
  60. package/dist/MInline-NJeL5tcC.js +39 -0
  61. package/dist/MInline-NJeL5tcC.js.map +1 -0
  62. package/dist/{MInput-CQ3MqKsk.cjs → MInput-Bpkn3gOQ.cjs} +1 -1
  63. package/dist/{MInput-CQ3MqKsk.cjs.map → MInput-Bpkn3gOQ.cjs.map} +1 -1
  64. package/dist/{MInput-BUCcLWSI.js → MInput-OmuQ2Tds.js} +1 -1
  65. package/dist/{MInput-BUCcLWSI.js.map → MInput-OmuQ2Tds.js.map} +1 -1
  66. package/dist/MInputCVC-Bl8i97Y0.cjs +2 -0
  67. package/dist/MInputCVC-Bl8i97Y0.cjs.map +1 -0
  68. package/dist/MInputCVC-CcG_KJvq.js +322 -0
  69. package/dist/MInputCVC-CcG_KJvq.js.map +1 -0
  70. package/dist/{MInputSearch-Dt79qbZg.cjs → MInputSearch-APMIHkYb.cjs} +2 -2
  71. package/dist/{MInputSearch-Dt79qbZg.cjs.map → MInputSearch-APMIHkYb.cjs.map} +1 -1
  72. package/dist/{MInputSearch-BeXUh4lz.js → MInputSearch-k2ESY4ZG.js} +2 -2
  73. package/dist/{MInputSearch-BeXUh4lz.js.map → MInputSearch-k2ESY4ZG.js.map} +1 -1
  74. package/dist/{MLink-CVN-Vll4.cjs → MLink-B4JrRZ29.cjs} +1 -1
  75. package/dist/{MLink-CVN-Vll4.cjs.map → MLink-B4JrRZ29.cjs.map} +1 -1
  76. package/dist/{MLink-DH4vk7O5.js → MLink-_WcD95E0.js} +1 -1
  77. package/dist/{MLink-DH4vk7O5.js.map → MLink-_WcD95E0.js.map} +1 -1
  78. package/dist/{MMenuIcon-Brpitjq1.cjs → MMenuIcon-A_eXBpM8.cjs} +1 -1
  79. package/dist/{MMenuIcon-Brpitjq1.cjs.map → MMenuIcon-A_eXBpM8.cjs.map} +1 -1
  80. package/dist/{MMenuIcon-idfVpVQD.js → MMenuIcon-CbBHfxVa.js} +1 -1
  81. package/dist/{MMenuIcon-idfVpVQD.js.map → MMenuIcon-CbBHfxVa.js.map} +1 -1
  82. package/dist/{MModal-BQvk1KKc.cjs → MModal-D-3jQ-c5.cjs} +2 -2
  83. package/dist/{MModal-BQvk1KKc.cjs.map → MModal-D-3jQ-c5.cjs.map} +1 -1
  84. package/dist/{MModal-D1Knn-bg.js → MModal-Dni2MR1n.js} +2 -2
  85. package/dist/{MModal-D1Knn-bg.js.map → MModal-Dni2MR1n.js.map} +1 -1
  86. package/dist/MPagination-3fsF3pCM.cjs +2 -0
  87. package/dist/MPagination-3fsF3pCM.cjs.map +1 -0
  88. package/dist/MPagination-DCeU7MHM.js +113 -0
  89. package/dist/MPagination-DCeU7MHM.js.map +1 -0
  90. package/dist/{MPhoneIcon-efl6BqwU.js → MPhoneIcon-D5JEg8LZ.js} +1 -1
  91. package/dist/{MPhoneIcon-efl6BqwU.js.map → MPhoneIcon-D5JEg8LZ.js.map} +1 -1
  92. package/dist/{MPhoneIcon-lgC9DH5a.cjs → MPhoneIcon-D5unTWyf.cjs} +1 -1
  93. package/dist/{MPhoneIcon-lgC9DH5a.cjs.map → MPhoneIcon-D5unTWyf.cjs.map} +1 -1
  94. package/dist/{MProtectIcon-BPYP06QD.cjs → MProtectIcon-B_m67eu1.cjs} +1 -1
  95. package/dist/{MProtectIcon-BPYP06QD.cjs.map → MProtectIcon-B_m67eu1.cjs.map} +1 -1
  96. package/dist/{MProtectIcon-BTtMmrib.js → MProtectIcon-s_IpKWPz.js} +1 -1
  97. package/dist/{MProtectIcon-BTtMmrib.js.map → MProtectIcon-s_IpKWPz.js.map} +1 -1
  98. package/dist/{MQrCode-CbUPPd4S.cjs → MQrCode-ClP7YJFt.cjs} +2 -2
  99. package/dist/{MQrCode-CbUPPd4S.cjs.map → MQrCode-ClP7YJFt.cjs.map} +1 -1
  100. package/dist/{MQrCode-AttGRC6v.js → MQrCode-DGq8ktvf.js} +3 -3
  101. package/dist/{MQrCode-AttGRC6v.js.map → MQrCode-DGq8ktvf.js.map} +1 -1
  102. package/dist/{MSkeleton-B5jZNFOG.cjs → MSkeleton-CRgCZZqm.cjs} +2 -2
  103. package/dist/{MSkeleton-B5jZNFOG.cjs.map → MSkeleton-CRgCZZqm.cjs.map} +1 -1
  104. package/dist/{MSkeleton-BL4C5FkH.js → MSkeleton-QQ8Lk3Cr.js} +2 -2
  105. package/dist/{MSkeleton-BL4C5FkH.js.map → MSkeleton-QQ8Lk3Cr.js.map} +1 -1
  106. package/dist/{MSlider-D5ckYDop.js → MSlider-C65mv2h1.js} +1 -1
  107. package/dist/{MSlider-D5ckYDop.js.map → MSlider-C65mv2h1.js.map} +1 -1
  108. package/dist/{MSlider-vD6Sla2p.cjs → MSlider-DNAOirz9.cjs} +1 -1
  109. package/dist/{MSlider-vD6Sla2p.cjs.map → MSlider-DNAOirz9.cjs.map} +1 -1
  110. package/dist/{MSparkline-DjcDtnZH.js → MSparkline-LfEfA310.js} +1 -1
  111. package/dist/{MSparkline-DjcDtnZH.js.map → MSparkline-LfEfA310.js.map} +1 -1
  112. package/dist/{MSparkline-U-XaDvpV.cjs → MSparkline-lRq3gAYU.cjs} +1 -1
  113. package/dist/{MSparkline-U-XaDvpV.cjs.map → MSparkline-lRq3gAYU.cjs.map} +1 -1
  114. package/dist/{MStack-BvFI0AFv.cjs → MStack-CFZf6I8F.cjs} +1 -1
  115. package/dist/{MStack-BvFI0AFv.cjs.map → MStack-CFZf6I8F.cjs.map} +1 -1
  116. package/dist/{MStack-DhdMFSUL.js → MStack-CuUE9u4h.js} +1 -1
  117. package/dist/{MStack-DhdMFSUL.js.map → MStack-CuUE9u4h.js.map} +1 -1
  118. package/dist/{MStarFillIcon-CGyQPFi8.js → MStarFillIcon-BxKSY0VO.js} +1 -1
  119. package/dist/{MStarFillIcon-CGyQPFi8.js.map → MStarFillIcon-BxKSY0VO.js.map} +1 -1
  120. package/dist/{MStarFillIcon-DJHfl_Qy.cjs → MStarFillIcon-CnINKvE4.cjs} +1 -1
  121. package/dist/{MStarFillIcon-DJHfl_Qy.cjs.map → MStarFillIcon-CnINKvE4.cjs.map} +1 -1
  122. package/dist/{MSubText-uvcBr9Ba.js → MSubText-BxDWVjjs.js} +2 -2
  123. package/dist/{MSubText-uvcBr9Ba.js.map → MSubText-BxDWVjjs.js.map} +1 -1
  124. package/dist/{MSubText-CfWNytoK.cjs → MSubText-Dr0rAnX7.cjs} +2 -2
  125. package/dist/{MSubText-CfWNytoK.cjs.map → MSubText-Dr0rAnX7.cjs.map} +1 -1
  126. package/dist/{MSuccessIcon-CatQ4FmG.cjs → MSuccessIcon-Cvs8ER4y.cjs} +1 -1
  127. package/dist/{MSuccessIcon-CatQ4FmG.cjs.map → MSuccessIcon-Cvs8ER4y.cjs.map} +1 -1
  128. package/dist/{MSuccessIcon-D3GrOvye.js → MSuccessIcon-DH5Z83mM.js} +1 -1
  129. package/dist/{MSuccessIcon-D3GrOvye.js.map → MSuccessIcon-DH5Z83mM.js.map} +1 -1
  130. package/dist/{MSurface-DlcK6Bre.js → MSurface-BiusHYSB.js} +1 -1
  131. package/dist/{MSurface-DlcK6Bre.js.map → MSurface-BiusHYSB.js.map} +1 -1
  132. package/dist/{MSurface-qcGLaTIK.cjs → MSurface-BlCLcifq.cjs} +1 -1
  133. package/dist/{MSurface-qcGLaTIK.cjs.map → MSurface-BlCLcifq.cjs.map} +1 -1
  134. package/dist/MText-DEKnLtLk.cjs +2 -0
  135. package/dist/MText-DEKnLtLk.cjs.map +1 -0
  136. package/dist/{MText-C0FdseW1.js → MText-lZjEtV_i.js} +8 -22
  137. package/dist/MText-lZjEtV_i.js.map +1 -0
  138. package/dist/{MTimeAgo-DrDs52Y1.js → MTimeAgo-4pfAn0iE.js} +2 -2
  139. package/dist/{MTimeAgo-DrDs52Y1.js.map → MTimeAgo-4pfAn0iE.js.map} +1 -1
  140. package/dist/{MTimeAgo-BOXKcDYN.cjs → MTimeAgo-Ci8UkEEk.cjs} +2 -2
  141. package/dist/{MTimeAgo-BOXKcDYN.cjs.map → MTimeAgo-Ci8UkEEk.cjs.map} +1 -1
  142. package/dist/{MToggle-B7cKH5Tl.js → MToggle-CndejlPX.js} +1 -1
  143. package/dist/{MToggle-B7cKH5Tl.js.map → MToggle-CndejlPX.js.map} +1 -1
  144. package/dist/{MToggle-Hheo-jfZ.cjs → MToggle-Dom6azGw.cjs} +1 -1
  145. package/dist/{MToggle-Hheo-jfZ.cjs.map → MToggle-Dom6azGw.cjs.map} +1 -1
  146. package/dist/{MTooltip-DzwZ637q.cjs → MTooltip-CsJogGMW.cjs} +1 -1
  147. package/dist/{MTooltip-DzwZ637q.cjs.map → MTooltip-CsJogGMW.cjs.map} +1 -1
  148. package/dist/{MTooltip-D3xuZ5kG.js → MTooltip-DIqh59S2.js} +1 -1
  149. package/dist/{MTooltip-D3xuZ5kG.js.map → MTooltip-DIqh59S2.js.map} +1 -1
  150. package/dist/cards-Bp7jOY3_.cjs +2 -0
  151. package/dist/cards-Bp7jOY3_.cjs.map +1 -0
  152. package/dist/{cards-CKCr-GuJ.js → cards-CuxycY_U.js} +325 -241
  153. package/dist/{cards-yPK4lBAA.cjs.map → cards-CuxycY_U.js.map} +1 -1
  154. package/dist/cards.cjs +1 -1
  155. package/dist/cards.js +3 -3
  156. package/dist/components/cards/MCardPaymentMethod/MCardPaymentMethod.d.ts +2 -0
  157. package/dist/components/cards/MCardPaymentMethod/MCardPaymentMethod.types.d.ts +22 -0
  158. package/dist/components/cards/MCardPaymentMethod/index.d.ts +2 -0
  159. package/dist/components/cards/index.d.ts +2 -0
  160. package/dist/components/inputs/MInputCVC/MInputCVC.d.ts +3 -0
  161. package/dist/components/inputs/MInputCVC/MInputCVC.types.d.ts +9 -0
  162. package/dist/components/inputs/MInputCVC/index.d.ts +2 -0
  163. package/dist/components/inputs/MInputExpDate/MInputExpDate.d.ts +3 -0
  164. package/dist/components/inputs/MInputExpDate/MInputExpDate.types.d.ts +10 -0
  165. package/dist/components/inputs/MInputExpDate/index.d.ts +2 -0
  166. package/dist/components/inputs/index.d.ts +4 -0
  167. package/dist/{controls-DEEbLT5o.cjs → controls-BJe59nXf.cjs} +1 -1
  168. package/dist/{controls-DEEbLT5o.cjs.map → controls-BJe59nXf.cjs.map} +1 -1
  169. package/dist/{controls-IsOBNxW0.js → controls-CO70zfcl.js} +1 -1
  170. package/dist/{controls-IsOBNxW0.js.map → controls-CO70zfcl.js.map} +1 -1
  171. package/dist/controls.cjs +1 -1
  172. package/dist/controls.js +4 -4
  173. package/dist/cookie-consent-bootstrap.cjs +1 -1
  174. package/dist/cookie-consent-bootstrap.js +1 -1
  175. package/dist/{data-Bp3Fd2Al.js → data-CaRwdLlD.js} +638 -637
  176. package/dist/{data-Bp3Fd2Al.js.map → data-CaRwdLlD.js.map} +1 -1
  177. package/dist/data-r5uYgiWq.cjs +2 -0
  178. package/dist/{data-BEH7TbuW.cjs.map → data-r5uYgiWq.cjs.map} +1 -1
  179. package/dist/data.cjs +1 -1
  180. package/dist/data.js +3 -3
  181. package/dist/{display-B0Db8pF3.js → display-CkzrTEdb.js} +2 -2
  182. package/dist/{display-B0Db8pF3.js.map → display-CkzrTEdb.js.map} +1 -1
  183. package/dist/{display-DmB5CZYB.cjs → display-DHpFRcAP.cjs} +2 -2
  184. package/dist/{display-DmB5CZYB.cjs.map → display-DHpFRcAP.cjs.map} +1 -1
  185. package/dist/display.cjs +1 -1
  186. package/dist/display.js +3 -3
  187. package/dist/{dropdowns-BkBtQP4v.js → dropdowns-BPRJL_2d.js} +19 -19
  188. package/dist/{dropdowns-BkBtQP4v.js.map → dropdowns-BPRJL_2d.js.map} +1 -1
  189. package/dist/dropdowns-BTbAnQxt.cjs +2 -0
  190. package/dist/{dropdowns-CD2myl19.cjs.map → dropdowns-BTbAnQxt.cjs.map} +1 -1
  191. package/dist/dropdowns.cjs +1 -1
  192. package/dist/dropdowns.js +1 -1
  193. package/dist/{feedback-DCIGou8P.js → feedback-Cgu8ez5M.js} +281 -263
  194. package/dist/{feedback-DCIGou8P.js.map → feedback-Cgu8ez5M.js.map} +1 -1
  195. package/dist/feedback-DBhETzTM.cjs +2 -0
  196. package/dist/{feedback-CmOz23FV.cjs.map → feedback-DBhETzTM.cjs.map} +1 -1
  197. package/dist/feedback.cjs +1 -1
  198. package/dist/feedback.js +3 -3
  199. package/dist/{form-JanaUHTQ.js → form-XhjrsBOv.js} +1 -1
  200. package/dist/{form-JanaUHTQ.js.map → form-XhjrsBOv.js.map} +1 -1
  201. package/dist/{form-BQ6-ieVC.cjs → form-rDra9x3X.cjs} +1 -1
  202. package/dist/{form-BQ6-ieVC.cjs.map → form-rDra9x3X.cjs.map} +1 -1
  203. package/dist/form.cjs +1 -1
  204. package/dist/form.js +1 -1
  205. package/dist/{frameworkTexts-5_DBGFFg.js → frameworkTexts-DH2N7l8F.js} +3 -3
  206. package/dist/{frameworkTexts-5_DBGFFg.js.map → frameworkTexts-DH2N7l8F.js.map} +1 -1
  207. package/dist/{frameworkTexts-CwSSRPWS.cjs → frameworkTexts-Ds2orE1v.cjs} +2 -2
  208. package/dist/{frameworkTexts-CwSSRPWS.cjs.map → frameworkTexts-Ds2orE1v.cjs.map} +1 -1
  209. package/dist/icons.cjs +1 -1
  210. package/dist/icons.js +15 -15
  211. package/dist/index.cjs +1 -1
  212. package/dist/index.js +53 -50
  213. package/dist/{inputs-DFoD2MMX.js → inputs-BBJgVLXO.js} +7 -7
  214. package/dist/{inputs-DFoD2MMX.js.map → inputs-BBJgVLXO.js.map} +1 -1
  215. package/dist/{inputs-BRjbpf9P.cjs → inputs-DPhzLJZH.cjs} +2 -2
  216. package/dist/{inputs-BRjbpf9P.cjs.map → inputs-DPhzLJZH.cjs.map} +1 -1
  217. package/dist/inputs.cjs +1 -1
  218. package/dist/inputs.js +5 -4
  219. package/dist/{layout-yIAZ4bP6.js → layout-CdAUOdYv.js} +5 -5
  220. package/dist/{layout-yIAZ4bP6.js.map → layout-CdAUOdYv.js.map} +1 -1
  221. package/dist/{layout-BWhQ1VXM.cjs → layout-DsY7-y6U.cjs} +2 -2
  222. package/dist/{layout-BWhQ1VXM.cjs.map → layout-DsY7-y6U.cjs.map} +1 -1
  223. package/dist/layout.cjs +1 -1
  224. package/dist/layout.js +6 -5
  225. package/dist/{locale-DpCe_7mG.cjs → locale-BG4Q6P_O.cjs} +1 -1
  226. package/dist/{locale-DpCe_7mG.cjs.map → locale-BG4Q6P_O.cjs.map} +1 -1
  227. package/dist/{locale-Crzgecoe.js → locale-DPqdZjGC.js} +1 -1
  228. package/dist/{locale-Crzgecoe.js.map → locale-DPqdZjGC.js.map} +1 -1
  229. package/dist/{media-D0KRmTG_.cjs → media-Cc2wBvkb.cjs} +2 -2
  230. package/dist/{media-D0KRmTG_.cjs.map → media-Cc2wBvkb.cjs.map} +1 -1
  231. package/dist/{media-DWG2uW1h.js → media-Yp4PedIi.js} +4 -4
  232. package/dist/{media-DWG2uW1h.js.map → media-Yp4PedIi.js.map} +1 -1
  233. package/dist/media.cjs +1 -1
  234. package/dist/media.js +3 -3
  235. package/dist/{overlays-DQOnI2NS.js → overlays-BBlMSWS8.js} +2 -2
  236. package/dist/{overlays-DQOnI2NS.js.map → overlays-BBlMSWS8.js.map} +1 -1
  237. package/dist/{overlays-CROlfKrR.cjs → overlays-CmF2tV32.cjs} +2 -2
  238. package/dist/{overlays-CROlfKrR.cjs.map → overlays-CmF2tV32.cjs.map} +1 -1
  239. package/dist/overlays.cjs +1 -1
  240. package/dist/overlays.js +5 -5
  241. package/dist/style-runtime.cjs +1 -1
  242. package/dist/style-runtime.js +1 -1
  243. package/dist/styles.css +1 -1
  244. package/dist/{typography-CtITQOAU.cjs → typography-B9-sCjsR.cjs} +2 -2
  245. package/dist/{typography-CtITQOAU.cjs.map → typography-B9-sCjsR.cjs.map} +1 -1
  246. package/dist/{typography-CCkJaTzp.js → typography-DZx1M8Wc.js} +2 -2
  247. package/dist/{typography-CCkJaTzp.js.map → typography-DZx1M8Wc.js.map} +1 -1
  248. package/dist/typography.cjs +1 -1
  249. package/dist/typography.js +6 -5
  250. package/package.json +1 -1
  251. package/dist/MChatIcon-CnDOfqkO.js.map +0 -1
  252. package/dist/MChatIcon-DX-u8_6S.cjs +0 -2
  253. package/dist/MChatIcon-DX-u8_6S.cjs.map +0 -1
  254. package/dist/MEllipsisVerticalIcon-C87B9UQK.cjs +0 -2
  255. package/dist/MEllipsisVerticalIcon-C87B9UQK.cjs.map +0 -1
  256. package/dist/MEllipsisVerticalIcon-CNn1AQ8W.js.map +0 -1
  257. package/dist/MPagination-Bu84ZlVh.cjs +0 -2
  258. package/dist/MPagination-Bu84ZlVh.cjs.map +0 -1
  259. package/dist/MPagination-CbkRMnL1.js +0 -147
  260. package/dist/MPagination-CbkRMnL1.js.map +0 -1
  261. package/dist/MText-C0FdseW1.js.map +0 -1
  262. package/dist/MText-OV0ihtQ6.cjs +0 -2
  263. package/dist/MText-OV0ihtQ6.cjs.map +0 -1
  264. package/dist/cards-CKCr-GuJ.js.map +0 -1
  265. package/dist/cards-yPK4lBAA.cjs +0 -2
  266. package/dist/data-BEH7TbuW.cjs +0 -2
  267. package/dist/dropdowns-CD2myl19.cjs +0 -2
  268. package/dist/feedback-CmOz23FV.cjs +0 -2
@@ -1,70 +1,71 @@
1
1
  import { t as e } from "./MCloseIcon-lDH3Vc10.js";
2
2
  import { t } from "./MChevronRightIcon-CXs8IHiV.js";
3
- import { a as n, c as r, d as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./MChatIcon-CnDOfqkO.js";
4
- import { A as p, C as m, D as h, E as g, O as _, S as v, T as y, _ as b, a as x, b as S, c as C, d as w, f as T, g as E, h as D, i as O, j as k, k as A, l as j, m as M, n as N, o as P, p as ee, s as te, t as ne, v as re, w as ie, x as ae, y as F } from "./MFileExtIcons-BoG3GPxg.js";
5
- import { t as oe } from "./MEllipsisVerticalIcon-CNn1AQ8W.js";
3
+ import { n, t as r } from "./MEllipsisVerticalIcon-CXmu-bHJ.js";
4
+ import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./MChatIcon-Bb3DbYgB.js";
5
+ import { A as m, C as h, D as g, E as _, O as v, S as y, T as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as ee, p as te, s as ne, t as re, v as ie, w as ae, x as F, y as oe } from "./MFileExtIcons-Cxbgd5Fz.js";
6
6
  import { t as I } from "./cn-DZLxql0l.js";
7
7
  import { t as L } from "./MPortal-CbpNkzfC.js";
8
8
  import { t as R } from "./MPopover-DKBdLfrw.js";
9
- import { r as se, t as z } from "./MButton-33EzpGvQ.js";
10
- import { t as B } from "./MBadge-BjZX0MIC.js";
11
- import { n as ce, t as V } from "./MText-C0FdseW1.js";
12
- import { t as le } from "./MSubText-uvcBr9Ba.js";
13
- import { n as ue, r as H } from "./MSkeleton-BL4C5FkH.js";
14
- import { t as de } from "./locale-Crzgecoe.js";
15
- import { t as fe } from "./MTimeAgo-DrDs52Y1.js";
16
- import { t as U } from "./MImage-CKrjXRmf.js";
17
- import { t as W } from "./MAvatar-Blh5pfSO.js";
18
- import { t as pe } from "./MModal-D1Knn-bg.js";
19
- import { i as me, r as he } from "./MDropdownMenu-BgOiM5yr.js";
20
- import { t as ge } from "./MInputSearch-BeXUh4lz.js";
21
- import { a as _e, c as ve, d as ye, f as be, i as xe, l as Se, n as Ce, o as we, r as Te, s as G, u as Ee } from "./MSparkline-DjcDtnZH.js";
22
- import { a as De, r as Oe, t as ke } from "./frameworkTexts-5_DBGFFg.js";
23
- import { n as Ae } from "./MPagination-CbkRMnL1.js";
24
- import { t as je } from "./MStack-DhdMFSUL.js";
25
- import { t as Me } from "./MCheckbox-CugP7F6H.js";
26
- import { Children as Ne, createContext as Pe, isValidElement as Fe, useCallback as K, useContext as Ie, useEffect as Le, useMemo as q, useRef as J, useState as Y } from "react";
27
- import { Fragment as Re, jsx as X, jsxs as Z } from "react/jsx-runtime";
9
+ import { r as se, t as ce } from "./MButton-33EzpGvQ.js";
10
+ import { t as z } from "./MBadge-BjZX0MIC.js";
11
+ import { t as B } from "./MText-lZjEtV_i.js";
12
+ import { t as le } from "./MHeading-BlDlbYcY.js";
13
+ import { t as ue } from "./MSubText-BxDWVjjs.js";
14
+ import { n as de, r as V } from "./MSkeleton-QQ8Lk3Cr.js";
15
+ import { t as fe } from "./MModal-Dni2MR1n.js";
16
+ import { i as pe, r as H } from "./MDropdownMenu-D3O3-l8O.js";
17
+ import { t as me } from "./locale-DPqdZjGC.js";
18
+ import { t as U } from "./MTimeAgo-4pfAn0iE.js";
19
+ import { t as W } from "./MImage-C99xrQQ9.js";
20
+ import { t as G } from "./MAvatar-BDfA-fQT.js";
21
+ import { t as he } from "./MInputSearch-k2ESY4ZG.js";
22
+ import { a as ge, c as _e, d as ve, f as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as K, u as Te } from "./MSparkline-LfEfA310.js";
23
+ import { a as Ee, r as De, t as Oe } from "./frameworkTexts-DH2N7l8F.js";
24
+ import { t as ke } from "./MInline-NJeL5tcC.js";
25
+ import { t as Ae } from "./MStack-CuUE9u4h.js";
26
+ import { t as je } from "./MCheckbox-DW-liYve.js";
27
+ import { Children as Me, createContext as Ne, isValidElement as Pe, useCallback as q, useContext as Fe, useEffect as Ie, useMemo as J, useRef as Y, useState as X } from "react";
28
+ import { Fragment as Le, jsx as Z, jsxs as Q } from "react/jsx-runtime";
28
29
  //#region src/components/data/MChat/MChatContext.ts
29
- var ze = Pe({});
30
- function Be() {
31
- return Ie(ze);
30
+ var Re = Ne({});
31
+ function ze() {
32
+ return Fe(Re);
32
33
  }
33
34
  //#endregion
34
35
  //#region src/components/data/MChat/MChat.tsx
35
- function Ve(e, t) {
36
- return Fe(e) && !!e.type[t];
36
+ function Be(e, t) {
37
+ return Pe(e) && !!e.type[t];
37
38
  }
38
- function He({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color: i = "primary", className: a, children: o, ...s }) {
39
+ function Ve({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color: i = "primary", className: a, children: o, ...s }) {
39
40
  let c = null, l = null, u = [];
40
- Ne.forEach(o, (e) => {
41
- if (Ve(e, "__chatHeader")) {
41
+ Me.forEach(o, (e) => {
42
+ if (Be(e, "__chatHeader")) {
42
43
  c = e;
43
44
  return;
44
45
  }
45
- if (Ve(e, "__chatConversationList")) {
46
+ if (Be(e, "__chatConversationList")) {
46
47
  l = e;
47
48
  return;
48
49
  }
49
50
  u.push(e);
50
51
  });
51
- let f = q(() => ({ color: i }), [i]), p = /* @__PURE__ */ X(ze.Provider, {
52
- value: f,
53
- children: /* @__PURE__ */ Z("div", {
52
+ let d = J(() => ({ color: i }), [i]), p = /* @__PURE__ */ Z(Re.Provider, {
53
+ value: d,
54
+ children: /* @__PURE__ */ Q("div", {
54
55
  className: I("chat", e, `color-${i}`, e === "floating" && t && "open", a),
55
56
  ...s,
56
- children: [l && /* @__PURE__ */ X("div", {
57
+ children: [l && /* @__PURE__ */ Z("div", {
57
58
  className: "chat-sidebar",
58
59
  children: l
59
- }), /* @__PURE__ */ Z("div", {
60
+ }), /* @__PURE__ */ Q("div", {
60
61
  className: "chat-main",
61
62
  children: [c, u]
62
63
  })]
63
64
  })
64
65
  });
65
- return e === "floating" ? /* @__PURE__ */ X(L, { children: /* @__PURE__ */ Z("div", {
66
+ return e === "floating" ? /* @__PURE__ */ Z(L, { children: /* @__PURE__ */ Q("div", {
66
67
  className: I("chat-floating-wrapper", t && "open"),
67
- children: [t && p, /* @__PURE__ */ X(z, {
68
+ children: [t && p, /* @__PURE__ */ Z(ce, {
68
69
  variant: "filled",
69
70
  color: i,
70
71
  shape: "circle",
@@ -75,55 +76,55 @@ function He({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color
75
76
  badge: !t && r ? r : void 0,
76
77
  badgeColor: "error",
77
78
  badgePulsing: !t && !!r,
78
- children: /* @__PURE__ */ X(d, {})
79
+ children: /* @__PURE__ */ Z(f, {})
79
80
  })]
80
81
  }) }) : p;
81
82
  }
82
83
  //#endregion
83
84
  //#region src/components/data/MChat/MChatHeader.tsx
84
- function Ue({ bordered: e = !1, className: t, children: n, ...r }) {
85
- return /* @__PURE__ */ X("div", {
85
+ function He({ bordered: e = !1, className: t, children: n, ...r }) {
86
+ return /* @__PURE__ */ Z("div", {
86
87
  className: I("chat-header", e && "bordered", t),
87
88
  ...r,
88
89
  children: n
89
90
  });
90
91
  }
91
- Ue.__chatHeader = !0;
92
+ He.__chatHeader = !0;
92
93
  //#endregion
93
94
  //#region src/components/data/MChat/MChatMessage.tsx
94
- function We({ status: e }) {
95
+ function Ue({ status: e }) {
95
96
  if (!e) return null;
96
97
  let t = e === "delivered" || e === "read";
97
- return /* @__PURE__ */ X("span", {
98
+ return /* @__PURE__ */ Z("span", {
98
99
  className: I("chat-status", e === "read" ? "chat-status-read" : ""),
99
100
  "aria-label": e,
100
101
  children: t ? "✓✓" : "✓"
101
102
  });
102
103
  }
103
- function Ge({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, className: i, ...a }) {
104
+ function We({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, className: i, ...a }) {
104
105
  let { content: o, sender: s, timestamp: c, status: l, isOwn: u, images: d } = e;
105
- return /* @__PURE__ */ Z("div", {
106
+ return /* @__PURE__ */ Q("div", {
106
107
  className: I("chat-message", u && "own", r || void 0, i),
107
108
  ...a,
108
- children: [t && !u && /* @__PURE__ */ X(W, {
109
+ children: [t && !u && /* @__PURE__ */ Z(G, {
109
110
  src: s.avatar,
110
111
  name: s.name,
111
112
  size: "sm",
112
113
  color: r,
113
114
  className: "chat-message-avatar"
114
- }), /* @__PURE__ */ Z("div", {
115
+ }), /* @__PURE__ */ Q("div", {
115
116
  className: "chat-message-content",
116
117
  children: [
117
- !u && /* @__PURE__ */ X(V, {
118
+ !u && /* @__PURE__ */ Z(B, {
118
119
  className: "chat-message-sender",
119
120
  color: "neutral",
120
121
  children: s.name
121
122
  }),
122
- /* @__PURE__ */ Z("div", {
123
+ /* @__PURE__ */ Q("div", {
123
124
  className: "chat-message-bubble",
124
- children: [o && /* @__PURE__ */ X(V, { children: o }), d && d.length > 0 && /* @__PURE__ */ X("div", {
125
+ children: [o && /* @__PURE__ */ Z(B, { children: o }), d && d.length > 0 && /* @__PURE__ */ Z("div", {
125
126
  className: I("chat-message-images", d.length > 1 && "grid"),
126
- children: d.map((e, t) => /* @__PURE__ */ X(U, {
127
+ children: d.map((e, t) => /* @__PURE__ */ Z(W, {
127
128
  src: e,
128
129
  alt: "",
129
130
  fit: "cover",
@@ -132,11 +133,11 @@ function Ge({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
132
133
  }, t))
133
134
  })]
134
135
  }),
135
- /* @__PURE__ */ Z("div", {
136
+ /* @__PURE__ */ Q("div", {
136
137
  className: "chat-message-meta",
137
- children: [u && /* @__PURE__ */ X(We, { status: l }), n && /* @__PURE__ */ X(le, {
138
+ children: [u && /* @__PURE__ */ Z(Ue, { status: l }), n && /* @__PURE__ */ Z(ue, {
138
139
  className: "chat-message-time",
139
- children: /* @__PURE__ */ X(fe, { value: c })
140
+ children: /* @__PURE__ */ Z(U, { value: c })
140
141
  })]
141
142
  })
142
143
  ]
@@ -145,17 +146,17 @@ function Ge({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
145
146
  }
146
147
  //#endregion
147
148
  //#region src/components/data/MChat/MChatBody.tsx
148
- function Ke({ messages: e, onScrollTop: t, loading: n = !1, color: r, className: i, children: a, ...o }) {
149
- let { color: s } = Be(), c = r ?? s, l = J(null), u = J(!0), d = J(0), f = K(() => {
149
+ function Ge({ messages: e, onScrollTop: t, loading: n = !1, color: r, className: i, children: a, ...o }) {
150
+ let { color: s } = ze(), c = r ?? s, l = Y(null), u = Y(!0), d = Y(0), f = q(() => {
150
151
  let e = l.current;
151
152
  e && (e.scrollTop = e.scrollHeight);
152
153
  }, []);
153
- return Le(() => {
154
+ return Ie(() => {
154
155
  let t = e?.length ?? 0;
155
156
  t > d.current && u.current && f(), d.current = t;
156
- }, [e?.length, f]), Le(() => {
157
+ }, [e?.length, f]), Ie(() => {
157
158
  f();
158
- }, [f]), /* @__PURE__ */ Z("div", {
159
+ }, [f]), /* @__PURE__ */ Q("div", {
159
160
  ref: l,
160
161
  className: I("chat-body", i),
161
162
  onScroll: () => {
@@ -164,11 +165,11 @@ function Ke({ messages: e, onScrollTop: t, loading: n = !1, color: r, className:
164
165
  },
165
166
  ...o,
166
167
  children: [
167
- n && /* @__PURE__ */ X("div", {
168
+ n && /* @__PURE__ */ Z("div", {
168
169
  className: "chat-body-loader",
169
- children: /* @__PURE__ */ X(se, { size: "sm" })
170
+ children: /* @__PURE__ */ Z(se, { size: "sm" })
170
171
  }),
171
- e?.map((e) => /* @__PURE__ */ X(Ge, {
172
+ e?.map((e) => /* @__PURE__ */ Z(We, {
172
173
  message: e,
173
174
  color: c
174
175
  }, e.id)),
@@ -178,7 +179,7 @@ function Ke({ messages: e, onScrollTop: t, loading: n = !1, color: r, className:
178
179
  }
179
180
  //#endregion
180
181
  //#region src/components/data/MChat/emojis.ts
181
- var qe = [
182
+ var Ke = [
182
183
  {
183
184
  label: "Smileys",
184
185
  emojis: /* @__PURE__ */ "😀.😃.😄.😁.😆.😅.🤣.😂.🙂.😊.😇.🥰.😍.🤩.😘.😗.😋.😛.😜.🤪.😝.🤗.🤔.🫡.🤐.🤨.😐.😑.😶.🫠.😏.😒.🙄.😬.😮‍💨.🤥.😌.😔.😪.🤤.😴.😷.🤒.🤕.🤢.🤮.🤧.🥵.🥶.😵.🤯.🥳.🥸.😎.🤓.🧐".split(".")
@@ -237,19 +238,19 @@ var qe = [
237
238
  "🔔"
238
239
  ]
239
240
  }
240
- ], Je = "image/png,image/jpeg,image/gif,image/webp";
241
- function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1, showEmoji: i = !0, showAttach: a = !0, onTyping: o, color: c, className: l, ...u }) {
242
- let { color: d } = Be(), p = c ?? d, [m, h] = Y(""), [g, _] = Y(!1), [v, y] = Y([]), [b, x] = Y([]), [S, C] = Y(!1), w = J(null), T = J(null), E = J(null), D = J(!1), O = J(void 0), k = K((e) => {
241
+ ], qe = "image/png,image/jpeg,image/gif,image/webp";
242
+ function Je({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1, showEmoji: i = !0, showAttach: a = !0, onTyping: o, color: s, className: l, ...u }) {
243
+ let { color: d } = ze(), f = s ?? d, [m, h] = X(""), [g, _] = X(!1), [v, y] = X([]), [b, x] = X([]), [S, C] = X(!1), w = Y(null), T = Y(null), E = Y(null), D = Y(!1), O = Y(void 0), k = q((e) => {
243
244
  let t = e.filter((e) => e.type.startsWith("image/"));
244
245
  t.length !== 0 && (y((e) => [...e, ...t]), t.forEach((e) => {
245
246
  let t = URL.createObjectURL(e);
246
247
  x((e) => [...e, t]);
247
248
  }));
248
- }, []), A = K((e) => {
249
+ }, []), A = q((e) => {
249
250
  x((t) => (URL.revokeObjectURL(t[e]), t.filter((t, n) => n !== e))), y((t) => t.filter((t, n) => n !== e));
250
251
  }, []);
251
- Le(() => () => b.forEach((e) => URL.revokeObjectURL(e)), []);
252
- let j = K(() => {
252
+ Ie(() => () => b.forEach((e) => URL.revokeObjectURL(e)), []);
253
+ let j = q(() => {
253
254
  let e = m.trim();
254
255
  !e && v.length === 0 || r || (t?.(e, v.length > 0 ? v : void 0), h(""), y([]), x((e) => (e.forEach((e) => URL.revokeObjectURL(e)), [])), w.current && (w.current.style.height = "auto"), D.current && (D.current = !1, o?.(!1)));
255
256
  }, [
@@ -267,7 +268,7 @@ function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1,
267
268
  }, P = (e) => {
268
269
  e.style.height = "auto", e.style.height = Math.min(e.scrollHeight, 120) + "px";
269
270
  };
270
- Le(() => () => clearTimeout(O.current), []);
271
+ Ie(() => () => clearTimeout(O.current), []);
271
272
  let ee = (e) => {
272
273
  h((t) => t + e), _(!1), w.current?.focus();
273
274
  }, te = (e) => {
@@ -280,34 +281,34 @@ function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1,
280
281
  let e = E.current?.files;
281
282
  e && k(Array.from(e)), E.current && (E.current.value = "");
282
283
  }, ae = m.trim() || v.length > 0;
283
- return /* @__PURE__ */ Z("div", {
284
+ return /* @__PURE__ */ Q("div", {
284
285
  className: I("chat-input", S && "drag-over", l),
285
286
  onDragOver: te,
286
287
  onDragLeave: ne,
287
288
  onDrop: re,
288
289
  ...u,
289
- children: [b.length > 0 && /* @__PURE__ */ X("div", {
290
+ children: [b.length > 0 && /* @__PURE__ */ Z("div", {
290
291
  className: "chat-input-previews",
291
- children: b.map((t, n) => /* @__PURE__ */ Z("div", {
292
+ children: b.map((t, n) => /* @__PURE__ */ Q("div", {
292
293
  className: "chat-input-preview",
293
- children: [/* @__PURE__ */ X(U, {
294
+ children: [/* @__PURE__ */ Z(W, {
294
295
  src: t,
295
296
  alt: "",
296
297
  fit: "cover",
297
298
  rounded: !0,
298
299
  className: "chat-input-preview-img"
299
- }), /* @__PURE__ */ X("button", {
300
+ }), /* @__PURE__ */ Z("button", {
300
301
  type: "button",
301
302
  className: "chat-input-preview-remove",
302
303
  onClick: () => A(n),
303
304
  "aria-label": "Remove image",
304
- children: /* @__PURE__ */ X(e, {})
305
+ children: /* @__PURE__ */ Z(e, {})
305
306
  })]
306
307
  }, n))
307
- }), /* @__PURE__ */ Z("div", {
308
+ }), /* @__PURE__ */ Q("div", {
308
309
  className: "chat-input-field",
309
310
  children: [
310
- i && /* @__PURE__ */ Z(Re, { children: [/* @__PURE__ */ X("button", {
311
+ i && /* @__PURE__ */ Q(Le, { children: [/* @__PURE__ */ Z("button", {
311
312
  ref: T,
312
313
  type: "button",
313
314
  className: "chat-input-emoji-trigger",
@@ -315,21 +316,21 @@ function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1,
315
316
  "aria-label": "Emoji",
316
317
  disabled: r,
317
318
  children: "😊"
318
- }), /* @__PURE__ */ X(R, {
319
+ }), /* @__PURE__ */ Z(R, {
319
320
  open: g,
320
321
  anchorRef: T,
321
322
  onClose: () => _(!1),
322
323
  placement: "top-start",
323
- children: /* @__PURE__ */ X("div", {
324
+ children: /* @__PURE__ */ Z("div", {
324
325
  className: "chat-emoji-picker",
325
- children: qe.map((e) => /* @__PURE__ */ Z("div", {
326
+ children: Ke.map((e) => /* @__PURE__ */ Q("div", {
326
327
  className: "chat-emoji-category",
327
- children: [/* @__PURE__ */ X("div", {
328
+ children: [/* @__PURE__ */ Z("div", {
328
329
  className: "chat-emoji-category-label",
329
330
  children: e.label
330
- }), /* @__PURE__ */ X("div", {
331
+ }), /* @__PURE__ */ Z("div", {
331
332
  className: "chat-emoji-grid",
332
- children: e.emojis.map((e) => /* @__PURE__ */ X("button", {
333
+ children: e.emojis.map((e) => /* @__PURE__ */ Z("button", {
333
334
  type: "button",
334
335
  className: "chat-emoji-btn",
335
336
  onClick: () => ee(e),
@@ -339,23 +340,23 @@ function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1,
339
340
  }, e.label))
340
341
  })
341
342
  })] }),
342
- a && /* @__PURE__ */ Z(Re, { children: [/* @__PURE__ */ X("input", {
343
+ a && /* @__PURE__ */ Q(Le, { children: [/* @__PURE__ */ Z("input", {
343
344
  ref: E,
344
345
  type: "file",
345
- accept: Je,
346
+ accept: qe,
346
347
  multiple: !0,
347
348
  className: "chat-input-file-hidden",
348
349
  onChange: ie,
349
350
  tabIndex: -1
350
- }), /* @__PURE__ */ X("button", {
351
+ }), /* @__PURE__ */ Z("button", {
351
352
  type: "button",
352
353
  className: "chat-input-attach-trigger",
353
354
  onClick: () => E.current?.click(),
354
355
  "aria-label": "Attach image",
355
356
  disabled: r,
356
- children: /* @__PURE__ */ X(f, { color: "inherit" })
357
+ children: /* @__PURE__ */ Z(p, { color: "inherit" })
357
358
  })] }),
358
- /* @__PURE__ */ X("textarea", {
359
+ /* @__PURE__ */ Z("textarea", {
359
360
  ref: w,
360
361
  className: "chat-input-textarea",
361
362
  value: m,
@@ -365,17 +366,17 @@ function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1,
365
366
  disabled: r,
366
367
  rows: 1
367
368
  }),
368
- /* @__PURE__ */ X(z, {
369
+ /* @__PURE__ */ Z(ce, {
369
370
  variant: "filled",
370
371
  size: "sm",
371
- color: p ?? "primary",
372
+ color: f ?? "primary",
372
373
  iconOnly: !0,
373
374
  shape: "circle",
374
375
  className: "chat-input-send",
375
376
  onClick: j,
376
377
  disabled: r || !ae,
377
378
  "aria-label": "Send",
378
- children: /* @__PURE__ */ X(s, {})
379
+ children: /* @__PURE__ */ Z(c, {})
379
380
  })
380
381
  ]
381
382
  })]
@@ -383,43 +384,43 @@ function Ye({ onSend: t, placeholder: n = "Type a message…", disabled: r = !1,
383
384
  }
384
385
  //#endregion
385
386
  //#region src/components/data/MChat/MChatTypingIndicator.tsx
386
- function Xe({ users: e = [], visible: t = !0, className: n, ...r }) {
387
+ function Ye({ users: e = [], visible: t = !0, className: n, ...r }) {
387
388
  if (!t || e.length === 0) return null;
388
389
  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`;
389
- return /* @__PURE__ */ Z("div", {
390
+ return /* @__PURE__ */ Q("div", {
390
391
  className: I("chat-typing", n),
391
392
  "aria-label": i,
392
393
  ...r,
393
- children: [e.length === 1 && /* @__PURE__ */ X(W, {
394
+ children: [e.length === 1 && /* @__PURE__ */ Z(G, {
394
395
  src: e[0].avatar,
395
396
  name: e[0].name,
396
397
  size: "sm",
397
398
  className: "chat-typing-avatar"
398
- }), /* @__PURE__ */ Z("div", {
399
+ }), /* @__PURE__ */ Q("div", {
399
400
  className: "chat-typing-dots",
400
401
  children: [
401
- /* @__PURE__ */ X("span", { className: "chat-typing-dot" }),
402
- /* @__PURE__ */ X("span", { className: "chat-typing-dot" }),
403
- /* @__PURE__ */ X("span", { className: "chat-typing-dot" })
402
+ /* @__PURE__ */ Z("span", { className: "chat-typing-dot" }),
403
+ /* @__PURE__ */ Z("span", { className: "chat-typing-dot" }),
404
+ /* @__PURE__ */ Z("span", { className: "chat-typing-dot" })
404
405
  ]
405
406
  })]
406
407
  });
407
408
  }
408
409
  //#endregion
409
410
  //#region src/components/data/MChat/MChatConversationList.tsx
410
- function Ze({ className: e, children: t, ...n }) {
411
- return /* @__PURE__ */ X("div", {
411
+ function Xe({ className: e, children: t, ...n }) {
412
+ return /* @__PURE__ */ Z("div", {
412
413
  className: I("chat-conversation-list", e),
413
414
  ...n,
414
415
  children: t
415
416
  });
416
417
  }
417
- Ze.__chatConversationList = !0;
418
+ Xe.__chatConversationList = !0;
418
419
  //#endregion
419
420
  //#region src/components/data/MChat/MChatConversationItem.tsx
420
- function Qe({ conversation: e, active: t = !1, color: n, onClick: r, className: i, ...a }) {
421
- 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);
422
- return /* @__PURE__ */ Z("div", {
421
+ function Ze({ conversation: e, active: t = !1, color: n, onClick: r, className: i, ...a }) {
422
+ let { color: o } = ze(), 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);
423
+ return /* @__PURE__ */ Q("div", {
423
424
  className: I("chat-conversation-item", t && "active", i),
424
425
  onClick: () => r?.(e),
425
426
  role: "button",
@@ -428,7 +429,7 @@ function Qe({ conversation: e, active: t = !1, color: n, onClick: r, className:
428
429
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r?.(e));
429
430
  },
430
431
  ...a,
431
- children: [/* @__PURE__ */ X(W, {
432
+ children: [/* @__PURE__ */ Z(G, {
432
433
  src: p?.avatar,
433
434
  name: p?.name,
434
435
  size: "md",
@@ -436,23 +437,23 @@ function Qe({ conversation: e, active: t = !1, color: n, onClick: r, className:
436
437
  badge: m,
437
438
  badgeColor: "success",
438
439
  className: "chat-conversation-avatar"
439
- }), /* @__PURE__ */ Z("div", {
440
+ }), /* @__PURE__ */ Q("div", {
440
441
  className: "chat-conversation-info",
441
- children: [/* @__PURE__ */ Z("div", {
442
+ children: [/* @__PURE__ */ Q("div", {
442
443
  className: "chat-conversation-top",
443
- children: [/* @__PURE__ */ X(V, {
444
+ children: [/* @__PURE__ */ Z(B, {
444
445
  className: "chat-conversation-name",
445
446
  children: f
446
- }), u && /* @__PURE__ */ X(le, {
447
+ }), u && /* @__PURE__ */ Z(ue, {
447
448
  className: "chat-conversation-time",
448
- children: /* @__PURE__ */ X(fe, { value: u.timestamp })
449
+ children: /* @__PURE__ */ Z(U, { value: u.timestamp })
449
450
  })]
450
- }), u && /* @__PURE__ */ Z("div", {
451
+ }), u && /* @__PURE__ */ Q("div", {
451
452
  className: "chat-conversation-bottom",
452
- children: [/* @__PURE__ */ Z(le, {
453
+ children: [/* @__PURE__ */ Q(ue, {
453
454
  className: "chat-conversation-preview",
454
455
  children: [u.isOwn ? "You: " : "", u.content]
455
- }), !!d && d > 0 && /* @__PURE__ */ X(B, {
456
+ }), !!d && d > 0 && /* @__PURE__ */ Z(z, {
456
457
  color: s ?? "primary",
457
458
  size: "sm",
458
459
  rounded: !0,
@@ -464,51 +465,51 @@ function Qe({ conversation: e, active: t = !1, color: n, onClick: r, className:
464
465
  }
465
466
  //#endregion
466
467
  //#region src/components/data/MTreeView/MTreeView.tsx
467
- var $e = {
468
- pdf: /* @__PURE__ */ X(A, {}),
469
- ts: /* @__PURE__ */ X(S, {}),
470
- tsx: /* @__PURE__ */ X(ae, {}),
471
- js: /* @__PURE__ */ X(C, {}),
472
- jsx: /* @__PURE__ */ X(h, {}),
473
- css: /* @__PURE__ */ X(ne, {}),
474
- scss: /* @__PURE__ */ X(ne, {}),
475
- html: /* @__PURE__ */ X(P, {}),
476
- json: /* @__PURE__ */ X(j, {}),
477
- md: /* @__PURE__ */ X(w, {}),
478
- txt: /* @__PURE__ */ X(v, {}),
479
- csv: /* @__PURE__ */ X(N, {}),
480
- zip: /* @__PURE__ */ X(g, {}),
481
- rar: /* @__PURE__ */ X(re, {}),
482
- svg: /* @__PURE__ */ X(F, {}),
483
- png: /* @__PURE__ */ X(E, {}),
484
- jpg: /* @__PURE__ */ X(te, {}),
485
- jpeg: /* @__PURE__ */ X(_, {}),
486
- gif: /* @__PURE__ */ X(x, {}),
487
- webp: /* @__PURE__ */ X(m, {}),
488
- php: /* @__PURE__ */ X(D, {}),
489
- xml: /* @__PURE__ */ X(y, {}),
490
- xls: /* @__PURE__ */ X(ie, {}),
491
- ppt: /* @__PURE__ */ X(b, {}),
492
- odt: /* @__PURE__ */ X(M, {}),
493
- exe: /* @__PURE__ */ X(O, {}),
494
- mp3: /* @__PURE__ */ X(T, {}),
495
- mp4: /* @__PURE__ */ X(ee, {})
468
+ var Qe = {
469
+ pdf: /* @__PURE__ */ Z(j, {}),
470
+ ts: /* @__PURE__ */ Z(C, {}),
471
+ tsx: /* @__PURE__ */ Z(F, {}),
472
+ js: /* @__PURE__ */ Z(w, {}),
473
+ jsx: /* @__PURE__ */ Z(g, {}),
474
+ css: /* @__PURE__ */ Z(re, {}),
475
+ scss: /* @__PURE__ */ Z(re, {}),
476
+ html: /* @__PURE__ */ Z(ee, {}),
477
+ json: /* @__PURE__ */ Z(M, {}),
478
+ md: /* @__PURE__ */ Z(T, {}),
479
+ txt: /* @__PURE__ */ Z(y, {}),
480
+ csv: /* @__PURE__ */ Z(P, {}),
481
+ zip: /* @__PURE__ */ Z(_, {}),
482
+ rar: /* @__PURE__ */ Z(ie, {}),
483
+ svg: /* @__PURE__ */ Z(oe, {}),
484
+ png: /* @__PURE__ */ Z(D, {}),
485
+ jpg: /* @__PURE__ */ Z(ne, {}),
486
+ jpeg: /* @__PURE__ */ Z(v, {}),
487
+ gif: /* @__PURE__ */ Z(S, {}),
488
+ webp: /* @__PURE__ */ Z(h, {}),
489
+ php: /* @__PURE__ */ Z(O, {}),
490
+ xml: /* @__PURE__ */ Z(b, {}),
491
+ xls: /* @__PURE__ */ Z(ae, {}),
492
+ ppt: /* @__PURE__ */ Z(x, {}),
493
+ odt: /* @__PURE__ */ Z(N, {}),
494
+ exe: /* @__PURE__ */ Z(k, {}),
495
+ mp3: /* @__PURE__ */ Z(E, {}),
496
+ mp4: /* @__PURE__ */ Z(te, {})
496
497
  };
497
- function et(e) {
498
+ function $e(e) {
498
499
  let t = e.lastIndexOf(".");
499
500
  return t < 1 ? null : e.slice(t + 1).toLowerCase();
500
501
  }
501
- function tt(e) {
502
+ function et(e) {
502
503
  return e.kind === "folder" || !!e.children?.length;
503
504
  }
504
- function nt(e) {
505
- let t = et(e);
506
- return t ? $e[t] ?? /* @__PURE__ */ X(p, {}) : /* @__PURE__ */ X(k, {});
505
+ function tt(e) {
506
+ let t = $e(e);
507
+ return t ? Qe[t] ?? /* @__PURE__ */ Z(m, {}) : /* @__PURE__ */ Z(A, {});
507
508
  }
508
- function rt(e, t, n) {
509
- return e.icon ? e.icon : n ? tt(e) ? X(t ? r : o, {}) : nt(e.label) : null;
509
+ function nt(e, t, n) {
510
+ return e.icon ? e.icon : n ? et(e) ? Z(t ? a : s, {}) : tt(e.label) : null;
510
511
  }
511
- function it(e) {
512
+ function rt(e) {
512
513
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
513
514
  function r(e) {
514
515
  t.set(e.id, e);
@@ -521,7 +522,7 @@ function it(e) {
521
522
  descendants: n
522
523
  };
523
524
  }
524
- function at(e, t) {
525
+ function it(e, t) {
525
526
  return typeof window > "u" ? {
526
527
  x: e,
527
528
  y: t
@@ -530,12 +531,12 @@ function at(e, t) {
530
531
  y: Math.max(8, Math.min(t, window.innerHeight - 16))
531
532
  };
532
533
  }
533
- function ot({ node: e, level: n, expandable: r, selectable: i, expandedIds: a, selectedId: o, draggedId: s, dropTargetId: c, onToggle: l, onSelect: u, indent: d, showLines: f, fileIcons: p, draggable: m, canDropOnNode: h, onContextMenu: g, onDragStart: _, onDragOver: v, onDrop: y, onDragEnd: b }) {
534
- let x = tt(e), S = a.has(e.id), C = o === e.id, w = s === e.id, T = c === e.id, E = h?.(e), D = rt(e, S, !!p);
535
- return /* @__PURE__ */ Z("li", {
534
+ function at({ node: e, level: n, expandable: r, selectable: i, expandedIds: a, selectedId: o, draggedId: s, dropTargetId: c, onToggle: l, onSelect: u, indent: d, showLines: f, fileIcons: p, draggable: m, canDropOnNode: h, onContextMenu: g, onDragStart: _, onDragOver: v, onDrop: y, onDragEnd: b }) {
535
+ let x = et(e), S = a.has(e.id), C = o === e.id, w = s === e.id, T = c === e.id, E = h?.(e), D = nt(e, S, !!p);
536
+ return /* @__PURE__ */ Q("li", {
536
537
  role: "treeitem",
537
538
  "aria-expanded": x ? S : void 0,
538
- children: [/* @__PURE__ */ Z("div", {
539
+ children: [/* @__PURE__ */ Q("div", {
539
540
  className: I("item", C && "selected", e.disabled && "disabled", i && !e.disabled && "selectable", m && !e.disabled && "draggable", w && "dragging", E && "can-drop", T && "drop-target"),
540
541
  style: { paddingLeft: n * d },
541
542
  draggable: m && !e.disabled,
@@ -548,27 +549,27 @@ function ot({ node: e, level: n, expandable: r, selectable: i, expandedIds: a, s
548
549
  onDrop: (t) => y?.(t, e),
549
550
  onDragEnd: b,
550
551
  children: [
551
- /* @__PURE__ */ X("span", {
552
+ /* @__PURE__ */ Z("span", {
552
553
  className: "toggle",
553
- children: x && r ? /* @__PURE__ */ X("span", {
554
+ children: x && r ? /* @__PURE__ */ Z("span", {
554
555
  className: I("arrow", S && "expanded"),
555
- children: /* @__PURE__ */ X(t, {})
556
- }) : /* @__PURE__ */ X("span", { className: "spacer" })
556
+ children: /* @__PURE__ */ Z(t, {})
557
+ }) : /* @__PURE__ */ Z("span", { className: "spacer" })
557
558
  }),
558
- D && /* @__PURE__ */ X("span", {
559
+ D && /* @__PURE__ */ Z("span", {
559
560
  className: "icon",
560
561
  children: D
561
562
  }),
562
- /* @__PURE__ */ X("span", {
563
+ /* @__PURE__ */ Z("span", {
563
564
  className: "label",
564
565
  children: e.label
565
566
  })
566
567
  ]
567
- }), x && S && /* @__PURE__ */ X("ul", {
568
+ }), x && S && /* @__PURE__ */ Z("ul", {
568
569
  className: "list",
569
570
  role: "group",
570
571
  style: f ? { "--line-left": `${n * d + 17}px` } : void 0,
571
- children: (e.children ?? []).map((e) => /* @__PURE__ */ X(ot, {
572
+ children: (e.children ?? []).map((e) => /* @__PURE__ */ Z(at, {
572
573
  node: e,
573
574
  level: n + 1,
574
575
  expandable: r,
@@ -593,9 +594,9 @@ function ot({ node: e, level: n, expandable: r, selectable: i, expandedIds: a, s
593
594
  })]
594
595
  });
595
596
  }
596
- 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, ..._ }) {
597
- let [v, y] = Y(r), [b, x] = Y(null), [S, C] = Y(null), [w, T] = Y(null), [E, D] = Y(null), O = J(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;
598
- Le(() => {
597
+ function ot({ 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, ..._ }) {
598
+ 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 } = rt(e), P = S ? M.get(S) ?? null : null;
599
+ Ie(() => {
599
600
  if (!E) return;
600
601
  function e(e) {
601
602
  e && O.current && O.current.contains(e.target) || D(null);
@@ -618,14 +619,14 @@ function st({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
618
619
  C(null), T(null);
619
620
  }
620
621
  function re(e) {
621
- 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;
622
+ return !P || !d || !p || e.disabled || !et(e) || e.id === P.id || N.get(P.id)?.has(e.id) ? !1 : f ? f(P, e) : !0;
622
623
  }
623
624
  function ie(e, t) {
624
625
  if (!m || t.disabled) return;
625
626
  let n = m(t).filter(Boolean);
626
627
  if (!n.length) return;
627
628
  e.preventDefault(), te(t.id, t);
628
- let r = at(e.clientX, e.clientY);
629
+ let r = it(e.clientX, e.clientY);
629
630
  D({
630
631
  node: t,
631
632
  items: n,
@@ -651,13 +652,13 @@ function st({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
651
652
  targetNode: n
652
653
  }), t && !A.has(n.id) && ee(n.id), ne();
653
654
  }
654
- return /* @__PURE__ */ Z("div", {
655
+ return /* @__PURE__ */ Q("div", {
655
656
  className: I("tree", l && "lines", g),
656
657
  ..._,
657
- children: [/* @__PURE__ */ X("ul", {
658
+ children: [/* @__PURE__ */ Z("ul", {
658
659
  className: "list",
659
660
  role: "tree",
660
- children: e.map((e) => /* @__PURE__ */ X(ot, {
661
+ children: e.map((e) => /* @__PURE__ */ Z(at, {
661
662
  node: e,
662
663
  level: 0,
663
664
  expandable: t,
@@ -679,7 +680,7 @@ function st({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
679
680
  onDrop: oe,
680
681
  onDragEnd: ne
681
682
  }, e.id))
682
- }), E && /* @__PURE__ */ X(L, { children: /* @__PURE__ */ X("div", {
683
+ }), E && /* @__PURE__ */ Z(L, { children: /* @__PURE__ */ Z("div", {
683
684
  ref: O,
684
685
  className: "tree menu",
685
686
  style: {
@@ -687,7 +688,7 @@ function st({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
687
688
  left: E.x
688
689
  },
689
690
  role: "menu",
690
- children: E.items.map((e) => /* @__PURE__ */ Z("button", {
691
+ children: E.items.map((e) => /* @__PURE__ */ Q("button", {
691
692
  type: "button",
692
693
  className: I("action", e.color, e.disabled && "disabled"),
693
694
  role: "menuitem",
@@ -695,28 +696,28 @@ function st({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded:
695
696
  onClick: () => {
696
697
  e.disabled || (h?.(e.id, E.node), D(null));
697
698
  },
698
- children: [e.icon && /* @__PURE__ */ X("span", {
699
+ children: [e.icon && /* @__PURE__ */ Z("span", {
699
700
  className: "icon",
700
701
  children: e.icon
701
- }), /* @__PURE__ */ X("span", { children: e.label })]
702
+ }), /* @__PURE__ */ Z("span", { children: e.label })]
702
703
  }, e.id))
703
704
  }) })]
704
705
  });
705
706
  }
706
707
  //#endregion
707
708
  //#region src/components/data/MTaskList/MTaskList.tsx
708
- function ct({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r, className: i, ...a }) {
709
- return /* @__PURE__ */ X("div", {
709
+ function st({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r, className: i, ...a }) {
710
+ return /* @__PURE__ */ Z("div", {
710
711
  className: I("task list", `color-${t}`, i),
711
712
  role: "list",
712
713
  ...a,
713
- children: e.map((e) => /* @__PURE__ */ Z("div", {
714
+ children: e.map((e) => /* @__PURE__ */ Q("div", {
714
715
  className: I("task item", e.checked && "checked", e.disabled && "disabled"),
715
716
  role: "listitem",
716
717
  onClick: (t) => {
717
718
  e.disabled || t.target.closest(".checkbox") || r?.(e.id, !(e.checked ?? !1));
718
719
  },
719
- children: [/* @__PURE__ */ X(Me, {
720
+ children: [/* @__PURE__ */ Z(je, {
720
721
  className: "task control",
721
722
  checked: e.checked ?? !1,
722
723
  color: t,
@@ -724,7 +725,7 @@ function ct({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r
724
725
  disabled: e.disabled,
725
726
  onChange: (t) => r?.(e.id, t.target.checked),
726
727
  clickEffect: "ripple"
727
- }), /* @__PURE__ */ X("span", {
728
+ }), /* @__PURE__ */ Z("span", {
728
729
  className: I("task label", e.checked && n && "done"),
729
730
  children: e.label
730
731
  })]
@@ -733,51 +734,51 @@ function ct({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r
733
734
  }
734
735
  //#endregion
735
736
  //#region src/components/data/MFileManager/MFileManager.tsx
736
- var lt = {
737
- pdf: /* @__PURE__ */ X(A, {}),
738
- ts: /* @__PURE__ */ X(S, {}),
739
- tsx: /* @__PURE__ */ X(ae, {}),
740
- js: /* @__PURE__ */ X(C, {}),
741
- jsx: /* @__PURE__ */ X(h, {}),
742
- css: /* @__PURE__ */ X(ne, {}),
743
- scss: /* @__PURE__ */ X(ne, {}),
744
- html: /* @__PURE__ */ X(P, {}),
745
- json: /* @__PURE__ */ X(j, {}),
746
- md: /* @__PURE__ */ X(w, {}),
747
- txt: /* @__PURE__ */ X(v, {}),
748
- csv: /* @__PURE__ */ X(N, {}),
749
- zip: /* @__PURE__ */ X(g, {}),
750
- rar: /* @__PURE__ */ X(re, {}),
751
- svg: /* @__PURE__ */ X(F, {}),
752
- png: /* @__PURE__ */ X(E, {}),
753
- jpg: /* @__PURE__ */ X(te, {}),
754
- jpeg: /* @__PURE__ */ X(_, {}),
755
- gif: /* @__PURE__ */ X(x, {}),
756
- webp: /* @__PURE__ */ X(m, {}),
757
- php: /* @__PURE__ */ X(D, {}),
758
- xml: /* @__PURE__ */ X(y, {}),
759
- xls: /* @__PURE__ */ X(ie, {}),
760
- ppt: /* @__PURE__ */ X(b, {}),
761
- odt: /* @__PURE__ */ X(M, {}),
762
- exe: /* @__PURE__ */ X(O, {}),
763
- mp3: /* @__PURE__ */ X(T, {}),
764
- mp4: /* @__PURE__ */ X(ee, {})
737
+ var ct = {
738
+ pdf: /* @__PURE__ */ Z(j, {}),
739
+ ts: /* @__PURE__ */ Z(C, {}),
740
+ tsx: /* @__PURE__ */ Z(F, {}),
741
+ js: /* @__PURE__ */ Z(w, {}),
742
+ jsx: /* @__PURE__ */ Z(g, {}),
743
+ css: /* @__PURE__ */ Z(re, {}),
744
+ scss: /* @__PURE__ */ Z(re, {}),
745
+ html: /* @__PURE__ */ Z(ee, {}),
746
+ json: /* @__PURE__ */ Z(M, {}),
747
+ md: /* @__PURE__ */ Z(T, {}),
748
+ txt: /* @__PURE__ */ Z(y, {}),
749
+ csv: /* @__PURE__ */ Z(P, {}),
750
+ zip: /* @__PURE__ */ Z(_, {}),
751
+ rar: /* @__PURE__ */ Z(ie, {}),
752
+ svg: /* @__PURE__ */ Z(oe, {}),
753
+ png: /* @__PURE__ */ Z(D, {}),
754
+ jpg: /* @__PURE__ */ Z(ne, {}),
755
+ jpeg: /* @__PURE__ */ Z(v, {}),
756
+ gif: /* @__PURE__ */ Z(S, {}),
757
+ webp: /* @__PURE__ */ Z(h, {}),
758
+ php: /* @__PURE__ */ Z(O, {}),
759
+ xml: /* @__PURE__ */ Z(b, {}),
760
+ xls: /* @__PURE__ */ Z(ae, {}),
761
+ ppt: /* @__PURE__ */ Z(x, {}),
762
+ odt: /* @__PURE__ */ Z(N, {}),
763
+ exe: /* @__PURE__ */ Z(k, {}),
764
+ mp3: /* @__PURE__ */ Z(E, {}),
765
+ mp4: /* @__PURE__ */ Z(te, {})
765
766
  };
766
- function ut(e) {
767
+ function lt(e) {
767
768
  let t = e.lastIndexOf(".");
768
769
  return t < 1 ? null : e.slice(t + 1).toLowerCase();
769
770
  }
770
- function Q(e) {
771
+ function $(e) {
771
772
  return e?.kind === "folder" || !!e?.children?.length;
772
773
  }
773
- function dt(e) {
774
- let t = ut(e);
775
- return t ? lt[t] ?? /* @__PURE__ */ X(p, {}) : /* @__PURE__ */ X(k, {});
774
+ function ut(e) {
775
+ let t = lt(e);
776
+ return t ? ct[t] ?? /* @__PURE__ */ Z(m, {}) : /* @__PURE__ */ Z(A, {});
776
777
  }
777
- function ft(e, t = !1) {
778
- return e.icon ? e.icon : Q(e) ? X(t ? r : o, {}) : dt(e.label);
778
+ function dt(e, t = !1) {
779
+ return e.icon ? e.icon : $(e) ? Z(t ? a : s, {}) : ut(e.label);
779
780
  }
780
- function pt(e) {
781
+ function ft(e) {
781
782
  if (!e || e < 1) return null;
782
783
  let t = [
783
784
  "B",
@@ -790,7 +791,7 @@ function pt(e) {
790
791
  let i = n >= 100 || r === 0 ? 0 : 1;
791
792
  return `${n.toFixed(i)} ${t[r]}`;
792
793
  }
793
- function mt(e, t) {
794
+ function pt(e, t) {
794
795
  if (!e) return null;
795
796
  let n = e instanceof Date ? e : new Date(e);
796
797
  return Number.isNaN(n.getTime()) ? null : new Intl.DateTimeFormat(t, {
@@ -801,7 +802,7 @@ function mt(e, t) {
801
802
  minute: "2-digit"
802
803
  }).format(n);
803
804
  }
804
- function ht(e) {
805
+ function mt(e) {
805
806
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
806
807
  function r(e, i) {
807
808
  for (let a of e) t.set(a.id, a), n.set(a.id, i), a.children?.length && r(a.children, a.id);
@@ -811,14 +812,14 @@ function ht(e) {
811
812
  parentMap: n
812
813
  };
813
814
  }
814
- function gt(e) {
815
- return e.flatMap((e) => Q(e) ? [{
815
+ function ht(e) {
816
+ return e.flatMap((e) => $(e) ? [{
816
817
  ...e,
817
818
  kind: "folder",
818
- children: gt(e.children ?? [])
819
+ children: ht(e.children ?? [])
819
820
  }] : []);
820
821
  }
821
- function _t(e, t, n) {
822
+ function gt(e, t, n) {
822
823
  let r = [], i = e;
823
824
  for (; i;) {
824
825
  let e = t.get(i);
@@ -827,15 +828,15 @@ function _t(e, t, n) {
827
828
  }
828
829
  return r;
829
830
  }
830
- function vt(e, t, n) {
831
+ function _t(e, t, n) {
831
832
  if (!e) return null;
832
833
  let r = t.get(e);
833
- return r ? Q(r) ? r.id : n.get(r.id) ?? null : null;
834
+ return r ? $(r) ? r.id : n.get(r.id) ?? null : null;
834
835
  }
835
- function yt(e, t) {
836
+ function vt(e, t) {
836
837
  return e ? e.children ?? [] : t;
837
838
  }
838
- function bt(e, t, n, r, i) {
839
+ function yt(e, t, n, r, i) {
839
840
  let a = e ? t.get(e) ?? null : null, o = a ? n.get(a.id) ?? null : null;
840
841
  return {
841
842
  id: e,
@@ -846,248 +847,248 @@ function bt(e, t, n, r, i) {
846
847
  activeFolder: i
847
848
  };
848
849
  }
849
- function xt(e, t) {
850
+ function bt(e, t) {
850
851
  return [
851
- ...Q(e) ? [] : [{
852
+ ...$(e) ? [] : [{
852
853
  id: "download",
853
854
  label: t.download,
854
- icon: /* @__PURE__ */ X(l, {}),
855
+ icon: /* @__PURE__ */ Z(u, {}),
855
856
  color: "primary"
856
857
  }],
857
858
  {
858
859
  id: "rename",
859
860
  label: t.rename,
860
- icon: /* @__PURE__ */ X(a, {})
861
+ icon: /* @__PURE__ */ Z(o, {})
861
862
  },
862
863
  {
863
864
  id: "move",
864
865
  label: t.moveTo,
865
- icon: /* @__PURE__ */ X(i, {})
866
+ icon: /* @__PURE__ */ Z(n, {})
866
867
  },
867
868
  {
868
869
  id: "delete",
869
870
  label: t.delete,
870
- icon: /* @__PURE__ */ X(n, {}),
871
+ icon: /* @__PURE__ */ Z(i, {}),
871
872
  color: "error"
872
873
  }
873
874
  ];
874
875
  }
875
- function St(e, t) {
876
- return [...Q(e) ? [{
876
+ function xt(e, t) {
877
+ return [...$(e) ? [{
877
878
  id: "new-folder",
878
879
  label: t.newFolder,
879
- icon: /* @__PURE__ */ X(u, {})
880
- }] : [], ...xt(e, t)];
881
- }
882
- function Ct({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpandChange: i, folderId: a, defaultFolderId: o = null, onFolderChange: s, selectedId: l, onSelectionChange: u, view: d, defaultView: f = "list", onViewChange: p, searchValue: m, defaultSearchValue: h = "", onSearchChange: g, searchable: _ = !0, searchPlaceholder: v, showSidebar: y = !0, showPreview: b = !0, emptyText: x, toolbarActions: S = [], onToolbarAction: C, onOpenItem: w, onItemAction: T, onContextMenuAction: E, canDrop: D, onMove: O, renderPreview: k, className: A, ...j }) {
883
- let M = de(t), N = De(), [P, ee] = Y(o), [te, ne] = Y(null), [re, ie] = Y(f), [ae, F] = Y(h), { nodeMap: L, parentMap: R } = q(() => ht(e), [e]), se = q(() => gt(e), [e]), ce = vt(a === void 0 ? P : a, L, R), le = ce ? L.get(ce) ?? null : null, ue = l === void 0 ? te : l, H = ue ? L.get(ue) ?? null : null, fe = H ? H.id : null, U = d ?? re, W = m ?? ae, pe = yt(le, e), _e = W.trim().toLowerCase(), ve = _t(ce, L, R), ye = v ?? N.searchPlaceholder, be = x ?? N.emptyText, xe = !!(T || E), Se = q(() => _e ? pe.filter((e) => e.label.toLowerCase().includes(_e)) : pe, [pe, _e]);
884
- function Ce(e) {
885
- let t = vt(e, L, R), n = t ? L.get(t) ?? null : null;
886
- s ? s(t, n) : ee(t);
880
+ icon: /* @__PURE__ */ Z(d, {})
881
+ }] : [], ...bt(e, t)];
882
+ }
883
+ function St({ items: e, locale: t, defaultExpanded: n = [], expanded: i, onExpandChange: a, folderId: o, defaultFolderId: s = null, onFolderChange: c, selectedId: u, onSelectionChange: d, view: f, defaultView: p = "list", onViewChange: m, searchValue: h, defaultSearchValue: g = "", onSearchChange: _, searchable: v = !0, searchPlaceholder: y, showSidebar: b = !0, showPreview: x = !0, emptyText: S, toolbarActions: C = [], onToolbarAction: w, onOpenItem: T, onItemAction: E, onContextMenuAction: D, canDrop: O, onMove: k, renderPreview: A, className: j, ...M }) {
884
+ let N = me(t), P = Ee(), [ee, te] = X(s), [ne, re] = X(null), [ie, ae] = X(p), [F, oe] = X(g), { nodeMap: L, parentMap: R } = J(() => mt(e), [e]), se = J(() => ht(e), [e]), le = _t(o === void 0 ? ee : o, L, R), ue = le ? L.get(le) ?? null : null, de = u === void 0 ? ne : u, V = de ? L.get(de) ?? null : null, fe = V ? V.id : null, U = f ?? ie, W = h ?? F, G = vt(ue, e), ge = W.trim().toLowerCase(), _e = gt(le, L, R), ve = y ?? P.searchPlaceholder, ye = S ?? P.emptyText, be = !!(E || D), xe = J(() => ge ? G.filter((e) => e.label.toLowerCase().includes(ge)) : G, [G, ge]);
885
+ function Se(e) {
886
+ let t = _t(e, L, R), n = t ? L.get(t) ?? null : null;
887
+ c ? c(t, n) : te(t);
887
888
  }
888
- function we(e, t = ce, n = le) {
889
- let r = bt(e, L, R, t, n);
890
- u ? u(r) : ne(e);
889
+ function Ce(e, t = le, n = ue) {
890
+ let r = yt(e, L, R, t, n);
891
+ d ? d(r) : re(e);
891
892
  }
892
- function Te(e) {
893
- p ? p(e) : ie(e);
893
+ function we(e) {
894
+ m ? m(e) : ae(e);
894
895
  }
895
- function G(e) {
896
- g ? g(e) : F(e);
896
+ function K(e) {
897
+ _ ? _(e) : oe(e);
897
898
  }
898
- function Ee(e, t) {
899
- Ce(e), we(e, t.id, t);
899
+ function Te(e, t) {
900
+ Se(e), Ce(e, t.id, t);
900
901
  }
901
- function Oe(e) {
902
- if (Q(e)) {
903
- Ce(e.id), we(e.id, e.id, e);
902
+ function De(e) {
903
+ if ($(e)) {
904
+ Se(e.id), Ce(e.id, e.id, e);
904
905
  return;
905
906
  }
906
- we(e.id);
907
+ Ce(e.id);
907
908
  }
908
- function ke(e) {
909
- C && C({
910
- ...bt(fe, L, R, ce, le),
909
+ function Oe(e) {
910
+ w && w({
911
+ ...yt(fe, L, R, le, ue),
911
912
  actionId: e,
912
- visibleItems: Se
913
+ visibleItems: xe
913
914
  });
914
915
  }
915
- function Me(e, t) {
916
- (T ?? E)?.(e, t);
916
+ function je(e, t) {
917
+ (E ?? D)?.(e, t);
917
918
  }
918
- function Ne(e, t) {
919
- (E ?? T)?.(e, t);
919
+ function Me(e, t) {
920
+ (D ?? E)?.(e, t);
920
921
  }
921
- function Pe(e) {
922
- let t = [], n = pt(e.size), r = mt(e.modifiedAt, M);
923
- return Q(e) && t.push(N.itemsCount(e.children?.length ?? 0)), n && t.push(n), r && t.push(r), t.join(" / ");
922
+ function Ne(e) {
923
+ let t = [], n = ft(e.size), r = pt(e.modifiedAt, N);
924
+ return $(e) && t.push(P.itemsCount(e.children?.length ?? 0)), n && t.push(n), r && t.push(r), t.join(" / ");
924
925
  }
925
- return /* @__PURE__ */ Z("div", {
926
- className: I("file-manager", !y && "no-sidebar", !b && "no-preview", A),
927
- ...j,
928
- children: [/* @__PURE__ */ Z("div", {
926
+ return /* @__PURE__ */ Q("div", {
927
+ className: I("file-manager", !b && "no-sidebar", !x && "no-preview", j),
928
+ ...M,
929
+ children: [/* @__PURE__ */ Q("div", {
929
930
  className: "toolbar",
930
- children: [/* @__PURE__ */ Z("div", {
931
+ children: [/* @__PURE__ */ Q("div", {
931
932
  className: "toolbar-main",
932
- children: [/* @__PURE__ */ Z("div", {
933
+ children: [/* @__PURE__ */ Q("div", {
933
934
  className: "breadcrumbs",
934
- children: [/* @__PURE__ */ Z("button", {
935
+ children: [/* @__PURE__ */ Q("button", {
935
936
  type: "button",
936
937
  className: "breadcrumb root",
937
- onClick: () => Ce(null),
938
- children: [/* @__PURE__ */ X(c, {}), /* @__PURE__ */ X(V, {
938
+ onClick: () => Se(null),
939
+ children: [/* @__PURE__ */ Z(l, {}), /* @__PURE__ */ Z(B, {
939
940
  as: "span",
940
941
  weight: "semibold",
941
- children: N.home
942
+ children: P.home
942
943
  })]
943
- }), ve.map((e) => /* @__PURE__ */ Z("div", {
944
+ }), _e.map((e) => /* @__PURE__ */ Q("div", {
944
945
  className: "breadcrumbs",
945
- children: [/* @__PURE__ */ X("span", {
946
+ children: [/* @__PURE__ */ Z("span", {
946
947
  className: "breadcrumb-separator",
947
948
  children: "/"
948
- }), /* @__PURE__ */ X("button", {
949
+ }), /* @__PURE__ */ Z("button", {
949
950
  type: "button",
950
951
  className: "breadcrumb",
951
- onClick: () => Ce(e.id),
952
- children: /* @__PURE__ */ X(V, {
952
+ onClick: () => Se(e.id),
953
+ children: /* @__PURE__ */ Z(B, {
953
954
  as: "span",
954
955
  children: e.label
955
956
  })
956
957
  })]
957
958
  }, e.id))]
958
- }), _ && /* @__PURE__ */ X(ge, {
959
+ }), v && /* @__PURE__ */ Z(he, {
959
960
  className: "toolbar-search",
960
961
  size: "sm",
961
- placeholder: ye,
962
+ placeholder: ve,
962
963
  value: W,
963
- onChange: (e) => G(e.target.value),
964
- onClear: () => G("")
964
+ onChange: (e) => K(e.target.value),
965
+ onClear: () => K("")
965
966
  })]
966
- }), /* @__PURE__ */ Z("div", {
967
+ }), /* @__PURE__ */ Q("div", {
967
968
  className: "toolbar-actions",
968
- children: [S.map((e) => /* @__PURE__ */ X(z, {
969
+ children: [C.map((e) => /* @__PURE__ */ Z(ce, {
969
970
  size: "sm",
970
971
  variant: e.variant ?? "ghost",
971
972
  color: e.color,
972
973
  disabled: e.disabled,
973
- onClick: () => ke(e.id),
974
+ onClick: () => Oe(e.id),
974
975
  startIcon: e.icon,
975
976
  children: e.label
976
- }, e.id)), /* @__PURE__ */ Z("div", {
977
+ }, e.id)), /* @__PURE__ */ Q("div", {
977
978
  className: "view-switch",
978
- children: [/* @__PURE__ */ X(z, {
979
+ children: [/* @__PURE__ */ Z(ce, {
979
980
  size: "sm",
980
981
  variant: U === "list" ? "secondary" : "ghost",
981
- onClick: () => Te("list"),
982
- children: N.listView
983
- }), /* @__PURE__ */ X(z, {
982
+ onClick: () => we("list"),
983
+ children: P.listView
984
+ }), /* @__PURE__ */ Z(ce, {
984
985
  size: "sm",
985
986
  variant: U === "grid" ? "secondary" : "ghost",
986
- onClick: () => Te("grid"),
987
- children: N.gridView
987
+ onClick: () => we("grid"),
988
+ children: P.gridView
988
989
  })]
989
990
  })]
990
991
  })]
991
- }), /* @__PURE__ */ Z("div", {
992
+ }), /* @__PURE__ */ Q("div", {
992
993
  className: "body",
993
994
  children: [
994
- y && /* @__PURE__ */ Z("aside", {
995
+ b && /* @__PURE__ */ Q("aside", {
995
996
  className: "panel",
996
- children: [/* @__PURE__ */ Z("div", {
997
+ children: [/* @__PURE__ */ Q("div", {
997
998
  className: "panel-header",
998
- children: [/* @__PURE__ */ X(V, {
999
+ children: [/* @__PURE__ */ Z(B, {
999
1000
  weight: "semibold",
1000
- children: N.folders
1001
- }), /* @__PURE__ */ X(B, {
1001
+ children: P.folders
1002
+ }), /* @__PURE__ */ Z(z, {
1002
1003
  size: "sm",
1003
1004
  color: "info",
1004
1005
  children: se.length
1005
1006
  })]
1006
- }), /* @__PURE__ */ X("div", {
1007
+ }), /* @__PURE__ */ Z("div", {
1007
1008
  className: "panel-body sidebar-body",
1008
- children: se.length > 0 ? /* @__PURE__ */ X(st, {
1009
+ children: se.length > 0 ? /* @__PURE__ */ Z(ot, {
1009
1010
  items: se,
1010
1011
  selectable: !0,
1011
1012
  fileIcons: !0,
1012
1013
  defaultExpanded: n,
1013
- expanded: r,
1014
- onExpandChange: i,
1015
- selected: ce,
1016
- onSelect: (e, t) => Ee(e, t),
1017
- draggable: !!O,
1018
- canDrop: D ? (e, t) => D(e, t) : void 0,
1019
- onMove: O ? (e) => O({
1014
+ expanded: i,
1015
+ onExpandChange: a,
1016
+ selected: le,
1017
+ onSelect: (e, t) => Te(e, t),
1018
+ draggable: !!k,
1019
+ canDrop: O ? (e, t) => O(e, t) : void 0,
1020
+ onMove: k ? (e) => k({
1020
1021
  draggedId: e.draggedId,
1021
1022
  draggedNode: e.draggedNode,
1022
1023
  targetId: e.targetId,
1023
1024
  targetNode: e.targetNode
1024
1025
  }) : void 0,
1025
- contextMenuItems: xe ? (e) => St(e, N) : void 0,
1026
- onContextMenuAction: xe ? (e, t) => Ne(e, t) : void 0
1027
- }) : /* @__PURE__ */ X("div", {
1026
+ contextMenuItems: be ? (e) => xt(e, P) : void 0,
1027
+ onContextMenuAction: be ? (e, t) => Me(e, t) : void 0
1028
+ }) : /* @__PURE__ */ Z("div", {
1028
1029
  className: "empty-state",
1029
- children: N.noFoldersAvailable
1030
+ children: P.noFoldersAvailable
1030
1031
  })
1031
1032
  })]
1032
1033
  }),
1033
- /* @__PURE__ */ Z("section", {
1034
+ /* @__PURE__ */ Q("section", {
1034
1035
  className: "panel",
1035
- children: [/* @__PURE__ */ Z("div", {
1036
+ children: [/* @__PURE__ */ Q("div", {
1036
1037
  className: "panel-header",
1037
- children: [/* @__PURE__ */ Z(Ae, {
1038
+ children: [/* @__PURE__ */ Q(ke, {
1038
1039
  align: "center",
1039
1040
  wrap: "wrap",
1040
- children: [/* @__PURE__ */ X(V, {
1041
+ children: [/* @__PURE__ */ Z(B, {
1041
1042
  weight: "semibold",
1042
- children: le?.label ?? N.home
1043
- }), /* @__PURE__ */ X(B, {
1043
+ children: ue?.label ?? P.home
1044
+ }), /* @__PURE__ */ Z(z, {
1044
1045
  size: "sm",
1045
- children: Se.length
1046
+ children: xe.length
1046
1047
  })]
1047
- }), /* @__PURE__ */ X(V, {
1048
+ }), /* @__PURE__ */ Z(B, {
1048
1049
  size: "sm",
1049
1050
  tone: "muted",
1050
- children: _e ? N.filteredBy(W) : N.currentFolder
1051
+ children: ge ? P.filteredBy(W) : P.currentFolder
1051
1052
  })]
1052
- }), /* @__PURE__ */ X("div", {
1053
+ }), /* @__PURE__ */ Z("div", {
1053
1054
  className: "panel-body",
1054
- children: Se.length > 0 ? /* @__PURE__ */ X("div", {
1055
+ children: xe.length > 0 ? /* @__PURE__ */ Z("div", {
1055
1056
  className: I("content-items", U),
1056
- children: Se.map((e) => {
1057
- let t = fe === e.id, n = Pe(e), r = xe ? xt(e, N) : [];
1058
- return /* @__PURE__ */ Z("div", {
1057
+ children: xe.map((e) => {
1058
+ let t = fe === e.id, n = Ne(e), i = be ? bt(e, P) : [];
1059
+ return /* @__PURE__ */ Q("div", {
1059
1060
  className: I("item-card", t && "selected"),
1060
- children: [/* @__PURE__ */ Z("button", {
1061
+ children: [/* @__PURE__ */ Q("button", {
1061
1062
  type: "button",
1062
1063
  className: "item-card-main",
1063
- onClick: () => Oe(e),
1064
- onDoubleClick: () => w?.(e),
1065
- children: [/* @__PURE__ */ X("span", {
1064
+ onClick: () => De(e),
1065
+ onDoubleClick: () => T?.(e),
1066
+ children: [/* @__PURE__ */ Z("span", {
1066
1067
  className: "item-icon",
1067
- children: ft(e)
1068
- }), /* @__PURE__ */ Z("span", {
1068
+ children: dt(e)
1069
+ }), /* @__PURE__ */ Q("span", {
1069
1070
  className: "item-text",
1070
1071
  children: [
1071
- /* @__PURE__ */ X(V, {
1072
+ /* @__PURE__ */ Z(B, {
1072
1073
  as: "span",
1073
1074
  weight: "semibold",
1074
1075
  truncate: !0,
1075
1076
  children: e.label
1076
1077
  }),
1077
- e.description ? /* @__PURE__ */ X(V, {
1078
+ e.description ? /* @__PURE__ */ Z(B, {
1078
1079
  as: "span",
1079
1080
  size: "sm",
1080
1081
  tone: "muted",
1081
1082
  truncate: 2,
1082
1083
  children: e.description
1083
1084
  }) : null,
1084
- /* @__PURE__ */ Z("span", {
1085
+ /* @__PURE__ */ Q("span", {
1085
1086
  className: "item-meta",
1086
- children: [/* @__PURE__ */ X(B, {
1087
+ children: [/* @__PURE__ */ Z(z, {
1087
1088
  size: "sm",
1088
- color: Q(e) ? "info" : "primary",
1089
- children: Q(e) ? N.folder : N.file
1090
- }), n ? /* @__PURE__ */ X(V, {
1089
+ color: $(e) ? "info" : "primary",
1090
+ children: $(e) ? P.folder : P.file
1091
+ }), n ? /* @__PURE__ */ Z(B, {
1091
1092
  as: "span",
1092
1093
  size: "sm",
1093
1094
  tone: "muted",
@@ -1097,96 +1098,96 @@ function Ct({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1097
1098
  })
1098
1099
  ]
1099
1100
  })]
1100
- }), r.length > 0 ? /* @__PURE__ */ X("div", {
1101
+ }), i.length > 0 ? /* @__PURE__ */ Z("div", {
1101
1102
  className: "item-card-actions",
1102
- children: /* @__PURE__ */ X(me, {
1103
+ children: /* @__PURE__ */ Z(pe, {
1103
1104
  placement: "bottom-end",
1104
- trigger: /* @__PURE__ */ X(z, {
1105
- "aria-label": `${N.preview}: ${e.label}`,
1105
+ trigger: /* @__PURE__ */ Z(ce, {
1106
+ "aria-label": `${P.preview}: ${e.label}`,
1106
1107
  variant: "ghost",
1107
1108
  size: "sm",
1108
1109
  iconOnly: !0,
1109
- children: /* @__PURE__ */ X(oe, {})
1110
+ children: /* @__PURE__ */ Z(r, {})
1110
1111
  }),
1111
- children: r.map((t) => /* @__PURE__ */ X(he, {
1112
+ children: i.map((t) => /* @__PURE__ */ Z(H, {
1112
1113
  icon: t.icon,
1113
1114
  label: t.label,
1114
1115
  color: t.color,
1115
- onClick: () => Me(t.id, e)
1116
+ onClick: () => je(t.id, e)
1116
1117
  }, t.id))
1117
1118
  })
1118
1119
  }) : null]
1119
1120
  }, e.id);
1120
1121
  })
1121
- }) : /* @__PURE__ */ X("div", {
1122
+ }) : /* @__PURE__ */ Z("div", {
1122
1123
  className: "empty-state",
1123
- children: be
1124
+ children: ye
1124
1125
  })
1125
1126
  })]
1126
1127
  }),
1127
- b && /* @__PURE__ */ Z("aside", {
1128
+ x && /* @__PURE__ */ Q("aside", {
1128
1129
  className: "panel",
1129
- children: [/* @__PURE__ */ Z("div", {
1130
+ children: [/* @__PURE__ */ Q("div", {
1130
1131
  className: "panel-header",
1131
- children: [/* @__PURE__ */ X(V, {
1132
+ children: [/* @__PURE__ */ Z(B, {
1132
1133
  weight: "semibold",
1133
- children: N.preview
1134
- }), H ? /* @__PURE__ */ X(B, {
1134
+ children: P.preview
1135
+ }), V ? /* @__PURE__ */ Z(z, {
1135
1136
  size: "sm",
1136
- color: Q(H) ? "info" : "primary",
1137
- children: Q(H) ? N.folder : N.file
1137
+ color: $(V) ? "info" : "primary",
1138
+ children: $(V) ? P.folder : P.file
1138
1139
  }) : null]
1139
- }), /* @__PURE__ */ X("div", {
1140
+ }), /* @__PURE__ */ Z("div", {
1140
1141
  className: "panel-body",
1141
- children: H ? /* @__PURE__ */ Z(je, { children: [
1142
- /* @__PURE__ */ X("div", {
1142
+ children: V ? /* @__PURE__ */ Q(Ae, { children: [
1143
+ /* @__PURE__ */ Z("div", {
1143
1144
  className: "preview-visual",
1144
- children: k ? k(H) : H.preview ? H.preview : /* @__PURE__ */ X("span", {
1145
+ children: A ? A(V) : V.preview ? V.preview : /* @__PURE__ */ Z("span", {
1145
1146
  className: "preview-icon",
1146
- children: ft(H, !0)
1147
+ children: dt(V, !0)
1147
1148
  })
1148
1149
  }),
1149
- /* @__PURE__ */ X(V, {
1150
+ /* @__PURE__ */ Z(B, {
1150
1151
  weight: "semibold",
1151
- children: H.label
1152
+ children: V.label
1152
1153
  }),
1153
- H.description ? /* @__PURE__ */ X(V, {
1154
+ V.description ? /* @__PURE__ */ Z(B, {
1154
1155
  size: "sm",
1155
1156
  tone: "muted",
1156
- children: H.description
1157
+ children: V.description
1157
1158
  }) : null,
1158
- /* @__PURE__ */ Z("div", {
1159
+ /* @__PURE__ */ Q("div", {
1159
1160
  className: "preview-meta",
1160
1161
  children: [
1161
- /* @__PURE__ */ X(B, {
1162
+ /* @__PURE__ */ Z(z, {
1162
1163
  size: "sm",
1163
- color: Q(H) ? "info" : "primary",
1164
- children: Q(H) ? N.folder : N.file
1164
+ color: $(V) ? "info" : "primary",
1165
+ children: $(V) ? P.folder : P.file
1165
1166
  }),
1166
- pt(H.size) ? /* @__PURE__ */ X(B, {
1167
+ ft(V.size) ? /* @__PURE__ */ Z(z, {
1167
1168
  size: "sm",
1168
- children: pt(H.size)
1169
+ children: ft(V.size)
1169
1170
  }) : null,
1170
- mt(H.modifiedAt, M) ? /* @__PURE__ */ X(B, {
1171
+ pt(V.modifiedAt, N) ? /* @__PURE__ */ Z(z, {
1171
1172
  size: "sm",
1172
1173
  color: "neutral",
1173
- children: mt(H.modifiedAt, M)
1174
+ children: pt(V.modifiedAt, N)
1174
1175
  }) : null
1175
1176
  ]
1176
1177
  }),
1177
- /* @__PURE__ */ Z(V, {
1178
+ /* @__PURE__ */ Q(B, {
1178
1179
  size: "sm",
1179
1180
  tone: "muted",
1180
1181
  children: [
1181
- N.path,
1182
+ P.path,
1182
1183
  ":",
1183
1184
  " ",
1184
- [N.home, ..._t(H.id, L, R).map((e) => e.label)].join(" / ")
1185
+ [P.home, ...gt(V.id, L, R).map((e) => e.label)].join(" / ")
1185
1186
  ]
1186
1187
  })
1187
- ] }) : /* @__PURE__ */ X("div", {
1188
+ ] }) : /* @__PURE__ */ Z("div", {
1188
1189
  className: "preview-empty",
1189
- children: N.selectItemToInspect
1190
+ children: P.selectItemToInspect
1190
1191
  })
1191
1192
  })]
1192
1193
  })
@@ -1196,14 +1197,14 @@ function Ct({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1196
1197
  }
1197
1198
  //#endregion
1198
1199
  //#region src/components/data/MCalendarBoard/MCalendarBoard.tsx
1199
- function $(e) {
1200
+ function Ct(e) {
1200
1201
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1201
1202
  }
1202
1203
  function wt(e) {
1203
1204
  if (!e) return null;
1204
- if (e instanceof Date) return $(e);
1205
+ if (e instanceof Date) return Ct(e);
1205
1206
  let t = new Date(e);
1206
- return Number.isNaN(t.getTime()) ? null : $(t);
1207
+ return Number.isNaN(t.getTime()) ? null : Ct(t);
1207
1208
  }
1208
1209
  function Tt(e) {
1209
1210
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
@@ -1213,10 +1214,10 @@ function Et(e) {
1213
1214
  }
1214
1215
  function Dt(e, t) {
1215
1216
  let n = new Date(e);
1216
- return n.setDate(n.getDate() + t), $(n);
1217
+ return n.setDate(n.getDate() + t), Ct(n);
1217
1218
  }
1218
1219
  function Ot(e, t) {
1219
- let n = $(e);
1220
+ let n = Ct(e);
1220
1221
  return Dt(n, -((n.getDay() - t + 7) % 7));
1221
1222
  }
1222
1223
  function kt(e) {
@@ -1262,7 +1263,7 @@ function Ft(e, t) {
1262
1263
  return i.setHours(t + 1, 0, 0, 0), i <= n ? "past" : r <= n && i > n ? "active" : "upcoming";
1263
1264
  }
1264
1265
  function It(e) {
1265
- return kt(e).slice(0, 4).map((e) => /* @__PURE__ */ X("span", {
1266
+ return kt(e).slice(0, 4).map((e) => /* @__PURE__ */ Z("span", {
1266
1267
  className: "marker",
1267
1268
  style: { background: e.color ?? jt(e.status) },
1268
1269
  "aria-hidden": "true"
@@ -1284,24 +1285,24 @@ function zt(e, t) {
1284
1285
  }
1285
1286
  function Bt({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHour: i, showTimeline: a, emptyStateText: o, renderEventItem: s }) {
1286
1287
  if (!e) return null;
1287
- let c = ke();
1288
- return /* @__PURE__ */ Z(je, { children: [
1289
- /* @__PURE__ */ Z(je, { children: [/* @__PURE__ */ X(ce, {
1288
+ let c = Oe();
1289
+ return /* @__PURE__ */ Q(Ae, { children: [
1290
+ /* @__PURE__ */ Q(Ae, { children: [/* @__PURE__ */ Z(le, {
1290
1291
  level: 4,
1291
1292
  children: Mt(e, n)
1292
- }), /* @__PURE__ */ X(V, {
1293
+ }), /* @__PURE__ */ Z(B, {
1293
1294
  tone: "muted",
1294
1295
  size: "sm",
1295
1296
  children: t.length > 0 ? c.itemsCount(t.length) : o
1296
1297
  })] }),
1297
- /* @__PURE__ */ X(Gt, {
1298
+ /* @__PURE__ */ Z(Gt, {
1298
1299
  events: t,
1299
1300
  locale: n,
1300
1301
  currentDate: e,
1301
1302
  emptyStateText: o,
1302
1303
  renderEventItem: s
1303
1304
  }),
1304
- a && /* @__PURE__ */ X(Kt, {
1305
+ a && /* @__PURE__ */ Z(Kt, {
1305
1306
  date: e,
1306
1307
  events: t,
1307
1308
  locale: n,
@@ -1311,11 +1312,11 @@ function Bt({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHo
1311
1312
  ] });
1312
1313
  }
1313
1314
  function Vt({ filters: e, activeFilterIds: t, onToggle: n }) {
1314
- return e.length ? /* @__PURE__ */ X("div", {
1315
+ return e.length ? /* @__PURE__ */ Z("div", {
1315
1316
  className: "calendar filters",
1316
1317
  children: e.map((e) => {
1317
1318
  let r = t.includes(e.id);
1318
- return /* @__PURE__ */ X(z, {
1319
+ return /* @__PURE__ */ Z(ce, {
1319
1320
  type: "button",
1320
1321
  size: "sm",
1321
1322
  variant: "outlined",
@@ -1329,11 +1330,11 @@ function Vt({ filters: e, activeFilterIds: t, onToggle: n }) {
1329
1330
  }) : null;
1330
1331
  }
1331
1332
  function Ht({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInteract: i, onDayHover: a, onDayLeave: o, dayBadge: s, renderDayCell: c }) {
1332
- let l = Tt($(/* @__PURE__ */ new Date()));
1333
- return /* @__PURE__ */ X("div", {
1333
+ let l = Tt(Ct(/* @__PURE__ */ new Date()));
1334
+ return /* @__PURE__ */ Z("div", {
1334
1335
  className: "calendar week",
1335
1336
  children: e.map((e) => {
1336
- let u = Tt(e), d = t.get(u) ?? [], f = s?.(e, d) ?? (d.length > 0 ? /* @__PURE__ */ X(B, {
1337
+ let u = Tt(e), d = t.get(u) ?? [], f = s?.(e, d) ?? (d.length > 0 ? /* @__PURE__ */ Z(z, {
1337
1338
  size: "sm",
1338
1339
  children: d.length
1339
1340
  }) : null), p = It(d), m = !!(n && Tt(n) === u), h = {
@@ -1344,9 +1345,9 @@ function Ht({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInte
1344
1345
  isSelected: m,
1345
1346
  isOutsideMonth: !1
1346
1347
  };
1347
- return /* @__PURE__ */ X("div", {
1348
+ return /* @__PURE__ */ Z("div", {
1348
1349
  className: "calendar week column",
1349
- children: /* @__PURE__ */ X(Ut, {
1350
+ children: /* @__PURE__ */ Z(Ut, {
1350
1351
  date: e,
1351
1352
  events: d,
1352
1353
  badge: f,
@@ -1364,74 +1365,74 @@ function Ht({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInte
1364
1365
  });
1365
1366
  }
1366
1367
  function Ut({ date: e, events: t = [], badge: n, markers: r, isToday: i = !1, isSelected: a = !1, isOutsideMonth: o = !1, className: s, children: c, ...l }) {
1367
- return /* @__PURE__ */ X("button", {
1368
+ return /* @__PURE__ */ Z("button", {
1368
1369
  type: "button",
1369
1370
  className: I("calendar day cell", i && "today", a && "selected", o && "outside-month", s),
1370
1371
  ...l,
1371
- children: c ?? /* @__PURE__ */ Z(Re, { children: [/* @__PURE__ */ Z("div", {
1372
+ children: c ?? /* @__PURE__ */ Q(Le, { children: [/* @__PURE__ */ Q("div", {
1372
1373
  className: "day header",
1373
- children: [/* @__PURE__ */ X("span", {
1374
+ children: [/* @__PURE__ */ Z("span", {
1374
1375
  className: "day number",
1375
1376
  children: e.getDate()
1376
- }), /* @__PURE__ */ X("div", {
1377
+ }), /* @__PURE__ */ Z("div", {
1377
1378
  className: "day meta",
1378
1379
  children: n
1379
1380
  })]
1380
- }), /* @__PURE__ */ X("div", {
1381
+ }), /* @__PURE__ */ Z("div", {
1381
1382
  className: "markers",
1382
1383
  children: r ?? It(t)
1383
1384
  })] })
1384
1385
  });
1385
1386
  }
1386
1387
  function Wt({ event: e, locale: t, className: n, currentDate: r, ...i }) {
1387
- let a = de(t), o = ke(), s = e.status === "cancelled" ? "error" : e.status === "done" ? "success" : e.status === "active" ? "info" : "warning";
1388
- return /* @__PURE__ */ Z("div", {
1388
+ let a = me(t), o = Oe(), s = e.status === "cancelled" ? "error" : e.status === "done" ? "success" : e.status === "active" ? "info" : "warning";
1389
+ return /* @__PURE__ */ Q("div", {
1389
1390
  className: I("calendar event item", n),
1390
1391
  ...i,
1391
- children: [/* @__PURE__ */ X("div", {
1392
+ children: [/* @__PURE__ */ Z("div", {
1392
1393
  className: "event time",
1393
1394
  children: Pt(e, o)
1394
- }), /* @__PURE__ */ Z("div", {
1395
+ }), /* @__PURE__ */ Q("div", {
1395
1396
  className: "event content",
1396
1397
  children: [
1397
- /* @__PURE__ */ Z("div", {
1398
+ /* @__PURE__ */ Q("div", {
1398
1399
  className: "event title row",
1399
- children: [/* @__PURE__ */ X(ce, {
1400
+ children: [/* @__PURE__ */ Z(le, {
1400
1401
  level: 5,
1401
1402
  children: e.title
1402
- }), e.status && /* @__PURE__ */ X(B, {
1403
+ }), e.status && /* @__PURE__ */ Z(z, {
1403
1404
  color: s,
1404
1405
  size: "sm",
1405
1406
  children: e.status
1406
1407
  })]
1407
1408
  }),
1408
- e.description && /* @__PURE__ */ X(V, {
1409
+ e.description && /* @__PURE__ */ Z(B, {
1409
1410
  size: "sm",
1410
1411
  tone: "muted",
1411
1412
  children: e.description
1412
1413
  }),
1413
- /* @__PURE__ */ Z("div", {
1414
+ /* @__PURE__ */ Q("div", {
1414
1415
  className: "event details",
1415
1416
  children: [
1416
- e.type && /* @__PURE__ */ X(B, {
1417
+ e.type && /* @__PURE__ */ Z(z, {
1417
1418
  color: "neutral",
1418
1419
  size: "sm",
1419
1420
  children: e.type
1420
1421
  }),
1421
- e.badgeLabel && /* @__PURE__ */ X(B, {
1422
+ e.badgeLabel && /* @__PURE__ */ Z(z, {
1422
1423
  size: "sm",
1423
1424
  children: e.badgeLabel
1424
1425
  }),
1425
- e.user && /* @__PURE__ */ Z("span", {
1426
+ e.user && /* @__PURE__ */ Q("span", {
1426
1427
  className: "event user",
1427
- children: [/* @__PURE__ */ X(W, {
1428
+ children: [/* @__PURE__ */ Z(G, {
1428
1429
  size: "sm",
1429
1430
  src: e.user.avatar,
1430
1431
  name: e.user.name,
1431
1432
  backgroundColor: e.user.color
1432
1433
  }), e.user.name]
1433
1434
  }),
1434
- !e.startTime && !e.endTime && r && /* @__PURE__ */ X(V, {
1435
+ !e.startTime && !e.endTime && r && /* @__PURE__ */ Z(B, {
1435
1436
  size: "sm",
1436
1437
  tone: "muted",
1437
1438
  children: Mt(r, a)
@@ -1443,16 +1444,16 @@ function Wt({ event: e, locale: t, className: n, currentDate: r, ...i }) {
1443
1444
  });
1444
1445
  }
1445
1446
  function Gt({ events: e, locale: t, currentDate: n, emptyStateText: r, renderEventItem: i, className: a, ...o }) {
1446
- let s = de(t), c = ke();
1447
- return e.length ? /* @__PURE__ */ X("div", {
1447
+ let s = me(t), c = Oe();
1448
+ return e.length ? /* @__PURE__ */ Z("div", {
1448
1449
  className: I("calendar event list", a),
1449
1450
  ...o,
1450
- children: /* @__PURE__ */ X(je, { children: kt(e).map((e) => i ? /* @__PURE__ */ X("div", { children: i(e) }, e.id) : /* @__PURE__ */ X(Wt, {
1451
+ children: /* @__PURE__ */ Z(Ae, { children: kt(e).map((e) => i ? /* @__PURE__ */ Z("div", { children: i(e) }, e.id) : /* @__PURE__ */ Z(Wt, {
1451
1452
  event: e,
1452
1453
  locale: s,
1453
1454
  currentDate: n
1454
1455
  }, e.id)) })
1455
- }) : /* @__PURE__ */ X(V, {
1456
+ }) : /* @__PURE__ */ Z(B, {
1456
1457
  size: "sm",
1457
1458
  tone: "muted",
1458
1459
  className: I("calendar event list", a),
@@ -1461,38 +1462,38 @@ function Gt({ events: e, locale: t, currentDate: n, emptyStateText: r, renderEve
1461
1462
  });
1462
1463
  }
1463
1464
  function Kt({ date: e, events: t, locale: n, startHour: r = 6, endHour: i = 22, emptyStateText: a, className: o, ...s }) {
1464
- de(n);
1465
- let c = ke(), l = Array.from({ length: Math.max(i - r + 1, 1) }, (e, t) => r + t);
1466
- return /* @__PURE__ */ X("div", {
1465
+ me(n);
1466
+ let c = Oe(), l = Array.from({ length: Math.max(i - r + 1, 1) }, (e, t) => r + t);
1467
+ return /* @__PURE__ */ Z("div", {
1467
1468
  className: I("calendar timeline", o),
1468
1469
  ...s,
1469
- children: /* @__PURE__ */ Z(je, { children: [/* @__PURE__ */ X(ce, {
1470
+ children: /* @__PURE__ */ Q(Ae, { children: [/* @__PURE__ */ Z(le, {
1470
1471
  level: 5,
1471
1472
  children: c.timelineTitle
1472
- }), /* @__PURE__ */ X("div", {
1473
+ }), /* @__PURE__ */ Z("div", {
1473
1474
  className: "timeline slots",
1474
1475
  children: l.map((n) => {
1475
1476
  let r = t.filter((e) => e.startTime ? Number(e.startTime.split(":")[0]) === n : !1);
1476
- return /* @__PURE__ */ Z("div", {
1477
+ return /* @__PURE__ */ Q("div", {
1477
1478
  className: I("timeline slot", Ft(e, n)),
1478
1479
  children: [
1479
- /* @__PURE__ */ X("div", {
1480
+ /* @__PURE__ */ Z("div", {
1480
1481
  className: "slot time",
1481
1482
  children: `${String(n).padStart(2, "0")}:00`
1482
1483
  }),
1483
- /* @__PURE__ */ X("div", { className: "slot line" }),
1484
- /* @__PURE__ */ X("div", {
1484
+ /* @__PURE__ */ Z("div", { className: "slot line" }),
1485
+ /* @__PURE__ */ Z("div", {
1485
1486
  className: "slot content",
1486
- children: r.length > 0 ? /* @__PURE__ */ X(je, { children: r.map((e) => /* @__PURE__ */ Z("div", {
1487
+ children: r.length > 0 ? /* @__PURE__ */ Z(Ae, { children: r.map((e) => /* @__PURE__ */ Q("div", {
1487
1488
  className: "slot event",
1488
- children: [/* @__PURE__ */ X("span", {
1489
+ children: [/* @__PURE__ */ Z("span", {
1489
1490
  className: "slot event dot",
1490
1491
  style: { background: e.color ?? jt(e.status) }
1491
- }), /* @__PURE__ */ X(V, {
1492
+ }), /* @__PURE__ */ Z(B, {
1492
1493
  size: "sm",
1493
1494
  children: e.title
1494
1495
  })]
1495
- }, e.id)) }) : /* @__PURE__ */ X(V, {
1496
+ }, e.id)) }) : /* @__PURE__ */ Z(B, {
1496
1497
  size: "sm",
1497
1498
  tone: "muted",
1498
1499
  children: a ?? c.timelineEmptyState
@@ -1505,19 +1506,19 @@ function Kt({ date: e, events: t, locale: n, startHour: r = 6, endHour: i = 22,
1505
1506
  });
1506
1507
  }
1507
1508
  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 }) {
1508
- let h = de(s), g = ke();
1509
- return /* @__PURE__ */ X(R, {
1509
+ let h = me(s), g = Oe();
1510
+ return /* @__PURE__ */ Z(R, {
1510
1511
  open: e,
1511
1512
  anchorRef: t,
1512
1513
  onClose: n,
1513
1514
  placement: "bottom-start",
1514
1515
  className: I("calendar popover", p),
1515
1516
  style: m,
1516
- children: /* @__PURE__ */ X(ue, {
1517
+ children: /* @__PURE__ */ Z(de, {
1517
1518
  className: "calendar event popover",
1518
1519
  onPointerEnter: r,
1519
1520
  onPointerLeave: i,
1520
- children: /* @__PURE__ */ X(H, { children: /* @__PURE__ */ X(Bt, {
1521
+ children: /* @__PURE__ */ Z(V, { children: /* @__PURE__ */ Z(Bt, {
1521
1522
  date: a,
1522
1523
  events: o,
1523
1524
  locale: h,
@@ -1531,158 +1532,158 @@ function qt({ open: e, anchorRef: t, onClose: n, onPointerEnter: r, onPointerLea
1531
1532
  });
1532
1533
  }
1533
1534
  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 }) {
1534
- let k = de(i), A = Oe(), j = ke(), M = $(/* @__PURE__ */ new Date()), [N, P] = Y($(t ?? e ?? M)), [ee, te] = Y(s), [ne, re] = Y(wt(d)), [ie, ae] = Y(w), [F, oe] = Y(null), [L, R] = Y(!1), [se, le] = Y(!1), ue = J(null), H = J(null), fe = e !== void 0 && typeof n == "function", U = $(fe ? e ?? N : N), W = o ?? ee, me = wt(u) ?? ne, he = C ?? ie;
1535
- Le(() => {
1536
- let e = window.matchMedia("(max-width: 768px)"), t = () => le(e.matches);
1535
+ let k = me(i), A = De(), j = Oe(), M = Ct(/* @__PURE__ */ new Date()), [N, P] = X(Ct(t ?? e ?? M)), [ee, te] = X(s), [ne, re] = X(wt(d)), [ie, ae] = X(w), [F, oe] = X(null), [L, R] = X(!1), [se, ue] = X(!1), de = Y(null), V = Y(null), pe = e !== void 0 && typeof n == "function", H = Ct(pe ? e ?? N : N), U = o ?? ee, W = wt(u) ?? ne, G = C ?? ie;
1536
+ Ie(() => {
1537
+ let e = window.matchMedia("(max-width: 768px)"), t = () => ue(e.matches);
1537
1538
  return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
1538
- }, []), Le(() => {
1539
- fe && e && P($(e));
1540
- }, [fe, e]), Le(() => {
1539
+ }, []), Ie(() => {
1540
+ pe && e && P(Ct(e));
1541
+ }, [pe, e]), Ie(() => {
1541
1542
  o && te(o);
1542
- }, [o]), Le(() => {
1543
+ }, [o]), Ie(() => {
1543
1544
  u !== void 0 && re(wt(u));
1544
- }, [u]), Le(() => () => {
1545
- H.current && window.clearTimeout(H.current);
1545
+ }, [u]), Ie(() => () => {
1546
+ V.current && window.clearTimeout(V.current);
1546
1547
  }, []);
1547
- let ge = q(() => Lt(r, S, he), [
1548
+ let he = J(() => Lt(r, S, G), [
1548
1549
  r,
1549
1550
  S,
1550
- he
1551
- ]), _e = q(() => {
1551
+ G
1552
+ ]), ge = J(() => {
1552
1553
  let e = /* @__PURE__ */ new Map();
1553
- return ge.forEach((t) => {
1554
+ return he.forEach((t) => {
1554
1555
  let n = Et(t);
1555
1556
  if (!n) return;
1556
1557
  let r = Tt(n), i = e.get(r) ?? [];
1557
1558
  i.push(t), e.set(r, i);
1558
1559
  }), e;
1559
- }, [ge]), ve = q(() => {
1560
- if (W === "week") {
1561
- let e = Ot(me ?? U, a);
1560
+ }, [he]), _e = J(() => {
1561
+ if (U === "week") {
1562
+ let e = Ot(W ?? H, a);
1562
1563
  return Array.from({ length: 7 }, (t, n) => Dt(e, n));
1563
1564
  }
1564
- return At(U, a);
1565
+ return At(H, a);
1565
1566
  }, [
1566
- W,
1567
- me,
1568
1567
  U,
1568
+ W,
1569
+ H,
1569
1570
  a
1570
- ]), ye = _ === "auto" ? se ? "modal" : "popover" : _, be = F ? _e.get(Tt(F)) ?? [] : [], xe = c.includes("month"), Se = c.includes("week"), Ce = (e) => {
1571
- let t = $(e);
1571
+ ]), ve = _ === "auto" ? se ? "modal" : "popover" : _, ye = F ? ge.get(Tt(F)) ?? [] : [], be = c.includes("month"), xe = c.includes("week"), Se = (e) => {
1572
+ let t = Ct(e);
1572
1573
  P(t), n?.(t);
1573
- }, we = (e) => {
1574
- if (W === "week") {
1575
- let t = Dt(me ?? U, e * 7);
1576
- Ce(t), re(t), oe(t), R(!1);
1574
+ }, Ce = (e) => {
1575
+ if (U === "week") {
1576
+ let t = Dt(W ?? H, e * 7);
1577
+ Se(t), re(t), oe(t), R(!1);
1577
1578
  return;
1578
1579
  }
1579
- Ce(new Date(U.getFullYear(), U.getMonth() + e, 1)), R(!1), oe(null);
1580
- }, Te = (e) => {
1580
+ Se(new Date(H.getFullYear(), H.getMonth() + e, 1)), R(!1), oe(null);
1581
+ }, we = (e) => {
1581
1582
  te(e), l?.(e);
1582
- }, G = (e, t) => {
1583
- let n = $(e);
1583
+ }, K = (e, t) => {
1584
+ let n = Ct(e);
1584
1585
  re(n), f?.(n, t);
1586
+ }, Te = () => {
1587
+ V.current &&= (window.clearTimeout(V.current), null);
1585
1588
  }, Ee = () => {
1586
- H.current &&= (window.clearTimeout(H.current), null);
1587
- }, De = () => {
1588
- Ee(), H.current = window.setTimeout(() => {
1589
+ Te(), V.current = window.setTimeout(() => {
1589
1590
  R(!1);
1590
1591
  }, 180);
1591
- }, Ae = (e, t, n) => {
1592
- ue.current = t, oe(e), G(e, n), R(!0);
1592
+ }, ke = (e, t, n) => {
1593
+ de.current = t, oe(e), K(e, n), R(!0);
1594
+ }, je = (e, t, n) => {
1595
+ Te(), ke(e, t, n), U === "month" && e.getMonth() !== H.getMonth() && Se(new Date(e.getFullYear(), e.getMonth(), 1));
1593
1596
  }, Me = (e, t, n) => {
1594
- Ee(), Ae(e, t, n), W === "month" && e.getMonth() !== U.getMonth() && Ce(new Date(e.getFullYear(), e.getMonth(), 1));
1595
- }, Ne = (e, t, n) => {
1596
- g !== "hover" || ye !== "popover" || (Ee(), Ae(e, t, n));
1597
- }, Pe = (e) => {
1598
- let t = he.includes(e) ? he.filter((t) => t !== e) : [...he, e];
1597
+ g !== "hover" || ve !== "popover" || (Te(), ke(e, t, n));
1598
+ }, Ne = (e) => {
1599
+ let t = G.includes(e) ? G.filter((t) => t !== e) : [...G, e];
1599
1600
  ae(t), T?.(t);
1600
- }, Fe = Ot(W === "week" ? me ?? U : U, a);
1601
- return /* @__PURE__ */ Z("div", {
1601
+ }, Pe = Ot(U === "week" ? W ?? H : H, a);
1602
+ return /* @__PURE__ */ Q("div", {
1602
1603
  className: I("calendar board", E && "full-width", D),
1603
1604
  ...O,
1604
1605
  children: [
1605
- /* @__PURE__ */ Z("div", {
1606
+ /* @__PURE__ */ Q("div", {
1606
1607
  className: "calendar header",
1607
- children: [/* @__PURE__ */ Z(je, { children: [/* @__PURE__ */ X(ce, {
1608
+ children: [/* @__PURE__ */ Q(Ae, { children: [/* @__PURE__ */ Z(le, {
1608
1609
  level: 3,
1609
- children: Rt(U, W, k, a)
1610
- }), /* @__PURE__ */ X(V, {
1610
+ children: Rt(H, U, k, a)
1611
+ }), /* @__PURE__ */ Z(B, {
1611
1612
  size: "sm",
1612
1613
  tone: "muted",
1613
- children: zt(W, j)
1614
- })] }), /* @__PURE__ */ Z(je, {
1614
+ children: zt(U, j)
1615
+ })] }), /* @__PURE__ */ Q(Ae, {
1615
1616
  align: "end",
1616
- children: [/* @__PURE__ */ Z("div", {
1617
+ children: [/* @__PURE__ */ Q("div", {
1617
1618
  className: "calendar actions",
1618
- children: [/* @__PURE__ */ X(z, {
1619
+ children: [/* @__PURE__ */ Z(ce, {
1619
1620
  type: "button",
1620
1621
  size: "sm",
1621
1622
  variant: "outlined",
1622
1623
  color: "neutral",
1623
- onClick: () => we(-1),
1624
- children: W === "week" ? j.previousWeek : A.previousMonth
1625
- }), /* @__PURE__ */ X(z, {
1624
+ onClick: () => Ce(-1),
1625
+ children: U === "week" ? j.previousWeek : A.previousMonth
1626
+ }), /* @__PURE__ */ Z(ce, {
1626
1627
  type: "button",
1627
1628
  size: "sm",
1628
1629
  variant: "outlined",
1629
1630
  color: "neutral",
1630
- onClick: () => we(1),
1631
- children: W === "week" ? j.nextWeek : A.nextMonth
1631
+ onClick: () => Ce(1),
1632
+ children: U === "week" ? j.nextWeek : A.nextMonth
1632
1633
  })]
1633
- }), (xe || Se) && /* @__PURE__ */ Z("div", {
1634
+ }), (be || xe) && /* @__PURE__ */ Q("div", {
1634
1635
  className: "calendar views",
1635
- children: [xe && /* @__PURE__ */ X(z, {
1636
+ children: [be && /* @__PURE__ */ Z(ce, {
1636
1637
  type: "button",
1637
1638
  size: "sm",
1638
1639
  variant: "outlined",
1639
- color: W === "month" ? "primary" : "neutral",
1640
- active: W === "month",
1641
- onClick: () => Te("month"),
1640
+ color: U === "month" ? "primary" : "neutral",
1641
+ active: U === "month",
1642
+ onClick: () => we("month"),
1642
1643
  children: j.monthView
1643
- }), Se && /* @__PURE__ */ X(z, {
1644
+ }), xe && /* @__PURE__ */ Z(ce, {
1644
1645
  type: "button",
1645
1646
  size: "sm",
1646
1647
  variant: "outlined",
1647
- color: W === "week" ? "primary" : "neutral",
1648
- active: W === "week",
1649
- onClick: () => Te("week"),
1648
+ color: U === "week" ? "primary" : "neutral",
1649
+ active: U === "week",
1650
+ onClick: () => we("week"),
1650
1651
  children: j.weekView
1651
1652
  })]
1652
1653
  })]
1653
1654
  })]
1654
1655
  }),
1655
- /* @__PURE__ */ X(Vt, {
1656
+ /* @__PURE__ */ Z(Vt, {
1656
1657
  filters: S,
1657
- activeFilterIds: he,
1658
- onToggle: Pe
1658
+ activeFilterIds: G,
1659
+ onToggle: Ne
1659
1660
  }),
1660
- /* @__PURE__ */ X("div", {
1661
+ /* @__PURE__ */ Z("div", {
1661
1662
  className: "calendar days",
1662
- children: Array.from({ length: 7 }, (e, t) => Dt(Fe, t)).map((e) => /* @__PURE__ */ X("div", {
1663
+ children: Array.from({ length: 7 }, (e, t) => Dt(Pe, t)).map((e) => /* @__PURE__ */ Z("div", {
1663
1664
  className: "calendar day",
1664
1665
  children: new Intl.DateTimeFormat(k, { weekday: "short" }).format(e)
1665
1666
  }, Tt(e)))
1666
1667
  }),
1667
- W === "week" ? /* @__PURE__ */ X(Ht, {
1668
- days: ve,
1669
- eventsByDay: _e,
1670
- selectedDate: me,
1668
+ U === "week" ? /* @__PURE__ */ Z(Ht, {
1669
+ days: _e,
1670
+ eventsByDay: ge,
1671
+ selectedDate: W,
1671
1672
  activeDate: F,
1672
- onDayInteract: Me,
1673
- onDayHover: Ne,
1673
+ onDayInteract: je,
1674
+ onDayHover: Me,
1674
1675
  onDayLeave: () => {
1675
- g === "hover" && ye === "popover" && De();
1676
+ g === "hover" && ve === "popover" && Ee();
1676
1677
  },
1677
1678
  dayBadge: p,
1678
1679
  renderDayCell: m
1679
- }) : /* @__PURE__ */ X("div", {
1680
+ }) : /* @__PURE__ */ Z("div", {
1680
1681
  className: "calendar grid",
1681
- children: ve.map((e) => {
1682
- let t = Tt(e), n = _e.get(t) ?? [], r = p?.(e, n) ?? (n.length > 0 ? /* @__PURE__ */ X(B, {
1682
+ children: _e.map((e) => {
1683
+ let t = Tt(e), n = ge.get(t) ?? [], r = p?.(e, n) ?? (n.length > 0 ? /* @__PURE__ */ Z(z, {
1683
1684
  size: "sm",
1684
1685
  children: n.length
1685
- }) : null), i = t === Tt(M), a = !!(me && t === Tt(me)), o = e.getMonth() !== U.getMonth(), s = It(n), c = {
1686
+ }) : null), i = t === Tt(M), a = !!(W && t === Tt(W)), o = e.getMonth() !== H.getMonth(), s = It(n), c = {
1686
1687
  date: e,
1687
1688
  events: n,
1688
1689
  badge: r,
@@ -1690,7 +1691,7 @@ function Jt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], local
1690
1691
  isSelected: a,
1691
1692
  isOutsideMonth: o
1692
1693
  };
1693
- return /* @__PURE__ */ X(Ut, {
1694
+ return /* @__PURE__ */ Z(Ut, {
1694
1695
  date: e,
1695
1696
  events: n,
1696
1697
  badge: r,
@@ -1698,38 +1699,38 @@ function Jt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], local
1698
1699
  isToday: i,
1699
1700
  isSelected: a || !!(F && t === Tt(F)),
1700
1701
  isOutsideMonth: o,
1701
- onClick: (t) => Me(e, t.currentTarget, n),
1702
- onMouseEnter: (t) => Ne(e, t.currentTarget, n),
1702
+ onClick: (t) => je(e, t.currentTarget, n),
1703
+ onMouseEnter: (t) => Me(e, t.currentTarget, n),
1703
1704
  onMouseLeave: () => {
1704
- g === "hover" && ye === "popover" && De();
1705
+ g === "hover" && ve === "popover" && Ee();
1705
1706
  },
1706
1707
  children: m ? m(e, c) : void 0
1707
1708
  }, t);
1708
1709
  })
1709
1710
  }),
1710
- ye === "popover" ? /* @__PURE__ */ X(qt, {
1711
- open: L && !!F && !!ue.current,
1712
- anchorRef: ue,
1711
+ ve === "popover" ? /* @__PURE__ */ Z(qt, {
1712
+ open: L && !!F && !!de.current,
1713
+ anchorRef: de,
1713
1714
  onClose: () => R(!1),
1714
- onPointerEnter: () => Ee(),
1715
- onPointerLeave: () => De(),
1715
+ onPointerEnter: () => Te(),
1716
+ onPointerLeave: () => Ee(),
1716
1717
  date: F,
1717
- events: be,
1718
+ events: ye,
1718
1719
  locale: k,
1719
1720
  timelineStartHour: y,
1720
1721
  timelineEndHour: b,
1721
1722
  showTimeline: v,
1722
1723
  emptyStateText: x ?? j.emptyStateText,
1723
1724
  renderEventItem: h
1724
- }) : /* @__PURE__ */ X(pe, {
1725
+ }) : /* @__PURE__ */ Z(fe, {
1725
1726
  open: L && !!F,
1726
1727
  onClose: () => R(!1),
1727
1728
  title: F ? Mt(F, k) : void 0,
1728
- description: F ? j.itemsCount(be.length) : void 0,
1729
+ description: F ? j.itemsCount(ye.length) : void 0,
1729
1730
  size: "lg",
1730
- children: /* @__PURE__ */ X(Bt, {
1731
+ children: /* @__PURE__ */ Z(Bt, {
1731
1732
  date: F,
1732
- events: be,
1733
+ events: ye,
1733
1734
  locale: k,
1734
1735
  timelineStartHour: y,
1735
1736
  timelineEndHour: b,
@@ -1774,15 +1775,15 @@ function $t(e) {
1774
1775
  //#endregion
1775
1776
  //#region src/components/data/MChart/parts/ChartGrid.tsx
1776
1777
  function en({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines: a }) {
1777
- return /* @__PURE__ */ Z("g", {
1778
+ return /* @__PURE__ */ Q("g", {
1778
1779
  className: "chart-grid",
1779
- children: [i.map((t, r) => /* @__PURE__ */ X("line", {
1780
+ children: [i.map((t, r) => /* @__PURE__ */ Z("line", {
1780
1781
  x1: e,
1781
1782
  y1: t,
1782
1783
  x2: e + n,
1783
1784
  y2: t,
1784
1785
  className: "chart-grid-line"
1785
- }, `h${r}`)), a?.map((e, n) => /* @__PURE__ */ X("line", {
1786
+ }, `h${r}`)), a?.map((e, n) => /* @__PURE__ */ Z("line", {
1786
1787
  x1: e,
1787
1788
  y1: t,
1788
1789
  x2: e,
@@ -1795,23 +1796,23 @@ function en({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines
1795
1796
  //#region src/components/data/MChart/parts/ChartAxis.tsx
1796
1797
  function tn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1797
1798
  let o = e === "x";
1798
- return /* @__PURE__ */ Z("g", {
1799
+ return /* @__PURE__ */ Q("g", {
1799
1800
  className: `chart-axis chart-axis-${e}`,
1800
1801
  children: [
1801
- /* @__PURE__ */ X("line", {
1802
+ /* @__PURE__ */ Z("line", {
1802
1803
  x1: t,
1803
1804
  y1: n,
1804
1805
  x2: o ? t + r : t,
1805
1806
  y2: o ? n : n - r,
1806
1807
  className: "chart-axis-line"
1807
1808
  }),
1808
- i.map((e, r) => /* @__PURE__ */ X("g", { children: o ? /* @__PURE__ */ X("text", {
1809
+ i.map((e, r) => /* @__PURE__ */ Z("g", { children: o ? /* @__PURE__ */ Z("text", {
1809
1810
  x: e.position,
1810
1811
  y: n + 16,
1811
1812
  textAnchor: "middle",
1812
1813
  className: "chart-axis-label",
1813
1814
  children: e.label
1814
- }) : /* @__PURE__ */ X("text", {
1815
+ }) : /* @__PURE__ */ Z("text", {
1815
1816
  x: t - 8,
1816
1817
  y: e.position,
1817
1818
  textAnchor: "end",
@@ -1819,13 +1820,13 @@ function tn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1819
1820
  className: "chart-axis-label",
1820
1821
  children: e.label
1821
1822
  }) }, r)),
1822
- a && (o ? /* @__PURE__ */ X("text", {
1823
+ a && (o ? /* @__PURE__ */ Z("text", {
1823
1824
  x: t + r / 2,
1824
1825
  y: n + 36,
1825
1826
  textAnchor: "middle",
1826
1827
  className: "chart-axis-title",
1827
1828
  children: a
1828
- }) : /* @__PURE__ */ X("text", {
1829
+ }) : /* @__PURE__ */ Z("text", {
1829
1830
  x: t - 40,
1830
1831
  y: n - r / 2,
1831
1832
  textAnchor: "middle",
@@ -1840,8 +1841,8 @@ function tn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1840
1841
  //#endregion
1841
1842
  //#region src/components/data/MChart/charts/MLineChart.tsx
1842
1843
  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 }) {
1843
- let [h, g] = Y(null), _ = n - i.left - i.right, v = r - i.top - i.bottom, { yMin: y, yMax: b, yTicks: x, xLabels: S, seriesPoints: C } = q(() => {
1844
- let t = e.map((e) => e.data), [n, r] = Se(t), i = o?.min ?? be(n), s = o?.max ?? ye(r, n), c = ve(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 = G([0, Math.max(l - 1, 1)], [0, _]), f = G([i, s], [v, 0]);
1844
+ 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(() => {
1845
+ let t = e.map((e) => e.data), [n, r] = xe(t), i = o?.min ?? ye(n), s = o?.max ?? ve(r, n), c = _e(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]);
1845
1846
  return {
1846
1847
  yMin: i,
1847
1848
  yMax: s,
@@ -1858,7 +1859,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1858
1859
  v,
1859
1860
  a,
1860
1861
  o
1861
- ]), w = G([y, b], [v, 0]), T = G([0, Math.max(S.length - 1, 1)], [0, _]), E = K((r) => {
1862
+ ]), w = K([y, b], [v, 0]), T = K([0, Math.max(S.length - 1, 1)], [0, _]), E = q((r) => {
1862
1863
  let a = r.currentTarget.closest("svg");
1863
1864
  if (!a) return;
1864
1865
  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));
@@ -1880,7 +1881,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1880
1881
  i.left,
1881
1882
  n,
1882
1883
  p
1883
- ]), D = K(() => {
1884
+ ]), D = q(() => {
1884
1885
  g(null), p(null);
1885
1886
  }, [p]), O = x.map((e) => i.top + w(e)), k = S.map((e, t) => i.left + T(t)), A = x.map((e) => ({
1886
1887
  position: i.top + w(e),
@@ -1889,8 +1890,8 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1889
1890
  position: i.left + T(t),
1890
1891
  label: e
1891
1892
  }));
1892
- return /* @__PURE__ */ Z("g", { children: [
1893
- s && /* @__PURE__ */ X(en, {
1893
+ return /* @__PURE__ */ Q("g", { children: [
1894
+ s && /* @__PURE__ */ Z(en, {
1894
1895
  x: i.left,
1895
1896
  y: i.top,
1896
1897
  width: _,
@@ -1898,7 +1899,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1898
1899
  horizontalLines: O,
1899
1900
  verticalLines: k
1900
1901
  }),
1901
- l && /* @__PURE__ */ X(tn, {
1902
+ l && /* @__PURE__ */ Z(tn, {
1902
1903
  type: "y",
1903
1904
  x: i.left,
1904
1905
  y: i.top + v,
@@ -1906,7 +1907,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1906
1907
  ticks: A,
1907
1908
  title: o?.title
1908
1909
  }),
1909
- c && /* @__PURE__ */ X(tn, {
1910
+ c && /* @__PURE__ */ Z(tn, {
1910
1911
  type: "x",
1911
1912
  x: i.left,
1912
1913
  y: i.top + v,
@@ -1914,11 +1915,11 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1914
1915
  ticks: j,
1915
1916
  title: a?.title
1916
1917
  }),
1917
- /* @__PURE__ */ Z("g", {
1918
+ /* @__PURE__ */ Q("g", {
1918
1919
  onMouseMove: E,
1919
1920
  onMouseLeave: D,
1920
1921
  children: [
1921
- /* @__PURE__ */ X("rect", {
1922
+ /* @__PURE__ */ Z("rect", {
1922
1923
  x: i.left,
1923
1924
  y: i.top,
1924
1925
  width: _,
@@ -1926,17 +1927,17 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1926
1927
  fill: "transparent"
1927
1928
  }),
1928
1929
  C.map((n, r) => {
1929
- let a = e[r].color ?? t[r % t.length], o = u ? Te(n.map((e) => ({
1930
+ let a = e[r].color ?? t[r % t.length], o = u ? we(n.map((e) => ({
1930
1931
  x: e.x + i.left,
1931
1932
  y: e.y + i.top
1932
- }))) : xe(n.map((e) => ({
1933
+ }))) : be(n.map((e) => ({
1933
1934
  x: e.x + i.left,
1934
1935
  y: e.y + i.top
1935
1936
  })));
1936
- return /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("path", {
1937
+ return /* @__PURE__ */ Q("g", { children: [/* @__PURE__ */ Z("path", {
1937
1938
  className: `chart-line ${a} ${d ? "animated" : ""}`,
1938
1939
  d: o
1939
- }), n.map((t, n) => /* @__PURE__ */ X("circle", {
1940
+ }), n.map((t, n) => /* @__PURE__ */ Z("circle", {
1940
1941
  className: `chart-dot ${a} ${h === n ? "active" : ""}`,
1941
1942
  cx: t.x + i.left,
1942
1943
  cy: t.y + i.top,
@@ -1945,7 +1946,7 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1945
1946
  style: { cursor: m ? "pointer" : void 0 }
1946
1947
  }, n))] }, r);
1947
1948
  }),
1948
- h !== null && /* @__PURE__ */ X("line", {
1949
+ h !== null && /* @__PURE__ */ Z("line", {
1949
1950
  className: "chart-crosshair",
1950
1951
  x1: i.left + T(h),
1951
1952
  y1: i.top,
@@ -1959,14 +1960,14 @@ function nn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1959
1960
  //#endregion
1960
1961
  //#region src/components/data/MChart/charts/MBarChart.tsx
1961
1962
  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 }) {
1962
- let [h, g] = Y(null), _ = n - i.left - i.right, v = r - i.top - i.bottom, { yMin: y, yMax: b, yTicks: x, xLabels: S, maxLen: C } = q(() => {
1963
+ 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(() => {
1963
1964
  let t = e.map((e) => e.data), n = Math.max(...t.map((e) => e.length), 1), r, i;
1964
- u ? [r, i] = Ee(t) : [r, i] = Se(t);
1965
- let s = o?.min ?? be(r), c = o?.max ?? ye(i, r);
1965
+ u ? [r, i] = Te(t) : [r, i] = xe(t);
1966
+ let s = o?.min ?? ye(r), c = o?.max ?? ve(i, r);
1966
1967
  return {
1967
1968
  yMin: s,
1968
1969
  yMax: c,
1969
- yTicks: ve(s, c, o?.ticks ?? 5),
1970
+ yTicks: _e(s, c, o?.ticks ?? 5),
1970
1971
  xLabels: a?.labels ?? Array.from({ length: n }, (e, t) => String(t)),
1971
1972
  maxLen: n
1972
1973
  };
@@ -1975,7 +1976,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1975
1976
  a,
1976
1977
  o,
1977
1978
  u
1978
- ]), w = G([y, b], [v, 0]), T = _ / C, E = Math.max(T * .1, 2), D = e.length, O = K((n, r, i) => {
1979
+ ]), w = K([y, b], [v, 0]), T = _ / C, E = Math.max(T * .1, 2), D = e.length, O = q((n, r, i) => {
1979
1980
  g({
1980
1981
  di: n,
1981
1982
  pi: r
@@ -2003,7 +2004,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2003
2004
  S,
2004
2005
  u,
2005
2006
  p
2006
- ]), k = K(() => {
2007
+ ]), k = q(() => {
2007
2008
  g(null), p(null);
2008
2009
  }, [p]), A = x.map((e) => i.top + w(e)), j = S.map((e, t) => ({
2009
2010
  position: i.left + T * t + T / 2,
@@ -2012,15 +2013,15 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2012
2013
  position: i.top + w(e),
2013
2014
  label: (o?.formatter ?? f)(e)
2014
2015
  })), N = w(0);
2015
- return /* @__PURE__ */ Z("g", { children: [
2016
- s && /* @__PURE__ */ X(en, {
2016
+ return /* @__PURE__ */ Q("g", { children: [
2017
+ s && /* @__PURE__ */ Z(en, {
2017
2018
  x: i.left,
2018
2019
  y: i.top,
2019
2020
  width: _,
2020
2021
  height: v,
2021
2022
  horizontalLines: A
2022
2023
  }),
2023
- l && /* @__PURE__ */ X(tn, {
2024
+ l && /* @__PURE__ */ Z(tn, {
2024
2025
  type: "y",
2025
2026
  x: i.left,
2026
2027
  y: i.top + v,
@@ -2028,7 +2029,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2028
2029
  ticks: M,
2029
2030
  title: o?.title
2030
2031
  }),
2031
- c && /* @__PURE__ */ X(tn, {
2032
+ c && /* @__PURE__ */ Z(tn, {
2032
2033
  type: "x",
2033
2034
  x: i.left,
2034
2035
  y: i.top + v,
@@ -2036,15 +2037,15 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2036
2037
  ticks: j,
2037
2038
  title: a?.title
2038
2039
  }),
2039
- /* @__PURE__ */ X("g", {
2040
+ /* @__PURE__ */ Z("g", {
2040
2041
  onMouseLeave: k,
2041
2042
  children: u ? S.map((n, r) => {
2042
2043
  let a = N, o = T - E * 2, s = i.left + T * r + E;
2043
- return /* @__PURE__ */ X("g", { children: e.map((n, c) => {
2044
+ return /* @__PURE__ */ Z("g", { children: e.map((n, c) => {
2044
2045
  let l = n.data[r] ?? 0, u = N - w(l), f = a - u;
2045
2046
  a = f;
2046
2047
  let p = n.color ?? t[c % t.length], g = h?.di === c && h?.pi === r;
2047
- return /* @__PURE__ */ X("rect", {
2048
+ return /* @__PURE__ */ Z("rect", {
2048
2049
  className: `chart-bar ${p} ${d ? "animated" : ""} ${g ? "active" : ""}`,
2049
2050
  x: s,
2050
2051
  y: i.top + f,
@@ -2058,9 +2059,9 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2058
2059
  }) }, r);
2059
2060
  }) : e.map((e, n) => {
2060
2061
  let r = (T - E * 2) / D;
2061
- return /* @__PURE__ */ X("g", { children: e.data.map((a, o) => {
2062
+ return /* @__PURE__ */ Z("g", { children: e.data.map((a, o) => {
2062
2063
  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;
2063
- return /* @__PURE__ */ X("rect", {
2064
+ return /* @__PURE__ */ Z("rect", {
2064
2065
  className: `chart-bar ${u} ${d ? "animated" : ""} ${f ? "active" : ""}`,
2065
2066
  x: c,
2066
2067
  y: i.top + l,
@@ -2079,10 +2080,10 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2079
2080
  //#endregion
2080
2081
  //#region src/components/data/MChart/charts/MAreaChart.tsx
2081
2082
  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 }) {
2082
- let [g, _] = Y(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 } = q(() => {
2083
+ 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(() => {
2083
2084
  let t = e.map((e) => e.data), n = Math.max(...t.map((e) => e.length), 1), r, s;
2084
- d ? [r, s] = Ee(t) : [r, s] = Se(t);
2085
- let c = o?.min ?? be(r), l = o?.max ?? ye(s, r), f = ve(c, l, o?.ticks ?? 5), p = a?.labels ?? Array.from({ length: n }, (e, t) => String(t)), m = G([0, Math.max(n - 1, 1)], [0, v]), h = G([c, l], [y, 0]);
2085
+ d ? [r, s] = Te(t) : [r, s] = xe(t);
2086
+ let c = o?.min ?? ye(r), l = o?.max ?? ve(s, r), f = _e(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]);
2086
2087
  if (d) {
2087
2088
  let e = [];
2088
2089
  for (let r = 0; r < t.length; r++) {
@@ -2101,14 +2102,14 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2101
2102
  y: i.top + h(e)
2102
2103
  }));
2103
2104
  return {
2104
- area: we(r, n === 0 ? t.map((e, t) => ({
2105
+ area: Ce(r, n === 0 ? t.map((e, t) => ({
2105
2106
  x: i.left + m(t),
2106
2107
  y: i.top + h(0)
2107
2108
  })) : e[n - 1].map((e, t) => ({
2108
2109
  x: i.left + m(t),
2109
2110
  y: i.top + h(e)
2110
2111
  })), u),
2111
- line: u ? Te(r) : xe(r),
2112
+ line: u ? we(r) : be(r),
2112
2113
  topPts: r
2113
2114
  };
2114
2115
  })
@@ -2134,7 +2135,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2134
2135
  d,
2135
2136
  u,
2136
2137
  i
2137
- ]), E = G([b, x], [y, 0]), D = G([0, Math.max(C.length - 1, 1)], [0, v]), O = K((r) => {
2138
+ ]), E = K([b, x], [y, 0]), D = K([0, Math.max(C.length - 1, 1)], [0, v]), O = q((r) => {
2138
2139
  let a = r.currentTarget.closest("svg");
2139
2140
  if (!a) return;
2140
2141
  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));
@@ -2156,7 +2157,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2156
2157
  i.left,
2157
2158
  n,
2158
2159
  m
2159
- ]), k = K(() => {
2160
+ ]), k = q(() => {
2160
2161
  _(null), m(null);
2161
2162
  }, [m]), A = S.map((e) => i.top + E(e)), j = S.map((e) => ({
2162
2163
  position: i.top + E(e),
@@ -2165,15 +2166,15 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2165
2166
  position: i.left + D(t),
2166
2167
  label: e
2167
2168
  }));
2168
- return /* @__PURE__ */ Z("g", { children: [
2169
- s && /* @__PURE__ */ X(en, {
2169
+ return /* @__PURE__ */ Q("g", { children: [
2170
+ s && /* @__PURE__ */ Z(en, {
2170
2171
  x: i.left,
2171
2172
  y: i.top,
2172
2173
  width: v,
2173
2174
  height: y,
2174
2175
  horizontalLines: A
2175
2176
  }),
2176
- l && /* @__PURE__ */ X(tn, {
2177
+ l && /* @__PURE__ */ Z(tn, {
2177
2178
  type: "y",
2178
2179
  x: i.left,
2179
2180
  y: i.top + y,
@@ -2181,7 +2182,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2181
2182
  ticks: j,
2182
2183
  title: o?.title
2183
2184
  }),
2184
- c && /* @__PURE__ */ X(tn, {
2185
+ c && /* @__PURE__ */ Z(tn, {
2185
2186
  type: "x",
2186
2187
  x: i.left,
2187
2188
  y: i.top + y,
@@ -2189,11 +2190,11 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2189
2190
  ticks: M,
2190
2191
  title: a?.title
2191
2192
  }),
2192
- /* @__PURE__ */ Z("g", {
2193
+ /* @__PURE__ */ Q("g", {
2193
2194
  onMouseMove: O,
2194
2195
  onMouseLeave: k,
2195
2196
  children: [
2196
- /* @__PURE__ */ X("rect", {
2197
+ /* @__PURE__ */ Z("rect", {
2197
2198
  x: i.left,
2198
2199
  y: i.top,
2199
2200
  width: v,
@@ -2202,25 +2203,25 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2202
2203
  }),
2203
2204
  d && T ? T.map((n, r) => {
2204
2205
  let i = e[r].color ?? t[r % t.length];
2205
- return /* @__PURE__ */ Z("g", { children: [/* @__PURE__ */ X("path", {
2206
+ return /* @__PURE__ */ Q("g", { children: [/* @__PURE__ */ Z("path", {
2206
2207
  className: `chart-area-fill ${i}`,
2207
2208
  d: n.area
2208
- }), /* @__PURE__ */ X("path", {
2209
+ }), /* @__PURE__ */ Z("path", {
2209
2210
  className: `chart-line ${i} ${f ? "animated" : ""}`,
2210
2211
  d: n.line
2211
2212
  })] }, r);
2212
2213
  }) : w.map((n, r) => {
2213
- let a = e[r].color ?? t[r % t.length], o = u ? Te(n) : xe(n), s = Ce(n, i.top + y, u);
2214
- return /* @__PURE__ */ Z("g", { children: [
2215
- /* @__PURE__ */ X("path", {
2214
+ let a = e[r].color ?? t[r % t.length], o = u ? we(n) : be(n), s = Se(n, i.top + y, u);
2215
+ return /* @__PURE__ */ Q("g", { children: [
2216
+ /* @__PURE__ */ Z("path", {
2216
2217
  className: `chart-area-fill ${a}`,
2217
2218
  d: s
2218
2219
  }),
2219
- /* @__PURE__ */ X("path", {
2220
+ /* @__PURE__ */ Z("path", {
2220
2221
  className: `chart-line ${a} ${f ? "animated" : ""}`,
2221
2222
  d: o
2222
2223
  }),
2223
- n.map((t, n) => /* @__PURE__ */ X("circle", {
2224
+ n.map((t, n) => /* @__PURE__ */ Z("circle", {
2224
2225
  className: `chart-dot ${a} ${g === n ? "active" : ""}`,
2225
2226
  cx: t.x,
2226
2227
  cy: t.y,
@@ -2230,7 +2231,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2230
2231
  }, n))
2231
2232
  ] }, r);
2232
2233
  }),
2233
- g !== null && /* @__PURE__ */ X("line", {
2234
+ g !== null && /* @__PURE__ */ Z("line", {
2234
2235
  className: "chart-crosshair",
2235
2236
  x1: i.left + D(g),
2236
2237
  y1: i.top,
@@ -2244,7 +2245,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2244
2245
  //#endregion
2245
2246
  //#region src/components/data/MChart/charts/MPieChart.tsx
2246
2247
  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 }) {
2247
- let [d, f] = Y(null), p = n / 2, m = r / 2, h = Math.min(p, m) - 10, g = i ? h - (a ?? h * .4) : 0, _ = q(() => {
2248
+ 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(() => {
2248
2249
  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;
2249
2250
  return n.map((n, o) => {
2250
2251
  let s = Math.max(n, 0) / i * Math.PI * 2, c = {
@@ -2261,7 +2262,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2261
2262
  e,
2262
2263
  t,
2263
2264
  c
2264
- ]), v = K((e, t) => {
2265
+ ]), v = q((e, t) => {
2265
2266
  f(e);
2266
2267
  let n = t.currentTarget.closest("svg");
2267
2268
  if (!n) return;
@@ -2276,12 +2277,12 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2276
2277
  x: t.clientX - r.left,
2277
2278
  y: t.clientY - r.top
2278
2279
  });
2279
- }, [_, l]), y = K(() => {
2280
+ }, [_, l]), y = q(() => {
2280
2281
  f(null), l(null);
2281
2282
  }, [l]);
2282
- return /* @__PURE__ */ Z("g", { children: [_.map((e, t) => {
2283
- let n = d === t, r = _e(p, m, n ? h + 4 : h, g, e.startAngle, e.endAngle);
2284
- return /* @__PURE__ */ X("path", {
2283
+ return /* @__PURE__ */ Q("g", { children: [_.map((e, t) => {
2284
+ let n = d === t, r = ge(p, m, n ? h + 4 : h, g, e.startAngle, e.endAngle);
2285
+ return /* @__PURE__ */ Z("path", {
2285
2286
  className: `chart-pie-segment ${e.color} ${o ? "animated" : ""} ${n ? "active" : ""}`,
2286
2287
  d: r,
2287
2288
  onMouseEnter: (e) => v(t, e),
@@ -2304,7 +2305,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2304
2305
  onClick: () => u?.(0, t, e.value),
2305
2306
  style: { cursor: u ? "pointer" : void 0 }
2306
2307
  }, t);
2307
- }), i && /* @__PURE__ */ X("text", {
2308
+ }), i && /* @__PURE__ */ Z("text", {
2308
2309
  x: p,
2309
2310
  y: m,
2310
2311
  textAnchor: "middle",
@@ -2327,45 +2328,45 @@ var sn = [
2327
2328
  "light"
2328
2329
  ];
2329
2330
  function cn() {
2330
- return /* @__PURE__ */ Z("defs", { children: [
2331
- sn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2331
+ return /* @__PURE__ */ Q("defs", { children: [
2332
+ sn.map((e) => /* @__PURE__ */ Q("linearGradient", {
2332
2333
  id: `chart-bar-grad-${e}`,
2333
2334
  x1: "0",
2334
2335
  y1: "0",
2335
2336
  x2: "0",
2336
2337
  y2: "1",
2337
- children: [/* @__PURE__ */ X("stop", {
2338
+ children: [/* @__PURE__ */ Z("stop", {
2338
2339
  offset: "0%",
2339
2340
  className: `chart-grad-stop-start ${e}`
2340
- }), /* @__PURE__ */ X("stop", {
2341
+ }), /* @__PURE__ */ Z("stop", {
2341
2342
  offset: "100%",
2342
2343
  className: `chart-grad-stop-end ${e}`
2343
2344
  })]
2344
2345
  }, `bar-${e}`)),
2345
- sn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2346
+ sn.map((e) => /* @__PURE__ */ Q("linearGradient", {
2346
2347
  id: `chart-pie-grad-${e}`,
2347
2348
  x1: "0.3",
2348
2349
  y1: "0",
2349
2350
  x2: "0.7",
2350
2351
  y2: "1",
2351
- children: [/* @__PURE__ */ X("stop", {
2352
+ children: [/* @__PURE__ */ Z("stop", {
2352
2353
  offset: "0%",
2353
2354
  className: `chart-grad-stop-start ${e}`
2354
- }), /* @__PURE__ */ X("stop", {
2355
+ }), /* @__PURE__ */ Z("stop", {
2355
2356
  offset: "100%",
2356
2357
  className: `chart-grad-stop-end ${e}`
2357
2358
  })]
2358
2359
  }, `pie-${e}`)),
2359
- sn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2360
+ sn.map((e) => /* @__PURE__ */ Q("linearGradient", {
2360
2361
  id: `chart-area-grad-${e}`,
2361
2362
  x1: "0",
2362
2363
  y1: "0",
2363
2364
  x2: "0",
2364
2365
  y2: "1",
2365
- children: [/* @__PURE__ */ X("stop", {
2366
+ children: [/* @__PURE__ */ Z("stop", {
2366
2367
  offset: "0%",
2367
2368
  className: `chart-grad-area-start ${e}`
2368
- }), /* @__PURE__ */ X("stop", {
2369
+ }), /* @__PURE__ */ Z("stop", {
2369
2370
  offset: "100%",
2370
2371
  className: `chart-grad-area-end ${e}`
2371
2372
  })]
@@ -2375,24 +2376,24 @@ function cn() {
2375
2376
  //#endregion
2376
2377
  //#region src/components/data/MChart/parts/ChartTooltip.tsx
2377
2378
  function ln({ data: e, valueFormatter: t }) {
2378
- return e ? /* @__PURE__ */ Z("div", {
2379
+ return e ? /* @__PURE__ */ Q("div", {
2379
2380
  className: "chart-tooltip",
2380
2381
  style: {
2381
2382
  left: e.x,
2382
2383
  top: e.y
2383
2384
  },
2384
- children: [/* @__PURE__ */ X("div", {
2385
+ children: [/* @__PURE__ */ Z("div", {
2385
2386
  className: "chart-tooltip-label",
2386
2387
  children: e.label
2387
- }), e.items.map((e, n) => /* @__PURE__ */ Z("div", {
2388
+ }), e.items.map((e, n) => /* @__PURE__ */ Q("div", {
2388
2389
  className: "chart-tooltip-row",
2389
2390
  children: [
2390
- /* @__PURE__ */ X("span", { className: `chart-tooltip-dot ${e.color}` }),
2391
- /* @__PURE__ */ X("span", {
2391
+ /* @__PURE__ */ Z("span", { className: `chart-tooltip-dot ${e.color}` }),
2392
+ /* @__PURE__ */ Z("span", {
2392
2393
  className: "chart-tooltip-name",
2393
2394
  children: e.name
2394
2395
  }),
2395
- /* @__PURE__ */ X("span", {
2396
+ /* @__PURE__ */ Z("span", {
2396
2397
  className: "chart-tooltip-value",
2397
2398
  children: t(e.value)
2398
2399
  })
@@ -2403,11 +2404,11 @@ function ln({ data: e, valueFormatter: t }) {
2403
2404
  //#endregion
2404
2405
  //#region src/components/data/MChart/parts/ChartLegend.tsx
2405
2406
  function un({ items: e }) {
2406
- return e.length <= 1 ? null : /* @__PURE__ */ X("div", {
2407
+ return e.length <= 1 ? null : /* @__PURE__ */ Z("div", {
2407
2408
  className: "chart-legend",
2408
- children: e.map((e, t) => /* @__PURE__ */ Z("div", {
2409
+ children: e.map((e, t) => /* @__PURE__ */ Q("div", {
2409
2410
  className: "chart-legend-item",
2410
- children: [/* @__PURE__ */ X("span", { className: `chart-legend-dot ${e.color}` }), /* @__PURE__ */ X("span", {
2411
+ children: [/* @__PURE__ */ Z("span", { className: `chart-legend-dot ${e.color}` }), /* @__PURE__ */ Z("span", {
2411
2412
  className: "chart-legend-label",
2412
2413
  children: e.label
2413
2414
  })]
@@ -2417,9 +2418,9 @@ function un({ items: e }) {
2417
2418
  //#endregion
2418
2419
  //#region src/components/data/MChart/MChart.tsx
2419
2420
  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 }) {
2420
- let C = J(null), [w, T] = Y(null), E = Yt, D = a?.title || o?.title ? Zt : Xt, O = i ? void 0 : typeof r == "number" ? r : 300, k = O ?? 300, A = K((e) => {
2421
+ let C = Y(null), [w, T] = X(null), E = Yt, D = a?.title || o?.title ? Zt : Xt, O = i ? void 0 : typeof r == "number" ? r : 300, k = O ?? 300, A = q((e) => {
2421
2422
  d && T(e);
2422
- }, [d]), j = q(() => e === "pie" && t.length === 1 ? (a?.labels ?? t[0].data.map((e, t) => `Segment ${t + 1}`)).map((e, t) => ({
2423
+ }, [d]), j = J(() => e === "pie" && t.length === 1 ? (a?.labels ?? t[0].data.map((e, t) => `Segment ${t + 1}`)).map((e, t) => ({
2423
2424
  label: e,
2424
2425
  color: E[t % E.length]
2425
2426
  })) : t.map((e, t) => ({
@@ -2446,7 +2447,7 @@ function dn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio:
2446
2447
  onTooltip: A,
2447
2448
  onDataClick: y
2448
2449
  };
2449
- return /* @__PURE__ */ Z("div", {
2450
+ return /* @__PURE__ */ Q("div", {
2450
2451
  ref: C,
2451
2452
  className: I("chart", b),
2452
2453
  style: {
@@ -2457,44 +2458,44 @@ function dn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio:
2457
2458
  },
2458
2459
  ...S,
2459
2460
  children: [
2460
- /* @__PURE__ */ Z("svg", {
2461
+ /* @__PURE__ */ Q("svg", {
2461
2462
  viewBox: `0 0 600 ${k}`,
2462
2463
  preserveAspectRatio: "xMidYMid meet",
2463
2464
  className: "chart-svg",
2464
2465
  children: [
2465
- /* @__PURE__ */ X(cn, {}),
2466
- e === "line" && /* @__PURE__ */ X(nn, {
2466
+ /* @__PURE__ */ Z(cn, {}),
2467
+ e === "line" && /* @__PURE__ */ Z(nn, {
2467
2468
  ...M,
2468
2469
  curved: m
2469
2470
  }),
2470
- e === "bar" && /* @__PURE__ */ X(rn, {
2471
+ e === "bar" && /* @__PURE__ */ Z(rn, {
2471
2472
  ...M,
2472
2473
  stacked: p
2473
2474
  }),
2474
- e === "area" && /* @__PURE__ */ X(an, {
2475
+ e === "area" && /* @__PURE__ */ Z(an, {
2475
2476
  ...M,
2476
2477
  curved: m,
2477
2478
  stacked: p
2478
2479
  }),
2479
- e === "pie" && /* @__PURE__ */ X(on, {
2480
+ e === "pie" && /* @__PURE__ */ Z(on, {
2480
2481
  ...M,
2481
2482
  donut: h,
2482
2483
  donutWidth: g
2483
2484
  })
2484
2485
  ]
2485
2486
  }),
2486
- d && /* @__PURE__ */ X(ln, {
2487
+ d && /* @__PURE__ */ Z(ln, {
2487
2488
  data: w,
2488
2489
  valueFormatter: _
2489
2490
  }),
2490
- u && /* @__PURE__ */ X(un, { items: j })
2491
+ u && /* @__PURE__ */ Z(un, { items: j })
2491
2492
  ]
2492
2493
  });
2493
2494
  }
2494
2495
  //#endregion
2495
2496
  //#region src/components/data/MChart/MLineChart.tsx
2496
2497
  function fn(e) {
2497
- return /* @__PURE__ */ X(dn, {
2498
+ return /* @__PURE__ */ Z(dn, {
2498
2499
  type: "line",
2499
2500
  ...e
2500
2501
  });
@@ -2502,7 +2503,7 @@ function fn(e) {
2502
2503
  //#endregion
2503
2504
  //#region src/components/data/MChart/MBarChart.tsx
2504
2505
  function pn(e) {
2505
- return /* @__PURE__ */ X(dn, {
2506
+ return /* @__PURE__ */ Z(dn, {
2506
2507
  type: "bar",
2507
2508
  ...e
2508
2509
  });
@@ -2510,7 +2511,7 @@ function pn(e) {
2510
2511
  //#endregion
2511
2512
  //#region src/components/data/MChart/MAreaChart.tsx
2512
2513
  function mn(e) {
2513
- return /* @__PURE__ */ X(dn, {
2514
+ return /* @__PURE__ */ Z(dn, {
2514
2515
  type: "area",
2515
2516
  ...e
2516
2517
  });
@@ -2518,12 +2519,12 @@ function mn(e) {
2518
2519
  //#endregion
2519
2520
  //#region src/components/data/MChart/MPieChart.tsx
2520
2521
  function hn(e) {
2521
- return /* @__PURE__ */ X(dn, {
2522
+ return /* @__PURE__ */ Z(dn, {
2522
2523
  type: "pie",
2523
2524
  ...e
2524
2525
  });
2525
2526
  }
2526
2527
  //#endregion
2527
- export { Ye as _, Jt as a, Ue as b, Gt as c, Ct as d, ct as f, Xe as g, Ze as h, fn as i, qt as l, Qe as m, mn as n, Ut as o, st as p, pn as r, Wt as s, hn as t, Kt as u, Ke as v, He as x, Ge as y };
2528
+ export { Je as _, Jt as a, He as b, Gt as c, St as d, st as f, Ye as g, Xe as h, fn as i, qt as l, Ze as m, mn as n, Ut as o, ot as p, pn as r, Wt as s, hn as t, Kt as u, Ge as v, Ve as x, We as y };
2528
2529
 
2529
- //# sourceMappingURL=data-Bp3Fd2Al.js.map
2530
+ //# sourceMappingURL=data-CaRwdLlD.js.map