{"version":3,"file":"ThemeImage.B8GGAUJS.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/6rRS4vCOna8rKtqAz2IJ/KnGHZpBNJJYhznFaB5da/ThemeImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";function useFramerTheme(){const[theme,setTheme]=useState(\"light\");useEffect(()=>{const getTheme=()=>document.body.getAttribute(\"data-framer-theme\")||(window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\");setTheme(getTheme());const observer=new MutationObserver(()=>setTheme(getTheme()));observer.observe(document.body,{attributes:true,attributeFilter:[\"data-framer-theme\"]});return()=>observer.disconnect();},[]);return theme;}export function withThemeLight(Component){return props=>{const theme=useFramerTheme();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:theme===\"light\"?undefined:\"none\"}});};}export function withThemeDark(Component){return props=>{const theme=useFramerTheme();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:theme===\"dark\"?undefined:\"none\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withThemeDark\":{\"type\":\"reactHoc\",\"name\":\"withThemeDark\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withThemeLight\":{\"type\":\"reactHoc\",\"name\":\"withThemeLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThemeImage.map"],"mappings":"kIAAiF,SAAS,GAAgB,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,QAAQ,CAAgX,OAA/W,MAAc,CAAC,IAAM,MAAa,SAAS,KAAK,aAAa,oBAAoB,GAAG,EAAO,WAAW,+BAA+B,CAAC,QAAQ,OAAO,SAAS,EAAS,GAAU,CAAC,CAAC,IAAM,EAAS,IAAI,qBAAqB,EAAS,GAAU,CAAC,CAAC,CAAyF,OAAxF,EAAS,QAAQ,SAAS,KAAK,CAAC,WAAW,GAAK,gBAAgB,CAAC,oBAAoB,CAAC,CAAC,KAAW,EAAS,YAAY,EAAG,EAAE,CAAC,CAAQ,EAAO,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAM,GAAgB,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,IAAQ,QAAQ,IAAA,GAAU,OAAO,CAAC,CAAC,EAAI,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAM,GAAgB,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,IAAQ,OAAO,IAAA,GAAU,OAAO,CAAC,CAAC,uBAA/2B,IAAsC"}