"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9782],{9782:function(e,n,t){t.r(n),t.d(n,{default:function(){return m}});var l=t(641),a=t(33);const u={class:"entity link-quality-container"},i={class:"head"},s={class:"icon"},r={class:"label"},c=["textContent"],o={class:"value-container"},v=["textContent"];function d(e,n,t,d,k,p){const f=(0,l.g2)("EntityIcon");return(0,l.uX)(),(0,l.CE)("div",u,[(0,l.Lk)("div",i,[(0,l.Lk)("div",s,[(0,l.bF)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l.Lk)("div",r,[(0,l.Lk)("div",{class:"name",textContent:(0,a.v_)(e.value.name)},null,8,c)]),(0,l.Lk)("div",o,[null!=p.valuePercent?((0,l.uX)(),(0,l.CE)("span",{key:0,class:"value",textContent:(0,a.v_)(p.valuePercent+"%")},null,8,v)):(0,l.Q3)("",!0)])])])}var k=t(4897),p=t(1029),f={name:"LinkQuality",components:{EntityIcon:p["default"]},mixins:[k["default"]],computed:{valuePercent(){if(null==this.value?.value)return null;const e=this.value.min||0,n=this.value.max||100;return(100*this.value.value/(n-e)).toFixed(0)}}},h=t(6262);const y=(0,h.A)(f,[["render",d],["__scopeId","data-v-66f207d9"]]);var m=y}}]);
//# sourceMappingURL=9782.e35bd69c.js.map