{"version":3,"sources":["webpack:///./customer-modules/hca/projectsupload/components/ProjectTable.vue?9643","webpack:///./shared/filters/dateflip.ts","webpack:///./customer-modules/hca/projectsupload/pages/MyProjects.vue?668a","webpack:///./customer-modules/hca/projectsupload/components/ProjectTable.vue?591f","webpack:///./customer-modules/hca/projectsupload/components/ProjectTable.vue","webpack:///./customer-modules/hca/projectsupload/components/ProjectTable.vue?05b0","webpack:///./customer-modules/hca/projectsupload/components/ProjectTable.vue?44a4","webpack:///./customer-modules/hca/projectsupload/pages/MyProjects.vue","webpack:///./customer-modules/hca/projectsupload/pages/MyProjects.vue?5952","webpack:///./customer-modules/hca/projectsupload/pages/MyProjects.vue?3ab0"],"names":["v","split","reverse","join","render","_vm","this","_h","$createElement","_c","_self","attrs","allProjects","staticRenderFns","staticClass","headers","projects","pagination","rowsPerPageItems","on","$event","scopedSlots","_u","key","fn","props","openProject","item","id","_v","_s","description","client","_f","start_date","end_date","ProjectTable","text","t","value","rowsPerPage","descending","$t","toString","$router","push","name","params","String","required","filters","dateFlip","component","VDataTable","pStore","snackStore","MyProjects","fetchProjects","catch","defaultError","Getter","Action","Mutation","components","VContainer","VFlex","VLayout"],"mappings":"kHAAA,W,oCCAc,gBAAWA,GACvB,OAAKA,EACEA,EAAEC,MAAM,KAAKC,UAAUC,KAAK,KADpB,K,gECDjB,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,GAAG,eAAe,KAAK,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,IAAM,GAAG,KAAO,KAAK,CAACF,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,GAAG,IAAM,KAAK,CAACF,EAAG,gBAAgB,CAACE,MAAM,CAAC,SAAWN,EAAIO,gBAAgB,IAAI,IAAI,IAC7SC,EAAkB,G,oCCDlB,EAAS,WAAa,IAAIR,EAAI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B,WAAa,CACXuB,YAAa,GACbC,YAAY,GAGd,EAAAvB,iBAAmB,CACjB,EACA,GACA,GACA,CAAEmB,KAAM,uCAAwCE,OAAQ,IArB5D,6BAwBU,SAAEhB,GACR,OAAOjB,KAAKoC,GAAG,wBAA0BnB,GAAKoB,aAzBlD,yBA4BU,SAAYf,GAClBtB,KAAKsC,QAAQC,KAAK,CAAEC,KAAM,aAAcC,OAAQ,CAAEnB,GAAIoB,OAAOpB,UA7BjE,GAA0C,QAExC,gBADC,eAAK,CAAEqB,UAAU,K,+BADCb,EAAY,gBALhC,eAAU,CACTc,QAAS,CACPC,SAAA,WAGiBf,GAAA,QC9BsZ,I,yDCQvagB,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,EAAiB,Q,msDAKhC,IAAkBA,EAAW,CAACC,aAAA,OCP9B,IAAMC,EAAS,eAAU,kBACnBC,EAAa,eAAU,YAKRC,EAArB,qHAOE,WAAO,WACLlD,KAAKmD,gBAAgBC,OAAM,WACzB,EAAKC,sBATX,GAAwC,QACvB,gBAAdL,EAAOM,Q,kCAEO,gBAAdN,EAAOO,Q,oCAEa,gBAApBN,EAAWO,U,mCALON,EAAU,gBAH9B,eAAU,CACTO,WAAY,CAAE3B,aAAA,MAEKoB,GAAA,QCvBoZ,I,oCCOra,EAAY,eACd,EACApD,EACAS,GACA,EACA,KACA,KACA,MAIa,eAAiB,QAOhC,IAAkB,EAAW,CAACmD,aAAA,KAAWC,QAAA,KAAMC,UAAA","file":"js/chunk-2f26742c.ff965668.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/stylus-loader/index.js??ref--10-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProjectTable.vue?vue&type=style&index=0&lang=stylus&\"","export default function (v: string | null): string {\n if (!v) return \"\";\n return v.split(\"-\").reverse().join(\"-\");\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\",\"grid-list-lg\":\"\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"xl9\":\"\"}},[_c('project-table',{attrs:{\"projects\":_vm.allProjects}})],1)],1)],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('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headers,\"items\":_vm.projects,\"pagination\":_vm.pagination,\"rows-per-page-items\":_vm.rowsPerPageItems},on:{\"update:pagination\":function($event){_vm.pagination=$event}},scopedSlots:_vm._u([{key:\"items\",fn:function(props){return [_c('tr',{staticClass:\"clickable-row\",on:{\"click\":function($event){return _vm.openProject(props.item.id)}}},[_c('td',{attrs:{\"data-name\":\"project-table-id\"}},[_vm._v(_vm._s(props.item.id))]),_c('td',[_vm._v(_vm._s(props.item.description))]),_c('td',[_vm._v(_vm._s(props.item.client))]),_c('td',[_vm._v(_vm._s(_vm._f(\"dateFlip\")(props.item.start_date)))]),_c('td',[_vm._v(_vm._s(_vm._f(\"dateFlip\")(props.item.end_date)))])])]}}])})}\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\nimport { Component, Vue, Prop } from \"vue-property-decorator\";\nimport { ProjectModel } from \"../models\";\nimport dateFlip from \"shared/filters/dateflip\";\n\n@Component({\n filters: {\n dateFlip,\n },\n})\nexport default class ProjectTable extends Vue {\n @Prop({ required: true })\n projects!: ProjectModel[];\n\n headers = [\n { text: this.t(\"id\"), value: \"id\" },\n { text: this.t(\"description\"), value: \"description\" },\n { text: this.t(\"client\"), value: \"client\" },\n { text: this.t(\"startDate\"), value: \"start_date\" },\n { text: this.t(\"endDate\"), value: \"end_date\" },\n ];\n\n pagination = {\n rowsPerPage: 15,\n descending: true,\n };\n\n rowsPerPageItems = [\n 5,\n 15,\n 25,\n { text: \"$vuetify.dataIterator.rowsPerPageAll\", value: -1 },\n ];\n\n private t(key: string): string {\n return this.$t(\"projectsupload.table.\" + key).toString();\n }\n\n private openProject(id: number) {\n this.$router.push({ name: \"my-project\", params: { id: String(id) } });\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/ts-loader/index.js??ref--12-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProjectTable.vue?vue&type=script&lang=ts&\"; 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/ts-loader/index.js??ref--12-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProjectTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProjectTable.vue?vue&type=template&id=c0cb8698&\"\nimport script from \"./ProjectTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProjectTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ProjectTable.vue?vue&type=style&index=0&lang=stylus&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\ninstallComponents(component, {VDataTable})\n","\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport { namespace } from \"vuex-class\";\nimport { ProjectModel } from \"../models\";\n\nimport ProjectTable from \"../components/ProjectTable.vue\";\n\nconst pStore = namespace(\"projectsupload\");\nconst snackStore = namespace(\"snackbar\");\n\n@Component({\n components: { ProjectTable },\n})\nexport default class MyProjects extends Vue {\n @pStore.Getter allProjects!: ProjectModel;\n\n @pStore.Action fetchProjects!: () => Promise;\n\n @snackStore.Mutation defaultError!: () => void;\n\n mounted(): void {\n this.fetchProjects().catch(() => {\n this.defaultError();\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/ts-loader/index.js??ref--12-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyProjects.vue?vue&type=script&lang=ts&\"; 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/ts-loader/index.js??ref--12-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyProjects.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MyProjects.vue?vue&type=template&id=d7a1a370&\"\nimport script from \"./MyProjects.vue?vue&type=script&lang=ts&\"\nexport * from \"./MyProjects.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VContainer,VFlex,VLayout})\n"],"sourceRoot":""}