PageSourceSearch

https://admin.snu.gouv.fr/assets/index-Cm5KJG-r.js

js snu.gouv.fr collected 2026-09-24 18:22:17 UTC 5,863 bytes, 2 lines download raw bytes

1import{j as e,t as w}from"./react-redux-toastr-CcoR1TjO.js";import{q as o,d as y,A as f,r as j,F as N,L as v,a as g,ag as l}from"./index-BT1-f1fa.js";import{r as d}from"./react-dom-BDiJ65v_.js";import{F as I}from"./reactstrap-laAXQq5V.js";import{L as S}from"./LoadingButton-Bfe4PIU6.js";import"./core-js-D7CYqyFz.js";import{b as _}from"./react-router-dom-T0C7lv-A.js";import"./react-redux-DsLnkHos.js";import"./@tanstack-Wj3fJpNN.js";import"./date-fns-C5WZdu3y.js";import"./date-fns-tz-DoiyT1kf.js";import"./@sentry-D0FjrTLk.js";import"./@sentry-internal-B4j4Cy2U.js";import"./chart.js-Dam0dajP.js";import"./react-select-98C87Ufo.js";import"./@headlessui-DN_esfIR.js";import"./@codegouvfr-CX48mJX3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="9696583b-c453-48b7-b478-9021b995ccad",t._sentryDebugIdIdentifier="sentry-dbid-9696583b-c453-48b7-b478-9021b995ccad")}catch{}})();function L(){return e.jsxs(E,{children:[e.jsx(C,{children:e.jsx("svg",{height:64,width:64,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"#057a55","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})})}),"La mission a été validée !"]})}const C=o.div.withConfig({displayName:"done__Logo",componentId:"sc-1c101e96-0"})(["width:5rem;height:5rem;border-radius:50%;background-color:#def7ec;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;img{color:#057a55;}"]),E=o.div.withConfig({displayName:"done__SuccessMessage",componentId:"sc-1c101e96-1"})(["padding:0.5rem;margin:0 auto;margin-top:0.5rem;display:flex;flex-direction:column;align-items:center;color:#046c4e;font-size:0.8rem;width:fit-content;"]);function ee(){const[t,n]=d.useState(null),[m,h]=d.useState(!1),u=y.parse(location.search),{token:a,young_id:s}=u;return!a||!s?e.jsx(_,{to:"/"}):(d.useEffect(()=>{(async()=>{try{const{ok:i,data:r}=await f.get(`/young/validate_phase3/${s}/${a}`);if(!i)return;n(r)}catch(i){console.log(i)}})()},[]),t?m?e.jsx(L,{}):e.jsx(T,{children:e.jsx(N,{initialValues:t,onSubmit:async i=>{try{const{ok:r}=await f.put(`/young/validate_phase3/${s}/${a}`,i);if(!r)return;h(!0)}catch(r){return console.log(r),w.error("Erreur détectée",r)}},children:({values:i,isSubmitting:r,handleChange:p,handleSubmit:b})=>e.jsxs(R,{onSubmit:b,children:[e.jsx("img",{src:v,height:70}),e.jsx(F,{children:"Validation de la mission SNU du volontaire"}),e.jsxs(M,{children:["Je soussigné(e),"," ",e.jsxs(c,{children:[t.phase3TutorFirstName," ",t.phase3TutorLastName]}),", confirme la participation de"," ",e.jsxs(c,{children:[t.firstName," ",t.lastName]})," ","à une mission de bénévolat au sein de la structure ",e.jsx(c,{children:t.phase3StructureName})," ."]}),e.jsx(k,{}),e.jsx(x,{children:e.jsxs("div",{children:[e.jsx("label",{htmlFor:"phase3MissionDescription",children:"LA MISSION DÉCRITE EN QUELQUES MOTS PAR LE VOLONTAIRE"}),e.jsx(g,{component:"textarea",className:"form-control",name:"phase3MissionDescription",value:i.phase3MissionDescription,onChange:p,rows:3})]})}),e.jsx(x,{children:e.jsxs("div",{children:[e.jsx("label",{htmlFor:"phase3TutorNote",children:"PRÉCISEZ SI BESOIN QUELQUES INFORMATIONS COMPLÉMENTAIRES"}),e.jsx(g,{component:"textarea",placeholder:"Informations complémentaires",className:"form-control",name:"phase3TutorNote",value:i.phase3TutorNote,onChange:p,rows:3})]})}),e.jsx(z,{loading:r,type:"submit",children:"Valider la participation"}),e.jsx(D,{children:e.jsx("a",{href:"mailto:[email protected]",children:"Contacter l'administration du SNU ›"})})]})})}):e.jsx(j,{}))}const c=({children:t})=>e.jsx("span",{style:{fontWeight:"500"},children:t}),k=o.hr.withConfig({displayName:"validate__Separator",componentId:"sc-bafd0e69-0"})(["height:1px;margin:0;border-style:none;background-color:#e5e7eb;"]),T=o.div.withConfig({displayName:"validate__Container",componentId:"sc-bafd0e69-1"})(["display:flex;align-items:center;justify-content:center;width:100%;> *{flex:1;}"]),F=o.h1.withConfig({displayName:"validate__Title",componentId:"sc-bafd0e69-2"})(["position:relative;font-size:2rem;text-align:center;@media (max-width:768px){font-size:1.2rem;}font-weight:700;margin:1rem 0;"]),M=o.h2.withConfig({displayName:"validate__Text",componentId:"sc-bafd0e69-3"})(["text-align:center;position:relative;font-size:1rem;color:",";@media (max-width:768px){font-size:0.8rem;}font-weight:400;margin-bottom:20px;"],l.grey),D=o.h3.withConfig({displayName:"validate__Register",componentId:"sc-bafd0e69-4"})(["position:relative;font-size:1rem;text-align:center;color:",";@media (max-width:768px){font-size:0.8rem;}font-weight:400;margin-bottom:20px;a{color:#32267f;font-weight:500;}"],l.grey),R=o.form.withConfig({displayName:"validate__Form",componentId:"sc-bafd0e69-5"})(["padding:4rem;background-color:#f6f6f6;align-items:center;justify-content:center;display:flex;flex-direction:column;max-width:40%;textarea{width:100%;}@media (max-width:768px){border-radius:0;margin:0;}"]),x=o(I).withConfig({displayName:"validate__StyledFormGroup",componentId:"sc-bafd0e69-6"})(["width:100%;margin-bottom:25px;label{color:rgb(106,111,133);font-size:10px;text-transform:uppercase;font-weight:700;}"]),z=o(S).withConfig({displayName:"validate__Submit",componentId:"sc-bafd0e69-7"})(["display:block;font-size:1rem;font-weight:700;border-radius:0;padding:0.5rem 3rem;border:0;background-color:",";margin-top:30px;margin-bottom:30px;border-radius:10px;box-shadow:rgba(0,0,0,0.1) 0px 10px 15px -3px,rgba(0,0,0,0.05) 0px 4px 6px -2px;cursor:pointer;:hover{background-color:#42389d;}:focus{box-shadow:rgba(0,0,0,0.1) 0px 10px 15px -3px,rgba(0,0,0,0.05) 0px 4px 6px -2px;}"],l.purple);export{ee as default};
2//# sourceMappingURL=index-Cm5KJG-r.js.map

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.