(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21509,e=>{"use strict";var t=e.i(43476),s=e.i(83009),r=e.i(18566),i=e.i(71645);e.s(["default",0,function({children:e}){let{user:c,loading:a}=(0,s.useAuth)(),l=(0,r.useRouter)();return((0,i.useEffect)(()=>{a||c||l.push("/login")},[c,a,l]),a)?(0,t.jsx)("div",{className:"spinner-overlay",children:(0,t.jsxs)("div",{style:{textAlign:"center"},children:[(0,t.jsx)("div",{className:"spinner"}),(0,t.jsx)("p",{className:"spinner-text",children:"Loading..."})]})}):c?(0,t.jsx)(t.Fragment,{children:e}):null}])},78928,e=>{"use strict";var t=e.i(43476),s=e.i(21509),r=e.i(22016);function i({title:e,icon:s,color:c,href:a}){return(0,t.jsxs)(r.default,{href:a,prefetch:!1,className:`${c} rounded-sm shadow-sm text-white p-4 flex items-center justify-between hover:opacity-90 transition-opacity cursor-pointer group relative overflow-hidden`,children:[(0,t.jsxs)("div",{className:"z-10",children:[(0,t.jsx)("h3",{className:"text-xl font-bold mb-1",children:e}),(0,t.jsx)("span",{className:"text-sm bg-black bg-opacity-20 px-2 py-1 rounded inline-block mt-1 group-hover:bg-opacity-30 transition-all",children:"Go to →"})]}),(0,t.jsx)("svg",{className:"w-16 h-16 opacity-30 absolute -right-2 -bottom-4 group-hover:scale-110 transition-transform",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:s})]})}e.s(["default",0,function(){return(0,t.jsx)(s.default,{children:(0,t.jsxs)("div",{className:"flex-grow flex flex-col min-w-0 bg-[#f4f7f6] min-h-full font-sans text-gray-800",children:[(0,t.jsxs)("div",{className:"px-6 pt-6",children:[(0,t.jsx)("h2",{className:"text-2xl font-normal text-gray-700",children:"Dashboard"}),(0,t.jsx)("hr",{className:"mt-4 border-gray-300"})]}),(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[(0,t.jsx)(i,{href:"/register",title:"Student Profile Details",icon:(0,t.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),color:"bg-[#0073b7]"}),(0,t.jsx)(i,{href:"/vacancy",title:"Apply for Vacancy",icon:(0,t.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}),color:"bg-[#00a65a]"}),(0,t.jsx)(i,{href:"/application-status",title:"Application Status",icon:(0,t.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2h12c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),color:"bg-[#f39c12]"}),(0,t.jsx)(i,{href:"/admit-card",title:"Admit Card",icon:(0,t.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),color:"bg-[#dd4b39]"})]}),(0,t.jsxs)("div",{className:"bg-white border border-gray-200 rounded-sm shadow-sm p-8 min-h-[400px] flex flex-col items-center justify-center text-gray-400",children:[(0,t.jsx)("i",{className:"fa-solid fa-chart-line text-6xl mb-4 opacity-20"}),(0,t.jsx)("p",{children:"Welcome to KMCH Portal. Select an option from the sidebar or above to begin."})]})]}),(0,t.jsx)("footer",{className:"bg-white border-t border-gray-200 px-6 py-3 text-xs text-gray-600 mt-auto",children:(0,t.jsx)("div",{className:"flex flex-col md:flex-row justify-between items-center text-center md:text-left",children:(0,t.jsxs)("p",{children:["सर्वाधिकार सुरक्षित © ",new Date().getFullYear()," कोकराझार मेडिकल कॉलेज एवं अस्पताल |"]})})})]})})}])}]);