PageSourceSearch

https://gradethread.com/assets/hub-ZqRDZwtc.js

js gradethread.com collected 2026-10-10 01:46:39 UTC 4,044 bytes, 1 lines download raw bytes

1import{n as y,k as N,j as e,L as c}from"./vendor-react-CowE5YCj.js";import{g as b,t as k,u as L,aH as d}from"./index-BwzqfZRD.js";import{I as S}from"./input-CLuxJVgs.js";import{L as v}from"./label-CGppZHlV.js";import{w as E}from"./marketing-layout-DrfolWxB.js";import{E as _}from"./empty-state-Zkw96H5V.js";import{E as C}from"./error-state-D8cs4Ok1.js";import{S as H}from"./skeleton-BRCk1Rhv.js";import{m as w}from"./use-help-center-presUlQG.js";import{c as i,d as m,k as h,l as u}from"./help-center-CCLidEJY.js";import{a as I}from"./help-json-ld-BoMgb5oi.js";import{S as P}from"./search-DInOx-kB.js";import{L as T}from"./life-buoy-CCNf6Arb.js";import"./vendor-query-VEVGS95H.js";import"./vendor-supabase-Baxrk5fR.js";import"./index-clxdtWr2.js";import"./extension-install-cta-B4pWvBaS.js";import"./lister-extension-C3gO5tI-.js";import"./marketplace-specs-bOksmWZM.js";import"./index-B45CXZG-.js";import"./download-Hxta4WIF.js";import"./marketplace-disclosure-CGfwdhb7.js";import"./puzzle-tHvypXy7.js";import"./sheet-Bw5ugCBS.js";import"./x-ZSwzqrFX.js";import"./index-DdfYGvON.js";import"./index-BbR4OEL_.js";import"./index-RUkvxMya.js";import"./index-DTZTzW98.js";import"./index-uSK457ni.js";import"./index-Da-lsaRy.js";import"./responsive-image-Fj8xhkA9.js";import"./images--KoGXYoA.js";import"./arrow-right-BwhvOxr0.js";import"./menu-CHSvzbXO.js";import"./get-the-apps-CFxQUDyH.js";import"./chromium-_QBgdxAm.js";import"./smartphone-BPStEy4j.js";import"./seo-Bc6Qy8zj.js";import"./json-ld-BiLTgRgG.js";import"./chevron-right-D-NZluPW.js";import"./cookie-preferences-CHk_23en.js";import"./toast-error-BDOwNR3J.js";import"./friendly-error-BmcA0avy.js";function St(){const x=y(),[l,g]=N.useState(""),{data:o,isLoading:n,isError:p,refetch:f}=w(),a=new Map;for(const t of o?.articles??[])a.set(t.category_key,(a.get(t.category_key)??0)+1);const s=(o?.categories??[]).map(t=>({...t,count:t.article_count??a.get(t.key)??0})).filter(t=>t.count>0).sort((t,r)=>t.sort_order-r.sort_order),j=o!==void 0&&o.articles.length===0;return e.jsx(E,{title:m,description:i,canonicalPath:u(),noindex:j,jsonLd:[I({name:m,description:i,canonical:`${d}${u()}`,items:s.map(t=>({title:t.title,url:`${d}${h(t.slug)}`}))})],children:e.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:m}),e.jsx("p",{className:"mt-2 max-w-[70ch] text-muted-foreground",children:i}),e.jsxs("form",{role:"search",className:"mt-6 flex gap-2",onSubmit:t=>{t.preventDefault();const r=l.trim();x(r?`/help/search?q=${encodeURIComponent(r)}`:"/help/search")},children:[e.jsx(v,{htmlFor:"help-hub-q",className:"sr-only",children:"Search help"}),e.jsx(S,{id:"help-hub-q",type:"search",value:l,onChange:t=>g(t.target.value),placeholder:"What are you stuck on?",autoComplete:"off"}),e.jsxs(b,{type:"submit",children:[e.jsx(P,{className:"mr-2 h-4 w-4"})," Search"]})]}),n&&e.jsx("div",{className:"mt-8 grid gap-4 sm:grid-cols-2",children:Array.from({length:6}).map((t,r)=>e.jsx(H,{className:"h-28 w-full"},r))}),p&&e.jsx(C,{className:"mt-8",title:"Couldn't load the help center",description:"The article service didn't answer. Try again in a moment.",onRetry:()=>{f()}}),!n&&!p&&s.length===0&&e.jsx(_,{className:"mt-8",icon:T,title:"Nothing published yet",description:"Articles are on the way."}),s.length>0&&e.jsx("div",{className:"mt-8 grid gap-4 sm:grid-cols-2",children:s.map(t=>e.jsx(c,{to:h(t.slug),className:"block",children:e.jsx(k,{className:"h-full transition-colors hover:bg-muted/50",children:e.jsxs(L,{className:"pt-6",children:[e.jsx("h2",{className:"font-semibold",children:t.title}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t.summary}),e.jsxs("p",{className:"mt-3 text-sm text-muted-foreground",children:[t.count," article",t.count===1?"":"s"]})]})})},t.key))}),e.jsxs("p",{className:"mt-10 text-sm text-muted-foreground",children:["Still stuck? ",e.jsx(c,{to:"/dashboard/support",className:"underline",children:"Open a support ticket"}),"."]})]})})}export{St as HelpHubPage};

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.