{"version":3,"sources":["webpack:///./src/Mixins/RouteMixin.js","webpack:///./src/Pages/Tournament/Division/Pools/Index.vue?502b","webpack:///src/Pages/Tournament/Division/Pools/Index.vue","webpack:///./src/Pages/Tournament/Division/Pools/Index.vue?80c1","webpack:///./src/Pages/Tournament/Division/Pools/Index.vue"],"names":["computed","dayId","this","$route","params","divisionId","poolId","roundId","teamId","tournamentId","standingsI","liveProps","query","liveN","n","id","liveId","render","_vm","_h","$createElement","_c","_self","view","public","round","published","attrs","staticClass","_v","admin","flights","length","_s","division","name","loading","on","$event","stopPropagation","publish","complete","locked","hydrated","hideTabs","_l","tab","i","key","class","active","to","y","icon","_e","text","xs","courts","settings","fromSelections","tournament","staticRenderFns","mixins","RouteMixin","data","pools","includes","freePlay","finishQ","$vuetify","breakpoint","xsOnly","getDivision","days","find","flight","filter","tabs","poolCount","push","forEach","pool","number","sort","map","d","poolPlay","bracketPlay","methods","patch","checkRedirect","$router","watch","val","mounted","components","PoolFinishDialog","RoundSettings","component","VAlert","VAvatar","VBtn","VCard","VCol","VContainer","VExpandTransition","VIcon","VRow","VSpacer","VTab","VTabs"],"mappings":"mIAAe,QACbA,SAAU,CACRC,MADQ,WAEN,OAAQC,KAAKC,OAAOC,OAAOH,OAE7BI,WAJQ,WAKN,OAAQH,KAAKC,OAAOC,OAAOC,YAE7BC,OAPQ,WAQN,OAAQJ,KAAKC,OAAOC,OAAOE,QAE7BC,QAVQ,WAWN,OAAQL,KAAKC,OAAOC,OAAOH,OAE7BO,OAbQ,WAcN,OAAQN,KAAKC,OAAOC,OAAOI,QAE7BC,aAhBQ,WAiBN,OAAQP,KAAKC,OAAOC,OAAOK,cAE7BC,WAnBQ,WAoBN,OAAQR,KAAKC,OAAOC,OAAOM,YAE7BC,UAtBQ,WAuBN,OAAOT,KAAKC,OAAOS,OAASV,KAAKC,OAAOS,MAAMC,OAAS,CACrDC,GAAIZ,KAAKC,OAAOS,MAAMC,MACtBE,KAAiC,EAA3Bb,KAAKC,OAAOS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,SAIA,GACUG,GACF3F,KAAKwF,kBAIXI,QA7FF,WA8FQ5F,KAAKgC,SAASS,UAChBzC,KAAKwF,iBAGTK,WAAY,CACVC,iBAAJ,EACIC,cAAJ,ICvN4X,I,iLCOxXC,EAAY,eACd,EACAjF,EACA4C,GACA,EACA,KACA,WACA,MAIa,aAAAqC,EAAiB,QAgBhC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,UAAA,KAAQC,OAAA,KAAKC,QAAA,KAAMC,OAAA,KAAKC,aAAA,KAAWC,kBAAA,OAAkBC,QAAA,KAAMC,OAAA,KAAKC,UAAA,KAAQC,OAAA,KAAKC,QAAA","file":"js/chunk-0372d340.3954dec2.js","sourcesContent":["export default {\r\n  computed: {\r\n    dayId () {\r\n      return +this.$route.params.dayId\r\n    },\r\n    divisionId () {\r\n      return +this.$route.params.divisionId\r\n    },\r\n    poolId () {\r\n      return +this.$route.params.poolId\r\n    },\r\n    roundId () {\r\n      return +this.$route.params.dayId\r\n    },\r\n    teamId () {\r\n      return +this.$route.params.teamId\r\n    },\r\n    tournamentId () {\r\n      return +this.$route.params.tournamentId\r\n    },\r\n    standingsI () {\r\n      return +this.$route.params.standingsI\r\n    },\r\n    liveProps () {\r\n      return this.$route.query && this.$route.query.liveN && {\r\n        n: +this.$route.query.liveN,\r\n        id: +(this.$route.query.liveId | 0)\r\n      }\r\n    }\r\n  }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.view.public && !_vm.round.published)?_c('v-container',{attrs:{\"fluid\":\"\"}},[_c('h2',{staticClass:\"ma-12 text-center\"},[_c('v-avatar',{attrs:{\"color\":\"red\"}},[_c('v-icon',{attrs:{\"color\":\"white\"}},[_vm._v(\"fas fa-eye-slash\")])],1),_c('br',{staticClass:\"hidden-md-and-up\"}),_vm._v(\" The pools have not been published yet. \")],1)]):_c('v-container',{staticClass:\"pa-0\",attrs:{\"fluid\":\"\"}},[_c('v-alert',{staticClass:\"mb-0\",attrs:{\"value\":_vm.view.admin && !_vm.round.published && _vm.round.flights.length > 0,\"transition\":\"scale-transition\",\"type\":\"warning\",\"prominent\":\"\",\"tile\":\"\"}},[_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"grow\"},[_c('strong',{staticClass:\"black--text\"},[_vm._v(_vm._s(_vm.division.name)+\" \"+_vm._s(_vm.round.name)+\" are not published. \")])]),_c('v-col',{staticClass:\"shrink\"},[_c('v-btn',{attrs:{\"loading\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.publish($event)}}},[_vm._v(\"publish\")])],1)],1)],1),_c('v-alert',{staticClass:\"mb-0\",attrs:{\"value\":_vm.view.admin && !!_vm.round.complete && !_vm.round.locked,\"transition\":\"scale-transition\",\"type\":\"warning\",\"prominent\":\"\",\"tile\":\"\"}},[_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"grow\"},[_c('strong',{staticClass:\"black--text\"},[_vm._v(_vm._s(_vm.division.name)+\" \"+_vm._s(_vm.round.name)+\" appears to be done. \")])]),_c('v-col',{staticClass:\"shrink\"},[_c('pool-finish-dialog')],1)],1)],1),(_vm.division.hydrated && !_vm.hideTabs)?[(_vm.division.hydrated && !_vm.hideTabs)?_c('v-tabs',{staticClass:\"color3 color3Text--text\",attrs:{\"background-color\":\"color3\",\"slider-color\":\"color3Text\",\"active-class\":\"color3Text color3--text\",\"show-arrows\":\"\",\"center-active\":\"\"}},_vm._l((_vm.tabs),function(tab,i){return _c('v-tab',{key:i,class:tab.active ? 'color3--text' : 'color3Text--text',attrs:{\"exact\":\"\",\"to\":tab.to}},[(tab.icon)?_c('v-icon',{staticClass:\"pr-1\",attrs:{\"color\":_vm.y=tab.active ? 'color3' : 'color3Text',\"small\":\"\"}},[_vm._v(_vm._s(tab.icon))]):_vm._e(),_vm._v(\" \"+_vm._s(tab.text)+\" \")],1)}),1):_vm._e(),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-spacer'),_c('v-btn',{staticClass:\"xsmall my-0 px-1\",class:{'mx-0': _vm.xs},attrs:{\"color\":\"color3\",\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.courts = !_vm.courts}}},[_vm._v(\"toggle \"+_vm._s(_vm.courts ? 'names' : 'courts'))]),(_vm.view.admin)?_c('v-btn',{staticClass:\"xsmall my-0 pl-1\",class:{'mx-0': _vm.xs},attrs:{\"color\":\"color3\",\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.settings = !_vm.settings}}},[_c('v-icon',[_vm._v(\"fas fa-cog\")])],1):_vm._e()],1),_c('v-expand-transition',[(_vm.settings)?_c('v-row',{staticClass:\"px-3\"},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card',{attrs:{\"flat\":\"\"}},[_c('round-settings',{attrs:{\"round\":_vm.round,\"fromSelect\":_vm.fromSelections,\"divisionId\":_vm.division.id,\"locked\":_vm.tournament.locked || _vm.division.complete}})],1)],1)],1):_vm._e()],1)]:_vm._e(),_c('router-view')],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <v-container fluid v-if=\"view.public && !round.published\">\r\n    <h2 class=\"ma-12 text-center\">\r\n      <v-avatar color=\"red\">\r\n        <v-icon color=\"white\">fas fa-eye-slash</v-icon>\r\n      </v-avatar>\r\n      <br class=\"hidden-md-and-up\">\r\n      The pools have not been published yet.\r\n    </h2>\r\n  </v-container>\r\n  <v-container fluid class=\"pa-0\" v-else>\r\n    <v-alert\r\n      :value=\"view.admin && !round.published && round.flights.length > 0\"\r\n      transition=\"scale-transition\"\r\n      type=\"warning\"\r\n      prominent tile\r\n      class=\"mb-0\"\r\n    >\r\n        <v-row align=\"center\">\r\n          <v-col class=\"grow\">\r\n            <strong class=\"black--text\">{{division.name}} {{round.name}} are not published. </strong>\r\n          </v-col>\r\n          <v-col class=\"shrink\">\r\n            <v-btn\r\n              @click.stop=\"publish\"\r\n              :loading=\"loading\"\r\n            >publish</v-btn>\r\n          </v-col>\r\n        </v-row>\r\n    </v-alert>\r\n    <v-alert\r\n      :value=\"view.admin && !!round.complete && !round.locked\"\r\n      transition=\"scale-transition\"\r\n      type=\"warning\"\r\n      prominent tile\r\n      class=\"mb-0\"\r\n    >\r\n        <v-row align=\"center\">\r\n          <v-col class=\"grow\">\r\n            <strong class=\"black--text\">{{division.name}} {{round.name}} appears to be done. </strong>\r\n          </v-col>\r\n          <v-col class=\"shrink\">\r\n            <pool-finish-dialog></pool-finish-dialog>\r\n          </v-col>\r\n        </v-row>\r\n    </v-alert>\r\n    <template v-if=\"division.hydrated && !hideTabs\">\r\n      <v-tabs\r\n        v-if=\"division.hydrated && !hideTabs\"\r\n        background-color=\"color3\"\r\n        slider-color=\"color3Text\"\r\n        active-class=\"color3Text color3--text\"\r\n        class=\"color3 color3Text--text\"\r\n        show-arrows\r\n        center-active\r\n      >\r\n        <v-tab\r\n          v-for=\"(tab, i) in tabs\"\r\n          :key=\"i\"\r\n          exact\r\n          :to=\"tab.to\"\r\n          :class=\"tab.active ? 'color3--text' : 'color3Text--text'\"\r\n        >\r\n          <v-icon v-if=\"tab.icon\" :color=\"y=tab.active ? 'color3' : 'color3Text'\" class=\"pr-1\" small>{{tab.icon}}</v-icon>\r\n          {{tab.text}}\r\n        </v-tab>\r\n      </v-tabs>\r\n      <v-row dense>\r\n        <v-spacer></v-spacer>\r\n        <v-btn\r\n          color=\"color3\"\r\n          text\r\n          class=\"xsmall my-0 px-1\"\r\n          :class=\"{'mx-0': xs}\"\r\n          @click.stop=\"courts = !courts\"\r\n        >toggle {{courts ? 'names' : 'courts'}}</v-btn>\r\n        <v-btn\r\n          color=\"color3\"\r\n          text\r\n          class=\"xsmall my-0 pl-1\"\r\n          v-if=\"view.admin\"\r\n          :class=\"{'mx-0': xs}\"\r\n          @click.stop=\"settings = !settings\"\r\n        >\r\n          <v-icon>fas fa-cog</v-icon>\r\n        </v-btn>\r\n      </v-row>\r\n      <v-expand-transition>\r\n        <v-row v-if=\"settings\" class=\"px-3\">\r\n          <v-col cols=\"12\">\r\n            <v-card flat>\r\n              <round-settings\r\n                :round=\"round\"\r\n                :fromSelect=\"fromSelections\"\r\n                :divisionId=\"division.id\"\r\n                :locked=\"tournament.locked || division.complete\"\r\n              ></round-settings>\r\n            </v-card>\r\n          </v-col>\r\n        </v-row>\r\n      </v-expand-transition>\r\n    </template>\r\n    <router-view></router-view>\r\n\r\n  </v-container>\r\n</template>\r\n\r\n<script>\r\nimport RouteMixin from '@/Mixins/RouteMixin'\r\nimport firstBy from 'thenby'\r\nimport { mapGetters } from 'vuex'\r\nimport { formatArray } from '@/Filters'\r\nconst PoolFinishDialog = () => import('@/components/Tournament/Pools/PoolFinishDialog')\r\nconst RoundSettings = () => import('@/components/Tournament/RoundSettings/RoundSettings.vue')\r\n\r\nexport default {\r\n  mixins: [RouteMixin],\r\n  data () {\r\n    return {\r\n      loading: false,\r\n      courts: false,\r\n      settings: false\r\n    }\r\n  },\r\n  computed: {\r\n    ...mapGetters(['getDivision', 'admin', 'view', 'tournament']),\r\n    hideTabs () {\r\n      return this.pools.length === 1 && (['Matches', 'Friday', 'Saturday', 'Sunday'].includes(this.round.name) || this.round.freePlay) && !this.view.admin\r\n    },\r\n    finishQ () {\r\n      return (this.view.admin && !!this.round.complete && !this.round.locked)\r\n    },\r\n    xs () {\r\n      return this.$vuetify.breakpoint.xsOnly\r\n    },\r\n    division () {\r\n      return this.getDivision(this.divisionId)\r\n    },\r\n    round () {\r\n      if (!this.division) return null\r\n      return this.division.days.find(f => f.id === this.dayId)\r\n    },\r\n    pools () {\r\n      const a = 0\r\n      const b = 999\r\n      return this.round && this.round.flight ? this.round.flight.pools.filter(f => f.number > a && f.number < b) : []\r\n    },\r\n    tabs () {\r\n      const tabs = []\r\n      if (!this.division.hydrated) return tabs\r\n      if (this.division.poolCount > 0) {\r\n        tabs.push({\r\n          i: 0,\r\n          text: 'Home',\r\n          to: { name: 'pools-home', params: { tournamentId: this.tournamentId, divisionId: this.divisionId, dayId: this.dayId } },\r\n          active: this.$route.name === 'pools-home'\r\n        })\r\n        this.pools.forEach(pool => {\r\n          tabs.push({\r\n            text: this.courts ? `Ct ${pool.courts ? formatArray(pool.courts) : '?'}` : this.round.freePlay ? 'Matches' : `Pool ${pool.name}`,\r\n            to: { name: 'pool-sheet', params: { poolId: pool.id } },\r\n            icon: pool.locked ? 'fas fa-lock' : null,\r\n            i: pool.number,\r\n            active: this.$route.name === 'pool-sheet' && this.poolId === pool.id\r\n          })\r\n        })\r\n      }\r\n      return tabs.sort(firstBy('i'))\r\n    },\r\n    fromSelections () {\r\n      return this.division.days.map(d => {\r\n        return {\r\n          id: d.id,\r\n          number: d.number,\r\n          poolPlay: d.poolPlay,\r\n          bracketPlay: d.bracketPlay,\r\n          text: `${d.name} Results`,\r\n          i: null\r\n        }\r\n      })\r\n    }\r\n  },\r\n  methods: {\r\n    publish () {\r\n      this.loading = true\r\n      this.round.patch({\r\n        published: true\r\n      })\r\n        .then(() => { this.round.published = true })\r\n        .catch(err => { console.log(err.response) })\r\n        .finally(() => { this.loading = false })\r\n    },\r\n    checkRedirect () {\r\n      if (this.view.admin && (!(this.round && this.round.pools && this.round.pools.length) && !this.round.flightsCreated) && this.division.hydrated) {\r\n        this.$router.push({ name: 'division-rounds', params: { replacement: true } })\r\n      }\r\n    }\r\n  },\r\n  watch: {\r\n    'view.admin' () {\r\n      this.checkRedirect()\r\n    },\r\n    'division.hydrated' (val) {\r\n      if (val) {\r\n        this.checkRedirect()\r\n      }\r\n    }\r\n  },\r\n  mounted () {\r\n    if (this.division.hydrated) {\r\n      this.checkRedirect()\r\n    }\r\n  },\r\n  components: {\r\n    PoolFinishDialog,\r\n    RoundSettings\r\n  }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n</style>\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=44d2731f&scoped=true&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"44d2731f\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VAvatar } from 'vuetify/lib/components/VAvatar';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VExpandTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VAlert,VAvatar,VBtn,VCard,VCol,VContainer,VExpandTransition,VIcon,VRow,VSpacer,VTab,VTabs})\n"],"sourceRoot":""}