{"version":3,"file":"Switch.yWcQkUpo.mjs","names":["serializationHash","variantClassNames","transition1","Transition","React.useContext","React.useMemo","Variants","React.Fragment","getProps","createLayoutDependency","useRef","React.useId","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useState"],"sources":["https:/framerusercontent.com/modules/3iUxHGCaZd1vwfX4bkse/kkqgaSBoMvldC495114s/E4Vq6ohha.js","https:/framerusercontent.com/modules/cL31ro20ypsC52okdOxT/chImccsaxfkArPPO5m1O/Ei1fKKSgn.js","https:/framerusercontent.com/modules/jyU1mUeNur2U16JZLbZl/3sVhkajYjoV3uPXTFkTV/Switch.js"],"sourcesContent":["// Generated by Framer (dc53115)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"Me5xxgc9B\",\"O0CJWcETk\"];const serializationHash=\"framer-CxA1g\";const variantClassNames={Me5xxgc9B:\"framer-v-lwy7ak\",O0CJWcETk:\"framer-v-jcm0uc\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.1,delay:0,duration:.3,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Dark:\"O0CJWcETk\",Light:\"Me5xxgc9B\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"Me5xxgc9B\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Me5xxgc9B\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap7s1oa=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});setVariant(\"O0CJWcETk\");});const onTap1ltso9c=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});setVariant(\"Me5xxgc9B\");});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-lwy7ak\",className,classNames),\"data-border\":true,\"data-framer-name\":\"Light\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"Me5xxgc9B\",onTap:onTap7s1oa,ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-90411400-ef69-44d2-836d-be42135a52d9, rgb(240, 240, 240))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",borderBottomLeftRadius:64,borderBottomRightRadius:64,borderTopLeftRadius:64,borderTopRightRadius:64,...style},...addPropertyOverrides({O0CJWcETk:{\"data-framer-name\":\"Dark\",onTap:onTap1ltso9c}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1bz040o\",\"data-framer-name\":\"Highlight\",layoutDependency:layoutDependency,layoutId:\"peqFNmOx3\",children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-dhv9vx\",\"data-framer-name\":\"sun-icon-16px\",layout:\"position\",layoutDependency:layoutDependency,layoutId:\"m0TBpPBBR\",opacity:1,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16 16\"><g><path d=\"M 0 16 L 0 0 L 16 0 L 16 16 Z\" fill=\"transparent\"></path><path d=\"M 5.333 8 C 5.333 8.707 5.614 9.386 6.114 9.886 C 6.615 10.386 7.293 10.667 8 10.667 C 8.707 10.667 9.386 10.386 9.886 9.886 C 10.386 9.386 10.667 8.707 10.667 8 C 10.667 7.293 10.386 6.614 9.886 6.114 C 9.386 5.614 8.707 5.333 8 5.333 C 7.293 5.333 6.615 5.614 6.114 6.114 C 5.614 6.614 5.333 7.293 5.333 8 Z\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"var(--token-ae8026d2-c7ed-4105-9095-dc9a35b73cd4, rgb(30, 30, 40))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path><path d=\"M 2 8 L 2.667 8 M 8 2 L 8 2.667 M 13.333 8 L 14 8 M 8 13.333 L 8 14 M 3.733 3.733 L 4.2 4.2 M 12.267 3.733 L 11.8 4.2 M 11.8 11.8 L 12.267 12.267 M 4.2 11.8 L 3.733 12.267\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"var(--token-ae8026d2-c7ed-4105-9095-dc9a35b73cd4, rgb(30, 30, 40))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>',svgContentId:11968413515,withExternalLayout:true,...addPropertyOverrides({O0CJWcETk:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16 16\"><g><path d=\"M 0 16 L 0 0 L 16 0 L 16 16 Z\" fill=\"transparent\"></path><path d=\"M 5.333 8 C 5.333 8.707 5.614 9.386 6.114 9.886 C 6.615 10.386 7.293 10.667 8 10.667 C 8.707 10.667 9.386 10.386 9.886 9.886 C 10.386 9.386 10.667 8.707 10.667 8 C 10.667 7.293 10.386 6.614 9.886 6.114 C 9.386 5.614 8.707 5.333 8 5.333 C 7.293 5.333 6.615 5.614 6.114 6.114 C 5.614 6.614 5.333 7.293 5.333 8 Z\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"var(--token-306da892-a07e-4fe2-9423-a93b7d81c036, rgb(255, 255, 255))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path><path d=\"M 2 8 L 2.667 8 M 8 2 L 8 2.667 M 13.333 8 L 14 8 M 8 13.333 L 8 14 M 3.733 3.733 L 4.2 4.2 M 12.267 3.733 L 11.8 4.2 M 11.8 11.8 L 12.267 12.267 M 4.2 11.8 L 3.733 12.267\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"var(--token-306da892-a07e-4fe2-9423-a93b7d81c036, rgb(255, 255, 255))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>',svgContentId:9350265961}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(SVG,{className:\"framer-led1ni\",\"data-framer-name\":\"moon-icon-16px\",layout:\"position\",layoutDependency:layoutDependency,layoutId:\"UHujASd1G\",opacity:1,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16 16\"><g><path d=\"M 0 16 L 0 0 L 16 0 L 16 16 Z\" fill=\"transparent\"></path><path d=\"M 8.237 2.005 C 8.329 2.005 8.42 2.005 8.51 2.005 C 7.619 2.801 7.047 3.872 6.892 5.031 C 6.737 6.191 7.01 7.366 7.663 8.352 C 8.315 9.339 9.307 10.074 10.464 10.43 C 11.622 10.787 12.873 10.741 14 10.303 C 13.567 11.306 12.858 12.177 11.95 12.823 C 11.043 13.469 9.969 13.866 8.845 13.972 C 7.721 14.077 6.588 13.887 5.568 13.422 C 4.547 12.957 3.677 12.235 3.05 11.331 C 2.423 10.428 2.063 9.378 2.007 8.293 C 1.952 7.208 2.204 6.129 2.737 5.171 C 3.27 4.213 4.062 3.412 5.031 2.854 C 6 2.295 7.108 2 8.237 2 Z\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"var(--token-306da892-a07e-4fe2-9423-a93b7d81c036, rgb(255, 255, 255))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>',svgContentId:9163262485,withExternalLayout:true,...addPropertyOverrides({O0CJWcETk:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16 16\"><g><path d=\"M 0 16 L 0 0 L 16 0 L 16 16 Z\" fill=\"transparent\"></path><path d=\"M 8.237 2.005 C 8.329 2.005 8.42 2.005 8.51 2.005 C 7.619 2.801 7.047 3.872 6.892 5.031 C 6.737 6.191 7.01 7.366 7.663 8.352 C 8.315 9.339 9.307 10.074 10.464 10.43 C 11.622 10.787 12.873 10.741 14 10.303 C 13.567 11.306 12.858 12.177 11.95 12.823 C 11.043 13.469 9.969 13.866 8.845 13.972 C 7.721 14.077 6.588 13.887 5.568 13.422 C 4.547 12.957 3.677 12.235 3.05 11.331 C 2.423 10.428 2.063 9.378 2.007 8.293 C 1.952 7.208 2.204 6.129 2.737 5.171 C 3.27 4.213 4.062 3.412 5.031 2.854 C 6 2.295 7.108 2 8.237 2 Z\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"var(--token-ae8026d2-c7ed-4105-9095-dc9a35b73cd4, rgb(30, 30, 40))\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></g></svg>',svgContentId:12709929142}},baseVariant,gestureVariant)})]}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1niujmr\",\"data-framer-name\":\"Highlight\",layoutDependency:layoutDependency,layoutId:\"h2wKizFdN\",style:{backgroundColor:\"var(--token-ae8026d2-c7ed-4105-9095-dc9a35b73cd4, rgb(30, 30, 40))\",borderBottomLeftRadius:64,borderBottomRightRadius:64,borderTopLeftRadius:64,borderTopRightRadius:64}})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-CxA1g.framer-dx0duu, .framer-CxA1g .framer-dx0duu { display: block; }\",\".framer-CxA1g.framer-lwy7ak { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; height: 40px; justify-content: flex-end; overflow: hidden; padding: 8px 12px 8px 12px; position: relative; width: 78px; will-change: var(--framer-will-change-override, transform); }\",\".framer-CxA1g .framer-1bz040o { align-content: center; align-items: center; display: flex; flex: 1 0 0px; flex-direction: row; flex-wrap: nowrap; height: 28px; justify-content: space-between; overflow: visible; padding: 0px; position: relative; width: 1px; z-index: 2; }\",\".framer-CxA1g .framer-dhv9vx, .framer-CxA1g .framer-led1ni { flex: none; height: 16px; position: relative; width: 16px; }\",\".framer-CxA1g .framer-1niujmr { flex: none; height: 28px; overflow: visible; position: absolute; right: 6px; top: calc(50.00000000000002% - 28px / 2); width: 28px; z-index: 1; }\",\".framer-CxA1g.framer-v-jcm0uc.framer-lwy7ak { justify-content: flex-start; }\",\".framer-CxA1g.framer-v-jcm0uc .framer-1bz040o { order: 0; }\",\".framer-CxA1g.framer-v-jcm0uc .framer-1niujmr { left: 6px; order: 1; right: unset; }\",'.framer-CxA1g[data-border=\"true\"]::after, .framer-CxA1g [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 78\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"O0CJWcETk\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerE4Vq6ohha=withCSS(Component,css,\"framer-CxA1g\");export default FramerE4Vq6ohha;FramerE4Vq6ohha.displayName=\"Theme Switch\";FramerE4Vq6ohha.defaultProps={height:40,width:78};addPropertyControls(FramerE4Vq6ohha,{variant:{options:[\"Me5xxgc9B\",\"O0CJWcETk\"],optionTitles:[\"Light\",\"Dark\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerE4Vq6ohha,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerE4Vq6ohha\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"78\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"O0CJWcETk\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"40\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./E4Vq6ohha.map","// Generated by Framer (808fccf)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,cx,Link,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-E341u\";const variantClassNames={JN2zhWbj_:\"framer-v-1stj13r\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"JN2zhWbj_\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:{webPageId:\"augiA20Il\"},motionChild:true,nodeId:\"JN2zhWbj_\",scopeId:\"Ei1fKKSgn\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-1stj13r\",className,classNames)} framer-1nkcb8b`,\"data-framer-name\":\"Logo\",layoutDependency:layoutDependency,layoutId:\"JN2zhWbj_\",ref:refBinding,style:{rotate:-22,...style}})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-E341u.framer-1nkcb8b, .framer-E341u .framer-1nkcb8b { display: block; }\",\".framer-E341u.framer-1stj13r { align-content: flex-start; align-items: flex-start; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: flex-start; min-height: 38px; min-width: 54px; overflow: visible; padding: 0px; position: relative; text-decoration: none; width: min-content; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 38\n * @framerIntrinsicWidth 54\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerEi1fKKSgn=withCSS(Component,css,\"framer-E341u\");export default FramerEi1fKKSgn;FramerEi1fKKSgn.displayName=\"Logo\";FramerEi1fKKSgn.defaultProps={height:38,width:54};addFonts(FramerEi1fKKSgn,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerEi1fKKSgn\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"54\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"38\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Ei1fKKSgn.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";function getOSTheme(){if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){return window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: light)\").matches?\"light\":\"light\";}return\"light\";}function setInitialState(){const osTheme=getOSTheme();const currentToggleState=localStorage.getItem(\"currentToggleState\")||(osTheme===\"light\"?\"light\":\"light\");localStorage.setItem(\"currentToggleState\",currentToggleState);if(typeof document!==\"undefined\"){const styleTag=document.getElementsByTagName(\"style\")[0];const newCSS=styleTag.innerHTML.replace(/prefers-color-scheme: \\w+/,`prefers-color-scheme: ${currentToggleState===\"light\"&&osTheme===\"light\"||currentToggleState===\"light\"&&osTheme===\"light\"?\"dark\":\"light\"}`);styleTag.innerHTML=newCSS;}return currentToggleState===\"light\";}export function themeSwictherBasedOnSystem(Component){return props=>{const[isOn,setIsOn]=useState(setInitialState());const toggle=()=>{const newToggleState=!isOn?\"light\":\"light\";setIsOn(!isOn);localStorage.setItem(\"currentToggleState\",newToggleState);if(typeof window!==\"undefined\"){window.dispatchEvent(new CustomEvent(\"themeChange\"));}};useEffect(()=>{if(typeof window!==\"undefined\"){const mediaQuery=window.matchMedia(\"(prefers-color-scheme: dark)\");mediaQuery.addListener(e=>{const newTheme=e.matches?\"light\":\"light\";localStorage.setItem(\"currentOsTheme\",newTheme);localStorage.setItem(\"currentToggleState\",newTheme);setIsOn(newTheme===\"light\");if(typeof document!==\"undefined\"){const styleTag=document.getElementsByTagName(\"style\")[0];const newCSS=styleTag.innerHTML.replace(/prefers-color-scheme: \\w+/,`prefers-color-scheme: ${newTheme===\"light\"&&newTheme===\"ligh\"||newTheme===\"light\"&&newTheme===\"light\"?\"light\":\"light\"}`);styleTag.innerHTML=newCSS;}window.dispatchEvent(new CustomEvent(\"themeChange\"));});}},[]);useEffect(()=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){const currentToggleState=isOn?\"light\":\"light\";const currentOsTheme=localStorage.getItem(\"currentOsTheme\")||getOSTheme();const styleTag=document.getElementsByTagName(\"style\")[0];const newCSS=styleTag.innerHTML.replace(/prefers-color-scheme: \\w+/,`prefers-color-scheme: ${currentToggleState===\"ligh\"&&currentOsTheme===\"light\"||currentToggleState===\"light\"&&currentOsTheme===\"light\"?\"light\":\"light\"}`);styleTag.innerHTML=newCSS;localStorage.setItem(\"currentToggleState\",currentToggleState);}},[isOn]);const[isClient,setIsClient]=useState(false);useEffect(()=>{setIsClient(true);},[]);return /*#__PURE__*/_jsx(Component,{...props,onClick:toggle});};}\nexport const __FramerMetadata__ = {\"exports\":{\"themeSwictherBasedOnSystem\":{\"type\":\"reactHoc\",\"name\":\"themeSwictherBasedOnSystem\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Switch.map"],"mappings":"wrBAC6e,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAA5lB,IAAwJ,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,CAAOA,EAAkB,eAAqBC,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,CAA8LC,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAOC,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOS,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAASP,EAAS,EAAO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