{"version":3,"file":"userCookie.x2bi_Bit.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/66vbsCSAdkrxB4hLedxg/SyNjwWu666L2wrBOHsq4/userCookie.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";// Change these to match your variant names\nconst VARIANTS={loggedIn:\"loggedIn\",loggedOut:\"loggedOut\"};const checkUserInfoCookie=()=>{// Check if we're in a browser environment\nif(typeof document===\"undefined\")return false;return document.cookie.split(\"; \").some(row=>row.startsWith(\"userInfo=\"));};export const withUserAwareVariant=Component=>{return props=>{const[hasUserInfo,setHasUserInfo]=useState(null);useEffect(()=>{setHasUserInfo(checkUserInfoCookie());},[]);if(hasUserInfo===null){return null;}return /*#__PURE__*/_jsx(Component,{...props,variant:hasUserInfo?VARIANTS.loggedIn:VARIANTS.loggedOut});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withUserAwareVariant\":{\"type\":\"reactHoc\",\"name\":\"withUserAwareVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./userCookie.map"],"mappings":"gJAA2C,IAAsC,CAC3E,EAAS,CAAC,SAAS,WAAW,UAAU,YAAY,CAAO,MAC9D,OAAO,SAAW,IAAmB,GAAa,SAAS,OAAO,MAAM,KAAK,CAAC,KAAK,GAAK,EAAI,WAAW,YAAY,CAAC,CAAgB,EAAqB,GAAmB,GAAO,CAAC,GAAK,CAAC,EAAY,GAAgBA,EAAS,KAAK,CAAgG,OAA/F,MAAc,CAAC,EAAe,GAAqB,CAAC,EAAG,EAAE,CAAC,CAAI,IAAc,KAAa,KAA0B,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,EAAS,SAAS,EAAS,UAAU,CAAC"}