PageSourceSearch

https://welovedevs.com/_next/static/chunks/3051.6250533c73e0ad5d.js

js welovedevs.com collected 2026-10-03 21:45:42 UTC 21,704 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3051],{34443:function(e,l,i){i.d(l,{i:function(){return s}});var n=i(57437);i(2265);let s=e=>{let{spacing:l=2,shade:i="50"}=e;return(0,n.jsx)("div",{className:"h-[2px] w-full my-".concat(l," bg-dark-").concat(i)})}},78218:function(e,l,i){i.d(l,{AZ:function(){return Z},B5:function(){return f},C6:function(){return k},H2:function(){return w},Hw:function(){return p},IB:function(){return g},JG:function(){return b},U5:function(){return h},Uh:function(){return x},VT:function(){return y},WY:function(){return r},_6:function(){return _},_v:function(){return a},aE:function(){return j},l1:function(){return m},lY:function(){return M},pk:function(){return t},ss:function(){return N},uI:function(){return d},ve:function(){return c},wl:function(){return o},x_:function(){return T},yk:function(){return u},zP:function(){return C},zV:function(){return v}});var n=i(2265),s=i(57071);let o=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/skills/favoriteTechnologies",l)},a=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/tests",l)},r=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/skills/interestedTechnologies",l)},t=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/other/languages",l)},d=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/projects",l)},c=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/studies/formations",l)},u=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/skills/studiesYears",l)},m=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/experience",l)},v=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/currentJob/professionId",l)},p=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/currentJob/city",l)},f=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/description/oneSentanceDescription",l)},x=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/description/rqth",l)},h=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/personalMessage",l)},g=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/description/firstName",l)},j=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/avatar",l)},_=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/description/profilePic",l)},y=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/dreamJob/jobSearchState",l)},b=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/dreamJob/disableIntroductions",l)},N=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/administrative",l)},k=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/dreamJob/contractsTypes",l)},w=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/dreamJob/places",l)},Z=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/dreamJob/remoteFrequency",l)},M=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/dreamJob/salary",l)},C=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/validationStatus",l)},T=e=>{let l=(0,n.useMemo)(()=>({uid:e}),[e]);return(0,s.o)("developer_anonymous_profiles/_uid_/recommendations",l)}},53051:function(e,l,i){i.r(l),i.d(l,{default:function(){return $}});var n=i(57437),s=i(87957),o=i(37262),a=i(2265),r=i(82670),t=i(18802),d=i(75607),c=i(38128),u=i(62544),m=i(20543),v=i(14244),p=i(55772),f=i(56326),x=i(22071),h=i.n(x),g=i(70512),j=i(77956),_=i(86380),y=i(65816),b=i(58496),N=i(42068),k=i(87752),w=i(82560),Z=i(15786),M=i(78218),C=i(1822),T=i(94717),L=i(26003),S=i(42569),F=i(4322),J=i(14432),D=i(97066),I=i(27663),z=i(68931),A=i(79694),q=i(72170),Y=i(97362),E=i(39876);let P=e=>{var l,i,s,o,t,c,u,m,v;let{values:p}=e,x=(0,q.d)("(max-width: 768px)"),{locale:h,formatMessage:g}=(0,D.Y)(),{control:j,formState:{errors:y},setValue:b}=(0,r.Gc)(),{data:N}=(0,A.v)((null==p?void 0:null===(l=p.place)||void 0===l?void 0:l.id)||null,h),k=(0,r.qo)({name:"cvFileLink",control:j}),w=(0,r.qo)({name:"portfolio",control:j}),[Z,M]=(0,a.useState)((null===(i=p.portfolio)||void 0===i?void 0:i.url)||""),[C,T]=(0,a.useState)(p.cvFileLink||""),[L,S]=(0,a.useState)([]);return console.log({values:p,cvFileLink:k,portfolio:w,useAdditionnalData:L}),(0,a.useEffect)(()=>{var e;b("cvFileLink",L.includes("cvFileLink")?p.cvFileLink:L.includes("newCvFileLink")?C:""),b("portfolio",{url:L.includes("portfolio")?Z:"",id:(null===(e=p.portfolio)||void 0===e?void 0:e.id)||"custom"})},[L,Z,C,p]),(0,n.jsxs)("div",{className:"flex flex-col w-full",children:[(0,n.jsx)(f.ZT,{className:"mb-1 font-semibold",children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.CompletedDeveloperInformations.title",defaultMessage:"Rappel de vos informations "})}),(0,n.jsxs)("div",{className:"flex flex-col w-full gap-1 p-2 mb-2 rounded-md shadow-md shadow-indigo-50 bg-indigo-50/50",children:[(0,n.jsxs)("div",{className:"flex items-start w-full sm:flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-col w-full whitespace-pre",children:[(0,n.jsx)(f.ZT,{className:"text-xs text-dark-300",color:y.firstName?"danger":void 0,children:g(E.Y.name.title)}),(0,n.jsx)(f.ZT,{children:null!==(t=p.firstName)&&void 0!==t?t:""}),y.firstName&&(0,n.jsx)(f.ZT,{className:"text-xs italic",color:"danger",children:y.firstName.message})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full whitespace-pre",children:[(0,n.jsx)(f.ZT,{className:"text-xs text-dark-300",color:y.lastName?"danger":void 0,children:g(E.Y.lastName.title)}),(0,n.jsx)(f.ZT,{children:null!==(c=p.lastName)&&void 0!==c?c:""}),y.lastName&&(0,n.jsx)(f.ZT,{className:"text-xs italic",color:"danger",children:y.lastName.message})]})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full whitespace-pre",children:[(0,n.jsx)(f.ZT,{className:"text-xs text-dark-300",color:y.email?"danger":void 0,children:g(E.Y.email.title)}),(0,n.jsx)(f.ZT,{children:null!==(u=p.email)&&void 0!==u?u:""}),y.email&&(0,n.jsx)(f.ZT,{className:"text-xs italic",color:"danger",children:y.email.message})]}),(0,n.jsxs)("div",{className:"flex items-start w-full sm:flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-col w-full whitespace-pre",children:[(0,n.jsx)(f.ZT,{className:"text-xs text-dark-300",color:y.experience?"danger":void 0,children:g(E.Y.experience.title)}),(0,n.jsx)(f.ZT,{children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.CompletedDeveloperInformations.experience",defaultMessage:"{value, plural, =1 {1 an} other {# ans}}",values:{value:null!==(m=p.experience)&&void 0!==m?m:0}})}),y.experience&&(0,n.jsx)(f.ZT,{className:"text-xs italic",color:"danger",children:y.experience.message})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full whitespace-pre",children:[(0,n.jsx)(f.ZT,{className:"text-xs text-dark-300",color:y.place?"danger":void 0,children:g(E.Y.place.title)}),(0,n.jsx)(f.ZT,{children:null!==(v=null==N?void 0:N.formatted_address)&&void 0!==v?v:""}),y.place&&(0,n.jsx)(f.ZT,{className:"text-xs italic",color:"danger",children:y.place.message})]})]}),(0,n.jsx)(_.AppLink,{href:"/developer",target:"_blank",className:"flex items-center justify-center w-full",children:(0,n.jsx)(f.zx,{color:"indigo",className:"px-2 mx-0 mb-0",variant:"outlined",size:"small",target:"_blank",children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.CompletedDeveloperInformations.editProfile",defaultMessage:"Modifier mon profil"})})})]}),(0,n.jsxs)("div",{className:"flex flex-col w-full mt-1",children:[(0,n.jsx)(f.ZT,{className:"mb-1 text-sm",children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.AdditionnalFields.title",defaultMessage:"Ajouter des informations (optionnel)"})}),(0,n.jsx)("div",{className:"flex w-full md:flex-col",children:(0,n.jsx)(Y.p,{classes:{container:"my-1/2 w-full",title:"font-medium"},title:g(E.Y.cvLink.title),error:(null==y?void 0:null===(s=y.cvFileLink)||void 0===s?void 0:s.message)||(null==y?void 0:null===(o=y.portfolio)||void 0===o?void 0:o.message),children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-1",children:[(0,n.jsxs)("div",{className:"flex items-center w-full gap-1 py-2 md:py-1 pl-1 pr-2 roun
1ded-md ".concat(L.includes("portfolio")?"bg-indigo-200/50":""),onClick:()=>S(e=>e.includes("portfolio")?e.filter(e=>"portfolio"!==e):[...e,"portfolio"]),children:[(0,n.jsx)(f.XZ,{color:"indigo",size:"small",variant:"raised",isRadio:!0,className:"border border-indigo-500",checked:L.includes("portfolio")}),(0,n.jsx)(f.nv,{className:"flex-1",variant:"flat",classes:{container:"h-5",input:"placeholder-dark-500/50"},size:x?"small":void 0,value:Z,onClick:e=>e.stopPropagation(),onChange:e=>M(e.target.value),placeholder:g(E.Y.cvLink.placeholder)})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between w-full gap-2 md:flex-col md:gap-0",children:[p.cvFileLink&&(0,n.jsxs)("div",{className:"flex items-center w-full max-w-1/2 md:py-1 md:max-w-none gap-1 py-2 pl-1 pr-2 rounded-md ".concat(L.includes("cvFileLink")?"bg-indigo-200/50":""),onClick:()=>S(e=>e.includes("cvFileLink")?e.filter(e=>"cvFileLink"!==e):[...e.filter(e=>"newCvFileLink"!==e),"cvFileLink"]),children:[(0,n.jsx)(f.XZ,{color:"indigo",size:"small",variant:"raised",isRadio:!0,className:"border border-indigo-500",checked:L.includes("cvFileLink")}),(0,n.jsx)("a",{onClick:e=>e.stopPropagation(),href:p.cvFileLink,target:"_blank",className:"flex items-center justify-center w-full h-5 px-2 border border-indigo-500 rounded-md whitespace-nowrap hover:bg-indigo-500/20",children:(0,n.jsxs)(f.ZT,{className:"text-sm font-medium text-indigo-500",children:[g(E.Y.cvLink.current),(0,n.jsx)(I.Z,{className:"w-[18px] h-[18px] ml-1"})]})})]}),(0,n.jsx)(f.ZT,{className:"w-2",children:(0,n.jsx)(d.Z,{id:"Main.lang.or",defaultMessage:"ou"})}),(0,n.jsxs)("div",{className:"flex items-center w-full max-w-1/2 md:max-w-none gap-1 py-2 md:py-1 pl-1 pr-2 rounded-md ".concat(L.includes("newCvFileLink")?"bg-indigo-200/50":""),onClick:()=>S(e=>e.includes("newCvFileLink")?e.filter(e=>"newCvFileLink"!==e):[...e.filter(e=>"cvFileLink"!==e),"newCvFileLink"]),children:[(0,n.jsx)(f.XZ,{color:"indigo",size:"small",variant:"raised",isRadio:!0,className:"border border-indigo-500",checked:L.includes("newCvFileLink")}),(0,n.jsx)(z.X,{value:C||null,onChange:e=>T(e),classes:{container:"w-full",button:"w-full h-5 bg-indigo-50/50 px-2 whitespace-nowrap"},size:"regular"})]})]})]})})})]})]})};var O=i(28412),G=i(25184),V=i(94298),H=i(34443),R=i(46038);let U=e=>{let{question:l,value:i,onChange:s,error:o}=e,{formatMessage:a}=(0,V.Z)();return"checkbox"===l.type?(0,n.jsxs)("div",{onClick:()=>{i===l.checked_value?s(l.id,l.not_checked_value):s(l.id,l.checked_value)},children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(f.XZ,{checked:i===l.checked_value,className:"mr-1 first-letter:capitalize",color:"indigo"}),(0,n.jsx)(f.ZT,{variant:"body2",dangerouslySetInnerHTML:{__html:l.question},className:"flex-1"})]}),o&&(0,n.jsx)(f.ZT,{variant:"body3",color:"danger",children:a(R.Z[o])})]}):"select"===l.type?(0,n.jsxs)(f.ZT,{variant:"body3",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:l.question},className:"flex-1 first-letter:capitalize"}),(0,n.jsx)(f.Ph,{className:"ml-1",value:i,onChange:e=>s(l.id,e),children:l.options.map(e=>(0,n.jsx)(f.ZT,{className:"capitalize",component:O.Z,value:e.value,children:e.label},e.label))})]}),o&&(0,n.jsx)(f.ZT,{variant:"body3",color:"danger",children:a(R.Z[o])})]}):"text"===l.type?(0,n.jsxs)(f.ZT,{variant:"body3",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:l.question},className:"flex-1 first-letter:capitalize"}),(0,n.jsx)(f.nv,{multiline:!0,rows:4,className:"min-w-[40%]",size:"small",variant:"flat",onChange:e=>s(l.id,e.target.value)})]}),o&&(0,n.jsx)(f.ZT,{variant:"body3",color:"danger",children:a(R.Z[o])})]}):"date"===l.type?(0,n.jsxs)(f.ZT,{variant:"body3",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:l.question},className:"flex-1 first-letter:capitalize"}),(0,n.jsxs)("div",{className:"min-w-[40%] flex flex-col",children:[(0,n.jsx)(f.nv,{fullWidth:!0,size:"small",variant:"flat",onCh
1ange:e=>s(l.id,e.target.value)}),(0,n.jsx)(f.ZT,{variant:"body3",className:"mt-1",children:(0,n.jsx)(d.Z,{id:"Jobs.ApplyDialog.date.format",defaultMessage:"Saisir la date au format jj/mm/yyyy (ex : 21/05/1991)"})})]})]}),o&&(0,n.jsx)(f.ZT,{variant:"body3",color:"danger",children:a(R.Z[o])})]}):void 0},X=e=>{let{onSubmit:l,companyName:i,onClose:s,customQuestions:o}=e,[r,t]=(0,a.useState)({}),[u,m]=(0,a.useState)({}),x=(e,l)=>{t({...r,[e]:l})},h=!!Object.keys(u).length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{children:(null==o?void 0:o.length)?(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)(f.ZT,{className:"mb-1",children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.Goldenbees.questions.notice",defaultMessage:"Merci de valider les questions suivantes pour transf\xe9rer votre candidature \xe0 {companyName}.",values:{companyName:i}})}),(0,n.jsx)("div",{children:o.map(e=>{let l=String(null==e?void 0:e.id);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(H.i,{}),(0,n.jsx)(U,{question:e,onChange:x,error:u[l],value:r[l]},"goldenbees_".concat(l))]})})})]}):(0,n.jsx)(f.ZT,{children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.Goldenbees.notice",defaultMessage:"En cliquant sur postuler, votre candidature sera transf\xe9r\xe9e \xe0 {companyName} via GoldenBees",values:{companyName:i}})})}),(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.P,{onClick:s}),(0,n.jsxs)(f.zx,{onClick:()=>{m({});let e={};if(null==o||o.forEach(l=>{let i=String(l.id);"checkbox"===l.type?l.checked_required&&!r[i]&&(e[i]="required"):l.required&&!r[i]&&(e[i]="required"),"date"===l.type&&"Invalid Date"===(0,G.Z)(r[i],"dd/MM/yyyy",new Date).toString()&&(console.warn("Failed to parse date"),e[i]="date")}),Object.keys(e).length){m(e);return}l(r)},size:"small",color:h?"danger":"indigo",children:[h&&(0,n.jsx)(c.Z,{}),(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.CTA",defaultMessage:"Candidater"})]})]})]})};var W=i(59139),B=i(7570),Q=i(48779),$=e=>{var l,i,x,I,z,A,q,Y,E;let{open:O,onApply:G,onClose:V,jobId:H,devId:R}=e,{formatMessage:U,locale:$}=(0,D.Y)(),{data:K}=(0,F.s)(),{queryID:ee}=(0,a.useContext)(J.g),{data:el}=(0,L.os)(null!=R?R:null),{data:ei}=(0,M.Hw)(null!=R?R:null),{data:en}=(0,Z.Au)(null!=R?R:null),{data:es}=(0,Z.QC)(null!=R?R:null),{data:eo}=(0,S.YW)(null!=R?R:null),{data:ea}=(0,L.jM)(H),{data:er}=(0,C.W3)(H),et=(0,a.useRef)(null),[ed,ec]=(0,a.useState)(!1),{enqueueSnackbar:eu}=(0,o.Ds)(),[em,ev]=(0,a.useState)("mainForm"),[ep,ef]=(0,a.useState)(null),ex=(0,a.useMemo)(()=>{var e;return null===(e=Object.keys(ei||{}))||void 0===e?void 0:e[0]},[ei]),{data:eh}=(0,T.t)([ex,...Object.keys((null==ea?void 0:ea.places)||{})].filter(Boolean),$),{data:eg}=(0,Z.$O)(null!==(q=null==ea?void 0:ea.companyId)&&void 0!==q?q:null,null!=R?R:null),ej=(0,a.useMemo)(()=>{var e,l,i,n,s,o,a,r,t,d,c,u,m,v;let p={};"undefined"!=typeof localStorage&&(p=JSON.parse(localStorage.getItem("applyData[".concat(H,"]"))||"{}"));let f=null===(e=Object.values((null==es?void 0:es.socials)||{}))||void 0===e?void 0:e.find(e=>"linkedin"===e.network),x=null===(l=Object.values((null==es?void 0:es.socials)||{}))||void 0===l?void 0:l.find(e=>"custom"===e.network);return{...eh[ex]&&{place:{id:ex,latLng:eh[ex].latLng}},...h()(p,"place"),email:null!==(n=null!==(i=null==K?void 0:K.email)&&void 0!==i?i:null==p?void 0:p.email)&&void 0!==n?n:"",firstName:null!==(o=null!==(s=null==en?void 0:en.firstName)&&void 0!==s?s:null==p?void 0:p.firstName)&&void 0!==o?o:"",lastName:null!==(r=null!==(a=null==en?void 0:en.lastName)&&void 0!==a?a:null==p?void 0:p.lastName)&&void 0!==r?r:"",experience:null!==(d=null!==(t=null==el?void 0:el.codeExperienceYears)&&void 0!==t?t:null==p?void 0:p.experience)&&void 0!==d?d:null,cvFileLink:null==es?void 0:es.uploadedCVLink,portfolio:{url:null!==(u=null!==(c=null==f?void 0:f.url)&&void 0!==c?c:null==x?void 0:x.url)&&void 0!==u?u:"",id:null!==(v=null!==(m=null==f?void 0:f.id)&&void 0!==m?m:null==x?void 0:x.id)&&void 0!==v?v:"custom_".concat(Object.values((null==es?void 0:es.socials)||{}).length)}}},[K,el,ei,eh,en,es,ep,H]);(0,a.useEffect)(()=>{eb(ej)},[ej,eo]);let e_=(0,Q.J)(U,{waitData:null!=eo?eo:null,uid:null!=R?R:null,devCompaniesJobLikes:null!=eg?eg:null},{smallJob:null!=ea?ea:null,places:eh}),ey=(0,r.cI)({defaultValues:ej,resolver:(0,s.X)(e_),mode:"onSubmit"}
1),{reset:eb,setValue:eN,handleSubmit:ek,formState:{errors:ew},watch:eZ}=ey,eM=eZ(),{acceptCGU:eC,acceptNewsletter:eT}=eM,[eL,eS]=(0,a.useState)(null);(0,a.useEffect)(()=>{localStorage.setItem("applyData[".concat(H,"]"),JSON.stringify(eM))},[eM]);let eF=()=>(localStorage.removeItem("applyData[".concat(H,"]")),eu(U((0,t.Em)({id:"Job.ApplyDialog.Applied",defaultMessage:"Votre candidature a \xe9t\xe9 envoy\xe9e"})),{variant:"success",autoHideDuration:1e4,persist:!1}),G()),eJ=(e,l)=>{var i,s,o,a;let r={remotePolicy:null==er?void 0:null===(i=er.details)||void 0===i?void 0:i.remotePolicy,professionId:null==er?void 0:null===(s=er.details)||void 0===s?void 0:s.professionId,contracts:null==er?void 0:null===(o=er.details)||void 0===o?void 0:o.contracts};if(!R){(0,w.or)(e.email,e.password||Math.random().toString(36).slice(-8),{dataConscent:{[new Date().getTime()]:{newsletters:!!e.acceptNewsletter,cgu:!!e.acceptCGU}}}).then(i=>{var n,s;return Promise.all([(0,N.j)(null!==(n=i.user.uid)&&void 0!==n?n:null,e,r),(0,k.hv)(H,null!==(s=null==ea?void 0:ea.companyId)&&void 0!==s?s:null,i.user.uid,e,l,null==er?void 0:er.provider,ee)])}).then(()=>{ec(!0),eF()}).catch(e=>{console.log("error while validating email",e),eS(U(b.C[e.code]||b.C.unknown,{message:e.message,link:e=>(0,n.jsx)(_.AppLink,{href:"/login",children:(0,n.jsx)(y.b,{className:"font-bold",width:500,height:500,children:e})})}))});return}eo&&(0,N.j)(null!=R?R:null,e,r),(0,k.hv)(H,null!==(a=null==ea?void 0:ea.companyId)&&void 0!==a?a:null,R,e,l,null==er?void 0:er.provider,ee).then(()=>{eF()})},eD=e=>{if(et.current=e,ef(e),(null==er?void 0:er.provider)==="goldenbees"){ev("goldenbees");return}eJ(e)};(0,a.useEffect)(()=>{ed&&(null==K?void 0:K.emailVerified)&&R&&et.current&&eF()},[ed,null==K?void 0:K.emailVerified,null==ea?void 0:ea.companyId,H]);let eI=(0,a.useMemo)(()=>({...ew,...eL&&{email:{message:eL,type:"required"}}}),[ew,eL]),ez=K&&!eo,eA=K&&!(null==K?void 0:K.emailVerified),eq=Object.keys(eI).length>0,eY=ed&&eA;return(0,n.jsxs)(m.Z,{open:O,onClose:e=>!eY&&(null==V?void 0:V(e)),classes:{paper:"w-[95vw] max-w-[600px] p-1"},children:[(0,n.jsx)(j.$,{children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.Title",defaultMessage:"Candidater \xe0 cette offre"})}),"goldenbees"===em&&(0,n.jsx)(X,{onClose:V,companyName:null!==(Y=null==er?void 0:null===(l=er.externalSmallCompany)||void 0===l?void 0:l.name)&&void 0!==Y?Y:"",onSubmit:e=>{ep&&eJ(ep,{goldenbees:e})},customQuestions:null!==(E=null==er?void 0:null===(x=er.specific)||void 0===x?void 0:null===(i=x.goldenbees)||void 0===i?void 0:i.customQuestions)&&void 0!==E?E:null}),"mainForm"===em&&(0,n.jsx)(r.RV,{...ey,children:(0,n.jsxs)("form",{className:"flex flex-col overflow-hidden",onSubmit:e=>{e.preventDefault(),e.stopPropagation(),eS(null),e.persist(),ek(eD)(e)},children:[(0,n.jsxs)(p.Z,{classes:{root:"py-2 px-3 custom-scrollbar"},children:[ez?(0,n.jsx)(P,{values:ej}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B._,{additionalErrors:eI}),(0,n.jsx)(B.t,{additionalErrors:eI,professionId:null==er?void 0:null===(I=er.details)||void 0===I?void 0:I.professionId})]}),!R&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:W.R,children:(0,n.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(u.Z,{size:"small",color:"indigo",checked:!!eT,onClick:()=>eN("acceptNewsletter",!eT)}),(0,n.jsx)(f.ZT,{variant:"body2",children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.Fields.acceptNewsletter",defaultMessage:"J'accepte de recevoir les newsletters de l'\xe9quipe de WeLoveDevs"})})]}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(u.Z,{size:"small",color:"indigo",checked:!!eC,onClick:()=>eN("acceptCGU",!eC)}),(0,n.jsx)(f.ZT,{component:"a",href:"https://welovedevs.com/cgudeveloppeurv-3-1/",target:"_blank",variant:"body2",className:"underline",color:"darkblue",children:(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.Fields.acceptCGU",defaultMessage:"J'accepte les conditions g\xe9n\xe9rales d'utilisation"})})]}),(null===(z=eI.acceptCGU)||void 0===z?void 0:z.message)&&(0,n.jsx)(f.ZT,{variant:"helper",color:"danger",children:null===(A=eI.acceptCGU)||void 0===A?void 0:A.message})]})})})]}),!eY&&(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.P,{onClick:V,color:"indigo",className:"px-2"}),(0,n.jsxs)(f.zx,{variant:"contained",type:"submit",size:"small",color:eq?"danger":"indigo",className:"px-2",children:[eq&&(0,n.jsx)(c.Z,{}),(0,n.jsx)(d.Z,{id:"Job.ApplyDialog.CTA",defaultMessage:"Candidater"})]})]})]})})]})}}}]);
2//# sourceMappingURL=3051.6250533c73e0ad5d.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.