PageSourceSearch

https://nettbank.bnbank.no/ebank/web/9235/chunk-Dx7gZZEs.js

js bnbank.no collected 2026-10-01 12:09:13 UTC 21,706 bytes, 1 lines download raw bytes

1import {f,U}from'./chunk-pSdslE2v.js';import {M as h$1}from'./chunk-sloV_gFh.js';import {x as my,O as Oc,b3 as ii,dl as xt,bi as dn,bj as Cu,en as Vs,cf as kg,bl as Ga,bx as Ro,bh as _e,bb as xu,bz as Nf,bA as Rf,bB as X9,eo as QI,ep as qI,el as k6,em as Y3,ff as _6,fg as C6,dm as t8,e3 as Bn,e5 as a8,ak as aa,w as we,t as de$1,X,cp as ct,cj as H,dn as XN,dp as JN,bI as Qe,ej as Zt,L as Do,cl as A,V,d as E,P as qT,cF as eR,cH as co,cI as Ch,cM as j,cN as u,br as Te,cY as uo,cZ as Nl,cX as X3,c_ as fu,c$ as Pa,d0 as gu,d1 as on,d2 as sI,eu as f8,fc as Eu,bT as hi$1,bU as ig,bM as Ys,ev as mg,ew as v6,ex as y6,ey as sN,dN as wn,a2 as ye,a3 as Ms,aM as N_,a4 as ky,a5 as rd,c2 as qy,ad as c_,d6 as tT,bY as IC,dR as vC,a6 as mC,c3 as HC,aa as mb,a8 as Ry,bv as R_,aO as k_,a9 as C_,d7 as nT,aN as cd,ba as cv,bZ as EC,ab as gC,ci as CI,b6 as K,M as S,bN as Qs,bW as a,e as ep,c1 as CC,aL as RC,cC as lv,c0 as wy,be as na,$ as $N,J as da,v as vM,p as pi,c5 as Be,dC as q,dD as G,dV as vc,dz as E$1,cn as X$1,h as he,W,b as $n,K as j$1,dA as J,dW as os,c6 as yh,c7 as vh,cz as bw}from'./chunk-BVUwsCyn.js';import {N}from'./main-KAAHWV4Z.js';import'./chunk-DfNmovlP.js';import'./chunk-yM6K_b1X.js';import'./chunk-fRit9228.js';import'./chunk-4lR12NlP.js';na();$N();da();vM();na();pi();Be();vM();pi();var hi=N(ep());vM();q();var h=N(ep());Be();vM();G();vc();var me=class n extends E$1{constructor(e,i){super();this.dsObservable=e;this.DS=i;this.dsNames=["finvoices"];}fetch(e){return this.DS.findAll("finvoices",e).then(i=>i)}fromCache(e){let i=this.DS.getAll("finvoices");return e&&(e.seller&&e.seller.length&&(i=(0, h.filter)(i,c=>c.creditor.name.toUpperCase().indexOf(e.seller.toUpperCase())>=0)),e.from_date&&(i=(0, h.filter)(i,c=>Qe(c.invoiceDate).isSameOrAfter(e.from_date))),e.to_date&&(i=(0, h.filter)(i,c=>Qe(c.invoiceDate).isSameOrBefore(e.to_date))),e.is_read===false&&(i=(0, h.filter)(i,c=>c.read===false)),e.has_reminders&&e.has_credit_notes&&(i=(0, h.filter)(i,c=>c.reminders>0||c.creditNotes>0)),e.has_reminders&&!e.has_credit_notes&&(i=(0, h.filter)(i,c=>c.reminders>0)),e.has_credit_notes&&!e.has_reminders&&(i=(0, h.filter)(i,c=>c.creditNotes>0))),i}clearCache(){return this.DS.ejectAll("finvoices")}static{this.\u0275fac=function(i){return new(i||n)(de$1(J),de$1(os))};}static{this.\u0275prov=X({token:n,factory:n.\u0275fac,providedIn:"root"});}};var b=class n{constructor(t){this.dataFInvoices=t;}getFInvoices(t,e){return this.dataFInvoices.get(t,e).pipe(we(i=>(0, hi.orderBy)(i,["invoiceDate"],["desc"])))}static{this.\u0275fac=function(e){return new(e||n)(de$1(me))};}static{this.\u0275prov=X({token:n,factory:n.\u0275fac,providedIn:"root"});}};X$1();he();W();U();na();$N();$n();var Mi=(n,t)=>({duePaymentsLink:n,transactionsLink:t});function Vi(n,t){if(n&1){let e=CC();Ms(0,"ebank-chip",31),qy("removeClick",function(){let c=yh(e).$implicit,D=RC();return vh(D.removeChip(c.key))}),rd();}if(n&2){let e=t.$implicit;Ry("text",e.text)("quote",e.quote);}}function Hi(n,t){n&1&&(Ms(0,"ebank-empty-state")(1,"ebank-empty-state-title",13),c_(2,"PAGE.FINVOICE.ARCHIVE.EMPTY_LIST"),rd()());}function Gi(n,t){n&1&&(Ms(0,"ebank-empty-state")(1,"ebank-empty-state-title",13),c_(2,"PAGE.FINVOICE.ARCHIVE.EMPTY_STATE.NO_RESULTS.TITLE"),rd()());}function Bi(n,t){n&1&&(Ms(0,"ebank-empty-state")(1,"ebank-empty-state-title",13),c_(2,"PAGE.FINVOICE.ARCHIVE.EMPTY_STATE.FINVOICES_LOAD_ERROR.TITLE"),rd()());}function ji(n,t){n&1&&(Ms(0,"ebank-tag",44),c_(1),N_(2,"translate"),rd()),n&2&&(mb(),cv(R_(2,1,"PAGE.FINVOICE.ITEM.TAG.UNREAD")));}function wi(n,t){n&1&&(Ms(0,"ebank-tag",45),c_(1),N_(2,"translate"),rd()),n&2&&(mb(),cv(R_(2,1,"PAGE.FINVOICE.ITEM.TAG.CREDIT_NOTE")));}function Ui(n,t){n&1&&(Ms(0,"ebank-tag",45),c_(1),N_(2,"translate"),rd()),n&2&&(mb(),cv(R_(2,1,"PAGE.FINVOICE.ITEM.TAG.REMINDER")));}function Yi(n,t){if(n&1&&(Ms(0,"ebank-link-panel",32)(1,"div",34)(2,"div",35)(3,"div",36),c_(4),N_(5,"date"),rd()(),Ms(6,"div",37)(7,"div",38),c_(8),rd(),Ms(9,"div",39),ky(10,"span",40),c_(11),N_(12,"date"),rd()(),Ms(13,"div",41)(14,"div",42),c_(15),rd()()(),Ms(16,"div",43),mC(17,ji,3,3,"ebank-tag",44),mC(18,wi,3,3,"ebank-tag",45),mC(19,Ui,3,3,"ebank-tag",45),rd()()),n&2){let e=RC().$implicit,i=RC(2);Ry("url",i.getHistoryLink(e.id)),mb(4),cv(k_(5,9,e.invoiceDate,"dd.MM.yyyy")),mb(4),cv(e.creditor.name),mb(3),cd(" ",k_(12,12,e.invoiceDueDate,"dd.MM.yyyy")," "),mb(4),lv("",e.amount.amount," ",e.amount.currency),mb(2),gC(e.read?-1:17),mb(),gC(e.creditNotes>0?18:-1),mb(),gC(e.reminders>0?19:-1);}}function qi(n,t){n&1&&wy(0,Yi,20,15,"ebank-link-panel",33);}function Xi(n,t){if(n&1&&(Ms(0,"ebank-panel-list",30),IC(1,qi,1,0,"ebank-link-panel",32,vC),rd()),n&2){let e=RC();mb(),EC(e.fInvoices);}}var pe=class n{constructor(t,e,i,c,D){this.fInvoiceService=t;this.urlService=e;this.translate=i;this.log=c;this.sbLinkService=D;this.today=new Date;this.filterOpened=new ct;this.errorMessage={dateFormat:this.translate.instant("MODULE.VALIDATION.FROMDATE.PARSE"),maxLength:this.translate.instant("MODULE.VALIDATION.FINVOICE.MAXLENGTH")};this.loading=true;this.loadingError=false;this.filterChipTranslations={from_date:this.translate.instant("PAGE.FINVOICE.CHIP.DATE.FROM"),to_date:this.translate.instant("PAGE.FINVOICE.CHIP.DATE.TO"),unread:this.translate.instant("PAGE.FINVOICE.ARCHIVE.FORM.LABEL.UNREAD"),hasReminders:this.translate.instant("PAGE.FINVOICE.ARCHIVE.FORM.LABEL.REMINDER"),hasCreditNotes:this.translate.instant("PAGE.FINVOICE.ARCHIVE.FORM.LABEL.CREDIT_NOTE")};this.formDefaultValues={seller:"",from_date:"",to_date:"",unread:false,hasReminders:false,hasCreditNotes:false};this.fromDateSubscription=new H;this.toDateSubscription=new H;}ngOnInit(){this.duePaymentsLink=this.urlService.getUrl("URL.PAGE.ACCOUNTFLOW.DUEPAYMENTS.ALL"),this.transactionsLink=this.urlService.getUrl("URL.PAGE.ACCOUNTFLOW.TRANSACTIONS"),this.fInvoiceArchiveForm=new XN({seller:new JN(this.formDefaultValues.seller),from_date:new JN(this.formDefaultValues.from_date),to_date:new JN(this.formDefaultValues.to_date),unread:new JN(this.formDefaultValues.unread),hasReminders:new JN(this.formDefaultValues.hasReminders),hasCreditNotes:new JN(this.formDefaultValues.hasCreditNotes)}),this.performSearch(true),this.initDateValidation();}convertFilterToChips(t){this.chipList=[],Object.entries(t).forEach(([e,i])=>{if(i)switch(e){case "seller":this.chipList.push({key:e,text:i,quote:true});break;case "from_date":this.chipList.push({key:e,text:this.filterChipTranslations.from_date+Qe(i).format("DD.MM.YYYY")});break;case "to_date":this.chipList.push({key:e,text:this.filterChipTranslations.to_date+Qe(i).format("DD.MM.YYYY")});break;case "unread":this.chipList.push({key:e,text:this.filterChipTranslations.unread});break;case "hasReminders":this.chipList.push({key:e,text:this.filterChipTranslations.hasReminders});break;case "hasCreditNotes":this.chipList.push({key:e,text:this.filterChipTranslations.hasCreditNotes});break;}});}performSearch(t){this.loadingError=false;let e=this.fInvoiceArchiveForm.value;t||this.convertFilterToChips(e);let i=t?void 0:{seller:e.seller||void 0,from_date:e.from_date||void 0,to_date:e.to_date||void 0,is_read:e.unread===true?false:void 0,has_reminders:e.hasReminders?true:void 0,has_credit_notes:e.hasCreditNotes?true:void 0};this.fInvoiceService.getFInvoices(i).pipe(Zt(1)).subscribe(c=>{this.fInvoices=c,this.loading=false;},c=>{this.loading=false,this.loadingError=true,this.log.error("something wrong happened while retrieving FInvoices on FInvoice Archive page",c);});}onSubmit(){this.fInvoiceArchiveForm&&this.fInvoiceArchiveForm.valid&&this.performSearch();}onReset(){this.fInvoiceArchiveForm.reset(),this.performSearch();}removeChip(t){this.chipList=this.chipList.filter(e=>e.key!==t),this.fInvoiceArchiveForm.controls[t].setValue(this.formDefaultValues[t]),this.performSearch();}getHistoryLink(t){return this.sbLinkService.getUrl("URL.PAGE.FINVOICE.HISTORY",{fInvoiceId:t}).url}initDateValidation(){this.fromDateSubscription=this.fInvoiceArchiveForm.get("from_date").valueChanges.subscribe(t=>{t&&!(t instanceof Date)?this.fInvoiceArchiveForm.get("from_date").setErrors({dateFormat:true}):this.fInvoiceArchiveForm.get("from_date").setErrors(null);}),this.toDateSubscription=this.fInvoiceArchiveForm.get("to_date").valueChanges.subscribe(t=>{t&&!(t instanceof Date)?this.fInvoiceArchiveForm.get("to_date").setErrors({dateFormat:true}):this.fInvoiceArchiveForm.get("to_date").setErrors(null);});}
1ngOnDestroy(){this.fromDateSubscription&&this.fromDateSubscription.unsubscribe(),this.toDateSubscription&&this.toDateSubscription.unsubscribe();}static{this.\u0275fac=function(e){return new(e||n)(Do(b),Do(A),Do(V),Do(E),Do(f))};}static{this.\u0275cmp=qT({type:n,selectors:[["ng-component"]],standalone:false,decls:65,vars:57,consts:[["seller","ebankControl"],["from_date","ebankControl"],["to_date","ebankControl"],["filterDisplayArea",""],[3,"loading","loadAnnouncement"],["translate","PAGE.FINVOICE.ARCHIVE.SUBHEADER",1,"page-subheading"],[1,"einvoice-archive-info",3,"readContentAutomatically","showButtonText","hideButtonText"],[1,"einvoice-archive-info-text",3,"innerHTML"],[3,"filterOpened"],["formId","formId",3,"executionSearchButtonClick","executionSearch"],["id","formId",1,"einvoice-archive-form",3,"ngSubmit","formGroup"],[1,"einvoice-archive-form-fields"],["id","seller"],["translate",""],["formControlName","seller",3,"maxLength"],["validation","maxLength",3,"control"],["id","from_date"],["translate","PAGE.TRANSACTIONS.FORM.LABEL.DATE_FORMAT"],["formControlName","from_date",3,"filterOpened","max","titleOnMobile"],[1,"from-date-validation-wrapper"],["validation","dateFormat",3,"control"],["id","to_date"],["formControlName","to_date",3,"filterOpened","max","titleOnMobile"],[1,"to-date-validation-wrapper"],[3,"legend"],["id","filterByUnread","formControlName","unread"],["id","filterByCreditNotes","formControlName","hasCreditNotes"],["id","filterByReminders","formControlName","hasReminders"],[3,"removeAllClick","numResults"],[3,"text","quote"],["groupHeadingId","heading-id",1,"einvoice-archive-list"],[3,"removeClick","text","quote"],[3,"url"],[3,"url",4,"ebankPanelList"],[1,"einvoice-archive-item-top"],[1,"first-row"],[1,"invoice-received-date"],[1,"second-row"],[1,"invoice-issuer"],[1,"invoice-due-date"],["translate","PAGE.FINVOICE.ARCHIVE.ITEM.DUE_DATE"],[1,"third-row"],[1,"invoice-amount"],[1,"einvoice-archive-item-bottom"],["level","info",1,"finvoice-archive-tag"],["level","general",1,"finvoice-archive-tag"]],template:function(e,i){if(e&1&&(Ms(0,"section")(1,"ebank-spinner",4),N_(2,"translate"),ky(3,"p",5),Ms(4,"ebank-show-hide-button",6),N_(5,"translate"),N_(6,"translate"),Ms(7,"ebank-show-hide-area"),ky(8,"p",7),N_(9,"translate"),rd()(),Ms(10,"ebank-sidebar-filter",8),qy("filterOpened",function(){return i.filterOpened.emit()}),Ms(11,"ebank-filter-content",9),qy("executionSearchButtonClick",function(){return i.onSubmit()}),Ms(12,"form",10),qy("ngSubmit",function(){return i.onSubmit()}),Ms(13,"div",11)(14,"ebank-form-field",12)(15,"ebank-label",13),c_(16,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.SELLER"),rd(),ky(17,"ebank-input-field",14,0),tT(),Ms(19,"ebank-form-error-wrapper")(20,"ebank-form-error",15),c_(21),rd()()(),Ms(22,"ebank-form-field",16)(23,"ebank-label",13),c_(24,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.FROM_DATE"),rd(),ky(25,"ebank-sub-label",17)(26,"ebank-date-picker",18,1),N_(28,"translate"),tT(),Ms(29,"ebank-form-error-wrapper",19)(30,"ebank-form-error",20),c_(31),rd()()(),Ms(32,"ebank-form-field",21)(33,"ebank-label",13),c_(34,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.TO_DATE"),rd(),ky(35,"ebank-sub-label",17)(36,"ebank-date-picker",22,2),N_(38,"translate"),tT(),Ms(39,"ebank-form-error-wrapper",23)(40,"ebank-form-error",20),c_(41),rd()()(),Ms(42,"ebank-checkbox-field-group",24),N_(43,"translate"),Ms(44,"ebank-checkbox-field",25),c_(45),N_(46,"translate"),rd(),tT(),rd(),Ms(47,"ebank-checkbox-field-group",24),N_(48,"translate"),Ms(49,"ebank-checkbox-field",26),c_(50),N_(51,"translate"),rd(),tT(),Ms(52,"ebank-checkbox-field",27),c_(53),N_(54,"translate"),rd(),tT(),rd()()()(),ky(55,"ebank-top-content"),Ms(56,"ebank-main-content")(57,"ebank-filter-display-area",28,3),qy("removeAllClick",function(){return i.onReset()}),IC(59,Vi,1,2,"ebank-chip",29,vC),rd(),mC(61,Hi,3,0,"ebank-empty-state"),mC(62,Gi,3,0,"ebank-empty-state"),mC(63,Bi,3,0,"ebank-empty-state"),mC(64,Xi,3,0,"ebank-panel-list",30),rd()()()()),e&2){let c=HC(18),D=HC(27),Fi=HC(37);mb(),Ry("loading",i.loading)("loadAnnouncement",R_(2,31,"PAGE.FINVOICE.ARCHIVE.SPINNER.LOADING_ANNOUNCEMENT")),mb(3),Ry("readContentAutomatically",true)("showButtonText",R_(5,33,"PAGE.FINVOICE.ARCHIVE.INFO.READ_MORE"))("hideButtonText",R_(6,35,"PAGE.FINVOICE.ARCHIVE.INFO.READ_LESS")),mb(4),Ry("innerHTML",k_(9,37,"PAGE.FINVOICE.ARCHIVE.INFO.TEXT",C_(54,Mi,i.duePaymentsLink,i.transactionsLink)),bw),mb(3),Ry("executionSearch",true),mb(),Ry("formGroup",i.fInvoiceArchiveForm),mb(5),Ry("maxLength",32),nT(),mb(3),Ry("control",c),mb(),cd(" ",i.errorMessage.maxLength," "),mb(5),Ry("filterOpened",i.filterOpened)("max",i.today)("titleOnMobile",R_(28,40,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.FROM_DATE")),nT(),mb(4),Ry("control",D),mb(),cd(" ",i.errorMessage.dateFormat," "),mb(5),Ry("filterOpened",i.filterOpened)("max",i.today)("titleOnMobile",R_(38,42,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.TO_DATE")),nT(),mb(4),Ry("control",Fi),mb(),cd(" ",i.errorMessage.dateFormat," "),mb(),Ry("legend",R_(43,44,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.UNREAD_STATUS")),mb(2),nT(),mb(),cv(R_(46,46,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.UNREAD")),mb(2),Ry("legend",R_(48,48,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.DOCUMENTS_INCLUDED")),mb(2),nT(),mb(),cv(R_(51,50,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.CREDIT_NOTE")),mb(2),nT(),mb(),cv(R_(54,52,"PAGE.FINVOICE.ARCHIVE.FORM.LABEL.REMINDER")),mb(4),Ry("numResults",i.fInvoices==null?null:i.fInvoices.length),mb(2),EC(i.
1chipList),mb(2),gC(!i.loadingError&&i.fInvoices?.length===0&&!i.chipList?.length?61:-1),mb(),gC(!i.loadingError&&i.fInvoices?.length===0&&i.chipList?.length?62:-1),mb(),gC(i.loadingError?63:-1),mb(),gC(!i.loadingError&&i.fInvoices?.length>0?64:-1);}},dependencies:[eR,co,Ch,j,h$1,u,Te,uo,Nl,X3,fu,Pa,gu,on,sI,f8,Vs,kg,Eu,hi$1,ig,Ys,Rf,X9,QI,mg,v6,y6,sN,Y3,_6,C6,t8,Bn,a8,wn,ye],encapsulation:2,changeDetection:1});}};pi();var _i=N(ep());vM();da();j$1();W();U();he();$N();$n();function $i(n,t){if(n&1&&(Ms(0,"div")(1,"strong",5),c_(2,"PAGE.FINVOICE.HISTORY.PAYMENT_STATUS"),rd(),Ms(3,"span",11),c_(4),N_(5,"translate"),rd()()),n&2){let e=RC(2);mb(4),cv(R_(5,1,e.fInvoicePaymentStatus));}}function Ji(n,t){if(n&1&&(Ms(0,"ebank-link-panel",16)(1,"div",18)(2,"div",19)(3,"div",20),c_(4),N_(5,"date"),rd()(),Ms(6,"div",21)(7,"div",22)(8,"strong",5),c_(9),rd()()(),Ms(10,"div",23)(11,"div",24),c_(12),N_(13,"amountFormat"),rd()()()()),n&2){let e=RC().$implicit,i=RC(4);Ry("url",i.getDetailsLink(i.fInvoice.id,e.id)),mb(4),cv(k_(5,5,e.invoiceDate,"dd.MM.yyyy")),mb(5),cd(" PAGE.FINVOICE.HISTORY.TYPES.",e.invoiceType," "),mb(3),lv(" ",R_(13,8,e.amount.amount)," ",e.amount.currency," ");}}function Wi(n,t){n&1&&wy(0,Ji,14,10,"ebank-link-panel",17);}function zi(n,t){if(n&1&&(Ms(0,"ebank-panel-list",14),IC(1,Wi,1,0,"ebank-link-panel",16,vC),rd()),n&2){let e=RC(3);mb(),EC(e.fInvoiceCopies);}}function Ki(n,t){n&1&&(Ms(0,"ebank-empty-state",15)(1,"ebank-empty-state-description",5),c_(2,"PAGE.FINVOICE.HISTORY.EMPTY_LIST"),rd()());}function Qi(n,t){if(n&1&&(Ms(0,"div",9)(1,"h3",12),c_(2,"PAGE.FINVOICE.HISTORY.HISTORY"),rd(),Ms(3,"p",13),c_(4,"PAGE.FINVOICE.HISTORY.HISTORY_DESCRIPTION"),rd(),mC(5,zi,3,0,"ebank-panel-list",14),mC(6,Ki,3,0,"ebank-empty-state",15),rd()),n&2){let e=RC(2);mb(5),gC(e.fInvoiceCopies&&e.fInvoiceCopies.length?5:-1),mb(),gC(e.fInvoiceCopies.length?-1:6);}}function Zi(n,t){n&1&&(Ms(0,"ebank-empty-state",10)(1,"ebank-empty-state-title",5),c_(2,"PAGE.FINVOICE.HISTORY.EMPTY_STATE.FINVOICE_COPIES_LOAD_ERROR.TITLE"),rd(),Ms(3,"ebank-empty-state-description",5),c_(4,"PAGE.FINVOICE.HISTORY.EMPTY_STATE.FINVOICE_COPIES_LOAD_ERROR.DESCRIPTION"),rd()());}function et(n,t){if(n&1&&(Ms(0,"div",1)(1,"div",3)(2,"div",4)(3,"div")(4,"strong",5),c_(5,"PAGE.FINVOICE.HISTORY.RECEIVED_DATE"),rd(),Ms(6,"span"),c_(7),N_(8,"date"),rd()(),Ms(9,"div")(10,"strong",5),c_(11,"PAGE.FINVOICE.HISTORY.DUE_DATE"),rd(),Ms(12,"span"),c_(13),N_(14,"date"),rd()(),Ms(15,"div")(16,"strong",5),c_(17,"PAGE.FINVOICE.HISTORY.AMOUNT"),rd(),Ms(18,"span"),c_(19),rd()(),mC(20,$i,6,3,"div"),rd(),Ms(21,"div",6)(22,"ebank-link",7),ky(23,"span",8),rd()()(),mC(24,Qi,7,2,"div",9),mC(25,Zi,5,0,"ebank-empty-state",10),rd()),n&2){let e=RC();mb(7),cv(k_(8,8,e.fInvoice.invoiceDate,"dd.MM.yyyy")),mb(6),cv(k_(14,11,e.fInvoice.invoiceDueDate,"dd.MM.yyyy")),mb(6),lv("",e.fInvoice.amount.amount," ",e.fInvoice.amount.currency),mb(),gC(e.fInvoicePaymentStatus?20:-1),mb(2),Ry("href",e.getDetailsLink(e.fInvoice.id)),mb(2),gC(e.fInvoiceCopies?24:-1),mb(),gC(e.fInvoiceCopies?-1:25);}}function it(n,t){n&1&&(Ms(0,"ebank-empty-state",2)(1,"ebank-empty-state-title",5),c_(2,"PAGE.FINVOICE.HISTORY.EMPTY_STATE.FINVOICE_LOAD_ERROR.TITLE"),rd(),Ms(3,"ebank-empty-state-description",5),c_(4,"PAGE.FINVOICE.HISTORY.EMPTY_STATE.FINVOICE_LOAD_ERROR.DESCRIPTION"),rd()());}var de=class n{constructor(t,e,i,c,D){this.route=t;this.fInvoiceService=e;this.routeDataService=i;this.log=c;this.sbLinkService=D;this.subscriptions=new H;}ngOnInit(){this.loading=true,this.subscriptions=CI(this.fInvoiceService.getFInvoices(),this.route.queryParamMap.pipe(we(t=>t.get("fInvoiceId")))).subscribe(([t,e])=>{this.fInvoice=t.find(i=>i.id===e),this.fInvoice?(this.routeDataService.addData({title:"PAGE.FINVOICE.HISTORY.TITLE.LOADED",titleParams:{invoiceProvider:this.fInvoice.creditor.name}}),this.fInvoice.getPayment().then(i=>{this.fInvoicePaymentStatus=this.getFInvoicePaymentStatusTranslation(i.status);},i=>{this.fInvoicePaymentStatus="PAGE.FINVOICE.HISTORY.PAYMENT_STATUS.NOT_FOUND",this.log.error("Something wrong happened while fetching payment",i);}),this.fInvoice.getCopies().then(i=>{this.loading=false,this.fInvoiceCopies=(0, _i.orderBy)(i,["invoiceDate"],["desc"]);},i=>{this.loading=false,this.log.error("Something wrong happened while fetching FInvoice Copies",i);}
1)):(this.loading=false,this.log.error("FInvoice with id "+e+" has not been found"));},t=>{this.loading=false,this.log.error("Something wrong happened while fetching data on FInvoice History page",t);});}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe();}getDetailsLink(t,e){let i={};return t&&(i.fInvoiceId=t),e&&(i.copyId=e),this.sbLinkService.getUrl("URL.PAGE.FINVOICE.DETAILS",i).url}getFInvoicePaymentStatusTranslation(t){if(t){if(t.major==="cancelled"&&t.minor==="insufficient_funds")return "PAGE.FINVOICE.HISTORY.PAYMENT_STATUS.CANCELLED.INSUFFICIENT_FUNDS";if(t.major==="rejected"&&t.minor&&t.minor==="insufficient_funds")return "PAGE.FINVOICE.HISTORY.PAYMENT_STATUS.REJECTED.INSUFFICIENT_FUNDS";if(t.major==="rejected"&&t.minor&&t.minor==="exceeding_max_limit")return "PAGE.FINVOICE.HISTORY.PAYMENT_STATUS.REJECTED.EXCEEDING_MAX_LIMIT";if(t.major==="rejected"&&t.minor&&t.minor==="debit_or_credit_account_blocked")return "PAGE.FINVOICE.HISTORY.PAYMENT_STATUS.REJECTED.ACCOUNT_BLOCKED";if(["pending_confirmation","pending_approval","pending_payment","cancelled","suspended","processing","rejected","completed"].includes(t.major))return "PAGE.FINVOICE.HISTORY.PAYMENT_STATUS."+t.major.toUpperCase()}return "PAGE.FINVOICE.HISTORY.PAYMENT_STATUS.NOT_AVAILABLE"}static{this.\u0275fac=function(e){return new(e||n)(Do(K),Do(b),Do(S),Do(E),Do(f))};}
1static{this.\u0275cmp=qT({type:n,selectors:[["ng-component"]],standalone:false,decls:5,vars:6,consts:[[3,"loading","loadAnnouncement"],[1,"einvoice-history-wrapper"],["id","originalEInvoiceNotFound"],[1,"einvoice-history-original-wrapper"],[1,"einvoice-history-info"],["translate",""],[1,"einvoice-history-links"],["linkStyle","tertiary","id","eInvoiceHistoryInternalLink",1,"einvoice-history-details-internal",3,"href"],["translate","PAGE.FINVOICE.HISTORY.DETAILS_LINK.INTERNAL"],[1,"einvoice-history-items-wrapper"],["id","eInvoiceCopiesNotFound"],[1,"einvoice-history-payment-status"],["translate","",1,"einvoice-history-items-heading"],["translate","",1,"einvoice-history-items-subheading"],["groupHeadingId","heading-id",1,"einvoice-history-list"],["id","eInvoiceCopiesEmptyList"],[3,"url"],[3,"url",4,"ebankPanelList"],[1,"einvoice-history-item"],[1,"first-row"],[1,"invoice-received-date"],[1,"second-row"],[1,"invoice-type"],[1,"third-row"],[1,"invoice-amount"]],template:function(e,i){e&1&&(Ms(0,"section")(1,"ebank-spinner",0),N_(2,"translate"),mC(3,et,26,14,"div",1),mC(4,it,5,0,"ebank-empty-state",2),rd()()),e&2&&(mb(),Ry("loading",i.loading)("loadAnnouncement",R_(2,4,"PAGE.FINVOICE.HISTORY.SPINNER.LOADING_ANNOUNCEMENT")),mb(2),gC(i.fInvoice?3:-1),mb(),gC(i.fInvoice?-1:4));},dependencies:[Te,Qs,Eu,hi$1,ig,Ys,Nf,Rf,X9,wn,ye,a],encapsulation:2,changeDetection:1});}};vM();var tt=[{path:"",pathMatch:"full",redirectTo:"archive"},{path:"archive",pathMatch:"full",component:pe,data:{title:"PAGE.FINVOICE.ARCHIVE.TITLE",name:"einvoice-archive"}},{path:"history",component:de,data:{breadcrumbLabel:"PAGE.FINVOICE.ARCHIVE.TITLE",breadcrumbPath:"einvoice/archive",title:"PAGE.FINVOICE.HISTORY.TITLE",name:"einvoice-history"}}],ve=class n{static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275mod=my({type:n});}static{this.\u0275inj=Oc({imports:[aa.forChild(tt),aa]});}};vM();var Si=class n{static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275mod=my({type:n});}static{this.\u0275inj=Oc({providers:[b],imports:[ii,xt,dn,Cu,Vs,kg,Ga,Ro,_e,xu,Nf,Rf,X9,QI,qI,k6,Y3,_6,C6,t8,Bn,a8,ve]});}};export{Si as FInvoiceModule};

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.