PageSourceSearch

https://www.excelrs.dev/_next/static/chunks/app/page-8cf7dfa5e7599986.js

js excelrs.dev collected 2026-09-24 14:59:43 UTC 36,368 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{25925:function(e,t,s){Promise.resolve().then(s.bind(s,17658))},17658:function(e,t,s){"use strict";s.d(t,{default:function(){return ee}});var a=s(57437),l=s(58357),r=s(2265),i=s(96450),n=s(16463),o=s(86023),c=s(41395),d=s(99493),m=s(30500),x=s(66648),h=s(70518),u=s(87592),p=s(53267),g=s(82463);s(43034),s(54885),s(17322),s(30775);var f=s(87138),b=e=>{let{route:t}=e;return(0,a.jsx)(f.default,{href:t,children:(0,a.jsx)("span",{className:"text-sm text-gray-600 p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors cursor-pointer whitespace-nowrap",children:"View All →"})})},j=e=>{let{title:t="Trainings",showNavigation:s=!0,autoplay:i=!0,slidesPerView:o={mobile:1,tablet:2,desktop:3}}=e,c=(0,n.useRouter)(),[d,m]=(0,r.useState)([]),[f,j]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{let e=localStorage.getItem("auth-token"),t=await fetch("".concat(l.CT,"/trainings"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}),s=await t.json();m(s)}catch(e){console.error("Failed to fetch trainings:",e),m([])}finally{j(!1)}})()},[]);let v=e=>{c.push("/trainings/".concat(e._id))};return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:t}),s&&(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("button",{className:"training-prev-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(h.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)("button",{className:"training-next-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(u.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)(b,{route:"/trainings"})]})]}),f?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden shadow-lg animate-pulse",children:[(0,a.jsx)("div",{className:"h-32 bg-gray-300"}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded mb-2"}),(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4"})]})]},e))}):0===d.length?(0,a.jsx)("div",{className:"text-center py-8",children:(0,a.jsx)("p",{className:"text-gray-500",children:"No trainings available at the moment"})}):(0,a.jsx)(p.tq,{modules:[g.W_,g.tl,g.pt],spaceBetween:30,slidesPerView:1,navigation:!!s&&{prevEl:".training-prev-btn",nextEl:".training-next-btn"},pagination:{clickable:!0,dynamicBullets:!0},autoplay:!!i&&{delay:4e3,disableOnInteraction:!1},breakpoints:{640:{slidesPerView:o.mobile,spaceBetween:20},768:{slidesPerView:o.tablet,spaceBetween:30},1024:{slidesPerView:o.desktop,spaceBetween:30}},className:"trainings-swiper",children:d.map(e=>(0,a.jsx)(p.o5,{children:(0,a.jsxs)("div",{onClick:()=>v(e),className:"bg-white rounded-2xl overflow-hidden cursor-pointer hover:shadow-md shadow-lg transition-shadow h-full",children:[(0,a.jsx)("div",{className:"h-32 relative",children:(0,a.jsx)(x.default,{src:e.image||"/bannar1.jpg",alt:e.title,fill:!0,className:"object-cover"})}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("p",{className:"text-sm font-bold text-gray-900 mb-1",children:new Date(e.date).toLocaleDateString()}),(0,a.jsx)("h4",{className:"text-sm font-bold text-gray-900 line-clamp-2",children:e.title}),(0,a.jsxs)("p",{className:"text-xs text-gray-600 mt-1",children:["By ",e.trainer_name]})]})]})},e._id))})]})},v=e=>{let{title:t="Internships",showNavigation:s=!0,autoplay:i=!0,slidesPerView:o={mobile:1,tablet:2,desktop:3}}=e,c=(0,n.useRouter)(),[d,m]=(0,r.useState)([]),[f,j]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{let e=localStorage.getItem("auth-token"),t=await fetch("".concat(l.CT,"/internships"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}),s=await t.json();m(s)}catch(e){console.error("Failed to fetch internships:",e),m([])}finally{j(!1)}})()},[]);let v=e=>{c.push("/internships/".concat(e._id))};return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:t}),s&&(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("button",{className:"internship-prev-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(h.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)("button",{className:"internship-next-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(u.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)(b,{route:"/internships"})]})]}),f?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden shadow-lg animate-pulse",children:[(0,a.jsx)("div",{className:"h-32 bg-gray-300"}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded mb-2"}),(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4"})]})]},e))}):0===d.length?(0,a.jsx)("div",{className:"text-center py-8",children:(0,a.jsx)("p",{className:"text-gray-500",children:"No internships available at the moment"})}):(0,a.jsx)(p.tq,{modules:[g.W_,g.tl,g.pt],spaceBetween:30,slidesPerView:1,navigation:!!s&&{prevEl:".internship-prev-btn",nextEl:".internship-next-btn"},pagination:{clickable:!0,dynamicBullets:!0},autoplay:!!i&&{delay:4500,disableOnInteraction:!1},breakpoints:{640:{slidesPerView:o.mobile,spaceBetween:20},768:{slidesPerView:o.tablet,spaceBetween:30},1024:{slidesPerView:o.desktop,spaceBetween:30}},className:"internships-swiper",children:d.map(e=>(0,a.jsx)(p.o5,{children:(0,a.jsxs)("div",{onClick:()=>v(e),className:"bg-white rounded-2xl overflow-hidden cursor-pointer hover:shadow-md shadow-lg transition-shadow h-full",children:[(0,a.jsx)("div",{className:"h-32 relative",children:(0,a.jsx)(x.default,{src:e.image||"/bannar2.jpg",alt:e.title,fill:!0,className:"object-cover"})}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-sm font-bold text-gray-900 line-clamp-2 mb-2",children:e.title}),(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:["Duration: ",e.months," months"]})]})]})},e._id))})]})},N=s(85016),w=e=>{let{title:t="Competitions",showNavigation:s=!0,autoplay:i=!0,slidesPerView:o={mobile:1,tablet:2,desktop:3}}=e,c=(0,n.useRouter)(),[d,m]=(0,r.useState)([]),[f,j]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("".concat(l.CT,"/competitions")),t=await e.json();m(t)}catch(e){console.error("Failed to fetch competitions:",e),m([])}finally{j(!1)}})()},[]);let v=e=>{c.push("/competitions/".concat(e._id))};return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:t}),s&&(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("button",{className:"competition-prev-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(h.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)("button",{className:"competition-next-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(u.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)(b,{route:"/competitions"})]})]}),f?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden shadow-lg animate-pulse",children:[(0,a.jsx)("div",{className:"h-32 bg-gray-300"}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded mb-2"}),(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4"})]})]},e))}):0===d.length?(0,a.jsx)("div",{className:"text-center py-8",children:(0,a.jsx)("p",{className:"text-gray-500",children:"No competitions available at the moment"})}):(0,a.jsx)(p.tq,{modules:[g.W_,g.tl,g.pt],spaceBetween:30,slidesPerView:1,navigation:!!s&&{prevEl:".competition-prev-btn",nextEl:".competition-next-btn"},pagination:{clickable:!0,dynamicBullets:!0},autoplay:!!i&&{delay:5e3,disableOnInteraction:!1},breakpoints:{640:{slidesPerView:o.mobile,spaceBetween:20},768:{slidesPerView:o.tablet,spaceBetween:30},1024:{slidesPerView:o.desktop,spaceBetween:30}},className:"competitions-swiper",children:d.map(e=>{let t=new Date,s=e.registration_last_date?new Date(e.registration_last_date):null,l=s&&t>s?"expired":e.status,r=e.start_time&&""!==e.start_time.trim()?e.start_time:"11:00 AM";return(0,a.jsx)(p.o5,{children:(0,a.jsxs)("div",{onClick:()=>v(e),className:"bg-white rounded-2xl overflow-hidden cursor-pointer hover:shadow-md shadow-lg transition-shadow h-full",children:[(0,a.jsxs)("div",{className:"h-32 relative",children:[(0,a.jsx)(x.default,{src:e.image||"/bannar3.jpg",alt:e.title,fill:!0,className:"object-cover"}),(0,a.jsx)("div",{className:"absolute top-2 right-2",children:(0,a.jsx)(N.Z,{className:"text-yellow-500",size:20})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-sm font-bold text-gray-900 line-clamp-2 mb-2",children:e.title}),(0,a.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,a.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-medium ".concat("active"===l?"bg-green-100 text-green-600":"bg-gray-100 text-gray-600"),children:l})}),(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:["Starts On : ",e.start_date?new Date(e.start_date).toLocaleDateString():"N/A"," at ",r]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:["Expires On : ",e.registration_last_date?new Date(e.registration_last_date).toLocaleDateString():"N/A"]}),(0,a.jsxs)("p",{className:"text-xs text-gray-600 mb-1",children:["Prize Money : ",e.prizeMoney||"N/A"]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:["Mode : ",e.mode]})]})]})},e._id)})})]})},y=s(7746),k=s(49761),S=e=>{let{title:t="Hackathons",showNavigation:s=!0,autoplay:i=!0,slidesPerView:o={mobile:1,tablet:2,desktop:3}}=e,c=(0,n.useRouter)(),[d,m]=(0,r.useState)([]),[f,j]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("".concat(l.CT,"/hackathons")),t=await e.json();m(Array.isArray(t)?t:[])}catch(e){console.error("Failed to fetch hackathons:",e),m([])}finally{j(!1)}})()},[]);let v=e=>{c.push((0,k.t)(e))},w=e=>{let t=new Date,s=new Date(e.startDate),a=new Date(e.endDate);return t<s?{text:"upcoming",color:"bg-blue-100 text-blue-600"}:t>=s&&t<=a?{text:"ongoing",color:"bg-green-100 text-green-600"}:{text:"completed",color:"bg-gray-100 text-gray-600"}};return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:t}),s&&(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("button",{className:"hackathon-prev-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(h.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)("button",{className:"hackathon-next-btn p-2 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors",children:(0,a.jsx)(u.Z,{size:20,className:"text-gray-600"})}),(0,a.jsx)(b,{route:"/hackathons"})]})]}),f?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden shadow-lg animate-pulse",children:[(0,a.jsx)("div",{className:"h-32 bg-gray-300"}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded mb-2"}),(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4"})]})]},e))}):0===d.length?(0,a.jsx)("div",{className:"text-center py-8",children:(0,a.jsx)("p",{className:"text-gray-500",children:"No hackathons available at the moment"})}):(0,a.jsx)(p.tq,{modules:[g.W_,g.tl,g.pt],spaceBetween:30,slidesPerView:1,navigation:!!s&&{prevEl:".hackathon-prev-btn",nextEl:".hackathon-next-btn"},pagination:{clickable:!0,dynamicBullets:!0},autoplay:!!i&&{delay:5e3,disableOnInteraction:!1},breakpoints:{640:{slidesPerView:o.mobile,spaceBetween:20},768:{slidesPerView:o.tablet,spaceBetween:30},1024:{slidesPerView:o.desktop,spaceBetween:30}},className:"hackathons-swiper",children:d.map(e=>{let t=w(e);return(0,a.jsx)(p.o5,{children:(0,a.jsxs)("div",{onClick:()=>v(e),className:"bg-white rounded-2xl overflow-hidden cursor-pointer hover:shadow-md shadow-lg transition-shadow h-full",children:[(0,a.jsxs)("div",{className:"h-32 relative",children:[(0,a.jsx)(x.default,{src:e.image||"/bannar1.jpg",alt:e.title,fill:!0,className:"object-cover"}),(0,a.jsx)("div",{className:"absolute top-2 right-2",children:(0,a.jsx)(y.Z,{className:"text-purple-500",size:20})})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h4",{className:"text-sm font-bold text-gray-900 line-clamp-2 mb-2",children:e.title}),(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("span",{className:"px-2 py-1 rounded-full text-xs font-medium ".concat(t.color),children:t.text}),e.prizePool&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(N.Z,{className:"text-yellow-500",size:14}),(0,a.jsxs)("span",{className:"text-xs text-gray-600",children:["₹",e.prizePool]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,a.jsx)(y.Z,{className:"text-purple-500",size:12}),(0,a.jsx)("p",{className:"text-xs text-gray-600",children:e.theme})]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500 mb-1",children:[new Date(e.startDate).toLocaleDateString()," - ",new Date(e.endDate).toLocaleDateString()]}),(0,a.jsx)("p",{className:"text-xs text-gray-500",children:e.venue})]})]})},e._id)})})]})};let C=[{title:"Get Certificates",description:"Earn globally recognized certificates and diplomas for free.",image:"/certificate_template.png",alt:"Certificates",buttonText:"Learn More",buttonColor:"bg-teal-50 text-teal-700 hover:bg-teal-100",hoverText:"group-hover:text-teal-600"},{title:"AI Squad \uD83E\uDD16",description:"Access advanced AI tools and projects for modern development.",image:"/excelrs-logo.png",alt:"AI Squad",buttonText:"Explore AI",buttonColor:"bg-purple-50 text-purple-700 hover:bg-purple-100",hoverText:"group-hover:text-purple-600",isSpecial:!0},{title:"Join Community",description:"Connect with learners, share feedback, and grow together.",image:"/lawaziatech.png",alt:"Community",buttonText:"Learn More",buttonColor:"bg-pink-50 text-pink-700 hover:bg-pink-100",hoverText:"group-hover:text-pink-600"}];var I=()=>(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 py-8 animate-fade-in delay-600",children:C.map((e,t)=>(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 flex flex-col items-center hover:scale-105 transition-transform group relative",children:[(0,a.jsx)("div",{className:"mb-4 w-full h-48 flex items-center justify-center overflow-hidden",children:(0,a.jsx)("img",{src:e.image,alt:e.alt,className:"max-h-full max-w-full object-contain"})}),(0,a.jsx)("h2",{className:"text-xl font-bold mt-4 mb-2 transition-colors ".concat(e.hoverText),children:e.title}),(0,a.jsx)("p",{className:"text-gray-500 text-center",children:e.description})]},t))}),P=s(17672);function _(){return(0,a.jsx)("div",{className:"flex flex-col md:flex-col gap-8 py-8 animate-fade-in delay-600",children:(0,a.jsx)(P.Link,{href:"/idea-board",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 flex flex-col items-center hover:scale-105 transition-transform group relative",children:[(0,a.jsx)("div",{className:"mb-4 w-full h-48 flex items-center justify-center overflow-hidden",children:(0,a.jsx)("img",{src:"/idea.jpg",alt:"",className:"max-h-full max-w-full object-contain"})}),(0,a.jsx)("h1",{className:"text-xl font-bold mt-4 mb-2 transition-colors",children:"Idea Board"}),(0,a.jsx)("p",{className:"text-gray-500 text-center",children:"From concept to reality—start here."})]})})})}function E(){return(0,a.jsx)("div",{className:"flex flex-col md:flex-col gap-8 py-8 animate-
1fade-in delay-600",children:(0,a.jsx)(P.Link,{href:"/tasks",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 flex flex-col items-center hover:scale-105 transition-transform group relative w-full",children:[(0,a.jsx)("div",{className:"mb-4 w-full h-48 flex items-center justify-center overflow-hidden",children:(0,a.jsx)("img",{src:"/taskboard.png",alt:"",className:"max-h-full max-w-full object-contain"})}),(0,a.jsx)("h1",{className:"text-xl font-bold mt-4 mb-2 transition-colors",children:"Task Board"}),(0,a.jsx)("p",{className:"text-gray-500 text-center",children:"Every task completed brings you closer to your goals"})]})})})}function T(){return(0,a.jsx)("div",{className:"flex flex-col md:flex-col gap-8 py-8 animate-fade-in delay-600",children:(0,a.jsx)(P.Link,{href:"/leaderboard",children:(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-8 flex flex-col items-center hover:scale-105 transition-transform group relative",children:[(0,a.jsx)("div",{className:"mb-4 w-full h-48 flex items-center justify-center overflow-hidden",children:(0,a.jsx)("img",{src:"/leaderboard.jpg",alt:"",className:"max-h-full max-w-full object-contain"})}),(0,a.jsx)("h1",{className:"text-xl font-bold mt-4 mb-2 transition-colors",children:"LeaderBoard"}),(0,a.jsx)("p",{className:"text-gray-500 text-center",children:"Track your rank and rise among top performers."})]})})})}var Z=e=>{var t,s;let{candidateData:l,hideProfileCard:r=!1}=e,i=(0,n.useRouter)();return l?(0,a.jsxs)("div",{className:"min-h-screen",children:[(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-2"}),!r&&(0,a.jsxs)("div",{className:"bg-gradient-to-br from-white via-gray-50 to-white rounded-2xl shadow-xl p-6 mb-6 w-full max-w-md 
1sm:max-w-[80%] mx-auto animate-fade-in transition-transform hover:scale-105 hover:shadow-2xl border border-gray-200 hover:border-teal-400",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-6 justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-6 flex-1",children:[(0,a.jsx)("div",{className:"relative w-20 h-19 sm:w-24 sm:h-24 rounded-full border-4 border-teal-400 shadow-md overflow-hidden hover:border-yellow-400 transition-colors duration-300",children:(0,a.jsx)(x.default,{src:l.photoUrl||l.image||"/user.webp",alt:l.fullName,width:96,height:96,className:"object-cover w-full h-full"})}),(0,a.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 tracking-tight",children:l.fullName}),(null==l?void 0:null===(t=l.careerStatus)||void 0===t?void 0:t.flag)&&(0,a.jsx)("span",{className:"inline-flex items-center bg-gradient-to-r from-yellow-400 to-orange-500 text-white px-2 py-0.5 rounded-full font-bold text-xs shadow-md border border-white",children:l.careerStatus.flag})]}),(null==l?void 0:null===(s=l.careerStatus)||void 0===s?void 0:s.primary)&&(0,a.jsx)("p",{className:"text-xs text-blue-700 font-medium mt-1",children:l.careerStatus.primary}),(0,a.jsxs)("p",{className:"text-gray-500 mt-1 text-sm",children:[l.experience," ","1"===l.experience?"year":"years"," experience"]})]})]}),(0,a.jsx)("div",{className:"flex items-center justify-center bg-gradient-to-r from-teal-400 to-cyan-500 px-3 py-2 sm:px-4 sm:py-3 rounded-xl shadow-lg border-2 border-teal-300 h-fit",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"text-[10px] sm:text-xs font-semibold text-white/90",children:"Profile Score"}),(0,a.jsx)("span",{className:"text-lg sm:text-xl font-bold text-white",children:(null==l?void 0:l.profileScore)||0})]})})]}),(0,a.jsx)("button",{onClick:()=>{(null==l?void 0:l.username)&&i.push("/".concat(l.username))},className:"w-full mt-6 py-3 rounded-xl bg-gradient-to-r from-teal-400 to-teal-600 text-white font-semibold tracking-wide shadow hover:from-teal-500 hover:to-teal-700 transition-all duration-300",children:"View Profile"})]}),(0,a.jsx)(I,{}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-8 justify-center p-4",children:[(0,a.jsx)("div",{className:"flex-1 min-w-[320px] max-w-lg",children:(0,a.jsx)(T,{})}),(0,a.jsx)("div",{className:"flex-1 min-w-[320px] max-w-lg",children:(0,a.jsx)(E,{})}),(0,a.jsx)("div",{className:"flex-1 min-w-[320px] max-w-lg",children:(0,a.jsx)(_,{})})]}),(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(j,{title:"Trainings"})}),(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(v,{title:"Internships"})}),(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(w,{title:"Competitions"})}),(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(S,{title:"Hackathons"})})]}):(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-teal-600"})})},B=s(83220),z=s(51432),D=s(22023);let A=[{title:"My Developers",description:"Hired people, billing mode, and seat status",href:"/my-developers",icon:B.Z},{title:"My Contracts",description:"One paper per developer — current and history",href:"/my-contracts",icon:z.Z},{title:"My Invoices",description:"Unpaid first, then paid — shareable paper invoice",href:"/my-invoices",icon:D.Z}];function V(e){let{clientName:t}=e;return(0,a.jsxs)("div",{className:"w-full max-w-5xl mx-auto px-4 py-8",children:[(0,a.jsxs)("div",{className:"mb-10",children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-gray-800",children:"Staffing"}),(0,a.jsx)("p",{className:"text-gray-500 mt-2",children:t?"Hi ".concat(t.split(" ")[0]," — view your team, contracts, and invoices."):"View your hired developers, contracts, and invoices."})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:A.map(e=>{let t=e.icon;return(0,a.jsxs)(f.default,{href:e.href,className:"group rounded-2xl border border-gray-200 bg-white p-6 shadow-sm transition hover:-translate-y-0.5 hover:border-teal-400 hover:shadow-md",children:[(0,a.jsx)("div",{className:"mb-4 inline-flex rounded-xl bg-teal-50 p-3 text-teal-700 group-hover:bg-teal-100",children:(0,a.jsx)(t,{className:"h-6 w-6"})}),(0,a.jsx)("h2",{className:"text-lg font-semibold text-gray-800",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:e.description})]},e.href)})})]})}var L=s(45193);let M=[{title:"My Engagements",description:"Clients you’re assigned to, rates, and status",href:"/my-engagements",icon:c.Z},{title:"Timesheets",description:"Hours logged on your engagements",href:"/my-timesheets",icon:L.Z}];function H(e){let{developerName:t}=e;return(0,a.jsxs)("div",{className:"w-full max-w-5xl mx-auto px-4 py-8",children:[(0,a.jsxs)("div",{className:"mb-10",children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-gray-800",children:"Developer"}),(0,a.jsx)("p",{className:"text-gray-500 mt-2",children:t?"Hi ".concat(t.split(" ")[0]," — your client engagements and hours."):"Your client engagements and hours."})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:M.map(e=>{let t=e.icon;return(0,a.jsxs)(f.default,{href:e.href,className:"group rounded-2xl border border-gray-200 bg-white p-6 shadow-sm transition hover:-translate-y-0.5 hover:border-teal-400 hover:shadow-md",children:[(0,a.jsx)("div",{className:"mb-4 inline-flex rounded-xl bg-teal-50 p-3 text-teal-700 group-hover:bg-teal-100",children:(0,a.jsx)(t,{className:"h-6 w-6"})}),(0,a.jsx)("h2",{className:"text-lg font-semibold text-gray-800",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:e.description})]},e.href)})})]})}var O=s(66706);function R(e){let{adminName:t}=e,[s,i]=(0,r.useState)(null),[n,o]=(0,r.useState)(!0),[c,d]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),[h,u]=(0,r.useState)(null),p=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?d(!0):o(!0),x(null);try{var t;
1let e=await fetch("".concat(l.CT,"/enrolls/campus-roster"),{headers:function(){let e={"Content-Type":"application/json"},t=localStorage.getItem("auth-token")||"";return t&&(e.Authorization="Bearer ".concat(t)),e}()}),s=await e.json().catch(()=>({}));if(!e.ok)throw Error(s.message||"Could not load registrations");if(i(s),null===(t=s.trainings)||void 0===t?void 0:t[0]){let e=s.trainings[0];u(t=>{var s,a,l;return t||{trainingId:e.trainingId,batchId:null!==(l=null===(a=e.batches)||void 0===a?void 0:null===(s=a[0])||void 0===s?void 0:s.batchId)&&void 0!==l?l:null}})}}catch(e){x((null==e?void 0:e.message)||"Could not load registrations")}finally{o(!1),d(!1)}};(0,r.useEffect)(()=>{p()},[]);let g=(null==s?void 0:s.trainings.find(e=>e.trainingId===(null==h?void 0:h.trainingId)))||null,f=(null==g?void 0:g.batches.find(e=>e.batchId===(null==h?void 0:h.batchId)))||(null==g?void 0:g.batches[0])||null;return(0,a.jsxs)("div",{className:"w-full max-w-5xl mx-auto px-4 py-8",children:[(0,a.jsxs)("div",{className:"mb-8 flex flex-wrap items-start justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-gray-800",children:"Campus"}),(0,a.jsxs)("p",{className:"text-gray-500 mt-2",children:[t?"Hi ".concat(t.split(" ")[0]," — "):"","registrations for your college only."]})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>p(!0),disabled:c,className:"flex items-center gap-2 px-3 py-2 rounded-lg border-2 border-teal-600 bg-white text-teal-700 font-semibold shadow-sm hover:bg-teal-50 disabled:opacity-60 transition",children:[(0,a.jsx)(O.Z,{className:"w-4 h-4 ".concat(c?"animate-spin":""),"aria-hidden":!0}),"Refresh"]})]}),n?(0,a.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-teal-600"})}):m?(0,a.jsxs)("div",{className:"bg-white rounded-xl border p-6 text-center text-gray-600",children:[(0,a.jsx)("p",{className:"mb-1 font-semibold text-red-600",children:m}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Ask the office to link your account to your college if this keeps happening."})]}):s&&0!==s.trainings.length?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:s.trainings.map(e=>e.batches.map(t=>{var s;let l=(null==h?void 0:h.trainingId)===e.trainingId&&(null==h?void 0:h.batchId)===t.batchId;return(0,a.jsxs)("button",{type:"button",onClick:()=>u({trainingId:e.trainingId,batchId:t.batchId}),className:"rounded-full border px-4 py-2 text-sm font-medium transition ".concat(l?"border-teal-600 bg-teal-50 text-teal-800":"border-gray-200 bg-white text-gray-600 hover:border-teal-300"),children:[e.title," \xb7 ",t.label,(0,a.jsxs)("span",{className:"ml-2 text-gray-500",children:["(",t.count,")"]})]},"".concat(e.trainingId,"-").concat(null!==(s=t.batchId)&&void 0!==s?s:"none"))}))}),g&&f&&(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 md:p-6 shadow-sm",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:g.title}),(0,a.jsxs)("p",{className:"text-gray-500",children:[f.label," \xb7 ",(0,a.jsx)("span",{className:"font-semibold",children:f.count})," registered"]})]}),0===f.enrollments.length?(0,a.jsx)("p",{className:"text-gray-500",children:"No students in this batch yet."}):(0,a.jsx)("div",{className:"overflow-x-auto max-h-[28rem] overflow-y-auto",children:(0,a.jsxs)("table",{className:"min-w-full text-sm",children:[(0,a.jsx)("thead",{className:"sticky top-0 bg-white",children:(0,a.jsxs)("tr",{className:"text-left border-b",children:[(0,a.jsx)("th",{className:"p-2",children:"Name"}),(0,a.jsx)("th",{className:"p-2",children:"Phone"}),(0,a.jsx)("th",{className:"p-2",children:"Email"}),(0,a.jsx)("th",{className:"p-2",children:"Payment"})]})}),(0,a.jsx)("tbody",{children:f.enrollments.map(e=>(0,a.jsxs)("tr",{className:"border-b last:border-0",children:[(0,a.jsx)("td",{className:"p-2 font-medium",children:e.name||"—"}),(0,a.jsx)("td",{className:"p-2",children:e.phone||"—"}),(0,a.jsx)("td",{className:"p-2",children:e.email||"—"}),(0,a.jsx)("td",{className:"p-2",children:(0,a.jsx)("span",{className:"rounded px-2 py-0.5 text-xs font-semibold ".concat("paid"===e.paymentStatus?"bg-emerald-50 text-emerald-700":"bg-amber-50 text-amber-700"),children:"paid"===e.paymentStatus?"Paid":"Due"})})]}
1,e.userId))})]})})]})]}):(0,a.jsx)("div",{className:"bg-white rounded-xl border p-6 text-center text-gray-500",children:"No registrations yet for your college."})]})}var U=s(90047),q=s(62818),F=s(26945),G=s(28490),J=s(95438),W=s(62561),Y=s(95085);let K=[{title:"Trainings",description:"Manage trainings and enrollments",href:"/admin?module=Trainings",icon:U.Z},{title:"Internships",description:"Manage internships and enrollments",href:"/admin?module=Internships",icon:c.Z},{title:"Competitions",description:"Manage competitions and results",href:"/admin?module=Competitions",icon:d.Z},{title:"Certificates",description:"Issue and review certificates",href:"/admin?module=Certificates",icon:q.Z},{title:"Projects",description:"Manage projects and assignments",href:"/admin?module=Projects",icon:F.Z},{title:"Workshops",description:"Manage workshops and sessions",href:"/admin?module=Workshops",icon:G.Z},{title:"Tasks",description:"Manage tasks and submissions",href:"/admin?module=Tasks",icon:W.Z},{title:"Pending Submissions",description:"Review pending workshop submissions",href:"/admin?module=Pending%20Submissions",icon:Y.Z},{title:"Staffing",description:"Assign developers, timesheets, invoices",href:"/admin?module=Staffing",icon:B.Z},{title:"Powr",description:"Users and forms (platform identity)",href:"/powr-admin",icon:J.Z}];function X(e){let{adminName:t}=e;return(0,a.jsxs)("div",{className:"w-full max-w-5xl mx-auto px-4 py-8",children:[(0,a.jsxs)("div",{className:"mb-10",children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-gray-800",children:"Admin"}),(0,a.jsx)("p",{className:"text-gray-500 mt-2",children:t?"Hi ".concat(t.split(" ")[0]," — manage Excelrs programs, users, and staffing."):"Manage Excelrs programs, users, and staffing."})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:K.map(e=>{let t=e.icon;return(0,a.jsxs)(f.default,{href:e.href,className:"group rounded-2xl border border-gray-200 bg-white p-6 shadow-sm transition hover:-translate-y-0.5 hover:border-indigo-400 hover:shadow-md",children:[(0,a.jsx)("div",{className:"mb-4 inline-flex rounded-xl bg-indigo-50 p-3 text-indigo-700 group-hover:bg-indigo-100",children:(0,a.jsx)(t,{className:"h-6 w-6"})}),(0,a.jsx)("h2",{className:"text-lg font-semibold text-gray-800",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:e.description})]},e.href)})})]})}var $=s(7824),Q=s(35549);function ee(){let e=(0,n.useRouter)(),{user:t,isHydrated:s}=(0,i.useAuthStore)(),[x,h]=(0,r.useState)("dashboard"),[u,p]=(0,r.useState)({totalTrainings:0,totalInternships:0,totalCompetitions:0,totalStudents:0}),[g,f]=(0,r.useState)(null),[b,j]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{if(s&&!t){e.push("/login");return}!s||!t||(0,Q.GJ)(t)||(0,Q.JU)(t)||(0,Q.IK)(t)||(0,Q.Sk)(t)||v()},[s,t,e]),!s||!t)return(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-teal-600"})});o.Z,c.Z,d.Z,m.Z;let v=async()=>{try{j(!0);let t=localStorage.getItem("auth-token");if(!t){console.warn("No auth token found");return}let s=l.CT,a=await fetch("".concat(s,"/profiles/me"),{method:"GET",headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache"},cache:"no-store"});if(a.ok){let e=await a.json();f(e)}else 401===a.status?(localStorage.removeItem("auth-token"),e.push("/login")):console.error("Failed to fetch profile data:",a.status)}catch(e){console.error("Error fetching candidate data:",e)}finally{j(!1)}};return(0,Q.GJ)(t)?(0,a.jsx)($.default,{currentPath:"/",children:(0,a.jsx)(X,{adminName:t.fullName||t.username||void 0})}):(0,Q.JU)(t)?(0,a.jsx)($.default,{currentPath:"/",children:(0,a.jsx)(V,{clientName:t.fullName||t.username||void 0})}):(0,Q.Sk)(t)?(0,a.jsx)($.default,{currentPath:"/",children:(0,a.jsx)(H,{developerName:t.fullName||t.username||void 0})}):(0,Q.IK)(t)?(0,a.jsx)($.default,{currentPath:"/",children:(0,a.jsx)(R,{adminName:t.fullName||t.username||void 0})}):(0,a.jsxs)($.default,{currentPath:"/",children:[(0,a.jsxs)("div",{className:"w-full relative flex flex-col md:flex-row items-center justify-between pt-6 pb-6 mb-6 overflow-hidden rounded-3xl shadow-2xl group bg-gradient-to-br from-gray-900 via-indigo-900 to-teal-900",children:[(0,a.jsx)("div",{className:"absolute inset-0 w-full h-full -z-10 bg-gradient-to-r from-pink-500 via-yellow-400 to-blue-500 blur-2xl opacity-60 animate-gradient-move"}),(0,a.jsx)("div",{className:"absolute inset-0 w-full h-full -z-10 bg-gradient-to-r from-indigo-800 to-teal-700 backdrop-blur-2xl rounded-3xl border border-white border-opacity-20"}),(0,a.jsx)("img",{src:"/certificate_template.png",alt:"Certificate",className:"absolute left-6 top-6 w-16 h-16 animate-float drop-shadow-xl opacity-80"}),(0,a.jsx)("img",{src:"/trainingHero.svg",alt:"Hero",className:"absolute right-6 bottom-6 w-24 h-24 animate-float z-10 drop-shadow-xl group-hover:scale-110 transition-transform"}),(0,a.jsx)("div",{className:"absolute top-6 left-1/2 w-24 h-24 bg-gradient-to-r from-teal-400 via-blue-100 to-indigo-400 opacity-30 rounded-full blur-3xl animate-pulse"}),(0,a.jsx)("div",{className:"absolute bottom-6 right-1/3 w-20 h-20 bg-gradient-to-r from-yellow-300 via-pink-200 to-blue-200 opacity-20 rounded-full blur-2xl animate-spin-slow"}),(0,a.jsxs)("div",{className:"relative z-20 flex flex-col items-center justify-center w-full md:w-2/3",children:[(0,a.jsx)("h1",{className:"text-2xl md:text-3xl font-extrabold mb-5 px-6 py-3 rounded-2xl bg-gradient-to-r from-gray-900 via-indigo-900 to-teal-900 text-white drop-shadow-2xl animate-fade-in group-hover:text-teal-300 transition-colors shadow-2xl border-4 border-white border-opacity-10",children:"Unlock Your Potential with Excelrs"}),(0,a.jsx)("p",{className:"text-base md:text-lg text-center text-white/90 max-w-xl px-5 py-3 rounded-2xl bg-white/10 backdrop-blur-md border border-white/20 shadow-xl animate-fade-in delay-200",children:"Boost your Profile Score. Join our trainings, internships, competitions, and hackathons to earn more points. The higher your score, the closer you are to the top of the Leaderboard. Your profile is shared with clients and companies, so keep it updated at all times. A strong profile means better opportunities!"})]}),(0,a.jsx)("div",{className:"relative z-20 hidden md:flex flex-col items-center justify-center w-1/3",children:(0,a.jsx)("img",{src:"/trainingHero.svg",alt:"Learning Illustration",className:"w-40 h-40 object-contain animate-float drop-shadow-2xl"})})]}),(0,a.jsxs)("main",{className:"py-1",children:[(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-2 lg:px-8"}),(0,a.jsx)(Z,{candidateData:g})]})]})}},58357:function(e,t,s){"use strict";s.d(t,{CT:function(){return a},bz:function(){return r},nL:function(){return l}});
1let a=(s(20357).env.NEXT_PUBLIC_CLOUD_API_URL||"https://excelrs-cloud-new-1069037816864.asia-south1.run.app").replace(/\/+$/,""),l="https://powr-api.lawazia.tech";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").replace(/^\/+/,"");return t?"".concat(l,"/").concat(t):l}},49761:function(e,t,s){"use strict";function a(e){var t;let s=(null===(t=e.slug)||void 0===t?void 0:t.trim())||e._id;return"/hackathons/".concat(s)}s.d(t,{t:function(){return a}})},30775:function(){}},function(e){e.O(0,[342,8153,6740,231,4868,6575,6648,9617,6692,4439,1921,7824,2971,7023,1744],function(){return e(e.s=25925)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.