{"version":3,"sources":["webpack:///./src/api/vendorTimesheets.api.js","webpack:///./src/pages/vendor_timesheets/timesheets_list/TimesheetModal.vue?e505","webpack:///./src/components/common/utils/AppConfirmButtons.vue","webpack:///src/components/common/utils/AppConfirmButtons.vue","webpack:///./src/components/common/utils/AppConfirmButtons.vue?3246","webpack:///./src/components/common/utils/AppConfirmButtons.vue?8dd5","webpack:///./src/components/common/modals/AppModal.vue","webpack:///src/components/common/modals/AppModal.vue","webpack:///./src/components/common/modals/AppModal.vue?9185","webpack:///./src/components/common/modals/AppModal.vue?0702","webpack:///./src/pages/vendor_timesheets/timesheets_list/PreImportTimesheetsRapportModal.vue?9a07","webpack:///./node_modules/core-js/modules/_object-to-array.js","webpack:///./src/pages/vendor_timesheets/timesheets_list/index.vue","webpack:///./src/pages/vendor_timesheets/timesheets_list/PreImportTimesheetsRapportModal.vue","webpack:///src/pages/vendor_timesheets/timesheets_list/PreImportTimesheetsRapportModal.vue","webpack:///./src/pages/vendor_timesheets/timesheets_list/PreImportTimesheetsRapportModal.vue?0241","webpack:///./src/pages/vendor_timesheets/timesheets_list/PreImportTimesheetsRapportModal.vue?5ab2","webpack:///./src/pages/vendor_timesheets/timesheets_list/TimesheetModal.vue","webpack:///src/pages/vendor_timesheets/timesheets_list/TimesheetModal.vue","webpack:///./src/pages/vendor_timesheets/timesheets_list/TimesheetModal.vue?b252","webpack:///./src/pages/vendor_timesheets/timesheets_list/TimesheetModal.vue?c915","webpack:///src/pages/vendor_timesheets/timesheets_list/index.vue","webpack:///./src/pages/vendor_timesheets/timesheets_list/index.vue?698e","webpack:///./src/pages/vendor_timesheets/timesheets_list/index.vue?daf0","webpack:///./node_modules/core-js/modules/es7.object.values.js","webpack:///./src/components/common/modals/AppConfirmationModal.vue","webpack:///src/components/common/modals/AppConfirmationModal.vue","webpack:///./src/components/common/modals/AppConfirmationModal.vue?2d39","webpack:///./src/components/common/modals/AppConfirmationModal.vue?3832","webpack:///./src/shared/services/date.js","webpack:///./src/api/scopes.api.js"],"names":["END_POINT","getVendorTimesheet","vendorTimesheetId","httpClient","get","searchTimesheetsById","data","deleteTimesheet","post","exportTimesheet","scopeId","config","getTimesheet","id","deleteWorkDays","workData","delete","params","addTimesheet","timesheetData","editTimesheet","put","getAllStatus","getVendorsForConnectedScope","getPreImportTimesheetsRapport","attachment","onUploadProgress","formData","FormData","append","headers","uploadTimesheetsExcel","excelFile","dispatchImportTimesheetsJob","activity_log_id","render","_vm","this","_c","_self","staticClass","secondButton","staticStyle","attrs","secondButtonVariant","isLoading","isLoadingSecondButton","secondButtonDisabled","on","onSecondSubmit","_e","_v","_s","$t","secondButtonText","firstButton","class","variant","isDisabled","onSubmit","submitText","noCancel","onCancel","cancelText","staticRenderFns","name","components","AppSpinner","props","type","default","methods","component","size","closeOnBackdrop","_t","String","required","DESCRIPTORS","getKeys","toIObject","isEnum","f","module","exports","isEntries","it","key","O","keys","length","i","result","call","push","$getConst","pages","vendor_timesheets","vendor_timesheets_timesheets_title","adminRole","scope","scopes","form","select_option","scopesOfConnectedRole","changeScope","model","value","callback","$$v","expression","slot","alerts","no_results_found","vendor_timesheets_timesheets_list","hasPermission","permissions","addInvoice","button","add","icons","allDeleted","onDeleteItems","scopedSlots","_u","fn","svgIcons","excel","_f","proxy","downloadFile","export","importTimesheets","openPreImportModal","import","tableKey","ref","fields","endPoint","actions","checked","headCheckbox","confirmDelete","showDetails","onCheckAllIds","onCheckedIds","item","formatDate","$event","profile","are_you_sure","cancelDelete","timesheetToDelete","invoices_id","vendor_timesheets_rapport_title","generatePreImportTimesheetsRapport","upload","file","choose_file","isRapportGenerated","vendor_timesheets_rapport_total_timesheets","rapport","timesheetsCount","vendor_timesheets_rapport_timesheets_to_create","timesheetsToCreate","vendor_timesheets_rapport_timesheets_to_update","timesheetsToUpdate","missingColumns","vendor_timesheets_rapport_missing_columns","_l","column","reportIsPending","vendor_timesheets_report_is_pending","failedResponse","vendor_timesheets_rapport_total_invalid_timesheets","Object","errors","row","directives","rawName","vendor_timesheets_rapport_row","chevron_down","error","values","uploadPercentage","submitButtonText","submitTimesheetsReport","closeModal","AppConfirmButtons","AppModal","computed","resetRapport","mounted","onDelete","items","index","timesheet","timesheet_submitted_date","timesheet_related","invoices","invoice_id","AppConfirmationModal","TimesheetModal","PreImportTimesheetsRapportModal","AppSection","AppDataTable","label","sortable","filterable","action","icon","status","checkedIds","created","getScopes","getAllScopes","getDefaultScopeIdForList","ids","response","timesheetId","responseType","link","document","window","getStatus","updateStatusField","text","$export","$values","S","title","message","yes","cancel","submit","close","date","month","getMonth","day","getDate","getFullYear","dateParts","split","formatDateByScope","scopeDefault","format_date","getOneScope","addScope","scopeData","editScope","deleteScope","usersInScopes","getScopeLanguages","getScopeNavCredentials","updateScopeNavCredentials","navCredentials","checkNavStatus","testNavCredentials","smsLogs","monitoringJobs","launchJobs","jobIds","getAllowedMobileCountriesPerScope","getAllowedMobileCountries","httpClientWithoutToken","addAllowedMobileCountries","countries","getCronConfig","getTimezonesList","updateCronConfig","cronConfigId","getOneCronConfig","enableOrDisableScope"],"mappings":"kHAAA,0cAEMA,EAAY,uBAEZC,EAAqB,SAACC,GAAiB,OAAKC,OAAWC,IAAIJ,EAAYE,IACvEG,EAAuB,SAACC,GAAI,OAAKH,OAAWC,IAAI,wBAAyBE,IACzEC,EAAkB,SAACD,GAAI,OAAKH,OAAWK,KAAKR,EAAY,mBAAoBM,IAC5EG,EAAkB,SAACC,EAASC,GAAM,OAAKR,OAAWC,IAAKJ,EAAU,UAAWU,EAASC,IACrFC,EAAe,SAACC,GAAE,OAAKV,OAAWC,IAAIJ,EAAU,eAAgBa,IAChEC,EAAiB,SAACD,EAAIE,GAAQ,OAAKZ,OAAWa,OAAOhB,EAAY,aAAea,EAAI,CAACI,OAAQF,KAC7FG,EAAe,SAACC,GAAa,OAAKhB,OAAWK,KAAKR,EAAWmB,IAC7DC,EAAgB,SAACP,EAAGM,GAAa,OAAKhB,OAAWkB,IAAIrB,EAAYa,EAAIM,IACrEG,EAAe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AAK,UAAYM,EAASC,IACpEyP,EAAiB,SAAC1P,GAAO,OAAKP,OAAWC,IAAIJ,EAAY,IAAMU,EAAU,gBACzE2P,EAAa,SAACC,GAAM,OAAKnQ,OAAWK,KAAKR,EAAY,UAAW,CAACsQ,YAGjEC,EAAoC,SAAC7P,GAAO,OAAKP,OAAWC,IAAIJ,EAAY,IAAMU,EAAU,sBAC5F8P,EAA4B,WAAH,OAASC,OAAuBrQ,IAAIJ,EAAY,sBACzE0Q,EAA4B,SAAChQ,EAASiQ,GAAS,OAAKxQ,OAAWK,KAAKR,EAAY,IAAMU,EAAU,oBAAoB,CAACiQ,UAAWA,KAEhIC,EAAgB,SAAClQ,GAAO,OAAKP,OAAWC,IAAIJ,EAAY,IAAMU,EAAU,kBACxEmQ,EAAmB,WAAH,OAAS1Q,OAAWC,IAAI,mBACxC0Q,EAAmB,SAACC,EAAczQ,GAAI,OAAKH,OAAWkB,IAAIrB,EAAY,gBAAkB+Q,EAAczQ,IACtG0Q,EAAmB,SAACD,GAAY,OAAK5Q,OAAWC,IAAIJ,EAAY,gBAAkB+Q,IAElFE,EAAuB,SAACvQ,GAAO,OAAKP,OAAWK,KAAKR,EAAY,yBAA2BU","file":"js/chunk-ec754cbc.443e733c.js","sourcesContent":["import httpClient from \"./_httpClient\";\n\nconst END_POINT = \"/vendors/timesheets/\"\n\nconst getVendorTimesheet = (vendorTimesheetId) => httpClient.get(END_POINT + vendorTimesheetId);\nconst searchTimesheetsById = (data) => httpClient.get('/searchTimesheetsById', data)\nconst deleteTimesheet = (data) => httpClient.post(END_POINT + 'deleteTimesheets', data);\nconst exportTimesheet = (scopeId, config) => httpClient.get( END_POINT+'export/'+ scopeId, config);\nconst getTimesheet = (id) => httpClient.get(END_POINT+'update-days/' +id);\nconst deleteWorkDays = (id, workData) => httpClient.delete(END_POINT + 'work-days/' + id, {params: workData});\nconst addTimesheet = (timesheetData) => httpClient.post(END_POINT, timesheetData);\nconst editTimesheet = (id,timesheetData) => httpClient.put(END_POINT + id, timesheetData);\nconst getAllStatus = () => httpClient.get(END_POINT + 'all-status');\nconst getVendorsForConnectedScope = (data) => httpClient.get(\"vendors\", {params: data});\nconst getPreImportTimesheetsRapport = (scopeId, attachment, onUploadProgress) => {\n let formData = new FormData();\n\n formData.append(\"file\", attachment);\n\n if (scopeId) {\n formData.append(\"scopeId\", scopeId);\n }\n\n return httpClient.post(\n END_POINT + \"rapport\",\n formData,\n {\n headers: {\n \"Content-Type\": \"multipart/form-data\"\n },\n onUploadProgress\n });\n}\nconst uploadTimesheetsExcel = (scopeId, excelFile, onUploadProgress) => {\n let formData = new FormData();\n\n formData.append(\"file\", excelFile);\n if (scopeId) {\n formData.append(\"scopeId\", scopeId);\n }\n return httpClient.post(\n END_POINT + \"import\",\n formData,\n {\n headers: {\n \"Content-Type\": \"multipart/form-data\"\n },\n onUploadProgress\n });\n};\n\nconst dispatchImportTimesheetsJob = (activity_log_id) => httpClient.post(END_POINT + 'dispatchImportTimesheetsJob/' + activity_log_id);\n\n\nexport {\n getVendorTimesheet,\n searchTimesheetsById,\n deleteTimesheet,\n addTimesheet,\n editTimesheet,\n getVendorsForConnectedScope,\n getTimesheet,\n deleteWorkDays,\n exportTimesheet,\n getPreImportTimesheetsRapport,\n uploadTimesheetsExcel,\n getAllStatus,\n dispatchImportTimesheetsJob,\n}\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/index.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!./TimesheetModal.vue?vue&type=style&index=0&id=1c5ef508&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"d-block flex-wrap py-3 text-center\"},[(_vm.secondButton)?_c('b-button',{staticClass:\"mx-2 mb-3 text-uppercase\",staticStyle:{\"min-width\":\"10rem\"},attrs:{\"variant\":_vm.secondButtonVariant,\"disabled\":_vm.isLoading || _vm.isLoadingSecondButton || _vm.secondButtonDisabled,\"pill\":\"\",\"size\":\"lg\"},on:{\"click\":_vm.onSecondSubmit}},[(_vm.isLoadingSecondButton)?_c('AppSpinner',{staticClass:\"d-inline-block align-middle\"}):_vm._e(),_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.secondButtonText))+\"\\n \")],1):_vm._e(),(_vm.firstButton)?_c('b-button',{staticClass:\"mb-3 text-uppercase\",class:[{'d-block': !_vm.secondButtonText}, _vm.secondButtonText ? 'mx-2' : 'mx-auto'],staticStyle:{\"min-width\":\"10rem\"},attrs:{\"variant\":_vm.variant,\"disabled\":_vm.isLoading || _vm.isLoadingSecondButton || _vm.isDisabled,\"pill\":\"\",\"size\":\"lg\"},on:{\"click\":_vm.onSubmit}},[(_vm.isLoading)?_c('AppSpinner',{staticClass:\"d-inline-block align-middle\"}):_vm._e(),_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.submitText))+\"\\n \")],1):_vm._e(),(!_vm.noCancel)?_c('a',{class:[(_vm.isLoading || _vm.isLoadingSecondButton) ? 'd-none': '',\n !(_vm.isLoading || _vm.isLoadingSecondButton) ? 'd-block': '', 'text-center text-'+_vm.variant ],attrs:{\"type\":\"button\"},on:{\"click\":_vm.onCancel}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.cancelText))+\"\\n \")]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppConfirmButtons.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!./AppConfirmButtons.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppConfirmButtons.vue?vue&type=template&id=27d9f04a&scoped=true&\"\nimport script from \"./AppConfirmButtons.vue?vue&type=script&lang=js&\"\nexport * from \"./AppConfirmButtons.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 \"27d9f04a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('b-modal',{attrs:{\"id\":_vm.id,\"size\":_vm.size,\"hide-header\":\"\",\"hide-footer\":\"\",\"centered\":\"\",\"no-close-on-backdrop\":!_vm.closeOnBackdrop,\"body-class\":\"m-3 text-primary\"}},[_c('div',{attrs:{\"id\":\"content\"}},[_vm._t(\"title\"),_vm._t(\"content\"),_vm._t(\"button\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppModal.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!./AppModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppModal.vue?vue&type=template&id=6891bdfe&scoped=true&\"\nimport script from \"./AppModal.vue?vue&type=script&lang=js&\"\nexport * from \"./AppModal.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 \"6891bdfe\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/index.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!./PreImportTimesheetsRapportModal.vue?vue&type=style&index=0&id=8ed00f94&prod&scoped=true&lang=css&\"","var DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || isEnum.call(O, key)) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AppSection',{attrs:{\"id\":\"vendortimesheets\",\"title\":_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_timesheets_title,\"type\":\"page\"}},[(_vm.adminRole)?_c('b-form-group',{attrs:{\"id\":\"language\",\"label\":_vm.$t(_vm.$getConst.pages.scope.scopes),\"label-for\":\"language-input\"}},[_c('multiselect',{attrs:{\"track-by\":\"id\",\"label\":\"name\",\"placeholder\":_vm.$t(this.$getConst.pages.form.select_option),\"options\":_vm.scopesOfConnectedRole,\"show-labels\":false,\"searchable\":true,\"allowEmpty\":false},on:{\"input\":_vm.changeScope},model:{value:(_vm.scope),callback:function ($$v) {_vm.scope=$$v},expression:\"scope\"}},[_c('span',{attrs:{\"slot\":\"noResult\"},slot:\"noResult\"},[_vm._v(_vm._s(_vm.$t(_vm.$getConst.pages.alerts.no_results_found)))])])],1):_vm._e(),_c('AppSection',{attrs:{\"id\":\"permissions-table\",\"title\":_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_timesheets_list),\"type\":\"section\",\"button\":_vm.hasPermission(_vm.$getConst.permissions.addInvoice),\"button-text\":_vm.$getConst.pages.button.add,\"button-icon\":_vm.$getConst.icons.add,\"second-button\":\"\",\"thirdButton\":_vm.allDeleted},on:{\"onClick\":_vm.addTimesheet,\"onClickThirdButton\":_vm.onDeleteItems},scopedSlots:_vm._u([{key:\"secondButton\",fn:function(){return [_c('b-dropdown',{staticClass:\"ml-auto\",attrs:{\"toggle-class\":\"text-success font-weight-bold\",\"variant\":\"link\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('AppSvgIcon',{staticClass:\"mr-2\",attrs:{\"icon\":_vm.$getConst.svgIcons.excel}}),_vm._v(_vm._s(_vm._f(\"capitalize\")(_vm.$t(_vm.$getConst.pages.excel.excel)))+\"\\n \")]},proxy:true}])},[_c('b-dropdown-item-button',{attrs:{\"button-class\":\"py-2 font-weight-bold\"},on:{\"click\":_vm.downloadFile}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"capitalize\")(_vm.$t(_vm.$getConst.pages.excel.export)))),_c('i',{class:[_vm.$getConst.icons.export, 'ml-2']})]),(_vm.hasPermission(_vm.$getConst.permissions.importTimesheets))?_c('b-dropdown-item-button',{attrs:{\"button-class\":\"py-2 font-weight-bold\"},on:{\"click\":_vm.openPreImportModal}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"capitalize\")(_vm.$t(_vm.$getConst.pages.excel.import)))),_c('i',{class:[_vm.$getConst.icons.import, 'ml-2']})]):_vm._e()],1)]},proxy:true}])},[_c('AppDataTable',{key:_vm.tableKey,ref:\"timesheetsTable\",attrs:{\"fields\":_vm.fields,\"end-point\":_vm.endPoint,\"actions\":_vm.actions,\"selectable\":true,\"withItem\":true,\"allChecked\":_vm.checked,\"headCheckbox\":_vm.headCheckbox},on:{\"onEdit\":_vm.editTimesheet,\"onDelete\":_vm.confirmDelete,\"onShow\":_vm.showDetails,\"onCheckedIds\":_vm.onCheckAllIds,\"getCheckedIds\":_vm.onCheckedIds},scopedSlots:_vm._u([{key:\"timesheet_submitted_date\",fn:function(item){return [_vm._v(\"\\n \"+_vm._s(_vm.formatDate(item.data))+\"\\n \")]}},{key:\"timesheet_approved_date\",fn:function(item){return [_vm._v(\"\\n \"+_vm._s(_vm.formatDate(item.data))+\"\\n \")]}},{key:\"timesheet_week_end_date\",fn:function(item){return [_vm._v(\"\\n \"+_vm._s(_vm.formatDate(item.data))+\"\\n \")]}}])}),_c('PreImportTimesheetsRapportModal',{attrs:{\"scope-id\":_vm.scope ? _vm.scope.id : null},on:{\"importedTimesheets\":function($event){_vm.tableKey++}}}),_c('AppConfirmationModal',{ref:\"confirmDelete\",attrs:{\"id\":\"confirmation-modal\",\"title\":_vm.$t(_vm.$getConst.pages.profile.are_you_sure),\"|\":\"\",\"capitalize\":\"\"},on:{\"onCancel\":_vm.cancelDelete,\"onConfirm\":function($event){return _vm.deleteTimesheet(false)}}}),_c('TimesheetModal',{attrs:{\"id\":\"confirm-delete-timesheets\",\"items\":this.timesheetToDelete,\"invoices\":_vm.invoices_id},on:{\"deleleTimesheets\":function($event){return _vm.deleteTimesheet(true)}}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AppModal',{attrs:{\"id\":\"pre-import-timesheets-rapport\",\"close-on-backdrop\":_vm.closeOnBackdrop},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('h3',{staticClass:\"text-center mb-5\"},[_vm._v(_vm._s(_vm._f(\"capitalize\")(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_title))))])]},proxy:true},{key:\"content\",fn:function(){return [_c('div',{staticClass:\"mx-auto text-center\"},[_c('input',{staticClass:\"input-file\",attrs:{\"type\":\"file\",\"name\":\"file\",\"id\":\"file\",\"disabled\":_vm.isLoading},on:{\"change\":_vm.generatePreImportTimesheetsRapport}}),_c('label',{attrs:{\"for\":\"file\"}},[_c('i',{class:[_vm.$getConst.icons.upload, 'mr-2']}),(!_vm.file)?_c('span',[_vm._v(_vm._s(_vm.$t(_vm.$getConst.pages.form.choose_file)))]):_c('span',[_vm._v(_vm._s(_vm.file.name))])])]),(_vm.isRapportGenerated)?_c('b-list-group',{staticClass:\"my-3\",attrs:{\"id\":\"success-rapport\"}},[_c('b-list-group-item',{staticClass:\"bg-light d-flex justify-content-between align-items-center font-weight-bold\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_total_timesheets))+\"\\n \"),_c('span',[_vm._v(_vm._s(_vm.rapport.timesheetsCount))])]),_c('b-list-group-item',{staticClass:\"d-flex justify-content-between align-items-center\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_timesheets_to_create))+\"\\n \"),_c('span',[_vm._v(_vm._s(_vm.rapport.timesheetsToCreate))])]),_c('b-list-group-item',{staticClass:\"d-flex justify-content-between align-items-center\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_timesheets_to_update))+\"\\n \"),_c('span',[_vm._v(_vm._s(_vm.rapport.timesheetsToUpdate))])])],1):_vm._e(),(_vm.missingColumns.length > 0)?_c('b-list-group',{staticClass:\"my-3\",attrs:{\"id\":\"missing-columns\"}},[_c('b-list-group-item',{staticClass:\"bg-light d-flex justify-content-between align-items-center text-danger\"},[_c('h5',[_c('b',[_vm._v(_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_missing_columns)))])])]),_vm._l((_vm.missingColumns),function(column){return _c('b-list-group-item',{staticClass:\"justify-content-between align-items-center font-weight-bold\"},[_vm._v(\"\\n \"+_vm._s(column)+\"\\n \")])})],2):_vm._e(),(_vm.reportIsPending)?_c('b-list-group',{staticClass:\"my-3\",attrs:{\"id\":\"pending-response\"}},[_c('b-list-group-item',{staticClass:\"d-flex justify-content-between align-items-center text-success\"},[_c('h5',[_c('b',[_vm._v(_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_report_is_pending)))])])])],1):(_vm.failedResponse)?_c('b-list-group',{staticClass:\"overflow-auto\",attrs:{\"id\":\"failed-rapport\"}},[_c('b-list-group-item',{staticClass:\"d-flex bg-light justify-content-between align-items-center text-danger\"},[_c('h5',[_c('b',[_vm._v(_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_total_invalid_timesheets)))])]),_c('span',{staticClass:\"badge badge-danger badge-pill w-auto\"},[_vm._v(_vm._s(Object.keys(_vm.failedResponse).length))])]),_vm._l((_vm.failedResponse),function(errors,row){return [_c('a',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\",value:('row-'+row),expression:\"'row-'+row\"}],staticClass:\"list-group-item d-flex justify-content-between align-items-center py-2 px-4\",attrs:{\"type\":\"button\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets.vendor_timesheets_rapport_row))+\" \"+_vm._s(row)+\"\\n \"),_c('span',[_c('i',{class:_vm.$getConst.icons.chevron_down})])]),_c('b-collapse',{staticClass:\"list-group-item\",attrs:{\"id\":'row-'+row,\"accordion\":\"my-accordion\"}},[_c('ul',{staticClass:\"mb-0\"},_vm._l((errors),function(error){return _c('li',[_vm._v(\"\\n \"+_vm._s(Object.keys(error)[0])+\":\\n \"),_c('span',{staticClass:\"float-right\"},[_vm._v(_vm._s(_vm.$t(_vm.$getConst.pages.vendor_timesheets[\"vendor_timesheets_rapport_\"+Object.values(error)[0]])))])])}),0)])]})],2):_vm._e(),(_vm.isLoading)?_c('b-progress',{staticClass:\"mx-auto w-75\",attrs:{\"show-progress\":\"\",\"animated\":\"\",\"variant\":\"secondary\",\"height\":\"3rem\"}},[_c('b-progress-bar',{staticClass:\"font-weight-bold font-size-md\",attrs:{\"value\":_vm.uploadPercentage,\"label\":`${_vm.uploadPercentage}%`}})],1):_vm._e()]},proxy:true},(_vm.isRapportGenerated || _vm.reportIsPending)?{key:\"button\",fn:function(){return [_c('AppConfirmButtons',{attrs:{\"submit-text\":_vm.submitButtonText,\"is-loading\":_vm.isLoading},on:{\"onSubmit\":_vm.submitTimesheetsReport,\"onCancel\":_vm.closeModal}})]},proxy:true}:null],null,true)})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PreImportTimesheetsRapportModal.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!./PreImportTimesheetsRapportModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PreImportTimesheetsRapportModal.vue?vue&type=template&id=8ed00f94&scoped=true&\"\nimport script from \"./PreImportTimesheetsRapportModal.vue?vue&type=script&lang=js&\"\nexport * from \"./PreImportTimesheetsRapportModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PreImportTimesheetsRapportModal.vue?vue&type=style&index=0&id=8ed00f94&prod&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 \"8ed00f94\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AppConfirmationModal',{attrs:{\"id\":_vm.id,\"title\":_vm.$t(_vm.$getConst.pages.profile.are_you_sure),\"|\":\"\",\"capitalize\":\"\"},on:{\"onConfirm\":_vm.onDelete},scopedSlots:_vm._u([{key:\"form\",fn:function(){return [_c('p',{staticClass:\"text-center\"},[_vm._v(\"to delete\\n \"),_vm._l((_vm.items),function(item,index){return _c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t(_vm.$getConst.pages.timesheet.timesheet_submitted_date))+\" \"+_vm._s(item.timesheet_submitted_date)+\" \"+_vm._s(_vm.$t(_vm.$getConst.pages.timesheet.timesheet_related))+\" \"+_vm._s(_vm.invoices[index].invoice_id)+\",\\n \")])})],2)]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TimesheetModal.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!./TimesheetModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TimesheetModal.vue?vue&type=template&id=1c5ef508&scoped=true&\"\nimport script from \"./TimesheetModal.vue?vue&type=script&lang=js&\"\nexport * from \"./TimesheetModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TimesheetModal.vue?vue&type=style&index=0&id=1c5ef508&prod&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 \"1c5ef508\",\n null\n \n)\n\nexport default component.exports","\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=e7ccbb14&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('AppModal',{attrs:{\"id\":_vm.id,\"isLoading\":_vm.isLoading},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('h3',{staticClass:\"text-center mb-4\"},[_vm._v(_vm._s(_vm.title)+\" ?\")]),(_vm.message)?_c('p',{staticClass:\"mb-4\"},[_vm._v(_vm._s(_vm.message))]):_vm._e()]},proxy:true},{key:\"content\",fn:function(){return [_vm._t(\"form\")]},proxy:true},{key:\"button\",fn:function(){return [_c('AppConfirmButtons',{attrs:{\"submit-text\":_vm.$getConst.pages.button.yes,\"cancel-text\":_vm.$getConst.pages.button.cancel,\"is-loading\":_vm.isLoading,\"variant\":\"danger\"},on:{\"onSubmit\":_vm.submit,\"onCancel\":_vm.close}})]},proxy:true}],null,true)})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppConfirmationModal.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!./AppConfirmationModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppConfirmationModal.vue?vue&type=template&id=0bb08515&scoped=true&\"\nimport script from \"./AppConfirmationModal.vue?vue&type=script&lang=js&\"\nexport * from \"./AppConfirmationModal.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 \"0bb08515\",\n null\n \n)\n\nexport default component.exports","const formatDate = function (date) {\n if (typeof date === \"object\") {\n let month = date.getMonth()+1;\n if (month < 10) {\n month = \"0\" + month;\n }\n let day = date.getDate();\n if (day < 10) {\n day = \"0\" + day;\n }\n return day + \"/\" + month + \"/\" + date.getFullYear();\n } else {\n let dateParts = date.split(\"/\");\n return dateParts[1] + \"/\" + dateParts[0] + \"/\" + dateParts[2];\n }\n}\n\nconst formatDateByScope = function (date, scopeDefault, scope) {\n if (typeof date === \"object\") {\n let month = date.getMonth()+1;\n if (month < 10) {\n month = \"0\" + month;\n }\n let day = date.getDate();\n if (day < 10) {\n day = \"0\" + day;\n }\n if((scope && scope.format_date === 'DD/MM/YYYY') ||\n (!scope && scopeDefault === 'DD/MM/YYYY')) {\n return day + \"/\" + month + \"/\" + date.getFullYear();\n } else {\n return month + \"/\" + day + \"/\" + date.getFullYear();\n }\n\n } else {\n let dateParts = date.split(\"/\");\n if((scope && scope.format_date === 'DD/MM/YYYY') ||\n (!scope && scopeDefault === 'DD/MM/YYYY')) {\n return dateParts[0] + \"/\" + dateParts[1] + \"/\" + dateParts[2];\n } else {\n return dateParts[1] + \"/\" + dateParts[0] + \"/\" + dateParts[2];\n }\n }\n}\n\n// const DDMMYYYY_toDayObject = function(date) {\n// const dateMomentObject = moment(dateString, \"DD/MM/YYYY\"); // 1st argument - string, 2nd argument - format\n// var dateObject = dateMomentObject.toDate();\n// }\n\nexport {\n formatDate,\n formatDateByScope\n}\n","import httpClient from './_httpClient';\nimport httpClientWithoutToken from \"./_httpClientWithoutToken\";\n\nconst END_POINT = '/scopes';\n\nconst getAllScopes = () => httpClient.get(END_POINT + '?paginated=false');\nconst getOneScope = (id) => httpClient.get( 'oneScope/' + id);\nconst addScope = (scopeData) => httpClient.post(END_POINT, scopeData);\nconst editScope = (id, scopeData) => httpClient.put(END_POINT + '/' + id, scopeData);\nconst deleteScope = (id) => httpClient.delete(END_POINT + '/' + id);\nconst usersInScopes = (id) => httpClient.get('/usersInScopes/' + id);\nconst getScopeLanguages = (scopeId) => httpClient.get(END_POINT + '/' + scopeId + '/languages');\nconst getDefaultScopeIdForList = () => httpClient.get(END_POINT + '/defaultScopeIdForList');\n\n// Nav credentials APIs\nconst getScopeNavCredentials = (scopeId) => httpClient.get(END_POINT + '/' + scopeId + '/nav-credentials');\nconst updateScopeNavCredentials = (scopeId, navCredentials) => httpClient.put(END_POINT + '/' + scopeId + '/nav-credentials', navCredentials);\nconst checkNavStatus = (scopeId) => httpClient.post(END_POINT + '/' + scopeId + '/nav-status');\nconst getNavStatusHistory = (scopeId) => httpClient.get(END_POINT + '/' + scopeId + '/nav-status');\nconst testNavCredentials = (scopeId,navCredentials) => httpClient.post(END_POINT + '/' + scopeId + \"/test-nav-credentials\",navCredentials);\nconst smsLogs = (scopeId, config) => httpClient.get( '/excel/' + scopeId, config);\nconst monitoringJobs = (scopeId) => httpClient.get(END_POINT + '/' + scopeId + '/monitoring');\nconst launchJobs = (jobIds) => httpClient.post(END_POINT + '/launch', {jobIds});\n\n// Allowed mobile countries\nconst getAllowedMobileCountriesPerScope = (scopeId) => httpClient.get(END_POINT + '/' + scopeId + '/mobile-countries');\nconst getAllowedMobileCountries = () => httpClientWithoutToken.get(END_POINT + '/mobile-countries');\nconst addAllowedMobileCountries = (scopeId, countries) => httpClient.post(END_POINT + '/' + scopeId + '/mobile-countries',{countries: countries});\n\nconst getCronConfig = (scopeId) => httpClient.get(END_POINT + '/' + scopeId + '/cron_config/');\nconst getTimezonesList = () => httpClient.get('timezones_list');\nconst updateCronConfig = (cronConfigId, data) => httpClient.put(END_POINT + '/cron_config/' + cronConfigId, data);\nconst getOneCronConfig = (cronConfigId) => httpClient.get(END_POINT + '/cron_config/' + cronConfigId);\n\nconst enableOrDisableScope = (scopeId) => httpClient.post(END_POINT + '/enableOrDisableScope/' + scopeId);\n\nexport {\n getAllScopes,\n addScope,\n editScope,\n deleteScope,\n getOneScope,\n usersInScopes,\n getScopeNavCredentials,\n updateScopeNavCredentials,\n checkNavStatus,\n testNavCredentials,\n getScopeLanguages,\n getNavStatusHistory,\n smsLogs,\n monitoringJobs,\n launchJobs,\n getAllowedMobileCountriesPerScope,\n getAllowedMobileCountries,\n addAllowedMobileCountries,\n getCronConfig,\n getTimezonesList,\n updateCronConfig,\n getOneCronConfig,\n getDefaultScopeIdForList,\n enableOrDisableScope\n}\n"],"sourceRoot":""}