(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1259:function(t,e,n){"use strict";var l,o=n(0);!function(t){t[t.DDMMYYYY=2]="DDMMYYYY",t[t.DDMM=3]="DDMM"}(l||(l={}));var r=n(229);e.a=Object(o.b)({name:"CalcValueMixin",methods:{calcValue:function(t){if("string"==typeof t||"number"==typeof t)return t;if(null==t||!Object(r.a)(t)||Object(r.a)(t)&&!t.value&&!t.t)return"";if(t.t)return this.$T(t.t);switch(t.calcValue){case l.DDMM:return this.$dateService.dateDDMM(t.value,this.$logger);case l.DDMMYYYY:return this.$dateService.dateDDMMYYYY(t.value,this.$logger);default:return""}}}})},1310:function(t,e,n){"use strict";var l=n(0);e.a=Object(l.b)({data:function(){return{displayPriority:0}},methods:{defer:function(t){return this.displayPriority>t},boostDisplayPriority:function(){var t=this;setTimeout((function(){return t.displayPriority++}),0)},resetDisplayPriority:function(){this.displayPriority=0,this.boostDisplayPriority()},boostDrawing:function(t){if(this.defer(t))return t===this.displayPriority-1&&this.boostDisplayPriority(),!0}}})},1625:function(t,e,n){t.exports={}},2052:function(t,e,n){"use strict";n(1625)},981:function(t,e,n){"use strict";var l,o=n(0);!function(t){t.Player="player",t.Year="year"}(l||(l={}));var r=n(1259),c=n(1310),d=Object(o.b)({name:"STableRow",mixins:[c.a,r.a],props:{columns:{type:Array,default:null},row:{type:Object,default:null},defer_drawing:{type:Boolean,default:!1},block_drawing:{type:Boolean,default:!1}},computed:{$_custom_cells_indexes:function(){var t=0;return this.columns.reduce((function(e,n,l){return n.isCustomCell&&(e[l]=t++),e}),{})}},mounted:function(){this.defer_drawing&&this.boostDisplayPriority()},methods:{getValue:function(t,e){return t.translate?e[t.field]?this.$T(e[t.field]):"":t.calcValue?this.calcValue({calcValue:t.calcValue,value:e[t.field]}):e[t.field]||0===e[t.field]?e[t.field]:t.defaultValue},isShowTd:function(t,e){return!(t.skip&&t.skip(e))},tdClass:function(t,e){return"function"==typeof t.cellClass?t.cellClass(t,e):"".concat(t.cellClass||"")},collspanTd:function(t,e){return t.collspan?t.collspan(e):null},canDraw:function(t,e){return!(this.defer_drawing&&!t.noDeferCell)||this.boostDrawing(this.$_custom_cells_indexes[e])}}}),f=n(2),m=Object(f.a)(d,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("tr",{class:t.row.classCustom},[t._l(t.columns,(function(n,l){return[t.isShowTd(n,t.row)?e("td",{key:"s-table-row-".concat(l),class:t.tdClass(n,t.row),attrs:{colspan:t.collspanTd(n,t.row)}},[n.isCustomCell&&!t.block_drawing?[t.canDraw(n,l)?t._t("table-row",null,{column:n,row:t.row}):t._e()]:[t._v("\n "+t._s(t.getValue(n,t.row))+"\n ")]],2):t._e()]}))],2)}),[],!1,null,null,null).exports,h=Object(o.b)({name:"STable",components:{STableRow:m},mixins:[r.a],props:{columns:{type:Array,required:!0},rows:{type:Array,default:function(){return[]}},checkEmptyCells:{type:Boolean,default:!1},showHead:{type:Boolean,default:!0},batchDrawing:{type:Boolean,default:!1},vShowCallback:{type:Function,default:null},sortBy:{type:[String,Number],default:null}},data:function(){return{active_column:-1,active_row:-1,hover_config_merged:{},mounted:!1,sort_by_field:this.sortBy,reverse_sort:!1,rows_sorted:[]}},computed:{$_rows:function(){var t=this;return this.sortBy?this.rows.slice(0).sort((function(e,n){var o=e[t.sort_by_field],r=n[t.sort_by_field];if(t.sort_by_field===l.Player){var c=o.title.toLowerCase();o=r.title.toLowerCase(),r=c}return o===r?0:o0}))},$_is_still_drawing:function(){return!!this.defer_drawing&&!this.mounted}},watch:{reverse_sort:function(){this.$_rows.reverse()},sort_by_field:function(){this.reverse_sort&&this.$_rows.reverse()}},mounted:function(){this.mounted=!0},methods:{buildColumns:function(){var t=this,e=[];return this.$_columnsRaw.forEach((function(n){t.rows.find((function(e){return e[n.field]||t.buildDoubleColumns(n,e)}))&&e.push(n)})),e},buildFlatColumns:function(){return this.buildFlatColumnsRecursive(this.columns).flat()},buildFlatColumnsRecursive:function(t){var e=this;return t.map((function(t){return t.columns?e.buildFlatColumnsRecursive(t.columns):t}))},buildCombinedColumns:function(){var t=this;return this.columns.map((function(e){var label=e.label||t.calcValue(e);return e.columns&&label?e:t.$_columns.find((function(t){return t.field===e.field}))?{columns:[],label:""}:null})).filter((function(t){return t}))},getKey:function(t){return t.id+(t.team?t.team.id:"")+(t.player?t.player.id:"")},changeSortBy:function(t){this.sortBy&&(this.sort_by_field!==t?this.sort_by_field=t:this.reverse_sort=!this.reverse_sort)},getHeadSpanClass:function(t){var e="pointer";return this.sort_by_field===t&&(e+=" has-arrow",this.reverse_sort&&(e+=" sorted-dec")),e},buildDoubleColumns:function(t,e){var n;return t.isCustomColumn&&(null===(n=e.positions)||void 0===n?void 0:n.length)>0&&e.positions[t.position].filter((function(t){return!!t})).length>0}}}),_=(n(2052),Object(f.a)(h,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("table",{staticClass:"table"},[e("tbody",[t.$_isShowCombinedColumns?e("tr",{staticClass:"thead"},t._l(t.$_columnsCombined,(function(n,l){return e("td",{key:"combined-".concat(l),staticClass:"td_center",class:n.headCellClass,attrs:{colspan:n.columns.length}},[t._v("\n "+t._s(n.label||t.calcValue(n))+"\n ")])})),0):t._e(),t._v(" "),t.showHead?e("tr",{staticClass:"thead"},t._l(t.$_columns,(function(n,l){return e("td",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.calcValue(n.title),expression:"calcValue(column.title)"}],key:"thead-".concat(l),class:[n.headCellClass]},[e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.calcValue(n.tooltip),expression:"calcValue(column.tooltip)"}],class:t.sortBy?t.getHeadSpanClass(n.field):"",on:{click:function(e){return t.changeSortBy(n.field)}}},[n.isCustomColumn?t._t("table-column",null,{column:n}):[t._v("\n "+t._s(n.label||t.calcValue(n))+"\n ")]],2)])})),0):t._e(),t._v(" "),t._l(t.$_rows,(function(n,l){return[e("STableRow",{directives:[{name:"show",rawName:"v-show",value:!t.vShowCallback||t.vShowCallback(n),expression:"vShowCallback ? vShowCallback(row) : true"}],key:"tr-".concat(l,"-").concat(t.getKey(n)),class:n.classCustom,attrs:{defer_drawing:t.batchDrawing,block_drawing:t.$_is_still_drawing,columns:t.$_columns,row:n},scopedSlots:t._u([{key:"table-row",fn:function(e){return[t._t("table-row",null,{column:e.column,row:e.row})]}}],null,!0)})]}))],2)])}),[],!1,null,null,null));e.a=_.exports}}]);