{"version":3,"file":"Grain.B9CD1Cb5.mjs","names":["useId"],"sources":["https:/framerusercontent.com/modules/AbXaShMXn0S74AeZYwKS/doMXvBqGEtM3sviCs1Nr/Grain.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useId}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Film-grain texture overlay. Pointer-events disabled: never blocks clicks.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function Grain(props){const{opacity=.05,frequency=.8,blend=\"overlay\"}=props;const id=useId().replace(/[^a-zA-Z0-9]/g,\"\");return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:\"100%\",height:\"100%\",pointerEvents:\"none\",overflow:\"hidden\",mixBlendMode:blend,opacity},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"100%\",height:\"100%\",style:{display:\"block\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsxs(\"filter\",{id:\"g\"+id,children:[/*#__PURE__*/_jsx(\"feTurbulence\",{type:\"fractalNoise\",baseFrequency:frequency,numOctaves:2,stitchTiles:\"stitch\"}),/*#__PURE__*/_jsx(\"feColorMatrix\",{type:\"saturate\",values:\"0\"})]}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",filter:`url(#g${id})`})]})});}addPropertyControls(Grain,{opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.05,min:0,max:.3,step:.01},frequency:{type:ControlType.Number,title:\"Frequency\",defaultValue:.8,min:.1,max:2,step:.05},blend:{type:ControlType.Enum,title:\"Blend\",defaultValue:\"overlay\",options:[\"overlay\",\"soft-light\",\"multiply\",\"normal\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Grain\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Grain.map"],"mappings":"iLAKG,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,UAAQ,IAAI,YAAU,GAAG,QAAM,WAAW,EAAY,EAAGA,EAAM,CAAC,CAAC,QAAQ,gBAAgB,EAAE,EAAE,OAAoB,EAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,cAAc,OAAO,SAAS,SAAS,aAAa,EAAM,SAAO,EAAE,SAAsB,EAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,CAAC,QAAQ,QAAQ,MAAM,OAAO,OAAO,MAAM,EAAE,SAAS,CAAc,EAAM,SAAS,CAAC,GAAG,IAAI,EAAG,SAAS,CAAc,EAAK,eAAe,CAAC,KAAK,eAAe,cAAc,EAAU,WAAW,EAAE,YAAY,QAAQ,CAAC,EAAe,EAAK,gBAAgB,CAAC,KAAK,WAAW,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,SAAS,EAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBALprB,IAAyB,IAAoD,EAKwmB,EAAoB,EAAM,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,IAAI,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,EAAE,MAAM,CAAC,KAAK,EAAY,KAAK,MAAM,QAAQ,aAAa,UAAU,QAAQ,CAAC,UAAU,aAAa,WAAW,QAAQ,CAAC,CAAC,CAAC"}