{"version":3,"file":"ImageAutoSize.4dUPaDix.mjs","names":[],"sources":["https:/framerusercontent.com/modules/yJP6bblLYhYiP9BJm7FR/rXpV3dHHbVTWlYQHxjkh/ImageAutoSize.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function CMS(props){const{cmsImageURL,altText,borderRadius}=props;// Check if the image URL is available\nconst imageURL=cmsImageURL?cmsImageURL:null;// Apply \"display: none\" if the image URL is not set\nconst displayStyle=imageURL?\"block\":\"none\";return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"auto\",overflow:\"hidden\",position:\"relative\",display:displayStyle,borderRadius:`${borderRadius}px`},children:/*#__PURE__*/_jsx(\"img\",{src:imageURL,alt:altText||\"Responsive Image\",style:{width:\"100%\",height:\"auto\",objectFit:\"cover\",display:\"block\",borderRadius:`${borderRadius}px`}})});}// Framer Property Controls - No more \"Is Set\" control\naddPropertyControls(CMS,{cmsImageURL:{type:ControlType.Image,title:\"CMS Image\"},altText:{type:ControlType.String,title:\"Alt Text\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"CMS\":{\"type\":\"reactComponent\",\"name\":\"CMS\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageAutoSize.map"],"mappings":"iOAA+F,SAAgB,EAAI,EAAM,CAAC,GAAK,CAAC,cAAY,UAAQ,gBAAc,EAC5J,EAAS,GAAwB,KACI,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,SAAS,WAAW,QAAhI,EAAS,QAAQ,OAAoI,aAAa,GAAG,EAAa,IAAI,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAS,IAAI,GAAS,mBAAmB,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,QAAQ,aAAa,GAAG,EAAa,IAAI,CAAC,CAAC,CAAC,CAAC,kBAFvV,IAAoD,CAG/F,EAAoB,EAAI,CAAC,YAAY,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,CAAC,CAAC"}