{"version":3,"file":"IsDarkMode.BCf_xbRd.mjs","names":["fonts","css","className","__legacyOverrideHOC_DataObserverContext","_jsx","React.useState"],"sources":["https:/framerusercontent.com/modules/dzRWY1gs5Q5AHIDcoBFv/uXhLYTrlQrmg923wFqN8/Bzr7k9U3H.js","https:/framerusercontent.com/modules/vcAqcIM64SNg16W0ZYKn/Y3fYL37F3FQl2QCsJE2w/ZvlUcOm5B.js","https:/framerusercontent.com/modules/ySyhWsrOTt9t9qvQdEws/kNXGG3lIylLp1KDKcgyd/IsDarkMode.js"],"sourcesContent":["// Generated by Framer (0f6ce29)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"__SystemDefault-400-normal__\"]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=['.framer-XKR39 .framer-styles-preset-14hcpek:not(.rich-text-wrapper), .framer-XKR39 .framer-styles-preset-14hcpek.rich-text-wrapper p { --framer-font-family: \"system-ui\", \"-apple-system\", \"BlinkMacSystemFont\", \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif, \"System Default\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 20px; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-02906b76-80aa-480c-9618-26428fe9fd26, rgba(0, 0, 0, 0.7)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-XKR39\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0f6ce29)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"__SystemDefault-400-normal__\"]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=['.framer-0Eqpe .framer-styles-preset-tthesd:not(.rich-text-wrapper), .framer-0Eqpe .framer-styles-preset-tthesd.rich-text-wrapper p { --framer-font-family: \"system-ui\", \"-apple-system\", \"BlinkMacSystemFont\", \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif, \"System Default\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 22px; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-02906b76-80aa-480c-9618-26428fe9fd26, rgba(0, 0, 0, 0.7)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-0Eqpe\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";// Immediately check the system's color scheme before initial render\nconst getInitialColorScheme=()=>{if(typeof window!==\"undefined\"){return window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\";}// Return a default theme or null if window is not defined\nreturn null// or 'light'/'dark' if you want to default to something specific\n;};// Custom hook to manage color scheme state\nconst useSystemColorScheme=()=>{const[colorScheme,setColorScheme]=React.useState(getInitialColorScheme);React.useEffect(()=>{// Ensure window is available before proceeding\nif(typeof window!==\"undefined\"){const mediaQuery=window.matchMedia(\"(prefers-color-scheme: dark)\");const updateColorScheme=e=>{setColorScheme(e.matches?\"dark\":\"light\");};mediaQuery.addListener(updateColorScheme);// Call updateColorScheme initially in case the preference changes before the component mounts\nupdateColorScheme(mediaQuery);return()=>mediaQuery.removeListener(updateColorScheme);}},[]);return colorScheme;};// Override function to switch between light and dark variants\nexport const ResponsiveTheme=props=>{const colorScheme=useSystemColorScheme();return{...props,variant:colorScheme===\"dark\"?\"Dark\":\"Light\"};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withResponsiveTheme(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ResponsiveTheme(props)});};}withResponsiveTheme.displayName=\"ResponsiveTheme\";\nexport const __FramerMetadata__ = {\"exports\":{\"withResponsiveTheme\":{\"type\":\"reactHoc\",\"name\":\"withResponsiveTheme\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ResponsiveTheme\":{\"type\":\"override\",\"name\":\"ResponsiveTheme\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IsDarkMode.map"],"mappings":"yNAC8B,GAAU,UAAU,CAAC,+BAA+B,CAAC,CAAcA,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,CAAcC,EAAI,CAAC,s2BAAs2B,CAAcC,EAAU,qCCAz/B,GAAU,UAAU,CAAC,+BAA+B,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,CAAc,EAAI,CAAC,o2BAAo2B,CAAc,EAAU,kBCMrvB,SAAgB,EAAoB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAgB,EAAM,CAAC,CAAC,6BAPta,IAA4B,IAOyN,CAN1R,MAAqC,IAAS,OAC7C,KADiE,EAAO,YAAY,EAAO,WAAW,+BAA+B,CAAC,QAAQ,OAAO,QAGtJ,MAAyB,CAAC,GAAK,CAAC,EAAY,GAAgBC,EAAe,EAAsB,CAEX,OAFY,MAAoB,CAC5H,GAAU,IAAS,OAAY,CAAC,IAAM,EAAW,EAAO,WAAW,+BAA+B,CAAO,EAAkB,GAAG,CAAC,EAAe,EAAE,QAAQ,OAAO,QAAQ,EACzI,OAD4I,EAAW,YAAY,EAAkB,CACnN,EAAkB,EAAW,KAAW,EAAW,eAAe,EAAkB,GAAI,EAAE,CAAC,CAAQ,GACtF,EAAgB,GAAO,CAAC,IAAM,EAAY,GAAsB,CAAC,MAAM,CAAC,GAAG,EAAM,QAAQ,IAAc,OAAO,OAAO,QAAQ,EAA2U,EAAoB,YAAY"}