1import{r as n,j as e}from"./Dem1e8VV.js";import{u as m,I as u,cG as x}from"../entry/whq2ljq-.js";import{s as d,a as p}from"./6nL34URA.js";import{m as h}from"./CNFvtpL4.js";import"./BnZNklX7.js";import"./phrJN640.js";import"./Dh95b2SR.js";function c({entry:a,onAdd:t}){return e.jsx("button",{type:"button",title:a.name.replace(/([a-z])([A-Z0-9])/g,"$1 $2"),onClick:()=>t(a.name),className:"group aspect-square flex items-center justify-center rounded-lg cursor-pointer transition-colors hover:bg-muted",children:e.jsx(a.Icon,{className:"h-5 w-5 text-muted-foreground transition-colors group-hover:text-foreground","aria-hidden":"true"})})}function C({onAdd:a}){const t=m(),[r,i]=n.useState(""),l=n.useMemo(()=>r.trim()?d(r):null,[r]);return e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"relative",children:[e.jsx(h,{className:"absolute start-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"}),e.jsx(u,{value:r,onChange:s=>i(s.target.value),placeholder:t("PITCH_STUDIO_TOOLBAR.ICONS.SEARCH"),"aria-label":t("PITCH_STUDIO_TOOLBAR.ICONS.SEARCH"),className:"h-8 ps-8 text-xs"})]}),l?l.length?e.jsx("div",{className:"grid grid-cols-5 gap-1",children:l.map(s=>e.jsx(c,{entry:s,onAdd:a},s.name))}):e.jsx("p",{className:"px-0.5 py-6 text-center text-xs text-muted-foreground",children:t("PITCH_STUDIO_TOOLBAR.ICONS.NO_RESULTS",{query:r})}):p.map(s=>e.jsxs("div",{children:[e.jsx(x,{labelKey:s.labelKey,className:"px-0.5 pb-1.5"}),e.jsx("div",{className:"grid grid-cols-5 gap-1",children:s.icons.map(o=>e.jsx(c,{entry:o,onAdd:a},o.name))})]},s.labelKey))]})}export{C as IconInsertPanel};
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.