@hanzo/ui 5.3.7 → 5.3.9

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 (437) 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 -1
  22. package/dist/animation/animated-background.mjs +1 -1
  23. package/dist/animation/animated-beam.js +1 -1
  24. package/dist/animation/animated-beam.mjs +1 -1
  25. package/dist/animation/animated-cursor.js +1 -1
  26. package/dist/animation/animated-cursor.mjs +1 -1
  27. package/dist/animation/animated-icon.js +2 -1
  28. package/dist/animation/animated-icon.mjs +2 -1
  29. package/dist/animation/animated-list.js +1 -1
  30. package/dist/animation/animated-list.mjs +1 -1
  31. package/dist/animation/animated-number.js +1 -1
  32. package/dist/animation/animated-number.mjs +1 -1
  33. package/dist/animation/animated-testimonials.js +1 -1
  34. package/dist/animation/animated-testimonials.mjs +1 -1
  35. package/dist/animation/animated-tooltip.js +1 -1
  36. package/dist/animation/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 +2 -1
  42. package/dist/animation/index.mjs +2 -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 +2 -2
  48. package/dist/blocks/index.mjs +2 -2
  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/code/block.js +2 -1
  58. package/dist/code/block.mjs +2 -1
  59. package/dist/code/compare.js +6 -1
  60. package/dist/code/compare.mjs +6 -1
  61. package/dist/code/diff.js +12 -1
  62. package/dist/code/diff.mjs +12 -1
  63. package/dist/code/editor.js +1 -1
  64. package/dist/code/editor.mjs +1 -1
  65. package/dist/code/explorer.js +1 -1
  66. package/dist/code/explorer.mjs +1 -1
  67. package/dist/code/index.js +62 -1
  68. package/dist/code/index.mjs +62 -1
  69. package/dist/code/preview.js +42 -1
  70. package/dist/code/preview.mjs +42 -1
  71. package/dist/code/snippet.js +2 -1
  72. package/dist/code/snippet.mjs +2 -1
  73. package/dist/code/tabs.js +1 -1
  74. package/dist/code/tabs.mjs +1 -1
  75. package/dist/code/terminal.js +3 -1
  76. package/dist/code/terminal.mjs +3 -1
  77. package/dist/collapsible.js +1 -1
  78. package/dist/collapsible.mjs +1 -1
  79. package/dist/command.js +1 -1
  80. package/dist/command.mjs +1 -1
  81. package/dist/context-menu.js +1 -1
  82. package/dist/context-menu.mjs +1 -1
  83. package/dist/dialog.js +1 -1
  84. package/dist/dialog.mjs +1 -1
  85. package/dist/dock/basic.js +1 -1
  86. package/dist/dock/basic.mjs +1 -1
  87. package/dist/dock/index.js +1 -1
  88. package/dist/dock/index.mjs +1 -1
  89. package/dist/dock/limelight-nav.js +1 -1
  90. package/dist/dock/limelight-nav.mjs +1 -1
  91. package/dist/dock/macos.js +1 -1
  92. package/dist/dock/macos.mjs +1 -1
  93. package/dist/dock/menu.js +1 -1
  94. package/dist/dock/menu.mjs +1 -1
  95. package/dist/dock/message.js +1 -1
  96. package/dist/dock/message.mjs +1 -1
  97. package/dist/drawer.js +1 -1
  98. package/dist/drawer.mjs +1 -1
  99. package/dist/dropdown-menu.js +1 -1
  100. package/dist/dropdown-menu.mjs +1 -1
  101. package/dist/finance/AdvancedChart.js +2 -1
  102. package/dist/finance/AdvancedChart.mjs +2 -1
  103. package/dist/finance/CompanyProfile.js +2 -1
  104. package/dist/finance/CompanyProfile.mjs +2 -1
  105. package/dist/finance/CryptoScreener.js +2 -1
  106. package/dist/finance/CryptoScreener.mjs +2 -1
  107. package/dist/finance/Financials.js +2 -1
  108. package/dist/finance/Financials.mjs +2 -1
  109. package/dist/finance/ForexScreener.js +2 -1
  110. package/dist/finance/ForexScreener.mjs +2 -1
  111. package/dist/finance/MarketOverview.js +2 -1
  112. package/dist/finance/MarketOverview.mjs +2 -1
  113. package/dist/finance/NewsTimeline.js +2 -1
  114. package/dist/finance/NewsTimeline.mjs +2 -1
  115. package/dist/finance/OrderEntry.js +1 -1
  116. package/dist/finance/OrderEntry.mjs +1 -1
  117. package/dist/finance/OrdersHistory.js +1 -1
  118. package/dist/finance/OrdersHistory.mjs +1 -1
  119. package/dist/finance/PositionsList.js +1 -1
  120. package/dist/finance/PositionsList.mjs +1 -1
  121. package/dist/finance/StockScreener.js +2 -1
  122. package/dist/finance/StockScreener.mjs +2 -1
  123. package/dist/finance/SymbolInfo.js +2 -1
  124. package/dist/finance/SymbolInfo.mjs +2 -1
  125. package/dist/finance/TechnicalAnalysis.js +2 -1
  126. package/dist/finance/TechnicalAnalysis.mjs +2 -1
  127. package/dist/finance/TickerTape.js +2 -1
  128. package/dist/finance/TickerTape.mjs +2 -1
  129. package/dist/finance/TradingPanel.js +1 -1
  130. package/dist/finance/TradingPanel.mjs +1 -1
  131. package/dist/finance/index.js +2 -1
  132. package/dist/finance/index.mjs +2 -1
  133. package/dist/form/index.js +1 -1
  134. package/dist/form/index.mjs +1 -1
  135. package/dist/form.js +1 -1
  136. package/dist/form.mjs +1 -1
  137. package/dist/hover-card.js +1 -1
  138. package/dist/hover-card.mjs +1 -1
  139. package/dist/index.js +1 -1
  140. package/dist/index.mjs +1 -1
  141. package/dist/input-otp.js +1 -1
  142. package/dist/input-otp.mjs +1 -1
  143. package/dist/lib/utils.js +1 -1
  144. package/dist/lib/utils.mjs +1 -1
  145. package/dist/navigation/index.js +1 -1
  146. package/dist/navigation/index.mjs +1 -1
  147. package/dist/navigation-menu.js +1 -1
  148. package/dist/navigation-menu.mjs +1 -1
  149. package/dist/pattern/grid-pattern.js +10 -1
  150. package/dist/pattern/grid-pattern.mjs +10 -1
  151. package/dist/pattern/index.js +10 -1
  152. package/dist/pattern/index.mjs +10 -1
  153. package/dist/popover.js +1 -1
  154. package/dist/popover.mjs +1 -1
  155. package/dist/primitives/index.js +1 -1
  156. package/dist/primitives/index.mjs +1 -1
  157. package/dist/primitives-export.js +1 -1
  158. package/dist/primitives-export.mjs +1 -1
  159. package/dist/progress.js +1 -1
  160. package/dist/progress.mjs +1 -1
  161. package/dist/project/gantt.js +1 -1
  162. package/dist/project/gantt.mjs +1 -1
  163. package/dist/project/index.js +1 -1
  164. package/dist/project/index.mjs +1 -1
  165. package/dist/project/kanban.js +1 -1
  166. package/dist/project/kanban.mjs +1 -1
  167. package/dist/project/list.js +1 -1
  168. package/dist/project/list.mjs +1 -1
  169. package/dist/radio-group.js +1 -1
  170. package/dist/radio-group.mjs +1 -1
  171. package/dist/resizable.js +1 -1
  172. package/dist/resizable.mjs +1 -1
  173. package/dist/scroll-area.js +1 -1
  174. package/dist/scroll-area.mjs +1 -1
  175. package/dist/select.js +1 -1
  176. package/dist/select.mjs +1 -1
  177. package/dist/separator.js +1 -1
  178. package/dist/separator.mjs +1 -1
  179. package/dist/sheet.js +1 -1
  180. package/dist/sheet.mjs +1 -1
  181. package/dist/skeleton.js +1 -1
  182. package/dist/skeleton.mjs +1 -1
  183. package/dist/slider.js +1 -1
  184. package/dist/slider.mjs +1 -1
  185. package/dist/sonner.js +1 -1
  186. package/dist/sonner.mjs +1 -1
  187. package/dist/switch.js +1 -1
  188. package/dist/switch.mjs +1 -1
  189. package/dist/table.js +1 -1
  190. package/dist/table.mjs +1 -1
  191. package/dist/tabs.js +1 -1
  192. package/dist/tabs.mjs +1 -1
  193. package/dist/tailwind/index.js +1 -1
  194. package/dist/tailwind/index.mjs +1 -1
  195. package/dist/textarea.js +1 -1
  196. package/dist/textarea.mjs +1 -1
  197. package/dist/toggle-group.js +1 -1
  198. package/dist/toggle-group.mjs +1 -1
  199. package/dist/toggle.js +1 -1
  200. package/dist/toggle.mjs +1 -1
  201. package/dist/tooltip.js +1 -1
  202. package/dist/tooltip.mjs +1 -1
  203. package/dist/types/index.js +1 -1
  204. package/dist/types/index.mjs +1 -1
  205. package/dist/ui/announcement.js +1 -1
  206. package/dist/ui/announcement.mjs +1 -1
  207. package/dist/ui/avatar-group.js +1 -1
  208. package/dist/ui/avatar-group.mjs +1 -1
  209. package/dist/ui/banner.js +1 -1
  210. package/dist/ui/banner.mjs +1 -1
  211. package/dist/ui/cursor.js +1 -1
  212. package/dist/ui/cursor.mjs +1 -1
  213. package/dist/ui/index.js +1 -1
  214. package/dist/ui/index.mjs +1 -1
  215. package/dist/ui/marquee.js +1 -1
  216. package/dist/ui/marquee.mjs +1 -1
  217. package/dist/ui/pill.js +1 -1
  218. package/dist/ui/pill.mjs +1 -1
  219. package/dist/ui/spinner.js +1 -1
  220. package/dist/ui/spinner.mjs +1 -1
  221. package/dist/ui/tags.js +1 -1
  222. package/dist/ui/tags.mjs +1 -1
  223. package/dist/ui/ticker.js +1 -1
  224. package/dist/ui/ticker.mjs +1 -1
  225. package/dist/util/index.js +1 -1
  226. package/dist/util/index.mjs +1 -1
  227. package/package.json +1 -1
  228. package/dist/chunk-2B7NONPA.mjs +0 -1
  229. package/dist/chunk-2G2TUOYL.mjs +0 -1
  230. package/dist/chunk-2NRIIJQX.mjs +0 -1
  231. package/dist/chunk-2QQUT6FO.js +0 -1
  232. package/dist/chunk-2WJA3HSQ.mjs +0 -1
  233. package/dist/chunk-37TVHMP2.mjs +0 -1
  234. package/dist/chunk-3COMMLYS.js +0 -1
  235. package/dist/chunk-3JXTWYX4.mjs +0 -1
  236. package/dist/chunk-3LHI3PX3.js +0 -1
  237. package/dist/chunk-3MGIZWAB.mjs +0 -1
  238. package/dist/chunk-3RI2CAUD.mjs +0 -1
  239. package/dist/chunk-3SCWILJG.mjs +0 -1
  240. package/dist/chunk-3YL43AE4.js +0 -1
  241. package/dist/chunk-4CJ44NSE.js +0 -1
  242. package/dist/chunk-4Q7ZSPY5.mjs +0 -1
  243. package/dist/chunk-4TW4U2UN.js +0 -1
  244. package/dist/chunk-4V3ZHFMN.js +0 -1
  245. package/dist/chunk-4YMLAU5Z.js +0 -1
  246. package/dist/chunk-543CBJCW.mjs +0 -1
  247. package/dist/chunk-5OFYCUOP.mjs +0 -1
  248. package/dist/chunk-5WJCKQNU.mjs +0 -2
  249. package/dist/chunk-5XGQGWZM.js +0 -1
  250. package/dist/chunk-63HNMH7C.js +0 -1
  251. package/dist/chunk-675QWDLU.mjs +0 -1
  252. package/dist/chunk-6JORQMRC.mjs +0 -1
  253. package/dist/chunk-6T7CYRG7.js +0 -1
  254. package/dist/chunk-6ZY3MBIT.js +0 -3
  255. package/dist/chunk-72TOQ4DM.mjs +0 -1
  256. package/dist/chunk-74JIFEFB.mjs +0 -1
  257. package/dist/chunk-7B5FD4EX.mjs +0 -1
  258. package/dist/chunk-7QB7ZQ7S.js +0 -1
  259. package/dist/chunk-7SGMZA6O.mjs +0 -1
  260. package/dist/chunk-7SP7DCJD.js +0 -2
  261. package/dist/chunk-7SZPHHBV.mjs +0 -1
  262. package/dist/chunk-A47N7TW2.mjs +0 -2
  263. package/dist/chunk-AABD5QO3.js +0 -1
  264. package/dist/chunk-AAEV2ONV.mjs +0 -1
  265. package/dist/chunk-AB5DY56M.mjs +0 -1
  266. package/dist/chunk-AKQGA7BP.mjs +0 -1
  267. package/dist/chunk-AKV7ZDJN.mjs +0 -1
  268. package/dist/chunk-AQFMZ53B.js +0 -1
  269. package/dist/chunk-AQYYHBXT.js +0 -1
  270. package/dist/chunk-ATNZNQV7.mjs +0 -2
  271. package/dist/chunk-AVI3IRMQ.mjs +0 -1
  272. package/dist/chunk-B36534P3.js +0 -1
  273. package/dist/chunk-B5SWQNYJ.mjs +0 -1
  274. package/dist/chunk-B5YYUUXW.mjs +0 -1
  275. package/dist/chunk-BALF4M3M.mjs +0 -1
  276. package/dist/chunk-BBTCLHXF.js +0 -2
  277. package/dist/chunk-BKKW66AM.mjs +0 -1
  278. package/dist/chunk-BKOJG4VJ.mjs +0 -2
  279. package/dist/chunk-BSO3JZ7S.js +0 -1
  280. package/dist/chunk-BTHDX6LM.js +0 -1
  281. package/dist/chunk-BX5NPSJL.js +0 -1
  282. package/dist/chunk-C64EW4QE.mjs +0 -1
  283. package/dist/chunk-C6DDKSBN.js +0 -2
  284. package/dist/chunk-CH2T5MI4.js +0 -1
  285. package/dist/chunk-CHQFVVZG.mjs +0 -2
  286. package/dist/chunk-CVLDBF72.js +0 -1
  287. package/dist/chunk-CWFGLK4T.mjs +0 -1
  288. package/dist/chunk-CY75DPD4.mjs +0 -1
  289. package/dist/chunk-D62ZOURF.js +0 -1
  290. package/dist/chunk-D6W5YYHP.js +0 -1
  291. package/dist/chunk-DAYNCC5Z.mjs +0 -3
  292. package/dist/chunk-DEQAYMUY.mjs +0 -1
  293. package/dist/chunk-DHN3REDJ.js +0 -1
  294. package/dist/chunk-DKL2FM7J.mjs +0 -1
  295. package/dist/chunk-DNHCQ446.js +0 -1
  296. package/dist/chunk-DRLJ6Z7Q.js +0 -1
  297. package/dist/chunk-DVA7HROB.js +0 -1
  298. package/dist/chunk-DX7WWVJP.mjs +0 -12
  299. package/dist/chunk-DYF5HRXR.mjs +0 -1
  300. package/dist/chunk-E45AM32Q.js +0 -1
  301. package/dist/chunk-EJA2AU5X.js +0 -1
  302. package/dist/chunk-ELR6GOUX.mjs +0 -1
  303. package/dist/chunk-ENDXD5HO.js +0 -1
  304. package/dist/chunk-ER3ALPBZ.js +0 -1
  305. package/dist/chunk-F3D72E4E.js +0 -1
  306. package/dist/chunk-F6AIQXTW.mjs +0 -1
  307. package/dist/chunk-FCHJPQ73.mjs +0 -1
  308. package/dist/chunk-FE2O6776.js +0 -1
  309. package/dist/chunk-FFCMERSP.js +0 -1
  310. package/dist/chunk-FLC52TR6.js +0 -1
  311. package/dist/chunk-FLZRGQ3O.mjs +0 -1
  312. package/dist/chunk-FOTLPQNB.js +0 -1
  313. package/dist/chunk-FZWBG7UV.mjs +0 -1
  314. package/dist/chunk-G2LRED4X.js +0 -1
  315. package/dist/chunk-G2O6JIRY.mjs +0 -1
  316. package/dist/chunk-G62CSYX2.js +0 -1
  317. package/dist/chunk-G7QRK2WL.mjs +0 -1
  318. package/dist/chunk-GCZQ2LS2.js +0 -10
  319. package/dist/chunk-GFWDGZO7.mjs +0 -1
  320. package/dist/chunk-GH56HZXN.mjs +0 -42
  321. package/dist/chunk-GIKQMGEY.mjs +0 -1
  322. package/dist/chunk-GJEV6LDG.mjs +0 -2
  323. package/dist/chunk-GK7TQN2Y.mjs +0 -2
  324. package/dist/chunk-GRGR3K4M.mjs +0 -1
  325. package/dist/chunk-GZCOKOS6.js +0 -2
  326. package/dist/chunk-H5T5EPQU.mjs +0 -1
  327. package/dist/chunk-H7ZFQ43F.mjs +0 -2
  328. package/dist/chunk-HAMILVTN.mjs +0 -1
  329. package/dist/chunk-HAYVC5RR.js +0 -1
  330. package/dist/chunk-HL4KRRJB.mjs +0 -1
  331. package/dist/chunk-HLJAWNJK.js +0 -1
  332. package/dist/chunk-ILMRC36I.js +0 -1
  333. package/dist/chunk-IQEZ2NU7.js +0 -2
  334. package/dist/chunk-ISSZRFPX.js +0 -2
  335. package/dist/chunk-JAVQTNQQ.js +0 -1
  336. package/dist/chunk-JB2D6UKV.js +0 -1
  337. package/dist/chunk-JFPLY6KM.js +0 -1
  338. package/dist/chunk-JOKSCCHB.js +0 -1
  339. package/dist/chunk-JOQWSZRJ.mjs +0 -1
  340. package/dist/chunk-JPGIJFW5.js +0 -1
  341. package/dist/chunk-JSGFZR4R.js +0 -2
  342. package/dist/chunk-JWBQUHSX.mjs +0 -1
  343. package/dist/chunk-JYLGS2OX.mjs +0 -1
  344. package/dist/chunk-K7YTUP2D.js +0 -1
  345. package/dist/chunk-KA5C2ZIG.js +0 -1
  346. package/dist/chunk-KDE3N3L6.mjs +0 -1
  347. package/dist/chunk-KOAG4CSB.js +0 -1
  348. package/dist/chunk-KX4C4YC2.js +0 -1
  349. package/dist/chunk-L3LBHAK5.js +0 -2
  350. package/dist/chunk-L4IEIO4B.js +0 -1
  351. package/dist/chunk-LADFCKQD.mjs +0 -1
  352. package/dist/chunk-LDQCX2XP.mjs +0 -1
  353. package/dist/chunk-LFWWUVJX.js +0 -1
  354. package/dist/chunk-LHKPSY4L.js +0 -1
  355. package/dist/chunk-LO46SH6E.mjs +0 -1
  356. package/dist/chunk-LPZWN5DR.js +0 -1
  357. package/dist/chunk-LSWZ5XAN.mjs +0 -1
  358. package/dist/chunk-LWQTRAJQ.js +0 -1
  359. package/dist/chunk-M3BGNQQL.js +0 -1
  360. package/dist/chunk-M6TWUBHE.mjs +0 -1
  361. package/dist/chunk-NCEQVAW6.js +0 -1
  362. package/dist/chunk-NCPDG735.js +0 -1
  363. package/dist/chunk-NGPIX3K3.mjs +0 -1
  364. package/dist/chunk-NH6GXQGY.js +0 -1
  365. package/dist/chunk-NIJRO4XT.mjs +0 -1
  366. package/dist/chunk-NJF3RXSG.js +0 -1
  367. package/dist/chunk-NO5HGITF.js +0 -42
  368. package/dist/chunk-NZNYBJNF.mjs +0 -2
  369. package/dist/chunk-O5PW6EK3.js +0 -2
  370. package/dist/chunk-O6FV6MCF.js +0 -1
  371. package/dist/chunk-OC34KEWQ.mjs +0 -1
  372. package/dist/chunk-OCDDRG5O.mjs +0 -6
  373. package/dist/chunk-OCV63ER7.mjs +0 -2
  374. package/dist/chunk-ODLBKJ43.mjs +0 -1
  375. package/dist/chunk-OFSGDRF7.js +0 -1
  376. package/dist/chunk-OTEETXQN.mjs +0 -1
  377. package/dist/chunk-OUIQYPE7.js +0 -2
  378. package/dist/chunk-OVM7NM4B.mjs +0 -1
  379. package/dist/chunk-PCWXM2CW.js +0 -1
  380. package/dist/chunk-PDWGHI5P.mjs +0 -1
  381. package/dist/chunk-PKKSIZZP.js +0 -12
  382. package/dist/chunk-PO4JYM6P.js +0 -1
  383. package/dist/chunk-PP6VTZRY.mjs +0 -1
  384. package/dist/chunk-PWKHIIIX.mjs +0 -2
  385. package/dist/chunk-PYX2CWVB.mjs +0 -1
  386. package/dist/chunk-Q2ITEICA.js +0 -1
  387. package/dist/chunk-Q3VHBQ3B.mjs +0 -1
  388. package/dist/chunk-QCWXF6PM.mjs +0 -2
  389. package/dist/chunk-QIS2X5VM.js +0 -2
  390. package/dist/chunk-QKJMVZ7Q.mjs +0 -1
  391. package/dist/chunk-QUZIAJAR.js +0 -1
  392. package/dist/chunk-QVDGUDZV.js +0 -2
  393. package/dist/chunk-RG6TMPXT.mjs +0 -0
  394. package/dist/chunk-RIQZF4MD.js +0 -1
  395. package/dist/chunk-RNN6AHKF.js +0 -1
  396. package/dist/chunk-ROROVLVL.mjs +0 -2
  397. package/dist/chunk-RPOB4E3W.js +0 -1
  398. package/dist/chunk-SSCZEDKZ.mjs +0 -1
  399. package/dist/chunk-SVCCHDR3.js +0 -1
  400. package/dist/chunk-SXMUVC4D.mjs +0 -1
  401. package/dist/chunk-TGAUPMBC.js +0 -1
  402. package/dist/chunk-TGL6VBFN.js +0 -1
  403. package/dist/chunk-TNP7EGQ2.js +0 -1
  404. package/dist/chunk-TNRO5CZD.mjs +0 -1
  405. package/dist/chunk-TVPXSBXH.js +0 -1
  406. package/dist/chunk-U7CUKU4W.mjs +0 -1
  407. package/dist/chunk-UHDVCJC6.js +0 -1
  408. package/dist/chunk-UMYLUB72.js +0 -1
  409. package/dist/chunk-UTENKTJZ.mjs +0 -2
  410. package/dist/chunk-V2ROY52O.mjs +0 -1
  411. package/dist/chunk-V6JJ3J5H.js +0 -6
  412. package/dist/chunk-VEZEUPWM.js +0 -2
  413. package/dist/chunk-VLNUXNN6.mjs +0 -1
  414. package/dist/chunk-W4VZMLH5.mjs +0 -1
  415. package/dist/chunk-WHGMPLBG.mjs +0 -1
  416. package/dist/chunk-WK5DTWFH.mjs +0 -1
  417. package/dist/chunk-WNHSNXIT.mjs +0 -1
  418. package/dist/chunk-X3Y7POKQ.js +0 -1
  419. package/dist/chunk-X7RQ2Z7V.mjs +0 -1
  420. package/dist/chunk-XEL222AH.js +0 -2
  421. package/dist/chunk-XFK7RTKE.js +0 -1
  422. package/dist/chunk-XQ5PD6OG.mjs +0 -1
  423. package/dist/chunk-XSJZFX23.mjs +0 -1
  424. package/dist/chunk-XUSV3KOD.js +0 -1
  425. package/dist/chunk-XXFPKDCE.js +0 -1
  426. package/dist/chunk-XYYYZCEM.js +0 -1
  427. package/dist/chunk-Y5IP4FKL.js +0 -1
  428. package/dist/chunk-Y6ZF7DGV.mjs +0 -1
  429. package/dist/chunk-YBL5BPLL.js +0 -1
  430. package/dist/chunk-YGT4URRE.mjs +0 -1
  431. package/dist/chunk-YZFRWYNS.js +0 -1
  432. package/dist/chunk-ZB7NJBX4.mjs +0 -1
  433. package/dist/chunk-ZBFT2QPL.mjs +0 -1
  434. package/dist/chunk-ZDOIGP2L.js +0 -1
  435. package/dist/chunk-ZHYR5K4F.mjs +0 -1
  436. package/dist/chunk-ZSLVLXBF.mjs +0 -10
  437. package/dist/chunk-ZZTEYKC5.js +0 -1
