{"version":3,"file":"PaperGrain.SN2OlDYQ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/QZB1XMbcrHtw1i0bQ7lZ/ZfJpA68egSWlmuaF1tiq/PaperGrain.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const svg=`<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='paperNoise'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(#paperNoise)'/></svg>`;const noiseUrl=`url(\"data:image/svg+xml,${encodeURIComponent(svg)}\")`;/**\n * Paper Grain — a fixed, site-wide paper texture overlay.\n * Sits above all content, never blocks clicks. Adjust Intensity to taste.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PaperGrain(props){const{intensity=.35,tile=180,blendMode=\"multiply\"}=props;if(RenderTarget.current()===RenderTarget.thumbnail)return null;const overlay={position:\"fixed\",inset:0,pointerEvents:\"none\",zIndex:2147483600,backgroundImage:noiseUrl,backgroundRepeat:\"repeat\",backgroundSize:`${tile}px ${tile}px`,opacity:intensity,mixBlendMode:blendMode};return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"div\",{style:overlay})});}addPropertyControls(PaperGrain,{intensity:{type:ControlType.Number,title:\"Intensity\",defaultValue:.35,min:0,max:1,step:.01},tile:{type:ControlType.Number,title:\"Grain Size\",defaultValue:180,min:60,max:400,step:10,unit:\"px\"},blendMode:{type:ControlType.Enum,title:\"Blend\",options:[\"multiply\",\"overlay\",\"soft-light\"],optionTitles:[\"Multiply\",\"Overlay\",\"Soft Light\"],defaultValue:\"multiply\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PaperGrain\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PaperGrain.map"],"mappings":"mKAMG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,IAAI,OAAK,IAAI,YAAU,YAAY,EAAM,GAAG,EAAa,SAAS,GAAG,EAAa,UAAU,OAAO,KAAK,IAAM,EAAQ,CAAC,SAAS,QAAQ,MAAM,EAAE,cAAc,OAAO,OAAO,WAAW,gBAAgB,EAAS,iBAAiB,SAAS,eAAe,GAAG,EAAK,KAAK,EAAK,IAAI,QAAQ,EAAU,aAAa,EAAU,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,CAAC,cAAc,OAAO,SAAsB,EAAK,MAAM,CAAC,MAAM,EAAQ,CAAC,CAAC,CAAC,oBANhe,IAAiE,CAA8T,EAAS,kbAM0F,EAAoB,EAAW,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,IAAI,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,KAAK,KAAK,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,QAAQ,QAAQ,CAAC,WAAW,UAAU,aAAa,CAAC,aAAa,CAAC,WAAW,UAAU,aAAa,CAAC,aAAa,WAAW,CAAC,CAAC"}