Ride-The-Lightning-RTL/frontend/193.0e1a81316bbc29da.js
ShahanaFarooqui a594606d27
Release 0.15.3 (#1467)
* Fix `Unknown command` error when disabling offers on CLN. ([#1443]) (#1451)
* Add missing SSO options to config (#1455)
* Fix for cln logic screen navigation (#1457)
* Transactions destination address display fix (#1458)
* cln delexpiredinvoices deprecation fix (#1459)
* Read LN_IMPLEMENTATION from environment (#1460)
* Add Fee Rate Information on Send Funds Modal (#1461)
* Artifact script fix (#1464)
* Add AMP toggle for LND Send Payments (#1466)

---------

Co-authored-by: Se7enZ <118189041+s373nZ@users.noreply.github.com>
2024-11-10 20:23:52 -08:00

1 line
31 KiB
JavaScript

"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[193],{5837:(q,G,n)=>{n.d(G,{f:()=>I});var e=n(1413),S=n(6977),f=n(4416),t=n(9647),l=n(4438),A=n(2571),R=n(9640),b=n(177),v=n(2920),c=n(9213),w=n(4823),D=n(6850);function E(L,x){if(1&L&&(l.j41(0,"mat-icon",10),l.EFF(1,"info_outline"),l.k0s()),2&L){const m=l.XpG().$implicit;l.Y8G("matTooltip",m.tooltip)}}function T(L,x){if(1&L&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&L){const m=l.XpG().$implicit;l.R7$(),l.SpI(" ",l.i5U(2,1,m.dataValue,"1.0-0")," ")}}function N(L,x){if(1&L&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&L){const m=l.XpG().$implicit,o=l.XpG(2);l.R7$(),l.SpI(" ",l.i5U(2,1,m[o.currencyUnitEnum.BTC],o.currencyUnitFormats.BTC)," ")}}function B(L,x){if(1&L&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&L){const m=l.XpG().$implicit,o=l.XpG(2);l.R7$(),l.SpI(" ",l.i5U(2,1,m[o.currencyUnitEnum.OTHER],o.currencyUnitFormats.OTHER)," ")}}function Y(L,x){if(1&L&&(l.j41(0,"div",6)(1,"div",7),l.EFF(2),l.DNE(3,E,2,1,"mat-icon",8),l.k0s(),l.DNE(4,T,3,4,"span",9)(5,N,3,4,"span",9)(6,B,3,4,"span",9),l.k0s()),2&L){const m=x.$implicit,o=l.XpG().$implicit,g=l.XpG();l.R7$(2),l.SpI(" ",m.title," "),l.R7$(),l.Y8G("ngIf",m.tooltip),l.R7$(),l.Y8G("ngIf",o===g.currencyUnitEnum.SATS),l.R7$(),l.Y8G("ngIf",o===g.currencyUnitEnum.BTC),l.R7$(),l.Y8G("ngIf",g.fiatConversion&&o!==g.currencyUnitEnum.SATS&&o!==g.currencyUnitEnum.BTC&&""===g.conversionErrorMsg)}}function P(L,x){if(1&L&&(l.j41(0,"div",12)(1,"div",13),l.EFF(2),l.k0s()()),2&L){const m=l.XpG(2);l.R7$(2),l.JRh(m.conversionErrorMsg)}}function k(L,x){if(1&L&&(l.j41(0,"mat-tab",2)(1,"div",3),l.DNE(2,Y,7,5,"div",4),l.k0s(),l.DNE(3,P,3,1,"div",5),l.k0s()),2&L){const m=x.$implicit,o=l.XpG();l.FS9("label",m),l.R7$(2),l.Y8G("ngForOf",o.values),l.R7$(),l.Y8G("ngIf",o.fiatConversion&&m!==o.currencyUnitEnum.SATS&&m!==o.currencyUnitEnum.BTC&&""!==o.conversionErrorMsg)}}let I=(()=>{class L{constructor(m,o){this.commonService=m,this.store=o,this.values=[],this.currencyUnitEnum=f.BQ,this.currencyUnitFormats=f.k,this.currencyUnits=[],this.fiatConversion=!1,this.conversionErrorMsg="",this.unSubs=[new e.B,new e.B,new e.B,new e.B,new e.B]}ngOnChanges(){this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues()}ngOnInit(){this.store.select(t._c).pipe((0,S.Q)(this.unSubs[0])).subscribe(m=>{this.fiatConversion=m.settings.fiatConversion,this.currencyUnits=m.settings.currencyUnits,this.fiatConversion||this.currencyUnits.splice(2,1),this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues()})}getCurrencyValues(){this.commonService.convertCurrency(this.values[0].dataValue,f.BQ.SATS,f.BQ.BTC,"",!0).pipe((0,S.Q)(this.unSubs[1])).subscribe(m=>{this.values[0][f.BQ.BTC]=m.BTC}),this.commonService.convertCurrency(this.values[0].dataValue,f.BQ.SATS,f.BQ.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,S.Q)(this.unSubs[2])).subscribe({next:m=>{if(this.values[0][f.BQ.OTHER]=m.OTHER,m.unit&&""!==m.unit)for(let o=1;o<this.values.length;o++){const g=this.values[o];this.commonService.convertCurrency(g.dataValue,f.BQ.SATS,f.BQ.BTC,"",!0).pipe((0,S.Q)(this.unSubs[3])).subscribe(M=>{this.values[o][f.BQ.BTC]=M.BTC}),this.commonService.convertCurrency(g.dataValue,f.BQ.SATS,f.BQ.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,S.Q)(this.unSubs[4])).subscribe({next:M=>{this.values[o][f.BQ.OTHER]=M.OTHER},error:M=>{this.conversionErrorMsg="Conversion Error: "+M}})}},error:m=>{this.conversionErrorMsg="Conversion Error: "+m}})}ngOnDestroy(){this.unSubs.forEach(m=>{m.next(null),m.complete()})}static{this.\u0275fac=function(o){return new(o||L)(l.rXU(A.h),l.rXU(R.il))}}static{this.\u0275cmp=l.VBU({type:L,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},features:[l.OA$],decls:2,vars:1,consts:[["mat-stretch-tabs","false","mat-align-tabs","start"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","center start","class","cc-data-block",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","class","p-1 error-border mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center start",1,"cc-data-block"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"cc-data-title"],["matTooltipPosition","below","class","info-icon",3,"matTooltip",4,"ngIf"],["class","cc-data-value",4,"ngIf"],["matTooltipPosition","below",1,"info-icon",3,"matTooltip"],[1,"cc-data-value"],["fxLayout","row","fxFlex","100",1,"p-1","error-border","mt-1"],[1,"cc-data-block"]],template:function(o,g){1&o&&(l.j41(0,"mat-tab-group",0),l.DNE(1,k,4,3,"mat-tab",1),l.k0s()),2&o&&(l.R7$(),l.Y8G("ngForOf",g.currencyUnits))},dependencies:[b.Sq,b.bT,v.DJ,v.sA,v.UI,c.An,w.oV,D.mq,D.T8,b.QX]})}}return L})()},396:(q,G,n)=>{n.d(G,{f:()=>m});var e=n(5351),S=n(5383),f=n(4416),t=n(4438),l=n(8570),A=n(2571),R=n(5416),b=n(177),v=n(60),c=n(2920),w=n(6038),D=n(8834),E=n(5596),T=n(1997),N=n(8288),B=n(9157),Y=n(9587);const P=o=>({"display-none":o});function k(o,g){if(1&o&&(t.j41(0,"div",20),t.nrm(1,"qr-code",21),t.k0s()),2&o){const M=t.XpG();t.Y8G("ngClass",t.eq3(4,P,M.screenSize===M.screenSizeEnum.XS||M.screenSize===M.screenSizeEnum.SM)),t.R7$(),t.Y8G("value",M.address)("size",M.qrWidth)("errorCorrectionLevel","L")}}function I(o,g){if(1&o&&(t.j41(0,"div",22),t.nrm(1,"qr-code",21),t.k0s()),2&o){const M=t.XpG();t.Y8G("ngClass",t.eq3(4,P,M.screenSize!==M.screenSizeEnum.XS&&M.screenSize!==M.screenSizeEnum.SM)),t.R7$(),t.Y8G("value",M.address)("size",M.qrWidth)("errorCorrectionLevel","L")}}function L(o,g){if(1&o&&(t.j41(0,"div",13)(1,"div",14)(2,"h4",15),t.EFF(3,"Address Type"),t.k0s(),t.j41(4,"span",23),t.EFF(5),t.k0s()()()),2&o){const M=t.XpG();t.R7$(5),t.JRh(M.addressType)}}function x(o,g){1&o&&t.nrm(0,"mat-divider",17)}let m=(()=>{class o{constructor(M,F,h,j,U){this.dialogRef=M,this.data=F,this.logger=h,this.commonService=j,this.snackBar=U,this.faReceipt=S.Mf0,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=f.f7}ngOnInit(){this.address=this.data.address,this.addressType=this.data.addressType,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyAddress(M){this.snackBar.open("Generated address copied."),this.logger.info("Copied Text: "+M)}static{this.\u0275fac=function(F){return new(F||o)(t.rXU(e.CP),t.rXU(e.Vh),t.rXU(l.gP),t.rXU(A.h),t.rXU(R.UG))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["rtl-on-chain-generated-address"]],decls:25,vars:8,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start","class","modal-qr-code-container padding-gap-large",3,"ngClass",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","2","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start","class","modal-qr-code-container padding-gap-large",3,"ngClass",4,"ngIf"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["autoFocus","","mat-button","","color","primary","tabindex","1","type","submit","rtlClipboard","",3,"copied","payload"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[1,"foreground-secondary-text"]],template:function(F,h){1&F&&(t.j41(0,"div",0),t.DNE(1,k,2,6,"div",1),t.j41(2,"div",2)(3,"mat-card-header",3)(4,"div",4),t.nrm(5,"fa-icon",5),t.j41(6,"span",6),t.EFF(7),t.k0s()(),t.j41(8,"button",7),t.bIt("click",function(){return h.onClose()}),t.EFF(9,"X"),t.k0s()(),t.j41(10,"mat-card-content",8)(11,"div",9),t.DNE(12,I,2,6,"div",10)(13,L,6,1,"div",11)(14,x,1,0,"mat-divider",12),t.j41(15,"div",13)(16,"div",14)(17,"h4",15),t.EFF(18,"Address"),t.k0s(),t.j41(19,"span",16),t.EFF(20),t.k0s()()(),t.nrm(21,"mat-divider",17),t.j41(22,"div",18)(23,"button",19),t.bIt("copied",function(U){return h.onCopyAddress(U)}),t.EFF(24,"Copy Address"),t.k0s()()()()()()),2&F&&(t.R7$(),t.Y8G("ngIf",h.address),t.R7$(4),t.Y8G("icon",h.faReceipt),t.R7$(2),t.JRh(h.screenSize===h.screenSizeEnum.XS?"Address":"Generated Address"),t.R7$(5),t.Y8G("ngIf",h.address),t.R7$(),t.Y8G("ngIf",""!==h.addressType),t.R7$(),t.Y8G("ngIf",""!==h.addressType),t.R7$(6),t.JRh(h.address),t.R7$(3),t.Y8G("payload",h.address))},dependencies:[b.YU,b.bT,v.aY,c.DJ,c.sA,c.UI,w.PW,D.$z,E.m2,E.MM,T.q,N.Um,B.U,Y.N]})}}return o})()},4655:(q,G,n)=>{n.d(G,{m:()=>Q});var e=n(4438),S=n(6949),f=n(4416),t=n(8570),l=n(177),A=n(9417),R=n(2920),b=n(8834),v=n(5084),c=n(9213),w=n(9631),D=n(6467),E=n(2798),T=n(6600);let N=(()=>{class r extends T.xW{constructor(s){super(s)}format(s,d){return"MMM YYYY"===d?f.KR[s.getMonth()].name+", "+s.getFullYear():"YYYY"===d?s.getFullYear().toString():s.getDate()+"/"+f.KR[s.getMonth()].name+"/"+s.getFullYear()}static{this.\u0275fac=function(d){return new(d||r)(e.KVO(T.Ju,8))}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac})}}return r})();const B={parse:{dateInput:"LL"},display:{dateInput:"MMM YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}},Y={parse:{dateInput:"LL"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}};let P=(()=>{class r{static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275dir=e.FsC({type:r,selectors:[["","monthlyDate",""]],features:[e.Jv_([{provide:T.MJ,useClass:N},{provide:T.de,useValue:B}])]})}}return r})(),k=(()=>{class r{static{this.\u0275fac=function(d){return new(d||r)}}static{this.\u0275dir=e.FsC({type:r,selectors:[["","yearlyDate",""]],features:[e.Jv_([{provide:T.MJ,useClass:N},{provide:T.de,useValue:Y}])]})}}return r})();var I=n(92),L=n(6114);const x=["monthlyDatepicker"],m=["yearlyDatepicker"],o=()=>({animationDirection:"forward"}),g=()=>({animationDirection:"backward"}),M=()=>({animationDirection:""});function F(r,O){if(1&r&&e.eu8(0,13),2&r){e.XpG();const s=e.sdS(19);e.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",e.lJ4(2,o))}}function h(r,O){if(1&r&&e.eu8(0,13),2&r){e.XpG();const s=e.sdS(19);e.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",e.lJ4(2,g))}}function j(r,O){if(1&r&&e.eu8(0,13),2&r){e.XpG();const s=e.sdS(19);e.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",e.lJ4(2,M))}}function U(r,O){if(1&r&&(e.j41(0,"mat-option",21),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&r){const s=O.$implicit;e.Y8G("value",s),e.R7$(),e.SpI(" ",e.bMT(2,2,s)," ")}}function K(r,O){if(1&r){const s=e.RV6();e.j41(0,"mat-form-field",22)(1,"input",23,1),e.mxI("ngModelChange",function(p){e.eBV(s);const u=e.XpG(2);return e.DH7(u.selectedValue,p)||(u.selectedValue=p),e.Njj(p)}),e.k0s(),e.nrm(3,"mat-datepicker-toggle",24),e.j41(4,"mat-datepicker",25,2),e.bIt("monthSelected",function(p){e.eBV(s);const u=e.XpG(2);return e.Njj(u.onMonthSelected(p))})("dateSelected",function(p){e.eBV(s);const u=e.XpG(2);return e.Njj(u.onMonthSelected(p))}),e.k0s()()}if(2&r){const s=e.sdS(5),d=e.XpG(2);e.R7$(),e.Y8G("matDatepicker",s)("min",d.first)("max",d.last),e.R50("ngModel",d.selectedValue),e.R7$(2),e.Y8G("for",s),e.R7$(),e.Y8G("startAt",d.selectedValue)}}function H(r,O){if(1&r){const s=e.RV6();e.j41(0,"mat-form-field",26)(1,"input",27,3),e.mxI("ngModelChange",function(p){e.eBV(s);const u=e.XpG(2);return e.DH7(u.selectedValue,p)||(u.selectedValue=p),e.Njj(p)}),e.k0s(),e.nrm(3,"mat-datepicker-toggle",24),e.j41(4,"mat-datepicker",28,4),e.bIt("yearSelected",function(p){e.eBV(s);const u=e.XpG(2);return e.Njj(u.onYearSelected(p))})("monthSelected",function(p){e.eBV(s);const u=e.XpG(2);return e.Njj(u.onYearSelected(p))})("dateSelected",function(p){e.eBV(s);const u=e.XpG(2);return e.Njj(u.onYearSelected(p))}),e.k0s()()}if(2&r){const s=e.sdS(5),d=e.XpG(2);e.R7$(),e.Y8G("matDatepicker",s)("min",d.first)("max",d.last),e.R50("ngModel",d.selectedValue),e.R7$(2),e.Y8G("for",s),e.R7$(),e.Y8G("startAt",d.selectedValue)}}function X(r,O){if(1&r){const s=e.RV6();e.j41(0,"div",14)(1,"div",15)(2,"mat-select",16),e.mxI("ngModelChange",function(p){e.eBV(s);const u=e.XpG();return e.DH7(u.selScrollRange,p)||(u.selScrollRange=p),e.Njj(p)}),e.bIt("selectionChange",function(p){e.eBV(s);const u=e.XpG();return e.Njj(u.onRangeChanged(p))}),e.DNE(3,U,3,4,"mat-option",17),e.k0s()(),e.j41(4,"div",18),e.DNE(5,K,6,6,"mat-form-field",19)(6,H,6,6,"mat-form-field",20),e.k0s()()}if(2&r){const s=e.XpG();e.Y8G("@sliderAnimation",s.animationDirection),e.R7$(2),e.R50("ngModel",s.selScrollRange),e.R7$(),e.Y8G("ngForOf",s.scrollRanges),e.R7$(2),e.Y8G("ngIf",s.selScrollRange===s.scrollRanges[0]),e.R7$(),e.Y8G("ngIf",s.selScrollRange===s.scrollRanges[1])}}let Q=(()=>{class r{constructor(s){this.logger=s,this.scrollRanges=f.rs,this.selScrollRange=this.scrollRanges[0],this.today=new Date(Date.now()),this.first=new Date(2018,0,1,0,0,0),this.last=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate(),0,0,0),this.disablePrev=!1,this.disableNext=!0,this.animationDirection="",this.selectedValue=this.last,this.stepChanged=new e.bkB}onRangeChanged(s){this.selScrollRange=s.value,this.onStepChange("LAST")}onMonthSelected(s){this.selectedValue=s,this.onStepChange("SELECTED"),this.monthlyDatepicker.close()}onYearSelected(s){this.selectedValue=s,this.onStepChange("SELECTED"),this.yearlyDatepicker.close()}onStepChange(s){switch(this.logger.info(s),s){case"FIRST":this.animationDirection="backward",this.selectedValue!==this.first&&(this.selectedValue=this.first,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange}));break;case"PREVIOUS":this.selectedValue=this.selScrollRange===f.rs[1]?new Date(this.selectedValue.getFullYear()-1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()-1,1,0,0,0),this.animationDirection="backward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"NEXT":this.selectedValue=this.selScrollRange===f.rs[1]?new Date(this.selectedValue.getFullYear()+1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()+1,1,0,0,0),this.animationDirection="forward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"LAST":this.animationDirection="forward",this.selectedValue=this.last,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;default:this.animationDirection="",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange})}this.disablePrev=this.selScrollRange===f.rs[1]?this.selectedValue.getFullYear()<=this.first.getFullYear():this.selectedValue.getFullYear()<=this.first.getFullYear()&&this.selectedValue.getMonth()<=this.first.getMonth(),this.disableNext=this.selScrollRange===f.rs[1]?this.selectedValue.getFullYear()>=this.last.getFullYear():this.selectedValue.getFullYear()>=this.last.getFullYear()&&this.selectedValue.getMonth()>=this.last.getMonth(),this.logger.info(this.disablePrev),this.logger.info(this.disableNext),setTimeout(()=>{this.animationDirection=""},800)}onChartMouseUp(s){"monthlyDate"===s.srcElement.name?this.monthlyDatepicker.open():"yearlyDate"===s.srcElement.name&&this.yearlyDatepicker.open()}static{this.\u0275fac=function(d){return new(d||r)(e.rXU(t.gP))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["rtl-horizontal-scroller"]],viewQuery:function(d,p){if(1&d&&(e.GBs(x,5),e.GBs(m,5)),2&d){let u;e.mGM(u=e.lsd())&&(p.monthlyDatepicker=u.first),e.mGM(u=e.lsd())&&(p.yearlyDatepicker=u.first)}},hostBindings:function(d,p){1&d&&e.bIt("click",function(V){return p.onChartMouseUp(V)})},outputs:{stepChanged:"stepChanged"},decls:20,vars:5,consts:[["controlsPanel",""],["monthlyDt","ngModel"],["monthlyDatepicker",""],["yearlyDt","ngModel"],["yearlyDatepicker",""],["fxLayout","row","fxLayoutAlign","space-between stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","20"],["mat-icon-button","","color","primary","type","button","tabindex","1",1,"pr-4",3,"click"],["mat-icon-button","","color","primary","type","button","tabindex","2",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","20"],["mat-icon-button","","color","primary","type","button","tabindex","5",1,"pr-4",3,"click","disabled"],["mat-icon-button","","color","primary","type","button","tabindex","6",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","58"],["fxFlex","50","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","end center",1,"font-bold-700"],["fxFlex","60","fxFlex.gt-md","30","name","selScrlRange","tabindex","3",1,"font-bold-700",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","start center"],["monthlyDate","","fxLayoutAlign","center center",4,"ngIf"],["yearlyDate","","fxLayoutAlign","center center",4,"ngIf"],[3,"value"],["monthlyDate","","fxLayoutAlign","center center"],["matInput","","name","monthlyDate","tabindex","4","readonly","",3,"ngModelChange","matDatepicker","min","max","ngModel"],["matSuffix","",3,"for"],["startView","year",3,"monthSelected","dateSelected","startAt"],["yearlyDate","","fxLayoutAlign","center center"],["matInput","","name","yearlyDate","tabindex","4","readonly","",3,"ngModelChange","matDatepicker","min","max","ngModel"],["startView","multi-year",3,"yearSelected","monthSelected","dateSelected","startAt"]],template:function(d,p){if(1&d){const u=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"button",7),e.bIt("click",function(){return e.eBV(u),e.Njj(p.onStepChange("FIRST"))}),e.j41(3,"mat-icon"),e.EFF(4,"skip_previous"),e.k0s()(),e.j41(5,"button",8),e.bIt("click",function(){return e.eBV(u),e.Njj(p.onStepChange("PREVIOUS"))}),e.j41(6,"mat-icon"),e.EFF(7,"navigate_before"),e.k0s()()(),e.DNE(8,F,1,3,"ng-container",9)(9,h,1,3,"ng-container",9)(10,j,1,3,"ng-container",9),e.j41(11,"div",10)(12,"button",11),e.bIt("click",function(){return e.eBV(u),e.Njj(p.onStepChange("NEXT"))}),e.j41(13,"mat-icon"),e.EFF(14,"navigate_next"),e.k0s()(),e.j41(15,"button",12),e.bIt("click",function(){return e.eBV(u),e.Njj(p.onStepChange("LAST"))}),e.j41(16,"mat-icon"),e.EFF(17,"skip_next"),e.k0s()()()(),e.DNE(18,X,7,5,"ng-template",null,0,e.C5r)}2&d&&(e.R7$(5),e.Y8G("disabled",p.disablePrev),e.R7$(3),e.Y8G("ngIf","forward"===p.animationDirection),e.R7$(),e.Y8G("ngIf","backward"===p.animationDirection),e.R7$(),e.Y8G("ngIf",""===p.animationDirection),e.R7$(2),e.Y8G("disabled",p.disableNext))},dependencies:[l.Sq,l.bT,l.T3,A.me,A.BC,A.vS,R.DJ,R.sA,R.UI,b.iY,v.Vh,v.bZ,v.bU,c.An,w.fg,D.rl,D.yw,E.VO,T.wT,P,k,I.z,L.V,l.PV],data:{animation:[S.k]}})}}return r})()},5085:(q,G,n)=>{n.d(G,{T:()=>e2});var e=n(6695),S=n(2042),f=n(9159),t=n(2798),l=n(4416),A=n(1771),R=n(1413),b=n(6977),v=n(9647),c=n(4438),w=n(2571),D=n(9640),E=n(177),T=n(2929),N=n(9417),B=n(2920),Y=n(6038),P=n(8834),k=n(9631),I=n(6467),L=n(6600),x=n(497);const m=()=>["all"],o=()=>["no_transaction"],g=i=>({"display-none":i});function M(i,_){if(1&i&&(c.j41(0,"mat-option",30),c.EFF(1),c.k0s()),2&i){const a=_.$implicit,C=c.XpG();c.Y8G("value",a),c.R7$(),c.JRh(C.getLabel(a))}}function F(i,_){1&i&&(c.j41(0,"th",31),c.EFF(1,"Date"),c.k0s())}function h(i,_){if(1&i&&(c.j41(0,"td",32),c.EFF(1),c.nI1(2,"date"),c.k0s()),2&i){const a=_.$implicit,C=c.XpG();c.R7$(),c.JRh(c.i5U(2,1,null==a?null:a.date,C.dataRange===C.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy"))}}function j(i,_){1&i&&(c.j41(0,"th",33),c.EFF(1,"Amount Paid (Sats)"),c.k0s())}function U(i,_){if(1&i&&(c.j41(0,"td",32)(1,"span",34),c.EFF(2),c.nI1(3,"number"),c.k0s()()),2&i){const a=_.$implicit;c.R7$(2),c.JRh(c.i5U(3,1,null==a?null:a.amount_paid,"1.0-2"))}}function K(i,_){1&i&&(c.j41(0,"th",33),c.EFF(1,"# Payments"),c.k0s())}function H(i,_){if(1&i&&(c.j41(0,"td",32)(1,"span",34),c.EFF(2),c.nI1(3,"number"),c.k0s()()),2&i){const a=_.$implicit;c.R7$(2),c.JRh(c.bMT(3,1,null==a?null:a.num_payments))}}function X(i,_){1&i&&(c.j41(0,"th",33),c.EFF(1,"Amount Received (Sats)"),c.k0s())}function Q(i,_){if(1&i&&(c.j41(0,"td",32)(1,"span",34),c.EFF(2),c.nI1(3,"number"),c.k0s()()),2&i){const a=_.$implicit;c.R7$(2),c.JRh(c.i5U(3,1,null==a?null:a.amount_received,"1.0-2"))}}function r(i,_){1&i&&(c.j41(0,"th",33),c.EFF(1,"# Invoices"),c.k0s())}function O(i,_){if(1&i&&(c.j41(0,"td",32)(1,"span",34),c.EFF(2),c.nI1(3,"number"),c.k0s()()),2&i){const a=_.$implicit;c.R7$(2),c.JRh(c.bMT(3,1,null==a?null:a.num_invoices))}}function s(i,_){if(1&i){const a=c.RV6();c.j41(0,"th",35)(1,"div",36)(2,"mat-select",37),c.nrm(3,"mat-select-trigger"),c.j41(4,"mat-option",38),c.bIt("click",function(){c.eBV(a);const z=c.XpG();return c.Njj(z.onDownloadCSV())}),c.EFF(5,"Download CSV"),c.k0s()()()()}}function d(i,_){if(1&i){const a=c.RV6();c.j41(0,"td",39)(1,"button",40),c.bIt("click",function(){const z=c.eBV(a).$implicit,y=c.XpG();return c.Njj(y.onTransactionClick(z))}),c.EFF(2,"View Info"),c.k0s()()}}function p(i,_){1&i&&(c.j41(0,"p"),c.EFF(1,"No transaction available."),c.k0s())}function u(i,_){if(1&i&&(c.j41(0,"td",41),c.DNE(1,p,2,0,"p",42),c.k0s()),2&i){const a=c.XpG();c.R7$(),c.Y8G("ngIf",!(null!=a.transactions&&a.transactions.data)||(null==a.transactions||null==a.transactions.data?null:a.transactions.data.length)<1)}}function V(i,_){if(1&i&&c.nrm(0,"tr",43),2&i){const a=c.XpG();c.Y8G("ngClass",c.eq3(1,g,(null==a.transactions?null:a.transactions.data)&&(null==a.transactions||null==a.transactions.data?null:a.transactions.data.length)>0))}}function J(i,_){1&i&&c.nrm(0,"tr",44)}function c2(i,_){1&i&&c.nrm(0,"tr",45)}let e2=(()=>{class i{constructor(a,C,z,y){this.commonService=a,this.store=C,this.datePipe=z,this.camelCaseWithReplace=y,this.dataRange=l.rs[0],this.dataList=[],this.selFilter="",this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.tableSetting={tableId:"transactions",recordsPerPage:l.md,sortBy:"date",sortOrder:l.oi.DESCENDING},this.nodePageDefs=l._1,this.selFilterBy="all",this.timezoneOffset=60*new Date(Date.now()).getTimezoneOffset(),this.scrollRanges=l.rs,this.transactions=new f.I6([]),this.pageSize=l.md,this.pageSizeOptions=l.xp,this.screenSize="",this.screenSizeEnum=l.f7,this.unSubs=[new R.B,new R.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(a){a.dataList&&!a.dataList.firstChange&&(this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.md,this.loadTransactionsTable(this.dataList)),a.selFilter&&!a.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(v._c).pipe((0,b.Q)(this.unSubs[0])).subscribe(a=>{this.nodePageDefs="CLN"===a.lnImplementation?l.Jd:"ECL"===a.lnImplementation?l.WW:l._1}),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.md,this.dataList&&this.dataList.length>0&&this.loadTransactionsTable(this.dataList)}ngAfterViewInit(){setTimeout(()=>{this.setTableWidgets()},0)}onTransactionClick(a){const C=[[{key:"date",value:this.datePipe.transform(a.date,this.dataRange===l.rs[1]?"MMM/yyyy":"dd/MMM/yyyy"),title:"Date",width:100,type:l.UN.DATE}],[{key:"amount_paid",value:Math.round(a.amount_paid),title:"Amount Paid (Sats)",width:50,type:l.UN.NUMBER},{key:"num_payments",value:a.num_payments,title:"# Payments",width:50,type:l.UN.NUMBER}],[{key:"amount_received",value:Math.round(a.amount_received),title:"Amount Received (Sats)",width:50,type:l.UN.NUMBER},{key:"num_invoices",value:a.num_invoices,title:"# Invoices",width:50,type:l.UN.NUMBER}]];this.store.dispatch((0,A.xO)({payload:{data:{type:l.A$.INFORMATION,alertTitle:"Transaction Summary",message:C}}}))}applyFilter(){this.transactions&&(this.transactions.filter=this.selFilter.trim().toLowerCase())}getLabel(a){const C=this.nodePageDefs.reports[this.tableSetting.tableId].allowedColumns.find(z=>z.column===a);return C?C.label?C.label:this.camelCaseWithReplace.transform(C.column,"_"):this.commonService.titleCase(a)}setFilterPredicate(){this.transactions.filterPredicate=(a,C)=>{let z="";switch(this.selFilterBy){case"all":z=(a.date?(this.datePipe.transform(a.date,"dd/MMM")+"/"+a.date.getFullYear()).toLowerCase():"")+JSON.stringify(a).toLowerCase();break;case"date":z=this.datePipe.transform(new Date(a[this.selFilterBy]||0),this.dataRange===this.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy")?.toLowerCase()||"";break;default:z=typeof a[this.selFilterBy]>"u"?"":"string"==typeof a[this.selFilterBy]?a[this.selFilterBy].toLowerCase():"boolean"==typeof a[this.selFilterBy]?a[this.selFilterBy]?"yes":"no":a[this.selFilterBy].toString()}return z.includes(C)}}loadTransactionsTable(a){this.transactions=new f.I6(a?[...a]:[]),this.setTableWidgets()}setTableWidgets(){this.transactions&&this.transactions.data&&this.transactions.data.length>0&&(this.transactions.sort=this.sort,this.transactions.sortingDataAccessor=(a,C)=>a[C]&&isNaN(a[C])?a[C].toLocaleLowerCase():a[C]?+a[C]:null,this.transactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter())}onDownloadCSV(){this.transactions.data&&this.transactions.data.length>0&&this.commonService.downloadFile(this.dataList,"Transactions-report-"+this.dataRange.toLowerCase())}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(),a.complete()})}static{this.\u0275fac=function(C){return new(C||i)(c.rXU(w.h),c.rXU(D.il),c.rXU(E.vh),c.rXU(T.VD))}}static{this.\u0275cmp=c.VBU({type:i,selectors:[["rtl-transactions-report-table"]],viewQuery:function(C,z){if(1&C&&(c.GBs(S.B4,5),c.GBs(e.iy,5)),2&C){let y;c.mGM(y=c.lsd())&&(z.sort=y.first),c.mGM(y=c.lsd())&&(z.paginator=y.first)}},inputs:{dataRange:"dataRange",dataList:"dataList",selFilter:"selFilter",displayedColumns:"displayedColumns",tableSetting:"tableSetting"},features:[c.Jv_([{provide:t.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:e.xX,useValue:(0,l.on)("Transactions")}]),c.OA$],decls:43,vars:14,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount_paid"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","num_payments"],["matColumnDef","amount_received"],["matColumnDef","num_invoices"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(C,z){if(1&C){const y=c.RV6();c.j41(0,"div",1)(1,"div",2)(2,"div",3),c.nrm(3,"div",4),c.j41(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),c.EFF(7,"Filter By"),c.k0s(),c.j41(8,"mat-select",7),c.mxI("ngModelChange",function(W){return c.eBV(y),c.DH7(z.selFilterBy,W)||(z.selFilterBy=W),c.Njj(W)}),c.bIt("selectionChange",function(){return c.eBV(y),z.selFilter="",c.Njj(z.applyFilter())}),c.j41(9,"perfect-scrollbar"),c.DNE(10,M,2,2,"mat-option",8),c.k0s()()(),c.j41(11,"mat-form-field",6)(12,"mat-label"),c.EFF(13,"Filter"),c.k0s(),c.j41(14,"input",9),c.mxI("ngModelChange",function(W){return c.eBV(y),c.DH7(z.selFilter,W)||(z.selFilter=W),c.Njj(W)}),c.bIt("input",function(){return c.eBV(y),c.Njj(z.applyFilter())})("keyup",function(){return c.eBV(y),c.Njj(z.applyFilter())}),c.k0s()()()(),c.j41(15,"div",10)(16,"div",11)(17,"table",12,0),c.qex(19,13),c.DNE(20,F,2,0,"th",14)(21,h,3,4,"td",15),c.bVm(),c.qex(22,16),c.DNE(23,j,2,0,"th",17)(24,U,4,4,"td",15),c.bVm(),c.qex(25,18),c.DNE(26,K,2,0,"th",17)(27,H,4,3,"td",15),c.bVm(),c.qex(28,19),c.DNE(29,X,2,0,"th",17)(30,Q,4,4,"td",15),c.bVm(),c.qex(31,20),c.DNE(32,r,2,0,"th",17)(33,O,4,3,"td",15),c.bVm(),c.qex(34,21),c.DNE(35,s,6,0,"th",22)(36,d,3,0,"td",23),c.bVm(),c.qex(37,24),c.DNE(38,u,2,1,"td",25),c.bVm(),c.DNE(39,V,1,3,"tr",26)(40,J,1,0,"tr",27)(41,c2,1,0,"tr",28),c.k0s(),c.nrm(42,"mat-paginator",29),c.k0s()()()()}2&C&&(c.R7$(8),c.R50("ngModel",z.selFilterBy),c.R7$(2),c.Y8G("ngForOf",c.lJ4(12,m).concat(z.displayedColumns.slice(0,-1))),c.R7$(4),c.R50("ngModel",z.selFilter),c.R7$(3),c.Y8G("matSortActive",z.tableSetting.sortBy)("matSortDirection",z.tableSetting.sortOrder)("dataSource",z.transactions),c.R7$(22),c.Y8G("matFooterRowDef",c.lJ4(13,o)),c.R7$(),c.Y8G("matHeaderRowDef",z.displayedColumns),c.R7$(),c.Y8G("matRowDefColumns",z.displayedColumns),c.R7$(),c.Y8G("pageSize",z.pageSize)("pageSizeOptions",z.pageSizeOptions)("showFirstLastButtons",z.screenSize!==z.screenSizeEnum.XS))},dependencies:[E.YU,E.Sq,E.bT,N.me,N.BC,N.vS,B.DJ,B.sA,B.UI,Y.PW,P.$z,k.fg,I.rl,I.nJ,t.VO,t.$2,L.wT,S.B4,S.aE,f.Zl,f.tL,f.ji,f.cC,f.YV,f.iL,f.Zq,f.xW,f.KS,f.$R,f.Qo,f.YZ,f.NB,f.iF,e.iy,x.ZF,x.Ld,E.QX,E.vh]})}}return i})()},614:(q,G,n)=>{n.d(G,{Qpm:()=>s1,wB1:()=>I2});const I2={prefix:"far",iconName:"face-frown",icon:[512,512,[9785,"frown"],"f119","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM174.6 384.1c-4.5 12.5-18.2 18.9-30.7 14.4s-18.9-18.2-14.4-30.7C146.9 319.4 198.9 288 256 288s109.1 31.4 126.6 79.9c4.5 12.5-2 26.2-14.4 30.7s-26.2-2-30.7-14.4C328.2 358.5 297.2 336 256 336s-72.2 22.5-81.4 48.1zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},s1={prefix:"far",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]}}}]);