{"version":3,"sources":["webpack:///./src/pages/leave/query/index.js","webpack:///./src/pages/leave/pending-requests/index.vue","webpack:///src/pages/leave/pending-requests/index.vue","webpack:///./src/pages/leave/pending-requests/index.vue?dd5a","webpack:///./src/pages/leave/pending-requests/index.vue?3b17"],"names":["LEAVE_ACCRUAL","gql","LEAVE_REQUESTS","LEAVE_APPROVAL","ALL_PENDING_REQUESTS","EMPLOYEE_LEAVE_ACCRUALS","FILTER_WORKPLANS","FILTER_HOLIDAYS","FILTER_LEAVE_REQUEST","render","_vm","this","_c","_self","attrs","staticClass","on","onRefreshData","scopedSlots","_u","key","fn","_v","proxy","_s","$t","table","headers","data","loading","row","item","id","leaveRequest","employee","leaveType","name","deductedLeaveBalance","_f","beginLeaveRequestDay","date","getIsHourlyLeaveBeginTime","leaveRequestDays","endLeaveRequestDay","getIsHourlyLeaveEndTime","requestDateTime","$event","stopPropagation","onClickLeaveApproval","onClickLeaveCancel","dialog","$set","onCloseDialog","onSuccessApproval","model","value","status","callback","$$v","expression","cancelDialog","onCloseLeaveDialog","onSuccessLeaveCancel","staticRenderFns","components","beginDateMenu","selected","text","align","sortable","class","computed","formattedMonth","methods","query","variables","then","errors","catch","finally","getLeaveStatusIconText","getLeaveStatusIcon","icon","getLeaveStatusIconColor","color","getTotalLeaveDay","add","format","created","component"],"mappings":"kHAAA,gSAEO,MAAMA,EAAgBC,MAAI;;;;;;;;;;;;;;;;;;;;;EAuBpBC,EAAiBD,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCrBE,EAAiBF,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDrBG,EAAuBH,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwD3BI,EAA0BJ,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD9BK,EAAmBL,MAAI;;;;;;;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,uBACA,0BACA,sBAEA7C,gBACA,mBAEA,mBACA,4BACA,aACAyD,OACAA,aACAC,WACA3C,qCAGA4C,OAAAhD,OAAAiD,aACA,aACAjD,oDACA,kDACA,6CACA,YAGA,+DAGAkD,UACA,4CAEAC,oCAEAC,0BACA,2CAEAC,sBACA,SACA,UACA,cACAC,oBACA,MACA,eACAA,aACA,MACA,gBACAA,UACA,MACA,wBACAA,SACA,MACA,aACAA,UACA,MACA,QACAA,SACA,MAEA,UAEAC,2BACA,SACA,UACA,cACAC,WACA,MACA,eACAA,UACA,MACA,gBACAA,SACA,MACA,wBACAA,SACA,MACA,aACAA,QACA,MACA,QACAA,UACA,MAEA,UAEApC,wBACA,mBACA,uBAEAI,gBACA,sBACA,uBAEAC,oBACA,qBACA,sBAEAgC,oBACA,2CAEA,gBACA,qEAEA,oCAGA5C,6BACA,2CACA,YACA,4DAGAG,2BACA,2CACA,YACA,2CACA0C,oCACAC,kBAIAC,UACA,oBCtS6W,I,YCOzWC,EAAY,eACd,EACAhF,EACAsD,GACA,EACA,KACA,KACA,MAIa,aAAA0B,E","file":"js/chunk-5f964e31.969fc826.js","sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LEAVE_ACCRUAL = gql`\n query leaveAccruals($employee: ID!, $onlyRequestable: Boolean) {\n leaveAccruals(employee: $employee, onlyRequestable: $onlyRequestable) {\n used\n remainingBalance\n previousBalance\n leavePolicy {\n accrualCount\n accrualCalculatedCount\n leaveType {\n id\n name\n icon\n color\n restriction {\n allowanceVisible\n }\n }\n }\n }\n }\n`;\n\nexport const LEAVE_REQUESTS = gql`\n query filterWithPaginateLeaveRequests($criteria: LeaveRequestFilterCriteria!, $pagination: Pagination!) {\n filterWithPaginateLeaveRequests(criteria: $criteria, pagination: $pagination) {\n pageInfo {\n totalElements\n totalPages\n pageNumber\n }\n content {\n id\n leaveType {\n name\n color\n icon\n }\n signatureStatus\n leaveRequestStatus\n status\n requestDateTime\n leaveRequestFormURL\n publicLeaveRequestFormURL\n beginLeaveRequestDay {\n date\n duration\n }\n endLeaveRequestDay {\n date\n duration\n }\n approvedDateTime\n requestDateTime\n }\n }\n }\n`;\n\nexport const LEAVE_APPROVAL = gql`\n query employee($id: ID!) {\n employee(id: $id) {\n pendingApprovalLeaveRequests {\n id\n leaveRequest {\n id\n remainingLeaveBalance\n deductedLeaveBalance\n employee {\n id\n firstName\n lastName\n profile {\n imageUrl\n }\n employment {\n branch {\n name\n }\n }\n }\n requester {\n firstName\n lastName\n profile {\n imageUrl\n }\n }\n leaveRequestDays {\n date\n duration\n fromTime\n lengthInMinutes\n }\n leaveType {\n id\n name\n icon\n color\n }\n\n requestDateTime\n beginLeaveRequestDay {\n date\n }\n\n endLeaveRequestDay {\n date\n }\n }\n }\n }\n }\n`;\n\nexport const ALL_PENDING_REQUESTS = gql`\n query employee($id: ID!) {\n employee(id: $id) {\n allPendingApprovalLeaveRequests {\n id\n leaveRequest {\n id\n remainingLeaveBalance\n deductedLeaveBalance\n employee {\n id\n firstName\n lastName\n profile {\n imageUrl\n }\n employment {\n branch {\n name\n }\n }\n }\n requester {\n firstName\n lastName\n profile {\n imageUrl\n }\n }\n leaveRequestDays {\n date\n duration\n fromTime\n lengthInMinutes\n }\n leaveType {\n id\n name\n icon\n color\n }\n\n requestDateTime\n beginLeaveRequestDay {\n date\n }\n\n endLeaveRequestDay {\n date\n }\n }\n }\n }\n }\n`;\n\nexport const EMPLOYEE_LEAVE_ACCRUALS = gql`\n query leaveAccruals($employee: ID!, $beginDate: String!, $daily: Boolean) {\n leaveAccruals(employee: $employee, beginDate: $beginDate, daily: $daily) {\n previousBalance\n used\n remainingBalance\n leavePolicy {\n accrualCount\n accrualCalculatedCount\n leaveType {\n id\n name\n color\n icon\n weight\n restriction {\n noticePeriod\n includeWeekendsAfter\n includeHolidaysAfter\n includeBreakDaysAfter\n minConsecutive\n maxConsecutive\n durations\n maxExceedLeaveBalance\n includeSaturday\n countAsWorkday\n consecutiveWeekendLeavePassive\n documentRequired\n documents {\n name\n url\n }\n addressRequired\n explanationRequired\n requestable\n includeAllWeekHolidays\n includeAllWeekSaturdays\n includePublicHolidays\n allowanceVisible\n usableOnSpecificDate\n birthdayLeave\n }\n }\n }\n }\n }\n`;\n\nexport const FILTER_WORKPLANS = gql`\n query FilterWorkplans($criteria: WorkplanFilterCriteria!) {\n filterWorkplans(criteria: $criteria) {\n date\n breakDay\n assignedShifts {\n id\n shiftType\n }\n }\n }\n`;\n\nexport const FILTER_HOLIDAYS = gql`\n query filterHolidays($criteria: HolidayFilterCriteria!) {\n filterHolidays(criteria: $criteria) {\n id\n name\n color\n code\n halfDay\n countAsOvertime\n date\n }\n }\n`;\n\nexport const FILTER_LEAVE_REQUEST = gql`\n query filterLeaveRequests($criteria: LeaveRequestFilterCriteria!) {\n filterLeaveRequests(criteria: $criteria) {\n leaveRequestDays {\n id\n date\n duration\n fromTime\n lengthInMinutes\n }\n }\n }\n`;\n\nexport const EMPLOYEE_MANAGERS = gql`\n query employee($id: ID!) {\n employee(id: $id) {\n leaveSettings {\n leaveApprover\n }\n }\n }\n`;\n\nexport const EMPLOYEE_LEAVE_ACCRUAL = gql`\n query leaveAccruals($employee: ID!) {\n leaveAccruals(employee: $employee) {\n used\n previousBalance\n initialLeaveBalance\n initialLeaveBalanceDate\n leavePolicy {\n accrualCalculatedCount\n leaveType {\n id\n name\n icon\n color\n }\n }\n }\n }\n`;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card',{attrs:{\"elevation\":\"0\",\"tile\":\"\"}},[_c('v-card-title',{staticClass:\"grey lighten-4\"},[_c('v-spacer'),_c('id-button',{on:{\"click\":_vm.onRefreshData},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-refresh\")])]},proxy:true}])},[_vm._v(\" \"+_vm._s(_vm.$t(\"buttons.refresh\"))+\" \")])],1),_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.table.headers,\"items\":_vm.table.data,\"single-select\":\"\",\"loading\":_vm.table.loading,\"footer-props\":{ 'items-per-page-options': [10, 25, 50, 100] }},scopedSlots:_vm._u([{key:\"item\",fn:function(row){return [_c('tr',{key:row.item.id},[_c('td',{staticClass:\"text-xs-left no-wrap\"},[_c('employee-profile',{attrs:{\"employee\":row.item.leaveRequest.employee}})],1),_c('td',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" \"+_vm._s(row.item.leaveRequest.leaveType.name))]),_c('v-list-item-subtitle',[_vm._v(\" \"+_vm._s(row.item.leaveRequest.deductedLeaveBalance))])],1)],1),_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"formattedDate\")(row.item.leaveRequest.beginLeaveRequestDay.date))+\" \"+_vm._s(_vm.getIsHourlyLeaveBeginTime(row.item.leaveRequest.leaveRequestDays))+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"formattedDate\")(row.item.leaveRequest.endLeaveRequestDay.date))+\" \"+_vm._s(_vm.getIsHourlyLeaveEndTime(row.item.leaveRequest.leaveRequestDays))+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(_vm._f(\"formattedDate\")(row.item.leaveRequest.requestDateTime))+\" \")]),_c('td',{staticClass:\"no-wrap\"},[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"dark\":\"\",\"depressed\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.onClickLeaveApproval(row.item)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"buttons.action\"))+\" \")])],1),_c('td',[_c('v-btn',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"dark\":\"\",\"depressed\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.onClickLeaveCancel(row.item)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"buttons.cancel_leave\")))])],1)])]}}])})],1)],1),_c('approval-confirm-dialog',{attrs:{\"data\":_vm.dialog.data},on:{\"update:data\":function($event){return _vm.$set(_vm.dialog, \"data\", $event)},\"close\":_vm.onCloseDialog,\"success\":_vm.onSuccessApproval},model:{value:(_vm.dialog.status),callback:function ($$v) {_vm.$set(_vm.dialog, \"status\", $$v)},expression:\"dialog.status\"}}),_c('leave-cancel-dialog',{attrs:{\"data\":_vm.cancelDialog.data},on:{\"update:data\":function($event){return _vm.$set(_vm.cancelDialog, \"data\", $event)},\"close\":_vm.onCloseLeaveDialog,\"success\":_vm.onSuccessLeaveCancel},model:{value:(_vm.cancelDialog.status),callback:function ($$v) {_vm.$set(_vm.cancelDialog, \"status\", $$v)},expression:\"cancelDialog.status\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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=541dd6f3&\"\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"],"sourceRoot":""}