<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-4a3971dd"],{"0f3b":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 0===t.flight.pools.length?i("v-container",{staticClass:"pt-0"},[i("message-card",[i("h2",[t._v("The pools have not been filled yet.")])])],1):i("v-container",{class:{"px-0":t.$vuetify.breakpoint.xs,"pt-0":!0},attrs:{fluid:""}},[t.round.hideTimes&amp;&amp;!t.tournament.showStartTimes||!t.startTime||t.embeded||t.showPoolStartTimes?t._e():i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-alert",{staticClass:"black--text ma-0",attrs:{type:"info",value:!0,prominent:"",text:""}},[i("strong",[t._v("Play starts "+t._s(t.startTime))])])],1)],1),!t.view.admin||t.tournament.locked||t.round.locked||t.embeded?t._e():i("v-row",{staticClass:"px-2",attrs:{dense:"",justify:"space-between"}},[t.isLeague?t._e():i("rep-field-dialog",{attrs:{division:t.division}}),t.editing?t._e():i("v-btn",{staticClass:"ma-0 pa-0",staticStyle:{"font-size":"small"},attrs:{small:"",color:"color3",text:""},on:{click:function(e){return e.stopPropagation(),t.preEdit(e)}}},[t._v("Edit pools")])],1),i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"pt-0",attrs:{cols:"12"}},[i("v-card",{attrs:{color:"grey lighten-4"}},[i("v-container",{attrs:{fluid:""}},[i("v-row",{attrs:{dense:"",align:"center"}},[t.isLeague?t._e():i("v-col",{staticClass:"headline black--text pb-1"},[t._v(" "+t._s(t.division.name)+" "+t._s(t.round.name)+" "),t.round.waitingOn?i("span",{staticClass:"grey--text caption"},[t._v(" waiting on "+t._s(t.round.waitingOn))]):t._e(),t.round.flight&amp;&amp;t.round.flight.complete?i("v-icon",{attrs:{small:""}},[t._v("far fa-check fa-fw")]):t._e(),t.embeded?t._e():i("div",{staticClass:"mt-n3"},[i("v-btn",{attrs:{color:"color3",text:"","x-small":""},on:{click:function(e){e.stopPropagation(),t.mini=!t.mini}}},[t._v(t._s(t.mini?"expand":"minfy"))])],1)],1),i("v-col",{staticClass:"text-right"},[t.editing?i("v-btn",{staticClass:"mt-0 mr-0",staticStyle:{"font-size":"small"},attrs:{small:"",color:"color3",text:""},on:{click:function(e){return e.stopPropagation(),t.addPool(e)}}},[t._v(" Add Pool ")]):t._e(),i("v-fab-transition",[t.editing||!t.view.adminAndRefs||t.tournament.locked||t.round.locked||t.isLeague?t._e():i("forfeit-wizard",{attrs:{"btn-class":"mr-1",round:t.round}})],1),!t.customPrint&amp;&amp;t.cardDisplay||t.editing||!t.view.adminAndRefs||t.isLeague?t._e():i("pdf-maker",{attrs:{round:t.round,pools:t.round.pools,tournament:t.tournament,list:!t.cardDisplay,"btn-class":"mr-1"}}),t.customPrint||!t.cardDisplay||t.editing||!t.view.adminAndRefs||t.isLeague?t._e():i("v-btn",{staticClass:"pa-0 mr-1",attrs:{color:"color3Text color3--text",fab:"",small:""},on:{click:function(e){return e.stopPropagation(),t.print(e)}}},[i("v-icon",{attrs:{small:""}},[t._v("fas fa-print")])],1),i("v-fab-transition",[t.editing||t.isLeague?t._e():i("v-btn",{attrs:{fab:"",small:"",color:"color3Text color3--text"},on:{click:function(e){e.stopPropagation(),t.cardDisplay=!t.cardDisplay}}},[i("v-icon",{attrs:{small:""}},[t._v(t._s(t.activeFab))])],1)],1)],1)],1),t.cardDisplay?[!t.view.admin||t.embeded||t.isLeague?t._e():i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"d-flex align-center",class:{"justify-start":!t.editing,"justify-end":t.editing},attrs:{cols:"12"}},[t.editing|t.interweaving?i("div",[i("add-courts-dialog",{attrs:{tournament:t.tournament,emit:!0,noSort:!0},on:{"emit-courts":t.onEmitCourts}}),t.editing|t.interweaving&amp;&amp;t.flight.pools.length&gt;1&amp;&amp;!t.tournament.locked&amp;&amp;!t.round.locked?i("interweave-dialog",{attrs:{flight:t.flight},on:{"loading-change":t.onInterweavingChange}}):t._e()],1):i("div",{staticClass:"d-flex"},[i("v-checkbox",{staticClass:"mt-0 mr-3 shrink",attrs:{label:"Unlocked Pools Only"+t.unlockedPoolsText,color:"success","hide-details":""},model:{value:t.unlockedOnly,callback:function(e){t.unlockedOnly=e},expression:"unlockedOnly"}}),i("v-checkbox",{staticClass:"mt-0 mr-3 shrink",attrs:{label:"Ready Pools Only"+t.readyPoolsText,color:"success","hide-details":""},model:{value:t.readyOnly,callback:function(e){t.readyOnly=e},expression:"readyOnly"}}),i("v-checkbox",{staticClass:"mt-0 shrink",attrs:{label:"Hide Live Scores",color:"success","hide-details":""},model:{value:t.nolive,callback:function(e){t.nolive=e},expression:"nolive"}})],1)])],1),i("v-row",{class:{hidden:!t.editing},attrs:{dense:""}},[i("v-col",{attrs:{cols:"12",sm:"6",xl:"4"}},[i("pool-card",{key:"pool_0_"+t.poolLessTeams.length,ref:"pool_0",attrs:{pool:t.pool0,sorting:t.sorting,editing:t.editing,holder:!0}})],1)],1),i("v-row",{attrs:{dense:""}},t._l(t.flight.pools,(function(e,o){return i("v-col",{key:"pool_"+(o+1),class:{hidden:e.locked&amp;&amp;(t.unlockedOnly||t._unlockedOnly)||!(e.complete&amp;&amp;!e.locked)&amp;&amp;(t.readyOnly||t._readyOnly)},attrs:{cols:"12",sm:"6",xl:"4",id:"pool_"+(o+1)+"_"+e.locked}},[i("pool-card",{key:"pool_"+(o+1)+"_"+e.teams.length,ref:"pool_"+(o+1),refInFor:!0,attrs:{pool:e,sorting:t.sorting,editing:t.editing,lowlight:t.highlight&amp;&amp;t.highlight.poolId!==e.id,highlight:t.highlight&amp;&amp;t.highlight.id,showStartTime:!t.editing&amp;&amp;!t.sorting&amp;&amp;(!t.round.hideTimes||t.tournament.showStartTimes)&amp;&amp;!t.embeded&amp;&amp;(t.showPoolStartTimes||t.tournament.showStartTimes),nolive:t.nolive||t._nolive,mini:t.mini||t._mini,isLeague:t.isLeague}})],1)})),1),i("table",{attrs:{id:"append"}},[i("tbody")])]:[i("v-row",{attrs:{dense:""}},[i("v-col",{attrs:{cols:"12"}},[i("v-text-field",{attrs:{"append-icon":"fas fa-search",label:"Search","hide-details":"",color:"color3"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),i("v-row",{attrs:{dense:""}},[i("v-col",{attrs:{cols:"12"}},[i("v-data-table",{staticClass:"elevation-1",attrs:{items:t.tableViewItems,headers:t.headers,loading:t.division.loading,options:t.page,search:t.search,"hide-default-footer":""},on:{"update:options":function(e){t.page=e}},scopedSlots:t._u([{key:"item.rank",fn:function(e){var i=e.item;return[t._v(" "+t._s(t._f("ordinal")(i.rank))+" ")]}},{key:"item.courts",fn:function(e){var i=e.item;return[t._v(" "+t._s(t._f("formatArray")(i.courts))+" ")]}},{key:"item.actions",fn:function(e){var o=e.item;return[i("v-btn",{attrs:{color:"color3 color3Text--text",small:"",fab:"",to:{name:"pool-sheet",params:{poolId:o.poolId}}}},[i("v-icon",[t._v("fas fa-caret-right")])],1)]}}],null,!0)})],1)],1)]],2)],1),!t.view.admin||t.embeded||t.isLeague?t._e():i("div",{staticClass:"caption"},[i("v-btn",{attrs:{color:"color3","x-small":"",text:"",loading:t.clearCourts},on:{click:function(e){e.stopPropagation(),t.clearCourts=!0}}},[t._v(" clear Courts ")]),i("vbl-confirm-dialog",{attrs:{ask:t.clearCourts,loading:t.loading},on:{deny:function(e){t.clearCourts=!1},confirm:t.onClearConfirm}})],1),t.user&amp;&amp;t.user.vbl?i("div",{staticClass:"caption"},[t._v("Flight Id: "+t._s(t.flight.id))]):t._e()],1)],1),t.noSearch?t._e():i("flight-search",{attrs:{flight:t.flight},on:{highlight:t.onHighlight}}),t.editing&amp;&amp;t.dirty?i("v-btn",{staticStyle:{"margin-right":"60px"},attrs:{fab:"",bottom:"",right:"",fixed:"",color:"color3 color3Text--text"},on:{click:function(e){return e.stopPropagation(),t.saveChanges(e)}}},[i("v-icon",[t._v("fas fa-save")])],1):t._e(),t.editing||t.sorting?i("v-btn",{attrs:{fab:"",bottom:"",right:"",fixed:"",color:"red white--text"},on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[i("v-icon",[t._v("fas fa-times")])],1):t._e(),i("v-dialog",{attrs:{persistent:"","max-width":"500px",transition:"dialog-transition"},model:{value:t.warn,callback:function(e){t.warn=e},expression:"warn"}},[i("v-card",[i("v-toolbar",{attrs:{color:"warning black--text"}},[i("v-icon",[t._v("fas fa-exclamation")]),i("v-toolbar-title",[t._v("Warning")])],1),i("v-card-text",[i("h3",[t._v("Editing pools now could cause a loss of data")]),i("div",{staticClass:"pt-2"},[t._v("You have manually edited a match by recording the score or updating the start time, court or ref.")]),i("div",{staticClass:"pt-2"},[t._v("Any changes to the teams in "+t._s(1===t.dbMatches2.length?"pool":"pools")+" "+t._s(t._f("formatArray")(t.dbMatches2))+" could result in losing those updates.")])]),i("v-card-actions",[i("v-spacer"),i("v-btn",{attrs:{color:"color3",text:""},on:{click:function(e){return e.stopPropagation(),t.edit(e)}}},[t._v("OK")]),i("v-btn",{attrs:{color:"error",text:""},on:{click:function(e){e.stopPropagation(),t.warn=!1}}},[t._v("Cancel")])],1)],1)],1)],1)},n=[],s=(i("99af"),i("4de4"),i("7db0"),i("c740"),i("4160"),i("caad"),i("d81d"),i("a434"),i("b0c0"),i("d3b7"),i("ac1f"),i("6062"),i("2532"),i("3ca3"),i("5319"),i("159b"),i("ddb0"),i("5530")),a=i("0910"),r=i("3aa4"),l=i("199b"),c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-card",{staticClass:"fill-height",on:{dblclick:t.goToPoolSheet}},[i("v-overlay",{attrs:{absolute:"",value:!t.editing&amp;&amp;t.lowlight}}),i("v-container",{class:{"pb-0":!t.mini},attrs:{fluid:""}},[i("v-row",{attrs:{dense:"",align:"center",justify:"space-between"}},[!t.editing||t.holder||t.isLeague?[t.holder?i("v-col",{staticClass:"font-weight-bold",attrs:{cols:"12"}},[t._v(" "+t._s(t.pool.name)+" ")]):t.isLeague?t._e():[i("v-col",{staticClass:"font-weight-bold",attrs:{cols:"2"}},[t._v(" Pool "+t._s(t.pool.name)+" ")]),t.holder?t._e():i("v-col",{staticClass:"font-weight-bold text-right",attrs:{cols:"10"}},[t.pool.courts?i("span",{staticClass:"mr-3"},[t._v("Court "+t._s(t._f("formatArraySort")(t.pool.courts)))]):t._e(),t.view.adminAndRefs&amp;&amp;t.pool.locked&amp;&amp;!t.tournament.locked?i("unlock-dialog",{attrs:{inline:!0,warn:t.isInfluencer},on:{"unlock-click":t.onLockToggle}}):t._e(),i("v-btn",{staticClass:"ml-1",attrs:{color:"color3 color3Text--text",small:"",fab:""},on:{click:function(e){return e.stopPropagation(),t.goToPoolSheet(e)}}},[i("v-icon",[t._v("fas fa-caret-right")])],1)],1)]]:[i("v-col",{staticStyle:{"max-width":"50%"}},[i("v-text-field",{attrs:{label:"Pool","hide-details":"",color:"color3"},model:{value:t.pool.name,callback:function(e){t.$set(t.pool,"name",e)},expression:"pool.name"}})],1),i("v-col",{staticStyle:{"max-width":"50%"}},[i("v-text-field",{attrs:{label:"Court","hide-details":"",color:"color3"},model:{value:t.pool.courts,callback:function(e){t.$set(t.pool,"courts",e)},expression:"pool.courts"}})],1)]],2),i("v-divider"),t.showStartTime&amp;&amp;t.startTime?i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-alert",{staticClass:"black--text ma-0",attrs:{type:"info",value:!0,prominent:"",text:""}},[i("strong",[t._v("Play starts "+t._s(t.startTime.format("dddd h:mm A")))])])],1)],1):t._e(),t.view.admin&amp;&amp;t.tournament.props.includes("conflicts")&amp;&amp;t.conflicts&amp;&amp;t.conflicts.length?i("v-row",{attrs:{dense:""}},[i("v-col",{attrs:{cols:"12"}},[i("v-alert",{attrs:{dismissable:"",type:"info",value:!0}},[t._v(" This court is also being used by "+t._s(t._f("formatArray")(t.conflicts.map((function(t){return t.division+" Pool "+t.name}))))+" ")])],1)],1):t._e(),t.view.admin&amp;&amp;t.pool.complete&amp;&amp;!t.pool.locked?i("v-row",{attrs:{dense:""}},[i("v-col",{attrs:{cols:"12"}},[i("v-alert",{attrs:{type:"warning",value:!0}},[i("strong",{staticClass:"black--text"},[t._v(t._s(t.pool.name)+" is not locked."+t._s(t.pool.tbDone?" TB Done":""))]),i("v-btn",{attrs:{loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.onLockToggle(e)}}},[t._v("lock")])],1),!t.autoLock||t.loading||t.noAuto?t._e():i("div",{staticClass:"error--text"},[t._v(" Auto Lock in: "),i("countdown",{attrs:{lengthInSeconds:60,mini:!0},on:{expired:t.onAutoLock}}),i("v-btn",{attrs:{"x-small":"",color:"black",text:""},on:{click:function(e){e.stopPropagation(),t.noAuto=!0}}},[t._v("cancel")])],1)],1)],1):t._e(),!t.sorting&amp;&amp;!t.editing&amp;&amp;!t.holder&amp;&amp;t.pool.matches.length&gt;0?i("v-row",{attrs:{dense:"",justify:"space-between"}},[t.pool.status&amp;&amp;t.hasRanks?i("v-col",{staticClass:"title pb-0"},[t._v(" "+t._s(t.pool.locked?"Final":"Current")+" Standings ")]):t._e(),t.pool.locked?t._e():i("v-col",{staticClass:"pb-0",class:{"text-right":t.$vuetify.breakpoint.smAndUp}},[t._v(" "+t._s(t.pool.completeMatches.length+" of "+t.pool.matches.length+" matches complete")+" ")])],1):t._e(),!t.sorting&amp;&amp;!t.editing&amp;&amp;!t.holder&amp;&amp;!t.nolive&amp;&amp;t.pool.ongoingMatches&amp;&amp;t.pool.ongoingMatches.length&gt;0?i("v-row",{attrs:{dense:""}},t._l(t.pool.ongoingMatches,(function(e){return i("v-col",{key:e.id,staticClass:"text-right py-0",attrs:{cols:"12"}},[i("v-chip",{attrs:{outlined:"",color:"success",small:"",width:"100%"}},[i("v-icon",{staticClass:"mr-2",attrs:{small:""}},[t._v("fas fa-signal-stream")]),t._v(" Match "+t._s(e.number)+t._s(e.games&amp;&amp;e.games.length&gt;1?" | Game "+e.currentGame.number:"")+": "+t._s(e.currentGame.home||0)+" - "+t._s(e.currentGame.away||0)+" ")],1)],1)})),1):t._e(),0!==t.myTeams.length||t.holder?t._e():i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"pa-0",attrs:{cols:"12"}},[i("v-alert",{staticClass:"black--text ma-0",attrs:{type:"error",value:!0,prominent:"",text:""}},[i("strong",[t._v("We are still waiting on some results before this pool can be filled")])])],1)],1)],1),!t.pool.status&amp;&amp;!t.mini||t.sorting?i("v-list",{staticClass:"pool",attrs:{"three-line":t.threeLine,"two-line":!t.threeLine}},[t._l(t.myTeams,(function(e){return i("v-list-item",{key:e.teamId,staticClass:"team",attrs:{id:e.teamId}},[i("v-overlay",{attrs:{absolute:"",value:!t.editing&amp;&amp;!t.lowlight&amp;&amp;t.highlight&amp;&amp;t.highlight!==e.teamId,color:"white",opacity:.8}}),t.sorting?i("v-list-item-avatar",{staticClass:"sortHandle"},[i("v-icon",[t._v("fas fa-bars")])],1):t._e(),i("v-list-item-avatar",{staticClass:"mx-0 mr-2"},[i("v-avatar",{attrs:{color:t.teamColorsInverse[e.slot-1],size:(t.$vuetify.breakpoint.smAndDown,"36")}},[t.holder?t._e():i("span",{staticClass:"white--text"},[t._v(t._s(e.slot))])])],1),e.logo?i("v-list-item-action",{staticClass:"mx-1"},[i("v-img",{attrs:{src:e.logo,"max-height":"48","max-width":"48",contain:""}})],1):t._e(),t.hideSeeds||t.threeLine?t._e():i("v-list-item-content",{staticClass:"seed"},[i("v-list-item-subtitle",{staticClass:"seed",class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.seed))]),e.repping&amp;&amp;!t.noRep?i("v-list-item-subtitle",{key:t.division.repField,class:{sm:t.$vuetify.breakpoint.smAndDown}}):t._e(),e.adminRep&amp;&amp;t.threeLine?i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}}):t._e()],1),e.logo&amp;&amp;e.players&amp;&amp;(2===e.players.length&amp;&amp;t.division.isDoubles||1===e.players.length&amp;&amp;t.division.isSingles)?i("v-list-item-content",{class:{sm:t.$vuetify.breakpoint.smAndDown,clickable:!t.editing,"color3--text":!t.editing},on:{click:function(i){return i.stopPropagation(),t.teamClick(e.teamId)}}},[i("v-list-item-title",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.players[0]?e.players[0].fullname:null)+" / "+t._s(e.players[1]?e.players[1].fullname:null))]),i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(" "+t._s(e.name)+" ")]),t.threeLine?i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(" "+t._s(e.adminRep)+" ")]):t._e()],1):i("v-list-item-content",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[i("v-list-item-title",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.name))]),t.noRep?t._e():i("v-list-item-subtitle",{key:t.division.repField,staticClass:"text-truncate",class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.repping))]),t.threeLine?i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.adminRep))]):t._e()],1),i("v-list-item-action",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[i("v-list-item-action-text",[t._v(t._s(e.matchWins+"-"+e.matchLosses))]),(t.sorting,t._e())],1)],1)})),i("v-list-item",{class:{hide:!t.sorting||t.pool.teams.length&gt;0}})],2):t.mini?t._e():i("v-list",{staticClass:"pool",attrs:{"two-line":""}},t._l(t.rankedTeams,(function(e){return i("v-list-item",{key:e.teamId,staticClass:"team"},[i("v-overlay",{attrs:{absolute:"",value:!t.editing&amp;&amp;!t.lowlight&amp;&amp;t.highlight&amp;&amp;t.highlight!==e.teamId,color:"white",opacity:.8}}),i("v-list-item-avatar",{staticClass:"mr-2 ml-0"},[i("v-avatar",{staticClass:"white--text",attrs:{color:t.teamColorsInverse[e.slot-1],size:"40"}},[e.forfeit?i("v-icon",{attrs:{color:"white"}},[t._v("fas fa-medkit")]):t._e(),e.rank?e.rank&lt;99?[i("span",{staticClass:"headline"},[t._v(t._s(e.rank))]),i("sup",[t._v(t._s(t._f("ordinalSuffix")(e.rank)))])]:t._e():i("span",{staticClass:"white--text"},[t._v(t._s(e.slot))])],2)],1),e.logo?i("v-list-item-action",{staticClass:"mx-1"},[i("v-img",{attrs:{src:e.logo,height:"48","max-width":"48",contain:""}})],1):t._e(),t.hideSeeds||t.threeLine?t._e():i("v-list-item-content",{staticClass:"seed"},[i("v-list-item-subtitle",{staticClass:"seed"},[t._v(t._s(e.seed))]),e.repping&amp;&amp;!t.noRep?i("v-list-item-subtitle",{key:t.division.repField,staticClass:"white--text hidden"},[t._v("x")]):t._e()],1),e.logo&amp;&amp;e.players&amp;&amp;2===e.players.length?i("v-list-item-content",{class:{sm:t.$vuetify.breakpoint.smAndDown,clickable:!t.editing,"color3--text":!t.editing},on:{click:function(i){return i.stopPropagation(),t.teamClick(e.teamId)}}},[i("v-list-item-title",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.players[0]?e.players[0].fullname:null)+" / "+t._s(e.players[1]?e.players[1].fullname:null))]),i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(" "+t._s(e.name)+" ")]),t.threeLine?i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(" "+t._s(e.adminRep)+" ")]):t._e()],1):i("v-list-item-content",[i("v-list-item-title",{staticClass:"color3--text clickable",on:{click:function(i){return i.stopPropagation(),t.teamClick(e.teamId)}}},[t._v(" "+t._s(e.name)+" ")]),t.noRep?t._e():i("v-list-item-subtitle",{key:t.division.repField},[t._v(t._s(e.repping))]),t.threeLine?i("v-list-item-subtitle",{class:{sm:t.$vuetify.breakpoint.smAndDown}},[t._v(t._s(e.adminRep))]):t._e()],1),i("v-list-item-action",[e.forfeit?i("v-list-item-action-text",[t._v("forfeit")]):t.pool.isDuals?i("v-list-item-action-text",[t._v(t._s((e.dualWins||0)+"-"+(e.dualLosses||0)))]):i("v-list-item-action-text",[t._v(t._s((e.matchWins||0)+"-"+(e.matchLosses||0)))])],1)],1)})),1),t.videoFab?i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"text-right",attrs:{cols:"12"}},[i("v-btn",{attrs:{color:"color3",text:"",href:t.videoFab.url,target:"_blank"}},[i("v-icon",{staticClass:"mr-4"},[t._v(t._s(t.videoFab.icon))]),t._v(" "+t._s(t.videoFab.text)+" ")],1)],1)],1):t._e()],1)},d=[],u=(i("1276"),i("ceca")),m=i.n(u),h=i("2f62"),f=i("b8d7"),p=i("8c8b"),v=i("c1df"),g=i.n(v),b=function(){return i.e("chunk-2d22e0c0").then(i.bind(null,"f9a8"))},_=function(){return i.e("chunk-624a9e64").then(i.bind(null,"bd0d"))},y={props:["pool","sorting","editing","holder","lowlight","highlight","showStartTime","nolive","mini","isLeague"],mixins:[a["a"],p["a"]],data:function(){return{loading:!1,noAuto:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(h["c"])(["getTeam","view","teamColorsInverse","getDivision","tournament","getRound"])),{},{autoLock:function(){return this.tournament.autoLock},startTime:function(){var t=this.pool.startTimeCalc||g()(this.round.dtStart),e=g()(t.format().replace("Z",this.division.location.offset));return t&amp;&amp;e.isAfter()?t:null},poolMap:function(){return Object(f["a"])(this.tournament.divisions.map((function(t){return t.pools.map((function(e){return{division:t.name,id:e.id,name:e.name,courts:e.courts?e.courts.split(","):[]}}))})))},useLogos:function(){return this.division&amp;&amp;this.division.useLogos},myCourts:function(){return this.pool.courts.split(",")},conflicts:function(){var t=this;return this.poolMap.filter((function(e){return e.id!==t.pool.id&amp;&amp;e.courts.filter((function(e){return t.myCourts.includes(e)})).length}))||[]},division:function(){var t=this;return this.divisionId?this.getDivision(this.divisionId):this.tournament.divisions.find((function(e){return e.pools.find((function(e){return e.id===t.pool.id}))}))},round:function(){var t=this;return this.dayId?this.getRound(this.dayId):this.tournament.rounds.find((function(e){return e.pools.find((function(e){return e.id===t.pool.id}))}))},rankedTeams:function(){var t=this,e=this.pool.teams.map((function(e){var i=t.getTeam(e.teamId),o=t.pool.locked&amp;&amp;!e.summary,n=1===t.round.number?i.seed:e.roundSeed||i.seed,s=e.fromPool?" (".concat(e.fromPool,")"):"";return{teamId:i.id,rank:o?"NA":t.pool.locked?e.summary.finish:e.rank,seed:n,repping:i.getRep(t.division.repField),adminRep:i.field?"Field: ".concat(i.field):"".concat(e.adminRep).concat(s),name:i.name,dualWins:o?"NA":t.pool.locked?e.summary.dualWins:e.dualWins,dualLosses:o?"NA":t.pool.locked?e.summary.dualLosses:e.dualLosses,matchWins:o?"NA":t.pool.locked?e.summary.matchWins:e.matchWins,matchLosses:o?"NA":t.pool.locked?e.summary.matchLosses:e.matchLosses,slot:e.slot,forfeit:e.forfeit,logo:t.useLogos&amp;&amp;i.logo,players:t.useLogos&amp;&amp;i.players}}));return e.sort(m()("rank"))},repField:function(){return this.division.repField},hasRanks:function(){return!!this.rankedTeams.find((function(t){return t.rank}))},myTeams:function(){var t=this;if(!this.division)return[];var e=this.division.repField&amp;&amp;this.pool.teams.map((function(e){var i=t.getTeam(e.teamId),o=1===t.round.number?i.seed:e.roundSeed||i.seed,n=e.fromPool?" (".concat(e.fromPool,")"):"";return{teamId:i.id,slot:e.slot,seed:o,repping:i.getRep(t.division.repField),adminRep:i.field?"Field: ".concat(i.field):"".concat(e.adminRep).concat(n),name:i.name,matchWins:e.matchWins,matchLosses:e.matchLosses,forfeit:e.forfeit,logo:t.useLogos&amp;&amp;i.logo,players:t.useLogos&amp;&amp;i.players}}));return e.sort(m()("slot"))},dirty:function(){return this.pool.dirty},a_stat:function(){return this.pool.status},threeLine:function(){return this.view.admin&amp;&amp;(!!this.myTeams.find((function(t){return t.adminRep}))||this.division&amp;&amp;this.division.isNcaa)},videoFab:function(){var t=this.pool.courts?this.pool.courts.split(" "):[];return t.length&amp;&amp;this.tournament.fabs.find((function(e){return"court"===e.type&amp;&amp;e.courtName===t[0]}))},lockDTO:function(){return this.pool.teams.map((function(t){return{id:t.id,summary:{finish:t.rank,dualWins:t.dualWins,dualLosses:t.dualLosses,matchWins:t.matchWins,matchLosses:t.matchLosses,setWins:t.setWins,setLosses:t.setLosses,pointsFor:t.pointsFor,pointsAgainst:t.pointsAgainst}}}))},noRep:function(){return this.division&amp;&amp;(this.division.props.includes("noRep")||this.division.isDuals||this.useLogos)},isInfluencer:function(){var t=this;return!!this.tournament.selectors.filter((function(e){return e.fromRoundId===t.roundId})).length}}),methods:{teamClick:function(t){this.editing||this.$router.push({name:"division-team",params:{tournamentId:this.tournament.id,teamId:t}})},add:function(t,e){e.poolId=this.pool.id,this.pool.teams.splice(t,0,e),this.reSlot()},remove:function(t){var e=this.pool.teams.splice(t,1)[0];return this.reSlot(),e},reSlot:function(){var t=1;this.pool.teams.forEach((function(e){e.slot=t++}))},goToPoolSheet:function(){this.holder||this.editing||this.$router.push({name:"pool-sheet",params:{divisionId:this.division.id,dayId:this.round.id,poolId:this.pool.id}})},onAutoLock:function(){this.loading||this.pool.locked||this.onLockToggle()},onLockToggle:function(){var t=this;this.loading=!0;var e={locked:!this.pool.locked,teams:this.lockDTO};this.pool.patch(e).then((function(){t.pool.locked=e.locked,e.teams.forEach((function(e){var i=t.pool.teams.find((function(t){return t.id===e.id}));i.summary=e.summary})),t.loading=!1}))},swapMe:function(t){this.swappable=t,this.dialog=!0}},components:{UnlockDialog:b,Countdown:_}},k=y,w=(i("a788"),i("2877")),x=i("6544"),C=i.n(x),T=i("0798"),L=i("8212"),I=i("8336"),P=i("b0af"),A=i("cc20"),S=i("62ad"),D=i("a523"),V=i("ce7e"),$=i("132d"),R=i("adda"),O=i("8860"),F=i("da13"),W=i("1800"),j=i("5d23"),M=i("8270"),E=i("a797"),B=i("0fd9"),N=i("8654"),z=Object(w["a"])(k,c,d,!1,null,"e2b851f0",null),G=z.exports;C()(z,{VAlert:T["a"],VAvatar:L["a"],VBtn:I["a"],VCard:P["a"],VChip:A["a"],VCol:S["a"],VContainer:D["a"],VDivider:V["a"],VIcon:$["a"],VImg:R["a"],VList:O["a"],VListItem:F["a"],VListItemAction:W["a"],VListItemActionText:j["a"],VListItemAvatar:M["a"],VListItemContent:j["b"],VListItemSubtitle:j["c"],VListItemTitle:j["d"],VOverlay:E["a"],VRow:B["a"],VTextField:N["a"]});var H=i("4663"),U=i("291a"),J=function(){return i.e("chunk-770ddcba").then(i.bind(null,"c85d4"))},Z=function(){return i.e("chunk-2d22c0df").then(i.bind(null,"f230"))},q=function(){return i.e("chunk-2d21d856").then(i.bind(null,"d23e"))},K=function(){return i.e("chunk-563d6406").then(i.bind(null,"8977"))},Y=function(){return i.e("chunk-2d0b26ef").then(i.bind(null,"23a9"))},Q=function(){return i.e("chunk-bb1d2a2a").then(i.bind(null,"ee4c"))},X={mixins:[a["a"]],props:["flight","noSearch","_readyOnly","_unlockedOnly","embeded","_nolive","_mini","isLeague"],data:function(){return{display:"card",page:{itemsPerPage:-1},search:null,sortable:null,editing:!1,pool0:new r["a"](this.$VBL,{holder:!0,name:"Pooless Teams"}),cardDisplay:!0,unlockedOnly:!1,readyOnly:!1,nolive:!1,mini:!1,warn:!1,timer:null,highlight:null,interweaving:!1,clearCourts:!1,loading:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(h["c"])(["view","tournament","getDivision","getRound","getTeam","user"])),{},{customPrint:function(){return this.tournament.props.includes("customPrint")||this.division.props.includes("customPrint")},dbMatches:function(){return Object(f["a"])(this.flight.pools.map((function(t){return t.matches}))).filter((function(t){return t.id&gt;0}))},dbMatches2:function(){return this.flight.pools.filter((function(t){return t.matches.find((function(t){return t.id&gt;0}))})).map((function(t){return t.name}))},startTime:function(){if(!this.poolStartTimes.length)return null;var t=g()(this.poolStartTimes[0]),e=g()(t.format().replace("Z",this.division.location.offset));if(e.isBefore())return null;var i=t.format("h:mm A"),o=t.format("ddd h:mm A");return this.tournament.isOneDay?i:o},poolStartTimes:function(){var t=this.flight.pools&amp;&amp;this.flight.pools.map((function(t){return t.startTimeCalc})).filter((function(t){return!!t}));return t?t.sort((function(t,e){return t.unix()-e.unix()})):[]},poolMatchTimes:function(){return this.flight.pools.map((function(t){return t.matchTimes}))},showPoolStartTimes:function(){var t=this.poolStartTimes&amp;&amp;new Set(this.poolStartTimes.map((function(t){return"".concat(t.unix())})));return t.size&gt;1},activeFab:function(){return this.cardDisplay?"fas fa-list":"fas fa-table"},division:function(){var t=this;return this.divisionId?this.getDivision(this.divisionId):this.tournament.divisions.find((function(e){return e.flights.find((function(e){return e.id===t.flight.id}))}))},round:function(){var t=this;return this.dayId?this.getRound(this.dayId):this.tournament.rounds.find((function(e){return e.flights.find((function(e){return e.id===t.flight.id}))}))},sorting:function(){return!!this.sortable},dirty:function(){return this.dirtyPools&amp;&amp;this.dirtyPools.length&gt;0},dirtyTeams:function(){return this.flight.dirty?this.flight.dirtyTeams.map((function(t){return t.dto})):null},dirtyPools:function(){return this.flight.dirtyPools&amp;&amp;this.flight.dirtyPools.map((function(t){return t.dto}))},unlockedPools:function(){return this.flight.pools.filter((function(t){return!t.locked}))},unlockedPoolsText:function(){var t=this.unlockedPools.length;return t&gt;0?" (".concat(t,")"):""},readyPools:function(){return this.flight.pools.filter((function(t){return t.complete&amp;&amp;!t.locked}))},readyPoolsText:function(){var t=this.readyPools.length;return t&gt;0?" (".concat(t,")"):""},poolTeams:function(){return this.round.poolTeams},poolLessTeams:function(){return this.division&amp;&amp;this.division.poollessTeamIds||[]},showPool0:function(){return!!this.round.teamSelectors.find((function(t){return"ORIGINAL_SEED"===t.seedStyle&amp;&amp;"ALL"===t.type}))},tableViewItems:function(){var t=this,e=Object(f["a"])(this.flight.pools.map((function(e){return e.teams.map((function(i){var o=t.getTeam(i.teamId),n=e.locked&amp;&amp;!i.summary;return{pool:e.name,poolId:e.id,team:o.name,players:o.players,teamId:i.teamId,repping:o.getRep(t.division.repField),slot:i.slot,courts:e.courts,rank:n?"NA":e.locked?i.summary.finish:o.rank}}))})));return e},headers:function(){var t=[{text:"Team",value:"team",align:"left",sortable:!0},{text:"Representing",value:"repping",align:"left",sortable:!0},{text:"Pool",value:"pool",align:"center",sortable:!0},{text:"Standing",value:"rank",align:"center",sortable:!0},{text:"Court",value:"courts",align:"center",sortable:!0},{value:"actions",align:"right",sortable:!1}];return this.$vuetify.breakpoint.xs&amp;&amp;t.splice(1,1),t},noRep:function(){return this.division&amp;&amp;this.division.props.includes("noRep")}}),methods:{onInterweavingChange:function(t){this.interweaving=t,t&amp;&amp;this.cancel()},teamClick:function(t){this.$router.push({name:"division-team",params:{tournamentId:this.tournament.id,teamId:t}})},bTv:function(){var t=this.division.teams.map((function(t){return{id:t.id,name:t.name,players:t.players.map((function(t){return{id:t.playerProfileId,name:t.name}}))}}));return t},bTv2:function(){var t=this,e=Object(f["a"])(this.flight.pools.map((function(e){return e.matches.map((function(i){return{id:i.id,title:"".concat(i.homeTeam.name," vs ").concat(i.awayTeam.name),description:"Pool ".concat(e.name," Match ").concat(i.number),division:t.division.name,divisionId:t.division.id,home_id:i.homeTeam.teamId,away_id:i.awayTeam.teamId,court:i.court,date_time:i.startTime.utcOffset(t.division.location.offset).format()}}))})));return e},print:function(){return window.print(),!1},addPool:function(){var t=this;this.flight.addPool(),this.$nextTick((function(){t.makeSortable()}))},preEdit:function(){this.dbMatches.length?this.warn=!0:this.edit()},edit:function(){var t=this;this.warn=!1,this.display="card",this.round.edit(),this.flight.edit(),this.editing=!0,this.$nextTick((function(){t.makeSortable()}))},initPoolless:function(){var t=this;this.pool0.teams=this.round.poollessTeamIds.map((function(e){var i=t.getTeam(e);return new l["a"](t.$VBL,{name:i.name,teamId:i.id,repping:i.getRep(t.division.repField)})}))},sort:function(){this.flight.pools.sort(m()("id")),this.flight.pools.forEach((function(t){t.teams.sort(m()("slot"))}))},cancel:function(){console.log("here"),this.flight.restore(),this.round.restore(),this.sortable&amp;&amp;(this.sortable.destroy(),this.sortable=null),this.editing=!1},saveChanges:function(){var t=this;if(this.dirty){var e=[this.flight.dto];this.$store.commit(U["m"],"PoolReviewDirtyTeams"),this.$VBL.patch.flights(e).then((function(){t.sortable.destroy(),t.sortable=null,t.editing=!1})).catch((function(t){console.log(t.response)})).finally((function(){t.$store.commit(U["o"],"PoolReviewDirtyTeams")}))}},makeSortable:function(){var t=this,e=document.querySelectorAll(".pool");if(0!==e.length){this.sortable&amp;&amp;this.sortable.destroy();var i=new H["Sortable"](e,{draggable:".team",dropzone:".pool",handle:".sortHandle",mirror:{constrainDimensions:!0,appendTo:"#append"}});i.on("sortable:stop",(function(e){var i=e.newContainer.__vue__.$parent.$parent,o=e.oldContainer.__vue__.$parent.$parent,n=o.remove(e.oldIndex);i.add(e.newIndex,n),t.$nextTick((function(){t.makeSortable()}))})),this.sortable=i}else console.log("no pools")},onHighlight:function(t){var e=this;this.timer&amp;&amp;clearTimeout(this.timer),this.highlight=t;var i=this.flight.pools.findIndex((function(e){return e.id===t.poolId})),o=this.$refs["pool_".concat(i+1)];if(o){var n=o[0];n&amp;&amp;this.$vuetify.goTo(n,{duration:333,offset:133,easing:"easeInOutCubic"})}this.timer=setTimeout((function(){e.highlight=null}),5e3)},onEmitCourts:function(t){for(var e=this.flight.pools,i=e.length&lt;t.length?e.length:t.length,o=0;o&lt;i;o++)e[o].courts=t[o].replace("|",",")},onClearConfirm:function(){var t=this;this.loading=!0,this.$VBL.tournament.clearCourts(this.flight.id).then((function(e){t.clearCourts=!1})).catch((function(t){return console.log(t.response)})).finally((function(){t.loading=!1}))}},watch:{"division.poollessTeamIds":function(t,e){var i=this;(t&amp;&amp;t.length||e&amp;&amp;e.length)&amp;&amp;(this.pool0.teams=[],t.forEach((function(t){var e=i.getTeam(t);i.pool0.teams.push(new l["a"](i.$VBL,{name:e.name,teamId:e.id,repping:e.getRep(i.division.repField)}))})),this.pool0.teams.sort(m()("name")))},editing:function(t){this.$emit("edit-change",t)}},components:{PoolCard:G,RepFieldDialog:J,PdfMaker:K,ForfeitWizard:Z,InterweaveDialog:q,FlightSearch:Y,AddCourtsDialog:Q},mounted:function(){this.flight.pools.sort(m()("number"))}},tt=X,et=(i("59c8"),i("99d9")),it=i("ac7c"),ot=i("8fea"),nt=i("169a"),st=i("0789"),at=i("2fa4"),rt=i("71d9"),lt=i("2a7f"),ct=Object(w["a"])(tt,o,n,!1,null,"01e0da54",null);e["default"]=ct.exports;C()(ct,{VAlert:T["a"],VBtn:I["a"],VCard:P["a"],VCardActions:et["a"],VCardText:et["b"],VCheckbox:it["a"],VCol:S["a"],VContainer:D["a"],VDataTable:ot["a"],VDialog:nt["a"],VFabTransition:st["c"],VIcon:$["a"],VRow:B["a"],VSpacer:at["a"],VTextField:N["a"],VToolbar:rt["a"],VToolbarTitle:lt["a"]})},"363b":function(t,e,i){},"59c8":function(t,e,i){"use strict";var o=i("ec0c"),n=i.n(o);n.a},a788:function(t,e,i){"use strict";var o=i("363b"),n=i.n(o);n.a},ec0c:function(t,e,i){}}]);
//# sourceMappingURL=chunk-4a3971dd.ad0eb7c4.js.map</pre></body></html>