{"version":3,"file":"Hide_Waitlist_Form.DoNsR-w_.mjs","names":[],"sources":["https:/framerusercontent.com/modules/IDle05pCLJHqFtG31GKl/MsSdgB7GzVu9Ho9ezF1G/Hide_Waitlist_Form.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withHideOnExistingUser(Component){return props=>{const[isVisible,setIsVisible]=useState(true);useEffect(()=>{const urlParams=new URLSearchParams(window.location.search);const user=urlParams.get(\"user\");setIsVisible(user!==\"existing\");},[]);return isVisible?/*#__PURE__*/_jsx(Component,{...props}):null;};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHideOnExistingUser\":{\"type\":\"reactHoc\",\"name\":\"withHideOnExistingUser\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hide_Waitlist_Form.map"],"mappings":"8JAAwF,SAAS,EAAuB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,GAAK,CAAC,EAAU,EAAa,CAAC,GAAS,EAAK,CAAmJ,MAAlJ,GAAU,IAAI,CAA6D,IAAtD,EAAU,IAAI,gBAAgB,EAAO,SAAS,QAAc,EAAK,EAAU,IAAI,OAAO,CAAC,EAAa,IAAO,WAAW,AAAE,EAAC,CAAE,EAAC,CAAQ,EAAuB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,CAAC,IAAM,CAAE,cAEpW,IAF9C,GAA2C,IAAsC"}