1import{r as u,j as r}from"./react-vendor-BDHNqS4B.js";import{u as x}from"./hongKongDistricts--r8_jlh4.js";import{S as j}from"./skeleton-CDto_fTL.js";import{S as p}from"./Header-BkbupWq-.js";function E({imageKey:e,alt:a,className:t="",objectFit:i="cover"}){const{imageUrl:o,isLoading:l,error:n}=x(e),[c,m]=u.useState(!1),f=i==="contain"?"object-contain":"object-cover",s=()=>r.jsx("div",{className:`flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/10 to-primary/5 ${t}`,children:r.jsx(p,{className:"h-10 w-10 text-primary/40"})});return e?l?r.jsx(j,{className:`h-full w-full ${t}`}):n||!o||c?r.jsx(s,{}):r.jsx("img",{src:o,alt:a,className:`block h-full w-full ${f} ${t}`,onError:()=>m(!0)}):r.jsx(s,{})}export{E as C};
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.