PageSourceSearch

https://www.traderclaw.ai/assets/BlogPost-BLMy6TP9.js

js traderclaw.ai collected 2026-10-05 13:52:03 UTC 16,093 bytes, 2 lines download raw bytes

1import{j as e,m as o}from"./vendor-motion-AhOO15hz.js";import{L as m}from"./index-JThAEy0s.js";import{r as t}from"./vendor-react-1tPnYxug.js";import{p as u}from"./IconBase.es-DhJUvg07.js";import{p as d,n as y}from"./blogPosts-_nMHHymy.js";import j from"./Footer-InSXlY10.js";import{S as N}from"./SEO-CxSb1F1A.js";import{c as v}from"./vendor-router-DY4NmSgi.js";import"./vendor-i18n-bouy0Syw.js";import"./ScrollReveal-B2lNVCGk.js";const w=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),t.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),k=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),t.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),h=t.forwardRef((a,r)=>t.createElement(u,{ref:r,...a,weights:w}));h.displayName="ArrowLeftIcon";const g=h,f=t.forwardRef((a,r)=>t.createElement(u,{ref:r,...a,weights:k}));f.displayName="UserIcon";const E=f,b=a=>a.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),M=({headings:a})=>{const[r,i]=t.useState("");return t.useEffect(()=>{const s=new IntersectionObserver(l=>{const c=l.filter(n=>n.isIntersecting);c.length>0&&i(c[0].target.id)}
1,{rootMargin:"-20% 0px -60% 0px",threshold:0});return a.forEach(({id:l})=>{const c=document.getElementById(l);c&&s.observe(c)}),()=>s.disconnect()},[a]),a.length===0?null:e.jsx(o.nav,{initial:{opacity:0,x:16},animate:{opacity:1,x:0},transition:{duration:.5,delay:1.2},className:"sticky top-28",children:e.jsxs("div",{className:"border border-border bg-surface-1 p-5",children:[e.jsx("span",{className:"font-mono text-[9px] tracking-[0.2em] uppercase text-muted-foreground/40 block mb-4",children:"Contents"}),e.jsx("ul",{className:"space-y-1",children:a.map(({id:s,text:l})=>e.jsx("li",{children:e.jsx("a",{href:`#${s}`,onClick:c=>{c.preventDefault(),document.getElementById(s)?.scrollIntoView({behavior:"smooth"})},className:`block text-[13px] leading-[1.6] py-1.5 px-3 border-l-2 transition-all ${r===s?"border-primary text-foreground bg-primary/5":"border-transparent text-muted-foreground/40 hover:text-muted-foreground/70 hover:border-muted-foreground/20"}`,children:l})},s))})]})})},x=a=>{const r=a.split(`
2`);return r.length===1?a:r.map((i,s)=>e.jsxs("span",{children:[i,s<r.length-1&&e.jsx("br",{})]},s))},A=({block:a,index:r})=>{switch(a.type){case"p":return e.jsx("p",{className:r===0?"text-base sm:text-[15px] leading-[1.9] text-muted-foreground/60 mb-6":"text-sm sm:text-[15px] leading-[1.9] text-muted-foreground/60 mb-4",children:x(a.text)});case"h2":{const i=b(a.text);return e.jsx("h2",{id:i,className:"font-display text-xl sm:text-2xl font-bold text-foreground mt-12 mb-5 leading-tight scroll-mt-24",children:e.jsx("a",{href:`#${i}`,className:"hover:text-primary/80 transition-colors",children:a.text})})}case"h3":return e.jsx("h3",{className:"font-heading text-base sm:text-lg font-semibold text-foreground/90 mt-8 mb-3 leading-snug",children:a.text});case"ul":return e.jsx("ul",{className:"space-y-2.5 my-5 pl-1",children:a.items.map((i,s)=>e.jsxs("li",{className:"flex items-start gap-3 text-[15px] sm:text-base text-muted-foreground/60 leading-[1.75]",children:[e.jsx("span",{className:"mt-[9px] w-1.5 h-1.5 bg-primary/40 shrink-0"}),e.jsx("span",{children:x(i)})]},s))});case"ol":return e.jsx("ol",{className:"space-y-3 my-5 pl-1",children:a.items.map((i,s)=>e.jsxs("li",{className:"flex items-start gap-3 text-[15px] sm:text-base text-muted-foreground/60 leading-[1.75]",children:[e.jsx("span",{className:"font-mono text-[11px] text-primary/50 mt-[3px] w-5 shrink-0 text-right",children:String(s+1).padStart(2,"0")}),e.jsx("span",{children:x(i)})]},s))});case"callout":return e.jsxs("div",{className:"border border-primary/20 bg-surface-1 px-6 sm:px-8 py-5 sm:py-6 my-8 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 w-1 h-full bg-primary/60"}),e.jsx("p",{className:"text-sm sm:text-base text-foreground/70 leading-[1.85] italic pl-2",children:x(a.text)})]});case"quote":return e.jsxs("div",{className:"border border-border bg-surface-1 px-6 sm:px-8 py-6 sm:py-8 my-10 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 w-1 h-full bg-primary/60"}),e.jsxs("blockquote",{className:"pl-2",children:[e.jsxs("p",{className:"text-lg sm:text-xl text-foreground/70 leading-[1.7] italic font-body",children:['"',x(a.text),'"']}),a.cite&&e.jsxs("cite",{className:"block mt-4 font-mono text-[11px] tracking-wider text-muted-foreground/50 not-italic",children:["— ",a.cite]})]})]});case"divider":return e.jsx("hr",{className:"border-border/40 my-12"});case"link":return e.jsx("a",{href:a.href,target:a.external?"_blank":void 0,rel:a.external?"noopener noreferrer":void 0,className:"inline-flex items-center gap-2 font-mono text-[13px] tracking-wider text-primary hover:text-foreground transition-colors mb-4",children:a.label});default:return null}},T=()=>{const{slug:a}=v(),r=d.find(n=>n.slug===a),i=d.findIndex(n=>n.slug===a),s=i>0?d[i-1]:null,l=i<d.length-1?d[i+1]:null,c=t.useMemo(()=>r?r.blocks.filter(n=>n.type==="h2").map(n=>({id:b(n.text),text:n.text})):[],[r]);return r?e.jsxs(e.Fragment,{children:[e.jsx(N,{title:`${r.title} | TraderClaw Blog`,description:r.excerpt,canonical:`/resources/blog/${r.slug}`,ogType:"article",jsonLd:{"@context":"https://schema.org","@type":"BlogPosting",headline:r.title,de
2scription:r.excerpt,author:{"@type":"Organization",name:r.author},datePublished:r.date,publisher:{"@type":"Organization",name:"TraderClaw"},mainEntityOfPage:{"@type":"WebPage","@id":`https://www.traderclaw.ai/resources/blog/${r.slug}`}},ogImage:"https://www.traderclaw.ai/og/resources.jpg"}),e.jsxs("main",{className:"layout-main min-h-screen",children:[e.jsxs("div",{className:"relative w-full aspect-[16/10] sm:aspect-[2.4/1] min-h-[380px] sm:min-h-[340px] max-h-[560px] overflow-hidden sm:mt-16",children:[r.image?e.jsx(o.img,{src:r.image,alt:r.title,fetchPriority:"high",decoding:"async",initial:{scale:1.15,opacity:0},animate:{scale:1,opacity:1},transition:{duration:1.4,ease:[.25,.1,.25,1]},className:"absolute inset-0 w-full h-full object-cover will-change-transform"}):e.jsx(o.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6},className:"absolute inset-0 bg-surface-1"}),e.jsx(o.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.2},className:"absolute inset-0 bg-gradient-to-t from-background via-background/60 to-background/20"}),e.jsx(o.div,{initial:{opacity:0,x:-12},animate:{opacity:1,x:0},transition:{duration:.5,delay:.6},children:e.jsxs(m,{to:"/resources/blog",className:"absolute top-16 left-4 sm:top-7 sm:left-7 z-10 inline-flex items-center gap-2 font-mono text-[11px] tracking-[0.15em] uppercase text-foreground/80 hover:text-primary border border-foreground
2/20 hover:border-primary/40 bg-background/40 backdrop-blur-sm px-4 py-2 transition-all group",children:[e.jsx(g,{className:"w-3.5 h-3.5 group-hover:-translate-x-0.5 transition-transform",weight:"thin"}),"Back to Blog"]})}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 px-4 sm:px-8 md:px-16 lg:px-20 pb-8 sm:pb-10 z-10",children:e.jsxs("div",{className:"max-w-[960px]",children:[e.jsx(o.span,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5},className:"font-mono text-[10px] tracking-[0.2em] uppercase text-primary border border-primary/30 px-3 py-1.5 inline-block mb-4 bg-background/30 backdrop-blur-sm",children:r.category}),e.jsx(o.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.65},className:"font-display text-2xl sm:text-4xl lg:text-5xl font-bold text-foreground leading-[1.1] mb-6 max-w-[640px]",children:r.title}),r.tags.length>0&&e.jsx(o.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.5,delay:.8},className:"flex flex-wrap gap-2 mb-6",children:r.tags.map(n=>e.jsx("span",{className:"font-mono text-[9px] tracking-[0.1em] uppercase text-foreground/50 border border-foreground
2/15 px-2.5 py-1 bg-background/30 backdrop-blur-sm",children:n},n))}),e.jsxs(o.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.9},className:"flex flex-wrap items-center gap-3 sm:gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(E,{className:"w-3.5 h-3.5 text-foreground/40",weight:"thin"}),e.jsx("span",{className:"font-mono text-[11px] tracking-wider text-foreground/60",children:r.author})]}),e.jsx("span",{className:"w-0.5 h-0.5 bg-foreground/20 rounded-full"}),e.jsx("span",{className:"font-mono text-[11px] tracking-wider text-foreground/50",children:r.date}),e.jsx("span",{className:"w-0.5 h-0.5 bg-foreground/20 rounded-full"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{className:"w-3.5 h-3.5 text-foreground/40",weight:"thin"}),e.jsx("span",{className:"font-mono text-[11px] tracking-wider text-foreground/50",children:r.readTime})]})]})]})})]}),e.jsxs("article",{className:"pt-12 sm:pt-16 pb-20 sm:pb-28",children:[e.jsx("div",{className:"px-4 sm:px-8 md:px-16 lg:px-20",children:e.jsxs("div",{className:"max-w-[1200px] flex gap-12",children:[e.jsxs("div",{className:"flex-1 min-w-0 max-w-[720px]",children:[e.jsx(o.div,{initial:{opacity:0,y:28},animate:{opacity:1,y:0},transition:{duration:.7,delay:1.05},children:e.jsx("p",{className:"text-lg sm:text-xl text-foreground/70 leading-[1.8] font-display mb-10 pb-10 border-b border-border/50",children:r.excerpt})}),e.jsx("div",{className:"article-body",children:r.blocks.map((n,p)=>e.jsx(o.div,{initial:{opacity:0,y:18},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.5,delay:p<3?1.15+p*.08:0},children:e.jsx(A,{block:n,index:p})},p))}),e.jsxs(o.div,{initial:{opacity:0}
2,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5},className:"mt-16 pt-8 border-t border-border/50",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:"font-mono text-[10px] tracking-[0.2em] uppercase text-muted-foreground/40",children:"Tags"}),r.tags.map(n=>e.jsx("span",{className:"font-mono text-[10px] tracking-[0.1em] uppercase text-muted-foreground/50 border border-border px-3 py-1 bg-surface-1",children:n},n))]}),e.jsxs("span",{className:"font-mono text-[11px] tracking-[0.15em] text-muted-foreground/40 block mt-4",children:["Published ",r.date]})]})]}),e.jsx("aside",{className:"hidden xl:block w-[260px] shrink-0 pt-2",children:e.jsx(M,{headings:c})})]})}),e.jsx(o.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"px-4 sm:px-8 md:px-16 lg:px-20 mt-12",children:e.jsxs("div",{className:"max-w-[720px] grid sm:grid-cols-2 gap-3",children:[s?e.jsxs(m,{to:`/resources/blog/${s.slug}`,className:"group border border-border bg-surface-1 hover:bg-surface-2 hover:border-muted-foreground/20 transition-all p-5 sm:p-6",children:[e.jsx("span",{className:"font-mono text-[9px] tracking-[0.15em] uppercase text-muted-foreground/30 mb-2 block",children:"← Previous"}),e.jsx("h4",{className:"font-heading text-sm sm:text-base text-foreground group-hover:text-primary/90 transition-colors leading-snug",children:s.title})]}):e.jsx("div",{}),l?e.jsxs(m,{to:`/resources/blog/${l.slug}`,className:"group border border-border bg-surface-1 hover:bg-surface-2 hover:border-muted-foreground/20 transition-all p-5 sm:p-6 text-right",children:[e.jsx("span",{className:"font-mono text-[9px] tracking-[0.15em] uppercase text-muted-foreground/30 mb-2 block",children:"Next →"}),e.jsx("h4",{className:"font-heading text-sm sm:text-base text-foreground group-hover:text-primary/90 transition-colors leading-snug",children:l.title})]}):e.jsx("div",{})]})}),e.jsx(o.div,{initial:{opacity:0}
2,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},className:"px-4 sm:px-8 md:px-16 lg:px-20 mt-12",children:e.jsxs(m,{to:"/resources/blog",className:"inline-flex items-center gap-2 font-mono text-[11px] tracking-[0.15em] uppercase text-primary hover:text-primary/80 transition-colors border-b border-primary/30 hover:border-primary/60 pb-0.5",children:[e.jsx(g,{className:"w-3.5 h-3.5",weight:"thin"}),"All Articles"]})})]}),e.jsx(j,{})]})]}):e.jsx("main",{className:"layout-main min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center px-8",children:[e.jsx("span",{className:"font-mono text-[11px] tracking-[0.2em] uppercase text-primary border border-primary/30 px-3 py-1.5 inline-block mb-6",children:"404"}),e.jsx("h1",{className:"font-display text-3xl sm:text-4xl font-bold text-foreground mb-4",children:"Article Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"This article doesn't exist or has been moved."}),e.jsxs(m,{to:"/resources/blog",className:"inline-flex items-center gap-2 font-mono text-[11px] tracking-[0.15em] uppercase text-primary hover:text-primary/80 transition-colors border-b border-primary/30 hover:border-primary/60 pb-0.5",children:[e.jsx(g,{className:"w-3.5 h-3.5",weight:"thin"}),"Back to Blog"]})]})})};export{T as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.