2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-15 18:13:00 +00:00
RTL/frontend/893.9a615c46b89a5a79.js
Shahana Farooqui dd328cad1c Dependency updates
Dependency updates
2022-08-09 23:27:55 -07:00

1 line
29 KiB
JavaScript

"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[893],{534:(q,b,r)=>{r.d(b,{KfU:()=>l2,ctA:()=>k2});var l2={prefix:"far",iconName:"face-frown",icon:[512,512,[9785,"frown"],"f119","M143.9 398.6C131.4 394.1 124.9 380.3 129.4 367.9C146.9 319.4 198.9 288 256 288C313.1 288 365.1 319.4 382.6 367.9C387.1 380.3 380.6 394.1 368.1 398.6C355.7 403.1 341.9 396.6 337.4 384.1C328.2 358.5 297.2 336 256 336C214.8 336 183.8 358.5 174.6 384.1C170.1 396.6 156.3 403.1 143.9 398.6V398.6zM208.4 208C208.4 225.7 194 240 176.4 240C158.7 240 144.4 225.7 144.4 208C144.4 190.3 158.7 176 176.4 176C194 176 208.4 190.3 208.4 208zM304.4 208C304.4 190.3 318.7 176 336.4 176C354 176 368.4 190.3 368.4 208C368.4 225.7 354 240 336.4 240C318.7 240 304.4 225.7 304.4 208zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},k2={prefix:"far",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M256 352C293.2 352 319.2 334.5 334.4 318.1C343.3 308.4 358.5 307.7 368.3 316.7C378 325.7 378.6 340.9 369.6 350.6C347.7 374.5 309.7 400 256 400C202.3 400 164.3 374.5 142.4 350.6C133.4 340.9 133.1 325.7 143.7 316.7C153.5 307.7 168.7 308.4 177.6 318.1C192.8 334.5 218.8 352 256 352zM208.4 208C208.4 225.7 194 240 176.4 240C158.7 240 144.4 225.7 144.4 208C144.4 190.3 158.7 176 176.4 176C194 176 208.4 190.3 208.4 208zM304.4 208C304.4 190.3 318.7 176 336.4 176C354 176 368.4 190.3 368.4 208C368.4 225.7 354 240 336.4 240C318.7 240 304.4 225.7 304.4 208zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]}},1203:(q,b,r)=>{r.d(b,{D:()=>k});var a=r(7579),H=r(2722),m=r(7731),C=r(8377),c=r(5e3),e=r(62),R=r(5620),g=r(3251),_=r(9808),V=r(7093),x=r(5245),A=r(7238);function y(u,z){if(1&u&&(c.TgZ(0,"mat-icon",9),c._uU(1,"info_outline"),c.qZA()),2&u){const M=c.oxw().$implicit;c.Q6J("matTooltip",M.tooltip)}}function w(u,z){if(1&u&&(c.TgZ(0,"span",10),c._uU(1),c.ALo(2,"number"),c.qZA()),2&u){const M=c.oxw().$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,1,M.dataValue)," ")}}function N(u,z){if(1&u&&(c.TgZ(0,"span",10),c._uU(1),c.ALo(2,"number"),c.qZA()),2&u){const M=c.oxw().$implicit,o=c.oxw(2);c.xp6(1),c.hij(" ",c.xi3(2,1,M[o.currencyUnitEnum.BTC],o.currencyUnitFormats.BTC)," ")}}function O(u,z){if(1&u&&(c.TgZ(0,"span",10),c._uU(1),c.ALo(2,"number"),c.qZA()),2&u){const M=c.oxw().$implicit,o=c.oxw(2);c.xp6(1),c.hij(" ",c.xi3(2,1,M[o.currencyUnitEnum.OTHER],o.currencyUnitFormats.OTHER)," ")}}function F(u,z){if(1&u&&(c.TgZ(0,"div",5)(1,"div",6),c._uU(2),c.YNc(3,y,2,1,"mat-icon",7),c.qZA(),c.YNc(4,w,3,3,"span",8),c.YNc(5,N,3,4,"span",8),c.YNc(6,O,3,4,"span",8),c.qZA()),2&u){const M=z.$implicit,o=c.oxw().$implicit,p=c.oxw();c.xp6(2),c.hij(" ",M.title," "),c.xp6(1),c.Q6J("ngIf",M.tooltip),c.xp6(1),c.Q6J("ngIf",o===p.currencyUnitEnum.SATS),c.xp6(1),c.Q6J("ngIf",o===p.currencyUnitEnum.BTC),c.xp6(1),c.Q6J("ngIf",p.fiatConversion&&o!==p.currencyUnitEnum.SATS&&o!==p.currencyUnitEnum.BTC&&""===p.conversionErrorMsg)}}function D(u,z){if(1&u&&(c.TgZ(0,"div",11)(1,"div",12),c._uU(2),c.qZA()()),2&u){const M=c.oxw(2);c.xp6(2),c.Oqu(M.conversionErrorMsg)}}function T(u,z){if(1&u&&(c.TgZ(0,"mat-tab",1)(1,"div",2),c.YNc(2,F,7,5,"div",3),c.qZA(),c.YNc(3,D,3,1,"div",4),c.qZA()),2&u){const M=z.$implicit,o=c.oxw();c.s9C("label",M),c.xp6(2),c.Q6J("ngForOf",o.values),c.xp6(1),c.Q6J("ngIf",o.fiatConversion&&M!==o.currencyUnitEnum.SATS&&M!==o.currencyUnitEnum.BTC&&""!==o.conversionErrorMsg)}}let k=(()=>{class u{constructor(M,o){this.commonService=M,this.store=o,this.values=[],this.currencyUnitEnum=m.NT,this.currencyUnitFormats=m.Xz,this.currencyUnits=[],this.fiatConversion=!1,this.conversionErrorMsg="",this.unSubs=[new a.x,new a.x,new a.x]}ngOnInit(){this.store.select(C.dT).pipe((0,H.R)(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(this.values)})}ngOnChanges(){this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)}getCurrencyValues(M){M.forEach(o=>{o.dataValue>0?(this.commonService.convertCurrency(o.dataValue,m.NT.SATS,m.NT.BTC,"",!0).pipe((0,H.R)(this.unSubs[1])).subscribe(p=>{o[m.NT.BTC]=p.BTC}),this.commonService.convertCurrency(o.dataValue,m.NT.SATS,m.NT.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,H.R)(this.unSubs[2])).subscribe({next:p=>{o[m.NT.OTHER]=p.OTHER},error:p=>{this.conversionErrorMsg="Conversion Error: "+p}})):(o[m.NT.BTC]=o.dataValue,""===this.conversionErrorMsg&&(o[m.NT.OTHER]=o.dataValue))})}ngOnDestroy(){this.unSubs.forEach(M=>{M.next(null),M.complete()})}}return u.\u0275fac=function(M){return new(M||u)(c.Y36(e.v),c.Y36(R.yh))},u.\u0275cmp=c.Xpm({type:u,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},features:[c.TTD],decls:2,vars:1,consts:[[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 center",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(M,o){1&M&&(c.TgZ(0,"mat-tab-group"),c.YNc(1,T,4,3,"mat-tab",0),c.qZA()),2&M&&(c.xp6(1),c.Q6J("ngForOf",o.currencyUnits))},directives:[g.SP,_.sg,g.uX,V.xw,V.yH,V.Wh,_.O5,x.Hw,A.gM],pipes:[_.JJ],styles:[""]}),u})()},9122:(q,b,r)=>{r.d(b,{n:()=>M});var a=r(8966),H=r(801),m=r(7731),C=r(5e3),c=r(5043),e=r(62),R=r(7261),g=r(7093),_=r(9808),V=r(3322),x=r(159),A=r(9224),y=r(9444),w=r(7423),N=r(4834),O=r(3390),F=r(6895);const D=function(o){return{"display-none":o}};function T(o,p){if(1&o&&(C.TgZ(0,"div",20),C._UZ(1,"qr-code",21),C.qZA()),2&o){const h=C.oxw();C.Q6J("ngClass",C.VKq(4,D,h.screenSize===h.screenSizeEnum.XS||h.screenSize===h.screenSizeEnum.SM)),C.xp6(1),C.Q6J("value",h.address)("size",h.qrWidth)("errorCorrectionLevel","L")}}function k(o,p){if(1&o&&(C.TgZ(0,"div",22),C._UZ(1,"qr-code",21),C.qZA()),2&o){const h=C.oxw();C.Q6J("ngClass",C.VKq(4,D,h.screenSize!==h.screenSizeEnum.XS&&h.screenSize!==h.screenSizeEnum.SM)),C.xp6(1),C.Q6J("value",h.address)("size",h.qrWidth)("errorCorrectionLevel","L")}}function u(o,p){if(1&o&&(C.TgZ(0,"div",13)(1,"div",14)(2,"h4",15),C._uU(3,"Address Type"),C.qZA(),C.TgZ(4,"span",23),C._uU(5),C.qZA()()()),2&o){const h=C.oxw();C.xp6(5),C.Oqu(h.addressType)}}function z(o,p){1&o&&C._UZ(0,"mat-divider",17)}let M=(()=>{class o{constructor(h,v,E,P,U){this.dialogRef=h,this.data=v,this.logger=E,this.commonService=P,this.snackBar=U,this.faReceipt=H.dLy,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=m.cu}ngOnInit(){this.address=this.data.address,this.addressType=this.data.addressType,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyAddress(h){this.snackBar.open("Generated address copied."),this.logger.info("Copied Text: "+h)}}return o.\u0275fac=function(h){return new(h||o)(C.Y36(a.so),C.Y36(a.WI),C.Y36(c.mQ),C.Y36(e.v),C.Y36(R.ux))},o.\u0275cmp=C.Xpm({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","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(h,v){1&h&&(C.TgZ(0,"div",0),C.YNc(1,T,2,6,"div",1),C.TgZ(2,"div",2)(3,"mat-card-header",3)(4,"div",4),C._UZ(5,"fa-icon",5),C.TgZ(6,"span",6),C._uU(7),C.qZA()(),C.TgZ(8,"button",7),C.NdJ("click",function(){return v.onClose()}),C._uU(9,"X"),C.qZA()(),C.TgZ(10,"mat-card-content",8)(11,"div",9),C.YNc(12,k,2,6,"div",10),C.YNc(13,u,6,1,"div",11),C.YNc(14,z,1,0,"mat-divider",12),C.TgZ(15,"div",13)(16,"div",14)(17,"h4",15),C._uU(18,"Address"),C.qZA(),C.TgZ(19,"span",16),C._uU(20),C.qZA()()(),C._UZ(21,"mat-divider",17),C.TgZ(22,"div",18)(23,"button",19),C.NdJ("copied",function(P){return v.onCopyAddress(P)}),C._uU(24,"Copy Address"),C.qZA()()()()()()),2&h&&(C.xp6(1),C.Q6J("ngIf",v.address),C.xp6(4),C.Q6J("icon",v.faReceipt),C.xp6(2),C.Oqu(v.screenSize===v.screenSizeEnum.XS?"Address":"Generated Address"),C.xp6(5),C.Q6J("ngIf",v.address),C.xp6(1),C.Q6J("ngIf",""!==v.addressType),C.xp6(1),C.Q6J("ngIf",""!==v.addressType),C.xp6(6),C.Oqu(v.address),C.xp6(3),C.Q6J("payload",v.address))},directives:[g.xw,g.Wh,_.O5,g.yH,_.mk,V.oO,x.uU,A.dk,y.BN,w.lW,A.dn,N.d,O.h,F.y],styles:[""]}),o})()},7671:(q,b,r)=>{r.d(b,{D:()=>Z});var a=r(5e3),H=r(113),m=r(7731),C=r(5043),c=r(7093),e=r(7423),R=r(5245),g=r(9808),_=r(4107),V=r(3075),x=r(508),A=r(7322);let y=(()=>{class l extends x.LF{format(n,f){return"MMM YYYY"===f?m.gg[n.getMonth()].name+", "+n.getFullYear():"YYYY"===f?n.getFullYear().toString():n.getDate()+"/"+m.gg[n.getMonth()].name+"/"+n.getFullYear()}}return l.\u0275fac=function(){let L;return function(f){return(L||(L=a.n5z(l)))(f||l)}}(),l.\u0275prov=a.Yz7({token:l,factory:l.\u0275fac}),l})();const w={parse:{dateInput:"LL"},display:{dateInput:"MMM YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}},N={parse:{dateInput:"LL"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}};let O=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275dir=a.lG2({type:l,selectors:[["","monthlyDate",""]],features:[a._Bn([{provide:x._A,useClass:y},{provide:x.sG,useValue:w}])]}),l})(),F=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275dir=a.lG2({type:l,selectors:[["","yearlyDate",""]],features:[a._Bn([{provide:x._A,useClass:y},{provide:x.sG,useValue:N}])]}),l})();var D=r(7531),T=r(6856),k=r(6534),u=r(9843);const z=["monthlyDatepicker"],M=["yearlyDatepicker"],o=function(){return{animationDirection:"forward"}};function p(l,L){if(1&l&&a.GkF(0,9),2&l){a.oxw();const n=a.MAs(19);a.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",a.DdM(2,o))}}const h=function(){return{animationDirection:"backward"}};function v(l,L){if(1&l&&a.GkF(0,9),2&l){a.oxw();const n=a.MAs(19);a.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",a.DdM(2,h))}}const E=function(){return{animationDirection:""}};function P(l,L){if(1&l&&a.GkF(0,9),2&l){a.oxw();const n=a.MAs(19);a.Q6J("ngTemplateOutlet",n)("ngTemplateOutletContext",a.DdM(2,E))}}function U(l,L){if(1&l&&(a.TgZ(0,"mat-option",17),a._uU(1),a.ALo(2,"titlecase"),a.qZA()),2&l){const n=L.$implicit;a.Q6J("value",n),a.xp6(1),a.hij(" ",a.lcZ(2,2,n)," ")}}function I(l,L){if(1&l){const n=a.EpF();a.TgZ(0,"mat-form-field",18)(1,"input",19,20),a.NdJ("ngModelChange",function(t){return a.CHM(n),a.oxw(2).selectedValue=t}),a.qZA(),a._UZ(3,"mat-datepicker-toggle",21),a.TgZ(4,"mat-datepicker",22,23),a.NdJ("monthSelected",function(t){return a.CHM(n),a.oxw(2).onMonthSelected(t)})("dateSelected",function(t){return a.CHM(n),a.oxw(2).onMonthSelected(t)}),a.qZA()()}if(2&l){const n=a.MAs(5),f=a.oxw(2);a.xp6(1),a.Q6J("matDatepicker",n)("min",f.first)("max",f.last)("ngModel",f.selectedValue),a.xp6(2),a.Q6J("for",n),a.xp6(1),a.Q6J("startAt",f.selectedValue)}}function B(l,L){if(1&l){const n=a.EpF();a.TgZ(0,"mat-form-field",24)(1,"input",25,26),a.NdJ("ngModelChange",function(t){return a.CHM(n),a.oxw(2).selectedValue=t}),a.qZA(),a._UZ(3,"mat-datepicker-toggle",21),a.TgZ(4,"mat-datepicker",27,28),a.NdJ("yearSelected",function(t){return a.CHM(n),a.oxw(2).onYearSelected(t)})("monthSelected",function(t){return a.CHM(n),a.oxw(2).onYearSelected(t)})("dateSelected",function(t){return a.CHM(n),a.oxw(2).onYearSelected(t)}),a.qZA()()}if(2&l){const n=a.MAs(5),f=a.oxw(2);a.xp6(1),a.Q6J("matDatepicker",n)("min",f.first)("max",f.last)("ngModel",f.selectedValue),a.xp6(2),a.Q6J("for",n),a.xp6(1),a.Q6J("startAt",f.selectedValue)}}function W(l,L){if(1&l){const n=a.EpF();a.TgZ(0,"div",10)(1,"div",11)(2,"mat-select",12),a.NdJ("ngModelChange",function(t){return a.CHM(n),a.oxw().selScrollRange=t})("selectionChange",function(t){return a.CHM(n),a.oxw().onRangeChanged(t)}),a.YNc(3,U,3,4,"mat-option",13),a.qZA()(),a.TgZ(4,"div",14),a.YNc(5,I,6,6,"mat-form-field",15),a.YNc(6,B,6,6,"mat-form-field",16),a.qZA()()}if(2&l){const n=a.oxw();a.Q6J("@sliderAnimation",n.animationDirection),a.xp6(2),a.Q6J("ngModel",n.selScrollRange),a.xp6(1),a.Q6J("ngForOf",n.scrollRanges),a.xp6(2),a.Q6J("ngIf",n.selScrollRange===n.scrollRanges[0]),a.xp6(1),a.Q6J("ngIf",n.selScrollRange===n.scrollRanges[1])}}let Z=(()=>{class l{constructor(n){this.logger=n,this.scrollRanges=m.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(n){this.selScrollRange=n.value,this.onStepChange("LAST")}onMonthSelected(n){this.selectedValue=n,this.onStepChange("SELECTED"),this.monthlyDatepicker.close()}onYearSelected(n){this.selectedValue=n,this.onStepChange("SELECTED"),this.yearlyDatepicker.close()}onStepChange(n){switch(this.logger.info(n),n){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===m.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===m.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===m.op[1]?this.selectedValue.getFullYear()<=this.first.getFullYear():this.selectedValue.getFullYear()<=this.first.getFullYear()&&this.selectedValue.getMonth()<=this.first.getMonth(),this.disableNext=this.selScrollRange===m.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(n){"monthlyDate"===n.srcElement.name?this.monthlyDatepicker.open():"yearlyDate"===n.srcElement.name&&this.yearlyDatepicker.open()}}return l.\u0275fac=function(n){return new(n||l)(a.Y36(C.mQ))},l.\u0275cmp=a.Xpm({type:l,selectors:[["rtl-horizontal-scroller"]],viewQuery:function(n,f){if(1&n&&(a.Gf(z,5),a.Gf(M,5)),2&n){let t;a.iGM(t=a.CRH())&&(f.monthlyDatepicker=t.first),a.iGM(t=a.CRH())&&(f.yearlyDatepicker=t.first)}},hostBindings:function(n,f){1&n&&a.NdJ("click",function(s){return f.onChartMouseUp(s)})},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","22"],["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","22"],["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","56"],["fxFlex","50","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","end center",1,"font-bold-700"],["fxFlex","80","fxFlex.gt-md","30","name","selScrlRange","placeholder","Range","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","","fxFlex","80","fxFlex.gt-md","30","fxLayoutAlign","center center",4,"ngIf"],["yearlyDate","","fxFlex","80","fxFlex.gt-md","30","fxLayoutAlign","center center",4,"ngIf"],[3,"value"],["monthlyDate","","fxFlex","80","fxFlex.gt-md","30","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","","fxFlex","80","fxFlex.gt-md","30","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(n,f){1&n&&(a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return f.onStepChange("FIRST")}),a.TgZ(3,"mat-icon"),a._uU(4,"skip_previous"),a.qZA()(),a.TgZ(5,"button",3),a.NdJ("click",function(){return f.onStepChange("PREVIOUS")}),a.TgZ(6,"mat-icon"),a._uU(7,"navigate_before"),a.qZA()()(),a.YNc(8,p,1,3,"ng-container",4),a.YNc(9,v,1,3,"ng-container",4),a.YNc(10,P,1,3,"ng-container",4),a.TgZ(11,"div",5)(12,"button",6),a.NdJ("click",function(){return f.onStepChange("NEXT")}),a.TgZ(13,"mat-icon"),a._uU(14,"navigate_next"),a.qZA()(),a.TgZ(15,"button",7),a.NdJ("click",function(){return f.onStepChange("LAST")}),a.TgZ(16,"mat-icon"),a._uU(17,"skip_next"),a.qZA()()()(),a.YNc(18,W,7,5,"ng-template",null,8,a.W1O)),2&n&&(a.xp6(5),a.Q6J("disabled",f.disablePrev),a.xp6(3),a.Q6J("ngIf","forward"===f.animationDirection),a.xp6(1),a.Q6J("ngIf","backward"===f.animationDirection),a.xp6(1),a.Q6J("ngIf",""===f.animationDirection),a.xp6(2),a.Q6J("disabled",f.disableNext))},directives:[c.xw,c.Wh,c.yH,e.lW,R.Hw,g.O5,g.tP,_.gD,V.JJ,V.On,g.sg,x.ey,A.KE,O,D.Nt,T.hl,k.q,u.F,V.Fj,T.nW,A.R9,T.Mq,F],pipes:[g.rS],styles:[""],data:{animation:[H.l]}}),l})()},165:(q,b,r)=>{r.d(b,{g:()=>f});var a=r(6087),H=r(4847),m=r(2075),C=r(7731),c=r(7861),e=r(5e3),R=r(62),g=r(5620),_=r(9808),V=r(7093),x=r(7322),A=r(7531),y=r(3075),w=r(8129),N=r(4107),O=r(508),F=r(7423),D=r(3322);function T(t,s){1&t&&(e.TgZ(0,"th",27),e._uU(1,"Date"),e.qZA())}function k(t,s){if(1&t&&(e.TgZ(0,"td",28),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const i=s.$implicit,d=e.oxw();e.xp6(1),e.Oqu(e.xi3(2,1,null==i?null:i.date,d.dataRange===d.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy"))}}function u(t,s){1&t&&(e.TgZ(0,"th",29),e._uU(1,"Amount Paid (Sats)"),e.qZA())}function z(t,s){if(1&t&&(e.TgZ(0,"td",28)(1,"span",30),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&t){const i=s.$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,null==i?null:i.amount_paid,"1.0-2"))}}function M(t,s){1&t&&(e.TgZ(0,"th",29),e._uU(1,"# Payments"),e.qZA())}function o(t,s){if(1&t&&(e.TgZ(0,"td",28)(1,"span",30),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&t){const i=s.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==i?null:i.num_payments))}}function p(t,s){1&t&&(e.TgZ(0,"th",29),e._uU(1,"Amount Received (Sats)"),e.qZA())}function h(t,s){if(1&t&&(e.TgZ(0,"td",28)(1,"span",30),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&t){const i=s.$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,null==i?null:i.amount_received,"1.0-2"))}}function v(t,s){1&t&&(e.TgZ(0,"th",29),e._uU(1,"# Invoices"),e.qZA())}function E(t,s){if(1&t&&(e.TgZ(0,"td",28)(1,"span",30),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&t){const i=s.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==i?null:i.num_invoices))}}function P(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"th",31)(1,"div",32)(2,"mat-select",33),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",34),e.NdJ("click",function(){return e.CHM(i),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function U(t,s){if(1&t){const i=e.EpF();e.TgZ(0,"td",35)(1,"button",36),e.NdJ("click",function(){const Y=e.CHM(i).$implicit;return e.oxw().onTransactionClick(Y)}),e._uU(2,"View Info"),e.qZA()()}}function I(t,s){1&t&&(e.TgZ(0,"p"),e._uU(1,"No transaction available."),e.qZA())}function B(t,s){if(1&t&&(e.TgZ(0,"td",37),e.YNc(1,I,2,0,"p",38),e.qZA()),2&t){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=i.transactions&&i.transactions.data)||(null==i.transactions||null==i.transactions.data?null:i.transactions.data.length)<1)}}const W=function(t){return{"display-none":t}};function Z(t,s){if(1&t&&e._UZ(0,"tr",39),2&t){const i=e.oxw();e.Q6J("ngClass",e.VKq(1,W,(null==i.transactions?null:i.transactions.data)&&(null==i.transactions||null==i.transactions.data?null:i.transactions.data.length)>0))}}function l(t,s){1&t&&e._UZ(0,"tr",40)}function L(t,s){1&t&&e._UZ(0,"tr",41)}const n=function(){return["no_transaction"]};let f=(()=>{class t{constructor(i,d,S){this.commonService=i,this.store=d,this.datePipe=S,this.dataRange=C.op[0],this.dataList=[],this.filterValue="",this.timezoneOffset=60*new Date(Date.now()).getTimezoneOffset(),this.scrollRanges=C.op,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=C.IV,this.pageSizeOptions=C.TJ,this.screenSize="",this.screenSizeEnum=C.cu,this.screenSize=this.commonService.getScreenSize(),this.screenSize===C.cu.XS||this.screenSize===C.cu.SM?(this.flgSticky=!1,this.displayedColumns=["date","amount_paid","amount_received","actions"]):this.screenSize===C.cu.MD?(this.flgSticky=!1,this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices","actions"]):(this.flgSticky=!0,this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices","actions"])}ngOnInit(){this.dataList&&this.dataList.length>0&&this.loadTransactionsTable(this.dataList)}ngAfterViewInit(){this.setTableWidgets()}ngOnChanges(i){i.dataList&&!i.dataList.firstChange&&this.loadTransactionsTable(this.dataList),i.filterValue&&!i.filterValue.firstChange&&this.applyFilter()}onTransactionClick(i){const d=[[{key:"date",value:this.datePipe.transform(i.date,this.dataRange===C.op[1]?"MMM/yyyy":"dd/MMM/yyyy"),title:"Date",width:100,type:C.Gi.DATE}],[{key:"amount_paid",value:Math.round(i.amount_paid),title:"Amount Paid (Sats)",width:50,type:C.Gi.NUMBER},{key:"num_payments",value:i.num_payments,title:"# Payments",width:50,type:C.Gi.NUMBER}],[{key:"amount_received",value:Math.round(i.amount_received),title:"Amount Received (Sats)",width:50,type:C.Gi.NUMBER},{key:"num_invoices",value:i.num_invoices,title:"# Invoices",width:50,type:C.Gi.NUMBER}]];this.store.dispatch((0,c.qR)({payload:{data:{type:C.n_.INFORMATION,alertTitle:"Transaction Summary",message:d}}}))}applyFilter(){this.transactions&&(this.transactions.filter=this.filterValue.trim().toLowerCase())}loadTransactionsTable(i){this.transactions=new m.by(i?[...i]:[]),this.setTableWidgets()}setTableWidgets(){this.transactions&&this.transactions.data&&this.transactions.data.length>0&&(this.transactions.sortingDataAccessor=(i,d)=>i[d]&&isNaN(i[d])?i[d].toLocaleLowerCase():i[d]?+i[d]:null,this.transactions.sort=this.sort,this.transactions.filterPredicate=(i,d)=>((i.date?(this.datePipe.transform(i.date,"dd/MMM")+"/"+i.date.getFullYear()).toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(d),this.transactions.paginator=this.paginator)}onDownloadCSV(){this.transactions.data&&this.transactions.data.length>0&&this.commonService.downloadFile(this.dataList,"Transactions-report-"+this.dataRange.toLowerCase())}}return t.\u0275fac=function(i){return new(i||t)(e.Y36(R.v),e.Y36(g.yh),e.Y36(_.uU))},t.\u0275cmp=e.Xpm({type:t,selectors:[["rtl-transactions-report-table"]],viewQuery:function(i,d){if(1&i&&(e.Gf(H.YE,5),e.Gf(a.NW,5)),2&i){let S;e.iGM(S=e.CRH())&&(d.sort=S.first),e.iGM(S=e.CRH())&&(d.paginator=S.first)}},inputs:{dataRange:"dataRange",dataList:"dataList",filterValue:"filterValue"},features:[e._Bn([{provide:a.ye,useValue:(0,C.pt)("Transactions")}]),e.TTD],decls:34,vars:10,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","30","fxLayoutAlign","start end"],["matInput","","name","filter","placeholder","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,"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","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","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","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(i,d){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"div",3),e.TgZ(4,"mat-form-field",4)(5,"input",5),e.NdJ("ngModelChange",function(Y){return d.filterValue=Y})("input",function(){return d.applyFilter()})("keyup",function(){return d.applyFilter()}),e.qZA()()(),e.TgZ(6,"div",6)(7,"div",7)(8,"table",8,9),e.ynx(10,10),e.YNc(11,T,2,0,"th",11),e.YNc(12,k,3,4,"td",12),e.BQk(),e.ynx(13,13),e.YNc(14,u,2,0,"th",14),e.YNc(15,z,4,4,"td",12),e.BQk(),e.ynx(16,15),e.YNc(17,M,2,0,"th",14),e.YNc(18,o,4,3,"td",12),e.BQk(),e.ynx(19,16),e.YNc(20,p,2,0,"th",14),e.YNc(21,h,4,4,"td",12),e.BQk(),e.ynx(22,17),e.YNc(23,v,2,0,"th",14),e.YNc(24,E,4,3,"td",12),e.BQk(),e.ynx(25,18),e.YNc(26,P,6,0,"th",19),e.YNc(27,U,3,0,"td",20),e.BQk(),e.ynx(28,21),e.YNc(29,B,2,1,"td",22),e.BQk(),e.YNc(30,Z,1,3,"tr",23),e.YNc(31,l,1,0,"tr",24),e.YNc(32,L,1,0,"tr",25),e.qZA(),e._UZ(33,"mat-paginator",26),e.qZA()()()()),2&i&&(e.xp6(5),e.Q6J("ngModel",d.filterValue),e.xp6(3),e.Q6J("dataSource",d.transactions),e.xp6(22),e.Q6J("matFooterRowDef",e.DdM(9,n)),e.xp6(1),e.Q6J("matHeaderRowDef",d.displayedColumns)("matHeaderRowDefSticky",d.flgSticky),e.xp6(1),e.Q6J("matRowDefColumns",d.displayedColumns),e.xp6(1),e.Q6J("pageSize",d.pageSize)("pageSizeOptions",d.pageSizeOptions)("showFirstLastButtons",d.screenSize!==d.screenSizeEnum.XS))},directives:[V.xw,V.yH,V.Wh,x.KE,A.Nt,y.Fj,y.JJ,y.On,w.$V,m.BZ,H.YE,m.w1,m.fO,m.ge,H.nU,m.Dz,m.ev,N.gD,N.$L,O.ey,F.lW,m.mD,m.yh,_.O5,m.Ke,m.Q2,_.mk,D.oO,m.as,m.XQ,m.nj,m.Gk,a.NW],pipes:[_.uU,_.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),t})()}}]);