import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as n,Mvt as r,Nvt as i,_H as a,bft as o,gH as s,xft as c}from"./app-initial-BHB6SClA.js";function l(e){let t=(0,u.c)(18),{getImagePreviewSrc:n,iconClassName:r,imageClassName:i,path:a}=e,c;t[0]!==n||t[1]!==a?(c=n?.(a)??null,t[0]=n,t[1]=a,t[2]=c):c=t[2];let l=c,[p,m]=(0,d.useState)(null);if(l!=null&&l!==p){let e;t[3]===i?e=t[4]:(e=o(`shrink-0 object-cover`,i),t[3]=i,t[4]=e);let n;t[5]===l?n=t[6]:(n=()=>m(l),t[5]=l,t[6]=n);let r;return t[7]!==l||t[8]!==e||t[9]!==n?(r=(0,f.jsx)(`img`,{alt:``,className:e,src:l,onError:n}),t[7]=l,t[8]=e,t[9]=n,t[10]=r):r=t[10],r}let h;t[11]===a?h=t[12]:(h=s(a),t[11]=a,t[12]=h);let g=h,_;t[13]===r?_=t[14]:(_=o(`shrink-0`,r),t[13]=r,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=r(),c(),d=t(i(),1),a(),f=n()}));export{p as n,l as t};
//# sourceMappingURL=artifact-file-preview-icon-J_J1f2vx.js.map