1"use strict";(self.webpackChunkreact_myrandstad=self.webpackChunkreact_myrandstad||[]).push([[178],{6010:function(e,t,a){var n=a(1413),r=a(885),i=a(2791),s=a(3269),o=a(4316),c=a(1259),l=a(5117),d=a(3646),u=a(4719),h=a(7129),m=a(4569),p=a.n(m),g=(a(7461),a(184));t.Z=(0,o.ZP)((function(e){var t=e.intl,a=(e.match,t.formatMessage({id:"Register.Header.Title.Left"})),o=t.formatMessage({id:"Register.Header.Title.Right"}),m=(0,i.useContext)(d.ZP),v=m.setAdditionalData,f=m.formData,_=m.setFormData,b=(m.handleErrors,m.renderStep),x=m.currentStep,y=(0,i.useState)(!1),j=(0,r.Z)(y,2),k=j[0],P=j[1];(0,h.Z)("register-confirmation").url,(0,i.useEffect)((function(){window.__ROUTE_DATA__?delete window.__ROUTE_DATA__:Promise.all([p().get("".concat("/api/my-randstad","/job-categories-list")),p().get("".concat("/api/my-randstad","/branch-specialisms"))]).then((function(e){var t,a,n,i=(0,r.Z)(e,2),s=i[0],o=i[1];v({regions:null===s||void 0===s||null===(t=s.data)||void 0===t?void 0:t.regions,specialisms:null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.specialisms,jobTypes:null===s||void 0===s||null===(n=s.data)||void 0===n?void 0:n.jobTypeList,branches:null===o||void 0===o?void 0:o.data})})),(0,l.Z)(),_([])}),[]);var Z=function(){_((function(e){return e[x]||(e[x]={}),e[x].accept_privacy_policy="yes",(0,n.Z)({},e)})),P(!1)},w=function(){P(!1)};return t.formatMessage({id:"Cutover.Register"}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(s.q,{children:(0,g.jsx)("header",{className:"header header--text bg-variant-brand-primary"})}),(0,g.jsx)("div",{className:"header header--text bg-variant-brand-primary",children:(0,g.jsx)("div",{className:"header__wrapper wrapper",children:(0,g.jsx)("div",{className:"header__content header__content--l content-block header__content--full-width",children:(0,g.jsxs)("h1",{className:"content-block__title",children:[(0,g.jsx)("span",{className:"content-block__title-top",children:a}),(0,g.jsx)("span",{className:"content-block__title-bottom text--emphasis",children:o})]})})})}),!1,(0,g.jsx)(c.Z,{name:"register-2-step",handleChange:function(e){var t=e.target.name,a=e.target.value;if("checkbox"===e.target.type){var r=e.target.value;"string"===typeof r&&"true"===r&&(r=!0),a=e.target.checked?r:null}"accept_privacy_policy"===t&&a?P(!0):_((function(e){return e[x]||(e[x]={}),e[x][t]=a,(0,n.Z)({},e)}))},state:f[x],handleSubmit:function(e){e.preventDefault(),b("next")}}),k?(0,g.jsx)(u.Z,{title:t.formatMessage({id:"Register.Section.PersonalDataProcessing.Checkbox.PrivacyPolicy.Modal.Title"}),onClose:w,footer:(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("button",{onClick:Z,className:"button button--m button--filled button--full-width",children:t.formatMessage({id:"Register.Section.PersonalDataProcessing.Checkbox.PrivacyPolicy.Modal.Button"})})}),footerDivider:!1}):""]})}))}}]); 2//# sourceMappingURL=register-2-step-pages.db9956c6.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.