1import{j as a,r as I,c as M}from"./chunk-CqXXaRGN.js";import{v as _,r as f,w as o,ae as w,d as z,p as E,n as x,af as T}from"./chunk-BmQm0ZpK.js";import{s as u}from"./chunk-B07sXE03.js";var W="_faviconContainer_fgjgb_2",F="_small_fgjgb_6",B="_imageSmallContain_fgjgb_7",A="_medium_fgjgb_12",L="_imageMediumContain_fgjgb_13",O="_imageSmallCover_fgjgb_18",P="_imageMediumCover_fgjgb_23",s={faviconContainer:W,small:F,imageSmallContain:B,medium:A,imageMediumContain:L,imageSmallCover:O,imageMediumCover:P},Q=["src","size","alt","title","className","isCover","hasBorder","style"],U=["children"];function b(m){let{src:e,size:i="medium",alt:l,title:n,className:r,isCover:t,hasBorder:h,style:c}=m,j=_(m,Q),[S,y]=I.useState(!1),R={small:18,medium:28},d=typeof i=="number",g=d?i:R[i],p=d?o(o({},c),{},{width:g,height:g}):c;if(!e||S)return a.jsx(f.Center,o(o({color:"key",backgroundColor:"neutral",borderRadius:"full",className:[!d&&(i==="small"?s.small:s.medium),r],style:p},j),{},{children:a.jsx(w,{width:g*.8,height:g*.8,"aria-hidden":!0})}));let $=d?void 0:i==="small"?t?s.imageSmallCover:s.imageSmallContain:t?s.imageMediumCover:s.imageMediumContain,v=t?g/Math.SQRT2:g,k=d?{width:v,height:v}:void 0;return a.jsx(f.Center,o(o({borderColor:"elevated-1",borderWidth:h?"100":void 0,borderRadius:"full",overflow:"hidden",className:[s.faviconContainer,!d&&s[i],r],style:p},j),{},{children:a.jsx(f.Image,{src:e,alt:l||(n?"".concat(n,"ã®ãã¡ãã³ã³"):""),className:$,style:k,title:n,onError:()=>y(!0)})}))}b.displayName="Favicon.Item";function N(m){let{children:e}=m,i=_(m,U);return a.jsx(f.Stack,o(o({direction:"horizontal",alignY:"center",space:"100"},i),{},{children:e}))}N.displayName="Favicon.Root";var C={Root:N,Item:b};const G=m=>{const e=M.c(7),{index:i,title:l,url:n,iconUrl:r,defaultIcon:t,onClick:h}=m;let c;return e[0]!==t||e[1]!==r||e[2]!==i||e[3]!==h||e[4]!==l||e[5]!==n?(c=a.jsx(a.Fragment,{children:n?a.jsx(z,{pos:i,children:a.jsxs(E,{href:n,target:"_blank",rel:"noopener noreferrer",className:T(u.titleLink,u.titleContainer,"cl-noclick-log"),onClick:h,children:[r?a.jsx(C.Root,{marginRight:"200",children:a.jsx(C.Item,{alt:"".concat(l,"ã®ã¢ã¤ã³ã³"),size:"medium",src:r,title:l})}):t?a.jsx(x.span,{className:u.iconWrapper,children:t()}):null,a.jsx(f.Text,{as:"span",lineClamp:"1",children:l})]})}):a.jsxs(x.div,{className:u.titleContainer,children:[r?a.jsx(C.Root,{marginRight:"200",children:a.jsx(C.Item,{alt:"".concat(l,"ã®ã¢ã¤ã³ã³"),size:"medium",src:r,title:l})}):t?a.jsx(x.span,{className:u.iconWrapper,children:t()}):null,a.jsx(x.span,{className:u.titleText,fontSize:"100",fontWeight:"bold",children:l})]})}),e[0]=t,e[1]=r,e[2]=i,e[3]=h,e[4]=l,e[5]=n,e[6]=c):c=e[6],c};export{G as C,C as n};
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.