1"use strict";(globalThis.webpackChunkwifiattendance=globalThis.webpackChunkwifiattendance||[]).push([[11565,84201],{44026(e,a,s){s.d(a,{A:()=>t});s(65043);const t=s.p+"static/media/ic_excel.3778ce38c112041b06003b56c394f15b.svg"},92412(e,a,s){s.d(a,{A:()=>l});s(65043);var t=s(84201),n=s(70579);const l=()=>(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",margin:"18%"},children:(0,n.jsx)(t.A,{color:"#53B7E8",className:"spinner",size:300})})},11565(e,a,s){s.r(a),s.d(a,{default:()=>x});var t=s(65043),n=s(1580),l=s(92412),r=s(51676),o=s(99828),c=s(17427),i=s(70493),d=s(44026),h=s(72450),p=s.n(h),m=s(46671),u=s(70579);const x=()=>{const{sidebar:e,setSidebar:a,Dark:s,setDark:h,userData:x,permissions:j}=(0,t.useContext)(n.B),[g,v]=(0,t.useState)(!1),[b,y]=(0,t.useState)([]),[f,N]=(0,t.useState)([]),[C,E]=(0,t.useState)(0),[A,w]=(0,t.useState)(""),[P,S]=(0,t.useState)(0),[D,L]=(0,t.useState)(5),T=P*D,O=T+parseInt(D),k=b&&b.length&&b.filter(e=>{var a;return null===(a=e.ProjectName)||void 0===a?void 0:a.toLowerCase().includes(A)}),B=()=>{v(!0),(0,c.wQ)(i.Ay.GET_BENCHLIST_DATA).then(e=>{!0===e.Success&&(v(!1),y(e.Data))}).catch(e=>{console.log(e)})},[F,I]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{(0,c.uO)(i.Ay.EMPLOEE_NAME_LIST).then(e=>{console.log("ATTENDANCE_PATH==>",e),!0===e.json.Success&&N(e.json.Data)}).catch(e=>{console.log(e)}),B()},[]),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("div",{className:e?"taskMain ":"cx-active taskMain",id:"cx-main",children:[(0,u.jsxs)("div",{className:"role-content",children:[(0,u.jsx)("div",{className:"sub-header-role ",children:(0,u.jsx)("h6",{className:"mt-2",children:"Bench List"})}),(0,u.jsx)("div",{className:"d-flex justify-content-between role-searchbar-and-btns RspSalary",children:(0,u.jsxs)("div",{className:"role-table-header",children:[(0,u.jsxs)("div",{className:"w-25 my-3",children:[(0,u.jsx)("label",{htmlFor:"",className:"enter-role-text mt-2",children:"Employee Name"}),(0,u.jsxs)("select",{class:"form-select tasKCategory1 select-drop-icon","aria-label":"Default select example",onChange:e=>{E(e.target.value)},onClick:()=>{0!==C?(()=>{let e=C||0;(0,c.wQ)(i.Ay.GET_BENCHLIST_DATA+`?employeeid=${e}`).then(e=>{!0===e.Success&&y(e.Data)}).catch(e=>{console.log(e)})})():B()},name:"projId",value:C,children:[(0,u.jsx)("option",{selected:!0,value:"0",children:"Select Employee Name"}),f.map((e,a)=>(0,u.jsx)("option",{value:e.Id,children:e.FullName}))]})]}),(0,u.jsx)("div",{className:"entries-wrapper",children:(0,u.jsxs)("select",{className:"form-select select-drop-icon","aria-label":"Default select example",onChange:e=>{L(e.target.value),S(0)},children:[(0,u.jsx)("option",{value:"5",children:"5"}),(0,u.jsx)("option",{value:"10",children:"10"}),(0,u.jsx)("option",{value:"15",children:"15"}),(0,u.jsx)("option",{value:"20",children:"20"}),(0,u.jsx)("option",{value:"25",children:"25"})]})}),(0,u.jsx)("div",{className:"import-export-btn-wrapper mt-4",children:j&&j["Bench List Export"]&&(0,u.jsx)("button",{style:{marginLeft:"650px"},children:F?(0,u.jsx)(m.A,{}):(0,u.jsx)("img",{src:d.A,onClick:e=>(e=>{I(!0),e.preventDefault(),(0,c.EI)(i.Ay.GET_BENCHLIST_EXPORT).then(e=>{if(console.log("Download File Response",e),e.error)console.log("Error response",e);else if(!0===e.json.Success){I(!1);let a=e.json.Data;p().saveAs("data:"+a.ContentType+";base64,"+a.FileContents,a.FileDownloadName)}else console.log("res",e),I(!1)}).catch(e=>{console.log(e)})})(e),alt:""})})})]})}),(0,u.jsx)("div",{className:"table-wrapper",children:g?(0,u.jsx)(l.A,{}):b&&b.length>0?(0,u.jsxs)("table",{children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{className:"firstTabelRow",children:[(0,u.jsx)("th",{children:"Employee Name"}),(0,u.jsx)("th",{children:"Project Name"}),(0,u.jsx)("th",{children:"Project Lead"}),(0,u.jsx)("th",{children:"Location"})]})}),(0,u.jsx)("tbody",{children:b.slice(T,O).map(e=>(0,u.jsxs)("tr",{className:"table-row-custom",children:[(0,u.jsx)("td",{children:e.EmployeeName}),(0,u.jsx)("td",{children:e.ProjectName}),(0,u.jsx)("td",{children:e.ProjectLead}),(0,u.jsx)("td",{children:e.Location?e.Location:(0,u.jsx)("span",{className:"text-danger",children:"No Data Found"})})]}))})]}):(0,u.jsx)(r.A,{})})]}),(0,u.jsx)(o.A,{data:b,pageChangeHandler:({selected:e})=>{S(e)},usersPerPage:D,currentPage:P,searchValue:A,searchedDataPageCounts:k})]})})}},46671(e,a,s){s.d(a,{A:()=>n});s(65043);var t=s(70579);const n=()=>(0,t.jsx)("div",{class:"spinner-border",role:"status",style:{width:"1rem",he
1ight:"1rem",marginTop:"10px",marginLeft:"10px",color:"#5ac8fa"}})},51676(e,a,s){s.d(a,{A:()=>l});s(65043);var t=s(80126),n=s(70579);const l=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"d-flex flex-column justify-content-center align-items-center h-100",children:[(0,n.jsx)("img",{src:t.A,alt:"",className:"mb-3"}),(0,n.jsx)("span",{className:"blueColor",children:"Data Not Found"})]})})},99828(e,a,s){s.d(a,{A:()=>r});s(65043);var t=s(92157),n=s.n(t),l=s(70579);const r=({data:e,pageChangeHandler:a,usersPerPage:s,currentPage:t,searchValue:r="",searchedDataPageCounts:o})=>{const c=Math.ceil((null===e||void 0===e?void 0:e.length)/s);console.log(c,"pageCount");const i=Math.ceil((null===o||void 0===o?void 0:o.length)/s);return(0,l.jsx)("div",{className:"row mt-7",style:{position:"absolute",bottom:"5px",right:"25px"},children:(0,l.jsx)("div",{className:"col-lg-12",children:(0,l.jsx)(n(),{previousLabel:0===t?null:"Previous",nextLabel:t===c-1?"":"Next",pageCount:""===r?c:i,onPageChange:a,containerClassName:"paginationBttns",previousClassName:0===t?"hidden":"previousBttn",nextClassName:t===c-1?"d-none":"nextBttn",disabledClassName:"paginationDisabled",activeClassName:"paginationActive",forcePage:t})})})}},84201(e,a,s){s.d(a,{A:()=>i});var t=s(65043),n=s(4524),l=s(37628),r=function(){return r=Object.assign||function(e){for(var a,s=1,t=arguments.length;s<t;s++)for(var n in a=arguments[s])Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);return e},r.apply(this,arguments)},o=function(e,a){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(s[t]=e[t]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(s[t[n]]=e[t[n]])}return s},c=(0,l.J)("ScaleLoader","0% {transform: scaley(1.0)} 50% {transform: scaley(0.4)} 100% {transform: scaley(1.0)}","scale");const i=function(e){var a=e.loading,s=void 0===a||a,l=e.color,i=void 0===l?"#000000":l,d=e.speedMultiplier,h=void 0===d?1:d,p=e.cssOverride,m=void 0===p?{}:p,u=e.height,x=void 0===u?35:u,j=e.width,g=void 0===j?4:j,v=e.radius,b=void 0===v?2:v,y=e.margin,f=void 0===y?2:y,N=o(e,["loading","color","speedMultiplier","cssOverride","height","width","radius","margin"]),C=r({display:"inherit"},m),E=function(e){return{backgroundColor:i,width:(0,n.p)(g),height:(0,n.p)(x),margin:(0,n.p)(f),borderRadius:(0,n.p)(b),display:"inline-block",animation:"".concat(c," ").concat(1/h,"s ").concat(.1*e,"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)"),animationFillMode:"both"}};return s?t.createElement("span",r({style:C},N),t.createElement("span",{style:E(1)}),t.createElement("span",{style:E(2)}),t.createElement("span",{style:E(3)}),t.createElement("span",{style:E(4)}),t.createElement("span",{style:E(5)})):null}}}]); 2//# sourceMappingURL=11565.59cb7b30.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.