{"version":3,"file":"ContainImageFrame.BOacZbzf.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/0yrsM587OF5Ec4YcF4bl/ONGDSeAUT3BOM98JZQAM/ContainImageFrame.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ContainImageFrame(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},alt=\"\",radius=\"0px\",background=\"rgba(0,0,0,0)\",style}=props;const imageSource=React.useMemo(()=>{if(typeof image===\"string\")return{src:image,srcSet:undefined,alt:\"\"};return{src:image?.src??\"\",srcSet:image?.srcSet,alt:image?.alt??\"\"};},[image]);const computedAlt=alt||imageSource.alt||\"\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background,borderRadius:radius,padding:0,border:\"none\",...style},children:/*#__PURE__*/_jsx(\"img\",{src:imageSource.src,srcSet:imageSource.srcSet,alt:computedAlt,style:{width:\"100%\",height:\"100%\",display:\"block\",objectFit:\"contain\",objectPosition:\"center center\",border:\"none\",padding:0,background:\"transparent\",borderRadius:\"inherit\"}})});}addPropertyControls(ContainImageFrame,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt\",defaultValue:\"\",placeholder:\"Describe image\"},radius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"0px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0,0,0,0)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContainImageFrame\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ContainImageFrame.map"],"mappings":"0KAGG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,EAAE,MAAI,GAAG,SAAO,MAAM,aAAW,gBAAgB,SAAO,EAAY,EAAYA,MAAsB,OAAO,GAAQ,SAAe,CAAC,IAAI,EAAM,OAAO,IAAA,GAAU,IAAI,EAAE,EAAQ,CAAC,IAAI,GAAO,KAAK,GAAG,OAAO,GAAO,OAAO,IAAI,GAAO,KAAK,EAAE,EAAI,CAAC,CAAK,CAAC,EAAQ,EAAY,GAAK,EAAY,KAAK,GAAG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,aAAW,aAAa,EAAO,QAAQ,EAAE,OAAO,OAAO,GAAG,CAAK,EAAE,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAY,IAAI,OAAO,EAAY,OAAO,IAAI,EAAY,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,QAAQ,UAAU,UAAU,eAAe,gBAAgB,OAAO,OAAO,QAAQ,EAAE,WAAW,cAAc,aAAa,SAAS,CAAC,CAAC,CAAC,CAAC,CAAE,iBAHp1B,IAA4B,IAAoD,EAGqwB,EAAoB,EAAkB,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,MAAM,OAAO,EAAE,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,aAAa,GAAG,YAAY,gBAAgB,EAAE,OAAO,CAAC,KAAK,EAAY,aAAa,MAAM,SAAS,aAAa,KAAK,EAAE,WAAW,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,eAAe,CAAC,CAAC"}