(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f3b4fde"],{b6c7:function(t,s,i){},bb90:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",[i("div",{staticClass:"card",class:t.item.class},[i("a",{attrs:{href:t.item.url,target:t.item.target,rel:"noreferrer"}},[i("div",{staticClass:"card-content"},[i("div",{staticClass:"media"},[t.item.logo?i("div",{staticClass:"media-left"},[i("figure",{staticClass:"image is-48x48"},[i("img",{attrs:{src:t.item.logo,alt:t.item.name+" logo"}})])]):t._e(),t.item.icon?i("div",{staticClass:"media-left"},[i("figure",{staticClass:"image is-48x48"},[i("i",{class:["fa-fw",t.item.icon],staticStyle:{"font-size":"35px"}})])]):t._e(),i("div",{staticClass:"media-content"},[i("p",{staticClass:"title is-4"},[t._v(t._s(t.item.name))]),i("p",{staticClass:"subtitle is-6"},[t._v(t._s(t.item.subtitle))])]),i("div",{staticClass:"notifs"},[null!==t.config&&t.config.system.news.unread>0?i("strong",{staticClass:"notif news",attrs:{title:"News"}},[t._v(t._s(t.config.system.news.unread))]):t._e(),null!==t.config&&t.config.main.logs.numWarnings>0?i("strong",{staticClass:"notif warnings",attrs:{title:"Warning"}},[t._v(t._s(t.config.main.logs.numWarnings))]):t._e(),null!==t.config&&t.config.main.logs.numErrors>0?i("strong",{staticClass:"notif errors",attrs:{title:"Error"}},[t._v(t._s(t.config.main.logs.numErrors))]):t._e(),t.serverError?i("strong",{staticClass:"notif errors",attrs:{title:"Connection error to Medusa API, check url and apikey in config.yml"}},[t._v("?")]):t._e()])]),t.item.tag?i("div",{staticClass:"tag",class:t.item.tagstyle},[i("strong",{staticClass:"tag-text"},[t._v("#"+t._s(t.item.tag))])]):t._e()])])])])},n=[],a=(i("d3b7"),{name:"Medusa",props:{item:Object},data:function(){return{config:null,serverError:!1}},created:function(){this.fetchConfig()},methods:{fetchConfig:function(){var t=this;fetch("".concat(this.item.url,"/api/v2/config"),{credentials:"include",headers:{"X-Api-Key":"".concat(this.item.apikey)}}).then((function(t){if(200!=t.status)throw new Error(t.statusText);return t.json()})).then((function(s){t.config=s})).catch((function(s){console.log(s),t.serverError=!0}))}}}),r=a,c=(i("c15c"),i("2877")),o=Object(c["a"])(r,e,n,!1,null,"7390b73e",null);s["default"]=o.exports},c15c:function(t,s,i){"use strict";i("b6c7")}}]);
//# sourceMappingURL=chunk-5f3b4fde.f25f6b60.js.map