{
  "mappings": "AAAA,YAAY,WAAW;AAqCvB,OAAO,iBAAS,eAAe,EAC7B,YACC;CACD,UAAU,MAAM;IACd,MAAM",
  "names": [],
  "sources": [
    "src/SeasonProvider.tsx"
  ],
  "version": 3,
  "sourcesContent": [
    "import type React from 'react'\nimport { useEffect } from 'react'\nimport { setTintFamily, type TintFamily } from './tints'\n\n// inline script that runs before hydration to set season class on html\n// auto-detects season from current date\nfunction getInlineScript() {\n  return `(function(){\n  var d = new Date();\n  var m = d.getMonth();\n  var day = d.getDate();\n  var season = 'tamagui';\n\n  if (m === 11 && day >= 14) season = 'xmas';\n  else if (m === 9 && day >= 20) season = 'halloween';\n  else if (m === 2 && day >= 10 && day <= 17) season = 'stpatricks';\n  else if (m === 2 && day >= 30 || m === 3 && day <= 20) season = 'easter';\n  else if (m === 1 && day >= 7 && day <= 14) season = 'valentine';\n  else if (m === 0 && day >= 20 || m === 1 && day <= 12) season = 'lunar';\n\n  if (season !== 'tamagui') {\n    document.documentElement.classList.add(season + '-season');\n  }\n  window.__TAMAGUI_SEASON__ = season;\n})();`\n}\n\n// syncs the tint family with the value computed by the inline script\nfunction useSeasonSync() {\n  useEffect(() => {\n    const computed = (window as any).__TAMAGUI_SEASON__ as TintFamily | undefined\n    if (computed) {\n      setTintFamily(computed)\n    }\n  }, [])\n}\n\nexport function SeasonProvider({\n  children,\n}: {\n  children: React.ReactNode\n}): React.ReactNode {\n  useSeasonSync()\n\n  return (\n    <>\n      {/* disabled because were launchig v2 and its lunar new year */}\n      {/* <script\n        suppressHydrationWarning\n        dangerouslySetInnerHTML={{\n          __html: getInlineScript(),\n        }}\n      /> */}\n      {children}\n    </>\n  )\n}\n"
  ]
}