module.exports=[17492,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=new Map,e=!1,f=null;a.s(["ToolkitIcon",0,function({slug:a,iconUrl:g,size:h=20,style:i}){let j=a.toLowerCase(),[k,l]=(0,c.useState)(()=>g||e&&d.get(j)||void 0),[m,n]=(0,c.useState)(!1);(0,c.useEffect)(()=>{k||m||(e?Promise.resolve():(!f&&(f=fetch("/api/connections/toolkits").then(a=>a.json()).then(a=>{for(let b of a.toolkits??[])d.set(b.slug.toLowerCase(),b.iconUrl??"");e=!0}).catch(()=>{e=!0})),f)).then(()=>{let a=d.get(j);a&&l(a)})},[j,k,m]);let o={width:h,height:h,flexShrink:0,...i};return!k||m?(0,b.jsx)("span",{style:{...o,borderRadius:4,background:"var(--hairline)",display:"grid",placeItems:"center",fontSize:Math.max(8,Math.round(.38*h)),fontWeight:700,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"-0.02em"},children:a.slice(0,2)}):(0,b.jsx)("img",{src:k,alt:"",width:h,height:h,style:{...o,borderRadius:4,objectFit:"contain"},onError:()=>n(!0)})}])}];

//# sourceMappingURL=src_components_ex_toolkit-icon_tsx_0~88md3._.js.map