{"version":3,"sources":["../src/preferences/ThGlobalPreferencesContext.ts","../src/preferences/hooks/useGlobalPreferences.ts"],"names":[],"mappings":";;;AAUO,IAAM,0BAAA,GAA6B,cAAoD,IAAI;ACL3F,IAAM,uBAAuB,MAAM;AACxC,EAAA,MAAM,OAAA,GAAU,WAAW,0BAA0B,CAAA;AACrD,EAAA,IAAI,CAAC,OAAA,EAAS,MAAM,IAAI,MAAM,wEAAwE,CAAA;AACtG,EAAA,OAAO,OAAA;AACT","file":"chunk-AE6P4KJB.mjs","sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\nimport { ThGlobalPreferences } from \"./globalPreferences\";\n\nexport interface GlobalPreferencesContextValue {\n  preferences: ThGlobalPreferences;\n  updatePreferences: (prefs: ThGlobalPreferences) => void;\n}\n\nexport const ThGlobalPreferencesContext = createContext<GlobalPreferencesContextValue | null>(null);\n","\"use client\";\n\nimport { useContext } from \"react\";\nimport { ThGlobalPreferencesContext } from \"../ThGlobalPreferencesContext\";\n\nexport const useGlobalPreferences = () => {\n  const context = useContext(ThGlobalPreferencesContext);\n  if (!context) throw new Error(\"useGlobalPreferences must be used within a ThGlobalPreferencesProvider\");\n  return context;\n};\n"]}