1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c2e2a347-9116-5ff8-b4f3-c0b055767961")}catch(e){}}(); 3(self.webpackChunkapp=self.webpackChunkapp||[]).push([[814],{2814:(Tt,b,a)=>{a.r(b),a.d(b,{BillingModule:()=>Ct});var x=a(3887),F=a(7369),l=a(1439);const m=(0,l.VP)("[Pricing] Try get pricing"),I=(0,l.VP)("[Pricing] Get pricing",(0,l.xk)()),_=(0,l.VP)("[Pricing] Get pricing failed",(0,l.xk)()),R="pricing",Y=(0,l.vy)({stateObj:{loading:!1,error:null,channels:[]}},(0,l.on)(m,e=>({...e,stateObj:{...e.stateObj,loading:!0,error:null}})),(0,l.on)(I,(e,{channels:s})=>({...e,stateObj:{...e.stateObj,loading:!1,channels:[...s]}})),(0,l.on)(_,(e,{error:s})=>({...e,stateObj:{...e.stateObj,loading:!1,error:s,channels:[]}}))),f=(0,l.VP)("[Invoices] Try get invoices",(0,l.xk)()),j=(0,l.VP)("[Invoices] Get invoices",(0,l.xk)()),C=(0,l.VP)("[Invoices] Get invoices failed",(0,l.xk)()),T="invoices",U=(0,l.vy)({stateObj:{loading:!1,error:null,prev:null,next:null,invoices:[],stores:[],dateRangeFilter:null,nameFilter:null,storeFilter:null}},(0,l.on)(f,(e,{dateRangeFilter:s,nameFilter:n,storeFilter:r})=>({...e,stateObj:{...e.stateObj,loading:!0,error:null,dateRangeFilter:s,nameFilter:n,storeFilter:r}})),(0,l.on)(j,(e,{invoices:s,prev:n,next:r,stores:i})=>({...e,stateObj:{...e.stateObj,loading:!1,invoices:[...s],stores:[...i],prev:n,next:r}})),(0,l.on)(C,(e,{error:s})=>({...e,stateObj:{...e.stateObj,loading:!1,error:s,invoices:[]}}))),M="billing_state",w={[R]:Y,[T]:U},O=(0,l.UX)(M),J=(0,l.Mz)(O,e=>e[R]),B=(0,l.Mz)(O,e=>e[T]),X=(0,l.Mz)(J,e=>e.stateObj);var t=a(8559),y=a(9264),d=a(316),k=a(913),P=a(852);const H=()=>[];function A(e,s){1&e&&(t.j41(0,"div",10)(1,"div",11),t.nrm(2,"div",12),t.k0s(),t.j41(3,"div",13)(4,"div",14)(5,"div",15),t.nrm(6,"div",12),t.k0s(),t.j41(7,"div",16),t.nrm(8,"div",12),t.k0s(),t.j41(9,"div",17),t.nrm(10,"div",12),t.k0s()()()()),2&e&&t.Y8G("ngClass",0!=s.index?"border-top":"")}function K(e,s){1&e&&(t.j41(0,"div",8),t.DNE(1,A,11,1,"div",9),t.k0s()),2&e&&(t.R7$(),t.Y8G("ngForOf",t.lJ4(1,H).constructor(3)))}function L(e,s){1&e&&(t.j41(0,"div",18)(1,"div",19)(2,"div",20),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",21),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,2,"no_data")," "),t.R7$(3),t.JRh(t.bMT(7,4,"home_billing.pricing_no_data_description")))}function z(e,s){if(1&e&&t.nrm(0,"app-error",22),2&e){const n=t.XpG();t.Y8G("error",n.error)}}function Q(e,s){if(1&e&&(t.j41(0,"div",37)(1,"div",11),t.EFF(2),t.k0s(),t.j41(3,"div",13)(4,"div",14)(5,"div",15)(6,"span",38),t.EFF(7),t.nI1(8,"number"),t.k0s()(),t.j41(9,"div",16)(10,"span"),t.EFF(11),t.nI1(12,"number"),t.k0s()(),t.j41(13,"div",17)(14,"span"),t.EFF(15),t.nI1(16,"currency"),t.k0s()()()()()),2&e){const n=s.$implicit;t.R7$(2),t.JRh(n.name),t.R7$(5),t.SpI("",t.i5U(8,4,n.advanceRate,"1.0-2"),"%"),t.R7$(4),t.SpI("",t.i5U(12,7,n.dailyPricing,"1.3-6"),"%"),t.R7$(4),t.JRh(t.brH(16,10,n.minPayment,n.minPaymentCcy,"symbol-narrow"))}}function W(e,s){if(1&e&&(t.j41(0,"div",33)(1,"div",34),t.nrm(2,"i",35),t.EFF(3),t.k0s(),t.DNE(4,Q,17,14,"div",36),t.k0s()),2&e){const n=s.$implicit;t.R7$(3),t.JRh(n.storeName),t.R7$(),t.Y8G("ngForOf",n.channels)}}function Z(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",23)(2,"div",24)(3,"div",25),t.nrm(4,"div",26),t.j41(5,"div",13)(6,"div",18)(7,"div",14)(8,"div",27)(9,"h4",28),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"span",29),t.EFF(13),t.nI1(14,"translate"),t.k0s()(),t.j41(15,"div",30)(16,"h4",28),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"span",29),t.EFF(20),t.nI1(21,"translate"),t.k0s()(),t.j41(22,"div",31)(23,"h4",28),t.EFF(24),t.nI1(25,"translate"),t.k0s(),t.j41(26,"span",29),t.EFF(27),t.nI1(28,"translate"),t.k0s()()()()()(),t.DNE(29,W,5,2,"div",32),t.k0s()(),t.bVm()),2&e){const n=t.XpG();t.R7$(10),t.SpI("",t.bMT(11,7,"home_billing.advance_rate")," "),t.R7$(3),t.SpI(" ",t.bMT(14,9,"home_billing.advance_rate_desc")," "),t.R7$(4),t.SpI("",t.bMT(18,11,"home_billing.storfund_fee")," "),t.R7$(3),t.SpI(" ",t.bMT(21,13,"home_billing.storfund_fee_desc")," "),t.R7$(4),t.SpI(" ",t.bMT(25,15,"home_billing.minimum_payment"),""),t.R7$(3),t.SpI(" ",t.bMT(28,17,"home_billing.minimum_payment_desc")," "),t.R7$(2),t.Y8G("ngForOf",n.stores)}}let q=(()=>{class e{constructor(n,r,i){this.store=n,this.changeDetector=r,this.errorHandlingService=i,this.subscriptions=[],this.loading=!1,this.error=null,this.stores=[]}ngOnInit(){this.subscriptions.push(this.store.select(X).subscribe(n=>{this.loading=n.loading,this.error=this.errorHandlingService.process(n.error),this.loading||(this.stores=this.processStores(n.channels)),this.changeDetector.detectChanges()})),this.store.dispatch(m())}ngOnDestroy(){this.subscriptions.forEach(n=>n&&n.unsubscribe())}processStores(n){const r=n.reduce((i,o)=>{const c=o.storeId;return i[c]||(i[c]={storeName:o.storeName,channels:[]}),i[c].channels.push({...o}),i},{});return Object.values(r).sort((i,o)=>i.storeName.localeCompare(o.storeName))}static{this.\u0275fac=function(r){return new(r||e)(t.rXU(l.il),t.rXU(t.gRc),t.rXU(y.X))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-pricing"]],decls:11,vars:7,consts:[[1,"page-header"],[1,"container-xl"],[1,"page-title"],[1,"page-body"],["class","card placeholder-glow",4,"ngIf"],["class","card",4,"ngIf"],[3,"error",4,"ngIf"],[4,"ngIf"],[1,"card","placeholder-glow"],["class","row mx-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","mx-0",3,"ngClass"],[1,"col-5","store-amount"],[1,"placeholder","placeholder-xs","col-5"],[1,"col-7","px-0"],[1,"row","mx-0"],[1,"col-4","border-start","border-end","store-amount","text-center"],[1,"col-4","store-amount","text-center"],[1,"col-4","border-start","store-amount","text-center"],[1,"card"],[1,"card-body"],[1,"card-title","mb-2"],[1,"text-secondary"],[3,"error"],[1,"table-responsive"],[2,"min-width","900px"],[1,"row","g-0","mx-0"],[1,"col-5","px-0"],[1,"col-4","text-center","border-end","store-amount"],[1,"text-uppercase","font-medium"],[1,"small","text-secondary","text-wrap"],[1,"col-4","text-center","store-amount"],[1,"col-4","text-center","border-start","store-amount"],["class","card mt-3",4,"ngFor","ngForOf"],[1,"card","mt-3"],[1,"bg-primary-lt","subheader","store-header"],[1,"fa-regular","fa-store","me-1"],["class","row mx-0 border-top",4,"ngFor","ngForOf"],[1,"row","mx-0","border-top"],[1,"text-success","font-bold"]],template:function(r,i){1&r&&(t.j41(0,"div",0)(1,"div",1)(2,"h2",2),t.EFF(3),t.nI1(4,"translate"),t.k0s()()(),t.j41(5,"div",3)(6,"div",1),t.DNE(7,K,2,2,"div",4)(8,L,8,6,"div",5)(9,z,1,1,"app-error",6)(10,Z,30,19,"ng-container",7),t.k0s()()),2&r&&(t.R7$(3),t.JRh(t.bMT(4,5,"home_billing.pricing")),t.R7$(4),t.Y8G("ngIf",i.loading&&0==i.stores.length),t.R7$(),t.Y8G("ngIf",!i.loading&&!i.error&&0==i.stores.length),t.R7$(),t.Y8G("ngIf",i.error),t.R7$(),t.Y8G("ngIf",i.stores.length>0))},dependencies:[d.YU,d.Sq,d.bT,k.A,d.QX,d.oe,P.D9],styles:[".store-header[_ngcontent-%COMP%]{border-top-left-radius:inherit;border-top-right-radius:inherit;padding:.75rem}
3.store-amount[_ngcontent-%COMP%]{padding:.75rem}"],changeDetection:0})}}return e})();var tt=a(4205),et=a(2575),nt=a(1817);const it=(0,l.Mz)(B,e=>e.stateObj);var rt=a(3275),st=a(6485),v=a(198),h=a(4456),ot=a(663),lt=a(90);const $=e=>({disabled:e}),at=()=>[];function ct(e,s){if(1&e&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.k0s()()),2&e){const n=t.XpG().item;t.R7$(2),t.JRh(n.name)}}function dt(e,s){1&e&&t.DNE(0,ct,3,1,"div",40),2&e&&t.Y8G("ngIf",s.item)}function gt(e,s){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s(),t.j41(2,"div",41),t.EFF(3),t.k0s()),2&e){const n=s.item;t.R7$(),t.JRh(n.name),t.R7$(2),t.JRh(n.marketName)}}function pt(e,s){1&e&&(t.j41(0,"tr",47)(1,"td",48),t.nrm(2,"div",49),t.k0s(),t.j41(3,"td"),t.nrm(4,"div",49),t.k0s(),t.j41(5,"td"),t.nrm(6,"div",49),t.k0s(),t.j41(7,"td",50),t.nrm(8,"div",49),t.k0s(),t.j41(9,"td",51),t.nrm(10,"div",49),t.k0s(),t.nrm(11,"td",48),t.k0s())}function ht(e,s){1&e&&(t.j41(0,"div",42)(1,"div",43)(2,"div",44)(3,"table",45)(4,"tbody"),t.DNE(5,pt,12,0,"tr",46),t.k0s()()()()()),2&e&&(t.R7$(5),t.Y8G("ngForOf",t.lJ4(1,at).constructor(3)))}function mt(e,s){if(1&e&&t.nrm(0,"app-error",52),2&e){const n=t.XpG();t.Y8G("error",n.error)}}function ft(e,s){1&e&&(t.j41(0,"div",53)(1,"div",43)(2,"div",54),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",55),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,2,"no_data")," "),t.R7$(3),t.JRh(t.bMT(7,4,"home_billing.invoice_no_data_description")))}function vt(e,s){if(1&e){const n=t.RV6();t.j41(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"dateStructConvert"),t.nI1(4,"date"),t.k0s(),t.j41(5,"td"),t.EFF(6),t.k0s(),t.j41(7,"td"),t.EFF(8),t.k0s(),t.j41(9,"td"),t.EFF(10),t.k0s(),t.j41(11,"td",51),t.EFF(12),t.nI1(13,"currency"),t.k0s(),t.j41(14,"td",51)(15,"a",58),t.bIt("click",function(){const i=t.eBV(n).index,o=t.XpG(2);return t.Njj(o.onInvoiceView(i))}),t.EFF(16),t.nI1(17,"translate"),t.k0s()()()}if(2&e){const n=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(4,8,t.bMT(3,6,n.date),"MMM yyyy")," "),t.R7$(4),t.SpI(" ",n.storeName," "),t.R7$(2),t.SpI(" ",n.number," "),t.R7$(2),t.SpI(" ",n.currency," "),t.R7$(2),t.SpI(" ",t.brH(13,11,n.amount,n.currency,"symbol-narrow")," "),t.R7$(4),t.JRh(t.bMT(17,15,"home_ledger.view"))}}function ut(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",56)(2,"div",43)(3,"div",44)(4,"table",45)(5,"thead")(6,"tr")(7,"td",48)(8,"span",18),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"td")(12,"span",18),t.EFF(13),t.nI1(14,"translate"),t.k0s()(),t.j41(15,"td")(16,"span",18),t.EFF(17),t.nI1(18,"translate"),t.k0s()(),t.j41(19,"td",50)(20,"span",18),t.EFF(21),t.nI1(22,"translate"),t.k0s()(),t.j41(23,"td",51)(24,"span",18),t.EFF(25),t.nI1(26,"translate"),t.k0s()(),t.nrm(27,"td",48),t.k0s()(),t.j41(28,"tbody"),t.DNE(29,vt,18,17,"tr",57),t.k0s()()()()(),t.bVm()),2&e){const n=t.XpG();t.R7$(9),t.JRh(t.bMT(10,6,"home_statements.date")),t.R7$(4),t.JRh(t.bMT(14,8,"trading_name")),t.R7$(4),t.JRh(t.bMT(18,10,"home_billing.number")),t.R7$(4),t.JRh(t.bMT(22,12,"home_recipients.currency")),t.R7$(4),t.JRh(t.bMT(26,14,"home_billing.amount")),t.R7$(4),t.Y8G("ngForOf",n.invoices)}}const bt=[{path:"",redirectTo:"pricing",pathMatch:"full"},{path:"pricing",component:q},{path:"invoices",component:(()=>{class e{constructor(n,r,i,o,c){this.document=n,this.store=r,this.changeDetector=i,this.errorHandlingService=o,this.filePreviewService=c,this.filtersVisible=!0,this.searchKeyUp=new tt.B,this.subscriptions=[],this.loading=!1,this.prevOffset=null,this.nextOffset=null,this.error=null,this.invoices=[],this.stores=[],this.dateRangeFilter=null,this.nameFilter=null,this.storeFilter=null,this.inited=!1,this.uiFilters={dateRangeFilter:null,storeFilter:null}}ngOnInit(){this.subscriptions.push(this.searchKeyUp.pipe((0,et.B)(500),(0,nt.F)()).subscribe(n=>{const r=n.trim();this.getInvoices({offset:0,nameFilter:0==r.length?null:r})})),this.subscriptions.push(this.store.select(it).subscribe(n=>{this.loading=n.loading,this.error=this.errorHandlingService.process(n.error),this.prevOffset=n.prev,this.nextOffset=n.next,this.stores=[...n.stores],this.dateRangeFilter=n.dateRangeFilter,this.nameFilter=n.nameFilter,this.storeFilter=n.storeFilter,this.loading||(this.invoices=[...n.invoices]),this.inited||(this.inited=!0,this.uiFilters.dateRangeFilter=n.dateRangeFilter,this.uiFilters.storeFilter=n.storeFilter,0==this.invoices.length&&this.getInvoices({offset:0})),this.inited=!0,this.changeDetector.detectChanges()}))}ngOnDestroy(){this.subscriptions.forEach(n=>n&&n.unsubscribe())}toggleFilters(){this.filtersVisible=!this.filtersVisible}onFilter(n){const r=n.value;this.getInvoices({offset:0,dateRange:r.dateRange,storeFilter:r.store})}resetToDefaults(){this.uiFilters.dateRangeFilter=null,this.uiFilters.storeFilter=null,this.getInvoices({offset:0,nameFilter:null,dateRange:null,storeFilter:null})}onNext(){null!=this.nextOffset&&this.getInvoices({offset:this.nextOffset})}onPrevious(){null!=this.prevOffset&&this.getInvoices({offset:this.prevOffset})}refresh(){this.getInvoices({offset:(this.prevOffset??-1)+1})}getInvoices(n){this.loading||this.store.dispatch(f({offset:n.offset,dateRangeFilter:void 0===n.dateRange?this.dateRangeFilter:n.dateRange,nameFilter:void 0===n.nameFilter?this.nameFilter:n.nameFilter,storeFilter:void 0===n.storeFilter?this.storeFilter:n.storeFilter}))}onInvoiceView(n){0!==this.invoices.length&&this.filePreviewService.getInvoiceUrl(this.invoices[n].uuid).subscribe(r=>{r&&this.document.defaultView?.open(r,"_blank")})}static{this.\u0275fac=function(r){return new(r||e)(t.rXU(d.qQ),t.rXU(l.il),t.rXU(t.gRc),t.rXU(y.X),t.rXU(rt.E))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-invoices"]],decls:62,vars:57,consts:[["searchInput",""],["filterForm","ngForm"],[1,"page-header"],[1,"container-xl"],[1,"d-flex","align-items-center","justify-content-between"],[1,"page-title"],[1,"pagination","m-0"],[1,"page-item",3,"ngClass"],["placement","bottom auto",1,"page-link",3,"click","ngbTooltip"],[1,"fa-regular","fa-chevron-left"],[1,"page-item"],[1,"fa-regular","fa-arrows-rotate",3,"ngClass"],[1,"fa-regular","fa-chevron-right"],[1,"page-body"],[1,"container-xl","filter-layout"],[1,"row","g-6"],[1,"col-auto","d-none","d-md-flex","flex-column"],[1,"mb-3","d-flex","align-items-center","justify-content-between","cursor-pointer",3,"click"],[1,"subheader"],[1,"fa-regular","fa-filter"],["placement","bottom",1,"btn-action","ms-3",3,"ngbTooltip"],[1,"fa-regular","fa-arrow-left-long-to-line"],[1,"filter-content"],[1,"input-icon",2,"min-width","300px"],["type","text",1,"form-control","no-shadow",3,"input","ngModel","disabled","placeholder"],[1,"input-icon-addon"],[1,"fa-regular","fa-magnifying-glass"],[3,"ngSubmit"],[1,"subheader","mt-6","mb-2"],["name","dateRange",3,"ngModelChange","ngModel","placement","disabled","showPlaceholder"],[1,"subheader","mt-4","mb-2"],["bindValue","id","bindLabel","name","name","store",3,"ngModelChange","items","ngModel","disabled"],["ng-label-tmp",""],["ng-option-tmp",""],["type","submit",1,"btn","btn-primary","w-100","mt-5"],["type","button",1,"btn","btn-link","w-100",3,"click"],[1,"col-12","col-md"],["class","card placeholder-glow",4,"ngIf"],[3,"error",4,"ngIf"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"text-secondary","small","mt-1"],[1,"card","placeholder-glow"],[1,"card-body"],[1,"table-responsive"],[1,"table","table-vcenter","card-table","invoice-table"],["class","skeleton",4,"ngFor","ngForOf"],[1,"skeleton"],[2,"width","90px"],[1,"placeholder","placeholder-xs","col-6"],[2,"width","100px"],[1,"text-end"],[3,"error"],[1,"card"],[1,"card-title","mb-2"],[1,"text-secondary"],[1,"card",2,"min-height","400px"],[4,"ngFor","ngForOf"],[1,"btn","btn-sm",3,"click"]],template:function(r,i){if(1&r){const o=t.RV6();t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"ul",6)(7,"li",7)(8,"a",8),t.nI1(9,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(i.onPrevious())}),t.nrm(10,"i",9),t.k0s()(),t.j41(11,"li",10)(12,"a",8),t.nI1(13,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(i.refresh())}),t.nrm(14,"i",11),t.k0s()(),t.j41(15,"li",7)(16,"a",8),t.nI1(17,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(i.onNext())}),t.nrm(18,"i",12),t.k0s()()()()()(),t.j41(19,"div",13)(20,"div",14)(21,"div",15)(22,"div",16)(23,"div",17),t.bIt("click",function(){return t.eBV(o),t.Njj(i.toggleFilters())}),t.j41(24,"div",18),t.nrm(25,"i",19),t.EFF(26),t.nI1(27,"translate"),t.k0s(),t.j41(28,"a",20),t.nI1(29,"translate"),t.nrm(30,"i",21),t.k0s()(),t.j41(31,"div",22)(32,"div",23)(33,"input",24,0),t.nI1(35,"translate"),t.bIt("input",function(){t.eBV(o);const g=t.sdS(34);return t.Njj(i.searchKeyUp.next(g.value))}),t.k0s(),t.j41(36,"span",25),t.nrm(37,"i",26),t.k0s()(),t.j41(38,"form",27,1),t.bIt("ngSubmit",function(){t.eBV(o);const g=t.sdS(39);return t.Njj(i.onFilter(g))}),t.j41(40,"div",28),t.EFF(41),t.nI1(42,"translate"),t.k0s(),t.j41(43,"app-date-range",29),t.mxI("ngModelChange",function(g){return t.eBV(o),t.DH7(i.uiFilters.dateRangeFilter,g)||(i.uiFilters.dateRangeFilter=g),t.
3Njj(g)}),t.k0s(),t.j41(44,"div",30),t.EFF(45),t.nI1(46,"translate"),t.k0s(),t.j41(47,"ng-select",31),t.mxI("ngModelChange",function(g){return t.eBV(o),t.DH7(i.uiFilters.storeFilter,g)||(i.uiFilters.storeFilter=g),t.Njj(g)}),t.DNE(48,dt,1,1,"ng-template",32)(49,gt,4,2,"ng-template",33),t.k0s(),t.j41(50,"button",34),t.EFF(51),t.nI1(52,"translate"),t.k0s(),t.j41(53,"button",35),t.bIt("click",function(){return t.eBV(o),t.Njj(i.resetToDefaults())}),t.EFF(54),t.nI1(55,"translate"),t.k0s()()()(),t.j41(56,"div",36),t.qex(57),t.DNE(58,ht,6,2,"div",37),t.bVm(),t.DNE(59,mt,1,1,"app-error",38)(60,ft,8,6,"div",39)(61,ut,30,16,"ng-container",40),t.k0s()()()()}2&r&&(t.R7$(4),t.JRh(t.bMT(5,31,"home_billing.invoices")),t.R7$(3),t.Y8G("ngClass",t.eq3(53,$,null==i.prevOffset)),t.R7$(),t.Y8G("ngbTooltip",t.bMT(9,33,"newer")),t.R7$(4),t.Y8G("ngbTooltip",t.bMT(13,35,"refresh")),t.R7$(2),t.Y8G("ngClass",i.loading?"fa-spin":""),t.R7$(),t.Y8G("ngClass",t.eq3(55,$,null==i.nextOffset)),t.R7$(),t.Y8G("ngbTooltip",t.bMT(17,37,"older")),t.R7$(10),t.SpI(" ",t.bMT(27,39,"filters"),""),t.R7$(2),t.Y8G("ngbTooltip",t.bMT(29,41,i.filtersVisible?"collapse":"expand")),t.R7$(2),t.AVh("rotate-180",!i.filtersVisible),t.R7$(),t.AVh("filter-hidden",!i.filtersVisible),t.R7$(2),t.Y8G("ngModel",i.nameFilter)("disabled",i.loading)("placeholder",t.bMT(35,43,"search")+"..."),t.R7$(8),t.JRh(t.bMT(42,45,"home_transactions.dates")),t.R7$(2),t.R50("ngModel",i.uiFilters.dateRangeFilter),t.Y8G("placement","left")("disabled",i.loading)("showPlaceholder",!1),t.R7$(2),t.JRh(t.bMT(46,47,"trading_name")),t.R7$(2),t.Y8G("items",i.stores),t.R50("ngModel",i.uiFilters.storeFilter),t.Y8G("disabled",i.loading),t.R7$(4),t.SpI(" ",t.bMT(52,49,"filter")," "),t.R7$(3),t.JRh(t.bMT(55,51,"reset_to_defaults")),t.R7$(4),t.Y8G("ngIf",i.loading&&0==i.invoices.length),t.R7$(),t.Y8G("ngIf",i.error),t.R7$(),t.Y8G("ngIf",0==i.invoices.length&&!i.error&&!i.loading),t.R7$(),t.Y8G("ngIf",i.invoices.length>0))},dependencies:[d.YU,d.Sq,d.bT,st.md,v.vr,v.Uq,v.ZZ,h.qT,h.me,h.BC,h.cb,h.vS,h.cV,ot.V,k.A,d.oe,d.vh,P.D9,lt.$],styles:[".table.invoice-table[_ngcontent-%COMP%]{table-layout:fixed;width:100%;min-width:900px}.table.invoice-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:0}.table.invoice-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:0}.table.invoice-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{padding-right:0}.table.invoice-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:0}.table.invoice-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{padding-right:0}.table.invoice-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(.skeleton):last-of-type td[_ngcontent-%COMP%]{padding-bottom:0}.table.invoice-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-of-type td[_ngcontent-%COMP%]{border-bottom:none}"],changeDetection:0})}}return e})()}];let Ft=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[F.iI.forChild(bt),F.iI]})}}return e})();var p=a(1606),It=a(2154),_t=a(6443);let u=(()=>{class e{constructor(n,r){this.config=n,this.http=r}getPricing(){return this.http.get(`${this.config.apiUrl}/billing/plan`)}getInvoices(n,r,i,o){return this.http.post(`${this.config.apiUrl}/billing/invoices`,{nameFilter:i,storeFilter:o,fromDate:r?.from||null,toDate:r?.to||null,offset:n})}static{this.\u0275fac=function(r){return new(r||e)(t.KVO(It.T),t.KVO(_t.Qq))}}static{this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac})}}return e})();var E=a(6647),G=a(271),S=a(1318),V=a(9452);let Rt=(()=>{class e{constructor(n,r){this.billingService=n,this.actions=r,this.tryGetCollectionAccounts$=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(m),(0,E.n)(i=>this.billingService.getPricing().pipe((0,G.T)(o=>I({channels:o.records})),(0,S.W)(o=>(0,V.of)(_({error:o})))))))}static{this.\u0275fac=function(r){return new(r||e)(t.KVO(u),t.KVO
3(p.En))}}static{this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac})}}return e})(),jt=(()=>{class e{constructor(n,r){this.billingService=n,this.actions=r,this.tryGetInvoices$=(0,p.EH)(()=>this.actions.pipe((0,p.gp)(f),(0,E.n)(i=>this.billingService.getInvoices(i.offset,i.dateRangeFilter,i.nameFilter,i.storeFilter).pipe((0,G.T)(o=>j(o)),(0,S.W)(o=>(0,V.of)(C({error:o})))))))}static{this.\u0275fac=function(r){return new(r||e)(t.KVO(u),t.KVO(p.En))}}static{this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac})}}return e})(),Ct=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({providers:[u],imports:[x.G,Ft,l.md.forFeature(M,w),p.Vm.forFeature([Rt,jt])]})}}return e})()}}]); 4//# debugId=c2e2a347-9116-5ff8-b4f3-c0b055767961
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.