{"version":3,"sources":["webpack:///./src/pages/leave/query/index.js","webpack:///./src/pages/leave/all-pending-requests/index.vue","webpack:///src/pages/leave/all-pending-requests/index.vue","webpack:///./src/pages/leave/all-pending-requests/index.vue?09d7","webpack:///./src/pages/leave/all-pending-requests/index.vue?a9ed"],"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","staticStyle","model","value","table","criteria","employees","callback","$$v","$set","expression","leaveType","on","onRefreshData","scopedSlots","_u","key","fn","_v","proxy","_s","$t","headers","filteredItems","loading","row","item","id","leaveRequest","employee","name","deductedLeaveBalance","_f","beginLeaveRequestDay","date","getIsHourlyLeaveBeginTime","leaveRequestDays","endLeaveRequestDay","getIsHourlyLeaveEndTime","requestDateTime","$event","stopPropagation","onClickLeaveApproval","onClickLeaveCancel","dialog","data","onCloseDialog","onSuccessApproval","status","cancelDialog","onCloseLeaveDialog","onSuccessLeaveCancel","staticRenderFns","components","LeaveTypePicker","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AIc,KAAKd,EAAIsD,aAAc,SAAUzC,IAAME,WAAW,0BAA0B,IAE31G0C,EAAkB,G,YCqFtB,GACAtB,qBACAuB,YACA,8EACA,0EACAC,qEAEAT,UACAI,cACAD,UACAH,WAEAD,QACAI,UACAH,WAEAU,iBACArB,oDACA9B,OACAoB,WACAqB,QACAW,YACAnD,UAAAC,aAAAK,gBACAW,SACA,CACAmC,6BACAC,aACAC,YACAxD,kBACAyD,sCAGA,CACAH,wBACAC,aACAC,YACAxD,uBACAyD,sCAGA,CACAH,8BACAC,aACAC,YACAxD,SACAyD,sCAEA,CACAH,4BACAC,aACAC,YACAxD,SACAyD,sCAGA,CACAH,gCACAC,aACAC,YACAxD,wBACAyD,sCAEA,CACAH,qCACAC,aACAC,YACAxD,SACAyD,sCAEA,CACAH,wCACAC,aACAC,YACAxD,SACAyD,0CAKAC,UACAC,iBACA,+CAEAvC,gBACA,gCAAAK,mBACA,gBAAAtB,YAAAK,GAAA,oBACA,2CACA,yBAEA,gBAIAoD,SACApB,sBACA,yBACA,6BAEAO,qBACA,4BACA,6BAEAC,uBACA,0BACA,sBAEAtC,gBACA,mBAEA,mBACA,4BACA,aACAmD,OACAA,aACAC,WACAtC,qCAGAuC,OAAArB,OAAAsB,aACA,aACAtB,uDACA,kDACA,6CACA,YAGA,kEAGAuB,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,UAEAhC,wBACA,mBACA,uBAEAI,gBACA,sBACA,uBAEAC,oBACA,qBACA,sBAEA4B,oBACA,2CAEA,gBACA,qEAEA,oCAGAxC,6BACA,2CACA,YACA,4DAGAG,2BACA,2CACA,YACA,2CACAsC,oCACAC,kBAIAC,UACA,oBCrT6W,I,YCOzWC,EAAY,eACd,EACArF,EACA0D,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-4220771f.38d30f33.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('div',{staticClass:\"d-flex justify-start align-center flex-wrap\"},[_c('employee-picker',{staticClass:\"mr-3\",staticStyle:{\"width\":\"400px\"},attrs:{\"multiple\":\"\"},model:{value:(_vm.table.criteria.employees),callback:function ($$v) {_vm.$set(_vm.table.criteria, \"employees\", $$v)},expression:\"table.criteria.employees\"}}),_c('leave-type-picker',{staticStyle:{\"width\":\"400px\"},attrs:{\"clearable\":\"\"},model:{value:(_vm.table.criteria.leaveType),callback:function ($$v) {_vm.$set(_vm.table.criteria, \"leaveType\", $$v)},expression:\"table.criteria.leaveType\"}})],1),_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.filteredItems,\"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=9c9fed48&\"\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":""}