{"version":3,"sources":["webpack:///./src/components/Team/Rostered/TournamentRosterManager.vue?e014","webpack:///src/components/Team/Rostered/TournamentRosterManager.vue","webpack:///./src/components/Team/Rostered/TournamentRosterManager.vue?d0db","webpack:///./src/components/Team/Rostered/TournamentRosterManager.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","division","teamLabelSingle","team","name","manualW","_e","class","success","status","rStarters","starters","alternates","rAlternates","iRoster","length","editing","_l","p","i","key","getPlayerText","on","$event","stopPropagation","editPlayer","jersey","drop","model","value","callback","$$v","window","expression","currentTeam","parentTeam","availablePlayers","ref","item","full","onChange","scopedSlots","_u","fn","proxy","addAll","tournament","membersOnly","id","onPlayerSelected","manualPlayer","dialog","selectedPlayer","$set","_n","inactiveDialog","inactiveMsg","text","staticRenderFns","props","data","iloading","addToRoster","btn","computed","getDivisionByTeam","numAllowedOnRoster","isNcaa","roster","numOfPlayers","dirtyOG","d","size","dirty","ppId","m","a","JSON","stringify","players","map","takenPlayers","sort","currentBtn","icon","color","disabled","click","save","dto","playerProfileIds","tags","addToParent","filter","methods","init","$emit","cancelClick","x","push","playerProfileId","$refs","select","blur","backClick","saveManual","$VBL","submit","fullName","levelIsGood","membershipLevels","al","l","levels","good","find","active","$nextTick","forEach","watch","v","handler","deep","components","PlayerLookup","SearchResultItem","mounted","component","VBtn","VCard","VCardActions","VCardText","VChip","VCol","VContainer","VDialog","VDivider","VFabTransition","VIcon","VList","VListItem","VListItemAction","VListItemContent","VListItemSubtitle","VListItemTitle","VRadio","VRadioGroup","VRow","VScrollXTransition","VSelect","VSlideYTransition","VSpacer","VTextField","VToolbar","VToolbarTitle","VWindow","VWindowItem"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,KAAK,CAACF,EAAG,cAAc,CAACG,YAAY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,KACA,MAIa,aAAAqE,EAAiB,QAiChC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,aAAA,OAAaC,UAAA,OAAUC,QAAA,KAAMC,OAAA,KAAKC,aAAA,KAAWC,UAAA,KAAQC,WAAA,KAASC,eAAA,OAAeC,QAAA,KAAMC,QAAA,KAAMC,YAAA,KAAUC,kBAAA,KAAgBC,iBAAA,OAAiBC,kBAAA,OAAkBC,eAAA,OAAeC,SAAA,KAAOC,cAAA,KAAYC,OAAA,KAAKC,mBAAA,OAAmBC,UAAA,KAAQC,kBAAA,OAAkBC,UAAA,KAAQC,aAAA,KAAWC,WAAA,KAASC,cAAA,OAAcC,UAAA,KAAQC,cAAA","file":"js/chunk-2d225b8a.515edc53.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{attrs:{\"flat\":\"\"}},[_c('v-card-text',{staticClass:\"pt-0\"},[_c('v-container',{staticClass:\"py-0\",attrs:{\"fluid\":\"\"}},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{staticClass:\"title\",attrs:{\"cols\":\"12\"}},[_vm._v(\" \"+_vm._s(_vm.division.teamLabelSingle)+\": \"+_vm._s(_vm.team.name)+\" \")]),(!_vm.manualW)?_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-chip',{class:{success: _vm.status.rStarters === _vm.status.starters}},[_vm._v(_vm._s(_vm.status.rStarters)+\" of \"+_vm._s(_vm.status.starters)+\" Required Players\")]),(_vm.status.alternates > 0 || _vm.status.rAlternates > 0)?_c('v-chip',[_vm._v(_vm._s(_vm.status.rAlternates)+_vm._s(_vm.status.alternates ? (\" of \" + (_vm.status.alternates)) : '')+\" Alternates\")]):_vm._e()],1):_vm._e(),_c('v-col',{attrs:{\"cols\":\"12\"}},[(_vm.iRoster.length > 0 && !_vm.manualW)?_c('v-card',[_c('v-list',{attrs:{\"two-line\":_vm.editing}},[_c('v-slide-y-transition',{staticClass:\"py-0\",attrs:{\"group\":\"\"}},[_vm._l((_vm.iRoster),function(p,i){return [(i !== 0)?_c('v-divider',{key:(i + \"-divider\")}):_vm._e(),_c('v-list-item',{key:(i + \"-\" + (p.ppId))},[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" \"+_vm._s(_vm.getPlayerText(p))+\" \")]),(_vm.editing)?_c('v-list-item-subtitle',{staticClass:\"clickable caption\",on:{\"click\":function($event){$event.stopPropagation();return _vm.editPlayer(p)}}},[_vm._v(\"Click to \"+_vm._s(p.jersey ? 'edit the' : 'add a')+\" jersey number\")]):_vm._e()],1),_c('v-list-item-action',[_c('v-scroll-x-transition',[(_vm.editing)?_c('v-btn',{attrs:{\"color\":\"error\",\"x-small\":\"\",\"text\":\"\",\"icon\":\"\"},on:{\"click\":function($event){return _vm.drop(p)}}},[_c('v-icon',[_vm._v(\"fas fa-trash\")])],1):_vm._e()],1)],1)],1)]})],2)],1)],1):_vm._e()],1),_c('v-col',{staticClass:\"text-center\",attrs:{\"cols\":\"12\"}},[_c('v-window',{attrs:{\"touchless\":\"\"},model:{value:(_vm.window),callback:function ($$v) {_vm.window=$$v},expression:\"window\"}},[_c('v-window-item',{key:0}),_c('v-window-item',{key:1},[(!_vm.editing && _vm.currentTeam.length === 0)?_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.editing = true}}},[_vm._v(\" Add a Player \")]):_vm._e()],1),_c('v-window-item',{key:2},[(_vm.parentTeam && _vm.window === 2)?_c('v-select',{key:_vm.availablePlayers.length,ref:\"select\",attrs:{\"label\":\"Select A Player\",\"loading\":!_vm.parentTeam,\"items\":_vm.availablePlayers,\"item-text\":function (item) { return _vm.getPlayerText(item); },\"item-value\":\"ppId\",\"return-object\":\"\",\"hide-details\":\"\",\"color\":\"color3\",\"item-color\":\"color3\",\"outlined\":\"\",\"disabled\":_vm.full},on:{\"change\":function (item) { return _vm.onChange(item); }},scopedSlots:_vm._u([{key:\"no-data\",fn:function(){return [_c('v-list-item',[_vm._v(\" There are no players on the \"+_vm._s(_vm.parentTeam.name)+\" roster \")])]},proxy:true},{key:\"append-item\",fn:function(){return [_c('v-divider'),_c('v-list-item',{on:{\"click\":function($event){$event.stopPropagation();_vm.manualW = 3}}},[_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\",\"x-small\":\"\"}},[_vm._v(\" player search \")])],1)]},proxy:true}],null,false,32666930)}):_vm._e(),_c('v-fab-transition',[(_vm.availablePlayers.length)?_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.addAll($event)}}},[_vm._v(\"Add All\")]):_vm._e()],1)],1),_c('v-window-item',{key:3},[_c('player-lookup',{attrs:{\"clearOnSelect\":true,\"membersOnly\":_vm.tournament.membersOnly,\"tId\":_vm.tournament.id},on:{\"player-selected\":_vm.onPlayerSelected}})],1),_c('v-window-item',{key:4},[(_vm.manualPlayer)?_c('div',[_c('search-result-item',{attrs:{\"player\":_vm.manualPlayer}}),_c('v-text-field',{attrs:{\"label\":\"Jersey Number\",\"outlined\":\"\",\"placeholder\":\"Enter A Jersey Number\"},model:{value:(_vm.jersey),callback:function ($$v) {_vm.jersey=$$v},expression:\"jersey\"}}),(false)?[_c('div',{staticClass:\"text-h6\"},[_vm._v(\"Should we add \"+_vm._s(_vm.manualPlayer.fullName)+\" to the \"+_vm._s(_vm.parentTeam.name)+\" roster permnnently? Or just for this \"+_vm._s(_vm.division.eventType.toLowerCase())+\"?\")]),_c('v-radio-group',{model:{value:(_vm.addToRoster),callback:function ($$v) {_vm.addToRoster=$$v},expression:\"addToRoster\"}},[_c('v-radio',{attrs:{\"color\":\"success\",\"label\":(\"Add to \" + (_vm.parentTeam.name) + \" roster\"),\"value\":true}}),_c('v-radio',{attrs:{\"color\":\"success\",\"label\":(\"Just this \" + (_vm.division.eventType.toLowerCase())),\"value\":false}})],1)]:_vm._e()],2):_vm._e()])],1)],1)],1)],1)],1),(false)?_c('v-card-actions',[_c('v-btn',{attrs:{\"color\":\"color3Text color3--text\",\"small\":\"\",\"fab\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.backClick($event)}}},[_c('v-icon',[_vm._v(\"fas fa-caret-left\")])],1),_c('v-spacer'),_c('v-fab-transition',[(_vm.editing)?_c('v-btn',{attrs:{\"color\":\"error white--text\",\"fab\":\"\",\"small\":\"\",\"disabled\":_vm.iloading},on:{\"click\":_vm.cancelClick}},[_c('v-icon',[_vm._v(\"fas fa-times\")])],1):_vm._e()],1),_c('v-fab-transition',[_c('v-btn',{key:_vm.currentBtn.key,attrs:{\"color\":_vm.currentBtn.color,\"disabled\":_vm.currentBtn.disabled,\"loading\":_vm.iloading,\"fab\":\"\",\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.currentBtn.click($event)}}},[_c('v-icon',[_vm._v(_vm._s(_vm.currentBtn.icon))])],1)],1)],1):_vm._e(),_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"300px\",\"transition\":\"dialog-transition\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[(_vm.selectedPlayer)?_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(_vm._s(_vm.selectedPlayer.name))])],1),_c('v-card-text',[_c('v-text-field',{attrs:{\"label\":\"Jersey Number\",\"clearable\":\"\",\"autofocus\":\"\",\"type\":\"number\"},on:{\"change\":function($event){_vm.dialog = false}},model:{value:(_vm.selectedPlayer.jersey),callback:function ($$v) {_vm.$set(_vm.selectedPlayer, \"jersey\", _vm._n($$v))},expression:\"selectedPlayer.jersey\"}})],1),_c('v-card-actions',{staticClass:\"justify-end\"},[_c('v-btn',{attrs:{\"color\":\"success white--text\",\"fab\":\"\",\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.dialog = false}}},[_c('v-icon',[_vm._v(\"fas fa-save\")])],1)],1)],1):_vm._e()],1),_c('v-dialog',{attrs:{\"max-width\":\"300px\",\"transition\":\"dialog-transition\"},model:{value:(_vm.inactiveDialog),callback:function ($$v) {_vm.inactiveDialog=$$v},expression:\"inactiveDialog\"}},[_c('v-card',[_c('v-card-text',[_c('div',[_c('h3',{staticClass:\"headline\"},[_vm._v(\"Oops\")]),_c('div',[_vm._v(_vm._s(_vm.inactiveMsg.text))]),(false)?_c('div',{staticClass:\"pt-3\"},[_c('v-btn',{attrs:{\"color\":\"color3 color3Text--text\",\"small\":\"\",\"href\":_vm.joinNow}},[_vm._v(_vm._s(_vm.inactiveMsg.btn))])],1):_vm._e()])]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"color3\"},on:{\"click\":function($event){$event.stopPropagation();_vm.inactiveDialog = false}}},[_vm._v(\"Got it\")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <v-card flat>\r\n    <v-card-text class=\"pt-0\">\r\n      <v-container fluid class=\"py-0\">\r\n        <v-row dense>\r\n          <v-col cols=\"12\" class=\"title\">\r\n            {{division.teamLabelSingle}}: {{team.name}}\r\n          </v-col>\r\n          <v-col cols=\"12\" v-if=\"!manualW\">\r\n            <v-chip :class=\"{success: status.rStarters === status.starters}\">{{status.rStarters}} of {{status.starters}} Required Players</v-chip>\r\n            <v-chip v-if=\"status.alternates > 0 || status.rAlternates > 0\">{{status.rAlternates}}{{status.alternates ? ` of ${status.alternates}` : ''}} Alternates</v-chip>\r\n          </v-col>\r\n          <v-col cols=\"12\">\r\n            <v-card v-if=\"iRoster.length > 0 && !manualW\">\r\n              <v-list :two-line=\"editing\">\r\n                <v-slide-y-transition\r\n                  class=\"py-0\"\r\n                  group\r\n                >\r\n                  <template v-for=\"(p, i) in iRoster\">\r\n                    <v-divider\r\n                      v-if=\"i !== 0\"\r\n                      :key=\"`${i}-divider`\"\r\n                    ></v-divider>\r\n                    <v-list-item :key=\"`${i}-${p.ppId}`\">\r\n                      <v-list-item-content>\r\n                        <v-list-item-title>\r\n                          {{getPlayerText(p)}}\r\n                        </v-list-item-title>\r\n                        <v-list-item-subtitle v-if=\"editing\" class=\"clickable caption\" @click.stop=\"editPlayer(p)\">Click to {{p.jersey ? 'edit the' : 'add a'}} jersey number</v-list-item-subtitle>\r\n                      </v-list-item-content>\r\n                      <v-list-item-action>\r\n                        <v-scroll-x-transition>\r\n                          <v-btn color=\"error\" x-small text icon v-if=\"editing\" @click=\"drop(p)\">\r\n                            <v-icon>fas fa-trash</v-icon>\r\n                          </v-btn>\r\n                        </v-scroll-x-transition>\r\n                      </v-list-item-action>\r\n                    </v-list-item>\r\n                  </template>\r\n\r\n                </v-slide-y-transition>\r\n              </v-list>\r\n            </v-card>\r\n          </v-col>\r\n          <v-col cols=\"12\" class=\"text-center\">\r\n            <v-window v-model=\"window\" touchless>\r\n              <v-window-item :key=\"0\">\r\n\r\n              </v-window-item>\r\n              <v-window-item :key=\"1\">\r\n                <v-btn\r\n                  color=\"color3\"\r\n                  text\r\n                  @click.stop=\"editing = true\"\r\n                  v-if=\"!editing && currentTeam.length === 0\"\r\n                >\r\n                  Add a Player\r\n                </v-btn>\r\n              </v-window-item>\r\n              <v-window-item :key=\"2\">\r\n                <v-select\r\n                  :key=\"availablePlayers.length\"\r\n                  label=\"Select A Player\"\r\n                  v-if=\"parentTeam && window === 2\"\r\n                  :loading=\"!parentTeam\"\r\n                  :items=\"availablePlayers\"\r\n                  :item-text=\"item => getPlayerText(item)\"\r\n                  item-value=\"ppId\"\r\n                  return-object\r\n                  @change=\"item => onChange(item)\"\r\n                  hide-details\r\n                  color=\"color3\"\r\n                  item-color=\"color3\"\r\n                  ref=\"select\"\r\n                  outlined\r\n                  :disabled=\"full\"\r\n                >\r\n                  <template v-slot:no-data>\r\n                    <v-list-item>\r\n                      There are no players on the {{parentTeam.name}} roster\r\n                    </v-list-item>\r\n                  </template>\r\n                  <template v-slot:append-item>\r\n                    <v-divider></v-divider>\r\n                    <v-list-item @click.stop=\"manualW = 3\">\r\n                      <v-btn color=\"color3\" text x-small>\r\n                        player search\r\n                      </v-btn>\r\n                    </v-list-item>\r\n                  </template>\r\n                </v-select>\r\n                <v-fab-transition>\r\n                  <v-btn\r\n                    v-if=\"availablePlayers.length\"\r\n                    color=\"color3\"\r\n                    text x-small\r\n                    @click.stop=\"addAll\"\r\n                  >Add All</v-btn>\r\n                </v-fab-transition>\r\n              </v-window-item>\r\n              <v-window-item :key=\"3\">\r\n                <player-lookup\r\n                  @player-selected=\"onPlayerSelected\"\r\n                  :clearOnSelect=\"true\"\r\n                  :membersOnly=\"tournament.membersOnly\"\r\n                  :tId=\"tournament.id\"\r\n                ></player-lookup>\r\n              </v-window-item>\r\n              <v-window-item :key=\"4\">\r\n                <div v-if=\"manualPlayer\">\r\n                  <search-result-item\r\n                    :player=\"manualPlayer\"\r\n                  ></search-result-item>\r\n                  <v-text-field\r\n                    label=\"Jersey Number\"\r\n                    outlined\r\n                    placeholder=\"Enter A Jersey Number\"\r\n                    v-model=\"jersey\"\r\n                  ></v-text-field>\r\n                  <template v-if=\"false\">\r\n                    <div class=\"text-h6\">Should we add {{manualPlayer.fullName}} to the {{parentTeam.name}} roster permnnently? Or just for this {{division.eventType.toLowerCase()}}?</div>\r\n                    <v-radio-group v-model=\"addToRoster\">\r\n                      <v-radio color=\"success\" :label=\"`Add to ${parentTeam.name} roster`\" :value=\"true\"></v-radio>\r\n                      <v-radio color=\"success\" :label=\"`Just this ${division.eventType.toLowerCase()}`\" :value=\"false\"></v-radio>\r\n                    </v-radio-group>\r\n                  </template>\r\n                </div>\r\n              </v-window-item>\r\n            </v-window>\r\n          </v-col>\r\n        </v-row>\r\n      </v-container>\r\n    </v-card-text>\r\n    <v-card-actions v-if=\"false\">\r\n      <v-btn\r\n        color=\"color3Text color3--text\"\r\n        small fab @click.stop=\"backClick\"\r\n      >\r\n        <v-icon>fas fa-caret-left</v-icon>\r\n      </v-btn>\r\n      <v-spacer></v-spacer>\r\n      <v-fab-transition>\r\n        <v-btn\r\n          color=\"error white--text\"\r\n          fab small\r\n          @click=\"cancelClick\"\r\n          :disabled=\"iloading\"\r\n          v-if=\"editing\"\r\n        >\r\n          <v-icon>fas fa-times</v-icon>\r\n        </v-btn>\r\n      </v-fab-transition>\r\n      <v-fab-transition>\r\n        <v-btn\r\n          :key=\"currentBtn.key\"\r\n          :color=\"currentBtn.color\"\r\n          :disabled=\"currentBtn.disabled\"\r\n          @click.stop=\"currentBtn.click\"\r\n          :loading=\"iloading\"\r\n          fab small\r\n        >\r\n          <v-icon>{{currentBtn.icon}}</v-icon>\r\n        </v-btn>\r\n      </v-fab-transition>\r\n\r\n    </v-card-actions>\r\n\r\n    <v-dialog\r\n      v-model=\"dialog\"\r\n      persistent\r\n      max-width=\"300px\"\r\n      transition=\"dialog-transition\"\r\n    >\r\n      <v-card v-if=\"selectedPlayer\">\r\n        <v-toolbar color=\"color1 color1Text--text\">\r\n          <v-toolbar-title>{{selectedPlayer.name}}</v-toolbar-title>\r\n        </v-toolbar>\r\n        <v-card-text>\r\n          <v-text-field\r\n            label=\"Jersey Number\"\r\n            v-model.number=\"selectedPlayer.jersey\"\r\n            clearable\r\n            @change=\"dialog = false\"\r\n            autofocus\r\n            type=\"number\"\r\n          ></v-text-field>\r\n        </v-card-text>\r\n        <v-card-actions class=\"justify-end\">\r\n          <v-btn color=\"success white--text\" fab small @click.stop=\"dialog = false\">\r\n            <v-icon>fas fa-save</v-icon>\r\n          </v-btn>\r\n        </v-card-actions>\r\n      </v-card>\r\n    </v-dialog>\r\n    <v-dialog\r\n      v-model=\"inactiveDialog\"\r\n      max-width=\"300px\"\r\n      transition=\"dialog-transition\"\r\n    >\r\n      <v-card>\r\n        <v-card-text>\r\n          <div>\r\n            <h3 class=\"headline\">Oops</h3>\r\n            <div>{{inactiveMsg.text}}</div>\r\n            <div class=\"pt-3\" v-if=\"false\">\r\n              <v-btn color=\"color3 color3Text--text\" small :href=\"joinNow\">{{inactiveMsg.btn}}</v-btn>\r\n            </div>\r\n          </div>\r\n        </v-card-text>\r\n        <v-card-actions>\r\n          <v-spacer></v-spacer>\r\n          <v-btn text color=\"color3\" @click.stop=\"inactiveDialog = false\">Got it</v-btn>\r\n        </v-card-actions>\r\n      </v-card>\r\n    </v-dialog>\r\n\r\n  </v-card>\r\n</template>\r\n\r\n<script>\r\nimport { mapGetters } from 'vuex'\r\nimport { symmetricDifference } from '@/helpers/SetFunctions'\r\nimport { firstBy } from 'thenby'\r\nimport { formatArrayOr } from '@/Filters'\r\nconst PlayerLookup = () => import('@/components/Player/Search/PlayerLookup.vue')\r\n// const PlayerLookup = () => import('@/components/Tournament/Registration/New/PlayerLookup.vue')\r\nconst SearchResultItem = () => import('@/components/Player/Search/SearchResultItem.vue')\r\n\r\nexport default {\r\n  props: ['team', 'parentTeam', 'active', 'loading'],\r\n  data () {\r\n    return {\r\n      iRoster: [],\r\n      editing: false,\r\n      selectedPlayer: null,\r\n      iloading: false,\r\n      manualW: false,\r\n      manualPlayer: false,\r\n      addToRoster: true,\r\n      jersey: null,\r\n      dialog: false,\r\n      inactiveDialog: false,\r\n      inactiveMsg: {\r\n        text: 'The member you selected has an expired or invalid membership',\r\n        btn: 'Renew Now'\r\n      }\r\n    }\r\n  },\r\n  computed: {\r\n    ...mapGetters(['tournament']),\r\n    window () {\r\n      return this.manualW || (this.editing && !this.full ? 2 : !this.editing && this.currentTeam.length === 0 ? 1 : 0)\r\n    },\r\n    division () {\r\n      return this.team && this.tournament.getDivisionByTeam(this.team.id)\r\n    },\r\n    full () {\r\n      return this.iRoster.length === this.division.numAllowedOnRoster && !this.division.isNcaa\r\n    },\r\n    status () {\r\n      return {\r\n        roster: this.iRoster.length,\r\n        starters: this.division.numOfPlayers,\r\n        get rStarters () {\r\n          return this.roster < this.starters ? this.roster : this.starters\r\n        },\r\n        alternates: this.division.numAllowedOnRoster - this.division.numOfPlayers,\r\n        get rAlternates () {\r\n          return this.roster <= this.starters ? 0 : this.roster - this.starters\r\n        }\r\n      }\r\n    },\r\n    dirtyOG () {\r\n      const a = new Set(this.currentTeam)\r\n      const b = new Set(this.takenPlayers)\r\n      const d = symmetricDifference(a, b)\r\n      return d.size > 0\r\n    },\r\n    dirty () {\r\n      const a = JSON.stringify(this.team.players.map(m => {\r\n        return {\r\n          ppId: m.ppId,\r\n          name: m.name,\r\n          jersey: m.jersey\r\n        }\r\n      }))\r\n      return a !== JSON.stringify(this.iRoster)\r\n    },\r\n    currentTeam () {\r\n      return this.team.players.map(m => m.ppId)\r\n    },\r\n    takenPlayers () {\r\n      return this.iRoster.map(m => m.ppId)\r\n    },\r\n    availablePlayers () {\r\n      const p = this.parentTeam ? this.parentTeam.roster.filter(f => !this.takenPlayers.includes(f.playerProfileId)) : []\r\n      return p.sort(firstBy('name'))\r\n    },\r\n    currentBtn () {\r\n      return this.editing ? {\r\n        icon: 'fas fa-save',\r\n        color: 'success white-text',\r\n        disabled: !this.dirty && this.manualW !== 4,\r\n        key: 'save',\r\n        click: this.save\r\n      } : {\r\n        icon: 'fas fa-pencil',\r\n        color: 'color3Text color3--text',\r\n        key: 'edit',\r\n        click: () => { this.editing = true }\r\n      }\r\n    },\r\n    dto () {\r\n      return {\r\n        playerProfileIds: this.iRoster.map(m => m.ppId),\r\n        tags: this.iRoster.map(m => m.jersey ? `${m.ppId}-jersey-${m.jersey}` : false).filter(f => f),\r\n        addToParent: this.iRoster.filter(f => f.addToParent).map(m => m.ppId)\r\n      }\r\n    }\r\n  },\r\n  methods: {\r\n    init () {\r\n      this.manualW = false\r\n      this.editing = false\r\n      this.addToRoster = true\r\n      this.iRoster = this.team.players.map(m => {\r\n        return {\r\n          ppId: m.ppId,\r\n          name: m.name,\r\n          jersey: m.jersey\r\n        }\r\n      })\r\n      this.$emit('current-btn-change', this.currentBtn)\r\n    },\r\n    editPlayer (p) {\r\n      this.selectedPlayer = p\r\n      this.dialog = true\r\n    },\r\n    cancelClick () {\r\n      this.init()\r\n    },\r\n    getPlayerText (p) {\r\n      const j = p.jersey ? ` #${p.jersey}` : ''\r\n      return `${p.name}${j}`\r\n    },\r\n    onChange (item) {\r\n      const i = this.iRoster\r\n      const x = i.find(f => f.ppId === item.ppId)\r\n      if (!x) {\r\n        i.push({\r\n          ppId: item.playerProfileId,\r\n          name: item.name,\r\n          jersey: item.jersey,\r\n          addToRoster: !!item.addToRoster\r\n        })\r\n      }\r\n      this.$refs.select && this.$refs.select.blur()\r\n      this.selectedPlayer = null\r\n    },\r\n    drop (p) {\r\n      this.iRoster = this.iRoster.filter(f => f.ppId !== p.ppId)\r\n    },\r\n    backClick () {\r\n      if (this.manualW) {\r\n        if (this.manualW === 4) {\r\n          this.manualW--\r\n        } else {\r\n          this.manualW = null\r\n        }\r\n        return\r\n      }\r\n      this.$emit('back-click')\r\n    },\r\n    save () {\r\n      if (this.manualW === 4) {\r\n        return this.saveManual()\r\n      }\r\n      this.iloading = true\r\n      this.$VBL.roster.submit(this.team.id, this.dto)\r\n        .then(r => {\r\n          this.team.update(r.data)\r\n          this.cancelClick()\r\n        })\r\n        .catch(e => console.log(e.response))\r\n        .finally(() => {\r\n          this.iloading = false\r\n        })\r\n    },\r\n    saveManual () {\r\n      this.manualW = null\r\n      this.onChange({\r\n        playerProfileId: this.manualPlayer.id,\r\n        name: this.manualPlayer.fullName,\r\n        addToParent: this.addToRoster,\r\n        jersey: this.jersey\r\n      })\r\n      this.manualPlayer = null\r\n      this.jersey = null\r\n    },\r\n    onPlayerSelected (p) {\r\n      if (this.tournament.membersOnly) {\r\n        var levelIsGood = true\r\n        if (this.tournament.membershipLevels && this.tournament.membershipLevels.length) {\r\n          var al = this.tournament.membershipLevels.map(m => m.toLowerCase())\r\n          var l = p.levels.map(f => f.toLowerCase())\r\n          var good = l.find(f => al.includes(f))\r\n          if (!good) levelIsGood = false\r\n        }\r\n\r\n        if (!p.active || !levelIsGood) {\r\n          this.inactiveMsg = !p.active ? {\r\n            text: 'The member you selected has an expired or invalid membership',\r\n            btn: 'Renew Now'\r\n          } : {\r\n            text: `This event requires a ${formatArrayOr(this.tournament.membershipLevels)} membership`,\r\n            btn: 'Join Now'\r\n          }\r\n\r\n          this.$nextTick(() => {\r\n            this.selectedResult = null\r\n            this.inactiveDialog = true\r\n            this.prevTerm = this.term\r\n          })\r\n          return\r\n        }\r\n      }\r\n      this.manualPlayer = p\r\n      this.manualW = 4\r\n    },\r\n    addAll () {\r\n      this.availablePlayers.forEach(p => {\r\n        this.onChange(p)\r\n      })\r\n    }\r\n  },\r\n  watch: {\r\n    active: 'init',\r\n    iloading: function (v) {\r\n      this.$emit('loading-change', v)\r\n    },\r\n    editing: function (v) {\r\n      this.$emit('edit-change', v)\r\n      this.$emit('current-btn-change', this.currentBtn)\r\n    },\r\n    currentBtn: {\r\n      handler () {\r\n        this.$emit('current-btn-change', this.currentBtn)\r\n      },\r\n      deep: true\r\n    }\r\n  },\r\n  components: {\r\n    PlayerLookup,\r\n    SearchResultItem\r\n  },\r\n  mounted () {\r\n    this.init()\r\n  }\r\n}\r\n</script>\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!./TournamentRosterManager.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!./TournamentRosterManager.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TournamentRosterManager.vue?vue&type=template&id=212f9b4c&\"\nimport script from \"./TournamentRosterManager.vue?vue&type=script&lang=js&\"\nexport * from \"./TournamentRosterManager.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  null,\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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VFabTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VRadio } from 'vuetify/lib/components/VRadioGroup';\nimport { VRadioGroup } from 'vuetify/lib/components/VRadioGroup';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VScrollXTransition } from 'vuetify/lib/components/transitions';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSlideYTransition } from 'vuetify/lib/components/transitions';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\nimport { VWindow } from 'vuetify/lib/components/VWindow';\nimport { VWindowItem } from 'vuetify/lib/components/VWindow';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VChip,VCol,VContainer,VDialog,VDivider,VFabTransition,VIcon,VList,VListItem,VListItemAction,VListItemContent,VListItemSubtitle,VListItemTitle,VRadio,VRadioGroup,VRow,VScrollXTransition,VSelect,VSlideYTransition,VSpacer,VTextField,VToolbar,VToolbarTitle,VWindow,VWindowItem})\n"],"sourceRoot":""}