{"version":3,"sources":["webpack:///./src/pages/leave/query/index.js","webpack:///./src/pages/leave/accruals/index.vue","webpack:///src/pages/leave/accruals/index.vue","webpack:///./src/pages/leave/accruals/index.vue?96a9","webpack:///./src/pages/leave/accruals/index.vue?844e"],"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","leavePolicy","leaveType","name","isAllowanceVisible","used","toFixed","totalBalance","staticRenderFns","criteria","employees","beginDate","endDate","options","pagination","rowsPerPage","sortBy","descending","totalItems","totalPages","selected","text","value","align","sortable","class","title","methods","query","variables","employee","onlyRequestable","then","errors","a","catch","finally","created","component"],"mappings":"kHAAA,gSAEO,MAAMA,EAAgBC,MAAI;;;;;;;;;;;;;;;;;;;;;EAuBpBC,EAAiBD,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCrBE,EAAiBF,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDrBG,EAAuBH,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwD3BI,EAA0BJ,MAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD9BK,EAAmBL,MAAI;;;;;;;;;;;EAavBM,EAAkBN,MAAI;;;;;;;;;;;;EActBO,EAAuBP,MAAI;;;;;;;;;;;;EAcPA,MAAI;;;;;;;;EAUCA,MAAI;;;;;;;;;;;;;;;;;;8CChR1C,IAAIQ,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACE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WACAD,QACAa,UACAC,aACAC,eACAC,cAEAC,WACAC,YACAC,eACAC,cACAC,eAEAC,aACAC,aACAC,YACAzB,SACA,CACA0B,iCACAC,mCACAC,aACAC,YACAC,yBAEA,CACAJ,iCACAK,mCACAJ,aACAC,aACAC,YACAC,yBAEA,CACAJ,yCACAE,aACAC,YACAC,6BAKAE,SACApB,gBACA,oEACA,qBACA,kBAEAtB,gBACA,mBAEA,mBACA,4BACA,aACA2C,OACAA,aACAC,WACAC,wCACAC,sBAGAC,OAAApC,OAAAqC,aACA,aACA,4CACAC,6EAIAC,UACA,4CAEAC,oCAEAhC,sBACA,8DAGAiC,UACA,oBC1H6W,I,YCOzWC,EAAY,eACd,EACA7D,EACA+B,GACA,EACA,KACA,WACA,MAIa,aAAA8B,E","file":"js/chunk-399adac2.0d47003e.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,\"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',[_vm._v(\" \"+_vm._s(row.item.leavePolicy.leaveType.name)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(_vm.isAllowanceVisible(row.item) ? row.item.used.toFixed(2) || 0 : \"-\")+\" \")]),_c('td',[_vm._v(_vm._s(_vm.isAllowanceVisible(row.item) ? _vm.totalBalance(row.item) : \"-\"))])])]}}])})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n mdi-refresh\n \n {{ $t(\"buttons.refresh\") }}\n \n \n\n \n \n \n \n {{ row.item.leavePolicy.leaveType.name }}\n \n \n {{ isAllowanceVisible(row.item) ? row.item.used.toFixed(2) || 0 : \"-\" }}\n \n {{ isAllowanceVisible(row.item) ? totalBalance(row.item) : \"-\" }}\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!./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=0f2f8a1c&scoped=true&\"\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 \"0f2f8a1c\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}