{"version":3,"file":"Navbar_Scrolll.DFWEDuWr.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useRef","useState"],"sources":["https:/framerusercontent.com/modules/taFPzdRHlnt8RvK7U0Z4/TwpXRzQuVNuRoaAgbgZd/szQKFv0s2.js","https:/framerusercontent.com/modules/5Z5PFBy7MzynG9mVU1OG/LTqFfbaX63wQZRvpioKr/Navbar_Scrolll.js"],"sourcesContent":["// Generated by Framer (bf89308)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useOnVariantChange,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"rR3IKfDH2\",\"c_ZOS760K\",\"GWvesVwS1\",\"C1aUhFPOj\"];const serializationHash=\"framer-0gfAl\";const variantClassNames={c_ZOS760K:\"framer-v-1i7t0xd\",C1aUhFPOj:\"framer-v-sf0lah\",GWvesVwS1:\"framer-v-fwtz94\",rR3IKfDH2:\"framer-v-cbzs8i\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const Fm4Ct2W_o=undefined;const lCFggAxhT=undefined;const transition1={bounce:.2,delay:0,duration:.8,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={\"Animation Closed\":\"C1aUhFPOj\",\"Animation Open\":\"c_ZOS760K\",Closed:\"rR3IKfDH2\",Open:\"GWvesVwS1\"};const Variants=motion.create(React.Fragment);const getProps=({click,fill,height,id,width,...props})=>{return{...props,Fm4Ct2W_o:click??props.Fm4Ct2W_o,lCFggAxhT:fill??props.lCFggAxhT??\"var(--token-395bc997-1ac2-4637-8f2c-5c13efc57aa0, rgb(7, 5, 15))\",variant:humanReadableVariantMap[props.variant]??props.variant??\"rR3IKfDH2\"};};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,Fm4Ct2W_o,lCFggAxhT,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"rR3IKfDH2\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapfvadqc=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(Fm4Ct2W_o){const res=await Fm4Ct2W_o(...args);if(res===false)return false;}setVariant(\"c_ZOS760K\");});const onAppearsunfhr=activeVariantCallback(async(...args)=>{await delay(()=>setVariant(\"GWvesVwS1\",true),500);});const onTap1nsokmq=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(Fm4Ct2W_o){const res=await Fm4Ct2W_o(...args);if(res===false)return false;}setVariant(\"C1aUhFPOj\");});const onTap13xb3t9=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(Fm4Ct2W_o){const res=await Fm4Ct2W_o(...args);if(res===false)return false;}});const onAppearsv49es=activeVariantCallback(async(...args)=>{await delay(()=>setVariant(\"rR3IKfDH2\",true),500);});useOnVariantChange(baseVariant,{c_ZOS760K:onAppearsunfhr,C1aUhFPOj:onAppearsv49es});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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-cbzs8i\",className,classNames),\"data-framer-name\":\"Closed\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"rR3IKfDH2\",onTap:onTapfvadqc,ref:refBinding,style:{...style},...addPropertyOverrides({c_ZOS760K:{\"data-framer-name\":\"Animation Open\"},C1aUhFPOj:{\"data-framer-name\":\"Animation Closed\",onTap:onTap13xb3t9},GWvesVwS1:{\"data-framer-name\":\"Open\",onTap:onTap1nsokmq}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-8lm2wy\",layoutDependency:layoutDependency,layoutId:\"OEyzJJx9u\",style:{backgroundColor:lCFggAxhT,borderBottomLeftRadius:354,borderBottomRightRadius:354,borderTopLeftRadius:354,borderTopRightRadius:354,rotate:0},variants:{C1aUhFPOj:{rotate:0},GWvesVwS1:{rotate:45}}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-e7apb7\",layoutDependency:layoutDependency,layoutId:\"JQARqCe6I\",style:{backgroundColor:lCFggAxhT,borderBottomLeftRadius:354,borderBottomRightRadius:354,borderTopLeftRadius:354,borderTopRightRadius:354,rotate:0},variants:{C1aUhFPOj:{rotate:0},GWvesVwS1:{rotate:-45}}})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-0gfAl.framer-1vy0xud, .framer-0gfAl .framer-1vy0xud { display: block; }\",\".framer-0gfAl.framer-cbzs8i { cursor: pointer; height: 36px; overflow: visible; position: relative; width: 36px; }\",\".framer-0gfAl .framer-8lm2wy { flex: none; height: 3px; left: calc(50.00000000000002% - 23px / 2); overflow: visible; position: absolute; top: 11px; width: 23px; }\",\".framer-0gfAl .framer-e7apb7 { bottom: 11px; flex: none; height: 3px; left: calc(50.00000000000002% - 23px / 2); overflow: visible; position: absolute; width: 23px; }\",\".framer-0gfAl.framer-v-1i7t0xd .framer-8lm2wy, .framer-0gfAl.framer-v-fwtz94 .framer-8lm2wy, .framer-0gfAl.framer-v-sf0lah .framer-8lm2wy { top: 17px; }\",\".framer-0gfAl.framer-v-1i7t0xd .framer-e7apb7, .framer-0gfAl.framer-v-fwtz94 .framer-e7apb7, .framer-0gfAl.framer-v-sf0lah .framer-e7apb7 { bottom: 16px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 36\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"c_ZOS760K\":{\"layout\":[\"fixed\",\"fixed\"]},\"GWvesVwS1\":{\"layout\":[\"fixed\",\"fixed\"]},\"C1aUhFPOj\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"Fm4Ct2W_o\":\"click\",\"lCFggAxhT\":\"fill\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerszQKFv0s2=withCSS(Component,css,\"framer-0gfAl\");export default FramerszQKFv0s2;FramerszQKFv0s2.displayName=\"Menu Hambuguer\";FramerszQKFv0s2.defaultProps={height:36,width:36};addPropertyControls(FramerszQKFv0s2,{variant:{options:[\"rR3IKfDH2\",\"c_ZOS760K\",\"GWvesVwS1\",\"C1aUhFPOj\"],optionTitles:[\"Closed\",\"Animation Open\",\"Open\",\"Animation Closed\"],title:\"Variant\",type:ControlType.Enum},Fm4Ct2W_o:{title:\"Click\",type:ControlType.EventHandler},lCFggAxhT:{defaultValue:'var(--token-395bc997-1ac2-4637-8f2c-5c13efc57aa0, rgb(7, 5, 15)) /* {\"name\":\"Text #07050F\"} */',title:\"Fill\",type:ControlType.Color}});addFonts(FramerszQKFv0s2,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerszQKFv0s2\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"Fm4Ct2W_o\\\":\\\"click\\\",\\\"lCFggAxhT\\\":\\\"fill\\\"}\",\"framerIntrinsicWidth\":\"36\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"36\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"c_ZOS760K\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"GWvesVwS1\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"C1aUhFPOj\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./szQKFv0s2.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useState}from\"react\";import{useScroll,useMotionValueEvent}from\"framer-motion\";function getDevice(width){if(width<=809)return\"mobile\";if(width<=1439)return\"tablet\";return\"desktop\";}function getThreshold(device){if(device===\"mobile\")return 40;if(device===\"tablet\")return 60;return 80;}const openVariants=[\"Tablet Default Open\",\"Tablet Default Open 2x\",\"Mobile Default Open\",\"Mobile Default Open 2x\"];export function withNavbarScrollVariant(Component){return props=>{const{scrollY}=useScroll();const hasScrolled=useRef(false);const[variant,setVariant]=useState(undefined);useMotionValueEvent(scrollY,\"change\",latest=>{if(openVariants.includes(props.variant))return;const device=getDevice(window.innerWidth);const threshold=getThreshold(device);if(latest>threshold){hasScrolled.current=true;setVariant(device===\"desktop\"?\"Default White\":device===\"tablet\"?\"Tablet White\":\"Mobile White\");}else if(hasScrolled.current){setVariant(device===\"desktop\"?\"Desktop Default\":device===\"tablet\"?\"Tablet Default\":\"Mobile Default\");}});const variantProps=variant?{variant}:{};return /*#__PURE__*/_jsx(Component,{...props,...variantProps});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withNavbarScrollVariant\":{\"type\":\"reactHoc\",\"name\":\"withNavbarScrollVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Navbar_Scrolll.map"],"mappings":"iXAC6kB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAA5rB,IAAuK,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,CAAkP,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,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,EAAwB,CAAC,mBAAmB,YAAY,iBAAiB,YAAY,OAAO,YAAY,KAAK,YAAY,CAAO,EAAS,EAAO,OAAOC,EAAe,CAAO,GAAU,CAAC,QAAM,OAAK,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU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