@hanzo/ui 5.3.1 → 5.3.3

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 (432) hide show
  1. package/dist/3d/button.js +1 -1
  2. package/dist/3d/button.mjs +1 -1
  3. package/dist/3d/card.js +1 -1
  4. package/dist/3d/card.mjs +1 -1
  5. package/dist/3d/carousel.js +1 -1
  6. package/dist/3d/carousel.mjs +1 -1
  7. package/dist/3d/grid.js +1 -1
  8. package/dist/3d/grid.mjs +1 -1
  9. package/dist/3d/index.js +1 -1
  10. package/dist/3d/index.mjs +1 -1
  11. package/dist/3d/marquee.js +1 -1
  12. package/dist/3d/marquee.mjs +1 -1
  13. package/dist/3d/pin.js +1 -1
  14. package/dist/3d/pin.mjs +1 -1
  15. package/dist/accordion.js +1 -1
  16. package/dist/accordion.mjs +1 -1
  17. package/dist/alert-dialog.js +1 -1
  18. package/dist/alert-dialog.mjs +1 -1
  19. package/dist/alert.js +1 -1
  20. package/dist/alert.mjs +1 -1
  21. package/dist/animation/animated-background.js +1 -0
  22. package/dist/animation/animated-background.mjs +1 -0
  23. package/dist/animation/animated-beam.js +1 -0
  24. package/dist/animation/animated-beam.mjs +1 -0
  25. package/dist/animation/animated-cursor.js +1 -0
  26. package/dist/animation/animated-cursor.mjs +1 -0
  27. package/dist/animation/animated-icon.js +1 -0
  28. package/dist/animation/{icon.mjs → animated-icon.mjs} +1 -1
  29. package/dist/animation/animated-list.js +1 -0
  30. package/dist/animation/{list.mjs → animated-list.mjs} +1 -1
  31. package/dist/animation/animated-number.js +1 -0
  32. package/dist/animation/{number.mjs → animated-number.mjs} +1 -1
  33. package/dist/animation/{testimonials.js → animated-testimonials.js} +1 -1
  34. package/dist/animation/{testimonials.mjs → animated-testimonials.mjs} +1 -1
  35. package/dist/animation/{tooltip.js → animated-tooltip.js} +1 -1
  36. package/dist/animation/{tooltip.mjs → animated-tooltip.mjs} +1 -1
  37. package/dist/animation/apple-cards-carousel.js +1 -1
  38. package/dist/animation/apple-cards-carousel.mjs +1 -1
  39. package/dist/animation/apple-hello-effect.js +1 -1
  40. package/dist/animation/apple-hello-effect.mjs +1 -1
  41. package/dist/animation/index.js +1 -1
  42. package/dist/animation/index.mjs +1 -1
  43. package/dist/avatar.js +1 -1
  44. package/dist/avatar.mjs +1 -1
  45. package/dist/badge.js +1 -1
  46. package/dist/badge.mjs +1 -1
  47. package/dist/blocks/index.js +18 -0
  48. package/dist/blocks/index.mjs +18 -0
  49. package/dist/breadcrumb.js +1 -1
  50. package/dist/breadcrumb.mjs +1 -1
  51. package/dist/calendar.js +1 -1
  52. package/dist/calendar.mjs +1 -1
  53. package/dist/carousel.js +1 -1
  54. package/dist/carousel.mjs +1 -1
  55. package/dist/checkbox.js +1 -1
  56. package/dist/checkbox.mjs +1 -1
  57. package/dist/{chunk-XOGRJZXX.mjs → chunk-2G2TUOYL.mjs} +1 -1
  58. package/dist/chunk-2NRIIJQX.mjs +1 -0
  59. package/dist/{chunk-HIDGPSBX.js → chunk-2QQUT6FO.js} +1 -1
  60. package/dist/chunk-2WJA3HSQ.mjs +1 -0
  61. package/dist/chunk-3COMMLYS.js +1 -0
  62. package/dist/chunk-3JXTWYX4.mjs +1 -0
  63. package/dist/chunk-3LHI3PX3.js +1 -0
  64. package/dist/chunk-3MGIZWAB.mjs +1 -0
  65. package/dist/{chunk-TU67EJEW.mjs → chunk-3RI2CAUD.mjs} +1 -1
  66. package/dist/chunk-3SCWILJG.mjs +1 -0
  67. package/dist/{chunk-PRVEIITE.js → chunk-3YL43AE4.js} +1 -1
  68. package/dist/chunk-4Q7ZSPY5.mjs +1 -0
  69. package/dist/{chunk-GRGT2Z4K.js → chunk-4TW4U2UN.js} +1 -1
  70. package/dist/chunk-4V3ZHFMN.js +1 -0
  71. package/dist/{chunk-FIN2IX2D.mjs → chunk-543CBJCW.mjs} +1 -1
  72. package/dist/chunk-5OFYCUOP.mjs +1 -0
  73. package/dist/{chunk-HQGRRTIW.mjs → chunk-5WJCKQNU.mjs} +1 -1
  74. package/dist/{chunk-CDO4BR6V.js → chunk-5XGQGWZM.js} +1 -1
  75. package/dist/{chunk-MPZRRATY.mjs → chunk-675QWDLU.mjs} +1 -1
  76. package/dist/chunk-6JORQMRC.mjs +1 -0
  77. package/dist/chunk-6T7CYRG7.js +1 -0
  78. package/dist/{chunk-EGN6SLB7.js → chunk-6ZY3MBIT.js} +2 -2
  79. package/dist/chunk-74JIFEFB.mjs +1 -0
  80. package/dist/{chunk-BIWGFJPQ.mjs → chunk-7B5FD4EX.mjs} +1 -1
  81. package/dist/{chunk-OQOBF7QQ.js → chunk-7QB7ZQ7S.js} +1 -1
  82. package/dist/chunk-7SGMZA6O.mjs +1 -0
  83. package/dist/{chunk-RBURLSG7.js → chunk-7SP7DCJD.js} +1 -1
  84. package/dist/chunk-7SZPHHBV.mjs +1 -0
  85. package/dist/{chunk-FX7VUERX.mjs → chunk-A47N7TW2.mjs} +1 -1
  86. package/dist/{chunk-RO3D3W57.js → chunk-AABD5QO3.js} +1 -1
  87. package/dist/chunk-AAEV2ONV.mjs +1 -0
  88. package/dist/{chunk-BUMLLGES.mjs → chunk-AB5DY56M.mjs} +1 -1
  89. package/dist/{chunk-2SI3T6F4.mjs → chunk-AKQGA7BP.mjs} +1 -1
  90. package/dist/chunk-AKV7ZDJN.mjs +1 -0
  91. package/dist/{chunk-SRPQZYB6.js → chunk-AQFMZ53B.js} +1 -1
  92. package/dist/chunk-AQYYHBXT.js +1 -0
  93. package/dist/{chunk-OY2LIJR2.mjs → chunk-ATNZNQV7.mjs} +1 -1
  94. package/dist/{chunk-PZPKFU2D.mjs → chunk-AVI3IRMQ.mjs} +1 -1
  95. package/dist/{chunk-6J4QZBJ6.js → chunk-B36534P3.js} +1 -1
  96. package/dist/{chunk-PIDMTL36.mjs → chunk-B5SWQNYJ.mjs} +1 -1
  97. package/dist/{chunk-CGUI5CEC.mjs → chunk-B5YYUUXW.mjs} +1 -1
  98. package/dist/{chunk-5RACWNGV.mjs → chunk-BALF4M3M.mjs} +1 -1
  99. package/dist/{chunk-OLTPOUB2.js → chunk-BBTCLHXF.js} +1 -1
  100. package/dist/{chunk-GANGDIZG.mjs → chunk-BKKW66AM.mjs} +1 -1
  101. package/dist/{chunk-VJDDFZ7N.mjs → chunk-BKOJG4VJ.mjs} +1 -1
  102. package/dist/chunk-BSO3JZ7S.js +1 -0
  103. package/dist/{chunk-VTJ6QUCR.js → chunk-BTHDX6LM.js} +1 -1
  104. package/dist/{chunk-VUIJAFJC.js → chunk-BX5NPSJL.js} +1 -1
  105. package/dist/{chunk-MJDVKTGX.mjs → chunk-C64EW4QE.mjs} +1 -1
  106. package/dist/{chunk-RVPP46TI.js → chunk-C6DDKSBN.js} +1 -1
  107. package/dist/chunk-CH2T5MI4.js +1 -0
  108. package/dist/{chunk-NBXNOMXS.mjs → chunk-CHQFVVZG.mjs} +1 -1
  109. package/dist/{chunk-TG6V2JL2.js → chunk-CVLDBF72.js} +1 -1
  110. package/dist/chunk-CWFGLK4T.mjs +1 -0
  111. package/dist/{chunk-YLY2B6UX.mjs → chunk-CY75DPD4.mjs} +1 -1
  112. package/dist/{chunk-VN2BKXHJ.js → chunk-D62ZOURF.js} +1 -1
  113. package/dist/{chunk-TCTFHNND.js → chunk-D6W5YYHP.js} +1 -1
  114. package/dist/{chunk-A3S2QAGG.mjs → chunk-DAYNCC5Z.mjs} +1 -1
  115. package/dist/{chunk-GTFU3T2U.mjs → chunk-DEQAYMUY.mjs} +1 -1
  116. package/dist/{chunk-JRWBF5SH.js → chunk-DHN3REDJ.js} +1 -1
  117. package/dist/chunk-DNHCQ446.js +1 -0
  118. package/dist/{chunk-ZA3JIBDG.js → chunk-DVA7HROB.js} +1 -1
  119. package/dist/{chunk-S2UB25HB.mjs → chunk-DX7WWVJP.mjs} +1 -1
  120. package/dist/{chunk-J5KX3VTM.js → chunk-E45AM32Q.js} +1 -1
  121. package/dist/{chunk-G4X4J5EW.js → chunk-EJA2AU5X.js} +1 -1
  122. package/dist/{chunk-MUI6SJLP.js → chunk-ENDXD5HO.js} +1 -1
  123. package/dist/chunk-ER3ALPBZ.js +1 -0
  124. package/dist/{chunk-Z3DNBRF4.js → chunk-F3D72E4E.js} +1 -1
  125. package/dist/chunk-F6AIQXTW.mjs +1 -0
  126. package/dist/{chunk-B4RJSSWX.js → chunk-FFCMERSP.js} +1 -1
  127. package/dist/chunk-FLC52TR6.js +1 -0
  128. package/dist/chunk-FLZRGQ3O.mjs +1 -0
  129. package/dist/{chunk-5VHN5OKZ.js → chunk-FOTLPQNB.js} +1 -1
  130. package/dist/{chunk-UB3PGZRA.mjs → chunk-FZWBG7UV.mjs} +1 -1
  131. package/dist/chunk-G2LRED4X.js +1 -0
  132. package/dist/{chunk-FQO25CNQ.mjs → chunk-G2O6JIRY.mjs} +1 -1
  133. package/dist/chunk-G62CSYX2.js +1 -0
  134. package/dist/chunk-G7QRK2WL.mjs +1 -0
  135. package/dist/{chunk-EATSKPYS.js → chunk-GCZQ2LS2.js} +1 -1
  136. package/dist/{chunk-C66RILAI.mjs → chunk-GH56HZXN.mjs} +1 -1
  137. package/dist/{chunk-LTJQGMPF.mjs → chunk-GIKQMGEY.mjs} +1 -1
  138. package/dist/{chunk-266OC746.mjs → chunk-GJEV6LDG.mjs} +1 -1
  139. package/dist/{chunk-RQIT2MTH.mjs → chunk-GK7TQN2Y.mjs} +1 -1
  140. package/dist/chunk-GRGR3K4M.mjs +1 -0
  141. package/dist/{chunk-J4DJZHOE.js → chunk-GZCOKOS6.js} +1 -1
  142. package/dist/chunk-H5T5EPQU.mjs +1 -0
  143. package/dist/{chunk-WN767YS2.mjs → chunk-H7ZFQ43F.mjs} +1 -1
  144. package/dist/chunk-HAMILVTN.mjs +1 -0
  145. package/dist/chunk-HAYVC5RR.js +1 -0
  146. package/dist/{chunk-VFFLOHVQ.mjs → chunk-HL4KRRJB.mjs} +1 -1
  147. package/dist/{chunk-O6RJT46G.js → chunk-ILMRC36I.js} +1 -1
  148. package/dist/{chunk-JTTJLJON.js → chunk-IQEZ2NU7.js} +1 -1
  149. package/dist/{chunk-UKAX7IFP.js → chunk-ISSZRFPX.js} +1 -1
  150. package/dist/{chunk-JZGTSHZ4.js → chunk-JAVQTNQQ.js} +1 -1
  151. package/dist/chunk-JB2D6UKV.js +1 -0
  152. package/dist/{chunk-4TE2JWNG.js → chunk-JFPLY6KM.js} +1 -1
  153. package/dist/chunk-JOKSCCHB.js +1 -0
  154. package/dist/chunk-JOQWSZRJ.mjs +1 -0
  155. package/dist/chunk-JPGIJFW5.js +1 -0
  156. package/dist/{chunk-XOQCRR5Q.js → chunk-JSGFZR4R.js} +1 -1
  157. package/dist/chunk-JWBQUHSX.mjs +1 -0
  158. package/dist/chunk-JYLGS2OX.mjs +1 -0
  159. package/dist/chunk-K7YTUP2D.js +1 -0
  160. package/dist/chunk-KA5C2ZIG.js +1 -0
  161. package/dist/{chunk-WN5KN73U.mjs → chunk-KDE3N3L6.mjs} +1 -1
  162. package/dist/{chunk-7M4AVV2R.js → chunk-KOAG4CSB.js} +1 -1
  163. package/dist/chunk-KX4C4YC2.js +1 -0
  164. package/dist/{chunk-EK5T4DQ2.js → chunk-L3LBHAK5.js} +1 -1
  165. package/dist/chunk-L4IEIO4B.js +1 -0
  166. package/dist/{chunk-WREKV6XQ.mjs → chunk-LDQCX2XP.mjs} +1 -1
  167. package/dist/chunk-LFWWUVJX.js +1 -0
  168. package/dist/chunk-LO46SH6E.mjs +1 -0
  169. package/dist/chunk-LPZWN5DR.js +1 -0
  170. package/dist/{chunk-YQUF7KPG.mjs → chunk-LSWZ5XAN.mjs} +1 -1
  171. package/dist/chunk-LWQTRAJQ.js +1 -0
  172. package/dist/chunk-M3BGNQQL.js +1 -0
  173. package/dist/chunk-M6TWUBHE.mjs +1 -0
  174. package/dist/{chunk-SH52AKNZ.js → chunk-NCEQVAW6.js} +1 -1
  175. package/dist/{chunk-EWCCM6WP.js → chunk-NCPDG735.js} +1 -1
  176. package/dist/chunk-NGPIX3K3.mjs +1 -0
  177. package/dist/chunk-NH6GXQGY.js +1 -0
  178. package/dist/{chunk-EQAPJD4H.mjs → chunk-NIJRO4XT.mjs} +1 -1
  179. package/dist/chunk-NJF3RXSG.js +1 -0
  180. package/dist/{chunk-CDBOLI7U.js → chunk-NO5HGITF.js} +2 -2
  181. package/dist/{chunk-NE7ICOQE.mjs → chunk-NZNYBJNF.mjs} +1 -1
  182. package/dist/{chunk-XBDQSMTI.js → chunk-O5PW6EK3.js} +1 -1
  183. package/dist/chunk-O6FV6MCF.js +1 -0
  184. package/dist/{chunk-M4GZKMQS.mjs → chunk-OCDDRG5O.mjs} +1 -1
  185. package/dist/{chunk-QGHPGSQL.mjs → chunk-OCV63ER7.mjs} +1 -1
  186. package/dist/chunk-ODLBKJ43.mjs +1 -0
  187. package/dist/chunk-OFSGDRF7.js +1 -0
  188. package/dist/chunk-OTEETXQN.mjs +1 -0
  189. package/dist/{chunk-SCYHSLR2.js → chunk-OUIQYPE7.js} +1 -1
  190. package/dist/{chunk-TXND3LRQ.mjs → chunk-OVM7NM4B.mjs} +1 -1
  191. package/dist/chunk-PCWXM2CW.js +1 -0
  192. package/dist/chunk-PDWGHI5P.mjs +1 -0
  193. package/dist/{chunk-4A27XTBF.js → chunk-PKKSIZZP.js} +4 -4
  194. package/dist/chunk-PO4JYM6P.js +1 -0
  195. package/dist/{chunk-TNF5G2ZW.mjs → chunk-PP6VTZRY.mjs} +1 -1
  196. package/dist/{chunk-XJTWK37Q.mjs → chunk-PWKHIIIX.mjs} +1 -1
  197. package/dist/{chunk-3H5S2OQ3.mjs → chunk-PYX2CWVB.mjs} +1 -1
  198. package/dist/chunk-Q2ITEICA.js +1 -0
  199. package/dist/{chunk-NS6CEKHH.mjs → chunk-Q3VHBQ3B.mjs} +1 -1
  200. package/dist/{chunk-V23X5ZD6.mjs → chunk-QCWXF6PM.mjs} +1 -1
  201. package/dist/{chunk-R2JKVWNB.js → chunk-QIS2X5VM.js} +1 -1
  202. package/dist/{chunk-QZSWL227.mjs → chunk-QKJMVZ7Q.mjs} +1 -1
  203. package/dist/{chunk-GTUCZ5TW.js → chunk-QUZIAJAR.js} +1 -1
  204. package/dist/{chunk-HEZV2WAY.js → chunk-QVDGUDZV.js} +1 -1
  205. package/dist/chunk-RG6TMPXT.mjs +0 -0
  206. package/dist/chunk-RIQZF4MD.js +1 -0
  207. package/dist/{chunk-F4XX6VSS.js → chunk-RNN6AHKF.js} +1 -1
  208. package/dist/{chunk-UPRWI4ON.mjs → chunk-ROROVLVL.mjs} +1 -1
  209. package/dist/chunk-SSCZEDKZ.mjs +1 -0
  210. package/dist/chunk-SVCCHDR3.js +1 -0
  211. package/dist/{chunk-NL5ZWDIJ.mjs → chunk-SXMUVC4D.mjs} +1 -1
  212. package/dist/{chunk-GSMSWJUA.js → chunk-TGAUPMBC.js} +1 -1
  213. package/dist/chunk-TNP7EGQ2.js +1 -0
  214. package/dist/{chunk-QLB43TFO.mjs → chunk-TNRO5CZD.mjs} +1 -1
  215. package/dist/{chunk-XMYCJ2B5.js → chunk-TVPXSBXH.js} +1 -1
  216. package/dist/{chunk-CICZVOAY.js → chunk-UHDVCJC6.js} +1 -1
  217. package/dist/chunk-UMYLUB72.js +1 -0
  218. package/dist/{chunk-BOBL44QL.mjs → chunk-UTENKTJZ.mjs} +1 -1
  219. package/dist/{chunk-JCUUC6NY.mjs → chunk-V2ROY52O.mjs} +1 -1
  220. package/dist/{chunk-LYXX7LU2.js → chunk-V6JJ3J5H.js} +2 -2
  221. package/dist/{chunk-Y6SIRKG3.js → chunk-VEZEUPWM.js} +1 -1
  222. package/dist/chunk-VLNUXNN6.mjs +1 -0
  223. package/dist/{chunk-RAT4U2JG.mjs → chunk-W4VZMLH5.mjs} +1 -1
  224. package/dist/chunk-WHGMPLBG.mjs +1 -0
  225. package/dist/{chunk-4SKGA2GA.mjs → chunk-WK5DTWFH.mjs} +1 -1
  226. package/dist/{chunk-PE5GANLF.mjs → chunk-WNHSNXIT.mjs} +1 -1
  227. package/dist/{chunk-BYFLZ6DP.js → chunk-X3Y7POKQ.js} +1 -1
  228. package/dist/chunk-X7RQ2Z7V.mjs +1 -0
  229. package/dist/{chunk-OL63HLUI.js → chunk-XEL222AH.js} +2 -2
  230. package/dist/chunk-XQ5PD6OG.mjs +1 -0
  231. package/dist/{chunk-4XCQFT2C.mjs → chunk-XSJZFX23.mjs} +1 -1
  232. package/dist/chunk-XUSV3KOD.js +1 -0
  233. package/dist/{chunk-JNNKXOA3.js → chunk-XXFPKDCE.js} +1 -1
  234. package/dist/chunk-XYYYZCEM.js +1 -0
  235. package/dist/chunk-Y5IP4FKL.js +1 -0
  236. package/dist/{chunk-DNYROKHM.mjs → chunk-Y6ZF7DGV.mjs} +1 -1
  237. package/dist/{chunk-DB3WJTS4.js → chunk-YBL5BPLL.js} +1 -1
  238. package/dist/chunk-YGT4URRE.mjs +1 -0
  239. package/dist/chunk-YZFRWYNS.js +1 -0
  240. package/dist/{chunk-LUTIMOQS.mjs → chunk-ZB7NJBX4.mjs} +1 -1
  241. package/dist/{chunk-VT77IEYF.mjs → chunk-ZBFT2QPL.mjs} +1 -1
  242. package/dist/chunk-ZHYR5K4F.mjs +1 -0
  243. package/dist/{chunk-VHB7M646.mjs → chunk-ZSLVLXBF.mjs} +1 -1
  244. package/dist/{chunk-B7LBF7R7.js → chunk-ZZTEYKC5.js} +1 -1
  245. package/dist/code/block.js +1 -1
  246. package/dist/code/block.mjs +1 -1
  247. package/dist/code/compare.js +1 -1
  248. package/dist/code/compare.mjs +1 -1
  249. package/dist/code/diff.js +1 -1
  250. package/dist/code/diff.mjs +1 -1
  251. package/dist/code/editor.js +1 -1
  252. package/dist/code/editor.mjs +1 -1
  253. package/dist/code/explorer.js +1 -1
  254. package/dist/code/explorer.mjs +1 -1
  255. package/dist/code/index.js +1 -1
  256. package/dist/code/index.mjs +1 -1
  257. package/dist/code/preview.js +1 -1
  258. package/dist/code/preview.mjs +1 -1
  259. package/dist/code/snippet.js +1 -1
  260. package/dist/code/snippet.mjs +1 -1
  261. package/dist/code/tabs.js +1 -1
  262. package/dist/code/tabs.mjs +1 -1
  263. package/dist/code/terminal.js +1 -1
  264. package/dist/code/terminal.mjs +1 -1
  265. package/dist/collapsible.js +1 -1
  266. package/dist/collapsible.mjs +1 -1
  267. package/dist/command.js +1 -1
  268. package/dist/command.mjs +1 -1
  269. package/dist/context-menu.js +1 -1
  270. package/dist/context-menu.mjs +1 -1
  271. package/dist/dialog.js +1 -1
  272. package/dist/dialog.mjs +1 -1
  273. package/dist/dock/basic.js +1 -1
  274. package/dist/dock/basic.mjs +1 -1
  275. package/dist/dock/index.js +1 -1
  276. package/dist/dock/index.mjs +1 -1
  277. package/dist/dock/limelight-nav.js +1 -1
  278. package/dist/dock/limelight-nav.mjs +1 -1
  279. package/dist/dock/macos.js +1 -1
  280. package/dist/dock/macos.mjs +1 -1
  281. package/dist/dock/menu.js +1 -1
  282. package/dist/dock/menu.mjs +1 -1
  283. package/dist/dock/message.js +1 -1
  284. package/dist/dock/message.mjs +1 -1
  285. package/dist/drawer.js +1 -1
  286. package/dist/drawer.mjs +1 -1
  287. package/dist/dropdown-menu.js +1 -1
  288. package/dist/dropdown-menu.mjs +1 -1
  289. package/dist/finance/AdvancedChart.js +1 -1
  290. package/dist/finance/AdvancedChart.mjs +1 -1
  291. package/dist/finance/CompanyProfile.js +1 -1
  292. package/dist/finance/CompanyProfile.mjs +1 -1
  293. package/dist/finance/CryptoScreener.js +1 -1
  294. package/dist/finance/CryptoScreener.mjs +1 -1
  295. package/dist/finance/Financials.js +1 -1
  296. package/dist/finance/Financials.mjs +1 -1
  297. package/dist/finance/ForexScreener.js +1 -1
  298. package/dist/finance/ForexScreener.mjs +1 -1
  299. package/dist/finance/MarketOverview.js +1 -1
  300. package/dist/finance/MarketOverview.mjs +1 -1
  301. package/dist/finance/NewsTimeline.js +1 -1
  302. package/dist/finance/NewsTimeline.mjs +1 -1
  303. package/dist/finance/OrderEntry.js +1 -1
  304. package/dist/finance/OrderEntry.mjs +1 -1
  305. package/dist/finance/OrdersHistory.js +1 -1
  306. package/dist/finance/OrdersHistory.mjs +1 -1
  307. package/dist/finance/PositionsList.js +1 -1
  308. package/dist/finance/PositionsList.mjs +1 -1
  309. package/dist/finance/StockScreener.js +1 -1
  310. package/dist/finance/StockScreener.mjs +1 -1
  311. package/dist/finance/SymbolInfo.js +1 -1
  312. package/dist/finance/SymbolInfo.mjs +1 -1
  313. package/dist/finance/TechnicalAnalysis.js +1 -1
  314. package/dist/finance/TechnicalAnalysis.mjs +1 -1
  315. package/dist/finance/TickerTape.js +1 -1
  316. package/dist/finance/TickerTape.mjs +1 -1
  317. package/dist/finance/TradingPanel.js +1 -1
  318. package/dist/finance/TradingPanel.mjs +1 -1
  319. package/dist/finance/index.js +1 -1
  320. package/dist/finance/index.mjs +1 -1
  321. package/dist/form/index.js +1 -1
  322. package/dist/form/index.mjs +1 -1
  323. package/dist/form.js +1 -1
  324. package/dist/form.mjs +1 -1
  325. package/dist/hover-card.js +1 -1
  326. package/dist/hover-card.mjs +1 -1
  327. package/dist/index.js +1 -1
  328. package/dist/index.mjs +1 -1
  329. package/dist/input-otp.js +1 -1
  330. package/dist/input-otp.mjs +1 -1
  331. package/dist/lib/utils.js +1 -1
  332. package/dist/lib/utils.mjs +1 -1
  333. package/dist/navigation/index.js +1 -1
  334. package/dist/navigation/index.mjs +1 -1
  335. package/dist/navigation-menu.js +1 -1
  336. package/dist/navigation-menu.mjs +1 -1
  337. package/dist/pattern/grid-pattern.js +1 -0
  338. package/dist/pattern/grid-pattern.mjs +1 -0
  339. package/dist/pattern/index.js +1 -1
  340. package/dist/pattern/index.mjs +1 -1
  341. package/dist/popover.js +1 -1
  342. package/dist/popover.mjs +1 -1
  343. package/dist/primitives/index.js +1 -1
  344. package/dist/primitives/index.mjs +1 -1
  345. package/dist/progress.js +1 -1
  346. package/dist/progress.mjs +1 -1
  347. package/dist/project/gantt.js +1 -1
  348. package/dist/project/gantt.mjs +1 -1
  349. package/dist/project/index.js +1 -1
  350. package/dist/project/index.mjs +1 -1
  351. package/dist/project/kanban.js +1 -1
  352. package/dist/project/kanban.mjs +1 -1
  353. package/dist/project/list.js +1 -1
  354. package/dist/project/list.mjs +1 -1
  355. package/dist/radio-group.js +1 -1
  356. package/dist/radio-group.mjs +1 -1
  357. package/dist/resizable.js +1 -1
  358. package/dist/resizable.mjs +1 -1
  359. package/dist/scroll-area.js +1 -1
  360. package/dist/scroll-area.mjs +1 -1
  361. package/dist/select.js +1 -1
  362. package/dist/select.mjs +1 -1
  363. package/dist/separator.js +1 -1
  364. package/dist/separator.mjs +1 -1
  365. package/dist/sheet.js +1 -1
  366. package/dist/sheet.mjs +1 -1
  367. package/dist/skeleton.js +1 -1
  368. package/dist/skeleton.mjs +1 -1
  369. package/dist/slider.js +1 -1
  370. package/dist/slider.mjs +1 -1
  371. package/dist/sonner.js +1 -1
  372. package/dist/sonner.mjs +1 -1
  373. package/dist/switch.js +1 -1
  374. package/dist/switch.mjs +1 -1
  375. package/dist/table.js +1 -1
  376. package/dist/table.mjs +1 -1
  377. package/dist/tabs.js +1 -1
  378. package/dist/tabs.mjs +1 -1
  379. package/dist/tailwind/index.js +1 -1
  380. package/dist/tailwind/index.mjs +1 -1
  381. package/dist/textarea.js +1 -1
  382. package/dist/textarea.mjs +1 -1
  383. package/dist/toggle-group.js +1 -1
  384. package/dist/toggle-group.mjs +1 -1
  385. package/dist/toggle.js +1 -1
  386. package/dist/toggle.mjs +1 -1
  387. package/dist/tooltip.js +1 -1
  388. package/dist/tooltip.mjs +1 -1
  389. package/dist/types/index.js +1 -1
  390. package/dist/types/index.mjs +1 -1
  391. package/dist/ui/announcement.js +1 -1
  392. package/dist/ui/announcement.mjs +1 -1
  393. package/dist/ui/avatar-group.js +1 -1
  394. package/dist/ui/avatar-group.mjs +1 -1
  395. package/dist/ui/banner.js +1 -1
  396. package/dist/ui/banner.mjs +1 -1
  397. package/dist/ui/cursor.js +1 -1
  398. package/dist/ui/cursor.mjs +1 -1
  399. package/dist/ui/index.js +1 -1
  400. package/dist/ui/index.mjs +1 -1
  401. package/dist/ui/marquee.js +1 -1
  402. package/dist/ui/marquee.mjs +1 -1
  403. package/dist/ui/pill.js +1 -1
  404. package/dist/ui/pill.mjs +1 -1
  405. package/dist/ui/spinner.js +1 -1
  406. package/dist/ui/spinner.mjs +1 -1
  407. package/dist/ui/tags.js +1 -1
  408. package/dist/ui/tags.mjs +1 -1
  409. package/dist/ui/ticker.js +1 -1
  410. package/dist/ui/ticker.mjs +1 -1
  411. package/dist/util/index.js +1 -1
  412. package/dist/util/index.mjs +1 -1
  413. package/dist/video-background-JPMYZ6FQ.mjs +1 -0
  414. package/dist/video-background-LU3PHIPS.js +1 -0
  415. package/package.json +1 -1
  416. package/dist/animation/background.js +0 -1
  417. package/dist/animation/background.mjs +0 -1
  418. package/dist/animation/beam.js +0 -1
  419. package/dist/animation/beam.mjs +0 -1
  420. package/dist/animation/cursor.js +0 -1
  421. package/dist/animation/cursor.mjs +0 -1
  422. package/dist/animation/icon.js +0 -1
  423. package/dist/animation/list.js +0 -1
  424. package/dist/animation/number.js +0 -1
  425. package/dist/chunk-B3L4REN3.js +0 -1
  426. package/dist/chunk-DKPVJSBC.js +0 -1
  427. package/dist/chunk-EI7MMDWY.js +0 -1
  428. package/dist/chunk-HM47SDFC.mjs +0 -1
  429. package/dist/chunk-LMOX4GTY.js +0 -1
  430. package/dist/chunk-YSXGDEY5.mjs +0 -1
  431. package/dist/pattern/grid.js +0 -1
  432. package/dist/pattern/grid.mjs +0 -1
