{"version":3,"file":"Image.gJDjmeLP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4FYXL5lQz9cgJ2BJkaNV/73UsIpa97froefZwqzz9/Image.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Responsive Image\n * By Benjamin\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n *\n */ export default function Image(props){const{image,alt,radius,padding,link,newTab,style,shadowOptions}=props;const{shadowX,shadowY,shadowBlur,shadowColor,shadowEnabled}=shadowOptions;const wrapperStyle={display:\"flex\",placeContent:\"center\",placeItems:\"center\",width:\"100%\",height:\"100%\",padding:padding};const imageStyle={maxWidth:\"100%\",maxHeight:\"100%\",borderRadius:radius,boxShadow:shadowEnabled&&`${shadowX}px ${shadowY}px ${shadowBlur}px ${shadowColor}`};const imageSource=(image===null||image===void 0?void 0:image.src)||\"https://framerusercontent.com/images/64n4wnVJKDJspLlFZ6DarCP0M4.jpg\";return link?/*#__PURE__*/ _jsx(\"a\",{href:link,title:alt,target:newTab?\"_blank\":\"_self\",style:wrapperStyle,children:/*#__PURE__*/ _jsx(\"img\",{style:imageStyle,src:imageSource,srcSet:image===null||image===void 0?void 0:image.srcSet,alt:alt})}):/*#__PURE__*/ _jsx(\"div\",{style:wrapperStyle,children:/*#__PURE__*/ _jsx(\"img\",{style:imageStyle,src:imageSource,srcSet:image===null||image===void 0?void 0:image.srcSet,alt:alt})});};Image.defaultProps={radius:10,padding:10,alt:\"\",shadowOptions:{shadowEnabled:false,shadowX:0,shadowY:2,shadowBlur:4,shadowColor:\"rgba(0,0,0,0.2)\"}};addPropertyControls(Image,{image:{title:\"Image\",type:ControlType.ResponsiveImage},alt:{type:ControlType.String,title:\"Alt\",placeholder:\"Alt Text\"},radius:{title:\"Radius\",type:ControlType.Number,min:0,max:100,step:5,displayStepper:true},padding:{title:\"Padding\",type:ControlType.Number,min:0,max:100,step:5,displayStepper:true},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",hidden:props=>!props.link},shadowOptions:{type:ControlType.Object,title:\"Shadow\",controls:{shadowEnabled:{type:ControlType.Boolean,title:\"Enable\",defaultValue:false},shadowX:{type:ControlType.Number,title:\"X\",min:0,defaultValue:0,hidden:props=>!props.shadowEnabled},shadowY:{type:ControlType.Number,title:\"Y\",min:0,defaultValue:2,hidden:props=>!props.shadowEnabled},shadowBlur:{type:ControlType.Number,title:\"Blur\",min:0,defaultValue:4,hidden:props=>!props.shadowEnabled},shadowColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"rgba(0,0,0,0.2)\",hidden:props=>!props.shadowEnabled}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Image\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image.map"],"mappings":"4JAQI,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,SAAO,UAAQ,OAAK,SAAO,QAAM,iBAAe,EAAW,CAAC,UAAQ,UAAQ,aAAW,cAAY,iBAAe,EAAoB,EAAa,CAAC,QAAQ,OAAO,aAAa,SAAS,WAAW,SAAS,MAAM,OAAO,OAAO,OAAe,SAAO,EAAQ,EAAW,CAAC,SAAS,OAAO,UAAU,OAAO,aAAa,EAAO,UAAU,GAAe,GAAG,EAAQ,KAAK,EAAQ,KAAK,EAAW,KAAK,GAAa,EAAQ,EAAa,GAA0C,KAAM,sEAAsE,OAAO,EAAmB,EAAK,IAAI,CAAC,KAAK,EAAK,MAAM,EAAI,OAAO,EAAO,SAAS,QAAQ,MAAM,EAAa,SAAuB,EAAK,MAAM,CAAC,MAAM,EAAW,IAAI,EAAY,OAAO,GAA0C,OAA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