{"version":3,"file":"Scrollbar.DrreqDCJ.mjs","names":["Iconoir","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useState"],"sources":["https:/framerusercontent.com/modules/bAaPeGP74TJTcxAaiZPT/UdawmlHi8FpUVPwKGqjS/e2PMR2V_F.js","https:/framerusercontent.com/modules/FMqsD7vurJ4RwaAOdZDi/rG23INWAWx2QNoR7DYJe/Scrollbar.js"],"sourcesContent":["// Generated by Framer (114679e)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,Link,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import{Icon as Iconoir}from\"https://framerusercontent.com/modules/zL9598C4KbEbqUGvSR14/rI8sPHpnG9XGcCPc0vU4/Iconoir.js\";const IconoirFonts=getFonts(Iconoir);const enabledGestures={W3E4VjzCw:{hover:true,pressed:true}};const serializationHash=\"framer-UEl5L\";const variantClassNames={W3E4VjzCw:\"framer-v-1q7w9yt\"};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=({color,height,id,link2,width,...props})=>{return{...props,CfD3eRJkP:color??props.CfD3eRJkP??\"var(--token-c48308b4-bb4f-42b2-bc59-b1a3fa5455d8, rgb(182, 141, 66))\",PjsoTIW61:link2??props.PjsoTIW61};};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,CfD3eRJkP,PjsoTIW61,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"W3E4VjzCw\",enabledGestures,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:PjsoTIW61,motionChild:true,nodeId:\"W3E4VjzCw\",openInNewTab:false,scopeId:\"e2PMR2V_F\",smoothScroll:true,children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-1q7w9yt\",className,classNames)} framer-4fqkzk`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"W3E4VjzCw\",ref:refBinding,style:{backgroundColor:\"var(--token-33e814b2-c5ca-4197-a748-8df516e4db27, rgba(255, 255, 255, 0.05))\",borderBottomLeftRadius:4,borderBottomRightRadius:4,borderTopLeftRadius:4,borderTopRightRadius:4,...style},variants:{\"W3E4VjzCw-hover\":{backgroundColor:\"rgba(255, 255, 255, 0.1)\"},\"W3E4VjzCw-pressed\":{backgroundColor:\"rgba(255, 255, 255, 0.15)\"}},...addPropertyOverrides({\"W3E4VjzCw-hover\":{\"data-framer-name\":undefined},\"W3E4VjzCw-pressed\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1pk8t5r-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"ilgCFdB53-container\",nodeId:\"ilgCFdB53\",rendersWithMotion:true,scopeId:\"e2PMR2V_F\",children:/*#__PURE__*/_jsx(Iconoir,{color:CfD3eRJkP,height:\"100%\",iconSearch:\"Home\",iconSelection:\"ArrowUp\",id:\"ilgCFdB53\",layoutId:\"ilgCFdB53\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},width:\"100%\"})})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-UEl5L.framer-4fqkzk, .framer-UEl5L .framer-4fqkzk { display: block; }\",\".framer-UEl5L.framer-1q7w9yt { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 4px; position: relative; text-decoration: none; width: min-content; }\",\".framer-UEl5L .framer-1pk8t5r-container { flex: none; height: 28px; position: relative; width: 28px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 36\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"hWQccu8e8\":{\"layout\":[\"auto\",\"auto\"]},\"eJYIg2MUV\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"CfD3eRJkP\":\"color\",\"PjsoTIW61\":\"link2\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framere2PMR2V_F=withCSS(Component,css,\"framer-UEl5L\");export default Framere2PMR2V_F;Framere2PMR2V_F.displayName=\"Top Button\";Framere2PMR2V_F.defaultProps={height:36,width:36};addPropertyControls(Framere2PMR2V_F,{CfD3eRJkP:{defaultValue:'var(--token-c48308b4-bb4f-42b2-bc59-b1a3fa5455d8, rgb(182, 141, 66)) /* {\"name\":\"Gold\"} */',title:\"Color\",type:ControlType.Color},PjsoTIW61:{title:\"Link 2\",type:ControlType.Link}});addFonts(Framere2PMR2V_F,[{explicitInter:true,fonts:[]},...IconoirFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Framere2PMR2V_F\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"36\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"CfD3eRJkP\\\":\\\"color\\\",\\\"PjsoTIW61\\\":\\\"link2\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"hWQccu8e8\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"eJYIg2MUV\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"36\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./e2PMR2V_F.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useAnimation}from\"framer-motion\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 20\n * @framerIntrinsicHeight 300\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export function WaterScrollbar(props){const{scrollColor,backgroundColor,style}=props;const[scrollY,setScrollY]=useState(0);const[scrollHeight,setScrollHeight]=useState(0);const[isCelebrating,setIsCelebrating]=useState(false);const controls=useAnimation();useEffect(()=>{const updateScroll=()=>{const currentScrollY=window.scrollY;const totalScrollHeight=document.documentElement.scrollHeight-window.innerHeight;setScrollY(currentScrollY);setScrollHeight(totalScrollHeight);if(currentScrollY>=totalScrollHeight){setIsCelebrating(true)// Trigger celebration when scrolled to the bottom\n;controls.start({opacity:[1,0],transition:{duration:2,ease:\"easeOut\"}});}else{setIsCelebrating(false)// Reset celebration when not at the bottom\n;}};window.addEventListener(\"scroll\",updateScroll);updateScroll()// Initial call\n;return()=>window.removeEventListener(\"scroll\",updateScroll);},[controls]);const fillHeight=scrollY/scrollHeight*100;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:120,height:\"70vh\",width:2},children:[isCelebrating&&/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:-20,left:\"50%\",transform:\"translateX(-50%)\",width:2,height:2,zIndex:1},children:[...Array(12)].map((_,i)=>/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",width:5,height:5,backgroundColor:scrollColor,borderRadius:\"50%\",top:\"50%\",left:\"50%\",transformOrigin:\"center\"},initial:{x:0,y:0,opacity:1},animate:{x:[0,Math.cos(i/12*2*Math.PI)*50],y:[0,Math.sin(i/12*2*Math.PI)*50],opacity:[1,0],transition:{repeat:1,repeatType:\"loop\",duration:2,ease:\"easeOut\"}}},i))}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:backgroundColor,borderRadius:\"10px\",opacity:.02,...style}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",width:\"100%\",height:`${fillHeight}%`,backgroundColor:scrollColor,borderRadius:\"10px\",bottom:0,overflow:\"hidden\"},animate:{// Adding a wave effect\ny:[0,-5,0],transition:{repeat:Infinity,repeatType:\"loop\",duration:1.5,ease:\"easeInOut\"}},children:/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:\"90%\",left:0,width:\"100%\",height:\"15%\",backgroundColor:scrollColor,borderRadius:\"50% 50% 0 0\"},animate:{x:[-10,10,-10],transition:{repeat:Infinity,repeatType:\"loop\",duration:2,ease:\"easeInOut\"}}})})]});}WaterScrollbar.defaultProps={scrollColor:\"#ba9043\",backgroundColor:\"#ffffff\"};addPropertyControls(WaterScrollbar,{scrollColor:{type:ControlType.Color,title:\"Scroll Color\",defaultValue:\"#ba9043\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#ffffff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"WaterScrollbar\":{\"type\":\"reactComponent\",\"name\":\"WaterScrollbar\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 20\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scrollbar.map"],"mappings":"+uBAC2pB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAxxB,IAAiM,IAAkE,IAA4B,IAAkJ,CAAM,EAAa,EAASA,EAAQ,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,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,EAAS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