{"version":3,"file":"PrintTexture.Ch-u8UPT.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/0lZXLtPIZAhVNhCMssYg/pTdR8XXxcsgN9yMQzFvx/PrintTexture.js"],"sourcesContent":["// Framer Code Component: Gritty Print Effects\n// Drop this file into your Framer project and assign each override as needed\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// 1. Grunge Button Style Override\nexport function GrungeButton(){return{style:{backgroundImage:'url(\"https://www.transparenttextures.com/patterns/dark-mosaic.png\")',backgroundColor:\"#000\",color:\"#fff\",fontFamily:\"'IBM Plex Mono', monospace\",letterSpacing:\"1px\",padding:\"12px 24px\",border:\"none\",textTransform:\"uppercase\",position:\"relative\",overflow:\"hidden\"},whileHover:{scale:1.03,rotate:\"-0.4deg\"}};}// 2. Inject Global SVG Grunge Filter\nexport function InjectGrungeSVGFilter(){useEffect(()=>{const svgDefs=`\n            <svg width=\"0\" height=\"0\" xmlns=\"http://www.w3.org/2000/svg\">\n                <filter id=\"grunge\">\n                    <feTurbulence type=\"fractalNoise\" baseFrequency=\"0.9\" numOctaves=\"2\" result=\"noise\" />\n                    <feDisplacementMap in=\"SourceGraphic\" in2=\"noise\" scale=\"3\" />\n                </filter>\n            </svg>\n        `;const div=document.createElement(\"div\");div.innerHTML=svgDefs;document.body.appendChild(div);},[]);return{};}// 3. Apply Grunge Filter to SVG or Icons\nexport function ApplyGrungeToSVG(){return{style:{filter:\"url(#grunge)\"}};}// 4. Printed Typography Effect\nexport function PrintedText(){useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n            .print-text {\n                font-family: 'Geist Mono', monospace;\n                color: #111;\n                letter-spacing: 0.5px;\n                text-shadow:\n                    0.4px 0 red,\n                    0 0.4px blue,\n                    -0.4px 0 green;\n                filter: contrast(1.1) brightness(0.95);\n                animation: printWiggle 0.2s infinite alternate;\n                position: relative;\n            }\n\n            .print-text::after {\n                content: \"\";\n                position: absolute;\n                top: 0; left: 0;\n                width: 100%; height: 100%;\n                background-image: url(\"https://www.transparenttextures.com/patterns/asfalt-dark.png\");\n                opacity: 0.1;\n                pointer-events: none;\n                mix-blend-mode: multiply;\n            }\n\n            @keyframes printWiggle {\n                0%   { transform: translate(0px, 0px) rotate(0.1deg); }\n                100% { transform: translate(-0.4px, 0.3px) rotate(-0.1deg); }\n            }\n        `;document.head.appendChild(style);},[]);return{className:\"print-text\"};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withGrungeButton(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...GrungeButton(props)});};}withGrungeButton.displayName=\"GrungeButton\";export function withInjectGrungeSVGFilter(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...InjectGrungeSVGFilter(props)});};}withInjectGrungeSVGFilter.displayName=\"InjectGrungeSVGFilter\";export function withApplyGrungeToSVG(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ApplyGrungeToSVG(props)});};}withApplyGrungeToSVG.displayName=\"ApplyGrungeToSVG\";export function withPrintedText(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...PrintedText(props)});};}withPrintedText.displayName=\"PrintedText\";\nexport const __FramerMetadata__ = {\"exports\":{\"withApplyGrungeToSVG\":{\"type\":\"reactHoc\",\"name\":\"withApplyGrungeToSVG\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInjectGrungeSVGFilter\":{\"type\":\"reactHoc\",\"name\":\"withInjectGrungeSVGFilter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGrungeButton\":{\"type\":\"reactHoc\",\"name\":\"withGrungeButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"InjectGrungeSVGFilter\":{\"type\":\"override\",\"name\":\"InjectGrungeSVGFilter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ApplyGrungeToSVG\":{\"type\":\"override\",\"name\":\"ApplyGrungeToSVG\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PrintedText\":{\"type\":\"override\",\"name\":\"PrintedText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GrungeButton\":{\"type\":\"override\",\"name\":\"GrungeButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPrintedText\":{\"type\":\"reactHoc\",\"name\":\"withPrintedText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrintTexture.map"],"mappings":"qKAGA,SAAgB,GAAc,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,sEAAsE,gBAAgB,OAAO,MAAM,OAAO,WAAW,6BAA6B,cAAc,MAAM,QAAQ,YAAY,OAAO,OAAO,cAAc,YAAY,SAAS,WAAW,SAAS,SAAS,CAAC,WAAW,CAAC,MAAM,KAAK,OAAO,UAAU,CAAC,CAC/W,SAAgB,GAAuB,CAOsE,OAPrE,MAAc,CAAC,IAOvC,EAAI,SAAS,cAAc,MAAM,CAAC,EAAI,UAAU;;;;;;;UAAQ,SAAS,KAAK,YAAY,EAAI,EAAG,EAAE,CAAC,CAAO,EAAE,CACrH,SAAgB,GAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CACxE,SAAgB,GAAa,CA6BoB,OA7BnB,MAAc,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6B/F,SAAS,KAAK,YAAY,EAAM,EAAG,EAAE,CAAC,CAAO,CAAC,UAAU,aAAa,CAAqJ,SAAgB,EAAiB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAa,EAAM,CAA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