{"version":3,"file":"Single_CMS_Image.BgE1mFew.mjs","names":[],"sources":["https:/framerusercontent.com/modules/dZwsxgRylpMMe2MZkdkr/RtBVcPTNo6rZCf2is6qk/Single_CMS_Image.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Container wrapper to ensure standard sizing behaviors inside Framer stacks\nconst containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",overflow:\"hidden\"};const imageStyle={width:\"100%\",height:\"100%\",objectFit:\"cover\",backgroundColor:\"#f3f3f3\"};export default function SingleExternalImage(props){const{imageUrl,borderRadius}=props;const cleanUrl=imageUrl?imageUrl.trim():\"\";// Placeholder view inside the editor canvas when no link is attached yet\nif(!cleanUrl){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",minHeight:\"150px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",border:\"1px dashed #ccc\",color:\"#999\",borderRadius:`${borderRadius}px`,fontSize:\"13px\"},children:\"Connect a single image URL...\"});}return /*#__PURE__*/_jsx(\"div\",{style:{...containerStyle,borderRadius:`${borderRadius}px`},children:/*#__PURE__*/_jsx(\"img\",{src:cleanUrl,alt:\"CMS raw external asset\",style:imageStyle,onError:e=>{e.currentTarget.style.display=\"none\";}})});}// Maps control variables directly to Framer's visual UI properties panel\naddPropertyControls(SingleExternalImage,{imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"},borderRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:12,min:0,max:100,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SingleExternalImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Single_CMS_Image.map"],"mappings":"4JAC6K,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,WAAS,gBAAc,EAAY,EAAS,EAAS,EAAS,KAAK,EAAE,GACV,OAA7R,EAAiT,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAe,aAAa,GAAG,EAAa,GAAG,EAAE,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAS,IAAI,yBAAyB,MAAM,EAAW,QAAQ,GAAG,CAAC,EAAE,cAAc,MAAM,QAAQ,MAAO,CAAC,CAAC,CAAC,CAAC,EAA5e,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,kBAAkB,MAAM,OAAO,aAAa,GAAG,EAAa,IAAI,SAAS,MAAM,EAAE,SAAS,+BAA+B,CAAC,CAAkP,qBAFte,IAAoD,EACxF,EAAe,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,SAAS,QAAQ,EAAQ,EAAW,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,gBAAgB,SAAS,EAE3K,EAAoB,EAAoB,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,EAAE,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC"}