@hanzo/ui 5.1.8 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/3d/button.js +1 -0
  2. package/dist/3d/button.mjs +1 -0
  3. package/dist/3d/card.js +1 -0
  4. package/dist/3d/card.mjs +1 -0
  5. package/dist/3d/carousel.js +1 -0
  6. package/dist/3d/carousel.mjs +1 -0
  7. package/dist/3d/grid.js +1 -0
  8. package/dist/3d/grid.mjs +1 -0
  9. package/dist/3d/index.js +1 -0
  10. package/dist/3d/index.mjs +1 -0
  11. package/dist/3d/marquee.js +1 -0
  12. package/dist/3d/marquee.mjs +1 -0
  13. package/dist/3d/pin.js +1 -0
  14. package/dist/3d/pin.mjs +1 -0
  15. package/dist/animation/apple-cards-carousel.js +1 -0
  16. package/dist/animation/apple-cards-carousel.mjs +1 -0
  17. package/dist/animation/apple-hello-effect.js +1 -0
  18. package/dist/animation/apple-hello-effect.mjs +1 -0
  19. package/dist/animation/beam.js +1 -0
  20. package/dist/animation/beam.mjs +1 -0
  21. package/dist/animation/cursor.js +1 -0
  22. package/dist/animation/cursor.mjs +1 -0
  23. package/dist/animation/index.js +2 -0
  24. package/dist/animation/index.mjs +2 -0
  25. package/dist/animation/testimonials.js +1 -0
  26. package/dist/animation/testimonials.mjs +1 -0
  27. package/dist/animation/tooltip.js +1 -0
  28. package/dist/animation/tooltip.mjs +1 -0
  29. package/dist/avatar.js +1 -1
  30. package/dist/avatar.mjs +1 -1
  31. package/dist/chunk-266OC746.mjs +2 -0
  32. package/dist/chunk-2B7NONPA.mjs +1 -0
  33. package/dist/chunk-2SI3T6F4.mjs +1 -0
  34. package/dist/chunk-37TVHMP2.mjs +1 -0
  35. package/dist/chunk-4A27XTBF.js +12 -0
  36. package/dist/chunk-4CJ44NSE.js +1 -0
  37. package/dist/chunk-4SKGA2GA.mjs +1 -0
  38. package/dist/chunk-4TE2JWNG.js +1 -0
  39. package/dist/chunk-4XCQFT2C.mjs +1 -0
  40. package/dist/chunk-4YMLAU5Z.js +1 -0
  41. package/dist/chunk-5RACWNGV.mjs +1 -0
  42. package/dist/chunk-A3S2QAGG.mjs +3 -0
  43. package/dist/chunk-B3L4REN3.js +1 -0
  44. package/dist/chunk-B4RJSSWX.js +1 -0
  45. package/dist/chunk-B7LBF7R7.js +1 -0
  46. package/dist/chunk-BIWGFJPQ.mjs +1 -0
  47. package/dist/chunk-BOBL44QL.mjs +2 -0
  48. package/dist/chunk-BUMLLGES.mjs +1 -0
  49. package/dist/chunk-BYFLZ6DP.js +1 -0
  50. package/dist/chunk-C66RILAI.mjs +42 -0
  51. package/dist/chunk-CDBOLI7U.js +42 -0
  52. package/dist/chunk-CDO4BR6V.js +1 -0
  53. package/dist/chunk-CGUI5CEC.mjs +1 -0
  54. package/dist/chunk-CICZVOAY.js +1 -0
  55. package/dist/chunk-DB3WJTS4.js +1 -0
  56. package/dist/chunk-DKL2FM7J.mjs +1 -0
  57. package/dist/chunk-DNYROKHM.mjs +1 -0
  58. package/dist/chunk-DRLJ6Z7Q.js +1 -0
  59. package/dist/chunk-DYF5HRXR.mjs +1 -0
  60. package/dist/chunk-EATSKPYS.js +10 -0
  61. package/dist/chunk-EGN6SLB7.js +3 -0
  62. package/dist/chunk-EK5T4DQ2.js +2 -0
  63. package/dist/chunk-ELR6GOUX.mjs +1 -0
  64. package/dist/chunk-EQAPJD4H.mjs +1 -0
  65. package/dist/chunk-FCHJPQ73.mjs +1 -0
  66. package/dist/chunk-FE2O6776.js +1 -0
  67. package/dist/chunk-FIN2IX2D.mjs +1 -0
  68. package/dist/chunk-FQO25CNQ.mjs +1 -0
  69. package/dist/chunk-FX7VUERX.mjs +2 -0
  70. package/dist/chunk-G4X4J5EW.js +1 -0
  71. package/dist/chunk-GFWDGZO7.mjs +1 -0
  72. package/dist/chunk-GTFU3T2U.mjs +1 -0
  73. package/dist/chunk-GTUCZ5TW.js +1 -0
  74. package/dist/chunk-HEZV2WAY.js +2 -0
  75. package/dist/chunk-HIDGPSBX.js +1 -0
  76. package/dist/chunk-HLJAWNJK.js +1 -0
  77. package/dist/chunk-HM47SDFC.mjs +1 -0
  78. package/dist/chunk-HQGRRTIW.mjs +2 -0
  79. package/dist/chunk-J4DJZHOE.js +2 -0
  80. package/dist/chunk-J5KX3VTM.js +1 -0
  81. package/dist/chunk-JNNKXOA3.js +1 -0
  82. package/dist/chunk-JRWBF5SH.js +1 -0
  83. package/dist/chunk-JTTJLJON.js +2 -0
  84. package/dist/chunk-JZGTSHZ4.js +1 -0
  85. package/dist/chunk-LADFCKQD.mjs +1 -0
  86. package/dist/chunk-LHKPSY4L.js +1 -0
  87. package/dist/chunk-LMOX4GTY.js +1 -0
  88. package/dist/chunk-LYXX7LU2.js +6 -0
  89. package/dist/chunk-M4GZKMQS.mjs +6 -0
  90. package/dist/chunk-MJDVKTGX.mjs +1 -0
  91. package/dist/chunk-MPZRRATY.mjs +1 -0
  92. package/dist/chunk-MUI6SJLP.js +1 -0
  93. package/dist/chunk-NBXNOMXS.mjs +2 -0
  94. package/dist/chunk-NE7ICOQE.mjs +2 -0
  95. package/dist/chunk-NL5ZWDIJ.mjs +1 -0
  96. package/dist/chunk-NS6CEKHH.mjs +1 -0
  97. package/dist/chunk-O6RJT46G.js +1 -0
  98. package/dist/chunk-OC34KEWQ.mjs +1 -0
  99. package/dist/chunk-OL63HLUI.js +2 -0
  100. package/dist/chunk-OLTPOUB2.js +2 -0
  101. package/dist/chunk-OQOBF7QQ.js +1 -0
  102. package/dist/chunk-OY2LIJR2.mjs +2 -0
  103. package/dist/chunk-PE5GANLF.mjs +1 -0
  104. package/dist/chunk-PIDMTL36.mjs +1 -0
  105. package/dist/chunk-QGHPGSQL.mjs +2 -0
  106. package/dist/chunk-QLB43TFO.mjs +1 -0
  107. package/dist/chunk-R2JKVWNB.js +2 -0
  108. package/dist/chunk-RAT4U2JG.mjs +1 -0
  109. package/dist/chunk-RBURLSG7.js +2 -0
  110. package/dist/chunk-RO3D3W57.js +1 -0
  111. package/dist/chunk-RPOB4E3W.js +1 -0
  112. package/dist/chunk-RVPP46TI.js +2 -0
  113. package/dist/chunk-S2UB25HB.mjs +12 -0
  114. package/dist/chunk-SCYHSLR2.js +2 -0
  115. package/dist/chunk-SRPQZYB6.js +1 -0
  116. package/dist/chunk-TCTFHNND.js +1 -0
  117. package/dist/chunk-TG6V2JL2.js +1 -0
  118. package/dist/chunk-TGL6VBFN.js +1 -0
  119. package/dist/chunk-TNF5G2ZW.mjs +1 -0
  120. package/dist/chunk-TXND3LRQ.mjs +1 -0
  121. package/dist/chunk-U7CUKU4W.mjs +1 -0
  122. package/dist/chunk-UPRWI4ON.mjs +2 -0
  123. package/dist/chunk-V23X5ZD6.mjs +2 -0
  124. package/dist/chunk-VFFLOHVQ.mjs +1 -0
  125. package/dist/chunk-VHB7M646.mjs +10 -0
  126. package/dist/chunk-VJDDFZ7N.mjs +2 -0
  127. package/dist/chunk-VN2BKXHJ.js +1 -0
  128. package/dist/chunk-VT77IEYF.mjs +1 -0
  129. package/dist/chunk-VTJ6QUCR.js +1 -0
  130. package/dist/chunk-VUIJAFJC.js +1 -0
  131. package/dist/chunk-WN767YS2.mjs +2 -0
  132. package/dist/chunk-WREKV6XQ.mjs +1 -0
  133. package/dist/chunk-XBDQSMTI.js +2 -0
  134. package/dist/chunk-XFK7RTKE.js +1 -0
  135. package/dist/chunk-XJTWK37Q.mjs +2 -0
  136. package/dist/chunk-XMYCJ2B5.js +1 -0
  137. package/dist/chunk-XOGRJZXX.mjs +1 -0
  138. package/dist/chunk-XOQCRR5Q.js +2 -0
  139. package/dist/chunk-Y6SIRKG3.js +2 -0
  140. package/dist/chunk-YLY2B6UX.mjs +1 -0
  141. package/dist/chunk-YQUF7KPG.mjs +1 -0
  142. package/dist/chunk-Z3DNBRF4.js +1 -0
  143. package/dist/chunk-ZA3JIBDG.js +1 -0
  144. package/dist/chunk-ZDOIGP2L.js +1 -0
  145. package/dist/code/block.js +1 -0
  146. package/dist/code/block.mjs +1 -0
  147. package/dist/code/compare.js +1 -0
  148. package/dist/code/compare.mjs +1 -0
  149. package/dist/code/diff.js +1 -0
  150. package/dist/code/diff.mjs +1 -0
  151. package/dist/code/editor.js +1 -0
  152. package/dist/code/editor.mjs +1 -0
  153. package/dist/code/explorer.js +1 -0
  154. package/dist/code/explorer.mjs +1 -0
  155. package/dist/code/index.js +1 -0
  156. package/dist/code/index.mjs +1 -0
  157. package/dist/code/preview.js +1 -0
  158. package/dist/code/preview.mjs +1 -0
  159. package/dist/code/snippet.js +1 -0
  160. package/dist/code/snippet.mjs +1 -0
  161. package/dist/code/tabs.js +1 -0
  162. package/dist/code/tabs.mjs +1 -0
  163. package/dist/code/terminal.js +1 -0
  164. package/dist/code/terminal.mjs +1 -0
  165. package/dist/device/index.js +1 -0
  166. package/dist/device/index.mjs +0 -0
  167. package/dist/dock/basic.js +1 -0
  168. package/dist/dock/basic.mjs +1 -0
  169. package/dist/dock/index.js +1 -0
  170. package/dist/dock/index.mjs +1 -0
  171. package/dist/dock/limelight-nav.js +1 -0
  172. package/dist/dock/limelight-nav.mjs +1 -0
  173. package/dist/dock/macos.js +1 -0
  174. package/dist/dock/macos.mjs +1 -0
  175. package/dist/dock/menu.js +1 -0
  176. package/dist/dock/menu.mjs +1 -0
  177. package/dist/dock/message.js +1 -0
  178. package/dist/dock/message.mjs +1 -0
  179. package/dist/finance/AdvancedChart.js +1 -0
  180. package/dist/finance/AdvancedChart.mjs +1 -0
  181. package/dist/finance/CompanyProfile.js +1 -0
  182. package/dist/finance/CompanyProfile.mjs +1 -0
  183. package/dist/finance/CryptoScreener.js +1 -0
  184. package/dist/finance/CryptoScreener.mjs +1 -0
  185. package/dist/finance/Financials.js +1 -0
  186. package/dist/finance/Financials.mjs +1 -0
  187. package/dist/finance/ForexScreener.js +1 -0
  188. package/dist/finance/ForexScreener.mjs +1 -0
  189. package/dist/finance/MarketOverview.js +1 -0
  190. package/dist/finance/MarketOverview.mjs +1 -0
  191. package/dist/finance/NewsTimeline.js +1 -0
  192. package/dist/finance/NewsTimeline.mjs +1 -0
  193. package/dist/finance/OrderEntry.js +1 -0
  194. package/dist/finance/OrderEntry.mjs +1 -0
  195. package/dist/finance/OrdersHistory.js +1 -0
  196. package/dist/finance/OrdersHistory.mjs +1 -0
  197. package/dist/finance/PositionsList.js +1 -0
  198. package/dist/finance/PositionsList.mjs +1 -0
  199. package/dist/finance/StockScreener.js +1 -0
  200. package/dist/finance/StockScreener.mjs +1 -0
  201. package/dist/finance/SymbolInfo.js +1 -0
  202. package/dist/finance/SymbolInfo.mjs +1 -0
  203. package/dist/finance/TechnicalAnalysis.js +1 -0
  204. package/dist/finance/TechnicalAnalysis.mjs +1 -0
  205. package/dist/finance/TickerTape.js +1 -0
  206. package/dist/finance/TickerTape.mjs +1 -0
  207. package/dist/finance/TradingPanel.js +1 -0
  208. package/dist/finance/TradingPanel.mjs +1 -0
  209. package/dist/finance/index.js +1 -0
  210. package/dist/finance/index.mjs +1 -0
  211. package/dist/form/index.js +1 -0
  212. package/dist/form/index.mjs +1 -0
  213. package/dist/index.js +1 -1
  214. package/dist/index.mjs +1 -1
  215. package/dist/navigation/index.js +1 -0
  216. package/dist/navigation/index.mjs +1 -0
  217. package/dist/pattern/grid.js +1 -0
  218. package/dist/pattern/grid.mjs +1 -0
  219. package/dist/pattern/index.js +1 -0
  220. package/dist/pattern/index.mjs +1 -0
  221. package/dist/primitives/index.js +1 -1
  222. package/dist/primitives/index.mjs +1 -1
  223. package/dist/project/gantt.js +1 -0
  224. package/dist/project/gantt.mjs +1 -0
  225. package/dist/project/index.js +1 -0
  226. package/dist/project/index.mjs +1 -0
  227. package/dist/project/kanban.js +1 -0
  228. package/dist/project/kanban.mjs +1 -0
  229. package/dist/project/list.js +1 -0
  230. package/dist/project/list.mjs +1 -0
  231. package/dist/ui/announcement.js +1 -0
  232. package/dist/ui/announcement.mjs +1 -0
  233. package/dist/ui/avatar-group.js +1 -0
  234. package/dist/ui/avatar-group.mjs +1 -0
  235. package/dist/ui/banner.js +1 -0
  236. package/dist/ui/banner.mjs +1 -0
  237. package/dist/ui/cursor.js +1 -0
  238. package/dist/ui/cursor.mjs +1 -0
  239. package/dist/ui/index.js +1 -0
  240. package/dist/ui/index.mjs +1 -0
  241. package/dist/ui/marquee.js +1 -0
  242. package/dist/ui/marquee.mjs +1 -0
  243. package/dist/ui/pill.js +1 -0
  244. package/dist/ui/pill.mjs +1 -0
  245. package/dist/ui/spinner.js +1 -0
  246. package/dist/ui/spinner.mjs +1 -0
  247. package/dist/ui/tags.js +1 -0
  248. package/dist/ui/tags.mjs +1 -0
  249. package/dist/ui/ticker.js +1 -0
  250. package/dist/ui/ticker.mjs +1 -0
  251. package/finance/README.md +164 -0
  252. package/finance/components/AdvancedChart.tsx +58 -0
  253. package/finance/components/CompanyProfile.tsx +65 -0
  254. package/finance/components/CryptoScreener.tsx +55 -0
  255. package/finance/components/Financials.tsx +71 -0
  256. package/finance/components/ForexScreener.tsx +56 -0
  257. package/finance/components/MarketOverview.tsx +114 -0
  258. package/finance/components/NewsTimeline.tsx +54 -0
  259. package/finance/components/OrderEntry.tsx +157 -0
  260. package/finance/components/OrdersHistory.tsx +103 -0
  261. package/finance/components/PositionsList.tsx +85 -0
  262. package/finance/components/StockScreener.tsx +56 -0
  263. package/finance/components/SymbolInfo.tsx +62 -0
  264. package/finance/components/TechnicalAnalysis.tsx +74 -0
  265. package/finance/components/TickerTape.tsx +66 -0
  266. package/finance/components/TradingPanel.tsx +238 -0
  267. package/finance/components/index.ts +40 -0
  268. package/finance/index.ts +23 -0
  269. package/package.json +127 -6
  270. package/style/theme-provider.tsx +1 -1
  271. package/dist/chunk-BBXIHLTX.mjs +0 -1
  272. package/dist/chunk-EZN2P3FV.js +0 -1
