{"version":3,"file":"Auto_Height_CMS_Image.ct_zvPy5.mjs","names":[],"sources":["https:/framerusercontent.com/modules/FX8ZgnizHZE0qVOAyp5r/i1p8fxaxGrppqJqlKIBL/Auto_Height_CMS_Image.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// @framerDisableUnlink\nexport default function AutoHeightImage({src,width,alt=\"Image\"}){// Return null or a placeholder div if no image is provided\nif(!src){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",aspectRatio:\"16/9\",backgroundColor:\"#f0f0f0\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#999\",fontSize:\"14px\",padding:\"20px\"},children:[\"Select an image in\",/*#__PURE__*/_jsx(\"br\",{}),\"the properties panel\"]});}return /*#__PURE__*/_jsx(\"img\",{src:src,style:{width:\"100%\",height:\"auto\",display:\"block\"},alt:alt});}// Property Controls for Framer UI\naddPropertyControls(AutoHeightImage,{src:{type:ControlType.Image,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"Image\",placeholder:\"Describe this image...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AutoHeightImage\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Auto_Height_CMS_Image.map"],"mappings":"8JACA,SAAwB,EAAgB,CAAC,MAAI,QAAM,MAAI,SAAS,CACwO,OAApS,EAAwT,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,QAAQ,CAAK,MAAI,CAAC,CAA/W,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,YAAY,OAAO,gBAAgB,UAAU,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,OAAO,SAAS,OAAO,QAAQ,OAAO,CAAC,SAAS,CAAC,qBAAkC,EAAK,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,CAAC,kBAF7O,IAAoD,CAG7G,EAAoB,EAAgB,CAAC,IAAI,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,QAAQ,YAAY,yBAAyB,CAAC,CAAC"}