%PDF- %PDF-
Direktori : /var/www/html/hr/web/js/ |
Current File : /var/www/html/hr/web/js/chunk-582abfd7.e88e86a9.js.map |
{"version":3,"sources":["webpack:///./src/components/users/UserHolidaysComponent.vue?93e8","webpack:///./src/views/users/UserHolidays.vue?7d4c","webpack:///./src/components/users/UserHolidaysComponent.vue?7f41","webpack:///src/components/users/UserHolidaysComponent.vue","webpack:///./src/components/users/UserHolidaysComponent.vue?270f","webpack:///./src/components/users/UserHolidaysComponent.vue","webpack:///src/views/users/UserHolidays.vue","webpack:///./src/views/users/UserHolidays.vue?6883","webpack:///./src/views/users/UserHolidays.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","loading","tableHeader","logs","transactions","total","staticRenderFns","staticClass","scopedSlots","_u","key","fn","ref","data","_l","tr","indexTr","class","notes","_v","_s","quantity","type","expires_at","_f","_e","created_at","slot","title","i","component"],"mappings":"kHAAA,yBAA+iB,EAAG,G,2CCAljB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,QAAUN,EAAIO,UAAU,CAACH,EAAG,0BAA0B,CAACE,MAAM,CAAC,OAASN,EAAIQ,YAAY,KAAOR,EAAIS,KAAKC,aAAa,MAAQV,EAAIW,UAAU,IAC/PC,EAAkB,GCDlB,G,UAAS,WAAa,IAAIZ,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACS,YAAY,kBAAkB,CAACT,EAAG,WAAW,CAACE,MAAM,CAAC,KAAON,EAAIS,MAAMK,YAAYd,EAAIe,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAC/N,IAAIC,EAAOD,EAAIC,KACf,OAAOnB,EAAIoB,GAAG,GAAO,SAASC,EAAGC,GAAS,OAAOlB,EAAG,QAAQ,CAACY,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EM,KAAN,aACQ,UAAR,2BAGI,YANJ,WAOM,KAAN,6CAGE,MAAF,CACI,QADJ,SACA,GACA,sBACA,sBC/D8W,I,wBCQ1WE,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,oBCNf,GACE,KAAF,eACE,WAAF,CACI,sBAAJ,GAEE,KALF,WAMI,MAAJ,CACM,KAAN,CACQ,aAAR,IAEM,MAAN,GACM,OAAN,KACM,SAAN,IAGE,SAAF,CACI,YADJ,WAEM,MAAN,CACA,gCACA,+BACA,0CACA,kCAIE,QAAF,CACI,QADJ,WACM,IAAN,OACM,KAAN,WACM,EAAN,+CACQ,EAAR,mBACU,MAAV,cACU,KAAV,MACU,MAAV,QACU,SAAV,aAEQ,EAAR,UACA,mBACQ,EAAR,yCACA,oBACQ,EAAR,gBAIE,QA3CF,WA4CI,KAAJ,6BACI,KAAJ,YC1DqW,ICOjW,EAAY,eACd,EACArC,EACAa,GACA,EACA,KACA,WACA,MAIa,e","file":"js/chunk-582abfd7.e88e86a9.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserHolidaysComponent.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserHolidaysComponent.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-loader',{attrs:{\"loading\":_vm.loading}},[_c('user-holidays-component',{attrs:{\"header\":_vm.tableHeader,\"logs\":_vm.logs.transactions,\"total\":_vm.total}})],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',{staticClass:\"view-container\"},[_c('vs-table',{attrs:{\"data\":_vm.logs},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.data;\nreturn _vm._l((data),function(tr,indexTr){return _c('vs-tr',{key:indexTr,class:tr.class,attrs:{\"data\":tr}},[_c('vs-td',{attrs:{\"data\":tr.notes}},[_vm._v(\" \"+_vm._s(tr.notes)+\" \")]),_c('vs-td',{staticClass:\"w-16\",attrs:{\"data\":tr.quantity}},[_c('span',{class:tr.type ==='ADD' ? 'positive' : 'negative'},[_vm._v(_vm._s(tr.quantity))])]),_c('vs-td',{staticClass:\"whitespace-pre\",attrs:{\"data\":tr.expires_at}},[(tr.expires_at)?_c('span',[_vm._v(_vm._s(_vm._f(\"fromShortDate\")(tr.expires_at,'MMM Do YYYY')))]):_vm._e()]),_c('vs-td',{staticClass:\"whitespace-pre\",attrs:{\"data\":tr.created_at}},[(tr.created_at)?_c('span',[_vm._v(_vm._s(_vm._f(\"date\")(tr.created_at,'MMM Do YYYY')))]):_vm._e()])],1)})}}])},[_c('template',{slot:\"thead\"},_vm._l((_vm.header),function(title,i){return _c('vs-th',{key:i,staticClass:\"text-base whitespace-pre\"},[_vm._v(_vm._s(title))])}),1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"view-container\">\n <vs-table :data=\"logs\">\n\n <template slot=\"thead\">\n <vs-th :key=\"i\" class=\"text-base whitespace-pre\" v-for=\"(title, i) in header\">{{ title }}</vs-th>\n </template>\n\n <template slot-scope=\"{data}\">\n <vs-tr :class=\"tr.class\" :data=\"tr\" :key=\"indexTr\" v-for=\"(tr, indexTr) in data\">\n <vs-td :data=\"tr.notes\">\n {{ tr.notes }}\n </vs-td>\n <vs-td :data=\"tr.quantity\" class=\"w-16\">\n <span :class=\"tr.type ==='ADD' ? 'positive' : 'negative'\">{{ tr.quantity }}</span>\n </vs-td>\n <vs-td :data=\"tr.expires_at\" class=\"whitespace-pre\">\n <span v-if=\"tr.expires_at\">{{ tr.expires_at | fromShortDate('MMM Do YYYY')}}</span>\n </vs-td>\n <vs-td :data=\"tr.created_at\" class=\"whitespace-pre\">\n <span v-if=\"tr.created_at\">{{ tr.created_at | date('MMM Do YYYY') }}</span>\n </vs-td>\n </vs-tr>\n </template>\n </vs-table>\n\n </div>\n</template>\n\n<script>\n export default {\n name: \"UserHolidaysComponent\",\n props: {\n logs: {\n required: true,\n type: Array,\n },\n header: {\n required: true,\n type: Array,\n },\n total: {\n required: true,\n type: Array,\n },\n loading: {\n type: Boolean,\n default: false\n }\n },\n methods: {\n startLoading () {\n this.$vs.loading({\n container: this.$refs.userHolidays,\n })\n },\n stopLoading () {\n this.$vs.loading.close(this.$refs.userHolidays)\n },\n },\n watch: {\n loading (newValue) {\n if (newValue) this.startLoading()\n else this.stopLoading()\n }\n },\n }\n</script>\n\n<style lang=\"scss\">\n .positive {\n @apply text-green-500;\n &:before {\n content: '+'\n }\n }\n\n .negative {\n @apply text-red-500;\n &:before {\n content: '-'\n }\n }\n\n</style>\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!./UserHolidaysComponent.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!./UserHolidaysComponent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserHolidaysComponent.vue?vue&type=template&id=5c460be7&\"\nimport script from \"./UserHolidaysComponent.vue?vue&type=script&lang=js&\"\nexport * from \"./UserHolidaysComponent.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UserHolidaysComponent.vue?vue&type=style&index=0&lang=scss&\"\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","<template>\n <base-loader :loading=\"loading\">\n <user-holidays-component :header=\"tableHeader\"\n :logs=\"logs.transactions\"\n :total=\"total\"\n />\n </base-loader>\n</template>\n\n<script>\n import UserHolidaysComponent from \"../../components/users/UserHolidaysComponent\";\n import Users from \"../../services/Users\";\n\n export default {\n name: 'UserHolidays',\n components: {\n UserHolidaysComponent,\n },\n data () {\n return {\n logs: {\n transactions: []\n },\n total: [],\n userId: null,\n loading: false\n }\n },\n computed: {\n tableHeader () {\n return ([\n this.$t('users.holidays.notes'),\n this.$t('users.holidays.days'),\n this.$t('users.holidays.available_until'),\n this.$t('users.holidays.date'),\n ])\n },\n },\n methods: {\n getLogs () {\n this.loading = true;\n Users.getPTOLogs(this.userId).then(logs => {\n logs.transactions.push({\n class: 'hrsys-total',\n type: 'ADD',\n notes: 'Total',\n quantity: logs.quantity,\n });\n this.logs = logs;\n }).catch(error => {\n this.$notificationService.error(error.message)\n }).finally(() => {\n this.loading = false;\n })\n }\n },\n mounted () {\n this.userId = this.$route.params.id;\n this.getLogs();\n }\n }\n</script>\n\n<style scoped>\n\n</style>\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!./UserHolidays.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!./UserHolidays.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserHolidays.vue?vue&type=template&id=53c96883&scoped=true&\"\nimport script from \"./UserHolidays.vue?vue&type=script&lang=js&\"\nexport * from \"./UserHolidays.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 \"53c96883\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}