diff --git a/project/__init__.py b/project/__init__.py
index f9b925b..1f356cc 100644
--- a/project/__init__.py
+++ b/project/__init__.py
@@ -1 +1 @@
-__version__ = '0.1.31'
+__version__ = '1.0.0'
diff --git a/project/client/dist/index.html b/project/client/dist/index.html
index df60f6b..5e90c09 100644
--- a/project/client/dist/index.html
+++ b/project/client/dist/index.html
@@ -6,7 +6,7 @@
Affiliation Matcher
-
+
diff --git a/project/client/dist/static/index-717c5722.js b/project/client/dist/static/index-a5242678.js
similarity index 99%
rename from project/client/dist/static/index-717c5722.js
rename to project/client/dist/static/index-a5242678.js
index fc3b51b..5eb0659 100644
--- a/project/client/dist/static/index-717c5722.js
+++ b/project/client/dist/static/index-a5242678.js
@@ -76,7 +76,7 @@ Error generating stack: `+i.message+`
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var Pr=p;function XC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YC=typeof Object.is=="function"?Object.is:XC,ZC=Pr.useState,JC=Pr.useEffect,eT=Pr.useLayoutEffect,tT=Pr.useDebugValue;function nT(e,t){var n=t(),r=ZC({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return eT(function(){o.value=n,o.getSnapshot=t,ia(o)&&i({inst:o})},[e,n,t]),JC(function(){return ia(o)&&i({inst:o}),e(function(){ia(o)&&i({inst:o})})},[e]),tT(n),n}function ia(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!YC(e,n)}catch{return!0}}function rT(e,t){return t()}var oT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rT:nT;e0.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:oT;Jy.exports=e0;var iT=Jy.exports;const lT=iT.useSyncExternalStore,bh=p.createContext(void 0),t0=p.createContext(!1);function n0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bh),window.ReactQueryClientContext):bh)}const sT=({context:e}={})=>{const t=p.useContext(n0(e,p.useContext(t0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},aT=({client:e,children:t,context:n,contextSharing:r=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=n0(n,r);return p.createElement(t0.Provider,{value:!n&&r},p.createElement(o.Provider,{value:e},t))},r0=p.createContext(!1),uT=()=>p.useContext(r0);r0.Provider;function cT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const fT=p.createContext(cT()),dT=()=>p.useContext(fT);function hT(e,t){return typeof e=="function"?e(...t):!!e}const pT=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},mT=e=>{p.useEffect(()=>{e.clearReset()},[e])},gT=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&hT(n,[e.error,r]),vT=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},yT=(e,t)=>e.isLoading&&e.isFetching&&!t,xT=(e,t,n)=>(e==null?void 0:e.suspense)&&yT(t,n),ET=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function bT(e,t){const n=sT({context:e.context}),r=uT(),o=dT(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ge.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ge.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ge.batchCalls(i.onSettled)),vT(i),pT(i,o),mT(o);const[l]=p.useState(()=>new t(n,i)),s=l.getOptimisticResult(i);if(lT(p.useCallback(a=>{const u=r?()=>{}:l.subscribe(ge.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),xT(i,s,r))throw ET(i,l,o);if(gT({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:l.trackResult(s)}function wT(e,t,n){const r=Zr(e,t,n);return bT(r,WC)}const ST=function(){return null},{VITE_APP_NAME:CT,VITE_HEADER_TAG:TT,VITE_MINISTER_NAME:_T}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"0.2.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function PT(){const{pathname:e}=ql();return g.jsxs(CS,{children:[g.jsx(Vl,{splitCharacter:"|",text:_T}),g.jsx(Ry,{name:CT,tagline:TT}),g.jsx(Iy,{children:g.jsx(Se,{current:e==="/",href:"/",children:"Home"})})]})}function NT({children:e}){return g.jsx("div",{className:"fr-footer__top",children:e})}function kT({children:e,fluid:t=!1}){return g.jsx("footer",{className:"fr-footer fr-mt-3w",role:"contentinfo",id:"footer",children:g.jsx(xe,{fluid:t,children:e})})}function RT({children:e,copy:t}){const n=q.Children.toArray(e);return g.jsxs("div",{className:"fr-container fr-footer__bottom",children:[g.jsx("ul",{className:"fr-footer__bottom-list",children:n.map((r,o)=>g.jsx("li",{className:"fr-footer__bottom-item",children:r},o))}),t?g.jsx("div",{className:"fr-footer__bottom-copy",children:g.jsx("p",{children:t})}):null]})}function LT({children:e,description:t}){var o;const n=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Se),r=(o=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Vl))==null?void 0:o[0];return g.jsxs("div",{className:"fr-container fr-footer__body",children:[r?g.jsx("div",{className:"fr-footer__brand fr-enlarge-link",children:r}):null,g.jsxs("div",{className:"fr-footer__content",children:[t?g.jsx("p",{className:"fr-footer__content-desc",children:t}):null,n.length?g.jsx("ul",{className:"fr-footer__content-list",children:n.map((i,l)=>g.jsx("li",{className:"fr-footer__content-item",children:i},l))}):null]})]})}function $T(){return g.jsx(g.Fragment,{children:g.jsx("dialog",{id:"fr-theme-modal",className:"fr-modal",role:"dialog","aria-labelledby":"fr-theme-modal-title",children:g.jsx("div",{className:"fr-container fr-container--fluid fr-container-md",children:g.jsx("div",{className:"fr-grid-row fr-grid-row--center",children:g.jsx("div",{className:"fr-col-12 fr-col-md-6 fr-col-lg-4",children:g.jsxs("div",{className:"fr-modal__body",children:[g.jsx("div",{className:"fr-modal__header",children:g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":"fr-theme-modal",id:"button-5622",title:"Fermer",children:"Fermer"})}),g.jsxs("div",{className:"fr-modal__content",children:[g.jsx("h1",{id:"fr-theme-modal-title",className:"fr-modal__title",children:"Titre"}),g.jsx("div",{id:"fr-display",className:"fr-display",children:g.jsxs("fieldset",{className:"fr-fieldset",id:"display-fieldset",children:[g.jsx("legend",{className:"fr-fieldset__legend--regular fr-fieldset__legend",id:"display-fieldset-legend",children:"Legende"}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"light",type:"radio",id:"fr-radios-theme-light",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-light",children:"light"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/sun.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/sun.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/sun.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"dark",type:"radio",id:"fr-radios-theme-dark",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-dark",children:"Dark"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/moon.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/moon.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/moon.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"system",type:"radio",id:"fr-radios-theme-system",name:"fr-radios-theme"}),g.jsxs("label",{className:"fr-label",htmlFor:"fr-radios-theme-system",children:["System",g.jsx("span",{className:"fr-hint-text",children:"Syten"})]}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/system/system.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/system/system.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/system/system.svg#artwork-major"})]})})]})})]})})]})]})})})})})})}const{VITE_MINISTER_NAME:IT,VITE_APP_DESCRIPTION:MT,VITE_VERSION:AT}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"0.2.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function OT(){return g.jsxs(kT,{fluid:!0,children:[g.jsx(NT,{children:g.jsx(xe,{})}),g.jsxs(LT,{description:MT,children:[g.jsx(Vl,{splitCharacter:"|",text:IT}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://legifrance.gouv.fr",children:"legifrance.gouv.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://gouvernement.fr",children:"gouvernement.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://service-public.fr",children:"service-public.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://data.gouv.fr",children:"data.gouv.fr"})]}),g.jsx(RT,{children:g.jsx(Se,{target:"_blank",rel:"noreferer noopenner",className:"fr-footer__bottom-link",href:"https://github.com/dataesr/affiliation-matcher",children:`App version ${AT}`})}),g.jsx($T,{})]})}const FT={"scroll-top":"_scroll-top_8vydd_1"};function DT(){const[e,t]=p.useState(!1),n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.useEffect(()=>{const r=()=>window.pageYOffset>600?t(!0):t(!1);return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]),e?g.jsx(xu,{className:FT["scroll-top"],title:"Revenir en haut de la page",size:"lg",icon:"ri-arrow-up-line",onClick:n}):null}function jT(){return g.jsxs(g.Fragment,{children:[g.jsx(PT,{}),g.jsx(xe,{as:"main",role:"main",fluid:!0,children:g.jsx(CC,{})}),g.jsx(DT,{}),g.jsx(OT,{})]})}var ku=function(e,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ku(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rT:nT;e0.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:oT;Jy.exports=e0;var iT=Jy.exports;const lT=iT.useSyncExternalStore,bh=p.createContext(void 0),t0=p.createContext(!1);function n0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bh),window.ReactQueryClientContext):bh)}const sT=({context:e}={})=>{const t=p.useContext(n0(e,p.useContext(t0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},aT=({client:e,children:t,context:n,contextSharing:r=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=n0(n,r);return p.createElement(t0.Provider,{value:!n&&r},p.createElement(o.Provider,{value:e},t))},r0=p.createContext(!1),uT=()=>p.useContext(r0);r0.Provider;function cT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const fT=p.createContext(cT()),dT=()=>p.useContext(fT);function hT(e,t){return typeof e=="function"?e(...t):!!e}const pT=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},mT=e=>{p.useEffect(()=>{e.clearReset()},[e])},gT=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&hT(n,[e.error,r]),vT=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},yT=(e,t)=>e.isLoading&&e.isFetching&&!t,xT=(e,t,n)=>(e==null?void 0:e.suspense)&&yT(t,n),ET=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function bT(e,t){const n=sT({context:e.context}),r=uT(),o=dT(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ge.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ge.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ge.batchCalls(i.onSettled)),vT(i),pT(i,o),mT(o);const[l]=p.useState(()=>new t(n,i)),s=l.getOptimisticResult(i);if(lT(p.useCallback(a=>{const u=r?()=>{}:l.subscribe(ge.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),xT(i,s,r))throw ET(i,l,o);if(gT({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:l.trackResult(s)}function wT(e,t,n){const r=Zr(e,t,n);return bT(r,WC)}const ST=function(){return null},{VITE_APP_NAME:CT,VITE_HEADER_TAG:TT,VITE_MINISTER_NAME:_T}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function PT(){const{pathname:e}=ql();return g.jsxs(CS,{children:[g.jsx(Vl,{splitCharacter:"|",text:_T}),g.jsx(Ry,{name:CT,tagline:TT}),g.jsx(Iy,{children:g.jsx(Se,{current:e==="/",href:"/",children:"Home"})})]})}function NT({children:e}){return g.jsx("div",{className:"fr-footer__top",children:e})}function kT({children:e,fluid:t=!1}){return g.jsx("footer",{className:"fr-footer fr-mt-3w",role:"contentinfo",id:"footer",children:g.jsx(xe,{fluid:t,children:e})})}function RT({children:e,copy:t}){const n=q.Children.toArray(e);return g.jsxs("div",{className:"fr-container fr-footer__bottom",children:[g.jsx("ul",{className:"fr-footer__bottom-list",children:n.map((r,o)=>g.jsx("li",{className:"fr-footer__bottom-item",children:r},o))}),t?g.jsx("div",{className:"fr-footer__bottom-copy",children:g.jsx("p",{children:t})}):null]})}function LT({children:e,description:t}){var o;const n=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Se),r=(o=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Vl))==null?void 0:o[0];return g.jsxs("div",{className:"fr-container fr-footer__body",children:[r?g.jsx("div",{className:"fr-footer__brand fr-enlarge-link",children:r}):null,g.jsxs("div",{className:"fr-footer__content",children:[t?g.jsx("p",{className:"fr-footer__content-desc",children:t}):null,n.length?g.jsx("ul",{className:"fr-footer__content-list",children:n.map((i,l)=>g.jsx("li",{className:"fr-footer__content-item",children:i},l))}):null]})]})}function $T(){return g.jsx(g.Fragment,{children:g.jsx("dialog",{id:"fr-theme-modal",className:"fr-modal",role:"dialog","aria-labelledby":"fr-theme-modal-title",children:g.jsx("div",{className:"fr-container fr-container--fluid fr-container-md",children:g.jsx("div",{className:"fr-grid-row fr-grid-row--center",children:g.jsx("div",{className:"fr-col-12 fr-col-md-6 fr-col-lg-4",children:g.jsxs("div",{className:"fr-modal__body",children:[g.jsx("div",{className:"fr-modal__header",children:g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":"fr-theme-modal",id:"button-5622",title:"Fermer",children:"Fermer"})}),g.jsxs("div",{className:"fr-modal__content",children:[g.jsx("h1",{id:"fr-theme-modal-title",className:"fr-modal__title",children:"Titre"}),g.jsx("div",{id:"fr-display",className:"fr-display",children:g.jsxs("fieldset",{className:"fr-fieldset",id:"display-fieldset",children:[g.jsx("legend",{className:"fr-fieldset__legend--regular fr-fieldset__legend",id:"display-fieldset-legend",children:"Legende"}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"light",type:"radio",id:"fr-radios-theme-light",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-light",children:"light"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/sun.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/sun.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/sun.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"dark",type:"radio",id:"fr-radios-theme-dark",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-dark",children:"Dark"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/moon.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/moon.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/moon.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"system",type:"radio",id:"fr-radios-theme-system",name:"fr-radios-theme"}),g.jsxs("label",{className:"fr-label",htmlFor:"fr-radios-theme-system",children:["System",g.jsx("span",{className:"fr-hint-text",children:"Syten"})]}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/system/system.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/system/system.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/system/system.svg#artwork-major"})]})})]})})]})})]})]})})})})})})}const{VITE_MINISTER_NAME:IT,VITE_APP_DESCRIPTION:MT,VITE_VERSION:AT}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function OT(){return g.jsxs(kT,{fluid:!0,children:[g.jsx(NT,{children:g.jsx(xe,{})}),g.jsxs(LT,{description:MT,children:[g.jsx(Vl,{splitCharacter:"|",text:IT}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://legifrance.gouv.fr",children:"legifrance.gouv.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://gouvernement.fr",children:"gouvernement.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://service-public.fr",children:"service-public.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://data.gouv.fr",children:"data.gouv.fr"})]}),g.jsx(RT,{children:g.jsx(Se,{target:"_blank",rel:"noreferer noopenner",className:"fr-footer__bottom-link",href:"https://github.com/dataesr/affiliation-matcher",children:`App version ${AT}`})}),g.jsx($T,{})]})}const FT={"scroll-top":"_scroll-top_8vydd_1"};function DT(){const[e,t]=p.useState(!1),n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.useEffect(()=>{const r=()=>window.pageYOffset>600?t(!0):t(!1);return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]),e?g.jsx(xu,{className:FT["scroll-top"],title:"Revenir en haut de la page",size:"lg",icon:"ri-arrow-up-line",onClick:n}):null}function jT(){return g.jsxs(g.Fragment,{children:[g.jsx(PT,{}),g.jsx(xe,{as:"main",role:"main",fluid:!0,children:g.jsx(CC,{})}),g.jsx(DT,{}),g.jsx(OT,{})]})}var ku=function(e,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ku(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r needs to exist in the component ancestry.")}var fP=j(j({},_0),{textComponent:p.Fragment});function dP(e){return function(t){return e(p.Children.toArray(t))}}var sf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);sf.Consumer;var hP=sf.Provider,pP=hP,mP=sf;function cs(){var e=p.useContext(mP);return cP(e),e}var Fu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Fu||(Fu={}));var Du;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Du||(Du={}));function R0(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,a=e==="formatDate"?r.formatDateToParts(s,l):r.formatTimeToParts(s,l);return i(a)};return t.displayName=Du[e],t}function Ko(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=r[e](o,l);if(typeof i=="function")return i(s);var a=r.textComponent||p.Fragment;return p.createElement(a,null,s)};return t.displayName=Fu[e],t}function L0(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=T0(r)?dP(r):r,t},{})}var Mh=function(e,t,n,r){for(var o=[],i=4;i{var r;const n=(r=t.match(/\.\/locales\/(.+)\.json$/))==null?void 0:r[1];return n?{...e,[n]:Ah[t]}:e},{});function fs(){const[e,t]=LC(),n=e.get("q"),r=e.get("matcher"),o=e.get("year")||"",i=p.useCallback(u=>{e.set("q",u),t(e)},[e,t]),l=p.useCallback(u=>{e.set("matcher",u),e.delete("year"),t(e)},[e,t]),s=p.useCallback(u=>{e.set("year",u),t(e)},[e,t]);return p.useMemo(()=>({currentQuery:n,currentMatcher:r,currentYear:o,handleQueryChange:i,handleMatcherChange:l,handleYearChange:s}),[n,r,o,i,l,s])}const $0=[{label:"Country",key:"country",year:!1,placeholder:"Department of Medical Genetics, Hotel Dieu de France, Beirut, Lebanon"},{label:"ROR",key:"ror",year:!1,placeholder:"Paris Dauphine University France"},{label:"RNSR",key:"rnsr",year:!0,placeholder:"IPAG Institut de Planétologie et d'Astrophysique de Grenoble"},{label:"grid.ac",key:"grid",year:!1,placeholder:"Paris Dauphine University France"}],Oh=e=>$0.find(t=>t.key==e),xP=Array.from({length:(2011-2023)/-1+1},(e,t)=>2023+t*-1);function EP(){var a,u;const{currentQuery:e,currentMatcher:t,currentYear:n,handleQueryChange:r,handleMatcherChange:o,handleYearChange:i}=fs(),l=((a=Oh(t))==null?void 0:a.year)||!1,s=((u=Oh(t))==null?void 0:u.placeholder)||"Paris Dauphine University France";return g.jsx(xe,{className:"input",children:g.jsxs(ky,{gutters:!0,className:"fr-pb-4w fr-pt-4w fr-mb-2w",children:[g.jsx(Js,{xs:"12",sm:"8",lg:"8",children:g.jsx(Ly,{isLarge:!0,buttonLabel:"Match",defaultValue:e,placeholder:s,onSearch:c=>r(c.toLowerCase())},e)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:t||"DEFAULT",onChange:c=>o(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a matcher"},"DEFAULT"),$0.map(c=>g.jsx("option",{value:c.key,children:c.label},c.key))]},t)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:n||"DEFAULT",disabled:!l,onChange:c=>i(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a year"},"DEFAULT"),xP.map(c=>g.jsx("option",{value:c,children:c},c))]},n)})]})})}function ua({error:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(My,{type:"error",closeMode:"disallow",children:e})})}function bP(e,t){return t==="ror"?`https://ror.org/${e}`:t==="rnsr"?`https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${e}&PUBLIC=OK`:t==="paysage"?`https://paysage.staging.dataesr.ovh/structures/${e}`:null}function wP(e,t){let n=t;return e.forEach(r=>n=n.replace(r,`${r}`)),n=n.replace(/'/g,"''"),n}function SP({resultHighlights:e,setTitle:t}){const{currentQuery:n}=fs(),r=i=>t(new of(i).format({b:l=>g.jsx("strong",{children:l},JSON.stringify(l))})),o=()=>t(n);return g.jsx(xe,{fluid:!0,className:"fr-mt-2w",children:Object.entries(e.criterion).map(([i,l],s)=>g.jsxs(Vc,{children:[g.jsx(Ze,{size:"sm",color:"success",children:i}),l.map((a,u)=>g.jsx(Ze,{size:"sm",onMouseEnter:()=>r(wP(a,n)),onMouseLeave:()=>o(),children:a==null?void 0:a.join(" ")},u))]},s))})}function CP({resultData:e,resultId:t,setTitle:n}){var f,d,h,E;const{currentMatcher:r}=fs(),{results:o,enriched_results:i,highlights:l}=e,s=o.findIndex(b=>b===t),a=i[s],u=l==null?void 0:l[t],c=bP(t,r);return g.jsxs(xe,{className:"card fr-mt-2w",children:[g.jsx(ky,{children:g.jsxs(Vc,{className:"fr-mt-2w",children:[c?g.jsx(Ze,{as:"a",href:c,target:"_blank",color:"yellow-moutarde",children:`${r} : ${t}`}):g.jsx(Ze,{color:"yellow-moutarde",children:`${r} : ${t}`}),((f=a==null?void 0:a.acronym)==null?void 0:f.length)&&g.jsx(Ze,{color:"green-archipel",children:a.acronym[0]}),((d=a==null?void 0:a.name)==null?void 0:d.length)&&g.jsx(Ze,{color:"blue-ecume",children:a.name[0]}),((h=a==null?void 0:a.city)==null?void 0:h.length)&&g.jsx(Ze,{icon:"building-line",color:"purple-glycine",children:a.city[0]}),((E=a==null?void 0:a.country)==null?void 0:E.length)&&g.jsx(Ze,{icon:"earth-line",color:"pink-macaron",children:a.country[0]})]})}),g.jsx(SP,{resultHighlights:u,setTitle:n})]})}function TP(){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Gc,{})})}function Fh({resultsDebug:e}){const t=cs();if(!e)return null;const n=r=>{var o;return((o=e.criterion)==null?void 0:o[r])??0};return g.jsx(pE,{className:"fr-container fr-mt-3w",title:t.formatMessage({id:"debug.accordion.title"}),children:e.strategies.map((r,o)=>g.jsxs(xe,{className:"debug-item",children:[g.jsx(Ze,{size:"sm",className:"fr-mb-3w",color:r.possibilities?"success":"error",children:`Matching ${r.equivalent_strategies.length} strategies : ${t.formatMessage({id:"possibility.count"},{count:r.possibilities})}`}),r.equivalent_strategies.map(i=>g.jsx(xe,{fluid:!0,children:g.jsxs(Vc,{className:"fr-mb-2w",children:[i.criteria.map(l=>{const s=n(l);return g.jsx(Ze,{size:"sm",color:s?"yellow-moutarde":null,children:`${l}: ${t.formatMessage({id:"match.count"},{count:s})}`})}),i.matches>0&&g.jsx(Ze,{size:"sm",color:"success",children:t.formatMessage({id:"match.count"},{count:i.matches})})]})}))]},o))})}function Dh({info:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(My,{type:"info",closeMode:"disallow",children:e})})}const{VITE_API_URL:_P,VITE_ELASTIC_URL:AP}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"0.2.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},PP=`${_P}/match`,NP=async(e,t,n)=>{const r={type:t,query:e,verbose:!0};n&&(r.year=n);const o=await fetch(PP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`API error: ${o.status}`);return await o.json()};function kP(e,t,n){const{data:r,error:o,isFetching:i}=wT({queryKey:["match",e,t,n],queryFn:()=>NP(e,t,n),enabled:!!(e&&t),staleTime:3e5});return p.useMemo(()=>({data:r,isFetching:i,error:o}),[r,i,o])}function RP(){const e=cs(),{currentQuery:t,currentMatcher:n,currentYear:r}=fs(),{data:o,isFetching:i,error:l}=kP(t,n,r),[s,a]=p.useState(t);if(p.useEffect(()=>a(t),[t]),t===null&&n===null)return null;if(t==="")return g.jsx(Dh,{info:e.formatMessage({id:"info.missing.query"})});if(!n)return g.jsx(Dh,{info:e.formatMessage({id:"info.missing.matcher"})});if(i)return g.jsx(TP,{});if(l)return g.jsx(ua,{error:l==null?void 0:l.message});if(!o)return g.jsx(ua,{error:"No data"});if(!(o!=null&&o.results))return g.jsx(ua,{error:o==null?void 0:o.Error});const u=o,c=u.results;return c.length?g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(ra,{size:"md",children:e.formatMessage({id:"match.count"},{count:c.length})})}),g.jsx(xe,{fluid:!0,className:"fr-mt-3w",children:c.map((f,d)=>g.jsx(CP,{resultData:u,resultId:f,setTitle:a},d))}),g.jsx(Fh,{resultsDebug:u==null?void 0:u.debug})]}):g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(Ze,{color:"error",children:`${n} : ${e.formatMessage({id:"match.count"},{count:0})}`})}),g.jsx(Fh,{resultsDebug:u==null?void 0:u.debug})]})}function LP(){return g.jsxs(xe,{fluid:!0,children:[g.jsx(EP,{}),g.jsx(RP,{})]})}function $P(){const e=gP({locale:"en",messages:yP.en});return g.jsx(pP,{value:e,children:g.jsx(LP,{})})}function IP(){return g.jsx(_C,{children:g.jsx(bu,{element:g.jsx(jT,{}),children:g.jsx(bu,{path:"/",element:g.jsx($P,{})})})})}const MP=new GC;ca.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(uS,{children:g.jsx(RC,{children:g.jsxs(aT,{client:MP,children:[g.jsx(ST,{}),g.jsx(IP,{})]})})})}));
+For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function uP(e,t){var n=K_(t),r=j(j({},_0),e),o=r.locale,i=r.defaultLocale,l=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&l?l(new Rh('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&l&&l(new Rh('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(l&&l(new F_('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),aP(r),j(j({},r),{formatters:n,formatNumber:iP.bind(null,r,n.getNumberFormat),formatNumberToParts:lP.bind(null,r,n.getNumberFormat),formatRelativeTime:rP.bind(null,r,n.getRelativeTimeFormat),formatDate:U_.bind(null,r,n.getDateTimeFormat),formatDateToParts:G_.bind(null,r,n.getDateTimeFormat),formatTime:z_.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:V_.bind(null,r,n.getDateTimeFormat),formatTimeToParts:W_.bind(null,r,n.getDateTimeFormat),formatPlural:eP.bind(null,r,n.getPluralRules),formatMessage:Ou.bind(null,r,n),$t:Ou.bind(null,r,n),formatList:Z_.bind(null,r,n.getListFormat),formatListToParts:N0.bind(null,r,n.getListFormat),formatDisplayName:q_.bind(null,r,n.getDisplayNames)})}function cP(e){a0(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var fP=j(j({},_0),{textComponent:p.Fragment});function dP(e){return function(t){return e(p.Children.toArray(t))}}var sf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);sf.Consumer;var hP=sf.Provider,pP=hP,mP=sf;function cs(){var e=p.useContext(mP);return cP(e),e}var Fu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Fu||(Fu={}));var Du;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Du||(Du={}));function R0(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,a=e==="formatDate"?r.formatDateToParts(s,l):r.formatTimeToParts(s,l);return i(a)};return t.displayName=Du[e],t}function Ko(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=r[e](o,l);if(typeof i=="function")return i(s);var a=r.textComponent||p.Fragment;return p.createElement(a,null,s)};return t.displayName=Fu[e],t}function L0(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=T0(r)?dP(r):r,t},{})}var Mh=function(e,t,n,r){for(var o=[],i=4;i{var r;const n=(r=t.match(/\.\/locales\/(.+)\.json$/))==null?void 0:r[1];return n?{...e,[n]:Ah[t]}:e},{});function fs(){const[e,t]=LC(),n=e.get("q"),r=e.get("matcher"),o=e.get("year")||"",i=p.useCallback(u=>{e.set("q",u),t(e)},[e,t]),l=p.useCallback(u=>{e.set("matcher",u),e.delete("year"),t(e)},[e,t]),s=p.useCallback(u=>{e.set("year",u),t(e)},[e,t]);return p.useMemo(()=>({currentQuery:n,currentMatcher:r,currentYear:o,handleQueryChange:i,handleMatcherChange:l,handleYearChange:s}),[n,r,o,i,l,s])}const $0=[{label:"Country",key:"country",year:!1,placeholder:"Department of Medical Genetics, Hotel Dieu de France, Beirut, Lebanon"},{label:"ROR",key:"ror",year:!1,placeholder:"Paris Dauphine University France"},{label:"RNSR",key:"rnsr",year:!0,placeholder:"IPAG Institut de Planétologie et d'Astrophysique de Grenoble"},{label:"grid.ac",key:"grid",year:!1,placeholder:"Paris Dauphine University France"}],Oh=e=>$0.find(t=>t.key==e),xP=Array.from({length:(2011-2023)/-1+1},(e,t)=>2023+t*-1);function EP(){var a,u;const{currentQuery:e,currentMatcher:t,currentYear:n,handleQueryChange:r,handleMatcherChange:o,handleYearChange:i}=fs(),l=((a=Oh(t))==null?void 0:a.year)||!1,s=((u=Oh(t))==null?void 0:u.placeholder)||"Paris Dauphine University France";return g.jsx(xe,{className:"input",children:g.jsxs(ky,{gutters:!0,className:"fr-pb-4w fr-pt-4w fr-mb-2w",children:[g.jsx(Js,{xs:"12",sm:"8",lg:"8",children:g.jsx(Ly,{isLarge:!0,buttonLabel:"Match",defaultValue:e,placeholder:s,onSearch:c=>r(c.toLowerCase())},e)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:t||"DEFAULT",onChange:c=>o(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a matcher"},"DEFAULT"),$0.map(c=>g.jsx("option",{value:c.key,children:c.label},c.key))]},t)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:n||"DEFAULT",disabled:!l,onChange:c=>i(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a year"},"DEFAULT"),xP.map(c=>g.jsx("option",{value:c,children:c},c))]},n)})]})})}function ua({error:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(My,{type:"error",closeMode:"disallow",children:e})})}function bP(e,t){return t==="ror"?`https://ror.org/${e}`:t==="rnsr"?`https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${e}&PUBLIC=OK`:t==="paysage"?`https://paysage.staging.dataesr.ovh/structures/${e}`:null}function wP(e,t){let n=t;return e.forEach(r=>n=n.replace(r,`${r}`)),n=n.replace(/'/g,"''"),n}function SP({resultHighlights:e,setTitle:t}){const{currentQuery:n}=fs(),r=i=>t(new of(i).format({b:l=>g.jsx("strong",{children:l},JSON.stringify(l))})),o=()=>t(n);return g.jsx(xe,{fluid:!0,className:"fr-mt-2w",children:Object.entries(e.criterion).map(([i,l],s)=>g.jsxs(Vc,{children:[g.jsx(Ze,{size:"sm",color:"success",children:i}),l.map((a,u)=>g.jsx(Ze,{size:"sm",onMouseEnter:()=>r(wP(a,n)),onMouseLeave:()=>o(),children:a==null?void 0:a.join(" ")},u))]},s))})}function CP({resultData:e,resultId:t,setTitle:n}){var f,d,h,E;const{currentMatcher:r}=fs(),{results:o,enriched_results:i,highlights:l}=e,s=o.findIndex(b=>b===t),a=i[s],u=l==null?void 0:l[t],c=bP(t,r);return g.jsxs(xe,{className:"card fr-mt-2w",children:[g.jsx(ky,{children:g.jsxs(Vc,{className:"fr-mt-2w",children:[c?g.jsx(Ze,{as:"a",href:c,target:"_blank",color:"yellow-moutarde",children:`${r} : ${t}`}):g.jsx(Ze,{color:"yellow-moutarde",children:`${r} : ${t}`}),((f=a==null?void 0:a.acronym)==null?void 0:f.length)&&g.jsx(Ze,{color:"green-archipel",children:a.acronym[0]}),((d=a==null?void 0:a.name)==null?void 0:d.length)&&g.jsx(Ze,{color:"blue-ecume",children:a.name[0]}),((h=a==null?void 0:a.city)==null?void 0:h.length)&&g.jsx(Ze,{icon:"building-line",color:"purple-glycine",children:a.city[0]}),((E=a==null?void 0:a.country)==null?void 0:E.length)&&g.jsx(Ze,{icon:"earth-line",color:"pink-macaron",children:a.country[0]})]})}),g.jsx(SP,{resultHighlights:u,setTitle:n})]})}function TP(){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Gc,{})})}function Fh({resultsDebug:e}){const t=cs();if(!e)return null;const n=r=>{var o;return((o=e.criterion)==null?void 0:o[r])??0};return g.jsx(pE,{className:"fr-container fr-mt-3w",title:t.formatMessage({id:"debug.accordion.title"}),children:e.strategies.map((r,o)=>g.jsxs(xe,{className:"debug-item",children:[g.jsx(Ze,{size:"sm",className:"fr-mb-3w",color:r.possibilities?"success":"error",children:`Matching ${r.equivalent_strategies.length} strategies : ${t.formatMessage({id:"possibility.count"},{count:r.possibilities})}`}),r.equivalent_strategies.map(i=>g.jsx(xe,{fluid:!0,children:g.jsxs(Vc,{className:"fr-mb-2w",children:[i.criteria.map(l=>{const s=n(l);return g.jsx(Ze,{size:"sm",color:s?"yellow-moutarde":null,children:`${l}: ${t.formatMessage({id:"match.count"},{count:s})}`})}),i.matches>0&&g.jsx(Ze,{size:"sm",color:"success",children:t.formatMessage({id:"match.count"},{count:i.matches})})]})}))]},o))})}function Dh({info:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(My,{type:"info",closeMode:"disallow",children:e})})}const{VITE_API_URL:_P,VITE_ELASTIC_URL:AP}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},PP=`${_P}/match`,NP=async(e,t,n)=>{const r={type:t,query:e,verbose:!0};n&&(r.year=n);const o=await fetch(PP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`API error: ${o.status}`);return await o.json()};function kP(e,t,n){const{data:r,error:o,isFetching:i}=wT({queryKey:["match",e,t,n],queryFn:()=>NP(e,t,n),enabled:!!(e&&t),staleTime:3e5});return p.useMemo(()=>({data:r,isFetching:i,error:o}),[r,i,o])}function RP(){const e=cs(),{currentQuery:t,currentMatcher:n,currentYear:r}=fs(),{data:o,isFetching:i,error:l}=kP(t,n,r),[s,a]=p.useState(t);if(p.useEffect(()=>a(t),[t]),t===null&&n===null)return null;if(t==="")return g.jsx(Dh,{info:e.formatMessage({id:"info.missing.query"})});if(!n)return g.jsx(Dh,{info:e.formatMessage({id:"info.missing.matcher"})});if(i)return g.jsx(TP,{});if(l)return g.jsx(ua,{error:l==null?void 0:l.message});if(!o)return g.jsx(ua,{error:"No data"});if(!(o!=null&&o.results))return g.jsx(ua,{error:o==null?void 0:o.Error});const u=o,c=u.results;return c.length?g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(ra,{size:"md",children:e.formatMessage({id:"match.count"},{count:c.length})})}),g.jsx(xe,{fluid:!0,className:"fr-mt-3w",children:c.map((f,d)=>g.jsx(CP,{resultData:u,resultId:f,setTitle:a},d))}),g.jsx(Fh,{resultsDebug:u==null?void 0:u.debug})]}):g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(Ze,{color:"error",children:`${n} : ${e.formatMessage({id:"match.count"},{count:0})}`})}),g.jsx(Fh,{resultsDebug:u==null?void 0:u.debug})]})}function LP(){return g.jsxs(xe,{fluid:!0,children:[g.jsx(EP,{}),g.jsx(RP,{})]})}function $P(){const e=gP({locale:"en",messages:yP.en});return g.jsx(pP,{value:e,children:g.jsx(LP,{})})}function IP(){return g.jsx(_C,{children:g.jsx(bu,{element:g.jsx(jT,{}),children:g.jsx(bu,{path:"/",element:g.jsx($P,{})})})})}const MP=new GC;ca.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(uS,{children:g.jsx(RC,{children:g.jsxs(aT,{client:MP,children:[g.jsx(ST,{}),g.jsx(IP,{})]})})})}));
diff --git a/project/client/package-lock.json b/project/client/package-lock.json
index eacdc8e..26ddc3c 100644
--- a/project/client/package-lock.json
+++ b/project/client/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "client",
- "version": "0.1.31",
+ "version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "client",
- "version": "0.1.31",
+ "version": "1.0.0",
"dependencies": {
"@dataesr/dsfr-plus": "^0.5.1",
"@tanstack/react-query": "^4.29.5",
diff --git a/project/client/package.json b/project/client/package.json
index c55f902..7c35299 100644
--- a/project/client/package.json
+++ b/project/client/package.json
@@ -1,7 +1,7 @@
{
"name": "client",
"private": true,
- "version": "0.1.31",
+ "version": "1.0.0",
"type": "module",
"scripts": {
"build": "vite build",