(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23f48ab0"],{"3e2c":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;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.item.subtitle?[t._v(" "+t._s(t.item.subtitle)+" ")]:t.api?[t._v(" happily storing "+t._s(t.api.count)+" documents ")]:t._e()],2)])]),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()])])])])},a=[],n=i("1da1"),r=(i("96cf"),i("d3b7"),{name:"Paperless",props:{item:Object},data:function(){return{api:null}},created:function(){this.fetchStatus()},methods:{fetchStatus:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null==this.item.subtitle){t.next=2;break}return t.abrupt("return");case 2:if(e=this.item.apikey,e){t.next=6;break}return console.error("apikey is not present in config.yml for the paperless entry!"),t.abrupt("return");case 6:return i="".concat(this.item.url,"/api/documents/"),t.next=9,fetch(i,{credentials:"include",headers:{Authorization:"Token "+this.item.apikey}}).then((function(t){if(t.ok)return t.json();throw new Error("Not 2xx response")})).catch((function(t){return console.log(t)}));case 9:this.api=t.sent;case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}}),c=r,o=(i("4d04"),i("2877")),l=Object(o["a"])(c,s,a,!1,null,"10a820a0",null);e["default"]=l.exports},"4d04":function(t,e,i){"use strict";i("d1e6")},d1e6:function(t,e,i){}}]);
//# sourceMappingURL=chunk-23f48ab0.25234303.js.map