{"version":3,"file":"PaperGrain.CtBGIMCS.mjs","names":["__esmMin","init_jsx_runtime","c","RenderTarget","init_framer_BpuvUAiZ","useIsStaticRenderer","ControlType","addPropertyControls","PaperGrain","style","NOISE","scale","init_PaperGrain","freq"],"sources":["https:/framerusercontent.com/modules/pHjUkZh5J3HquZQZQVQ2/5npEeY3lio7m18jv3qsp/PaperGrain.js"],"sourcesContent":["// Paper grain: a fixed, full-screen noise overlay that gives the whole site the tooth of cream\n// paper. Generated from an inline SVG turbulence filter (no image request), pointer-events none.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";const NOISE=freq=>`url(\"data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='${freq}' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>`)}\")`;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PaperGrain({opacity=.05,scale=.85,style}){const isStatic=useIsStaticRenderer();// On the canvas a fixed overlay only covers the first screen, so it is shown on the live site only.\nif(isStatic||RenderTarget.current()===RenderTarget.canvas)return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{...style,width:0,height:0}});return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{...style,position:\"fixed\",inset:0,zIndex:9998,pointerEvents:\"none\",opacity,backgroundImage:NOISE(scale),backgroundSize:\"220px 220px\",mixBlendMode:\"multiply\"}});}addPropertyControls(PaperGrain,{opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.05,min:0,max:.2,step:.01},scale:{type:ControlType.Number,title:\"Grain\",defaultValue:.85,min:.3,max:1.5,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PaperGrain\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PaperGrain.map"],"mappings":"A,4KAKG,SAAwBQ,EAAW,CAAC,UAAQ,IAAI,QAAM,IAAI,SAAO,CAC6E,OAD7DH,EAC1E,GAAGF,EAAa,QAAQ,IAAIA,EAAa,OAA2B,gBAAK,MAAM,CAAC,cAAc,GAAK,MAAM,CAAC,GAAGM,EAAM,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAsB,gBAAK,MAAM,CAAC,cAAc,GAAK,MAAM,CAAC,GAAGA,EAAM,SAAS,QAAQ,MAAM,EAAE,OAAO,KAAK,cAAc,OAAO,UAAQ,gBAAgBC,EAAMC,CAAK,EAAE,eAAe,cAAc,aAAa,UAAU,CAAC,CAAC,CAAE,C,4CAJrO,EAAM,GAAM,gCAAgC,mBAAmB,oIAAoIE,EAAK,uJAAuJ,EAAE,IAI3HN,EAAoBC,EAAW,CAAC,QAAQ,CAAC,KAAKF,EAAY,OAAO,MAAM,UAAU,aAAa,IAAI,IAAI,EAAE,IAAI,GAAG,KAAK,GAAG,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,C"}