1import{r as e,j as d,G as x}from"./index-DgF7sRNe.js";const R=e.forwardRef(({priority:c,decoding:i,loading:l,alt:n="",noFade:r,className:f,style:m,onLoad:a,...o},p)=>{const s=e.useRef(null);e.useImperativeHandle(p,()=>s.current);const[y,u]=e.useState(()=>{if(r)return!0;const t=s.current;return!!t&&t.complete&&t.naturalWidth>0}),g=e.useCallback(t=>{s.current=t,!(!t||r)&&t.complete&&t.naturalWidth>0&&u(!0)},[r]),h=e.useCallback(t=>{u(!0),a==null||a(t)},[a]);return d.jsx("img",{ref:g,alt:n,loading:c?"eager":l??"lazy",decoding:i??"async",onLoad:h,className:x(!r&&"transition-opacity duration-500 ease-out",!r&&(y?"opacity-100":"opacity-0"),f),style:m,...c?{fetchpriority:"high"}:null,...o})});R.displayName="LazyImg";export{R as L};
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.