PageSourceSearch

https://app.gedeon.io/_next/static/chunks/pages/signin-443729de3d8…?dpl=dpl_E7SnL7wBDFvFfTpX8k4MPnXFFrGS

js gedeon.io collected 2026-10-06 04:37:43 UTC 11,340 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5126],{22708:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/signin",function(){return a(60069)}])},60069:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>M});var n=a(37876),s=a(4190),i=a(19927),r=a(71500),o=a(96751),l=a(79247),d=a(58712),u=a(35995),c=a(97195),p=a(95062),m=a.n(p),h=a(45088),f=a(31837),v=a(92768);function w(){let e=!1,t=[],a=new Set,n={subscribe:e=>(a.add(e),()=>void a.delete(e)),start(n,s){if(!e)return new Promise(e=>{t.push({animation:[n,s],resolve:e})});{let e=[];return a.forEach(t=>{e.push((0,f._0)(t,n,{transitionOverride:s}))}),Promise.all(e)}},set:t=>((0,h.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),a.forEach(e=>{(0,v.VI)(e,t)})),stop(){a.forEach(e=>{(0,f.TV)(e)})},mount:()=>(e=!0,t.forEach(({animation:e,resolve:t})=>{n.start(...e).then(t)}),()=>{e=!1,n.stop()})};return n}var g=a(14232),b=a(91200);let x=function(){let e=(0,b.M)(w);return(0,g.useEffect)(e.mount,[]),e};var y=a(98344),j=a(92415);let A=e=>{let{className:t="",play:a=!1}=e,s=x(),i=(0,g.useRef)(null),r=(0,g.useRef)(null),o=(0,g.useRef)(null),l=(0,g.useRef)(null);(0,g.useEffect)(()=>{a&&(s.start("tilt"),d())},[a,s]);let d=()=>{let e,t=new j.LoY;t.setAttribute("position",new j.THS(new Float32Array(57e3),3)),t.setAttribute("velocity",new j.THS(new Float32Array(19e3),1));let a=t.getAttribute("position"),n=a.array,s=t.getAttribute("velocity").array,i=innerWidth,d=innerHeight,u=()=>{let e=innerWidth,t=innerHeight;o.current&&l.current&&e&&t&&(o.current.aspect=e/t,o.current.updateProjectionMatrix(),l.current.setSize(e,t))},c=()=>{for(let e=0;e<9500;e++)if(s[2*e]+=.0355,s[2*e+1]+=.0305,n[6*e+2]+=s[2*e],n[6*e+5]+=s[2*e+1],n[6*e+5]>200){var t=200*Math.random()-100;n[6*e+2]=t,n[6*e+5]=t,s[2*e]=0,s[2*e+1]=0}a.needsUpdate=!0,l.current.render(e,o.current),requestAnimationFrame(c)};(()=>{e=new j.Z58,o.current=new j.ubm(60,i/d,1,500),o.current.position.z=200,l.current=new j.JeP({antialias:!0}),l.current.setSize(i,d),r.current.appendChild(l.current.domElement);for(let e=0;e<9500;e++){let t=400*Math.random()-200,a=200*Math.random()-100,i=500*Math.random()-100;n[6*e]=t,n[6*e+1]=a,n[6*e+2]=i,n[6*e+3]=t,n[6*e+4]=a,n[6*e+5]=i,s[2*e]=s[2*e+1]=0}let a=new j.mrM({color:0xffffff}),p=new j.DXC(t,a);e.add(p),window.addEventListener("resize",u,!1),c()})()};return(0,n.jsxs)("div",{ref:i,className:"".concat(t," bg-black relative overflow-hidden items-center  justify-center"),children:[(0,n.jsx)(y.P.div,{className:"absolute inset-0 z-[2] h-full",style:{background:"url(/img/layer-1-2.svg) center center / cover"},animate:s,variants:{tilt:{rotate:[.5,-.4,0],transition:{delay:.2,repeat:1/0,duration:.25}}}}),(0,n.jsx)("div",{ref:r,className:"absolute z-[1] inset-0"}),(0,n.jsx)("div",{className:"absolute inset-0 h-full",style:{background:"url(/img/stars.jpeg) center center / cover"}})]})};A.propTypes={play:m().bool};var S=a(46008),N=a(50869),C=a(79243),E=a(18969),T=a(89099);let P=()=>{let{familiarity:e}=(0,N.default)(),t=new URLSearchParams(window.location.search),a=t.get("email"),p=t.get("s"),m=p?"?s=".concat(p):"",h=(0,T.useRouter)(),[f,v]=(0,g.useState)(!1),[w,b]=(0,g.useState)("email"),[x,j]=(0,g.useState)(!1),[C,P]=(0,g.useState)(!1),[M,_]=(0,g.useState)("password"),[R,k]=(0,g.useState)({email:a||"",password:void 0,code:void 0,a:"ac74b5b4-a3e1-4c44-953e-c1637a8b82c2"}),{postData:z,loading:X}=(0,S.A)("auth/v3/email"),{error:O,postData:W,overrideError:F,loading:L}=(0,S.A)("auth/v3/password"),{error:U,postData:V,loading:I,overrideError:H}=(0,S.A)("auth/v3/otc"),q=async()=>{var t,a,n;let{syncError:s,syncData:i}="email"===w?await z({email:R.email,a:R.a}):await W({email:R.email,password:R.password,a:R.a});if(s)return void F("Oops ! Impossible de trouver ".concat(e("ton","votre")," compte. ").concat(e("Es-tu certain de tes","\xcates-vous certain de vos")," identifiants ?"));if(null==(t=i.data)?void 0:t.isGmBroker){let e="https://gm.gedeon.app"+"?email=".concat(encodeURIComponent(R.email));F('Vous tentez d\'acc\xe9der \xe0 votre espace courtier, <a class="underline" href="'.concat(e,'">cliquez ici</a>.'));return}"email"===w?(null==(a=i.data)?void 0:a.authMode)==="password"?(k({...R,password:"",code:void 0}),b("password"),_("password")):(null==(n=i.data)?void 0:n.authMode)==="passwordless"?(k({...R,password:void 0,code:""}),b("otc"),_("passwordless")):F("Une erreur est survenue. Veuillez r\xe9essayer plus tard ou contacter l'assistance."):"password"===w?(k({...R,code:""}),b("otc")):(setTimeout(()=>{v(!0)},400),setTimeout(()=>{j(!0)},800),setTimeout(()=>{P(!0)},2500),setTimeout(()=>{var e,t;let a=["admin","hr"].includes((null==i||null==(e=i.data)?void 0:e.type)||i.type)?"/admin":(null==i||null==(t=i.data)?void 0:t.hasSimulation)||i.hasSimulation?"/app":"/app/savings";h.push(a+m)},2800))},D=async()=>{let{syncError:e,syncData:t}=await V(R);if(e)return void H("Oops ! Le code est invalide \uD83D\uDE14");setTimeout(()=>{v(!0)},400),setTimeout(()=>{j(!0)},800),setTimeout(()=>{P(!0)},2500),setTimeout(()=>{var e,a;let n=["admin","hr"].includes((null==t||null==(e=t.data)?void 0:e.type)||t.type)?"/admin":(null==t||null==(a=t.data)?void 0:a.hasSimulation)||t.hasSimulation?"/app":"/app/savings";h.push(n+m)},2800)},B=e=>{let{target:t}=e;F(""),H("");let{name:a,value:n}=t;k({...R,[a]:n})},Z="email"===w&&!!R.email||"password"===w&&!!R.password;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{title:"Connexion"}),(0,n.jsxs)("div",{className:" min-h-screen flex",children:[(0,n.jsxs)("section",{className:"w-full sm:w-[28rem] bg-white min-h-screen z-[500] p-5 fixed top-0 left-0 sm:p-12 flex transform transition-transform duration-700 items-center ".concat(x?"-translate-x-[28rem]":""),children:[(0,n.jsx)("div",{className:"absolute left-5 top-5 sm:left-12 sm:top-12",children:(0,n.jsx)(d.A,{name:"logo"})}),(0,n.jsxs)("div",{className:"py-12 flex-1 max-w-sm",children:[(0,n.jsx)("div",{className:"text-3xl font-bold text-gray-500 mb-8",children:"Bienvenue !"}),(0,n.jsx)(E.N,{mode:"wait",initial:!1,children:["email","password"].includes(w)?(0,n.jsx)(y.P.div,{initial:{translateX:-50,scale:.95,opacity:0}
1,animate:{translateX:0,scale:1,opacity:1},exit:{translateX:-50,scale:.95,opacity:0},transition:{duration:.1},children:(0,n.jsxs)(i.A,{message:O,className:"space-y-4",onSubmit:q,children:[(0,n.jsx)(r.A,{name:"email",value:R.email,"aria-label":"Adresse Email",autoComplete:"email",label:"Adresse Email",onChange:B}),"password"===w&&(0,n.jsx)(y.P.div,{initial:!R.password&&{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:(0,n.jsx)(l.A,{name:"password",value:R.password,label:"Mot de Passe","aria-label":"Mot de Passe",autoComplete:"current-password",onChange:B,autoFocus:!0})}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(s.A,{variant:"primary",label:"Suivant",loading:X||L,disabled:!Z}),(0,n.jsx)(u.A,{href:"/password/forgot"+(R.email?"?email=".concat(encodeURIComponent(R.email)):""),className:"font-semibold text-gray-400 hover:text-gray-500 duration-200 transition-colors text-sm",children:"Mot de Passe Oubli\xe9 ?"})]})]})},"login-form"):(0,n.jsxs)(y.P.div,{initial:{translateX:50,scale:.95,opacity:0},animate:{translateX:0,scale:1,opacity:1},exit:{translateX:50,scale:.95,opacity:0},transition:{duration:.1},children:[(0,n.jsxs)("div",{className:"p-5 md:p-7 relative rounded-3xl text-white bg-gray-500 mb-4 flex font-semibold",children:["Afin de v\xe9rifier ",e("ton","votre")," identit\xe9, un code de v\xe9rification ",e("t'a","vous a")," \xe9t\xe9 envoy\xe9 par email."]}),(0,n.jsxs)(i.A,{onSubmit:D,children:[(0,n.jsx)(o.A,{name:"code",value:R.code,label:"Code",onChange:B,mask:"000000",error:U,"aria-label":"Code OTC",autoComplete:"off"}),(0,n.jsxs)("div",{className:"mt-4 flex justify-between items-center",children:[(0,n.jsx)(u.A,{onClick:()=>b("password"===M?"password":"email"),className:"font-semibold text-gray-400 hover:text-gray-500 duration-200 transition-colors text-sm",children:"Retour"}),(0,n.jsx)(s.A,{variant:"primary",label:"Connexion",loading:I,disabled:!R.code||R.code.length<6})]})]})]},"otc-code-form")})]})]}),(0,n.jsx)(A,{className:"flex-1 transform duration-700 ".concat(x?"sm:ml-0":"sm:ml-[28rem]"," ").concat(C?"opacity-0":"opacity-100"),play:f})]})]})};P.Layout=C.A;let M=P},79243:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(95062),s=a.n(n),i=a(80688),r=a(5183);let o=e=>{let{children:t}=e;return t};o.propTypes={children:s().node.isRequired};let l=(0,r.A)((0,i.A)(o,!0))},80688:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(37876),s=a(18090),i=a(46008),r=a(56784),o=a(56868),l=a(89099),d=a(14232),u=a(74695);let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a=>{let c=(0,u.wA)(),p=(0,l.useRouter)(),[m,h]=(0,d.useState)(!0),{postData:f}=(0,i.A)("app/v1/admin/users/select-contract"),v=new URLSearchParams(window.location.search).get("s"),w=v?"?s=".concat(v):"";return((0,d.useEffect)(()=>{let e=p.pathname.startsWith("/admin"),a=p.pathname.startsWith("/app"),n="/admin/signup"===p.pathname||"/onboarding"===p.pathname||"/signup"===p.pathname||p.pathname.includes("/onboarding/signup"),s=p.pathname.includes("/onboarding/profile")||p.pathname.includes("/onboarding/welcome")||p.pathname.includes("/onboarding/code")||p.pathname.includes("/onboarding/connect");(async()=>{try{var i,l,d,u,m;let{data:v}=await r.A.get("auth/v2/ms1/me"),g=null==v||null==(i=v.data)?void 0:i.user,b=null==v||null==(l=v.data)?void 0:l.plan,x=null==v||null==(u=v.data)||null==(d=u.user)?void 0:d.adhesions;if(!g)return p.push("/signin"+w);let{type:y,settings:j}=g,A=["admin","hr"].includes(y),S=["user","adherent"].includes(y),N=null==j||null==(m=j.onboardingFlow)?void 0:m.isOnboarded;if(c((0,o.gV)(g)),c((0,o.aM)(b)),S&&e||A&&a||A&&s||n)return p.push("/"+w);if("/signin"===p.pathname){if(((null==x?void 0:x.filter(e=>"perin"===e.contract.plan))||[]).some(e=>"draft"===e.contract.status))return p.push("/get-started"+w);return p.push(A?"/admin":"/app")}if((null==b?void 0:b.name)==="perin"){let e=x.find(e=>{var t;return["draft","awaiting-confirmation","awaiting-signature"].includes(null==(t=e.contract)?void 0:t.status)}),t=!x.find(e=>{var t;return(null==(t=e.contract)?void 0:t.status)==="active"}),a=p.pathname.startsWith("/app/welcome")||p.pathname.startsWith("/app/subscribe");if(a&&!e)return p.push(g.hasSimulation?"/app":"/app/savings");if(!a&&t){let t={prospect:"/app/welcome/hub",initial:"/app/subscribe/info",advanced:"/app/subscribe/info",profile:"/app/subscribe/offer",signature:"/app/subscribe/offer","awaiting-signature":"/app/subscribe/sign"}[e.contract.step]||"/not-found";return t+=w,p.push(t)}}else{if(S&&!N&&!s)return void p.push("/onboarding/welcome");if(S&&N&&s)return void p.push(g.hasSimulation?"/app":"/app/savings")}if("/app"===p.pathname&&!g.hasSimulation)return p.push("/app/savings");if(t){let e=A?"/admin":g.hasSimulation?"/app":"/app/savings";p.push(e);return}!A||(null==g?void 0:g.currentContract)||(await f({contractId:g.contracts[0].id}),c((0,o.ZW)(g.contracts[0]))),h(!1)}catch(e){t&&h(!1)}})()},[p,c,f]),m)?(0,n.jsx)("div",{className:"flex items-center min-h-screen justify-center",children:(0,n.jsx)(s.A,{})}):(0,n.jsx)(e,{...a}
1)}}}},e=>{e.O(0,[7391,636,6593,8792],()=>e(e.s=22708)),_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.