{"version":3,"file":"ImageRatio.CTfWBqEn.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Zi1Lcq36dEoJnDXuCAT2/AhnWUrJsp1LFEmzgHim2/ImageRatio.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ImageRatio({ratio,image,objectFit,imageHeight}){// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nreturn /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",paddingTop:imageHeight?0:`${ratio}%`,height:imageHeight||\"100%\"},children:/*#__PURE__*/_jsx(\"img\",{style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:objectFit},...image})});}addPropertyControls(ImageRatio,{ratio:{type:ControlType.Number,defaultValue:56.25},image:{type:ControlType.ResponsiveImage},objectFit:{type:ControlType.Enum,options:[\"cover\",\"contain\"],defaultValue:\"cover\"},imageHeight:{type:ControlType.String,defaultValue:\"\"}})// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageRatio\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageRatio.map"],"mappings":"4JAQG,SAAwB,EAAW,CAAC,QAAM,QAAM,YAAU,eAAa,CAG1E,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,WAAW,EAAY,EAAE,GAAG,EAAM,GAAG,OAAO,GAAa,OAAO,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,MAAM,OAAO,OAAO,OAAiB,YAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,kBAT/N,IAAoD,CAS6K,EAAoB,EAAW,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,aAAa,MAAM,CAAC,MAAM,CAAC,KAAK,EAAY,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,QAAQ,CAAC,QAAQ,UAAU,CAAC,aAAa,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,CAAC"}