{"version":3,"file":"PartnerLogoFit.DfhPBY0L.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","init_jsx_runtime","c","init_framer_DymZktPS","addPropertyControls","ControlType","PartnerLogoFit","props","safeScale","scale","containerStyle","backgroundColor","imageStyle","imageWrapperStyle","image","init_PartnerLogoFit"],"sources":["https:/framerusercontent.com/modules/PPl79YmvTBEXKmXrmYb5/B34AVH3GKQynZPwqZnSl/PartnerLogoFit.js"],"sourcesContent":["// @ts-ignore Framer types are provided at runtime in Framer\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PartnerLogoFit(props){const{image,backgroundColor=\"transparent\",scale=1}=props;const safeScale=useMemo(()=>Math.min(1,Math.max(.1,scale)),[scale]);const containerStyle=useMemo(()=>({position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",backgroundColor}),[backgroundColor]);const imageStyle=useMemo(()=>({width:\"100%\",height:\"100%\",objectFit:\"contain\",objectPosition:\"center center\",display:\"block\"}),[]);const imageWrapperStyle=useMemo(()=>({width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transform:`scale(${safeScale})`,transformOrigin:\"center center\"}),[safeScale]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:image?.src?/*#__PURE__*/_jsx(\"div\",{style:imageWrapperStyle,children:/*#__PURE__*/_jsx(\"img\",{...image,style:imageStyle})}):null});}addPropertyControls(PartnerLogoFit,{image:{type:ControlType.ResponsiveImage,title:\"Partner Logo\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0,0,0,0)\",optional:true},scale:{type:ControlType.Number,title:\"Scale\",defaultValue:1,min:.1,max:3,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PartnerLogoFit\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PartnerLogoFit.map"],"mappings":"A,0KAIG,SAAwBS,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,kBAAgB,cAAc,QAAM,GAAGC,EAAYC,EAAUX,MAAY,KAAK,IAAI,EAAE,KAAK,IAAI,GAAGY,CAAK,CAAC,EAAE,CAACA,CAAK,CAAC,EAAQC,EAAeb,OAAa,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,SAAS,iBAAe,GAAG,CAACc,CAAe,CAAC,EAAQC,EAAWf,OAAa,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,UAAU,eAAe,gBAAgB,QAAQ,OAAO,GAAG,CAAC,CAAC,EAAQgB,EAAkBhB,OAAa,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,UAAU,SAASW,EAAU,GAAG,gBAAgB,eAAe,GAAG,CAACA,CAAS,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAME,EAAe,SAASI,GAAO,IAAiB,gBAAK,MAAM,CAAC,MAAMD,EAAkB,SAAsB,gBAAK,MAAM,CAAC,GAAGC,EAAM,MAAMF,CAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAE,C,0CAACR,EAAoBE,EAAe,CAAC,MAAM,CAAC,KAAKD,EAAY,gBAAgB,MAAM,cAAc,EAAE,gBAAgB,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,gBAAgB,SAAS,EAAI,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,C"}