{"version":3,"file":"Image_1.DTCp11CS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/HHfFBGln7KJDdHtzwFT4/4rMUalK5TmOYbn2rydu2/Image_1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function toCssSize(value){if(value===undefined||value===null||value===\"\")return\"0px\";return typeof value===\"number\"?`${value}px`:value;}function toCssBox(value,isMixed,top,right,bottom,left){return isMixed?`${toCssSize(top)} ${toCssSize(right)} ${toCssSize(bottom)} ${toCssSize(left)}`:toCssSize(value);}function toCssBorder(border){if(!border)return undefined;if(typeof border===\"string\")return border;const width=border.width??border.borderWidth??border.size??border.borderSize??\"0px\";const style=border.style??border.borderStyle??\"solid\";const color=border.color??border.borderColor??\"transparent\";return`${toCssSize(width)} ${style} ${color}`;}function toCssShadow(shadow){if(!shadow)return undefined;if(typeof shadow===\"string\")return shadow;const x=toCssSize(shadow.x??0);const y=toCssSize(shadow.y??0);const blur=toCssSize(shadow.blur??0);const spread=toCssSize(shadow.spread??0);const color=shadow.color??\"transparent\";return`${x} ${y} ${blur} ${spread} ${color}`;}function toImageUrl(value){if(!value)return\"\";if(typeof value===\"string\")return value;return value.url??value.src??\"\";}function toBackgroundUrl(value){return`url(\"${String(value).replace(/\"/g,'\\\\\"')}\")`;}function isSvgSource(value){const source=String(value).toLowerCase();return source.includes(\".svg\")||source.startsWith(\"data:image/svg+xml\")||source.includes(\"image/svg+xml\");}function toObjectFit(fill){if(fill===\"contain\")return\"contain\";if(fill===\"stretch\")return\"fill\";return\"cover\";}/**\n * @framerDisableUnlink\n */export function Image(props){const{sourceType,imageUrl,upload,fill,filter,background,padding,paddingIsMixed,paddingTop,paddingRight,paddingBottom,paddingLeft,radius,radiusIsMixed,radiusTopLeft,radiusTopRight,radiusBottomRight,radiusBottomLeft,border,shadow,overflow=\"hidden\"}=props;const currentImage=toImageUrl(sourceType===\"upload\"?upload:imageUrl);const shouldRenderSvgAsImage=currentImage&&isSvgSource(currentImage)&&fill!==\"tile\";const imageBackground=currentImage?{contain:`${toBackgroundUrl(currentImage)} center / contain no-repeat`,cover:`${toBackgroundUrl(currentImage)} center / cover no-repeat`,stretch:`${toBackgroundUrl(currentImage)} 0% 0% / 100% 100% no-repeat`,tile:`${toBackgroundUrl(currentImage)} 0% 0% / auto auto repeat`}:{};const borderRadius=toCssBox(radius,radiusIsMixed,radiusTopLeft,radiusTopRight,radiusBottomRight,radiusBottomLeft);const paddingValue=toCssBox(padding,paddingIsMixed,paddingTop,paddingRight,paddingBottom,paddingLeft);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",background,border:toCssBorder(border),borderRadius,boxShadow:toCssShadow(shadow),padding:paddingValue,boxSizing:\"border-box\",overflow},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",background:shouldRenderSvgAsImage?undefined:imageBackground[fill],filter,borderRadius:\"inherit\",overflow},children:shouldRenderSvgAsImage?/*#__PURE__*/_jsx(\"img\",{src:currentImage,alt:\"\",draggable:false,style:{width:\"100%\",height:\"100%\",display:\"block\",objectFit:toObjectFit(fill),pointerEvents:\"none\",userSelect:\"none\"}}):null})});}addPropertyControls(Image,{sourceType:{type:ControlType.Enum,title:\"Type\",options:[\"url\",\"upload\"],optionTitles:[\"URL\",\"Upload\"],defaultValue:\"url\",displaySegmentedControl:true},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://via.placeholder.com/150\",hidden(props){return props.sourceType===\"upload\";}},upload:{type:ControlType.Image,title:\"Upload\",hidden(props){return props.sourceType!==\"upload\";}},fill:{type:ControlType.Enum,title:\"Fill\",options:[\"contain\",\"cover\",\"stretch\",\"tile\"],optionTitles:[\"Contain\",\"Cover\",\"Stretch\",\"Tile\"],defaultValue:\"cover\"},filter:{type:ControlType.Enum,title:\"Color Transform\",options:[\"none\",\"grayscale(100%)\",\"sepia(100%)\",\"hue-rotate(90deg)\",\"invert(100%)\",\"brightness(150%)\",\"contrast(200%)\"],optionTitles:[\"None\",\"Grayscale\",\"Sepia\",\"Hue Rotate\",\"Invert\",\"Brightness\",\"Contrast\"],defaultValue:\"none\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},padding:{type:ControlType.FusedNumber,title:\"Padding\",defaultValue:0,toggleKey:\"paddingIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},radius:{type:ControlType.FusedNumber,title:\"Radius\",defaultValue:10,toggleKey:\"radiusIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"radiusTopLeft\",\"radiusTopRight\",\"radiusBottomRight\",\"radiusBottomLeft\"],valueLabels:[\"NW\",\"NE\",\"SE\",\"SW\"],min:0},border:{type:ControlType.Border,title:\"Border\",defaultValue:\"1px solid rgba(255, 255, 255, 0.16)\"},shadow:{type:ControlType.Object,title:\"Shadow\",controls:{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"transparent\"},x:{type:ControlType.Number,title:\"X\",defaultValue:0},y:{type:ControlType.Number,title:\"Y\",defaultValue:0},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:0,min:0},spread:{type:ControlType.Number,title:\"Spread\",defaultValue:0}}},overflow:{type:ControlType.Enum,title:\"Overflow\",options:[\"visible\",\"hidden\",\"clip\",\"scroll\",\"auto\"],optionTitles:[\"Visible\",\"Hidden\",\"Clip\",\"Scroll\",\"Auto\"],defaultValue:\"hidden\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"Image\":{\"type\":\"reactComponent\",\"name\":\"Image\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image_1.map"],"mappings":"6JAA+F,SAAS,EAAU,EAAM,CAA4D,OAAxD,GAA2B,MAAM,IAAQ,GAAS,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