PageSourceSearch

https://www.icsi.edu/assets/PreviousSessionsQPs-C8jAZi0n.js

js icsi.edu collected 2026-10-02 03:42:21 UTC 2,702 bytes, 1 lines download raw bytes

1import{u as x,r as a,j as e,L as r,N as d,F as c}from"./index-CMfIf9m3.js";import{P as m}from"./PageFooterRow-cP7M-1TF.js";import{E as p}from"./ExaminationSidebar-Bi7iLkiP.js";import{g as u}from"./questionPaperApi-BMba1HH3.js";const h="/examination/previous-sessions-qps",N=()=>{x("Previous Sessions Question Papers");const[t,i]=a.useState([]),[l,n]=a.useState(!1);return a.useEffect(()=>{let s=!1;return u().then(o=>{s||(i(o),n(!0))}).catch(()=>{s||n(!0)}),()=>{s=!0}},[]),e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsxs("div",{className:"bg-[#dfe3e9] px-4 py-3 text-xs text-gray-700",children:[e.jsx(r,{to:"/",className:"text-[#1d3564] underline",children:"Home"}),e.jsx("span",{className:"mx-1",children:"/"}),e.jsx(r,{to:"/examination",className:"text-[#1d3564] underline",children:"Examination"}),e.jsx("span",{className:"mx-1",children:"/"}),e.jsx("span",{className:"font-semibold",children:"Previous Sessions QPs"})]}),e.jsxs("div",{className:"mx-auto max-w-[1200px] px-4 py-6",children:[e.jsx("div",{className:"mb-6",children:e.jsx("h1",{className:"inline-block border-b-2 border-[#0b4173] pb-1 text-2xl font-bold text-gray-800",children:"Examination"})}),e.jsxs("div",{className:"flex flex-col gap-8 lg:flex-row",children:[e.jsx(p,{}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h2",{className:"mb-4 border-b border-gray-200 pb-2 text-lg font-bold text-[#0b4173]",children:"Previous Sessions Question Papers"}),l?t.length===0?e.jsx("p",{className:"py-8 text-sm text-gray-600",children:"Question papers will be published here shortly."}):e.jsx("ul",{className:"space-y-3",children:t.map(s=>e.jsx("li",{children:e.jsxs(r,{to:`${h}/${s.slug}`,className:"group flex items-center justify-between gap-3 rounded-lg border border-[#E6E5E5] bg-white px-5 py-4 transition hover:border-[#0b4173] hover:bg-[#eef1f5]",children:[e.jsxs("span",{className:"flex min-w-0 items-center",children:[s.is_new&&e.jsx(d,{}),e.jsxs("span",{className:"truncate font-medium text-[#0b4173] underline-offset-2 group-hover:underline",children:["Question Paper ",s.month," ",s.year]})]}),e.jsxs("span",{className:"flex shrink-0 items-center gap-3",children:[e.jsxs("span",{className:"text-xs text-gray-500",children:[s.paper_count," paper",s.paper_count===1?"":"s"]}),e.jsx(c,{className:"text-[#0b4173]","aria-hidden":"true"})]})]})},s.slug))}):e.jsxs("div",{className:"space-y-3 py-4","aria-busy":"true",children:[e.jsx("div",{className:"h-14 w-full animate-pulse rounded-lg bg-gray-100"}),e.jsx("div",{className:"h-14 w-full animate-pulse rounded-lg bg-gray-100"}),e.jsx("div",{className:"h-14 w-full animate-pulse rounded-lg bg-gray-100"})]}),e.jsx(m,{})]})]})]})]})};export{N as default};

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.