{"version":3,"sources":["webpack:///./src/components/CountryFlag.vue?9d2a","webpack:///src/components/CountryFlag.vue","webpack:///./src/components/CountryFlag.vue?a488","webpack:///./src/components/CountryFlag.vue","webpack:///./src/assets/images/flag_placeholder.png","webpack:///./src/service/RequestService.js","webpack:///./src/service/CountryService.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","class","countryService","getCountryCode","country","attrs","staticStyle","_v","_s","_e","staticRenderFns","component","module","exports","RequestService","AuthService","headers","Authorization","authService","getUserBearerToken","request","axios","post","Vue","prototype","$serviceBaseUrl","config","teamId","data","TeamId","agentId","AgentId","requestId","status","RequestId","Status","requestDeliveryId","RequestDeliveryId","playerId","coachingStaffId","PlayerId","CoachingStaffId","category","address","Category","Address","CountryService","get","then","res","result","countriesJson","filter","obj","name","code","toLowerCase"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACA,EAAG,MAAM,CAACE,MAAM,aAAeN,EAAIO,eAAeC,eAAeR,EAAIS,SAASC,MAAM,CAAC,IAAM,EAAQ,WAA4CV,EAAmB,gBAAEI,EAAG,OAAO,CAACO,YAAY,CAAC,iBAAiB,WAAW,CAACX,EAAIY,GAAGZ,EAAIa,GAAGb,EAAIS,YAAYT,EAAIc,QAClWC,EAAkB,G,YCUtB,G,UAAA,CACA,gCACA,gBACA,OACM,iBAAN,IAGA,oBACA,QARA,WASA,sBACA,yBAEA,kCCvBqV,I,YCOjVC,EAAY,eACd,EACAjB,EACAgB,GACA,EACA,KACA,KACA,MAIa,OAAAC,E,8BClBfC,EAAOC,QAAU,0J,2JCIIC,E,iFACH,IAAIC,Q,6BACT,CACLC,QAAS,CAAEC,cAAe,UAAF,OAAYrB,KAAKsB,YAAYC,yB,6DAE3CC,GACV,OAAOC,IAAMC,KAAKC,aAAIC,UAAUC,gBAAkB,6BAA8BL,EAASxB,KAAK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AAkB,wCAAyCG,EAAMhC,KAAK8B,U,kDAGtG,OAAOL,IAAMC,KAAKC,aAAIC,UAAUC,gBAAkB,yCAA0C,KAAM7B,KAAK8B,U,0DAGvG,OAAOL,IAAMC,KAAKC,aAAIC,UAAUC,gBAAkB,iDAAkD,KAAM7B,KAAK8B,U,2CAE9FY,EAAUN,EAAWI,EAAmBG,GACzD,IAAMX,EAAO,CACTY,SAAUF,EACVJ,UAAWF,EACXK,kBAAmBD,EACnBK,gBAAiBF,GAErB,OAAOlB,IAAMC,KAAKC,aAAIC,UAAUC,gBAAkB,oCAAqCG,EAAMhC,KAAK8B,U,2CAEjFM,EAAWM,GAC5B,IAAMV,EAAO,CACTM,UAAWF,EACXQ,SAAUF,GAEd,OAAOjB,IAAMC,KAAKC,aAAIC,UAAUC,gBAAkB,qCAAsCG,EAAMhC,KAAK8B,Y,kLC1FtFoB,E,6GAEb,OAAOzB,IAAM0B,IAAI,qCAAqCC,MAAK,SAAAC,GAAG,OAAIA,EAAIrB,KAAKA,U,qCAEhExB,GACX,IAAI8C,EAASC,EAAcvB,KAAKwB,QAAO,SAAAC,GACnC,OAAOA,EAAIC,OAASlD,KAExB,OAAiB,MAAb8C,EAAO,GACAA,EAAO,GAAGK,KAAKC,cACd,S","file":"js/chunk-f9ee661e.6e38e4c8.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('img',{class:'flag flag-' + _vm.countryService.getCountryCode(_vm.country),attrs:{\"src\":require(\"@/assets/images/flag_placeholder.png\")}}),(_vm.showCountryName)?_c('span',{staticStyle:{\"vertical-align\":\"middle\"}},[_vm._v(_vm._s(_vm.country))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CountryFlag.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CountryFlag.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CountryFlag.vue?vue&type=template&id=8101d086&\"\nimport script from \"./CountryFlag.vue?vue&type=script&lang=js&\"\nexport * from \"./CountryFlag.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAeAQMAAABt+G7kAAAAA1BMVEVMaXFNx9g6AAAAAXRSTlMAQObYZgAAAAtJREFUeF5jGHYAAADSAAEzF5gpAAAAAElFTkSuQmCC\"","import axios from 'axios'\r\nimport Vue from 'vue'\r\nimport AuthService from \"@/service/AuthService\";\r\n\r\nexport default class RequestService {\r\n authService = new AuthService();\r\n config = {\r\n headers: { Authorization: `Bearer ${this.authService.getUserBearerToken()}` }\r\n };\r\n createRequest(request) {\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/CreateRequest', request, this.config);\r\n }\r\n getRequests(teamId) {\r\n const data = {\r\n TeamId: teamId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GetRequests', data, this.config);\r\n }\r\n getRequestsCandidates(teamId, agentId) {\r\n const data = {\r\n TeamId: teamId,\r\n AgentId: agentId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GetRequestsCandidates', data, this.config);\r\n }\r\n updateRequestStatus(requestId, status) {\r\n const data = {\r\n RequestId: requestId,\r\n Status: status\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/UpdateRequestStatus', data, this.config);\r\n }\r\n updateRequestDeliveryStatus(requestDeliveryId, status) {\r\n const data = {\r\n RequestDeliveryId: requestDeliveryId,\r\n Status: status\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/UpdateRequestDeliveryStatus', data, this.config);\r\n }\r\n updateRequestCandidateStatus(requestId, playerId, coachingStaffId, status) {\r\n const data = {\r\n RequestId: requestId,\r\n PlayerId: playerId,\r\n CoachingStaffId: coachingStaffId,\r\n Status: status\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/UpdateRequestProposalStatus', data, this.config);\r\n }\r\n getRequest(requestId) {\r\n const data = {\r\n RequestId: requestId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GetRequest', data, this.config);\r\n }\r\n getRequestDelivery(requestDeliveryId) {\r\n const data = {\r\n RequestDeliveryId: requestDeliveryId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GetRequestDelivery', data, this.config);\r\n }\r\n getRequestDeliveries(requestId) {\r\n const data = {\r\n RequestId: requestId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GetRequestDeliveries', data, this.config);\r\n }\r\n generateRequestTeamsList(category, address) {\r\n const data = {\r\n Category: category,\r\n Address: address\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GenerateRequestTeamsList', data, this.config);\r\n }\r\n generateRequestAgentsList() {\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GenerateRequestAgentsList', null, this.config);\r\n }\r\n generateRequestCoachingStaffsList() {\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/GenerateRequestCoachingStaffsList', null, this.config);\r\n }\r\n addCandidateProposal(playerId, requestId, requestDeliveryId, coachingStaffId) {\r\n const data = {\r\n PlayerId: playerId,\r\n RequestId: requestId,\r\n RequestDeliveryId: requestDeliveryId,\r\n CoachingStaffId: coachingStaffId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/AddCandidateProposal', data, this.config);\r\n }\r\n calculatePlayerMatch(requestId, playerId) {\r\n const data = {\r\n RequestId: requestId,\r\n PlayerId: playerId\r\n };\r\n return axios.post(Vue.prototype.$serviceBaseUrl + '/api/Request/CalculateRequestMatch', data, this.config);\r\n }\r\n}","import axios from 'axios'\r\nimport countriesJson from '../../public/assets/layout/data/countries.json';\r\n\r\nexport default class CountryService {\r\n getCountries() {\r\n return axios.get('assets/layout/data/countries.json').then(res => res.data.data);\r\n }\r\n getCountryCode(country) {\r\n var result = countriesJson.data.filter(obj => {\r\n return obj.name === country;\r\n });\r\n if (result[0] != null)\r\n return result[0].code.toLowerCase();\r\n else return null;\r\n }\r\n}"],"sourceRoot":""}