1import{m as h,r as g,H as y,n as N,o as E,j as e,L as i,u as k}from"./main-rwWalgtK.js";import{L as j}from"./logo-CM-vhwOg.js";import{l as A}from"./capitaldart-logo-light.svg.asset-BMzRfZJP.js";import{H as C}from"./help-mobile-menu-BSeU8oB2.js";const F=A.url,D="#0B2545",S="#07182E",u="#F4F1E8",T="#FBFAF5",a="#C9A24B",l="#14213A",p="#545C6B",c="#E4DECF",z="#EDEAE0",f="#B6BFCD",v="'Spectral', Georgia, serif",s="'IBM Plex Sans', system-ui, sans-serif",m="'IBM Plex Mono', ui-monospace, monospace";function P(){const{q:t}=h.useSearch(),o=h.useNavigate(),n=g.useMemo(()=>{const r=t.trim().toLowerCase();return r?y.filter(d=>N(d).includes(r)):y},[t]),B=g.useMemo(()=>E(n),[n]),x=t.trim().length>0;return e.jsxs("main",{style:{background:u,color:l,fontFamily:s},className:"min-h-screen antialiased",children:[e.jsx(W,{}),e.jsx("section",{style:{background:T,padding:"88px 0 48px",borderBottom:`1px solid ${c}`},children:e.jsxs("div",{className:"mx-auto",style:{maxWidth:980,padding:"0 32px"},children:[e.jsx("div",{style:{fontFamily:m,fontSize:13,letterSpacing:"0.16em",textTransform:"uppercase",color:a,marginBottom:18},children:"Help center"}),e.jsx("h1",{style:{fontFamily:v,fontWeight:500,fontSize:"clamp(36px,4.2vw,56px)",lineHeight:1.05,letterSpacing:"-.01em",margin:0},children:"How CapitalDart works."}),e.jsx("p",{style:{marginTop:18,maxWidth:680,color:p,fontSize:17,lineHeight:1.6},children:"Short, direct articles on getting started, running a deal, the Investor Readiness Report, contact statuses, outreach, credits, teams, and privacy."}),e.jsxs("div",{style:{marginTop:28,maxWidth:560},children:[e.jsx("label",{htmlFor:"help-search",className:"sr-only",children:"Search the help center"}),e.jsx("input",{id:"help-search",type:"search",value:t,placeholder:"Search articles",onChange:r=>{const d=r.target.value;o({to:"/help",search:{q:d},replace:!0})},style:{width:"100%",background:u,border:`1px solid ${c}`,borderRadius:8,padding:"12px 14px",fontFamily:s,fontSize:15,color:l,outline:"none"}})]})]})}),e.jsx("section",{style:{padding:"56px 0 96px"},children:e.jsxs("div",{className:"mx-auto",style:{maxWidth:980,padding:"0 32px"},children:[x&&n.length===0?e.jsxs("div",{style:{fontFamily:s,fontSize:16,color:p,padding:"32px 0"},children:["No articles match ",e.jsx("span",{style:{color:l,fontWeight:600},children:t}),". Try a broader term, or"," ",e.jsx(i,{to:"/help",search:{q:""},style:{color:l,borderBottom:`2px solid ${a}`,paddingBottom:2,textDecoration:"none"},children:"clear the search"}),"."]}):x?e.jsx(I,{matches:n}):e.jsx(H,{groups:B}),e.jsxs("div",{style:{marginTop:48,display:"flex",flexWrap:"wrap",gap:28,alignItems:"center"},children:[e.jsx(i,{to:"/faq",style:{fontSize:15,fontWeight:600,color:l,borderBottom:`2px solid ${a}`,paddingBottom:3,textDecoration:"none",fontFamily:s},children:"See the FAQ"}),e.jsx(i,{to:"/contact",style:{fontSize:15,fontWeight:600,color:l,borderBottom:`2px solid ${a}`,paddingBottom:3,textDecoration:"none",fontFamily:s},children:"Still stuck? Contact us"})]})]})}),e.jsx(L,{})]})}function H({groups:t}){return e.jsx(e.Fragment,{children:t.map(o=>e.jsxs("div",{style:{marginBottom:48},children:[e.jsx("h2",{style:{fontFamily:m,fontWeight:500,fontSize:13,letterSpacing:"0.18em",textTransform:"uppercase",color:a,margin:"0 0 18px",paddingBottom:14,borderBottom:`2px solid ${a}`},children:o.heading}),e.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:o.items.map(n=>e.jsx("li",{style:{borderBottom:`1px solid ${c}`,padding:"20px 0"},children:e.jsx(b,{article:n})},n.slug))})]},o.heading))})}function I({matches:t}){return e.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:t.map(o=>e.jsx("li",{style:{borderBottom:`1px solid ${c}`,padding:"20px 0"},children:e.jsx(b,{article:o,categoryLabel:o.category})},o.slug))})}function b({article:t,categoryLabel:o}){return e.jsxs(i,{to:"/help/$slug",params:{slug:t.slug},search:{},style:{display:"block",textDecoration:"none",color:l},children:[o&&e.jsx("div",{style:{fontFamily:m,fontSize:11,letterSpacing:"0.16em",textTransform:"uppercase",color:a,marginBottom:6},children:o}),e.jsx("div",{style:{fontFamily:v,fontWeight:600,fontSize:20,lineHeight:1.3,marginBottom:6},children:t.title}),e.jsx("div",{style:{fontFamily:s,fontSize:15,lineHeight:1.6,color:p},children:t.summary})]})}function W(){const{session:t,loading:o}=k(),n=!!t;return e.jsxs("header",{style:{background:D,borderBottom:"1px solid rgba(255,255,255,0.06)",position:"relative"},children:[e.jsx("style",{children:` 2 @media (max-width: 1023.98px) { 3 .cd-helpnav-desktop { display: none !important; } 4 .cd-helpnav-mobile { display: inline-flex !important; } 5 } 6 `}),e.jsxs("div",{className:"mx-auto",style:{maxWidth:1200,padding:"18px 32px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx(i,{to:"/",style:{display:"inline-flex",alignItems:"center",gap:10},children:e.jsx(j,{src:F,alt:"CapitalDart",height:34,style:{display:"block"},trademarkClassName:"text-[#F4F1E8]"})}),e.jsx("nav",{className:"cd-helpnav-desktop",style:{display:"flex",alignItems:"center",gap:28},children:o?null:n?e.jsx(i,{to:"/dashboard",style:{fontFamily:s,fontSize:14,color:f,textDecoration:"none"},children:"Back to dashboard"}):e.jsxs(e.Fragment,{children:[e.jsx(i,{to:"/",style:{fontFamily:s,fontSize:14,color:f,textDecoration:"none"},children:"Back to home"}
6),e.jsx(i,{to:"/auth",search:{mode:"signup"},style:{fontFamily:s,fontSize:14,fontWeight:600,background:a,color:S,padding:"10px 18px",borderRadius:6,textDecoration:"none"},children:"Get started"})]})}),e.jsx(C,{className:"cd-helpnav-mobile",isAuthed:n,loading:o})]})]})}function L(){return e.jsx("footer",{style:{background:S,color:z,padding:"48px 0",textAlign:"center"},children:e.jsxs("div",{className:"mx-auto",style:{maxWidth:1200,padding:"0 32px"},children:[e.jsx(j,{src:F,alt:"CapitalDart",height:26,style:{display:"inline-block",marginBottom:14},trademarkClassName:"text-[#F4F1E8]"}),e.jsxs("div",{style:{fontFamily:s,fontSize:13,color:"#7E8A9C"},children:["© ",new Date().getFullYear()," CapitalDart. All rights reserved."]})]})})}export{P as component}; 7//# sourceMappingURL=help.index-BJFUIXLk.js.map
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.