{"version":3,"sources":["webpack:///./src/components/teams/TeamOfficials.vue?f3fc","webpack:///./src/common/filters/format-time.ts","webpack:///../../../src/components/VFileInput/VFileInput.ts","webpack:///../../../src/components/VTextField/index.ts","webpack:///./src/components/teams/TrainingTimes.vue?2fa4","webpack:///./src/components/teams/TrainingTimes.vue","webpack:///./src/components/teams/TrainingTimes.vue?4aca","webpack:///./src/components/teams/TrainingTimes.vue?45c6","webpack:///./src/components/fixtures/FixtureForm.vue?c2f7","webpack:///./src/components/fixtures/FixtureForm.vue","webpack:///./src/components/fixtures/FixtureForm.vue?17fa","webpack:///../../../src/components/VAutocomplete/VAutocomplete.ts","webpack:///./src/components/fixtures/FixtureForm.vue?1a44","webpack:///./src/common/components/CDeleteConfirm.vue?5439","webpack:///./src/common/components/CDeleteConfirm.vue","webpack:///./src/common/components/CDeleteConfirm.vue?7057","webpack:///./src/common/components/CDeleteConfirm.vue?5752","webpack:///./src/common/components/CDeleteConfirm.vue?b3c3","webpack:///./src/common/filters/format-date.ts","webpack:///./src/components/teams/Teams.vue?c900","webpack:///./src/common/models/dates.ts","webpack:///./src/components/teams/Teams.vue?3eb9","webpack:///./src/components/teams/Teams.vue","webpack:///./src/components/teams/Teams.vue?af64","webpack:///./src/components/teams/Teams.vue?0066","webpack:///./src/store/fixtures-api.ts","webpack:///./src/store/training-sessions-module.ts","webpack:///./src/components/teams/TeamForm.vue?43ae","webpack:///./src/components/teams/TeamForm.vue","webpack:///./src/components/teams/TeamForm.vue?cd13","webpack:///./src/components/teams/TeamForm.vue?875f","webpack:///./src/components/fixtures/FixtureItem.vue?722d","webpack:///./src/store/teams-api.ts","webpack:///../../../src/components/VSwitch/VSwitch.ts","webpack:///./src/components/fixtures/FixtureItem.vue?1a5b","webpack:///./src/components/fixtures/FixtureItem.vue","webpack:///./src/components/fixtures/FixtureItem.vue?19c4","webpack:///./src/components/fixtures/FixtureItem.vue?f82f","webpack:///./src/components/teams/TeamTrainingItem.vue?c7e1","webpack:///./src/components/teams/TeamTrainingItem.vue","webpack:///./src/components/teams/TeamTrainingItem.vue?85f3","webpack:///./src/components/teams/TeamTrainingItem.vue?29f8","webpack:///./src/components/teams/TeamDetail.vue?24db","webpack:///./src/components/teams/TeamOfficials.vue?be8b","webpack:///./src/components/teams/TeamOfficials.vue","webpack:///./src/components/teams/TeamOfficials.vue?64c0","webpack:///./src/components/teams/TeamOfficials.vue?bb0f","webpack:///./src/components/teams/TeamTrainingForm.vue?27e7","webpack:///./src/components/teams/TeamTrainingForm.vue","webpack:///./src/components/teams/TeamTrainingForm.vue?36e7","webpack:///./src/components/teams/TeamTrainingForm.vue?a217","webpack:///./src/components/teams/TeamDetail.vue","webpack:///./src/components/teams/TeamDetail.vue?4ed4","webpack:///./src/components/teams/TeamDetail.vue?6d90"],"names":["value","Date","name","model","prop","event","props","chips","clearable","type","default","counterSizeString","counterString","hideInput","multiple","placeholder","prependIcon","readonly","showSize","Boolean","validator","v","includes","smallChips","truncateLength","Number","val","computed","classes","computedCounterValue","fileCount","this","lazyValue","$vuetify","lang","t","bytes","internalArrayValue","reduce","size","base","internalValue","get","set","isDirty","length","isLabelActive","text","persistentPlaceholder","map","file","truncatedText","hasChips","watch","handler","immediate","$refs","input","methods","clearableCallback","genChips","small","on","genControl","render","display","genInput","genPrependSlot","icon","genIcon","genSlot","genSelectionText","genSelections","children","$scopedSlots","index","$createElement","staticClass","class","selection","genTextFieldSlot","node","click","e","onInput","files","onKeyDown","truncateText","str","charsKeepOneSide","Math","_vm","_h","_c","_self","_v","_l","team","idx","key","_s","attrs","params","category","toLowerCase","id","teamId","trainingSession","tidx","sessions","_e","staticRenderFns","profileStore","trainingSessionsStore","isMounted","teams","mounted","getTrainingSessions","then","getSummary","res","TrainingTimes","components","TeamTrainingItem","component","VDivider","VSubheader","callback","$$v","openDialog","expression","ref","save","close","scopedSlots","_u","fn","proxy","validators","required","fixture","$set","options","hours","minutes","competitions","opponents","venues","isNonCompetitiveLeague","fixturesStore","teamsStore","maxLength","home","filter","p","opponentIds","open","Promise","all","fixtureId","getOptions","data","form","validate","FixtureForm","CForm","defaultMenuProps","offsetY","offsetOverflow","transition","VSelect","autoSelectFirst","itemText","queryText","hideNoData","menuProps","noFilter","searchInput","String","lazySearch","selectedIndex","computedItems","selectedValues","selectedItems","item","hasDisplayedItems","hideSelected","filteredItems","some","currentRange","selectedItem","getText","internalSearch","allItems","isAnyValueAllowed","searchIsDirty","isSearching","menuCanShow","$_menuProps","find","i","listData","items","isFocused","document","isMenuActive","oldVal","activateMenu","created","destroyed","onFilteredItemsChanged","preSelectedItem","menu","onInternalSearchChanged","updateMenuDimensions","changeSelectedIndex","keyCode","deleteCurrentItem","curIndex","curItem","getDisabled","lastIndex","nextIndex","nextItem","VTextField","mergeData","autocomplete","domProps","genInputSlot","slot","hasSlot","onClick","isAppendInner","target","onSpaceDown","onTabDown","onUpDown","selectItem","setSelectedItems","setSearch","updateSelf","valueComparator","getValue","hasItem","indexOf","onCopy","currentItem","currentItemText","VAutocomplete","VCol","VDatePicker","VDialog","VRow","VSwitch","VTextarea","hasActivator","dialog","_t","titleText","confirmed","activator","title","Function","CDeleteConfirm","VProgressLinear","VForm","VBtn","VCard","VCardActions","VCardText","VCardTitle","VSpacer","days","duration","openTeamDialog","$route","source","seasonStartYear","loading","profile","admin","getPrevious","getAll","teamCategory","mediaUri","teamForm","Teams","TeamForm","VImg","VToolbar","range","getCalendarEvents","start","end","venueIds","teamIds","eventType","resolve","date","toISOString","substring","minute","put","post","delete","trainingSessionId","TrainingSessionsModule","dynamic","namespaced","store","alias","deleteConfirmed","confirmDelete","officials","$event","preventDefault","teamCategories","teamCategoryId","VFileInput","VIcon","formData","objectToFormData","directives","Touch","inset","flat","role","validationState","hasError","hasColor","switchData","setTextColor","undefined","themeClasses","genDefaultSlot","genSwitch","switchAttrs","genRipple","left","right","onSwipeRight","genProgress","$slots","progress","color","width","indeterminate","onSwipeLeft","onChange","onKeydown","mapUri","_f","dateTime","address","played","competitive","homeScore","isWin","opponentScore","competition","opponentUri","opponent","edit","_g","active","FixtureItem","filters","formatTime","formatDate","VAvatar","VListItem","VListItemAvatar","VListItemContent","VList","VListItemSubtitle","VListItemTitle","canEdit","day","time","period","venue","session","hour","toString","deleted","description","hasPermission","openTrainingSessionDialog","trainingSessions","openFixtureDialog","getFixtures","fixtures","official","oidx","firstName","lastName","officialTypeString","email","response","forEach","o","officialType","match","push","offical","imageUri","TeamOfficials","breakpoint","xs","venueId","remove","TeamTrainingForm","fixtureStore","teamDialog","trainingSessionDialog","fixtureDialog","$router","TeamDetail"],"mappings":"yGAAA,W,6DCAA,gBAEc,gBAAUA,GACpB,OAAIA,EACO,eAAO,IAAIC,KAAKD,GAAQ,YAE5B,K,4wDCWI,qBAAkB,CAC/BE,KAD+B,eAG/BC,MAAO,CACLC,KADK,QAELC,MAAO,UAGTC,MAAO,CACLC,MADK,QAELC,UAAW,CACTC,KADS,QAETC,SAAS,GAEXC,kBAAmB,CACjBF,KADiB,OAEjBC,QAAS,kCAEXE,cAAe,CACbH,KADa,OAEbC,QAAS,8BAEXG,UAdK,QAeLC,SAfK,QAgBLC,YAhBK,OAiBLC,YAAa,CACXP,KADW,OAEXC,QAAS,SAEXO,SAAU,CACRR,KADQ,QAERC,SAAS,GAEXQ,SAAU,CACRT,KAAM,CAACU,QADC,QAERT,SAFQ,EAGRU,UAAY,SAAAC,GACV,MACe,mBAANA,GACP,CAAC,IAAM,MAAMC,SAFf,KAMJC,WAnCK,QAoCLC,eAAgB,CACdf,KAAM,CAACgB,OADO,QAEdf,QAAS,IAEXD,KAAM,CACJA,KADI,OAEJC,QAAS,QAEXV,MAAO,CACLU,aADK,EAELU,UAAW,SAAAM,GACT,OAAO,yBAAuB,SAAAL,GAAC,OAAI,MAAAA,GAAnC,WAAgD,WAKtDM,SAAU,CACRC,QADQ,WAEN,cACK,qCADE,OAAP,IAEE,gBAAgB,KAGpBC,qBAPQ,WAQN,IAAMC,EAAaC,KAAKjB,UAAYiB,KAAlB,UACdA,KAAKC,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,QAAA,WACIjW,KAAKiY,QAAQb,KAAK,CACdjZ,KAAM,QACNoG,OAAQ,CAAE7F,KAAMsB,KAAKoP,OAAO7K,OAAO7F,SAzD1BwZ,EAAU,gBAV9B,eAAU,CACPvS,WAAY,CACRqK,SAAQ,OACRuH,cAAa,EACbK,iBAAgB,EAChBhS,iBAAgB,OAChBkP,YAAW,OACXzM,YAAW,WAGE6P,GA4DrB,EA5DA,CAAwC,QAAnB,ICxFkY,I,4DCOnZ,EAAY,eACd,EACAjW,EACA+C,GACA,EACA,KACA,KACA,MAIa,eAAiB,QAYhC,IAAkB,EAAW,CAAC2J,OAAA,KAAKC,QAAA,KAAMC,aAAA,OAAa/I,WAAA,KAASmK,OAAA,KAAKxB,kBAAA,KAAgBO,UAAA,KAAQjJ,aAAA","file":"js/teams.948a1e7b.js","sourcesContent":["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!./TeamOfficials.vue?vue&type=style&index=0&id=1e0eb196&scoped=true&lang=css&\"","import { format } from \"date-fns/esm\";\n\nexport default function(value: string) {\n if (value) {\n return format(new Date(value), \"@ h:mm a\");\n }\n return \"\";\n}\n","// Styles\nimport './VFileInput.sass'\n\n// Extensions\nimport VTextField from '../VTextField'\n\n// Components\nimport { VChip } from '../VChip'\n\n// Types\nimport { PropValidator } from 'vue/types/options'\n\n// Utilities\nimport { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers'\nimport { consoleError } from '../../util/console'\nimport { mergeStyles } from '../../util/mergeData'\n\nexport default VTextField.extend({\n name: 'v-file-input',\n\n model: {\n prop: 'value',\n event: 'change',\n },\n\n props: {\n chips: Boolean,\n clearable: {\n type: Boolean,\n default: true,\n },\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n placeholder: String,\n prependIcon: {\n type: String,\n default: '$file',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n showSize: {\n type: [Boolean, Number],\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n } as PropValidator,\n smallChips: Boolean,\n truncateLength: {\n type: [Number, String],\n default: 22,\n },\n type: {\n type: String,\n default: 'file',\n },\n value: {\n default: undefined,\n validator: val => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n } as PropValidator,\n },\n\n computed: {\n classes (): object {\n return {\n ...VTextField.options.computed.classes.call(this),\n 'v-file-input': true,\n }\n },\n computedCounterValue (): string {\n const fileCount = (this.multiple && this.lazyValue)\n ? this.lazyValue.length\n : (this.lazyValue instanceof File) ? 1 : 0\n\n if (!this.showSize) return this.$vuetify.lang.t(this.counterString, fileCount)\n\n const bytes = this.internalArrayValue.reduce((bytes: number, { size = 0 }: File) => {\n return bytes + size\n }, 0)\n\n return this.$vuetify.lang.t(\n this.counterSizeString,\n fileCount,\n humanReadableFileSize(bytes, this.base === 1024)\n )\n },\n internalArrayValue (): File[] {\n return wrapInArray(this.internalValue)\n },\n internalValue: {\n get (): File[] {\n return this.lazyValue\n },\n set (val: File | File[]) {\n this.lazyValue = val\n this.$emit('change', this.lazyValue)\n },\n },\n isDirty (): boolean {\n return this.internalArrayValue.length > 0\n },\n isLabelActive (): boolean {\n return this.isDirty\n },\n text (): string[] {\n if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder]\n\n return this.internalArrayValue.map((file: File) => {\n const {\n name = '',\n size = 0,\n } = file\n\n const truncatedText = this.truncateText(name)\n\n return !this.showSize\n ? truncatedText\n : `${truncatedText} (${humanReadableFileSize(size, this.base === 1024)})`\n })\n },\n base (): 1000 | 1024 | undefined {\n return typeof this.showSize !== 'boolean' ? this.showSize : undefined\n },\n hasChips (): boolean {\n return this.chips || this.smallChips\n },\n },\n\n watch: {\n readonly: {\n handler (v) {\n if (v === true) consoleError('readonly is not supported on ', this)\n },\n immediate: true,\n },\n value (v) {\n const value = this.multiple ? v : v ? [v] : []\n if (!deepEqual(value, this.$refs.input.files)) {\n // When the input value is changed programatically, clear the\n // internal input's value so that the `onInput` handler\n // can be triggered again if the user re-selects the exact\n // same file(s). Ideally, `input.files` should be\n // manipulated directly but that property is readonly.\n this.$refs.input.value = ''\n }\n },\n },\n\n methods: {\n clearableCallback () {\n this.internalValue = this.multiple ? [] : null\n this.$refs.input.value = ''\n },\n genChips () {\n if (!this.isDirty) return []\n\n return this.text.map((text, index) => this.$createElement(VChip, {\n props: { small: this.smallChips },\n on: {\n 'click:close': () => {\n const internalValue = this.internalValue\n internalValue.splice(index, 1)\n this.internalValue = internalValue // Trigger the watcher\n },\n },\n }, [text]))\n },\n genControl () {\n const render = VTextField.options.methods.genControl.call(this)\n\n if (this.hideInput) {\n render.data!.style = mergeStyles(\n render.data!.style,\n { display: 'none' }\n )\n }\n\n return render\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.data!.attrs!.multiple = this.multiple\n\n // We should not be setting value\n // programmatically on the input\n // when it is using type=\"file\"\n delete input.data!.domProps!.value\n\n // This solves an issue in Safari where\n // nothing happens when adding a file\n // due to the input event not firing\n // https://github.com/vuetifyjs/vuetify/issues/7941\n delete input.data!.on!.input\n input.data!.on!.change = this.onInput\n\n return [this.genSelections(), input]\n },\n genPrependSlot () {\n if (!this.prependIcon) return null\n\n const icon = this.genIcon('prepend', () => {\n this.$refs.input.click()\n })\n\n return this.genSlot('prepend', 'outer', [icon])\n },\n genSelectionText (): string[] {\n const length = this.text.length\n\n if (length < 2) return this.text\n if (this.showSize && !this.counter) return [this.computedCounterValue]\n return [this.$vuetify.lang.t(this.counterString, length)]\n },\n genSelections () {\n const children = []\n\n if (this.isDirty && this.$scopedSlots.selection) {\n this.internalArrayValue.forEach((file: File, index: number) => {\n if (!this.$scopedSlots.selection) return\n\n children.push(\n this.$scopedSlots.selection({\n text: this.text[index],\n file,\n index,\n })\n )\n })\n } else {\n children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText())\n }\n\n return this.$createElement('div', {\n staticClass: 'v-file-input__text',\n class: {\n 'v-file-input__text--placeholder': this.placeholder && !this.isDirty,\n 'v-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection,\n },\n }, children)\n },\n genTextFieldSlot () {\n const node = VTextField.options.methods.genTextFieldSlot.call(this)\n\n node.data!.on = {\n ...(node.data!.on || {}),\n click: (e: MouseEvent) => {\n // Clicking the label already delegates to input element, so we shouldn't click it twice\n if (e.target && (e.target as HTMLElement).nodeName === 'LABEL') return\n\n this.$refs.input.click()\n },\n }\n\n return node\n },\n onInput (e: Event) {\n const files = [...(e.target as HTMLInputElement).files || []]\n\n this.internalValue = this.multiple ? files : files[0]\n\n // Set initialValue here otherwise isFocused\n // watcher in VTextField will emit a change\n // event whenever the component is blurred\n this.initialValue = this.internalValue\n },\n onKeyDown (e: KeyboardEvent) {\n this.$emit('keydown', e)\n },\n truncateText (str: string) {\n if (str.length < Number(this.truncateLength)) return str\n const charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2)\n return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`\n },\n },\n})\n","import VTextField from './VTextField'\n\nexport { VTextField }\nexport default VTextField\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h1',[_vm._v(\"Training Times\")]),_c('v-divider',{staticClass:\"my-4\"}),_vm._l((_vm.teams),function(team,idx){return _c('div',{key:idx,staticClass:\"mb-4\"},[_c('span',{staticClass:\"d-flex align-center\"},[_c('h3',{staticClass:\"mr-2\"},[_vm._v(_vm._s(team.team))]),_c('v-subheader',[_c('router-link',{attrs:{\"to\":{\n name: 'teams.detail',\n params: { type: team.category.toLowerCase(), id: team.teamId },\n }}},[_vm._v(\"More Information\")])],1)],1),_c('v-divider'),_vm._l((team.sessions),function(trainingSession,tidx){return _c('team-training-item',{key:(\"f-\" + tidx),attrs:{\"trainingSession\":trainingSession}})}),(team.sessions.length == 0)?_c('v-subheader',[_vm._v(\"No Times Added\")]):_vm._e()],2)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport { ProfileModule } from \"@/store/profile-module\";\nimport { TrainingSessionsModule, TrainingSessionSummary } from \"@/store/training-sessions-module\";\nimport TeamTrainingItem from \"./TeamTrainingItem.vue\";\n\n@Component({ components: { TeamTrainingItem } })\nexport default class TrainingTimes extends Vue {\n profileStore = getModule(ProfileModule);\n trainingSessionsStore = getModule(TrainingSessionsModule);\n isMounted = false;\n teams: TrainingSessionSummary[] = [];\n\n mounted() {\n return this.getTrainingSessions().then(() => (this.isMounted = true));\n }\n\n getTrainingSessions() {\n return this.trainingSessionsStore.getSummary().then((res) => (this.teams = res.data));\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TrainingTimes.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TrainingTimes.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TrainingTimes.vue?vue&type=template&id=0222e506&\"\nimport script from \"./TrainingTimes.vue?vue&type=script&lang=ts&\"\nexport * from \"./TrainingTimes.vue?vue&type=script&lang=ts&\"\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 { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VSubheader } from 'vuetify/lib/components/VSubheader';\ninstallComponents(component, {VDivider,VSubheader})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"fullscreen\":\"\",\"hide-overlay\":\"\",\"transition\":\"dialog-bottom-transition\"},model:{value:(_vm.openDialog),callback:function ($$v) {_vm.openDialog=$$v},expression:\"openDialog\"}},[_c('c-form',{ref:\"form\",on:{\"submit\":_vm.save,\"close\":_vm.close},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h3',[_vm._v(\"Manage Fixture - \"+_vm._s(_vm.team.name))])]},proxy:true}])},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"3\"}},[_c('v-date-picker',{attrs:{\"label\":\"Date\",\"full-width\":\"\",\"required\":\"\",\"rules\":[_vm.validators.required()],\"autofocus\":\"\"},model:{value:(_vm.fixture.date),callback:function ($$v) {_vm.$set(_vm.fixture, \"date\", $$v)},expression:\"fixture.date\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"9\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"4\",\"sm\":\"1\"}},[_c('v-select',{attrs:{\"items\":_vm.options.hours,\"label\":\"Hour\",\"rules\":[_vm.validators.required()]},model:{value:(_vm.fixture.hour),callback:function ($$v) {_vm.$set(_vm.fixture, \"hour\", $$v)},expression:\"fixture.hour\"}})],1),_c('v-col',{attrs:{\"cols\":\"4\",\"sm\":\"1\"}},[_c('v-select',{attrs:{\"items\":_vm.options.minutes,\"label\":\"Minute\"},model:{value:(_vm.fixture.minute),callback:function ($$v) {_vm.$set(_vm.fixture, \"minute\", $$v)},expression:\"fixture.minute\"}})],1),_c('v-col',{attrs:{\"cols\":\"4\",\"sm\":\"2\"}},[_c('v-select',{attrs:{\"items\":_vm.options.competitions,\"label\":\"Competition\",\"rules\":[_vm.validators.required()]},model:{value:(_vm.fixture.competitionId),callback:function ($$v) {_vm.$set(_vm.fixture, \"competitionId\", $$v)},expression:\"fixture.competitionId\"}})],1),_c('v-col',[_c('v-autocomplete',{attrs:{\"items\":_vm.options.opponents,\"label\":\"Opponent\",\"rules\":[_vm.validators.required()]},model:{value:(_vm.fixture.opponentId),callback:function ($$v) {_vm.$set(_vm.fixture, \"opponentId\", $$v)},expression:\"fixture.opponentId\"}})],1),_c('v-col',[_c('v-autocomplete',{attrs:{\"items\":_vm.venues,\"label\":\"Venue\",\"rules\":[_vm.validators.required()]},model:{value:(_vm.fixture.venueId),callback:function ($$v) {_vm.$set(_vm.fixture, \"venueId\", $$v)},expression:\"fixture.venueId\"}})],1),_c('v-col',[_c('v-switch',{attrs:{\"label\":\"Home Game?\"},model:{value:(_vm.fixture.home),callback:function ($$v) {_vm.$set(_vm.fixture, \"home\", $$v)},expression:\"fixture.home\"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"9\"}},[_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Contact\"},model:{value:(_vm.fixture.contactName),callback:function ($$v) {_vm.$set(_vm.fixture, \"contactName\", $$v)},expression:\"fixture.contactName\"}})],1),_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Contact Details\"},model:{value:(_vm.fixture.contactNumber),callback:function ($$v) {_vm.$set(_vm.fixture, \"contactNumber\", $$v)},expression:\"fixture.contactNumber\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Referee\"},model:{value:(_vm.fixture.referee),callback:function ($$v) {_vm.$set(_vm.fixture, \"referee\", $$v)},expression:\"fixture.referee\"}})],1),_c('v-col',[_c('v-text-field',{attrs:{\"label\":\"Kit\"},model:{value:(_vm.fixture.kit),callback:function ($$v) {_vm.$set(_vm.fixture, \"kit\", $$v)},expression:\"fixture.kit\"}})],1)],1),(!_vm.team.isNonCompetitiveLeague)?_c('v-row',[_c('v-col',[_c('v-text-field',{attrs:{\"type\":\"number\",\"label\":\"OCBC Score\"},model:{value:(_vm.fixture.homeScore),callback:function ($$v) {_vm.$set(_vm.fixture, \"homeScore\", $$v)},expression:\"fixture.homeScore\"}})],1),_c('v-col',[_c('v-text-field',{attrs:{\"type\":\"number\",\"label\":\"Opponent Score\"},model:{value:(_vm.fixture.opponentScore),callback:function ($$v) {_vm.$set(_vm.fixture, \"opponentScore\", $$v)},expression:\"fixture.opponentScore\"}})],1)],1):_vm._e()],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"3\"}},[_c('v-textarea',{attrs:{\"label\":\"Notes\"},model:{value:(_vm.fixture.notes),callback:function ($$v) {_vm.$set(_vm.fixture, \"notes\", $$v)},expression:\"fixture.notes\"}})],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Emit } from \"vue-property-decorator\";\nimport { hours, minutes } from \"@/common/models/dates\";\nimport { Fixture, FixturesApi, FixtureOptions } from \"@/store/fixtures-api\";\nimport { TeamsApi, Team } from \"@/store/teams-api\";\n\nimport { required, maxLength } from \"@/common/validators/rules\";\nimport CForm from \"@/common/components/CForm.vue\";\n\n@Component({ components: { CForm } })\nexport default class FixtureForm extends Vue {\n fixturesStore = new FixturesApi();\n teamsStore = new TeamsApi();\n validators = { required, maxLength };\n openDialog = false;\n fixture: Fixture = {} as Fixture;\n team: Team = {} as Team;\n options: FixtureOptions = {} as FixtureOptions;\n\n get venues() {\n if (!this.options.venues) {\n return [];\n }\n // we can have a home venue that is also a venue for an opponent\n return this.fixture.home\n ? this.options.venues.filter((p) => p.isHome)\n : this.options.venues.filter((p) => p.opponentIds.includes(this.fixture.opponentId));\n }\n\n open(fixture: Fixture, teamId: number) {\n return Promise.all([\n this.teamsStore.get({ teamId: teamId }).then((res) => (this.team = res.data)),\n this.fixturesStore\n .get({ fixtureId: fixture.id })\n .then((res) => (this.fixture = res.data))\n .then(() => (this.fixture.teamId = teamId)),\n this.fixturesStore.getOptions().then(\n (res) =>\n (this.options = {\n ...{ hours: hours, minutes: minutes },\n ...res.data,\n })\n ),\n ])\n .then(() => (this.openDialog = true))\n .then(() => (this.$refs.form as CForm).resetValidation());\n }\n\n close() {\n this.openDialog = false;\n }\n\n @Emit(\"change\")\n save() {\n if (!(this.$refs.form as CForm).validate()) {\n return;\n }\n\n return this.fixturesStore.save({ fixture: this.fixture }).then(() => this.close());\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FixtureForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FixtureForm.vue?vue&type=script&lang=ts&\"","// Styles\nimport './VAutocomplete.sass'\n\n// Extensions\nimport VSelect, { defaultMenuProps as VSelectMenuProps } from '../VSelect/VSelect'\nimport VTextField from '../VTextField/VTextField'\n\n// Utilities\nimport mergeData from '../../util/mergeData'\nimport {\n getObjectValueByPath,\n getPropertyFromItem,\n keyCodes,\n} from '../../util/helpers'\n\n// Types\nimport { PropType, VNode } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\nconst defaultMenuProps = {\n ...VSelectMenuProps,\n offsetY: true,\n offsetOverflow: true,\n transition: false,\n}\n\n/* @vue/component */\nexport default VSelect.extend({\n name: 'v-autocomplete',\n\n props: {\n autoSelectFirst: {\n type: Boolean,\n default: false,\n },\n filter: {\n type: Function,\n default: (item: any, queryText: string, itemText: string) => {\n return itemText.toLocaleLowerCase().indexOf(queryText.toLocaleLowerCase()) > -1\n },\n } as PropValidator<(item: any, queryText: string, itemText: string) => boolean>,\n hideNoData: Boolean,\n menuProps: {\n type: VSelect.options.props.menuProps.type,\n default: () => defaultMenuProps,\n },\n noFilter: Boolean,\n searchInput: {\n type: String as PropType,\n },\n },\n\n data () {\n return {\n lazySearch: this.searchInput,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...VSelect.options.computed.classes.call(this),\n 'v-autocomplete': true,\n 'v-autocomplete--is-selecting-index': this.selectedIndex > -1,\n }\n },\n computedItems (): object[] {\n return this.filteredItems\n },\n selectedValues (): object[] {\n return this.selectedItems.map(item => this.getValue(item))\n },\n hasDisplayedItems (): boolean {\n return this.hideSelected\n ? this.filteredItems.some(item => !this.hasItem(item))\n : this.filteredItems.length > 0\n },\n currentRange (): number {\n if (this.selectedItem == null) return 0\n\n return String(this.getText(this.selectedItem)).length\n },\n filteredItems (): object[] {\n if (!this.isSearching || this.noFilter || this.internalSearch == null) return this.allItems\n\n return this.allItems.filter(item => {\n const value = getPropertyFromItem(item, this.itemText)\n const text = value != null ? String(value) : ''\n\n return this.filter(item, String(this.internalSearch), text)\n })\n },\n internalSearch: {\n get (): string | null {\n return this.lazySearch\n },\n set (val: any) { // TODO: this should be `string | null` but it breaks lots of other types\n // emit update event only when the new\n // search value is different from previous\n if (this.lazySearch !== val) {\n this.lazySearch = val\n this.$emit('update:search-input', val)\n }\n },\n },\n isAnyValueAllowed (): boolean {\n return false\n },\n isDirty (): boolean {\n return this.searchIsDirty || this.selectedItems.length > 0\n },\n isSearching (): boolean {\n return (\n this.multiple &&\n this.searchIsDirty\n ) || (\n this.searchIsDirty &&\n this.internalSearch !== this.getText(this.selectedItem)\n )\n },\n menuCanShow (): boolean {\n if (!this.isFocused) return false\n\n return this.hasDisplayedItems || !this.hideNoData\n },\n $_menuProps (): object {\n const props = VSelect.options.computed.$_menuProps.call(this);\n (props as any).contentClass = `v-autocomplete__content ${(props as any).contentClass || ''}`.trim()\n return {\n ...defaultMenuProps,\n ...props,\n }\n },\n searchIsDirty (): boolean {\n return this.internalSearch != null &&\n this.internalSearch !== ''\n },\n selectedItem (): any {\n if (this.multiple) return null\n\n return this.selectedItems.find(i => {\n return this.valueComparator(this.getValue(i), this.getValue(this.internalValue))\n })\n },\n listData () {\n const data = VSelect.options.computed.listData.call(this) as any\n\n data.props = {\n ...data.props,\n items: this.virtualizedItems,\n noFilter: (\n this.noFilter ||\n !this.isSearching ||\n !this.filteredItems.length\n ),\n searchInput: this.internalSearch,\n }\n\n return data\n },\n },\n\n watch: {\n filteredItems: 'onFilteredItemsChanged',\n internalValue: 'setSearch',\n isFocused (val) {\n if (val) {\n document.addEventListener('copy', this.onCopy)\n this.$refs.input && this.$refs.input.select()\n } else {\n document.removeEventListener('copy', this.onCopy)\n this.blur()\n this.updateSelf()\n }\n },\n isMenuActive (val) {\n if (val || !this.hasSlot) return\n\n this.lazySearch = null\n },\n items (val, oldVal) {\n // If we are focused, the menu\n // is not active, hide no data is enabled,\n // and items change\n // User is probably async loading\n // items, try to activate the menu\n if (\n !(oldVal && oldVal.length) &&\n this.hideNoData &&\n this.isFocused &&\n !this.isMenuActive &&\n val.length\n ) this.activateMenu()\n },\n searchInput (val: string) {\n this.lazySearch = val\n },\n internalSearch: 'onInternalSearchChanged',\n itemText: 'updateSelf',\n },\n\n created () {\n this.setSearch()\n },\n\n destroyed () {\n document.removeEventListener('copy', this.onCopy)\n },\n\n methods: {\n onFilteredItemsChanged (val: never[], oldVal: never[]) {\n // TODO: How is the watcher triggered\n // for duplicate items? no idea\n if (val === oldVal) return\n\n if (!this.autoSelectFirst) {\n const preSelectedItem = oldVal[this.$refs.menu.listIndex]\n\n if (preSelectedItem) {\n this.setMenuIndex(val.findIndex(i => i === preSelectedItem))\n } else {\n this.setMenuIndex(-1)\n }\n this.$emit('update:list-index', this.$refs.menu.listIndex)\n }\n\n this.$nextTick(() => {\n if (\n !this.internalSearch ||\n (val.length !== 1 &&\n !this.autoSelectFirst)\n ) return\n\n this.$refs.menu.getTiles()\n\n if (this.autoSelectFirst && val.length) {\n this.setMenuIndex(0)\n this.$emit('update:list-index', this.$refs.menu.listIndex)\n }\n })\n },\n onInternalSearchChanged () {\n this.updateMenuDimensions()\n },\n updateMenuDimensions () {\n // Type from menuable is not making it through\n this.isMenuActive && this.$refs.menu && this.$refs.menu.updateDimensions()\n },\n changeSelectedIndex (keyCode: number) {\n // Do not allow changing of selectedIndex\n // when search is dirty\n if (this.searchIsDirty) return\n\n if (this.multiple && keyCode === keyCodes.left) {\n if (this.selectedIndex === -1) {\n this.selectedIndex = this.selectedItems.length - 1\n } else {\n this.selectedIndex--\n }\n } else if (this.multiple && keyCode === keyCodes.right) {\n if (this.selectedIndex >= this.selectedItems.length - 1) {\n this.selectedIndex = -1\n } else {\n this.selectedIndex++\n }\n } else if (keyCode === keyCodes.backspace || keyCode === keyCodes.delete) {\n this.deleteCurrentItem()\n }\n },\n deleteCurrentItem () {\n const curIndex = this.selectedIndex\n const curItem = this.selectedItems[curIndex]\n\n // Do nothing if input or item is disabled\n if (\n !this.isInteractive ||\n this.getDisabled(curItem)\n ) return\n\n const lastIndex = this.selectedItems.length - 1\n\n // Select the last item if\n // there is no selection\n if (\n this.selectedIndex === -1 &&\n lastIndex !== 0\n ) {\n this.selectedIndex = lastIndex\n\n return\n }\n\n const length = this.selectedItems.length\n const nextIndex = curIndex !== length - 1\n ? curIndex\n : curIndex - 1\n const nextItem = this.selectedItems[nextIndex]\n\n if (!nextItem) {\n this.setValue(this.multiple ? [] : null)\n } else {\n this.selectItem(curItem)\n }\n\n this.selectedIndex = nextIndex\n },\n clearableCallback () {\n this.internalSearch = null\n\n VSelect.options.methods.clearableCallback.call(this)\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.data = mergeData(input.data!, {\n attrs: {\n 'aria-activedescendant': getObjectValueByPath(this.$refs.menu, 'activeTile.id'),\n autocomplete: getObjectValueByPath(input.data!, 'attrs.autocomplete', 'off'),\n },\n domProps: { value: this.internalSearch },\n })\n\n return input\n },\n genInputSlot () {\n const slot = VSelect.options.methods.genInputSlot.call(this)\n\n slot.data!.attrs!.role = 'combobox'\n\n return slot\n },\n genSelections (): VNode | never[] {\n return this.hasSlot || this.multiple\n ? VSelect.options.methods.genSelections.call(this)\n : []\n },\n onClick (e: MouseEvent) {\n if (!this.isInteractive) return\n\n this.selectedIndex > -1\n ? (this.selectedIndex = -1)\n : this.onFocus()\n\n if (!this.isAppendInner(e.target)) this.activateMenu()\n },\n onInput (e: Event) {\n if (\n this.selectedIndex > -1 ||\n !e.target\n ) return\n\n const target = e.target as HTMLInputElement\n const value = target.value\n\n // If typing and menu is not currently active\n if (target.value) this.activateMenu()\n\n if (!this.multiple && value === '') this.deleteCurrentItem()\n\n this.internalSearch = value\n this.badInput = target.validity && target.validity.badInput\n },\n onKeyDown (e: KeyboardEvent) {\n const keyCode = e.keyCode\n\n if (\n e.ctrlKey ||\n ![keyCodes.home, keyCodes.end].includes(keyCode)\n ) {\n VSelect.options.methods.onKeyDown.call(this, e)\n }\n\n // The ordering is important here\n // allows new value to be updated\n // and then moves the index to the\n // proper location\n this.changeSelectedIndex(keyCode)\n },\n onSpaceDown (e: KeyboardEvent) { /* noop */ },\n onTabDown (e: KeyboardEvent) {\n VSelect.options.methods.onTabDown.call(this, e)\n this.updateSelf()\n },\n onUpDown (e: Event) {\n // Prevent screen from scrolling\n e.preventDefault()\n\n // For autocomplete / combobox, cycling\n // interfers with native up/down behavior\n // instead activate the menu\n this.activateMenu()\n },\n selectItem (item: object) {\n VSelect.options.methods.selectItem.call(this, item)\n this.setSearch()\n },\n setSelectedItems () {\n VSelect.options.methods.setSelectedItems.call(this)\n\n // #4273 Don't replace if searching\n // #4403 Don't replace if focused\n if (!this.isFocused) this.setSearch()\n },\n setSearch () {\n // Wait for nextTick so selectedItem\n // has had time to update\n this.$nextTick(() => {\n if (\n !this.multiple ||\n !this.internalSearch ||\n !this.isMenuActive\n ) {\n this.internalSearch = (\n !this.selectedItems.length ||\n this.multiple ||\n this.hasSlot\n )\n ? null\n : this.getText(this.selectedItem)\n }\n })\n },\n updateSelf () {\n if (\n !this.searchIsDirty &&\n !this.internalValue\n ) return\n\n if (\n !this.multiple &&\n !this.valueComparator(\n this.internalSearch,\n this.getValue(this.internalValue)\n )\n ) {\n this.setSearch()\n }\n },\n hasItem (item: any): boolean {\n return this.selectedValues.indexOf(this.getValue(item)) > -1\n },\n onCopy (event: ClipboardEvent) {\n if (this.selectedIndex === -1) return\n\n const currentItem = this.selectedItems[this.selectedIndex]\n const currentItemText = this.getText(currentItem)\n event.clipboardData?.setData('text/plain', currentItemText)\n event.clipboardData?.setData('text/vnd.vuetify.autocomplete.item+plain', currentItemText)\n event.preventDefault()\n },\n },\n})\n","import { render, staticRenderFns } from \"./FixtureForm.vue?vue&type=template&id=f368d096&\"\nimport script from \"./FixtureForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./FixtureForm.vue?vue&type=script&lang=ts&\"\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 { VAutocomplete } from 'vuetify/lib/components/VAutocomplete';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDatePicker } from 'vuetify/lib/components/VDatePicker';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\ninstallComponents(component, {VAutocomplete,VCol,VDatePicker,VDialog,VRow,VSelect,VSwitch,VTextField,VTextarea})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.hasActivator ? '' : 'd-none'},[_c('v-dialog',{attrs:{\"width\":\"400\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Delete Confirmation\")]),_c('v-card-text',[_vm._t(\"default\",[_vm._v(\"This will delete \"+_vm._s(_vm.titleText)+\". Are you sure?\")])],2),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(\" Cancel \")]),_c('v-btn',{attrs:{\"color\":\"error darken-1\",\"text\":\"\"},on:{\"click\":_vm.confirmed}},[_vm._v(\" Delete \")])],1)],1)],1),_vm._t(\"activator\",null,{\"on\":{ click: _vm.open }})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Emit, Prop } from \"vue-property-decorator\";\nimport { VProgressLinear, VForm, VDivider } from \"vuetify/lib\";\n\n@Component({ components: { VProgressLinear, VForm, VDivider } })\nexport default class CDeleteConfirm extends Vue {\n @Prop({ type: Function }) title!: any;\n\n dialog = false;\n item: any = {} as any;\n\n get hasActivator() {\n return !!this.$scopedSlots.activator;\n }\n\n get titleText() {\n return this.title(this.item);\n }\n\n open(item: any) {\n this.item = item;\n this.dialog = true;\n }\n\n close() {\n this.dialog = false;\n }\n\n @Emit()\n confirmed() {\n this.dialog = false;\n return this.item;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CDeleteConfirm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CDeleteConfirm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CDeleteConfirm.vue?vue&type=template&id=50f3a48e&scoped=true&\"\nimport script from \"./CDeleteConfirm.vue?vue&type=script&lang=ts&\"\nexport * from \"./CDeleteConfirm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CDeleteConfirm.vue?vue&type=style&index=0&id=50f3a48e&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 \"50f3a48e\",\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 { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VDialog,VSpacer})\n","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!./CDeleteConfirm.vue?vue&type=style&index=0&id=50f3a48e&scoped=true&lang=css&\"","import { format } from \"date-fns/esm\";\n\nexport default function(value: string) {\n if (value) {\n return format(new Date(value), \"MMM do, yyyy\");\n }\n return \"-\";\n}\n","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!./Teams.vue?vue&type=style&index=0&id=3256346c&scoped=true&lang=css&\"","import { ValueText } from \"./interfaces\";\n\nexport const days: ValueText[] = [\n { value: 0, text: \"Sunday\" },\n { value: 1, text: \"Monday\" },\n { value: 2, text: \"Tuesday\" },\n { value: 3, text: \"Wednesday\" },\n { value: 4, text: \"Thursday\" },\n { value: 5, text: \"Friday\" },\n { value: 6, text: \"Saturday\" },\n];\nexport const hours: ValueText[] = [\n { value: 9, text: \"9am\" },\n { value: 10, text: \"10am\" },\n { value: 11, text: \"11am\" },\n { value: 12, text: \"12pm\" },\n { value: 13, text: \"1pm\" },\n { value: 14, text: \"2pm\" },\n { value: 15, text: \"3pm\" },\n { value: 16, text: \"4pm\" },\n { value: 17, text: \"5pm\" },\n { value: 18, text: \"6pm\" },\n { value: 19, text: \"7pm\" },\n { value: 20, text: \"8pm\" },\n { value: 21, text: \"9pm\" },\n];\nexport const minutes: ValueText[] = [\n { value: 0, text: \"00\" },\n { value: 15, text: \"15\" },\n { value: 30, text: \"30\" },\n { value: 45, text: \"45\" },\n];\nexport const duration: ValueText[] = [\n { value: 30, text: \"30 minutes\" },\n { value: 60, text: \"1 hour\" },\n { value: 75, text: \"1 hour 15 minutes\" },\n { value: 90, text: \"1.5 hours\" },\n { value: 105, text: \"1 hour 45 minutes\" },\n { value: 120, text: \"2 hours\" },\n];\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loading)?_c('v-progress-linear',{attrs:{\"indeterminate\":\"\"}}):_c('div',[(_vm.isAdmin)?_c('v-toolbar',{attrs:{\"flat\":\"\"}},[_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.openTeamDialog}},[_vm._v(\"New\")]),_c('team-form',{ref:\"teamForm\",on:{\"change\":_vm.get}})],1):_vm._e(),_c('v-row',_vm._l((_vm.teams),function(team,idx){return _c('v-col',{key:idx,attrs:{\"cols\":\"12\",\"xs\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('v-card',{staticClass:\"mx-auto\",attrs:{\"max-width\":\"400\",\"to\":{\n name: 'teams.detail',\n params: { id: team.id, type: _vm.$route.params.type },\n }}},[_c('v-img',{staticClass:\"white--text align-end\",attrs:{\"height\":\"300px\",\"src\":_vm.source(team),\"alt\":team.name}},[_c('v-card-title',{staticClass:\"text-center\"},[_vm._v(_vm._s(team.name)+\" \"+_vm._s(team.seasonStartYear))])],1)],1)],1)}),1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Ref } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport { ProfileModule } from \"@/store/profile-module\";\nimport { TeamsApi, Team } from \"@/store/teams-api\";\nimport TeamForm from \"./TeamForm.vue\";\n\n@Component({ components: { TeamForm } })\nexport default class Teams extends Vue {\n @Ref() readonly teamForm!: TeamForm;\n profileStore = getModule(ProfileModule);\n teamsStore = new TeamsApi();\n teams: Team[] = [];\n loading = false;\n\n get isAdmin() {\n return this.profileStore.profile.admin;\n }\n\n mounted() {\n this.loading = true;\n this.get().then(() => (this.loading = false));\n }\n\n get() {\n if (this.$route.params.type == \"previous\") {\n return this.teamsStore.getPrevious().then((res) => (this.teams = res.data));\n } else {\n return this.teamsStore\n .getAll({ teamCategory: this.$route.params.type })\n .then((res) => (this.teams = res.data));\n }\n }\n\n source(team: Team) {\n return team.mediaUri || \"https://static.ongarchasers.com/static/no-team.jpg\";\n }\n\n openTeamDialog() {\n this.teamForm.open({} as Team);\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Teams.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Teams.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Teams.vue?vue&type=template&id=3256346c&scoped=true&\"\nimport script from \"./Teams.vue?vue&type=script&lang=ts&\"\nexport * from \"./Teams.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Teams.vue?vue&type=style&index=0&id=3256346c&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 \"3256346c\",\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 { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VCardTitle,VCol,VImg,VProgressLinear,VRow,VToolbar})\n","import { axios } from \"./axios\";\nimport { AxiosResponse } from \"axios\";\nimport { ValueText } from \"@/common/models/interfaces\";\n\nexport class FixturesApi {\n getAll({ teamId, range }: { teamId?: number; range?: number }) {\n return axios.get(\"/fixtures\", {\n params: { teamId, range },\n });\n }\n\n getCalendarEvents({\n start,\n end,\n venueIds,\n teamIds,\n eventType,\n }: {\n start: Date;\n end: Date;\n venueIds: number[];\n teamIds: number[];\n eventType: string;\n }) {\n return axios.get(\"/fixtures/calendar\", {\n params: { start, end, venueIds, teamIds, eventType },\n });\n }\n\n get({ fixtureId }: { fixtureId?: number }) {\n if (!fixtureId) {\n return Promise.resolve>({\n data: {\n date: new Date().toISOString().substring(0, 10),\n minute: 0,\n home: true,\n } as Fixture,\n } as AxiosResponse);\n }\n return axios.get(`/fixtures/${fixtureId}`);\n }\n\n save({ fixture }: { fixture: Fixture }) {\n if (fixture.id) {\n return axios.put(\"/fixtures\", fixture);\n } else {\n return axios.post(\"/fixtures\", fixture);\n }\n }\n\n delete({ fixtureId }: { fixtureId?: number }) {\n return axios.delete(`/fixtures/${fixtureId}`);\n }\n\n getOptions() {\n return axios.get(\"/fixtures/options\");\n }\n}\n\nexport interface Fixture {\n id?: number;\n teamId: number;\n address: string;\n team: string;\n opponent: string;\n teamUri: string;\n opponentUri: string;\n dateTime: string;\n competition: string;\n date: string;\n hour: string;\n minute: number;\n time: string;\n homeScore: number;\n opponentScore: number;\n competitionId: number;\n venueId: number;\n opponentId: number;\n home: boolean;\n contactName: string;\n contactNumber: string;\n referee: string;\n kit: string;\n notes: string;\n mapUri: string;\n competitive: false;\n}\n\nexport interface CalendarEvent {\n address: string;\n name: string;\n opponent: string;\n teamUri: string;\n opponentUri: string;\n home: boolean;\n start: Date;\n end: Date;\n timed: boolean;\n eventType: 1 | 2;\n}\n\nexport interface VenueOption {\n value: any;\n text: string;\n isHome: boolean;\n opponentIds: number[];\n}\n\nexport interface FixtureOptions {\n competitions: ValueText[];\n venues: VenueOption[];\n opponents: ValueText[];\n hours: ValueText[];\n minutes: ValueText[];\n}\n","import { axios } from \"./axios\";\nimport { VuexModule, Module, Action } from \"vuex-module-decorators\";\nimport store from \"../store\";\n\n@Module({\n dynamic: true,\n namespaced: true,\n store,\n name: \"trainingSessions\",\n})\nexport class TrainingSessionsModule extends VuexModule {\n @Action\n getAll({ teamId }: { teamId: number }) {\n return axios.get(`/teams/training-sessions/${teamId}`);\n }\n\n @Action\n getSummary() {\n return axios.get(`/teams/training-sessions/summary`);\n }\n\n @Action\n save({ trainingSession }: { trainingSession: TrainingSession }) {\n if (trainingSession.id > -1) {\n return axios.put(\"/teams/training-sessions\", trainingSession);\n } else {\n return axios.post(\"/teams/training-sessions\", trainingSession);\n }\n }\n\n @Action\n delete({ trainingSessionId }: { trainingSessionId?: number }) {\n return axios.delete(`/teams/training-sessions/${trainingSessionId}`);\n }\n}\n\nexport interface TrainingSession {\n id: number;\n venueId: number;\n teamId: number;\n //frequency: number\n day: number;\n hour: number;\n minute: number;\n duration: number;\n venue: string;\n}\n\nexport interface TrainingSessionSummary {\n team: string;\n teamId: number;\n category: string;\n sessions: TrainingSession[];\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.openDialog)?_c('v-dialog',{attrs:{\"fullscreen\":\"\",\"hide-overlay\":\"\",\"transition\":\"dialog-bottom-transition\"},model:{value:(_vm.openDialog),callback:function ($$v) {_vm.openDialog=$$v},expression:\"openDialog\"}},[_c('c-form',{ref:\"form\",on:{\"submit\":_vm.save,\"close\":_vm.close},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h3',[_vm._v(\"Manage \"+_vm._s(_vm.team.alias))])]},proxy:true},{key:\"actions\",fn:function(){return [_c('c-delete-confirm',{ref:\"delete\",attrs:{\"title\":function (item) { return item.name; }},on:{\"confirmed\":_vm.deleteConfirmed}}),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.confirmDelete}},[_vm._v(\"Delete\")]),_c('v-btn',{attrs:{\"dark\":\"\",\"text\":\"\",\"type\":\"submit\"}},[_vm._v(\"Save\")])]},proxy:true}],null,false,2746318757)},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"8\",\"sm\":\"3\"}},[_c('v-text-field',{attrs:{\"label\":\"Name\",\"rules\":[_vm.validators.required(), _vm.validators.maxLength(256)]},model:{value:(_vm.team.name),callback:function ($$v) {_vm.$set(_vm.team, \"name\", $$v)},expression:\"team.name\"}})],1),_c('v-col',{attrs:{\"cols\":\"4\",\"sm\":\"2\"}},[_c('v-text-field',{attrs:{\"label\":\"Alias\",\"rules\":[_vm.validators.required(), _vm.validators.maxLength(5)]},model:{value:(_vm.team.alias),callback:function ($$v) {_vm.$set(_vm.team, \"alias\", $$v)},expression:\"team.alias\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"5\"}},[_c('v-text-field',{attrs:{\"label\":\"Description\",\"rules\":[_vm.validators.maxLength(2048)]},model:{value:(_vm.team.description),callback:function ($$v) {_vm.$set(_vm.team, \"description\", $$v)},expression:\"team.description\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"2\"}},[_c('v-switch',{attrs:{\"label\":\"Is non competitive league?\"},model:{value:(_vm.team.isNonCompetitiveLeague),callback:function ($$v) {_vm.$set(_vm.team, \"isNonCompetitiveLeague\", $$v)},expression:\"team.isNonCompetitiveLeague\"}})],1)],1),_c('v-row',[_c('v-col',[_c('v-select',{attrs:{\"multiple\":\"\",\"chips\":\"\",\"items\":_vm.options.officials,\"label\":\"Coaches\"},model:{value:(_vm.team.coaches),callback:function ($$v) {_vm.$set(_vm.team, \"coaches\", $$v)},expression:\"team.coaches\"}})],1),_c('v-col',[_c('v-select',{attrs:{\"multiple\":\"\",\"chips\":\"\",\"items\":_vm.options.officials,\"label\":\"Assistants\"},model:{value:(_vm.team.assistants),callback:function ($$v) {_vm.$set(_vm.team, \"assistants\", $$v)},expression:\"team.assistants\"}})],1),_c('v-col',[_c('v-select',{attrs:{\"multiple\":\"\",\"chips\":\"\",\"items\":_vm.options.officials,\"label\":\"Managers\"},model:{value:(_vm.team.managers),callback:function ($$v) {_vm.$set(_vm.team, \"managers\", $$v)},expression:\"team.managers\"}})],1),_c('v-col',[_c('v-select',{attrs:{\"multiple\":\"\",\"chips\":\"\",\"items\":_vm.options.officials,\"label\":\"Contributors\"},model:{value:(_vm.team.contributors),callback:function ($$v) {_vm.$set(_vm.team, \"contributors\", $$v)},expression:\"team.contributors\"}})],1)],1),_c('v-row',[_c('v-col',{staticClass:\"d-flex\",attrs:{\"cols\":\"12\",\"sm\":\"2\"}},[_c('v-file-input',{attrs:{\"label\":\"Team Photo (2000x1500px)\",\"accept\":\"image/*\"},model:{value:(_vm.team.imageUpload),callback:function ($$v) {_vm.$set(_vm.team, \"imageUpload\", $$v)},expression:\"team.imageUpload\"}}),(_vm.team.mediaUri)?_c('v-btn',{attrs:{\"title\":\"Delete image\",\"color\":\"error\",\"icon\":\"\"},on:{\"click\":function($event){$event.preventDefault();return (function () { return (_vm.team.mediaUri = ''); })($event)}}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-trash-can-outline\")])],1):_vm._e()],1),_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"1\"}},[(_vm.team.mediaUri)?_c('v-img',{attrs:{\"height\":\"50\",\"contain\":\"\",\"src\":_vm.team.mediaUri}}):_vm._e()],1),_c('v-col',{attrs:{\"cols\":\"4\",\"sm\":\"3\"}},[_c('v-select',{attrs:{\"items\":_vm.options.teamCategories,\"label\":\"Team Type\"},model:{value:(_vm.team.teamCategoryId),callback:function ($$v) {_vm.$set(_vm.team, \"teamCategoryId\", $$v)},expression:\"team.teamCategoryId\"}})],1),_c('v-col',{attrs:{\"cols\":\"8\",\"sm\":\"3\"}},[_c('v-text-field',{attrs:{\"label\":\"External League Uri\",\"rules\":[_vm.validators.maxLength(1024)]},model:{value:(_vm.team.externalLeagueUri),callback:function ($$v) {_vm.$set(_vm.team, \"externalLeagueUri\", $$v)},expression:\"team.externalLeagueUri\"}})],1)],1)],1)],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Emit } from \"vue-property-decorator\";\nimport { TeamsApi, Team, TeamOptions } from \"@/store/teams-api\";\nimport { required, maxLength } from \"@/common/validators/rules\";\nimport CForm from \"@/common/components/CForm.vue\";\nimport CDeleteConfirm from \"@/common/components/CDeleteConfirm.vue\";\n\n@Component({ components: { CForm, CDeleteConfirm } })\nexport default class TeamForm extends Vue {\n teamsStore = new TeamsApi();\n validators = { required, maxLength };\n openDialog = false;\n team: Team = {} as Team;\n options!: TeamOptions;\n\n open(team: Team) {\n this.team = team;\n return this.teamsStore\n .getOptions()\n .then((res) => (this.options = res.data))\n .then(() => {\n if (!this.team.teamCategoryId) {\n this.team.teamCategoryId = this.options.teamCategories.find(\n (p) => p.text.toLowerCase() == this.$route.params.type\n )?.value;\n }\n })\n .then(() => (this.openDialog = true))\n .then(() => (this.$refs.form as CForm).resetValidation());\n }\n\n close() {\n this.openDialog = false;\n }\n\n @Emit(\"change\")\n save() {\n if (!(this.$refs.form as any).validate()) {\n return;\n }\n\n return this.teamsStore.save({ team: this.team }).then(() => this.close());\n }\n\n confirmDelete() {\n (this.$refs.delete as CDeleteConfirm).open(this.team);\n }\n\n @Emit(\"deleted\")\n deleteConfirmed() {\n return this.teamsStore.delete({ teamId: this.team.id }).then(() => this.close());\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamForm.vue?vue&type=template&id=2a586167&\"\nimport script from \"./TeamForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamForm.vue?vue&type=script&lang=ts&\"\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VFileInput } from 'vuetify/lib/components/VFileInput';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCol,VDialog,VFileInput,VIcon,VImg,VRow,VSelect,VSwitch,VTextField})\n","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!./FixtureItem.vue?vue&type=style&index=0&id=75b0a1ec&scoped=true&lang=css&\"","import { axios } from \"./axios\";\nimport { ValueText } from \"@/common/models/interfaces\";\nimport FileUtils from \"@/common/utils/fileUtils\";\n\nexport class TeamsApi {\n getAll({ teamCategory }: { teamCategory?: string }) {\n return axios.get(\"/teams/all\", { params: { teamCategory } });\n }\n\n getPrevious() {\n return axios.get(\"/teams/previous\");\n }\n\n get({ teamId }: { teamId: number }) {\n if (!teamId) {\n return Promise.resolve({ data: {} as Team });\n }\n return axios.get(`/teams/${teamId}`);\n }\n\n save({ team }: { team: Team }) {\n const formData = FileUtils.objectToFormData(team);\n if (!!team.id && team.id > -1) {\n return axios.put(\"/teams\", formData);\n } else {\n return axios.post(\"/teams\", formData);\n }\n }\n\n delete({ teamId }: { teamId?: number }) {\n return axios.delete(`/teams/${teamId}`);\n }\n\n getOptions() {\n return axios.get(\"/teams/options\");\n }\n}\n\nexport interface Team {\n id: number;\n name: string;\n alias: string;\n description: string;\n teamCategoryId: number;\n seasonStartYear: string;\n externalLeagueUri: string;\n imageUpload: Blob;\n coaches: string[];\n assistants: string[];\n managers: string[];\n contributors: string[];\n officials: Official[];\n mediaUri: string;\n isNonCompetitiveLeague: boolean;\n}\n\nexport interface TeamOptions {\n venues: ValueText[];\n officials: ValueText[];\n teamCategories: ValueText[];\n seasons: ValueText[];\n}\n\nexport interface Official {\n firstName: string;\n lastName: string;\n officialType: number;\n officialTypeString: string;\n imageUri: string;\n email: string;\n}\n","// Styles\nimport '../../styles/components/_selection-controls.sass'\nimport './VSwitch.sass'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\nimport VInput from '../VInput'\n\n// Directives\nimport Touch from '../../directives/touch'\n\n// Components\nimport { VFabTransition } from '../transitions'\nimport VProgressCircular from '../VProgressCircular/VProgressCircular'\n\n// Helpers\nimport { keyCodes } from '../../util/helpers'\n\n// Types\nimport { VNode, VNodeData } from 'vue'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-switch',\n\n directives: { Touch },\n\n props: {\n inset: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n flat: {\n type: Boolean,\n default: false,\n },\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls v-input--switch': true,\n 'v-input--switch--flat': this.flat,\n 'v-input--switch--inset': this.inset,\n }\n },\n attrs (): object {\n return {\n 'aria-checked': String(this.isActive),\n 'aria-disabled': String(this.isDisabled),\n role: 'switch',\n }\n },\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState (): string | undefined {\n if (this.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n switchData (): VNodeData {\n return this.setTextColor(this.loading ? undefined : this.validationState, {\n class: this.themeClasses,\n })\n },\n },\n\n methods: {\n genDefaultSlot (): (VNode | null)[] {\n return [\n this.genSwitch(),\n this.genLabel(),\n ]\n },\n genSwitch (): VNode {\n const { title, ...switchAttrs } = this.attrs$\n\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.genInput('checkbox', {\n ...this.attrs,\n ...switchAttrs,\n }),\n this.genRipple(this.setTextColor(this.validationState, {\n directives: [{\n name: 'touch',\n value: {\n left: this.onSwipeLeft,\n right: this.onSwipeRight,\n },\n }],\n })),\n this.$createElement('div', {\n staticClass: 'v-input--switch__track',\n ...this.switchData,\n }),\n this.$createElement('div', {\n staticClass: 'v-input--switch__thumb',\n ...this.switchData,\n }, [this.genProgress()]),\n ])\n },\n genProgress (): VNode {\n return this.$createElement(VFabTransition, {}, [\n this.loading === false\n ? null\n : this.$slots.progress || this.$createElement(VProgressCircular, {\n props: {\n color: (this.loading === true || this.loading === '')\n ? (this.color || 'primary')\n : this.loading,\n size: 16,\n width: 2,\n indeterminate: true,\n },\n }),\n ])\n },\n onSwipeLeft () {\n if (this.isActive) this.onChange()\n },\n onSwipeRight () {\n if (!this.isActive) this.onChange()\n },\n onKeydown (e: KeyboardEvent) {\n if (\n (e.keyCode === keyCodes.left && this.isActive) ||\n (e.keyCode === keyCodes.right && !this.isActive)\n ) this.onChange()\n },\n },\n})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',[_c('v-col',{attrs:{\"order\":\"1\",\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\"}},[_c('v-list-item',{attrs:{\"two-line\":\"\"}},[_c('v-list-item-avatar',[_c('v-btn',{attrs:{\"icon\":\"\",\"large\":\"\",\"href\":_vm.fixture.mapUri,\"target\":\"_blank\"}},[_c('v-icon',{attrs:{\"color\":\"primary\"}},[_vm._v(\"mdi-google-maps\")])],1)],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(_vm._f(\"formatDate\")(_vm.fixture.dateTime))+\" \"+_vm._s(_vm._f(\"formatTime\")(_vm.fixture.dateTime)))]),_c('v-list-item-subtitle',[_vm._v(_vm._s(_vm.fixture.address))])],1)],1)],1),_c('v-col',{staticClass:\"d-flex flex-column align-center\",attrs:{\"cols\":\"4\",\"sm\":\"2\",\"order\":_vm.fixture.home ? 2 : 4}},[_c('v-avatar',[_c('v-img',{attrs:{\"src\":require(\"../../assets/logo.svg\"),\"alt\":_vm.fixture.team}})],1),_c('v-subheader',{staticClass:\"px-0 text-center\"},[_vm._v(_vm._s(_vm.fixture.team))])],1),_c('v-col',{attrs:{\"cols\":\"4\",\"sm\":\"2\",\"order\":\"3\"}},[_c('v-subheader',{staticClass:\"flex-column\"},[(!_vm.played(_vm.fixture))?_c('div',[_vm._v(_vm._s(_vm._f(\"formatTime\")(_vm.fixture.dateTime)))]):(!_vm.fixture.competitive)?_c('div',[_c('v-icon',[_vm._v(\"mdi-basketball\")])],1):(_vm.fixture.homeScore !== null)?_c('div',{staticClass:\"d-flex\",class:_vm.isWin(_vm.fixture) ? 'win' : 'loss'},[_c('span',{staticClass:\"score\",class:_vm.fixture.home ? 'order-1' : 'order-3'},[_vm._v(_vm._s(_vm.fixture.homeScore))]),_c('span',{staticClass:\"mx-2 order-2\"},[_vm._v(\"vs\")]),_c('span',{staticClass:\"score\",class:_vm.fixture.home ? 'order-3' : 'order-1'},[_vm._v(_vm._s(_vm.fixture.opponentScore))])]):_vm._e(),_c('div',[_vm._v(_vm._s(_vm.fixture.competition))])])],1),_c('v-col',{staticClass:\"d-flex flex-column align-center\",attrs:{\"cols\":\"4\",\"sm\":\"2\",\"order\":!_vm.fixture.home ? 2 : 4}},[_c('v-avatar',[_c('v-img',{attrs:{\"src\":_vm.fixture.opponentUri,\"alt\":_vm.fixture.opponent}})],1),_c('v-subheader',{staticClass:\"px-0 text-center\"},[_vm._v(_vm._s(_vm.fixture.opponent))])],1),(_vm.canEdit)?_c('v-col',{staticClass:\"d-flex\",attrs:{\"cols\":\"12\",\"order\":\"5\",\"md\":\"2\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.edit}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-pencil\")])],1),_c('c-delete-confirm',{ref:\"delete\",attrs:{\"title\":function () { return 'this fixture'; }},on:{\"confirmed\":_vm.deleteConfirmed},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"icon\":\"\",\"color\":\"error\"}},on),[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-trash-can-outline\")])],1)]}}],null,false,793408695)})],1):_vm._e(),_c('v-col',{staticClass:\"d-sm-none\",attrs:{\"order\":\"6\"}},[_c('v-divider')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop, Emit } from \"vue-property-decorator\";\nimport { FixturesApi, Fixture } from \"@/store/fixtures-api\";\nimport formatTime from \"@/common/filters/format-time\";\nimport formatDate from \"@/common/filters/format-date\";\nimport CDeleteConfirm from \"@/common/components/CDeleteConfirm.vue\";\n\n@Component({\n components: { CDeleteConfirm },\n filters: { formatTime, formatDate },\n})\nexport default class FixtureItem extends Vue {\n @Prop() fixture!: Fixture;\n @Prop({ type: Boolean, default: false }) canEdit: boolean | undefined;\n fixturesStore = new FixturesApi();\n active = false;\n\n @Emit()\n edit() {\n return this.fixture;\n }\n\n @Emit(\"deleted\")\n deleteConfirmed() {\n return this.fixturesStore.delete({ fixtureId: this.fixture.id });\n }\n\n played(fixture: Fixture) {\n return new Date(fixture.dateTime) < new Date() || (fixture.homeScore >= 0 && fixture.opponentScore >= 0);\n }\n\n isWin(fixture: Fixture) {\n return fixture.homeScore >= fixture.opponentScore;\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FixtureItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FixtureItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FixtureItem.vue?vue&type=template&id=75b0a1ec&scoped=true&\"\nimport script from \"./FixtureItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./FixtureItem.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FixtureItem.vue?vue&type=style&index=0&id=75b0a1ec&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 \"75b0a1ec\",\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 { VAvatar } from 'vuetify/lib/components/VAvatar';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAvatar } 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 { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSubheader } from 'vuetify/lib/components/VSubheader';\ninstallComponents(component, {VAvatar,VBtn,VCol,VDivider,VIcon,VImg,VListItem,VListItemAvatar,VListItemContent,VListItemSubtitle,VListItemTitle,VRow,VSpacer,VSubheader})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',[_c('v-col',{attrs:{\"cols\":_vm.canEdit ? 9 : 12}},[_vm._v(\" Every \"),_c('strong',[_vm._v(\" \"+_vm._s(_vm.day(_vm.trainingSession)))]),_vm._v(\" from \"),_c('strong',[_vm._v(_vm._s(_vm.time(_vm.trainingSession)))]),_vm._v(\" for \"+_vm._s(_vm.period())+\" in \"+_vm._s(_vm.trainingSession.venue)+\" \")]),(_vm.canEdit)?_c('v-col',{staticClass:\"d-flex\",attrs:{\"order\":\"5\",\"cols\":\"3\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.edit}},[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-pencil\")])],1),_c('c-delete-confirm',{ref:\"delete\",attrs:{\"title\":function () { return 'this training session'; }},on:{\"confirmed\":_vm.deleteConfirmed},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"icon\":\"\",\"color\":\"error\"}},on),[_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-trash-can-outline\")])],1)]}}],null,false,793408695)})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop, Emit } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport CForm from \"@/common/components/CForm.vue\";\nimport { TrainingSession, TrainingSessionsModule } from \"@/store/training-sessions-module\";\nimport CDeleteConfirm from \"@/common/components/CDeleteConfirm.vue\";\n\n@Component({ components: { CForm, CDeleteConfirm } })\nexport default class TeamTrainingItem extends Vue {\n @Prop({ required: true }) trainingSession!: TrainingSession;\n @Prop({ type: Boolean, default: false }) canEdit: boolean | undefined;\n trainingSessionsStore = getModule(TrainingSessionsModule);\n days: string[] = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\n period() {\n switch (this.trainingSession.duration) {\n case 30:\n return \"30 minutes\";\n case 60:\n return \"1 hour\";\n case 75:\n return \"1 hour 15 minutes\";\n case 90:\n return \"1.5 hours\";\n case 105:\n return \"1 hour 45 minutes\";\n case 120:\n return \"2 hours\";\n default:\n return `${this.trainingSession.duration} minutes`;\n }\n }\n\n day(session: TrainingSession) {\n return this.days[session.day];\n }\n\n time(session: TrainingSession) {\n let time = (+session.hour <= 12 ? session.hour : +session.hour - 12).toString();\n if (+session.minute > 0) {\n time += `:${session.minute.toString()}`;\n }\n return +session.hour < 12 ? `${time} AM` : `${time} PM`;\n }\n\n @Emit()\n edit() {\n return this.trainingSession;\n }\n\n @Emit(\"deleted\")\n deleteConfirmed() {\n return this.trainingSessionsStore.delete({\n trainingSessionId: this.trainingSession.id,\n });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamTrainingItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamTrainingItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamTrainingItem.vue?vue&type=template&id=7c9af204&\"\nimport script from \"./TeamTrainingItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamTrainingItem.vue?vue&type=script&lang=ts&\"\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VIcon,VRow,VSpacer})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('team-form',{ref:\"teamDialog\",on:{\"change\":_vm.get,\"deleted\":_vm.deleted}}),(!_vm.isMounted)?_c('v-progress-linear',{attrs:{\"indeterminate\":\"\"}}):_c('div',[_c('h1',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.team.name))]),(_vm.team.description)?_c('h3',{staticClass:\"text-center\"},[_vm._v(\" \"+_vm._s(_vm.team.description)+\" \")]):_vm._e(),_c('v-divider',{staticClass:\"my-4\"}),(_vm.team.mediaUri || _vm.hasPermission)?_c('v-card',{staticClass:\"mx-auto\",attrs:{\"max-width\":\"1000\"}},[_c('v-img',{attrs:{\"src\":_vm.team.mediaUri}}),(_vm.hasPermission)?_c('v-card-actions',[_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\",\"to\":{ name: 'teams.registrations', params: { id: _vm.team.id } }}},[_vm._v(\" Team Registrations \")]),_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\",\"text\":\"\"},on:{\"click\":_vm.openTeamDialog}},[_vm._v(\" Edit \")])],1):_vm._e()],1):_vm._e(),_c('team-officials',{staticClass:\"my-4\",attrs:{\"officials\":_vm.team.officials}})],1),_c('div',{staticClass:\"my-4\"},[_c('div',{staticClass:\"d-flex align-end\"},[_c('h4',[_vm._v(\"Training Times\")]),_c('v-spacer'),(_vm.hasPermission)?_c('v-btn',{attrs:{\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.openTrainingSessionDialog}},[_vm._v(\"Add\")]):_vm._e(),_c('team-training-form',{ref:\"trainingSessionDialog\",on:{\"change\":_vm.getTrainingSessions}})],1),_c('v-divider',{staticClass:\"my-4\"}),_vm._l((_vm.trainingSessions),function(trainingSession,idx){return _c('team-training-item',{key:(\"f-\" + idx),attrs:{\"trainingSession\":trainingSession,\"can-edit\":_vm.hasPermission},on:{\"edit\":_vm.openTrainingSessionDialog,\"deleted\":function($event){return _vm.getTrainingSessions()}}})}),(_vm.trainingSessions.length == 0)?_c('v-subheader',[_vm._v(\"No Times Added\")]):_vm._e()],2),_c('div',{staticClass:\"my-2\"},[_c('div',{staticClass:\"d-flex align-end\"},[_c('h4',[_vm._v(\"Fixtures\")]),_c('v-spacer'),(_vm.hasPermission)?_c('v-btn',{attrs:{\"outlined\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.openFixtureDialog}},[_vm._v(\"Add\")]):_vm._e(),_c('fixture-form',{ref:\"fixtureDialog\",attrs:{\"competitive\":!_vm.team.isNonCompetitiveLeague},on:{\"change\":_vm.getFixtures}})],1),_c('v-divider',{staticClass:\"my-4\"}),_vm._l((_vm.fixtures),function(fixture,idx){return _c('fixture-item',{key:(\"f-\" + idx),attrs:{\"fixture\":fixture,\"can-edit\":_vm.hasPermission},on:{\"edit\":_vm.openFixtureDialog,\"deleted\":function($event){return _vm.getFixtures()}}})}),(_vm.fixtures.length == 0)?_c('v-subheader',[_vm._v(\"No Fixtures Added\")]):_vm._e()],2)],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-row',_vm._l((_vm.teamOfficials),function(official,oidx){return _c('v-col',{key:oidx,attrs:{\"cols\":\"12\",\"sm\":\"6\"}},[_c('v-card',{staticClass:\"mx-auto\",attrs:{\"width\":\"250\"}},[_c('v-img',{attrs:{\"src\":_vm.source(official),\"alt\":_vm.name(official),\"height\":\"250\"}}),_c('v-card-title',{staticClass:\"pb-1\"},[_vm._v(_vm._s(official.firstName)+\" \"+_vm._s(official.lastName))]),_c('v-card-text',[_c('div',[_vm._v(_vm._s(official.officialTypeString))]),_c('div',{staticClass:\"contact\"},[(official.email)?_c('a',{attrs:{\"href\":(\"mailto:\" + (official.email)),\"target\":\"_top\"}},[_vm._v(_vm._s(official.email))]):_vm._e()])])],1)],1)}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\nimport { Official } from \"@/store/teams-api\";\n\n@Component({ components: {} })\nexport default class TeamOfficials extends Vue {\n @Prop() officials!: Official[];\n\n // todo - order by coach/manager/assts\n // todo - dedupe\n get teamOfficials() {\n var response: Official[] = [];\n this.officials.forEach((o) => {\n if (o.officialType != 2) {\n let match = response.find((p) => p.firstName == o.firstName && p.lastName == o.lastName);\n if (!match) {\n response.push(o);\n } else {\n match.officialTypeString += `/${o.officialTypeString}`;\n }\n }\n });\n return response;\n }\n\n name(official: Official) {\n return `${official.firstName} ${official.lastName}`;\n }\n\n source(offical: Official) {\n return offical.imageUri || \"https://static.ongarchasers.com/static/no-image.jpg\";\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamOfficials.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamOfficials.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamOfficials.vue?vue&type=template&id=1e0eb196&scoped=true&\"\nimport script from \"./TeamOfficials.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamOfficials.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TeamOfficials.vue?vue&type=style&index=0&id=1e0eb196&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 \"1e0eb196\",\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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCard,VCardText,VCardTitle,VCol,VImg,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"fullscreen\":_vm.$vuetify.breakpoint.xs,\"width\":\"800\"},model:{value:(_vm.openDialog),callback:function ($$v) {_vm.openDialog=$$v},expression:\"openDialog\"}},[_c('c-form',{ref:\"form\",on:{\"submit\":_vm.save,\"close\":_vm.close},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h3',{staticClass:\"d-none d-sm-block\"},[_vm._v(\"Manage Training Session\")]),_c('h3',{staticClass:\"d-block d-sm-none\"},[_vm._v(\"Manage Session\")])]},proxy:true}])},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-select',{attrs:{\"label\":\"Venue\",\"items\":_vm.venues,\"rules\":[_vm.validators.required()]},model:{value:(_vm.trainingSession.venueId),callback:function ($$v) {_vm.$set(_vm.trainingSession, \"venueId\", $$v)},expression:\"trainingSession.venueId\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\",\"sm\":\"3\"}},[_c('v-select',{attrs:{\"label\":\"Day\",\"items\":_vm.options.days},model:{value:(_vm.trainingSession.day),callback:function ($$v) {_vm.$set(_vm.trainingSession, \"day\", $$v)},expression:\"trainingSession.day\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\",\"sm\":\"3\"}},[_c('v-select',{attrs:{\"label\":\"Hour\",\"items\":_vm.options.hours},model:{value:(_vm.trainingSession.hour),callback:function ($$v) {_vm.$set(_vm.trainingSession, \"hour\", $$v)},expression:\"trainingSession.hour\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\",\"sm\":\"3\"}},[_c('v-select',{attrs:{\"label\":\"Minute\",\"items\":_vm.options.minutes},model:{value:(_vm.trainingSession.minute),callback:function ($$v) {_vm.$set(_vm.trainingSession, \"minute\", $$v)},expression:\"trainingSession.minute\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\",\"sm\":\"3\"}},[_c('v-select',{attrs:{\"label\":\"Duration\",\"items\":_vm.options.duration},model:{value:(_vm.trainingSession.duration),callback:function ($$v) {_vm.$set(_vm.trainingSession, \"duration\", $$v)},expression:\"trainingSession.duration\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Emit } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport { required, maxLength } from \"@/common/validators/rules\";\nimport CForm from \"@/common/components/CForm.vue\";\nimport { TeamsApi } from \"@/store/teams-api\";\nimport { TrainingSession, TrainingSessionsModule } from \"@/store/training-sessions-module\";\nimport { ValueText } from \"@/common/models/interfaces\";\nimport { days, hours, minutes, duration } from \"@/common/models/dates\";\n\n@Component({ components: { CForm } })\nexport default class TeamTrainingForm extends Vue {\n teamsStore = new TeamsApi();\n trainingSessionsStore = getModule(TrainingSessionsModule);\n\n openDialog = false;\n validators = { required, maxLength };\n options = {\n days: days,\n hours: hours,\n minutes: minutes,\n duration: duration,\n };\n trainingSession: TrainingSession = {} as TrainingSession;\n venues: ValueText[] = [];\n\n open(trainingSession: TrainingSession, teamId: number) {\n this.teamsStore\n .getOptions()\n .then((res) => (this.venues = res.data.venues))\n .then(() => (this.openDialog = true))\n .then(() => (this.$refs.form as CForm).resetValidation());\n let session = trainingSession.id\n ? trainingSession\n : ({\n id: -1,\n teamId: teamId,\n day: 0,\n hour: 9,\n minute: 0,\n duration: 90,\n venueId: 0,\n venue: \"\",\n } as TrainingSession);\n this.trainingSession = { ...session };\n }\n\n close() {\n this.openDialog = false;\n }\n\n @Emit(\"change\")\n save() {\n if (!(this.$refs.form as CForm).validate()) {\n return;\n }\n\n return this.trainingSessionsStore.save({ trainingSession: this.trainingSession }).then(() => this.close());\n }\n\n @Emit(\"change\")\n remove() {\n return this.trainingSessionsStore\n .delete({ trainingSessionId: this.trainingSession.id })\n .then(() => this.close());\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamTrainingForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamTrainingForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamTrainingForm.vue?vue&type=template&id=3c1fbd66&\"\nimport script from \"./TeamTrainingForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamTrainingForm.vue?vue&type=script&lang=ts&\"\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\ninstallComponents(component, {VCol,VDialog,VRow,VSelect})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { getModule } from \"vuex-module-decorators\";\nimport { TeamsApi, Team } from \"@/store/teams-api\";\nimport { ProfileModule } from \"@/store/profile-module\";\nimport { TrainingSessionsModule, TrainingSession } from \"@/store/training-sessions-module\";\nimport { FixturesApi, Fixture } from \"@/store/fixtures-api\";\nimport TeamForm from \"./TeamForm.vue\";\nimport TeamOfficials from \"./TeamOfficials.vue\";\nimport TeamTrainingForm from \"./TeamTrainingForm.vue\";\nimport TeamTrainingItem from \"./TeamTrainingItem.vue\";\nimport FixtureItem from \"../fixtures/FixtureItem.vue\";\nimport FixtureForm from \"../fixtures/FixtureForm.vue\";\n\n@Component({\n components: {\n TeamForm,\n TeamOfficials,\n TeamTrainingForm,\n TeamTrainingItem,\n FixtureItem,\n FixtureForm,\n },\n})\nexport default class TeamDetail extends Vue {\n profileStore = getModule(ProfileModule);\n teamsStore = new TeamsApi();\n fixtureStore = new FixturesApi();\n trainingSessionsStore = getModule(TrainingSessionsModule);\n isMounted = false;\n trainingSessions: TrainingSession[] = [];\n fixtures: Fixture[] = [];\n team: Team = {} as Team;\n\n get hasPermission() {\n return this.profileStore.profile.admin || this.profileStore.profile.teams?.includes(+this.$route.params.id);\n }\n\n mounted() {\n return this.get().then(() => (this.isMounted = true));\n }\n\n get() {\n return Promise.all([\n this.teamsStore.get({ teamId: +this.$route.params.id }).then((res) => (this.team = res.data)),\n this.getTrainingSessions(),\n this.getFixtures(),\n ]);\n }\n\n getTrainingSessions() {\n return this.trainingSessionsStore\n .getAll({ teamId: +this.$route.params.id })\n .then((res) => (this.trainingSessions = res.data));\n }\n\n getFixtures() {\n return this.fixtureStore.getAll({ teamId: +this.$route.params.id }).then((res) => (this.fixtures = res.data));\n }\n\n save() {\n if ((this.$refs.form as any).validate()) {\n return;\n }\n }\n\n openTeamDialog() {\n (this.$refs.teamDialog as TeamForm).open(this.team);\n }\n\n openTrainingSessionDialog(trainingSession: TrainingSession) {\n (this.$refs.trainingSessionDialog as TeamTrainingForm).open(trainingSession, this.team.id);\n }\n\n openFixtureDialog(fixture: Fixture) {\n (this.$refs.fixtureDialog as FixtureForm).open(fixture, this.team.id);\n }\n\n deleted() {\n this.$router.push({\n name: \"teams\",\n params: { type: this.$route.params.type },\n });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamDetail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TeamDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamDetail.vue?vue&type=template&id=f97796b8&\"\nimport script from \"./TeamDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamDetail.vue?vue&type=script&lang=ts&\"\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 { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSubheader } from 'vuetify/lib/components/VSubheader';\ninstallComponents(component, {VBtn,VCard,VCardActions,VDivider,VImg,VProgressLinear,VSpacer,VSubheader})\n"],"sourceRoot":""}