{"version":3,"file":"Grid_Background.WonIntcY.mjs","names":[],"sources":["https:/framerusercontent.com/modules/oIKPDyBgFd5uRrKDdnhu/3IQgeejj1c7QUcEvnMO3/Grid_Background.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";// 1) Ensure BGGRID styles are injected once\nlet bgGridStylesInjected=false;function injectBgGridStyles(){if(bgGridStylesInjected)return;const style=document.createElement(\"style\");style.innerHTML=`\n      .bggrid {\n        position: absolute !important;\n        inset: 0 !important;\n        z-index: 0 !important;\n        height: 100% !important;\n        width: 100% !important;\n        background-color: white !important;\n        background-image: \n        linear-gradient(to right, #f0f0f0 1px, transparent 1px),\n        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px) !important;\n        background-size: 6rem 4rem !important;\n      }\n    `;document.head.appendChild(style);bgGridStylesInjected=true;}// 2) Higher-Order Component to add the 'bggrid' class\nexport function withClass(Component){const Wrapped=/*#__PURE__*/forwardRef((props,ref)=>{// Inject CSS on first mount\nuseEffect(()=>{injectBgGridStyles();},[]);// Append 'bggrid' to existing className\nconst className=[props.className,\"bggrid\"].filter(Boolean).join(\" \");return /*#__PURE__*/_jsx(Component,{ref:ref,...props,className:className});});Wrapped.displayName=`withClass(${Component.displayName||Component.name})`;return Wrapped;}\nexport const __FramerMetadata__ = {\"exports\":{\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Grid_Background.map"],"mappings":"yHAC+B,SAAS,GAAoB,CAAC,GAAG,EAAqB,OAAO,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,UAAU;;;;;;;;;;;;;MAalJ,SAAS,KAAK,YAAY,EAAM,CAAC,EAAqB,GAC5D,SAAgB,EAAU,EAAU,CAAC,IAAM,EAAqB,GAAY,EAAM,IAAM,CACxF,MAAc,CAAC,GAAoB,EAAG,EAAE,CAAC,CACzC,IAAM,EAAU,CAAC,EAAM,UAAU,SAAS,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI,CAAC,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAgB,YAAU,CAAC,EAAG,CAA2E,MAA1E,GAAQ,YAAY,aAAa,EAAU,aAAa,EAAU,KAAK,GAAU,qBAjBzL,IAAwC,CAC/E,EAAqB"}