1import{u as m,aj as u,j as e,S as p,B as v}from"./index-BP495Wq2.js";import{r as i,J as l,a3 as g}from"./vendor-icons-DySKCv4q.js";import{a as j,F as a,C as n,A as N}from"./featureCatalog-CKyZkH0h.js";const k=()=>{const{t}=m(),c=u(),[r,o]=i.useState(""),d=i.useMemo(()=>j.map(s=>({id:s.id,title:s.title,count:s.items.length})).sort((s,h)=>h.count-s.count).slice(0,12),[]),x=()=>{const s=r.trim();c(s?`/everything?q=${encodeURIComponent(s)}`:"/everything")};return e.jsx("section",{id:"everything",className:"rt-section",children:e.jsxs("div",{className:"rt-container",children:[e.jsx(p,{eyebrow:t("everything.eyebrow"),title:e.jsx(e.Fragment,{children:t("everything.title",{total:a})}),lead:t("everything.lead",{categories:n}),aside:e.jsxs("a",{className:"rt-link text-[0.9375rem]",href:"/everything",children:[t("everything.browseAll",{total:a}),e.jsx(l,{className:"rt-arrow","aria-hidden":"true"})]})}),e.jsxs("div",{className:"rt-split",children:[e.jsxs("div",{children:[e.jsxs("form",{onSubmit:s=>{s.preventDefault(),x()},className:"flex max-w-[600px] flex-col gap-3 sm:flex-row",children:[e.jsxs("div",{className:"relative min-w-0 flex-1",children:[e.jsx(g,{className:"pointer-events-none absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-ink-subtle","aria-hidden":"true"}),e.jsx("input",{value:r,onChange:s=>o(s.target.value),placeholder:t("everything.placeholder"),className:"rt-input rt-input--icon","aria-label":t("everything.inputLabel")})]}),e.jsxs(v,{type:"submit",size:"lg",className:"shrink-0",children:[t("everything.ask"),e.jsx(l,{className:"rt-arrow h-4 w-4","aria-hidden":"true"})]})]}),e.jsx("p",{className:"mt-4 text-caption text-ink-subtle",children:t("everything.guarantee")}),e.jsx("p",{className:"mt-8 text-label text-ink-subtle",children:t("everything.biggestCategories")}),e.jsx("div",{className:"mt-2 rt-ledger",children:d.map(s=>e.jsxs("div",{className:"rt-row",children:[e.jsx("span",{className:"min-w-0 flex-1 text-row-title text-ink",children:s.title}),e.jsx("span",{dir:"ltr",className:"rt-readout text-readout text-ink-subtle",children:s.count})]},s.id))})]}),e.jsxs("div",{className:"rt-uipanel",children:[e.jsxs("header",{className:"rt-uipanel__head",children:[e.jsx("span",{className:"rt-uipanel__title",children:t("everything.panelTitle")}),e.jsx("span",{className:"rt-uipanel__meta",children:t("everything.panelMeta")})]}),e.jsxs("div",{className:"rt-uipanel__body",children:[e.jsxs("div",{className:"rt-row",children:[e.jsx("span",{className:"text-row-title text-ink",children:t("everything.featuresShipped")}),e.jsx("span",{dir:"ltr",className:"rt-row__value rt-readout text-readout-lg text-ink",children:a})]}),e.jsxs("div",{className:"rt-row",children:[e.jsx("span",{className:"text-row-title text-ink",children:t("everything.categoriesLabel")}),e.jsx("span",{dir:"ltr",className:"rt-row__value rt-readout text-readout-lg text-ink",children:n})]}),e.jsxs("div",{className:"rt-row",children:[e.jsx("span",{className:"text-row-title text-ink",children:t("everything.locked")}),e.jsx("span",{dir:"ltr",className:"rt-row__value rt-readout text-readout-lg text-ink",children:"0"})]}),e.jsxs("div",{className:"rt-row",children:[e.jsx("span",{className:"text-row-title text-ink",children:t("everything.addOns")}),e.jsx("span",{dir:"ltr",className:"rt-row__value rt-readout text-readout-lg text-ink",children:"$0"})]})]}),e.jsx("div",{className:"rt-uipanel__foot",children:e.jsx("p",{className:"text-caption text-ink-subtle",children:t("everything.panelFoot",{entries:N.length})})})]})]})]})})};export{k 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.