1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[577],{1580:(M,F,s)=>{s.d(F,{E:()=>C});var R=s(1360),S=s(5850);let C=(()=>{class _{constructor(l){this.requestService=l}saveBlob(l,m){const g=new Blob([l],{type:m});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(g);else{const h=window.URL.createObjectURL(g);window.open(h,"_blank"),setTimeout(()=>{window.URL.revokeObjectURL(h)},100)}}saveBlobWithFilename(l,m){const g=m.split(".").pop(),h=this.getMimeType(g),y=new Blob([l],{type:h});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(y,m);else{const v=window.URL.createObjectURL(y),f=document.createElement("a");typeof f.download>"u"?window.open(v,"_blank"):(f.href=v,f.download=m,document.body.appendChild(f),f.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),setTimeout(()=>{window.URL.revokeObjectURL(v),f&&f.remove()},100)}}getMimeType(l){switch(l=l.replace(".","")){case"3g2":return"video/3gpp2";case"3gp":return"video/3gpp";case"au":return"audio/basic";case"avi":return"video/x-msvideo";case"bmp":return"image/bmp";case"doc":return"application/msword";case"docx":return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";case"eps":case"ps":return"application/postscript";case"gif":return"image/gif";case"h264":return"video/h264";case"htm":case"html":return"text/html";case"ico":return"image/x-icon";case"jpe":case"jpeg":case"jpg":return"image/jpeg";case"m4v":return"video/x-m4v";case"mkv":return"video/x-matroska";case"mov":case"qt":return"video/quicktime";case"mp3":case"mpga":return"audio/mpeg";case"mp4":case"mpg4":return"video/mp4";case"mpe":case"mpeg":case"mpg":return"video/mpeg";case"ogg":return"application/ogg";case"pdf":return"application/pdf";case"png":return"image/png";case"ppt":return"application/vnd.ms-powerpoint";case"ra":case"ram":return"audio/x-pn-realaudio";case"rm":return"application/vnd.rn-realmedia";case"rtf":return"text/rtf";case"rtx":return"text/richtext";case"svg":return"image/svg+xml";case"swf":return"application/x-shockwave-flash";case"tif":case"tiff":return"image/tiff";case"txt":return"text/plain";case"wav":return"audio/x-wav";case"wbmp":return"image/vnd.wap.wbmp";case"wmv":return"video/x-ms-wmv";case"xhtml":return"application/xhtml+xml";case"xls":return"application/vnd.ms-excel";case"xlsx":return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";case"xml":return"application/xml";default:return""}}getValidMediaType(l){switch(l){case"application/pdf":case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getValidImageMediaType(l){switch(l){case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getBlobFromUrl(l){return this.requestService.getBlobFromUrl(l)}static{this.\u0275fac=function(m){return new(m||_)(R.KVO(S.B))}}static{this.\u0275prov=R.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()},7577:(M,F,s)=>{s.r(F),s.d(F,{ResidentInfoModule:()=>$t});var R=s(8018),S=s(5974),C=s(5207),_=s(1336),b=s(274),l=s(9437),m=s(7002),g=s(1397),h=s(4058),y=s(983),v=s(2806),f=s(6695),t=s(1360),D=s(5850),G=s(8973);let E=(()=>{class n{constructor(e,i,a){this.request=e,this.entityFileInfoByContractIds=i,this.entityFileInfoByAssociatedUserId=a}getResidentInfo(e){return this.request.get("session",{H\u00e4mtaKund:!0,H\u00e4mtaDokument:!0,H\u00e4mtaDokumentF\u00f6rFramtidaAvtal:e,H\u00e4mtaKundEkonomiAviseringarAntM\u00e5n:12,H\u00e4mtaKundAviseringarAntM\u00e5n:12})}getResidentAttachment(e,i){return this.request.get(`session/kund/dokument/${e}`,{H\u00e4mtaDokumentF\u00f6rFramtidaAvtal:i},{responseType:"blob",cache:!1})}fetchResidentInfo(e){return this.request.fetchGQL(this.entityFileInfoByContractIds,{ids:e})}fetchResidentInfoForAssociatedUser(e){return this.request.fetchGQL(this.entityFileInfoByAssociatedUserId,{id:e})}getEntityFileAssociatedUser(){return this.request.get("v2/entity/users")}static{this.\u0275fac=function(i){return new(i||n)(t.KVO(D.B),t.KVO(G.$3),t.KVO(G.$6))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var j=s(2155),B=s(1580),Y=s(2043),T=s(56),L=s(1895),U=s(3527),k=s(666),X=s(9213),P=s(8834),V=s(100),N=s(2928),x=s(9454),H=s(1396),O=s(6850),w=s(4518),A=s(2881),Q=s(3013),K=s(1517),W=s(6112);function J(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(", ",e.ObjektTyp,"")}}function z(n,o){if(1&n&&(t.j41(0,"div")(1,"div",19),t.EFF(2),t.DNE(3,J,2,1,"span",14),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(2),t.SpI("",e.ObjektAdress," "),t.R7$(),t.Y8G("ngIf",e.ObjektTyp)}}function Z(n,o){if(1&n&&(t.j41(0,"div",20)(1,"a",21),t.EFF(2),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("href",e.Webbadress,t.B4B),t.R7$(),t.JRh(e.Webbadress)}}function q(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",22)(1,"div",23)(2,"button",24),t.bIt("click",function(){t.eBV(e);
1const a=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.getAttachment(a.EntitetFilId,a.Beteckning,a.Fil\u00e4ndelse))}),t.j41(3,"mat-icon"),t.EFF(4),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()()()()}if(2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.JRh(i.getIcon(e.Fil\u00e4ndelse)),t.R7$(2),t.Lme("",e.Beteckning,"",e.Fil\u00e4ndelse,"")}}function tt(n,o){if(1&n&&(t.j41(0,"mat-expansion-panel",11)(1,"mat-expansion-panel-header")(2,"div",12)(3,"mat-panel-title",13),t.EFF(4),t.k0s(),t.j41(5,"mat-panel-description"),t.DNE(6,z,4,2,"div",14),t.k0s()()(),t.j41(7,"div",15),t.nrm(8,"taiga-markdown",16),t.k0s(),t.DNE(9,Z,3,2,"div",17)(10,q,7,3,"div",18),t.k0s()),2&n){const e=o.$implicit;t.Y8G("expanded",o.first),t.R7$(4),t.SpI(" ",e.Beteckning," "),t.R7$(2),t.Y8G("ngIf",e.ObjektAdress),t.R7$(2),t.Y8G("markdown",e.Meddelande),t.R7$(),t.Y8G("ngIf",e.Webbadress),t.R7$(),t.Y8G("ngIf",e.Fil\u00e4ndelse)}}function et(n,o){if(1&n&&(t.j41(0,"mat-tab",9),t.DNE(1,tt,11,6,"mat-expansion-panel",10),t.k0s()),2&n){const e=o.$implicit;t.FS9("label",e.title),t.R7$(),t.Y8G("ngForOf",e.d)}}function nt(n,o){if(1&n&&(t.j41(0,"mat-tab-group",7),t.DNE(1,et,2,2,"mat-tab",8),t.k0s()),2&n){const e=t.XpG();t.Y8G("animationDuration",0),t.R7$(),t.Y8G("ngForOf",e.arr)}}function it(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(", ",e.sourceNode.classDisplayName,"")}}function at(n,o){if(1&n&&(t.j41(0,"div")(1,"div",19),t.EFF(2),t.DNE(3,it,2,1,"span",14),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(2),t.SpI("",null==e.sourceNode?null:e.sourceNode.displayName," "),t.R7$(),t.Y8G("ngIf",e.sourceNode.classDisplayName)}}function st(n,o){if(1&n&&(t.j41(0,"div",20)(1,"a",21),t.EFF(2),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("href",e.languages[0].address,t.B4B),t.R7$(),t.JRh(e.languages[0].address)}}function ot(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",22)(1,"div",23)(2,"button",24),t.bIt("click",function(){t.eBV(e);
1const a=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.getAttachment(a.id,a.languages[0].file.type.displayName,a.languages[0].file.type.extension))}),t.j41(3,"mat-icon"),t.EFF(4),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()()()()}if(2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.JRh(i.getIcon(e.languages[0].file.type.extension)),t.R7$(2),t.Lme("",e.languages[0].file.displayName,"",e.languages[0].file.type.extension,"")}}function rt(n,o){if(1&n&&(t.j41(0,"mat-expansion-panel",11)(1,"mat-expansion-panel-header")(2,"div",12)(3,"mat-panel-title",13),t.EFF(4),t.k0s(),t.j41(5,"mat-panel-description"),t.DNE(6,at,4,2,"div",14),t.k0s()()(),t.j41(7,"div",15),t.nrm(8,"taiga-markdown",16),t.k0s(),t.DNE(9,st,3,2,"div",17)(10,ot,7,3,"div",18),t.k0s()),2&n){const e=o.$implicit;t.Y8G("expanded",o.first),t.R7$(4),t.SpI(" ",e.displayName," "),t.R7$(2),t.Y8G("ngIf",null==e.sourceNode?null:e.sourceNode.displayName),t.R7$(2),t.Y8G("markdown",e.languages[0].body),t.R7$(),t.Y8G("ngIf",e.languages[0].address),t.R7$(),t.Y8G("ngIf",null==e.languages[0].file||null==e.languages[0].file.type?null:e.languages[0].file.type.extension)}}function lt(n,o){if(1&n&&(t.j41(0,"mat-tab",9),t.DNE(1,rt,11,6,"mat-expansion-panel",10),t.k0s()),2&n){const e=o.$implicit;t.FS9("label",e.title),t.R7$(),t.Y8G("ngForOf",e.d)}}function ct(n,o){if(1&n&&(t.j41(0,"mat-tab-group",7),t.DNE(1,lt,2,2,"mat-tab",8),t.k0s()),2&n){const e=t.XpG();t.Y8G("animationDuration",0),t.R7$(),t.Y8G("ngForOf",e.arr)}}function pt(n,o){1&n&&(t.j41(0,"mat-option",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.Y8G("disabled",!0),t.R7$(),t.SpI(" ",t.bMT(2,2,"NOMATCH")," "))}function dt(n,o){if(1&n&&(t.j41(0,"mat-option",31),t.EFF(1),t.k0s()),2&n){const e=o.$implicit;t.Y8G("value",null==e?null:e.id),t.R7$(),t.Lme(" ",null==e||null==e.nodeClass?null:e.nodeClass.displayName,", ",null==e||null==e.objectPrimary?null:e.objectPrimary.locationAddress," ")}}function mt(n,o){if(1&n){const e=t.RV6();t.j41(0,"mat-form-field",25)(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"input",26,0),t.nI1(6,"translate"),t.bIt("keyup",function(a){t.eBV(e);const r=t.XpG();return t.Njj(r.searchContract(a.target.value))}),t.k0s(),t.j41(7,"mat-autocomplete",27,1),t.bIt("optionSelected",function(a){t.eBV(e);const r=t.sdS(5);return t.XpG().getResidentInfo(a.option.value),t.Njj(r.value=a.option._text.nativeElement.innerText)}),t.DNE(9,pt,3,4,"mat-option",28)(10,dt,2,3,"mat-option",29),t.k0s()()}if(2&n){const e=t.sdS(8),i=t.XpG();t.R7$(2),t.JRh(t.bMT(3,5,"SEARCHCONTRACTS")),t.R7$(2),t.Y8G("placeholder",t.bMT(6,7,"RESIDENTINFOSEARCHBYHELP"))("matAutocomplete",e),t.R7$(5),t.Y8G("ngIf",i.showNoMatch),t.R7$(),t.Y8G("ngForOf",null==i.contractSearch||null==i.contractSearch.data||null==i.contractSearch.data.contracts?null:i.contractSearch.data.contracts.nodes)}}function ut(n,o){1&n&&(t.j41(0,"div",32),t.nrm(1,"taiga-spinner",32),t.k0s())}function ft(n,o){if(1&n&&(t.j41(0,"div",20)(1,"a",21),t.EFF(2),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("href",e.webAddress,t.B4B),t.R7$(),t.JRh(e.webAddress)}}function gt(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",22)(1,"div",23)(2,"button",24),t.bIt("click",function(){t.eBV(e);
1const a=t.XpG().$implicit,r=t.XpG(3);return t.Njj(r.getAttachment(a.fileId,a.displayName,a.fileExtension))}),t.j41(3,"mat-icon"),t.EFF(4),t.k0s(),t.j41(5,"span"),t.EFF(6),t.k0s()()()()}if(2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.JRh(i.getIcon(e.fileExtension)),t.R7$(2),t.Lme("",e.displayName,"",e.fileExtension,"")}}function ht(n,o){if(1&n&&(t.j41(0,"mat-expansion-panel",11)(1,"mat-expansion-panel-header")(2,"div",12)(3,"mat-panel-title"),t.EFF(4),t.k0s()()(),t.j41(5,"div",19)(6,"div"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"div"),t.EFF(10),t.k0s()(),t.j41(11,"div",15),t.nrm(12,"taiga-markdown",16),t.k0s(),t.DNE(13,ft,3,2,"div",17)(14,gt,7,3,"div",18),t.k0s()),2&n){const e=o.$implicit;t.Y8G("expanded",o.first),t.R7$(4),t.SpI(" ",e.displayName," "),t.R7$(3),t.SpI("",t.bMT(8,7,"REFERS"),":"),t.R7$(3),t.JRh(e.primaryEntityAddress),t.R7$(2),t.Y8G("markdown",e.description),t.R7$(),t.Y8G("ngIf",e.webAddress),t.R7$(),t.Y8G("ngIf",e.fileExtension)}}function _t(n,o){if(1&n&&(t.j41(0,"mat-tab",9),t.DNE(1,ht,15,9,"mat-expansion-panel",10),t.k0s()),2&n){const e=o.$implicit;t.FS9("label",e.title),t.R7$(),t.Y8G("ngForOf",e.d)}}function vt(n,o){if(1&n&&(t.j41(0,"mat-tab-group",7),t.DNE(1,_t,2,2,"mat-tab",8),t.k0s()),2&n){const e=t.XpG();t.Y8G("animationDuration",0),t.R7$(),t.Y8G("ngForOf",e.arr)}}function bt(n,o){1&n&&(t.j41(0,"div",33),t.nrm(1,"taiga-markdown",16),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.Y8G("markdown",t.bMT(2,1,"RESIDENTINFOMISSING")))}let It=(()=>{class n{constructor(e,i,a,r,c,p,u,I){this.residentService=e,this.route=i,this.fileService=a,this.mediaQueryService=r,this.contractService=c,this.languageSelectService=p,this.registrationService=u,this.clientConfigurationService=I,this.arr=[],this.pageSize=5}ngOnInit(){switch(this.userLanguage=this.languageSelectService.getUserLanguage(),this.userLanguage){case"SV":default:this.userLanguage="svenska";break;case"EN":this.userLanguage="engelska"}this.route.data.subscribe(e=>{this.useGraphQL=e.data[2],this.useGraphQL?(this.activeContractsTotaltCount=e.data[3],this.activeContractsTotaltCount<=5&&(e.data[1]?.data?.entityFileInfoByContractIds?this.buildArrayFromGQL(e.data[1].data.entityFileInfoByContractIds):this.registrationService.getActorStatus().pipe((0,b.H)(i=>i.isAssociatedUser?(this.isAssociatedUser=!0,this.showSpinner=!0,this.residentService.fetchResidentInfoForAssociatedUser(i.actorId)):y.w),(0,l.W)(i=>{throw this.showSpinner=!1,i})).subscribe(i=>{this.showSpinner=!1,this.buildArrayFromGQL(i?.data?.entityFileInfoByAssociatedUserId)}))):e.data[0]?.Kund?.Dokument?.length>0?this.buildArrayFromSessionDokument(e.data[0]?.Kund?.Dokument):this.registrationService.getActorStatus().pipe((0,b.H)(i=>i.isAssociatedUser?(this.isAssociatedUser=!0,this.showSpinner=!0,this.residentService.getEntityFileAssociatedUser()):y.w),(0,l.W)(i=>{throw this.showSpinner=!1,i})).subscribe(i=>{this.showSpinner=!1,this.buildArrayFromEntityFiles(JSON.parse(JSON.stringify(i)))})})}buildArrayFromSessionDokument(e){(0,v.H)(e).pipe((0,m.$)(a=>a.EntitetFilTypBeteckning),(0,g.Z)(a=>a.pipe((0,h.$)()))).subscribe(a=>{this.arr.push({title:a[0].EntitetFilTypBeteckning,d:a})})}buildArrayFromEntityFiles(e){(0,v.H)(e.items).pipe((0,m.$)(a=>a.type.displayName),(0,g.Z)(a=>a.pipe((0,h.$)()))).subscribe(a=>{const r=a[0].type.displayName;for(let p=0;p<a.length;p++){const u=a[p].languages.find(I=>I.displayName.toLowerCase()===this.userLanguage.toLowerCase());u&&(a[p].languages=[u])}this.arr.push({title:r,d:a})})}buildArrayFromGQL(e){(0,v.H)(e).pipe((0,m.$)(a=>a.typeDisplayName),(0,g.Z)(a=>a.pipe((0,h.$)()))).subscribe(a=>{a=a.reduce((p,u)=>{let I=p.find(Gt=>Gt.id===u.id);return I?I.primaryEntityAddress+=`\n${u.primaryEntityAddress}, ${u.primaryEntityClassDisplayName}`:(u.primaryEntityAddress+=`, ${u.primaryEntityClassDisplayName}`,p=p.concat(u)),p},[]),this.arr.push({title:a[0].typeDisplayName,d:a})})}getAttachment(e,i,a){this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,b.H)(r=>this.residentService.getResidentAttachment(e,r?.residentInfoFutureContract?.enabled))).subscribe(r=>{i||(i="unknown"),this.fileService.saveBlobWithFilename(r,`${i}${a}`)}
1)}getIcon(e){return this.fileService.getMimeType(e).includes("image")?"photo":"insert_drive_file"}searchContract(e){e?.length>0?this.contractService.fetchActiveContractsBySearch(e).subscribe(i=>{this.contractSearch=i,this.showNoMatch=0===this.contractSearch?.data?.contracts?.nodes?.length}):this.showNoMatch=!1}getResidentInfo(e){this.hasSearched=!0,this.arr=[],this.showSpinner=!0,e&&this.residentService.fetchResidentInfo([e]).pipe((0,l.W)(i=>{throw this.arr=[],this.showSpinner=!1,i})).subscribe(i=>{i?.data?.entityFileInfoByContractIds&&(this.showSpinner=!1,this.buildArrayFromGQL(i.data.entityFileInfoByContractIds))})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(E),t.rXU(j.nX),t.rXU(B.E),t.rXU(Y.M),t.rXU(T.y),t.rXU(L.M),t.rXU(U.f),t.rXU(k.t))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-resident-info"]],viewQuery:function(i,a){if(1&i&&t.GBs(f.iy,5),2&i){let r;t.mGM(r=t.lsd())&&(a.paginator=r.first)}},standalone:!1,decls:9,vars:13,consts:[["input",""],["auto","matAutocomplete"],["data-mom-test","MyPages_CustomerInfo_Header",3,"text"],[3,"animationDuration",4,"ngIf"],["style","width: 100%; margin-top: 20px;","appearance","fill",4,"ngIf"],["class","spinner",4,"ngIf"],["class","no-residentinfo",4,"ngIf"],[3,"animationDuration"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["class","expansion-panel",3,"expanded",4,"ngFor","ngForOf"],[1,"expansion-panel",3,"expanded"],[1,"panel-title"],["data-mom-test","MyPages_CustomerInfo_SectionHeader"],[4,"ngIf"],[1,"message"],[3,"markdown"],["class","web-address",4,"ngIf"],["class","attachment",4,"ngIf"],[1,"sub-title"],[1,"web-address"],["target","_blank",1,"accent-text",3,"href"],[1,"attachment"],[1,"link"],["mat-button","","color","primary",3,"click"],["appearance","fill",2,"width","100%","margin-top","20px"],["type","text","matInput","","aria-controls","autocomplete","autocomplete","off",3,"keyup","placeholder","matAutocomplete"],["id","autocomplete",3,"optionSelected"],[3,"disabled",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"disabled"],[3,"value"],[1,"spinner"],[1,"no-residentinfo"]],template:function(i,a){1&i&&(t.j41(0,"div"),t.nrm(1,"taiga-medium-header",2),t.nI1(2,"translate"),t.DNE(3,nt,2,2,"mat-tab-group",3)(4,ct,2,2,"mat-tab-group",3)(5,mt,11,9,"mat-form-field",4)(6,ut,2,0,"div",5)(7,vt,2,2,"mat-tab-group",3)(8,bt,3,3,"div",6),t.k0s()),2&i&&(t.AVh("is-mobile",a.mediaQueryService.isMobile())("is-desktop",!a.mediaQueryService.isMobile()),t.R7$(),t.Y8G("text",t.bMT(2,11,"RESIDENTINFO")),t.R7$(2),t.Y8G("ngIf",!a.isAssociatedUser&&!a.useGraphQL&&a.arr&&a.arr.length>0),t.R7$(),t.Y8G("ngIf",a.isAssociatedUser&&!a.useGraphQL&&a.arr&&a.arr.length>0),t.R7$(),t.Y8G("ngIf",a.activeContractsTotaltCount>5&&a.useGraphQL),t.R7$(),t.Y8G("ngIf",a.showSpinner),t.R7$(),t.Y8G("ngIf",!a.showSpinner&&a.useGraphQL&&a.arr&&a.arr.length>0),t.R7$(),t.Y8G("ngIf",!(a.arr&&a.arr.length>0)&&!a.showSpinner&&(!a.useGraphQL||a.hasSearched||a.activeContractsTotaltCount<=5)))},dependencies:[X.An,P.$z,V.fg,N.j,N.M,x.GK,x.Z2,x.WN,x.Q6,H.M,O.mq,O.T8,w.$3,w.pN,A.Sq,A.bT,Q.o,K.t,W.N,R.D9],styles:[".is-desktop[_ngcontent-%COMP%]{padding:30px}.is-mobile[_ngcontent-%COMP%]{padding:20px}.expansion-panel[_ngcontent-%COMP%]{display:block;margin-top:15px;margin-bottom:15px}.attachment[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:8px}.web-address[_ngcontent-%COMP%]{margin-top:10px;word-break:break-all}.message[_ngcontent-%COMP%]{margin-top:10px;white-space:pre-line}h4[_ngcontent-%COMP%]{margin:0;font-weight:700}.is-mobile[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{font-size:.8125rem}.link[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;cursor:pointer}.title[_ngcontent-%COMP%]{margin:0}.is-mobile[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding:20px}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center}.divider[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}.no-residentinfo[_ngcontent-%COMP%]{margin-top:30px}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:60px}"]})}}return n})();var $=s(7468),d=s(7673),Rt=s(6380),yt=s(7342);let Ft=(()=>{class n{constructor(e,i,a,r,c,p){this.residentService=e,this.errorService=i,this.userMessageService=a,this.router=r,this.contractService=c,this.clientConfigurationService=p}resolve(){return this.clientConfigurationService.getClientConfigurationFeatures().pipe((0,b.H)(e=>e?.graphQL?.enabled?this.contractService.fetchActiveContractsTotalCount(e?.residentInfoFutureContract?.enabled).pipe((0,b.H)(i=>{const a=i.data.contracts.totalCount;return a>5?(0,$.p)([(0,d.of)(null),(0,d.of)(null),(0,d.of)(!0),(0,d.of)(a)]):this.contractService.fetchActiveContracts(void 0,void 0,e?.residentInfoFutureContract?.enabled).pipe((0,b.H)(r=>{let c=[];for(let p of r.data.contracts.nodes)c.push(p.guid);return(0,$.p)([(0,d.of)(null),c.length>0?this.residentService.fetchResidentInfo(c):(0,d.of)(null),(0,d.of)(!0),(0,d.of)(a)])}))})):(0,$.p)([this.residentService.getResidentInfo(e?.residentInfoFutureContract?.enabled),(0,d.of)(null),(0,d.of)(!1),(0,d.of)(null)])),(0,l.W)(e=>{const i=this.errorService.parseError(e);return this.userMessageService.errorWithHeader(i.message,"",i.displayErrorReportNumber?i.errorReportNumber:""),this.router.navigateByUrl("/"),(0,d.of)(null)}))}static{this.\u0275fac=function(i){return new(i||n)(t.KVO(E),t.KVO(Rt.I),t.KVO(yt.z),t.KVO
1(j.Ix),t.KVO(T.y),t.KVO(k.t))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ct=s(9496);const xt=[{path:"",component:It,canActivate:[_.q,Ct.u],resolve:{data:Ft},title:"RESIDENTINFO"}];let St=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[C.iI.forChild(xt),C.iI]})}}return n})(),$t=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[R.h.forChild(),St,S.G]})}}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.