{"version":3,"sources":["webpack:///./src/services/employ.js","webpack:///./src/assets/VA.png","webpack:///./src/pages/Applications/Applications.vue?cde9","webpack:///./src/components/ApplicationDetail/ApplicationDetail.vue?60eb","webpack:///./src/components/ApplicationDetail/applicationDetail.js","webpack:///./src/components/ApplicationDetail/applicationDetail.js?5288","webpack:///./src/components/ApplicationDetail/ApplicationDetail.vue","webpack:///./src/pages/Applications/applications.js","webpack:///./src/pages/Applications/applications.js?6ee9","webpack:///./src/pages/Applications/Applications.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","staticRenderFns","perPage","missions","length","attrs","model","value","callback","$$v","currentPage","expression","_e","_l","mission","i","directives","name","rawName","spinnerCandidature","key","slot","job","_f","dateCreation","limit","on","$event","preventDefault","annulerOffre","idCandidature","pkJobOffer","query","id","data","rows","mixins","Utils","computed","listCandidatures","_","orderBy","slice","mapGetters","mounted","myApplications","methods","jobofferService","getCandidatures","then","res","records","catch","callToaster","idJobOffer","deleteCandidature","success","filter","m","message","err","component","components","ApplicationDetail"],"mappings":"gHAAA,W,uBCAAA,EAAOC,QAAU,IAA0B,uB,2CCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,aAAa,CAACF,EAAG,KAAK,CAACE,YAAY,WAAW,CAACN,EAAIO,GAAG,SAASP,EAAIQ,GAAGR,EAAIS,GAAG,8BAA8B,UAAUL,EAAG,uBAAuB,IACrQM,EAAkB,GCDlB,EAAS,WAAa,IAAIV,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAiB,GAAfJ,EAAIW,SAAgBX,EAAIY,SAASC,OAAS,EAAGT,EAAG,eAAe,CAACU,MAAM,CAAC,aAAad,EAAIY,SAASC,OAAO,MAAQ,SAAS,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D,KAAKkB,YAAc,GAAKlB,KAAKU,QAC9BV,KAAKkB,YAAclB,KAAKU,WAGzByC,eAAW,CACZxB,mBAAoB,eAIxByB,QAvBa,WAwBXpD,KAAKqD,kBAGPC,QAAS,CACPD,eADO,WACU,WAEfE,OAAgBC,kBACfC,MAAK,SAAAC,GACJ,EAAK/C,SAAW+C,EAAIhB,KAAKiB,WACxBC,OAAM,WACP,EAAKC,YAAY,EAAKrD,GAAG,sBAG7B6B,aAVO,SAUMC,EAAewB,GAAY,WACtCP,OAAgBQ,kBAAkBzB,GAAemB,MAAK,SAAAC,GAChDA,EAAIM,SACN,EAAKH,YAAY,EAAKrD,GAAG,+BACzB,EAAKG,SAAW,EAAKA,SAASsD,QAAO,SAAAC,GAAC,OAAIA,EAAE3B,YAAcuB,MAE1D,EAAKD,YAAYH,EAAIS,SAAW,EAAK3D,GAAG,qBAEzCoD,OAAM,SAAAQ,GACP,EAAKP,YAAY,EAAKrD,GAAG,wBCpDqQ,I,YCOlS6D,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,QChBA,GACXC,WAAY,CACRC,sBCJyR,ICO7R,EAAY,eACd,EACAzE,EACAW,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-91a8b146.7496a2f6.js","sourcesContent":["import httpClient from './httpClient';\r\n\r\nconst employService = {\r\n searchJobOffer(pos) {\r\n return httpClient.get(`/api/adv/job/search/${pos.lat}/${pos.lng}/`);\r\n },\r\n getJobOffer(id) {\r\n return httpClient.get(`/api/adv/job/${id}`);\r\n },\r\n applyJobOffer(id) {\r\n return httpClient.post(`/api/adv/job/${id}/application`);\r\n },\r\n getMyApplications() {\r\n return httpClient.get(`/api/adv/job/applications`);\r\n },\r\n deleteAnnulerOffre(id) {\r\n return httpClient.delete(`/api/adv/job/${id}/application`);\r\n }\r\n}\r\n\r\nexport default employService;","module.exports = __webpack_public_path__ + \"img/VA.22c9e56c.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"pt-4 mb-4\"},[_c('h1',{staticClass:\"h3 mb-4\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('job-offers-my-application'))+\"\\n \")]),_c('application-detail')],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('div',[(_vm.perPage != 2 && _vm.missions.length > 5)?_c('b-pagination',{attrs:{\"total-rows\":_vm.missions.length,\"align\":\"center\",\"per-page\":_vm.perPage},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}}):_vm._e(),(_vm.spinnerCandidature)?_c('b-card',{staticClass:\"mb-0 shadow text-center\"},[_c('b-media',[_c('b-spinner',{attrs:{\"variant\":\"primary\",\"label\":\"Large Spinner\"}})],1)],1):_vm._e(),_vm._l((_vm.listCandidatures),function(mission,i){return _c('b-card',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.missions.length && !_vm.spinnerCandidature),expression:\"missions.length && !spinnerCandidature\"}],key:i,staticClass:\"mb-4 shadow\"},[_c('b-media',[_c('b-img',{attrs:{\"slot\":\"aside\",\"src\":require(\"@/assets/VA.png\"),\"width\":\"24\",\"height\":\"24\",\"alt\":\"Vitalliance\"},slot:\"aside\"}),_c('h3',{staticClass:\"h5\"},[_c('strong',[_vm._v(_vm._s(mission.job))]),_vm._v(\" \\n \"),_c('small',{staticClass:\"text-muted\"},[_c('svgicon',{staticClass:\"mr-1\",attrs:{\"icon\":\"check\",\"color\":\"var(--success)\",\"width\":\"18\",\"height\":\"18\"}}),_vm._v(\"\\n \"+_vm._s(_vm.$t('applied-for-the'))+\"\\n \"+_vm._s(_vm._f(\"formatUnixDateY\")(mission.dateCreation))+\"\\n \")],1)]),(_vm.limit != 2)?_c('div',[_c('p',[_c('b-button',{staticClass:\"mr-2 mt-2\",attrs:{\"variant\":\"primary\",\"size\":\"sm\"},on:{\"click\":function($event){$event.preventDefault();return _vm.annulerOffre(mission.idCandidature, mission.pkJobOffer)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('withdraw-my-application'))+\"\\n \")]),_c('b-button',{staticClass:\"mr-2 mt-2\",attrs:{\"to\":{\n name: 'candidate-job-offer-details',\n query: { id: mission.pkJobOffer },\n },\"variant\":\"primary\",\"size\":\"sm\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('more-information'))+\"\\n \")])],1)]):_vm._e()],1)],1)}),_c('b-card',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.missions.length && !_vm.spinnerCandidature),expression:\"!missions.length && !spinnerCandidature\"}]},[_c('b-media',[_c('b-img',{attrs:{\"slot\":\"aside\",\"src\":require(\"@/assets/VA.png\"),\"width\":\"24\",\"height\":\"24\",\"alt\":\"Vitalliance\"},slot:\"aside\"}),_c('p',[_vm._v(_vm._s(_vm.$t('no-applications')))])],1)],1),(_vm.perPage != 2 && _vm.missions.length > 5)?_c('b-pagination',{staticClass:\"mt-3\",attrs:{\"total-rows\":_vm.missions.length,\"align\":\"center\",\"per-page\":_vm.perPage},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters } from 'vuex';\nimport employService from '@/services/employ';\nimport Utils from \"@/mixins/Utils\";\nimport jobofferService from \"../../services/jobOffer\";\nimport _ from \"lodash\";\n\nexport default {\n data() {\n return {\n rows: 100,\n perPage: 10,\n currentPage: 1,\n missions: [],\n limit: 5\n }\n },\n mixins: [Utils],\n computed: {\n listCandidatures() {\n return _.orderBy(this.missions, ['applicationInfo.applicationDate'], ['desc']).slice(\n (this.currentPage - 1) * this.perPage,\n this.currentPage * this.perPage\n );\n },\n ...mapGetters({\n spinnerCandidature: 'isLoading'\n }),\n },\n\n mounted() {\n this.myApplications();\n },\n\n methods: {\n myApplications() {\n // employService.getMyApplications()\n jobofferService.getCandidatures()\n .then(res => {\n this.missions = res.data.records;\n }).catch(() => {\n this.callToaster(this.$t('problem-arise'))\n })\n },\n annulerOffre(idCandidature, idJobOffer) {\n jobofferService.deleteCandidature(idCandidature).then(res => {\n if (res.success) {\n this.callToaster(this.$t('cancel-candidature-success'));\n this.missions = this.missions.filter(m => m.pkJobOffer != idJobOffer);\n } else {\n this.callToaster(res.message || this.$t('problem-arise'));\n }\n }).catch(err => {\n this.callToaster(this.$t('problem-arise'));\n })\n },\n },\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/eslint-loader/index.js??ref--13-0!./applicationDetail.js?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/eslint-loader/index.js??ref--13-0!./applicationDetail.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ApplicationDetail.vue?vue&type=template&id=2550e246&\"\nimport script from \"./applicationDetail.js?vue&type=script&lang=js&\"\nexport * from \"./applicationDetail.js?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","import ApplicationDetail from '@/components/ApplicationDetail/ApplicationDetail.vue';\n\nexport default {\n components: {\n ApplicationDetail,\n },\n};\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/eslint-loader/index.js??ref--13-0!./applications.js?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/eslint-loader/index.js??ref--13-0!./applications.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Applications.vue?vue&type=template&id=225c3e2a&\"\nimport script from \"./applications.js?vue&type=script&lang=js&\"\nexport * from \"./applications.js?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"],"sourceRoot":""}