{"version":3,"file":"HgzSvch7_.DrOscoM-.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/bwsFeb0E7PHoar80m1G2/CZa2z6aJ5mCA16NV5YCN/HgzSvch7_.js"],"sourcesContent":["// Generated by Framer (0c69ca2)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,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=[\"FOMY9QqAD\",\"GU5_v76OE\"];const serializationHash=\"framer-uZlK7\";const variantClassNames={FOMY9QqAD:\"framer-v-bg4gbk\",GU5_v76OE:\"framer-v-1yctrp8\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.3,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 humanReadableVariantMap={Off:\"GU5_v76OE\",On:\"FOMY9QqAD\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"FOMY9QqAD\"};};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:\"FOMY9QqAD\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1w9775d=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});setVariant(\"GU5_v76OE\");});const onTapyri3j6=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});setVariant(\"FOMY9QqAD\");});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(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-bg4gbk\",className,classNames),\"data-framer-name\":\"On\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"FOMY9QqAD\",onTap:onTap1w9775d,ref:refBinding,style:{backgroundColor:\"rgb(0, 153, 255)\",borderBottomLeftRadius:15,borderBottomRightRadius:15,borderTopLeftRadius:15,borderTopRightRadius:15,...style},variants:{GU5_v76OE:{backgroundColor:\"rgb(236, 236, 236)\"}},...addPropertyOverrides({GU5_v76OE:{\"data-framer-name\":\"Off\",onTap:onTapyri3j6}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1mpjaoq\",layoutDependency:layoutDependency,layoutId:\"cEILnDpfo\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:\"50%\",borderBottomRightRadius:\"50%\",borderTopLeftRadius:\"50%\",borderTopRightRadius:\"50%\",boxShadow:\"0px 1px 2px 0px rgba(0, 0, 0, 0.25)\"}})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-uZlK7.framer-188l5vp, .framer-uZlK7 .framer-188l5vp { display: block; }\",\".framer-uZlK7.framer-bg4gbk { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 20px; justify-content: flex-end; overflow: var(--overflow-clip-fallback, clip); padding: 2px; position: relative; width: 32px; will-change: var(--framer-will-change-override, transform); }\",\".framer-uZlK7 .framer-1mpjaoq { aspect-ratio: 1 / 1; flex: none; height: 100%; overflow: var(--overflow-clip-fallback, clip); position: relative; width: var(--framer-aspect-ratio-supported, 16px); will-change: var(--framer-will-change-override, transform); }\",\".framer-uZlK7.framer-v-1yctrp8.framer-bg4gbk { justify-content: flex-start; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 20\n * @framerIntrinsicWidth 32\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"GU5_v76OE\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerHgzSvch7_=withCSS(Component,css,\"framer-uZlK7\");export default FramerHgzSvch7_;FramerHgzSvch7_.displayName=\"Toggle\";FramerHgzSvch7_.defaultProps={height:20,width:32};addPropertyControls(FramerHgzSvch7_,{variant:{options:[\"FOMY9QqAD\",\"GU5_v76OE\"],optionTitles:[\"On\",\"Off\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerHgzSvch7_,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerHgzSvch7_\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"GU5_v76OE\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"20\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"32\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HgzSvch7_.map"],"mappings":"mUAC4d,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,qCAAxmB,IAAoJ,IAAkE,IAA4B,EAAiC,EAAW,CAAC,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,EAA+L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQ,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,CAAmB,EAAQ,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,YAAU,GAAG,CAAC,KAAK,UAAU,CAAU,CAAC,CAAC,EAAE,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,UAAQ,CAAC,CAAE,EAAQ,EAAwB,CAAC,IAAI,YAAY,GAAG,WAAW,EAAQ,EAAS,EAAO,OAAOC,CAAc,EAAQ,GAAU,CAAC,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,QAAQ,EAAwB,EAAM,UAAU,EAAM,SAAS,WAAW,GAAU,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,GAAG,EAAE,EAAM,iBAAwB,EAAS,KAAK,GAAG,EAUp5C,EAAgB,EAVq6CC,EAAiB,SAA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