platypush/platypush/backend/http/webapp/dist/static/js/3673.54ea2f3c.js

2 lines
1.4 KiB
JavaScript

"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3673],{3673:function(o,l,e){e.r(l),e.d(l,{default:function(){return h}});var t=e(6252),r=e(3577),n=e(3540);const i={key:0,src:n,class:"loading"},c={key:1,class:"fas fa-circle-exclamation error"};function s(o,l,e,n,s,a){const u=(0,t.up)("Icon");return(0,t.wg)(),(0,t.iD)("div",{class:(0,r.C_)(["entity-icon-container",{"with-color-fill":!!a.colorFill}]),style:(0,r.j5)(a.colorFillStyle)},[e.loading?((0,t.wg)(),(0,t.iD)("img",i)):e.error?((0,t.wg)(),(0,t.iD)("i",c)):((0,t.wg)(),(0,t.j4)(u,(0,r.vs)((0,t.dG)({key:2},a.computedIcon)),null,16))],6)}var a=e(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&&!this.error?{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=e(3744);const d=(0,p.Z)(u,[["render",s],["__scopeId","data-v-e4043550"]]);var h=d},3540:function(o,l,e){o.exports=e.p+"static/img/spinner.c0bee445.gif"}}]);
//# sourceMappingURL=3673.54ea2f3c.js.map