{"version":3,"file":"PaperTexture.DAW98R2g.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Fl55yvJRfVYYjtnK4JsT/GFLu1ebYu4uTMjDvIq8D/PaperTexture.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";const STYLE_ID=\"ehi-paper-noise-style\";const noiseSvg=`\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"220\" height=\"220\">\n    <filter id=\"noise\">\n        <feTurbulence\n            type=\"fractalNoise\"\n            baseFrequency=\"0.75\"\n            numOctaves=\"3\"\n            seed=\"17\"\n            stitchTiles=\"stitch\"\n        />\n        <feColorMatrix\n            type=\"matrix\"\n            values=\"\n                0 0 0 0 0.28\n                0 0 0 0 0.24\n                0 0 0 0 0.18\n                0 0 0 0.16 0\n            \"\n        />\n    </filter>\n\n    <rect\n        width=\"100%\"\n        height=\"100%\"\n        filter=\"url(#noise)\"\n    />\n</svg>\n`;const noiseUrl=`url(\"data:image/svg+xml,${encodeURIComponent(noiseSvg)}\")`;export function PaperTexture(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{if(document.getElementById(STYLE_ID))return;const style=document.createElement(\"style\");style.id=STYLE_ID;style.textContent=`\n                [data-paper-texture=\"true\"] {\n                    position: relative;\n                    isolation: isolate;\n                }\n\n                [data-paper-texture=\"true\"]::before {\n                    content: \"\";\n                    position: absolute;\n                    inset: 0;\n\n                    background-image: ${noiseUrl};\n                    background-repeat: repeat;\n                    background-size: 290px 290px;\n\n                    opacity: 0.80;\n                    mix-blend-mode: exclusion;\n\n                    pointer-events: none;\n                    border-radius: inherit;\n\n                    z-index: -1;\n                }\n            `;document.head.appendChild(style);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,\"data-paper-texture\":\"true\"});});}\nexport const __FramerMetadata__ = {\"exports\":{\"PaperTexture\":{\"type\":\"reactHoc\",\"name\":\"PaperTexture\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PaperTexture.map"],"mappings":"yHA2B6E,SAAgB,EAAa,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CAAC,GAAG,SAAS,eAAe,CAAQ,EAAE,OAAO,IAAM,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,EAAS,EAAM,YAAY;;;;;;;;;;;wCAWrQ,EAAS;;;;;;;;;;;;cAYnC,SAAS,KAAK,YAAY,CAAK,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,qBAAqB,MAAM,CAAC,EAAG,CAAE,qBAlDjG,IAAwC,EAAO,EAAS,wBA2B1F,EAAS"}