1import{r as p,u as x,j as e,S as u,ba as a,aN as h,F as b}from"./index-CdeDfzB2.js";import{I as g,F as f}from"./lucide-react-DKAbAYgf.js";import{h as i}from"./helpContent-CPKTukSP.js";import"./arrow-left-CDPDm4d8.js";import"./file-exclamation-point-DcZEigiH.js";import"./workflow-B7A_mutp.js";import"./cloud-upload-Dc7xnmo4.js";import"./chart-column-BJ-zIpxF.js";import"./chart-no-axes-column-BoYBHKxG.js";import"./shield-alert-c8POdqm4.js";import"./circle-arrow-up-D3d4mKwH.js";import"./circle-plus-mPrtJC4F.js";import"./circle-x-Th9lnylX.js";import"./lightbulb-BeRx7fqZ.js";import"./cloud-BdiDldKd.js";import"./copy-HhTbaHkK.js";import"./server-C_ps6Pu8.js";import"./database-DPUe6NuD.js";import"./dollar-sign-Da9CLPH4.js";import"./download-LowtC8g3.js";import"./share-2-BSAro0It.js";import"./eye-DmHUAFFp.js";import"./file-spreadsheet-CideasbC.js";import"./list-todo-BCt60607.js";import"./list-Lz1tnL8m.js";import"./github-vRRcLfYy.js";import"./globe-CN7foS-1.js";import"./thumbs-up-2j0d6QMi.js";import"./info-Cnl665Hu.js";import"./link-Cg1lO96l.js";import"./lock-qMQKoxTk.js";import"./mail-CjaR64Oh.js";import"./minus-EBiccKnF.js";import"./pause-C-Ae6U2s.js";import"./pen-line-5tXySqHy.js";import"./play-BFgYb383.js";import"./plus-Ce3b5KLC.js";import"./refresh-cw-mBAggB-N.js";import"./save-D452qHsT.js";import"./shield-check-D4-ZkgOD.js";import"./smartphone-3lqea6wx.js";import"./square-pen-Bl89UOa5.js";import"./star-THoyOHcu.js";import"./table-DH9mlxfY.js";import"./tag-CKPDwZLG.js";import"./test-tube-CG3fSc4_.js";import"./trending-down-BW1Qct19.js";import"./trending-up-DnEJJXg-.js";import"./triangle-alert-DbqvFLpJ.js";import"./wand-sparkles-CUEkisyx.js";import"./webhook-9yqdYgbc.js";function ge(){const[s,n]=p.useState(""),o=x(),m=t=>{t.preventDefault(),s.trim()&&o(`/help/search?q=${encodeURIComponent(s.trim())}`)},d=["adding-your-first-site","what-is-your-ai-visibility-score","how-the-ai-page-optimizer-works","reading-your-playbook-recommendations","connecting-google-search-console","understanding-core-web-vitals"].map(t=>{for(const r of i){const l=r.articles.find(c=>c.slug===t);if(l)return{category:r,article:l}}return null}).filter(Boolean);return e.jsxs("div",{className:"max-w-5xl mx-auto space-y-16 py-8 md:py-12",children:[e.jsxs("section",{className:"text-center space-y-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-extrabold text-slate-900 tracking-tight",children:"How can we help you?"}),e.jsx("p",{className:"text-lg text-slate-600 max-w-2xl mx-auto",children:"Search for guides, setup workflows, and best practices to master DualPilot."})]}),e.jsx("form",{onSubmit:m,className:"max-w-2xl mx-auto relative",children:e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none",children:e.jsx(u,{className:"h-6 w-6 text-slate-400 group-focus-within:text-brand-blue transition-colors"})}),e.jsx("input",{type:"text",value:s,onChange:t=>n(t.target.value),placeholder:"Search for articles...",className:"block w-full pl-12 pr-4 py-4 md:py-5 border-2 border-slate-200 rounded-2xl text-lg text-slate-900 placeholder-slate-400 focus:outline-none focus:ring-4 focus:ring-brand-blue/10 focus:border-brand-blue transition-all bg-white shadow-sm hover:shadow-md"}),e.jsx("button",{type:"submit",className:"absolute right-3 top-1/2 -translate-y-1/2 bg-brand-blue text-white px-6 py-2 md:py-2.5 rounded-xl font-semibold hover:bg-blue-700 transition-colors shadow-sm",children:"Search"})]})})]}),e.jsxs("section",{className:"space-y-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Explore by Category"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:i.map(t=>{const r=g[t.icon]||f;return e.jsxs(a,{to:`/help/${t.slug}`,className:"group bg-white border border-slate-200 rounded-2xl p-6 hover:shadow-lg hover:border-brand-blue/30 transition-all duration-300 flex flex-col h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-50 text-brand-blue flex items-center justify-center mb-4 group-hover:bg-brand-blue group-hover:text-white transition-colors",children:e.jsx(r,{className:"w-6 h-6"})}),e.jsx("h3",{className:"text-xl font-bold text-slate-900 mb-2 group-hover:text-brand-blue transition-colors",children:t.title}),e.jsx("p",{className:"text-slate-600 text-sm leading-relaxed mb-4 flex-grow",children:t.description}),e.jsxs("div",{className:"text-brand-blue text-sm font-semibold flex items-center group-hover:translate-x-1 transition-transform",children:[t.articles.length," articles ",e.jsx(h,{className:"w-4 h-4 ml-1"})]})]},t.slug)})})]}),e.jsxs("section",{className:"bg-slate-50 rounded-3xl p-8 md:p-12 border border-slate-100",children:[e.jsx("div",{className:"flex items-center justify-between mb-8",children:e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Popular Articles"})}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:d.map(({category:t,article:r})=>e.jsxs(a,{to:`/help/${t.slug}/${r.slug}`,className:"bg-white px-5 py-4 rounded-xl border border-slate-200 hover:border-brand-blue/40 shadow-sm hover:shadow-md transition-all flex items-start gap-3 group",children:[e.jsx("div",{className:"mt-0.5 opacity-50 text-brand-blue group-hover:opacity-100 transition-opacity",children:e.jsx(b,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-slate-900 group-hover:text-brand-blue transition-colors mb-1 line-clamp-1",children:r.title}),e.jsxs("div",{className:"text-xs text-slate-500 font-medium",children:["In ",t.title]})]})]},r.slug))})]}),e.jsxs("section",{className:"text-center bg-brand-blue/5 rounded-3xl p-8 md:p-12 border border-brand-blue/10",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-3",children:"Can't find what you're looking for?"}),e.jsx("p",{className:"text-slate-600 mb-8 max-w-xl mx-auto",children:"Our support team is always ready to help you optimize your sites and understand your data."}),e.jsx("button",{onClick:()=>o("/contact"),className:"bg-brand-blue text-white px-8 py-3 rounded-xl font-semibold hover:bg-blue-700 transition-colors shadow-md",children:"Contact Support"})]})]})}export{ge 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.