1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5634],{28698:function(t,e,i){"use strict";i.r(e),i.d(e,{__N_SSP:function(){return D},default:function(){return R}});var n=i(67294),r=i(2664),o=i(96253),a=i(9008),s=i.n(a),c=i(21137),l=i(89373),m=i(85520),f=i(19549),d=(i(69358),i(59749),i(38077),i(60228),i(81919),i(47522),i(99474),i(59499)),u=i(95627),x=i.n(u),h=i(71321),g=i(69065),p=i(37808),_=i(86942),j=i(82929),v=i(22266),b=i(45536),w=i(81768),y=i(3419),k=(i(34338),i(95952)),Z=[".invitation-registration-form.jsx-387770318{max-width:600px;}",".invitation-registration-form__container.jsx-387770318{max-height:90vh;overflow-y:auto;}",".invitation-registration-form__content.jsx-387770318{padding:60px;text-align:left;}",".invitation-registration-form__title.jsx-387770318{text-align:center;}",".invitation-registration-form__footer.jsx-387770318{border-top:1px solid ".concat(k.O9.grey3,";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:").concat(k.W0.s," ").concat(k.W0.l,";}"),".invitation-registration-form__footer.jsx-387770318>*{min-width:160px;}",".invitation-registration-form__checkbox.jsx-387770318{padding:".concat(k.W0.xs," 0;}"),"@media screen and (max-width:".concat(k.J7.desktopCutoff,"){.invitation-registration-form__content.jsx-387770318{margin:").concat(k.W0.s,";}.invitation-registration-form__footer.jsx-387770318{background-color:").concat(k.O9.whiteBackground,";padding:").concat(k.W0.s,";position:fixed;left:0;bottom:0;right:0;}.invitation-registration-form__footer.jsx-387770318 *{margin:0 ").concat(k.W0.xxs,";}}")];Z.__hash="387770318";var N=Z,O=[".invitation-registration-success.jsx-55012744{background-color:".concat(k.O9.green,";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:").concat(k.W0.xxl," ").concat(k.W0.m,";}"),".invitation-registration-success__text.jsx-55012744{color:#FFF;font-weight:bold;margin:".concat(k.W0.m," 0;text-align:center;}")];O.__hash="55012744";var C=i(85893);function F(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function E(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?F(Object(i),!0).forEach((function(e){(0,d.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):F(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var W=function(t){return(0,C.jsx)("svg",E(E({},t),{},{children:(0,C.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,C.jsx)("circle",{cx:"24",cy:"24",r:"23",stroke:"#FFF",strokeWidth:"2"}),(0,C.jsxs)("g",{fill:"#FFF",children:[(0,C.jsx)("path",{d:"m14.42 23.647 8.165 8.166-1.414 1.414-8.165-8.165z"}),(0,C.jsx)("path",{d:"m36.142 18.257-14.97 14.97-1.347-1.347 14.97-14.97z"})]})]})}))};W.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48"};var P=function(t){var e=t.handleSubmit,i=t.registration,r=i.isLoading,a=i.invitation,s=t.registerEmployerInvitation,c=t.initialize,l=t.requestId,m=t.error,f=(0,n.useRef)(null),d=(0,n.useState)(!1),u=d[0],g=d[1],k=(0,n.useState)(null),Z=k[0],F=k[1],P=(0,n.useState)(!1),I=P[0],S=P[1],T=(0,n.useState)(!1),L=T[0],D=T[1];(0,n.useEffect)((function(){var t=E({},a);c(t)}),[c,a]),(0,n.useEffect)((function(){L&&(I&&!r&&g(!0),!I&&r&&(g(!1),F(null)),f&&I&&!r&&m&&"DUPLICATE_EMAIL"===m.data.errorType&&(g(!1),F("registration.form.error.".concat(m.data.errorType)),f.focus())),S(r)}),[r]);return u?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"jsx-".concat(O.__hash)+" invitation-registration-success",children:[(0,C.jsx)(W,{}),(0,C.jsx)("div",{className:"jsx-".concat(O.__hash)+" invitation-registration-success__text",children:(0,C.jsx)(p.Z,{id:"registration.form.employer.success"})}),(0,C.jsx)(w.Z,{isSecondary:!0,isFullWidth:!0,onClick:function(){window.location.href="/?login=true"},children:(0,C.jsx)(p.Z,{id:"registration.form.success.login.button"})})]}),(0,C.jsx)(x(),{id:O.__hash,children:O})]}):a?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("form",{onSubmit:e((function(t){if(!r){var e={email:t.email,password:t.password,firstName:t.firstName,lastName:t.lastName,phone:t.phone,allowLetters:t.allowLetters};s(l,t.employerId,e),D(!0)}})),className:"jsx-".concat(N.__hash)+" invitation-registration-form",children:[(0,C.jsx)("div",{className:"jsx-".concat(N.__hash)+" invitation-registration-form__container",children:(0,C.jsxs)("div",{className:"jsx-".concat(N.__hash)+" invitation-registration-form__content",children:[(0,C.jsx)("h2",{className:"jsx-".concat(N.__hash)+" invitation-registration-form__title",children:(0,C.jsx)(p.Z,{id:"employer.email.invitation.registration.form.title",values:{value:a.employerName}})}),(0,C.jsx)("br",{className:"jsx-".concat(N.__hash)}),(0,C.jsx)(h.Z,{name:"email",type:"email",label:"registration.form.email",component:j.Z,validate:[y.C1,y.Jh],autoComplete:"off",isFullWidth:!0,errorText:Z,getReference:function(t){f=t}}),(0,C.jsx)(h.Z,{name:"password",type:"password",label:"registration.form.password",component:v.Z,validate:[y.C1,y.wZ],autoComplete:"off",isFullWidth:!0}),(0,C.jsx)("br",{className:"jsx-".concat(N.__hash)}),(0,C.jsx)("br",{className:"jsx-".concat(N.__hash)}),(0,C.jsx)(h.Z,{name:"firstName",label:"registration.form.first.name",component:j.Z,validate:[y.C1,y.C5],autoComplete:"off",isFullWidth:!0}),(0,C.jsx)(h.Z,{name:"lastName",label:"registration.form.last.name",component:j.Z,validate:[y.C1,y.C5],autoComplete:"off",isFullWidth:!0}),(0,C.jsx)(h.Z,{name:"phone",type:"tel",label:"registration.form.phone",component:j.Z,validate:[y.C1,y.Mn],autoComplete:"off",isFullWidth:!0}),(0,C.jsx)("div",{className:"jsx-".concat(N.__hash)+" invitation-registration-form__checkbox",children:(0,C.jsx)(h.Z,{name:"allowLetters",label:"registration.form.checkbox.information.letters",component:b.Z,isFullWidth:!0})}),(0,C.jsx)("div",{className:"jsx-".concat(N.__hash)+" invitation-registration-form__checkbox",children:(0,C.jsx)(h.Z,{name:"agreeTerms",label:(0,C.jsx)(_.Z,{id:"registration.form.checkbox.terms.".concat((0,o.ge)())}),component:b.Z,validate:[y.C1],disableFormattedMessage:!0,isFullWidth:!0})})]})}),(0,C.jsx)("div",{className:"jsx-".concat(N.__hash)+" invitation-registration-form__footer",children:(0,C.jsx)(w.Z,{type:"submit",isLoading:r,children:(0,C.jsx)(p.Z,{id:"registration.form.button.register"})})})]}),(0,C.jsx)(x(),{id:N.__hash,children:N})]}):null};P.defaultProps={error:null};var I={form:"employer-invitation-registration-form",onSubmitFail:function(t){console.warn("form submit fail",t)}},S=(0,g.Z)(I)(P),T=i(11163),L=i(86896),D=!0,R=(0,r.$j)((function(t){return{registration:t.registration}}),{verifyInvitationUuid:m.BV,registerEmployerInvitation:m.Ub})((function(t){var e=(0,T.useRouter)().query.requestId,i=t.registration,r=t.registerEmployerInvitation,a=t.alma,m={};(!e||i.error&&404===i.error.statusCode)&&(m={data:{errorType:"RESOURCE_NOT_FOUND"},statusCode:404}),(0,n.useEffect)((function(){t.verifyInvitationUuid(e)}),[]);var d=(0,L.Z)();return(0,C.jsxs)(c.Z,{alma:a,intl:d,error:m,children:[(0,C.jsx)(s(),{children:(0,C.jsx)("meta",{name:"description",content:d.formatMessage({id:"description.".concat((0,o.ge)()),defaultMessage:"CV-Online"})})}),(0,C.jsx)(l.Z,{children:(0,C.jsx)(f.Z,{isOpen:!0,children:(0,C.jsx)(S,{registration:i,registerEmployerInvitation:r,requestId:e,error:m})})})]})}))}
1,5504:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invitation/[requestId]",function(){return i(28698)}])}},function(t){t.O(0,[9774,2888,179],(function(){return e=5504,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.