{"version":3,"file":"shared-lib.Cak21CMb.mjs","names":["useState","_Fragment","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","l","_e","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_B1b760uK","ControlType","KCNav","props","loggedIn","setLoggedIn","raw","s","logout","link","cream","burgundy","butter","ink","init_KCNav","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/tbpFz0Kpq78Vxd0Az6Zj/kFSsewP9syUbRl2J1mAz/KCNav.js","https:/framerusercontent.com/modules/mUnBDG2i35mG4XYuTjmc/Awfv4EiwMlMQJIuBlQni/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:\"/social-credits\",style:link,children:\"Social Credits\"}),/*#__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\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KCNav.map","// Generated by Framer (c439c68)\nexport default function metadata(params,contentLocale){return{description:\"The home of Cypress Woods Key Club\",favicon:\"https://framerusercontent.com/assets/yW98i2SKkiH5ExPpWjcwHAxgtY.png\",robots:\"max-image-preview:large\",title:\"Cy-Woods Key Club 2026-2027\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,6MAOG,SAAwBe,EAAM,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,QAAM,UAAU,SAAO,UAAU,MAAI,WAAWC,EAAW,CAACC,EAASC,GAAalB,EAAS,EAAK,EAAEW,MAAc,CAAC,GAAUN,IAAS,OAAmB,GAAG,CAAC,IAAMc,EAAId,EAAO,aAAa,QAAQ,cAAc,EAAQe,EAAED,EAAI,KAAK,MAAMA,CAAG,EAAE,KAAKD,EAAY,CAAC,EAAEE,GAAGA,EAAE,aAAa,CAAE,MAAS,CAACF,EAAY,EAAK,CAAE,CAAC,EAAE,CAAC,CAAC,EAAE,SAASG,EAAO,EAAE,CAAI,GAAE,EAAE,eAAe,EAAYhB,IA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