1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7933],{5884:(e,t,i)=>{i.d(t,{G:()=>m});var a=i(37876),o=i(5646),n=i(17370),l=i(38924),r=i(79870),d=i(55952),c=i(97144);let s=o.Ay.div.withConfig({displayName:"HeadlineWithText__Container",componentId:"sc-1ll9jpy-0"})(["display:flex;flex-direction:column;row-gap:32px;@media ",",print{row-gap:48px;}"],n.bp.t),p=(0,o.Ay)(r.H2).withConfig({displayName:"HeadlineWithText__Title",componentId:"sc-1ll9jpy-1"})([""," "," "," word-break:break-word;@media ",",print{","}"],r.R_,({$align:e})=>e&&(0,l.wk)(e),(0,l.BN)("1.5rem"),n.bp.p,(0,l.BN)("3rem")),u=(0,o.Ay)(d.Jr).withConfig({displayName:"HeadlineWithText__Text",componentId:"sc-1ll9jpy-2"})([""," word-break:break-word;"," ",""],({$align:e})=>e&&(0,l.wk)(e),({$smallText:e})=>e&&d.cB,({$defaultColor:e})=>!!e&&(0,o.AH)(["color:",";"],e)),m=({headline:e,headlineTag:t,text:i,headlineAlign:o,textAlign:n,className:l,smallText:r,defaultTextColor:d})=>(0,a.jsxs)(s,{className:l,children:[e&&(0,a.jsx)(p,Object.assign({},t?{as:t}:{},{$align:o,children:(0,a.jsx)(c.E,{children:e})})),i&&(0,a.jsx)(u,{$align:n,$smallText:r,$defaultColor:d,children:i})]})},7933:(e,t,i)=>{let a;i.r(t),i.d(t,{default:()=>eF});var o,n=i(37876),l=i(14232),r=i(34846),d=i(84840),c=i(27258),s=i(2091),p=i(32251),u=i(73055),m=i(21845),h=i(90347),g=i(61959),v=i(56422);v.d.XING;let f={sex:"",firstName:"",lastName:"",phone:"",email:"",academicTitle:"",interests:[],careerLevel:"",locations:[],coverLetterText:"",languages:[],educations:[],experiences:[],dateOfBirth:void 0,imported:"",nationality:"",country:"",region:"",city:"",street:"",zip:"",attachments:[],privacyPolicyAccepted:!1,fCaptchaSolution:"",cv:void 0,profileImage:void 0,externalProfileUrl:void 0},y="profile-img",_=({children:e,formData:t,widgetId:i})=>{var a,o,v,f,y,_,x,w,b,C;let{t:j}=(0,r.Bd)(),{apiData:I,seo:k,design:N,companySettings:T}=(0,p.N)(),A=(0,d.G)(N.colorSchema),{academicTitle:O}=I.talentPoolInitialData,P=(0,c.i)((null==(a=t.headline)?void 0:a.value)||"",A),S=(0,c.i)((null==(o=t.copytext)?void 0:o.value)||"",A),F=(0,s.b)(t.overlayColor,A,m.a.Black),L=(0,s.b)(t.backgroundColor,A,m.a.Transparent),D=null==(v=t.headline)?void 0:v.align,E=null==(f=t.copytext)?void 0:f.align,B=!I.friendlyCaptcha.isDisables&&t.activateFriendlyCaptcha.checked,R=(0,s.b)(t.buttonColor,A,m.a.Transparent),q=j("widget.talent-pool-application.privacy_policy_accepted").replace("%dataSecurityURL%",(0,h.Wj)((null==(x=null==(_=null==(y=null==T?void 0:T.footer)?void 0:y.importantLinks)?void 0:_[1])?void 0:x.href)||(null==(b=null==(w=I.footer)?void 0:w[1])?void 0:b.href))),$=t.makeRequiredProviders.checked,z=t.poolCategories.value,M=(0,g.k)(t.transparency.value,0,.5),W=(0,l.useMemo)(()=>[{value:"0",label:j("widget.application.second_step.sex_not_specified")},{value:"1",label:j("widget.application.second_step.sex_mr")},{value:"2",label:j("widget.application.second_step.sex_ms")},{value:"3",label:j("widget.application.second_step.sex_div")}],[j]),U=(0,l.useMemo)(()=>Object.values(O).map(e=>({value:e,label:e})),[O]),H={buttonColor:R,headline:P,isMainHeading:(null==k?void 0:k.isCustomMainHeadingEnabled)&&(null==(C=null==k?void 0:k.mainHeadingWidgetInfo)?void 0:C.id)===i,headlineAlign:D,copytext:S,copytextAlign:E,transparency:M,blur:t.blur.value,bgImage:t.image.image,backgroundColor:L,overlayColor:F,showPhoneField:t.activateTelephoneField.checked,isPhoneFieldRequired:t.makeRequiredTelephoneField.checked,showAcademicTitle:t.activateAcademicTitleField.checked,isAcademicTitleRequired:t.makeRequiredAcademicTitleField.checked,showSalutationField:t.activateSalutationField.checked,isSalutationFieldRequired:t.makeRequiredSalutationField.checked,showCareerLevelField:t.activateCareerLevelField.checked,isCareerLevelFieldRequired:t.makeRequiredCareerLevelField.checked,showCategoryField:t.activateCategoryField.checked,isCategoryFieldRequired:t.makeRequiredCategoryField.checked,showCoverLetterField:t.activateCoverLetterField.checked,isCoverLetterFieldRequired:t.makeRequiredCoverLetterField.checked,showLocationsField:t.activateLocationsField.checked,isLocationsFieldRequired:t.makeRequiredLocationsField.checked,showAttachments:t.activateAttachments.checked,showProviders:t.activateProviders.checked,isProvidersRequired:t.makeRequiredProviders.checked,isRequiredProvidersField:$,showFriendlyCaptcha:B,privacyPolicyLabel:q,poolCategories:z,
1satulationOptions:W,academicTitleOptions:U};return(0,n.jsx)(u.X,{data:H,widgetId:i,children:e})},x=u.t;var w=i(88992),b=i(5646),C=i(36877),j=i(63174),I=i(17370),k=i(38924),N=i(45031),T=i(96208),A=i(78116),O=i(85882),P=i(79350),S=i(53502),F=i(49602),L=i(21608),D=i(35854),E=i(19598),B=i(44543),R=i(98189),q=i(31562),$=i(72752);let z=e=>Object.keys(e).map(t=>({value:t,label:e[t]})),M=(e,t)=>{var i;return{sex:(null==(i=e.forInputData)?void 0:i.sex)||"",firstName:e.forInputData.firstname,lastName:e.forInputData.lastname,phone:e.forInputData.phone,email:e.forInputData.email,academicTitle:"",interests:[],careerLevel:"",locations:[],coverLetterText:"",languages:[...e.extraData.languages.map(e=>JSON.stringify(e))||[]],educations:[...e.extraData.educations.map(e=>JSON.stringify(e))||[]],experiences:[...e.extraData.experiences.map(e=>JSON.stringify(e))||[]],dateOfBirth:e.extraData.dateofbirth,imported:e.extraData.imported,nationality:e.extraData.nationality,country:e.extraData.country,region:e.extraData.region,city:e.extraData.city,street:e.extraData.street,zip:e.extraData.zip,attachments:[],privacyPolicyAccepted:!1,fCaptchaSolution:"",profileImage:t?{id:y,data:t}:void 0}};!function(e){e.EMAIL_ALREADY_EXIST="mail_address_already_exists",e.VERIFICATION_BAD_REQUEST="verification-bad-request",e.CAPTCHA_FAILED="failed-captcha-solution"}(o||(o={}));var W=i(8943),U=i(65614);let H=b.Ay.div.withConfig({displayName:"FormLayout",componentId:"sc-upscn6-0"})(["display:flex;flex-direction:column;gap:24px;"]);var V=i(56458),X=i(62191),G=i(38038),J=i(20104),Q=i(60250),K=i(48080),Y=i(20714),Z=i(37850),ee=i(95153),et=i(33844),ei=i(88161),ea=function(e,t,i,a){return new(i||(i=Promise))(function(o,n){function l(e){try{d(a.next(e))}catch(e){n(e)}}function r(e){try{d(a.throw(e))}catch(e){n(e)}}function d(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(l,r)}d((a=a.apply(e,t||[])).next())})};let eo=!1;var en=function(e,t,i,a){return new(i||(i=Promise))(function(o,n){function l(e){try{d(a.next(e))}catch(e){n(e)}}function r(e){try{d(a.throw(e))}catch(e){n(e)}}function d(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(l,r)}d((a=a.apply(e,t||[])).next())})};let el=(0,l.forwardRef)(({title:e,error:t,setImportedData:i,removeImportedData:o},d)=>{let{setValue:c}=(0,w.xW)(),{t:s}=(0,r.Bd)(),{frontendOAuthClientId:u,isBuilderEnv:m,apiData:h}=(0,p.N)(),{triggerPageEvent:g}=(0,q.K)(),{parseCV:f}=(()=>{let[{loading:e,error:t},i]=(0,E.bP)({url:`${D.Q}/widgets/talent-pool-application/cv`,method:"post"},{manual:!0,withAccessToken:!0});return{parseCV:(0,l.useCallback)(({cv:e,userId:t})=>{let a=new FormData;return a.append("cv",e),a.append("userId",t),i({data:a,headers:{"Content-Type":"multipart/form-data"}}).then(({data:e})=>e)},[i]),error:t,isLoading:e}})(),{loadImportedUserData:y}=(()=>{let{frontendOAuthClientId:e}=(0,p.N)(),{getUrlOfAuthorization:t}=(()=>{let[{data:e,loading:t,error:i},a]=(0,E.bP)({url:`${D.Q}/widgets/talent-pool-application/authorization`,method:"get"},{manual:!0});return{getUrlOfAuthorization:(0,l.useCallback)(e=>a({params:e}).then(({data:e})=>e.data),[a]),data:e,error:i,isLoading:t}})(),{importProfile:i}=(()=>{let[{data:e,loading:t,error:i},a]=(0,E.bP)({url:`${D.Q}/widgets/talent-pool-application/imported-profile`,method:"get"},{manual:!0,withAccessToken:!0});return{importProfile:(0,l.useCallback)(e=>a({params:e}).then(({data:e})=>e),[a]),data:e,error:i,isLoading:t}})(),o=(0,l.useRef)(null),n=(0,l.useRef)(null),r=(0,l.useCallback)(t=>ea(void 0,void 0,void 0,function*(){var a,l,r;if(t){null==(a=o.current)||a.close();try{let a=yield i({userId:e,"params[requestTokenId]":t.requestTokenId,"params[u]":t.u,"params[oauth_token]":t.oauth_token,"params[oauth_verifier]":t.oauth_verifier});n.current&&(n.current.resolve(a),n.current=null)}catch(e){n.current&&(n.current.reject(e.response?Error(null==(r=null==(l=e.response)?void 0:l.data)?void 0:r.errorMessage):e),n.current=null)}}}),[e,i]);return{loadImportedUserData:(0,l.useCallback)(e=>ea(void 0,[e],void 0,function*({provider:e,userId:i}){var l;if(o.current=null==window?void 0:window.open("about:blank","","scrollbars=1,width=640,height=940"),o.current){let e=o.current.document;e.open(),e.write("<!DOCTYPE html><html><head><title>Loading</title></head><body><p>Please wait...</p></body></html>"),e.close()}try{let{url:l,aid:d}=yield t({userId:i,provider:e,redirect_uri:`${window.location.origin}${window.location.pathname}`});if(!o.current)return;return(!a||eo)&&(eo=!1,(a=new BroadcastChannel(ei.GF)).onmessage=function(e){var t,i,o,n;e.isTrusted&&(null==(t=e.data)?void 0:t.name)===`${ei.i}_${d}`&&(null==(i=null==a?void 0:a.postMessage)||i.call(a,`${ei.px}_${d}`),null==(o=null==a?void 0:a.close)||o.call(a),eo=!0,r(null==(n=e.data)?void 0:n.payload))}),o.current.location.href=l,new Promise((e,t)=>
1{n.current={resolve:e,reject:t}})}catch(e){null==(l=o.current)||l.close()}}),[t])}})(),{0:_,1:x}=(0,l.useState)(),{0:b,1:C}=(0,l.useState)(void 0),{fileUploadInformation:j,providers:I}=h.talentPoolInitialData,k=(null==I?void 0:I.map(({id:e})=>e))||[],N=(0,l.useCallback)(()=>{o(),x(void 0)},[o]),T=()=>m?(g(R.C.RestrictedBuilderEvent,{widgetType:A.x.Application,eventName:"icon-for-get-user-data-click"}),!1):(!_||!!confirm(s("widget.application.first_step.provider-import-confirmation")))&&(_&&N(),!0);return(0,l.useImperativeHandle)(d,()=>({clearConnector:N})),(0,n.jsx)(et.wz,{avaliableConnectors:k,title:e,fileTypes:j.filetypes,selectedConnector:_,languagesArray:[],loadingConnector:b,error:t,onChangeCV:e=>en(void 0,void 0,void 0,function*(){if(e&&T()){c("cvLoading",!0),C(v.d.DOCUMENT);try{let t=yield en(void 0,void 0,void 0,function*(){return yield f({cv:e,userId:u})}),a=(e=>{var t;let i=(0,$.BF)(null==(t=e.forInputData)?void 0:t.profileImage);return M(e,i)})(t),o=Object.assign(Object.assign({},a),{cv:{id:"cv",data:e}});i(o)}catch(t){console.error("[ERROR: handleChangeCV]",t),i({cv:{id:"cv",data:e}})}finally{C(void 0),x(v.d.DOCUMENT),c("cvLoading",!1)}}}),onChangeProvider:(e,...t)=>en(void 0,[e,...t],void 0,function*(e,t=!0){if(T()){t&&C(e);try{var a,o,n,l;let r=yield y({provider:e,userId:u});if(!r){x(void 0),t&&C(void 0);return}let d=yield(a=void 0,o=void 0,n=void 0,l=function*(){let e=r.forInputData.profileImageUrl;return M(r,e?yield(0,$.yE)(e):void 0)},new(n||(n=Promise))(function(e,t){function i(e){try{d(l.next(e))}catch(e){t(e)}}function r(e){try{d(l.throw(e))}catch(e){t(e)}}function d(t){var a;t.done?e(t.value):((a=t.value)instanceof n?a:new n(function(e){e(a)})).then(i,r)}d((l=l.apply(a,o||[])).next())})),c=Object.assign({},d);i(c),x(e)}catch(e){alert("Error: failed to retrieve user data from provider")}finally{t&&C(void 0)}}}),onRemove:N,withBg:!0,hideSeparator:!0})});var er=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)0>t.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(i[a[o]]=e[a[o]]);return i};let ed=b.Ay.div.withConfig({displayName:"FormBottom__Container",componentId:"sc-2fghvc-0"})([""]),ec=b.Ay.div.withConfig({displayName:"FormBottom__AttachmentsLayout",componentId:"sc-2fghvc-1"})(["margin-bottom:32px;"]),es=(0,b.Ay)(Q.$).withConfig({displayName:"FormBottom__StyledFileList",componentId:"sc-2fghvc-2"})(["margin-top:24px;"]),ep=b.Ay.div.withConfig({displayName:"FormBottom__DropzoneContainer",componentId:"sc-2fghvc-3"})(["margin-top:20px;display:flex;justify-content:center;align-items:center;"]),eu=b.Ay.div.withConfig({displayName:"FormBottom__ButtonContainer",componentId:"sc-2fghvc-4"})(["display:flex;align-items:center;justify-content:center;margin-top:32px;"]);var em=i(6962);let eh=b.Ay.div.withConfig({displayName:"FormTop__Container",componentId:"sc-1l2764-0"})(["width:100%;"]),eg=b.Ay.div.withConfig({displayName:"FormTop__GridLayout",componentId:"sc-1l2764-1"})([""," "," gap:24px;@media ","{","}"],j.Vg,({$isTwoColumn:e})=>
1(0,j.cb)(e?2:1),I.bp.p,({$isTwoColumn:e})=>(0,j.cb)(e?2:3)),ev=b.Ay.div.withConfig({displayName:"FormTop__Col",componentId:"sc-1l2764-2"})([""," @media ","{","}"],({$isTwoColumn:e})=>(0,j.vd)(e?2:1),I.bp.p,(0,j.vd)(1));var ef=i(5884);let ey=(0,b.Ay)(ef.G).withConfig({displayName:"Header__Headline",componentId:"sc-1jg678-0"})(["h2,&{color:",";}"],m.a.White),e_=(0,b.AH)([""," "," @media ","{"," ","}@media ","{"," ","}"],(0,j.xU)(2),(0,j.vd)(10),I.bp.p,(0,j.xU)(3),(0,j.vd)(18),I.bp.d_l,(0,j.xU)(5),(0,j.vd)(16)),ex=(0,b.Ay)(T.w).withConfig({displayName:"TalentPool__Container",componentId:"sc-153ca7t-0"})(["padding-bottom:",";@media ","{padding-bottom:",";}"],(0,k.ls)(5),I.bp.t,(0,k.ls)(10)),ew=(0,b.Ay)(P.m).withConfig({displayName:"TalentPool__StyledWrapper",componentId:"sc-153ca7t-1"})(["position:static;"]),eb=b.Ay.form.withConfig({displayName:"TalentPool__Form",componentId:"sc-153ca7t-2"})([""]),eC=(0,b.Ay)(S.o).withConfig({displayName:"TalentPool__TopContainer",componentId:"sc-153ca7t-3"})(["padding:128px 0 0;@supports (-webkit-touch-callout:none){background-attachment:initial;}"]),ej=b.Ay.div.withConfig({displayName:"TalentPool__BottomContainer",componentId:"sc-153ca7t-4"})(["width:100%;"]),eI=b.Ay.div.withConfig({displayName:"TalentPool__Box",componentId:"sc-153ca7t-5"})([""," "," "," "," @media ","{"," "," ","}@media ","{"," "," ","}"],j.Vg,(0,j.cb)(12),(0,j.xU)(1),(0,j.vd)(12),I.bp.p,(0,j.cb)(22),(0,j.xU)(2),(0,j.vd)(22),I.bp.d_l,(0,j.cb)(24),(0,j.xU)(1),(0,j.vd)(24)),ek=(0,b.Ay)(eI).withConfig({displayName:"TalentPool__TopBox",componentId:"sc-153ca7t-6"})([""," padding-top:",";padding-bottom:",";backdrop-filter:blur(",");-webkit-backdrop-filter:blur(",");background-color:",";transition:padding-bottom ","s ease-in-out;@media ","{padding-top:",";padding-bottom:",";}"],(0,k.Mc)(N.aM,N.sS),(0,k.ls)(6),({$withBottomPadding:e})=>e?(0,k.ls)(5):0,({$blur:e})=>`${e}px`,({$blur:e})=>`${e}px`,({$transparency:e,$overlayColor:t})=>(0,C.B3)(t,e),F.fe,I.bp.p,(0,k.ls)(9),({$withBottomPadding:e})=>e?(0,k.ls)(8):0),eN=(0,b.Ay)(eI).withConfig({displayName:"TalentPool__BottomBox",componentId:"sc-153ca7t-7"})([""," background-color:",";padding:"," 0 ",";@media ","{padding:"," 0 ",";}"],(0,k.EV)(N.aM,N.sS),m.a.Grey,(0,k.ls)(4),(0,k.ls)(4),I.bp.p,(0,k.ls)(8),(0,k.ls)(4)),eT=(0,b.Ay)(({isSubmitted:e,className:t})=>{let{t:i}=(0,r.Bd)(),{headline:a,isMainHeading:o,headlineAlign:l,copytext:d,copytextAlign:c}=x(),s=i("widget.talent-pool-application.thanks_title"),p=i("widget.talent-pool-application.thanks_description");return(0,n.jsx)(ey,Object.assign({className:t,headline:e?s:a,headlineAlign:l,text:e?p:d,textAlign:c,defaultTextColor:m.a.White},o?{headlineTag:"h1"}:void 0))}).withConfig({displayName:"TalentPool__StyledHeader",componentId:"sc-153ca7t-8"})([""," "," @media ","{"," ","}@media ","{"," ","}"],(0,j.xU)(3),(0,j.vd)(8),I.bp.p,(0,j.xU)(3),(0,j.vd)(18),I.bp.d_l,(0,j.xU)(5),(0,j.vd)(16)),eA=(0,b.Ay)(F.c6).withConfig({displayName:"TalentPool__TopExpander",componentId:"sc-153ca7t-9"})(["",";"],e_),eO=(0,b.Ay)(({className:e,onFocus:t})=>{let{t:i}=(0,r.Bd)(),{showAcademicTitle:a,showSalutationField:o,showPhoneField:l,isSalutationFieldRequired:d,isAcademicTitleRequired:c,isPhoneFieldRequired:s,satulationOptions:p,academicTitleOptions:u}=x(),h=a===o,g=i(c?"widget.application.second_step.academic_placeholder_mandatory":"widget.application.second_step.academic_placeholder"),v=i(d?"widget.application.second_step.sex_placeholder_mandatory":"widget.application.second_step.sex_placeholder"),f=i(s?"widget.application.second_step.phone_placeholder_mandatory":"widget.application.second_step.phone_placeholder");return(0,n.jsx)(eh,{className:e,children:(0,n.jsxs)(H,{children:[(0,n.jsxs)(eg,{$isTwoColumn:h,children:[o&&(0,n.jsx)(Y.X,{Component:V.l,name:"sex",inputLabel:v,rules:{required:d&&i("widget.application.second_step.sex_error_message")},options:p,onFocus:t,errorColor:m.a.White,muiView:!0}),a&&(0,n.jsx)(Y.X,{Component:V.l,name:"academicTitle",inputLabel:g,rules:{required:c&&i("widget.application.second_step.academic_error_message")},options:u,onFocus:t,errorColor:m.a.White,muiView:!0}),(0,n.jsx)(ev,{$isTwoColumn:h,children:(0,n.jsx)(Y.X,{Component:em.k,name:"firstName",autoComplete:"given-name",inputLabel:i("widget.application.second_step.first_name_placeholder"),rules:{required:i("widget.application.second_step.first_name_error_message")},onFocus:t,errorColor:m.a.White})}),(0,n.jsx)(ev,{$isTwoColumn:h,children:(0,n.jsx)(Y.X,{Component:em.k,name:"lastName",autoComplete:"family-name",inputLabel:i("widget.application.second_step.last_name_placeholder"),rules:{required:i("widget.application.second_step.last_name_error_message")},onFocus:t,errorColor:m.a.White})})]}),(0,n.jsx)(Y.X,{Component:em.k,name:"email",type:"email",autoComplete:"email",inputLabel:i("widget.application.second_step.email_placeholder"),rules:{required:i("widget.application.second_step.email_error_message")},onFocus:t,errorColor:m.a.White}),l&&(0,n.jsx)(Y.X,{Component:em.k,name:"phone",type:"tel",autoComplete:"tel",inputLabel:f,rules:{required:s&&i("widget.application.second_step.phone_error_message")},onFocus:t,errorColor:m.a.White})]})})}).withConfig({displayName:"TalentPool__FormTopContent",componentId:"sc-153ca7t-10"})([""," padding:"," 0 ",";@media ","{padding:"," 0 ",";}@media ","{padding-top:",";}
1"],e_,(0,k.ls)(6),(0,k.ls)(5),I.bp.p,(0,k.ls)(8),(0,k.ls)(8),I.bp.d_l,(0,k.ls)(9)),eP=(0,b.Ay)(({isLoading:e,className:t})=>{let{t:i}=(0,r.Bd)(),{control:a,register:o,watch:d,setValue:c,getValues:s,clearErrors:u,formState:{dirtyFields:m,errors:h}}=(0,w.xW)(),{apiData:g,isBuilderEnv:v}=(0,p.N)(),{buttonColor:_,privacyPolicyLabel:b,showProviders:C,showAttachments:j,showLocationsField:I,showCareerLevelField:k,showCategoryField:N,showCoverLetterField:T,showFriendlyCaptcha:A,isProvidersRequired:O,isLocationsFieldRequired:P,isCareerLevelFieldRequired:S,isCategoryFieldRequired:F,isCoverLetterFieldRequired:L,isRequiredProvidersField:D}=x(),{fields:E,append:B,remove:R}=(0,w.jz)({control:a,name:"attachments"}),{locations:q,careerLevel:$,category:M,fileUploadInformation:Q}=g.talentPoolInitialData,et=(0,l.useMemo)(()=>z(q),[q]),ei=(0,l.useMemo)(()=>z($),[$]),ea=(0,l.useMemo)(()=>z(M),[M]),eo=(0,l.useRef)(f),en=(0,l.useRef)(null),em=D?i("widget.application.first_step.upload_resume_title_mandatory"):i("widget.application.first_step.upload_resume_title"),eh=F?i("widget.talent_pool_application.interests_placeholder_mandatory"):i("widget.talent_pool_application.interests_placeholder"),eg=S?i("widget.talent_pool_application.career_level_placeholder_mandatory"):i("widget.talent_pool_application.career_level_placeholder"),ev=P?i("widget.talent_pool_application.locations_placeholder_mandatory"):i("widget.talent_pool_application.locations_placeholder"),ef=L?i("widget.talent-pool-application.covering_letter_placeholder_mandatory"):i("widget.talent-pool-application.covering_letter_placeholder"),ey=F&&i("widget.talent_pool_application.interests_error_message"),e_=S&&i("widget.talent_pool_application.career_level_error_message"),ex=P&&i("widget.talent_pool_application.locations_error_message"),ew=L&&i("widget.talent-pool-application.covering_letter_error_message"),eb=i("widget.application.third_step.privacy_policy_error_message"),eC=i("widget.application.first_step.upload_attachments_tooltip").replace("%fileTypes%",g.talentPoolInitialData.fileUploadInformation.filetypes.join(", ")).replace("%qty%",g.talentPoolInitialData.fileUploadInformation.displayMaxSize),ej=e=>{var t;let i=E.findIndex(({id:t})=>t===e.id);return -1!==i?R(i):e.id===y?c("profileImage",void 0):void("cv"===e.id&&(null==(t=null==en?void 0:en.current)||t.clearConnector()))},eI=e=>{let t=s();eo.current=Object.assign({},t),Object.entries((0,ee.SY)(t,e)).forEach(([e,t])=>{c(e,t)}),u("cv")},ek=()=>{let e=er(s(),[]);Object.entries(eo.current).forEach(([t,i])=>{let a=m[t];c(t,a?e[t]:i)})},eN=d("cv"),eT=d("profileImage"),eA=d("email"),eO=(0,W.lB)(()=>{let e=[];return eN&&e.push(eN),eT&&e.push(Object.assign(Object.assign({},eT),{dynamicContentAddition:!0})),[...e,...E]},[eN,eT,E]),eP=!!eO.length,eS=C||eP||j;return(0,n.jsxs)(ed,{className:t,children:[eS&&(()=>{var e;return(0,n.jsxs)(ec,{children:[C&&O&&(0,n.jsx)(U.U,Object.assign({},o("cv",{required:i("widget.application.first_step.upload_resume_error_message")}))),C&&(0,n.jsx)(el,{ref:en,title:em,error:null==(e=h.cv)?void 0:e.message,setImportedData:eI,removeImportedData:ek}),eP&&(0,n.jsx)(es,{title:i("widget.application.first_step.attachments_title"),fileList:eO,onDelete:ej,isInvertedLineColor:!0}),j&&(0,n.jsx)(ep,{children:(0,n.jsx)(K.G,{tooltipText:eC,label:i("widget.application.first_step.upload_attachments_title"),fileTypes:Q.filetypes,maxSize:parseInt(Q.maxSize,10),name:"attachments",onChange:e=>{B(e.map(e=>({data:e})))}})})]})})(),(0,n.jsxs)(H,{children:[N&&(0,n.jsx)(Y.X,{Component:V.l,name:"interests",inputLabel:eh,rules:{required:ey},options:ea,isMulti:!0,muiView:!0}),k&&(0,n.jsx)(Y.X,{Component:V.l,name:"careerLevel",inputLabel:eg,rules:{required:e_},options:ei,muiView:!0}),I&&(0,n.jsx)(Y.X,{Component:V.l,name:"locations",inputLabel:ev,rules:{required:ex},options:et,isMulti:!0,muiView:!0}),T&&(0,n.jsx)(Y.X,{Component:X.T,name:"coverLetterText",inputLabel:ef,rules:{required:ew}}),(0,n.jsx)(Y.X,{Component:G.S,name:"privacyPolicyAccepted",inputLabel:b,rules:{required:eb}}),(0,n.jsx)(Z.K,{visible:A&&!v&&!!eA,onSolved:e=>{c("fCaptchaSolution",e,{shouldValidate:!0})}})]}),(0,n.jsx)(eu,{children:(0,n.jsx)(J.$n,{disabled:d("cvLoading"),label:i("widget.talent-pool-application.submit"),type:"submit",color:_,loading:e})})]})}).withConfig({displayName:"TalentPool__FormBottomContent",componentId:"sc-153ca7t-11"})(["",""],e_),eS=()=>{let{mode:e}=(0,p.N)(),{blur:t,bgImage:i,poolCategories:a,transparency:d,buttonColor:c,widgetId:s,overlayColor:u,backgroundColor:m}=x(),{submit:h,isLoading:g}=(()=>{let{t:e}=(0,r.Bd)(),{isBuilderEnv:t,frontendOAuthClientId:i,pageId:a,locale:n}=(0,p.N)(),{setError:d}=(0,w.xW)(),{triggerPageEvent:c}=(0,q.K)(),{submit:s,isLoading:u,error:m}=(()=>{let[{loading:e,error:t},i]=(0,E.bP)({url:`${D.Q}/widgets/talent-pool-application/application`,method:"post"},{manual:!0});return{submit:(0,l.useCallback)(e=>{let{cv:t,profileImage:a,attachments:o,applicationData:n,userId:l,pageId:r,widgetId:d,isSkipServerCodeErrors:c=!1}=e,s=new FormData;return t&&s.append("cv",t),a&&s.append("profileImage",a),null==o||o.forEach((e,t)=>{s.append(`attachment-${t}`,e)}),s.append("formData",JSON.stringify(n)),s.append("userId",l),s.append("pageId",r),s.append("widgetId",String(d)),e["f-captcha-solution"]&&(s.append("f-captcha-solution",e["f-captcha-solution"]),s.append("isSkipServerCodeErrors",JSON.stringify(c))),i({data:s,headers:{"Content-Type":"multipart/form-data"}}).then(({data:e})=>e).catch(e=>{throw e})},[i]),error:t,isLoading:e}}
1)(),{widgetId:h=0,showFriendlyCaptcha:g}=x(),{exist:v,valid:f,reset:y,start:_}=(0,B.X)(),b=l=>(function(e,t,i,a){return new(i||(i=Promise))(function(o,n){function l(e){try{d(a.next(e))}catch(e){n(e)}}function r(e){try{d(a.throw(e))}catch(e){n(e)}}function d(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(l,r)}d((a=a.apply(e,t||[])).next())})})(void 0,[l],void 0,function*({data:l,poolCategories:r,isSkipServerErrors:p=!1}){var u,m,x,w;if(t)return void c(R.C.SubmitApplicationForm,{widgetType:A.x.TalentPoolApplication});if(g&&!f)return;let C={applicationData:((e,{locale:t,poolCategories:i})=>({applicationProfileDTO:{locale:t,firstname:e.firstName,lastname:e.lastName,sex:e.sex,academicTitle:e.academicTitle,email:e.email,coverLetterText:e.coverLetterText,privacyPolicyAccepted:e.privacyPolicyAccepted,dateofbirth:e.dateOfBirth,imported:e.imported,nationality:e.nationality,country:e.country,region:e.region,city:e.city,street:e.street,zip:e.zip,languages:e.languages.map(e=>JSON.parse(e)),educations:e.educations.map(e=>JSON.parse(e)),experiences:e.experiences.map(e=>JSON.parse(e))},questionsDTO:{interests:e.interests,careerLevel:e.careerLevel,locations:e.locations},poolCategories:i}))(l,{locale:n,poolCategories:r}),userId:i,pageId:a,widgetId:h,cv:null==(u=l.cv)?void 0:u.data,profileImage:null==(m=l.profileImage)?void 0:m.data,attachments:null==(x=l.attachments)?void 0:x.map(({data:e})=>e),"f-captcha-solution":l.fCaptchaSolution,isSkipServerCodeErrors:p};try{return yield s(C),{success:!0}}catch(i){let{errorCode:t}=(null==(w=i.response)?void 0:w.data)||{};switch(t){case o.EMAIL_ALREADY_EXIST:d("email",{type:"manual",message:e("widget.talent-pool-application.email_already_exist_error_message")},{shouldFocus:!0});break;case o.VERIFICATION_BAD_REQUEST:if(v){if(!confirm(e("widget.application.verification_bad_request")))return void y();return void(yield b({data:l,poolCategories:r,isSkipServerErrors:!0}))}break;case o.CAPTCHA_FAILED:if(v)return void y()}if(v)return void _()}});return{submit:b,isLoading:u,error:m}})(),{handleSubmit:v}=(0,w.xW)(),{0:f,1:y}=(0,l.useState)(!0),{0:_,1:C}=(0,l.useState)(!1),{0:j,1:I}=(0,l.useState)(!1);return(0,n.jsx)(b.NP,{theme:{buttonColor:c},children:(0,n.jsx)(ex,{widgetId:s,widgetName:A.x.TalentPoolApplication,backgroundColor:m,children:(0,n.jsxs)(eb,{onSubmit:v(e=>(function(e,t,i,a){return new(i||(i=Promise))(function(o,n){function l(e){try{d(a.next(e))}catch(e){n(e)}}function r(e){try{d(a.throw(e))}catch(e){n(e)}}function d(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(l,r)}d((a=a.apply(e,t||[])).next())})})(void 0,void 0,void 0,function*(){let t=yield h({data:e,poolCategories:a});(null==t?void 0:t.success)&&(I(!0),y(!1),C(!1))})),children:[(0,n.jsx)(eC,{src:i.src,fixed:!0,children:(0,n.jsx)(ew,{children:(0,n.jsx)(L.x,{children:(0,n.jsxs)(ek,{$blur:t,$transparency:d,$withBottomPadding:j,$overlayColor:u,children:[(0,n.jsx)(eT,{isSubmitted:j}),(0,n.jsx)(eA,{isOpen:f,children:(0,n.jsx)(eO,{onFocus:()=>{C(!0)}})})]})})})}),(0,n.jsx)(F.c6,{isOpen:_||e===O.q5.Build,children:(0,n.jsx)(ej,{children:(0,n.jsx)(ew,{children:(0,n.jsx)(L.x,{children:(0,n.jsx)(eN,{children:(0,n.jsx)(eP,{isLoading:g})})})})})})]})})})},eF=function({widgetId:e,formData:t}){let{apiData:i,locale:a}=(0,p.N)(),o=(0,w.mN)({defaultValues:f}),l={siteKey:i.friendlyCaptcha.siteKey,puzzleEndpoint:i.friendlyCaptcha.puzzleEndpoint,language:a};return(0,n.jsx)(_,{formData:t,widgetId:e,children:(0,n.jsx)(B.P,Object.assign({},l,{children:(0,n.jsx)(w.Op,Object.assign({},o,{children:(0,n.jsx)(eS,{})}))}))})}},27258:(e,t,i)=>{i.d(t,{i:()=>n});var a=i(52295),o=i(8943);let n=(e,t,i)=>(0,o.lB)(()=>(0,a.jJ)(e,t,i,!0),[e,t,i])},38283:(e,t,i)=>{i.d(t,{D:()=>o});var a=i(14232);let o=(e=0)=>{let{0:t,1:i}=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let t=setTimeout(()=>{i(!0)},e);return()=>clearTimeout(t)},[e]),t}},49602:(e,t,i)=>{i.d(t,{c6:()=>m,fe:()=>d});var a=i(37876),o=i(5646),n=i(51580),l=i(45031),r=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)0>t.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(i[a[o]]=e[a[o]]);return i};let d=l.H6.duration,c=(0,o.AH)(["grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows ","s ease-in-out,opacity ","s linear ","s,visibility ","s linear;"],d,d/2,d/2,d),s=(0,o.AH)(["grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows ","s ease-in-out,opacity ","s linear,visibility ","s linear;"],d,d/2,d),p=o.Ay.div.withConfig({displayName:"Expander__Container",componentId:"sc-zy4yxo-0"})(["display:grid;",";"],({$isOpen:e})=>e?c:s),u=o.Ay.div.withConfig({displayName:"Expander__Inner",componentId:"sc-zy4yxo-1"})(["grid-row:1 / span 2;overflow:hidden;"]),m=e=>{var{id:t,isOpen:i,onOpenEnd:o,onCloseEnd:l,children:d,className:c}=e,s=r(e,["id","isOpen","onOpenEnd","onCloseEnd","children","className"]);let m=(0,n.K)(()=>{i?null==o||o():null==l||l()});return(0,a.jsx)(p,Object.assign({id:t},m,{$isOpen:i,className:c,"aria-hidden":!i,hidden:!i,inert:i?void 0:""},s,{children:(0,a.jsx)(u,{children:d})}))}},53502:(e,t,i)=>{i.d(t,{o:()=>m});var a=i(37876),o=i(14232),n=i(5646),l=i(63853),r=i(42044),d=i(38924),c=i(79685),s=i(85812);
1let p=n.Ay.div.withConfig({displayName:"BackgroundImage__Overlay",componentId:"sc-ckuva5-0"})([""," z-index:",";"," ",";background-image:url(",");background-attachment:",";background-size:cover;background-position:center;transition:transform 0.5s ease-in-out;@supports (-webkit-touch-callout:none){background-attachment:initial;}@media print{background-attachment:initial;}"],d.Pu,({$zIndex:e})=>e||0,({$gradient:e})=>e&&(0,d.yh)(e,45),({$overlay:e})=>e&&(0,d.WK)(e),({$src:e})=>e,({$fixed:e})=>e?"fixed":"scroll"),u=n.Ay.div.withConfig({displayName:"BackgroundImage__Container",componentId:"sc-ckuva5-1"})(["position:relative;height:100%;width:100%;",""],({$hoverScale:e})=>e&&(0,n.AH)(["&:hover ","{transform:scale(",");}"],p,e)),m=({src:e,gradient:t,overlay:i,hoverScale:n,fixed:d=!1,children:m,className:h,zIndex:g,resizingType:v=r.Ch.Fill,gravity:f=r.rn.Center,useImageRatio:y=!0})=>{let _=(0,o.useRef)(!0),[x,{width:w,height:b}]=(0,c.W)(),{0:C,1:j}=(0,o.useState)(""),{getRespImgUrl:I}=(0,s.o)({resizingType:v,gravity:f,useImageRatio:y}),k=(0,l.YQ)((e,t,i)=>{let a=I(e,t,i);a&&j(a)},300);return(0,o.useEffect)(()=>{if((0!==w||0!==b)&&e)if(_.current){_.current=!1;let t=I(w,b,e);t&&j(t)}else k(w,b,e)},[w,b,e,I,k]),(0,a.jsxs)(u,{className:h,$hoverScale:n,children:[e&&(0,a.jsx)(p,{ref:x,$gradient:t,$overlay:i,$src:C,$fixed:d,$zIndex:g}),m]})}},73055:(e,t,i)=>{i.d(t,{X:()=>l,t:()=>r});var a=i(37876),o=i(14232);let n=(0,o.createContext)(void 0);function l({children:e,data:t,widgetId:i}){let o=Object.assign(Object.assign({},t),{widgetId:i});return(0,a.jsx)(n.Provider,{value:o,children:e})}function r(){let e=(0,o.useContext)(n);if(!e)throw Error("[WidgetDataProvider]: useBaseWidgetData must be used within a BaseWidgetDataProvider");return e}},85812:(e,t,i)=>{i.d(t,{o:()=>r});var a=i(14232),o=i(14453),n=i(59698),l=i(42044);let r=({resizingType:e=l.Ch.Fill,gravity:t=l.rn.Center,useImageRatio:i=!0})=>{let r=n.k?1:window.devicePixelRatio;return{getRespImgUrl:(0,a.useCallback)((a,n,l)=>{let d=Math.ceil(a*r),c=Math.ceil(n*r),s=(0,o._Z)({height:c,width:d,useImageRatio:i});return(0,o.DE)(l,{width:s.width,height:s.height,resizingType:e,gravity:t})},[e,r,r])}}},96208:(e,t,i)=>{i.d(t,{w:()=>_});var a=i(37876),o=i(14232),n=i(5646),l=i(64072),r=i(44789),d=i(78116),c=i(85882),s=i(32251),p=i(17370),u=i(53502),m=i(38283),h=i(72655);let g=[d.x.TargetGroups,d.x.Iconbox,d.x.Imagebox,d.x.Iframe,d.x.Quotes,d.x.Contacts,d.x.Events,d.x.Certificates,d.x.Social,d.x.Gallery,d.x.Video],v=n.Ay.section.withConfig({displayName:"Section__Container",componentId:"sc-xkeag-0"})(["background-color:",";@media ","{opacity:0;opacity:",';}&:not([data-widget="job-ad-header"]) + [data-widget="job-ad-headline"]{padding-top:24px;@media ',",print{padding-top:40px;}}"],({$backgroundColor:e})=>e,p.bp.p,({$isVisible:e})=>+!!e,p.bp.d),f=n.Ay.div.withConfig({displayName:"Section__Content",componentId:"sc-xkeag-1"})(["position:relative;z-index:1;",""],({$withoutTopOffset:e})=>e&&(0,n.AH)(["&&{padding-top:0;margin-top:0;}"])),y=n.Ay.div.withConfig({displayName:"Section__ContentStartElement",componentId:"sc-xkeag-2"})(["height:0;width:0;opacity:0;"]),_=(0,o.forwardRef)(({widgetName:e,backgroundColor:t,backgroundImage:i,gradient:p,overlay:_,children:x,widgetId:w,isBgFixed:b=!0,className:C,bgZIndex:j,exportPdf:I=!1},k)=>{let{mode:N,device:T}=(0,s.N)(),A=(0,m.D)(100),O=!t||(0,l.MW)(t),{0:P,1:S}=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!w)return;let i=h.N.setMeta(w,{type:e,backgroundColor:t||void 0}),a=h.N.getMetaByIndex(i-1);a&&N!==c.q5.Build&&S(g.includes(e)&&a.type===d.x.Headline&&a.backgroundColor===(t||void 0))},[t,e,w]),(0,a.jsx)(n.NP,{theme:{isBgIsLight:O},children:(0,a.jsx)(v,{ref:k,"data-widget":e,"data-widget-id":w,$backgroundColor:t,$isVisible:A||"mobile"===T,"data-export-pdf":I,children:(0,a.jsx)(u.o,{src:null==i?void 0:i.src,gradient:p,overlay:_,fixed:b,zIndex:j,children:(0,a.jsxs)(f,{className:C,$withoutTopOffset:P,children:[(0,a.jsx)(y,{tabIndex:-1,className:r.T}),x]})})})})});_.displayName="Section"}}]);
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.