@@ -0,0 +1,42 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),s=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),badge=require('@hanzo/ui/badge'),button=require('@hanzo/ui/button'),snippet=require('@hanzo/ui/code/snippet'),separator=require('@hanzo/ui/separator'),tabs=require('@hanzo/ui/tabs'),toggle=require('@hanzo/ui/toggle'),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 s__namespace=/*#__PURE__*/_interopNamespace(s);var de=classVarianceAuthority.cva("relative overflow-hidden rounded-lg border bg-background",{variants:{size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{size:"default"}}),pe=chunkEI7MMDWY_js.a(m=>{let h=m.find(r=>r.type==="html"),n=m.filter(r=>r.type==="css"),u=m.filter(r=>r.type==="js"),l=h?.content||"<div>No HTML file provided</div>";if(n.length>0&&(l=`<style>${n.map(c=>c.content).join(`
2
+ `)}</style>
3
+ ${l}`),u.length>0){let r=u.map(c=>c.content).join(`
4
+ `);l=`${l}
5
+ <script>${r}</script>`;}return l},"runHTMLCode"),ge=`
6
+ <script>
7
+ const originalConsole = window.console;
8
+ const logs = [];
9
+
10
+ ['log', 'warn', 'error', 'info'].forEach(method => {
11
+ window.console[method] = function(...args) {
12
+ logs.push({
13
+ type: method,
14
+ content: args.map(arg =>
15
+ typeof arg === 'object' ? JSON.stringify(arg, null, 2) : String(arg)
16
+ ).join(' '),
17
+ timestamp: Date.now()
18
+ });
19
+
20
+ // Also call original console method
21
+ originalConsole[method].apply(originalConsole, arguments);
22
+
23
+ // Send to parent
24
+ window.parent.postMessage({
25
+ type: 'console',
26
+ data: logs[logs.length - 1]
27
+ }, '*');
28
+ };
29
+ });
30
+
31
+ window.addEventListener('error', (e) => {
32
+ window.parent.postMessage({
33
+ type: 'error',
34
+ data: {
35
+ type: 'error',
36
+ content: e.message + ' at ' + e.filename + ':' + e.lineno,
37
+ timestamp: Date.now()
38
+ }
39
+ }, '*');
40
+ });
41
+ </script>
42
+ `,ue=s__namespace.forwardRef(({className:m,size:h,files:n,defaultFile:u,showPreview:l=true,showConsole:r=true,autoRun:c=false,maxHeight:M="600px",previewHeight:z="300px",consoleHeight:B="150px",allowFullscreen:D=true,customRunner:x,...I},A)=>{let [b,T]=s__namespace.useState(u||n[0]?.filename||""),[$,O]=s__namespace.useState(""),[P,R]=s__namespace.useState(false),[d,f]=s__namespace.useState([]),[v,q]=s__namespace.useState(l),[y,J]=s__namespace.useState(r),[p,k]=s__namespace.useState(false),[X,S]=s__namespace.useState({}),N=s__namespace.useRef(null);n.find(e=>e.filename===b)||n[0];s__namespace.useEffect(()=>{let e=chunkEI7MMDWY_js.a(a=>{(a.data?.type==="console"||a.data?.type==="error")&&f(i=>[...i,a.data.data]);},"handleMessage");return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]);let C=s__namespace.useCallback(async()=>{R(true),f([]);try{let e;if(x?e=await x(n):e=pe(n),e=ge+e,O(e),N.current){let a=N.current.contentDocument;a&&(a.open(),a.write(e),a.close());}}catch(e){f([{type:"error",content:e instanceof Error?e.message:String(e),timestamp:Date.now()}]);}finally{R(false);}},[n,x]);s__namespace.useEffect(()=>{if(c){let e=setTimeout(C,1e3);return ()=>clearTimeout(e)}},[n,c,C]);let G=s__namespace.useCallback(async e=>{let a=n.find(i=>i.filename===e);if(a)try{await navigator.clipboard.writeText(a.content),S(i=>({...i,[e]:!0})),setTimeout(()=>{S(i=>({...i,[e]:!1}));},2e3);}catch(i){console.error("Failed to copy code:",i);}},[n]),K=chunkEI7MMDWY_js.a(()=>{f([]);},"clearConsole"),Q=chunkEI7MMDWY_js.a(()=>jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Terminal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Console"}),d.length>0&&jsxRuntime.jsx(badge.Badge,{variant:"secondary",className:"text-xs",children:d.length})]}),jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:K,className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto p-2 space-y-1 font-mono text-xs",children:d.length===0?jsxRuntime.jsx("div",{className:"text-muted-foreground italic",children:"No output"}):d.map((e,a)=>jsxRuntime.jsxs("div",{className:utils.cn("flex items-start gap-2 p-2 rounded",e.type==="error"&&"bg-red-500/10 text-red-600 dark:text-red-400",e.type==="log"&&"bg-blue-500/10 text-blue-600 dark:text-blue-400",e.type==="output"&&"bg-green-500/10 text-green-600 dark:text-green-400"),children:[jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(e.timestamp).toLocaleTimeString()}),jsxRuntime.jsx("pre",{className:"flex-1 whitespace-pre-wrap break-words",children:e.content})]},a))})]}),"renderConsole"),U=p?"fixed inset-0 z-50 bg-background":"";return jsxRuntime.jsxs("div",{ref:A,className:utils.cn(de({size:h}),U,m),style:{maxHeight:p?"100vh":M},...I,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[jsxRuntime.jsx(tabs.Tabs,{value:b,onValueChange:T,className:"flex-1",children:jsxRuntime.jsx(tabs.TabsList,{className:"h-auto p-0 bg-transparent",children:n.map(e=>jsxRuntime.jsxs(tabs.TabsTrigger,{value:e.filename,className:"relative flex items-center gap-2 data-[state=active]:bg-muted",children:[jsxRuntime.jsx("span",{children:e.filename}),jsxRuntime.jsx(badge.Badge,{variant:"outline",className:"text-xs",children:e.language}),jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:a=>{a.stopPropagation(),G(e.filename);},className:"h-6 w-6 p-0 opacity-0 group-hover:opacity-100",children:X[e.filename]?jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3 w-3"})})]},e.filename))})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(toggle.Toggle,{pressed:v,onPressedChange:q,"aria-label":"Toggle preview",size:"sm",children:v?jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"})}),jsxRuntime.jsx(toggle.Toggle,{pressed:y,onPressedChange:J,"aria-label":"Toggle console",size:"sm",children:jsxRuntime.jsx(lucideReact.Terminal,{className:"h-4 w-4"})}),jsxRuntime.jsxs(button.Button,{variant:"outline",size:"sm",onClick:C,disabled:P,className:"gap-2",children:[P?jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4 animate-spin"}):jsxRuntime.jsx(lucideReact.Play,{className:"h-4 w-4"}),"Run"]}),D&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:()=>k(!p),className:"h-8 w-8 p-0",children:p?jsxRuntime.jsx(lucideReact.Square,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0",children:jsxRuntime.jsx(tabs.Tabs,{value:b,onValueChange:T,children:n.map(e=>jsxRuntime.jsx(tabs.TabsContent,{value:e.filename,className:"m-0 h-full",children:jsxRuntime.jsx(snippet.CodeSnippet,{code:e.content,language:e.language,showLineNumbers:true,showCopyButton:false,showHeader:false,maxHeight:"100%",className:"border-0 rounded-none"})},e.filename))})}),(v||y)&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(separator.Separator,{}),jsxRuntime.jsxs("div",{className:"flex flex-col lg:flex-row min-h-0",children:[v&&jsxRuntime.jsxs("div",{className:"flex-1 min-h-0 border-r last:border-r-0",style:{height:z},children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-2 bg-muted/30",children:[jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Preview"}),d.filter(e=>e.type==="error").length>0&&jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-4 w-4 text-red-500"})]}),jsxRuntime.jsx("iframe",{ref:N,className:"w-full h-full bg-white",sandbox:"allow-scripts allow-same-origin",srcDoc:$})]}),y&&jsxRuntime.jsx("div",{className:"flex-1 min-h-0",style:{height:B},children:Q()})]})]})]}),p&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>k(false)})]})});ue.displayName="CodePreview";exports.a=de;exports.b=ue;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),t=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var l=t__namespace.forwardRef(({className:i,children:r,speed:a=50,direction:o="left",pauseOnHover:n=true,...s},c)=>jsxRuntime.jsx("div",{ref:c,className:chunkDKPVJSBC_js.a("group relative overflow-hidden",i),...s,children:jsxRuntime.jsxs("div",{className:chunkDKPVJSBC_js.a("flex w-fit animate-scroll",n&&"group-hover:[animation-play-state:paused]"),style:{animationDuration:`${a}s`,animationDirection:o==="right"?"reverse":"normal"},children:[r,r]})}));l.displayName="Ticker";exports.a=l;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-TU67EJEW.mjs';import {a}from'./chunk-YSXGDEY5.mjs';import*as e from'react';import {jsxs,jsx}from'react/jsx-runtime';var R=e.forwardRef(({className:u,children:m,cursorText:r,cursorSize:s=20,...d},f)=>{let[o,p]=e.useState({x:0,y:0}),[v,n]=e.useState(false),M=a(t=>{let a=t.currentTarget.getBoundingClientRect();p({x:t.clientX-a.left,y:t.clientY-a.top});},"handleMouseMove");return jsxs("div",{ref:f,className:a$1("relative cursor-none",u),onMouseMove:M,onMouseEnter:()=>n(true),onMouseLeave:()=>n(false),...d,children:[m,v&&jsx("div",{className:"pointer-events-none absolute z-50 flex items-center justify-center rounded-full bg-primary/20 backdrop-blur-sm transition-transform",style:{left:o.x,top:o.y,width:s,height:s,transform:"translate(-50%, -50%)"},children:r&&jsx("span",{className:"text-xs font-medium text-primary",children:r})})]})});R.displayName="Cursor";export{R as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),a=require('react'),classVarianceAuthority=require('class-variance-authority'),framerMotion=require('framer-motion'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var Y=classVarianceAuthority.cva(["relative overflow-hidden whitespace-nowrap","transform-gpu will-change-transform","[perspective:1000px]"],{variants:{variant:{default:["bg-background text-foreground","[&_.marquee-content]:text-current"],neon:["bg-black text-cyan-400","[&_.marquee-content]:text-cyan-400","[&_.marquee-content]:drop-shadow-[0_0_10px_currentColor]","[&_.marquee-content]:animate-pulse"],rainbow:["bg-black","[&_.marquee-content]:bg-gradient-to-r [&_.marquee-content]:from-red-500 [&_.marquee-content]:via-yellow-500 [&_.marquee-content]:via-green-500 [&_.marquee-content]:via-blue-500 [&_.marquee-content]:to-purple-500","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"],metallic:["bg-slate-900","[&_.marquee-content]:bg-gradient-to-b [&_.marquee-content]:from-gray-200 [&_.marquee-content]:via-gray-400 [&_.marquee-content]:to-gray-600","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent"],fire:["bg-black","[&_.marquee-content]:bg-gradient-to-t [&_.marquee-content]:from-red-600 [&_.marquee-content]:via-orange-500 [&_.marquee-content]:to-yellow-400","[&_.marquee-content]:bg-clip-text [&_.marquee-content]:text-transparent","[&_.marquee-content]:drop-shadow-[0_0_20px_#ff6600]"],glass:["bg-white/10 backdrop-blur-sm","[&_.marquee-content]:text-white/90","[&_.marquee-content]:drop-shadow-[0_0_10px_rgba(255,255,255,0.3)]"]},size:{sm:"h-8 text-sm [&_.marquee-content]:py-1",default:"h-12 text-base [&_.marquee-content]:py-2",lg:"h-16 text-lg [&_.marquee-content]:py-3",xl:"h-20 text-xl [&_.marquee-content]:py-4","2xl":"h-24 text-2xl [&_.marquee-content]:py-5","3xl":"h-32 text-3xl [&_.marquee-content]:py-6"},direction:{left:"",right:"",up:"flex-col",down:"flex-col"},perspective:{none:"[perspective:none]",sm:"[perspective:500px]",default:"[perspective:1000px]",lg:"[perspective:1500px]",xl:"[perspective:2000px]"}},defaultVariants:{variant:"default",size:"default",direction:"left",perspective:"default"}}),l=a__namespace.forwardRef(({className:r,variant:n,size:v,direction:e="left",perspective:b,children:c,speed:u=50,pauseOnHover:d=false,reverse:g=false,repeat:D=5,gap:m=0,rotateX:h=0,rotateY:P=0,rotateZ:H=0,autoFill:$=false,gradient:L=false,gradientColor:x="#ffffff",gradientWidth:q=200,style:T,...O},G)=>{let[_,N]=a__namespace.useState(0),[i,k]=a__namespace.useState(0),y=a__namespace.useRef(null),M=a__namespace.useRef(null);a__namespace.useEffect(()=>{let p=chunkEI7MMDWY_js.a(()=>{if(y.current&&M.current){let t=y.current.getBoundingClientRect(),s=M.current.getBoundingClientRect();e==="left"||e==="right"?(N(t.width),k(s.width)):(N(t.height),k(s.height));}},"measureDimensions");return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[e,c]);let F=a__namespace.useMemo(()=>i===0?20:i/u,[i,u]),z=a__namespace.useMemo(()=>$&&_>0&&i>0?Math.ceil(_/i)+2:D,[$,_,i,D]),C=chunkEI7MMDWY_js.a(()=>{let t=i+m,s={};return e==="left"?s={x:g?[t,-t]:[-t,t]}:e==="right"?s={x:g?[-t,t]:[t,-t]}:e==="up"?s={y:g?[t,-t]:[-t,t]}:e==="down"&&(s={y:g?[-t,t]:[t,-t]}),{animate:s,transition:{duration:F,ease:"linear",repeat:1/0}}},"getAnimationProps"),I=`perspective(1000px) rotateX(${h}deg) rotateY(${P}deg) rotateZ(${H}deg)`,V=L?{maskImage:`linear-gradient(to right, transparent, ${x} ${q}px, ${x} calc(100% - ${q}px), transparent)`,WebkitMaskImage:`linear-gradient(to right, transparent, ${x} ${q}px, ${x} calc(100% - ${q}px), transparent)`}:{};return jsxRuntime.jsx("div",{ref:y,className:utils.cn(Y({variant:n,size:v,direction:e,perspective:b}),"flex items-center",e==="up"||e==="down"?"flex-col":"flex-row",r),style:{...T,transform:I,...V},...O,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:M,className:utils.cn("marquee-content flex shrink-0 font-bold",e==="up"||e==="down"?"flex-col":"flex-row",d&&"hover:[animation-play-state:paused]"),style:{gap:`${m}px`},...C(),children:Array.from({length:z}).map((p,t)=>jsxRuntime.jsxs(a__namespace.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.cn("flex shrink-0 items-center justify-center",e==="up"||e==="down"?"flex-col":"flex-row"),style:{transform:`rotateX(${h}deg) rotateY(${P}deg) rotateZ(${H}deg)`,transformStyle:"preserve-3d"},children:c}),t<z-1&&m>0&&jsxRuntime.jsx("div",{style:{width:e==="up"||e==="down"?"100%":`${m}px`,height:e==="up"||e==="down"?`${m}px`:"100%"}})]},t))})})});l.displayName="Marquee3D";var f={Hero:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"rainbow",size:"3xl",speed:30,rotateX:-10,gradient:true,...r})),Neon:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"neon",size:"xl",speed:40,rotateY:5,pauseOnHover:true,...r})),Metallic:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"metallic",size:"lg",speed:35,rotateX:-5,rotateY:2,gradient:true,gradientColor:"#c4c4c4",...r})),Fire:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"fire",size:"2xl",speed:60,rotateZ:1,gradient:true,gradientColor:"#ff6600",...r})),Glass:a__namespace.forwardRef((r,n)=>jsxRuntime.jsx(l,{ref:n,variant:"glass",size:"lg",speed:25,rotateX:-8,pauseOnHover:true,gradient:true,gradientColor:"rgba(255,255,255,0.9)",...r}))};f.Hero.displayName="Marquee3DPreset.Hero";f.Neon.displayName="Marquee3DPreset.Neon";f.Metallic.displayName="Marquee3DPreset.Metallic";f.Fire.displayName="Marquee3DPreset.Fire";f.Glass.displayName="Marquee3DPreset.Glass";var A=a__namespace.forwardRef(({children:r,floatIntensity:n=10,floatSpeed:v=3,...e},b)=>{let c=typeof r=="string"?r:"";return jsxRuntime.jsx(l,{ref:b,...e,children:c?jsxRuntime.jsx("div",{className:"flex space-x-1",children:c.split("").map((u,d)=>jsxRuntime.jsx(framerMotion.motion.span,{className:"inline-block",animate:{y:[0,-n,0],rotateX:[0,5,0],rotateY:[0,2,0]},transition:{duration:v,ease:"easeInOut",repeat:1/0,delay:d*.1},children:u===" "?"\xA0":u},d))}):r})});A.displayName="Marquee3DFloating";exports.a=Y;exports.b=l;exports.c=f;exports.d=A;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),o=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var g=classVarianceAuthority.cva("inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-sm font-medium transition-colors",{variants:{variant:{default:"bg-primary/10 text-primary hover:bg-primary/20",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",success:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",warning:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",error:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"}},defaultVariants:{variant:"default"}}),m=o__namespace.forwardRef(({className:n,variant:l,onRemove:e,children:s,...i},d)=>jsxRuntime.jsxs("span",{ref:d,className:chunkDKPVJSBC_js.a(g({variant:l}),n),...i,children:[s,e&&jsxRuntime.jsxs("button",{type:"button",onClick:e,className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]}));m.displayName="Pill";exports.a=g;exports.b=m;
@@ -0,0 +1 @@
1
+ import*as d from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsx,jsxs}from'react/jsx-runtime';var o=d.forwardRef(({className:r,tasks:s=[],...n},i)=>jsx("div",{ref:i,className:cn("rounded-lg border bg-card text-card-foreground shadow-sm",r),...n,children:jsx("div",{className:"p-6",children:jsx("div",{className:"space-y-4",children:s.length===0?jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-sm text-muted-foreground",children:"No tasks available. Add tasks to display Gantt chart."})}):s.map(t=>jsxs("div",{className:"space-y-2",children:[jsxs("div",{className:"flex items-center justify-between text-sm",children:[jsx("span",{className:"font-medium",children:t.name}),jsxs("span",{className:"text-muted-foreground",children:[t.progress??0,"%"]})]}),jsx("div",{className:"h-8 rounded-md bg-muted",children:jsx("div",{className:"h-full rounded-md bg-primary",style:{width:`${t.progress??0}%`}})}),jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[jsx("span",{children:t.start.toLocaleDateString()}),jsx("span",{children:t.end.toLocaleDateString()})]})]},t.id))})})}));o.displayName="Gantt";export{o as a};
@@ -0,0 +1 @@
1
+ import {a as a$1,b,c}from'./chunk-TXND3LRQ.mjs';import {a}from'./chunk-TU67EJEW.mjs';import*as p from'react';import {jsxs,jsx}from'react/jsx-runtime';var f=p.forwardRef(({className:v,items:l,max:o=5,...m},b$1)=>{let A=l.slice(0,o),c$1=l.length-o;return jsxs("div",{ref:b$1,className:a("flex -space-x-4",v),...m,children:[A.map((a,d)=>jsxs(a$1,{className:"border-2 border-background",children:[jsx(b,{src:a.src,alt:a.alt}),jsx(c,{children:a.fallback})]},d)),c$1>0&&jsx(a$1,{className:"border-2 border-background",children:jsxs(c,{children:["+",c$1]})})]})});f.displayName="AvatarGroup";export{f as a};
@@ -0,0 +1 @@
1
+ 'use strict';var d=require('react'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var d__namespace=/*#__PURE__*/_interopNamespace(d);var o=d__namespace.forwardRef(({className:r,tasks:s=[],...n},i)=>jsxRuntime.jsx("div",{ref:i,className:utils.cn("rounded-lg border bg-card text-card-foreground shadow-sm",r),...n,children:jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx("div",{className:"space-y-4",children:s.length===0?jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:"No tasks available. Add tasks to display Gantt chart."})}):s.map(t=>jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:t.name}),jsxRuntime.jsxs("span",{className:"text-muted-foreground",children:[t.progress??0,"%"]})]}),jsxRuntime.jsx("div",{className:"h-8 rounded-md bg-muted",children:jsxRuntime.jsx("div",{className:"h-full rounded-md bg-primary",style:{width:`${t.progress??0}%`}})}),jsxRuntime.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[jsxRuntime.jsx("span",{children:t.start.toLocaleDateString()}),jsxRuntime.jsx("span",{children:t.end.toLocaleDateString()})]})]},t.id))})})}));o.displayName="Gantt";exports.a=o;
@@ -0,0 +1 @@
1
+ import*as e from'react';import {AnimatePresence,motion}from'framer-motion';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var u=e.forwardRef(({className:r,content:i,children:n,delay:s=0,...l},d)=>{let[c,t]=e.useState(false);return jsxs("div",{ref:d,className:cn("relative inline-block",r),onMouseEnter:()=>t(true),onMouseLeave:()=>t(false),...l,children:[n,jsx(AnimatePresence,{children:c&&jsxs(motion.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2,delay:s/1e3,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 px-3 py-1.5 bg-popover text-popover-foreground text-sm rounded-md shadow-md whitespace-nowrap z-50",children:[i,jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-popover"})]})})]})});u.displayName="AnimatedTooltip";export{u as a};
@@ -0,0 +1,10 @@
1
+ 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),p=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var p__namespace=/*#__PURE__*/_interopNamespace(p);var M=p__namespace.forwardRef(({variant:k="dots",size:d=4,gap:l=20,color:i="currentColor",opacity:r=.4,strokeWidth:a=1,fade:f=false,gradient:o,animation:c,offset:m,maxArea:h,className:$,style:O,...C},G)=>{let g=p__namespace.useId(),u=p__namespace.useId(),w=p__namespace.useId(),e=typeof d=="number"?{width:d,height:d}:{width:d.width??4,height:d.height??4},n=typeof l=="number"?{x:l,y:l}:{x:l.x??20,y:l.y??20},x={x:m?.x??0,y:m?.y??0},P=chunkEI7MMDWY_js.a(()=>{switch(k){case "dots":return jsxRuntime.jsx("circle",{cx:e.width/2,cy:e.height/2,r:e.width/2,fill:i,opacity:r});case "lines":return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("line",{x1:"0",y1:"0",x2:"0",y2:n.y,stroke:i,strokeWidth:a,opacity:r}),jsxRuntime.jsx("line",{x1:"0",y1:"0",x2:n.x,y2:"0",stroke:i,strokeWidth:a,opacity:r})]});case "crosses":return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("line",{x1:e.width/2,y1:"0",x2:e.width/2,y2:e.height,stroke:i,strokeWidth:a,opacity:r}),jsxRuntime.jsx("line",{x1:"0",y1:e.height/2,x2:e.width,y2:e.height/2,stroke:i,strokeWidth:a,opacity:r})]});case "plus":return jsxRuntime.jsx("path",{d:`M ${e.width/2} 0 L ${e.width/2} ${e.height} M 0 ${e.height/2} L ${e.width} ${e.height/2}`,stroke:i,strokeWidth:a,opacity:r,fill:"none",strokeLinecap:"round"});case "squares":return jsxRuntime.jsx("rect",{width:e.width,height:e.height,fill:"none",stroke:i,strokeWidth:a,opacity:r});default:return null}},"renderPattern"),U=chunkEI7MMDWY_js.a(()=>{if(!f)return null;switch(f){case "edges":case true:return jsxRuntime.jsxs("linearGradient",{id:u,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"white",stopOpacity:"0"}),jsxRuntime.jsx("stop",{offset:"10%",stopColor:"white",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"90%",stopColor:"white",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"white",stopOpacity:"0"})]});case "center":return jsxRuntime.jsxs("radialGradient",{id:u,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"white",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"70%",stopColor:"white",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"white",stopOpacity:"0"})]});case "radial":return jsxRuntime.jsxs("radialGradient",{id:u,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"white",stopOpacity:"0"}),jsxRuntime.jsx("stop",{offset:"30%",stopColor:"white",stopOpacity:"1"}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"white",stopOpacity:"1"})]});default:return null}},"renderFadeMask"),L=c?{animation:`grid-pattern-move ${c.duration??10}s ${c.timing??"linear"} infinite ${c.direction??"normal"}`}:{};return jsxRuntime.jsxs("div",{ref:G,className:chunkDKPVJSBC_js.a("pointer-events-none absolute inset-0 overflow-hidden",$),style:{...O,...L},...C,children:[jsxRuntime.jsxs("svg",{className:"absolute h-full w-full",style:{transform:`translate(${x.x}px, ${x.y}px)`},children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx("pattern",{id:g,x:"0",y:"0",width:n.x,height:n.y,patternUnits:"userSpaceOnUse",children:P()}),U(),o&&jsxRuntime.jsxs("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:o.from??"transparent"}),o.via&&jsxRuntime.jsx("stop",{offset:"50%",stopColor:o.via}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:o.to??"transparent"})]})]}),jsxRuntime.jsx("rect",{width:h?.width??"100%",height:h?.height??"100%",fill:`url(#${g})`,mask:f?`url(#${u})`:void 0}),o&&jsxRuntime.jsx("rect",{width:h?.width??"100%",height:h?.height??"100%",fill:`url(#${w})`,opacity:o.opacity??.5,className:"mix-blend-multiply dark:mix-blend-screen"})]}),jsxRuntime.jsx("style",{children:`
2
+ @keyframes grid-pattern-move {
3
+ 0% {
4
+ transform: translate(0, 0);
5
+ }
6
+ 100% {
7
+ transform: translate(${n.x}px, ${n.y}px);
8
+ }
9
+ }
10
+ `})]})});M.displayName="GridPattern";var W={dotMatrix:{variant:"dots",size:3,gap:30,opacity:.3},fineDots:{variant:"dots",size:1,gap:10,opacity:.4},gridLines:{variant:"lines",gap:40,strokeWidth:1,opacity:.2},crosshatch:{variant:"crosses",size:10,gap:20,strokeWidth:1,opacity:.3},blueprint:{variant:"lines",gap:20,strokeWidth:.5,color:"#3b82f6",opacity:.3},graph:{variant:"lines",gap:{x:50,y:50},strokeWidth:1,opacity:.15,fade:"edges"},isometric:{variant:"lines",gap:{x:30,y:17.32},strokeWidth:.5,opacity:.2},hexagon:{variant:"dots",size:2,gap:{x:30,y:26},opacity:.3}};exports.a=M;exports.b=W;
@@ -0,0 +1,3 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),r=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),button=require('@hanzo/ui/button'),input=require('@hanzo/ui/input'),scrollArea=require('@hanzo/ui/scroll-area'),separator=require('@hanzo/ui/separator'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var r__namespace=/*#__PURE__*/_interopNamespace(r);var ce=classVarianceAuthority.cva("relative flex flex-col overflow-hidden rounded-lg border",{variants:{theme:{dark:"bg-black border-gray-700 text-green-400",light:"bg-white border-gray-300 text-gray-900",matrix:"bg-black border-green-500 text-green-400",hacker:"bg-gray-900 border-yellow-500 text-yellow-400",retro:"bg-amber-900 border-amber-600 text-amber-100",modern:"bg-slate-900 border-slate-700 text-slate-100"},size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{theme:"dark",size:"default"}}),n={black:"text-black",red:"text-red-500",green:"text-green-500",yellow:"text-yellow-500",blue:"text-blue-500",magenta:"text-magenta-500",cyan:"text-cyan-500",white:"text-white",gray:"text-gray-500",brightRed:"text-red-400",brightGreen:"text-green-400",brightYellow:"text-yellow-400",brightBlue:"text-blue-400",brightMagenta:"text-magenta-400",brightCyan:"text-cyan-400",brightWhite:"text-gray-100"},me=chunkEI7MMDWY_js.a(p=>{let T=/\x1b\[([0-9;]*)m/g,f=[],u=0,a=[],o;for(;(o=T.exec(p))!==null;)o.index>u&&f.push({text:p.slice(u,o.index),classes:[...a]}),o[1].split(";").map(c=>parseInt(c)||0).forEach(c=>{switch(c){case 0:a=[];break;case 30:a.push(n.black);break;case 31:a.push(n.red);break;case 32:a.push(n.green);break;case 33:a.push(n.yellow);break;case 34:a.push(n.blue);break;case 35:a.push(n.magenta);break;case 36:a.push(n.cyan);break;case 37:a.push(n.white);break;case 90:a.push(n.gray);break;case 91:a.push(n.brightRed);break;case 92:a.push(n.brightGreen);break;case 93:a.push(n.brightYellow);break;case 94:a.push(n.brightBlue);break;case 95:a.push(n.brightMagenta);break;case 96:a.push(n.brightCyan);break;case 97:a.push(n.brightWhite);break}}),u=o.index+o[0].length;return u<p.length&&f.push({text:p.slice(u),classes:[...a]}),f.map((x,c)=>jsxRuntime.jsx("span",{className:utils.cn(x.classes),children:x.text},c))},"parseAnsiContent"),ue=r__namespace.forwardRef(({className:p,theme:T,size:f,title:u="Terminal",prompt:a="$",maxLines:o=1e3,showLineNumbers:x=false,allowInput:c=true,allowClear:z=true,allowCopy:H=true,allowDownload:A=false,allowFullscreen:B=true,height:F="400px",autoScroll:M=true,history:P=[],onCommand:L,onClear:y,initialLines:U=[],...V},j)=>{let[m,D]=r__namespace.useState(U),[S,w]=r__namespace.useState(""),[v,k]=r__namespace.useState(-1),[N,O]=r__namespace.useState(false),[d,K]=r__namespace.useState(P),R=r__namespace.useRef(null),E=r__namespace.useRef(null);r__namespace.useEffect(()=>{M&&R.current&&(R.current.scrollTop=R.current.scrollHeight);},[m,M]);let h=r__namespace.useCallback(e=>{let s={...e,id:`line-${Date.now()}-${Math.random()}`,timestamp:Date.now()};D(g=>{let l=[...g,s];return l.length>o?l.slice(-o):l});},[o]),W=r__namespace.useCallback(async e=>{if(e.trim()){if(K(s=>[...s,e]),k(-1),h({type:"input",content:`${a} ${e}`,command:e}),e==="clear"){y?y():D([]);return}if(e==="history"){d.forEach((s,g)=>{h({type:"output",content:`${g+1} ${s}`});});return}if(e.startsWith("echo ")){h({type:"output",content:e.slice(5)});return}if(L)try{await L(e);}catch(s){h({type:"error",content:s instanceof Error?s.message:String(s),exitCode:1});}else h({type:"error",content:`Command not found: ${e}`,exitCode:127});}},[a,h,L,y,d]),G=chunkEI7MMDWY_js.a(e=>{e.preventDefault(),S.trim()&&(W(S),w(""));},"handleInputSubmit"),Y=chunkEI7MMDWY_js.a(e=>{if(e.key==="ArrowUp"){if(e.preventDefault(),v<d.length-1){let s=v+1;k(s),w(d[d.length-1-s]||"");}}else if(e.key==="ArrowDown")if(e.preventDefault(),v>0){let s=v-1;k(s),w(d[d.length-1-s]||"");}else v===0&&(k(-1),w(""));},"handleKeyDown"),q=r__namespace.useCallback(async()=>{let e=m.map(s=>s.content).join(`
2
+ `);try{await navigator.clipboard.writeText(e);}catch(s){console.error("Failed to copy terminal content:",s);}},[m]),X=r__namespace.useCallback(()=>{let e=m.map($=>`[${new Date($.timestamp).toISOString()}] ${$.content}`).join(`
3
+ `),s=new Blob([e],{type:"text/plain"}),g=URL.createObjectURL(s),l=document.createElement("a");l.href=g,l.download=`terminal-${Date.now()}.txt`,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(g);},[m]),J=chunkEI7MMDWY_js.a(()=>{y?y():D([]);},"clearTerminal"),Q=chunkEI7MMDWY_js.a(()=>{c&&E.current&&E.current.focus();},"handleTerminalClick");return jsxRuntime.jsxs("div",{ref:j,className:utils.cn(ce({theme:T,size:f}),N&&"fixed inset-0 z-50",p),style:{height:N?"100vh":F},onClick:Q,...V,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),jsxRuntime.jsx(lucideReact.Terminal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:u}),m.length>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:[m.length," lines"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[z&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:J,className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-3.5 w-3.5"})}),H&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:q,className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"})}),A&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:X,className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-3.5 w-3.5"})}),B&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:()=>O(!N),className:"h-8 w-8 p-0",children:N?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-3.5 w-3.5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-3.5 w-3.5"})})]})]}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[jsxRuntime.jsx(scrollArea.ScrollArea,{ref:R,className:"flex-1 p-4",children:jsxRuntime.jsx("div",{className:"space-y-1 font-mono",children:m.map((e,s)=>jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[x&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground w-12 text-right flex-shrink-0",children:s+1}),jsxRuntime.jsx("div",{className:utils.cn("flex-1 whitespace-pre-wrap break-words",e.type==="input"&&"text-inherit",e.type==="output"&&"text-muted-foreground",e.type==="error"&&"text-red-400",e.type==="system"&&"text-blue-400"),children:typeof e.content=="string"&&e.content.includes("\x1B[")?me(e.content):e.content})]},e.id))})}),c&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(separator.Separator,{}),jsxRuntime.jsx("form",{onSubmit:G,className:"p-4",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2 font-mono",children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 flex-shrink-0"}),jsxRuntime.jsx("span",{className:"flex-shrink-0",children:a}),jsxRuntime.jsx(input.Input,{ref:E,value:S,onChange:e=>w(e.target.value),onKeyDown:Y,className:"flex-1 border-0 bg-transparent p-0 focus-visible:ring-0 font-mono",placeholder:"Enter command...",autoComplete:"off",autoFocus:true})]})})]})]})]})});ue.displayName="CodeTerminal";exports.a=ce;exports.b=ue;
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');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-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"})})}chunkEI7MMDWY_js.a(d,"StockScreener");var u=react.memo(d);
2
+ exports.a=u;
@@ -0,0 +1 @@
1
+ import*as e from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var A=e.forwardRef(({children:o,maxTilt:a=15,perspective:l=1e3,scale:r=1.05,speed:n=400,glare:R=true,glareMaxOpacity:h=.7,className:M,...T},D)=>{let d=e.useRef(null),y=e.useRef(null),[v,p]=e.useState(false),[u,b]=e.useState({rotateX:0,rotateY:0,scale:1,glareX:50,glareY:50,glareOpacity:0}),c=e.useCallback((s,t)=>{if(!s||!t){b({rotateX:0,rotateY:0,scale:1,glareX:50,glareY:50,glareOpacity:0});return}let m=t.left+t.width/2,g=t.top+t.height/2,X=(s.x-m)/(t.width/2),w=-((s.y-g)/(t.height/2))*a,S=X*a,k=(s.x-t.left)/t.width*100,P=(s.y-t.top)/t.height*100;b({rotateX:w,rotateY:S,scale:r,glareX:k,glareY:P,glareOpacity:R?h:0});},[a,r,R,h]),C=e.useCallback(s=>{if(!d.current)return;let t=d.current.getBoundingClientRect(),m={x:s.clientX,y:s.clientY};c(m,t);},[c]),H=e.useCallback(s=>{if(!d.current||s.touches.length===0)return;s.preventDefault();let t=d.current.getBoundingClientRect(),m=s.touches[0],g={x:m.clientX,y:m.clientY};c(g,t);},[c]),L=e.useCallback(()=>{p(true);},[]),E=e.useCallback(()=>{p(false),c(null,null);},[c]),x=e.useCallback(()=>{p(true);},[]),N=e.useCallback(()=>{p(false),c(null,null);},[c]),Y={transform:`perspective(${l}px) rotateX(${u.rotateX}deg) rotateY(${u.rotateY}deg) scale(${u.scale})`,transition:v?"none":`transform ${n}ms cubic-bezier(0.03, 0.98, 0.52, 0.99)`,transformStyle:"preserve-3d"},$={background:`radial-gradient(circle at ${u.glareX}% ${u.glareY}%, rgba(255,255,255,${u.glareOpacity}) 0%, transparent 50%)`,transition:v?"none":`opacity ${n}ms ease-out`};return e.useImperativeHandle(D,()=>d.current),jsxs("div",{ref:d,className:cn("relative rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer","transform-gpu will-change-transform",M),style:Y,onMouseMove:C,onMouseEnter:L,onMouseLeave:E,onTouchStart:x,onTouchMove:H,onTouchEnd:N,...T,children:[jsx("div",{className:"relative z-10",children:o}),R&&jsx("div",{ref:y,className:"absolute inset-0 rounded-lg pointer-events-none z-20",style:$})]})});A.displayName="Card3D";var O=e.forwardRef(({className:o,depth:a=20,style:l,...r},n)=>jsx("div",{ref:n,className:cn("flex flex-col space-y-1.5 p-6",o),style:{transform:`translateZ(${a}px)`,...l},...r}));O.displayName="Card3DHeader";var Z=e.forwardRef(({className:o,depth:a=30,style:l,...r},n)=>jsx("h3",{ref:n,className:cn("text-2xl font-semibold leading-none tracking-tight",o),style:{transform:`translateZ(${a}px)`,...l},...r}));Z.displayName="Card3DTitle";var z=e.forwardRef(({className:o,depth:a=10,style:l,...r},n)=>jsx("p",{ref:n,className:cn("text-sm text-muted-foreground",o),style:{transform:`translateZ(${a}px)`,...l},...r}));z.displayName="Card3DDescription";var B=e.forwardRef(({className:o,depth:a=25,style:l,...r},n)=>jsx("div",{ref:n,className:cn("p-6 pt-0",o),style:{transform:`translateZ(${a}px)`,...l},...r}));B.displayName="Card3DContent";var F=e.forwardRef(({className:o,depth:a=15,style:l,...r},n)=>jsx("div",{ref:n,className:cn("flex items-center p-6 pt-0",o),style:{transform:`translateZ(${a}px)`,...l},...r}));F.displayName="Card3DFooter";export{A as a,O as b,Z as c,z as d,B as e,F as f};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import {TrendingUp,TrendingDown}from'lucide-react';import {jsx,jsxs}from'react/jsx-runtime';function x({positions:d,onPositionClick:a$1}){let c=a(e=>e.split(":")[1]||e,"getTickerFromSymbol");return d.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:d.map(e=>{let s=(e.currentPrice-e.avgPrice)*e.shares,v=(e.currentPrice-e.avgPrice)/e.avgPrice*100,n=e.currentPrice*e.shares;return jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${a$1?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>a$1?.(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(x,"PositionsList");export{x as a};
@@ -0,0 +1 @@
1
+ import*as a from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsx,jsxs}from'react/jsx-runtime';var b=a.forwardRef(({className:o,tabs:t=[],defaultTab:m=0,...s},c)=>{let[i,l]=a.useState(m);return t.length===0?jsx("div",{ref:c,className:cn("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",o),...s,children:jsx("p",{className:"text-sm text-muted-foreground",children:"No code tabs available. Add tabs to display code snippets."})}):jsxs("div",{ref:c,className:cn("rounded-lg border bg-card text-card-foreground shadow-sm",o),...s,children:[jsx("div",{className:"border-b",children:jsx("div",{className:"flex gap-1 p-2",children:t.map((n,d)=>jsx("button",{onClick:()=>l(d),className:cn("rounded-md px-4 py-2 text-sm font-medium transition-colors",i===d?"bg-primary text-primary-foreground":"hover:bg-muted"),children:n.label},d))})}),jsx("div",{className:"p-4",children:jsx("pre",{className:"overflow-x-auto rounded-md bg-muted p-4",children:jsx("code",{className:"text-sm",children:t[i]?.code})})})]})});b.displayName="CodeTabs";export{b as a};
@@ -0,0 +1 @@
1
+ 'use strict';var e=require('react'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var e__namespace=/*#__PURE__*/_interopNamespace(e);var A=e__namespace.forwardRef(({children:o,maxTilt:a=15,perspective:l=1e3,scale:r=1.05,speed:n=400,glare:R=true,glareMaxOpacity:h=.7,className:M,...T},D)=>{let d=e__namespace.useRef(null),y=e__namespace.useRef(null),[v,p]=e__namespace.useState(false),[u,b]=e__namespace.useState({rotateX:0,rotateY:0,scale:1,glareX:50,glareY:50,glareOpacity:0}),c=e__namespace.useCallback((s,t)=>{if(!s||!t){b({rotateX:0,rotateY:0,scale:1,glareX:50,glareY:50,glareOpacity:0});return}let m=t.left+t.width/2,g=t.top+t.height/2,X=(s.x-m)/(t.width/2),w=-((s.y-g)/(t.height/2))*a,S=X*a,k=(s.x-t.left)/t.width*100,P=(s.y-t.top)/t.height*100;b({rotateX:w,rotateY:S,scale:r,glareX:k,glareY:P,glareOpacity:R?h:0});},[a,r,R,h]),C=e__namespace.useCallback(s=>{if(!d.current)return;let t=d.current.getBoundingClientRect(),m={x:s.clientX,y:s.clientY};c(m,t);},[c]),H=e__namespace.useCallback(s=>{if(!d.current||s.touches.length===0)return;s.preventDefault();let t=d.current.getBoundingClientRect(),m=s.touches[0],g={x:m.clientX,y:m.clientY};c(g,t);},[c]),L=e__namespace.useCallback(()=>{p(true);},[]),E=e__namespace.useCallback(()=>{p(false),c(null,null);},[c]),x=e__namespace.useCallback(()=>{p(true);},[]),N=e__namespace.useCallback(()=>{p(false),c(null,null);},[c]),Y={transform:`perspective(${l}px) rotateX(${u.rotateX}deg) rotateY(${u.rotateY}deg) scale(${u.scale})`,transition:v?"none":`transform ${n}ms cubic-bezier(0.03, 0.98, 0.52, 0.99)`,transformStyle:"preserve-3d"},$={background:`radial-gradient(circle at ${u.glareX}% ${u.glareY}%, rgba(255,255,255,${u.glareOpacity}) 0%, transparent 50%)`,transition:v?"none":`opacity ${n}ms ease-out`};return e__namespace.useImperativeHandle(D,()=>d.current),jsxRuntime.jsxs("div",{ref:d,className:utils.cn("relative rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer","transform-gpu will-change-transform",M),style:Y,onMouseMove:C,onMouseEnter:L,onMouseLeave:E,onTouchStart:x,onTouchMove:H,onTouchEnd:N,...T,children:[jsxRuntime.jsx("div",{className:"relative z-10",children:o}),R&&jsxRuntime.jsx("div",{ref:y,className:"absolute inset-0 rounded-lg pointer-events-none z-20",style:$})]})});A.displayName="Card3D";var O=e__namespace.forwardRef(({className:o,depth:a=20,style:l,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:utils.cn("flex flex-col space-y-1.5 p-6",o),style:{transform:`translateZ(${a}px)`,...l},...r}));O.displayName="Card3DHeader";var Z=e__namespace.forwardRef(({className:o,depth:a=30,style:l,...r},n)=>jsxRuntime.jsx("h3",{ref:n,className:utils.cn("text-2xl font-semibold leading-none tracking-tight",o),style:{transform:`translateZ(${a}px)`,...l},...r}));Z.displayName="Card3DTitle";var z=e__namespace.forwardRef(({className:o,depth:a=10,style:l,...r},n)=>jsxRuntime.jsx("p",{ref:n,className:utils.cn("text-sm text-muted-foreground",o),style:{transform:`translateZ(${a}px)`,...l},...r}));z.displayName="Card3DDescription";var B=e__namespace.forwardRef(({className:o,depth:a=25,style:l,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:utils.cn("p-6 pt-0",o),style:{transform:`translateZ(${a}px)`,...l},...r}));B.displayName="Card3DContent";var F=e__namespace.forwardRef(({className:o,depth:a=15,style:l,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:utils.cn("flex items-center p-6 pt-0",o),style:{transform:`translateZ(${a}px)`,...l},...r}));F.displayName="Card3DFooter";exports.a=A;exports.b=O;exports.c=Z;exports.d=z;exports.e=B;exports.f=F;
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-TU67EJEW.mjs';import*as o from'react';import {cva}from'class-variance-authority';import {X}from'lucide-react';import {jsxs,jsx}from'react/jsx-runtime';var g=cva("inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-sm font-medium transition-colors",{variants:{variant:{default:"bg-primary/10 text-primary hover:bg-primary/20",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",success:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",warning:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",error:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"}},defaultVariants:{variant:"default"}}),m=o.forwardRef(({className:n,variant:l,onRemove:e,children:s,...i},d)=>jsxs("span",{ref:d,className:a(g({variant:l}),n),...i,children:[s,e&&jsxs("button",{type:"button",onClick:e,className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",children:[jsx(X,{className:"h-3 w-3"}),jsx("span",{className:"sr-only",children:"Remove"})]})]}));m.displayName="Pill";export{g as a,m as b};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import {useState,useCallback,useRef,useEffect}from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var G=["a","button","input","textarea","select",'[role="button"]','[role="link"]','[tabindex]:not([tabindex="-1"])',".cursor-pointer",'[data-cursor="pointer"]'].join(", "),$=['input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]',"textarea",'[contenteditable="true"]','[data-cursor="text"]'].join(", "),O=['[data-cursor="grab"]',".cursor-grab"].join(", "),V=['[data-cursor="grabbing"]',".cursor-grabbing"].join(", ");function X(){return typeof window>"u"?false:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}a(X,"isTouchDevice");function q(){let[d,e]=useState({position:{x:0,y:0},isHovering:false,isClicking:false,cursorType:"default"}),m=useCallback((i,c)=>{e(l=>({...l,position:{x:i,y:c}}));},[]),p=useCallback((i,c="default")=>{e(l=>({...l,isHovering:i,cursorType:c}));},[]),s=useCallback(i=>{e(c=>({...c,isClicking:i}));},[]);return {cursorState:d,updatePosition:m,updateHoverState:p,updateClickState:s}}a(q,"useCursorState");function F(d,e){let[m,p]=useState([]),s=useRef([]);return useEffect(()=>{s.current.push(e),s.current.length>d&&s.current.shift(),p([...s.current]);},[e,d]),m}a(F,"useCursorTrail");function U({isVisible:d=true,size:e=20,color:m="#000000",trailColor:p="#00000050",animationDuration:s=200,showTrail:i=true,trailLength:c=8,blendMode:l="normal",hoverScale:f=1.5,hideOnTouch:b=true,className:R,clickAnimationDuration:J=100,zIndex:S=9999}){let{cursorState:t,updatePosition:A,updateHoverState:a$1,updateClickState:T}=q(),w=F(c,t.position),[g,H]=useState(false),[v,N]=useState(false);if(useEffect(()=>{H(X()),N(true);},[]),useEffect(()=>{if(!v||b&&g)return;let o=a(h=>{try{requestAnimationFrame(()=>{A(h.clientX,h.clientY);});}catch(u){console.warn("AnimatedCursor: Error updating position",u);}},"handleMouseMove"),n=a(h=>{try{let u=h.target;u?.closest?.(G)?a$1(!0,"pointer"):u?.closest?.($)?a$1(!0,"text"):u?.closest?.(O)?a$1(!0,"grab"):u?.closest?.(V)?a$1(!0,"grabbing"):a$1(!1,"default");}catch(u){console.warn("AnimatedCursor: Error handling mouse over",u),a$1(false,"default");}},"handleMouseOver"),y=a(()=>{T(true);},"handleMouseDown"),C=a(()=>{T(false);},"handleMouseUp"),M=a(()=>{a$1(false,"default");},"handleMouseLeave");return document.addEventListener("mousemove",o),document.addEventListener("mouseover",n),document.addEventListener("mousedown",y),document.addEventListener("mouseup",C),document.addEventListener("mouseleave",M),()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseover",n),document.removeEventListener("mousedown",y),document.removeEventListener("mouseup",C),document.removeEventListener("mouseleave",M);}},[v,b,g,A,a$1,T]),useEffect(()=>{if(!(!v||b&&g))try{let o=document.body.style.cursor;return document.body.style.cursor="none",()=>{try{document.body.style.cursor=o;}catch(n){console.warn("AnimatedCursor: Error restoring cursor style",n);}}}catch(o){console.warn("AnimatedCursor: Error hiding cursor",o);}},[v,b,g]),!v||!d||b&&g)return null;let B=t.isHovering?f:1,D=t.isClicking?.8:1,I=B*D,_=a(()=>{switch(t.cursorType){case "text":return "h-6 w-0.5";case "grab":case "grabbing":return "rounded-md";default:return "rounded-full"}},"getCursorShape");return jsxs("div",{className:cn("pointer-events-none fixed inset-0",R),children:[i&&w.map((o,n)=>{let y=(n+1)/w.length*.5,C=(n+1)/w.length*.8;return jsx("div",{className:"absolute",style:{left:o.x-e/2,top:o.y-e/2,width:e,height:e,backgroundColor:p,borderRadius:"50%",opacity:y,transform:`scale(${C})`,zIndex:S-n-1,mixBlendMode:l}},n)}),jsx("div",{className:cn("absolute transition-transform duration-100 ease-out",_()),style:{left:t.position.x-e/2,top:t.position.y-e/2,width:t.cursorType==="text"?2:e,height:t.cursorType==="text"?24:e,backgroundColor:m,transform:`scale(${I})`,transitionDuration:`${s}ms`,zIndex:S,mixBlendMode:l}}),t.isHovering&&t.cursorType!=="text"&&jsx("div",{className:"absolute rounded-full border-2 transition-all duration-200 ease-out",style:{left:t.position.x-e*f/2,top:t.position.y-e*f/2,width:e*f,height:e*f,borderColor:m,opacity:.3,zIndex:S-1,mixBlendMode:l}})]})}a(U,"AnimatedCursor");var Z=U;export{U as a,Z as b};
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import {useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';function f({symbol:r="NASDAQ:AAPL",width:i="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 t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js",t.async=true,t.innerHTML=JSON.stringify({symbol:r,width:i,locale:n,colorTheme:s,isTransparent:c}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(d=>d.remove()));}},[r,i,n,s,c]),jsx("div",{className:"tradingview-widget-container",ref:e,children:jsx("div",{className:"tradingview-widget-container__widget"})})}a(f,"SymbolInfo");
2
+ export{f as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkJ5KX3VTM_js=require('./chunk-J5KX3VTM.js'),chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),p=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var p__namespace=/*#__PURE__*/_interopNamespace(p);var f=p__namespace.forwardRef(({className:v,items:l,max:o=5,...m},b)=>{let A=l.slice(0,o),c=l.length-o;return jsxRuntime.jsxs("div",{ref:b,className:chunkDKPVJSBC_js.a("flex -space-x-4",v),...m,children:[A.map((a,d)=>jsxRuntime.jsxs(chunkJ5KX3VTM_js.a,{className:"border-2 border-background",children:[jsxRuntime.jsx(chunkJ5KX3VTM_js.b,{src:a.src,alt:a.alt}),jsxRuntime.jsx(chunkJ5KX3VTM_js.c,{children:a.fallback})]},d)),c>0&&jsxRuntime.jsx(chunkJ5KX3VTM_js.a,{className:"border-2 border-background",children:jsxRuntime.jsxs(chunkJ5KX3VTM_js.c,{children:["+",c]})})]})});f.displayName="AvatarGroup";exports.a=f;
@@ -0,0 +1 @@
1
+ import*as e from'react';import P from'@monaco-editor/react';import {ChevronDown,Check,Copy}from'lucide-react';import {useTheme}from'next-themes';import {cn}from'@hanzo/ui/lib/utils';import {Button}from'@hanzo/ui/button';import {DropdownMenu,DropdownMenuTrigger,DropdownMenuContent,DropdownMenuItem}from'@hanzo/ui/dropdown-menu';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=["javascript","typescript","python","java","csharp","cpp","c","go","rust","ruby","php","swift","kotlin","dart","html","css","scss","json","xml","yaml","sql","markdown","shell","plaintext"],b={javascript:"JavaScript",typescript:"TypeScript",python:"Python",java:"Java",csharp:"C#",cpp:"C++",c:"C",go:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",swift:"Swift",kotlin:"Kotlin",dart:"Dart",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",xml:"XML",yaml:"YAML",sql:"SQL",markdown:"Markdown",shell:"Shell",plaintext:"Plain Text"},K=e.forwardRef(({value:r,defaultValue:c="",language:d="javascript",height:y="400px",theme:s="auto",onChange:i,onMount:w,readOnly:v=false,lineNumbers:S=true,minimap:x=false,wordWrap:M="on",fontSize:k=14,className:N,showCopyButton:u=true,showLanguageSelector:p=true,availableLanguages:L=G},R)=>{let{theme:m}=useTheme(),[l,D]=e.useState(d),[T,h]=e.useState(false),[n,g]=e.useState(r||c);e.useEffect(()=>{r!==void 0&&g(r);},[r]);let O=e.useCallback(async()=>{try{await navigator.clipboard.writeText(n),h(!0),setTimeout(()=>h(!1),2e3);}catch(t){console.error("Failed to copy:",t);}},[n]),z=e.useCallback((t,j)=>{g(t||""),i&&i(t,j);},[i]),E=e.useMemo(()=>s==="auto"?m==="dark"?"vs-dark":"light":s==="dark"?"vs-dark":"light",[s,m]);return jsxs("div",{ref:R,className:cn("relative overflow-hidden rounded-md border bg-background",N),children:[(p||u)&&jsxs("div",{className:"flex items-center justify-between border-b bg-muted/50 px-3 py-2",children:[p&&jsxs(DropdownMenu,{children:[jsx(DropdownMenuTrigger,{asChild:true,children:jsxs(Button,{variant:"ghost",size:"sm",className:"h-8 gap-1 px-2 text-xs font-mono",children:[b[l]||l,jsx(ChevronDown,{className:"h-3 w-3"})]})}),jsx(DropdownMenuContent,{align:"start",className:"max-h-80 overflow-auto",children:L.map(t=>jsx(DropdownMenuItem,{onClick:()=>D(t),className:"font-mono text-xs",children:b[t]||t},t))})]}),u&&jsx(Button,{variant:"ghost",size:"sm",className:"h-8 gap-1.5 px-2 text-xs",onClick:O,disabled:!n,children:T?jsxs(Fragment,{children:[jsx(Check,{className:"h-3 w-3"}),"Copied!"]}):jsxs(Fragment,{children:[jsx(Copy,{className:"h-3 w-3"}),"Copy"]})})]}),jsx(P,{height:y,defaultLanguage:d,language:l,value:n,defaultValue:c,theme:E,onChange:z,onMount:w,options:{readOnly:v,lineNumbers:S?"on":"off",minimap:{enabled:x},wordWrap:M,fontSize:k,scrollBeyondLastLine:false,automaticLayout:true,tabSize:2,insertSpaces:true,formatOnPaste:true,formatOnType:true,scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10},padding:{top:16,bottom:16}}})]})});K.displayName="CodeEditor";export{K as a};
@@ -0,0 +1 @@
1
+ import {a as a$2}from'./chunk-YLY2B6UX.mjs';import {b}from'./chunk-WN5KN73U.mjs';import {a as a$1}from'./chunk-TU67EJEW.mjs';import {a}from'./chunk-YSXGDEY5.mjs';import*as t from'react';import {Search,Command}from'lucide-react';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var y=t.forwardRef(({className:f,items:n=[],...p},u)=>{let[h,o]=t.useState(false),[l,v]=t.useState("");t.useEffect(()=>{let e=a(s=>{s.key==="k"&&(s.metaKey||s.ctrlKey)&&(s.preventDefault(),o(b=>!b));},"down");return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let g=n.filter(e=>e.label.toLowerCase().includes(l.toLowerCase()));return jsxs(Fragment,{children:[jsxs("nav",{ref:u,className:a$1("flex items-center gap-4",f),...p,children:[jsxs(b,{variant:"outline",onClick:()=>o(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"]})]}),n.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))]}),h&&jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",onClick:()=>o(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(a$2,{placeholder:"Search navigation...",value:l,onChange:e=>v(e.target.value),autoFocus:true,className:"mb-4"}),jsx("div",{className:"max-h-96 space-y-1 overflow-auto",children:g.map(e=>jsx("a",{href:e.href,className:"block rounded-md px-4 py-2 hover:bg-accent",onClick:()=>o(false),children:e.label},e.href))})]})})]})});y.displayName="LimelightNav";export{y as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),t=require('react'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var Q=t__namespace.forwardRef(({items:s,itemWidth:n=300,itemHeight:l=400,spacing:c=80,perspective:A=1e3,rotateY:se=40,autoRotate:w=false,autoRotateSpeed:E=3e3,showControls:Y=true,infinite:i=true,className:X,...z},O)=>{let m=t__namespace.useRef(null),[f,v]=t__namespace.useState(0),[R,L]=t__namespace.useState(false),[d,H]=t__namespace.useState(false),[S,K]=t__namespace.useState({x:0,y:0}),[C,x]=t__namespace.useState(0),b=t__namespace.useRef(void 0),o=s.length,I=(n+c)/2/Math.tan(Math.PI/o);t__namespace.useEffect(()=>(w&&!R&&!d?b.current=setInterval(()=>{v(e=>(e+1)%o);},E):b.current&&clearInterval(b.current),()=>{b.current&&clearInterval(b.current);}),[w,R,d,E,o]);let g=t__namespace.useCallback(()=>{v(e=>i?(e-1+o)%o:Math.max(0,e-1));},[i,o]),p=t__namespace.useCallback(()=>{v(e=>i?(e+1)%o:Math.min(o-1,e+1));},[i,o]),y=t__namespace.useCallback(e=>{v(Math.max(0,Math.min(o-1,e)));},[o]),D=t__namespace.useCallback((e,a)=>{H(true),K({x:e,y:a}),x(0);},[]),M=t__namespace.useCallback((e,a)=>{if(!d)return;let T=(e-S.x)*.5;x(T);},[d,S.x]),k=t__namespace.useCallback(()=>{if(!d)return;Math.abs(C)>50&&(C>0?g():p()),H(false),x(0);},[d,C,g,p]),U=t__namespace.useCallback(e=>{e.preventDefault(),D(e.clientX,e.clientY);},[D]),Z=t__namespace.useCallback(e=>{M(e.clientX,e.clientY);},[M]),j=t__namespace.useCallback(()=>{k();},[k]),G=t__namespace.useCallback(e=>{if(e.touches.length===1){let a=e.touches[0];D(a.clientX,a.clientY);}},[D]),J=t__namespace.useCallback(e=>{if(e.touches.length===1){e.preventDefault();let a=e.touches[0];M(a.clientX,a.clientY);}},[M]),V=t__namespace.useCallback(()=>{k();},[k]);t__namespace.useEffect(()=>{let e=chunkEI7MMDWY_js.a(a=>{if(a.key==="ArrowLeft")a.preventDefault(),g();else if(a.key==="ArrowRight")a.preventDefault(),p();else if(a.key>="1"&&a.key<="9"){let h=parseInt(a.key)-1;h<o&&y(h);}},"handleKeyDown");if(m.current)return m.current.addEventListener("keydown",e),()=>{m.current?.removeEventListener("keydown",e);}},[g,p,y,o]),t__namespace.useImperativeHandle(O,()=>m.current);let _={perspective:`${A}px`,height:`${l+100}px`},q={transform:`translateZ(-${I}px) rotateY(${-f*(360/o)+C/5}deg)`,transition:d?"none":"transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1)",transformStyle:"preserve-3d"};return jsxRuntime.jsxs("div",{ref:m,className:utils.cn("relative w-full select-none focus:outline-none",X),style:_,onMouseEnter:()=>L(true),onMouseLeave:()=>L(false),onMouseDown:U,onMouseMove:Z,onMouseUp:j,onTouchStart:G,onTouchMove:J,onTouchEnd:V,tabIndex:0,...z,children:[jsxRuntime.jsx("div",{className:"relative mx-auto",style:{width:`${n}px`,height:`${l}px`,transformStyle:"preserve-3d"},children:jsxRuntime.jsx("div",{className:"absolute inset-0",style:q,children:s.map((e,a)=>{let h=a/o*360,P=a===f,T={transform:`rotateY(${h}deg) translateZ(${I}px)`,width:`${n}px`,height:`${l}px`,position:"absolute",backfaceVisibility:"hidden",transformStyle:"preserve-3d"};return jsxRuntime.jsx("div",{className:utils.cn("rounded-lg border bg-card text-card-foreground shadow-lg cursor-pointer","transition-all duration-300 transform-gpu will-change-transform",P&&"ring-2 ring-primary ring-offset-2"),style:T,onClick:()=>y(a),children:jsxRuntime.jsx("div",{className:"w-full h-full overflow-hidden rounded-lg",children:e.content})},e.id)})})}),Y&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{className:utils.cn("absolute left-4 top-1/2 -translate-y-1/2 z-10","p-2 rounded-full bg-background/80 backdrop-blur-sm","border shadow-lg hover:bg-background transition-all","disabled:opacity-50 disabled:cursor-not-allowed"),onClick:g,disabled:!i&&f===0,"aria-label":"Previous item",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"w-5 h-5"})}),jsxRuntime.jsx("button",{className:utils.cn("absolute right-4 top-1/2 -translate-y-1/2 z-10","p-2 rounded-full bg-background/80 backdrop-blur-sm","border shadow-lg hover:bg-background transition-all","disabled:opacity-50 disabled:cursor-not-allowed"),onClick:p,disabled:!i&&f===o-1,"aria-label":"Next item",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"w-5 h-5"})})]}),jsxRuntime.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-10",children:jsxRuntime.jsx("div",{className:"flex space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-lg",children:s.map((e,a)=>jsxRuntime.jsx("button",{className:utils.cn("w-2 h-2 rounded-full transition-all",a===f?"bg-primary scale-125":"bg-muted-foreground/50 hover:bg-muted-foreground/75"),onClick:()=>y(a),"aria-label":`Go to item ${a+1}`},a))})}),w&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-10",children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2 p-2 rounded-full bg-background/80 backdrop-blur-sm border shadow-sm",children:[jsxRuntime.jsx("div",{className:utils.cn("w-2 h-2 rounded-full transition-all",R||d?"bg-orange-500":"bg-green-500 animate-pulse")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R||d?"Paused":"Auto"})]})})]})});Q.displayName="Carousel3D";var W=t__namespace.forwardRef(({className:s,children:n,...l},c)=>jsxRuntime.jsx("div",{ref:c,className:utils.cn("w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20","border rounded-lg overflow-hidden group",s),...l,children:n}));W.displayName="Carousel3DCard";var ee=t__namespace.forwardRef(({className:s,alt:n,...l},c)=>jsxRuntime.jsx("img",{ref:c,className:utils.cn("w-full h-48 object-cover transition-transform duration-300","group-hover:scale-105",s),alt:n,...l}));ee.displayName="Carousel3DCardImage";var te=t__namespace.forwardRef(({className:s,children:n,...l},c)=>jsxRuntime.jsx("div",{ref:c,className:utils.cn("flex-1 p-4 flex flex-col justify-between",s),...l,children:n}));te.displayName="Carousel3DCardContent";var ae=t__namespace.forwardRef(({className:s,children:n,...l},c)=>jsxRuntime.jsx("h3",{ref:c,className:utils.cn("font-semibold text-lg mb-2 line-clamp-2",s),...l,children:n}));ae.displayName="Carousel3DCardTitle";var re=t__namespace.forwardRef(({className:s,children:n,...l},c)=>jsxRuntime.jsx("p",{ref:c,className:utils.cn("text-sm text-muted-foreground line-clamp-3 mb-4",s),...l,children:n}));re.displayName="Carousel3DCardDescription";exports.a=Q;exports.b=W;exports.c=ee;exports.d=te;exports.e=ae;exports.f=re;
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function f({symbol:r="NASDAQ:AAPL",width:i="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 t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js",t.async=true,t.innerHTML=JSON.stringify({symbol:r,width:i,locale:n,colorTheme:s,isTransparent:c}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(d=>d.remove()));}},[r,i,n,s,c]),jsxRuntime.jsx("div",{className:"tradingview-widget-container",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}chunkEI7MMDWY_js.a(f,"SymbolInfo");
2
+ exports.a=f;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),o=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var u=o__namespace.forwardRef(({className:t,children:i,repeat:n=2,reverse:l=false,pauseOnHover:s=false,vertical:e=false,...m},f)=>jsxRuntime.jsx("div",{ref:f,className:chunkDKPVJSBC_js.a("group flex overflow-hidden",e?"flex-col":"flex-row",t),...m,children:Array.from({length:n}).map((c,p)=>jsxRuntime.jsx("div",{className:chunkDKPVJSBC_js.a("flex shrink-0",e?"animate-marquee-vertical flex-col":"animate-marquee",l&&"[animation-direction:reverse]",s&&"group-hover:[animation-play-state:paused]"),children:i},p))}));u.displayName="Marquee";exports.a=u;
@@ -0,0 +1 @@
1
+ 'use strict';var a=require('react'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var i=a__namespace.forwardRef(({className:t,...e},s)=>jsxRuntime.jsx("ul",{ref:s,className:utils.cn("space-y-2",t),...e}));i.displayName="List";var r=a__namespace.forwardRef(({className:t,...e},s)=>jsxRuntime.jsx("li",{ref:s,className:utils.cn("",t),...e}));r.displayName="ListItem";exports.a=i;exports.b=r;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-TU67EJEW.mjs';import {a}from'./chunk-YSXGDEY5.mjs';import {jsx}from'react/jsx-runtime';var d=a(({className:e,ref:t,...r})=>jsx("div",{className:a$1("bg-card text-card-foreground rounded-lg border shadow-xs",e),ref:t,...r}),"Card");d.displayName="Card";var p=a(({className:e,ref:t,...r})=>jsx("div",{className:a$1("flex flex-col space-y-1.5 p-6",e),ref:t,...r}),"CardHeader");p.displayName="CardHeader";var c=a(({className:e,ref:t,...r})=>jsx("h3",{className:a$1("text-2xl leading-none font-semibold tracking-tight",e),ref:t,...r}),"CardTitle");c.displayName="CardTitle";var l=a(({className:e,ref:t,...r})=>jsx("p",{className:a$1("text-text-secondary text-sm",e),ref:t,...r}),"CardDescription");l.displayName="CardDescription";var n=a(({className:e,ref:t,...r})=>jsx("div",{className:a$1("p-6 pt-0",e),ref:t,...r}),"CardContent");n.displayName="CardContent";var i=a(({className:e,ref:t,...r})=>jsx("div",{className:a$1("flex items-center p-6 pt-0",e),ref:t,...r}),"CardFooter");i.displayName="CardFooter";export{d as a,p as b,n as c,i as d};
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import {useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';function h({symbol:i="NASDAQ:AAPL",interval:r="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 t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-technical-analysis.js",t.async=true,t.innerHTML=JSON.stringify({interval:r,width:n,isTransparent:l,height:s,symbol:i,showIntervalTabs:d,displayMode:u,locale:a,colorTheme:c}),e.current.appendChild(t),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(f=>f.remove()));}},[i,r,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"})})}a(h,"TechnicalAnalysis");
2
+ export{h as a};
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function p({symbol:t="NASDAQ:AAPL",width:i="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 r=document.createElement("script");return r.src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-profile.js",r.async=true,r.innerHTML=JSON.stringify({width:i,height:n,colorTheme:a,isTransparent:c,symbol:t,locale:s}),e.current.appendChild(r),()=>{e.current&&(delete e.current.dataset.initialized,e.current.querySelectorAll("script").forEach(l=>l.remove()));}},[t,i,n,s,a,c]),jsxRuntime.jsx("div",{className:"tradingview-widget-container",ref:e,children:jsxRuntime.jsx("div",{className:"tradingview-widget-container__widget"})})}chunkEI7MMDWY_js.a(p,"CompanyProfile");
2
+ exports.a=p;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),a=require('@radix-ui/react-avatar'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var l=chunkEI7MMDWY_js.a(({className:e,ref:t,...r})=>jsxRuntime.jsx(a__namespace.Root,{className:chunkDKPVJSBC_js.a("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),ref:t,...r}),"Avatar");l.displayName=a__namespace.Root.displayName;var v=chunkEI7MMDWY_js.a(({className:e,ref:t,...r})=>jsxRuntime.jsx(a__namespace.Image,{className:chunkDKPVJSBC_js.a("aspect-square h-full w-full",e),ref:t,...r}),"AvatarImage");v.displayName=a__namespace.Image.displayName;var p=chunkEI7MMDWY_js.a(({className:e,ref:t,...r})=>jsxRuntime.jsx(a__namespace.Fallback,{className:chunkDKPVJSBC_js.a("bg-muted flex h-full w-full items-center justify-center rounded-full",e),ref:t,...r}),"AvatarFallback");p.displayName=a__namespace.Fallback.displayName;exports.a=l;exports.b=v;exports.c=p;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function x({positions:d,onPositionClick:a}){let c=chunkEI7MMDWY_js.a(e=>e.split(":")[1]||e,"getTickerFromSymbol");return d.length===0?jsxRuntime.jsx("div",{className:"p-4 text-center py-8 text-white/40",children:jsxRuntime.jsx("p",{className:"text-sm",children:"No open positions"})}):jsxRuntime.jsx("div",{className:"p-4 space-y-2",children:d.map(e=>{let s=(e.currentPrice-e.avgPrice)*e.shares,v=(e.currentPrice-e.avgPrice)/e.avgPrice*100,n=e.currentPrice*e.shares;return jsxRuntime.jsxs("div",{className:`bg-white/5 rounded-lg p-3 ${a?"cursor-pointer hover:bg-white/10 transition-colors":""}`,onClick:()=>a?.(e),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-2",children:[jsxRuntime.jsx("div",{className:"font-semibold text-white",children:c(e.symbol)}),jsxRuntime.jsxs("div",{className:`flex items-center gap-1 text-sm ${s>=0?"text-success":"text-danger"}`,children:[s>=0?jsxRuntime.jsx(lucideReact.TrendingUp,{size:14}):jsxRuntime.jsx(lucideReact.TrendingDown,{size:14}),s>=0?"+":"",v.toFixed(2),"%"]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Shares"}),jsxRuntime.jsx("div",{className:"text-white font-medium",children:e.shares})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Avg Price"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",e.avgPrice.toFixed(2)]})]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs mt-2 pt-2 border-t border-white/10",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Current Price"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",e.currentPrice.toFixed(2)]})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-white/60",children:"Total Value"}),jsxRuntime.jsxs("div",{className:"text-white font-medium",children:["$",n.toFixed(2)]})]})]}),jsxRuntime.jsx("div",{className:"mt-2 pt-2 border-t border-white/10",children:jsxRuntime.jsxs("div",{className:"flex justify-between items-center text-xs",children:[jsxRuntime.jsx("span",{className:"text-white/60",children:"P&L"}),jsxRuntime.jsxs("span",{className:`font-semibold ${s>=0?"text-success":"text-danger"}`,children:[s>=0?"+":"","$",s.toFixed(2)]})]})})]},e.symbol)})})}chunkEI7MMDWY_js.a(x,"PositionsList");exports.a=x;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function O({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=chunkEI7MMDWY_js.a(()=>{let t=localStorage.getItem("begm_portfolio");if(t)p(JSON.parse(t));else {let l={cash:1e5,holdings:[]};localStorage.setItem("begm_portfolio",JSON.stringify(l)),p(l);}},"loadPortfolio"),v=chunkEI7MMDWY_js.a(()=>{if(!c||parseFloat(c)<=0){g({type:"error",text:"Please enter a valid quantity"});return}let t=parseFloat(c),l=t*o;if(d==="buy"){if(l>s.cash){g({type:"error",text:"Insufficient funds"});return}let a=s.holdings.find(r=>r.symbol===n);if(a){let r=a.quantity+t,N=(a.averagePrice*a.quantity+o*t)/r;a.quantity=r,a.averagePrice=N,a.currentPrice=o;}else s.holdings.push({symbol:n,quantity:t,averagePrice:o,currentPrice:o});s.cash-=l;}else {let a=s.holdings.find(r=>r.symbol===n);if(!a||a.quantity<t){g({type:"error",text:"Insufficient shares"});return}a.quantity-=t,a.currentPrice=o,a.quantity===0&&(s.holdings=s.holdings.filter(r=>r.symbol!==n)),s.cash+=l;}localStorage.setItem("begm_portfolio",JSON.stringify(s)),p({...s});let y=JSON.parse(localStorage.getItem("begm_orders")||"[]");y.push({id:`ORD-${Date.now()}`,symbol:n,type:d,quantity:t,price:o,total:l,timestamp:new Date().toISOString(),status:"completed"}),localStorage.setItem("begm_orders",JSON.stringify(y)),g({type:"success",text:`Successfully ${d==="buy"?"bought":"sold"} ${t} shares of ${n}`}),x(""),setTimeout(()=>g(null),3e3);},"executeTrade"),h=chunkEI7MMDWY_js.a(()=>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."})]})}chunkEI7MMDWY_js.a(O,"TradingPanel");exports.a=O;
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');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-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"})})}chunkEI7MMDWY_js.a(d,"CryptoScreener");var o=react.memo(d);
2
+ exports.a=o;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function v({symbol:b,accountBalance:g,onPlaceOrder:w,disabled:i=false}){let[l,c]=react.useState("market"),[r,u]=react.useState("buy"),[o,m]=react.useState(""),[a,h]=react.useState(""),p=chunkEI7MMDWY_js.a(s=>s.split(":")[1]||s,"getTickerFromSymbol"),y=chunkEI7MMDWY_js.a(()=>{!o||l==="limit"&&!a||(w({symbol:b,side:r,orderType:l,shares:parseInt(o),limitPrice:l==="limit"?parseFloat(a):void 0}),m(""),h(""));},"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:["$",g.toLocaleString()]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[jsxRuntime.jsx("button",{onClick:()=>u("buy"),disabled:i,className:`py-2.5 rounded-lg font-semibold transition-all ${r==="buy"?"bg-success text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Buy"}),jsxRuntime.jsx("button",{onClick:()=>u("sell"),disabled:i,className:`py-2.5 rounded-lg font-semibold transition-all ${r==="sell"?"bg-danger text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Sell"})]}),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:()=>c("market"),disabled:i,className:`py-2 rounded-lg text-sm font-medium transition-all ${l==="market"?"bg-white/10 text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Market"}),jsxRuntime.jsx("button",{onClick:()=>c("limit"),disabled:i,className:`py-2 rounded-lg text-sm font-medium transition-all ${l==="limit"?"bg-white/10 text-white":"bg-white/5 text-white/60 hover:bg-white/10"} disabled:opacity-50 disabled:cursor-not-allowed`,children:"Limit"})]})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("label",{className:"text-xs text-white/60 mb-2 block",children:"Shares"}),jsxRuntime.jsx("input",{type:"number",value:o,onChange:s=>m(s.target.value),disabled:i,className:"w-full bg-white/5 border border-white/10 rounded-lg px-4 py-2.5 text-white focus:outline-none focus:border-success disabled:opacity-50 disabled:cursor-not-allowed",placeholder:"0"})]}),l==="limit"&&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: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.00",step:"0.01"})]}),jsxRuntime.jsxs("button",{onClick:y,disabled:i||!o||l==="limit"&&!a,className:`w-full py-3 rounded-lg font-semibold transition-all ${r==="buy"?"bg-success hover:bg-success/90 text-white":"bg-danger hover:bg-danger/90 text-white"} disabled:opacity-50 disabled:cursor-not-allowed`,children:[r==="buy"?"Buy":"Sell"," ",p(b)]})]})}chunkEI7MMDWY_js.a(v,"OrderEntry");exports.a=v;
@@ -0,0 +1 @@
1
+ import*as i from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var a=i.forwardRef(({className:t,title:p,href:c,children:r,...n},o)=>jsxs("div",{ref:o,className:cn("group/pin relative cursor-pointer",t),...n,children:[jsx("div",{className:"pointer-events-none absolute inset-0 z-10 flex h-full w-full items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100",children:jsx("div",{className:"relative flex h-full w-full items-center justify-center",children:jsx("div",{className:"absolute inset-0 bg-white opacity-0 transition duration-500 group-hover/pin:opacity-50"})})}),jsx("div",{className:"transform-gpu transition duration-500 group-hover/pin:scale-95",children:r})]}));a.displayName="Pin3D";export{a};
@@ -0,0 +1 @@
1
+ 'use strict';var i=require('react'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var i__namespace=/*#__PURE__*/_interopNamespace(i);var a=i__namespace.forwardRef(({className:t,title:p,href:c,children:r,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:utils.cn("group/pin relative cursor-pointer",t),...n,children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 flex h-full w-full items-center justify-center opacity-0 transition duration-500 group-hover/pin:opacity-100",children:jsxRuntime.jsx("div",{className:"relative flex h-full w-full items-center justify-center",children:jsxRuntime.jsx("div",{className:"absolute inset-0 bg-white opacity-0 transition duration-500 group-hover/pin:opacity-50"})})}),jsxRuntime.jsx("div",{className:"transform-gpu transition duration-500 group-hover/pin:scale-95",children:r})]}));a.displayName="Pin3D";exports.a=a;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkDKPVJSBC_js=require('./chunk-DKPVJSBC.js'),chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');function s({className:a,...r}){return jsxRuntime.jsx(lucideReact.Loader2Icon,{role:"status","aria-label":"Loading",className:chunkDKPVJSBC_js.a("size-4 animate-spin",a),...r})}chunkEI7MMDWY_js.a(s,"Spinner");exports.a=s;
@@ -0,0 +1,6 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),o=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),badge=require('@hanzo/ui/badge'),button=require('@hanzo/ui/button'),diff=require('@hanzo/ui/code/diff'),snippet=require('@hanzo/ui/code/snippet'),dropdownMenu=require('@hanzo/ui/dropdown-menu'),scrollArea=require('@hanzo/ui/scroll-area'),tabs=require('@hanzo/ui/tabs'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var fe=classVarianceAuthority.cva("relative flex flex-col overflow-hidden rounded-lg border bg-background",{variants:{layout:{horizontal:"flex-col",vertical:"flex-row"},size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{layout:"horizontal",size:"default"}}),ge=o__namespace.forwardRef(({className:H,layout:z,size:V,files:i,defaultView:j="side-by-side",showLineNumbers:u=true,showCopyButton:E=true,allowMerge:A=false,conflictMarkers:I=[],onMergeConflict:w,onFileSelect:P,height:$="600px",syncScroll:y=true,...U},q)=>{let[c,G]=o__namespace.useState(j),[d,v]=o__namespace.useState(()=>i.length>=2?[i[0].id,i[1].id]:i.length>0?[i[0].id]:[]),[x,K]=o__namespace.useState({resolved:{},conflicts:I}),[O,S]=o__namespace.useState(false),g=o__namespace.useRef({}),b=o__namespace.useCallback((e,n)=>{y&&Object.entries(g.current).forEach(([a,s])=>{a!==e&&s&&(s.scrollTop=n);});},[y]),W=o__namespace.useCallback(async()=>{let e=d.map(n=>{let a=i.find(s=>s.id===n);return a?`=== ${a.filename} ===
2
+ ${a.content}`:""}).join(`
3
+
4
+ `);try{await navigator.clipboard.writeText(e),S(!0),setTimeout(()=>S(!1),2e3);}catch(n){console.error("Failed to copy comparison:",n);}},[i,d]),M=o__namespace.useCallback((e,n)=>{K(a=>({...a,resolved:{...a.resolved,[e]:n}})),w?.(n);},[w]),J=o__namespace.useCallback((e,n)=>{let a=e.content.split(`
5
+ `),s=n.content.split(`
6
+ `),l=0,T=0,B=0,ee=Math.max(a.length,s.length);for(let p=0;p<ee;p++){let k=a[p],R=s[p];k===void 0?l++:R===void 0?T++:k!==R&&B++;}return {added:l,removed:T,modified:B}},[]),Q=chunkEI7MMDWY_js.a(()=>jsxRuntime.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i.map((e,n)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs(button.Button,{variant:d.includes(e.id)?"default":"outline",size:"sm",onClick:()=>{v(c==="three-way"?a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<3?[...a,e.id]:[a[1],a[2],e.id]:a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<2?[...a,e.id]:[a[1],e.id]),P?.(e.id);},className:"gap-2",children:[e.label||e.filename,e.version&&jsxRuntime.jsx(badge.Badge,{variant:"secondary",className:"text-xs",children:e.version})]}),n<i.length-1&&c!=="three-way"&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:"vs"})]},e.id))}),"renderFileSelector"),X=chunkEI7MMDWY_js.a(()=>{let[e,n]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);if(!e||!n)return jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"});let a=J(e,n);return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Comparison"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[jsxRuntime.jsxs("span",{className:"text-green-600",children:["+",a.added]}),jsxRuntime.jsxs("span",{className:"text-red-600",children:["-",a.removed]}),jsxRuntime.jsxs("span",{className:"text-yellow-600",children:["~",a.modified]})]})]})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0",children:jsxRuntime.jsx(diff.CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,oldFilename:e.filename,newFilename:n.filename,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"split",className:"border-0 rounded-none h-full"})})]})},"renderSideBySide"),Y=chunkEI7MMDWY_js.a(()=>{let[e,n]=d.map(a=>i.find(s=>s.id===a)).filter(Boolean);return !e||!n?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"}):jsxRuntime.jsx(diff.CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,filename:`${e.filename} \u2192 ${n.filename}`,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"unified",className:"border-0 rounded-none"})},"renderUnified"),Z=chunkEI7MMDWY_js.a(()=>{let[e,n,a]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);return !e||!n||!a?jsxRuntime.jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select three files for three-way merge (base, current, incoming)"}):jsxRuntime.jsxs("div",{className:"grid grid-cols-3 gap-0 h-full",children:[jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-muted/30",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium",children:["Base (",e.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.base=s;},onScrollCapture:s=>{let l=s.target;b("base",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:e.content,language:e.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-blue-500/10",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium text-blue-600 dark:text-blue-400",children:["Current (",n.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.current=s;},onScrollCapture:s=>{let l=s.target;b("current",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:n.content,language:n.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"border-b px-4 py-2 bg-green-500/10",children:jsxRuntime.jsxs("span",{className:"text-sm font-medium text-green-600 dark:text-green-400",children:["Incoming (",a.filename,")"]})}),jsxRuntime.jsx(scrollArea.ScrollArea,{className:"h-full",ref:s=>{g.current.incoming=s;},onScrollCapture:s=>{let l=s.target;b("incoming",l.scrollTop);},children:jsxRuntime.jsx(snippet.CodeSnippet,{code:a.content,language:a.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]})]})},"renderThreeWay"),_=chunkEI7MMDWY_js.a(()=>!A||x.conflicts.length===0?null:jsxRuntime.jsx("div",{className:"border-t bg-muted/30",children:jsxRuntime.jsxs("div",{className:"px-4 py-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:"Merge Conflicts"}),jsxRuntime.jsx(badge.Badge,{variant:"destructive",className:"text-xs",children:x.conflicts.length})]}),jsxRuntime.jsx("div",{className:"mt-2 space-y-2",children:x.conflicts.map((e,n)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[jsxRuntime.jsxs("span",{children:["Lines ",e.startLine,"-",e.endLine]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(button.Button,{variant:"outline",size:"sm",onClick:()=>M(n,"current"),className:"h-6 text-xs",children:"Keep Current"}),jsxRuntime.jsx(button.Button,{variant:"outline",size:"sm",onClick:()=>M(n,"incoming"),className:"h-6 text-xs",children:"Accept Incoming"})]})]},n))})]})}),"renderMergeConflicts");return jsxRuntime.jsxs("div",{ref:q,className:utils.cn(fe({layout:z,size:V}),H),style:{height:$},...U,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:Q()}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(tabs.Tabs,{value:c,onValueChange:e=>G(e),children:jsxRuntime.jsxs(tabs.TabsList,{className:"grid w-full grid-cols-3",children:[jsxRuntime.jsx(tabs.TabsTrigger,{value:"side-by-side",className:"text-xs",children:"Side by Side"}),jsxRuntime.jsx(tabs.TabsTrigger,{value:"unified",className:"text-xs",children:"Unified"}),jsxRuntime.jsx(tabs.TabsTrigger,{value:"three-way",className:"text-xs",children:"Three-way"})]})}),E&&jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",onClick:W,className:"h-8 w-8 p-0",children:O?jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsxs(dropdownMenu.DropdownMenu,{children:[jsxRuntime.jsx(dropdownMenu.DropdownMenuTrigger,{asChild:true,children:jsxRuntime.jsx(button.Button,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-3.5 w-3.5"})})}),jsxRuntime.jsxs(dropdownMenu.DropdownMenuContent,{align:"end",children:[jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem,{onClick:()=>v([]),className:"gap-2",children:[jsxRuntime.jsx(lucideReact.RotateCcw,{className:"h-4 w-4"}),"Reset Selection"]}),jsxRuntime.jsxs(dropdownMenu.DropdownMenuItem,{className:"gap-2",children:[jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),"Settings"]})]})]})]})]}),jsxRuntime.jsxs("div",{className:"flex-1 min-h-0",children:[c==="side-by-side"&&X(),c==="unified"&&Y(),c==="three-way"&&Z()]}),_()]})});ge.displayName="CodeCompare";exports.a=fe;exports.b=ge;
@@ -0,0 +1,6 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import*as o from'react';import {cva}from'class-variance-authority';import {Check,Copy,MoreHorizontal,RotateCcw,Settings}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/badge';import {Button}from'@hanzo/ui/button';import {CodeDiff}from'@hanzo/ui/code/diff';import {CodeSnippet}from'@hanzo/ui/code/snippet';import {DropdownMenu,DropdownMenuTrigger,DropdownMenuContent,DropdownMenuItem}from'@hanzo/ui/dropdown-menu';import {ScrollArea}from'@hanzo/ui/scroll-area';import {Tabs,TabsList,TabsTrigger}from'@hanzo/ui/tabs';import {jsx,jsxs}from'react/jsx-runtime';var fe=cva("relative flex flex-col overflow-hidden rounded-lg border bg-background",{variants:{layout:{horizontal:"flex-col",vertical:"flex-row"},size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{layout:"horizontal",size:"default"}}),ge=o.forwardRef(({className:H,layout:z,size:V,files:i,defaultView:j="side-by-side",showLineNumbers:u=true,showCopyButton:E=true,allowMerge:A=false,conflictMarkers:I=[],onMergeConflict:w,onFileSelect:P,height:$="600px",syncScroll:y=true,...U},q)=>{let[c,G]=o.useState(j),[d,v]=o.useState(()=>i.length>=2?[i[0].id,i[1].id]:i.length>0?[i[0].id]:[]),[x,K]=o.useState({resolved:{},conflicts:I}),[O,S]=o.useState(false),g=o.useRef({}),b=o.useCallback((e,n)=>{y&&Object.entries(g.current).forEach(([a,s])=>{a!==e&&s&&(s.scrollTop=n);});},[y]),W=o.useCallback(async()=>{let e=d.map(n=>{let a=i.find(s=>s.id===n);return a?`=== ${a.filename} ===
2
+ ${a.content}`:""}).join(`
3
+
4
+ `);try{await navigator.clipboard.writeText(e),S(!0),setTimeout(()=>S(!1),2e3);}catch(n){console.error("Failed to copy comparison:",n);}},[i,d]),M=o.useCallback((e,n)=>{K(a=>({...a,resolved:{...a.resolved,[e]:n}})),w?.(n);},[w]),J=o.useCallback((e,n)=>{let a=e.content.split(`
5
+ `),s=n.content.split(`
6
+ `),l=0,T=0,B=0,ee=Math.max(a.length,s.length);for(let p=0;p<ee;p++){let k=a[p],R=s[p];k===void 0?l++:R===void 0?T++:k!==R&&B++;}return {added:l,removed:T,modified:B}},[]),Q=a(()=>jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i.map((e,n)=>jsxs("div",{className:"flex items-center gap-2",children:[jsxs(Button,{variant:d.includes(e.id)?"default":"outline",size:"sm",onClick:()=>{v(c==="three-way"?a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<3?[...a,e.id]:[a[1],a[2],e.id]:a=>a.includes(e.id)?a.filter(s=>s!==e.id):a.length<2?[...a,e.id]:[a[1],e.id]),P?.(e.id);},className:"gap-2",children:[e.label||e.filename,e.version&&jsx(Badge,{variant:"secondary",className:"text-xs",children:e.version})]}),n<i.length-1&&c!=="three-way"&&jsx("span",{className:"text-muted-foreground",children:"vs"})]},e.id))}),"renderFileSelector"),X=a(()=>{let[e,n]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);if(!e||!n)return jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"});let a=J(e,n);return jsxs("div",{className:"flex flex-col h-full",children:[jsx("div",{className:"flex items-center justify-between border-b px-4 py-2 bg-muted/30",children:jsxs("div",{className:"flex items-center gap-4",children:[jsx("span",{className:"text-sm font-medium",children:"Comparison"}),jsxs("div",{className:"flex items-center gap-3 text-xs",children:[jsxs("span",{className:"text-green-600",children:["+",a.added]}),jsxs("span",{className:"text-red-600",children:["-",a.removed]}),jsxs("span",{className:"text-yellow-600",children:["~",a.modified]})]})]})}),jsx("div",{className:"flex-1 min-h-0",children:jsx(CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,oldFilename:e.filename,newFilename:n.filename,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"split",className:"border-0 rounded-none h-full"})})]})},"renderSideBySide"),Y=a(()=>{let[e,n]=d.map(a=>i.find(s=>s.id===a)).filter(Boolean);return !e||!n?jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select two files to compare"}):jsx(CodeDiff,{oldCode:e.content,newCode:n.content,language:e.language,filename:`${e.filename} \u2192 ${n.filename}`,showLineNumbers:u,showCopyButton:false,maxHeight:"100%",defaultView:"unified",className:"border-0 rounded-none"})},"renderUnified"),Z=a(()=>{let[e,n,a]=d.map(s=>i.find(l=>l.id===s)).filter(Boolean);return !e||!n||!a?jsx("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:"Select three files for three-way merge (base, current, incoming)"}):jsxs("div",{className:"grid grid-cols-3 gap-0 h-full",children:[jsxs("div",{className:"border-r",children:[jsx("div",{className:"border-b px-4 py-2 bg-muted/30",children:jsxs("span",{className:"text-sm font-medium",children:["Base (",e.filename,")"]})}),jsx(ScrollArea,{className:"h-full",ref:s=>{g.current.base=s;},onScrollCapture:s=>{let l=s.target;b("base",l.scrollTop);},children:jsx(CodeSnippet,{code:e.content,language:e.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxs("div",{className:"border-r",children:[jsx("div",{className:"border-b px-4 py-2 bg-blue-500/10",children:jsxs("span",{className:"text-sm font-medium text-blue-600 dark:text-blue-400",children:["Current (",n.filename,")"]})}),jsx(ScrollArea,{className:"h-full",ref:s=>{g.current.current=s;},onScrollCapture:s=>{let l=s.target;b("current",l.scrollTop);},children:jsx(CodeSnippet,{code:n.content,language:n.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]}),jsxs("div",{children:[jsx("div",{className:"border-b px-4 py-2 bg-green-500/10",children:jsxs("span",{className:"text-sm font-medium text-green-600 dark:text-green-400",children:["Incoming (",a.filename,")"]})}),jsx(ScrollArea,{className:"h-full",ref:s=>{g.current.incoming=s;},onScrollCapture:s=>{let l=s.target;b("incoming",l.scrollTop);},children:jsx(CodeSnippet,{code:a.content,language:a.language,showLineNumbers:u,showCopyButton:false,showHeader:false,className:"border-0 rounded-none"})})]})]})},"renderThreeWay"),_=a(()=>!A||x.conflicts.length===0?null:jsx("div",{className:"border-t bg-muted/30",children:jsxs("div",{className:"px-4 py-2",children:[jsxs("div",{className:"flex items-center justify-between",children:[jsx("span",{className:"text-sm font-medium",children:"Merge Conflicts"}),jsx(Badge,{variant:"destructive",className:"text-xs",children:x.conflicts.length})]}),jsx("div",{className:"mt-2 space-y-2",children:x.conflicts.map((e,n)=>jsxs("div",{className:"flex items-center gap-2 text-xs",children:[jsxs("span",{children:["Lines ",e.startLine,"-",e.endLine]}),jsxs("div",{className:"flex gap-1",children:[jsx(Button,{variant:"outline",size:"sm",onClick:()=>M(n,"current"),className:"h-6 text-xs",children:"Keep Current"}),jsx(Button,{variant:"outline",size:"sm",onClick:()=>M(n,"incoming"),className:"h-6 text-xs",children:"Accept Incoming"})]})]},n))})]})}),"renderMergeConflicts");return jsxs("div",{ref:q,className:cn(fe({layout:z,size:V}),H),style:{height:$},...U,children:[jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[jsx("div",{className:"flex items-center gap-4",children:Q()}),jsxs("div",{className:"flex items-center gap-2",children:[jsx(Tabs,{value:c,onValueChange:e=>G(e),children:jsxs(TabsList,{className:"grid w-full grid-cols-3",children:[jsx(TabsTrigger,{value:"side-by-side",className:"text-xs",children:"Side by Side"}),jsx(TabsTrigger,{value:"unified",className:"text-xs",children:"Unified"}),jsx(TabsTrigger,{value:"three-way",className:"text-xs",children:"Three-way"})]})}),E&&jsx(Button,{variant:"ghost",size:"sm",onClick:W,className:"h-8 w-8 p-0",children:O?jsx(Check,{className:"h-3.5 w-3.5 text-green-500"}):jsx(Copy,{className:"h-3.5 w-3.5"})}),jsxs(DropdownMenu,{children:[jsx(DropdownMenuTrigger,{asChild:true,children:jsx(Button,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:jsx(MoreHorizontal,{className:"h-3.5 w-3.5"})})}),jsxs(DropdownMenuContent,{align:"end",children:[jsxs(DropdownMenuItem,{onClick:()=>v([]),className:"gap-2",children:[jsx(RotateCcw,{className:"h-4 w-4"}),"Reset Selection"]}),jsxs(DropdownMenuItem,{className:"gap-2",children:[jsx(Settings,{className:"h-4 w-4"}),"Settings"]})]})]})]})]}),jsxs("div",{className:"flex-1 min-h-0",children:[c==="side-by-side"&&X(),c==="unified"&&Y(),c==="three-way"&&Z()]}),_()]})});ge.displayName="CodeCompare";export{fe as a,ge as b};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import*as n from'react';import {useMotionValue,AnimatePresence,motion,useTransform}from'framer-motion';import {ChevronLeft,ChevronRight}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Card,Button}from'@hanzo/ui';import {jsxs,jsx,Fragment}from'react/jsx-runtime';function Z({cards:o,autoPlay:d=false,autoPlayInterval:p=5e3,className:N,cardClassName:R,showArrows:E=true,showDots:M=true,parallaxOffset:h=50,stackOffset:A=10,stackScale:I=.95,swipeThreshold:x=50}){let[m,b]=n.useState(0),[y,v]=n.useState(d),z=n.useRef(null),w=useMotionValue(0),P=a(e=>{let t=e-m,s=Math.abs(t);if(s>2)return {display:"none",x:0,scale:1,opacity:0,zIndex:0};let B=t*A,O=Math.pow(I,s),j=Math.max(0,1-s*.3),K=o.length-s;return {display:"block",x:B,scale:O,opacity:j,zIndex:K}},"getCardStyle"),l=n.useCallback(()=>{b(e=>(e+1)%o.length);},[o.length]),f=n.useCallback(()=>{b(e=>(e-1+o.length)%o.length);},[o.length]),L=n.useCallback(e=>{b(e);},[]),T=n.useCallback((e,t)=>{let{offset:s,velocity:i}=t;(Math.abs(s.x)>x||Math.abs(i.x)>500)&&(s.x>0?f():l());},[l,f,x]);n.useEffect(()=>{if(!y)return;let e=setInterval(l,p);return ()=>clearInterval(e)},[y,l,p]);let D=n.useCallback(()=>{d&&v(false);},[d]),S=n.useCallback(()=>{d&&v(true);},[d]);return n.useEffect(()=>{let e=a(t=>{t.key==="ArrowLeft"?f():t.key==="ArrowRight"&&l();},"handleKeyDown");return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[l,f]),jsxs("div",{ref:z,className:cn("relative w-full max-w-6xl mx-auto px-4 py-8",N),onMouseEnter:D,onMouseLeave:S,children:[jsx("div",{className:"relative h-[400px] md:h-[500px] lg:h-[600px] flex items-center justify-center",children:jsx(AnimatePresence,{mode:"popLayout",children:o.map((e,t)=>{let s=P(t),i=t===m;return jsx(motion.div,{className:cn("absolute inset-0 w-full h-full",!i&&"pointer-events-none"),initial:false,animate:{x:s.x,scale:s.scale,opacity:s.opacity,zIndex:s.zIndex},transition:{type:"spring",stiffness:300,damping:30},drag:i?"x":false,dragSnapToOrigin:true,dragElastic:.2,onDragEnd:T,whileDrag:{cursor:"grabbing"},style:{x:w,display:s.display},children:jsxs(Card,{className:cn("relative w-full h-full overflow-hidden cursor-grab","bg-gradient-to-br from-white to-gray-50 dark:from-gray-900 dark:to-gray-950","shadow-2xl hover:shadow-3xl transition-shadow duration-300",R),style:{background:e.gradient},children:[e.image&&jsxs(motion.div,{className:"absolute inset-0 w-full h-full",style:{x:useTransform(w,[-200,0,200],[h,0,-h])},children:[jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover"}),jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),jsx("div",{className:"relative z-10 flex flex-col justify-end h-full p-8 md:p-12",children:e.content?e.content:jsxs(Fragment,{children:[jsx(motion.h3,{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-2",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.1},children:e.title}),e.subtitle&&jsx(motion.p,{className:"text-xl md:text-2xl text-white/80 mb-4",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.2},children:e.subtitle}),e.description&&jsx(motion.p,{className:"text-base md:text-lg text-white/70 max-w-2xl",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.3},children:e.description})]})})]})},e.id)})})}),E&&jsxs(Fragment,{children:[jsxs(Button,{variant:"ghost",size:"icon",className:cn("absolute left-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:f,children:[jsx(ChevronLeft,{className:"h-6 w-6"}),jsx("span",{className:"sr-only",children:"Previous card"})]}),jsxs(Button,{variant:"ghost",size:"icon",className:cn("absolute right-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:l,children:[jsx(ChevronRight,{className:"h-6 w-6"}),jsx("span",{className:"sr-only",children:"Next card"})]})]}),M&&jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:o.map((e,t)=>jsx("button",{className:cn("w-2 h-2 rounded-full transition-all duration-300","bg-white/40 hover:bg-white/60",t===m&&"w-8 bg-white"),onClick:()=>L(t),children:jsxs("span",{className:"sr-only",children:["Go to card ",t+1]})},t))})]})}a(Z,"AppleCardsCarousel");var $={sunset:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",ocean:"linear-gradient(135deg, #667eea 0%, #4ca1af 100%)",fire:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",forest:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",galaxy:"linear-gradient(135deg, #7303c0 0%, #ec38bc 50%, #fdeff9 100%)",aurora:"linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)",peach:"linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)",lavender:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"};export{Z as a,$ as b};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import*as e from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var v=e.forwardRef(({items:n,columns:t=4,rows:s=3,gap:c=16,perspective:i=1e3,rotateX:u=25,rotateY:l=15,cellHeight:p=200,cellWidth:m=200,isometric:g=false,tiltOnHover:f=true,staggerAnimation:b=true,animationDelay:x=100,elevationOnHover:T=true,maxElevation:L=50,className:I,...O},Y)=>{let y=e.useRef(null),[X,R]=e.useState(null),[N,$]=e.useState({x:0,y:0}),[W,S]=e.useState(false),M=e.useMemo(()=>g?`perspective(${i}px) rotateX(45deg) rotateY(45deg)`:`perspective(${i}px) rotateX(${u}deg) rotateY(${l}deg)`,[g,i,u,l]),k=e.useCallback(r=>{if(!f||!y.current)return;let a=y.current.getBoundingClientRect(),d=a.left+a.width/2,P=a.top+a.height/2,C=(r.clientX-d)/(a.width/2),w=(r.clientY-P)/(a.height/2);$({x:C*10,y:w*10});},[f]),A=e.useCallback(()=>{S(true);},[]),z=e.useCallback(()=>{S(false),$({x:0,y:0}),R(null);},[]);e.useImperativeHandle(Y,()=>y.current);let Z={perspective:`${i}px`,transformStyle:"preserve-3d"},j={display:"grid",gridTemplateColumns:`repeat(${t}, ${m}px)`,gridTemplateRows:`repeat(${s}, ${p}px)`,gap:`${c}px`,transform:f&&W?`${M} rotateX(${-N.y}deg) rotateY(${N.x}deg)`:M,transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",transformStyle:"preserve-3d"},E=a(r=>{let a=r%t,d=Math.floor(r/t);return {x:a,y:d}},"getGridPosition"),q=a(r=>{if(!b)return 0;let{x:a,y:d}=E(r);return (a+d)*x},"getStaggerDelay");return jsxs("div",{ref:y,className:cn("w-fit mx-auto",I),style:Z,onMouseMove:k,onMouseEnter:A,onMouseLeave:z,...O,children:[jsx("div",{style:j,children:n.map((r,a)=>{let d=X===a,{x:P,y:C}=E(a),w=q(a),B={gridColumn:r.span?`span ${r.span.x}`:void 0,gridRow:r.span?`span ${r.span.y}`:void 0,transform:`translateZ(${(r.elevation||0)+(d&&T?L:0)}px)`,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",transformStyle:"preserve-3d",animationDelay:`${w}ms`};return jsxs("div",{className:cn("relative rounded-lg border bg-card text-card-foreground shadow-lg","transform-gpu will-change-transform cursor-pointer","transition-all duration-300 hover:shadow-xl",b&&"animate-in fade-in slide-in-from-bottom-4",d&&"ring-2 ring-primary ring-offset-2"),style:B,onMouseEnter:()=>R(a),onMouseLeave:()=>R(null),children:[jsx("div",{className:"w-full h-full overflow-hidden rounded-lg",children:r.content}),(r.elevation||0)>0&&jsx("div",{className:"absolute inset-0 -z-10 rounded-lg bg-black/20 blur-sm",style:{transform:`translateY(${(r.elevation||0)/2}px) scale(0.95)`}})]},r.id)})}),g&&jsx("div",{className:"absolute inset-0 pointer-events-none opacity-20",children:jsx("div",{className:"grid border-dashed border-muted-foreground/30",style:{gridTemplateColumns:`repeat(${t}, ${m}px)`,gridTemplateRows:`repeat(${s}, ${p}px)`,gap:`${c}px`,transform:M,transformStyle:"preserve-3d"},children:Array.from({length:t*s}).map((r,a)=>jsx("div",{className:"border border-dashed border-muted-foreground/20 rounded-lg"},a))})})]})});v.displayName="Grid3D";var _=e.forwardRef(({className:n,title:t,description:s,image:c,badge:i,elevation:u=0,children:l,...p},m)=>jsxs("div",{ref:m,className:cn("group relative w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20","border rounded-lg overflow-hidden",n),style:{transform:`translateZ(${u}px)`,transformStyle:"preserve-3d"},...p,children:[c&&jsxs("div",{className:"relative h-32 overflow-hidden",children:[jsx("img",{src:c,alt:t||"",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-110"}),i&&jsx("div",{className:"absolute top-2 right-2 px-2 py-1 text-xs rounded-full bg-primary text-primary-foreground",children:i})]}),jsxs("div",{className:"flex-1 p-4 flex flex-col justify-between",children:[t&&jsx("h3",{className:"font-semibold text-lg mb-2 line-clamp-2 group-hover:text-primary transition-colors",children:t}),s&&jsx("p",{className:"text-sm text-muted-foreground line-clamp-3 mb-4",children:s}),l&&jsx("div",{className:"mt-auto",children:l})]}),jsx("div",{className:"absolute inset-0 -z-10 rounded-lg bg-gradient-to-br from-muted/50 to-muted",style:{transform:"translateZ(-2px) scale(0.98)",transformStyle:"preserve-3d"}})]}));_.displayName="Grid3DCard";var D={Dashboard:e.forwardRef(({children:n,...t},s)=>jsx(v,{ref:s,columns:4,rows:3,cellWidth:250,cellHeight:200,gap:20,perspective:1200,rotateX:20,rotateY:10,tiltOnHover:true,elevationOnHover:true,maxElevation:30,items:[],...t})),Isometric:e.forwardRef(({children:n,...t},s)=>jsx(v,{ref:s,columns:3,rows:3,cellWidth:180,cellHeight:180,gap:16,isometric:true,perspective:1e3,staggerAnimation:true,animationDelay:50,items:[],...t})),Gallery:e.forwardRef(({children:n,...t},s)=>jsx(v,{ref:s,columns:5,rows:2,cellWidth:200,cellHeight:280,gap:24,perspective:1500,rotateX:15,rotateY:5,tiltOnHover:true,elevationOnHover:true,maxElevation:40,items:[],...t})),Compact:e.forwardRef(({children:n,...t},s)=>jsx(v,{ref:s,columns:6,rows:4,cellWidth:120,cellHeight:120,gap:8,perspective:800,rotateX:30,rotateY:20,tiltOnHover:true,staggerAnimation:true,animationDelay:30,items:[],...t}))};D.Dashboard.displayName="Grid3DPreset.Dashboard";D.Isometric.displayName="Grid3DPreset.Isometric";D.Gallery.displayName="Grid3DPreset.Gallery";D.Compact.displayName="Grid3DPreset.Compact";var F=e.forwardRef(({items:n,minCellWidth:t=200,maxCellWidth:s=300,aspectRatio:c=1,...i},u)=>{let[l,p]=e.useState({columns:3,rows:2});e.useEffect(()=>{let f=n.length,b=Math.ceil(Math.sqrt(f)),x=Math.ceil(f/b);p({columns:b,rows:x});},[n.length]);let m=Math.min(s,Math.max(t,200)),g=m/c;return jsx(v,{ref:u,items:n,columns:l.columns,rows:l.rows,cellWidth:m,cellHeight:g,...i})});F.displayName="Grid3DAuto";export{v as a,_ as b,D as c,F as d};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkEI7MMDWY_js=require('./chunk-EI7MMDWY.js'),e=require('react'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var e__namespace=/*#__PURE__*/_interopNamespace(e);var v=e__namespace.forwardRef(({items:n,columns:t=4,rows:s=3,gap:c=16,perspective:i=1e3,rotateX:u=25,rotateY:l=15,cellHeight:p=200,cellWidth:m=200,isometric:g=false,tiltOnHover:f=true,staggerAnimation:b=true,animationDelay:x=100,elevationOnHover:T=true,maxElevation:L=50,className:I,...O},Y)=>{let y=e__namespace.useRef(null),[X,R]=e__namespace.useState(null),[N,$]=e__namespace.useState({x:0,y:0}),[W,S]=e__namespace.useState(false),M=e__namespace.useMemo(()=>g?`perspective(${i}px) rotateX(45deg) rotateY(45deg)`:`perspective(${i}px) rotateX(${u}deg) rotateY(${l}deg)`,[g,i,u,l]),k=e__namespace.useCallback(r=>{if(!f||!y.current)return;let a=y.current.getBoundingClientRect(),d=a.left+a.width/2,P=a.top+a.height/2,C=(r.clientX-d)/(a.width/2),w=(r.clientY-P)/(a.height/2);$({x:C*10,y:w*10});},[f]),A=e__namespace.useCallback(()=>{S(true);},[]),z=e__namespace.useCallback(()=>{S(false),$({x:0,y:0}),R(null);},[]);e__namespace.useImperativeHandle(Y,()=>y.current);let Z={perspective:`${i}px`,transformStyle:"preserve-3d"},j={display:"grid",gridTemplateColumns:`repeat(${t}, ${m}px)`,gridTemplateRows:`repeat(${s}, ${p}px)`,gap:`${c}px`,transform:f&&W?`${M} rotateX(${-N.y}deg) rotateY(${N.x}deg)`:M,transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",transformStyle:"preserve-3d"},E=chunkEI7MMDWY_js.a(r=>{let a=r%t,d=Math.floor(r/t);return {x:a,y:d}},"getGridPosition"),q=chunkEI7MMDWY_js.a(r=>{if(!b)return 0;let{x:a,y:d}=E(r);return (a+d)*x},"getStaggerDelay");return jsxRuntime.jsxs("div",{ref:y,className:utils.cn("w-fit mx-auto",I),style:Z,onMouseMove:k,onMouseEnter:A,onMouseLeave:z,...O,children:[jsxRuntime.jsx("div",{style:j,children:n.map((r,a)=>{let d=X===a,{x:P,y:C}=E(a),w=q(a),B={gridColumn:r.span?`span ${r.span.x}`:void 0,gridRow:r.span?`span ${r.span.y}`:void 0,transform:`translateZ(${(r.elevation||0)+(d&&T?L:0)}px)`,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",transformStyle:"preserve-3d",animationDelay:`${w}ms`};return jsxRuntime.jsxs("div",{className:utils.cn("relative rounded-lg border bg-card text-card-foreground shadow-lg","transform-gpu will-change-transform cursor-pointer","transition-all duration-300 hover:shadow-xl",b&&"animate-in fade-in slide-in-from-bottom-4",d&&"ring-2 ring-primary ring-offset-2"),style:B,onMouseEnter:()=>R(a),onMouseLeave:()=>R(null),children:[jsxRuntime.jsx("div",{className:"w-full h-full overflow-hidden rounded-lg",children:r.content}),(r.elevation||0)>0&&jsxRuntime.jsx("div",{className:"absolute inset-0 -z-10 rounded-lg bg-black/20 blur-sm",style:{transform:`translateY(${(r.elevation||0)/2}px) scale(0.95)`}})]},r.id)})}),g&&jsxRuntime.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-20",children:jsxRuntime.jsx("div",{className:"grid border-dashed border-muted-foreground/30",style:{gridTemplateColumns:`repeat(${t}, ${m}px)`,gridTemplateRows:`repeat(${s}, ${p}px)`,gap:`${c}px`,transform:M,transformStyle:"preserve-3d"},children:Array.from({length:t*s}).map((r,a)=>jsxRuntime.jsx("div",{className:"border border-dashed border-muted-foreground/20 rounded-lg"},a))})})]})});v.displayName="Grid3D";var _=e__namespace.forwardRef(({className:n,title:t,description:s,image:c,badge:i,elevation:u=0,children:l,...p},m)=>jsxRuntime.jsxs("div",{ref:m,className:utils.cn("group relative w-full h-full flex flex-col bg-gradient-to-br from-background to-muted/20","border rounded-lg overflow-hidden",n),style:{transform:`translateZ(${u}px)`,transformStyle:"preserve-3d"},...p,children:[c&&jsxRuntime.jsxs("div",{className:"relative h-32 overflow-hidden",children:[jsxRuntime.jsx("img",{src:c,alt:t||"",className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-110"}),i&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 px-2 py-1 text-xs rounded-full bg-primary text-primary-foreground",children:i})]}),jsxRuntime.jsxs("div",{className:"flex-1 p-4 flex flex-col justify-between",children:[t&&jsxRuntime.jsx("h3",{className:"font-semibold text-lg mb-2 line-clamp-2 group-hover:text-primary transition-colors",children:t}),s&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3 mb-4",children:s}),l&&jsxRuntime.jsx("div",{className:"mt-auto",children:l})]}),jsxRuntime.jsx("div",{className:"absolute inset-0 -z-10 rounded-lg bg-gradient-to-br from-muted/50 to-muted",style:{transform:"translateZ(-2px) scale(0.98)",transformStyle:"preserve-3d"}})]}));_.displayName="Grid3DCard";var D={Dashboard:e__namespace.forwardRef(({children:n,...t},s)=>jsxRuntime.jsx(v,{ref:s,columns:4,rows:3,cellWidth:250,cellHeight:200,gap:20,perspective:1200,rotateX:20,rotateY:10,tiltOnHover:true,elevationOnHover:true,maxElevation:30,items:[],...t})),Isometric:e__namespace.forwardRef(({children:n,...t},s)=>jsxRuntime.jsx(v,{ref:s,columns:3,rows:3,cellWidth:180,cellHeight:180,gap:16,isometric:true,perspective:1e3,staggerAnimation:true,animationDelay:50,items:[],...t})),Gallery:e__namespace.forwardRef(({children:n,...t},s)=>jsxRuntime.jsx(v,{ref:s,columns:5,rows:2,cellWidth:200,cellHeight:280,gap:24,perspective:1500,rotateX:15,rotateY:5,tiltOnHover:true,elevationOnHover:true,maxElevation:40,items:[],...t})),Compact:e__namespace.forwardRef(({children:n,...t},s)=>jsxRuntime.jsx(v,{ref:s,columns:6,rows:4,cellWidth:120,cellHeight:120,gap:8,perspective:800,rotateX:30,rotateY:20,tiltOnHover:true,staggerAnimation:true,animationDelay:30,items:[],...t}))};D.Dashboard.displayName="Grid3DPreset.Dashboard";D.Isometric.displayName="Grid3DPreset.Isometric";D.Gallery.displayName="Grid3DPreset.Gallery";D.Compact.displayName="Grid3DPreset.Compact";var F=e__namespace.forwardRef(({items:n,minCellWidth:t=200,maxCellWidth:s=300,aspectRatio:c=1,...i},u)=>{let[l,p]=e__namespace.useState({columns:3,rows:2});e__namespace.useEffect(()=>{let f=n.length,b=Math.ceil(Math.sqrt(f)),x=Math.ceil(f/b);p({columns:b,rows:x});},[n.length]);let m=Math.min(s,Math.max(t,200)),g=m/c;return jsxRuntime.jsx(v,{ref:u,items:n,columns:l.columns,rows:l.rows,cellWidth:m,cellHeight:g,...i})});F.displayName="Grid3DAuto";exports.a=v;exports.b=_;exports.c=D;exports.d=F;
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import*as t from'react';import {cva}from'class-variance-authority';import {FileText,Check,Copy}from'lucide-react';import {codeToHtml}from'shiki';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/badge';import {Button}from'@hanzo/ui/button';import {Skeleton}from'@hanzo/ui/skeleton';import {jsxs,jsx}from'react/jsx-runtime';var G=cva("relative overflow-hidden rounded-lg border bg-muted/50",{variants:{theme:{dark:"bg-slate-950 border-slate-800",light:"bg-slate-50 border-slate-200",github:"bg-white border-slate-200","github-dark":"bg-slate-900 border-slate-700","vs-dark":"bg-slate-950 border-slate-800",monokai:"bg-slate-900 border-slate-700",dracula:"bg-slate-900 border-purple-800/30",nord:"bg-slate-800 border-slate-600"},size:{sm:"text-xs",default:"text-sm",lg:"text-base"}},defaultVariants:{theme:"dark",size:"default"}}),H=t.memo(({line:g,lineNumber:n,showLineNumbers:h,isHighlighted:s=false,isDiffAdded:a=false,isDiffRemoved:o=false})=>jsxs("div",{className:cn("group relative flex min-h-[1.5rem] items-center px-4 py-0.5",s&&"bg-blue-500/10 border-l-2 border-l-blue-500",a&&"bg-green-500/10 border-l-2 border-l-green-500",o&&"bg-red-500/10 border-l-2 border-l-red-500"),children:[h&&jsx("span",{className:"mr-4 inline-block w-8 select-none text-right text-xs text-muted-foreground",children:n}),(a||o)&&jsx("span",{className:"mr-2 select-none text-xs",children:a?"+":o?"-":" "}),jsx("div",{className:"flex-1 overflow-x-auto",dangerouslySetInnerHTML:{__html:g}})]}));H.displayName="CodeLine";var J=t.forwardRef(({className:g,theme:n,size:h,code:s,language:a$1="text",filename:o,showLineNumbers:p=true,highlightLines:R=[],showCopyButton:u=true,maxHeight:T="400px",diff:f,...B},M)=>{let[E,v]=t.useState(""),[x,k]=t.useState(false),[P,N]=t.useState(true),S={dark:"github-dark",light:"github-light",github:"github-light","github-dark":"github-dark","vs-dark":"dark-plus",monokai:"monokai",dracula:"dracula",nord:"nord"};t.useEffect(()=>{a(async()=>{N(true);try{let r=await codeToHtml(s,{lang:a$1,theme:S[n||"dark"],transformers:[{code(m){let d=m.children.find(y=>y.type==="element"&&y.tagName==="code");d&&"children"in d&&d.children&&(m.children=d.children);}}]}),i=document.createElement("div");i.innerHTML=r;let b=i.querySelector("code");v(b?.innerHTML||r);}catch(r){console.error("Failed to highlight code:",r),v(s);}finally{N(false);}},"highlightCode")();},[s,a$1,n]);let D=t.useCallback(async()=>{try{await navigator.clipboard.writeText(s),k(!0),setTimeout(()=>k(!1),2e3);}catch(c){console.error("Failed to copy code:",c);}},[s]),V=E.split(`
2
+ `);return jsxs("div",{ref:M,"data-testid":"code-block",className:cn(G({theme:n,size:h,className:g})),...B,children:[(o||a$1||u)&&jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[jsxs("div",{className:"flex items-center gap-2",children:[o&&jsxs("div",{className:"flex items-center gap-1.5",children:[jsx(FileText,{className:"h-3.5 w-3.5 text-muted-foreground"}),jsx("span",{className:"text-sm font-medium",children:o})]}),a$1&&jsx(Badge,{variant:"secondary",className:"text-xs",children:a$1})]}),u&&jsxs(Button,{variant:"ghost",size:"sm",onClick:D,className:"h-8 w-8 p-0",children:[x?jsx(Check,{className:"h-3.5 w-3.5 text-green-500"}):jsx(Copy,{className:"h-3.5 w-3.5"}),jsx("span",{className:"sr-only",children:x?"Copied":"Copy code"})]})]}),jsx("div",{className:"overflow-auto",style:{maxHeight:T},children:P?jsx("div",{className:"p-4 space-y-2",children:Array.from({length:10}).map((c,r)=>jsxs("div",{className:"flex items-center gap-4",children:[p&&jsx(Skeleton,{"data-testid":"skeleton",className:"h-4 w-8"}),jsx(Skeleton,{"data-testid":"skeleton",className:"h-4 flex-1"})]},r))}):jsx("div",{className:"font-mono",children:V.map((c,r)=>{let i=r+1,b=R.includes(i),m=f?.added?.includes(i),d=f?.removed?.includes(i);return jsx(H,{line:c,lineNumber:i,showLineNumbers:p,isHighlighted:b,isDiffAdded:m,isDiffRemoved:d},r)})})})]})});J.displayName="CodeBlock";export{G as a,J as b};
@@ -0,0 +1,2 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import {memo,useRef,useEffect}from'react';import {jsx}from'react/jsx-runtime';function d(){let e=useRef(null);return useEffect(()=>{if(!e.current||e.current.dataset.initialized==="true")return;e.current.dataset.initialized="true";let t=document.createElement("script");return t.src="https://s3.tradingview.com/external-embedding/embed-widget-screener.js",t.type="text/javascript",t.async=true,t.innerHTML=JSON.stringify({market:"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"})})}a(d,"StockScreener");var u=memo(d);
2
+ export{u as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-YSXGDEY5.mjs';import*as f from'react';import {useSensors,useSensor,PointerSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {useSortable,SortableContext,verticalListSortingStrategy,arrayMove}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import {cva}from'class-variance-authority';import {User,Calendar,MoreHorizontal,Edit3,X,Plus,Search}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Badge}from'@hanzo/ui/primitives/badge';import {Button}from'@hanzo/ui/primitives/button';import {Card,CardHeader}from'@hanzo/ui/primitives/card';import {Dialog,DialogContent,DialogHeader,DialogTitle,DialogDescription,DialogFooter}from'@hanzo/ui/primitives/dialog';import {DropdownMenu,DropdownMenuTrigger,DropdownMenuContent,DropdownMenuItem}from'@hanzo/ui/primitives/dropdown-menu';import {Input}from'@hanzo/ui/primitives/input';import {Label}from'@hanzo/ui/primitives/label';import {Select,SelectTrigger,SelectValue,SelectContent,SelectItem}from'@hanzo/ui/primitives/select';import {Textarea}from'@hanzo/ui/primitives/textarea';import {jsx,jsxs}from'react/jsx-runtime';var Be=cva("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-semibold",{variants:{priority:{low:"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-800 dark:bg-blue-900/20 dark:text-blue-400",medium:"border-yellow-200 bg-yellow-50 text-yellow-700 dark:border-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-400",high:"border-orange-200 bg-orange-50 text-orange-700 dark:border-orange-800 dark:bg-orange-900/20 dark:text-orange-400",urgent:"border-red-200 bg-red-50 text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400"}},defaultVariants:{priority:"low"}});function Me({card:t,onEdit:u,onDelete:i}){let{attributes:g,listeners:C,setNodeRef:d,transform:p,transition:y,isDragging:l}=useSortable({id:t.id}),c={transform:CSS.Transform.toString(p),transition:y};return jsx("div",{ref:d,style:c,...g,...C,className:cn("cursor-grab active:cursor-grabbing",l&&"opacity-50"),children:jsx(P,{card:t,onEdit:u,onDelete:i})})}a(Me,"SortableCard");function P({card:t,onEdit:u,onDelete:i}){return jsx(Card,{className:"mb-3 group hover:shadow-md transition-shadow",children:jsx(CardHeader,{className:"pb-3",children:jsx("div",{className:"flex items-start justify-between",children:jsxs("div",{className:"flex-1 min-w-0",children:[jsx("h4",{className:"font-medium text-sm leading-tight mb-2 break-words",children:t.title}),t.description&&jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:t.description}),t.labels&&t.labels.length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:t.labels.map(g=>jsx(Badge,{variant:"outline",className:"text-xs h-5",style:{backgroundColor:`${g.color}20`,borderColor:g.color,color:g.color},children:g.name},g.id))}),jsxs("div",{className:"flex items-center justify-between text-xs",children:[jsxs("div",{className:"flex items-center gap-2",children:[t.priority&&jsx("span",{className:cn(Be({priority:t.priority})),children:t.priority}),t.assignee&&jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[jsx(User,{className:"h-3 w-3"}),jsx("span",{children:t.assignee})]})]}),jsxs("div",{className:"flex items-center gap-1",children:[t.dueDate&&jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[jsx(Calendar,{className:"h-3 w-3"}),jsx("span",{children:new Date(t.dueDate).toLocaleDateString()})]}),jsxs(DropdownMenu,{children:[jsx(DropdownMenuTrigger,{asChild:true,children:jsx(Button,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",children:jsx(MoreHorizontal,{className:"h-3 w-3"})})}),jsxs(DropdownMenuContent,{align:"end",children:[jsxs(DropdownMenuItem,{onClick:()=>u(t),children:[jsx(Edit3,{className:"h-4 w-4 mr-2"}),"Edit"]}),jsxs(DropdownMenuItem,{onClick:()=>i(t.id),className:"text-destructive",children:[jsx(X,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})]})]})})})})}a(P,"KanbanCardComponent");function Ae({column:t,onAddCard:u,onEditCard:i,onDeleteCard:g}){let{setNodeRef:C}=useSortable({id:t.id});return jsxs("div",{ref:C,className:"bg-muted/50 rounded-lg p-4 min-w-[280px] max-w-[280px] flex flex-col",children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxs("div",{className:"flex items-center gap-2",children:[jsx("h3",{className:"font-semibold text-sm",children:t.title}),jsxs(Badge,{variant:"secondary",className:"text-xs",children:[t.cards.length,t.limit&&`/${t.limit}`]})]}),jsx(Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>u(t.id),children:jsx(Plus,{className:"h-4 w-4"})})]}),jsx(SortableContext,{items:t.cards.map(d=>d.id),strategy:verticalListSortingStrategy,children:jsx("div",{className:"flex-1 min-h-[200px]",children:t.cards.map(d=>jsx(Me,{card:d,onEdit:i,onDelete:g},d.id))})})]})}a(Ae,"KanbanColumnComponent");function Fe({open:t,onOpenChange:u,card:i,onSave:g,labels:C}){let[d,p]=f.useState({title:i?.title||"",description:i?.description||"",priority:i?.priority||"low",assignee:i?.assignee||"",dueDate:i?.dueDate||"",labels:i?.labels?.map(l=>l.id)||[]}),y=a(l=>{l.preventDefault(),d.title.trim()&&(g({...i,...d,labels:C.filter(c=>d.labels.includes(c.id)),updatedAt:new Date().toISOString()}),u(false));},"handleSubmit");return f.useEffect(()=>{p(i?{title:i.title,description:i.description||"",priority:i.priority||"low",assignee:i.assignee||"",dueDate:i.dueDate||"",labels:i.labels?.map(l=>l.id)||[]}:{title:"",description:"",priority:"low",assignee:"",dueDate:"",labels:[]});},[i]),jsx(Dialog,{open:t,onOpenChange:u,children:jsxs(DialogContent,{className:"max-w-md",children:[jsxs(DialogHeader,{children:[jsx(DialogTitle,{children:i?"Edit Card":"Create Card"}),jsx(DialogDescription,{children:i?"Update the card details below.":"Create a new card for your kanban board."})]}),jsxs("form",{onSubmit:y,className:"space-y-4",children:[jsxs("div",{children:[jsx(Label,{htmlFor:"title",children:"Title *"}),jsx(Input,{id:"title",value:d.title,onChange:l=>p(c=>({...c,title:l.target.value})),placeholder:"Enter card title...",required:true})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"description",children:"Description"}),jsx(Textarea,{id:"description",value:d.description,onChange:l=>p(c=>({...c,description:l.target.value})),placeholder:"Enter card description...",rows:3})]}),jsxs("div",{className:"grid grid-cols-2 gap-4",children:[jsxs("div",{children:[jsx(Label,{htmlFor:"priority",children:"Priority"}),jsxs(Select,{value:d.priority,onValueChange:l=>p(c=>({...c,priority:l})),children:[jsx(SelectTrigger,{children:jsx(SelectValue,{})}),jsxs(SelectContent,{children:[jsx(SelectItem,{value:"low",children:"Low"}),jsx(SelectItem,{value:"medium",children:"Medium"}),jsx(SelectItem,{value:"high",children:"High"}),jsx(SelectItem,{value:"urgent",children:"Urgent"})]})]})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"assignee",children:"Assignee"}),jsx(Input,{id:"assignee",value:d.assignee,onChange:l=>p(c=>({...c,assignee:l.target.value})),placeholder:"Assign to..."})]})]}),jsxs("div",{children:[jsx(Label,{htmlFor:"dueDate",children:"Due Date"}),jsx(Input,{id:"dueDate",type:"date",value:d.dueDate,onChange:l=>p(c=>({...c,dueDate:l.target.value}))})]}),jsxs(DialogFooter,{children:[jsx(Button,{type:"button",variant:"outline",onClick:()=>u(false),children:"Cancel"}),jsxs(Button,{type:"submit",children:[i?"Update":"Create"," Card"]})]})]})]})})}a(Fe,"CardFormDialog");function Oe({board:t,onUpdateBoard:u,className:i}){let[g,C]=f.useState(null),[d,p]=f.useState(""),[y,l]=f.useState(false),[c,A]=f.useState(void 0),[H,F]=f.useState(""),V=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}})),U=f.useMemo(()=>d.trim()?{...t,columns:t.columns.map(r=>({...r,cards:r.cards.filter(o=>o.title.toLowerCase().includes(d.toLowerCase())||o.description?.toLowerCase().includes(d.toLowerCase())||o.labels?.some(s=>s.name.toLowerCase().includes(d.toLowerCase())))}))}:t,[t,d]),j=a(a=>{let{active:r}=a,o=t.columns.flatMap(s=>s.cards).find(s=>s.id===r.id);C(o||null);},"handleDragStart"),q=a(a=>{let{active:r,over:o}=a;if(!o)return;let s=r.id,b=o.id,D=E(s),h=E(b);if(!D||!h||D===h)return;let x={...t},S=x.columns.findIndex(I=>I.id===D),w=x.columns.findIndex(I=>I.id===h),N=x.columns[S],v=x.columns[w],J=N.cards.findIndex(I=>I.id===s),[W]=N.cards.splice(J,1);v.limit&&v.cards.length>=v.limit||(v.cards.push(W),u(x));},"handleDragOver"),z=a(a=>{let{active:r,over:o}=a;if(C(null),!o)return;let s=r.id,b=o.id,D=E(s),h=E(b);if(!D||!h)return;let x=t.columns.findIndex(w=>w.id===D),S=t.columns[x];if(D===h){let w=S.cards.findIndex(v=>v.id===s),N=S.cards.findIndex(v=>v.id===b);if(w!==N){let v={...t};v.columns[x].cards=arrayMove(S.cards,w,N),u(v);}}},"handleDragEnd"),E=a(a=>t.columns.some(r=>r.id===a)?a:t.columns.find(r=>r.cards.some(o=>o.id===a))?.id,"findContainer"),$=a(a=>{F(a),A(void 0),l(true);},"handleAddCard"),Q=a(a=>{A(a),F(""),l(true);},"handleEditCard"),X=a(a=>{let r={...t};if(c){let o=r.columns.findIndex(s=>s.cards.some(b=>b.id===c.id));if(o!==-1){let s=r.columns[o].cards.findIndex(b=>b.id===c.id);s!==-1&&(r.columns[o].cards[s]={...c,...a});}}else {let o=r.columns.findIndex(s=>s.id===H);if(o!==-1){let s={id:`card-${Date.now()}`,title:a.title,description:a.description,labels:a.labels,priority:a.priority,assignee:a.assignee,dueDate:a.dueDate,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};r.columns[o].cards.push(s);}}u(r);},"handleSaveCard"),G=a(a=>{let r={...t},o=r.columns.findIndex(s=>s.cards.some(b=>b.id===a));o!==-1&&(r.columns[o].cards=r.columns[o].cards.filter(s=>s.id!==a),u(r));},"handleDeleteCard");return jsxs("div",{className:cn("flex flex-col h-full",i),children:[jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsx("h1",{className:"text-2xl font-bold",children:t.title}),jsx("div",{className:"flex items-center gap-3",children:jsxs("div",{className:"relative",children:[jsx(Search,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsx(Input,{placeholder:"Search cards...",value:d,onChange:a=>p(a.target.value),className:"pl-9 w-64"})]})})]}),jsx("div",{className:"flex-1 overflow-x-auto",children:jsx("div",{className:"h-full p-4",children:jsxs(DndContext,{sensors:V,collisionDetection:closestCorners,onDragStart:j,onDragOver:q,onDragEnd:z,children:[jsx("div",{className:"flex gap-6 h-full pb-4",children:U.columns.map(a=>jsx(Ae,{column:a,onAddCard:$,onEditCard:Q,onDeleteCard:G},a.id))}),jsx(DragOverlay,{children:g?jsx(P,{card:g,onEdit:()=>{},onDelete:()=>{}}):null})]})})}),jsx(Fe,{open:y,onOpenChange:l,card:c,onSave:X,labels:t.labels})]})}a(Oe,"KanbanBoard");var at=Oe;export{Oe as a,at as b};