{"version":3,"file":"useBreakpoint.BfRA9QGc.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/pgq6qMh5fOttR9LXtLNS/bwWqdy0Gj6pdFgqIKHDy/useBreakpoint.js"],"sourcesContent":["import{useEffect,useState}from\"react\";import{BREAKPOINT}from\"https://framerusercontent.com/modules/1VwocatbFhWtgmcnhxSy/mN21nupnJUaU4603SKpy/tokens.js\";function tierFromWidth(w){if(w<BREAKPOINT.desktopS)return\"mobile\";if(w<BREAKPOINT.desktopM)return\"desktopS\";if(w<BREAKPOINT.desktopL)return\"desktopM\";return\"desktopL\";}export function useBreakpoint(){const[tier,setTier]=useState(()=>typeof window===\"undefined\"?\"desktopS\":tierFromWidth(window.innerWidth));useEffect(()=>{if(typeof window===\"undefined\")return;const update=()=>setTier(tierFromWidth(window.innerWidth));update();window.addEventListener(\"resize\",update);return()=>window.removeEventListener(\"resize\",update);},[]);return tier;}\nexport const __FramerMetadata__ = {\"exports\":{\"Tier\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useBreakpoint\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8KAAwJ,SAAS,EAAc,EAAE,CAA6H,OAAzH,EAAE,EAAW,SAAe,SAAY,EAAE,EAAW,SAAe,WAAc,EAAE,EAAW,SAAe,WAAiB,UAAW,CAAC,SAAgB,GAAe,CAAC,GAAK,CAAC,EAAK,GAASA,MAAoB,IAAS,OAAY,WAAW,EAAc,EAAO,UAAU,CAAC,EAAgO,OAA9N,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAW,EAAQ,EAAc,EAAO,UAAU,CAAC,EAAoD,OAAlD,EAAO,EAAE,EAAO,iBAAiB,SAAS,CAAM,MAAY,EAAO,oBAAoB,SAAS,CAAM,CAAE,EAAE,CAAC,CAAC,EAAS,CAAK,qBAA/oB,IAAkH"}