{"version":3,"file":"GrainOverlay.O2el0Vhp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xzNs8Anc5005Y4cXpu2r/Whvb2GeAK5rtxXvVAasO/GrainOverlay.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Fine film grain over the whole page plus a faint warm stage glow behind the\n * content, so the black never reads as flat. Place inside a fixed, full-screen,\n * pointer-events-off frame. Pure SVG noise — no image download.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GrainOverlay(props){const{opacity=.16,scale=180,blend=\"overlay\",glow=true,glowColor=\"rgba(242, 184, 75, 0.12)\"}=props;const svg=`<svg xmlns='http://www.w3.org/2000/svg' width='${scale}' height='${scale}'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.85  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>`;const url=`url(\"data:image/svg+xml;utf8,${encodeURIComponent(svg)}\")`;return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:\"100%\",height:\"100%\",pointerEvents:\"none\",overflow:\"hidden\"},children:[glow?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:`radial-gradient(ellipse 70% 55% at 50% 38%, ${glowColor} 0%, rgba(0,0,0,0) 70%)`}}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:url,backgroundSize:`${scale}px ${scale}px`,opacity,mixBlendMode:blend}})]});}addPropertyControls(GrainOverlay,{opacity:{type:ControlType.Number,title:\"Grain\",defaultValue:.16,min:0,max:.6,step:.01},scale:{type:ControlType.Number,title:\"Grain size\",defaultValue:180,min:60,max:400,unit:\"px\"},blend:{type:ControlType.Enum,title:\"Blend\",options:[\"overlay\",\"soft-light\",\"screen\",\"normal\"],optionTitles:[\"Overlay\",\"Soft light\",\"Screen\",\"Normal\"],defaultValue:\"overlay\"},glow:{type:ControlType.Boolean,title:\"Stage glow\",defaultValue:true},glowColor:{type:ControlType.Color,title:\"Glow color\",defaultValue:\"rgba(242, 184, 75, 0.12)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GrainOverlay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GrainOverlay.map"],"mappings":"8JAOG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,IAAI,QAAM,IAAI,QAAM,UAAU,OAAK,GAAK,YAAU,4BAA4B,EAAY,EAAI,kDAAkD,EAAM,YAAY,EAAM,+SAAqT,EAAI,gCAAgC,mBAAmB,CAAG,EAAE,IAAI,OAAoB,EAAM,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,cAAc,OAAO,SAAS,QAAQ,EAAE,SAAS,CAAC,EAAkB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,WAAW,+CAA+C,EAAU,wBAAwB,CAAC,CAAC,EAAE,KAAkB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,gBAAgB,EAAI,eAAe,GAAG,EAAM,KAAK,EAAM,IAAI,UAAQ,aAAa,CAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBAP9/B,IAAoD,EAO28B,EAAoB,EAAa,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,EAAE,IAAI,GAAG,KAA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