{"version":3,"file":"ProgressiveBlur.CFZd7ugK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1keb8jrPP2ol9uQqYdMO/MjWks9IlALblTwl8mUCt/ProgressiveBlur.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicHeight 200\n * @framerIntrinsicWidth 200\n */export default function ProgressiveBlur({blurAmount=8,blurDirection=\"up\",radius=0,topLeft,topRight,bottomRight,bottomLeft,isMixed=false,...style}){const borderRadius=isMixed?`${topLeft}px ${topRight}px ${bottomRight}px ${bottomLeft}px`:`${radius}px`;const generateMaskGradient=direction=>{switch(direction){case\"up\":return`linear-gradient(to top, black, transparent)`;case\"right\":return`linear-gradient(to right, black, transparent)`;case\"down\":return`linear-gradient(to bottom, black, transparent)`;case\"left\":return`linear-gradient(to left, black, transparent)`;default:return`none`;}};const progressiveBlurStyle={backdropFilter:`blur(${blurAmount}px)`,borderRadius:borderRadius,WebkitMaskImage:generateMaskGradient(blurDirection),...style};return /*#__PURE__*/_jsx(\"div\",{style:progressiveBlurStyle});}ProgressiveBlur.displayName=\"ProgressiveBlur\";addPropertyControls(ProgressiveBlur,{blurAmount:{type:ControlType.Number,title:\"Blur\",min:0,max:100,step:2,defaultValue:8},blurDirection:{type:ControlType.Enum,title:\"Direction\",defaultValue:\"up\",options:[\"up\",\"right\",\"down\",\"left\"],optionTitles:[\"↑\",\"→\",\"↓\",\"←\"],displaySegmentedControl:true},radius:{type:ControlType.FusedNumber,title:\"Radius\",defaultValue:0,toggleKey:\"isMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeft\",\"topRight\",\"bottomRight\",\"bottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0,description:\"Large blur values can impact performance\"}});// Set default properties for border radius\nProgressiveBlur.defaultProps={radius:0,isMixed:false,topLeft:0,topRight:0,bottomRight:0,bottomLeft:0};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgressiveBlur\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgressiveBlur.map"],"mappings":"iOAKG,SAAwB,EAAgB,CAAC,aAAW,EAAE,gBAAc,KAAK,SAAO,EAAE,UAAQ,WAAS,cAAY,aAAW,WAAQ,EAAM,GAAG,EAAM,CAAC,CAAC,IAAM,EAAa,KAAW,EAAQ,KAAK,EAAS,KAAK,EAAY,KAAK,EAAW,OAAO,EAAO,IAAU,EAAqB,GAAW,CAAC,OAAO,EAAP,CAAkB,IAAI,KAAK,MAAA,8CAAoD,IAAI,QAAQ,MAAA,gDAAsD,IAAI,OAAO,MAAA,iDAAuD,IAAI,OAAO,MAAA,+CAAqD,QAAQ,MAAA,MAAc,CAAC,EAAO,EAAqB,CAAC,gBAAgB,OAAO,EAAW,KAAkB,eAAa,gBAAgB,EAAqB,EAAc,CAAC,GAAG,CAAM,EAAC,MAAoB,GAAK,MAAM,CAAC,MAAM,CAAqB,EAAC,AAAE,cACxyB,AANA,GAA2C,IAAoD,CAKysB,EAAgB,YAAY,kBAAkB,EAAoB,EAAgB,CAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,aAAa,CAAE,EAAC,cAAc,CAAC,KAAK,EAAY,KAAK,MAAM,YAAY,aAAa,KAAK,QAAQ,CAAC,KAAK,QAAQ,OAAO,MAAO,EAAC,aAAa,CAAC,IAAI,IAAI,IAAI,GAAI,EAAC,yBAAwB,CAAK,EAAC,OAAO,CAAC,KAAK,EAAY,YAAY,MAAM,SAAS,aAAa,EAAE,UAAU,UAAU,aAAa,CAAC,MAAM,YAAa,EAAC,UAAU,CAAC,UAAU,WAAW,cAAc,YAAa,EAAC,YAAY,CAAC,KAAK,KAAK,KAAK,IAAK,EAAC,IAAI,EAAE,YAAY,0CAA2C,CAAC,EAAC,CACl5C,EAAgB,aAAa,CAAC,OAAO,EAAE,SAAQ,EAAM,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,CAAE"}