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