{"version":3,"sources":["webpack:///./src/pages/leave/query/index.js","webpack:///./src/pages/leave/requests/model/LeaveRequestDTO.js","webpack:///./src/pages/leave/requests/create/index.vue","webpack:///src/pages/leave/requests/create/index.vue","webpack:///./src/pages/leave/requests/create/index.vue?f1e8","webpack:///./src/pages/leave/requests/create/index.vue?a264","webpack:///./src/pages/leave/requests/model/LeaveRequestDay.js"],"names":["LEAVE_ACCRUAL","gql","LEAVE_REQUESTS","LEAVE_APPROVAL","ALL_PENDING_REQUESTS","EMPLOYEE_LEAVE_ACCRUALS","FILTER_WORKPLANS","FILTER_HOLIDAYS","FILTER_LEAVE_REQUEST","LeaveRequestDTO","constructor","this","employee","store","state","auth","user","id","leaveType","leaveRequestDays","address","explanation","documentURLs","bypassApproval","extraDay","extraMinute","totalLeaveCount","isNextDay","shiftDuration","excludeShiftEvents","render","_vm","_c","_self","attrs","$t","on","leavePage","scopedSlots","_u","key","fn","model","value","step","callback","$$v","expression","ref","leaveRequestType","class","errors","_g","_b","$event","beginDate","beginDateMenu","endDate","endDateMenu","_e","beginTime","beginTimeMenu","endTime","endTimeMenu","staticClass","leaveRequest","$set","setLeaveTypeDurations","leaveAccrual","required","isAddressRequired","max","trim","isExplanationRequired","min","validDescription","isDocumentRequired","requiredDocuments","length","_v","_s","_l","item","index","name","uploading","onPickFile","proxy","staticStyle","onFilePicked","uploadedFiles","fileName","$helpers","humanFileSize","size","onRemoveFile","url","dateRangeCount","calculating","totalCount","totalLeaveHour","day","leaveTypeDurations","extraDays","date","onClickBack","loading","fetchLeaveRequest","leaveRequestDisable","onSendLeaveRequest","staticRenderFns","data","calculateStop","notTheSame","selectedUploadFile","isSaved","holidays","workplans","employeeWorkplanOffDays","employeeWorkplanOvertimes","employeeWorkplanBreakDays","employeeWorkplans","leaveRequests","countOffday","countAsWorkday","requestLeaveAcceptedTotalCount","oldLeaveRequestDays","totalRequestCount","components","LeaveType","AppPageFooter","LeaveRequestDay","LeaveRequestItem","LeaveRequestInformation","watch","handler","deep","computed","noticePeriod","totalMaxExceedLeaveLeaveBalance","totalBalance","includeWeekendsAfter","includeAllWeekHolidays","includeAllWeekSaturdays","includePublicHolidays","methods","then","catch","text","type","color","finally","validateFile","message","resolve","delete","timeConvertToMinutes","query","variables","criteria","employees","fetchPolicy","errorPolicy","shift","workplan","leaveRequestStatuses","console","offDaysAndHolidaysCriteria","leaveRequestDayType","includeHolidaysAfter","hasHoliday","setDateRangeChange","noticePeriodCriteria","reject","maxConsecutiveCriteria","leaveRequestExists","leaveRequestDates","add","format","exists","firstLeaveTypeDuration","validateAll","calculateExtraDays","duration","period","fromTime","lengthInMinutes","includeSaturday","holiday","weight","toOnLeave","calculate","calculateHourly","isLeaveTypeUsableOnSpecificDate","validateLeaveTypeUsageOnSpecificDate","ON_BIRTHDAY","BIRTHDAY_WEEK","BIRTHDAY_MONTH","isValid","error","begin","onClickContinue","newRequestDay","onClickNextStep","totalLeaveBalance","save","uploadLeaveRequestFile","formData","upload","onUploadProgress","removeAllUploadedFiles","multipleDelete","component","durationValue","now","moment","diff","utc","startOf","minutes"],"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;;;;;;;;;;;;;;;;;;qCChR1C,kDAEe,MAAMQ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ACA3D,aACA,8BAEAG,gBACA,+CACA,4BACA,2CACAyD,SACA,0DAEAC,UACA,OACAC,8BACAC,aACAC,eAEA,mDAEAC,iBAEA,6BACA,kCAGAC,gBACA,2BACA,SACA,qBACA,oEACA,2BACA,kBACA,YACA,YACA,cAEA,qBACA,qBACA,MAAAC,8BACA,MAAAA,iCACA,cACAC,SAGA3D,kBACA,MACA,yBACA,yBACA4D,YACAT,OAAAnC,WACA,2CACA,iCAEAoC,UACA,OACAC,wBACAC,aACAC,eAEA,mDAEAJ,eAGA7G,aACA,uEACA,sBACA,sBAAA+C,yBAEAwE,wBACA,8BACA,+BAEA,+BACA,sBACA,aACAC,OACAA,aACAC,WACAC,UACAC,2CACAzG,yBACAE,uBAGAwG,uBACAC,oBAEAhB,OAAAnC,OAAA5D,aACA,iBACA,oBACA,kBACA,gCACA,kCACA,kCACA,0BAEA,gDACA4D,8BACA,8BACAoD,kDAGA,uCAEA,wDAEA,kBACAC,6BACA,2BACA,iDACA,+CAOA,yEACA,YAEA,4CAGA,oBACA,uFACA,QACA,4EACA,sCACA,2CAKAjB,oDACAI,8BAEA,4BACA,aACAM,OACAA,aACAC,WACAC,UACAxG,yBACAE,uBAGAwG,uBACAC,oBAEAhB,OAAAnC,OAAA5D,aACA,aACA,kCAGAgG,oDACAI,8BAEA,+BACA,gBACA,+BACA,aACAM,OACAA,aACAC,WACAC,UACAxG,yBACAE,qBACAuG,2CACAK,8CAGAJ,uBACAC,oBAEAhB,OAAAnC,OAAA5D,aACA,aACA,sBACA4D,kCACA7B,6DAGA,yBAEAiE,UACAmB,qBAEApB,UACA,mBAGAqB,8BACA,2EACA,8BACA,oBACA,2CACA,2EACA,2EACA,4EACA,GACA,oEACA,2EACA,oCAEA,6BACA,sEAgBA,MACA,+CACA,6CACA,6CACA,OAEAC,oCACA,sBACAA,yCAEA,MACAA,qCACA,OACAA,sCAGA,YACAA,yCAEA,QACAA,qCAEA,sBACAA,8CAIA,QACAA,uCAGAC,qBACAC,aAEAF,8CAjDA,EAEAA,EADA,4BAGA,UAFAA,qCAKAA,oCAGA,0DACAA,uCACA,iCACAA,sCAwCA,UAEAG,qBACA,2CACA,mCACA,6BACA,mCACA,kCAEAxG,wBACA,2BACA,2EACA,4BACA,kCACA,CACAiF,qCACAzG,YAIAiI,uBACA,2BACA,4CACA,aAEA,0EACA,8CACAlB,MAEAmB,8EAIAC,yBACA,4FACA,wFACA,2BACA,yBACAD,6DACA,yBACAA,6DAEAnB,SAIAqB,qBACA,qCACA,6BACA,4CACA,SACA,qBACAC,wEAEA,SACA,qCACA,uFACA,+EAEA,+BACA,2EACA,0CACAC,iCACAC,2BAGA,kCACA,oCAEAC,OAGA,mCACA,kCACA,mCACA,oCAEAA,aAIAA,iDAGA,2BACAA,wEAGAC,0BACA,uDACA,wCACA,iEAEAC,cACA,oBACA,0BACA,4BACA,iCAIAC,sBACAvE,iCACA,mBACA,mDACA,kBACA,qEACA,kDACA,mDACA,6DACA,6BACA,qDACA,kDAEA,mBACA,yBAGA,kBACA,+EACAP,YACA+E,uBACAC,eACAhB,+BACAiB,cACAC,qBACAC,mBACAC,mCACAC,SACArK,oCACAsK,eAGA,yBAGAC,aACA,oBACA,SACAnL,wCACAM,0EACAC,oBAEA,8BACA4K,aACA7C,SACA,gBACA,qCACA,uDACA,gEACA,qDACA,uCACA,yBACAA,sBACAC,mEAEA,0DAGAA,yBACAI,kCAEAyC,mBACA,oBACA,SACApL,wCACAM,0EACAC,oBAEA,8BACA6K,mBACA9C,SACA,iBACA,+CACA,0DACA,yBACAA,sBACAC,qEAGAA,oDACAI,kCAEA5C,oBACA,+BAEAsF,kCACA,sGAEAC,uCACA,kBAAAC,gBAAAC,iBAAAC,GAAA,kCACA,yFAEA,+BACA,6BACA,sFAEA,gDACA,+DAGA,SACA,KACAC,aACA,iCACA,6CAEAC,yDAEA,KACAD,aACA,iDACA,yCACA,iEAEAC,2DAEA,KACAD,aACA,kDACA,0CACA,OACAE,0DAGAD,6DAIA,OACA,uBACA,aAGA,WAEAE,kBACA,qCACA,iCACA,mBACAvD,SACA,oDACA,2CACA,uDACA,MAEA,YADA,6CAIA,oFAEA,OADA,sEACA,EAGA,GADA,sCACA,kCACA,gDACA,0CACA,MACA,gBACA,sDACA,aACAwD,sBACAA,oBACAA,wBACAA,0BACAA,oBACAA,aACA,2CACA,6DACA,CACA,uCACA,sEACA,qCACA,aACAA,uEACAA,0CACAA,wBACA,yBACAA,gCACAxH,sBAEAwH,2DACAA,aACA,2CAEA,uDAKAvD,UACA,6DAKAwD,kBACA,aAEAC,oBACA,gFACA,+DAEA,2BACA,QACA,SACA/B,8DAGA,OACAnB,MAEAmB,kEAIAnB,SAIAjD,cACA,kBACA,kBACA,sBACA,yBACA,YACA,sCACA,8BACA,6BACA,kCACA,4FACA,uBAEAI,qBACA,gBACA,8BACAgG,wBACA3D,OAAAnC,WACA,UACA,2BACA,gBACA,oBAGAoC,UACAmB,qBAEAf,aACA,mBAGAuD,0BACA,yBACA,eACAC,0BACAA,0BACA,kBACA,yBACAC,UACAC,yBAEA/D,OAAAnC,WACA,SACA,4CACA,yBACApB,sCACAG,kCACAuD,kCACArD,gBAIAmD,UACA,OACAC,yBACAE,cACAD,cAEA,mDAEAE,aACA,8BACA,+BAEA,mBAEA2D,yBACA,yBACA,yBACAC,iDACAjE,OAAAnC,cACAoC,UACA,OACAC,2BACAC,aACAC,eAEA,mDAEAJ,gBClnC4X,I,YCOxXkE,EAAY,eACd,EACAtL,EACAgF,GACA,EACA,KACA,WACA,MAIa,aAAAsG,E,6CClBf,gBAEA,MAAMjF,EACJzH,YACE8F,EAAO,KACP+E,EAAW,KACXC,EAAS,KACThB,EAAsB,KACtBiB,EAAW,KACXC,EAAkB,MAElB/K,KAAK6F,KAAOA,EACZ7F,KAAK4K,SAAWA,EAChB5K,KAAK6K,OAASA,EACd7K,KAAK6J,oBAAsB,WAC3B7J,KAAK8K,SAAWA,EAChB9K,KAAK+K,gBAAkBA,EACvB/K,KAAKgL,iBAAkB,EACvBhL,KAAKiL,SAAU,EACfjL,KAAKkL,OAAS,EACdlL,KAAKa,UAAW,EAGlB6L,gBACE,IAAI1K,EAAQ,EACZ,OAAQhC,KAAK4K,UACX,IAAK,WACH5I,EAAQhC,KAAKkL,OACb,MACF,IAAK,WACHlJ,EAAQhC,KAAKkL,OAAS,EACtB,MACF,IAAK,cACHlJ,EAAQhC,KAAKkL,OAAS,EACtB,MACF,IAAK,SACH,IAAIyB,EAAMC,iBAASrC,OAAO,cACtBtH,EAAY2J,eAAQ,GAAED,KAAO3M,KAAK8K,WAAY,oBAC9C3H,EAAUyJ,eAAQ,GAAED,KAAO3M,KAAK8K,WAAY,oBAAoBR,IAAItK,KAAK+K,gBAAiB,WAC9F/I,EAAQmB,EAAQ0J,KAAK5J,EAAW,WAAW,GAC3CjB,EAAQ4K,OACLE,MACAC,QAAQ,OACRzC,IAAI,CAAE0C,QAAShL,IACfuI,OAAO,QACV,MAEJ,OAAOvI,GAIIwF","file":"js/chunk-0a3b91c4.294c11f1.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","import store from \"@/store\";\n\nexport default class LeaveRequestDTO {\n constructor() {\n this.employee = store.state.auth.user.id;\n this.leaveType = null;\n this.leaveRequestDays = [];\n this.address = null;\n this.explanation = null;\n this.documentURLs = [];\n this.bypassApproval = false;\n this.extraDay = 0;\n this.extraMinute = 0;\n this.totalLeaveCount = 0;\n this.isNextDay = false;\n this.shiftDuration = 0;\n this.excludeShiftEvents = false;\n this.shiftDuration = 0;\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('app-page-layout',{attrs:{\"title\":_vm.$t('leave.crud.create'),\"icon\":\"mdi-airplane-takeoff\"},on:{\"close\":_vm.leavePage},scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('v-window',{model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},[_c('v-window-item',{attrs:{\"value\":1}},[_c('validation-observer',{ref:\"form\"},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-radio-group',{attrs:{\"mandatory\":\"\",\"row\":\"\"},model:{value:(_vm.leaveRequestType),callback:function ($$v) {_vm.leaveRequestType=$$v},expression:\"leaveRequestType\"}},[_c('v-radio',{attrs:{\"label\":_vm.$t('leave.daily'),\"value\":\"FULL_DAY\"}}),_c('v-radio',{attrs:{\"label\":_vm.$t('leave.hourly'),\"value\":\"HOURLY\"}})],1)],1)],1),_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{class:_vm.leaveRequestType === 'FULL_DAY' ? 'xs6' : 'xs12'},[_c('v-menu',{attrs:{\"close-on-content-click\":false,\"nudge-bottom\":45,\"max-width\":\"290\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('validation-provider',{attrs:{\"name\":_vm.$t('leave.begin_date'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('v-text-field',_vm._g(_vm._b({attrs:{\"clearable\":\"\",\"label\":_vm.$t('leave.begin_date'),\"error-messages\":errors,\"readonly\":\"\"},on:{\"click:clear\":function($event){_vm.beginDate = null}},model:{value:(_vm.beginDate),callback:function ($$v) {_vm.beginDate=$$v},expression:\"beginDate\"}},'v-text-field',attrs,false),on))]}}],null,true)})]}}]),model:{value:(_vm.beginDateMenu),callback:function ($$v) {_vm.beginDateMenu=$$v},expression:\"beginDateMenu\"}},[_c('v-date-picker',{attrs:{\"first-day-of-week\":\"1\"},on:{\"change\":function($event){_vm.beginDateMenu = false}},model:{value:(_vm.beginDate),callback:function ($$v) {_vm.beginDate=$$v},expression:\"beginDate\"}})],1)],1),(_vm.leaveRequestType === 'FULL_DAY')?_c('v-flex',{attrs:{\"xs6\":\"\"}},[_c('v-menu',{attrs:{\"close-on-content-click\":false,\"nudge-bottom\":45,\"max-width\":\"290\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('validation-provider',{attrs:{\"name\":_vm.$t('leave.end_date'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('v-text-field',_vm._g(_vm._b({attrs:{\"disabled\":!_vm.beginDate,\"clearable\":\"\",\"error-messages\":errors,\"label\":_vm.$t('leave.end_date'),\"readonly\":\"\"},on:{\"click:clear\":function($event){_vm.endDate = null}},model:{value:(_vm.endDate),callback:function ($$v) {_vm.endDate=$$v},expression:\"endDate\"}},'v-text-field',attrs,false),on))]}}],null,true)})]}}],null,false,1274360907),model:{value:(_vm.endDateMenu),callback:function ($$v) {_vm.endDateMenu=$$v},expression:\"endDateMenu\"}},[_c('v-date-picker',{attrs:{\"first-day-of-week\":\"1\",\"min\":_vm.beginDate},on:{\"change\":function($event){_vm.endDateMenu = false}},model:{value:(_vm.endDate),callback:function ($$v) {_vm.endDate=$$v},expression:\"endDate\"}})],1)],1):_vm._e()],1),(_vm.leaveRequestType === 'HOURLY')?_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs3\":\"\"}},[_c('v-menu',{ref:\"menu\",attrs:{\"close-on-content-click\":false,\"nudge-right\":40,\"transition\":\"scale-transition\",\"offset-y\":\"\",\"max-width\":\"290px\",\"min-width\":\"290px\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('validation-provider',{attrs:{\"name\":_vm.$t('leave.begin_time'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('v-text-field',_vm._g(_vm._b({attrs:{\"label\":_vm.$t('leave.begin_time'),\"readonly\":\"\",\"error-messages\":errors},model:{value:(_vm.beginTime),callback:function ($$v) {_vm.beginTime=$$v},expression:\"beginTime\"}},'v-text-field',attrs,false),on))]}}],null,true)})]}}],null,false,4249730213),model:{value:(_vm.beginTimeMenu),callback:function ($$v) {_vm.beginTimeMenu=$$v},expression:\"beginTimeMenu\"}},[(_vm.beginTimeMenu)?_c('v-time-picker',{attrs:{\"no-title\":\"\",\"full-width\":\"\",\"format\":\"24hr\"},on:{\"click:minute\":function($event){_vm.beginTimeMenu = false}},model:{value:(_vm.beginTime),callback:function ($$v) {_vm.beginTime=$$v},expression:\"beginTime\"}}):_vm._e()],1)],1),_c('v-flex',{attrs:{\"xs3\":\"\"}},[_c('v-menu',{ref:\"menu\",attrs:{\"close-on-content-click\":false,\"nudge-right\":40,\"transition\":\"scale-transition\",\"offset-y\":\"\",\"max-width\":\"290px\",\"min-width\":\"290px\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('validation-provider',{attrs:{\"name\":_vm.$t('leave.end_time'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('v-text-field',_vm._g(_vm._b({attrs:{\"label\":_vm.$t('leave.end_time'),\"readonly\":\"\",\"error-messages\":errors},model:{value:(_vm.endTime),callback:function ($$v) {_vm.endTime=$$v},expression:\"endTime\"}},'v-text-field',attrs,false),on))]}}],null,true)})]}}],null,false,3384522413),model:{value:(_vm.endTimeMenu),callback:function ($$v) {_vm.endTimeMenu=$$v},expression:\"endTimeMenu\"}},[(_vm.endTimeMenu)?_c('v-time-picker',{attrs:{\"full-width\":\"\",\"no-title\":\"\",\"format\":\"24hr\"},on:{\"click:minute\":function($event){_vm.endTimeMenu = false}},model:{value:(_vm.endTime),callback:function ($$v) {_vm.endTime=$$v},expression:\"endTime\"}}):_vm._e()],1)],1),_c('v-flex',{attrs:{\"xs6\":\"\"}},[_c('v-switch',{staticClass:\"mt-2\",attrs:{\"true-value\":true,\"false-value\":null,\"color\":\"primary\",\"label\":_vm.$t('leave.isNexyDayMessage')},model:{value:(_vm.leaveRequest.isNextDay),callback:function ($$v) {_vm.$set(_vm.leaveRequest, \"isNextDay\", $$v)},expression:\"leaveRequest.isNextDay\"}})],1)],1):_vm._e(),_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('validation-provider',{attrs:{\"name\":_vm.$t('leave.type'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('leave-type',{attrs:{\"disabled\":!_vm.beginDate && !_vm.endDate,\"begin-date\":_vm.beginDate,\"leave-request-type\":_vm.leaveRequestType,\"error-messages\":errors,\"return-object\":\"\"},on:{\"change\":_vm.setLeaveTypeDurations},model:{value:(_vm.leaveAccrual),callback:function ($$v) {_vm.leaveAccrual=$$v},expression:\"leaveAccrual\"}})]}}])})],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('validation-provider',{attrs:{\"name\":_vm.$t('global.address'),\"rules\":{ required: _vm.isAddressRequired, max: 512 }},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('v-textarea',{attrs:{\"label\":_vm.$t('global.address'),\"counter\":512,\"error-messages\":errors,\"rows\":\"1\"},model:{value:(_vm.leaveRequest.address),callback:function ($$v) {_vm.$set(_vm.leaveRequest, \"address\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"leaveRequest.address\"}})]}}])})],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('validation-provider',{attrs:{\"name\":_vm.$t('global.explanation'),\"rules\":{\n required: _vm.isExplanationRequired,\n max: 512,\n min: 4,\n validDescription: _vm.isExplanationRequired ? { min: 4 } : false\n }},scopedSlots:_vm._u([{key:\"default\",fn:function({ errors }){return [_c('v-textarea',{attrs:{\"label\":_vm.$t('global.explanation'),\"counter\":512,\"error-messages\":errors,\"rows\":\"1\"},model:{value:(_vm.leaveRequest.explanation),callback:function ($$v) {_vm.$set(_vm.leaveRequest, \"explanation\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"leaveRequest.explanation\"}})]}}])})],1)],1)],1),_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[(_vm.isDocumentRequired && _vm.requiredDocuments.length)?_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-subheader',{staticClass:\"px-0\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"leave.requests.requested_leave_type_documents\"))+\" \"),_c('v-divider',{attrs:{\"inset\":\"\"}})],1),_c('v-timeline',{staticClass:\"mb-3\",attrs:{\"dense\":\"\",\"clipped\":\"\"}},_vm._l((_vm.requiredDocuments),function(item,index){return _c('v-timeline-item',{key:index,attrs:{\"large\":\"\",\"color\":\"blue\",\"icon\":\"mdi-attachment\"}},[_c('v-card',{attrs:{\"flat\":\"\",\"color\":\"grey lighten-5\"}},[_c('v-card-text',[_vm._v(\" \"+_vm._s(item.name)+\" \")])],1)],1)}),1)],1):_vm._e(),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-layout',[_c('v-col',{staticClass:\"d-flex justify-center\",attrs:{\"cols\":\"12\"}},[_c('v-btn',{attrs:{\"depressed\":\"\",\"color\":\"primary\",\"loading\":_vm.uploading,\"disabled\":_vm.uploading},on:{\"click\":_vm.onPickFile},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(_vm._s(_vm.$t(\"global.loading_message\")))]),_c('v-progress-circular',{staticClass:\"ml-2\",attrs:{\"indeterminate\":\"\",\"size\":22,\"width\":2}})]},proxy:true}])},[_c('span',{staticClass:\"white--text\"},[_vm._v(_vm._s(_vm.$t(\"buttons.file_upload\")))]),_c('v-icon',{attrs:{\"right\":\"\",\"color\":\"white\"}},[_vm._v(\"mdi-cloud-upload\")])],1),_c('input',{ref:\"fileInput\",staticStyle:{\"display\":\"none\"},attrs:{\"type\":\"file\",\"accept\":\"application/msword,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, application/pdf, image/*\"},on:{\"change\":_vm.onFilePicked}})],1)],1)],1),(_vm.uploadedFiles.length)?[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-subheader',{staticClass:\"px-0\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"global.uploaded_files\"))+\" \"),_c('v-divider',{attrs:{\"inset\":\"\"}})],1)],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-slide-x-transition',{staticClass:\"mb-2 py-0\",attrs:{\"mode\":\"out-in\",\"group\":\"\",\"tag\":\"div\"}},[_vm._l((_vm.uploadedFiles),function(item,index){return [_c('v-card',{key:index,staticClass:\"mb-2\",attrs:{\"flat\":\"\",\"color\":\"grey lighten-4\"}},[_c('v-list-item',{attrs:{\"avatar\":\"\"}},[_c('v-list-item-avatar',[_c('v-icon',[_vm._v(\"mdi-attachment\")])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(item.fileName))]),_c('v-list-item-subtitle',[_vm._v(_vm._s(_vm.$helpers.humanFileSize(item.size)))])],1),_c('v-list-item-action',[_c('v-btn',{attrs:{\"flat\":\"\",\"icon\":\"\"},on:{\"click\":function($event){return _vm.onRemoveFile(item.url, index)}}},[_c('v-icon',{attrs:{\"size\":20}},[_vm._v(\"mdi-delete\")])],1)],1)],1)],1)]})],2)],1)]:_vm._e()],2)],1),_c('v-window-item',{attrs:{\"value\":2}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('leave-request-information',{attrs:{\"leave-request-days\":_vm.leaveRequest.leaveRequestDays,\"leave-accrual\":_vm.leaveAccrual,\"date-range-count\":_vm.dateRangeCount,\"leave-request-type\":_vm.leaveRequestType,\"extra-day\":_vm.leaveRequest.extraDay,\"extra-minute\":_vm.leaveRequest.extraMinute,\"calculating\":_vm.calculating,\"total-count\":_vm.totalCount,\"total-leave-hour\":_vm.totalLeaveHour}})],1),_vm._l((_vm.leaveRequest.leaveRequestDays),function(day,index){return _c('v-col',{key:index,attrs:{\"cols\":\"12\"}},[_c('leave-request-day',{attrs:{\"leaveAccrual\":_vm.leaveAccrual,\"leave-type-durations\":_vm.leaveTypeDurations,\"index\":index,\"editable\":\"\"},model:{value:(_vm.leaveRequest.leaveRequestDays[index]),callback:function ($$v) {_vm.$set(_vm.leaveRequest.leaveRequestDays, index, $$v)},expression:\"leaveRequest.leaveRequestDays[index]\"}})],1)})],2),(_vm.extraDays.length)?[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"title mb-3 mt-2\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"leave.requests.days_off_automatically\"))+\" \")])]),_vm._l((_vm.extraDays),function(day,index){return _c('v-col',{key:day.date,attrs:{\"cols\":\"12\"}},[_c('leave-request-day',{attrs:{\"leaveAccrual\":_vm.leaveAccrual,\"index\":index,\"editable\":\"\"},model:{value:(_vm.extraDays[index]),callback:function ($$v) {_vm.$set(_vm.extraDays, index, $$v)},expression:\"extraDays[index]\"}})],1)})],2)]:_vm._e()],2)],1)]},proxy:true},{key:\"footer\",fn:function(){return [_c('app-page-footer',{scopedSlots:_vm._u([{key:\"left\",fn:function(){return [(_vm.step === 2)?_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.onClickBack}},[_vm._v(_vm._s(_vm.$t(\"buttons.back\")))]):_vm._e()]},proxy:true},{key:\"right\",fn:function(){return [(_vm.step === 1)?_c('v-btn',{attrs:{\"text\":\"\",\"loading\":_vm.loading},on:{\"click\":_vm.fetchLeaveRequest}},[_vm._v(\" \"+_vm._s(_vm.$t(\"buttons.continue\"))+\" \")]):_vm._e(),(_vm.step === 2)?_c('v-btn',{attrs:{\"text\":\"\",\"loading\":_vm.loading,\"disabled\":_vm.calculating || _vm.leaveRequestDisable},on:{\"click\":_vm.onSendLeaveRequest}},[_vm._v(\" \"+_vm._s(_vm.$t(\"buttons.save\"))+\" \")]):_vm._e()]},proxy:true}])})]},proxy:true}])})\n}\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 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ $t(\"leave.requests.requested_leave_type_documents\") }}\n \n \n \n \n \n \n {{ item.name }}\n \n \n \n \n \n \n \n \n \n \n {{ $t(\"global.loading_message\") }}\n \n \n {{ $t(\"buttons.file_upload\") }}\n mdi-cloud-upload\n \n \n \n \n \n \n \n \n {{ $t(\"global.uploaded_files\") }}\n \n \n \n \n \n \n \n \n \n mdi-attachment\n \n \n {{ item.fileName }}\n {{ $helpers.humanFileSize(item.size) }}\n \n \n \n mdi-delete\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n {{ $t(\"leave.requests.days_off_automatically\") }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ $t(\"buttons.back\") }}\n \n \n \n {{ $t(\"buttons.continue\") }}\n \n \n {{ $t(\"buttons.save\") }}\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=a01df362&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 \"a01df362\",\n null\n \n)\n\nexport default component.exports","import moment from \"@/plugins/moment\";\n\nclass LeaveRequestDay {\n constructor(\n date = null,\n duration = null,\n period = null,\n leaveRequestDayType = null,\n fromTime = null,\n lengthInMinutes = null\n ) {\n this.date = date;\n this.duration = duration;\n this.period = period;\n this.leaveRequestDayType = \"ON_LEAVE\";\n this.fromTime = fromTime;\n this.lengthInMinutes = lengthInMinutes;\n this.includeSaturday = false;\n this.holiday = false;\n this.weight = 1;\n this.extraDay = false;\n }\n\n durationValue() {\n let value = 0;\n switch (this.duration) {\n case \"FULL_DAY\":\n value = this.weight;\n break;\n case \"HALF_DAY\":\n value = this.weight / 2;\n break;\n case \"QUARTER_DAY\":\n value = this.weight / 4;\n break;\n case \"HOURLY\":\n let now = moment().format(\"YYYY-MM-DD\");\n let beginTime = moment(`${now} ${this.fromTime}`, \"YYYY-MM-DD HH:mm\");\n let endTime = moment(`${now} ${this.fromTime}`, \"YYYY-MM-DD HH:mm\").add(this.lengthInMinutes, \"minutes\");\n value = endTime.diff(beginTime, \"minutes\", true);\n value = moment\n .utc()\n .startOf(\"day\")\n .add({ minutes: value })\n .format(\"H:mm\");\n break;\n }\n return value;\n }\n}\n\nexport default LeaveRequestDay;\n"],"sourceRoot":""}