{"version":3,"sources":["webpack:///./src/modules/players/PlayersGridView.vue?576f","webpack:///./src/modules/players/PlayersGridView.vue?c05d","webpack:///./src/modules/players/PlayersGridView.vue?3242","webpack:///./src/modules/players/PlayersGridView.vue","webpack:///./src/modules/reports/components/ExistingDraftsWarningCpt.vue?91b7","webpack:///./src/modules/reports/components/ExistingDraftsWarningCpt.vue?d2f5","webpack:///./src/modules/reports/components/ExistingDraftsWarningCpt.vue?e8ff","webpack:///./src/modules/reports/components/ExistingDraftsWarningCpt.vue","webpack:///./node_modules/core-js/modules/es.string.trim.js","webpack:///./src/modules/players/PlayersGridView.vue?bcdd","webpack:///./src/modules/reports/components/ExistingDraftsWarningCpt.vue?2068","webpack:///./src/modules/players/PlayersImportView.vue?0517","webpack:///./src/modules/players/PlayersImportView.vue?f9fa","webpack:///./src/modules/players/PlayersImportView.vue?7080","webpack:///./src/modules/players/PlayersImportView.vue","webpack:///./src/modules/players/PlayerDetailsView.vue?fbb9","webpack:///./src/modules/players/PlayerDetailsView.vue?28e6","webpack:///./src/modules/players/PlayerDetailsView.vue?6f4e","webpack:///./src/modules/players/PlayerDetailsView.vue","webpack:///./src/modules/players/PlayersImportView.vue?aea4","webpack:///./node_modules/core-js/internals/forced-string-trim-method.js","webpack:///./src/modules/players/PlayersImportView.vue?538e"],"names":["render","_vm","this","_h","$createElement","_c","_self","grid","filter","collection","staticClass","attrs","isAnalyst","lookups","organisations","$t","_e","_v","_s","isReporter","on","update","model","value","callback","$$v","$set","expression","_l","squad","index","key","id","name","$event","addSquad","directives","rawName","items","scopedSlots","_u","fn","scope","row","firstName","lastName","_f","dateOfBirth","injuryCount","illnessCount","organisation","flipFavourite","isFavourite","squads","updateUserSquads","isAnySquadSelected","slot","nativeOn","renameSquad","removeSquad","deduplicate","flipRetired","isRetired","showSquadDialog","onSquadDialogClose","preventDefault","onSquadDialogSaveItem","squadModel","showDeduplicateDialog","deduplicateKeepUserId","onDeduplicateClose","staticRenderFns","modelState","group","isNaN","initializeLookups","$eventHub","$on","initializeInternalCollection","players","filterPlayers","$route","params","anyFavourites","filterMethod","routeName","defaultFilterOverrides","create","data","internalCollection","cloneDeep","getPlayerGridLookupData","player","removeFavourite","addFavourite","$notify","title","message","type","unretire","retire","find","s","confirm","deleteSquad","saveSquad","then","updateSquad","handleValidationErrors","createSquad","squadIds","previousSquadIds","p","length","newSquadId","includes","addPlayerToSquad","removedSquadId","removePlayerFromSquad","refreshData","AppVue","components","GridSearchCpt","GridPagerCpt","GridSelectFilterCpt","ExistingDraftsWarningCpt","InputFieldCpt","PlayerFinderDialogCpt","PlayerDeduplicateCpt","component","showDrafts","showDialog","drafts","forId","getTypeCaption","dateUpdated","getUrl","getAllDrafts","showWarning","draft","startCase","autoSaveType","autoSaveTypeId","InjuryReport","IllnessReport","ExposureReport","CommunityInjuryReport","CatastrophicInjuryReport","CatastrophicFollowUp","$","$trim","trim","forcedStringTrimMethod","target","proto","forced","loading","submitForm","sex","bodySides","playingPositions15s","onPositionChanged","playingPositions7s","potentialDuplicate","fullName","shouldImport","disableImport","settings","currentReporterOrg","cancelAndReUpload","downloadPlayerBulkUploadSampleXlsx","ref","onFileSelected","playingPositions","position","gameFormatIds","Fifteens","Sevens","users","getManageUserFormLookupData","resources","getDocument","response","downloadResponse","file","reader","FileReader","onload","e","uploadAndParse","result","clearFiles","readAsDataURL","f","FormData","append","post","headers","fixNumericProps","toImportAmount","importPlayers","importedAmount","isImportSuccessful","$router","push","uploadRef","$refs","upload","Object","keys","map","height","undefined","weight","usual7sPositionId","usual15sPositionId","InputNumberCpt","InputDateCpt","InputSelectCpt","InputRadioCpt","ValidationSummaryCpt","ValidationHintCpt","SpinnerCpt","userId","playerOrganisationId","sexId","primaryHandSideId","primaryFootSideId","parseInt","playerId","getAccount","DetailHeaderCpt","DetailsTableRowCpt","DetailsDateTableRowCpt","DetailsLookupTableRowCpt","fails","whitespaces","non","module","exports","METHOD_NAME"],"mappings":"kHAAA,I,EAAIA,EAAS,WAAa,IAAIC,EAA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D,EAAYI,GAAa/M,OAAS+M,O,kCCT1G","file":"js/players.74302b2c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('ExistingDraftsWarningCpt'),(_vm.grid && _vm.grid.filter && _vm.grid.collection)?_c('div',[_c('el-form',{staticClass:\"grid-filters\",attrs:{\"inline\":true}},[_c('GridSearchCpt',{attrs:{\"grid\":_vm.grid}}),(_vm.isAnalyst && _vm.lookups && _vm.lookups.organisations)?_c('GridSelectFilterCpt',{attrs:{\"grid\":_vm.grid,\"lookups\":_vm.lookups.organisations,\"prop\":\"organisationId\",\"placeholder\":_vm.$t('Organisation')}}):_vm._e(),(_vm.isReporter)?_c('el-button-group',{staticClass:\"new-players separated\"},[_c('router-link',{staticClass:\"el-button el-button--primary el-button--mini is-plain\",attrs:{\"to\":\"/admin/users/new\"}},[_c('i',{staticClass:\"el-icon-plus\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"New player\"))+\" \")]),_c('router-link',{staticClass:\"el-button el-button--default el-button--mini is-plain\",attrs:{\"to\":\"/players/import\"}},[_c('i',{staticClass:\"el-icon-upload2\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"Import\"))+\" \")])],1):_vm._e(),(_vm.isReporter && _vm.lookups)?_c('el-radio-group',{staticClass:\"player-filters\",attrs:{\"size\":\"mini\"},on:{\"change\":_vm.grid.update},model:{value:(_vm.grid.filter.group),callback:function ($$v) {_vm.$set(_vm.grid.filter, \"group\", $$v)},expression:\"grid.filter.group\"}},[_c('el-radio-button',{attrs:{\"label\":\"favourites\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Favourites\"))+\" \")]),_c('el-radio-button',{attrs:{\"label\":\"all\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"All\"))+\" \")]),_c('el-radio-button',{attrs:{\"label\":\"retired\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Retired\"))+\" \")]),_vm._l((_vm.lookups.squads),function(squad,index){return _c('el-radio-button',{key:index,attrs:{\"label\":squad.id}},[_vm._v(\" \"+_vm._s(squad.name)+\" \")])})],2):_vm._e(),(_vm.isReporter)?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.addSquad()}}},[_c('i',{staticClass:\"el-icon-plus\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"New squad\"))+\" \")]):_vm._e()],1),_c('el-container',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.grid.isLoading),expression:\"grid.isLoading\"}],attrs:{\"data\":_vm.grid.collection.items}},[_c('el-table-column',{attrs:{\"label\":_vm.$t('First Name')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.firstName))])]}}],null,false,3673566267)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Last Name')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.lastName))])]}}],null,false,559970763)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('DOB')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"noZoneDateTime\")(scope.row.dateOfBirth,\"YYYY-MM-DD\")))])]}}],null,false,1092440277)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Injuries'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.injuryCount))])]}}],null,false,1095527318)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Illnesses'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.illnessCount))])]}}],null,false,123082823)}),(_vm.isAnalyst)?_c('el-table-column',{attrs:{\"label\":_vm.$t('Organisation'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.organisation))])]}}],null,false,2921685492)}):_vm._e(),(_vm.isReporter)?_c('el-table-column',{attrs:{\"label\":_vm.$t('Favourite'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"icon-button\"},[(scope.row.isFavourite)?_c('i',{staticClass:\"fas el-icon-fa-star green\",on:{\"click\":function($event){return _vm.flipFavourite(scope.row)}}}):_vm._e(),(!scope.row.isFavourite)?_c('i',{staticClass:\"far el-icon-fa-star\",on:{\"click\":function($event){return _vm.flipFavourite(scope.row)}}}):_vm._e()])]}}],null,false,311525621)}):_vm._e(),(_vm.isReporter && _vm.lookups && _vm.lookups.squads)?_c('el-table-column',{attrs:{\"label\":_vm.$t('Squads'),\"align\":\"center\",\"width\":\"220px\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-select',{attrs:{\"multiple\":true,\"size\":\"mini\"},on:{\"change\":function($event){return _vm.updateUserSquads(scope.row, $event)}},model:{value:(scope.row.squadIds),callback:function ($$v) {_vm.$set(scope.row, \"squadIds\", $$v)},expression:\"scope.row.squadIds\"}},_vm._l((_vm.lookups.squads),function(squad){return _c('el-option',{key:squad.id,attrs:{\"label\":squad.name,\"value\":squad.id}})}),1)]}}],null,false,1973899549)}):_vm._e(),_c('el-table-column',{attrs:{\"min-width\":\"300\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"header\",fn:function(scope){return [(_vm.isReporter && _vm.isAnySquadSelected)?_c('el-dropdown',[_c('el-button',{attrs:{\"size\":\"mini\",\"plain\":\"\"}},[_vm._v(\" Manage this squad\"),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})]),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.renameSquad($event)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Rename squad\"))+\" \")]),_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.removeSquad($event)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Delete this squad\"))+\" \")])],1)],1):_vm._e()]}},{key:\"default\",fn:function(scope){return [(scope.row)?_c('div',[(_vm.isReporter)?_c('el-button-group',[_c('router-link',{staticClass:\"el-button el-button--default el-button--mini\",attrs:{\"to\":(\"/injuries/new/\" + (scope.row.id))}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Add Injury\"))+\" \")]),_c('router-link',{staticClass:\"el-button el-button--default el-button--mini\",attrs:{\"to\":(\"/illnesses/new/\" + (scope.row.id))}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Add Illness\"))+\" \")]),_c('el-dropdown',[_c('el-button',{attrs:{\"size\":\"mini\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Manage\"))),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})]),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('router-link',{attrs:{\"to\":(\"/admin/users/\" + (scope.row.id) + \"/edit\")}},[_c('el-dropdown-item',{attrs:{\"size\":\"mini\",\"plain\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Edit\"))+\" \")])],1),(_vm.grid.collection.items.length)?_c('el-dropdown-item',{attrs:{\"size\":\"mini\",\"plain\":\"\"},nativeOn:{\"click\":function($event){return _vm.deduplicate(scope.row)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Deduplicate\"))+\" \")]):_vm._e(),_c('el-dropdown-item',{attrs:{\"size\":\"mini\",\"plain\":\"\"},nativeOn:{\"click\":function($event){return _vm.flipRetired(scope.row)}}},[_vm._v(\" \"+_vm._s(_vm.$t(scope.row.isRetired ? \"Unretire\" : \"Retire\"))+\" \")])],1)],1)],1):_vm._e(),(_vm.isAnalyst)?_c('router-link',{attrs:{\"to\":(\"/players/\" + (scope.row.id))}},[_c('el-button',{attrs:{\"size\":\"mini\"}},[_vm._v(_vm._s(_vm.$t(\"View\")))])],1):_vm._e()],1):_vm._e()]}}],null,false,2605423572)})],1)],1),_c('GridPagerCpt',{attrs:{\"grid\":_vm.grid}}),_c('el-dialog',{staticClass:\"form-dialog\",attrs:{\"title\":_vm.$t('Squad'),\"visible\":_vm.showSquadDialog,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.showSquadDialog=$event},\"closed\":_vm.onSquadDialogClose}},[_c('el-form',{staticClass:\"data-form\",attrs:{\"label-position\":\"top\"},nativeOn:{\"submit\":function($event){$event.preventDefault();return _vm.onSquadDialogSaveItem($event)}}},[_c('InputFieldCpt',{attrs:{\"model\":_vm.squadModel,\"prop\":\"name\",\"label\":_vm.$t('Name')}})],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.onSquadDialogSaveItem()}}},[_vm._v(\" \"+_vm._s(_vm.$t('Save'))+\" \")]),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.onSquadDialogClose()}}},[_vm._v(\" \"+_vm._s(_vm.$t('Cancel'))+\" \")])],1)],1),(_vm.showDeduplicateDialog)?_c('div',[_c('PlayerDeduplicateCpt',{attrs:{\"showDialog\":_vm.showDeduplicateDialog,\"keepUserId\":_vm.deduplicateKeepUserId},on:{\"close\":_vm.onDeduplicateClose}})],1):_vm._e()],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\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\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 } from 'vue-property-decorator';\nimport _ from 'lodash';\n\nimport AppVue from '@/AppVue.vue';\nimport ExistingDraftsWarningCpt from '@/modules/reports/components/ExistingDraftsWarningCpt.vue';\nimport { InputFieldCpt, PlayerFinderDialogCpt } from '@/core/components';\nimport { PlayerCollectionModel, PlayerGridFilter, PlayerGridLookupModel, SquadModel } from '@/core/webapi';\nimport { ApiService } from '@/core/services';\nimport {\n GridFactory,\n GridModel,\n GridFilter,\n GridSearchCpt,\n GridPagerCpt,\n GridSelectFilterCpt,\n} from '@/core/components/grid';\nimport { PlayerDeduplicateCpt } from '@/modules/admin/users/components';\n\n@Component({\n components: {\n GridSearchCpt,\n GridPagerCpt,\n GridSelectFilterCpt,\n ExistingDraftsWarningCpt,\n InputFieldCpt,\n PlayerFinderDialogCpt,\n PlayerDeduplicateCpt,\n },\n})\nexport default class PlayersGridView extends AppVue {\n grid = {} as GridModel;\n internalCollection = [] as PlayerCollectionModel[];\n lookups = {} as PlayerGridLookupModel;\n squadModel = new SquadModel({ modelState: {} } as any);\n showSquadDialog = false;\n showDeduplicateDialog = false;\n deduplicateKeepUserId = 0;\n\n get isAnySquadSelected() {\n return this.grid?.filter?.group && !isNaN(+this.grid?.filter.group);\n }\n\n async created() {\n await this.initializeLookups();\n\n this.$eventHub.$on('GRID_DATA_UPDATED', () => this.initializeInternalCollection());\n\n this.grid = GridFactory.create({\n filterMethod: filter => ApiService.players().filterPlayers(filter as PlayerGridFilter),\n routeName: 'players',\n defaultFilterOverrides: new GridFilter({\n group: this.$route.params.group || ((await this.anyFavourites()) ? 'favourites' : 'all'),\n }),\n });\n }\n\n async anyFavourites() {\n return (await ApiService.players().anyFavourites()).data;\n }\n\n async initializeInternalCollection() {\n this.internalCollection = _.cloneDeep(this.grid?.collection?.items) || [];\n }\n\n async initializeLookups() {\n this.lookups = (await ApiService.players().getPlayerGridLookupData()).data;\n }\n\n async flipFavourite(player: PlayerCollectionModel) {\n player.isFavourite\n ? await ApiService.players().removeFavourite(player.id)\n : await ApiService.players().addFavourite(player.id);\n\n this.$notify({\n title: this.$t('Success') as string,\n message: this.$t(player.isFavourite ? 'Removed from favourites' : 'Added to favourites') as string,\n type: 'success',\n });\n\n this.grid.update();\n }\n\n async flipRetired(player: PlayerCollectionModel) {\n player.isRetired ? await ApiService.players().unretire(player.id) : await ApiService.players().retire(player.id);\n\n this.$notify({\n title: this.$t('Success') as string,\n message: this.$t(player.isRetired ? 'Player unretired' : 'Player retired') as string,\n type: 'success',\n });\n\n this.grid.update();\n }\n\n addSquad() {\n this.showSquadDialog = true;\n this.squadModel.id = 0;\n this.squadModel.name = '';\n }\n\n async renameSquad() {\n this.showSquadDialog = true;\n this.squadModel.id = +this.grid.filter.group;\n this.squadModel.name = this.lookups?.squads?.find(s => s.id === this.squadModel.id)?.name ?? '';\n }\n\n async removeSquad() {\n if (!confirm(this.$t(\"Are you sure you want to delete this squad (player data won't be deleted)?\") as string)) {\n return;\n }\n\n await ApiService.squads().deleteSquad(+this.grid.filter.group);\n\n this.$notify({\n title: this.$t('Success') as string,\n message: this.$t('Squad deleted') as string,\n type: 'success',\n });\n\n this.grid.filter.group = 'all';\n this.grid.update();\n await this.initializeLookups();\n }\n\n async onSquadDialogSaveItem() {\n await this.saveSquad().then(async () => {\n this.onSquadDialogClose();\n await this.initializeLookups();\n });\n }\n\n private saveSquad(): any {\n return this.squadModel.id\n ? ApiService.squads().updateSquad(this.squadModel).handleValidationErrors(this.squadModel)\n : ApiService.squads().createSquad(this.squadModel).handleValidationErrors(this.squadModel);\n }\n\n onSquadDialogClose() {\n this.showSquadDialog = false;\n this.squadModel = new SquadModel({ modelState: {} } as any);\n }\n\n async updateUserSquads(player: PlayerCollectionModel, squadIds: number[]) {\n const previousSquadIds = this.internalCollection?.find(p => p.id === player.id)?.squadIds ?? [];\n\n if (squadIds.length > previousSquadIds.length) {\n const newSquadId = squadIds.find(s => !previousSquadIds.includes(s));\n if (newSquadId) {\n await ApiService.squads().addPlayerToSquad(newSquadId, player.id);\n this.$notify({\n title: this.$t('Success') as string,\n message: this.$t('Player added to squad') as string,\n type: 'success',\n });\n }\n } else if (squadIds.length < previousSquadIds.length) {\n const removedSquadId = previousSquadIds.find(s => !squadIds.includes(s));\n if (removedSquadId) {\n await ApiService.squads().removePlayerFromSquad(removedSquadId, player.id);\n this.$notify({\n title: this.$t('Success') as string,\n message: this.$t('Player removed from squad') as string,\n type: 'success',\n });\n }\n }\n\n this.grid.update();\n }\n\n deduplicate(player: PlayerCollectionModel) {\n this.showDeduplicateDialog = true;\n this.deduplicateKeepUserId = player.id;\n }\n\n onDeduplicateClose(refreshData: boolean) {\n this.showDeduplicateDialog = false;\n this.deduplicateKeepUserId = 0;\n\n if (refreshData) {\n this.grid.update();\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersGridView.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersGridView.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PlayersGridView.vue?vue&type=template&id=b2cfd868&scoped=true&\"\nimport script from \"./PlayersGridView.vue?vue&type=script&lang=ts&\"\nexport * from \"./PlayersGridView.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PlayersGridView.vue?vue&type=style&index=0&id=b2cfd868&scoped=true&lang=scss&\"\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 \"b2cfd868\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showWarning)?_c('div',{staticClass:\"draft-warning\",on:{\"click\":_vm.showDrafts}},[_c('el-alert',{attrs:{\"title\":_vm.$t('Report drafts found, please review them before adding new ones to avoid conflicts (click to show)'),\"type\":\"warning\",\"closable\":false,\"show-icon\":\"\"}})],1):_vm._e(),_c('el-dialog',{attrs:{\"title\":_vm.$t('Existing drafts'),\"width\":\"50%\",\"visible\":_vm.showDialog},on:{\"update:visible\":function($event){_vm.showDialog=$event}}},[_c('el-table',{attrs:{\"data\":_vm.drafts}},[_c('el-table-column',{attrs:{\"label\":_vm.$t('For'),\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(!scope.row.forId ? _vm.$t(\"New\") : _vm.$t(\"Existing\")))])]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Type')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.getTypeCaption(scope.row)))])]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Auto-saved at')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(scope.row.dateUpdated,\"DD MMM, YYYY - HH:mm:ss\")))])]}}])}),_c('el-table-column',{attrs:{\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row)?_c('div',{staticClass:\"table-actions\"},[_c('router-link',{attrs:{\"to\":_vm.getUrl(scope.row)}},[_c('el-button',{attrs:{\"size\":\"mini\"}},[_vm._v(_vm._s(_vm.$t(\"Review\")))])],1)],1):_vm._e()]}}])})],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"})],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\nimport { Component, Vue, Prop } from 'vue-property-decorator';\nimport _ from 'lodash';\n\nimport AppVue from '@/AppVue.vue';\n\nimport { AutoSaveCollectionModel } from '@/core/webapi';\nimport { AutoSaveService } from '@/core/services';\nimport { AutoSaveTypes } from '@/core/constants';\n\n@Component\nexport default class ExistingDraftsWarningCpt extends AppVue {\n showWarning = false;\n showDialog = false;\n drafts: AutoSaveCollectionModel[] = [];\n\n async created() {\n if (!this.isReporter) {\n return;\n }\n\n this.drafts = await AutoSaveService.getAllDrafts();\n this.showWarning = this.drafts.length > 0;\n }\n\n async showDrafts() {\n if (this.showWarning) {\n this.showDialog = true;\n }\n }\n\n getTypeCaption(draft: AutoSaveCollectionModel) {\n return _.startCase(draft.autoSaveType);\n }\n\n getUrl(draft: AutoSaveCollectionModel) {\n switch (draft.autoSaveTypeId) {\n case AutoSaveTypes.InjuryReport:\n return !!draft.forId ? `/injuries/${draft.forId}/edit` : `/injuries/new/${draft.id}/draft`;\n case AutoSaveTypes.IllnessReport:\n return !!draft.forId ? `/illnesses/${draft.forId}/edit` : `/illnesses/new/${draft.id}/draft`;\n case AutoSaveTypes.ExposureReport:\n return !!draft.forId ? `/exposures/${draft.forId}/edit` : `/exposures/new/${draft.id}/draft`;\n case AutoSaveTypes.CommunityInjuryReport:\n return !!draft.forId ? `/c/injuries/${draft.forId}/edit` : `/c/injuries/new/${draft.id}/draft`;\n case AutoSaveTypes.CatastrophicInjuryReport:\n return !!draft.forId\n ? `/catastrophic-injuries/${draft.forId}/edit`\n : `/catastrophic-injuries/new/${draft.id}/draft`;\n case AutoSaveTypes.CatastrophicFollowUp:\n return `/catastrophic-injuries/${draft.forId}/follow-up`;\n default:\n return '/';\n }\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExistingDraftsWarningCpt.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExistingDraftsWarningCpt.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ExistingDraftsWarningCpt.vue?vue&type=template&id=61ad6a0e&scoped=true&\"\nimport script from \"./ExistingDraftsWarningCpt.vue?vue&type=script&lang=ts&\"\nexport * from \"./ExistingDraftsWarningCpt.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ExistingDraftsWarningCpt.vue?vue&type=style&index=0&id=61ad6a0e&lang=scss&scoped=true&\"\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 \"61ad6a0e\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/forced-string-trim-method');\n\n// `String.prototype.trim` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersGridView.vue?vue&type=style&index=0&id=b2cfd868&scoped=true&lang=scss&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExistingDraftsWarningCpt.vue?vue&type=style&index=0&id=61ad6a0e&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"players-import\"},[(!_vm.loading)?_c('div',[(!_vm.players || _vm.players.length === 0)?_c('div',{staticClass:\"narrow-content\"},[_c('h4',[_vm._v(_vm._s(_vm.$t(\"Step 1: Upload the file containing player data\")))]),_c('el-link',{staticClass:\"sample-file-download\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.downloadPlayerBulkUploadSampleXlsx}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Download Bulk Upload Sample File\"))+\" \"),_c('i',{staticClass:\"fas el-icon-fa-download download-icon\"})]),_c('el-upload',{ref:\"upload\",attrs:{\"http-request\":_vm.onFileSelected,\"show-file-list\":false,\"accept\":\".xlsx\",\"drag\":\"\",\"action\":\"\"}},[_c('i',{staticClass:\"el-icon-upload\"}),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(_vm._s(_vm.$t(\"Drop file here or\"))+\" \"),_c('em',[_vm._v(_vm._s(_vm.$t(\"click to upload\")))])])])],1):_c('div',[_c('h4',[_vm._v(_vm._s(_vm.$t(\"Step 2: Review and import new players\")))]),_c('el-form',{staticClass:\"data-form\",attrs:{\"label-position\":\"top\"},nativeOn:{\"submit\":function($event){$event.preventDefault();return _vm.submitForm($event)}}},[_c('el-container',{staticClass:\"table-container input-table-container\"},[(_vm.players)?_c('el-table',{attrs:{\"data\":_vm.players}},[_c('el-table-column',{attrs:{\"label\":_vm.$t('Basic Info')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('InputFieldCpt',{attrs:{\"model\":scope.row,\"prop\":\"firstName\",\"label\":_vm.$t('First name')}}),_c('InputDateCpt',{attrs:{\"model\":scope.row,\"prop\":\"dateOfBirth\",\"label\":_vm.$t('Date of Birth')}})]}}],null,false,1295151266)}),_c('el-table-column',{scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('InputFieldCpt',{attrs:{\"model\":scope.row,\"prop\":\"lastName\",\"label\":_vm.$t('Last name')}}),_c('InputSelectCpt',{attrs:{\"model\":scope.row,\"prop\":\"sexId\",\"lookups\":_vm.lookups.sex,\"label\":_vm.$t('Sex')}})]}}],null,false,3901768549)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Height & Weight')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('InputNumberCpt',{attrs:{\"model\":scope.row,\"prop\":\"height\",\"label\":_vm.$t('Height (cm)'),\"type\":\"number\"}}),_c('InputNumberCpt',{attrs:{\"model\":scope.row,\"prop\":\"weight\",\"label\":_vm.$t('Weight (kg)'),\"type\":\"number\"}})]}}],null,false,2248921942)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Hand & Foot')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('InputSelectCpt',{attrs:{\"model\":scope.row,\"prop\":\"primaryHandSideId\",\"lookups\":_vm.lookups.bodySides,\"label\":_vm.$t('Primary Hand')}}),_c('InputSelectCpt',{attrs:{\"model\":scope.row,\"prop\":\"primaryFootSideId\",\"lookups\":_vm.lookups.bodySides,\"label\":_vm.$t('Primary Foot')}})]}}],null,false,1903959924)}),_c('el-table-column',{attrs:{\"label\":_vm.$t('Usual Position')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('InputSelectCpt',{attrs:{\"model\":scope.row,\"prop\":\"usual15sPositionId\",\"lookups\":_vm.playingPositions15s,\"clearable\":true,\"label\":_vm.$t('Usual 15\\'s Playing Position')},on:{\"change\":function($event){return _vm.onPositionChanged(scope.row)}}}),_c('InputSelectCpt',{attrs:{\"model\":scope.row,\"prop\":\"usual7sPositionId\",\"lookups\":_vm.playingPositions7s,\"clearable\":true,\"label\":_vm.$t('Usual 7\\'s Playing Position')},on:{\"change\":function($event){return _vm.onPositionChanged(scope.row)}}})]}}],null,false,1763606663)}),_c('el-table-column',{attrs:{\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.potentialDuplicate)?_c('div',[_c('i',{staticClass:\"fas el-icon-fa-triangle-exclamation duplicate-icon\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"Potential duplicate of:\"))+\" \"),_c('div',{staticClass:\"player-link\"},[_c('el-link',{attrs:{\"href\":(\"/admin/users/\" + (scope.row.potentialDuplicate.userId) + \"/edit\"),\"type\":\"primary\",\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(scope.row.potentialDuplicate.fullName)+\" \")])],1)]):_vm._e(),_c('div',[_c('el-checkbox',{attrs:{\"disabled\":!scope.row.shouldImport && _vm.disableImport(scope.row.modelState)},model:{value:(scope.row.shouldImport),callback:function ($$v) {_vm.$set(scope.row, \"shouldImport\", $$v)},expression:\"scope.row.shouldImport\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Import\"))+\" \")])],1)]}}],null,false,284699091)})],1):_vm._e()],1),_c('div',{staticClass:\"import-warning\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"You are about to add this player / these players to\"))+\" - \"),_c('span',{staticClass:\"organisation-name\"},[_vm._v(_vm._s(_vm.settings.currentReporterOrg))]),_vm._v(\". \")]),_c('el-form-item',{staticClass:\"import-actions\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\",\"native-type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Import Selected Players\"))+\" \")]),_c('el-button',{attrs:{\"size\":\"medium\",\"plain\":\"\"},on:{\"click\":_vm.cancelAndReUpload}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Cancel and Re-Upload\"))+\" \")])],1)],1)],1)]):_c('SpinnerCpt')],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\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 } from 'vue-property-decorator';\nimport _ from 'lodash';\n\nimport {\n InputFieldCpt,\n InputNumberCpt,\n InputDateCpt,\n InputSelectCpt,\n InputRadioCpt,\n ValidationSummaryCpt,\n ValidationHintCpt,\n SpinnerCpt,\n BaseFormComponent,\n} from '@/core/components';\nimport { ApiService, AxiosFactory, DownloadProvider } from '@/core/services';\nimport { PlayerImportLookupModel, PlayerImportModel } from '@/core/webapi';\nimport { GameFormats } from '@/core/constants';\n\n@Component({\n components: {\n InputFieldCpt,\n InputNumberCpt,\n InputDateCpt,\n InputSelectCpt,\n InputRadioCpt,\n ValidationSummaryCpt,\n ValidationHintCpt,\n SpinnerCpt,\n },\n})\nexport default class PlayerImportView extends BaseFormComponent {\n players = [] as PlayerImportModel[];\n lookups = {} as PlayerImportLookupModel;\n loading = true;\n\n get playingPositions15s() {\n if (!this.lookups || !this.lookups.playingPositions) {\n return [];\n }\n\n return _.filter(this.lookups.playingPositions, position => {\n return _.includes(position.gameFormatIds, GameFormats.Fifteens);\n });\n }\n\n get playingPositions7s() {\n if (!this.lookups || !this.lookups.playingPositions) {\n return [];\n }\n\n return _.filter(this.lookups.playingPositions, position => {\n return _.includes(position.gameFormatIds, GameFormats.Sevens);\n });\n }\n\n async created() {\n try {\n this.lookups = (await ApiService.users().getManageUserFormLookupData()).data;\n } finally {\n this.loading = false;\n }\n }\n\n async downloadPlayerBulkUploadSampleXlsx() {\n const response = (await ApiService.resources().getDocument('playerbulkimportxls')).data;\n DownloadProvider.downloadResponse(response);\n }\n\n async onFileSelected(file: any) {\n this.loading = true;\n\n try {\n const reader = new FileReader();\n\n reader.onload = async (e: any) => {\n try {\n this.players = await this.uploadAndParse(e.target.result);\n\n if (this.players.length === 0) {\n this.$notify({\n title: this.$t('Warning') as string,\n message: this.$t('No players parsed from the file') as string,\n type: 'warning',\n });\n }\n } finally {\n this.clearFiles();\n this.loading = false;\n }\n };\n\n reader.readAsDataURL(file.file);\n } finally {\n this.clearFiles();\n this.loading = false;\n }\n }\n\n async uploadAndParse(f: any) {\n const file = new FormData();\n file.append('file', f);\n\n const response = await AxiosFactory.create().post('/api/v1/players/uploadAndParseXls', file, {\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n\n return this.fixNumericProps(response.data);\n }\n\n async onSubmitForm() {\n const toImportAmount = this.players?.filter(p => p.shouldImport).length ?? 0;\n if (!toImportAmount) {\n this.$notify({\n title: this.$t('Nothing to import') as string,\n message: this.$t('No players selected to import') as string,\n type: 'warning',\n });\n return;\n }\n\n this.loading = true;\n\n try {\n const response = await ApiService.players().importPlayers(this.players);\n const importedAmount = response.data?.filter(p => p.isImportSuccessful).length ?? 0;\n\n if (!!importedAmount) {\n this.$notify({\n title: this.$t('Success') as string,\n message: this.$t(`${importedAmount} players imported`) as string,\n type: 'success',\n });\n\n this.$router.push('/players');\n } else {\n if (response.data) {\n this.players = this.fixNumericProps(response.data);\n }\n\n this.$notify({\n title: this.$t('Validation failed') as string,\n message: this.$t('Please check validation messages') as string,\n type: 'error',\n });\n }\n } catch (error) {\n } finally {\n this.loading = false;\n }\n }\n\n cancelAndReUpload() {\n this.players = [];\n this.clearFiles();\n }\n\n clearFiles() {\n const uploadRef = this.$refs.upload as any;\n if (uploadRef) {\n uploadRef.clearFiles();\n }\n }\n\n disableImport(modelState: any) {\n // If no modelState errors, or if all of them have been addressed\n return !!Object.keys(modelState).filter(p => !!modelState[p]).length;\n }\n\n fixNumericProps(players: PlayerImportModel[]) {\n // SEE: https://stackoverflow.com/a/62635389/413785\n // Not sanitizing this would cause null (which is returned from the API) to be converted to 0 inside\n // the input-number component, and WRY wanted the field to remain empty, and not to default to 0\n return players?.map(p => {\n return {\n ...p,\n height: p.height ?? undefined,\n weight: p.weight ?? undefined,\n };\n });\n }\n\n onPositionChanged(player: PlayerImportModel) {\n if (player?.modelState) {\n player.modelState.usual7sPositionId = null as any;\n player.modelState.usual15sPositionId = null as any;\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersImportView.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersImportView.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PlayersImportView.vue?vue&type=template&id=a745a4e0&scoped=true&\"\nimport script from \"./PlayersImportView.vue?vue&type=script&lang=ts&\"\nexport * from \"./PlayersImportView.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PlayersImportView.vue?vue&type=style&index=0&id=a745a4e0&scoped=true&lang=scss&\"\nimport style1 from \"./PlayersImportView.vue?vue&type=style&index=1&lang=scss&\"\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 \"a745a4e0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"narrow-content\"},[_c('DetailHeaderCpt',{attrs:{\"title\":_vm.title,\"editRoute\":_vm.isReporter ? (\"/admin/users/\" + _vm.userId + \"/edit\") : null}}),(!_vm.loading)?_c('table',{staticClass:\"details-table\"},[_c('tbody',[_c('DetailsLookupTableRowCpt',{attrs:{\"label\":_vm.$t('Organisation'),\"lookups\":_vm.lookups.organisations,\"lookupId\":_vm.model.playerOrganisationId}}),_c('DetailsDateTableRowCpt',{attrs:{\"label\":_vm.$t('Date of Birth'),\"value\":_vm._f(\"noZoneDateTime\")(_vm.model.dateOfBirth,'YYYY-MM-DD')}}),_c('DetailsLookupTableRowCpt',{attrs:{\"label\":_vm.$t('Sex'),\"lookups\":_vm.lookups.sex,\"lookupId\":_vm.model.sexId}}),_c('DetailsTableRowCpt',{attrs:{\"label\":_vm.$t('Height (cm)'),\"value\":_vm.model.height}}),_c('DetailsTableRowCpt',{attrs:{\"label\":_vm.$t('Weight (kg)'),\"value\":_vm.model.weight}}),_c('DetailsLookupTableRowCpt',{attrs:{\"label\":_vm.$t('Primary Hand'),\"lookups\":_vm.lookups.bodySides,\"lookupId\":_vm.model.primaryHandSideId}}),_c('DetailsLookupTableRowCpt',{attrs:{\"label\":_vm.$t('Primary Foot'),\"lookups\":_vm.lookups.bodySides,\"lookupId\":_vm.model.primaryFootSideId}}),_c('DetailsLookupTableRowCpt',{attrs:{\"label\":_vm.$t('Usual 15\\'s Playing Position'),\"lookups\":_vm.playingPositions15s,\"lookupId\":_vm.model.usual15sPositionId}}),_c('DetailsLookupTableRowCpt',{attrs:{\"label\":_vm.$t('Usual 7\\'s Playing Position'),\"lookups\":_vm.playingPositions7s,\"lookupId\":_vm.model.usual7sPositionId}})],1)]):_c('SpinnerCpt')],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\nimport { Component } from 'vue-property-decorator';\nimport _ from 'lodash';\n\nimport AppVue from '@/AppVue.vue';\nimport { UserAccountLookupModel, UserAccountModel } from '@/core/webapi';\nimport { ApiService } from '@/core/services';\nimport {\n DetailHeaderCpt,\n DetailsTableRowCpt,\n DetailsDateTableRowCpt,\n DetailsLookupTableRowCpt,\n SpinnerCpt,\n} from '@/core/components';\nimport { GameFormats } from '@/core/constants';\n\n@Component({\n components: {\n DetailHeaderCpt,\n DetailsTableRowCpt,\n DetailsDateTableRowCpt,\n DetailsLookupTableRowCpt,\n SpinnerCpt,\n },\n})\nexport default class PlayerDetailsView extends AppVue {\n model = {} as UserAccountModel;\n lookups = {} as UserAccountLookupModel;\n loading = true;\n\n get playerId() {\n return parseInt(this.$route.params.playerId, 10);\n }\n\n get title() {\n return `${this.model?.firstName ?? ''} ${this.model?.lastName ?? ''}`.trim() ?? null;\n }\n\n get playingPositions15s() {\n if (!this.lookups || !this.lookups.playingPositions) {\n return [];\n }\n\n return _.filter(this.lookups.playingPositions, position => {\n return _.includes(position.gameFormatIds, GameFormats.Fifteens);\n });\n }\n\n get playingPositions7s() {\n if (!this.lookups || !this.lookups.playingPositions) {\n return [];\n }\n\n return _.filter(this.lookups.playingPositions, position => {\n return _.includes(position.gameFormatIds, GameFormats.Sevens);\n });\n }\n\n async created() {\n try {\n this.lookups = (await ApiService.users().getManageUserFormLookupData()).data;\n this.model = (await ApiService.users().getAccount(this.playerId)).data;\n } finally {\n this.loading = false;\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayerDetailsView.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayerDetailsView.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PlayerDetailsView.vue?vue&type=template&id=ea867f2c&\"\nimport script from \"./PlayerDetailsView.vue?vue&type=script&lang=ts&\"\nexport * from \"./PlayerDetailsView.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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersImportView.vue?vue&type=style&index=1&lang=scss&\"","var fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PlayersImportView.vue?vue&type=style&index=0&id=a745a4e0&scoped=true&lang=scss&\""],"sourceRoot":""}