@banzamel/mineralui 1.6.4 → 1.8.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 (460) hide show
  1. package/README.md +1 -1
  2. package/dist/{MAvatar-BHASnoyu.js → MAvatar-BcayQCnp.js} +2 -2
  3. package/dist/{MAvatar-BHASnoyu.js.map → MAvatar-BcayQCnp.js.map} +1 -1
  4. package/dist/{MAvatar-BVJh6kgW.cjs → MAvatar-BgevCYi3.cjs} +2 -2
  5. package/dist/{MAvatar-BVJh6kgW.cjs.map → MAvatar-BgevCYi3.cjs.map} +1 -1
  6. package/dist/MButton-8UCydOik.cjs +2 -0
  7. package/dist/MButton-8UCydOik.cjs.map +1 -0
  8. package/dist/{MButton-y9qXhhGt.js → MButton-DZLLrtQb.js} +38 -36
  9. package/dist/MButton-DZLLrtQb.js.map +1 -0
  10. package/dist/{MCheckbox-B-nT2OBE.js → MCheckbox-B7SpcD4H.js} +1 -1
  11. package/dist/{MCheckbox-B-nT2OBE.js.map → MCheckbox-B7SpcD4H.js.map} +1 -1
  12. package/dist/{MCheckbox-C40ESQRe.cjs → MCheckbox-Dn3p_9-1.cjs} +2 -2
  13. package/dist/{MCheckbox-C40ESQRe.cjs.map → MCheckbox-Dn3p_9-1.cjs.map} +1 -1
  14. package/dist/{MCookieBootstrap-3-wyz3Dk.cjs → MCookieBootstrap-BUqtJO3m.cjs} +1 -1
  15. package/dist/{MCookieBootstrap-3-wyz3Dk.cjs.map → MCookieBootstrap-BUqtJO3m.cjs.map} +1 -1
  16. package/dist/{MCookieBootstrap-CGvYxIK8.js → MCookieBootstrap-Btt49Iuq.js} +1 -1
  17. package/dist/{MCookieBootstrap-CGvYxIK8.js.map → MCookieBootstrap-Btt49Iuq.js.map} +1 -1
  18. package/dist/MDataTable-95_Mb6jE.cjs +2 -0
  19. package/dist/MDataTable-95_Mb6jE.cjs.map +1 -0
  20. package/dist/MDataTable-DxDS5auV.js +297 -0
  21. package/dist/MDataTable-DxDS5auV.js.map +1 -0
  22. package/dist/{MDrawer-W2WQs1sM.js → MDrawer-CXNHYwPO.js} +2 -2
  23. package/dist/{MDrawer-W2WQs1sM.js.map → MDrawer-CXNHYwPO.js.map} +1 -1
  24. package/dist/{MDrawer-DFkrFrnD.cjs → MDrawer-DzqtHVeA.cjs} +2 -2
  25. package/dist/{MDrawer-DFkrFrnD.cjs.map → MDrawer-DzqtHVeA.cjs.map} +1 -1
  26. package/dist/{MDropdownMenu-D79Cm5aS.js → MDropdownMenu-CeiC1tz3.js} +5 -5
  27. package/dist/MDropdownMenu-CeiC1tz3.js.map +1 -0
  28. package/dist/MDropdownMenu-c9U3sEcl.cjs +2 -0
  29. package/dist/MDropdownMenu-c9U3sEcl.cjs.map +1 -0
  30. package/dist/{MGalleryIllustration-BB3DoCl_.cjs → MGalleryIllustration-Dglx_Ckc.cjs} +2 -2
  31. package/dist/{MGalleryIllustration-BB3DoCl_.cjs.map → MGalleryIllustration-Dglx_Ckc.cjs.map} +1 -1
  32. package/dist/MGrid-C4kPZDSa.cjs +2 -0
  33. package/dist/MGrid-C4kPZDSa.cjs.map +1 -0
  34. package/dist/MGrid-DR0fHItF.js +182 -0
  35. package/dist/MGrid-DR0fHItF.js.map +1 -0
  36. package/dist/{MHeading-BhCNoJeW.cjs → MHeading-CKe5lcM_.cjs} +2 -2
  37. package/dist/{MHeading-BhCNoJeW.cjs.map → MHeading-CKe5lcM_.cjs.map} +1 -1
  38. package/dist/{MI18nProvider-B2sE0x5D.cjs → MI18nProvider-DOh5xexz.cjs} +2 -2
  39. package/dist/{MI18nProvider-B2sE0x5D.cjs.map → MI18nProvider-DOh5xexz.cjs.map} +1 -1
  40. package/dist/MImage-BZ6SrSao.cjs +2 -0
  41. package/dist/MImage-BZ6SrSao.cjs.map +1 -0
  42. package/dist/{MImage-BKX-xBm3.js → MImage-Btx_7g2Z.js} +5 -6
  43. package/dist/MImage-Btx_7g2Z.js.map +1 -0
  44. package/dist/{MInput-bzSwK880.js → MInput-7i0Dy1t4.js} +3 -2
  45. package/dist/{MInput-bzSwK880.js.map → MInput-7i0Dy1t4.js.map} +1 -1
  46. package/dist/{MInput-DYqV3-rQ.cjs → MInput-D_zaoWwX.cjs} +2 -2
  47. package/dist/{MInput-DYqV3-rQ.cjs.map → MInput-D_zaoWwX.cjs.map} +1 -1
  48. package/dist/MInputExpDate-DWWwjMYK.cjs +2 -0
  49. package/dist/MInputExpDate-DWWwjMYK.cjs.map +1 -0
  50. package/dist/{MInputCVC-BHpMHTO5.js → MInputExpDate-DhO5zN7L.js} +97 -97
  51. package/dist/MInputExpDate-DhO5zN7L.js.map +1 -0
  52. package/dist/{MInputSearch-Dh4C3Tz5.js → MInputSearch-CmzHPnmC.js} +2 -2
  53. package/dist/{MInputSearch-Dh4C3Tz5.js.map → MInputSearch-CmzHPnmC.js.map} +1 -1
  54. package/dist/{MInputSearch-DfoenJIm.cjs → MInputSearch-DpHSVpmL.cjs} +2 -2
  55. package/dist/{MInputSearch-DfoenJIm.cjs.map → MInputSearch-DpHSVpmL.cjs.map} +1 -1
  56. package/dist/MKbd-DWTS3iS5.cjs +2 -0
  57. package/dist/MKbd-DWTS3iS5.cjs.map +1 -0
  58. package/dist/MKbd-v6-tJ9sP.js +14 -0
  59. package/dist/MKbd-v6-tJ9sP.js.map +1 -0
  60. package/dist/{MLink-CY45UR_j.cjs → MLink-B3ImjkJV.cjs} +2 -2
  61. package/dist/{MLink-CY45UR_j.cjs.map → MLink-B3ImjkJV.cjs.map} +1 -1
  62. package/dist/{MModal-DT5BBgNZ.cjs → MModal-CP0e31pv.cjs} +2 -2
  63. package/dist/{MModal-DT5BBgNZ.cjs.map → MModal-CP0e31pv.cjs.map} +1 -1
  64. package/dist/{MModal-BDTAgnrm.js → MModal-DGmeQlWo.js} +2 -2
  65. package/dist/{MModal-BDTAgnrm.js.map → MModal-DGmeQlWo.js.map} +1 -1
  66. package/dist/{MPagination-CZEJMJzZ.cjs → MPagination-CS62B9kZ.cjs} +2 -2
  67. package/dist/{MPagination-CZEJMJzZ.cjs.map → MPagination-CS62B9kZ.cjs.map} +1 -1
  68. package/dist/{MPagination-CTnaW5AW.js → MPagination-Dr110are.js} +2 -2
  69. package/dist/{MPagination-CTnaW5AW.js.map → MPagination-Dr110are.js.map} +1 -1
  70. package/dist/{MPopover-B4IUb9f0.cjs → MPopover-CxxaY9kr.cjs} +2 -2
  71. package/dist/{MPopover-B4IUb9f0.cjs.map → MPopover-CxxaY9kr.cjs.map} +1 -1
  72. package/dist/{MPortal-Bi24xTGW.cjs → MPortal-BIxPtFYd.cjs} +2 -2
  73. package/dist/{MPortal-Bi24xTGW.cjs.map → MPortal-BIxPtFYd.cjs.map} +1 -1
  74. package/dist/{MQrCode-CCtTkkv9.js → MQrCode-6ANDcExA.js} +150 -100
  75. package/dist/MQrCode-6ANDcExA.js.map +1 -0
  76. package/dist/MQrCode-B0-Np-N3.cjs +2 -0
  77. package/dist/MQrCode-B0-Np-N3.cjs.map +1 -0
  78. package/dist/MSimpleGrid-Bojj4xKH.js +18 -0
  79. package/dist/MSimpleGrid-Bojj4xKH.js.map +1 -0
  80. package/dist/MSimpleGrid-CyLf-9R2.cjs +2 -0
  81. package/dist/MSimpleGrid-CyLf-9R2.cjs.map +1 -0
  82. package/dist/MSkeleton-BdwhPx-k.cjs +2 -0
  83. package/dist/MSkeleton-BdwhPx-k.cjs.map +1 -0
  84. package/dist/MSkeleton-BvXgnYs_.js +136 -0
  85. package/dist/MSkeleton-BvXgnYs_.js.map +1 -0
  86. package/dist/{MSlider-5141rKeH.js → MSlider-CqrusKJQ.js} +1 -1
  87. package/dist/{MSlider-5141rKeH.js.map → MSlider-CqrusKJQ.js.map} +1 -1
  88. package/dist/{MSlider-Ch3VjAJC.cjs → MSlider-qCGmD4UA.cjs} +2 -2
  89. package/dist/{MSlider-Ch3VjAJC.cjs.map → MSlider-qCGmD4UA.cjs.map} +1 -1
  90. package/dist/MStack-ByFYGSsy.cjs +2 -0
  91. package/dist/MStack-ByFYGSsy.cjs.map +1 -0
  92. package/dist/MStack-DFIc3S4_.js +70 -0
  93. package/dist/MStack-DFIc3S4_.js.map +1 -0
  94. package/dist/{MSubText-C-70zn0m.cjs → MSubText-1ilKSz8e.cjs} +2 -2
  95. package/dist/{MSubText-C-70zn0m.cjs.map → MSubText-1ilKSz8e.cjs.map} +1 -1
  96. package/dist/MSurface-CmVIQC1A.js +43 -0
  97. package/dist/MSurface-CmVIQC1A.js.map +1 -0
  98. package/dist/MSurface-CpAuwpHv.cjs +2 -0
  99. package/dist/MSurface-CpAuwpHv.cjs.map +1 -0
  100. package/dist/MTabs-BQZ--mMq.js +89 -0
  101. package/dist/MTabs-BQZ--mMq.js.map +1 -0
  102. package/dist/MTabs-DeUn6bIp.cjs +2 -0
  103. package/dist/MTabs-DeUn6bIp.cjs.map +1 -0
  104. package/dist/{MTag-CH5nMbm7.js → MTag-C4SUJly2.js} +2 -2
  105. package/dist/{MTag-CH5nMbm7.js.map → MTag-C4SUJly2.js.map} +1 -1
  106. package/dist/{MTag-Y4Tswmli.cjs → MTag-DwQ-j1sV.cjs} +2 -2
  107. package/dist/{MTag-Y4Tswmli.cjs.map → MTag-DwQ-j1sV.cjs.map} +1 -1
  108. package/dist/{MText-DEJddMB5.cjs → MText-D0fI_D_Q.cjs} +2 -2
  109. package/dist/{MText-DEJddMB5.cjs.map → MText-D0fI_D_Q.cjs.map} +1 -1
  110. package/dist/{MTimeAgo-DxZGVo2Y.cjs → MTimeAgo-DI3DF7bD.cjs} +2 -2
  111. package/dist/{MTimeAgo-DxZGVo2Y.cjs.map → MTimeAgo-DI3DF7bD.cjs.map} +1 -1
  112. package/dist/{MTimeAgo-C4p80NvI.js → MTimeAgo-Db8gOade.js} +2 -2
  113. package/dist/{MTimeAgo-C4p80NvI.js.map → MTimeAgo-Db8gOade.js.map} +1 -1
  114. package/dist/{MToggle-Dt1Ctr5e.js → MToggle-B6emKoKq.js} +1 -1
  115. package/dist/{MToggle-Dt1Ctr5e.js.map → MToggle-B6emKoKq.js.map} +1 -1
  116. package/dist/{MToggle-C8vYRzpC.cjs → MToggle-BVJm5Bdk.cjs} +2 -2
  117. package/dist/{MToggle-C8vYRzpC.cjs.map → MToggle-BVJm5Bdk.cjs.map} +1 -1
  118. package/dist/{MTooltip-kSTMMpvu.cjs → MTooltip-Dq2vYf3G.cjs} +2 -2
  119. package/dist/{MTooltip-kSTMMpvu.cjs.map → MTooltip-Dq2vYf3G.cjs.map} +1 -1
  120. package/dist/{MTooltip-C43aUKMP.js → MTooltip-jSf4VBtB.js} +1 -1
  121. package/dist/{MTooltip-C43aUKMP.js.map → MTooltip-jSf4VBtB.js.map} +1 -1
  122. package/dist/MTreeView-AqH8XMPz.js +516 -0
  123. package/dist/MTreeView-AqH8XMPz.js.map +1 -0
  124. package/dist/MTreeView-Dp9qbqQh.cjs +2 -0
  125. package/dist/MTreeView-Dp9qbqQh.cjs.map +1 -0
  126. package/dist/{arduino-CXUo7Bjy.cjs → arduino-Bm509TuR.cjs} +1 -1
  127. package/dist/{arduino-CXUo7Bjy.cjs.map → arduino-Bm509TuR.cjs.map} +1 -1
  128. package/dist/{arduino-Eif5KI8O.js → arduino-C5s1z3P1.js} +1 -1
  129. package/dist/{arduino-Eif5KI8O.js.map → arduino-C5s1z3P1.js.map} +1 -1
  130. package/dist/{bash-W4h3o_nx.cjs → bash-CyBbinAU.cjs} +1 -1
  131. package/dist/{bash-W4h3o_nx.cjs.map → bash-CyBbinAU.cjs.map} +1 -1
  132. package/dist/{bash-CCF_TYbb.js → bash-RIFbRcCe.js} +1 -1
  133. package/dist/{bash-CCF_TYbb.js.map → bash-RIFbRcCe.js.map} +1 -1
  134. package/dist/{c-DVgkp6T3.js → c-DAywn1DE.js} +1 -1
  135. package/dist/{c-DVgkp6T3.js.map → c-DAywn1DE.js.map} +1 -1
  136. package/dist/{c-Dm60JY-W.cjs → c-DGOxo0dj.cjs} +1 -1
  137. package/dist/{c-Dm60JY-W.cjs.map → c-DGOxo0dj.cjs.map} +1 -1
  138. package/dist/cards-B9g6Lf1n.cjs +2 -0
  139. package/dist/cards-B9g6Lf1n.cjs.map +1 -0
  140. package/dist/cards-D7oHIHmU.js +1535 -0
  141. package/dist/cards-D7oHIHmU.js.map +1 -0
  142. package/dist/cards.cjs +1 -1
  143. package/dist/cards.js +3 -3
  144. package/dist/components/cards/MCard/MCard.d.ts +1 -1
  145. package/dist/components/cards/MCard/MCard.types.d.ts +2 -5
  146. package/dist/components/cards/MCardActionArea/MCardActionArea.d.ts +2 -0
  147. package/dist/components/cards/MCardActionArea/MCardActionArea.types.d.ts +7 -0
  148. package/dist/components/cards/MCardActionArea/index.d.ts +2 -0
  149. package/dist/components/cards/MCardDaySchedule/MCardDaySchedule.d.ts +2 -0
  150. package/dist/components/cards/MCardDaySchedule/MCardDaySchedule.types.d.ts +41 -0
  151. package/dist/components/cards/MCardDaySchedule/index.d.ts +2 -0
  152. package/dist/components/cards/MCardDocumentTree/MCardDocumentTree.d.ts +2 -0
  153. package/dist/components/cards/MCardDocumentTree/MCardDocumentTree.types.d.ts +31 -0
  154. package/dist/components/cards/MCardDocumentTree/index.d.ts +2 -0
  155. package/dist/components/cards/MCardFinance/MCardFinance.d.ts +1 -1
  156. package/dist/components/cards/MCardFinance/MCardFinance.types.d.ts +2 -1
  157. package/dist/components/cards/MCardGrid/MCardGrid.d.ts +1 -1
  158. package/dist/components/cards/MCardGrid/MCardGrid.types.d.ts +23 -5
  159. package/dist/components/cards/MCardPayment/MCardPayment.d.ts +1 -1
  160. package/dist/components/cards/MCardPayment/MCardPayment.types.d.ts +2 -1
  161. package/dist/components/cards/MCardTile/MCardTile.d.ts +2 -0
  162. package/dist/components/cards/MCardTile/MCardTile.types.d.ts +26 -0
  163. package/dist/components/cards/MCardTile/index.d.ts +2 -0
  164. package/dist/components/cards/MCardWidget/MCardWidget.d.ts +1 -1
  165. package/dist/components/cards/MCardWidget/MCardWidget.types.d.ts +2 -1
  166. package/dist/components/cards/MStatCard/MStatCard.d.ts +3 -0
  167. package/dist/components/cards/MStatCard/MStatCard.types.d.ts +16 -0
  168. package/dist/components/cards/MStatCard/index.d.ts +2 -0
  169. package/dist/components/cards/ServiceCardsShared/ServiceCardsShared.d.ts +1 -1
  170. package/dist/components/cards/ServiceCardsShared/ServiceCardsShared.types.d.ts +1 -3
  171. package/dist/components/cards/index.d.ts +12 -0
  172. package/dist/components/cards/shared/MCardAction.types.d.ts +12 -0
  173. package/dist/components/cards/shared/MCardAction.utils.d.ts +16 -0
  174. package/dist/components/cards/shared/MCardColor.utils.d.ts +3 -0
  175. package/dist/components/cards/shared/index.d.ts +3 -0
  176. package/dist/components/controls/MButton/MButton.types.d.ts +2 -0
  177. package/dist/components/controls/MQuickActions/MQuickActions.d.ts +2 -0
  178. package/dist/components/controls/MQuickActions/MQuickActions.types.d.ts +33 -0
  179. package/dist/components/controls/MQuickActions/index.d.ts +2 -0
  180. package/dist/components/controls/index.d.ts +2 -0
  181. package/dist/components/data/MCalendarBoard/MCalendarBoard.d.ts +8 -7
  182. package/dist/components/data/MCalendarBoard/MCalendarBoard.types.d.ts +75 -6
  183. package/dist/components/data/MCalendarBoard/index.d.ts +2 -2
  184. package/dist/components/data/MDataTable/MDataTable.d.ts +1 -1
  185. package/dist/components/data/MDataTable/MDataTable.types.d.ts +23 -0
  186. package/dist/components/data/MTreeView/MTreeView.d.ts +1 -1
  187. package/dist/components/data/MTreeView/MTreeView.types.d.ts +11 -1
  188. package/dist/components/data/index.d.ts +2 -2
  189. package/dist/components/display/MBlur/MBlur.d.ts +2 -0
  190. package/dist/components/display/MBlur/MBlur.types.d.ts +13 -0
  191. package/dist/components/display/MBlur/index.d.ts +2 -0
  192. package/dist/components/display/MDetailList/MDetailList.d.ts +2 -0
  193. package/dist/components/display/MDetailList/MDetailList.types.d.ts +20 -0
  194. package/dist/components/display/MDetailList/index.d.ts +2 -0
  195. package/dist/components/display/index.d.ts +4 -0
  196. package/dist/components/inputs/MInputIBAN/MInputIBAN.types.d.ts +3 -3
  197. package/dist/components/inputs/MInputPhone/MInputPhone.types.d.ts +2 -0
  198. package/dist/components/layout/MAppMenu/MAppMenu.d.ts +2 -0
  199. package/dist/components/layout/MAppMenu/MAppMenu.types.d.ts +63 -0
  200. package/dist/components/layout/MAppMenu/index.d.ts +2 -0
  201. package/dist/components/layout/MGrid/MGrid.d.ts +2 -2
  202. package/dist/components/layout/MGrid/MGrid.types.d.ts +2 -0
  203. package/dist/components/layout/MInline/MInline.d.ts +1 -1
  204. package/dist/components/layout/MInline/MInline.types.d.ts +1 -1
  205. package/dist/components/layout/MSidebar/MSidebar.d.ts +1 -1
  206. package/dist/components/layout/MSidebar/MSidebar.types.d.ts +7 -0
  207. package/dist/components/layout/MStatGrid/MStatGrid.d.ts +2 -0
  208. package/dist/components/layout/MStatGrid/MStatGrid.types.d.ts +9 -0
  209. package/dist/components/layout/MStatGrid/index.d.ts +2 -0
  210. package/dist/components/layout/MSurface/MSurface.d.ts +1 -1
  211. package/dist/components/layout/MSurface/MSurface.types.d.ts +6 -1
  212. package/dist/components/layout/index.d.ts +6 -0
  213. package/dist/components/media/MGallery/MGallery.types.d.ts +5 -0
  214. package/dist/components/media/MMediaLightbox/MMediaLightbox.d.ts +1 -1
  215. package/dist/components/overlays/MCommandPalette/MCommandPalette.d.ts +2 -0
  216. package/dist/components/overlays/MCommandPalette/MCommandPalette.types.d.ts +35 -0
  217. package/dist/components/overlays/MCommandPalette/index.d.ts +2 -0
  218. package/dist/components/overlays/MTooltip/MTooltip.types.d.ts +2 -2
  219. package/dist/components/overlays/index.d.ts +2 -0
  220. package/dist/components/typography/MHeading/MHeading.d.ts +3 -3
  221. package/dist/{controls-DCtMOoQe.js → controls-BczTk73I.js} +141 -100
  222. package/dist/controls-BczTk73I.js.map +1 -0
  223. package/dist/controls-BfV0vxeJ.cjs +2 -0
  224. package/dist/controls-BfV0vxeJ.cjs.map +1 -0
  225. package/dist/controls.cjs +1 -1
  226. package/dist/controls.js +6 -6
  227. package/dist/cookie-consent-bootstrap.cjs +1 -1
  228. package/dist/cookie-consent-bootstrap.js +1 -1
  229. package/dist/{core-CB9-PTLK.js → core-BUYr52VU.js} +1 -1
  230. package/dist/{core-CB9-PTLK.js.map → core-BUYr52VU.js.map} +1 -1
  231. package/dist/{core-AKWkE8Bx.cjs → core-DAox0BHy.cjs} +1 -1
  232. package/dist/{core-AKWkE8Bx.cjs.map → core-DAox0BHy.cjs.map} +1 -1
  233. package/dist/{cpp-DyKt1H8n.cjs → cpp-D-FtdQo9.cjs} +1 -1
  234. package/dist/{cpp-DyKt1H8n.cjs.map → cpp-D-FtdQo9.cjs.map} +1 -1
  235. package/dist/{cpp-OOenfB17.js → cpp-Y9cHXDal.js} +1 -1
  236. package/dist/{cpp-OOenfB17.js.map → cpp-Y9cHXDal.js.map} +1 -1
  237. package/dist/creditCards-D_HwRUBz.cjs +2 -0
  238. package/dist/creditCards-D_HwRUBz.cjs.map +1 -0
  239. package/dist/{creditCards-CCysEwry.js → creditCards-D_iWmtG6.js} +14 -8
  240. package/dist/creditCards-D_iWmtG6.js.map +1 -0
  241. package/dist/{css-u5LSEAra.js → css-C__ffGj6.js} +1 -1
  242. package/dist/{css-u5LSEAra.js.map → css-C__ffGj6.js.map} +1 -1
  243. package/dist/{css-DxVbPJLu.cjs → css-DCYZ-Rs6.cjs} +1 -1
  244. package/dist/{css-DxVbPJLu.cjs.map → css-DCYZ-Rs6.cjs.map} +1 -1
  245. package/dist/data-7kG1MC1Z.cjs +2 -0
  246. package/dist/data-7kG1MC1Z.cjs.map +1 -0
  247. package/dist/{data-BiwK5rfx.js → data-z3e8XTSt.js} +1039 -874
  248. package/dist/data-z3e8XTSt.js.map +1 -0
  249. package/dist/data.cjs +1 -1
  250. package/dist/data.js +4 -4
  251. package/dist/display-Cw3-bTsm.cjs +3 -0
  252. package/dist/display-Cw3-bTsm.cjs.map +1 -0
  253. package/dist/{display-Zxj9YHu_.js → display-DyC7084n.js} +68 -41
  254. package/dist/display-DyC7084n.js.map +1 -0
  255. package/dist/display.cjs +1 -1
  256. package/dist/display.js +4 -4
  257. package/dist/dropdowns-6eO0b6eI.cjs +2 -0
  258. package/dist/dropdowns-6eO0b6eI.cjs.map +1 -0
  259. package/dist/{dropdowns-Bw8obCYl.js → dropdowns-zXgrjNXZ.js} +586 -559
  260. package/dist/dropdowns-zXgrjNXZ.js.map +1 -0
  261. package/dist/dropdowns.cjs +1 -1
  262. package/dist/dropdowns.js +1 -1
  263. package/dist/feedback-BvRmoSzV.cjs +2 -0
  264. package/dist/{feedback-Di0SEpRe.cjs.map → feedback-BvRmoSzV.cjs.map} +1 -1
  265. package/dist/{feedback-8H3bmQw5.js → feedback-DfBjzJAw.js} +299 -300
  266. package/dist/{feedback-8H3bmQw5.js.map → feedback-DfBjzJAw.js.map} +1 -1
  267. package/dist/feedback.cjs +1 -1
  268. package/dist/feedback.js +6 -7
  269. package/dist/{form-JHlvtP9r.js → form-BiPQ8SRK.js} +2 -2
  270. package/dist/{form-JHlvtP9r.js.map → form-BiPQ8SRK.js.map} +1 -1
  271. package/dist/{form-BYz99Py5.cjs → form-DlXWN2ul.cjs} +2 -2
  272. package/dist/{form-BYz99Py5.cjs.map → form-DlXWN2ul.cjs.map} +1 -1
  273. package/dist/form.cjs +1 -1
  274. package/dist/form.js +1 -1
  275. package/dist/frameworkTexts-BLJcGUXz.cjs +2 -0
  276. package/dist/frameworkTexts-BLJcGUXz.cjs.map +1 -0
  277. package/dist/{frameworkTexts-CvxcWRXp.js → frameworkTexts-BTFyhWFD.js} +3 -1
  278. package/dist/frameworkTexts-BTFyhWFD.js.map +1 -0
  279. package/dist/i18n/frameworkTexts.d.ts +2 -0
  280. package/dist/i18n.cjs +1 -1
  281. package/dist/icons-CfpYxnfg.js.map +1 -1
  282. package/dist/{icons-DWMgDKgt.cjs → icons-qCoE70hn.cjs} +2 -2
  283. package/dist/{icons-DWMgDKgt.cjs.map → icons-qCoE70hn.cjs.map} +1 -1
  284. package/dist/icons.cjs +1 -1
  285. package/dist/illustrations.cjs +1 -1
  286. package/dist/index.cjs +2 -1
  287. package/dist/index.cjs.map +1 -0
  288. package/dist/index.d.ts +4 -0
  289. package/dist/index.js +88 -53
  290. package/dist/index.js.map +1 -0
  291. package/dist/inputs-C1I1SLZ8.cjs +2 -0
  292. package/dist/inputs-C1I1SLZ8.cjs.map +1 -0
  293. package/dist/{inputs-Bcwd_UTr.js → inputs-Dy1WurNK.js} +556 -441
  294. package/dist/inputs-Dy1WurNK.js.map +1 -0
  295. package/dist/inputs.cjs +1 -1
  296. package/dist/inputs.js +5 -5
  297. package/dist/{javascript-CXjsxb-I.js → javascript-ClV78Svx.js} +1 -1
  298. package/dist/{javascript-CXjsxb-I.js.map → javascript-ClV78Svx.js.map} +1 -1
  299. package/dist/{javascript-CzjCTQxn.cjs → javascript-_Sr9cnsG.cjs} +1 -1
  300. package/dist/{javascript-CzjCTQxn.cjs.map → javascript-_Sr9cnsG.cjs.map} +1 -1
  301. package/dist/{json-9Qq5guN0.cjs → json-BFetU4Pi.cjs} +1 -1
  302. package/dist/{json-9Qq5guN0.cjs.map → json-BFetU4Pi.cjs.map} +1 -1
  303. package/dist/{json-CyV5VF8D.js → json-Dz6EkGZR.js} +1 -1
  304. package/dist/{json-CyV5VF8D.js.map → json-Dz6EkGZR.js.map} +1 -1
  305. package/dist/layout-D1-mF4xn.js +772 -0
  306. package/dist/layout-D1-mF4xn.js.map +1 -0
  307. package/dist/layout-Op6GWQ8w.cjs +2 -0
  308. package/dist/layout-Op6GWQ8w.cjs.map +1 -0
  309. package/dist/layout.cjs +1 -1
  310. package/dist/layout.js +8 -6
  311. package/dist/licensing-DmF0ObpG.cjs +2 -0
  312. package/dist/licensing-DmF0ObpG.cjs.map +1 -0
  313. package/dist/{licensing-CwzqhHH9.js → licensing-ZFCUU4Z8.js} +5 -1
  314. package/dist/licensing-ZFCUU4Z8.js.map +1 -0
  315. package/dist/{locale-CZyqh3ON.cjs → locale-Bz2JXxDZ.cjs} +2 -2
  316. package/dist/{locale-CZyqh3ON.cjs.map → locale-Bz2JXxDZ.cjs.map} +1 -1
  317. package/dist/{locale-JX_gX03k.js → locale-CS1-IY_I.js} +1 -1
  318. package/dist/{locale-JX_gX03k.js.map → locale-CS1-IY_I.js.map} +1 -1
  319. package/dist/media-DbToUupt.cjs +2 -0
  320. package/dist/media-DbToUupt.cjs.map +1 -0
  321. package/dist/{media-IM9mfVAn.js → media-DdChr0Cw.js} +7 -7
  322. package/dist/media-DdChr0Cw.js.map +1 -0
  323. package/dist/media.cjs +1 -1
  324. package/dist/media.js +3 -3
  325. package/dist/overlays-B0khU6Wb.js +392 -0
  326. package/dist/overlays-B0khU6Wb.js.map +1 -0
  327. package/dist/overlays-VAh5PqAe.cjs +2 -0
  328. package/dist/overlays-VAh5PqAe.cjs.map +1 -0
  329. package/dist/overlays.cjs +1 -1
  330. package/dist/overlays.js +6 -6
  331. package/dist/{php-deNqvHeU.js → php-5Erp5xxI.js} +1 -1
  332. package/dist/{php-deNqvHeU.js.map → php-5Erp5xxI.js.map} +1 -1
  333. package/dist/{php-Br75m0HU.cjs → php-jOdR0XS8.cjs} +1 -1
  334. package/dist/{php-Br75m0HU.cjs.map → php-jOdR0XS8.cjs.map} +1 -1
  335. package/dist/primitives.cjs +1 -1
  336. package/dist/style-runtime.cjs +1 -1
  337. package/dist/style-runtime.js +1 -1
  338. package/dist/styles.css +1 -1
  339. package/dist/{theme-CgS-bND3.cjs → theme-BaroO-OB.cjs} +2 -2
  340. package/dist/{theme-CgS-bND3.cjs.map → theme-BaroO-OB.cjs.map} +1 -1
  341. package/dist/theme.cjs +1 -1
  342. package/dist/{typescript-CRgqVaw_.cjs → typescript-C65sNL5w.cjs} +1 -1
  343. package/dist/{typescript-CRgqVaw_.cjs.map → typescript-C65sNL5w.cjs.map} +1 -1
  344. package/dist/{typescript-jNfCpQvl.js → typescript-wdQKWfxO.js} +1 -1
  345. package/dist/{typescript-jNfCpQvl.js.map → typescript-wdQKWfxO.js.map} +1 -1
  346. package/dist/{typography-BSBsn0f8.js → typography-CldwDFse.js} +2 -11
  347. package/dist/typography-CldwDFse.js.map +1 -0
  348. package/dist/typography-D7COsP1O.cjs +2 -0
  349. package/dist/typography-D7COsP1O.cjs.map +1 -0
  350. package/dist/typography.cjs +1 -1
  351. package/dist/typography.js +4 -3
  352. package/dist/{useGhostText-tv1LiSPs.cjs → useGhostText-Dg4P606B.cjs} +2 -2
  353. package/dist/{useGhostText-tv1LiSPs.cjs.map → useGhostText-Dg4P606B.cjs.map} +1 -1
  354. package/dist/{useInteractionEffect-D1ZdNbKU.cjs → useInteractionEffect-Bo8285cg.cjs} +2 -2
  355. package/dist/{useInteractionEffect-D1ZdNbKU.cjs.map → useInteractionEffect-Bo8285cg.cjs.map} +1 -1
  356. package/dist/{useKeyboardNav-CkIlAagq.cjs → useKeyboardNav-CyeQtqF8.cjs} +2 -2
  357. package/dist/{useKeyboardNav-CkIlAagq.cjs.map → useKeyboardNav-CyeQtqF8.cjs.map} +1 -1
  358. package/dist/utils/commandPaletteFromAppMenu.d.ts +42 -0
  359. package/dist/utils/creditCards.d.ts +1 -0
  360. package/dist/utils/licensing.d.ts +4 -0
  361. package/dist/utils/validators.d.ts +2 -0
  362. package/dist/utils.cjs +1 -1
  363. package/dist/utils.js +4 -4
  364. package/dist/{validators-H8tNxb8O.js → validators-D5OCyV2h.js} +23 -20
  365. package/dist/validators-D5OCyV2h.js.map +1 -0
  366. package/dist/{validators-BeNTD8mf.cjs → validators-DRhikiAi.cjs} +2 -2
  367. package/dist/validators-DRhikiAi.cjs.map +1 -0
  368. package/dist/{xml-C_ksWBRH.cjs → xml-B2okahIr.cjs} +1 -1
  369. package/dist/{xml-C_ksWBRH.cjs.map → xml-B2okahIr.cjs.map} +1 -1
  370. package/dist/{xml-0Th6YIDv.js → xml-a3b-XevT.js} +1 -1
  371. package/dist/{xml-0Th6YIDv.js.map → xml-a3b-XevT.js.map} +1 -1
  372. package/package.json +1 -1
  373. package/dist/MBadge-B4x-Lx7e.cjs +0 -2
  374. package/dist/MBadge-B4x-Lx7e.cjs.map +0 -1
  375. package/dist/MBadge-_BggwkrM.js +0 -19
  376. package/dist/MBadge-_BggwkrM.js.map +0 -1
  377. package/dist/MButton-DrkVdRDy.cjs +0 -2
  378. package/dist/MButton-DrkVdRDy.cjs.map +0 -1
  379. package/dist/MButton-y9qXhhGt.js.map +0 -1
  380. package/dist/MDataTable-Bx7W-Ari.cjs +0 -2
  381. package/dist/MDataTable-Bx7W-Ari.cjs.map +0 -1
  382. package/dist/MDataTable-ByvNQqNP.js +0 -149
  383. package/dist/MDataTable-ByvNQqNP.js.map +0 -1
  384. package/dist/MDropdownMenu-BmfXSc46.cjs +0 -2
  385. package/dist/MDropdownMenu-BmfXSc46.cjs.map +0 -1
  386. package/dist/MDropdownMenu-D79Cm5aS.js.map +0 -1
  387. package/dist/MImage-BKX-xBm3.js.map +0 -1
  388. package/dist/MImage-YbDKE-1t.cjs +0 -2
  389. package/dist/MImage-YbDKE-1t.cjs.map +0 -1
  390. package/dist/MInline-CHrh3PHH.cjs +0 -2
  391. package/dist/MInline-CHrh3PHH.cjs.map +0 -1
  392. package/dist/MInline-CoMhfX5V.js +0 -39
  393. package/dist/MInline-CoMhfX5V.js.map +0 -1
  394. package/dist/MInputCVC-5NkYSxV8.cjs +0 -2
  395. package/dist/MInputCVC-5NkYSxV8.cjs.map +0 -1
  396. package/dist/MInputCVC-BHpMHTO5.js.map +0 -1
  397. package/dist/MQrCode-ByfmG33y.cjs +0 -2
  398. package/dist/MQrCode-ByfmG33y.cjs.map +0 -1
  399. package/dist/MQrCode-CCtTkkv9.js.map +0 -1
  400. package/dist/MSkeleton-5j1h9s95.cjs +0 -2
  401. package/dist/MSkeleton-5j1h9s95.cjs.map +0 -1
  402. package/dist/MSkeleton-DGhtNmpI.js +0 -98
  403. package/dist/MSkeleton-DGhtNmpI.js.map +0 -1
  404. package/dist/MSparkline-B6qpt5WM.cjs +0 -2
  405. package/dist/MSparkline-B6qpt5WM.cjs.map +0 -1
  406. package/dist/MSparkline-voNWOLNz.js +0 -207
  407. package/dist/MSparkline-voNWOLNz.js.map +0 -1
  408. package/dist/MStack-Bh-R2opf.cjs +0 -2
  409. package/dist/MStack-Bh-R2opf.cjs.map +0 -1
  410. package/dist/MStack-CSaEbepM.js +0 -39
  411. package/dist/MStack-CSaEbepM.js.map +0 -1
  412. package/dist/MSurface-CpiV1-7f.cjs +0 -2
  413. package/dist/MSurface-CpiV1-7f.cjs.map +0 -1
  414. package/dist/MSurface-DJYSftdM.js +0 -39
  415. package/dist/MSurface-DJYSftdM.js.map +0 -1
  416. package/dist/cards-BiYdorB0.cjs +0 -2
  417. package/dist/cards-BiYdorB0.cjs.map +0 -1
  418. package/dist/cards-fn61xD_5.js +0 -1013
  419. package/dist/cards-fn61xD_5.js.map +0 -1
  420. package/dist/controls-C5PtrGZf.cjs +0 -2
  421. package/dist/controls-C5PtrGZf.cjs.map +0 -1
  422. package/dist/controls-DCtMOoQe.js.map +0 -1
  423. package/dist/creditCards-CCysEwry.js.map +0 -1
  424. package/dist/creditCards-ljs044xt.cjs +0 -2
  425. package/dist/creditCards-ljs044xt.cjs.map +0 -1
  426. package/dist/data-BiwK5rfx.js.map +0 -1
  427. package/dist/data-DOuPqg8d.cjs +0 -2
  428. package/dist/data-DOuPqg8d.cjs.map +0 -1
  429. package/dist/display-BafEcBK_.cjs +0 -3
  430. package/dist/display-BafEcBK_.cjs.map +0 -1
  431. package/dist/display-Zxj9YHu_.js.map +0 -1
  432. package/dist/dropdowns-Bw8obCYl.js.map +0 -1
  433. package/dist/dropdowns-DN7j1HhE.cjs +0 -2
  434. package/dist/dropdowns-DN7j1HhE.cjs.map +0 -1
  435. package/dist/feedback-Di0SEpRe.cjs +0 -2
  436. package/dist/frameworkTexts-CvxcWRXp.js.map +0 -1
  437. package/dist/frameworkTexts-abkS5XZK.cjs +0 -2
  438. package/dist/frameworkTexts-abkS5XZK.cjs.map +0 -1
  439. package/dist/inputs-Bcwd_UTr.js.map +0 -1
  440. package/dist/inputs-FP545Yri.cjs +0 -2
  441. package/dist/inputs-FP545Yri.cjs.map +0 -1
  442. package/dist/layout-BpEnTocp.js +0 -936
  443. package/dist/layout-BpEnTocp.js.map +0 -1
  444. package/dist/layout-rtlHrjDb.cjs +0 -2
  445. package/dist/layout-rtlHrjDb.cjs.map +0 -1
  446. package/dist/licensing-CwzqhHH9.js.map +0 -1
  447. package/dist/licensing-ezfo7ZTh.cjs +0 -2
  448. package/dist/licensing-ezfo7ZTh.cjs.map +0 -1
  449. package/dist/media-CiHsgOmu.cjs +0 -2
  450. package/dist/media-CiHsgOmu.cjs.map +0 -1
  451. package/dist/media-IM9mfVAn.js.map +0 -1
  452. package/dist/overlays-CGlqD3rl.js +0 -186
  453. package/dist/overlays-CGlqD3rl.js.map +0 -1
  454. package/dist/overlays-DrSGzbbA.cjs +0 -2
  455. package/dist/overlays-DrSGzbbA.cjs.map +0 -1
  456. package/dist/typography-BSBsn0f8.js.map +0 -1
  457. package/dist/typography-Zo4Usx9I.cjs +0 -2
  458. package/dist/typography-Zo4Usx9I.cjs.map +0 -1
  459. package/dist/validators-BeNTD8mf.cjs.map +0 -1
  460. package/dist/validators-H8tNxb8O.js.map +0 -1
