1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{52467:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/results",function(){return a(5132)}])},89980:function(e,t,a){"use strict";var r=a(85893),s=a(1822),l=a.n(s),o=a(11163),n=a(41664),i=a.n(n);t.Z=()=>{let{asPath:e}=(0,o.useRouter)(),t=e.split("?")[0].split("/").filter(e=>e);return(0,r.jsxs)("nav",{"aria-label":"breadcrumb",className:"jsx-f64c98b8af315abd",children:[(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://lakshyacommerce.com/"},...t.map((e,a)=>{let r="https://lakshyacommerce.com/".concat(t.slice(0,a+1).join("/"));return{"@type":"ListItem",position:a+2,name:e.replace(/-/g," "),item:r}})]})},className:"jsx-f64c98b8af315abd"}),(0,r.jsxs)("ol",{className:"jsx-f64c98b8af315abd",children:[(0,r.jsx)("li",{className:"jsx-f64c98b8af315abd",children:(0,r.jsx)(i(),{legacyBehavior:!0,href:"/",className:"breadcrumb-link",children:"Home"})}),t.map((e,a)=>{let s="/".concat(t.slice(0,a+1).join("/")),l=e.replace(/-/g," ");return(0,r.jsxs)(r.Fragment,{children:[">",(0,r.jsxs)("li",{className:"jsx-f64c98b8af315abd",children:[(0,r.jsx)(i(),{legacyBehavior:!0,href:s,children:a<t.length-1?(0,r.jsx)("a",{className:"jsx-f64c98b8af315abd breadcrumb-link",children:l}):(0,r.jsx)("span",{className:"jsx-f64c98b8af315abd breadcrumb-current",children:"course"===l||"courses"===l?l:l.includes("course")?l.replace("course","").trim().toUpperCase():l.replace("course","").trim().toUpperCase().toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")})}),a<t.length-1&&(0,r.jsx)("span",{className:"jsx-f64c98b8af315abd breadcrumb-separator",children:" "})]},s)]})})]}),(0,r.jsx)(l(),{id:"f64c98b8af315abd",children:"nav.jsx-f64c98b8af315abd{padding:1rem;background:#f8f9fa;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}ol.jsx-f64c98b8af315abd{list-style:none;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:.5rem;margin:0;padding:0}li.jsx-f64c98b8af315abd{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.breadcrumb-link.jsx-f64c98b8af315abd{text-decoration:none;text-transform:capitalize;color:#6c757d;font-weight:500}.breadcrumb-link.jsx-f64c98b8af315abd:hover{text-decoration:none}.breadcrumb-current.jsx-f64c98b8af315abd{text-transform:capitalize;color:#6c757d;font-weight:500}.breadcrumb-separator.jsx-f64c98b8af315abd{color:#6c757d}"})]})}},752:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var r=a(85893);a(11163);var s=a(67294),l=a(41664),o=a.n(l),n=a(87066),i=a(36944),c=a(63430),d=a(25675),m=a.n(d);let p={"Content-Type":"multipart/form-data",Authorization:i.E0};function x(e){let{props:t}=e,{queryString:a,handleCloseModal:l}=t,[d,x]=(0,s.useState)(),[u,b]=(0,s.useState)(),[h,g]=(0,s.useState)(!1),f=(0,s.useRef)(null),y=async()=>{let e=await n.Z.get("".concat(i.T5,"home/generalData"),{headers:p,withCredentials:!0}).catch(e=>console.log(e)),t=await e.data;t.setting&&(x(t.setting),b(null==t?void 0:t.contactuspage[0].contactus_image))},v=()=>{l()};return(0,s.useEffect)(()=>{y()},[]),(0,s.useEffect)(()=>{if(!f.current||h)return;let e=new IntersectionObserver(t=>{t[0].isIntersecting&&(g(!0),e.disconnect())},{rootMargin:"300px"});return e.observe(f.current),()=>e.disconnect()},[h]),(0,r.jsx)("div",{children:(0,r.jsx)("section",{className:"home-page callbackSection",children:(0,r.jsx)("div",{className:"containerFull",children:(0,r.jsxs)("div",{className:"row align-items-center callbackWrapper",children:[(0,r.jsx)("div",{className:"col-lg-6 order-lg-1 order-1",children:(0,r.jsxs)("div",{className:"callbackImageBox",children:[u&&(0,r.jsx)(m(),{src:i.z0+u,alt:"lakshya",width:600,height:500,loading:"lazy",className:"img-fluid"}),(0,r.jsxs)("div",{className:"callbackContactCard",children:[(0,r.jsx)("span",{className:"contactLine"}),(0,r.jsxs)("div",{className:"callform",children:[(0,r.jsx)("p",{children:(0,r.jsx)(o(),{legacyBehavior:!0,href:"tel:".concat(d?d[0].phone:""),children:(0,r.jsx)("a",{children:d?d[0].phone:""})})}),(0,r.jsx)("p",{children:(0,r.jsx)(o(),{legacyBehavior:!0,href:"mailto:".concat(d?d[0].email:""),children:(0,r.jsx)("a",{children:d?d[0].email:""})})})]})]})]})}),(0,r.jsx)("div",{className:"col-lg-6 order-lg-2 order-2",children:(0,r.jsx)("div",{className:"callbackFormBox",ref:f,children:h?(0,r.jsx)(c.Z,{props:{type:"div",queryString:a,handleCloseModal:()=>v()}}):(0,r.jsx)("div",{style:{minHeight:480},"aria-hidden":"true"})})})]})})})})}},5132:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return B},default:function(){return R}});var r=a(85893),s=a(9008),l=a.n(s),o=a(87066),n=a(36944),i=a(30681),c=a(77575),d=a(752);a(89980);var m=a(63430),p=a(67294),x=a(89508),u=a(30965),b=a(94829),h=a(76562),g=
1a(47963),f=a(91526),y=a(54119),v=a(7188),j=a(53585),w=a(84672),k=a(28154),N=a(51568),C=a(78088),S=a(93165),_=a(25482),A=a(19967),F=a(65677),Z=a(81194),L=a(47553),I=a(20245);let E={"Content-Type":"multipart/form-data",Authorization:n.E0};function z(e){return e?e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim():""}function M(e){let{page:t,isDarkBg:a=!0}=e,s=(0,p.useMemo)(()=>[{icon:b.Z,value:null==t?void 0:t.main_number,suffix:"+",label:(null==t?void 0:t.main_label)||"Students Qualified",description:(null==t?void 0:t.main_description)||"",gradientFrom:"#feda2d",gradientTo:"#ffc818"},{icon:h.Z,value:null==t?void 0:t.national_number,suffix:"+",label:(null==t?void 0:t.national_label)||(null==t?void 0:t.national_text),description:(null==t?void 0:t.national_description)||"",gradientFrom:"#45afe3",gradientTo:"#00528a"},{icon:g.Z,value:null==t?void 0:t.global_number,suffix:"+",label:(null==t?void 0:t.global_label)||(null==t?void 0:t.global_text),description:(null==t?void 0:t.global_description)||"",gradientFrom:"#26a19d",gradientTo:"#7fbdad"},{icon:f.Z,value:null==t?void 0:t.pass_rate,suffix:"%",label:null==t?void 0:t.pass_rate_label,description:(null==t?void 0:t.pass_rate_text)||"",gradientFrom:"#bfe0be",gradientTo:"#26a19d"}].filter(e=>void 0!==e.value&&null!==e.value&&""!==e.value),[t]),[l,o]=(0,p.useState)(0);if((0,p.useEffect)(()=>{if(s.length<2)return;let e=setInterval(()=>{o(e=>(e+1)%s.length)},3e3);return()=>clearInterval(e)},[s.length]),0===s.length)return null;let n=s[l],i=n.icon;return(0,r.jsxs)("div",{id:"stats-banner-container",className:"flex flex-col items-center justify-center min-h-[160px] text-center max-w-xl mx-auto px-4 select-none",children:[(0,r.jsx)("div",{className:"w-full relative overflow-hidden flex items-center justify-center min-h-[120px]",children:(0,r.jsx)(x.M,{mode:"wait",children:(0,r.jsxs)(u.E.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},exit:{opacity:0,y:-15},transition:{duration:.5,ease:"easeInOut"},className:"flex flex-col items-center text-center w-full",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3.5 mb-2.5 justify-center",children:[(0,r.jsxs)("span",{className:"text-4xl sm:text-6xl font-black font-display tracking-tight",style:{backgroundImage:"linear-gradient(to right, ".concat(n.gradientFrom,", ").concat(n.gradientTo,")"),WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent",color:n.gradientTo},children:[n.value,n.suffix]}),(0,r.jsx)("div",{className:"p-2 rounded-full ".concat(a?"bg-white/10 text-primary-gold":"bg-slate-100 text-primary-darkblue"," backdrop-blur-xs"),children:(0,r.jsx)(i,{className:"w-5 h-5 sm:w-6 sm:h-6 stroke-[2.5]"})})]}),(0,r.jsx)("h4",{className:"text-sm sm:text-base font-bold tracking-wider uppercase ".concat(a?"text-white":"text-slate-800"," font-sans"),children:n.label}),n.description&&(0,r.jsx)("p",{className:"text-xs sm:text-sm font-medium mt-1 max-w-md ".concat(a?"text-slate-300":"text-slate-500"," font-sans"),children:n.description})]},l)})}),s.length>1&&(0,r.jsx)("div",{className:"flex items-center gap-2 mt-4 z-30",children:s.map((e,t)=>(0,r.jsx)("button",{type:"button",onClick:()=>o(t),className:"w-2 h-2 rounded-full transition-all duration-300 cursor-pointer ".concat(l===t?a?"bg-primary-gold scale-125 w-4":"bg-primary-darkblue scale-125 w-4":a?"bg-white/30 hover:bg-white/50":"bg-slate-300 hover:bg-slate-400"),"aria-label":"Go to slide ".concat(t+1)},t))})]})}function T(e){let{value:t,onChange:a,suggestions:s,onSelectSuggestion:l,className:o}=e,[n,i]=(0,p.useState)(!1),[c,d]=(0,p.useState)([]),[m,x]=(0,p.useState)(-1),[u,b]=(0,p.useState)(!1),g=(0,p.useRef)(null);(0,p.useEffect)(()=>{function e(e){g.current&&!g.current.contains(e.target)&&i(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,p.useEffect)(()=>{if(!t.trim()){d([]);return}let e=t.toLowerCase();d(s.filter(t=>{let a=t.text.toLowerCase().includes(e),r=(t.category||"").toLowerCase().includes(e);return a||r}).slice(0,8))},[t,s]);let f=e=>{switch(e){case"student":return(0,r.jsx)(y.Z,{className:"w-4 h-4 text-primary-gold"});case"paper":return(0,r.jsx)(v.Z,{className:"w-4 h-4 text-primary-darkblue"});case"course":return(0,r.jsx)(h.Z,{className:"w-4 h-4 text-primary-skyblue"});default:return(0,r.jsx)(j.Z,{className:"w-4 h-4 text-slate-400"})}},N=u||!!t;return(0,r.jsxs)("div",{ref:g,id:"search-bar-container",className:"relative transition-all duration-300 ease-in-out ".concat(N?"w-56 sm:w-64 md:w-72":"w-28 sm:w-32"," ").concat(o||""),children:[(0,r.jsxs)("div",{className:"relative flex items-center h-9 justify-end",children:[(0,r.jsx)("input",{id:"search-input",type:"text",placeholder:N?"Search name, paper, topic...":"Search...",value:t,onChange:e=>{a(e.target.value),i(!0),x(-1)},onFocus:()=>{b(!0),i(!0)},onBlur:()=>setTimeout(()=>b(!1),200),onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),x(e=>e<c.length-1?e+1:0)):"ArrowUp"===e.key?(e.preventDefault(),x(e=>e>0?e-1:c.length-1)):"Enter"===e.key?m>=0&&m<c.length&&(l(c[m]),i(!1)):"Escape"===e.key&&i(!1)},className:"h-9 w-full pl-8 pr-8 bg-[#F8FAFC] hover:bg-[#F1F5F9] border border-slate-200 hover:border-slate-300 text-slate-900 text-xs rounded-xl focus:outline-hidden focu
1s:border-primary-darkblue focus:ring-1 focus:ring-primary-darkblue/30 shadow-xs transition-all duration-300 font-sans cursor-pointer focus:cursor-text","aria-label":"Search students or papers"}),(0,r.jsx)(w.Z,{className:"absolute pointer-events-none w-3.5 h-3.5 text-slate-400 left-3"}),t&&(0,r.jsx)("button",{id:"clear-search-btn",type:"button",onClick:()=>{a(""),i(!1)},className:"absolute right-2.5 p-1 rounded-full text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",children:(0,r.jsx)(k.Z,{className:"w-3 h-3"})})]}),n&&N&&c.length>0&&(0,r.jsxs)("div",{id:"search-suggestions-dropdown",className:"absolute z-50 right-0 mt-1.5 w-72 sm:w-80 bg-white border border-slate-200 rounded-xl shadow-xl overflow-hidden max-h-80 overflow-y-auto",children:[(0,r.jsx)("div",{className:"px-4 py-1.5 bg-slate-50 border-b border-slate-100 flex items-center justify-between sticky top-0",children:(0,r.jsx)("span",{className:"text-[9px] font-black tracking-wider text-slate-400 uppercase",children:"Predictive Recommendations"})}),(0,r.jsx)("ul",{className:"divide-y divide-slate-100",children:c.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",id:"suggestion-item-".concat(t),onMouseDown:()=>{l(e),i(!1)},className:"w-full text-left px-4 py-2.5 flex items-center justify-between transition-colors ".concat(m===t?"bg-slate-50 text-primary-darkblue font-semibold":"hover:bg-slate-50/80 text-slate-700"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"p-1 rounded-lg bg-slate-50 border border-slate-100",children:f(e.type)}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"font-semibold text-xs text-slate-800",children:e.text}),e.category&&(0,r.jsx)("span",{className:"ml-2 inline-block px-1.5 py-0.5 rounded-sm text-[8px] font-bold bg-slate-100 text-slate-500 uppercase tracking-wide",children:e.category})]})]}),(0,r.jsx)("span",{className:"text-[10px] text-slate-400 font-sans italic",children:"Select"})]})},t))})]})]})}function P(e){let{courseTabs:t,selectedCourseIndex:a,onSelectCourseIndex:s,onSelectRankHolders:l,years:o,selectedYear:n,onSelectYear:i,levels:c,selectedLevelId:d,selectedPaperId:m,onSelectLevelPaper:b,searchQuery:g,onSearchQueryChange:f,searchSuggestions:y,onSelectSuggestion:w,activeFilterCount:_,onClearAllFilters:A}=e,[F,Z]=(0,p.useState)(!1),L=e=>{s(Number(e))},I="All";m&&"All"!==m?I="".concat(d,":").concat(m):d&&"All"!==d&&(I="".concat(d,":All"));let E=e=>{if("All"===e)b("All","All");else if(e.endsWith(":All"))b(e.split(":")[0],"All");else{let[t,a]=e.split(":");b(t,a)}},z=e=>e?e.name&&e.name.trim().toLowerCase()!==(e.code||"").trim().toLowerCase()?"".concat(e.code," - ").concat(e.name):e.code||e.name||"":"";return(0,r.jsxs)("div",{id:"filters-panel",className:"mt-4 bg-white/95 backdrop-blur-md p-3 pb-4 shadow-xl fixed bottom-0 left-0 right-0 z-30 border-t border-slate-100 rounded-t-2xl md:sticky md:bottom-auto md:left-auto md:right-auto md:top-[72px] md:rounded-2xl md:p-2 md:shadow-md md:mb-5 md:border-none md:z-30 transition-all duration-200",children:[(0,r.jsxs)("div",{className:"hidden md:grid grid-cols-4 gap-3 items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,r.jsxs)("label",{className:"text-[8px] font-black uppercase tracking-widest text-slate-400 flex items-center gap-1",children:[(0,r.jsx)(h.Z,{className:"w-2.5 h-2.5 text-sec-teal"}),"Program"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("select",{value:a,onChange:e=>L(e.target.value),className:"appearance-none w-full bg-[#F8FAFC] hover:bg-[#F1F5F9] border border-slate-200 hover:border-slate-300 rounded-lg px-2.5 py-1 text-xs font-semibold text-slate-700 focus:outline-hidden focus:border-primary-darkblue focus:ring-1 focus:ring-primary-darkblue cursor-pointer transition-all h-8",children:t.map((e,t)=>(0,r.jsx)("option",{value:t,children:e.name},t))}),(0,r.jsx)(N.Z,{className:"w-3 h-3 text-slate-400 absolute right-2.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,r.jsxs)("label",{className:"text-[8px] font-black uppercase tracking-widest text-slate-400 flex items-center gap-1",children:[(0,r.jsx)(v.Z,{className:"w-2.5 h-2.5 text-accent-orange"}),"Level & Paper"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{value:I,onChange:e=>E(e.target.value),className:"appearance-none w-full bg-[#F8FAFC] hover:bg-[#F1F5F9] border border-slate-200 hover:border-slate-300 rounded-lg px-2.5 py-1 text-xs font-semibold text-slate-700 focus:outline-hidden focu
1s:border-primary-darkblue focus:ring-1 focus:ring-primary-darkblue cursor-pointer transition-all h-8",children:[(0,r.jsx)("option",{value:"All",children:"All Levels & Papers"}),c.map(e=>(0,r.jsxs)("optgroup",{label:e.name,children:[(0,r.jsxs)("option",{value:"".concat(e.id,":All"),children:["All ",e.name," Papers"]}),(e.papers||[]).map(t=>(0,r.jsx)("option",{value:"".concat(e.id,":").concat(t.id),children:z(t)},t.id))]},e.id))]}),(0,r.jsx)(N.Z,{className:"w-3 h-3 text-slate-400 absolute right-2.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,r.jsxs)("label",{className:"text-[8px] font-black uppercase tracking-widest text-slate-400 flex items-center gap-1",children:[(0,r.jsx)(C.Z,{className:"w-2.5 h-2.5 text-primary-skyblue"}),"Academic Year"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{value:n,onChange:e=>i(e.target.value),className:"appearance-none w-full bg-[#F8FAFC] hover:bg-[#F1F5F9] border border-slate-200 hover:border-slate-300 rounded-lg px-2.5 py-1 text-xs font-semibold text-slate-700 focus:outline-none focus:border-primary-darkblue focus:ring-1 focus:ring-primary-darkblue cursor-pointer transition-all h-8",children:[(0,r.jsx)("option",{value:"",children:"All Academic Years"}),o.map((e,t)=>{let a="object"==typeof e?e.year||e.name||"":e;return a?(0,r.jsxs)("option",{value:a,children:["Year ",a]},a||t):null})]}),(0,r.jsx)(N.Z,{className:"w-3 h-3 text-slate-400 absolute right-2.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-0.5 items-stretch",children:[(0,r.jsxs)("label",{className:"text-[8px] font-black uppercase tracking-widest text-slate-400 flex items-center gap-1",children:[(0,r.jsx)(j.Z,{className:"w-2.5 h-2.5 text-primary-darkblue"}),"Search"]}),(0,r.jsx)(T,{value:g,onChange:f,suggestions:y,onSelectSuggestion:w,className:"mb-0 w-full"})]})]}),(0,r.jsxs)("div",{className:"flex md:hidden items-center justify-between gap-2.5",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>Z(!0),className:"flex items-center gap-1.5 px-3 h-9 rounded-xl bg-primary-darkblue text-white text-xs font-bold hover:bg-primary-darkblue/90 cursor-pointer shadow-xs whitespace-nowrap active:scale-95 transition-transform",children:[(0,r.jsx)(S.Z,{className:"w-3.5 h-3.5"}),(0,r.jsx)("span",{children:"Filters"}),_>0&&(0,r.jsx)("span",{className:"w-4 h-4 rounded-full bg-primary-gold text-primary-darkblue text-[10px] font-black flex items-center justify-center",children:_})]}),(0,r.jsx)(T,{value:g,onChange:f,suggestions:y,onSelectSuggestion:w,className:"mb-0 flex-1 max-w-full"})]}),(0,r.jsx)(x.M,{children:F&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.E.div,{initial:{opacity:0}
1,animate:{opacity:.4},exit:{opacity:0},onClick:()=>Z(!1),className:"fixed inset-0 bg-black z-50 md:hidden"}),(0,r.jsxs)(u.E.div,{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:25,stiffness:220},className:"fixed bottom-0 inset-x-0 bg-white rounded-t-3xl p-5 shadow-2xl z-55 max-h-[85vh] overflow-y-auto md:hidden pb-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3 pb-2 border-b border-slate-100",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(S.Z,{className:"w-4 h-4 text-primary-darkblue"}),(0,r.jsx)("h3",{className:"text-sm font-black uppercase tracking-wider text-slate-800 font-display",children:"Filter Records"}),_>0&&(0,r.jsxs)("span",{className:"px-2 py-0.5 rounded-full bg-primary-darkblue/10 text-primary-darkblue text-[10px] font-black uppercase",children:[_," Active"]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>Z(!1),className:"p-1.5 rounded-full hover:bg-slate-100 text-slate-400 hover:text-slate-600 transition-colors cursor-pointer",children:(0,r.jsx)(k.Z,{className:"w-4 h-4"})})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("label",{className:"text-[10px] font-extrabold uppercase tracking-widest text-slate-400 flex items-center gap-1.5",children:[(0,r.jsx)(h.Z,{className:"w-3.5 h-3.5 text-sec-teal"}),"Program"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{value:a,onChange:e=>L(e.target.value),className:"appearance-none w-full bg-[#F8FAFC] border border-slate-200 rounded-xl px-3.5 py-2.5 text-xs font-semibold text-slate-700 focus:outline-hidden focus:border-primary-darkblue cursor-pointer h-10",children:[t.map((e,t)=>(0,r.jsx)("option",{value:t,children:e.name},t)),(0,r.jsx)("option",{value:"__rank_holders__",children:"Rank Holders"})]}),(0,r.jsx)(N.Z,{className:"w-4 h-4 text-slate-400 absolute right-3.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("label",{className:"text-[10px] font-extrabold uppercase tracking-widest text-slate-400 flex items-center gap-1.5",children:[(0,r.jsx)(v.Z,{className:"w-3.5 h-3.5 text-accent-orange"}),"Level & Paper"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{value:I,onChange:e=>E(e.target.value),className:"appearance-none w-full bg-[#F8FAFC] border border-slate-200 rounded-xl px-3.5 py-2.5 text-xs font-semibold text-slate-700 focus:outline-hidden focus:border-primary-darkblue cursor-pointer h-10",children:[(0,r.jsx)("option",{value:"All",children:"All Levels & Papers"}),c.map(e=>(0,r.jsxs)("optgroup",{label:e.name,children:[(0,r.jsxs)("option",{value:"".concat(e.id,":All"),children:["All ",e.name," Papers"]}),(e.papers||[]).map(t=>(0,r.jsx)("option",{value:"".concat(e.id,":").concat(t.id),children:z(t)},t.id))]},e.id))]}),(0,r.jsx)(N.Z,{className:"w-4 h-4 text-slate-400 absolute right-3.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("label",{className:"text-[10px] font-extrabold uppercase tracking-widest text-slate-400 flex items-center gap-1.5",children:[(0,r.jsx)(C.Z,{className:"w-3.5 h-3.5 text-primary-skyblue"}),"Academic Year"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{value:n,onChange:e=>i(e.target.value),className:"appearance-none w-full bg-[#F8FAFC] border border-slate-200 rounded-xl px-3.5 py-2.5 text-xs font-semibold text-slate-700 focus:outline-hidden focus:border-primary-darkblue cursor-pointer h-10",children:[(0,r.jsx)("option",{value:"",children:"All Academic Years"}),o.map((e,t)=>(0,r.jsxs)("option",{value:e.year,children:["Year ",e.year]},t))]}),(0,r.jsx)(N.Z,{className:"w-4 h-4 text-slate-400 absolute right-3.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 mt-6 pt-1 border-t border-slate-100",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{_>0&&(A(),Z(!1))},disabled:0===_,className:"flex-5 py-2.5 rounded-xl border font-bold text-xs transition-all text-center ".concat(_>0?"border-slate-200 text-slate-600 hover:text-slate-800 cursor-pointer":"border-slate-100 text-slate-300 cursor-not-allowed"),children:"Clear All"}),(0,r.jsx)("button",{type:"button",onClick:()=>Z(!1),className:"flex-1 py-2.5 px-2.5 rounded-xl bg-primary-darkblue text-white hover:bg-primary-darkblue/90 font-bold text-xs transition-all cursor-pointer text-center",children:"Apply Filters"})]})]})]})})]})}function O(e){let{result:t,onPlayTestimonial:a}=e,[s,l]=(0,p.useState)(!1),o=t.rank||"",i=t.video_url||t.video||"",c=t.max_score||100,d=null!=t.percentage?t.percentage:t.score?Math.round(Number(t.score)/c*100):null,m=o?"ranker":t.is_topper||t.paper_topper?"paper_topper":null!=d&&d>=75?"distinction":"pass",x="ranker"===m,h="paper_topper"===m,g="distinction"===m,f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";
1return e.split(" ").filter(Boolean).map(e=>e[0]).join("").toUpperCase().slice(0,2)}(t.name),v=z(t.subject),j=!!i,w=t.image?n.z0+t.image:"";return(0,r.jsxs)(u.E.div,{layout:!0,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.3},id:"student-card-".concat(t.id||t.name),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onClick:()=>{j&&a&&a(i)},className:"relative overflow-hidden rounded-2xl bg-primary-darkblue shadow-md select-none aspect-[3/4] w-full transition-all duration-300 ".concat(j?"cursor-pointer":"cursor-default"),style:j&&s?{boxShadow:"0 25px 50px -12px rgba(0,0,0,0.5)",transform:"translateY(-8px)"}:void 0,children:[j&&(0,r.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center p-4 z-20 pointer-events-none transition-opacity duration-300",style:{backgroundColor:"rgb(0 0 0 / 53%)",opacity:s?1:0},children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary-gold text-primary-darkblue flex items-center justify-center shadow-2xl transition-transform duration-300",style:{transform:s?"scale(1)":"scale(0.75)"},children:(0,r.jsx)(_.Z,{className:"w-8 h-8 fill-primary-darkblue text-primary-darkblue ml-1"})}),(0,r.jsx)("span",{className:"mt-3 text-xs font-black text-primary-darkblue bg-primary-gold px-3.5 py-1.5 rounded-full shadow-lg border border-primary-gold/50 tracking-wider",children:"Play Testimonial"})]}),w?(0,r.jsx)("div",{className:"absolute inset-0 w-full h-full",children:(0,r.jsx)("img",{src:function(e){if(!e)return"";if(e.includes("drive.google.com")){let t=e.match(/\/file\/d\/([a-zA-Z0-9_-]+)/)||e.match(/[?&]id=([a-zA-Z0-9_-]+)/);if(t&&t[1])return"https://lh3.googleusercontent.com/d/".concat(t[1])}return e}(w),alt:"".concat(t.name," - ").concat(o||"Result Poster"),referrerPolicy:"no-referrer",className:"w-full h-full object-cover transition-transform duration-500",style:{transform:s?"scale(1.05)":"scale(1)"}})}):(0,r.jsxs)("div",{className:"absolute inset-0 w-full h-full bg-gradient-to-b ".concat(x?"from-primary-darkblue via-slate-900 to-primary-darkblue text-primary-gold":h?"from-sec-teal via-slate-900 to-primary-darkblue text-white":g?"from-primary-skyblue via-slate-900 to-primary-darkblue text-white":"from-slate-800 via-slate-900 to-primary-darkblue text-slate-300"," p-4 flex flex-col justify-between relative text-center overflow-hidden"),children:[(0,r.jsx)("div",{className:"absolute top-0 inset-x-0 h-1.5 bg-gradient-to-r from-primary-darkblue via-primary-gold to-primary-skyblue"}),(0,r.jsx)("div",{className:"absolute -top-12 -left-12 w-32 h-32 bg-primary-gold/10 rounded-full blur-xl pointer-events-none"}),(0,r.jsx)("div",{className:"absolute -bottom-12 -right-12 w-32 h-32 bg-primary-skyblue/10 rounded-full blur-xl pointer-events-none"}),(0,r.jsxs)("div",{className:"pt-2 z-10",children:[(0,r.jsx)("span",{className:"text-[10px] font-extrabold tracking-widest text-primary-gold uppercase font-display block",children:"IIC LAKSHYA"}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-1 mt-0.5",children:[(0,r.jsx)("span",{className:"h-[1px] w-6 bg-primary-gold/30"}),(0,r.jsx)("span",{className:"text-[7px] font-black text-white/80 uppercase tracking-widest",children:"CONGRATULATIONS"}),(0,r.jsx)("span",{className:"h-[1px] w-6 bg-primary-gold/30"})]})]}),(0,r.jsxs)("div",{className:"px-1 z-10",children:[x?(0,r.jsxs)("div",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-primary-gold text-primary-darkblue text-[9px] font-black uppercase tracking-wider shadow-xs mb-1",children:[(0,r.jsx)(b.Z,{className:"w-3 h-3 fill-primary-darkblue text-primary-darkblue"}),(0,r.jsx)("span",{children:o})]}):h?(0,r.jsxs)("div",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-sec-teal text-white text-[9px] font-black uppercase tracking-wider shadow-xs mb-1",children:[(0,r.jsx)(y.Z,{className:"w-3 h-3 fill-white text-white"}),(0,r.jsx)("span",{children:"PAPER TOPPER"})]}):g?(0,r.jsxs)("div",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-primary-skyblue/80 text-white text-[8px] font-bold uppercase tracking-wider mb-1",children:[(0,r.jsx)(A.Z,{className:"w-2.5 h-2.5"}),(0,r.jsx)("span",{children:"ACADEMIC DISTINCTION"})]}):null,(0,r.jsxs)("h4",{className:"text-3xs font-semibold text-slate-300 mt-1 uppercase font-sans",children:[t.course_name," ",t.exam_term?"⢠".concat(t.exam_term):""]})]}),(0,r.jsx)("div",{className:"relative flex justify-center items-center my-1 z-10",children:(0,r.jsxs)("div",{className:"relative w-24 h-24 rounded-full flex items-center justify-center font-display text-2xl font-black border-4 shadow-xl ".concat(x?"bg-gradient-to-tr from-primary-gold via-sec-lightyellow to-primary-gold text-primary-darkblue border-primary-gold ring-4 ring-primary-gold/25":"bg-gradient-to-tr from-primary-darkblue to-primary-skyblue text-white border-white/80"),children:[f,t.score?(0,r.jsxs)("div",{className:"absolute -bottom-1 -right-1 bg-primary-gold text-primary-darkblue border-2 border-white rounded-full w-9 h-9 flex flex-col items-center justify-center shadow-md",children:[(0,r.jsx)("span",{className:"text-[11px] font-black leading-none",children:t.score}),(0,r.jsx)("span",{className:"text-[5px] font-bold uppercase tracking-tighter leading-none opacity-90",children:"MARKS"})]}):null]})}),(0,r.jsxs)("div",{className:"pb-3 z-10",children:[(0,r.jsx)("h3",{className:"text-sm font-black text-white font-display tracking-tight leading-snug drop-shadow-sm truncate",children:t.name}),v&&(0,r.jsx)("div",{className:"text-[9px] text-primary-gold/90 font-bold uppercase tracking-wider mt-0.5 font-mono truncate",children:v}),(t.city||null!=d)&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-1.5 mt-2 text-white/60 text-[8px] font-sans",children:[t.city&&(0,r.jsxs)("span",{className:"flex items-center gap-0.5 bg-white/10 px-1.5 py-0.5 rounded-sm",children:[(0,r.jsx)(F.Z,{className:"w-2 h-2 text-primary-gold"}),t.city]}),null!=d&&(0,r.jsxs)("span",{className:"bg-white/10 px-1.5 py-0.5 rounded-sm",children:[d,"% Secured"]})]})]}),(0,r.jsx)("div",{className:"absolute bottom-3 right-3 opacity-15 pointer-events-none",children:(0,r.jsx)("div",{className:"w-10 h-10 border-2 border-dashed border-primary-gold rounded-full flex items-center justify-center font-mono text-[6px] text-primary-gold font-bold leading-none rotate-12",children:"SEAL"})})]}),(0,r.jsxs)("div",{className:"absolute top-3 inset-x-3 flex justify-between items-start pointer-events-none",children:[x?(0,r.jsxs)("div",{className:"bg-primary-gold hover:bg-primary-gold/95 text-primary-darkblue font-extrabold text-[10px] tracking-wider up
1percase px-2.5 py-1 rounded-lg flex items-center gap-1 shadow-md border border-primary-gold pointer-events-auto transition-transform hover:scale-105",children:[(0,r.jsx)(b.Z,{className:"w-3 h-3 fill-primary-darkblue text-primary-darkblue"}),(0,r.jsx)("span",{children:o.split("(")[0].trim()})]}):h?(0,r.jsxs)("div",{className:"bg-sec-teal hover:bg-sec-teal/90 text-white font-extrabold text-[10px] tracking-wider uppercase px-2.5 py-1 rounded-lg flex items-center gap-1 shadow-md border border-sec-teal pointer-events-auto transition-transform hover:scale-105",children:[(0,r.jsx)(y.Z,{className:"w-3 h-3 fill-white text-white"}),(0,r.jsx)("span",{children:"Paper Topper"})]}):(0,r.jsx)("div",{}),j&&(0,r.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),a&&a(i)},className:"bg-primary-gold hover:bg-primary-gold/90 text-primary-darkblue font-extrabold text-[10px] tracking-wider uppercase px-3 py-1.5 rounded-lg flex items-center gap-1.5 shadow-lg border border-primary-gold cursor-pointer animate-pulse pointer-events-auto transition-all hover:scale-105 active:scale-95",children:[(0,r.jsx)(_.Z,{className:"w-2.5 h-2.5 fill-primary-darkblue text-primary-darkblue"}),(0,r.jsx)("span",{children:"Testimonial"})]})]})]})}var B=!0;function R(e){let{resultsData:t,referer:a}=e,{resultspage:s,courses:b,years:h}=t,g=s[0];(0,p.useEffect)(()=>{{let e=JSON.parse(sessionStorage.getItem("initialreferer"));e&&"null"!==e&&"undefined"!==e||sessionStorage.setItem("initialreferer",JSON.stringify(null==a?window.location.href:a)),sessionStorage.setItem("referer",JSON.stringify(null==a?window.location.href:a))}},[a]),(0,p.useEffect)(()=>(document.body.classList.add("results-page"),()=>document.body.classList.remove("results-page")),[]);let[f,y]=(0,p.useState)(""),[v,j]=(0,p.useState)(b),[w]=(0,p.useState)(h),[N,C]=(0,p.useState)(""),[S,_]=(0,p.useState)(null),A=(0,p.useMemo)(()=>(v||[]).filter(e=>"rank holders"!==e.name.toLowerCase()),[v]),[F,T]=(0,p.useState)(0),[B,R]=(0,p.useState)("All"),[Y,D]=(0,p.useState)("All"),[H,U]=(0,p.useState)(""),[J,q]=(0,p.useState)(1),G=async()=>{var e;let t=new URLSearchParams;N&&t.set("year",N),Y&&"All"!==Y&&t.set("paper",Y);let a=await o.Z.get("".concat(n.T5,"home/resultsData?").concat(t.toString()),{headers:E,withCredentials:!0}).catch(e=>console.log(e));(null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.courses)&&j(a.data.courses)};(0,p.useEffect)(()=>{G()},[N,Y]),(0,p.useEffect)(()=>{R("All"),D("All"),U(""),q(1)},[F]),(0,p.useEffect)(()=>{q(1)},[N]);let W=(0,p.useMemo)(()=>{if(!S)return"";let e=S.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/),t=e&&11===e[2].length?e[2]:null;return t?"https://www.youtube.com/embed/".concat(t,"?autoplay=1"):S},[S]),Q=A[F]||A[0],K=(null==Q?void 0:Q.results)||[],V=(null==Q?void 0:Q.paper_levels)||[],X=(0,p.useMemo)(()=>{let e=[],t=new Set;return A.forEach((a,r)=>{t.has(a.name.toLowerCase())||(e.push({text:a.name,type:"course",targetTabIndex:r,category:"Course"}),t.add(a.name.toLowerCase())),(a.paper_levels||[]).forEach(s=>{(s.papers||[]).forEach(l=>{let o="".concat(l.code," - ").concat(l.name),n="paper-".concat(r,"-").concat(l.id);t.has(n)||(e.push({text:o,type:"paper",targetTabIndex:r,levelId:s.id,paperId:l.id,category:"".concat(a.name," Paper")}),t.add(n))})}),(a.results||[]).forEach(s=>{s.name&&!t.has("name-".concat(s.name.toLowerCase()))&&(e.push({text:s.name,type:"student",targetTabIndex:r,studentName:s.name,category:a.name}),t.add("name-".concat(s.name.toLowerCase())))})}),e},[A]),$=(e,t)=>{R(e),D(t)},ee=(0,p.useMemo)(()=>{let e=0;return 0!==F&&e++,N&&e++,"All"!==B&&e++,H.trim()&&e++,e},[F,N,B,H]),et=()=>{T(0),C(""),R("All"),D("All"),U("")},ea=(0,p.useMemo)(()=>K.filter(e=>{if(!function(e,t,a,r){if("All"===a||!a)return!0;let s=t.find(e=>String(e.id)===String(a));return!s||("All"!==r&&r?String(e.result_paper_id)===String(r):(s.papers||[]).some(t=>String(t.id)===String(e.result_paper_id)))}(e,V,B,Y))return!1;if(H.trim()){let t=H.toLowerCase(),a=(e.name||"").toLowerCase().includes(t),r=z(e.subject).toLowerCase().includes(t),s=(e.course_name||"").toLowerCase().includes(t);if(!a&&!r&&!s)return!1}return!0}),[K,V,B,Y,H]),er=(0,p.useMemo)(()=>{let e={ranker:1,paper_topper:2,distinction:3,pass:4},t=e=>{if(e.rank)return"ranker";if(e.is_topper||e.paper_topper)return"paper_topper";let t=e.max_score||100;return(null!=e.percentage?e.percentage:e.score?Math.round(Number(e.score)/t*100):0)>=75?"distinction":"pass"};return[...ea].sort((a,r)=>e[t(a)]-e[t(r)])},[ea]),es=Math.max(1,Math.ceil(er.length/12)),el=(0,p.useMemo)(()=>{let e=(J-1)*12;return er.slice(e,e+12)},[er,J]),eo=e=>e?e.name&&e.name.trim().toLowerCase()!==(e.code||"").trim().toLowerCase()?"".concat(e.code," - ").concat(e.name):e.code||e.name||"":"";return(0,r.jsxs)("div",{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:g.meta_title}),(0,r.jsx)("meta",{name:"keywords",content:g.meta_keywords}),(0,r.jsx)("meta",{name:"description",content:g.meta_description}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"index-follow"),(0,r.jsx)("meta",{property:"og:title",content:g.meta_title}),(0,r.jsx)("meta",{property:"og:type",content:"article"}),(0,r.jsx)("meta",{property:"og:url",content:"https://lakshyacommerce.com/results"}),(0,r.jsx)("meta",{property:"og:image",content:"https://api.lakshyacommerce.com/uploads/backend/OG_banner.webp"}),(0,r.jsx)("meta",{property:"og:description",content:g.meta_description}),(0,r.jsx)("meta",{property:"og:site_name",content:"IIC Lakshya"}),(0,r.jsx)("meta",{property:"og:image:type",content:"image/png"}
1),(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,r.jsx)("meta",{property:"og:image:height",content:"630"}),(0,r.jsx)("meta",{property:"og:locale",content:"en_IN"})]}),(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n @import url(\'https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:[email protected]&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\');\n\n body {\n font-family: \'Outfit\', sans-serif;\n }\n div#video-modal-overlay {\n z-index: 9999;\n}\n :root {\n --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;\n --font-display: "Space Grotesk", sans-serif;\n --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;\n\n --color-primary-darkblue: #00528a;\n --color-primary-gold: #feda2d;\n --color-primary-skyblue: #45afe3;\n --color-sec-teal: #26a19d;\n --color-sec-mutedteal: #7fbdad;\n --color-sec-sage: #bfe0be;\n --color-sec-lightyellow: #f9e099;\n --color-accent-slate: #bdcdd6;\n --color-accent-orange: #ffc818;\n --color-accent-brightyellow: #f6e214;\n }\n\n .font-sans { font-family: "Outfit", ui-sans-serif, system-ui, sans-serif !important; }\n .font-display { font-family: "Space Grotesk", sans-serif !important; }\n .font-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace !important; }\n\n .bg-primary-darkblue { background-color: var(--color-primary-darkblue) !important; }\n .text-primary-darkblue { color: var(--color-primary-darkblue) !important; }\n .border-primary-darkblue { border-color: var(--color-primary-darkblue) !important; }\n .hover\\:bg-primary-darkblue:hover { background-color: var(--color-primary-darkblue) !important; }\n .hover\\:text-primary-darkblue:hover { color: var(--color-primary-darkblue) !important; }\n .hover\\:border-primary-darkblue:hover { border-color: var(--color-primary-darkblue) !important; }\n .focus\\:border-primary-darkblue:focus { border-color: var(--color-primary-darkblue) !important; }\n\n .bg-primary-gold { background-color: var(--color-primary-gold) !important; }\n .text-primary-gold { color: var(--color-primary-gold) !important; }\n .border-primary-gold { border-color: var(--color-primary-gold) !important; }\n .hover\\:bg-primary-gold:hover { background-color: var(--color-primary-gold) !important; }\n .hover\\:text-primary-gold:hover { color: var(--color-primary-gold) !important; }\n .hover\\:border-primary-gold:hover { border-color: var(--color-primary-gold) !important; }\n\n .bg-primary-skyblue { background-color: var(--color-primary-skyblue) !important; }\n .text-primary-skyblue { color: var(--color-primary-skyblue) !important; }\n .border-primary-skyblue { border-color: var(--color-primary-skyblue) !important; }\n .hover\\:bg-primary-skyblue:hover { background-color: var(--color-primary-skyblue) !important; }\n .hover\\:text-primary-skyblue:hover { color: var(--color-primary-skyblue) !important; }\n .hover\\:border-primary-skyblue:hover { border-color: var(--color-primary-skyblue) !important; }\n\n .bg-sec-teal { background-color: var(--color-sec-teal) !important; }\n .text-sec-teal { color: var(--color-sec-teal) !important; }\n .border-sec-teal { border-color: var(--color-sec-teal) !important; }\n .hover\\:bg-sec-teal:hover { background-color: var(--color-sec-teal) !important; }\n .hover\\:text-sec-teal:hover { color: var(--color-sec-teal) !important; }\n .hover\\:border-sec-teal:hover { border-color: var(--color-sec-teal) !important; }\n\n .bg-sec-mutedteal { background-color: var(--color-sec-mutedteal) !important; }\n .text-sec-mutedteal { color: var(--color-sec-mutedteal) !important; }\n .border-sec-mutedteal { border-color: var(--color-sec-mutedteal) !important; }\n\n .bg-sec-sage { background-color: var(--color-sec-sage) !important; }\n .text-sec-sage { color: var(--color-sec-sage) !important; }\n .border-sec-sage { border-color: var(--color-sec-sage) !important; }\n\n .bg-sec-lightyellow { background-color: var(--color-sec-lightyellow) !important; }\n .text-sec-lightyellow { color: var(--color-sec-lightyellow) !important; }\n .border-sec-lightyellow { border-color: var(--color-sec-lightyellow) !important; }\n\n .bg-accent-slate { background-color: var(--color-accent-slate) !important; }\n .text-accent-slate { color: var(--color-accent-slate) !important; }\n .border-accent-slate { border-color: var(--color-accent-slate) !important; }\n\n .bg-accent-orange { background-color: var(--color-accent-orange) !important; }\n .text-accent-orange { color: var(--color-accent-orange) !important; }\n .border-accent-orange { border-color: var(--color-accent-orange) !important; }\n .hover\\:bg-accent-orange:hover { background-color: var(--color-accent-orange) !important; }\n .hover\\:text-accent-orange:hover { color: var(--color-accent-orange) !important; }\n .hover\\:border-accent-orange:hover { border-color: var(--color-accent-orange) !important; }\n\n .bg-accent-brightyellow { background-color: var(--color-accent-brightyellow) !important; }\n .text-accent-brightyellow { color: var(--color-accent-brightyellow) !important; }\n .border-accent-brightyellow { border-color: var(--color-accent-brightyellow) !important; }\n\n @keyframes fadeIn {\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .animate-fadeIn { animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }\n\n .cxvgg span{\n font-weight:600;\n font-family: \'Outfit\', sans-serif!important;\n}\n\n@media (max-width:767px){\n.cxvgg span{\n font-size:3rem;\n}\n .text-sm {\n font-size: 0.875rem!important;\n }\n div#results-count-bar{\n padding-top:1.5rem!important;\n }\n .text-lg {\n font-size: 1.125rem!important;\n }\n}\n '}}
1),(0,r.jsx)(i.Z,{props:{queryString:f}}),(0,r.jsxs)("div",{id:"results-hero",className:"relative overflow-hidden shadow-lg min-h-[435px] flex items-center bg-slate-900 border-b border-slate-800",style:{backgroundImage:"url(".concat(n.z0).concat(g.banner_image,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-slate-950/65 z-10"}),(0,r.jsx)("div",{className:"relative z-20 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full text-center py-10 sm:py-16 cxvgg",children:(0,r.jsx)(M,{page:g,isDarkBg:!0})})]}),(0,r.jsxs)("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-8 md:pb-12",children:[(0,r.jsx)(P,{courseTabs:A,selectedCourseIndex:F,onSelectCourseIndex:T,onSelectRankHolders:()=>{window.location.href="/rank-holders"},years:w||[],selectedYear:N,onSelectYear:C,levels:V,selectedLevelId:B,selectedPaperId:Y,onSelectLevelPaper:$,searchQuery:H,onSearchQueryChange:U,searchSuggestions:X,onSelectSuggestion:e=>{"number"==typeof e.targetTabIndex&&T(e.targetTabIndex),"paper"===e.type?(R(e.levelId),D(e.paperId),U("")):"student"===e.type?(R("All"),D("All"),U(e.studentName)):(R("All"),D("All"),U(""))},activeFilterCount:ee,onClearAllFilters:et}),(0,r.jsxs)("div",{id:"results-count-bar",className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 mb-6 pt-2",children:[(0,r.jsx)("div",{children:(0,r.jsxs)("h3",{className:"font-bold text-slate-800 text-lg flex items-center gap-2",children:[(0,r.jsx)(Z.Z,{className:"w-5 h-5 text-primary-darkblue"}),"Qualified Honor Students"]})}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-1.5 items-center",children:[Q&&(0,r.jsxs)("span",{className:"px-2.5 py-1 rounded-lg bg-primary-darkblue/10 text-primary-darkblue text-3xs font-bold border border-primary-darkblue/20 flex items-center gap-1 uppercase",children:[Q.name,0!==F&&(0,r.jsx)(k.Z,{className:"w-3 h-3 cursor-pointer hover:text-primary-darkblue",onClick:()=>T(0)})]}),"All"!==B&&(()=>{let e=V.find(e=>String(e.id)===String(B)),t=((null==e?void 0:e.papers)||[]).find(e=>String(e.id)===String(Y)),a=t?eo(t):(null==e?void 0:e.name)||"Level";return(0,r.jsxs)("span",{className:"px-2.5 py-1 rounded-lg bg-primary-gold/15 text-slate-800 text-3xs font-bold border border-primary-gold/35 flex items-center gap-1 uppercase",children:[a,(0,r.jsx)(k.Z,{className:"w-3 h-3 cursor-pointer hover:text-slate-900",onClick:()=>$("All","All")})]})})(),N&&(0,r.jsxs)("span",{className:"px-2.5 py-1 rounded-lg bg-sec-teal/10 text-sec-teal text-3xs font-bold border border-sec-teal/20 flex items-center gap-1",children:["Year: ",N,(0,r.jsx)(k.Z,{className:"w-3 h-3 cursor-pointer hover:text-sec-teal",onClick:()=>C("")})]}),H.trim()&&(0,r.jsxs)("span",{className:"px-2.5 py-1 rounded-lg bg-primary-skyblue/10 text-primary-darkblue text-3xs font-bold border border-primary-skyblue/20 flex items-center gap-1",children:['"',H,'"',(0,r.jsx)(k.Z,{className:"w-3 h-3 cursor-pointer hover:text-primary-darkblue",onClick:()=>U("")})]})]})]}),(0,r.jsx)(x.M,{mode:"popLayout",children:el.length>0?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{id:"results-grid",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3.5 md:gap-4 mb-10",children:el.map((e,t)=>(0,r.jsx)(O,{result:e,onPlayTestimonial:_},e.id||"".concat(F,"-").concat(t)))}),es>1&&(0,r.jsxs)("div",{id:"pagination-controls",className:"flex items-center justify-between pt-2",children:[(0,r.jsxs)("div",{className:"text-xs text-slate-500",children:["Page ",(0,r.jsx)("strong",{className:"text-slate-800",children:J})," of"," ",(0,r.jsx)("strong",{className:"text-slate-800",children:es})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{type:"button",disabled:1===J,onClick:()=>q(e=>Math.max(e-1,1)),className:"p-2 rounded-lg bg-slate-50 hover:bg-slate-100 text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:(0,r.jsx)(L.Z,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,es)},(e,t)=>{let a=t+1;return J>3&&es>5&&(a=J-3+t)+(4-t)>es&&(a=es-4+t),(0,r.jsx)("button",{type:"button",onClick:()=>q(a),className:"w-8 h-8 rounded-lg text-xs font-semibold transition-all cursor-pointer ".concat(J===a?"bg-primary-darkblue text-white shadow-xs":"text-slate-600 hover:bg-slate-100"),children:a},a)})}),(0,r.jsx)("button",{type:"button",disabled:J===es,onClick:()=>q(e=>Math.min(e+1,es)),className:"p-2 rounded-lg bg-slate-50 hover:bg-slate-100 text-slate-600 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:(0,r.jsx)(I.Z,{className:"w-4 h-4"})})]})]})]}):(0,r.jsxs)(u.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"text-center py-16 px-6 bg-white rounded-3xl max-w-xl mx-auto shadow-xs",children:[(0,r.jsx)("h4",{className:"font-extrabold text-slate-800 text-lg mb-2 font-display",children:"No Results Match Your Filter"}),(0,r.jsxs)("p",{className:"text-xs text-slate-400 mb-6 leading-relaxed",children:["We couldn't find any student matching \"",H,'" under the selected filters.']}),(0,r.jsx)("button",{type:"button",onClick:et,className:"bg-slate-900 text-white font-bold text-xs px-5 py-2.5 rounded-xl hover:bg-slate-800 transition-colors shadow-sm cursor-pointer",children:"Clear Filters"})]})})]}),(0,r.jsx)(x.M,{children:S&&(0,r.jsx)("div",{id:"video-modal-overlay",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/85 backdrop-blur-md",onClick:()=>_(null),children:(0,r.jsx)(u.E.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},className:"bg-slate-900 rounded-3xl shadow-2xl max-w-3xl w-full overflow-hidden",onClick:e=>e.stopPropagation(),children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 bg-slate-950/40",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-2.5 h-2.5 rounded-full bg-primary-gold animate-pulse"}),(0,r.jsx)("span",{className:"text-xs font-bold text-white uppercase tracking-widest font-mono",children:"Student Video Testimonial"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>_(null),className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors cursor-pointer",children:(0,r.jsx)(k.Z,{className:"w-5 h-5"})})]}),(0,r.jsx)("div",{className:"relative aspect-video bg-black w-full",children:W?(0,r.jsx)("iframe",{src:W,title:"YouTube Video Testimonial",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"absolute inset-0 w-full h-full"}):(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-slate-500 text-xs",children:"Unable to load testimonial video"})}),(0,r.jsx)("div",{className:"px-6 py-4 bg-slate-950/20 text-center text-2xs text-slate-400 font-sans",children:"Hear firsthand experiences of succeeding with Lakshya's premium coaching programs."})]})})})}),(0,r.jsx)("div",{className:"modal fade",id:"staticBackdrop","data-bs-backdrop":"static","data-bs-keyboard":"false",tabIndex:"-1","aria-labelledby":"staticBackdropLabel","aria-hidden":"true",children:(0,r.jsx)("div",{className:"modal-dialog modal-md",children:(0,r.jsxs)("div",{className:"modal-content",children:[(0,r.jsxs)("div",{className:"modal-header",children:[(0,r.jsx)("h5",{className:"modal-title",id:"staticBackdropLabel",children:"Drop your info to proceed"}),(0,r.jsx)("button",{type:"button",onClick:()=>{window.updateModalFile("")},className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})]}),(0,r.jsx)("div",{className:"modal-body",children:(0,r.jsx)(m.Z,{props:{type:"modal",active_course_id:"",queryString:f,referer:a}})})]})})}),(0,r.jsx)(d.Z,{props:{queryString:f,referer:a}}),(0,r.jsx)(c.Z,{props:{queryString:f}})]})}}},function(e){e.O(0,[4644,1664,1472,9298,8407,3430,681,7575,2888,9774,179],function(){return e(e.s=52467)}),_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.