@@ -1 +1 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');function z(){let[n,i]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let r=window.matchMedia("(prefers-reduced-motion: reduce)");i(r.matches);let o=chunkEI7MMDWY_js.a(d=>{i(d.matches);},"handleChange");return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),n}chunkEI7MMDWY_js.a(z,"usePrefersReducedMotion");function R({colors:n,speed:i,intensity:r,paused:o}){let d=n.length>=2?n:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0",style:{background:`linear-gradient(-45deg, ${d.join(", ")})`,backgroundSize:"400% 400%"},animate:o?{}:{x:["0%","100%","0%"]},transition:{duration:10/i,repeat:1/0,ease:"linear"}})}chunkEI7MMDWY_js.a(R,"GradientBackground");function E({colors:n,speed:i,elementCount:r,intensity:o,paused:d}){let a=react.useMemo(()=>Array.from({length:r},(e,u)=>({id:u,color:n[u%n.length],size:Math.random()*200+100,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*10+10)/i})),[r,n,i]);return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:a.map(e=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${e.color}40, transparent)`,width:e.size*o,height:e.size*o,filter:"blur(40px)"},initial:{x:`${e.x}%`,y:`${e.y}%`},animate:d?{}:{x:[`${e.x}%`,`${(e.x+50)%100}%`,`${e.x}%`],y:[`${e.y}%`,`${(e.y+30)%100}%`,`${e.y}%`],scale:[1,1.2,1]},transition:{duration:e.duration,repeat:1/0,ease:"easeInOut"}},e.id))})}chunkEI7MMDWY_js.a(E,"BlobBackground");function I({colors:n,speed:i,intensity:r,paused:o}){let d=n[0]||"#4ecdc4";return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:[0,1,2].map(a=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(ellipse 100% 50% at center ${50+a*20}%, ${d}${Math.round(30*r).toString(16).padStart(2,"0")}, transparent)`},animate:o?{}:{y:[a*10,a*10+20*r,a*10]},transition:{duration:(3+a)/i,repeat:1/0,ease:"easeInOut"}},a))})}chunkEI7MMDWY_js.a(I,"WaveBackground");function L({colors:n,speed:i,intensity:r,paused:o}){let d=n.length>=4?n.slice(0,4):["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:d.map((a,e)=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${a}60, transparent)`,width:`${60+e*20}%`,height:`${60+e*20}%`,filter:"blur(60px)",mixBlendMode:"multiply"},initial:{x:`${25+e*15}%`,y:`${25+e*15}%`},animate:o?{}:{x:[`${25+e*15}%`,`${35+e*15}%`,`${25+e*15}%`],y:[`${25+e*15}%`,`${15+e*15}%`,`${25+e*15}%`],rotate:[0,180,360]},transition:{duration:(8+e*2)/i,repeat:1/0,ease:"easeInOut"}},e))})}chunkEI7MMDWY_js.a(L,"MeshBackground");function S({layers:n,speed:i,paused:r}){let o=react$1.useMotionValue(0),d=react$1.useMotionValue(0);return react.useEffect(()=>{let a=chunkEI7MMDWY_js.a(e=>{let{clientX:u,clientY:l}=e,{innerWidth:p,innerHeight:y}=window;o.set((u/p-.5)*100),d.set((l/y-.5)*100);},"handleMouseMove");return window.addEventListener("mousemove",a),()=>window.removeEventListener("mousemove",a)},[o,d]),jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:n.map((a,e)=>{let u=react$1.useTransform(o,[-50,50],[-a.speed*10,a.speed*10]),l=react$1.useTransform(d,[-50,50],[-a.speed*10,a.speed*10]);return jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(circle, ${a.color}, transparent)`,opacity:a.opacity,x:r?0:u,y:r?0:l}},e)})})}chunkEI7MMDWY_js.a(S,"ParallaxBackground");function W({colors:n,speed:i,elementCount:r,intensity:o,paused:d}){let a=react.useMemo(()=>Array.from({length:r},(e,u)=>({id:u,color:n[u%n.length],size:Math.random()*4+2,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*20+20)/i,delay:Math.random()*5})),[r,n,i]);return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:a.map(e=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute rounded-full",style:{backgroundColor:e.color,width:e.size*o,height:e.size*o,opacity:.6},initial:{x:`${e.x}%`,y:`${e.y}%`},animate:d?{}:{y:[`${e.y}%`,`${e.y-100}%`],opacity:[0,.6,0]},transition:{duration:e.duration,repeat:1/0,delay:e.delay,ease:"linear"}},e.id))})}chunkEI7MMDWY_js.a(W,"ParticlesBackground");function c({animation:n="gradient",speed:i=1,colors:r=["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#ffeaa7"],paused:o=false,className:d,style:a,children:e,intensity:u=1,blur:l=false,blurAmount:p=20,opacity:y=1,elementCount:h=5,width:v="100%",height:$="100%",fullscreen:b=false,parallaxLayers:A=[{speed:.5,color:"#ff6b6b50",opacity:.3},{speed:1,color:"#4ecdc450",opacity:.4},{speed:1.5,color:"#45b7d150",opacity:.3}]}){let C=z(),k=o||C,N=react.useMemo(()=>({width:b?"100vw":v,height:b?"100vh":$,opacity:y,filter:l?`blur(${p}px)`:void 0,...a}),[b,v,$,y,l,p,a]),P=chunkEI7MMDWY_js.a(()=>{let f={colors:r,speed:i,intensity:u,paused:k};switch(n){case "blob":return jsxRuntime.jsx(E,{...f,elementCount:h});case "wave":return jsxRuntime.jsx(I,{...f});case "mesh":return jsxRuntime.jsx(L,{...f});case "parallax":return jsxRuntime.jsx(S,{layers:A,speed:i,paused:k});case "particles":return jsxRuntime.jsx(W,{...f,elementCount:h});default:return jsxRuntime.jsx(R,{...f})}},"renderAnimation");return jsxRuntime.jsxs("div",{className:utils.cn("relative overflow-hidden",b&&"fixed inset-0 z-0",d),style:N,children:[P(),e&&jsxRuntime.jsx("div",{className:"relative z-10 h-full w-full",children:e})]})}chunkEI7MMDWY_js.a(c,"AnimatedBackground");var H={CalmGradient:chunkEI7MMDWY_js.a(n=>jsxRuntime.jsx(c,{animation:"gradient",colors:["#667eea","#764ba2","#f093fb","#f5576c"],speed:.5,...n}),"CalmGradient"),OceanWaves:chunkEI7MMDWY_js.a(n=>jsxRuntime.jsx(c,{animation:"wave",colors:["#0093E9","#80D0C7"],...n}),"OceanWaves"),FloatingBubbles:chunkEI7MMDWY_js.a(n=>jsxRuntime.jsx(c,{animation:"blob",colors:["#667eea","#764ba2","#f093fb"],elementCount:8,...n}),"FloatingBubbles"),CosmicMesh:chunkEI7MMDWY_js.a(n=>jsxRuntime.jsx(c,{animation:"mesh",colors:["#667eea","#764ba2","#f093fb","#f5576c"],...n}),"CosmicMesh"),Starfield:chunkEI7MMDWY_js.a(n=>jsxRuntime.jsx(c,{animation:"particles",colors:["#ffffff","#f0f0f0","#e0e0e0"],elementCount:50,intensity:.5,...n}),"Starfield"),Aurora:chunkEI7MMDWY_js.a(n=>jsxRuntime.jsx(c,{animation:"parallax",parallaxLayers:[{speed:.3,color:"#00ff8850",opacity:.4},{speed:.6,color:"#0080ff50",opacity:.3},{speed:.9,color:"#8000ff50",opacity:.3},{speed:1.2,color:"#ff008050",opacity:.2}],...n}),"Aurora")},T=c;exports.a=c;exports.b=H;exports.c=T;
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');function z(){let[n,i]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let r=window.matchMedia("(prefers-reduced-motion: reduce)");i(r.matches);let o=chunkXUSV3KOD_js.a(d=>{i(d.matches);},"handleChange");return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),n}chunkXUSV3KOD_js.a(z,"usePrefersReducedMotion");function R({colors:n,speed:i,intensity:r,paused:o}){let d=n.length>=2?n:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0",style:{background:`linear-gradient(-45deg, ${d.join(", ")})`,backgroundSize:"400% 400%"},animate:o?{}:{x:["0%","100%","0%"]},transition:{duration:10/i,repeat:1/0,ease:"linear"}})}chunkXUSV3KOD_js.a(R,"GradientBackground");function E({colors:n,speed:i,elementCount:r,intensity:o,paused:d}){let a=react.useMemo(()=>Array.from({length:r},(e,u)=>({id:u,color:n[u%n.length],size:Math.random()*200+100,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*10+10)/i})),[r,n,i]);return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:a.map(e=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${e.color}40, transparent)`,width:e.size*o,height:e.size*o,filter:"blur(40px)"},initial:{x:`${e.x}%`,y:`${e.y}%`},animate:d?{}:{x:[`${e.x}%`,`${(e.x+50)%100}%`,`${e.x}%`],y:[`${e.y}%`,`${(e.y+30)%100}%`,`${e.y}%`],scale:[1,1.2,1]},transition:{duration:e.duration,repeat:1/0,ease:"easeInOut"}},e.id))})}chunkXUSV3KOD_js.a(E,"BlobBackground");function I({colors:n,speed:i,intensity:r,paused:o}){let d=n[0]||"#4ecdc4";return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:[0,1,2].map(a=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(ellipse 100% 50% at center ${50+a*20}%, ${d}${Math.round(30*r).toString(16).padStart(2,"0")}, transparent)`},animate:o?{}:{y:[a*10,a*10+20*r,a*10]},transition:{duration:(3+a)/i,repeat:1/0,ease:"easeInOut"}},a))})}chunkXUSV3KOD_js.a(I,"WaveBackground");function L({colors:n,speed:i,intensity:r,paused:o}){let d=n.length>=4?n.slice(0,4):["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:d.map((a,e)=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${a}60, transparent)`,width:`${60+e*20}%`,height:`${60+e*20}%`,filter:"blur(60px)",mixBlendMode:"multiply"},initial:{x:`${25+e*15}%`,y:`${25+e*15}%`},animate:o?{}:{x:[`${25+e*15}%`,`${35+e*15}%`,`${25+e*15}%`],y:[`${25+e*15}%`,`${15+e*15}%`,`${25+e*15}%`],rotate:[0,180,360]},transition:{duration:(8+e*2)/i,repeat:1/0,ease:"easeInOut"}},e))})}chunkXUSV3KOD_js.a(L,"MeshBackground");function S({layers:n,speed:i,paused:r}){let o=react$1.useMotionValue(0),d=react$1.useMotionValue(0);return react.useEffect(()=>{let a=chunkXUSV3KOD_js.a(e=>{let{clientX:u,clientY:l}=e,{innerWidth:p,innerHeight:y}=window;o.set((u/p-.5)*100),d.set((l/y-.5)*100);},"handleMouseMove");return window.addEventListener("mousemove",a),()=>window.removeEventListener("mousemove",a)},[o,d]),jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:n.map((a,e)=>{let u=react$1.useTransform(o,[-50,50],[-a.speed*10,a.speed*10]),l=react$1.useTransform(d,[-50,50],[-a.speed*10,a.speed*10]);return jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(circle, ${a.color}, transparent)`,opacity:a.opacity,x:r?0:u,y:r?0:l}},e)})})}chunkXUSV3KOD_js.a(S,"ParallaxBackground");function W({colors:n,speed:i,elementCount:r,intensity:o,paused:d}){let a=react.useMemo(()=>Array.from({length:r},(e,u)=>({id:u,color:n[u%n.length],size:Math.random()*4+2,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*20+20)/i,delay:Math.random()*5})),[r,n,i]);return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:a.map(e=>jsxRuntime.jsx(react$1.motion.div,{className:"absolute rounded-full",style:{backgroundColor:e.color,width:e.size*o,height:e.size*o,opacity:.6},initial:{x:`${e.x}%`,y:`${e.y}%`},animate:d?{}:{y:[`${e.y}%`,`${e.y-100}%`],opacity:[0,.6,0]},transition:{duration:e.duration,repeat:1/0,delay:e.delay,ease:"linear"}},e.id))})}chunkXUSV3KOD_js.a(W,"ParticlesBackground");function c({animation:n="gradient",speed:i=1,colors:r=["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#ffeaa7"],paused:o=false,className:d,style:a,children:e,intensity:u=1,blur:l=false,blurAmount:p=20,opacity:y=1,elementCount:h=5,width:v="100%",height:$="100%",fullscreen:b=false,parallaxLayers:A=[{speed:.5,color:"#ff6b6b50",opacity:.3},{speed:1,color:"#4ecdc450",opacity:.4},{speed:1.5,color:"#45b7d150",opacity:.3}]}){let C=z(),k=o||C,N=react.useMemo(()=>({width:b?"100vw":v,height:b?"100vh":$,opacity:y,filter:l?`blur(${p}px)`:void 0,...a}),[b,v,$,y,l,p,a]),P=chunkXUSV3KOD_js.a(()=>{let f={colors:r,speed:i,intensity:u,paused:k};switch(n){case "blob":return jsxRuntime.jsx(E,{...f,elementCount:h});case "wave":return jsxRuntime.jsx(I,{...f});case "mesh":return jsxRuntime.jsx(L,{...f});case "parallax":return jsxRuntime.jsx(S,{layers:A,speed:i,paused:k});case "particles":return jsxRuntime.jsx(W,{...f,elementCount:h});default:return jsxRuntime.jsx(R,{...f})}},"renderAnimation");return jsxRuntime.jsxs("div",{className:utils.cn("relative overflow-hidden",b&&"fixed inset-0 z-0",d),style:N,children:[P(),e&&jsxRuntime.jsx("div",{className:"relative z-10 h-full w-full",children:e})]})}chunkXUSV3KOD_js.a(c,"AnimatedBackground");var H={CalmGradient:chunkXUSV3KOD_js.a(n=>jsxRuntime.jsx(c,{animation:"gradient",colors:["#667eea","#764ba2","#f093fb","#f5576c"],speed:.5,...n}),"CalmGradient"),OceanWaves:chunkXUSV3KOD_js.a(n=>jsxRuntime.jsx(c,{animation:"wave",colors:["#0093E9","#80D0C7"],...n}),"OceanWaves"),FloatingBubbles:chunkXUSV3KOD_js.a(n=>jsxRuntime.jsx(c,{animation:"blob",colors:["#667eea","#764ba2","#f093fb"],elementCount:8,...n}),"FloatingBubbles"),CosmicMesh:chunkXUSV3KOD_js.a(n=>jsxRuntime.jsx(c,{animation:"mesh",colors:["#667eea","#764ba2","#f093fb","#f5576c"],...n}),"CosmicMesh"),Starfield:chunkXUSV3KOD_js.a(n=>jsxRuntime.jsx(c,{animation:"particles",colors:["#ffffff","#f0f0f0","#e0e0e0"],elementCount:50,intensity:.5,...n}),"Starfield"),Aurora:chunkXUSV3KOD_js.a(n=>jsxRuntime.jsx(c,{animation:"parallax",parallaxLayers:[{speed:.3,color:"#00ff8850",opacity:.4},{speed:.6,color:"#0080ff50",opacity:.3},{speed:.9,color:"#8000ff50",opacity:.3},{speed:1.2,color:"#ff008050",opacity:.2}],...n}),"Aurora")},T=c;exports.a=c;exports.b=H;exports.c=T;
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';function d(){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-screener.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({market:"forex",showToolbar:true,defaultColumn:"overview",defaultScreen:"general",isTransparent:false,locale:"en",colorTheme:"dark",width:"100%",height:550}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(n=>n.remove()));}},[]),jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}a(d,"ForexScreener");var u=memo(d);
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';function d(){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-screener.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({market:"forex",showToolbar:true,defaultColumn:"overview",defaultScreen:"general",isTransparent:false,locale:"en",colorTheme:"dark",width:"100%",height:550}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(n=>n.remove()));}},[]),jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}a(d,"ForexScreener");var u=memo(d);
2
2
  export{u as a};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-3RI2CAUD.mjs';import {a}from'./chunk-CWFGLK4T.mjs';import {cva}from'class-variance-authority';import {jsx}from'react/jsx-runtime';var n=cva("[&>svg]:text-text-default relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg+div]:translate-y-[-3px] [&>svg~*]:pl-7",{variants:{variant:{default:"bg-bg-tertiary text-text-default",info:"text-text-secondary [&>svg]:text-text-secondary bg-gray-250 border-gray-100 border-gray-200",destructive:"border-[#4d0408] bg-[#2d0607] text-[#ff9ea1] [&>svg]:text-[#ff9ea1]",warning:"border-yellow-800 bg-yellow-900 text-yellow-400 [&>svg]:text-yellow-400",success:"border-green-800 bg-green-900 text-green-400 [&>svg]:text-green-400",download:"border-gray-800 bg-gray-900 text-cyan-400 [&>svg]:text-cyan-400"}},defaultVariants:{variant:"default"}}),g=a(({className:e,variant:t,ref:r,...o})=>jsx("div",{className:a$1(n({variant:t}),e),ref:r,role:"alert",...o}),"Alert");g.displayName="Alert";var d=a(({className:e,ref:t,...r})=>jsx("h5",{className:a$1("mb-1 leading-none font-medium tracking-tight",e),ref:t,...r}),"AlertTitle");d.displayName="AlertTitle";var p=a(({className:e,ref:t,...r})=>jsx("div",{className:a$1("text-sm [&_p]:leading-relaxed",e),ref:t,...r}),"AlertDescription");p.displayName="AlertDescription";export{g as a,d as b,p as c};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkYZFRWYNS_js=require('./chunk-YZFRWYNS.js'),chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),o=require('@radix-ui/react-popover'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var p=o__namespace.Root,P=o__namespace.Trigger,v=o__namespace.Anchor,s=chunkXUSV3KOD_js.a(({className:r,align:a="center",sideOffset:d=4,...n})=>jsxRuntime.jsx(o__namespace.Portal,{children:jsxRuntime.jsx(o__namespace.Content,{align:a,className:chunkYZFRWYNS_js.a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","bg-bg-dark border-divider z-50 w-72 rounded-md border p-4 text-gray-50 shadow-lg shadow-md outline-hidden",r),sideOffset:d,...n})}),"PopoverContent");s.displayName=o__namespace.Content.displayName;exports.a=p;exports.b=P;exports.c=v;exports.d=s;
