text: (this["webpackJsonpeasy-hr"]=this["webpackJsonpeasy-hr"]||[]).push([[11],{318:function(e,l,n){"use strict";n(0),n(319);var i=n(324),a=n.n(i),c=n(325),s=n.n(c),t=n(323),d=n.n(t),o=n(304),r=n(1);l.a=function(e){var l,n,i,c,t,j,v,u,b,h,x,O,p,y,m,g,D,f,M,N,W,C,S,z,P,A,_,k=e.parentCallback,E=e.data,L=e.count,B=e.todaydays;return console.log(E),Object(r.jsxs)("div",{className:"salary-sidepanel-container",children:[Object(r.jsxs)("div",{className:"salary-sidepanel-box1",children:[Object(r.jsx)("span",{className:"close-sidebar",role:"button",onKeyDown:k,tabIndex:-27,onClick:k,children:Object(r.jsx)(d.a,{style:{cursor:"pointer"}})}),Object(r.jsx)("div",{className:"salary-sidepanel-box-img",children:Object(r.jsx)("img",{className:"salary-sidepanel-img",alt:"user",src:"https://ik.imagekit.io/6vy1oi4m4uh/profile-pic_DBEIl1ZKUGo.png?updatedAt=1637958057447"})}),Object(r.jsxs)("div",{className:"salary-sidepanel-box-head",children:[Object(r.jsx)("h3",{style:{fontWeight:700,color:"#000000",fontSize:"24px",marginLeft:"-25px"},children:null===E||void 0===E||null===(l=E.personalDetails)||void 0===l?void 0:l.fullName}),Object(r.jsxs)("div",{className:"sidepanel-icon",style:{marginBottom:"20px"},children:[Object(r.jsxs)("span",{children:[Object(r.jsx)(a.a,{}),Object(r.jsx)("span",{children:null===E||void 0===E||null===(n=E.companyDetails)||void 0===n?void 0:n.designation})]}),Object(r.jsxs)("span",{children:[Object(r.jsx)(s.a,{}),Object(r.jsx)("span",{children:null===E||void 0===E||null===(i=E.personalDetails)||void 0===i?void 0:i.mobileNo})]})]})]})]}),Object(r.jsxs)("div",{className:"salary-sidepanel-box2",children:[Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"UAN No"}),Object(r.jsx)("b",{children:null===E||void 0===E||null===(c=E.companyDetails)||void 0===c?void 0:c.UAN})]}),Object(r.jsxs)("div",{children:[Object(r.jsxs)("span",{style:{marginLeft:"13px"},children:[Object(r.jsx)("p",{children:"Paid Days"}),Object(r.jsx)("b",{children:L.count?L.count:0})]}),Object(r.jsxs)("span",{children:[Object(r.jsx)("p",{children:"OT"}),Object(r.jsx)("b",{children:L.ot?L.ot:0})]})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Joining Date"}),Object(r.jsx)("b",{children:Object(r.jsx)("b",{children:Object(o.a)(null===E||void 0===E||null===(t=E.companyDetails)||void 0===t?void 0:t.joiningDate)})})]})]}),Object(r.jsxs)("div",{className:"salary-sidepanel-box3",children:[Object(r.jsx)("div",{className:"salary-sidepanel-box-head3",children:"Total Earning"}),Object(r.jsxs)("div",{className:"salary-sidepanel-box-cont",children:[Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Basic Salary"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(j=E.companyDetails)||void 0===j?void 0:j.selectWages)?Math.round((null===E||void 0===E||null===(v=E.salaryDetails)||void 0===v?void 0:v.basicSalary)*L.count/B):Math.round(null===E||void 0===E||null===(u=E.salaryDetails)||void 0===u?void 0:u.basicSalary)*L.count})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"HRA"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(b=E.companyDetails)||void 0===b?void 0:b.selectWages)?Math.round((null===E||void 0===E||null===(h=E.salaryDetails)||void 0===h?void 0:h.hra)*L.count/B):Math.round(null===E||void 0===E||null===(x=E.salaryDetails)||void 0===x?void 0:x.hra)*L.count})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Con"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(O=E.companyDetails)||void 0===O?void 0:O.selectWages)?Math.round((null===E||void 0===E||null===(p=E.salaryDetails)||void 0===p?void 0:p.con)*L.count/B):Math.round(null===E||void 0===E||null===(y=E.salaryDetails)||void 0===y?void 0:y.con)*L.count})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Medical"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(m=E.companyDetails)||void 0===m?void 0:m.selectWages)?Math.round((null===E||void 0===E||null===(g=E.salaryDetails)||void 0===g?void 0:g.medical)*L.count/B):Math.round(null===E||void 0===E||null===(D=E.salaryDetails)||void 0===D?void 0:D.medical)*L.count})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Education"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(f=E.companyDetails)||void 0===f?void 0:f.selectWages)?Math.round((null===E||void 0===E||null===(M=E.salaryDetails)||void 0===M?void 0:M.education)*L.count/B):Math.round(null===E||void 0===E||null===(N=E.salaryDetails)||void 0===N?void 0:N.education)*L.count})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Canteen"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(W=E.companyDetails)||void 0===W?void 0:W.selectWages)?Math.round((null===E||void 0===E||null===(C=E.salaryDetails)||void 0===C?void 0:C.canteen)*L.count/B):Math.round(null===E||void 0===E||null===(S=E.salaryDetails)||void 0===S?void 0:S.canteen)*L.count})]})]})]}),Object(r.jsxs)("div",{className:"salary-sidepanel-box3",children:[Object(r.jsx)("div",{className:"salary-sidepanel-box-head3",children:"Total Deduction"}),Object(r.jsxs)("div",{className:"salary-sidepanel-box-cont",children:[Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Provident Fund (PF)"}),Object(r.jsx)("b",{children:"Monthly Wages"===(null===E||void 0===E||null===(z=E.companyDetails)||void 0===z?void 0:z.selectWages)?Math.round((null===E||void 0===E||null===(P=E.salaryDetails)||void 0===P?void 0:P.basicSalary)*L.count/B*12/100):Math.round((null===E||void 0===E||null===(A=E.salaryDetails)||void 0===A?void 0:A.basicSalary)*L.count*12/100)})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Canteen"}),Object(r.jsx)("b",{children:"0.00"})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Advance Payment"}),Object(r.jsx)("b",{children:"0.00"})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Loan"}),Object(r.jsx)("b",{children:"0.00"})]}),Object(r.jsxs)("div",{children:[Object(r.jsx)("p",{children:"Tax"}),Object(r.jsx)("b",{children:Math.round(null===E||void 0===E||null===(_=E.salaryDetails)||void 0===_?void 0:_.incomeTax)})]})]})]})]})}},319:function(e,l,n){},323:function(e,l,n){"use strict";var i=n(84);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=i(n(85)),c=n(1),s=(0,a.default)((0,c.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");l.default=s},324:function(e,l,n){"use strict";var i=n(84);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=i(n(85)),c=n(1),s=(0,a.default)((0,c.jsx)("path",{d:"M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-6 0h-4V5h4v2z"}),"BusinessCenter");l.default=s},325:function(e,l,n){"use strict";var i=n(84);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=i(n(85)),c=n(1),s=(0,a.default)((0,c.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"Phone");l.default=s},565:function(e,l,n){"use strict";n.r(l);var i=n(15),a=n(0),c=n.n(a),s=n(26),t=n(305),d=n(60),o=n(609),r=n(603),j=n(604),v=n(600),u=n(283),b=n(316),h=n(312),x=n(581),O=(n(318),n(304)),p=n(1);l.default=function(){var e,l=Object(s.b)(),n=c.a.useState(1),y=Object(i.a)(n,2),m=y[0],g=y[1],D=Object(s.c)((function(e){return e.myEmployee})),f=D.error,M=D.orders;console.log(M),Object(a.useEffect)((function(){l(Object(t.d)(m)),f&&(console.log(f),l(Object(t.c)()))}),[l,f,m]);var N=Object(a.useState)("inactivesidebar"),W=Object(i.a)(N,2);W[0],W[1];return Object(p.jsxs)(h.c,{children:[Object(p.jsx)(b.a,{name:"Employee List",search:"true"}),Object(p.jsx)(d.a,{variant:"body2",children:Object(p.jsxs)(h.a,{component:u.a,children:[Object(p.jsxs)(h.d,{sx:{minWidth:650},"aria-label":"customized table",children:[Object(p.jsx)(j.a,{children:Object(p.jsxs)(v.a,{children:[Object(p.jsx)(h.e,{align:"center",children:"Sr No."}),Object(p.jsx)(h.e,{align:"center",children:"UAN No."}),Object(p.jsx)(h.e,{align:"center",children:"Name"}),Object(p.jsx)(h.e,{align:"center",children:"Contact Number"}),Object(p.jsx)(h.e,{align:"center",children:"Date of Birth"}),Object(p.jsx)(h.e,{align:"center",children:"Designation"}),Object(p.jsx)(h.e,{align:"center",children:"Mode of Wages"}),Object(p.jsx)(h.e,{align:"center",children:"Joining Date"})]})}),Object(p.jsx)(o.a,{children:null===M||void 0===M||null===(e=M.employees)||void 0===e?void 0:e.map((function(e,l){var n,i,a,c,s,t,d;return Object(p.jsxs)(h.f,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[Object(p.jsx)(r.a,{align:"center",component:"th",scope:"row",children:10*(m-1)+l+1}),Object(p.jsx)(r.a,{align:"center",children:null===e||void 0===e||null===(n=e.companyDetails)||void 0===n?void 0:n.UAN}),Object(p.jsx)(r.a,{align:"center",children:null===e||void 0===e||null===(i=e.personalDetails)||void 0===i?void 0:i.fullName}),Object(p.jsx)(r.a,{align:"center",children:null===e||void 0===e||null===(a=e.personalDetails)||void 0===a?void 0:a.mobileNo}),Object(p.jsx)(r.a,{align:"center",children:Object(O.a)(null===e||void 0===e||null===(c=e.personalDetails)||void 0===c?void 0:c.dob)}),Object(p.jsx)(r.a,{align:"center",children:null===e||void 0===e||null===(s=e.companyDetails)||void 0===s?void 0:s.designation}),Object(p.jsx)(r.a,{align:"center",children:null===e||void 0===e||null===(t=e.companyDetails)||void 0===t?void 0:t.selectWages}),Object(p.jsx)(r.a,{align:"center",children:Object(O.a)(null===e||void 0===e||null===(d=e.companyDetails)||void 0===d?void 0:d.joiningDate)})]},10*(m-1)+l+1)}))})]}),Object(p.jsx)(x.a,{count:Math.floor((null===M||void 0===M?void 0:M.employeeCount)/10)+1,color:"primary",style:{float:"right"},page:m,onChange:function(e,l){g(l)}})]})})]})}}}]);
  //# sourceMappingURL=11.cccb8bdf.chunk.js.map