1import{Q as H,j as s}from"./index-DEUjwZoC.js";import{a as i,R as C,T as n}from"./i18n-C3Xg6vEw.js";import{L as K,S as T}from"./landingHeader-Cq7y8p00.js";import{C as Y,R as d,f as I,c as v,d as S,g as D}from"./DataTables-CH3ITbhd.js";import{C as q}from"./Card-CZnrehcr.js";import{h as r}from"./moment-ChfrgupQ.js";import{_ as y}from"./R2-DDsC8vaA.js";import"./router-j9sYoi7O.js";import"./redux-CtrRID3f.js";import"./react-core-gAzAb7R3.js";import"./landingStyles-Bh0wQPzq.js";import"./utils-B-nf9wHP.js";import"./Button-CIcmNoo_.js";import"./FileSaver.min-Dm0qHo_N.js";/* empty css */import"./asyncToGenerator-BfWTt6ZC.js";const ns=()=>{const[L,u]=i.useState(!1),[E,G]=i.useState([]),[p,l]=i.useState([]),[_,M]=i.useState(),[g,o]=i.useState([]),[c,N]=i.useState(r().format("yyyy")),[x,m]=i.useState([]),[h,w]=i.useState(!1),[B,R]=i.useState("fr");window.addEventListener("scroll",e=>{window.scrollY>200?u(!0):u(!1)}),i.useEffect(()=>{let e=window.location.search;if(console.log(e),e!=""){let t=e.slice(1,e.length);j("",r(t).format("yyyy"),t)}else j("",r("2023-01-01").format("yyyy"))},[0]);const j=async(e,t,b)=>{w(!0),await fetch("https://bk.iaicameroun.com/api/concour/getAllConcourPublishedByYear/"+t).then(a=>a.json()).then(a=>{console.log(a);try{if(a.sessionList.length>0)if(M(a),o(a.sessionList),N(t),b){let f=a.sessionList.indexOf(b);l(a.candidateList[f]),m(a.sessionList[f])}else l(a.candidateList[0]);else H.warning("No session writing this year"),m(""),N(t),o([]),l([])}catch{o([]),l([])}}).catch(a=>{o([]),l([])}),w(!1)},k=async e=>{m(g[e.target.value]),l(_.candidateList[e.target.value])},F=C.useMemo(()=>[{Header:"Student Name",accessor:"name"},{Header:"Sur Name",accessor:"surName"},{Header:"Field",accessor:"field"},{Header:"Center",accessor:"center"},{Header:"Status",accessor:"result"}],[]),A=Array.from({length:parseInt(r().format("yyyy"))-2009},(e,t)=>parseInt(r().format("yyyy"))-t);return s.jsxs(C.Fragment,{children:[s.jsx(K,{setCurrentLang:R}),L?s.jsx(T,{}):"",s.jsx("br",{}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(Y,{className:"mt--7",fluid:!0,style:{padding:"0",marginTop:"-60px !important",marginTop:"-5rem !important"},children:s.jsx(d,{children:s.jsx("div",{className:"col",style:{paddingLeft:"5px",paddingRight:"5px"},children:s.jsx(q,{className:"shadow admin-container",children:s.jsxs(I,{className:"border-0",style:{padding:"0"},children:[s.jsxs(d,{className:"align-data-center admin-container2",children:[s.jsx("div",{xs:"8",children:s.jsx("h3",{className:"mb-0"})}),s.jsx("div",{className:"text-right",xs:"4"})]}),s.jsx("br",{}),s.jsxs(d,{className:"d-flex justify-content-around",children:[s.jsxs(v,{className:"d-flex justify-content-around",md:5,style:{margin:"10px"},children:["Choose Concour Year:",h?s.jsx("img",{style:{height:"25px"},src:y,alt:"Loading"}):s.jsxs(S,{id:"year",name:"year",type:"select",style:{width:"100px"},value:c,onChange:e=>j(e,e.target.value),children:[c?s.jsx(s.Fragment,{children:c}):s.jsx(s.Fragment,{}),A.map(e=>{if(c!==e)return s.jsx("option",{value:e,children:e})})]})]}),s.jsxs(v,{className:"d-flex justify-content-around",md:5,style:{margin:"10px"},children:["Choose Concour Session :",h?s.jsx("img",{style:{height:"25px"},src:y,alt:"Loading"}):s.jsxs(S,{id:"session",name:"session",type:"select",onChange:k,style:{width:"140px"},children:[x?s.jsx("option",{children:r(x).format("D MMMM")}):s.jsx(s.Fragment,{children:"good"}),g.map((e,t)=>{if(x!==e)return s.jsx("option",{value:t,children:r(e).format("D MMMM")})})]})]})]}),h?s.jsx("div",{style:{display:"flex",justifyContent:"center"},children:s.jsx("img",{style:{height:"100px"},src:y,alt:"Loading"})}):s.jsx(d,{className:"d-flex justify-content-around",md:10,children:s.jsx("div",{style:{width:"85%"},children:s.jsx(D,{columns:F,data:p,totalLabel:"Total Students who passed ",totalRows:p.length,exportFile:0})})})]})})})})}),s.jsxs("div",{id:"footer",children:[s.jsxs("div",{id:"foot-content",children:[s.jsxs("div",{id:"footer-box",children:[s.jsx("h3",{children:s.jsx(n,{i18nKey:"contact_location"})}),s.jsxs("div",{className:"icon-message",href:"#maps",children:[s.jsx("span",{className:"ni ni-
1pin-3 "}),"Awae-Nkolanga",s.jsx("br",{}),s.jsx(n,{i18nKey:"YC"})]}),s.jsxs("div",{className:"icon-message",children:[s.jsx("span",{className:"ni ni-email-83"}),"[email protected]"]}),s.jsxs("div",{className:"icon-message",children:[s.jsx("span",{className:"fas fa-phone",children:" "}),s.jsx("a",{href:"tel:(+237) 242-72-99-57",children:" (+237) 242-72-99-57"}),s.jsx("a",{href:"tel:(+237) 242-72-99-58",children:" (+237) 242-72-99-58"})]})]}),s.jsxs("div",{id:"footer-box",children:[s.jsx("h3",{children:s.jsx(n,{i18nKey:"Certification"})}),s.jsxs("ul",{children:[s.jsxs("li",{children:[" ",s.jsx("i",{className:"ni ni-fat-delete"}),"Hauwei"]}),s.jsxs("li",{children:[s.jsx("i",{className:"ni ni-fat-delete"}),"Microsoft"]}),s.jsxs("li",{children:[s.jsx("i",{className:"ni ni-fat-delete"}),"Cisco"]}),s.jsxs("li",{children:[s.jsx("i",{className:"ni ni-fat-delete"}),"Google"]})]})]}),s.jsxs("div",{id:"footer-box",children:[s.jsx("h3",{children:s.jsx(n,{i18nKey:"Follow_us"})}),s.jsxs("div",{className:"square-icon",children:[s.jsx("a",{href:"https://www.facebook.com/share/18DXnhUApx/",style:{color:"white"},children:s.jsx("span",{className:"fab fa-facebook-f"})}),"Facebook",s.jsx("br",{})]}),s.jsxs("div",{className:"square-icon",children:[s.jsx("a",{href:"https://x.com/iaicmr_officiel",style:{color:"white"},children:s.jsx("span",{className:"fab fa-twitter"})}),"X (Twitter)",s.jsx("br",{})]}),s.jsxs("div",{className:"square-icon",children:[s.jsx("a",{href:"https://www.instagram.com/iai_cmr?igsh=ZGdrbnc0emF2NG5z",style:{color:"white"},children:s.jsx("span",{className:"fab fa-instagram"})}),"Instagram",s.jsx("br",{})]})]}),s.jsxs("div",{id:"footer-box",children:[s.jsx("h3",{children:s.jsx(n,{i18nKey:"General"})}),s.jsxs("ul",{children:[s.jsxs("li",{children:[" ",s.jsx("i",{className:"ni ni-fat-delete"}),s.jsx(n,{i18nKey:"TC"})]}),s.jsxs("li",{children:[s.jsx("i",{className:"ni ni-fat-delete"}),s.jsx(n,{i18nKey:"Privacy_Policy"})]})]})]})]}),s.jsxs("div",{id:"end",children:[s.jsx("br",{}),"IAI | AICS Cameroon   ",s.jsx("br",{}),"© 2023 ",s.jsx(n,{i18nKey:"copyright"}),"."]})]})]})};export{ns 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.