{"version":3,"file":"CmsImage.DIYAcM3P.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_D6uXRwWs","addPropertyControls","ControlType","CmsImage","props","src","image","srcSet","alt","lazy","fit","positionX","positionY","radius","init_CmsImage"],"sources":["https:/framerusercontent.com/modules/PGNViUpkolFvHJpKuboW/YGnO326ohXUuEM4jAh7h/CmsImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Renders a real <img> with an alt attribute.\n * Canvas image fills cannot take alt text from a CMS field, so CMS-driven\n * images use this component instead and bind both image and alt to fields.\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function CmsImage(props){const{image,alt,fit,positionX,positionY,radius,lazy}=props;const src=typeof image===\"string\"?image:image?.src;const srcSet=typeof image===\"string\"?undefined:image?.srcSet;if(!src)return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"}});return /*#__PURE__*/_jsx(\"img\",{src:src,srcSet:srcSet,alt:alt||\"\",loading:lazy?\"lazy\":undefined,decoding:\"async\",style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:fit,objectPosition:`${positionX} ${positionY}`,borderRadius:radius?`${radius}px`:undefined}});}CmsImage.defaultProps={image:undefined,alt:\"\",fit:\"cover\",positionX:\"center\",positionY:\"center\",radius:0,lazy:true};addPropertyControls(CmsImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\",\"fill\",\"none\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\",\"None\"]},positionX:{type:ControlType.Enum,title:\"X\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"]},positionY:{type:ControlType.Enum,title:\"Y\",options:[\"top\",\"center\",\"bottom\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"]},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:200},lazy:{type:ControlType.Boolean,title:\"Lazy\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CmsImage\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"300\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CmsImage.map"],"mappings":"A,4JASG,SAAwBM,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,MAAI,YAAU,YAAU,SAAO,QAAMC,EAAYC,EAAI,OAAOC,GAAQ,SAASA,EAAMA,GAAO,IAAUC,EAAO,OAAOD,GAAQ,SAAS,IAAA,GAAUA,GAAO,OAAoF,OAAzED,EAA6F,gBAAK,MAAM,CAAK,MAAW,SAAO,IAAIG,GAAK,GAAG,QAAQC,EAAK,OAAO,IAAA,GAAU,SAAS,QAAQ,MAAM,CAAC,QAAQ,QAAQ,MAAM,OAAO,OAAO,OAAO,UAAUC,EAAI,eAAe,GAAGC,EAAU,GAAGC,IAAY,aAAaC,EAAO,GAAGA,EAAO,IAAI,IAAA,EAAS,CAAC,CAAC,EAA1T,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAA6Q,C,sCAAC,EAAS,aAAa,CAAC,MAAM,IAAA,GAAU,IAAI,GAAG,IAAI,QAAQ,UAAU,SAAS,UAAU,SAAS,OAAO,EAAE,KAAK,EAAI,EAAEZ,EAAoBE,EAAS,CAAC,MAAM,CAAC,KAAKD,EAAY,gBAAgB,MAAM,OAAO,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,KAAK,EAAE,IAAI,CAAC,KAAKA,EAAY,KAAK,MAAM,MAAM,QAAQ,CAAC,QAAQ,UAAU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