{"version":3,"file":"ExternalImage.XpgTOOFS.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/ATMZ6JlmGRQgvwDkDxJG/E97JzjpCLuUFI18tz1dn/ExternalImage.js"],"sourcesContent":["// Optimized ExternalImage Component for Framer\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ExternalImage(props){const{imageUrl=\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt=\"External image\",objectFit=\"cover\",objectPosition=\"center\",borderRadius=0,shadow=false}=props;const[isLoaded,setIsLoaded]=useState(false);const imgRef=useRef(null);const[isClient,setIsClient]=useState(false);// Avoid hydration mismatches (important for Framer)\nuseEffect(()=>{setIsClient(true);},[]);if(!isClient)return null;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",borderRadius:`${borderRadius}px`,boxShadow:shadow?\"0 4px 10px rgba(0,0,0,0.08)\":\"none\",backgroundColor:\"transparent\"},children:/*#__PURE__*/_jsx(\"img\",{ref:imgRef,src:imageUrl,alt:alt,loading:\"lazy\",decoding:\"async\",onLoad:()=>setIsLoaded(true),onError:e=>{const target=e.target;target.style.display=\"none\";},style:{width:\"100%\",height:\"100%\",objectFit,objectPosition,display:\"block\",opacity:isLoaded?1:0,transition:\"opacity 0.4s ease-out\",willChange:\"opacity\",borderRadius:`${borderRadius}px`}})});}addPropertyControls(ExternalImage,{imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",placeholder:\"Enter image URL...\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"External image\",placeholder:\"Describe the image...\"},objectFit:{type:ControlType.Enum,title:\"Object Fit\",options:[\"cover\",\"contain\",\"fill\",\"scale-down\",\"none\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\",\"Scale Down\",\"None\"],defaultValue:\"cover\"},objectPosition:{type:ControlType.Enum,title:\"Position Focus\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\",\"top left\",\"top right\",\"bottom left\",\"bottom right\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"],defaultValue:\"center\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},videoThumbnail:{type:ControlType.Link,title:\"Video Thumbnail\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExternalImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExternalImage.map"],"mappings":"yLAIG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,sEAAsE,MAAI,iBAAiB,YAAU,QAAQ,iBAAe,SAAS,eAAa,EAAE,SAAO,IAAO,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAO,EAAOC,EAAO,KAAK,CAAM,CAAC,EAAS,GAAaD,EAAS,GAAM,CACxR,OAAhE,MAAc,CAAC,EAAY,GAAK,EAAG,EAAE,CAAC,CAAK,EAAyC,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,SAAS,SAAS,aAAa,GAAG,EAAa,IAAI,UAAU,EAAO,8BAA8B,OAAO,gBAAgB,cAAc,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAO,IAAI,EA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