PageSourceSearch

https://minasidor.k2a.se/503.6f38d53b9e74f2d4.js

js k2a.se collected 2026-09-24 20:00:07 UTC 103,285 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[503],{293:(X,G,i)=>{i.d(G,{g:()=>b});var a=i(1360),o=i(8018),D=i(2881),I=i(9213),S=i(8834),f=i(5596),e=i(1843);function $(C,R){if(1&C){const E=a.RV6();a.j41(0,"div",2)(1,"mat-card",3),a.nI1(2,"translate"),a.bIt("click",function(){const g=a.eBV(E).$implicit,d=a.XpG();return a.Njj(d.cardClicked(g))})("keydown.enter",function(){const g=a.eBV(E).$implicit,d=a.XpG();return a.Njj(d.cardClicked(g))}),a.j41(3,"mat-icon",4),a.EFF(4),a.k0s(),a.j41(5,"div",5),a.EFF(6),a.nI1(7,"translate"),a.k0s()()()}if(2&C){const E=R.$implicit,h=a.XpG();a.R7$(),a.FS9("eventLabel",a.bMT(2,5,E.text)),a.FS9("eventCategory",h.category),a.BMQ("tabindex",0),a.R7$(3),a.JRh(E.icon),a.R7$(2),a.SpI(" ",a.bMT(7,7,E.text)," ")}}function P(C,R){if(1&C){const E=a.RV6();a.j41(0,"div",6)(1,"button",7),a.nI1(2,"translate"),a.bIt("click",function(){a.eBV(E);const g=a.XpG();return a.Njj(g.showAllFeatures())}),a.EFF(3),a.nI1(4,"translate"),a.k0s()()}if(2&C){const E=a.XpG();a.R7$(),a.FS9("eventLabel",a.bMT(2,3,"SHOWALLFEATURES")),a.FS9("eventCategory",E.category),a.R7$(2),a.JRh(a.bMT(4,5,"SHOWALLFEATURES"))}}let b=(()=>{class C{constructor(E){this.translate=E,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(E){this.featureClicked.emit(E)}showAllFeatures(){this.allFeatures=!0}static{this.\u0275fac=function(h){return new(h||C)(a.rXU(o.c$))}}static{this.\u0275cmp=a.VBU({type:C,selectors:[["taiga-quick-actions"]],inputs:{initialCount:"initialCount",featureList:"featureList"},outputs:{featureClicked:"featureClicked"},standalone:!1,decls:2,vars:2,consts:[["data-mom-test","MinaSidor_SnabbFunktionKort",4,"ngFor","ngForOf"],["class","button-wrapper",4,"ngIf"],["data-mom-test","MinaSidor_SnabbFunktionKort"],["taigaEventTracker","",1,"action-card",3,"click","keydown.enter","eventLabel","eventCategory"],["color","primary"],[1,"card-text","accent-text"],[1,"button-wrapper"],["mat-stroked-button","","taigaEventTracker","","data-mom-test","MyPages_Agreement_QuickActions_ShowAll",1,"accent-text",3,"click","eventLabel","eventCategory"]],template:function(h,g){1&h&&a.DNE(0,$,8,9,"div",0)(1,P,5,7,"div",1),2&h&&(a.Y8G("ngForOf",g.getFeatures()),a.R7$(),a.Y8G("ngIf",g.initialCount&&!g.allFeatures&&g.featureList&&g.featureList.length>g.initialCount))},dependencies:[D.Sq,D.bT,I.An,S.$z,f.RN,e.u,o.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(2)}.button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-bottom:10px}"]})}}return C})()},2304:(X,G,i)=>{i.d(G,{I:()=>P});var a=i(274),o=i(6354),D=i(7586),I=i.n(D),S=i(7468),f=i(1360),e=i(5850),$=i(3527);let P=(()=>{class b{constructor(R,E){this.request=R,this.registrationService=E}getAllMaintenanceStatus(R){return this.registrationService.getActorStatus().pipe((0,a.H)(E=>(0,S.p)([this.request.get("underhall",{nodIdLista:R}).pipe((0,o.T)(h=>h.filter(g=>null!=g.Erbjudande\u00c4rendeRadId))),this.request.get(`session/arendekund/${E.localActorId}`).pipe((0,o.T)(h=>h.filter(g=>null!=g.Underh\u00e5llsErbjudande?.ErbjudandeEkonomiSerieSvarSenast&&0!=R.length&&g.Avser.length>0&&R[0]?.toString()==g.Avser[0]?.Id)))]).pipe((0,o.T)(h=>{let g={Result:h[0].map(l=>({ObjectAddress:l.ObjektAdress,Space:l.S\u00f6kv\u00e4g,Unit:"",Measure:l.\u00c5tg\u00e4rd,Performed:null!=l.Utf\u00f6rd?I()(l.Utf\u00f6rd).format("YYYY-MM-DD"):"",Planned:null!=l.Planerad?I()(l.Planerad).format("YYYY-MM-DD"):"",RentalRaising:l.Hyresh\u00f6jande,HasBeenOrdered:null!=l.Best\u00e4lld,MeasureTypeCode:null==l.Modell?l.Orsak:l.Modell,OrderedDate:l.Best\u00e4lld,ObjectNo:l.ObjektNummer,Interval:l.InterVallV\u00e4rde,Intervaltype:l.IntervallEnhetBeteckning,DK_UhAtgardId:null==l.Nod\u00c5tg\u00e4rdId?0:l.Nod\u00c5tg\u00e4rdId,DiscountToday:l.Rabatt,DiscountTypeToday:1==l.\u00c5rsrabatt?"\xe5r":"m\xe5n",ResidualValue:l.RestV\u00e4rde,OfferedCost:l.RestV\u00e4rde,Note:l.Notering,UnitNo:"",CanBeOrdered:!1,Cost:l.FaktiskKostnad,MeasureType:l.ModellInterVallEnhetReferensnamn,OfferAccepted:l.ErbjudandeAccepterad,ClientOrderedDate:l.ErbjudandeAccepterad,BatchNo:0}
1))},d={};return h[1].forEach(l=>{let y=l.Rader.map(u=>({ObjectAddress:l.Adress?.Gatuadress??u.Huvudentitet,Space:u.Avser?.Visningstext,Unit:"",Measure:u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlassTyp?.Beteckning,Performed:null!=u.\u00c5tg\u00e4rd?.Utf\u00f6rd?I()(u.\u00c5tg\u00e4rd.Utf\u00f6rd).format("YYYY-MM-DD"):"",Planned:null!=u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod.Planerad?I()(u.\u00c5tg\u00e4rd.\u00c5tg\u00e4rdNod.Planerad).format("YYYY-MM-DD"):"",RentalRaising:!1,HasBeenOrdered:!(null==u.\u00c5tg\u00e4rd?.Best\u00e4lld&&null==u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod?.Accepterad),MeasureTypeCode:"HLU",OrderedDate:u.\u00c5tg\u00e4rd.Best\u00e4lld,ObjectNo:null!=l.Avser?l.Avser[0]?.Nummer:"",Interval:u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlass?.IntervallV\u00e4rde,Intervaltype:u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlass?.IntervallEnhet?.Beteckning,AgreementNo:l.Avtal?.Nummer,DK_UhAtgardId:u.Id,DiscountToday:u.PrisModell?.Rabatt,DiscountTypeToday:null!=l.Underh\u00e5llsErbjudande?.\u00c5rsrabatt&&1==l.Underh\u00e5llsErbjudande?.\u00c5rsrabatt?"\xe5r":"m\xe5n",ResidualValue:u.PrisModell?.RestV\u00e4rde,Note:l.Nummer,UnitNo:u.Avser?.Id,CanBeOrdered:!(I()(l.Underh\u00e5llsErbjudande?.ErbjudandeEkonomiSerieSvarSenast).format("YYYY-MM-DD")<I()().format("YYYY-MM-DD")),OfferedCost:u.PrisModell?.RestV\u00e4rde,OfferedDiscount:u.PrisModell?.Rabatt,Cost:u.PrisModell?.Totalpris,MeasureType:u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNodKlassTyp?.Beteckning,AnswerAtLatest:l.Underh\u00e5llsErbjudande?.ErbjudandeEkonomiSerieSvarSenast,ClientOrderedDate:u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod?.Accepterad,BatchNo:null==u.\u00c5tg\u00e4rd?.\u00c5tg\u00e4rdNod?.Id?0:u.\u00c5tg\u00e4rd.\u00c5tg\u00e4rdNod.Id}));d.Result=d.Result?.length>0?d.Result.concat(y.filter(u=>null!=u.OfferedDiscount||null!=u.Cost)):y.filter(u=>null!=u.OfferedDiscount||null!=u.Cost)}),null!=d.Result&&(d.Result=d.Result.reduce((l,y)=>{let u={BatchNo:y.BatchNo,HasBeenOrdered:y.HasBeenOrdered},w=l.find(L=>L.key.BatchNo===u.BatchNo&&L.key.HasBeenOrdered===u.HasBeenOrdered);return w?w.values.push(y):l.push({key:u,values:[y]}),l},[]).map(l=>l.values.sort((y,u)=>y.AnswerAtLatest>u.AnswerAtLatest?-1:y.AnswerAtLatest<u.AnswerAtLatest?1:u.DK_UhAtgardId-y.DK_UhAtgardId)[0])),null!=d.Result&&d.Result.length>0?(null!=g.Result&&(d.Result=d.Result.concat(g.Result.filter(l=>!d.Result.map(y=>y.BatchNo).includes(l.DK_UhAtgardId)))),d):g}))))}postMaintenanceOrder(R){return this.request.postOnce("session/arende/sparaerbjudanden",{Rader:R})}groupBy(R,E){return R.reduce((h,g)=>{var d=E(g);return h[d]=h[d]||[],h[d].push(g),h},[])}static{this.\u0275fac=function(E){return new(E||b)(f.KVO(e.B),f.KVO($.f))}}static{this.\u0275prov=f.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}}return b})()},2899:(X,G,i)=>{i.d(G,{D:()=>ae,b:()=>V});var a=i(1360),o=i(9417),D=i(5263),I=i(7356),S=i(1585),f=i(7586),$=i(8709),P=i(6090),b=i(44),C=i(8018),R=i(5242),E=i(2043),h=i(7342),g=i(5565),d=i(5661),l=i(9213),y=i(8834),u=i(4506),w=i(5596),L=i(100),N=i(2928),Q=i(3069),se=i(2881),T=i(1843);const ee=_=>({invalidChars:_});function A(_,U){if(1&_){const p=a.RV6();a.j41(0,"div",4)(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(){a.eBV(p);const M=a.XpG();return a.Njj(M.removeAddress(M.tillfalligAddress))}),a.j41(6,"mat-icon",7),a.EFF(7,"delete_forever"),a.k0s()()()}if(2&_){const p=a.XpG();a.R7$(2),a.SpI(" ",p.tillfalligAddress.Gatuadress1," "),a.R7$(),a.FS9("eventLabel",a.bMT(4,3,"DELETE")),a.FS9("eventCategory",a.bMT(5,5,"TEMPADDR"))}}function W(_,U){1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INPUTREQUIRED")," "))}function q(_,U){if(1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_){let p;const k=a.XpG(2);a.R7$(),a.SpI(" ",a.i5U(2,1,"INVALIDCHARACTERS",a.eq3(4,ee,null==(p=k.f.address.getError("allowedCharacters"))?null:p.invalidChars))," ")}}function re(_,U){1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INPUTREQUIRED")," "))}function ie(_,U){if(1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_){let p;const k=a.XpG(2);
1a.R7$(),a.SpI(" ",a.i5U(2,1,"INVALIDCHARACTERS",a.eq3(4,ee,null==(p=k.f.postalCode.getError("allowedCharacters"))?null:p.invalidChars))," ")}}function oe(_,U){1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INPUTREQUIRED")," "))}function le(_,U){1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INCORRECTONLYLETTERS")," "))}function te(_,U){if(1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_){let p;const k=a.XpG(2);a.R7$(),a.SpI(" ",a.i5U(2,1,"INVALIDCHARACTERS",a.eq3(4,ee,null==(p=k.f.postalAddress.getError("allowedCharacters"))?null:p.invalidChars))," ")}}function H(_,U){1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INVALIDDATE")," "))}function ne(_,U){1&_&&(a.j41(0,"mat-error"),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&_&&(a.R7$(),a.SpI(" ",a.bMT(2,1,"INVALIDDATE")," "))}function ce(_,U){if(1&_){const p=a.RV6();a.j41(0,"form",8)(1,"mat-form-field",9),a.nrm(2,"input",10),a.nI1(3,"translate"),a.DNE(4,W,3,3,"mat-error",11)(5,q,3,6,"mat-error",11),a.k0s(),a.j41(6,"mat-form-field",9),a.nrm(7,"input",12),a.nI1(8,"translate"),a.DNE(9,re,3,3,"mat-error",11)(10,ie,3,6,"mat-error",11),a.k0s(),a.j41(11,"mat-form-field",9),a.nrm(12,"input",13),a.nI1(13,"translate"),a.DNE(14,oe,3,3,"mat-error",11)(15,le,3,3,"mat-error",11)(16,te,3,6,"mat-error",11),a.k0s(),a.nrm(17,"taiga-country-select",14),a.j41(18,"mat-form-field",9)(19,"input",15),a.nI1(20,"translate"),a.bIt("dateChange",function(M){a.eBV(p);const J=a.XpG();return a.Njj(J.setEndDate(M.value))}),a.k0s(),a.nrm(21,"mat-datepicker-toggle",16)(22,"mat-datepicker",17,0),a.DNE(24,H,3,3,"mat-error",11),a.k0s(),a.j41(25,"mat-form-field",9)(26,"input",18),a.nI1(27,"translate"),a.bIt("dateChange",function(M){a.eBV(p);const J=a.XpG();return a.Njj(J.setStartdate(M.value))}),a.k0s(),a.nrm(28,"mat-datepicker-toggle",16)(29,"mat-datepicker",17,1),a.DNE(31,ne,3,3,"mat-error",11),a.k0s(),a.j41(32,"mat-card-actions",19)(33,"button",20),a.nI1(34,"translate"),a.nI1(35,"translate"),a.bIt("click",function(){a.eBV(p);const M=a.XpG();return a.Njj(M.onSubmit())}),a.EFF(36),a.nI1(37,"translate"),a.k0s()()()}if(2&_){const p=a.sdS(23),k=a.sdS(30),M=a.XpG();a.Y8G("formGroup",M.addressForm),a.R7$(2),a.FS9("placeholder",a.bMT(3,27,"ADDRESS")),a.R7$(2),a.Y8G("ngIf",M.f.address.invalid&&M.f.address.errors.required),a.R7$(),a.Y8G("ngIf",M.f.address.hasError("allowedCharacters")),a.R7$(2),a.FS9("placeholder",a.bMT(8,29,"POSTALCODE")),a.R7$(2),a.Y8G("ngIf",M.f.postalCode.invalid&&M.f.postalCode.errors.required),a.R7$(),a.Y8G("ngIf",M.f.postalCode.hasError("allowedCharacters")),a.R7$(2),a.FS9("placeholder",a.bMT(13,31,"POSTALADDRESS")),a.R7$(2),a.Y8G("ngIf",M.f.postalAddress.invalid&&M.f.postalAddress.errors.required),a.R7$(),a.Y8G("ngIf",M.f.postalAddress.invalid&&M.f.postalAddress.errors.pattern),a.R7$(),a.Y8G("ngIf",M.f.postalAddress.hasError("allowedCharacters")),a.R7$(),a.Y8G("useV2",!0)("selectedValue",M.tillfalligAddress.LandReferensnamn),a.R7$(2),a.FS9("placeholder",a.bMT(20,33,"DATEFROM")),a.Y8G("matDatepicker",p),a.R7$(2),a.Y8G("for",p),a.R7$(),a.Y8G("touchUi",M.mediaQueryService.isMobile()),a.R7$(2),a.Y8G("ngIf",M.f.startDate.invalid&&(M.f.startDate.touched||M.f.startDate.dirty)),a.R7$(2),a.FS9("placeholder",a.bMT(27,35,"DATETO")),a.Y8G("matDatepicker",k),a.R7$(2),a.Y8G("for",k),a.R7$(),a.Y8G("touchUi",M.mediaQueryService.isMobile()),a.R7$(2),a.Y8G("ngIf",M.f.endDate.invali
1d&&(M.f.endDate.touched||M.f.endDate.dirty)),a.R7$(2),a.FS9("eventLabel",a.bMT(34,37,"SAVE")),a.FS9("eventCategory",a.bMT(35,39,"TEMPADDR")),a.Y8G("disabled",!M.addressForm.dirty||M.addressForm.invalid&&(M.addressForm.dirty||M.addressForm.touched)),a.R7$(3),a.SpI(" ",a.bMT(37,41,"SAVE")," ")}}const B=f,ae={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMM YYYY",dateA11yLabel:"YYYY-MM-DD",monthYearA11yLabel:"MMMM YYYY"}};let V=(()=>{class _{set tillfalligAddress(p){this.tillfalligAddressEntity=p,this.setControlValues(p)}get tillfalligAddress(){return this.tillfalligAddressEntity}get f(){return this.addressForm.controls}constructor(p,k,M,J,de,z,me){this.translate=p,this.temporaryAddressService=k,this.adapter=M,this.mediaQueryService=J,this.fb=de,this.snackBarService=z,this.dialog=me,this.adressSaved=new a.bkB,this.addressRemoved=new a.bkB,this.adapter.setLocale("sv")}setControlValues(p){p&&(p.Fom||(p.Fom=new Date),this.addressForm=this.fb.group({address:[p.Gatuadress1,[o.k0.required,(0,S.f)()]],postalCode:[p.Postnummer,[o.k0.required,(0,S.f)()]],postalAddress:[p.Postort,[o.k0.required,(0,S.f)()]],country:[p.LandReferensnamn,[o.k0.required,(0,S.f)()]],startDate:[B(p.Fom),[o.k0.required]],endDate:[p.Tom?B(p.Tom):null,[o.k0.required]]}))}onSubmit(){if(this.addressForm.valid){const p={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(p).subscribe(()=>{this.snackBarService.success(this.translate.instant("TEMPADDRSAVED")),this.addressForm.markAsPristine(),this.adressSaved.emit(!0)})}}setStartdate(p){B(this.addressForm.controls.startDate.value).valueOf()>=B(p).valueOf()&&this.addressForm.controls.startDate.setValue(B(p).subtract(1,"days"))}setEndDate(p){B(this.addressForm.controls.endDate.value).valueOf()<=B(p).valueOf()&&this.addressForm.controls.endDate.setValue(B(p).add(1,"days"))}removeAddress(p){p.AdressId?this.dialog.open($.w,{data:{heading:null,text:this.translate.instant("CONFIRMREMOVEADDRESS"),dialogChoices:P.$.YesNo},scrollStrategy:new b.N,ariaLabel:this.translate.instant("CONFIRMREMOVEADDRESS")}).afterClosed().subscribe(M=>{"yes"===M&&(this.temporaryAddressService.removeTemporaryAddress(p.AdressId).subscribe(),this.addressRemoved.emit(p))}):this.addressRemoved.emit(p)}static{this.\u0275fac=function(k){return new(k||_)(a.rXU(C.c$),a.rXU(R.j),a.rXU(I.D),a.rXU(E.M),a.rXU(o.ze),a.rXU(h.z),a.rXU(g.j))}}static{this.\u0275cmp=a.VBU({type:_,selectors:[["taiga-temporary-address"]],inputs:{tillfalligAddress:"tillfalligAddress"},outputs:{adressSaved:"adressSaved",addressRemoved:"addressRemoved"},standalone:!1,features:[a.Jv_([{provide:I.D,useClass:D.QH,deps:[I.M]},{provide:I.a,useValue:ae}])],decls:6,vars:2,consts:[["pickerStartDate",""],["pickerEndDate",""],["class","title",4,"ngIf"],["class","form-container",3,"formGroup",4,"ngIf"],[1,"title"],[1,"overflow-ellipsis"],["color","accent","mat-icon-button","","aria-label","remove","taigaEventTracker","","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_TaBort",3,"click","eventLabel","eventCategory"],[1,"icon-display"],[1,"form-container",3,"formGroup"],[1,"form-field"],["required","","matInput","","formControlName","address","maxlength","128","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Gatuadress","autocomplete","street-address",3,"placeholder"],[4,"ngIf"],["required","","matInput","","formControlName","postalCode","maxlength","64","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Postnummer","autocomplete","postal-code",3,"placeholder"],["required","","matInput","","formControlName","postalAddress","maxlength","64","pattern","[a-\xf6A-\xd6 ]*","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Postort","autocomplete","address-level2",3,"placeholder"],["controlName","country","required","true","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Land",3,"useV2","selectedValue"],["required","","matInput","","formControlName","startDate","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_From","autocomplete","off",3,"dateChange","matDatepicker","placeholder"],["matSuffix","",3,"for"],[3,"touchUi"],["required","","matInput","","formControlName","endDate","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Tom","autocomplete","off",3,"dateChange","matDatepicker","placeholder"],["align","end"],["mat-raised-button","","color","primary","taigaEventTracker","","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Spara",3,"click","disabled","eventLabel","eventCategory"]],template:function(k,M){1&k&&(a.j41(0,"mat-card")(1,"mat-card-title"),a.DNE(2,A,8,7,"div",2),a.k0s(),a.nrm(3,"mat-card-subtitle"),a.j41(4,"mat-card-content"),a.DNE(5,ce,38,43,"form",3),a.k0s()()),2&k&&(a.R7$(2),a.Y8G("ngIf",M.tillfalligAddress),a.R7$(3),a.Y8G("ngIf",M.tillfalligAddress))},dependencies:[o.qT,o.me,o.BC,o.cb,o.YS,o.tU,o.R_,o.j4,o.JD,d.m,l.An,y.$z,u.M,w.RN,w.YY,w.m2,w.Lc,w.dh,L.fg,N.j,N.b,N.g,Q.Vh,Q.bZ,Q.bU,se.bT,T.u,C.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 _})()},3723:(X,G,i)=>{i.d(G,{O:()=>P});var a=i(5565),o=i(1360),D=i(2881),I=i(8834),S=i(6112),f=i(8018);function e(b,C){1&b&&(o.j41(0,"h2"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&b&&(o.R7$(),o.JRh(o.bMT(2,1,"CHOOSECONTRACT")))}function $(b,C){if(1&b){const R=o.RV6();o.j41(0,"div")(1,"a",5),o.bIt("click",function(){const h=o.eBV(R).$implicit,g=o.XpG();return o.Njj(g.selectBookingContract(h))}),o.EFF(2),o.k0s()()}if(2&b){const R=C.$implicit;o.R7$(),o.Y8G("href",R.bookingLink,o.B4B),o.R7$(),o.Lme(" ",R.number," ",R.address," ")}}let P=(()=>{class b{constructor(R,E){this.dialogRef=R,this.data=E}selectBookingContract(R){this.dialogRef.close(R)}static{this.\u0275fac=function(E){return new(E||b)(o.rXU(a.m),o.rXU(a.e))}}static{this.\u0275cmp=o.VBU({type:b,selectors:[["taiga-laundry-booking-dialog"]],standalone:!1,decls:6,vars:5,consts:[[4,"ngIf"],[2,"margin-bottom","15px"],[3,"markdown"],[1,"booking-buttons-container"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary","target","_blank","data-mom-test","MyPages_LaundryBooking_ExternalWinndowButton",1,"booking-button",3,"click","href"]],template:function(E,h){1&E&&(o.DNE(0,e,3,3,"h2",0),o.j41(1,"div",1),o.nrm(2,"taiga-markdown",2),o.nI1(3,"translate"),o.k0s(),o.j41(4,"div",3),o.DNE(5,$,3,3,"div",4),o.k0s()),2&E&&(o.Y8G("ngIf",(null==h.data||null==h.data.bookingContracts?null:h.data.bookingContracts.length)>1),o.R7$(2),o.Y8G("markdown",o.bMT(3,3,"OPENBOOKLAUNDRYHELP")),o.R7$(3),o.Y8G("ngForOf",null==h.data?null:h.data.bookingContracts))},dependencies:[D.Sq,D.bT,I.It,S.N,f.D9],styles:[".booking-button[_ngcontent-%COMP%]{margin-top:8px;height:auto;min-height:36px}"]})}}return b})()}
1,5242:(X,G,i)=>{i.d(G,{j:()=>D});var a=i(1360),o=i(5850);let D=(()=>{class I{constructor(f){this.request=f,this.urlGet="session/kund/tillfalligaadresser/",this.urlSet="session/kund/sparatillfaligadress/"}getTemporaryAddress(){return this.request.get(this.urlGet,{VisaAvslutade:!1})}setTemporaryAddress(f){return this.request.postOnce(this.urlSet,{Id:f.AdressId,Attention:f.Attention,CareOf:f.CareOf,Fom:f.Fom,Gatuadress1:f.Gatuadress1,Gatuadress2:f.Gatuadress2,LandreferensNamn:f.LandReferensnamn,Namn:f.Namn,Postnummer:f.Postnummer,Postort:f.Postort,Tom:f.Tom})}removeTemporaryAddress(f){return this.request.delete(`v2/session/address/${f}`)}static{this.\u0275fac=function(e){return new(e||I)(a.KVO(o.B))}}static{this.\u0275prov=a.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},5263:(X,G,i)=>{var a;i.d(G,{QH:()=>P});var o=i(1360),D=i(7356),I=i(7586);const S=I||a||(a=i.t(I,2)),f=new o.nKC("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function e(){return{useUtc:!1}}});function $(h,g){const d=Array(h);for(let l=0;l<h;l++)d[l]=g(l);return d}let P=(()=>{class h extends D.D{_options=(0,o.WQX)(f,{optional:!0});_localeData;constructor(){super();const d=(0,o.WQX)(D.M,{optional:!0});this.setLocale(d||S.locale())}setLocale(d){super.setLocale(d);let l=S.localeData(d);this._localeData={firstDayOfWeek:l.firstDayOfWeek(),longMonths:l.months(),shortMonths:l.monthsShort(),dates:$(31,y=>this.createDate(2017,0,y+1).format("D")),longDaysOfWeek:l.weekdays(),shortDaysOfWeek:l.weekdaysShort(),narrowDaysOfWeek:l.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,l,y){const u=this._createMoment({year:d,month:l,date:y}).locale(this.locale);return u.isValid(),u}today(){return this._createMoment().locale(this.locale)}parse(d,l){return d&&"string"==typeof d?this._createMoment(d,l,this.locale):d?this._createMoment(d).locale(this.locale):null}format(d,l){return d=this.clone(d),this.isValid(d),d.format(l)}addCalendarYears(d,l){return this.clone(d).add({years:l})}addCalendarMonths(d,l){return this.clone(d).add({months:l})}addCalendarDays(d,l){return this.clone(d).add({days:l})}toIso8601(d){return this.clone(d).format()}deserialize(d){let l;if(d instanceof Date)l=this._createMoment(d).locale(this.locale);else if(this.isDateInstance(d))return this.clone(d);if("string"==typeof d){if(!d)return null;l=this._createMoment(d,S.ISO_8601).locale(this.locale)}return l&&this.isValid(l)?this._createMoment(l).locale(this.locale):super.deserialize(d)}isDateInstance(d){return S.isMoment(d)}isValid(d){return this.clone(d).isValid()}invalid(){return S.invalid()}setTime(d,l,y,u){return this.clone(d).set({hours:l,minutes:y,seconds:u,milliseconds:0})}getHours(d){return d.hours()}getMinutes(d){return d.minutes()}getSeconds(d){return d.seconds()}parseTime(d,l){return this.parse(d,l)}addSeconds(d,l){return this.clone(d).add({seconds:l})}_createMoment(d,l,y){const{strict:u,useUtc:w}=this._options||{};return w?S.utc(d,l,y,u):S(d,l,y,u)}static \u0275fac=function(l){return new(l||h)};static \u0275prov=o.jDH({token:h,factory:h.\u0275fac})}return h})()},5661:(X,G,i)=>{i.d(G,{m:()=>h});var a=i(9417),o=i(1360),D=i(5850);let I=(()=>{class g{constructor(l){this.request=l}getCountries(){return this.request.get("land")}getCountriesV2(){return this.request.get("v2/shared/addresses/countries")}static{this.\u0275fac=function(y){return new(y||g)(o.KVO(D.B))}}static{this.\u0275prov=o.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})();var S=i(2881),f=i(2928),e=i(5380),$=i(1396),P=i(8018);function b(g,d){if(1&g&&(o.j41(0,"mat-option",3),o.EFF(1),o.k0s()),2&g){const l=d.$implicit;o.Y8G("value",l.ReferensNamn),o.R7$(),o.SpI(" ",l.Beteckning," ")}}
1function C(g,d){if(1&g&&(o.j41(0,"mat-form-field")(1,"mat-label"),o.EFF(2),o.nI1(3,"translate"),o.k0s(),o.j41(4,"mat-select",1),o.DNE(5,b,2,2,"mat-option",2),o.k0s(),o.j41(6,"mat-error"),o.EFF(7),o.nI1(8,"translate"),o.k0s()()),2&g){const l=o.XpG();o.R7$(2),o.JRh(o.bMT(3,5,"COUNTRY")),o.R7$(2),o.FS9("required",l.required),o.FS9("formControlName",l.controlName),o.R7$(),o.Y8G("ngForOf",l.countries),o.R7$(2),o.SpI(" ",o.bMT(8,7,"INPUTREQUIRED")," ")}}function R(g,d){if(1&g&&(o.j41(0,"mat-option",3),o.EFF(1),o.k0s()),2&g){const l=d.$implicit;o.Y8G("value",l.id),o.R7$(),o.SpI(" ",l.displayName," ")}}function E(g,d){if(1&g&&(o.j41(0,"mat-form-field")(1,"mat-label"),o.EFF(2),o.nI1(3,"translate"),o.k0s(),o.j41(4,"mat-select",4),o.DNE(5,R,2,2,"mat-option",2),o.k0s(),o.j41(6,"mat-error"),o.EFF(7),o.nI1(8,"translate"),o.k0s()()),2&g){const l=o.XpG();o.R7$(2),o.JRh(o.bMT(3,5,"COUNTRY")),o.R7$(2),o.FS9("required",l.required),o.FS9("formControlName",l.controlName),o.R7$(),o.Y8G("ngForOf",null==l.countriesV2?null:l.countriesV2.items),o.R7$(2),o.SpI(" ",o.bMT(8,7,"INPUTREQUIRED")," ")}}let h=(()=>{class g{constructor(l){this.countryService=l,this.required=!1}ngOnInit(){this.useV2?this.countryService.getCountriesV2().subscribe(l=>{this.countriesV2=l}):this.countryService.getCountries().subscribe(l=>{this.countries=l})}static{this.\u0275fac=function(y){return new(y||g)(o.rXU(I))}}static{this.\u0275cmp=o.VBU({type:g,selectors:[["taiga-country-select"]],inputs:{controlName:"controlName",required:"required",selectedValue:"selectedValue",useV2:"useV2"},standalone:!1,features:[o.Jv_([],[{provide:a.ZU,useExisting:a.j4}])],decls:2,vars:2,consts:[[4,"ngIf"],[3,"required","formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["autocomplete","country-name",3,"required","formControlName"]],template:function(y,u){1&y&&o.DNE(0,C,9,9,"mat-form-field",0)(1,E,9,9,"mat-form-field",0),2&y&&(o.Y8G("ngIf",!u.useV2),o.R7$(),o.Y8G("ngIf",u.useV2&&u.countriesV2))},dependencies:[S.Sq,S.bT,a.BC,a.YS,a.JD,f.j,f.M,f.b,e.g,$.M,P.D9],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return g})()},6503:(X,G,i)=>{i.r(G),i.d(G,{MyPagesModule:()=>pn});var a=i(5207),o=i(1336),D=i(7468),I=i(7673),S=i(274),f=i(9437),e=i(1360),$=i(793),P=i(6380),b=i(7342),C=i(2155),R=i(666);let E=(()=>{class n{constructor(t,s,r,c,v){this.myInfoService=t,this.errorService=s,this.userMessageService=r,this.router=c,this.clientConfigurationService=v}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,S.H)(t=>(0,D.p)(t?.graphQL?.enabled?[this.myInfoService.fetchActorsCommunications(),(0,I.of)(null)]:[(0,I.of)(null),this.myInfoService.getNameAndContactInfo()])),(0,f.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)(e.KVO($.k),e.KVO(P.I),e.KVO(b.z),e.KVO(C.Ix),e.KVO(R.t))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var h=i(5242);let g=(()=>{class n{constructor(t,s,r,c){this.temporaryAddressService=t,this.errorService=s,this.userMessageService=r,this.router=c}resolve(){return this.temporaryAddressService.getTemporaryAddress().pipe((0,f.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)(e.KVO(h.j),e.KVO(P.I),e.KVO(b.z),e.KVO(C.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var d=i(7402);let l=(()=>{class n{constructor(t,s,r,c,v){this.messageService=t,this.errorService=s,this.userMessageService=r,this.router=c,this.clientConfigurationService=v}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,S.H)(t=>t?.graphQL?.enabled?this.messageService.fetchMessages().pipe((0,f.W)(s=>{const r=this.errorService.parseError(s);return this.userMessageService.errorWithHeader(r.message,"",r.displayErrorReportNumber?r.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)})):this.messageService.getMessages().pipe((0,f.W)(s=>{const r=this.errorService.parseError(s);return this.userMessageService.errorWithHeader(r.message,"",r.displayErrorReportNumber?r.errorReportNumber:""),this.router.navigateByUrl("/"),(0,I.of)(null)}))))}static{this.\u0275fac=function(s){return new(s||n)(e.KVO(d.G),e.KVO(P.I),e.KVO(b.z),e.KVO(C.Ix),e.KVO(R.t))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var y=i(7052),u=i(5850);let w=(()=>{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)(e.KVO(u.B))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var L=i(2043),N=i(8018),Q=i(9213),se=i(4506),T=i(5596),ee=i(2765),A=i(2881),W=i(1843),q=i(3013);function re(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",8),e.nI1(1,"translate"),e.bIt("change",function(r){const c=e.eBV(t).$implicit,v=e.XpG().$implicit,x=e.XpG();return e.Njj(x.change(r,v.id,x.channelLocalIds[c.type]))}),e.EFF(2),e.k0s()}if(2&n){const t=m.$implicit,s=e.XpG().$implicit,r=e.XpG();e.AVh("checkbox-mobile",r.mediaQueryService.isMobile()),e.FCK("eventLabel","",s.displayName," ",r.channelDisplayNames[t.type],""),e.FS9("eventCategory",e.bMT(1,9,"CONTACTBYTITLE")),e.Y8G("checked",t.subscribed)("disabled",!t.subscribed&&(r.disableEmail&&"email"===t.type.toLowerCase()||r.disablePhone&&"text"===t.type.toLowerCase())),e.R7$(2),e.SpI(" ",r.channelDisplayNames[t.type]," ")}}function ie(n,m){if(1&n&&(e.j41(0,"mat-card",6)(1,"mat-card-content")(2,"h2"),e.EFF(3),e.k0s(),e.DNE(4,re,3,11,"mat-checkbox",7),e.k0s()()),2&n){const t=m.$implicit;e.R7$(3),e.JRh(t.displayName),e.R7$(),e.Y8G("ngForOf",t.channels)}}let oe=(()=>{class n{constructor(t,s,r,c){this.contactByService=t,this.mediaQueryService=s,this.route=r,this.translate=c,this.arr=[],this.myInfoLink=`${y.i.MY_INFO}`}ngOnInit(){this.route.data.subscribe(t=>{let s,r;
1t.data[1]?(s=t.data[1].Kontaktuppgifter.find(c=>"epost.standard"===c.KontaktuppgiftsTyp.Systemnamn)?.V\u00e4rde,r=t.data[1].Kontaktuppgifter.find(c=>"telefon.mobil"===c.KontaktuppgiftsTyp.Systemnamn)?.V\u00e4rde):(s=t.data[2]?.data?.actors?.nodes[0]?.communications?.nodes?.find(c=>"email"===c.type.guid)?.value,r=t.data[2]?.data?.actors?.nodes[0]?.communications?.nodes?.find(c=>"mobile"===c.type.guid)?.value),s?this.emailAddress=s:(this.emailAddress=this.translate.instant("MISSING"),this.disableEmail=!0),r?this.phoneNumber=r:(this.phoneNumber=this.translate.instant("MISSING"),this.disablePhone=!0),this.notificationsFunctionsListItem=t.data[0].items.filter(c=>c.channels.some(v=>v.changeable)).map(c=>({...c,channels:c.channels.filter(v=>v.changeable)})),this.channelDisplayNames=t.data[0]?.channelTypes?.reduce((c,v)=>(c[v.id]=v.displayName,c),{}),this.channelLocalIds=t.data[0]?.channelTypes?.reduce((c,v)=>(c[v.id]=v.localId,c),{})})}change(t,s,r){this.contactByService.setContactBy([{Aktiv:t.checked,NotiferingFunktionTypId:s,NotiferingKanalTypId:r}]).subscribe()}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(w),e.rXU(L.M),e.rXU(C.nX),e.rXU(N.c$))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-contact-by"]],standalone:!1,decls:25,vars:21,consts:[[3,"text","subText"],[1,"contact-info"],["mat-icon-button","","aria-label","edit","data-mom-test","MinaSidor_Konto_Kontaktv\xe4gar_\xc4ndraEpostadress",3,"routerLink"],["matListIcon","","color","primary"],["mat-icon-button","","aria-label","edit","data-mom-test","MinaSidor_Konto_Kontaktv\xe4gar_\xc4ndraMobilNummer",3,"routerLink"],["class","checkbox-card",4,"ngFor","ngForOf"],[1,"checkbox-card"],["color","primary","class","checkbox","taigaEventTracker","","data-mom-test","MinaSidor_Konto_Kontaktv\xe4gar_Kryssruta",3,"checkbox-mobile","checked","disabled","eventLabel","eventCategory","change",4,"ngFor","ngForOf"],["color","primary","taigaEventTracker","","data-mom-test","MinaSidor_Konto_Kontaktv\xe4gar_Kryssruta",1,"checkbox",3,"change","checked","disabled","eventLabel","eventCategory"]],template:function(s,r){1&s&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.nI1(3,"translate"),e.j41(4,"mat-card")(5,"mat-card-content")(6,"div",1)(7,"b"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"div"),e.EFF(11),e.j41(12,"button",2)(13,"mat-icon",3),e.EFF(14,"edit"),e.k0s()()()(),e.j41(15,"div",1)(16,"b"),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"div"),e.EFF(20),e.j41(21,"button",4)(22,"mat-icon",3),e.EFF(23,"edit"),e.k0s()()()()()(),e.DNE(24,ie,5,2,"mat-card",5),e.k0s()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,13,"CONTACTBYTITLE"))("subText",e.bMT(3,15,"CONTACTBYHELP")),e.R7$(7),e.JRh(e.bMT(9,17,"EMAILADDRESS")),e.R7$(3),e.JRh(r.emailAddress),e.R7$(),e.FS9("routerLink",r.myInfoLink),e.R7$(5),e.JRh(e.bMT(18,19,"MOBILEPHONENUMBER")),e.R7$(3),e.JRh(r.phoneNumber),e.R7$(),e.FS9("routerLink",r.myInfoLink),e.R7$(3),e.Y8G("ngForOf",r.notificationsFunctionsListItem))},dependencies:[Q.An,se.M,T.RN,T.m2,ee.So,A.Sq,W.u,q.o,a.Wk,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.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})(),le=(()=>{class n{constructor(t,s,r,c,v,x){this.contactByService=t,this.myInfoService=s,this.errorService=r,this.userMessageService=c,this.router=v,this.clientConfigurationService=x}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,S.H)(t=>(0,D.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,f.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)(e.KVO(w),e.KVO($.k),e.KVO(P.I),e.KVO(b.z),e.KVO(C.Ix),e.KVO(R.t))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var te=i(1630),H=i(6977),ne=i(1413),ce=i(4572),B=i(44),ae=i(8056),V=i(8834),_=i(6112);let U=(()=>{class n{constructor(){this.coApplicants=`${y.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"],[1,"card-actions"],["mat-raised-button","","color","primary","data-mom-test","MinaSidor_MittS\xf6kande_Meds\xf6kande_NyMeds\xf6kandeSvara",3,"routerLink"]],template:function(s,r){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.
1EFF(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",r.coApplicants),e.R7$(),e.JRh(e.bMT(7,5,"ANWSER")))},dependencies:[a.Wk,V.$z,T.RN,T.YY,T.m2,_.N,N.D9],styles:[".card-actions[_ngcontent-%COMP%]{margin:0;padding:0}.co-applicant-message-card[_ngcontent-%COMP%]{margin:10px 0}"]})}}return n})();var p=i(3723),k=i(9015),M=i(6844),J=i(8875),de=i(7033),z=i(3527),me=i(913),be=i(4069),Oe=i(3687),Se=i(1715),ge=i(5565),Ne=i(4959),Ae=i(293),ke=i(1517),fe=i(3718);function De(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card-actions",4)(1,"button",5),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.messageClick(r.notifyMessage.NotifieringId))}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.FS9("eventLabel",e.bMT(2,3,"READMORE")),e.FS9("eventCategory",t.category),e.R7$(2),e.JRh(e.bMT(4,5,"READMORE"))}}function Pe(n,m){if(1&n&&(e.j41(0,"mat-card",1)(1,"div")(2,"mat-card-title"),e.EFF(3),e.k0s(),e.j41(4,"mat-card-subtitle"),e.EFF(5),e.k0s(),e.j41(6,"mat-card-content"),e.nrm(7,"div",2),e.k0s(),e.DNE(8,De,5,7,"mat-card-actions",3),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),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.Y8G("ngIf",t.isTruncated)}}function Fe(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card-actions",4)(1,"button",5),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.messageClick(r.notifyMessageGraphQL.id))}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.FS9("eventLabel",e.bMT(2,3,"READMORE")),e.FS9("eventCategory",t.category),e.R7$(2),e.JRh(e.bMT(4,5,"READMORE"))}}function Le(n,m){if(1&n&&(e.j41(0,"mat-card",1)(1,"div")(2,"mat-card-title"),e.EFF(3),e.k0s(),e.j41(4,"mat-card-subtitle"),e.EFF(5),e.k0s(),e.j41(6,"mat-card-content"),e.nrm(7,"div",2),e.k0s(),e.DNE(8,Fe,5,7,"mat-card-actions",3),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),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.Y8G("ngIf",t.isTruncated)}}let _e=(()=>{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(c=>c.Notifierad&&c.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 r=document.createElement("div");r.innerHTML=this.messageBody,r.getElementsByClassName("button")[0]?.classList.add("mat-raised-button"),r.getElementsByClassName("primary")[0]?.classList.add("mat-primary"),this.messageBody=r.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")}messageClick(t){this.messageClicked.emit(t)}formatDate(t){return fe.Q.formatDate(t)}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(N.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:[["class","message-card",4,"ngIf"],[1,"message-card"],[3,"ngClass","innerHtml"],["class","card-actions",4,"ngIf"],[1,"card-actions"],["mat-raised-button","","color","primary","taigaEventTracker","",3,"click","eventLabel","eventCategory"]],template:function(s,r){1&s&&e.DNE(0,Pe,9,5,"mat-card",0)(1,Le,9,5,"mat-card",0),2&s&&(e.Y8G("ngIf",r.notifyMessage),e.R7$(),e.Y8G("ngIf",r.notifyMessageGraphQL))},dependencies:[V.$z,T.RN,T.YY,T.m2,T.Lc,T.dh,A.YU,A.bT,W.u,N.D9],styles:[".message-card{margin:10px 0}.truncate{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.card-actions{margin:0;padding:0}mat-card-title{word-break:break-word}.link,a{color:var(--palette-accent-500)}.message-card *{white-space:normal}\n"],encapsulation:2})}}return n})();function xe(n,m){if(1&n&&(e.j41(0,"div",5),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 Ge(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"taiga-message-card",6),e.bIt("messageClicked",function(r){e.eBV(t);const c=e.XpG(2);return e.Njj(c.navigate(r))}),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);
1e.R7$(),e.Y8G("isTruncated",!0)("isNews",s.isNews)("message",t)}}function $e(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",7)(1,"button",8),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.showAllMessages())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.FS9("eventLabel",e.bMT(2,3,"SHOWALL")),e.FS9("eventCategory",t.category),e.R7$(2),e.JRh(e.bMT(4,5,"SHOWALL"))}}function je(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",9)(1,"button",10),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.click("/messages"))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"SHOWALL")))}function we(n,m){if(1&n&&(e.qex(0),e.DNE(1,xe,3,3,"div",1)(2,Ge,2,3,"div",2)(3,$e,5,7,"div",3)(4,je,4,3,"div",4),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",0===(null==t.messages?null:t.messages.length)),e.R7$(),e.Y8G("ngForOf",t.getMessages()),e.R7$(),e.Y8G("ngIf",t.initialCount&&!t.allMessages&&t.messages&&t.messages.length>t.initialCount),e.R7$(),e.Y8G("ngIf",t.isInDialog())}}function Be(n,m){if(1&n&&(e.j41(0,"div",5),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 Ue(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"taiga-message-card",11),e.bIt("messageClicked",function(r){e.eBV(t);const c=e.XpG(2);return e.Njj(c.navigate(r))}),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 Ye(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",7)(1,"button",8),e.nI1(2,"translate"),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.showAllMessages())}),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.FS9("eventLabel",e.bMT(2,3,"SHOWALL")),e.FS9("eventCategory",t.category),e.R7$(2),e.JRh(e.bMT(4,5,"SHOWALL"))}}function Ve(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",9)(1,"button",10),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.click("/messages"))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"SHOWALL")))}function Qe(n,m){if(1&n&&(e.qex(0),e.DNE(1,Be,3,3,"div",1)(2,Ue,2,3,"div",2)(3,Ye,5,7,"div",3)(4,Ve,4,3,"div",4),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",0===(null==t.messagesGraphQL?null:t.messagesGraphQL.length)),e.R7$(),e.Y8G("ngForOf",t.getMessagesGraphQL()),e.R7$(),e.Y8G("ngIf",t.initialCount&&!t.allMessages&&t.messagesGraphQL&&t.messagesGraphQL.length>t.initialCount),e.R7$(),e.Y8G("ngIf",t.isInDialog())}}let ue=(()=>{class n{constructor(t,s,r,c,v){this.dialogRef=t,this.data=s,this.router=r,this.mediaQueryService=c,this.translate=v,this.messages=[],this.markedAsRead=new e.bkB,this.newsLink=`${y.i.NEWS}`,this.messagesLink=`${y.i.MESSAGES}`}ngOnInit(){this.category=this.translate.instant(this.isNews?"NEWS":"NOTIFICATIONS"),this.isInDialog()&&(this.isNews=!1,this.messages=this.data)}formatDate(t){return fe.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(ge.m),e.rXU(ge.e),e.rXU(C.Ix),e.rXU(L.M),e.rXU(N.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:[[4,"ngIf"],["class","no-messages",4,"ngIf"],[4,"ngFor","ngForOf"],["class","button-wrapper",4,"ngIf"],["class","show-all-button",4,"ngIf"],[1,"no-messages"],[3,"messageClicked","isTruncated","isNews","message"],[1,"button-wrapper"],["mat-stroked-button","","taigaEventTracker","",1,"accent-text",3,"click","eventLabel","eventCategory"],[1,"show-all-button"],["mat-raised-button","",3,"click"],[3,"messageClicked","isTruncated","isNews","messageGraphQL"]],template:function(s,r){1&s&&e.DNE(0,we,5,4,"ng-container",0)(1,Qe,5,4,"ng-container",0),2&s&&(e.Y8G("ngIf",r.messages),e.R7$(),e.Y8G("ngIf",r.messagesGraphQL))},dependencies:[V.$z,A.Sq,A.bT,W.u,_e,N.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})();function Ke(n,m){1&n&&e.eu8(0)}function Xe(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,Ke,1,0,"ng-container",16),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"COAPPLICANTREQUEST")),e.R7$(2),e.Y8G("ngComponentOutlet",t.marketCoApplicantsMessageComponent)}}function We(n,m){1&n&&e.eu8(0)}function He(n,m){if(1&n&&(e.j41(0,"div",17)(1,"h2",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,We,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 Je(n,m){1&n&&(e.j41(0,"div",20),e.nrm(1,"taiga-spinner",21),e.k0s())}function ze(n,m){if(1&n&&e.nrm(0,"taiga-messages-list",22),2&n){const t=e.XpG(3);e.Y8G("initialCount",t.mediaQueryService.isMobile()?1:3)("isNews",!0)("messages",t.news)("messagesGraphQL",t.newsGraphQL)}}function Ze(n,m){if(1&n&&(e.qex(0),e.j41(1,"h2",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Je,2,0,"div",18)(5,ze,1,4,"taiga-messages-list",19),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,3,"NEWS")),e.R7$(2),e.Y8G("ngIf",t.loadingMessages),e.R7$(),e.Y8G("ngIf",!t.loadingMessages)}}function qe(n,m){if(1&n&&(e.j41(0,"div",11),e.DNE(1,Xe,5,4,"div",12)(2,He,5,4,"div",13)(3,Ze,6,5,"ng-container",10),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.marketCoApplicantsMessageComponent),e.R7$(),e.Y8G("ngIf",t.signings),e.R7$(),e.Y8G("ngIf",t.newsVisible)}}function et(n,m){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"h2",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"taiga-quick-actions",23),e.bIt("featureClicked",function(r){e.eBV(t);const c=e.XpG();return e.Njj(c.featureClicked(r))}),e.k0s(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"QUICKACTIONS")),e.R7$(2),e.Y8G("initialCount",t.mediaQueryService.isMobile()?2:3)("featureList",t.featureList)}}let tt=(()=>{class n{constructor(t,s,r,c,v,x,j,Y,hn,fn,_n,Mn,vn,Cn,En,In){this.router=t,this.mediaQueryService=s,this.errorReportService=r,this.messagesService=c,this.featureService=v,this.signInService=x,this.laundryBookingService=j,this.registrationService=Y,this.styleService=hn,this.clientConfigurationService=fn,this.signingService=_n,this.rightSheet=Mn,this.errandService=vn,this.translate=Cn,this.dialog=En,this.chatService=In,this.startBackgroun
1d="",this.componentDestroyed=new ne.B,this.loadingMessages=!1,this.loadingSignings=!1,this.styleService.themeState.pipe((0,H.Q)(this.componentDestroyed)).subscribe(()=>{this.styleService.getStartBackground().subscribe(Re=>{this.startBackground=Re||"assets/img/hero_background_min.jpg"})})}ngOnInit(){this.firstName="",this.news=[],this.clientConfigurationService.getClientConfigurationFeatures().subscribe(t=>{this.features=t,this.features?.news?.enabled?(this.newsVisible=!0,this.getMessages(t?.graphQL?.enabled)):this.newsVisible=!1,(0,ce.z)({hasContract:this.registrationService.gethasContractState().pipe((0,H.Q)(this.componentDestroyed)),errandTypes:this.errandService.getErrandsTypes()}).subscribe(s=>{s.hasContract?this.laundryBookingService.getBookingObjectsObjectType().subscribe(r=>{this.featureList=this.featureService.getFeaturesForQuickActions({laundryBooking:r,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()}),this.getSignings()}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(r=>{let c=r?.data?.actors?.nodes[0]?.identityName;c=c&&c.length>0?" "+c:"",this.firstName=c}),this.messagesService.fetchMessages().pipe((0,f.W)(r=>{throw this.loadingMessages=!1,r})).subscribe(r=>{this.newsGraphQL=r.data.notificationExecutions.nodes.filter(c=>"news"===c.channel.id),this.loadingMessages=!1})):this.messagesService.getMessages().pipe((0,f.W)(r=>{throw this.loadingMessages=!1,r})).subscribe(r=>{if(r&&(this.news=r.Kund.Meddelanden.NotifieringMeddelanden.filter(c=>c.Kanaler.find(v=>v.Notifierad&&"Nyhet"===v.KanalTyp.SystemName)),r&&r.Kund&&r.Kund.Kundinformation)){let c=r.Kund.Kundinformation.F\u00f6rnamn;c=c&&c.length>0?" "+c:"",this.firstName=c,this.signInService.signedInUser||(this.signInService.signedInUser=this.firstName+" "+r.Kund.Kundinformation.Efternamn)}this.loadingMessages=!1}))})}featureClicked(t){t.type===te.l.ErrorReport?this.openErrorReportSheet():t.type===te.l.LaundryBooking?this.openLaundryBooking(t):t.type===te.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 r=s.objects[0];this.laundryBookingService.getBookingObjectLink(r.bookingObjectId,r.contractVersionId[0]).pipe((0,f.W)(c=>{throw c})).subscribe(c=>{this.dialog.open(p.O,{data:{bookingContracts:[{address:r.displayName,bookingLink:c.webAddress}]},scrollStrategy:new B.N})})}else this.router.navigate([t.path])}openErrandsSheet(){this.errandService.getErrandsTypes().subscribe(t=>{this.rightSheet.open(ae.o,{data:t,panelClass:"custom-rightsheet",scrollStrategy:new B.N,ariaLabel:this.translate.instant("ERRAND"),autoFocus:!1}).afterDismissed().subscribe(r=>{})})}getSignings(){this.signingService.getSignings().subscribe(t=>{t?.items?.length>0&&i.e(701).then(i.bind(i,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=U)})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(C.Ix),e.rXU(L.M),e.rXU(k.Y),e.rXU(d.G),e.rXU(M.w),e.rXU(J.W),e.rXU(de.m),e.rXU(z.f),e.rXU(me.J),e.rXU(R.t),e.rXU(be.l),e.rXU(Oe.c9),e.rXU(Se.Q),e.rXU(N.c$),e.rXU(ge.j),e.rXU(Ne.m))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-home"]],standalone:!1,decls:15,vars:17,consts:[[1,"page"],[1,"hero-content"],["alt","",1,"hero-image"],[1,"text-container",2,"top","0","bottom","0","left","0","right","0"],["data-mom-test","MinaSidor_Hem_V\xe4lkommen",1,"hero-text","mat-h1"],[1,"mat-body","body-text"],[3,"markdown"],[1,"body-content"],[1,"row"],["class","column left-column",4,"ngIf"],[4,"ngIf"],[1,"column","left-column"],["class","co-applicants-message-container",4,"ngIf"],["class","signings-messages-container",4,"ngIf"],[1,"co-applicants-message-container"],[1,"mat-h2","header-text"],[4,"ngComponentOutlet"],[1,"signings-messages-container"],["class","spinner",4,"ngIf"],["class","message-list",3,"initialCount","isNews","messages","messagesGraphQL",4,"ngIf"],[1,"spinner"],["aria-label","Progress spinner"],[1,"message-list",3,"initialCount","isNews","messages","messagesGraphQL"],[3,"featureClicked","initialCount","featureList"]],template:function(s,r){1&s&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",2),e.j41(3,"div",3)(4,"h1",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",5),e.nrm(8,"taiga-markdown",6),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"div",7)(11,"div",8),e.DNE(12,qe,4,3,"div",9),e.j41(13,"div"),e.DNE(14,et,5,5,"ng-container",10),e.k0s()()()()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(2),e.xc7("background-image","url("+r.startBackgroun
1d+")"),e.R7$(3),e.Lme("",e.bMT(6,13,"HEROTEXT"),"",r.firstName,"!"),e.R7$(3),e.Y8G("markdown",e.bMT(9,15,"HEROBODYTEXT")),e.R7$(4),e.Y8G("ngIf",r.newsVisible||r.signings),e.R7$(),e.AVh("column",r.newsVisible),e.R7$(),e.Y8G("ngIf",r.featureList&&r.featureList.length>0))},dependencies:[Ae.g,A.OI,A.bT,ke.t,_.N,ue,N.D9],styles:[".hero-content[_ngcontent-%COMP%]{position:relative}.text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute}.text-container[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .text-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background:#00000040;border-radius:4px;padding:5px}.hero-text[_ngcontent-%COMP%]{font-size:4vw;line-height:4vw;text-align:center}@media (min-width: 1600px){.hero-text[_ngcontent-%COMP%]{font-size:4.0625rem;line-height:4.0625rem;text-align:center}}.body-text[_ngcontent-%COMP%]{max-width:60%;text-align:center}.is-mobile[_ngcontent-%COMP%]   .hero-text[_ngcontent-%COMP%]{font-size:8vw;line-height:8vw;margin:0;text-align:center}.is-mobile[_ngcontent-%COMP%]   .body-text[_ngcontent-%COMP%]{display:none}.hero-image[_ngcontent-%COMP%]{background-size:cover;height:360px;background-position:left top}.is-mobile[_ngcontent-%COMP%]   .hero-image[_ngcontent-%COMP%]{height:200px}.body-content[_ngcontent-%COMP%]{display:block;padding:30px}.is-mobile[_ngcontent-%COMP%]   .body-content[_ngcontent-%COMP%]{padding:20px}.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:30px}.is-desktop[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{flex:2;margin-right:20px}@media (max-width: 1024px){.row[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}}.button-wrapper[_ngcontent-%COMP%], .spinner[_ngcontent-%COMP%]{display:flex;justify-content:center}.signings-messages-container[_ngcontent-%COMP%], .co-applicants-message-container[_ngcontent-%COMP%]{margin-bottom:20px}"]})}}return n})();var O=i(9417),Me=i(1585),ve=i(100),K=i(2928),nt=i(7403);const st=n=>({invalidChars:n}),pe=n=>({label:n});function at(n,m){if(1&n&&(e.j41(0,"mat-card-subtitle",18),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div",19),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 rt(n,m){if(1&n&&(e.j41(0,"mat-card-subtitle",18),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"div",19),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 it(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 ot(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,st,null==(t=s.f.emailAddress.getError("allowedCharacters"))?null:t.invalidChars)))}}function lt(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,pe,e.bMT(2,1,"MOBILEPHONENUMBER")))," "))}function ct(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,pe,e.bMT(2,1,"PHONENUMBER")))," "))}function dt(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,pe,e.bMT(2,1,"PHONERNUMBERWORK")))," "))}function mt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"h1",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),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.DNE(11,at,6,8,"mat-card-subtitle",5)(12,rt,6,8,"mat-card-subtitle",5),e.k0s(),e.j41(13,"mat-card-content")(14,"form",6),e.bIt("ngSubmit",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSubmit(r.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.DNE(24,it,4,3,"mat-error",11)(25,ot,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.DNE(34,lt,4,8,"mat-error",11),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.DNE(43,ct,4,8,"mat-error",11),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.DNE(52,dt,4,8,"mat-error",11),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$(2),e.JRh(e.bMT(3,31,"MYINFO")),e.R7$(4),e.BMQ("aria-label",e.bMT(7,33,"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.Y8G("ngIf",null==t.userInformation?null:t.userInformation.Kundinformation.Kundnummer),e.R7$(),e.Y8G("ngIf",null==t.userInformationGQL?null:t.userInformationGQL.number),e.R7$(2),e.Y8G("formGroup",t.userInfoForm),e.R7$(4),e.JRh(e.bMT(19,35,"EMAILADDRESS")),e.R7$(3),e.BMQ("aria-label",e.bMT(22,37,"EMAILADDRESS")),e.R7$(3),e.Y8G("ngIf",t.f.emailAddress.invalid&&t.f.emailAddress.errors.email),e.R7$(),e.Y8G("ngIf",t.f.emailAddress.hasError("allowedCharacters")),e.R7$(3),e.JRh(e.bMT(29,39,"MOBILEPHONENUMBER")),e.R7$(3),e.BMQ("aria-label",e.bMT(32,41,"MOBILEPHONENUMBER")),e.R7$(3),e.Y8G("ngIf",t.f.mobilePhoneNumber.invalid),e.R7$(3),e.JRh(e.bMT(38,43,"PHONENUMBER")),e.R7$(3),e.BMQ("aria-label",e.bMT(41,45,"PHONENUMBER")),e.R7$(3),e.Y8G("ngIf",t.f.phoneNumber.invalid),e.R7$(3),e.JRh(e.bMT(47,47,"PHONERNUMBERWORK")),e.R7$(3),e.BMQ("aria-label",e.bMT(50,49,"PHONERNUMBERWORK")),e.R7$(3),e.Y8G("ngIf",t.f.workPhoneNumber.invalid),e.R7$(3),e.JRh(e.bMT(56,51,"MAILINGADDRESS")),e.R7$(3),e.BMQ("aria-label",e.bMT(59,53,"MAILINGADDRESS")),e.R7$(4),e.FS9("eventLabel",e.bMT(63,55,"SAVE")),e.FS9("eventCategory",e.bMT(64,57,"MYINFO")),e.Y8G("disabled",t.userInfoForm.invali
1d),e.R7$(3),e.SpI(" ",e.bMT(66,59,"SAVE")," ")}}let gt=(()=>{class n{get f(){return this.userInfoForm.controls}constructor(t,s,r,c,v,x,j){this.translate=t,this.myInfoService=s,this.formBuilder=r,this.snackBarService=c,this.route=v,this.mediaQueryService=x,this.registrationService=j}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})}setControlValues(t,s){const r=t?t.Kontaktuppgifter.find(Y=>"epost.standard"===Y.KontaktuppgiftsTyp.Systemnamn):null,c=t?t.Kontaktuppgifter.find(Y=>"telefon.hem"===Y.KontaktuppgiftsTyp.Systemnamn):null,v=t?t.Kontaktuppgifter.find(Y=>"telefon.arbete"===Y.KontaktuppgiftsTyp.Systemnamn):null,x=t?t.Kontaktuppgifter.find(Y=>"telefon.mobil"===Y.KontaktuppgiftsTyp.Systemnamn):null,j=s?s.find(Y=>"kund.post"===Y.AdressAnv\u00e4ndningTypReferensnamn):null;this.userInfoForm=this.formBuilder.group({emailAddress:[r?r.V\u00e4rde:null,[O.k0.email,(0,Me.f)()]],phoneNumber:[c?c.V\u00e4rde:null],workPhoneNumber:[v?v.V\u00e4rde:null],mobilePhoneNumber:[x?x.V\u00e4rde:null],mailingAddress:[j?j.Fullst\u00e4ndigAdress:null]}),setTimeout(()=>{this.userInfoForm.valid||this.userInfoForm.markAllAsTouched()},1e3)}setControlValuesGQL(t){const s=t?t.communications.nodes?.find(j=>"email"===j.type.guid):null,r=t?t.communications.nodes?.find(j=>"homePhone"===j.type.guid):null,c=t?t.communications.nodes?.find(j=>"phoneWork"===j.type.guid):null,v=t?t.communications.nodes?.find(j=>"mobile"===j.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,[O.k0.email,(0,Me.f)()]],phoneNumber:[r?r.value:null],workPhoneNumber:[c?c.value:null],mobilePhoneNumber:[v?v.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(N.c$),e.rXU($.k),e.rXU(O.ze),e.rXU(b.z),e.rXU(C.nX),e.rXU(L.M),e.rXU(z.f))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-my-info"]],standalone:!1,decls:1,vars:1,consts:[[3,"is-mobile","is-desktop",4,"ngIf"],[1,"mat-h1","header-text"],[1,"card"],[1,"card-header"],["color","primary","mat-card-avatar","",2,"transform","scale(1.5)","width","24px","height","24px","padding-top","2px"],["data-mom-test","MinaSidor_Konto_MinaUppgifter_KundNr",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"form-container"],[1,"form-field"],["matInput","","maxlength","100","formControlName","emailAddress","data-mom-test","MinaSidor_Konto_MinaUppgifter_Epostadress","type","email","autocomplete","email"],["matSuffix","","color","primary"],[4,"ngIf"],["matInput","","maxlength","20","formControlName","mobilePhoneNumber","type","tel","pattern","[0-9 +\\-]+","data-mom-test","MinaSidor_Konto_MinaUppgifter_TelefonnummerMobil","autocomplete","tel"],["matInput","","maxlength","20","formControlName","phoneNumber","type","tel","pattern","[0-9 +\\-]+","data-mom-test","MinaSidor_Konto_MinaUppgifter_TelefonnummerDagtid","autocomplete","tel"],["matInput","","maxlength","20","formControlName","workPhoneNumber","type","tel","pattern","[0-9 +\\-]+","data-mom-test","MinaSidor_Konto_MinaUppgifter_TelefonnummerArbete","autocomplete","tel"],["cdkTextareaAutosize","","matInput","","formControlName","mailingAddress","readonly","","data-mom-test","MinaSidor_Konto_MinaUppgifter_Postadress","autocomplete","off"],["align","end",2,"margin","0","margin-bottom","0","padding","0"],["mat-raised-button","","color","primary","data-mom-test","MinaSidor_Konto_MinaUppgifter_Spara","type","submit","taigaEventTracker","",3,"disabled","eventLabel","eventCategory"],["data-mom-test","MinaSidor_Konto_MinaUppgifter_KundNr"],["data-mom-test","MinaSidor_Konto_MinaUppgifter_LoggarInMed"]],template:function(s,r){1&s&&e.DNE(0,mt,67,61,"div",0),2&s&&e.Y8G("ngIf",r.userInfoForm)},dependencies:[O.qT,O.me,O.BC,O.cb,O.tU,O.R_,O.j4,O.JD,Q.An,V.$z,T.RN,T.YY,T.QG,T.m2,T.MM,T.Lc,T.dh,ve.fg,K.j,K.M,K.b,K.g,nt.xb,A.bT,W.u,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.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:10px 0}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=i(7586),he=i.n(ut),pt=i(2899);function ht(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"taiga-temporary-address",5),e.bIt("adressSaved",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.reload())})("addressRemoved",function(r){e.eBV(t);const c=e.XpG();return e.Njj(c.removeAddress(r))}),e.k0s()()}if(2&n){const t=m.$implicit;e.R7$(),e.Y8G("tillfalligAddress",t)}}let Ce=(()=>{class n{constructor(t,s,r){this.route=t,this.mediaQueryService=s,this.temporaryAddressService=r}ngOnInit(){this.route.data.subscribe(t=>{t&&t.sessionTillfalligAddress&&(this.addresses=JSON.parse(JSON.stringify(t.sessionTillfalligAddress)))})}addNew(){const t=he()(new Date),s=he()(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(C.nX),e.rXU(L.M),e.rXU(h.j))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-temporary-addresses"]],standalone:!1,decls:15,vars:12,consts:[[1,"title"],["color","accent","mat-icon-button","","aria-label","add","data-mom-test","MinaSidor_Konto_Tillf\xe4lligAdress_Plus",3,"click","disabled"],[1,"icon-display"],[3,"markdown"],[4,"ngFor","ngForOf"],[3,"adressSaved","addressRemoved","tillfalligAddress"]],template:function(s,r){1&s&&(e.j41(0,"div")(1,"mat-card")(2,"mat-card-title")(3,"div",0)(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",1),e.bIt("click",function(){return r.addNew()}),e.j41(8,"mat-icon",2),e.EFF(9,"add_circle"),e.k0s()()()(),e.j41(10,"mat-card-subtitle"),e.nrm(11,"taiga-markdown",3),e.nI1(12,"translate"),e.k0s(),e.nrm(13,"mat-card-content"),e.k0s(),e.DNE(14,ht,2,1,"div",4),e.k0s()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(5),e.SpI(" ",e.bMT(6,8,"TEMPADDR")," "),e.R7$(2),e.Y8G("disabled",r.addresses&&r.addresses.length>2),e.R7$(4),e.Y8G("markdown",e.bMT(12,10,"TEMPADDRHELP")),e.R7$(3),e.Y8G("ngForOf",r.addresses))},dependencies:[Q.An,se.M,T.RN,T.m2,T.Lc,T.dh,A.Sq,_.N,pt.b,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.icon-display[_ngcontent-%COMP%]{transform:scale(1.5)}"]})}}return n})();var ft=i(3284);let _t=(()=>{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)(e.KVO(u.B))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Mt=i(1163);const vt=()=>({minlength:"10"});function Ct(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 Et(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 It(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,vt))," "))}function yt(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 Tt(n,m){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"form",5)(2,"mat-card")(3,"mat-card-content")(4,"div",6)(5,"mat-form-field",7)(6,"mat-label"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",8,0)(11,"taiga-password-input-type-toggle",9),e.nI1(12,"translate"),e.DNE(13,Ct,3,3,"mat-error",4),e.k0s(),e.j41(14,"mat-form-field",7)(15,"mat-label"),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",10,1)(20,"taiga-password-input-type-toggle",9),e.nI1(21,"translate"),e.DNE(22,Et,3,3,"mat-error",4)(23,It,3,5,"mat-error",4),e.k0s(),e.j41(24,"mat-form-field",7)(25,"mat-label"),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",11,2)(30,"taiga-password-input-type-toggle",9),e.nI1(31,"translate"),e.DNE(32,yt,3,3,"mat-error",4),e.k0s()()(),e.j41(33,"mat-card-actions",12)(34,"button",13),e.nI1(35,"translate"),e.nI1(36,"translate"),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSubmit())}),e.EFF(37),e.nI1(38,"translate"),e.k0s()()()(),e.bVm()}if(2&n){const t=e.sdS(10),s=e.sdS(19),r=e.sdS(29),c=e.XpG();e.R7$(),e.Y8G("formGroup",c.changePasswordForm),e.R7$(6),e.JRh(e.bMT(8,19,"OLDPASSWORD")),e.R7$(4),e.Y8G("input",t)("inputLabel",e.bMT(12,21,"OLDPASSWORD")),e.R7$(2),e.Y8G("ngIf",c.changePasswordForm.hasError("required","oldPassword")),e.R7$(3),e.JRh(e.bMT(17,23,"NEWPASSWORD")),e.R7$(4),e.Y8G("input",s)("inputLabel",e.bMT(21,25,"NEWPASSWORD")),e.R7$(2),e.Y8G("ngIf",c.changePasswordForm.hasError("required","newPassword")),e.R7$(),e.Y8G("ngIf",c.changePasswordForm.hasError("minlength","newPassword")),e.R7$(3),e.JRh(e.bMT(27,27,"CONFIRMPASSWORD")),e.R7$(2),e.Y8G("errorStateMatcher",c.matcher),e.R7$(2),e.Y8G("input",r)("inputLabel",e.bMT(31,29,"CONFIRMPASSWORD")),e.R7$(2),e.Y8G("ngIf",c.changePasswordForm.hasError("notSame")),e.R7$(2),e.FS9("eventLabel",e.bMT(35,31,"SAVE")),e.FS9("eventCategory",e.bMT(36,33,"CHANGEPASSWORD")),e.Y8G("disabled",!c.changePasswordForm.dirty&&!c.changePasswordForm.touched||c.changePasswordForm.invali
1d&&(c.changePasswordForm.dirty||c.changePasswordForm.touched)),e.R7$(3),e.SpI(" ",e.bMT(38,35,"SAVE")," ")}}function Rt(n,m){1&n&&(e.qex(0),e.j41(1,"mat-card"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CANNOTCHANGEPASSWORD")," "))}let bt=(()=>{class n{get f(){return this.changePasswordForm.controls}constructor(t,s,r,c,v){this.formBuilder=t,this.changePasswordService=s,this.snackBarService=r,this.mediaQueryService=c,this.registrationService=v,this.matcher=new ft.F}ngOnInit(){this.registrationService.getActor().subscribe(t=>{t?.auth?.password?.editable?(this.canChangePassword=!0,this.changePasswordForm=this.formBuilder.group({oldPassword:[null,[O.k0.required]],newPassword:[null,[O.k0.required]],confirmNewPassword:[null,[O.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(O.ze),e.rXU(_t),e.rXU(b.z),e.rXU(L.M),e.rXU(z.f))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-change-password"]],standalone:!1,decls:6,vars:9,consts:[["oldPasswordInput",""],["newPasswordInput",""],["confirmNewPasswordInput",""],[1,"mat-h1","header-text"],[4,"ngIf"],[3,"formGroup"],[1,"form-container"],[1,"form-field"],["matInput","","formControlName","oldPassword","type","password","autocomplete","current-password","required","","data-mom-test","MinaSidor_Konto_\xc4ndraL\xf6senord_GammaltL\xf6senord"],["matSuffix","",3,"input","inputLabel"],["matInput","","formControlName","newPassword","type","password","autocomplete","new-password","required","","minlength","10","maxlength","128","data-mom-test","MinaSidor_Konto_\xc4ndraL\xf6senord_NyttL\xf6senord"],["matInput","","formControlName","confirmNewPassword","autocomplete","new-password","type","password","required","","data-mom-test","MinaSidor_Konto_\xc4ndraL\xf6senord_Bekr\xe4ftaNyttL\xf6senord",3,"errorStateMatcher"],["align","end"],["mat-raised-button","","color","primary","taigaEventTracker","","data-mom-test","MinaSidor_Konto_\xc4ndraL\xf6senord_Spara",3,"click","disabled","eventLabel","eventCategory"]],template:function(s,r){1&s&&(e.j41(0,"div")(1,"h1",3),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Tt,39,37,"ng-container",4)(5,Rt,4,3,"ng-container",4),e.k0s()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(2),e.JRh(e.bMT(3,7,"CHANGEPASSWORD")),e.R7$(2),e.Y8G("ngIf",r.canChangePassword),e.R7$(),e.Y8G("ngIf",void 0!==r.canChangePassword&&!r.canChangePassword))},dependencies:[O.qT,O.me,O.BC,O.cb,O.YS,O.xh,O.tU,O.j4,O.JD,V.$z,T.RN,T.YY,T.m2,ve.fg,K.j,K.M,K.b,K.g,A.bT,W.u,Mt.l,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.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 Ee=i(5571);function Ot(n,m){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"button",11),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.markAllAsRead())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"MARKALLASREAD")))}function St(n,m){if(1&n){const t=e.RV6();e.j41(0,"taiga-messages-list",12),e.bIt("markedAsRead",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.getMessages())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("messages",t.unreadMessages)("messagesGraphQL",t.unreadMessagesGraphQL)}}function Nt(n,m){if(1&n&&e.nrm(0,"taiga-messages-list",13),2&n){const t=e.XpG();e.Y8G("messages",t.readMessages)("messagesGraphQL",t.readMessagesGraphQL)}}function At(n,m){if(1&n){const t=e.RV6();e.j41(0,"taiga-messages-list",12),e.bIt("markedAsRead",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.getMessages())}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("messages",t.allMessages)("messagesGraphQL",t.allMessagesGraphQL)}}let kt=(()=>{class n{constructor(t,s,r){this.route=t,this.messagesService=s,this.mediaQueryService=r,this.componentDestroyed=new ne.B}ngOnInit(){this.route.data.pipe((0,H.Q)(this.componentDestroyed)).subscribe(t=>{t&&t.portalSession?.Kund?(this.allMessages=t.portalSession.Kund.Meddelanden.NotifieringMeddelanden.filter(s=>s.Kanaler.find(r=>r.Notifierad&&"Meddelandebox"===r.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.
1snapshot.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.id),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.id),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)})}markAllAsRead(){this.messagesService.putMarkAllAsRead().subscribe(()=>{this.useGraphQL?this.unreadMessagesGraphQL=[]:this.unreadMessages=[],this.getMessages()})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(C.nX),e.rXU(d.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"],[1,"mat-h1","header-text"],[1,"slim-toggle",3,"value"],["value","unread"],["value","read"],["value","all"],[4,"ngIf"],[1,"messages-container"],[3,"messages","messagesGraphQL","markedAsRead",4,"ngIf"],[3,"messages","messagesGraphQL",4,"ngIf"],["mat-raised-button","",1,"mark-all-as-read",3,"click"],[3,"markedAsRead","messages","messagesGraphQL"],[3,"messages","messagesGraphQL"]],template:function(s,r){if(1&s&&(e.j41(0,"div")(1,"div",1)(2,"h1",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div")(6,"mat-button-toggle-group",3,0)(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.DNE(17,Ot,4,3,"div",7),e.j41(18,"div",8),e.DNE(19,St,1,2,"taiga-messages-list",9)(20,Nt,1,2,"taiga-messages-list",10)(21,At,1,2,"taiga-messages-list",9),e.k0s()()),2&s){const c=e.sdS(7);e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(3),e.JRh(e.bMT(4,13,"NOTIFICATIONS")),e.R7$(3),e.Y8G("value",r.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.Y8G("ngIf",(null==r.unreadMessages?null:r.unreadMessages.length)>0||(null==r.unreadMessagesGraphQL?null:r.unreadMessagesGraphQL.length)>0),e.R7$(2),e.Y8G("ngIf","unread"===c.value),e.R7$(),e.Y8G("ngIf","read"===c.value),e.R7$(),e.Y8G("ngIf","all"===c.value)}},dependencies:[V.$z,Ee.ec,Ee.pc,A.bT,ue,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.header-text[_ngcontent-%COMP%]{font-weight:700}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap}mat-button-toggle-group[_ngcontent-%COMP%]{height:32px}.mark-all-as-read[_ngcontent-%COMP%], .messages-container[_ngcontent-%COMP%]{margin-top:15px}"]})}}return n})();var Dt=i(6048);function Pt(n,m){1&n&&(e.j41(0,"h1",4),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"NEWS")))}function Ft(n,m){1&n&&(e.j41(0,"h1",4),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"NOTIFICATIONS")))}function Lt(n,m){1&n&&(e.j41(0,"mat-icon",9),e.EFF(1,"arrow_right"),e.k0s())}function xt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",6),e.DNE(1,Lt,2,0,"mat-icon",7),e.j41(2,"button",8),e.bIt("click",function(){const r=e.eBV(t).$implicit,c=e.XpG(2);return e.Njj(c.messageClick(r.NotifieringId))}),e.EFF(3),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.NotifieringId===s.notifyMessage.NotifieringId),e.R7$(),e.Y8G("ngClass",t.NotifieringId===s.notifyMessage.NotifieringId?"accent-text":""),e.R7$(),e.SpI("",s.getMessageSubject(t)," ")}}function Gt(n,m){if(1&n&&(e.j41(0,"mat-card-content"),e.DNE(1,xt,4,3,"div",5),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.getMessages())}}function $t(n,m){1&n&&(e.j41(0,"mat-icon",9),e.EFF(1,"arrow_right"),e.k0s())}function jt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",6),e.DNE(1,$t,2,0,"mat-icon",7),e.j41(2,"button",8),e.bIt("click",function(){const r=e.eBV(t).$implicit,c=e.XpG(2);return e.Njj(c.messageClick(r.id))}),e.EFF(3),e.k0s()()}if(2&n){const t=m.$implicit,s=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.id===s.notifyMessageGraphQL.id),e.R7$(),e.Y8G("ngClass",(null==t?null:t.id)===s.notifyMessageGraphQL.id?"accent-text":""),e.R7$(),e.SpI("",t.subject," ")}}function wt(n,m){if(1&n&&(e.j41(0,"mat-card-content"),e.DNE(1,jt,4,3,"div",5),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.getMessagesGraphQL())}}function Bt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",10)(1,"button",11),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.showAllMessages())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"SHOWALL")," "))}let Ut=(()=>{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"}
1messageClick(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(r=>r.Notifierad&&r.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:[["class","mat-h1 header-text",4,"ngIf"],[1,"mat-elevation-z0"],[4,"ngIf"],["class","button-wrapper",4,"ngIf"],[1,"mat-h1","header-text"],["class","message-list-item",4,"ngFor","ngForOf"],[1,"message-list-item"],["class","arrow-icon",4,"ngIf"],["mat-button","",1,"message-list-button",3,"click","ngClass"],[1,"arrow-icon"],[1,"button-wrapper"],["mat-stroked-button","",1,"accent-text",3,"click"]],template:function(s,r){1&s&&(e.DNE(0,Pt,3,3,"h1",0)(1,Ft,3,3,"h1",0),e.j41(2,"mat-card",1),e.DNE(3,Gt,2,1,"mat-card-content",2)(4,wt,2,1,"mat-card-content",2),e.k0s(),e.DNE(5,Bt,4,3,"div",3)),2&s&&(e.Y8G("ngIf",r.isNews),e.R7$(),e.Y8G("ngIf",!r.isNews),e.R7$(2),e.Y8G("ngIf",r.messages&&r.notifyMessage),e.R7$(),e.Y8G("ngIf",r.messagesGraphQL&&r.notifyMessageGraphQL),e.R7$(),e.Y8G("ngIf",!r.allMessages&&r.messages&&r.messages.length>4||!r.allMessages&&r.messagesGraphQL&&r.messagesGraphQL.length>4))},dependencies:[Q.An,V.$z,T.RN,T.m2,A.YU,A.Sq,A.bT,N.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 Yt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"taiga-message-card",4),e.bIt("messageClicked",function(r){e.eBV(t);const c=e.XpG();return e.Njj(c.messageClick(r))}),e.k0s()(),e.j41(4,"div",5)(5,"taiga-message-links",6),e.bIt("messageClicked",function(r){e.eBV(t);const c=e.XpG();return e.Njj(c.messageClick(r))}),e.k0s()()()()}if(2&n){const t=e.XpG();e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(3),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 Vt(n,m){if(1&n){const t=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"taiga-message-card",7),e.bIt("messageClicked",function(r){e.eBV(t);const c=e.XpG();return e.Njj(c.messageClick(r))}),e.k0s()(),e.j41(4,"div",5)(5,"taiga-message-links",8),e.bIt("messageClicked",function(r){e.eBV(t);const c=e.XpG();return e.Njj(c.messageClick(r))}),e.k0s()()()()}if(2&n){const t=e.XpG();e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(3),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 Ie=(()=>{class n{constructor(t,s,r,c,v){this.route=t,this.messagesService=s,this.mediaQueryService=r,this.router=c,this.location=v,this.componentDestroyed=new ne.B,this.now=new Date}ngOnInit(){this.isNews=this.router.url.includes("news"),this.route.data.pipe((0,H.Q)(this.componentDestroyed)).subscribe(t=>{t&&t.portalSession?.Kund?(this.messages=t.portalSession.Kund.Meddelanden.NotifieringMeddelanden.filter(this.isNews?s=>s.Kanaler.find(r=>r.Notifierad&&"Nyhet"===r.KanalTyp.SystemName):s=>s.Kanaler.find(r=>r.Notifierad&&"Meddelandebox"===r.KanalTyp.SystemName)),this.setCurrentMessage(+this.route.
1snapshot.params.id)):(this.useGraphQL=!0,this.messagesGraphQL=t.notificationExecutionsQuery.data.notificationExecutions.nodes.filter(this.isNews?s=>"news"===s.channel.id:s=>"box"===s.channel.id),this.setCurrentMessage(this.route.snapshot.params.id))}),this.router.events.pipe((0,H.Q)(this.componentDestroyed)).subscribe(t=>{t instanceof C.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})}messageClick(t){if(this.useGraphQL){this.currentMessageGraphQL=this.messagesGraphQL.find(r=>r.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(r=>r.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(C.nX),e.rXU(d.G),e.rXU(L.M),e.rXU(C.Ix),e.rXU(Dt.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-message"]],standalone:!1,decls:2,vars:2,consts:[["class","page",3,"is-mobile","is-desktop",4,"ngIf"],[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,r){1&s&&e.DNE(0,Yt,6,10,"div",0)(1,Vt,6,10,"div",0),2&s&&(e.Y8G("ngIf",!r.useGraphQL),e.R7$(),e.Y8G("ngIf",r.useGraphQL))},dependencies:[A.bT,Ut,_e],styles:[".page[_ngcontent-%COMP%]{display:block}.is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.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:30px}.is-desktop[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{flex:2;margin-right:20px}.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})(),Qt=(()=>{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(r=>r.Notifierad&&"Nyhet"===r.KanalTyp.SystemName)):this.allNewsGraphQL=t.notificationExecutionsQuery.data.notificationExecutions.nodes.filter(s=>
1"news"===s.channel.id)})}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(L.M),e.rXU(C.nX))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-news"]],standalone:!1,decls:6,vars:10,consts:[[1,"header"],[1,"mat-h1","header-text"],[3,"isNews","messages","messagesGraphQL"]],template:function(s,r){1&s&&(e.j41(0,"div")(1,"div",0)(2,"h1",1),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.nrm(5,"taiga-messages-list",2),e.k0s()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(3),e.JRh(e.bMT(4,8,"NEWS")),e.R7$(2),e.Y8G("isNews",!0)("messages",r.allNews)("messagesGraphQL",r.allNewsGraphQL))},dependencies:[ue,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.header-text[_ngcontent-%COMP%]{font-weight:700}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap}mat-button-toggle-group[_ngcontent-%COMP%]{height:32px}"]})}}return n})();var Z=i(9496),Kt=i(450);function Xt(n,m){if(1&n&&e.nrm(0,"p",6),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.text)}}function Wt(n,m){if(1&n&&e.nrm(0,"p",6),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.shortText)}}function Ht(n,m){if(1&n){const t=e.RV6();e.j41(0,"mat-card",2)(1,"mat-card-title"),e.EFF(2),e.k0s(),e.j41(3,"mat-card-content"),e.DNE(4,Xt,1,1,"p",3)(5,Wt,1,1,"p",3),e.k0s(),e.j41(6,"mat-card-actions")(7,"div",4)(8,"mat-slide-toggle",5),e.bIt("change",function(r){const c=e.eBV(t).$implicit,v=e.XpG();return e.Njj(v.toggle(r,c.id,c.versionId))}),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()()}if(2&n){const t=m.$implicit;e.R7$(2),e.JRh(t.displayName),e.R7$(2),e.Y8G("ngIf",t.text),e.R7$(),e.Y8G("ngIf",t.shortText&&!t.text),e.R7$(3),e.Y8G("checked",t.accepted),e.R7$(),e.JRh(e.bMT(10,5,"IAGREE"))}}let Jt=(()=>{class n{constructor(t,s,r){this.route=t,this.mediaQueryService=s,this.registrationService=r}ngOnInit(){this.route.data.subscribe(t=>{this.consents=t?.actor?.consents.filter(s=>s.accepted),console.log(this.consents)})}toggle(t,s,r){this.registrationService.postActor({consents:[{id:s,versionId:r,command:{type:t.checked?"accept":"withdraw"}}]}).subscribe()}static{this.\u0275fac=function(s){return new(s||n)(e.rXU(C.nX),e.rXU(L.M),e.rXU(z.f))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-consents"]],standalone:!1,decls:5,vars:11,consts:[["data-mom-test","MyPages_Account_Consents_Header",3,"text","subText"],["class","consent-card",4,"ngFor","ngForOf"],[1,"consent-card"],[3,"innerText",4,"ngIf"],[1,"slide-container"],["data-mom-test","MyPages_Account_Consents_Toggle",3,"change","checked"],[3,"innerText"]],template:function(s,r){1&s&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.nI1(3,"translate"),e.DNE(4,Ht,11,7,"mat-card",1),e.k0s()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,7,"CONSENTS"))("subText",e.bMT(3,9,"CONSENTSHELP")),e.R7$(3),e.Y8G("ngForOf",r.consents))},dependencies:[T.RN,T.YY,T.m2,T.dh,Kt.sG,A.Sq,A.bT,q.o,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.consent-card[_ngcontent-%COMP%]{margin-bottom:15px}"]})}}return n})(),ye=(()=>{class n{constructor(t,s,r,c){this.registrationService=t,this.errorService=s,this.userMessageService=r,this.router=c}resolve(){return this.registrationService.getActor().pipe((0,f.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)(e.KVO(z.f),e.KVO(P.I),e.KVO(b.z),e.KVO(C.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function zt(n,m){if(1&n&&e.nrm(0,"p",4),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.text)}}function Zt(n,m){if(1&n&&e.nrm(0,"p",4),2&n){const t=e.XpG().$implicit;e.Y8G("innerText",t.shortText)}}function qt(n,m){if(1&n&&(e.j41(0,"mat-card",2)(1,"mat-card-title"),e.EFF(2),e.k0s(),e.j41(3,"mat-card-content"),e.DNE(4,zt,1,1,"p",3)(5,Zt,1,1,"p",3),e.k0s()()),2&n){const t=m.$implicit;e.R7$(2),e.JRh(t.displayName),e.R7$(2),e.Y8G("ngIf",t.text),e.R7$(),e.Y8G("ngIf",t.shortText&&!t.text)}}let en=(()=>{class n{constructor(t,s){this.route=t,this.mediaQueryService=s}ngOnInit(){this.route.data.subscribe(t=>
1{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(C.nX),e.rXU(L.M))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-read-consents"]],standalone:!1,decls:4,vars:8,consts:[[3,"text"],["class","consent-card",4,"ngFor","ngForOf"],[1,"consent-card"],[3,"innerText",4,"ngIf"],[3,"innerText"]],template:function(s,r){1&s&&(e.j41(0,"div"),e.nrm(1,"taiga-medium-header",0),e.nI1(2,"translate"),e.DNE(3,qt,6,3,"mat-card",1),e.k0s()),2&s&&(e.AVh("is-mobile",r.mediaQueryService.isMobile())("is-desktop",!r.mediaQueryService.isMobile()),e.R7$(),e.Y8G("text",e.bMT(2,6,"CONSENTS")),e.R7$(2),e.Y8G("ngForOf",r.consents))},dependencies:[T.RN,T.m2,T.dh,A.Sq,A.bT,q.o,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.consent-card[_ngcontent-%COMP%]{margin-top:15px}"]})}}return n})();var tn=i(2304),nn=i(1997);function sn(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 an(n,m){1&n&&(e.j41(0,"div"),e.EFF(1,"-"),e.k0s())}function rn(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 on(n,m){1&n&&(e.j41(0,"div"),e.EFF(1,"-"),e.k0s())}function ln(n,m){if(1&n&&(e.qex(0),e.j41(1,"div",7)(2,"div",8)(3,"div",9),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.k0s()(),e.j41(8,"div",8)(9,"div",9),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.DNE(12,sn,2,1,"div",10)(13,an,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.j41(15,"div",8)(16,"div",9),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.DNE(19,rn,2,1,"div",10)(20,on,2,0,"ng-template",null,1,e.C5r),e.k0s()(),e.nrm(22,"mat-divider"),e.bVm()),2&n){const t=m.$implicit,s=e.sdS(14),r=e.sdS(21);e.R7$(4),e.SpI(" ",e.bMT(5,8,"SPACE")," "),e.R7$(3),e.SpI(" ",t.space," "),e.R7$(3),e.SpI(" ",e.bMT(11,10,"ACTION")," "),e.R7$(2),e.Y8G("ngIf",t.measure)("ngIfElse",s),e.R7$(5),e.SpI(" ",e.bMT(18,12,"COST")," "),e.R7$(2),e.Y8G("ngIf",t.offeredCost)("ngIfElse",r)}}function cn(n,m){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div")(2,"div"),e.nrm(3,"taiga-medium-header",3),e.nI1(4,"translate"),e.nI1(5,"translate"),e.k0s(),e.j41(6,"mat-card"),e.DNE(7,ln,23,14,"ng-container",4),e.j41(8,"div",5)(9,"button",6),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.sendOrder())}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(),e.AVh("is-mobile",t.mediaQueryService.isMobile())("is-desktop",!t.mediaQueryService.isMobile()),e.R7$(2),e.Y8G("text",e.bMT(4,8,"MAINTENANCE"))("subText",e.bMT(5,10,"MAINTENANCECHECKOUTHELP")),e.R7$(4),e.Y8G("ngForOf",t.items),e.R7$(3),e.JRh(e.bMT(11,12,"SUBMITORDER"))}}const mn=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:tt,canActivate:[o.q],title:"HOME"},{path:"messages",component:kt,canActivate:[o.q,Z.u],resolve:{portalSession:l,notificationExecutionsQuery:l},title:"NOTIFICATIONS"},{path:"my-info",component:gt,canActivate:[o.q],resolve:{userInfo:E},title:"MYINFO"},{path:"temporary-addresses",component:Ce,canActivate:[o.q,Z.u],resolve:{sessionTillfalligAddress:g},title:"TEMPADDR"},{path:"contract",loadChildren:()=>Promise.all([i.e(76),i.e(355)]).then(i.bind(i,4355)).then(n=>n.ContractModule)},{path:"resident-info",loadChildren:()=>Promise.all([i.e(76),i.e(577)]).then(i.bind(i,7577)).then(n=>n.ResidentInfoModule)},{path:"temporary-addresses",component:Ce,canActivate:[o.q,Z.u],resolve:{sessionTillfalligAddress:g}},{path:"invoice",loadChildren:()=>i.e(165).then(i.bind(i,8165)).then(n=>n.InvoiceModule)},{path:"laundry-booking",loadChildren:()=>i.e(259).then(i.bind(i,6259)).then(n=>n.LaundryBookingModule)},{path:"error-report",loadChildren:()=>i.e(325).then(i.bind(i,6325)).then(n=>n.ErrorReportModule)},{path:"change-password",component:bt,canActivate:[o.q],title:"CHANGEPASSWORD"},{path:"contact-by",component:oe,canActivate:[o.q],resolve:{data:le},title:"CONTACTBYTITLE"},{path:"messages/:id",component:Ie,canActivate:[o.q,Z.u],resolve:{portalSession:l,notificationExecutionsQuery:l},title:"NOTIFICATIONS"},{path:"news",component:Qt,canActivate:[o.q,Z.u],resolve:{portalSession:l,notificationExecutionsQuery:l},title:"NEWS"},{path:"news/:id",component:Ie,canActivate:[o.q,Z.u],resolve:{portalSession:l,notificationExecutionsQuery:l},title:"NEWS"},{path:"consents/accepted",component:Jt,canActivate:[o.q,Z.u],resolve:{actor:ye},title:"CONSENTS"},{path:"consents/readmore",component:en,canActivate:[o.q],resolve:{actor:ye},title:"CONSENTS"},{path:"checkout/:id",component:(()=>{class n{constructor(t,s,r,c,v,x){this.route=t,this.mediaQueryService=s,this.hluLegacyService=r,this.snackBarService=c,this.translate=v,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:he()(),\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(C.nX),e.rXU(L.M),e.rXU(tn.I),e.rXU(b.z),e.rXU(N.c$),e.rXU(C.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["taiga-hlu-legacy-checkout"]],standalone:!1,decls:1,vars:1,consts:[["measure",""],["offeredCost",""],[4,"ngIf"],[3,"text","subText"],[4,"ngFor","ngForOf"],["align","end",2,"margin-top","10px"],["mat-raised-button","","color","primary",3,"click"],[1,"flex-container"],[1,"flex-item"],[1,"mat-body-strong"],[4,"ngIf","ngIfElse"]],template:function(s,r){1&s&&e.DNE(0,cn,12,14,"ng-container",2),2&s&&e.Y8G("ngIf",r.items)},dependencies:[nn.q,V.$z,T.RN,A.Sq,A.bT,q.o,N.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.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:[o.q],title:"MAINTENANCE"}];let gn=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[a.iI.forChild(mn),a.iI]})}}return n})();var Te=i(7643),un=i(5974);let pn=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[(0,Te.$R)((0,Te.Sx)())],imports:[O.YN,O.X1,un.G,N.h.forChild(),gn]})}}return n})()}}]);

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.