@@ -1,55 +1,55 @@
1
1
  import { t as e } from "./theme-D_f-cmSA.js";
2
- import { $r as t, Ai as n, Ar as r, At as i, Br as a, Cr as o, Dr as s, Ei as c, Fr as l, Gr as u, Hr as d, Ir as f, Jr as p, Kr as m, Li as h, Lr as g, Mr as _, Or as v, Pi as y, Pr as b, Qr as x, Rr as S, Sr as C, Tr as w, Ur as T, Vr as E, Wr as D, Yr as O, dn as k, ei as A, ii as j, jr as M, jt as ee, kr as N, nn as te, qr as ne, sn as re, ti as ie, tn as ae, vr as oe, wr as se, xr as P, zr as F } from "./icons-CfpYxnfg.js";
3
- import { t as I } from "./cn-YER3QsV1.js";
4
- import { t as ce } from "./MPortal-Ba2Sxset.js";
5
- import { t as L } from "./MPopover-Cqz5TsHg.js";
6
- import { t as le } from "./MInline-CoMhfX5V.js";
7
- import { t as R } from "./MText-DcB1GAt-.js";
8
- import { t as ue } from "./MHeading-MPh8Qm9q.js";
9
- import { t as de } from "./MSubText-BFdfBlpS.js";
10
- import { r as fe, t as z } from "./MButton-y9qXhhGt.js";
11
- import { t as B } from "./MCheckbox-B-nT2OBE.js";
12
- import { t as V } from "./MBadge-_BggwkrM.js";
13
- import { n as pe, r as H } from "./MSkeleton-DGhtNmpI.js";
14
- import { t as me } from "./MModal-BDTAgnrm.js";
15
- import { i as U, r as he } from "./MDropdownMenu-D79Cm5aS.js";
16
- import { t as ge } from "./locale-JX_gX03k.js";
17
- import { t as W } from "./MTimeAgo-C4p80NvI.js";
18
- import { t as _e } from "./MImage-BKX-xBm3.js";
19
- import { t as ve } from "./MAvatar-BHASnoyu.js";
20
- import { t as ye } from "./MInputSearch-Dh4C3Tz5.js";
21
- import { a as be, c as xe, d as Se, f as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as G, u as ke } from "./MSparkline-voNWOLNz.js";
22
- import { a as Ae, r as je, t as Me } from "./frameworkTexts-CvxcWRXp.js";
23
- import { t as Ne } from "./MStack-CSaEbepM.js";
24
- import { Children as Pe, createContext as Fe, isValidElement as Ie, useCallback as K, useContext as Le, useEffect as Re, useMemo as q, useRef as J, useState as Y } from "react";
25
- import { Fragment as ze, jsx as X, jsxs as Z } from "react/jsx-runtime";
2
+ import { $r as t, Ai as n, Ar as r, At as i, Br as a, Cr as o, Dr as s, Ei as c, Fr as l, Gr as u, Hr as d, Ir as f, Jr as p, Kr as m, Li as h, Lr as g, Mr as _, Or as v, Pr as y, Qr as b, Rr as x, Sr as S, Tr as C, Ur as w, Vr as T, Wr as E, Yr as D, br as O, cn as k, dn as A, ei as j, en as M, ii as ee, jr as te, jt as ne, kr as re, nn as ie, pi as ae, qr as oe, sn as se, ti as ce, tn as N, vr as le, wr as ue, xr as de, zr as fe } from "./icons-CfpYxnfg.js";
3
+ import { t as P } from "./cn-YER3QsV1.js";
4
+ import { t as pe } from "./MPortal-Ba2Sxset.js";
5
+ import { t as me } from "./MPopover-Cqz5TsHg.js";
6
+ import { n as he, t as ge } from "./MStack-DFIc3S4_.js";
7
+ import { t as F } from "./MText-DcB1GAt-.js";
8
+ import { t as I } from "./MHeading-MPh8Qm9q.js";
9
+ import { t as _e } from "./MSubText-BFdfBlpS.js";
10
+ import { r as L, t as R } from "./MButton-DZLLrtQb.js";
11
+ import { t as ve } from "./MCheckbox-B7SpcD4H.js";
12
+ import { n as ye, r as z, s as B } from "./MSkeleton-BvXgnYs_.js";
13
+ import { t as be } from "./MModal-DGmeQlWo.js";
14
+ import { t as xe } from "./MInputSearch-CmzHPnmC.js";
15
+ import { t as Se } from "./MTooltip-jSf4VBtB.js";
16
+ import { i as Ce, r as we } from "./MDropdownMenu-CeiC1tz3.js";
17
+ import { t as Te } from "./locale-CS1-IY_I.js";
18
+ import { t as V } from "./MTimeAgo-Db8gOade.js";
19
+ import { t as H } from "./MImage-Btx_7g2Z.js";
20
+ import { t as U } from "./MAvatar-BcayQCnp.js";
21
+ import { a as W, c as G, d as Ee, f as De, i as Oe, l as ke, o as Ae, p as je, r as Me, s as Ne, t as Pe, u as Fe } from "./MTreeView-AqH8XMPz.js";
22
+ import { a as Ie, r as Le, t as Re } from "./frameworkTexts-BTFyhWFD.js";
23
+ import { t as ze } from "./MTabs-BQZ--mMq.js";
24
+ import { Children as Be, createContext as Ve, isValidElement as He, useCallback as K, useContext as Ue, useEffect as We, useMemo as q, useRef as J, useState as Y } from "react";
25
+ import { Fragment as Ge, jsx as X, jsxs as Z } from "react/jsx-runtime";
26
26
  //#region src/components/data/MChat/MChatContext.ts
