(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6541],{534:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"registerUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UserInputData"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userRegister"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"jwt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:109}};t.loc.source={body:"mutation registerUser($data: UserInputData!) {\n  userRegister(data: $data) {\n    id\n    errors\n    jwt\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var r={};function i(e,t){for(var r=0;r<e.definitions.length;r++){var i=e.definitions[r];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;(function e(t,r){if("FragmentSpread"===t.kind)r.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&r.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,r)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,r)}),t.definitions&&t.definitions.forEach(function(t){e(t,r)})})(e,t),r[e.name.value]=t}}),e.exports=t,e.exports.registerUser=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=r[t]||new Set,n=new Set,l=new Set;for(s.forEach(function(e){l.add(e)});l.size>0;){var o=l;l=new Set,o.forEach(function(e){n.has(e)||(n.add(e),(r[e]||new Set).forEach(function(e){l.add(e)}))})}return n.forEach(function(t){var r=i(e,t);r&&a.definitions.push(r)}),a}(t,"registerUser")},71797:function(e,t,r){"use strict";r.d(t,{C:function(){return o}});var i=r(85893),a=r(81942);r(67294);var s=r(67473),n=r.n(s);let l=(0,a.j)([n().badge],{variants:{badgeStyle:{primary:n().primary,primaryLight:n().primaryLight,primaryVeryLight:n().primaryVeryLight,secondary:n().secondary,secondaryLight:n().secondaryLight,secondaryVeryLight:n().secondaryVeryLight,default:n().default,success:n().success,successLight:n().successLight,successVeryLight:n().successVeryLight,danger:n().danger,dangerLight:n().dangerLight,dangerVeryLight:n().dangerVeryLight,warning:n().warning,warningLight:n().warningLight,warningVeryLight:n().warningVeryLight,featured:n().featured,featuredLight:n().featuredLight,featuredVeryLight:n().featuredVeryLight,topJob:n().topJob}},defaultVariants:{badgeStyle:"default"}}),o=e=>{let{children:t,badgeStyle:r="primary",className:a,...s}=e;return(0,i.jsx)("div",{className:"".concat(l({badgeStyle:r})," ").concat(a),"data-testid":"styled-badge",...s,children:t})};t.Z=o},2900:function(e,t,r){"use strict";r.d(t,{Z:function(){return n},t:function(){return n}});var i=r(85893),a=r(74335),s=r.n(a);function n(e){let{landscapeSrc:t,portraitSrc:r,alt:a}=e;return(0,i.jsxs)("picture",{children:[r&&(0,i.jsx)("source",{media:"(max-width: 768px)",srcSet:r}),(0,i.jsx)("img",{className:s().image,src:t,alt:a})]})}},94769:function(e,t,r){"use strict";r.d(t,{OK:function(){return a.xz},mQ:function(){return o},td:function(){return a.aV},x4:function(){return a.VY}});var i=r(85893),a=r(36888),s=r(53330),n=r.n(s);let l=(0,r(81942).j)([n().tabsRoot],{variants:{tabsListItemFull:{true:n().tabsRootListItemFull},tabEqualSpace:{true:n().tabEqualSpace},hardBackground:{true:n().tabsRootHardBg},hardBackgroundColor:{primary:null,secondary:null}},compoundVariants:[{hardBackgroundColor:"primary",hardBackground:!0,class:n().tabsRootHardBgPrimary},{hardBackgroundColor:"secondary",hardBackground:!0,class:n().tabsRootHardBgSecondary}]});function o(e){let{tabsListItemFull:t=!0,hardBackground:r=!0,tabEqualSpace:s=!0,hardBackgroundColor:n="primary",children:o,value:d,defaultValue:c,onChange:u}=e;return(0,i.jsx)(a.fC,{defaultValue:c,value:d,onValueChange:u,className:l({tabsListItemFull:t,tabEqualSpace:s,hardBackground:r,hardBackgroundColor:n}),children:o})}},41755:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});var i=r(85893),a=r(2900);r(67294);var s=r(39542),n=r.n(s);let l=e=>{let{children:t,image:r,alt:s,title:l}=e;return(0,i.jsxs)("div",{className:n().wrapper,children:[(0,i.jsx)("div",{className:n().left,children:t}),(0,i.jsx)("div",{className:n().right,children:(0,i.jsx)(a.Z,{landscapeSrc:r,alt:s,title:l})})]})}},54811:function(e,t,r){"use strict";r.d(t,{N:function(){return n}});var i=r(85893);r(67294);let a=e=>"currentColor"===e?"":"var(--color-".concat(e,")"),s=e=>{let{title:t,theme:r=null,titleId:a="",...s}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",xmlSpace:"preserve",width:"1em",height:"1em","aria-labelledby":a,...s,children:[t?(0,i.jsx)("title",{id:a,children:t}):null,(0,i.jsx)("circle",{fill:"currentColor",cx:6,cy:50,r:6,children:(0,i.jsx)("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:.1})}),(0,i.jsx)("circle",{fill:"currentColor",cx:30,cy:50,r:6,children:(0,i.jsx)("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:.2})}),(0,i.jsx)("circle",{fill:"currentColor",cx:54,cy:50,r:6,children:(0,i.jsx)("animateTransform",{attributeName:"transform",dur:"1s",type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:.3})})]})},n=e=>{let{color:t="currentColor",title:r,fill:n,...l}=e;return(0,i.jsx)(s,{color:a(t),className:"currentColor"===t?"icon-current-color":"",..."currentColor"!==t?{style:{color:a(t),fill:a(t)}}:null,fill:null!=n?n:a(t),title:r,...l})}},70409:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var i=r(85893);r(67294);let a=e=>"currentColor"===e?"":"var(--color-".concat(e,")"),s=e=>{let{title:t,theme:r=null,titleId:a="",...s}=e;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:"1em",height:"1em","aria-labelledby":a,...s,children:[t?(0,i.jsx)("title",{id:a,children:t}):null,(0,i.jsxs)("g",{className:"payment_svg__nc-icon-wrapper",children:[(0,i.jsx)("path",{d:"M10 36a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H10z"}),(0,i.jsx)("path",{d:"M58 4H6C3.243 4 1 6.243 1 9v36c0 2.757 2.243 5 5 5h25v-2H6c-1.654 0-3-1.346-3-3V27h58v10h2V9c0-2.757-2.243-5-5-5zm3 13H3V9c0-1.654 1.346-3 3-3h52c1.654 0 3 1.346 3 3v8z"}),(0,i.jsx)("path",{"data-color":"color-2",d:"M48 36c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5 13h-4v4a1 1 0 0 1-2 0v-4h-4a1 1 0 0 1 0-2h4v-4a1 1 0 0 1 2 0v4h4a1 1 0 0 1 0 2z"})]})]})},n=e=>{let{color:t="currentColor",title:r,fill:n,...l}=e;return(0,i.jsx)(s,{color:a(t),className:"currentColor"===t?"icon-current-color":"",..."currentColor"!==t?{style:{color:a(t),fill:a(t)}}:null,fill:null!=n?n:a(t),title:r,...l})}},63751:function(e,t,r){"use strict";function i(e){let{onCaptchaChange:t}=e;return t("true"),null}r.d(t,{Z:function(){return i}}),r(85893),r(67294),r(34853)},56541:function(e,t,r){"use strict";r.d(t,{y:function(){return eP},a:function(){return eG}});var i=r(85893),a=r(50319),s=r(96240),n=r(82522),l=r(33299),o=r(11752),d=r.n(o),c=r(11163),u=r.n(c),g=r(67294),h=r(32439),m=r(86896),f=r(44012),x=r(82582),p=r(80557),_=r(57852),j=r(11587),y=r(49425),b=r(97863),v=r(5800),w=r(12882);let{publicRuntimeConfig:S}=d()(),L=S.APP.PASSWORD_POLICY_FEATURE_ACTIVE;var R=()=>L?(0,i.jsx)(n.x,{fontSize:2,color:"gray4",marginTop:0,children:(0,i.jsx)(f.Z,{id:"password_policy_hint_message",defaultMessage:"Password length must be at least 8 characters. Password must contain letters and numbers."})}):null,k=r(534),E=r.n(k),M=r(53066),C=r(53084),V=r.n(C),Z=r(89660),I=r(95281),T=r(48752),A=r(27146),F=r(48155),N=r(56441),P=r(1611),K=r(97581),z=r(23653),D=r(59666),q=r(73198),B=r(66636),O=r(54811),U=r(57999),G=r(62588),H=r(62161),W=r(99113),Q=r(4644),Y=r(78564),J=r(98384),X=r(94769),$=r(8309),ee=r(81423),et=r(38811),er=r(67375),ei=r(92313),ea=r(89991),es=r(63751),en=r(78517),el=r(60442),eo=r(2075),ed=r.n(eo);function ec(e){let{}=e,t=(0,m.Z)(),{control:r}=(0,h.Gc)();return(0,i.jsxs)("div",{className:ed().commonFields,children:[(0,i.jsx)(h.Qr,{name:"email",control:r,render:e=>{let{field:r,fieldState:{error:a,isTouched:s}}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(K.I,{...r,type:"email","data-test-id":"email_registration",placeholder:t.formatMessage({id:"register_email",defaultMessage:"Enter your email"}),required:!0}),s&&a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.b,{message:a.message}),(0,i.jsx)(q.K,{size:"small"})]})]})}}),(0,i.jsx)(q.K,{}),(0,i.jsx)(h.Qr,{name:"password",control:r,render:e=>{let{field:r,fieldState:{error:a,isTouched:s}}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.W,{...r,"data-test-id":"password_registration",placeholder:t.formatMessage({id:"register_password",defaultMessage:"Enter your password"}),required:!0}),s&&a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.b,{message:a.message}),(0,i.jsx)(q.K,{size:"small"})]})]})}}),(0,i.jsx)(q.K,{}),(0,i.jsx)(R,{}),(0,i.jsx)(q.K,{})]})}let{publicRuntimeConfig:eu}=d()(),eg={...eu.RESUME.REGISTER.register_applicant},eh=(0,el.ex)(eg),em=eu.APP.CAPTCHA.REGISTER,ef=eu.APP.READ_ONLY_MODE;function ex(e){let{onIsValidChange:t}=e,{formState:{isValid:r}}=(0,h.Gc)();return(0,g.useEffect)(()=>{t(r)},[r]),null}function ep(e){let{onSubmit:t,isSubmittingRegister:r=!1}=e,{consentsValidation:a,consentInfos:s}=(0,y.c)(),[n,l]=((0,m.Z)(),(0,g.useState)(!em)),[o,d]=(0,g.useState)(!1),c=(0,g.useCallback)(e=>{l(e)},[]);return(0,i.jsx)(j.Z,{consentPlacement:"REGISTRATION",children:(0,i.jsx)(en.Z,{name:"profile",bundle:"resume",fieldGroups:[eh],additionalFieldList:["email","password"],extraInitialValues:a.initialValues,extraValidationSchema:{...function(e){let{EMAIL_VALIDATION:t,FIELD_REQUIRED:r}=(0,ei.S)();return{email:x.string().email(t).required(r),password:x.string().required(r)}}(0),...a.schema},formGroupsChildren:{register_applicant_form:e=>{let{}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ec,{}),(0,i.jsx)(q.K,{size:"large"}),(0,i.jsx)(_.Z,{}),em&&(0,i.jsx)(q.K,{marginTop:5,children:(0,i.jsx)(es.Z,{onCaptchaChange:c})})]})}},renderButtons:e=>{let{}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B.zx,{block:!0,type:"submit",buttonStyle:"primary","data-test-id":"register-submit",disabled:r||!o||ef||!n,children:r?(0,i.jsx)(O.N,{title:"Loading"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(U.Z,{title:"Login","aria-hidden":"true"}),(0,i.jsx)("span",{children:(0,i.jsx)(f.Z,{id:"register",defaultMessage:"Register"})})]})}),(0,i.jsx)(q.K,{}),ef?null:(0,i.jsx)(w.Z,{gdpr:a,consentInfos:s})]})},onSubmit:t,children:(0,i.jsx)(ex,{onIsValidChange:e=>d(e)})})})}var e_=r(41755),ej=r(27966);function ey(e){let{children:t,registerImage:r}=e,a=(0,m.Z)();return r?(0,i.jsx)("main",{children:(0,i.jsx)(e_.m,{image:r,title:a.formatMessage({id:"register_image_title",defaultMessage:"Register"}),alt:a.formatMessage({id:"register_image_alt",defaultMessage:"Register banner"}),children:t})}):(0,i.jsx)(ej.o,{children:(0,i.jsx)("main",{children:t})})}var eb=r(87125),ev=r(89362),ew=r(96282),eS=r(91852),eL=r(70409),eR=r(71797),ek=r(73507),eE=r(17992);let eM={steps:[(0,i.jsx)(f.Z,{id:"register_info_step_1_applicant",defaultMessage:"Create your account by providing your email address and password. You can change both later."}),(0,i.jsx)(f.Z,{id:"register_info_step_2_applicant",defaultMessage:"Verify your account by going to your email inbox and click the verification link in your welcome email."}),(0,i.jsx)(f.Z,{id:"register_info_step_3_applicant",defaultMessage:"Enter your resume information in your dashboard to create your online CV so recruiters can find you more easily!"})],title:(0,i.jsx)(f.Z,{id:"register_info_title_applicant",defaultMessage:"Applicant registration"}),stepsTitle:(0,i.jsx)(f.Z,{id:"register_info_steps_title_applicant",defaultMessage:"Register your account in 3 simple registration steps"}),icons:[(0,i.jsx)(ev.m,{title:"Lock",color:"primary",height:"40",width:"40"}),(0,i.jsx)(ew._,{title:"Envelope",color:"primary",height:"40",width:"40"}),(0,i.jsx)(U.Z,{title:"Graduation",color:"primary",height:"40",width:"40"})]},eC={steps:[(0,i.jsx)(f.Z,{id:"register_info_step_1_recruiter",defaultMessage:"Create your account by providing your email address account and password. You can change both later."}),(0,i.jsx)(f.Z,{id:"register_info_step_2_recruiter",defaultMessage:"Verify your account by going to your email inbox and click the verification link in your welcome email. Without verification, you won't be able to post jobs!"}),(0,i.jsx)(f.Z,{id:"register_info_step_3_recruiter",defaultMessage:"Fill out all the information about your account, and also add it to the organization page as much information as you can - the logo and the website are required to proceed."}),(0,i.jsx)(f.Z,{id:"register_info_step_4_recruiter",defaultMessage:"Post a job either with a template, a PDF, or a link (provide a link that can be embedded in an iframe, otherwise it won’t work properly)."}),(0,i.jsx)(f.Z,{id:"register_info_step_5_recruiter",defaultMessage:"Proceed to the checkout and see your job being published!"})],title:(0,i.jsx)(f.Z,{id:"register_info_title_recruiter",defaultMessage:"Recruiter registration"}),stepsTitle:(0,i.jsx)(f.Z,{id:"register_info_steps_title_recruiter",defaultMessage:"Post a job in 5 steps"}),icons:[(0,i.jsx)(ev.m,{title:"Lock",color:"primary",height:"40",width:"40"}),(0,i.jsx)(ew._,{title:"Envelope",color:"primary",height:"40",width:"40"}),(0,i.jsx)(G.n,{title:"Office",color:"primary",height:"40",width:"40"}),(0,i.jsx)(eS.V,{title:"Briefcase",color:"primary",height:"40",width:"40"}),(0,i.jsx)(eL.O,{title:"Payment",color:"primary",height:"40",width:"40"})]},eV=e=>{let{isApplicant:t}=e,{title:r,stepsTitle:a,steps:s,icons:l}=t?eM:eC;return(0,i.jsxs)(q.K,{padding:11,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(eR.C,{badgeStyle:"secondaryVeryLight",children:r}),(0,i.jsx)(n.x,{textAlign:"left",color:"gray8",fontWeight:"bold",fontSize:5,lineHeight:5,children:a})]}),(0,i.jsx)(q.K,{size:"large"}),(0,i.jsx)("div",{children:s.map((e,t)=>(0,i.jsxs)("div",{children:[(0,i.jsxs)(ek.M,{alignItems:"flex-start",flexWrap:"nowrap",gap:6,children:[(0,i.jsx)(eE.B,{children:l[t]}),(0,i.jsx)(eE.B,{children:(0,i.jsx)(n.x,{marginTop:"0",color:"gray8",fontWeight:"bold",children:e})})]},t),(0,i.jsx)(q.K,{size:"large"})]},t))}),(0,i.jsx)(q.K,{}),(0,i.jsx)(n.x,{children:(0,i.jsx)(f.Z,{id:"register_info_contact_us",defaultMessage:"Do you have any questions or feedback about the registration? {link}",values:{link:(0,i.jsx)("a",{href:"/contact",children:(0,i.jsx)(f.Z,{id:"register_info_contact_us_link",defaultMessage:"Contact us!"})})}})})]})};var eZ=r(86042);let{publicRuntimeConfig:eI}=d()(),eT=eI.RESUME.RESUME_FEATURE_ACTIVE,eA=eI.RESUME.APPLICANT_FEATURE_ACTIVE,eF=eI.ORGANIZATIONS.RECRUITER_FEATURE_ACTIVE,eN=eI.APP.NEWSLETTER_FEATURE_ACTIVE,eP="anonymous_registration_data",eK=eI.APP.READ_ONLY_MODE,ez=eI.APP.CAPTCHA.REGISTER,eD=(e,t,r)=>{let i=t.includes("?")?"&":"?";return"".concat(e).concat(t).concat(i).concat(r.toString())},eq=async(e,t,r,i,a,s,n,o)=>{let d=i!==a?"/".concat(i):"";if(e.userRegister&&e.userRegister.jwt){let r=e.userRegister.jwt,a=await (0,l.signIn)("sign-in",{redirect:!1,jwt:r});if((null==a?void 0:a.status)===200){var c;s&&n&&(null==e?void 0:null===(c=e.userRegister)||void 0===c?void 0:c.errors.length)===0&&s(n);let r=new URLSearchParams;if(r.set("dispatch",I.FP.SIGNUP_START.key),(null==o?void 0:o.destination)&&r.set("destination",o.destination),t&&eT){if(sessionStorage.getItem("applyForceRegisterLink")){let e=sessionStorage.getItem("applyForceRegisterLink");sessionStorage.removeItem("applyForceRegisterLink"),window.location.href=eD(d,null!=e?e:"",r)}else{let e=(0,N.GW)("/resume/wizard",i);window.location.href=eD(d,e,r)}}else t?window.location.href=eD(d,"/dashboard",r):window.location.href=eD(d,"/organization/wizard",r)}}else 0===e.userRegister.errors.length&&(r.addMessage({type:"success",text:"Success! you registration was created, an email will be sent to the email provided."}),(0,A.Z)("/"))},eB={applicant:"applicant",recruiter:"recruiter"},eO=e=>{u().push({pathname:"/user/register/".concat(e?eB.applicant:eB.recruiter)},void 0,{shallow:!0})},eU=()=>{let e="";return[eB.applicant,eB.recruiter].forEach(t=>{u().pathname.endsWith(t)&&(e=t)}),e},eG=()=>{var e;let t=(0,m.Z)(),{EMAIL_VALIDATION:r}=(0,ei.S)(),[l,o]=(0,g.useState)(!ez),d=(0,eb.g6)(eI).registerImage,{createGdprUserConsent:u,isNewsletterChecked:S,consentsValidation:L}=(0,y.c)(),k=(0,h.cI)({mode:"onChange",defaultValues:{email:"",password:""},resolver:(0,s.X)(x.object().shape({email:x.string().email(r).required(t.formatMessage({id:"field_required",defaultMessage:"Field is required"})),password:x.string().required(t.formatMessage({id:"field_required",defaultMessage:"Field is required"})),...L.schema}))}),{handleSubmit:C,setValue:I,formState:{isValid:A},control:N}=k,en=(0,g.useContext)(M.I),el=(0,c.useRouter)(),eo=(0,Z.y)(),[ed,ec]=(0,g.useState)(T.tn),[eu,eg]=(0,g.useState)(eA),[eh,{data:em,loading:ef}]=(0,a.D)(E()),{getConfigByName:ex}=(0,eZ.ZR)(),e_=!!(null===(e=ex("jobiqo_creation_source"))||void 0===e?void 0:e.value[0]),[ej,ev]=(0,g.useState)(null);(0,g.useEffect)(()=>{e_&&sessionStorage.getItem("utm-source")&&ev(sessionStorage.getItem("utm-source"))},[]),(0,g.useEffect)(()=>{eU()===eB.recruiter&&(eg(!1),ec(T.p9));let e=sessionStorage.getItem(eP);e&&I("email",JSON.parse(e).email)},[]),(0,g.useEffect)(()=>{Object.keys(L.initialValues).forEach(e=>I(e,L.initialValues[e]))},[L.initialValues]);let ew=ef||em&&em.userRegister&&em.userRegister.jwt,eS=(e,t,r,i,a,s,n)=>{eK||eh({variables:{data:{email:e.email,password:e.password,...eN?{newsletter:S}:null,role:r?T.tn:T.p9,anonymousUserToken:(0,F.yh)(),language:a.locale,additionalData:JSON.stringify(e),...e_&&ej?{source:ej}:null}},refetchQueries:[{query:V()}]}).then(async l=>{await t(l.data,r,i,a.locale,s.defaultLocale,n,e.email,s.query)})},eL=(0,i.jsxs)(n.x,{fontSize:2,textAlign:"center",children:[(0,i.jsx)(f.Z,{id:"register_has_account",defaultMessage:"Already have an account?"})," ",(0,i.jsx)(b.Z,{href:"/user/login",children:(0,i.jsx)(f.Z,{id:"login",defaultMessage:"Login"})})]}),eR=(0,i.jsx)(j.Z,{consentPlacement:"REGISTRATION",children:(0,i.jsx)(h.RV,{...k,children:(0,i.jsxs)(P.y,{method:"POST",minWidth:"250px",onSubmit:C(e=>eS(e,eq,eu,eo,en,el,u)),children:[(0,i.jsx)(h.Qr,{name:"email",control:N,render:e=>{let{field:r,fieldState:{error:a,isTouched:s}}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(K.I,{...r,type:"email","data-test-id":"email_registration",placeholder:t.formatMessage({id:"register_email",defaultMessage:"Enter your email"}),required:!0}),s&&a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.b,{message:a.message}),(0,i.jsx)(q.K,{size:"small"})]})]})}}),(0,i.jsx)(h.Qr,{name:"password",control:N,render:e=>{let{field:r,fieldState:{error:a,isTouched:s}}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.W,{...r,"data-test-id":"password_registration",placeholder:t.formatMessage({id:"register_password",defaultMessage:"Enter your password"}),required:!0}),s&&a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.b,{message:a.message}),(0,i.jsx)(q.K,{size:"small"})]})]})}}),(0,i.jsx)(R,{}),(0,i.jsx)(q.K,{}),(0,i.jsx)(_.Z,{}),(0,i.jsx)(q.K,{}),(0,i.jsx)(B.zx,{disabled:ew||!A||eK||!l,type:"submit",buttonStyle:"primary","data-test-id":"register-submit",children:ew?(0,i.jsx)(O.N,{title:"Loading"}):(0,i.jsxs)(i.Fragment,{children:[eu?(0,i.jsx)(U.Z,{title:"Login","aria-hidden":"true"}):(0,i.jsx)(G.n,{title:"Register","aria-hidden":!0}),(0,i.jsx)("span",{children:(0,i.jsx)(f.Z,{id:"register",defaultMessage:"Register"})})]})}),ez&&(0,i.jsx)(q.K,{marginTop:5,children:(0,i.jsx)(es.Z,{onCaptchaChange:function(e){o(e)}})}),eu&&!eK?(0,i.jsx)(w.Z,{createGdprUserConsent:u}):null]})})});return(0,i.jsx)(ey,{registerImage:d,children:(0,i.jsxs)(H.k,{children:[(0,i.jsx)(v.default,{}),em&&em.userRegister&&em.userRegister.errors.length>0&&(0,i.jsx)(W.X,{type:"assertive",alertStyle:"danger",scrollToMessage:!0,children:(0,i.jsx)("ul",{"data-test-id":"user-register-errors",children:em.userRegister.errors.map((e,t)=>(0,i.jsx)("li",{children:e.message},t))})}),(0,i.jsxs)(Q.y,{flow:"column",children:[(0,i.jsx)(q.K,{size:"medium"}),(0,i.jsx)(p.c,{maxHeight:"70px"}),(0,i.jsx)(q.K,{}),(0,i.jsx)(er.n,{children:(0,i.jsxs)("h1",{children:[(0,i.jsx)(et.u,{color:"primary",title:"Login","aria-hidden":"true"})," ",(0,i.jsx)(f.Z,{id:"register_title",defaultMessage:"Register new account"})]})}),eK&&(0,i.jsx)(q.K,{marginBottom:6,children:(0,i.jsx)(W.X,{alertStyle:"danger",children:(0,i.jsx)(ea.Z,{id:"register_block_readonly",defaultMessage:"Registration is blocked temporarily while the site is in maintenance mode."})})}),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(Y.r,{alignItems:"start",justifyItems:"center",...d?{columns:[1]}:{columns:[1,2]},children:[(0,i.jsx)(q.K,{paddingTop:[0,7],children:(0,i.jsx)(J.b,{children:eA&&eF?(0,i.jsx)($.x,{padding:0,children:(0,i.jsxs)("div",{style:{maxWidth:"450px",margin:"auto"},children:[(0,i.jsxs)(X.mQ,{hardBackground:!1,tabsListItemFull:!0,value:ed,onChange:e=>{let t=e===T.tn;eg(t),eO(t),ec(e)},children:[(0,i.jsxs)(X.td,{children:[(0,i.jsx)(X.OK,{value:T.tn,children:(0,i.jsx)(f.Z,{id:"applicant",defaultMessage:"Applicant"})}),(0,i.jsx)(X.OK,{value:T.p9,children:(0,i.jsx)(f.Z,{id:"recruiter",defaultMessage:"Recruiter"})})]}),(0,i.jsxs)(X.x4,{value:T.tn,children:[(0,i.jsx)(q.K,{}),(0,i.jsx)(n.x,{color:"gray5",textAlign:"center",children:(0,i.jsx)(f.Z,{id:"applicant_info",defaultMessage:"You are registering as an applicant. {break} After registration you will receive a confirmation email",values:{break:(0,i.jsx)("br",{})}})})]}),(0,i.jsxs)(X.x4,{value:T.p9,children:[(0,i.jsx)(q.K,{}),(0,i.jsx)(n.x,{color:"gray5",textAlign:"center",children:(0,i.jsx)(f.Z,{id:"recruiter_info",defaultMessage:"You are registering as a recruiter. {break} After registration you will receive a confirmation email",values:{break:(0,i.jsx)("br",{})}})})]})]}),(0,i.jsxs)(q.K,{padding:[6,8],paddingTop:[0,0],children:[eu?(0,i.jsx)(ep,{isSubmittingRegister:ew,onSubmit:e=>eS(e,eq,eu,eo,en,el,u)}):eR,(0,i.jsx)(q.K,{size:"medium"}),(0,i.jsx)("div",{children:eL})]})]})}):(0,i.jsxs)($.x,{padding:[6,8],children:[(0,i.jsx)(n.x,{tag:"h2",textAlign:"center",fontSize:4,children:(0,i.jsx)(f.Z,{id:"register_title",defaultMessage:"Register new account"})}),(0,i.jsx)(q.K,{size:"medium"}),(0,i.jsx)(n.x,{color:"gray5",textAlign:"center",children:(0,i.jsx)(f.Z,{id:"register_info",defaultMessage:"Fill the form below to register. {break} After registration you will receive a confirmation email",values:{break:(0,i.jsx)("br",{})}})}),(0,i.jsxs)(q.K,{padding:[5,8],children:[eR,(0,i.jsx)(q.K,{size:"medium"}),(0,i.jsx)("div",{children:eL})]})]})})}),!d&&(0,i.jsx)(ee.I,{children:(0,i.jsx)(J.b,{children:(0,i.jsx)(Q.y,{children:(0,i.jsx)(eV,{isApplicant:eu})})})})]})})]})]})})}},89660:function(e,t,r){"use strict";r.d(t,{y:function(){return a}});var i=r(69828);let a=()=>{let{state:e,dispatch:t}=(0,i.oR)();return{addMessage:e=>{t({type:"addMessage",message:e})},removeMessage:e=>{t({type:"addMessage",message:e})},messages:e&&e.messages?e.messages:[]}}},67473:function(e){e.exports={badge:"badge_badge__uwntI",primary:"badge_primary__mGyjZ",primaryLight:"badge_primaryLight__PDGEf",primaryVeryLight:"badge_primaryVeryLight__QkT0a",secondary:"badge_secondary__qLYIk",secondaryLight:"badge_secondaryLight__IIn9W",secondaryVeryLight:"badge_secondaryVeryLight__xBsP9",default:"badge_default__cL3D7",success:"badge_success__S0DyD",successLight:"badge_successLight__SZFqN",successVeryLight:"badge_successVeryLight__gbUln",danger:"badge_danger__NZpZw",dangerLight:"badge_dangerLight__geI5_",dangerVeryLight:"badge_dangerVeryLight__DppqQ",warning:"badge_warning__LyvkQ",warningLight:"badge_warningLight__w7cyE",warningVeryLight:"badge_warningVeryLight__EXB0h",featured:"badge_featured__9nw0K",featuredLight:"badge_featuredLight__9ymhH",featuredVeryLight:"badge_featuredVeryLight__LQ2Ra",topJob:"badge_topJob__bC2IG"}},74335:function(e){e.exports={image:"picture_image__puDCK"}},53330:function(e){e.exports={tabsRoot:"tabs_tabsRoot___9zDd",tabLink:"tabs_tabLink__KdGqO",tabEqualSpace:"tabs_tabEqualSpace__Ff8Ye",tabsRootListItemFull:"tabs_tabsRootListItemFull__pki8g",tabsRootHardBg:"tabs_tabsRootHardBg__DhzaK",tabsRootHardBgPrimary:"tabs_tabsRootHardBgPrimary__3znwh",tabsRootHardBgSecondary:"tabs_tabsRootHardBgSecondary__CkZaT"}},39542:function(e){e.exports={wrapper:"formWithImage_wrapper__xfh7x",left:"formWithImage_left__D0D9S",right:"formWithImage_right__5ejln"}},2075:function(e){e.exports={commonFields:"commonFields_commonFields__5D2M3"}}}]);