(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-02adfb16"],{1148:function(t,e,i){"use strict";var a=i("a691"),s=i("577e"),n=i("1d80");t.exports=function(t){var e=s(n(this)),i="",r=a(t);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},"143d":function(t,e,i){},"408a":function(t,e){var i=1..valueOf;t.exports=function(t){return i.call(t)}},"6e93":function(t,e,i){"use strict";i("143d")},b680:function(t,e,i){"use strict";var a=i("23e7"),s=i("a691"),n=i("408a"),r=i("1148"),c=i("d039"),o=1..toFixed,l=Math.floor,u=function(t,e,i){return 0===e?i:e%2===1?u(t,e-1,i*t):u(t*t,e/2,i)},f=function(t){var e=0,i=t;while(i>=4096)e+=12,i/=4096;while(i>=2)e+=1,i/=2;return e},d=function(t,e,i){var a=-1,s=i;while(++a<6)s+=e*t[a],t[a]=s%1e7,s=l(s/1e7)},p=function(t,e){var i=6,a=0;while(--i>=0)a+=t[i],t[i]=l(a/e),a=a%e*1e7},h=function(t){var e=6,i="";while(--e>=0)if(""!==i||0===e||0!==t[e]){var a=String(t[e]);i=""===i?a:i+r.call("0",7-a.length)+a}return i},m=o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){o.call({})}));a({target:"Number",proto:!0,forced:m},{toFixed:function(t){var e,i,a,c,o=n(this),l=s(t),m=[0,0,0,0,0,0],g="",v="0";if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(g="-",o=-o),o>1e-21)if(e=f(o*u(2,69,1))-69,i=e<0?o*u(2,-e,1):o/u(2,e,1),i*=4503599627370496,e=52-e,e>0){d(m,0,i),a=l;while(a>=7)d(m,1e7,0),a-=7;d(m,u(10,a,1),0),a=e-1;while(a>=23)p(m,1<<23),a-=23;p(m,1<<a),d(m,1,1),p(m,2),v=h(m)}else d(m,0,i),d(m,1<<-e,0),v=h(m)+r.call("0",l);return l>0?(c=v.length,v=g+(c<=l?"0."+r.call("0",l-c)+v:v.slice(0,c-l)+"."+v.slice(c-l))):v=g+v,v}})},bd96:function(t,e,i){"use strict";i.r(e);var a=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(" "+t._s(t.percentage)+"% blocked ")]:t._e()],2)]),t.api?i("div",{staticClass:"status",class:t.api.status},[t._v(" "+t._s(t.api.status)+" ")]):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()])])])])},s=[],n=i("1da1"),r=(i("96cf"),i("b680"),i("d3b7"),{name:"PiHole",props:{item:Object},data:function(){return{api:{status:"",ads_percentage_today:0}}},computed:{percentage:function(){return this.api?this.api.ads_percentage_today.toFixed(1):""}},created:function(){this.fetchStatus()},methods:{fetchStatus:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(this.item.url,"/api.php"),t.next=3,fetch(e,{credentials:"include"}).then((function(t){return t.json()})).catch((function(t){return console.log(t)}));case 3:this.api=t.sent;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}}),c=r,o=(i("6e93"),i("2877")),l=Object(o["a"])(c,a,s,!1,null,"0a207ccf",null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-02adfb16.65d3e494.js.map