PageSourceSearch

https://new.sportsnconnect.com/_next/static/chunks/pages/orga/dash…/participants-6a20b50091ca2e3a.js

js sportsnconnect.com collected 2026-10-02 14:34:08 UTC 14,598 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7166],{80551:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return M}});var n=r(59499),s=r(50029),a=r(64687),l=r.n(a),i=r(91281),o=r(28837),c=r(96461),u=r(19096),d=r(34736),m=r(39771),p=r(99284),f=r(64504),x=r(85893);function h(e){var t=e.onClose,r=e.onSuccess;return(0,x.jsx)(o.u_l,{className:"w-full max-w-2xl px-4 pb-4",onClose:t,title:"Inscrire un participant manuellement",children:(0,x.jsx)(f.T,{onSuccess:function(){r(),t()}})})}var g=r(197),b=r(94024),v=r(50306),S=r(85513),y=r(86010),j=r(27484),O=r.n(j),N=r(41664),w=r.n(N),_=r(67294),I=r(9473),A=r(1852),C=r(64712);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var M=(0,c.Z)(function(){var e,t,r,n=(0,I.I0)(),a=(0,A.useMediaQuery)({query:"(max-width: 640px)"}),c=(0,_.useState)(!1),f=c[0],j=c[1],N=(0,_.useState)(!1),P=N[0],M=N[1],E=(0,_.useState)(!1),D=E[0],L=E[1],B=(0,_.useState)(""),T=B[0],F=B[1],V=(0,_.useState)(!1),z=V[0],R=V[1],q=(0,_.useState)(null),G=q[0],Z=q[1],H=(0,_.useState)(!1),W=H[0],Y=H[1],U=(0,_.useState)(!1),J=U[0],X=U[1],Q=(0,_.useState)(null),$=Q[0],K=Q[1],ee=(0,_.useState)(!0),et=ee[0],er=ee[1],en=(0,_.useState)(!0),es=en[0],ea=en[1],el=(0,_.useState)(!0),ei=el[0],eo=el[1],ec=(0,_.useState)(""),eu=ec[0],ed=ec[1],em=(0,_.useState)([]),ep=em[0],ef=em[1],ex=(0,_.useState)(""),eh=ex[0],eg=ex[1],eb=(0,_.useState)(""),ev=eb[0],eS=eb[1],ey=(0,_.useState)(null),ej=ey[0],eO=ey[1],eN=(0,_.useState)(""),ew=eN[0],e_=eN[1],eI=(0,_.useState)(null),eA=eI[0],eC=eI[1],eP=(0,_.useState)(null),ek=eP[0],eM=eP[1],eE=(0,_.useState)(null),eD=eE[0],eL=eE[1],eB=(0,_.useState)(null),eT=eB[0],eF=eB[1],eV=(0,_.useState)(null),ez=eV[0],eR=eV[1],eq=(0,_.useState)(null),eG=eq[0],eZ=eq[1],eH=(0,_.useState)(null),eW=eH[0],eY=eH[1],eU=(0,_.useState)(null),eJ=eU[0],eX=eU[1],eQ=(0,_.useState)(null),e$=eQ[0],eK=eQ[1],e0=(0,_.useState)(null),e1=e0[0],e4=e0[1],e2=(0,_.useState)(null),e6=e2[0],e5=e2[1],e8=(0,_.useState)(null),e3=e8[0],e7=e8[1],e9=(0,_.useState)(null),te=e9[0],tt=e9[1],tr=(0,_.useState)("VALIDATED"),tn=tr[0],ts=tr[1],ta=(0,_.useState)(null),tl=ta[0],ti=ta[1],to=(0,_.useState)(null),tc=to[0],tu=to[1],td=(0,_.useState)(null),tm=td[0],tp=td[1],tf=(0,_.useState)(null),tx=tf[0],th=tf[1],tg=(0,_.useState)(null),tb=tg[0],tv=tg[1],tS=(0,_.useState)(!0),ty=tS[0],tj=tS[1],tO=(0,_.useState)(null),tN=tO[0],tw=tO[1],t_=(0,_.useState)(""),tI=t_[0],tA=t_[1],tC=(0,_.useState)(1),tP=tC[0],tk=tC[1],tM=(0,_.useState)(0),tE=tM[0],tD=tM[1],tL=(0,_.useState)(0),tB=tL[0],tT=tL[1],tF=(0,_.useState)(20),tV=tF[0],tz=tF[1],tR=(0,b.useOrgaStates)().selectedEdition,tq=(0,g.a)().refreshToken,tG=(0,b.useGlobalStates)(),tZ=tG.isModalOpen,tH=tG.actionModal,tW=null!==(r=null==tR?void 0:tR.lastReminderLicenceFileAt)&&void 0!==r?r:null==tR?void 0:tR.last_reminder_licence_file_at,tY=function(){eC(null),eM(null),eL(null),eR(null),eZ(null),tu(null),tp(null),th(null),tt(null),eF(null),eo(!1)},tU=(e=(0,s.Z)(l().mark(function e(){var t,r,n,s,a;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return G&&G.abort(),Z(t=new AbortController),er(!0),e.prev=4,r="/participants",n=function(){return ei?{"sort[order_validation_date]":es?"desc":"asc"}:eA?{"sort[bib]":eA}:eD?{"sort[contact.lastname]":eD}:ek?{"sort[contact.firstname]":ek}:te?{"sort[contact.birthdate]":te}:eG?{"sort[contact.country]":eG}:ez?{"sort[contact.sex]":ez}:tc?{"sort[has_insurance]":tc}:tm?{"sort[order_participant.order_trial.status]":tm}:eT?{"sort[order_participant.status]":eT}:tx?{"sort[order_participant.trial.title]":tx}:{"sort[order_validation_date]":es?"desc":"asc"}},s=k(k({groups:["participant.registration:read"],editionUUID:tR.uniqueId,term:tI,with_test:null!=tR&&tR.testMode?"true":"false",page:tP,itemsPerPage:tV||20},n()),{},{firstname:ev,lastname:eh,country:ej,bib:""!==ew?Number(ew):null,has_insurance:eW,"order_participant_status[]":tn&&"ON_HOLD"!==tn&&"CART"!==tn?[tn]:void 0,"order_status[]":"ON_HOLD"===tn||"CART"===tn?[tn]:void 0,licence_status:e1,document_status:e6,"birthdate[before]":e3?(0,S.vz)(e3).before:(0,S.bf)(eJ)||null,"birthdate[after]":e3?(0,S.vz)(e3).after:(0,S.bf)(e$)||null,trial:tl||null}),ep.length>0&&(s.sex=ep),e.next=11,(0,b.fetchData)({endpoint:r,apiOptions:s,refreshToken:tq,signal:t.signal});case 11:if(!(a=e.sent)){e.next=21;break}return e.next=15,K(a.data);case 15:return e.next=17,tT((null==a?void 0:a.totalItems)||0);case 17:return e.next=19,tD((null==a?void 0:a.lastPage)||0);case 19:return e.next=21,er(!1);case 21:e.next=28;break;case 23:if(e.prev=23,e.t0=e.catch(4),!(e.t0 instanceof Error&&"AbortError"===e.t0.name)){e.next=27;break}return e.abrupt("return");case 27:er(!1);case 28:case"end":return e.stop()}},e,null,[[4,23]])})),function(){return e.apply(this,arguments)}),tJ=(t=(0,s.Z)(l().mark(function e(){var t,r,s,a,i,o,c,u,d;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),e.prev=1,t="/editions/".concat(null==tR?void 0:tR.uuid,"/send-reminder/licence_file"),r={editionUniqueId:null==tR?void 0:tR.uniqueId},e.next=6,(0,b.fetchData)({endpoint:t,apiOptions:r,refreshToken:tq});case 6:e.sent&&(s=new Date().toISOString(),n((0,b.setSelectedEditionOrga)(k(k({},tR),{},{lastReminderLicenceFileAt:s,last_reminder_licence_file_at:s}))),R(!1),F("Les mails ont \xe9t\xe9 envoy\xe9s avec succ\xe8s"),j(!1),ed("")),e.next=16;break;case 10:e.prev=10,e.t0=e.catch(1),(i=((null===e.t0||void 0===e.t0||null===(a=e.t0.response)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.detail)||e.t0.message).match(/(\d+) seconde/))?(c=Math.floor((o=parseInt(i[1],10))/3600),u=
1Math.floor(o%3600/60),d=o%60,ed("Vous devez patienter encore ".concat(c," heures, ").concat(u," minutes et ").concat(d," secondes avant de pouvoir envoyer les mails")),C.Am.error("Vous devez patienter encore ".concat(c," heures, ").concat(u," minutes et ").concat(d," secondes avant de pouvoir envoyer les mails"))):C.Am.error("Une erreur est survenue lors de l'envoi des mails"),R(!1);case 16:case"end":return e.stop()}},e,null,[[1,10]])})),function(){return t.apply(this,arguments)});return(0,_.useEffect)(function(){tU()},[tI,es,tP,tV,ep,eA,ek,ew,eD,ez,eG,ev,eh,eW,ej,e1,e6,eJ,tc,tm,tx,te,e$,e3,tn,eT,tl]),(0,_.useEffect)(function(){tZ||W||!f||(tU(),j(!1))},[tZ,W,f]),(0,_.useEffect)(function(){return function(){G&&G.abort()}},[G]),(0,_.useEffect)(function(){n((0,b.setAreaActiv)(v.$J.ORGADASHBOARDEDITION))},[]),(0,_.useEffect)(function(){null!=tR&&tR.uuid&&(0,b.fetchData)({endpoint:"/editions/".concat(tR.uuid,"/licence-stats"),apiOptions:{},refreshToken:tq}).then(function(e){null!=e&&e.data&&tw(e.data)})},[null==tR?void 0:tR.uuid]),(0,x.jsxs)("div",{className:(0,y.Z)("px-4 sm:px-10",a&&"px-5"),children:[(0,x.jsx)("h1",{className:"font-delightExtrabold text-titre-3-mobile lg:text-titre-3 my-4",children:"Participants"}),ty&&(0,x.jsx)("div",{className:"bg-secondaryColor/5 border-l-4 border-secondaryColor rounded-lg p-4 mt-6 mb-4 shadow-sm",children:(0,x.jsxs)("div",{className:"flex items-center justify-between",children:[(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)(i.uMt,{className:"w-5 h-5 text-secondaryColor mr-3 fill-secondaryColor flex-shrink-0"}),(0,x.jsx)("div",{children:(0,x.jsxs)("p",{className:"text-sm text-gray-800 font-delightMedium",children:["Vous pouvez"," ",(0,x.jsx)(w(),{href:"/orga/dashboard-edition/event-management/exports",children:(0,x.jsx)("span",{className:"font-delightBold underline hover:text-secondaryColor cursor-pointer transition-colors",children:"exporter la liste de vos participants"})})," ","avec leurs informations compl\xe8tes."]})})]}),(0,x.jsx)("button",{type:"button",onClick:function(){return tj(!1)},className:"ml-4 p-1 hover:bg-secondaryColor/10 rounded-full transition-colors duration-200 flex-shrink-0","aria-label":"Fermer la banni\xe8re",children:(0,x.jsx)(i.nZc,{className:"w-4 h-4 text-gray-600"})})]})}),(0,x.jsxs)("div",{className:" min-h-[calc(100vh-12rem)]",children:[(0,x.jsxs)("div",{className:"w-full mt-5",children:[(0,x.jsx)("div",{className:"bg-grayColor5 rounded-lg shadow-lg p-4 mb-6 ",children:(0,x.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[(0,x.jsx)(o.zxk,{variant:"primary",className:"!px-4 !py-2",iconPosition:"left",onClick:function(){return L(!0)},title:"Inscrire un participant"}),(0,x.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)("div",{className:"w-2 h-2 bg-secondaryColor rounded-full mr-3 flex-shrink-0"}),(0,x.jsx)("span",{className:"text-gray-700 font-delightMedium text-sm sm:text-base",children:"G\xe9rez les communications avec vos participants"})]}),(0,x.jsx)(o.zxk,{variant:"secondary",className:"!px-4 !py-2",icon:(0,x.jsx)(i.bV6,{fill:"currentColor",className:"w-4 h-4"}),iconPosition:"left",onClick:function(){return M(!0)},title:"Relance par mail des documents"})]})]})}),(0,x.jsx)(u.zf8,{setOrderBY:function(e){tY(),ea(e),eo(!0)},setSearchInputIntoList:tA,setCurrentPageIntoList:tk})]}),tN&&(0,x.jsxs)("div",{className:"mt-4 mb-4 bg-grayColor5 rounded-lg shadow-sm border border-gray-100 px-4 py-3",children:[(0,x.jsx)("span",{className:"font-delightBold text-sm text-gray-700 block mb-2",children:"Statut des documents m\xe9dicaux"}),(0,x.jsx)("div",{className:"flex flex-wrap gap-2",children:[{label:"Valid\xe9s",count:tN.validated,color:"bg-green-100 text-green-800 border-green-200!important",dot:"bg-green-500",filterValue:"VALIDATED"},{label:"En attente",count:tN.waiting,color:"bg-orange-100 text-orange-800 border-orange-200!important",dot:"bg-orange-500",filterValue:"WAITING"},{label:"Manquants",count:tN.missing,color:"bg-red-100 text-red-800 border-red-200!important",dot:"bg-red-500",filterValue:"MISSING"},{label:"Refus\xe9s",count:tN.rejected,color:"bg-gray-700 text-white border-black!important",dot:"bg-white",f
1ilterValue:"REJECTED"},{label:"Non concern\xe9s",count:tN.notConcerned,color:"bg-slate-100 text-slate-600 border-slate-200!important",dot:"bg-slate-400",filterValue:"null"}].map(function(e){var t=e.label,r=e.count,n=e.color,s=e.dot,a=e.filterValue;return(0,x.jsxs)("button",{type:"button",onClick:function(){e4(e1===a?null:a),tk(1)},className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full border text-xs font-delightMedium transition-all duration-150 ".concat(n," ").concat(e1===a?"ring-2 ring-offset-1 ring-current opacity-100":"opacity-80 hover:opacity-100"),children:[(0,x.jsx)("span",{className:"w-1.5 h-1.5 rounded-full ".concat(s," flex-shrink-0")}),t,(0,x.jsx)("span",{className:"font-delightBold",children:r})]},t)})})]}),(0,x.jsx)(u.Nmj,{orderBy:es,setParticipantActive:tv,setIsModalOpenWaiting:Y,isModalOpenWaiting:W,setListParticipants:K,firstnameSortOrder:ek,hasInsurance:eW,setHasInsurance:eY,setIsDocModalOpenWaiting:X,sexSortOrder:ez,countrySortOrder:eG,listParticipants:$,orderByInsurance:tc,orderByPaiement:tm,orderByTrial:tx,setOrderByInsurance:tu,setOrderByPaiement:tp,setLicenceStatus:e4,setDocumentStatus:e5,licenceStatus:e1,documentStatus:e6,setOrderByTrial:th,setSortStatusParticipant:eF,sortStatusParticipant:eT,setSexSortOrder:eR,setCountrySortOrder:eZ,lastnameSortOrder:eD,selectedGenders:ep,setFirstnameSortOrder:eM,setLastnameSortOrder:eL,setSelectedGenders:ef,firstnameSearch:ev,ageMinFilter:eJ,ageMaxFilter:e$,ageExactFilter:e3,paiementStatus:tn,trialFilter:tl,setAgeMinFilter:eX,setAgeMaxFilter:eK,setAgeExactFilter:e7,setPaiementStatus:ts,setBirthdateSortOrder:tt,birthdateSortOrder:te,setTrialFilter:ti,searchInputIntoList:tI,currentPageIntoList:tP,setCurrentPageIntoList:tk,lastPage:tE,totalCount:tB,itemsPerPage:tV,setItemsPerPage:tz,setFirstnameSearch:eS,lastnameSearch:eh,setLastnameSearch:eg,countrySearch:ej,setCountrySearch:eO,refSearch:ew,setRefSearch:e_,refSortOrder:eA,setRefSortOrder:eC,isLoadingParticipants:et,resetAllSorts:tY,setOrderBy:ea,isOrderByActive:ei,setIsOrderByActive:eo})]}),tZ&&"view_order"!==tH&&(0,x.jsx)(m.xS,{isAdmin:!0,participantActive:tb,setParticipantActive:tv,setIsActionModal:j}),tZ&&"view_order"===tH&&(0,x.jsx)(d.w0,{setIsActionModal:j}),P&&(0,x.jsx)(o.u_l,{className:"w-full max-w-2xl px-4 pb-4",onClose:function(){M(!1),j(!1),F("")},title:"Mails de relance des documents",footer:(0,x.jsxs)("div",{className:"flex space-x-2 w-full mt-4",children:[(0,x.jsx)(o.zxk,{onClick:function(){M(!1),j(!1),F("")},className:"w-full",variant:"secondary",title:"Annuler"}),(0,x.jsx)(o.zxk,{onClick:function(){tJ()},isLoading:z,disabled:z,className:"w-full",variant:"primary",title:"Envoyer"})]}),children:(0,x.jsxs)("div",{className:"text-sm mt-2",children:[T&&(0,x.jsx)(o.bZj,{className:"bg-green-50 border border-green-200 rounded-lg p-4 mb-4",iconClassName:"h-4 w-4 text-green-800",children:(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)("div",{className:"w-2 h-2 bg-green-400 rounded-full mr-3 flex-shrink-0"}),(0,x.jsx)("p",{className:"text-green-800",children:T})]})}),(0,x.jsx)("h1",{children:"Cette fonctionnalit\xe9 permet de relancer les participants qui n'ont pas encore t\xe9l\xe9charg\xe9 leurs documents, ou qui ont des documents refus\xe9s."}),(0,x.jsx)("p",{children:"\xcates-vous s\xfbr de vouloir envoyer les mails de relance ?"}),(0,x.jsxs)("div",{className:"mt-4 rounded-lg border border-gray-200 bg-grayColor5 px-4 py-3 text-gray-700",children:[(0,x.jsx)("span",{className:"font-delightBold",children:"Derni\xe8re relance envoy\xe9e :"})," ",tW?"Le ".concat(O()(tW).format("DD/MM/YYYY \xe0 HH:mm")):"Aucune relance envoy\xe9e"]}),eu&&(0,x.jsx)("p",{className:"text-red-600 mt-2",children:eu})]})}),D&&(0,x.jsx)(h,{onClose:function(){return L(!1)},onSuccess:function(){return tU()}}),W&&!tZ&&(0,x.jsx)(p.S,{setIsActionModal:j,setIsModalOpen:Y,setIsDocModalOpenWaiting:X,isDocModalOpenWaiting:J,participantActive:tb,setParticipantActive:tv})]})})},6568:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/orga/dashboard-edition/event-management/participants",function(){return r(80551)}])}},function(e){e.O(0,[1125,2888,9774,179],function(){return e(e.s=6568)}),_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.