{"version":3,"file":"ResponsiveImage.CIxDc19S.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/DeEeWPYDVDkVadRGyiH0/rN6Sto3lxGQFgCRxQcq8/ResponsiveImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{ControlType,addPropertyControls}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ResponsiveImage({image,style,imageUrl,styleOverrides,isExternalResource}){const objectPosition=useMemo(()=>image?`${image.positionX} ${image.positionY}`:\"center\",[image?.positionX,image?.positionY]);return /*#__PURE__*/_jsx(\"img\",{...image,...isExternalResource?{src:imageUrl}:{},style:{...style,...styleOverrides,objectPosition,width:\"100%\",height:\"auto\",overflow:\"hidden\"}});}addPropertyControls(ResponsiveImage,{isExternalResource:{title:\"Source\",defaultValue:false,type:ControlType.Boolean,enabledTitle:\"URL\",disabledTitle:\"File\"},image:{title:\"Image\",type:ControlType.ResponsiveImage,description:\"Upload a file from your device.\",hidden(props){return props.isExternalResource===true;}},imageUrl:{title:\"URL\",type:ControlType.String,description:\"Hosted image file.\",defaultValue:\"\",hidden(props){return props.isExternalResource===false;}},styleOverrides:{type:ControlType.Object,controls:{aspectRatio:{type:ControlType.String},borderRadius:{type:ControlType.String},objectFit:{type:ControlType.Enum,defaultValue:\"cover\",options:[\"cover\",\"contain\"],optionTitles:[\"Cover\",\"Contain\"]}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ResponsiveImage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ResponsiveImage.map"],"mappings":"kQAMG,SAAwB,EAAgB,CAAC,QAAM,QAAM,WAAS,iBAAe,sBAAoB,CAAC,IAAM,EAAeA,MAAY,EAAM,GAAG,EAAM,UAAU,GAAG,EAAM,YAAY,SAAS,CAAC,GAAO,UAAU,GAAO,UAAU,CAAC,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAM,GAAG,EAAmB,CAAC,IAAI,EAAS,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,EAAM,GAAG,EAAe,iBAAe,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,CAAC,CAAC,kBANxW,IAA2B,IAAoD,CAM2R,EAAoB,EAAgB,CAAC,mBAAmB,CAAC,MAAM,SAAS,aAAa,GAAM,KAAK,EAAY,QAAQ,aAAa,MAAM,cAAc,OAAO,CAAC,MAAM,CAAC,MAAM,QAAQ,KAAK,EAAY,gBAAgB,YAAY,kCAAkC,OAAO,EAAM,CAAC,OAAO,EAAM,qBAAqB,IAAO,CAAC,SAAS,CAAC,MAAM,MAAM,KAAK,EAAY,OAAO,YAAY,qBAAqB,aAAa,GAAG,OAAO,EAAM,CAAC,OAAO,EAAM,qBAAqB,IAAQ,CAAC,eAAe,CAAC,KAAK,EAAY,OAAO,SAAS,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,aAAa,QAAQ,QAAQ,CAAC,QAAQ,UAAU,CAAC,aAAa,CAAC,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC"}