{"version":3,"file":"Keli.BCVRHuTj.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xUeuLaJiv3qDccrV9aJ5/jdaYPG9XIRoNSwGVCTGb/Keli.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function GrainBackground(props){const{dotColor,backgroundSize,dotSize,opacity,blendMode,maskFadeDirection,useMask}=props;const gradientDirection=maskFadeDirection===\"topToBottom\"?\"to bottom\":maskFadeDirection===\"bottomToTop\"?\"to top\":maskFadeDirection===\"leftToRight\"?\"to right\":\"to left\";const maskStyle=useMask?{WebkitMaskImage:`linear-gradient(${gradientDirection}, rgba(0,0,0,0), rgba(0,0,0,1))`,maskImage:`linear-gradient(${gradientDirection}, rgba(0,0,0,0), rgba(0,0,0,1))`}:{};return /*#__PURE__*/_jsx(Frame,{width:\"100%\",height:\"100%\",style:{background:`radial-gradient(circle, ${dotColor} ${dotSize}px, transparent ${dotSize}px)`,backgroundSize:`${backgroundSize}px ${backgroundSize}px`,opacity,mixBlendMode:blendMode,pointerEvents:\"none\",...maskStyle}});}addPropertyControls(GrainBackground,{dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"rgba(0, 0, 0, 0.12)\"},backgroundSize:{type:ControlType.Number,title:\"Spacing\",min:2,max:100,defaultValue:8},dotSize:{type:ControlType.Number,title:\"Dot Size\",min:.5,max:10,step:.1,defaultValue:1},opacity:{type:ControlType.Number,title:\"Opacity\",min:0,max:1,step:.01,defaultValue:1},blendMode:{type:ControlType.Enum,title:\"Blend Mode\",options:[\"normal\",\"overlay\",\"multiply\",\"screen\",\"darken\",\"lighten\"],optionTitles:[\"Normal\",\"Overlay\",\"Multiply\",\"Screen\",\"Darken\",\"Lighten\"],defaultValue:\"overlay\"},useMask:{type:ControlType.Boolean,title:\"Use Mask\",defaultValue:true},maskFadeDirection:{type:ControlType.Enum,title:\"Mask Direction\",options:[\"topToBottom\",\"bottomToTop\",\"leftToRight\",\"rightToLeft\"],optionTitles:[\"Top to Bottom\",\"Bottom to Top\",\"Left to Right\",\"Right to Left\"],defaultValue:\"topToBottom\",hidden(props){return props.useMask===false;}}});\nexport const __FramerMetadata__ = {\"exports\":{\"GrainBackground\":{\"type\":\"reactComponent\",\"name\":\"GrainBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Keli.map"],"mappings":"4OAAqG,SAAgB,EAAgB,EAAM,CAAC,GAAK,CAAC,WAAS,iBAAe,UAAQ,UAAQ,YAAU,oBAAkB,UAAQ,CAAC,EAAY,EAAkB,IAAoB,cAAc,YAAY,IAAoB,cAAc,SAAS,IAAoB,cAAc,WAAW,UAAgB,EAAU,EAAQ,CAAC,iBAAiB,kBAAkB,EAAkB,iCAAiC,WAAW,kBAAkB,EAAkB,gCAAiC,EAAC,CAAE,EAAC,MAAoB,GAAK,EAAM,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,CAAC,YAAY,0BAA0B,EAAS,GAAG,EAAQ,kBAAkB,EAAQ,KAAK,kBAAkB,EAAe,KAAK,EAAe,IAAI,UAAQ,aAAa,EAAU,cAAc,OAAO,GAAG,CAAU,CAAC,EAAC,AAAE,cAAA,AAAz2B,GAA2C,IAA0D,CAAowB,EAAoB,EAAgB,CAAC,SAAS,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,aAAa,qBAAsB,EAAC,eAAe,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,IAAI,EAAE,IAAI,IAAI,aAAa,CAAE,EAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,aAAa,CAAE,EAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,aAAa,CAAE,EAAC,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,aAAa,QAAQ,C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