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