PageSourceSearch

https://clovehr.com/static/js/4444.11bb9e7f.chunk.js

js clovehr.com collected 2026-09-24 14:41:05 UTC 22,946 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhrms=self.webpackChunkhrms||[]).push([[4444],{58312:(e,s,l)=>{l.d(s,{A:()=>a});l(65043);const a=l.p+"static/media/adminsettings_orng.d1228c79e5b8a42a5cd51c5b2a4e3b61.svg"},64444:(e,s,l)=>{l.r(s),l.d(s,{default:()=>b});var a=l(89379),d=l(65043),o=l(73216),i=l(96189),m=l(91036),c=l(58312),t=l(96209),n=(l(28517),l(25663),l(10615)),r=l(30370),u=l(55945),h=l(82867),x=(l(58613),l(92522)),p=l(56001),v=l(70579);const N=e=>{let{rowClasses:s,getDepartmentlist:l}=e;const[a,c]=(0,d.useState)([]),[N,b]=(0,d.useState)(1),[j,g]=(0,d.useState)(0),[f,I]=(0,d.useState)(0),[S,k]=(0,d.useState)([]),[A,P]=(0,d.useState)(""),[y,w]=(0,d.useState)(""),[C,E]=(0,d.useState)(""),[F,D]=(0,d.useState)([]),[H,R]=(0,d.useState)("userName"),[U,M]=(0,d.useState)("ASC"),{id:_}=(0,o.g)(),L=e=>{const{name:s,value:l}=e.target;if("departmentsIds"===s){const s=e.target.value;P(s),E("")}if("filteruserIds"==s){const s=e.target.value;w(s)}};(0,d.useEffect)((()=>{A&&T(A)}),[A]);const T=e=>{const s={department:[e]};x.A.getEmployeeListAppraisal(s).then((e=>{var s,l;D(null===e||void 0===e||null===(s=e.data)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.records),setTimeout((()=>{E("")}),500)}))};(0,d.useEffect)((()=>{O()}),[H,U]);const O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const s={roleId:_,pageNumber:e,pageSize:50,userId:y||"",departmentId:A||"",sortBy:H||"userName",sortOrder:(U||"ASC").toUpperCase()};i.A.getRoleEmployee(s).then((s=>{var l,a,d,o;const i=(null===s||void 0===s||null===(l=s.data)||void 0===l||null===(a=l.data)||void 0===a?void 0:a.records)||[],m=(null===s||void 0===s||null===(d=s.data)||void 0===d||null===(o=d.data)||void 0===o?void 0:o.count)||0;c(i),g(m),b(e);const t=Math.ceil(m/50);if(I(t),0===S.length||1===e){const e=[];for(let s=1;s<=t;s++)s<=5&&e.push(s);k(e)}})).catch((e=>{var s,l;(0,m.oR)((null===e||void 0===e||null===(s=e.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.message)||"Failed to fetch role employees")}))};(0,d.useEffect)((()=>{O(1)}),[A,y]);const z=e=>{"dec"===e?O(1):"acc"===e&&O(f)},B=e=>{const s="acc"===e?N+1:N-1;s>=1&&s<=f&&O(s)},Y=null===l||void 0===l?void 0:l.map((e=>({value:e.id,label:e.name}))),q=null===F||void 0===F?void 0:F.map((e=>({value:e.userId,label:e.employeeNumberAndName})));let G=[{text:(0,v.jsx)("span",{className:"table_haedingUI",children:"EMPLOYEE INFO"}),dataField:"userName",sort:!0,onSort:(e,s)=>((e,s)=>{R(e),M(s)})("userName",s),formatter:(e,s)=>(0,v.jsx)("div",{children:(0,v.jsx)("div",{className:"row",children:(0,v.jsx)("div",{className:"col-md-9",children:(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)("div",{className:"col-md-2 text-right",children:s.imageUrl&&1===s.imageUrl.length?(0,v.jsx)("img",{className:"rounded-circle userImg",src:s.imageUrl,"data-holder-rendered":"true"}):(0,v.jsx)("img",{className:"rounded-circle userImg",src:u,"data-holder-rendered":"true"})}),(0,v.jsxs)("div",{className:"col-md-6 ml-5",children:[(0,v.jsx)("div",{className:"empName",children:(0,v.jsx)("span",{children:["bottom"].map((e=>{var l;return(0,v.jsx)(r.A,{placement:e,overlay:(0,v.jsx)(n.A,{className:"",id:"tooltip-".concat(e),children:s.userName}),children:(0,v.jsx)("a",{variant:"secondary",children:"".concat(s.userName>25?"".concat(null===(l=s.userName)||void 0===l?void 0:l.substring(0,25),"..."):s.userName)})},e)}))})}),(0,v.jsx)("div",{className:"designName",children:(0,v.jsx)("span",{className:"employee-number-text-roles",children:["bottom"].map((e=>{var l;return(0,v.jsx)(r.A,{placement:e,overlay:(0,v.jsx)(n.A,{className:"",id:"tooltip-".concat(e),children:s.employeeNumber}),children:(0,v.jsx)("a",{variant:"secondary",children:"".concat(s.employeeNumber>25?"".concat(null===(l=s.employeeNumber)||void 0===l?void 0:l.substring(0,25),"..."):s.employeeNumber)})},e)}))})})]})]})})})})},{text:(0,v.jsx)("span",{className:"table_haedingUI",children:"DEPARTMENT"}),sort:!1,dataField:"departmentName",formatter:(e,s)=>(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("span",{children:["bottom"].map((e=>{var l;return(0,v.jsx)(r.A,{placement:e,overlay:(0,v.jsx)(n.A,{className:"",id:"tooltip-".concat(e),children:s.departmentName}),children:(0,v.jsx)("a",{variant:"secondary",children:"".concat(s.departmentName.length>25?"".concat(null===(l=s.departmentName)||void 0===l?void 0:l.substring(0,25),"..."):s.departmentName)})},e)}))})})}];return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{classname:"
1container-fluid",children:[(0,v.jsxs)("div",{className:"row members-aligned-row mt-4",children:[(0,v.jsx)("div",{className:"col-md-5"}),(0,v.jsx)("div",{className:"col-md-3 mt-4",children:(0,v.jsx)(p.Ay,{id:"departmentsIds",inputId:"departmentsIds",name:"departmentsIds",classNamePrefix:"selectFilter_UI",className:"filterStyle dropdownFilterUI","data-testid":"departmentsIds",options:Y,value:Y.find((e=>e.value===A))||null,onChange:e=>{L({target:{name:"departmentsIds",value:e?e.value:""}})},placeholder:"Select Department",isClearable:!0})}),(0,v.jsx)("div",{className:"col-md-3 mt-4",children:(0,v.jsx)(p.Ay,{id:"filteruserIds",inputId:"filteruserIds",name:"filteruserIds",classNamePrefix:"selectFilter_UI",className:"filterStyle dropdownFilterUI","data-testid":"filteruserIds",options:q,value:(null===q||void 0===q?void 0:q.find((e=>e.value===y)))||null,onChange:e=>{L({target:{name:"filteruserIds",value:e?e.value:""}})},placeholder:"Select Employee",isClearable:!0})}),(0,v.jsx)("div",{className:"col-md-1",children:(0,v.jsx)("button",{className:"btn resetfilter_btn mt-4",onClick:()=>{P(""),w(""),D([])},children:(0,v.jsx)("img",{className:"refresh_UI",src:h})})})]}),(0,v.jsxs)("div",{className:"row  mt-2",children:[(0,v.jsx)("div",{className:"col-md-5"}),(0,v.jsx)("div",{className:"col-md-1"}),(0,v.jsx)("div",{className:"col-md-6",children:(0,v.jsx)("span",{className:"filter-column ml-5",children:"To Remove Member from the Role, Unassign the Role from the users Profile."})})]}),(0,v.jsx)("div",{className:"row mt-3",children:(0,v.jsx)("div",{className:"col-lg-12",children:(0,v.jsx)("div",{className:"",children:(0,v.jsx)("div",{className:"card-body ml-4 actionAlignTable mb-3 p-0 custom-table-wrapper",children:(0,v.jsx)(t.A,{bootstrap4:!0,keyField:"id",columns:G,data:a,classes:"custom-table",rowClasses:s})})})})}),0!==f&&(0,v.jsxs)("div",{className:"row mt-1 mb-3",children:[(0,v.jsxs)("div",{className:"col-4 text-start shift-right",children:["Showing Pages ",N," of ",f]}),(0,v.jsxs)("div",{className:"col-4 text-center",children:[(0,v.jsx)("button",{disabled:1===N,className:"mr-3 ml-2 page-button",onClick:()=>z("dec"),children:"<<"}),(0,v.jsx)("button",{disabled:1===N,className:"mr-3 ml-2 page-button",onClick:()=>B("dec"),children:"<"}),S.map((e=>(0,v.jsx)("button",{className:"mr-3 ml-2 page-button ".concat(e===N?"page-no-designation":""),onClick:()=>{O(e)},children:e},e))),(0,v.jsx)("button",{disabled:N===f,className:"mr-3 ml-2 page-button",onClick:()=>B("acc"),children:">"}),(0,v.jsx)("button",{disabled:N===f,className:"mr-3 ml-2 page-button",onClick:()=>z("acc"),children:">>"})]}),(0,v.jsx)("div",{className:"col-4 d-flex justify-content-end",children:(0,v.jsxs)("div",{children:["Showing Records ",j>0?"".concat(50*(N-1)+1," - ").concat(50*(N-1)+a.length):"0 - 0"," of ",j]})})]})]})})},b=()=>{const[e,s]=(0,d.useState)(null),l=(0,o.zy)(),{id:t}=(0,o.g)(),[n,r]=(0,d.useState)([]),[u,h]=(0,d.useState)(""),[p,b]=(0,d.useState)(""),[j,g]=(0,d.useState)([]),[f,I]=(0,d.useState)(""),[S,k]=(0,d.useState)(!0),[A,P]=(0,d.useState)(!1),[y,w]=(0,d.useState)(!1),[C,E]=(0,d.useState)([]),[F,D]=(0,d.useState)(""),[H,R]=(0,d.useState)([]),[U,M]=(0,d.useState)([]),[_,L]=(0,d.useState)({filteruserIds:""}),[T,O]=(0,d.useState)("userName"),[z,B]=(0,d.useState)("ASC");(0,d.useEffect)((()=>{s(t),t&&(G(t),Y());new URLSearchParams(l.search).get("id");localStorage.setItem("roleId",t)}),[t,l.search]);const Y=async()=>{const e={pageNumber:"",pageSize:""};try{var s,l;const a=await x.A.getDepartment(e);r((null===a||void 0===a||null===(s=a.data)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.records)||[])}catch(a){console.error("Error fetching departments:",a)}};(0,d.useEffect)((()=>{e&&(p||u)&&J({roleId:e,userId:u||"",departmentId:p||"",sortBy:T||"userName",sortOrder:(z||"ASC").toUpperCase()})}),[p,u,e,T,z]),(0,d.useEffect)((()=>{p&&q(p)}),[p]);const q=e=>{const s={department:[e]};x.A.getEmployeeListAppraisal(s).then((e=>{var s,l;g(null===e||void 0===e||null===(s=e.data)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.records),setTimeout((()=>{I("")}),500)}))},G=e=>{const s={roleId:e};i.A.getRoleDetails(s).then((e=>{var s,l;const a=(null===e||void 0===e||null===(s=e.data)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.records)||[];E(a),a.length>0&&D(a[0].roleName)}
1)).catch((()=>{}))},J=()=>{if(!e)return;const s={roleId:e,userId:u||"",departmentId:p||"",sortBy:T||"userName",sortOrder:z||"ASC"};i.A.getRoleEmployee(s).then((e=>{var s,l;R((null===e||void 0===e||null===(s=e.data)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.records)||[])}))};(0,d.useEffect)((()=>{""===p&&""===u&&J({roleId:e,userId:"",departmentId:""})}),[p,u]);const K=(e,s,l)=>{C.forEach((a=>{a.permissions.forEach((a=>{a.moduleId===s.moduleId&&a.modulePermission.forEach((s=>{s.name===l.name&&(s.isSelected=e.target.checked)}))}))}));const a={moduleId:s.moduleId,modulePermission:s.modulePermission.filter((e=>e.name==l.name))};E(C),M([a]),X(a)},Q=(e,s,l,a)=>{const d=e.target.checked,o=l.isSelected;C.forEach((e=>{e.permissions.forEach((e=>{e.moduleId===s.moduleId&&e.submodules.forEach((e=>{e.moduleId===a.moduleId&&e.modulePermission.forEach((e=>{e.name===l.name&&(e.isSelected=d)}))}))}))}));const i={moduleId:a.moduleId,modulePermission:a.modulePermission.filter((e=>e.name===l.name))};E([...C]),M([i]),X(i,o,s,a,l)},V=(e,s,l,d,o)=>{const i=C.map((i=>{const m=i.permissions.map((i=>{if(i.moduleId===s.moduleId){const s=i.submodules.map((s=>{if(s.moduleId===d.moduleId){const d=s.submodules.map((s=>{if(s.moduleId===o.moduleId){const d=s.modulePermission.map((s=>(s.name===l.name&&(s.isSelected=e.target.checked),s)));return(0,a.A)((0,a.A)({},s),{},{modulePermission:d})}return s}));return(0,a.A)((0,a.A)({},s),{},{submodules:d})}return s}));return(0,a.A)((0,a.A)({},i),{},{submodules:s})}return i}));return(0,a.A)((0,a.A)({},i),{},{permissions:m})}));E(i);const m={moduleId:o.moduleId,modulePermission:o.modulePermission.filter((e=>e.name===l.name))};M([m]),X(m)},W=(0,d.useCallback)(((e,s,l,a,d)=>{const o=[...C];o.forEach((o=>{o.permissions.forEach((o=>{o.moduleId===s.moduleId&&o.submodules.forEach((s=>{s.moduleId===a.moduleId&&s.submodules.forEach((s=>{s.moduleId===d.moduleId&&s.submodules.forEach((s=>{s.moduleId===d.submodules[0].moduleId&&s.modulePermission.forEach((s=>{s.name===l.name&&(s.isSelected=e.target.checked)}))}))}))}))}))}));const i={moduleId:d.submodules[0].moduleId,modulePermission:d.submodules[0].modulePermission.filter((e=>e.name===l.name))};E(o),M([i]),X(i)}),[C]),X=(s,l,a,d,o)=>{const c={roleName:F,roleId:e,permissions:[s]};i.A.editRole(c).then((s=>{var l;(0,m.oR)(null===s||void 0===s||null===(l=s.data)||void 0===l?void 0:l.message),G(e)}),(e=>{var s,i,c,t,n;null!==e&&void 0!==e&&null!==(s=e.response)&&void 0!==s&&null!==(i=s.data)&&void 0!==i&&null!==(c=i.message)&&void 0!==c&&c.errors||(0,m.oR)(null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message);C.forEach((e=>{e.permissions.forEach((e=>{e.moduleId===a.moduleId&&e.submodules.forEach((e=>{e.moduleId===d.moduleId&&e.modulePermission.forEach((e=>{e.name===o.name&&(e.isSelected=l)}))}))}))})),E([...C])}))},Z=e=>{switch(e){case"employeePolicies":k(!0),P(!1);break;case"allpolicies":default:k(!1),P(!1);break;case"Members Aligned":k(!1),P(!0)}};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"row"}),(0,v.jsx)("div",{className:"row mt-3",children:(0,v.jsx)("div",{className:"col-md-6",children:(0,v.jsx)("nav",{"aria-label":"breadcrumb",children:(0,v.jsxs)("ol",{className:"breadcrumb",children:[(0,v.jsxs)("li",{className:"breadcrumb-item breadcrumb_color",children:[(0,v.jsx)("img",{className:"leftnavImg",src:c.A}),(0,v.jsx)("a",{href:"/home/adminsetting/roles&permission",children:"Admin Settings"})]}),(0,v.jsx)("li",{className:"breadcrumb-item active","aria-current":"page",children:"Manage Permissions"})]})})})}),(0,v.jsx)("div",{className:"col-md-12 pr-0 role-permission-nav-container",children:(0,v.jsxs)("ul",{className:"nav nav-pills navStyleshelpdesk testuserUL role-permission-nav-pills",children:[(0,v.jsxs)("li",{className:"nav-item",children:[(0,v.jsx)("a",{className:"nav-links ".concat(S?"active-tab pl-0 pr-0":"pl-0 pr-0"),"data-toggle":"pill",href:"#employeePolicies",onClick:()=>{Z("employeePolicies")},children:(0,v.jsx)("span",{className:"role-permission-tab-text",children:"Permissions"})}),S&&(0,v.jsx)("hr",{className:"highlightRoleLine"})]}),(0,v.jsx)("li",{className:"navarrow",children:(0,v.jsx)("span",{className:"role-permission-arrow-text",children:">"})}),(0,v.jsxs)("li",{className:"nav-item ",children:[(0,v.jsx)("a",{className:"nav-links ".concat(A?"active-tab pl-0 pr-0":"pl-0 pr-0"),"data-toggle":"pill",href:"#membersAligned",onClick:()=>{Z("Members Aligned"),J()},children:(0,v.jsx)("span",{className:"role-permission-tab-text",children:" Members Aligned"})}),A&&(0,v.jsx)("hr",{className:"highlightRoleLine"})]})]})}),(0,v.jsxs)("div",{className:"tab-content",children:[(0,v.jsx)("div",{className:"tab-pane ".concat(S?"active":""),id:"employeePolicies",children:(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"container-fluid setalignment  ",children:(0,v.jsx)("div",{className:"row mt-5",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex",children:[(0,v.jsx)("div",{className:"col-md-6 ml-2  pl-0   mt-3 ",children:(0,v.jsxs)("div",{className:"cardParent mt-3 ",children:[(0,v.jsx)("div",{className:"header_text2",children:"Main Module Permissions"}),C&&C.map(((e,s)=>(0,v.jsx)(v.Fragment,{children:e.permissions&&e.permissions.map(((e,l)=>(0,v.jsxs)(v.Fragment,{children:["Meta Data"!==e.moduleName&&"Pending Timesheet Approval Notifications"!==e.moduleName&&"Upcoming Appraisal Notifications"!==e.moduleName?(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:" mt-3 ml-3 mr-3 home_box",children:[(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex mt-2 mb-4",children:[(0,v.jsx)("div",{className:"col-md-8 textHeading metaRoles role-perm-module-heading-main",children:e.moduleName}),e.modulePermission&&e.modulePermission.map(((s,l)=>(0,v.jsxs)(v.Fragment,{children:[console.log(s,"1111"),(0,v.jsx)("div",{className:"col-md-2 mt-2 d-flex",children:(0,v.jsxs)(v.Fragment,{children:["All Hands"==e.moduleName?(0,v.jsx)("div",{className:"role-perm-all-hands-spacer-main"}):(0,v.jsx)("div",{className:"readHeading mt-3"}),(0,v.jsx)("div",{className:"mt-3 ml-5",children:(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:"All Hands"===e.moduleName||"Home"===e.moduleName||e.
1isDisabled,className:"custom-control-input checkbox-none",type:"checkbox",onClick:l=>{K(l,e,s)},defaultChecked:s.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat("All Hands"===e.moduleName||"Home"===e.moduleName||e.isDisabled?"disabled-input custom-control-colour":"")})]})})]})},l)]})))]})},s),(0,v.jsx)("div",{children:e.submodules&&e.submodules.map(((s,l)=>(0,v.jsx)(v.Fragment,{children:"Notifications"==s.moduleName?"":(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex mb-3",children:[(0,v.jsx)("div",{className:"col-md-8 metaHeading pl-5 role-perm-submodule-heading-main",children:s.moduleName}),s.modulePermission&&s.modulePermission.map(((l,a)=>(0,v.jsxs)("div",{className:"col-md-2 d-flex",children:[(0,v.jsx)("div",{className:"readHeading mt-3",children:" "}),(0,v.jsx)("div",{className:"mt-3 ml-5",children:"Notifications"==s.moduleName?"":(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:e.isDisabled,type:"checkbox",className:"custom-control-input  checkbox-none",onClick:a=>{Q(a,e,l,s)},defaultChecked:l.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(e.isDisabled?"disabled-input custom-control-colour":"")})]})})]},a)))]})},l),(0,v.jsx)("div",{children:s.submodules&&s.submodules.map(((l,a)=>(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex mb-3",children:[(0,v.jsxs)("div",{className:"col-md-8 subHeading pl-5 role-perm-subsubmodule-heading-main",children:[l.moduleName,l.submodules?l.submodules.map(((e,s)=>(0,v.jsxs)("div",{className:"subHeadingforsubmodules",children:[e.moduleName,"  "]},s))):""]}),l.modulePermission&&l.modulePermission.map(((a,d)=>{var o;return(0,v.jsxs)("div",{className:"col-md-2 d-flex",children:[(0,v.jsx)("div",{className:"readHeading mt-3",children:" "}),(0,v.jsxs)("div",{className:"mt-3 ml-5",children:[(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:e.isDisabled,type:"checkbox",className:"custom-control-input  checkbox-none",onClick:d=>{V(d,e,a,s,l)},defaultChecked:a.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(e.isDisabled?"disabled-input custom-control-colour":"")})]}),l.submodules?null===l||void 0===l||null===(o=l.submodules[0])||void 0===o?void 0:o.modulePermission.map(((a,d)=>(0,v.jsx)("div",{className:"mt-3",children:(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:e.isDisabled,type:"checkbox",className:"custom-control-input  checkbox-none",onClick:d=>{W(d,e,a,s,l)},defaultChecked:a.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(e.isDisabled?"disabled-input custom-control-colour":"")})]})}))):""]})]})}))]})},a)})))})]})})))})]})}):""," "]})))})))]})}),(0,v.jsx)("div",{className:"col-md-6    mt-3 ",children:(0,v.jsxs)("div",{className:"cardParent mt-3 pb-5",children:[(0,v.jsx)("div",{className:"header_text2",children:"Metadata Permissions"}),C&&C.map(((e,s)=>(0,v.jsx)(v.Fragment,{children:e.permissions&&e.permissions.map(((e,l)=>(0,v.jsx)(v.Fragment,{children:"Meta Data"==e.moduleName?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:" mt-3 ml-3 mr-3 home_box",children:(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex mt-0 mb-4",children:[(0,v.jsx)("div",{className:"col-md-8 textHeading metaRoles role-perm-module-heading-meta",children:e.moduleName}),e.modulePermission&&e.modulePermission.map(((s,l)=>(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"col-md-2 d-flex",children:(0,v.jsxs)(v.Fragment,{children:["All Hands"==e.moduleName?(0,v.jsx)("div",{className:"role-perm-all-hands-spacer-main"}):(0,v.jsx)("div",{className:"readHeading mt-3"}),(0,v.jsx)("div",{className:"mt-3 ml-5",children:"All Hands"==e.moduleName?"":(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:e.isDisabled,className:"custom-control-input  checkbox-none",type:"checkbox",onClick:l=>{K(l,e,s)},defaultChecked:s.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(e.isDisabled?"disabled-input custom-control-colour":"")})]})})]})},l)})))]})},s)}),(0,v.jsx)("div",{children:e.submodules&&e.submodules.map(((s,l)=>(0,v.jsxs)(v.Fragment,{children:[console.log(s.moduleName,"moduleNamemoduleName"),"Notifications"==s.moduleName?"":(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:" mt-3 ml-3 mr-3 home_box",children:[(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex mb-3",children:[(0,v.jsx)("div",{className:"col-md-8 metaHeading pl-5 role-perm-submodule-heading-main",children:s.moduleName}),s.modulePermission&&s.modulePermission.map(((l,a)=>(0,v.jsxs)("div",{className:"col-md-2 d-flex",children:[(0,v.jsx)("div",{className:"readHeading mt-3",children:" "}),(0,v.jsx)("div",{className:"mt-3 ml-5",children:"Notifications"==s.moduleName?"":(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:s.isDisabled,type:"checkbox",className:"custom-control-input  checkbox-none",onClick:a=>{Q(a,e,l,s)},checked:l.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(s.isDisabled?"disabled-input custom-control-colour":"")})]})})]},a)))]})},l),s.submodules&&s.submodules.map(((l,d)=>(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"row",children:(0,v.jsxs)("div",{className:"col-md-12 d-flex mb-3",children:[(0,v.jsxs)("div",{className:"col-md-8 pl-5 role-perm-subsubmodule-heading-meta",children:[l.moduleName,l.submodules?l.submodules.map(((e,s)=>(0,v.jsxs)("div",{className:" mt-3 ",children:[e.moduleName,"  "]},s))):""]}),(0,v.jsx)("div",{children:l.modulePermission&&l.modulePermission.map(((d,o)=>(0,v.jsxs)("div",{className:"col-md-2 d-flex",children:[(0,v.jsx)("div",{className:"readHeading"}),(0,v.jsxs)("div",{className:"ml-5",children:[(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:s.isDisabled,type:"checkbox",className:"custom-control-input  checkbox-none",onClick:a=>{V(a,e,d,s,l)},defaultChecked:d.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(s.isDisabled?"disabled-input custom-control-colour":"")})]}),l.submodules?l.submodules.map(((e,s)=>e.modulePermission.map(((l,d)=>(0,v.jsx)("div",{className:"mt-3",children:(0,v.jsxs)("label",{className:"custom-control custom-switch",children:[(0,v.jsx)("input",{disabled:e.isDisabled,type:"checkbox",className:"custom-control-input  checkbox-none",onClick:s=>{((e,s,l,d)=>{var o,i,m;
1let c={moduleId:d.moduleId,modulePermission:d.modulePermission.filter((e=>e.name===l.name))},t=null===(o=c)||void 0===o||null===(i=o.modulePermission)||void 0===i?void 0:i[0];t=(0,a.A)((0,a.A)({},t),{},{isSelected:!(null!==(m=t)&&void 0!==m&&m.isSelected)}),c=(0,a.A)((0,a.A)({},c),{},{modulePermission:[t]}),M([c]),X(c)})(0,0,l,e)},defaultChecked:l.isSelected}),(0,v.jsx)("span",{className:"custom-control-label ".concat(e.isDisabled?"disabled-input custom-control-colour":"")})]})},"".concat(s,"-").concat(d)))))):""]})]})))})]})},d)})))]})})]})))})]}):""})))})))]})})]})})})})})}),(0,v.jsx)("div",{className:"tab-pane ".concat(A?"active":""),id:"membersAligned",children:(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(N,{rowClasses:(e,s)=>s%2===0?"red-rows":"black-row",changeHandlerStatus:e=>{const{name:s,value:l}=e.target;if("departmentsIds"===s){const s=e.target.value;b(s),I("")}if("filteruserIds"==s){const s=e.target.value;h(s)}},handleFilterReset:()=>{b(""),h(""),g([])},getRoleEmployeeArr:H,departmentsIds:p,filteruserIds:u,EmployeesListArr:j,getDepartmentlist:n})})})]})]})}}}]);
2//# sourceMappingURL=4444.11bb9e7f.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.