@@ -1 +1 @@
1
- 'use strict';var chunkD62ZOURF_js=require('../chunk-D62ZOURF.js'),chunkFFCMERSP_js=require('../chunk-FFCMERSP.js'),chunkTVPXSBXH_js=require('../chunk-TVPXSBXH.js'),chunkX3Y7POKQ_js=require('../chunk-X3Y7POKQ.js'),chunkAQFMZ53B_js=require('../chunk-AQFMZ53B.js');require('../chunk-BTHDX6LM.js'),require('../chunk-3YL43AE4.js'),require('../chunk-FOTLPQNB.js'),require('../chunk-YZFRWYNS.js'),require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"LimelightNav",{enumerable:true,get:function(){return chunkD62ZOURF_js.a}});Object.defineProperty(exports,"MacDock",{enumerable:true,get:function(){return chunkFFCMERSP_js.a}});Object.defineProperty(exports,"MacDockItem",{enumerable:true,get:function(){return chunkFFCMERSP_js.b}});Object.defineProperty(exports,"MenuDock",{enumerable:true,get:function(){return chunkTVPXSBXH_js.a}});Object.defineProperty(exports,"MessageDock",{enumerable:true,get:function(){return chunkX3Y7POKQ_js.a}});Object.defineProperty(exports,"Dock",{enumerable:true,get:function(){return chunkAQFMZ53B_js.a}});Object.defineProperty(exports,"DockItem",{enumerable:true,get:function(){return chunkAQFMZ53B_js.b}});
1
+ 'use strict';var u=require('react'),framerMotion=require('framer-motion'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),lucideReact=require('lucide-react'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority');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 u__namespace=/*#__PURE__*/_interopNamespace(u);var ae=Object.defineProperty;var m=(s,o)=>ae(s,"name",{value:o,configurable:true});function i(...s){return tailwindMerge.twMerge(clsx.clsx(s))}m(i,"cn");var _=u__namespace.createContext({magnification:60,distance:140}),A=u__namespace.forwardRef(({className:s,children:o,position:r="bottom",magnification:e=60,distance:l=140},t)=>{let c={bottom:"bottom-0 left-1/2 -translate-x-1/2 flex-row",left:"left-0 top-1/2 -translate-y-1/2 flex-col",right:"right-0 top-1/2 -translate-y-1/2 flex-col"};return jsxRuntime.jsx(_.Provider,{value:{magnification:e,distance:l},children:jsxRuntime.jsx("div",{ref:t,className:i("fixed z-50 flex items-end gap-1 rounded-2xl border border-white/10 bg-black/10 p-2 backdrop-blur-xl","shadow-2xl shadow-black/20","before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:opacity-50",c[r],s),children:o})})});A.displayName="Dock";var F=u__namespace.forwardRef(({className:s,children:o,onClick:r,tooltip:e,magnification:l,distance:t},c)=>{let a=u__namespace.useRef(null),{magnification:f,distance:n}=u__namespace.useContext(_),d=l??f,b=t??n,[N,g]=u__namespace.useState(false),h=framerMotion.useMotionValue(1/0),P={mass:.1,stiffness:150,damping:12},I=framerMotion.useSpring(framerMotion.useTransform(h,[-b,0,b],[48,48+d,48]),P),ee=m(oe=>{if(!a.current)return;let X=a.current.getBoundingClientRect(),re=X.left+X.width/2;h.set(oe.clientX-re);},"handleMouseMove"),te=m(()=>{h.set(1/0),g(false);},"handleMouseLeave");return jsxRuntime.jsxs(framerMotion.motion.div,{className:"relative",onMouseMove:ee,onMouseLeave:te,onMouseEnter:()=>g(true),children:[e&&N&&jsxRuntime.jsxs(framerMotion.motion.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.95},transition:{duration:.15},className:"absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/80 px-2 py-1 text-xs text-white backdrop-blur-md",children:[e,jsxRuntime.jsx("div",{className:"absolute -bottom-1 left-1/2 h-2 w-2 -translate-x-1/2 rotate-45 bg-black/80"})]}),jsxRuntime.jsxs(framerMotion.motion.button,{ref:a,style:{width:I,height:I},whileTap:{scale:.9},onClick:r,className:i("relative flex items-center justify-center rounded-xl bg-white/10 backdrop-blur-md transition-colors","hover:bg-white/20","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50",s),children:[jsxRuntime.jsx(framerMotion.motion.div,{style:{width:I,height:I},className:"flex items-center justify-center",children:o}),jsxRuntime.jsx(framerMotion.motion.div,{className:"absolute inset-0 rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%)"}})]})]})});F.displayName="DockItem";var O=u__namespace.createContext({magnification:60,distance:140,mouseX:null}),U=u__namespace.forwardRef(({className:s,children:o,magnification:r=60,distance:e=140},l)=>{let t=framerMotion.useMotionValue(1/0);return jsxRuntime.jsx(O.Provider,{value:{magnification:r,distance:e,mouseX:t},children:jsxRuntime.jsx(framerMotion.motion.div,{ref:l,onMouseMove:c=>t.set(c.pageX),onMouseLeave:()=>t.set(1/0),className:i("mx-auto flex h-16 items-end gap-2 rounded-2xl border border-white/10 bg-black/10 px-3 pb-2 backdrop-blur-xl","shadow-2xl shadow-black/20","before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:opacity-50",s),children:o})})});U.displayName="Dock";var $=u__namespace.forwardRef(({className:s,children:o,onClick:r,tooltip:e},l)=>{let t=u__namespace.useRef(null),{magnification:c,distance:a,mouseX:f}=u__namespace.useContext(O),[n,d]=u__namespace.useState(false),b=framerMotion.useTransform(f,h=>{let P=t.current?.getBoundingClientRect()??{x:0,width:0};return h-P.x-P.width/2}),N=framerMotion.useTransform(b,[-a,0,a],[48,48+c,48]),g=framerMotion.useSpring(N,{mass:.1,stiffness:150,damping:12});return jsxRuntime.jsxs(framerMotion.motion.div,{className:"relative",onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),children:[e&&n&&jsxRuntime.jsxs(framerMotion.motion.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.95},transition:{duration:.15},className:"absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/80 px-2 py-1 text-xs text-white backdrop-blur-md",children:[e,jsxRuntime.jsx("div",{className:"absolute -bottom-1 left-1/2 h-2 w-2 -translate-x-1/2 rotate-45 bg-black/80"})]}),jsxRuntime.jsxs(framerMotion.motion.button,{ref:t,style:{width:g},whileTap:{scale:.95},onClick:r,className:i("aspect-square w-12 rounded-xl bg-white/10 backdrop-blur-md transition-colors","hover:bg-white/20","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50","relative overflow-hidden",s),children:[jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%)"}})]})]})});$.displayName="DockItem";var be=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),x=u__namespace.forwardRef(({className:s,variant:o,size:r,asChild:e=false,isLoading:l=false,children:t,...c},a)=>jsxRuntime.jsxs(e?reactSlot.Slot:"button",{className:i(be({variant:o,size:r,className:s})),ref:a,...c,children:[l?jsxRuntime.jsx(lucideReact.Loader2,{className:i("h-4 w-4 animate-spin",r!=="icon"&&"mr-2")}):null,l&&r==="icon"?null:t]}));x.displayName="Button";var xe=classVarianceAuthority.cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),E=u__namespace.forwardRef(({className:s,variant:o,...r},e)=>jsxRuntime.jsx("div",{ref:e,className:i(xe({variant:o}),s),...r}));E.displayName="Badge";var V=m(({className:s,type:o,startAdornment:r,endAdornment:e,hidePasswordToggle:l,ref:t,...c})=>{let a=u.useRef(null),f=u.useRef(null),n=u.useRef(null),[d,b]=u__namespace.useState(false),N=m(()=>{b(!d);},"togglePasswordVisibility"),g={};r&&(g.paddingLeft=`${(f?.current?.offsetWidth??0)+20}px`),e&&(g.paddingRight=`${(n?.current?.offsetWidth??0)+20}px`),u.useImperativeHandle(t,()=>a.current,[]),u.useEffect(()=>{c.autoFocus&&setTimeout(()=>{a?.current?.focus();},0);},[c.autoFocus]);let h=o==="password"&&d?"text":o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{className:i("h-input border-border-input bg-bg-secondary focus:border-border-input-focus disabled:bg-bg-input-disabled peer placeholder-shown:border-border-input text-text-default w-full rounded-lg border px-4 py-3 pt-8 text-sm font-medium placeholder-transparent outline outline-0 transition-all placeholder-shown:border focus:border focus:outline-0 disabled:border-0 disabled:text-gray-400",r&&"pl-[var(--custom-padding-left-input)]",e&&"pr-[var(--custom-padding-right-input)]",o==="password"&&"pr-[60px]",s),placeholder:" ",ref:a,spellCheck:false,style:g,type:h,...c}),r?jsxRuntime.jsx(E,{className:"peer/adornment adornment absolute top-[30px] left-4",ref:f,variant:"inputAdornment",children:r}):null,e&&typeof e=="string"?jsxRuntime.jsx(E,{className:"peer/adornment adornment absolute top-[30px] right-4",ref:n,variant:"inputAdornment",children:e}):null,e&&typeof e!="string"&&u__namespace.isValidElement(e)?u__namespace.cloneElement(e,{ref:n}):null,o==="password"&&!l&&jsxRuntime.jsx(x,{"aria-label":d?"Hide password":"Show password",className:"absolute top-3 right-3",onClick:N,size:"icon",type:"button",variant:"ghost",children:d?jsxRuntime.jsx(lucideReact.EyeOffIcon,{"aria-hidden":"true",className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.EyeIcon,{"aria-hidden":"true",className:"h-4 w-4"})})]})},"Input");V.displayName="Input";var G=u__namespace.forwardRef(({className:s,items:o=[],...r},e)=>{let[l,t]=u__namespace.useState(false),[c,a]=u__namespace.useState("");u__namespace.useEffect(()=>{let n=m(d=>{d.key==="k"&&(d.metaKey||d.ctrlKey)&&(d.preventDefault(),t(b=>!b));},"down");return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]);let f=o.filter(n=>n.label.toLowerCase().includes(c.toLowerCase()));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("nav",{ref:e,className:i("flex items-center gap-4",s),...r,children:[jsxRuntime.jsxs(x,{variant:"outline",onClick:()=>t(true),className:"relative w-64 justify-start",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4"}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:"Search..."}),jsxRuntime.jsxs("kbd",{className:"pointer-events-none absolute right-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",children:[jsxRuntime.jsx(lucideReact.Command,{className:"h-3 w-3"}),"K"]})]}),o.slice(0,4).map(n=>jsxRuntime.jsx("a",{href:n.href,className:"text-sm font-medium transition-colors hover:text-primary",children:n.label},n.href))]}),l&&jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",onClick:()=>t(false),children:jsxRuntime.jsxs("div",{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-card p-6 shadow-lg",onClick:n=>n.stopPropagation(),children:[jsxRuntime.jsx(V,{placeholder:"Search navigation...",value:c,onChange:n=>a(n.target.value),autoFocus:true,className:"mb-4"}),jsxRuntime.jsx("div",{className:"max-h-96 space-y-1 overflow-auto",children:f.map(n=>jsxRuntime.jsx("a",{href:n.href,className:"block rounded-md px-4 py-2 hover:bg-accent",onClick:()=>t(false),children:n.label},n.href))})]})})]})});G.displayName="LimelightNav";var J=u__namespace.forwardRef(({className:s,items:o,orientation:r="horizontal",...e},l)=>jsxRuntime.jsx("div",{ref:l,className:i("flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",r==="vertical"?"flex-col":"flex-row",s),...e,children:o.map((t,c)=>jsxRuntime.jsxs("button",{onClick:t.onClick,className:i("group relative flex items-center justify-center rounded-full p-3 transition-colors hover:bg-accent",t.active&&"bg-primary text-primary-foreground hover:bg-primary/90"),title:t.label,children:[t.icon,jsxRuntime.jsx("span",{className:"sr-only",children:t.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:t.label})]},c))}));J.displayName="MenuDock";var Z=u__namespace.forwardRef(({className:s,messages:o,onClose:r,position:e="bottom-right",...l},t)=>jsxRuntime.jsx("div",{ref:t,className:i("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"}[e],s),...l,children:o.map(a=>jsxRuntime.jsx("div",{className:i("min-w-[300px] rounded-lg border p-4 shadow-lg",a.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",a.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",a.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",a.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!a.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:a.title}),a.description&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:a.description})]}),r&&jsxRuntime.jsx(x,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>r(a.id),children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})},a.id))}));Z.displayName="MessageDock";exports.Dock=A;exports.DockItem=F;exports.LimelightNav=G;exports.MacDock=U;exports.MacDockItem=$;exports.MenuDock=J;exports.MessageDock=Z;
@@ -1 +1 @@
1
- export{a as LimelightNav}from'../chunk-DEQAYMUY.mjs';export{a as MacDock,b as MacDockItem}from'../chunk-BALF4M3M.mjs';export{a as MenuDock}from'../chunk-PP6VTZRY.mjs';export{a as MessageDock}from'../chunk-Q3VHBQ3B.mjs';export{a as Dock,b as DockItem}from'../chunk-ZBFT2QPL.mjs';import'../chunk-CY75DPD4.mjs';import'../chunk-KDE3N3L6.mjs';import'../chunk-AVI3IRMQ.mjs';import'../chunk-3RI2CAUD.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import*as u from'react';import {useRef,useImperativeHandle,useEffect}from'react';import {useMotionValue,useSpring,useTransform,motion}from'framer-motion';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Loader2,Search,Command,X,EyeOffIcon,EyeIcon}from'lucide-react';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';var ae=Object.defineProperty;var m=(s,o)=>ae(s,"name",{value:o,configurable:true});function i(...s){return twMerge(clsx(s))}m(i,"cn");var _=u.createContext({magnification:60,distance:140}),A=u.forwardRef(({className:s,children:o,position:r="bottom",magnification:e=60,distance:l=140},t)=>{let c={bottom:"bottom-0 left-1/2 -translate-x-1/2 flex-row",left:"left-0 top-1/2 -translate-y-1/2 flex-col",right:"right-0 top-1/2 -translate-y-1/2 flex-col"};return jsx(_.Provider,{value:{magnification:e,distance:l},children:jsx("div",{ref:t,className:i("fixed z-50 flex items-end gap-1 rounded-2xl border border-white/10 bg-black/10 p-2 backdrop-blur-xl","shadow-2xl shadow-black/20","before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:opacity-50",c[r],s),children:o})})});A.displayName="Dock";var F=u.forwardRef(({className:s,children:o,onClick:r,tooltip:e,magnification:l,distance:t},c)=>{let a=u.useRef(null),{magnification:f,distance:n}=u.useContext(_),d=l??f,b=t??n,[N,g]=u.useState(false),h=useMotionValue(1/0),P={mass:.1,stiffness:150,damping:12},I=useSpring(useTransform(h,[-b,0,b],[48,48+d,48]),P),ee=m(oe=>{if(!a.current)return;let X=a.current.getBoundingClientRect(),re=X.left+X.width/2;h.set(oe.clientX-re);},"handleMouseMove"),te=m(()=>{h.set(1/0),g(false);},"handleMouseLeave");return jsxs(motion.div,{className:"relative",onMouseMove:ee,onMouseLeave:te,onMouseEnter:()=>g(true),children:[e&&N&&jsxs(motion.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.95},transition:{duration:.15},className:"absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/80 px-2 py-1 text-xs text-white backdrop-blur-md",children:[e,jsx("div",{className:"absolute -bottom-1 left-1/2 h-2 w-2 -translate-x-1/2 rotate-45 bg-black/80"})]}),jsxs(motion.button,{ref:a,style:{width:I,height:I},whileTap:{scale:.9},onClick:r,className:i("relative flex items-center justify-center rounded-xl bg-white/10 backdrop-blur-md transition-colors","hover:bg-white/20","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50",s),children:[jsx(motion.div,{style:{width:I,height:I},className:"flex items-center justify-center",children:o}),jsx(motion.div,{className:"absolute inset-0 rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%)"}})]})]})});F.displayName="DockItem";var O=u.createContext({magnification:60,distance:140,mouseX:null}),U=u.forwardRef(({className:s,children:o,magnification:r=60,distance:e=140},l)=>{let t=useMotionValue(1/0);return jsx(O.Provider,{value:{magnification:r,distance:e,mouseX:t},children:jsx(motion.div,{ref:l,onMouseMove:c=>t.set(c.pageX),onMouseLeave:()=>t.set(1/0),className:i("mx-auto flex h-16 items-end gap-2 rounded-2xl border border-white/10 bg-black/10 px-3 pb-2 backdrop-blur-xl","shadow-2xl shadow-black/20","before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:opacity-50",s),children:o})})});U.displayName="Dock";var $=u.forwardRef(({className:s,children:o,onClick:r,tooltip:e},l)=>{let t=u.useRef(null),{magnification:c,distance:a,mouseX:f}=u.useContext(O),[n,d]=u.useState(false),b=useTransform(f,h=>{let P=t.current?.getBoundingClientRect()??{x:0,width:0};return h-P.x-P.width/2}),N=useTransform(b,[-a,0,a],[48,48+c,48]),g=useSpring(N,{mass:.1,stiffness:150,damping:12});return jsxs(motion.div,{className:"relative",onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),children:[e&&n&&jsxs(motion.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.95},transition:{duration:.15},className:"absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/80 px-2 py-1 text-xs text-white backdrop-blur-md",children:[e,jsx("div",{className:"absolute -bottom-1 left-1/2 h-2 w-2 -translate-x-1/2 rotate-45 bg-black/80"})]}),jsxs(motion.button,{ref:t,style:{width:g},whileTap:{scale:.95},onClick:r,className:i("aspect-square w-12 rounded-xl bg-white/10 backdrop-blur-md transition-colors","hover:bg-white/20","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50","relative overflow-hidden",s),children:[jsx("div",{className:"flex h-full w-full items-center justify-center",children:o}),jsx("div",{className:"pointer-events-none absolute inset-0 rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%)"}})]})]})});$.displayName="DockItem";var be=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),x=u.forwardRef(({className:s,variant:o,size:r,asChild:e=false,isLoading:l=false,children:t,...c},a)=>jsxs(e?Slot:"button",{className:i(be({variant:o,size:r,className:s})),ref:a,...c,children:[l?jsx(Loader2,{className:i("h-4 w-4 animate-spin",r!=="icon"&&"mr-2")}):null,l&&r==="icon"?null:t]}));x.displayName="Button";var xe=cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),E=u.forwardRef(({className:s,variant:o,...r},e)=>jsx("div",{ref:e,className:i(xe({variant:o}),s),...r}));E.displayName="Badge";var V=m(({className:s,type:o,startAdornment:r,endAdornment:e,hidePasswordToggle:l,ref:t,...c})=>{let a=useRef(null),f=useRef(null),n=useRef(null),[d,b]=u.useState(false),N=m(()=>{b(!d);},"togglePasswordVisibility"),g={};r&&(g.paddingLeft=`${(f?.current?.offsetWidth??0)+20}px`),e&&(g.paddingRight=`${(n?.current?.offsetWidth??0)+20}px`),useImperativeHandle(t,()=>a.current,[]),useEffect(()=>{c.autoFocus&&setTimeout(()=>{a?.current?.focus();},0);},[c.autoFocus]);let h=o==="password"&&d?"text":o;return jsxs(Fragment,{children:[jsx("input",{className:i("h-input border-border-input bg-bg-secondary focus:border-border-input-focus disabled:bg-bg-input-disabled peer placeholder-shown:border-border-input text-text-default w-full rounded-lg border px-4 py-3 pt-8 text-sm font-medium placeholder-transparent outline outline-0 transition-all placeholder-shown:border focus:border focus:outline-0 disabled:border-0 disabled:text-gray-400",r&&"pl-[var(--custom-padding-left-input)]",e&&"pr-[var(--custom-padding-right-input)]",o==="password"&&"pr-[60px]",s),placeholder:" ",ref:a,spellCheck:false,style:g,type:h,...c}),r?jsx(E,{className:"peer/adornment adornment absolute top-[30px] left-4",ref:f,variant:"inputAdornment",children:r}):null,e&&typeof e=="string"?jsx(E,{className:"peer/adornment adornment absolute top-[30px] right-4",ref:n,variant:"inputAdornment",children:e}):null,e&&typeof e!="string"&&u.isValidElement(e)?u.cloneElement(e,{ref:n}):null,o==="password"&&!l&&jsx(x,{"aria-label":d?"Hide password":"Show password",className:"absolute top-3 right-3",onClick:N,size:"icon",type:"button",variant:"ghost",children:d?jsx(EyeOffIcon,{"aria-hidden":"true",className:"h-4 w-4"}):jsx(EyeIcon,{"aria-hidden":"true",className:"h-4 w-4"})})]})},"Input");V.displayName="Input";var G=u.forwardRef(({className:s,items:o=[],...r},e)=>{let[l,t]=u.useState(false),[c,a]=u.useState("");u.useEffect(()=>{let n=m(d=>{d.key==="k"&&(d.metaKey||d.ctrlKey)&&(d.preventDefault(),t(b=>!b));},"down");return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[]);let f=o.filter(n=>n.label.toLowerCase().includes(c.toLowerCase()));return jsxs(Fragment,{children:[jsxs("nav",{ref:e,className:i("flex items-center gap-4",s),...r,children:[jsxs(x,{variant:"outline",onClick:()=>t(true),className:"relative w-64 justify-start",children:[jsx(Search,{className:"mr-2 h-4 w-4"}),jsx("span",{className:"text-muted-foreground",children:"Search..."}),jsxs("kbd",{className:"pointer-events-none absolute right-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",children:[jsx(Command,{className:"h-3 w-3"}),"K"]})]}),o.slice(0,4).map(n=>jsx("a",{href:n.href,className:"text-sm font-medium transition-colors hover:text-primary",children:n.label},n.href))]}),l&&jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",onClick:()=>t(false),children:jsxs("div",{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-card p-6 shadow-lg",onClick:n=>n.stopPropagation(),children:[jsx(V,{placeholder:"Search navigation...",value:c,onChange:n=>a(n.target.value),autoFocus:true,className:"mb-4"}),jsx("div",{className:"max-h-96 space-y-1 overflow-auto",children:f.map(n=>jsx("a",{href:n.href,className:"block rounded-md px-4 py-2 hover:bg-accent",onClick:()=>t(false),children:n.label},n.href))})]})})]})});G.displayName="LimelightNav";var J=u.forwardRef(({className:s,items:o,orientation:r="horizontal",...e},l)=>jsx("div",{ref:l,className:i("flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",r==="vertical"?"flex-col":"flex-row",s),...e,children:o.map((t,c)=>jsxs("button",{onClick:t.onClick,className:i("group relative flex items-center justify-center rounded-full p-3 transition-colors hover:bg-accent",t.active&&"bg-primary text-primary-foreground hover:bg-primary/90"),title:t.label,children:[t.icon,jsx("span",{className:"sr-only",children:t.label}),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:t.label})]},c))}));J.displayName="MenuDock";var Z=u.forwardRef(({className:s,messages:o,onClose:r,position:e="bottom-right",...l},t)=>jsx("div",{ref:t,className:i("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"}[e],s),...l,children:o.map(a=>jsx("div",{className:i("min-w-[300px] rounded-lg border p-4 shadow-lg",a.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",a.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",a.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",a.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!a.type&&"bg-background"),children:jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxs("div",{className:"flex-1",children:[jsx("h4",{className:"font-medium",children:a.title}),a.description&&jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:a.description})]}),r&&jsx(x,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>r(a.id),children:jsx(X,{className:"h-4 w-4"})})]})},a.id))}));Z.displayName="MessageDock";export{A as Dock,F as DockItem,G as LimelightNav,U as MacDock,$ as MacDockItem,J as MenuDock,Z as MessageDock};
@@ -1 +1 @@
1
- 'use strict';var chunkD62ZOURF_js=require('../chunk-D62ZOURF.js');require('../chunk-BTHDX6LM.js'),require('../chunk-3YL43AE4.js'),require('../chunk-FOTLPQNB.js'),require('../chunk-YZFRWYNS.js'),require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"LimelightNav",{enumerable:true,get:function(){return chunkD62ZOURF_js.a}});
1
+ 'use strict';var p=require('react'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),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 p__namespace=/*#__PURE__*/_interopNamespace(p);var C=Object.defineProperty;var c=(a,r)=>C(a,"name",{value:r,configurable:true});function s(...a){return tailwindMerge.twMerge(clsx.clsx(a))}c(s,"cn");var S=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),h=p__namespace.forwardRef(({className:a,variant:r,size:o,asChild:t=false,isLoading:f=false,children:i,...d},u)=>jsxRuntime.jsxs(t?reactSlot.Slot:"button",{className:s(S({variant:r,size:o,className:a})),ref:u,...d,children:[f?jsxRuntime.jsx(lucideReact.Loader2,{className:s("h-4 w-4 animate-spin",o!=="icon"&&"mr-2")}):null,f&&o==="icon"?null:i]}));h.displayName="Button";var z=classVarianceAuthority.cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),x=p__namespace.forwardRef(({className:a,variant:r,...o},t)=>jsxRuntime.jsx("div",{ref:t,className:s(z({variant:r}),a),...o}));x.displayName="Badge";var N=c(({className:a,type:r,startAdornment:o,endAdornment:t,hidePasswordToggle:f,ref:i,...d})=>{let u=p.useRef(null),b=p.useRef(null),e=p.useRef(null),[n,y]=p__namespace.useState(false),B=c(()=>{y(!n);},"togglePasswordVisibility"),w={};o&&(w.paddingLeft=`${(b?.current?.offsetWidth??0)+20}px`),t&&(w.paddingRight=`${(e?.current?.offsetWidth??0)+20}px`),p.useImperativeHandle(i,()=>u.current,[]),p.useEffect(()=>{d.autoFocus&&setTimeout(()=>{u?.current?.focus();},0);},[d.autoFocus]);let P=r==="password"&&n?"text":r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{className:s("h-input border-border-input bg-bg-secondary focus:border-border-input-focus disabled:bg-bg-input-disabled peer placeholder-shown:border-border-input text-text-default w-full rounded-lg border px-4 py-3 pt-8 text-sm font-medium placeholder-transparent outline outline-0 transition-all placeholder-shown:border focus:border focus:outline-0 disabled:border-0 disabled:text-gray-400",o&&"pl-[var(--custom-padding-left-input)]",t&&"pr-[var(--custom-padding-right-input)]",r==="password"&&"pr-[60px]",a),placeholder:" ",ref:u,spellCheck:false,style:w,type:P,...d}),o?jsxRuntime.jsx(x,{className:"peer/adornment adornment absolute top-[30px] left-4",ref:b,variant:"inputAdornment",children:o}):null,t&&typeof t=="string"?jsxRuntime.jsx(x,{className:"peer/adornment adornment absolute top-[30px] right-4",ref:e,variant:"inputAdornment",children:t}):null,t&&typeof t!="string"&&p__namespace.isValidElement(t)?p__namespace.cloneElement(t,{ref:e}):null,r==="password"&&!f&&jsxRuntime.jsx(h,{"aria-label":n?"Hide password":"Show password",className:"absolute top-3 right-3",onClick:B,size:"icon",type:"button",variant:"ghost",children:n?jsxRuntime.jsx(lucideReact.EyeOffIcon,{"aria-hidden":"true",className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.EyeIcon,{"aria-hidden":"true",className:"h-4 w-4"})})]})},"Input");N.displayName="Input";var X=p__namespace.forwardRef(({className:a,items:r=[],...o},t)=>{let[f,i]=p__namespace.useState(false),[d,u]=p__namespace.useState("");p__namespace.useEffect(()=>{let e=c(n=>{n.key==="k"&&(n.metaKey||n.ctrlKey)&&(n.preventDefault(),i(y=>!y));},"down");return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let b=r.filter(e=>e.label.toLowerCase().includes(d.toLowerCase()));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("nav",{ref:t,className:s("flex items-center gap-4",a),...o,children:[jsxRuntime.jsxs(h,{variant:"outline",onClick:()=>i(true),className:"relative w-64 justify-start",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4"}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:"Search..."}),jsxRuntime.jsxs("kbd",{className:"pointer-events-none absolute right-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",children:[jsxRuntime.jsx(lucideReact.Command,{className:"h-3 w-3"}),"K"]})]}),r.slice(0,4).map(e=>jsxRuntime.jsx("a",{href:e.href,className:"text-sm font-medium transition-colors hover:text-primary",children:e.label},e.href))]}),f&&jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",onClick:()=>i(false),children:jsxRuntime.jsxs("div",{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-card p-6 shadow-lg",onClick:e=>e.stopPropagation(),children:[jsxRuntime.jsx(N,{placeholder:"Search navigation...",value:d,onChange:e=>u(e.target.value),autoFocus:true,className:"mb-4"}),jsxRuntime.jsx("div",{className:"max-h-96 space-y-1 overflow-auto",children:b.map(e=>jsxRuntime.jsx("a",{href:e.href,className:"block rounded-md px-4 py-2 hover:bg-accent",onClick:()=>i(false),children:e.label},e.href))})]})})]})});X.displayName="LimelightNav";exports.LimelightNav=X;
@@ -1 +1 @@
1
- export{a as LimelightNav}from'../chunk-DEQAYMUY.mjs';import'../chunk-CY75DPD4.mjs';import'../chunk-KDE3N3L6.mjs';import'../chunk-AVI3IRMQ.mjs';import'../chunk-3RI2CAUD.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import*as p from'react';import {useRef,useImperativeHandle,useEffect}from'react';import {Loader2,Search,Command,EyeOffIcon,EyeIcon}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var C=Object.defineProperty;var c=(a,r)=>C(a,"name",{value:r,configurable:true});function s(...a){return twMerge(clsx(a))}c(s,"cn");var S=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),h=p.forwardRef(({className:a,variant:r,size:o,asChild:t=false,isLoading:f=false,children:i,...d},u)=>jsxs(t?Slot:"button",{className:s(S({variant:r,size:o,className:a})),ref:u,...d,children:[f?jsx(Loader2,{className:s("h-4 w-4 animate-spin",o!=="icon"&&"mr-2")}):null,f&&o==="icon"?null:i]}));h.displayName="Button";var z=cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),x=p.forwardRef(({className:a,variant:r,...o},t)=>jsx("div",{ref:t,className:s(z({variant:r}),a),...o}));x.displayName="Badge";var N=c(({className:a,type:r,startAdornment:o,endAdornment:t,hidePasswordToggle:f,ref:i,...d})=>{let u=useRef(null),b=useRef(null),e=useRef(null),[n,y]=p.useState(false),B=c(()=>{y(!n);},"togglePasswordVisibility"),w={};o&&(w.paddingLeft=`${(b?.current?.offsetWidth??0)+20}px`),t&&(w.paddingRight=`${(e?.current?.offsetWidth??0)+20}px`),useImperativeHandle(i,()=>u.current,[]),useEffect(()=>{d.autoFocus&&setTimeout(()=>{u?.current?.focus();},0);},[d.autoFocus]);let P=r==="password"&&n?"text":r;return jsxs(Fragment,{children:[jsx("input",{className:s("h-input border-border-input bg-bg-secondary focus:border-border-input-focus disabled:bg-bg-input-disabled peer placeholder-shown:border-border-input text-text-default w-full rounded-lg border px-4 py-3 pt-8 text-sm font-medium placeholder-transparent outline outline-0 transition-all placeholder-shown:border focus:border focus:outline-0 disabled:border-0 disabled:text-gray-400",o&&"pl-[var(--custom-padding-left-input)]",t&&"pr-[var(--custom-padding-right-input)]",r==="password"&&"pr-[60px]",a),placeholder:" ",ref:u,spellCheck:false,style:w,type:P,...d}),o?jsx(x,{className:"peer/adornment adornment absolute top-[30px] left-4",ref:b,variant:"inputAdornment",children:o}):null,t&&typeof t=="string"?jsx(x,{className:"peer/adornment adornment absolute top-[30px] right-4",ref:e,variant:"inputAdornment",children:t}):null,t&&typeof t!="string"&&p.isValidElement(t)?p.cloneElement(t,{ref:e}):null,r==="password"&&!f&&jsx(h,{"aria-label":n?"Hide password":"Show password",className:"absolute top-3 right-3",onClick:B,size:"icon",type:"button",variant:"ghost",children:n?jsx(EyeOffIcon,{"aria-hidden":"true",className:"h-4 w-4"}):jsx(EyeIcon,{"aria-hidden":"true",className:"h-4 w-4"})})]})},"Input");N.displayName="Input";var X=p.forwardRef(({className:a,items:r=[],...o},t)=>{let[f,i]=p.useState(false),[d,u]=p.useState("");p.useEffect(()=>{let e=c(n=>{n.key==="k"&&(n.metaKey||n.ctrlKey)&&(n.preventDefault(),i(y=>!y));},"down");return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let b=r.filter(e=>e.label.toLowerCase().includes(d.toLowerCase()));return jsxs(Fragment,{children:[jsxs("nav",{ref:t,className:s("flex items-center gap-4",a),...o,children:[jsxs(h,{variant:"outline",onClick:()=>i(true),className:"relative w-64 justify-start",children:[jsx(Search,{className:"mr-2 h-4 w-4"}),jsx("span",{className:"text-muted-foreground",children:"Search..."}),jsxs("kbd",{className:"pointer-events-none absolute right-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex",children:[jsx(Command,{className:"h-3 w-3"}),"K"]})]}),r.slice(0,4).map(e=>jsx("a",{href:e.href,className:"text-sm font-medium transition-colors hover:text-primary",children:e.label},e.href))]}),f&&jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",onClick:()=>i(false),children:jsxs("div",{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-lg border bg-card p-6 shadow-lg",onClick:e=>e.stopPropagation(),children:[jsx(N,{placeholder:"Search navigation...",value:d,onChange:e=>u(e.target.value),autoFocus:true,className:"mb-4"}),jsx("div",{className:"max-h-96 space-y-1 overflow-auto",children:b.map(e=>jsx("a",{href:e.href,className:"block rounded-md px-4 py-2 hover:bg-accent",onClick:()=>i(false),children:e.label},e.href))})]})})]})});X.displayName="LimelightNav";export{X as LimelightNav};
@@ -1 +1 @@
1
- 'use strict';var chunkFFCMERSP_js=require('../chunk-FFCMERSP.js');require('../chunk-YZFRWYNS.js'),require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"Dock",{enumerable:true,get:function(){return chunkFFCMERSP_js.a}});Object.defineProperty(exports,"DockItem",{enumerable:true,get:function(){return chunkFFCMERSP_js.b}});
1
+ 'use strict';var e=require('react'),framerMotion=require('framer-motion'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),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 e__namespace=/*#__PURE__*/_interopNamespace(e);var D=Object.defineProperty;var p=(t,n)=>D(t,"name",{value:n,configurable:true});function l(...t){return tailwindMerge.twMerge(clsx.clsx(t))}p(l,"cn");var v=e__namespace.createContext({magnification:60,distance:140,mouseX:null}),I=e__namespace.forwardRef(({className:t,children:n,magnification:s=60,distance:r=140},d)=>{let o=framerMotion.useMotionValue(1/0);return jsxRuntime.jsx(v.Provider,{value:{magnification:s,distance:r,mouseX:o},children:jsxRuntime.jsx(framerMotion.motion.div,{ref:d,onMouseMove:c=>o.set(c.pageX),onMouseLeave:()=>o.set(1/0),className:l("mx-auto flex h-16 items-end gap-2 rounded-2xl border border-white/10 bg-black/10 px-3 pb-2 backdrop-blur-xl","shadow-2xl shadow-black/20","before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:opacity-50",t),children:n})})});I.displayName="Dock";var L=e__namespace.forwardRef(({className:t,children:n,onClick:s,tooltip:r},d)=>{let o=e__namespace.useRef(null),{magnification:c,distance:m,mouseX:x}=e__namespace.useContext(v),[w,f]=e__namespace.useState(false),h=framerMotion.useTransform(x,R=>{let b=o.current?.getBoundingClientRect()??{x:0,width:0};return R-b.x-b.width/2}),k=framerMotion.useTransform(h,[-m,0,m],[48,48+c,48]),y=framerMotion.useSpring(k,{mass:.1,stiffness:150,damping:12});return jsxRuntime.jsxs(framerMotion.motion.div,{className:"relative",onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),children:[r&&w&&jsxRuntime.jsxs(framerMotion.motion.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.95},transition:{duration:.15},className:"absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/80 px-2 py-1 text-xs text-white backdrop-blur-md",children:[r,jsxRuntime.jsx("div",{className:"absolute -bottom-1 left-1/2 h-2 w-2 -translate-x-1/2 rotate-45 bg-black/80"})]}),jsxRuntime.jsxs(framerMotion.motion.button,{ref:o,style:{width:y},whileTap:{scale:.95},onClick:s,className:l("aspect-square w-12 rounded-xl bg-white/10 backdrop-blur-md transition-colors","hover:bg-white/20","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50","relative overflow-hidden",t),children:[jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%)"}})]})]})});L.displayName="DockItem";exports.Dock=I;exports.DockItem=L;
@@ -1 +1 @@
1
- export{a as Dock,b as DockItem}from'../chunk-BALF4M3M.mjs';import'../chunk-3RI2CAUD.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import*as e from'react';import {useMotionValue,motion,useTransform,useSpring}from'framer-motion';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs}from'react/jsx-runtime';var D=Object.defineProperty;var p=(t,n)=>D(t,"name",{value:n,configurable:true});function l(...t){return twMerge(clsx(t))}p(l,"cn");var v=e.createContext({magnification:60,distance:140,mouseX:null}),I=e.forwardRef(({className:t,children:n,magnification:s=60,distance:r=140},d)=>{let o=useMotionValue(1/0);return jsx(v.Provider,{value:{magnification:s,distance:r,mouseX:o},children:jsx(motion.div,{ref:d,onMouseMove:c=>o.set(c.pageX),onMouseLeave:()=>o.set(1/0),className:l("mx-auto flex h-16 items-end gap-2 rounded-2xl border border-white/10 bg-black/10 px-3 pb-2 backdrop-blur-xl","shadow-2xl shadow-black/20","before:absolute before:inset-0 before:rounded-2xl before:bg-gradient-to-b before:from-white/10 before:to-transparent before:opacity-50",t),children:n})})});I.displayName="Dock";var L=e.forwardRef(({className:t,children:n,onClick:s,tooltip:r},d)=>{let o=e.useRef(null),{magnification:c,distance:m,mouseX:x}=e.useContext(v),[w,f]=e.useState(false),h=useTransform(x,R=>{let b=o.current?.getBoundingClientRect()??{x:0,width:0};return R-b.x-b.width/2}),k=useTransform(h,[-m,0,m],[48,48+c,48]),y=useSpring(k,{mass:.1,stiffness:150,damping:12});return jsxs(motion.div,{className:"relative",onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),children:[r&&w&&jsxs(motion.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:5,scale:.95},transition:{duration:.15},className:"absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/80 px-2 py-1 text-xs text-white backdrop-blur-md",children:[r,jsx("div",{className:"absolute -bottom-1 left-1/2 h-2 w-2 -translate-x-1/2 rotate-45 bg-black/80"})]}),jsxs(motion.button,{ref:o,style:{width:y},whileTap:{scale:.95},onClick:s,className:l("aspect-square w-12 rounded-xl bg-white/10 backdrop-blur-md transition-colors","hover:bg-white/20","focus:outline-none focus-visible:ring-2 focus-visible:ring-white/50","relative overflow-hidden",t),children:[jsx("div",{className:"flex h-full w-full items-center justify-center",children:n}),jsx("div",{className:"pointer-events-none absolute inset-0 rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%)"}})]})]})});L.displayName="DockItem";export{I as Dock,L as DockItem};
package/dist/dock/menu.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkTVPXSBXH_js=require('../chunk-TVPXSBXH.js');require('../chunk-YZFRWYNS.js'),require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"MenuDock",{enumerable:true,get:function(){return chunkTVPXSBXH_js.a}});
1
+ 'use strict';var l=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),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 l__namespace=/*#__PURE__*/_interopNamespace(l);var u=Object.defineProperty;var a=(o,t)=>u(o,"name",{value:t,configurable:true});function r(...o){return tailwindMerge.twMerge(clsx.clsx(o))}a(r,"cn");var m=l__namespace.forwardRef(({className:o,items:t,orientation:c="horizontal",...i},s)=>jsxRuntime.jsx("div",{ref:s,className:r("flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",c==="vertical"?"flex-col":"flex-row",o),...i,children:t.map((e,p)=>jsxRuntime.jsxs("button",{onClick:e.onClick,className:r("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))}));m.displayName="MenuDock";exports.MenuDock=m;
@@ -1 +1 @@
1
- export{a as MenuDock}from'../chunk-PP6VTZRY.mjs';import'../chunk-3RI2CAUD.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import*as l from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs}from'react/jsx-runtime';var u=Object.defineProperty;var a=(o,t)=>u(o,"name",{value:t,configurable:true});function r(...o){return twMerge(clsx(o))}a(r,"cn");var m=l.forwardRef(({className:o,items:t,orientation:c="horizontal",...i},s)=>jsx("div",{ref:s,className:r("flex gap-2 rounded-full border bg-background/95 p-2 shadow-lg backdrop-blur",c==="vertical"?"flex-col":"flex-row",o),...i,children:t.map((e,p)=>jsxs("button",{onClick:e.onClick,className:r("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,jsx("span",{className:"sr-only",children:e.label}),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))}));m.displayName="MenuDock";export{m as MenuDock};
@@ -1 +1 @@
1
- 'use strict';var chunkX3Y7POKQ_js=require('../chunk-X3Y7POKQ.js');require('../chunk-3YL43AE4.js'),require('../chunk-YZFRWYNS.js'),require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"MessageDock",{enumerable:true,get:function(){return chunkX3Y7POKQ_js.a}});
1
+ 'use strict';var u=require('react'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),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 u__namespace=/*#__PURE__*/_interopNamespace(u);var g=Object.defineProperty;var c=(t,i)=>g(t,"name",{value:i,configurable:true});function o(...t){return tailwindMerge.twMerge(clsx.clsx(t))}c(o,"cn");var w=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=u__namespace.forwardRef(({className:t,variant:i,size:r,asChild:a=false,isLoading:s=false,children:d,...p},e)=>jsxRuntime.jsxs(a?reactSlot.Slot:"button",{className:o(w({variant:i,size:r,className:t})),ref:e,...p,children:[s?jsxRuntime.jsx(lucideReact.Loader2,{className:o("h-4 w-4 animate-spin",r!=="icon"&&"mr-2")}):null,s&&r==="icon"?null:d]}));l.displayName="Button";var B=u__namespace.forwardRef(({className:t,messages:i,onClose:r,position:a="bottom-right",...s},d)=>jsxRuntime.jsx("div",{ref:d,className:o("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"}[a],t),...s,children:i.map(e=>jsxRuntime.jsx("div",{className:o("min-w-[300px] rounded-lg border p-4 shadow-lg",e.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",e.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",e.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",e.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!e.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:e.title}),e.description&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:e.description})]}),r&&jsxRuntime.jsx(l,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>r(e.id),children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})},e.id))}));B.displayName="MessageDock";exports.MessageDock=B;
@@ -1 +1 @@
1
- export{a as MessageDock}from'../chunk-Q3VHBQ3B.mjs';import'../chunk-KDE3N3L6.mjs';import'../chunk-3RI2CAUD.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import*as u from'react';import {Loader2,X}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';import {jsxs,jsx}from'react/jsx-runtime';var g=Object.defineProperty;var c=(t,i)=>g(t,"name",{value:i,configurable:true});function o(...t){return twMerge(clsx(t))}c(o,"cn");var w=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=u.forwardRef(({className:t,variant:i,size:r,asChild:a=false,isLoading:s=false,children:d,...p},e)=>jsxs(a?Slot:"button",{className:o(w({variant:i,size:r,className:t})),ref:e,...p,children:[s?jsx(Loader2,{className:o("h-4 w-4 animate-spin",r!=="icon"&&"mr-2")}):null,s&&r==="icon"?null:d]}));l.displayName="Button";var B=u.forwardRef(({className:t,messages:i,onClose:r,position:a="bottom-right",...s},d)=>jsx("div",{ref:d,className:o("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"}[a],t),...s,children:i.map(e=>jsx("div",{className:o("min-w-[300px] rounded-lg border p-4 shadow-lg",e.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",e.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",e.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",e.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!e.type&&"bg-background"),children:jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxs("div",{className:"flex-1",children:[jsx("h4",{className:"font-medium",children:e.title}),e.description&&jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:e.description})]}),r&&jsx(l,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>r(e.id),children:jsx(X,{className:"h-4 w-4"})})]})},e.id))}));B.displayName="MessageDock";export{B as MessageDock};
package/dist/drawer.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkLPZWN5DR_js=require('./chunk-LPZWN5DR.js');require('./chunk-YZFRWYNS.js'),require('./chunk-XUSV3KOD.js');Object.defineProperty(exports,"Drawer",{enumerable:true,get:function(){return chunkLPZWN5DR_js.a}});Object.defineProperty(exports,"DrawerClose",{enumerable:true,get:function(){return chunkLPZWN5DR_js.d}});Object.defineProperty(exports,"DrawerContent",{enumerable:true,get:function(){return chunkLPZWN5DR_js.f}});Object.defineProperty(exports,"DrawerDescription",{enumerable:true,get:function(){return chunkLPZWN5DR_js.j}});Object.defineProperty(exports,"DrawerFooter",{enumerable:true,get:function(){return chunkLPZWN5DR_js.h}});Object.defineProperty(exports,"DrawerHeader",{enumerable:true,get:function(){return chunkLPZWN5DR_js.g}});Object.defineProperty(exports,"DrawerOverlay",{enumerable:true,get:function(){return chunkLPZWN5DR_js.e}});Object.defineProperty(exports,"DrawerPortal",{enumerable:true,get:function(){return chunkLPZWN5DR_js.c}});Object.defineProperty(exports,"DrawerTitle",{enumerable:true,get:function(){return chunkLPZWN5DR_js.i}});Object.defineProperty(exports,"DrawerTrigger",{enumerable:true,get:function(){return chunkLPZWN5DR_js.b}});
1
+ 'use strict';var vaul=require('vaul'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');var m=Object.defineProperty;var a=(e,t)=>m(e,"name",{value:t,configurable:true});function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}a(i,"cn");var d=a(({shouldScaleBackground:e=false,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var T=vaul.Drawer.Trigger,D=vaul.Drawer.Portal,L=vaul.Drawer.Close,s=a(({className:e,...t})=>jsxRuntime.jsx(vaul.Drawer.Overlay,{className:i("fixed inset-0 z-50 bg-black/70",e),...t}),"DrawerOverlay");s.displayName=vaul.Drawer.Overlay.displayName;var w=a(({className:e,children:t,...l})=>jsxRuntime.jsxs(D,{children:[jsxRuntime.jsx(s,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{className:i("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:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300"}),t]})]}),"DrawerContent");w.displayName="DrawerContent";var y=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:i("pt-5 pb-0",e),...t}),"DrawerHeader");y.displayName="DrawerHeader";var f=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");f.displayName="DrawerFooter";var u=a(({className:e,...t})=>jsxRuntime.jsx(vaul.Drawer.Title,{className:i("text-lg leading-none font-semibold tracking-tight",e),...t}),"DrawerTitle");u.displayName=vaul.Drawer.Title.displayName;var g=a(({className:e,...t})=>jsxRuntime.jsx(vaul.Drawer.Description,{className:i("text-text-secondary text-sm",e),...t}),"DrawerDescription");g.displayName=vaul.Drawer.Description.displayName;exports.Drawer=d;exports.DrawerClose=L;exports.DrawerContent=w;exports.DrawerDescription=g;exports.DrawerFooter=f;exports.DrawerHeader=y;exports.DrawerOverlay=s;exports.DrawerPortal=D;exports.DrawerTitle=u;exports.DrawerTrigger=T;
package/dist/drawer.mjs CHANGED
@@ -1 +1 @@
1
- export{a as Drawer,d as DrawerClose,f as DrawerContent,j as DrawerDescription,h as DrawerFooter,g as DrawerHeader,e as DrawerOverlay,c as DrawerPortal,i as DrawerTitle,b as DrawerTrigger}from'./chunk-XQ5PD6OG.mjs';import'./chunk-3RI2CAUD.mjs';import'./chunk-CWFGLK4T.mjs';
1
+ import {Drawer}from'vaul';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs}from'react/jsx-runtime';var m=Object.defineProperty;var a=(e,t)=>m(e,"name",{value:t,configurable:true});function i(...e){return twMerge(clsx(e))}a(i,"cn");var d=a(({shouldScaleBackground:e=false,...t})=>jsx(Drawer.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var T=Drawer.Trigger,D=Drawer.Portal,L=Drawer.Close,s=a(({className:e,...t})=>jsx(Drawer.Overlay,{className:i("fixed inset-0 z-50 bg-black/70",e),...t}),"DrawerOverlay");s.displayName=Drawer.Overlay.displayName;var w=a(({className:e,children:t,...l})=>jsxs(D,{children:[jsx(s,{}),jsxs(Drawer.Content,{className:i("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");w.displayName="DrawerContent";var y=a(({className:e,...t})=>jsx("div",{className:i("pt-5 pb-0",e),...t}),"DrawerHeader");y.displayName="DrawerHeader";var f=a(({className:e,...t})=>jsx("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");f.displayName="DrawerFooter";var u=a(({className:e,...t})=>jsx(Drawer.Title,{className:i("text-lg leading-none font-semibold tracking-tight",e),...t}),"DrawerTitle");u.displayName=Drawer.Title.displayName;var g=a(({className:e,...t})=>jsx(Drawer.Description,{className:i("text-text-secondary text-sm",e),...t}),"DrawerDescription");g.displayName=Drawer.Description.displayName;export{d as Drawer,L as DrawerClose,w as DrawerContent,g as DrawerDescription,f as DrawerFooter,y as DrawerHeader,s as DrawerOverlay,D as DrawerPortal,u as DrawerTitle,T as DrawerTrigger};
@@ -1 +1 @@
1
- 'use strict';var chunkNJF3RXSG_js=require('./chunk-NJF3RXSG.js');require('./chunk-YZFRWYNS.js'),require('./chunk-XUSV3KOD.js');Object.defineProperty(exports,"DropdownMenu",{enumerable:true,get:function(){return chunkNJF3RXSG_js.a}});Object.defineProperty(exports,"DropdownMenuCheckboxItem",{enumerable:true,get:function(){return chunkNJF3RXSG_js.k}});Object.defineProperty(exports,"DropdownMenuContent",{enumerable:true,get:function(){return chunkNJF3RXSG_js.i}});Object.defineProperty(exports,"DropdownMenuGroup",{enumerable:true,get:function(){return chunkNJF3RXSG_js.c}});Object.defineProperty(exports,"DropdownMenuItem",{enumerable:true,get:function(){return chunkNJF3RXSG_js.j}});Object.defineProperty(exports,"DropdownMenuLabel",{enumerable:true,get:function(){return chunkNJF3RXSG_js.m}});Object.defineProperty(exports,"DropdownMenuPortal",{enumerable:true,get:function(){return chunkNJF3RXSG_js.d}});Object.defineProperty(exports,"DropdownMenuRadioGroup",{enumerable:true,get:function(){return chunkNJF3RXSG_js.f}});Object.defineProperty(exports,"DropdownMenuRadioItem",{enumerable:true,get:function(){return chunkNJF3RXSG_js.l}});Object.defineProperty(exports,"DropdownMenuSeparator",{enumerable:true,get:function(){return chunkNJF3RXSG_js.n}});Object.defineProperty(exports,"DropdownMenuShortcut",{enumerable:true,get:function(){return chunkNJF3RXSG_js.o}});Object.defineProperty(exports,"DropdownMenuSub",{enumerable:true,get:function(){return chunkNJF3RXSG_js.e}});Object.defineProperty(exports,"DropdownMenuSubContent",{enumerable:true,get:function(){return chunkNJF3RXSG_js.h}});Object.defineProperty(exports,"DropdownMenuSubTrigger",{enumerable:true,get:function(){return chunkNJF3RXSG_js.g}});Object.defineProperty(exports,"DropdownMenuTrigger",{enumerable:true,get:function(){return chunkNJF3RXSG_js.b}});
1
+ 'use strict';var e=require('@radix-ui/react-dropdown-menu'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),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 e__namespace=/*#__PURE__*/_interopNamespace(e);var p=Object.defineProperty;var n=(o,t)=>p(o,"name",{value:t,configurable:true});function a(...o){return tailwindMerge.twMerge(clsx.clsx(o))}n(a,"cn");var k=e__namespace.Root,T=e__namespace.Trigger,L=e__namespace.Group,z=e__namespace.Portal,G=e__namespace.Sub,U=e__namespace.RadioGroup,w=n(({className:o,inset:t,children:r,...d})=>jsxRuntime.jsxs(e__namespace.SubTrigger,{className:a("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center rounded-xs px-2 py-1.5 text-sm outline-hidden select-none",t&&"pl-8",o),...d,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}),"DropdownMenuSubTrigger");w.displayName=e__namespace.SubTrigger.displayName;var f=n(({className:o,...t})=>jsxRuntime.jsx(e__namespace.SubContent,{className: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 z-[2000000000] min-w-[8rem] space-y-3 overflow-hidden rounded-md bg-gray-300 text-white shadow-lg",o),...t}),"DropdownMenuSubContent");f.displayName=e__namespace.SubContent.displayName;var D=n(({className:o,sideOffset:t=4,...r})=>jsxRuntime.jsx(e__namespace.Portal,{children:jsxRuntime.jsx(e__namespace.Content,{className:a("font-inter border-divider 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 z-[2000000000] min-w-[8rem] overflow-hidden rounded-lg border px-4 py-6 text-white shadow-md",o),sideOffset:t,...r})}),"DropdownMenuContent");D.displayName=e__namespace.Content.displayName;var M=n(({className:o,inset:t,...r})=>jsxRuntime.jsx(e__namespace.Item,{className:a("focus:bg-bg-secondary relative flex cursor-default items-center rounded-lg px-2 py-2 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",o),...r}),"DropdownMenuItem");M.displayName=e__namespace.Item.displayName;var b=n(({className:o,children:t,checked:r,...d})=>jsxRuntime.jsxs(e__namespace.CheckboxItem,{checked:r,className:a("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...d,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center rounded-xs bg-gray-300",children:jsxRuntime.jsx(e__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),t]}),"DropdownMenuCheckboxItem");b.displayName=e__namespace.CheckboxItem.displayName;var P=n(({className:o,children:t,...r})=>jsxRuntime.jsx(e__namespace.RadioItem,{className:a("focus:bg-bg-secondary relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50","hover:bg-bg-secondary data-[state=checked]:bg-bg-secondary",o),...r,children:t}),"DropdownMenuRadioItem");P.displayName=e__namespace.RadioItem.displayName;var v=n(({className:o,inset:t,...r})=>jsxRuntime.jsx(e__namespace.Label,{className:a("text-text-secondary text-xs tracking-[2px] uppercase",t&&"pl-8",o),...r}),"DropdownMenuLabel");v.displayName=e__namespace.Label.displayName;var g=n(({className:o,...t})=>jsxRuntime.jsx(e__namespace.Separator,{className:a("bg-divider -mx-1 my-1 h-px",o),...t}),"DropdownMenuSeparator");g.displayName=e__namespace.Separator.displayName;var y=n(({className:o,...t})=>jsxRuntime.jsx("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t}),"DropdownMenuShortcut");y.displayName="DropdownMenuShortcut";exports.DropdownMenu=k;exports.DropdownMenuCheckboxItem=b;exports.DropdownMenuContent=D;exports.DropdownMenuGroup=L;exports.DropdownMenuItem=M;exports.DropdownMenuLabel=v;exports.DropdownMenuPortal=z;exports.DropdownMenuRadioGroup=U;exports.DropdownMenuRadioItem=P;exports.DropdownMenuSeparator=g;exports.DropdownMenuShortcut=y;exports.DropdownMenuSub=G;exports.DropdownMenuSubContent=f;exports.DropdownMenuSubTrigger=w;exports.DropdownMenuTrigger=T;
@@ -1 +1 @@
1
- export{a as DropdownMenu,k as DropdownMenuCheckboxItem,i as DropdownMenuContent,c as DropdownMenuGroup,j as DropdownMenuItem,m as DropdownMenuLabel,d as DropdownMenuPortal,f as DropdownMenuRadioGroup,l as DropdownMenuRadioItem,n as DropdownMenuSeparator,o as DropdownMenuShortcut,e as DropdownMenuSub,h as DropdownMenuSubContent,g as DropdownMenuSubTrigger,b as DropdownMenuTrigger}from'./chunk-JYLGS2OX.mjs';import'./chunk-3RI2CAUD.mjs';import'./chunk-CWFGLK4T.mjs';
1
+ import*as e from'@radix-ui/react-dropdown-menu';import {ChevronRight,Check}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';var p=Object.defineProperty;var n=(o,t)=>p(o,"name",{value:t,configurable:true});function a(...o){return twMerge(clsx(o))}n(a,"cn");var k=e.Root,T=e.Trigger,L=e.Group,z=e.Portal,G=e.Sub,U=e.RadioGroup,w=n(({className:o,inset:t,children:r,...d})=>jsxs(e.SubTrigger,{className:a("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center rounded-xs px-2 py-1.5 text-sm outline-hidden select-none",t&&"pl-8",o),...d,children:[r,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}),"DropdownMenuSubTrigger");w.displayName=e.SubTrigger.displayName;var f=n(({className:o,...t})=>jsx(e.SubContent,{className: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 z-[2000000000] min-w-[8rem] space-y-3 overflow-hidden rounded-md bg-gray-300 text-white shadow-lg",o),...t}),"DropdownMenuSubContent");f.displayName=e.SubContent.displayName;var D=n(({className:o,sideOffset:t=4,...r})=>jsx(e.Portal,{children:jsx(e.Content,{className:a("font-inter border-divider 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 z-[2000000000] min-w-[8rem] overflow-hidden rounded-lg border px-4 py-6 text-white shadow-md",o),sideOffset:t,...r})}),"DropdownMenuContent");D.displayName=e.Content.displayName;var M=n(({className:o,inset:t,...r})=>jsx(e.Item,{className:a("focus:bg-bg-secondary relative flex cursor-default items-center rounded-lg px-2 py-2 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",o),...r}),"DropdownMenuItem");M.displayName=e.Item.displayName;var b=n(({className:o,children:t,checked:r,...d})=>jsxs(e.CheckboxItem,{checked:r,className:a("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...d,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center rounded-xs bg-gray-300",children:jsx(e.ItemIndicator,{children:jsx(Check,{className:"h-3 w-3"})})}),t]}),"DropdownMenuCheckboxItem");b.displayName=e.CheckboxItem.displayName;var P=n(({className:o,children:t,...r})=>jsx(e.RadioItem,{className:a("focus:bg-bg-secondary relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50","hover:bg-bg-secondary data-[state=checked]:bg-bg-secondary",o),...r,children:t}),"DropdownMenuRadioItem");P.displayName=e.RadioItem.displayName;var v=n(({className:o,inset:t,...r})=>jsx(e.Label,{className:a("text-text-secondary text-xs tracking-[2px] uppercase",t&&"pl-8",o),...r}),"DropdownMenuLabel");v.displayName=e.Label.displayName;var g=n(({className:o,...t})=>jsx(e.Separator,{className:a("bg-divider -mx-1 my-1 h-px",o),...t}),"DropdownMenuSeparator");g.displayName=e.Separator.displayName;var y=n(({className:o,...t})=>jsx("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t}),"DropdownMenuShortcut");y.displayName="DropdownMenuShortcut";export{k as DropdownMenu,b as DropdownMenuCheckboxItem,D as DropdownMenuContent,L as DropdownMenuGroup,M as DropdownMenuItem,v as DropdownMenuLabel,z as DropdownMenuPortal,U as DropdownMenuRadioGroup,P as DropdownMenuRadioItem,g as DropdownMenuSeparator,y as DropdownMenuShortcut,G as DropdownMenuSub,f as DropdownMenuSubContent,w as DropdownMenuSubTrigger,T as DropdownMenuTrigger};
@@ -1 +1,2 @@
1
- 'use strict';var chunkVEZEUPWM_js=require('../chunk-VEZEUPWM.js');require('../chunk-XUSV3KOD.js');module.exports=chunkVEZEUPWM_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var c=Object.defineProperty;var i=(r,e)=>c(r,"name",{value:e,configurable:true});function u({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"})})}i(u,"AdvancedChart");var f=react.memo(u);
2
+ module.exports=f;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-BKOJG4VJ.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var c=Object.defineProperty;var i=(r,e)=>c(r,"name",{value:e,configurable:true});function u({symbol:r="NASDAQ:AAPL"}){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-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]),jsx("div",{className:"tradingview-widget-container w-full h-[600px]",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget h-full"})})}i(u,"AdvancedChart");var f=memo(u);
2
+ export{f as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkGZCOKOS6_js=require('../chunk-GZCOKOS6.js');require('../chunk-XUSV3KOD.js');module.exports=chunkGZCOKOS6_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var u=Object.defineProperty;var o=(r,t)=>u(r,"name",{value:t,configurable:true});function m({symbol:r="NASDAQ:AAPL",width:t="100%",height:n="100%",locale:s="en",colorTheme:a="dark",isTransparent:c=false}){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let i=document.createElement("script");return i.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-profile.js",i.async=true,i.innerHTML=JSON.stringify({width:t,height:n,colorTheme:a,isTransparent:c,symbol:r,locale:s}),e.current.appendChild(i),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(l=>l.remove()));}},[r,t,n,s,a,c]),jsxRuntime.jsx("div",{className:"tradingview-widget-container",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}o(m,"CompanyProfile");
2
+ module.exports=m;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-ATNZNQV7.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var u=Object.defineProperty;var o=(r,t)=>u(r,"name",{value:t,configurable:true});function m({symbol:r="NASDAQ:AAPL",width:t="100%",height:n="100%",locale:s="en",colorTheme:a="dark",isTransparent:c=false}){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let i=document.createElement("script");return i.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-profile.js",i.async=true,i.innerHTML=JSON.stringify({width:t,height:n,colorTheme:a,isTransparent:c,symbol:r,locale:s}),e.current.appendChild(i),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(l=>l.remove()));}},[r,t,n,s,a,c]),jsx("div",{className:"tradingview-widget-container",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}o(m,"CompanyProfile");
2
+ export{m as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkIQEZ2NU7_js=require('../chunk-IQEZ2NU7.js');require('../chunk-XUSV3KOD.js');module.exports=chunkIQEZ2NU7_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:true});function l(){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-screener.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({defaultColumn:"overview",screener_type:"crypto_mkt",displayCurrency:"USD",colorTheme:"dark",isTransparent:false,locale:"en",width:"100%",height:550}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(n=>n.remove()));}},[]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}r(l,"CryptoScreener");var f=react.memo(l);
2
+ module.exports=f;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-PWKHIIIX.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:true});function l(){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({defaultColumn:"overview",screener_type:"crypto_mkt",displayCurrency:"USD",colorTheme:"dark",isTransparent:false,locale:"en",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"})})}r(l,"CryptoScreener");var f=memo(l);
2
+ export{f as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkQIS2X5VM_js=require('../chunk-QIS2X5VM.js');require('../chunk-XUSV3KOD.js');module.exports=chunkQIS2X5VM_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var p=Object.defineProperty;var u=(t,i)=>p(t,"name",{value:i,configurable:true});function v({symbol:t="NASDAQ:AAPL",width:i="100%",height:n="500",locale:a="en",colorTheme:s="dark",isTransparent:c=false,displayMode:d="adaptive",largeChartUrl:l=""}){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let r=document.createElement("script");return r.src="https://s3.tradingview.com/external-embedding/embed-widget-financials.js",r.async=true,r.innerHTML=JSON.stringify({colorTheme:s,isTransparent:c,largeChartUrl:l,displayMode:d,width:i,height:n,symbol:t,locale:a}),e.current.appendChild(r),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(f=>f.remove()));}},[t,i,n,a,s,c,d,l]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full h-[500px]",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget h-full"})})}u(v,"Financials");
2
+ module.exports=v;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-GJEV6LDG.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var p=Object.defineProperty;var u=(t,i)=>p(t,"name",{value:i,configurable:true});function v({symbol:t="NASDAQ:AAPL",width:i="100%",height:n="500",locale:a="en",colorTheme:s="dark",isTransparent:c=false,displayMode:d="adaptive",largeChartUrl:l=""}){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let r=document.createElement("script");return r.src="https://s3.tradingview.com/external-embedding/embed-widget-financials.js",r.async=true,r.innerHTML=JSON.stringify({colorTheme:s,isTransparent:c,largeChartUrl:l,displayMode:d,width:i,height:n,symbol:t,locale:a}),e.current.appendChild(r),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(f=>f.remove()));}},[t,i,n,a,s,c,d,l]),jsx("div",{className:"tradingview-widget-container w-full h-[500px]",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget h-full"})})}u(v,"Financials");
2
+ export{v as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkC6DDKSBN_js=require('../chunk-C6DDKSBN.js');require('../chunk-XUSV3KOD.js');module.exports=chunkC6DDKSBN_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var a=Object.defineProperty;var r=(e,t)=>a(e,"name",{value:t,configurable:true});function l(){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-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()));}},[]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}r(l,"ForexScreener");var m=react.memo(l);
2
+ module.exports=m;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-ROROVLVL.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var a=Object.defineProperty;var r=(e,t)=>a(e,"name",{value:t,configurable:true});function l(){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"})})}r(l,"ForexScreener");var m=memo(l);
2
+ export{m as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkJSGFZR4R_js=require('../chunk-JSGFZR4R.js');require('../chunk-XUSV3KOD.js');module.exports=chunkJSGFZR4R_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var l=Object.defineProperty;var r=(e,t)=>l(e,"name",{value:t,configurable:true});function d(){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-market-overview.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({colorTheme:"dark",dateRange:"12M",locale:"en",largeChartUrl:"",isTransparent:false,showFloatingTooltip:false,plotLineColorGrowing:"rgba(41, 98, 255, 1)",plotLineColorFalling:"rgba(41, 98, 255, 1)",gridLineColor:"rgba(240, 243, 250, 0)",scaleFontColor:"#DBDBDB",belowLineFillColorGrowing:"rgba(41, 98, 255, 0.12)",belowLineFillColorFalling:"rgba(41, 98, 255, 0.12)",belowLineFillColorGrowingBottom:"rgba(41, 98, 255, 0)",belowLineFillColorFallingBottom:"rgba(41, 98, 255, 0)",symbolActiveColor:"rgba(41, 98, 255, 0.12)",tabs:[{title:"Indices",symbols:[{s:"FOREXCOM:SPXUSD",d:"S&P 500 Index"},{s:"FOREXCOM:NSXUSD",d:"US 100 Cash CFD"},{s:"FOREXCOM:DJI",d:"Dow Jones Industrial Average Index"},{s:"INDEX:NKY",d:"Japan 225"},{s:"INDEX:DEU40",d:"DAX Index"},{s:"FOREXCOM:UKXGBP",d:"FTSE 100 Index"}],originalTitle:"Indices"},{title:"Futures",symbols:[{s:"BMFBOVESPA:ISP1!",d:"S&P 500"},{s:"BMFBOVESPA:EUR1!",d:"Euro"},{s:"CMCMARKETS:GOLD",d:"Gold"},{s:"PYTH:WTI3!",d:"WTI Crude Oil"},{s:"BMFBOVESPA:CCM1!",d:"Corn"}],originalTitle:"Futures"},{title:"Bonds",symbols:[{s:"EUREX:FGBL1!",d:"Euro Bund"},{s:"EUREX:FBTP1!",d:"Euro BTP"},{s:"EUREX:FGBM1!",d:"Euro BOBL"}],originalTitle:"Bonds"},{title:"Forex",symbols:[{s:"FX:EURUSD",d:"EUR to USD"},{s:"FX:GBPUSD",d:"GBP to USD"},{s:"FX:USDJPY",d:"USD to JPY"},{s:"FX:USDCHF",d:"USD to CHF"},{s:"FX:AUDUSD",d:"AUD to USD"},{s:"FX:USDCAD",d:"USD to CAD"}],originalTitle:"Forex"}],support_host:"https://www.tradingview.com",backgroundColor:"#0f0f0f",width:"100%",height:"550",showSymbolLogo:true,showChart:true}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(o=>o.remove()));}},[]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}r(d,"MarketOverview");var F=react.memo(d);
2
+ module.exports=F;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-H7ZFQ43F.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var l=Object.defineProperty;var r=(e,t)=>l(e,"name",{value:t,configurable:true});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-market-overview.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({colorTheme:"dark",dateRange:"12M",locale:"en",largeChartUrl:"",isTransparent:false,showFloatingTooltip:false,plotLineColorGrowing:"rgba(41, 98, 255, 1)",plotLineColorFalling:"rgba(41, 98, 255, 1)",gridLineColor:"rgba(240, 243, 250, 0)",scaleFontColor:"#DBDBDB",belowLineFillColorGrowing:"rgba(41, 98, 255, 0.12)",belowLineFillColorFalling:"rgba(41, 98, 255, 0.12)",belowLineFillColorGrowingBottom:"rgba(41, 98, 255, 0)",belowLineFillColorFallingBottom:"rgba(41, 98, 255, 0)",symbolActiveColor:"rgba(41, 98, 255, 0.12)",tabs:[{title:"Indices",symbols:[{s:"FOREXCOM:SPXUSD",d:"S&P 500 Index"},{s:"FOREXCOM:NSXUSD",d:"US 100 Cash CFD"},{s:"FOREXCOM:DJI",d:"Dow Jones Industrial Average Index"},{s:"INDEX:NKY",d:"Japan 225"},{s:"INDEX:DEU40",d:"DAX Index"},{s:"FOREXCOM:UKXGBP",d:"FTSE 100 Index"}],originalTitle:"Indices"},{title:"Futures",symbols:[{s:"BMFBOVESPA:ISP1!",d:"S&P 500"},{s:"BMFBOVESPA:EUR1!",d:"Euro"},{s:"CMCMARKETS:GOLD",d:"Gold"},{s:"PYTH:WTI3!",d:"WTI Crude Oil"},{s:"BMFBOVESPA:CCM1!",d:"Corn"}],originalTitle:"Futures"},{title:"Bonds",symbols:[{s:"EUREX:FGBL1!",d:"Euro Bund"},{s:"EUREX:FBTP1!",d:"Euro BTP"},{s:"EUREX:FGBM1!",d:"Euro BOBL"}],originalTitle:"Bonds"},{title:"Forex",symbols:[{s:"FX:EURUSD",d:"EUR to USD"},{s:"FX:GBPUSD",d:"GBP to USD"},{s:"FX:USDJPY",d:"USD to JPY"},{s:"FX:USDCHF",d:"USD to CHF"},{s:"FX:AUDUSD",d:"AUD to USD"},{s:"FX:USDCAD",d:"USD to CAD"}],originalTitle:"Forex"}],support_host:"https://www.tradingview.com",backgroundColor:"#0f0f0f",width:"100%",height:"550",showSymbolLogo:true,showChart:true}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(o=>o.remove()));}},[]),jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}r(d,"MarketOverview");var F=memo(d);
2
+ export{F as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunk7SP7DCJD_js=require('../chunk-7SP7DCJD.js');require('../chunk-XUSV3KOD.js');module.exports=chunk7SP7DCJD_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var a=Object.defineProperty;var i=(e,t)=>a(e,"name",{value:t,configurable:true});function l(){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-timeline.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({displayMode:"regular",feedMode:"all_symbols",colorTheme:"dark",isTransparent:false,locale:"en",width:"100%",height:550}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(n=>n.remove()));}},[]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}i(l,"NewsTimeline");var f=react.memo(l);
2
+ module.exports=f;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-QCWXF6PM.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var a=Object.defineProperty;var i=(e,t)=>a(e,"name",{value:t,configurable:true});function l(){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-timeline.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({displayMode:"regular",feedMode:"all_symbols",colorTheme:"dark",isTransparent:false,locale:"en",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"})})}i(l,"NewsTimeline");var f=memo(l);
2
+ export{f as default};
@@ -1 +1 @@
1
- 'use strict';var chunkJAVQTNQQ_js=require('../chunk-JAVQTNQQ.js');require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"OrderEntry",{enumerable:true,get:function(){return chunkJAVQTNQQ_js.a}});
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var x=Object.defineProperty;var n=(o,c)=>x(o,"name",{value:c,configurable:true});function N({symbol:o,accountBalance:c,onPlaceOrder:w,disabled:i=false}){let[l,u]=react.useState("market"),[r,m]=react.useState("buy"),[a,h]=react.useState(""),[d,g]=react.useState(""),p=n(s=>s.split(":")[1]||s,"getTickerFromSymbol"),y=n(()=>{!a||l==="limit"&&!d||(w({symbol:o,side:r,orderType:l,shares:parseInt(a),limitPrice:l==="limit"?parseFloat(d):void 0}),h(""),g(""));},"handlePlaceOrder");return jsxRuntime.jsxs("div",{className:"p-4 space-y-4",children:[jsxRuntime.jsxs("div",{className:"bg-white/5 rounded-lg p-3",children:[jsxRuntime.jsx("div",{className:"text-xs text-white/60 mb-1",children:"Buying Power"}),jsxRuntime.jsxs("div",{className:"text-lg font-semibold text-white",children:["$",c.toLocaleString()]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsxRuntime.jsx("button",{onClick:()=>m("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"}),jsxRuntime.jsx("button",{onClick:()=>m("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"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Order Type"}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsxRuntime.jsx("button",{onClick:()=>u("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"}),jsxRuntime.jsx("button",{onClick:()=>u("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"})]})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Shares"}),jsxRuntime.jsx("input",{type:"number",value:a,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"})]}),l==="limit"&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Limit Price"}),jsxRuntime.jsx("input",{type:"number",value:d,onChange:s=>g(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"})]}),jsxRuntime.jsxs("button",{onClick:y,disabled:i||!a||l==="limit"&&!d,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(o)]})]})}n(N,"OrderEntry");exports.OrderEntry=N;
@@ -1 +1 @@
1
- export{a as OrderEntry}from'../chunk-TNRO5CZD.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {useState}from'react';import {jsxs,jsx}from'react/jsx-runtime';var x=Object.defineProperty;var n=(o,c)=>x(o,"name",{value:c,configurable:true});function N({symbol:o,accountBalance:c,onPlaceOrder:w,disabled:i=false}){let[l,u]=useState("market"),[r,m]=useState("buy"),[a,h]=useState(""),[d,g]=useState(""),p=n(s=>s.split(":")[1]||s,"getTickerFromSymbol"),y=n(()=>{!a||l==="limit"&&!d||(w({symbol:o,side:r,orderType:l,shares:parseInt(a),limitPrice:l==="limit"?parseFloat(d):void 0}),h(""),g(""));},"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:["$",c.toLocaleString()]})]}),jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsx("button",{onClick:()=>m("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:()=>m("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:()=>u("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:()=>u("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:a,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"})]}),l==="limit"&&jsxs("div",{children:[jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Limit Price"}),jsx("input",{type:"number",value:d,onChange:s=>g(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||!a||l==="limit"&&!d,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(o)]})]})}n(N,"OrderEntry");export{N as OrderEntry};
@@ -1 +1 @@
1
- 'use strict';var chunkAABD5QO3_js=require('../chunk-AABD5QO3.js');require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"OrdersHistory",{enumerable:true,get:function(){return chunkAABD5QO3_js.a}});
1
+ 'use strict';var jsxRuntime=require('react/jsx-runtime');var p=Object.defineProperty;var d=(i,a)=>p(i,"name",{value:a,configurable:true});function m({orders:i,onCancelOrder:a,onOrderClick:l}){let c=d(e=>e.split(":")[1]||e,"getTickerFromSymbol");return i.length===0?jsxRuntime.jsx("div",{className:"p-4 text-center py-8 text-white/40",children:jsxRuntime.jsx("p",{className:"text-sm",children:"No orders yet"})}):jsxRuntime.jsx("div",{className:"p-4 space-y-2",children:i.map(e=>jsxRuntime.jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${l?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>l?.(e),children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between mb-2",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"font-semibold text-white",children:c(e.symbol)}),jsxRuntime.jsx("div",{className:"text-xs text-white/60",children:new Date(e.timestamp).toLocaleString()})]}),jsxRuntime.jsx("div",{className:`text-xs px-2 py-1 rounded ${e.status==="filled"?"bg-success/20 text-success":e.status==="cancelled"?"bg-white/10 text-white/60":e.status==="pending"?"bg-yellow-500/20 text-yellow-400":"bg-blue-500/20 text-blue-400"}`,children:e.status.charAt(0).toUpperCase()+e.status.slice(1)})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Side"}),jsxRuntime.jsx("div",{className:`font-medium ${e.type==="buy"?"text-success":"text-danger"}`,children:e.type.toUpperCase()})]}),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:"Price"}),jsxRuntime.jsx("div",{className:"text-white font-medium",children:e.price>0?`$${e.price.toFixed(2)}`:"Market"})]})]}),e.orderType&&jsxRuntime.jsxs("div",{className:"mt-2 text-xs",children:[jsxRuntime.jsx("span",{className:"text-white/60",children:"Type: "}),jsxRuntime.jsx("span",{className:"text-white font-medium",children:e.orderType.charAt(0).toUpperCase()+e.orderType.slice(1)})]}),e.status==="open"&&a&&jsxRuntime.jsx("button",{onClick:n=>{n.stopPropagation(),a(e.id);},className:"w-full mt-2 py-1.5 text-xs bg-white/5 hover:bg-white/10 text-white/80 rounded transition-colors",children:"Cancel Order"})]},e.id))})}d(m,"OrdersHistory");exports.OrdersHistory=m;
@@ -1 +1 @@
1
- export{a as OrdersHistory}from'../chunk-2G2TUOYL.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {jsx,jsxs}from'react/jsx-runtime';var p=Object.defineProperty;var d=(i,a)=>p(i,"name",{value:a,configurable:true});function m({orders:i,onCancelOrder:a,onOrderClick:l}){let c=d(e=>e.split(":")[1]||e,"getTickerFromSymbol");return i.length===0?jsx("div",{className:"p-4 text-center py-8 text-white/40",children:jsx("p",{className:"text-sm",children:"No orders yet"})}):jsx("div",{className:"p-4 space-y-2",children:i.map(e=>jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${l?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>l?.(e),children:[jsxs("div",{className:"flex items-start justify-between mb-2",children:[jsxs("div",{children:[jsx("div",{className:"font-semibold text-white",children:c(e.symbol)}),jsx("div",{className:"text-xs text-white/60",children:new Date(e.timestamp).toLocaleString()})]}),jsx("div",{className:`text-xs px-2 py-1 rounded ${e.status==="filled"?"bg-success/20 text-success":e.status==="cancelled"?"bg-white/10 text-white/60":e.status==="pending"?"bg-yellow-500/20 text-yellow-400":"bg-blue-500/20 text-blue-400"}`,children:e.status.charAt(0).toUpperCase()+e.status.slice(1)})]}),jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Side"}),jsx("div",{className:`font-medium ${e.type==="buy"?"text-success":"text-danger"}`,children:e.type.toUpperCase()})]}),jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Shares"}),jsx("div",{className:"text-white font-medium",children:e.shares})]}),jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Price"}),jsx("div",{className:"text-white font-medium",children:e.price>0?`$${e.price.toFixed(2)}`:"Market"})]})]}),e.orderType&&jsxs("div",{className:"mt-2 text-xs",children:[jsx("span",{className:"text-white/60",children:"Type: "}),jsx("span",{className:"text-white font-medium",children:e.orderType.charAt(0).toUpperCase()+e.orderType.slice(1)})]}),e.status==="open"&&a&&jsx("button",{onClick:n=>{n.stopPropagation(),a(e.id);},className:"w-full mt-2 py-1.5 text-xs bg-white/5 hover:bg-white/10 text-white/80 rounded transition-colors",children:"Cancel Order"})]},e.id))})}d(m,"OrdersHistory");export{m as OrdersHistory};
@@ -1 +1 @@
1
- 'use strict';var chunkXXFPKDCE_js=require('../chunk-XXFPKDCE.js');require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"PositionsList",{enumerable:true,get:function(){return chunkXXFPKDCE_js.a}});
1
+ 'use strict';var lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');var m=Object.defineProperty;var a=(r,d)=>m(r,"name",{value:d,configurable:true});function g({positions:r,onPositionClick:d}){let c=a(e=>e.split(":")[1]||e,"getTickerFromSymbol");return r.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:r.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 ${d?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>d?.(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)})})}a(g,"PositionsList");exports.PositionsList=g;
@@ -1 +1 @@
1
- export{a as PositionsList}from'../chunk-NIJRO4XT.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {TrendingUp,TrendingDown}from'lucide-react';import {jsx,jsxs}from'react/jsx-runtime';var m=Object.defineProperty;var a=(r,d)=>m(r,"name",{value:d,configurable:true});function g({positions:r,onPositionClick:d}){let c=a(e=>e.split(":")[1]||e,"getTickerFromSymbol");return r.length===0?jsx("div",{className:"p-4 text-center py-8 text-white/40",children:jsx("p",{className:"text-sm",children:"No open positions"})}):jsx("div",{className:"p-4 space-y-2",children:r.map(e=>{let s=(e.currentPrice-e.avgPrice)*e.shares,v=(e.currentPrice-e.avgPrice)/e.avgPrice*100,n=e.currentPrice*e.shares;return jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${d?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>d?.(e),children:[jsxs("div",{className:"flex items-center justify-between mb-2",children:[jsx("div",{className:"font-semibold text-white",children:c(e.symbol)}),jsxs("div",{className:`flex items-center gap-1 text-sm ${s>=0?"text-success":"text-danger"}`,children:[s>=0?jsx(TrendingUp,{size:14}):jsx(TrendingDown,{size:14}),s>=0?"+":"",v.toFixed(2),"%"]})]}),jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Shares"}),jsx("div",{className:"text-white font-medium",children:e.shares})]}),jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Avg Price"}),jsxs("div",{className:"text-white font-medium",children:["$",e.avgPrice.toFixed(2)]})]})]}),jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs mt-2 pt-2 border-t border-white/10",children:[jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Current Price"}),jsxs("div",{className:"text-white font-medium",children:["$",e.currentPrice.toFixed(2)]})]}),jsxs("div",{children:[jsx("div",{className:"text-white/60",children:"Total Value"}),jsxs("div",{className:"text-white font-medium",children:["$",n.toFixed(2)]})]})]}),jsx("div",{className:"mt-2 pt-2 border-t border-white/10",children:jsxs("div",{className:"flex justify-between items-center text-xs",children:[jsx("span",{className:"text-white/60",children:"P&L"}),jsxs("span",{className:`font-semibold ${s>=0?"text-success":"text-danger"}`,children:[s>=0?"+":"","$",s.toFixed(2)]})]})})]},e.symbol)})})}a(g,"PositionsList");export{g as PositionsList};
@@ -1 +1,2 @@
1
- 'use strict';var chunkL3LBHAK5_js=require('../chunk-L3LBHAK5.js');require('../chunk-XUSV3KOD.js');module.exports=chunkL3LBHAK5_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var a=Object.defineProperty;var r=(e,t)=>a(e,"name",{value:t,configurable:true});function l(){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-screener.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({market:"america",showToolbar:true,defaultColumn:"overview",defaultScreen:"most_capitalized",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()));}},[]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}r(l,"StockScreener");var f=react.memo(l);
2
+ module.exports=f;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-NZNYBJNF.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var a=Object.defineProperty;var r=(e,t)=>a(e,"name",{value:t,configurable:true});function l(){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:"america",showToolbar:true,defaultColumn:"overview",defaultScreen:"most_capitalized",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"})})}r(l,"StockScreener");var f=memo(l);
2
+ export{f as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkQVDGUDZV_js=require('../chunk-QVDGUDZV.js');require('../chunk-XUSV3KOD.js');module.exports=chunkQVDGUDZV_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var l=Object.defineProperty;var a=(t,r)=>l(t,"name",{value:r,configurable:true});function m({symbol:t="NASDAQ:AAPL",width:r="100%",locale:n="en",colorTheme:s="dark",isTransparent:c=false}){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let i=document.createElement("script");return i.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js",i.async=true,i.innerHTML=JSON.stringify({symbol:t,width:r,locale:n,colorTheme:s,isTransparent:c}),e.current.appendChild(i),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(d=>d.remove()));}},[t,r,n,s,c]),jsxRuntime.jsx("div",{className:"tradingview-widget-container",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}a(m,"SymbolInfo");
2
+ module.exports=m;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-A47N7TW2.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var l=Object.defineProperty;var a=(t,r)=>l(t,"name",{value:r,configurable:true});function m({symbol:t="NASDAQ:AAPL",width:r="100%",locale:n="en",colorTheme:s="dark",isTransparent:c=false}){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let i=document.createElement("script");return i.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js",i.async=true,i.innerHTML=JSON.stringify({symbol:t,width:r,locale:n,colorTheme:s,isTransparent:c}),e.current.appendChild(i),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(d=>d.remove()));}},[t,r,n,s,c]),jsx("div",{className:"tradingview-widget-container",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}a(m,"SymbolInfo");
2
+ export{m as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkOUIQYPE7_js=require('../chunk-OUIQYPE7.js');require('../chunk-XUSV3KOD.js');module.exports=chunkOUIQYPE7_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var g=Object.defineProperty;var o=(t,i)=>g(t,"name",{value:i,configurable:true});function v({symbol:t="NASDAQ:AAPL",interval:i="15m",width:n="100%",height:s="500",locale:a="en",colorTheme:c="dark",isTransparent:l=false,showIntervalTabs:d=true,displayMode:u="single"}){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let r=document.createElement("script");return r.src="https://s3.tradingview.com/external-embedding/embed-widget-technical-analysis.js",r.async=true,r.innerHTML=JSON.stringify({interval:i,width:n,isTransparent:l,height:s,symbol:t,showIntervalTabs:d,displayMode:u,locale:a,colorTheme:c}),e.current.appendChild(r),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(f=>f.remove()));}},[t,i,n,s,a,c,l,d,u]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full h-[500px]",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget h-full"})})}o(v,"TechnicalAnalysis");
2
+ module.exports=v;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-5WJCKQNU.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var g=Object.defineProperty;var o=(t,i)=>g(t,"name",{value:i,configurable:true});function v({symbol:t="NASDAQ:AAPL",interval:i="15m",width:n="100%",height:s="500",locale:a="en",colorTheme:c="dark",isTransparent:l=false,showIntervalTabs:d=true,displayMode:u="single"}){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let r=document.createElement("script");return r.src="https://s3.tradingview.com/external-embedding/embed-widget-technical-analysis.js",r.async=true,r.innerHTML=JSON.stringify({interval:i,width:n,isTransparent:l,height:s,symbol:t,showIntervalTabs:d,displayMode:u,locale:a,colorTheme:c}),e.current.appendChild(r),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(f=>f.remove()));}},[t,i,n,s,a,c,l,d,u]),jsx("div",{className:"tradingview-widget-container w-full h-[500px]",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget h-full"})})}o(v,"TechnicalAnalysis");
2
+ export{v as default};
@@ -1 +1,2 @@
1
- 'use strict';var chunkBBTCLHXF_js=require('../chunk-BBTCLHXF.js');require('../chunk-XUSV3KOD.js');module.exports=chunkBBTCLHXF_js.a;
1
+ 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var n=Object.defineProperty;var r=(e,t)=>n(e,"name",{value:t,configurable:true});function p(){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-ticker-tape.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({symbols:[{proName:"FOREXCOM:SPXUSD",title:"S&P 500"},{proName:"FOREXCOM:NSXUSD",title:"US 100"},{proName:"FX_IDC:EURUSD",title:"EUR/USD"},{proName:"BITSTAMP:BTCUSD",title:"Bitcoin"},{proName:"BITSTAMP:ETHUSD",title:"Ethereum"},{description:"Tesla",proName:"NASDAQ:TSLA"},{description:"Apple",proName:"NASDAQ:AAPL"},{description:"Amazon",proName:"NASDAQ:AMZN"},{description:"NVIDIA",proName:"NASDAQ:NVDA"},{description:"Microsoft",proName:"NASDAQ:MSFT"},{description:"Google",proName:"NASDAQ:GOOGL"},{description:"Meta",proName:"NASDAQ:META"}],showSymbolLogo:true,isTransparent:false,displayMode:"adaptive",colorTheme:"dark",locale:"en"}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(a=>a.remove()));}},[]),jsxRuntime.jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}r(p,"TickerTape");var A=react.memo(p);
2
+ module.exports=A;
@@ -1 +1,2 @@
1
- export{a as default}from'../chunk-OCV63ER7.mjs';import'../chunk-CWFGLK4T.mjs';
1
+ import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';var n=Object.defineProperty;var r=(e,t)=>n(e,"name",{value:t,configurable:true});function p(){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-ticker-tape.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({symbols:[{proName:"FOREXCOM:SPXUSD",title:"S&P 500"},{proName:"FOREXCOM:NSXUSD",title:"US 100"},{proName:"FX_IDC:EURUSD",title:"EUR/USD"},{proName:"BITSTAMP:BTCUSD",title:"Bitcoin"},{proName:"BITSTAMP:ETHUSD",title:"Ethereum"},{description:"Tesla",proName:"NASDAQ:TSLA"},{description:"Apple",proName:"NASDAQ:AAPL"},{description:"Amazon",proName:"NASDAQ:AMZN"},{description:"NVIDIA",proName:"NASDAQ:NVDA"},{description:"Microsoft",proName:"NASDAQ:MSFT"},{description:"Google",proName:"NASDAQ:GOOGL"},{description:"Meta",proName:"NASDAQ:META"}],showSymbolLogo:true,isTransparent:false,displayMode:"adaptive",colorTheme:"dark",locale:"en"}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(a=>a.remove()));}},[]),jsx("div",{className:"tradingview-widget-container w-full",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}r(p,"TickerTape");var A=memo(p);
2
+ export{A as default};
@@ -1 +1 @@
1
- 'use strict';var chunkDHN3REDJ_js=require('../chunk-DHN3REDJ.js');require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"TradingPanel",{enumerable:true,get:function(){return chunkDHN3REDJ_js.a}});
1
+ 'use strict';var react=require('react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');var S=Object.defineProperty;var u=(n,o)=>S(n,"name",{value:o,configurable:true});function k({symbol:n,currentPrice:o}){let[d,f]=react.useState("buy"),[c,x]=react.useState(""),[s,p]=react.useState(null),[b,g]=react.useState(null);react.useEffect(()=>{w();},[]);let w=u(()=>{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=u(()=>{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=u(()=>s?s.holdings.find(l=>l.symbol===n):null,"getHoldingInfo")();return jsxRuntime.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-lg p-6 backdrop-blur-xl",children:[jsxRuntime.jsxs("h3",{className:"text-lg font-bold text-white mb-4",children:["Trade ",n]}),jsxRuntime.jsxs("div",{className:"flex gap-2 mb-4",children:[jsxRuntime.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:[jsxRuntime.jsx(lucideReact.TrendingUp,{size:16,className:"inline mr-2"}),"Buy"]}),jsxRuntime.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:[jsxRuntime.jsx(lucideReact.TrendingDown,{size:16,className:"inline mr-2"}),"Sell"]})]}),h&&jsxRuntime.jsxs("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:[jsxRuntime.jsx("p",{className:"text-xs text-white/60 mb-1",children:"Your Holdings"}),jsxRuntime.jsxs("p",{className:"text-sm text-white",children:[h.quantity," shares @ $",h.averagePrice.toFixed(2)," avg"]})]}),jsxRuntime.jsxs("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:[jsxRuntime.jsx("p",{className:"text-xs text-white/60 mb-1",children:"Current Price"}),jsxRuntime.jsxs("p",{className:"text-lg font-bold text-white",children:["$",o.toFixed(2)]})]}),jsxRuntime.jsxs("div",{className:"mb-4",children:[jsxRuntime.jsx("label",{className:"block text-sm font-medium text-white/80 mb-2",children:"Quantity (Shares)"}),jsxRuntime.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&&jsxRuntime.jsx("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:jsxRuntime.jsxs("div",{className:"flex justify-between items-center",children:[jsxRuntime.jsx("span",{className:"text-sm text-white/60",children:"Estimated Total"}),jsxRuntime.jsxs("span",{className:"text-lg font-bold text-white",children:["$",(parseFloat(c)*o).toFixed(2)]})]})}),jsxRuntime.jsx("div",{className:"mb-4 p-3 bg-white/5 rounded-lg",children:jsxRuntime.jsxs("div",{className:"flex justify-between items-center",children:[jsxRuntime.jsx("span",{className:"text-sm text-white/60",children:"Available Cash"}),jsxRuntime.jsxs("span",{className:"text-sm font-medium text-white",children:["$",s?.cash.toLocaleString()||"0"]})]})}),b&&jsxRuntime.jsx("div",{className:`mb-4 p-3 rounded-lg ${b.type==="success"?"bg-success/20 text-success":"bg-danger/20 text-danger"}`,children:jsxRuntime.jsx("p",{className:"text-sm",children:b.text})}),jsxRuntime.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]}),jsxRuntime.jsx("p",{className:"text-xs text-white/40 text-center mt-4",children:"This is a demo account. No real money is at risk."})]})}u(k,"TradingPanel");exports.TradingPanel=k;