{"version":3,"file":"b9z7Ck5V1.B6J7sIAg.mjs","names":["useRef","useState","useRef"],"sources":["https:/framerusercontent.com/modules/jfK7C7JmdHGaVBsvt1V7/AGG8ARtz8MurBNtcvgvB/DotLottie.js","https:/framerusercontent.com/modules/dnou7FLHSCjaZuC40bhR/da8K7dimbh3WSmMXppc3/b9z7Ck5V1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef,useState}from\"react\";const placeholderUrl=\"https://lottie.host/d826e0a7-b7e8-4072-8afe-c943ed2dd2ca/DpX3m5yT5Z.lottie\";/**\n * DOT LOTTIE\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DotLottie(props){return /*#__PURE__*/_jsx(OptimizationFriendly,{loading:/*#__PURE__*/_jsx(\"div\",{}),loaded:/*#__PURE__*/_jsx(LottiePlayer,{...props})});}function LottiePlayer(props){/* Checks */const isCanvas=RenderTarget.current()===RenderTarget.canvas;const lottieInstanceRef=useRef(null);const shouldPlay=isCanvas||props.hover===true||props.autoplay===false?null:true;/* File or URL */let src;switch(props.srcType){case\"url\":src=props.srcUrl;break;case\"file\":src=props.srcFile;break;default:src=placeholderUrl;break;}/* Progress */const[isReady,setIsReady]=useState(false);/* For canvas states */useEffect(()=>{if(!lottieInstanceRef.current)return;lottieInstanceRef.current.addEventListener(\"ready\",()=>setIsReady(true));},[]);useEffect(()=>{if(!lottieInstanceRef.current)return;lottieInstanceRef.current.seek(`${props.progress}%`);},[isReady,props.progress]);const lastVariant=useRef();/* For component variant support */useEffect(()=>{if(isCanvas)return;if(lastVariant.current!==props.autoplay){if(!lottieInstanceRef.current)return;if(props.autoplay===true){lottieInstanceRef.current.play();}if(props.autoplay===false){lottieInstanceRef.current.pause();}}lastVariant.current=props.autoplay;},[props.autoplay]);return(// @ts-ignore\n/*#__PURE__*/_jsx(\"dotlottie-player\",{src:src,ref:lottieInstanceRef,autoplay:shouldPlay,loop:props.loop?true:null,hover:props.hover?true:null,controls:props.controls?true:null,background:props.background?props.background:null,speed:props.speed,direction:props.direction,style:{...props.style,width:\"100%\",height:\"100%\"}},src));}DotLottie.defaultProps={srcUrl:placeholderUrl,autoplay:true,background:\"#05F\",controls:false,direction:1,hover:false,loop:true,speed:1};DotLottie.displayName=\"Dot Lottie\";addPropertyControls(DotLottie,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"url\",\"file\"],optionTitles:[\"URL\",\"File\"]},srcUrl:{type:ControlType.String,title:\"Link\",placeholder:\"../example.lottie\",hidden:props=>props.srcType===\"file\"},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"lottie\",\"json\"],hidden:props=>props.srcType===\"url\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:true},background:{type:ControlType.Color,title:\"Backdrop\",defaultValue:\"#05F\"},controls:{type:ControlType.Boolean,title:\"Controls\"},direction:{type:ControlType.Enum,title:\"Direction\",defaultValue:\"1\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"1\",\"-1\"],optionTitles:[\"Normal\",\"Reverse\"]},hover:{type:ControlType.Boolean,title:\"Hover Play\"},loop:{type:ControlType.Boolean,title:\"Loop\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:1,max:10,unit:\"x\",step:.5,displayStepper:true},progress:{type:ControlType.Number,title:\"Progress\",defaultValue:0,min:0,max:100,step:1,description:\"This component is made for Lottie files. [Learn more here](https://dotlottie.io/).\"}});/* For SSG */function OptimizationFriendly({loading,loaded}){const[isLoading,setLoading]=React.useState(true);// We can't load web-components in ssg on the server,\n// so we defer rendering until we hit the client.\nReact.useEffect(()=>{import(\"https://unpkg.com/@dotlottie/player-component@2.7.12/dist/dotlottie-player.js\").then(()=>{setLoading(false);});},[]);return isLoading?loading:loaded;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DotLottie\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"200\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DotLottie.map","// Generated by Framer (44e0108)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import DotLottie from\"https://framerusercontent.com/modules/jfK7C7JmdHGaVBsvt1V7/AGG8ARtz8MurBNtcvgvB/DotLottie.js\";const DotLottieFonts=getFonts(DotLottie);const cycleOrder=[\"SG0V3blFM\",\"bP4mL7_8r\"];const serializationHash=\"framer-1HMSS\";const variantClassNames={bP4mL7_8r:\"framer-v-w4laa2\",SG0V3blFM:\"framer-v-1brloi7\"};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 humanReadableVariantMap={\"Not playing\":\"SG0V3blFM\",Playing:\"bP4mL7_8r\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"SG0V3blFM\"};};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:\"SG0V3blFM\",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(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1brloi7\",className,classNames),\"data-framer-name\":\"Not playing\",layoutDependency:layoutDependency,layoutId:\"SG0V3blFM\",ref:refBinding,style:{...style},...addPropertyOverrides({bP4mL7_8r:{\"data-framer-name\":\"Playing\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1g7pj0x-container\",isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"x4etxzKtX-container\",nodeId:\"x4etxzKtX\",rendersWithMotion:true,scopeId:\"b9z7Ck5V1\",children:/*#__PURE__*/_jsx(DotLottie,{autoplay:false,background:\"rgba(255, 255, 255, 0)\",controls:false,direction:\"1\",height:\"100%\",hover:false,id:\"x4etxzKtX\",layoutId:\"x4etxzKtX\",loop:true,progress:0,speed:1,srcFile:\"https://framerusercontent.com/assets/w5gWJ8zdD7Y39eW9j74i2rVpc.lottie\",srcType:\"file\",srcUrl:\"https://lottie.host/d826e0a7-b7e8-4072-8afe-c943ed2dd2ca/DpX3m5yT5Z.lottie\",style:{height:\"100%\",maxWidth:\"100%\",width:\"100%\"},width:\"100%\",...addPropertyOverrides({bP4mL7_8r:{autoplay:true}},baseVariant,gestureVariant)})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-1HMSS.framer-1me28yw, .framer-1HMSS .framer-1me28yw { display: block; }\",\".framer-1HMSS.framer-1brloi7 { height: 540px; overflow: hidden; position: relative; width: 441px; }\",\".framer-1HMSS .framer-1g7pj0x-container { aspect-ratio: 0.8166666666666667 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 540px); left: 0px; max-width: 100%; position: absolute; top: 0px; width: 441px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 540\n * @framerIntrinsicWidth 441\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"bP4mL7_8r\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerb9z7Ck5V1=withCSS(Component,css,\"framer-1HMSS\");export default Framerb9z7Ck5V1;Framerb9z7Ck5V1.displayName=\"2025/GitBook Assistant animation\";Framerb9z7Ck5V1.defaultProps={height:540,width:441};addPropertyControls(Framerb9z7Ck5V1,{variant:{options:[\"SG0V3blFM\",\"bP4mL7_8r\"],optionTitles:[\"Not playing\",\"Playing\"],title:\"Variant\",type:ControlType.Enum}});addFonts(Framerb9z7Ck5V1,[{explicitInter:true,fonts:[]},...DotLottieFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerb9z7Ck5V1\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"bP4mL7_8r\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"441\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"540\",\"framerColorSyntax\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./b9z7Ck5V1.map"],"mappings":"mpBASG,SAAwB,EAAU,EAAM,CAAC,OAAoB,EAAK,EAAqB,CAAC,QAAqB,EAAK,MAAM,EAAE,EAAE,OAAoB,EAAK,EAAa,CAAC,GAAG,EAAM,EAAE,CAAG,UAAS,EAAa,EAAM,CAAa,IAAM,EAAS,EAAa,YAAY,EAAa,OAAa,EAAkBE,EAAO,MAAY,EAAW,GAAU,EAAM,QAAQ,IAAM,EAAM,WAAW,GAAM,KAAK,GAA0B,EAAI,OAAO,EAAM,QAAb,CAAsB,IAAI,MAAM,EAAI,EAAM,OAAO,MAAM,IAAI,OAAO,EAAI,EAAM,QAAQ,MAAM,QAAQ,EAAI,EAAe,KAAO,CAAc,GAAK,CAAC,EAAQ,EAAW,CAACD,EAAS,IAA8B,MAAc,CAAK,EAAkB,SAAe,EAAkB,QAAQ,iBAAiB,YAAY,EAAW,IAAQ,EAAC,EAAE,EAAE,MAAc,CAAK,EAAkB,SAAe,EAAkB,QAAQ,KAAK,GAAG,EAAM,SAAS,GAAK,EAAC,CAAC,EAAQ,EAAM,SAAS,EAAE,IAAM,EAAYC,IAA8U,OAAlS,MAAc,CAAI,MAAgB,IAAG,EAAY,UAAU,EAAM,SAAS,CAAC,GAAG,CAAC,EAAkB,QAAQ,OAAU,EAAM,WAAW,IAAM,EA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