import{d as e}from"./objectSpread2-DtFdQpqy.js";import{a as t,n}from"./preload-helper-EQ20WQt-.js";import{F as r}from"./poll-DJul990I.js";import{t as i}from"./classnames-CFUb2mE1.js";import{t as a}from"./alt_text_badge-BOEOETu8.js";var o=e(t()),s=e(i()),c={altBadge:`_comp_server_hero_image__altBadge`},l=n(),u=({alt:e,src:t,srcSet:n,blurhash:i,withAltBadge:u,className:d})=>{let[f,p]=(0,o.useState)(!1),m=(0,o.useCallback)(()=>{p(!0)},[p]);return(0,l.jsxs)(`div`,{className:(0,s.default)(`image`,{loaded:f},d),children:[i&&(0,l.jsx)(r,{hash:i,className:`image__preview`}),(0,l.jsx)(`img`,{src:t,srcSet:n,alt:e,onLoad:m}),u&&e&&(0,l.jsx)(a,{description:e,className:c.altBadge})]})};export{u as t};
//# sourceMappingURL=server_hero_image-vvCGy7B-.js.map