{"version":3,"file":"ImageShadow.Co7g3dwi.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/nPkVmfLxzc4gEz1GNaAm/lGCapiKAviiMsUPjHogJ/ImageShadow.js"],"sourcesContent":["// Custom image component with colorful blurred shadow effect\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ImageShadow(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image with shadow\"},shadow,borderRadius,showName,name,namePosition,nameColor,nameBackground,nameFont,namePadding,url,style}=props;const containerStyle={position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const shadowStyle={position:\"absolute\",width:\"100%\",height:\"100%\",backgroundImage:`url(${image.src})`,backgroundSize:\"cover\",backgroundPosition:\"center\",borderRadius:`${borderRadius}px`,filter:`blur(${shadow.blurAmount}px) brightness(${1-shadow.darkenAmount/100})`,opacity:shadow.opacity/100,transform:`translate(${shadow.offsetX}px, ${shadow.offsetY}px)`,zIndex:0};const imageStyle={position:\"relative\",width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:`${borderRadius}px`,zIndex:1};const getNamePositionStyles=()=>{const base={position:\"absolute\",padding:`${namePadding}px`,borderRadius:`${Math.max(0,borderRadius-namePadding)}px`,backgroundColor:nameBackground,color:nameColor,zIndex:2,...nameFont};switch(namePosition){case\"top-left\":return{...base,top:0,left:0};case\"top-right\":return{...base,top:0,right:0};case\"bottom-left\":return{...base,bottom:0,left:0};case\"bottom-right\":return{...base,bottom:0,right:0};case\"center\":return{...base,top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\"};default:return{...base,bottom:0,left:0};}};const content=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:shadowStyle,\"aria-hidden\":\"true\"}),/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt||\"\",style:imageStyle}),showName&&name&&/*#__PURE__*/_jsx(\"span\",{style:getNamePositionStyles(),children:name})]});return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:url?/*#__PURE__*/_jsx(\"a\",{href:url,target:\"_blank\",rel:\"noopener noreferrer\",style:{display:\"contents\",textDecoration:\"none\",color:\"inherit\"},children:content}):content});}addPropertyControls(ImageShadow,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},shadow:{type:ControlType.Object,title:\"Shadow\",controls:{opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:80,min:0,max:100,step:1,unit:\"%\"},darkenAmount:{type:ControlType.Number,title:\"Darken Amount\",defaultValue:10,min:0,max:100,step:1,unit:\"%\"},offsetX:{type:ControlType.Number,title:\"X\",defaultValue:0,min:-50,max:50,step:1,unit:\"px\"},offsetY:{type:ControlType.Number,title:\"Y\",defaultValue:20,min:-50,max:50,step:1,unit:\"px\"},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:30,min:0,max:50,step:1,unit:\"px\"}}},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:16,min:0,max:2e3,step:1,unit:\"px\"},showName:{type:ControlType.Boolean,title:\"Show Name\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Image Name\",hidden:({showName})=>!showName},namePosition:{type:ControlType.Enum,title:\"Position\",options:[\"bottom-left\",\"bottom-right\",\"top-left\",\"top-right\",\"center\"],optionTitles:[\"Bottom Left\",\"Bottom Right\",\"Top Left\",\"Top Right\",\"Center\"],defaultValue:\"bottom-left\",hidden:({showName})=>!showName},nameColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\",hidden:({showName})=>!showName},nameBackground:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0, 0, 0, 0.5)\",hidden:({showName})=>!showName},nameFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},hidden:({showName})=>!showName},namePadding:{type:ControlType.Number,title:\"Padding\",defaultValue:12,min:0,max:50,step:1,unit:\"px\",hidden:({showName})=>!showName},url:{type:ControlType.Link,title:\"URL\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageShadow\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageShadow.map"],"mappings":"0KAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,oBAAoB,CAAC,SAAO,eAAa,WAAS,OAAK,eAAa,YAAU,iBAAe,WAAS,cAAY,MAAI,SAAO,EAAY,EAAe,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,CAAO,EAAY,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,gBAAgB,OAAO,EAAM,IAAI,GAAG,eAAe,QAAQ,mBAAmB,SAAS,aAAa,GAAG,EAAa,IAAI,OAAO,QAAQ,EAAO,WAAW,iBAAiB,EAAE,EAAO,aAAa,IAAI,GAAG,QAAQ,EAAO,QAAQ,IAAI,UAAU,aAAa,EAAO,QAAQ,MAAM,EAAO,QAAQ,KAAK,OAAO,EAAE,CAAO,EAAW,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,aAAa,GAAG,EAAa,IAAI,OAAO,EAAE,CAAO,MAA0B,CAAC,IAAM,EAAK,CAAC,SAAS,WAAW,QAAQ,GAAG,EAAY,IAAI,aAAa,GAA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