(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["charts"],{"0790":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"chartclass"},[r("info-block",{attrs:{infotext:t.infotext,title:t.infoTitle}}),r("GChart",{attrs:{type:"LineChart",data:t.playerList,options:t.chartOptions}})],1)},a=[],o=r("b85c"),i=(r("caad"),r("2532"),r("99af"),r("fb55")),c=r("cb43"),s={components:{InfoBlock:i["a"],GChart:c["GChart"]},data:function(){return{infoTitle:"ScoreDiff chart",infotext:"This board shows the number of points each player is behind the leader of the board."}},computed:{players:function(){return this.$store.getters.filteredPlayers},data:function(){return this.$store.getters.data},chartOptions:function(){return{height:1200,chart:{title:"Day/star"},vAxis:{title:"ScoreDiff",direction:-1,logScale:!0,viewWindow:{min:0}}}},playerList:function(){var t,e=["Player"],r=Object(o["a"])(this.players);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.push(n.Name)}}catch(d){r.e(d)}finally{r.f()}for(var a=[e],i=0;i0&&void 0!==arguments[0]?arguments[0]:"current",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n().then((function(r){if("object"!==(void 0===e?"undefined":o(e)))throw new Error("Google Charts loader: settings must be an object");var n=t+"_"+JSON.stringify(e,Object.keys(e).sort());if(s.has(n))return s.get(n);var a=new Promise((function(n){r.load(t,e),r.setOnLoadCallback((function(){return n(window.google)}))}));return s.set(n,a),a}))}e.a=a;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i="https://www.gstatic.com/charts/loader.js",c=null,s=new Map},function(t,e,r){var n=r(5)(r(4),r(6),null,null);t.exports=n.exports},function(t,e){t.exports=function(t,e,r){function n(){var u=Date.now()-c;u=0?a=setTimeout(n,e-u):(a=null,r||(s=t.apply(i,o),i=o=null))}var a,o,i,c,s;null==e&&(e=100);var u=function(){i=this,o=arguments,c=Date.now();var u=r&&!a;return a||(a=setTimeout(n,e)),u&&(s=t.apply(i,o),i=o=null),s};return u.clear=function(){a&&(clearTimeout(a),a=null)},u.flush=function(){a&&(s=t.apply(i,o),i=o=null,clearTimeout(a),a=null)},u}},function(t,r,n){"use strict";function a(t){t.component("GChart",c.a)}Object.defineProperty(r,"__esModule",{value:!0}),r.install=a;var o=n(0),i=n(1),c=n.n(i);n.d(r,"loadGoogleCharts",(function(){return o.a})),n.d(r,"GChart",(function(){return c.a}));var s={version:"0.3.3",install:a};r.default=s;var u=null;"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof e&&(u=e.Vue),u&&u.use(s)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),a=r(2),o=r.n(a),i=function(){function t(t,e){var r=[],n=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(s){a=!0,o=s}finally{try{!n&&c.return&&c.return()}finally{if(a)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=null;e.default={name:"GChart",props:{type:{type:String},data:{type:[Array,Object],default:function(){return[]}},options:{type:Object,default:function(){return{}}},version:{type:String,default:"current"},settings:{type:Object,default:function(){return{packages:["corechart","table"]}}},events:{type:Object},createChart:{type:Function},resizeDebounce:{type:Number,default:200}},data:function(){return{chartObject:null}},watch:{data:{deep:!0,handler:function(){this.drawChart()}},options:{deep:!0,handler:function(){this.drawChart()}},type:function(t){this.createChartObject(),this.drawChart()}},mounted:function(){var t=this;r.i(n.a)(this.version,this.settings).then((function(e){s=e;var r=t.createChartObject();t.$emit("ready",r,e),t.drawChart()})),this.resizeDebounce>0&&window.addEventListener("resize",o()(this.drawChart,this.resizeDebounce))},beforeDestroy:function(){this.chartObject&&"function"==typeof this.chartObject.clearChart&&this.chartObject.clearChart()},methods:{drawChart:function(){if(s&&this.chartObject){var t=this.getValidChartData();t&&this.chartObject.draw(t,this.options)}},getValidChartData:function(){return this.data instanceof s.visualization.DataTable||this.data instanceof s.visualization.DataView?this.data:Array.isArray(this.data)?s.visualization.arrayToDataTable(this.data):null!==this.data&&"object"===c(this.data)?new s.visualization.DataTable(this.data):null},createChartObject:function(){var t=function(t,e,r){if(!r)throw new Error("please, provide chart type property");return new e.visualization[r](t)},e=this.createChart||t;return this.chartObject=e(this.$refs.chart,s,this.type),this.attachListeners(),this.chartObject},attachListeners:function(){var t=this;this.events&&Object.entries(this.events).forEach((function(e){var r=i(e,2),n=r[0],a=r[1];s.visualization.events.addListener(t.chartObject,n,a)}))}}}},function(t,e){t.exports=function(t,e,r,n){var a,o=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(a=t,o=t.default);var c="function"==typeof o?o.options:o;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),r&&(c._scopeId=r),n){var s=c.computed||(c.computed={});Object.keys(n).forEach((function(t){var e=n[t];s[t]=function(){return e}}))}return{esModule:a,exports:o,options:c}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart"})},staticRenderFns:[]}}])}).call(this,r("c8ba"))},cb43:function(t,e,r){"use strict";var n=r("757f");r.o(n,"GChart")&&r.d(e,"GChart",(function(){return n["GChart"]}))}}]); //# sourceMappingURL=charts.ac033a1f.js.map