mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
1 line
2.8 MiB
JavaScript
1 line
2.8 MiB
JavaScript
|
|
(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[853],{4853:(Gl,br,Pt)=>{"use strict";Pt.r(br),Pt.d(br,{CLNModule:()=>TC});var st=Pt(177),le=Pt(1188),b=Pt(9881),A=Pt(4438),n=Pt(2920),B=Pt(7575);function a(i,D){1&i&&A.nrm(0,"mat-progress-bar",3)}let s=(()=>{class i{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(l=>{switch(!0){case l instanceof le.Z:this.loading=!0;break;case l instanceof le.wF:case l instanceof le.j5:case l instanceof le.L6:this.loading=!1}})}static#A=this.\u0275fac=function(l){return new(l||i)(A.rXU(le.Ix))};static#t=this.\u0275cmp=A.VBU({type:i,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(l,c){1&l&&(A.j41(0,"div",1),A.DNE(1,a,1,0,"mat-progress-bar",2),A.nrm(2,"router-outlet",null,0),A.k0s()),2&l&&(A.R7$(),A.Y8G("ngIf",c.loading))},dependencies:[st.bT,n.DJ,n.sA,n.UI,B.HM,le.n3],data:{animation:[b.E]}})}return i})();var o=Pt(1413),g=Pt(6977),f=Pt(3993),w=Pt(614),u=Pt(5383),r=Pt(4416),d=Pt(9647),E=Pt(9584),C=Pt(8570),e=Pt(9640),h=Pt(2571),Q=Pt(60),I=Pt(6038),R=Pt(8834),p=Pt(5596),m=Pt(6195),y=Pt(9213),x=Pt(9115),Y=Pt(6850),v=Pt(5964),S=Pt(6695),z=Pt(2042),F=Pt(9159),$=Pt(2798),gA=Pt(5351),_=Pt(8430),fA=Pt(4054),iA=Pt(9417),wA=Pt(9631),IA=Pt(6467),FA=Pt(6600),YA=Pt(450),HA=Pt(4823),J=Pt(9587),BA=Pt(6114);function aA(i,D){1&i&&(A.j41(0,"span",31),A.EFF(1,"= "),A.k0s())}function eA(i,D){if(1&i&&(A.j41(0,"span",32),A.nrm(1,"fa-icon",33),A.k0s()),2&i){const t=A.XpG();A.R7$(),A.Y8G("icon",t.convertedCurrency.symbol)}}function EA(i,D){if(1&i&&A.nrm(0,"span",34),2&i){const t=A.XpG();A.Y8G("innerHTML",t.convertedCurrency.symbol,A.npT)}}function xA(i,D){if(1&i&&(A.j41(0,"mat-option",35),A.EFF(1),A.nI1(2,"titlecase"),A.k0s()),2&i){const t=D.$implicit;A.Y8G("value",t),A.R7$(),A.JRh(A.bMT(2,2,t))}}function OA(i,D){if(1&i&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&i){const t=A.XpG(2);A.R7$(),A.JRh(t.invoiceError)}}function W(i,D){if(1&i&&(A.j41(0,"div",36),A.nrm(1,"fa-icon",37),A.DNE(2,OA,2,1,"span",38),A.k0s()),2&i){const t=A.XpG();A.R7$(),A.Y8G("icon",t.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==t.invoiceError)}}let L=(()=>{class i{constructor(t,l,c,j,PA,WA){this.dialogRef=t,this.data=l,this.store=c,this.decimalPipe=j,this.commonService=PA,this.actions=WA,this.faExclamationTriangle=u.zpE,this.convertedCurrency=null,this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=r.md,this.timeUnitEnum=r.F7,this.timeUnits=r.SY,this.selTimeUnit=r.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,g.Q)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(E.mH).pipe((0,g.Q)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,v.p)(t=>t.type===r.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===r.TC.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===r.wn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===r.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let l=this.expiry?this.expiry:r.It;this.selTimeUnit!==r.F7.SECS&&this.expiry&&(l=this.commonService.convertTime(this.expiry,this.selTimeUnit,r.F7.SECS)),this.store.dispatch((0,_.VK)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount_msat:this.invoiceValue?1e3*this.invoiceValue:"any",description:this.description,expiry:l,exposeprivatechannels:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=r.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&(this.invoiceValueHint="",this.
|