PageSourceSearch

https://www.vzug.com/apprentice-application-feature.module-ZRW2OVS5.js

js vzug.com collected 2026-10-01 11:25:03 UTC 40,829 bytes, 1 lines download raw bytes

1import{a as Fi,b as ue,c as Pi}from"./chunk-L2D75OT3.js";import{a as bi,b as Ti}from"./chunk-WML2KKRD.js";import{a as We,b as Qe}from"./chunk-COBTFMEO.js";import"./chunk-JHJ2LJAO.js";import{d as xi}from"./chunk-EPBWRYCN.js";import{c as Ye}from"./chunk-BGW4JFVC.js";import{i as Si}from"./chunk-ISMLZ5AO.js";import"./chunk-ERVRDRGD.js";import{a as di,b as He,c as mi,d as ce,e as ze,r as je,s as Ue,w as Ge,x as Ke,y as qe}from"./chunk-NKA5FZDD.js";import{Dc as gi,Mc as hi,Nc as me,Qc as _i,Sc as vi,Vc as yi,fa as Ai,vc as I}from"./chunk-KNPV2EHA.js";import"./chunk-DDP3RWEG.js";import{a as le,b as de}from"./chunk-RCCDZFTR.js";import{b as ui,c as fi,e as $e,f as se}from"./chunk-7RSDEBSU.js";import{A as Re,I as ke,a as re,c as Ne,e as Be,g as pe,j as ri,n as Le,r as pi,s as ci,t as si,v as li}from"./chunk-Z5KZRLC7.js";import{c as Ci}from"./chunk-QWOVKJEQ.js";import{E as we,H as Ee,_ as oi,f as S,h as De,o as Me,v as Oe}from"./chunk-H7WMH4BU.js";import{$ as K,Aa as Qt,Ab as ti,Ba as ve,Ca as Zt,F as Ut,Jd as ae,Ka as Jt,Kd as oe,R as Gt,Wb as Pe,Y as G,Yc as ai,Z as Kt,ab as Xt,b as zt,c as j,ca as Te,gc as ii,ha as C,ia as B,j as ne,n as jt,ob as ei,pc as ni,r as U,sa as q,ta as h,ua as V,ud as Ve,va as qt,vd as Ie,wa as Yt,xa as _,xb as Y,ya as Wt,za as _e}from"./chunk-5JM3UTP4.js";import{$ as Mt,$b as $,Aa as E,Ba as R,Bb as Bt,Fa as p,Ib as s,Ic as te,K as N,Na as v,Oa as y,Oc as P,Qc as g,R as xt,Ub as Lt,Uc as xe,Vc as Fe,Vd as $t,Wc as be,Za as wt,_b as H,da as Ot,dc as z,eb as k,gb as Et,kb as Nt,o as X,oc as b,qc as T,qd as Ht,ra as ee,rd as ie,s as Dt,sd as Ft,tc as Rt,td as bt,ua as F,uc as kt,va as Q,vc as l,w as O,wc as d,x as he,xc as u,xd as o,yc as m,yd as r}from"./chunk-4MWVABFH.js";import{a as f,b as A}from"./chunk-76DGGKHL.js";var Ze=C("[APPRENTICE APPLICATION] Init Effect"),fe=C("[APPRENTICE APPLICATION] Set Initial data",B()),Vi=C("[APPRENTICE APPLICATION] Set Steps",B()),Je=C("[APPRENTICE APPLICATION] Set Progress Visibility",B()),Xe=C("[APPRENTICE APPLICATION] Set PreviousStep"),et=C("[APPRENTICE APPLICATION] Set CurrentStep",B()),tt=C("[APPRENTICE APPLICATION] SubmitApprenticeApplication"),it=C("[APPRENTICE APPLICATION] SubmitApprenticeApplication Successful"),ye=C("[APPRENTICE APPLICATION] SubmitApprenticeApplication Failure"),nt=C("[APPRENTICE APPLICATION] Set Details",B()),at=C("[APPRENTICE APPLICATION] Set Vacancy",B()),Ae=C("[APPRENTICE APPLICATION] Load Vacancies"),ot=C("[APPRENTICE APPLICATION] Load Vacancies Successful",B()),rt=C("[APPRENTICE APPLICATION] Load Vacancies Failure"),pt=C("[APPRENTICE APPLICATION] Reset Data",B()),ct=C("[APPRENTICE APPLICATION] Reset effect");var Tt={timeStamp:0,clearedStep:0,currentStep:0},dt=[{labelKey:"apprenticeApplication.vacancy.title",routeName:"vacancy",type:"vacancy",state:"active",isCurrent:!0},{labelKey:"apprenticeApplication.details.title",routeName:"details",type:"success",state:"locked",isCurrent:!1},{labelKey:"apprenticeApplication.success.title",routeName:"success",type:"details",state:"locked",isCurrent:!1}];var mt=(t,i)=>A(f({},i),{user:{userId:t?"current":"anonymous"}}),Ii=t=>dt.map((i,e)=>{let n=f({},i),a=e+1,c=t.clearedStep+1;return a<c?n.state="cleared":a===c&&(n.state="active"),n.stepNumber=a,n.isCurrent=a===t.currentStep,n}),Z=(t,i)=>{let e=i.map((n,a)=>{let c=a+1;return A(f({},n),{isCurrent:c===t.currentStep})});return e=e.map((n,a)=>{let c=a+1;return c<=t.clearedStep?n.state="cleared":c===t.clearedStep+1?n.state="active":n.state="locked",n}),t.timeStamp=Date.now(),e};var Ki=36e5,x="apprenticeApplicationFeature",Di={formFlowData:Tt,steps:dt,progressIsVisible:!1,vacancies:[],loading:!1,error:!1,success:!1,initialized:!1},qi=Wt(Di,_(fe,(t,{user:i,formFlowData:e})=>{let n;return!e||e.timeStamp+Ki<Date.now()?n=mt(i,t.formFlowData):n=mt(i,e),A(f({},t),{formFlowData:n,steps:Ii(n),progressIsVisible:!0,loading:!1,success:!0,initialized:!0})}),_(Xe,t=>{let i=[...t.steps].slice(0,t.formFlowData.currentStep-1).reverse().find(a=>a.state!=="disabled"&&a.state!=="hidden")||t.steps[0],e=A(f({},t.formFlowData),{currentStep:i.stepNumber||1}),n=Z(e,[...t.steps]);return A(f({},t),{formFlowData:A(f({},t.formFlowData),{currentStep:i.stepNumber||1}),steps:n,loading:!1,success:!0})}),_(et,(t,{currentStep:i})=>{let e=A(f({},t.formFlowData),{currentStep:i}),n=Z(e,[...t.steps]);return A(f({},t),{formFlowData:A(f({},t.formFlowData),{currentStep:i}),steps:n,loading:!1,success:!0})}),_(Je,(t,{progressIsVisible:i})=>A(f({},t),{progressIsVisible:i,loading:!1,success:!0})),_(Vi,(t,{steps:i})=>A(f({},t),{steps:i,loading:!1,success:!0})),_(nt,(t,{applicant:i,birthday:e,wantsMatura:n,residencePermit:a,maternalLanguage:c,comment:w,curriculumVitae:Ce,coverLetter:yt,attachments:St})=>{let It=A(f({},t.formFlowData),{details:{applicant:i,birthday:e,wantsMatura:n,residencePermit:a,maternalLanguage:c,comment:w,curriculumVitae:Ce,coverLetter:yt,attachments:St},clearedStep:1,currentStep:2}),Gi=Z(It,[...t.steps]);return A(f({},t),{formFlowData:It,steps:Gi,loading:!1,success:!0})}),_(it,t=>{let i=A(f({},t.formFlowData),{clearedStep:2,currentStep:3}),e=Z(i,[...t.steps]);return A(f({},t),{formFlowData:i,steps:e,progressIsVisible:!1,loading:!1,success:!0})}),_(ye,t=>A(f({},t),{loading:!1,error:!0,success:!1})),_(at,(t,{vacancy:i})=>{let e=A(f({},t.formFlowData),{vacancy:i,currentStep:2,clearedStep:1}),n=Z(e,[...t.steps]);return A(f({},t),{formFlowData:e,steps:n,loading:!1,success:!0})}),_(Ae,t=>A(f({},t),{loading:!0,success:!1,error:!1})),_(ot,(t,{vacancies:i})=>A(f({},t),{vacancies:i,loading:!1,success:!0})),_(rt,t=>A(f({},t),{loading:!1,error:!0,success:!1})),_(pt,(t,{user:i})=>{let e=f({},Tt);e=mt(i,e);let n=Z(e,[...t.steps]);return A(f({},Di),{formFlowData:e,steps:n})}));function Mi(t,i){return qi(t,i)}var W=qt(x),Oi=V(W,t=>t.initialized),J=V(W,t=>t.steps),L=V(W,t=>t.formFlowData),wi=V(W,t=>t.vacancies),Gn=V(L,J,(t,i)=>i.slice(0,t.currentStep-1).reverse().find(e=>e.state!=="disabled"&&e.state!=="hidden")||i[0]),Ei=V(L,J,(t,i)=>i.find((e,n)=>n+1===t.currentStep)||i[0]),Ni=V(L,J,(t,i)=>i.find((e,n)=>n+1===t.clearedStep+1)||i[0]),Bi=V(W,t=>t.progressIsVisible),Li=V(W,t=>t.loading),Ri=V(W,t=>t.error),Kn=V(W,t=>t.success);var D=class t{constructor(){this.store=p(q)}init(){this.store.dispatch(Ze())}getError(){return this.store.pipe(h(Ri))}getIsLoading(){return this.store.pipe(h(Li))}getProgressIsVisible(){return this.store.pipe(h(Bi))}getSteps(){return this.store.pipe(h(J))}getCurrentStep(){return this.store.pipe(h(Ei))}getFormFlowData(){return this.store.pipe(h(L))}setPreviousStep(){this.store.dispatch(Xe())}setCurrentStep(i){this.store.dispatch(et({currentStep:i}))}setProgressIsVisible(i){this.store.dispatch(Je({progressIsVisible:i}))}setLogin(){}getVacancies(){return this.store.pipe(h(wi))}loadVacancies(){this.store.dispatch(Ae())}setVacancy(i){this.store.dispatch(at({vacancy:i}))}
1setDetails(i,e,n,a,c,w,Ce,yt,St){this.store.dispatch(nt({applicant:i,birthday:e,wantsMatura:n,residencePermit:a,maternalLanguage:c,comment:w,curriculumVitae:Ce,coverLetter:yt,attachments:St}))}submitApprenticeApplication(){this.store.dispatch(tt())}resetData(){this.store.dispatch(ct())}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac})}};function Yi(t,i){if(t&1&&(d(0,"div"),m(1,"c-progress",4),u()),t&2){let e=g(2);s(),l("facade",e.facade)}}function Wi(t,i){t&1&&m(0,"e-spinner")}function Qi(t,i){if(t&1&&(d(0,"div",1)(1,"div",2)(2,"div",3),b(3,Yi,2,1,"div"),o(4,"async"),m(5,"router-outlet"),b(6,Wi,1,0,"e-spinner"),o(7,"async"),u()()()),t&2){let e=g();s(3),T(r(4,2,e.progressIsVisible$)===!0?3:-1),s(3),T(r(7,4,e.loading$)?6:-1)}}var Se=class t extends Pi{constructor(){super(...arguments);this.renderer=p(Lt);this.component=p(oi);this.elementRef=p(Et);this.facade=p(D);this.router=p(K);this.activatedRoute=p(G);this.routingService=p(ni);this.location=p(zt);this.winRef=p(Xt);this.changeDetectorRef=p($t);this.onNavigateService=p(xi);this.eventService=p(Y);this.userAccountFacade=p(Ye);this.scrollHandlerService=p(me);this.smartEditLauncherService=p(Ci);this.headerService=p(hi);this.platformId=p(Nt);this.componentClasses="f-apprentice-application";this.formFlowData$=this.facade.getFormFlowData().pipe(F(e=>this.formFlowData=e));this.formFlowData={};this.steps=[]}getFacade(){return this.facade}ngOnInit(){super.ngOnInit(),this.sub.add(this.steps$.pipe(Ot()).subscribe(e=>this.handleInitialRedirect(e))),this.sub.add(this.restartFlowViaNavigation$.pipe(Q(this.steps$)).subscribe(([,e])=>this.handleInitialRedirect(e)))}handleInitialRedirect(e){if(this.smartEditLauncherService.isLaunchedInSmartEdit())return;let n=e.some(c=>this.router.url.indexOf(`/${c.routeName}`)>0),a=this.router.url.indexOf(`/${e[0].routeName}`)>0;if(this.steps=e,n)a&&this.facade.setCurrentStep(1);else{let c=e[0].routeName;this.facade.setCurrentStep(1),this.router.navigate([c],{relativeTo:this.activatedRoute,state:{currentStep:1},replaceUrl:!0,skipLocationChange:!0})}}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=k(t)))(a||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["f-apprentice-application"]],features:[Ht([D,{provide:Fi,useExisting:D}]),z],decls:3,vars:4,consts:[[3,"ngClass"],[1,"grid"],[1,"g-col-12","g-col-sm-11","g-start-sm-2"],[1,"f-apprentice-application__inner"],[3,"facade"]],template:function(n,a){n&1&&(d(0,"div",0),b(1,Qi,8,6,"div",1),o(2,"async"),u()),n&2&&(l("ngClass",a.componentClasses),s(),T(r(2,2,a.formFlowData$)?1:-1))},dependencies:[U,j,Te,Kt,Ti,bi,mi,di,ne],styles:["[_nghost-%COMP%]{--e-spinner-backdrop-color: rgba(242, 239, 232, .75);display:block}.f-apprentice-application__inner[_ngcontent-%COMP%]{position:relative}"]})}};var nn=["formElement"],an=()=>[0],on=t=>({country:t,type:"postalCode"}),ki=(t,i)=>({searchType:"postalCode",searchParams:t,resultFormatter:i}),rn=t=>({country:t,type:"town"});function pn(t,i){if(t&1){let e=te();d(0,"div",2),P("handleIntersection",function(a){v(e);let c=g();return y(c.handleIntersection(a))}),d(1,"div",3)(2,"form",4,0)(4,"div",5)(5,"div"),m(6,"e-heading",6),o(7,"cxTranslate"),m(8,"e-radio-group",7),o(9,"cxTranslate"),m(10,"e-text-input",8),o(11,"cxTranslate"),o(12,"cxTranslate"),m(13,"e-text-input",8),o(14,"cxTranslate"),o(15,"cxTranslate"),m(16,"e-text-input",8),o(17,"cxTranslate"),d(18,"div",9)(19,"div",10),m(20,"e-text-input",8),o(21,"cxTranslate"),o(22,"cxTranslate"),u(),d(23,"div",11),m(24,"e-text-input",8),o(25,"cxTranslate"),o(26,"cxTranslate"),u(),d(27,"div",11)(28,"e-text-input",12),o(29,"cxTranslate"),o(30,"cxTranslate"),P("handleAutoCompleteSelection",function(a){v(e);let c=g();return y(c.handleZipTownSelection(a))}),u()(),d(31,"div",10)(32,"e-text-input",13),o(33,"cxTranslate"),o(34,"cxTranslate"),P("handleAutoCompleteSelection",function(a){v(e);let c=g();return y(c.handleZipTownSelection(a))}),u()()(),m(35,"e-text-input",14),o(36,"cxTranslate"),o(37,"cxTranslate"),o(38,"cxTranslate"),o(39,"cxTranslate"),m(40,"e-text-input",15),o(41,"cxTranslate"),o(42,"cxTranslate"),m(43,"e-checkbox-group",16)(44,"e-text-input",8),o(45,"cxTranslate"),o(46,"cxTranslate"),m(47,"e-text-input",8),o(48,"cxTranslate"),o(49,"cxTranslate"),u()(),d(50,"div",17)(51,"div"),m(52,"e-heading",6),o(53,"cxTranslate"),d(54,"e-text-input",18),o(55,"cxTranslate"),o(56,"cxTranslate"),P("handleChange",function(a){v(e);let c=g();return y(c.handleCurriculumVitaeSelect(a))}),u(),d(57,"e-text-input",18),o(58,"cxTranslate"),o(59,"cxTranslate"),P("handleChange",function(a){v(e);let c=g();return y(c.handleCoverLetterSelect(a))}),u(),d(60,"e-text-input",18),o(61,"cxTranslate"),o(62,"cxTranslate"),P("handleChange",function(a){v(e);let c=g();return y(c.handleAttachmentSelect(a))}),u(),m(63,"e-text",19),o(64,"cxTranslate"),m(65,"e-heading",20),o(66,"cxTranslate"),m(67,"e-text-area",21),o(68,"c
1xTranslate"),u()(),d(69,"div",22)(70,"div",23),m(71,"e-heading",24),o(72,"cxTranslate"),u(),d(73,"div",25),m(74,"e-text",19),o(75,"cxTranslate"),u()(),d(76,"div",26)(77,"c-action-buttons",27),o(78,"async"),P("prevButtonClick",function(){v(e);let a=g();return y(a.handleBackButtonClick())})("nextButtonClick",function(){v(e);let a=g();return y(a.handleNextButtonClick())}),u()()()()()}if(t&2){let e=g();l("ngClass",e.componentClasses)("threshold",ie(188,an))("margin","-100% 0px 0px 0px"),s(2),l("formGroup",e.detailsForm),s(4),l("headingType",e.HeadingType.H4)("title",r(7,112,"form.personaldetails")),s(2),l("form",e.detailsForm.get("address"))("controlName","title")("radioButtons",e.titles)("legend",r(9,114,"address.title"))("modifier",e.RadioModifier.HORIZONTAL),s(2),l("form",e.detailsForm.get("address"))("controlName","firstName")("labelText",r(11,116,"address.firstName"))("placeholder",r(12,118,"address.firstName")),s(3),l("form",e.detailsForm.get("address"))("controlName","lastName")("labelText",r(14,120,"address.lastName"))("placeholder",r(15,122,"address.lastName")),s(3),l("form",e.detailsForm)("controlName","birthday")("labelText",r(17,124,"form.birthday"))("placeholder","DD.MM.YYYY"),s(4),l("form",e.detailsForm.get("address"))("controlName","line1")("labelText",r(21,126,"address.streetWithoutNo"))("placeholder",r(22,128,"address.streetWithoutNo")),s(4),l("form",e.detailsForm.get("address"))("controlName","line2")("labelText",r(25,130,"address.streetno"))("placeholder",r(26,132,"address.streetno")),s(4),l("form",e.detailsForm.get("address"))("controlName","postalCode")("labelText",r(29,134,"address.zip"))("placeholder",r(30,136,"address.zip"))("maxLength",e.MaxInputLength.ZIP)("enableAutocomplete",!0)("nativeAutocomplete",e.NativeAutoComplete.OFF)("autoCompleteParams",bt(191,ki,Ft(189,on,e.currentCountry),e.zipTownResultFormatter)),s(4),l("form",e.detailsForm.get("address"))("controlName","town")("labelText",r(33,138,"address.city"))("placeholder",r(34,140,"address.city"))("enableAutocomplete",!0)("autoCompleteParams",bt(196,ki,Ft(194,rn,e.currentCountry),e.zipTownResultFormatter)),s(3),l("form",e.detailsForm.get("address"))("controlName","email")("labelText",r(36,142,"address.email"))("placeholder",r(37,144,"address.email"))("inputType",e.InputType.EMAIL)("tooltipTitle",r(38,146,"generic.hint"))("tooltipText",r(39,148,"apprenticeApplication.mailTooltip")),s(5),l("form",e.detailsForm.get("address"))("controlName","phone")("labelText",r(41,150,"address.phone"))("placeholder",r(42,152,"address.phone"))("maxLength",25),s(3),l("form",e.detailsForm)("controlName","wantsMatura")("checkboxes",e.checkboxWantsMatura)("hideLegend",!0)("noSpacing",!1),s(),l("form",e.detailsForm)("controlName","maternalLanguage")("labelText",r(45,154,"apprenticeApplication.maternalLanguage"))("placeholder",r(46,156,"apprenticeApplication.maternalLanguage")),s(3),l("form",e.detailsForm)("controlName","residencePermit")("labelText",r(48,158,"apprenticeApplication.residencePermit"))("placeholder",r(49,160,"apprenticeApplication.residencePermit")),s(5),l("headingType",e.HeadingType.H4)("title",r(53,162,"apprenticeApplication.fileUpload")),s(2),l("form",e.detailsForm)("controlName","curriculumVitae")("labelText",r(55,164,"apprenticeApplication.curriculumVitae"))("messageText",r(56,166,"apprenticeApplication.files"))("inputType",e.InputType.FILE)("fileTypes",e.allowedTypes)("multipleFiles",!1)("selectedFiles",e.selectedCV),s(3),l("form",e.detailsForm)("controlName","coverLetter")("labelText",r(58,168,"apprenticeApplication.coverLetter"))("messageText",r(59,170,"apprenticeApplication.files"))("inputType",e.InputType.FILE)("fileTypes",e.allowedTypes)("multipleFiles",!1)("selectedFiles",e.selectedCoverLetter),s(3),l("form",e.detailsForm)("controlName","otherAttachments")("labelText",r(61,172,"apprenticeApplication.otherAttachments"))("messageText",r(62,174,"apprenticeApplication.files"))("inputType",e.InputType.FILE)("fileTypes",e.allowedTypes)("multipleFiles",!0)("selectedFiles",e.otherAttachments),s(3),l("tag",e.TextTag.DIV)("text",r(64,176,"apprenticeApplication.requiredDocuments"))("renderHtml",!0),s(2),l("headingType",e.HeadingType.H4)("title",r(66,178,"generic.remarks")),s(2),l("form",e.detailsForm)("controlName","comment")("placeholder",r(68,180,"generic.remarks")),s(4),l("title",r(72,182,"generic.privacy.title"))("headingType",e.HeadingType.H4),s(3),l("tag",e.TextTag.DIV)("text",r(75,184,"generic.privacyAndTerms.text"))("renderHtml",!0),s(3),l("nextButtonDisabled",e.is
1FormSubmitted())("nextButtonKey","common.submit")("loading",r(78,186,e.loading$)||!1)}}var ft=class t extends ue{constructor(){super(...arguments);this.router=p(K);this.route=p(G);this.formBuilder=p(we);this.facade=p(D);this.eventService=p(Y);this.localeService=p(gi);this.customFormValidators=p(I);this.languageService=p(ai);this.scrollHandlerService=p(me);this.baseSiteService=p(Ai);this.phoneNumberPipe=p(Si);this.componentClasses="c-details";this.Theme=ke;this.HeadingType=pe;this.FontSize=fi;this.TextTag=Re;this.InputType=ci;this.RadioModifier=Le;this.ButtonModifier=re;this.IconKeys=Be;this.ButtonIconPosition=Ne;this.SelectItemType=pi;this.NativeAutoComplete=si;this.MaxInputLength=li;this.allowedTypes=[".pdf",".zip",".png",".jpg",".jpeg",".doc",".docx"];this.maxFileSizeInMB=5;this.titles=ri;this.locale$=this.localeService.locale$.pipe(N(e=>e!==""),F(e=>this.datePipe=new jt(e)));this.formFlowData$=he([this.facade.getFormFlowData(),this.locale$]).pipe(F(([e])=>{this.setInitialFormValues(e)}),O(([e])=>e));this.selectedCV=[];this.selectedCoverLetter=[];this.otherAttachments=[];this.formData=[];this.isFormSubmitted=wt(!1);this.checkboxWantsMatura=[{value:"wantsMatura",labelKey:"apprenticeApplication.wantsMatura.checkbox"}];this.detailsForm=this.formBuilder.group({address:this.formBuilder.group({title:["",S.required],firstName:["",S.required],lastName:["",S.required],line1:["",S.required],line2:[""],postalCode:["",S.required],town:["",S.required],email:["",[S.required,I.emailValidator]],phone:["",[S.required,e=>I.phoneValidator(e,this.currentCountry||"ch")]]}),birthday:["",[S.required,I.trialApprenticeshipBirthdayValidator]],wantsMatura:this.formBuilder.array(this.checkboxWantsMatura.map(()=>!1)),residencePermit:[""],maternalLanguage:["",S.required],comment:[""],curriculumVitae:["",[I.fileRequiredValidator(()=>this.selectedCV),I.fileTypeValidator(()=>this.selectedCV,this.allowedTypes),I.markFieldAsRequired,this.customFormValidators.maxFileSize(()=>this.selectedCV,this.maxFileSizeInMB)]],coverLetter:["",[I.fileRequiredValidator(()=>this.selectedCoverLetter),I.fileTypeValidator(()=>this.selectedCoverLetter,this.allowedTypes),I.markFieldAsRequired,this.customFormValidators.maxFileSize(()=>this.selectedCoverLetter,this.maxFileSizeInMB)]],otherAttachments:["",[this.customFormValidators.maxFileSize(()=>this.otherAttachments,this.maxFileSizeInMB),I.fileTypeValidator(()=>this.otherAttachments,this.allowedTypes)]]})}ngOnInit(){super.ngOnInit(),this.sub.add(he([this.baseSiteService.getCurrentBaseSite(),this.languageService.getActive()]).pipe(F(([e,n])=>{this.currentLanguage=n,this.currentCountry=e?.countryIsoCode,this.shippingCountries=e?.shippingCountryIsoCodes})).subscribe()),this.sub.add(this.facade.getError().pipe(N(e=>e),F(()=>this.isFormSubmitted.set(!1))).subscribe())}zipTownResultFormatter(e){return e?`${e.postalCode} ${e.town}`:""}handleGetFormFlowData(e){if(e.vacancy){let n={apprentice_vacancy_name:e.vacancy.name};this.trackPageTypeEvent(2),this.trackStepEvent(2,n)}}handleCurriculumVitaeSelect(e){e&&(this.selectedCV=Array.from(e))}handleCoverLetterSelect(e){e&&(this.selectedCoverLetter=Array.from(e))}handleAttachmentSelect(e){if(!e)return;let n=Array.from(e);this.otherAttachments=n,this.formData=[],n.forEach(a=>{let c=new FormData;c.append("file",a),this.formData.push(c)}),this.detailsForm.updateValueAndValidity()}handleZipTownSelection(e){e.preventDefault(),this.detailsForm.get("address.postalCode")?.setValue(e.item.postalCode),this.detailsForm.get("address.town")?.setValue(e.item.town)}setInitialFormValues(e){let n=e.details?.applicant;if(n){let a=this.titles.find(c=>c.labelKey===n?.title);this.detailsForm.get("address.title")?.setValue(a?.value),this.detailsForm.get("address.firstName")?.setValue(n?.firstName),this.detailsForm.get("address.lastName")?.setValue(n?.lastName),this.detailsForm.get("address.email")?.setValue(n?.email),this.detailsForm.get("address.phone")?.setValue(this.phoneNumberPipe?.transform(n?.phone||"")),this.detailsForm.get("address.line1")?.setValue(n?.line1),this.detailsForm.get("address.line2")?.setValue(n?.line2),this.detailsForm.get("address.postalCode")?.setValue(n?.postalCode),this.detailsForm.get("address.town")?.setValue(n?.town)}if(this.detailsForm.get("birthday")?.setValue(this.datePipe?.transform(e.details?.birthday,"dd.MM.yyyy")),this.detailsForm.get("residencePermit")?.setValue(e.details?.residencePermit),this.detailsForm.get("maternalLanguage")?.setValue(e.details?.maternalLanguage),this.detailsForm.get("comment")?.setValue(e.details?.comment),e.details?.curriculumVitae&&e.details?.curriculumVitae instanceof FormData){let a=e.details?.curriculumVitae.get("
1curriculumVitae");a&&(this.selectedCV=[a],this.detailsForm.updateValueAndValidity())}if(e.details?.coverLetter&&e.details?.coverLetter instanceof FormData){let a=e.details?.coverLetter.get("coverLetter");a&&(this.selectedCoverLetter=[a],this.detailsForm.updateValueAndValidity())}}handleNextButtonClick(){if(this.detailsForm.valid){let e=this.titles?.find(w=>w.value===this.detailsForm.get("address.title")?.value),n=A(f({},this.detailsForm.get("address")?.value),{title:e?.labelKey,titleCode:e?.value,phone:this.phoneNumberPipe?.transform(this.detailsForm.get("address.phone")?.value||"")}),a=new FormData;a.append("curriculumVitae",this.selectedCV[0]);let c=new FormData;c.append("coverLetter",this.selectedCoverLetter[0]),this.navigationButtonClicked=!0,this.facade.setDetails(n,this.formatDate(this.detailsForm.get("birthday")?.value).getTime(),this.detailsForm.get("wantsMatura")?.value[0]||!1,this.detailsForm.get("residencePermit")?.value,this.detailsForm.get("maternalLanguage")?.value,this.detailsForm.get("comment")?.value,a,c,this.formData),this.handleSubmit()}else this.detailsForm.markAllAsTouched(),this.scrollHandlerService.scrollToFormError(this.formElement?.nativeElement)}formatDate(e){let n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}handleBackButtonClick(){this.navigationButtonClicked=!0,this.facade.setPreviousStep()}handleSubmit(){this.isFormSubmitted.set(!0),this.navigationButtonClicked=!0,this.facade.submitApprenticeApplication()}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=k(t)))(a||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["c-details"]],viewQuery:function(n,a){if(n&1&&xe(nn,5),n&2){let c;Fe(c=be())&&(a.formElement=c.first)}},standalone:!1,features:[z],decls:2,vars:3,consts:[["formElement",""],["dObserveVisibility","",1,"c-details__form",3,"ngClass","threshold","margin"],["dObserveVisibility","",1,"c-details__form",3,"handleIntersection","ngClass","threshold","margin"],[1,"grid"],[1,"g-col-12","g-col-sm-11","grid",3,"formGroup"],[1,"g-col-12","g-col-sm-5"],[1,"c-details__title",3,"headingType","title"],[3,"form","controlName","radioButtons","legend","modifier"],[3,"form","controlName","labelText","placeholder"],[1,"grid","c-details-form__address-fields"],[1,"g-col-8","g-col-sm-5","g-col-md-3"],[1,"g-col-4","g-col-sm-3","g-col-md-2"],[3,"handleAutoCompleteSelection","form","controlName","labelText","placeholder","maxLength","enableAutocomplete","nativeAutocomplete","autoCompleteParams"],[3,"handleAutoCompleteSelection","form","controlName","labelText","placeholder","enableAutocomplete","autoCompleteParams"],[3,"form","controlName","labelText","placeholder","inputType","tooltipTitle","tooltipText"],[3,"form","controlName","labelText","placeholder","maxLength"],[3,"form","controlName","checkboxes","hideLegend","noSpacing"],[1,"g-col-12","g-col-sm-5","g-start-sm-7"],[3,"handleChange","form","controlName","labelText","messageText","inputType","fileTypes","multipleFiles","selectedFiles"],[3,"tag","text","renderHtml"],[1,"c-details__remarks-title",3,"headingType","title"],[3,"form","controlName","placeholder"],[1,"g-col-12"],[1,"c-details__terms-and-conditions-title"],[3,"title","headingType"],[1,"c-details__terms-and-conditions-text"],[1,"g-col-12","g-col-sm-11"],[3,"prevButtonClick","nextButtonClick","nextButtonDisabled","nextButtonKey","loading"]],template:function(n,a){n&1&&(b(0,pn,79,199,"div",1),o(1,"async")),n&2&&T(r(1,1,a.formFlowData$)?0:-1)},dependencies:[j,$e,le,Me,De,Oe,je,_i,Ge,We,qe,ze,ne,ae],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}.c-details__title[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-details__title[_ngcontent-%COMP%]{margin-bottom:2.4rem}}.c-details__terms-and-conditions-title[_ngcontent-%COMP%]{margin-bottom:1.6rem}@media all and (min-width:1025px){.c-details__terms-and-conditions-title[_ngcontent-%COMP%]{margin-bottom:2rem}}.c-details__terms-and-conditions-title[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-details__terms-and-conditions-title[_ngcontent-%COMP%]{margin-top:2rem}}.c-details__terms-and-conditions-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]{margin-bottom:1.6rem}@media all and (min-width:1025px){.c-details__terms-and-conditions-text[_ngcontent-%COMP%]{margin-bottom:1.6rem}}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--link-font-default);cursor:pointer;text-decoration:none}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   null[_ngcontent-%COMP%]{text-decoration:underline;text-underline-offset:.5rem}
1.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{transition:background-color .2s ease-in-out,color .2s ease-in-out}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   null[_ngcontent-%COMP%]{transition:text-decoration-color .2s ease-in-out}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--link-font-default)}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--link-font-hover)}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   null[_ngcontent-%COMP%]{text-decoration-color:var(--link-border-hover)}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline:none}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{background-color:var(--link-background-focus);outline:2px solid var(--link-outline-focus);color:var(--link-font-focus);outline-offset:4px}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible   null[_ngcontent-%COMP%]{text-decoration-color:var(--link-border-focus)}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:var(--link-font-active)}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active   null[_ngcontent-%COMP%]{text-decoration-color:var(--link-border-active)}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[aria-disabled][_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[aria-disabled][_ngcontent-%COMP%]:hover, .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[aria-disabled][_ngcontent-%COMP%]:focus, .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[disabled][_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[disabled][_ngcontent-%COMP%]:hover, .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[disabled][_ngcontent-%COMP%]:focus{color:var(--link-font-disabled);cursor:default;pointer-events:none}.c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[aria-disabled][_ngcontent-%COMP%]   null[_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[aria-disabled][_ngcontent-%COMP%]:hover   null[_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[aria-disabled][_ngcontent-%COMP%]:focus   null[_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[disabled][_ngcontent-%COMP%]   null[_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[disabled][_ngcontent-%COMP%]:hover   null[_ngcontent-%COMP%], .c-details__terms-and-conditions-text[_ngcontent-%COMP%]   a[disabled][_ngcontent-%COMP%]:focus   null[_ngcontent-%COMP%]{text-decoration-color:var(--link-border-disabled)}@media all and (min-width:720px){.c-details__form[_ngcontent-%COMP%]{--bs-columns: 11}}@media all and (min-width:720px){.c-details-form__address-fields[_ngcontent-%COMP%]{--bs-columns: 8}}@media all and (min-width:1025px){.c-details-form__address-fields[_ngcontent-%COMP%]{--bs-columns: 5}}.c-details__remarks-title[_ngcontent-%COMP%]{margin-top:3.6rem}@media all and (min-width:1025px){.c-details__remarks-title[_ngcontent-%COMP%]{margin-top:4.8rem}}"],changeDetection:0})}};var zi=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=R({imports:[U,se,de,oe,Ee,Ue,vi,yi,Ge,ce,Qe,Ke,ze]})}};var sn=()=>({cxRoute:"home"}),At=class t extends ue{constructor(){super(...arguments);this.router=p(K);this.route=p(G);this.facade=p(D);this.eventService=p(Y);this.componentClasses="c-success";this.ButtonModifier=re;this.HeadingType=pe;this.TextTag=Re}ngOnInit(){this.facade.setCurrentStep(0),this.trackPageTypeEvent(3)}ngAfterViewInit(){this.facade.resetData()}isLastStep(){return!0}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=k(t)))(a||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["c-success"]],standalone:!1,features:[z],decls:13,vars:18,consts:[[3,"ngClass"],[1,"grid"],[1,"g-col-12","g-col-sm-8"],[1,"c-success__title"],[3,"title","headingType"],[1,"c-success__text"],[3,"text","tag","renderHtml"],[1,"c-success__button"],[3,"modifier","url","text"]],template:function(n,a){n&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),m(4,"e-heading",4),o(5,"cxTranslate"),u(),d(6,"div",5),m(7,"e-text",6),o(8,"cxTranslate"),u(),d(9,"div",7),m(10,"e-button",8),o(11,"cxUrl"),o(12,"cxTranslate"),u()()()()),n&2&&(l("ngClass",a.componentClasses),s(4),l("title",r(5,9,"apprenticeApplication.success.thankYou"))("headingType",a.HeadingType.H3),s(3),l("text",r(8,11,"apprenticeApplication.success.text"))("tag",a.TextTag.DIV)("renderHtml",!0),s(3),l("modifier",a.ButtonModifier.PRIMARY)("url",r(11,13,ie(17,sn)).join("/"))("text",r(12,15,"generic.goto.home")))},dependencies:[j,$e,He,le,ae,Ve],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}[_nghost-%COMP%]{display:block}.c-success__title[_ngcontent-%COMP%]{margin-bottom:1.2rem}@media all and (min-width:1025px){.c-success__title[_ngcontent-%COMP%]{margin-bottom:1.2rem}}.c-success__text[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-success__text[_ngcontent-%COMP%]{margin-bottom:2.4rem}}"]})}};var ji=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=R({imports:[U,oe,Te,Ie,se,ce,de]})}};var ln=["formElement"],dn=()=>({cxRoute:"home"}),mn=(t,i)=>i.locationName;function un(t,i){if(t&1&&(d(0,"div",4),m(1,"e-heading",5),o(2,"cxTranslate"),u()),t&2){let e=g().$implicit,n=g(5);s(),l("headingType",n.HeadingType.H4)("title",r(2,2,"serviceAppointmentBooking.location")+" "+e.locationName)}}function fn(t,i){if(t&1){let e=te();d(0,"div"),b(1,un,3,4,"div",4),d(2,"e-radio-group",7),P("handleChange",function(a){v(e);let c=g(5);return y(c.onVacancySelected(a))}),u()()}if(t&2){let e=i.$implicit,n=g(5);s(),T(e.locationName!==""?1:-1),s(),l("id",e.locationCode)("form",n.vacancyForm)("controlName","vacancy")("radioButtons",e.vacancies)("modifier",n.RadioModifier.CARD)("hideLegend",!0)}}function An(t,i){if(t&1){let e=te();d(0,"div",4),m(1,"e-heading",5),o(2,"cxTranslate"),u(),Rt(3,fn,3,7,"div",null,mn),d(5,"c-action-buttons",6),o(6,"async"),P("nextButtonClick",function(){v(e);let a=g(4);return y(a.handleNextButtonClick())}
1),u()}if(t&2){let e=g(),n=g(3);s(),l("headingType",n.HeadingType.H4)("title",r(2,4,"apprenticeApplication.vacancy.description")),s(2),kt(e),s(2),l("loading",r(6,6,n.loading$)||!1)("showPrevButton",!1)}}function gn(t,i){if(t&1&&(d(0,"div",4),m(1,"e-heading",5),o(2,"cxTranslate"),u(),m(3,"div",8),o(4,"cxTranslate"),d(5,"div",9),m(6,"e-button",10),o(7,"cxUrl"),o(8,"cxTranslate"),u()),t&2){let e=g(4);s(),l("headingType",e.HeadingType.H4)("title",r(2,6,"apprenticeApplication.vacancy.none")),s(2),l("innerHtml",r(4,8,"apprenticeApplication.vacancy.noneDetails"),Bt),s(3),l("modifier",e.ButtonModifier.PRIMARY)("url",r(7,10,ie(14,dn)).join("/"))("text",r(8,12,"generic.goto.home"))}}function Cn(t,i){if(t&1&&(d(0,"form",3,0),b(2,An,7,8)(3,gn,9,15),u()),t&2){let e=g(3);l("formGroup",e.vacancyForm),s(2),T(i.length!==0?2:3)}}function hn(t,i){if(t&1&&(d(0,"div"),b(1,Cn,4,2,"form",3),o(2,"async"),u()),t&2){let e,n=g(2);s(),T((e=r(2,1,n.vacancyGroups$))?1:-1,e)}}function _n(t,i){if(t&1){let e=te();d(0,"div",2),P("handleIntersection",function(a){v(e);let c=g();return y(c.handleIntersection(a))}),b(1,hn,3,3,"div"),u()}if(t&2){let e=g();l("ngClass",e.componentClasses),s(),T(e.loading?-1:1)}}var gt=class t extends ue{constructor(){super(...arguments);this.router=p(K);this.route=p(G);this.facade=p(D);this.eventService=p(Y);this.scrollHandlerService=p(me);this.fb=p(we);this.componentClasses="c-vacancy";this.Theme=ke;this.ButtonModifier=re;this.HeadingType=pe;this.FontColor=ui;this.ButtonIconPosition=Ne;this.RadioModifier=Le;this.IconKeys=Be;this.formFlowData$=this.facade.getFormFlowData().pipe(F(e=>{this.vacancyForm.get("vacancy")?.setValue(e.vacancy?.code||"",{emitEvent:!1}),this.currentVacancy=e.vacancy}));this.vacancyGroups$=this.facade.getVacancies().pipe(F(e=>{this.vacancies=e}),O(e=>this.createVacancyGroups(e)));this.vacancyForm=this.fb.group({vacancy:["",S.required]})}handleNextButtonClick(){this.vacancyForm.valid&&this.currentVacancy?(this.navigationButtonClicked=!0,this.facade.setVacancy(this.currentVacancy)):(this.vacancyForm.markAllAsTouched(),this.scrollHandlerService.scrollToFormError(this.formElement?.nativeElement))}ngOnInit(){super.ngOnInit(),this.sub.add(this.vacancyForm.get("vacancy")?.valueChanges.subscribe(e=>{this.currentVacancy=this.vacancies?.find(n=>n.code===e)})),this.facade.loadVacancies(),this.trackPageTypeEvent(1),this.trackStepEvent(1)}createVacancyGroups(e){let n=e.reduce((a,c)=>{let w=c.locationCode||"",Ce=c.locationName||"";return a[w]||(a[w]={locationCode:w,locationName:Ce,vacancies:[]}),a[w].vacancies.push({value:c.code,description:c.description,labelText:c.name}),a},{});return Object.values(n).sort((a,c)=>!a.locationName&&!c.locationName?0:a.locationName?c.locationName?c.locationName.localeCompare(a.locationName):1:-1)}onVacancySelected(e){this.vacancyForm.get("vacancy")?.setValue(e),this.currentVacancy=this.vacancies?.find(n=>n.code===e)}static{this.\u0275fac=(()=>{let e;return function(a){return(e||(e=k(t)))(a||t)}})()}static{this.\u0275cmp=H({type:t,selectors:[["c-vacancy"]],viewQuery:function(n,a){if(n&1&&xe(ln,5),n&2){let c;Fe(c=be())&&(a.formElement=c.first)}},features:[z],decls:2,vars:3,consts:[["formElement",""],["dObserveVisibility","",3,"ngClass"],["dObserveVisibility","",3,"handleIntersection","ngClass"],[3,"formGroup"],[1,"c-vacancy__title"],[3,"headingType","title"],[3,"nextButtonClick","loading","showPrevButton"],[3,"handleChange","id","form","controlName","radioButtons","modifier","hideLegend"],[1,"c-vacancy__text",3,"innerHtml"],[1,"c-vacancy__button"],[3,"modifier","url","text"]],template:function(n,a){n&1&&(b(0,_n,2,2,"div",1),o(1,"async")),n&2&&T(r(1,1,a.formFlowData$)?0:-1)},dependencies:[U,j,oe,se,ce,He,de,le,Ee,Me,De,Oe,Ue,je,Qe,We,Ke,qe,Ie,ne,ae,Ve],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}.c-vacancy__title[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-vacancy__title[_ngcontent-%COMP%]{margin-bottom:2.4rem}}.c-vacancy__text[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-vacancy__text[_ngcontent-%COMP%]{margin-bottom:2.4rem}}"],changeDetection:0})}};var Ct=class t{constructor(){this.statePersistenceService=p(Pe);this.store=p(q)}sync(){this.statePersistenceService.syncWithStorage({key:x,state$:this.getApprenticeApplicationState(),onRead:i=>this.store.dispatch(fe({user:void 0,formFlowData:i}))})}getApprenticeApplicationState(){return this.store.pipe(N(i=>!!i[x]),Mt(x),h(L))}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac,providedIn:"root"})}};function vn(t,i){return()=>Dt(i.getStable("context").pipe(F(()=>t.sync())))}var ht=class t{static forRoot(){return{ngModule:t,providers:[{provide:ti,useFactory:vn,deps:[Ct,ii],multi:!0}]}}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=R({})}};var _t=class t{constructor(){this.http=p(Ut);this.occEndpoints=p(ei)}loadVacancies(){let i=this.occEndpoints.buildUrl("apprenticeApplicationVacancies");return this.http.get(i).pipe(O(e=>e.vacancies??[]))}submitApprenticeApplication(i){let e=new FormData;return e.append("applicant.titleCode",i.details?.applicant.titleCode||""),e.append("applicant.firstName",i.details?.applicant.firstName||""),e.append("applicant.lastName",i.details?.applicant.lastName||""),e.append("applicant.email",i.details?.applicant.email||""),e.append("applicant.phone",i.details?.applicant.phone||""),e.append("applicant.line1",i.details?.applicant.line1||""),e.append("applicant.line2",i.details?.applicant.line2||""),e.append("applicant.postalCode",i.details?.applicant.postalCode||""),e.append("applicant.town",i.details?.applicant.town||""),e.append("birthday",i.details?.birthday?.toString()||""),e.append("wantsMatura",i.details?.wantsMatura?"true":"false"),e.append("residencePermit",i.details?.residencePermit||""),e.append("maternalLanguage",i.details?.maternalLanguage||""),e.append("comment",i.details?.comment||""),e.append("vacancy",i.vacancy?.code||""),i.details?.curriculumVitae instanceof FormData&&e.append("curriculumVitae",i.details?.curriculumVitae?.get("curriculumVitae")||""),i.details?.coverLetter instanceof FormData&&e.append("coverLetter",i.details?.coverLetter?.get("coverLetter")||""),i.details?.attachments&&i.details.attachments.forEac
1h(n=>{e.append("attachments",n.get("file")||"")}),this.http.post(this.occEndpoints.buildUrl("apprenticeApplicationSubmit"),e)}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac,providedIn:"root"})}};var vt=class t{constructor(){this.actions$=p(Qt);this.store=p(q);this.statePersistenceService=p(Pe);this.userAccountFacade=p(Ye);this.apprenticeApplicationService=p(_t);this.init$=_e(()=>this.actions$.pipe(ve(Ze),Q(this.store.pipe(N(i=>!!i[x]),h(Oi))),ee(([,i])=>this.userAccountFacade.get().pipe(O(e=>{let n=i?void 0:this.statePersistenceService.readStateFromStorage({key:x});return fe({user:e,formFlowData:n})})))));this.loadVacancies$=_e(()=>this.actions$.pipe(ve(Ae),Q(this.store.pipe(N(i=>!!i[x]))),ee(()=>this.apprenticeApplicationService.loadVacancies().pipe(O(i=>ot({vacancies:i})),xt(()=>X(rt))))));this.submitApprenticeApplication$=_e(()=>this.actions$.pipe(ve(tt),Q(this.store.pipe(N(i=>!!i[x]),h(L))),ee(([,i])=>this.apprenticeApplicationService.submitApprenticeApplication(i).pipe(O(e=>Object.keys(e).length===0?it():ye()),xt(()=>X(ye()))))));this.reset$=_e(()=>this.actions$.pipe(ve(ct),Q(this.userAccountFacade.get()),O(([,i])=>pt({user:i}))))}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac})}};var ge=class t{constructor(){this.store=p(q)}canActivate(i){return he([this.store.pipe(h(J)),this.store.pipe(h(Ni))]).pipe(ee(([e,n])=>{let a=e.find(c=>c.routeName===i.routeConfig?.path||"")||e[0];return a.state==="locked"||a.state==="disabled"?X(Gt(i,["../"+n.routeName])):X(!0)}))}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=E({token:t,factory:t.\u0275fac,providedIn:"root"})}};var Ui=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=R({providers:[Jt({cmsComponents:{VzugApprenticeApplicationComponent:{component:Se,disableSSR:!0,childRoutes:[{path:"vacancy",component:gt,canActivate:[ge]},{path:"details",component:ft,canActivate:[ge]},{path:"success",component:At,canActivate:[ge]}]}}})],imports:[Se,Yt.forFeature(x,Mi),Zt.forFeature([vt]),ht.forRoot()]})}};export{Ui as ApprenticeApplicationFeatureModule};

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.