Ride-The-Lightning-RTL/frontend/267.8f996ec2b4b156e0.js
ShahanaFarooqui 6bcffb6bdc Dependency Updates
Dependency Updates
2023-02-17 17:49:40 -08:00

1 line
30 KiB
JavaScript

"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[267],{1203:(Q,P,n)=>{n.d(P,{D:()=>V});var a=n(7579),T=n(2722),C=n(7731),e=n(8377),t=n(4650),S=n(62),D=n(9653),F=n(6895),L=n(1576),c=n(7392),w=n(266),N=n(3848);function y(p,h){if(1&p&&(t.TgZ(0,"mat-icon",10),t._uU(1,"info_outline"),t.qZA()),2&p){const m=t.oxw().$implicit;t.Q6J("matTooltip",m.tooltip)}}function x(p,h){if(1&p&&(t.TgZ(0,"span",11),t._uU(1),t.ALo(2,"number"),t.qZA()),2&p){const m=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,m.dataValue)," ")}}function E(p,h){if(1&p&&(t.TgZ(0,"span",11),t._uU(1),t.ALo(2,"number"),t.qZA()),2&p){const m=t.oxw().$implicit,f=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,m[f.currencyUnitEnum.BTC],f.currencyUnitFormats.BTC)," ")}}function g(p,h){if(1&p&&(t.TgZ(0,"span",11),t._uU(1),t.ALo(2,"number"),t.qZA()),2&p){const m=t.oxw().$implicit,f=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,m[f.currencyUnitEnum.OTHER],f.currencyUnitFormats.OTHER)," ")}}function U(p,h){if(1&p&&(t.TgZ(0,"div",6)(1,"div",7),t._uU(2),t.YNc(3,y,2,1,"mat-icon",8),t.qZA(),t.YNc(4,x,3,3,"span",9),t.YNc(5,E,3,4,"span",9),t.YNc(6,g,3,4,"span",9),t.qZA()),2&p){const m=h.$implicit,f=t.oxw().$implicit,M=t.oxw();t.xp6(2),t.hij(" ",m.title," "),t.xp6(1),t.Q6J("ngIf",m.tooltip),t.xp6(1),t.Q6J("ngIf",f===M.currencyUnitEnum.SATS),t.xp6(1),t.Q6J("ngIf",f===M.currencyUnitEnum.BTC),t.xp6(1),t.Q6J("ngIf",M.fiatConversion&&f!==M.currencyUnitEnum.SATS&&f!==M.currencyUnitEnum.BTC&&""===M.conversionErrorMsg)}}function b(p,h){if(1&p&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA()()),2&p){const m=t.oxw(2);t.xp6(2),t.Oqu(m.conversionErrorMsg)}}function A(p,h){if(1&p&&(t.TgZ(0,"mat-tab",2)(1,"div",3),t.YNc(2,U,7,5,"div",4),t.qZA(),t.YNc(3,b,3,1,"div",5),t.qZA()),2&p){const m=h.$implicit,f=t.oxw();t.s9C("label",m),t.xp6(2),t.Q6J("ngForOf",f.values),t.xp6(1),t.Q6J("ngIf",f.fiatConversion&&m!==f.currencyUnitEnum.SATS&&m!==f.currencyUnitEnum.BTC&&""!==f.conversionErrorMsg)}}class V{constructor(h,m){this.commonService=h,this.store=m,this.values=[],this.currencyUnitEnum=C.NT,this.currencyUnitFormats=C.Xz,this.currencyUnits=[],this.fiatConversion=!1,this.conversionErrorMsg="",this.unSubs=[new a.x,new a.x,new a.x]}ngOnInit(){this.store.select(e.dT).pipe((0,T.R)(this.unSubs[0])).subscribe(h=>{this.fiatConversion=h.settings.fiatConversion,this.currencyUnits=h.settings.currencyUnits,this.fiatConversion||this.currencyUnits.splice(2,1),this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)})}ngOnChanges(){this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)}getCurrencyValues(h){h.forEach(m=>{m.dataValue>0?(this.commonService.convertCurrency(m.dataValue,C.NT.SATS,C.NT.BTC,"",!0).pipe((0,T.R)(this.unSubs[1])).subscribe(f=>{m[C.NT.BTC]=f.BTC}),this.commonService.convertCurrency(m.dataValue,C.NT.SATS,C.NT.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,T.R)(this.unSubs[2])).subscribe({next:f=>{m[C.NT.OTHER]=f.OTHER},error:f=>{this.conversionErrorMsg="Conversion Error: "+f}})):(m[C.NT.BTC]=m.dataValue,""===this.conversionErrorMsg&&(m[C.NT.OTHER]=m.dataValue))})}ngOnDestroy(){this.unSubs.forEach(h=>{h.next(null),h.complete()})}}V.\u0275fac=function(h){return new(h||V)(t.Y36(S.v),t.Y36(D.yh))},V.\u0275cmp=t.Xpm({type:V,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},features:[t.TTD],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(h,m){1&h&&(t.TgZ(0,"mat-tab-group",0),t.YNc(1,A,4,3,"mat-tab",1),t.qZA()),2&h&&(t.xp6(1),t.Q6J("ngForOf",m.currencyUnits))},dependencies:[F.sg,F.O5,L.xw,L.Wh,L.yH,c.Hw,w.gM,N.uX,N.SP,F.JJ]})},9122:(Q,P,n)=>{n.d(P,{n:()=>m});var a=n(5412),T=n(2687),C=n(7731),e=n(4650),t=n(5043),S=n(62),D=n(7009),F=n(6895),L=n(2216),c=n(1576),w=n(5829),N=n(4859),y=n(3546),x=n(4850),E=n(658),g=n(5199),U=n(3390);const b=function(f){return{"display-none":f}};function A(f,M){if(1&f&&(e.TgZ(0,"div",20),e._UZ(1,"qr-code",21),e.qZA()),2&f){const u=e.oxw();e.Q6J("ngClass",e.VKq(4,b,u.screenSize===u.screenSizeEnum.XS||u.screenSize===u.screenSizeEnum.SM)),e.xp6(1),e.Q6J("value",u.address)("size",u.qrWidth)("errorCorrectionLevel","L")}}function V(f,M){if(1&f&&(e.TgZ(0,"div",22),e._UZ(1,"qr-code",21),e.qZA()),2&f){const u=e.oxw();e.Q6J("ngClass",e.VKq(4,b,u.screenSize!==u.screenSizeEnum.XS&&u.screenSize!==u.screenSizeEnum.SM)),e.xp6(1),e.Q6J("value",u.address)("size",u.qrWidth)("errorCorrectionLevel","L")}}function p(f,M){if(1&f&&(e.TgZ(0,"div",13)(1,"div",14)(2,"h4",15),e._uU(3,"Address Type"),e.qZA(),e.TgZ(4,"span",23),e._uU(5),e.qZA()()()),2&f){const u=e.oxw();e.xp6(5),e.Oqu(u.addressType)}}function h(f,M){1&f&&e._UZ(0,"mat-divider",17)}class m{constructor(M,u,R,k,Z){this.dialogRef=M,this.data=u,this.logger=R,this.commonService=k,this.snackBar=Z,this.faReceipt=T.dLy,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=C.cu}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)}}m.\u0275fac=function(M){return new(M||m)(e.Y36(a.so),e.Y36(a.WI),e.Y36(t.mQ),e.Y36(S.v),e.Y36(D.ux))},m.\u0275cmp=e.Xpm({type:m,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,"payload","copied"],["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(M,u){1&M&&(e.TgZ(0,"div",0),e.YNc(1,A,2,6,"div",1),e.TgZ(2,"div",2)(3,"mat-card-header",3)(4,"div",4),e._UZ(5,"fa-icon",5),e.TgZ(6,"span",6),e._uU(7),e.qZA()(),e.TgZ(8,"button",7),e.NdJ("click",function(){return u.onClose()}),e._uU(9,"X"),e.qZA()(),e.TgZ(10,"mat-card-content",8)(11,"div",9),e.YNc(12,V,2,6,"div",10),e.YNc(13,p,6,1,"div",11),e.YNc(14,h,1,0,"mat-divider",12),e.TgZ(15,"div",13)(16,"div",14)(17,"h4",15),e._uU(18,"Address"),e.qZA(),e.TgZ(19,"span",16),e._uU(20),e.qZA()()(),e._UZ(21,"mat-divider",17),e.TgZ(22,"div",18)(23,"button",19),e.NdJ("copied",function(k){return u.onCopyAddress(k)}),e._uU(24,"Copy Address"),e.qZA()()()()()()),2&M&&(e.xp6(1),e.Q6J("ngIf",u.address),e.xp6(4),e.Q6J("icon",u.faReceipt),e.xp6(2),e.Oqu(u.screenSize===u.screenSizeEnum.XS?"Address":"Generated Address"),e.xp6(5),e.Q6J("ngIf",u.address),e.xp6(1),e.Q6J("ngIf",""!==u.addressType),e.xp6(1),e.Q6J("ngIf",""!==u.addressType),e.xp6(6),e.Oqu(u.address),e.xp6(3),e.Q6J("payload",u.address))},dependencies:[F.mk,F.O5,L.BN,c.xw,c.Wh,c.yH,w.oO,N.lW,y.dn,y.dk,x.d,E.uU,g.y,U.h]})},7671:(Q,P,n)=>{n.d(P,{D:()=>B});var a=n(4650),T=n(113),C=n(7731),e=n(5043),t=n(6895),S=n(4006),D=n(1576),F=n(4859),L=n(9602),c=n(7392),w=n(4144),N=n(9549),y=n(4385),x=n(3238),E=n(3353);class g extends x.LF{constructor(o,l){super(o,l)}format(o,l){return"MMM YYYY"===l?C.gg[o.getMonth()].name+", "+o.getFullYear():"YYYY"===l?o.getFullYear().toString():o.getDate()+"/"+C.gg[o.getMonth()].name+"/"+o.getFullYear()}}g.\u0275fac=function(o){return new(o||g)(a.LFG(x.Ad,8),a.LFG(E.t4))},g.\u0275prov=a.Yz7({token:g,factory:g.\u0275fac});class A{}A.\u0275fac=function(o){return new(o||A)},A.\u0275dir=a.lG2({type:A,selectors:[["","monthlyDate",""]],features:[a._Bn([{provide:x._A,useClass:g},{provide:x.sG,useValue:{parse:{dateInput:"LL"},display:{dateInput:"MMM YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}}}])]});class V{}V.\u0275fac=function(o){return new(o||V)},V.\u0275dir=a.lG2({type:V,selectors:[["","yearlyDate",""]],features:[a._Bn([{provide:x._A,useClass:g},{provide:x.sG,useValue:{parse:{dateInput:"LL"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}}}])]});var p=n(9843),h=n(6534);const m=["monthlyDatepicker"],f=["yearlyDatepicker"],M=function(){return{animationDirection:"forward"}};function u(d,o){if(1&d&&a.GkF(0,9),2&d){a.oxw();const l=a.MAs(19);a.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",a.DdM(2,M))}}const R=function(){return{animationDirection:"backward"}};function k(d,o){if(1&d&&a.GkF(0,9),2&d){a.oxw();const l=a.MAs(19);a.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",a.DdM(2,R))}}const Z=function(){return{animationDirection:""}};function Y(d,o){if(1&d&&a.GkF(0,9),2&d){a.oxw();const l=a.MAs(19);a.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",a.DdM(2,Z))}}function W(d,o){if(1&d&&(a.TgZ(0,"mat-option",17),a._uU(1),a.ALo(2,"titlecase"),a.qZA()),2&d){const l=o.$implicit;a.Q6J("value",l),a.xp6(1),a.hij(" ",a.lcZ(2,2,l)," ")}}function G(d,o){if(1&d){const l=a.EpF();a.TgZ(0,"mat-form-field",18)(1,"input",19,20),a.NdJ("ngModelChange",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.selectedValue=H)}),a.qZA(),a._UZ(3,"mat-datepicker-toggle",21),a.TgZ(4,"mat-datepicker",22,23),a.NdJ("monthSelected",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.onMonthSelected(H))})("dateSelected",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.onMonthSelected(H))}),a.qZA()()}if(2&d){const l=a.MAs(5),z=a.oxw(2);a.xp6(1),a.Q6J("matDatepicker",l)("min",z.first)("max",z.last)("ngModel",z.selectedValue),a.xp6(2),a.Q6J("for",l),a.xp6(1),a.Q6J("startAt",z.selectedValue)}}function q(d,o){if(1&d){const l=a.EpF();a.TgZ(0,"mat-form-field",24)(1,"input",25,26),a.NdJ("ngModelChange",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.selectedValue=H)}),a.qZA(),a._UZ(3,"mat-datepicker-toggle",21),a.TgZ(4,"mat-datepicker",27,28),a.NdJ("yearSelected",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.onYearSelected(H))})("monthSelected",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.onYearSelected(H))})("dateSelected",function(H){a.CHM(l);const v=a.oxw(2);return a.KtG(v.onYearSelected(H))}),a.qZA()()}if(2&d){const l=a.MAs(5),z=a.oxw(2);a.xp6(1),a.Q6J("matDatepicker",l)("min",z.first)("max",z.last)("ngModel",z.selectedValue),a.xp6(2),a.Q6J("for",l),a.xp6(1),a.Q6J("startAt",z.selectedValue)}}function K(d,o){if(1&d){const l=a.EpF();a.TgZ(0,"div",10)(1,"div",11)(2,"mat-select",12),a.NdJ("ngModelChange",function(H){a.CHM(l);const v=a.oxw();return a.KtG(v.selScrollRange=H)})("selectionChange",function(H){a.CHM(l);const v=a.oxw();return a.KtG(v.onRangeChanged(H))}),a.YNc(3,W,3,4,"mat-option",13),a.qZA()(),a.TgZ(4,"div",14),a.YNc(5,G,6,6,"mat-form-field",15),a.YNc(6,q,6,6,"mat-form-field",16),a.qZA()()}if(2&d){const l=a.oxw();a.Q6J("@sliderAnimation",l.animationDirection),a.xp6(2),a.Q6J("ngModel",l.selScrollRange),a.xp6(1),a.Q6J("ngForOf",l.scrollRanges),a.xp6(2),a.Q6J("ngIf",l.selScrollRange===l.scrollRanges[0]),a.xp6(1),a.Q6J("ngIf",l.selScrollRange===l.scrollRanges[1])}}class B{constructor(o){this.logger=o,this.scrollRanges=C.op,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 a.vpe}onRangeChanged(o){this.selScrollRange=o.value,this.onStepChange("LAST")}onMonthSelected(o){this.selectedValue=o,this.onStepChange("SELECTED"),this.monthlyDatepicker.close()}onYearSelected(o){this.selectedValue=o,this.onStepChange("SELECTED"),this.yearlyDatepicker.close()}onStepChange(o){switch(this.logger.info(o),o){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===C.op[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===C.op[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===C.op[1]?this.selectedValue.getFullYear()<=this.first.getFullYear():this.selectedValue.getFullYear()<=this.first.getFullYear()&&this.selectedValue.getMonth()<=this.first.getMonth(),this.disableNext=this.selScrollRange===C.op[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(o){"monthlyDate"===o.srcElement.name?this.monthlyDatepicker.open():"yearlyDate"===o.srcElement.name&&this.yearlyDatepicker.open()}}B.\u0275fac=function(o){return new(o||B)(a.Y36(e.mQ))},B.\u0275cmp=a.Xpm({type:B,selectors:[["rtl-horizontal-scroller"]],viewQuery:function(o,l){if(1&o&&(a.Gf(m,5),a.Gf(f,5)),2&o){let z;a.iGM(z=a.CRH())&&(l.monthlyDatepicker=z.first),a.iGM(z=a.CRH())&&(l.yearlyDatepicker=z.first)}},hostBindings:function(o,l){1&o&&a.NdJ("click",function(H){return l.onChartMouseUp(H)})},outputs:{stepChanged:"stepChanged"},decls:20,vars:5,consts:[["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,"disabled","click"],[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,"disabled","click"],["mat-icon-button","","color","primary","type","button","tabindex","6",3,"click"],["controlsPanel",""],[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,"ngModel","ngModelChange","selectionChange"],[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,"matDatepicker","min","max","ngModel","ngModelChange"],["monthlyDt","ngModel"],["matSuffix","",3,"for"],["startView","year",3,"startAt","monthSelected","dateSelected"],["monthlyDatepicker",""],["yearlyDate","","fxLayoutAlign","center center"],["matInput","","name","yearlyDate","tabindex","4","readonly","",3,"matDatepicker","min","max","ngModel","ngModelChange"],["yearlyDt","ngModel"],["startView","multi-year",3,"startAt","yearSelected","monthSelected","dateSelected"],["yearlyDatepicker",""]],template:function(o,l){1&o&&(a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return l.onStepChange("FIRST")}),a.TgZ(3,"mat-icon"),a._uU(4,"skip_previous"),a.qZA()(),a.TgZ(5,"button",3),a.NdJ("click",function(){return l.onStepChange("PREVIOUS")}),a.TgZ(6,"mat-icon"),a._uU(7,"navigate_before"),a.qZA()()(),a.YNc(8,u,1,3,"ng-container",4),a.YNc(9,k,1,3,"ng-container",4),a.YNc(10,Y,1,3,"ng-container",4),a.TgZ(11,"div",5)(12,"button",6),a.NdJ("click",function(){return l.onStepChange("NEXT")}),a.TgZ(13,"mat-icon"),a._uU(14,"navigate_next"),a.qZA()(),a.TgZ(15,"button",7),a.NdJ("click",function(){return l.onStepChange("LAST")}),a.TgZ(16,"mat-icon"),a._uU(17,"skip_next"),a.qZA()()()(),a.YNc(18,K,7,5,"ng-template",null,8,a.W1O)),2&o&&(a.xp6(5),a.Q6J("disabled",l.disablePrev),a.xp6(3),a.Q6J("ngIf","forward"===l.animationDirection),a.xp6(1),a.Q6J("ngIf","backward"===l.animationDirection),a.xp6(1),a.Q6J("ngIf",""===l.animationDirection),a.xp6(2),a.Q6J("disabled",l.disableNext))},dependencies:[t.sg,t.O5,t.tP,S.Fj,S.JJ,S.On,D.xw,D.Wh,D.yH,F.RK,L.Mq,L.hl,L.nW,c.Hw,w.Nt,N.KE,N.R9,y.gD,x.ey,A,V,p.F,h.q,t.rS],data:{animation:[T.l]}})},165:(Q,P,n)=>{n.d(P,{g:()=>I});var a=n(8739),T=n(6308),C=n(671),e=n(7731),t=n(7861),S=n(7579),D=n(2722),F=n(8377),L=n(4385),c=n(4650),w=n(62),N=n(9653),y=n(6895),x=n(9445),E=n(4006),g=n(1576),U=n(5829),b=n(4859),A=n(4144),V=n(9549),p=n(3238),h=n(6839);function m(s,r){if(1&s&&(c.TgZ(0,"mat-option",30),c._uU(1),c.qZA()),2&s){const i=r.$implicit,_=c.oxw();c.Q6J("value",i),c.xp6(1),c.Oqu(_.getLabel(i))}}function f(s,r){1&s&&(c.TgZ(0,"th",31),c._uU(1,"Date"),c.qZA())}function M(s,r){if(1&s&&(c.TgZ(0,"td",32),c._uU(1),c.ALo(2,"date"),c.qZA()),2&s){const i=r.$implicit,_=c.oxw();c.xp6(1),c.Oqu(c.xi3(2,1,null==i?null:i.date,_.dataRange===_.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy"))}}function u(s,r){1&s&&(c.TgZ(0,"th",33),c._uU(1,"Amount Paid (Sats)"),c.qZA())}function R(s,r){if(1&s&&(c.TgZ(0,"td",32)(1,"span",34),c._uU(2),c.ALo(3,"number"),c.qZA()()),2&s){const i=r.$implicit;c.xp6(2),c.Oqu(c.xi3(3,1,null==i?null:i.amount_paid,"1.0-2"))}}function k(s,r){1&s&&(c.TgZ(0,"th",33),c._uU(1,"# Payments"),c.qZA())}function Z(s,r){if(1&s&&(c.TgZ(0,"td",32)(1,"span",34),c._uU(2),c.ALo(3,"number"),c.qZA()()),2&s){const i=r.$implicit;c.xp6(2),c.Oqu(c.lcZ(3,1,null==i?null:i.num_payments))}}function Y(s,r){1&s&&(c.TgZ(0,"th",33),c._uU(1,"Amount Received (Sats)"),c.qZA())}function W(s,r){if(1&s&&(c.TgZ(0,"td",32)(1,"span",34),c._uU(2),c.ALo(3,"number"),c.qZA()()),2&s){const i=r.$implicit;c.xp6(2),c.Oqu(c.xi3(3,1,null==i?null:i.amount_received,"1.0-2"))}}function G(s,r){1&s&&(c.TgZ(0,"th",33),c._uU(1,"# Invoices"),c.qZA())}function q(s,r){if(1&s&&(c.TgZ(0,"td",32)(1,"span",34),c._uU(2),c.ALo(3,"number"),c.qZA()()),2&s){const i=r.$implicit;c.xp6(2),c.Oqu(c.lcZ(3,1,null==i?null:i.num_invoices))}}function K(s,r){if(1&s){const i=c.EpF();c.TgZ(0,"th",35)(1,"div",36)(2,"mat-select",37),c._UZ(3,"mat-select-trigger"),c.TgZ(4,"mat-option",38),c.NdJ("click",function(){c.CHM(i);const O=c.oxw();return c.KtG(O.onDownloadCSV())}),c._uU(5,"Download CSV"),c.qZA()()()()}}function B(s,r){if(1&s){const i=c.EpF();c.TgZ(0,"td",39)(1,"button",40),c.NdJ("click",function(){const X=c.CHM(i).$implicit,c2=c.oxw();return c.KtG(c2.onTransactionClick(X))}),c._uU(2,"View Info"),c.qZA()()}}function d(s,r){1&s&&(c.TgZ(0,"p"),c._uU(1,"No transaction available."),c.qZA())}function o(s,r){if(1&s&&(c.TgZ(0,"td",41),c.YNc(1,d,2,0,"p",42),c.qZA()),2&s){const i=c.oxw();c.xp6(1),c.Q6J("ngIf",!(null!=i.transactions&&i.transactions.data)||(null==i.transactions||null==i.transactions.data?null:i.transactions.data.length)<1)}}const l=function(s){return{"display-none":s}};function z(s,r){if(1&s&&c._UZ(0,"tr",43),2&s){const i=c.oxw();c.Q6J("ngClass",c.VKq(1,l,(null==i.transactions?null:i.transactions.data)&&(null==i.transactions||null==i.transactions.data?null:i.transactions.data.length)>0))}}function H(s,r){1&s&&c._UZ(0,"tr",44)}function v(s,r){1&s&&c._UZ(0,"tr",45)}const J=function(){return["all"]},$=function(){return["no_transaction"]};class I{constructor(r,i,_,O){this.commonService=r,this.store=i,this.datePipe=_,this.camelCaseWithReplace=O,this.dataRange=e.op[0],this.dataList=[],this.selFilter="",this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.tableSetting={tableId:"transactions",recordsPerPage:e.IV,sortBy:"date",sortOrder:e.Pi.DESCENDING},this.nodePageDefs=e.hG,this.selFilterBy="all",this.timezoneOffset=60*new Date(Date.now()).getTimezoneOffset(),this.scrollRanges=e.op,this.transactions=new C.by([]),this.pageSize=e.IV,this.pageSizeOptions=e.TJ,this.screenSize="",this.screenSizeEnum=e.cu,this.unSubs=[new S.x,new S.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.dT).pipe((0,D.R)(this.unSubs[0])).subscribe(r=>{this.nodePageDefs="CLN"===r.lnImplementation?e.At:"ECL"===r.lnImplementation?e.Xk:e.hG}),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:e.IV,this.dataList&&this.dataList.length>0&&this.loadTransactionsTable(this.dataList)}ngAfterViewInit(){setTimeout(()=>{this.setTableWidgets()},0)}ngOnChanges(r){r.dataList&&!r.dataList.firstChange&&(this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:e.IV,this.loadTransactionsTable(this.dataList)),r.selFilter&&!r.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}onTransactionClick(r){const i=[[{key:"date",value:this.datePipe.transform(r.date,this.dataRange===e.op[1]?"MMM/yyyy":"dd/MMM/yyyy"),title:"Date",width:100,type:e.Gi.DATE}],[{key:"amount_paid",value:Math.round(r.amount_paid),title:"Amount Paid (Sats)",width:50,type:e.Gi.NUMBER},{key:"num_payments",value:r.num_payments,title:"# Payments",width:50,type:e.Gi.NUMBER}],[{key:"amount_received",value:Math.round(r.amount_received),title:"Amount Received (Sats)",width:50,type:e.Gi.NUMBER},{key:"num_invoices",value:r.num_invoices,title:"# Invoices",width:50,type:e.Gi.NUMBER}]];this.store.dispatch((0,t.qR)({payload:{data:{type:e.n_.INFORMATION,alertTitle:"Transaction Summary",message:i}}}))}applyFilter(){this.transactions&&(this.transactions.filter=this.selFilter.trim().toLowerCase())}getLabel(r){const i=this.nodePageDefs.reports[this.tableSetting.tableId].allowedColumns.find(_=>_.column===r);return i?i.label?i.label:this.camelCaseWithReplace.transform(i.column,"_"):this.commonService.titleCase(r)}setFilterPredicate(){this.transactions.filterPredicate=(r,i)=>{let _="";switch(this.selFilterBy){case"all":_=(r.date?(this.datePipe.transform(r.date,"dd/MMM")+"/"+r.date.getFullYear()).toLowerCase():"")+JSON.stringify(r).toLowerCase();break;case"date":_=this.datePipe.transform(new Date(r[this.selFilterBy]||0),this.dataRange===this.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy")?.toLowerCase()||"";break;default:_=typeof r[this.selFilterBy]>"u"?"":"string"==typeof r[this.selFilterBy]?r[this.selFilterBy].toLowerCase():"boolean"==typeof r[this.selFilterBy]?r[this.selFilterBy]?"yes":"no":r[this.selFilterBy].toString()}return _.includes(i)}}loadTransactionsTable(r){this.transactions=new C.by(r?[...r]:[]),this.setTableWidgets()}setTableWidgets(){this.transactions&&this.transactions.data&&this.transactions.data.length>0&&(this.transactions.sort=this.sort,this.transactions.sortingDataAccessor=(r,i)=>r[i]&&isNaN(r[i])?r[i].toLocaleLowerCase():r[i]?+r[i]: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(r=>{r.next(),r.complete()})}}I.\u0275fac=function(r){return new(r||I)(c.Y36(w.v),c.Y36(N.yh),c.Y36(y.uU),c.Y36(x.D3))},I.\u0275cmp=c.Xpm({type:I,selectors:[["rtl-transactions-report-table"]],viewQuery:function(r,i){if(1&r&&(c.Gf(T.YE,5),c.Gf(a.NW,5)),2&r){let _;c.iGM(_=c.CRH())&&(i.sort=_.first),c.iGM(_=c.CRH())&&(i.paginator=_.first)}},inputs:{dataRange:"dataRange",dataList:"dataList",selFilter:"selFilter",displayedColumns:"displayedColumns",tableSetting:"tableSetting"},features:[c._Bn([{provide:L.PG,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:a.ye,useValue:(0,e.pt)("Transactions")}]),c.TTD],decls:43,vars:14,consts:[["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,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModel","ngModelChange","input","keyup"],["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"],["table",""],["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(r,i){1&r&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2),c._UZ(3,"div",3),c.TgZ(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c._uU(7,"Filter By"),c.qZA(),c.TgZ(8,"mat-select",6),c.NdJ("ngModelChange",function(O){return i.selFilterBy=O})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),c.TgZ(9,"perfect-scrollbar"),c.YNc(10,m,2,2,"mat-option",7),c.qZA()()(),c.TgZ(11,"mat-form-field",5)(12,"mat-label"),c._uU(13,"Filter"),c.qZA(),c.TgZ(14,"input",8),c.NdJ("ngModelChange",function(O){return i.selFilter=O})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),c.qZA()()()(),c.TgZ(15,"div",9)(16,"div",10)(17,"table",11,12),c.ynx(19,13),c.YNc(20,f,2,0,"th",14),c.YNc(21,M,3,4,"td",15),c.BQk(),c.ynx(22,16),c.YNc(23,u,2,0,"th",17),c.YNc(24,R,4,4,"td",15),c.BQk(),c.ynx(25,18),c.YNc(26,k,2,0,"th",17),c.YNc(27,Z,4,3,"td",15),c.BQk(),c.ynx(28,19),c.YNc(29,Y,2,0,"th",17),c.YNc(30,W,4,4,"td",15),c.BQk(),c.ynx(31,20),c.YNc(32,G,2,0,"th",17),c.YNc(33,q,4,3,"td",15),c.BQk(),c.ynx(34,21),c.YNc(35,K,6,0,"th",22),c.YNc(36,B,3,0,"td",23),c.BQk(),c.ynx(37,24),c.YNc(38,o,2,1,"td",25),c.BQk(),c.YNc(39,z,1,3,"tr",26),c.YNc(40,H,1,0,"tr",27),c.YNc(41,v,1,0,"tr",28),c.qZA(),c._UZ(42,"mat-paginator",29),c.qZA()()()()),2&r&&(c.xp6(8),c.Q6J("ngModel",i.selFilterBy),c.xp6(2),c.Q6J("ngForOf",c.DdM(12,J).concat(i.displayedColumns.slice(0,-1))),c.xp6(4),c.Q6J("ngModel",i.selFilter),c.xp6(3),c.Q6J("matSortActive",i.tableSetting.sortBy)("matSortDirection",i.tableSetting.sortOrder)("dataSource",i.transactions),c.xp6(22),c.Q6J("matFooterRowDef",c.DdM(13,$)),c.xp6(1),c.Q6J("matHeaderRowDef",i.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",i.displayedColumns),c.xp6(1),c.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},dependencies:[y.mk,y.sg,y.O5,E.Fj,E.JJ,E.On,g.xw,g.Wh,g.yH,U.oO,b.lW,A.Nt,V.KE,V.hX,L.gD,L.$L,p.ey,T.YE,T.nU,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.mD,C.Ke,C.ge,C.ev,C.yh,C.XQ,C.Gk,C.Q2,a.NW,h.Vv,h.$V,y.JJ,y.uU]})},3396:(Q,P,n)=>{n.d(P,{KfU:()=>P2,ctA:()=>r1});var P2={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"]},r1={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"]}}}]);