1import{r as s,O as d,j as e,p as c,A as x,P as m,q as h,L as b}from"./index-ZRYBhLqp.js";import{S as p}from"./SpinLoader-R5gtw5Zr.js";import{D as f}from"./DataFallback-DEMZmWYe.js";const y=()=>{const{fetchPublicAdsV2:i,projectJobs:r,loading:l}=s.useContext(d),a=s.useRef(!1);s.useEffect(()=>{a.current||(a.current=!0,i())},[]);const o=()=>e.jsx("span",{className:"ml-2 inline-block animate-pulse rounded bg-red-600 px-1.5 py-0.5 text-[10px] font-bold text-white uppercase leading-none",children:"NEW"});return e.jsx("div",{className:"bg-white py-12 px-4 sm:px-6 lg:px-8 font-sans",children:e.jsxs("div",{className:"mx-auto max-w-6xl",children:[e.jsx("h4",{className:"mb-8 text-center text-xl font-bold text-gray-800",children:"Presently we are considering applications for the following Project positions:"}),l?e.jsx("div",{className:"flex justify-center py-20",children:e.jsx(p,{})}):r?.length>0?e.jsx("div",{className:"mb-10 overflow-hidden border border-gray-300 shadow-sm",children:e.jsxs("table",{className:"w-full border-collapse bg-white text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[#0b518e] text-white",children:[e.jsx("th",{className:"border border-gray-400 p-3 text-sm font-medium text-center",style:{width:"70%"},children:"Title"}),e.jsx("th",{className:"border border-gray-400 p-3 text-sm font-medium text-center",style:{width:"15%"},children:"Advertisement"}),e.jsx("th",{className:"border border-gray-400 p-3 text-sm font-medium text-center",style:{width:"15%"},children:"Last Date"})]})}),e.jsx("tbody",{children:r.map(t=>{const n=t.adLevelFiles?.[0]||null;return e.jsxs("tr",{className:"hover:bg-gray-50 transition-colors",children:[e.jsxs("td",{className:"border border-gray-300 p-4 text-gray-700 leading-relaxed text-left font-medium",children:[t.title,c(t.latest_activity)&&e.jsx(o,{})]}),e.jsx("td",{className:"border border-gray-300 p-4 text-center",children:n?e.jsxs("a",{href:`${x.base_url}v2/files/download/${n.id}`,className:"inline-flex items-center gap-2 rounded bg-[#2d3e50] px-4 py-2 text-xs font-semibold text-white transition-colors hover:bg-[#0b518e]",target:"_blank",rel:"noopener noreferrer",children:["Download"," ",e.jsx(m,{className:"text-red-400",size:16})]}):e.jsx("span",{className:"text-gray-400",children:"-"})}),e.jsx("td",{className:"border border-gray-300 p-4 text-center text-gray-600 font-medium",children:t?.closing_date?h(t.closing_date).date:"Ongoing"})]},t.id)})})]})}):e.jsx(f,{message:"Currently there are no advertisements for Project positions."}),e.jsx("div",{className:"mt-12 rounded-md bg-[#E7EDF2]/70 p-8 border border-gray-200",children:e.jsx("div",{className:"flex justify-center",children:e.jsx(b,{to:"/project-positions-archive",className:"flex items-center justify-center rounded bg-[#2D3E50] py-3.5 px-10 text-xs font-bold uppercase tracking-widest text-white transition-all hover:bg-[#1a2530] text-center",children:"Click here for Old Recruitments"})})})]})})};export{y 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.