PageSourceSearch

https://minasidor.k2a.se/647.7b5930dacbc65f9b.js

js k2a.se collected 2026-10-02 06:20:35 UTC 54,864 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[647],{3647(Y,M,c){c.d(M,{InvoiceModule:()=>Ie});var x=c(9963),m=c(8018),E=c(8132),f=c(1336),v=c(9437),d=c(6695),u=c(7586),g=c.n(u),t=c(3664),s=c(2615),_=c(8793),h=c(2043),P=c(6713),H=c(666),j=c(6471),N=c(5571),O=c(1843),W=c(3013),T=c(1517),J=c(7201),G=c(1580),R=c(1413),k=c(1584),D=c(274),L=c(6977),B=c(7786),C=c(2591),z=c(5850);let F=(()=>{class n{constructor(e){this.request=e}postPaymentSwish(e){return this.request.postOnce("v2/payment/swish",{ledgerNoteId:e})}getPaymentSwish(e){return this.request.get(`v2/payment/swish/${e}`,null,{cache:!1})}postRecurringConsent(e){return this.request.postOnce("v2/payment/swish/recurring/consent",{preferredDebitDayOfMonth:e})}getRecurringConsentStatus(){return this.request.get("v2/payment/swish/recurring/consent",null,{cache:!1})}deleteRecurringConsent(){return this.request.delete("v2/payment/swish/recurring/consent")}static{this.\u0275fac=function(i){return new(i||n)(s.KVO(z.B))}}static{this.\u0275prov=s.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var $=c(913),I=c(8834);function q(n,a){if(1&n&&(t.j41(0,"div"),t.nrm(1,"img",8),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("src",e.qrCode,t.B4B)("alt",t.bMT(2,2,"SWISHQRCODE"))}}function K(n,a){1&n&&t.nrm(0,"taiga-spinner",4),2&n&&t.Y8G("diameter",36)}function Z(n,a){if(1&n&&(t.j41(0,"div",5),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.error," ")}}function tt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",2)(1,"div",3),t.nVh(2,q,3,4,"div"),t.nVh(3,K,1,1,"taiga-spinner",4),t.nVh(4,Z,2,1,"div",5),t.k0s()(),t.j41(5,"div",6)(6,"button",7),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.cancel())}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(2),t.vxM(e.qrCode&&!e.error?2:-1),t.R7$(),t.vxM(e.showSpinner?3:-1),t.R7$(),t.vxM(e.error?4:-1),t.R7$(3),t.JRh(t.bMT(8,4,"CANCEL"))}}function et(n,a){1&n&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"PAYMENTCOMPLETED")," "))}function nt(n,a){1&n&&t.nrm(0,"taiga-spinner",4),2&n&&t.Y8G("diameter",36)}function it(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",9)(1,"div",10),t.nVh(2,et,3,3,"div"),t.nVh(3,nt,1,1,"taiga-spinner",4),t.k0s()(),t.j41(4,"div",6)(5,"button",11),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.closeDialog(!0,2500))}),t.EFF(6),t.nI1(7,"translate"),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(2),t.vxM(e.showSpinner?-1:2),t.R7$(),t.vxM(e.showSpinner?3:-1),t.R7$(2),t.Y8G("disabled",e.showSpinner),t.R7$(),t.SpI(" ",t.bMT(7,4,"CLOSE")," ")}}let A=(()=>{class n{constructor(e,i,o,r,p){this.data=e,this.swishService=i,this.dialogRef=o,this.styleService=r,this.translate=p,this.cancelEvent=new R.B,this.completeEvent=new R.B,this.componentDestroyed=new R.B,this.SWISH_PAYMENT_REQUEST="SWISH_PAYMENT_REQUEST",this.SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID="SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID",this.SWISH_PAYMENT_REQUEST_EXPIRE_TIME="SWISH_PAYMENT_REQUEST_EXPIRE_TIME",this.swishLogoPath=this.styleService.isDarkMode?"assets/img/swish-primary-dark.svg":"assets/img/swish-primary.svg",this.data?.ledgerNoteId&&this.postPaymentSwish(this.data.ledgerNoteId),this.data?.swishPaymentRequest&&(this.qrCode=this.data.swishPaymentRequest.qrCode,this.startPolling(this.data.swishPaymentRequest.id))}ngOnDestroy(){this.componentDestroyed.next(!0)}postPaymentSwish(e){this.showSpinner=!0,this.swishService.postPaymentSwish(e).pipe((0,v.W)(i=>{throw this.showSpinner=!1,i})).subscribe(i=>{if(this.showSpinner=!1,i)if(this.id=i.id,i?.qrCode&&(this.qrCode=i.qrCode),i.token&&(this.swishAppUrl=`swish://paymentrequest?token=${i.token}&callbackurl=${encodeURIComponent(window.location.href)}`,this.openSwishApp()),i.error)this.error=i.error;else{this.startPolling(i.id),sessionStorage.setItem(this.SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID,this.data.ledgerNoteId);var o=new Date;o.setSeconds(o.getSeconds()+210),sessionStorage.setItem(this.SWISH_PAYMENT_REQUEST_EXPIRE_TIME,o.getTime().toString()),sessionStorage.setItem(this.SWISH_PAYMENT_REQUEST,JSON.stringify(i))}})}startPolling(e){(0,k.O)(1e3,2e3).pipe((0,D.H)(()=>this.swishService.getPaymentSwish(e)),(0,L.Q)((0,B.h)(this.cancelEvent,this.completeEvent,this.componentDestroyed))).subscribe(i=>{this.processResponse(i)}),(0,k.O)(21e4).subscribe(()=>{this.closeDialog(!1)})}processResponse(e){switch(e.status){case"PAID":this.completeEvent.next(!0),this.paymentCompleted=!0;break;case"CANCEL":case"DECLINED":case"ERROR":this.cancelEvent.next(!0),this.error=this.translate.instant("PAYMENTFAILED")}}cancel(){this.cancelEvent.next(!0),this.closeDialog(!1)}closeDialog(e,i=0){this.showSpinner=!!i,setTimeout(()=>{sessionStorage.removeItem(this.SWISH_PAYMENT_REQUEST),sessionStorage.removeItem(this.SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID),sessionStorage.removeItem(this.SWISH_PAYMENT_REQUEST_EXPIRE_TIME),this.dialogRef.close(e?"success":"")},i)}openSwishApp(){try{window.open(this.swishAppUrl,"_parent")}catch{}}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(C.Vh),t.rXU(F),t.rXU(C.CP),t.rXU($.J),t.rXU(m.c$))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-swish-dialog"]],standalone:!1,decls:6,vars:6,consts:[[1,"swish-logo-container"],["width","64","height","64",3,"src","alt"],[1,"qr-code-wrapper"],[1,"qr-code-container"],[3,"diameter"],[2,"word-break","break-word"],[1,"buttons-container"],["mat-button","","color","primary","data-mom-test","MyPages_SwishDialog_CancelButton",3,"click"],["width","180","height","180",1,"qr-code",3,"src","alt"],[1,"success-wrapper"],[1,"success-container"],["mat-button","","color","primary","data-mom-test","MyPages_SwishDialog_CloseButton",3,"click","disabled"]],template:function(i,o){1&i&&(t.j41(0,"mat-dialog-content")(1,"div",0),t.nrm(2,"img",1),t.nI1(3,"translate"),t.k0s(),t.nVh(4,tt,9,6),t.nVh(5,it,8,6),t.k0s()),2&i&&(t.R7$(2),t.Y8G("src",o.swishLogoPath,t.B4B)("alt",t.bMT(3,4,"SWISHLOGO")),t.R7$(2),t.vxM(o.paymentCompleted?-1:4),t.R7$(),t.vxM(o.paymentCompleted?5:-1))},dependencies:[I.$z,C.Yi,T.t,m.D9],styles:[".qr-code-wrapper[_ngcontent-%COMP%], .success-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:25px}.qr-code-container[_ngcontent-%COMP%], .success-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:200px;
1width:200px}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.buttons-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:15px}.swish-logo-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.qr-code[_ngcontent-%COMP%]{padding:15px;background-color:#fff;border-radius:40px}"]})}}return n})();var U=c(3718),ot=c(2728),at=c(5665),st=c(7342);function rt(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",2),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.copyMessage(o.copyText))}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG();t.R7$(),t.JRh(e.text)}}function ct(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",3),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.copyMessage(o.copyText))}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG();t.R7$(),t.JRh(e.text)}}let lt=(()=>{class n{constructor(e,i){this.snackBarService=e,this.translate=i}copyMessage(e){const i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=e,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.snackBarService.info(this.translate.instant("COPIEDTOCLIPBOARD"),1500)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(st.z),t.rXU(m.c$))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-copy-button"]],inputs:{text:"text",copyText:"copyText",stroked:"stroked"},standalone:!1,decls:2,vars:2,consts:[["matButton","tonal","data-mom-test","MyPages_CopyButton"],["matButton","outlined","data-mom-test","MyPages_CopyButton",1,"mat-elevation-z2"],["matButton","tonal","data-mom-test","MyPages_CopyButton",3,"click"],["matButton","outlined","data-mom-test","MyPages_CopyButton",1,"mat-elevation-z2",3,"click"]],template:function(i,o){1&i&&(t.nVh(0,rt,2,1,"button",0),t.nVh(1,ct,2,1,"button",1)),2&i&&(t.vxM(o.stroked?-1:0),t.R7$(),t.vxM(o.stroked?1:-1))},dependencies:[I.$z],encapsulation:2})}}return n})();var pt=c(1997),S=c(5596),w=c(9454),dt=c(8943),V=c(9213),mt=c(345);function ht(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",2),t.bIt("click",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.buttonClick())}),t.EFF(1),t.nrm(2,"mat-icon",3),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.label," ")}}function ut(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",4),t.bIt("click",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.buttonClick())}),t.EFF(1),t.nrm(2,"mat-icon",3),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.label," ")}}function gt(n,a){if(1&n&&(t.nVh(0,ht,3,1,"button",0),t.nVh(1,ut,3,1,"button",1)),2&n){const e=t.XpG();t.vxM(e.stroked?-1:0),t.R7$(),t.vxM(e.stroked?1:-1)}}function vt(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",2),t.bIt("click",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.buttonClick())}),t.EFF(1),t.nrm(2,"mat-icon",5),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.label," ")}}function _t(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",4),t.bIt("click",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.buttonClick())}),t.EFF(1),t.nrm(2,"mat-icon",5),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.label," ")}}function ft(n,a){if(1&n&&(t.nVh(0,vt,3,1,"button",0),t.nVh(1,_t,3,1,"button",1)),2&n){const e=t.XpG();t.vxM(e.stroked?-1:0),t.R7$(),t.vxM(e.stroked?1:-1)}}let Q=(()=>{class n{constructor(e,i,o){this.matIconRegistry=e,this.domSanitizer=i,this.styleService=o,this.clicked=new t.bkB,this.matIconRegistry.addSvgIcon("swishLogo",this.domSanitizer.bypassSecurityTrustResourceUrl("assets/img/swish-primary.svg")),this.matIconRegistry.addSvgIcon("swishLogoDark",this.domSanitizer.bypassSecurityTrustResourceUrl("assets/img/swish-primary-dark.svg"))}buttonClick(){this.clicked.emit()}get isDarkmode(){return this.styleService.isDarkMode}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(dt.tp),t.rXU(mt.up),t.rXU($.J))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-swish-button"]],inputs:{label:"label",stroked:"stroked"},outputs:{clicked:"clicked"},standalone:!1,decls:2,vars:2,consts:[["matButton","tonal","data-mom-test","MyPages_SwishButton"],["matButton","outlined","data-mom-test","MyPages_SwishButton",1,"mat-elevation-z2"],["matButton","tonal","data-mom-test","MyPages_SwishButton",3,"click"],["svgIcon","swishLogo",1,"swish-icon"],["matButton","outlined","data-mom-test","MyPages_SwishButton",1,"mat-elevation-z2",3,"click"],["svgIcon","swishLogoDark",1,"swish-icon"]],template:function(i,o){1&i&&(t.nVh(0,gt,2,2),t.nVh(1,ft,2,2)),2&i&&(t.vxM(o.isDarkmode?-1:0),t.R7$(),t.vxM(o.isDarkmode?1:-1))},dependencies:[V.An,I.$z],styles:[".swish-icon[_ngcontent-%COMP%]{font-size:24px;height:24px;width:24px}"]})}}return n})(),Ct=(()=>{class n{transform(e){return this.localeString(e)}localeString(e){if(""===e)return"";let i,o,r;for(i=(e+="").split("."),o=i[0],r=/(\d+)(\d{3})/;r.test(o);)o=o.replace(r,"$1.$2");return i}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=t.EJ8({name:"numberFormat",type:n,pure:!0,standalone:!1})}}return n})();function bt(n,a){if(1&n&&(t.j41(0,"div",4),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.invoice.Swish\u00c5terkommandeFel," ")}}function Rt(n,a){if(1&n&&(t.j41(0,"h4"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div"),t.EFF(4),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,2,"EXPIREDATE")),t.R7$(3),t.JRh(e.formatDate(e.invoice.F\u00f6rfallodag))}}function It(n,a){if(1&n&&(t.j41(0,"h4"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div"),t.EFF(4),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,2,"EXPIREDATEDEFERMENT")),t.R7$(3),t.JRh(e.formatDate(e.invoice.Anst\u00e5ndsdatum))}}function St(n,a){if(1&n){const e=t.RV6();t.j41(0,"taiga-swish-button",14),t.nI1(1,"translate"),t.bIt("clicked",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.createSwishPayment(o.invoice.Typ.AviseringId.toString()))}),t.k0s()}2&n&&t.Y8G("label",t.bMT(1,2,"PAYWITHSWISH"))("stroked",!1)}function Tt(n,a){if(1&n&&(t.j41(0,"div")(1,"div",15)(2,"div"),t.EFF(3),t.k0s(),t.j41(4,"div"),t.EFF(5),t.nI1(6,"numberFormat"),t.nI1(7,"translate"),t.k0s()(),t.nrm(8,"mat-divider"),t.k0s()),2&n){const e=a.$implicit;t.R7$(3),t.SpI(" ",e.Aviseringstext," "),t.R7$(2),t.Lme("",t.bMT(6,3,e.Bruttobelopp)," ",t.bMT(7,5,"KR"))}}function yt(n,a){if(1&n&&(t.j41(0,"div")(1,"h4")(2,"div"),t.EFF(3),t.k0s(),t.j41(4,"div"),t.EFF(5),t.k0s()(),t.Z7z(6,Tt,9,7,"div",null,t.fX1),t.k0s()),2&n){const e=a.$implicit;t.R7$(3),t.JRh(e.Hyresobjekt.Nummer),t.R7$(2),t.JRh(e.Hyresobjekt.Beteckning),t.R7$(),t.Dyx(e.Rader)}}function xt(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),t.EFF(3),t.k0s(),t.j41(4,"div",2),t.nrm(5,"taiga-pill-badge",3),t.nVh(6,bt,2,1,"div",4),t.k0s()(),t.j41(7,"mat-card-content")(8,"div",5)(9,"div",6)(10,"h4"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"div"),t.EFF(14),t.k0s(),t.nVh(15,Rt,5,4),t.nVh(16,It,5,4),t.j41(17,"h4"),t.EFF(18),t.k0s(),t.j41(19,"div"),t.EFF(20),t.k0s(),t.j41(21,"h4"),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"div"),t.EFF(25),t.k0s()(),t.j41(26,"div",6)(27,"h4"),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"div"),t.EFF(31),t.nI1(32,"numberFormat"),t.nI1(33,"translate"),t.k0s(),t.j41(34,"h4"),t.EFF(35),t.nI1(36,"translate"),t.k0s(),t.j41(37,"div"),t.EFF(38),t.nI1(39,"numberFormat"),t.nI1(40,"translate"),t.k0s(),t.j41(41,"h4"),t.EFF(42),t.nI1(43,"translate"),t.k0s(),t.j41(44,"div"),t.EFF(45),t.nI1(46,"numberFormat"),t.nI1(47,"translate"),t.k0s()(),t.j41(48,"div",7),t.nVh(49,St,2,4,"taiga-swish-button",8),t.nrm(50,"taiga-copy-button",9),t.nI1(51,"translate"),t.nI1(52,"translate"),t.j41(53,"button",10),t.nI1(54,"translate"),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.downloadPdf(o.invoice.Typ.AviseringId))}),t.EFF(55),t.nI1(56,"translate"),t.k0s()()(),t.nrm(57,"mat-divider"),t.j41(58,"mat-accordion",11)(59,"mat-expansion-panel",12)(60,"mat-expansion-panel-header",13),t.nI1(61,"translate"),t.j41(62,"mat-panel-title"),t.EFF(63),t.nI1(64,"translate"),t.k0s()(),t.Z7z(65,yt,8,2,"div",null,t.fX1),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(3),t.SpI(" ",e.invoice.Typ.Beteckning," "),t.R7$(2),t.HbH(e.getStatus(e.invoice.AttBetala,"color",e.invoice.F\u00f6rfallodag)),t.Y8G("text",t.mNQ(e.getStatus(e.invoice.AttBetala,"text",e.invoice.F\u00f6rfallodag))),t.R7$(),t.vxM(e.invoice.Swish\u00c5terkommandeFel?6:-1),t.R7$(5),t.JRh(t.bMT(12,46,"PE
1RIOD")),t.R7$(3),t.JRh(e.invoice.Reskontror[0].Period),t.R7$(),t.vxM(e.invoice.Anst\u00e5ndsdatum?-1:15),t.R7$(),t.vxM(e.invoice.Anst\u00e5ndsdatum?16:-1),t.R7$(2),t.JRh(e.invoice.Betalningsf\u00f6rmedlareBeteckning),t.R7$(2),t.JRh(e.invoice.MottagareNummer),t.R7$(2),t.JRh(t.bMT(23,48,"OCR")),t.R7$(3),t.JRh(e.invoice.Betalningsreferens),t.R7$(3),t.JRh(t.bMT(29,50,"AMOUNT")),t.R7$(3),t.Lme("",t.bMT(32,52,e.invoice.Bruttobelopp)," ",t.bMT(33,54,"KR")),t.R7$(4),t.JRh(t.bMT(36,56,"AMOUNTPAID")),t.R7$(3),t.Lme("",t.bMT(39,58,e.invoice.InbetaltBelopp)," ",t.bMT(40,60,"KR")),t.R7$(4),t.JRh(t.bMT(43,62,"LEFTTOPAY")),t.R7$(3),t.Lme("",t.bMT(46,64,e.invoice.AttBetala)," ",t.bMT(47,66,"KR")),t.R7$(3),t.AVh("full-width",e.mediaQueryService.isMobile()),t.R7$(),t.vxM(e.invoice.SwishKonfigurerad&&e.invoice.AttBetala>0?49:-1),t.R7$(),t.Y8G("text",t.mNQ(t.bMT(51,68,"COPYOCR")))("copyText",t.mNQ(e.invoice.Betalningsreferens))("eventLabel",t.mNQ(t.bMT(52,70,"COPYOCR")))("eventCategory",t.mNQ(e.category))("stroked",!1),t.R7$(3),t.Y8G("eventLabel",t.mNQ(t.bMT(54,72,"SHOW")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.Lme(" ",t.bMT(56,74,"SHOW")," ",null==e.invoice.Typ.Beteckning?null:e.invoice.Typ.Beteckning.toLowerCase()," "),t.R7$(5),t.Y8G("eventLabel",t.mNQ(t.bMT(61,76,"SPECIFICATION")))("eventCategory",t.mNQ(e.category)),t.R7$(3),t.SpI(" ",t.bMT(64,78,"SPECIFICATION")," "),t.R7$(2),t.Dyx(e.invoice.Reskontror)}}function Et(n,a){1&n&&(t.j41(0,"div",19),t.nrm(1,"taiga-spinner",20),t.k0s()),2&n&&(t.R7$(),t.Y8G("diameter",16))}function wt(n,a){if(1&n&&(t.j41(0,"div")(1,"div",15)(2,"div"),t.EFF(3),t.k0s(),t.j41(4,"div"),t.EFF(5),t.nI1(6,"numberFormat"),t.nI1(7,"translate"),t.k0s()(),t.nrm(8,"mat-divider"),t.k0s()),2&n){const e=a.$implicit;t.R7$(3),t.SpI(" ",e.text," "),t.R7$(2),t.Lme("",t.bMT(6,3,e.netAmount+e.vatAmount)," ",t.bMT(7,5,"KR"))}}function Mt(n,a){if(1&n&&(t.j41(0,"div")(1,"h4")(2,"div"),t.EFF(3),t.k0s(),t.j41(4,"div"),t.EFF(5),t.k0s()(),t.Z7z(6,wt,9,7,"div",null,t.fX1),t.k0s()),2&n){const e=a.$implicit;t.R7$(3),t.JRh(e.number),t.R7$(2),t.JRh(e.displayName),t.R7$(),t.Dyx(e.rows)}}function Pt(n,a){if(1&n&&t.Z7z(0,Mt,8,2,"div",null,t.fX1),2&n){const e=t.XpG(2);t.Dyx(e.ledgers)}}function kt(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),t.EFF(3),t.k0s(),t.nrm(4,"taiga-pill-badge",3),t.k0s(),t.j41(5,"mat-card-content")(6,"div",5)(7,"div",6)(8,"h4"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"div"),t.EFF(12),t.k0s(),t.j41(13,"h4"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"div"),t.EFF(17),t.k0s(),t.j41(18,"h4"),t.EFF(19),t.k0s(),t.j41(20,"div"),t.EFF(21),t.k0s()(),t.j41(22,"div",6)(23,"h4"),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"div"),t.EFF(27),t.k0s(),t.j41(28,"h4"),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.j41(31,"div"),t.EFF(32),t.nI1(33,"numberFormat"),t.nI1(34,"translate"),t.k0s(),t.j41(35,"h4"),t.EFF(36),t.nI1(37,"translate"),t.k0s(),t.j41(38,"div"),t.EFF(39),t.nI1(40,"numberFormat"),t.nI1(41,"translate"),t.k0s()(),t.j41(42,"div",7),t.nrm(43,"taiga-copy-button",16),t.nI1(44,"translate"),t.nI1(45,"translate"),t.j41(46,"button",17),t.nI1(47,"translate"),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.downloadPdf(o.invoiceGQL.number))}),t.EFF(48),t.nI1(49,"translate"),t.k0s()()(),t.nrm(50,"mat-divider"),t.j41(51,"mat-accordion",11)(52,"mat-expansion-panel",18),t.bIt("opened",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.getSpecification(null==o.invoiceGQL.number?null:o.invoiceGQL.number.toString()))}),t.j41(53,"mat-expansion-panel-header",13),t.nI1(54,"translate"),t.j41(55,"mat-panel-title"),t.EFF(56),t.nI1(57,"translate"),t.k0s()(),t.nVh(58,Et,2,1,"div",19),t.nVh(59,Pt,2,0),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(3),t.SpI(" ",e.invoiceGQL.type.displayName," "),t.R7$(),t.HbH(e.getStatus(e.invoiceGQL.toPay,"color",e.invoiceGQL.due)),t.Y8G("text",t.mNQ(e.getStatus(e.invoiceGQL.toPay,"text",e.invoiceGQL.due))),t.R7$(5),t.JRh(t.bMT(10,42,"PERIOD")),t.R7$(3),t.JRh(e.invoiceGQL.accountingPeriod.displayName),t.R7$(2),t.JRh(t.bMT(15,44,"EXPIREDATE")),t.R7$(3),t.JRh(e.formatDate(e.invoiceGQL.due)),t.R7$(2),t.JRh(e.invoiceGQL.payToTypeDisplayName??"-"),t.R7$(2),t.JRh(e.invoiceGQL.payToNumber),t.R7$(3),t.JRh(t.bMT(25,46,"OCR")),t.R7$(3),t.JRh(e.invoiceGQL.referenceNumber),t.R7$(2),t.JRh(t.bMT(30,48,"AMOUNT")),t.R7$(3),t.Lme("",t.bMT(33,50,e.invoiceGQL.balanceAmount)," ",t.bMT(34,52,"KR")),t.R7$(4),t.JRh(t.bMT(37,54,"LEFTTOPAY")),t.R7$(3),t.Lme("",t.bMT(40,56,e.invoiceGQL.toPay)," ",t.bMT(41,58,"KR")),t.R7$(3),t.AVh("full-width",e.mediaQueryService.isMobile()),t.R7$(),t.Y8G("text",t.mNQ(t.bMT(44,60,"COPYOCR")))("copyText",t.mNQ(e.invoiceGQL.referenceNumber))("eventLabel",t.mNQ(t.bMT(45,62,"COPYOCR")))("eventCategory",t.mNQ(e.category)),t.R7$(3),t.Y8G("eventLabel",t.mNQ(t.bMT(47,64,"SHOW")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.Lme(" ",t.bMT(49,66,"SHOW")," ",e.invoiceGQL.type.displayName.toLowerCase()," "),t.R7$(5),t.Y8G("eventLabel",t.mNQ(t.bMT(54,68,"SPECIFICATION")))("eventCategory",t.mNQ(e.category)),t.R7$(3),t.SpI(" ",t.bMT(57,70,"SPECIFICATION")," "),t.R7$(2),t.vxM(e.showSpinner?58:-1),t.R7$(),t.vxM(e.ledgers.length>0?59:-1)}}let Ft=(()=>{class n{constructor(e,i,o,r,p,l,b,y){this.invoiceService=e,this.mediaQueryService=i,this.translate=o,this.fileService=r,this.dialog=p,this.router=l,this.route=b,this.cacheService=y,this.ledgers=[],this.SWISH_PAYMENT_REQUEST="SWISH_PAYMENT_REQUEST",this.SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID="SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID",this.SWISH_PAYMENT_REQUEST_EXPIRE_TIME="SWISH_PAYMENT_REQUEST_EXPIRE_TIME",this.category=this.translate.instant("INVOICE")}ngOnInit(){const e=JSON.parse(sessionStorage.getItem(this.SWISH_PAYMENT_REQUEST)),i=sessionStorage.getItem(this.SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID),o=sessionStorage.getItem(this.SWISH_PAYMENT_REQUEST_EXPIRE_TIME);e&&i===this.invoice?.Typ?.AviseringId?.toString()&&o&&(+o>Date.now()?this.continueSwishPayment(e):(sessionStorage.removeItem(this.SWISH_PAYMENT_REQUEST),sessionStorage.removeItem(this.SWISH_PAYMENT_REQUEST_LEDGER_NOTE_ID),sessionStorage.removeItem(this.SWISH_PAYMENT_REQUEST_EXPIRE_TIME)))}formatDate(e){return g()(e).format("YYYY-MM-DD")}downloadPdf(e){this.invoiceService.getInvoicePdf(e).subscribe(i=>{this.fileService.saveBlobWithFilename(i,`Reskontra_${e}.pdf`)})}getStatus(e,i,o){const r=e>0,p=g()(o).endOf("day").isBefore(new Date);return r&&p?"color"===i?"badge-warn":this.translate.instant("OVERDUE"):r?"color"===i?"badge-info":this.translate.instant("UNPAIDSTATUS"):"color"===i?"badge-success":this.translate.instant("PAIDSTATUS")}getSpecification(e){this.ledgers.length>0||(this.showSpinner=!0,this.invoiceService.fetchLedgerRowAggregatedByLedgerN
1oteNumber(e).pipe((0,v.W)(i=>{throw this.showSpinner=!1,i})).subscribe(i=>{this.showSpinner=!1;for(const o of this.invoiceGQL.ledgers.nodes){let r,p,l,b=o.ledger?.object;b?(r=b.number,p=b.displayName,l=i?.data?.ledgerRowAggregatedByLedgerNoteNumber?.filter(y=>y.refersToObjectId===o.ledger.object.id)):l=i?.data?.ledgerRowAggregatedByLedgerNoteNumber,l?.length>0&&(l.sort((y,Se)=>Se.netAmount-y.netAmount),this.ledgers.push({number:r,displayName:p,rows:l}))}}))}createSwishPayment(e){this.dialog.open(A,{data:{ledgerNoteId:e},disableClose:!0}).afterClosed().subscribe(o=>{o&&"success"===o&&this.invoiceService.clearSessionCache().subscribe(()=>{this.cacheService.clear();const r=U.Q.generateUniqueId();this.router.navigate([],{relativeTo:this.route,queryParams:{[r]:""},queryParamsHandling:"merge"})})})}continueSwishPayment(e){this.dialog.open(A,{data:{swishPaymentRequest:e},disableClose:!0}).afterClosed().subscribe(o=>{o&&"success"===o&&this.invoiceService.clearSessionCache().subscribe(()=>{this.cacheService.clear();const r=U.Q.generateUniqueId();this.router.navigate([],{relativeTo:this.route,queryParams:{[r]:""},queryParamsHandling:"merge"})})})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(P.p),t.rXU(h.M),t.rXU(m.c$),t.rXU(G.E),t.rXU(C.bZ),t.rXU(_.Ix),t.rXU(_.nX),t.rXU(ot._))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-invoice-item"]],inputs:{invoiceGQL:"invoiceGQL",invoice:"invoice"},standalone:!1,decls:2,vars:2,consts:[[1,"invoice-card"],[1,"card-title"],[1,"status-column"],[3,"text"],[1,"error-message"],[1,"flex-contaioner"],[1,"flex-item"],[1,"button-row"],[3,"label","stroked"],["taigaEventTracker","",3,"text","copyText","stroked","eventLabel","eventCategory"],["matButton","tonal","taigaEventTracker","","data-mom-test","MyPages_Payments_ShowRentStatement",1,"mat-elevation-z2",3,"click","eventLabel","eventCategory"],["togglePosition","before"],[1,"mat-elevation-z0"],["taigaEventTracker","",3,"eventLabel","eventCategory"],[3,"clicked","label","stroked"],[1,"specification-container"],["taigaEventTracker","",3,"text","copyText","eventLabel","eventCategory"],["mat-raised-button","","color","primary","taigaEventTracker","","data-mom-test","MyPages_Payments_ShowRentStatement",3,"click","eventLabel","eventCategory"],[1,"mat-elevation-z0",3,"opened"],[1,"spinner"],[3,"diameter"]],template:function(i,o){1&i&&(t.nVh(0,xt,67,80,"mat-card",0),t.nVh(1,kt,60,72,"mat-card",0)),2&i&&(t.vxM(o.invoice?0:-1),t.R7$(),t.vxM(o.invoiceGQL?1:-1))},dependencies:[at.Y,lt,pt.q,I.$z,S.RN,S.m2,S.MM,S.dh,w.BS,w.GK,w.Z2,w.WN,O.u,T.t,Q,m.D9,Ct],styles:[".flex-contaioner[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.flex-item[_ngcontent-%COMP%]{margin:0 5px}.status[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between}.button-row[_ngcontent-%COMP%]{margin:10px 0 0;align-items:flex-end;display:flex;flex-wrap:wrap}.button-row[_ngcontent-%COMP%]   taiga-swish-button[_ngcontent-%COMP%], taiga-copy-button[_ngcontent-%COMP%]{margin-right:5px}.button-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], taiga-copy-button[_ngcontent-%COMP%]{margin-top:5px}.full-width[_ngcontent-%COMP%]{width:100%}.error-message[_ngcontent-%COMP%]{margin-top:8px;font-size:.85em;color:var(--mat-sys-error)}.mat-success[_ngcontent-%COMP%]{background-color:#d4edda}.mat-warn[_ngcontent-%COMP%]{background-color:#b82e2e;color:#fff!important}.card-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.status-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.invoice-card[_ngcontent-%COMP%]{margin:16px 0}.specification-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:5px}h4[_ngcontent-%COMP%]{margin:10px 0 0;font-weight:700}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center}"]})}}return n})();function $t(n,a){1&n&&t.nrm(0,"taiga-invoice-item",0),2&n&&t.Y8G("invoice",a.$implicit)}function jt(n,a){1&n&&t.nrm(0,"taiga-invoice-item",1),2&n&&t.Y8G("invoiceGQL",a.$implicit)}let Nt=(()=>{class n{constructor(e,i,o,r){this.invoiceService=e,this.mediaQueryService=i,this.translate=o,this.fileService=r,this.category=this.translate.instant("INVOICE")}formatDate(e){return g()(e).format("YYYY-MM-DD")}downloadPdf(e){this.invoiceService.getInvoicePdf(e).subscribe(i=>{this.fileService.saveBlobWithFilename(i,`Reskontra_${e}.pdf`)})}getStatus(e,i){return e>0?"color"===i?"badge-warn":this.translate.instant("UNPAIDSTATUS"):"color"===i?"badge-success":this.translate.instant("PAIDSTATUS")}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(P.p),t.rXU(h.M),t.rXU(m.c$),t.rXU(G.E))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-invoice-list"]],inputs:{invoices:"invoices",invoicesGQL:"invoicesGQL"},standalone:!1,decls:4,vars:0,consts:[[3,"invoice"],[3,"invoiceGQL"]],template:function(i,o){1&i&&(t.Z7z(0,$t,1,1,"taiga-invoice-item",0,t.fX1),t.Z7z(2,jt,1,1,"taiga-invoice-item",1,t.fX1)),2&i&&(t.Dyx(o.invoices),t.R7$(2),t.Dyx(o.invoicesGQL))},dependencies:[Ft],styles:[".flex-contaioner[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.flex-item[_ngcontent-%COMP%]{margin:0 5px}.status[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between}.button-row[_ngcontent-%COMP%]{margin:10px 0 0;align-items:flex-end;display:flex;justify-content:space-between}.button-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:5px}.full-width[_ngcontent-%COMP%]{width:100%}.mat-success[_ngcontent-%COMP%]{background-color:#d4edda}.mat-warn[_ngcontent-%COMP%]{background-color:#b82e2e;color:#fff!important}.card-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.invoice-card[_ngcontent-%COMP%]{margin:10px 0}.specification-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:5px}h4[_ngcontent-%COMP%]{margin:10px 0 0;font-weight:700}"]})}}return n})();var Ot=c(8709),Gt=c(6090),X=c(9588),Dt=c(6183),Lt=c(3029);function Bt(n,a){if(1&n&&(t.j41(0,"mat-option",6),t.EFF(1),t.k0s()),2&n){const e=a.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(e)}}function At(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",2)(1,"p",3),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-form-field",4)(5,"mat-label"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"mat-select",5),t.mxI("valueChange",function(o){s.eBV(e);const r=t.XpG();return t.DH7(r.preferredDebitDayOfMonth,o)||(r.preferredDebitDayOfMonth=o),s.Njj(o)}),t.Z7z(9,Bt,2,2,"mat-option",6,t.fX1),t.k0s()()(),t.j41(11,"div",7)(12,"button",8),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.confirmDay())}),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"button",9),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.cancel())}),t.EFF(16),t.nI1(17,"translate"),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,5,"SWISHRECURRINGSELECTDAYDESCRIPTION")),t.R7$(4),t.JRh(t.bMT(7,7,"SWISHRECURRING_PREFERRED_DAY")),t.R7$(2),t.R50("value",e.preferredDebitDayOfMonth),t.R7$(),t.Dyx(e.daysOfMonth),t.R7$(4),t.SpI(" ",t.bMT(14,9,"SWISHRECURRING_CONTINUE")," "),t.R7$(3),t.SpI(" ",t.bMT(17,11,"CANCEL")," ")}}function Ut(n,a){1&n&&t.nrm(0,"taiga-spinner",12),2&n&&t.Y8G("diameter",36)}function Vt(n,a){if(1&n&&(t.j41(0,"div"),t.nrm(1,"img",14),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("src",e.qrCode,t.B4B)("alt",t.bMT(2,2,"SWISHQRCODE"))}}function Qt(n,a){if(1&n&&(t.j41(0,"div",13),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.error," ")}}function Xt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",10)(1,"div",11),t.nVh(2,Ut,1,1,"taiga-spinner",12),t.nVh(3,Vt,3,4,"div"),t.nVh(4,Qt,2,1,"div",13),t.k0s()(),t.j41(5,"div",7)(6,"button",9),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.cancel())}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(2),t.vxM(e.showSpinner?2:-1),t.R7$(),t.vxM(!e.qrCode||e.showSpinner||e.error?-1:3),t.R7$(),t.vxM(e.error?4:-1),t.R7$(3),t.SpI(" ",t.bMT(8,4,e.error?"CLOSE":"CANCEL")," ")}}function Yt(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",15)(2,"div",16),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",7)(6,"button",9),t.bIt("click",function(){s.eBV(e);const o=t.XpG();return s.Njj(o.closeDialog())}),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.bVm()}2&n&&(t.R7$(3),t.SpI(" ",t.bMT(4,2,"SWISHRECURRINGSUCCESS")," "),t.R7$(4),t.JRh(t.bMT(8,4,"CLOSE")))}let Ht=(()=>{class n{constructor(e,i,o,r,p){this.swishService=e,this.dialogRef=i,this.styleService=o,this.translate=r,this.mediaQueryService=p,this.cancelEvent=ne
1w R.B,this.completeEvent=new R.B,this.componentDestroyed=new R.B,this.step="selectDay",this.preferredDebitDayOfMonth=28,this.daysOfMonth=Array.from({length:28},(l,b)=>b+1),this.swishLogoPath=this.styleService.isDarkMode?"assets/img/swish-primary-dark.svg":"assets/img/swish-primary.svg"}confirmDay(){this.step="consent",this.initiateConsent()}ngOnDestroy(){this.componentDestroyed.next(!0)}initiateConsent(){this.showSpinner=!0,this.swishService.postRecurringConsent(this.preferredDebitDayOfMonth.toString()).pipe((0,v.W)(e=>{throw this.showSpinner=!1,this.error=this.translate.instant("SWISHRECURRING_ERROR"),e})).subscribe(e=>{if(this.showSpinner=!1,e){if(e.error)return void(this.error=e.error);e.qrCode&&(this.qrCode=e.qrCode),e.token&&this.mediaQueryService.isMobile()&&(this.swishAppUrl=`https://app.swish.nu/1/r/sw/?sw=${e.token}&ret=${encodeURIComponent(window.location.href)}`,this.openSwishApp()),this.startPolling()}})}startPolling(){(0,k.O)(1e3,2e3).pipe((0,D.H)(()=>this.swishService.getRecurringConsentStatus()),(0,L.Q)((0,B.h)(this.cancelEvent,this.completeEvent,this.componentDestroyed))).subscribe(e=>{e?.active&&(this.completeEvent.next(!0),this.consentCompleted=!0),e.status||(this.cancelEvent.next(!0),this.error=this.translate.instant("SWISHRECURRING_ACTIVATION_ERROR"))})}cancel(){this.cancelEvent.next(!0),this.dialogRef.close("")}closeDialog(){this.dialogRef.close("success")}openSwishApp(){try{window.open(this.swishAppUrl,"_parent")}catch{}}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(F),t.rXU(C.CP),t.rXU($.J),t.rXU(m.c$),t.rXU(h.M))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-swish-recurring-dialog"]],standalone:!1,decls:7,vars:7,consts:[[1,"swish-logo-container"],["width","64","height","64",3,"src","alt"],[1,"day-selection-wrapper"],[1,"day-selection-description"],["appearance","outline",1,"day-select-field"],[3,"valueChange","value"],[3,"value"],[1,"buttons-container"],["mat-flat-button","","color","primary",3,"click"],["mat-button","","color","primary",3,"click"],[1,"qr-code-wrapper"],[1,"qr-code-container"],[3,"diameter"],[2,"word-break","break-word"],["width","180","height","180",1,"qr-code",3,"src","alt"],[1,"success-wrapper"],[1,"success-container"]],template:function(i,o){1&i&&(t.j41(0,"mat-dialog-content")(1,"div",0),t.nrm(2,"img",1),t.nI1(3,"translate"),t.k0s(),t.nVh(4,At,18,13),t.nVh(5,Xt,9,6),t.nVh(6,Yt,9,6,"ng-container"),t.k0s()),2&i&&(t.R7$(2),t.Y8G("src",o.swishLogoPath,t.B4B)("alt",t.bMT(3,5,"SWISHLOGO")),t.R7$(2),t.vxM("selectDay"===o.step?4:-1),t.R7$(),t.vxM("consent"!==o.step||o.consentCompleted?-1:5),t.R7$(),t.vxM(o.consentCompleted?6:-1))},dependencies:[I.$z,X.rl,X.nJ,Dt.VO,Lt.wT,C.Yi,T.t,m.D9],styles:[".day-selection-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:20px}.day-selection-description[_ngcontent-%COMP%]{text-align:center;margin-bottom:16px}.day-select-field[_ngcontent-%COMP%]{width:160px}.qr-code-wrapper[_ngcontent-%COMP%], .success-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-top:25px}.qr-code-container[_ngcontent-%COMP%], .success-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:200px;width:200px}.buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.buttons-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:15px}.swish-logo-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.qr-code[_ngcontent-%COMP%]{padding:15px;background-color:#fff}"]})}}return n})();const Wt=n=>({day:n});function Jt(n,a){1&n&&t.nrm(0,"taiga-spinner",3),2&n&&t.Y8G("diameter",20)}function zt(n,a){if(1&n&&(t.j41(0,"span",10),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(3);t.R7$(),t.SpI(" ",t.i5U(2,1,"SWISHRECURRINGACTIVEDAY",t.eq3(4,Wt,e.status.preferredDebitDayOfMonth))," ")}}function qt(n,a){if(1&n&&(t.j41(0,"span",6)(1,"span",8)(2,"mat-icon",9),t.EFF(3,"check_circle"),t.k0s(),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nVh(6,zt,3,6,"span",10),t.k0s()),2&n){const e=t.XpG(2);t.R7$(4),t.SpI(" ",t.bMT(5,2,"SWISHRECURRINGACTIVESTATUS")," "),t.R7$(2),t.vxM(null!=e.status&&e.status.preferredDebitDayOfMonth?6:-1)}}function Kt(n,a){1&n&&(t.j41(0,"span",7)(1,"span",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",10),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&n&&(t.R7$(2),t.JRh(t.bMT(3,2,"SWISHRECURRINGTITLE")),t.R7$(3),t.JRh(t.bMT(6,4,"SWISHRECURRINGDESCRIPTION")))}function Zt(n,a){if(1&n&&(t.qex(0),t.nVh(1,qt,7,4,"span",6),t.nVh(2,Kt,7,6,"span",7),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.vxM(e.isActive?1:-1),t.R7$(),t.vxM(e.isActive?-1:2)}}function te(n,a){if(1&n){const e=t.RV6();t.j41(0,"taiga-swish-button",14),t.nI1(1,"translate"),t.bIt("clicked",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.openActivateDialog())}),t.k0s()}2&n&&t.Y8G("label",t.bMT(1,1,"SWISHRECURRING_ACTIVATE"))}function ee(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",15),t.bIt("click",function(){s.eBV(e);const o=t.XpG(2);return s.Njj(o.openDeactivateConfirm())}),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"mat-icon"),t.EFF(4,"cancel"),t.k0s()()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"SWISHRECURRING_DEACTIVATE")," "))}function ne(n,a){if(1&n&&(t.j41(0,"div",4),t.nVh(1,te,2,3,"taiga-swish-button",12),t.nVh(2,ee,5,3,"button",13),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.vxM(e.isActive||e.error?-1:1),t.R7$(),t.vxM(e.isActive?2:-1)}}function ie(n,a){1&n&&(t.j41(0,"div",5),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"SWISHRECURRING_ERROR")," "))}let oe=(()=>{class n{constructor(e,i,o){this.swishService=e,this.dialog=i,this.translate=o}ngOnInit(){this.fetchStatus()}get isActive(){return!0===this.status?.active}fetchStatus(){this.loading=!0,this.error=!1,this.swishService.getRecurringConsentStatus().pipe((0,v.W)(e=>{throw this.loading=!1,this.error=!0,e})).subscribe(e=>{this.loading=!1,this.status=e})}openActivateDialog(){this.dialog.open(Ht,{disableClose:!0,ariaLabel:this.translate.instant("SWISHRECURRINGTITLE")}).afterClosed().subscribe(i=>
1{"success"===i&&this.fetchStatus()})}openDeactivateConfirm(){this.dialog.open(Ot.w,{data:{heading:this.translate.instant("SWISHRECURRINGDEACTIVATECONFIRMTITLE"),text:this.translate.instant("SWISHRECURRINGDEACTIVATECONFIRMMESSAGE"),dialogChoices:Gt.$.YesNo},ariaLabel:this.translate.instant("SWISHRECURRINGDEACTIVATECONFIRMTITLE")}).afterClosed().subscribe(i=>{"yes"===i&&this.deactivate()})}deactivate(){this.loading=!0,this.error=!1,this.swishService.deleteRecurringConsent().pipe((0,v.W)(()=>{throw this.loading=!1,this.error=!0,new Error})).subscribe(()=>{this.fetchStatus()})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(F),t.rXU(C.bZ),t.rXU(m.c$))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-swish-recurring-banner"]],standalone:!1,decls:8,vars:4,consts:[[1,"recurring-banner"],[1,"banner-content"],[1,"banner-left"],[3,"diameter"],[1,"banner-right"],[1,"error-message"],[1,"active-label"],[1,"inactive-label"],[1,"active-indicator"],[1,"active-icon"],[1,"banner-description"],[1,"banner-title"],[3,"label"],["matButton","tonal",1,"mat-elevation-z2","deactivate-button"],[3,"clicked","label"],["matButton","tonal",1,"mat-elevation-z2","deactivate-button",3,"click"]],template:function(i,o){1&i&&(t.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2),t.nVh(4,Jt,1,1,"taiga-spinner",3),t.nVh(5,Zt,3,2,"ng-container"),t.k0s(),t.nVh(6,ne,3,2,"div",4),t.k0s(),t.nVh(7,ie,3,3,"div",5),t.k0s()()),2&i&&(t.R7$(4),t.vxM(o.loading?4:-1),t.R7$(),t.vxM(o.loading?-1:5),t.R7$(),t.vxM(o.loading?-1:6),t.R7$(),t.vxM(o.error?7:-1))},dependencies:[V.An,I.$z,S.RN,S.m2,T.t,Q,m.D9],styles:[".recurring-banner[_ngcontent-%COMP%]{margin-bottom:16px}.banner-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-height:50px}.banner-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex:1}.banner-right[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0}.active-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-weight:500}.active-icon[_ngcontent-%COMP%]{color:#218739;font-size:20px;width:20px;height:20px;overflow:visible}.active-label[_ngcontent-%COMP%], .inactive-label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.banner-title[_ngcontent-%COMP%]{font-weight:500}.banner-description[_ngcontent-%COMP%]{font-size:.85em;opacity:.75}.error-message[_ngcontent-%COMP%]{margin-top:8px;font-size:.85em;color:var(--mat-sys-error)}"]})}}return n})();const ae=()=>[1,5,10,25,100];function se(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-chip-option",13),t.bIt("click",function(){const o=s.eBV(e).$implicit,r=t.XpG
1(2);return o.selected=!o.selected,s.Njj(r.changeSelected(r.chips))}),t.EFF(1),t.k0s()}if(2&n){const e=a.$implicit;t.Y8G("selected",e.selected),t.R7$(),t.SpI(" ",e.chipText," ")}}function re(n,a){1&n&&t.nrm(0,"taiga-swish-recurring-banner")}function ce(n,a){1&n&&(t.j41(0,"div",12),t.nrm(1,"taiga-spinner"),t.k0s())}function le(n,a){if(1&n&&t.nrm(0,"taiga-invoice-list",14),2&n){const e=t.XpG(3);t.Y8G("invoices",e.visibleUnPaidInvoices)}}function pe(n,a){if(1&n&&t.nrm(0,"taiga-invoice-list",14),2&n){const e=t.XpG(3);t.Y8G("invoices",e.visibleLapsedInvoices)}}function de(n,a){if(1&n&&t.nrm(0,"taiga-invoice-list",14),2&n){const e=t.XpG(3);t.Y8G("invoices",e.visiblePaidInvoices)}}function me(n,a){if(1&n&&(t.nVh(0,le,1,1,"taiga-invoice-list",14),t.nVh(1,pe,1,1,"taiga-invoice-list",14),t.nVh(2,de,1,1,"taiga-invoice-list",14)),2&n){t.XpG();const e=t.sdS(10);t.vxM("unpaid"===e.value||"all"===e.value?0:-1),t.R7$(),t.vxM("lapsed"===e.value?1:-1),t.R7$(),t.vxM("paid"===e.value||"all"===e.value?2:-1)}}function he(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",2)(2,"div"),t.nrm(3,"taiga-medium-header",3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nI1(6,"translate"),t.k0s()(),t.nrm(7,"taiga-page-cards"),t.j41(8,"div")(9,"mat-button-toggle-group",4,0),t.bIt("change",function(o){s.eBV(e);const r=t.XpG();return s.Njj(r.changePaymentType(o.value))}),t.j41(11,"mat-button-toggle",5),t.nI1(12,"translate"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"mat-button-toggle",6),t.nI1(16,"translate"),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"mat-button-toggle",7),t.nI1(20,"translate"),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.j41(23,"mat-button-toggle",8),t.nI1(24,"translate"),t.EFF(25),t.nI1(26,"translate"),t.k0s()()(),t.j41(27,"div",9)(28,"mat-chip-listbox",10),t.nI1(29,"translate"),t.Z7z(30,se,2,2,"mat-chip-option",11,t.fX1),t.k0s()(),t.nVh(32,re,1,0,"taiga-swish-recurring-banner"),t.nVh(33,ce,2,0,"div",12),t.nVh(34,me,3,3),t.k0s()}if(2&n){const e=t.XpG();t.AVh("is-mobile",e.mediaQueryService.isMobile())("is-desktop",!e.mediaQueryService.isMobile()),t.R7$(3),t.Y8G("text",t.mNQ(t.bMT(4,36,"INVOICE")))("subText",t.VFN("",t.bMT(5,38,"BALANCE")," ",e.balance," ",t.bMT(6,40,"KR"))),t.R7$(6),t.Y8G("value",e.selectedPaymentType),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(12,42,"UNPAID")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(14,44,"UNPAID")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(16,46,"LAPSED")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(18,48,"LAPSED")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(20,50,"PAID")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(22,52,"PAID")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(24,54,"ALL")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(26,56,"ALL")),t.R7$(3),t.Y8G("selectable",!0),t.BMQ("aria-label",t.bMT(29,58,"SELECTINVOICETYPES")),t.R7$(2),t.Dyx(e.chips),t.R7$(2),t.vxM(e.swishConfigured?32:-1),t.R7$(),t.vxM(e.showSpinner?33:-1),t.R7$(),t.vxM(e.showSpinner?-1:34)}}function ue(n,a){if(1&n){const e=t.RV6();t.j41(0,"mat-chip-option",13),t.bIt("click",function(){const o=s.eBV(e).$implicit,r=t.XpG
1(2);return o.selected=!o.selected,s.Njj(r.changeSelectedGQL(r.chips))}),t.EFF(1),t.k0s()}if(2&n){const e=a.$implicit;t.Y8G("selected",e.selected),t.R7$(),t.SpI(" ",e.chipText," ")}}function ge(n,a){1&n&&t.nrm(0,"taiga-swish-recurring-banner")}function ve(n,a){1&n&&(t.j41(0,"div",12),t.nrm(1,"taiga-spinner"),t.k0s())}function _e(n,a){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",2)(2,"div"),t.nrm(3,"taiga-medium-header",3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nI1(6,"translate"),t.k0s()(),t.nrm(7,"taiga-page-cards"),t.j41(8,"div")(9,"mat-button-toggle-group",4,0),t.bIt("change",function(o){s.eBV(e);const r=t.XpG();return s.Njj(r.changeInvoices(o.value))}),t.j41(11,"mat-button-toggle",5),t.nI1(12,"translate"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"mat-button-toggle",6),t.nI1(16,"translate"),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"mat-button-toggle",7),t.nI1(20,"translate"),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.j41(23,"mat-button-toggle",8),t.nI1(24,"translate"),t.EFF(25),t.nI1(26,"translate"),t.k0s()()(),t.j41(27,"div",9)(28,"mat-chip-listbox",10),t.Z7z(29,ue,2,2,"mat-chip-option",11,t.fX1),t.k0s()(),t.nVh(31,ge,1,0,"taiga-swish-recurring-banner"),t.qex(32),t.nVh(33,ve,2,0,"div",12),t.nrm(34,"taiga-invoice-list",15),t.j41(35,"mat-paginator",16),t.bIt("page",function(o){s.eBV(e);const r=t.XpG();return s.Njj(r.onPageChange(o))}),t.k0s(),t.bVm(),t.k0s()}if(2&n){const e=t.XpG();t.AVh("is-mobile",e.mediaQueryService.isMobile())("is-desktop",!e.mediaQueryService.isMobile()),t.R7$(3),t.Y8G("text",t.mNQ(t.bMT(4,39,"INVOICE")))("subText",t.VFN("",t.bMT(5,41,"BALANCE")," ",e.balance," ",t.bMT(6,43,"KR"))),t.R7$(6),t.Y8G("value",e.selectedPaymentType),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(12,45,"UNPAID")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(14,47,"UNPAID")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(16,49,"LAPSED")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(18,51,"LAPSED")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(20,53,"PAID")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(22,55,"PAID")),t.R7$(2),t.Y8G("eventLabel",t.mNQ(t.bMT(24,57,"ALL")))("eventCategory",t.mNQ(e.category)),t.R7$(2),t.JRh(t.bMT(26,59,"ALL")),t.R7$(3),t.Y8G("selectable",!0),t.R7$(),t.Dyx(e.chips),t.R7$(2),t.vxM(e.swishConfigured?31:-1),t.R7$(2),t.vxM(e.showSpinner?33:-1),t.R7$(),t.Y8G("invoicesGQL",e.invoicesGQL),t.R7$(),t.Y8G("length",e.invoicesCount)("pageIndex",e.page-1)("pageSize",e.pageSize)("pageSizeOptions",t.lJ4(61,ae))}}let fe=(()=>{class n{constructor(e,i,o,r,p,l){this.route=e,this.mediaQueryService=i,this.translate=o,this.invoiceService=r,this.clientConfigurationService=p,this.router=l,this.selectedPaymentType="unpaid",this.chips=[],this.pageSize=10,this.category=this.translate.instant("INVOICE")}ngOnInit(){this.selectedPaymentType=this.route.snapshot.queryParams.selectedPaymentType??"unpaid",this.clientConfigurationService.getClientConfigurationFeatures().subscribe(e=>{this.useGraphQL=e?.graphQL?.enabled,this.useGraphQL=!1,this.swishConfigured=e?.swishRecurringPayments?.enabled,this.useGraphQL&&(this.invoiceService.fetchTotalCountLedgerNotes(this.selectedPaymentType).subscribe(i=>{this.invoicesCount=i.data.ledgerNotes.totalCount}),this.invoiceService.fetchToPay().subscribe(i=>{this.balance=i?.data?.actors?.nodes[0]?.economy?.toPay}),this.invoiceService.fetchTotalCountLedgerNotes("all").subscribe(i=>{this.invoiceService.fetchLedgerNotesTypes(i.data.ledgerNotes.totalCount).subscribe(o=>{const r=[...new Set(o.data.ledgerNotes.nodes.map(p=>p.type.displayName))];for(const p of r)this.chips.push({chipText:p??this.translate.instant("OTHER"),chipType:p,selected:!0})})})),this.route.queryParams.subscribe(i=>{this.pageSize=i.pageSize??this.pageSize,this.page=this.route.snapshot.queryParams.page??1,this.before=i.before??null,this.after=i.after??null,this.useGraphQL?(this.showSpinner=!0,this.invoiceService.fetchLedgerNotes(this.after||!this.before&&!this.after?+this.pageSize:null,this.before?+this.pageSize:null,this.before,this.after,this.selectedPaymentType,this.chips.filter(o=>!o.selected).map(o=>o.chipText)).pipe((0,v.W)(o=>{throw this.showSpinner=!1,o})).subscribe(o=>{this.showSpinner=!1,this.invoicesGQL=o.data.ledgerNotes.nodes,this.before=o.data.ledgerNotes.pageInfo.startCursor,this.after=o.data.ledgerNotes.pageInfo.endCursor})):(this.showSpinner=!0,this.invoiceService.getInvoices().pipe((0,v.W)(o=>{throw this.showSpinner=!1,o})).subscribe(o=>{if(this.showSpinner=!1,o){const r=o.Kund.Ekonomi;this.invoices=r.Aviseringar,this.balance=r.Hyressaldo+r.Fakturasaldo,this.unPaidInvoices=this.invoices.filter(l=>l.AttBetala>0),this.lapsedInvoices=this.invoices.filter(l=>l.AttBetala>0&&g()(l.F\u00f6rfallodag).endOf("day").isBefore(new Date)),this.paidInvoices=this.invoices.filter(l=>0===l.AttBetala),this.visibleUnPaidInvoices=this.unPaidInvoices,this.visibleLapsedInvoices=this.lapsedInvoices,this.visiblePaidInvoices=this.paidInvoices,this.route.
1snapshot.queryParams.selectedPaymentType||(this.selectedPaymentType=this.unPaidInvoices.length>0?"unpaid":"all");const p=[...new Set(this.invoices.map(l=>l.Typ.Beteckning))];this.chips=[];for(const l of p)this.chips.push({chipText:l??this.translate.instant("OTHER"),chipType:l,selected:!0})}}))})})}ngAfterViewInit(){this.useGraphQL&&(this.paginator._intl.itemsPerPageLabel=null,this.paginator._intl.nextPageLabel=this.translate.instant("NEXTPAGE"),this.paginator._intl.previousPageLabel=this.translate.instant("PREVIOUSPAGE"),this.paginator._intl.getRangeLabel=(e,i,o)=>{if(0===o||0===i)return`0 ${this.translate.instant("OF")} ${o}`;const r=e*i;return`${r+1} \u2013 ${r<(o=Math.max(o,0))?Math.min(r+i,o):r+i} ${this.translate.instant("OF")} ${o}`})}changePaymentType(e){this.selectedPaymentType=e,this.router.navigate([],{relativeTo:this.route,queryParamsHandling:"merge",queryParams:{selectedPaymentType:this.selectedPaymentType}})}changeSelected(e){this.visibleUnPaidInvoices=[],this.visiblePaidInvoices=[],this.visibleLapsedInvoices=[];for(const i of e)i.selected&&(this.visibleUnPaidInvoices.push(...this.unPaidInvoices.filter(o=>o.Typ.Beteckning===i.chipType)),this.visiblePaidInvoices.push(...this.paidInvoices.filter(o=>o.Typ.Beteckning===i.chipType)),this.visibleLapsedInvoices.push(...this.lapsedInvoices.filter(o=>o.Typ.Beteckning===i.chipType)))}changeSelectedGQL(e){this.invoicesGQL=[],this.showSpinner=!0,this.invoiceService.fetchTotalCountLedgerNotes(this.selectedPaymentType,e.filter(i=>!i.selected).map(i=>i.chipText)).pipe((0,v.W)(i=>{throw this.showSpinner=!1,i})).subscribe(i=>{this.invoicesCount=i.data.ledgerNotes.totalCount;let o={r:(Math.random()+1).toString(36).substring(7)};this.router.navigate([],{relativeTo:this.route,queryParamsHandling:"merge",queryParams:o})})}onPageChange(e){this.invoicesGQL=[],this.showSpinner=!0,window.scroll(0,0);let i=this.pageSize;this.pageSize=e.pageSize,this.page=e.pageIndex+1;let o={pageSize:this.pageSize,page:this.page,selectedPaymentType:this.selectedPaymentType};switch(!0){case 0===e.pageIndex:break;case+i!==this.pageSize:o={...o,page:1};break;case e.pageIndex>e.previousPageIndex:o={...o,after:this.after};break;case e.pageIndex<e.previousPageIndex:o={...o,before:this.before}}this.router.navigate([],{relativeTo:this.route,queryParams:o})}changeInvoices(e){this.invoicesGQL=[],this.showSpinner=!0,this.selectedPaymentType=e,this.invoiceService.fetchTotalCountLedgerNotes(this.selectedPaymentType,this.chips.filter(i=>!i.selected).map(i=>i.chipText)).subscribe(i=>{this.invoicesCount=i.data.ledgerNotes.totalCount,this.router.navigate([],{relativeTo:this.route,queryParams:{selectedPaymentType:this.selectedPaymentType}})})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(_.nX),t.rXU(h.M),t.rXU(m.c$),t.rXU(P.p),t.rXU(H.t),t.rXU(_.Ix))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-invoice"]],viewQuery:function(i,o){if(1&i&&t.GBs(d.iy,5),2&i){let r;t.mGM(r=t.lsd())&&(o.paginator=r.first)}},standalone:!1,decls:2,vars:2,consts:[["group","matButtonToggleGroup"],[3,"is-mobile","is-desktop"],[1,"header"],["data-mom-test","MyPages_Invoice_PageTitle",3,"text","subText"],[1,"slim-toggle",3,"change","value"],["value","unpaid","taigaEventTracker","",3,"eventLabel","eventCategory"],["value","lapsed","taigaEventTracker","",3,"eventLabel","eventCategory"],["value","paid","taigaEventTracker","",3,"eventLabel","eventCategory"],["value","all","taigaEventTracker","",3,"eventLabel","eventCategory"],[1,"chip-list"],["multiple","",3,"selectable"],[3,"selected"],[1,"spinner"],[3,"click","selected"],[3,"invoices"],[3,"invoicesGQL"],[3,"page","length","pageIndex","pageSize","pageSizeOptions"]],template:function(i,o){1&i&&(t.nVh(0,he,35,60,"div",1),t.nVh(1,_e,36,62,"div",1)),2&i&&(t.vxM(o.useGraphQL?-1:0),t.R7$(),t.vxM(o.useGraphQL?1:-1))},dependencies:[j.uI,j.gq,N.ec,N.pc,O.u,W.o,d.iy,T.t,J.K,Nt,oe,m.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap}.title[_ngcontent-%COMP%]{margin:0;font-weight:700}.is-desktop[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{margin:0}
1.chip-list[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:20px}mat-chip[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;cursor:pointer}mat-paginator[_ngcontent-%COMP%]{margin-top:10px}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:10px;margin-bottom:10p}"]})}}return n})();var Ce=c(9496);const be=[{path:"",component:fe,canActivate:[f.q,Ce.u],title:"INVOICE"}];let Re=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=s.G2t({imports:[E.iI.forChild(be),E.iI]})}}return n})(),Ie=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=s.G2t({imports:[m.h.forChild(),Re,x.G]})}}return n})()},1580(Y,M,c){c.d(M,{E:()=>E});var x=c(2615),m=c(5850);let E=(()=>{class f{constructor(d){this.requestService=d}saveBlob(d,u){const g=new Blob([d],{type:u});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(g);else{const t=window.URL.createObjectURL(g);window.open(t,"_blank"),setTimeout(()=>{window.URL.revokeObjectURL(t)},100)}}saveBlobWithFilename(d,u){const g=u.split(".").pop(),t=this.getMimeType(g),s=new Blob([d],{type:t});if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(s,u);else{const _=window.URL.createObjectURL(s),h=document.createElement("a");typeof h.download>"u"?window.open(_,"_blank"):(h.href=_,h.download=u,document.body.appendChild(h),h.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),setTimeout(()=>{window.URL.revokeObjectURL(_),h&&h.remove()},100)}}getMimeType(d){switch(d=d.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(d){switch(d){case"application/pdf":case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getValidImageMediaType(d){switch(d){case"image/jpeg":case"image/png":case"image/bmp":case"image/gif":return!0;default:return!1}}getBlobFromUrl(d){return this.requestService.getBlobFromUrl(d)}static{this.\u0275fac=function(u){return new(u||f)(x.KVO(m.B))}}static{this.\u0275prov=x.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()}}]);

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.