{"version":3,"file":"ResponsiveImage.BZOXCy63.mjs","names":["useMemo","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","c","addPropertyControls","init_framer_BL70qLPA","ResponsiveImage","objectPosition","image","isExternalResource","imageUrl","style","styleOverrides","init_ResponsiveImage","ControlType","props"],"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":"A,sKAMG,SAAwBQ,EAAgB,CAAC,QAAM,QAAM,WAAS,iBAAe,sBAAoB,CAAC,IAAMC,EAAeT,MAAYU,EAAM,GAAGA,EAAM,UAAU,GAAGA,EAAM,YAAY,SAAS,CAACA,GAAO,UAAUA,GAAO,SAAS,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,GAAGA,EAAM,GAAGC,EAAmB,CAAC,IAAIC,CAAQ,EAAE,CAAC,EAAE,MAAM,CAAC,GAAGC,EAAM,GAAGC,EAAe,iBAAe,MAAM,OAAO,OAAO,OAAO,SAAS,QAAQ,CAAC,CAAC,CAAE,C,0CAACR,EAAoBE,EAAgB,CAAC,mBAAmB,CAAC,MAAM,SAAS,aAAa,GAAM,KAAKQ,EAAY,QAAQ,aAAa,MAAM,cAAc,MAAM,EAAE,MAAM,CAAC,MAAM,QAAQ,KAAKA,EAAY,gBAAgB,YAAY,kCAAkC,OAAO,EAAM,CAAC,OAAOC,EAAM,qBAAqB,EAAK,CAAC,EAAE,SAAS,CAAC,MAAM,MAAM,KAAKD,EAAY,OAAO,YAAY,qBAAqB,aAAa,GAAG,OAAO,EAAM,CAAC,OAAOC,EAAM,qBAAqB,EAAM,CAAC,EAAE,eAAe,CAAC,KAAKD,EAAY,OAAO,SAAS,CAAC,YAAY,CAAC,KAAKA,EAAY,MAAM,EAAE,aAAa,CAAC,KAAKA,EAAY,MAAM,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,aAAa,QAAQ,QAAQ,CAAC,QAAQ,SAAS,EAAE,aAAa,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,C"}