1import{c as e,d as t,l as n,m as r,n as i,o as a,p as o,r as s,s as c,v as l}from"./index-C32yDzkE.js";var u={name:`Medusa`,mixins:[i],props:{item:Object},data:()=>({config:null,serverError:!1}),created:function(){this.autoUpdateMethod=this.fetchConfig,this.fetchConfig()},methods:{fetchConfig:function(){this.fetch(`/api/v2/config`,{headers:{"X-Api-Key":this.item.apikey}}).then(e=>{this.config=e}).catch(e=>{console.log(e),this.serverError=!0})}}},d={class:`notifs`},f={key:0,class:`notif news`,title:`News`},p={key:1,class:`notif warnings`,title:`Warning`},m={key:2,class:`notif errors`,title:`Error`},h={key:3,class:`notif errors`,title:`Connection error to Medusa API, check url and apikey in config.yml`};function g(i,s,u,g,_,v){let y=o(`Generic`);return t(),c(y,{item:u.item},{indicator:r(()=>[a(`div`,d,[i.config!==null&&i.config.system.news.unread>0?(t(),n(`strong`,f,l(i.config.system.news.unread),1)):e(``,!0),i.config!==null&&i.config.main.logs.numWarnings>0?(t(),n(`strong`,p,l(i.config.main.logs.numWarnings),1)):e(``,!0),i.config!==null&&i.config.main.logs.numErrors>0?(t(),n(`strong`,m,l(i.config.main.logs.numErrors),1)):e(``,!0),i.serverError?(t(),n(`strong`,h,`?`)):e(``,!0)])]),_:1},8,[`item`])}var _=s(u,[[`render`,g],[`__scopeId`,`data-v-7187df5c`]]);export{_ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.