{"version":3,"file":"Image.DaVB_qGk.mjs","names":["TBorder.getBorderWidth"],"sources":["https:/framerusercontent.com/modules/KBWu7KtCEuja8TYmnqNW/JQAbKBPVuP0Iw4nzbCNS/image.js","https:/framerusercontent.com/modules/eJRIXUVDyETydvd279RQ/2CMtBOBILmM0F8N0mK7C/border.js","https:/framerusercontent.com/modules/DqYBP047XpY1ixCmjPEE/63MYOLCUXvD5Sgf9BxmZ/Image.js"],"sourcesContent":["export const values={type:[\"cover\",\"contain\",\"fill\",\"scale-down\",\"none\"]};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Image\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"values\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Type\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./image.map","export function isBorderPerSide(border){return border?.borderTopWidth||border?.borderRightWidth||border?.borderBottomWidth||border?.borderLeftWidth?true:false;}export function getBorderWidth(border){return isBorderPerSide(border)?{borderTopWidth:border?.borderTopWidth,borderRightWidth:border?.borderRightWidth,borderBottomWidth:border?.borderBottomWidth,borderLeftWidth:border?.borderLeftWidth}:{borderWidth:border?.borderWidth};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getBorderWidth\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Radius\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Border\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isBorderPerSide\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./border.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import*as TImage from\"https://framerusercontent.com/modules/KBWu7KtCEuja8TYmnqNW/JQAbKBPVuP0Iw4nzbCNS/image.js\";import*as TBorder from\"https://framerusercontent.com/modules/eJRIXUVDyETydvd279RQ/2CMtBOBILmM0F8N0mK7C/border.js\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n */export default function Image({background,border,borderRadius,boxShadow,dropShadow,image,lazyLoading,position,type,style,..._props}){const{children,dangerouslySetInnerHTML,...props}=_props;const borderWidth=TBorder.getBorderWidth(border);function getFormattedDropShadow(){const shadow=dropShadow;if(!shadow)return undefined;const parts=shadow.split(/ +/);if(parts.length<4)return`drop-shadow(${shadow})`;const formattedShadowString=[...parts.slice(0,3),...parts.slice(4)].join(\" \");return`drop-shadow(${formattedShadowString})`;}return /*#__PURE__*/_jsx(\"img\",{loading:lazyLoading?\"lazy\":\"eager\",src:image?.src,srcSet:image?.srcSet,alt:image?.alt||\"\",decoding:\"async\",style:{...style,display:\"block\",width:\"100%\",height:\"100%\",backgroundColor:background,...borderWidth,borderStyle:border?.borderStyle,borderColor:border?.borderColor,borderRadius:borderRadius,objectPosition:position,objectFit:type,boxShadow:boxShadow,filter:dropShadow&&getFormattedDropShadow()},...props});}export const imagePropertyControls={image:{type:ControlType.ResponsiveImage},background:{type:ControlType.Color,defaultValue:undefined,optional:true},lazyLoading:{type:ControlType.Boolean,title:\"Lazy Loading\"},type:{type:ControlType.Enum,defaultValue:\"cover\",segmentedControlDirection:\"vertical\",options:[...TImage.values.type]},position:{type:ControlType.String,defaultValue:\"50% 50%\"},border:{type:ControlType.Border,defaultValue:undefined,optional:true},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\"},boxShadow:{type:ControlType.BoxShadow,defaultValue:undefined,optional:true},dropShadow:{type:ControlType.BoxShadow,defaultValue:undefined,optional:true}};addPropertyControls(Image,imagePropertyControls);\nexport const __FramerMetadata__ = {\"exports\":{\"ImageProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Image\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\"}},\"imagePropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image.map"],"mappings":"4KAAa,EAAO,CAAC,KAAK,CAAC,QAAQ,UAAU,OAAO,aAAa,OAAO,CAAC,ICAzE,SAAgB,EAAgB,EAAO,CAAC,MAAO,MAAQ,gBAAgB,GAAQ,kBAAkB,GAAQ,mBAAmB,GAAQ,iBAA4B,SAAgB,EAAe,EAAO,CAAC,OAAO,EAAgB,EAAO,CAAC,CAAC,eAAe,GAAQ,eAAe,iBAAiB,GAAQ,iBAAiB,kBAAkB,GAAQ,kBAAkB,gBAAgB,GAAQ,gBAAgB,CAAC,CAAC,YAAY,GAAQ,YAAY,mBCS1a,SAAwB,EAAM,CAAC,aAAW,SAAO,eAAa,YAAU,aAAW,QAAM,cAAY,WAAS,OAAK,QAAM,GAAG,GAAQ,CAAC,GAAK,CAAC,WAAS,0BAAwB,GAAG,GAAO,EAAa,EAAYA,EAAuB,EAAO,CAAC,SAAS,GAAwB,CAAC,IAAM,EAAO,EAAW,GAAG,CAAC,EAAO,OAAiB,IAAM,EAAM,EAAO,MAAM,KAAK,CAAgI,OAA5H,EAAM,OAAO,EAAQ,eAAe,EAAO,GAAuF,eAAxD,CAAC,GAAG,EAAM,MAAM,EAAE,EAAE,CAAC,GAAG,EAA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