import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{_ as n,dn as r,un as i,v as a,zt as o}from"./app-initial~avatarOverlayCompositionSurface~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-DVWlwqb~kppdhley-CabsBVhy.js";import{i as s,n as c}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~settings-command-~eurqfy6e-BFg1m7tE.js";function l(e){let t=(0,u.c)(18),{getImagePreviewSrc:r,iconClassName:i,imageClassName:a,path:o}=e,s;t[0]!==r||t[1]!==o?(s=r?.(o)??null,t[0]=r,t[1]=o,t[2]=s):s=t[2];let l=s,[p,m]=(0,d.useState)(null);if(l!=null&&l!==p){let e;t[3]===a?e=t[4]:(e=n(`shrink-0 object-cover`,a),t[3]=a,t[4]=e);let r;t[5]===l?r=t[6]:(r=()=>m(l),t[5]=l,t[6]=r);let i;return t[7]!==l||t[8]!==e||t[9]!==r?(i=(0,f.jsx)(`img`,{alt:``,className:e,src:l,onError:r}),t[7]=l,t[8]=e,t[9]=r,t[10]=i):i=t[10],i}let h;t[11]===o?h=t[12]:(h=c(o),t[11]=o,t[12]=h);let g=h,_;t[13]===i?_=t[14]:(_=n(`shrink-0`,i),t[13]=i,t[14]=_);let v;return t[15]!==g||t[16]!==_?(v=(0,f.jsx)(g,{className:_}),t[15]=g,t[16]=_,t[17]=v):v=t[17],v}var u,d,f,p=e((()=>{u=i(),a(),d=t(r(),1),s(),f=o()}));export{p as n,l as t};
//# sourceMappingURL=artifact-file-preview-icon-bjg-CZHK.js.map