mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 09:50:36 +01:00
1 line
29 KiB
JavaScript
1 line
29 KiB
JavaScript
|
"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[893],{534:(Y,A,i)=>{i.d(A,{Kf:()=>G,I3:()=>K});var G={prefix:"far",iconName:"frown",icon:[496,512,[],"f119","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"]},K={prefix:"far",iconName:"smile",icon:[496,512,[],"f118","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"]}},1203:(Y,A,i)=>{i.d(A,{D:()=>w});var e=i(7579),M=i(2722),m=i(7731),a=i(8377),t=i(5e3),c=i(62),Z=i(5620),T=i(3251),x=i(9808),H=i(7093),S=i(5245),N=i(7238);function y(d,C){if(1&d&&(t.TgZ(0,"mat-icon",9),t._uU(1,"info_outline"),t.qZA()),2&d){const v=t.oxw().$implicit;t.Q6J("matTooltip",v.tooltip)}}function O(d,C){if(1&d&&(t.TgZ(0,"span",10),t._uU(1),t.ALo(2,"number"),t.qZA()),2&d){const v=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,v.dataValue)," ")}}function D(d,C){if(1&d&&(t.TgZ(0,"span",10),t._uU(1),t.ALo(2,"number"),t.qZA()),2&d){const v=t.oxw().$implicit,l=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,v[l.currencyUnitEnum.BTC],l.currencyUnitFormats.BTC)," ")}}function R(d,C){if(1&d&&(t.TgZ(0,"span",10),t._uU(1),t.ALo(2,"number"),t.qZA()),2&d){const v=t.oxw().$implicit,l=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,v[l.currencyUnitEnum.OTHER],l.currencyUnitFormats.OTHER)," ")}}function b(d,C){if(1&d&&(t.TgZ(0,"div",5),t.TgZ(1,"div",6),t._uU(2),t.YNc(3,y,2,1,"mat-icon",7),t.qZA(),t.YNc(4,O,3,3,"span",8),t.YNc(5,D,3,4,"span",8),t.YNc(6,R,3,4,"span",8),t.qZA()),2&d){const v=C.$implicit,l=t.oxw().$implicit,u=t.oxw();t.xp6(2),t.hij(" ",v.title," "),t.xp6(1),t.Q6J("ngIf",v.tooltip),t.xp6(1),t.Q6J("ngIf",l===u.currencyUnitEnum.SATS),t.xp6(1),t.Q6J("ngIf",l===u.currencyUnitEnum.BTC),t.xp6(1),t.Q6J("ngIf",u.fiatConversion&&l!==u.currencyUnitEnum.SATS&&l!==u.currencyUnitEnum.BTC&&""===u.conversionErrorMsg)}}function E(d,C){if(1&d&&(t.TgZ(0,"div",11),t.TgZ(1,"div",12),t._uU(2),t.qZA(),t.qZA()),2&d){const v=t.oxw(2);t.xp6(2),t.Oqu(v.conversionErrorMsg)}}function L(d,C){if(1&d&&(t.TgZ(0,"mat-tab",1),t.TgZ(1,"div",2),t.YNc(2,b,7,5,"div",3),t.qZA(),t.YNc(3,E,3,1,"div",4),t.qZA()),2&d){const v=C.$implicit,l=t.oxw();t.s9C("label",v),t.xp6(2),t.Q6J("ngForOf",l.values),t.xp6(1),t.Q6J("ngIf",l.fiatConversion&&v!==l.currencyUnitEnum.SATS&&v!==l.currencyUnitEnum.BTC&&""!==l.conversionErrorMsg)}}let w=(()=>{class d{constructor(v,l){this.commonService=v,this.store=l,this.values=[],this.currencyUnitEnum=m.NT,this.currencyUnitFormats=m.Xz,this.currencyUnits=[],this.fiatConversion=!1,this.conversionErrorMsg="",this.unSubs=[new e.x,new e.x,new e.x]}ngOnInit(){this.store.select(a.dT).pipe((0,M.R)(this.unSubs[0])).subscribe(v=>{this.fiatConversion=v.settings.fiatConversion,this.currencyUnits=v.settings.currencyUnits,this.fiatConversion||this.currencyUnits.splice(2,1),this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)})}ngOnChanges(){this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues(this.values)}getCurrencyValues(v){v.forEach(l=>{l.dataValue>0?(this.commonService.convertCurrency(l.dataValue,m.NT.SATS,m.NT.BTC,"",!0).pipe((0,M.R)(this.unSubs[1])).subscribe(u=>{l[m.NT.BTC]=u.BTC}),this.commonService.convertC
|