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/570.a47a5e74ba9177e8.js

1 line
676 KiB
JavaScript

"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[570],{4570:(TC,Re,f)=>{f.r(Re),f.d(Re,{LNDModule:()=>xC});var m=f(6814),T=f(4190),ct=f(5256),e=f(9212),_=f(3814),D=f(6007);function pt(n,o){1&n&&e._UZ(0,"mat-progress-bar",3)}let Me=(()=>{class n{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(i=>{switch(!0){case i instanceof T.OD:this.loading=!0;break;case i instanceof T.m2:case i instanceof T.gk:case i instanceof T.Q3:this.loading=!1}})}static#e=this.\u0275fac=function(i){return new(i||n)(e.Y36(T.F0))};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lnd-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(i,a){1&i&&(e.TgZ(0,"div",0),e.YNc(1,pt,1,0,"mat-progress-bar",1),e._UZ(2,"router-outlet",null,2),e.qZA()),2&i&&(e.xp6(1),e.Q6J("ngIf",a.loading))},dependencies:[m.O5,_.xw,_.Wh,_.yH,D.pW,T.lC],data:{animation:[ct.g]}})}return n})();var u=f(8645),d=f(9773),de=f(2460),B=f(2181),Je=f(1449),y=f(590),l=f(2154),H=f(4818),x=f(7321),U=f(5980),q=f(4221),X=f(5154),N=f(6339),J=f(5597),F=f(7509),O=f(2296),v=f(5195),he=f(3176),ie=f(617),Ze=f(7988),P=f(4104),k=f(1476),A=f(3566),c=f(5313),w=f(8525),Q=f(7700),b=f(9191),p=f(6223),R=f(2032),g=f(5683),E=f(3680),ge=f(2599),K=f(2596),$=f(6985),te=f(6082);function ut(n,o){1&n&&(e.TgZ(0,"span",32),e._uU(1,"= "),e.qZA())}function mt(n,o){if(1&n&&(e.TgZ(0,"span",33),e._UZ(1,"fa-icon",34),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.convertedCurrency.symbol)}}function _t(n,o){if(1&n&&e._UZ(0,"span",35),2&n){const t=e.oxw();e.Q6J("innerHTML",t.convertedCurrency.symbol,e.oJD)}}function dt(n,o){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&n){const t=o.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(e.lcZ(2,2,t))}}function ht(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.invoiceError)}}function gt(n,o){if(1&n&&(e.TgZ(0,"div",37),e._UZ(1,"fa-icon",38),e.YNc(2,ht,2,1,"span",39),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faExclamationTriangle),e.xp6(1),e.Q6J("ngIf",""!==t.invoiceError)}}let ft=(()=>{class n{constructor(t,i,a,s,r,h){this.dialogRef=t,this.data=i,this.store=a,this.decimalPipe=s,this.commonService=r,this.actions=h,this.faExclamationTriangle=y.eHv,this.convertedCurrency=null,this.memo="",this.isAmp=!1,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(H.dT).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(x.Q5).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,d.R)(this.unSubs[2]),(0,B.h)(t=>t.type===l.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(t=>{t.type===l.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===t.payload.action&&(this.invoiceError=t.payload.message,t.payload.status===l.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="";let i=0;i=this.expiry?this.selTimeUnit!==l.Qk.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS):this.expiry:l.$Y,this.store.dispatch((0,b.Rd)({payload:{uiMessage:l.m6.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:i,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.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue