{"version":3,"sources":["webpack:///./src/classes/RosteredTeam.js","webpack:///./src/components/Team/Rostered/MyTeamsDialog.vue?9238","webpack:///./src/components/Team/Rostered/MyTeamsManager.vue?fc85","webpack:///src/components/Team/Rostered/MyTeamsManager.vue","webpack:///./src/components/Team/Rostered/MyTeamsManager.vue?af5b","webpack:///./src/components/Team/Rostered/MyTeamsManager.vue","webpack:///src/components/Team/Rostered/MyTeamsDialog.vue","webpack:///./src/components/Team/Rostered/MyTeamsDialog.vue?2b7e","webpack:///./src/components/Team/Rostered/MyTeamsDialog.vue","webpack:///./src/components/Team/Rostered/MyTeamsManager.vue?00ff"],"names":["RosteredTeam","dto","id","name","this","update","JSON","parse","exclude","DtoUpdate","owner","sortRoster","by","roster","sort","firstBy","jerseySort","thenBy","tvSort","a","b","jersey","console","log","truVolleyScore","logoUrl","type","ownerType","ownerId","map","m","playerProfileId","picUrl","deleted","info","truVolleyConfidence","vLogoUrl","render","_vm","_h","$createElement","_c","_self","attrs","model","value","callback","$$v","myDialog","expression","_v","_s","teams","length","on","$event","stopPropagation","loading","staticClass","ref","showActions","editing","currentBtn","_e","backClick","cancelClick","key","color","disabled","click","icon","staticRenderFns","window","rosteredTeams","_l","t","i","team","players","division","numOfPlayers","manageClick","goto","selectedTeam","parentTeam","$emit","props","data","computed","rosteredTeamId","logo","base","methods","tab","r","query","$router","push","getTeam","$VBL","get","currentBtnClick","$refs","teamManager","watch","v","active","components","TournamentRosterManager","component","VBtn","VChip","VDivider","VExpandTransition","VIcon","VImg","VList","VListItem","VListItemAction","VListItemContent","VListItemSubtitle","VListItemTitle","VWindow","VWindowItem","dialog","set","onEditChange","MyTeamsManager","VCard","VCardActions","VCardText","VDialog","VFabTransition","VSpacer","VToolbar","VToolbarTitle"],"mappings":"wOAGqBA,E,WAanB,WAAaC,GAAK,gDAZb,GAYa,2BAXX,MAWW,8BAVR,MAUQ,2BATX,MASW,gCARN,MAQM,8BAPR,GAOQ,6BANT,IAMS,4BALV,CACNC,GAAI,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AAA,OAAaC,UAAA,OAAUC,UAAA,KAAQnB,WAAA,KAASC,kBAAA,OAAkBmB,eAAA,OAAelB,QAAA,KAAMmB,UAAA,KAAQC,WAAA,KAASC,cAAA,U,kCClCzI,yBAAihB,EAAG","file":"js/chunk-8c4f8892.ca21ff3a.js","sourcesContent":["import { firstBy } from 'thenby'\r\nimport DtoUpdate from './DtoUpdate'\r\n\r\nexport default class RosteredTeam {\r\n id = 0\r\n name = null\r\n logoUrl = null\r\n type = null\r\n ownerType = null\r\n ownerId = 0\r\n roster = []\r\n owner = {\r\n id: 0,\r\n name: null\r\n }\r\n\r\n constructor (dto) {\r\n if (dto) {\r\n this.update(dto)\r\n }\r\n }\r\n\r\n update (dto) {\r\n if (typeof dto === 'string') dto = JSON.parse(dto)\r\n const exclude = ['owner']\r\n DtoUpdate(dto, this, exclude)\r\n\r\n if (dto.owner) {\r\n this.owner = dto.owner\r\n }\r\n this.sortRoster()\r\n }\r\n\r\n sortRoster (by) {\r\n by = by || 'Jersey'\r\n if (by === 'Jersey') {\r\n this.roster = this.roster.sort(firstBy(this.jerseySort).thenBy('name'))\r\n } else if (by === 'TruVolley') {\r\n this.roster = this.roster.sort(firstBy(this.tvSort).thenBy('name'))\r\n } else {\r\n this.roster = this.roster.sort(firstBy('name').thenBy((a, b) => {\r\n a = a.jersey === null ? 999 : a.jersey\r\n b = b.jersey === null ? 999 : b.jersey\r\n return a === b ? 0 : a < b ? -1 : 1\r\n }))\r\n }\r\n }\r\n\r\n jerseySort (a, b) {\r\n a = a.jersey === null ? 999 : a.jersey\r\n b = b.jersey === null ? 999 : b.jersey\r\n return a === b ? 0 : a < b ? -1 : 1\r\n }\r\n\r\n tvSort (a, b) {\r\n console.log('here')\r\n a = a.truVolleyScore === null ? 0 : a.truVolleyScore\r\n b = b.truVolleyScore === null ? 0 : b.truVolleyScore\r\n return a === b ? 0 : a > b ? -1 : 1\r\n }\r\n\r\n get dto () {\r\n return {\r\n id: this.id,\r\n name: this.name,\r\n logoUrl: this.logoUrl,\r\n type: this.type,\r\n ownerType: this.ownerType,\r\n ownerId: this.ownerId,\r\n roster: this.roster.map(m => {\r\n return {\r\n id: m.id,\r\n playerProfileId: m.playerProfileId,\r\n name: m.name,\r\n jersey: m.jersey,\r\n picUrl: m.picUrl,\r\n deleted: m.deleted,\r\n info: m.info,\r\n truVolleyScore: m.truVolleyScore,\r\n truVolleyConfidence: m.truVolleyConfidence\r\n }\r\n }),\r\n owner: {\r\n id: this.owner.id,\r\n name: this.owner.name\r\n },\r\n vLogoUrl: this.vLogoUrl\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 _c('v-dialog',{attrs:{\"scrollable\":\"\",\"max-width\":\"500px\",\"transition\":\"dialog-transition\"},model:{value:(_vm.myDialog),callback:function ($$v) {_vm.myDialog=$$v},expression:\"myDialog\"}},[_c('v-expand-transition',[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(\"My Team\"+_vm._s(_vm.teams.length > 1 ? 's' : ''))]),_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"color2 color2Text--text\",\"small\":\"\",\"fab\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.myDialog = false}}},[_c('v-icon',[_vm._v(\"fas fa-times\")])],1)],1),_c('loading-bar',{model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:\"loading\"}}),_c('v-card-text',{staticClass:\"pa-0\"},[_c('my-teams-manager',{ref:\"teamManager\",attrs:{\"teams\":_vm.teams,\"active\":_vm.myDialog},on:{\"goto-click\":function($event){_vm.myDialog = false},\"show-action-change\":function($event){_vm.showActions = $event},\"edit-change\":function($event){_vm.editing = $event},\"loading-change\":function($event){_vm.loading = $event},\"current-btn-change\":function($event){_vm.currentBtn = $event}}})],1),(_vm.showActions)?_c('v-divider'):_vm._e(),(_vm.showActions)?_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.loading},on:{\"click\":_vm.cancelClick}},[_c('v-icon',[_vm._v(\"fas fa-times\")])],1):_vm._e()],1),_c('v-fab-transition',[(_vm.currentBtn)?_c('v-btn',{key:_vm.currentBtn.key,attrs:{\"color\":_vm.currentBtn.color,\"disabled\":_vm.currentBtn.disabled,\"loading\":_vm.loading,\"fab\":\"\",\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.currentBtn.click($event)}}},[_c('v-icon',[_vm._v(_vm._s(_vm.currentBtn.icon))])],1):_vm._e()],1)],1):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _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-expand-transition',[(_vm.rosteredTeams && _vm.rosteredTeams.length === 1 && false)?_c('div',{staticClass:\"text-center\"},[_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.goto({ to: {\n name: 'tournament-brochure',\n query: { tab: 'teams', id: _vm.rosteredTeams[0].id }\n }})}}},[_c('v-img',{attrs:{\"src\":_vm.rosteredTeams[0].logo,\"max-height\":\"48\",\"max-width\":\"48\",\"contain\":\"\"}}),_vm._v(\" Master Schedule \"),_c('v-icon',{staticClass:\"ml-3\"},[_vm._v(\"fas fa-caret-right\")])],1)],1):_vm._e()]),_c('v-list',{staticClass:\"mt-2\"},[_vm._l((_vm.teams),function(t,i){return [(i > 0)?_c('v-divider',{key:i + 'b'}):_vm._e(),_c('v-list-item',{key:i + 'a',staticClass:\"mini\"},[_c('v-list-item-content',{staticClass:\"pa-0\"},[_c('v-list-item-title',{staticClass:\"d-flex justify-space-between\"},[_c('span',[_vm._v(_vm._s(t.team.name))])])],1),(t.team.isRostered)?_c('v-list-item-content',{staticClass:\"pa-0\"},[_c('v-list-item-title',{staticClass:\"text-end\"},[(t.team.players.length < t.division.numOfPlayers)?_c('v-chip',{staticClass:\"warning black--text\",attrs:{\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.manageClick(t.team)}}},[_c('v-icon',{staticClass:\"mr-1 ml-n1 black--text\",attrs:{\"x-small\":\"\"}},[_vm._v(\"fas fa-exclamation-triangle\")]),_vm._v(\" Roster Incomplete \")],1):_vm._e(),(t.team.players.length >= t.division.numOfPlayers)?_c('v-chip',{staticClass:\"success white--text\",attrs:{\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.manageClick(t.team)}}},[_c('v-icon',{staticClass:\"mr-1 ml-n1 white--text\",attrs:{\"x-small\":\"\"}},[_vm._v(\"fas fa-check\")]),_vm._v(\" Roster Complete \")],1):_vm._e()],1)],1):_vm._e(),(false)?_c('v-list-item-action',[_c('v-btn',{attrs:{\"color\":\"color3 color3Text--text\",\"small\":\"\",\"fab\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.goto(t)}}},[_c('v-icon',[_vm._v(\"fas fa-caret-right\")])],1)],1):_vm._e()],1),_c('v-list-item',{key:i + 'c',staticClass:\"x-mini\"},[_c('v-list-item-content',{staticClass:\"pt-0\"},[_c('v-list-item-subtitle',{staticClass:\"d-flex2 justify-center\"},[(t.team.isRostered)?_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.manageClick(t.team)}}},[_vm._v(\"Manager Roster\")]):_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.goto(t, 'partner')}}},[_vm._v(\"Manager Team\")]),_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.goto(t)}}},[_vm._v(\"Jump to Schedule\")])],1)],1)],1)]})],2)],1),_c('v-window-item',{key:1},[_c('tournament-roster-manager',{ref:\"teamManager\",attrs:{\"team\":_vm.selectedTeam,\"parentTeam\":_vm.parentTeam,\"active\":_vm.window === 1},on:{\"back-click\":function($event){_vm.window = 0},\"edit-change\":function($event){return _vm.$emit('edit-change', $event)},\"loading-change\":function($event){return _vm.$emit('loading-change', $event)},\"current-btn-change\":function($event){return _vm.$emit('current-btn-change', $event)}}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <v-window v-model=\"window\" touchless>\r\n <v-window-item :key=\"0\">\r\n <v-expand-transition>\r\n <div v-if=\"rosteredTeams && rosteredTeams.length === 1 && false\" class=\"text-center\">\r\n <v-btn\r\n color=\"color3\"\r\n text\r\n @click.stop=\"goto({ to: {\r\n name: 'tournament-brochure',\r\n query: { tab: 'teams', id: rosteredTeams[0].id }\r\n }})\">\r\n <v-img\r\n :src=\"rosteredTeams[0].logo\"\r\n max-height=\"48\"\r\n max-width=\"48\"\r\n contain\r\n ></v-img>\r\n Master Schedule\r\n <v-icon class=\"ml-3\">fas fa-caret-right</v-icon>\r\n </v-btn>\r\n </div>\r\n </v-expand-transition>\r\n <v-list class=\"mt-2\">\r\n <template v-for=\"(t, i) in teams\">\r\n <v-divider v-if=\"i > 0\" :key=\"i + 'b'\"></v-divider>\r\n <v-list-item :key=\"i + 'a'\" class=\"mini\">\r\n <v-list-item-content class=\"pa-0\">\r\n <v-list-item-title class=\"d-flex justify-space-between\">\r\n <span>{{t.team.name}}</span>\r\n </v-list-item-title>\r\n </v-list-item-content>\r\n <v-list-item-content class=\"pa-0\" v-if=\"t.team.isRostered\">\r\n <v-list-item-title class=\"text-end\">\r\n <v-chip\r\n small\r\n class=\"warning black--text\"\r\n v-if=\"t.team.players.length < t.division.numOfPlayers\"\r\n @click.stop=\"manageClick(t.team)\"\r\n >\r\n <v-icon x-small class=\"mr-1 ml-n1 black--text\">fas fa-exclamation-triangle</v-icon>\r\n Roster Incomplete\r\n </v-chip>\r\n <v-chip\r\n small\r\n class=\"success white--text\"\r\n v-if=\"t.team.players.length >= t.division.numOfPlayers\"\r\n @click.stop=\"manageClick(t.team)\"\r\n >\r\n <v-icon x-small class=\"mr-1 ml-n1 white--text\">fas fa-check</v-icon>\r\n Roster Complete\r\n </v-chip>\r\n </v-list-item-title>\r\n </v-list-item-content>\r\n <v-list-item-action v-if=\"false\">\r\n <v-btn\r\n color=\"color3 color3Text--text\"\r\n small fab\r\n @click.stop=\"goto(t)\"\r\n >\r\n <v-icon>fas fa-caret-right</v-icon>\r\n </v-btn>\r\n </v-list-item-action>\r\n </v-list-item>\r\n <v-list-item :key=\"i + 'c'\" class=\"x-mini\">\r\n <v-list-item-content class=\"pt-0\">\r\n <v-list-item-subtitle class=\"d-flex2 justify-center\">\r\n <v-btn\r\n v-if=\"t.team.isRostered\"\r\n color=\"color3\"\r\n text x-small\r\n @click.stop=\"manageClick(t.team)\"\r\n >Manager Roster</v-btn>\r\n <v-btn\r\n v-else\r\n color=\"color3\"\r\n text x-small\r\n @click.stop=\"goto(t, 'partner')\"\r\n >Manager Team</v-btn>\r\n <v-btn\r\n color=\"color3\"\r\n text x-small\r\n @click.stop=\"goto(t)\"\r\n >Jump to Schedule</v-btn>\r\n </v-list-item-subtitle>\r\n </v-list-item-content>\r\n </v-list-item>\r\n </template>\r\n </v-list>\r\n </v-window-item>\r\n <v-window-item :key=\"1\">\r\n <tournament-roster-manager\r\n :team=\"selectedTeam\"\r\n :parentTeam=\"parentTeam\"\r\n :active=\"window === 1\"\r\n ref=\"teamManager\"\r\n @back-click=\"window = 0\"\r\n @edit-change=\"$emit('edit-change', $event)\"\r\n @loading-change=\"$emit('loading-change', $event)\"\r\n @current-btn-change=\"$emit('current-btn-change', $event)\"\r\n ></tournament-roster-manager>\r\n </v-window-item>\r\n </v-window>\r\n</template>\r\n\r\n<script>\r\nimport RosteredTeam from '@/classes/RosteredTeam'\r\nimport { mapGetters } from 'vuex'\r\nimport uniq from 'lodash.uniqby'\r\nconst TournamentRosterManager = () => import('@/components/Team/Rostered/TournamentRosterManager.vue')\r\n\r\nexport default {\r\n props: ['teams', 'active'],\r\n data () {\r\n return {\r\n window: 0,\r\n parentTeam: null,\r\n loading: false,\r\n editing: false,\r\n currentBtn: null,\r\n selectedTeam: null\r\n }\r\n },\r\n computed: {\r\n ...mapGetters(['tournament', 'user']),\r\n rosteredTeams () {\r\n const base = this.teams.filter(f => f.team.isRostered).map(t => {\r\n return {\r\n id: t.team.rosteredTeamId,\r\n logo: t.team.logo\r\n }\r\n })\r\n return base && base.length && uniq(base, 'id')\r\n }\r\n },\r\n methods: {\r\n goto (t, tab) {\r\n const r = JSON.parse(JSON.stringify(t.to))\r\n if (tab) r.query.tab = tab\r\n this.$router.push(r)\r\n this.$emit('goto-click')\r\n },\r\n manageClick (team) {\r\n this.selectedTeam = team\r\n this.window = 1\r\n this.getTeam(team.rosteredTeamId)\r\n },\r\n getTeam (id) {\r\n this.loading = true\r\n this.$VBL.roster.team.get(id)\r\n .then(r => {\r\n this.parentTeam = new RosteredTeam(r.data)\r\n })\r\n .catch(e => console.log(e.response))\r\n .finally(() => {\r\n this.loading = false\r\n })\r\n },\r\n currentBtnClick () {\r\n this.$refs.teamManager && this.$refs.teamManager.cancelClick()\r\n },\r\n cancelClick () {\r\n this.$refs.teamManager && this.$refs.teamManager.cancelClick()\r\n },\r\n backClick () {\r\n this.$refs.teamManager && this.$refs.teamManager.backClick()\r\n }\r\n },\r\n watch: {\r\n loading: function (v) {\r\n this.$emit('loading-change', v)\r\n },\r\n editing: function (v) {\r\n this.$emit('editing-change', v)\r\n },\r\n currentBtn: function (v) {\r\n this.$emit('current-btn-change', v)\r\n },\r\n window: function (v) {\r\n this.$emit('show-action-change', !!v)\r\n },\r\n active: function (v) {\r\n if (!v) {\r\n this.window = 0\r\n }\r\n }\r\n },\r\n components: {\r\n TournamentRosterManager\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.mini {\r\n min-height: 40px;\r\n}\r\n.x-mini {\r\n min-height: 20px;\r\n}\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!./MyTeamsManager.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!./MyTeamsManager.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyTeamsManager.vue?vue&type=template&id=47e389a2&scoped=true&\"\nimport script from \"./MyTeamsManager.vue?vue&type=script&lang=js&\"\nexport * from \"./MyTeamsManager.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MyTeamsManager.vue?vue&type=style&index=0&id=47e389a2&scoped=true&lang=css&\"\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 \"47e389a2\",\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 { VChip } from 'vuetify/lib/components/VChip';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VExpandTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\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 { VWindow } from 'vuetify/lib/components/VWindow';\nimport { VWindowItem } from 'vuetify/lib/components/VWindow';\ninstallComponents(component, {VBtn,VChip,VDivider,VExpandTransition,VIcon,VImg,VList,VListItem,VListItemAction,VListItemContent,VListItemSubtitle,VListItemTitle,VWindow,VWindowItem})\n","<template>\r\n <v-dialog\r\n v-model=\"myDialog\"\r\n scrollable\r\n max-width=\"500px\"\r\n transition=\"dialog-transition\"\r\n >\r\n <v-expand-transition>\r\n <v-card>\r\n <v-toolbar color=\"color1 color1Text--text\">\r\n <v-toolbar-title>My Team{{teams.length > 1 ? 's' : ''}}</v-toolbar-title>\r\n <v-spacer></v-spacer>\r\n <v-btn color=\"color2 color2Text--text\" small fab @click.stop=\"myDialog = false\">\r\n <v-icon>fas fa-times</v-icon>\r\n </v-btn>\r\n </v-toolbar>\r\n <loading-bar v-model=\"loading\"></loading-bar>\r\n <v-card-text class=\"pa-0\">\r\n <my-teams-manager\r\n :teams=\"teams\"\r\n @goto-click=\"myDialog = false\"\r\n :active=\"myDialog\"\r\n @show-action-change=\"showActions = $event\"\r\n @edit-change=\"editing = $event\"\r\n @loading-change=\"loading = $event\"\r\n @current-btn-change=\"currentBtn = $event\"\r\n ref=\"teamManager\"\r\n ></my-teams-manager>\r\n </v-card-text>\r\n <v-divider v-if=\"showActions\"></v-divider>\r\n <v-card-actions v-if=\"showActions\">\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=\"loading\"\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 v-if=\"currentBtn\"\r\n :key=\"currentBtn.key\"\r\n :color=\"currentBtn.color\"\r\n :disabled=\"currentBtn.disabled\"\r\n @click.stop=\"currentBtn.click\"\r\n :loading=\"loading\"\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 </v-card>\r\n </v-expand-transition>\r\n </v-dialog>\r\n</template>\r\n\r\n<script>\r\nimport MyTeamsManager from './MyTeamsManager.vue'\r\n\r\nexport default {\r\n props: ['teams', 'dialog'],\r\n data () {\r\n return {\r\n loading: false,\r\n editing: false,\r\n currentBtn: null,\r\n showActions: false\r\n }\r\n },\r\n computed: {\r\n myDialog: {\r\n get () {\r\n return this.dialog\r\n },\r\n set (v) {\r\n this.$emit('dialog-change', v)\r\n }\r\n }\r\n },\r\n methods: {\r\n currentBtnClick () {\r\n this.$refs.teamManager && this.$refs.teamManager.currentBtnClick()\r\n },\r\n cancelClick () {\r\n this.$refs.teamManager && this.$refs.teamManager.cancelClick()\r\n },\r\n backClick () {\r\n this.$refs.teamManager && this.$refs.teamManager.backClick()\r\n },\r\n onEditChange (v) {\r\n console.log(v)\r\n }\r\n },\r\n components: {\r\n MyTeamsManager\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!./MyTeamsDialog.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!./MyTeamsDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyTeamsDialog.vue?vue&type=template&id=3c878ef2&\"\nimport script from \"./MyTeamsDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./MyTeamsDialog.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 { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VExpandTransition } from 'vuetify/lib/components/transitions';\nimport { VFabTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VDialog,VDivider,VExpandTransition,VFabTransition,VIcon,VSpacer,VToolbar,VToolbarTitle})\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyTeamsManager.vue?vue&type=style&index=0&id=47e389a2&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyTeamsManager.vue?vue&type=style&index=0&id=47e389a2&scoped=true&lang=css&\""],"sourceRoot":""}