(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36847,e=>{"use strict";var t=e.i(47167),r=e.i(43476);let s=void 0!==t.default?"/gap":"";function a({href:e,className:t,children:a,...l}){if(!e.startsWith("/"))return(0,r.jsx)("a",{href:e,className:t,...l,children:a});let[i,n]=e.split("#"),o="/"===i?s+"/":s+i,c=o.endsWith("/")?o:o+"/",d=n?`${c}#${n}`:c;return(0,r.jsx)("a",{href:d,className:t,...l,children:a})}e.s(["InternalLink",()=>a])},85347,e=>{"use strict";function t(e){return!!e&&"object"==typeof e&&Array.isArray(e.columns)&&e.columns.every(e=>"string"==typeof e)&&Array.isArray(e.rows)&&e.rows.every(e=>e&&"object"==typeof e&&!Array.isArray(e)&&Object.values(e).every(e=>"string"==typeof e))}e.s(["EXCEL_DATA_STORAGE_KEY",0,"tro.portal.excelData.v1","isExcelData",()=>t])},3562,e=>{"use strict";var t=e.i(43476),r=e.i(18566);e.i(51718);var s=e.i(18357),a=e.i(36847),l=e.i(59141),i=e.i(85347);let n=[{href:"/portal/load-excel",label:"Load Excel File"},{href:"/portal/generate-qr",label:"Generate QR"}];function o(){let e=(0,r.usePathname)();return(0,t.jsx)("aside",{className:"w-[260px] shrink-0 border-r border-slate-800 bg-slate-950/70 backdrop-blur",children:(0,t.jsxs)("div",{className:"sticky top-0 h-screen px-4 py-6",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-slate-400",children:"GAP"}),(0,t.jsx)("div",{className:"mt-2 text-lg font-semibold text-slate-50",children:"GAP Portal"})]}),(0,t.jsx)("nav",{className:"space-y-2",children:n.map(r=>{let s;return(0,t.jsx)(a.InternalLink,{href:r.href,className:["block rounded-xl px-3 py-2 text-sm font-medium transition",e===(s=r.href)||e.startsWith(s+"/")?"bg-sky-500/15 text-sky-100 ring-1 ring-sky-500/30":"text-slate-200 hover:bg-slate-800/50 hover:text-white"].join(" "),children:r.label},r.href)})}),(0,t.jsx)("div",{className:"mt-6 border-t border-slate-800 pt-6",children:(0,t.jsx)("button",{type:"button",onClick:async()=>{localStorage.removeItem(i.EXCEL_DATA_STORAGE_KEY);try{await (0,s.signOut)((0,l.getFirebaseAuth)())}catch{}window.location.href="/gap/login/"},className:"w-full rounded-xl border border-slate-700 bg-slate-900/40 px-3 py-2.5 text-sm font-semibold text-slate-100 transition hover:bg-slate-800/70",children:"Log Out"})})]})})}e.s(["PortalSidebar",()=>o])}]);