@@ -1 +1 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import*as f from'react';import {useSensors,useSensor,PointerSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {useSortable,SortableContext,verticalListSortingStrategy,arrayMove}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import {cva}from'class-variance-authority';import {User,Calendar,MoreHorizontal,Edit3,X,Plus,Search}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/primitives/badge';import {Button}from'@hanzo/ui/primitives/button';import {Card,CardHeader}from'@hanzo/ui/primitives/card';import {Dialog,DialogContent,DialogHeader,DialogTitle,DialogDescription,DialogFooter}from'@hanzo/ui/primitives/dialog';import {DropdownMenu,DropdownMenuTrigger,DropdownMenuContent,DropdownMenuItem}from'@hanzo/ui/primitives/dropdown-menu';import {Input}from'@hanzo/ui/primitives/input';import {Label}from'@hanzo/ui/primitives/label';import {Select,SelectTrigger,SelectValue,SelectContent,SelectItem}from'@hanzo/ui/primitives/select';import {Textarea}from'@hanzo/ui/primitives/textarea';import {jsx,jsxs}from'react/jsx-runtime';var Be=cva("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-semibold",{variants:{priority:{low:"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-800 dark:bg-blue-900/20 dark:text-blue-400",medium:"border-yellow-200 bg-yellow-50 text-yellow-700 dark:border-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-400",high:"border-orange-200 bg-orange-50 text-orange-700 dark:border-orange-800 dark:bg-orange-900/20 dark:text-orange-400",urgent:"border-red-200 bg-red-50 text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400"}},defaultVariants:{priority:"low"}});function Me({card:t,onEdit:u,onDelete:i}){let{attributes:g,listeners:C,setNodeRef:d,transform:p,transition:y,isDragging:l}=useSortable({id:t.id}),c={transform:CSS.Transform.toString(p),transition:y};return jsx("div",{ref:d,style:c,...g,...C,className:cn("cursor-grab active:cursor-grabbing",l&&"opacity-50"),children:jsx(P,{card:t,onEdit:u,onDelete:i})})}a(Me,"SortableCard");function P({card:t,onEdit:u,onDelete:i}){return jsx(Card,{className:"mb-3 group hover:shadow-md transition-shadow",children:jsx(CardHeader,{className:"pb-3",children:jsx("div",{className:"flex items-start justify-between",children:jsxs("div",{className:"flex-1 min-w-0",children:[jsx("h4",{className:"font-medium text-sm leading-tight mb-2 break-words",children:t.title}),t.description&&jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:t.description}),t.labels&&t.labels.length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:t.labels.map(g=>jsx(Badge,{variant:"outline",className:"text-xs h-5",style:{backgroundColor:`${g.color}20`,borderColor:g.color,color:g.color},children:g.name},g.id))}),jsxs("div",{className:"flex items-center justify-between text-xs",children:[jsxs("div",{className:"flex items-center gap-2",children:[t.priority&&jsx("span",{className:cn(Be({priority:t.priority})),children:t.priority}),t.assignee&&jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[jsx(User,{className:"h-3 w-3"}),jsx("span",{children:t.assignee})]})]}),jsxs("div",{className:"flex items-center gap-1",children:[t.dueDate&&jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[jsx(Calendar,{className:"h-3 w-3"}),jsx("span",{children:new Date(t.dueDate).toLocaleDateString()})]}),jsxs(DropdownMenu,{children:[jsx(DropdownMenuTrigger,{asChild:true,children:jsx(Button,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",children:jsx(MoreHorizontal,{className:"h-3 w-3"})})}),jsxs(DropdownMenuContent,{align:"end",children:[jsxs(DropdownMenuItem,{onClick:()=>u(t),children:[jsx(Edit3,{className:"h-4 w-4 mr-2"}),"Edit"]}),jsxs(DropdownMenuItem,{onClick:()=>i(t.id),className:"text-destructive",children:[jsx(X,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})]})]})})})})}a(P,"KanbanCardComponent");function Ae({column:t,onAddCard:u,onEditCard:i,onDeleteCard:g}){let{setNodeRef:C}=useSortable({id:t.id});return jsxs("div",{ref:C,className:"bg-muted/50 rounded-lg p-4 min-w-[280px] max-w-[280px] flex flex-col",children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxs("div",{className:"flex items-center gap-2",children:[jsx("h3",{className:"font-semibold text-sm",children:t.title}),jsxs(Badge,{variant:"secondary",className:"text-xs",children:[t.cards.length,t.limit&&`/${t.limit}`]})]}),jsx(Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>u(t.id),children:jsx(Plus,{className:"h-4 w-4"})})]}),jsx(SortableContext,{items:t.cards.map(d=>d.id),strategy:verticalListSortingStrategy,children:jsx("div",{className:"flex-1 min-h-[200px]",children:t.cards.map(d=>jsx(Me,{card:d,onEdit:i,onDelete:g},d.id))})})]})}a(Ae,"KanbanColumnComponent");function Fe({open:t,onOpenChange:u,card:i,onSave:g,labels:C}){let[d,p]=f.useState({title:i?.title||"",description:i?.description||"",priority:i?.priority||"low",assignee:i?.assignee||"",dueDate:i?.dueDate||"",labels:i?.labels?.map(l=>l.id)||[]}),y=a(l=>{l.preventDefault(),d.title.trim()&&(g({...i,...d,labels:C.filter(c=>d.labels.includes(c.id)),updatedAt:new Date().toISOString()}),u(false));},"handleSubmit");return f.useEffect(()=>{p(i?{title:i.title,description:i.description||"",priority:i.priority||"low",assignee:i.assignee||"",dueDate:i.dueDate||"",labels:i.labels?.map(l=>l.id)||[]}:{title:"",description:"",priority:"low",assignee:"",dueDate:"",labels:[]});},[i]),jsx(Dialog,{open:t,onOpenChange:u,children:jsxs(DialogContent,{className:"max-w-md",children:[jsxs(DialogHeader,{children:[jsx(DialogTitle,{children:i?"Edit Card":"Create Card"}),jsx(DialogDescription,{children:i?"Update the card details below.":"Create a new card for your kanban board."})]}),jsxs("form",{onSubmit:y,className:"space-y-4",children:[jsxs("div",{children:[jsx(Label,{htmlFor:"title",children:"Title *"}),jsx(Input,{id:"title",value:d.title,onChange:l=>p(c=>({...c,title:l.target.value})),placeholder:"Enter card title...",required:true})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"description",children:"Description"}),jsx(Textarea,{id:"description",value:d.description,onChange:l=>p(c=>({...c,description:l.target.value})),placeholder:"Enter card description...",rows:3})]}),jsxs("div",{className:"grid grid-cols-2 gap-4",children:[jsxs("div",{children:[jsx(Label,{htmlFor:"priority",children:"Priority"}),jsxs(Select,{value:d.priority,onValueChange:l=>p(c=>({...c,priority:l})),children:[jsx(SelectTrigger,{children:jsx(SelectValue,{})}),jsxs(SelectContent,{children:[jsx(SelectItem,{value:"low",children:"Low"}),jsx(SelectItem,{value:"medium",children:"Medium"}),jsx(SelectItem,{value:"high",children:"High"}),jsx(SelectItem,{value:"urgent",children:"Urgent"})]})]})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"assignee",children:"Assignee"}),jsx(Input,{id:"assignee",value:d.assignee,onChange:l=>p(c=>({...c,assignee:l.target.value})),placeholder:"Assign to..."})]})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"dueDate",children:"Due Date"}),jsx(Input,{id:"dueDate",type:"date",value:d.dueDate,onChange:l=>p(c=>({...c,dueDate:l.target.value}))})]}),jsxs(DialogFooter,{children:[jsx(Button,{type:"button",variant:"outline",onClick:()=>u(false),children:"Cancel"}),jsxs(Button,{type:"submit",children:[i?"Update":"Create"," Card"]})]})]})]})})}a(Fe,"CardFormDialog");function Oe({board:t,onUpdateBoard:u,className:i}){let[g,C]=f.useState(null),[d,p]=f.useState(""),[y,l]=f.useState(false),[c,A]=f.useState(void 0),[H,F]=f.useState(""),V=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}})),U=f.useMemo(()=>d.trim()?{...t,columns:t.columns.map(r=>({...r,cards:r.cards.filter(o=>o.title.toLowerCase().includes(d.toLowerCase())||o.description?.toLowerCase().includes(d.toLowerCase())||o.labels?.some(s=>s.name.toLowerCase().includes(d.toLowerCase())))}))}:t,[t,d]),j=a(a=>{let{active:r}=a,o=t.columns.flatMap(s=>s.cards).find(s=>s.id===r.id);C(o||null);},"handleDragStart"),q=a(a=>{let{active:r,over:o}=a;if(!o)return;let s=r.id,b=o.id,D=E(s),h=E(b);if(!D||!h||D===h)return;let x={...t},S=x.columns.findIndex(I=>I.id===D),w=x.columns.findIndex(I=>I.id===h),N=x.columns[S],v=x.columns[w],J=N.cards.findIndex(I=>I.id===s),[W]=N.cards.splice(J,1);v.limit&&v.cards.length>=v.limit||(v.cards.push(W),u(x));},"handleDragOver"),z=a(a=>{let{active:r,over:o}=a;if(C(null),!o)return;let s=r.id,b=o.id,D=E(s),h=E(b);if(!D||!h)return;let x=t.columns.findIndex(w=>w.id===D),S=t.columns[x];if(D===h){let w=S.cards.findIndex(v=>v.id===s),N=S.cards.findIndex(v=>v.id===b);if(w!==N){let v={...t};v.columns[x].cards=arrayMove(S.cards,w,N),u(v);}}},"handleDragEnd"),E=a(a=>t.columns.some(r=>r.id===a)?a:t.columns.find(r=>r.cards.some(o=>o.id===a))?.id,"findContainer"),$=a(a=>{F(a),A(void 0),l(true);},"handleAddCard"),Q=a(a=>{A(a),F(""),l(true);},"handleEditCard"),X=a(a=>{let r={...t};if(c){let o=r.columns.findIndex(s=>s.cards.some(b=>b.id===c.id));if(o!==-1){let s=r.columns[o].cards.findIndex(b=>b.id===c.id);s!==-1&&(r.columns[o].cards[s]={...c,...a});}}else {let o=r.columns.findIndex(s=>s.id===H);if(o!==-1){let s={id:`card-${Date.now()}`,title:a.title,description:a.description,labels:a.labels,priority:a.priority,assignee:a.assignee,dueDate:a.dueDate,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};r.columns[o].cards.push(s);}}u(r);},"handleSaveCard"),G=a(a=>{let r={...t},o=r.columns.findIndex(s=>s.cards.some(b=>b.id===a));o!==-1&&(r.columns[o].cards=r.columns[o].cards.filter(s=>s.id!==a),u(r));},"handleDeleteCard");return jsxs("div",{className:cn("flex flex-col h-full",i),children:[jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsx("h1",{className:"text-2xl font-bold",children:t.title}),jsx("div",{className:"flex items-center gap-3",children:jsxs("div",{className:"relative",children:[jsx(Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsx(Input,{placeholder:"Search cards...",value:d,onChange:a=>p(a.target.value),className:"pl-9 w-64"})]})})]}),jsx("div",{className:"flex-1 overflow-x-auto",children:jsx("div",{className:"h-full p-4",children:jsxs(DndContext,{sensors:V,collisionDetection:closestCorners,onDragStart:j,onDragOver:q,onDragEnd:z,children:[jsx("div",{className:"flex gap-6 h-full pb-4",children:U.columns.map(a=>jsx(Ae,{column:a,onAddCard:$,onEditCard:Q,onDeleteCard:G},a.id))}),jsx(DragOverlay,{children:g?jsx(P,{card:g,onEdit:()=>{},onDelete:()=>{}}):null})]})})}),jsx(Fe,{open:y,onOpenChange:l,card:c,onSave:X,labels:t.labels})]})}a(Oe,"KanbanBoard");var at=Oe;export{Oe as a,at as b};
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import*as f from'react';import {useSensors,useSensor,PointerSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {useSortable,SortableContext,verticalListSortingStrategy,arrayMove}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import {cva}from'class-variance-authority';import {User,Calendar,MoreHorizontal,Edit3,X,Plus,Search}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/primitives/badge';import {Button}from'@hanzo/ui/primitives/button';import {Card,CardHeader}from'@hanzo/ui/primitives/card';import {Dialog,DialogContent,DialogHeader,DialogTitle,DialogDescription,DialogFooter}from'@hanzo/ui/primitives/dialog';import {DropdownMenu,DropdownMenuTrigger,DropdownMenuContent,DropdownMenuItem}from'@hanzo/ui/primitives/dropdown-menu';import {Input}from'@hanzo/ui/primitives/input';import {Label}from'@hanzo/ui/primitives/label';import {Select,SelectTrigger,SelectValue,SelectContent,SelectItem}from'@hanzo/ui/primitives/select';import {Textarea}from'@hanzo/ui/primitives/textarea';import {jsx,jsxs}from'react/jsx-runtime';var Be=cva("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-semibold",{variants:{priority:{low:"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-800 dark:bg-blue-900/20 dark:text-blue-400",medium:"border-yellow-200 bg-yellow-50 text-yellow-700 dark:border-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-400",high:"border-orange-200 bg-orange-50 text-orange-700 dark:border-orange-800 dark:bg-orange-900/20 dark:text-orange-400",urgent:"border-red-200 bg-red-50 text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400"}},defaultVariants:{priority:"low"}});function Me({card:t,onEdit:u,onDelete:i}){let{attributes:g,listeners:C,setNodeRef:d,transform:p,transition:y,isDragging:l}=useSortable({id:t.id}),c={transform:CSS.Transform.toString(p),transition:y};return jsx("div",{ref:d,style:c,...g,...C,className:cn("cursor-grab active:cursor-grabbing",l&&"opacity-50"),children:jsx(P,{card:t,onEdit:u,onDelete:i})})}a(Me,"SortableCard");function P({card:t,onEdit:u,onDelete:i}){return jsx(Card,{className:"mb-3 group hover:shadow-md transition-shadow",children:jsx(CardHeader,{className:"pb-3",children:jsx("div",{className:"flex items-start justify-between",children:jsxs("div",{className:"flex-1 min-w-0",children:[jsx("h4",{className:"font-medium text-sm leading-tight mb-2 break-words",children:t.title}),t.description&&jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:t.description}),t.labels&&t.labels.length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:t.labels.map(g=>jsx(Badge,{variant:"outline",className:"text-xs h-5",style:{backgroundColor:`${g.color}20`,borderColor:g.color,color:g.color},children:g.name},g.id))}),jsxs("div",{className:"flex items-center justify-between text-xs",children:[jsxs("div",{className:"flex items-center gap-2",children:[t.priority&&jsx("span",{className:cn(Be({priority:t.priority})),children:t.priority}),t.assignee&&jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[jsx(User,{className:"h-3 w-3"}),jsx("span",{children:t.assignee})]})]}),jsxs("div",{className:"flex items-center gap-1",children:[t.dueDate&&jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[jsx(Calendar,{className:"h-3 w-3"}),jsx("span",{children:new Date(t.dueDate).toLocaleDateString()})]}),jsxs(DropdownMenu,{children:[jsx(DropdownMenuTrigger,{asChild:true,children:jsx(Button,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",children:jsx(MoreHorizontal,{className:"h-3 w-3"})})}),jsxs(DropdownMenuContent,{align:"end",children:[jsxs(DropdownMenuItem,{onClick:()=>u(t),children:[jsx(Edit3,{className:"h-4 w-4 mr-2"}),"Edit"]}),jsxs(DropdownMenuItem,{onClick:()=>i(t.id),className:"text-destructive",children:[jsx(X,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})]})]})})})})}a(P,"KanbanCardComponent");function Ae({column:t,onAddCard:u,onEditCard:i,onDeleteCard:g}){let{setNodeRef:C}=useSortable({id:t.id});return jsxs("div",{ref:C,className:"bg-muted/50 rounded-lg p-4 min-w-[280px] max-w-[280px] flex flex-col",children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxs("div",{className:"flex items-center gap-2",children:[jsx("h3",{className:"font-semibold text-sm",children:t.title}),jsxs(Badge,{variant:"secondary",className:"text-xs",children:[t.cards.length,t.limit&&`/${t.limit}`]})]}),jsx(Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>u(t.id),children:jsx(Plus,{className:"h-4 w-4"})})]}),jsx(SortableContext,{items:t.cards.map(d=>d.id),strategy:verticalListSortingStrategy,children:jsx("div",{className:"flex-1 min-h-[200px]",children:t.cards.map(d=>jsx(Me,{card:d,onEdit:i,onDelete:g},d.id))})})]})}a(Ae,"KanbanColumnComponent");function Fe({open:t,onOpenChange:u,card:i,onSave:g,labels:C}){let[d,p]=f.useState({title:i?.title||"",description:i?.description||"",priority:i?.priority||"low",assignee:i?.assignee||"",dueDate:i?.dueDate||"",labels:i?.labels?.map(l=>l.id)||[]}),y=a(l=>{l.preventDefault(),d.title.trim()&&(g({...i,...d,labels:C.filter(c=>d.labels.includes(c.id)),updatedAt:new Date().toISOString()}),u(false));},"handleSubmit");return f.useEffect(()=>{p(i?{title:i.title,description:i.description||"",priority:i.priority||"low",assignee:i.assignee||"",dueDate:i.dueDate||"",labels:i.labels?.map(l=>l.id)||[]}:{title:"",description:"",priority:"low",assignee:"",dueDate:"",labels:[]});},[i]),jsx(Dialog,{open:t,onOpenChange:u,children:jsxs(DialogContent,{className:"max-w-md",children:[jsxs(DialogHeader,{children:[jsx(DialogTitle,{children:i?"Edit Card":"Create Card"}),jsx(DialogDescription,{children:i?"Update the card details below.":"Create a new card for your kanban board."})]}),jsxs("form",{onSubmit:y,className:"space-y-4",children:[jsxs("div",{children:[jsx(Label,{htmlFor:"title",children:"Title *"}),jsx(Input,{id:"title",value:d.title,onChange:l=>p(c=>({...c,title:l.target.value})),placeholder:"Enter card title...",required:true})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"description",children:"Description"}),jsx(Textarea,{id:"description",value:d.description,onChange:l=>p(c=>({...c,description:l.target.value})),placeholder:"Enter card description...",rows:3})]}),jsxs("div",{className:"grid grid-cols-2 gap-4",children:[jsxs("div",{children:[jsx(Label,{htmlFor:"priority",children:"Priority"}),jsxs(Select,{value:d.priority,onValueChange:l=>p(c=>({...c,priority:l})),children:[jsx(SelectTrigger,{children:jsx(SelectValue,{})}),jsxs(SelectContent,{children:[jsx(SelectItem,{value:"low",children:"Low"}),jsx(SelectItem,{value:"medium",children:"Medium"}),jsx(SelectItem,{value:"high",children:"High"}),jsx(SelectItem,{value:"urgent",children:"Urgent"})]})]})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"assignee",children:"Assignee"}),jsx(Input,{id:"assignee",value:d.assignee,onChange:l=>p(c=>({...c,assignee:l.target.value})),placeholder:"Assign to..."})]})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"dueDate",children:"Due Date"}),jsx(Input,{id:"dueDate",type:"date",value:d.dueDate,onChange:l=>p(c=>({...c,dueDate:l.target.value}))})]}),jsxs(DialogFooter,{children:[jsx(Button,{type:"button",variant:"outline",onClick:()=>u(false),children:"Cancel"}),jsxs(Button,{type:"submit",children:[i?"Update":"Create"," Card"]})]})]})]})})}a(Fe,"CardFormDialog");function Oe({board:t,onUpdateBoard:u,className:i}){let[g,C]=f.useState(null),[d,p]=f.useState(""),[y,l]=f.useState(false),[c,A]=f.useState(void 0),[H,F]=f.useState(""),V=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}})),U=f.useMemo(()=>d.trim()?{...t,columns:t.columns.map(r=>({...r,cards:r.cards.filter(o=>o.title.toLowerCase().includes(d.toLowerCase())||o.description?.toLowerCase().includes(d.toLowerCase())||o.labels?.some(s=>s.name.toLowerCase().includes(d.toLowerCase())))}))}:t,[t,d]),j=a(a=>{let{active:r}=a,o=t.columns.flatMap(s=>s.cards).find(s=>s.id===r.id);C(o||null);},"handleDragStart"),q=a(a=>{let{active:r,over:o}=a;if(!o)return;let s=r.id,b=o.id,D=E(s),h=E(b);if(!D||!h||D===h)return;let x={...t},S=x.columns.findIndex(I=>I.id===D),w=x.columns.findIndex(I=>I.id===h),N=x.columns[S],v=x.columns[w],J=N.cards.findIndex(I=>I.id===s),[W]=N.cards.splice(J,1);v.limit&&v.cards.length>=v.limit||(v.cards.push(W),u(x));},"handleDragOver"),z=a(a=>{let{active:r,over:o}=a;if(C(null),!o)return;let s=r.id,b=o.id,D=E(s),h=E(b);if(!D||!h)return;let x=t.columns.findIndex(w=>w.id===D),S=t.columns[x];if(D===h){let w=S.cards.findIndex(v=>v.id===s),N=S.cards.findIndex(v=>v.id===b);if(w!==N){let v={...t};v.columns[x].cards=arrayMove(S.cards,w,N),u(v);}}},"handleDragEnd"),E=a(a=>t.columns.some(r=>r.id===a)?a:t.columns.find(r=>r.cards.some(o=>o.id===a))?.id,"findContainer"),$=a(a=>{F(a),A(void 0),l(true);},"handleAddCard"),Q=a(a=>{A(a),F(""),l(true);},"handleEditCard"),X=a(a=>{let r={...t};if(c){let o=r.columns.findIndex(s=>s.cards.some(b=>b.id===c.id));if(o!==-1){let s=r.columns[o].cards.findIndex(b=>b.id===c.id);s!==-1&&(r.columns[o].cards[s]={...c,...a});}}else {let o=r.columns.findIndex(s=>s.id===H);if(o!==-1){let s={id:`card-${Date.now()}`,title:a.title,description:a.description,labels:a.labels,priority:a.priority,assignee:a.assignee,dueDate:a.dueDate,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};r.columns[o].cards.push(s);}}u(r);},"handleSaveCard"),G=a(a=>{let r={...t},o=r.columns.findIndex(s=>s.cards.some(b=>b.id===a));o!==-1&&(r.columns[o].cards=r.columns[o].cards.filter(s=>s.id!==a),u(r));},"handleDeleteCard");return jsxs("div",{className:cn("flex flex-col h-full",i),children:[jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsx("h1",{className:"text-2xl font-bold",children:t.title}),jsx("div",{className:"flex items-center gap-3",children:jsxs("div",{className:"relative",children:[jsx(Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsx(Input,{placeholder:"Search cards...",value:d,onChange:a=>p(a.target.value),className:"pl-9 w-64"})]})})]}),jsx("div",{className:"flex-1 overflow-x-auto",children:jsx("div",{className:"h-full p-4",children:jsxs(DndContext,{sensors:V,collisionDetection:closestCorners,onDragStart:j,onDragOver:q,onDragEnd:z,children:[jsx("div",{className:"flex gap-6 h-full pb-4",children:U.columns.map(a=>jsx(Ae,{column:a,onAddCard:$,onEditCard:Q,onDeleteCard:G},a.id))}),jsx(DragOverlay,{children:g?jsx(P,{card:g,onEdit:()=>{},onDelete:()=>{}}):null})]})})}),jsx(Fe,{open:y,onOpenChange:l,card:c,onSave:X,labels:t.labels})]})}a(Oe,"KanbanBoard");var at=Oe;export{Oe as a,at as b};
@@ -1 +1 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');function J(){let[e,d]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");d(a.matches);let r=chunkEI7MMDWY_js.a(c=>{d(c.matches);},"handleChange");return a.addEventListener("change",r),()=>a.removeEventListener("change",r)},[]),e}chunkEI7MMDWY_js.a(J,"usePrefersReducedMotion");var W={hidden:{opacity:0,x:-50},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},X={hidden:{opacity:0},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,transition:{duration:.3}}},Y={hidden:{opacity:0,scale:.8},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,scale:1,transition:{delay:e*.1,duration:.5,ease:"easeOut",type:"spring",stiffness:100}}),"visible"),exit:{opacity:0,scale:.8,transition:{duration:.3}}},Z={hidden:{opacity:0,y:50},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:-50,transition:{duration:.3}}},_={hidden:{opacity:0,y:-50},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:50,transition:{duration:.3}}},j={hidden:{opacity:0,x:50},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:-50,transition:{duration:.3}}},H={hidden:{opacity:0,x:-50},visible:chunkEI7MMDWY_js.a(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},ee={slide:W,fade:X,scale:Y,slideUp:Z,slideDown:_,slideLeft:j,slideRight:H};function te(e,d,a,r){let[c,x]=react.useState(0),b=react.useMemo(()=>{if(!r)return e;let s=Math.floor(c/a),p=Math.min(s+Math.ceil(d/a)+1,e.length);return e.slice(s,p).map((A,f)=>({...A,virtualIndex:s+f,style:{position:"absolute",top:(s+f)*a,height:a,width:"100%"}}))},[e,c,a,d,r]),g=e.length*a,m=react.useCallback(s=>{x(s.currentTarget.scrollTop);},[]);return {visibleItems:b,totalHeight:g,handleScroll:m}}chunkEI7MMDWY_js.a(te,"useVirtualizedList");function l({items:e,animation:d="slideUp",staggerDelay:a=100,duration:r=500,reorderable:c=false,enableAddRemove:x=true,layout:b="vertical",gridColumns:g=3,className:m,itemClassName:s,style:p,onReorder:A,onItemClick:f,showHoverEffects:R=true,customVariants:T,virtualized:I=false,itemHeight:E=60,containerHeight:P=400,autoStart:N=true,onAnimationComplete:z}){let[v,w]=react.useState(e),[D,ie]=react.useState(0),G=J(),u=T||ee[d],K=!G&&N,{visibleItems:Q,totalHeight:F,handleScroll:$}=te(e,P,E,I);react.useEffect(()=>{w(e);},[e]);let q=react.useMemo(()=>!u.visible||typeof u.visible!="function"?u:{...u,visible:chunkEI7MMDWY_js.a(i=>{let o=u.visible,h=o(i);return {...h,transition:{...h.transition,delay:i*(a/1e3),duration:r/1e3}}},"visible")},[u,a,r]),C=chunkEI7MMDWY_js.a(()=>{switch(b){case "horizontal":return "flex flex-row gap-4 overflow-x-auto";case "grid":return `grid gap-4 grid-cols-${g}`;default:return "flex flex-col gap-4"}},"getLayoutClassName"),S=chunkEI7MMDWY_js.a((i,o,h)=>jsxRuntime.jsx(react$1.motion.div,{custom:o,variants:q,initial:K?"hidden":"visible",animate:"visible",exit:"exit",layout:x,className:utils.cn("cursor-pointer select-none",R&&"hover:scale-105 transition-transform",s),style:h,onClick:()=>f?.(i,o),whileHover:R?{scale:1.02}:void 0,whileTap:R?{scale:.98}:void 0,onAnimationComplete:()=>{o===v.length-1&&z?.();},children:i.content},i.id),"renderListItem");return c&&!I?jsxRuntime.jsx(react$1.Reorder.Group,{axis:b==="horizontal"?"x":"y",values:v,onReorder:i=>{w(i),A?.(i);},className:utils.cn(C(),m),style:p,children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>jsxRuntime.jsx(react$1.Reorder.Item,{value:i,className:utils.cn("cursor-grab active:cursor-grabbing",s),whileDrag:{scale:1.05,zIndex:10},children:i.content},i.id))})}):I?jsxRuntime.jsx("div",{className:utils.cn("overflow-auto",m),style:{height:P,...p},onScroll:$,children:jsxRuntime.jsx("div",{style:{height:F,position:"relative"},children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:Q.map((i,o)=>S(i,i.virtualIndex||o,i.style))})})}):jsxRuntime.jsx(react$1.motion.div,{className:utils.cn(C(),m),style:p,initial:"hidden",animate:"visible",children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>S(i,o))})},D)}chunkEI7MMDWY_js.a(l,"AnimatedList");var le={FadeList:chunkEI7MMDWY_js.a(e=>jsxRuntime.jsx(l,{animation:"fade",...e}),"FadeList"),ScaleList:chunkEI7MMDWY_js.a(e=>jsxRuntime.jsx(l,{animation:"scale",...e}),"ScaleList"),SlideUpList:chunkEI7MMDWY_js.a(e=>jsxRuntime.jsx(l,{animation:"slideUp",...e}),"SlideUpList"),CarouselList:chunkEI7MMDWY_js.a(e=>jsxRuntime.jsx(l,{layout:"horizontal",animation:"slideLeft",...e}),"CarouselList"),GridList:chunkEI7MMDWY_js.a(e=>jsxRuntime.jsx(l,{layout:"grid",animation:"scale",...e}),"GridList"),TaskList:chunkEI7MMDWY_js.a(e=>jsxRuntime.jsx(l,{reorderable:true,animation:"slideUp",showHoverEffects:true,...e}),"TaskList")},ce=l;exports.a=l;exports.b=le;exports.c=ce;
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');function J(){let[e,d]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");d(a.matches);let r=chunkXUSV3KOD_js.a(c=>{d(c.matches);},"handleChange");return a.addEventListener("change",r),()=>a.removeEventListener("change",r)},[]),e}chunkXUSV3KOD_js.a(J,"usePrefersReducedMotion");var W={hidden:{opacity:0,x:-50},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},X={hidden:{opacity:0},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,transition:{duration:.3}}},Y={hidden:{opacity:0,scale:.8},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,scale:1,transition:{delay:e*.1,duration:.5,ease:"easeOut",type:"spring",stiffness:100}}),"visible"),exit:{opacity:0,scale:.8,transition:{duration:.3}}},Z={hidden:{opacity:0,y:50},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:-50,transition:{duration:.3}}},_={hidden:{opacity:0,y:-50},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:50,transition:{duration:.3}}},j={hidden:{opacity:0,x:50},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:-50,transition:{duration:.3}}},H={hidden:{opacity:0,x:-50},visible:chunkXUSV3KOD_js.a(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},ee={slide:W,fade:X,scale:Y,slideUp:Z,slideDown:_,slideLeft:j,slideRight:H};function te(e,d,a,r){let[c,x]=react.useState(0),b=react.useMemo(()=>{if(!r)return e;let s=Math.floor(c/a),p=Math.min(s+Math.ceil(d/a)+1,e.length);return e.slice(s,p).map((A,f)=>({...A,virtualIndex:s+f,style:{position:"absolute",top:(s+f)*a,height:a,width:"100%"}}))},[e,c,a,d,r]),g=e.length*a,m=react.useCallback(s=>{x(s.currentTarget.scrollTop);},[]);return {visibleItems:b,totalHeight:g,handleScroll:m}}chunkXUSV3KOD_js.a(te,"useVirtualizedList");function l({items:e,animation:d="slideUp",staggerDelay:a=100,duration:r=500,reorderable:c=false,enableAddRemove:x=true,layout:b="vertical",gridColumns:g=3,className:m,itemClassName:s,style:p,onReorder:A,onItemClick:f,showHoverEffects:R=true,customVariants:T,virtualized:I=false,itemHeight:E=60,containerHeight:P=400,autoStart:N=true,onAnimationComplete:z}){let[v,w]=react.useState(e),[D,ie]=react.useState(0),G=J(),u=T||ee[d],K=!G&&N,{visibleItems:Q,totalHeight:F,handleScroll:$}=te(e,P,E,I);react.useEffect(()=>{w(e);},[e]);let q=react.useMemo(()=>!u.visible||typeof u.visible!="function"?u:{...u,visible:chunkXUSV3KOD_js.a(i=>{let o=u.visible,h=o(i);return {...h,transition:{...h.transition,delay:i*(a/1e3),duration:r/1e3}}},"visible")},[u,a,r]),C=chunkXUSV3KOD_js.a(()=>{switch(b){case "horizontal":return "flex flex-row gap-4 overflow-x-auto";case "grid":return `grid gap-4 grid-cols-${g}`;default:return "flex flex-col gap-4"}},"getLayoutClassName"),S=chunkXUSV3KOD_js.a((i,o,h)=>jsxRuntime.jsx(react$1.motion.div,{custom:o,variants:q,initial:K?"hidden":"visible",animate:"visible",exit:"exit",layout:x,className:utils.cn("cursor-pointer select-none",R&&"hover:scale-105 transition-transform",s),style:h,onClick:()=>f?.(i,o),whileHover:R?{scale:1.02}:void 0,whileTap:R?{scale:.98}:void 0,onAnimationComplete:()=>{o===v.length-1&&z?.();},children:i.content},i.id),"renderListItem");return c&&!I?jsxRuntime.jsx(react$1.Reorder.Group,{axis:b==="horizontal"?"x":"y",values:v,onReorder:i=>{w(i),A?.(i);},className:utils.cn(C(),m),style:p,children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>jsxRuntime.jsx(react$1.Reorder.Item,{value:i,className:utils.cn("cursor-grab active:cursor-grabbing",s),whileDrag:{scale:1.05,zIndex:10},children:i.content},i.id))})}):I?jsxRuntime.jsx("div",{className:utils.cn("overflow-auto",m),style:{height:P,...p},onScroll:$,children:jsxRuntime.jsx("div",{style:{height:F,position:"relative"},children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:Q.map((i,o)=>S(i,i.virtualIndex||o,i.style))})})}):jsxRuntime.jsx(react$1.motion.div,{className:utils.cn(C(),m),style:p,initial:"hidden",animate:"visible",children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>S(i,o))})},D)}chunkXUSV3KOD_js.a(l,"AnimatedList");var le={FadeList:chunkXUSV3KOD_js.a(e=>jsxRuntime.jsx(l,{animation:"fade",...e}),"FadeList"),ScaleList:chunkXUSV3KOD_js.a(e=>jsxRuntime.jsx(l,{animation:"scale",...e}),"ScaleList"),SlideUpList:chunkXUSV3KOD_js.a(e=>jsxRuntime.jsx(l,{animation:"slideUp",...e}),"SlideUpList"),CarouselList:chunkXUSV3KOD_js.a(e=>jsxRuntime.jsx(l,{layout:"horizontal",animation:"slideLeft",...e}),"CarouselList"),GridList:chunkXUSV3KOD_js.a(e=>jsxRuntime.jsx(l,{layout:"grid",animation:"scale",...e}),"GridList"),TaskList:chunkXUSV3KOD_js.a(e=>jsxRuntime.jsx(l,{reorderable:true,animation:"slideUp",showHoverEffects:true,...e}),"TaskList")},ce=l;exports.a=l;exports.b=le;exports.c=ce;
@@ -0,0 +1 @@
1
+ 'use strict';var l=require('@radix-ui/react-collapsible');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var l__namespace=/*#__PURE__*/_interopNamespace(l);var i=l__namespace.Root,o=l__namespace.CollapsibleTrigger,e=l__namespace.CollapsibleContent;exports.a=i;exports.b=o;exports.c=e;
@@ -1 +1 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';function v({symbol:b,accountBalance:g,onPlaceOrder:w,disabled:i=false}){let[l,c]=useState("market"),[r,u]=useState("buy"),[o,m]=useState(""),[a$1,h]=useState(""),p=a(s=>s.split(":")[1]||s,"getTickerFromSymbol"),y=a(()=>{!o||l==="limit"&&!a$1||(w({symbol:b,side:r,orderType:l,shares:parseInt(o),limitPrice:l==="limit"?parseFloat(a$1):void 0}),m(""),h(""));},"handlePlaceOrder");return jsxs("div",{className:"p-4 space-y-4",children:[jsxs("div",{className:"bg-white/5 rounded-lg p-3",children:[jsx("div",{className:"text-xs text-white/60 mb-1",children:"Buying Power"}),jsxs("div",{className:"text-lg font-semibold text-white",children:["$",g.toLocaleString()]})]}),jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsx("button",{onClick:()=>u("buy"),disabled:i,className:`py-2.5 rounded-lg font-semibold transition-all ${r==="buy"?"bg-success text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Buy"}),jsx("button",{onClick:()=>u("sell"),disabled:i,className:`py-2.5 rounded-lg font-semibold transition-all ${r==="sell"?"bg-danger text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Sell"})]}),jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Order Type"}),jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsx("button",{onClick:()=>c("market"),disabled:i,className:`py-2 rounded-lg text-sm font-medium transition-all ${l==="market"?"bg-white/10 text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Market"}),jsx("button",{onClick:()=>c("limit"),disabled:i,className:`py-2 rounded-lg text-sm font-medium transition-all ${l==="limit"?"bg-white/10 text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Limit"})]})]}),jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Shares"}),jsx("input",{type:"number",value:o,onChange:s=>m(s.target.value),disabled:i,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2.5 text-white focus:outline-none focus:border-success disabled:opacity-50 disabled:cursor-not-allowed",placeholder:"0"})]}),l==="limit"&&jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Limit Price"}),jsx("input",{type:"number",value:a$1,onChange:s=>h(s.target.value),disabled:i,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2.5 text-white focus:outline-none focus:border-success disabled:opacity-50 disabled:cursor-not-allowed",placeholder:"0.00",step:"0.01"})]}),jsxs("button",{onClick:y,disabled:i||!o||l==="limit"&&!a$1,className:`w-full py-3 rounded-lg font-semibold transition-all ${r==="buy"?"bg-success hover:bg-success/90 text-white":"bg-danger hover:bg-danger/90 text-white"} disabled:opacity-50 disabled:cursor-not-allowed`,children:[r==="buy"?"Buy":"Sell"," ",p(b)]})]})}a(v,"OrderEntry");export{v as a};
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';function v({symbol:b,accountBalance:g,onPlaceOrder:w,disabled:i=false}){let[l,c]=useState("market"),[r,u]=useState("buy"),[o,m]=useState(""),[a$1,h]=useState(""),p=a(s=>s.split(":")[1]||s,"getTickerFromSymbol"),y=a(()=>{!o||l==="limit"&&!a$1||(w({symbol:b,side:r,orderType:l,shares:parseInt(o),limitPrice:l==="limit"?parseFloat(a$1):void 0}),m(""),h(""));},"handlePlaceOrder");return jsxs("div",{className:"p-4 space-y-4",children:[jsxs("div",{className:"bg-white/5 rounded-lg p-3",children:[jsx("div",{className:"text-xs text-white/60 mb-1",children:"Buying Power"}),jsxs("div",{className:"text-lg font-semibold text-white",children:["$",g.toLocaleString()]})]}),jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsx("button",{onClick:()=>u("buy"),disabled:i,className:`py-2.5 rounded-lg font-semibold transition-all ${r==="buy"?"bg-success text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Buy"}),jsx("button",{onClick:()=>u("sell"),disabled:i,className:`py-2.5 rounded-lg font-semibold transition-all ${r==="sell"?"bg-danger text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Sell"})]}),jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Order Type"}),jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsx("button",{onClick:()=>c("market"),disabled:i,className:`py-2 rounded-lg text-sm font-medium transition-all ${l==="market"?"bg-white/10 text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Market"}),jsx("button",{onClick:()=>c("limit"),disabled:i,className:`py-2 rounded-lg text-sm font-medium transition-all ${l==="limit"?"bg-white/10 text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Limit"})]})]}),jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Shares"}),jsx("input",{type:"number",value:o,onChange:s=>m(s.target.value),disabled:i,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2.5 text-white focus:outline-none focus:border-success disabled:opacity-50 disabled:cursor-not-allowed",placeholder:"0"})]}),l==="limit"&&jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Limit Price"}),jsx("input",{type:"number",value:a$1,onChange:s=>h(s.target.value),disabled:i,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2.5 text-white focus:outline-none focus:border-success disabled:opacity-50 disabled:cursor-not-allowed",placeholder:"0.00",step:"0.01"})]}),jsxs("button",{onClick:y,disabled:i||!o||l==="limit"&&!a$1,className:`w-full py-3 rounded-lg font-semibold transition-all ${r==="buy"?"bg-success hover:bg-success/90 text-white":"bg-danger hover:bg-danger/90 text-white"} disabled:opacity-50 disabled:cursor-not-allowed`,children:[r==="buy"?"Buy":"Sell"," ",p(b)]})]})}a(v,"OrderEntry");export{v as a};
@@ -1 +1 @@
1
- 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),r=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var r__namespace=/*#__PURE__*/_interopNamespace(r);var s=r__namespace.forwardRef(({className:a,items:n,orientation:l="horizontal",...c},i)=>jsxRuntime.jsx("div",{ref:i,className:chunkDKPVJSBC_js.a("flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",l==="vertical"?"flex-col":"flex-row",a),...c,children:n.map((e,p)=>jsxRuntime.jsxs("button",{onClick:e.onClick,className:chunkDKPVJSBC_js.a("group relative flex items-center justify-center rounded-full p-3 transition-colors hover:bg-accent",e.active&&"bg-primary text-primary-foreground hover:bg-primary/90"),title:e.label,children:[e.icon,jsxRuntime.jsx("span",{className:"sr-only",children:e.label}),jsxRuntime.jsx("span",{className:"absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground opacity-0 transition-opacity group-hover:opacity-100",children:e.label})]},p))}));s.displayName="MenuDock";exports.a=s;
1
+ 'use strict';var chunkYZFRWYNS_js=require('./chunk-YZFRWYNS.js'),r=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var r__namespace=/*#__PURE__*/_interopNamespace(r);var s=r__namespace.forwardRef(({className:a,items:n,orientation:l="horizontal",...c},i)=>jsxRuntime.jsx("div",{ref:i,className:chunkYZFRWYNS_js.a("flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",l==="vertical"?"flex-col":"flex-row",a),...c,children:n.map((e,p)=>jsxRuntime.jsxs("button",{onClick:e.onClick,className:chunkYZFRWYNS_js.a("group relative flex items-center justify-center rounded-full p-3 transition-colors hover:bg-accent",e.active&&"bg-primary text-primary-foreground hover:bg-primary/90"),title:e.label,children:[e.icon,jsxRuntime.jsx("span",{className:"sr-only",children:e.label}),jsxRuntime.jsx("span",{className:"absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground opacity-0 transition-opacity group-hover:opacity-100",children:e.label})]},p))}));s.displayName="MenuDock";exports.a=s;
@@ -1 +1 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),a=require('react'),classVarianceAuthority=require('class-variance-authority'),framerMotion=require('framer-motion'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var Y=classVarianceAuthority.cva(["relative overflow-hidden whitespace-nowrap","transform-gpu will-change-transform","[perspective:1000px]"],{variants:{variant:{default:["bg-background text-foreground","[&_.marquee-content]:text-current"],neon:["bg-black text-cyan-400","[&_.marquee-content]:text-cyan-400","[&_.marquee-content]:drop-shadow-[0_0_10px_currentColor]","[&_.marquee-content]:animate-pulse"],rainbow:["bg-black","[&_.marquee-content]:bg-gradient-to-r [&_.marquee-content]:from-red-500 [&_.marquee-content]:via-yellow-500 [&_.marquee-content]:via-green-500 [&_.marquee-content]:via-blue-500 [&_.marquee-content]:to-purple-500","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"],metallic:["bg-slate-900","[&_.marquee-content]:bg-gradient-to-b [&_.marquee-content]:from-gray-200 [&_.marquee-content]:via-gray-400 [&_.marquee-content]:to-gray-600","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"],fire:["bg-black","[&_.marquee-content]:bg-gradient-to-t [&_.marquee-content]:from-red-600 [&_.marquee-content]:via-orange-500 [&_.marquee-content]:to-yellow-400","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent","[&_.marquee-content]:drop-shadow-[0_0_20px_#ff6600]"],glass:["bg-white/10 backdrop-blur-sm","[&_.marquee-content]:text-white/90","[&_.marquee-content]:drop-shadow-[0_0_10px_rgba(255,255,255,0.3)]"]},size:{sm:"h-8 text-sm [&_.marquee-content]:py-1",default:"h-12 text-base [&_.marquee-content]:py-2",lg:"h-16 text-lg [&_.marquee-content]:py-3",xl:"h-20 text-xl [&_.marquee-content]:py-4","2xl":"h-24 text-2xl [&_.marquee-content]:py-5","3xl":"h-32 text-3xl [&_.marquee-content]:py-6"},direction:{left:"",right:"",up:"flex-col",down:"flex-col"},perspective:{none:"[perspective:none]",sm:"[perspective:500px]",default:"[perspective:1000px]",lg:"[perspective:1500px]",xl:"[perspective:2000px]"}},defaultVariants:{variant:"default",size:"default",direction:"left",perspective:"default"}}),l=a__namespace.forwardRef(({className:r,variant:n,size:v,direction:e="left",perspective:b,children:c,speed:u=50,pauseOnHover:d=false,reverse:g=false,repeat:D=5,gap:m=0,rotateX:h=0,rotateY:P=0,rotateZ:H=0,autoFill:$=false,gradient:L=false,gradientColor:x="#ffffff",gradientWidth:q=200,style:T,...O},G)=>{let[_,N]=a__namespace.useState(0),[i,k]=a__namespace.useState(0),y=a__namespace.useRef(null),M=a__namespace.useRef(null);a__namespace.useEffect(()=>{let p=chunkEI7MMDWY_js.a(()=>{if(y.current&&M.current){let t=y.current.getBoundingClientRect(),s=M.current.getBoundingClientRect();e==="left"||e==="right"?(N(t.width),k(s.width)):(N(t.height),k(s.height));}},"measureDimensions");return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[e,c]);let F=a__namespace.useMemo(()=>i===0?20:i/u,[i,u]),z=a__namespace.useMemo(()=>$&&_>0&&i>0?Math.ceil(_/i)+2:D,[$,_,i,D]),C=chunkEI7MMDWY_js.a(()=>{let t=i+m,s={};return e==="left"?s={x:g?[t,-t]:[-t,t]}:e==="right"?s={x:g?[-t,t]:[t,-t]}:e==="up"?s={y:g?[t,-t]:[-t,t]}:e==="down"&&(s={y:g?[-t,t]:[t,-t]}),{animate:s,transition:{duration:F,ease:"linear",repeat:1/0}}},"getAnimationProps"),I=`perspective(1000px) rotateX(${h}deg) rotateY(${P}deg) rotateZ(${H}deg)`,V=L?{maskImage:`linear-gradient(to right, transparent, ${x} ${q}px, ${x} calc(100% - ${q}px), transparent)`,WebkitMaskImage:`linear-gradient(to right, transparent, ${x} ${q}px, ${x} calc(100% - ${q}px), transparent)`}:{};return jsxRuntime.jsx("div",{ref:y,className:utils.cn(Y({variant:n,size:v,direction:e,perspective:b}),"flex items-center",e==="up"||e==="down"?"flex-col":"flex-row",r),style:{...T,transform:I,...V},...O,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:M,className:utils.cn("marquee-content flex shrink-0 font-bold",e==="up"||e==="down"?"flex-col":"flex-row",d&&"hover:[animation-play-state:paused]"),style:{gap:`${m}px`},...C(),children:Array.from({length:z}).map((p,t)=>jsxRuntime.jsxs(a__namespace.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.cn("flex shrink-0 items-center justify-center",e==="up"||e==="down"?"flex-col":"flex-row"),style:{transform:`rotateX(${h}deg) rotateY(${P}deg) rotateZ(${H}deg)`,transformStyle:"preserve-3d"},children:c}),t<z-1&&m>0&&jsxRuntime.jsx("div",{style:{width:e==="up"||e==="down"?"100%":`${m}px`,height:e==="up"||e==="down"?`${m}px`:"100%"}})]},t))})})});l.displayName="Marquee3D";var f={Hero:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"rainbow",size:"3xl",speed:30,rotateX:-10,gradient:true,...r})),Neon:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"neon",size:"xl",speed:40,rotateY:5,pauseOnHover:true,...r})),Metallic:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"metallic",size:"lg",speed:35,rotateX:-5,rotateY:2,gradient:true,gradientColor:"#c4c4c4",...r})),Fire:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"fire",size:"2xl",speed:60,rotateZ:1,gradient:true,gradientColor:"#ff6600",...r})),Glass:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"glass",size:"lg",speed:25,rotateX:-8,pauseOnHover:true,gradient:true,gradientColor:"rgba(255,255,255,0.9)",...r}))};f.Hero.displayName="Marquee3DPreset.Hero";f.Neon.displayName="Marquee3DPreset.Neon";f.Metallic.displayName="Marquee3DPreset.Metallic";f.Fire.displayName="Marquee3DPreset.Fire";f.Glass.displayName="Marquee3DPreset.Glass";var A=a__namespace.forwardRef(({children:r,floatIntensity:n=10,floatSpeed:v=3,...e},b)=>{let c=typeof r=="string"?r:"";return jsxRuntime.jsx(l,{ref:b,...e,children:c?jsxRuntime.jsx("div",{className:"flex space-x-1",children:c.split("").map((u,d)=>jsxRuntime.jsx(framerMotion.motion.span,{className:"inline-block",animate:{y:[0,-n,0],rotateX:[0,5,0],rotateY:[0,2,0]},transition:{duration:v,ease:"easeInOut",repeat:1/0,delay:d*.1},children:u===" "?"\xA0":u},d))}):r})});A.displayName="Marquee3DFloating";exports.a=Y;exports.b=l;exports.c=f;exports.d=A;
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),a=require('react'),classVarianceAuthority=require('class-variance-authority'),framerMotion=require('framer-motion'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var Y=classVarianceAuthority.cva(["relative overflow-hidden whitespace-nowrap","transform-gpu will-change-transform","[perspective:1000px]"],{variants:{variant:{default:["bg-background text-foreground","[&_.marquee-content]:text-current"],neon:["bg-black text-cyan-400","[&_.marquee-content]:text-cyan-400","[&_.marquee-content]:drop-shadow-[0_0_10px_currentColor]","[&_.marquee-content]:animate-pulse"],rainbow:["bg-black","[&_.marquee-content]:bg-gradient-to-r [&_.marquee-content]:from-red-500 [&_.marquee-content]:via-yellow-500 [&_.marquee-content]:via-green-500 [&_.marquee-content]:via-blue-500 [&_.marquee-content]:to-purple-500","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"],metallic:["bg-slate-900","[&_.marquee-content]:bg-gradient-to-b [&_.marquee-content]:from-gray-200 [&_.marquee-content]:via-gray-400 [&_.marquee-content]:to-gray-600","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"],fire:["bg-black","[&_.marquee-content]:bg-gradient-to-t [&_.marquee-content]:from-red-600 [&_.marquee-content]:via-orange-500 [&_.marquee-content]:to-yellow-400","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent","[&_.marquee-content]:drop-shadow-[0_0_20px_#ff6600]"],glass:["bg-white/10 backdrop-blur-sm","[&_.marquee-content]:text-white/90","[&_.marquee-content]:drop-shadow-[0_0_10px_rgba(255,255,255,0.3)]"]},size:{sm:"h-8 text-sm [&_.marquee-content]:py-1",default:"h-12 text-base [&_.marquee-content]:py-2",lg:"h-16 text-lg [&_.marquee-content]:py-3",xl:"h-20 text-xl [&_.marquee-content]:py-4","2xl":"h-24 text-2xl [&_.marquee-content]:py-5","3xl":"h-32 text-3xl [&_.marquee-content]:py-6"},direction:{left:"",right:"",up:"flex-col",down:"flex-col"},perspective:{none:"[perspective:none]",sm:"[perspective:500px]",default:"[perspective:1000px]",lg:"[perspective:1500px]",xl:"[perspective:2000px]"}},defaultVariants:{variant:"default",size:"default",direction:"left",perspective:"default"}}),l=a__namespace.forwardRef(({className:r,variant:n,size:v,direction:e="left",perspective:b,children:c,speed:u=50,pauseOnHover:d=false,reverse:g=false,repeat:D=5,gap:m=0,rotateX:h=0,rotateY:P=0,rotateZ:H=0,autoFill:$=false,gradient:L=false,gradientColor:x="#ffffff",gradientWidth:q=200,style:T,...O},G)=>{let[_,N]=a__namespace.useState(0),[i,k]=a__namespace.useState(0),y=a__namespace.useRef(null),M=a__namespace.useRef(null);a__namespace.useEffect(()=>{let p=chunkXUSV3KOD_js.a(()=>{if(y.current&&M.current){let t=y.current.getBoundingClientRect(),s=M.current.getBoundingClientRect();e==="left"||e==="right"?(N(t.width),k(s.width)):(N(t.height),k(s.height));}},"measureDimensions");return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[e,c]);let F=a__namespace.useMemo(()=>i===0?20:i/u,[i,u]),z=a__namespace.useMemo(()=>$&&_>0&&i>0?Math.ceil(_/i)+2:D,[$,_,i,D]),C=chunkXUSV3KOD_js.a(()=>{let t=i+m,s={};return e==="left"?s={x:g?[t,-t]:[-t,t]}:e==="right"?s={x:g?[-t,t]:[t,-t]}:e==="up"?s={y:g?[t,-t]:[-t,t]}:e==="down"&&(s={y:g?[-t,t]:[t,-t]}),{animate:s,transition:{duration:F,ease:"linear",repeat:1/0}}},"getAnimationProps"),I=`perspective(1000px) rotateX(${h}deg) rotateY(${P}deg) rotateZ(${H}deg)`,V=L?{maskImage:`linear-gradient(to right, transparent, ${x} ${q}px, ${x} calc(100% - ${q}px), transparent)`,WebkitMaskImage:`linear-gradient(to right, transparent, ${x} ${q}px, ${x} calc(100% - ${q}px), transparent)`}:{};return jsxRuntime.jsx("div",{ref:y,className:utils.cn(Y({variant:n,size:v,direction:e,perspective:b}),"flex items-center",e==="up"||e==="down"?"flex-col":"flex-row",r),style:{...T,transform:I,...V},...O,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:M,className:utils.cn("marquee-content flex shrink-0 font-bold",e==="up"||e==="down"?"flex-col":"flex-row",d&&"hover:[animation-play-state:paused]"),style:{gap:`${m}px`},...C(),children:Array.from({length:z}).map((p,t)=>jsxRuntime.jsxs(a__namespace.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.cn("flex shrink-0 items-center justify-center",e==="up"||e==="down"?"flex-col":"flex-row"),style:{transform:`rotateX(${h}deg) rotateY(${P}deg) rotateZ(${H}deg)`,transformStyle:"preserve-3d"},children:c}),t<z-1&&m>0&&jsxRuntime.jsx("div",{style:{width:e==="up"||e==="down"?"100%":`${m}px`,height:e==="up"||e==="down"?`${m}px`:"100%"}})]},t))})})});l.displayName="Marquee3D";var f={Hero:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"rainbow",size:"3xl",speed:30,rotateX:-10,gradient:true,...r})),Neon:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"neon",size:"xl",speed:40,rotateY:5,pauseOnHover:true,...r})),Metallic:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"metallic",size:"lg",speed:35,rotateX:-5,rotateY:2,gradient:true,gradientColor:"#c4c4c4",...r})),Fire:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"fire",size:"2xl",speed:60,rotateZ:1,gradient:true,gradientColor:"#ff6600",...r})),Glass:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"glass",size:"lg",speed:25,rotateX:-8,pauseOnHover:true,gradient:true,gradientColor:"rgba(255,255,255,0.9)",...r}))};f.Hero.displayName="Marquee3DPreset.Hero";f.Neon.displayName="Marquee3DPreset.Neon";f.Metallic.displayName="Marquee3DPreset.Metallic";f.Fire.displayName="Marquee3DPreset.Fire";f.Glass.displayName="Marquee3DPreset.Glass";var A=a__namespace.forwardRef(({children:r,floatIntensity:n=10,floatSpeed:v=3,...e},b)=>{let c=typeof r=="string"?r:"";return jsxRuntime.jsx(l,{ref:b,...e,children:c?jsxRuntime.jsx("div",{className:"flex space-x-1",children:c.split("").map((u,d)=>jsxRuntime.jsx(framerMotion.motion.span,{className:"inline-block",animate:{y:[0,-n,0],rotateX:[0,5,0],rotateY:[0,2,0]},transition:{duration:v,ease:"easeInOut",repeat:1/0,delay:d*.1},children:u===" "?"\xA0":u},d))}):r})});A.displayName="Marquee3DFloating";exports.a=Y;exports.b=l;exports.c=f;exports.d=A;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkYZFRWYNS_js=require('./chunk-YZFRWYNS.js'),chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),o=require('@radix-ui/react-separator'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var i=chunkXUSV3KOD_js.a(({className:e,orientation:r="horizontal",decorative:p=true,...m})=>jsxRuntime.jsx(o__namespace.Root,{className:chunkYZFRWYNS_js.a("bg-divider shrink-0",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),decorative:p,orientation:r,...m}),"Separator");i.displayName=o__namespace.Root.displayName;var f=i;exports.a=i;exports.b=f;
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import*as t from'react';import {cva}from'class-variance-authority';import {FileText,Minimize2,Maximize2,Check,Copy}from'lucide-react';import {bundledLanguages,codeToHtml}from'shiki';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/badge';import {Button}from'@hanzo/ui/button';import {Skeleton}from'@hanzo/ui/skeleton';import {jsx,jsxs}from'react/jsx-runtime';var B=cva("relative group",{variants:{variant:{default:"rounded-lg border bg-muted/50",inline:"inline-block rounded-md bg-muted px-2 py-1",minimal:"bg-transparent"},theme:{dark:"bg-slate-950 border-slate-800",light:"bg-slate-50 border-slate-200",github:"bg-white border-slate-200","github-dark":"bg-slate-900 border-slate-700",terminal:"bg-black border-green-500/30 text-green-400",retro:"bg-amber-50 border-amber-200 text-amber-900"},size:{xs:"text-xs",sm:"text-sm",default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",theme:"dark",size:"default"}}),I=t.forwardRef(({className:g,variant:n,theme:l,size:p,code:o,language:c="text",filename:f,showLineNumbers:w=false,highlightLines:z=[],showCopyButton:v=true,showLanguageBadge:V=true,showHeader:_=true,maxHeight:P,expandable:h=false,collapsedHeight:A="200px",wrapLines:x=false,startLineNumber:D=1,...F},j)=>{let[k,C]=t.useState(""),[y,H]=t.useState(false),[q,L]=t.useState(true),[d,O]=t.useState(!h),G={dark:"github-dark",light:"github-light",github:"github-light","github-dark":"github-dark",terminal:"github-dark",retro:"github-light"};t.useEffect(()=>{a(async()=>{L(true);try{let a=Object.keys(bundledLanguages).includes(c),s=await codeToHtml(o,{lang:a?c:"text",theme:G[l||"dark"]}),u=document.createElement("div");u.innerHTML=s;let Q=u.querySelector("code");C(Q?.innerHTML||s);}catch(a){console.error("Failed to highlight code:",a);let s=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");C(s);}finally{L(false);}},"highlightCode")();},[o,c,l]);let T=t.useCallback(async()=>{try{await navigator.clipboard.writeText(o),H(!0),setTimeout(()=>H(!1),2e3);}catch(i){console.error("Failed to copy code:",i);}},[o]),M=k.split(`
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import*as t from'react';import {cva}from'class-variance-authority';import {FileText,Minimize2,Maximize2,Check,Copy}from'lucide-react';import {bundledLanguages,codeToHtml}from'shiki';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/badge';import {Button}from'@hanzo/ui/button';import {Skeleton}from'@hanzo/ui/skeleton';import {jsx,jsxs}from'react/jsx-runtime';var B=cva("relative group",{variants:{variant:{default:"rounded-lg border bg-muted/50",inline:"inline-block rounded-md bg-muted px-2 py-1",minimal:"bg-transparent"},theme:{dark:"bg-slate-950 border-slate-800",light:"bg-slate-50 border-slate-200",github:"bg-white border-slate-200","github-dark":"bg-slate-900 border-slate-700",terminal:"bg-black border-green-500/30 text-green-400",retro:"bg-amber-50 border-amber-200 text-amber-900"},size:{xs:"text-xs",sm:"text-sm",default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",theme:"dark",size:"default"}}),I=t.forwardRef(({className:g,variant:n,theme:l,size:p,code:o,language:c="text",filename:f,showLineNumbers:w=false,highlightLines:z=[],showCopyButton:v=true,showLanguageBadge:V=true,showHeader:_=true,maxHeight:P,expandable:h=false,collapsedHeight:A="200px",wrapLines:x=false,startLineNumber:D=1,...F},j)=>{let[k,C]=t.useState(""),[y,H]=t.useState(false),[q,L]=t.useState(true),[d,O]=t.useState(!h),G={dark:"github-dark",light:"github-light",github:"github-light","github-dark":"github-dark",terminal:"github-dark",retro:"github-light"};t.useEffect(()=>{a(async()=>{L(true);try{let a=Object.keys(bundledLanguages).includes(c),s=await codeToHtml(o,{lang:a?c:"text",theme:G[l||"dark"]}),u=document.createElement("div");u.innerHTML=s;let Q=u.querySelector("code");C(Q?.innerHTML||s);}catch(a){console.error("Failed to highlight code:",a);let s=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");C(s);}finally{L(false);}},"highlightCode")();},[o,c,l]);let T=t.useCallback(async()=>{try{await navigator.clipboard.writeText(o),H(!0),setTimeout(()=>H(!1),2e3);}catch(i){console.error("Failed to copy code:",i);}},[o]),M=k.split(`
2
2
  `).filter((i,a,s)=>i.trim()!==""||a<s.length-1),J=a(()=>jsx("code",{className:cn(B({variant:n,theme:l,size:p}),"font-mono",g),dangerouslySetInnerHTML:{__html:k}}),"renderInline"),K=a(()=>jsxs("div",{ref:j,className:cn(B({variant:n,theme:l,size:p}),"overflow-hidden",g),...F,children:[_&&(f||c||v||h)&&jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:[jsxs("div",{className:"flex items-center gap-2",children:[f&&jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(FileText,{className:"h-3.5 w-3.5 text-muted-foreground"}),jsx("span",{className:"text-sm font-medium",children:f})]}),V&&c&&jsx(Badge,{variant:"secondary",className:"text-xs",children:c})]}),jsxs("div",{className:"flex items-center gap-1",children:[h&&jsxs(Button,{variant:"ghost",size:"sm",onClick:()=>O(!d),className:"h-8 w-8 p-0",children:[d?jsx(Minimize2,{className:"h-3.5 w-3.5"}):jsx(Maximize2,{className:"h-3.5 w-3.5"}),jsx("span",{className:"sr-only",children:d?"Collapse":"Expand"})]}),v&&jsxs(Button,{variant:"ghost",size:"sm",onClick:T,className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:[y?jsx(Check,{className:"h-3.5 w-3.5 text-green-500"}):jsx(Copy,{className:"h-3.5 w-3.5"}),jsx("span",{className:"sr-only",children:y?"Copied":"Copy code"})]})]})]}),jsx("div",{className:cn("overflow-auto",!x&&"overflow-x-auto"),style:{maxHeight:d?P:A},children:q?jsx("div",{className:"p-4 space-y-2",children:Array.from({length:Math.min(M.length||5,10)}).map((i,a)=>jsxs("div",{className:"flex items-center gap-4",children:[w&&jsx(Skeleton,{className:"h-4 w-8"}),jsx(Skeleton,{className:"h-4 flex-1"})]},a))}):jsx("div",{className:"font-mono",children:M.map((i,a)=>{let s=a+D,u=z.includes(s);return jsxs("div",{className:cn("group relative flex min-h-[1.5rem] items-center px-4 py-0.5",u&&"bg-blue-500/10 border-l-2 border-l-blue-500",!x&&"whitespace-nowrap"),children:[w&&jsx("span",{className:"mr-4 inline-block w-8 select-none text-right text-xs text-muted-foreground",children:s}),jsx("div",{className:cn("flex-1",x?"whitespace-pre-wrap break-words":"overflow-x-auto"),dangerouslySetInnerHTML:{__html:i}})]},a)})})}),h&&!d&&jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-background to-transparent pointer-events-none"}),n==="minimal"&&v&&jsx(Button,{variant:"ghost",size:"sm",onClick:T,className:"absolute top-2 right-2 h-8 w-8 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:y?jsx(Check,{className:"h-3.5 w-3.5 text-green-500"}):jsx(Copy,{className:"h-3.5 w-3.5"})})]}),"renderBlock");return n==="inline"?J():K()});I.displayName="CodeSnippet";var te=t.forwardRef(({children:g,language:n,className:l,...p},o)=>jsx(I,{ref:o,code:g,language:n,variant:"inline",showCopyButton:false,showLanguageBadge:false,showHeader:false,className:l,...p}));te.displayName="InlineCode";export{B as a,I as b,te as c};
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-TU67EJEW.mjs';import {a}from'./chunk-YSXGDEY5.mjs';import*as e from'@radix-ui/react-label';import {cva}from'class-variance-authority';import {jsx}from'react/jsx-runtime';var l=cva("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),m=a(({className:t,...i})=>jsx(e.Root,{className:a$1(l(),t),...i}),"Label");m.displayName=e.Root.displayName;export{m as a};
1
+ import {a as a$1}from'./chunk-3RI2CAUD.mjs';import {a}from'./chunk-CWFGLK4T.mjs';import*as e from'@radix-ui/react-label';import {cva}from'class-variance-authority';import {jsx}from'react/jsx-runtime';var l=cva("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),m=a(({className:t,...i})=>jsx(e.Root,{className:a$1(l(),t),...i}),"Label");m.displayName=e.Root.displayName;export{m as a};
@@ -1,6 +1,6 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),o=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),badge=require('@hanzo/ui/badge'),button=require('@hanzo/ui/button'),diff=require('@hanzo/ui/code/diff'),snippet=require('@hanzo/ui/code/snippet'),dropdownMenu=require('@hanzo/ui/dropdown-menu'),scrollArea=require('@hanzo/ui/scroll-area'),tabs=require('@hanzo/ui/tabs'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var fe=classVarianceAuthority.cva("relative flex flex-col overflow-hidden rounded-lg border bg-background",{variants:{layout:{horizontal:"flex-col",vertical:"flex-row"},size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{layout:"horizontal",size:"default"}}),ge=o__namespace.forwardRef(({className:H,layout:z,size:V,files:i,defaultView:j="side-by-side",showLineNumbers:u=true,showCopyButton:E=true,allowMerge:A=false,conflictMarkers:I=[],onMergeConflict:w,onFileSelect:P,height:$="600px",syncScroll:y=true,...U},q)=>{let[c,G]=o__namespace.useState(j),[d,v]=o__namespace.useState(()=>i.length>=2?[i[0].id,i[1].id]:i.length>0?[i[0].id]:[]),[x,K]=o__namespace.useState({resolved:{},conflicts:I}),[O,S]=o__namespace.useState(false),g=o__namespace.useRef({}),b=o__namespace.useCallback((e,n)=>{y&&Object.entries(g.current).forEach(([a,s])=>{a!==e&&s&&(s.scrollTop=n);});},[y]),W=o__namespace.useCallback(async()=>{let e=d.map(n=>{let a=i.find(s=>s.id===n);return a?`=== ${a.filename} ===
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),o=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),badge=require('@hanzo/ui/badge'),button=require('@hanzo/ui/button'),diff=require('@hanzo/ui/code/diff'),snippet=require('@hanzo/ui/code/snippet'),dropdownMenu=require('@hanzo/ui/dropdown-menu'),scrollArea=require('@hanzo/ui/scroll-area'),tabs=require('@hanzo/ui/tabs'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var fe=classVarianceAuthority.cva("relative flex flex-col overflow-hidden rounded-lg border bg-background",{variants:{layout:{horizontal:"flex-col",vertical:"flex-row"},size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{layout:"horizontal",size:"default"}}),ge=o__namespace.forwardRef(({className:H,layout:z,size:V,files:i,defaultView:j="side-by-side",showLineNumbers:u=true,showCopyButton:E=true,allowMerge:A=false,conflictMarkers:I=[],onMergeConflict:w,onFileSelect:P,height:$="600px",syncScroll:y=true,...U},q)=>{let[c,G]=o__namespace.useState(j),[d,v]=o__namespace.useState(()=>i.length>=2?[i[0].id,i[1].id]:i.length>0?[i[0].id]:[]),[x,K]=o__namespace.useState({resolved:{},conflicts:I}),[O,S]=o__namespace.useState(false),g=o__namespace.useRef({}),b=o__namespace.useCallback((e,n)=>{y&&Object.entries(g.current).forEach(([a,s])=>{a!==e&&s&&(s.scrollTop=n);});},[y]),W=o__namespace.useCallback(async()=>{let e=d.map(n=>{let a=i.find(s=>s.id===n);return a?`=== ${a.filename} ===
2
2
  ${a.content}`:""}).join(`
3
3
 
4
4
  `);try{await navigator.clipboard.writeText(e),S(!0),setTimeout(()=>S(!1),2e3);}catch(n){console.error("Failed to copy comparison:",n);}},[i,d]),M=o__namespace.useCallback((e,n)=>{K(a=>({...a,resolved:{...a.resolved,[e]:n}})),w?.(n);},[w]),J=o__namespace.useCallback((e,n)=>{let a=e.content.split(`
5
5
  `),s=n.content.split(`
6
- `),l=0,T=0,B=0,ee=Math.max(a.length,s.length);for(let p=0;p<ee;p++){let k=a[p],R=s[p];k===void 0?l++:R===void 0?T++:k!==R&&B++;}return {added:l,removed:T,modified:B}},[]),Q=chunkEI7MMDWY_js.a(()=>jsxRuntime.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i.map((e,n)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs(button.Button,{variant:d.includes(e.id)?"default":"outline",size:"sm",onClick:()=>{v(c==="three-way"?a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<3?[...a,e.id]:[a[1],a[2],e.id]:a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<2?[...a,e.id]:[a[1],e.id]),P?.(e.id);},className:"gap-2",children:[e.label||e.filename,e.version&&jsxRuntime.jsx(badge.Badge,{variant:"secondary",className:"text-xs",children:e.version})]}),n<i.length-1&&c!=="three-way"&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:"vs"})]},e.id))}),"renderFileSelector"),X=chunkEI7MMDWY_js.a(()=>{let[e,n]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);if(!e||!n)return jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"});let a=J(e,n);return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Comparison"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[jsxRuntime.jsxs("span",{className:"text-green-600",children:["+",a.added]}),jsxRuntime.jsxs("span",{className:"text-red-600",children:["-",a.removed]}),jsxRuntime.jsxs("span",{className:"text-yellow-600",children:["~",a.modified]})]})]})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0",children:jsxRuntime.jsx(diff.CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,oldFilename:e.filename,newFilename:n.filename,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"split",className:"border-0 rounded-none h-full"})})]})},"renderSideBySide"),Y=chunkEI7MMDWY_js.a(()=>{let[e,n]=d.map(a=>i.find(s=>s.id===a)).filter(Boolean);return !e||!n?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"}):jsxRuntime.jsx(diff.CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,filename:`${e.filename} \u2192 ${n.filename}`,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"unified",className:"border-0 rounded-none"})},"renderUnified"),Z=chunkEI7MMDWY_js.a(()=>{let[e,n,a]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);return !e||!n||!a?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select three files for three-way merge (base, current, incoming)"}):jsxRuntime.jsxs("div",{className:"grid grid-cols-3 gap-0 h-full",children:[jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-muted/30",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium",children:["Base (",e.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.base=s;},onScrollCapture:s=>{let l=s.target;b("base",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:e.content,language:e.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-blue-500/10",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium text-blue-600 dark:text-blue-400",children:["Current (",n.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.current=s;},onScrollCapture:s=>{let l=s.target;b("current",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:n.content,language:n.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-green-500/10",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium text-green-600 dark:text-green-400",children:["Incoming (",a.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.incoming=s;},onScrollCapture:s=>{let l=s.target;b("incoming",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:a.content,language:a.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]})]})},"renderThreeWay"),_=chunkEI7MMDWY_js.a(()=>!A||x.conflicts.length===0?null:jsxRuntime.jsx("div",{className:"border-t bg-muted/30",children:jsxRuntime.jsxs("div",{className:"px-4 py-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Merge Conflicts"}),jsxRuntime.jsx(badge.Badge,{variant:"destructive",className:"text-xs",children:x.conflicts.length})]}),jsxRuntime.jsx("div",{className:"mt-2 space-y-2",children:x.conflicts.map((e,n)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[jsxRuntime.jsxs("span",{children:["Lines ",e.startLine,"-",e.endLine]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(button.Button,{variant:"outline",size:"sm",onClick:()=>M(n,"current"),className:"h-6 text-xs",children:"Keep Current"}),jsxRuntime.jsx(button.Button,{variant:"outline",size:"sm",onClick:()=>M(n,"incoming"),className:"h-6 text-xs",children:"Accept Incoming"})]})]},n))})]})}),"renderMergeConflicts");return jsxRuntime.jsxs("div",{ref:q,className:utils.cn(fe({layout:z,size:V}),H),style:{height:$},...U,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:Q()}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(tabs.Tabs,{value:c,onValueChange:e=>G(e),children:jsxRuntime.jsxs(tabs.TabsList,{className:"grid w-full grid-cols-3",children:[jsxRuntime.jsx(tabs.TabsTrigger,{value:"side-by-side",className:"text-xs",children:"Side by Side"}),jsxRuntime.jsx(tabs.TabsTrigger,{value:"unified",className:"text-xs",children:"Unified"}),jsxRuntime.jsx(tabs.TabsTrigger,{value:"three-way",className:"text-xs",children:"Three-way"})]})}),E&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:W,className:"h-8 w-8 p-0",children:O?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsxs(dropdownMenu.DropdownMenu,{children:[jsxRuntime.jsx(dropdownMenu.DropdownMenuTrigger,{asChild:true,children:jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-3.5 w-3.5"})})}),jsxRuntime.jsxs(dropdownMenu.DropdownMenuContent,{align:"end",children:[jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem,{onClick:()=>v([]),className:"gap-2",children:[jsxRuntime.jsx(lucideReact.RotateCcw,{className:"h-4 w-4"}),"Reset Selection"]}),jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem,{className:"gap-2",children:[jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),"Settings"]})]})]})]})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-h-0",children:[c==="side-by-side"&&X(),c==="unified"&&Y(),c==="three-way"&&Z()]}),_()]})});ge.displayName="CodeCompare";exports.a=fe;exports.b=ge;
6
+ `),l=0,T=0,B=0,ee=Math.max(a.length,s.length);for(let p=0;p<ee;p++){let k=a[p],R=s[p];k===void 0?l++:R===void 0?T++:k!==R&&B++;}return {added:l,removed:T,modified:B}},[]),Q=chunkXUSV3KOD_js.a(()=>jsxRuntime.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i.map((e,n)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs(button.Button,{variant:d.includes(e.id)?"default":"outline",size:"sm",onClick:()=>{v(c==="three-way"?a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<3?[...a,e.id]:[a[1],a[2],e.id]:a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<2?[...a,e.id]:[a[1],e.id]),P?.(e.id);},className:"gap-2",children:[e.label||e.filename,e.version&&jsxRuntime.jsx(badge.Badge,{variant:"secondary",className:"text-xs",children:e.version})]}),n<i.length-1&&c!=="three-way"&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:"vs"})]},e.id))}),"renderFileSelector"),X=chunkXUSV3KOD_js.a(()=>{let[e,n]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);if(!e||!n)return jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"});let a=J(e,n);return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Comparison"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[jsxRuntime.jsxs("span",{className:"text-green-600",children:["+",a.added]}),jsxRuntime.jsxs("span",{className:"text-red-600",children:["-",a.removed]}),jsxRuntime.jsxs("span",{className:"text-yellow-600",children:["~",a.modified]})]})]})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0",children:jsxRuntime.jsx(diff.CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,oldFilename:e.filename,newFilename:n.filename,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"split",className:"border-0 rounded-none h-full"})})]})},"renderSideBySide"),Y=chunkXUSV3KOD_js.a(()=>{let[e,n]=d.map(a=>i.find(s=>s.id===a)).filter(Boolean);return !e||!n?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"}):jsxRuntime.jsx(diff.CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,filename:`${e.filename} \u2192 ${n.filename}`,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"unified",className:"border-0 rounded-none"})},"renderUnified"),Z=chunkXUSV3KOD_js.a(()=>{let[e,n,a]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);return !e||!n||!a?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select three files for three-way merge (base, current, incoming)"}):jsxRuntime.jsxs("div",{className:"grid grid-cols-3 gap-0 h-full",children:[jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-muted/30",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium",children:["Base (",e.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.base=s;},onScrollCapture:s=>{let l=s.target;b("base",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:e.content,language:e.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-blue-500/10",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium text-blue-600 dark:text-blue-400",children:["Current (",n.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.current=s;},onScrollCapture:s=>{let l=s.target;b("current",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:n.content,language:n.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-green-500/10",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium text-green-600 dark:text-green-400",children:["Incoming (",a.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.incoming=s;},onScrollCapture:s=>{let l=s.target;b("incoming",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:a.content,language:a.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]})]})},"renderThreeWay"),_=chunkXUSV3KOD_js.a(()=>!A||x.conflicts.length===0?null:jsxRuntime.jsx("div",{className:"border-t bg-muted/30",children:jsxRuntime.jsxs("div",{className:"px-4 py-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Merge Conflicts"}),jsxRuntime.jsx(badge.Badge,{variant:"destructive",className:"text-xs",children:x.conflicts.length})]}),jsxRuntime.jsx("div",{className:"mt-2 space-y-2",children:x.conflicts.map((e,n)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[jsxRuntime.jsxs("span",{children:["Lines ",e.startLine,"-",e.endLine]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(button.Button,{variant:"outline",size:"sm",onClick:()=>M(n,"current"),className:"h-6 text-xs",children:"Keep Current"}),jsxRuntime.jsx(button.Button,{variant:"outline",size:"sm",onClick:()=>M(n,"incoming"),className:"h-6 text-xs",children:"Accept Incoming"})]})]},n))})]})}),"renderMergeConflicts");return jsxRuntime.jsxs("div",{ref:q,className:utils.cn(fe({layout:z,size:V}),H),style:{height:$},...U,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:Q()}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(tabs.Tabs,{value:c,onValueChange:e=>G(e),children:jsxRuntime.jsxs(tabs.TabsList,{className:"grid w-full grid-cols-3",children:[jsxRuntime.jsx(tabs.TabsTrigger,{value:"side-by-side",className:"text-xs",children:"Side by Side"}),jsxRuntime.jsx(tabs.TabsTrigger,{value:"unified",className:"text-xs",children:"Unified"}),jsxRuntime.jsx(tabs.TabsTrigger,{value:"three-way",className:"text-xs",children:"Three-way"})]})}),E&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:W,className:"h-8 w-8 p-0",children:O?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsxs(dropdownMenu.DropdownMenu,{children:[jsxRuntime.jsx(dropdownMenu.DropdownMenuTrigger,{asChild:true,children:jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-3.5 w-3.5"})})}),jsxRuntime.jsxs(dropdownMenu.DropdownMenuContent,{align:"end",children:[jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem,{onClick:()=>v([]),className:"gap-2",children:[jsxRuntime.jsx(lucideReact.RotateCcw,{className:"h-4 w-4"}),"Reset Selection"]}),jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem,{className:"gap-2",children:[jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),"Settings"]})]})]})]})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-h-0",children:[c==="side-by-side"&&X(),c==="unified"&&Y(),c==="three-way"&&Z()]}),_()]})});ge.displayName="CodeCompare";exports.a=fe;exports.b=ge;
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function l({symbol:r="NASDAQ:AAPL"}){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-advanced-chart.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({width:"100%",height:"600",symbol:r,interval:"D",timezone:"Etc/UTC",theme:"dark",style:"1",locale:"en",allow_symbol_change:true,calendar:false,support_host:"https://www.tradingview.com"}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(a=>a.remove()));}},[r]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full h-[600px]",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget h-full"})})}chunkEI7MMDWY_js.a(l,"AdvancedChart");var m=react.memo(l);
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function l({symbol:r="NASDAQ:AAPL"}){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-advanced-chart.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({width:"100%",height:"600",symbol:r,interval:"D",timezone:"Etc/UTC",theme:"dark",style:"1",locale:"en",allow_symbol_change:true,calendar:false,support_host:"https://www.tradingview.com"}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(a=>a.remove()));}},[r]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full h-[600px]",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget h-full"})})}chunkXUSV3KOD_js.a(l,"AdvancedChart");var m=react.memo(l);
2
2
  exports.a=m;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-3RI2CAUD.mjs';import {a}from'./chunk-CWFGLK4T.mjs';import {jsx}from'react/jsx-runtime';var s=a(({className:e,...t})=>jsx("table",{className:a$1("w-full caption-bottom text-sm",e),...t}),"Table");s.displayName="Table";var b=a(({className:e,...t})=>jsx("thead",{className:a$1("[&_tr]:border-0 [&_tr]:border-b",e),...t}),"TableHeader");b.displayName="TableHeader";var r=a(({className:e,...t})=>jsx("tbody",{className:a$1("[&_tr]:border-0",e),...t}),"TableBody");r.displayName="TableBody";var T=a(({className:e,...t})=>jsx("tfoot",{className:a$1("border-t font-medium [&>tr]:last:border-b-0",e),...t}),"TableFooter");T.displayName="TableFooter";var c=a(({className:e,...t})=>jsx("tr",{className:a$1("data-[state=selected]:bg-muted transition-colors hover:bg-gray-300/50",e),...t}),"TableRow");c.displayName="TableRow";var m=a(({className:e,...t})=>jsx("th",{className:a$1("text-text-secondary h-12 px-4 text-left align-middle font-medium uppercase [&:has([role=checkbox])]:pr-0",e),...t}),"TableHead");m.displayName="TableHead";var d=a(({className:e,...t})=>jsx("td",{className:a$1("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}),"TableCell");d.displayName="TableCell";var i=a(({className:e,...t})=>jsx("caption",{className:a$1("text-text-secondary mt-4 text-sm",e),...t}),"TableCaption");i.displayName="TableCaption";export{s as a,b,r as c,T as d,c as e,m as f,d as g,i as h};
@@ -1 +1 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import {useState,useEffect}from'react';import {TrendingUp,TrendingDown}from'lucide-react';import {jsxs,jsx}from'react/jsx-runtime';function O({symbol:n,currentPrice:o}){let[d,f]=useState("buy"),[c,x]=useState(""),[s,p]=useState(null),[b,g]=useState(null);useEffect(()=>{w();},[]);let w=a(()=>{let t=localStorage.getItem("begm_portfolio");if(t)p(JSON.parse(t));else {let l={cash:1e5,holdings:[]};localStorage.setItem("begm_portfolio",JSON.stringify(l)),p(l);}},"loadPortfolio"),v=a(()=>{if(!c||parseFloat(c)<=0){g({type:"error",text:"Please enter a valid quantity"});return}let t=parseFloat(c),l=t*o;if(d==="buy"){if(l>s.cash){g({type:"error",text:"Insufficient funds"});return}let a=s.holdings.find(r=>r.symbol===n);if(a){let r=a.quantity+t,N=(a.averagePrice*a.quantity+o*t)/r;a.quantity=r,a.averagePrice=N,a.currentPrice=o;}else s.holdings.push({symbol:n,quantity:t,averagePrice:o,currentPrice:o});s.cash-=l;}else {let a=s.holdings.find(r=>r.symbol===n);if(!a||a.quantity<t){g({type:"error",text:"Insufficient shares"});return}a.quantity-=t,a.currentPrice=o,a.quantity===0&&(s.holdings=s.holdings.filter(r=>r.symbol!==n)),s.cash+=l;}localStorage.setItem("begm_portfolio",JSON.stringify(s)),p({...s});let y=JSON.parse(localStorage.getItem("begm_orders")||"[]");y.push({id:`ORD-${Date.now()}`,symbol:n,type:d,quantity:t,price:o,total:l,timestamp:new Date().toISOString(),status:"completed"}),localStorage.setItem("begm_orders",JSON.stringify(y)),g({type:"success",text:`Successfully ${d==="buy"?"bought":"sold"} ${t} shares of ${n}`}),x(""),setTimeout(()=>g(null),3e3);},"executeTrade"),h=a(()=>s?s.holdings.find(l=>l.symbol===n):null,"getHoldingInfo")();return jsxs("div",{className:"bg-white/5 border border-white/10 rounded-lg p-6 backdrop-blur-xl",children:[jsxs("h3",{className:"text-lg font-bold text-white mb-4",children:["Trade ",n]}),jsxs("div",{className:"flex gap-2 mb-4",children:[jsxs("button",{onClick:()=>f("buy"),className:`flex-1 py-2 rounded-lg font-medium transition-all ${d==="buy"?"bg-success text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:[jsx(TrendingUp,{size:16,className:"inline mr-2"}),"Buy"]}),jsxs("button",{onClick:()=>f("sell"),className:`flex-1 py-2 rounded-lg font-medium transition-all ${d==="sell"?"bg-danger text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:[jsx(TrendingDown,{size:16,className:"inline mr-2"}),"Sell"]})]}),h&&jsxs("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:[jsx("p",{className:"text-xs text-white/60 mb-1",children:"Your Holdings"}),jsxs("p",{className:"text-sm text-white",children:[h.quantity," shares @ $",h.averagePrice.toFixed(2)," avg"]})]}),jsxs("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:[jsx("p",{className:"text-xs text-white/60 mb-1",children:"Current Price"}),jsxs("p",{className:"text-lg font-bold text-white",children:["$",o.toFixed(2)]})]}),jsxs("div",{className:"mb-4",children:[jsx("label",{className:"block text-sm font-medium text-white/80 mb-2",children:"Quantity (Shares)"}),jsx("input",{type:"number",value:c,onChange:t=>x(t.target.value),min:"1",step:"1",placeholder:"Enter quantity",className:"w-full px-4 py-2 bg-white/5 border border-white/10 rounded-lg text-white placeholder-white/40 focus:outline-none focus:border-success"})]}),c&&parseFloat(c)>0&&jsx("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:jsxs("div",{className:"flex justify-between items-center",children:[jsx("span",{className:"text-sm text-white/60",children:"Estimated Total"}),jsxs("span",{className:"text-lg font-bold text-white",children:["$",(parseFloat(c)*o).toFixed(2)]})]})}),jsx("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:jsxs("div",{className:"flex justify-between items-center",children:[jsx("span",{className:"text-sm text-white/60",children:"Available Cash"}),jsxs("span",{className:"text-sm font-medium text-white",children:["$",s?.cash.toLocaleString()||"0"]})]})}),b&&jsx("div",{className:`mb-4 p-3 rounded-lg ${b.type==="success"?"bg-success/20 text-success":"bg-danger/20 text-danger"}`,children:jsx("p",{className:"text-sm",children:b.text})}),jsxs("button",{onClick:v,className:`w-full py-3 rounded-lg font-medium transition-all ${d==="buy"?"bg-success hover:bg-success/90 text-white":"bg-danger hover:bg-danger/90 text-white"}`,children:[d==="buy"?"Buy":"Sell"," ",n]}),jsx("p",{className:"text-xs text-white/40 text-center mt-4",children:"This is a demo account. No real money is at risk."})]})}a(O,"TradingPanel");export{O as a};
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import {useState,useEffect}from'react';import {TrendingUp,TrendingDown}from'lucide-react';import {jsxs,jsx}from'react/jsx-runtime';function O({symbol:n,currentPrice:o}){let[d,f]=useState("buy"),[c,x]=useState(""),[s,p]=useState(null),[b,g]=useState(null);useEffect(()=>{w();},[]);let w=a(()=>{let t=localStorage.getItem("begm_portfolio");if(t)p(JSON.parse(t));else {let l={cash:1e5,holdings:[]};localStorage.setItem("begm_portfolio",JSON.stringify(l)),p(l);}},"loadPortfolio"),v=a(()=>{if(!c||parseFloat(c)<=0){g({type:"error",text:"Please enter a valid quantity"});return}let t=parseFloat(c),l=t*o;if(d==="buy"){if(l>s.cash){g({type:"error",text:"Insufficient funds"});return}let a=s.holdings.find(r=>r.symbol===n);if(a){let r=a.quantity+t,N=(a.averagePrice*a.quantity+o*t)/r;a.quantity=r,a.averagePrice=N,a.currentPrice=o;}else s.holdings.push({symbol:n,quantity:t,averagePrice:o,currentPrice:o});s.cash-=l;}else {let a=s.holdings.find(r=>r.symbol===n);if(!a||a.quantity<t){g({type:"error",text:"Insufficient shares"});return}a.quantity-=t,a.currentPrice=o,a.quantity===0&&(s.holdings=s.holdings.filter(r=>r.symbol!==n)),s.cash+=l;}localStorage.setItem("begm_portfolio",JSON.stringify(s)),p({...s});let y=JSON.parse(localStorage.getItem("begm_orders")||"[]");y.push({id:`ORD-${Date.now()}`,symbol:n,type:d,quantity:t,price:o,total:l,timestamp:new Date().toISOString(),status:"completed"}),localStorage.setItem("begm_orders",JSON.stringify(y)),g({type:"success",text:`Successfully ${d==="buy"?"bought":"sold"} ${t} shares of ${n}`}),x(""),setTimeout(()=>g(null),3e3);},"executeTrade"),h=a(()=>s?s.holdings.find(l=>l.symbol===n):null,"getHoldingInfo")();return jsxs("div",{className:"bg-white/5 border border-white/10 rounded-lg p-6 backdrop-blur-xl",children:[jsxs("h3",{className:"text-lg font-bold text-white mb-4",children:["Trade ",n]}),jsxs("div",{className:"flex gap-2 mb-4",children:[jsxs("button",{onClick:()=>f("buy"),className:`flex-1 py-2 rounded-lg font-medium transition-all ${d==="buy"?"bg-success text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:[jsx(TrendingUp,{size:16,className:"inline mr-2"}),"Buy"]}),jsxs("button",{onClick:()=>f("sell"),className:`flex-1 py-2 rounded-lg font-medium transition-all ${d==="sell"?"bg-danger text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:[jsx(TrendingDown,{size:16,className:"inline mr-2"}),"Sell"]})]}),h&&jsxs("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:[jsx("p",{className:"text-xs text-white/60 mb-1",children:"Your Holdings"}),jsxs("p",{className:"text-sm text-white",children:[h.quantity," shares @ $",h.averagePrice.toFixed(2)," avg"]})]}),jsxs("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:[jsx("p",{className:"text-xs text-white/60 mb-1",children:"Current Price"}),jsxs("p",{className:"text-lg font-bold text-white",children:["$",o.toFixed(2)]})]}),jsxs("div",{className:"mb-4",children:[jsx("label",{className:"block text-sm font-medium text-white/80 mb-2",children:"Quantity (Shares)"}),jsx("input",{type:"number",value:c,onChange:t=>x(t.target.value),min:"1",step:"1",placeholder:"Enter quantity",className:"w-full px-4 py-2 bg-white/5 border border-white/10 rounded-lg text-white placeholder-white/40 focus:outline-none focus:border-success"})]}),c&&parseFloat(c)>0&&jsx("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:jsxs("div",{className:"flex justify-between items-center",children:[jsx("span",{className:"text-sm text-white/60",children:"Estimated Total"}),jsxs("span",{className:"text-lg font-bold text-white",children:["$",(parseFloat(c)*o).toFixed(2)]})]})}),jsx("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:jsxs("div",{className:"flex justify-between items-center",children:[jsx("span",{className:"text-sm text-white/60",children:"Available Cash"}),jsxs("span",{className:"text-sm font-medium text-white",children:["$",s?.cash.toLocaleString()||"0"]})]})}),b&&jsx("div",{className:`mb-4 p-3 rounded-lg ${b.type==="success"?"bg-success/20 text-success":"bg-danger/20 text-danger"}`,children:jsx("p",{className:"text-sm",children:b.text})}),jsxs("button",{onClick:v,className:`w-full py-3 rounded-lg font-medium transition-all ${d==="buy"?"bg-success hover:bg-success/90 text-white":"bg-danger hover:bg-danger/90 text-white"}`,children:[d==="buy"?"Buy":"Sell"," ",n]}),jsx("p",{className:"text-xs text-white/40 text-center mt-4",children:"This is a demo account. No real money is at risk."})]})}a(O,"TradingPanel");export{O as a};
@@ -0,0 +1 @@
1
+ import {a as a$2}from'./chunk-KDE3N3L6.mjs';import {a as a$1}from'./chunk-3RI2CAUD.mjs';import {a}from'./chunk-CWFGLK4T.mjs';import*as e from'@radix-ui/react-alert-dialog';import {jsx,jsxs}from'react/jsx-runtime';var C=e.Root,N=e.Trigger,p=e.Portal,s=a(({className:t,children:i,ref:a,...m})=>jsx(e.Overlay,{className:a$1("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm","bg-bg-dark/90",t),...m,ref:a}),"AlertDialogOverlay");s.displayName=e.Overlay.displayName;var c=a(({className:t,ref:i,...a})=>jsxs(p,{children:[jsx(s,{}),jsx(e.Content,{className:a$1("bg-bg-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 border-divider fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),ref:i,...a})]}),"AlertDialogContent");c.displayName=e.Content.displayName;var g=a(({className:t,...i})=>jsx("div",{className:a$1("flex flex-col space-y-2 text-center sm:text-left",t),...i}),"AlertDialogHeader");g.displayName="AlertDialogHeader";var A=a(({className:t,...i})=>jsx("div",{className:a$1("flex",t),...i}),"AlertDialogFooter");A.displayName="AlertDialogFooter";var D=a(({className:t,ref:i,...a})=>jsx(e.Title,{className:a$1("text-lg font-semibold",t),ref:i,...a}),"AlertDialogTitle");D.displayName=e.Title.displayName;var f=a(({className:t,ref:i,...a})=>jsx(e.Description,{className:a$1("text-text-secondary text-sm",t),ref:i,...a}),"AlertDialogDescription");f.displayName=e.Description.displayName;var d=a(({className:t,ref:i,...a})=>jsx(e.Action,{className:a$1(a$2({variant:"default",size:"sm"}),t),ref:i,...a}),"AlertDialogAction");d.displayName=e.Action.displayName;var P=a(({className:t,ref:i,...a})=>jsx(e.Cancel,{className:a$1(a$2({variant:"outline",size:"sm"}),t),ref:i,...a}),"AlertDialogCancel");P.displayName=e.Cancel.displayName;export{C as a,N as b,p as c,s as d,c as e,g as f,A as g,D as h,f as i,d as j,P as k};
@@ -1 +1 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import*as t from'react';import {ChevronLeft,ChevronRight}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var Q=t.forwardRef(({items:s,itemWidth:n=300,itemHeight:l=400,spacing:c=80,perspective:A=1e3,rotateY:se=40,autoRotate:w=false,autoRotateSpeed:E=3e3,showControls:Y=true,infinite:i=true,className:X,...z},O)=>{let m=t.useRef(null),[f,v]=t.useState(0),[R,L]=t.useState(false),[d,H]=t.useState(false),[S,K]=t.useState({x:0,y:0}),[C,x]=t.useState(0),b=t.useRef(void 0),o=s.length,I=(n+c)/2/Math.tan(Math.PI/o);t.useEffect(()=>(w&&!R&&!d?b.current=setInterval(()=>{v(e=>(e+1)%o);},E):b.current&&clearInterval(b.current),()=>{b.current&&clearInterval(b.current);}),[w,R,d,E,o]);let g=t.useCallback(()=>{v(e=>i?(e-1+o)%o:Math.max(0,e-1));},[i,o]),p=t.useCallback(()=>{v(e=>i?(e+1)%o:Math.min(o-1,e+1));},[i,o]),y=t.useCallback(e=>{v(Math.max(0,Math.min(o-1,e)));},[o]),D=t.useCallback((e,a)=>{H(true),K({x:e,y:a}),x(0);},[]),M=t.useCallback((e,a)=>{if(!d)return;let T=(e-S.x)*.5;x(T);},[d,S.x]),k=t.useCallback(()=>{if(!d)return;Math.abs(C)>50&&(C>0?g():p()),H(false),x(0);},[d,C,g,p]),U=t.useCallback(e=>{e.preventDefault(),D(e.clientX,e.clientY);},[D]),Z=t.useCallback(e=>{M(e.clientX,e.clientY);},[M]),j=t.useCallback(()=>{k();},[k]),G=t.useCallback(e=>{if(e.touches.length===1){let a=e.touches[0];D(a.clientX,a.clientY);}},[D]),J=t.useCallback(e=>{if(e.touches.length===1){e.preventDefault();let a=e.touches[0];M(a.clientX,a.clientY);}},[M]),V=t.useCallback(()=>{k();},[k]);t.useEffect(()=>{let e=a(a=>{if(a.key==="ArrowLeft")a.preventDefault(),g();else if(a.key==="ArrowRight")a.preventDefault(),p();else if(a.key>="1"&&a.key<="9"){let h=parseInt(a.key)-1;h<o&&y(h);}},"handleKeyDown");if(m.current)return m.current.addEventListener("keydown",e),()=>{m.current?.removeEventListener("keydown",e);}},[g,p,y,o]),t.useImperativeHandle(O,()=>m.current);let _={perspective:`${A}px`,height:`${l+100}px`},q={transform:`translateZ(-${I}px) rotateY(${-f*(360/o)+C/5}deg)`,transition:d?"none":"transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1)",transformStyle:"preserve-3d"};return jsxs("div",{ref:m,className:cn("relative w-full select-none focus:outline-none",X),style:_,onMouseEnter:()=>L(true),onMouseLeave:()=>L(false),onMouseDown:U,onMouseMove:Z,onMouseUp:j,onTouchStart:G,onTouchMove:J,onTouchEnd:V,tabIndex:0,...z,children:[jsx("div",{className:"relative mx-auto",style:{width:`${n}px`,height:`${l}px`,transformStyle:"preserve-3d"},children:jsx("div",{className:"absolute inset-0",style:q,children:s.map((e,a)=>{let h=a/o*360,P=a===f,T={transform:`rotateY(${h}deg) translateZ(${I}px)`,width:`${n}px`,height:`${l}px`,position:"absolute",backfaceVisibility:"hidden",transformStyle:"preserve-3d"};return jsx("div",{className:cn("rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer","transition-all duration-300 transform-gpu will-change-transform",P&&"ring-2 ring-primary ring-offset-2"),style:T,onClick:()=>y(a),children:jsx("div",{className:"w-full h-full overflow-hidden rounded-lg",children:e.content})},e.id)})})}),Y&&jsxs(Fragment,{children:[jsx("button",{className:cn("absolute left-4 top-1/2 -translate-y-1/2 z-10","p-2 rounded-full bg-background/80 backdrop-blur-sm","border shadow-lg hover:bg-background transition-all","disabled:opacity-50 disabled:cursor-not-allowed"),onClick:g,disabled:!i&&f===0,"aria-label":"Previous item",children:jsx(ChevronLeft,{className:"w-5 h-5"})}),jsx("button",{className:cn("absolute right-4 top-1/2 -translate-y-1/2 z-10","p-2 rounded-full bg-background/80 backdrop-blur-sm","border shadow-lg hover:bg-background transition-all","disabled:opacity-50 disabled:cursor-not-allowed"),onClick:p,disabled:!i&&f===o-1,"aria-label":"Next item",children:jsx(ChevronRight,{className:"w-5 h-5"})})]}),jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-10",children:jsx("div",{className:"flex space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg",children:s.map((e,a)=>jsx("button",{className:cn("w-2 h-2 rounded-full transition-all",a===f?"bg-primary scale-125":"bg-muted-foreground/50 hover:bg-muted-foreground/75"),onClick:()=>y(a),"aria-label":`Go to item ${a+1}`},a))})}),w&&jsx("div",{className:"absolute top-4 right-4 z-10",children:jsxs("div",{className:"flex items-center space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-sm",children:[jsx("div",{className:cn("w-2 h-2 rounded-full transition-all",R||d?"bg-orange-500":"bg-green-500 animate-pulse")}),jsx("span",{className:"text-xs text-muted-foreground",children:R||d?"Paused":"Auto"})]})})]})});Q.displayName="Carousel3D";var W=t.forwardRef(({className:s,children:n,...l},c)=>jsx("div",{ref:c,className:cn("w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20","border rounded-lg overflow-hidden group",s),...l,children:n}));W.displayName="Carousel3DCard";var ee=t.forwardRef(({className:s,alt:n,...l},c)=>jsx("img",{ref:c,className:cn("w-full h-48 object-cover transition-transform duration-300","group-hover:scale-105",s),alt:n,...l}));ee.displayName="Carousel3DCardImage";var te=t.forwardRef(({className:s,children:n,...l},c)=>jsx("div",{ref:c,className:cn("flex-1 p-4 flex flex-col justify-between",s),...l,children:n}));te.displayName="Carousel3DCardContent";var ae=t.forwardRef(({className:s,children:n,...l},c)=>jsx("h3",{ref:c,className:cn("font-semibold text-lg mb-2 line-clamp-2",s),...l,children:n}));ae.displayName="Carousel3DCardTitle";var re=t.forwardRef(({className:s,children:n,...l},c)=>jsx("p",{ref:c,className:cn("text-sm text-muted-foreground line-clamp-3 mb-4",s),...l,children:n}));re.displayName="Carousel3DCardDescription";export{Q as a,W as b,ee as c,te as d,ae as e,re as f};
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import*as t from'react';import {ChevronLeft,ChevronRight}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var Q=t.forwardRef(({items:s,itemWidth:n=300,itemHeight:l=400,spacing:c=80,perspective:A=1e3,rotateY:se=40,autoRotate:w=false,autoRotateSpeed:E=3e3,showControls:Y=true,infinite:i=true,className:X,...z},O)=>{let m=t.useRef(null),[f,v]=t.useState(0),[R,L]=t.useState(false),[d,H]=t.useState(false),[S,K]=t.useState({x:0,y:0}),[C,x]=t.useState(0),b=t.useRef(void 0),o=s.length,I=(n+c)/2/Math.tan(Math.PI/o);t.useEffect(()=>(w&&!R&&!d?b.current=setInterval(()=>{v(e=>(e+1)%o);},E):b.current&&clearInterval(b.current),()=>{b.current&&clearInterval(b.current);}),[w,R,d,E,o]);let g=t.useCallback(()=>{v(e=>i?(e-1+o)%o:Math.max(0,e-1));},[i,o]),p=t.useCallback(()=>{v(e=>i?(e+1)%o:Math.min(o-1,e+1));},[i,o]),y=t.useCallback(e=>{v(Math.max(0,Math.min(o-1,e)));},[o]),D=t.useCallback((e,a)=>{H(true),K({x:e,y:a}),x(0);},[]),M=t.useCallback((e,a)=>{if(!d)return;let T=(e-S.x)*.5;x(T);},[d,S.x]),k=t.useCallback(()=>{if(!d)return;Math.abs(C)>50&&(C>0?g():p()),H(false),x(0);},[d,C,g,p]),U=t.useCallback(e=>{e.preventDefault(),D(e.clientX,e.clientY);},[D]),Z=t.useCallback(e=>{M(e.clientX,e.clientY);},[M]),j=t.useCallback(()=>{k();},[k]),G=t.useCallback(e=>{if(e.touches.length===1){let a=e.touches[0];D(a.clientX,a.clientY);}},[D]),J=t.useCallback(e=>{if(e.touches.length===1){e.preventDefault();let a=e.touches[0];M(a.clientX,a.clientY);}},[M]),V=t.useCallback(()=>{k();},[k]);t.useEffect(()=>{let e=a(a=>{if(a.key==="ArrowLeft")a.preventDefault(),g();else if(a.key==="ArrowRight")a.preventDefault(),p();else if(a.key>="1"&&a.key<="9"){let h=parseInt(a.key)-1;h<o&&y(h);}},"handleKeyDown");if(m.current)return m.current.addEventListener("keydown",e),()=>{m.current?.removeEventListener("keydown",e);}},[g,p,y,o]),t.useImperativeHandle(O,()=>m.current);let _={perspective:`${A}px`,height:`${l+100}px`},q={transform:`translateZ(-${I}px) rotateY(${-f*(360/o)+C/5}deg)`,transition:d?"none":"transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1)",transformStyle:"preserve-3d"};return jsxs("div",{ref:m,className:cn("relative w-full select-none focus:outline-none",X),style:_,onMouseEnter:()=>L(true),onMouseLeave:()=>L(false),onMouseDown:U,onMouseMove:Z,onMouseUp:j,onTouchStart:G,onTouchMove:J,onTouchEnd:V,tabIndex:0,...z,children:[jsx("div",{className:"relative mx-auto",style:{width:`${n}px`,height:`${l}px`,transformStyle:"preserve-3d"},children:jsx("div",{className:"absolute inset-0",style:q,children:s.map((e,a)=>{let h=a/o*360,P=a===f,T={transform:`rotateY(${h}deg) translateZ(${I}px)`,width:`${n}px`,height:`${l}px`,position:"absolute",backfaceVisibility:"hidden",transformStyle:"preserve-3d"};return jsx("div",{className:cn("rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer","transition-all duration-300 transform-gpu will-change-transform",P&&"ring-2 ring-primary ring-offset-2"),style:T,onClick:()=>y(a),children:jsx("div",{className:"w-full h-full overflow-hidden rounded-lg",children:e.content})},e.id)})})}),Y&&jsxs(Fragment,{children:[jsx("button",{className:cn("absolute left-4 top-1/2 -translate-y-1/2 z-10","p-2 rounded-full bg-background/80 backdrop-blur-sm","border shadow-lg hover:bg-background transition-all","disabled:opacity-50 disabled:cursor-not-allowed"),onClick:g,disabled:!i&&f===0,"aria-label":"Previous item",children:jsx(ChevronLeft,{className:"w-5 h-5"})}),jsx("button",{className:cn("absolute right-4 top-1/2 -translate-y-1/2 z-10","p-2 rounded-full bg-background/80 backdrop-blur-sm","border shadow-lg hover:bg-background transition-all","disabled:opacity-50 disabled:cursor-not-allowed"),onClick:p,disabled:!i&&f===o-1,"aria-label":"Next item",children:jsx(ChevronRight,{className:"w-5 h-5"})})]}),jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-10",children:jsx("div",{className:"flex space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg",children:s.map((e,a)=>jsx("button",{className:cn("w-2 h-2 rounded-full transition-all",a===f?"bg-primary scale-125":"bg-muted-foreground/50 hover:bg-muted-foreground/75"),onClick:()=>y(a),"aria-label":`Go to item ${a+1}`},a))})}),w&&jsx("div",{className:"absolute top-4 right-4 z-10",children:jsxs("div",{className:"flex items-center space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-sm",children:[jsx("div",{className:cn("w-2 h-2 rounded-full transition-all",R||d?"bg-orange-500":"bg-green-500 animate-pulse")}),jsx("span",{className:"text-xs text-muted-foreground",children:R||d?"Paused":"Auto"})]})})]})});Q.displayName="Carousel3D";var W=t.forwardRef(({className:s,children:n,...l},c)=>jsx("div",{ref:c,className:cn("w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20","border rounded-lg overflow-hidden group",s),...l,children:n}));W.displayName="Carousel3DCard";var ee=t.forwardRef(({className:s,alt:n,...l},c)=>jsx("img",{ref:c,className:cn("w-full h-48 object-cover transition-transform duration-300","group-hover:scale-105",s),alt:n,...l}));ee.displayName="Carousel3DCardImage";var te=t.forwardRef(({className:s,children:n,...l},c)=>jsx("div",{ref:c,className:cn("flex-1 p-4 flex flex-col justify-between",s),...l,children:n}));te.displayName="Carousel3DCardContent";var ae=t.forwardRef(({className:s,children:n,...l},c)=>jsx("h3",{ref:c,className:cn("font-semibold text-lg mb-2 line-clamp-2",s),...l,children:n}));ae.displayName="Carousel3DCardTitle";var re=t.forwardRef(({className:s,children:n,...l},c)=>jsx("p",{ref:c,className:cn("text-sm text-muted-foreground line-clamp-3 mb-4",s),...l,children:n}));re.displayName="Carousel3DCardDescription";export{Q as a,W as b,ee as c,te as d,ae as e,re as f};
@@ -1 +1 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import*as t from'react';import {motion}from'motion/react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var M=t.forwardRef(({className:b,duration:E=3,delay:w=0,pathColor:y="gray",pathWidth:l=2,gradientStartColor:i="#18CCFC",gradientStopColor:s="#6344F5",containerRef:a$1,fromRef:c,toRef:m,...B},C)=>{let[f,G]=t.useState("");return t.useEffect(()=>{if(!a$1?.current||!c?.current||!m?.current)return;let d=a(()=>{let n=a$1.current.getBoundingClientRect(),o=c.current.getBoundingClientRect(),r=m.current.getBoundingClientRect(),p=o.left-n.left+o.width/2,u=o.top-n.top+o.height/2,h=r.left-n.left+r.width/2,g=r.top-n.top+r.height/2,L=(p+h)/2,v=Math.min(u,g)-50;G(`M ${p} ${u} Q ${L} ${v} ${h} ${g}`);},"updatePath");return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[a$1,c,m]),jsxs("svg",{ref:C,className:cn("pointer-events-none absolute inset-0",b),...B,children:[jsx("path",{d:f,stroke:y,strokeWidth:l,fill:"none",strokeOpacity:.2}),jsx(motion.path,{d:f,stroke:`url(#gradient-${i}-${s})`,strokeWidth:l,fill:"none",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:E,delay:w,ease:"easeInOut",repeat:1/0}}),jsx("defs",{children:jsxs("linearGradient",{id:`gradient-${i}-${s}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0%",stopColor:i}),jsx("stop",{offset:"100%",stopColor:s})]})})]})});M.displayName="AnimatedBeam";export{M as a};
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import*as t from'react';import {motion}from'motion/react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var M=t.forwardRef(({className:b,duration:E=3,delay:w=0,pathColor:y="gray",pathWidth:l=2,gradientStartColor:i="#18CCFC",gradientStopColor:s="#6344F5",containerRef:a$1,fromRef:c,toRef:m,...B},C)=>{let[f,G]=t.useState("");return t.useEffect(()=>{if(!a$1?.current||!c?.current||!m?.current)return;let d=a(()=>{let n=a$1.current.getBoundingClientRect(),o=c.current.getBoundingClientRect(),r=m.current.getBoundingClientRect(),p=o.left-n.left+o.width/2,u=o.top-n.top+o.height/2,h=r.left-n.left+r.width/2,g=r.top-n.top+r.height/2,L=(p+h)/2,v=Math.min(u,g)-50;G(`M ${p} ${u} Q ${L} ${v} ${h} ${g}`);},"updatePath");return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[a$1,c,m]),jsxs("svg",{ref:C,className:cn("pointer-events-none absolute inset-0",b),...B,children:[jsx("path",{d:f,stroke:y,strokeWidth:l,fill:"none",strokeOpacity:.2}),jsx(motion.path,{d:f,stroke:`url(#gradient-${i}-${s})`,strokeWidth:l,fill:"none",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:E,delay:w,ease:"easeInOut",repeat:1/0}}),jsx("defs",{children:jsxs("linearGradient",{id:`gradient-${i}-${s}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0%",stopColor:i}),jsx("stop",{offset:"100%",stopColor:s})]})})]})});M.displayName="AnimatedBeam";export{M as a};
@@ -1 +1 @@
1
- 'use strict';var chunkPRVEIITE_js=require('./chunk-PRVEIITE.js'),chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),a=require('react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var b=a__namespace.forwardRef(({className:n,messages:d,onClose:r,position:l="bottom-right",...p},c)=>jsxRuntime.jsx("div",{ref:c,className:chunkDKPVJSBC_js.a("fixed z-50 flex flex-col gap-2",{top:"top-4 left-1/2 -translate-x-1/2",bottom:"bottom-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-right":"bottom-4 right-4"}[l],n),...p,children:d.map(t=>jsxRuntime.jsx("div",{className:chunkDKPVJSBC_js.a("min-w-[300px] rounded-lg border p-4 shadow-lg",t.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",t.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",t.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",t.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!t.type&&"bg-background"),children:jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"flex-1",children:[jsxRuntime.jsx("h4",{className:"font-medium",children:t.title}),t.description&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t.description})]}),r&&jsxRuntime.jsx(chunkPRVEIITE_js.b,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>r(t.id),children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})},t.id))}));b.displayName="MessageDock";exports.a=b;
1
+ 'use strict';var chunk3YL43AE4_js=require('./chunk-3YL43AE4.js'),chunkYZFRWYNS_js=require('./chunk-YZFRWYNS.js'),a=require('react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var b=a__namespace.forwardRef(({className:n,messages:d,onClose:r,position:l="bottom-right",...p},c)=>jsxRuntime.jsx("div",{ref:c,className:chunkYZFRWYNS_js.a("fixed z-50 flex flex-col gap-2",{top:"top-4 left-1/2 -translate-x-1/2",bottom:"bottom-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-right":"bottom-4 right-4"}[l],n),...p,children:d.map(t=>jsxRuntime.jsx("div",{className:chunkYZFRWYNS_js.a("min-w-[300px] rounded-lg border p-4 shadow-lg",t.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",t.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",t.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",t.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!t.type&&"bg-background"),children:jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"flex-1",children:[jsxRuntime.jsx("h4",{className:"font-medium",children:t.title}),t.description&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t.description})]}),r&&jsxRuntime.jsx(chunk3YL43AE4_js.b,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>r(t.id),children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})},t.id))}));b.displayName="MessageDock";exports.a=b;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-3RI2CAUD.mjs';import {a}from'./chunk-CWFGLK4T.mjs';import*as o from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var p=o.Root,P=o.Trigger,v=o.Anchor,s=a(({className:r,align:a="center",sideOffset:d=4,...n})=>jsx(o.Portal,{children:jsx(o.Content,{align:a,className:a$1("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","bg-bg-dark border-divider z-50 w-72 rounded-md border p-4 text-gray-50 shadow-lg shadow-md outline-hidden",r),sideOffset:d,...n})}),"PopoverContent");s.displayName=o.Content.displayName;export{p as a,P as b,v as c,s as d};
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),t=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),shiki=require('shiki'),utils=require('@hanzo/ui/lib/utils'),badge=require('@hanzo/ui/badge'),button=require('@hanzo/ui/button'),skeleton=require('@hanzo/ui/skeleton'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var B=classVarianceAuthority.cva("relative group",{variants:{variant:{default:"rounded-lg border bg-muted/50",inline:"inline-block rounded-md bg-muted px-2 py-1",minimal:"bg-transparent"},theme:{dark:"bg-slate-950 border-slate-800",light:"bg-slate-50 border-slate-200",github:"bg-white border-slate-200","github-dark":"bg-slate-900 border-slate-700",terminal:"bg-black border-green-500/30 text-green-400",retro:"bg-amber-50 border-amber-200 text-amber-900"},size:{xs:"text-xs",sm:"text-sm",default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",theme:"dark",size:"default"}}),I=t__namespace.forwardRef(({className:g,variant:n,theme:l,size:p,code:o,language:c="text",filename:f,showLineNumbers:w=false,highlightLines:z=[],showCopyButton:v=true,showLanguageBadge:V=true,showHeader:_=true,maxHeight:P,expandable:h=false,collapsedHeight:A="200px",wrapLines:x=false,startLineNumber:D=1,...F},j)=>{let[k,C]=t__namespace.useState(""),[y,H]=t__namespace.useState(false),[q,L]=t__namespace.useState(true),[d,O]=t__namespace.useState(!h),G={dark:"github-dark",light:"github-light",github:"github-light","github-dark":"github-dark",terminal:"github-dark",retro:"github-light"};t__namespace.useEffect(()=>{chunkEI7MMDWY_js.a(async()=>{L(true);try{let a=Object.keys(shiki.bundledLanguages).includes(c),s=await shiki.codeToHtml(o,{lang:a?c:"text",theme:G[l||"dark"]}),u=document.createElement("div");u.innerHTML=s;let Q=u.querySelector("code");C(Q?.innerHTML||s);}catch(a){console.error("Failed to highlight code:",a);let s=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");C(s);}finally{L(false);}},"highlightCode")();},[o,c,l]);let T=t__namespace.useCallback(async()=>{try{await navigator.clipboard.writeText(o),H(!0),setTimeout(()=>H(!1),2e3);}catch(i){console.error("Failed to copy code:",i);}},[o]),M=k.split(`
2
- `).filter((i,a,s)=>i.trim()!==""||a<s.length-1),J=chunkEI7MMDWY_js.a(()=>jsxRuntime.jsx("code",{className:utils.cn(B({variant:n,theme:l,size:p}),"font-mono",g),dangerouslySetInnerHTML:{__html:k}}),"renderInline"),K=chunkEI7MMDWY_js.a(()=>jsxRuntime.jsxs("div",{ref:j,className:utils.cn(B({variant:n,theme:l,size:p}),"overflow-hidden",g),...F,children:[_&&(f||c||v||h)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx(lucideReact.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:f})]}),V&&c&&jsxRuntime.jsx(badge.Badge,{variant:"secondary",className:"text-xs",children:c})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[h&&jsxRuntime.jsxs(button.Button,{variant:"ghost",size:"sm",onClick:()=>O(!d),className:"h-8 w-8 p-0",children:[d?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-3.5 w-3.5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-3.5 w-3.5"}),jsxRuntime.jsx("span",{className:"sr-only",children:d?"Collapse":"Expand"})]}),v&&jsxRuntime.jsxs(button.Button,{variant:"ghost",size:"sm",onClick:T,className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:[y?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"}),jsxRuntime.jsx("span",{className:"sr-only",children:y?"Copied":"Copy code"})]})]})]}),jsxRuntime.jsx("div",{className:utils.cn("overflow-auto",!x&&"overflow-x-auto"),style:{maxHeight:d?P:A},children:q?jsxRuntime.jsx("div",{className:"p-4 space-y-2",children:Array.from({length:Math.min(M.length||5,10)}).map((i,a)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[w&&jsxRuntime.jsx(skeleton.Skeleton,{className:"h-4 w-8"}),jsxRuntime.jsx(skeleton.Skeleton,{className:"h-4 flex-1"})]},a))}):jsxRuntime.jsx("div",{className:"font-mono",children:M.map((i,a)=>{let s=a+D,u=z.includes(s);return jsxRuntime.jsxs("div",{className:utils.cn("group relative flex min-h-[1.5rem] items-center px-4 py-0.5",u&&"bg-blue-500/10 border-l-2 border-l-blue-500",!x&&"whitespace-nowrap"),children:[w&&jsxRuntime.jsx("span",{className:"mr-4 inline-block w-8 select-none text-right text-xs text-muted-foreground",children:s}),jsxRuntime.jsx("div",{className:utils.cn("flex-1",x?"whitespace-pre-wrap break-words":"overflow-x-auto"),dangerouslySetInnerHTML:{__html:i}})]},a)})})}),h&&!d&&jsxRuntime.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-background to-transparent pointer-events-none"}),n==="minimal"&&v&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:T,className:"absolute top-2 right-2 h-8 w-8 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:y?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"})})]}),"renderBlock");return n==="inline"?J():K()});I.displayName="CodeSnippet";var te=t__namespace.forwardRef(({children:g,language:n,className:l,...p},o)=>jsxRuntime.jsx(I,{ref:o,code:g,language:n,variant:"inline",showCopyButton:false,showLanguageBadge:false,showHeader:false,className:l,...p}));te.displayName="InlineCode";exports.a=B;exports.b=I;exports.c=te;
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),t=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),shiki=require('shiki'),utils=require('@hanzo/ui/lib/utils'),badge=require('@hanzo/ui/badge'),button=require('@hanzo/ui/button'),skeleton=require('@hanzo/ui/skeleton'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var B=classVarianceAuthority.cva("relative group",{variants:{variant:{default:"rounded-lg border bg-muted/50",inline:"inline-block rounded-md bg-muted px-2 py-1",minimal:"bg-transparent"},theme:{dark:"bg-slate-950 border-slate-800",light:"bg-slate-50 border-slate-200",github:"bg-white border-slate-200","github-dark":"bg-slate-900 border-slate-700",terminal:"bg-black border-green-500/30 text-green-400",retro:"bg-amber-50 border-amber-200 text-amber-900"},size:{xs:"text-xs",sm:"text-sm",default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",theme:"dark",size:"default"}}),I=t__namespace.forwardRef(({className:g,variant:n,theme:l,size:p,code:o,language:c="text",filename:f,showLineNumbers:w=false,highlightLines:z=[],showCopyButton:v=true,showLanguageBadge:V=true,showHeader:_=true,maxHeight:P,expandable:h=false,collapsedHeight:A="200px",wrapLines:x=false,startLineNumber:D=1,...F},j)=>{let[k,C]=t__namespace.useState(""),[y,H]=t__namespace.useState(false),[q,L]=t__namespace.useState(true),[d,O]=t__namespace.useState(!h),G={dark:"github-dark",light:"github-light",github:"github-light","github-dark":"github-dark",terminal:"github-dark",retro:"github-light"};t__namespace.useEffect(()=>{chunkXUSV3KOD_js.a(async()=>{L(true);try{let a=Object.keys(shiki.bundledLanguages).includes(c),s=await shiki.codeToHtml(o,{lang:a?c:"text",theme:G[l||"dark"]}),u=document.createElement("div");u.innerHTML=s;let Q=u.querySelector("code");C(Q?.innerHTML||s);}catch(a){console.error("Failed to highlight code:",a);let s=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");C(s);}finally{L(false);}},"highlightCode")();},[o,c,l]);let T=t__namespace.useCallback(async()=>{try{await navigator.clipboard.writeText(o),H(!0),setTimeout(()=>H(!1),2e3);}catch(i){console.error("Failed to copy code:",i);}},[o]),M=k.split(`
2
+ `).filter((i,a,s)=>i.trim()!==""||a<s.length-1),J=chunkXUSV3KOD_js.a(()=>jsxRuntime.jsx("code",{className:utils.cn(B({variant:n,theme:l,size:p}),"font-mono",g),dangerouslySetInnerHTML:{__html:k}}),"renderInline"),K=chunkXUSV3KOD_js.a(()=>jsxRuntime.jsxs("div",{ref:j,className:utils.cn(B({variant:n,theme:l,size:p}),"overflow-hidden",g),...F,children:[_&&(f||c||v||h)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx(lucideReact.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:f})]}),V&&c&&jsxRuntime.jsx(badge.Badge,{variant:"secondary",className:"text-xs",children:c})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[h&&jsxRuntime.jsxs(button.Button,{variant:"ghost",size:"sm",onClick:()=>O(!d),className:"h-8 w-8 p-0",children:[d?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-3.5 w-3.5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-3.5 w-3.5"}),jsxRuntime.jsx("span",{className:"sr-only",children:d?"Collapse":"Expand"})]}),v&&jsxRuntime.jsxs(button.Button,{variant:"ghost",size:"sm",onClick:T,className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:[y?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"}),jsxRuntime.jsx("span",{className:"sr-only",children:y?"Copied":"Copy code"})]})]})]}),jsxRuntime.jsx("div",{className:utils.cn("overflow-auto",!x&&"overflow-x-auto"),style:{maxHeight:d?P:A},children:q?jsxRuntime.jsx("div",{className:"p-4 space-y-2",children:Array.from({length:Math.min(M.length||5,10)}).map((i,a)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[w&&jsxRuntime.jsx(skeleton.Skeleton,{className:"h-4 w-8"}),jsxRuntime.jsx(skeleton.Skeleton,{className:"h-4 flex-1"})]},a))}):jsxRuntime.jsx("div",{className:"font-mono",children:M.map((i,a)=>{let s=a+D,u=z.includes(s);return jsxRuntime.jsxs("div",{className:utils.cn("group relative flex min-h-[1.5rem] items-center px-4 py-0.5",u&&"bg-blue-500/10 border-l-2 border-l-blue-500",!x&&"whitespace-nowrap"),children:[w&&jsxRuntime.jsx("span",{className:"mr-4 inline-block w-8 select-none text-right text-xs text-muted-foreground",children:s}),jsxRuntime.jsx("div",{className:utils.cn("flex-1",x?"whitespace-pre-wrap break-words":"overflow-x-auto"),dangerouslySetInnerHTML:{__html:i}})]},a)})})}),h&&!d&&jsxRuntime.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-background to-transparent pointer-events-none"}),n==="minimal"&&v&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:T,className:"absolute top-2 right-2 h-8 w-8 p-0 opacity-0 group-hover:opacity-100 transition-opacity",children:y?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"})})]}),"renderBlock");return n==="inline"?J():K()});I.displayName="CodeSnippet";var te=t__namespace.forwardRef(({children:g,language:n,className:l,...p},o)=>jsxRuntime.jsx(I,{ref:o,code:g,language:n,variant:"inline",showCopyButton:false,showLanguageBadge:false,showHeader:false,className:l,...p}));te.displayName="InlineCode";exports.a=B;exports.b=I;exports.c=te;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-3RI2CAUD.mjs';import {a}from'./chunk-CWFGLK4T.mjs';import {Drawer}from'vaul';import {jsx,jsxs}from'react/jsx-runtime';var m=a(({shouldScaleBackground:e=false,...t})=>jsx(Drawer.Root,{shouldScaleBackground:e,...t}),"Drawer");m.displayName="Drawer";var v=Drawer.Trigger,p=Drawer.Portal,g=Drawer.Close,n=a(({className:e,...t})=>jsx(Drawer.Overlay,{className:a$1("fixed inset-0 z-50 bg-black/70",e),...t}),"DrawerOverlay");n.displayName=Drawer.Overlay.displayName;var c=a(({className:e,children:t,...l})=>jsxs(p,{children:[jsx(n,{}),jsxs(Drawer.Content,{className:a$1("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-gray-500 px-6 pb-6 focus:outline-hidden",e),...l,children:[jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300"}),t]})]}),"DrawerContent");c.displayName="DrawerContent";var d=a(({className:e,...t})=>jsx("div",{className:a$1("pt-5 pb-0",e),...t}),"DrawerHeader");d.displayName="DrawerHeader";var D=a(({className:e,...t})=>jsx("div",{className:a$1("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");D.displayName="DrawerFooter";var w=a(({className:e,...t})=>jsx(Drawer.Title,{className:a$1("text-lg leading-none font-semibold tracking-tight",e),...t}),"DrawerTitle");w.displayName=Drawer.Title.displayName;var y=a(({className:e,...t})=>jsx(Drawer.Description,{className:a$1("text-text-secondary text-sm",e),...t}),"DrawerDescription");y.displayName=Drawer.Description.displayName;export{m as a,v as b,p as c,g as d,n as e,c as f,d as g,D as h,w as i,y as j};
@@ -1 +1 @@
1
- import {a}from'./chunk-YSXGDEY5.mjs';import*as l from'react';import {cva}from'class-variance-authority';import {Folder,File,FileImage,FileText,FileCode,FolderOpen,ChevronDown,ChevronRight,Search,X}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Button}from'@hanzo/ui/button';import {Input}from'@hanzo/ui/input';import {ScrollArea}from'@hanzo/ui/scroll-area';import {jsxs,jsx}from'react/jsx-runtime';var ee=cva("relative flex flex-col overflow-hidden rounded-lg border bg-background",{variants:{size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{size:"default"}}),te=a((o,d=false)=>{if(d)return Folder;switch(o.split(".").pop()?.toLowerCase()){case "js":case "jsx":case "ts":case "tsx":case "vue":case "svelte":return FileCode;case "json":case "xml":case "yaml":case "yml":case "toml":case "ini":return FileText;case "png":case "jpg":case "jpeg":case "gif":case "svg":case "webp":case "ico":return FileImage;default:return File}},"getFileIcon"),re=a(o=>{if(!o)return "";let d=["B","KB","MB","GB"],n=o,s=0;for(;n>=1024&&s<d.length-1;)n/=1024,s++;return `${n.toFixed(1)} ${d[s]}`},"formatFileSize"),se=a(o=>{if(!o)return "";let n=new Date().getTime()-o.getTime(),s=Math.floor(n/(1e3*60*60*24));return s===0?"Today":s===1?"Yesterday":s<7?`${s} days ago`:s<30?`${Math.floor(s/7)} weeks ago`:s<365?`${Math.floor(s/30)} months ago`:`${Math.floor(s/365)} years ago`},"formatModifiedDate"),ae=l.forwardRef(({className:o,size:d,files:n,onFileSelect:s,onFolderToggle:F,selectedFile:h,showSearch:j=true,showFileIcons:x=true,showFileSize:w=false,showModifiedDate:T=false,height:z="400px",defaultExpanded:D=[],searchPlaceholder:L="Search files...",emptyMessage:B="No files found",...I},P)=>{let[c,C]=l.useState(""),[E,V]=l.useState(new Set(D)),g=l.useCallback(e=>e.map(r=>({...r,isExpanded:E.has(r.id),children:r.children?g(r.children):void 0})),[E]),v=l.useCallback((e,r)=>{if(!r)return e;let a=[];for(let i of e)if(i.name.toLowerCase().includes(r.toLowerCase()))a.push(i);else if(i.type==="folder"&&i.children){let f=v(i.children,r);f.length>0&&a.push({...i,children:f,isExpanded:true});}return a},[]),N=l.useMemo(()=>{let e=g(n);return c?v(e,c):e},[n,c,g,v]),S=l.useCallback(e=>{V(r=>{let a=new Set(r);return a.has(e.id)?a.delete(e.id):a.add(e.id),a}),F?.(e);},[F]),k=l.useCallback((e,r=0)=>{let a=x?te(e.name,e.type==="folder"):null,i=e.type==="folder"&&e.isExpanded?FolderOpen:Folder,f=h===e.id||h===e.path;return jsxs("div",{children:[jsxs("div",{className:cn("flex items-center gap-2 px-2 py-1 hover:bg-muted/50 cursor-pointer transition-colors",f&&"bg-muted","rounded-sm"),style:{paddingLeft:`${r*16+8}px`},onClick:()=>{e.type==="folder"?S(e):s?.(e);},children:[e.type==="folder"&&jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:e.isExpanded?jsx(ChevronDown,{className:"h-3 w-3"}):jsx(ChevronRight,{className:"h-3 w-3"})}),x&&jsx("div",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:e.type==="folder"?jsx(i,{className:"h-4 w-4 text-blue-500"}):a?jsx(a,{className:"h-4 w-4 text-muted-foreground"}):null}),jsx("span",{className:"flex-1 truncate",children:e.name}),w&&e.type==="file"&&e.size&&jsx("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:re(e.size)}),T&&e.modified&&jsx("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:se(e.modified)})]}),e.type==="folder"&&e.isExpanded&&e.children&&jsx("div",{children:e.children.map(u=>k(u,r+1))})]},e.id)},[x,w,T,h,S,s]),A=a(()=>{C("");},"clearSearch");return jsxs("div",{ref:P,className:cn(ee({size:d}),o),style:{height:z},...I,children:[j&&jsx("div",{className:"flex items-center gap-2 border-b px-4 py-2",children:jsxs("div",{className:"relative flex-1",children:[jsx(Search,{className:"absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsx(Input,{value:c,onChange:e=>C(e.target.value),placeholder:L,className:"pl-8 pr-8 h-8"}),c&&jsx(Button,{variant:"ghost",size:"sm",onClick:A,className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-6 w-6 p-0",children:jsx(X,{className:"h-3 w-3"})})]})}),jsx(ScrollArea,{className:"flex-1",children:jsx("div",{className:"p-2",children:N.length===0?jsx("div",{className:"flex items-center justify-center h-24 text-muted-foreground",children:c?`No files match "${c}"`:B}):jsx("div",{className:"space-y-0.5",children:N.map(e=>k(e,0))})})}),jsxs("div",{className:"border-t px-4 py-2 text-xs text-muted-foreground",children:[(()=>{let e=a(f=>{let u=0,y=0;for(let b of f)if(b.type==="file")u++;else if(y++,b.children){let R=e(b.children);u+=R.files,y+=R.folders;}return {files:u,folders:y}},"countFiles"),{files:r,folders:a$1}=e(N),i=[];return r>0&&i.push(`${r} file${r===1?"":"s"}`),a$1>0&&i.push(`${a$1} folder${a$1===1?"":"s"}`),i.join(", ")||"Empty"})(),c&&jsx("span",{children:" (filtered)"})]})]})});ae.displayName="CodeExplorer";export{ee as a,ae as b};
1
+ import {a}from'./chunk-CWFGLK4T.mjs';import*as l from'react';import {cva}from'class-variance-authority';import {Folder,File,FileImage,FileText,FileCode,FolderOpen,ChevronDown,ChevronRight,Search,X}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Button}from'@hanzo/ui/button';import {Input}from'@hanzo/ui/input';import {ScrollArea}from'@hanzo/ui/scroll-area';import {jsxs,jsx}from'react/jsx-runtime';var ee=cva("relative flex flex-col overflow-hidden rounded-lg border bg-background",{variants:{size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{size:"default"}}),te=a((o,d=false)=>{if(d)return Folder;switch(o.split(".").pop()?.toLowerCase()){case "js":case "jsx":case "ts":case "tsx":case "vue":case "svelte":return FileCode;case "json":case "xml":case "yaml":case "yml":case "toml":case "ini":return FileText;case "png":case "jpg":case "jpeg":case "gif":case "svg":case "webp":case "ico":return FileImage;default:return File}},"getFileIcon"),re=a(o=>{if(!o)return "";let d=["B","KB","MB","GB"],n=o,s=0;for(;n>=1024&&s<d.length-1;)n/=1024,s++;return `${n.toFixed(1)} ${d[s]}`},"formatFileSize"),se=a(o=>{if(!o)return "";let n=new Date().getTime()-o.getTime(),s=Math.floor(n/(1e3*60*60*24));return s===0?"Today":s===1?"Yesterday":s<7?`${s} days ago`:s<30?`${Math.floor(s/7)} weeks ago`:s<365?`${Math.floor(s/30)} months ago`:`${Math.floor(s/365)} years ago`},"formatModifiedDate"),ae=l.forwardRef(({className:o,size:d,files:n,onFileSelect:s,onFolderToggle:F,selectedFile:h,showSearch:j=true,showFileIcons:x=true,showFileSize:w=false,showModifiedDate:T=false,height:z="400px",defaultExpanded:D=[],searchPlaceholder:L="Search files...",emptyMessage:B="No files found",...I},P)=>{let[c,C]=l.useState(""),[E,V]=l.useState(new Set(D)),g=l.useCallback(e=>e.map(r=>({...r,isExpanded:E.has(r.id),children:r.children?g(r.children):void 0})),[E]),v=l.useCallback((e,r)=>{if(!r)return e;let a=[];for(let i of e)if(i.name.toLowerCase().includes(r.toLowerCase()))a.push(i);else if(i.type==="folder"&&i.children){let f=v(i.children,r);f.length>0&&a.push({...i,children:f,isExpanded:true});}return a},[]),N=l.useMemo(()=>{let e=g(n);return c?v(e,c):e},[n,c,g,v]),S=l.useCallback(e=>{V(r=>{let a=new Set(r);return a.has(e.id)?a.delete(e.id):a.add(e.id),a}),F?.(e);},[F]),k=l.useCallback((e,r=0)=>{let a=x?te(e.name,e.type==="folder"):null,i=e.type==="folder"&&e.isExpanded?FolderOpen:Folder,f=h===e.id||h===e.path;return jsxs("div",{children:[jsxs("div",{className:cn("flex items-center gap-2 px-2 py-1 hover:bg-muted/50 cursor-pointer transition-colors",f&&"bg-muted","rounded-sm"),style:{paddingLeft:`${r*16+8}px`},onClick:()=>{e.type==="folder"?S(e):s?.(e);},children:[e.type==="folder"&&jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:e.isExpanded?jsx(ChevronDown,{className:"h-3 w-3"}):jsx(ChevronRight,{className:"h-3 w-3"})}),x&&jsx("div",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:e.type==="folder"?jsx(i,{className:"h-4 w-4 text-blue-500"}):a?jsx(a,{className:"h-4 w-4 text-muted-foreground"}):null}),jsx("span",{className:"flex-1 truncate",children:e.name}),w&&e.type==="file"&&e.size&&jsx("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:re(e.size)}),T&&e.modified&&jsx("span",{className:"text-xs text-muted-foreground flex-shrink-0",children:se(e.modified)})]}),e.type==="folder"&&e.isExpanded&&e.children&&jsx("div",{children:e.children.map(u=>k(u,r+1))})]},e.id)},[x,w,T,h,S,s]),A=a(()=>{C("");},"clearSearch");return jsxs("div",{ref:P,className:cn(ee({size:d}),o),style:{height:z},...I,children:[j&&jsx("div",{className:"flex items-center gap-2 border-b px-4 py-2",children:jsxs("div",{className:"relative flex-1",children:[jsx(Search,{className:"absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsx(Input,{value:c,onChange:e=>C(e.target.value),placeholder:L,className:"pl-8 pr-8 h-8"}),c&&jsx(Button,{variant:"ghost",size:"sm",onClick:A,className:"absolute right-1 top-1/2 transform -translate-y-1/2 h-6 w-6 p-0",children:jsx(X,{className:"h-3 w-3"})})]})}),jsx(ScrollArea,{className:"flex-1",children:jsx("div",{className:"p-2",children:N.length===0?jsx("div",{className:"flex items-center justify-center h-24 text-muted-foreground",children:c?`No files match "${c}"`:B}):jsx("div",{className:"space-y-0.5",children:N.map(e=>k(e,0))})})}),jsxs("div",{className:"border-t px-4 py-2 text-xs text-muted-foreground",children:[(()=>{let e=a(f=>{let u=0,y=0;for(let b of f)if(b.type==="file")u++;else if(y++,b.children){let R=e(b.children);u+=R.files,y+=R.folders;}return {files:u,folders:y}},"countFiles"),{files:r,folders:a$1}=e(N),i=[];return r>0&&i.push(`${r} file${r===1?"":"s"}`),a$1>0&&i.push(`${a$1} folder${a$1===1?"":"s"}`),i.join(", ")||"Empty"})(),c&&jsx("span",{children:" (filtered)"})]})]})});ae.displayName="CodeExplorer";export{ee as a,ae as b};
@@ -0,0 +1 @@
1
+ 'use strict';var d=Object.defineProperty;var e=(b,a)=>d(b,"name",{value:a,configurable:true});var f=(b,a)=>{for(var c in a)d(b,c,{get:a[c],enumerable:true});};exports.a=e;exports.b=f;
@@ -1 +1 @@
1
- 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function x({positions:d,onPositionClick:a}){let c=chunkEI7MMDWY_js.a(e=>e.split(":")[1]||e,"getTickerFromSymbol");return d.length===0?jsxRuntime.jsx("div",{className:"p-4 text-center py-8 text-white/40",children:jsxRuntime.jsx("p",{className:"text-sm",children:"No open positions"})}):jsxRuntime.jsx("div",{className:"p-4 space-y-2",children:d.map(e=>{let s=(e.currentPrice-e.avgPrice)*e.shares,v=(e.currentPrice-e.avgPrice)/e.avgPrice*100,n=e.currentPrice*e.shares;return jsxRuntime.jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${a?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>a?.(e),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-2",children:[jsxRuntime.jsx("div",{className:"font-semibold text-white",children:c(e.symbol)}),jsxRuntime.jsxs("div",{className:`flex items-center gap-1 text-sm ${s>=0?"text-success":"text-danger"}`,children:[s>=0?jsxRuntime.jsx(lucideReact.TrendingUp,{size:14}):jsxRuntime.jsx(lucideReact.TrendingDown,{size:14}),s>=0?"+":"",v.toFixed(2),"%"]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Shares"}),jsxRuntime.jsx("div",{className:"text-white font-medium",children:e.shares})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Avg Price"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",e.avgPrice.toFixed(2)]})]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs mt-2 pt-2 border-t border-white/10",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Current Price"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",e.currentPrice.toFixed(2)]})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Total Value"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",n.toFixed(2)]})]})]}),jsxRuntime.jsx("div",{className:"mt-2 pt-2 border-t border-white/10",children:jsxRuntime.jsxs("div",{className:"flex justify-between items-center text-xs",children:[jsxRuntime.jsx("span",{className:"text-white/60",children:"P&L"}),jsxRuntime.jsxs("span",{className:`font-semibold ${s>=0?"text-success":"text-danger"}`,children:[s>=0?"+":"","$",s.toFixed(2)]})]})})]},e.symbol)})})}chunkEI7MMDWY_js.a(x,"PositionsList");exports.a=x;
1
+ 'use strict';var chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function x({positions:d,onPositionClick:a}){let c=chunkXUSV3KOD_js.a(e=>e.split(":")[1]||e,"getTickerFromSymbol");return d.length===0?jsxRuntime.jsx("div",{className:"p-4 text-center py-8 text-white/40",children:jsxRuntime.jsx("p",{className:"text-sm",children:"No open positions"})}):jsxRuntime.jsx("div",{className:"p-4 space-y-2",children:d.map(e=>{let s=(e.currentPrice-e.avgPrice)*e.shares,v=(e.currentPrice-e.avgPrice)/e.avgPrice*100,n=e.currentPrice*e.shares;return jsxRuntime.jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${a?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>a?.(e),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-2",children:[jsxRuntime.jsx("div",{className:"font-semibold text-white",children:c(e.symbol)}),jsxRuntime.jsxs("div",{className:`flex items-center gap-1 text-sm ${s>=0?"text-success":"text-danger"}`,children:[s>=0?jsxRuntime.jsx(lucideReact.TrendingUp,{size:14}):jsxRuntime.jsx(lucideReact.TrendingDown,{size:14}),s>=0?"+":"",v.toFixed(2),"%"]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Shares"}),jsxRuntime.jsx("div",{className:"text-white font-medium",children:e.shares})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Avg Price"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",e.avgPrice.toFixed(2)]})]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs mt-2 pt-2 border-t border-white/10",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Current Price"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",e.currentPrice.toFixed(2)]})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Total Value"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",n.toFixed(2)]})]})]}),jsxRuntime.jsx("div",{className:"mt-2 pt-2 border-t border-white/10",children:jsxRuntime.jsxs("div",{className:"flex justify-between items-center text-xs",children:[jsxRuntime.jsx("span",{className:"text-white/60",children:"P&L"}),jsxRuntime.jsxs("span",{className:`font-semibold ${s>=0?"text-success":"text-danger"}`,children:[s>=0?"+":"","$",s.toFixed(2)]})]})})]},e.symbol)})})}chunkXUSV3KOD_js.a(x,"PositionsList");exports.a=x;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkYZFRWYNS_js=require('./chunk-YZFRWYNS.js'),chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),jsxRuntime=require('react/jsx-runtime');function n({className:o,...r}){return jsxRuntime.jsx("div",{className:chunkYZFRWYNS_js.a("bg-bg-secondary animate-pulse rounded-md",o),...r})}chunkXUSV3KOD_js.a(n,"Skeleton");var d=n;exports.a=n;exports.b=d;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkYZFRWYNS_js=require('./chunk-YZFRWYNS.js'),chunkXUSV3KOD_js=require('./chunk-XUSV3KOD.js'),r=require('@radix-ui/react-scroll-area'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var r__namespace=/*#__PURE__*/_interopNamespace(r);var S=chunkXUSV3KOD_js.a(({className:a,children:l,ref:i,...m})=>jsxRuntime.jsxs(r__namespace.Root,{className:chunkYZFRWYNS_js.a("relative overflow-hidden",a),...m,children:[jsxRuntime.jsx(r__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",ref:i,children:l}),jsxRuntime.jsx(c,{}),jsxRuntime.jsx(r__namespace.Corner,{})]}),"ScrollArea");S.displayName=r__namespace.Root.displayName;var c=chunkXUSV3KOD_js.a(({className:a,orientation:l="vertical",...i})=>jsxRuntime.jsx(r__namespace.ScrollAreaScrollbar,{className:chunkYZFRWYNS_js.a("flex touch-none transition-colors select-none",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",l==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",a),orientation:l,...i,children:jsxRuntime.jsx(r__namespace.ScrollAreaThumb,{className:chunkYZFRWYNS_js.a("relative rounded-full bg-gray-300",l==="vertical"&&"flex-1")})}),"ScrollBar");c.displayName=r__namespace.ScrollAreaScrollbar.displayName;exports.a=S;exports.b=c;