PageSourceSearch

https://clovehr.com/static/js/7500.c0940077.chunk.js

js clovehr.com collected 2026-09-24 14:41:16 UTC 40,315 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhrms=self.webpackChunkhrms||[]).push([[7500],{87500:(e,l,t)=>{t.r(l),t.d(l,{default:()=>B});var s=t(89379),a=t(65043),i=t(86111),d=t.n(i),o=t(54420),n=t(83521),r=(t(82588),t(56001)),c=t(26960),m=t(27285),u=t(95429),v=t(34625),h=t(3805),p=t(83806),x=t(7807),j=(t(69682),t(90194),t(91036)),N=t(13442),k=t(10615),g=t(30370),y=t(60941),f=(t(83910),t(98439),t(73216)),S=t(29706),b=t(14946),w=t(28761),T=t(326),A=t(40630),C=t(56008),R=t(73624),I=t(11665),H=t(64198),E=t(45019),M=t(17686),D=t(43146),L=t(97825),P=t(80411),_=t(70579);const B=()=>{var e,l,t,i,B,F,U,O,V,z,G,W,Y;const{allPermissions:$}=(0,a.useContext)(P.B),{startDate:J,userId:q}=(0,f.g)(),K=(0,b.R)(q),{loaderState:Q,toggleLoader:X}=(0,w.A)(),Z=e=>{const l=new Date(e);var t=String(l.getDate()).padStart(2,"0"),s=String(l.getMonth()+1).padStart(2,"0");return l.getFullYear()+"-"+s+"-"+t},[ee,le]=(0,a.useState)(J||Z((new Date).toString())),[te,se]=(0,a.useState)(!1),[ae,ie]=(0,a.useState)(""),[de,oe]=(0,a.useState)(""),[ne,re]=(0,a.useState)([]),[ce,me]=(0,a.useState)(null),[ue,ve]=(0,a.useState)(null),[he,pe]=(0,a.useState)([]),[xe,je]=(0,a.useState)(0),[Ne,ke]=(0,a.useState)(0),[ge,ye]=(0,a.useState)(0),[fe,Se]=(0,a.useState)(0),[be,we]=(0,a.useState)(0),[Te,Ae]=(0,a.useState)(0),[Ce,Re]=(0,a.useState)([]),[Ie,He]=(0,a.useState)(""),[Ee,Me]=(0,a.useState)(""),[De,Le]=(0,a.useState)(""),[Pe,_e]=(0,a.useState)(""),[Be,Fe]=(0,a.useState)(""),[Ue,Oe]=(0,a.useState)(!1),[Ve,ze]=(0,a.useState)(""),[Ge,We]=(0,a.useState)(""),[Ye,$e]=(0,a.useState)(null),[Je,qe]=(0,a.useState)([]),[Ke,Qe]=(0,a.useState)(null),[Xe,Ze]=(0,a.useState)(!1),[el,ll]=(0,a.useState)([]),[tl,sl]=(0,a.useState)(!1),[al,il]=(0,a.useState)([]),[dl,ol]=(0,a.useState)(!1),[nl,rl]=(0,a.useState)(!1),[cl,ml]=(0,a.useState)(!1),[ul,vl]=(0,a.useState)(null),[hl,pl]=(0,a.useState)(null),[xl,jl]=(0,a.useState)(1),[Nl,kl]=(0,a.useState)([]),[gl,yl]=(0,a.useState)(!1),[fl,Sl]=(0,a.useState)([]),[bl,wl]=(0,a.useState)(null),[Tl,Al]=(0,a.useState)(!0),Cl=(0,a.useRef)(null),[Rl,Il]=(0,a.useState)(!1),[Hl,El]=(0,a.useState)("0"),[Ml,Dl]=(0,a.useState)("0"),[Ll,Pl]=(0,a.useState)("0"),[_l,Bl]=(0,a.useState)("0"),[Fl,Ul]=(0,a.useState)("00"),[Ol,Vl]=(0,a.useState)("00"),[zl,Gl]=(0,a.useState)(!1),[Wl,Yl]=(0,a.useState)(null),[$l,Jl]=(0,a.useState)(!0),[ql,Kl]=(0,a.useState)(!1),[Ql,Xl]=(0,a.useState)("ticketDetails"),[Zl,et]=(0,a.useState)(!1),[lt,tt]=(0,a.useState)(""),[st,at]=(0,a.useState)(""),[it,dt]=(0,a.useState)(""),[ot,nt]=(0,a.useState)(""),[rt,ct]=(0,a.useState)(""),[mt,ut]=(0,a.useState)(""),vt=e=>{var l,t,s,a,i,d;if(!(null!=e.taskMgtTaskId&&""!==e.taskMgtTaskId))return null!==(l=e.taskCode)&&void 0!==l?l:"";const o=e.taskData;if(!Array.isArray(o)||!o.length)return null!==(t=e.taskCode)&&void 0!==t?t:"";const n=e.taskMgtTaskId,r=o.find((e=>String(e.task_id)===String(n)||Number(e.task_id)===Number(n)));return null!==(s=null!==(a=null!==(i=null===r||void 0===r?void 0:r.task_code)&&void 0!==i?i:null===(d=o[0])||void 0===d?void 0:d.task_code)&&void 0!==a?a:e.taskCode)&&void 0!==s?s:""},ht=e=>{var l,t,a,i,d,o;null!=e.taskMgtTaskId&&""!==e.taskMgtTaskId?(async e=>{const l=e.taskMgtTaskId;if(null!=l&&""!==l)try{var t,a,i,d,o,n,r,c,m,u,v,h,p;X(!0);const x=null!==(t=null===(a=e.taskData)||void 0===a?void 0:a.find((e=>String(e.task_id)===String(l)||Number(e.task_id)===Number(l))))&&void 0!==t?t:null===(i=e.taskData)||void 0===i?void 0:i[0],N=await D.A.taskList({taskId:l}),k=null===N||void 0===N||null===(d=N.data)||void 0===d||null===(o=d.data)||void 0===o?void 0:o.records;if(!k)return void j.oR.error("Task details not found");const g=null!==(n=null!==(r=k.taskId)&&void 0!==r?r:k.id)&&void 0!==n?n:l,[y,f]=await Promise.all([D.A.commentList(l),D.A.getTaskHistory(l)]);Jl(!0),Kl(!0),Yl((0,s.A)((0,s.A)({},k),{},{taskId:g,editTaskId:g,selectedProject:null!==(c=k.projectId)&&void 0!==c?c:e.projectId,title:k.taskName,editorState:k.description,status:k.taskStatusId,totalEfforts:k.estimatedHours,effortDate:e.date,dailySpentHours:null!==(m=null===x||void 0===x?void 0:x.daily_spent_hours)&&void 0!==m?m:"",comments:(null===y||void 0===y||null===(u=y.data)||void 0===u||null===(v=u.data)||void 0===v?void 0:v.records)||[],historyData:(null===f||void 0===f||null===(h=f.data)||void 0===h||null===(p=h.data)||void 0===p?void 0:p.records)||[],priority:k.taskPriority})),Xl("ticketDetails"),Gl(!0)}catch(x){console.error("Error fetching task details:",x),j.oR.error("Failed to fetch task details")}finally{X(!1)}})(e):(tt(null!==(l=e.projectName)&&void 0!==l?l:""),at(null!==(t=e.taskTypeName)&&void 0!==t?t:""),dt(null!==(a=e.taskName)&&void 0!==a?a:""),nt(null!==(i=e.description)&&void 0!==i?i:""),ct(null!==(d=e.hours)&&void 0!==d?d:""),ut(null!==(o=e.minutes)&&void 0!==o?o:""),et(!0))};(0,a.useEffect)((()=>{let e=JSON.parse(localStorage.getItem("token"));e||(e=new URLSearchParams(window.location.search).get("token"));let l=decodeURIComponent(e);const t=d().AES.decrypt(l,"my_secret_key").toString(d().enc.Utf8),s=(0,o.s)(t);ve(s.userId)}),[]),(0,a.useEffect)((()=>{var e;if(null!==$&&void 0!==$&&null!==(e=$.data)&&void 0!==e&&e.data){var l,t,s;Al(!1!==$.data.data.isTimeTrackingEnabled);const e=null===$||void 0===$||null===(l=$.data)||void 0===l?void 0:l.data,a=null===e||void 0===e||null===(t=e.records[0])||void 0===t?void 0:t.permissions;se(null===a||void 0===a||null===(s=a.find((e=>"Geo Tracking"===e.moduleName)))||void 0===s?void 0:s.isSubscribe)}}),[$]),(0,a.useEffect)((()=>{Tl||Sl([])}),[Tl]),(0,a.useEffect)((()=>{ue&&yt()}),[ue]),(0,a.useEffect)((()=>{K&&wl(K)}),[K]),(0,a.useEffect)((()=>{ee&&K&&(gt(),xt())}),[ee,K]);const pt=()=>{if(!J||K)return;X();const e={startDate:ee,projectId:Be};n.A.getTimesheetCompleteDetail(e).then((e=>{var l,t,s,a,i,d,o,n,r,c,m,u,v,h,p,x,j,N,k,g,y,f,S,b,w,T,A,C,R,I,H,E,M,D,L,P,_,B,F,U;X();const O=null===e||void 0===e||null===(l=e.data)||void 0===l||null===(t=l.data)||void 0===t||null===(s=t.records)||void 0===s?void 0:s.result[0];pe(null===e||void 0===e||null===(a=e.data)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.records)||void 0===d?void 0:d.result),je(null===e||void 0===e||null===(o=e.data)||void 0===o||null===(n=o.data)||void 0===n||null===(r=n.records)||void 0===r?void 0:r.totalCompleteHours),ke(null===e||void 0===e||null===(c=e.data)||void 0===c||null===(m=c.data)||void 0===m||null===(u=m.records)||void 0===u?void 0:u.totalCompleteMinutes),ye(null===e||void 0===e||null===(v=e.data)||void 0===v||null===(h=v.data)||void 0===h||null===(p=h.records)||void 0===p?void 0:p.totalTaskHours),Se(null===e||void 0===e||null===(x=e.data)||void 0===x||null===(j=x.data)||void 0===j||null===(N=j.records)||void 0===N?void 0:N.totalTaskMinutes),we(null===e||void 0===e||null===(k=e.data)||void 0===k||null===(g=k.data)||void 0===g||null===(y=g.records)||void 0===y?void 0:y.totalTrackedHours),Ae(null===e||void 0===e||null===(f=e.data)||void 0===f||null===(S=f.data)||void 0===S||null===(b=S.records)||void 0===b?void 0:b.totalTrackedMinutes),Le(O.userName),_e(O.a
1pproveReason?O.approveReason:O.rejectReason),He(null===e||void 0===e||null===(w=e.data)||void 0===w||null===(T=w.data)||void 0===T||null===(A=T.records)||void 0===A?void 0:A.result[0].date),Me(null===e||void 0===e||null===(C=e.data)||void 0===C||null===(R=C.data)||void 0===R||null===(I=R.records)||void 0===I?void 0:I.result[0].date),Ul((null===e||void 0===e||null===(H=e.data)||void 0===H||null===(E=H.data)||void 0===E||null===(M=E.records)||void 0===M||null===(D=M.result)||void 0===D||null===(L=D[0])||void 0===L?void 0:L.totalHours)||"00"),Vl((null===e||void 0===e||null===(P=e.data)||void 0===P||null===(_=P.data)||void 0===_||null===(B=_.records)||void 0===B||null===(F=B.result)||void 0===F||null===(U=F[0])||void 0===U?void 0:U.totalMinutes)||"00")})).catch((e=>{X()}))},xt=()=>{if(!K||!J)return;X();const e={userId:K,startDate:ee};n.A.getTimesheetCompleteDetail(e).then((e=>{var l,t;X();const s=null===e||void 0===e||null===(l=e.data)||void 0===l||null===(t=l.data)||void 0===t?void 0:t.records;je(null===s||void 0===s?void 0:s.totalCompleteHours),ke(null===s||void 0===s?void 0:s.totalCompleteMinutes),ye(null===s||void 0===s?void 0:s.totalTaskHours),Se(null===s||void 0===s?void 0:s.totalTaskMinutes),we(null===s||void 0===s?void 0:s.totalTrackedHours),Ae(null===s||void 0===s?void 0:s.totalTrackedMinutes),pe(null===s||void 0===s?void 0:s.result),Me(null===s||void 0===s?void 0:s.result[0].date),oe(null===s||void 0===s?void 0:s.result[0].timesheetId),ie(null===s||void 0===s?void 0:s.result[0].timesheetStatus),Le(null===s||void 0===s?void 0:s.result[0].userName),Ul(s.result[0].totalHours),Vl(s.result[0].totalMinutes)})).catch((e=>{var l,t,s,a,i,d;(X(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a?void 0:a.data.message.errors[0].msg):(0,j.oR)(null===e||void 0===e||null===(i=e.response)||void 0===i||null===(d=i.data)||void 0===d?void 0:d.message)}))};(0,a.useEffect)((()=>{ee&&!K&&pt()}),[ee]),(0,a.useEffect)((()=>{ee&&Be&&!K&&pt()}),[Be]);const jt=(e,l)=>{if(Oe(!1),ze(""),We(""),e){var t,s,a,i,d;const l=he.filter((l=>l.day===e));$e(e),qe(l[0].tasks),Qe(l[0]),We(null!==(t=l[0])&&void 0!==t&&null!==(s=t.tasks[0])&&void 0!==s&&s.description?null===(a=l[0])||void 0===a||null===(i=a.tasks[0])||void 0===i?void 0:i.description:"");const o=null===(d=l[0])||void 0===d?void 0:d.date;o&&bl&&Rt(o,o)}else{var o,n,r,c,m,u;let e=null===he||void 0===he||null===(o=he[0])||void 0===o?void 0:o.day;$e(e);const l=he.filter((l=>l.day===e));qe(l[0].tasks),Qe(l[0]),We(null!==(n=l[0])&&void 0!==n&&null!==(r=n.tasks[0])&&void 0!==r&&r.description?null===(c=l[0])||void 0===c||null===(m=c.tasks[0])||void 0===m?void 0:m.description:"");const t=null===(u=l[0])||void 0===u?void 0:u.date;t&&bl&&Rt(t,t)}};(0,a.useEffect)((()=>{he.length>0&&(jt(),kt())}),[he]);const Nt=()=>{ml(!0),(()=>{const e={timesheetId:de||ee||J};n.A.timesheetHistory(e).then((e=>{var l,t;Re(null===e||void 0===e||null===(l=e.data)||void 0===l||null===(t=l.data)||void 0===t?void 0:t.records)})).catch((e=>{}))})()},kt=(e,l)=>{vl(null);(new Date).getDay();if(Oe(!1),ze(""),We(""),e){var t,s,a,i;const l=he.filter((l=>l.day===e));$e(e),ll(l[0].tracked),Qe(l[0]),We(null!==(t=l[0])&&void 0!==t&&null!==(s=t.tasks[0])&&void 0!==s&&s.description?null===(a=l[0])||void 0===a||null===(i=a.tasks[0])||void 0===i?void 0:i.description:"")}else{var d,o,n,r,c;let e=null===he||void 0===he||null===(d=he[0])||void 0===d?void 0:d.day;const l=he.filter((l=>l.day===e));$e(e),ll(l[0].tracked),Qe(l[0]),We(null!==(o=l[0])&&void 0!==o&&null!==(n=o.tasks[0])&&void 0!==n&&n.description?null===(r=l[0])||void 0===r||null===(c=r.tasks[0])||void 0===c?void 0:c.description:"")}},gt=()=>{sl(!tl),X();const e={date:ee,pageNumber:"",pageSize:"",userId:K};n.A.getEmployeeTimesheet(e).then((e=>{if(X(),e){var l,t,a,i,d,o,n,r,c,m;const u=null===e||void 0===e||null===(l=e.data)||void 0===l||null===(t=l.data)||void 0===t?void 0:t.records.map((e=>(0,s.A)((0,s.A)({},e),{},{completed:!1})));u.forEach((e=>{e.task.some((e=>"Leave"===e.taskTypeName))&&(e.completed=!0)})),il(u),El(null===e||void 0===e||null===(a=e.data)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.BillableHours),Dl(null===e||void 0===e||null===(d=e.data)||void 0===d||null===(o=d.data)||void 0===o?void 0:o.BillableMinutes),Pl(null===e||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.nonBillableHours),Bl(null===e||void 0===e||null===(c=e.data)||void 0===c||null===(m=c.data)||void 0===m?void 0:m.nonBillableMinutes);
1let v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][new Date(ee).getDay()];ft(v),St(v)}})).catch((e=>{X()}))},yt=()=>{if(!ue)return;n.A.getEmployeeLists({empStatus:["active"],empType:[]}).then((e=>{var l,t;const s=((null===e||void 0===e||null===(l=e.data)||void 0===l||null===(t=l.data)||void 0===t?void 0:t.records)||[]).map((e=>({value:e.userId,label:e.employeeNumberAndName,name:e.name})));re(s);const a=s.find((e=>e.value==K));a&&me(a)})).catch((e=>{(0,j.oR)("Error fetching team members")}))},ft=(e,l)=>{if(vl(null),e){var t;const l=he.filter((l=>l.day===e));for(let e=0;e<l.length;e++){qe(l[e].tasks);for(let t=0;t<l[e].tasks.length;t++)""!==l[e].tasks[0].entryId&&We(l[e].tasks[0].description)}const s=null===(t=l[0])||void 0===t?void 0:t.date;s&&bl&&Rt(s,s)}},St=(e,l)=>{if(e){const l=al.filter((l=>l.day===e));for(let e=0;e<l.length;e++)for(let t=0;t<l[e].task.length;t++)""!==l[e].task[0].entryId&&We(l[e].task[0].description)}},bt=()=>{Fe(""),_e("")},wt=()=>{_e("")},Tt=e=>{_e(e.target.value)};(0,a.useEffect)((()=>{hl&&At()}),[hl]);const At=()=>{const e={pageNumber:xl,pageSize:50,entryId:hl};n.A.getTrackedEntryImage(e).then((e=>{var l,t,s;(kl(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.data.records),jl((e=>e+1)),null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.error)&&(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message)}),(e=>{var l,t,s,a,i,d,o,n,r;null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}))},Ct=()=>{Il(!1)},Rt=async(e,l)=>{if(te&&bl)if(Tl)try{var t,s,a;const i={startDate:e,endDate:l,userId:bl,key:"team"},d=await n.A.getClockDetails(i),o=(null===d||void 0===d||null===(t=d.data)||void 0===t||null===(s=t.data)||void 0===s||null===(a=s.data)||void 0===a?void 0:a.map((e=>({clockInDate:e.clockInDate||e.date,clockInTime:e.clockInTime,clockOutTime:e.clockOutTime,totalHours:e.totalHours||0,shiftName:e.shiftName}))))||[];Sl(o)}catch(v){var i,d,o,r,c,m,u;console.error("Clock API Error:",v),(0,j.oR)((null===v||void 0===v||null===(i=v.response)||void 0===i||null===(d=i.data)||void 0===d||null===(o=d.message)||void 0===o||null===(r=o.errors)||void 0===r||null===(c=r[0])||void 0===c?void 0:c.msg)||(null===v||void 0===v||null===(m=v.response)||void 0===m||null===(u=m.data)||void 0===u?void 0:u.message)||"Error fetching clock details")}else Sl([])};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"team-weekly-timesheet-container",children:[(0,_.jsxs)("div",{className:"row tracker-new-header-container",children:[(0,_.jsx)("div",{className:"col-md-1 back-cursor-container",children:(0,_.jsx)("a",{href:"/home/Timesheets/AllEmployeeTimesheets",children:(0,_.jsx)("img",{className:"",src:y,alt:"BackArror"})})}),(0,_.jsx)("div",{className:"col-md-4 d-flex",children:(0,_.jsx)(r.Ay,{value:ce,onChange:e=>{me(e),e&&(window.location.href="/home/AllTeamTrackerTimesheets/".concat(ee,"/").concat((0,b.b)(e.value)))},options:ne,placeholder:"Select Employee",isSearchable:!0,classNamePrefix:"react-select",className:"employee-select-fullwidth"})}),(0,_.jsx)("div",{className:"col-md-3 text-right"}),(0,_.jsxs)("div",{className:"col-md-4 text-right d-flex align-items-center justify-content-end",children:[(0,_.jsx)("button",{className:"weekly-timesheet-header-history-button text-left mx-3 myteamhistory",onClick:()=>{Nt()},children:(0,_.jsx)("img",{className:"weekly-timesheet-header-history",src:R.A})}),(0,_.jsx)("button",{type:"button",className:"cancel-single-Asset mr-2","data-testid":"reset","data-dismiss":"modal",onClick:()=>{ol(!0)},children:(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-sm-12 myteam-tracker-reject-button-text",children:"Reject"})})}),(0,_.jsx)("button",{type:"button",className:"btn-save-next-timesheet","data-testid":"submit","data-dismiss":"modal",onClick:()=>{rl(!0)},children:(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-sm-12 myteam-tracker-approve-button-text",children:"Approve"})})})]})]}),(0,_.jsx)("div",{className:"col-md-12 mb-3 team-weekly-timesheet-main-container",children:(0,_.jsxs)("div",{className:"team-weekly-timesheet-left-right-layout",children:[(0,_.jsx)("div",{className:"team-weekly-timesheet-weekdates-container",children:(0,_.jsx)("div",{className:"team-weekly-timesheet-weekdates",children:null===he||void 0===he?void 0:he.map(((e,l)=>{let t;if("string"===typeof(null===e||void 0===e?void 0:e.date)&&/^\d{4}-\d{2}-\d{2}$/.test(e.date)){const[l,s,a]=e.date.split("-");t=new Date(l,s-1,a)}else t=new Date(null===e||void 0===e?void 0:e.date);const s=t.getDate(),a=null===e||void 0===e?void 0:e.day;return(0,_.jsxs)("div",{className:Ye===(null===e||void 0===e?void 0:e.day)?"team-weekly-timesheet-item-container-selected":"team-weekly-timesheet-item-container",onClick:()=>{jt(e.day),kt(e.day)}
1,children:[(0,_.jsx)("h4",{className:"team-weekly-timesheet-dateday",children:"".concat(s)}),(0,_.jsx)("h4",{className:"team-weekly-timesheet-dateday",children:"".concat(a)}),(0,_.jsx)("div",{className:"team-selected-day-total-container",children:(0,_.jsxs)("div",{className:"team-selected-day-total",children:[e.totalHours,"H ",e.totalMinutes,"M"]})}),(0,_.jsx)("div",{className:"row mt-1",children:(0,_.jsxs)("div",{className:"col-md-12 position-relative d-inline-block",children:["present"!==e.attendanceType&&!0===e.flag&&(0,_.jsxs)("span",{className:"conflict-icon position-relative",children:[(0,_.jsx)("img",{src:c,className:"conflict-icon-image",width:16,height:16}),(0,_.jsx)("span",{className:"timesheet-conflict-icon-tooltip",children:"Approved Leave Exist !"})]}),te&&(0,_.jsx)(_.Fragment,{children:"present"===e.attendanceType&&(0,_.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,_.jsx)("div",{className:"attendance-green position-relative",children:(0,_.jsx)("div",{className:"attendance-tooltip",children:"Present"})}),e.customAttendanceType&&(0,_.jsxs)("span",{children:["(","client side"===e.customAttendanceType?"CS":e.customAttendanceType.trim().toUpperCase(),")"]}),!0===e.flag&&(0,_.jsxs)("span",{className:"conflict-icon position-relative",children:[(0,_.jsx)("img",{src:c,className:"conflict-icon-image",width:16,height:16}),(0,_.jsx)("span",{className:"timesheet-conflict-icon-tooltip",children:"Approved Leave Exist !"})]})]})}),"leave"===e.attendanceType&&!0!==e.flag&&te&&(0,_.jsxs)("div",{className:"d-flex align-items-center timesheet-leave-attendance-row",children:[(0,_.jsx)("div",{className:"attendance-red position-relative",children:(0,_.jsx)("div",{className:"attendance-tooltip",children:"Leave"})}),(0,_.jsx)("span",{children:"(Leave)"})]})]})})]},l)}))})}),(0,_.jsxs)("div",{className:"team-weekly-timesheet-right-section-weekrange",children:[(0,_.jsxs)("div",{className:"timesheet-status-section",children:["approved"===(null===he||void 0===he||null===(e=he[0])||void 0===e||null===(l=e.timesheetStatus)||void 0===l?void 0:l.toLowerCase().trim())&&(0,_.jsx)("div",{className:"timesheet-status-card ApprovedbtnUI",children:(0,_.jsx)("div",{className:"status-value",children:null===he||void 0===he||null===(t=he[0])||void 0===t?void 0:t.timesheetStatus})}),"open"===(null===he||void 0===he||null===(i=he[0])||void 0===i||null===(B=i.timesheetStatus)||void 0===B?void 0:B.toLowerCase().trim())&&(0,_.jsx)("div",{className:"timesheet-status-card openReportStatus",children:(0,_.jsx)("div",{className:"status-value",children:null===he||void 0===he||null===(F=he[0])||void 0===F?void 0:F.timesheetStatus})}),["submitted","pending for approval"].includes((null===he||void 0===he||null===(U=he[0])||void 0===U||null===(O=U.timesheetStatus)||void 0===O?void 0:O.toLowerCase().trim())||"")&&(0,_.jsx)("div",{className:"timesheet-status-card SubmitteddbtnUI",children:(0,_.jsx)("div",{className:"status-value",children:null===he||void 0===he||null===(V=he[0])||void 0===V?void 0:V.timesheetStatus})}),"rejected"===(null===he||void 0===he||null===(z=he[0])||void 0===z||null===(G=z.timesheetStatus)||void 0===G?void 0:G.toLowerCase().trim())&&(0,_.jsx)("div",{className:"timesheet-status-card RejectedbtnUI",children:(0,_.jsx)("div",{className:"status-value",children:null===he||void 0===he||null===(W=he[0])||void 0===W?void 0:W.timesheetStatus})})]}),Ee&&(0,_.jsx)("div",{className:"weekly-timesheet-calendar-top",children:(0,_.jsx)("div",{className:"team-weekly-timesheet-calendar-container",children:(0,_.jsx)(m.A,{ref:Cl,plugins:[p.A,v.A,h.A,x.Ay],headerToolbar:{left:"prev",center:"title",right:"next"},dateClick:e=>{le(e.dateStr),We("")},firstDay:1,initialView:"timeGridWeek",initialDate:Ee,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,datesSet:e=>{const l=Z(e.start);le(l)}})})})]})]})}),(0,_.jsx)("div",{className:"team-weekly-timesheet-content-layout",children:(0,_.jsxs)("div",{className:"team-weekly-timesheet-main-row",children:[(0,_.jsx)("div",{className:"team-weekly-timesheet-banner-wrapper",children:(0,_.jsx)("div",{className:"team-weekly-timesheet-banner-container",children:(0,_.jsxs)("div",{className:"team-weekly-timesheet-banner",children:[(0,_.jsx)("div",{className:"team-weekly-timesheet-header-top",children:(0,_.jsx)("div",{className:"team-weekly-timesheet-header-top-inner",children:(0,_.jsx)(g.A,{placement:"bottom",overlay:(0,_.jsx)(k.A,{id:"username-tooltip",children:(null===ce||void 0===ce?void 0:ce.name)||De}),children:(0,_.jsxs)("h4",{className:"team-weekly-timesheet-username",children:[((null===ce||void 0===ce?void 0:ce.name)||De||"").split(" ")[0],"'s Timesheet"]})})})}),(0,_.jsx)("div",{className:"team-weekly-timesheet-header-bottom",children:(0,_.jsxs)("div",{className:"team-weekly-timesheet-bottom-list",children:[(0,_.jsxs)("div",{className:"team-weekly-timesheet-bottom-row",children:[(0,_.jsx)("span",{className:"team-weekly-timesheet-label",children:"Billable"}),(0,_.jsxs)("span",{className:"team-weekly-timesheet-hours-bill",children:[Hl,"H ",Ml,"M"]})]}),(0,_.jsxs)("div",{className:"team-weekly-timesheet-bottom-row",children:[(0,_.jsx)("span",{className:"team-weekly-timesheet-label",children:"Non-Billable"}),(0,_.jsxs)("span",{className:"team-weekly-timesheet-hours-bill",children:[Ll,"H ",_l,"M"]})]})]})}),(0,_.jsx)("div",{className:"team-weekly-timesheet-header-middle",children:(0,_.jsxs)("div",{className:"team-weekly-timesheet-middle-column",children:[(0,_.jsxs)("div",{className:"team-weekly-timesheet-hours-item",children:[(0,_.jsx)("h6",{className:"team-weekly-timesheet-total-text",children:"Total Hours"}),(0,_.jsxs)("h2",{className:"team-weekly-timesheet-hours",children:[xe,"H ",
1Ne,"M"]})]}),(0,_.jsxs)("div",{className:"team-weekly-timesheet-hours-item",children:[(0,_.jsx)("h6",{className:"team-weekly-timesheet-total-text",children:"Total Manual Hours"}),(0,_.jsxs)("h2",{className:"team-weekly-timesheet-hours",children:[ge,"H ",fe,"M"]})]}),(0,_.jsxs)("div",{className:"team-weekly-timesheet-hours-item",children:[(0,_.jsx)("h6",{className:"team-weekly-timesheet-total-text",children:"Total Tracked Hours"}),(0,_.jsxs)("h2",{className:"team-weekly-timesheet-hours",children:[be,"H ",Te,"M"]})]})]})})]})})}),(0,_.jsxs)("div",{className:"team-weekly-timesheet-right-section ".concat(Tl?"":"team-weekly-timesheet-right-section--no-clock"),children:[Tl&&te&&(0,_.jsxs)("div",{className:"team-shift-details-container",children:[(0,_.jsxs)("div",{className:"team-shift-row team-shift-header",children:[(0,_.jsx)("div",{children:"Date"}),(0,_.jsx)("div",{children:"Clock In"}),(0,_.jsx)("div",{children:"Clock Out"}),(0,_.jsx)("div",{children:"Hours"}),(0,_.jsx)("div",{children:"Shift"})]}),(0,_.jsx)("div",{className:"team-shift-data-body",children:0===fl.length?(0,_.jsx)("div",{className:"team-shift-row",children:(0,_.jsx)("div",{className:"text-center full-width",children:"No clock data available"})}):fl.map(((e,l)=>(0,_.jsxs)("div",{className:"team-shift-row",children:[(0,_.jsx)("div",{children:(0,S.tT)(e.clockInDate)}),(0,_.jsx)("div",{children:e.clockInTime}),(0,_.jsx)("div",{children:e.clockOutTime||"--"}),(0,_.jsx)("div",{children:e.totalHours}),(0,_.jsx)("div",{children:e.shiftName})]},l)))})]}),(0,_.jsx)("div",{className:"team-weekly-timesheet-kanban-section",children:(0,_.jsxs)("div",{className:"team-kanban-board-container",children:[(0,_.jsxs)("div",{className:"team-kanban-column",children:[(0,_.jsx)("div",{className:"team-kanban-column-header",children:(0,_.jsx)("h3",{children:"Manual Hours"})}),(0,_.jsx)("div",{className:"team-kanban-cards-container",children:Je.length>0?Je.filter((e=>e.entryId)).map(((e,l)=>(0,_.jsxs)("div",{className:"kanban-card-team-timesheet team-manual-card",children:[(0,_.jsxs)("div",{className:"team-card-content",children:[(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Client Name"}),(0,_.jsx)("p",{title:e.clientName,children:e.clientName})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Project Name"}),(0,_.jsx)("p",{title:e.projectName,children:e.projectName})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Project Co
1de"}),(0,_.jsx)("p",{title:vt(e),children:vt(e)})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Hours"}),(0,_.jsxs)("p",{children:[e.hours,":",e.minutes]})]})]}),(0,_.jsx)("div",{className:"card-actions",children:(0,_.jsx)("button",{type:"button",className:"action-btn-timesheet view-btn",onClick:()=>ht(e),title:"View",children:(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-md-12 d-flex align-items-center",children:(0,_.jsx)("div",{className:"col-md-2",children:(0,_.jsx)("i",{className:"fa fa-eye","aria-hidden":"true"})})})})})})]},l))):(0,_.jsx)("div",{className:"team-no-record",children:"No Record Found"})})]}),(0,_.jsxs)("div",{className:"team-kanban-column",children:[(0,_.jsx)("div",{className:"team-kanban-column-header",children:(0,_.jsx)("h3",{children:"Tracked Hours"})}),(0,_.jsx)("div",{className:"team-kanban-cards-container",children:el.length>0?el.map(((e,l)=>(0,_.jsxs)("div",{className:"kanban-card-team-timesheet tracked-card",children:[(0,_.jsx)("button",{className:"screenshot-btn-orange-circle team-top-right-absolute",onClick:l=>{var t;l.stopPropagation(),t=e.entryId,vl((e=>e===t?null:t)),pl(t),jl(1),Il(!0)},title:"View screenshots",children:(0,_.jsx)("img",{src:H,alt:"View screenshots",className:"screenshot-icon-small"})}),(0,_.jsxs)("div",{className:"team-card-content",children:[(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Client Name"}),(0,_.jsx)("p",{title:e.clientName,children:e.clientName})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Project Name"}),(0,_.jsx)("p",{title:e.projectName,children:e.projectName})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Project Co
1de"}),(0,_.jsx)("p",{title:vt(e),children:vt(e)})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Hours"}),(0,_.jsxs)("p",{children:[e.hours,":",e.minutes]})]})]}),(0,_.jsx)("div",{className:"card-actions",children:(0,_.jsx)("button",{type:"button",className:"action-btn-timesheet view-btn",onClick:()=>ht(e),title:"View",children:(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-md-12 d-flex align-items-center",children:(0,_.jsx)("div",{className:"col-md-2",children:(0,_.jsx)("i",{className:"fa fa-eye","aria-hidden":"true"})})})})})})]},l))):(0,_.jsx)("div",{className:"team-no-record",children:"No Record Found"})})]}),(0,_.jsxs)("div",{className:"team-kanban-column",children:[(0,_.jsx)("div",{className:"team-kanban-column-header",children:(0,_.jsx)("h3",{children:"System Generated Leaves"})}),(0,_.jsx)("div",{className:"team-kanban-cards-container",children:(null===Je||void 0===Je||null===(Y=Je.filter((e=>!e.entryId&&e.taskName)))||void 0===Y?void 0:Y.map(((e,l)=>(0,_.jsx)("div",{className:"kanban-card-team-timesheet leave-card",children:(0,_.jsxs)("div",{className:"team-card-content",children:[(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Task Name"}),(0,_.jsx)("p",{title:e.taskName,children:e.taskName})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Task Type"}),(0,_.jsx)("p",{title:e.taskTypeName,children:e.taskTypeName})]}),(0,_.jsxs)("div",{className:"team-card-field",children:[(0,_.jsx)("label",{children:"Hours"}),(0,_.jsxs)("p",{children:[e.hours,":",e.minutes]})]})]})},l))))||(0,_.jsx)("div",{className:"team-no-record",children:"No Record Found"})})]})]})})]})]})})]}),(0,_.jsx)(N.A,{allEmpTimeSheetModal:nl,allEmpTimeSheetModalClose:()=>{rl(!1),_e("")},text:"Confirm to Approve Timesheet",updateTimesheetStatus:e=>{switch(X(),e){case"Approved":const e={timesheetId:de,timesheetStatus:"Approved",reason:Pe,tab:"employee"};n.A.updateTimesheetStatus(e).then((e=>{var l,t,s;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error)?(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message):(setTimeout((()=>{window.location.href="/home/Timesheets/AllEmployeeTimesheets"}),1e3),(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message))}),(e=>{var l,t,s,a,i,d,o,n,r;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}));break;case"Submitted":const l={timesheetId:de,timesheetStatus:"Pending for approval",reason:Pe,tab:"employee"};n.A.updateTimesheetStatus(l).then((e=>{var l,t,s;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error)?(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message):(setTimeout((()=>{window.location.href="/home/Timesheets/AllEmployeeTimesheets"}),1e3),(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message))}),(e=>{var l,t,s,a,i,d,o,n,r;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}));break;case"Rejected":const t={timesheetId:de,timesheetStatus:"Rejected",reason:Pe,tab:"employee"};n.A.updateTimesheetStatus(t).then((e=>{var l,t,s;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error)?(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message):(setTimeout((()=>{window.location.href="/home/Timesheets/AllEmployeeTimesheets"}),1e3),(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message))}),(e=>{var l,t,s,a,i,d,o,n,r;(X(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}));break;default:_e("")}},handleChanged:Tt,reason:Pe}),(0,_.jsx)(u.A,{timeSheetRejectModal:dl,timeSheetRejectModalClose:()=>{ol(!1),_e("")},updateTimesheetTeamStatus:e=>
1{switch(X(),e){case"Approved":const e={timesheetId:de,timesheetStatus:"Approved",reason:Pe,tab:"employee"};n.A.updateTimesheetStatus(e).then((e=>{var l,t,s;(X(),bt(),null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error)?(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message):(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message)}),(e=>{var l,t,s,a,i,d,o,n,r;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}));break;case"Submitted":const l={timesheetId:de,timesheetStatus:"Pending for approval",reason:Pe,tab:"employee"};n.A.updateTimesheetStatus(l).then((e=>{var l,t,s;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error)?(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message):(setTimeout((()=>{window.location.href="/home/Timesheets/AllEmployeeTimesheets"}),1e3),(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message))}),(e=>{var l,t,s,a,i,d,o,n,r;(X(),wt(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}));break;case"Rejected":const t={timesheetId:de,timesheetStatus:"Rejected",reason:Pe,tab:"employee"};n.A.updateTimesheetStatus(t).then((e=>{var l,t,s;(X(),bt(),wt(),null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error)?(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message):(setTimeout((()=>{window.location.href="/home/Timesheets/AllEmployeeTimesheets"}),1e3),(0,j.oR)(null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message))}),(e=>{var l,t,s,a,i,d,o,n,r;(X(),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors)?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}))}},text:"Confirm to Reject Timesheet",handleChanged:Tt,reason:Pe}),(0,_.jsx)(C.A,{showHistoryDialog:cl,handleShowTimesheetHistoryClose:()=>{ml(!1)},allHistoryArr:Ce}),(0,_.jsxs)(I.A,{fullscreen:!0,show:Rl,onHide:Ct,children:[(0,_.jsx)(I.A.Header,{className:"team-modalbody team-modal-header-allmodules",children:(0,_.jsx)("div",{className:"row",children:(0,_.jsxs)("div",{className:"col-md-12 d-flex",children:[(0,_.jsx)("div",{className:"col-md-6",children:(0,_.jsxs)("div",{className:"headername1",children:["Screenshots (",Nl.length,")"]})}),(0,_.jsx)("div",{className:"col-md-6 text-right mt-2 pr-0",children:(0,_.jsx)("img",{alt:"Close",src:E.A,width:40,height:40,onClick:Ct,className:"team-pointer"})})]})})}),(0,_.jsx)(I.A.Body,{className:"team-modalbody",children:(0,_.jsx)("div",{className:"container-fluid",children:Nl.length>0?(0,_.jsx)("div",{className:"team-screenshots-container",onScroll:e=>{const{scrollHeight:l,scrollTop:t,clientHeight:s}=e.target;l-t<=s+5&&!gl&&(()=>{if(gl)return;yl(!0);const e={pageNumber:xl,pageSize:50,entryId:hl};n.A.getTrackedEntryImage(e).then((e=>{var l;if(null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.error){var t;yl(!1),(0,j.oR)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message)}else{var s;const l=null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.data.records;l&&l.length>0?(kl((e=>[...e,...l])),jl((e=>e+1)),yl(!1)):yl(!1)}}),(e=>{var l,t,s,a,i,d,o,n,r;yl(!1),null!==e&&void 0!==e&&null!==(l=e.response)&&void 0!==l&&null!==(t=l.data)&&void 0!==t&&null!==(s=t.message)&&void 0!==s&&s.errors?(0,j.oR)(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i||null===(d=i.message)||void 0===d||null===(o=d.errors[0])||void 0===o?void 0:o.msg):(0,j.oR)(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)}))})()},children:Nl.map(((e,l)=>(0,_.jsxs)("div",{className:"team-screenshot-wrapper",children:["undefined"!==typeof e.minutes&&(0,_.jsxs)("div",{className:"team-minutes-badge",children:[e.minutes,"m"]}),(0,_.jsx)("div",{className:"team-image-container",children:(0,_.jsx)("img",{src:e.imageUrl||A,alt:"Screenshot ".concat(l+1),className:"team-screenshot-fullscreen-img",onError:e=>{e.target.src=A}})}),e.description&&(0,_.jsx)("div",{className:"team-screenshot-info",children:(0,_.jsx)("p",{className:"team-screenshot-caption",children:e.description})})]},e.imageId||l)))}):(0,_.jsx)("div",{className:"text-center py-5",children:(0,_.jsx)("h5",{children:"No screenshots available"})})})}),(0,_.jsx)(I.A.Footer,{children:(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-md-12 d-flex",children:(0,_.jsx)("div",{className:"col-md-12 text-right",children:(0,_.jsx)("div",{type:"button",className:"leaveBalanceCancelButton leaveBalanceButton",onClick:Ct,children:"Close"})})})})})]}),Q?(0,_.jsx)(T.A,{}):null,(0,_.jsx)(L.A,{viewTimeSheetModal:Zl,projectName:lt,taskTypeName:st,taskName:it,description:ot,hours:rt,minutes:mt,handleEmployeeWeeklyTimeSheetClose:()=>{et(!1),tt(""),at(""),dt(""),nt(""),ct(""),ut("")}}),(0,_.jsx)(M.A,(0,s.A)((0,s.A)({open:zl,onClose:()=>{Gl(!1),Jl(!0),Kl(!1)},isEditMode:!0,isViewMode:$l,isTimesheet:!0,timesheetReadOnlyView:ql,activeTab:Ql,onTabChange:e=>Xl(e)},Wl),{},{effortDate:(null===Wl||void 0===Wl?void 0:Wl.effortDate)||"",dailySpentHours:(null===Wl||void 0===Wl?void 0:Wl.dailySpentHours)||0,onEffortDateChange:()=>{},onDailySpentHoursChange:()=>{},toggleLoader:X,assigneeOptions:null!==Wl&&void 0!==Wl&&Wl.assignedTo?[{value:Wl.assignedTo,label:Wl.assignedToName}]:[],statusOptions:null!==Wl&&void 0!==Wl&&Wl.taskStatusId?[{value:Wl.taskStatusId,name:Wl.taskStatus}]:[],projectUsers:[],localSprintOptions:[]}))]})}},13442:(e,l,t)=>{t.d(l,{A:()=>d});var s=t(11665),a=t(83846),i=(t(92008),t(97402),t(70579));const d=e=>{let{allEmpTimeSheetModal:l,allEmpTimeSheetModalClose:t,text:d="",updateTimesheetStatus:o,handleChanged:n,reason:r}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s.A,{className:"modal-center employee-delete-meatadata",
1show:l,onHide:t,children:(0,i.jsx)(s.A.Body,{className:"modal-delete-employee",children:(0,i.jsxs)("div",{className:"",children:[(0,i.jsxs)("div",{className:"d-flex justify-content-between mb-4",children:[(0,i.jsx)("div",{children:(0,i.jsx)("span",{className:"confirm-message-employee",children:"Approve"})}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:a,className:"close-icon-employee",alt:"close_icon",onClick:()=>{t()}})})]}),(0,i.jsxs)("div",{className:"text-left confirm-message-for-delete",children:[(0,i.jsx)("span",{className:"text-left",children:d}),(0,i.jsx)("textarea",{placeholder:"Remark",className:"form-control mt-1 lableColor curview height-textarea-allmodals",type:"text",id:"reason",name:"reason",onChange:n,value:r})]}),(0,i.jsxs)("div",{className:"d-flex justify-content-between mb-3 modal-btn action-btn-employee",children:[(0,i.jsx)("div",{className:"d-flex align-items-center modal-button-confirm-employee",onClick:()=>{t()},children:(0,i.jsx)("div",{children:(0,i.jsx)("span",{children:"Cancel"})})}),(0,i.jsx)("div",{className:"d-flex align-items-center yesbutton modal-button-confirm-delete confirm-btn-employee-delete",onClick:()=>{o("Approved"),t()},children:(0,i.jsx)("div",{children:(0,i.jsx)("span",{children:"Yes"})})})]})]})})})})}},14946:(e,l,t)=>{t.d(l,{R:()=>o,b:()=>d});var s=t(86111),a=t.n(s);const i="my_secret_key",d=e=>{if(!e)return"";const l=a().AES.encrypt(String(e),i).toString();return l.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},o=e=>{if(!e)return"";try{const l=(e=>{let l=e.replace(/-/g,"+").replace(/_/g,"/");for(;l.length%4;)l+="=";return l})(e),t=a().AES.decrypt(l,i);return t.toString(a().enc.Utf8)||e}catch(l){return e}}},69682:()=>{}}]);
2//# sourceMappingURL=7500.c0940077.chunk.js.map

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.