You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/frontend/125.e4a54e50f74a176f.js

1 line
2.8 MiB
JavaScript

(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[125],{7125:(Gl,Ur,Rt)=>{"use strict";Rt.r(Ur),Rt.d(Ur,{CLNModule:()=>LC});var at=Rt(6814),le=Rt(4190),N=Rt(5256),A=Rt(9212),n=Rt(3814),u=Rt(6007);function a(i,v){1&i&&A._UZ(0,"mat-progress-bar",3)}let o=(()=>{class i{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(l=>{switch(!0){case l instanceof le.OD:this.loading=!0;break;case l instanceof le.m2:case l instanceof le.gk:case l instanceof le.Q3:this.loading=!1}})}static#A=this.\u0275fac=function(l){return new(l||i)(A.Y36(le.F0))};static#t=this.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(l,B){1&l&&(A.TgZ(0,"div",0),A.YNc(1,a,1,0,"mat-progress-bar",1),A._UZ(2,"router-outlet",null,2),A.qZA()),2&l&&(A.xp6(1),A.Q6J("ngIf",B.loading))},dependencies:[at.O5,n.xw,n.Wh,n.yH,u.pW,le.lC],data:{animation:[N.g]}})}return i})();var s=Rt(8645),g=Rt(9773),h=Rt(1449),E=Rt(590),r=Rt(2154),c=Rt(3468),Q=Rt(5980),C=Rt(4221),w=Rt(6339),e=Rt(5597),f=Rt(7509),p=Rt(2296),y=Rt(5195),S=Rt(3176),I=Rt(617),m=Rt(7988),x=Rt(4104),F=Rt(2181),Y=Rt(1476),D=Rt(3566),d=Rt(5313),R=Rt(8525),O=Rt(7700),nA=Rt(234),uA=Rt(5154),H=Rt(6223),cA=Rt(2032),lA=Rt(5683),wA=Rt(3680),NA=Rt(2599),vA=Rt(2596),TA=Rt(6985),kA=Rt(6082);function K(i,v){1&i&&(A.TgZ(0,"span",31),A._uU(1,"= "),A.qZA())}function fA(i,v){if(1&i&&A._UZ(0,"fa-icon",34),2&i){const t=A.oxw(2);A.Q6J("icon",t.convertedCurrency.symbol)}}function iA(i,v){if(1&i&&(A.TgZ(0,"span",32),A.YNc(1,fA,1,1,"fa-icon",33),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.convertedCurrency&&""!==t.invoiceValueHint)}}function eA(i,v){if(1&i&&A._UZ(0,"span",35),2&i){const t=A.oxw();A.Q6J("innerHTML",t.convertedCurrency.symbol,A.oJD)}}function EA(i,v){if(1&i&&(A.TgZ(0,"mat-option",36),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&i){const t=v.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function xA(i,v){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function JA(i,v){if(1&i&&(A.TgZ(0,"div",37),A._UZ(1,"fa-icon",38),A.YNc(2,xA,2,1,"span",39),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let W=(()=>{class i{constructor(t,l,B,Z,LA,yt){this.dialogRef=t,this.data=l,this.store=B,this.decimalPipe=Z,this.commonService=LA,this.actions=yt,this.faExclamationTriangle=E.eHv,this.convertedCurrency=null,this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=r.IV,this.timeUnitEnum=r.Qk,this.timeUnits=r.LO,this.selTimeUnit=r.Qk.SECS,this.invoiceError="",this.unSubs=[new s.x,new s.x,new s.x,new s.x,new s.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(c.lw).pipe((0,g.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(c.ey).pipe((0,g.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,g.R)(this.unSubs[2]),(0,F.h)(t=>t.type===r.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===r.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===r.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===r.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let l=this.expiry?this.expiry:r.$Y;this.selTimeUnit!==r.Qk.SECS&&this.expiry&&(l=this.commonService.convertTime(this.expiry,this.selTimeUnit,r.Qk.SECS)),this.store.dispatch((0,nA.Rd)({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.Qk.SECS,thi