mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 09:50:36 +01:00
1 line
687 KiB
JavaScript
1 line
687 KiB
JavaScript
|
"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[190],{9190:(wC,$e,g)=>{g.r($e),g.d($e,{LNDModule:()=>IC});var d=g(177),x=g(1188),pt=g(9881),e=g(4438),h=g(2920),B=g(7575);function mt(n,s){1&n&&e.nrm(0,"mat-progress-bar",3)}let Ae=(()=>{class n{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof x.Z:this.loading=!0;break;case a instanceof x.wF:case a instanceof x.j5:case a instanceof x.L6:this.loading=!1}})}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(x.Ix))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(a,i){1&a&&(e.j41(0,"div",1),e.DNE(1,mt,1,0,"mat-progress-bar",2),e.nrm(2,"router-outlet",null,0),e.k0s()),2&a&&(e.R7$(),e.Y8G("ngIf",i.loading))},dependencies:[d.bT,h.DJ,h.sA,h.UI,B.HM,x.n3],data:{animation:[pt.E]}})}return n})();var u=g(1413),_=g(6977),de=g(3993),Y=g(5964),Me=g(614),b=g(5383),l=g(4416),X=g(9647),y=g(3536),j=g(8570),I=g(9640),W=g(4054),N=g(2571),M=g(60),L=g(6038),G=g(8834),T=g(5596),he=g(6195),ie=g(9213),ve=g(9115),P=g(6850),w=g(6695),k=g(2042),c=g(9159),R=g(2798),O=g(5351),v=g(190),m=g(9417),$=g(9631),f=g(6467),V=g(6600),_e=g(450),Q=g(4823),Z=g(9587),te=g(6114);function ut(n,s){1&n&&(e.j41(0,"span",32),e.EFF(1,"= "),e.k0s())}function dt(n,s){if(1&n&&(e.j41(0,"span",33),e.nrm(1,"fa-icon",34),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("icon",t.convertedCurrency.symbol)}}function ht(n,s){if(1&n&&e.nrm(0,"span",35),2&n){const t=e.XpG();e.Y8G("innerHTML",t.convertedCurrency.symbol,e.npT)}}function _t(n,s){if(1&n&&(e.j41(0,"mat-option",36),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&n){const t=s.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(e.bMT(2,2,t))}}function ft(n,s){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.invoiceError)}}function gt(n,s){if(1&n&&(e.j41(0,"div",37),e.nrm(1,"fa-icon",38),e.DNE(2,ft,2,1,"span",39),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("icon",t.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==t.invoiceError)}}let Ct=(()=>{class n{constructor(t,a,i,o,r,p){this.dialogRef=t,this.data=a,this.store=i,this.decimalPipe=o,this.commonService=r,this.actions=p,this.faExclamationTriangle=b.zpE,this.convertedCurrency=null,this.memo="",this.isAmp=!1,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.md,this.timeUnitEnum=l.F7,this.timeUnits=l.SY,this.selTimeUnit=l.F7.SECS,this.invoiceError="",this.unSubs=[new u.B,new u.B,new u.B,new u.B,new u.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(X._c).pipe((0,_.Q)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(y.pI).pipe((0,_.Q)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,_.Q)(this.unSubs[2]),(0,Y.p)(t=>t.type===l.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.QP.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message,t.payload.status===l.wn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===l.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="";let a=0;a=this.expiry?this.selTimeUnit!==l.F7.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,l.F7.SECS):this.expiry:l.It,this.store.dispatch((0,v.VK)({payload:{uiMessage:l.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:a,is_amp:this.isAmp,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.isAmp=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.BQ.SATS,
|