PageSourceSearch

https://app.hrone.cloud/7284.cb2d0aab30f0ea65.js

js hrone.cloud collected 2026-09-24 10:27:12 UTC 211,389 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkHROneV5=self.webpackChunkHROneV5||[]).push([[7284],{7284(fe,S,s){s.d(S,{CheckinCheckoutSettingModule:()=>ka});var b=s(56390);const y={inOutPolicyId:"",activeStatus:"1",pagination:{pageNumber:1,pageSize:15}};class D{constructor(a=0,t="",i=!1,o=!1,l=!1,r="A",d=!1,u,p=!1,f=!1,h="A",B=!1,Y,H=!1,J=!1,U,K=!1,Z=!1,Q="0",ee,te=0,ne=!1,ie=!1,oe="0",ae=new E,le=!1,va=!1,ba=!1,ya=!1,Oa="",Fa="",xa=!1,Ra="",Ma="",Ia=!1,wa=new j,Da=!0,Aa=!0,Ta=!0,Pa=!1,Sa=!1,Ea=!1,ja=!0,Na=!1,$a=!1,Va=null,Ga=!1,qa=null,za=!0,Wa=!0,La=!1,Xa=!0,Ba=!0,Ya=!1,Ha=!1,Ja=!1,Ua=!0,Ka=!0,Za=!1,Qa=!1,el=!0,tl=!0,nl=!1,il=90,ol=0,al=0,ll=!1,rl=0,cl=!1,sl=0,dl=!1,_l=0,ml=!1,ul=0,pl=!1,hl=!1,Cl=!1,fl=!1,gl="",kl=!1,vl=null,bl=!1,yl=null,Ol=!1,Fl=null,xl=!1,Rl=null,Ml=!0,Il=30,wl=!0,Dl=30){this.inOutPolicyId=a,this.inOutPolicyName=t,this.enableTimesheet=i,this.enableBiometric=o,this.enableWebCheckIn=l,this.webAttendanceType=r,this.enableNoOfPunchInWeb=d,this.noOfPunchInWeb=u,this.enableMobileCheckIn=p,this.enableWifiBasedAttendance=f,this.mobileAttendanceType=h,this.isPhotoRequired=B,this.numberOfPhotos=Y,this.allowGeoFencing=H,this.enableNoOfPunchInMobile=J,this.noOfPunchInMobile=U,this.enableAttendanceRegularization=K,this.allowBackdateAttendanceRegularization=Z,this.backDaysAttendanceRegularization=Q,this.intervalIdForAttendanceRegularization=ee,this.maxAllowedAttendanceRegularization=te,this.enableOutdoorDuty=ne,this.allowBackdateOutdoorDuty=ie,this.backDaysOutdoorDuty=oe,this.outdoorDutyDetails=ae,this.isWeMeIntegration=le,this.isLocationRequired=va,this.allowProjectInOnDuty=ba,this.defineTimeframeForMobileCheckIn=ya,this.mobileCheckInStartTime=Oa,this.mobileCheckInEndTime=Fa,this.defineTimeframeForWebCheckIn=xa,this.webCheckInStartTime=Ra,this.webCheckInEndTime=Ma,this.enableIPValidation=Ia,this.ipAddresses=wa,this.allowAttendanceRegularizationAfterAttendanceProcess=Da,this.allowOutdoorDutyAfterAttendanceProcess=Aa,this.allowAttendanceRegularizationForFuture=Ta,this.isSinglePunchRequiredForAttendanceRegularization=Pa,this.allowAttendanceRegularizationRequestWithinShiftWindow=Sa,this.isDocumentRequiredForAttendanceRegularization=Ea,this.allowOutdoorDutyForFuture=ja,this.allowOverallOnDutyLimit=Na,this.allowOverallOnDutyLimitForWeekly=$a,this.overallOnDutyLimitForWeekly=Va,this.allowOverallOnDutyLimitForMonthly=Ga,this.overallOnDutyLimitForMonthly=qa,this.isManagerRestrictedForODLimit=za,this.isAdminRestrictedForODLimit=Wa,this.isDocumentRequiredForOnDuty=La,this.allowAttendanceRegularizationRequestOnWhatsapp=Xa,this.allowAttendanceRegularizationRequestOnMicrosoftTeams=Ba,this.isRestrictAttendanceRegularizationOnWeekOff=Ya,this.isRestrictAttendanceRegularizationOnHoliday=Ha,this.isHideBothOptionForAttendanceRegularization=Ja,this.allowOnDutyRequestOnWhatsapp=Ua,this.allowOnDutyRequestOnMicrosoftTeams=Ka,this.isRestrictOnDutyOnWeekOff=Za,this.isRestrictOnDutyOnHoliday=Qa,this.allowWebCheckInRequestOnWhatsapp=el,this.allowWebCheckInRequestOnMicrosoftTeams=tl,this.restrictOnlyTempLocationApproval=nl,this.specificLocationApprovalDays=il,this.isPhotoFacialRequired=ol,this.allowGeoFencingLiveTracking=al,this.isBackdatedAttendanceRegularizationAllowedForManager=ll,this.backdatedAttendanceRegularizationAllowedDaysForManager=rl,this.isBackdatedAttendanceRegularizationAllowedForAdmin=cl,this.backdatedAttendanceRegularizationAllowedDaysForAdmin=sl,this.isBackdatedOnDutyAllowedForManager=dl,this.backdatedOnDutyAllowedDaysForManager=_l,this.isBackdatedOnDutyAllowedForAdmin=ml,this.backdatedOnDutyAllowedDaysForAdmin=ul,this.enableShiftChangeWeekOffRequest=pl,this.allowShiftChangeRequest=hl,this.allowWeeklyOffChangeRequest=Cl,this.isSpecificShiftAllowed=fl,this.shiftIds=gl,this.enableWeeklyMaximumRequestLimit=kl,this.maximumRequestLimitInWeek=vl,this.enableMonthlyMaximumRequestLimit=bl,this.maximumRequestLimitInMonth=yl,this.enableWeeklyMaximumWeeklyOffBalance=Ol,this.maximumWeeklyWeekOffBalance=Fl,this.enableMonthlyMaximumWeeklyOffBalance=xl,this.maximumMonthlyWeekOffBalance=Rl,this.allowedBackdatedRequest=Ml,this.backdatedRequestAllowedDays=Il,this.allowedFuturedatedRequest=wl,this.futuredatedRequestAllowedDays=Dl}}class E{constructor(a=0,t=0,i){this.outdoorDutyMasterId=a,this.maxAllowedOutdoorDuty=t,this.intervalIdForOutdoorDuty=i}}class j{constructor(a="",t=""){this.ipAddress=a,this.ipAddressRange=t}}var C=s(36651),e=s(91489),O=s(76188),c=s(37222),_=s(56923),m=s(3851),$=s(35025),k=s.n($),F=s(92410),x=s(32915),R=s(41305),ge=s(79134),M=s(65691);let g=(()=>{class n{constructor(t,i,o,l,r){this._httpService=t,this._formBuilder=i,this._snackbar=o,this._progressButton=l,this._shared=r,this.loadEnum=O.W,this.isLoading=O.W.loading,this.checkInGridRequest=(0,C.cloneDeep)(y),this.isReviewSidebar=!1,this.dutyTypeList=[],this.isSpinner=!1,this.intervalTypeList=[{intervalId:2,intervalType:"Weekly"},{intervalId:4,intervalType:"Monthly"},{intervalId:50,intervalType:"No limit"}],this.rights={view:!1,create:!1,update:!1,inactive:!1},this.isFilterApplied=!1,this.filterReqData=y,this.validatorsArray=[c.k0.required,m.qk,c.k0.min(1),c.k0.max(999),c.k0.pattern(_.e.NumericOnly)],this.isAddOnFeatureAvailable=!1,this.isLocationTrackingAvailable=!1,this.shiftDropDown=[],this.isAdvanceSettings=!0,this.applicability=(0,C.cloneDeep)(F.W$),this.advance_applicability=(0,C.cloneDeep)(F.dn),this.applicabEmpList=[]}setButtons(){this._progressButton.buttons=[{progress:!1,buttonName:"SAVE"}]}getCheckInCards(t,i=!1,o={}){this.isLoading=O.W.loading,t?this.checkInGridRequest.pagination.pageNumber+=1:this.checkInGridRequest.pagination.pageNumber=1,this._httpService.Post("/api/timeoffice/setting/checkin-checkout/Search",{inOutPolicyId:i?o.inOutPolicyId:this.checkInGridRequest.inOutPolicyId,activeStatus:i?o.activeStatus:this.checkInGridRequest.activeStatus,pagination:{pageNumber:this.checkInGridRequest.pagination.pageNumber,pageSize:this.checkInGridRequest.pagination.pageSize}}).subscribe(d=>{const u=d??[];this.checkInGrid=t?(0,C.concat)(this.checkInGrid,u):u,setTimeout(()=>{this.isLoading=this.checkInGrid?.length?this.loadEnum.loaded:this.loadEnum.empty},0),this.showMoreGrid=u&&u.length>=15})}getAllCheckInCards(t=!1){this.filterDropDown?.length&&!t||this._httpService.Get("/api/timeoffice/setting/checkin-checkout").subscribe(o=>{o&&(this.filterDropDown=o)})}viewClicked(t,i=!1){this.getOnDutyType(t.inOutPolicyId),this.isSpinner=!0,i?this.display_form=!0:this.isReviewSidebar=!0,this._httpService.Get("/api/timeoffice/setting/checkin-checkout/"+t.inOutPolicyId).subscribe(l=>{this.applicabEmpList=[],l.employeeDetails?.length&&(this.applicabEmpList=l.employeeDetails),this.setValidationOfShiftWeekOffChange(l),this.modifyToFormModel(l,i),this.checkInData=l,this.isSpinner=!1})}createCheckInPolicyForm(t){this.checkInForm=this._formBuilder.group({inOutPolicyId:[t.inOutPolicyId],inOutPolicyName:[t.inOutPolicyName,[m.qk,c.
1k0.pattern(_.e.allowedCharacters)]],enableTimesheet:[t.enableTimesheet],enableBiometric:[t.enableBiometric],enableWebCheckIn:[t.enableWebCheckIn],webAttendanceType:["A"],enableWifiBasedAttendance:[t.enableWifiBasedAttendance],enableNoOfPunchInWeb:[t.enableNoOfPunchInWeb],noOfPunchInWeb:[t.noOfPunchInWeb],enableMobileCheckIn:[t.enableMobileCheckIn],mobileAttendanceType:[t.mobileAttendanceType],isPhotoRequired:[t.isPhotoRequired],numberOfPhotos:[t.numberOfPhotos],allowGeoFencing:[t.allowGeoFencing],enableNoOfPunchInMobile:[t.enableNoOfPunchInMobile],noOfPunchInMobile:[t.noOfPunchInMobile],enableAttendanceRegularization:[t.enableAttendanceRegularization],allowBackdateAttendanceRegularization:[t.allowBackdateAttendanceRegularization],backDaysAttendanceRegularization:[t.backDaysAttendanceRegularization],intervalIdForAttendanceRegularization:[t.intervalIdForAttendanceRegularization],maxAllowedAttendanceRegularization:[t.maxAllowedAttendanceRegularization],enableOutdoorDuty:[t.enableOutdoorDuty],allowBackdateOutdoorDuty:[t.allowBackdateOutdoorDuty],backDaysOutdoorDuty:[t.backDaysOutdoorDuty],outdoorDutyDetails:this._formBuilder.array([this.initOutDoorDuty()]),isWeMeIntegration:[t.isWeMeIntegration],isLocationRequired:[t.isLocationRequired],allowProjectInOnDuty:[t.allowProjectInOnDuty],defineTimeframeForMobileCheckIn:[t.defineTimeframeForMobileCheckIn],mobileCheckInStartTime:[t.mobileCheckInStartTime],mobileCheckInEndTime:[t.mobileCheckInEndTime,[A("webCheckInStartTime")]],defineTimeframeForWebCheckIn:[t.defineTimeframeForWebCheckIn],webCheckInStartTime:[t.webCheckInStartTime],webCheckInEndTime:[t.webCheckInEndTime,[A("webCheckInStartTime")]],enableIPValidation:[t.enableIPValidation],ipAddresses:this._formBuilder.array([this.initIpValidation()]),allowAttendanceRegularizationAfterAttendanceProcess:[t.allowAttendanceRegularizationAfterAttendanceProcess],allowOutdoorDutyAfterAttendanceProcess:[t.allowOutdoorDutyAfterAttendanceProcess],allowAttendanceRegularizationForFuture:[t.allowAttendanceRegularizationForFuture],isSinglePunchRequiredForAttendanceRegularization:[t.isSinglePunchRequiredForAttendanceRegularization],allowAttendanceRegularizationRequestWithinShiftWindow:[t.allowAttendanceRegularizationRequestWithinShiftWindow],isDocumentRequiredForAttendanceRegularization:[t.isDocumentRequiredForAttendanceRegularization],allowOutdoorDutyForFuture:[t.allowOutdoorDutyForFuture],allowOverallOnDutyLimit:[t.allowOverallOnDutyLimit],allowOverallOnDutyLimitForWeekly:[t.allowOverallOnDutyLimitForWeekly],overallOnDutyLimitForWeekly:[t.overallOnDutyLimitForWeekly],allowOverallOnDutyLimitForMonthly:[t.allowOverallOnDutyLimitForMonthly],overallOnDutyLimitForMonthly:[t.overallOnDutyLimitForMonthly],isAdminRestrictedForODLimit:[t.isAdminRestrictedForODLimit],isDocumentRequiredForOnDuty:[t.isDocumentRequiredForOnDuty],isManagerRestrictedForODLimit:[t.isManagerRestrictedForODLimit],allowAttendanceRegularizationRequestOnWhatsapp:[t.allowAttendanceRegularizationRequestOnWhatsapp],allowAttendanceRegularizationRequestOnMicrosoftTeams:[t.allowAttendanceRegularizationRequestOnMicrosoftTeams],isRestrictAttendanceRegularizationOnWeekOff:[t.isRestrictAttendanceRegularizationOnWeekOff],isRestrictAttendanceRegularizationOnHoliday:[t.isRestrictAttendanceRegularizationOnHoliday],allowOnDutyRequestOnWhatsapp:[t.allowOnDutyRequestOnWhatsapp],allowOnDutyRequestOnMicrosoftTeams:[t.allowOnDutyRequestOnMicrosoftTeams],isRestrictOnDutyOnWeekOff:[t.isRestrictOnDutyOnWeekOff],isRestrictOnDutyOnHoliday:[t.isRestrictOnDutyOnHoliday],allowWebCheckInRequestOnWhatsapp:[t.allowWebCheckInRequestOnWhatsapp],allowWebCheckInRequestOnMicrosoftTeams:[t.allowWebCheckInRequestOnMicrosoftTeams],restrictOnlyTempLocationApproval:[t.restrictOnlyTempLocationApproval],specificLocationApprovalDays:[t.specificLocationApprovalDays],isPhotoFacialRequired:[t.isPhotoFacialRequired],allowGeoFencingLiveTracking:[t.allowGeoFencingLiveTracking],isBackdatedAttendanceRegularizationAllowedForManager:[t.isBackdatedAttendanceRegularizationAllowedForManager],backdatedAttendanceRegularizationAllowedDaysForManager:[t.backdatedAttendanceRegularizationAllowedDaysForManager],isBackdatedAttendanceRegularizationAllowedForAdmin:[t.isBackdatedAttendanceRegularizationAllowedForAdmin],backdatedAttendanceRegularizationAllowedDaysForAdmin:[t.backdatedAttendanceRegularizationAllowedDaysForAdmin],isBackdatedOnDutyAllowedForManager:[t.isBackdatedOnDutyAllowedForManager],backdatedOnDutyAllowedDaysForManager:[t.backdatedOnDutyAllowedDaysForManager],isBackdatedOnDutyAllowedForAdmin:[t.isBackdatedOnDutyAllowedForAdmin],backdatedOnDutyAllowedDaysForAdmin:[t.backdatedOnDutyAllowedDaysForAdmin],enableShiftChangeWeekOffRequest:[t.enableShiftChangeWeekOffRequest],allowShiftChangeRequest:[t.allowShiftChangeRequest],allowWeeklyOffChangeRequest:[t.allowWeeklyOffChangeRequest],isSpecificShiftAllowed:[t.isSpecificShiftAllowed],shiftIds:[t.shiftIds.split(",").map(i=>({key:i,value:""}))],enableWeeklyMaximumRequestLimit:[t.enableWeeklyMaximumRequestLimit],maximumRequestLimitInWeek:[t.maximumRequestLimitInWeek],enableMonthlyMaximumRequestLimit:[t.enableMonthlyMaximumRequestLimit],maximumRequestLimitInMonth:[t.maximumRequestLimitInMonth],enableWeeklyMaximumWeeklyOffBalance:[t.enableWeeklyMaximumWeeklyOffBalance],maximumWeeklyWeekOffBalance:[t.maximumWeeklyWeekOffBalance],enableMonthlyMaximumWeeklyOffBalance:[t.enableMonthlyMaximumWeeklyOffBalance],maximumMonthlyWee
1kOffBalance:[t.maximumMonthlyWeekOffBalance],allowedBackdatedRequest:[t.allowedBackdatedRequest],backdatedRequestAllowedDays:[t.backdatedRequestAllowedDays,[c.k0.required,m.qk,c.k0.pattern(_.e.NumericOnlyWithoutZero),c.k0.max(90)]],allowedFuturedatedRequest:[t.allowedFuturedatedRequest],futuredatedRequestAllowedDays:[t.futuredatedRequestAllowedDays,[c.k0.required,m.qk,c.k0.pattern(_.e.NumericOnlyWithoutZero),c.k0.max(90)]],dynamicCheckInCheckoutSetupDetails:this._formBuilder.array([])})}initOutDoorDuty(){return this._formBuilder.group({outdoorDutyMasterId:[],intervalIdForOutdoorDuty:[],maxAllowedOutdoorDuty:[]})}initIpValidation(){return this._formBuilder.group({ipAddress:[""],ipAddressRange:[""]})}modifyToFormModel(t,i=!1){this.resetFormData();const o=this.checkInForm.get("outdoorDutyDetails");for(let r=1;r<t.outdoorDutyDetails.length;r++)o.push(this.initOutDoorDuty());const l=this.checkInForm.get("ipAddresses");for(let r=1;r<t.ipAddresses.length;r++)l.push(this.initIpValidation());if(this.checkInForm.enabled&&this.checkInForm.disable(),t.defineTimeframeForWebCheckIn){const r=new Date,[d,u]=t.webCheckInStartTime.split(":");r.setHours(+d),r.setMinutes(u),t.webCheckInStartTime=r.toString();const p=new Date,[f,h]=t.webCheckInEndTime.split(":");p.setHours(+f),p.setMinutes(h),t.webCheckInEndTime=p.toString()}if(t.defineTimeframeForMobileCheckIn){const r=new Date,[d,u]=t.mobileCheckInStartTime.split(":");r.setHours(+d),r.setMinutes(u),t.mobileCheckInStartTime=r.toString();const p=new Date,[f,h]=t.mobileCheckInEndTime.split(":");p.setHours(+f),p.setMinutes(h),t.mobileCheckInEndTime=p.toString()}if(this.checkInForm.patchValue({inOutPolicyId:t.inOutPolicyId,inOutPolicyName:t.inOutPolicyName,enableTimesheet:t.enableTimesheet,enableWebCheckIn:t.enableWebCheckIn,enableWifiBasedAttendance:t.enableWifiBasedAttendance,webAttendanceType:t.webAttendanceType?t.webAttendanceType:"A",enableMobileCheckIn:t.enableMobileCheckIn,mobileAttendanceType:t.mobileAttendanceType?t.mobileAttendanceType:"A",isPhotoFacialRequired:t.isPhotoFacialRequired,numberOfPhotos:t.numberOfPhotos,allowGeoFencingLiveTracking:t.allowGeoFencingLiveTracking,enableAttendanceRegularization:t.enableAttendanceRegularization,allowBackdateAttendanceRegularization:t.allowBackdateAttendanceRegularization,backDaysAttendanceRegularization:t.backDaysAttendanceRegularization,intervalIdForAttendanceRegularization:t.intervalIdForAttendanceRegularization?t.intervalIdForAttendanceRegularization:null,maxAllowedAttendanceRegularization:t.maxAllowedAttendanceRegularization,enableOutdoorDuty:t.enableOutdoorDuty,allowBackdateOutdoorDuty:t.allowBackdateOutdoorDuty,backDaysOutdoorDuty:t.backDaysOutdoorDuty,outdoorDutyDetails:t.outdoorDutyDetails,isWeMeIntegration:t.isWeMeIntegration,isLocationRequired:t.isLocationRequired,enableNoOfPunchInWeb:t.enableNoOfPunchInWeb,noOfPunchInWeb:t.noOfPunchInWeb,enableNoOfPunchInMobile:t.enableNoOfPunchInMobile,noOfPunchInMobile:t.noOfPunchInMobile,allowProjectInOnDuty:t.allowProjectInOnDuty,defineTimeframeForMobileCheckIn:t.defineTimeframeForMobileCheckIn,mobileCheckInStartTime:new Date(t.mobileCheckInStartTime),mobileCheckInEndTime:new Date(t.mobileCheckInEndTime),defineTimeframeForWebCheckIn:t.defineTimeframeForWebCheckIn,webCheckInStartTime:new Date(t.webCheckInStartTime),webCheckInEndTime:new Date(t.webCheckInEndTime),enableIPValidation:t.enableIPValidation,ipAddresses:t.ipAddresses,allowOutdoorDutyAfterAttendanceProcess:!!t.allowOutdoorDutyAfterAttendanceProcess&&t.allowOutdoorDutyAfterAttendanceProcess,allowAttendanceRegularizationAfterAttendanceProcess:!!t.allowAttendanceRegularizationAfterAttendanceProcess&&t.allowAttendanceRegularizationAfterAttendanceProcess,allowAttendanceRegularizationForFuture:!t||t.allowAttendanceRegularizationForFuture,isSinglePunchRequiredForAttendanceRegularization:!!t&&t.isSinglePunchRequiredForAttendanceRegularization,allowAttendanceRegularizationRequestWithinShiftWindow:!!t&&t.allowAttendanceRegularizationRequestWithinShiftWindow,isDocumentRequiredForAttendanceRegularization:!!t&&t.isDocumentRequiredForAttendanceRegularization,allowOutdoorDutyForFuture:!t||t.allowOutdoorDutyForFuture,allowOverallOnDutyLimit:t.allowOverallOnDutyLimit,allowOverallOnDutyLimitForWeekly:t.allowOverallOnDutyLimitForWeekly,overallOnDutyLimitForWeekly:t.overallOnDutyLimitForWeekly?t.overallOnDutyLimitForWeekly:null,allowOverallOnDutyLimitForMonthly:t.allowOverallOnDutyLimitForMonthly,overallOnDutyLimitForMonthly:t.overallOnDutyLimitForMonthly?t.overallOnDutyLimitForMonthly:null,isManagerRestrictedForODLimit:!t||t.isManagerRestrictedForODLimit,isAdminRestrictedForODLimit:!t||t.isAdminRestrictedForODLimit,isDocumentRequiredForOnDuty:!!t&&t.isDocumentRequiredForOnDuty,allowAttendanceRegularizationRequestOnWhatsapp:!!t.allowAttendanceRegularizationRequestOnWhatsapp&&t.allowAttendanceRegularizationRequestOnWhatsapp,allowAttendanceRegularizationRequestOnMicrosoftTeams:!!t.allowAttendanceRegularizationRequestOnMicrosoftTeams&&t.allowAttendanceRegularizationRequestOnMicrosoftTeams,allowOnDutyRequestOnWhatsapp:!!t.allowOnDutyRequestOnWhatsapp&&t.allowOnDutyRequestOnWhatsapp,allowOnDutyRequestOnMicrosoftTeams:!!t.allowOnDutyRequestOnMicrosoftTeams&&t.allowOnDutyRequestOnMicrosoftTeams,allowWebCheckInRequestOnWhatsapp:!!t.allowWebCheckInRequestOnWhatsapp&&t.allowWebCheckInRequestOnWhatsapp,allowWebCheckInRequestOnMicrosoftTeams:!!t.allowWebCheckInRequestOnMicrosoftTeams&&t.allowWebCheckInRequestOnMicrosoftTeams,restrictOnlyTempLocationApproval:!!t.restrictOnlyTempLocationApproval&&t.restrictOnlyTempLocationApproval,specificLocationApprovalDays:t.specificLocationApprovalDays?t.specificLocationApprovalDays:null,isBackdatedAttendanceRegularizationAllowedForManager:!!t.isBackdatedAttendanceRegularizationAllowedForManager&&t.isBackdatedAttendanceRegularizationAllowedForManager,backdatedAttendanceRegularizationAllowedDaysForManager:t.backdatedAttendanceRegularizationAllowedDaysForManager?t.backdatedAttendanceRegularizationAllowedDaysForManager:0,isBackdatedAttendanceRegularizationAllowedForAdmin:!!t.isBackdatedAttendanceRegularizationAllowedForAdmin&&t.isBackdatedAttendanceRegularizationAllowedForAdmin,backdatedAttendanceRegularizationAllowedDaysForAdmin:t.backdatedAttendanceRegularizationAllowedDaysForAdmin?t.backdatedAttendanceRegularizationAllowedDaysForAdmin:0,isBackdatedOnDutyAllowedForManager:!!t.isBackdatedOnDutyAllowedForManager&&t.isBackdatedOnDutyAllowedForManager,backdatedOnDutyAllowedDaysForManager:t.backdatedOnDutyAllowedDaysForManager?t.backdatedOnDutyAllowedDaysForManager:0,isBackdatedOnDutyAllowedForAdmin:!!t.isBackdatedOnDutyAllowedForAdmin&&t.isBackdatedOnDutyAllowedForAdmin,backdatedOnDutyAllowedDaysForAdmin:t.backdatedOnDutyAllowedDaysForAdmin?t.backdatedOnDutyAllowedDaysForAdmin:0,isRestrictAttendanceRegularizationOnWeekOff:!!t.isRestrictAttendanceRegularizationOnWeekOff&&t.isRestrictAttendanceRegularizationOnWeekOff,isRestrictAttendanceRegularizationOnHoliday:!!t.isRestrictAttendanceRegularizationOnHoliday&&t.isRestrictAttendanceRegularizationOnHoliday,isRestrictOnDutyOnWeekOff:!!t.isRestrictOnDutyOnWeekOff&&t.isRestrictOnDutyOnWeekOff,isRestrictOnDutyOnHoliday:!!t.isRestrictOnDutyOnHoliday&&t.isRestrictOnDutyOnHoliday,enableShiftChangeWeekOffRequest:t.enableShiftChangeWeekOffRequest,allowShiftChangeRequest:t.allowShiftChangeRequest,allowWeeklyOffChangeRequest:t.allowWeeklyOffChangeRequest,isSpecificShiftAllowed:t.isSpecificShiftAllowed,shiftIds:t.shiftIds?this.patchCustomShiftIds(t.shiftIds):"",enableWeeklyMaximumRequestLimit:t.enableWeeklyMaximumRequestLimit,maximumRequestLimitInWeek:t.maximumRequestLimitInWeek,enableMonthlyMaximumRequestLimit:t.enableMonthlyMaximumRequestLimit,maximumRequestLimitInMonth:t.maximumRequestLimitInMonth,enableWeeklyMaximumWeeklyOffBalance:t.enableWeeklyMaximumWeeklyOffBalance,maximumWeeklyWeekOffBalance:t.maximumWeeklyWeekOffBalance,enableMonthlyMaximumWeeklyOffBalance:t.enableMonthlyMaximumWeeklyOffBalance,maximumMonthlyWee
1kOffBalance:t.maximumMonthlyWeekOffBalance,allowedBackdatedRequest:t.allowedBackdatedRequest,backdatedRequestAllowedDays:t.backdatedRequestAllowedDays,allowedFuturedatedRequest:t.allowedFuturedatedRequest,futuredatedRequestAllowedDays:t.futuredatedRequestAllowedDays}),t.applicabilityDetails?.organizationMap?.length&&(this.applicability.selectedOuId=t.applicabilityDetails.organizationKey,this.applicability.selectedOuValuesIds=t.applicabilityDetails.organizationMap.map(r=>r.organizationKey),this.applicability.selectedOu={key:t.applicabilityDetails.organizationKey,value:t.applicabilityDetails.organizationValue},this.applicability.selectedOuValues=5!==t.applicabilityDetails.organizationKey?t.applicabilityDetails.organizationMap.map(r=>({key:r.organizationKey,value:r.organizationValue})):this._shared.setEmployeeNameFromCode(t.employeeDetails)),t.advanceApplicabilityDetails?.organizationMap?.length?(this.advance_applicability.selectedOuId=t.advanceApplicabilityDetails.organizationKey,this.advance_applicability.selectedOuValuesIds=t.advanceApplicabilityDetails.organizationMap.map(r=>r.organizationKey),this.advance_applicability.selectedOu={key:t.advanceApplicabilityDetails.organizationKey,value:t.advanceApplicabilityDetails.organizationValue},this.advance_applicability.selectedOuValues=t.advanceApplicabilityDetails.organizationMap.map(r=>({key:r.organizationKey,value:r.organizationValue}))):this.advance_applicability=(0,C.cloneDeep)(F.dn),this.isOnduty(this.checkInForm.controls.enableOutdoorDuty.value),this.onAR(this.checkInForm.controls.enableAttendanceRegularization.value),t.enableWebCheckIn&&this.restrictedMArkAttendance(t.defineTimeframeForWebCheckIn,"web"),t.enableMobileCheckIn&&this.restrictedMArkAttendance(t.defineTimeframeForMobileCheckIn,"mob"),t.enableOutdoorDuty)for(const r of this.checkInForm.get("outdoorDutyDetails").controls)this.changeLimit(r.value.intervalIdForOutdoorDuty,"maxAllowedOutdoorDuty",999,r,!0);t.enableAttendanceRegularization&&this.changeLimit(t.intervalIdForAttendanceRegularization,"maxAllowedAttendanceRegularization",99,this.checkInForm,!0),i&&(this.checkInForm.disabled&&this.checkInForm.enable(),this.checkInForm.get("inOutPolicyId").setValue("0"),this.checkInForm.get("inOutPolicyName").setValue("Clone from "+t.inOutPolicyName)),t.allowOverallOnDutyLimit&&(this.updateValidations(t.allowOverallOnDutyLimitForWeekly,"W"),this.updateValidations(t.allowOverallOnDutyLimitForMonthly,"M")),this.checkInForm.get("enableIPValidation").value&&this.isIpAddress(!0),1===t.allowGeoFencingLiveTracking&&this.changeTracking(1),t.dyanamicCheckInCheckoutSetupDetails?.length&&this.populateDynamicRequestArray(t.dyanamicCheckInCheckoutSetupDetails)}resetFormData(){this.updateValidations(!1,""),this.checkInForm.reset(new D),this.applicability.selectedOuId=0,this.applicability.selectedOuValuesIds=[],this.advance_applicability.selectedOuId=0,this.advance_applicability.selectedOuValuesIds=[],"0"==this.checkInForm.get("isPhotoFacialRequired").value&&this.photoRequired(0),this.checkInForm.get("enableNoOfPunchInWeb").value||(this.punchAllowed(!1,"web"),this.restrictedMArkAttendance(!1,"web")),this.checkInForm.get("enableNoOfPunchInMobile").value||(this.punchAllowed(!1,"mob"),this.restrictedMArkAttendance(!1,"mob")),this.isOnduty(!1),this.onAR(!1),this.isIpAddress(!1),this.checkInForm.disable&&this.checkInForm.enable();const t=this.checkInForm.get("outdoorDutyDetails");for(let l=t.controls.length-1;l>0;l--)t.removeAt(l);const i=this.checkInForm.get("ipAddresses");for(let l=i.controls.length-1;l>0;l--)i.removeAt(l);this.checkInForm.get("dynamicCheckInCheckoutSetupDetails").clear()}createCheckInPolicy(){return new Promise(t=>{this._progressButton.clicked(0);const i=this.modifyToRequestModel();this._httpService[this.checkInForm.value.inOutPolicyId>0?"Put":"Post"]("/api/timeoffice/setting/checkin-checkout",i).subscribe(r=>{this._progressButton.finished(0,"SAVE",r.validationType),"0"===r.validationType?(this.display_form=!1,this.getAllCheckInCards(!0),this.getCheckInCards(!1,this.isFilterApplied,this.filterReqData),t(!0)):t(!1),this._snackbar.Alert(r.message,r.validationType)},r=>{this._progressButton.finished(0,"SAVE","3"),t(!1)})})}modifyToRequestModel(){const t=this.checkInForm.getRawValue(),i=this.applicability.selectedOuValues.map(d=>({organizationKey:d.key,organizationValue:d.value})),o=this.advance_applicability.selectedOuValues.map(d=>({organizationKey:d.key,organizationValue:d.value})),l=t.outdoorDutyDetails;l.forEach(d=>{d.outdoorDutyMasterId=d.outdoorDutyMasterId?d.outdoorDutyMasterId:0,d.outdoorDutyMasterName=d.outdoorDutyMasterId?this.dutyTypeList?.find(u=>u.onDutyMasterId==d.outdoorDutyMasterId)?.onDutyName??"":""});const r={inOutPolicyId:t.inOutPolicyId?t.inOutPolicyId:0,inOutPolicyName:t.inOutPolicyName,enableTimesheet:t.enableTimesheet,enableBiometric:t.enableBiometric,enableWebCheckIn:t.enableWebCheckIn,enableWifiBasedAttendance:t.enableWifiBasedAttendance,webAttendanceType:t.webAttendanceType,enableMobileCheckIn:t.enableMobileCheckIn,mobileAttendanceType:t.enableMobileCheckIn?t.mobileAttendanceType:"",isPhotoRequired:t.isPhotoRequired,numberOfPhotos:t.numberOfPhotos?t.numberOfPhotos:0,allowGeoFencing:t.allowGeoFencing,enableAttendanceRegularization:t.enableAttendanceRegularization,allowBackdateAttendanceRegularization:t.allowBackdateAttendanceRegularization,backDaysAttendanceRegularization:t.backDaysAttendanceRegularization?t.backDaysAttendanceRegularization:0,intervalIdForAttendanceRegularization:t.intervalIdForAttendanceRegularization?t.intervalIdForAttendanceRegularization:0,maxAllowedAttendanceRegularization:t.maxAllowedAttendanceRegularization?t.maxAllowedAttendanceRegularization:0,enableOutdoorDuty:t.enableOutdoorDuty,allowBackdateOutdoorDuty:t.allowBackdateOutdoorDuty,backDaysOutdoorDuty:t.backDaysOutdoorDuty,outdoorDutyDetails:l,isWeMeIntegration:t.isWeMeIntegration,isLocationRequired:t.isLocationRequired,enableNoOfPunchInWeb:t.enableNoOfPunchInWeb,noOfPunchInWeb:t.noOfPunchInWeb,enableNoOfPunchInMobile:!!t.enableMobileCheckIn&&t.enableNoOfPunchInMobile,noOfPunchInMobile:t.enableMobileCheckIn?t.noOfPunchInMobile:null,allowProjectInOnDuty:t.allowProjectInOnDuty,defineTimeframeForMobileCheckIn:!!t.enableMobileCheckIn&&t.defineTimeframeForMobileCheckIn,mobileCheckInStartTime:t.enableMobileCheckIn&&t.defineTimeframeForMobileCheckIn?k()(t.mobileCheckInStartTime).format("HH:mm"):"",mobileCheckInEndTime:t.enableMobileCheckIn&&t.defineTimeframeForMobileCheckIn?k()(t.mobileCheckInEndTime).format("HH:mm"):"",defineTimeframeForWebCheckIn:t.defineTimeframeForWebCheckIn,webCheckInStartTime:k()(t.webCheckInStartTime).format("HH:mm"),webCheckInEndTime:k()(t.webCheckInEndTime).format("HH:mm"),enableIPValidation:t.enableIPValidation,ipAddresses:t.ipAddresses,allowAttendanceRegularizationAfterAttendanceProcess:t.allowAttendanceRegularizationAfterAttendanceProcess,allowOutdoorDutyAfterAttendanceProcess:t.allowOutdoorDutyAfterAttendanceProcess,allowAttendanceRegularizationForFuture:t.allowAttendanceRegularizationForFuture,isSinglePunchRequiredForAttendanceRegularization:t.isSinglePunchRequiredForAttendanceRegularization,allowAttendanceRegularizationRequestWithinShiftWindow:t.allowAttendanceRegularizationRequestWithinShiftWindow,isDocumentRequiredForAttendanceRegularization:t.isDocumentRequiredForAttendanceRegularization,allowOutdoorDutyForFuture:t.allowOutdoorDutyForFuture,allowOverallOnDutyLimit:t.allowOverallOnDutyLimit,allowOverallOnDutyLimitForWeekly:t.allowOverallOnDutyLimitForWeekly,allowOverallOnDutyLimitForMonthly:t.allowOverallOnDutyLimitForMonthly,overallOnDutyLimitForWeekly:t.overallOnDutyLimitForWeekly?t.overallOnDutyLimitForWeekly:0,overallOnDutyLimitForMonthly:t.overallOnDutyLimitForMonthly?t.overallOnDutyLimitForMonthly:0,isManagerRestrictedForODLimit:t.isManagerRestrictedForODLimit,isAdminRestrictedForODLimit:t.isAdminRestrictedForODLimit,isDocumentRequiredForOnDuty:t.isDocumentRequiredForOnDuty,allowAttendanceRegularizationRequestOnWhatsapp:t.allowAttendanceRegularizationRequestOnWhatsapp,allowAttendanceRegularizationRequestOnMicrosoftTeams:t.allowAttendanceRegularizationRequestOnMicrosoftTeams,allowOnDutyRequestOnWhatsapp:t.allowOnDutyRequestOnWhatsapp,allowOnDutyRequestOnMicrosoftTeams:t.allowOnDutyRequestOnMicrosoftTeams,allowWebCheckInRequestOnWhatsapp:t.allowWebCheckInRequestOnWhatsapp,allowWebCheckInRequestOnMicrosoftTeams:t.allowWebCheckInRequestOnMicrosoftTeams,restrictOnlyTempLocationApproval:t.restrictOnlyTempLocationApproval,specificLocationApprovalDays:t.specificLocationApprovalDays,isPhotoFacialRequired:t.isPhotoFacialRequired,allowGeoFencingLiveTracking:t.allowGeoFencingLiveTracking,isBackdatedAttendanceRegularizationAllowedForManager:t.isBackdatedAttendanceRegularizationAllowedForManager,backdatedAttendanceRegularizationAllowedDaysForManager:t.backdatedAttendanceRegularizationAllowedDaysForManager,isBackdatedAttendanceRegularizationAllowedForAdmin:t.isBackdatedAttendanceRegularizationAllowedForAdmin,backdatedAttendanceRegularizationAllowedDaysForAdmin:t.backdatedAttendanceRegularizationAllowedDaysForAdmin,isBackdatedOnDutyAllowedForManager:t.isBackdatedOnDutyAllowedForManager,backdatedOnDutyAllowedDaysForManager:t.backdatedOnDutyAllowedDaysForManager,isBackdatedOnDutyAllowedForAdmin:t.isBackdatedOnDutyAllowedForAdmin,backdatedOnDutyAllowedDaysForAdmin:t.backdatedOnDutyAllowedDaysForAdmin,isRestrictAttendanceRegularizationOnWeekOff:t.isRestrictAttendanceRegularizationOnWeekOff,isRestrictAttendanceRegularizationOnHoliday:t.isRestrictAttendanceRegularizationOnHoliday,isRestrictOnDutyOnWeekOff:t.isRestrictOnDutyOnWeekOff,isRestrictOnDutyOnHoliday:t.isRestrictOnDutyOnHoliday,enableShiftChangeWeekOffRequest:t.enableShiftChangeWeekOffRequest,allowShiftChangeRequest:t.allowShiftChangeRequest,allowWeeklyOffChangeRequest:t.allowWeeklyOffChangeRequest,isSpecificShiftAllowed:t.isSpecificShiftAllowed,shiftIds:t.shiftIds.length?t.shiftIds.map(d=>d.key).toString():"",shiftNames:t.shiftIds.length?t.shiftIds.map(d=>d.value).toString():"",enableWeeklyMaximumRequestLimit:t.enableWeeklyMaximumRequestLimit,maximumRequestLimitInWeek:Number(t.maximumRequestLimitInWeek),enableMonthlyMaximumRequestLimit:t.enableMonthlyMaximumRequestLimit,maximumRequestLimitInMonth:Number(t.maximumRequestLimitInMonth),enableWeeklyMaximumWeeklyOffBalance:t.enableWeeklyMaximumWeeklyOffBalance,maximumWeeklyWeekOffBalance:Number(t.maximumWeeklyWeekOffBalance),enableMonthlyMaximumWeeklyOffBalance:t.enableMonthlyMaximumWeeklyOffBalance,maximumMonthlyWee
1kOffBalance:Number(t.maximumMonthlyWeekOffBalance),allowedBackdatedRequest:t.allowedBackdatedRequest,backdatedRequestAllowedDays:Number(t.backdatedRequestAllowedDays),allowedFuturedatedRequest:t.allowedFuturedatedRequest,futuredatedRequestAllowedDays:Number(t.futuredatedRequestAllowedDays),dyanamicCheckInCheckoutSetupDetails:(t.dynamicCheckInCheckoutSetupDetails??[]).map(d=>({checkInCheckoutSettingId:d.checkInCheckoutSettingId,checkInCheckoutSettingName:d.checkInCheckoutSettingName,settingType:d.settingType,allowForEmployee:d.allowForEmployee,employeeControlValue:d.employeeControlValue,allowForManager:d.allowForManager,managerControlValue:d.managerControlValue,allowForAdmin:d.allowForAdmin,adminControlValue:d.adminControlValue})),applicabilityDetails:{organizationKey:this.applicability.selectedOu.key?this.applicability.selectedOu.key:0,organizationValue:this.applicability.selectedOu.value?this.applicability.selectedOu.value:"",organizationMap:i},advanceApplicabilityDetails:{organizationKey:this.advance_applicability.selectedOu.key?this.advance_applicability.selectedOu.key:0,organizationValue:this.advance_applicability.selectedOu.value?this.advance_applicability.selectedOu.value:"",organizationMap:o}};return r.isLocationRequired||(r.allowGeoFencing=!1,r.allowGeoFencingLiveTracking=0),r}getDynamicRequestSettings(){this._httpService.Get("/api/timeoffice/setting/checkin-checkout/Dynamic/Setup").subscribe(i=>{i&&this.populateDynamicRequestArray(i)})}populateDynamicRequestArray(t){const i=this.checkInForm.get("dynamicCheckInCheckoutSetupDetails");i.clear();for(const o of t)i.push(this._formBuilder.group({checkInCheckoutSettingId:[o.checkInCheckoutSettingId,[]],checkInCheckoutSettingName:[o.checkInCheckoutSettingName,[]],settingType:[o.settingType,[]],description:[o.description,[]],enableControlForEmployee:[o.enableControlForEmployee,[]],allowForEmployee:[o.allowForEmployee,[]],employeeControlType:[o.employeeControlType,[]],employeeControlValueType:[o.employeeControlValueType,[]],employeeControlMaximumCharacterLimit:[o.employeeControlMaximumCharacterLimit,[]],employeeControlMaximumValue:[o.employeeControlMaximumValue,[]],employeeControlValue:[o.employeeControlValue,[]],enableControlForManager:[o.enableControlForManager,[]],allowForManager:[o.allowForManager,[]],managerControlType:[o.managerControlType,[]],managerControlValueType:[o.managerControlValueType,[]],managerControlMaximumCharacterLimit:[o.managerControlMaximumCharacterLimit,[]],managerControlMaximumValue:[o.managerControlMaximumValue,[]],managerControlValue:[o.managerControlValue,[]],enableControlForAdmin:[o.enableControlForAdmin,[]],allowForAdmin:[o.allowForAdmin,[]],adminControlType:[o.adminControlType,[]],adminControlValueType:[o.adminControlValueType,[]],adminControlMaximumCharacterLimit:[o.adminControlMaximumCharacterLimit,[]],adminControlMaximumValue:[o.adminControlMaximumValue,[]],adminControlValue:[o.adminControlValue,[]],isActive:[o.isActive,[]]}))}addOnDuty(){this.checkInForm.get("outdoorDutyDetails").push(this.initOutDoorDuty()),this.isOnduty(this.checkInForm.controls.enableOutdoorDuty.value)}removeOnDuty(t){this.checkInForm.get("outdoorDutyDetails").removeAt(t),this.isOnduty(this.checkInForm.controls.enableOutdoorDuty.value)}isOnduty(t){t?(this.checkInForm.controls.outdoorDutyDetails.controls.forEach(i=>{i.get("outdoorDutyMasterId").setValidators([m.qk]),i.get("outdoorDutyMasterId").updateValueAndValidity(),i.get("intervalIdForOutdoorDuty").setValidators([m.qk]),i.get("intervalIdForOutdoorDuty").updateValueAndValidity(),i.get("maxAllowedOutdoorDuty").setValidators([m.qk,c.k0.min(1),c.k0.max(999),c.k0.pattern(_.e.NumericOnly)]),i.get("maxAllowedOutdoorDuty").updateValueAndValidity()}),this.checkInForm.get("allowBackdateOutdoorDuty").value&&this.checkInForm.controls.backDaysOutdoorDuty.setValidators([m.qk,c.k0.max(90),c.k0.min(1),c.k0.pattern(_.e.NumericOnly)]),this.checkInForm.get("isBackdatedOnDutyAllowedForManager").value&&this.checkInForm.controls.backdatedOnDutyAllowedDaysForManager.setValidators([m.qk,c.k0.max(90),c.k0.min(1),c.k0.pattern(_.e.NumericOnly)]),this.checkInForm.get("isBackdatedOnDutyAllowedForAdmin").value&&this.checkInForm.controls.backdatedOnDutyAllowedDaysForAdmin.setValidators([m.qk,c.k0.max(90),c.k0.min(1),c.k0.pattern(_.e.NumericOnly)])):(this.checkInForm.controls.outdoorDutyDetails.controls.forEac
1h(i=>{i.get("outdoorDutyMasterId").clearValidators(),i.get("outdoorDutyMasterId").updateValueAndValidity(),i.get("intervalIdForOutdoorDuty").clearValidators(),i.get("intervalIdForOutdoorDuty").updateValueAndValidity(),i.get("maxAllowedOutdoorDuty").clearValidators(),i.get("maxAllowedOutdoorDuty").updateValueAndValidity()}),this.checkInForm.controls.backDaysOutdoorDuty.clearValidators(),this.checkInForm.controls.backdatedOnDutyAllowedDaysForAdmin.clearValidators(),this.checkInForm.controls.backdatedOnDutyAllowedDaysForManager.clearValidators(),this.checkInForm.controls.isRestrictOnDutyOnWeekOff.setValue(!1),this.checkInForm.controls.isRestrictOnDutyOnWeekOff.updateValueAndValidity(),this.checkInForm.controls.isRestrictOnDutyOnHoliday.setValue(!1),this.checkInForm.controls.isRestrictOnDutyOnHoliday.updateValueAndValidity()),this.checkInForm.controls.backdatedOnDutyAllowedDaysForManager.updateValueAndValidity(),this.checkInForm.controls.backdatedOnDutyAllowedDaysForAdmin.updateValueAndValidity(),this.checkInForm.controls.backDaysOutdoorDuty.updateValueAndValidity()}photoRequired(t){"1"==t?(this.checkInForm.controls.numberOfPhotos.setValidators([m.qk]),this.checkInForm.controls.numberOfPhotos.updateValueAndValidity()):(this.checkInForm.controls.numberOfPhotos.clearValidators(),this.checkInForm.controls.numberOfPhotos.updateValueAndValidity())}accessPermissions(){const t=this._shared.rawMenusWithActions.filter(i=>"checkinpolicy_148"===i.navigationCode);this.rights.view=t.findIndex(i=>342===i.accessRightId)>=0,this.rights.create=t.findIndex(i=>343===i.accessRightId)>=0,this.rights.update=t.findIndex(i=>344===i.accessRightId)>=0,this.rights.inactive=t.findIndex(i=>345===i.accessRightId)>=0}getOnDutyType(t){this._httpService.Get(`/api/timeoffice/setting/OnDuty/${t}`).subscribe(o=>{this.dutyTypeList=o})}onAR(t){t?(this.checkInForm.controls.intervalIdForAttendanceRegularization.setValidators([c.k0.required]),this.checkInForm.controls.intervalIdForAttendanceRegularization.updateValueAndValidity(),this.checkInForm.controls.maxAllowedAttendanceRegularization.setValidators([c.k0.required,
1c.k0.max(99),c.k0.pattern(_.e.NumericOnly)]),this.checkInForm.controls.maxAllowedAttendanceRegularization.updateValueAndValidity(),this.checkInForm.get("allowBackdateAttendanceRegularization").value&&this.backDatedODAndARChanged(!0,"backDaysAttendanceRegularization"),this.checkInForm.get("isBackdatedAttendanceRegularizationAllowedForManager").value&&this.backDatedODAndARChanged(!0,"backdatedAttendanceRegularizationAllowedDaysForManager"),this.checkInForm.get("isBackdatedAttendanceRegularizationAllowedForAdmin").value&&this.backDatedODAndARChanged(!0,"backdatedAttendanceRegularizationAllowedDaysForAdmin")):(this.checkInForm.controls.intervalIdForAttendanceRegularization.clearValidators(),this.checkInForm.controls.intervalIdForAttendanceRegularization.updateValueAndValidity(),this.checkInForm.controls.maxAllowedAttendanceRegularization.clearValidators(),this.checkInForm.controls.maxAllowedAttendanceRegularization.updateValueAndValidity(),this.checkInForm.controls.isRestrictAttendanceRegularizationOnWeekOff.setValue(!1),this.checkInForm.controls.isRestrictAttendanceRegularizationOnWeekOff.updateValueAndValidity(),this.checkInForm.controls.isRestrictAttendanceRegularizationOnHoliday.setValue(!1),this.checkInForm.controls.isRestrictAttendanceRegularizationOnHoliday.updateValueAndValidity(),this.backDatedODAndARChanged(!1,"backDaysAttendanceRegularization"),this.backDatedODAndARChanged(!1,"backdatedAttendanceRegularizationAllowedDaysForManager"),this.backDatedODAndARChanged(!1,"backdatedAttendanceRegularizationAllowedDaysForAdmin"))}backDatedODAndARChanged(t,i){t?this.checkInForm.controls[i].setValidators([c.k0.required,
1c.k0.max(90),c.k0.min(1),c.k0.pattern(_.e.NumericOnly)]):(this.checkInForm.controls[i].clearValidators(),this.checkInForm.controls[i].setValue(0)),this.checkInForm.controls[i].updateValueAndValidity()}punchAllowed(t,i){"web"==i?t?(this.checkInForm.controls.noOfPunchInWeb.setValidators([c.k0.required]),this.checkInForm.controls.noOfPunchInWeb.updateValueAndValidity()):(this.checkInForm.controls.noOfPunchInWeb.clearValidators(),this.checkInForm.controls.noOfPunchInWeb.updateValueAndValidity()):t?(this.checkInForm.controls.noOfPunchInMobile.setValidators([c.k0.required]),this.checkInForm.controls.noOfPunchInMobile.updateValueAndValidity()):(this.checkInForm.controls.noOfPunchInMobile.clearValidators(),this.checkInForm.controls.noOfPunchInMobile.updateValueAndValidity())}restrictedMArkAttendance(t,i){"web"==i?t?(this.checkInForm.controls.webCheckInStartTime.setValidators([c.k0.required]),this.checkInForm.controls.webCheckInStartTime.updateValueAndValidity(),this.checkInForm.controls.webCheckInEndTime.setValidators([c.k0.required,A("webCheckInStartTime")]),this.checkInForm.controls.webCheckInEndTime.updateValueAndValidity()):(this.checkInForm.controls.webCheckInStartTime.clearValidators(),this.checkInForm.controls.webCheckInStartTime.updateValueAndValidity(),this.checkInForm.controls.webCheckInEndTime.clearValidators(),this.checkInForm.controls.webCheckInEndTime.updateValueAndValidity()):t?(this.checkInForm.controls.mobileCheckInStartTime.setValidators([c.k0.required]),this.checkInForm.controls.mobileCheckInStartTime.updateValueAndValidity(),this.checkInForm.controls.mobileCheckInEndTime.setValidators([c.k0.required,A("mobileCheckInStartTime")]),this.checkInForm.controls.mobileCheckInEndTime.updateValueAndValidity()):(this.checkInForm.controls.mobileCheckInStartTime.clearValidators(),this.checkInForm.controls.mobileCheckInStartTime.updateValueAndValidity(),this.checkInForm.controls.mobileCheckInEndTime.clearValidators(),this.checkInForm.controls.mobileCheckInEndTime.updateValueAndValidity())}onChangeDate(){this.checkInForm.controls.webCheckInEndTime.updateValueAndValidity(),this.checkInForm.controls.mobileCheckInEndTime.updateValueAndValidity()}remove(t){this.checkInForm.enable&&(this.checkInForm.get("ipAddresses").removeAt(t),this.isIpAddress(this.checkInForm.controls.enableIPValidation.value))}add(){this.checkInForm.enable&&(this.checkInForm.get("ipAddresses").push(this.initIpValidation()),this.isIpAddress(this.checkInForm.controls.enableIPValidation.value))}isIpAddress(t){this.checkInForm.controls.ipAddresses.controls.forEach(t?i=>{i.get("ipAddress").setValidators([m.qk,c.k0.pattern(_.e.IPAddress)]),i.get("ipAddress").updateValueAndValidity(),i.get("ipAddressRange").setValidators([c.k0.pattern(_.e.IPAddress)]),i.get("ipAddressRange").updateValueAndValidity()}:i=>{i.get("ipAddress").clearValidators(),i.get("ipAddress").updateValueAndValidity(),i.get("ipAddressRange").clearValidators(),i.get("ipAddressRange").updateValueAndValidity()})}updateValidations(t,i){switch(i){case"M":t?this.checkInForm.get("overallOnDutyLimitForMonthly").setValidators(this.validatorsArray):(this.checkInForm.get("overallOnDutyLimitForMonthly").setValue(null),this.checkInForm.get("overallOnDutyLimitForMonthly").clearValidators());break;case"W":t?this.checkInForm.get("overallOnDutyLimitForWeekly").setValidators(this.validatorsArray):(this.checkInForm.get("overallOnDutyLimitForWeekly").setValue(null),this.checkInForm.get("overallOnDutyLimitForWeekly").clearValidators());break;default:this.checkInForm.get("overallOnDutyLimitForMonthly").setValue(null),this.checkInForm.get("overallOnDutyLimitForMonthly").clearValidators(),this.checkInForm.get("overallOnDutyLimitForWeekly").setValue(null),this.checkInForm.get("overallOnDutyLimitForWeekly").clearValidators()}this.checkInForm.get("overallOnDutyLimitForWeekly").updateValueAndValidity(),this.checkInForm.get("overallOnDutyLimitForMonthly").updateValueAndValidity()}changeLimit(t,i,o,l,r){50===t?(l.get(i).setValue(o),l.get(i).clearValidators()):(r||l.get(i).setValue(null),l.get(i).setValidators(this.validatorsArray)),l.get(i).updateV
1alueAndValidity()}changeTracking(t){1===t?this.checkInForm.get("specificLocationApprovalDays").setValidators([c.k0.required,c.k0.pattern(_.e.NumericOnly),m.se]):(this.checkInForm.get("specificLocationApprovalDays").clearValidators(),this.checkInForm.get("specificLocationApprovalDays").setValue(90),this.checkInForm.get("restrictOnlyTempLocationApproval").setValue(!1)),2===t&&this.checkInForm.get("enableNoOfPunchInMobile").setValue(!1),this.checkInForm.get("specificLocationApprovalDays").updateValueAndValidity(),this.punchAllowed(!1,"mob")}locationChange(t){t?(this.checkInForm.get("allowGeoFencingLiveTracking").setValue(0),this.checkInForm.get("allowGeoFencingLiveTracking").updateValueAndValidity()):this.changeTracking(0)}toggleChangeShiftAndWeekOff(){this.checkInForm.patchValue({allowShiftChangeRequest:!1,allowWeeklyOffChangeRequest:!1,isSpecificShiftAllowed:!1,shiftIds:[],enableWeeklyMaximumRequestLimit:!1,maximumRequestLimitInWeek:0,enableMonthlyMaximumRequestLimit:!1,maximumRequestLimitInMonth:0,enableWeeklyMaximumWeeklyOffBalance:!1,maximumWeeklyWeekOffBalance:0,enableMonthlyMaximumWeeklyOffBalance:!1,maximumMonthlyWeekOffBalance:0,allowedBackdatedRequest:!0,backdatedRequestAllowedDays:30,allowedFuturedatedRequest:!0,futuredatedRequestAllowedDays:30});const t=["shiftIds","maximumRequestLimitInWeek","maximumRequestLimitInMonth","maximumWeeklyWeekOffBalance","maximumMonthlyWeekOffBalance"];for(const i of t)this.checkInForm.get(i).clearValidators(),this.checkInForm.get(i).updateValueAndValidity()}toggleShiftOrWeekOff(t,i){const o=this.checkInForm;switch(i){case"S":o.get("isSpecificShiftAllowed").setValue(!1),o.get("shiftIds").setValue([]),o.get("shiftIds").clearValidators(),o.get("shiftIds").updateValueAndValidity(),!o.get("allowWeeklyOffChangeRequest").value&&!t&&this.toggleChangeShiftAndWeekOff();break;case"W":o.get("enableWeeklyMaximumWeeklyOffBalance").setValue(!1),o.get("enableMonthlyMaximumWeeklyOffBalance").setValue(!1);for(const l of["maximumWeeklyWeekOffBalance","maximumMonthlyWeekOffBalance"])o.get(l).setValue(0),o.get(l).clearValidators(),o.get(l).updateValueAndValidity();!o.get("allowShiftChangeRequest").value&&!t&&this.toggleChangeShiftAndWeekOff()}}selectCustomShiftsChange(t,i=!1){const o=this.checkInForm.get("shiftIds");i||o.setValue([]),t?o.setValidators([c.k0.required]):o.clearValidators(),o.updateValueAndValidity()}setUnsetNumberValidation(t,i,o=!1){let l=o?[m.qk,m.se,c.k0.pattern(_.e.afterDecimal0or5)]:[m.qk,c.k0.pattern(_.e.NumericOnlyWithoutZero)];("backdatedRequestAllowedDays"===i||"futuredatedRequestAllowedDays"===i)&&(l=[...l,c.k0.max(90)]),"maximumWeeklyWeekOffBalance"===i&&(l=[...l,c.k0.max(7)]),"maximumMonthlyWeekOffBalance"===i&&(l=[...l,c.k0.max(31)]);const r=this.checkInForm.get(i);r.setValue(null),t?r.setValidators(l):r.clearValidators(),r.updateValueAndValidity()}setValidationOfShiftWeekOffChange(t){this.selectCustomShiftsChange(t.isSpecificShiftAllowed,!0);const i={enableWeeklyMaximumRequestLimit:"maximumRequestLimitInWeek",enableMonthlyMaximumRequestLimit:"maximumRequestLimitInMonth",allowedBackdatedRequest:"backdatedRequestAllowedDays",allowedFuturedatedRequest:"futuredatedRequestAllowedDays"};for(const o in i)this.setUnsetNumberValidation(t[o],i[o]);this.setUnsetNumberValidation(t.enableWeeklyMaximumWeeklyOffBalance,"maximumWeeklyWeekOffBalance",!0),this.setUnsetNumberValidation(t.enableMonthlyMaximumWeeklyOffBalance,"maximumMonthlyWeekOffBalance",!0)}getShiftDropDowns(){this.shiftDropDown.length||this._httpService.Post("/api/timeoffice/setting/shift/Search",{shiftIds:"",activeStatus:"1",pagination:{pageNumber:0,pageSize:0}}).subscribe(i=>{this.shiftDropDown=i.map(o=>({value:o.shiftName,key:o.shiftId}))})}shouldShowRequestStep(){return this.checkInForm?.get("enableAttendanceRegularization")?.value||this.checkInForm?.get("enableOutdoorDuty")?.value}patchCustomShiftIds(t){const i=t.split(",").map(Number);return this.shiftDropDown.filter(o=>i.includes(o.key))}static{this.\u0275fac=function(i){return new(i||n)(e.KVO(x.k),e.KVO(c.ze),e.KVO(R.r),e.KVO(ge.J),e.KVO(M.d))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})();function A(n){return a=>{if(a?.parent)try{const t=a.parent.get(n).value,i=a.value;if(t&&i){const o=t.getTime();
1if(i.getTime()<o)return{invalidTime:!0}}}catch{return null}return null}}var ke=s(9121),ve=s(66763),be=s(18897),ye=s(4518),V=s(19887),Oe=s(65061),Fe=s(44685),xe=s(95531),T=s(97327),re=s(89727);let ce=(()=>{class n{constructor(t){this._service=t}selectData(t){this._service.advance_applicability.selectedOu=t.selectedOu,this._service.advance_applicability.selectedOuValues=t.selectedOuValues}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-to-ccs-advance-applicability"]],decls:2,vars:2,consts:[[2,"height","calc(100vh - 162px)","padding-right","20px"],[3,"selectData","selectedOuId","selectedOuValuesIds"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"app-ou-advance-applicability",1),e.bIt("selectData",function(r){return o.selectData(r)}),e.k0s()()),2&i&&(e.R7$(),e.Y8G("selectedOuId",o._service.advance_applicability.selectedOuId)("selectedOuValuesIds",o._service.advance_applicability.selectedOuValuesIds))},dependencies:[re.Z],encapsulation:2})}}return n})();var se=s(11185);const Re=()=>[6,10];let de=(()=>{class n{constructor(t){this._service=t}selectData(t){this._service.applicability.selectedOu=t.selectedOu,this._service.applicability.selectedOuValues=t.selectedOuValues}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-to-ccs-applicability"]],decls:2,vars:5,consts:[[2,"height","calc(100vh - 162px)","padding-right","20px"],[3,"selectData","hiddenOus","selectedOuId","selectedOuValuesIds","employeeList"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"app-ou-applicability",1),e.bIt("selectData",function(r){return o.selectData(r)}),e.k0s()()),2&i&&(e.R7$(),e.Y8G("hiddenOus",e.lJ4(4,Re))("selectedOuId",o._service.applicability.selectedOuId)("selectedOuValuesIds",o._service.applicability.selectedOuValuesIds)("employeeList",o._service.applicabEmpList))},dependencies:[se.L],encapsulation:2})}}return n})();var G=s(63422),Me=s(43613),q=s(81066),I=s(86498),v=s(75092);function Ie(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.JRh(t._service._shared.validationMessages.required)}}function we(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.JRh(t._service._shared.validationMessages.required)}}function De(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6).$implicit,i=e.XpG(2);e.R7$(),e.JRh(0==t.controls.employeeControlValue.value?i._service._shared.validationMessages.zeroOnlyNotAllowed:i._service._shared.validationMessages.numericOnly)}}function Ae(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(8);e.R7$(),e.JRh(t._service._shared.validationMessages.numericDecimal)}}function Te(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(8);e.R7$(),e.JRh(t._service._shared.validationMessages.allowedCharacters)}}function Pe(n,a){if(1&n&&e.DNE(0,De,2,1,"span")(1,Ae,2,1,"span")(2,Te,2,1,"span"),2&n){const t=e.XpG(5).$implicit;e.vxM("numeric"===t.controls.employeeControlValueType.value?0:"decimal"===t.controls.employeeControlValueType.value?1:2)}}function Se(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5).$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i._service._shared.validationMessages.maxNumberLength," ",t.controls.employeeControlMaximumValue.value,"")}}function Ee(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Ie,2,1,"span")(2,we,2,1,"span")(3,Pe,3,1)(4,Se,2,2,"span"),e.k0s()),2&n){const t=e.XpG(4).$implicit;e.R7$(),e.vxM(null!=t.controls.employeeControlValue.errors&&t.controls.employeeControlValue.errors.required?1:-1),e.R7$(),e.vxM(null!=t.controls.employeeControlValue.errors&&t.controls.employeeControlValue.errors.mandatoryField?2:-1),e.R7$(),e.vxM(null!=t.controls.employeeControlValue.errors&&t.controls.employeeControlValue.errors.pattern?3:-1),e.R7$(),e.vxM(null!=t.controls.employeeControlValue.errors&&t.controls.employeeControlValue.errors.max?4:-1)}}function je(n,a){if(1&n&&(e.j41(0,"div",8)(1,"mat-form-field")(2,"mat-label"),e.EFF(3,"Employee Value"),e.k0s(),e.nrm(4,"input",15),e.DNE(5,Ee,5,4,"mat-error"),e.k0s()()),2&n){const t=e.XpG(3).$implicit,i=e.XpG(2);
1e.R7$(4),e.Y8G("disabled",i.isReview)("maxlength",t.controls.employeeControlMaximumCharacterLimit.value),e.R7$(),e.vxM(t.controls.employeeControlValue.invalid&&(t.controls.employeeControlValue.dirty||t.controls.employeeControlValue.touched)?5:-1)}}function Ne(n,a){if(1&n&&(e.j41(0,"div",8)(1,"mat-radio-group",16)(2,"mat-radio-button",17),e.EFF(3,"Yes"),e.k0s(),e.j41(4,"mat-radio-button",18),e.EFF(5,"No"),e.k0s()()()),2&n){const t=e.XpG(3).$index,i=e.XpG(2);e.R7$(),e.Y8G("disabled",i.isReview),e.R7$(),e.Y8G("value",!0),e.BMQ("data-testid","employee-control-value-yes-"+(t+1)+"-radio"),e.R7$(2),e.Y8G("value",!1),e.BMQ("data-testid","employee-control-value-no-"+(t+1)+"-radio")}}function $e(n,a){if(1&n&&e.DNE(0,je,6,3,"div",8)(1,Ne,6,5,"div",8),2&n){const t=e.XpG(2).$implicit;e.vxM("textbox"===t.controls.employeeControlType.value?0:-1),e.R7$(),e.vxM("radio"===t.controls.employeeControlType.value?1:-1)}}function Ve(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.JRh(t._service._shared.validationMessages.required)}}function Ge(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.JRh(t._service._shared.validationMessages.required)}}function qe(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6).$implicit,i=e.XpG(2);e.R7$(),e.JRh(0==t.controls.managerControlValue.value?i._service._shared.validationMessages.zeroOnlyNotAllowed:i._service._shared.validationMessages.numericOnly)}}function ze(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(8);e.R7$(),e.JRh(t._service._shared.validationMessages.numericDecimal)}}function We(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(8);e.R7$(),e.JRh(t._service._shared.validationMessages.allowedCharacters)}}function Le(n,a){if(1&n&&e.DNE(0,qe,2,1,"span")(1,ze,2,1,"span")(2,We,2,1,"span"),2&n){const t=e.XpG(5).$implicit;e.vxM("numeric"===t.controls.managerControlValueType.value?0:"decimal"===t.controls.managerControlValueType.value?1:2)}}function Xe(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5).$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i._service._shared.validationMessages.maxNumberLength," ",t.controls.managerControlMaximumValue.value,"")}}function Be(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Ve,2,1,"span")(2,Ge,2,1,"span")(3,Le,3,1)(4,Xe,2,2,"span"),e.k0s()),2&n){const t=e.XpG(4).$implicit;e.R7$(),e.vxM(null!=t.controls.managerControlValue.errors&&t.controls.managerControlValue.errors.required?1:-1),e.R7$(),e.vxM(null!=t.controls.managerControlValue.errors&&t.controls.managerControlValue.errors.mandatoryField?2:-1),e.R7$(),e.vxM(null!=t.controls.managerControlValue.errors&&t.controls.managerControlValue.errors.pattern?3:-1),e.R7$(),e.vxM(null!=t.controls.managerControlValue.errors&&t.controls.managerControlValue.errors.max?4:-1)}}function Ye(n,a){if(1&n&&(e.j41(0,"div",8)(1,"mat-form-field")(2,"mat-label"),e.EFF(3,"Manager Value"),e.k0s(),e.nrm(4,"input",19),e.DNE(5,Be,5,4,"mat-error"),e.k0s()()),2&n){const t=e.XpG(3).$implicit,i=e.XpG(2);e.R7$(4),e.Y8G("disabled",i.isReview)("maxlength",t.controls.managerControlMaximumCharacterLimit.value),e.R7$(),e.vxM(t.controls.managerControlValue.invalid&&(t.controls.managerControlValue.dirty||t.controls.managerControlValue.touched)?5:-1)}}function He(n,a){if(1&n&&(e.j41(0,"div",8)(1,"mat-radio-group",20)(2,"mat-radio-button",17),e.EFF(3,"Yes"),e.k0s(),e.j41(4,"mat-radio-button",18),e.EFF(5,"No"),e.k0s()()()),2&n){const t=e.XpG(3).$index,i=e.XpG(2);e.R7$(),e.Y8G("disabled",i.isReview),e.R7$(),e.Y8G("value",!0),e.BMQ("data-testid","manager-control-value-yes-"+(t+1)+"-radio"),e.R7$(2),e.Y8G("value",!1),e.BMQ("data-testid","manager-control-value-no-"+(t+1)+"-radio")}}function Je(n,a){if(1&n&&e.DNE(0,Ye,6,3,"div",8)(1,He,6,5,"div",8),2&n){const t=e.XpG(2).$implicit;e.vxM("textbox"===t.controls.managerControlType.value?0:-1),e.R7$(),e.vxM("radio"===t.controls.managerControlType.value?1:-1)}}function Ue(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.JRh(t._service._shared.validationMessages.required)}}function Ke(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);
1e.R7$(),e.JRh(t._service._shared.validationMessages.required)}}function Ze(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6).$implicit,i=e.XpG(2);e.R7$(),e.JRh(0==t.controls.adminControlValue.value?i._service._shared.validationMessages.zeroOnlyNotAllowed:i._service._shared.validationMessages.numericOnly)}}function Qe(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(8);e.R7$(),e.JRh(t._service._shared.validationMessages.numericDecimal)}}function et(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(8);e.R7$(),e.JRh(t._service._shared.validationMessages.allowedCharacters)}}function tt(n,a){if(1&n&&e.DNE(0,Ze,2,1,"span")(1,Qe,2,1,"span")(2,et,2,1,"span"),2&n){const t=e.XpG(5).$implicit;e.vxM("numeric"===t.controls.adminControlValueType.value?0:"decimal"===t.controls.adminControlValueType.value?1:2)}}function nt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5).$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i._service._shared.validationMessages.maxNumberLength," ",t.controls.adminControlMaximumValue.value,"")}}function it(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Ue,2,1,"span")(2,Ke,2,1,"span")(3,tt,3,1)(4,nt,2,2,"span"),e.k0s()),2&n){const t=e.XpG(4).$implicit;e.R7$(),e.vxM(null!=t.controls.adminControlValue.errors&&t.controls.adminControlValue.errors.required?1:-1),e.R7$(),e.vxM(null!=t.controls.adminControlValue.errors&&t.controls.adminControlValue.errors.mandatoryField?2:-1),e.R7$(),e.vxM(null!=t.controls.adminControlValue.errors&&t.controls.adminControlValue.errors.pattern?3:-1),e.R7$(),e.vxM(null!=t.controls.adminControlValue.errors&&t.controls.adminControlValue.errors.max?4:-1)}}function ot(n,a){if(1&n&&(e.j41(0,"div",8)(1,"mat-form-field")(2,"mat-label"),e.EFF(3,"HR Value"),e.k0s(),e.nrm(4,"input",21),e.DNE(5,it,5,4,"mat-error"),e.k0s()()),2&n){const t=e.XpG(3).$implicit,i=e.XpG(2);e.R7$(4),e.Y8G("disabled",i.isReview)("maxlength",t.controls.adminControlMaximumCharacterLimit.value),e.R7$(),e.vxM(t.controls.adminControlValue.invalid&&(t.controls.adminControlValue.dirty||t.controls.adminControlValue.touched)?5:-1)}}function at(n,a){if(1&n&&(e.j41(0,"div",8)(1,"mat-radio-group",22)(2,"mat-radio-button",17),e.EFF(3,"Yes"),e.k0s(),e.j41(4,"mat-radio-button",18),e.EFF(5,"No"),e.k0s()()()),2&n){const t=e.XpG(3).$index,i=e.XpG(2);e.R7$(),e.Y8G("disabled",i.isReview),e.R7$(),e.Y8G("value",!0),e.BMQ("data-testid","admin-control-value-yes-"+(t+1)+"-radio"),e.R7$(2),e.Y8G("value",!1),e.BMQ("data-testid","admin-control-value-no-"+(t+1)+"-radio")}}function lt(n,a){if(1&n&&e.DNE(0,ot,6,3,"div",8)(1,at,6,5,"div",8),2&n){const t=e.XpG(2).$implicit;e.vxM("textbox"===t.controls.adminControlType.value?0:-1),e.R7$(),e.vxM("radio"===t.controls.adminControlType.value?1:-1)}}function rt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",7)(1,"div",8)(2,"span",9)(3,"strong"),e.EFF(4),e.k0s()()(),e.j41(5,"div",10)(6,"div",11)(7,"mat-checkbox",12),e.bIt("change",function(){e.eBV(t);const o=e.XpG().$index,l=e.XpG(2);return e.Njj(l.onCheckboxChange(o,"employee"))}),e.EFF(8," Employee "),e.k0s(),e.DNE(9,$e,2,2),e.k0s(),e.j41(10,"div",11)(11,"mat-checkbox",13),e.bIt("change",function(){e.eBV(t);const o=e.XpG().$index,l=e.XpG(2);return e.Njj(l.onCheckboxChange(o,"manager"))}),e.EFF(12," Manager "),e.k0s(),e.DNE(13,Je,2,2),e.k0s(),e.j41(14,"div",11)(15,"mat-checkbox",14),e.bIt("change",function(){e.eBV(t);const o=e.XpG().$index,l=e.XpG(2);return e.Njj(l.onCheckboxChange(o,"admin"))}),e.EFF(16," HR "),e.k0s(),e.DNE(17,lt,2,2),e.k0s()()()}if(2&n){const t=e.XpG(),i=t.$implicit,o=t.$index,l=e.XpG(2);e.Y8G("formGroupName",o),e.R7$(4),e.JRh(i.controls.description.value),e.R7$(3),e.Y8G("disabled",l.isReview),e.BMQ("data-testid","allow-for-employee-"+(o+1)+"-checkbox"),e.R7$(2),e.vxM(i.controls.allowForEmployee.value&&i.controls.employeeControlType.value?9:-1),e.R7$(2),e.Y8G("disabled",l.isReview),e.BMQ("data-testid","allow-for-manager-"+(o+1)+"-checkbox"),e.R7$(2),e.vxM(i.controls.allowForManager.value&&i.controls.managerControlType.value?13:-1),e.R7$(2),e.Y8G("disabled",l.isReview),e.BMQ("data-testid","allow-for-admin-"+(o+1)+"-checkbox"),e.R7$(2),e.vxM(i.controls.allowForAdmin.value&&i.controls.adminControlType.value?17:-1)}}function ct(n,a){if(1&n&&e.DNE(0,rt,18,11,"div",7),2&n){const t=a.$implicit,i=e.XpG(2);e.vxM(i.shouldShowSetting(t.controls.settingType.value)?0:-1)}}function st(n,a){if(1&n&&e.Z7z(0,ct,1,1,null,null,e.fX1),2&n){const t=e.XpG();e.Dyx(t.requestArray.controls)}}function dt(n,a){1&n&&(e.j41(0,"div",6),e.EFF(1,"No request settings available."),e.k0s())}let z=(()=>{class n{constructor(t,i){this._service=t,this._shared=i,this.isReview=!1}ngOnInit(){this.setupInitialValidations()}ngOnChanges(){this.isReview?this.requestArray.disable():this.requestArray.enable()}get requestArray(){return this._service.checkInForm?.get("dynamicCheckInCheckoutSetupDetails")}onCheckboxChange(t,i){const o=this.requestArray.at(t),l=o.get(`allowFor${i.charAt(0).toUpperCase()+i.slice(1)}`)?.value,r=o.get(`${i}ControlType`)?.value,d=o.get(`${i}ControlValueType`)?.value,u=o.get(`${i}ControlValue`),p=o.get(`${i}
1ControlMaximumValue`)?.value,f=o.get(`${i}ControlMaximumCharacterLimit`)?.value;if(u){if(l&&"textbox"===r){const h=[c.k0.required,m.qk];h.push(c.k0.pattern("numeric"===d?_.e.NumericOnlyWithoutZero:"decimal"===d?_.e.decimalNonZero:_.e.allowedCharacters)),("numeric"===d||"decimal"===d)&&p&&!isNaN(Number(p))&&h.push(c.k0.max(Number(p))),f&&!isNaN(Number(f))&&h.push(c.k0.maxLength(Number(f))),u.setValidators(h)}else u.clearValidators();u.updateValueAndValidity()}}setupInitialValidations(){if(this.requestArray)for(let t=0;t<this.requestArray.length;t++)this.onCheckboxChange(t,"employee"),this.onCheckboxChange(t,"manager"),this.onCheckboxChange(t,"admin")}shouldShowSetting(t){return 1===t?this._service.checkInForm?.get("enableAttendanceRegularization")?.value||!1:2===t&&this._service.checkInForm?.get("enableOutdoorDuty")?.value||!1}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g),e.rXU(M.d))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-to-ccs-request"]],inputs:{isReview:"isReview"},features:[e.OA$],decls:8,vars:2,consts:[[1,"container-fluid","p-0"],[1,"row"],[1,"col-12"],[1,"card-body"],[1,"advance-request-container",3,"formGroup"],["formArrayName","dynamicCheckInCheckoutSetupDetails"],[1,"text-muted"],[1,"mb-4",3,"formGroupName"],[1,"mb-2"],[1,"cstm-label","form-label","cls-fontsize-inherit"],[1,"d-flex"],[1,"mb-2","max-w25","card-min-w200","m-r-15"],["formControlName","allowForEmployee",3,"change","disabled"],["formControlName","allowForManager",3,"change","disabled"],["formControlName","allowForAdmin",3,"change","disabled"],["matInput","","formControlName","employeeControlValue",3,"disabled","maxlength"],["formControlName","employeeControlValue",3,"disabled"],[1,"m-r-20",3,"value"],[3,"value"],["matInput","","formControlName","managerControlValue",3,"disabled","maxlength"],["formControlName","managerControlValue",3,"disabled"],["matInput","","formControlName","adminControlValue",3,"disabled","maxlength"],["formControlName","adminControlValue",3,"disabled"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),e.DNE(6,st,2,0)(7,dt,2,0,"div",6),e.k0s()()()()()()),2&i&&(e.R7$(4),e.Y8G("formGroup",o._service.checkInForm),e.R7$(2),e.vxM(o.requestArray&&o.requestArray.length>0?6:7))},dependencies:[c.X1,c.me,c.BC,c.cb,c.tU,c.j4,c.JD,c.$R,c.v8,G.g7,G.So,Me.M,v.j,v.M,v.b,q.fS,q.fg,I.Wk,I.VT,I._g],encapsulation:2})}}return n})();var w=s(53986),_t=s(71985),mt=s(18020),ut=s(81644),pt=s(57825),ht=s(51137),Ct=s(2110),_e=s(22100),me=s(49983);const W=()=>({key:1,value:"1"}),L=()=>({key:2,value:"2"}),X=(n,a)=>[n,a],ft=()=>({width:"350px"}),ue=n=>({mandatoryField:n}),gt=(n,a)=>({"m-b-10":n,"m-b-16":a});function kt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function vt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t._shared.validationMessages.allowedCharacters," ")}}function bt(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,kt,2,1,"span")(2,vt,2,1,"span"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.vxM(t._service.checkInForm.get("inOutPolicyName").hasError("mandatory")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("inOutPolicyName").hasError("pattern")?2:-1)}}function yt(n,a){1&n&&(e.j41(0,"div",22),e.nrm(1,"app-hrone-select",45),e.k0s()),2&n&&(e.R7$(),e.Y8G("options",e.l_i(5,X,e.lJ4(3,W),e.lJ4(4,L)))("required",!0)("onlyKey",!0))}function Ot(n,a){1&n&&(e.j41(0,"div",30),e.EFF(1," Allow punch between "),e.k0s())}function Ft(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function xt(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," start time should be smaller than end time "),e.k0s())}function Rt(n,a){if(1&n&&(e.j41(0,"div",48),e.DNE(1,Ft,2,1,"span")(2,xt,2,0,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("webCheckInStartTime").hasError("required")?1:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("webCheckInStartTime").hasError("required")&&t._service.checkInForm.get("webCheckInStartTime").hasError("invalidTime")?2:-1)}}function Mt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"mat-label",46),e.EFF(2,"Start time"),e.k0s(),e.j41(3,"p-datepicker",47),e.bIt("onInput",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o._service.onChangeDate())})("onSelect",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o._service.onChangeDate())}),e.k0s(),e.DNE(4,Rt,3,2,"div",48),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(3),e.Y8G("timeOnly",!0),e.R7$(),e.vxM(t._service.checkInForm.get("webCheckInStartTime").dirty||t._service.checkInForm.get("webCheckInStartTime").touched?4:-1)}}function It(n,a){1&n&&(e.j41(0,"div",32),e.EFF(1," & "),e.k0s())}function wt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Dt(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," start time should be smaller than end time "),e.k0s())}function At(n,a){if(1&n&&(e.j41(0,"div",50),e.DNE(1,wt,2,1,"span")(2,Dt,2,0,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("webCheckInEndTime").hasError("required")?1:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("webCheckInEndTime").hasError("required")&&t._service.checkInForm.get("webCheckInEndTime").hasError("invalidTime")?2:-1)}}function Tt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",33)(1,"mat-label",46),e.EFF(2,"End time"),e.k0s(),e.j41(3,"p-datepicker",49),e.bIt("onInput",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o._service.onChangeDate())})("onSelect",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o._service.onChangeDate())}),e.k0s(),e.DNE(4,At,3,2,"div",50),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(3),e.Y8G("timeOnly",!0),e.R7$(),e.vxM(t._service.checkInForm.get("webCheckInEndTime").dirty||t._service.checkInForm.get("webCheckInEndTime").touched?4:-1)}}function Pt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.ipAddressInvalid," ")}}function St(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Et(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Pt,2,1,"span")(2,St,2,1,"span"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.vxM(t.controls.ipAddress.hasError("pattern")?1:-1),e.R7$(),e.vxM(t.controls.ipAddress.hasError("mandatory")?2:-1)}}function jt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.ipAddressInvalid," ")}}function Nt(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,jt,2,1,"span"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.vxM(t.controls.ipAddressRange.hasError("pattern")?1:-1)}}function $t(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",59)(1,"button",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$index,l=e.XpG(4);return e.Njj(l._service.remove(o))}),e.nrm(2,"i",62),e.k0s()()}if(2&n){const t=e.XpG(5);e.R7$(),e.Y8G("disabled",t._service.checkInForm.disabled)}}function Vt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",60)(1,"button",63),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$index,l=e.XpG(4);return e.Njj(l._service.add(o))}),e.nrm(2,"i",64),e.k0s()()}if(2&n){const t=e.XpG(5);e.R7$(),e.Y8G("disabled",t._service.checkInForm.disabled)}}function Gt(n,a){if(1&n&&(e.j41(0,"div",51)(1,"div",52)(2,"div",53)(3,"mat-form-field",54)(4,"mat-label"),e.EFF(5,"From"),e.k0s(),e.nrm(6,"textarea",55),e.DNE(7,Et,3,2,"mat-error"),e.k0s(),e.j41(8,"mat-form-field",56)(9,"mat-label"),e.EFF(10,"To"),e.k0s(),e.nrm(11,"textarea",57),e.DNE(12,Nt,2,1,"mat-error"),e.k0s()(),e.j41(13,"div",58),e.DNE(14,$t,3,1,"div",59)(15,Vt,3,1,"div",60),e.k0s()()()),2&n){const t=a.$implicit,i=a.$index,o=a.$count,l=e.XpG(4);e.R7$(),e.Y8G("formGroupName",i),e.R7$(6),e.vxM(t.controls.ipAddress.dirty||t.controls.ipAddress.touched?7:-1),e.R7$(5),e.vxM(t.controls.ipAddressRange.dirty||t.controls.ipAddressRange.touched?12:-1),e.R7$(2),e.vxM((null==l._service.checkInForm.controls.ipAddresses.controls?null:l._service.checkInForm.controls.ipAddresses.controls.length)>1?14:-1),e.R7$(),e.vxM(i===o-1?15:-1)}}function qt(n,a){if(1&n&&(e.j41(0,"div"),e.Z7z(1,Gt,16,5,"div",51,e.fX1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Dyx(t._service.checkInForm.controls.ipAddresses.controls)}}function zt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",11)(1,"div",16)(2,"p",17),e.EFF(3,"Set maximum punches allowed?"),e.k0s(),e.j41(4,"div",18)(5,"mat-radio-group",19),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.punchAllowed(o.value,"web"))}),e.j41(6,"mat-radio-button",20),e.EFF(7,"Yes "),e.k0s(),e.j41(8,"mat-radio-button",21),e.EFF(9,"No"),e.k0s()()(),e.DNE(10,yt,2,8,"div",22),e.k0s(),e.j41(11,"div",16)(12,"div",23)(13,"p",6),e.EFF(14,"Do you want to restrict employee to only mark attendance in a defined window? "),e.k0s()(),e.j41(15,"div",24)(16,"mat-radio-group",25),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);
1return e.Njj(l._service.restrictedMArkAttendance(o.value,"web"))}),e.j41(17,"mat-radio-button",26),e.EFF(18,"Yes "),e.k0s(),e.j41(19,"mat-radio-button",27),e.EFF(20,"No"),e.k0s()()()(),e.j41(21,"div",16)(22,"div",28)(23,"div",29),e.DNE(24,Ot,2,0,"div",30)(25,Mt,5,2,"div",31)(26,It,2,0,"div",32)(27,Tt,5,2,"div",33),e.k0s()()(),e.j41(28,"div")(29,"p",34),e.EFF(30,"Do you want to enable IP validation?"),e.k0s(),e.j41(31,"div",35)(32,"mat-radio-group",36),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.isIpAddress(o.value))}),e.j41(33,"mat-radio-button",37),e.EFF(34,"Yes "),e.k0s(),e.j41(35,"mat-radio-button",38),e.EFF(36,"No"),e.k0s()()(),e.DNE(37,qt,3,0,"div"),e.k0s(),e.j41(38,"p",34),e.EFF(39,"Do you want to allow to web-checkin request from whatsapp?"),e.k0s(),e.j41(40,"div",35)(41,"mat-radio-group",39)(42,"mat-radio-button",40),e.EFF(43,"Yes "),e.k0s(),e.j41(44,"mat-radio-button",41),e.EFF(45,"No"),e.k0s()()(),e.j41(46,"p",34),e.EFF(47,"Do you want to allow to web-checkin request from teams?"),e.k0s(),e.j41(48,"div",35)(49,"mat-radio-group",42)(50,"mat-radio-button",43),e.EFF(51,"Yes "),e.k0s(),e.j41(52,"mat-radio-button",44),e.EFF(53,"No"),e.k0s()()()()}if(2&n){const t=e.XpG(2);e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("enableNoOfPunchInWeb").value?10:-1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(5),e.vxM(t._service.checkInForm.get("defineTimeframeForWebCheckIn").value?24:-1),e.R7$(),e.vxM(t._service.checkInForm.get("defineTimeframeForWebCheckIn").value?25:-1),e.R7$(),e.vxM(t._service.checkInForm.get("defineTimeframeForWebCheckIn").value?26:-1),e.R7$(),e.vxM(t._service.checkInForm.get("defineTimeframeForWebCheckIn").value?27:-1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("enableIPValidation").value?37:-1),e.R7$(5),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1)}}function Wt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"mat-checkbox",15),e.bIt("change",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l.isWebCheckIn(o.checked))}),e.EFF(2,"Web check-in "),e.k0s(),e.DNE(3,zt,54,26,"div",11),e.k0s()}if(2&n){const t=e.XpG();e.R7$(3),e.vxM(t._service.checkInForm.get("enableWebCheckIn").value?3:-1)}}function Lt(n,a){1&n&&(e.j41(0,"mat-radio-button",79),e.EFF(1,"Facial"),e.k0s()),2&n&&e.Y8G("disableRipple",!0)("value",2)}function Xt(n,a){1&n&&(e.j41(0,"div",22),e.nrm(1,"app-hrone-select",80),e.k0s()),2&n&&(e.R7$(),e.Y8G("options",e.l_i(5,X,e.lJ4(3,W),e.lJ4(4,L)))("required",!0)("onlyKey",!0))}function Bt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",16)(1,"div",23)(2,"p",74),e.EFF(3,"Please select in case you want to capture photograph while marking attendance?"),e.k0s()(),e.j41(4,"div",75)(5,"mat-radio-group",76),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.photoRequired(o.value))}),e.j41(6,"mat-radio-button",77),e.EFF(7,"None "),e.k0s(),e.j41(8,"mat-radio-button",78),e.EFF(9,"Photo"),e.k0s(),e.DNE(10,Lt,2,2,"mat-radio-button",79),e.k0s()(),e.DNE(11,Xt,2,8,"div",22),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(6),e.Y8G("disableRipple",!0)("value",0),e.R7$(2),e.Y8G("disableRipple",!0)("value",1),e.R7$(2),e.vxM(t._service.isAddOnFeatureAvailable?10:-1),e.R7$(),e.vxM("1"==t._service.checkInForm.get("isPhotoFacialRequired").value?11:-1)}}function Yt(n,a){1&n&&(e.j41(0,"mat-radio-button",85),e.EFF(1,"Continuous location tracking"),e.k0s()),2&n&&e.Y8G("disableRipple",!0)("value",2)}function Ht(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Jt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function Ut(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.zeroOnlyNotAllowed," ")}}function Kt(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Ht,2,1,"span")(2,Jt,2,1,"span")(3,Ut,2,1,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("specificLocationApprovalDays").hasError("required")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("specificLocationApprovalDays").hasError("pattern")?2:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("specificLocationApprovalDays").hasError("zeroOnlyError")||t._service.checkInForm.get("specificLocationApprovalDays").hasError("required")||t._service.checkInForm.get("specificLocationApprovalDays").hasError("pattern")?-1:3)}}function Zt(n,a){if(1&n&&(e.j41(0,"p",86)(1,"span",6),e.EFF(2,"Do you want employee work location (geo location) should be only approved for a specific period?"),e.k0s(),e.j41(3,"figure",87),e.nrm(4,"img",88),e.k0s()(),e.j41(5,"div",70)(6,"mat-radio-group",89)(7,"mat-radio-button",90),e.EFF(8,"Yes "),e.k0s(),e.j41(9,"mat-radio-button",91),e.EFF(10,"No"),e.k0s()()(),e.j41(11,"p",92),e.EFF(12,"In case of temporary approval of locations, for how many maximum days can the location approval be requested?"),e.k0s(),e.j41(13,"div",93)(14,"mat-form-field",94)(15,"mat-label"),e.EFF(16,"No of days"),e.k0s(),e.nrm(17,"input",95),e.DNE(18,Kt,4,3,"mat-error"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(9),e.vxM(t._service.checkInForm.get("specificLocationApprovalDays").dirty||t._service.checkInForm.get("specificLocationApprovalDays").touched?18:-1)}}function Qt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",16)(1,"p",69),e.EFF(2,"Please select the advanced location tracking setting?"),e.k0s(),e.j41(3,"div",70)(4,"mat-radio-group",81),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.changeTracking(o.value))}),e.j41(5,"mat-radio-button",82),e.EFF(6,"None "),e.k0s(),e.j41(7,"mat-radio-button",83),e.EFF(8,"Radius based"),e.k0s(),e.j41(9,"mat-radio-button",84),e.EFF(10,"Polygon based"),e.k0s(),e.DNE(11,Yt,2,2,"mat-radio-button",85),e.k0s()(),e.DNE(12,Zt,19,5),e.k0s()}if(2&n){const t=e.XpG(2);e.R7$(5),e.Y8G("disableRipple",!0)("value",0),e.R7$(2),e.Y8G("disableRipple",!0)("value",1),e.R7$(2),e.Y8G("disableRipple",!0)("value",3),e.R7$(2),e.vxM(t._service.isLocationTrackingAvailable?11:-1),e.R7$(),e.vxM(1===t._service.checkInForm.get("allowGeoFencingLiveTracking").value?12:-1)}}function en(n,a){1&n&&(e.j41(0,"div",22),e.nrm(1,"app-hrone-select",100),e.k0s()),2&n&&(e.R7$(),e.Y8G("options",e.l_i(5,X,e.lJ4(3,W),e.lJ4(4,L)))("required",!0)("onlyKey",!0))}function tn(n,a){if(1&n){const t=e.RV6();e.j41(0,"p",92),e.EFF(1,"Set maximum punches allowed?"),e.k0s(),e.j41(2,"div",18)(3,"mat-radio-group",97),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.punchAllowed(o.value,"mob"))}),e.j41(4,"mat-radio-button",98),e.EFF(5,"Yes "),e.k0s(),e.j41(6,"mat-radio-button",99),e.EFF(7,"No"),e.k0s()()(),e.DNE(8,en,2,8,"div",22)}if(2&n){const t=e.XpG(3);e.R7$(4),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("enableNoOfPunchInMobile").value?8:-1)}}function nn(n,a){1&n&&(e.j41(0,"div",30),e.EFF(1," Allow punch between "),e.k0s())}function on(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function an(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," start time should be smaller than end time "),e.k0s())}function ln(n,a){if(1&n&&(e.j41(0,"div",48),e.DNE(1,on,2,1,"span")(2,an,2,0,"span"),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.vxM(t._service.checkInForm.get("mobileCheckInStartTime").hasError("required")?1:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("mobileCheckInStartTime").hasError("required")&&t._service.checkInForm.get("mobileCheckInStartTime").hasError("invalidTime")?2:-1)}}function rn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"mat-label",46),e.EFF(2,"Start time"),e.k0s(),e.j41(3,"p-datepicker",105),e.bIt("onInput",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o._service.onChangeDate())})("onSelect",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o._service.onChangeDate())}),e.k0s(),e.DNE(4,ln,3,2,"div",48),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(3),e.Y8G("timeOnly",!0),e.R7$(),e.vxM(t._service.checkInForm.get("mobileCheckInStartTime").dirty||t._service.checkInForm.get("mobileCheckInStartTime").touched?4:-1)}}function cn(n,a){1&n&&(e.j41(0,"div",32),e.EFF(1," & "),e.k0s())}function sn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function dn(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," start time should be smaller than end time "),e.k0s())}function _n(n,a){if(1&n&&(e.j41(0,"div",107),e.DNE(1,sn,2,1,"span")(2,dn,2,0,"span"),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.vxM(t._service.checkInForm.get("mobileCheckInEndTime").hasError("required")?1:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("mobileCheckInEndTime").hasError("required")&&t._service.checkInForm.get("mobileCheckInEndTime").hasError("invalidTime")?2:-1)}}function mn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",104)(1,"mat-label",46),e.EFF(2,"End time"),e.k0s(),e.j41(3,"p-datepicker",106),e.bIt("onInput",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o._service.onChangeDate())})("onSelect",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o._service.onChangeDate())}),e.k0s(),e.DNE(4,_n,3,2,"div",107),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(3),e.Y8G("timeOnly",!0),e.R7$(),e.vxM(t._service.checkInForm.get("mobileCheckInEndTime").dirty||t._service.checkInForm.get("mobileCheckInEndTime").touched?4:-1)}}function un(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",16)(1,"div",23)(2,"p",6),e.EFF(3,"Do you want to restrict employee to only mark attendance in a defined window? "),e.k0s()(),e.j41(4,"div",24)(5,"mat-radio-group",101),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);
1return e.Njj(l._service.restrictedMArkAttendance(o.value,"mob"))}),e.j41(6,"mat-radio-button",102),e.EFF(7,"Yes "),e.k0s(),e.j41(8,"mat-radio-button",103),e.EFF(9,"No"),e.k0s()()()(),e.j41(10,"div",16)(11,"div",28)(12,"div",29),e.DNE(13,nn,2,0,"div",30)(14,rn,5,2,"div",31)(15,cn,2,0,"div",32)(16,mn,5,2,"div",104),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(5),e.vxM(t._service.checkInForm.get("defineTimeframeForMobileCheckIn").value?13:-1),e.R7$(),e.vxM(t._service.checkInForm.get("defineTimeframeForMobileCheckIn").value?14:-1),e.R7$(),e.vxM(t._service.checkInForm.get("defineTimeframeForMobileCheckIn").value?15:-1),e.R7$(),e.vxM(t._service.checkInForm.get("defineTimeframeForMobileCheckIn").value?16:-1)}}function pn(n,a){if(1&n&&(e.j41(0,"div",96),e.DNE(1,tn,9,5),e.k0s(),e.DNE(2,un,17,8)),2&n){const t=e.XpG(2);e.R7$(),e.vxM(2!==t._service.checkInForm.get("allowGeoFencingLiveTracking").value?1:-1),e.R7$(),e.vxM(2!==t._service.checkInForm.get("allowGeoFencingLiveTracking").value?2:-1)}}function hn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",11)(1,"div",65)(2,"div",66)(3,"mat-radio-group",67)(4,"mat-radio-button",68),e.EFF(5,"Mark attendance "),e.k0s()()()(),e.DNE(6,Bt,12,6,"div",16),e.j41(7,"div",16)(8,"p",69),e.EFF(9,"Please select in case you want to capture location while marking attendance?"),e.k0s(),e.j41(10,"div",70)(11,"mat-radio-group",71),e.bIt("change",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l._service.locationChange(o.value))}),e.j41(12,"mat-radio-button",72),e.EFF(13,"Yes "),e.k0s(),e.j41(14,"mat-radio-button",73),e.EFF(15,"No"),e.k0s()()()(),e.DNE(16,Qt,13,8,"div",16)(17,pn,3,2),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("hidden",!0),e.R7$(3),e.Y8G("disableRipple",!0),e.R7$(2),e.vxM(t._service.isAdvanceSettings?6:-1),e.R7$(6),e.Y8G("disableRipple",!0)("value",t.booleanFlag.true),e.R7$(2),e.Y8G("disableRipple",!0)("value",t.booleanFlag.false),e.R7$(2),e.vxM(t._service.checkInForm.get("isLocationRequired").value?16:-1),e.R7$(),e.vxM(t._service.isAdvanceSettings?17:-1)}}function Cn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function fn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 90")}}function gn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.numericOnly)}}function kn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.minNumberLength," 1")}}function vn(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Cn,2,1,"span")(2,fn,2,1,"span")(3,gn,2,1,"span")(4,kn,2,1,"span"),e.k0s()),2&n){let t,i,o,l;const r=e.XpG(3);e.R7$(),e.vxM(null!=(t=r._service.checkInForm.get("backDaysAttendanceRegularization"))&&t.hasError("required")?1:-1),e.R7$(),e.vxM(null!=(i=r._service.checkInForm.get("backDaysAttendanceRegularization"))&&i.hasError("max")?2:-1),e.R7$(),e.vxM(null!=(o=r._service.checkInForm.get("backDaysAttendanceRegularization"))&&o.hasError("required")||null==(o=r._service.checkInForm.get("backDaysAttendanceRegularization"))||!o.hasError("pattern")?-1:3),e.R7$(),e.vxM(null!=(l=r._service.checkInForm.get("backDaysAttendanceRegularization"))&&l.hasError("pattern")||null==(l=r._service.checkInForm.get("backDaysAttendanceRegularization"))||!l.hasError("min")?-1:4)}}function bn(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",133)(2,"mat-form-field",134)(3,"mat-label"),e.EFF(4,"Days"),e.k0s(),e.nrm(5,"input",135),e.DNE(6,vn,5,4,"mat-error"),e.k0s()()()),2&n){let t;const i=e.XpG(2);e.R7$(6),e.vxM(null!=(t=i._service.checkInForm.get("backDaysAttendanceRegularization"))&&t.dirty||null!=(t=i._service.checkInForm.get("backDaysAttendanceRegularization"))&&t.touched?6:-1)}}function yn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function On(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 90")}}function Fn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.numericOnly)}}function xn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.minNumberLength," 1")}}function Rn(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,yn,2,1,"span")(2,On,2,1,"span")(3,Fn,2,1,"span")(4,xn,2,1,"span"),e.k0s()),2&n){let t,i,o,l;const r=e.XpG(3);e.R7$(),e.vxM(null!=(t=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))&&t.hasError("required")?1:-1),e.R7$(),e.vxM(null!=(i=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))&&i.hasError("max")?2:-1),e.R7$(),e.vxM(null!=(o=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))&&o.hasError("required")||null==(o=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))||!o.hasError("pattern")?-1:3),e.R7$(),e.vxM(null!=(l=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))&&l.hasError("pattern")||null==(l=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))||!l.hasError("min")?-1:4)}}function Mn(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",133)(2,"mat-form-field",134)(3,"mat-label"),e.EFF(4,"Days"),e.k0s(),e.nrm(5,"input",136),e.DNE(6,Rn,5,4,"mat-error"),e.k0s()()()),2&n){let t;const i=e.XpG(2);e.R7$(6),e.vxM(null!=(t=i._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))&&t.dirty||null!=(t=i._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForManager"))&&t.touched?6:-1)}}function In(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function wn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 90")}}function Dn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.numericOnly)}}function An(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.minNumberLength," 1")}}function Tn(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,In,2,1,"span")(2,wn,2,1,"span")(3,Dn,2,1,"span")(4,An,2,1,"span"),e.k0s()),2&n){let t,i,o,l;const r=e.XpG(3);e.R7$(),e.vxM(null!=(t=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))&&t.hasError("required")?1:-1),e.R7$(),e.vxM(null!=(i=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))&&i.hasError("max")?2:-1),e.R7$(),e.vxM(null!=(o=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))&&o.hasError("required")||null==(o=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))||!o.hasError("pattern")?-1:3),e.R7$(),e.vxM(null!=(l=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))&&l.hasError("pattern")||null==(l=r._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))||!l.hasError("min")?-1:4)}}function Pn(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",133)(2,"mat-form-field",134)(3,"mat-label"),e.EFF(4,"Days"),e.k0s(),e.nrm(5,"input",137),e.DNE(6,Tn,5,4,"mat-error"),e.k0s()()()),2&n){let t;const i=e.XpG(2);e.R7$(6),e.vxM(null!=(t=i._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))&&t.dirty||null!=(t=i._service.checkInForm.get("backdatedAttendanceRegularizationAllowedDaysForAdmin"))&&t.touched?6:-1)}}function Sn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function En(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 99")}}function jn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t._shared.validationMessages.numericOnly)}}function Nn(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Sn,2,1,"span")(2,En,2,1,"span")(3,jn,2,1,"span"),e.k0s()),2&n){let t,i,o;const l=e.XpG(3);e.R7$(),e.vxM(null!=(t=l._service.checkInForm.get("maxAllowedAttendanceRegularization"))&&t.hasError("required")?1:-1),e.R7$(),e.vxM(null!=(i=l._service.checkInForm.get("maxAllowedAttendanceRegularization"))&&i.hasError("max")?2:-1),e.R7$(),e.vxM(null!=(o=l._service.checkInForm.get("maxAllowedAttendanceRegularization"))&&o.hasError("pattern")?3:-1)}}function $n(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",133)(2,"mat-form-field",94)(3,"mat-label"),e.EFF(4,"Limit"),e.k0s(),e.nrm(5,"input",138),e.DNE(6,Nn,4,3,"mat-error"),e.k0s()()()),2&n){let t;const i=e.XpG(2);e.R7$(6),e.vxM(null!=(t=i._service.checkInForm.get("maxAllowedAttendanceRegularization"))&&t.dirty||null!=(t=i._service.checkInForm.get("maxAllowedAttendanceRegularization"))&&t.touched?6:-1)}}function Vn(n,a){1&n&&(e.j41(0,"div",16)(1,"div",2)(2,"p",119),e.EFF(3,"Do you want to allow future dated attendance regularization?"),e.k0s(),e.j41(4,"mat-radio-group",139)(5,"mat-radio-button",140),e.EFF(6,"Yes"),e.k0s(),e.j41(7,"mat-radio-button",141),e.EFF(8,"No"),e.k0s()()()()),2&n&&(e.R7$(5),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1))}function Gn(n,a){1&n&&(e.j41(0,"div",16)(1,"div",2)(2,"p",119),e.EFF(3,"Do you want to allow attendance regularization requests within the shift-defined range?"),e.k0s(),e.j41(4,"mat-radio-group",142)(5,"mat-radio-button",143),e.EFF(6,"Yes"),e.k0s(),e.j41(7,"mat-radio-button",144),e.EFF(8,"No"),e.k0s()()()()),2&n&&(e.R7$(5),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1))}function qn(n,a){1&n&&(e.j41(0,"div",16)(1,"div",2)(2,"p",119),e.EFF(3,"Do you want the attachment option to be mandatory in the case of AR? "),e.k0s(),e.j41(4,"mat-radio-group",145)(5,"mat-radio-button",146),e.EFF(6,"Yes"),e.k0s(),e.j41(7,"mat-radio-button",147),e.EFF(8,"No"),e.k0s()()()(),e.j41(9,"p",34),e.EFF(10,"Do you want to allow AR request from WhatsApp?"),e.k0s(),e.j41(11,"div",35)(12,"mat-radio-group",148)(13,"mat-radio-button",149),e.EFF(14,"Yes"),e.k0s(),e.j41(15,"mat-radio-button",150),e.EFF(16,"No"),e.k0s()()(),e.j41(17,"p",34),e.EFF(18,"Do you want to allow AR request from Teams?"),e.k0s(),e.j41(19,"div",35)(20,"mat-radio-group",151)(21,"mat-radio-button",152),e.
1EFF(22,"Yes"),e.k0s(),e.j41(23,"mat-radio-button",153),e.EFF(24,"No"),e.k0s()()()),2&n&&(e.R7$(5),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1))}function zn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",11)(1,"div",108)(2,"div",109)(3,"p",110)(4,"span",111),e.EFF(5,"*"),e.k0s(),e.EFF(6," Is employees allowed to apply for backdated attendance regularization ? "),e.k0s(),e.j41(7,"mat-radio-group",112),e.bIt("change",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l._service.backDatedODAndARChanged(o.value,"backDaysAttendanceRegularization"))}),e.j41(8,"mat-radio-button",113),e.EFF(9,"Yes"),e.k0s(),e.j41(10,"mat-radio-button",114),e.EFF(11,"No"),e.k0s()()()(),e.DNE(12,bn,7,1,"div",115),e.j41(13,"div",108)(14,"div",109)(15,"p",110)(16,"span",111),e.EFF(17,"*"),e.k0s(),e.EFF(18," Is manager allowed to apply for backdated attendance regularization?"),e.k0s(),e.j41(19,"mat-radio-group",116),e.bIt("change",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l._service.backDatedODAndARChanged(o.value,"backdatedAttendanceRegularizationAllowedDaysForManager"))}),e.j41(20,"mat-radio-button",117),e.EFF(21,"Yes"),e.k0s(),e.j41(22,"mat-radio-button",118),e.EFF(23,"No"),e.k0s()()()(),e.DNE(24,Mn,7,1,"div",115),e.j41(25,"div",108)(26,"div",109)(27,"p",119)(28,"span",111),e.EFF(29,"*"),e.k0s(),e.EFF(30," Is HR allowed to apply for backdated attendance regularization?"),e.k0s(),e.j41(31,"mat-radio-group",120),e.bIt("change",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l._service.backDatedODAndARChanged(o.value,"backdatedAttendanceRegularizationAllowedDaysForAdmin"))}),e.j41(32,"mat-radio-button",121),e.EFF(33,"Yes"),e.k0s(),e.j41(34,"mat-radio-button",122),e.EFF(35,"No"),e.k0s()()()(),e.DNE(36,Pn,7,1,"div",115),e.j41(37,"div",115)(38,"div",66)(39,"app-hrone-select",123),e.bIt("selectionChange",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l._service.changeLimit(o,"maxAllowedAttendanceRegularization",99,l._service.checkInForm,!1))}),e.k0s()()(),e.DNE(40,$n,7,1,"div",115),e.j41(41,"div",16)(42,"div",2)(43,"p",119),e.EFF(44,"Should user be able to raise AR after the attendance process?"),e.k0s(),e.j41(45,"mat-radio-group",124)(46,"mat-radio-button",125),e.EFF(47,"Yes"),e.k0s(),e.j41(48,"mat-radio-button",126),e.EFF(49,"No"),e.k0s()()()(),e.DNE(50,Vn,9,4,"div",16),e.j41(51,"div",16)(52,"div",2)(53,"p",119),e.EFF(54,"Do you want to allow attendance regularization requests if at least one punch is available?"),e.k0s(),e.j41(55,"mat-radio-group",127),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.changeShiftDefSett())}),e.j41(56,"mat-radio-button",128),e.EFF(57,"Yes"),e.k0s(),e.j41(58,"mat-radio-button",129),e.EFF(59,"No"),e.k0s()()()(),e.DNE(60,Gn,9,4,"div",16)(61,qn,25,12),e.j41(62,"div",130)(63,"div",109)(64,"p",119),e.EFF(65,"Employees are restricted from applying for AR on week-offs and holidays "),e.k0s(),e.j41(66,"mat-checkbox",131),e.EFF(67,"Week-offs"),e.k0s(),e.j41(68,"mat-checkbox",132),e.EFF(69,"Holidays"),e.k0s()()()()}if(2&n){let t,i,o,l,r;const d=e.XpG();e.R7$(8),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(null!=(t=d._service.checkInForm.get("allowBackdateAttendanceRegularization"))&&t.value?12:-1),e.R7$(8),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(null!=(i=d._service.checkInForm.get("isBackdatedAttendanceRegularizationAllowedForManager"))&&i.value?24:-1),e.R7$(8),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(null!=(o=d._service.checkInForm.get("isBackdatedAttendanceRegularizationAllowedForAdmin"))&&o.value?36:-1),e.R7$(3),e.Y8G("options",d._service.intervalTypeList)("required",!0)("onlyKey",!0),e.R7$(),e.vxM(50!==(null==(l=d._service.checkInForm.get("intervalIdForAttendanceRegularization"))?null:l.value)?40:-1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(d._service.isAdvanceSettings?50:-1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(null!=(r=d._service.checkInForm.get("isSinglePunchRequiredForAttendanceRegularization"))&&r.value?60:-1),e.R7$(),e.vxM(d._service.isAdvanceSettings?61:-1)}}function Wn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Ln(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.maxNumberLength," 90 ")}}function Xn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function Bn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.minNumberLength," 1 ")}}function Yn(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Wn,2,1,"span")(2,Ln,2,1,"span")(3,Xn,2,1,"span")(4,Bn,2,1,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("backDaysOutdoorDuty").hasError("required")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("backDaysOutdoorDuty").hasError("max")?2:-1),e.R7$(),e.vxM(t._service.checkInForm.get("backDaysOutdoorDuty").hasError("pattern")?3:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("backDaysOutdoorDuty").hasError("pattern")&&t._service.checkInForm.get("backDaysOutdoorDuty").hasError("min")?4:-1)}}function Hn(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",179)(2,"mat-form-field",134)(3,"mat-label"),e.EFF(4,"Days"),e.k0s(),e.nrm(5,"input",180),e.DNE(6,Yn,5,4,"mat-error"),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(6),e.vxM(t._service.checkInForm.get("backDaysOutdoorDuty").dirty||t._service.checkInForm.get("backDaysOutdoorDuty").touched?6:-1)}}function Jn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Un(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.maxNumberLength," 90 ")}}function Kn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.minNumberLength," 1 ")}}function Zn(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function Qn(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Jn,2,1,"span")(2,Un,2,1,"span")(3,Kn,2,1,"span")(4,Zn,2,1,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").hasError("required")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").hasError("max")?2:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").hasError("pattern")&&t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").hasError("min")?3:-1),e.R7$(),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").hasError("pattern")?4:-1)}}function ei(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",179)(2,"mat-form-field",134)(3,"mat-label"),e.EFF(4,"Days"),e.k0s(),e.nrm(5,"input",181),e.DNE(6,Qn,5,4,"mat-error"),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(6),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").dirty||t._service.checkInForm.get("backdatedOnDutyAllowedDaysForManager").touched?6:-1)}}function ti(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function ni(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.maxNumberLength," 90 ")}}function ii(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.minNumberLength," 1 ")}}function oi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function ai(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,ti,2,1,"span")(2,ni,2,1,"span")(3,ii,2,1,"span")(4,oi,2,1,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").hasError("required")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").hasError("max")?2:-1),e.R7$(),e.vxM(!t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").hasError("pattern")&&t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").hasError("min")?3:-1),e.R7$(),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").hasError("pattern")?4:-1)}}function li(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",179)(2,"mat-form-field",134)(3,"mat-label"),e.EFF(4,"Days"),e.k0s(),e.nrm(5,"input",182),e.DNE(6,ai,5,4,"mat-error"),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(6),e.vxM(t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").dirty||t._service.checkInForm.get("backdatedOnDutyAllowedDaysForAdmin").touched?6:-1)}}function ri(n,a){if(1&n&&(e.j41(0,"mat-option",186),e.EFF(1),e.k0s()),2&n){let t;const i=a.$implicit;e.Y8G("value",i.onDutyMasterId),e.BMQ("data-testid","outdoor-duty-master-id-"+(null==i.onDutyMasterId||null==(t=i.onDutyMasterId.toString())||null==(t=t.toLowerCase())?null:t.replaceAll(" ","-"))),e.R7$(),e.SpI(" ",null==i?null:i.onDutyName," ")}}function ci(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function si(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,ci,2,1,"span"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.vxM(t.get("outdoorDutyMasterId").hasError("mandatory")?1:-1)}}function di(n,a){if(1&n&&(e.j41(0,"mat-option",186),e.EFF(1),e.k0s()),2&n){let t;const i=a.$implicit;e.Y8G("value",i.intervalId),e.BMQ("data-testid","interval-id-for-outdoor-duty-"+(null==i.intervalId||null==(t=i.intervalId.toString())||null==(t=t.toLowerCase())?null:t.replaceAll(" ","-"))),e.R7$(),e.SpI(" ",i.intervalType,"")}}function _i(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function mi(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,_i,2,1,"span"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.vxM(t.get("intervalIdForOutdoorDuty").hasError("mandatory")?1:-1)}}function ui(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function pi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.maxNumberLength," 999 ")}}function hi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.minNumberLength," 1 ")}}function Ci(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function fi(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,ui,2,1,"span")(2,pi,2,1,"span")(3,hi,2,1,"span")(4,Ci,2,1,"span"),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.vxM(t.get("maxAllowedOutdoorDuty").hasError("mandatory")?1:-1),e.R7$(),e.vxM(t.get("maxAllowedOutdoorDuty").hasError("max")?2:-1),e.R7$(),e.vxM(t.get("maxAllowedOutdoorDuty").hasError("min")?3:-1),e.R7$(),e.vxM(t.get("maxAllowedOutdoorDuty").hasError("pattern")?4:-1)}}function gi(n,a){if(1&n&&(e.j41(0,"div",179)(1,"mat-form-field",184)(2,"mat-label"),e.EFF(3,"Limit"),e.k0s(),e.nrm(4,"input",192),e.DNE(
15,fi,5,4,"mat-error"),e.k0s()()),2&n){const t=e.XpG().$implicit;e.R7$(5),e.vxM(t.get("maxAllowedOutdoorDuty").dirty||t.get("maxAllowedOutdoorDuty").touched?5:-1)}}function ki(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",190)(1,"button",193),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$index,l=e.XpG(3);return e.Njj(l._service.removeOnDuty(o))}),e.nrm(2,"i",62),e.k0s()()}}function vi(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",191)(1,"button",194),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o._service.addOnDuty())}),e.nrm(2,"i",64),e.k0s()()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("disabled",t._service.checkInForm.disabled)}}function bi(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",183)(2,"div",179)(3,"mat-form-field",184)(4,"mat-label"),e.EFF(5,"On duty type"),e.k0s(),e.j41(6,"mat-select",185),e.Z7z(7,ri,2,3,"mat-option",186,e.fX1),e.j41(9,"mat-option")(10,"a",187),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openCreateSectionDialog())}),e.EFF(11,"+ Add New"),e.k0s()()(),e.DNE(12,si,2,1,"mat-error"),e.k0s()(),e.j41(13,"div",24)(14,"mat-form-field",184)(15,"mat-label"),e.EFF(16,"On duty limit is applicable on"),e.k0s(),e.j41(17,"mat-select",188),e.bIt("selectionChange",function(o){const l=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r._service.changeLimit(o.value,"maxAllowedOutdoorDuty",999,l,!1))}),e.Z7z(18,di,2,3,"mat-option",186,e.fX1),e.k0s(),e.DNE(20,mi,2,1,"mat-error"),e.k0s()(),e.DNE(21,gi,6,1,"div",179),e.j41(22,"div",189),e.DNE(23,ki,3,0,"div",190)(24,vi,3,1,"div",191),e.k0s()()()}if(2&n){const t=a.$implicit,i=a.$index,o=a.$count,l=e.XpG(3);e.R7$(),e.Y8G("formGroupName",i),e.R7$(5),e.BMQ("data-testid","outdoor-duty-master-id-"+(i+1)+"-select"),e.R7$(),e.Dyx(l._service.dutyTypeList),e.R7$(5),e.vxM(t.get("outdoorDutyMasterId").dirty||t.get("outdoorDutyMasterId").touched?12:-1),e.R7$(5),e.BMQ("data-testid","interval-id-for-outdoor-duty-"+(i+1)+"-select"),e.R7$(),e.Dyx(l._service.intervalTypeList),e.R7$(2),e.vxM(t.get("intervalIdForOutdoorDuty").dirty||t.get("intervalIdForOutdoorDuty").touched?20:-1),e.R7$(),e.vxM(50!==t.get("intervalIdForOutdoorDuty").value?21:-1),e.R7$(2),e.vxM(i>0?23:-1),e.R7$(),e.vxM(i===o-1?24:-1)}}function yi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Oi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",t._shared.validationMessages.allowedCharacters," ")}}function Fi(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,yi,2,1,"span")(2,Oi,2,1,"span"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.vxM(t.addField.get("onDutyName").hasError("mandatory")?1:-1),e.R7$(),e.vxM(t.addField.get("onDutyName").hasError("pattern")?2:-1)}}function xi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Ri(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.maxNumberLength," 999 ")}}function Mi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.minNumberLength," 1 ")}}function Ii(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function wi(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,xi,2,1,"span")(2,Ri,2,1,"span")(3,Mi,2,1,"span")(4,Ii,2,1,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForWeekly").hasError("mandatory")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForWeekly").hasError("max")?2:-1),e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForWeekly").hasError("min")?3:-1),e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForWeekly").hasError("pattern")?4:-1)}}function Di(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function Ai(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.maxNumberLength," 999 ")}}function Ti(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.minNumberLength," 1 ")}}function Pi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.SpI(" ",t._shared.validationMessages.numericOnly," ")}}function Si(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Di,2,1,"span")(2,Ai,2,1,"span")(3,Ti,2,1,"span")(4,Pi,2,1,"span"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForMonthly").hasError("mandatory")?1:-1),e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForMonthly").hasError("max")?2:-1),e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForMonthly").hasError("min")?3:-1),e.R7$(),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForMonthly").hasError("pattern")?4:-1)}}function Ei(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",96)(1,"div",195)(2,"mat-checkbox",196),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.updateValidations(o.checked,"W"))}),e.EFF(3,"Weekly "),e.k0s()(),e.j41(4,"div",24)(5,"mat-form-field",197)(6,"mat-label"),e.EFF(7,"Limit"),e.k0s(),e.nrm(8,"input",198),e.DNE(9,wi,5,4,"mat-error"),e.k0s()()(),e.j41(10,"div",96)(11,"div",195)(12,"mat-checkbox",199),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.updateValidations(o.checked,"M"))}),e.EFF(13,"Monthly "),e.k0s()(),e.j41(14,"div",24)(15,"mat-form-field",197)(16,"mat-label"),e.EFF(17,"Limit"),e.k0s(),e.nrm(18,"input",200),e.DNE(19,Si,5,4,"mat-error"),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(5),e.Y8G("ngClass",e.eq3(4,ue,t._service.checkInForm.get("allowOverallOnDutyLimitForWeekly").value)),e.R7$(4),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForWeekly").dirty||t._service.checkInForm.get("overallOnDutyLimitForWeekly").touched?9:-1),e.R7$(6),e.Y8G("ngClass",e.eq3(6,ue,t._service.checkInForm.get("allowOverallOnDutyLimitForMonthly").value)),e.R7$(4),e.vxM(t._service.checkInForm.get("overallOnDutyLimitForMonthly").dirty||t._service.checkInForm.get("overallOnDutyLimitForMonthly").touched?19:-1)}}function ji(n,a){if(1&n&&(e.j41(0,"div",96)(1,"div",24)(2,"p",172)(3,"span"),e.EFF(4,"Log time against project"),e.k0s(),e.j41(5,"figure",87),e.nrm(6,"img",201),e.k0s()(),e.j41(7,"mat-radio-group",202)(8,"mat-radio-button",203),e.EFF(9,"Yes"),e.k0s(),e.j41(10,"mat-radio-button",204),e.EFF(11,"No"),e.k0s()()()(),e.j41(12,"div",16)(13,"div",2)(14,"p",119),e.EFF(15,"Should user be able to raise On duty after the attendance process? "),e.k0s(),e.j41(16,"mat-radio-group",205)(17,"mat-radio-button",206),e.EFF(18,"Yes "),e.k0s(),e.j41(19,"mat-radio-button",207),e.EFF(20,"No"),e.k0s()()()(),e.j41(21,"div",16)(22,"div",2)(23,"p",119),e.EFF(24,"Do you want to allow future dated on duty? "),e.k0s(),e.j41(25,"mat-radio-group",208)(26,"mat-radio-button",209),e.EFF(27,"Yes "),e.k0s(),e.j41(28,"mat-radio-button",210),e.EFF(29,"No"),e.k0s()()()(),e.j41(30,"div",96)(31,"div",2)(32,"p",172),e.EFF(33," Do you want to restrict manager to apply more on duty as per the above specified limit? "),e.k0s(),e.j41(34,"mat-radio-group",211)(35,"mat-radio-button",212),e.EFF(36,"Yes"),e.k0s(),e.j41(37,"mat-radio-button",213),e.EFF(38,"No"),e.k0s()()()(),e.j41(39,"div",96)(40,"div",2)(41,"p",172),e.EFF(42," Do you want to restrict HR to apply more on duty as per the above specified limit? "),e.k0s(),e.j41(43,"mat-radio-group",214)(44,"mat-radio-button",215),e.EFF(45,"Yes"),e.k0s(),e.j41(46,"mat-radio-button",216),e.EFF(47,"No"),e.k0s()()()(),e.j41(48,"div",96)(49,"div",2)(50,"p",172),e.EFF(51," Do you want the attachment option to be mandatory in the case of OD? "),e.k0s(),e.j41(52,"mat-radio-group",217)(53,"mat-radio-button",218),e.EFF(54,"Yes"),e.k0s(),e.j41(55,"mat-radio-button",219),e.EFF(56,"No"),e.k0s()()()(),e.j41(57,"p",34),e.EFF(58,"Do you want to allow OD request from whatsapp?"),e.k0s(),e.j41(59,"div",35)(60,"mat-radio-group",220)(61,"mat-radio-button",221),e.EFF(62,"Yes "),e.k0s(),e.j41(63,"mat-radio-button",222),e.EFF(64,"No"),e.k0s()()(),e.j41(65,"p",34),e.EFF(66,"Do you want to allow OD request from teams?"),e.k0s(),e.j41(67,"div",35)(68,"mat-radio-group",223)(69,"mat-radio-button",224),e.EFF(70,"Yes "),e.k0s(),e.j41(71,"mat-radio-button",225),e.EFF(72,"No"),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(8),e.Y8G("disabled",t.isAllowProjectInOnDuty)("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disabled",t.isAllowProjectInOnDuty)("disableRipple",!0)("value",!1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1)}}function Ni(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",11)(1,"div",108)(2,"div",109)(3,"p",119),e.EFF(4,"Is employees allowed to apply for backdated on-duty request?"),e.k0s(),e.j41(5,"mat-radio-group",155),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.backDatedODAndARChanged(o.value,"backDaysOutdoorDuty"))}),e.j41(6,"mat-radio-button",156),e.EFF(7,"Yes"),e.k0s(),e.j41(8,"mat-radio-button",157),e.EFF(9,"No"),e.k0s()()()(),e.DNE(10,Hn,7,1,"div",115),e.qex(11),e.j41(12,"div",108)(13,"div",109)(14,"p",119),e.EFF(15,"Is manager allowed to apply backdated on-duty request?"),e.k0s(),e.j41(16,"mat-radio-group",158),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.backDatedODAndARChanged(o.value,"backdatedOnDutyAllowedDaysForManager"))}),e.j41(17,"mat-radio-button",159),e.EFF(18,"Yes"),e.k0s(),e.j41(19,"mat-radio-button",160),e.EFF(20,"No"),e.k0s()()()(),e.DNE(21,ei,7,1,"div",115),e.bVm(),e.qex(22),e.j41(23,"div",108)(24,"div",109)(25,"p",119),e.EFF(26,"Is HR allowed to apply backdated on-duty request?"),e.k0s(),e.j41(27,"mat-radio-group",161),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.backDatedODAndARChanged(o.value,"backdatedOnDutyAllowedDaysForAdmin"))}),e.j41(28,"mat-radio-button",162),e.EFF(29,"Yes"),e.k0s(),e.j41(30,"mat-radio-button",163),e.EFF(31,"No"),e.k0s()()()(),e.DNE(32,li,7,1,"div",115),e.bVm(),e.j41(33,"div",164),e.Z7z(34,bi,25,8,"div",null,e.fX1),e.k0s(),e.j41(36,"p-dialog",165),e.mxI("visibleChange",function(o){e.eBV(t);const l=e.XpG(2);return e.DH7(l.isCreateSectionShown,o)||(l.isCreateSectionShown=o),e.Njj(o)}),e.j41(37,"form",166)(38,"div",167)(39,"mat-form-field")(40,"mat-label"),e.EFF(41,"On Duty Name"),e.k0s(),e.nrm(42,"input",168),e.DNE(43,Fi,3,2,"mat-error"),e.k0s()(),e.j41(44,"div",169)(45,"input",170),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.hideModal())}),e.k0s(),e.j41(46,"button",171),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onDutyFormsValue(o.addField.value))}),e.EFF(47,"Save "),e.k0s()()()(),e.j41(48,"div",96)(49,"div",109)(50,"p",172),e.EFF(51," Do you want to configure overall on duty limit? "),e.k0s(),e.j41(52,"mat-radio-group",173),e.bIt("change",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.changeValidations())}),e.j41(53,"mat-radio-button",174),e.EFF(54,"Yes"),e.k0s(),e.j41(55,"mat-radio-button",175),e.EFF(56,"No"),e.k0s()()()(),e.DNE(57,Ei,20,8)(58,ji,73,34),e.j41(59,"p",34),e.EFF(60,"Employees are restricted from applying for on-duty on week-offs and holidays "),e.k0s(),e.j41(61,"div",176)(62,"mat-checkbox",177),e.EFF(63,"Week-offs "),e.k0s(),e.j41(64,"mat-checkbox",178),e.EFF(65,"Holidays "),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(6),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("allowBackdateOutdoorDuty").value?10:-1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("isBackdatedOnDutyAllowedForManager").value?21:-1),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("isBackdatedOnDutyAllowedForAdmin").value?32:-1),e.R7$(2),e.Dyx(t._service.checkInForm.controls.outdoorDutyDetails.controls),e.R7$(2),e.Aen(e.lJ4(28,ft)),e.R50("visible",t.isCreateSectionShown),e.Y8G("minY",70),e.R7$(),e.Y8G("formGroup",t.addField),e.R7$(6),e.vxM(t.addField.get("onDutyName").dirty||t.addField.get("onDutyName").touched?43:-1),e.R7$(3),e.Y8G("disabled",!t.addField.valid),e.R7$(7),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.vxM(t._service.checkInForm.get("allowOverallOnDutyLimit").value?57:-1),e.R7$(),e.vxM(t._service.isAdvanceSettings?58:-1)}}function $i(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"mat-checkbox",154),e.bIt("change",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l._service.isOnduty(o.checked))}),e.EFF(2,"On duty "),e.k0s(),e.DNE(3,Ni,66,29,"div",11),e.k0s()}if(2&n){const t=e.XpG();e.R7$(3),e.vxM(t._service.checkInForm.get("enableOutdoorDuty").value?3:-1)}}function Vi(n,a){if(1&n&&(e.j41(0,"div",237),e.nrm(1,"app-hrone-select",238),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.Y8G("options",t._service.shiftDropDown)("compareWith",t._shared.compareMultiselectFn4)("multiple",!0)("showAllSelectCheckBox",!1)("required",!0)}}function Gi(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",232)(1,"div",109)(2,"p",233),e.EFF(3,"Please select the shifts employee can change"),e.k0s(),e.j41(4,"mat-radio-group",234),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.selectCustomShiftsChange(o.value))}),e.j41(5,"mat-radio-button",235),e.EFF(6," All shifts "),e.k0s(),e.j41(7,"mat-radio-button",236),e.EFF(8," Custom "),e.k0s()()()(),e.DNE(9,Vi,2,5,"div",237)}if(2&n){let t;const i=e.XpG(3);e.R7$(5),e.Y8G("disableRipple",!0)("value",!1),e.R7$(2),e.Y8G("disableRipple",!0)("value",!0),e.R7$(2),e.vxM(null!=(t=i._service.checkInForm.get("isSpecificShiftAllowed"))&&t.value?9:-1)}}function qi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",t._shared.validationMessages.required," ")}}function zi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){let t;const i=e.XpG(6);e.R7$(),e.SpI(" ",0==(null==(t=i._service.checkInForm.get("maximumRequestLimitInWeek"))?null:t.value)?i._shared.validationMessages.zeroOnlyNotAllowed:i._shared.validationMessages.numericOnly," ")}}function Wi(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,qi,2,1,"span")(2,zi,2,1,"span"),e.k0s()),2&n){let t,i;const o=e.XpG(5);e.R7$(),e.vxM(null==(t=o._service.checkInForm.get("maximumRequestLimitInWeek"))||!t.hasError("mandatory")||null!=(t=o._service.checkInForm.get("maximumRequestLimitInWeek"))&&t.hasError("pattern")?-1:1),e.R7$(),e.vxM(null!=(i=o._service.checkInForm.get("maximumRequestLimitInWeek"))&&i.hasError("pattern")?2:-1)}}function Li(n,a){if(1&n&&(e.j41(0,"mat-form-field",242)(1,"mat-label",245),e.EFF(2,"Enter maximum number of requests"),e.k0s(),e.nrm(3,"input",246),e.DNE(4,Wi,3,2,"mat-error"),e.k0s()),2&n){let t;const i=e.XpG(4);e.R7$(4),e.vxM(null!=(t=i._service.checkInForm.get("maximumRequestLimitInWeek"))&&t.dirty||null!=(t=i._service.checkInForm.get("maximumRequestLimitInWeek"))&&t.touched?4:-1)}}function Xi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function Bi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){let t;const i=e.XpG(6);e.R7$(),e.JRh(0==(null==(t=i._service.checkInForm.get("maximumRequestLimitInMonth"))?null:t.value)?i._shared.validationMessages.zeroOnlyNotAllowed:i._shared.validationMessages.numericOnly)}}function Yi(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Xi,2,1,"span")(2,Bi,2,1,"span"),e.k0s()),2&n){let t,i;const o=e.XpG(5);e.R7$(),e.vxM(null==(t=o._service.checkInForm.get("maximumRequestLimitInMonth"))||!t
1.hasError("mandatory")||null!=(t=o._service.checkInForm.get("maximumRequestLimitInMonth"))&&t.hasError("pattern")?-1:1),e.R7$(),e.vxM(null!=(i=o._service.checkInForm.get("maximumRequestLimitInMonth"))&&i.hasError("pattern")?2:-1)}}function Hi(n,a){if(1&n&&(e.j41(0,"mat-form-field",242)(1,"mat-label",245),e.EFF(2,"Enter maximum number of requests"),e.k0s(),e.nrm(3,"input",247),e.DNE(4,Yi,3,2,"mat-error"),e.k0s()),2&n){let t;const i=e.XpG(4);e.R7$(4),e.vxM(null!=(t=i._service.checkInForm.get("maximumRequestLimitInMonth"))&&t.dirty||null!=(t=i._service.checkInForm.get("maximumRequestLimitInMonth"))&&t.touched?4:-1)}}function Ji(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",232)(1,"div",2)(2,"p",239),e.EFF(3,"Set limit for requests"),e.k0s(),e.j41(4,"div",240)(5,"mat-checkbox",241),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.setUnsetNumberValidation(o.checked,"maximumRequestLimitInWeek"))}),e.EFF(6," Weekly "),e.k0s(),e.DNE(7,Li,5,1,"mat-form-field",242),e.k0s(),e.j41(8,"div",243)(9,"mat-checkbox",244),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.setUnsetNumberValidation(o.checked,"maximumRequestLimitInMonth"))}),e.EFF(10," Monthly "),e.k0s(),e.DNE(11,Hi,5,1,"mat-form-field",242),e.k0s()()()}if(2&n){let t,i;const o=e.XpG(3);e.R7$(7),e.vxM(null!=(t=o._service.checkInForm.get("enableWeeklyMaximumRequestLimit"))&&t.value?7:-1),e.R7$(4),e.vxM(null!=(i=o._service.checkInForm.get("enableMonthlyMaximumRequestLimit"))&&i.value?11:-1)}}function Ui(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function Ki(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.numericOrDecimal)}}function Zi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.zeroOnlyNotAllowed)}}function Qi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 7")}}function eo(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,Ui,2,1,"span")(2,Ki,2,1,"span")(3,Zi,2,1,"span")(4,Qi,2,1,"span"),e.k0s()),2&n){let t,i,o,l;const r=e.XpG(5);e.R7$(),e.vxM(null!=(t=r._service.checkInForm.get("maximumWeeklyWeekOffBalance"))&&t.hasError("mandatory")?1:-1),e.R7$(),e.vxM(null!=(i=r._service.checkInForm.get("maximumWeeklyWeekOffBalance"))&&i.hasError("pattern")&&!r._service.checkInForm.get("maximumWeeklyWeekOffBalance").hasError("mandatory")?2:-1),e.R7$(),e.vxM(null!=(o=r._service.checkInForm.get("maximumWeeklyWeekOffBalance"))&&o.hasError("zeroOnlyError")&&!r._service.checkInForm.get("maximumWeeklyWeekOffBalance").hasError("mandatory")?3:-1),e.R7$(),e.vxM(null!=(l=r._service.checkInForm.get("maximumWeeklyWeekOffBalance"))&&l.hasError("max")?4:-1)}}function to(n,a){if(1&n&&(e.j41(0,"mat-form-field",242)(1,"mat-label",245),e.EFF(2,"Enter change week off limit"),e.k0s(),e.nrm(3,"input",250),e.DNE(4,eo,5,4,"mat-error"),e.k0s()),2&n){let t;const i=e.XpG(4);e.R7$(4),e.vxM(null!=(t=i._service.checkInForm.get("maximumWeeklyWeekOffBalance"))&&t.dirty||null!=(t=i._service.checkInForm.get("maximumWeeklyWeekOffBalance"))&&t.touched?4:-1)}}function no(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function io(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.numericOrDecimal)}}function oo(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.zeroOnlyNotAllowed)}}function ao(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 31")}}function lo(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,no,2,1,"span")(2,io,2,1,"span")(3,oo,2,1,"span")(4,ao,2,1,"span"),e.k0s()),2&n){let t,i,o,l;const r=e.XpG(5);e.R7$(),e.vxM(null!=(t=r._service.checkInForm.get("maximumMonthlyWeekOffBalance"))&&t.hasError("mandatory")?1:-1),e.R7$(),e.vxM(null!=(i=r._service.checkInForm.get("maximumMonthlyWee
1kOffBalance"))&&i.hasError("pattern")&&!r._service.checkInForm.get("maximumMonthlyWeekOffBalance").hasError("mandatory")?2:-1),e.R7$(),e.vxM(null!=(o=r._service.checkInForm.get("maximumMonthlyWeekOffBalance"))&&o.hasError("zeroOnlyError")&&!r._service.checkInForm.get("maximumMonthlyWeekOffBalance").hasError("mandatory")?3:-1),e.R7$(),e.vxM(null!=(l=r._service.checkInForm.get("maximumMonthlyWeekOffBalance"))&&l.hasError("max")?4:-1)}}function ro(n,a){if(1&n&&(e.j41(0,"mat-form-field",242)(1,"mat-label",245),e.EFF(2,"Enter change week off limit"),e.k0s(),e.nrm(3,"input",251),e.DNE(4,lo,5,4,"mat-error"),e.k0s()),2&n){let t;const i=e.XpG(4);e.R7$(4),e.vxM(null!=(t=i._service.checkInForm.get("maximumMonthlyWeekOffBalance"))&&t.dirty||null!=(t=i._service.checkInForm.get("maximumMonthlyWeekOffBalance"))&&t.touched?4:-1)}}function co(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",108)(1,"div",2)(2,"p",239),e.EFF(3,"Set limit for week off"),e.k0s(),e.j41(4,"div",240)(5,"mat-checkbox",248),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.setUnsetNumberValidation(o.checked,"maximumWeeklyWeekOffBalance",!0))}),e.EFF(6," Weekly "),e.k0s(),e.DNE(7,to,5,1,"mat-form-field",242),e.k0s(),e.j41(8,"div",243)(9,"mat-checkbox",249),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.setUnsetNumberValidation(o.checked,"maximumMonthlyWeekOffBalance",!0))}),e.EFF(10," Monthly "),e.k0s(),e.DNE(11,ro,5,1,"mat-form-field",242),e.k0s()()()}if(2&n){let t,i;const o=e.XpG(3);e.R7$(7),e.vxM(null!=(t=o._service.checkInForm.get("enableWeeklyMaximumWeeklyOffBalance"))&&t.value?7:-1),e.R7$(4),e.vxM(null!=(i=o._service.checkInForm.get("enableMonthlyMaximumWeeklyOffBalance"))&&i.value?11:-1)}}function so(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function _o(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){let t;const i=e.XpG(6);e.R7$(),e.JRh(0==(null==(t=i._service.checkInForm.get("backdatedRequestAllowedDays"))?null:t.value)?i._shared.validationMessages.zeroOnlyNotAllowed:i._shared.validationMessages.numericOnly)}}function mo(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 90")}}function uo(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,so,2,1,"span")(2,_o,2,1,"span")(3,mo,2,1,"span"),e.k0s()),2&n){let t,i,o;const l=e.XpG(5);e.R7$(),e.vxM(null==(t=l._service.checkInForm.get("backdatedRequestAllowedDays"))||!t.hasError("mandatory")||null!=(t=l._service.checkInForm.get("backdatedRequestAllowedDays"))&&t.hasError("pattern")?-1:1),e.R7$(),e.vxM(null!=(i=l._service.checkInForm.get("backdatedRequestAllowedDays"))&&i.hasError("pattern")?2:-1),e.R7$(),e.vxM(null!=(o=l._service.checkInForm.get("backdatedRequestAllowedDays"))&&o.hasError("max")?3:-1)}}function po(n,a){if(1&n&&(e.j41(0,"mat-form-field",242)(1,"mat-label",245),e.EFF(2,"No. of backdated days"),e.k0s(),e.nrm(3,"input",255),e.DNE(4,uo,4,3,"mat-error"),e.k0s()),2&n){let t;const i=e.XpG(4);e.R7$(4),e.vxM(null!=(t=i._service.checkInForm.get("backdatedRequestAllowedDays"))&&t.dirty||null!=(t=i._service.checkInForm.get("backdatedRequestAllowedDays"))&&t.touched?4:-1)}}function ho(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.JRh(t._shared.validationMessages.required)}}function Co(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){let t;const i=e.XpG(6);e.R7$(),e.JRh(0==(null==(t=i._service.checkInForm.get("futuredatedRequestAllowedDays"))?null:t.value)?i._shared.validationMessages.zeroOnlyNotAllowed:i._shared.validationMessages.numericOnly)}}function fo(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI("",t._shared.validationMessages.maxNumberLength," 90")}}function go(n,a){if(1&n&&(e.j41(0,"mat-error"),e.DNE(1,ho,2,1,"span")(2,Co,2,1,"span")(3,fo,2,1,"span"),e.k0s()),2&n){let t,i,o;const l=e.XpG(5);e.R7$(),e.vxM(null==(t=l._service.checkInForm.get("futuredatedRequestAllowedDays"))||!t.hasError("mandatory")||null!=(t=l._service.checkInForm.get("futuredatedRequestAllowedDays"))&&t.hasError("pattern")?-1:1),e.R7$(),e.vxM(null!=(i=l._service.checkInForm.get("futuredatedRequestAllowedDays"))&&i.hasError("pattern")?2:-1),e.R7$(),e.vxM(null!=(o=l._service.checkInForm.get("futuredatedRequestAllowedDays"))&&o.hasError("max")?3:-1)}}function ko(n,a){if(1&n&&(e.j41(0,"mat-form-field",242)(1,"mat-label",245),e.EFF(2,"No. of forward dated days"),e.k0s(),e.nrm(3,"input",256),e.DNE(4,go,4,3,"mat-error"),e.k0s()),2&n){let t;const i=e.XpG(4);e.R7$(4),e.vxM(null!=(t=i._service.checkInForm.get("futuredatedRequestAllowedDays"))&&t.dirty||null!=(t=i._service.checkInForm.get("futuredatedRequestAllowedDays"))&&t.touched?4:-1)}}function vo(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",108)(1,"div",2)(2,"p",252),e.EFF(3," Do you want to allow backdated and forward dated request to employee? "),e.k0s(),e.j41(4,"div",240)(5,"mat-checkbox",253),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.setUnsetNumberValidation(o.checked,"backdatedRequestAllowedDays"))}),e.EFF(6," Backdated "),e.k0s(),e.DNE(7,po,5,1,"mat-form-field",242),e.k0s(),e.j41(8,"div",243)(9,"mat-checkbox",254),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(3);return e.Njj(l._service.setUnsetNumberValidation(o.checked,"futuredatedRequestAllowedDays"))}),e.EFF(10," Future dated "),e.k0s(),e.DNE(11,ko,5,1,"mat-form-field",242),e.k0s()()()}if(2&n){let t,i;const o=e.XpG(3);e.R7$(7),e.vxM(null!=(t=o._service.checkInForm.get("allowedBackdatedRequest"))&&t.value?7:-1),e.R7$(4),e.vxM(null!=(i=o._service.checkInForm.get("allowedFuturedatedRequest"))&&i.value?11:-1)}}function bo(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",227)(1,"div",228)(2,"div",229)(3,"mat-checkbox",230),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.toggleShiftOrWeekOff(o.checked,"S"))}),e.EFF(4," Shift "),e.k0s(),e.j41(5,"mat-checkbox",231),e.bIt("change",function(o){e.eBV(t);const l=e.XpG(2);return e.Njj(l._service.toggleShiftOrWeekOff(o.checked,"W"))}),e.EFF(6," Week off "),e.k0s()(),e.DNE(7,Gi,10,5)(8,Ji,12,2,"div",232)(9,co,12,2,"div",108)(10,vo,12,2,"div",108),e.k0s()()}if(2&n){let t,i,o,l;const r=e.XpG(2);e.R7$(7),e.vxM(null!=(t=r._service.checkInForm.get("allowShiftChangeRequest"))&&t.value?7:-1),e.R7$(),e.vxM(null!=(i=r._service.checkInForm.get("allowShiftChangeRequest"))&&i.value||null!=(i=r._service.checkInForm.get("allowWeeklyOffChangeRequest"))&&i.value?8:-1),e.R7$(),e.vxM(null!=(o=r._service.checkInForm.get("allowWeeklyOffChangeRequest"))&&o.value?9:-1),e.R7$(),e.vxM(null!=(l=r._service.checkInForm.get("allowShiftChangeRequest"))&&l.value||null!=(l=r._service.checkInForm.get("allowWeeklyOffChangeRequest"))&&l.value?10:-1)}}function yo(n,a){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",226),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o._service.toggleChangeShiftAndWeekOff())}),e.EFF(1," Change shift / week off "),e.k0s(),e.DNE(2,bo,11,4,"div",227)}if(2&n){let t;const i=e.XpG();
1e.Y8G("ngClass",e.l_i(2,gt,i.isEnableWifiAttendance,!i.isEnableWifiAttendance)),e.R7$(2),e.vxM(null!=(t=i._service.checkInForm.get("enableShiftChangeWeekOffRequest"))&&t.value?2:-1)}}function Oo(n,a){1&n&&(e.j41(0,"div")(1,"mat-checkbox",257),e.EFF(2," Wifi attendance "),e.k0s()())}let pe=(()=>{class n{constructor(t,i,o,l,r,d){this._service=t,this._httpService=i,this._fb=o,this._snackBar=l,this._shared=r,this._common=d,this.isBackDateAllowed=!1,this.applicableArr=["Week","Month"],this.createSectionEmitter=new e.bkB,this.booleanFlag=mt.Fg,this.isAllowProjectInOnDuty=!1,this.removeOnDutyForStartup=!1,this.isEnableWifiAttendance=!1}ngOnInit(){this._service.getShiftDropDowns(),this.createForm(),this._common.getModuleLicenseStatus().then(()=>{this.removeOnDutyForStartup=this._common.moduleLicenseStatus.findIndex(t=>2===t.key&&1===t.planId)>=0,this._common.moduleLicenseStatus.filter(t=>22===t.key).length?this.isAllowProjectInOnDuty=!1:(this._service.checkInForm.get("allowProjectInOnDuty").setValue(!1),this.isAllowProjectInOnDuty=!0)}),this._shared.isFeatureAvailable(276).then(t=>{this.isEnableWifiAttendance=t,t||this._service.checkInForm.get("enableWifiBasedAttendance")?.setValue(!1)})}isMobilecheckIn(t){t?this._service.photoRequired(this._service.checkInForm.controls.isPhotoFacialRequired.value):(this._service.checkInForm.controls.numberOfPhotos.clearValidators(),this._service.checkInForm.controls.numberOfPhotos.updateValueAndValidity()),this._service.punchAllowed(!!t&&this._service.checkInForm.controls.enableNoOfPunchInMobile.value,"mob")}isWebCheckIn(t){this._service.punchAllowed(!!t&&this._service.checkInForm.controls.enableNoOfPunchInWeb.value,"web")}openCreateSectionDialog(){this.isCreateSectionShown=!0}createForm(){this.addField=this._fb.group({onDutyMasterId:[0],onDutyName:["",[m.qk,c.k0.pattern(_.e.allowedCharacters)]]})}onDutyFormsValue(){this.addField.value.onDutyMasterId=this.addField.value.onDutyMasterId?this.addField.value.onDutyMasterId:0,this._httpService.Post("/api/timeoffice/setting/OnDuty",this.addField.value).subscribe(i=>{this._snackBar.Alert(i.message,i.validationType),"0"===i.validationType&&this._service.getOnDutyType(this._service.checkInForm.get("inOutPolicyId").value),this.hideModal()})}hideModal(){this.addField.reset(),this.isCreateSectionShown=!1}changeValidations(){this._service.checkInForm.get("allowOverallOnDutyLimitForWeekly").setValue(!1),this._service.checkInForm.get("allowOverallOnDutyLimitForMonthly").setValue(!1),this._service.checkInForm.get("overallOnDutyLimitForWeekly").setValue(null),this._service.checkInForm.get("overallOnDutyLimitForMonthly").setValue(null),this._service.checkInForm.get("overallOnDutyLimitForWeekly").clearValidators(),this._service.checkInForm.get("overallOnDutyLimitForMonthly").clearValidators(),this._service.checkInForm.get("overallOnDutyLimitForWeekly").updateValueAndValidity(),this._service.checkInForm.get("overallOnDutyLimitForMonthly").updateValueAndValidity(),this._service.checkInForm.get("allowOverallOnDutyLimitForWeekly").updateValueAndValidity(),this._service.checkInForm.get("allowOverallOnDutyLimitForMonthly").updateValueAndValidity()}changeShiftDefSett(){this._service.checkInForm.get("allowAttendanceRegularizationRequestWithinShiftWindow").setValue(!1),this._service.checkInForm.get("allowAttendanceRegularizationRequestWithinShiftWindow").updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g),e.rXU(x.k),e.rXU(c.ze),e.rXU(R.r),e.rXU(M.d),e.rXU(ut.S))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-to-ccs-step-one"]],outputs:{createSectionEmitter:"createSectionEmitter"},standalone:!1,decls:30,vars:9,consts:[[1,"container-fluid","p-0",3,"formGroup"],[1,"row"],[1,"col-sm-12"],[1,"m-b-20"],["matInput","","maxlength","100","formControlName","inOutPolicyName","required",""],[1,"clsemp-statutory"],[1,"font-12"],[1,"example-section"],[3,"hidden"],["formControlName","enableTimesheet","data-testid","enable-timesheet-checkbox",1,"m-b-10"],["formControlName","enableMobileCheckIn","data-testid","enable-mobile-checkin-checkbox",1,"m-b-10",3,"change"],[1,"container-fluid","p-l-25","m-t-10","m-b-20"],["formControlName","enableAttendanceRegularization","data-testid","enable-attendance-regularization-checkbox",1,"m-b-10",3,"change"],["hidden","",1,"m-b-20"],["formControlName","isWeMeIntegration","data-testid","weme-integration-checkbox"],["formControlName","enableWebCheckIn","data-testid","enable-web-checkin-checkbox",1,"m-b-10",3,"change"],[1,"row","m-t-20"],[1,"font-12","font-medium","p-l-15","m-b-10","m-t-15","m-b-0"],[1,"col-sm-3","m-t-15"],["formControlName","enableNoOfPunchInWeb",3,"change"],["data-testid","enable-no-of-punch-in-web-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","enable-no-of-punch-in-web-no-radio",3,"disableRipple","value"],[1,"col-sm-4","m-tn-15"],[1,"col-12"],[1,"col-sm-4"],["formControlName","defineTimeframeForWebCheckIn",3,"change"],["data-testid","define-timeframe-for-web-checkin-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","define-timeframe-for-web-checkin-no-radio",3,"disableRipple","value"],[1,"col"],[1,"d-flex","align-items-center","cls-policy-allowpunch"],[1,"p-r-20"],[1,"cls-pscal","p-r-20","mt-0"],[1,"p-r-20","p-t-2"],[1,"cls-pscal","mt-0"],[1,"m-t-15","m-b-0","font-12"],[1,"col-sm-4","m-t-15","pl-0"],["formControlName","enableIPValidation",3,"change"],["data-testid","enable-ip-validation-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","enable-ip-validation-no-radio",3,"disableRipple","value"],["formControlName","allowWebCheckInRequestOnWhatsapp"],["data-testid","allow-web-checkin-on-whatsapp-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-web-checkin-on-whatsapp-no-radio",3,"disableRipple","value"],["formControlName","allowWebCheckInRequestOnMicrosoftTeams"],["data-testid","allow-web-checkin-on-teams-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-web-checkin-on-teams-no-radio",3,"disableRipple","value"],["formControlName","noOfPunchInWeb","placeholder","Number of punches allowed","key","key","value","value","data-testid","no-of-punch-in-web-select","data-search-testid","no-of-punch-in-web-select-search",3,"options","required","onlyKey"],[1,"m-r-10"],["formControlName","webCheckInStartTime",1,"w-100",3,"onInput","onSelect","timeOnly"],[1,"validation-error","p-l-74"],["formControlName","webCheckInEndTime",1,"w-100",3,"onInput","onSelect","timeOnly"],[1,"validation-error","p-l-64"],["formArrayName","ipAddresses",1,"m-t-15"],[1,"d-flex",3,"formGroupName"],[1,"d-flex","justify-content-between"],[1,"w-100","m-tn-20","m-r-16","m-b-10"],["matInput","","formControlName","ipAddress","maxlength","20"],[1,"w-100","m-tn-20","m-b-10"],["matInput","","formControlName","ipAddressRange","maxlength","20"],[1,"d-flex","align-items-center","w-15"],[1,"p-l-20","text-center"],[1,"text-center"],[1,"clsdelete-btn","bg-transparent","border-0","p-0","cursor-pointer",3,"click","disabled"],[1,"fa-light","fa-tras
1h-can","font-20","errorTxt"],[1,"clsadd-btn","m-l-20","bg-transparent","border-0","p-0","cursor-pointer",3,"click","disabled"],[1,"fa-light","fa-circle-plus","font-20","primaryIcon"],[1,"row",3,"hidden"],[1,"col-sm-6"],["formControlName","mobileAttendanceType"],["value","A","data-testid","mobile-attendance-type-mark-radio",1,"m-r-20",3,"disableRipple"],[1,"p-l-15","m-b-0","font-12"],[1,"col-sm-12","m-t-15"],["formControlName","isLocationRequired",3,"change"],["data-testid","location-required-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","location-required-no-radio",3,"disableRipple","value"],[1,"m-b-0","font-12"],[1,"col-sm-5","m-t-15"],["formControlName","isPhotoFacialRequired",3,"change"],["data-testid","photo-facial-required-none-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","photo-facial-required-photo-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","photo-facial-required-facial-radio",3,"disableRipple","value"],["formControlName","numberOfPhotos","placeholder","Number of photos","key","key","value","value","data-testid","number-of-photos-select","data-search-testid","number-of-photos-select-search",3,"options","required","onlyKey"],["formControlName","allowGeoFencingLiveTracking",3,"change"],["data-testid","geo-fencing-none-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","geo-fencing-radius-based-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","geo-fencing-polygon-based-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","geo-fencing-continuous-tracking-radio",3,"disableRipple","value"],[1,"font-12","font-medium","m-b-10","d-flex","align-items-center","p-l-15","m-t-20"],[1,"infoicon","m-0","ml-1"],["tooltipPosition","bottom","tooltipStyleClass","sidePane","pTooltip","Help: In case case you enable this, then while requesting location approaval, forever option will not be available.","src","assets/images/info.png","alt","Info"],["formControlName","restrictOnlyTempLocationApproval"],["data-testid","restrict-only-temp-location-approval-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","restrict-only-temp-location-approval-no-radio",3,"disableRipple","value"],[1,"p-l-15","m-t-15","m-b-0","font-12"],[1,"col-sm-4","m-t-15"],[1,"mandatoryField","m-tn-15","m-b-10"],["matInput","","maxlength","2","formControlName","specificLocationApprovalDays"],[1,"row","m-t-10"],["formControlName","enableNoOfPunchInMobile",3,"change"],["data-testid","enable-no-of-punch-in-mobile-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","enable-no-of-punch-in-mobile-no-radio",3,"disableRipple","value"],["formControlName","noOfPunchInMobile","placeholder","Number of punches allowed","key","key","value","value","data-testid","no-of-punch-in-mobile-select","data-search-testid","no-of-punch-in-mobile-select-search",3,"options","required","onlyKey"],["formControlName","defineTimeframeForMobileCheckIn",3,"change"],["data-testid","define-timeframe-for-mobile-checkin-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","define-timeframe-for-mobile-checkin-no-radio",3,"disableRipple","value"],[1,"cls-pscal","m-r-10","mt-0"],["formControlName","mobileCheckInStartTime",1,"w-100",3,"onInput","onSelect","timeOnly"],["formControlName","mobileCheckInEndTime",1,"w-100",3,"onInput","onSelect","timeOnly"],[1,"validation-error","p-l-65"],[1,"row","m-b-20"],[1,"col-sm-8"],[1,"font-12","font-medium","m-b-10","font-12"],[1,"text-danger"],["formControlName","allowBackdateAttendanceRegularization",3,"change"],["data-testid","allow-backdate-ar-employee-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-backdate-ar-employee-no-radio",3,"disableRipple","value"],[1,"row","m-b-10"],["formControlName","isBackdatedAttendanceRegularizationAllowedForManager",3,"change"],["data-testid","allow-backdate-ar-manager-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-backdate-ar-manager-no-radio",3,"disableRipple","value"],[1,"font-12","font-medium","m-b-10"],["formControlName","isBackdatedAttendanceRegularizationAllowedForAdmin",3,"change"],["data-testid","allow-backdate-ar-admin-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-backdate-ar-admin-no-radio",3,"disableRipple","value"],["formControlName","intervalIdForAttendanceRegularization","placeholder","Attendance regularization limit is applicable on","key","intervalId","value","intervalType","data-testid","attendance-regularization-interval-select","data-search-testid","attendance-regularization-interval-select-search",3,"selectionChange","options","required","onlyKey"],["formControlName","allowAttendanceRegularizationAfterAttendanceProcess"],["data-testid","allow-ar-after-attendance-process-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-ar-after-attendance-process-no-radio",3,"disableRipple","value"],["formControlName","isSinglePunchRequiredForAttendanceRegularization",3,"change"],["data-testid","single-punch-required-for-ar-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","single-punch-required-for-ar-no-radio",3,"disableRipple","value"],[1,"row","m-t-20","m-b-20"],["formControlName","isRestrictAttendanceRegularizationOnWeekOff","data-testid","restrict-ar-on-week-off-checkbox"],["formControlName","isRestrictAttendanceRegularizationOnHoliday","data-testid","restrict-ar-on-holiday-checkbox",1,"m-l-20"],[1,"col-sm-5"],[1,"mandatoryField","m-tn-20"],["matInput","","maxlength","2","formControlName","backDaysAttendanceRegularization","required",""],["matInput","","maxlength","2","formControlName","backdatedAttendanceRegularizationAllowedDaysForManager","required",""],["matInput","","maxlength","2","formControlName","backdatedAttendanceRegularizationAllowedDaysForAdmin","required",""],["matInput","","maxlength","2","formControlName","maxAllowedAttendanceRegularization","required",""],["formControlName","allowAttendanceRegularizationForFuture"],["data-testid","allow-ar-future-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-ar-future-no-radio",3,"disableRipple","value"],["formControlName","allowAttendanceRegularizationRequestWithinShiftWindow"],["data-testid","allow-ar-within-shift-window-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-ar-within-shift-window-no-radio",3,"disableRipple","value"],["formControlName","isDocumentRequiredForAttendanceRegularization"],["data-testid","document-required-for-ar-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","document-required-for-ar-no-radio",3,"disableRipple","value"],["formControlName","allowAttendanceRegularizationRequestOnWhatsapp"],["data-testid","allow-ar-on-whatsapp-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-ar-on-whatsapp-no-radio",3,"disableRipple","value"],["formControlName","allowAttendanceRegularizationRequestOnMicrosoftTeams"],["data-testid","allow-ar-on-teams-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-ar-on-teams-no-radio",3,"disableRipple","value"],["formControlName","enableOutdoorDuty","data-testid","enable-outdoor-duty-checkbox",1,"m-b-10",3,"change"],["formControlName","allowBackdateOutdoorDuty",3,"change"],["data-testid","allow-backdate-outdoor-duty-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-backdate-outdoor-duty-no-radio",3,"disableRipple","value"],["formControlName","isBackdatedOnDutyAllowedForManager",3,"change"],["data-testid","backdated-od-allowed-manager-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","backdated-od-allowed-manager-no-radio",3,"disableRipple","value"],["formControlName","isBackdatedOnDutyAllowedForAdmin",3,"change"],["data-testid","backdated-od-allowed-admin-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","backdated-od-allowed-admin-no-radio",3,"disableRipple","value"],["formArrayName","outdoorDutyDetails"],["styleClass","commonDialog","appendTo","body","modal","modal",3,"visibleChange","visible","minY"],[3,"formGroup"],[1,"p-20"],["matInput","","formControlName","onDutyName","maxlength","100","id","newSectionName","name","labelFC","type","text","required","","autofocus","","value",""],[1,"RightDialog-footer"],["id","closeCreateSectionModal","type","button","data-dismiss","modal","value","CANCEL",1,"btn","btn-default","m-r-20",3,"click"],["data-color","mint","data-style","expand-left","data-spinner-size","40","data-spinner-lines","12","type","submit","data-spinner-color","mint",1,"btn","btn-success",3,"click","disabled"],[1,"font-12","font-medium","m-b-10","d-flex","align-items-center"],["formControlName","allowOverallOnDutyLimit",3,"change"],["data-testid","allow-overall-od-limit-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-overall-od-limit-no-radio",3,"disableRipple","value"],[1,"col-sm-4","m-t-20","m-b-20","pl-0"],["formControlName","isRestrictOnDutyOnWeekOff","data-testid","restrict-od-on-week-off-checkbox"],["formControlName","isRestrictOnDutyOnHoliday","data-testid","restrict-od-on-holiday-checkbox",1,"m-l-20"],[1,"col-sm-3"],["matInput","","maxlength","2","formControlName","backDaysOutdoorDuty","required",""],["matInput","","maxlength","2","formControlName","backdatedOnDutyAllowedDaysForManager","required",""],["matInput","","maxlength","2","formControlName","backdatedOnDutyAllowedDaysForAdmin","required",""],[1,"row",3,"formGroupName"],[1,"mandatoryField"],["formControlName","outdoorDutyMasterId","required","",1,"section-dropdown"],[3,"value"],["href","javascript:void(0)","data-toggle","modal","data-target",".bs-example-modal-sm",1,"dropdown-item","text-success","font-14","font-bold",3,"click"],["formControlName","intervalIdForOutdoorDuty","required","",3,"selectionChange"],[1,"col-sm-2","text-center","d-flex","align-items-center"],[1,"btn-thrash","mr-2","m-t-16"],[1,"btn-add","m-t-16"],["matInput","","maxlength","3","formControlName","maxAllowedOutdoorDuty","required",""],[1,"clsdelete-btn","bg-transparent","border-0","p-0","cursor-pointer",3,"click"],[1,"clsadd-btn","bg-transparent","border-0","p-0","cursor-pointer",3,"click","disabled"],[1,"col-sm-2","d-flex","align-items-center"],["formControlName","allowOverallOnDutyLimitForWeekly","data-testid","allow-overall-od-limit-weekly-checkbox",3,"change"],[1,"m-tn-20",3,"ngClass"],["matInput","","maxlength","3","formControlName","overallOnDutyLimitForWeekly"],["formControlName","allowOverallOnDutyLimitForMonthly","data-testid","allow-overall-od-limit-monthly-checkbox",3,"change"],["matInput","","maxlength","3","formControlName","overallOnDutyLimitForMonthly"],["tooltipPosition","right","tooltipStyleClass","sidePane","pTooltip","You can change it, only when project management license is on.","src","assets/images/info.png","alt",""],["formControlName","allowProjectInOnDuty"],["data-testid","allow-project-in-od-yes-radio",1,"m-r-20",3,"disabled","disableRipple","value"],["data-testid","allow-project-in-od-no-radio",3,"disabled","disableRipple","value"],["formControlName","allowOutdoorDutyAfterAttendanceProcess"],["data-testid","allow-od-after-
1attendance-process-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-od-after-attendance-process-no-radio",3,"disableRipple","value"],["formControlName","allowOutdoorDutyForFuture"],["data-testid","allow-od-future-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-od-future-no-radio",3,"disableRipple","value"],["formControlName","isManagerRestrictedForODLimit"],["data-testid","manager-restricted-for-od-limit-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","manager-restricted-for-od-limit-no-radio",3,"disableRipple","value"],["formControlName","isAdminRestrictedForODLimit"],["data-testid","admin-restricted-for-od-limit-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","admin-restricted-for-od-limit-no-radio",3,"disableRipple","value"],["formControlName","isDocumentRequiredForOnDuty"],["data-testid","document-required-for-od-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","document-required-for-od-no-radio",3,"disableRipple","value"],["formControlName","allowOnDutyRequestOnWhatsapp"],["data-testid","allow-od-on-whatsapp-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-od-on-whatsapp-no-radio",3,"disableRipple","value"],["formControlName","allowOnDutyRequestOnMicrosoftTeams"],["data-testid","allow-od-on-teams-yes-radio",1,"m-r-20",3,"disableRipple","value"],["data-testid","allow-od-on-teams-no-radio",3,"disableRipple","value"],["formControlName","enableShiftChangeWeekOffRequest","data-testid","enable-shift-change-week-off-request-checkbox",3,"change","ngClass"],[1,"m-b-24","border-opaque","border-radius4","p-3","w-75"],[1,"container-fluid","bg-Secondary","p-3"],[1,"d-flex"],["formControlName","allowShiftChangeRequest","data-testid","allow-shift-change-request-checkbox",1,"font-12","font-medium",3,"change"],["formControlName","allowWeeklyOffChangeRequest","data-testid","allow-weekly-off-change-request-checkbox",1,"m-l-10","font-12","font-medium",3,"change"],[1,"row","m-t-10","m-b-10"],[1,"font-12","font-medium","m-b-5"],["formControlName","isSpecificShiftAllowed",3,"change"],["data-testid","specific-shift-allowed-all-radio",1,"m-r-20","font-12","font-medium",3,"disableRipple","value"],["data-testid","specific-shift-allowed-custom-radio",1,"font-12","font-medium",3,"disableRipple","value"],[1,"row","p-float-label","cls-socialinput","w-40"],["formControlName","shiftIds","placeholder","Select shift","data-testid","shift-select","data-search-testid","shift-select-search",3,"options","compareWith","multiple","showAllSelectCheckBox","required"],[1,"font-12","font-medium","m-t-10","m-b-16"],[1,"d-flex","align-items-center","m-b-16"],["formControlName","enableWeeklyMaximumRequestLimit","data-testid","enable-weekly-max-request-limit-checkbox",1,"font-12","w-30","font-medium",3,"change"],[1,"w-40"],[1,"d-flex","align-items-center"],["formControlName","enableMonthlyMaximumRequestLimit","data-testid","enable-monthly-max-request-limit-checkbox",1,"font-12","w-30","font-medium",3,"change"],[1,"font-12","font-medium"],["matInput","","maxlength","2","formControlName","maximumRequestLimitInWeek"],["matInput","","maxlength","2","formControlName","maximumRequestLimitInMonth"],["formControlName","enableWeeklyMaximumWeeklyOffBalance","data-testid","enable-weekly-max-weekly-off-balance-checkbox",1,"font-12","w-30","font-medium",3,"change"],["formControlName","enableMonthlyMaximumWeeklyOffBalance","data-testid","enable-monthly-max-weekly-off-balance-checkbox",1,"font-12","w-30","font-medium",3,"change"],["matInput","","maxlength","3","formControlName","maximumWeeklyWeekOffBalance"],["matInput","","maxlength","3","formControlName","maximumMonthlyWeekOffBalance"],[1,"font-12","font-medium","m-b-16"],["formControlName","allowedBackdatedRequest","data-testid","allowed-backdated-request-checkbox",1,"font-12","w-30","font-medium",3,"change"],["formControlName","allowedFuturedatedRequest","data-testid","allowed-futuredated-request-checkbox",1,"font-12","w-30","font-medium",3,"change"],["matInput","","maxlength","2","formControlName","backdatedRequestAllowedDays"],["matInput","","maxlength","2","formControlName","futuredatedRequestAllowedDays"],["formControlName","enableWifiBasedAttendance","data-testid","enable-wifi-check-in-checkbox",1,"m-b-16"]],template:function(i,o){if(1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),e.EFF(5,"Policy name"),e.k0s(),e.nrm(6,"input",4),e.DNE(7,bt,3,2,"mat-error"),e.k0s()()(),e.j41(8,"div",5)(9,"h3",6),e.EFF(10,"Select whichever is applicable"),e.k0s(),e.j41(11,"section",7)(12,"div",8)(13,"mat-checkbox",9),e.EFF(14,"Timesheet"),e.k0s()(),e.DNE(15,Wt,4,1,"div"),e.j41(16,"div")(17,"mat-checkbox",10),e.bIt("change",function(r){return o.isMobilecheckIn(r.checked)}),e.EFF(18,"Mobile check-in "),e.k0s(),e.DNE(19,hn,18,9,"div",11),e.k0s(),e.j41(20,"div")(21,"mat-checkbox",12),e.bIt("change",function(r){return o._service.onAR(r.checked)}),e.EFF(22," Attendance Regularization "),e.k0s(),e.DNE(23,zn,70,30,"div",11),e.k0s(),e.DNE(24,$i,4,1,"div")(25,yo,3,5)(26,Oo,3,0,"div"),e.j41(27,"div",13)(28,"mat-checkbox",14),e.EFF(29," Integration with WeMe "),e.k0s()()()()()),2&i){let l;e.Y8G("formGroup",o._service.checkInForm),e.R7$(7),e.vxM(o._service.checkInForm.get("inOutPolicyName").dirty||o._service.checkInForm.get("inOutPolicyName").touched?7:-1),e.R7$(5),e.Y8G("hidden",!0),e.R7$(3),e.vxM(o._service.isAdvanceSettings?15:-1),e.R7$(4),e.vxM(o._service.checkInForm.get("enableMobileCheckIn").value?19:-1),e.R7$(4),e.vxM(null!=(l=o._service.checkInForm.get("enableAttendanceRegularization"))&&l.value?23:-1),e.R7$(),e.vxM(o.removeOnDutyForStartup?-1:24),e.R7$(),e.vxM(o._service.isAdvanceSettings?25:-1),e.R7$(),e.vxM(o.isEnableWifiAttend
1ance?26:-1)}},dependencies:[b.YU,c.qT,c.me,c.BC,c.cb,c.YS,c.tU,c.j4,c.JD,c.$R,c.v8,v.j,v.M,v.b,q.fg,G.So,I.VT,I._g,pt.g,ht.M,Ct.lG,V.m_,_e.lr,me.K],styles:[".infoicon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:30%}  .cls-policy-allowpunch p-datepicker .p-datepicker .p-inputtext{border-width:0 0 1px 0!important;box-shadow:none!important;outline:none!important}  .cls-policy-allowpunch p-datepicker .p-datepicker .p-inputtext:disabled{background:transparent;opacity:.6}"]})}}return n})();var Fo=s(895);function xo(n,a){1&n&&(e.j41(0,"div",2)(1,"h5",3),e.EFF(2,"Request"),e.k0s()(),e.j41(3,"div",4)(4,"div",5)(5,"div",7),e.nrm(6,"app-to-ccs-request",8),e.k0s()()()),2&n&&(e.R7$(6),e.Y8G("isReview",!0))}function Ro(n,a){if(1&n&&(e.j41(0,"mat-chip-option"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.JRh(t.value)}}function Mo(n,a){if(1&n&&(e.j41(0,"mat-chip-option"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" From: ",t.value," days ")}}function Io(n,a){if(1&n&&(e.j41(0,"mat-chip-option"),e.
1EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" To: ",t.value," days ")}}function wo(n,a){if(1&n&&e.DNE(0,Mo,2,1,"mat-chip-option")(1,Io,2,1,"mat-chip-option"),2&n){const t=a.$index;e.vxM(0===t?0:-1),e.R7$(),e.vxM(1===t?1:-1)}}function Do(n,a){if(1&n&&e.Z7z(0,wo,2,2,null,null,e.fX1),2&n){const t=e.XpG(2);e.Dyx(t._service.advance_applicability.selectedOuValues)}}function Ao(n,a){if(1&n&&(e.j41(0,"mat-chip-option"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t.value,"")}}function To(n,a){if(1&n&&e.Z7z(0,Ao,2,1,"mat-chip-option",null,e.fX1),2&n){const t=e.XpG(2);e.Dyx(t._service.advance_applicability.selectedOuValues)}}function Po(n,a){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-to-ccs-step-one"),e.DNE(2,xo,7,1),e.j41(3,"div",2)(4,"h5",3),e.EFF(5),e.nI1(6,"whitelabel"),e.k0s()(),e.j41(7,"div",4)(8,"div",5)(9,"div",6)(10,"mat-chip-listbox"),e.Z7z(11,Ro,2,1,"mat-chip-option",null,e.fX1),e.k0s()()()(),e.j41(13,"div",2)(14,"h5",3),e.EFF(15),e.nI1(16,"whitelabel"),e.k0s()(),e.j41(17,"div",4)(18,"div",5)(19,"div",6)(20,"mat-chip-listbox"),e.DNE(21,Do,2,0)(22,To,2,0),e.k0s()()()()()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t._service.shouldShowRequestStep()&&t._service.isAdvanceSettings?2:-1),e.R7$(3),e.SpI("Applicability (",e.bMT(6,5,null==t._service.applicability.selectedOu?null:t._service.applicability.selectedOu.value),") "),e.R7$(6),e.Dyx(t._service.applicability.selectedOuValues),e.R7$(4),e.SpI("Advance Applicability (",null!=t._service.advance_applicability.selectedOu&&t._service.advance_applicability.selectedOu.value?null==t._service.advance_applicability.selectedOu?null:t._service.advance_applicability.selectedOu.value:e.bMT(16,7,"None"),") "),e.R7$(6),e.vxM(15===(null==t._service.advance_applicability.selectedOu?null:t._service.advance_applicability.selectedOu.key)?21:-1),e.R7$(),e.vxM(15!==(null==t._service.advance_applicability.selectedOu?null:t._service.advance_applicability.selectedOu.key)?22:-1)}}function So(n,a){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-hrone-spinner",9),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("isShown",t._service.isSpinner)}}let Eo=(()=>{class n{constructor(t){this._service=t}ngOnInit(){this._service.checkInForm.enabled&&this._service.checkInForm.disable()}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-to-ccs-review"]],standalone:!1,decls:2,vars:2,consts:[[1,"holiday-step4-content"],[1,"clsspinner"],[1,"custome-header-bg","m-b-20"],[1,"m-b-0"],[1,"container-fluid"],[1,"row","m-t-10"],[1,"col-md-10","m-t-10","m-b-10"],[1,"col-md-12","m-t-10","m-b-10"],[3,"isReview"],[3,"isShown"]],template:function(i,o){1&i&&e.DNE(0,Po,23,9,"div",0)(1,So,2,1,"div",1),2&i&&(e.vxM(o._service.isSpinner?-1:0),e.R7$(),e.vxM(o._service.isSpinner?1:-1))},dependencies:[w.uI,w.gq,_t.B,z,pe,Fo.W],styles:[".clsspinner[_ngcontent-%COMP%]{position:absolute;inset:0}"]})}}return n})();function jo(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"div",9)(2,"div",32)(3,"h3",33),e.EFF(4,"Check in policy"),e.k0s()(),e.j41(5,"div",34)(6,"mat-slide-toggle",35),e.mxI("ngModelChange",function(o){e.eBV(t);const l=e.XpG(2);return e.DH7(l._service.isAdvanceSettings,o)||(l._service.isAdvanceSettings=o),e.Njj(o)}),e.j41(7,"span",36),e.EFF(8),e.k0s()()(),e.j41(9,"button",37),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.close())}),e.j41(10,"em",38),e.EFF(11," clear "),e.k0s()()()()}if(2&n){const t=e.XpG(2);e.R7$(5),e.Y8G("hidden",!0),e.R7$(),e.R50("ngModel",t._service.isAdvanceSettings),e.R7$(2),e.JRh(t._service.isAdvanceSettings?"Advance":"Basic")}}function No(n,a){1&n&&(e.j41(0,"cdk-step",20)(1,"div",14)(2,"div",15)(3,"div",22),e.nrm(4,"app-to-ccs-request"),e.k0s(),e.j41(5,"div",17)(6,"button",39),e.EFF(7,"Previous"),e.k0s(),e.j41(8,"button",40),e.EFF(9,"Next"),e.k0s()()()()())}function $o(n,a){1&n&&e.nrm(0,"app-to-ccs-review")}function Vo(n,a){if(1&n){const t=e.RV6();e.j41(0,"p-drawer",7),e.mxI("visibleChange",function(o){e.eBV(t);const l=e.XpG();return e.DH7(l._service.display_form,o)||(l._service.display_form=o),e.Njj(o)}),e.DNE(1,jo,12,3,"ng-template",null,0,e.C5r),e.j41(3,"div",8)(4,"div",9)(5,"div",10)(6,"div",11)(7,"app-hrone-stepper",12,3),e.bIt("selectionChange",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l.selectionChange(o))}),e.j41(9,"cdk-step",13)(10,"div",14)(11,"div",15)(12,"div",16),e.nrm(13,"app-to-ccs-step-one"),e.k0s(),e.j41(14,"div",17)(15,"span",18)(16,"button",19),e.EFF(17,"Next"),e.k0s()()()()()(),e.DNE(18,No,10,0,"cdk-step",20),e.j41(19,"cdk-step",21)(20,"div",14)(21,"div",15)(22,"div",22),e.nrm(23,"app-to-ccs-applicability"),e.k0s(),e.j41(24,"div",17)(25,"button",23),e.EFF(26,"Previous"),e.k0s(),e.j41(27,"button",24),e.EFF(28,"Next"),e.k0s()()()()(),e.j41(29,"cdk-step",25)(30,"div",14)(31,"div",15)(32,"div",22),e.nrm(33,"app-to-ccs-advance-applicability"),e.k0s(),e.j41(34,"div",17)(35,"button",26),e.EFF(36,"Previous"),e.k0s(),e.j41(37,"button",27),e.EFF(38,"Next"),e.k0s()()()()(),e.j41(39,"cdk-step",28)(40,"div",14)(41,"div",15)(42,"div",16),e.DNE(43,$o,1,0,"app-to-ccs-review"),e.k0s(),e.j41(44,"div",17)(45,"button",29),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o._service.checkInForm.enable())}),e.EFF(46,"Previous"),e.k0s(),e.j41(47,"button",30),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.saveUpdatePolicy())}),e.EFF(48),e.k0s()()()()()()()()()()()}if(2&n){const t=e.sdS(8),i=e.XpG();e.Y8G("closeOnEscape",!1),e.R50("visible",i._service.display_form),e.Y8G("dismissible",!1),e.R7$(7),e.Y8G("selectedIndex",0),e.R7$(8),e.Y8G("tooltipDisabled",!i.checkWemeSelected()),e.R7$(),e.Y8G("disabled",i.checkValid()||i.checkWemeSelected()||i.checkValidOd()||i.checkValidShiftWeekOff()),e.R7$(2),e.vxM(i._service.shouldShowRequestStep()&&i._service.isAdvanceSettings?18:-1),e.R7$(9),e.Y8G("disabled",!(null!=i._service.applicability.selectedOuValues&&i._service.applicability.selectedOuValues.length)),e.R7$(10),e.Y8G("disabled",i.onDisabled()),e.R7$(6),e.vxM(t.selectedIndex===(i._service.shouldShowRequestStep()&&i._service.isAdvanceSettings?4:3)?43:-1),e.R7$(4),e.Y8G("ladda",i._service._progressButton.buttons[0].progress),e.R7$(),e.SpI(" ",i._service._progressButton.buttons[0].buttonName," ")}}function Go(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",41)(1,"h5",42),e.EFF(2,"Check in policy"),e.k0s(),e.j41(3,"div",43)(4,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o._service.isReviewSidebar=!1)}),e.j41(5,"em",38),e.EFF(6," clear "),e.k0s()()()()}}function qo(n,a){1&n&&(e.j41(0,"div",45),e.nrm(1,"app-to-ccs-review"),e.k0s())}function zo(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",46)(1,"div",8)(2,"div",9)(3,"div",47)(4,"span",48)(5,"input",49),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.confirmDialog.show=!0)}),e.k0s()(),e.j41(6,"span",48)(7,"input",50),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onEdit())}),e.k0s()()()()()()}if(2&n){const t=e.XpG(2);e.R7$(4),e.FS9("pTooltip",t._service.rights.inactive?"":t._shared.validationMessages.parAccessDenied),e.R7$(),e.Y8G("disabled",!t._service.rights.inactive),e.R7$(),e.FS9("pTooltip",t._service.rights.update?"":t._shared.validationMessages.parAccessDenied),e.R7$(),e.Y8G("disabled",!t._service.rights.update)}}function Wo(n,a){if(1&n&&e.DNE(0,zo,8,4,"div",46),2&n){const t=e.XpG();e.vxM(!t._service.isSpinner&&null!=t._service.checkInData&&t._service.checkInData.isActive?0:-1)}}let Lo=(()=>{class n{constructor(t,i,o,l){this._service=t,this._httpService=i,this._snackbar=o,this._shared=l,this.confirmDialog={show:!1}}ngOnInit(){this._shared.isFeatureAvailable(255).then(t=>this._service.isAddOnFeatureAvailable=t),this._shared.isFeatureAvailable(262).then(t=>this._service.isLocationTrackingAvailable=t)}close(){this._shared._confirmDialog.confirm({message:this._shared.confirmDialogData.message,header:this._shared.confirmDialogData.header,accept:()=>{this._service.display_form=!1},reject:()=>{}})}checkValid(){return!this._service.checkInForm.valid||!(this._service.checkInForm.get("enableMobileCheckIn")?.value||this._service.checkInForm.get("enableAttendanceRegularization")?.value||this._service.checkInForm.get("enableOutdoorDuty")?.value||this._service.checkInForm.get("enableWebCheckIn")?.value||this._service.checkInForm.get("enableShiftChangeWeekOffRequest")?.value||this._service.checkInForm.get("enableWifiBasedAttendance")?.value)}checkValidOd(){return!(!this._service.checkInForm.get("allowOverallOnDutyLimit")?.value||this._service.checkInForm.get("allowOverallOnDutyLimitForWeekly")?.value||this._service.checkInForm.get("allowOverallOnDutyLimitForMonthly")?.value)}checkWemeSelected(){const t=this._service.checkInForm.getRawValue();if(t.inOutPolicyId&&t.outdoorDutyDetails.length&&t.enableOutdoorDuty&&!t.enableMobileCheckIn&&!t.enableAttendanceRegularization){let i=[];
1return t.outdoorDutyDetails.forEach(l=>{i=this._service.dutyTypeList.filter(r=>r.onDutyMasterId===l.outdoorDutyMasterId)}),!!i.filter(l=>l.onDutyName.toLowerCase()==="timesheet(weme)".toLowerCase()).length}return!1}checkValidShiftWeekOff(){const t=this._service.checkInForm;return!!t.get("enableShiftChangeWeekOffRequest")?.value&&!t.get("allowShiftChangeRequest")?.value&&!t.get("allowWeeklyOffChangeRequest")?.value}onDisabled(){return 0!==this._service.advance_applicability.selectedOu.key&&!this._service.advance_applicability.selectedOuValues.length}selectionChange(t){t.selectedIndex+1>0&&this._service.checkInForm?.disabled&&this._service.checkInForm.enable()}onEdit(){this._service.display_form=!0,this._service.isReviewSidebar=!1,this._service.checkInForm.enable()}inactivateCheckInPolicy(){this._service.checkInData&&this._httpService.Delete("/api/timeoffice/setting/checkin-checkout/"+this._service.checkInData.inOutPolicyId).subscribe(i=>{"0"===i.validationType&&(this._service.isReviewSidebar=!1,this._service.getCheckInCards()),this._snackbar.Alert(i.message,i.validationType)})}saveUpdatePolicy(){this._service.createCheckInPolicy().then(t=>{})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g),e.rXU(x.k),e.rXU(R.r),e.rXU(M.d))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-checkin-checkout-setting-form"]],standalone:!1,decls:9,vars:6,consts:[["header",""],["content",""],["footer",""],["cdkStepper",""],["modal","true","appendTo","body","styleClass","wizard-sidebar shw-rside-90 sideBarPrimeng","position","right",3,"closeOnEscape","visible","dismissible"],["modal","true","position","right","appendTo","body","styleClass","shw-rside-60 sideBarPrimeng",3,"visibleChange","closeOnEscape","visible","dismissible"],[3,"confirm","confirmDialog","subHeader"],["modal","true","appendTo","body","styleClass","wizard-sidebar shw-rside-90 sideBarPrimeng","position","right",3,"visibleChange","closeOnEscape","visible","dismissible"],[1,"container-fluid","p-0"],[1,"row"],[1,"col-12"],[1,"card","hrone-stepper-navheight-94"],[3,"selectionChange","selectedIndex"],["label","Policy"],[1,"centered-content"],[1,"p-l-20","p-r-20"],[1,"checkout-setting-height","scrollbar"],[1,"btncls","wiz-bottom","p-r-0"],["tooltipPosition","top","pTooltip","In case you are not selecting 'Integration of WeMe' than change applicability or select On duty type other than 'Timesheet(WeMe)'.",3,"tooltipDisabled"],["type","button","cdkStepperNext","","data-testid","checkin-policy-next-button",1,"btn","btn-success",3,"disabled"],["label","Request"],["label","Applicability"],[1,"checkout-setting-height"],["type","button","cdkStepperPrevious","","data-testid","checkin-applicability-previous-button",1,"btn","btn-default","m-r-20"],["type","button","cdkStepperNext","","data-testid","checkin-applicability-next-button",1,"btn","btn-success",3,"disabled"],["label","Advance applicability"],["type","button","cdkStepperPrevious","","data-testid","checkin-advance-applicability-previous-button",1,"btn","btn-default","m-r-20"],["type","button","cdkStepperNext","","data-testid","checkin-advance-applicability-next-button",1,"btn","btn-success",3,"disabled"],["label","Review"],["type","button","cdkStepperPrevious","","data-testid","checkin-review-previous-button",1,"btn","btn-default","m-r-20",3,"click"],["data-color","mint","data-style","expand-left","data-spinner-size","40","data-spinner-lines","12","data-spinner-color","mint","type","button","data-testid","checkin-save-button",1,"btn","btn-success","btn-h-36",3,"click","ladda"],[1,"container-fluid"],[1,"clswizleft"],[1,"clswiz_title","font-semibold","font-20","card-title-length"],[1,"customslide","cls-tgl-btn",3,"hidden"],["color","dark",1,"",3,"ngModelChange","ngModel"],[1,"font-semibold","font-16","d-flex","align-items-center","justify-content-center","m-l-5"],["data-testid","checkin-setting-close-button",1,"btnclose","border-0","bg-transparent","cursor-pointer","p-0","contentPrimary",3,"click"],[1,"material-icons"],["type","button","cdkStepperPrevious","","data-testid","checkin-request-previous-button",1,"btn","btn-default","m-r-20"],["type","button","cdkStepperNext","","data-testid","checkin-request-next-button",1,"btn","btn-success"],[1,"_flyer-header","d-flex","justify-content-between","align-items-center","fixed-header"],[1,"heading","h-extra-small-font","m-0","text-uppercase","d-flex","align-items-center","justify-content-center"],[1,"_f-h_cta","d-flex","align-items-center"],["data-testid","checkin-review-close-button",1,"btnclose","border-0","bg-transparent","cursor-pointer","p-0","contentPrimary",3,"click"],[1,"flyer-content"],[1,"flyer-footer","d-flex","align-items-center","justify-content-end"],[1,"col-md-12","text-right"],["tooltipPosition","top",3,"pTooltip"],["type","button","value","INACTIVATE","data-testid","checkin-inactivate-button",1,"btn","btn-default","btn-h-40","img-rounded","m-r-20",3,"click","disabled"],["type","button","value","EDIT","data-testid","checkin-edit-button",1,"btn","btn-success","btn-h-40","img-rounded",3,"click","disabled"]],template:function(i,o){if(1&i){const l=e.RV6();e.DNE(0,Vo,49,12,"p-drawer",4),e.j41(1,"p-drawer",5),e.mxI("visibleChange",function(d){return e.eBV(l),e.DH7(o._service.isReviewSidebar,d)||(o._service.isReviewSidebar=d),e.Njj(d)}),e.DNE(2,Go,7,0,"ng-template",null,0,e.C5r)(4,qo,2,0,"ng-template",null,1,e.C5r)(6,Wo,1,1,"ng-template",null,2,e.C5r),e.k0s(),e.j41(8,"app-hrone-confirm-dialog",6),e.bIt("confirm",function(){return e.eBV(l),e.Njj(o.inactivateCheckInPolicy())}),e.k0s()}2&i&&(e.vxM(o._service.display_form?0:-1),e.R7$(),e.Y8G("closeOnEscape",!1),e.R50("visible",o._service.isReviewSidebar),e.Y8G("dismissible",!1),e.R7$(7),e.Y8G("confirmDialog",o.confirmDialog)("subHeader",null==o._service.checkInData?null:o._service.checkInData.inOutPolicyName))},dependencies:[c.BC,c.vS,be._s,ye.aP,V.m_,Oe.S,Fe.sG,xe.d,T.VI,T.v5,T.FK,ce,de,z,Eo,pe],styles:["form[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{font-size:inherit}small[_ngcontent-%COMP%], span[_ngcontent-%COMP%], b[_ngcontent-%COMP%]{font-size:100%}.h-extra-large-font[_ngcontent-%COMP%]{font-size:2.285em;font-family:Public Sans,sans-serif;color:#1b2436;font-weight:600;line-height:1.25;margin:0}.h-large-font[_ngcontent-%COMP%]{font-size:1.714em;font-family:Public Sans,sans-serif;color:#28314b;font-weight:500;line-height:1.25;margin:0}.h-medium-font[_ngcontent-%COMP%]{font-size:1.571em;font-family:Public Sans,sans-serif;color:#282c3f;font-weight:500;line-height:1.25;margin:0}.h-small-font[_ngcontent-%COMP%]{font-size:1.285em;font-family:Public Sans,sans-serif;color:#282c3f;font-weight:400;line-height:1.25;margin:0}.h-extra-small-font[_ngcontent-%COMP%]{font-size:1.142em;font-family:Public Sans,sans-serif;color:#282c3f;font-weight:400;line-height:1.25;margin:0}.t-14-font[_ngcontent-%COMP%]{font-size:1em;font-family:Public Sans,sans-serif;color:#28314b;line-height:1.25}@media(prefers-color-scheme:dark){[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#fff}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc;border-radius:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#888}}@media screen and (max-width:1920px){body[_ngcontent-%COMP%]{font-size:16px}}@media screen and (max-width:1440px){body[_ngcontent-%COMP%]{font-size:14px}}
1@media screen and (max-width:1366px){body[_ngcontent-%COMP%]{font-size:13.28px}}@media screen and (max-width:1280px){body[_ngcontent-%COMP%]{font-size:12.44px}}.sideBarPrimeng[_ngcontent-%COMP%]{width:40%}.notification-wrapper[_ngcontent-%COMP%]   .flyer-content[_ngcontent-%COMP%]{height:calc(100vh - 117px)}._flyer-wrapper.flyer-with-left-panel[_ngcontent-%COMP%]   ._flyer-header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{max-width:228px;padding:24px 0 24px 20px;background-color:#f5f7fa}._flyer-wrapper.flyer-with-left-panel[_ngcontent-%COMP%]   ._flyer-header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-size:1.571em;color:#22283b}._flyer-wrapper.flyer-with-left-panel[_ngcontent-%COMP%]   ._flyer-header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{width:calc(100% - 228px);padding:12px 16px 12px 40px}.cls-lbl[_ngcontent-%COMP%]{font-size:1.142em;color:#272c3e;line-height:1.5;font-weight:600;margin:0 0 8px}.cls-hrline[_ngcontent-%COMP%]{border:4px solid #f5f7fa;margin:24px 0}.cls-subtext[_ngcontent-%COMP%]{font-size:1em;color:#272c3e;line-height:1.5;font-weight:500}.cls-note[_ngcontent-%COMP%]{font-size:.857em;color:#6f778b}.cls-sublbl[_ngcontent-%COMP%]{font-size:1em;color:#6f778b}.cls-sublbl[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .cls-help[_ngcontent-%COMP%]{width:16px}.checkout-setting-height[_ngcontent-%COMP%]{height:calc(100vh - 162px)}.cls-tgl-btn[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:end;width:70%;top:29px}"]})}}return n})();var Xo=s(39616),P=s(1184),Bo=s(28429),Yo=s(58779),Ho=s(55811),Jo=s(36111),he=s(26818),Uo=s(13675);function Ko(n,a){1&n&&e.nrm(0,"app-view-permission-denied")}function Zo(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",23),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.displaySettingsSidebar=!0)}),e.nrm(1,"em",24),e.k0s()}}function Qo(n,a){if(1&n){const t=e.RV6();e.j41(0,"mat-chip-option",31),e.bIt("removed",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.removeFilter("active"))}),e.EFF(1," Active "),e.j41(2,"mat-icon",32),e.EFF(3,"clear"),e.k0s()()}}function ea(n,a){if(1&n){const t=e.RV6();e.j41(0,"mat-chip-option",31),e.bIt("removed",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.removeFilter("inactive"))}),e.EFF(1," Inactive "),e.j41(2,"mat-icon",32),e.EFF(3,"clear"),e.k0s()()}}function ta(n,a){if(1&n){const t=e.RV6();e.j41(0,"mat-chip-option",31),e.bIt("removed",function(){const o=e.eBV(t).$implicit,l=e.XpG(3);return e.Njj(l.removeFilter("name",o))}),e.EFF(1),e.j41(2,"mat-icon",32),e.EFF(3,"clear"),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(3);e.R7$(),e.SpI(" ",i.getCheckInPolicyName(t)," ")}}function na(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",16)(1,"div",25)(2,"div",26)(3,"div",27)(4,"span",28),e.EFF(5," Filters Applied : "),e.k0s()(),e.j41(6,"div",29)(7,"mat-chip-listbox",null,0),e.DNE(9,Qo,4,0,"mat-chip-option")(10,ea,4,0,"mat-chip-option"),e.Z7z(11,ta,4,1,"mat-chip-option",null,e.fX1),e.j41(13,"a",30),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.removeFilter("all"))}),e.EFF(14," CLEAR ALL "),e.k0s()()()()()()}if(2&n){const t=e.XpG(2);e.R7$(9),e.vxM(t.applied_filter.active?9:-1),e.R7$(),e.vxM(t.applied_filter.inactive?10:-1),e.R7$(),e.Dyx(t.applied_filter.selectedList)}}function ia(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",33)(1,"span",39),e.nrm(2,"i",40),e.k0s(),e.j41(3,"mat-menu",null,1)(5,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,l=e.XpG(2);return e.Njj(l._service.viewClicked(o,!0))}),e.EFF(6,"Clone"),e.k0s()()()}if(2&n){let t;const i=e.sdS(4),o=e.XpG().$implicit;e.R7$(),e.Y8G("matMenuTriggerFor",i),e.R7$(4),e.BMQ("data-testid","checkin-home-clone-"+(null==((null==o||null==o.inOutPolicyName?null:o.inOutPolicyName.toString())||"")||null==(t=((null==o||null==o.inOutPolicyName?null:o.inOutPolicyName.toString())||"").toLowerCase())?null:t.replaceAll(" ","-")))}}function oa(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",20),e.DNE(1,ia,7,2,"div",33),e.j41(2,"div",34),e.bIt("click",function(){const o=e.eBV(t).$implicit,l=e.XpG(2);return e.Njj(l._service.viewClicked(o))})("keydown",function(){const o=e.eBV(t).$implicit,l=e.XpG(2);return e.Njj(l._service.viewClicked(o))}),e.j41(3,"div",35)(4,"div")(5,"div",36),e.nI1(6,"tooltip"),e.EFF(7),e.k0s(),e.j41(8,"div"),e.EFF(9),e.k0s()(),e.j41(10,"p",37),e.EFF(11,"APPLICABLE ON"),e.k0s(),e.j41(12,"p",38),e.EFF(13),e.k0s()()()()}if(2&n){let t;const i=a.$implicit,o=e.XpG(2);e.R7$(),e.vxM(o._service.rights.create?1:-1),e.R7$(),e.BMQ("data-testid","checkin-home-card-"+(null==((null==i||null==i.inOutPolicyName?null:i.inOutPolicyName.toString())||"")||null==(t=((null==i||null==i.inOutPolicyName?null:i.inOutPolicyName.toString())||"").toLowerCase())?null:t.replaceAll(" ","-"))),e.R7$(2),e.ZvI("",i.isActive?"card-title":"card-title-arc"," m-0 w-90"),e.R7$(),e.Y8G("pTooltip",i.inOutPolicyName)("tooltipDisabled",e.i5U(6,13,i.inOutPolicyName,20)),e.R7$(2),e.SpI("",i.inOutPolicyName," "),e.R7$(),e.ZvI("",i.isActive?"text-success cls-active":"text-archive cls-active"," m-b-20"),e.R7$(),e.SpI(" ",i.isActive?"ACTIVE":"INACTIVE",""),e.R7$(4),e.JRh(i.organization)}}function aa(n,a){1&n&&e.nrm(0,"app-cardloader")}function la(n,a){1&n&&(e.j41(0,"div"),e.nrm(1,"app-blank-state-one",42),e.k0s())}function ra(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o._service.getCheckInCards(!0,o._service.isFilterApplied,o.filterReqData))}),e.EFF(1,"SHOW MORE"),e.k0s()}}function ca(n,a){if(1&n){const t=e.RV6();
1e.j41(0,"div",2)(1,"div",5)(2,"div",6)(3,"div",7)(4,"h3",8),e.EFF(5,"Check in policy"),e.k0s(),e.nrm(6,"app-show-more-content",9),e.k0s(),e.j41(7,"div",10)(8,"div",11),e.DNE(9,Zo,2,0,"button",12),e.j41(10,"span",13)(11,"input",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openCreateWizard())}),e.k0s()()()()(),e.j41(12,"div",15),e.DNE(13,na,15,2,"div",16),e.j41(14,"div",17)(15,"button",18),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openFilterFlyer())}),e.nrm(16,"i",19),e.k0s()()(),e.j41(17,"div",6),e.Z7z(18,oa,14,16,"div",20,e.fX1),e.k0s(),e.DNE(20,aa,1,0,"app-cardloader"),e.k0s(),e.DNE(21,la,2,0,"div"),e.j41(22,"div",21),e.DNE(23,ra,2,0,"button",22),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(9),e.vxM(t.setting.length?9:-1),e.R7$(),e.FS9("pTooltip",t._service.rights.create?"":t._shared.validationMessages.parAccessDenied),e.R7$(),e.Y8G("disabled",!t._service.rights.create),e.R7$(2),e.vxM(t._service.isFilterApplied?13:-1),e.R7$(5),e.Dyx(t._service.checkInGrid),e.R7$(2),e.vxM(t._service.isLoading===t._service.loadEnum.loading?20:-1),e.R7$(),e.vxM(t._service.isLoading===t._service.loadEnum.empty?21:-1),e.R7$(2),e.vxM(t._service.showMoreGrid?23:-1)}}function sa(n,a){if(1&n){const t=e.RV6();e.j41(0,"app-time-office-filter",44),e.bIt("close",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l.closeFilterFlyer(o))})("getAppliedFilter",function(o){e.eBV(t);const l=e.XpG();return e.Njj(l.applyFilter(o))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("filter",t.filter)("display_filter_flyer",t.display_filter_flyer)("dropdownList",t._service.filterDropDown)}}function da(n,a){1&n&&e.nrm(0,"app-checkin-checkout-setting-form")}function _a(n,a){if(1&n){const t=e.RV6();e.j41(0,"app-common-settings",45),e.bIt("afterClosed",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.displaySettingsSidebar=!1)}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("setting",t.setting)}}let ma=(()=>{class n{constructor(t,i){this._service=t,this._shared=i,this.display_filter_flyer=!1,this.filter={active:!0,inactive:!1,selectedList:[]},this.applied_filter={active:!1,inactive:!1,selectedList:[]},this.filterReqData=(0,C.cloneDeep)(y),this.displaySettingsSidebar=!1,this.setting=[]}ngOnInit(){this._service.accessPermissions(),this._service.rights.view&&(this._service.getShiftDropDowns(),this._service.getCheckInCards(),this._service.createCheckInPolicyForm(new D),this._service.setButtons(),this._shared.getCommonSettingsList().then(()=>{this.setting=this._shared.canDisplaySettings(148)}))}openCreateWizard(){this._service.resetFormData(),this._service.getDynamicRequestSettings(),this._service.display_form=!0,this._service.getOnDutyType(0)}getCheckInPolicyName(t){return this._service.filterDropDown.find(o=>o.inOutPolicyId==t).inOutPolicyName}closeFilterFlyer(t){this.display_filter_flyer=!1}applyFilter(t){if(this._service.isFilterApplied=!0,this.display_filter_flyer=!1,this.filter=t,this.applied_filter=t,this.filterReqData.inOutPolicyId=this.filter.selectedList.join(","),this.filter.active&&!this.filter.inactive)this.filterReqData.activeStatus="1";else if(!this.filter.active&&this.filter.inactive)this.filterReqData.activeStatus="0";else{if(!this.filter.active&&!this.filter.inactive)return this.filterReqData.activeStatus="1",this.filter.active=!0,void(this._service.isFilterApplied=!1);this.filterReqData.activeStatus="1,0"}this._service.filterReqData=this.filterReqData,this._service.getCheckInCards(!1,!0,this.filterReqData)}removeFilter(t,i=0){switch(t){case"active":if(this.filter.active=!1,this.applied_filter.active=!1,!this.filter.inactive&&!this.filter.selectedList.length)return this.filter.active=!0,this._service.isFilterApplied=!1,void this._service.getCheckInCards(!1,!1);this.filterReqData.activeStatus="0",this.filter.inactive||(this.filter.active=!0,this.filterReqData.activeStatus="1"),this._service.getCheckInCards(!1,!0,this.filterReqData);break;case"inactive":if(this.filter.inactive=!1,this.applied_filter.inactive=!1,!this.filter.active&&!this.filter.selectedList.length)return this.filter.active=!0,this._service.isFilterApplied=!1,void this._service.getCheckInCards(!1,!1);this.filterReqData.activeStatus="1",this._service.getCheckInCards(!1,!0,this.filterReqData);break;case"name":if(this.filter.selectedList=this.filter.selectedList.filter(o=>o!=i),this.applied_filter.selectedList=this.applied_filter.selectedList.filter(o=>o!=i),this.filter.active&&!this.filter.inactive&&!this.filter.selectedList.length)return this._service.isFilterApplied=!1,void this._service.getCheckInCards(!1,!1);this.filterReqData.inOutPolicyId=this.filter.selectedList.join(","),this._service.getCheckInCards(!1,!0,this.filterReqData);break;case"all":this.filter={active:!0,inactive:!1,selectedList:[]},this.applied_filter={active:!1,inactive:!1,selectedList:[]},this._service.isFilterApplied=!1,this._service.getCheckInCards(!1,!1)}}openFilterFlyer(){this.display_filter_flyer=!0,this._service.getAllCheckInCards()}ngOnDestroy(){this._service.isFilterApplied=!1}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g),e.rXU(M.d))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-checkin-checkout-sett
1ing-home"]],standalone:!1,decls:6,vars:5,consts:[["chipList",""],["menu","matMenu"],[1,"leave-setup-content"],["keyId","inOutPolicyId","nameValue","inOutPolicyName",3,"filter","display_filter_flyer","dropdownList"],[3,"setting"],[1,"container-fluid"],[1,"row"],[1,"col-sm-8"],[1,"cls-main-heading"],["width","100%","text","You can create & configure all type of check in check out policies from here.",1,"showmore-text"],[1,"col-sm-4","text-right"],[1,"d-flex","align-items-center","justify-content-end"],["data-testid","checkin-home-settings-button",1,"btn","btn-secondary","icon","d-flex","align-items-center","mt-2","mt-md-0","m-r-8"],["tooltipPosition","top",1,"dl",3,"pTooltip"],["type","button","value","ADD POLICY","data-testid","checkin-home-add-policy-button",1,"btn","btn-success","font-14","font-bold","border-radius4",3,"click","disabled"],[1,"container-fluid","filter-wrapper"],[1,"row","mb-3","pb-2"],[1,"filters-global-float-btn"],["data-testid","checkin-home-filter-button",1,"right-side-toggle-custom","filter-icon","pull-right","m-l-10",3,"click"],[1,"fa-light","fa-filter-list"],[1,"col","card-min20"],[1,"text-center"],["id","btnShowMore","data-testid","checkin-home-show-more-button",1,"btn","btn-default","show-more","btn-secondary"],["data-testid","checkin-home-settings-button",1,"btn","btn-secondary","icon","d-flex","align-items-center","mt-2","mt-md-0","m-r-8",3,"click"],[1,"fa-light","fa-gear","font-16"],[1,"col-md-11"],[1,"clsfilter-box","d-flex","m-tn-20"],[1,"clsfilter"],[1,"font-12"],[1,"clschip","pl-1"],["data-testid","checkin-home-filter-clear-all-link",1,"text-success","small","underline","m-l-10",3,"click"],[3,"removed"],["matChipRemove",""],[1,"dots"],["data-toggle","modal","data-target","#myModal2",1,"card","click-div",3,"click","keydown"],[1,"card-body"],["appendTo","body","tooltipPosition","top",1,"card-title-length","cls-cardtitle",3,"pTooltip","tooltipDisabled"],[1,"cls-emptext"],[1,"cls-comptext"],[1,"material-icons",2,"cursor","pointer",3,"matMenuTriggerFor"],[1,"pi","pi-ellipsis-v","text-success"],["mat-menu-item","",3,"click"],["text","NO CHECK IN POLICY","IconType","icon13"],["id","btnShowMore","data-testid","checkin-home-show-more-button",1,"btn","btn-default","show-more","btn-secondary",3,"click"],["keyId","inOutPolicyId","nameValue","inOutPolicyName",3,"close","getAppliedFilter","filter","display_filter_flyer","dropdownList"],[3,"afterClosed","setting"]],template:function(i,o){1&i&&(e.DNE(0,Ko,1,0,"app-view-permission-denied")(1,ca,24,7,"div",2)(2,sa,1,3,"app-time-office-filter",3)(3,da,1,0,"app-checkin-checkout-setting-form")(4,_a,1,1,"app-common-settings",4),e.nrm(5,"router-outlet")),2&i&&(e.vxM(o._service.rights.view?-1:0),e.R7$(),e.vxM(o._service.rights.view?1:-1),e.R7$(),e.vxM(o.display_filter_flyer?2:-1),e.R7$(),e.vxM(o._service.rights.view?3:-1),e.R7$(),e.vxM(o.displaySettingsSidebar?4:-1))},dependencies:[ke.n3,ve.p,Lo,w.uI,w.gq,w.Zv,Xo.An,P.kk,P.fb,P.Cp,Bo.P,V.m_,Yo.F,Ho.$,Jo.r,he.W,Uo.M],styles:['form[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{font-size:inherit}small[_ngcontent-%COMP%], span[_ngcontent-%COMP%], b[_ngcontent-%COMP%]{font-size:100%}.h-extra-large-font[_ngcontent-%COMP%]{font-size:2.285em;font-family:Public Sans,sans-serif;color:#1b2436;font-weight:600;line-height:1.25;margin:0}.h-large-font[_ngcontent-%COMP%]{font-size:1.714em;font-family:Public Sans,sans-serif;color:#28314b;font-weight:500;line-height:1.25;margin:0}.h-medium-font[_ngcontent-%COMP%]{font-size:1.571em;font-family:Public Sans,sans-serif;color:#282c3f;font-weight:500;line-height:1.25;margin:0}.h-small-font[_ngcontent-%COMP%]{font-size:1.285em;font-family:Public Sans,sans-serif;color:#282c3f;font-weight:400;line-height:1.25;margin:0}.h-extra-small-font[_ngcontent-%COMP%]{font-size:1.142em;font-family:Public Sans,sans-serif;color:#282c3f;font-weight:400;line-height:1.25;margin:0}.t-14-font[_ngcontent-%COMP%]{font-size:1em;font-family:Public Sans,sans-serif;color:#28314b;line-height:1.25}@media(prefers-color-scheme:dark){[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#fff}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc;border-radius:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#888}}@media screen and (max-width:1920px){body[_ngcontent-%COMP%]{font-size:16px}}@media screen and (max-width:1440px){body[_ngcontent-%COMP%]{font-size:14px}}
1@media screen and (max-width:1366px){body[_ngcontent-%COMP%]{font-size:13.28px}}@media screen and (max-width:1280px){body[_ngcontent-%COMP%]{font-size:12.44px}}._card1hrv_5[_ngcontent-%COMP%]{box-shadow:0 2px 4px #00000026;border-radius:4px}._celeb-card[_ngcontent-%COMP%]   .wish-container[_ngcontent-%COMP%]{padding:16px 20px 18px;position:relative}._celeb-card[_ngcontent-%COMP%]   .wish-container[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]{margin:0 0 8px}._celeb-card[_ngcontent-%COMP%]   .wish-container[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%]{font-size:.857em;font-family:Public Sans,sans-serif;color:#1b2436;line-height:1.25;font-weight:600}.wish-card[_ngcontent-%COMP%]{background-color:#fff;padding:16px;border-radius:4px;max-height:112px}.wish-card[_ngcontent-%COMP%]   ._user-avatar[_ngcontent-%COMP%]{width:32px;position:relative}.wish-card[_ngcontent-%COMP%]   ._user-avatar[_ngcontent-%COMP%]   ngx-avatar[_ngcontent-%COMP%]{position:relative}.wish-card[_ngcontent-%COMP%]   ._user-avatar[_ngcontent-%COMP%]   .bday-cap[_ngcontent-%COMP%]{top:-6px;right:initial;bottom:initial;left:-6px;position:absolute;z-index:9;z-index:initial;width:24px}.wish-card[_ngcontent-%COMP%]   ._user-avatar[_ngcontent-%COMP%]   .bday-cap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]{width:calc(100% - 32px);padding:0 0 0 13px}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   b[_ngcontent-%COMP%], .wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-weight:600}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-size:.857em;color:#007afc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:.857em;font-weight:600;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:.714em;margin:0 0 12px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   button[type=button][_ngcontent-%COMP%]{font-weight:600!important;font-size:.857em;text-align:left;white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   ._u-desg[_ngcontent-%COMP%], .wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   ._wish-cta[_ngcontent-%COMP%]{box-sizing:border-box}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   ._u-desg[_ngcontent-%COMP%]{width:48%}.wish-card[_ngcontent-%COMP%]   ._user-details[_ngcontent-%COMP%]   ._wish-cta[_ngcontent-%COMP%]{width:52%}.card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border-radius:0;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;width:100%;margin:0 0 2.142em}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{padding:1.142em}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{position:relative;font-size:inherit;margin:0 0 .857em}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]:before{content:" ";width:1px;height:85%;top:auto;right:auto;bottom:3px;left:-1rem;position:absolute;z-index:9}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-cardtitle[_ngcontent-%COMP%]{font-size:.857em;margin:0 0 5px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-subdep[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.785em;font-weight:500;line-height:1.45;color:#28314b80;margin:0 0 2.5px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-active[_ngcontent-%COMP%]{font-size:.642em;line-height:12px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-heading[_ngcontent-%COMP%]{font-size:.857em;font-weight:500;color:#28314b}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-subtext[_ngcontent-%COMP%]{font-size:.714em;font-weight:500}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]{font-size:1em;font-weight:500;position:relative;letter-spacing:.3px;margin:0 0 .857em}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]:before{content:" ";top:auto;right:auto;bottom:3px;left:-1rem;position:absolute;z-index:9;width:1px;height:85%}
1.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-cardtitle[_ngcontent-%COMP%]{font-size:.857em;margin:0 0 5px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-subdep[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.785em;font-weight:500;line-height:1.45;color:#28314b80;margin:0 0 2.5px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-active[_ngcontent-%COMP%]{font-size:.642em;line-height:12px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-heading[_ngcontent-%COMP%]{font-size:.857em;font-weight:500;color:#28314b}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-subtext[_ngcontent-%COMP%]{font-size:.714em;font-weight:500}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-subheading[_ngcontent-%COMP%]{font-size:.571em;font-weight:600;color:#28314b99;margin:0 0 .357em}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-subtext[_ngcontent-%COMP%]{font-size:.714em;font-weight:500;color:#28314b;margin:0}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-emptext[_ngcontent-%COMP%], .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-comptext[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.714em;font-weight:500;letter-spacing:.25px;color:#28314b85;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;margin:0 0 5px;padding:5px 0 0 22px}.card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-active[_ngcontent-%COMP%]{font-size:.642em;line-height:12px}.card-type-2[_ngcontent-%COMP%]{border:1px solid rgba(151,151,151,.5);box-shadow:0 1px 2px #00000026;border-radius:4px;margin:0 0 30px;min-height:100px}.card-type-2[_ngcontent-%COMP%]   .clsstat-title[_ngcontent-%COMP%]{color:#28314b;font-weight:600;font-size:1.142em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:normal}.card-type-2[_ngcontent-%COMP%]   .clsreview-text[_ngcontent-%COMP%]{font-size:.857em;color:#1b2436;opacity:.5;filter:alpha(opacity=50);line-height:20px}.card-type-2[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:28px;padding:0 18px}.card-gray[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-clip:border-box;border:0px solid rgba(0,0,0,.125);border-radius:0;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;width:100%;margin:0 0 2.142em}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{padding:1.142em}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{position:relative;font-size:inherit;margin:0 0 .857em}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]:before{content:" ";width:1px;height:85%;top:auto;right:auto;bottom:3px;left:-1rem;position:absolute;z-index:9}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-cardtitle[_ngcontent-%COMP%]{font-size:.857em;margin:0 0 5px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-subdep[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.785em;font-weight:500;line-height:1.45;margin:0 0 2.5px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-active[_ngcontent-%COMP%]{font-size:.642em;line-height:12px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-heading[_ngcontent-%COMP%]{font-size:.857em;font-weight:500}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]   .cls-subtext[_ngcontent-%COMP%]{font-size:.714em;font-weight:500}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]{font-size:1em;font-weight:500;position:relative;letter-spacing:.3px;margin:0 0 .857em}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]:before{content:" ";top:auto;right:auto;bottom:3px;left:-1rem;position:absolute;z-index:9;width:1px;height:85%}
1.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-cardtitle[_ngcontent-%COMP%]{font-size:.857em;margin:0 0 5px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-subdep[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.785em;font-weight:500;line-height:1.45;color:#28314b80;margin:0 0 2.5px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-active[_ngcontent-%COMP%]{font-size:.642em;line-height:12px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-heading[_ngcontent-%COMP%]{font-size:.857em;font-weight:500;color:#28314b}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .card-title-arc[_ngcontent-%COMP%]   .cls-subtext[_ngcontent-%COMP%]{font-size:.714em;font-weight:500}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-active[_ngcontent-%COMP%]{font-size:.642em;line-height:12px}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-subheading[_ngcontent-%COMP%]{font-size:.571em;font-weight:600;color:#28314b99;margin:0 0 .357em}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-subtext[_ngcontent-%COMP%]{font-size:.714em;font-weight:500;color:#28314b;margin:0}.card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-emptext[_ngcontent-%COMP%], .card-gray[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-comptext[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.714em;font-weight:500;letter-spacing:.25px;color:#28314b85;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;margin:0 0 5px;padding:5px 0 0 22px}.mat-mdc-checkbox[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]{font-size:1em;color:#272c3e;font-weight:500;line-height:20px;margin-bottom:0;max-width:100%}.mat-mdc-checkbox[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-inner-container[_ngcontent-%COMP%]{margin:0 12px 0 0}.mat-radiobtn[_ngcontent-%COMP%]{margin-bottom:12px;display:inline-block}.mat-radiobtn[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{display:inline-block}.mat-radiobtn[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:1em;color:#272c3e;font-weight:500;line-height:20px;margin-bottom:0}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]{margin:0 0 12px;border-radius:4px;box-shadow:none}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]{font-size:inherit;font-family:Public Sans,sans-serif;display:flex;flex-direction:row;flex:1;justify-content:space-between;align-items:flex-start;padding:16px 15px}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-expansion-indicator[_ngcontent-%COMP%]{transform-origin:51% 68%;display:none;margin-right:3px}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]{flex-direction:column}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex;flex-grow:1;margin-right:16px;justify-content:space-between;align-items:inherit}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .mat-mdc-standard-chip[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .mat-mdc-standard-chip[_ngcontent-%COMP%]{min-height:1.142em;border:1px solid #dadce1!important;background-color:#f5f7fa!important;font-family:Public Sans,sans-serif;font-size:inherit}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .mat-mdc-standard-chip[_ngcontent-%COMP%]   .mdc-evolution-chip__cell--primary[_ngcontent-%COMP%]   .mdc-evolution-chip__text-label[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .mat-mdc-standard-chip[_ngcontent-%COMP%]   .mdc-evolution-chip__cell--primary[_ngcontent-%COMP%]   .mdc-evolution-chip__text-label[_ngcontent-%COMP%]{color:#686e81!important;font-size:10px}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .cls-firstbox[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .cls-firstbox[_ngcontent-%COMP%]{width:65%;font-family:Public Sans,sans-serif}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .cls-firstbox[_ngcontent-%COMP%]   .cls-krasubtext[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .cls-firstbox[_ngcontent-%COMP%]   .cls-krasubtext[_ngcontent-%COMP%]{font-size:10px;color:#686e81!important;margin:0 0 1em}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .cls-secondbox[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .cls-secondbox[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .cls-secondbox[_ngcontent-%COMP%]   .cls-krasubtext[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .cls-secondbox[_ngcontent-%COMP%]   .cls-krasubtext[_ngcontent-%COMP%]{font-size:10px;color:#686e81!important;font-weight:600;margin:0 0 .714em}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]   .cls-secondbox[_ngcontent-%COMP%]   .cls-kpidata[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%]   .cls-secondbox[_ngcontent-%COMP%]   .cls-kpidata[_ngcontent-%COMP%]{font-size:.714em;color:#28314b;font-weight:600}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-content[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0;margin:0;background-color:#fafafa;border-top:1px solid rgba(165,165,165,.21);font-size:inherit}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-content[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]   .cls-kradropdown[_ngcontent-%COMP%]{padding:8.5px 0 15.5px;margin:0 15px;
1border-bottom:1px dashed #dddddd;font-size:.857em;color:#1b2436;font-weight:500;display:flex;align-items:start}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-content[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]   .cls-kradropdown[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-weight:400;line-height:1.6;font-size:.928em;margin:1px 0 30px 7px;position:relative;z-index:1;padding-right:10px}.mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-content[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]   .cls-kradropdown[_ngcontent-%COMP%]:last-child{border-bottom:0px dashed #dddddd}.form-wrapper[_ngcontent-%COMP%]   .form-wrapper-inner[_ngcontent-%COMP%]   mat-accordion[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-content[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]{background-color:#fff;border-top:none}#Goal-tab[_ngcontent-%COMP%]{border:1px solid #c8cdd1;border-radius:4px;position:relative;display:inline-block}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]{padding:0;margin:0;border-right:1.5px solid #c8cdd1}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]   .mdc-form-field[_ngcontent-%COMP%]{margin:0}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]   .mdc-form-field[_ngcontent-%COMP%]   .mdc-radio[_ngcontent-%COMP%]{display:none}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]   .mdc-form-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{padding:.714em;cursor:pointer}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]   .mat-mdc-radio-button.mat-radio-disabled[_ngcontent-%COMP%]   .mat-radio-label-content[_ngcontent-%COMP%]{color:inherit;cursor:no-drop}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-checked[_ngcontent-%COMP%]{background-color:#00bfa5}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-checked[_ngcontent-%COMP%]   .mdc-form-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#fff!important}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-checked[_ngcontent-%COMP%]:first-child{border-radius:3px 0 0 3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:3px}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-checked[_ngcontent-%COMP%]:last-child{border-radius:0 3px 3px 0;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-moz-border-radius-topleft:0;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:0}#Goal-tab[_ngcontent-%COMP%]   .mat-mdc-radio-button[_ngcontent-%COMP%]:last-child{border-right:0 solid #c8cdd1}.cls-competency[_ngcontent-%COMP%]   .mat-mdc-standard-chip[_ngcontent-%COMP%]{min-height:1.142em;border:1px solid #dadce1!important;background-color:#f5f7fa!important;font-family:Public Sans,sans-serif;font-size:inherit}.cls-competency[_ngcontent-%COMP%]   .mat-mdc-standard-chip[_ngcontent-%COMP%]   .mdc-evolution-chip__cell--primary[_ngcontent-%COMP%]   .mdc-evolution-chip__text-label[_ngcontent-%COMP%]{color:#686e81!important;font-size:10px}.form-styling[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin:0}.form-styling[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .p-float-label[_ngcontent-%COMP%]{padding:0 0 1.25em}.form-styling[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .time-select[_ngcontent-%COMP%]{position:relative;margin:14px 0 0}.form-styling[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .time-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .form-styling[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .time-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.project-task[_ngcontent-%COMP%]   .mat-expansion-indicator[_ngcontent-%COMP%]{display:block!important}.project-task[_ngcontent-%COMP%]   .mat-accordion[_ngcontent-%COMP%]   .kra-exp[_ngcontent-%COMP%]   .mat-expansion-panel-content[_ngcontent-%COMP%]   .mat-expansion-panel-body[_ngcontent-%COMP%]{background:#f9fbfa}.dots[_ngcontent-%COMP%]{position:absolute;top:17px;right:25px;z-index:1}.leave-setup-content[_ngcontent-%COMP%]{padding:22px 17px 27px}.leave-setup-content[_ngcontent-%COMP%]   .cls-main-heading[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:1.285em;font-weight:500;color:#262e3e;margin:0;line-height:2}.leave-setup-content[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-emptext[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.714em;font-weight:500;letter-spacing:.25px;color:#28314b85;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;margin:0;padding:0}.leave-setup-content[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   .cls-comptext[_ngcontent-%COMP%]{font-family:Public Sans,sans-serif;font-size:.714em;font-weight:500;letter-spacing:.25px;color:#28314b;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;margin:0;padding:0}.filters-global-float-btn[_ngcontent-%COMP%]{top:118px}']}
1)}}return n})();var Ce=s(88881),ua=s(94136);let pa=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[b.MD,Ce.z,se.L,re.Z,ua.fd,_e.tZ,T.uY,me.K,ce,de,z]})}}return n})();var ha=s(76362),Ca=s(83169);const ga=[{path:"",component:ma,children:s(2221).ENTERPIRSE_SEARCH_AS_CHILD}];let ka=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[g],imports:[b.MD,ha.iI.forChild(ga),pa,Ce.z,P.Cn,Ca.c,he.W]})}}return n})()},92410(fe,S,s){s.d(S,{OL:()=>D,TK:()=>b,W$:()=>E,dn:()=>j,tl:()=>N,ux:()=>y});class b{constructor(e="",O="",c="",_=!0,m="",$=!0,k="",F=!0,x="",R=""){this.advancePolicyId=e,this.policyName=O,this.description=c,this.isSpecificLimit=_,this.specifiedAmount=m,this.isAdvanceApplicable=$,this.advanceLimit=k,this.isActive=F,this.branch=x,this.organizationUnit=R}}const y={advancePolicyId:"",status:"1",pagination:{pageNumber:1,pageSize:15}},D={view:!1,create:!1,update:!1,inactive:!1},E={selectedOuId:0,selectedOuValuesIds:[],selectedOu:{key:0,value:"None"},selectedOuValues:[]},j={selectedOuId:0,selectedOuValuesIds:[],selectedOu:{key:0,value:"None"},selectedOuValues:[]};var N=function(C){return C.cardList="/api/Expense/Setup/Advance/Policies",C.update="/api/Expense/Setup/Advance/Policy/Update",C.create="/api/Expense/Setup/Advance/Policy/Insert",C}(N||{})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.