text: (function(t){function e(e){for(var n,i,o=e[0],l=e[1],c=e[2],p=0,j=[];p<o.length;p++)i=o[p],r[i]&&j.push(r[i][0]),r[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n]);u&&u(e);while(j.length)j.shift()();return a.push.apply(a,c||[]),s()}function s(){for(var t,e=0;e<a.length;e++){for(var s=a[e],n=!0,o=1;o<s.length;o++){var l=s[o];0!==r[l]&&(n=!1)}n&&(a.splice(e--,1),t=i(i.s=s[0]))}return t}var n={},r={1:0},a=[];function i(e){if(n[e])return n[e].exports;var s=n[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=n,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:s})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],l=o.push.bind(o);o.push=e,o=o.slice();for(var c=0;c<o.length;c++)e(o[c]);var u=l;a.push([5,0]),s()})({"2OnH":function(t,e,s){},5:function(t,e,s){t.exports=s("Vtdi")},"5MCP":function(t,e,s){},"5u2Y":function(t,e,s){"use strict";var n=s("2OnH"),r=s.n(n);r.a},RnhZ:function(t,e,s){var n={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(t){var e=a(t),n=s(e);return n}function a(t){var e=n[t];if(!(e+1)){var s=new Error('Cannot find module "'+t+'".');throw s.code="MODULE_NOT_FOUND",s}return e}r.keys=function(){return Object.keys(n)},r.resolve=a,t.exports=r,r.id="RnhZ"},Vtdi:function(t,e,s){"use strict";s.r(e);s("VRzm");var n=s("Kw5r"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"app"}},[t._m(0),t._v(" "),t.loading?s("p",[t._v("Loading...")]):t.list.length?s("list",{attrs:{list:t.list},on:{onFavoriteChanged:t.onFavoriteChanged}}):s("p",[t._v("Something bad happened! :( ")])],1)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("header",[s("img",{attrs:{src:"http://vantaur.tk/img/vtarft.png"}}),t._v(" "),s("h1",[t._v("Masternodes")])])}],i=(s("dRSK"),s("ls82"),s("MECJ")),o=s("vDqi"),l=s.n(o),c=s("wd/R"),u=s.n(c),p=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"filter-container"},[s("button",{staticClass:"filter-tab",class:{active:!t.displayFavorites},on:{click:function(e){t.filterList("all")}}},[t._v("All")]),t._v(" "),s("button",{staticClass:"filter-tab",class:{active:t.displayFavorites},on:{click:function(e){t.filterList("fav")}}},[t._v("Favorites")])]),t._v(" "),s("vue-good-table",{attrs:{rows:t.filteredList,columns:t.columns,searchOptions:t.searchOptions,paginationOptions:t.paginationOptions},scopedSlots:t._u([{key:"table-row",fn:function(e){return["status"===e.column.field?s("span",{class:t.getStatusCellClass(e.row)},[t._v("\n        "+t._s(e.formattedRow[e.column.field])+"\n      ")]):e.column.html?s("span",{domProps:{innerHTML:t._s(e.formattedRow[e.column.field])}}):"isFavorite"===e.column.field?s("span",{staticClass:"favorite-cell"},[s("Favorite",{attrs:{row:e.row},on:{onFavoriteToggle:t.onFavoriteToggle}})],1):s("span",[t._v("\n        "+t._s(e.formattedRow[e.column.field])+"\n      ")])]}}])},[s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[t._v("\n      No results found...\n    ")])])],1)},j=[],f=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("svg",{staticClass:"star",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19",viewBox:"0 0 51 48"},on:{click:function(e){t.$emit("onFavoriteToggle",t.row)}}},[s("title",[t._v("Five Pointed Star")]),t._v(" "),s("path",{staticClass:"star-path",class:{isFavorite:t.isFavorite},attrs:{fill:"none",d:"m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z"}})])},d=[],v={name:"Favorite",props:["row"],computed:{isFavorite:function(){return this.row.isFavorite}}},h=v,m=(s("csuC"),s("KHd+")),g=Object(m["a"])(h,f,d,!1,null,null,null),b=g.exports,w={name:"List",components:{Favorite:b},props:{list:Array},computed:{filteredList:function(){return this.displayFavorites?this.list.filter(function(t){return t.isFavorite}):this.list}},data:function(){return{displayFavorites:!1,columns:[{label:"",field:"isFavorite",width:"30px"},{label:"Status",field:"status"},{label:"Public Key",field:"publicKeyHtml",html:!0},{label:"IP",field:"ip"},{label:"Last Seen",field:"lastSeen"},{label:"Last Paid",field:"lastPaid"},{label:"Active Since",field:"activeSince"}],searchOptions:{enabled:!0,placeholder:"Search masternodes",searchFn:this.searchFn},paginationOptions:{enabled:!0,perPage:50,perPageDropdown:[50,100,250,500],position:"both",dropdownAllowAll:!0,rowsPerPageLabel:"Per page"}}},methods:{getStatusCellClass:function(t){return"ENABLED"===t.status?"cl-success":"cl-warn"},onFavoriteToggle:function(t){this.$emit("onFavoriteChanged",t.ip)},filterList:function(t){this.displayFavorites="fav"===t},searchFn:function(t,e,s,n){return t.ip.indexOf(n)>-1||t.publicKey.indexOf(n)>-1}},watch:{displayFavorites:function(t){localStorage.setItem("vm.displayFavorites",t)}},created:function(){this.displayFavorites=JSON.parse(localStorage.getItem("vm.displayFavorites"))||!1}},y=w,k=(s("5u2Y"),Object(m["a"])(y,p,j,!1,null,"fba9d794",null)),O=k.exports,x=(s("pIFo"),s("KKXr"),s("k5N+")),F="vm.favorites",z=function(){return JSON.parse(localStorage.getItem(F))||[]},R=function(t){return localStorage.setItem(F,JSON.stringify(t))},C=function(t){var e=z(),s=e.indexOf(t);s<0?e.push(t):e.splice(s,1),R(e)},D=function(t){return z().indexOf(t)>-1},S=function(t){return Object.keys(t).map(function(e){var s=t[e].trim().replace(/\s\s+/g," ").split(" "),n=Object(x["a"])(s,6),r=n[0],a=n[1],i=n[2],o=n[3],l=n[4],c=n[5];return{status:r,publicKeyHtml:_(i),publicKey:i,ip:o,lastSeen:u()(1e3*Number(l)).fromNow(),activeSince:u()(Date.now()-1e3*Number(c)).fromNow(!0),lastPaid:"-",port:a,isFavorite:D(o)}})},_=function(t){return'\n    <a href="http://vantaur.chainlist.online/address/'.concat(t,'" target="_blank">').concat(t,"</a>\n  ")},P={name:"app",components:{List:O},data:function(){return{loading:!0,count:null,list:[],errors:[]}},methods:{getRewards:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.get("/rewards.json");case 3:return e=t.sent,s=e.data,t.abrupt("return",s);case 8:throw t.prev=8,t.t0=t["catch"](0),new Error("Error while getting rewards");case 11:case"end":return t.stop()}},t,this,[[0,8]])}));return function(){return t.apply(this,arguments)}}(),getList:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l.a.get("/mnlist.txt");case 3:return e=t.sent,s=e.data,t.abrupt("return",S(s));case 8:throw t.prev=8,t.t0=t["catch"](0),new Error("Error while getting masternode list!");case 11:case"end":return t.stop()}},t,this,[[0,8]])}));return function(){return t.apply(this,arguments)}}(),syncData:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,t.prev=1,t.next=4,this.getList();case 4:return this.list=t.sent,this.loading=!1,t.next=8,this.getRewards();case 8:e=t.sent,s=e.rewards,s&&this.applyRewardsToList(s),t.next=16;break;case 13:throw t.prev=13,t.t0=t["catch"](1),new Error(t.t0);case 16:this.loading=!1;case 17:case"end":return t.stop()}},t,this,[[1,13]])}));return function(){return t.apply(this,arguments)}}(),onFavoriteChanged:function(t){var e=this.list.find(function(e){return e.ip===t});e.isFavorite=!e.isFavorite,C(e.ip)},applyRewardsToList:function(t){var e=this;Object.keys(t).forEach(function(s){var n=e.list.find(function(t){return t.publicKey===s});n&&(n.lastPaid=u()(1e3*t[s]).fromNow())})}},mounted:function(){this.syncData()}},E=P,L=(s("nNx0"),Object(m["a"])(E,r,a,!1,null,null,null)),V=L.exports,I=s("/oJB");s("2sRw");n["a"].use(I["a"]),new n["a"]({render:function(t){return t(V)}}).$mount("#app")},cIV4:function(t,e,s){},csuC:function(t,e,s){"use strict";var n=s("5MCP"),r=s.n(n);r.a},nNx0:function(t,e,s){"use strict";var n=s("cIV4"),r=s.n(n);r.a}});
  //# sourceMappingURL=app.ad2e4f96.js.map