{"version":3,"file":"SignupRefRedirect.CPVz0Hch.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/TkVvjzTiozQlqPO0LYAQ/ADs9PZxxOxXUIfFIdQE0/SignupRefRedirect.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withRefRedirect(Component){return props=>{const[href,setHref]=useState(\"\");useEffect(()=>{if(typeof window!==\"undefined\"){// Now we are in the client, window object is safe to use\nvar queryString=window.location.search.replace(\"?\",\"\");setHref(\"https://auth.buildbetter.app/realms/buildbetter/protocol/openid-connect/registrations?client_id=buildbetter&response_type=code&scope=openid&redirect_uri=https://app.buildbetter.app&kc_locale=EN\"+\"&\"+queryString);}},[])// Empty dependency array ensures this runs once on mount\n;return /*#__PURE__*/_jsx(Component,{...props,href:href});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRefRedirect\":{\"type\":\"reactHoc\",\"name\":\"withRefRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SignupRefRedirect.map"],"mappings":"2MAAiF,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,GAAG,CAE1K,OAF2K,MAAc,CAAC,GAAU,IAAS,OAAY,CAC1N,IAAI,EAAY,EAAO,SAAS,OAAO,QAAQ,IAAI,GAAG,CAAC,EAAQ,qMAAwM,EAAY,GAAI,EAAE,CAAC,CACrQ,EAAK,EAAU,CAAC,GAAG,EAAW,OAAK,CAAC,uBAFd,IAAsC"}