PageSourceSearch

https://jkshahclasses.com/assets/LiveSessionsPage-BqvcBwJL.js

js jkshahclasses.com collected 2026-10-02 13:24:00 UTC 6,500 bytes, 1 lines download raw bytes

1var S=Object.defineProperty,C=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var N=(r,a,t)=>a in r?S(r,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[a]=t,g=(r,a)=>{for(var t in a||(a={}))L.call(a,t)&&N(r,t,a[t]);if(v)for(var t of v(a))E.call(a,t)&&N(r,t,a[t]);return r},h=(r,a)=>C(r,F(a));var y=(r,a,t)=>new Promise((x,d)=>{var f=l=>{try{o(t.next(l))}catch(c){d(c)}},m=l=>{try{o(t.throw(l))}catch(c){d(c)}},o=l=>l.done?x(l.value):Promise.resolve(l.value).then(f,m);o((t=t.apply(r,a)).next())});import{r as n,m as P,t as k,j as e,aR as T,S as B,B as p,F as R,I as z,G as I,i as A}from"./index-COtfmzs3.js";import{C as Q}from"./ClientPagination-Kh3oIR0e.js";import"./chevron-left-1xI8lt8d.js";function J(){const[r,a]=n.useState([]),[t,x]=n.useState(!0),[d,f]=n.useState(""),[m,o]=n.useState(""),[l,c]=n.useState({page:1,limit:9,total:0,pages:0});n.useEffect(()=>{document.title="Live Sessions"},[]),n.useEffect(()=>{const s=setTimeout(()=>{o(d),c(i=>h(g({},i),{page:1}))},500);return()=>clearTimeout(s)},[d]),n.useEffect(()=>{w()},[l.page,m]);const w=()=>y(null,null,function*(){x(!0);try{const s={page:l.page,limit:l.limit,search:m},i=yield P.getBatches(s);i.ok&&i.data.success&&(a(i.data.data),c(u=>h(g({},u),{total:i.data.pagination.total,pages:i.data.pagination.pages})))}catch(s){console.error("Error fetching live sessions:",s),k.error("Failed to load live sessions")}finally{x(!1)}});return e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx("section",{className:"pt-24 pb-8 px-4 sm:px-6 lg:px-8 bg-gradient-to-br from-primary/5 via-white to-accent/5",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-2 text-accent mb-3",children:[e.jsx(T,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm",children:"Live Online Batches"})]}),e.jsx("h1",{className:"text-3xl lg:text-4xl mb-3 text-foreground",children:"Upcoming Live Sessions"}),e.jsx("p",{className:"text-base text-muted-foreground mb-6 max-w-3xl",children:"Join faculty-led live interactive classes from anywhere. All sessions include recorded lectures, doubt-clearing, and structured study plans."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(B,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx("input",{type:"text",placeholder:"Search by course or faculty...",className:"w-full pl-10 pr-4 py-3 border border-border rounded-lg focus:border-primary focus:ring-1 focus:ring-primary outline-none transition-colors",value:d,onChange:s=>f(s.target.value)})]}),e.jsx("div",{className:"flex gap-2",children:e.jsxs(p,{variant:"outline",className:"border border-border",children:[e.jsx(R,{className:"w-4 h-4 mr-2"}),"Filters"]})})]})]})}),e.jsx("section",{className:"py-8 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:t?e.jsx("div",{className:"flex justify-center py-20",children:e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}):r.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid lg:grid-cols-3 md:grid-cols-2 gap-5",children:r.map((s,i)=>{var u,b,j;return e.jsxs("div",{className:"bg-white border border-border rounded-lg overflow-hidden hover:shadow-lg transition-all group",children:[e.jsxs("div",{className:"p-4 border-b border-border bg-muted/30",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-xs font-bold text-primary mb-1 uppercase tracking-wider",children:s.category}),e.jsx("h3",{className:"font-bold text-base text-foreground group-hover:text-primary transition-colors line-clamp-2",children:s.courseName})]}),e.jsx("span",{className:"bg-green-500/10 text-green-600 px-2 py-1 rounded text-xs font-bold whitespace-nowrap ml-2",children:s.badge||"Live"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(z,{src:(u=s.faculty)==null?void 0:u.image,alt:(b=s.faculty)==null?void 0:b.name,className:"w-10 h-10 rounded-full border-2 border-white shadow-sm object-cover"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:"Faculty"}),e.jsx("div",{className:"text-sm font-semibold",children:(j=s.faculty)==null?void 0:j.name})]})]})]}),e.jsxs("div",{className:"p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsx(I,{className:"w-4 h-4 text-primary"}),e.jsxs("span",{children:["Starts ",s.batchStart]})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsx(A,{className:"w-4 h-4 text-primary"}),e.jsx("span",{children:s.timing})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsx("div",{className:`w-2 h-2 rounded-full ${parseInt(s.seats)<20?"bg-red-500":"bg-green-500"}`}),e.jsxs("span",{children:[s.students," Enrolled • ",e.jsx("span",{className:"font-medium text-foreground",children:s.seats})]})]})]}),e.jsxs("div",{className:"p-4 border-t border-border flex items-center justify-between bg-muted/5",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground bg-muted px-2 py-1 rounded",children:s.duration}),e.jsx(p,{size:"sm",className:"rounded-lg",children:"Register Now"})]})]},i)})}),e.jsx(Q,{currentPage:l.page,totalPages:l.pages,onPageChange:s=>c(i=>h(g({},i),{page:s}))})]}):e.jsx("div",{className:"text-center py-20 text-muted-foreground",children:"No live sessions foun
1d."})})}),e.jsx("section",{className:"py-12 px-4 sm:px-6 lg:px-8 bg-gradient-to-br from-primary/5 to-accent/5",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl lg:text-3xl mb-3 text-foreground",children:"Can't Find Your Preferred Timing?"}),e.jsx("p",{className:"text-base text-muted-foreground mb-6",children:"We offer flexible batch schedules. Talk to our counselor to find the perfect batch for you."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx(p,{size:"lg",className:"bg-primary hover:bg-primary/90 text-white",children:"Request Custom Schedule"}),e.jsx(p,{size:"lg",variant:"outline",children:"Talk to Counselor"})]})]})})]})}export{J as LiveSessionsPage};

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.