PageSourceSearch

https://minasidor.k2a.se/747.5939aa0cf6e98168.js

js k2a.se collected 2026-10-02 06:20:43 UTC 111,980 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[747],{2304(J,j,o){o.d(j,{I:()=>P});var a=o(274),h=o(6354),l=o(7586),I=o.n(l),F=o(7468),v=o(2615),c=o(5850),$=o(3527);let P=(()=>{class O{constructor(A,R){this.request=A,this.registrationService=R}getAllMaintenanceStatus(A){return this.registrationService.getActorStatus().pipe((0,a.H)(R=>(0,F.p)([this.request.get("underhall",{nodIdLista:A}).pipe((0,h.T)(b=>b.filter(S=>null!=S.Erbjudande\u00c4rendeRadId))),this.request.get(`session/arendekund/${R.localActorId}`).pipe((0,h.T)(b=>b.filter(S=>null!=S.Underh\u00e5llsErbjudande?.ErbjudandeEkonomiSerieSvarSenast&&0!=A.length&&S.Avser.length>0&&A[0]?.toString()==S.Avser[0]?.Id)))]).pipe((0,h.T)(b=>{let S={Result:b[0].map(u=>({ObjectAddress:u.ObjektAdress,Space:u.S\u00f6kv\u00e4g,Unit:"",Measure:u.\u00c5tg\u00e4rd,Performed:null!=u.Utf\u00f6rd?I()(u.Utf\u00f6rd).format("YYYY-MM-DD"):"",Planned:null!=u.Planerad?I()(u.Planerad).format("YYYY-MM-DD"):"",RentalRaising:u.Hyresh\u00f6jande,HasBeenOrdered:null!=u.Best\u00e4lld,MeasureTypeCode:null==u.Modell?u.Orsak:u.Modell,OrderedDate:u.Best\u00e4lld,ObjectNo:u.ObjektNummer,Interval:u.InterVallV\u00e4rde,Intervaltype:u.IntervallEnhetBeteckning,DK_UhAtgardId:null==u.Nod\u00c5tg\u00e4rdId?0:u.Nod\u00c5tg\u00e4rdId,DiscountToday:u.Rabatt,DiscountTypeToday:1==u.\u00c5rsrabatt?"\xe5r":"m\xe5n",ResidualValue:u.RestV\u00e4rde,OfferedCost:u.RestV\u00e4rde,Note:u.Notering,UnitNo:"",CanBeOrdered:!1,Cost:u.FaktiskKostnad,MeasureType:u.ModellInterVallEnhetReferensnamn,OfferAccepted:u.ErbjudandeAccepterad,ClientOrderedDate:u.ErbjudandeAccepterad,BatchNo:0}))},f={};return b[1].forEach(u=>{let g=u.Rader.map(e=>({ObjectAddress:u.Adress?.Gatuadress??e.Huvudentitet,Space:e.Avser?.Visningstext,Unit:"",Measure:e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlassTyp?.Beteckning,Performed:null!=e.\u00c5tg\u00e4rd?.Utf\u00f6rd?I()(e.\u00c5tg\u00e4rd.Utf\u00f6rd).format("YYYY-MM-DD"):"",Planned:null!=e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod.Planerad?I()(e.\u00c5tg\u00e4rd.\u00c5tg\u00e4rdNod.Planerad).format("YYYY-MM-DD"):"",RentalRaising:!1,HasBeenOrdered:!(null==e.\u00c5tg\u00e4rd?.Best\u00e4lld&&null==e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod?.Accepterad),MeasureTypeCode:"HLU",OrderedDate:e.\u00c5tg\u00e4rd.Best\u00e4lld,ObjectNo:null!=u.Avser?u.Avser[0]?.Nummer:"",Interval:e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlass?.IntervallV\u00e4rde,Intervaltype:e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlass?.IntervallEnhet?.Beteckning,AgreementNo:u.Avtal?.Nummer,DK_UhAtgardId:e.Id,DiscountToday:e.PrisModell?.Rabatt,DiscountTypeToday:null!=u.Underh\u00e5llsErbjudande?.\u00c5rsrabatt&&1==u.Underh\u00e5llsErbjudande?.\u00c5rsrabatt?"\xe5r":"m\xe5n",ResidualValue:e.PrisModell?.RestV\u00e4rde,Note:u.Nummer,UnitNo:e.Avser?.Id,CanBeOrdered:!(I()(u.Underh\u00e5llsErbjudande?.ErbjudandeEkonomiSerieSvarSenast).format("YYYY-MM-DD")<I()().format("YYYY-MM-DD")),OfferedCost:e.PrisModell?.RestV\u00e4rde,OfferedDiscount:e.PrisModell?.Rabatt,Cost:e.PrisModell?.Totalpris,MeasureType:e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlassTyp?.Beteckning,AnswerAtLatest:u.Underh\u00e5llsErbjudande?.ErbjudandeEkonomiSerieSvarSenast,ClientOrderedDate:e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod?.Accepterad,BatchNo:null==e.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod?.Id?0:e.\u00c5tg\u00e4rd.\u00c5tg\u00e4rdNod.Id}));f.Result=f.Result?.length>0?f.Result.concat(g.filter(e=>null!=e.OfferedDiscount||null!=e.Cost)):g.filter(e=>null!=e.OfferedDiscount||null!=e.Cost)}),null!=f.Result&&(f.Result=f.Result.reduce((u,g)=>{let e={BatchNo:g.BatchNo,HasBeenOrdered:g.HasBeenOrdered},d=u.find(p=>p.key.BatchNo===e.BatchNo&&p.key.HasBeenOrdered===e.HasBeenOrdered);return d?d.values.push(g):u.push({key:e,values:[g]}),u},[]).map(u=>u.values.sort((g,e)=>g.AnswerAtLatest>e.AnswerAtLatest?-1:g.AnswerAtLatest<e.AnswerAtLatest?1:e.DK_UhAtgardId-g.DK_UhAtgardId)[0])),null!=f.Result&&f.Result.length>0?(null!=S.Result&&(f.Result=f.Result.concat(S.Result.filter(u=>!f.Result.map(g=>g.BatchNo).includes(u.DK_UhAtgardId)))),f):S}))))}postMaintenanceOrder(A){return this.request.postOnce("session/arende/sparaerbjudanden",{Rader:A})}groupBy(A,R){return A.reduce((b,S)=>{var f=R(S);return b[f]=b[f]||[],b[f].push(S),b},[])}static{this.\u0275fac=function(R){return new(R||O)(v.KVO(c.B),v.KVO($.f))}}static{this.\u0275prov=v.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},3723(J,j,o){o.d(j,{O:()=>P});var a=o(2591),h=o(2615),l=o(3664),I=o(8834),F=o(6112),v=o(8018);function c(O,M){1&O&&(l.j41(0,"h2",0),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&O&&(l.R7$(),l.JRh(l.bMT(2,1,"CHOOSECONTRACT")))}function $(O,M){if(1&O){const A=l.RV6();l.j41(0,"div")(1,"a",4),l.bIt("click",function(){const b=h.eBV(A).$implicit,S=l.XpG();return h.Njj(S.selectBookingContract(b))}),l.EFF(2),l.k0s()()}if(2&O){const A=M.$implicit;l.R7$(),l.Y8G("href",A.bookingLink,l.B4B),l.R7$(),l.Lme(" ",A.number," ",A.address," ")}}let P=(()=>{class O{constructor(A,R){this.dialogRef=A,this.data=R}selectBookingContract(A){this.dialogRef.close(A)}static{this.\u0275fac=function(R){return new(R||O)(l.rXU(a.CP),l.rXU(a.Vh))}}static{this.\u0275cmp=l.VBU({type:O,selectors:[["taiga-laundry-booking-dialog"]],standalone:!1,decls:8,vars:4,consts:[["mat-dialog-title",""],[2,"margin-bottom","15px"],[3,"markdown"],[1,"booking-buttons-container"],["matButton","filled","target","_blank","data-mom-test","MyPages_LaundryBooking_ExternalWinndowButton",1,"booking-button",3,"click","href"]],template:function(R,b){1&R&&(l.nVh(0,c,3,3,"h2",0),l.j41(1,"mat-dialog-content")(2,"div",1),l.nrm(3,"taiga-markdown",2),l.nI1(4,"translate"),l.k0s(),l.j41(5,"div",3),l.Z7z(6,$,3,3,"div",null,l.fX1),l.k0s()()),2&R&&(l.vxM((null==b.data||null==b.data.bookingContracts?null:b.data.bookingContracts.length)>1?0:-1),l.R7$(3),l.Y8G("markdown",l.bMT(4,2,"OPENBOOKLAUNDRYHELP")),l.R7$(3),l.Dyx(null==b.data?null:b.data.bookingContracts))},dependencies:[I.$z,a.BI,a.Yi,F.N,v.D9],styles:[".booking-button[_ngcontent-%COMP%]{margin-top:8px;height:auto;min-height:36px}"]})}}return O})()},2899(J,j,o){o.d(j,{D:()=>ae,b:()=>V});var a=o(3664),h=o(9417),l=o(5263),I=o(9945),F=o(1585),v=o(7586),$=o(8709),P=o(6090),O=o(9338),M=o(2615),A=o(8018),R=o(5242),b=o(2043),S=o(7342),f=o(2591),u=o(5661),g=o(9213),e=o(8834),d=o(2598),p=o(5596),L=o(100),k=o(9588),U=o(5084),ce=o(2200),E=o(1843);const te=T=>({invalidChars:T});function z(T,Y){if(1&T){const _=a.RV6();a.j41(0,"div",3)(1,"div",5),a.EFF(2),a.k0s(),a.j41(3,"button",6),a.nI1(4,"translate"),a.nI1(5,"translate"),a.bIt("click",function(){M.eBV(_);const y=a.XpG();return M.Njj(y.removeAddress(y.tillfalligAddress))}),a.j41(6,"mat-icon",7),a.EFF(7,"delete_forever"),a.k0s()()()}if(2&T){const _=a.XpG();a.R7$(2),a.SpI(" ",_.tillfalligAddress.Gatuadress1," "),a.R7$(),a.Y8G("eventLabel",a.mNQ(a.bMT(4,5,"DELETE")))("eventCategory",a.mNQ(a.bMT(5,7,"TEMPADDR")))}}function K(T,Y){1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INPUTREQUIRED")," "))}function X(T,Y){if(1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T){let _;const D=a.XpG(2);
1a.R7$(),a.SpI(" ",a.i5U(2,1,"INVALIDCHARACTERS",a.eq3(4,te,null==(_=D.f.address.getError("allowedCharacters"))?null:_.invalidChars))," ")}}function de(T,Y){1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INPUTREQUIRED")," "))}function me(T,Y){if(1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T){let _;const D=a.XpG(2);a.R7$(),a.SpI(" ",a.i5U(2,1,"INVALIDCHARACTERS",a.eq3(4,te,null==(_=D.f.postalCode.getError("allowedCharacters"))?null:_.invalidChars))," ")}}function ue(T,Y){1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INPUTREQUIRED")," "))}function ge(T,Y){1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INCORRECTONLYLETTERS")," "))}function ne(T,Y){if(1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T){let _;const D=a.XpG(2);a.R7$(),a.SpI(" ",a.i5U(2,1,"INVALIDCHARACTERS",a.eq3(4,te,null==(_=D.f.postalAddress.getError("allowedCharacters"))?null:_.invalidChars))," ")}}function W(T,Y){1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INVALIDDATE")," "))}function se(T,Y){1&T&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&T&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INVALIDDATE")," "))}function pe(T,Y){if(1&T){const _=a.RV6();a.j41(0,"form",4)(1,"mat-form-field",8),a.nrm(2,"input",9),a.nI1(3,"translate"),a.nVh(4,K,3,3,"mat-error"),a.DNE(5,X,3,6,"mat-error",10),a.k0s(),a.j41(6,"mat-form-field",8),a.nrm(7,"input",11),a.nI1(8,"translate"),a.nVh(9,de,3,3,"mat-error"),a.DNE(10,me,3,6,"mat-error",10),a.k0s(),a.j41(11,"mat-form-field",8),a.nrm(12,"input",12),a.nI1(13,"translate"),a.nVh(14,ue,3,3,"mat-error"),a.nVh(15,ge,3,3,"mat-error"),a.DNE(16,ne,3,6,"mat-error",10),a.k0s(),a.nrm(17,"taiga-country-select",13),a.j41(18,"mat-form-field",8)(19,"input",14),a.nI1(20,"translate"),a.bIt("dateChange",function(y){M.eBV(_);const Z=a.XpG();return M.Njj(Z.setEndDate(y.value))}),a.k0s(),a.nrm(21,"mat-datepicker-toggle",15)(22,"mat-datepicker",16,0),a.nVh(24,W,3,3,"mat-error"),a.k0s(),a.j41(25,"mat-form-field",8)(26,"input",17),a.nI1(27,"translate"),a.bIt("dateChange",function(y){M.eBV(_);const Z=a.XpG();return M.Njj(Z.setStartdate(y.value))}),a.k0s(),a.nrm(28,"mat-datepicker-toggle",15)(29,"mat-datepicker",16,1),a.nVh(31,se,3,3,"mat-error"),a.k0s(),a.j41(32,"mat-card-actions",18)(33,"button",19),a.nI1(34,"translate"),a.nI1(35,"translate"),a.bIt("click",function(){M.eBV(_);const y=a.XpG();return M.Njj(y.onSubmit())}),a.EFF(36),a.nI1(37,"translate"),a.k0s()()()}if(2&T){const _=a.sdS(23),D=a.sdS(30),y=a.XpG();a.Y8G("formGroup",y.addressForm),a.R7$(2),a.Y8G("placeholder",a.mNQ(a.bMT(3,34,"ADDRESS"))),a.R7$(2),a.vxM(y.f.address.invalid&&y.f.address.errors.required?4:-1),a.R7$(),a.Y8G("ngIf",y.f.address.hasError("allowedCharacters")),a.R7$(2),a.Y8G("placeholder",a.mNQ(a.bMT(8,36,"POSTALCODE"))),a.R7$(2),a.vxM(y.f.postalCode.invalid&&y.f.postalCode.errors.required?9:-1),a.R7$(),a.Y8G("ngIf",y.f.postalCode.hasError("allowedCharacters")),a.R7$(2),a.Y8G("placeholder",a.mNQ(a.bMT(13,38,"POSTALADDRESS"))),a.R7$(2),a.vxM(y.f.postalAddress.invalid&&y.f.postalAddress.errors.required?14:-1),a.R7$(),a.vxM(y.f.postalAddress.invalid&&y.f.postalAddress.errors.pattern?15:-1),a.R7$(),a.Y8G("ngIf",y.f.postalAddress.hasError("allowedCharacters")),a.R7$(),a.Y8G("useV2",!0)("selectedValue",y.tillfalligAddress.LandReferensnamn),a.R7$(2),a.Y8G("placeholder",a.mNQ(a.bMT(20,40,"DATEFROM")))("matDatepicker",_),a.R7$(2),a.Y8G("for",_),a.R7$(),a.Y8G("touchUi",y.mediaQueryService.isMobile()),a.R7$(2),a.vxM(y.f.startDate.invalid&&(y.f.startDate.touched||y.f.startDate.dirty)?24:-1),a.R7$(2),a.Y8G("placeholder",a.mNQ(a.bMT(27,42,"DATETO")))("matDatepicker",D),a.R7$(2),a.Y8G("for",D),a.R7$(),a.Y8G("touchUi",y.mediaQueryService.isMobile()),a.R7$(2),a.vxM(y.f.endDate.invali
1d&&(y.f.endDate.touched||y.f.endDate.dirty)?31:-1),a.R7$(2),a.Y8G("eventLabel",a.mNQ(a.bMT(34,44,"SAVE")))("eventCategory",a.mNQ(a.bMT(35,46,"TEMPADDR")))("disabled",!y.addressForm.dirty||y.addressForm.invalid&&(y.addressForm.dirty||y.addressForm.touched)),a.R7$(3),a.SpI(" ",a.bMT(37,48,"SAVE")," ")}}const B=v,ae={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMM YYYY",dateA11yLabel:"YYYY-MM-DD",monthYearA11yLabel:"MMMM YYYY"}};let V=(()=>{class T{set tillfalligAddress(_){this.tillfalligAddressEntity=_,this.setControlValues(_)}get tillfalligAddress(){return this.tillfalligAddressEntity}get f(){return this.addressForm.controls}constructor(_,D,y,Z,he,fe,q){this.translate=_,this.temporaryAddressService=D,this.adapter=y,this.mediaQueryService=Z,this.fb=he,this.snackBarService=fe,this.dialog=q,this.adressSaved=new a.bkB,this.addressRemoved=new a.bkB,this.adapter.setLocale("sv")}setControlValues(_){_&&(_.Fom||(_.Fom=new Date),this.addressForm=this.fb.group({address:[_.Gatuadress1,[h.k0.required,(0,F.f)()]],postalCode:[_.Postnummer,[h.k0.required,(0,F.f)()]],postalAddress:[_.Postort,[h.k0.required,(0,F.f)()]],country:[_.LandReferensnamn,[h.k0.required,(0,F.f)()]],startDate:[B(_.Fom),[h.k0.required]],endDate:[_.Tom?B(_.Tom):null,[h.k0.required]]}))}onSubmit(){if(this.addressForm.valid){const _={AdressId:this.tillfalligAddressEntity.AdressId,Gatuadress1:this.f.address.value,Postnummer:this.f.postalCode.value,Postort:this.f.postalAddress.value,LandReferensnamn:this.f.country.value,Fom:B(this.f.startDate.value).utc(!0).toDate(),Tom:B(this.f.endDate.value).utc(!0).toDate(),Gatuadress2:this.tillfalligAddressEntity.Gatuadress2,Attention:this.tillfalligAddressEntity.Attention,Namn:this.tillfalligAddressEntity.Namn,CareOf:this.tillfalligAddressEntity.CareOf};this.temporaryAddressService.setTemporaryAddress(_).subscribe(()=>{this.snackBarService.success(this.translate.instant("TEMPADDRSAVED")),this.addressForm.markAsPristine(),this.adressSaved.emit(!0)})}}setStartdate(_){B(this.addressForm.controls.startDate.value).valueOf()>=B(_).valueOf()&&this.addressForm.controls.startDate.setValue(B(_).subtract(1,"days"))}setEndDate(_){B(this.addressForm.controls.endDate.value).valueOf()<=B(_).valueOf()&&this.addressForm.controls.endDate.setValue(B(_).add(1,"days"))}removeAddress(_){_.AdressId?this.dialog.open($.w,{data:{heading:null,text:this.translate.instant("CONFIRMREMOVEADDRESS"),dialogChoices:P.$.YesNo},scrollStrategy:new O.t0,ariaLabel:this.translate.instant("CONFIRMREMOVEADDRESS"),autoFocus:!1}).afterClosed().subscribe(y=>{"yes"===y&&(this.temporaryAddressService.removeTemporaryAddress(_.AdressId).subscribe(),this.addressRemoved.emit(_))}):this.addressRemoved.emit(_)}static{this.\u0275fac=function(D){return new(D||T)(a.rXU(A.c$),a.rXU(R.j),a.rXU(I.MJ),a.rXU(b.M),a.rXU(h.ze),a.rXU(S.z),a.rXU(f.bZ))}}static{this.\u0275cmp=a.VBU({type:T,selectors:[["taiga-temporary-address"]],inputs:{tillfalligAddress:"tillfalligAddress"},outputs:{adressSaved:"adressSaved",addressRemoved:"addressRemoved"},standalone:!1,features:[a.Jv_([{provide:I.MJ,useClass:l.QH,deps:[I.Ju]},{provide:I.de,useValue:ae}])],decls:7,vars:2,consts:[["pickerStartDate",""],["pickerEndDate",""],[2,"display","block"],[1,"title"],[1,"form-container",3,"formGroup"],[1,"overflow-ellipsis"],["color","accent","mat-icon-button","","aria-label","remove","taigaEventTracker","","data-mom-test","MyPages_Account_TemporaryAddress_Remove",3,"click","eventLabel","eventCategory"],[1,"icon-display","mat-text-primary"],[1,"form-field"],["required","","matInput","","formControlName","address","maxlength","128","data-mom-test","MyPages_Account_TemporaryAddress_StreetAddress","autocomplete","street-address",3,"placeholder"],[4,"ngIf"],["required","","matInput","","formControlName","postalCode","maxlength","64","data-mom-test","MyPages_Account_TemporaryAddress_PostalCode","autocomplete","postal-code",3,"placeholder"],["required","","matInput","","formControlName","postalAddress","maxlength","64","pattern","[a-\xf6A-\xd6 ]*","data-mom-test","MyPages_Account_TemporaryAddress_City","autocomplete","address-level2",3,"placeholder"],["controlName","country","required","true","data-mom-test","MyPages_Account_TemporaryAddress_Country",3,"useV2","selectedValue"],["required","","matInput","","formControlName","startDate","data-mom-test","MyPages_Account_TemporaryAddress_From","autocomplete","off",3,"dateChange","matDatepicker","placeholder"],["matSuffix","",3,"for"],[3,"touchUi"],["required","","matInput","","formControlName","endDate","data-mom-test","MyPages_Account_TemporaryAddress_To","autocomplete","off",3,"dateChange","matDatepicker","placeholder"],["align","end"],["matButton","filled","taigaEventTracker","","data-mom-test","MyPages_Account_TemporaryAddress_Save",3,"click","disabled","eventLabel","eventCategory"]],template:function(D,y){1&D&&(a.j41(0,"mat-card")(1,"mat-card-header",2)(2,"mat-card-title"),a.nVh(3,z,8,9,"div",3),a.k0s(),a.nrm(4,"mat-card-subtitle"),a.k0s(),a.j41(5,"mat-card-content"),a.nVh(6,pe,38,50,"form",4),a.k0s()()),2&D&&(a.R7$(3),a.vxM(y.tillfalligAddress?3:-1),a.R7$(3),a.vxM(y.tillfalligAddress?6:-1))},dependencies:[h.qT,h.me,h.BC,h.cb,h.YS,h.tU,h.R_,h.j4,h.JD,u.m,g.An,e.$z,d.iY,p.RN,p.YY,p.m2,p.MM,p.Lc,p.dh,L.fg,k.rl,k.TL,k.yw,U.Vh,U.bZ,U.bU,ce.bT,E.u,A.D9],styles:["[_nghost-%COMP%]{display:block;padding-top:15px}.form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{margin-bottom:4px}.icon-display[_ngcontent-%COMP%]{transform:scale(1.5)}.title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.overflow-ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]})}}return T})()},4747(J,j,o){o.d(j,{MyPagesModule:()=>Xn});var a=o(8132),h=o(1336),l=o(7468),I=o(7673),F=o(274),v=o(9437),c=o(2615),$=o(793),P=o(6380),O=o(7342),M=o(8793),A=o(666);let R=(()=>{class n{constructor(t,s,i,r,C){this.myInfoService=t,this.errorService=s,this.userMessageService=i,this.router=r,this.clientConfigurationService=C}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,F.H)(t=>(0,l.p)(t?.graphQL?.enabled?[this.myInfoService.fetchActorsCommunications(),(0,I.of)(null)]:[(0,I.of)(null),this.myInfoService.getNameAndContactInfo()])),(0,v.W)(t=>{const s=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(s.message,"",s.displayErrorReportNumber?s.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)}))}static{this.\u0275fac=function(s){return new(s||n)(c.KVO($.k),c.KVO(P.I),c.KVO(O.z),c.KVO(M.Ix),c.KVO(A.t))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var b=o(5242);let S=(()=>{class n{constructor(t,s,i,r){this.temporaryAddressService=t,this.errorService=s,this.userMessageService=i,this.router=r}resolve(){return this.temporaryAddressService.getTemporaryAddress().pipe((0,v.W)(t=>{const s=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(s.message,"",s.displayErrorReportNumber?s.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)}))}static{this.\u0275fac=function(s){return new(s||n)(c.KVO(b.j),c.KVO(P.I),c.KVO(O.z),c.KVO(M.Ix))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var f=o(7402);let u=(()=>{class n{constructor(t,s,i,r,C){this.messageService=t,this.errorService=s,this.userMessageService=i,this.router=r,this.clientConfigurationService=C}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,F.H)(t=>
1t?.graphQL?.enabled?this.messageService.fetchMessages().pipe((0,v.W)(s=>{const i=this.errorService.parseError(s);return this.userMessageService.errorWithHeader(i.message,"",i.displayErrorReportNumber?i.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)})):this.messageService.getMessages().pipe((0,v.W)(s=>{const i=this.errorService.parseError(s);return this.userMessageService.errorWithHeader(i.message,"",i.displayErrorReportNumber?i.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)}))))}static{this.\u0275fac=function(s){return new(s||n)(c.KVO(f.G),c.KVO(P.I),c.KVO(O.z),c.KVO(M.Ix),c.KVO(A.t))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var g=o(7052),e=o(3664),d=o(5850);let p=(()=>{class n{constructor(t){this.request=t}getNotificationsFunctions(){return this.request.get("v2/notifications/functions")}setContactBy(t){return this.request.postOnce("session/andrakundnotifieringstyrning",{Akt\u00f6rNotifieringStyrning:t})}static{this.\u0275fac=function(s){return new(s||n)(c.KVO(d.B))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var L=o(2043),k=o(8018),U=o(9213),ce=o(2598),E=o(5596),te=o(2765),z=o(1843),K=o(3013),X=o(7201);function de(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",7),e.nI1(1,"translate"),e.bIt("change",function(i){const r=c.eBV(t).$implicit,C=e.XpG().$implicit,x=e.XpG();return c.Njj(x.change(i,C.id,x.channelLocalIds[r.type]))}),e.EFF(2),e.k0s()}if(2&n){const t=m.$implicit,s=e.XpG().$implicit,i=e.XpG();e.AVh("checkbox-mobile",i.mediaQueryService.isMobile()),e.Y8G("eventLabel",e.ai1("",s.displayName," ",i.channelDisplayNames[t.type]))("eventCategory",e.mNQ(e.bMT(1,10,"CONTACTBYTITLE")))("checked",t.subscribed)("disabled",!t.subscribed&&(i.disableEmail&&"email"===t.type.toLowerCase()||i.disablePhone&&"text"===t.type.toLowerCase())),e.R7$(2),e.SpI(" ",i.channelDisplayNames[t.type]," ")}}function me(n,m){if(1&n&&(e.j41(0,"mat-card",5)(1,"mat-card-content")(2,"h2"),e.EFF(3),e.k0s(),e.Z7z(4,de,3,12,"mat-checkbox",6,e.fX1),e.k0s()()),2&n){const t=m.$implicit;e.R7$(3),e.JRh(t.displayName),e.R7$(),e.Dyx(t.channels)}}let ue=(()=>{class n{constructor(t,s,i,r){this.contactByService=t,this.mediaQueryService=s,this.route=i,this.translate=r,this.arr=[],this.myInfoLink=`${g.i.MY_INFO}`}ngOnInit(){this.route.data.subscribe(t=>{let s,i;t.data[1]?(s=t.data[1].Kontaktuppgifter.find(r=>"epost.standard"===r.KontaktuppgiftsTyp.Systemnamn)?.V\u00e4rde,i=t.data[1].Kontaktuppgifter.find(r=>"telefon.mobil"===r.KontaktuppgiftsTyp.Systemnamn)?.V\u00e4rde):(s=t.data[2]?.data?.actors?.nodes[0]?.communications?.nodes?.find(r=>"email"===r.type.guid)?.value,i=t.data[2]?.data?.actors?.nodes[0]?.communications?.nodes?.find(r=>"mobile"===r.type.guid)?.value),s?this.emailAddress=s:(this.emailAddress=this.translate.instant("MISSING"),this.disableEmail=!0),i?this.phoneNumber=i:(this.phoneNumber=this.translate.instant("MISSING"),this.disablePhone=!0),this.notificationsFunctionsListItem=t.data[0].items.filter(r=>r.channels.some(C=>C.changeable)).map(r=>({...r,channels:r.channels.filter(C=>C.changeable)})),this.channelDisplayNames=t.data[0]?.channelTypes?.reduce((r,C)=>(r[C.id]=C.displayName,r),{}),this.channelLocalIds=t.data[0]?.channelTypes?.reduce((r,C)=>(r[C.id]=C.localId,r),{})})}change(t,s,i){this.contactByService.setContactBy([{Aktiv:t.checked,NotiferingFunktionTypId:s,NotiferingKanalTypId:i}]).subscribe()}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(p),e.rXU(L.M),e.rXU(M.nX),e.rXU(k.c$))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-contact-by"]],standalone:!1,decls:27,vars:22,consts:[[3,"text","subText"],[1,"contact-info"],["mat-icon-button","","aria-label","edit","data-mom-test","MyPages_Account_ContactMethods_ChangeEmail",3,"routerLink"],["matListIcon","","color","primary"],["mat-icon-button","","aria-label","edit","data-mom-test","MyPages_Account_ContactMethods_ChangeMobileNumber",3,"routerLink"],[1,"checkbox-card"],["color","primary","taigaEventTracker","","data-mom-test","MyPages_Account_ContactMethods_Checkbox",1,"checkbox",3,"checkbox-mobile","checked","disabled","eventLabel","eventCategory"],["color","primary","taigaEventTracker","","data-mom-test","MyPages_Account_ContactMethods_Checkbox",1,"checkbox",3,"change","checked","disabled","eventLabel","eventCategory"]],template:function(s,i){1&s&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nrm(4,"taiga-page-cards"),e.j41(5,"mat-card")(6,"mat-card-content")(7,"div",1)(8,"b"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div"),e.EFF(12),e.j41(13,"button",2)(14,"mat-icon",3),e.
1EFF(15,"edit"),e.k0s()()()(),e.j41(16,"div",1)(17,"b"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"div"),e.EFF(21),e.j41(22,"button",4)(23,"mat-icon",3),e.EFF(24,"edit"),e.k0s()()()()()(),e.Z7z(25,me,6,1,"mat-card",5,e.fX1),e.k0s()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,14,"CONTACTBYTITLE"))("subText",e.bMT(3,16,"CONTACTBYHELP")),e.R7$(8),e.JRh(e.bMT(10,18,"EMAILADDRESS")),e.R7$(3),e.SpI(" ",i.emailAddress),e.R7$(),e.Y8G("routerLink",e.mNQ(i.myInfoLink)),e.R7$(5),e.JRh(e.bMT(19,20,"MOBILEPHONENUMBER")),e.R7$(3),e.SpI(" ",i.phoneNumber),e.R7$(),e.Y8G("routerLink",e.mNQ(i.myInfoLink)),e.R7$(3),e.Dyx(i.notificationsFunctionsListItem))},dependencies:[U.An,ce.iY,E.RN,E.m2,te.So,z.u,K.o,X.K,a.Wk,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.checkbox-card[_ngcontent-%COMP%]{margin:10px 0}.checkbox[_ngcontent-%COMP%]{margin:0 10px}.checkbox-mobile[_ngcontent-%COMP%]{display:flex;flex-grow:1;padding-bottom:4px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.contact-info[_ngcontent-%COMP%]{margin-top:5px}.contact-info[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}}return n})(),ge=(()=>{class n{constructor(t,s,i,r,C,x){this.contactByService=t,this.myInfoService=s,this.errorService=i,this.userMessageService=r,this.router=C,this.clientConfigurationService=x}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,F.H)(t=>(0,l.p)(t?.graphQL?.enabled?[this.contactByService.getNotificationsFunctions(),(0,I.of)(null),this.myInfoService.fetchActorsCommunications()]:[this.contactByService.getNotificationsFunctions(),this.myInfoService.getNameAndContactInfo(),(0,I.of)(null)])),(0,v.W)(t=>{const s=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(s.message,"",s.displayErrorReportNumber?s.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)}))}static{this.\u0275fac=function(s){return new(s||n)(c.KVO(p),c.KVO($.k),c.KVO(P.I),c.KVO(O.z),c.KVO(M.Ix),c.KVO(A.t))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ne=o(1630),W=o(6977),se=o(1413),pe=o(4572),B=o(9338),ae=o(8056),V=o(8834),T=o(6112);let Y=(()=>{class n{constructor(){this.coApplicants=`${g.t.COAPPLICANTS}`}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-market-co-applicants-message"]],standalone:!1,decls:8,vars:7,consts:[[1,"co-applicant-message-card"],[3,"markdown"],["align","end",1,"card-actions"],["matButton","filled","data-mom-test","MyPages_MySearchApplication_CoApplicants_NewCoApplicantReply",3,"routerLink"]],template:function(s,i){1&s&&(e.j41(0,"mat-card",0)(1,"mat-card-content"),e.nrm(2,"taiga-markdown",1),e.nI1(3,"translate"),e.j41(4,"mat-card-actions",2)(5,"button",3),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()()),2&s&&(e.R7$(2),e.Y8G("markdown",e.bMT(3,3,"COAPPLICANTSREQUESTMESSAGE")),e.R7$(3),e.Y8G("routerLink",i.coApplicants),e.R7$(),e.SpI(" ",e.bMT(7,5,"ANWSER")," "))},dependencies:[a.Wk,V.$z,E.RN,E.YY,E.m2,T.N,k.D9],styles:[".card-actions[_ngcontent-%COMP%]{margin:0;padding:0}.co-applicant-message-card[_ngcontent-%COMP%]{margin:10px 0}"]})}}return n})();var _=o(3723),D=o(9001),y=o(9015),Z=o(6844),he=o(8875),fe=o(7033),q=o(3527),Ne=o(913),xe=o(4069),Pe=o(2280),Le=o(1715),_e=o(2591),De=o(4959),Fe=o(9940),Ge=o(177),ie=o(2200),we=o(7456),N=o(9417),$e=o(293),Me=o(100),H=o(9588),Te=o(7403),je=o(1517),Be=o(4968),Ve=o(3881),oe=o(3718);function Qe(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card-actions",2)(1,"button",3),e.nI1(2,"translate"),e.bIt("click",function(){c.eBV(t);const i=e.XpG(2);return c.Njj(i.messageClick(i.notifyMessage.NotifieringId))}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.Y8G("eventLabel",e.mNQ(e.bMT(2,5,"READMORE")))("eventCategory",e.mNQ(t.category)),e.R7$(2),e.SpI(" ",e.bMT(4,7,"READMORE")," ")}}function Ue(n,m){if(1&n&&(e.j41(0,"mat-card",0)(1,"div")(2,"mat-card-header")(3,"mat-card-title"),e.EFF(4),e.k0s(),e.j41(5,"mat-card-subtitle"),e.EFF(6),e.k0s()(),e.j41(7,"mat-card-content"),e.nrm(8,"div",1),e.k0s(),e.nVh(9,Qe,5,9,"mat-card-actions",2),e.k0s()()),2&n){const t=e.XpG();e.R7$(4),e.SpI(" ",t.messageTitle," "),e.R7$(2),e.SpI(" ",t.formatDate(t.sentOrCreated)," "),e.R7$(2),e.Y8G("ngClass",t.isTruncated?"truncate":"")("innerHtml",t.messageBody,e.npT),e.R7$(),e.vxM(t.isTruncated?9:-1)}}function Xe(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card-actions",2)(1,"button",3),e.nI1(2,"translate"),e.bIt("click",function(){c.eBV(t);const i=e.XpG(2);return c.Njj(i.messageClick(i.notifyMessageGraphQL.id))}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.Y8G("eventLabel",e.mNQ(e.bMT(2,5,"READMORE")))("eventCategory",e.mNQ(t.category)),e.R7$(2),e.SpI(" ",e.bMT(4,7,"READMORE")," ")}}function Ye(n,m){if(1&n&&(e.j41(0,"mat-card",0)(1,"div")(2,"mat-card-header")(3,"mat-card-title"),e.EFF(4),e.k0s(),e.j41(5,"mat-card-subtitle"),e.EFF(6),e.k0s()(),e.j41(7,"mat-card-content"),e.nrm(8,"div",1),e.k0s(),e.nVh(9,Xe,5,9,"mat-card-actions",2),e.k0s()()),2&n){const t=e.XpG();e.R7$(4),e.SpI(" ",t.messageTitle," "),e.R7$(2),e.SpI(" ",t.formatDate(t.notifyMessageGraphQL.statusDistributedDate)," "),e.R7$(2),e.Y8G("ngClass",t.isTruncated?"truncate":"")("innerHtml",t.messageBody,e.npT),e.R7$(),e.vxM(t.isTruncated?9:-1)}}let Re=(()=>{class n{set message(t){this.notifyMessage=t;const s=this.isNews?"Nyhet":"Meddelandebox";this.messageTitle=t?.Akt\u00f6rMeddelandeRubrik,this.messageBody=t?.Akt\u00f6rMeddelandeBr\u00f6dtext,this.channel=t.Kanaler.find(r=>r.Notifierad&&r.KanalTyp.SystemName===s),this.messageTitle=this.messageTitle??this.channel?.\u00c4mne,this.messageBody=this.messageBody??this.channel?.Br\u00f6dtext,this.sentOrCreated=this.channel?.KlarUtc??this.notifyMessage.NotifieringSkapadUtc;const i=document.createElement("div");i.innerHTML=this.messageBody,i.getElementsByClassName("button")[0]?.classList.add("mat-raised-button"),i.getElementsByClassName("primary")[0]?.classList.add("mat-primary"),this.messageBody=i.innerHTML}set messageGraphQL(t){this.notifyMessageGraphQL=t,this.messageTitle=t?.subject,this.messageBody=t?.body;const s=document.createElement("div");s.innerHTML=this.messageBody,s.getElementsByClassName("button")[0]?.classList.add("mat-raised-button"),s.getElementsByClassName("primary")[0]?.classList.add("mat-primary"),this.messageBody=s.innerHTML}constructor(t){this.translate=t,this.messageClicked=new e.bkB}ngOnInit(){this.category=this.translate.instant(this.isNews?"NEWS":"NOTIFICATIONS")}
1messageClick(t){this.messageClicked.emit(t)}formatDate(t){return oe.Q.formatDate(t)}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(k.c$))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-message-card"]],inputs:{isNews:"isNews",isTruncated:"isTruncated",message:"message",messageGraphQL:"messageGraphQL"},outputs:{messageClicked:"messageClicked"},standalone:!1,decls:2,vars:2,consts:[[1,"message-card"],[3,"ngClass","innerHtml"],["align","end",1,"card-actions"],["matButton","tonal","data-mom-test","MyPages_MessageCard_ReadMoreButton","taigaEventTracker","",3,"click","eventLabel","eventCategory"]],template:function(s,i){1&s&&(e.nVh(0,Ue,10,5,"mat-card",0),e.nVh(1,Ye,10,5,"mat-card",0)),2&s&&(e.vxM(i.notifyMessage?0:-1),e.R7$(),e.vxM(i.notifyMessageGraphQL?1:-1))},dependencies:[V.$z,E.RN,E.YY,E.m2,E.MM,E.Lc,E.dh,ie.YU,z.u,k.D9],styles:[".message-card{margin:16px 0}.truncate{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}mat-card-title{word-break:break-word}.link,a{color:var(--palette-accent-500)}.message-card *{white-space:normal}img{width:100%}\n"],encapsulation:2})}}return n})();function Ke(n,m){if(1&n&&(e.j41(0,"div",0),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,t.isNews?"NONEWS":"NONOTIFICATIONS"))}}function He(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"taiga-message-card",3),e.bIt("messageClicked",function(i){c.eBV(t);const r=e.XpG(2);return c.Njj(r.navigate(i))}),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);e.R7$(),e.Y8G("isTruncated",!0)("isNews",s.isNews)("message",t)}}function We(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",1)(1,"button",4),e.nI1(2,"translate"),e.bIt("click",function(){c.eBV(t);const i=e.XpG(2);return c.Njj(i.showAllMessages())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.Y8G("eventLabel",e.mNQ(e.bMT(2,5,"SHOWALL")))("eventCategory",e.mNQ(t.category)),e.R7$(2),e.SpI(" ",e.bMT(4,7,"SHOWALL")," ")}}function Je(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"button",5),e.bIt("click",function(){c.eBV(t);const i=e.XpG(2);return c.Njj(i.click("/messages"))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"SHOWALL")))}function ze(n,m){if(1&n&&(e.nVh(0,Ke,3,3,"div",0),e.Z7z(1,He,2,3,"div",null,e.fX1),e.nVh(3,We,5,9,"div",1),e.nVh(4,Je,4,3,"div",2)),2&n){const t=e.XpG();e.vxM(0===(null==t.messages?null:t.messages.length)?0:-1),e.R7$(),e.Dyx(t.getMessages()),e.R7$(2),e.vxM(t.initialCount&&!t.allMessages&&t.messages&&t.messages.length>t.initialCount?3:-1),e.R7$(),e.vxM(t.isInDialog()?4:-1)}}function Ze(n,m){if(1&n&&(e.j41(0,"div",0),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,t.isNews?"NONEWS":"NONOTIFICATIONS"))}}function qe(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"taiga-message-card",6),e.bIt("messageClicked",function(i){c.eBV(t);const r=e.XpG(2);return c.Njj(r.navigate(i))}),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);e.R7$(),e.Y8G("isTruncated",!0)("isNews",s.isNews)("messageGraphQL",t)}}function et(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",1)(1,"button",4),e.nI1(2,"translate"),e.bIt("click",function(){c.eBV(t);const i=e.XpG(2);return c.Njj(i.showAllMessages())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.Y8G("eventLabel",e.mNQ(e.bMT(2,5,"SHOWALL")))("eventCategory",e.mNQ(t.category)),e.R7$(2),e.SpI(" ",e.bMT(4,7,"SHOWALL")," ")}}function tt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"button",5),e.bIt("click",function(){c.eBV(t);const i=e.XpG(2);return c.Njj(i.click("/messages"))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"SHOWALL")))}function nt(n,m){if(1&n&&(e.nVh(0,Ze,3,3,"div",0),e.Z7z(1,qe,2,3,"div",null,e.fX1),e.nVh(3,et,5,9,"div",1),e.nVh(4,tt,4,3,"div",2)),2&n){const t=e.XpG();e.vxM(0===(null==t.messagesGraphQL?null:t.messagesGraphQL.length)?0:-1),e.R7$(),e.Dyx(t.getMessagesGraphQL()),e.R7$(2),e.vxM(t.initialCount&&!t.allMessages&&t.messagesGraphQL&&t.messagesGraphQL.length>t.initialCount?3:-1),e.R7$(),e.vxM(t.isInDialog()?4:-1)}}let Ce=(()=>{class n{constructor(t,s,i,r,C){this.dialogRef=t,this.data=s,this.router=i,this.mediaQueryService=r,this.translate=C,this.messages=[],this.markedAsRead=new e.bkB,this.newsLink=`${g.i.NEWS}`,this.messagesLink=`${g.i.MESSAGES}`}ngOnInit(){this.category=this.translate.instant(this.isNews?"NEWS":"NOTIFICATIONS"),this.isInDialog()&&(this.isNews=!1,this.messages=this.data)}formatDate(t){return oe.Q.formatDate(t)}getMessages(){return this.allMessages?this.messages:this.messages&&this.messages.length>0?this.messages.slice(0,this.initialCount):null}getMessagesGraphQL(){return this.allMessages?this.messagesGraphQL:this.messagesGraphQL&&this.messagesGraphQL.length>0?this.messagesGraphQL.slice(0,this.initialCount):null}showAllMessages(){this.allMessages=!0}click(t){this.dialogRef.close(),this.router.navigate([t])}isInDialog(){return this.dialogRef.componentInstance}navigate(t){this.router.navigate(this.isNews?[this.newsLink+"/"+t]:[this.messagesLink+"/"+t])}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(_e.CP),e.rXU(_e.Vh),e.rXU(M.Ix),e.rXU(L.M),e.rXU(k.c$))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-messages-list"]],inputs:{initialCount:"initialCount",isNews:"isNews",messages:"messages",messagesGraphQL:"messagesGraphQL"},outputs:{markedAsRead:"markedAsRead"},standalone:!1,decls:2,vars:2,consts:[[1,"no-messages"],[1,"button-wrapper"],[1,"show-all-button"],[3,"messageClicked","isTruncated","isNews","message"],["mat-stroked-button","","data-mom-test","MyPages_MessagesList_ShowAllButton","taigaEventTracker","",1,"accent-text",3,"click","eventLabel","eventCategory"],["mat-raised-button","","data-mom-test","MyPages_MessagesList_ShowAllButton",3,"click"],[3,"messageClicked","isTruncated","isNews","messageGraphQL"]],template:function(s,i){1&s&&(e.nVh(0,ze,5,3),e.nVh(1,nt,5,3)),2&s&&(e.vxM(i.messages?0:-1),e.R7$(),e.vxM(i.messagesGraphQL?1:-1))},dependencies:[V.$z,z.u,Re,k.D9],styles:[".message-card[_ngcontent-%COMP%]{margin:10px 0}.show-all-button[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-top:20px}.no-messages[_ngcontent-%COMP%]{margin-top:15px}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.card-actions[_ngcontent-%COMP%]{margin:0;padding:0}.is-mobile[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]{font-size:1.25rem}.button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]})}}return n})();var re=o(3902);function st(n,m){if(1&n&&(e.j41(0,"a",0)(1,"span",1),e.EFF(2),e.k0s(),e.j41(3,"div",2)(4,"mat-icon",3),e.
1EFF(5,"keyboard_arrow_right"),e.k0s()()()),2&n){const t=e.XpG().$implicit;e.Y8G("routerLink",t.link),e.R7$(2),e.JRh(t.title)}}function at(n,m){1&n&&e.nVh(0,st,6,2,"a",0),2&n&&e.vxM(m.$implicit.title?0:-1)}function it(n,m){if(1&n&&(e.j41(0,"mat-nav-list"),e.Z7z(1,at,1,1,null,null,e.fX1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Dyx(t.listMessages)}}function ot(n,m){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,1,t.isNews?"NONEWS":"NONOTIFICATIONS"))}}let rt=(()=>{class n{constructor(t){this.router=t,this.messages=[],this.showTotal=4,this.listMessages=[],this.newsLink=`${g.i.NEWS}`,this.messagesLink=`${g.i.MESSAGES}`}ngOnInit(){const t=this.isNews?this.newsLink:this.messagesLink;if(this.messages){const s=this.isNews?"Nyhet":"Meddelandebox",i=this.messages.slice(0,this.showTotal);for(let r of i){let C=r?.Akt\u00f6rMeddelandeRubrik,x=r?.Akt\u00f6rMeddelandeBr\u00f6dtext,w=r.Kanaler.find(le=>le.Notifierad&&le.KanalTyp.SystemName===s);C=C??w?.\u00c4mne,x=x??w?.Br\u00f6dtext,this.listMessages.push({id:r.NotifieringId,title:C,subtitle:oe.Q.formatDate(w?.KlarUtc??r.NotifieringSkapadUtc),body:x,link:`${t}/${r.NotifieringId}`})}}else{const s=this.messagesGraphQL.slice(this.showTotal);for(let i of s){let r=i?.subject,C=i?.body;this.listMessages.push({id:i.id,title:r,subtitle:oe.Q.formatDate(i.statusDistributedDate),body:C,link:`${t}/${i.id}`})}}}navigate(t){this.router.navigate(this.isNews?[this.newsLink+"/"+t]:[this.messagesLink+"/"+t])}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-slim-messages-list"]],inputs:{messages:"messages",messagesGraphQL:"messagesGraphQL",isNews:"isNews",showTotal:"showTotal"},standalone:!1,decls:2,vars:1,consts:[["mat-list-item","","data-mom-test","MyPages_SlimMe
1ssagesList_MessageLink",3,"routerLink"],["matListItemTitle",""],["matListItemMeta",""],[1,"mat-text-primary"]],template:function(s,i){1&s&&e.nVh(0,it,3,0,"mat-nav-list")(1,ot,3,3,"div"),2&s&&e.vxM((null==i.messages?null:i.messages.length)>0?0:1)},dependencies:[re._L,re.YE,re.yE,re.BJ,U.An,a.Wk,k.D9],styles:["mat-nav-list[_ngcontent-%COMP%]{padding:0}"]})}}return n})();const lt=["chatQuestion"],ct=()=>({standalone:!0}),dt=n=>({length:n,maxlength:110}),mt=n=>({invalidChars:n});function ut(n,m){1&n&&(e.j41(0,"div",9),e.nrm(1,"taiga-spinner",11),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",48))}function gt(n,m){1&n&&e.eu8(0)}function pt(n,m){if(1&n&&(e.j41(0,"div",13)(1,"h2",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,gt,1,0,"ng-container",16),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"COAPPLICANTREQUEST")),e.R7$(2),e.Y8G("ngComponentOutlet",t.marketCoApplicantsMessageComponent)}}function ht(n,m){1&n&&e.eu8(0)}function ft(n,m){if(1&n&&(e.j41(0,"div",14)(1,"h2",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,ht,1,0,"ng-container",16),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"CURRENTSIGNATURES")),e.R7$(2),e.Y8G("ngComponentOutlet",t.signingsMessagesComponent)}}function _t(n,m){1&n&&(e.j41(0,"div",17),e.nrm(1,"taiga-spinner",19),e.k0s())}function Mt(n,m){if(1&n&&e.nrm(0,"taiga-messages-list",18),2&n){const t=e.XpG(4);e.Y8G("initialCount",t.mediaQueryService.isMobile()?1:3)("isNews",!0)("messages",t.news)("messagesGraphQL",t.newsGraphQL)}}function Ct(n,m){if(1&n&&(e.j41(0,"h2",15),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nVh(3,_t,2,0,"div",17),e.nVh(4,Mt,1,4,"taiga-messages-list",18)),2&n){const t=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"NEWS")),e.R7$(2),e.vxM(t.loadingMessages?3:-1),e.R7$(),e.vxM(t.loadingMessages?-1:4)}}function vt(n,m){if(1&n&&(e.j41(0,"div",12),e.nVh(1,pt,5,4,"div",13),e.nVh(2,ft,5,4,"div",14),e.nVh(3,Ct,5,5),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.vxM(t.marketCoApplicantsMessageComponent?1:-1),e.R7$(),e.vxM(t.signings?2:-1),e.R7$(),e.vxM(t.newsVisible?3:-1)}}function yt(n,m){if(1&n){const t=e.RV6();e.j41(0,"h2",15),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"taiga-quick-actions",20),e.bIt("featureClicked",function(i){c.eBV(t);const r=e.XpG(2);return c.Njj(r.featureClicked(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,3,"QUICKACTIONS")),e.R7$(2),e.Y8G("initialCount",t.mediaQueryService.isMobile()?2:3)("featureList",t.featureList)}}function Tt(n,m){if(1&n&&(e.j41(0,"div",10),e.nVh(1,vt,4,3,"div",12),e.j41(2,"div"),e.nVh(3,yt,4,5),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.vxM(t.newsVisible||t.signings?1:-1),e.R7$(),e.AVh("column",t.newsVisible),e.R7$(),e.vxM(t.featureList&&t.featureList.length>0?3:-1)}}function Rt(n,m){1&n&&e.eu8(0)}function Et(n,m){if(1&n&&(e.j41(0,"div",14)(1,"h2",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Rt,1,0,"ng-container",16),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"CURRENTSIGNATURES")),e.R7$(2),e.Y8G("ngComponentOutlet",t.signingsMessagesComponent)}}function bt(n,m){1&n&&(e.j41(0,"div",9),e.nrm(1,"taiga-spinner",11),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",48))}function It(n,m){if(1&n&&(e.j41(0,"mat-card-actions",28)(1,"a",29),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(),e.Y8G("routerLink",t.newsLink),e.R7$(),e.JRh(e.bMT(3,2,"READMORE"))}}function At(n,m){if(1&n&&(e.j41(0,"mat-card",22)(1,"mat-card-header")(2,"div",24)(3,"mat-icon",25),e.EFF(4,"info"),e.k0s()(),e.j41(5,"mat-card-title"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"mat-card-content",26),e.nrm(9,"taiga-slim-messages-list",27),e.k0s(),e.nVh(10,It,4,4,"mat-card-actions",28),e.k0s()),2&n){const t=e.XpG(3);e.R7$(6),e.JRh(e.bMT(7,5,"NEWS")),e.R7$(3),e.Y8G("isNews",!0)("messages",t.news)("messagesGraphQL",t.newsGraphQL),e.R7$(),e.vxM((null==t.news?null:t.news.length)>4||(null==t.newsGraphQL?null:t.newsGraphQL.length)>4?10:-1)}}function Ot(n,m){if(1&n&&(e.j41(0,"mat-label"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){e.XpG();const t=e.sdS(17);e.R7$(),e.JRh(e.i5U(2,1,"ENTERCHATQUESTION",e.eq3(4,dt,t.value.length)))}}function St(n,m){if(1&n&&(e.j41(0,"mat-label"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){e.XpG();const t=e.sdS(18);
1e.R7$(),e.JRh(e.i5U(2,1,"INVALIDCHARACTERS",e.eq3(4,mt,null==t.errors||null==t.errors.allowedCharacters?null:t.errors.allowedCharacters.invalidChars)))}}function kt(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card",23)(1,"mat-card-header")(2,"div",24)(3,"mat-icon",25),e.EFF(4,"chat"),e.k0s()(),e.j41(5,"mat-card-title"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"mat-card-content",30)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"div",31)(13,"mat-form-field",32),e.nVh(14,Ot,3,6,"mat-label")(15,St,3,6,"mat-label"),e.j41(16,"textarea",33,0),e.bIt("keydown.enter",function(i){c.eBV(t);const r=e.sdS(17),C=e.sdS(18),x=e.XpG(3);return i.preventDefault(),c.Njj(!C.hasError("allowedCharacters")&&x.sendChatQuestion(r))}),e.k0s()(),e.j41(19,"button",34),e.nI1(20,"translate"),e.bIt("click",function(){c.eBV(t);const i=e.sdS(17),r=e.XpG(3);return c.Njj(r.sendChatQuestion(i))}),e.j41(21,"mat-icon"),e.EFF(22,"send"),e.k0s()()()()()}if(2&n){const t=e.sdS(17),s=e.sdS(18),i=e.XpG(3);e.R7$(6),e.JRh(e.bMT(7,8,"CHATBOTNAME")),e.R7$(4),e.JRh(e.bMT(11,10,"CHATBOTWELCOMETEXT")),e.R7$(3),e.Y8G("color",s.hasError("allowedCharacters")?"warn":"primary"),e.R7$(),e.vxM(null!=s.errors&&s.errors.allowedCharacters?15:14),e.R7$(2),e.Y8G("cdkAutosizeMinRows",i.mediaQueryService.isMobile()?1:4)("ngModelOptions",e.lJ4(14,ct)),e.R7$(3),e.Y8G("disabled",!(null!=t.value&&t.value.trim())||s.hasError("allowedCharacters")),e.BMQ("aria-label",e.bMT(20,12,"SENDMESSAGE"))}}function Nt(n,m){if(1&n&&(e.j41(0,"taiga-card-grid",21),e.nVh(1,At,11,7,"mat-card",22),e.nVh(2,kt,23,15,"mat-card",23),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("cards",t.cards),e.R7$(),e.vxM((null==t.news?null:t.news.length)>0||(null==t.newsGraphQL?null:t.newsGraphQL.length)>0?1:-1),e.R7$(),e.vxM(t.chatEnabled?2:-1)}}function xt(n,m){if(1&n&&(e.nVh(0,Et,5,4,"div",14),e.nVh(1,bt,2,1,"div",9),e.nVh(2,Nt,3,3,"taiga-card-grid",21)),2&n){const t=e.XpG();e.vxM(t.signings?0:-1),e.R7$(),e.vxM(t.loadingMessages?1:-1),e.R7$(),e.vxM(t.loadingMessages?-1:2)}}let Pt=(()=>{class n{get chatEnabled(){return this.chatService.isChatEnabled()}set chatQuestionRef(t){if(!t)return;const s=()=>window.dispatchEvent(new Event("resize"));this.ngZone.runOutsideAngular(()=>{setTimeout(s),typeof document<"u"&&document.fonts?.ready&&document.fonts.ready.then(s)})}constructor(t,s,i,r,C,x,w,Q,le,Yn,Kn,Hn,Wn,Jn,zn,Zn,qn,es,ts,ns,ss){this.router=t,this.route=s,this.mediaQueryService=i,this.errorReportService=r,this.messagesService=C,this.featureService=x,this.signInService=w,this.laundryBookingService=Q,this.registrationService=le,this.styleService=Yn,this.clientConfigurationService=Kn,this.signingService=Hn,this.rightSheet=Wn,this.errandService=Jn,this.translate=zn,this.dialog=Zn,this.chatService=qn,this.layoutService=es,this.viewportScroller=ts,this.ngZone=ns,this.appConfigService=ss,this.startBackground="",this.componentDestroyed=new se.B,this.layoutLoading=!0,this.suppressScrollOnNavigation=!1,this.newsLink=`${g.i.NEWS}`,this.loadingMessages=!1,this.loadingSignings=!1,this.styleService.themeState.pipe((0,W.Q)(this.componentDestroyed)).subscribe(()=>{this.styleService.getStartBackground().subscribe(ke=>{this.startBackground=ke||"assets/img/hero_background_min.jpg"})})}ngOnInit(){this.firstName="",this.news=[],this.clientConfigurationService.getClientConfigurationFeatures().subscribe(t=>{this.features=t,this.features?.layoutCard?.enabled?this.layoutService.getLayoutCard().subscribe({next:s=>{s&&(this.cards=s.filter(i=>(0,D.q)(i,this.router.url,this.appConfigService.appWebAddress))),this.layoutLoading=!1},error:()=>{this.layoutLoading=!1}}):this.layoutLoading=!1,this.features?.news?.enabled?(this.newsVisible=!0,this.getMessages(t?.graphQL?.enabled)):this.newsVisible=!1,(0,pe.z)({hasContract:this.registrationService.gethasContractState().pipe((0,W.Q)(this.componentDestroyed)),errandTypes:this.errandService.getErrandsTypes()}).subscribe(s=>{s.hasContract?this.laundryBookingService.getBookingObjectsObjectType().subscribe(i=>{this.featureList=this.featureService.getFeaturesForQuickActions({laundryBooking:i,features:this.features,hasContract:!0,errandsTypes:s.errandTypes})}):this.featureList=this.featureService.getFeaturesForQuickActions({features:this.features,errandsTypes:s?.errandTypes})}),this.features?.applicantCoApplicant?.enabled&&this.getCoApplicantDrafts()}
1),this.getSignings(),this.handleQueryParams()}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete()}getMessages(t){this.registrationService.getActorStatus().subscribe(s=>{s?.actorId&&(this.loadingMessages=!0,t?(this.news=null,this.registrationService.fetchActors().subscribe(i=>{let r=i?.data?.actors?.nodes[0]?.identityName;r=r&&r.length>0?" "+r:"",this.firstName=r}),this.messagesService.fetchMessages().pipe((0,v.W)(i=>{throw this.loadingMessages=!1,i})).subscribe(i=>{this.newsGraphQL=i.data.notificationExecutions.nodes.filter(r=>"news"===r.channel.guid),this.loadingMessages=!1})):this.messagesService.getMessages().pipe((0,v.W)(i=>{throw this.loadingMessages=!1,i})).subscribe(i=>{if(i&&(this.news=i.Kund.Meddelanden.NotifieringMeddelanden.filter(r=>r.Kanaler.find(C=>C.Notifierad&&"Nyhet"===C.KanalTyp.SystemName)),i&&i.Kund&&i.Kund.Kundinformation)){let r=i.Kund.Kundinformation.F\u00f6rnamn;r=r&&r.length>0?" "+r:"",this.firstName=r,this.signInService.signedInUser||(this.signInService.signedInUser=this.firstName+" "+i.Kund.Kundinformation.Efternamn)}this.loadingMessages=!1}))})}sendChatQuestion(t){const s=t.value?.trim();s&&(this.chatService.requestOpenChat(void 0,s),t.value="")}featureClicked(t){t.type===ne.l.ErrorReport?this.openErrorReportSheet():t.type===ne.l.LaundryBooking?this.openLaundryBooking(t):t.type===ne.l.Errands?this.openErrandsSheet():this.router.navigate([t.path])}openErrorReportSheet(){this.chatService.isChatEnabled()?this.chatService.requestOpenChat():this.errorReportService.openErrorReportSheet()}openLaundryBooking(t){const s=t.data.laundryBooking;if(1===s.objects.length){const i=s.objects[0];this.laundryBookingService.getBookingObjectLink(i.bookingObjectId,i.contractVersionId[0]).pipe((0,v.W)(r=>{throw r})).subscribe(r=>{this.dialog.open(_.O,{data:{bookingContracts:[{address:i.displayName,bookingLink:r.webAddress}]},scrollStrategy:new B.t0})})}else this.router.navigate([t.path])}openErrandsSheet(t){this.errandService.getErrandsTypes().subscribe(s=>{this.rightSheet.open(ae.o,{data:{errandsTypes:s,preselectedType:t},panelClass:"custom-rightsheet",scrollStrategy:new B.t0,ariaLabel:this.translate.instant("ERRAND"),autoFocus:!1}).afterDismissed().subscribe(r=>{})})}handleQueryParams(){let t;this.router.events.pipe((0,W.Q)(this.componentDestroyed)).subscribe(s=>{s instanceof M.Z?t=this.viewportScroller.getScrollPosition():s instanceof M.wF&&this.suppressScrollOnNavigation&&(this.viewportScroller.scrollToPosition(t),this.suppressScrollOnNavigation=!1)}),this.route.queryParams.pipe((0,W.Q)(this.componentDestroyed)).subscribe(s=>{"createErrand"in s?(this.suppressScrollOnNavigation=!0,this.router.navigate([],{relativeTo:this.route,queryParams:{},replaceUrl:!0}),this.openErrandsSheet(s.preselectedType)):"createErrorReport"in s&&(this.suppressScrollOnNavigation=!0,this.router.navigate([],{relativeTo:this.route,queryParams:{},replaceUrl:!0}),this.openErrorReportSheet())})}getSignings(){this.signingService.getSignings().subscribe(t=>{t?.items?.length>0&&o.e(701).then(o.bind(o,1701)).then(s=>s.SigningModule).then(s=>{this.signingsMessagesComponent=s.components.SigningsMessagesComponent,this.signings=t})})}getCoApplicantDrafts(){this.registrationService.getMarketApplicantStatus().subscribe(t=>{t?.coApplicant?.numberOfDrafts>0&&(this.marketCoApplicantsMessageComponent=Y)})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.Ix),e.rXU(M.nX),e.rXU(L.M),e.rXU(y.Y),e.rXU(f.G),e.rXU(Z.w),e.rXU(he.W),e.rXU(fe.m),e.rXU(q.f),e.rXU(Ne.J),e.rXU(A.t),e.rXU(xe.l),e.rXU(Pe.c9),e.rXU(Le.Q),e.rXU(k.c$),e.rXU(_e.bZ),e.rXU(De.m),e.rXU(Fe.Y),e.rXU(Ge.Xr),e.rXU(e.SKi),e.rXU(we.R))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-home"]],viewQuery:function(s,i){if(1&s&&e.GBs(lt,5),2&s){let r;e.mGM(r=e.lsd())&&(i.chatQuestionRef=r.first)}},standalone:!1,decls:14,vars:14,consts:[["chatQuestion","","chatQuestionModel","ngModel"],[1,"page"],[1,"hero-content"],["alt","",1,"hero-image"],[1,"text-container"],["data-mom-test","MyPages_Home_Welcome",1,"hero-text","mat-h1","mat-font-headline-sm"],[1,"mat-body","body-text"],[3,"markdown"],[1,"body-content"],[1,"spinner-container"],[1,"row"],["aria-label","Progress spinner",1,"spinner",3,"diameter"],[1,"column","left-column"],[1,"co-applicants-message-container"],[1,"signings-messages-container"],[1,"mat-h2","header-text"],[4,"ngComponentOutlet"],[1,"spinner"],[1,"message-list",3,"initialCount","isNews","messages","messagesGraphQL"],["aria-label","Progress spinner"],[3,"featureClicked","initialCount","featureList"],[3,"cards"],[1,"card--2"],[1,"card--2","chat-card"],["mat-card-avatar",""],[1,"feature-icon"],[2,"margin-top","8px"],[3,"isNews","messages","messagesGraphQL"],["align","end"],["matButton","tonal",3,"routerLink"],[2,"margin-top","16px"],[1,"chat-input-container"],[2,"width","100%",3,"color"],["matInput","","cdkTextareaAutosize","","maxlength","110","ngModel","","taigaAllowedCharacters","","autocomplete","off","data-mom-test","MyPages_Home_ChatCard_Textarea",3,"keydown.enter","cdkAutosizeMinRows","ngModelOptions"],["mat-mini-fab","","data-mom-test","MyPages_Home_ChatCard_SendButton",1,"chat-send-button",3,"click","disabled"]],template:function(s,i){1&s&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h1",5),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",6),e.nrm(8,"taiga-markdown",7),e.nI1(9,"translate"),e.k0s()()()(),e.j41(10,"div",8),e.nVh(11,ut,2,1,"div",9)(12,Tt,4,4,"div",10)(13,xt,3,3),e.k0s()()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(2),e.xc7("background-image","url("+i.startBackgroun
1d+")"),e.R7$(3),e.Lme(" ",e.bMT(6,10,"HEROTEXT"),"",i.firstName,"! "),e.R7$(3),e.Y8G("markdown",e.bMT(9,12,"HEROBODYTEXT")),e.R7$(3),e.vxM(i.layoutLoading?11:(null==i.cards?null:i.cards.length)>0?13:12))},dependencies:[N.me,N.BC,N.tU,N.vS,$e.g,U.An,V.$z,V.$0,E.RN,E.YY,E.QG,E.m2,E.MM,E.dh,Me.fg,H.rl,H.nJ,Te.xb,ie.OI,je.t,T.N,Be.c,Ve.S,a.Wk,Ce,rt,k.D9],styles:[".hero-content[_ngcontent-%COMP%]{position:relative;padding:16px 16px 0}.text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;position:absolute;inset:0;padding-left:16px;padding-right:40%;padding-bottom:16px;background:linear-gradient(to top,rgba(0,0,0,.8) 0%,rgba(0,0,0,.55) 35%,rgba(0,0,0,.15) 65%,transparent 100%),linear-gradient(to right,rgba(0,0,0,.25) 0%,transparent 60%)}.hero-text[_ngcontent-%COMP%]{font-size:clamp(1.4rem,2.4vw,2.2rem);line-height:1.2;text-align:left;margin:0 0 4px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(min-width:1600px){.hero-text[_ngcontent-%COMP%]{font-size:2.2rem;line-height:1.2;text-align:left}}.body-text[_ngcontent-%COMP%]{max-width:100%;text-align:left;color:#fff;font-size:.875rem;text-shadow:0 1px 2px rgba(0,0,0,.4);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;height:2.625rem;overflow:hidden}.is-mobile[_ngcontent-%COMP%]   .hero-text[_ngcontent-%COMP%]{font-size:clamp(1.2rem,5vw,1.6rem);line-height:1.2;margin:0;text-align:left}.is-mobile[_ngcontent-%COMP%]   .body-text[_ngcontent-%COMP%]{display:none}.is-mobile[_ngcontent-%COMP%]   .text-container[_ngcontent-%COMP%]{padding-right:10%}.hero-image[_ngcontent-%COMP%]{background-size:cover;height:180px;background-position:center center;margin-top:0;border-radius:12px;position:relative;overflow:hidden}.is-mobile[_ngcontent-%COMP%]   .hero-image[_ngcontent-%COMP%]{height:120px;margin-left:16px;margin-right:16px;margin-top:16px}.body-content[_ngcontent-%COMP%]{display:block;padding:16px}.is-mobile[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]{padding:16px}.is-mobile[_ngcontent-%COMP%]   .hero-content[_ngcontent-%COMP%]{padding:0}.header-text[_ngcontent-%COMP%]{margin:0;font-weight:600}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1;width:100%}.left-column[_ngcontent-%COMP%]{padding-bottom:16px}.is-desktop[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{flex:2;margin-right:16px}@media(max-width:1024px){.row[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}}.button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.spinner-container[_ngcontent-%COMP%]{display:flex}.spinner[_ngcontent-%COMP%]{margin:auto}.signings-messages-container[_ngcontent-%COMP%], .co-applicants-message-container[_ngcontent-%COMP%]{margin-bottom:16px}"]})}}return n})();var Ee=o(1585);const Lt=n=>({invalidChars:n}),ve=n=>({label:n});function Dt(n,m){if(1&n&&(e.j41(0,"mat-card-subtitle",5),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div",18),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.Lme(" ",e.bMT(2,4,"CUSTOMERNO")," ",null==t.userInformation?null:t.userInformation.Kundinformation.Kundnummer," "),e.R7$(3),e.Lme(" ",e.bMT(5,6,"LOGGINGINWITH"),"",t.userName," ")}}function Ft(n,m){if(1&n&&(e.j41(0,"mat-card-subtitle",5),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div",18),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.Lme(" ",e.bMT(2,4,"CUSTOMERNO")," ",t.userInformationGQL.number," "),e.R7$(3),e.Lme(" ",e.bMT(5,6,"LOGGINGINWITH"),"",t.userName," ")}}function Gt(n,m){1&n&&(e.j41(0,"mat-error")(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"INVALIDEMAIL")))}function wt(n,m){if(1&n&&(e.j41(0,"mat-error")(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n){let t;const s=e.XpG(2);e.R7$(2),e.JRh(e.i5U(3,1,"INVALIDCHARACTERS",e.eq3(4,Lt,null==(t=s.f.emailAddress.getError("allowedCharacters"))?null:t.invali
1dChars)))}}function $t(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.i5U(3,3,"INVALIDPHONENUMBERWITHLABEL",e.eq3(6,ve,e.bMT(2,1,"MOBILEPHONENUMBER")))," "))}function jt(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.i5U(3,3,"INVALIDPHONENUMBERWITHLABEL",e.eq3(6,ve,e.bMT(2,1,"PHONENUMBER")))," "))}function Bt(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.i5U(3,3,"INVALIDPHONENUMBERWITHLABEL",e.eq3(6,ve,e.bMT(2,1,"PHONERNUMBERWORK")))," "))}function Vt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div"),e.nrm(1,"taiga-medium-header",1),e.nI1(2,"translate"),e.nrm(3,"taiga-page-cards"),e.j41(4,"mat-card",2)(5,"mat-card-header",3)(6,"mat-icon",4),e.nI1(7,"translate"),e.EFF(8,"account_circle"),e.k0s(),e.j41(9,"mat-card-title"),e.EFF(10),e.k0s(),e.nVh(11,Dt,6,8,"mat-card-subtitle",5),e.nVh(12,Ft,6,8,"mat-card-subtitle",5),e.k0s(),e.j41(13,"mat-card-content")(14,"form",6),e.bIt("ngSubmit",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.onSubmit(i.userInfoForm.value))}),e.j41(15,"div",7)(16,"mat-form-field",8)(17,"mat-label"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.nrm(20,"input",9),e.j41(21,"mat-icon",10),e.nI1(22,"translate"),e.EFF(23,"alternate_email"),e.k0s(),e.nVh(24,Gt,4,3,"mat-error"),e.DNE(25,wt,4,6,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field",8)(27,"mat-label"),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.nrm(30,"input",12),e.j41(31,"mat-icon",10),e.nI1(32,"translate"),e.EFF(33,"phone_android"),e.k0s(),e.nVh(34,$t,4,8,"mat-error"),e.k0s(),e.j41(35,"mat-form-field",8)(36,"mat-label"),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.nrm(39,"input",13),e.j41(40,"mat-icon",10),e.nI1(41,"translate"),e.EFF(42,"phone"),e.k0s(),e.nVh(43,jt,4,8,"mat-error"),e.k0s(),e.j41(44,"mat-form-field",8)(45,"mat-label"),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.nrm(48,"input",14),e.j41(49,"mat-icon",10),e.nI1(50,"translate"),e.EFF(51,"work"),e.k0s(),e.nVh(52,Bt,4,8,"mat-error"),e.k0s(),e.j41(53,"mat-form-field",8)(54,"mat-label"),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.nrm(57,"textarea",15),e.j41(58,"mat-icon",10),e.nI1(59,"translate"),e.EFF(60,"local_post_office"),e.k0s()(),e.j41(61,"mat-card-actions",16)(62,"button",17),e.nI1(63,"translate"),e.nI1(64,"translate"),e.EFF(65),e.nI1(66,"translate"),e.k0s()()()()()()()}if(2&n){const t=e.XpG();e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,33,"MYINFO")),e.R7$(5),e.BMQ("aria-label",e.bMT(7,35,"AVATAR")),e.R7$(4),e.E5c(" ",null==t.userInformation?null:t.userInformation.Kundinformation.F\u00f6rnamn," ",null==t.userInformation?null:t.userInformation.Kundinformation.Efternamn," ",null==t.userInformationGQL?null:t.userInformationGQL.displayName," "),e.R7$(),e.vxM(null!=t.userInformation&&t.userInformation.Kundinformation.Kundnummer?11:-1),e.R7$(),e.vxM(null!=t.userInformationGQL&&t.userInformationGQL.number?12:-1),e.R7$(2),e.Y8G("formGroup",t.userInfoForm),e.R7$(4),e.JRh(e.bMT(19,37,"EMAILADDRESS")),e.R7$(3),e.BMQ("aria-label",e.bMT(22,39,"EMAILADDRESS")),e.R7$(3),e.vxM(t.f.emailAddress.invalid&&t.f.emailAddress.errors.email?24:-1),e.R7$(),e.Y8G("ngIf",t.f.emailAddress.hasError("allowedCharacters")),e.R7$(3),e.JRh(e.bMT(29,41,"MOBILEPHONENUMBER")),e.R7$(3),e.BMQ("aria-label",e.bMT(32,43,"MOBILEPHONENUMBER")),e.R7$(3),e.vxM(t.f.mobilePhoneNumber.invalid?34:-1),e.R7$(3),e.JRh(e.bMT(38,45,"PHONENUMBER")),e.R7$(3),e.BMQ("aria-label",e.bMT(41,47,"PHONENUMBER")),e.R7$(3),e.vxM(t.f.phoneNumber.invalid?43:-1),e.R7$(3),e.JRh(e.bMT(47,49,"PHONERNUMBERWORK")),e.R7$(3),e.BMQ("aria-label",e.bMT(50,51,"PHONERNUMBERWORK")),e.R7$(3),e.vxM(t.f.workPhoneNumber.invalid?52:-1),e.R7$(3),e.JRh(e.bMT(56,53,"MAILINGADDRESS")),e.R7$(3),e.BMQ("aria-label",e.bMT(59,55,"MAILINGADDRESS")),e.R7$(4),e.Y8G("eventLabel",e.mNQ(e.bMT(63,57,"SAVE")))("eventCategory",e.mNQ(e.bMT(64,59,"MYINFO")))("disabled",t.userInfoForm.invalid),e.R7$(3),e.SpI(" ",e.bMT(66,61,"SAVE")," ")}}let Qt=(()=>{class n{get f(){return this.userInfoForm.controls}constructor(t,s,i,r,C,x,w){this.translate=t,this.myInfoService=s,this.formBuilder=i,this.snackBarService=r,this.route=C,this.mediaQueryService=x,this.registrationService=w}ngOnInit(){this.route.data.subscribe(t=>{t.userInfo[1]?(this.userInformation=t.userInfo[1],this.myInfoService.getAddresses().subscribe(s=>{this.setControlValues(t.userInfo[1],s)})):(this.userInformationGQL=t.userInfo[0].data.actors.nodes[0],this.setControlValuesGQL(this.userInformationGQL))}),this.registrationService.getActorAccount().subscribe(t=>{this.userName=t?.identifier})}
1setControlValues(t,s){const i=t?t.Kontaktuppgifter.find(Q=>"epost.standard"===Q.KontaktuppgiftsTyp.Systemnamn):null,r=t?t.Kontaktuppgifter.find(Q=>"telefon.hem"===Q.KontaktuppgiftsTyp.Systemnamn):null,C=t?t.Kontaktuppgifter.find(Q=>"telefon.arbete"===Q.KontaktuppgiftsTyp.Systemnamn):null,x=t?t.Kontaktuppgifter.find(Q=>"telefon.mobil"===Q.KontaktuppgiftsTyp.Systemnamn):null,w=s?s.find(Q=>"kund.post"===Q.AdressAnv\u00e4ndningTypReferensnamn):null;this.userInfoForm=this.formBuilder.group({emailAddress:[i?i.V\u00e4rde:null,[N.k0.email,(0,Ee.f)()]],phoneNumber:[r?r.V\u00e4rde:null],workPhoneNumber:[C?C.V\u00e4rde:null],mobilePhoneNumber:[x?x.V\u00e4rde:null],mailingAddress:[w?w.Fullst\u00e4ndigAdress:null]}),setTimeout(()=>{this.userInfoForm.valid||this.userInfoForm.markAllAsTouched()},1e3)}setControlValuesGQL(t){const s=t?t.communications.nodes?.find(w=>"email"===w.type.guid):null,i=t?t.communications.nodes?.find(w=>"homePhone"===w.type.guid):null,r=t?t.communications.nodes?.find(w=>"phoneWork"===w.type.guid):null,C=t?t.communications.nodes?.find(w=>"mobile"===w.type.guid):null;let x;t&&t.postalAddress&&t.postalAddressPostCode&&t.postalAddressCity&&(x=`${t.displayName}\n${t.postalAddress}\n${t.postalAddressPostCode} ${t.postalAddressCity}`),this.userInfoForm=this.formBuilder.group({emailAddress:[s?s.value:null,[N.k0.email,(0,Ee.f)()]],phoneNumber:[i?i.value:null],workPhoneNumber:[r?r.value:null],mobilePhoneNumber:[C?C.value:null],mailingAddress:[x||null]}),setTimeout(()=>{this.userInfoForm.valid||this.userInfoForm.markAllAsTouched()},1e3)}onSubmit(t){t&&this.myInfoService.setContactInfo(t.emailAddress,t.phoneNumber,t.mobilePhoneNumber,t.workPhoneNumber).subscribe(()=>{this.snackBarService.success(this.translate.instant("INFOSAVED"))})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(k.c$),e.rXU($.k),e.rXU(N.ze),e.rXU(O.z),e.rXU(M.nX),e.rXU(L.M),e.rXU(q.f))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-my-info"]],standalone:!1,decls:1,vars:1,consts:[[3,"is-mobile","is-desktop"],[3,"text"],[1,"card"],[1,"card-header"],["mat-card-avatar","",1,"mat-text-primary",2,"transform","scale(1.5)","width","24px","height","24px","padding-top","2px"],["data-mom-test","MyPages_Account_MyDetails_CustomerNumber"],[3,"ngSubmit","formGroup"],[1,"form-container"],[1,"form-field"],["matInput","","maxlength","100","formControlName","emailAddress","data-mom-test","MyPages_Account_MyDetails_Email","type","email","autocomplete","email"],["matSuffix","","color","primary"],[4,"ngIf"],["matInput","","maxlength","20","formControlName","mobilePhoneNumber","type","tel","pattern","[0-9 +\\-]+","data-mom-test","MyPages_Account_MyDetails_MobilePhoneNumber","autocomplete","tel"],["matInput","","maxlength","20","formControlName","phoneNumber","type","tel","pattern","[0-9 +\\-]+","data-mom-test","MyPages_Account_MyDetails_DaytimePhoneNumber","autocomplete","tel"],["matInput","","maxlength","20","formControlName","workPhoneNumber","type","tel","pattern","[0-9 +\\-]+","data-mom-test","MyPages_Account_MyDetails_WorkPhoneNumber","autocomplete","tel"],["cdkTextareaAutosize","","matInput","","formControlName","mailingAddress","readonly","","data-mom-test","MyPages_Account_MyDetails_PostalAddress","autocomplete","off"],["align","end",2,"margin","0","margin-bottom","0","padding","0"],["matButton","filled","data-mom-test","MyPages_Account_MyDetails_Save","type","submit","taigaEventTracker","",3,"disabled","eventLabel","eventCategory"],["data-mom-test","MyPages_Account_MyDetails_SignInWith"]],template:function(s,i){1&s&&e.nVh(0,Vt,67,63,"div",0),2&s&&e.vxM(i.userInfoForm?0:-1)},dependencies:[N.qT,N.me,N.BC,N.cb,N.tU,N.R_,N.j4,N.JD,U.An,V.$z,E.RN,E.YY,E.QG,E.m2,E.MM,E.Lc,E.dh,Me.fg,H.rl,H.nJ,H.TL,H.yw,Te.xb,ie.bT,z.u,K.o,X.K,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{margin-top:25px}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;flex-flow:wrap}.flex-row[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex-grow:1}.is-mobile[_nghost-%COMP%]   .flex-row[_ngcontent-%COMP%], .is-mobile   [_nghost-%COMP%]   .flex-row[_ngcontent-%COMP%]{width:100%}h4[_ngcontent-%COMP%]{margin:10px 0 0}.object-info[_ngcontent-%COMP%]{padding:10px}.card[_ngcontent-%COMP%]{margin:16px 0 10px}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.header-text[_ngcontent-%COMP%]{font-weight:700}.card-header[_ngcontent-%COMP%]{margin-bottom:30px}"]})}}return n})();var Ut=o(7586),ye=o.n(Ut),Xt=o(2899);function Yt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"taiga-temporary-address",3),e.bIt("adressSaved",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.reload())})("addressRemoved",function(i){c.eBV(t);const r=e.XpG();return c.Njj(r.removeAddress(i))}),e.k0s()()}if(2&n){const t=m.$implicit;e.R7$(),e.Y8G("tillfalligAddress",t)}}let be=(()=>{class n{constructor(t,s,i){this.route=t,this.mediaQueryService=s,this.temporaryAddressService=i}ngOnInit(){this.route.data.subscribe(t=>{t&&t.sessionTillfalligAddress&&(this.addresses=JSON.parse(JSON.stringify(t.sessionTillfalligAddress)))})}addNew(){const t=ye()(new Date),s=ye()(new Date).add(1,"days");this.addresses.unshift({LandReferensnamn:"SE",Fom:t.toDate(),Tom:s.toDate()})}reload(){this.temporaryAddressService.getTemporaryAddress().subscribe(t=>{this.addresses=JSON.parse(JSON.stringify(t))})}removeAddress(t){const s=this.addresses.indexOf(t);this.addresses.splice(s,1)}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.nX),e.rXU(L.M),e.rXU(b.j))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-temporary-addresses"]],standalone:!1,decls:11,vars:11,consts:[[1,"title"],[3,"text","subText"],["color","accent","matMiniFab","","aria-label","add","data-mom-test","MyPages_Account_TemporaryAddress_Add",3,"click","disabled"],[3,"adressSaved","addressRemoved","tillfalligAddress"]],template:function(s,i){1&s&&(e.j41(0,"div")(1,"div",0),e.nrm(2,"taiga-medium-header",1),e.nI1(3,"translate"),e.nI1(4,"translate"),e.j41(5,"button",2),e.bIt("click",function(){return i.addNew()}),e.j41(6,"mat-icon"),e.EFF(7,"add_circle"),e.k0s()()(),e.nrm(8,"taiga-page-cards"),e.Z7z(9,Yt,2,1,"div",null,e.fX1),e.k0s()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(2),e.Y8G("text",e.bMT(3,7,"TEMPADDR"))("subText",e.bMT(4,9,"TEMPADDRHELP")),e.R7$(3),e.Y8G("disabled",i.addresses&&i.addresses.length>2),e.R7$(4),e.Dyx(i.addresses))},dependencies:[U.An,V.$0,K.o,X.K,Xt.b,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.icon-display[_ngcontent-%COMP%]{transform:scale(1.5)}"]})}}return n})();var Kt=o(3284);let Ht=(()=>{class n{constructor(t){this.request=t}changePassword(t,s){return this.request.postOnce("andraLosenord",{GammaltL\u00f6senord:t,NyttL\u00f6senord:s})}static{this.\u0275fac=function(s){return new(s||n)(c.KVO(d.B))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Wt=o(1163);const Jt=()=>({minlength:"10"});function zt(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTREQUIRED")," "))}function Zt(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTREQUIRED")," "))}function qt(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.i5U(2,1,"MINLENGTH",e.lJ4(4,Jt))," "))}function en(n,m){1&n&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INPUTEQUALTO")," "))}function tn(n,m){if(1&n){const t=e.RV6();e.j41(0,"form",4)(1,"mat-card")(2,"mat-card-content")(3,"div",5)(4,"mat-form-field",6)(5,"mat-label"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",7,0)(10,"taiga-password-input-type-toggle",8),e.nI1(11,"translate"),e.nV
1h(12,zt,3,3,"mat-error"),e.k0s(),e.j41(13,"mat-form-field",6)(14,"mat-label"),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"input",9,1)(19,"taiga-password-input-type-toggle",8),e.nI1(20,"translate"),e.nVh(21,Zt,3,3,"mat-error"),e.nVh(22,qt,3,5,"mat-error"),e.k0s(),e.j41(23,"mat-form-field",6)(24,"mat-label"),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.nrm(27,"input",10,2)(29,"taiga-password-input-type-toggle",8),e.nI1(30,"translate"),e.nVh(31,en,3,3,"mat-error"),e.k0s()()(),e.j41(32,"mat-card-actions",11)(33,"button",12),e.nI1(34,"translate"),e.nI1(35,"translate"),e.bIt("click",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.onSubmit())}),e.EFF(36),e.nI1(37,"translate"),e.k0s()()()()}if(2&n){const t=e.sdS(9),s=e.sdS(18),i=e.sdS(28),r=e.XpG();e.Y8G("formGroup",r.changePasswordForm),e.R7$(6),e.JRh(e.bMT(7,21,"OLDPASSWORD")),e.R7$(4),e.Y8G("input",t)("inputLabel",e.bMT(11,23,"OLDPASSWORD")),e.R7$(2),e.vxM(r.changePasswordForm.hasError("required","oldPassword")?12:-1),e.R7$(3),e.JRh(e.bMT(16,25,"NEWPASSWORD")),e.R7$(4),e.Y8G("input",s)("inputLabel",e.bMT(20,27,"NEWPASSWORD")),e.R7$(2),e.vxM(r.changePasswordForm.hasError("required","newPassword")?21:-1),e.R7$(),e.vxM(r.changePasswordForm.hasError("minlength","newPassword")?22:-1),e.R7$(3),e.JRh(e.bMT(26,29,"CONFIRMPASSWORD")),e.R7$(2),e.Y8G("errorStateMatcher",r.matcher),e.R7$(2),e.Y8G("input",i)("inputLabel",e.bMT(30,31,"CONFIRMPASSWORD")),e.R7$(2),e.vxM(r.changePasswordForm.hasError("notSame")?31:-1),e.R7$(2),e.Y8G("eventLabel",e.mNQ(e.bMT(34,33,"SAVE")))("eventCategory",e.mNQ(e.bMT(35,35,"CHANGEPASSWORD")))("disabled",!r.changePasswordForm.dirty&&!r.changePasswordForm.touched||r.changePasswordForm.invalid&&(r.changePasswordForm.dirty||r.changePasswordForm.touched)),e.R7$(3),e.SpI(" ",e.bMT(37,37,"SAVE")," ")}}function nn(n,m){1&n&&(e.j41(0,"mat-card"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CANNOTCHANGEPASSWORD")," "))}let sn=(()=>{class n{get f(){return this.changePasswordForm.controls}constructor(t,s,i,r,C){this.formBuilder=t,this.changePasswordService=s,this.snackBarService=i,this.mediaQueryService=r,this.registrationService=C,this.matcher=new Kt.F}ngOnInit(){this.registrationService.getActor().subscribe(t=>{t?.auth?.password?.editable?(this.canChangePassword=!0,this.changePasswordForm=this.formBuilder.group({oldPassword:[null,[N.k0.required]],newPassword:[null,[N.k0.required]],confirmNewPassword:[null,[N.k0.required]]},{validator:this.checkPasswords})):this.canChangePassword=!1})}checkPasswords(t){return t.controls.newPassword.value===t.controls.confirmNewPassword.value?null:{notSame:!0}}onSubmit(){this.changePasswordForm.valid&&this.changePasswordService.changePassword(this.changePasswordForm.get("oldPassword").value,this.changePasswordForm.get("newPassword").value).subscribe(()=>{this.snackBarService.success("L\xf6senord sparat!")})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(N.ze),e.rXU(Ht),e.rXU(O.z),e.rXU(L.M),e.rXU(q.f))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-change-password"]],standalone:!1,decls:7,vars:9,consts:[["oldPasswordInput",""],["newPasswordInput",""],["confirmNewPasswordInput",""],[1,"mat-h1","header-text"],[3,"formGroup"],[1,"form-container"],[1,"form-field"],["matInput","","formControlName","oldPassword","type","password","autocomplete","current-password","required","","data-mom-test","MyPages_Account_ChangePassword_CurrentPassword"],["matSuffix","",3,"input","inputLabel"],["matInput","","formControlName","newPassword","type","password","autocomplete","new-password","required","","minlength","10","maxlength","128","data-mom-test","MyPages_Account_ChangePassword_NewPassword"],["matInput","","formControlName","confirmNewPassword","autocomplete","new-password","type","password","required","","data-mom-test","MyPages_Account_ChangePassword_ConfirmNewPassword",3,"errorStateMatcher"],["align","end"],["matButton","filled","taigaEventTracker","","data-mom-test","MyPages_Account_ChangePassword_Save",3,"click","disabled","eventLabel","eventCategory"]],template:function(s,i){1&s&&(e.j41(0,"div")(1,"h1",3),e.
1EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"taiga-page-cards"),e.nVh(5,tn,38,39,"form",4),e.nVh(6,nn,3,3,"mat-card"),e.k0s()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(2),e.JRh(e.bMT(3,7,"CHANGEPASSWORD")),e.R7$(3),e.vxM(i.canChangePassword?5:-1),e.R7$(),e.vxM(void 0===i.canChangePassword||i.canChangePassword?-1:6))},dependencies:[N.qT,N.me,N.BC,N.cb,N.YS,N.xh,N.tU,N.j4,N.JD,V.$z,E.RN,E.YY,E.m2,Me.fg,H.rl,H.nJ,H.TL,H.yw,z.u,Wt.l,X.K,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{margin-bottom:4px}.header-text[_ngcontent-%COMP%]{font-weight:700}"]})}}return n})();var Ie=o(5571);function an(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"button",9),e.bIt("click",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.markAllAsRead())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"MARKALLASREAD")," "))}function on(n,m){if(1&n){const t=e.RV6();e.j41(0,"taiga-messages-list",10),e.bIt("markedAsRead",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.getMessages())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("messages",t.unreadMessages)("messagesGraphQL",t.unreadMessagesGraphQL)}}function rn(n,m){if(1&n&&e.nrm(0,"taiga-messages-list",8),2&n){const t=e.XpG();e.Y8G("messages",t.readMessages)("messagesGraphQL",t.readMessagesGraphQL)}}function ln(n,m){if(1&n){const t=e.RV6();e.j41(0,"taiga-messages-list",10),e.bIt("markedAsRead",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.getMessages())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("messages",t.allMessages)("messagesGraphQL",t.allMessagesGraphQL)}}let cn=(()=>{class n{constructor(t,s,i,r){this.route=t,this.router=s,this.messagesService=i,this.mediaQueryService=r,this.componentDestroyed=new se.B}ngOnInit(){this.route.data.pipe((0,W.Q)(this.componentDestroyed)).subscribe(t=>{t&&t.portalSession?.Kund?(this.allMessages=t.portalSession.Kund.Meddelanden.NotifieringMeddelanden.filter(s=>s.Kanaler.find(i=>i.Notifierad&&"Meddelandebox"===i.KanalTyp.SystemName)),this.unreadMessages=this.allMessages.filter(s=>!s.Akt\u00f6rMeddelandeL\u00e4st&&s.Akt\u00f6rMeddelandeId),this.readMessages=this.allMessages.filter(s=>s.Akt\u00f6rMeddelandeL\u00e4st||!s.Akt\u00f6rMeddelandeId),this.selectedMessagesType=this.route.snapshot.queryParams.selectedMessagesType?this.route.snapshot.queryParams.selectedMessagesType:this.unreadMessages.length>0?"unread":"all"):(this.useGraphQL=!0,this.allMessagesGraphQL=t.notificationExecutionsQuery.data.notificationExecutions.nodes.filter(s=>"box"===s.channel.guid),this.unreadMessagesGraphQL=this.allMessagesGraphQL.filter(s=>s.notification.unread&&s.id),this.readMessagesGraphQL=this.allMessagesGraphQL.filter(s=>!s.notification.unread||!s.id),this.selectedMessagesType=this.route.snapshot.queryParams.selectedMessagesType?this.route.snapshot.queryParams.selectedMessagesType:this.unreadMessagesGraphQL.length>0?"unread":"all")})}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete()}getMessages(){this.useGraphQL?this.messagesService.fetchMessages().subscribe(t=>{this.allMessagesGraphQL=t.data.notificationExecutions.nodes.filter(s=>"box"===s.channel.guid),this.unreadMessagesGraphQL=this.allMessagesGraphQL.filter(s=>s.notification.unread&&s.id),this.readMessagesGraphQL=this.allMessagesGraphQL.filter(s=>!s.notification.unread||!s.id)}):this.messagesService.getFilteredMessage("Meddelandebox").subscribe(t=>{this.allMessages=t,this.unreadMessages=this.allMessages.filter(s=>!s.Akt\u00f6rMeddelandeL\u00e4st),this.readMessages=this.allMessages.filter(s=>s.Akt\u00f6rMeddelandeL\u00e4st)})}changeSelectedMessagesType(t){this.selectedMessagesType=t,this.router.navigate([],{relativeTo:this.route,queryParamsHandling:"merge",queryParams:{selectedMessagesType:this.selectedMessagesType}})}markAllAsRead(){this.messagesService.putMarkAllAsRead().subscribe(()=>{this.useGraphQL?this.unreadMessagesGraphQL=[]:this.unreadMessages=[],this.getMessages()})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.nX),e.rXU(M.Ix),e.rXU(f.G),e.rXU(L.M))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-messages"]],standalone:!1,decls:22,vars:21,consts:[["group","matButtonToggleGroup"],[1,"header"],[3,"text"],[1,"slim-toggle",3,"change","value"],["value","unread"],["value","read"],["value","all"],[1,"messages-container"],[3,"messages","messagesGraphQL"],["matButton","tonal","data-mom-test","MyPages_Messages_MarkAllAsRead",1,"mark-all-as-read",3,"click"],[3,"markedAsRead","messages","messagesGraphQL"]],template:function(s,i){if
1(1&s){const r=e.RV6();e.j41(0,"div")(1,"div",1),e.nrm(2,"taiga-medium-header",2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"taiga-page-cards"),e.j41(5,"div")(6,"mat-button-toggle-group",3,0),e.bIt("change",function(x){return c.eBV(r),c.Njj(i.changeSelectedMessagesType(x.value))}),e.j41(8,"mat-button-toggle",4),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"mat-button-toggle",5),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"mat-button-toggle",6),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.nVh(17,an,4,3,"div"),e.j41(18,"div",7),e.nVh(19,on,1,2,"taiga-messages-list",8),e.nVh(20,rn,1,2,"taiga-messages-list",8),e.nVh(21,ln,1,2,"taiga-messages-list",8),e.k0s()()}if(2&s){const r=e.sdS(7);e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(2),e.Y8G("text",e.bMT(3,13,"NOTIFICATIONS")),e.R7$(4),e.Y8G("value",i.selectedMessagesType),e.R7$(3),e.JRh(e.bMT(10,15,"UNREAD")),e.R7$(3),e.JRh(e.bMT(13,17,"READ")),e.R7$(3),e.JRh(e.bMT(16,19,"ALL")),e.R7$(2),e.vxM((null==i.unreadMessages?null:i.unreadMessages.length)>0||(null==i.unreadMessagesGraphQL?null:i.unreadMessagesGraphQL.length)>0?17:-1),e.R7$(2),e.vxM("unread"===r.value?19:-1),e.R7$(),e.vxM("read"===r.value?20:-1),e.R7$(),e.vxM("all"===r.value?21:-1)}},dependencies:[V.$z,Ie.ec,Ie.pc,K.o,X.K,Ce,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.header-text[_ngcontent-%COMP%]{font-weight:700}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}.mark-all-as-read[_ngcontent-%COMP%], .messages-container[_ngcontent-%COMP%]{margin-top:15px}"]})}}return n})();var dn=o(7303);function mn(n,m){1&n&&(e.j41(0,"h1",0),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"NEWS")))}function un(n,m){1&n&&(e.j41(0,"h1",0),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"NOTIFICATIONS")))}function gn(n,m){1&n&&(e.j41(0,"mat-icon",4),e.EFF(1,"arrow_right"),e.k0s())}function pn(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.nVh(1,gn,2,0,"mat-icon",4),e.j41(2,"button",5),e.bIt("click",function(){const i=c.eBV(t).$implicit,r=e.XpG(2);return c.Njj(r.messageClick(i.NotifieringId))}),e.EFF(3),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);e.R7$(),e.vxM(t.NotifieringId===s.notifyMessage.NotifieringId?1:-1),e.R7$(),e.Y8G("ngClass",t.NotifieringId===s.notifyMessage.NotifieringId?"accent-text":""),e.R7$(),e.SpI(" ",s.getMessageSubject(t)," ")}}function hn(n,m){if(1&n&&(e.j41(0,"mat-card-content"),e.Z7z(1,pn,4,3,"div",3,e.fX1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Dyx(t.getMessages())}}function fn(n,m){1&n&&(e.j41(0,"mat-icon",4),e.EFF(1,"arrow_right"),e.k0s())}function _n(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.nVh(1,fn,2,0,"mat-icon",4),e.j41(2,"button",5),e.bIt("click",function(){const i=c.eBV(t).$implicit,r=e.XpG(2);return c.Njj(r.messageClick(i.id))}),e.EFF(3),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);e.R7$(),e.vxM(t.id===s.notifyMessageGraphQL.id?1:-1),e.R7$(),e.Y8G("ngClass",(null==t?null:t.id)===s.notifyMessageGraphQL.id?"accent-text":""),e.R7$(),e.SpI(" ",t.subject," ")}}function Mn(n,m){if(1&n&&(e.j41(0,"mat-card-content"),e.Z7z(1,_n,4,3,"div",3,e.fX1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Dyx(t.getMessagesGraphQL())}}function Cn(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"button",6),e.bIt("click",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.showAllMessages())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"SHOWALL")," "))}let vn=(()=>{class n{set currentMessage(t){this.notifyMessage=t}set currentMessageGraphQL(t){this.notifyMessageGraphQL=t}constructor(){this.messageClicked=new e.bkB}ngOnInit(){this.channelType=this.isNews?"Nyhet":"Meddelandebox"}messageClick(t){this.messageClicked.emit(t)}showAllMessages(){this.allMessages=!0}getMessages(){return this.allMessages?this.messages:this.messages&&this.messages.length>0?this.messages.slice(0,4):null}getMessagesGraphQL(){return this.allMessages?this.messagesGraphQL:this.messagesGraphQL&&this.messagesGraphQL.length>0?this.messagesGraphQL.slice(0,4):null}getMessageSubject(t){return t.Kanaler.find(i=>i.Notifierad&&i.KanalTyp.SystemName===this.channelType).\u00c4mne}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-message-links"]],inputs:{isNews:"isNews",messages:"messages",messagesGraphQL:"messagesGraphQL",currentMessage:"currentMessage",currentMessageGraphQL:"currentMessageGraphQL"},outputs:{messageClicked:"messageClicked"},standalone:!1,decls:6,vars:5,consts:[[1,"mat-h1","header-text"],[1,"mat-elevation-z0"],[1,"button-wrapper"],[1,"message-list-item"],[1,"arrow-icon"],["mat-button","",1,"message-list-button",3,"click","ngClass"],["mat-stroked-button","",1,"accent-text",3,"click"]],template:function(s,i){1&s&&(e.nVh(0,mn,3,3,"h1",0),e.nVh(1,un,3,3,"h1",0),e.j41(2,"mat-card",1),e.nVh(3,hn,3,0,"mat-card-content"),e.nV
1h(4,Mn,3,0,"mat-card-content"),e.k0s(),e.nVh(5,Cn,4,3,"div",2)),2&s&&(e.vxM(i.isNews?0:-1),e.R7$(),e.vxM(i.isNews?-1:1),e.R7$(2),e.vxM(i.messages&&i.notifyMessage?3:-1),e.R7$(),e.vxM(i.messagesGraphQL&&i.notifyMessageGraphQL?4:-1),e.R7$(),e.vxM(!i.allMessages&&i.messages&&i.messages.length>4||!i.allMessages&&i.messagesGraphQL&&i.messagesGraphQL.length>4?5:-1))},dependencies:[U.An,V.$z,E.RN,E.m2,ie.YU,k.D9],styles:[".header-text[_ngcontent-%COMP%]{font-weight:500}.arrow-icon[_ngcontent-%COMP%]{vertical-align:middle}.button-wrapper[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:center}.message-list-button[_ngcontent-%COMP%]{max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}"],changeDetection:0})}}return n})();function yn(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",1),e.nrm(1,"taiga-page-cards"),e.j41(2,"div",2)(3,"div",3)(4,"taiga-message-card",4),e.bIt("messageClicked",function(i){c.eBV(t);const r=e.XpG();return c.Njj(r.messageClick(i))}),e.k0s()(),e.j41(5,"div",5)(6,"taiga-message-links",6),e.bIt("messageClicked",function(i){c.eBV(t);const r=e.XpG();return c.Njj(r.messageClick(i))}),e.k0s()()()()}if(2&n){const t=e.XpG();e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(4),e.Y8G("isTruncated",!1)("isNews",t.isNews)("message",t.currentMessage),e.R7$(2),e.Y8G("isNews",t.isNews)("messages",t.messages)("currentMessage",t.currentMessage)}}function Tn(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",1),e.nrm(1,"taiga-page-cards"),e.j41(2,"div",2)(3,"div",3)(4,"taiga-message-card",7),e.bIt("messageClicked",function(i){c.eBV(t);const r=e.XpG();return c.Njj(r.messageClick(i))}),e.k0s()(),e.j41(5,"div",5)(6,"taiga-message-links",8),e.bIt("messageClicked",function(i){c.eBV(t);const r=e.XpG();return c.Njj(r.messageClick(i))}),e.k0s()()()()}if(2&n){const t=e.XpG();e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(4),e.Y8G("isTruncated",!1)("isNews",t.isNews)("messageGraphQL",t.currentMessageGraphQL),e.R7$(2),e.Y8G("isNews",t.isNews)("messagesGraphQL",t.messagesGraphQL)("currentMessageGraphQL",t.currentMessageGraphQL)}}let Ae=(()=>{class n{constructor(t,s,i,r,C){this.route=t,this.messagesService=s,this.mediaQueryService=i,this.router=r,this.location=C,this.componentDestroyed=new se.B,this.now=new Date}ngOnInit(){this.isNews=this.router.url.includes("news"),this.route.data.pipe((0,W.Q)(this.componentDestroyed)).subscribe(t=>{t&&t.portalSession?.Kund?(this.messages=t.portalSession.Kund.Meddelanden.NotifieringMeddelanden.filter(this.isNews?s=>s.Kanaler.find(i=>i.Notifierad&&"Nyhet"===i.KanalTyp.SystemName):s=>s.Kanaler.find(i=>i.Notifierad&&"Meddelandebox"===i.KanalTyp.SystemName)),this.setCurrentMessage(+this.route.snapshot.params.id)):(this.useGraphQL=!0,this.messagesGraphQL=t.notificationExecutionsQuery.data.notificationExecutions.nodes.filter(this.isNews?s=>"news"===s.channel.guid:s=>"box"===s.channel.guid),this.setCurrentMessage(this.route.snapshot.params.id))}),this.router.events.pipe((0,W.Q)(this.componentDestroyed)).subscribe(t=>{t instanceof M.wF&&(this.useGraphQL||this.setCurrentMessage(+this.route.snapshot.params.id))})}setCurrentMessage(t){if(this.useGraphQL){if(this.currentMessageId=t,this.currentMessageGraphQL=this.messagesGraphQL.find(s=>s.id===t),!this.currentMessageGraphQL)return void this.router.navigateByUrl("/not-found");!this.isNews&&this.currentMessageGraphQL.notification.unread&&this.currentMessageGraphQL.notification.id&&this.setMarkedAsReadGraphQL(this.currentMessageGraphQL.notification.id)}else{if(this.currentMessageId=t,this.currentMessage=this.messages.find(s=>s.NotifieringId===t),!this.currentMessage)return void this.router.navigateByUrl("/not-found");!this.isNews&&!this.currentMessage.Akt\u00f6rMeddelandeL\u00e4st&&this.currentMessage.Akt\u00f6rMeddelandeId&&this.setMarkedAsRead(this.currentMessage.Akt\u00f6rMeddelandeId)}}ngOnDestroy(){this.componentDestroyed.next(!0),this.componentDestroyed.complete()}setMarkedAsRead(t){this.messagesService.putMarkAsRead(t.toString()).subscribe(()=>{this.messages.find(s=>s.Akt\u00f6rMeddelandeId===t).Akt\u00f6rMeddelandeL\u00e4st=new Date})}setMarkedAsReadGraphQL(t){this.messagesService.mutateMarkNotificationRead(t).subscribe(()=>{this.messagesGraphQL.find(s=>s.notification.id===t).notification.unread=!1})}
1messageClick(t){if(this.useGraphQL){this.currentMessageGraphQL=this.messagesGraphQL.find(i=>i.id===t),!this.isNews&&this.currentMessageGraphQL.notification.unread&&this.currentMessageGraphQL.notification.id&&this.setMarkedAsReadGraphQL(this.currentMessageGraphQL.notification.id);const s=this.location.path().replace(this.currentMessageId.toString(),t.toString());this.currentMessageId=t,this.location.go(s)}else{this.currentMessage=this.messages.find(i=>i.NotifieringId===t),!this.isNews&&!this.currentMessage.Akt\u00f6rMeddelandeL\u00e4st&&this.currentMessage.Akt\u00f6rMeddelandeId&&this.setMarkedAsRead(this.currentMessage.Akt\u00f6rMeddelandeId);const s=this.location.path().replace(this.currentMessageId.toString(),t.toString());this.currentMessageId=t,this.location.go(s)}}showAllMessages(){this.allMessages=!0}getMessages(){return this.allMessages?this.messages:this.messages&&this.messages.length>0?this.messages.slice(0,4):null}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.nX),e.rXU(f.G),e.rXU(L.M),e.rXU(M.Ix),e.rXU(dn.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-message"]],standalone:!1,decls:2,vars:2,consts:[[1,"page",3,"is-mobile","is-desktop"],[1,"page"],[1,"row"],[1,"column","left-column"],[3,"messageClicked","isTruncated","isNews","message"],[1,"column","links"],[3,"messageClicked","isNews","messages","currentMessage"],[3,"messageClicked","isTruncated","isNews","messageGraphQL"],[3,"messageClicked","isNews","messagesGraphQL","currentMessageGraphQL"]],template:function(s,i){1&s&&(e.nVh(0,yn,7,10,"div",0),e.nVh(1,Tn,7,10,"div",0)),2&s&&(e.vxM(i.useGraphQL?-1:0),e.R7$(),e.vxM(i.useGraphQL?1:-1))},dependencies:[X.K,vn,Re],styles:[".page[_ngcontent-%COMP%]{display:block}.is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.header-text[_ngcontent-%COMP%]{font-weight:500}.row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1;width:100%}.left-column[_ngcontent-%COMP%]{padding-bottom:16px}.is-desktop[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{flex:2;margin-right:16px}.is-desktop[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{max-width:340px}@media(max-width:1024px){.row[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}}.divider[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:15px}h2[_ngcontent-%COMP%]{margin-top:0}.button-wrapper[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:center}.arrow-icon[_ngcontent-%COMP%]{vertical-align:middle}.show-all-button[_ngcontent-%COMP%]{width:100%}.message-list-button[_ngcontent-%COMP%]{max-width:85%;overflow:hidden;text-overflow:ellipsis}"]})}}return n})(),Rn=(()=>{class n{constructor(t,s){this.mediaQueryService=t,this.route=s}ngOnInit(){this.route.data.subscribe(t=>{t&&t.portalSession?.Kund?this.allNews=t.portalSession.Kund.Meddelanden.NotifieringMeddelanden.filter(s=>s.Kanaler.find(i=>i.Notifierad&&"Nyhet"===i.KanalTyp.SystemName)):this.allNewsGraphQL=t.notificationExecutionsQuery.data.notificationExecutions.nodes.filter(s=>"news"===s.channel.guid)})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(L.M),e.rXU(M.nX))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-news"]],standalone:!1,decls:6,vars:10,consts:[[1,"header"],[3,"text"],[3,"isNews","messages","messagesGraphQL"]],template:function(s,i){1&s&&(e.j41(0,"div")(1,"div",0),e.nrm(2,"taiga-medium-header",1),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"taiga-page-cards")(5,"taiga-messages-list",2),e.k0s()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(2),e.Y8G("text",e.bMT(3,8,"NEWS")),e.R7$(3),e.Y8G("isNews",!0)("messages",i.allNews)("messagesGraphQL",i.allNewsGraphQL))},dependencies:[K.o,X.K,Ce,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.header-text[_ngcontent-%COMP%]{font-weight:700}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}mat-button-toggle-group[_ngcontent-%COMP%]{height:32px}"]})}}return n})();var ee=o(9496),En=o(450);function bn(n,m){if(1&n&&e.nrm(0,"p",2),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.text)}}function In(n,m){if(1&n&&e.nrm(0,"p",2),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.shortText)}}function An(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card",1)(1,"mat-card-header")(2,"mat-card-title"),e.EFF(3),e.k0s()(),e.j41(4,"mat-card-content"),e.nV
1h(5,bn,1,1,"p",2),e.nVh(6,In,1,1,"p",2),e.k0s(),e.j41(7,"mat-card-actions",3)(8,"div",4)(9,"mat-slide-toggle",5),e.bIt("change",function(i){const r=c.eBV(t).$implicit,C=e.XpG();return c.Njj(C.toggle(i,r.id,r.versionId))}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const t=m.$implicit;e.R7$(3),e.JRh(t.displayName),e.R7$(2),e.vxM(t.text?5:-1),e.R7$(),e.vxM(t.shortText&&!t.text?6:-1),e.R7$(3),e.Y8G("checked",t.accepted),e.R7$(),e.JRh(e.bMT(11,5,"IAGREE"))}}let On=(()=>{class n{constructor(t,s,i){this.route=t,this.mediaQueryService=s,this.registrationService=i}ngOnInit(){this.route.data.subscribe(t=>{this.consents=t?.actor?.consents.filter(s=>s.accepted),console.log(this.consents)})}toggle(t,s,i){this.registrationService.postActor({consents:[{id:s,versionId:i,command:{type:t.checked?"accept":"withdraw"}}]}).subscribe()}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.nX),e.rXU(L.M),e.rXU(q.f))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-consents"]],standalone:!1,decls:7,vars:10,consts:[["data-mom-test","MyPages_Account_Consents_Header",3,"text","subText"],[1,"consent-card"],[3,"innerText"],["align","end"],[1,"slide-container"],["data-mom-test","MyPages_Account_Consents_Toggle",3,"change","checked"]],template:function(s,i){1&s&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nrm(4,"taiga-page-cards"),e.Z7z(5,An,12,7,"mat-card",1,e.fX1),e.k0s()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,6,"CONSENTS"))("subText",e.bMT(3,8,"CONSENTSHELP")),e.R7$(4),e.Dyx(i.consents))},dependencies:[E.RN,E.YY,E.m2,E.MM,E.dh,En.sG,K.o,X.K,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.consent-card[_ngcontent-%COMP%]{margin-bottom:15px}"]})}}return n})(),Oe=(()=>{class n{constructor(t,s,i,r){this.registrationService=t,this.errorService=s,this.userMessageService=i,this.router=r}resolve(){return this.registrationService.getActor().pipe((0,v.W)(t=>{const s=this.errorService.parseError(t);return this.userMessageService.errorWithHeader(s.message,"",s.displayErrorReportNumber?s.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)}))}static{this.\u0275fac=function(s){return new(s||n)(c.KVO(q.f),c.KVO(P.I),c.KVO(O.z),c.KVO(M.Ix))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Sn(n,m){if(1&n&&e.nrm(0,"p",2),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.text)}}function kn(n,m){if(1&n&&e.nrm(0,"p",2),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.shortText)}}function Nn(n,m){if(1&n&&(e.j41(0,"mat-card",1)(1,"mat-card-title"),e.EFF(2),e.k0s(),e.j41(3,"mat-card-content"),e.nVh(4,Sn,1,1,"p",2),e.nVh(5,kn,1,1,"p",2),e.k0s()()),2&n){const t=m.$implicit;e.R7$(2),e.JRh(t.displayName),e.R7$(2),e.vxM(t.text?4:-1),e.R7$(),e.vxM(t.shortText&&!t.text?5:-1)}}let xn=(()=>{class n{constructor(t,s){this.route=t,this.mediaQueryService=s}ngOnInit(){this.route.data.subscribe(t=>{this.consentIds=this.route.snapshot.queryParamMap.get("ids").split(","),this.consents=t?.actor?.consents.filter(s=>this.consentIds.includes(s.id)),console.log(this.consents)})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.nX),e.rXU(L.M))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-read-consents"]],standalone:!1,decls:6,vars:7,consts:[[3,"text"],[1,"consent-card"],[3,"innerText"]],template:function(s,i){1&s&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.nrm(3,"taiga-page-cards"),e.Z7z(4,Nn,6,3,"mat-card",1,e.fX1),e.k0s()),2&s&&(e.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,5,"CONSENTS")),e.R7$(3),e.Dyx(i.consents))},dependencies:[E.RN,E.m2,E.dh,K.o,X.K,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.consent-card[_ngcontent-%COMP%]{margin-top:15px}"]})}}return n})();var Pn=o(2304),Ln=o(1997);function Dn(n,m){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.measure," ")}}function Fn(n,m){1&n&&(e.j41(0,"div"),e.EFF(1,"-"),e.k0s())}function Gn(n,m){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI("",t.offeredCost," kr")}}function wn(n,m){1&n&&(e.j41(0,"div"),e.EFF(1,"-"),e.k0s())}function $n(n,m){if(1&n&&(e.j41(0,"div",4)(1,"div",5)(2,"div",6),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div"),e.EFF(6),e.k0s()(),e.j41(7,"div",5)(8,"div",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.nVh(11,Dn,2,1,"div")(12,Fn,2,0,"div"),e.k0s(),e.j41(13,"div",5)(14,"div",6),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nVh(17,Gn,2,1,"div")(18,wn,2,0,"div"),e.k0s()(),e.nrm(19,"mat-divider")),2&n){const t=m.$implicit;e.R7$(3),e.SpI(" ",e.bMT(4,6,"SPACE")," "),e.R7$(3),e.SpI(" ",t.space," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"ACTION")," "),e.R7$(2),e.vxM(t.measure?11:12),e.R7$(4),e.SpI(" ",e.bMT(16,10,"COST")," "),e.R7$(2),e.vxM(t.offeredCost?17:18)}}function jn(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div"),e.nrm(2,"taiga-medium-header",1),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"taiga-page-cards"),e.j41(6,"mat-card"),e.Z7z(7,$n,20,12,null,null,e.fX1),e.j41(9,"div",2)(10,"button",3),e.bIt("click",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.sendOrder())}),e.EFF(11),e.nI1(12,"translate"),e.k0s()()()()}if(2&n){const t=e.XpG();e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(2),e.Y8G("text",e.bMT(3,7,"MAINTENANCE"))("subText",e.bMT(4,9,"MAINTENANCECHECKOUTHELP")),e.R7$(5),e.Dyx(t.items),e.R7$(4),e.JRh(e.bMT(12,11,"SUBMITORDER"))}}const Vn=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Pt,canActivate:[h.q],title:"HOME"},{path:"messages",component:cn,canActivate:[h.q,ee.u],resolve:{portalSession:u,notificationExecutionsQuery:u},title:"NOTIFICATIONS"},{path:"my-info",component:Qt,canActivate:[h.q],resolve:{userInfo:R},title:"MYINFO"},{path:"temporary-addresses",component:be,canActivate:[h.q,ee.u],resolve:{sessionTillfalligAddress:S},title:"TEMPADDR"},{path:"contract",loadChildren:()=>Promise.all([o.e(76),o.e(355)]).then(o.bind(o,4355)).then(n=>n.ContractModule)},{path:"resident-info",loadChildren:()=>Promise.all([o.e(76),o.e(577)]).then(o.bind(o,7577)).then(n=>n.ResidentInfoModule)},{path:"temporary-addresses",component:be,canActivate:[h.q,ee.u],resolve:{sessionTillfalligAddress:S}},{path:"invoice",loadChildren:()=>o.e(647).then(o.bind(o,3647)).then(n=>n.InvoiceModule)},{path:"laundry-booking",loadChildren:()=>o.e(259).then(o.bind(o,6259)).then(n=>n.LaundryBookingModule)},{path:"error-report",loadChildren:()=>o.e(325).then(o.bind(o,6325)).then(n=>n.ErrorReportModule)},{path:"change-password",component:sn,canActivate:[h.q],title:"CHANGEPASSWORD"},{path:"contact-by",component:ue,canActivate:[h.q],resolve:{data:ge},title:"CONTACTBYTITLE"},{path:"messages/:id",component:Ae,canActivate:[h.q,ee.u],resolve:{portalSession:u,notificationExecutionsQuery:u},title:"NOTIFICATIONS"},{path:"news",component:Rn,canActivate:[h.q,ee.u],resolve:{portalSession:u,notificationExecutionsQuery:u},title:"NEWS"},{path:"news/:id",component:Ae,canActivate:[h.q,ee.u],resolve:{portalSession:u,notificationExecutionsQuery:u},title:"NEWS"},{path:"consents/accepted",component:On,canActivate:[h.q,ee.u],resolve:{actor:Oe},title:"CONSENTS"},{path:"consents/readmore",component:xn,canActivate:[h.q],resolve:{actor:Oe},title:"CONSENTS"},{path:"checkout/:id",component:(()=>{class n{constructor(t,s,i,r,C,x){this.route=t,this.mediaQueryService=s,this.hluLegacyService=i,this.snackBarService=r,this.translate=C,this.router=x,this.SHOPPINGCART="SHOPPINGCART"}ngOnInit(){sessionStorage.getItem(`${this.SHOPPINGCART}
1_${this.route.snapshot.params.id}`)?this.items=JSON.parse(sessionStorage.getItem(`${this.SHOPPINGCART}_${this.route.snapshot.params.id}`)):this.router.navigateByUrl("mypages/contract/"+this.route.snapshot.params.id)}sendOrder(){let t=[];for(let s of this.items)t.push({Accepterad:ye()(),\u00c4rendeRadId:s.id});this.hluLegacyService.postMaintenanceOrder(t).subscribe(()=>{sessionStorage.removeItem(`${this.SHOPPINGCART}_${this.route.snapshot.params.id}`),this.snackBarService.success(this.translate.instant("ORDERSUCCESS")),this.router.navigateByUrl("mypages/contract/"+this.route.snapshot.params.id)})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(M.nX),e.rXU(L.M),e.rXU(Pn.I),e.rXU(O.z),e.rXU(k.c$),e.rXU(M.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-hlu-legacy-checkout"]],standalone:!1,decls:1,vars:1,consts:[[3,"is-mobile","is-desktop"],[3,"text","subText"],["align","end",2,"margin-top","10px"],["mat-raised-button","","color","primary","data-mom-test","MyPages_HLUCheckout_SubmitOrderButton",3,"click"],[1,"flex-container"],[1,"flex-item"],[1,"mat-body-strong"]],template:function(s,i){1&s&&e.nVh(0,jn,13,13,"div",0),2&s&&e.vxM(i.items?0:-1)},dependencies:[Ln.q,V.$z,E.RN,K.o,X.K,k.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.divider[_ngcontent-%COMP%]{margin-bottom:15px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.is-desktop[_ngcontent-%COMP%]   .width-400[_ngcontent-%COMP%]{width:400px}.is-desktop[_ngcontent-%COMP%]   .width-180[_ngcontent-%COMP%]{width:180px}.flex-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-right:10px}.information-container[_ngcontent-%COMP%]{margin-top:10px}.flex-item[_ngcontent-%COMP%]{margin-bottom:15px}.is-mobile[_ngcontent-%COMP%]   .flex-container[_ngcontent-%COMP%]{flex-direction:column}.title[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}"]})}}return n})(),canActivate:[h.q],title:"MAINTENANCE"}];let Qn=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=c.G2t({imports:[a.iI.forChild(Vn),a.iI]})}}return n})();var Se=o(9330),Un=o(9963);let Xn=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=c.G2t({providers:[(0,Se.$R)((0,Se.Sx)())],imports:[N.YN,N.X1,Un.G,k.h.forChild(),Qn]})}}return n})()},5242(J,j,o){o.d(j,{j:()=>l});var a=o(2615),h=o(5850);let l=(()=>{class I{constructor(v){this.request=v,this.urlGet="session/kund/tillfalligaadresser/",this.urlSet="session/kund/sparatillfaligadress/"}getTemporaryAddress(){return this.request.get(this.urlGet,{VisaAvslutade:!1})}setTemporaryAddress(v){return this.request.postOnce(this.urlSet,{Id:v.AdressId,Attention:v.Attention,CareOf:v.CareOf,Fom:v.Fom,Gatuadress1:v.Gatuadress1,Gatuadress2:v.Gatuadress2,LandreferensNamn:v.LandReferensnamn,Namn:v.Namn,Postnummer:v.Postnummer,Postort:v.Postort,Tom:v.Tom})}removeTemporaryAddress(v){return this.request.delete(`v2/session/address/${v}`)}static{this.\u0275fac=function(c){return new(c||I)(a.KVO(h.B))}}static{this.\u0275prov=a.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},5661(J,j,o){o.d(j,{m:()=>S});var a=o(7705),h=o(9417),l=o(3664),I=o(2615),F=o(5850);let v=(()=>{class f{constructor(g){this.request=g}getCountries(){return this.request.get("land")}getCountriesV2(){return this.request.get("v2/shared/addresses/countries")}static{this.\u0275fac=function(e){return new(e||f)(I.KVO(F.B))}}static{this.\u0275prov=I.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})();var c=o(9588),$=o(6183),P=o(3029),O=o(8018);function M(f,u){if(1&f&&(l.j41(0,"mat-option",1),l.EFF(1),l.k0s()),2&f){const g=u.$implicit;l.Y8G("value",g.ReferensNamn),l.R7$(),l.SpI(" ",g.Beteckning," ")}}function A(f,u){if(1&f&&(l.j41(0,"mat-form-field")(1,"mat-label"),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"mat-select",0),l.Z7z(5,M,2,2,"mat-option",1,l.fX1),l.k0s(),l.j41(7,"mat-error"),l.EFF(8),l.nI1(9,"translate"),l.k0s()()),2&f){const g=l.XpG();l.R7$(2),l.JRh(l.bMT(3,6,"COUNTRY")),l.R7$(2),l.Y8G("required",l.mNQ(g.required))("formControlName",l.mNQ(g.controlName)),l.R7$(),l.Dyx(g.countries),l.R7$(3),l.SpI(" ",l.bMT(9,8,"INPUTREQUIRED")," ")}}function R(f,u){if(1&f&&(l.j41(0,"mat-option",1),l.EFF(1),l.k0s()),2&f){const g=u.$implicit;l.Y8G("value",g.id),l.R7$(),l.SpI(" ",g.displayName," ")}}function b(f,u){if(1&f&&(l.j41(0,"mat-form-field")(1,"mat-label"),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"mat-select",2),l.Z7z(5,R,2,2,"mat-option",1,l.fX1),l.k0s(),l.j41(7,"mat-error"),l.EFF(8),l.nI1(9,"translate"),l.k0s()()),2&f){const g=l.XpG();
1l.R7$(2),l.JRh(l.bMT(3,6,"COUNTRY")),l.R7$(2),l.Y8G("required",l.mNQ(g.required))("formControlName",l.mNQ(g.controlName)),l.R7$(),l.Dyx(null==g.countriesV2?null:g.countriesV2.items),l.R7$(3),l.SpI(" ",l.bMT(9,8,"INPUTREQUIRED")," ")}}let S=(()=>{class f{constructor(g){this.countryService=g,this.required=!1}ngOnInit(){this.useV2?this.countryService.getCountriesV2().subscribe(g=>{this.countriesV2=g}):this.countryService.getCountries().subscribe(g=>{this.countries=g})}static{this.\u0275fac=function(e){return new(e||f)(l.rXU(v))}}static{this.\u0275cmp=l.VBU({type:f,selectors:[["taiga-country-select"]],inputs:{controlName:"controlName",required:[2,"required","required",a.L39],selectedValue:"selectedValue",useV2:"useV2"},standalone:!1,features:[l.Jv_([],[{provide:h.ZU,useExisting:h.j4}])],decls:2,vars:2,consts:[[3,"required","formControlName"],[3,"value"],["autocomplete","country-name",3,"required","formControlName"]],template:function(e,d){1&e&&(l.nVh(0,A,10,10,"mat-form-field"),l.nVh(1,b,10,10,"mat-form-field")),2&e&&(l.vxM(d.useV2?-1:0),l.R7$(),l.vxM(d.useV2&&d.countriesV2?1:-1))},dependencies:[h.BC,h.YS,h.JD,c.rl,c.nJ,c.TL,$.VO,P.wT,O.D9],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return f})()},293(J,j,o){o.d(j,{g:()=>O});var a=o(3664),h=o(2615),l=o(8018),I=o(9213),F=o(8834),v=o(5596),c=o(1843);function $(M,A){if(1&M){const R=a.RV6();a.j41(0,"div",0)(1,"mat-card",2),a.nI1(2,"translate"),a.bIt("click",function(){const S=h.eBV(R).$implicit,f=a.XpG();return h.Njj(f.cardClicked(S))})("keydown.enter",function(){const S=h.eBV(R).$implicit,f=a.XpG();return h.Njj(f.cardClicked(S))}),a.j41(3,"mat-icon"),a.EFF(4),a.k0s(),a.j41(5,"div",3),a.EFF(6),a.nI1(7,"translate"),a.k0s()()()}if(2&M){const R=A.$implicit,b=a.XpG();a.R7$(),a.Y8G("eventLabel",a.mNQ(a.bMT(2,7,R.text)))("eventCategory",a.mNQ(b.category)),a.BMQ("tabindex",0),a.R7$(3),a.JRh(R.icon),a.R7$(2),a.SpI(" ",a.bMT(7,9,R.text)," ")}}function P(M,A){if(1&M){const R=a.RV6();a.j41(0,"div",1)(1,"button",4),a.nI1(2,"translate"),a.bIt("click",function(){h.eBV(R);const S=a.XpG();return h.Njj(S.showAllFeatures())}),a.EFF(3),a.nI1(4,"translate"),a.k0s()()}if(2&M){const R=a.XpG();a.R7$(),a.Y8G("eventLabel",a.mNQ(a.bMT(2,5,"SHOWALLFEATURES")))("eventCategory",a.mNQ(R.category)),a.R7$(2),a.SpI(" ",a.bMT(4,7,"SHOWALLFEATURES")," ")}}let O=(()=>{class M{constructor(R){this.translate=R,this.featureClicked=new a.bkB,this.category=this.translate.instant("QUICKACTIONS")}getFeatures(){return this.allFeatures?this.featureList:this.featureList&&this.featureList.length>0?this.featureList.slice(0,this.initialCount):null}cardClicked(R){this.featureClicked.emit(R)}showAllFeatures(){this.allFeatures=!0}static{this.\u0275fac=function(b){return new(b||M)(a.rXU(l.c$))}}static{this.\u0275cmp=a.VBU({type:M,selectors:[["taiga-quick-actions"]],inputs:{initialCount:"initialCount",featureList:"featureList"},outputs:{featureClicked:"featureClicked"},standalone:!1,decls:3,vars:1,consts:[["data-mom-test","MyPages_QuickActionCard"],[1,"button-wrapper"],["taigaEventTracker","",1,"action-card",3,"click","keydown.enter","eventLabel","eventCategory"],[1,"card-text","accent-text"],["mat-stroked-button","","taigaEventTracker","","data-mom-test","MyPages_Agreement_QuickActions_ShowAll",1,"accent-text",3,"click","eventLabel","eventCategory"]],template:function(b,S){1&b&&(a.Z7z(0,$,8,11,"div",0,a.fX1),a.nVh(2,P,5,9,"div",1)),2&b&&(a.Dyx(S.getFeatures()),a.R7$(2),a.vxM(S.initialCount&&!S.allFeatures&&S.featureList&&S.featureList.length>S.initialCount?2:-1))},dependencies:[I.An,F.$z,v.RN,c.u,l.D9],styles:[".action-card[_ngcontent-%COMP%]{display:flex;align-items:center;margin:10px 0;padding:30px;cursor:pointer;flex-direction:row}.card-text[_ngcontent-%COMP%]{margin-left:40px;font-size:.875rem;font-weight:700}mat-icon[_ngcontent-%COMP%]{transform:scale(1.6666);color:var(--mat-sys-primary)}.button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-bottom:10px}"]})}}return M})()},5263(J,j,o){var a;o.d(j,{QH:()=>R});var v=o(2615),c=o(9945),$=o(7586);const P=$||a||(a=o.t($,2)),O=new v.nKC("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function M(){return{useUtc:!1}}});function A(g,e){const d=Array(g);for(let p=0;p<g;p++)d[p]=e(p);return d}let R=(()=>{class g extends c.MJ{_options=(0,v.WQX)(O,{optional:!0});_localeData;constructor(){super();const d=(0,v.WQX)(c.Ju,{optional:!0});this.setLocale(d||P.locale())}setLocale(d){super.setLocale(d);let p=P.localeData(d);this._localeData={firstDayOfWeek:p.firstDayOfWeek(),longMonths:p.months(),shortMonths:p.monthsShort(),dates:A(31,L=>this.createDate(2017,0,L+1).format("D")),longDaysOfWeek:p.weekdays(),shortDaysOfWeek:p.weekdaysShort(),narrowDaysOfWeek:p.weekdaysMin()}}getYear(d){return this.clone(d).year()}getMonth(d){return this.clone(d).month()}getDate(d){return this.clone(d).date()}getDayOfWeek(d){return this.clone(d).day()}getMonthNames(d){return"long"==d?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(d){return"long"==d?this._localeData.longDaysOfWeek:"short"==d?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(d){return this.clone(d).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(d){return this.clone(d).daysInMonth()}clone(d){return d.clone().locale(this.locale)}createDate(d,p,L){const k=this._createMoment({year:d,month:p,date:L}).locale(this.locale);return k.isValid(),k}today(){return this._createMoment().locale(this.locale)}parse(d,p){return d&&"string"==typeof d?this._createMoment(d,p,this.locale):d?this._createMoment(d).locale(this.locale):null}format(d,p){return d=this.clone(d),this.isValid(d),d.format(p)}addCalendarYears(d,p){return this.clone(d).add({years:p})}addCalendarMonths(d,p){return this.clone(d).add({months:p})}addCalendarDays(d,p){return this.clone(d).add({days:p})}toIso8601(d){return this.clone(d).format()}deserialize(d){let p;if(d instanceof Date)p=this._createMoment(d).locale(this.locale);else if(this.isDateInstance(d))return this.clone(d);if("string"==typeof d){if(!d)return null;p=this._createMoment(d,P.ISO_8601).locale(this.locale)}return p&&this.isValid(p)?this._createMoment(p).locale(this.locale):super.deserialize(d)}isDateInstance(d){return P.isMoment(d)}isValid(d){return this.clone(d).isValid()}invalid(){return P.invalid()}setTime(d,p,L,k){return this.clone(d).set({hours:p,minutes:L,seconds:k,milliseconds:0})}getHours(d){return d.hours()}getMinutes(d){return d.minutes()}getSeconds(d){return d.seconds()}parseTime(d,p){return this.parse(d,p)}addSeconds(d,p){return this.clone(d).add({seconds:p})}_createMoment(d,p,L){const{strict:k,useUtc:U}=this._options||{};return U?P.utc(d,p,L,k):P(d,p,L,k)}static \u0275fac=function(p){return new(p||g)};static \u0275prov=v.jDH({token:g,factory:g.\u0275fac})}return g})()}}]);

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.