{"version":3,"file":"shared-lib.Ds0y__x9.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/tbpFz0Kpq78Vxd0Az6Zj/Im9mMbfOccLADMZct0Yv/KCNav.js","https:/framerusercontent.com/modules/mUnBDG2i35mG4XYuTjmc/oqnEn89ADfZ6Tnl45rmO/siteMetadata.js"],"sourcesContent":["// Cypress Woods Key Club - shared site navigation bar.\n// One component placed on every page. It checks whether a member is logged in\n// (via the saved session in localStorage) and shows either Log in / Sign up,\n// or My Hours / Log out. Edit links or buttons here and every page updates.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function KCNav(props){const{burgundy=\"#7A1F2B\",cream=\"#FBEFD1\",butter=\"#F6DE8E\",ink=\"#2B1013\"}=props;const[loggedIn,setLoggedIn]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;try{const raw=window.localStorage.getItem(\"cwkc_session\");const s=raw?JSON.parse(raw):null;setLoggedIn(!!(s&&s.access_token));}catch(e){setLoggedIn(false);}},[]);function logout(e){if(e)e.preventDefault();if(typeof window!==\"undefined\"){window.localStorage.removeItem(\"cwkc_session\");window.location.href=\"/\";}}const link={color:cream,textDecoration:\"none\",fontSize:15,fontWeight:500,fontFamily:\"Inter, system-ui, sans-serif\",whiteSpace:\"nowrap\",cursor:\"pointer\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",boxSizing:\"border-box\",background:burgundy,padding:\"16px 40px\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:18,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",style:{...link,fontFamily:\"Fraunces, Georgia, serif\",fontSize:22,fontWeight:600},children:\"Cy Woods Key Club\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:24,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/about\",style:link,children:\"About\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/officers\",style:link,children:\"Officers\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/events\",style:link,children:\"Events\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/gallery\",style:link,children:\"Gallery\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/submit-hours\",style:link,children:\"Submit Hours\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/contact\",style:link,children:\"Contact\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:16},children:loggedIn?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"a\",{href:\"/dashboard\",style:link,children:\"My Hours\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/\",onClick:logout,style:{textDecoration:\"none\",background:butter,color:ink,fontWeight:600,fontSize:15,padding:\"10px 18px\",borderRadius:999,fontFamily:\"Inter, system-ui, sans-serif\",whiteSpace:\"nowrap\",cursor:\"pointer\"},children:\"Log out\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"a\",{href:\"/login\",style:link,children:\"Log in\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/signup\",style:{textDecoration:\"none\",background:butter,color:ink,fontWeight:600,fontSize:15,padding:\"10px 18px\",borderRadius:999,fontFamily:\"Inter, system-ui, sans-serif\",whiteSpace:\"nowrap\"},children:\"Sign up\"})]})})]});}addPropertyControls(KCNav,{burgundy:{type:ControlType.Color,title:\"Bar\",defaultValue:\"#7A1F2B\"},cream:{type:ControlType.Color,title:\"Links\",defaultValue:\"#FBEFD1\"},butter:{type:ControlType.Color,title:\"Button\",defaultValue:\"#F6DE8E\"},ink:{type:ControlType.Color,title:\"Button text\",defaultValue:\"#2B1013\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KCNav\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KCNav.map","// Generated by Framer (ee97fff)\nexport default function metadata(params,activeLocale){return{description:\"The home of Cypress Woods Key Club\",robots:\"max-image-preview:large\",title:\"Cy-Woods Key Club 2026-2027\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"6MAOG,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,QAAM,UAAU,SAAO,UAAU,MAAI,WAAW,EAAW,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAE,MAAc,CAAI,GAAO,IAAS,OAAmB,GAAG,CAAC,IAAM,EAAI,EAAO,aAAa,QAAQ,cAAc,EAAQ,EAAE,EAAI,KAAK,MAAM,CAAG,EAAE,KAAK,EAAY,CAAC,EAAE,GAAG,EAAE,aAAa,CAAE,MAAS,CAAC,EAAY,EAAK,CAAE,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,EAAO,EAAE,CAAI,GAAE,EAAE,eAAe,EAAY,IAAS,SAAa,EAAO,aAAa,WAAW,cAAc,EAAE,EAAO,SAAS,KAAK,IAAK,CAAC,IAAM,EAAK,CAAC,MAAM,EAAM,eAAe,OAAO,SAAS,GAAG,WAAW,IAAI,WAAW,+BAA+B,WAAW,SAAS,OAAO,SAAS,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,UAAU,aAAa,WAAW,EAAS,QAAQ,YAAY,QAAQ,OAAO,WAAW,SAAS,eA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