{"version":3,"file":"DeferredCardImage.tbh4KdSL.mjs","names":["React.useRef","React.useState","__esmMin","init_npm_react_18_3_1","_e","de","init_jsx_runtime","c","ce","useIsStaticRenderer","addPropertyControls","ControlType","init_framer_DxfB3JJo","DeferredCardImage","root","isStatic","ready","setReady","el","observer","entries","image","style","init_DeferredCardImage"],"sources":["https:/framerusercontent.com/modules/tKTuBhfyTAinX1sdT71l/1NLNNTyIVCMfnXbHI4Ql/DeferredCardImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DeferredCardImage({image,style}){const root=React.useRef(null);const isStatic=useIsStaticRenderer();const[ready,setReady]=React.useState(false);React.useEffect(()=>{const el=root.current;if(!el)return;if(typeof IntersectionObserver===\"undefined\"){setReady(true);return;}const observer=new IntersectionObserver(entries=>{if(entries.some(e=>e.isIntersecting)){setReady(true);observer.disconnect();}},{rootMargin:\"200px\",threshold:.01});observer.observe(el);return()=>observer.disconnect();},[image?.src]);return /*#__PURE__*/_jsx(\"div\",{ref:root,style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:(ready||isStatic)&&image?.src&&/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,sizes:\"(max-width:520px) 100vw, (max-width:900px) 50vw, 400px\",alt:image.alt||\"\",loading:\"lazy\",decoding:\"async\",style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:\"contain\"}})});}addPropertyControls(DeferredCardImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DeferredCardImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DeferredCardImage.map"],"mappings":"A,iMAGG,SAAwBa,EAAkB,CAAC,QAAM,SAAO,CAAC,IAAMC,EAAKd,EAAa,IAAI,EAAQe,EAASN,EAAoB,EAAO,CAACO,EAAMC,GAAUhB,EAAe,EAAK,EAAyW,OAAvWO,MAAoB,CAAC,IAAMU,EAAGJ,EAAK,QAAQ,GAAG,CAACI,EAAG,OAAO,GAAG,OAAO,qBAAuB,IAAY,CAACD,EAAS,EAAI,EAAE,MAAO,CAAC,IAAME,EAAS,IAAI,qBAAqB,GAAS,CAAIC,EAAQ,KAAK,GAAG,EAAE,cAAc,IAAGH,EAAS,EAAI,EAAEE,EAAS,WAAW,EAAG,EAAE,CAAC,WAAW,QAAQ,UAAU,GAAG,CAAC,EAAuB,OAArBA,EAAS,QAAQD,CAAE,MAAYC,EAAS,WAAW,CAAE,EAAE,CAACE,GAAO,GAAG,CAAC,EAAsB,gBAAK,MAAM,CAAC,IAAIP,EAAK,MAAM,CAAC,GAAGQ,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,QAAQ,EAAE,UAAUN,GAAOD,IAAWM,GAAO,KAAkB,gBAAK,MAAM,CAAC,IAAIA,EAAM,IAAI,OAAOA,EAAM,OAAO,MAAM,yDAAyD,IAAIA,EAAM,KAAK,GAAG,QAAQ,OAAO,SAAS,QAAQ,MAAM,CAAC,QAAQ,QAAQ,MAAM,OAAO,OAAO,OAAO,UAAU,SAAS,CAAC,CAAC,CAAC,CAAC,CAAE,C,0CAACX,EAAoBG,EAAkB,CAAC,MAAM,CAAC,KAAKF,EAAY,gBAAgB,MAAM,OAAO,CAAC,CAAC,C"}