PageSourceSearch

https://resources.reed.co.uk/cdn/web-jobseeker-jobs/20260923.1/_next/static/chunks/907.38d13e7da745d48a.js

js reed.co.uk collected 2026-09-24 08:41:44 UTC 75,758 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[907],{6745:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});let o={JOB_DETAILS:"job_details",SEARCH_RESULTS:"search_results"}},11285:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",card:"screening-questions-overview_card__g0Jj2",heading:"screening-questions-overview_heading__ofLds",heading__button:"screening-questions-overview_heading__button___9JD_",questionsList:"screening-questions-overview_questionsList__BubkO",questionsAnswer:"screening-questions-overview_questionsAnswer___Qb5f"}},14634:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",card:"about-you_card__K2vbW",card__invalid:"about-you_card__invalid__UAPbm",card__header:"about-you_card__header__OxEP_",card__list:"about-you_card__list___bkrt",card__list_intro:"about-you_card__list_intro__eSvMa",card__list_name:"about-you_card__list_name__5Mxbp",card__list_title:"about-you_card__list_title__4QNOy",card__list_item:"about-you_card__list_item__9cZ6O",card__title:"about-you_card__title__9R0wJ"}},16448:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",warning:"error-message_warning__tFMFT"}},18878:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",card:"current-cv_card__T8AmM",wrapper:"current-cv_wrapper__AcyDd",cvContainer:"current-cv_cvContainer__qI0g_",iconContainer:"current-cv_iconContainer__1DFEd",cvContainer__cvName:"current-cv_cvContainer__cvName__umllo",cvContainer__cvName_mobile:"current-cv_cvContainer__cvName_mobile__2vjv8",cvContainer__cvName_desktop:"current-cv_cvContainer__cvName_desktop__iCWFx",date:"current-cv_date__AP5ll",button:"current-cv_button__5gNgh",loader:"current-cv_loader__39tld",spinner:"current-cv_spinner__8w_VC"}},18966:(e,t,a)=>{"use strict";a.d(t,{A:()=>r,r:()=>n});var o=a(65468);let n=({bffUrl:e,authHeaders:t,profileData:a,allowNonJsonResponse:n=!0})=>(0,o.AL)({url:`${e.public}profile/`,method:"POST",authHeader:t,data:a},!1,n),r=async(e,t)=>(0,o.AL)({url:`${e.public}profile/`,authHeader:{...t}})},21907:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>of});var o=a(37876),n=a(89099),r=a(14232),s=a(45113),l=a(80008),i=a(82985),d=a(92643),c=a.n(d);let _=({description:e="",size:t="sm"})=>(0,o.jsx)(s.A,{show:!0,size:t,closeOnBackdrop:!1,"data-qa":"success-modal",children:(0,o.jsxs)(l.A,{className:c().modalBody,children:[(0,o.jsx)("div",{className:c().icon__wrapper,children:(0,o.jsx)(i.A,{})}),e&&(0,o.jsx)("h3",{children:e})]})});var u=a(7351),p=a(87523),m=a(34126),h=a(82638),x=a(54565),A=a(23625),C=a(42057),f=a(94814),v=a(46895),b=a(66383),j=a(99925),g=a(52569),y=a(65468);let N=async(e,t)=>(0,y.AL)({url:`${t?.public}profile/cv/current/`,authHeader:e}),O=async(e,t)=>(0,y.AL)({url:`${t?.public}profile/cv/last-valid/`,authHeader:e}),E=async(e,t,a)=>(0,y.AL)({url:`${a?.public}profile/cv/upload/`,authHeader:t,method:"POST",data:e,options:{ignoreDefaultContentType:!0,timeout:12e4},isNotConvertToJson:!0});var L=a(40178),T=a(7590);let R=async({user:e,logger:t,bffUrl:a,coreDispatch:o,componentNameForLogger:n,isCVAbsenceNormalCondition:r=!1})=>{let s=50,l=async(i,d)=>{let c=await (0,L.A)(e,o),_=await N(c,a);s--;let{message:u,errorCode:p,errors:m,hasError:h,result:x}=_,A=`getCurrentCV - getCVStatus - cvStatusPolling - ${n}`;return h||m||p?(t.error((0,T.NO)(u,p,m),{page_name:A}),i({hasError:!0})):x?g.aG.includes(x.fileStatus)?i({result:x}):s<=0?(t.error("The maximum number of requests has been exceeded.",{page_name:A}),i({hasError:!0})):setTimeout(l,3500,i,d):(r||t.error("CV is not found",{page_name:A}),i({hasError:!0}))};return new Promise(l)};var S=a(90889),w=a(44697),D=a(70787),B=a(90540),k=a(75782),P=a(50546),U=a(98516),M=a(41007),I=a(44604),q=a(88992),V=a(82548),W=a(35112),G=a.n(W);let $=({htmlFor:e,className:t,children:a})=>(0,o.jsxs)(V.A,{htmlFor:e,className:t,children:[a,(0,o.jsx)("span",{className:G().requiredLabel__asterisk,children:" * "})]});var Y=a(39793),F=a(18966),J=a(11550),H=a(43432),Q=a(39149),Z=a.n(Q);let z=3,K=Z()(e=>e(),500),X=({fetchService:e,value:t,nameForLogger:a,customMapper:o,minLength:n=z,includeAuthHeaders:s=!0})=>{let{state:{config:l,logger:i,user:d},dispatch:c}=(0,r.useContext)(v.jR),[_,u]=(0,r.useState)([]),[p,m]=(0,r.useState)(!1),h=(0,r.useRef)(o);return(0,r.useEffect)(()=>{h.current=o},[o]),(0,r.useEffect)(()=>{(async()=>{let o=t||"";if(o.length<n){u([]),m(!1);return}K(async()=>{m(!0);try{let t=s?await (0,L.A)(d,c):void 0,n=await e(o,l.bffUrl,t),{result:r,hasError:_,message:p,errors:m}=n||{};if(_){u([]),i.error(p,{page_name:`fetchData() - ${a}`},m);return}let x=void 0===r?n:r,A=x||[];"function"==typeof h.current&&(A=h.current(x)),u(A)}catch(e){i.error(`Unexpected error in fetchData() - ${a}`,e),u([])}finally{m(!1)}})})()},[t,l.bffUrl,c,i,d,e,a,n,s]),[_,u,p]};var ee=a(29187),et=a(38595),ea=a(91518);let eo=e=>!/[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/.test(e)||"Cannot contain email addresses.",en=e=>!/\b((https?|ftp):\/\/)?\d+\.\d+\.\d+\.\d+|((https?|ftp):\/\/|www\.)\S+\.[a-z]{2,6}\b|[a-z0-9-\.]{4,}\.(aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|travel|tv|co\.uk|ltd\.uk|org\.uk)/.test(e)||"Cannot contain URL.",er=e=>null!=e&&""!==e,es=(e,t)=>({value:e,message:`${t} must not be longer than 50 characters.`}
1),el={FORENAME:"forename",SURNAME:"surname",JOB_TITLE:"jobTitle",PHONE:"phone",COUNTRY:"country",TOWN:"town",POSTCODE:"postcode"},ei={containsEmail:e=>eo(e),containsRegex:e=>/^[a-zA-Z\s_.'()\-\u00C0-\u024F\u1E00-\u1EFF]+$/.test(e)||"Use characters only",containsUrl:e=>en(e)},ed={required:"Please enter a job title",minLength:{value:2,message:"Job title must be at least 2 characters in length."},maxLength:es(60,"Job title"),validate:{containsEmail:e=>eo(e),containsUrl:e=>en(e),validJobTitle:e=>(e=>{if(!/^(?=.*[a-zA-Z\u00C0-\u024F\u1E00-\u1EFF])[\w\s\-+#&/().,'"’]*$/.test(e))return"Only letters, numbers and -.#+&/ allowed.";let t=(e.match(/\d/g)||[]).length;return!(t>2)||`${t-2} digits over limit.`})(e)}},ec={data_page_category:"job_details",data_page_component:"about_you"};var e_=a(90116),eu=a(70622);let ep="44",em=["PREMIUM_RATE"],eh={REQUIRED:"Phone number is required",INVALID:"Invalid phone number",BLOCKED_TYPE:"Premium rate numbers are not allowed"},ex=({value:e,dialCode:t=ep})=>{let a={valid:!1,value:e||"",message:""};if(!e)return{...a,message:eh.REQUIRED};try{let o=((e,t)=>{if(!e)return e;let a=e.trim();if(!t)return a;
1if(a.startsWith("+0"))return`+${t}${a.slice(2)}`;if(!a.startsWith("+")){let e=a.startsWith("0")?a.slice(1):a;return`+${t}${e}`}return a.replace(RegExp(`^(\\+${t})\\s*0\\s*`),"$1")})(e,t),n=(0,eu.L)(o);if(!n.isValid())return{...a,value:o,message:eh.INVALID};let r=n.getType();if(em.includes(r))return{...a,value:o,message:eh.BLOCKED_TYPE};return{...a,valid:!0,value:o}}catch{return{...a,message:eh.INVALID}}};(()=>{let e;return(t,a,o=50)=>(clearTimeout(e),e=setTimeout(()=>{a(ex("string"==typeof t?{value:t}:t))},o),()=>clearTimeout(e))})();let eA=()=>{let{state:{user:e}}=(0,r.useContext)(v.jR),{state:{userData:t}}=(0,r.useContext)(b.M);return(({user:e,userData:t={}})=>{let{forename:a="",surname:o="",contact:n,candidateJobPreference:r,currentJobTitle:s=""}=t||{},l=r?.locations?.home,i=n?.phone||"",{valid:d}=ex({value:i}),c=l?.countryName||"",_=l?.town||l?.name||"",u=l?.postCode||"",p=(0,et.NS)(c),m=l?.isPostCodeValid??l?.isPostcodeValid,h=p&&!1===m;return{forename:a,surname:o,currentJobTitle:s,email:e?.[e_.P.EMAIL]||"",phone:i,country:c,town:_,postCode:u,isPhoneValid:d,isPostCodeValid:m,hasInvalidPostCode:h,hasInvalidAboutYou:!d||h,isCandidateInUk:p,locationDisplay:(({country:e,town:t})=>e&&t?`${e}, ${t}`:e||t||"")({country:c,town:_}),formDefaultValues:(({forename:e,surname:t,currentJobTitle:a,phone:o,country:n,town:r,postCode:s})=>{let l=(0,et.NS)(n);return{[el.FORENAME]:e,[el.SURNAME]:t,[el.JOB_TITLE]:a,[el.PHONE]:o,[el.COUNTRY]:n,[el.TOWN]:l?"":r,[el.POSTCODE]:l?s:""}})({forename:a,surname:o,currentJobTitle:s,phone:i,country:c,town:_,postCode:u}),buildCandidateJobPreferencePayload:e=>(({candidateJobPreference:e,data:t})=>{let a=(0,et.NS)(t[el.COUNTRY]),o=t[el.TOWN],n=a?t[el.POSTCODE]:"";return{...e,locations:{...e?.locations,home:{...e?.locations?.home,countryName:t[el.COUNTRY],name:a?n:o,town:o,postCode:n}}}})({candidateJobPreference:r,data:e})}})({user:e,userData:t})};var eC=a(48947),ef=a.n(eC),ev=a(72034);let eb=({locationError:e})=>{let{register:t,getValues:a,setValue:n,watch:s,formState:{errors:l}}=(0,q.xW)(),{state:{user:i,config:{bffUrl:d,projectName:c},logger:_},dispatch:u}=(0,r.useContext)(v.jR),p=`LocationField component in the ${c}`,[m,h]=(0,r.useState)(!1),[x,A]=(0,r.useState)(!1),[C,f]=(0,r.useState)([]),[b,j]=(0,r.useState)(""),[g,N]=(0,r.useState)(""),O=(0,r.useRef)(),E=(0,r.useRef)(),R=t(el.COUNTRY,{validate:{validateSelectedCountry:e=>er(e)||"Please select a country."}}),S=t(el.POSTCODE,{validate:e=>{let t=a(el.COUNTRY);if(null!==e&&""!==e)return/^[A-Z]{1,2}\d{1,2}\w{0,2}\s*\w{0,3}$/i.test(e)||"Please enter a valid postcode.";return"United Kingdom"!==t||er(e)||"Please enter your postcode."}}),w=t(el.TOWN,{validate:{isTownSelected:e=>{let t=a(el.COUNTRY);return!!(0,et.NS)(t)||er(e)||"Please enter your town."}}}),[D,B,I]=s([S.name,w.name,R.name]),[V,W]=a([S.name,w.name]),G=(0,et.NS)(I),Y=(0,r.useCallback)((e,t,a)=>((e,t,a)=>{let o=(0,J.A)({term:a});return(0,y.AL)({url:`${e.public}location/suggest/postcode/anonymous/${o}`,authHeader:t})})(t,a,e),[]),F=(0,r.useCallback)((e,t,a)=>((e,t,a)=>{let o=(0,J.A)({term:a.term,country:a.country});return(0,y.AL)({url:`${e.public}location/suggest/town/anonymous${o}`,authHeader:t})})(t,a,{term:e,country:I}),[I]),[H,Q]=X({fetchService:Y,value:G?g:"",nameForLogger:"getPostcodeSuggestions - LocationField",customMapper:e=>(e||[]).map(e=>e.key||e)}),[Z,z]=X({fetchService:F,value:G?"":b,nameForLogger:"getTownSuggestions - LocationField"}),K=(e,t,a)=>{n(t,e),a([])},ee=async()=>{A(!0);try{let e=await (0,L.A)(i,u),{message:t,errorCode:a,errors:o,hasError:n,result:r}=await (0,y.AL)({url:`${d.public}location/countries/anonymous/`,authHeader:e});n?_.error((0,T.NO)(t,a,o),{page_name:`getCountries - ${p}`}):f(r)}finally{A(!1)}};return(0,r.useEffect)(()=>{m&&0===C.length&&ee()},[m]),(0,o.jsxs)(ev.A,{className:ef().form__location,children:[(0,o.jsxs)("div",{className:ef().form__locationHeader,children:[(0,o.jsx)("h4",{children:"Your current location"}),(0,o.jsx)("button",{type:"button",className:ef().form__locationEditBtn,"data-qa":"about-you-location-edit-btn",onClick:()=>h(!m),children:"Edit"})]}),m?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(k.A,{className:ef().form__country,children:[(0,o.jsx)($,{htmlFor:R.name,children:"Country"}
1),(0,o.jsxs)(P.l6,{id:R.name,name:R.name,invalid:!!l[el.COUNTRY],"aria-invalid":!!l[el.COUNTRY],innerRef:e=>R.ref(e),onChange:e=>{let t=e.target.value,a=(0,et.NS)(I),o=(0,et.NS)(t);R.onChange(e),a&&!o?(n(el.POSTCODE,""),N(""),Q([])):!a&&o&&(n(el.TOWN,""),j(""),z([]))},onBlur:R.onBlur,disabled:x,value:I||"",children:[(0,o.jsx)("option",{value:"",children:x?"Loading countries...":"Select a country"}),C.map(e=>(0,o.jsx)("option",{value:e,children:e},e))]}),l[el.COUNTRY]&&(0,o.jsx)(U.A,{invalid:!0,children:l[el.COUNTRY].message})]}),G?(0,o.jsxs)(k.A,{children:[(0,o.jsx)($,{htmlFor:S.name,children:"Postcode"}),(0,o.jsxs)("div",{className:"position-relative",children:[(0,o.jsx)(P.pd,{id:S.name,name:S.name,invalid:!!l[el.POSTCODE],"aria-invalid":!!l[el.POSTCODE],innerRef:e=>{S.ref(e),E.current=e},onChange:e=>{N(e.target.value),S.onChange(e)},onBlur:S.onBlur,autoComplete:"off"}),(0,o.jsx)(M.A,{searchTerm:D||"",inputRef:E,suggestions:H,selectSuggestion:e=>{K(e,S.name,Q),N("")}})]}),l[el.POSTCODE]&&(0,o.jsx)(U.A,{invalid:!0,children:l[el.POSTCODE].message})]}):(0,o.jsxs)(k.A,{children:[(0,o.jsx)($,{htmlFor:w.name,children:"Town"}),(0,o.jsxs)("div",{className:"position-relative",children:[(0,o.jsx)(P.pd,{id:w.name,name:w.name,invalid:!!l[el.TOWN],"aria-invalid":!!l[el.TOWN],innerRef:e=>{w.ref(e),O.current=e},onChange:e=>{j(e.target.value),w.onChange(e)},onBlur:w.onBlur,autoComplete:"off"}),(0,o.jsx)(M.A,{searchTerm:B||"",inputRef:O,suggestions:Z,selectSuggestion:e=>{K(e,w.name,z),j("")}})]}),l[el.TOWN]&&(0,o.jsx)(U.A,{invalid:!0,children:l[el.TOWN].message})]})]}):(0,o.jsx)("div",{children:(0,o.jsx)("p",{className:ef().form__staticText,children:V||W})}),e&&(0,o.jsx)(U.A,{invalid:!0,children:e})]})};var ej=a(34185);let eg=({fieldName:e})=>{let{control:t,setError:a,clearErrors:n,formState:{errors:s}}=(0,q.xW)(),l=(0,r.useRef)(!0),i=(0,r.useRef)(null),d=(e,t,{valid:o,message:r},s)=>{l.current=o,i.current=o?null:r,o?n(e):a(e,{type:"manual",message:r}),s(t)};return(0,o.jsxs)(k.A,{className:ef().form__field,children:[(0,o.jsx)($,{htmlFor:e,children:"Phone number"}),(0,o.jsx)(q.xI,{name:e,control:t,rules:{validate:()=>l.current||i.current},render:({field:t})=>(0,o.jsx)(ej.A,{id:e,value:t.value??"",name:t.name,invalid:!!s[e],innerRef:t.ref,inputProps:{autoComplete:"off","data-qa":t.name},onChangeCallback:({value:e,valid:a,message:o})=>d(t.name,e,{valid:a,message:o},t.onChange),onBlurCallback:({value:e,valid:a,message:o})=>{d(t.name,e,{valid:a,message:o},t.onChange),t.onBlur()}})}),s[e]&&(0,o.jsx)(U.A,{invalid:!0,children:s[e].message})]})},{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_RESET_OVERLAY_MODAL:ey}}=A.A,{USER_DATA:{UPDATE_USER_DATA:eN}}=A.A,eO=({hideModal:e})=>{let[t,a]=(0,r.useState)(!1),[n,i]=(0,r.useState)(""),d=(0,r.useRef)(),{state:{logger:c,user:_,config:{bffUrl:u,projectName:p}},dispatch:m}=(0,r.useContext)(v.jR),{dispatch:x}=(0,r.useContext)(b.M),A=(0,Y.A)(),{email:C,formDefaultValues:j,hasInvalidPostCode:g}=eA(),[N,O]=(0,r.useState)(g?h.qT:null),{dispatch:E}=(0,r.useContext)(f.W),R=(0,q.mN)({defaultValues:j}),{register:S,handleSubmit:w,setValue:V,watch:W,formState:{errors:G}}=R,Q=S(el.FORENAME,{required:"Please enter your first name.",maxLength:es(50,"First name"),validate:ei}),Z=S(el.SURNAME,{required:"Please enter your last name.",maxLength:es(50,"Last name"),validate:ei}),z=S(el.JOB_TITLE,ed),K=W(z.name),[eo,en]=X({fetchService:(0,r.useCallback)((e,t)=>(0,H.z)(t,e),[]),value:n,nameForLogger:"fetchKeywordSuggestions - AboutYouModal",customMapper:e=>(e||[]).map(e=>(0,ee.nx)(e)),includeAuthHeaders:!1}),er=async(e,t)=>{let{town:a,country:o}=e,{hasError:n,result:r}=(0,et.NS)(o)?await ((e,t,a)=>{let o=(0,J.A)({postcode:a});return(0,y.AL)({url:`${e.public}location/validation/home/postcode${o}`,authHeader:t})})(u,t,e.postcode):await ((e,t,a)=>{let o=(0,J.A)({town:a.town,country:a.country});return(0,y.AL)({url:`${e.public}location/validation/home/town${o}`,authHeader:t})})(u,t,{country:o,town:a});return r?.isValid?null:n?"Error validating address.":h.qT},e_=async e=>{O(null),a(!0);try{var t;let a=await (0,L.A)(_,m),o=await er({postcode:e[el.POSTCODE],country:e[el.COUNTRY],town:e[el.TOWN]},a);if(o)return void O(o);let{hasError:n,message:r,errorCode:s,errors:l}=await (0,F.r)({bffUrl:u,authHeaders:a,profileData:{aboutYou:{...e,currentJobTitle:e.jobTitle}}});if(n)return void c.error((0,T.NO)(r,s,l),{page_name:`onSubmit - AboutYouModal component in the ${p}`});let{hasError:i,message:d,errorCode:h,errors:C,result:f}=await (0,F.A)(u,a);if(i)return void c.error((0,T.NO)(d,h,C),{page_name:`getProfile - onSubmit - AboutYouModal component in the ${p}`});E({type:ey});let{cvName:v,eligibleToWork:b,candidateContactPreference:g,coverLetter:y,skills:N,workEligibility:R,forename:S,surname:w,contact:D,candidateJobPreference:B,currentJobTitle:k}=f||{};x({type:eN,payload:{forename:S,surname:w,contact:D,candidateJobPreference:B,eligibleToWork:b,cvName:v,candidateContactPreference:g,coverLetterText:y?.text,skills:N,workEligibility:R,currentJobTitle:k}}),t=(({defaultValues:e,data:t})=>[{name:"first_name",fields:[el.FORENAME]},{name:"surname",fields:[el.SURNAME]},{name:"job_title",fields:[el.JOB_TITLE]},{name:"phone",fields:[el.PHONE]},{name:"location",fields:[el.COUNTRY,el.TOWN,el.POSTCODE]}].filter(({fields:a})=>a.some(a=>(e?.[a]||"")!==(t?.[a]||""))).map(({name:e})=>e).join(", "))({defaultValues:j,data:e}),(0,ea.dO)({...ec,event:"gtmApplicationProfileSave",data_element:"save",data_element_action:t}),A("success","Profile updated")}catch(e){c.error(`Unexpected error in onSubmit - AboutYouModal component in the ${p}`,e),A("error","Error updating the profile")}finally{a(!1)}};return(0,o.jsxs)(s.A,{show:!0,onClose:e,"data-qa":"about-you-modal",children:[(0,o.jsx)(D.A,{closeButton:!0,children:(0,o.jsx)("h3",{children:"About you"})}),(0,o.jsx)(l.A,{children:(0,o.jsx)(q.Op,{...R,children:(0,o.jsxs)(B.A,{className:ef().form,onSubmit:w(e_),children:[(0,o.jsxs)(k.A,{className:ef().form__nameRow,children:[(0,o.jsxs)("div",{className:ef().form__nameField,children:[(0,o.jsx)($,{htmlFor:Q.name,children:"First name"}
1),(0,o.jsx)(P.pd,{id:Q.name,"data-qa":Q.name,invalid:!!G[el.FORENAME],"aria-invalid":!!G[el.FORENAME],innerRef:Q.ref,name:Q.name,onChange:Q.onChange,onBlur:Q.onBlur}),G[el.FORENAME]&&(0,o.jsx)(U.A,{invalid:!0,children:G[el.FORENAME].message})]}),(0,o.jsxs)("div",{className:ef().form__nameField,children:[(0,o.jsx)($,{htmlFor:Z.name,children:"Surname"}),(0,o.jsx)(P.pd,{id:Z.name,"data-qa":Z.name,invalid:!!G[el.SURNAME],"aria-invalid":!!G[el.SURNAME],innerRef:Z.ref,name:Z.name,onChange:Z.onChange,onBlur:Z.onBlur}),G[el.SURNAME]&&(0,o.jsx)(U.A,{invalid:!0,children:G[el.SURNAME].message})]})]}),(0,o.jsxs)(k.A,{className:ef().form__field,children:[(0,o.jsx)($,{htmlFor:z.name,children:"Current/previous job title"}),(0,o.jsxs)("div",{className:"position-relative",children:[(0,o.jsx)(P.pd,{id:z.name,"data-qa":z.name,invalid:!!G[el.JOB_TITLE],"aria-invalid":!!G[el.JOB_TITLE],innerRef:e=>{z.ref(e),d.current=e},name:z.name,onChange:e=>{i(e.target.value),z.onChange(e)},onBlur:z.onBlur,autoComplete:"off"}),(0,o.jsx)(M.A,{searchTerm:K||"",inputRef:d,suggestions:eo,selectSuggestion:e=>{V(z.name,e),en([]),i("")}})]}),G[el.JOB_TITLE]&&(0,o.jsx)(U.A,{invalid:!0,children:G[el.JOB_TITLE].message})]}),(0,o.jsxs)("div",{className:ef().form__field,children:[(0,o.jsx)("div",{className:ef().form__label,children:"Email"}),(0,o.jsx)("p",{className:ef().form__staticText,children:C})]}),(0,o.jsx)(eg,{fieldName:el.PHONE}),(0,o.jsx)(eb,{locationError:N}),(0,o.jsxs)("div",{className:ef().form__buttonGroup,children:[(0,o.jsx)(I.A,{className:ef().form__button,color:"secondary","data-qa":"about-you-cancel-btn",onClick:()=>{E({type:ey})},children:"Cancel"}),(0,o.jsx)(I.A,{className:ef().form__button,color:"primary","data-qa":"about-you-save-btn",disabled:t,type:"submit",children:"Save"})]})]})})})]})};var eE=a(15039),eL=a.n(eE),eT=a(41798),eR=a.n(eT);let eS=({handleOnClose:e})=>(0,o.jsxs)(s.A,{show:!0,onClose:e,"data-qa":"application-unsuccessful-modal",children:[(0,o.jsx)(D.A,{className:eR().modal__header,closeButton:!0,children:(0,o.jsx)("h3",{children:"Not eligible for this role"})}),(0,o.jsxs)(l.A,{className:eR().modal__body,children:[(0,o.jsx)("p",{"data-qa":"application-unsuccessful-modal-message",children:"Based on your profile, you don't currently meet this employer'
1s work authorisation requirements."}),(0,o.jsx)("span",{className:eL()(eR().button__wrapper,eR().rightButton),children:(0,o.jsx)(I.A,{color:"primary",className:eR().button,onClick:e,children:"Close"})})]})]});var ew=a(56005),eD=a(43444),eB=a(88896),ek=a(23019),eP=a(18229),eU=a(95782),eM=a.n(eU);let{ERROR_MESSAGE_OBJECT_CV:eI}=h.xY,eq=({errMessagesArr:e=[],errorObject:t,isCvUpdated:a,className:n})=>{let r=({color:e,header:t,message:a,children:r,id:s})=>(0,o.jsxs)(ek.A,{className:eL()(eM().alert,n),color:e,iconPosition:"top",fade:!1,id:s,children:[t&&(0,o.jsx)("div",{children:(0,o.jsx)("b",{className:eM().message__header,children:t})}),a,r]});return(0,eP.EI)(e)?r({color:"danger",header:eI.header,children:(0,T.p_)({messageArr:e}),id:"upload_cv_not_successful"}):t?r({color:"danger",header:t.header,message:t.message}):a?r({color:"success",header:"CV Uploaded"}):null};var eV=a(41501),eW=a(83932);let eG=(e,t)=>({title:t||((e="")=>e?e.charAt(0).toUpperCase()+e.slice(1):"")(e),svgId:`svg-${e}`,svgIdSelector:`#svg-${e}`});var e$=a(27668),eY=a.n(e$);let{title:eF,svgId:eJ}=eG("letter"),eH=({size:e,className:t})=>{let a=eL()({[eY().icon_sm]:"sm"===e,[eY().icon_lg]:"lg"===e},t);return(0,o.jsxs)("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"11","aria-labelledby":eJ,className:a,viewBox:"0 0 14 11",fill:"none",children:[(0,o.jsx)("title",{id:eJ,children:eF}),(0,o.jsx)("path",{d:"M1.33333 10.6667C0.966667 10.6667 0.652889 10.5362 0.392 10.2753C0.130667 10.014 0 9.7 0 9.33333V1.33333C0 0.966667 0.130667 0.652889 0.392 0.392C0.652889 0.130667 0.966667 0 1.33333 0H12C12.3667 0 12.6807 0.130667 12.942 0.392C13.2029 0.652889 13.3333 0.966667 13.3333 1.33333V9.33333C13.3333 9.7 13.2029 10.014 12.942 10.2753C12.6807 10.5362 12.3667 10.6667 12 10.6667H1.33333ZM12 2.66667L7.01667 5.78333C6.96111 5.81667 6.90267 5.84156 6.84133 5.858C6.78044 5.87489 6.72222 5.88333 6.66667 5.88333C6.61111 5.88333 6.55289 5.87489 6.492 5.858C6.43067 5.84156 6.37222 5.81667 6.31667 5.78333L1.33333 2.66667V9.33333H12V2.66667ZM6.66667 4.66667L12 1.33333H1.33333L6.66667 4.66667ZM1.33333 2.83333V1.85V1.86667V1.858V2.83333Z",fill:"currentColor"})]})},{title:eQ,svgId:eZ}=eG("phone"),ez=({size:e,className:t})=>{let a=eL()({[eY().icon_sm]:"sm"===e,[eY().icon_lg]:"lg"===e},t);return(0,o.jsxs)("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:a,"aria-labelledby":eZ,xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{id:eZ,children:eQ}),(0,o.jsx)("path",{d:"M11.3 12C9.86667 12 8.46956 11.6804 7.10867 11.0413C5.74733 10.4027 4.54178 9.55822 3.492 8.508C2.44178 7.45822 1.59733 6.25267 0.958667 4.89133C0.3195
156 3.53044 0 2.13333 0 0.7C0 0.5 0.0666666 0.333333 0.2 0.2C0.333333 0.0666666 0.5 0 0.7 0H3.4C3.55556 0 3.69444 0.0499999 3.81667 0.15C3.93889 0.25 4.01111 0.377778 4.03333 0.533333L4.46667 2.86667C4.48889 3.02222 4.48622 3.16378 4.45867 3.29133C4.43067 3.41933 4.36667 3.53333 4.26667 3.63333L2.65 5.26667C3.11667 6.06667 3.70289 6.81667 4.40867 7.51667C5.114 8.21667 5.88889 8.82222 6.73333 9.33333L8.3 7.76667C8.4 7.66667 8.53067 7.59156 8.692 7.54133C8.85289 7.49156 9.01111 7.47778 9.16667 7.5L11.4667 7.96667C11.6222 8 11.75 8.07489 11.85 8.19133C11.95 8.30822 12 8.44444 12 8.6V11.3C12 11.5 11.9333 11.6667 11.8 11.8C11.6667 11.9333 11.5 12 11.3 12ZM2.01667 4L3.11667 2.9L2.83333 1.33333H1.35C1.40556 1.78889 1.48333 2.23889 1.58333 2.68333C1.68333 3.12778 1.82778 3.56667 2.01667 4ZM10.6667 10.6333V9.16667L9.1 8.85L7.98333 9.96667C8.41667 10.1556 8.85844 10.3056 9.30867 10.4167C9.75844 10.5278 10.2111 10.6 10.6667 10.6333Z",fill:"currentColor"})]})};var eK=a(14634),eX=a.n(eK);let{ABOUT_YOU_MODAL:e0}=p.O,{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_SET_OVERLAY_MODAL:e3}}=A.A,e1=()=>{let{dispatch:e}=(0,r.useContext)(f.W),{forename:t,surname:a,currentJobTitle:n,email:s,phone:l,locationDisplay:i,hasInvalidAboutYou:d}=eA(),c=[{icon:eH,value:s,key:"email"},{icon:ez,value:l,key:"phone"},{icon:eW.A,value:i,key:"location"}].filter(({value:e})=>e);return(0,o.jsxs)(ev.A,{className:eL()(eX().card,{[eX().card__invalid]:d}),children:[(0,o.jsxs)("div",{className:eX().card__header,children:[(0,o.jsx)("h4",{className:eX().card__title,children:"About you"}),(0,o.jsx)(I.A,{color:"link","data-qa":"about-you-edit-btn",onClick:()=>{(0,ea.dO)({...ec,event:"gtmApplicationProfileEdit",data_element:"edit"}),e({type:e3,payload:e0})},children:"Edit"})]}),(0,o.jsxs)("ul",{className:eX().card__list,children:[(0,o.jsxs)("li",{className:eX().card__list_intro,children:[(0,o.jsxs)("span",{className:eX().card__list_name,children:[t," ",a]}),(0,o.jsx)("span",{className:eX().card__list_title,children:n})]}),c.map(({icon:e,value:t,key:a})=>(0,o.jsxs)("li",{className:eX().card__list_item,children:[(0,o.jsx)(e,{"aria-hidden":"true"}),t]},a))]})]})};var e6=a(16280),e7=a(60055),e2=a.n(e7);let e5=({isRequired:e})=>{let{state:{applicationData:{coverLetterText:t},fieldErrors:{coverLetterText:a}},dispatch:n}=(0,r.useContext)(f.W),{state:{userData:{coverLetterText:s}}}=(0,r.useContext)(b.M),{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_UPDATE_APPLICATION_DATA:l,APPLY_JOB_MODAL_ADD_FIELD_ERRORS:i}}=A.A,[d,c]=(0,r.useState)(e||t),_=e=>{n({type:l,payload:{coverLetterText:e}}),a&&n({type:i,payload:{coverLetterText:null}})};return(0,o.jsxs)(ev.A,{className:e2().card,children:[(0,o.jsxs)("div",{className:e2().wrapper,children:[(0,o.jsxs)("span",{children:[(0,o.jsx)("b",{className:e2().title,children:"Cover letter"}),e?(0,o.jsx)("span",{className:e2().titleRequired,children:"*"}):(0,o.jsx)("span",{children:"(optional)"})]}),!d&&(0,o.jsx)(I.A,{className:e2().buttonAdd,color:"link",onClick:()=>c(!0),children:"Add"})]}),d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(P.TM,{className:e2().coverLetterText,invalid:a,"aria-invalid":!!a,value:t,onChange:e=>_(e.target.value),name:"coverLetterText"}),(0,o.jsx)(e6.A,{value:t,maxLength:8e3,customError:a,onUpdate:({errorMessage:e})=>{n({type:i,payload:{coverLetterText:e}})},className:e2().counter,hasNewStyle:!0}),s&&(0,o.jsx)(I.A,{className:e2().buttonCopy,color:"link",onClick:()=>_(s),children:"Copy from profile"})]})]})},e8=()=>(0,o.jsx)("svg",{width:"15",height:"19",viewBox:"0 0 15 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5458 6.80964C14.4667 6.73047 14.4667 6.6513 14.3875 6.57214L8.84583 1.03047C8.76667 0.951302 8.6875 0.872135 8.60833 0.872135C8.52917 0.792969 8.37083 0.792969 8.29167 0.792969H2.75C1.40417 0.792969 0.375 1.82214 0.375 3.16797V15.8346C0.375 17.1805 1.40417 18.2096 2.75 18.2096H12.25C13.5958 18.2096 14.625 17.1805 14.625 15.8346V7.1263C14.625 7.04713 14.625 6.8888 14.5458 6.80964ZM9.08203 3.48438L11.932 6.33438H9.08203V3.48438ZM12.2487 16.625H2.7487C2.2737 16.625 1.95703 16.3083 1.95703 15.8333V3.16667C1.95703 2.69167 2.2737 2.375 2.7487 2.375H7.4987V7.125C7.4987 7.6 7.81536 7.91667 8.29036 7.91667H13.0404V15.8333C13.0404 16.3083 12.7237 16.625 12.2487 16.625Z",fill:"#0F151A"})});var e4=a(52993),e9=a(18878),te=a.n(e9);let{CV_DATA:tt,APPLY_JOB_MODAL:{APPLY_JOB_MODAL_REQUEST_CV:ta,APPLY_JOB_MODAL_REQUEST_CV_SUCCESS:to,APPLY_JOB_MODAL_REQUEST_CV_FAILURE:tn}}
1=A.A,tr=({isUpdatingCV:e=!1,handleUpdateCvClick:t=()=>{}})=>{let{state:{cvData:{isLoaded:a,fileName:n,uploadedOn:s}},dispatch:l}=(0,r.useContext)(b.M),{state:{user:i,logger:d,config:{bffUrl:c}},dispatch:_}=(0,r.useContext)(v.jR),{state:{isLoadingCV:u},dispatch:p}=(0,r.useContext)(f.W),m=`CurrentCV component in the ${eD.$W?.projectName}`;if((0,r.useEffect)(()=>{let e=async()=>{if(!a){p({type:ta});let e=await (0,L.A)(i,_),{message:t,errorCode:a,errors:o,hasError:n,result:r}=await O(e,c),s=`getLastValidCV - getData - ${m}`;if(n){d.error((0,T.NO)(t,a,o),{page_name:s}),p({type:tn,payload:{message:h.X5}});return}if(r?.fileStatus!==g.As.COMPLETED_GOOD){d.error(`CV is in status: ${r?.fileStatus}`,{page_name:s}),p({type:tn,payload:{message:h.X5}});return}l({type:tt.UPDATE_CV_DATA,payload:r}),p({type:to})}};a||e()},[]),!u&&!e&&!a)return null;let x=(0,ee.W5)(n,21,8),A=(0,ee.W5)(n,43,8);return(0,o.jsx)(ev.A,{className:te().card,children:e||u?(0,o.jsxs)("div",{className:te().loader,children:[(0,o.jsx)("span",{className:eL()(["spinner-border spinner-border-sm",te().spinner]),role:"status","aria-hidden":"true"}),`CV ${e?"processing":"loading"}...`]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:te().wrapper,children:[(0,o.jsxs)("div",{className:te().cvContainer,children:[(0,o.jsx)("div",{className:te().iconContainer,children:(0,o.jsx)(e8,{})}),(0,o.jsx)("b",{className:eL()(te().cvContainer__cvName,te().cvContainer__cvName_mobile),"data-qa":"cv-name-card",children:x}),(0,o.jsx)("b",{className:eL()(te().cvContainer__cvName,te().cvContainer__cvName_desktop),children:A})]}),(0,o.jsx)(I.A,{color:"link",type:"button",className:te().button,"data-qa":"UpdateCvBtn",onClick:()=>t(),children:"Update"})]}),!!s&&(0,o.jsxs)("p",{className:te().date,children:["Added ",(0,e4.Hn)(s)]})]})})};var ts=a(29642),tl=a.n(ts),ti=a(46303),td=a.n(ti);let tc=()=>{let{state:{modal:{modalData:{ouName:e,jobTitle:t}}}}=(0,r.useContext)(b.M);return(0,o.jsxs)(ev.A,{className:td().card,children:[(0,o.jsx)("span",{className:td().jobTitle,children:t}),(0,o.jsx)("span",{children:e})]})};var t_=a(55287),tu=a(11285),tp=a.n(tu);let tm=({visibleQuestions:e=[],handleStepBack:t})=>{let[a,n]=(0,r.useState)(!1),s=e.length;return(0,o.jsxs)(ev.A,{className:tp().card,children:[(0,o.jsxs)("div",{className:tp().heading,children:[(0,o.jsxs)("div",{children:["Application questions",(0,o.jsxs)("span",{children:[s," answer",s>1&&"s"]})]}),a?(0,o.jsx)(I.A,{color:"link",className:tp().heading__button,onClick:t,children:"Edit"}):(0,o.jsx)(I.A,{color:"link","aria-label":"Show questions","data-qa":"show-questions-button",className:tp().heading__button,onClick:()=>n(!a),children:(0,o.jsx)(t_.A,{})})]}),a&&(0,o.jsx)("ul",{className:tp().questionsList,children:e.map(({text:e,title:t,readableAnswer:a})=>(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:e||t}}),(0,o.jsx)("span",{className:tp().questionsAnswer,children:a})]},e||t))})]})};var th=a(19333),tx=a(68072),tA=a(73554),tC=a(59186),tf=a(66663);let{APPLICATION_CONFIRMATION_DATA:tv}=m.A,tb=()=>{let{updateCookie:e}=(0,j.A)(tv),{query:t}=(0,n.useRouter)();return{handleRedirectToSearch:(0,r.useCallback)(async({redirectUrl:a,jobId:o,jobTitle:n,locationName:r,ouName:s})=>{let l=(0,tf.U7)({query:t,jobTitle:n,locationName:r,jobId:o});(0,tC.nQ)(e,{isPushGtmOnJD:!0,redirectUrl:a,attbServiceTrackingId:t?.attb_cid,jobData:{jobTitle:n,jobRecruiterName:s}}),window.location.assign(l)},[t,e])}};var tj=a(6745),tg=a(10022),ty=a(9653);let tN=async(e,t,a)=>(0,y.AL)({url:`${e.public}application/`,method:"POST",authHeader:t,data:a});var tO=a(26380);let{WAITING_MODAL:tE}=p.O,{SEARCH:{RESULTS:{RESULTS_JOB_UPDATE:tL}},SHORTLIST:{SHORTLIST_REMOVE:tT},APPLY_JOB_MODAL:{APPLY_JOB_MODAL_ADD_ERROR_OBJECT:tR,APPLY_JOB_MODAL_ADD_FIELD_ERRORS:tS,APPLY_JOB_MODAL_SET_OVERLAY_MODAL:tw,APPLY_JOB_MODAL_RESET_OVERLAY_MODAL:tD,APPLY_JOB_MODAL_RESET_OVERLAY_AND_NEXT_STEP:tB},JOB_DETAILS:{JOB_DETAILS_APPLIED:tk}}=A.A,{APPLICATION:{APPLICATION_COVER_LETTER_REQUIRED:tP}}=h.UU,tU={mandatory:2},tM=({metricsData:e})=>{let{state:{user:t,logger:a,config:{bffUrl:s}},dispatch:l}=(0,r.useContext)(v.jR),{state:{errorObject:i,isLoadingCV:d,isCvUpdating:c,applicationData:{coverLetterText:_,screeningAnswers:u},fieldErrors:p,isEasyApplyFlow:m},dispatch:h}=(0,r.useContext)(f.W),{state:{modal:{modalData:{jobDataLayer:A,jobId:C,jobTitle:j,isInSavedJobsList:g,coverLetterPreferenceId:y,isRedirect:N,ouName:O,jobScreeningQuestions:E,jobScreeningQuestionsV2:T,jobScreeningQuestionsV3:R,countryName:D,jobApplicationEligibilityRequirement:B}},shortlistedJobs:{topSavedJobs:k},cvData:{isLoaded:P,cvUuid:U},userData:{workEligibility:M,candidateJobPreference:q}},dispatch:V}=(0,r.useContext)(b.M),W=(0,r.useContext)(tx.P),G=(0,r.useContext)(tA.o),{handleRedirectToSearch:$}=tb(),Y=(()=>{let{state:{common:{dataPageCategory:e}}}=(0,r.useContext)(b.M),{query:t}=(0,n.useRouter)();return t[ty.Ay.SOURCE]||(e===tj.A.JOB_DETAILS?tg.A.JOB_DETAILS:tg.A.SEARCH_RESULTS)})(),{isFeatureEnabled:F}=(0,S.A)(),{processExtendedJobMetricsEvent:J,processPostJobMetrics:H}=(0,eB.A)(),{isUbioQuestions:Q,isReedQuestions:Z,isKomboQuestions:z,notReedQuestions:K}=(0,eV.kf)({jobScreeningQuestions:E,jobScreeningQuestionsV2:T,jobScreeningQuestionsV3:R}),{hasInvalidAboutYou:X}=eA(),ee=Object.entries(p||{}).some(e=>e[1]),eo=y===tU.mandatory,en=`SubmitButton component in the ${eD.$W?.projectName}`,{isCandidateBasedInUk:er,isJobBasedInUk:es}=(0,w.s0)({candidateJobPreference:q,countryName:D}
1),el=F(x.$v.JET_4741_OU_APPLICATION_BLOCKING),ei=(0,w.DI)({jobApplicationEligibilityRequirement:B,workEligibility:M,isCandidateBasedInUk:er,isJobBasedInUk:es,isOuApplicationBlockingFeatureEnabled:el}),ed=async t=>{let a=t?.redirectUrl,o=t?.confirmationEventModel,n=()=>{o&&(o.event="doneWithAbstractionLayer",(0,ea.dO)({...A,...o}))};if(m&&await H({event:a?"ApplyingExternal":"ApplyingInternal",...e}),await J(th.A.JOB_SUCCESSFUL_APPLICATION,{jobId:C,jobEasyApplyStatus:o?.jobEasyApplyStatus}),W){let{state:{consolidatedJobDetails:{jobDetails:{jobLocation:e}}}}=W;if(!a){n(),$({redirectUrl:a,jobId:C,locationName:e?.locationName,jobTitle:j,ouName:O});return}W.dispatch({type:tk,payload:a})}h({type:tB,payload:{redirectUrl:a}}),g&&V({type:tT,payload:k.filter(e=>e.id!==C)});let r=G?.state?.search?.results;r&&G.dispatch({type:tL,payload:(0,tO.YZ)({id:C,updates:{hasApplied:!0,isInSavedJobsList:!1},allJobs:r})}),n()},ec=async()=>{if(!(!ee&&(!eo||_||(h({type:tS,payload:{coverLetterText:tP}}),0))))return;let e=(0,eV.Is)({isUbioQuestions:Q,isReedQuestions:Z,isKomboQuestions:z,notReedQuestions:K,screeningAnswers:u});(0,ea.dO)({event:"gtmSearchResultsSendApplication",data_page_component:m?"easy_apply_modal":"job_drawer",data_element:"submit_application",eligibilityMessage:(0,w.NF)(ei)}),h({type:tw,payload:tE});let o=await (0,L.A)(t,l),n={jobId:C,coverLetterText:_||null,cvUuid:U,source:Y,...e},{hasError:r,errors:i,message:d,result:c}=await tN(s,o,n);if(r)return void((e,t)=>{let{errorName:o,customErrorMessage:n,disableApply:r}=(0,et.lt)(e,t);h({type:tD}),a.error(o,{page_name:`handleSubmitApplication() - postApplication - ${en}`}),h({type:tR,payload:{disableApply:r,message:n}})})(i?.errorCodes||[],d);await ed(c)};return(0,o.jsx)(I.A,{disabled:d||c||!P||ee||X||i?.disableApply,className:tl().buttonGroup__button,color:"primary",onClick:ec,"data-qa":"submit-application-btn",children:N?"Continue":"Submit application"})},{UPDATE_CV_MODAL:tI}=p.O,{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_RESET_ERROR_OBJECT:tq,APPLY_JOB_MODAL_SET_OVERLAY_MODAL:tV,APPLY_JOB_MODAL_UPDATE_CV_STATUS:tW,APPLY_JOB_MODAL_PREV_STEP:tG}}=A.A,t$={optional:1,mandatory:2},tY=({metricsData:e})=>{let{hasInvalidAboutYou:t}=eA(),{state:{errorObject:a,isLoadingCV:n,isCvUpdated:s,isCvUpdating:l,applicationData:{screeningAnswers:i},hasPreviousStep:d,isEasyApplyFlow:c},dispatch:_}=(0,r.useContext)(f.W),{state:{modal:{modalData:{coverLetterPreferenceId:u,jobScreeningQuestions:p,jobScreeningQuestionsV2:m,jobScreeningQuestionsV3:x}}}}=(0,r.useContext)(b.M),A=(0,eV.BV)({jobScreeningQuestions:p,jobScreeningQuestionsV2:m,jobScreeningQuestionsV3:x,screeningAnswers:i}),C=u===t$.mandatory,v=C||!c&&u===t$.optional,j=()=>{_({type:tG})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tc,{}),(0,o.jsx)(e1,{}),t&&(0,o.jsx)(U.A,{className:tl().aboutYouError,invalid:!0,"data-qa":"about-you-error-feedback",children:h.F7}),(0,o.jsx)(tr,{isUpdatingCV:l,handleUpdateCvClick:()=>{_({type:tW,payload:{isCvUpdated:!1}}),_({type:tV,payload:tI}),_({type:tq})}}),v&&(0,o.jsx)(e5,{isRequired:C}),(0,o.jsx)(eq,{errorObject:a,isCvUpdated:s}),(0,eP.EI)(A)&&(0,o.jsx)(tm,{visibleQuestions:A,handleStepBack:j}),(0,o.jsx)("div",{className:tl().buttonGroup,children:(0,o.jsxs)("div",{className:tl().buttonGroup__mainWrapper,children:[d&&(0,o.jsx)(I.A,{disabled:n||l,className:eL()(tl().buttonGroup__button,tl().backBtn),"data-qa":"back-btn",color:"secondary",onClick:j,children:"Back"}),(0,o.jsx)(tM,{metricsData:e})]})})]})};var tF=a(22552),tJ=a(23465),tH=a(44841),tQ=a.n(tH);let{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_NEXT_STEP:tZ}}=A.A,{COLOR_NEUTRALS_10:tz}=tQ(),tK=()=>{let{state:{applicationData:{redirectUrl:e}},dispatch:t}=(0,r.useContext)(f.W),{state:{modal:{modalData:{jobId:a,jobTitle:n,ouName:s,customGtmPushExternalApplication:l}}}}=(0,r.useContext)(b.M),i=(0,r.useContext)(tx.P),{handleRedirectToSearch:d}=tb(),c=async()=>{if(l)l();else(0,ea.dO)({event:"gtmApplyExternally",jobTitle:n,jobId:a,data_page_component:"job_drawer",data_element:"apply_on_recruiter_website",data_element_action:"application_modal"});if(i){let{state:{consolidatedJobDetails:{jobDetails:{jobLocation:t}}}}=i;window.open(e,"_blank"),d({redirectUrl:e,jobId:a,locationName:t.locationName,jobTitle:n,ouName:s});return}t({type:tZ})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ev.A,{className:tQ().card,children:[(0,o.jsx)("div",{className:tQ().jobTitle,children:n}),(0,o.jsx)("div",{children:s})]}),(0,o.jsx)("div",{children:"To complete this application, we'll take you to the employer'
1s website."}),(0,o.jsx)("div",{className:tQ().buttonGroup,children:(0,o.jsx)("div",{className:tQ().buttonGroup__mainWrapper,children:(0,o.jsxs)(tF.A,{href:e,prefetch:!1,onClick:c,className:eL()(tQ().buttonGroup__button,tQ().externalApplyBtn,"btn btn-primary"),target:"_blank","data-qa":"external-apply-link",children:[(0,o.jsx)(tJ.A,{className:tQ().buttonIcon,color:tz}),(0,o.jsx)("span",{children:"Apply on external site"})]})})})]})};var tX=a(43706),t0=a(75671),t3=a.n(t0),t1=a(34035),t6=a.n(t1);let t7=({totalSteps:e,completedSteps:t})=>{let a=t/e*100;return(0,o.jsx)("div",{role:"progressbar","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100","data-qa":"progress-bar",className:t6().progress,children:(0,o.jsx)("div",{style:{width:`${a}%`},children:`${a}%`})})};var t2=a(27937);let t5=({register:e,fieldName:t,isRequired:a=!1})=>e(t,{...a&&{required:h.UU.SCREENING_QUESTIONS.QUESTION_IS_REQUIRED}}),t8=({register:e,fieldName:t,isRequired:a=!1})=>e(t,{...a&&{validate:et.Kf}}),t4=({register:e,fieldName:t,maxLength:a,isRequired:o=!1})=>e(t,{...o&&{validate:et.Kf},maxLength:a});var t9=a(31846),ae=a(96357),at=a.n(ae);let aa=({isRequired:e,fieldName:t})=>{let{register:a,formState:{errors:n}}=(0,q.xW)(),r=t5({register:a,fieldName:t,isRequired:e}),s=!!n?.[t];return t9.Lt.map(({text:e,value:a})=>{let n=`${t}.${e}`;return(0,o.jsx)(k.A,{className:at().radio,children:(0,o.jsxs)(V.A,{className:at().radio__label,htmlFor:n,inline:"true",children:[(0,o.jsx)(P.U6,{hasNewStyle:!0,value:a,id:n,"data-qa":e,invalid:s,"aria-invalid":s,name:r.name,onChange:r.onChange,innerRef:r.ref,className:at().radio__input}),e]})},n)})};var ao=a(33700),an=a.n(ao);let ar=({fieldId:e,optionValue:t,hasError:a,questionRegister:n,children:r})=>(0,o.jsx)(k.A,{variant:"checkbox",className:an().checkbox,children:(0,o.jsxs)(V.A,{htmlFor:e,variant:"checkbox",className:an().checkbox__label,children:[(0,o.jsx)(P.GL,{value:t,id:e,invalid:a,"aria-invalid":a,name:n.name,onChange:n.onChange,innerRef:n.ref}),r]})}),as=({fieldName:e,isRequired:t,jobScreeningQuestionOptions:a,optionIdName:n})=>{let{register:r,formState:{errors:s}}=(0,q.xW)(),l=t8({register:r,fieldName:e,isRequired:t}),i=!!s?.[e];return a.map(t=>{let a=t[n],r=`${e}.${a}`;return(0,o.jsx)(ar,{fieldId:r,optionValue:a,hasError:i,questionRegister:l,children:t?.name},r)})};var al=a(31036),ai=a.n(al);let ad=({fieldName:e,isRequired:t,title:a})=>{let{register:n,formState:{errors:r}}=(0,q.xW)(),s=t8({register:n,fieldName:e,isRequired:t}),l=!!r?.[e],i=`${e}.0`;return(0,o.jsx)(ar,{fieldId:i,optionValue:!0,hasError:l,questionRegister:s,children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:a},className:ai().checkboxText})})};var ac=a(44282);let a_=({isRequired:e,fieldName:t})=>{let{control:a,getValues:n,formState:{errors:r}}=(0,q.xW)(),s=!!r?.[t],l=eL()(at().datePicker,s&&at().datePicker__error),i=(({isRequired:e=!1})=>({...e&&{required:h.UU.SCREENING_QUESTIONS.QUESTION_IS_REQUIRED},valueAsDate:!0}))({isRequired:e});return(0,o.jsxs)(k.A,{children:[(0,o.jsx)(V.A,{className:eL()("visually-hidden",at().text__label),htmlFor:t,inline:"true",children:"Select a date"}),(0,o.jsx)(q.xI,{control:a,defaultValue:null,name:t,rules:i,render:({field:{onChange:e,ref:a}})=>(0,o.jsx)(ac.A,{id:t,chosenDateCallback:e,innerRef:a,className:l,date:n(t)||null,dayPlaceholder:"dd",monthPlaceholder:"mm",yearPlaceholder:"yyyy"})})]})};var au=a(16448),ap=a.n(au);let am=({children:e})=>(0,o.jsx)(U.A,{invalid:!0,className:ap().warning,children:e}),ah=({fieldName:e})=>{let{state:{screeningQuestionCurrentIndex:t}}=(0,r.useContext)(f.W),{state:{modal:{modalData:{jobScreeningQuestions:a}}}}=(0,r.useContext)(b.M),{register:n,formState:{errors:s}}=(0,q.xW)(),{text:l}=a[t],i=t5({register:n,fieldName:e,isRequired:!0}),d=l.trim(),c=d.endsWith("?")?d:`${d}?`,_=!!s?.[e];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{className:at().question,children:[c," ",(0,o.jsx)("span",{className:at().question__required,children:"*"})]}),t9.Lt.map(({text:t,value:a})=>{let n=`${e}.${t}`;return(0,o.jsx)(k.A,{className:at().radio,children:(0,o.jsxs)(V.A,{className:at().radio__label,htmlFor:n,inline:"true",children:[(0,o.jsx)(P.U6,{hasNewStyle:!0,value:a,id:n,"data-qa":t,invali
1d:_,"aria-invalid":_,name:i.name,onChange:i.onChange,innerRef:i.ref,className:at().radio__input}),t]})},n)}),s[e]?.message&&(0,o.jsx)(am,{children:s[e].message})]})};var ax=a(83881),aA=a(65633),aC=a(99446),af=a(99278),av=a(46332),ab=a.n(av);let aj=({fieldName:e,isRequired:t,jobScreeningQuestionOptions:a,optionIdName:n,modalContainerRef:s})=>{let{control:l}=(0,q.xW)(),i=(0,r.useRef)(null),d=(0,r.useRef)(null),c=(({isRequired:e=!1})=>({...e&&{required:h.UU.SCREENING_QUESTIONS.QUESTION_IS_REQUIRED}}))({isRequired:t}),_=(0,r.useCallback)(()=>{let e=d.current?.firstElementChild;return e&&"false"===e.getAttribute("aria-hidden")},[]),u=(0,r.useCallback)(()=>{if(!i.current||!d.current||!s)return;let{offsetTop:e,offsetHeight:t,offsetWidth:a}=i.current;d.current.style.top=`${e+t-s.scrollTop}px`,d.current.style.width=`${a}px`},[s]);return(0,r.useEffect)(()=>(window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}),[u]),(0,r.useEffect)(()=>{if(!s)return()=>{};let e=null,t=!1,a=()=>{t||(t=!0,e=requestAnimationFrame(()=>{_()&&i.current?.click(),t=!1}))};return s.addEventListener("scroll",a),()=>{s?.removeEventListener("scroll",a),e&&cancelAnimationFrame(e)}},[s,_]),(0,o.jsx)(k.A,{children:(0,o.jsx)(q.xI,{name:e,control:l,rules:c,render:({field:{value:t,onChange:r,ref:s}})=>{let l=a.find(e=>String(e[n])===String(t));return(0,o.jsxs)(ax.A,{"data-qa":"dropdown",id:e,innerRef:s,className:ab().dropdown,children:[(0,o.jsx)("div",{ref:i,className:ab().dropdownWrapper,children:(0,o.jsxs)(aA.A,{"data-qa":"dropdown-toggle",className:ab().dropdownToggle,"aria-label":"Select an option",onClick:()=>{_()||u()},children:[(0,o.jsx)("span",{children:l?.name}),(0,o.jsx)(t_.A,{translateY:-2,className:ab().dropdownIcon})]})}),(0,o.jsx)("div",{ref:d,className:ab().listWrapper,"data-qa":"dropdown-list",children:(0,o.jsx)(aC.A,{className:ab().dropdownList,children:a.map(e=>(0,o.jsx)(af.A,{"data-qa":"dropdown-item",onClick:()=>{r(String(e[n]))},tag:"span",tabIndex:0,children:e.name},e[n]))})})]})}})})},ag=({fieldName:e,formatMaxLength:t,isRequired:a})=>{let{formState:{errors:n},register:r,watch:s}=(0,q.xW)(),l=t??t9.Bm,i=t4({register:r,fieldName:e,isRequired:a,maxLength:l}),d=!!n?.[e],c=n?.[e]?.message,_=s(e);return(0,o.jsxs)(k.A,{className:at().text,children:[(0,o.jsx)(V.A,{className:eL()("visually-hidden",at().text__label),htmlFor:e,children:"Answer the question"}),(0,o.jsx)(P.TM,{id:e,name:e,type:"text",invalid:d,"aria-invalid":d,className:at().text__input,onBlur:i.onBlur,onChange:i.onChange,innerRef:i.ref}),(0,o.jsx)(e6.A,{value:_,maxLength:l,customError:c,hasNewStyle:!0})]},e)},ay=({fieldName:e,isRequired:t,formatMinValue:a,formatMaxValue:n})=>{let{register:r,formState:{errors:s}}=(0,q.xW)(),l=(({register:e,fieldName:t,formatMinValue:a,formatMaxValue:o,isRequired:n=!1})=>e(t,{...n&&{required:h.UU.SCREENING_QUESTIONS.QUESTION_IS_REQUIRED},...(0,eP.Et)(a)&&{min:{value:a,message:`The response has a minimum value of ${a}`}},...(0,eP.Et)(o)&&{max:{value:o,message:`The response has a maximum value of ${o}`}},validate:{maxLength:e=>e.toString().length<=8||h.UU.SCREENING_QUESTIONS.NUMBER_MAX_LENGTH,validCharacters:e=>(0,eP.fX)(e)||/^(\d+(\.\d*)?|\.\d+)$/.test(e)||h.UU.SCREENING_QUESTIONS.NUMBER_VALID_CHARACTERS},valueAsNumber:!0}))({register:r,fieldName:e,isRequired:t,formatMinValue:a,formatMaxValue:n}),i=!!s?.[e];return(0,o.jsxs)(k.A,{className:at().text,children:[(0,o.jsx)(V.A,{className:eL()("visually-hidden",at().text__label),htmlFor:e,inline:"true",children:e}),(0,o.jsx)(P.pd,{id:e,type:"number",step:"any","data-qa":e,invalid:i,"aria-invalid":i,name:l.name,onChange:l.onChange,innerRef:l.ref,className:at().text__input})]},e)},aN=({title:e,description:t,isRequired:a,jobScreeningQuestionId:n,jobScreeningQuestionFormatType:r,children:s})=>{let{formState:{errors:l}}=(0,q.xW)(),i=r!==t2.uT.TEXT;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:at().question,id:`question-wrapper-${n}`,children:e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:e},className:at().title}
1),a?(0,o.jsx)("span",{className:at().question__required,children:"*"}):"",t&&(0,o.jsx)("p",{className:at().description,dangerouslySetInnerHTML:{__html:t}})]})}),s,i&&l[n]?.message&&(0,o.jsx)(am,{children:l[n].message})]})},aO=({fieldName:e,formatMaxLength:t,isRequired:a})=>{let{formState:{errors:n},register:r,watch:s}=(0,q.xW)(),l=t??t9.Bm,i=t4({register:r,fieldName:e,isRequired:a,maxLength:l}),d=!!n?.[e],c=n?.[e]?.message,_=s(e);return(0,o.jsxs)(k.A,{className:at().text,children:[(0,o.jsx)(V.A,{className:eL()("visually-hidden",at().text__label),htmlFor:e,children:"Answer the question"}),(0,o.jsx)(P.pd,{id:e,name:e,type:"text",invalid:d,"aria-invalid":d,className:at().text__input,onBlur:i.onBlur,onChange:i.onChange,innerRef:i.ref}),(0,o.jsx)(e6.A,{value:_,maxLength:l,customError:c,hasNewStyle:!0})]},e)},aE=({screeningQuestionForcedId:e,isTCQuestionPresent:t=!1})=>{let{state:{applicationData:{screeningAnswers:a},screeningQuestionCurrentIndex:n,modalContainerRef:s}}=(0,r.useContext)(f.W),{state:{modal:{modalData:{jobScreeningQuestions:l,jobScreeningQuestionsV2:i,jobScreeningQuestionsV3:d}}}}=(0,r.useContext)(b.M),{isReedQuestions:c,isKomboQuestions:_,notReedQuestions:u}=(0,eV.kf)({jobScreeningQuestions:l,jobScreeningQuestionsV2:i,jobScreeningQuestionsV3:d}),p=e&&u?.find(t=>t.jobScreeningQuestionId===e)||(c?l:u)?.[n]||{},m=p[(0,eV.po)(c)],{childArr:h,termsAndConditionsArr:x}=(0,eV.Rq)(u,m,t),A=(0,eV.r)(p),{setValue:C,getValues:v,watch:j,trigger:g,formState:{dirtyFields:y}}=(0,q.xW)(),N=(0,eV.gW)(m),O=a?.find(e=>e.id===m)?.userAnswer,E=v(N),L=j(N);if((0,r.useEffect)(()=>{null!=O?null==E&&(C(N,O),g(N)):p.jobScreeningQuestionFormatType!==t2.uT.DATE||null===E||y&&y[N]||(C(N,null),p.precondition&&g(N))},[N,O,E,p.jobScreeningQuestionFormatDisplayType]),c)return(0,o.jsx)(ah,{fieldName:N});let T=(0,eV.xt)(p),R=T?ad:(({jobScreeningQuestionFormatType:e,jobScreeningQuestionFormatDisplayType:t})=>{switch(e){case t2.uT.BOOLEAN:return aa;case t2.uT.DATE:return a_;case t2.uT.MULTI_SELECT:return as;case t2.uT.NUMBER:return ay;case t2.uT.SINGLE_SELECT:return aj;case t2.uT.TEXT:return t===t2.P0.SINGLE_LINE?aO:ag;default:return null}})(p);if(!R&&!A)return null;let S=e=>(0,o.jsx)(aE,{screeningQuestionForcedId:e.jobScreeningQuestionId},e.jobScreeningQuestionId);return t?x.map(S):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(aN,{...p,title:T?"":p.title,children:!A&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(R,{optionIdName:(0,eV.gL)(_),fieldName:N,modalContainerRef:s,...p},m)})}),h.filter(e=>(0,eV.m7)(e.precondition.preconditionOption,p?.jobScreeningQuestionFormatType,L)).map(S)]})},{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_NEXT_STEP:aL,APPLY_JOB_MODAL_NEXT_SCREENING_QUESTION:aT,APPLY_JOB_MODAL_PREV_SCREENING_QUESTION:aR,APPLY_JOB_MODAL_SET_MODAL_REF:aS},MODAL:{UPDATE_MODAL_DATA:aw}}=A.A,aD=({isTCQuestionPresent:e=!1})=>{let{state:{screeningQuestionCurrentIndex:t,modalContainerRef:a},dispatch:n}=(0,r.useContext)(f.W),{state:{modal:{modalData:{jobScreeningQuestions:s,jobScreeningQuestionsV2:l,jobScreeningQuestionsV3:i}}},dispatch:d}=(0,r.useContext)(b.M),{state:{logger:c,config:{projectName:_}}}=(0,r.useContext)(v.jR),u=`ScreeningQuestionSteps component in the ${_}`,{isReedQuestions:p,isKomboQuestions:m,notReedQuestions:h}=(0,eV.kf)({jobScreeningQuestions:s,jobScreeningQuestionsV2:l,jobScreeningQuestionsV3:i}),{visibleQuestionsCount:x,displayQuestionIndex:A,defaultValues:C,currentQuestions:j}=(0,r.useMemo)(()=>(0,eV.g1)({isReedQuestions:p,reedQuestions:s,notReedQuestions:h,screeningQuestionCurrentIndex:t}),[p,s,h,t]),g=(0,r.useCallback)(e=>{n({type:aS,payload:e})},[n]),y=(0,q.mN)({defaultValues:C}),{handleSubmit:N,setFocus:O}=y,E=(0,r.useCallback)(()=>{if(a){if("function"==typeof a.scrollTo)return void a.scrollTo({top:0});a.scrollTop=0}},[a]),L=(0,r.useCallback)(e=>{if(!a||!e)return;let t=a.querySelector(`#question-wrapper-${e}`);t?.scrollIntoView&&t.scrollIntoView({behavior:"smooth",block:"start"}),O(e,{shouldSelect:!1})},[a,O]);return(0,r.useEffect)(()=>{let e=(0,eV.nR)(h);if(e.length){let t=`Orphaned questions found: ${JSON.stringify(e)}`;c.error(t,{page_name:`getOrphanedQuestions - ${u}`})}}
1,[h]),(0,o.jsx)(q.Op,{...y,children:(0,o.jsxs)(B.A,{onSubmit:N(a=>{((e,t,a)=>{let o="v3";t&&(o="v1"),a&&(o="v2"),(0,ea.dO)({event:"gtmScreeningQuestions",data_page_component:"question",data_element:"next",data_element_action:e+1,jobQuestionModel:o})})(t,p,m);let o=Object.entries(a).map(([e,t])=>({id:m||p?Number(e):e,userAnswer:t})),r=(e=>{if(p)return s;let{updatedQuestions:t,hasUpdates:a}=(0,eV.h$)(h,e);return a&&d({type:aw,payload:m?{jobScreeningQuestionsV2:t}:{jobScreeningQuestionsV3:t}}),t})(o).findIndex((e,a)=>a>t&&!(0,eV.J8)(e));if(r>t&&!e){E(),n({type:aT,payload:{nextQuestionIndex:r}});return}n({type:aL,payload:{screeningAnswers:o}})},e=>{let t=Object.keys(e||{})[0];t&&L(t)}),children:[(0,o.jsxs)("div",{className:t3().container,ref:g,"data-qa":"screening-questions-container",children:[!e&&(0,o.jsx)(t7,{totalSteps:x,completedSteps:A+1}),(0,o.jsx)(aE,{isTCQuestionPresent:e})]}),(0,o.jsx)(tX.A,{className:t3().buttonGroup,children:(0,o.jsxs)("div",{className:t3().buttonGroup__mainWrapper,children:[A>0&&(0,o.jsx)(I.A,{color:"secondary",onClick:()=>{let e=j.findLastIndex((e,a)=>a<t&&!(0,eV.J8)(e));E(),n({type:aR,payload:{previousQuestionIndex:Math.max(0,e)}})},className:t3().buttonGroup__button,children:"Back"}),(0,o.jsx)(I.A,{type:"submit",color:"primary",className:t3().buttonGroup__button,children:"Continue"})]})})]})})};var aB=a(75123),ak=a.n(aB);let{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_ADD_ERROR_OBJECT:aP}}=A.A,{APPLICATION:{APPLICATION_SOMETHING_WENT_WRONG:aU}}=h.UU,{SCREENING_QUESTIONS_STEP:aM,CV_STEP:aI,EXTERNAL_APPLICATION_STEP:aq,APPLICATION_CONFIRMATION_STEP:aV}=p.L,aW=({hideModal:e,handleOnConfirmationClose:t})=>{let{state:{logger:a}}=(0,r.useContext)(v.jR),{state:{isCvUpdating:n,isEasyApplyFlow:i,currentStep:d,applicationData:{redirectUrl:c},screeningQuestionCurrentIndex:_},dispatch:u}=(0,r.useContext)(f.W),{state:{modal:{modalData:{jobId:p,jobTitle:m,ouName:h,jobScreeningQuestionsV3:x}}}}=(0,r.useContext)(b.M),{processPostJobMetrics:A}=(0,eB.A)(),C=`ApplyJobModalLayout component in the ${eD.$W?.projectName}`,j={siteSource:i?"searchResults-easyApply":"searchResults-jobDrawer",jobId:p,componentNameForLogger:C};if((0,r.useEffect)(()=>{p||(a.error("jobId not found",{page_name:C}),u({type:aP,payload:{message:aU}}))},[p]),(0,r.useEffect)(()=>{(async()=>{i&&await A({event:"JobView",...j})})()},[]),d===aV)return(0,o.jsx)(ew.A,{jobTitle:m,ouName:h,redirectUrl:c,handleOnClose:t});let g=d===aq,y=d===aM,N=x?.[_]?.isTermsAndConditions;return(0,o.jsxs)(s.A,{"data-qa":"apply-job-modal",show:!0,className:ak().modal,closeOnBackdrop:!1,onClosed:e,children:[(0,o.jsx)(D.A,{className:ak().modal__header,closeButton:!n&&!g,children:(0,o.jsx)("h3",{children:y?N?"Terms and conditions":"Application questions":"Application"})}),(0,o.jsxs)(l.A,{className:ak().modal__body,"data-qa":"modal-body",children:[y&&(0,o.jsx)(aD,{isTCQuestionPresent:N}),d===aI&&(0,o.jsx)(tY,{metricsData:j}),g&&(0,o.jsx)(tK,{})]})]})};var aG=a(53608),a$=a(79515),aY=a(91570),aF=a.n(aY);let aJ=({handleOnClose:e,handleUploadingCV:t,handleCancelUploadClick:a,isCvNotUploaded:n,errorObject:i,handleResetErrorObject:d})=>{let[c,_]=(0,r.useState)(null),{width:u}=(0,a$.A)(),p="File types: .docx, .doc, .pdf, .txt, .odt or .rtf. Up to 2.5 MB",{getRootProps:m,getInputProps:h,open:x,isDragActive:A,fileRejections:C}=(0,aG.VB)({noClick:!0,accept:{"text/plain":[".docx",".doc",".pdf",".txt",".odt",".rtf"]},maxSize:2621440,multiple:!1,onDrop:e=>{if(d(),_(null),e.length>1)return void _({message:"You attempted to upload multiple CVs. Please select only one CV."});e.length&&t(e[0])}}),f=(0,T.A6)(C),v=(0,o.jsxs)("div",{className:aF().buttonsGroup,children:[(0,o.jsx)(I.A,{color:"primary",onClick:()=>{d(),x()},className:aF().chooseCVBtn,children:"Choose your CV file"}),!n&&(0,o.jsx)(I.A,{className:aF().cancelUpdateButton,onClick:()=>{a()},color:"secondary",children:"Cancel update"})]}),b=[...f];return c?.message&&b.push(c.message),(0,o.jsxs)(s.A,{show:!0,onClose:e,"data-qa":"upload-cv-modal",children:[(0,o.jsx)(D.A,{className:aF().modal__header,closeButton:!0,children:(0,o.jsx)("h3",{children:n?"Upload your CV to continue":"Update your CV"})}),(0,o.jsx)(l.A,{className:aF().modal__body,children:u>768?(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{...m({color:"primary",className:eL()(aF().uploadBlock,A?aF().dragActiveContainer:{})}),children:[(0,o.jsx)("input",{"data-qa":"drop-input",...h()}),(0,o.jsx)("h2",{className:aF().uploadTitle,children:"Drop your file here to upload"}),(0,o.jsx)("div",{className:aF().fileInfo,children:(0,o.jsx)("span",{className:"text-center",children:p})}),v]}),(0,o.jsx)(eq,{errMessagesArr:b,errorObject:i,className:aF().alert})]}):(0,o.jsxs)("div",{children:[(0,o.jsx)("input",{"data-qa":"drop-input",...h()}),(0,o.jsxs)("div",{className:aF().fileInfo,children:[(0,o.jsx)("span",{className:"text-center",children:p}),(0,o.jsx)(eq,{errMessagesArr:b,errorObject:i,className:aF().alert})]}),v]})})]})},{CV_DATA:aH,USER_DATA:aQ,APPLY_JOB_MODAL:{APPLY_JOB_MODAL_ADD_ERROR_OBJECT:aZ,APPLY_JOB_MODAL_RESET_ERROR_OBJECT:az,APPLY_JOB_MODAL_RESET_OVERLAY_MODA
1L:aK,APPLY_JOB_MODAL_SET_OVERLAY_MODAL:aX,APPLY_JOB_MODAL_UPDATE_CV_STATUS:a0}}=A.A,{ERROR_MESSAGE_OBJECT_CV:a3}=h.xY,{WAITING_MODAL:a1,UPDATE_CV_MODAL:a6}=p.O,a7=({hideModal:e})=>{let{state:{user:t,logger:a,config:{bffUrl:n}},dispatch:s}=(0,r.useContext)(v.jR),{state:{cvData:{fileName:l}},dispatch:i}=(0,r.useContext)(b.M),{state:{errorObject:d,isCvUpdated:c},dispatch:_}=(0,r.useContext)(f.W),u=(0,Y.A)(),p=!l,m=`UpdateCvApplyJobModalWrapper component in the ${eD.$W?.projectName}`,x=(e=a3)=>{_({type:aZ,payload:e}),_({type:a0,payload:{isCvUpdating:!1}}),p&&_({type:aX,payload:a6})},A=async()=>{let{result:e,hasError:o}=await R({user:t,logger:a,bffUrl:n,coreDispatch:s,componentNameForLogger:m});if(o)return void x();let r=(0,w.Ev)(e);if(r.hasError)return void x({...a3,message:r.message});(0,ea.dO)({event:"gtmJobseekerSuccessfulCvUpload",data_page_component:"profile_and_cv",data_element:"cv_upload_successful",data_element_action:"top"}),i({type:aH.UPDATE_CV_DATA,payload:e}),p?(i({type:aQ.UPDATE_USER_DATA,payload:{cvName:e.fileName,cvUploaded:!0}}),_({type:aK}),_({type:a0,payload:{isCvUpdated:!1,isCvUpdating:!1}}),u("success","CV uploaded successfully")):_({type:a0,payload:{isCvUpdated:!0,isCvUpdating:!1}})},C=()=>{_({type:az})},j=async e=>{_({type:a0,payload:{isCvUpdating:!0}}),C(),p?_({type:aX,payload:a1}):_({type:aK});let o=await (0,L.A)(t,s),r=new FormData;r.append("cv",e);let{message:l,errorCode:i,errors:d,hasError:c}=await E(r,o,n);if(c){let e=a3.message;if(d){let t=(0,T.s6)(d,h.oY)[t9.gW.CV];t&&t.length>0&&([e]=t)}a.error((0,T.NO)(l,i,d),{page_name:`uploadCV - handleProcessingCV - ${m}`}),x({...a3,message:e});return}A()};return(0,o.jsx)(aJ,{handleOnClose:e,handleUploadingCV:j,handleCancelUploadClick:()=>{_({type:aK})},handleResetErrorObject:C,isCvNotUploaded:p,errorObject:d,isCvUpdated:c})};var a2=a(47405),a5=a.n(a2);let{USER_DATA:a8,APPLY_JOB_MODAL:{APPLY_JOB_MODAL_RESET_OVERLAY_MODAL:a4}}=A.A,a9=({hideModal:e})=>{let[t,a]=(0,r.useState)(""),[n,i]=(0,r.useState)(!1),d=(0,Y.A)(),{state:{logger:c,user:_,config:{bffUrl:p,projectName:m}},dispatch:x}=(0,r.useContext)(v.jR),{state:{userData:{eligibleToWork:A}},dispatch:C}=(0,r.useContext)(b.M),{dispatch:j}=(0,r.useContext)(f.W),{register:g,handleSubmit:y}=(0,q.mN)({defaultValues:{workEligibility:A?.toString()||""}}),N=g("workEligibility"),O=async e=>{i(!0),a("");try{let t=await (0,L.A)(_,x),{hasError:o,message:n,errorCode:r,errors:s}=await (0,F.r)({bffUrl:p,authHeaders:t,profileData:{workEligibility:e.workEligibility}});if(o){c.error((0,T.NO)(n,r,s),{page_name:`onSubmit - UpdateRightToWorkUkModal component in the ${m}`}),a(h.UU.PROFILE.PROFILE_UPDATE_FAILED);return}C({type:a8.UPDATE_USER_DATA,payload:{workEligibility:e.workEligibility}}),j({type:a4,payload:{shouldSkipApplicationUnsuccessfulModal:!0}}),d("success","Profile updated")}finally{i(!1)}};return n?(0,o.jsx)(u.A,{show:!0}):(0,o.jsxs)(s.A,{show:!0,onClose:e,"data-qa":"right-to-work-modal",children:[(0,o.jsx)(D.A,{className:a5().modal__header,closeButton:!0,children:(0,o.jsx)("h3",{children:"Update profile"})}),(0,o.jsx)(l.A,{className:a5().modal__body,children:(0,o.jsxs)(B.A,{onSubmit:y(O),children:[(0,o.jsx)(k.A,{className:eL()("col-md-12",a5().formGroup),children:(0,o.jsxs)("fieldset",{children:[(0,o.jsxs)("legend",{children:["Do you have the right to work in the UK?"," ",(0,o.jsx)("span",{className:a5().question__required,children:"*"})]}),(0,o.jsx)(k.A,{className:a5().formGroup__work_eligibility,children:Object.entries(t9.Wy).map(([e,t])=>{let a=`work-eligibility-${e}`;return(0,o.jsxs)(V.A,{htmlFor:a,variant:"checkbox",className:a5().inlineLabelMargin,children:[(0,o.jsx)(P.U6,{id:a,onChange:N.onChange,onBlur:N.onBlur,innerRef:N.ref,name:N.name,value:e}),t]},e)})})]})}),t&&(0,o.jsx)(ek.A,{color:"danger",children:t}),(0,o.jsx)("div",{className:a5().buttonGroup,children:(0,o.jsxs)("div",{className:a5().buttonGroup__mainWrapper,children:[(0,o.jsx)(I.A,{className:a5().buttonGroup__button,onClick:e,color:"secondary",children:"Cancel"}),(0,o.jsx)(I.A,{className:a5().buttonGroup__button,disabled:n,"data-page-component":"status_availability","data-element":"save","aria-label":"Save changes",color:"primary",type:"submit",children:"Save"})]})})]})})]})};var oe=a(80398),ot=a(60320),oa=a.n(ot);let{CANDIDATE_PROFILE:oo}=C.P,on=({handleOnClose:e=()=>{},processEasyApplyDataCookie:t,validationErrorArray:a,setJobDrawerModalDataCookie:i})=>{let d=(0,n.useRouter)(),{state:{modal:{modalData:{jobId:c}}}}=(0,r.useContext)(b.M),{state:{isEasyApplyFlow:_,isJobDrawerFlow:u}}=(0,r.useContext)(f.W),p=async()=>{_?t():u&&i&&i({action:oe.I.OPEN_APPLY_JOB_MODAL});let{pathname:e}=window.location,{query:a}
1=d,o={...a,..._&&{isEasyApplyFlow:!0,flow:oe.c.EASY_APPLY},...u&&{flow:oe.c.DRAWER},jobId:c};delete o.postReg;let n=new URLSearchParams(o).toString(),r=`${e}?${n}`;await d.push(`${oo}?returnTo=${encodeURIComponent(r)}`)},m="job_description";return _?m="easy_apply_modal":u&&(m="job_drawer"),(0,o.jsxs)(s.A,{show:!0,onClose:e,"data-qa":"user-check-modal",children:[(0,o.jsx)(D.A,{className:oa().modal__header,closeButton:!0,children:(0,o.jsx)("h3",{children:_?"Easy apply":"Application"})}),(0,o.jsxs)(l.A,{className:oa().modal__body,children:[(0,o.jsxs)("p",{"data-qa":"user-check-modal-message",children:["In order to apply"," ",_?"via easy apply":"to this role",", you need to have the following information complete in your profile:"]}),(0,o.jsx)("ul",{className:oa().oneListItem,children:a.map(e=>(0,o.jsx)("li",{children:e},e))}),(0,o.jsx)("span",{className:eL()(oa().continueButtonWrapper,oa().rightButton),children:(0,o.jsx)(I.A,{"data-page-component":m,"data-element":"candidate_profile",color:"primary",className:oa().continueButton,onClick:p,children:"Go to profile"})})]})]})};var or=a(3528);let{APPLY_JOB_MODAL:{APPLY_JOB_MODAL_SET_OVERLAY_MODAL:os}}=A.A,{UPDATE_CV_MODAL:ol,UPDATE_RIGHT_TO_WORK_IN_THE_UK_MODAL:oi}=p.O,od=async({forename:e,surname:t,contact:a,candidateJobPreference:o,cvUploaded:n,workEligibility:r,isJobBasedInUk:s,hasCVStatusBeenRechecked:l,applyJobModalDispatch:i,setValidationErrorArray:d,recheckCVStatus:c})=>{let _=(0,w.ae)({forename:e,surname:t,contact:a,candidateJobPreference:o,cvUploaded:n,workEligibility:r,isJobBasedInUk:s});1===_.length&&_[0]===or.m[or.a.NO_CV]&&(l?i({type:os,payload:ol}):await c()),1===_.length&&_[0]===or.m[or.a.NO_ELIGIBILITY]&&i({type:os,payload:oi}),d(_)},{EASY_APPLY_DATA:oc}=m.A,{UPDATE_CV_MODAL:o_,UPDATE_RIGHT_TO_WORK_IN_THE_UK_MODAL:ou,WAITING_MODAL:op,ABOUT_YOU_MODAL:om}=p.O,{CV_DATA:oh,USER_DATA:{UPDATE_USER_DATA:ox},APPLY_JOB_MODAL:{APPLY_JOB_MODAL_ADD_ERROR_OBJECT:oA}}=A.A,{ERROR_MESSAGE_OBJECT_CV:oC}=h.xY,of=({hideModal:e,hideDrawerModal:t,setJobDrawerModalDataCookie:a})=>{let{isFeatureEnabled:s}=(0,S.A)(),l=(0,n.useRouter)(),[i,d]=(0,r.useState)(!1),[c,p]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),[A,y]=(0,r.useState)(!1),{updateCookie:N,deleteCookie:O}=(0,j.A)(oc),{state:{user:E,isAuthLoaded:L,isUserFullyRegistered:T,config:{bffUrl:D},logger:B},dispatch:k}=(0,r.useContext)(v.jR),{state:{userData:P,modal:{modalData:U},config:{projectName:M}},dispatch:I}=(0,r.useContext)(b.M),{isLoaded:q,hasCVStatusBeenRechecked:V,workEligibility:W,forename:G,surname:$,contact:Y,candidateJobPreference:F,cvName:J}=P,H=F?.locations?.home?.countryName,{jobId:Q,jobTitle:Z,ouName:z,isPromoted:K,isInSavedJobsList:X,isEasyApply:ee,eligibleUkOnly:et,isPostReg:ea,countryName:eo,jobApplicationEligibilityRequirement:en}=U||{},er=(0,w.xW)(eo),es=s(x.$v.JET_4741_OU_APPLICATION_BLOCKING),{state:{isCvUpdating:el,overlayModal:ei,shouldSkipApplicationUnsuccessfulModal:ed},dispatch:ec}=(0,r.useContext)(f.W),e_=`ApplyJobModal component in the ${M}`;(0,r.useEffect)(()=>{let e=setTimeout(()=>{d(!0)},2e3);return()=>clearTimeout(e)},[]),(0,r.useEffect)(()=>{T&&!m&&(h(!0),O())},[m,T]);let eu=()=>{let e=new Date;e.setTime(e.getTime()+36e5),N(JSON.stringify({jobId:Q,jobTitle:Z,ouName:z,isPromoted:K,isInSavedJobsList:X,isEasyApply:ee,eligibleUkOnly:et,countryName:eo}),e)},ep=async()=>{eu();let{query:e}=l,{pathname:t}=window.location,a={...e,isEasyApplyFlow:!0,registrationSource:"easy_apply_search_results",jobId:Q};delete a.postReg;let o=new URLSearchParams(a).toString(),n=`${t}?${o}`;await l.push(`${C.P.LOGIN}?returnTo=${encodeURIComponent(n)}`)};if((0,r.useEffect)(()=>{if(!L)return;if(!E)return void ep();if(!q||(({jobApplicationEligibilityRequirement:e,workEligibility:t,isCandidateBasedInUk:a,isJobBasedInUk:o,isOuApplicationBlockingFeatureEnabled:n,shouldSkipApplicationUnsuccessfulModal:r,setIsApplicationUnsuccessful:s,hideModal:l})=>(0,w.DI)({jobApplicationEligibilityRequirement:e,workEligibility:t,isCandidateBasedInUk:a,isJobBasedInUk:o,isOuApplicationBlockingFeatureEnabled:n}
1)===g.qm.CANNOT_APPLY&&(r?l():s(!0),!0))({jobApplicationEligibilityRequirement:en,workEligibility:W,isCandidateBasedInUk:(0,w.xW)(H),isJobBasedInUk:er,isOuApplicationBlockingFeatureEnabled:es,shouldSkipApplicationUnsuccessfulModal:ed,setIsApplicationUnsuccessful:y,hideModal:e}))return;let t=async()=>{let{result:e,hasError:t}=await R({user:E,logger:B,bffUrl:D,coreDispatch:k,componentNameForLogger:e_,isCVAbsenceNormalCondition:!0}),a=t?{hasError:!0}:(0,w.Ev)(e);a.hasError?(a.message&&ec({type:oA,payload:{...oC,message:a.message}}),I({type:ox,payload:{hasCVStatusBeenRechecked:!0}})):(I({type:oh.UPDATE_CV_DATA,payload:e}),I({type:ox,payload:{cvName:e?.fileName,cvUploaded:!0,hasCVStatusBeenRechecked:!0}}))};od({forename:G,surname:$,contact:Y,candidateJobPreference:F,cvUploaded:!!J,workEligibility:W,isJobBasedInUk:er,hasCVStatusBeenRechecked:V,applyJobModalDispatch:ec,setValidationErrorArray:p,recheckCVStatus:t})},[q,L,J,E,W,es,V]),A)return(0,o.jsx)(eS,{handleOnClose:e});if(!c)return ea&&!i?(0,o.jsx)(_,{description:"Registration complete"}):(0,o.jsx)(u.A,{show:!0,description:"Processing information"});if(ei===op){let e="Processing application";return el&&(e="CV processing..."),(0,o.jsx)(u.A,{show:!0,description:e})}return ei===o_?(0,o.jsx)(a7,{hideModal:e}):ei===ou?(0,o.jsx)(a9,{hideModal:e}):ei===om?(0,o.jsx)(eO,{hideModal:e}):c?.length>0?(0,o.jsx)(on,{validationErrorArray:c,handleOnClose:e,processEasyApplyDataCookie:eu,setJobDrawerModalDataCookie:a}):(0,o.jsx)(aW,{hideModal:e,handleOnConfirmationClose:()=>{if(t)return void t();e()}})}},29642:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",buttonGroup:"cv_buttonGroup__iNRm2",buttonGroup__mainWrapper:"cv_buttonGroup__mainWrapper__PEFwz",buttonGroup__button:"cv_buttonGroup__button__WhYWX",aboutYouError:"cv_aboutYouError__L25To",backBtn:"cv_backBtn__KDUz6"}},31036:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",checkboxText:"checkbox-with-one-option-question_checkboxText__uWkAK"}},33700:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",checkbox:"checkbox-element_checkbox__Pb0HY",checkbox__label:"checkbox-element_checkbox__label__q3fjB"}},34035:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",progress:"progress-bar_progress__iGmwG"}},35112:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",requiredLabel__asterisk:"required-label_requiredLabel__asterisk__P5Ywb"}},41798:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",modal__header:"application-unsuccessful-modal_modal__header__Gxg_r",modal__body:"application-unsuccessful-modal_modal__body__5Bmy4",button:"application-unsuccessful-modal_button__9U8Si",button__wrapper:"application-unsuccessful-modal_button__wrapper__KhrMf",rightButton:"application-unsuccessful-modal_rightButton__qcLDu"}},43432:(e,t,a)=>{"use strict";a.d(t,{V:()=>n,z:()=>o});let o=(e,t)=>fetch(`${e.public}keyword/suggest/${encodeURIComponent(t)}/anonymous/`,{method:"GET"}).then(e=>e.json()).then(e=>e.result);function n(e,t,a={}){return fetch(`${e.public}location/suggest/${t}/anonymous/`,{method:"GET",headers:a}).then(e=>e.json()).then(e=>e.result)}},44841:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",COLOR_NEUTRALS_10:"#fff",card:"external-application_card__1co3W",jobTitle:"external-application_jobTitle__KVyNf",buttonGroup:"external-application_buttonGroup__ulmDE",buttonGroup__mainWrapper:"external-application_buttonGroup__mainWrapper___lxM4",buttonGroup__button:"external-application_buttonGroup__button__0tiTD",externalApplyBtn:"external-application_externalApplyBtn__8uZ6h",buttonIcon:"external-application_buttonIcon__lA_d0"}},46303:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",card:"job-details_card__2qu0h",jobTitle:"job-details_jobTitle__ZfS4M"}},46332:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",dropdown:"dropdown-question_dropdown__cMCBw",dropdownWrapper:"dropdown-question_dropdownWrapper__BZTAw",dropdownIcon:"dropdown-question_dropdownIcon__Yj9sg",dropdownToggle:"dropdown-question_dropdownToggle__7z9Qw",listWrapper:"dropdown-question_listWrapper__2R
1H4M",dropdownList:"dropdown-question_dropdownList__aGQzq"}},47405:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",modal__header:"update-right-to-work-uk-modal_modal__header__VGTuu",formGroup:"update-right-to-work-uk-modal_formGroup__ytIop",formGroup__work_eligibility:"update-right-to-work-uk-modal_formGroup__work_eligibility__nwMmG",question:"update-right-to-work-uk-modal_question__0Kdxz",question__required:"update-right-to-work-uk-modal_question__required__PAgc2",buttonGroup:"update-right-to-work-uk-modal_buttonGroup__uC1ZZ",buttonGroup__mainWrapper:"update-right-to-work-uk-modal_buttonGroup__mainWrapper__Opo_n",buttonGroup__button:"update-right-to-work-uk-modal_buttonGroup__button___E1_8"}},48947:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",form:"about-you-modal_form__u1_HQ",form__asterisk:"about-you-modal_form__asterisk__SMSFQ",form__nameRow:"about-you-modal_form__nameRow__l3S2h",form__nameField:"about-you-modal_form__nameField__zVl23",form__field:"about-you-modal_form__field__Gw4BC",form__staticText:"about-you-modal_form__staticText__sdZbX",form__buttonGroup:"about-you-modal_form__buttonGroup__aW38n",form__button:"about-you-modal_form__button__GVOUE",form__label:"about-you-modal_form__label__Gabao",form__country:"about-you-modal_form__country__SMUVC",form__location:"about-you-modal_form__location__ryp9v",form__locationHeader:"about-you-modal_form__locationHeader__yckCQ",form__locationEditBtn:"about-you-modal_form__locationEditBtn__C5DQv"}},56005:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var o=a(37876),n=a(45113),r=a(70787),s=a(80008),l=a(44604),i=a(15039),d=a.n(i),c=a(82985),_=a(23465),u=a(54565),p=a(90889),m=a(29187),h=a(81059),x=a.n(h);let{COLOR_BRAND_03_04:A}=x(),C=({jobTitle:e,ouName:t,redirectUrl:a,handleOnClose:i})=>{let h=!!a,{isFeatureEnabled:C}=(0,p.A)(),f=C(u.Ay.JET_5355_RESEARCH_SURVEY);return(0,o.jsxs)(n.A,{show:!0,onClose:i,"data-qa":"application-confirmation-modal",children:[(0,o.jsx)(r.A,{className:x().modalHeader,closeButton:!0,children:(0,o.jsx)("div",{className:x().checkMarkWrapper,children:(0,o.jsx)(c.A,{})})}),(0,o.jsxs)(s.A,{className:x().modalBody,children:[(0,o.jsx)("h3",{children:h?"Added to jobs applied for":"Application sent!"}),(0,o.jsxs)("p",{"data-qa":"application-confirmation-modal-message",children:["Your application for ",(0,m.W5)(e,100)," role has been"," ",h?"added to jobs applied for.":`sent to ${(0,m.W5)(t||"",100)}.`]}),h&&(0,o.jsxs)("div",{children:["Didn't finish your application?",(0,o.jsx)("p",{children:(0,o.jsxs)("a",{href:a,target:"_blank","data-qa":"external-job-url",children:["Complete on employer'
1s website",(0,o.jsx)(_.A,{className:x().icon,color:A})]})})]}),f&&(0,o.jsxs)("div",{children:["Help shape the future of UK family businesses.",(0,o.jsx)("p",{children:(0,o.jsxs)("a",{href:"https://www.surveymonkey.com/r/CS9FQRT",target:"_blank",children:["Complete our research survey for a chance to win a \xa350 voucher",(0,o.jsx)(_.A,{className:x().icon,color:A})]})})]}),(0,o.jsx)("span",{className:d()(x().continueButtonWrapper,h&&x().rightButton),children:(0,o.jsx)(l.A,{color:"primary",className:x().continueButton,onClick:i,children:h?"Close":"OK"})})]})]})}},60055:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",card:"cover-letter_card__ofiba",wrapper:"cover-letter_wrapper__7Sh2H",title:"cover-letter_title__bqmjc",titleRequired:"cover-letter_titleRequired__q_KMh",buttonAdd:"cover-letter_buttonAdd__rSa3Z",buttonCopy:"cover-letter_buttonCopy__v7N1G",coverLetterText:"cover-letter_coverLetterText__6UY1L",counter:"cover-letter_counter__XOngj"}},60320:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",modal__header:"user-check-modal_modal__header__ytklh",modal__body:"user-check-modal_modal__body__F7Kzx",continueButtonWrapper:"user-check-modal_continueButtonWrapper__IUUlr",continueButton:"user-check-modal_continueButton__8lsnn",rightButton:"user-check-modal_rightButton__Dc_RZ",oneListItem:"user-check-modal_oneListItem__Vln6u"}},75123:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",modal__header:"apply-job-modal_modal__header___l5Ps",modal__body:"apply-job-modal_modal__body__ycJxV",modal:"apply-job-modal_modal__Y8QOR",buttonIcon:"apply-job-modal_buttonIcon__QK4z_",buttonGroup:"apply-job-modal_buttonGroup__FYIGd"}},75671:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",buttonGroup:"screening-questions_buttonGroup__LUx__",buttonGroup__mainWrapper:"screening-questions_buttonGroup__mainWrapper__6UZ5V",buttonGroup__button:"screening-questions_buttonGroup__button__phVh8",container:"screening-questions_container__PaYsQ"}},81059:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",COLOR_BRAND_03_04:"#1e1ef0",modalHeader:"application-confirmation-modal_modalHeader__vbGO8",modalBody:"application-confirmation-modal_modalBody__AHNY1",icon:"application-confirmation-modal_icon__G37O_",continueButtonWrapper:"application-confirmation-modal_continueButtonWrapper__LbiSS",continueButton:"application-confirmation-modal_continueButton__i73Dl",rightButton:"application-confirmation-modal_rightButton__cZEJ6",checkMarkWrapper:"application-confirmation-modal_checkMarkWrapper__DfUux"}},82985:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var o=a(37876);a(14232);var n=a(27668);let{COLOR_BRAND04_03:r}=a.n(n)(),s=({backgroundColor:e=r,width:t="40",height:a="40",version:n="default"})=>{let s="confirmationTick",l=(0,o.jsx)("title",{id:s,children:"Confirmation Tick"}),i={width:t,height:a,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"};return"filled"===n?(0,o.jsxs)("svg",{viewBox:"0 0 20 20","aria-labelledby":s,...i,children:[l,(0,o.jsx)("path",{d:"M8.6 11.8L6.45 9.65C6.26667 9.46667 6.03333 9.375 5.75 9.375C5.46667 9.375 5.23333 9.46667 5.05 9.65C4.86667 9.83333 4.775 10.0667 4.775 10.35C4.775 10.6333 4.86667 10.8667 5.05 11.05L7.9 13.9C8.1 14.1 8.33333 14.2 8.6 14.2C8.86667 14.2 9.1 14.1 9.3 13.9L14.95 8.25C15.1333 8.06667 15.225 7.83333 15.225 7.55C15.225 7.26667 15.1333 7.03333 14.95 6.85C14.7667 6.66667 14.5333 6.575 14.25 6.575C13.9667 6.575 13.7333 6.66667 13.55 6.85L8.6 11.8ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",fill:"#3D8439"})]}):(0,o.jsxs)("svg",{viewBox:"0 0 40 40","aria-labelledby":s,...i,children:[l,(0,o.jsx)("path",{d:"M17.2 23.6L12.85 19.25C12.4833 18.8833 12.0253 18.7087 11.476 18.726C10.9253 18.742 10.4667 18.9333 10.1 19.3C9.7333 19.6667 9.55 20.1333 9.55 20.7C9.55 21.2667 9.7333 21.7333 10.1 22.1L15.8 27.8C16.1667 28.1667 16.6333 28.35 17.2 28.35C17.7667 28.35 18.2333 28.1667 18.6 27.8L29.95 16.45C30.3167 16.0833 30.492 15.6247 30.476 15.074C30.4587 14.5247 30.2667 14.0667 29.9 13.7C29.5333 13.3333 29.0667 13.15 28.5 13.15C27.9333 13.15 27.4667 13.3333 27.1 13.7L17.2 23.6ZM20 40C17.2333 40 14.6333 39.4747 12.2 38.424C9.7667 37.3747 7.65 35.95 5.85 34.15C4.05 32.35 2.62533 30.2333 1.576 27.8C0.52533 25.3667 0 22.7667 0 20C0 17.2333 0.52533 14.6333 1.576 12.2C2.62533 9.7667 4.05 7.65 5.85 5.85C7.65 4.05 9.7667 2.62467 12.2 1.574C14.6333 0.52467 17.2333 0 20 0C22.7667 0 25.3667 0.52467 27.8 1.574C30.2333 2.62467 32.35 4.05 34.15 5.85C35.95 7.65 37.3747 9.7667 38.424 12.2C39.4747 14.6333 40 17.2333 40 20C40 22.7667 39.4747 25.3667 38.424 27.8C37.3747 30.2333 35.95 32.35 34.15 34.15C32.35 35.95 30.2333 37.3747 27.8 38.424C25.3667 39.4747 22.7667 40 20 40ZM20 36C24.4333 36 28.2087 34.442 31.326 31.326C34.442 28.2087 36 24.4333 36 20C36 15.5667 34.442 11.7913 31.326 8.674C28.2087 5.558 24.4333 4 20 4C15.5667 4 11.792 5.558 8.676 8.674C5.55867 11.7913 4 15.5667 4 20C4 24.4333 5.55867 28.2087 8.676 31.326C11.792 34.442 15.5667 36 20 36Z",fill:e})]})}},91570:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",modal__header:"update-cv-modal_modal__header__UjQtv",modal__body:"update-cv-modal_modal__body__m280w",chooseCVBtn:"update-cv-modal_chooseCVBtn__
10m48S",cancelUpdateButton:"update-cv-modal_cancelUpdateButton___X1iJ",buttonsGroup:"update-cv-modal_buttonsGroup__S4G3E",uploadBlock:"update-cv-modal_uploadBlock__MaI6_",uploadTitle:"update-cv-modal_uploadTitle__8EO9k",dragActiveContainer:"update-cv-modal_dragActiveContainer__ey_9K",fileInfo:"update-cv-modal_fileInfo__n8C6b",alert:"update-cv-modal_alert__ja2gN"}},92643:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",modalHeader:"success-modal_modalHeader__VFOdo",modalBody:"success-modal_modalBody__enV9d",icon__wrapper:"success-modal_icon__wrapper__aIi8e"}},95782:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",alert:"upload-cv-alert-block_alert__vMSeY",message__header:"upload-cv-alert-block_message__header__TAIhF"}},96357:e=>{e.exports={COLOR_BRAND03_04:"#1e1ef0",question:"questions_question__vzfJ3",question__required:"questions_question__required__ZOWVj",title:"questions_title__mnBh6",description:"questions_description__tIlyk",datePicker:"questions_datePicker__RyUgq",datePicker__error:"questions_datePicker__error__figp6",text:"questions_text__mqBrE",text__label:"questions_text__label__0Dm_V",radio__label:"questions_radio__label___eDya",radio__input:"questions_radio__input__xg6HI"}}}]);

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.