Ride-The-Lightning-RTL/frontend/258.74bd2ac767e7a584.js

1 line
333 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[258],{7258:(Np,$t,_)=>{_.r($t),_.d($t,{ECLModule:()=>ot});var c=_(6895),x=_(9116),Ce=_(8878),t=_(4650),p=_(1576),J=_(3162);function xe(i,n){1&i&&t._UZ(0,"mat-progress-bar",3)}class W{constructor(n){this.router=n,this.loading=!1,this.router.events.subscribe(e=>{switch(!0){case e instanceof x.OD:this.loading=!0;break;case e instanceof x.m2:case e instanceof x.gk:case e instanceof x.Q3:this.loading=!1}})}}W.\u0275fac=function(n){return new(n||W)(t.Y36(x.F0))},W.\u0275cmp=t.Xpm({type:W,selectors:[["rtl-ecl-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(n,e){1&n&&(t.TgZ(0,"div",0),t.YNc(1,xe,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngIf",e.loading))},dependencies:[c.O5,p.xw,p.Wh,p.yH,J.pW,x.lC],data:{animation:[Ce.g]}});var u=_(7579),h=_(2722),Mt=_(1365),Xt=_(3396),T=_(2687),s=_(7731),g=_(2501),P=_(5043),E=_(9653),U=_(62),N=_(2216),v=_(5829),w=_(4859),L=_(3546),jt=_(782),te=_(7392),Qt=_(8255),I=_(3848);const ee=function(i){return{backgroundColor:i}};function ye(i,n){if(1&i&&t._UZ(0,"span",6),2&i){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,ee,null==e.information?null:e.information.color))}}function Te(i,n){if(1&i&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&i){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,ee,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function Le(i,n){if(1&i&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}class st{constructor(n){this.commonService=n,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}function be(i,n){if(1&i&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&i){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",e.balances.lightning/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",e.balances.onchain/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,e.balances.total)," Sats")}}function ve(i,n){if(1&i&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}st.\u0275fac=function(n){return new(n||st)(t.Y36(U.v))},st.\u0275cmp=t.Xpm({type:st,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,ye,1,3,"span",3),t.qZA()(),t.YNc(7,Te,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Le,2,1,"span",5),t.qZA()()),2&n&&(t.xp6(5),t.hij(" ",null==e.information?null:e.information.alias," "),t.xp6(1),t.Q6J("ngIf",!e.showColorFieldSeparately),t.xp6(1),t.Q6J("