<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d67047c4"],{"11e9":function(e,s,t){var n=t("52a7"),a=t("4630"),r=t("6821"),o=t("6a99"),l=t("69a8"),i=t("c69a"),m=Object.getOwnPropertyDescriptor;s.f=t("9e1e")?m:function(e,s){if(e=r(e),s=o(s,!0),i)try{return m(e,s)}catch(t){}if(l(e,s))return a(!n.f.call(e,s),e[s])}},"26e5":function(e,s,t){"use strict";var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"btn btn-info btn-sm",on:{click:function(s){return e.tableToExcel("tblList")}}},[t("i",{staticClass:"fas fa-file-excel mr-2"}),t("span",[e._v(e._s(e.$t("ui.export_excel")))])])},a=[],r=(t("a481"),{props:{mode:{type:String,default:""},date:{type:Object,default:""},jsonDetails:{type:Array,default:function(){return[]}}},data:function(){return{uri:"data:application/vnd.ms-excel;base64,",template:'&lt;html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"&gt;&lt;head&gt;\x3c!--[if gte mso 9]&gt;&lt;xml&gt;&lt;x:ExcelWorkbook&gt;&lt;x:ExcelWorksheets&gt;&lt;x:ExcelWorksheet&gt;&lt;x:Name&gt;{worksheet}&lt;/x:Name&gt;&lt;x:WorksheetOptions&gt;&lt;x:DisplayGridlines/&gt;&lt;/x:WorksheetOptions&gt;&lt;/x:ExcelWorksheet&gt;&lt;/x:ExcelWorksheets&gt;&lt;/x:ExcelWorkbook&gt;&lt;/xml&gt;&lt;![endif]--\x3e&lt;/head&gt;&lt;body&gt;&lt;table&gt;{table}&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;',base64:function(e){return window.btoa(unescape(encodeURIComponent(e)))},format:function(e,s){return e.replace(/{(\w+)}/g,(function(e,t){return s[t]}))}}},methods:{tableToExcel:function(e){e.nodeType||(e=document.getElementById(e));var s=this.$moment(this.date.startDate).format("DDMMYYYY")+"-"+this.$moment(this.date.endDate).format("DDMMYYYY"),t={worksheet:s||"Worksheet",table:e.innerHTML},n=document.createElement("a");n.download=this.mode+"-"+this.$store.getters.accountID.toUpperCase()+"-"+s+".xls",n.href=this.uri+this.base64(this.format(this.template,t)),n.click()}}}),o=r,l=t("2877"),i=Object(l["a"])(o,n,a,!1,null,null,null);s["a"]=i.exports},"5cd1":function(e,s,t){"use strict";var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("b-input-group",{attrs:{prepend:e.$t("ui.date"),size:"sm"}},[t("date-range-picker",{attrs:{opens:e.opens,minDate:e.$moment(e.$moment().startOf("day").subtract(14,"days").toDate()).format("YYYY-MM-DD"),maxDate:e.$moment().format("YYYY-MM-DD"),singleDatePicker:e.singleDatePicker,showWeekNumbers:e.showWeekNumbers,autoApply:e.autoApply,linkedCalendars:e.linkedCalendars,ranges:1!=e.singleDatePicker&amp;&amp;e.ranges},on:{update:e.handleInput},scopedSlots:e._u([{key:"input",fn:function(s){return t("div",{staticStyle:{"min-width":"170px"}},[t("i",{staticClass:"glyphicon glyphicon-calendar fa fa-calendar mr-3"}),t("span",{staticClass:"text-right"},[e._v(e._s(e.$moment(s.startDate).format("YYYY-MM-DD"))+" - "+e._s(e.$moment(s.endDate).format("YYYY-MM-DD")))])])}}]),model:{value:e.dateRange,callback:function(s){e.dateRange=s},expression:"dateRange"}})],1)},a=[],r=(t("c5f6"),t("bbf5")),o=t.n(r),l={components:{DateRangePicker:o.a},props:{opens:{type:String,default:"right"},singleDatePicker:{type:Boolean,default:!1},showWeekNumbers:{type:Boolean,default:!1},linkedCalendars:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!0},format:{type:String,default:"YYYY-MM-DD"},minuteStep:{type:Number,default:1},value:{type:Object,default:null}},data:function(){return{dateRange:this.value,ranges:{Today:[this.$moment(),this.$moment()],Yesterday:[this.$moment().subtract(1,"days"),this.$moment().subtract(1,"days")],"This month":[this.$moment().startOf("month"),this.$moment().endOf("month")],"Last week":[this.$moment().subtract(1,"week").startOf("week"),this.$moment().subtract(1,"week").endOf("week")],"Last month":[this.$moment().subtract(1,"month").startOf("month"),this.$moment().subtract(1,"month").endOf("month")]}}},methods:{handleInput:function(e){this.dateRange.startDate=this.$moment(e.startDate).format("YYYY-MM-DD"),this.dateRange.endDate=this.$moment(e.endDate).format("YYYY-MM-DD"),this.$store.dispatch("layout/setDateRange",this.dateRange),this.$emit("update",e)}}},i=l,m=t("2877"),c=Object(m["a"])(i,n,a,!1,null,null,null);s["a"]=c.exports},"5dbc":function(e,s,t){var n=t("d3f4"),a=t("8b97").set;e.exports=function(e,s,t){var r,o=s.constructor;return o!==t&amp;&amp;"function"==typeof o&amp;&amp;(r=o.prototype)!==t.prototype&amp;&amp;n(r)&amp;&amp;a&amp;&amp;a(e,r),e}},"72c4":function(e,s,t){"use strict";var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12 mt-1"},[e._l(e.list,(function(s){return[t("span",{staticClass:"mr-1"},[1==s.is_pending?[t("span",{staticClass:"badge badge-danger"},[e._v(e._s(e.$moment(s.working_date).format("DD/MM")+"|"+e.$t("ui.pending")))])]:[t("span",{staticClass:"badge badge-success"},[e._v(e._s(e.$moment(s.working_date).format("DD/MM")+"|"+e.$t("ui.completed")))])]],2)]}))],2)},a=[],r={data:function(){return{loading:!1,list:[]}},mounted:function(){this.submit()},methods:{submit:function(){var e=this;this.$store.dispatch("user/getPendingMatches").then((function(s){e.loading=!0,1==s.success&amp;&amp;(e.loading=!1,s.data.length&gt;0&amp;&amp;(e.list=s.data))})).catch((function(e){}))}}},o=r,l=t("2877"),i=Object(l["a"])(o,n,a,!1,null,null,null);s["a"]=i.exports},"8b97":function(e,s,t){var n=t("d3f4"),a=t("cb7c"),r=function(e,s){if(a(e),!n(s)&amp;&amp;null!==s)throw TypeError(s+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,s,n){try{n=t("9b43")(Function.call,t("11e9").f(Object.prototype,"__proto__").set,2),n(e,[]),s=!(e instanceof Array)}catch(a){s=!0}return function(e,t){return r(e,t),s?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:r}},9093:function(e,s,t){var n=t("ce10"),a=t("e11e").concat("length","prototype");s.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},aa77:function(e,s,t){var n=t("5ca1"),a=t("be13"),r=t("79e5"),o=t("fdef"),l="["+o+"]",i="â€‹Â…",m=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),u=function(e,s,t){var a={},l=r((function(){return!!o[e]()||i[e]()!=i})),m=a[e]=l?s(h):o[e];t&amp;&amp;(a[t]=m),n(n.P+n.F*l,"String",a)},h=u.trim=function(e,s){return e=String(a(e)),1&amp;s&amp;&amp;(e=e.replace(m,"")),2&amp;s&amp;&amp;(e=e.replace(c,"")),e};e.exports=u},c5f6:function(e,s,t){"use strict";var n=t("7726"),a=t("69a8"),r=t("2d95"),o=t("5dbc"),l=t("6a99"),i=t("79e5"),m=t("9093").f,c=t("11e9").f,u=t("86cc").f,h=t("aa77").trim,_="Number",g=n[_],b=g,d=g.prototype,p=r(t("2aeb")(d))==_,y="trim"in String.prototype,f=function(e){var s=l(e,!1);if("string"==typeof s&amp;&amp;s.length&gt;2){s=y?s.trim():h(s,3);var t,n,a,r=s.charCodeAt(0);if(43===r||45===r){if(t=s.charCodeAt(2),88===t||120===t)return NaN}else if(48===r){switch(s.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+s}for(var o,i=s.slice(2),m=0,c=i.length;m&lt;c;m++)if(o=i.charCodeAt(m),o&lt;48||o&gt;a)return NaN;return parseInt(i,n)}}return+s};if(!g(" 0o1")||!g("0b1")||g("+0x1")){g=function(e){var s=arguments.length&lt;1?0:e,t=this;return t instanceof g&amp;&amp;(p?i((function(){d.valueOf.call(t)})):r(t)!=_)?o(new b(f(s)),t,g):f(s)};for(var C,T=t("9e1e")?m(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;T.length&gt;w;w++)a(b,C=T[w])&amp;&amp;!a(g,C)&amp;&amp;u(g,C,c(b,C));g.prototype=d,d.constructor=g,t("2aba")(n,_,g)}},cdc7:function(e,s,t){"use strict";var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"mb-1 d-flex datepicker-container"},[t("div",{staticClass:"mb-1"},[t("b-input-group",{attrs:{prepend:e.singleDatePicker?e.$t("ui.date"):e.$t("ui.from"),size:"sm"}},[t("datepicker",{key:"datefrom",staticClass:"form-control datetimepicker",attrs:{format:e.format,disabledDates:e.singleDatePicker?e.allowed14DaysRange:e.disabledDates.start},on:{input:e.handleInput},model:{value:e.dateRange.startDate,callback:function(s){e.$set(e.dateRange,"startDate",s)},expression:"dateRange.startDate"}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.singleDatePicker,expression:"!singleDatePicker"}],staticClass:"mb-1"},[t("b-input-group",{attrs:{prepend:e.$t("ui.to"),size:"sm"}},[t("datepicker",{key:"dateto",staticClass:"form-control datetimepicker",attrs:{format:e.format,disabledDates:e.disabledDates.end},on:{input:e.handleInput},model:{value:e.dateRange.endDate,callback:function(s){e.$set(e.dateRange,"endDate",s)},expression:"dateRange.endDate"}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.singleDatePicker,expression:"!singleDatePicker"}],staticClass:"mb-1"},[t("b-input-group",{attrs:{size:"sm"},scopedSlots:e._u([{key:"prepend",fn:function(){return[t("b-input-group-text",[t("i",{staticClass:"fas fa-cogs"})])]},proxy:!0}])},[t("b-form-select",{ref:"daterange",attrs:{options:e.options,size:"sm"},on:{change:e.setDateRange},model:{value:e.$store.state.layout.daterange,callback:function(s){e.$set(e.$store.state.layout,"daterange",s)},expression:"$store.state.layout.daterange"}})],1)],1)])},a=[],r={props:{singleDatePicker:{type:Boolean,default:!1}},data:function(){return{dateRange:{startDate:this.singleDatePicker?this.$moment(this.$store.getters.dateRange.endDate).format("YYYY-MM-DD"):this.$moment(this.$store.getters.dateRange.startDate).format("YYYY-MM-DD"),endDate:this.$moment(this.$store.getters.dateRange.endDate).format("YYYY-MM-DD")}}},computed:{format:function(){return"yyyy-MM-dd"},allowed14DaysRange:function(){return{to:new Date(this.$moment(this.$moment().startOf("day").subtract(14,"days").toDate()).format("YYYY-MM-DD")),from:new Date(this.$moment().format("YYYY-MM-DD"))}},disabledDates:function(){return{start:{to:new Date(this.$moment(this.$moment().startOf("month").subtract(5,"months").toDate()).format("YYYY-MM-DD")),from:new Date(this.dateRange.endDate)},end:{to:new Date(this.dateRange.startDate)}}},options:function(){return{0:this.$t("ui.today"),1:this.$t("ui.yesterday"),2:this.$t("ui.this_week"),3:this.$t("ui.last_week"),4:this.$t("ui.this_month"),5:this.$t("ui.last_month")}}},mounted:function(){},methods:{handleInput:function(){this.$store.dispatch("layout/setDateRange",this.dateRange),this.$emit("update",this.dateRange),this.$forceUpdate()},setDateRange:function(){var e=this.$store.getters.daterange;switch(e){case"0":this.$set(this.dateRange,"startDate",this.$moment().subtract(12,"hours").format("YYYY-MM-DD")),this.$set(this.dateRange,"endDate",this.$moment().subtract(12,"hours").format("YYYY-MM-DD"));break;case"1":this.$set(this.dateRange,"startDate",this.$moment().subtract(36,"hours").format("YYYY-MM-DD")),this.$set(this.dateRange,"endDate",this.$moment().subtract(36,"hours").format("YYYY-MM-DD"));break;case"2":this.$set(this.dateRange,"startDate",this.$moment().startOf("isoWeek").format("YYYY-MM-DD")),this.$set(this.dateRange,"endDate",this.$moment().endOf("isoWeek").format("YYYY-MM-DD"));break;case"3":this.$set(this.dateRange,"startDate",this.$moment().subtract(1,"isoWeek").startOf("isoWeek").format("YYYY-MM-DD")),this.$set(this.dateRange,"endDate",this.$moment().subtract(1,"isoWeek").endOf("isoWeek").format("YYYY-MM-DD"));break;case"4":this.$set(this.dateRange,"startDate",this.$moment().startOf("month").format("YYYY-MM-DD")),this.$set(this.dateRange,"endDate",this.$moment().endOf("month").format("YYYY-MM-DD"));break;case"5":this.$set(this.dateRange,"startDate",this.$moment(this.$moment().subtract(1,"month").startOf("month")).format("YYYY-MM-DD")),this.$set(this.dateRange,"endDate",this.$moment(this.$moment().subtract(1,"month").endOf("month")).format("YYYY-MM-DD"))}this.handleInput()}}},o=r,l=t("2877"),i=Object(l["a"])(o,n,a,!1,null,null,null);s["a"]=i.exports},e6bf:function(e,s,t){"use strict";var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return 1==e.isModal?t("div",[e.loading?e._e():t("i",[t("div",{class:e.icon})]),e.loading?t("i",[t("div",{staticClass:"fa fa-spinner fa-spin"})]):e._e(),t("span",{staticClass:"ml-1"},[e._v(e._s(e.text))])]):0==e.isModal?t("b-button",{attrs:{type:e.type,disabled:e.loading,size:e.size,variant:e.variant},on:{click:e.handleClick}},[e.loading?e._e():t("i",[t("div",{class:e.icon})]),e.loading?t("i",[t("div",{staticClass:"fa fa-spinner fa-spin"})]):e._e(),e.highlight?e._e():t("span",{staticClass:"ml-1"},[e._v(e._s(e.text))]),e.highlight?t("span",{staticClass:"ml-1"},[t("b",{staticClass:"mx-2"},[e._v(e._s(e.text))])]):e._e()]):e._e()},a=[],r={name:"SubmitButton",props:{icon:{type:String,default:""},type:{type:String,default:"submit"},text:{type:String,default:"OK"},size:{type:String,default:"sm"},variant:{type:String,default:"primary"},loading:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},highlight:{type:Boolean,default:!1}},methods:{handleClick:function(){this.$emit("click")}}},o=r,l=t("2877"),i=Object(l["a"])(o,n,a,!1,null,null,null);s["a"]=i.exports},f018:function(e,s,t){"use strict";t.r(s);var n=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("b-row",[t("div",{staticClass:"col-xl-12"},[t("panel",{attrs:{title:e.$t("ui.daily_winlose_match"),reportDetails:"1"}},[t("b-card",[t("b-row",{staticClass:"flex",attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"col-sm-12 col-md-6 col-lg-8 col-xl-6 mb-1"},[t("DatePicker")],1),t("pendingMatches",{staticClass:"mb-1"}),t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12 mb-1"},[t("b-alert",{staticClass:"alert-sm animated flash",attrs:{show:!e.submission.success,variant:"danger"}},[e._v(e._s(e.$t(e.submission.status)))])],1),t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12 d-flex"},[t("SubmitButton",{attrs:{loading:e.loading,icon:"fa fa-search",text:e.$t("ui.search"),type:"button"},on:{click:e.submit}}),t("div",{staticClass:"ml-auto"},[e.dailyWinloseMatchList.length&gt;0?t("jsonToExcel",{attrs:{mode:"WinloseByMatch",date:e.dateRange}}):e._e()],1)],1)],1),t("b-row",{staticClass:"mb-2"},[t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12"},[t("b-breadcrumb",{staticClass:"bg-grey-transparent-3 p-l-10"},[t("b-breadcrumb-item",{staticClass:"text-uppercase",attrs:{text:e.$t("ui.sportsbook")},on:{click:function(s){return e.redirectTo(0)}}}),e.leagueTable||e.matchTable||e.matchMemberTable?t("b-breadcrumb-item",{staticClass:"text-uppercase",attrs:{text:e.$t("ui."+e.getSportType.toLowerCase())},on:{click:function(s){return e.redirectTo(1)}}}):e._e(),e.matchTable||e.matchMemberTable?t("b-breadcrumb-item",{staticClass:"text-uppercase",attrs:{text:e.getName(e.getLeagueID.id,0)},on:{click:function(s){return e.redirectTo(2)}}}):e._e(),e.matchMemberTable?t("b-breadcrumb-item",{staticClass:"text-uppercase",attrs:{text:e.getName(e.getMatchID.id,1)+" VS "+e.getName(e.getMatchID.id,2)},on:{click:function(s){return e.redirectTo(3)}}}):e._e()],1)],1)]),e.sportTypeTable?t("sportTypeWinlose",{attrs:{list:e.dailyWinloseMatchList},on:{clicked:e.getLeagueWinlose}}):e.leagueTable?t("leagueWinlose",{attrs:{list:e.dailyWinloseMatchList,total:e.dailyWinloseGrandTotal,totalRows:e.totalRows,match:e.match,league:e.league},on:{clicked:e.getMatchWinlose,refresh:e.getLeagueWinlose}}):e.matchTable?t("matchWinlose",{attrs:{list:e.dailyWinloseMatchList,total:e.dailyWinloseGrandTotal,totalRows:e.totalRows,match:e.match,league:e.league},on:{clicked:e.getMatchMemberWinlose,refresh:e.getMatchWinlose}}):t("matchMemberWinlose",{attrs:{list:e.dailyWinloseMatchList,total:e.dailyWinloseGrandTotal,totalRows:e.totalRows},on:{refresh:e.getMatchMemberWinlose}})],1)],1)],1)])],1)},a=[],r=(t("4917"),t("ac6a"),t("db49")),o=t("e6bf"),l=t("5cd1"),i=t("72c4"),m=t("cdc7"),c=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("b-row",[t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12"},[t("b-table",{staticClass:"table-sm table-bordered",attrs:{id:"tblList",striped:"","show-empty":"","empty-text":e.$t("message.no_records"),"no-local-sorting":!0,responsive:"","sort-by":e.sortBy,"sort-desc":e.sortDesc,items:e.list,fields:e.fields,"per-page":e.perPage,filter:e.filter},on:{"update:sortBy":function(s){e.sortBy=s},"update:sort-by":function(s){e.sortBy=s},"update:sortDesc":function(s){e.sortDesc=s},"update:sort-desc":function(s){e.sortDesc=s}},scopedSlots:e._u([{key:"cell(index)",fn:function(s){return[t("span",[e._v(e._s(s.index+1))])]}},{key:"cell(category)",fn:function(s){return[s.item.category?[["PARLAY","PARLAYMMO"].includes(s.item.category)?[["PARLAY"].includes(s.item.category)?t("span",{staticClass:"text-uppercase"},[t("b",[e._v(e._s(e.$t("ui.mix_parlay")))])]):t("span",{staticClass:"text-uppercase"},[t("b",[e._v(e._s(e.$t("ui.mmo_parlay")))])])]:[t("b-link",{staticClass:"text-uppercase",on:{click:function(t){return e.getLeagueWinlose(s.item)}}},[t("b",[e._v(e._s(e.$t("ui."+s.item.category.toLowerCase())))])])]]:e._e()]}},{key:"cell(bet_count)",fn:function(s){return[t("span",[t("b",[e._v(e._s(s.item.bet_count))])])]}},{key:"cell(turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.turnover))+" ")])])]}},{key:"cell(valid_turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.valid_turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.valid_turnover))+" ")])])]}},{key:"cell(gross_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.gross_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.gross_comm))+" ")])])]}},{key:"thead-top",fn:function(s){return[t("tr",[t("th",{staticClass:"bg-grey-lighter",attrs:{colspan:"6"}}),e._l(e.downlineLevel,(function(s){return[t("th",{staticClass:"text-center",class:"bg-grey-transparent-"+s,attrs:{colspan:"3"}},[e._v(e._s(e.$helpers.getUplineName(s)))])]})),t("th",{staticClass:"text-center bg-grey-transparent-7",attrs:{colspan:"3"}},[e._v(e._s(e.$t("ui.company")))])],2)]}},{key:"cell(member_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose))+" ")])])]}},{key:"cell(member_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_comm))+" ")])])]}},{key:"cell(member_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose_comm))+" ")])])]}},{key:"cell(agent_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose))+" ")])])]}},{key:"cell(agent_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_comm))+" ")])])]}},{key:"cell(agent_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose_comm))+" ")])])]}},{key:"cell(master_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose))+" ")])])]}},{key:"cell(master_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_comm))+" ")])])]}},{key:"cell(master_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose_comm))+" ")])])]}},{key:"cell(senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose))+" ")])])]}},{key:"cell(senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_comm))+" ")])])]}},{key:"cell(senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose_comm))+" ")])])]}},{key:"cell(s_senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose))+" ")])])]}},{key:"cell(s_senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_comm))+" ")])])]}},{key:"cell(s_senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose_comm))+" ")])])]}},{key:"cell(shareholder_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose))+" ")])])]}},{key:"cell(shareholder_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_comm))+" ")])])]}},{key:"cell(shareholder_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose_comm))+" ")])])]}},{key:"cell(company_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose))+" ")])])]}},{key:"cell(company_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_comm))+" ")])])]}},{key:"cell(company_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose_comm))+" ")])])]}},e.list.length&gt;0?{key:"bottom-row",fn:function(s){return[t("td",{staticClass:"text-right",attrs:{colspan:"2"}},[t("span",[t("b",[e._v(e._s(e.$t("ui.grand_total"))+" ")])])]),t("td",{staticClass:"text-center"},[t("span",[t("b",[e._v(e._s(e.grandTotalBetCount)+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalValidTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalGrossCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinloseCommission))+" ")])])])]}}:null],null,!0)})],1)])},u=[],h={props:{list:{type:Array,default:function(){return[]}}},data:function(){return{downlineLevel:this.$store.getters.accountType,showTotal:!1,filter:null,sortBy:"category",sortDesc:!0,currentPage:1,totalRows:0}},computed:{fields:function(){return[{key:"index",label:"#",class:"align-middle text-center",thClass:"bg-grey-lighter",thStyle:{width:"3%"}},{key:"category",label:this.$t("ui.category"),class:"align-middle",thClass:"bg-grey-lighter",thStyle:{width:"20%"}},{key:"bet_count",label:this.$t("ui.bet_count"),class:"align-middle text-center",thClass:"bg-grey-lighter",thStyle:{width:"6%"}},{key:"turnover",label:this.$t("ui.turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"valid_turnover",label:this.$t("ui.valid_turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"gross_comm",label:this.$t("ui.gross_commission"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"member_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"master_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(3),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(4),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"s_senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(5),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"shareholder_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(6),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"company_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}}]},perPage:function(){return this.$store.getters.pageSize},direction:function(){return this.sortDesc?"desc":"asc"},grandTotalBetCount:function(){return this.sumGrandTotal("bet_count")},grandTotalTurnover:function(){return this.sumGrandTotal("turnover")},grandTotalValidTurnover:function(){return this.sumGrandTotal("valid_turnover")},grandTotalGrossCommission:function(){return this.sumGrandTotal("gross_comm")},grandTotalMemberWinlose:function(){return this.sumGrandTotal("member_winlose")},grandTotalMemberCommission:function(){return this.sumGrandTotal("member_comm")},grandTotalMemberWinloseCommission:function(){return this.sumGrandTotal("member_winlose_comm")},grandTotalAgentWinlose:function(){return this.sumGrandTotal("agent_winlose")},grandTotalAgentCommission:function(){return this.sumGrandTotal("agent_comm")},grandTotalAgentWinloseCommission:function(){return this.sumGrandTotal("agent_winlose_comm")},grandTotalMasterWinlose:function(){return this.sumGrandTotal("master_winlose")},grandTotalMasterCommission:function(){return this.sumGrandTotal("master_comm")},grandTotalMasterWinloseCommission:function(){return this.sumGrandTotal("master_winlose_comm")},grandTotalSeniorWinlose:function(){return this.sumGrandTotal("senior_winlose")},grandTotalSeniorCommission:function(){return this.sumGrandTotal("senior_comm")},grandTotalSeniorWinloseCommission:function(){return this.sumGrandTotal("senior_winlose_comm")},grandTotalSuperSeniorWinlose:function(){return this.sumGrandTotal("s_senior_winlose")},grandTotalSuperSeniorCommission:function(){return this.sumGrandTotal("s_senior_comm")},grandTotalSuperSeniorWinloseCommission:function(){return this.sumGrandTotal("s_senior_winlose_comm")},grandTotalShareholderWinlose:function(){return this.sumGrandTotal("shareholder_winlose")},grandTotalShareholderCommission:function(){return this.sumGrandTotal("shareholder_comm")},grandTotalShareholderWinloseCommission:function(){return this.sumGrandTotal("shareholder_winlose_comm")},grandTotalCompanyWinlose:function(){return this.sumGrandTotal("company_winlose")},grandTotalCompanyCommission:function(){return this.sumGrandTotal("company_comm")},grandTotalCompanyWinloseCommission:function(){return this.sumGrandTotal("company_winlose_comm")}},methods:{show:function(e){return this.downlineLevel&gt;=e?"":"d-none"},sumGrandTotal:function(e){var s=0;return this.list.forEach((function(t){s+=t[e]})),s},changedPageSize:function(e){this.$store.dispatch("layout/setPageSize",e),this.currentPage=1,this.submit()},getLeagueWinlose:function(e){this.$store.dispatch("layout/setSportType",e.category),this.$emit("clicked",e)}}},_=h,g=t("2877"),b=Object(g["a"])(_,c,u,!1,null,null,null),d=b.exports,p=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("b-row",[t("div",{staticClass:"col-sm-12 col-md-8 col-lg-9 col-xl-10 mb-1"},[t("b-pagination",{attrs:{size:"sm","total-rows":e.totalRows,"per-page":e.perPage},on:{input:e.changedPage},model:{value:e.currentPage,callback:function(s){e.currentPage=s},expression:"currentPage"}})],1),t("div",{staticClass:"col-sm-12 col-md-4 col-lg-3 col-xl-2 mb-1"},[t("b-input-group",{attrs:{prepend:e.$t("ui.page_size"),size:"sm"}},[t("b-form-select",{attrs:{options:e.$store.getters.pageSizeOptions,value:e.perPage},on:{input:e.changedPageSize}})],1)],1),t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12"},[t("b-table",{staticClass:"table-sm table-bordered",attrs:{id:"tblList",striped:"","show-empty":"","empty-text":e.$t("message.no_records"),"no-local-sorting":!0,responsive:"","sort-by":e.sortBy,"sort-desc":e.sortDesc,items:e.list,fields:e.fields,"per-page":e.perPage,filter:e.filter},on:{"update:sortBy":function(s){e.sortBy=s},"update:sort-by":function(s){e.sortBy=s},"update:sortDesc":function(s){e.sortDesc=s},"update:sort-desc":function(s){e.sortDesc=s}},scopedSlots:e._u([{key:"cell(index)",fn:function(s){return[t("span",[e._v(e._s(s.index+1))])]}},{key:"cell(league_name)",fn:function(s){return[t("b-link",{staticClass:"text-uppercase",on:{click:function(t){return e.getMatchWinlose(s.item)}}},[t("b",[e._v(e._s(e.getName(s.item.league_id,0)))])])]}},{key:"cell(bet_count)",fn:function(s){return[t("span",[t("b",[e._v(e._s(s.item.bet_count))])])]}},{key:"cell(turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.turnover))+" ")])])]}},{key:"cell(valid_turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.valid_turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.valid_turnover))+" ")])])]}},{key:"cell(gross_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.gross_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.gross_comm))+" ")])])]}},{key:"thead-top",fn:function(s){return[t("tr",[t("th",{staticClass:"bg-grey-lighter",attrs:{colspan:"6"}}),e._l(e.downlineLevel,(function(s){return[t("th",{staticClass:"text-center",class:"bg-grey-transparent-"+s,attrs:{colspan:"3"}},[e._v(e._s(e.$helpers.getUplineName(s)))])]})),t("th",{staticClass:"text-center bg-grey-transparent-7",attrs:{colspan:"3"}},[e._v(e._s(e.$t("ui.company")))])],2)]}},{key:"cell(member_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose))+" ")])])]}},{key:"cell(member_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_comm))+" ")])])]}},{key:"cell(member_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose_comm))+" ")])])]}},{key:"cell(agent_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose))+" ")])])]}},{key:"cell(agent_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_comm))+" ")])])]}},{key:"cell(agent_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose_comm))+" ")])])]}},{key:"cell(master_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose))+" ")])])]}},{key:"cell(master_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_comm))+" ")])])]}},{key:"cell(master_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose_comm))+" ")])])]}},{key:"cell(senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose))+" ")])])]}},{key:"cell(senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_comm))+" ")])])]}},{key:"cell(senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose_comm))+" ")])])]}},{key:"cell(s_senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose))+" ")])])]}},{key:"cell(s_senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_comm))+" ")])])]}},{key:"cell(s_senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose_comm))+" ")])])]}},{key:"cell(shareholder_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose))+" ")])])]}},{key:"cell(shareholder_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_comm))+" ")])])]}},{key:"cell(shareholder_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose_comm))+" ")])])]}},{key:"cell(company_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose))+" ")])])]}},{key:"cell(company_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_comm))+" ")])])]}},{key:"cell(company_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose_comm))+" ")])])]}},e.list.length&gt;0?{key:"bottom-row",fn:function(s){return[t("td",{staticClass:"text-right",attrs:{colspan:"2"}},[t("span",[t("b",[e._v(e._s(e.$t("ui.sub_total"))+" ")])]),t("br"),t("span",[t("b",[e._v(e._s(e.$t("ui.grand_total"))+" ")])])]),t("td",{staticClass:"text-center"},[t("span",[t("b",[e._v(e._s(e.subTotalBetCount)+" ")])]),t("br"),t("span",[t("b",[e._v(e._s(e.grandTotalBetCount)+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalTurnover))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalValidTurnover))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalValidTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalGrossCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalGrossCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberWinlose))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberWinloseCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyWinlose))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyWinloseCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinloseCommission))+" ")])])])]}}:null],null,!0)})],1)])},y=[],f={props:{list:{type:Array,default:function(){return[]}},match:{type:Array,default:[]},league:{type:Array,default:[]},total:{type:Array,default:function(){return[]}},totalRows:0},data:function(){return{downlineLevel:this.$store.getters.accountType,filter:null,sortBy:"league_id",sortDesc:!1,currentPage:1}},computed:{fields:function(){return[{key:"index",label:"#",class:"align-middle text-center",thClass:"bg-grey-lighter",thStyle:{width:"3%"}},{key:"league_name",label:this.$t("ui.league_name"),thClass:"align-middle bg-grey-lighter",thStyle:{width:"10%"}},{key:"bet_count",label:this.$t("ui.bet_count"),class:"align-middle text-center",thClass:"bg-grey-lighter",thStyle:{width:"6%"}},{key:"turnover",label:this.$t("ui.turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"valid_turnover",label:this.$t("ui.valid_turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"gross_comm",label:this.$t("ui.gross_commission"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"member_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"master_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(3),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(4),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"s_senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(5),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"shareholder_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(6),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"company_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}}]},perPage:function(){return this.$store.getters.pageSize},pageDetail:function(){return this.$store.getters.getPageDetail},direction:function(){return this.sortDesc?"DESC":"ASC"},subTotalBetCount:function(){return this.sumSubTotal("bet_count")},subTotalTurnover:function(){return this.sumSubTotal("turnover")},subTotalValidTurnover:function(){return this.sumSubTotal("valid_turnover")},subTotalGrossCommission:function(){return this.sumSubTotal("gross_comm")},subTotalMemberWinlose:function(){return this.sumSubTotal("member_winlose")},subTotalMemberCommission:function(){return this.sumSubTotal("member_comm")},subTotalMemberWinloseCommission:function(){return this.sumSubTotal("member_winlose_comm")},subTotalAgentWinlose:function(){return this.sumSubTotal("agent_winlose")},subTotalAgentCommission:function(){return this.sumSubTotal("agent_comm")},subTotalAgentWinloseCommission:function(){return this.sumSubTotal("agent_winlose_comm")},subTotalMasterWinlose:function(){return this.sumSubTotal("master_winlose")},subTotalMasterCommission:function(){return this.sumSubTotal("master_comm")},subTotalMasterWinloseCommission:function(){return this.sumSubTotal("master_winlose_comm")},subTotalSeniorWinlose:function(){return this.sumSubTotal("senior_winlose")},subTotalSeniorCommission:function(){return this.sumSubTotal("senior_comm")},subTotalSeniorWinloseCommission:function(){return this.sumSubTotal("senior_winlose_comm")},subTotalSuperSeniorWinlose:function(){return this.sumSubTotal("s_senior_winlose")},subTotalSuperSeniorCommission:function(){return this.sumSubTotal("s_senior_comm")},subTotalSuperSeniorWinloseCommission:function(){return this.sumSubTotal("s_senior_winlose_comm")},subTotalShareholderWinlose:function(){return this.sumSubTotal("shareholder_winlose")},subTotalShareholderCommission:function(){return this.sumSubTotal("shareholder_comm")},subTotalShareholderWinloseCommission:function(){return this.sumSubTotal("shareholder_winlose_comm")},subTotalCompanyWinlose:function(){return this.sumSubTotal("company_winlose")},subTotalCompanyCommission:function(){return this.sumSubTotal("company_comm")},subTotalCompanyWinloseCommission:function(){return this.sumSubTotal("company_winlose_comm")},grandTotalBetCount:function(){return this.sumGrandTotal("bet_count")},grandTotalTurnover:function(){return this.sumGrandTotal("turnover")},grandTotalValidTurnover:function(){return this.sumGrandTotal("valid_turnover")},grandTotalGrossCommission:function(){return this.sumGrandTotal("gross_comm")},grandTotalMemberWinlose:function(){return this.sumGrandTotal("member_winlose")},grandTotalMemberCommission:function(){return this.sumGrandTotal("member_comm")},grandTotalMemberWinloseCommission:function(){return this.sumGrandTotal("member_winlose_comm")},grandTotalAgentWinlose:function(){return this.sumGrandTotal("agent_winlose")},grandTotalAgentCommission:function(){return this.sumGrandTotal("agent_comm")},grandTotalAgentWinloseCommission:function(){return this.sumGrandTotal("agent_winlose_comm")},grandTotalMasterWinlose:function(){return this.sumGrandTotal("master_winlose")},grandTotalMasterCommission:function(){return this.sumGrandTotal("master_comm")},grandTotalMasterWinloseCommission:function(){return this.sumGrandTotal("master_winlose_comm")},grandTotalSeniorWinlose:function(){return this.sumGrandTotal("senior_winlose")},grandTotalSeniorCommission:function(){return this.sumGrandTotal("senior_comm")},grandTotalSeniorWinloseCommission:function(){return this.sumGrandTotal("senior_winlose_comm")},grandTotalSuperSeniorWinlose:function(){return this.sumGrandTotal("s_senior_winlose")},grandTotalSuperSeniorCommission:function(){return this.sumGrandTotal("s_senior_comm")},grandTotalSuperSeniorWinloseCommission:function(){return this.sumGrandTotal("s_senior_winlose_comm")},grandTotalShareholderWinlose:function(){return this.sumGrandTotal("shareholder_winlose")},grandTotalShareholderCommission:function(){return this.sumGrandTotal("shareholder_comm")},grandTotalShareholderWinloseCommission:function(){return this.sumGrandTotal("shareholder_winlose_comm")},grandTotalCompanyWinlose:function(){return this.sumGrandTotal("company_winlose")},grandTotalCompanyCommission:function(){return this.sumGrandTotal("company_comm")},grandTotalCompanyWinloseCommission:function(){return this.sumGrandTotal("company_winlose_comm")},language:function(){return"zh"==this.$store.getters.language?"cn":this.$store.getters.language}},methods:{show:function(e){return this.downlineLevel&gt;=e?"":"d-none"},getName:function(e,s){var t=this,n="";return 0==s?this.league.forEach((function(s){s.league_id==e&amp;&amp;(n=s["name_"+t.language]?s["name_"+t.language]:s["name_en"])})):this.match.forEach((function(a){a.match_id==e&amp;&amp;(n=1==s?a["home_name_"+t.language]?a["home_name_"+t.language]:a["home_name_en"]:a["away_name_"+t.language]?a["away_name_"+t.language]:a["away_name_en"])})),n},sumSubTotal:function(e){var s=0;return this.list.length&gt;0&amp;&amp;this.list.forEach((function(t){s+=t[e]})),s},sumGrandTotal:function(e){var s=0;return this.total.length&gt;0&amp;&amp;(s=this.total[0][e]),s},changedPage:function(e){this.currentPage=e;var s={currentPage:this.currentPage,perPage:this.perPage,sortBy:"league_name",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s),this.$emit("refresh")},changedPageSize:function(e){this.$store.dispatch("layout/setPageSize",e),this.currentPage=1;var s={currentPage:this.currentPage,perPage:this.perPage,sortBy:"league_name",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s),this.$emit("refresh")},getMatchWinlose:function(e){var s={currentPage:1,perPage:this.perPage,sortBy:"",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s);var t=e.league_id,n=this.getName(t,0);this.$store.dispatch("layout/setLeagueID",{league_id:t,league_name:n}),this.$emit("clicked",e)}}},C=f,T=Object(g["a"])(C,p,y,!1,null,null,null),w=T.exports,v=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("b-row",[t("div",{staticClass:"col-sm-12 col-md-8 col-lg-9 col-xl-10 mb-1"},[t("b-pagination",{attrs:{size:"sm","total-rows":e.totalRows,"per-page":e.perPage},on:{input:e.changedPage},model:{value:e.currentPage,callback:function(s){e.currentPage=s},expression:"currentPage"}})],1),t("div",{staticClass:"col-sm-12 col-md-4 col-lg-3 col-xl-2 mb-1"},[t("b-input-group",{attrs:{prepend:e.$t("ui.page_size"),size:"sm"}},[t("b-form-select",{attrs:{options:e.$store.getters.pageSizeOptions,value:e.perPage},on:{input:e.changedPageSize}})],1)],1),t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12"},[t("b-table",{staticClass:"table-sm table-bordered",attrs:{id:"tblList",striped:"","show-empty":"","empty-text":e.$t("message.no_records"),"no-local-sorting":!0,responsive:"","sort-by":e.sortBy,"sort-desc":e.sortDesc,items:e.list,fields:e.fields,"per-page":e.perPage,filter:e.filter},on:{"update:sortBy":function(s){e.sortBy=s},"update:sort-by":function(s){e.sortBy=s},"update:sortDesc":function(s){e.sortDesc=s},"update:sort-desc":function(s){e.sortDesc=s}},scopedSlots:e._u([{key:"cell(index)",fn:function(s){return[t("span",[e._v(e._s(s.index+1))])]}},{key:"cell(home_team_name)",fn:function(s){return[t("b-link",{staticClass:"text-uppercase",on:{click:function(t){return e.getMatchMemberWinlose(s.item)}}},[t("b",[e._v(e._s(e.getName(s.item.match_id,1)))])])]}},{key:"cell(away_team_name)",fn:function(s){return[t("b-link",{staticClass:"text-uppercase",on:{click:function(t){return e.getMatchMemberWinlose(s.item)}}},[t("b",[e._v(e._s(e.getName(s.item.match_id,2)))])])]}},{key:"cell(bet_count)",fn:function(s){return[t("span",[t("b",[e._v(e._s(s.item.bet_count))])])]}},{key:"cell(turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.turnover))+" ")])])]}},{key:"cell(valid_turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.valid_turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.valid_turnover))+" ")])])]}},{key:"cell(gross_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.gross_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.gross_comm))+" ")])])]}},{key:"thead-top",fn:function(s){return[t("tr",[t("th",{staticClass:"bg-grey-lighter",attrs:{colspan:"7"}}),e._l(e.downlineLevel,(function(s){return[t("th",{staticClass:"text-center",class:"bg-grey-transparent-"+s,attrs:{colspan:"3"}},[e._v(e._s(e.$helpers.getUplineName(s)))])]})),t("th",{staticClass:"text-center bg-grey-transparent-7",attrs:{colspan:"3"}},[e._v(e._s(e.$t("ui.company")))])],2)]}},{key:"cell(member_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose))+" ")])])]}},{key:"cell(member_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_comm))+" ")])])]}},{key:"cell(member_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose_comm))+" ")])])]}},{key:"cell(agent_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose))+" ")])])]}},{key:"cell(agent_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_comm))+" ")])])]}},{key:"cell(agent_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose_comm))+" ")])])]}},{key:"cell(master_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose))+" ")])])]}},{key:"cell(master_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_comm))+" ")])])]}},{key:"cell(master_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose_comm))+" ")])])]}},{key:"cell(senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose))+" ")])])]}},{key:"cell(senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_comm))+" ")])])]}},{key:"cell(senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose_comm))+" ")])])]}},{key:"cell(s_senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose))+" ")])])]}},{key:"cell(s_senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_comm))+" ")])])]}},{key:"cell(s_senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose_comm))+" ")])])]}},{key:"cell(shareholder_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose))+" ")])])]}},{key:"cell(shareholder_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_comm))+" ")])])]}},{key:"cell(shareholder_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose_comm))+" ")])])]}},{key:"cell(company_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose))+" ")])])]}},{key:"cell(company_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_comm))+" ")])])]}},{key:"cell(company_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose_comm))+" ")])])]}},e.list.length&gt;0?{key:"bottom-row",fn:function(s){return[t("td",{staticClass:"text-right",attrs:{colspan:"3"}},[t("span",[t("b",[e._v(e._s(e.$t("ui.sub_total"))+" ")])]),t("br"),t("span",[t("b",[e._v(e._s(e.$t("ui.grand_total"))+" ")])])]),t("td",{staticClass:"text-center"},[t("span",[t("b",[e._v(e._s(e.subTotalBetCount)+" ")])]),t("br"),t("span",[t("b",[e._v(e._s(e.grandTotalBetCount)+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalTurnover))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalValidTurnover))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalValidTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalGrossCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalGrossCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberWinlose))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberWinloseCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyWinlose))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyWinloseCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinloseCommission))+" ")])])])]}}:null],null,!0)})],1)])},$=[],S={props:{list:{type:Array,default:function(){return[]}},match:{type:Array,default:[]},league:{type:Array,default:[]},total:{type:Array,default:function(){return[]}},totalRows:0},data:function(){return{downlineLevel:this.$store.getters.accountType,filter:null,sortBy:"match_id",sortDesc:!1,currentPage:1}},computed:{fields:function(){return[{key:"index",label:"#",class:"align-middle text-center",thClass:"align-middle bg-grey-lighter",thStyle:{width:"3%"}},{key:"home_team_name",label:this.$t("ui.home_team_name"),thClass:"align-middle bg-grey-lighter",thStyle:{width:"10%"}},{key:"away_team_name",label:this.$t("ui.away_team_name"),thClass:"align-middle bg-grey-lighter",thStyle:{width:"10%"}},{key:"bet_count",label:this.$t("ui.bet_count"),class:"align-middle text-center",thClass:"bg-grey-lighter",thStyle:{width:"6%"}},{key:"turnover",label:this.$t("ui.turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"valid_turnover",label:this.$t("ui.valid_turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"gross_comm",label:this.$t("ui.gross_commission"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"member_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"master_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(3),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(4),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"s_senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(5),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"shareholder_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(6),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"company_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}}]},perPage:function(){return this.$store.getters.pageSize},pageDetail:function(){return this.$store.getters.getPageDetail},direction:function(){return this.sortDesc?"DESC":"ASC"},subTotalBetCount:function(){return this.sumSubTotal("bet_count")},subTotalTurnover:function(){return this.sumSubTotal("turnover")},subTotalValidTurnover:function(){return this.sumSubTotal("valid_turnover")},subTotalGrossCommission:function(){return this.sumSubTotal("gross_comm")},subTotalMemberWinlose:function(){return this.sumSubTotal("member_winlose")},subTotalMemberCommission:function(){return this.sumSubTotal("member_comm")},subTotalMemberWinloseCommission:function(){return this.sumSubTotal("member_winlose_comm")},subTotalAgentWinlose:function(){return this.sumSubTotal("agent_winlose")},subTotalAgentCommission:function(){return this.sumSubTotal("agent_comm")},subTotalAgentWinloseCommission:function(){return this.sumSubTotal("agent_winlose_comm")},subTotalMasterWinlose:function(){return this.sumSubTotal("master_winlose")},subTotalMasterCommission:function(){return this.sumSubTotal("master_comm")},subTotalMasterWinloseCommission:function(){return this.sumSubTotal("master_winlose_comm")},subTotalSeniorWinlose:function(){return this.sumSubTotal("senior_winlose")},subTotalSeniorCommission:function(){return this.sumSubTotal("senior_comm")},subTotalSeniorWinloseCommission:function(){return this.sumSubTotal("senior_winlose_comm")},subTotalSuperSeniorWinlose:function(){return this.sumSubTotal("s_senior_winlose")},subTotalSuperSeniorCommission:function(){return this.sumSubTotal("s_senior_comm")},subTotalSuperSeniorWinloseCommission:function(){return this.sumSubTotal("s_senior_winlose_comm")},subTotalShareholderWinlose:function(){return this.sumSubTotal("shareholder_winlose")},subTotalShareholderCommission:function(){return this.sumSubTotal("shareholder_comm")},subTotalShareholderWinloseCommission:function(){return this.sumSubTotal("shareholder_winlose_comm")},subTotalCompanyWinlose:function(){return this.sumSubTotal("company_winlose")},subTotalCompanyCommission:function(){return this.sumSubTotal("company_comm")},subTotalCompanyWinloseCommission:function(){return this.sumSubTotal("company_winlose_comm")},grandTotalBetCount:function(){return this.sumGrandTotal("bet_count")},grandTotalTurnover:function(){return this.sumGrandTotal("turnover")},grandTotalValidTurnover:function(){return this.sumGrandTotal("valid_turnover")},grandTotalGrossCommission:function(){return this.sumGrandTotal("gross_comm")},grandTotalMemberWinlose:function(){return this.sumGrandTotal("member_winlose")},grandTotalMemberCommission:function(){return this.sumGrandTotal("member_comm")},grandTotalMemberWinloseCommission:function(){return this.sumGrandTotal("member_winlose_comm")},grandTotalAgentWinlose:function(){return this.sumGrandTotal("agent_winlose")},grandTotalAgentCommission:function(){return this.sumGrandTotal("agent_comm")},grandTotalAgentWinloseCommission:function(){return this.sumGrandTotal("agent_winlose_comm")},grandTotalMasterWinlose:function(){return this.sumGrandTotal("master_winlose")},grandTotalMasterCommission:function(){return this.sumGrandTotal("master_comm")},grandTotalMasterWinloseCommission:function(){return this.sumGrandTotal("master_winlose_comm")},grandTotalSeniorWinlose:function(){return this.sumGrandTotal("senior_winlose")},grandTotalSeniorCommission:function(){return this.sumGrandTotal("senior_comm")},grandTotalSeniorWinloseCommission:function(){return this.sumGrandTotal("senior_winlose_comm")},grandTotalSuperSeniorWinlose:function(){return this.sumGrandTotal("s_senior_winlose")},grandTotalSuperSeniorCommission:function(){return this.sumGrandTotal("s_senior_comm")},grandTotalSuperSeniorWinloseCommission:function(){return this.sumGrandTotal("s_senior_winlose_comm")},grandTotalShareholderWinlose:function(){return this.sumGrandTotal("shareholder_winlose")},grandTotalShareholderCommission:function(){return this.sumGrandTotal("shareholder_comm")},grandTotalShareholderWinloseCommission:function(){return this.sumGrandTotal("shareholder_winlose_comm")},grandTotalCompanyWinlose:function(){return this.sumGrandTotal("company_winlose")},grandTotalCompanyCommission:function(){return this.sumGrandTotal("company_comm")},grandTotalCompanyWinloseCommission:function(){return this.sumGrandTotal("company_winlose_comm")},language:function(){return"zh"==this.$store.getters.language?"cn":this.$store.getters.language}},methods:{show:function(e){return this.downlineLevel&gt;=e?"":"d-none"},getName:function(e,s){var t=this,n="";return 0==s?this.league.forEach((function(s){s.league_id==e&amp;&amp;(n=s["name_"+t.language]?s["name_"+t.language]:s["name_en"])})):this.match.forEach((function(a){a.match_id==e&amp;&amp;(n=1==s?a["home_name_"+t.language]?a["home_name_"+t.language]:a["home_name_en"]:a["away_name_"+t.language]?a["away_name_"+t.language]:a["away_name_en"])})),n},sumSubTotal:function(e){var s=0;return this.list.length&gt;0&amp;&amp;this.list.forEach((function(t){s+=t[e]})),s},sumGrandTotal:function(e){var s=0;return this.total.length&gt;0&amp;&amp;(s=this.total[0][e]),s},changedPage:function(e){this.currentPage=e;var s={currentPage:this.currentPage,perPage:this.perPage,sortBy:"home_team_name",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s),this.$emit("refresh")},changedPageSize:function(e){this.$store.dispatch("layout/setPageSize",e),this.currentPage=1;var s={currentPage:this.currentPage,perPage:this.perPage,sortBy:"home_team_name",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s),this.$emit("refresh")},getMatchMemberWinlose:function(e){var s={currentPage:1,perPage:this.perPage,sortBy:"",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s);var t=e.match_id,n=this.getName(e.match_id,1),a=this.getName(e.match_id,2);this.$store.dispatch("layout/setMatchID",{match_id:t,home_team_name:n,away_team_name:a}),this.$emit("clicked")}}},W=S,x=Object(g["a"])(W,v,$,!1,null,null,null),k=x.exports,N=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("b-row",[t("div",{staticClass:"col-sm-12 col-md-8 col-lg-9 col-xl-10 mb-1"},[t("b-pagination",{attrs:{size:"sm","total-rows":e.totalRows,"per-page":e.perPage},on:{input:e.changedPage},model:{value:e.currentPage,callback:function(s){e.currentPage=s},expression:"currentPage"}})],1),t("div",{staticClass:"col-sm-12 col-md-4 col-lg-3 col-xl-2 mb-1"},[t("b-input-group",{attrs:{prepend:e.$t("ui.page_size"),size:"sm"}},[t("b-form-select",{attrs:{options:e.$store.getters.pageSizeOptions,value:e.perPage},on:{input:e.changedPageSize}})],1)],1),t("div",{staticClass:"col-sm-12 col-md-12 col-lg-12 col-xl-12"},[t("b-table",{staticClass:"table-sm table-bordered",attrs:{id:"tblList",striped:"","show-empty":"","empty-text":e.$t("message.no_records"),"no-local-sorting":!0,responsive:"","sort-by":e.sortBy,"sort-desc":e.sortDesc,items:e.list,fields:e.fields,"per-page":e.perPage,filter:e.filter},on:{"update:sortBy":function(s){e.sortBy=s},"update:sort-by":function(s){e.sortBy=s},"update:sortDesc":function(s){e.sortDesc=s},"update:sort-desc":function(s){e.sortDesc=s}},scopedSlots:e._u([{key:"cell(index)",fn:function(s){return[t("span",[e._v(e._s(s.index+1))])]}},{key:"cell(member_id)",fn:function(s){return[t("b-link",{staticClass:"text-uppercase",on:{click:function(t){return e.redirectTo(s.item,"gameResultDetail")}}},[t("b",[e._v(e._s(s.item.member_id))])])]}},{key:"cell(bet_count)",fn:function(s){return[t("span",[t("b",[e._v(e._s(s.item.bet_count))])])]}},{key:"cell(turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.turnover))+" ")])])]}},{key:"cell(valid_turnover)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.valid_turnover)},[t("b",[e._v(e._s(e._f("currency")(s.item.valid_turnover))+" ")])])]}},{key:"cell(gross_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.gross_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.gross_comm))+" ")])])]}},{key:"thead-top",fn:function(s){return[t("tr",[t("th",{staticClass:"bg-grey-lighter",attrs:{colspan:"6"}}),e._l(e.downlineLevel,(function(s){return[t("th",{staticClass:"text-center",class:"bg-grey-transparent-"+s,attrs:{colspan:"3"}},[e._v(e._s(e.$helpers.getUplineName(s)))])]})),t("th",{staticClass:"text-center bg-grey-transparent-7",attrs:{colspan:"3"}},[e._v(e._s(e.$t("ui.company")))])],2)]}},{key:"cell(member_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose))+" ")])])]}},{key:"cell(member_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_comm))+" ")])])]}},{key:"cell(member_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.member_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.member_winlose_comm))+" ")])])]}},{key:"cell(agent_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose))+" ")])])]}},{key:"cell(agent_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_comm))+" ")])])]}},{key:"cell(agent_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.agent_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.agent_winlose_comm))+" ")])])]}},{key:"cell(master_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose))+" ")])])]}},{key:"cell(master_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_comm))+" ")])])]}},{key:"cell(master_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.master_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.master_winlose_comm))+" ")])])]}},{key:"cell(senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose))+" ")])])]}},{key:"cell(senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_comm))+" ")])])]}},{key:"cell(senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.senior_winlose_comm))+" ")])])]}},{key:"cell(s_senior_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose))+" ")])])]}},{key:"cell(s_senior_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_comm))+" ")])])]}},{key:"cell(s_senior_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.s_senior_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.s_senior_winlose_comm))+" ")])])]}},{key:"cell(shareholder_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose))+" ")])])]}},{key:"cell(shareholder_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_comm))+" ")])])]}},{key:"cell(shareholder_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.shareholder_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.shareholder_winlose_comm))+" ")])])]}},{key:"cell(company_winlose)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose))+" ")])])]}},{key:"cell(company_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_comm))+" ")])])]}},{key:"cell(company_winlose_comm)",fn:function(s){return[t("span",{class:e.$helpers.getNumberClass(s.item.company_winlose_comm)},[t("b",[e._v(e._s(e._f("currency")(s.item.company_winlose_comm))+" ")])])]}},e.list.length&gt;0?{key:"bottom-row",fn:function(s){return[t("td",{staticClass:"text-right",attrs:{colspan:"2"}},[t("span",[t("b",[e._v(e._s(e.$t("ui.sub_total"))+" ")])]),t("br"),t("span",[t("b",[e._v(e._s(e.$t("ui.grand_total"))+" ")])])]),t("td",{staticClass:"text-center"},[t("span",[t("b",[e._v(e._s(e.subTotalBetCount)+" ")])]),t("br"),t("span",[t("b",[e._v(e._s(e.grandTotalBetCount)+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalTurnover))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalValidTurnover))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalValidTurnover)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalValidTurnover))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalGrossCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalGrossCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalGrossCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberWinlose))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMemberWinloseCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMemberWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMemberWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalAgentWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalAgentWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalAgentWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(3)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalMasterWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalMasterWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalMasterWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(4)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSeniorWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(5)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalSuperSeniorWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalSuperSeniorWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalSuperSeniorWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderWinlose)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinlose))+" ")])])]),t("td",{staticClass:"text-right",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2",class:e.show(6)},[t("span",{class:e.$helpers.getNumberClass(e.subTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalShareholderWinloseCommission)))])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalShareholderWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalShareholderWinloseCommission))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyWinlose))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinlose)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinlose))+" ")])])]),t("td",{staticClass:"text-right"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyCommission))+" ")])])]),t("td",{staticClass:"text-right bg-yellow-transparent-2"},[t("span",{class:e.$helpers.getNumberClass(e.subTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.subTotalCompanyWinloseCommission))+" ")])]),t("br"),t("span",{class:e.$helpers.getNumberClass(e.grandTotalCompanyWinloseCommission)},[t("b",[e._v(e._s(e._f("currency")(e.grandTotalCompanyWinloseCommission))+" ")])])])]}}:null],null,!0)})],1)])},M=[],D={props:{list:{type:Array,default:function(){return[]}},total:{type:Array,default:function(){return[]}},totalRows:0},data:function(){return{downlineLevel:this.$store.getters.accountType,filter:null,sortBy:"member_id",sortDesc:!1,currentPage:1}},computed:{fields:function(){return[{key:"index",label:"#",class:"align-middle text-center",thClass:"align-middle bg-grey-lighter",thStyle:{width:"3%"}},{key:"member_id",label:this.$t("ui.member_id"),thClass:"align-middle bg-grey-lighter",thStyle:{width:"10%"}},{key:"bet_count",label:this.$t("ui.bet_count"),class:"align-middle text-center",thClass:"bg-grey-lighter",thStyle:{width:"6%"}},{key:"turnover",label:this.$t("ui.turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"valid_turnover",label:this.$t("ui.valid_turnover"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"gross_comm",label:this.$t("ui.gross_commission"),class:"align-middle text-right",thClass:"bg-grey-lighter",thStyle:{width:"7%"}},{key:"member_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-1",thStyle:{width:"7%"}},{key:"member_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-2",thStyle:{width:"7%"}},{key:"agent_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"master_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(3),thClass:"bg-grey-transparent-3",thStyle:{width:"7%"}},{key:"master_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(3),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(4),thClass:"bg-grey-transparent-4",thStyle:{width:"7%"}},{key:"senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(4),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"s_senior_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(5),thClass:"bg-grey-transparent-5",thStyle:{width:"7%"}},{key:"s_senior_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(5),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"shareholder_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right "+this.show(6),thClass:"bg-grey-transparent-6",thStyle:{width:"7%"}},{key:"shareholder_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2 "+this.show(6),thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}},{key:"company_winlose",label:this.$t("ui.winlose_column1"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_comm",label:this.$t("ui.winlose_column2"),class:"align-middle text-right",thClass:"bg-grey-transparent-7",thStyle:{width:"7%"}},{key:"company_winlose_comm",label:this.$t("ui.total"),class:"align-middle text-right bg-yellow-transparent-2",thClass:"bg-yellow-transparent-2",thStyle:{width:"7%"}}]},perPage:function(){return this.$store.getters.pageSize},pageDetail:function(){return this.$store.getters.getPageDetail},direction:function(){return this.sortDesc?"DESC":"ASC"},subTotalBetCount:function(){return this.sumSubTotal("bet_count")},subTotalTurnover:function(){return this.sumSubTotal("turnover")},subTotalValidTurnover:function(){return this.sumSubTotal("valid_turnover")},subTotalGrossCommission:function(){return this.sumSubTotal("gross_comm")},subTotalMemberWinlose:function(){return this.sumSubTotal("member_winlose")},subTotalMemberCommission:function(){return this.sumSubTotal("member_comm")},subTotalMemberWinloseCommission:function(){return this.sumSubTotal("member_winlose_comm")},subTotalAgentWinlose:function(){return this.sumSubTotal("agent_winlose")},subTotalAgentCommission:function(){return this.sumSubTotal("agent_comm")},subTotalAgentWinloseCommission:function(){return this.sumSubTotal("agent_winlose_comm")},subTotalMasterWinlose:function(){return this.sumSubTotal("master_winlose")},subTotalMasterCommission:function(){return this.sumSubTotal("master_comm")},subTotalMasterWinloseCommission:function(){return this.sumSubTotal("master_winlose_comm")},subTotalSeniorWinlose:function(){return this.sumSubTotal("senior_winlose")},subTotalSeniorCommission:function(){return this.sumSubTotal("senior_comm")},subTotalSeniorWinloseCommission:function(){return this.sumSubTotal("senior_winlose_comm")},subTotalSuperSeniorWinlose:function(){return this.sumSubTotal("s_senior_winlose")},subTotalSuperSeniorCommission:function(){return this.sumSubTotal("s_senior_comm")},subTotalSuperSeniorWinloseCommission:function(){return this.sumSubTotal("s_senior_winlose_comm")},subTotalShareholderWinlose:function(){return this.sumSubTotal("shareholder_winlose")},subTotalShareholderCommission:function(){return this.sumSubTotal("shareholder_comm")},subTotalShareholderWinloseCommission:function(){return this.sumSubTotal("shareholder_winlose_comm")},subTotalCompanyWinlose:function(){return this.sumSubTotal("company_winlose")},subTotalCompanyCommission:function(){return this.sumSubTotal("company_comm")},subTotalCompanyWinloseCommission:function(){return this.sumSubTotal("company_winlose_comm")},grandTotalBetCount:function(){return this.sumGrandTotal("bet_count")},grandTotalTurnover:function(){return this.sumGrandTotal("turnover")},grandTotalValidTurnover:function(){return this.sumGrandTotal("valid_turnover")},grandTotalGrossCommission:function(){return this.sumGrandTotal("gross_comm")},grandTotalMemberWinlose:function(){return this.sumGrandTotal("member_winlose")},grandTotalMemberCommission:function(){return this.sumGrandTotal("member_comm")},grandTotalMemberWinloseCommission:function(){return this.sumGrandTotal("member_winlose_comm")},grandTotalAgentWinlose:function(){return this.sumGrandTotal("agent_winlose")},grandTotalAgentCommission:function(){return this.sumGrandTotal("agent_comm")},grandTotalAgentWinloseCommission:function(){return this.sumGrandTotal("agent_winlose_comm")},grandTotalMasterWinlose:function(){return this.sumGrandTotal("master_winlose")},grandTotalMasterCommission:function(){return this.sumGrandTotal("master_comm")},grandTotalMasterWinloseCommission:function(){return this.sumGrandTotal("master_winlose_comm")},grandTotalSeniorWinlose:function(){return this.sumGrandTotal("senior_winlose")},grandTotalSeniorCommission:function(){return this.sumGrandTotal("senior_comm")},grandTotalSeniorWinloseCommission:function(){return this.sumGrandTotal("senior_winlose_comm")},grandTotalSuperSeniorWinlose:function(){return this.sumGrandTotal("s_senior_winlose")},grandTotalSuperSeniorCommission:function(){return this.sumGrandTotal("s_senior_comm")},grandTotalSuperSeniorWinloseCommission:function(){return this.sumGrandTotal("s_senior_winlose_comm")},grandTotalShareholderWinlose:function(){return this.sumGrandTotal("shareholder_winlose")},grandTotalShareholderCommission:function(){return this.sumGrandTotal("shareholder_comm")},grandTotalShareholderWinloseCommission:function(){return this.sumGrandTotal("shareholder_winlose_comm")},grandTotalCompanyWinlose:function(){return this.sumGrandTotal("company_winlose")},grandTotalCompanyCommission:function(){return this.sumGrandTotal("company_comm")},grandTotalCompanyWinloseCommission:function(){return this.sumGrandTotal("company_winlose_comm")}},methods:{show:function(e){return this.downlineLevel&gt;=e?"":"d-none"},sumSubTotal:function(e){var s=0;return this.list.length&gt;0&amp;&amp;this.list.forEach((function(t){s+=t[e]})),s},sumGrandTotal:function(e){var s=0;return this.total.length&gt;0&amp;&amp;(s=this.total[0][e]),s},changedPage:function(e){this.currentPage=e;var s={currentPage:this.currentPage,perPage:this.perPage,sortBy:"member_id",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s),this.$emit("refresh")},changedPageSize:function(e){this.$store.dispatch("layout/setPageSize",e),this.currentPage=1;var s={currentPage:this.currentPage,perPage:this.perPage,sortBy:"member_id",direction:this.direction};this.$store.dispatch("layout/setPageDetail",s),this.$emit("refresh")},redirectTo:function(e,s){var t={currentPage:1,perPage:this.perPage,sortBy:"",direction:this.direction};this.$store.dispatch("layout/setPageDetail",t),this.$store.dispatch("user/setSelectedID",e.member_id),this.$router.push("/"+s)}}},G=D,P=Object(g["a"])(G,N,M,!1,null,null,null),Y=P.exports,A=t("26e5"),R={components:{SubmitButton:o["a"],DateRangePicker:l["a"],pendingMatches:i["a"],sportTypeWinlose:d,leagueWinlose:w,matchWinlose:k,matchMemberWinlose:Y,DatePicker:m["a"],jsonToExcel:A["a"]},data:function(){return{loading:!1,submission:{success:!0,status:""},downlineLevel:this.$store.getters.accountType,dailyWinloseMatchList:[],dailyWinloseGrandTotal:[],sportTypeTable:!0,leagueTable:!1,matchTable:!1,matchMemberTable:!1,match:[],league:[],totalRows:0}},validations:{},computed:{dateRange:function(){return{startDate:this.$moment(this.$store.getters.dateRange.startDate).format("YYYY-MM-DD"),endDate:this.$moment(this.$store.getters.dateRange.endDate).format("YYYY-MM-DD")}},getProduct:function(){return this.$store.getters.getPlatform},getSportType:function(){return this.$store.getters.getSportType},getLeagueID:function(){return this.$store.getters.getLeagueID},getMatchID:function(){return this.$store.getters.getMatchID},language:function(){return"zh"==this.$store.getters.language?"cn":this.$store.getters.language},perPage:function(){return this.$store.getters.pageSize},pageDetail:function(){return this.$store.getters.getPageDetail}},mounted:function(){var e={currentPage:1,perPage:this.perPage,sortBy:"",direction:"ASC"};this.$store.dispatch("layout/setPageDetail",e),this.submit()},methods:{initTable:function(){this.sportTypeTable=!0,this.leagueTable=!1,this.matchTable=!1,this.matchMemberTable=!1},submit:function(){this.initTable(),this.getSportTypeWinlose()},redirectTo:function(e){var s={currentPage:1,perPage:this.perPage,sortBy:"",direction:"ASC"};switch(this.$store.dispatch("layout/setPageDetail",s),e){case 0:this.sportTypeTable=!0,this.leagueTable=!1,this.matchTable=!1,this.matchMemberTable=!1,this.getSportTypeWinlose();break;case 1:this.sportTypeTable=!1,this.leagueTable=!0,this.matchTable=!1,this.matchMemberTable=!1,this.getLeagueWinlose();break;case 2:this.sportTypeTable=!1,this.leagueTable=!1,this.matchTable=!0,this.matchMemberTable=!1,this.getMatchWinlose();break;case 3:this.sportTypeTable=!1,this.leagueTable=!1,this.matchTable=!1,this.matchMemberTable=!0,this.getMatchMemberWinlose();break}},getSportTypeWinlose:function(){this.sportTypeTable=!0;var e=r["a"].getSportTypeWinloseDetailUrl(),s="user/getSportTypeWinlose";this.getDrillIn({url:e,api:s})},getLeagueWinlose:function(){this.sportTypeTable=!1,this.leagueTable=!0;var e=r["a"].getLeagueWinloseDetailUrl(),s="user/getLeagueWinlose",t=this.getSportType;this.getDrillIn({url:e,api:s,sport_type:t})},getMatchWinlose:function(){this.leagueTable=!1,this.matchTable=!0;var e=r["a"].getMatchWinloseDetailUrl(),s="user/getMatchWinlose",t=this.getSportType,n=this.getLeagueID.id;this.getDrillIn({url:e,api:s,sport_type:t,league_id:n})},getMatchMemberWinlose:function(){this.matchTable=!1,this.matchMemberTable=!0;var e=r["a"].getMatchMemberWinloseDetailUrl(),s="user/getMatchMemberWinlose",t=this.getSportType,n=this.getLeagueID.id,a=this.getMatchID.id;this.getDrillIn({url:e,api:s,sport_type:t,league_id:n,match_id:a})},getName:function(e,s){var t=this,n="";return 0==s?this.league.forEach((function(s){s.league_id==e&amp;&amp;(n=s["name_"+t.language]?s["name_"+t.language]:s["name_en"])})):this.match.forEach((function(a){a.match_id==e&amp;&amp;(n=1==s?a["home_name_"+t.language]?a["home_name_"+t.language]:a["home_name_en"]:a["away_name_"+t.language]?a["away_name_"+t.language]:a["away_name_en"])})),n},getDrillIn:function(e){var s=this;if(!this.$v.$invalid){var t=e.url,n=this.$store.getters.accountID,a=this.dateRange.startDate,r=this.dateRange.endDate,o=e.sport_type,l=e.league_id,i=e.match_id,m=this.pageDetail.currentPage,c=this.pageDetail.perPage,u=this.pageDetail.sortBy,h=this.pageDetail.direction;this.loading=!0,this.$store.dispatch(e.api,{url:t,search_id:n,start_date:a,end_date:r,sport_type:o,league_id:l,match_id:i,page_number:m,page_size:c,sort_key:u,sort_type:h}).then((function(t){s.loading=!1,s.submission.success=t.success,s.submission.status=t.errorTag,1==s.submission.success?t.data.length&gt;0?(s.dailyWinloseMatchList=t.data,t.grandTotal&amp;&amp;(s.dailyWinloseGrandTotal=t.grandTotal),s.totalRows=t.data.length&gt;0?s.dailyWinloseMatchList[0]["totalrows"]:0,"user/getLeagueWinlose"==e.api&amp;&amp;(s.league=t.names.league),"user/getMatchWinlose"==e.api&amp;&amp;(s.match=t.names.match,s.league=t.names.league)):(s.totalRows=0,s.dailyWinloseMatchList=[],s.dailyWinloseGrandTotal=[],s.match=[],s.league=[]):(s.loading=!1,s.submission.success=t.success,s.submission.status=t.errorTag)})).catch((function(e){s.loading=!1,s.totalRows=0,s.dailyWinloseMatchList=[],s.dailyWinloseGrandTotal=[],s.match=[],s.league=[],s.submission.success=e.success,s.submission.status=s.$t("message."+e.errorTag)}))}}}},B=R,L=Object(g["a"])(B,n,a,!1,null,null,null);s["default"]=L.exports},fdef:function(e,s){e.exports="\t\n\v\f\r Â&nbsp;áš€á&nbsp;Žâ€€â€â€‚â€ƒâ€„â€…â€†â€‡â€ˆâ€‰â€Šâ€¯âŸã€€\u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-d67047c4.08f9469b.js.map</pre></body></html>