platypush/platypush/backend/http/webapp/dist/static/js/3499.7b46c041.js

2 lines
1.4 KiB
JavaScript

"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3499],{3499:function(o,l,t){t.r(l),t.d(l,{default:function(){return h}});var e=t(6252),n=t(3577),r=t(3540);const c={key:0,src:r,class:"loading"},i={key:1,class:"fas fa-circle-exclamation error"};function s(o,l,t,r,s,a){const u=(0,e.up)("Icon");return(0,e.wg)(),(0,e.iD)("div",{class:(0,n.C_)(["entity-icon-container",{"with-color-fill":!!a.colorFill}]),style:(0,n.j5)(a.colorFillStyle)},[t.loading?((0,e.wg)(),(0,e.iD)("img",c)):t.error?((0,e.wg)(),(0,e.iD)("i",i)):((0,e.wg)(),(0,e.j4)(u,(0,n.vs)((0,e.dG)({key:2},a.computedIcon)),null,16))],6)}var a=t(1478),u={name:"EntityIcon",components:{Icon:a.Z},props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},icon:{type:Object,required:!0},hasColorFill:{type:Boolean,default:!1}},data(){return{component:null,modalVisible:!1}},computed:{colorFill(){return this.hasColorFill&&this.icon.color?this.icon.color:null},colorFillStyle(){return this.colorFill?{background:this.colorFill}:{}},computedIcon(){const o={...this.icon};return this.colorFill&&delete o.color,o},type(){let o=this.entity.type||"";return o.charAt(0).toUpperCase()+o.slice(1)}}},p=t(3744);const d=(0,p.Z)(u,[["render",s],["__scopeId","data-v-6f83c443"]]);var h=d},3540:function(o,l,t){o.exports=t.p+"static/img/spinner.c0bee445.gif"}}]);
//# sourceMappingURL=3499.7b46c041.js.map