27
- var Be = Fe({});
28
- function Ve() {
29
- return Le(Be);
27
+ var Ke = Ve({});
28
+ function qe() {
29
+ return Ue(Ke);
30
30
  }
31
31
  //#endregion
32
32
  //#region src/components/data/MChat/MChat.tsx
33
- function He(e, t) {
34
- return Ie(e) && !!e.type[t];
33
+ function Je(e, t) {
34
+ return He(e) && !!e.type[t];
35
35
  }
36
- function Ue({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color: a = "primary", className: o, children: s, ...c }) {
36
+ function Ye({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color: a = "primary", className: o, children: s, ...c }) {
37
37
  let l = null, u = null, d = [];
38
- Pe.forEach(s, (e) => {
39
- if (He(e, "__chatHeader")) {
38
+ Be.forEach(s, (e) => {
39
+ if (Je(e, "__chatHeader")) {
40
40
  l = e;
41
41
  return;
42
42
  }
43
- if (He(e, "__chatConversationList")) {
43
+ if (Je(e, "__chatConversationList")) {
44
44
  u = e;
45
45
  return;
46
46
  }
47
47
  d.push(e);
48
48
  });
49
- let f = q(() => ({ color: a }), [a]), p = /* @__PURE__ */ X(Be.Provider, {
49
+ let f = q(() => ({ color: a }), [a]), p = /* @__PURE__ */ X(Ke.Provider, {
50
50
  value: f,
51
51
  children: /* @__PURE__ */ Z("div", {
52
- className: I("chat", e, `color-${a}`, e === "floating" && t && "open", o),
52
+ className: P("chat", e, `color-${a}`, e === "floating" && t && "open", o),
53
53
  ...c,
54
54
  children: [u && /* @__PURE__ */ X("div", {
55
55
  className: "chat-sidebar",
@@ -60,9 +60,9 @@ function Ue({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color
60
60
  })]
61
61
  })
62
62
  });
63
- return e === "floating" ? /* @__PURE__ */ X(ce, { children: /* @__PURE__ */ Z("div", {
64
- className: I("chat-floating-wrapper", t && "open"),
65
- children: [t && p, /* @__PURE__ */ X(z, {
63
+ return e === "floating" ? /* @__PURE__ */ X(pe, { children: /* @__PURE__ */ Z("div", {
64
+ className: P("chat-floating-wrapper", t && "open"),
65
+ children: [t && p, /* @__PURE__ */ X(R, {
66
66
  variant: "filled",
67
67
  color: a,
68
68
  shape: "circle",
@@ -79,31 +79,31 @@ function Ue({ variant: e = "inline", open: t, onToggle: n, unreadCount: r, color
79
79
  }
80
80
  //#endregion
81
81
  //#region src/components/data/MChat/MChatHeader.tsx
82
- function We({ bordered: e = !1, className: t, children: n, ...r }) {
82
+ function Xe({ bordered: e = !1, className: t, children: n, ...r }) {
83
83
  return /* @__PURE__ */ X("div", {
84
- className: I("chat-header", e && "bordered", t),
84
+ className: P("chat-header", e && "bordered", t),
85
85
  ...r,
86
86
  children: n
87
87
  });
88
88
  }
89
- We.__chatHeader = !0;
89
+ Xe.__chatHeader = !0;
90
90
  //#endregion
91
91
  //#region src/components/data/MChat/MChatMessage.tsx
92
- function Ge({ status: e }) {
92
+ function Ze({ status: e }) {
93
93
  if (!e) return null;
94
94
  let t = e === "delivered" || e === "read";
95
95
  return /* @__PURE__ */ X("span", {
96
- className: I("chat-status", e === "read" ? "chat-status-read" : ""),
96
+ className: P("chat-status", e === "read" ? "chat-status-read" : ""),
97
97
  "aria-label": e,
98
98
  children: t ? "✓✓" : "✓"
99
99
  });
100
100
  }
101
- function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, className: i, ...a }) {
101
+ function Qe({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, className: i, ...a }) {
102
102
  let { content: o, sender: s, timestamp: c, status: l, isOwn: u, images: d } = e;
103
103
  return /* @__PURE__ */ Z("div", {
104
- className: I("chat-message", u && "own", r || void 0, i),
104
+ className: P("chat-message", u && "own", r || void 0, i),
105
105
  ...a,
106
- children: [t && !u && /* @__PURE__ */ X(ve, {
106
+ children: [t && !u && /* @__PURE__ */ X(U, {
107
107
  src: s.avatar,
108
108
  name: s.name,
109
109
  size: "sm",
@@ -112,16 +112,16 @@ function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
112
112
  }), /* @__PURE__ */ Z("div", {
113
113
  className: "chat-message-content",
114
114
  children: [
115
- !u && /* @__PURE__ */ X(R, {
115
+ !u && /* @__PURE__ */ X(F, {
116
116
  className: "chat-message-sender",
117
117
  color: "neutral",
118
118
  children: s.name
119
119
  }),
120
120
  /* @__PURE__ */ Z("div", {
121
121
  className: "chat-message-bubble",
122
- children: [o && /* @__PURE__ */ X(R, { children: o }), d && d.length > 0 && /* @__PURE__ */ X("div", {
123
- className: I("chat-message-images", d.length > 1 && "grid"),
124
- children: d.map((e, t) => /* @__PURE__ */ X(_e, {
122
+ children: [o && /* @__PURE__ */ X(F, { children: o }), d && d.length > 0 && /* @__PURE__ */ X("div", {
123
+ className: P("chat-message-images", d.length > 1 && "grid"),
124
+ children: d.map((e, t) => /* @__PURE__ */ X(H, {
125
125
  src: e,
126
126
  alt: "",
127
127
  fit: "cover",
@@ -132,9 +132,9 @@ function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
132
132
  }),
133
133
  /* @__PURE__ */ Z("div", {
134
134
  className: "chat-message-meta",
135
- children: [u && /* @__PURE__ */ X(Ge, { status: l }), n && /* @__PURE__ */ X(de, {
135
+ children: [u && /* @__PURE__ */ X(Ze, { status: l }), n && /* @__PURE__ */ X(_e, {
136
136
  className: "chat-message-time",
137
- children: /* @__PURE__ */ X(W, { value: c })
137
+ children: /* @__PURE__ */ X(V, { value: c })
138
138
  })]
139
139
  })
140
140
  ]
@@ -143,19 +143,19 @@ function Ke({ message: e, showAvatar: t = !0, showTimestamp: n = !0, color: r, c
143
143
  }
144
144
  //#endregion
145
145
  //#region src/components/data/MChat/MChatBody.tsx
146
- function qe({ messages: e, onScrollTop: t, loading: n = !1, color: r, className: i, children: a, ...o }) {
147
- let { color: s } = Ve(), c = r ?? s, l = J(null), u = J(!0), d = J(0), f = K(() => {
146
+ function $e({ messages: e, onScrollTop: t, loading: n = !1, color: r, className: i, children: a, ...o }) {
147
+ let { color: s } = qe(), c = r ?? s, l = J(null), u = J(!0), d = J(0), f = K(() => {
148
148
  let e = l.current;
149
149
  e && (e.scrollTop = e.scrollHeight);
150
150
  }, []);
151
- return Re(() => {
151
+ return We(() => {
152
152
  let t = e?.length ?? 0;
153
153
  t > d.current && u.current && f(), d.current = t;
154
- }, [e?.length, f]), Re(() => {
154
+ }, [e?.length, f]), We(() => {
155
155
  f();
156
156
  }, [f]), /* @__PURE__ */ Z("div", {
157
157
  ref: l,
158
- className: I("chat-body", i),
158
+ className: P("chat-body", i),
159
159
  onScroll: () => {
160
160
  let e = l.current;
161
161
  e && (u.current = e.scrollHeight - e.scrollTop - e.clientHeight < 40, e.scrollTop < 40 && t && !n && t());
@@ -164,9 +164,9 @@ function qe({ messages: e, onScrollTop: t, loading: n = !1, color: r, className:
164
164
  children: [
165
165
  n && /* @__PURE__ */ X("div", {
166
166
  className: "chat-body-loader",
167
- children: /* @__PURE__ */ X(fe, { size: "sm" })
167
+ children: /* @__PURE__ */ X(L, { size: "sm" })
168
168
  }),
169
- e?.map((e) => /* @__PURE__ */ X(Ke, {
169
+ e?.map((e) => /* @__PURE__ */ X(Qe, {
170
170
  message: e,
171
171
  color: c
172
172
  }, e.id)),
@@ -176,7 +176,7 @@ function qe({ messages: e, onScrollTop: t, loading: n = !1, color: r, className:
176
176
  }
177
177
  //#endregion
178
178
  //#region src/components/data/MChat/emojis.ts
179
- var Je = [
179
+ var et = [
180
180
  {
181
181
  label: "Smileys",
182
182
  emojis: /* @__PURE__ */ "😀.😃.😄.😁.😆.😅.🤣.😂.🙂.😊.😇.🥰.😍.🤩.😘.😗.😋.😛.😜.🤪.😝.🤗.🤔.🫡.🤐.🤨.😐.😑.😶.🫠.😏.😒.🙄.😬.😮‍💨.🤥.😌.😔.😪.🤤.😴.😷.🤒.🤕.🤢.🤮.🤧.🥵.🥶.😵.🤯.🥳.🥸.😎.🤓.🧐".split(".")
@@ -235,9 +235,9 @@ var Je = [
235
235
  "🔔"
236
236
  ]
237
237
  }
238
- ], Ye = "image/png,image/jpeg,image/gif,image/webp";
239
- function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1, showEmoji: r = !0, showAttach: i = !0, onTyping: a, color: o, className: s, ...l }) {
240
- let { color: u } = Ve(), d = o ?? u, [f, p] = Y(""), [m, g] = Y(!1), [_, v] = Y([]), [y, b] = Y([]), [x, S] = Y(!1), C = J(null), w = J(null), T = J(null), E = J(!1), D = J(void 0), O = K((e) => {
238
+ ], tt = "image/png,image/jpeg,image/gif,image/webp";
239
+ function nt({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1, showEmoji: r = !0, showAttach: i = !0, onTyping: a, color: o, className: s, ...l }) {
240
+ let { color: u } = qe(), d = o ?? u, [f, p] = Y(""), [m, g] = Y(!1), [_, v] = Y([]), [y, b] = Y([]), [x, S] = Y(!1), C = J(null), w = J(null), T = J(null), E = J(!1), D = J(void 0), O = K((e) => {
241
241
  let t = e.filter((e) => e.type.startsWith("image/"));
242
242
  t.length !== 0 && (v((e) => [...e, ...t]), t.forEach((e) => {
243
243
  let t = URL.createObjectURL(e);
@@ -246,7 +246,7 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
246
246
  }, []), k = K((e) => {
247
247
  b((t) => (URL.revokeObjectURL(t[e]), t.filter((t, n) => n !== e))), v((t) => t.filter((t, n) => n !== e));
248
248
  }, []);
249
- Re(() => () => y.forEach((e) => URL.revokeObjectURL(e)), []);
249
+ We(() => () => y.forEach((e) => URL.revokeObjectURL(e)), []);
250
250
  let A = K(() => {
251
251
  let t = f.trim();
252
252
  !t && _.length === 0 || n || (e?.(t, _.length > 0 ? _ : void 0), p(""), v([]), b((e) => (e.forEach((e) => URL.revokeObjectURL(e)), [])), C.current && (C.current.style.height = "auto"), E.current && (E.current = !1, a?.(!1)));
@@ -259,36 +259,36 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
259
259
  ]), j = (e) => {
260
260
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), A());
261
261
  }, M = (e) => {
262
- p(e.target.value), N(e.target), a && (E.current || (E.current = !0, a(!0)), clearTimeout(D.current), D.current = setTimeout(() => {
262
+ p(e.target.value), ee(e.target), a && (E.current || (E.current = !0, a(!0)), clearTimeout(D.current), D.current = setTimeout(() => {
263
263
  E.current = !1, a(!1);
264
264
  }, 1500));
265
- }, N = (e) => {
265
+ }, ee = (e) => {
266
266
  e.style.height = "auto", e.style.height = Math.min(e.scrollHeight, 120) + "px";
267
267
  };
268
- Re(() => () => clearTimeout(D.current), []);
268
+ We(() => () => clearTimeout(D.current), []);
269
269
  let te = (e) => {
270
270
  p((t) => t + e), g(!1), C.current?.focus();
271
- }, ne = (e) => {
272
- e.preventDefault(), S(!0);
273
271
  }, re = (e) => {
274
- e.preventDefault(), S(!1);
272
+ e.preventDefault(), S(!0);
275
273
  }, ie = (e) => {
274
+ e.preventDefault(), S(!1);
275
+ }, ae = (e) => {
276
276
  e.preventDefault(), S(!1), O(Array.from(e.dataTransfer.files));
277
- }, ae = () => {
277
+ }, oe = () => {
278
278
  let e = T.current?.files;
279
279
  e && O(Array.from(e)), T.current && (T.current.value = "");
280
- }, oe = f.trim() || _.length > 0;
280
+ }, se = f.trim() || _.length > 0;
281
281
  return /* @__PURE__ */ Z("div", {
282
- className: I("chat-input", x && "drag-over", s),
283
- onDragOver: ne,
284
- onDragLeave: re,
285
- onDrop: ie,
282
+ className: P("chat-input", x && "drag-over", s),
283
+ onDragOver: re,
284
+ onDragLeave: ie,
285
+ onDrop: ae,
286
286
  ...l,
287
287
  children: [y.length > 0 && /* @__PURE__ */ X("div", {
288
288
  className: "chat-input-previews",
289
289
  children: y.map((e, t) => /* @__PURE__ */ Z("div", {
290
290
  className: "chat-input-preview",
291
- children: [/* @__PURE__ */ X(_e, {
291
+ children: [/* @__PURE__ */ X(H, {
292
292
  src: e,
293
293
  alt: "",
294
294
  fit: "cover",
@@ -305,7 +305,7 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
305
305
  }), /* @__PURE__ */ Z("div", {
306
306
  className: "chat-input-field",
307
307
  children: [
308
- r && /* @__PURE__ */ Z(ze, { children: [/* @__PURE__ */ X("button", {
308
+ r && /* @__PURE__ */ Z(Ge, { children: [/* @__PURE__ */ X("button", {
309
309
  ref: w,
310
310
  type: "button",
311
311
  className: "chat-input-emoji-trigger",
@@ -313,14 +313,14 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
313
313
  "aria-label": "Emoji",
314
314
  disabled: n,
315
315
  children: "😊"
316
- }), /* @__PURE__ */ X(L, {
316
+ }), /* @__PURE__ */ X(me, {
317
317
  open: m,
318
318
  anchorRef: w,
319
319
  onClose: () => g(!1),
320
320
  placement: "top-start",
321
321
  children: /* @__PURE__ */ X("div", {
322
322
  className: "chat-emoji-picker",
323
- children: Je.map((e) => /* @__PURE__ */ Z("div", {
323
+ children: et.map((e) => /* @__PURE__ */ Z("div", {
324
324
  className: "chat-emoji-category",
325
325
  children: [/* @__PURE__ */ X("div", {
326
326
  className: "chat-emoji-category-label",
@@ -337,13 +337,13 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
337
337
  }, e.label))
338
338
  })
339
339
  })] }),
340
- i && /* @__PURE__ */ Z(ze, { children: [/* @__PURE__ */ X("input", {
340
+ i && /* @__PURE__ */ Z(Ge, { children: [/* @__PURE__ */ X("input", {
341
341
  ref: T,
342
342
  type: "file",
343
- accept: Ye,
343
+ accept: tt,
344
344
  multiple: !0,
345
345
  className: "chat-input-file-hidden",
346
- onChange: ae,
346
+ onChange: oe,
347
347
  tabIndex: -1
348
348
  }), /* @__PURE__ */ X("button", {
349
349
  type: "button",
@@ -363,7 +363,7 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
363
363
  disabled: n,
364
364
  rows: 1
365
365
  }),
366
- /* @__PURE__ */ X(z, {
366
+ /* @__PURE__ */ X(R, {
367
367
  variant: "filled",
368
368
  size: "sm",
369
369
  color: d ?? "primary",
@@ -371,9 +371,9 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
371
371
  shape: "circle",
372
372
  className: "chat-input-send",
373
373
  onClick: A,
374
- disabled: n || !oe,
374
+ disabled: n || !se,
375
375
  "aria-label": "Send",
376
- children: /* @__PURE__ */ X(ee, {})
376
+ children: /* @__PURE__ */ X(ne, {})
377
377
  })
378
378
  ]
379
379
  })]
@@ -381,14 +381,14 @@ function Xe({ onSend: e, placeholder: t = "Type a message…", disabled: n = !1,
381
381
  }
382
382
  //#endregion
383
383
  //#region src/components/data/MChat/MChatTypingIndicator.tsx
384
- function Ze({ users: e = [], visible: t = !0, className: n, ...r }) {
384
+ function rt({ users: e = [], visible: t = !0, className: n, ...r }) {
385
385
  if (!t || e.length === 0) return null;
386
386
  let i = e.length === 1 ? `${e[0].name} is typing` : e.length === 2 ? `${e[0].name} and ${e[1].name} are typing` : `${e[0].name} and ${e.length - 1} others are typing`;
387
387
  return /* @__PURE__ */ Z("div", {
388
- className: I("chat-typing", n),
388
+ className: P("chat-typing", n),
389
389
  "aria-label": i,
390
390
  ...r,
391
- children: [e.length === 1 && /* @__PURE__ */ X(ve, {
391
+ children: [e.length === 1 && /* @__PURE__ */ X(U, {
392
392
  src: e[0].avatar,
393
393
  name: e[0].name,
394
394
  size: "sm",
@@ -405,20 +405,20 @@ function Ze({ users: e = [], visible: t = !0, className: n, ...r }) {
405
405
  }
406
406
  //#endregion
407
407
  //#region src/components/data/MChat/MChatConversationList.tsx
408
- function Qe({ className: e, children: t, ...n }) {
408
+ function it({ className: e, children: t, ...n }) {
409
409
  return /* @__PURE__ */ X("div", {
410
- className: I("chat-conversation-list", e),
410
+ className: P("chat-conversation-list", e),
411
411
  ...n,
412
412
  children: t
413
413
  });
414
414
  }
415
- Qe.__chatConversationList = !0;
415
+ it.__chatConversationList = !0;
416
416
  //#endregion
417
417
  //#region src/components/data/MChat/MChatConversationItem.tsx
418
- function $e({ conversation: e, active: t = !1, color: n, onClick: r, className: i, ...a }) {
419
- let { color: o } = Ve(), s = n ?? o, { title: c, participants: l, lastMessage: u, unreadCount: d } = e, f = c ?? l.map((e) => e.name).join(", "), p = l[0], m = l.some((e) => e.online);
418
+ function at({ conversation: e, active: t = !1, color: n, onClick: r, className: i, ...a }) {
419
+ let { color: o } = qe(), s = n ?? o, { title: c, participants: l, lastMessage: u, unreadCount: d } = e, f = c ?? l.map((e) => e.name).join(", "), p = l[0], m = l.some((e) => e.online);
420
420
  return /* @__PURE__ */ Z("div", {
421
- className: I("chat-conversation-item", t && "active", i),
421
+ className: P("chat-conversation-item", t && "active", i),
422
422
  onClick: () => r?.(e),
423
423
  role: "button",
424
424
  tabIndex: 0,
@@ -426,7 +426,7 @@ function $e({ conversation: e, active: t = !1, color: n, onClick: r, className:
426
426
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r?.(e));
427
427
  },
428
428
  ...a,
429
- children: [/* @__PURE__ */ X(ve, {
429
+ children: [/* @__PURE__ */ X(U, {
430
430
  src: p?.avatar,
431
431
  name: p?.name,
432
432
  size: "md",
@@ -438,19 +438,19 @@ function $e({ conversation: e, active: t = !1, color: n, onClick: r, className:
438
438
  className: "chat-conversation-info",
439
439
  children: [/* @__PURE__ */ Z("div", {
440
440
  className: "chat-conversation-top",
441
- children: [/* @__PURE__ */ X(R, {
441
+ children: [/* @__PURE__ */ X(F, {
442
442
  className: "chat-conversation-name",
443
443
  children: f
444
- }), u && /* @__PURE__ */ X(de, {
444
+ }), u && /* @__PURE__ */ X(_e, {
445
445
  className: "chat-conversation-time",
446
- children: /* @__PURE__ */ X(W, { value: u.timestamp })
446
+ children: /* @__PURE__ */ X(V, { value: u.timestamp })
447
447
  })]
448
448
  }), u && /* @__PURE__ */ Z("div", {
449
449
  className: "chat-conversation-bottom",
450
- children: [/* @__PURE__ */ Z(de, {
450
+ children: [/* @__PURE__ */ Z(_e, {
451
451
  className: "chat-conversation-preview",
452
452
  children: [u.isOwn ? "You: " : "", u.content]
453
- }), !!d && d > 0 && /* @__PURE__ */ X(V, {
453
+ }), !!d && d > 0 && /* @__PURE__ */ X(B, {
454
454
  color: s ?? "primary",
455
455
  size: "sm",
456
456
  rounded: !0,
@@ -461,260 +461,19 @@ function $e({ conversation: e, active: t = !1, color: n, onClick: r, className:
461
461
  });
462
462
  }
463
463
  //#endregion
464
- //#region src/components/data/MTreeView/MTreeView.tsx
465
- var et = {
466
- pdf: /* @__PURE__ */ X(A, {}),
467
- ts: /* @__PURE__ */ X(T, {}),
468
- tsx: /* @__PURE__ */ X(D, {}),
469
- js: /* @__PURE__ */ X(M, {}),
470
- jsx: /* @__PURE__ */ X(x, {}),
471
- css: /* @__PURE__ */ X(se, {}),
472
- scss: /* @__PURE__ */ X(se, {}),
473
- html: /* @__PURE__ */ X(N, {}),
474
- json: /* @__PURE__ */ X(_, {}),
475
- md: /* @__PURE__ */ X(b, {}),
476
- txt: /* @__PURE__ */ X(u, {}),
477
- csv: /* @__PURE__ */ X(w, {}),
478
- zip: /* @__PURE__ */ X(O, {}),
479
- rar: /* @__PURE__ */ X(E, {}),
480
- svg: /* @__PURE__ */ X(d, {}),
481
- png: /* @__PURE__ */ X(F, {}),
482
- jpg: /* @__PURE__ */ X(r, {}),
483
- jpeg: /* @__PURE__ */ X(t, {}),
484
- gif: /* @__PURE__ */ X(v, {}),
485
- webp: /* @__PURE__ */ X(m, {}),
486
- php: /* @__PURE__ */ X(S, {}),
487
- xml: /* @__PURE__ */ X(p, {}),
488
- xls: /* @__PURE__ */ X(ne, {}),
489
- ppt: /* @__PURE__ */ X(a, {}),
490
- odt: /* @__PURE__ */ X(g, {}),
491
- exe: /* @__PURE__ */ X(s, {}),
492
- mp3: /* @__PURE__ */ X(l, {}),
493
- mp4: /* @__PURE__ */ X(f, {})
494
- };
495
- function tt(e) {
496
- let t = e.lastIndexOf(".");
497
- return t < 1 ? null : e.slice(t + 1).toLowerCase();
498
- }
499
- function nt(e) {
500
- return e.kind === "folder" || !!e.children?.length;
501
- }
502
- function rt(e) {
503
- let t = tt(e);
504
- return t ? et[t] ?? /* @__PURE__ */ X(ie, {}) : /* @__PURE__ */ X(j, {});
505
- }
506
- function it(e, t, n) {
507
- return e.icon ? e.icon : n ? nt(e) ? X(t ? C : o, {}) : rt(e.label) : null;
508
- }
509
- function at(e) {
510
- let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
511
- function r(e) {
512
- t.set(e.id, e);
513
- let i = /* @__PURE__ */ new Set();
514
- for (let t of e.children ?? []) i.add(t.id), r(t).forEach((e) => i.add(e));
515
- return n.set(e.id, i), i;
516
- }
517
- return e.forEach(r), {
518
- nodeMap: t,
519
- descendants: n
520
- };
521
- }
522
- function ot(e, t) {
523
- return typeof window > "u" ? {
524
- x: e,
525
- y: t
526
- } : {
527
- x: Math.max(8, Math.min(e, window.innerWidth - 220)),
528
- y: Math.max(8, Math.min(t, window.innerHeight - 16))
529
- };
530
- }
531
- function st({ node: e, level: t, expandable: n, selectable: r, expandedIds: i, selectedId: a, draggedId: o, dropTargetId: s, onToggle: c, onSelect: l, indent: u, showLines: d, fileIcons: f, draggable: p, canDropOnNode: m, onContextMenu: h, onDragStart: g, onDragOver: _, onDrop: v, onDragEnd: b }) {
532
- let x = nt(e), S = i.has(e.id), C = a === e.id, w = o === e.id, T = s === e.id, E = m?.(e), D = it(e, S, !!f);
533
- return /* @__PURE__ */ Z("li", {
534
- role: "treeitem",
535
- "aria-expanded": x ? S : void 0,
536
- children: [/* @__PURE__ */ Z("div", {
537
- className: I("item", C && "selected", e.disabled && "disabled", r && !e.disabled && "selectable", p && !e.disabled && "draggable", w && "dragging", E && "can-drop", T && "drop-target"),
538
- style: { paddingLeft: t * u },
539
- draggable: p && !e.disabled,
540
- onClick: () => {
541
- e.disabled || (x && n && c(e.id), r && l?.(e.id, e));
542
- },
543
- onContextMenu: (t) => h?.(t, e),
544
- onDragStart: (t) => g?.(t, e),
545
- onDragOver: (t) => _?.(t, e),
546
- onDrop: (t) => v?.(t, e),
547
- onDragEnd: b,
548
- children: [
549
- /* @__PURE__ */ X("span", {
550
- className: "toggle",
551
- children: x && n ? /* @__PURE__ */ X("span", {
552
- className: I("arrow", S && "expanded"),
553
- children: /* @__PURE__ */ X(y, {})
554
- }) : /* @__PURE__ */ X("span", { className: "spacer" })
555
- }),
556
- D && /* @__PURE__ */ X("span", {
557
- className: "icon",
558
- children: D
559
- }),
560
- /* @__PURE__ */ X("span", {
561
- className: "label",
562
- children: e.label
563
- })
564
- ]
565
- }), x && S && /* @__PURE__ */ X("ul", {
566
- className: "list",
567
- role: "group",
568
- style: d ? { "--line-left": `${t * u + 17}px` } : void 0,
569
- children: (e.children ?? []).map((e) => /* @__PURE__ */ X(st, {
570
- node: e,
571
- level: t + 1,
572
- expandable: n,
573
- selectable: r,
574
- expandedIds: i,
575
- selectedId: a,
576
- draggedId: o,
577
- dropTargetId: s,
578
- onToggle: c,
579
- onSelect: l,
580
- indent: u,
581
- showLines: d,
582
- fileIcons: f,
583
- draggable: p,
584
- canDropOnNode: m,
585
- onContextMenu: h,
586
- onDragStart: g,
587
- onDragOver: _,
588
- onDrop: v,
589
- onDragEnd: b
590
- }, e.id))
591
- })]
592
- });
593
- }
594
- function ct({ items: e, expandable: t = !0, selectable: n = !1, defaultExpanded: r = [], expanded: i, onExpandChange: a, selected: o, onSelect: s, indent: c = 20, showLines: l = !0, fileIcons: u = !0, draggable: d = !1, canDrop: f, onMove: p, contextMenuItems: m, onContextMenuAction: h, className: g, ..._ }) {
595
- 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: ee } = at(e), N = S ? M.get(S) ?? null : null;
596
- Re(() => {
597
- if (!E) return;
598
- function e(e) {
599
- e && O.current && O.current.contains(e.target) || D(null);
600
- }
601
- function t(e) {
602
- e.key === "Escape" && D(null);
603
- }
604
- return document.addEventListener("mousedown", e), document.addEventListener("scroll", e, !0), window.addEventListener("resize", e), document.addEventListener("keydown", t), () => {
605
- document.removeEventListener("mousedown", e), document.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e), document.removeEventListener("keydown", t);
606
- };
607
- }, [E]);
608
- function te(e) {
609
- let t = A.has(e) ? k.filter((t) => t !== e) : [...k, e];
610
- a ? a(t) : y(t);
611
- }
612
- function ne(e, t) {
613
- s ? s(e, t) : x(e);
614
- }
615
- function re() {
616
- C(null), T(null);
617
- }
618
- function ie(e) {
619
- return !N || !d || !p || e.disabled || !nt(e) || e.id === N.id || ee.get(N.id)?.has(e.id) ? !1 : f ? f(N, e) : !0;
620
- }
621
- function ae(e, t) {
622
- if (!m || t.disabled) return;
623
- let n = m(t).filter(Boolean);
624
- if (!n.length) return;
625
- e.preventDefault(), ne(t.id, t);
626
- let r = ot(e.clientX, e.clientY);
627
- D({
628
- node: t,
629
- items: n,
630
- x: r.x,
631
- y: r.y
632
- });
633
- }
634
- function oe(e, t) {
635
- !d || t.disabled || (e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", t.id), D(null), C(t.id));
636
- }
637
- function se(e, t) {
638
- ie(t) && (e.preventDefault(), e.dataTransfer.dropEffect = "move", T(t.id));
639
- }
640
- function P(e, n) {
641
- if (e.preventDefault(), !N || !ie(n)) {
642
- re();
643
- return;
644
- }
645
- p?.({
646
- draggedId: N.id,
647
- draggedNode: N,
648
- targetId: n.id,
649
- targetNode: n
650
- }), t && !A.has(n.id) && te(n.id), re();
651
- }
652
- return /* @__PURE__ */ Z("div", {
653
- className: I("tree", l && "lines", g),
654
- ..._,
655
- children: [/* @__PURE__ */ X("ul", {
656
- className: "list",
657
- role: "tree",
658
- children: e.map((e) => /* @__PURE__ */ X(st, {
659
- node: e,
660
- level: 0,
661
- expandable: t,
662
- selectable: n,
663
- expandedIds: A,
664
- selectedId: j,
665
- draggedId: S,
666
- dropTargetId: w,
667
- onToggle: te,
668
- onSelect: ne,
669
- indent: c,
670
- showLines: l,
671
- fileIcons: u,
672
- draggable: d,
673
- canDropOnNode: ie,
674
- onContextMenu: ae,
675
- onDragStart: oe,
676
- onDragOver: se,
677
- onDrop: P,
678
- onDragEnd: re
679
- }, e.id))
680
- }), E && /* @__PURE__ */ X(ce, { children: /* @__PURE__ */ X("div", {
681
- ref: O,
682
- className: "tree menu",
683
- style: {
684
- top: E.y,
685
- left: E.x
686
- },
687
- role: "menu",
688
- children: E.items.map((e) => /* @__PURE__ */ Z("button", {
689
- type: "button",
690
- className: I("action", e.color, e.disabled && "disabled"),
691
- role: "menuitem",
692
- disabled: e.disabled,
693
- onClick: () => {
694
- e.disabled || (h?.(e.id, E.node), D(null));
695
- },
696
- children: [e.icon && /* @__PURE__ */ X("span", {
697
- className: "icon",
698
- children: e.icon
699
- }), /* @__PURE__ */ X("span", { children: e.label })]
700
- }, e.id))
701
- }) })]
702
- });
703
- }
704
- //#endregion
705
464
  //#region src/components/data/MTaskList/MTaskList.tsx
706
- function lt({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r, className: i, ...a }) {
465
+ function ot({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r, className: i, ...a }) {
707
466
  return /* @__PURE__ */ X("div", {
708
- className: I("task list", `color-${t}`, i),
467
+ className: P("task list", `color-${t}`, i),
709
468
  role: "list",
710
469
  ...a,
711
470
  children: e.map((e) => /* @__PURE__ */ Z("div", {
712
- className: I("task item", e.checked && "checked", e.disabled && "disabled"),
471
+ className: P("task item", e.checked && "checked", e.disabled && "disabled"),
713
472
  role: "listitem",
714
473
  onClick: (t) => {
715
474
  e.disabled || t.target.closest(".checkbox") || r?.(e.id, !(e.checked ?? !1));
716
475
  },
717
- children: [/* @__PURE__ */ X(B, {
476
+ children: [/* @__PURE__ */ X(ve, {
718
477
  className: "task control",
719
478
  checked: e.checked ?? !1,
720
479
  color: t,
@@ -723,7 +482,7 @@ function lt({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r
723
482
  onChange: (t) => r?.(e.id, t.target.checked),
724
483
  clickEffect: "ripple"
725
484
  }), /* @__PURE__ */ X("span", {
726
- className: I("task label", e.checked && n && "done"),
485
+ className: P("task label", e.checked && n && "done"),
727
486
  children: e.label
728
487
  })]
729
488
  }, e.id))
@@ -731,51 +490,51 @@ function lt({ items: e, color: t = "primary", strikethrough: n = !0, onChange: r
731
490
  }
732
491
  //#endregion
733
492
  //#region src/components/data/MFileManager/MFileManager.tsx
734
- var ut = {
735
- pdf: /* @__PURE__ */ X(A, {}),
736
- ts: /* @__PURE__ */ X(T, {}),
737
- tsx: /* @__PURE__ */ X(D, {}),
738
- js: /* @__PURE__ */ X(M, {}),
739
- jsx: /* @__PURE__ */ X(x, {}),
740
- css: /* @__PURE__ */ X(se, {}),
741
- scss: /* @__PURE__ */ X(se, {}),
742
- html: /* @__PURE__ */ X(N, {}),
493
+ var st = {
494
+ pdf: /* @__PURE__ */ X(j, {}),
495
+ ts: /* @__PURE__ */ X(w, {}),
496
+ tsx: /* @__PURE__ */ X(E, {}),
497
+ js: /* @__PURE__ */ X(te, {}),
498
+ jsx: /* @__PURE__ */ X(b, {}),
499
+ css: /* @__PURE__ */ X(ue, {}),
500
+ scss: /* @__PURE__ */ X(ue, {}),
501
+ html: /* @__PURE__ */ X(re, {}),
743
502
  json: /* @__PURE__ */ X(_, {}),
744
- md: /* @__PURE__ */ X(b, {}),
503
+ md: /* @__PURE__ */ X(y, {}),
745
504
  txt: /* @__PURE__ */ X(u, {}),
746
- csv: /* @__PURE__ */ X(w, {}),
747
- zip: /* @__PURE__ */ X(O, {}),
748
- rar: /* @__PURE__ */ X(E, {}),
505
+ csv: /* @__PURE__ */ X(C, {}),
506
+ zip: /* @__PURE__ */ X(D, {}),
507
+ rar: /* @__PURE__ */ X(T, {}),
749
508
  svg: /* @__PURE__ */ X(d, {}),
750
- png: /* @__PURE__ */ X(F, {}),
509
+ png: /* @__PURE__ */ X(fe, {}),
751
510
  jpg: /* @__PURE__ */ X(r, {}),
752
511
  jpeg: /* @__PURE__ */ X(t, {}),
753
512
  gif: /* @__PURE__ */ X(v, {}),
754
513
  webp: /* @__PURE__ */ X(m, {}),
755
- php: /* @__PURE__ */ X(S, {}),
514
+ php: /* @__PURE__ */ X(x, {}),
756
515
  xml: /* @__PURE__ */ X(p, {}),
757
- xls: /* @__PURE__ */ X(ne, {}),
516
+ xls: /* @__PURE__ */ X(oe, {}),
758
517
  ppt: /* @__PURE__ */ X(a, {}),
759
518
  odt: /* @__PURE__ */ X(g, {}),
760
519
  exe: /* @__PURE__ */ X(s, {}),
761
520
  mp3: /* @__PURE__ */ X(l, {}),
762
521
  mp4: /* @__PURE__ */ X(f, {})
763
522
  };
764
- function dt(e) {
523
+ function ct(e) {
765
524
  let t = e.lastIndexOf(".");
766
525
  return t < 1 ? null : e.slice(t + 1).toLowerCase();
767
526
  }
768
527
  function Q(e) {
769
528
  return e?.kind === "folder" || !!e?.children?.length;
770
529
  }
771
- function ft(e) {
772
- let t = dt(e);
773
- return t ? ut[t] ?? /* @__PURE__ */ X(ie, {}) : /* @__PURE__ */ X(j, {});
530
+ function lt(e) {
531
+ let t = ct(e);
532
+ return t ? st[t] ?? /* @__PURE__ */ X(ce, {}) : /* @__PURE__ */ X(ee, {});
774
533
  }
775
- function pt(e, t = !1) {
776
- return e.icon ? e.icon : Q(e) ? X(t ? C : o, {}) : ft(e.label);
534
+ function ut(e, t = !1) {
535
+ return e.icon ? e.icon : Q(e) ? X(t ? S : o, {}) : lt(e.label);
777
536
  }
778
- function mt(e) {
537
+ function dt(e) {
779
538
  if (!e || e < 1) return null;
780
539
  let t = [
781
540
  "B",
@@ -788,7 +547,7 @@ function mt(e) {
788
547
  let i = n >= 100 || r === 0 ? 0 : 1;
789
548
  return `${n.toFixed(i)} ${t[r]}`;
790
549
  }
791
- function ht(e, t) {
550
+ function ft(e, t) {
792
551
  if (!e) return null;
793
552
  let n = e instanceof Date ? e : new Date(e);
794
553
  return Number.isNaN(n.getTime()) ? null : new Intl.DateTimeFormat(t, {
@@ -799,7 +558,7 @@ function ht(e, t) {
799
558
  minute: "2-digit"
800
559
  }).format(n);
801
560
  }
802
- function gt(e) {
561
+ function pt(e) {
803
562
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
804
563
  function r(e, i) {
805
564
  for (let a of e) t.set(a.id, a), n.set(a.id, i), a.children?.length && r(a.children, a.id);
@@ -809,14 +568,14 @@ function gt(e) {
809
568
  parentMap: n
810
569
  };
811
570
  }
812
- function _t(e) {
571
+ function mt(e) {
813
572
  return e.flatMap((e) => Q(e) ? [{
814
573
  ...e,
815
574
  kind: "folder",
816
- children: _t(e.children ?? [])
575
+ children: mt(e.children ?? [])
817
576
  }] : []);
818
577
  }
819
- function vt(e, t, n) {
578
+ function ht(e, t, n) {
820
579
  let r = [], i = e;
821
580
  for (; i;) {
822
581
  let e = t.get(i);
@@ -825,15 +584,15 @@ function vt(e, t, n) {
825
584
  }
826
585
  return r;
827
586
  }
828
- function yt(e, t, n) {
587
+ function gt(e, t, n) {
829
588
  if (!e) return null;
830
589
  let r = t.get(e);
831
590
  return r ? Q(r) ? r.id : n.get(r.id) ?? null : null;
832
591
  }
833
- function bt(e, t) {
592
+ function _t(e, t) {
834
593
  return e ? e.children ?? [] : t;
835
594
  }
836
- function xt(e, t, n, r, i) {
595
+ function vt(e, t, n, r, i) {
837
596
  let a = e ? t.get(e) ?? null : null, o = a ? n.get(a.id) ?? null : null;
838
597
  return {
839
598
  id: e,
@@ -844,18 +603,18 @@ function xt(e, t, n, r, i) {
844
603
  activeFolder: i
845
604
  };
846
605
  }
847
- function St(e, t) {
606
+ function yt(e, t) {
848
607
  return [
849
608
  ...Q(e) ? [] : [{
850
609
  id: "download",
851
610
  label: t.download,
852
- icon: /* @__PURE__ */ X(ae, {}),
611
+ icon: /* @__PURE__ */ X(N, {}),
853
612
  color: "primary"
854
613
  }],
855
614
  {
856
615
  id: "rename",
857
616
  label: t.rename,
858
- icon: /* @__PURE__ */ X(te, {})
617
+ icon: /* @__PURE__ */ X(ie, {})
859
618
  },
860
619
  {
861
620
  id: "move",
@@ -865,49 +624,49 @@ function St(e, t) {
865
624
  {
866
625
  id: "delete",
867
626
  label: t.delete,
868
- icon: /* @__PURE__ */ X(k, {}),
627
+ icon: /* @__PURE__ */ X(A, {}),
869
628
  color: "error"
870
629
  }
871
630
  ];
872
631
  }
873
- function Ct(e, t) {
632
+ function bt(e, t) {
874
633
  return [...Q(e) ? [{
875
634
  id: "new-folder",
876
635
  label: t.newFolder,
877
- icon: /* @__PURE__ */ X(P, {})
878
- }] : [], ...St(e, t)];
879
- }
880
- function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpandChange: i, folderId: a, defaultFolderId: o = null, onFolderChange: s, selectedId: c, onSelectionChange: l, view: u, defaultView: d = "list", onViewChange: f, searchValue: p, defaultSearchValue: m = "", onSearchChange: h, searchable: g = !0, searchPlaceholder: _, showSidebar: v = !0, showPreview: y = !0, emptyText: b, toolbarActions: x = [], onToolbarAction: S, onOpenItem: C, onItemAction: w, onContextMenuAction: T, canDrop: E, onMove: D, renderPreview: O, className: k, ...A }) {
881
- let j = ge(t), M = Ae(), [ee, N] = Y(o), [te, ne] = Y(null), [ie, ae] = Y(d), [se, P] = Y(m), { nodeMap: F, parentMap: ce } = q(() => gt(e), [e]), L = q(() => _t(e), [e]), ue = yt(a === void 0 ? ee : a, F, ce), de = ue ? F.get(ue) ?? null : null, fe = c === void 0 ? te : c, B = fe ? F.get(fe) ?? null : null, pe = B ? B.id : null, H = u ?? ie, me = p ?? se, W = bt(de, e), _e = me.trim().toLowerCase(), ve = vt(ue, F, ce), be = _ ?? M.searchPlaceholder, xe = b ?? M.emptyText, Se = !!(w || T), Ce = q(() => _e ? W.filter((e) => e.label.toLowerCase().includes(_e)) : W, [W, _e]);
882
- function we(e) {
883
- let t = yt(e, F, ce), n = t ? F.get(t) ?? null : null;
884
- s ? s(t, n) : N(t);
636
+ icon: /* @__PURE__ */ X(de, {})
637
+ }] : [], ...yt(e, t)];
638
+ }
639
+ function xt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpandChange: i, folderId: a, defaultFolderId: o = null, onFolderChange: s, selectedId: c, onSelectionChange: l, view: u, defaultView: d = "list", onViewChange: f, searchValue: p, defaultSearchValue: m = "", onSearchChange: h, searchable: g = !0, searchPlaceholder: _, showSidebar: v = !0, showPreview: y = !0, emptyText: b, toolbarActions: x = [], onToolbarAction: S, onOpenItem: C, onItemAction: w, onContextMenuAction: T, canDrop: E, onMove: D, renderPreview: O, className: k, ...A }) {
640
+ let j = Te(t), M = Ie(), [ee, te] = Y(o), [ne, re] = Y(null), [ie, ae] = Y(d), [oe, ce] = Y(m), { nodeMap: N, parentMap: ue } = q(() => pt(e), [e]), de = q(() => mt(e), [e]), fe = gt(a === void 0 ? ee : a, N, ue), pe = fe ? N.get(fe) ?? null : null, me = c === void 0 ? ne : c, I = me ? N.get(me) ?? null : null, _e = I ? I.id : null, L = u ?? ie, ve = p ?? oe, ye = _t(pe, e), z = ve.trim().toLowerCase(), be = ht(fe, N, ue), Se = _ ?? M.searchPlaceholder, V = b ?? M.emptyText, H = !!(w || T), U = q(() => z ? ye.filter((e) => e.label.toLowerCase().includes(z)) : ye, [ye, z]);
641
+ function W(e) {
642
+ let t = gt(e, N, ue), n = t ? N.get(t) ?? null : null;
643
+ s ? s(t, n) : te(t);
885
644
  }
886
- function Te(e, t = ue, n = de) {
887
- let r = xt(e, F, ce, t, n);
888
- l ? l(r) : ne(e);
645
+ function G(e, t = fe, n = pe) {
646
+ let r = vt(e, N, ue, t, n);
647
+ l ? l(r) : re(e);
889
648
  }
890
649
  function Ee(e) {
891
650
  f ? f(e) : ae(e);
892
651
  }
893
652
  function De(e) {
894
- h ? h(e) : P(e);
653
+ h ? h(e) : ce(e);
895
654
  }
896
655
  function Oe(e, t) {
897
- we(e), Te(e, t.id, t);
656
+ W(e), G(e, t.id, t);
898
657
  }
899
- function G(e) {
658
+ function ke(e) {
900
659
  if (Q(e)) {
901
- we(e.id), Te(e.id, e.id, e);
660
+ W(e.id), G(e.id, e.id, e);
902
661
  return;
903
662
  }
904
- Te(e.id);
663
+ G(e.id);
905
664
  }
906
- function ke(e) {
665
+ function Ae(e) {
907
666
  S && S({
908
- ...xt(pe, F, ce, ue, de),
667
+ ...vt(_e, N, ue, fe, pe),
909
668
  actionId: e,
910
- visibleItems: Ce
669
+ visibleItems: U
911
670
  });
912
671
  }
913
672
  function je(e, t) {
@@ -916,12 +675,12 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
916
675
  function Me(e, t) {
917
676
  (T ?? w)?.(e, t);
918
677
  }
919
- function Pe(e) {
920
- let t = [], n = mt(e.size), r = ht(e.modifiedAt, j);
678
+ function Ne(e) {
679
+ let t = [], n = dt(e.size), r = ft(e.modifiedAt, j);
921
680
  return Q(e) && t.push(M.itemsCount(e.children?.length ?? 0)), n && t.push(n), r && t.push(r), t.join(" / ");
922
681
  }
923
682
  return /* @__PURE__ */ Z("div", {
924
- className: I("file-manager", !v && "no-sidebar", !y && "no-preview", k),
683
+ className: P("file-manager", !v && "no-sidebar", !y && "no-preview", k),
925
684
  ...A,
926
685
  children: [/* @__PURE__ */ Z("div", {
927
686
  className: "toolbar",
@@ -932,13 +691,13 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
932
691
  children: [/* @__PURE__ */ Z("button", {
933
692
  type: "button",
934
693
  className: "breadcrumb root",
935
- onClick: () => we(null),
936
- children: [/* @__PURE__ */ X(oe, {}), /* @__PURE__ */ X(R, {
694
+ onClick: () => W(null),
695
+ children: [/* @__PURE__ */ X(le, {}), /* @__PURE__ */ X(F, {
937
696
  as: "span",
938
697
  weight: "semibold",
939
698
  children: M.home
940
699
  })]
941
- }), ve.map((e) => /* @__PURE__ */ Z("div", {
700
+ }), be.map((e) => /* @__PURE__ */ Z("div", {
942
701
  className: "breadcrumbs",
943
702
  children: [/* @__PURE__ */ X("span", {
944
703
  className: "breadcrumb-separator",
@@ -946,41 +705,41 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
946
705
  }), /* @__PURE__ */ X("button", {
947
706
  type: "button",
948
707
  className: "breadcrumb",
949
- onClick: () => we(e.id),
950
- children: /* @__PURE__ */ X(R, {
708
+ onClick: () => W(e.id),
709
+ children: /* @__PURE__ */ X(F, {
951
710
  as: "span",
952
711
  children: e.label
953
712
  })
954
713
  })]
955
714
  }, e.id))]
956
- }), g && /* @__PURE__ */ X(ye, {
715
+ }), g && /* @__PURE__ */ X(xe, {
957
716
  className: "toolbar-search",
958
717
  size: "sm",
959
- placeholder: be,
960
- value: me,
718
+ placeholder: Se,
719
+ value: ve,
961
720
  onChange: (e) => De(e.target.value),
962
721
  onClear: () => De("")
963
722
  })]
964
723
  }), /* @__PURE__ */ Z("div", {
965
724
  className: "toolbar-actions",
966
- children: [x.map((e) => /* @__PURE__ */ X(z, {
725
+ children: [x.map((e) => /* @__PURE__ */ X(R, {
967
726
  size: "sm",
968
727
  variant: e.variant ?? "ghost",
969
728
  color: e.color,
970
729
  disabled: e.disabled,
971
- onClick: () => ke(e.id),
730
+ onClick: () => Ae(e.id),
972
731
  startIcon: e.icon,
973
732
  children: e.label
974
733
  }, e.id)), /* @__PURE__ */ Z("div", {
975
734
  className: "view-switch",
976
- children: [/* @__PURE__ */ X(z, {
735
+ children: [/* @__PURE__ */ X(R, {
977
736
  size: "sm",
978
- variant: H === "list" ? "secondary" : "ghost",
737
+ variant: L === "list" ? "secondary" : "ghost",
979
738
  onClick: () => Ee("list"),
980
739
  children: M.listView
981
- }), /* @__PURE__ */ X(z, {
740
+ }), /* @__PURE__ */ X(R, {
982
741
  size: "sm",
983
- variant: H === "grid" ? "secondary" : "ghost",
742
+ variant: L === "grid" ? "secondary" : "ghost",
984
743
  onClick: () => Ee("grid"),
985
744
  children: M.gridView
986
745
  })]
@@ -993,24 +752,24 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
993
752
  className: "panel",
994
753
  children: [/* @__PURE__ */ Z("div", {
995
754
  className: "panel-header",
996
- children: [/* @__PURE__ */ X(R, {
755
+ children: [/* @__PURE__ */ X(F, {
997
756
  weight: "semibold",
998
757
  children: M.folders
999
- }), /* @__PURE__ */ X(V, {
758
+ }), /* @__PURE__ */ X(B, {
1000
759
  size: "sm",
1001
760
  color: "info",
1002
- children: L.length
761
+ children: de.length
1003
762
  })]
1004
763
  }), /* @__PURE__ */ X("div", {
1005
764
  className: "panel-body sidebar-body",
1006
- children: L.length > 0 ? /* @__PURE__ */ X(ct, {
1007
- items: L,
765
+ children: de.length > 0 ? /* @__PURE__ */ X(Pe, {
766
+ items: de,
1008
767
  selectable: !0,
1009
768
  fileIcons: !0,
1010
769
  defaultExpanded: n,
1011
770
  expanded: r,
1012
771
  onExpandChange: i,
1013
- selected: ue,
772
+ selected: fe,
1014
773
  onSelect: (e, t) => Oe(e, t),
1015
774
  draggable: !!D,
1016
775
  canDrop: E ? (e, t) => E(e, t) : void 0,
@@ -1020,8 +779,8 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1020
779
  targetId: e.targetId,
1021
780
  targetNode: e.targetNode
1022
781
  }) : void 0,
1023
- contextMenuItems: Se ? (e) => Ct(e, M) : void 0,
1024
- onContextMenuAction: Se ? (e, t) => Me(e, t) : void 0
782
+ contextMenuItems: H ? (e) => bt(e, M) : void 0,
783
+ onContextMenuAction: H ? (e, t) => Me(e, t) : void 0
1025
784
  }) : /* @__PURE__ */ X("div", {
1026
785
  className: "empty-state",
1027
786
  children: M.noFoldersAvailable
@@ -1032,47 +791,47 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1032
791
  className: "panel",
1033
792
  children: [/* @__PURE__ */ Z("div", {
1034
793
  className: "panel-header",
1035
- children: [/* @__PURE__ */ Z(le, {
794
+ children: [/* @__PURE__ */ Z(he, {
1036
795
  align: "center",
1037
796
  wrap: "wrap",
1038
- children: [/* @__PURE__ */ X(R, {
797
+ children: [/* @__PURE__ */ X(F, {
1039
798
  weight: "semibold",
1040
- children: de?.label ?? M.home
1041
- }), /* @__PURE__ */ X(V, {
799
+ children: pe?.label ?? M.home
800
+ }), /* @__PURE__ */ X(B, {
1042
801
  size: "sm",
1043
- children: Ce.length
802
+ children: U.length
1044
803
  })]
1045
- }), /* @__PURE__ */ X(R, {
804
+ }), /* @__PURE__ */ X(F, {
1046
805
  size: "sm",
1047
806
  tone: "muted",
1048
- children: _e ? M.filteredBy(me) : M.currentFolder
807
+ children: z ? M.filteredBy(ve) : M.currentFolder
1049
808
  })]
1050
809
  }), /* @__PURE__ */ X("div", {
1051
810
  className: "panel-body",
1052
- children: Ce.length > 0 ? /* @__PURE__ */ X("div", {
1053
- className: I("content-items", H),
1054
- children: Ce.map((e) => {
1055
- let t = pe === e.id, n = Pe(e), r = Se ? St(e, M) : [];
811
+ children: U.length > 0 ? /* @__PURE__ */ X("div", {
812
+ className: P("content-items", L),
813
+ children: U.map((e) => {
814
+ let t = _e === e.id, n = Ne(e), r = H ? yt(e, M) : [];
1056
815
  return /* @__PURE__ */ Z("div", {
1057
- className: I("item-card", t && "selected"),
816
+ className: P("item-card", t && "selected"),
1058
817
  children: [/* @__PURE__ */ Z("button", {
1059
818
  type: "button",
1060
819
  className: "item-card-main",
1061
- onClick: () => G(e),
820
+ onClick: () => ke(e),
1062
821
  onDoubleClick: () => C?.(e),
1063
822
  children: [/* @__PURE__ */ X("span", {
1064
823
  className: "item-icon",
1065
- children: pt(e)
824
+ children: ut(e)
1066
825
  }), /* @__PURE__ */ Z("span", {
1067
826
  className: "item-text",
1068
827
  children: [
1069
- /* @__PURE__ */ X(R, {
828
+ /* @__PURE__ */ X(F, {
1070
829
  as: "span",
1071
830
  weight: "semibold",
1072
831
  truncate: !0,
1073
832
  children: e.label
1074
833
  }),
1075
- e.description ? /* @__PURE__ */ X(R, {
834
+ e.description ? /* @__PURE__ */ X(F, {
1076
835
  as: "span",
1077
836
  size: "sm",
1078
837
  tone: "muted",
@@ -1081,11 +840,11 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1081
840
  }) : null,
1082
841
  /* @__PURE__ */ Z("span", {
1083
842
  className: "item-meta",
1084
- children: [/* @__PURE__ */ X(V, {
843
+ children: [/* @__PURE__ */ X(B, {
1085
844
  size: "sm",
1086
845
  color: Q(e) ? "info" : "primary",
1087
846
  children: Q(e) ? M.folder : M.file
1088
- }), n ? /* @__PURE__ */ X(R, {
847
+ }), n ? /* @__PURE__ */ X(F, {
1089
848
  as: "span",
1090
849
  size: "sm",
1091
850
  tone: "muted",
@@ -1097,16 +856,16 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1097
856
  })]
1098
857
  }), r.length > 0 ? /* @__PURE__ */ X("div", {
1099
858
  className: "item-card-actions",
1100
- children: /* @__PURE__ */ X(U, {
859
+ children: /* @__PURE__ */ X(Ce, {
1101
860
  placement: "bottom-end",
1102
- trigger: /* @__PURE__ */ X(z, {
861
+ trigger: /* @__PURE__ */ X(R, {
1103
862
  "aria-label": `${M.preview}: ${e.label}`,
1104
863
  variant: "ghost",
1105
864
  size: "sm",
1106
865
  iconOnly: !0,
1107
- children: /* @__PURE__ */ X(re, {})
866
+ children: /* @__PURE__ */ X(se, {})
1108
867
  }),
1109
- children: r.map((t) => /* @__PURE__ */ X(he, {
868
+ children: r.map((t) => /* @__PURE__ */ X(we, {
1110
869
  icon: t.icon,
1111
870
  label: t.label,
1112
871
  color: t.color,
@@ -1118,7 +877,7 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1118
877
  })
1119
878
  }) : /* @__PURE__ */ X("div", {
1120
879
  className: "empty-state",
1121
- children: xe
880
+ children: V
1122
881
  })
1123
882
  })]
1124
883
  }),
@@ -1126,60 +885,60 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1126
885
  className: "panel",
1127
886
  children: [/* @__PURE__ */ Z("div", {
1128
887
  className: "panel-header",
1129
- children: [/* @__PURE__ */ X(R, {
888
+ children: [/* @__PURE__ */ X(F, {
1130
889
  weight: "semibold",
1131
890
  children: M.preview
1132
- }), B ? /* @__PURE__ */ X(V, {
891
+ }), I ? /* @__PURE__ */ X(B, {
1133
892
  size: "sm",
1134
- color: Q(B) ? "info" : "primary",
1135
- children: Q(B) ? M.folder : M.file
893
+ color: Q(I) ? "info" : "primary",
894
+ children: Q(I) ? M.folder : M.file
1136
895
  }) : null]
1137
896
  }), /* @__PURE__ */ X("div", {
1138
897
  className: "panel-body",
1139
- children: B ? /* @__PURE__ */ Z(Ne, { children: [
898
+ children: I ? /* @__PURE__ */ Z(ge, { children: [
1140
899
  /* @__PURE__ */ X("div", {
1141
900
  className: "preview-visual",
1142
- children: O ? O(B) : B.preview ? B.preview : /* @__PURE__ */ X("span", {
901
+ children: O ? O(I) : I.preview ? I.preview : /* @__PURE__ */ X("span", {
1143
902
  className: "preview-icon",
1144
- children: pt(B, !0)
903
+ children: ut(I, !0)
1145
904
  })
1146
905
  }),
1147
- /* @__PURE__ */ X(R, {
906
+ /* @__PURE__ */ X(F, {
1148
907
  weight: "semibold",
1149
- children: B.label
908
+ children: I.label
1150
909
  }),
1151
- B.description ? /* @__PURE__ */ X(R, {
910
+ I.description ? /* @__PURE__ */ X(F, {
1152
911
  size: "sm",
1153
912
  tone: "muted",
1154
- children: B.description
913
+ children: I.description
1155
914
  }) : null,
1156
915
  /* @__PURE__ */ Z("div", {
1157
916
  className: "preview-meta",
1158
917
  children: [
1159
- /* @__PURE__ */ X(V, {
918
+ /* @__PURE__ */ X(B, {
1160
919
  size: "sm",
1161
- color: Q(B) ? "info" : "primary",
1162
- children: Q(B) ? M.folder : M.file
920
+ color: Q(I) ? "info" : "primary",
921
+ children: Q(I) ? M.folder : M.file
1163
922
  }),
1164
- mt(B.size) ? /* @__PURE__ */ X(V, {
923
+ dt(I.size) ? /* @__PURE__ */ X(B, {
1165
924
  size: "sm",
1166
- children: mt(B.size)
925
+ children: dt(I.size)
1167
926
  }) : null,
1168
- ht(B.modifiedAt, j) ? /* @__PURE__ */ X(V, {
927
+ ft(I.modifiedAt, j) ? /* @__PURE__ */ X(B, {
1169
928
  size: "sm",
1170
929
  color: "neutral",
1171
- children: ht(B.modifiedAt, j)
930
+ children: ft(I.modifiedAt, j)
1172
931
  }) : null
1173
932
  ]
1174
933
  }),
1175
- /* @__PURE__ */ Z(R, {
934
+ /* @__PURE__ */ Z(F, {
1176
935
  size: "sm",
1177
936
  tone: "muted",
1178
937
  children: [
1179
938
  M.path,
1180
939
  ":",
1181
940
  " ",
1182
- [M.home, ...vt(B.id, F, ce).map((e) => e.label)].join(" / ")
941
+ [M.home, ...ht(I.id, N, ue).map((e) => e.label)].join(" / ")
1183
942
  ]
1184
943
  })
1185
944
  ] }) : /* @__PURE__ */ X("div", {
@@ -1194,40 +953,41 @@ function wt({ items: e, locale: t, defaultExpanded: n = [], expanded: r, onExpan
1194
953
  }
1195
954
  //#endregion
1196
955
  //#region src/components/data/MCalendarBoard/MCalendarBoard.tsx
1197
- function $(e) {
956
+ var St = 24, $ = 60, Ct = 56, wt = 110, Tt = 6, Et = ["rgba(14, 165, 233, 0.85)", "rgba(244, 63, 94, 0.85)"];
957
+ function Dt(e) {
1198
958
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1199
959
  }
1200
- function Tt(e) {
960
+ function Ot(e) {
1201
961
  if (!e) return null;
1202
- if (e instanceof Date) return $(e);
962
+ if (e instanceof Date) return Dt(e);
1203
963
  let t = new Date(e);
1204
- return Number.isNaN(t.getTime()) ? null : $(t);
964
+ return Number.isNaN(t.getTime()) ? null : Dt(t);
1205
965
  }
1206
- function Et(e) {
966
+ function kt(e) {
1207
967
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
1208
968
  }
1209
- function Dt(e) {
1210
- return Tt(e.date);
969
+ function At(e) {
970
+ return Ot(e.date);
1211
971
  }
1212
- function Ot(e, t) {
972
+ function jt(e, t) {
1213
973
  let n = new Date(e);
1214
- return n.setDate(n.getDate() + t), $(n);
974
+ return n.setDate(n.getDate() + t), Dt(n);
1215
975
  }
1216
- function kt(e, t) {
1217
- let n = $(e);
1218
- return Ot(n, -((n.getDay() - t + 7) % 7));
976
+ function Mt(e, t) {
977
+ let n = Dt(e);
978
+ return jt(n, -((n.getDay() - t + 7) % 7));
1219
979
  }
1220
- function At(e) {
980
+ function Nt(e) {
1221
981
  return [...e].sort((e, t) => {
1222
982
  let n = e.startTime ?? "99:99", r = t.startTime ?? "99:99";
1223
983
  return n.localeCompare(r);
1224
984
  });
1225
985
  }
1226
- function jt(e, t) {
1227
- let n = kt(new Date(e.getFullYear(), e.getMonth(), 1), t);
1228
- return Array.from({ length: 42 }, (e, t) => Ot(n, t));
986
+ function Pt(e, t) {
987
+ let n = Mt(new Date(e.getFullYear(), e.getMonth(), 1), t);
988
+ return Array.from({ length: 42 }, (e, t) => jt(n, t));
1229
989
  }
1230
- function Mt(e) {
990
+ function Ft(e) {
1231
991
  switch (e) {
1232
992
  case "active": return "rgba(14, 165, 233, 1)";
1233
993
  case "done": return "rgba(34, 197, 94, 1)";
@@ -1235,7 +995,10 @@ function Mt(e) {
1235
995
  default: return "rgba(245, 158, 11, 1)";
1236
996
  }
1237
997
  }
1238
- function Nt(e, t) {
998
+ function It(e) {
999
+ return e.color ?? Ft(e.status);
1000
+ }
1001
+ function Lt(e, t) {
1239
1002
  return new Intl.DateTimeFormat(t, {
1240
1003
  weekday: "long",
1241
1004
  day: "numeric",
@@ -1243,77 +1006,163 @@ function Nt(e, t) {
1243
1006
  year: "numeric"
1244
1007
  }).format(e);
1245
1008
  }
1246
- function Pt(e, t) {
1247
- let n = Ot(e, 6), r = new Intl.DateTimeFormat(t, {
1009
+ function Rt(e, t) {
1010
+ let n = jt(e, 6), r = new Intl.DateTimeFormat(t, {
1248
1011
  day: "numeric",
1249
1012
  month: "short"
1250
1013
  });
1251
1014
  return `${r.format(e)} - ${r.format(n)}`;
1252
1015
  }
1253
- function Ft(e, t) {
1016
+ function zt(e, t) {
1254
1017
  return e.startTime && e.endTime ? `${e.startTime} - ${e.endTime}` : e.startTime ? e.startTime : t.allDay;
1255
1018
  }
1256
- function It(e, t) {
1019
+ function Bt(e) {
1020
+ let t = /^(\d{1,2}):(\d{2})$/.exec(e);
1021
+ return t ? Number(t[1]) * 60 + Number(t[2]) : null;
1022
+ }
1023
+ function Vt(e) {
1024
+ if (!e.startTime || !e.endTime) return null;
1025
+ let t = Bt(e.startTime), n = Bt(e.endTime);
1026
+ if (t === null || n === null || n <= t) return null;
1027
+ let r = n - t, i = Math.floor(r / 60), a = r % 60;
1028
+ return i === 0 ? `${a}m` : a === 0 ? `${i}h` : `${i}h ${a}m`;
1029
+ }
1030
+ function Ht(e, t) {
1257
1031
  let n = /* @__PURE__ */ new Date(), r = new Date(e);
1258
1032
  r.setHours(t, 0, 0, 0);
1259
1033
  let i = new Date(r);
1260
1034
  return i.setHours(t + 1, 0, 0, 0), i <= n ? "past" : r <= n && i > n ? "active" : "upcoming";
1261
1035
  }
1262
- function Lt(e) {
1263
- return At(e).slice(0, 4).map((e) => /* @__PURE__ */ X("span", {
1264
- className: "marker",
1265
- style: { background: e.color ?? Mt(e.status) },
1266
- "aria-hidden": "true"
1267
- }, e.id));
1036
+ function Ut(e) {
1037
+ if (!e) return null;
1038
+ let [t, n] = e.split(":"), r = Number(t), i = Number(n ?? 0);
1039
+ return Number.isNaN(r) || Number.isNaN(i) ? null : r * $ + i;
1040
+ }
1041
+ function Wt(e) {
1042
+ let t = Ut(e.startTime);
1043
+ if (t === null) return null;
1044
+ let n = Ut(e.endTime), r = n !== null && n > t ? n : t + $;
1045
+ return {
1046
+ start: t,
1047
+ end: Math.min(r, St * $)
1048
+ };
1049
+ }
1050
+ function Gt(e, t) {
1051
+ let n = t * $, r = n + $, i = [];
1052
+ return e.forEach((e) => {
1053
+ let t = Wt(e);
1054
+ if (!t) return;
1055
+ let a = Math.max(t.start, n), o = Math.min(t.end, r);
1056
+ o <= a || i.push({
1057
+ event: e,
1058
+ fromPercent: (a - n) / $ * 100,
1059
+ toPercent: (o - n) / $ * 100
1060
+ });
1061
+ }), i;
1268
1062
  }
1269
- function Rt(e, t, n) {
1063
+ function Kt(e) {
1064
+ let t = /* @__PURE__ */ new Set(), n = e.map((e) => {
1065
+ let t = Wt(e);
1066
+ return t ? {
1067
+ event: e,
1068
+ ...t
1069
+ } : null;
1070
+ }).filter((e) => e !== null).sort((e, t) => e.start - t.start);
1071
+ for (let e = 0; e < n.length; e += 1) for (let r = e + 1; r < n.length && !(n[r].start >= n[e].end); r += 1) t.add(n[e].event.id), t.add(n[r].event.id);
1072
+ return t;
1073
+ }
1074
+ function qt(e, t, n) {
1270
1075
  if (!t.length || !n.length) return e;
1271
1076
  let r = t.filter((e) => n.includes(e.id));
1272
1077
  return r.length ? e.filter((e) => r.some((t) => t.predicate(e))) : e;
1273
1078
  }
1274
- function zt(e, t, n, r) {
1275
- return t === "week" ? Pt(kt(e, r), n) : new Intl.DateTimeFormat(n, {
1079
+ function Jt(e, t, n, r) {
1080
+ return t === "week" ? Rt(Mt(e, r), n) : new Intl.DateTimeFormat(n, {
1276
1081
  month: "long",
1277
1082
  year: "numeric"
1278
1083
  }).format(e);
1279
1084
  }
1280
- function Bt(e, t) {
1085
+ function Yt(e, t) {
1281
1086
  return e === "week" ? t.weekView : t.monthView;
1282
1087
  }
1283
- function Vt({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHour: i, showTimeline: a, emptyStateText: o, renderEventItem: s }) {
1284
- if (!e) return null;
1285
- let c = Me();
1286
- return /* @__PURE__ */ Z(Ne, { children: [
1287
- /* @__PURE__ */ Z(Ne, { children: [/* @__PURE__ */ X(ue, {
1288
- level: 4,
1289
- children: Nt(e, n)
1290
- }), /* @__PURE__ */ X(R, {
1291
- tone: "muted",
1292
- size: "sm",
1293
- children: t.length > 0 ? c.itemsCount(t.length) : o
1294
- })] }),
1295
- /* @__PURE__ */ X(Kt, {
1296
- events: t,
1297
- locale: n,
1298
- currentDate: e,
1299
- emptyStateText: o,
1300
- renderEventItem: s
1301
- }),
1302
- a && /* @__PURE__ */ X(qt, {
1303
- date: e,
1304
- events: t,
1305
- locale: n,
1306
- startHour: r,
1307
- endHour: i
1088
+ function Xt(e, t) {
1089
+ let n = [];
1090
+ return e && n.push({
1091
+ id: "add",
1092
+ label: t ?? "Add event",
1093
+ icon: /* @__PURE__ */ X(O, {}),
1094
+ onSelect: (t) => e(t)
1095
+ }), n;
1096
+ }
1097
+ function Zt(e, t, n) {
1098
+ let r = [];
1099
+ e.href && r.push({
1100
+ id: "open",
1101
+ label: "Open",
1102
+ icon: /* @__PURE__ */ X(M, {}),
1103
+ href: e.href
1104
+ });
1105
+ let i = e.onEdit ?? t;
1106
+ i && r.push({
1107
+ id: "edit",
1108
+ label: "Edit",
1109
+ icon: /* @__PURE__ */ X(ie, {}),
1110
+ onSelect: i
1111
+ });
1112
+ let a = e.onDelete ?? n;
1113
+ return a && r.push({
1114
+ id: "delete",
1115
+ label: "Delete",
1116
+ icon: /* @__PURE__ */ X(A, {}),
1117
+ color: "error",
1118
+ onSelect: a
1119
+ }), r;
1120
+ }
1121
+ function Qt({ date: e, events: t, overlapWarning: n = !1, orientation: r = "vertical", className: i, ...a }) {
1122
+ let o = Re(), s = q(() => Kt(t), [t]), c = Array.from({ length: St }, (e, t) => t);
1123
+ return /* @__PURE__ */ X("div", {
1124
+ className: P("calendar hourbar", r, i),
1125
+ "aria-hidden": "true",
1126
+ ...a,
1127
+ children: c.map((e) => {
1128
+ let r = Gt(t, e), i = Math.min(100, r.reduce((e, t) => e + (t.toPercent - t.fromPercent), 0)), a = n && r.some((e) => s.has(e.event.id));
1129
+ return /* @__PURE__ */ X("div", {
1130
+ className: P("hourbar slot", r.length > 0 && "filled", a && "overlap"),
1131
+ style: { "--mineral-hourbar-fill": `${i}%` },
1132
+ children: r.map((e, t) => {
1133
+ let n = a && r.length > 1 ? Et[t % Et.length] : It(e.event), i = Vt(e.event), s = zt(e.event, o);
1134
+ return /* @__PURE__ */ X(Se, {
1135
+ placement: "left",
1136
+ delay: 120,
1137
+ className: "hourbar segment-wrapper",
1138
+ style: {
1139
+ position: "absolute",
1140
+ left: 0,
1141
+ right: 0,
1142
+ top: `${e.fromPercent}%`,
1143
+ height: `${e.toPercent - e.fromPercent}%`,
1144
+ background: n
1145
+ },
1146
+ content: /* @__PURE__ */ Z("div", {
1147
+ className: "hourbar tooltip-content",
1148
+ children: [/* @__PURE__ */ X("strong", { children: e.event.title }), /* @__PURE__ */ X("span", { children: i ? `${s} · ${i}` : s })]
1149
+ }),
1150
+ children: /* @__PURE__ */ X("span", {
1151
+ className: "hourbar segment-fill",
1152
+ "aria-hidden": "true"
1153
+ })
1154
+ }, `${e.event.id}-${t}`);
1155
+ })
1156
+ }, e);
1308
1157
  })
1309
- ] });
1158
+ });
1310
1159
  }
1311
- function Ht({ filters: e, activeFilterIds: t, onToggle: n }) {
1160
+ function $t({ filters: e, activeFilterIds: t, onToggle: n }) {
1312
1161
  return e.length ? /* @__PURE__ */ X("div", {
1313
1162
  className: "calendar filters",
1314
1163
  children: e.map((e) => {
1315
1164
  let r = t.includes(e.id);
1316
- return /* @__PURE__ */ X(z, {
1165
+ return /* @__PURE__ */ X(R, {
1317
1166
  type: "button",
1318
1167
  size: "sm",
1319
1168
  variant: "outlined",
@@ -1326,361 +1175,661 @@ function Ht({ filters: e, activeFilterIds: t, onToggle: n }) {
1326
1175
  })
1327
1176
  }) : null;
1328
1177
  }
1329
- function Ut({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInteract: i, onDayHover: a, onDayLeave: o, dayBadge: s, renderDayCell: c }) {
1330
- let l = Et($(/* @__PURE__ */ new Date()));
1178
+ function en({ days: e, eventsByDay: t, selectedDate: n, activeDate: r, onDayInteract: i, dayBadge: a, renderDayCell: o, showHourBar: s, overlapWarning: c, onAddEvent: l, addEventLabel: u }) {
1179
+ let d = kt(Dt(/* @__PURE__ */ new Date()));
1331
1180
  return /* @__PURE__ */ X("div", {
1332
1181
  className: "calendar week",
1333
1182
  children: e.map((e) => {
1334
- let u = Et(e), d = t.get(u) ?? [], f = s?.(e, d) ?? (d.length > 0 ? /* @__PURE__ */ X(V, {
1183
+ let f = kt(e), p = t.get(f) ?? [], m = a?.(e, p) ?? (p.length > 0 ? /* @__PURE__ */ X(B, {
1335
1184
  size: "sm",
1336
- children: d.length
1337
- }) : null), p = Lt(d), m = !!(n && Et(n) === u), h = {
1185
+ children: p.length
1186
+ }) : null), h = !!(n && kt(n) === f), g = {
1338
1187
  date: e,
1339
- events: d,
1340
- badge: f,
1341
- isToday: u === l,
1342
- isSelected: m,
1188
+ events: p,
1189
+ badge: m,
1190
+ isToday: f === d,
1191
+ isSelected: h,
1343
1192
  isOutsideMonth: !1
1344
1193
  };
1345
1194
  return /* @__PURE__ */ X("div", {
1346
1195
  className: "calendar week column",
1347
- children: /* @__PURE__ */ X(Wt, {
1196
+ children: /* @__PURE__ */ X(tn, {
1348
1197
  date: e,
1349
- events: d,
1350
- badge: f,
1351
- markers: p,
1352
- isToday: h.isToday,
1353
- isSelected: m || !!(r && Et(r) === u),
1198
+ events: p,
1199
+ badge: m,
1200
+ isToday: g.isToday,
1201
+ isSelected: h || !!(r && kt(r) === f),
1354
1202
  isOutsideMonth: !1,
1355
- onClick: (t) => i(e, t.currentTarget, d),
1356
- onMouseEnter: (t) => a(e, t.currentTarget, d),
1357
- onMouseLeave: o,
1358
- children: c ? c(e, h) : void 0
1203
+ showHourBar: s,
1204
+ overlapWarning: c,
1205
+ onAddEvent: l ? (e) => l(e) : void 0,
1206
+ addEventLabel: u,
1207
+ onClick: (t) => i(e, t.currentTarget, p),
1208
+ children: o ? o(e, g) : void 0
1359
1209
  })
1360
- }, u);
1210
+ }, f);
1361
1211
  })
1362
1212
  });
1363
1213
  }
1364
- function Wt({ date: e, events: t = [], badge: n, markers: r, isToday: i = !1, isSelected: a = !1, isOutsideMonth: o = !1, className: s, children: c, ...l }) {
1214
+ function tn({ date: e, events: t = [], badge: n, isToday: r = !1, isSelected: i = !1, isOutsideMonth: a = !1, showHourBar: o = !1, overlapWarning: s = !1, onAddEvent: c, addEventLabel: l, className: u, children: d, ...f }) {
1215
+ let p = (t) => {
1216
+ t.stopPropagation(), c?.(e);
1217
+ };
1365
1218
  return /* @__PURE__ */ X("button", {
1366
1219
  type: "button",
1367
- className: I("calendar day cell", i && "today", a && "selected", o && "outside-month", s),
1368
- ...l,
1369
- children: c ?? /* @__PURE__ */ Z(ze, { children: [/* @__PURE__ */ Z("div", {
1370
- className: "day header",
1371
- children: [/* @__PURE__ */ X("span", {
1372
- className: "day number",
1373
- children: e.getDate()
1374
- }), /* @__PURE__ */ X("div", {
1375
- className: "day meta",
1376
- children: n
1220
+ className: P("calendar day cell", r && "today", i && "selected", a && "outside-month", o && "has-hourbar", u),
1221
+ ...f,
1222
+ children: d ?? /* @__PURE__ */ Z(Ge, { children: [/* @__PURE__ */ Z("div", {
1223
+ className: "day inner",
1224
+ children: [/* @__PURE__ */ Z("div", {
1225
+ className: "day header",
1226
+ children: [/* @__PURE__ */ X("span", {
1227
+ className: "day number",
1228
+ children: e.getDate()
1229
+ }), /* @__PURE__ */ X("div", {
1230
+ className: "day meta",
1231
+ children: n
1232
+ })]
1233
+ }), c && /* @__PURE__ */ X("div", {
1234
+ className: "day footer",
1235
+ children: /* @__PURE__ */ X("span", {
1236
+ role: "button",
1237
+ tabIndex: -1,
1238
+ "aria-label": l,
1239
+ title: l,
1240
+ className: "day add",
1241
+ onClick: p,
1242
+ children: /* @__PURE__ */ X(O, { size: 14 })
1243
+ })
1377
1244
  })]
1378
- }), /* @__PURE__ */ X("div", {
1379
- className: "markers",
1380
- children: r ?? Lt(t)
1245
+ }), o && /* @__PURE__ */ X(Qt, {
1246
+ date: e,
1247
+ events: t,
1248
+ overlapWarning: s,
1249
+ className: "embedded"
1381
1250
  })] })
1382
1251
  });
1383
1252
  }
1384
- function Gt({ event: e, locale: t, className: n, currentDate: r, ...i }) {
1385
- let a = ge(t), o = Me(), s = e.status === "cancelled" ? "error" : e.status === "done" ? "success" : e.status === "active" ? "info" : "warning";
1386
- return /* @__PURE__ */ Z("div", {
1387
- className: I("calendar event item", n),
1388
- ...i,
1389
- children: [/* @__PURE__ */ X("div", {
1390
- className: "event time",
1391
- children: Ft(e, o)
1392
- }), /* @__PURE__ */ Z("div", {
1393
- className: "event content",
1394
- children: [
1395
- /* @__PURE__ */ Z("div", {
1396
- className: "event title row",
1397
- children: [/* @__PURE__ */ X(ue, {
1398
- level: 5,
1399
- children: e.title
1400
- }), e.status && /* @__PURE__ */ X(V, {
1401
- color: s,
1253
+ function nn({ event: e, locale: t, className: n, currentDate: r, menuItems: i, renderMenu: a, showActions: o = !0, overlap: s = !1, onSelect: c, onEdit: l, onDelete: u, ...d }) {
1254
+ let f = Te(t), p = Re(), m = e.status === "cancelled" ? "error" : e.status === "done" ? "success" : e.status === "active" ? "info" : "warning", h = e.menuItems ?? i ?? a?.(e) ?? Zt(e, l, u), g = !!(e.href || e.onClick || c), _ = It(e), v = (t) => {
1255
+ t.target.closest(".event-menu, .event-menu-trigger") || (e.onClick?.(e), c?.(e));
1256
+ }, y = (t) => /* @__PURE__ */ Z(t, {
1257
+ ...t === "a" ? {
1258
+ href: e.href,
1259
+ target: (e.href, void 0)
1260
+ } : {},
1261
+ ...t === "button" ? {
1262
+ type: "button",
1263
+ onClick: v
1264
+ } : {},
1265
+ ...t === "a" ? { onClick: v } : {},
1266
+ className: P("calendar event item", g && "interactive", s && "overlap", n),
1267
+ style: { "--mineral-event-accent": _ },
1268
+ ...d,
1269
+ children: [
1270
+ /* @__PURE__ */ Z("div", {
1271
+ className: "event time",
1272
+ children: [/* @__PURE__ */ X("span", {
1273
+ className: "event accent",
1274
+ "aria-hidden": "true"
1275
+ }), zt(e, p)]
1276
+ }),
1277
+ /* @__PURE__ */ Z("div", {
1278
+ className: "event content",
1279
+ children: [
1280
+ /* @__PURE__ */ Z("div", {
1281
+ className: "event title row",
1282
+ children: [/* @__PURE__ */ X(I, {
1283
+ level: 5,
1284
+ children: e.title
1285
+ }), /* @__PURE__ */ Z("div", {
1286
+ className: "event title meta",
1287
+ children: [s && /* @__PURE__ */ Z(B, {
1288
+ color: "warning",
1289
+ size: "sm",
1290
+ children: [/* @__PURE__ */ X(ae, { size: 12 }), " Overlap"]
1291
+ }), e.status && /* @__PURE__ */ X(B, {
1292
+ color: m,
1293
+ size: "sm",
1294
+ children: e.status
1295
+ })]
1296
+ })]
1297
+ }),
1298
+ e.description && /* @__PURE__ */ X(F, {
1402
1299
  size: "sm",
1403
- children: e.status
1404
- })]
1405
- }),
1406
- e.description && /* @__PURE__ */ X(R, {
1407
- size: "sm",
1408
- tone: "muted",
1409
- children: e.description
1410
- }),
1411
- /* @__PURE__ */ Z("div", {
1412
- className: "event details",
1413
- children: [
1414
- e.type && /* @__PURE__ */ X(V, {
1415
- color: "neutral",
1416
- size: "sm",
1417
- children: e.type
1418
- }),
1419
- e.badgeLabel && /* @__PURE__ */ X(V, {
1420
- size: "sm",
1421
- children: e.badgeLabel
1422
- }),
1423
- e.user && /* @__PURE__ */ Z("span", {
1424
- className: "event user",
1425
- children: [/* @__PURE__ */ X(ve, {
1300
+ tone: "muted",
1301
+ children: e.description
1302
+ }),
1303
+ /* @__PURE__ */ Z("div", {
1304
+ className: "event details",
1305
+ children: [
1306
+ e.type && /* @__PURE__ */ X(B, {
1307
+ color: "neutral",
1426
1308
  size: "sm",
1427
- src: e.user.avatar,
1428
- name: e.user.name,
1429
- backgroundColor: e.user.color
1430
- }), e.user.name]
1431
- }),
1432
- !e.startTime && !e.endTime && r && /* @__PURE__ */ X(R, {
1433
- size: "sm",
1434
- tone: "muted",
1435
- children: Nt(r, a)
1436
- })
1437
- ]
1309
+ children: e.type
1310
+ }),
1311
+ e.badgeLabel && /* @__PURE__ */ X(B, {
1312
+ size: "sm",
1313
+ children: e.badgeLabel
1314
+ }),
1315
+ e.user && /* @__PURE__ */ Z("span", {
1316
+ className: "event user",
1317
+ children: [/* @__PURE__ */ X(U, {
1318
+ size: "sm",
1319
+ src: e.user.avatar,
1320
+ name: e.user.name,
1321
+ backgroundColor: e.user.color
1322
+ }), e.user.name]
1323
+ }),
1324
+ !e.startTime && !e.endTime && r && /* @__PURE__ */ X(F, {
1325
+ size: "sm",
1326
+ tone: "muted",
1327
+ children: Lt(r, f)
1328
+ })
1329
+ ]
1330
+ })
1331
+ ]
1332
+ }),
1333
+ o && h.length > 0 && /* @__PURE__ */ X("div", {
1334
+ className: "event-menu",
1335
+ onClick: (e) => e.stopPropagation(),
1336
+ onMouseDown: (e) => e.stopPropagation(),
1337
+ children: /* @__PURE__ */ X(Ce, {
1338
+ placement: "bottom-end",
1339
+ trigger: /* @__PURE__ */ X("span", {
1340
+ className: "event-menu-trigger",
1341
+ "aria-label": "Event actions",
1342
+ role: "presentation",
1343
+ children: /* @__PURE__ */ X(se, { size: 16 })
1344
+ }),
1345
+ children: h.map((t) => t.href ? /* @__PURE__ */ X(we, {
1346
+ icon: t.icon,
1347
+ label: t.label,
1348
+ href: t.href,
1349
+ color: t.color,
1350
+ disabled: t.disabled
1351
+ }, t.id) : /* @__PURE__ */ X(we, {
1352
+ icon: t.icon,
1353
+ label: t.label,
1354
+ color: t.color,
1355
+ disabled: t.disabled,
1356
+ onClick: () => t.onSelect?.(e)
1357
+ }, t.id))
1438
1358
  })
1439
- ]
1440
- })]
1359
+ })
1360
+ ]
1441
1361
  });
1362
+ return e.href ? y("a") : y(g ? "button" : "div");
1442
1363
  }
1443
- function Kt({ events: e, locale: t, currentDate: n, emptyStateText: r, renderEventItem: i, className: a, ...o }) {
1444
- let s = ge(t), c = Me();
1364
+ function rn({ events: e, locale: t, currentDate: n, emptyStateText: r, overlapWarning: i = !1, renderEventItem: a, renderEventMenu: o, onEventSelect: s, onEventEdit: c, onEventDelete: l, className: u, ...d }) {
1365
+ let f = Te(t), p = Re(), m = q(() => i ? Kt(e) : /* @__PURE__ */ new Set(), [e, i]);
1445
1366
  return e.length ? /* @__PURE__ */ X("div", {
1446
- className: I("calendar event list", a),
1447
- ...o,
1448
- children: /* @__PURE__ */ X(Ne, { children: At(e).map((e) => i ? /* @__PURE__ */ X("div", { children: i(e) }, e.id) : /* @__PURE__ */ X(Gt, {
1367
+ className: P("calendar event list", u),
1368
+ ...d,
1369
+ children: /* @__PURE__ */ X(ge, { children: Nt(e).map((e) => a ? /* @__PURE__ */ X("div", { children: a(e) }, e.id) : /* @__PURE__ */ X(nn, {
1449
1370
  event: e,
1450
- locale: s,
1451
- currentDate: n
1371
+ locale: f,
1372
+ currentDate: n,
1373
+ renderMenu: o,
1374
+ overlap: m.has(e.id),
1375
+ onSelect: s,
1376
+ onEdit: c,
1377
+ onDelete: l
1452
1378
  }, e.id)) })
1453
- }) : /* @__PURE__ */ X(R, {
1379
+ }) : /* @__PURE__ */ X(F, {
1454
1380
  size: "sm",
1455
1381
  tone: "muted",
1456
- className: I("calendar event list", a),
1457
- ...o,
1458
- children: r ?? c.emptyStateText
1382
+ className: P("calendar event list", u),
1383
+ ...d,
1384
+ children: r ?? p.emptyStateText
1459
1385
  });
1460
1386
  }
1461
- function qt({ date: e, events: t, locale: n, startHour: r = 6, endHour: i = 22, emptyStateText: a, className: o, ...s }) {
1462
- ge(n);
1463
- let c = Me(), l = Array.from({ length: Math.max(i - r + 1, 1) }, (e, t) => r + t);
1464
- return /* @__PURE__ */ X("div", {
1465
- className: I("calendar timeline", o),
1466
- ...s,
1467
- children: /* @__PURE__ */ Z(Ne, { children: [/* @__PURE__ */ X(ue, {
1468
- level: 5,
1469
- children: c.timelineTitle
1470
- }), /* @__PURE__ */ X("div", {
1471
- className: "timeline slots",
1472
- children: l.map((n) => {
1473
- let r = t.filter((e) => e.startTime ? Number(e.startTime.split(":")[0]) === n : !1);
1387
+ function an({ event: e, locale: t, date: n, timeLabel: r, overlap: i, renderEventMenu: a, onSelect: o, onEdit: s, onDelete: c }) {
1388
+ let [l, u] = Y(!1), d = J(null);
1389
+ return /* @__PURE__ */ Z(Ge, { children: [/* @__PURE__ */ Z("button", {
1390
+ ref: d,
1391
+ type: "button",
1392
+ className: P("timeline event-chip", i && "overlap", l && "open"),
1393
+ style: { "--mineral-event-color": It(e) },
1394
+ onClick: () => u((e) => !e),
1395
+ children: [/* @__PURE__ */ X("span", {
1396
+ className: "timeline event-chip-time",
1397
+ children: r
1398
+ }), /* @__PURE__ */ X("span", {
1399
+ className: "timeline event-chip-title",
1400
+ children: e.title
1401
+ })]
1402
+ }), /* @__PURE__ */ X(me, {
1403
+ open: l,
1404
+ anchorRef: d,
1405
+ onClose: () => u(!1),
1406
+ placement: "right-start",
1407
+ children: /* @__PURE__ */ X(ye, {
1408
+ className: "timeline event-popup",
1409
+ outlined: !1,
1410
+ children: /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(nn, {
1411
+ event: e,
1412
+ locale: t,
1413
+ currentDate: n,
1414
+ renderMenu: a,
1415
+ overlap: i,
1416
+ onSelect: o,
1417
+ onEdit: s,
1418
+ onDelete: c
1419
+ }) })
1420
+ })
1421
+ })] });
1422
+ }
1423
+ function on({ date: e, events: t, locale: n, startHour: r = 0, endHour: i = 23, emptyStateText: a, overlapWarning: o = !1, onAddEvent: s, addEventLabel: c, renderEventItem: l, renderEventMenu: u, onEventSelect: d, onEventEdit: f, onEventDelete: p, className: m, ...h }) {
1424
+ let g = Te(n), _ = Re(), v = Math.max(0, Math.min(r, St - 1)), y = Math.max(v, Math.min(i, St - 1)), b = Array.from({ length: y - v + 1 }, (e, t) => v + t), x = t.filter((e) => !e.startTime), S = q(() => o ? Kt(t) : /* @__PURE__ */ new Set(), [t, o]), C = /* @__PURE__ */ X("div", {
1425
+ className: "timeline allday-panel",
1426
+ children: x.length > 0 ? /* @__PURE__ */ X(ge, {
1427
+ spacing: "xs",
1428
+ children: x.map((t) => l ? /* @__PURE__ */ X("div", { children: l(t) }, t.id) : /* @__PURE__ */ X(nn, {
1429
+ event: t,
1430
+ locale: g,
1431
+ currentDate: e,
1432
+ renderMenu: u,
1433
+ overlap: S.has(t.id),
1434
+ onSelect: d,
1435
+ onEdit: f,
1436
+ onDelete: p
1437
+ }, t.id))
1438
+ }) : /* @__PURE__ */ X(F, {
1439
+ size: "sm",
1440
+ tone: "muted",
1441
+ children: a ?? _.emptyStateText
1442
+ })
1443
+ }), w = v * $, T = (y + 1) * $, E = (y - v + 1) * Ct, D = q(() => {
1444
+ let e = Nt(t.filter((e) => !!e.startTime)), n = [];
1445
+ e.forEach((e) => {
1446
+ let t = Wt(e);
1447
+ !t || t.end <= w || t.start >= T || n.push({
1448
+ event: e,
1449
+ start: t.start,
1450
+ end: t.end,
1451
+ column: 0,
1452
+ columns: 1
1453
+ });
1454
+ });
1455
+ let r = [];
1456
+ n.forEach((e) => {
1457
+ let t = -1;
1458
+ for (let n = 0; n < r.length; n++) if (r[n] <= e.start) {
1459
+ t = n, r[n] = e.end;
1460
+ break;
1461
+ }
1462
+ t === -1 && (t = r.length, r.push(e.end)), e.column = t;
1463
+ });
1464
+ let i = 0;
1465
+ for (; i < n.length;) {
1466
+ let e = i, t = n[i].end;
1467
+ for (; e + 1 < n.length && n[e + 1].start < t;) e++, t = Math.max(t, n[e].end);
1468
+ let r = 0;
1469
+ for (let t = i; t <= e; t++) r = Math.max(r, n[t].column + 1);
1470
+ for (let t = i; t <= e; t++) n[t].columns = r;
1471
+ i = e + 1;
1472
+ }
1473
+ return n;
1474
+ }, [
1475
+ t,
1476
+ w,
1477
+ T
1478
+ ]), k = /* @__PURE__ */ Z("div", {
1479
+ className: "timeline canvas",
1480
+ style: {
1481
+ "--timeline-hour-height": `${Ct}px`,
1482
+ height: `${E}px`
1483
+ },
1484
+ children: [/* @__PURE__ */ X("div", {
1485
+ className: "timeline rows",
1486
+ children: b.map((t) => {
1487
+ let n = Ht(e, t), r = s ? () => s(e, t) : void 0;
1474
1488
  return /* @__PURE__ */ Z("div", {
1475
- className: I("timeline slot", It(e, n)),
1489
+ className: P("timeline row", n),
1476
1490
  children: [
1491
+ /* @__PURE__ */ Z("div", {
1492
+ className: "row time-cell",
1493
+ children: [/* @__PURE__ */ X("span", { children: `${String(t).padStart(2, "0")}:00` }), r && /* @__PURE__ */ X("button", {
1494
+ type: "button",
1495
+ className: "row add",
1496
+ "aria-label": c,
1497
+ title: c,
1498
+ onClick: r,
1499
+ children: /* @__PURE__ */ X(O, { size: 12 })
1500
+ })]
1501
+ }),
1477
1502
  /* @__PURE__ */ X("div", {
1478
- className: "slot time",
1479
- children: `${String(n).padStart(2, "0")}:00`
1503
+ className: "row rail",
1504
+ "aria-hidden": "true"
1480
1505
  }),
1481
- /* @__PURE__ */ X("div", { className: "slot line" }),
1482
1506
  /* @__PURE__ */ X("div", {
1483
- className: "slot content",
1484
- children: r.length > 0 ? /* @__PURE__ */ X(Ne, { children: r.map((e) => /* @__PURE__ */ Z("div", {
1485
- className: "slot event",
1486
- children: [/* @__PURE__ */ X("span", {
1487
- className: "slot event dot",
1488
- style: { background: e.color ?? Mt(e.status) }
1489
- }), /* @__PURE__ */ X(R, {
1490
- size: "sm",
1491
- children: e.title
1492
- })]
1493
- }, e.id)) }) : /* @__PURE__ */ X(R, {
1494
- size: "sm",
1495
- tone: "muted",
1496
- children: a ?? c.timelineEmptyState
1497
- })
1507
+ className: "row body",
1508
+ "aria-hidden": "true"
1498
1509
  })
1499
1510
  ]
1500
- }, n);
1511
+ }, t);
1501
1512
  })
1502
- })] })
1513
+ }), /* @__PURE__ */ X("div", {
1514
+ className: "timeline events",
1515
+ children: D.length === 0 ? /* @__PURE__ */ X("div", {
1516
+ className: "timeline events-empty",
1517
+ children: /* @__PURE__ */ X(F, {
1518
+ size: "sm",
1519
+ tone: "muted",
1520
+ children: a ?? _.timelineEmptyState
1521
+ })
1522
+ }) : D.map((t) => {
1523
+ let n = Math.max(t.start, w) - w, r = Math.min(t.end, T) - w, i = n / $ * Ct, a = Math.max((r - n) / $ * Ct, 28), o = t.column * (wt + Tt);
1524
+ return /* @__PURE__ */ X("div", {
1525
+ className: "timeline event-block",
1526
+ style: {
1527
+ top: `${i}px`,
1528
+ height: `${a}px`,
1529
+ left: `${o}px`,
1530
+ width: `${wt}px`
1531
+ },
1532
+ children: l ? l(t.event) : /* @__PURE__ */ X(an, {
1533
+ event: t.event,
1534
+ locale: g,
1535
+ date: e,
1536
+ timeLabel: zt(t.event, _),
1537
+ overlap: S.has(t.event.id),
1538
+ renderEventMenu: u,
1539
+ onSelect: d,
1540
+ onEdit: f,
1541
+ onDelete: p
1542
+ })
1543
+ }, t.event.id);
1544
+ })
1545
+ })]
1546
+ });
1547
+ return /* @__PURE__ */ X("div", {
1548
+ className: P("calendar timeline", m),
1549
+ ...h,
1550
+ children: /* @__PURE__ */ Z(ge, { children: [/* @__PURE__ */ Z("div", {
1551
+ className: "timeline header",
1552
+ children: [/* @__PURE__ */ X(I, {
1553
+ level: 5,
1554
+ children: _.timelineTitle
1555
+ }), o && S.size > 0 && /* @__PURE__ */ Z(B, {
1556
+ color: "warning",
1557
+ size: "sm",
1558
+ children: [/* @__PURE__ */ X(ae, { size: 12 }), " Overlap"]
1559
+ })]
1560
+ }), x.length > 0 ? /* @__PURE__ */ X(ze, {
1561
+ className: "calendar timeline-tabs",
1562
+ variant: "underline",
1563
+ size: "sm",
1564
+ fullWidth: !0,
1565
+ defaultValue: "timeline",
1566
+ items: [{
1567
+ value: "timeline",
1568
+ label: _.timelineTab,
1569
+ content: k
1570
+ }, {
1571
+ value: "allday",
1572
+ label: `${_.allDayTab} (${x.length})`,
1573
+ content: C
1574
+ }]
1575
+ }) : k] })
1503
1576
  });
1504
1577
  }
1505
- function Jt({ open: e, anchorRef: t, onClose: n, onPointerEnter: r, onPointerLeave: i, date: a, events: o, locale: s, timelineStartHour: c = 6, timelineEndHour: l = 22, showTimeline: u = !0, emptyStateText: d, renderEventItem: f, className: p, style: m }) {
1506
- let h = ge(s), g = Me();
1507
- return /* @__PURE__ */ X(L, {
1578
+ function sn({ date: e, events: t, locale: n, timelineStartHour: r, timelineEndHour: i, showTimeline: a, overlapWarning: o, emptyStateText: s, addEventLabel: c, dayMenuLabel: l, onAddEvent: u, renderDayMenu: d, onEventSelect: f, onEventEdit: p, onEventDelete: m, renderEventItem: h, renderEventMenu: g }) {
1579
+ let _ = Re();
1580
+ if (!e) return null;
1581
+ let v = d?.(e, t) ?? Xt(u, c);
1582
+ return /* @__PURE__ */ Z(ge, { children: [/* @__PURE__ */ Z("div", {
1583
+ className: "calendar details header",
1584
+ children: [/* @__PURE__ */ Z(ge, {
1585
+ spacing: "xs",
1586
+ children: [/* @__PURE__ */ X(I, {
1587
+ level: 4,
1588
+ children: Lt(e, n)
1589
+ }), /* @__PURE__ */ X(F, {
1590
+ tone: "muted",
1591
+ size: "sm",
1592
+ children: t.length > 0 ? _.itemsCount(t.length) : s
1593
+ })]
1594
+ }), v.length > 0 && /* @__PURE__ */ X(Ce, {
1595
+ placement: "bottom-end",
1596
+ trigger: /* @__PURE__ */ X("button", {
1597
+ type: "button",
1598
+ className: "day-menu-trigger",
1599
+ "aria-label": l ?? "Day actions",
1600
+ title: l ?? "Day actions",
1601
+ children: /* @__PURE__ */ X(k, { size: 18 })
1602
+ }),
1603
+ children: v.map((n) => n.href ? /* @__PURE__ */ X(we, {
1604
+ icon: n.icon,
1605
+ label: n.label,
1606
+ href: n.href,
1607
+ color: n.color,
1608
+ disabled: n.disabled
1609
+ }, n.id) : /* @__PURE__ */ X(we, {
1610
+ icon: n.icon,
1611
+ label: n.label,
1612
+ color: n.color,
1613
+ disabled: n.disabled,
1614
+ onClick: () => n.onSelect?.(e, t)
1615
+ }, n.id))
1616
+ })]
1617
+ }), a ? /* @__PURE__ */ X(on, {
1618
+ date: e,
1619
+ events: t,
1620
+ locale: n,
1621
+ startHour: r,
1622
+ endHour: i,
1623
+ overlapWarning: o,
1624
+ onAddEvent: u,
1625
+ addEventLabel: c,
1626
+ renderEventItem: h,
1627
+ renderEventMenu: g,
1628
+ onEventSelect: f,
1629
+ onEventEdit: p,
1630
+ onEventDelete: m,
1631
+ emptyStateText: s
1632
+ }) : /* @__PURE__ */ X(rn, {
1633
+ events: t,
1634
+ locale: n,
1635
+ currentDate: e,
1636
+ emptyStateText: s,
1637
+ overlapWarning: o,
1638
+ renderEventItem: h,
1639
+ renderEventMenu: g,
1640
+ onEventSelect: f,
1641
+ onEventEdit: p,
1642
+ onEventDelete: m
1643
+ })] });
1644
+ }
1645
+ function cn({ open: e, anchorRef: t, onClose: n, date: r, events: i, locale: a, timelineStartHour: o = 0, timelineEndHour: s = 23, showTimeline: c = !0, emptyStateText: l, overlapWarning: u = !1, onAddEvent: d, addEventLabel: f, dayMenuLabel: p, onEventSelect: m, onEventEdit: h, onEventDelete: g, renderEventItem: _, renderEventMenu: v, renderDayMenu: y, className: b, style: x }) {
1646
+ let S = Te(a), C = Re();
1647
+ return /* @__PURE__ */ Z(Ge, { children: [e && /* @__PURE__ */ X(pe, { children: /* @__PURE__ */ X("div", {
1648
+ className: "calendar popover-shield",
1649
+ onMouseDown: (e) => {
1650
+ e.preventDefault(), e.stopPropagation(), n();
1651
+ },
1652
+ onClick: (e) => {
1653
+ e.preventDefault(), e.stopPropagation();
1654
+ },
1655
+ "aria-hidden": "true"
1656
+ }) }), /* @__PURE__ */ X(me, {
1508
1657
  open: e,
1509
1658
  anchorRef: t,
1510
1659
  onClose: n,
1511
1660
  placement: "bottom-start",
1512
- className: I("calendar popover", p),
1513
- style: m,
1514
- children: /* @__PURE__ */ X(pe, {
1515
- className: "calendar event popover",
1516
- onPointerEnter: r,
1517
- onPointerLeave: i,
1518
- children: /* @__PURE__ */ X(H, { children: /* @__PURE__ */ X(Vt, {
1519
- date: a,
1520
- events: o,
1521
- locale: h,
1522
- timelineStartHour: c,
1523
- timelineEndHour: l,
1524
- showTimeline: u,
1525
- emptyStateText: d ?? g.emptyStateText,
1526
- renderEventItem: f
1661
+ className: P("calendar popover", b),
1662
+ style: x,
1663
+ children: /* @__PURE__ */ X(ye, {
1664
+ className: "calendar event-popover",
1665
+ children: /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X("div", {
1666
+ className: "calendar popover-scroll",
1667
+ children: /* @__PURE__ */ X(sn, {
1668
+ date: r,
1669
+ events: i,
1670
+ locale: S,
1671
+ timelineStartHour: o,
1672
+ timelineEndHour: s,
1673
+ showTimeline: c,
1674
+ overlapWarning: u,
1675
+ emptyStateText: l ?? C.emptyStateText,
1676
+ addEventLabel: f,
1677
+ dayMenuLabel: p,
1678
+ onAddEvent: d,
1679
+ renderDayMenu: y,
1680
+ onEventSelect: m,
1681
+ onEventEdit: h,
1682
+ onEventDelete: g,
1683
+ renderEventItem: _,
1684
+ renderEventMenu: v
1685
+ })
1527
1686
  }) })
1528
1687
  })
1529
- });
1688
+ })] });
1530
1689
  }
1531
- function Yt({ month: t, defaultMonth: n, onMonthChange: r, events: i = [], locale: a, weekStartsOn: o = 1, view: s, defaultView: c = "month", views: l = ["month", "week"], onViewChange: u, selectedDate: d, defaultSelectedDate: f, onDayClick: p, dayBadge: m, renderDayCell: h, renderEventItem: g, detailsTrigger: _ = "click", detailsMode: v = "auto", showTimeline: y = !0, timelineStartHour: b = 6, timelineEndHour: x = 22, emptyStateText: S, filters: C = [], activeFilters: w, defaultActiveFilters: T = [], onActiveFiltersChange: E, fullWidth: D = !1, className: O, ...k }) {
1532
- let A = ge(a), j = je(), M = Me(), ee = $(/* @__PURE__ */ new Date()), [N, te] = Y($(n ?? t ?? ee)), [ne, re] = Y(c), [ie, ae] = Y(Tt(f)), [oe, se] = Y(T), [P, F] = Y(null), [ce, L] = Y(!1), [le, de] = Y(!1), fe = J(null), B = J(null), pe = t !== void 0 && typeof r == "function", H = $(pe ? t ?? N : N), U = s ?? ne, he = Tt(d) ?? ie, W = w ?? oe;
1533
- Re(() => {
1534
- let t = window.matchMedia(`(max-width: ${e.md}px)`), n = () => de(t.matches);
1690
+ function ln({ month: t, defaultMonth: n, onMonthChange: r, events: i = [], locale: a, weekStartsOn: o = 1, view: s, defaultView: c = "month", views: l = ["month", "week"], onViewChange: u, selectedDate: d, defaultSelectedDate: f, onDayClick: p, dayBadge: m, renderDayCell: h, renderEventItem: g, renderEventMenu: _, detailsMode: v = "auto", showTimeline: y = !0, showHourBar: b = !0, timelineStartHour: x = 0, timelineEndHour: S = 23, overlapWarning: C = !1, onAddEvent: w, addEventLabel: T = "Add event", dayMenuLabel: E, renderDayMenu: D, onEventSelect: O, onEventEdit: k, onEventDelete: A, emptyStateText: j, filters: M = [], activeFilters: ee, defaultActiveFilters: te = [], onActiveFiltersChange: ne, fullWidth: re = !1, className: ie, ...ae }) {
1691
+ let oe = Te(a), se = Le(), ce = Re(), N = Dt(/* @__PURE__ */ new Date()), [le, ue] = Y(Dt(n ?? t ?? N)), [de, fe] = Y(c), [pe, me] = Y(Ot(f)), [he, _e] = Y(te), [L, ve] = Y(null), [ye, z] = Y(!1), [xe, Se] = Y(!1), Ce = J(null), we = t !== void 0 && typeof r == "function", V = Dt(we ? t ?? le : le), H = s ?? de, U = Ot(d) ?? pe, W = ee ?? he;
1692
+ We(() => {
1693
+ let t = window.matchMedia(`(max-width: ${e.md}px)`), n = () => Se(t.matches);
1535
1694
  return n(), t.addEventListener("change", n), () => t.removeEventListener("change", n);
1536
- }, []), Re(() => {
1537
- pe && t && te($(t));
1538
- }, [pe, t]), Re(() => {
1539
- s && re(s);
1540
- }, [s]), Re(() => {
1541
- d !== void 0 && ae(Tt(d));
1542
- }, [d]), Re(() => () => {
1543
- B.current && window.clearTimeout(B.current);
1544
- }, []);
1545
- let _e = q(() => Rt(i, C, W), [
1695
+ }, []), We(() => {
1696
+ we && t && ue(Dt(t));
1697
+ }, [we, t]), We(() => {
1698
+ s && fe(s);
1699
+ }, [s]), We(() => {
1700
+ d !== void 0 && me(Ot(d));
1701
+ }, [d]);
1702
+ let G = q(() => qt(i, M, W), [
1546
1703
  i,
1547
- C,
1704
+ M,
1548
1705
  W
1549
- ]), ve = q(() => {
1706
+ ]), Ee = q(() => {
1550
1707
  let e = /* @__PURE__ */ new Map();
1551
- return _e.forEach((t) => {
1552
- let n = Dt(t);
1708
+ return G.forEach((t) => {
1709
+ let n = At(t);
1553
1710
  if (!n) return;
1554
- let r = Et(n), i = e.get(r) ?? [];
1711
+ let r = kt(n), i = e.get(r) ?? [];
1555
1712
  i.push(t), e.set(r, i);
1556
1713
  }), e;
1557
- }, [_e]), ye = q(() => {
1558
- if (U === "week") {
1559
- let e = kt(he ?? H, o);
1560
- return Array.from({ length: 7 }, (t, n) => Ot(e, n));
1714
+ }, [G]), De = q(() => {
1715
+ if (H === "week") {
1716
+ let e = Mt(U ?? V, o);
1717
+ return Array.from({ length: 7 }, (t, n) => jt(e, n));
1561
1718
  }
1562
- return jt(H, o);
1719
+ return Pt(V, o);
1563
1720
  }, [
1564
- U,
1565
- he,
1566
1721
  H,
1722
+ U,
1723
+ V,
1567
1724
  o
1568
- ]), be = v === "auto" ? le ? "modal" : "popover" : v, xe = P ? ve.get(Et(P)) ?? [] : [], Se = l.includes("month"), Ce = l.includes("week"), we = (e) => {
1569
- let t = $(e);
1570
- te(t), r?.(t);
1571
- }, Te = (e) => {
1572
- if (U === "week") {
1573
- let t = Ot(he ?? H, e * 7);
1574
- we(t), ae(t), F(t), L(!1);
1725
+ ]), Oe = v === "auto" ? xe ? "modal" : "popover" : v, ke = L ? Ee.get(kt(L)) ?? [] : [], Ae = l.includes("month"), je = l.includes("week"), Me = (e) => {
1726
+ let t = Dt(e);
1727
+ ue(t), r?.(t);
1728
+ }, Ne = (e) => {
1729
+ if (H === "week") {
1730
+ let t = jt(U ?? V, e * 7);
1731
+ Me(t), me(t), ve(t), z(!1);
1575
1732
  return;
1576
1733
  }
1577
- we(new Date(H.getFullYear(), H.getMonth() + e, 1)), L(!1), F(null);
1578
- }, Ee = (e) => {
1579
- re(e), u?.(e);
1580
- }, De = (e, t) => {
1581
- let n = $(e);
1582
- ae(n), p?.(n, t);
1583
- }, Oe = () => {
1584
- B.current &&= (window.clearTimeout(B.current), null);
1585
- }, G = () => {
1586
- Oe(), B.current = window.setTimeout(() => {
1587
- L(!1);
1588
- }, 180);
1589
- }, ke = (e, t, n) => {
1590
- fe.current = t, F(e), De(e, n), L(!0);
1591
- }, Ae = (e, t, n) => {
1592
- Oe(), ke(e, t, n), U === "month" && e.getMonth() !== H.getMonth() && we(new Date(e.getFullYear(), e.getMonth(), 1));
1593
- }, Pe = (e, t, n) => {
1594
- _ !== "hover" || be !== "popover" || (Oe(), ke(e, t, n));
1595
- }, Fe = (e) => {
1734
+ Me(new Date(V.getFullYear(), V.getMonth() + e, 1)), z(!1), ve(null);
1735
+ }, Pe = (e) => {
1736
+ fe(e), u?.(e);
1737
+ }, Fe = (e, t) => {
1738
+ let n = Dt(e);
1739
+ me(n), p?.(n, t);
1740
+ }, Ie = (e, t, n) => {
1741
+ Ce.current = t, ve(e), Fe(e, n), z(!0);
1742
+ }, ze = (e, t, n) => {
1743
+ Ie(e, t, n), H === "month" && e.getMonth() !== V.getMonth() && Me(new Date(e.getFullYear(), e.getMonth(), 1));
1744
+ }, Be = (e) => {
1596
1745
  let t = W.includes(e) ? W.filter((t) => t !== e) : [...W, e];
1597
- se(t), E?.(t);
1598
- }, Ie = kt(U === "week" ? he ?? H : H, o);
1746
+ _e(t), ne?.(t);
1747
+ }, Ve = Mt(H === "week" ? U ?? V : V, o);
1599
1748
  return /* @__PURE__ */ Z("div", {
1600
- className: I("calendar board", D && "full-width", O),
1601
- ...k,
1749
+ className: P("calendar board", re && "full-width", ie),
1750
+ ...ae,
1602
1751
  children: [
1603
1752
  /* @__PURE__ */ Z("div", {
1604
1753
  className: "calendar header",
1605
- children: [/* @__PURE__ */ Z(Ne, { children: [/* @__PURE__ */ X(ue, {
1754
+ children: [/* @__PURE__ */ Z(ge, { children: [/* @__PURE__ */ X(I, {
1606
1755
  level: 3,
1607
- children: zt(H, U, A, o)
1608
- }), /* @__PURE__ */ X(R, {
1756
+ children: Jt(V, H, oe, o)
1757
+ }), /* @__PURE__ */ X(F, {
1609
1758
  size: "sm",
1610
1759
  tone: "muted",
1611
- children: Bt(U, M)
1612
- })] }), /* @__PURE__ */ Z(Ne, {
1760
+ children: Yt(H, ce)
1761
+ })] }), /* @__PURE__ */ Z(ge, {
1613
1762
  align: "end",
1614
1763
  children: [/* @__PURE__ */ Z("div", {
1615
1764
  className: "calendar actions",
1616
- children: [/* @__PURE__ */ X(z, {
1765
+ children: [/* @__PURE__ */ X(R, {
1617
1766
  type: "button",
1618
1767
  size: "sm",
1619
1768
  variant: "outlined",
1620
1769
  color: "neutral",
1621
- onClick: () => Te(-1),
1622
- children: U === "week" ? M.previousWeek : j.previousMonth
1623
- }), /* @__PURE__ */ X(z, {
1770
+ onClick: () => Ne(-1),
1771
+ children: H === "week" ? ce.previousWeek : se.previousMonth
1772
+ }), /* @__PURE__ */ X(R, {
1624
1773
  type: "button",
1625
1774
  size: "sm",
1626
1775
  variant: "outlined",
1627
1776
  color: "neutral",
1628
- onClick: () => Te(1),
1629
- children: U === "week" ? M.nextWeek : j.nextMonth
1777
+ onClick: () => Ne(1),
1778
+ children: H === "week" ? ce.nextWeek : se.nextMonth
1630
1779
  })]
1631
- }), (Se || Ce) && /* @__PURE__ */ Z("div", {
1780
+ }), (Ae || je) && /* @__PURE__ */ Z("div", {
1632
1781
  className: "calendar views",
1633
- children: [Se && /* @__PURE__ */ X(z, {
1782
+ children: [Ae && /* @__PURE__ */ X(R, {
1634
1783
  type: "button",
1635
1784
  size: "sm",
1636
1785
  variant: "outlined",
1637
- color: U === "month" ? "primary" : "neutral",
1638
- active: U === "month",
1639
- onClick: () => Ee("month"),
1640
- children: M.monthView
1641
- }), Ce && /* @__PURE__ */ X(z, {
1786
+ color: H === "month" ? "primary" : "neutral",
1787
+ active: H === "month",
1788
+ onClick: () => Pe("month"),
1789
+ children: ce.monthView
1790
+ }), je && /* @__PURE__ */ X(R, {
1642
1791
  type: "button",
1643
1792
  size: "sm",
1644
1793
  variant: "outlined",
1645
- color: U === "week" ? "primary" : "neutral",
1646
- active: U === "week",
1647
- onClick: () => Ee("week"),
1648
- children: M.weekView
1794
+ color: H === "week" ? "primary" : "neutral",
1795
+ active: H === "week",
1796
+ onClick: () => Pe("week"),
1797
+ children: ce.weekView
1649
1798
  })]
1650
1799
  })]
1651
1800
  })]
1652
1801
  }),
1653
- /* @__PURE__ */ X(Ht, {
1654
- filters: C,
1802
+ /* @__PURE__ */ X($t, {
1803
+ filters: M,
1655
1804
  activeFilterIds: W,
1656
- onToggle: Fe
1805
+ onToggle: Be
1657
1806
  }),
1658
1807
  /* @__PURE__ */ X("div", {
1659
1808
  className: "calendar days",
1660
- children: Array.from({ length: 7 }, (e, t) => Ot(Ie, t)).map((e) => /* @__PURE__ */ X("div", {
1809
+ children: Array.from({ length: 7 }, (e, t) => jt(Ve, t)).map((e) => /* @__PURE__ */ X("div", {
1661
1810
  className: "calendar day",
1662
- children: new Intl.DateTimeFormat(A, { weekday: "short" }).format(e)
1663
- }, Et(e)))
1811
+ children: new Intl.DateTimeFormat(oe, { weekday: "short" }).format(e)
1812
+ }, kt(e)))
1664
1813
  }),
1665
- U === "week" ? /* @__PURE__ */ X(Ut, {
1666
- days: ye,
1667
- eventsByDay: ve,
1668
- selectedDate: he,
1669
- activeDate: P,
1670
- onDayInteract: Ae,
1671
- onDayHover: Pe,
1672
- onDayLeave: () => {
1673
- _ === "hover" && be === "popover" && G();
1674
- },
1814
+ H === "week" ? /* @__PURE__ */ X(en, {
1815
+ days: De,
1816
+ eventsByDay: Ee,
1817
+ selectedDate: U,
1818
+ activeDate: L,
1819
+ onDayInteract: ze,
1675
1820
  dayBadge: m,
1676
- renderDayCell: h
1821
+ renderDayCell: h,
1822
+ showHourBar: b,
1823
+ overlapWarning: C,
1824
+ onAddEvent: w,
1825
+ addEventLabel: T
1677
1826
  }) : /* @__PURE__ */ X("div", {
1678
1827
  className: "calendar grid",
1679
- children: ye.map((e) => {
1680
- let t = Et(e), n = ve.get(t) ?? [], r = m?.(e, n) ?? (n.length > 0 ? /* @__PURE__ */ X(V, {
1828
+ children: De.map((e) => {
1829
+ let t = kt(e), n = Ee.get(t) ?? [], r = m?.(e, n) ?? (n.length > 0 ? /* @__PURE__ */ X(B, {
1681
1830
  size: "sm",
1682
1831
  children: n.length
1683
- }) : null), i = t === Et(ee), a = !!(he && t === Et(he)), o = e.getMonth() !== H.getMonth(), s = Lt(n), c = {
1832
+ }) : null), i = t === kt(N), a = !!(U && t === kt(U)), o = e.getMonth() !== V.getMonth(), s = {
1684
1833
  date: e,
1685
1834
  events: n,
1686
1835
  badge: r,
@@ -1688,52 +1837,68 @@ function Yt({ month: t, defaultMonth: n, onMonthChange: r, events: i = [], local
1688
1837
  isSelected: a,
1689
1838
  isOutsideMonth: o
1690
1839
  };
1691
- return /* @__PURE__ */ X(Wt, {
1840
+ return /* @__PURE__ */ X(tn, {
1692
1841
  date: e,
1693
1842
  events: n,
1694
1843
  badge: r,
1695
- markers: s,
1696
1844
  isToday: i,
1697
- isSelected: a || !!(P && t === Et(P)),
1845
+ isSelected: a || !!(L && t === kt(L)),
1698
1846
  isOutsideMonth: o,
1699
- onClick: (t) => Ae(e, t.currentTarget, n),
1700
- onMouseEnter: (t) => Pe(e, t.currentTarget, n),
1701
- onMouseLeave: () => {
1702
- _ === "hover" && be === "popover" && G();
1703
- },
1704
- children: h ? h(e, c) : void 0
1847
+ showHourBar: b,
1848
+ overlapWarning: C,
1849
+ onAddEvent: w ? (e) => w(e) : void 0,
1850
+ addEventLabel: T,
1851
+ onClick: (t) => ze(e, t.currentTarget, n),
1852
+ children: h ? h(e, s) : void 0
1705
1853
  }, t);
1706
1854
  })
1707
1855
  }),
1708
- be === "popover" ? /* @__PURE__ */ X(Jt, {
1709
- open: ce && !!P && !!fe.current,
1710
- anchorRef: fe,
1711
- onClose: () => L(!1),
1712
- onPointerEnter: () => Oe(),
1713
- onPointerLeave: () => G(),
1714
- date: P,
1715
- events: xe,
1716
- locale: A,
1717
- timelineStartHour: b,
1718
- timelineEndHour: x,
1856
+ Oe === "popover" ? /* @__PURE__ */ X(cn, {
1857
+ open: ye && !!L && !!Ce.current,
1858
+ anchorRef: Ce,
1859
+ onClose: () => z(!1),
1860
+ date: L,
1861
+ events: ke,
1862
+ locale: oe,
1863
+ timelineStartHour: x,
1864
+ timelineEndHour: S,
1719
1865
  showTimeline: y,
1720
- emptyStateText: S ?? M.emptyStateText,
1721
- renderEventItem: g
1722
- }) : /* @__PURE__ */ X(me, {
1723
- open: ce && !!P,
1724
- onClose: () => L(!1),
1725
- title: P ? Nt(P, A) : void 0,
1726
- description: P ? M.itemsCount(xe.length) : void 0,
1866
+ overlapWarning: C,
1867
+ onAddEvent: w,
1868
+ addEventLabel: T,
1869
+ dayMenuLabel: E,
1870
+ renderDayMenu: D,
1871
+ onEventSelect: O,
1872
+ onEventEdit: k,
1873
+ onEventDelete: A,
1874
+ emptyStateText: j ?? ce.emptyStateText,
1875
+ renderEventItem: g,
1876
+ renderEventMenu: _
1877
+ }) : /* @__PURE__ */ X(be, {
1878
+ open: ye && !!L,
1879
+ onClose: () => z(!1),
1727
1880
  size: "lg",
1728
- children: /* @__PURE__ */ X(Vt, {
1729
- date: P,
1730
- events: xe,
1731
- locale: A,
1732
- timelineStartHour: b,
1733
- timelineEndHour: x,
1734
- showTimeline: y,
1735
- emptyStateText: S ?? M.emptyStateText,
1736
- renderEventItem: g
1881
+ children: /* @__PURE__ */ X("div", {
1882
+ className: "calendar popover-scroll",
1883
+ children: /* @__PURE__ */ X(sn, {
1884
+ date: L,
1885
+ events: ke,
1886
+ locale: oe,
1887
+ timelineStartHour: x,
1888
+ timelineEndHour: S,
1889
+ showTimeline: y,
1890
+ overlapWarning: C,
1891
+ emptyStateText: j ?? ce.emptyStateText,
1892
+ addEventLabel: T,
1893
+ dayMenuLabel: E,
1894
+ onAddEvent: w,
1895
+ renderDayMenu: D,
1896
+ onEventSelect: O,
1897
+ onEventEdit: k,
1898
+ onEventDelete: A,
1899
+ renderEventItem: g,
1900
+ renderEventMenu: _
1901
+ })
1737
1902
  })
1738
1903
  })
1739
1904
  ]
@@ -1741,7 +1906,7 @@ function Yt({ month: t, defaultMonth: n, onMonthChange: r, events: i = [], local
1741
1906
  }
1742
1907
  //#endregion
1743
1908
  //#region src/components/data/MChart/MChart.types.ts
1744
- var Xt = [
1909
+ var un = [
1745
1910
  "primary",
1746
1911
  "info",
1747
1912
  "success",
@@ -1750,12 +1915,12 @@ var Xt = [
1750
1915
  "news",
1751
1916
  "neutral",
1752
1917
  "dark"
1753
- ], Zt = {
1918
+ ], dn = {
1754
1919
  top: 20,
1755
1920
  right: 20,
1756
1921
  bottom: 40,
1757
1922
  left: 50
1758
- }, Qt = {
1923
+ }, fn = {
1759
1924
  top: 20,
1760
1925
  right: 20,
1761
1926
  bottom: 55,
@@ -1763,15 +1928,15 @@ var Xt = [
1763
1928
  };
1764
1929
  //#endregion
1765
1930
  //#region src/components/data/MChart/utils/formats.ts
1766
- function $t(e) {
1931
+ function pn(e) {
1767
1932
  return Math.abs(e) >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : Math.abs(e) >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : Number.isInteger(e) ? String(e) : e.toFixed(1);
1768
1933
  }
1769
- function en(e) {
1934
+ function mn(e) {
1770
1935
  return e;
1771
1936
  }
1772
1937
  //#endregion
1773
1938
  //#region src/components/data/MChart/parts/ChartGrid.tsx
1774
- function tn({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines: a }) {
1939
+ function hn({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines: a }) {
1775
1940
  return /* @__PURE__ */ Z("g", {
1776
1941
  className: "chart-grid",
1777
1942
  children: [i.map((t, r) => /* @__PURE__ */ X("line", {
@@ -1791,7 +1956,7 @@ function tn({ x: e, y: t, width: n, height: r, horizontalLines: i, verticalLines
1791
1956
  }
1792
1957
  //#endregion
1793
1958
  //#region src/components/data/MChart/parts/ChartAxis.tsx
1794
- function nn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1959
+ function gn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1795
1960
  let o = e === "x";
1796
1961
  return /* @__PURE__ */ Z("g", {
1797
1962
  className: `chart-axis chart-axis-${e}`,
@@ -1837,9 +2002,9 @@ function nn({ type: e, x: t, y: n, length: r, ticks: i, title: a }) {
1837
2002
  }
1838
2003
  //#endregion
1839
2004
  //#region src/components/data/MChart/charts/MLineChart.tsx
1840
- function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, curved: u, animated: d, valueFormatter: f = $t, onTooltip: p, onDataClick: m }) {
2005
+ function _n({ 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 = pn, onTooltip: p, onDataClick: m }) {
1841
2006
  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(() => {
1842
- let t = e.map((e) => e.data), [n, r] = Te(t), i = o?.min ?? Ce(n), s = o?.max ?? Se(r, n), c = xe(i, s, o?.ticks ?? 5), l = Math.max(...t.map((e) => e.length), 1), u = a?.labels ?? Array.from({ length: l }, (e, t) => String(t)), d = G([0, Math.max(l - 1, 1)], [0, _]), f = G([i, s], [v, 0]);
2007
+ let t = e.map((e) => e.data), [n, r] = Fe(t), i = o?.min ?? je(n), s = o?.max ?? De(r, n), c = ke(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]);
1843
2008
  return {
1844
2009
  yMin: i,
1845
2010
  yMax: s,
@@ -1888,7 +2053,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1888
2053
  label: e
1889
2054
  }));
1890
2055
  return /* @__PURE__ */ Z("g", { children: [
1891
- s && /* @__PURE__ */ X(tn, {
2056
+ s && /* @__PURE__ */ X(hn, {
1892
2057
  x: i.left,
1893
2058
  y: i.top,
1894
2059
  width: _,
@@ -1896,7 +2061,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1896
2061
  horizontalLines: O,
1897
2062
  verticalLines: k
1898
2063
  }),
1899
- l && /* @__PURE__ */ X(nn, {
2064
+ l && /* @__PURE__ */ X(gn, {
1900
2065
  type: "y",
1901
2066
  x: i.left,
1902
2067
  y: i.top + v,
@@ -1904,7 +2069,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1904
2069
  ticks: A,
1905
2070
  title: o?.title
1906
2071
  }),
1907
- c && /* @__PURE__ */ X(nn, {
2072
+ c && /* @__PURE__ */ X(gn, {
1908
2073
  type: "x",
1909
2074
  x: i.left,
1910
2075
  y: i.top + v,
@@ -1927,7 +2092,7 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1927
2092
  let a = e[r].color ?? t[r % t.length], o = u ? Oe(n.map((e) => ({
1928
2093
  x: e.x + i.left,
1929
2094
  y: e.y + i.top
1930
- }))) : we(n.map((e) => ({
2095
+ }))) : W(n.map((e) => ({
1931
2096
  x: e.x + i.left,
1932
2097
  y: e.y + i.top
1933
2098
  })));
@@ -1956,15 +2121,15 @@ function rn({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
1956
2121
  }
1957
2122
  //#endregion
1958
2123
  //#region src/components/data/MChart/charts/MBarChart.tsx
1959
- function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, stacked: u, animated: d, valueFormatter: f = $t, onTooltip: p, onDataClick: m }) {
2124
+ function vn({ 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 = pn, onTooltip: p, onDataClick: m }) {
1960
2125
  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(() => {
1961
2126
  let t = e.map((e) => e.data), n = Math.max(...t.map((e) => e.length), 1), r, i;
1962
- u ? [r, i] = ke(t) : [r, i] = Te(t);
1963
- let s = o?.min ?? Ce(r), c = o?.max ?? Se(i, r);
2127
+ u ? [r, i] = Ee(t) : [r, i] = Fe(t);
2128
+ let s = o?.min ?? je(r), c = o?.max ?? De(i, r);
1964
2129
  return {
1965
2130
  yMin: s,
1966
2131
  yMax: c,
1967
- yTicks: xe(s, c, o?.ticks ?? 5),
2132
+ yTicks: ke(s, c, o?.ticks ?? 5),
1968
2133
  xLabels: a?.labels ?? Array.from({ length: n }, (e, t) => String(t)),
1969
2134
  maxLen: n
1970
2135
  };
@@ -2011,14 +2176,14 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2011
2176
  label: (o?.formatter ?? f)(e)
2012
2177
  })), ee = w(0);
2013
2178
  return /* @__PURE__ */ Z("g", { children: [
2014
- s && /* @__PURE__ */ X(tn, {
2179
+ s && /* @__PURE__ */ X(hn, {
2015
2180
  x: i.left,
2016
2181
  y: i.top,
2017
2182
  width: _,
2018
2183
  height: v,
2019
2184
  horizontalLines: A
2020
2185
  }),
2021
- l && /* @__PURE__ */ X(nn, {
2186
+ l && /* @__PURE__ */ X(gn, {
2022
2187
  type: "y",
2023
2188
  x: i.left,
2024
2189
  y: i.top + v,
@@ -2026,7 +2191,7 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2026
2191
  ticks: M,
2027
2192
  title: o?.title
2028
2193
  }),
2029
- c && /* @__PURE__ */ X(nn, {
2194
+ c && /* @__PURE__ */ X(gn, {
2030
2195
  type: "x",
2031
2196
  x: i.left,
2032
2197
  y: i.top + v,
@@ -2076,11 +2241,11 @@ function an({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2076
2241
  }
2077
2242
  //#endregion
2078
2243
  //#region src/components/data/MChart/charts/MAreaChart.tsx
2079
- function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAxis: a, yAxis: o, showGrid: s, showXAxis: c, showYAxis: l, curved: u, stacked: d, animated: f, valueFormatter: p = $t, onTooltip: m, onDataClick: h }) {
2244
+ function yn({ 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 = pn, onTooltip: m, onDataClick: h }) {
2080
2245
  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(() => {
2081
2246
  let t = e.map((e) => e.data), n = Math.max(...t.map((e) => e.length), 1), r, s;
2082
- d ? [r, s] = ke(t) : [r, s] = Te(t);
2083
- let c = o?.min ?? Ce(r), l = o?.max ?? Se(s, r), f = xe(c, l, o?.ticks ?? 5), p = a?.labels ?? Array.from({ length: n }, (e, t) => String(t)), m = G([0, Math.max(n - 1, 1)], [0, v]), h = G([c, l], [y, 0]);
2247
+ d ? [r, s] = Ee(t) : [r, s] = Fe(t);
2248
+ let c = o?.min ?? je(r), l = o?.max ?? De(s, r), f = ke(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]);
2084
2249
  if (d) {
2085
2250
  let e = [];
2086
2251
  for (let r = 0; r < t.length; r++) {
@@ -2099,14 +2264,14 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2099
2264
  y: i.top + h(e)
2100
2265
  }));
2101
2266
  return {
2102
- area: De(r, n === 0 ? t.map((e, t) => ({
2267
+ area: Ne(r, n === 0 ? t.map((e, t) => ({
2103
2268
  x: i.left + m(t),
2104
2269
  y: i.top + h(0)
2105
2270
  })) : e[n - 1].map((e, t) => ({
2106
2271
  x: i.left + m(t),
2107
2272
  y: i.top + h(e)
2108
2273
  })), u),
2109
- line: u ? Oe(r) : we(r),
2274
+ line: u ? Oe(r) : W(r),
2110
2275
  topPts: r
2111
2276
  };
2112
2277
  })
@@ -2164,14 +2329,14 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2164
2329
  label: e
2165
2330
  }));
2166
2331
  return /* @__PURE__ */ Z("g", { children: [
2167
- s && /* @__PURE__ */ X(tn, {
2332
+ s && /* @__PURE__ */ X(hn, {
2168
2333
  x: i.left,
2169
2334
  y: i.top,
2170
2335
  width: v,
2171
2336
  height: y,
2172
2337
  horizontalLines: A
2173
2338
  }),
2174
- l && /* @__PURE__ */ X(nn, {
2339
+ l && /* @__PURE__ */ X(gn, {
2175
2340
  type: "y",
2176
2341
  x: i.left,
2177
2342
  y: i.top + y,
@@ -2179,7 +2344,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2179
2344
  ticks: j,
2180
2345
  title: o?.title
2181
2346
  }),
2182
- c && /* @__PURE__ */ X(nn, {
2347
+ c && /* @__PURE__ */ X(gn, {
2183
2348
  type: "x",
2184
2349
  x: i.left,
2185
2350
  y: i.top + y,
@@ -2208,7 +2373,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2208
2373
  d: n.line
2209
2374
  })] }, r);
2210
2375
  }) : w.map((n, r) => {
2211
- let a = e[r].color ?? t[r % t.length], o = u ? Oe(n) : we(n), s = Ee(n, i.top + y, u);
2376
+ let a = e[r].color ?? t[r % t.length], o = u ? Oe(n) : W(n), s = Me(n, i.top + y, u);
2212
2377
  return /* @__PURE__ */ Z("g", { children: [
2213
2378
  /* @__PURE__ */ X("path", {
2214
2379
  className: `chart-area-fill ${a}`,
@@ -2241,7 +2406,7 @@ function on({ data: e, colors: t, innerWidth: n, innerHeight: r, padding: i, xAx
2241
2406
  }
2242
2407
  //#endregion
2243
2408
  //#region src/components/data/MChart/charts/MPieChart.tsx
2244
- function sn({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donutWidth: a, animated: o, valueFormatter: s = $t, xAxis: c, onTooltip: l, onDataClick: u }) {
2409
+ function bn({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donutWidth: a, animated: o, valueFormatter: s = pn, xAxis: c, onTooltip: l, onDataClick: u }) {
2245
2410
  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(() => {
2246
2411
  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;
2247
2412
  return n.map((n, o) => {
@@ -2278,7 +2443,7 @@ function sn({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2278
2443
  f(null), l(null);
2279
2444
  }, [l]);
2280
2445
  return /* @__PURE__ */ Z("g", { children: [_.map((e, t) => {
2281
- let n = d === t, r = be(p, m, n ? h + 4 : h, g, e.startAngle, e.endAngle);
2446
+ let n = d === t, r = Ae(p, m, n ? h + 4 : h, g, e.startAngle, e.endAngle);
2282
2447
  return /* @__PURE__ */ X("path", {
2283
2448
  className: `chart-pie-segment ${e.color} ${o ? "animated" : ""} ${n ? "active" : ""}`,
2284
2449
  d: r,
@@ -2313,7 +2478,7 @@ function sn({ data: e, colors: t, innerWidth: n, innerHeight: r, donut: i, donut
2313
2478
  }
2314
2479
  //#endregion
2315
2480
  //#region src/components/data/MChart/parts/ChartDefs.tsx
2316
- var cn = [
2481
+ var xn = [
2317
2482
  "primary",
2318
2483
  "info",
2319
2484
  "success",
@@ -2324,9 +2489,9 @@ var cn = [
2324
2489
  "dark",
2325
2490
  "light"
2326
2491
  ];
2327
- function ln() {
2492
+ function Sn() {
2328
2493
  return /* @__PURE__ */ Z("defs", { children: [
2329
- cn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2494
+ xn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2330
2495
  id: `chart-bar-grad-${e}`,
2331
2496
  x1: "0",
2332
2497
  y1: "0",
@@ -2340,7 +2505,7 @@ function ln() {
2340
2505
  className: `chart-grad-stop-end ${e}`
2341
2506
  })]
2342
2507
  }, `bar-${e}`)),
2343
- cn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2508
+ xn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2344
2509
  id: `chart-pie-grad-${e}`,
2345
2510
  x1: "0.3",
2346
2511
  y1: "0",
@@ -2354,7 +2519,7 @@ function ln() {
2354
2519
  className: `chart-grad-stop-end ${e}`
2355
2520
  })]
2356
2521
  }, `pie-${e}`)),
2357
- cn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2522
+ xn.map((e) => /* @__PURE__ */ Z("linearGradient", {
2358
2523
  id: `chart-area-grad-${e}`,
2359
2524
  x1: "0",
2360
2525
  y1: "0",
@@ -2372,7 +2537,7 @@ function ln() {
2372
2537
  }
2373
2538
  //#endregion
2374
2539
  //#region src/components/data/MChart/parts/ChartTooltip.tsx
2375
- function un({ data: e, valueFormatter: t }) {
2540
+ function Cn({ data: e, valueFormatter: t }) {
2376
2541
  return e ? /* @__PURE__ */ Z("div", {
2377
2542
  className: "chart-tooltip",
2378
2543
  style: {
@@ -2400,7 +2565,7 @@ function un({ data: e, valueFormatter: t }) {
2400
2565
  }
2401
2566
  //#endregion
2402
2567
  //#region src/components/data/MChart/parts/ChartLegend.tsx
2403
- function dn({ items: e }) {
2568
+ function wn({ items: e }) {
2404
2569
  return e.length <= 1 ? null : /* @__PURE__ */ X("div", {
2405
2570
  className: "chart-legend",
2406
2571
  children: e.map((e, t) => /* @__PURE__ */ Z("div", {
@@ -2414,8 +2579,8 @@ function dn({ items: e }) {
2414
2579
  }
2415
2580
  //#endregion
2416
2581
  //#region src/components/data/MChart/MChart.tsx
2417
- function fn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio: i, xAxis: a, yAxis: o, showGrid: s = !0, showXAxis: c = !0, showYAxis: l = !0, showLegend: u = !0, showTooltip: d = !0, animated: f = !0, stacked: p = !1, curved: m = !1, donut: h = !1, donutWidth: g, valueFormatter: _ = $t, labelFormatter: v = en, onDataClick: y, className: b, style: x, ...S }) {
2418
- let C = J(null), [w, T] = Y(null), E = Xt, D = a?.title || o?.title ? Qt : Zt, O = i ? void 0 : typeof r == "number" ? r : 300, k = O ?? 300, A = K((e) => {
2582
+ function Tn({ 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: _ = pn, labelFormatter: v = mn, onDataClick: y, className: b, style: x, ...S }) {
2583
+ let C = J(null), [w, T] = Y(null), E = un, D = a?.title || o?.title ? fn : dn, O = i ? void 0 : typeof r == "number" ? r : 300, k = O ?? 300, A = K((e) => {
2419
2584
  d && T(e);
2420
2585
  }, [d]), j = q(() => e === "pie" && t.length === 1 ? (a?.labels ?? t[0].data.map((e, t) => `Segment ${t + 1}`)).map((e, t) => ({
2421
2586
  label: e,
@@ -2446,7 +2611,7 @@ function fn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio:
2446
2611
  };
2447
2612
  return /* @__PURE__ */ Z("div", {
2448
2613
  ref: C,
2449
- className: I("chart", b),
2614
+ className: P("chart", b),
2450
2615
  style: {
2451
2616
  width: n,
2452
2617
  height: i ? void 0 : O,
@@ -2460,68 +2625,68 @@ function fn({ type: e, data: t, width: n = "100%", height: r = 300, aspectRatio:
2460
2625
  preserveAspectRatio: "xMidYMid meet",
2461
2626
  className: "chart-svg",
2462
2627
  children: [
2463
- /* @__PURE__ */ X(ln, {}),
2464
- e === "line" && /* @__PURE__ */ X(rn, {
2628
+ /* @__PURE__ */ X(Sn, {}),
2629
+ e === "line" && /* @__PURE__ */ X(_n, {
2465
2630
  ...M,
2466
2631
  curved: m
2467
2632
  }),
2468
- e === "bar" && /* @__PURE__ */ X(an, {
2633
+ e === "bar" && /* @__PURE__ */ X(vn, {
2469
2634
  ...M,
2470
2635
  stacked: p
2471
2636
  }),
2472
- e === "area" && /* @__PURE__ */ X(on, {
2637
+ e === "area" && /* @__PURE__ */ X(yn, {
2473
2638
  ...M,
2474
2639
  curved: m,
2475
2640
  stacked: p
2476
2641
  }),
2477
- e === "pie" && /* @__PURE__ */ X(sn, {
2642
+ e === "pie" && /* @__PURE__ */ X(bn, {
2478
2643
  ...M,
2479
2644
  donut: h,
2480
2645
  donutWidth: g
2481
2646
  })
2482
2647
  ]
2483
2648
  }),
2484
- d && /* @__PURE__ */ X(un, {
2649
+ d && /* @__PURE__ */ X(Cn, {
2485
2650
  data: w,
2486
2651
  valueFormatter: _
2487
2652
  }),
2488
- u && /* @__PURE__ */ X(dn, { items: j })
2653
+ u && /* @__PURE__ */ X(wn, { items: j })
2489
2654
  ]
2490
2655
  });
2491
2656
  }
2492
2657
  //#endregion
2493
2658
  //#region src/components/data/MChart/MLineChart.tsx
2494
- function pn(e) {
2495
- return /* @__PURE__ */ X(fn, {
2659
+ function En(e) {
2660
+ return /* @__PURE__ */ X(Tn, {
2496
2661
  type: "line",
2497
2662
  ...e
2498
2663
  });
2499
2664
  }
2500
2665
  //#endregion
2501
2666
  //#region src/components/data/MChart/MBarChart.tsx
2502
- function mn(e) {
2503
- return /* @__PURE__ */ X(fn, {
2667
+ function Dn(e) {
2668
+ return /* @__PURE__ */ X(Tn, {
2504
2669
  type: "bar",
2505
2670
  ...e
2506
2671
  });
2507
2672
  }
2508
2673
  //#endregion
2509
2674
  //#region src/components/data/MChart/MAreaChart.tsx
2510
- function hn(e) {
2511
- return /* @__PURE__ */ X(fn, {
2675
+ function On(e) {
2676
+ return /* @__PURE__ */ X(Tn, {
2512
2677
  type: "area",
2513
2678
  ...e
2514
2679
  });
2515
2680
  }
2516
2681
  //#endregion
2517
2682
  //#region src/components/data/MChart/MPieChart.tsx
2518
- function gn(e) {
2519
- return /* @__PURE__ */ X(fn, {
2683
+ function kn(e) {
2684
+ return /* @__PURE__ */ X(Tn, {
2520
2685
  type: "pie",
2521
2686
  ...e
2522
2687
  });
2523
2688
  }
2524
2689
  //#endregion
2525
- export { Xe as _, Yt as a, We as b, Kt as c, wt as d, lt as f, Ze as g, Qe as h, pn as i, Jt as l, $e as m, hn as n, Wt as o, ct as p, mn as r, Gt as s, gn as t, qt as u, qe as v, Ue as x, Ke as y };
2690
+ export { nt as _, ln as a, Xe as b, rn as c, on as d, xt as f, rt as g, it as h, En as i, cn as l, at as m, On as n, tn as o, ot as p, Dn as r, nn as s, kn as t, Qt as u, $e as v, Ye as x, Qe as y };
2526
2691
 
2527
- //# sourceMappingURL=data-BiwK5rfx.js.map
2692
+ //# sourceMappingURL=data-z3e8XTSt.js.map