{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.string.includes.js","webpack:///./src/services/UserService.js","webpack:///./src/views/ReportsInProgress.vue?73f3","webpack:///src/views/ReportsInProgress.vue","webpack:///./src/views/ReportsInProgress.vue?32da","webpack:///./src/views/ReportsInProgress.vue","webpack:///./node_modules/core-js/modules/_fails-is-regexp.js","webpack:///./node_modules/core-js/modules/es7.array.includes.js","webpack:///./node_modules/core-js/modules/_is-regexp.js","webpack:///./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js","webpack:///./src/services/DateService.js","webpack:///./node_modules/core-js/modules/_string-context.js","webpack:///./src/services/ReportService.js"],"names":["$export","context","INCLUDES","P","F","includes","searchString","this","indexOf","arguments","length","undefined","UsersApi","APIFactory","get","userIsAdmin","userIsAdminLoaded","isUserAdmin","getUserRoles","data","SETTINGS","ROLES","ADMIN","getUsers","getUser","id","render","_vm","_h","$createElement","_c","_self","_m","staticClass","loaded","_e","attrs","response","scopedSlots","_u","key","fn","domProps","_s","value","_v","_f","item","StatusId","on","$event","deleteExpenseReport","ExpenseReportId","staticRenderFns","component","MATCH","module","exports","KEY","re","e","f","$includes","el","isObject","cof","it","isRegExp","_defineProperties","target","props","i","descriptor","enumerable","configurable","writable","_createClass","Constructor","protoProps","staticProps","prototype","DateService","moment","utc","filterLocalDateAtMidnight","cellValue","cellDate","startOf","toDate","getTime","defined","that","NAME","TypeError","String","ReportsAPI","ExpenseReportAPI","getPIApprovals","console","log","map","report","YourProject","projects","p","projectNumber","projectName","join","SubmitterName","submittedByName","ReportName","getAreaLink","expenseReportId","getExpenseReportName","Type","getExpenseReportType","Status","statusType","displayName","YourProjectTotal","reduce","total","ReimbursementTotal","reimbursementTotal","IsPercentAmountAllocation","isPercentAmountAllocation","getReportsInProgress","isAdmin","getMyReport","CreatedBy","createdByName","CreatedByUserId","createdByUserId","getPaidReports","getMyPaidReport","SubmittedDate","normalizeDateTime","submittedDate","PaidDate","paidDate","Approvals","approvals","filter","a","approvedByName","n","Project","getAdminOneApprovals","getAdminTwoApprovals","Selected","isMiscReport","ExpenseReportID","getPendingPayments","isApproved","approvedDate","Pay","getAnalysisReport","searchCriteria","ReportLink","Projects","ProjectTotal","projectTotal","AirfareTotal","totals","airfareTotal","LodgingTotal","lodgingTotal","MealsTotal","mealsTotal","POVMileageTotal","povMileageTotal","MiscTotal","miscTotal","CarRentalTotal","carRentalTotal","GroundTransportationTotal","groundTransportationTotal","MiscReportItemTotal","miscReportItemTotal","reportItem","reportName","tripName","erID"],"mappings":"kHAEA,IAAIA,EAAU,EAAQ,QAClBC,EAAU,EAAQ,QAClBC,EAAW,WAEfF,EAAQA,EAAQG,EAAIH,EAAQI,EAAI,EAAQ,OAAR,CAA8BF,GAAW,SAAU,CACjFG,SAAU,SAAkBC,GAC1B,SAAUL,EAAQM,KAAMD,EAAcJ,GACnCM,QAAQF,EAAcG,UAAUC,OAAS,EAAID,UAAU,QAAKE,O,0GCP7DC,EAAWC,OAAWC,IAAI,SAG5BC,GAAc,EACdC,GAAoB,EAET,QACLC,YADK,gKAEFD,EAFE,gCAGoBJ,EAASM,eAH7B,gBAGKC,EAHL,EAGKA,KACRH,GAAoB,EAChBG,IACAJ,EAAcI,EAAKd,SAASe,OAASC,MAAMC,QAN5C,gCAUAP,GAVA,iGAYLQ,SAZK,6KAagBX,EAASW,WAbzB,uBAaCJ,EAbD,EAaCA,KAbD,kBAcAA,GAdA,iGAgBLK,QAhBK,mEAgBGC,GAhBH,wGAiBgBb,EAASY,QAAQC,GAjBjC,uBAiBCN,EAjBD,EAiBCA,KAjBD,kBAkBAA,GAlBA,oG,2CCRf,IAAIO,EAAS,WAAa,IAAIC,EAAIpB,KAASqB,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACH,EAAIK,GAAG,GAAGF,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAAC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AAe6B,EAAWC,WAAaD,EAAWE,UAGxElE,qBA5IW,SA4IUgE,GACjB,OAAOA,EAAW7B,aAAe,OAAS,OAG9CvC,YAhJW,SAgJCoE,GACR,OAAOA,EAAW7B,aAAe,sBAAwB,iBAEvDnG,oBAnJK,mEAmJemI,GAnJf,wGAoJgBtF,EAAiB7C,oBAAoBmI,GApJrD,uBAoJCnK,EApJD,EAoJCA,KApJD,kBAqJAA,GArJA","file":"js/chunk-f5b77c0e.2e2e3c2b.js","sourcesContent":["// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n'use strict';\nvar $export = require('./_export');\nvar context = require('./_string-context');\nvar INCLUDES = 'includes';\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~context(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","import { APIFactory } from '../api/api.factory'\nimport SETTINGS from '../settings'\nconst UsersApi = APIFactory.get('users')\n\n// Simple caching.\nvar userIsAdmin = false\nvar userIsAdminLoaded = false\n\nexport default {\n async isUserAdmin() {\n if (!userIsAdminLoaded) {\n const { data } = await UsersApi.getUserRoles()\n userIsAdminLoaded = true;\n if (data) {\n userIsAdmin = data.includes(SETTINGS.ROLES.ADMIN)\n }\n }\n\n return userIsAdmin\n },\n async getUsers() {\n const { data } = await UsersApi.getUsers();\n return data;\n },\n async getUser(id) {\n const { data } = await UsersApi.getUser(id);\n return data;\n }\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._m(0),_c('div',{staticClass:\"py-5\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[(!_vm.loaded)?_c('b-spinner',{staticClass:\"center-spinner\",attrs:{\"variant\":\"primary\",\"label\":\"Spinning\"}}):_vm._e(),(_vm.loaded)?_c('b-table',{attrs:{\"striped\":\"\",\"hover\":\"\",\"items\":_vm.response,\"show-empty\":\"true\",\"empty-text\":\"There are no records to show\",\"fields\":['ReportName','Type','Status','ReimbursementTotal','Action','CreatedBy']},scopedSlots:_vm._u([{key:\"cell(ReportName)\",fn:function(data){return [_c('span',{domProps:{\"innerHTML\":_vm._s(data.value)}})]}},{key:\"cell(SubmittedDate)\",fn:function(data){return [_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatDate\")(data.value))+\"\\n \")]}},{key:\"cell(ReimbursementTotal)\",fn:function(data){return [_vm._v(\"\\n \"+_vm._s(_vm._f(\"currency\")(data.value))+\"\\n \")]}},{key:\"cell(Action)\",fn:function(data){return [(data.item.StatusId == 1)?_c('div',[_c('font-awesome-icon',{staticClass:\"icons cursor-pointer\",attrs:{\"icon\":\"trash\"},on:{\"click\":function($event){return _vm.deleteExpenseReport(data.item.ExpenseReportId)}}})],1):_vm._e()]}}],null,false,1350833417)}):_vm._e()],1)])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"py-3\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('h1',{staticClass:\"d-flex justify-content-center\"},[_vm._v(\"Reports in Progress\")])])])])])}]\n\nexport { render, staticRenderFns }","\n \n
\n
\n
\n
\n
Reports in Progress
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n {{data.value | formatDate}}\n \n \n {{data.value | currency}}\n \n \n \n \n
\n \n \n
\n
\n
\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!./ReportsInProgress.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!./ReportsInProgress.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ReportsInProgress.vue?vue&type=template&id=66c07f0e&\"\nimport script from \"./ReportsInProgress.vue?vue&type=script&lang=js&\"\nexport * from \"./ReportsInProgress.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","var MATCH = require('./_wks')('match');\nmodule.exports = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch (f) { /* empty */ }\n } return true;\n};\n","'use strict';\n// https://github.com/tc39/Array.prototype.includes\nvar $export = require('./_export');\nvar $includes = require('./_array-includes')(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nrequire('./_add-to-unscopables')('includes');\n","// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n","import _Object$defineProperty from \"../../core-js/object/define-property\";\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n\n _Object$defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","import moment from 'moment'\n\n/**\n *Date util class used to normalize dates\n * @export\n * @class DateService\n */\nexport default class DateService {\n\n\n /**\n * Takes in date returns back date with time set to 12 noon to avoid time zone change conflicts between UTC/MST etc.\n * @static\n * @param {Date} value\n * @returns Javascript Date\n * @memberof DateService\n */\n static normalizeDateTime(value) {\n //console.log('dateservice.normalizeDateTime')\n let response = null;\n \n try {\n if (value == undefined || value == null) { return null; }\n \n response = moment.utc(value);\n return response;\n\n } catch (e) {\n return response;\n }\n }\n\n static dateFilterComparator = (filterLocalDateAtMidnight, cellValue) => {\n const cellDate = moment(cellValue).startOf(\"day\").toDate();\n\n if (filterLocalDateAtMidnight.getTime() == cellDate.getTime()) {\n return 0;\n }\n\n if (cellDate < filterLocalDateAtMidnight) {\n return -1;\n }\n\n if (cellDate > filterLocalDateAtMidnight) {\n return 1;\n }\n }\n}","// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = require('./_is-regexp');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n","import { APIFactory } from '../api/api.factory'\nimport DateService from '@/services/DateService'\nconst ReportsAPI = APIFactory.get('reports');\nconst ExpenseReportAPI = APIFactory.get('expenseReport')\n\n\nexport default {\n async getPIApprovals() {\n console.log('reportsservice.getReports')\n\n const { data } = await ReportsAPI.get('?statusTypeIds=2&canApprove=true&includeTotal=true');\n \n return data.map(report => ({\n YourProject: report.projects.map(function (p) { return `${p.projectNumber}-${p.projectName}` }).join(\", \"),\n SubmitterName: report.submittedByName,\n ReportName: `${this.getExpenseReportName(report)}`,\n Type: this.getExpenseReportType(report),\n //RequiredApprovers: '', TODO:Comment out for now as not working\n Status: report.statusType.displayName,\n YourProjectTotal: report.projects.reduce((total,p) => total + p.total, 0),\n ReimbursementTotal: report.reimbursementTotal,\n IsPercentAmountAllocation: report.isPercentAmountAllocation,\n }\n ));\n },\n\n async getReportsInProgress(isAdmin) {\n console.log('reportsservice.getReportsInProgress')\n const { data } = await ReportsAPI.getMyReport(isAdmin);\n // return data;\n return data.map(report => ({\n ExpenseReportId: report.expenseReportId,\n StatusId: report.statusType.id,\n ReportName: `${this.getExpenseReportName(report)}`, \n Type: this.getExpenseReportType(report),\n Status: report.statusType.displayName,\n ReimbursementTotal: report.reimbursementTotal,\n CreatedBy: report.createdByName,\n CreatedByUserId: report.createdByUserId\n }\n ));\n },\n\n async getPaidReports() {\n console.log('reportsservice.getMyPaidReport')\n const { data } = await ReportsAPI.getMyPaidReport();\n // return data;\n return data.map(report => ({\n SubmittedDate: DateService.normalizeDateTime(report.submittedDate),\n PaidDate: DateService.normalizeDateTime(report.paidDate),\n Approvals: report.approvals.filter((a) => a.approvedByName).map((n) => n.approvedByName).join(\",\"),\n ReportName: `${this.getExpenseReportName(report)}`,\n Project: report.projects.map(function (p) { return `${p.projectNumber}-${p.projectName}`}).join(\", \"),\n Type: this.getExpenseReportType(report),\n Status: report.statusType.displayName,\n ReimbursementTotal: report.reimbursementTotal\n }\n ));\n },\n\n async getAdminOneApprovals() {\n console.log('reportsservice.getAdminApporvals')\n const { data } = await ReportsAPI.get('?statusTypeIds=3&includeTotal=true');\n\n return data.map(report => ({\n SubmittedDate: DateService.normalizeDateTime(report.submittedDate),\n SubmitterName: report.submittedByName,\n Approvals: report.approvals.filter((a) => a.approvedByName).map((n) => n.approvedByName).join(\",\"),\n ReportName: `${this.getExpenseReportName(report)}`,\n Project: report.projects.map(function (p) { return `${p.projectNumber}-${p.projectName}` }).join(\", \"),\n Type: this.getExpenseReportType(report),\n Status: report.statusType.displayName,\n ReimbursementTotal: report.reimbursementTotal\n }\n ));\n },\n\n async getAdminTwoApprovals() {\n console.log('reportsservice.getAdminTwoApporvals')\n const { data } = await ReportsAPI.get('?statusTypeIds=4&includeTotal=true');\n\n return data.map(report => ({\n Selected: false,\n SubmittedDate: DateService.normalizeDateTime(report.submittedDate),\n SubmitterName: report.submittedByName,\n Approvals: report.approvals.filter((a) => a.approvedByName).map((n) => n.approvedByName).join(\",\"),\n ReportName: `${this.getExpenseReportName(report)}`,\n Project: report.projects.map(function (p) { return `${p.projectNumber}-${p.projectName}` }).join(\", \"),\n Type: report.isMiscReport ? 'MISC' : 'TER',\n Status: report.statusType.displayName,\n ReimbursementTotal: report.reimbursementTotal,\n ExpenseReportID: report.expenseReportId\n }\n ));\n },\n\n async getPendingPayments() {\n console.log('reportsservice.getPendingPayments')\n const { data } = await ReportsAPI.get('?statusTypeIds=7&includeTotal=true');\n\n return data.map(report => ({\n Selected: false,\n SubmitterName: report.submittedByName,\n SubmittedDate: report.approvals[0].isApproved ? DateService.normalizeDateTime(report.approvals[0].approvedDate) : '',\n Type: this.getExpenseReportType(report),\n ReportName: `${this.getExpenseReportName(report)}`,\n Project: report.projects.map(function (p) { return `${p.projectNumber}-${p.projectName}` }).join(\", \"),\n Approvals: report.approvals.filter((a) => a.approvedByName).map((n) => n.approvedByName).join(\",\"),\n Status: report.statusType.displayName,\n ReimbursementTotal: report.reimbursementTotal,\n PaidDate: \"\",\n Pay: report.expenseReportId\n }\n ));\n },\n\n async getAnalysisReport(searchCriteria) {\n const { data } = await ReportsAPI.getAnalysisReport(searchCriteria);\n return data.map(report => ({\n ReportName: this.getExpenseReportName(report),\n ReportLink: `/${this.getAreaLink(report)}/${report.expenseReportId}`,\n PaidDate: report.paidDate,\n SubmittedDate: report.submittedDate,\n SubmitterName: report.submittedByName,\n Approvals: report.approvals.filter((a) => a.approvedByName).map((n) => n.approvedByName).join(\", \"),\n Projects: report.projects.map(function (p) { return `${p.projectNumber}-${p.projectName}` }).join(\", \"),\n Type: this.getExpenseReportType(report),\n Status: report.statusType.displayName,\n ProjectTotal: report.projectTotal,\n ReimbursementTotal: report.reimbursementTotal,\n AirfareTotal: report.totals ? report.totals.airfareTotal : null,\n LodgingTotal: report.totals ? report.totals.lodgingTotal : null,\n MealsTotal: report.totals ? report.totals.mealsTotal : null,\n POVMileageTotal: report.totals ? report.totals.povMileageTotal : null,\n MiscTotal: report.totals ? report.totals.miscTotal : null,\n CarRentalTotal: report.totals ? report.totals.carRentalTotal : null,\n GroundTransportationTotal: report.totals ? report.totals.groundTransportationTotal : null,\n MiscReportItemTotal: report.totals ? report.totals.miscReportItemTotal : null\n }\n ));\n },\n\n getExpenseReportName(reportItem) {\n return reportItem.isMiscReport ? reportItem.reportName : reportItem.tripName;\n },\n\n getExpenseReportType(reportItem) {\n return reportItem.isMiscReport ? \"MISC\" : 'TER';\n },\n\n getAreaLink(reportItem) {\n return reportItem.isMiscReport ? 'misc-expense-report' : 'review-submit'\n },\n async deleteExpenseReport(erID) {\n const { data } = await ExpenseReportAPI.deleteExpenseReport(erID)\n return data;\n },\n}"],"sourceRoot":""}