{"version":3,"file":"StudyNavBar.CgNj5mF2.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useState"],"sources":["https:/framerusercontent.com/modules/p1y4JgFKg9njZe0XF894/MMwz0eULBtLYH6XXlzcW/FjWiV32Ov.js","https:/framerusercontent.com/modules/DmmOcioMg7fEEviabJYk/7OJhjIOF2eh5os0OTMjH/StudyNavBar.js"],"sourcesContent":["// Generated by Framer (005c846)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,cx,getFontsFromSharedStyle,Link,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/tnEDikZGFpp6dGCN8H5E/AK6OoBXa58qj5egkEEVg/ZjC0YE_JX.js\";const serializationHash=\"framer-l7HqP\";const variantClassNames={dONkr6m6h:\"framer-v-1uvseg6\"};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=({height,id,width,...props})=>{return{...props};};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({defaultVariant:\"dONkr6m6h\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];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:\"https://ewc.zohobookings.in/#/219810000001281018\",motionChild:true,nodeId:\"dONkr6m6h\",openInNewTab:true,scopeId:\"FjWiV32Ov\",children:/*#__PURE__*/_jsx(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-1uvseg6\",className,classNames)} framer-1sha9jq`,\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"dONkr6m6h\",ref:refBinding,style:{backgroundColor:\"rgb(224, 42, 41)\",borderBottomLeftRadius:8,borderBottomRightRadius:8,borderTopLeftRadius:8,borderTopRightRadius:8,...style},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"RlM7TW9udHNlcnJhdC1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Montserrat\", \"Montserrat Placeholder\", sans-serif',\"--framer-font-size\":\"13px\",\"--framer-font-weight\":\"600\",\"--framer-letter-spacing\":\"0.01em\",\"--framer-line-height\":\"1.4em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:/*#__PURE__*/_jsx(Link,{href:\"https://ewc.zohobookings.in/#/219810000001281018\",motionChild:true,nodeId:\"C6crLjyAY\",openInNewTab:true,relValues:[],scopeId:\"FjWiV32Ov\",smoothScroll:false,children:/*#__PURE__*/_jsx(motion.a,{className:\"framer-styles-preset-w0882v\",\"data-styles-preset\":\"ZjC0YE_JX\",children:\"Book A Free Consultation \"})})})}),className:\"framer-1ccbb6y\",fonts:[\"FS;Montserrat-semibold\"],layoutDependency:layoutDependency,layoutId:\"C6crLjyAY\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"},verticalAlignment:\"top\",withExternalLayout:true})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-l7HqP.framer-1sha9jq, .framer-l7HqP .framer-1sha9jq { display: block; }\",\".framer-l7HqP.framer-1uvseg6 { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 8px 0px 8px 0px; position: relative; text-decoration: none; width: 199px; will-change: var(--framer-will-change-override, transform); }\",\".framer-l7HqP .framer-1ccbb6y { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 34\n * @framerIntrinsicWidth 199\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerFjWiV32Ov=withCSS(Component,css,\"framer-l7HqP\");export default FramerFjWiV32Ov;FramerFjWiV32Ov.displayName=\"Book Consulatation button\";FramerFjWiV32Ov.defaultProps={height:34,width:199};addFonts(FramerFjWiV32Ov,[{explicitInter:true,fonts:[{cssFamilyName:\"Montserrat\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Montserrat\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/DELXRVKO253LHPYOBD6KD7EW3TJKXCXF/L6SILXET3P727LN5N75LL5PG77IET2IT/6DP3DAT2N5LSQGN5ISPRN63WPP32A54A.woff2\",weight:\"600\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerFjWiV32Ov\",\"slots\":[],\"annotations\":{\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"199\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"34\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FjWiV32Ov.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const SECTIONS={study:[{label:\"Off-Shore Students\",id:\"off-shore-students\"},{label:\"On-Shore Students\",id:\"on-shore-students\"},{label:\"Changing DLI\",id:\"changing-dli\"}],immigration:[{label:\"Core Immigration Services\",id:\"core-immigration-services\"},{label:\"Work Permit Services\",id:\"work-permit-services\"},{label:\"Temporary Resident Visas\",id:\"temporary-resident-visas\"},{label:\"TRV Stamp\",id:\"trv-stamp\"},{label:\"Permanent Resident Travel Document\",id:\"permanent-resident-travel-document\"}]};export default function PageNavFloat({page}){const[open,setOpen]=useState(false);const sections=SECTIONS[page]||[];const go=id=>{document.getElementById(id)?.scrollIntoView({behavior:\"smooth\",block:\"start\"});setOpen(false);};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",left:0,top:\"50%\",transform:\"translateY(-50%)\",zIndex:9999,display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setOpen(o=>!o),style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"12px 16px 12px 14px\",background:\"rgb(224,42,41)\",color:\"#fff\",fontFamily:\"sans-serif\",fontSize:13,fontWeight:600,border:\"none\",borderRadius:\"0 8px 8px 0\",cursor:\"pointer\",boxShadow:\"2px 2px 12px rgba(0,0,0,0.2)\",whiteSpace:\"nowrap\",transition:\"padding 0.2s ease\"},onMouseOver:e=>e.currentTarget.style.paddingRight=\"22px\",onMouseOut:e=>e.currentTarget.style.paddingRight=\"16px\",children:[/*#__PURE__*/_jsx(\"span\",{children:open?\"✕\":\"☰\"}),open?\"Close\":\"Sections\"]}),/*#__PURE__*/_jsx(\"div\",{style:{maxHeight:open?\"600px\":\"0px\",overflow:\"hidden\",transition:\"max-height 0.35s ease\",background:\"#fff\",borderRadius:\"0 0 10px 0\",boxShadow:open?\"2px 4px 16px rgba(0,0,0,0.15)\":\"none\",display:\"flex\",flexDirection:\"column\",minWidth:230},children:sections.map(({label,id},i)=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>go(id),style:{display:\"block\",width:\"100%\",textAlign:\"left\",padding:\"12px 20px\",background:\"transparent\",color:\"#181818\",fontFamily:\"sans-serif\",fontSize:14,fontWeight:500,border:\"none\",borderBottom:i<sections.length-1?\"1px solid #f0f0f0\":\"none\",cursor:\"pointer\"},onMouseOver:e=>{e.currentTarget.style.background=\"rgb(224,42,41)\";e.currentTarget.style.color=\"#fff\";},onMouseOut:e=>{e.currentTarget.style.background=\"transparent\";e.currentTarget.style.color=\"#181818\";},children:label},id))})]});}addPropertyControls(PageNavFloat,{page:{type:ControlType.Enum,title:\"Page\",options:[\"study\",\"immigration\"],optionTitles:[\"Study\",\"Immigration\"],defaultValue:\"study\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageNavFloat\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}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