{"version":3,"file":"ImageRespectSize.JFrQppDN.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1vFo2bkKAxRBEgVGt7pb/IzbdZcYfBUJ0kRLPsnEp/ImageRespectSize.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function ImageRespectSize(props){return /*#__PURE__*/ _jsx(\"div\",{style:{display:\"flex\",justifyContent:props.imageHorizontalAlign,alignItems:\"center\",width:props.imageContainerWidth,height:props.imageContainerHeight},children:/*#__PURE__*/ _jsx(motion.img,{src:props.imageFile,style:{maxWidth:\"100%\",maxHeight:\"100%\",// width: \"intrinsic\",\n// height: \"intrinsic\",\nobjectFit:\"contain\"},alt:props.imageAltText})});};ImageRespectSize.defaultProps={imageContainerWidth:100,imageContainerHeight:100,imageAltText:\"Image\"};addPropertyControls(ImageRespectSize,{imageFile:{title:\"Image\",type:ControlType.Image},imageContainerHeight:{title:\"Height\",type:ControlType.Number},imageContainerWidth:{title:\"Width\",type:ControlType.Number},imageHorizontalAlign:{title:\"Align image\",type:ControlType.Enum,defaultValue:\"center\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"L\",\"C\",\"R\"]},imageAltText:{title:\"Alt text\",type:ControlType.String}});ImageRespectSize.displayName=\"General/ImageRespectSize\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageRespectSize\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageRespectSize.map"],"mappings":"wMAQI,SAAwB,EAAiB,EAAM,CAAC,OAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,eAAe,EAAM,qBAAqB,WAAW,SAAS,MAAM,EAAM,oBAAoB,OAAO,EAAM,qBAAqB,CAAC,SAAuB,EAAK,EAAO,IAAI,CAAC,IAAI,EAAM,UAAU,MAAM,CAAC,SAAS,OAAO,UAAU,OAEzU,UAAU,UAAU,CAAC,IAAI,EAAM,aAAa,CAAC,CAAC,CAAC,kBARJ,IAAkC,IAAoD,CAQ/E,EAAiB,aAAa,CAAC,oBAAoB,IAAI,qBAAqB,IAAI,aAAa,QAAQ,CAAC,EAAoB,EAAiB,CAAC,UAAU,CAAC,MAAM,QAAQ,KAAK,EAAY,MAAM,CAAC,qBAAqB,CAAC,MAAM,SAAS,KAAK,EAAY,OAAO,CAAC,oBAAoB,CAAC,MAAM,QAAQ,KAAK,EAAY,OAAO,CAAC,qBAAqB,CAAC,MAAM,cAAc,KAAK,EAAY,KAAK,aAAa,SAAS,wBAAwB,GAAK,0BAA0B,aAAa,QAAQ,CAAC,QAAQ,SAAS,MAAM,CAAC,aAAa,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,aAAa,CAAC,MAAM,WAAW,KAAK,EAAY,OAAO,CAAC,CAAC,CAAC,EAAiB,YAAY"}