1import{a as bt}from"./chunk-VZSRKN4L.js";import{a as ft}from"./chunk-PCC2N4UI.js";import{a as ut}from"./chunk-RUSXNYIQ.js";import"./chunk-EK3GFTRD.js";import{a as dt,b as _t}from"./chunk-4KDSJK24.js";import{a as Ne}from"./chunk-JV5BVXET.js";import{a as we}from"./chunk-PCUONFL4.js";import{a as gt}from"./chunk-5B6AN5MX.js";import{a as pt}from"./chunk-YDHJRQZ2.js";import{a as Se}from"./chunk-PB3JDUQB.js";import{a as st,b as mt}from"./chunk-UT3GH3TA.js";import{a as lt}from"./chunk-JJRV3UNU.js";import{a as ct}from"./chunk-MGGANXXS.js";import"./chunk-FMTRGUKX.js";import"./chunk-WLP6BOHM.js";import{a as at}from"./chunk-UVDEN4K5.js";import"./chunk-HG2ZKFA5.js";import{a as rt}from"./chunk-3NFDR4VT.js";import"./chunk-Y4CKMLLS.js";import{a as ot}from"./chunk-T4E7S3UO.js";import"./chunk-DATA5TQM.js";import"./chunk-XE4R7BBB.js";import"./chunk-UM7RLQJR.js";import{a as me}from"./chunk-4J3IOTIA.js";import{a as pe}from"./chunk-T4PNRUR4.js";import{a as W,b as se}from"./chunk-ZIRLZBXH.js";import"./chunk-LG3ZGITE.js";import"./chunk-J34WMSSD.js";import"./chunk-E4MIMFJ3.js";import{a as it}from"./chunk-6OFSMDIA.js";import{a as Pe}from"./chunk-53B6QMCC.js";import"./chunk-MCY6KR32.js";import{a as E}from"./chunk-7XNPJFTR.js";import"./chunk-UJ5DLKHY.js";import"./chunk-2CNZCRJY.js";import"./chunk-BPG3S5HG.js";import"./chunk-CKI7T6VS.js";import"./chunk-6VRLZSOF.js";import"./chunk-5LY2PM63.js";import"./chunk-WK6UQ2XB.js";import"./chunk-72IJV24Y.js";import"./chunk-VKKPKMZS.js";import{d as Ce}from"./chunk-QKWTJ6QA.js";import"./chunk-FYYAR5ER.js";import"./chunk-CRVKZHY7.js";import{a as G}from"./chunk-JZVEJV5A.js";import{a as Et}from"./chunk-CK6QF2X5.js";import"./chunk-XEA4GCNB.js";import"./chunk-2E5FEIEM.js";import{a as ke}from"./chunk-ZC66S5Q3.js";import"./chunk-3YZGANC2.js";import"./chunk-6G7WNN72.js";import"./chunk-276XEMR2.js";import"./chunk-MLUHLNP4.js";import"./chunk-3OHSY6EZ.js";import"./chunk-KDI3GPIC.js";import"./chunk-GWD2IUT7.js";import"./chunk-TK2AFEWA.js";import"./chunk-AUF7EZQC.js";import"./chunk-M3ZF6IHR.js";import"./chunk-3DCEXQET.js";import"./chunk-OXCHPP5O.js";import"./chunk-4ZS2AWEH.js";import{d as le}from"./chunk-Z3KAWBW4.js";import"./chunk-66IUMZHI.js";import{a as he,b as ae,h as ce}from"./chunk-OUBZDB7W.js";import"./chunk-IVMHZCJX.js";import"./chunk-4QFEABTM.js";import"./chunk-BROEMAN2.js";import{B as R,b as ee,d as te,g as ne,h as L,k as Ze,m as oe,r as ie,s as T,u as He,w as Je,x as Qe,z as U}from"./chunk-TUBB4CKJ.js";import{a as nt}from"./chunk-ONR4H4XA.js";import"./chunk-MDV5KMHI.js";import"./chunk-4OP57X7R.js";import"./chunk-XPIUCE7A.js";import"./chunk-NJYG5445.js";import"./chunk-WZXOXFKY.js";import{a as q}from"./chunk-IDSOCJCJ.js";import"./chunk-OSBHNQNL.js";import"./chunk-INXKX66B.js";import"./chunk-HQ4I43KI.js";import"./chunk-UOHBR7QN.js";import{e as et,f as xe,g as _e,h as tt}from"./chunk-CO4GJYUO.js";import"./chunk-C5GTMP6R.js";import{e as Xe}from"./chunk-LGAJLI5L.js";import"./chunk-EMMNEPMK.js";import{a as ge}from"./chunk-SM6AVCHM.js";import"./chunk-OZXTMWHZ.js";import{a as Ye}from"./chunk-TKT6WRXH.js";import"./chunk-AWM4IV7Q.js";import"./chunk-HEDDCRUI.js";import"./chunk-PBYZCMGT.js";import"./chunk-5SQLPFDP.js";import"./chunk-VCHXOJ42.js";import"./chunk-CSE4GAV5.js";import{g as qe,ka as We,la as X}from"./chunk-BLS42OQ3.js";import"./chunk-5Y26HNWF.js";import"./chunk-RKG4N2VN.js";import{a as D}from"./chunk-KGIIEF6F.js";import"./chunk-V3UG5XJT.js";import{b as re}from"./chunk-HZUG5TXU.js";import"./chunk-4IUCEE5G.js";import"./chunk-XC4OLXP4.js";import"./chunk-AULM2GUH.js";import"./chunk-IKI7JET4.js";import"./chunk-DAUAYSAZ.js";import"./chunk-PC3NY4SE.js";import"./chunk-TMRWON6P.js";import"./chunk-ECNZ555G.js";import"./chunk-37GWMSOW.js";import"./chunk-5HZEILR7.js";import"./chunk-CX752UW2.js";import"./chunk-EXLTDRZ2.js";import"./chunk-6L2Z4IJ2.js";import"./chunk-QRGAB4LM.js";import"./chunk-A5GHT23J.js";import"./chunk-JI3D2NEO.js";import"./chunk-NDPOIEOE.js";import"./chunk-2UC2GKXR.js";import{a as Ke,b as w}from"./chunk-NMRIN72X.js";import{n as Ge,s as Q}from"./chunk-UNDDLGJA.js";import{$b as Te,Cc as V,Ec as d,F as Y,Jb as y,L as Z,M as j,Ma as I,Ob as Ve,P as S,Pb as N,Qb as Be,Sc as b,Tc as O,Uc as v,V as $e,Z as be,_ as F,_b as Le,ba as ze,ca as P,da as h,ed as B,fa as k,fc as f,fd as fe,g as x,gd as ue,h as je,hc as u,i as Ae,ka as Ie,kd as m,ld as p,mc as a,n as A,nc as l,oc as c,pc as s,qa as _,qb as r,s as M,t as Fe,tc as Ue,uc as Re,wa as $,xa as z,xc as J}from"./chunk-VS7X6DYN.js";import{a as H,f as Dt}from"./chunk-TSRGIXR5.js";var xt={agencyName:[{errorName:"required",message:"errors|required"},{errorName:"minLengthTrim",message:"errors|min_length"},{errorName:"maxLengthTrim",message:"errors|max_length"}]};var jt=e=>({toggle_disabled:e}),ht=e=>({toggle__unchecked:e});function At(e,i){if(e&1&&(l(0,"mat-error"),s(1,"span",14),c()),e&2){let n=d(3);r(),a("controlName",n.controlNames("agencyName"))}}function Ft(e,i){if(e&1&&(l(0,"div",10)(1,"nn-form-layout")(2,"mat-form-field",12)(3,"mat-label"),b(4),m(5,"localization"),c(),s(6,"input",13),m(7,"localization"),f(8,At,2,1,"mat-error"),c()()()),e&2){let n=d(2);r(4),O(p(5,4,"employer_agency_edit|agency_name")),r(2),a("formControlName",n.controlNames("agencyName"))("placeholder",p(7,6,"employer_agency_edit|agency_name_placeholder")),r(2),u(n.form.controls[n.controlNames("agencyName")].invalid?8:-1)}}function $t(e,i){if(e&1&&(l(0,"div",11)(1,"button",15),b(2),m(3,"localization"),c()()),e&2){let n=d(2);
1r(),a("disabled",n.form.pending||n.form.invalid),r(),v("",p(3,2,"employer_agency_edit|save_button")," ")}}function zt(e,i){if(e&1){let n=J();l(0,"form",1),V("submit",function(){$(n);let o=d();return z(o.onSubmit())}),l(1,"div",2)(2,"div",3)(3,"h2",4),b(4),m(5,"localization"),c(),l(6,"h3",5),b(7),m(8,"localization"),c()(),l(9,"div",6)(10,"div",7)(11,"label",8),b(12),m(13,"localization"),c(),l(14,"mat-slide-toggle",9),b(15),m(16,"localization"),c()()()(),f(17,Ft,9,8,"div",10),f(18,$t,4,4,"div",11),c()}if(e&2){let n=d();a("formGroup",n.form),r(4),O(p(5,11,"employer_agency_edit|title")),r(3),O(p(8,13,"employer_agency_edit|subtitle")),r(3),a("ngClass",ue(19,jt,n.agencyStatus.agencyStatus===n.AgencyStatuses.AgencyForced)),r(),a("ngClass",ue(21,ht,n.form.controls[n.controlNames("isAgency")].value)),r(),v("",p(13,15,"employer_agency_edit|no")," "),r(2),a("formControlName",n.controlNames("isAgency"))("ngClass",ue(23,ht,!n.form.controls[n.controlNames("isAgency")].value)),r(),v("",p(16,17,"employer_agency_edit|yes")," "),r(2),u(n.form.controls[n.controlNames("isAgency")].value?17:-1),r(),u(n.form.controls[n.controlNames("isAgency")].value?18:-1)}}var Ct=(()=>{let i=class i extends Se{constructor(){super(),this.formBuilder=_(U),this.employerManagementService=_(nt),this.alertsService=_(q),this.controlNames=G(),this.AgencyStatuses=X,this.changesSavedMessage="employer_agency_edit|changes_saved",this.formReadySubject$=new x,this.inputSubject$=new x,this.formValueSubject$=new x,this.destroySubject$=new x,this.inputSubject$.pipe(j(1),k(t=>this.form=this.buildFormGroup(t)),k(()=>this.onViewReady()),k(()=>this.formReadySubject$.next())).subscribe(),this.inputSubject$.pipe(F(1),S((t,o)=>t.agencyStatus===o.agencyStatus&&t.agencyName===o.agencyName),k(t=>{let o=this.form.controls[this.controlNames("isAgency")],g=t.agencyStatus;o.setValue(g!==X.NotAgency,{emitEvent:!1}),g===X.AgencyForced?o.disable({emitEvent:!1}):o.enable({emitEvent:!1})}),h(this.destroySubject$)).subscribe(),this.formReadySubject$.pipe(j(1),P(()=>this.form.controls[this.controlNames("isAgency")].valueChanges),Z(250),S(),Y(t=>!t),M(()=>({isAgency:!1,agencyName:this.agencyStatus.agencyName})),this.updateAgencyOperator(),h(this.destroySubject$)).subscribe(),this.formValueSubject$.pipe(Z(250),S((t,o)=>t.isAgency===o.isAgency&&t.agencyName===o.agencyName),this.updateAgencyOperator(),h(this.destroySubject$)).subscribe()}ngOnChanges(){this.inputSubject$.next(this.agencyStatus)}onSubmit(){this.form.valid&&!this.form.pending&&this.formValueSubject$.next(H({},this.form.value))}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}updateAgencyOperator(){return t=>t.pipe(P(o=>this.employerManagementService.updateAgency(o)),k(()=>this.alertsService.notifySuccess(this.changesSavedMessage)))}buildFormGroup(t){let o={isAgency:new Ze({value:t.agencyStatus!==X.NotAgency,disabled:t.agencyStatus===X.AgencyForced}),agencyName:[t.agencyName,[te.required,pe.minLength(3),pe.maxLength(254)]]};return this.formBuilder.group(o)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["nn-employer-agency-edit"]],inputs:{agencyStatus:"agencyStatus"},features:[B([{provide:W,useValue:xt},{provide:Se,useExisting:Ie(()=>i)}]),Ve,I],decls:1,vars:1,consts:[[1,"block",3,"formGroup"],[1,"block",3,"submit","formGroup"],[1,"block__header","block__header_line","block__header_center","block__header_nomargin","block__header_nommargin"],[1,"block__left"],[1,"block__title","block__title_mcenter"],[1,"block__subtitle","block__subtitle_mcenter"],[1,"block__right"],[1,"toggle",3,"ngClass"],[1,"toggle__label",3,"ngClass"],[1,"toggle__input",3,"formControlName","ngClass"],[1,"block__content"],[1,"block__footer","block__footer_center"],["floatLabel","always"],["matInput","","required","","type","text",3,"formControlName","placeholder"],[3,"controlName","nnErrorMessage"],["matButton","filled","type","submit",1,"block__submit",3,"disabled"]],template:function(o,g){o&1&&f(0,zt,19,25,"form",0),o&2&&u(g.form?0:-1)},dependencies:[R,oe,ee,ne,L,He,T,ie,Ge,lt,ce,se,re,le,he,ae,me,D],styles:[".block[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:16px 8px;margin:0 -8px 50px}@media screen and (max-width:750px){.block[_ngcontent-%COMP%]{overflow:hidden}}.block__header[_ngcontent-%COMP%]{margin-bottom:20px}.block__title[_ngcontent-%COMP%]{font-size:24px;letter-spacing:normal;font-weight:700;line-height:1.1;margin:0}.block__title_center[_ngcontent-%COMP%]{text-align:center}.block__subtitle[_ngcontent-%COMP%]{font-size:18px;letter-spacing:normal;line-height:1.1;font-weight:400;color:var(--mat-sys-on-surface-variant);margin:8px 0 0}.block__subtitle[_ngcontent-%COMP%]:empty{display:none}.block_nobg[_ngcontent-%COMP%]{padding:0 15px;background:none;box-shadow:none}.block__right[_ngcontent-%COMP%]{margin-bottom:0;margin-top:20px;
1display:flex;flex-direction:column}.block__change[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);min-width:160px;padding-top:18px;padding-bottom:18px}.block__pagination[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:0 4px 64px #0000000f;border-radius:88px;padding:20px 24px;display:flex;align-items:center;flex-direction:column;margin-bottom:0;margin-top:48px}.block__continue[_ngcontent-%COMP%]{display:none;flex:0 0 190px;padding-inline-start:20px;margin-inline-start:auto;flex-direction:column}.block__footer[_ngcontent-%COMP%]{margin-top:20px}.block__footer_center[_ngcontent-%COMP%]{text-align:center}.block__hide[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);text-decoration:underline;letter-spacing:normal;font-size:14px}.block_nopad[_ngcontent-%COMP%]{padding:0}[dir=rtl][_nghost-%COMP%] .block__submit[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .block__submit[_ngcontent-%COMP%]{font-size:16px}@media screen and (min-width:751px){.block[_ngcontent-%COMP%]{position:relative;margin-inline-start:0;margin-inline-end:0;margin-bottom:48px;padding:26px 16px}.block__subtitle[_ngcontent-%COMP%]{line-height:1.32}.block__right[_ngcontent-%COMP%]{padding-inline-start:20px;margin-top:0;margin-bottom:0;display:flex;flex:0 0 auto;flex-direction:row}.block__left[_ngcontent-%COMP%]{flex:1 1 auto}.block__header[_ngcontent-%COMP%]{margin-bottom:30px}.block__subtitle[_ngcontent-%COMP%]{font-size:18px}.block__header_line[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.block__header_center[_ngcontent-%COMP%]{align-items:center}.block__header_nomargin[_ngcontent-%COMP%], .block__header_nomargin[_ngcontent-%COMP%] .block__right[_ngcontent-%COMP%]{margin-bottom:0}.block_line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:0}.block_line[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:0}.block_line[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end}.block__footer[_ngcontent-%COMP%]{margin-top:0}.block__continue[_ngcontent-%COMP%]{display:flex}.block__pagination[_ngcontent-%COMP%]{flex-direction:row}.block__content_line[_ngcontent-%COMP%]{display:flex}.block_nopad[_ngcontent-%COMP%]{padding:0}.block__bg[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:26px 16px}.block__bg[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:26px}.block__bg[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-inline-start:-16px;margin-inline-end:-16px}}html.color-scheme-dark[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}html.color-scheme-dark[_ngcontent-%COMP%] .block__pagination[_ngcontent-%COMP%]{box-shadow:0 4px 64px #0000003d}html.color-scheme-dark[_ngcontent-%COMP%] .block__bg[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}@media screen and (max-width:750px){.block__title_mcenter[_ngcontent-%COMP%], .block__subtitle_mcenter[_ngcontent-%COMP%]{text-align:center}.block__subtitle_mcenter[_ngcontent-%COMP%]{font-size:18px}.block_docs[_ngcontent-%COMP%] .block__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.block__right.m-hide[_ngcontent-%COMP%]{display:none}.block_reverse[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.block_reverse[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:0}.block_reverse[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-bottom:12px}.block_nobgmobile[_ngcontent-%COMP%]{padding:0 8px;box-shadow:none;background:none}.block_nopadmobile[_ngcontent-%COMP%]{padding-inline-start:0;padding-inline-end:0;margin-bottom:40px}.block__right_mcenter[_ngcontent-%COMP%]{justify-content:center;flex-direction:row}.block__header_nommargin[_ngcontent-%COMP%]{margin-bottom:0}}.toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.toggle__label[_ngcontent-%COMP%]{padding-inline-end:12px;font-size:18px}.toggle__input[_ngcontent-%COMP%]{font-size:18px}.toggle__unchecked[_ngcontent-%COMP%]{color:var(--mat-sys-outline)}@media screen and (min-width:751px){.toggle[_ngcontent-%COMP%]{justify-content:flex-start}}.block__content[_ngcontent-%COMP%]{padding-top:20px}.block__footer[_ngcontent-%COMP%]{margin-top:0}"],changeDetection:0});let e=i;return e})();var kt={comment:[{errorName:"minLengthTrim",message:"errors|min_length"},{errorName:"maxLengthTrim",message:"errors|max_length"}]};function It(e,i){if(e&1&&(l(0,"mat-error"),s(1,"span",10),c()),e&2){let n=d(2);r(),a("controlName",n.controlNames("comment"))}}function Vt(e,i){if(e&1){let n=J();l(0,"form",1),V("submit",function(){$(n);let o=d();return z(o.onSubmit())}),l(1,"div",2)(2,"div",3)(3,"h3",4),b(4),m(5,"localization"),c(),l(6,"h4",5),b(7),m(8,"localization"),c()()(),l(9,"div",6)(10,"nn-form-layout")(11,"mat-form-field",7),s(12,"input",8),m(13,"localization"),f(14,It,2,1,"mat-error"),c()(),l(15,"button",9),b(16),m(17,"localization"),c()()()}if(e&2){let n=d();a("formGroup",n.form),r(4),O(p(5,8,"address_comment_edit|title")),r(3),O(p(8,10,"address_comment_edit|subtitle")),r(5),a("formControlName",n.controlNames("comment"))("placeholder",p(13,12,"address_comment_edit|address_comment_placeholder")),r(2),u(n.form.controls[n.controlNames("comment")].invalid?14:-1),r(),a("disabled",n.form.pending||n.form.invali
1d),r(),v("",p(17,14,"address_comment_edit|save_button")," ")}}var Me=(()=>{let i=class i{constructor(){this.formBuilder=_(U),this.controlNames=G(),this.commentSubject$=new x,this.submitSubject$=new x,this.destroySubject$=new x,this.changeSuccessMessage="address_comment_edit|change_success";let t=_(E),o=_(q);this.commentSubject$.pipe(j(1),k(g=>this.form=this.initForm(g)),h(this.destroySubject$)).subscribe(),this.commentSubject$.pipe(F(1),S(),k(g=>this.form.setValue({comment:g.comment},{emitEvent:!1})),h(this.destroySubject$)).subscribe(),this.submitSubject$.pipe(Z(500),S(),P(g=>t.changeAddressComment(g.comment)),k(()=>o.notifySuccess(this.changeSuccessMessage)),h(this.destroySubject$)).subscribe()}ngOnChanges(t){t.address&&this.commentSubject$.next(this.address)}onSubmit(){this.form.invalid||this.form.pending||this.submitSubject$.next(this.form.value)}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}initForm(t){let o={comment:[t.comment,[pe.minLength(1),pe.maxLength(256)]]};return this.formBuilder.group(o)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["nn-address-comment-edit"]],inputs:{address:"address"},features:[B([{provide:W,useValue:kt}]),I],decls:1,vars:1,consts:[[1,"block","block_nobgmobile",3,"formGroup"],[1,"block","block_nobgmobile",3,"submit","formGroup"],[1,"block__header","block__header_line","block__header_center"],[1,"block__left"],[1,"block__title"],[1,"block__subtitle"],[1,"block__content"],["floatLabel","always"],["matInput","","type","text",3,"formControlName","placeholder"],["matButton","filled","type","submit",1,"block__submit",3,"disabled"],[3,"controlName","nnErrorMessage"]],template:function(o,g){o&1&&f(0,Vt,18,16,"form",0),o&2&&u(g.form?0:-1)},dependencies:[R,oe,ee,ne,L,T,ie,ce,se,re,le,ae,me,D],styles:[".block[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:16px 8px;margin:0 -8px 50px}@media screen and (max-width:750px){.block[_ngcontent-%COMP%]{overflow:hidden}}.block__header[_ngcontent-%COMP%]{margin-bottom:20px}.block__title[_ngcontent-%COMP%]{font-size:24px;letter-spacing:normal;font-weight:700;line-height:1.1;margin:0}.block__title_center[_ngcontent-%COMP%]{text-align:center}.block__subtitle[_ngcontent-%COMP%]{font-size:18px;letter-spacing:normal;line-height:1.1;font-weight:400;color:var(--mat-sys-on-surface-variant);margin:8px 0 0}.block__subtitle[_ngcontent-%COMP%]:empty{display:none}.block_nobg[_ngcontent-%COMP%]{padding:0 15px;background:none;box-shadow:none}.block__right[_ngcontent-%COMP%]{margin-bottom:0;margin-top:20px;display:flex;flex-direction:column}.block__change[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);min-width:160px;padding-top:18px;padding-bottom:18px}.block__pagination[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:0 4px 64px #0000000f;border-radius:88px;padding:20px 24px;display:flex;align-items:center;flex-direction:column;margin-bottom:0;margin-top:48px}.block__continue[_ngcontent-%COMP%]{display:none;flex:0 0 190px;padding-inline-start:20px;margin-inline-start:auto;flex-direction:column}.block__footer[_ngcontent-%COMP%]{margin-top:20px}.block__footer_center[_ngcontent-%COMP%]{text-align:center}.block__hide[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);text-decoration:underline;letter-spacing:normal;font-size:14px}.block_nopad[_ngcontent-%COMP%]{padding:0}[dir=rtl][_nghost-%COMP%] .block__submit[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .block__submit[_ngcontent-%COMP%]{font-size:16px}@media screen and (min-width:751px){.block[_ngcontent-%COMP%]{position:relative;margin-inline-start:0;margin-inline-end:0;margin-bottom:48px;padding:26px 16px}.block__subtitle[_ngcontent-%COMP%]{line-height:1.32}.block__right[_ngcontent-%COMP%]{padding-inline-start:20px;margin-top:0;margin-bottom:0;display:flex;flex:0 0 auto;flex-direction:row}.block__left[_ngcontent-%COMP%]{flex:1 1 auto}.block__header[_ngcontent-%COMP%]{margin-bottom:30px}.block__subtitle[_ngcontent-%COMP%]{font-size:18px}.block__header_line[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.block__header_center[_ngcontent-%COMP%]{align-items:center}.block__header_nomargin[_ngcontent-%COMP%], .block__header_nomargin[_ngcontent-%COMP%] .block__right[_ngcontent-%COMP%]{margin-bottom:0}.block_line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:0}.block_line[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:0}.block_line[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end}.block__footer[_ngcontent-%COMP%]{margin-top:0}.block__continue[_ngcontent-%COMP%]{display:flex}.block__pagination[_ngcontent-%COMP%]{flex-direction:row}.block__content_line[_ngcontent-%COMP%]{display:flex}.block_nopad[_ngcontent-%COMP%]{padding:0}.block__bg[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:26px 16px}.block__bg[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:26px}.block__bg[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-inline-start:-16px;margin-inline-end:-16px}}
1html.color-scheme-dark[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}html.color-scheme-dark[_ngcontent-%COMP%] .block__pagination[_ngcontent-%COMP%]{box-shadow:0 4px 64px #0000003d}html.color-scheme-dark[_ngcontent-%COMP%] .block__bg[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}@media screen and (max-width:750px){.block__title_mcenter[_ngcontent-%COMP%], .block__subtitle_mcenter[_ngcontent-%COMP%]{text-align:center}.block__subtitle_mcenter[_ngcontent-%COMP%]{font-size:18px}.block_docs[_ngcontent-%COMP%] .block__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.block__right.m-hide[_ngcontent-%COMP%]{display:none}.block_reverse[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.block_reverse[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:0}.block_reverse[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-bottom:12px}.block_nobgmobile[_ngcontent-%COMP%]{padding:0 8px;box-shadow:none;background:none}.block_nopadmobile[_ngcontent-%COMP%]{padding-inline-start:0;padding-inline-end:0;margin-bottom:40px}.block__right_mcenter[_ngcontent-%COMP%]{justify-content:center;flex-direction:row}.block__header_nommargin[_ngcontent-%COMP%]{margin-bottom:0}}.block[_ngcontent-%COMP%]{padding-bottom:24px}.block__header[_ngcontent-%COMP%]{margin-bottom:21px}"],changeDetection:0});let e=i;return e})();var Pt={geoPlace:[{errorName:"incompleteAddress",message:"errors|address_route_or_street"}]};function Bt(e,i){if(e&1&&(Ue(0,5),s(1,"nn-address-input",6),m(2,"localization"),Re()),e&2){let n=d();a("formGroup",n.form),r(),a("controlName",n.controlNames("geoPlace"))("label",p(2,4,"user_address_edit|label"))("zoomGeoPickerOnScroll",!1)}}function Mt(e,i){return e?.lat===i?.lat&&e?.lng===i?.lng}var ye=(()=>{let i=class i{constructor(){this.userProfileFacade=_(E),this.formBuilder=_(U),this.geolocationService=_(Xe),this.alertService=_(q),this.locationManager=_(tt),this.formatter=_(et),this.appConfig=_(Ke),this.controlNames=G(),this.pointSubject$=new x,this.formReadySubject$=new x,this.destroySubject$=new x,this.changeSuccessMessage="user_address_edit|change_success",this.pointSubject$.pipe(j(1),P(t=>this.initForm(t)),h(this.destroySubject$)).subscribe(),this.pointSubject$.pipe(S(Mt),F(1),P(t=>this.geolocationService.getPlaceByCoordinates(t.lat,t.lng,t.extraLabel)),k(t=>{let o={geoPlace:t};this.form.setValue(o,{emitEvent:!1})}),h(this.destroySubject$)).subscribe(),this.formReadySubject$.pipe(P(()=>this.form.valueChanges),Z(1e3),M(t=>t[this.controlNames("geoPlace")]),Y(()=>this.form.valid),S(Mt),M(t=>{let o=new We;return o.init(t),{address:o,geoPlace:t}}),P(t=>this.userProfileFacade.changeAddress(t.address).pipe(M(()=>t.geoPlace))),P(t=>this.handleGeoPlaceSelection(t)),k(()=>this.alertService.notifySuccess(this.changeSuccessMessage)),h(this.destroySubject$)).subscribe()}handleGeoPlaceSelection(t){switch(this.appConfig.countryDomain){case w.RU:case w.BY:case w.KZ:case w.KG:case w.MD:case w.UZ:case w.TJ:{let o=_e[this.appConfig.countryDomain];return t.formatted_address===o.fullAddress?(this.locationManager.setCurrentLocation(o),A(null)):this.locationManager.setCityLocationByCoordinates(t.lat,t.lng,t.formatted_address).pipe(M(()=>null))}case w.CA:{if(t.formatted_address==="Canada")return this.locationManager.setCurrentLocation(_e.CA),A(null);let o=new xe(0,void 0,t.lat,t.lng,t.postal&&this.formatter.format(t.postal),t.formatted_address);return this.locationManager.setCurrentLocation(o),A(null)}case w.UK:{if(t.formatted_address==="UK")return this.locationManager.setCurrentLocation(_e.UK),A(null);let o=new xe(0,void 0,t.lat,t.lng,t.postal&&this.formatter.format(t.postal),t.formatted_address);return this.locationManager.setCurrentLocation(o),A(null)}case w.US:{if(t.formatted_address==="US")return this.locationManager.setCurrentLocation(_e.US),A(null);let o=new xe(0,void 0,t.lat,t.lng,t.postal&&this.formatter.format(t.postal),t.formatted_address);return this.locationManager.setCurrentLocation(o),A(null)}case w.IL:return this.locationManager.setCityLocationByCoordinates(t.lat,t.lng,t.formatted_address).pipe(M(()=>null))}}ngOnChanges(t){let o=t.address;o&&this.pointSubject$.next(o.currentValue)}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}initForm(t){return this.geolocationService.getPlaceByCoordinates(t.lat,t.lng,t.extraLabel).pipe(k(o=>{let g={geoPlace:[o,[mt(!this.appConfig.isAddressPostalOriented())]]};this.form=this.formBuilder.group(g),this.formReadySubject$.next()}),M(()=>null))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["nn-user-address-edit"]],inputs:{address:"address"},features:[B([{provide:W,useValue:Pt}]),I],decls:8,vars:4,consts:[[1,"block","block_nobgmobile"],[1,"block__header","block__header_line","block__header_center"],[1,"block__left"],[1,"block__title"],[1,"block__content"],[3,"formGroup"],[3,"controlName","label","zoomGeoPickerOnScroll"]],template:function(o,g){o&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),b(4),m(5,"localization"),c()()(),l(6,"div",4),f(7,Bt,3,6,"ng-container",5),c()()),o&2&&(r(4),O(p(5,2,"user_address_edit|title")),r(3),u(g.form?7:-1))},dependencies:[R,L,T,st,D],styles:[".block[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:16px 8px;margin:0 -8px 50px}@media screen and (max-width:750px){.block[_ngcontent-%COMP%]{overflow:hidden}}.block__header[_ngcontent-%COMP%]{margin-bottom:20px}.block__title[_ngcontent-%COMP%]{font-size:24px;letter-spacing:normal;font-weight:700;line-height:1.1;margin:0}.block__title_center[_ngcontent-%COMP%]{text-align:center}.block__subtitle[_ngcontent-%COMP%]{font-size:18px;letter-spacing:normal;line-height:1.1;font-weight:400;color:var(--mat-sys-on-surface-variant);margin:8px 0 0}.block__subtitle[_ngcontent-%COMP%]:empty{display:none}.block_nobg[_ngcontent-%COMP%]{padding:0 15px;background:none;box-shadow:none}.block__right[_ngcontent-%COMP%]{margin-bottom:0;margin-top:20px;
1display:flex;flex-direction:column}.block__change[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);min-width:160px;padding-top:18px;padding-bottom:18px}.block__pagination[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:0 4px 64px #0000000f;border-radius:88px;padding:20px 24px;display:flex;align-items:center;flex-direction:column;margin-bottom:0;margin-top:48px}.block__continue[_ngcontent-%COMP%]{display:none;flex:0 0 190px;padding-inline-start:20px;margin-inline-start:auto;flex-direction:column}.block__footer[_ngcontent-%COMP%]{margin-top:20px}.block__footer_center[_ngcontent-%COMP%]{text-align:center}.block__hide[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);text-decoration:underline;letter-spacing:normal;font-size:14px}.block_nopad[_ngcontent-%COMP%]{padding:0}[dir=rtl][_nghost-%COMP%] .block__submit[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .block__submit[_ngcontent-%COMP%]{font-size:16px}@media screen and (min-width:751px){.block[_ngcontent-%COMP%]{position:relative;margin-inline-start:0;margin-inline-end:0;margin-bottom:48px;padding:26px 16px}.block__subtitle[_ngcontent-%COMP%]{line-height:1.32}.block__right[_ngcontent-%COMP%]{padding-inline-start:20px;margin-top:0;margin-bottom:0;display:flex;flex:0 0 auto;flex-direction:row}.block__left[_ngcontent-%COMP%]{flex:1 1 auto}.block__header[_ngcontent-%COMP%]{margin-bottom:30px}.block__subtitle[_ngcontent-%COMP%]{font-size:18px}.block__header_line[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.block__header_center[_ngcontent-%COMP%]{align-items:center}.block__header_nomargin[_ngcontent-%COMP%], .block__header_nomargin[_ngcontent-%COMP%] .block__right[_ngcontent-%COMP%]{margin-bottom:0}.block_line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:0}.block_line[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:0}.block_line[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end}.block__footer[_ngcontent-%COMP%]{margin-top:0}.block__continue[_ngcontent-%COMP%]{display:flex}.block__pagination[_ngcontent-%COMP%]{flex-direction:row}.block__content_line[_ngcontent-%COMP%]{display:flex}.block_nopad[_ngcontent-%COMP%]{padding:0}.block__bg[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:26px 16px}.block__bg[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:26px}.block__bg[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-inline-start:-16px;margin-inline-end:-16px}}html.color-scheme-dark[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}html.color-scheme-dark[_ngcontent-%COMP%] .block__pagination[_ngcontent-%COMP%]{box-shadow:0 4px 64px #0000003d}html.color-scheme-dark[_ngcontent-%COMP%] .block__bg[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}@media screen and (max-width:750px){.block__title_mcenter[_ngcontent-%COMP%], .block__subtitle_mcenter[_ngcontent-%COMP%]{text-align:center}.block__subtitle_mcenter[_ngcontent-%COMP%]{font-size:18px}.block_docs[_ngcontent-%COMP%] .block__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.block__right.m-hide[_ngcontent-%COMP%]{display:none}.block_reverse[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.block_reverse[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:0}.block_reverse[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-bottom:12px}.block_nobgmobile[_ngcontent-%COMP%]{padding:0 8px;box-shadow:none;background:none}.block_nopadmobile[_ngcontent-%COMP%]{padding-inline-start:0;padding-inline-end:0;margin-bottom:40px}.block__right_mcenter[_ngcontent-%COMP%]{justify-content:center;flex-direction:row}.block__header_nommargin[_ngcontent-%COMP%]{margin-bottom:0}}.block[_ngcontent-%COMP%]{padding-bottom:24px;overflow:visible}"]});let e=i;return e})();var Ot=Dt(Et());var yt={firstName:[{errorName:"nameRequired",message:"errors|required"},{errorName:"nameMaxLength",message:"errors|max_length"}
1,{errorName:"nameStartEndChar",message:"errors|start_end_char"},{errorName:"duplicateSequenceNonAlphabeticSymbols",message:"errors|many_non_alphabetic_spelling_marks"},{errorName:"serviceNameUsed",message:"errors|service_name_used"},{errorName:"namePattern",message:"errors|invalid_name"}],lastName:[{errorName:"nameRequired",message:"errors|required"},{errorName:"nameMaxLength",message:"errors|max_length"},{errorName:"nameStartEndChar",message:"errors|start_end_char"},{errorName:"duplicateSequenceNonAlphabeticSymbols",message:"errors|many_non_alphabetic_spelling_marks"},{errorName:"serviceNameUsed",message:"errors|service_name_used"},{errorName:"namePattern",message:"errors|invalid_lastname"}],email:[{errorName:"required",message:"errors|required"},{errorName:"pattern",message:"errors|error_email_format"},{errorName:"busy",message:"profile_page|error_email_busy"}],birthDate:[{errorName:"minDate",message:"register_page|error_max_age"},{errorName:"maxDate",message:"register_page|error_min_age"}]};function Lt(e,i){if(e&1&&(l(0,"mat-error"),s(1,"span",18),c()),e&2){let n=d(2);r(),a("controlName",n.controlNames("email"))("nnErrorMessage","error")}}function Tt(e,i){if(e&1&&(l(0,"mat-error"),s(1,"span",18),c()),e&2){let n=d(2);r(),a("controlName",n.controlNames("firstName"))("nnErrorMessage","error")}}function Ut(e,i){if(e&1&&(l(0,"mat-error"),s(1,"span",18),c()),e&2){let n=d(2);r(),a("controlName",n.controlNames("lastName"))("nnErrorMessage","error")}}function Rt(e,i){if(e&1&&(l(0,"mat-error"),s(1,"span",18),c()),e&2){let n=d(3);r(),a("controlName",n.controlNames("birthDate"))("nnErrorMessage","error")}}function Gt(e,i){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),b(2),m(3,"localization"),c(),s(4,"nn-date-input",19),f(5,Rt,2,2,"mat-error"),c()),e&2){let n=d(2);r(2),v(" ",p(3,6,"dashboard_page|birthday")," "),r(2),a("formControlName",n.controlNames("birthDate"))("maxDate",n.maxBirthDate)("minDate",n.minBirthDate)("startAt",n.averageBirthDate),r(),u(n.form.controls[n.controlNames("birthDate")].invalid?5:-1)}}function qt(e,i){if(e&1){let n=J();l(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),b(4),m(5,"localization"),c(),l(6,"h3",4),b(7),m(8,"localization"),c()(),l(9,"div",5)(10,"button",6),V("click",function(){$(n);let o=d();return z(o.openChangePasswordDialog())}),b(11),m(12,"localization"),c()()(),l(13,"div",7)(14,"form",8),V("ngSubmit",function(){$(n);let o=d();return z(o.onSubmit())}),l(15,"nn-form-layout")(16,"nn-form-elements-group")(17,"mat-form-field",9)(18,"mat-label"),b(19),m(20,"localization"),c(),s(21,"input",10),m(22,"localization"),f(23,Lt,2,2,"mat-error"),c(),l(24,"nn-phone-number-input",11),m(25,"async"),m(26,"localization"),m(27,"localization"),V("click",function(){$(n);let o=d();return z(o.openPhoneNumberVerificationDialog())}),c()(),l(28,"nn-form-elements-group",12)(29,"mat-form-field",9)(30,"mat-label"),b(31),m(32,"localization"),c(),s(33,"input",13),m(34,"localization"),f(35,Tt,2,2,"mat-error"),c(),l(36,"mat-form-field",9)(37,"mat-label"),b(38),m(39,"localization"),c(),s(40,"input",13),m(41,"localization"),f(42,Ut,2,2,"mat-error"),c()(),N(43,Gt,6,8,"mat-form-field",14),c(),l(44,"div",15)(45,"div",16),b(46),c(),l(47,"button",17),b(48),m(49,"localization"),c()()()()()}if(e&2){let n=d();r(4),O(p(5,25,"profile_info_page|title")),r(3),O(p(8,27,"profile_info_page|subtitle")),r(4),v("",p(12,29,"dashboard_page|change_password")," "),r(3),a("formGroup",n.form),r(5),v(" ",p(20,31,"dashboard_page|email")+":"," "),r(2),a("formControlName",n.controlNames("email"))("placeholder",p(22,33,"dashboard_page|email_placeholder")),r(2),u(n.form.controls[n.controlNames("email")].invalid?23:-1),r(),a("value",p(25,35,n.phoneNumber$))("label",p(26,37,"dashboard_page|phone"))("placeholder",p(27,39,"dashboard_page|phone_placeholder"))("readonly",!0),r(4),a("keepOnMobile",!0),r(3),v(" ",p(32,41,"dashboard_page|name")+":"," "),r(2),a("formControlName",n.controlNames("firstName"))("placeholder",p(34,43,"dashboard_page|name_placeholder")),r(2),u(n.form.controls[n.controlNames("firstName")].invalid?35:-1),r(3),v(" ",p(39,45,"dashboard_page|surname")+":"," "),r(2),a("formControlName",n.controlNames("lastName"))("placeholder",p(41,47,"dashboard_page|surname_placeholder")),r(2),u(n.form.controls[n.controlNames("lastName")].invalid?42:-1),r(),a("nnUserRoleOnly","Worker"),r(3),v("ID: ",n.userProfile.humanReadableId),r(),a("disabled",n.form.invali
1d||n.form.pending),r(),v("",p(49,49,"dashboard_page|save")," ")}}var Oe=(()=>{let i=class i{constructor(){this.usersDialogs=_(it),this.emailValidators=_(we),this.userValidators=_(Ne),this.minBirthDate=ke.minBirthDate,this.maxBirthDate=ke.maxBirthDate,this.averageBirthDate=ke.averageBirthDate,this.controlNames=G(),this.inputDataSubject$=new Ae(1),this.changesSubject$=new x,this.destroySubject$=new x,this.phoneNumber$=this.inputDataSubject$.pipe(M(C=>C.phone),S()),this.changeSuccessMessage="user_personal_data_edit|change_success";let t=_(U),o=_(E),g=_(q);this.inputDataSubject$.pipe(j(1),k(C=>{let K=this.createFormConfig(C);this.form=t.group(K),C.isNameModificationLocked&&(this.form.get(this.controlNames("firstName")).disable(),this.form.get(this.controlNames("lastName")).disable()),C.isBirthDateModificationLocked&&this.form.get(this.controlNames("birthDate")).disable(),this.changesSubject$.next(H({},this.form.value))}),h(this.destroySubject$)).subscribe(),this.inputDataSubject$.pipe(F(1),k(C=>{for(let K in this.form.controls){if(!C.hasOwnProperty(K))continue;let ve=this.form.controls[K];if(!ve)continue;let Ee=C[K];ve.value!==Ee&&ve.setValue(Ee,{emitEvent:!1})}}),h(this.destroySubject$)).subscribe(),this.changesSubject$.pipe(Y(()=>this.form.valid&&!this.form.pending),$e(),Y(([C,K])=>!Ot.default.isEqual(C,K)),P(([,C])=>o.updatePersonalData(C)),k(()=>g.notifySuccess(this.changeSuccessMessage)),h(this.destroySubject$)).subscribe()}ngOnChanges(){this.inputDataSubject$.next(H({},this.userProfile))}onSubmit(){this.changesSubject$.next(H({},this.form.getRawValue()))}openChangePasswordDialog(){this.usersDialogs.openChangePassword().subscribe()}openPhoneNumberVerificationDialog(){this.usersDialogs.openPhoneNumberVerification(this.userProfile.phone,this.userProfile.phoneNumberConfirmed).subscribe()}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}createFormConfig(t){return{firstName:[t.firstName,this.userValidators.userNameValidator()],lastName:[t.lastName,this.userValidators.userNameValidator()],email:[t.email,{validators:[te.required,te.pattern(rt.emailPattern)],asyncValidators:[this.emailValidators.availabilityValidator(t.email)]}],birthDate:[t.birthDate,t.userRoleType===qe.Worker?[te.required,dt(this.minBirthDate),_t(this.maxBirthDate)]:void 0]}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["nn-user-personal-data-edit"]],inputs:{userProfile:"userProfile"},features:[B([{provide:W,useValue:yt},we,Ne]),I],decls:1,vars:1,consts:[[1,"block","block_nobgmobile"],[1,"block__header","block__header_line"],[1,"block__left","m-hide"],[1,"block__title"],[1,"block__subtitle"],[1,"block__right"],["matButton","tonal","type","button",1,"block__change","mat-button",3,"click"],[1,"block__content"],[1,"personal",3,"ngSubmit","formGroup"],["floatLabel","always"],["type","text","autocomplete","email","matInput","",3,"formControlName","placeholder"],["formFieldStyle","border","lableFontSize","large",3,"click","value","label","placeholder","readonly"],[3,"keepOnMobile"],["type","text","minlength","1","maxlength","90","matInput","",3,"formControlName","placeholder"],[4,"nnUserRoleOnly"],[1,"personal__footer"],[1,"personal__id"],["matButton","filled","type","submit",1,"personal__save",3,"disabled"],[3,"controlName","nnErrorMessage"],["utcCalendarDate","",3,"formControlName","maxDate","minDate","startAt"]],template:function(o,g){o&1&&f(0,qt,50,51,"div",0),o&2&&u(g.form?0:-1)},dependencies:[R,oe,ee,ne,L,Je,Qe,T,ie,ce,se,le,he,ae,ot,re,Pe,ct,me,gt,D,Q],styles:[".block[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:16px 8px;margin:0 -8px 50px}@media screen and (max-width:750px){.block[_ngcontent-%COMP%]{overflow:hidden}}.block__header[_ngcontent-%COMP%]{margin-bottom:20px}.block__title[_ngcontent-%COMP%]{font-size:24px;letter-spacing:normal;font-weight:700;line-height:1.1;margin:0}.block__title_center[_ngcontent-%COMP%]{text-align:center}.block__subtitle[_ngcontent-%COMP%]{font-size:18px;letter-spacing:normal;line-height:1.1;font-weight:400;color:var(--mat-sys-on-surface-variant);margin:8px 0 0}.block__subtitle[_ngcontent-%COMP%]:empty{display:none}.block_nobg[_ngcontent-%COMP%]{padding:0 15px;background:none;box-shadow:none}.block__right[_ngcontent-%COMP%]{margin-bottom:0;margin-top:20px;
1display:flex;flex-direction:column}.block__change[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);min-width:160px;padding-top:18px;padding-bottom:18px}.block__pagination[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:0 4px 64px #0000000f;border-radius:88px;padding:20px 24px;display:flex;align-items:center;flex-direction:column;margin-bottom:0;margin-top:48px}.block__continue[_ngcontent-%COMP%]{display:none;flex:0 0 190px;padding-inline-start:20px;margin-inline-start:auto;flex-direction:column}.block__footer[_ngcontent-%COMP%]{margin-top:20px}.block__footer_center[_ngcontent-%COMP%]{text-align:center}.block__hide[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);text-decoration:underline;letter-spacing:normal;font-size:14px}.block_nopad[_ngcontent-%COMP%]{padding:0}[dir=rtl][_nghost-%COMP%] .block__submit[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .block__submit[_ngcontent-%COMP%]{font-size:16px}@media screen and (min-width:751px){.block[_ngcontent-%COMP%]{position:relative;margin-inline-start:0;margin-inline-end:0;margin-bottom:48px;padding:26px 16px}.block__subtitle[_ngcontent-%COMP%]{line-height:1.32}.block__right[_ngcontent-%COMP%]{padding-inline-start:20px;margin-top:0;margin-bottom:0;display:flex;flex:0 0 auto;flex-direction:row}.block__left[_ngcontent-%COMP%]{flex:1 1 auto}.block__header[_ngcontent-%COMP%]{margin-bottom:30px}.block__subtitle[_ngcontent-%COMP%]{font-size:18px}.block__header_line[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.block__header_center[_ngcontent-%COMP%]{align-items:center}.block__header_nomargin[_ngcontent-%COMP%], .block__header_nomargin[_ngcontent-%COMP%] .block__right[_ngcontent-%COMP%]{margin-bottom:0}.block_line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:0}.block_line[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:0}.block_line[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end}.block__footer[_ngcontent-%COMP%]{margin-top:0}.block__continue[_ngcontent-%COMP%]{display:flex}.block__pagination[_ngcontent-%COMP%]{flex-direction:row}.block__content_line[_ngcontent-%COMP%]{display:flex}.block_nopad[_ngcontent-%COMP%]{padding:0}.block__bg[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:26px 16px}.block__bg[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:26px}.block__bg[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-inline-start:-16px;margin-inline-end:-16px}}html.color-scheme-dark[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}html.color-scheme-dark[_ngcontent-%COMP%] .block__pagination[_ngcontent-%COMP%]{box-shadow:0 4px 64px #0000003d}html.color-scheme-dark[_ngcontent-%COMP%] .block__bg[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}@media screen and (max-width:750px){.block__title_mcenter[_ngcontent-%COMP%], .block__subtitle_mcenter[_ngcontent-%COMP%]{text-align:center}.block__subtitle_mcenter[_ngcontent-%COMP%]{font-size:18px}.block_docs[_ngcontent-%COMP%] .block__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.block__right.m-hide[_ngcontent-%COMP%]{display:none}.block_reverse[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.block_reverse[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:0}.block_reverse[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-bottom:12px}.block_nobgmobile[_ngcontent-%COMP%]{padding:0 8px;box-shadow:none;background:none}.block_nopadmobile[_ngcontent-%COMP%]{padding-inline-start:0;padding-inline-end:0;margin-bottom:40px}.block__right_mcenter[_ngcontent-%COMP%]{justify-content:center;flex-direction:row}.block__header_nommargin[_ngcontent-%COMP%]{margin-bottom:0}}.personal__footer[_ngcontent-%COMP%]{display:flex;justify-content:center}.personal__id[_ngcontent-%COMP%]{display:none}@media screen and (min-width:751px){.personal__footer[_ngcontent-%COMP%]{margin-top:12px;align-items:center;position:relative}
1.personal__save[_ngcontent-%COMP%]{min-width:124px}.personal__id[_ngcontent-%COMP%]{display:block;position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%)}}"],changeDetection:0});let e=i;return e})();var Wt=()=>["CA","IL","US"];function Kt(e,i){if(e&1&&s(0,"nn-address-comment-edit",1),e&2){let n=d();a("address",n.userProfile.address)}}function Yt(e,i){if(e&1&&s(0,"nn-user-avatar-edit",6),e&2){let n=d();a("avatarId",n.userProfile.avatarId)}}function Zt(e,i){if(e&1&&s(0,"nn-phone-number-confirmation",5),e&2){let n=d();a("phoneNumber",n.userProfile.phone)}}function Ht(e,i){e&1&&s(0,"nn-email-confirmation")}function Jt(e,i){if(e&1&&(s(0,"nn-user-personal-data-edit",0)(1,"nn-user-address-edit",1),N(2,Kt,1,1,"nn-address-comment-edit",2)(3,Yt,1,1,"nn-user-avatar-edit",3),s(4,"nn-employer-agency-edit",4)(5,"nn-login-providers"),f(6,Zt,1,1,"nn-phone-number-confirmation",5),f(7,Ht,1,0,"nn-email-confirmation")),e&2){let n=i;a("userProfile",n.userProfile),r(),a("address",n.userProfile.address),r(),a("nnCountryDomain",fe(7,Wt)),r(),a("nnScreenMode","DESKTOP"),r(),a("agencyStatus",n.userProfile),r(2),u(n.userProfile.phoneNumberConfirmed?-1:6),r(),u(n.userProfile.emailConfirmed?-1:7)}}var vt=(()=>{let i=class i{constructor(){let t=_(E);this.refreshSubject$=new je(void 0),this.destroySubject$=new x,t.refreshes$.pipe(h(this.destroySubject$)).subscribe(this.refreshSubject$);let o=this.refreshSubject$.pipe(P(()=>t.getProfile()));this.personalData$=o.pipe(M(g=>({userProfile:g})),be({bufferSize:1,refCount:!0}))}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["nn-employer-profile"]],decls:2,vars:3,consts:[[3,"userProfile"],[3,"address"],[3,"address",4,"nnCountryDomain"],["viewMode","profile",3,"avatarId",4,"nnScreenMode"],["id","employer-agency-edit",3,"agencyStatus"],[3,"phoneNumber"],["viewMode","profile",3,"avatarId"]],template:function(o,g){if(o&1&&(f(0,Jt,8,8),m(1,"async")),o&2){let C;u((C=p(1,1,g.personalData$))?0:-1,C)}},dependencies:[Oe,bt,Ct,ft,at,ut,ge,Ce,Me,ye,Q],encapsulation:2});let e=i;return e})();var Qt=()=>[ge,import("./chunk-CPZYXHJA.js").then(e=>e.UserAvatarEditComponent),import("./chunk-FZIPDM5K.js").then(e=>e.ScreenModeDirective),import("./chunk-YLH4VX4P.js").then(e=>e.WorkerSexEditComponent),import("./chunk-EIZQPHZM.js").then(e=>e.WorkerMaritalStatusEditComponent),import("./chunk-DBTP3SVW.js").then(e=>e.WorkerCitizenshipsEditComponent),import("./chunk-TDNFJX7Z.js").then(e=>e.WorkerRequireLiveInCaregiverProgramEditComponent),import("./chunk-OHNPENAU.js").then(e=>e.WorkerPoliceCheckEditComponent),import("./chunk-KIXDBILT.js").then(e=>e.WorkerLanguagesEditComponent),import("./chunk-Z5AOHJWZ.js").then(e=>e.UserLoginInfosComponent),import("./chunk-M7IEM2LJ.js").then(e=>e.PhoneNumberConfirmationComponent),import("./chunk-WH6AV6OW.js").then(e=>e.EmailConfirmationComponent)],Xt=()=>["CA","IL","US"];function en(e,i){if(e&1&&s(0,"nn-address-comment-edit",1),e&2){let n=d();a("address",n.userProfile.address)}}function tn(e,i){if(e&1&&s(0,"nn-user-avatar-edit",11),e&2){let n=d(2);a("avatarId",n.userProfile.avatarId)}}function nn(e,i){if(e&1&&s(0,"nn-worker-require-licp-edit",12),e&2){let n=d(2);a("hasCanadianCitizenship",n.workerProfile.citizenships.includes(1021))("requireLiveInCaregiverProgram",n.workerProfile.requireLiveInCaregiverProgram)}}function on(e,i){if(e&1&&s(0,"nn-phone-number-confirmation",10),e&2){let n=d(2);a("phoneNumber",n.userProfile.phone)}}function rn(e,i){e&1&&s(0,"nn-email-confirmation")}function an(e,i){if(e&1&&(N(0,tn,1,1,"nn-user-avatar-edit",4),s(1,"nn-worker-sex-edit",5)(2,"nn-worker-marital-status-edit",6)(3,"nn-worker-citizenships-edit",7),N(4,nn,1,2,"nn-worker-require-licp-edit",8),s(5,"nn-worker-police-check-edit",9)(6,"nn-worker-languages-edit",7)(7,"nn-login-providers"),f(8,on,1,1,"nn-phone-number-confirmation",10),f(9,rn,1,0,"nn-email-confirmation")),e&2){let n=d();a("nnScreenMode","DESKTOP"),r(),a("sex",n.workerProfile.sex),r(),a("maritalStatusId",n.workerProfile.maritalStatusId)("sex",n.workerProfile.sex),r(),a("dictionary",n.workerProfile),r(),a("nnCountryDomain","CA"),r(),a("policeCheckId",n.workerProfile.policeCheckId),r(),a("dictionary",n.workerProfile),r(2),u(n.userProfile.phoneNumberConfirmed?-1:8),r(),u(n.userProfile.emailConfirmed?-1:9)}}function cn(e,i){if(e&1&&(s(0,"nn-user-personal-data-edit",0)(1,"nn-user-address-edit",1),N(2,en,1,1,"nn-address-comment-edit",2),s(3,"nn-worker-feature-management",3),Be(4,an,10,10),Le(5,4,Qt),Te()),e&2){let n=i;a("userProfile",n.userProfile),r(),a("address",n.userProfile.address),r(),a("nnCountryDomain",fe(4,Xt)),r(),a("workerData",n.workerProfile)}}var St=(()=>{let i=class i{constructor(){this.userProfileFacade=_(E),this.workerManagementService=_(Ye),this.destroySubject$=new x,this.userProfile$=this.userProfileFacade.refreshes$.pipe(ze(null),P(()=>this.userProfileFacade.getProfile()),be({bufferSize:1,refCount:!0})),this.personalData$=Fe([this.userProfile$,this.workerManagementService.profile$]).pipe(M(([t,o])=>({userProfile:t,workerProfile:o})),h(this.destroySubject$))}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["nn-worker-profile"]],decls:2,vars:3,consts:[[3,"userProfile"],[3,"address"],[3,"address",4,"nnCountryDomain"],[3,"workerData"],["viewMode","profile",3,"avatarId",4,"nnScreenMo
1de"],[3,"sex"],[3,"maritalStatusId","sex"],["viewMode","profile",3,"dictionary"],[3,"hasCanadianCitizenship","requireLiveInCaregiverProgram",4,"nnCountryDomain"],[3,"policeCheckId"],[3,"phoneNumber"],["viewMode","profile",3,"avatarId"],[3,"hasCanadianCitizenship","requireLiveInCaregiverProgram"]],template:function(o,g){if(o&1&&(f(0,cn,7,5),m(1,"async")),o&2){let C;u((C=p(1,1,g.personalData$))?0:-1,C)}},dependencies:[Oe,pt,ge,Me,ye,Q],styles:[".block[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:16px 8px;margin:0 -8px 50px}@media screen and (max-width:750px){.block[_ngcontent-%COMP%]{overflow:hidden}}.block__header[_ngcontent-%COMP%]{margin-bottom:20px}.block__title[_ngcontent-%COMP%]{font-size:24px;letter-spacing:normal;font-weight:700;line-height:1.1;margin:0}.block__title_center[_ngcontent-%COMP%]{text-align:center}.block__subtitle[_ngcontent-%COMP%]{font-size:18px;letter-spacing:normal;line-height:1.1;font-weight:400;color:var(--mat-sys-on-surface-variant);margin:8px 0 0}.block__subtitle[_ngcontent-%COMP%]:empty{display:none}.block_nobg[_ngcontent-%COMP%]{padding:0 15px;background:none;box-shadow:none}.block__right[_ngcontent-%COMP%]{margin-bottom:0;margin-top:20px;display:flex;flex-direction:column}.block__change[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);min-width:160px;padding-top:18px;padding-bottom:18px}.block__pagination[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:0 4px 64px #0000000f;border-radius:88px;padding:20px 24px;display:flex;align-items:center;flex-direction:column;margin-bottom:0;margin-top:48px}.block__continue[_ngcontent-%COMP%]{display:none;flex:0 0 190px;padding-inline-start:20px;margin-inline-start:auto;flex-direction:column}.block__footer[_ngcontent-%COMP%]{margin-top:20px}.block__footer_center[_ngcontent-%COMP%]{text-align:center}.block__hide[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);text-decoration:underline;letter-spacing:normal;font-size:14px}.block_nopad[_ngcontent-%COMP%]{padding:0}[dir=rtl][_nghost-%COMP%] .block__submit[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .block__submit[_ngcontent-%COMP%]{font-size:16px}@media screen and (min-width:751px){.block[_ngcontent-%COMP%]{position:relative;margin-inline-start:0;margin-inline-end:0;margin-bottom:48px;padding:26px 16px}.block__subtitle[_ngcontent-%COMP%]{line-height:1.32}.block__right[_ngcontent-%COMP%]{padding-inline-start:20px;margin-top:0;margin-bottom:0;display:flex;flex:0 0 auto;flex-direction:row}.block__left[_ngcontent-%COMP%]{flex:1 1 auto}.block__header[_ngcontent-%COMP%]{margin-bottom:30px}.block__subtitle[_ngcontent-%COMP%]{font-size:18px}.block__header_line[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.block__header_center[_ngcontent-%COMP%]{align-items:center}.block__header_nomargin[_ngcontent-%COMP%], .block__header_nomargin[_ngcontent-%COMP%] .block__right[_ngcontent-%COMP%]{margin-bottom:0}.block_line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:0}.block_line[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:0}.block_line[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:flex-end}.block__footer[_ngcontent-%COMP%]{margin-top:0}.block__continue[_ngcontent-%COMP%]{display:flex}.block__pagination[_ngcontent-%COMP%]{flex-direction:row}.block__content_line[_ngcontent-%COMP%]{display:flex}.block_nopad[_ngcontent-%COMP%]{padding:0}.block__bg[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);box-shadow:2px 4px 124px #0000000a;border-radius:8px;padding:26px 16px}.block__bg[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:26px}.block__bg[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-inline-start:-16px;margin-inline-end:-16px}}html.color-scheme-dark[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}html.color-scheme-dark[_ngcontent-%COMP%] .block__pagination[_ngcontent-%COMP%]{box-shadow:0 4px 64px #0000003d}
1html.color-scheme-dark[_ngcontent-%COMP%] .block__bg[_ngcontent-%COMP%]{box-shadow:2px 4px 124px #00000047}@media screen and (max-width:750px){.block__title_mcenter[_ngcontent-%COMP%], .block__subtitle_mcenter[_ngcontent-%COMP%]{text-align:center}.block__subtitle_mcenter[_ngcontent-%COMP%]{font-size:18px}.block_docs[_ngcontent-%COMP%] .block__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.block__right.m-hide[_ngcontent-%COMP%]{display:none}.block_reverse[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.block_reverse[_ngcontent-%COMP%] .block__header[_ngcontent-%COMP%]{margin-bottom:0}.block_reverse[_ngcontent-%COMP%] .block__content[_ngcontent-%COMP%]{margin-bottom:12px}.block_nobgmobile[_ngcontent-%COMP%]{padding:0 8px;box-shadow:none;background:none}.block_nopadmobile[_ngcontent-%COMP%]{padding-inline-start:0;padding-inline-end:0;margin-bottom:40px}.block__right_mcenter[_ngcontent-%COMP%]{justify-content:center;flex-direction:row}.block__header_nommargin[_ngcontent-%COMP%]{margin-bottom:0}}.block__row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:-10px}.block__input[_ngcontent-%COMP%]{padding-inline-end:32px;flex:1 1 auto;margin-bottom:0}.block__save[_ngcontent-%COMP%]{flex:0 0 124px;min-width:124px}"]});let e=i;return e})();function ln(e,i){e&1&&(l(0,"h1",2),b(1),m(2,"localization"),c()),e&2&&(r(),O(p(2,1,"dashboard_page|personal_data")))}function sn(e,i){e&1&&s(0,"nn-worker-profile")}function mn(e,i){e&1&&s(0,"nn-employer-profile")}var wt=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=y({type:i,selectors:[["ng-component"]],decls:3,vars:3,consts:[["class","h1",4,"nnScreenMode"],[4,"nnUserRoleOnly"],[1,"h1"]],template:function(o,g){o&1&&N(0,ln,3,3,"h1",0)(1,sn,1,0,"nn-worker-profile",1)(2,mn,1,0,"nn-employer-profile",1),o&2&&(a("nnScreenMode","MOBILE"),r(),a("nnUserRoleOnly","Worker"),r(),a("nnUserRoleOnly","Employer"))},dependencies:[St,Pe,Ce,vt,D],styles:[".h1[_ngcontent-%COMP%]{font-weight:900;margin:0 0 35px;line-height:1;font-size:36px;letter-spacing:normal;max-width:235px}"]});let e=i;return e})();var Nt={IL:{data:{title:"\u05DE\u05D9\u05D3\u05E2 \u05D0\u05D9\u05E9\u05D9 \u05D1\u05E4\u05E8\u05D5\u05E4\u05D9\u05DC \u05E9\u05DC\u05D9 - \u05E2\u05D5\u05D6\u05E8\u05EA\u05DC\u05D9"}}};var Wi=[{path:"",component:wt,data:{pageMetaConfigMap:Nt}}];export{Wi as routes};
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.