{"version":3,"file":"URLimage.B2cU4sJY.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/st9PTQ7QIpVHCQS9TGyy/uLof0Sx2dzaC9u2Qmmqs/URLimage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function HeroImage(props){const{desktopImageUrl,mobileImageUrl,imageAlign,stackBreakpoint,style}=props;const[useMobile,setUseMobile]=useState(false);useEffect(()=>{const check=()=>setUseMobile(window.innerWidth<stackBreakpoint);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[stackBreakpoint]);const src=useMobile&&mobileImageUrl?mobileImageUrl:desktopImageUrl;return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",overflow:\"hidden\",position:\"relative\",background:\"transparent\",borderTop:\"3px solid #FFFFFF\"},children:src?/*#__PURE__*/_jsx(\"img\",{src:src,alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:imageAlign,display:\"block\"}}):null});}addPropertyControls(HeroImage,{desktopImageUrl:{type:ControlType.String,title:\"Desktop Image\",defaultValue:\"\",placeholder:\"https://...\"},mobileImageUrl:{type:ControlType.String,title:\"Mobile Image\",defaultValue:\"\",placeholder:\"https://... (optional, falls back to desktop)\"},imageAlign:{type:ControlType.Enum,title:\"Image Align\",options:[\"center center\",\"center top\",\"center bottom\",\"left center\",\"right center\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\"],defaultValue:\"center center\",displaySegmentedControl:false},stackBreakpoint:{type:ControlType.Number,title:\"Mobile Below\",defaultValue:810,min:320,max:1400,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroImage\",\"slots\":[],\"annotations\":{\"framerSupported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