1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{91015:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return a(5542)}])},5542:function(e,t,a){"use strict";let r,n,s,l,i,o,d,c,m,u,p;a.r(t),a.d(t,{default:function(){return _}});var h=a(85893),x=a(67294),f=a(55238),v=a(76558),g=a(11163),C=a(60378),b=a(43267),w=a(43937),N=a(30604),y=a(96486),j=a.n(y),k=a(9473),S=a(34724);function A(e,t){let a=[];return e.forEach(e=>{let r=e[t],n=a.find(e=>e[t]===r);n?n.data.push(e):a.push({[t]:r,data:[e]})}),a}function _(){(0,g.useRouter)();let e=(0,k.v9)(e=>e.data.user),[t,a]=(0,x.useState)([]),[y,_]=(0,x.useState)([]),[I,E]=(0,x.useState)((null==e?void 0:e.status)||"ADMIN"),[Z,q]=(0,x.useState)(null);(0,x.useEffect)(()=>{let e=async()=>{let e=await M.readAll();_(e)};e()},[]);let M=new w.Z,H=new N.Z,V=new v.Z,[P,D]=(0,x.useState)({admin:0,students:0,teachers:0,schools:0});(0,x.useEffect)(()=>{I.includes("ADMIN")||(location.href="/settings"),setTimeout(()=>{T()},3e3)},[e]),(0,x.useEffect)(()=>{L()},[]);let T=async e=>{try{let t=e||await M.readAll();a(t);let r=await H.readAll(),n=[];for(let e=0;e<t.length;e++){let a=t[e],s=r.filter(e=>"STUDENT"===e.status&&parseInt(e.school)===parseInt(a.sheet_id)).length,l=r.filter(e=>"TEACHER"===e.status&&parseInt(e.school)===parseInt(a.sheet_id)).length;a.students=s,a.teachers=l,n.push(a)}let s=await V.readAll();D({admin:s.filter(e=>"ADMIN"===e.status||"SUPERADMIN"===e.status).length,students:t.reduce((e,t)=>{var a,r;return e+parseInt((null===(a=t.num_students)||void 0===a?void 0:a.women)||"0")+parseInt((null===(r=t.num_students)||void 0===r?void 0:r.men)||"0")},0)||0,teachers:t.reduce((e,t)=>{var a,r;return e+parseInt((null===(a=t.num_teachers)||void 0===a?void 0:a.women)||"0")+parseInt((null===(r=t.num_teachers)||void 0===r?void 0:r.men)||"0")},0)||0,schools:t.length})}catch(e){}},L=async e=>{try{let t=e||await M.readAll(),a=await H.readAll();j().uniqBy(t.filter(e=>e.commune).map(e=>({departement:e.departement,name:e.commune,value:e.commune})),e=>e.name);let r=[];for(let e=0;e<t.length;e++){let n=t[e],s=a.filter(e=>"STUDENT"===e.status&&parseInt(e.school)===parseInt(n.sheet_id)).length,l=a.filter(e=>"TEACHER"===e.status&&parseInt(e.school)===parseInt(n.sheet_id)).length;n.students=s,n.teachers=l,r.push(n)}let n=A(r,"departement"),s=A(r,"type_formation"),l=A(r,"patented"),i=A(r,"infp_accredited"),o=await b.Z.auth.getSession(),{session:d}=o.data;if(d&&d.user){let{id:e}=d.user;if(e){let t=await V.read(e);t&&t.length>0&&q(t[0])}}Y(n),F(n),R(i.filter(e=>null!==e.infp_accredited).map(e=>(e.infp_accredited=e.infp_accredited?"Accredit\xe9":"Non accredit\xe9",e))),X(l.filter(e=>null!==e.patented).map(e=>(e.patented=e.patented?"Patent\xe9":"Sans Patente",e))),J(s.filter(e=>e.type_formation)),U(n),W(n),Q(n),K(t),$(t)}catch(e){}},[B,O]=(0,x.useState)({}),z=e=>{let{name:t,value:a}=e.target;O(e=>({...e,[t]:a}))};(0,x.useEffect)(()=>{G()},[B]);let G=()=>{let e=[];e=y;let t=e.filter(e=>!B.departement||!e.departement||!!e.departement&&e.departement===B.departement).filter(e=>!B.commune||null!=e&&!!e.address.toLowerCase().includes(null==B?void 0:B.commune.toLowerCase())).filter(e=>!B.activityTime||!!(e.launched_date&&parseInt(new Date().getFullYear()-new Date(e.launched_date).getFullYear())>=parseInt(B.activityTime.split("-")[0])&&parseInt(new Date().getFullYear()-new Date(e.launched_date).getFullYear())<=parseInt(B.activityTime.split("-")[1]))).filter(e=>!B.capacity||!!(e.capacite_acceuil&&parseInt(e.capacite_acceuil)>=parseInt(B.capacity.split("-")[0])&&parseInt(e.capacite_acceuil)<=parseInt(B.capacity.split("-")[1]))).filter(e=>!B.launchYear||!!e.launched_date&&parseInt(new Date(e.launched_date).getFullYear())===parseInt(B.launchYear)).filter(e=>!B.bankAccount||!!e.bankaccount&&e.bankaccount===B.bankAccount).filter(e=>!B.patented||!!e.patented&&e.patented===B.patented).filter(e=>!B.infp_accredited||!!e.infp_accredited&&e.infp_accredited===B.infp_accredited).filter(e=>!B.specialisation||!!JSON.stringify(e).includes(B.specialisation));L(t)},Y=e=>{var t={series:[{data:e.map(e=>e.data.length)}],chart:{type:"bar"},plotOptions:{bar:{horizontal:!1,columnWidth:"55%",endingShape:"rounded",color:"red"}},dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},xaxis:{categories:e.map(e=>e.departement)},yaxis:{title:{text:"\xc9tablissements"}},fill:{opacity:1,colors:["red"]},tooltip:{y:{formatter:function(e){return e+" \xc9tablissements"}}}};r&&r.destroy(),(r=new ApexCharts(document.querySelector("#chart_etablissements"),t)).render()},F=e=>{p={series:[{data:e.map(e=>e.data.reduce((e,t)=>
1e+parseInt(t.num_teachers.men||"0")+parseInt(t.num_teachers.women||"0"),0))}],chart:{type:"bar",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:e=>new Date(e).toDateString()},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},plotOptions:{bar:{horizontal:!1,columnWidth:"55%",endingShape:"rounded"}},dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},xaxis:{categories:e.map(e=>e.departement)},yaxis:{title:{text:"Enseignants"}},fill:{opacity:1},tooltip:{y:{formatter:function(e){return e+" Enseignants"}}}},n&&n.destroy(),(n=new ApexCharts(document.querySelector("#chart_enseignants"),p)).render()},R=e=>{p={series:e.map(e=>e.data&&e.data.length),labels:e.map(e=>e.infp_accredited),chart:{type:"donut",toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},responsive:[{breakpoint:480,options:{chart:{},legend:{position:"bottom"}}}]},s&&s.destroy(),(s=new ApexCharts(document.querySelector("#chart_infp"),p)).render()},X=e=>{p={series:e.map(e=>e.data&&e.data.length),labels:e.map(e=>e.patented),chart:{type:"donut",toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},responsive:[{breakpoint:480,options:{chart:{},legend:{position:"bottom"}}}]},l&&l.destroy(),(l=new ApexCharts(document.querySelector("#chart_patente"),p)).render()},J=e=>{let t=e.map(e=>e.type_formation.replace("\xc9cole",""));p={series:e.map(e=>e.data&&e.data.length),labels:t,chart:{type:"donut",toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},responsive:[{breakpoint:480,options:{chart:{},legend:{position:"bottom"}}}]},i&&i.destroy(),(i=new ApexCharts(document.querySelector("#chart_type_formation"),p)).render()},U=e=>{p={series:[{data:e.map(e=>e.data.reduce((e,t)=>e+parseInt(t.num_students.men||"0")+parseInt(t.num_students.women||"0"),0))}],chart:{type:"bar",height:250,toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},plotOptions:{bar:{}},dataLabels:{enabled:!1},xaxis:{categories:e.map(e=>e.departement)},yaxis:{title:{text:"\xc9tudiants"}},tooltip:{y:{formatter:function(e){return e+" \xc9tudiants"}}}},o&&o.destroy(),(o=new ApexCharts(document.querySelector("#chart_etudiants"),p)).render()},W=e=>{p={series:j().uniq(e.map(e=>e.departement)).map(t=>({name:t,data:function(e){let t=new Map;e.forEach(e=>{t.set(e,(t.get(e)||0)+1)});let a=Array.from(t,e=>{let[t,a]=e;return{x:t,y:a}});return a}(e.filter(e=>e.departement===t)[0].data.map(e=>e.commune))})),legend:{show:!1},chart:{height:350,type:"treemap",toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},title:{text:"Groupement par d\xe9partement",align:"center"}},d&&d.destroy(),(d=new ApexCharts(document.querySelector("#chart7"),p)).render()},Q=e=>{let t=j().uniq(e.filter(e=>e.departement).map(e=>e.departement)).map(t=>({name:t.name,data:j().uniq(e.filter(e=>e.departement).map(e=>e.departement)).map(t=>e.filter(e=>t===e.departement)[0].data.length)}));p={series:[{name:"Series 1",data:t[0].data}],chart:{height:300,type:"radar",toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},title:{},xaxis:{categories:j().uniq(e.filter(e=>e.departement).map(e=>e.departement))}},c&&c.destroy(),(c=new ApexCharts(document.querySelector("#chart8"),p)).render()},K=e=>{p={series:j().uniq(e.filter(e=>e.commune).map(e=>e.commune)).map(t=>e.filter(e=>e.commune===t).length),chart:{type:"donut"},labels:j().uniq(e.filter(e=>e.commune).map(e=>e.commune)),responsive:[{breakpoint:480,options:{chart:{toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},legend:{position:"bottom"}}}]},m&&m.destroy(),(m=new ApexCharts(document.querySelector("#chart9"),p)).render()},$=e=>{p={series:j().uniq(e.filter(e=>e.departement).map(e=>e.departement)).map(t=>e.filter(e=>e.departement===t).length),chart:{type:"donut",toolbar:{show:!0,offsetX:0,offsetY:0,export:{csv:{filename:void 0},svg:{filename:void 0},png:{filename:void 0}},autoSelected:"zoom"}},labels:j().uniq(e.filter(e=>e.departement).map(e=>e.departement)),responsive:[{breakpoint:480,options:{chart:{},legend:{position:"bottom"}}}]},u&&u.destroy(),(u=new ApexCharts(document.querySelector("#chart10"),p)).render()};return(0,h.jsx)(f.Z,{screen:"dashboard",children:e&&("ADMIN"===e.status||"SUPERADMIN"===e.status||"CONSULTANT"===e.status)&&(0,h.jsxs)("div",{className:"",children:[(0,h.jsx)("section",{className:"py-8 ",children:(0,h.jsx)("div",{className:"container px-4 mx-auto mt-20 lg:mt-5 ",children:(0,h.jsxs)("div",{className:"flex flex-wrap -m-4",children:[(0,h.jsx)("div",{className:"w-1/2 lg:w-1/4 p-4",children:(0,h.jsxs)("div",{className:"p-6 rounded bg-white",children:[(0,h.jsxs)("div",{className:"flex mb-2",children:[(0,h.jsx)("span",{className:"inline-block mr-2",children:(0,h.jsx)("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M9.00013 0.666656C7.90578 0.666656 6.82215 0.882205 5.8111 1.30099C4.80006 1.71978 3.8814 2.33361 3.10758 3.10743C1.54477 4.67024 0.666799 6.78985 0.666799 8.99999C0.659514 10.9243 1.32579 12.7904 2.55013 14.275L0.883466 15.9417C0.767834 16.0588 0.689504 16.2077 0.658359 16.3693C0.627214 16.531 0.64465 16.6982 0.708466 16.85C0.777681 16.9999 0.889886 17.1259 1.03084
117.212C1.17179 17.298 1.33513 17.3403 1.50013 17.3333H9.00013C11.2103 17.3333 13.3299 16.4553 14.8927 14.8925C16.4555 13.3297 17.3335 11.2101 17.3335 8.99999C17.3335 6.78985 16.4555 4.67024 14.8927 3.10743C13.3299 1.54463 11.2103 0.666656 9.00013 0.666656ZM9.00013 15.6667H3.50847L4.28347 14.8917C4.43868 14.7355 4.52579 14.5243 4.52579 14.3042C4.52579 14.084 4.43868 13.8728 4.28347 13.7167C3.19229 12.6267 2.51278 11.1921 2.36071 9.65732C2.20864 8.12253 2.59342 6.58249 3.44949 5.29959C4.30556 4.01669 5.57996 3.07029 7.05556 2.62163C8.53117 2.17298 10.1167 2.24983 11.542 2.83908C12.9673 3.42834 14.1442 4.49355 14.8722 5.85323C15.6002 7.21291 15.8342 8.78294 15.5344 10.2958C15.2346 11.8087 14.4196 13.1709 13.2281 14.1502C12.0366 15.1295 10.5424 15.6654 9.00013 15.6667ZM13.1668 8.16666H4.83347C4.61245 8.16666 4.40049 8.25445 4.24421 8.41073C4.08793 8.56701 4.00013 8.77898 4.00013 8.99999C4.00013 9.221 4.08793 9.43296 4.24421 9.58924C4.40049 9.74553 4.61245 9.83332 4.83347 9.83332H13.1668C13.3878 9.83332 13.5998 9.74553 13.7561 9.58924C13.9123 9.43296 14.0001 9.221 14.0001 8.99999C14.0001 8.77898 13.9123 8.56701 13.7561 8.41073C13.5998 8.25445 13.3878 8.16666 13.1668 8.16666ZM11.5001 11.5H6.50013C6.27912 11.5 6.06716 11.5878 5.91088 11.7441C5.7546 11.9003 5.6668 12.1123 5.6668 12.3333C5.6668 12.5543 5.7546 12.7663 5.91088 12.9226C6.06716 13.0789 6.27912 13.1667 6.50013 13.1667H11.5001C11.7211 13.1667 11.9331 13.0789 12.0894 12.9226C12.2457 12.7663 12.3335 12.5543 12.3335 12.3333C12.3335 12.1123 12.2457 11.9003 12.0894 11.7441C11.9331 11.5878 11.7211 11.5 11.5001 11.5ZM6.50013 6.49999H11.5001C11.7211 6.49999 11.9331 6.41219 12.0894 6.25591C12.2457 6.09963 12.3335 5.88767 12.3335 5.66666C12.3335 5.44564 12.2457 5.23368 12.0894 5.0774C11.9331 4.92112 11.7211 4.83332 11.5001 4.83332H6.50013C6.27912 4.83332 6.06716 4.92112 5.91088 5.0774C5.7546 5.23368 5.6668 5.44564 5.6668 5.66666C5.6668 5.88767 5.7546 6.09963 5.91088 6.25591C6.06716 6.41219 6.27912 6.49999 6.50013 6.49999Z",fill:"#382CDD"})})}),(0,h.jsx)("h3",{className:"text-sm text-gray-600",children:"Administrateurs"})]}),(0,h.jsx)("h2",{className:"mb-2 text-3xl font-bold",children:P.admin})]})}),(0,h.jsx)("div",{className:"w-1/2 lg:w-1/4 p-4",children:(0,h.jsxs)("div",{className:"p-6 rounded bg-white",children:[(0,h.jsxs)("div",{className:"flex mb-2",children:[(0,h.jsx)("span",{className:"inline-block mr-2",children:(0,h.jsx)("svg",{width:18,height:16,viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M14.8334 3.41668H12.3334V2.58334C12.3334 1.9203 12.07 1.28442 11.6012 0.815577C11.1323 0.346736 10.4965 0.0833435 9.83342 0.0833435H8.16675C7.50371 0.0833435 6.86782 0.346736 6.39898 0.815577C5.93014 1.28442 5.66675 1.9203 5.66675 2.58334V3.41668H3.16675C2.50371 3.41668 1.86782 3.68007 1.39898 4.14891C0.93014 4.61775 0.666748 5.25363 0.666748 5.91668V13.4167C0.666748 14.0797 0.93014 14.7156 1.39898 15.1844C1.86782 15.6533 2.50371 15.9167 3.16675 15.9167H14.8334C15.4965 15.9167 16.1323 15.6533 16.6012 15.1844C17.07 14.7156 17.3334 14.0797 17.3334 13.4167V5.91668C17.3334 5.25363 17.07 4.61775 16.6012 4.14891C16.1323 3.68007 15.4965 3.41668 14.8334 3.41668ZM7.33342 2.58334C7.33342 2.36233 7.42121 2.15037 7.57749 1.99409C7.73377 1.83781 7.94573 1.75001 8.16675 1.75001H9.83342C10.0544 1.75001 10.2664 1.83781 10.4227 1.99409C10.579 2.15037 10.6667 2.36233 10.6667 2.58334V3.41668H7.33342V2.58334ZM15.6667 13.4167C15.6667 13.6377 15.579 13.8497 15.4227 14.0059C15.2664 14.1622 15.0544 14.25 14.8334 14.25H3.16675C2.94573 14.25 2.73377 14.1622 2.57749 14.0059C2.42121 13.8497 2.33341 13.6377 2.33341 13.4167V8.83334C3.14628 9.15577 3.9819 9.41759 4.83342 9.61668V10.1083C4.83342 10.3294 4.92121 10.5413 5.07749 10.6976C5.23377 10.8539 5.44573 10.9417 5.66675 10.9417C5.88776 10.9417 6.09972 10.8539 6.256 10.6976C6.41228 10.5413 6.50008 10.3294 6.50008 10.1083V9.93334C7.3287 10.0462 8.16382 10.1046 9.00008 10.1083C9.83634 10.1046 10.6715 10.0462 11.5001 9.93334V10.1083C11.5001 10.3294 11.5879 10.5413 11.7442 10.6976C11.9004 10.8539 12.1124 10.9417 12.3334 10.9417C12.5544 10.9417 12.7664 10.8539 12.9227 10.6976C13.079 10.5413 13.1667 10.3294 13.1667 10.
11083V9.61668C14.0183 9.41759 14.8539 9.15577 15.6667 8.83334V13.4167ZM15.6667 7.00834C14.8562 7.35042 14.0204 7.62904 13.1667 7.84168V7.58334C13.1667 7.36233 13.079 7.15037 12.9227 6.99409C12.7664 6.83781 12.5544 6.75001 12.3334 6.75001C12.1124 6.75001 11.9004 6.83781 11.7442 6.99409C11.5879 7.15037 11.5001 7.36233 11.5001 7.58334V8.20001C9.84279 8.45004 8.15737 8.45004 6.50008 8.20001V7.58334C6.50008 7.36233 6.41228 7.15037 6.256 6.99409C6.09972 6.83781 5.88776 6.75001 5.66675 6.75001C5.44573 6.75001 5.23377 6.83781 5.07749 6.99409C4.92121 7.15037 4.83342 7.36233 4.83342 7.58334V7.85834C3.97977 7.6457 3.14392 7.36709 2.33341 7.02501V5.91668C2.33341 5.69566 2.42121 5.4837 2.57749 5.32742C2.73377 5.17114 2.94573 5.08334 3.16675 5.08334H14.8334C15.0544 5.08334 15.2664 5.17114 15.4227 5.32742C15.579 5.4837 15.6667 5.69566 15.6667 5.91668V7.00834Z",fill:"#382CDD"})})}),(0,h.jsx)("h3",{className:"text-sm text-gray-600",children:"\xc9tablissements"})]}),(0,h.jsx)("h2",{className:"mb-2 text-3xl font-bold",children:P.schools})]})}),(0,h.jsx)("div",{className:"w-1/2 lg:w-1/4 p-4",children:(0,h.jsxs)("div",{className:"p-6 rounded bg-white",children:[(0,h.jsxs)("div",{className:"flex mb-2",children:[(0,h.jsx)("span",{className:"inline-block mr-2",children:(0,h.jsx)("svg",{width:14,height:18,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M13.6666 6.44999C13.6579 6.37344 13.6411 6.29802 13.6166 6.22499V6.14999C13.5765 6.06431 13.5231 5.98554 13.4583 5.91666L8.45825 0.916656C8.38936 0.851837 8.3106 0.798391 8.22492 0.758323H8.14992C8.06526 0.709774 7.97177 0.67861 7.87492 0.666656H2.83325C2.17021 0.666656 1.53433 0.930049 1.06548 1.39889C0.596644 1.86773 0.333252 2.50362 0.333252 3.16666V14.8333C0.333252 15.4964 0.596644 16.1322 1.06548 16.6011C1.53433 17.0699 2.17021 17.3333 2.83325 17.3333H11.1666C11.8296 17.3333 12.4655 17.0699 12.9344 16.6011C13.4032 16.1322 13.6666 15.4964 13.6666 14.8333V6.49999C13.6666 6.49999 13.6666 6.49999 13.6666 6.44999ZM8.66658 3.50832L10.8249 5.66666H9.49992C9.2789 5.66666 9.06694 5.57886 8.91066 5.42258C8.75438 5.2663 8.66658 5.05434 8.66658 4.83332V3.50832ZM11.9999 14.8333C11.9999 15.0543 11.9121 15.2663 11.7558 15.4226C11.5996 15.5789 11.3876 15.6667 11.1666 15.6667H2.83325C2.61224 15.6667 2.40028 15.5789 2.244 15.4226C2.08772 15.2663 1.99992 15.0543 1.99992 14.8333V3.16666C1.99992 2.94564 2.08772 2.73368 2.244 2.5774C2.40028 2.42112 2.61224 2.33332 2.83325 2.33332H6.99992V4.83332C6.99992 5.49636 7.26331 6.13225 7.73215 6.60109C8.20099 7.06993 8.83688 7.33332 9.49992 7.33332H11.9999V14.8333Z",fill:"#382CDD"})})}),(0,h.jsx)("h3",{className:"text-sm text-gray-600",children:"\xc9tudiants"})]}),(0,h.jsx)("h2",{className:"mb-2 text-3xl font-bold",children:P.students})]})}),(0,h.jsx)("div",{className:"w-1/2 lg:w-1/4 p-4",children:(0,h.jsxs)("div",{className:"p-6 rounded bg-white",children:[(0,h.jsxs)("div",{className:"flex mb-2",children:[(0,h.jsx)("span",{className:"inline-block mr-2",children:(0,h.jsx)("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M11.3413 9.23332C11.8687 8.66686 12.1659 7.92397 12.1746 7.14999C12.1746 6.31456 11.8427 5.51334 11.252 4.9226C10.6612 4.33186 9.86003 3.99999 9.02459 3.99999C8.18916 3.99999 7.38795 4.33186 6.79721 4.9226C6.20647 5.51334 5.87459 6.31456 5.87459 7.14999C5.88329 7.92397 6.18045 8.66686 6.70793 9.23332C5.97347 9.59905 5.34144 10.1416 4.86869 10.8122C4.39594 11.4828 4.09728 12.2604 3.99959 13.075C3.97528 13.296 4.03976 13.5176 4.17885 13.6911C4.31794 13.8646 4.52025 13.9757 4.74126 14C4.96227 14.0243 5.18389 13.9598 5.35736 13.8207C5.53084 13.6816 5.64195 13.4793 5.66626 13.2583C5.7657 12.4509 6.15696 11.7078 6.76633 11.1689C7.3757 10.63 8.16111 10.3325 8.97459 10.3325C9.78808 10.3325 10.5735 10.63 11.1829 11.1689C11.7922 11.7078 12.1835 12.4509 12.2829 13.2583C12.3061 13.472 12.4109 13.6685 12.5756 13.8067C12.7402 13.9449 12.9518 14.0141 13.1663 14H13.2579C13.4764 13.9749 13.676 13.8644 13.8134 13.6927C13.9508 13.521 14.0147 13.302 13.9913 13.0833C13.9008 12.273 13.6116 11.4975 13.1493 10.8259C12.687 10.1542 12.0659 9.60716 11.3413 9.23332ZM8.99959 8.63332C8.70622 8.63332 8.41943 8.54633 8.1755 8.38334C7.93156 8.22035 7.74144 7.98868 7.62917 7.71764C7.5169 7.44659 7.48753 7.14834 7.54476 6.86061C7.602 6.57287 7.74327 6.30856 7.95072 6.10112C8.15817 5.89367 8.42247 5.75239 8.71021 5.69516C8.99795 5.
163792 9.2962 5.6673 9.56724 5.77957C9.83828 5.89184 10.0699 6.08196 10.2329 6.32589C10.3959 6.56983 10.4829 6.85661 10.4829 7.14999C10.4829 7.54339 10.3266 7.92069 10.0485 8.19887C9.77029 8.47704 9.393 8.63332 8.99959 8.63332ZM14.8329 0.666656H3.16626C2.50322 0.666656 1.86733 0.930049 1.39849 1.39889C0.929652 1.86773 0.66626 2.50362 0.66626 3.16666V14.8333C0.66626 15.4964 0.929652 16.1322 1.39849 16.6011C1.86733 17.0699 2.50322 17.3333 3.16626 17.3333H14.8329C15.496 17.3333 16.1319 17.0699 16.6007 16.6011C17.0695 16.1322 17.3329 15.4964 17.3329 14.8333V3.16666C17.3329 2.50362 17.0695 1.86773 16.6007 1.39889C16.1319 0.930049 15.496 0.666656 14.8329 0.666656ZM15.6663 14.8333C15.6663 15.0543 15.5785 15.2663 15.4222 15.4226C15.2659 15.5789 15.0539 15.6667 14.8329 15.6667H3.16626C2.94525 15.6667 2.73328 15.5789 2.577 15.4226C2.42072 15.2663 2.33293 15.0543 2.33293 14.8333V3.16666C2.33293 2.94564 2.42072 2.73368 2.577 2.5774C2.73328 2.42112 2.94525 2.33332 3.16626 2.33332H14.8329C15.0539 2.33332 15.2659 2.42112 15.4222 2.5774C15.5785 2.73368 15.6663 2.94564 15.6663 3.16666V14.8333Z",fill:"#382CDD"})})}),(0,h.jsx)("h3",{className:"text-sm text-gray-600",children:"Enseignants"})]}),(0,h.jsx)("h2",{className:"mb-2 text-3xl font-bold",children:P.teachers})]})})]})})}),(0,h.jsx)("section",{className:"py-2",children:(0,h.jsxs)("div",{className:"container px-4 mx-auto lg:mt-5 ",children:[(0,h.jsxs)("div",{className:"flex flex-wrap ",children:[(0,h.jsxs)("div",{className:"w-1/2 lg:w-1/4 p-2",children:[(0,h.jsx)("span",{className:"text-sm ml-2",children:"D\xe9partement"}),(0,h.jsx)(S.ZP,{options:C.Bb.map(e=>(e.label=e.name,e)),placeholder:"-",styles:{control:(e,t)=>({...e,marginTop:7,height:46,marginLeft:6})},onChange:async e=>{z({target:{name:"departement",value:e.value}})}})]}),(0,h.jsxs)("div",{className:"w-1/2 lg:w-1/4 p-2",children:[(0,h.jsx)("span",{className:"text-sm",children:"Commune"}),(0,h.jsx)(S.ZP,{options:C.ht.filter(e=>e.departement===B.departement||""===B.departement||""===e.departement||!B.departement).map(e=>(e.label=e.name,e)),placeholder:"-",styles:{control:(e,t)=>({...e,marginTop:7,height:46})},onChange:e=>{z({target:{name:"commune",value:e.value}})}})]}),(0,h.jsxs)("div",{className:"w-1/2 lg:w-1/4 p-2",children:[(0,h.jsx)("span",{className:"text-sm",children:"Temps d'activit\xe9"}),(0,h.jsx)(S.ZP,{options:C.cE,placeholder:"-",styles:{control:(e,t)=>({...e,marginTop:7,height:46})},onChange:e=>{z({target:{name:"activityTime",value:e.value}})}})]}),(0,h.jsxs)("div",{className:"w-1/2 lg:w-1/4 p-2",children:[(0,h.jsx)("span",{className:"text-sm",children:"Cap. dâaccueil"}),(0,h.jsx)(S.ZP,{options:C.E3,placeholder:"-",styles:{control:(e,t)=>({...e,marginTop:7,height:46})},onChange:e=>{z({target:{name:"capacity",value:e.value}})}})]}),(0,h.jsxs)("div",{className:"w-1/2 lg:w-1/4 p-2",children:[(0,h.jsx)("span",{className:"text-sm",children:"Ann\xe9e du lancement"}),(0,h.jsx)(S.ZP,{options:Array.apply(null,Array(50)).map((e,t)=>({label:2024-t==2024?"-":2024-t,value:2024-t==2024?"":2024-t})),placeholder:"-",styles:{control:(e,t)=>({...e,marginTop:7,height:46})},onChange:e=>{z({target:{name:"launchYear",value:e.value}})}})]}),(0,h.jsxs)("div",{className:"w-1/2 lg:w-1/4 p-2",children:[(0,h.jsx)("span",{className:"text-sm",children:"Sp\xe9cialisations"}),(0,h.jsx)(S.ZP,{options:C.Lr.map(e=>({label:e||"Aucun",value:e})),placeholder:"-",styles:{control:(e,t)=>({...e,marginTop:7,height:46})},onChange:e=>{z({target:{name:"specialisation",value:e.value}})}})]}),(0,h.jsx)("div",{className:"w-full lg:w-2/4 p-2",children:(0,h.jsxs)("ul",{className:"flex gap-3 mt-8 text-sm font-medium text-gray-900 bg-white border border-gray-200 rounded-lg dark:bg-gray-700 dark:border-gray-600 dark:text-white",children:[(0,h.jsx)("li",{className:"w-1/3 ml-2 border-gray-200 sm:border-b-0 sm:border-r dark:border-gray-600",children:(0,h.jsxs)("div",{className:"flex items-center ",children:[(0,h.jsx)("input",{id:"vue-checkbox-list",type:"checkbox",defaultValue:"",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dar
1k:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onChange:e=>{z({target:{name:"bankAccount",value:e.target.checked}})}}),(0,h.jsx)("label",{htmlFor:"vue-checkbox-list",className:"w-full py-3 ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:"Banque"})]})}),(0,h.jsx)("li",{className:"w-1/3 border-gray-200",children:(0,h.jsxs)("div",{className:"flex items-center pl-3",children:[(0,h.jsx)("input",{id:"react-checkbox-list",type:"checkbox",defaultValue:"",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onChange:e=>{z({target:{name:"patented",value:e.target.checked}})}}),(0,h.jsx)("label",{htmlFor:"react-checkbox-list",className:"w-full py-3 ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:"Patent\xe9"})]})}),(0,h.jsx)("li",{className:"1/3 dark:border-gray-600",children:(0,h.jsxs)("div",{className:"flex items-center ",children:[(0,h.jsx)("input",{id:"laravel-checkbox-list",type:"checkbox",defaultValue:"",className:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onChange:e=>{z({target:{name:"infp_accredited",value:e.target.checked}})}}),(0,h.jsx)("label",{htmlFor:"laravel-checkbox-list",className:"w-full py-3 ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:"INFP"})]})})]})})]}),(0,h.jsxs)("div",{className:"flex flex-wrap -m-4",children:[(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 h-54",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"\xc9tablissements"})}),(0,h.jsx)("div",{id:"chart_etablissements"})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 h-54",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"Enseignants"})}),(0,h.jsx)("div",{id:"chart_enseignants"})]})}),(0,h.jsx)("div",{className:"w-full p-4 ",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"\xc9tudiants"})}),(0,h.jsx)("div",{id:"chart_etudiants",className:"h-54"})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 ",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"Patent\xe9"})}),(0,h.jsx)("div",{id:"chart_patente",className:" "})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 ",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"Accr\xe9dit\xe9 INFP"})}),(0,h.jsx)("div",{id:"chart_infp"})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 ",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"Type de Formation"})}),(0,h.jsx)("div",{id:"chart_type_formation",className:"mt-4"})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 h-54",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"R\xe9partition des d\xe9partements"})}),(0,h.jsx)("div",{id:"chart8",className:"mt-5"})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 h-54",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"Pourcentage par ville"})}),(0,h.jsx)("div",{id:"chart9",className:"mt-7"})]})}),(0,h.jsx)("div",{className:"w-full lg:w-1/2 p-4 h-54",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black",children:"Pourcentage par d\xe9partement"})}),(0,h.jsx)("div",{id:"chart10"})]})}),(0,h.jsx)("div",{className:"w-full p-4 h-54",children:(0,h.jsxs)("div",{className:"p-6 bg-white shadow rounded",children:[(0,h.jsx)("div",{className:"flex items-center py-5 border-b",children:(0,h.jsx)("h3",{className:"text-2xl font-bold text-black"})}),(0,h.jsx)("div",{id:"chart7"})]})})]})]})})]})})}},30604:function(e,t,a){"use strict";var r=a(43267);t.Z=class{async create(e){try{let{error:t}=await r.Z.from(this.collection).insert(e);if(t)return t;return{success:!0}}catch(e){throw console.error("Error creating data:",e),e}}
1async readAll(){try{let{data:e,error:t}=await r.Z.from(this.collection).select("*");if(t)return t;return e}catch(e){throw console.error("Error reading data:",e),e}}async read(e){try{let{data:t,error:a}=await r.Z.from(this.collection).select().eq("id",e);if(a)return a;return t}catch(e){throw console.error("Error reading data:",e),e}}async update(e,t){try{let{error:a}=await r.Z.from(this.collection).update(t).eq("id",e);if(a)return a;return{success:!0}}catch(e){throw console.error("Error updating data:",e),e}}async delete(e){try{let{error:t}=await r.Z.from(this.collection).delete().eq("id",e);if(t)return t;return{success:!0}}catch(e){throw console.error("Error deleting data:",e),e}}constructor(){this.collection="members"}}},43937:function(e,t,a){"use strict";var r=a(43267),n=a(49802);let s=(0,n.eI)("https://rwflqhrkouqhfexmugpk.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJ3ZmxxaHJrb3VxaGZleG11Z3BrIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTY5Mzc1MDUwMSwiZXhwIjoyMDA5MzI2NTAxfQ.J608dsCwGR_tl9nzFuABb08vlP0Xm9VWCUTzSrOzPdc",{auth:{autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1}});t.Z=class{async create(e){try{let{error:t}=await r.Z.from(this.collection).insert(e);if(t)return t;return{success:!0}}catch(e){throw console.error("Error creating data:",e),e}}async readAll(e){try{let{data:t,error:a}=await r.Z.from(this.collection).select(e||"*");if(a)return a;return t}catch(e){throw console.error("Error reading data:",e),e}}async read(e){try{let{data:t,error:a}=await r.Z.from(this.collection).select().eq("sheet_id",parseInt(e));if(a)return a;return t&&t.length>0?t[0]:null}catch(e){throw console.error("Error reading data:",e),e}}async readByDirectEmail(e){try{let{data:t,error:a}=await r.Z.from(this.collection).select("*");if(a)return a;return t&&t.length>0?t.filter(t=>t.responsable_principal.email===e)[0]:null}catch(e){throw console.error("Error reading data:",e),e}}async update(e,t){try{let{error:a}=await r.Z.from(this.collection).update(t).eq("id",e);if(a)return a;return{success:!0}}catch(e){throw console.error("Error updating data:",e),e}}async updateInedx(e,t){try{let{error:a}=await r.Z.from(this.collection).update(t).eq("sheet_id",e);if(a)return a;return{success:!0}}catch(e){throw console.error("Error updating data:",e),e}}async updateName(e,t){try{let{error:a}=await r.Z.from(this.collection).update(t).eq("name",e);if(a)return a;return{success:!0}}catch(e){throw console.error("Error updating data:",e),e}}async delete(e){try{let{error:t}=await s.from(this.collection).delete().eq("id",e);if(t)return t;return{success:!0}}catch(e){throw console.error("Error deleting data:",e),e}}constructor(){this.collection="schools"}}},60378:function(e,t,a){"use strict";a.d(t,{Bb:function(){return r},E3:function(){return l},Lr:function(){return i},cE:function(){return s},ht:function(){return n}});let r=[{name:"Aucun",value:""},{name:"Ouest",value:"Ouest"},{name:"Nord",value:"Nord"},{name:"Nord'Est",value:"Nord-Est"},{name:"Nord'Ouest",value:"Nord'Ouest"},{name:"Sud",value:"Sud"},{name:"Sud'Est",value:"Sud-Est"},{name:"Nippes",value:"Nippes"},{name:"Grand'Anse",value:"Grand'Anse"},{name:"Artibonite",value:"Artibonite"},{name:"Centre",value:"Centre"}],n=[{name:"Aucune",value:"",departement:""},{departement:"Artibonite",name:"Dessalines",value:"Dessalines"},{departement:"Artibonite",name:"Gona\xefves",value:"Gona\xefves"},{departement:"Artibonite",name:"Gros-Morne",value:"Gros-Morne"},{departement:"Artibonite",name:"Saint-Marc",value:"Saint-Marc"},{departement:"Artibonite",name:"Marmelade",value:"Marmelade"},{departement:"Centre",name:"Cerca-la-Source",value:"Cerca-la-Source"},{departement:"Centre",name:"Hinche",value:"Hinche"},{departement:"Centre",name:"Lascahobas",value:"Lascahobas"},{departement:"Centre",name:"Mirebalais",value:"Mirebalais"},{departement:"Grand'Anse",name:"Anse-d'Hainault",value:"Anse-d'Hainault"},{departement:"Grand'Anse",name:"Corail",value:"Corail"},{departement:"Grand'Anse",name:"J\xe9r\xe9mie",value:"J\xe9r\xe9mie"},{departement:"Nippes",name:"Anse-\xe0-Veau",value:"Anse-\xe0-Veau"},{departement:"Nippes",name:"Barad\xe8res",value:"Barad\xe8res"},{departement:"Nippes",name:"Mirago\xe2ne",value:"Mirago\xe2ne"},{departement:"Nord",name:"Acul-du-Nord",value:"Acul-du-Nord"},{departement:"Nord",name:"Borgne",value:"Borgne"},{departement:"Nord",name:"Cap-Ha\xeftien",value:"Cap-Ha\xeftien"},{departement:"Nord",name:"Grande-Rivi\xe8re-du-Nord",value:"Grande-Rivi\xe8re-du-Nord"},{departement:"Nord",name:"Limb\xe9",value:"Limb\xe9"},{departement:"Nord",name:"Plaisance",value:"Plaisance"},{departement:"Nord",name:"Saint-Rapha\xebl",value:"Saint-Rapha\xebl"},{departement:"Nord-Est",name:"Fort-Libert\xe9",value:"Fort-Libert\xe9"},{departement:"Nord-Est",name:"Ouanaminthe",value:"Ouanaminthe"},{departement:"Nord-Est",name:"Trou-du-Nord",value:"Trou-du-Nord"},{departement:"Nord-Est",name:"Valli\xe8res",value:"Valli\xe8res"},{departement:"Nord-Ouest",name:"M\xf4le-Saint-Nicolas",value:"M\xf4le-Saint-Nicolas"},{departement:"Nord-Ouest",name:"Port-de-Paix",value:"Port-de-Paix"},{departement:"Nord-Ouest",name:"Saint-Louis-du-Nord",value:"Saint-Louis-du-Nord"},{departement:"Ouest",name:"Arcahaie",value:"Arcahaie"},{departement:"Ouest",name:"Croix-des-Bouquets",value:"Croix-des-Bouquets"},{departement:"Ouest",name:"La Gon\xe2ve",value:"La Gon\xe2ve"},{departement:"Ouest",name:"L\xe9og\xe2ne",value:"L\xe9og\xe2ne"},{departement:"Ouest",name:"Port-au-Prince",value:"Port-au-Prince"},{departement:"Sud-Est",name:"Bainet",value:"Bainet"},{departement:"Sud-Est",name:"Belle-Anse",value:"Belle-Anse"},{departement:"Sud-Est",name:"Jacmel",value:"Jacmel"},{departement:"Sud",name:"Aquin",value:"Aquin"},{departement:"Sud",name:"Les Cayes",value:"Les Cayes"},{departement:"Sud",name:"Chardonni\xe8res",value:"Chardonni\xe8res"},{departement:"Sud",name:"C\xf4teaux",value:"C\xf4teaux"},{departement:"Sud",name:"Port-Salut",value:"Port-Salut"}],s=[{label:"_",value:""},{label:"1 \xe0 4 ans",value:"1-4"},{label:"5 \xe0 9 ans",value:"5-9"},{label:"10 \xe0 14 ans",value:"10-14"},{label:"15 \xe0 19 ans",value:"15-19"},{label:"20 \xe0 24 ans",value:"20-24"},{label:"25 ans et plus",value:"25-100"}],l=[{label:"_",value:""}
1,{label:"0 \xe0 99",value:"0-99"},{label:"100 \xe0 199",value:"100-199"},{label:"200 \xe0 299",value:"200-299"},{label:"300 \xe0 399",value:"300-399"},{label:"400 \xe0 499",value:"400-499"},{label:"500 et plus",value:"500-30000"}],i=["","10 commandements de la cuisine","Avoir un espace pour l'h\xe9bergement","Anglais","Bar restaurant","Bases des p\xe2tes","Carte touristique","Cocktail","Comptabilit\xe9","Cosm\xe9tologie","Cours d'hygi\xe8ne","Cuisine","Cuisine et P\xe2tisserie","D\xe9coration de g\xe2teaux","D\xe9coration et montage de g\xe2teaux","D\xe9veloppement professionnel","Droit","Droit du travail","\xc9conomie","\xc9ducation civique","\xc9thique professionnelle","Entreprenariat","Espagnol","\xc9v\xe9nements (Event planning)","Fran\xe7ais commercial","Fran\xe7ais parl\xe9 et \xe9crit","G\xe9ographie touristique","Gestion des ressources humaines","Gestion h\xf4teli\xe8re","H\xe9bergement","H\xe9bergement, \xe9tiquette de table","H\xe9bergement et r\xe9ception","H\xf4tellerie et tourisme","Informatique bureautique","Introduction \xe0 l'h\xf4tellerie","Marketing","Marketing touristique","Planification d'\xe9v\xe9nements","P\xe2tisserie","Pr\xe9paration des plats \xe0 sel","Pr\xe9paration des sucreries telles que : g\xe2teau","Protocole","R\xe9ception h\xf4teli\xe8re","Restauration","Savoir-vivre","Technique en mati\xe8re de l'art culinaire"]},11163:function(e,t,a){e.exports=a(96885)}},function(e){e.O(0,[9802,7542,4724,8826,9774,2888,179],function(){return e(e.s=91015)}),_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.