mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 09:50:36 +01:00
1 line
3.5 MiB
JavaScript
1 line
3.5 MiB
JavaScript
|
(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[853],{4853:(Za,Pt,Te)=>{"use strict";Te.r(Pt),Te.d(Pt,{CLNModule:()=>Th});var oe=Te(177),un=Te(1188),Y=Te(9881),A=Te(4438),r=Te(2920),g=Te(7575);function i(t,I){1&t&&A.nrm(0,"mat-progress-bar",3)}let s=(()=>{class t{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(c=>{switch(!0){case c instanceof un.Z:this.loading=!0;break;case c instanceof un.wF:case c instanceof un.j5:case c instanceof un.L6:this.loading=!1}})}static{this.\u0275fac=function(c){return new(c||t)(A.rXU(un.Ix))}}static{this.\u0275cmp=A.VBU({type:t,selectors:[["rtl-cln-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(c,l){1&c&&(A.j41(0,"div",1),A.DNE(1,i,1,0,"mat-progress-bar",2),A.nrm(2,"router-outlet",null,0),A.k0s()),2&c&&(A.R7$(),A.Y8G("ngIf",l.loading))},dependencies:[oe.bT,r.DJ,r.sA,r.UI,g.HM,un.n3],data:{animation:[Y.E]}})}}return t})();var o=Te(1413),m=Te(6977),u=Te(3993),f=Te(614),B=Te(5383),a=Te(4416),d=Te(9647),h=Te(9584),E=Te(8570),n=Te(9640),C=Te(2571),P=Te(60),M=Te(6038),N=Te(8834),Q=Te(5596),X=Te(6195),D=Te(9213),F=Te(9115),y=Te(6850),K=Te(5964),v=Te(6695),b=Te(2042),w=Te(9159),Z=Te(2798),oA=Te(5351),q=Te(8430),fA=Te(4054),_=Te(9417),CA=Te(9631),KA=Te(6467),pA=Te(6600),NA=Te(450),zA=Te(4823),O=Te(9587),mA=Te(6114);function tA(t,I){1&t&&(A.j41(0,"span",31),A.EFF(1,"= "),A.k0s())}function $(t,I){if(1&t&&(A.j41(0,"span",32),A.nrm(1,"fa-icon",33),A.k0s()),2&t){const e=A.XpG();A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function hA(t,I){if(1&t&&A.nrm(0,"span",34),2&t){const e=A.XpG();A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function yA(t,I){if(1&t&&(A.j41(0,"mat-option",35),A.EFF(1),A.nI1(2,"titlecase"),A.k0s()),2&t){const e=I.$implicit;A.Y8G("value",e),A.R7$(),A.JRh(A.bMT(2,2,e))}}function GA(t,I){if(1&t&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&t){const e=A.XpG(2);A.R7$(),A.JRh(e.invoiceError)}}function j(t,I){if(1&t&&(A.j41(0,"div",36),A.nrm(1,"fa-icon",37),A.DNE(2,GA,2,1,"span",38),A.k0s()),2&t){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.invoiceError)}}let U=(()=>{class t{constructor(e,c,l,k,LA,JA){this.dialogRef=e,this.data=c,this.store=l,this.decimalPipe=k,this.commonService=LA,this.actions=JA,this.faExclamationTriangle=B.zpE,this.convertedCurrency=null,this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=a.md,this.timeUnitEnum=a.F7,this.timeUnits=a.SY,this.selTimeUnit=a.F7.SECS,this.invoiceError="",this.unSubs=[new o.B,new o.B,new o.B,new o.B,new o.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(d._c).pipe((0,m.Q)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(h.mH).pipe((0,m.Q)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,m.Q)(this.unSubs[2]),(0,K.p)(e=>e.type===a.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(e=>{e.type===a.TC.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===e.payload.action&&(e.payload.status===a.wn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===a.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let c=this.expiry?this.expiry:a.It;this.selTimeUnit!==a.F7.SECS&&this.expiry&&(c=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.F7.SECS)),this.store.dispatch((0,q.VK)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount_msat:this.invoiceValue?1e3*this.invoiceValue:"any",description:this.description,expiry:c,exposeprivatechannels:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=a.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&(this.invoiceValueHint="",this.invoi
|