{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/UvCVZPXIAP5LkrBPs3Y9/UHZnceaGmtFq3O8GTtcc/wV5HQP1of.js", "ssg:https://framerusercontent.com/modules/lUCU1bhp7WlHu53o4DrJ/oFv3xlqlL9EFd0U7Ey8D/Dark_mode_Toggle.js"],
  "sourcesContent": ["// Generated by Framer (51f36d1)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{themeSwicther}from\"https://framerusercontent.com/modules/lUCU1bhp7WlHu53o4DrJ/oFv3xlqlL9EFd0U7Ey8D/Dark_mode_Toggle.js\";const MotionDivWithFX=withFX(motion.div);const MotionDivThemeSwicther=themeSwicther(motion.div);const cycleOrder=[\"Km6k7AcIv\",\"yKxLdsu57\"];const serializationHash=\"framer-sUoDb\";const variantClassNames={Km6k7AcIv:\"framer-v-1295m8c\",yKxLdsu57:\"framer-v-xahk4w\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:23,delay:0,mass:1,stiffness:672,type:\"spring\"};const transition2={delay:0,duration:10,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value!==null&&value!==void 0?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:\"yKxLdsu57\",light:\"Km6k7AcIv\"};const getProps=({click,height,id,width,...props})=>{var _humanReadableVariantMap_props_variant,_ref;return{...props,variant:(_ref=(_humanReadableVariantMap_props_variant=humanReadableVariantMap[props.variant])!==null&&_humanReadableVariantMap_props_variant!==void 0?_humanReadableVariantMap_props_variant:props.variant)!==null&&_ref!==void 0?_ref:\"Km6k7AcIv\",VsjZxj9a2:click!==null&&click!==void 0?click:props.VsjZxj9a2};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,VsjZxj9a2,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Km6k7AcIv\",variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapzicph=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(VsjZxj9a2){const res=await VsjZxj9a2(...args);if(res===false)return false;}setVariant(\"yKxLdsu57\");});const onTap5539c7=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(VsjZxj9a2){const res=await VsjZxj9a2(...args);if(res===false)return false;}setVariant(\"Km6k7AcIv\");});const ref1=React.useRef(null);const defaultLayoutId=React.useId();const sharedStyleClassNames=[];const componentViewport=useComponentViewport();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(MotionDivThemeSwicther,{...restProps,...gestureHandlers,className:cx(serializationHash,...sharedStyleClassNames,\"framer-1295m8c\",className,classNames),\"data-border\":true,\"data-framer-name\":\"light\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"Km6k7AcIv\",onTap:onTapzicph,ref:ref!==null&&ref!==void 0?ref:ref1,style:{\"--border-bottom-width\":\"1.5px\",\"--border-color\":\"var(--token-e85b3d33-80cf-4a32-b725-6dea2122ed22, rgb(126, 126, 151))\",\"--border-left-width\":\"1.5px\",\"--border-right-width\":\"1.5px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1.5px\",backdropFilter:\"blur(10px)\",backgroundColor:\"var(--token-0f618b6c-d661-4c07-a2d4-4bd3e17e4926, rgba(0, 0, 0, 0.8))\",borderBottomLeftRadius:46,borderBottomRightRadius:46,borderTopLeftRadius:46,borderTopRightRadius:46,WebkitBackdropFilter:\"blur(10px)\",...style},...addPropertyOverrides({yKxLdsu57:{\"data-framer-name\":\"dark\",onTap:onTap5539c7}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-nkkjnr\",\"data-framer-name\":\"Frame 30\",layoutDependency:layoutDependency,layoutId:\"I11zwJQVQ\",style:{backgroundColor:\"rgb(255, 179, 79)\",borderBottomLeftRadius:32,borderBottomRightRadius:32,borderTopLeftRadius:32,borderTopRightRadius:32},variants:{yKxLdsu57:{backgroundColor:\"rgb(64, 89, 255)\"}},children:[/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-1e63qev\",\"data-framer-name\":\"Sun\",layoutDependency:layoutDependency,layoutId:\"Nw9plBvJ7\",children:/*#__PURE__*/_jsx(SVG,{className:\"framer-7bmwfk\",\"data-framer-name\":\"SunDim\",layout:\"position\",layoutDependency:layoutDependency,layoutId:\"YruoPncVE\",opacity:1,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 12 12\"><path d=\"M 5.625 1.875 L 5.625 1.5 C 5.625 1.401 5.665 1.305 5.735 1.235 C 5.805 1.165 5.901 1.125 6 1.125 C 6.099 1.125 6.195 1.165 6.265 1.235 C 6.335 1.305 6.375 1.401 6.375 1.5 L 6.375 1.875 C 6.375 1.974 6.335 2.07 6.265 2.14 C 6.195 2.21 6.099 2.25 6 2.25 C 5.901 2.25 5.805 2.21 5.735 2.14 C 5.665 2.07 5.625 1.974 5.625 1.875 Z M 9 6 C 9 6.593 8.824 7.173 8.494 7.667 C 8.165 8.16 7.696 8.545 7.148 8.772 C 6.6 8.999 5.997 9.058 5.415 8.942 C 4.833 8.827 4.298 8.541 3.879 8.121 C 3.459 7.702 3.173 7.167 3.058 6.585 C 2.942 6.003 3.001 5.4 3.228 4.852 C 3.455 4.304 3.84 3.835 4.333 3.506 C 4.827 3.176 5.407 3 6 3 C 6.795 3.001 7.558 3.317 8.12 3.88 C 8.683 4.442 8.999 5.205 9 6 Z M 8.25 6 C 8.25 5.555 8.118 5.12 7.871 4.75 C 7.624 4.38 7.272 4.092 6.861 3.921 C 6.45 3.751 5.998 3.706 5.561 3.793 C 5.125 3.88 4.724 4.094 4.409 4.409 C 4.094 4.724 3.88 5.125 3.793 5.561 C 3.706 5.998 3.751 6.45 3.921 6.861 C 4.092 7.272 4.38 7.624 4.75 7.871 C 5.12 8.118 5.555 8.25 6 8.25 C 6.597 8.249 7.168 8.012 7.59 7.59 C 8.012 7.168 8.249 6.597 8.25 6 Z M 2.735 3.265 C 2.805 3.336 2.9 3.375 3 3.375 C 3.1 3.375 3.195 3.336 3.265 3.265 C 3.336 3.195 3.375 3.1 3.375 3 C 3.375 2.9 3.336 2.805 3.265 2.735 L 2.89 2.36 C 2.82 2.289 2.725 2.25 2.625 2.25 C 2.525 2.25 2.43 2.289 2.36 2.36 C 2.289 2.43 2.25 2.525 2.25 2.625 C 2.25 2.725 2.289 2.82 2.36 2.89 Z M 2.735 8.735 L 2.36 9.11 C 2.289 9.18 2.25 9.275 2.25 9.375 C 2.25 9.475 2.289 9.57 2.36 9.64 C 2.43 9.711 2.525 9.75 2.625 9.75 C 2.725 9.75 2.82 9.711 2.89 9.64 L 3.265 9.265 C 3.3 9.23 3.328 9.189 3.347 9.144 C 3.365 9.098 3.375 9.049 3.375 9 C 3.375 8.951 3.365 8.902 3.347 8.856 C 3.328 8.811 3.3 8.77 3.265 8.735 C 3.23 8.7 3.189 8.672 3.144 8.653 C 3.098 8.635 3.049 8.625 3 8.625 C 2.951 8.625 2.902 8.635 2.856 8.653 C 2.811 8.672 2.77 8.7 2.735 8.735 Z M 9 3.375 C 9.049 3.375 9.098 3.365 9.144 3.347 C 9.189 3.328 9.23 3.3 9.265 3.265 L 9.64 2.89 C 9.711 2.82 9.75 2.725 9.75 2.625 C 9.75 2.525 9.711 2.43 9.64 2.36 C 9.57 2.289 9.475 2.25 9.375 2.25 C 9.275 2.25 9.18 2.289 9.11 2.36 L 8.735 2.735 C 8.682 2.787 8.646 2.854 8.632 2.927 C 8.617 3 8.625 3.075 8.653 3.144 C 8.682 3.212 8.73 3.271 8.792 3.312 C 8.853 3.353 8.926 3.375 9 3.375 Z M 9.265 8.735 C 9.195 8.664 9.1 8.625 9 8.625 C 8.9 8.625 8.805 8.664 8.735 8.735 C 8.664 8.805 8.625 8.9 8.625 9 C 8.625 9.1 8.664 9.195 8.735 9.265 L 9.11 9.64 C 9.145 9.675 9.186 9.703 9.231 9.722 C 9.277 9.741 9.326 9.75 9.375 9.75 C 9.424 9.75 9.473 9.741 9.519 9.722 C 9.564 9.703 9.605 9.675 9.64 9.64 C 9.675 9.605 9.703 9.564 9.722 9.519 C 9.741 9.473 9.75 9.424 9.75 9.375 C 9.75 9.326 9.741 9.277 9.722 9.231 C 9.703 9.186 9.675 9.145 9.64 9.11 Z M 1.875 5.625 L 1.5 5.625 C 1.401 5.625 1.305 5.665 1.235 5.735 C 1.165 5.805 1.125 5.901 1.125 6 C 1.125 6.099 1.165 6.195 1.235 6.265 C 1.305 6.335 1.401 6.375 1.5 6.375 L 1.875 6.375 C 1.974 6.375 2.07 6.335 2.14 6.265 C 2.21 6.195 2.25 6.099 2.25 6 C 2.25 5.901 2.21 5.805 2.14 5.735 C 2.07 5.665 1.974 5.625 1.875 5.625 Z M 6 9.75 C 5.901 9.75 5.805 9.79 5.735 9.86 C 5.665 9.93 5.625 10.025 5.625 10.125 L 5.625 10.5 C 5.625 10.6 5.665 10.695 5.735 10.765 C 5.805 10.835 5.901 10.875 6 10.875 C 6.099 10.875 6.195 10.835 6.265 10.765 C 6.335 10.695 6.375 10.6 6.375 10.5 L 6.375 10.125 C 6.375 10.025 6.335 9.93 6.265 9.86 C 6.195 9.79 6.099 9.75 6 9.75 Z M 10.5 5.625 L 10.125 5.625 C 10.025 5.625 9.93 5.665 9.86 5.735 C 9.79 5.805 9.75 5.901 9.75 6 C 9.75 6.099 9.79 6.195 9.86 6.265 C 9.93 6.335 10.025 6.375 10.125 6.375 L 10.5 6.375 C 10.6 6.375 10.695 6.335 10.765 6.265 C 10.835 6.195 10.875 6.099 10.875 6 C 10.875 5.901 10.835 5.805 10.765 5.735 C 10.695 5.665 10.6 5.625 10.5 5.625 Z\" fill=\"var(--token-a9acb0f6-2ce8-4ed2-8639-ad749cbd9420, rgb(0, 0, 0))\"></path></svg>',svgContentId:9487813124,withExternalLayout:true})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-6w0p5o\",\"data-framer-name\":\"moon\",layoutDependency:layoutDependency,layoutId:\"NEKU316me\",children:/*#__PURE__*/_jsx(SVG,{className:\"framer-1v45gbu\",\"data-framer-name\":\"Moon\",layout:\"position\",layoutDependency:layoutDependency,layoutId:\"KyU6GorJ8\",opacity:1,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 12 12\"><path d=\"M 10.947 6.667 C 10.899 6.619 10.838 6.585 10.772 6.568 C 10.706 6.552 10.637 6.553 10.572 6.573 C 9.857 6.79 9.097 6.808 8.372 6.626 C 7.647 6.444 6.986 6.069 6.458 5.541 C 5.929 5.013 5.554 4.351 5.373 3.626 C 5.191 2.902 5.209 2.142 5.425 1.427 C 5.445 1.361 5.447 1.292 5.431 1.226 C 5.414 1.16 5.38 1.099 5.332 1.051 C 5.284 1.003 5.223 0.969 5.157 0.952 C 5.091 0.936 5.021 0.938 4.956 0.958 C 3.968 1.261 3.1 1.868 2.476 2.692 C 1.931 3.416 1.598 4.278 1.515 5.181 C 1.433 6.084 1.604 6.992 2.009 7.803 C 2.414 8.614 3.037 9.296 3.808 9.773 C 4.579 10.249 5.468 10.501 6.375 10.5 C 7.432 10.503 8.462 10.159 9.305 9.521 C 10.13 8.898 10.737 8.03 11.04 7.041 C 11.059 6.976 11.061 6.907 11.045 6.841 C 11.029 6.775 10.995 6.715 10.947 6.667 Z M 8.854 8.922 C 8.06 9.521 7.076 9.812 6.085 9.742 C 5.093 9.673 4.159 9.247 3.456 8.544 C 2.753 7.841 2.327 6.908 2.258 5.916 C 2.188 4.924 2.479 3.94 3.078 3.146 C 3.467 2.631 3.971 2.214 4.549 1.927 C 4.516 2.158 4.5 2.392 4.5 2.625 C 4.501 3.918 5.015 5.157 5.929 6.071 C 6.843 6.985 8.082 7.499 9.375 7.5 C 9.609 7.5 9.842 7.483 10.074 7.45 C 9.787 8.029 9.369 8.533 8.854 8.922 Z\" fill=\"var(--token-a9acb0f6-2ce8-4ed2-8639-ad749cbd9420, rgb(0, 0, 0))\"></path></svg>',svgContentId:9792484759,withExternalLayout:true,...addPropertyOverrides({yKxLdsu57:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 12 12\"><path d=\"M 10.947 6.667 C 10.899 6.619 10.838 6.585 10.772 6.568 C 10.706 6.552 10.637 6.553 10.572 6.573 C 9.857 6.79 9.097 6.808 8.372 6.626 C 7.647 6.444 6.986 6.069 6.458 5.541 C 5.929 5.013 5.554 4.351 5.373 3.626 C 5.191 2.902 5.209 2.142 5.425 1.427 C 5.445 1.361 5.447 1.292 5.431 1.226 C 5.414 1.16 5.38 1.099 5.332 1.051 C 5.284 1.003 5.223 0.969 5.157 0.952 C 5.091 0.936 5.021 0.938 4.956 0.958 C 3.968 1.261 3.1 1.868 2.476 2.692 C 1.931 3.416 1.598 4.278 1.515 5.181 C 1.433 6.084 1.604 6.992 2.009 7.803 C 2.414 8.614 3.037 9.296 3.808 9.773 C 4.579 10.249 5.468 10.501 6.375 10.5 C 7.432 10.503 8.462 10.159 9.305 9.521 C 10.13 8.898 10.737 8.03 11.04 7.041 C 11.059 6.976 11.061 6.907 11.045 6.841 C 11.029 6.775 10.995 6.715 10.947 6.667 Z M 8.854 8.922 C 8.06 9.521 7.076 9.812 6.085 9.742 C 5.093 9.673 4.159 9.247 3.456 8.544 C 2.753 7.841 2.327 6.908 2.258 5.916 C 2.188 4.924 2.479 3.94 3.078 3.146 C 3.467 2.631 3.971 2.214 4.549 1.927 C 4.516 2.158 4.5 2.392 4.5 2.625 C 4.501 3.918 5.015 5.157 5.929 6.071 C 6.843 6.985 8.082 7.499 9.375 7.5 C 9.609 7.5 9.842 7.483 10.074 7.45 C 9.787 8.029 9.369 8.533 8.854 8.922 Z\" fill=\"var(--token-b8aadef6-e56f-4ecc-aeae-01dd50f34fef, rgb(255, 255, 255)) /* {&quot;name&quot;:&quot;WHITE&quot;} */\"></path></svg>',svgContentId:8944133754}},baseVariant,gestureVariant)})})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-sUoDb.framer-1vi8o4r, .framer-sUoDb .framer-1vi8o4r { display: block; }\",\".framer-sUoDb.framer-1295m8c { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: flex-start; overflow: hidden; padding: 5px 4px 5px 4px; position: relative; width: 56px; will-change: var(--framer-will-change-override, transform); }\",\".framer-sUoDb .framer-nkkjnr { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 24px; justify-content: flex-start; overflow: hidden; padding: 6px; position: relative; width: 24px; will-change: var(--framer-will-change-override, transform); }\",\".framer-sUoDb .framer-1e63qev, .framer-sUoDb .framer-6w0p5o { flex: none; height: 12px; overflow: visible; position: relative; width: 12px; }\",\".framer-sUoDb .framer-7bmwfk, .framer-sUoDb .framer-1v45gbu { flex: none; height: 12px; left: calc(50.00000000000002% - 12px / 2); position: absolute; top: calc(50.00000000000002% - 12px / 2); width: 12px; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-sUoDb.framer-1295m8c, .framer-sUoDb .framer-nkkjnr { gap: 0px; } .framer-sUoDb.framer-1295m8c > * { margin: 0px; margin-left: calc(0px / 2); margin-right: calc(0px / 2); } .framer-sUoDb.framer-1295m8c > :first-child, .framer-sUoDb .framer-nkkjnr > :first-child { margin-left: 0px; } .framer-sUoDb.framer-1295m8c > :last-child, .framer-sUoDb .framer-nkkjnr > :last-child { margin-right: 0px; } .framer-sUoDb .framer-nkkjnr > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } }\",\".framer-sUoDb.framer-v-xahk4w.framer-1295m8c, .framer-sUoDb.framer-v-xahk4w .framer-nkkjnr { justify-content: flex-end; }\",'.framer-sUoDb[data-border=\"true\"]::after, .framer-sUoDb [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 34\n * @framerIntrinsicWidth 56\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"yKxLdsu57\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"VsjZxj9a2\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramerwV5HQP1of=withCSS(Component,css,\"framer-sUoDb\");export default FramerwV5HQP1of;FramerwV5HQP1of.displayName=\"Dark mode Toggle\";FramerwV5HQP1of.defaultProps={height:34,width:56};addPropertyControls(FramerwV5HQP1of,{variant:{options:[\"Km6k7AcIv\",\"yKxLdsu57\"],optionTitles:[\"light\",\"dark\"],title:\"Variant\",type:ControlType.Enum},VsjZxj9a2:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerwV5HQP1of,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerwV5HQP1of\",\"slots\":[],\"annotations\":{\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"yKxLdsu57\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"56\",\"framerIntrinsicHeight\":\"34\",\"framerVariables\":\"{\\\"VsjZxj9a2\\\":\\\"click\\\"}\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./wV5HQP1of.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";//SET THE DEFAULT THEME HERE\nfunction getDefaultTheme(){return\"dark\"//SET IT TO \"dark\" OR \"light\"\n;}function setInitialState(){const storedTheme=localStorage.getItem(\"currentToggleState\");if(storedTheme!==null){return storedTheme===\"dark\";}const defaultTheme=getDefaultTheme();const currentToggleState=defaultTheme===\"dark\";localStorage.setItem(\"currentToggleState\",currentToggleState?\"dark\":\"light\");if(typeof document!==\"undefined\"){const styleTag=document.getElementsByTagName(\"style\")[0];const newCSS=styleTag.innerHTML.replace(/prefers-color-scheme: \\w+/,`prefers-color-scheme: ${currentToggleState&&defaultTheme===\"dark\"||!currentToggleState&&defaultTheme===\"light\"?\"dark\":\"light\"}`);styleTag.innerHTML=newCSS;}return!currentToggleState;}export function themeSwicther(Component){return props=>{const[isOn,setIsOn]=useState(setInitialState());const toggle=()=>{const newToggleState=!isOn?\"dark\":\"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?\"dark\":\"light\";localStorage.setItem(\"defaultTheme\",newTheme);localStorage.setItem(\"currentToggleState\",newTheme);setIsOn(newTheme===\"dark\");if(typeof document!==\"undefined\"){const styleTag=document.getElementsByTagName(\"style\")[0];const newCSS=styleTag.innerHTML.replace(/prefers-color-scheme: \\w+/,`prefers-color-scheme: ${newTheme===\"dark\"&&newTheme===\"dark\"||newTheme===\"light\"&&newTheme===\"light\"?\"dark\":\"light\"}`);styleTag.innerHTML=newCSS;}window.dispatchEvent(new CustomEvent(\"themeChange\"));});}},[]);useEffect(()=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){const currentToggleState=isOn?\"dark\":\"light\";const defaultTheme=localStorage.getItem(\"defaultTheme\")||getDefaultTheme();const styleTag=document.getElementsByTagName(\"style\")[0];const newCSS=styleTag.innerHTML.replace(/prefers-color-scheme: \\w+/,`prefers-color-scheme: ${currentToggleState===\"dark\"&&defaultTheme===\"dark\"||currentToggleState===\"light\"&&defaultTheme===\"light\"?\"dark\":\"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\":{\"themeSwicther\":{\"type\":\"reactHoc\",\"name\":\"themeSwicther\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dark_mode_Toggle.map"],
  "mappings": "iSAAAA,ICAAC,IACA,SAASC,GAAiB,CAAC,MAAM,MAChC,CAAC,SAASC,IAAiB,CAAC,IAAMC,EAAY,aAAa,QAAQ,oBAAoB,EAAE,GAAGA,IAAc,KAAM,OAAOA,IAAc,OAAQ,IAAMC,EAAaH,EAAgB,EAAQI,EAAmBD,IAAe,OAAoF,GAA7E,aAAa,QAAQ,qBAAqBC,EAAmB,OAAO,OAAO,EAAK,OAAO,SAAW,IAAY,CAAC,IAAMC,EAAS,SAAS,qBAAqB,OAAO,EAAE,CAAC,EAAQC,EAAOD,EAAS,UAAU,QAAQ,4BAA4B,yBAAyBD,GAAoBD,IAAe,QAAQ,CAACC,GAAoBD,IAAe,QAAQ,OAAO,OAAO,EAAE,EAAEE,EAAS,UAAUC,CAAO,CAAC,MAAM,CAACF,CAAmB,CAAQ,SAASG,EAAcC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAKC,CAAO,EAAEC,EAASX,GAAgB,CAAC,EAAQY,EAAO,IAAI,CAAC,IAAMC,EAAgBJ,EAAY,QAAP,OAAeC,EAAQ,CAACD,CAAI,EAAE,aAAa,QAAQ,qBAAqBI,CAAc,EAAK,OAAO,OAAS,KAAa,OAAO,cAAc,IAAI,YAAY,aAAa,CAAC,CAAG,EAAEC,EAAU,IAAI,CAAI,OAAO,OAAS,KAA8B,OAAO,WAAW,8BAA8B,EAAa,YAAYC,GAAG,CAAC,IAAMC,EAASD,EAAE,QAAQ,OAAO,QAAqI,GAA7H,aAAa,QAAQ,eAAeC,CAAQ,EAAE,aAAa,QAAQ,q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Q,EAAE,IAAI,uzCAAuzC,aAAa,WAAW,mBAAmB,GAAK,GAAGlD,EAAqB,CAAC,UAAU,CAAC,IAAI,w2CAAw2C,aAAa,UAAU,CAAC,EAAEyC,EAAYI,CAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,EAAQuB,GAAI,CAAC,kFAAkF,kFAAkF,4VAA4V,qUAAqU,gJAAgJ,kNAAkN,ilBAAilB,4HAA4H,+bAA+b,EASj+cC,EAAgBC,EAAQxC,GAAUsC,GAAI,cAAc,EAASG,GAAQF,EAAgBA,EAAgB,YAAY,mBAAmBA,EAAgB,aAAa,CAAC,OAAO,GAAG,MAAM,EAAE,EAAEG,EAAoBH,EAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,WAAW,EAAE,aAAa,CAAC,QAAQ,MAAM,EAAE,MAAM,UAAU,KAAKI,EAAY,IAAI,EAAE,UAAU,CAAC,MAAM,QAAQ,KAAKA,EAAY,YAAY,CAAC,CAAC,EAAEC,EAASL,EAAgB,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,6BAA6B,EAAI,CAAC",
  "names": ["init_ssg_sandbox_shims", "init_ssg_sandbox_shims", "getDefaultTheme", "setInitialState", "storedTheme", "defaultTheme", "currentToggleState", "styleTag", "newCSS", "themeSwicther", "Component", "props", "isOn", "setIsOn", "ye", "toggle", "newToggleState", "ue", "e", "newTheme", "isClient", "setIsClient", "p", "MotionDivWithFX", "withFX", "motion", "MotionDivThemeSwicther", "themeSwicther", "cycleOrder", "serializationHash", "variantClassNames", "addPropertyOverrides", "overrides", "variants", "nextOverrides", "variant", "transition1", "transition2", "animation", "Transition", "value", "children", "config", "re", "MotionConfigContext", "transition", "contextValue", "se", "p", "Variants", "x", "humanReadableVariantMap", "getProps", "click", "height", "id", "width", "props", "_humanReadableVariantMap_props_variant", "_ref", "createLayoutDependency", "Component", "Y", "ref", "activeLocale", "setLocale", "useLocaleInfo", "style", "className", "layoutId", "VsjZxj9a2", "restProps", "baseVariant", "classNames", "clearLoadingGesture", "gestureHandlers", "gestureVariant", "isLoading", "setGestureState", "setVariant", "useVariantState", "layoutDependency", "activeVariantCallback", "delay", "useActiveVariantCallback", "onTapzicph", "args", "onTap5539c7", "ref1", "pe", "defaultLayoutId", "ae", "sharedStyleClassNames", "componentViewport", "useComponentViewport", "LayoutGroup", "cx", "u", "SVG", "css", "FramerwV5HQP1of", "withCSS", "wV5HQP1of_default", "addPropertyControls", "ControlType", "addFonts"]
}
