{"version":3,"file":"iJAxvePct.Cw3JOBFd.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/41IPMvE2Sv0j7idnqNsU/YNIuFNUwf2gahQnGw3IZ/iJAxvePct.js"],"sourcesContent":["// Generated by Framer (dfd7da3)\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\";const cycleOrder=[\"EgYBTG07D\",\"AjLgY4ocg\"];const serializationHash=\"framer-xXYsa\";const variantClassNames={AjLgY4ocg:\"framer-v-sat84\",EgYBTG07D:\"framer-v-1uu5dir\"};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={bounce:.2,delay:0,duration:.4,type:\"spring\"};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 humanReadableVariantMap={Left:\"EgYBTG07D\",Right:\"AjLgY4ocg\"};const getProps=({click,height,id,width,...props})=>{var _humanReadableVariantMap_props_variant,_ref;return{...props,U2f10gZJo:click!==null&&click!==void 0?click:props.U2f10gZJo,variant:(_ref=(_humanReadableVariantMap_props_variant=humanReadableVariantMap[props.variant])!==null&&_humanReadableVariantMap_props_variant!==void 0?_humanReadableVariantMap_props_variant:props.variant)!==null&&_ref!==void 0?_ref:\"EgYBTG07D\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Variants=motion.create(React.Fragment);const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,U2f10gZJo,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"EgYBTG07D\",variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapidsuyh=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(U2f10gZJo){const res=await U2f10gZJo(...args);if(res===false)return false;}setVariant(\"AjLgY4ocg\");});const onTaprnjo8i=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(U2f10gZJo){const res=await U2f10gZJo(...args);if(res===false)return false;}setVariant(\"EgYBTG07D\");});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const ref1=React.useRef(null);const defaultLayoutId=React.useId();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(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1uu5dir\",className,classNames),\"data-framer-name\":\"Left\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"EgYBTG07D\",onTap:onTapidsuyh,ref:ref!==null&&ref!==void 0?ref:ref1,style:{backgroundColor:\"var(--token-bf3b78f1-7c89-4ecd-bba4-77c1a4c7b347, rgb(234, 234, 234))\",borderBottomLeftRadius:30,borderBottomRightRadius:30,borderTopLeftRadius:30,borderTopRightRadius:30,boxShadow:\"inset 0px 0px 4px 0px rgba(0, 0, 0, 0.05000000074505806)\",...style},variants:{AjLgY4ocg:{backgroundColor:\"var(--token-7ec95c0f-b04a-42ae-a158-91566b52197d, rgb(255, 70, 46))\"}},...addPropertyOverrides({AjLgY4ocg:{\"data-framer-name\":\"Right\",onTap:onTaprnjo8i}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1azu3ub\",\"data-framer-name\":\"Ball\",layoutDependency:layoutDependency,layoutId:\"hmdIv3J0P\",style:{backgroundColor:\"var(--token-a83649a1-3fb0-4a78-ac47-908be8944abe, rgb(255, 255, 255))\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,boxShadow:\"0px 0px 4px 0px rgba(0, 0, 0, 0.05)\"}})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-xXYsa.framer-1vci8d6, .framer-xXYsa .framer-1vci8d6 { display: block; }\",\".framer-xXYsa.framer-1uu5dir { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 30px; justify-content: flex-start; overflow: visible; padding: 2px; position: relative; width: 58px; }\",\".framer-xXYsa .framer-1azu3ub { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 26px); overflow: visible; position: relative; width: 26px; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-xXYsa.framer-1uu5dir { gap: 0px; } .framer-xXYsa.framer-1uu5dir > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } .framer-xXYsa.framer-1uu5dir > :first-child { margin-left: 0px; } .framer-xXYsa.framer-1uu5dir > :last-child { margin-right: 0px; } }\",\".framer-xXYsa.framer-v-sat84.framer-1uu5dir { justify-content: flex-end; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 30\n * @framerIntrinsicWidth 58\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"AjLgY4ocg\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"U2f10gZJo\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FrameriJAxvePct=withCSS(Component,css,\"framer-xXYsa\");export default FrameriJAxvePct;FrameriJAxvePct.displayName=\"Toggle Button\";FrameriJAxvePct.defaultProps={height:30,width:58};addPropertyControls(FrameriJAxvePct,{variant:{options:[\"EgYBTG07D\",\"AjLgY4ocg\"],optionTitles:[\"Left\",\"Right\"],title:\"Variant\",type:ControlType.Enum},U2f10gZJo:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FrameriJAxvePct,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameriJAxvePct\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"U2f10gZJo\\\":\\\"click\\\"}\",\"framerIntrinsicHeight\":\"30\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"58\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"AjLgY4ocg\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./iJAxvePct.map"],"mappings":"kUACic,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAA+H,OAA9H,GAAmD,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAvmB,IAAoJ,IAAkE,IAA4B,CAAM,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,iBAAiB,UA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