%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/www/ezone.optisoft.com.ng/
Upload File :
Create Path :
Current File : /home/opti/www/ezone.optisoft.com.ng/76.eaf7eacd5e17dfb9fbb4.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{c3e614c9988a3a96667c:function(e,t,r){"use strict";r.r(t);var n=r("8af190b70a6bc55c6f1b"),o=r.n(n),a=(r("8a2d1b95e05b6a321e74"),r("d7dd51e1bf6bfc2c9c3d")),c=r("e95a63b25fb92ed15721"),i=r("0d7f0986bcd2f33d8a2a"),l=r("a28fc3c963a1d4d1a2e5"),s=r("ab4cb61bcb2dc161defb"),u=r("adc20f99e57c573c589c"),p=r("d95b0cf107403b178365"),d=r("7edf83707012a871cdfb"),f="app/RolerRights/GET_EMPLOYEES",R="app/RoleRights/GET_MODULES",g="app/RoleRights/GET_ROLES",b="app/RoleRights/GET_ROLES_ERROR",y="app/RoleRights/GET_ROLE_BY_ID",h="app/RoleRights/GET_RIGHTS",O="app/RoleRights/GET_RIGHT_BY_ID",m="app/RoleRights/GET_RIGHTS_BY_ROLE_ID",E="app/RoleRights/GET_ROLE_RIGHTS",v="app/RoleRights/CREATE_NEW_ROLE",_="app/RoleRights/CREATE_NEW_ROLE_SUCCESS",j="app/RoleRights/CREATE_NEW_ROLE_ERROR",S="app/RoleRights/UPDATE_ROLE",T="app/RoleRights/CREATE_NEW_RIGHT",w="app/RoleRights/CREATE_NEW_RIGHT_ERROR",x="app/RoleRights/UPDATE_RIGHT",C="app/RoleRights/CREATE_NEW_ROLE_RIGHT",I="app/RoleRights/UPDATE_ROLE_RIGHT";function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k={loading:!1,error:!1,employees:[],modules:[],roles:[],role:null,rights:[],right:null,roleRights:[],roleRight:null,roleRightState:{type:"new"},roleDialog:{type:"new",props:{open:!1},data:null},rightDialog:{type:"new",props:{open:!1},data:null},roleDetailsDialog:{type:"new",props:{open:!1},data:null}},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;return Object(d.a)(e,(function(){switch(t.type){case"app/RoleRights/OPEN_NEW_ROLE_DIALOG":return D(D({},e),{},{roleDialog:{type:"new",props:{open:!0},data:null}});case"app/RoleRights/CLOSE_NEW_ROLE_DIALOG":return D(D({},e),{},{roleDialog:{type:"new",props:{open:!1},data:null}});case"app/RoleRights/OPEN_EDIT_ROLE_DIALOG":return D(D({},e),{},{roleDialog:{type:"edit",props:{open:!0},data:t.payload}});case"app/RoleRights/CLOSE_EDIT_ROLE_DIALOG":return D(D({},e),{},{roleDialog:{type:"edit",props:{open:!1},data:null}});case"app/RoleRights/OPEN_NEW_RIGHT_DIALOG":return D(D({},e),{},{rightDialog:{type:"new",props:{open:!0},data:null}});case"app/RoleRights/CLOSE_NEW_RIGHT_DIALOG":return D(D({},e),{},{rightDialog:{type:"new",props:{open:!1},data:null}});case"app/RoleRights/OPEN_EDIT_RIGHT_DIALOG":return D(D({},e),{},{rightDialog:{type:"edit",props:{open:!0},data:t.payload}});case"app/RoleRights/CLOSE_EDIT_RIGHT_DIALOG":return D(D({},e),{},{rightDialog:{type:"edit",props:{open:!1},data:null}});case v:return D(D({},e),{},{loading:!0});case _:return D(D({},e),{},{loading:!1,error:!1});case j:return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case S:return D(D({},e),{},{loading:!0});case"app/RoleRights/UPDATE_ROLE_SUCCESS":return D(D({},e),{},{loading:!1,error:!1});case"app/RoleRights/UPDATE_ROLE_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case T:return D(D({},e),{},{loading:!0});case"app/RoleRights/CREATE_NEW_RIGHT_SUCCESS":return D(D({},e),{},{loading:!1,error:!1});case w:return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case x:return D(D({},e),{},{loading:!0});case"app/RoleRights/UPDATE_RIGHT_SUCCESS":return D(D({},e),{},{loading:!1,error:!1});case"app/RoleRights/UPDATE_RIGHT_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case C:return D(D({},e),{},{loading:!0});case"app/RoleRights/CREATE_NEW_ROLE_RIGHT_SUCCESS":return D(D({},e),{},{loading:!1,error:!1});case"app/RoleRights/CREATE_NEW_ROLE_RIGHT_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case I:return D(D({},e),{},{loading:!0});case"app/RoleRights/UPDATE_ROLE_RIGHT_SUCCESS":return D(D({},e),{},{loading:!1,error:!1});case"app/RoleRights/UPDATE_ROLE_RIGHT_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case f:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_EMPLOYEES_SUCCESS":return D(D({},e),{},{loading:!1,employees:t.payload});case"app/RoleRights/GET_EMPLOYEES_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case R:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_MODULES_SUCCESS":return D(D({},e),{},{loading:!1,modules:t.payload});case"app/RoleRights/GET_MODULES_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case g:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_ROLES_SUCCESS":return D(D({},e),{},{loading:!1,roles:t.payload});case b:return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case y:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_ROLE_BY_ID_SUCCESS":return D(D({},e),{},{loading:!1,role:t.payload});case"app/RoleRights/GET_ROLE_BY_ID_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case h:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_RIGHTS_SUCCESS":return D(D({},e),{},{loading:!1,rights:t.payload});case"app/RoleRights/GET_RIGHTS_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case O:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_RIGHT_BY_ID_SUCCESS":return D(D({},e),{},{loading:!1,role:t.payload});case"app/RoleRights/GET_RIGHT_BY_ID_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case E:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_ROLE_RIGHTS_SUCCESS":return D(D({},e),{},{loading:!1,roleRights:t.payload});case"app/RoleRights/GET_ROLE_RIGHTS_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case"app/RoleRights/GET_ROLE_RIGHT_BY_ID":return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_ROLE_RIGHT_BY_ID_SUCCESS":return D(D({},e),{},{loading:!1,roleRight:t.payload});case"app/RoleRights/GET_ROLE_RIGHT_BY_ID_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload});case m:return D(D({},e),{},{loading:!0});case"app/RoleRights/GET_RIGHTS_BY_ROLE_ID_SUCCESS":return D(D({},e),{},{loading:!1,right:t.payload});case"app/RoleRights/GET_RIGHTS_BY_ROLE_ID_ERROR":return D(D({},e),{},{loading:!1,error:!0,messages:t.payload})}}))},P=function(e){return e.roleRights||k},N=function(){return Object(l.a)(P,(function(e){return e.loading}))},H=function(){return Object(l.a)(P,(function(e){return e.roles}))},B=function(){return Object(l.a)(P,(function(e){return e}))},U=r("d782b72bc5b680c7122c"),M=r("f363639bc5c3c97af546"),W=(r("fcb99a06256635f70435"),r("a72b40110d9c31c9b5c5")),z=r("6542cd13fd5dd1bcffd4");function Y(e){return{type:j,payload:e}}function $(e){return{type:"app/RoleRights/UPDATE_ROLE_ERROR",payload:e}}function F(e){return{type:w,payload:e}}function J(e){return{type:"app/RoleRights/UPDATE_RIGHT_ERROR",payload:e}}function V(e){return{type:"app/RoleRights/CREATE_NEW_ROLE_RIGHT_ERROR",payload:e}}function Z(e){return{type:"app/RoleRights/UPDATE_ROLE_RIGHT_ERROR",payload:e}}function q(e){return{type:"app/RoleRights/GET_EMPLOYEES_ERROR",payload:e}}function K(e){return{type:"app/RoleRights/GET_MODULES_ERROR",payload:e}}function Q(){return{type:g}}function X(e){return{type:b,payload:e}}function ee(){return{type:h}}function te(e){return{type:"app/RoleRights/GET_RIGHTS_ERROR",payload:e}}function re(e){return{type:"app/RoleRights/GET_RIGHTS_BY_ROLE_ID_ERROR",payload:e}}function ne(){return{type:E}}function oe(e){return{type:"app/RoleRights/GET_ROLE_RIGHTS_ERROR",payload:e}}var ae=r("4494fe8c1967ca5d460c"),ce=regeneratorRuntime.mark(me),ie=regeneratorRuntime.mark(Ee),le=regeneratorRuntime.mark(ve),se=regeneratorRuntime.mark(_e),ue=regeneratorRuntime.mark(je),pe=regeneratorRuntime.mark(Se),de=regeneratorRuntime.mark(Te),fe=regeneratorRuntime.mark(we),Re=regeneratorRuntime.mark(xe),ge=regeneratorRuntime.mark(Ce),be=regeneratorRuntime.mark(Ie),ye=regeneratorRuntime.mark(Ge),he=regeneratorRuntime.mark(De);function Oe(e){return e}function me(){var e,t,r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(U.select)(z.a());case 2:return e=a.sent,a.next=5,Object(U.select)(z.b());case 5:return t=a.sent,r="".concat(ae.Cc,"?orgId=").concat(t&&t.organisation.orgId),a.prev=7,a.next=10,Object(U.call)(M.a,r,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(e),"Content-Type":"application/json"})});case 10:return n=a.sent,a.next=13,Object(U.put)({type:"app/RoleRights/GET_EMPLOYEES_SUCCESS",payload:n});case 13:a.next=32;break;case 15:if(a.prev=15,a.t0=a.catch(7),!a.t0.message){a.next=24;break}return a.next=20,Object(U.put)(W.j({message:a.t0.message,status:"error"}));case 20:return a.next=22,Object(U.put)(q(a.t0.message));case 22:a.next=32;break;case 24:return a.next=26,Object(U.call)(Oe,a.t0.response.json());case 26:if(500!==(o=a.sent).status&&400!==o.status){a.next=32;break}return a.next=30,Object(U.put)(W.j({message:o.message,status:"error"}));case 30:return a.next=32,Object(U.put)(q(o.message));case 32:case"end":return a.stop()}}),ce,null,[[7,15]])}function Ee(){var e,t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(U.select)(z.a());case 2:return e=n.sent,n.next=5,Object(U.select)(z.b());case 5:return n.sent,t="".concat(ae.Zc),n.prev=7,n.next=10,Object(U.call)(M.a,t,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(e),"Content-Type":"application/json"})});case 10:return r=n.sent,n.next=13,Object(U.put)({type:"app/RoleRights/GET_MODULES_SUCCESS",payload:r});case 13:n.next=19;break;case 15:return n.prev=15,n.t0=n.catch(7),n.next=19,Object(U.put)(K(n.t0));case 19:case"end":return n.stop()}}),ie,null,[[7,15]])}function ve(){var e,t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(U.select)(z.a());case 2:return e=n.sent,n.next=5,Object(U.select)(z.b());case 5:return n.sent,t="".concat(ae.rd),n.prev=7,n.next=10,Object(U.call)(M.a,t,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(e),"Content-Type":"application/json"})});case 10:return r=n.sent,n.next=13,Object(U.put)({type:"app/RoleRights/GET_ROLES_SUCCESS",payload:r});case 13:n.next=19;break;case 15:return n.prev=15,n.t0=n.catch(7),n.next=19,Object(U.put)(X(n.t0));case 19:case"end":return n.stop()}}),le,null,[[7,15]])}function _e(e){var t,r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,a.next=3,Object(U.select)(z.a());case 3:return r=a.sent,a.next=6,Object(U.select)(z.b());case 6:return a.sent,n="".concat(ae.nd,"/").concat(t,"/getRights"),a.prev=8,a.next=11,Object(U.call)(M.a,n,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 11:return o=a.sent,a.next=14,Object(U.put)({type:"app/RoleRights/GET_RIGHTS_BY_ROLE_ID_SUCCESS",payload:o});case 14:a.next=20;break;case 16:return a.prev=16,a.t0=a.catch(8),a.next=20,Object(U.put)(re(a.t0));case 20:case"end":return a.stop()}}),se,null,[[8,16]])}function je(e){var t,r,n,o,a,c;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload,i.next=3,Object(U.select)(z.a());case 3:return r=i.sent,i.next=6,Object(U.select)(z.b());case 6:return n=i.sent,o="".concat(ae.fb),t.orgId=n&&n.organisation.orgId,i.prev=9,i.next=12,Object(U.call)(M.a,o,{method:"POST",body:JSON.stringify(t),headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 12:return a=i.sent,i.next=15,Object(U.put)({type:_,payload:a});case 15:return i.next=17,Object(U.put)(Q());case 17:return i.next=19,Object(U.put)({type:"app/RoleRights/CLOSE_NEW_ROLE_DIALOG"});case 19:i.next=29;break;case 21:return i.prev=21,i.t0=i.catch(9),i.next=25,Object(U.call)(Oe,i.t0.response.json());case 25:return c=i.sent,console.log(c,"error creating campaign"),i.next=29,Object(U.put)(Y(i.t0));case 29:case"end":return i.stop()}}),ue,null,[[9,21]])}function Se(e){var t,r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,a.next=3,Object(U.select)(z.a());case 3:return r=a.sent,a.next=6,Object(U.select)(z.b());case 6:return a.sent,n="".concat(ae.Ee),a.prev=8,a.next=11,Object(U.call)(M.a,n,{method:"PUT",body:JSON.stringify(t),headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 11:return o=a.sent,a.next=14,Object(U.put)({type:"app/RoleRights/UPDATE_ROLE_SUCCESS",payload:o});case 14:return a.next=16,Object(U.put)(Q());case 16:return a.next=18,Object(U.put)({type:"app/RoleRights/CLOSE_NEW_ROLE_DIALOG"});case 18:a.next=24;break;case 20:return a.prev=20,a.t0=a.catch(8),a.next=24,Object(U.put)($(a.t0));case 24:case"end":return a.stop()}}),pe,null,[[8,20]])}function Te(){var e,t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(U.select)(z.a());case 2:return e=n.sent,n.next=5,Object(U.select)(z.b());case 5:return n.sent,t="".concat(ae.md),n.prev=7,n.next=10,Object(U.call)(M.a,t,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(e),"Content-Type":"application/json"})});case 10:return r=n.sent,n.next=13,Object(U.put)({type:"app/RoleRights/GET_RIGHTS_SUCCESS",payload:r});case 13:n.next=19;break;case 15:return n.prev=15,n.t0=n.catch(7),n.next=19,Object(U.put)(te(n.t0));case 19:case"end":return n.stop()}}),de,null,[[7,15]])}function we(e){var t,r,n,o,a,c;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload,i.next=3,Object(U.select)(z.a());case 3:return r=i.sent,i.next=6,Object(U.select)(z.b());case 6:return n=i.sent,o="".concat(ae.db),t.orgId=n&&n.organisation.orgId,i.prev=9,i.next=12,Object(U.call)(M.a,o,{method:"POST",body:JSON.stringify(t),headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 12:return a=i.sent,console.log(a,"create right response"),i.next=16,Object(U.put)(W.j({message:"".concat(a.module.moduleName," right created successfully"),status:"success"}));case 16:return i.next=18,Object(U.put)({type:"app/RoleRights/CREATE_NEW_RIGHT_SUCCESS",payload:a});case 18:return i.next=20,Object(U.put)(ee());case 20:return i.next=22,Object(U.put)({type:"app/RoleRights/CLOSE_NEW_RIGHT_DIALOG"});case 22:i.next=32;break;case 24:return i.prev=24,i.t0=i.catch(9),i.next=28,Object(U.call)(Oe,i.t0.response.json());case 28:return c=i.sent,console.log(c,"error creating campaign"),i.next=32,Object(U.put)(F(i.t0));case 32:case"end":return i.stop()}}),fe,null,[[9,24]])}function xe(e){var t,r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,a.next=3,Object(U.select)(z.a());case 3:return r=a.sent,a.next=6,Object(U.select)(z.b());case 6:return a.sent,n="".concat(ae.De),a.prev=8,a.next=11,Object(U.call)(M.a,n,{method:"PUT",body:JSON.stringify(t),headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 11:return o=a.sent,a.next=14,Object(U.put)({type:"app/RoleRights/UPDATE_RIGHT_SUCCESS",payload:o});case 14:return a.next=16,Object(U.put)(ee());case 16:return a.next=18,Object(U.put)({type:"app/RoleRights/CLOSE_NEW_RIGHT_DIALOG"});case 18:a.next=24;break;case 20:return a.prev=20,a.t0=a.catch(8),a.next=24,Object(U.put)(J(a.t0));case 24:case"end":return a.stop()}}),Re,null,[[8,20]])}function Ce(){var e,t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(U.select)(z.a());case 2:return e=n.sent,n.next=5,Object(U.select)(z.b());case 5:return n.sent,t="".concat(ae.sd),n.prev=7,n.next=10,Object(U.call)(M.a,t,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(e),"Content-Type":"application/json"})});case 10:return r=n.sent,n.next=13,Object(U.put)({type:"app/RoleRights/GET_ROLE_RIGHTS_SUCCESS",payload:r});case 13:n.next=19;break;case 15:return n.prev=15,n.t0=n.catch(7),n.next=19,Object(U.put)(oe(n.t0));case 19:case"end":return n.stop()}}),ge,null,[[7,15]])}function Ie(e){var t,r,n,o,a,c;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload,i.next=3,Object(U.select)(z.a());case 3:return r=i.sent,i.next=6,Object(U.select)(z.b());case 6:return n=i.sent,o="".concat(ae.gb),t.orgId=n&&n.organisation.orgId,i.prev=9,i.next=12,Object(U.call)(M.a,o,{method:"POST",body:JSON.stringify(t),headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 12:return a=i.sent,i.next=15,Object(U.put)({type:"app/RoleRights/CREATE_NEW_ROLE_RIGHT_SUCCESS",payload:a});case 15:return i.next=17,Object(U.put)(ne());case 17:return i.next=19,Object(U.put)((void 0)());case 19:i.next=29;break;case 21:return i.prev=21,i.t0=i.catch(9),i.next=25,Object(U.call)(Oe,i.t0.response.json());case 25:return c=i.sent,console.log(c,"error creating campaign"),i.next=29,Object(U.put)(V(i.t0));case 29:case"end":return i.stop()}}),be,null,[[9,21]])}function Ge(e){var t,r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload,a.next=3,Object(U.select)(z.a());case 3:return r=a.sent,a.next=6,Object(U.select)(z.b());case 6:return a.sent,n="".concat(ae.Fe),a.prev=8,a.next=11,Object(U.call)(M.a,n,{method:"PUT",body:JSON.stringify(t),headers:new Headers({Authorization:"Bearer ".concat(r),"Content-Type":"application/json"})});case 11:return o=a.sent,a.next=14,Object(U.put)({type:"app/RoleRights/UPDATE_ROLE_RIGHT_SUCCESS",payload:o});case 14:return a.next=16,Object(U.put)(ne());case 16:return a.next=18,Object(U.put)((void 0)());case 18:a.next=24;break;case 20:return a.prev=20,a.t0=a.catch(8),a.next=24,Object(U.put)(Z(a.t0));case 24:case"end":return a.stop()}}),ye,null,[[8,20]])}function De(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(U.takeLatest)(g,ve);case 2:return e.next=4,Object(U.takeLatest)(v,je);case 4:return e.next=6,Object(U.takeLatest)(S,Se);case 6:return e.next=8,Object(U.takeLatest)(m,_e);case 8:return e.next=10,Object(U.takeLatest)(h,Te);case 10:return e.next=12,Object(U.takeLatest)(T,we);case 12:return e.next=14,Object(U.takeLatest)(x,xe);case 14:return e.next=16,Object(U.takeLatest)(E,Ce);case 16:return e.next=18,Object(U.takeLatest)(C,Ie);case 18:return e.next=20,Object(U.takeLatest)(I,Ge);case 20:return e.next=22,Object(U.takeLatest)(f,me);case 22:return e.next=24,Object(U.takeLatest)(R,Ee);case 24:case"end":return e.stop()}}),he)}var Le,ke=r("0d939196e59ed73c94e6"),Ae=r("711f9393a7bdb8588a8c"),Pe=r("b0c37be7de20d933b466"),Ne=r("d4df020feb07c4f688e4"),He=r.n(Ne),Be=r("4f0dfcf9dfa819c812e6");function Ue(e,t,r,n){Le||(Le="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),i=0;i<a;i++)c[i]=arguments[i+3];t.children=c}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:Le,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var Me=Object(ke.makeStyles)((function(e){return{root:{flexGrow:1},button:{margin:"auto"},datatable:{whiteSpace:"nowrap","& .MuiTableRow-root:hover":{cursor:"pointer"},"& .MuiTableHead-root":{"& .MuiTableCell-head":{color:e.palette.common.white},"& .MuiTableCell-root:nth-child(odd)":{backgroundColor:e.palette.primary.main},"& .MuiTableCell-root:nth-child(even)":{backgroundColor:Object(Pe.darken)(e.palette.primary.main,.1)}}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"}}})),We=Ue(ke.Icon,{}),ze=Ue(Ae.Add,{}),Ye=Ue(Ae.Add,{}),$e=Ue(ke.CircularProgress,{color:"inherit"}),Fe=Object(l.b)({loading:N(),roles:H()});var Je,Ve=Object(a.connect)(Fe,(function(e){return{openNewRoleDialog:function(){return e({type:"app/RoleRights/OPEN_NEW_ROLE_DIALOG"})},openEditRoleDialog:function(t){return e({type:"app/RoleRights/OPEN_EDIT_ROLE_DIALOG",payload:t})},openRoleDetailsDialog:function(t){return e({type:"app/RoleRights/OPEN_ROLE_DETAILS_DIALOG",payload:t})}}})),Ze=Object(s.compose)(c.withRouter,Ve,n.memo)((function(e){var t=Me(),r=e.loading,n=e.history,a=e.match,c=e.roles,i=e.openNewRoleDialog;e.openEditRoleDialog,e.openRoleDetailsDialog;console.log(c,"roles"),console.log(a,"match");var l=[{name:"Id",label:"S/N",options:{filter:!0,customBodyRender:function(e,t){return Ue(ke.FormControlLabel,{label:t.rowIndex+1,control:We})}}},{name:"name",label:"Name",options:{filter:!0,sort:!1}},{name:"description",label:"Status",options:{filter:!0,sort:!1}},{name:"createdAt",label:"Date Created",options:{filter:!0,sort:!1,customBodyRender:function(e){return e?Object(Be.default)(e).format("ll"):""}}}],s={filterType:"checkbox",responsive:"scrollMaxHeight",selectableRows:"single",customToolbar:function(){return Ue(ke.ButtonGroup,{size:"small"},void 0,Ue(ke.Button,{variant:"contained",color:"primary",className:t.button,startIcon:ze,onClick:function(){return i()},disableElevation:!0},void 0,"New Role"),Ue(ke.Button,{variant:"contained",color:"secondary",className:t.button,startIcon:Ye,onClick:function(){return n.push("".concat(a.path,"/new"))},disableElevation:!0},void 0,"New Role Right"))},elevation:0};return Ue(o.a.Fragment,{},void 0,Ue(ke.Backdrop,{className:t.backdrop,open:r},void 0,$e),Ue(He.a,{className:t.datatable,title:"Roles",data:c,columns:l,options:s}))})),qe=r("d954071182f1bafcfbb1");function Ke(e,t,r,n){Je||(Je="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),i=0;i<a;i++)c[i]=arguments[i+3];t.children=c}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:Je,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var Qe=Object(ke.makeStyles)((function(e){return{root:{flexGrow:1},content:{flexGrow:1},active:{backgroundColor:e.palette.common.white,color:"".concat(Object(Pe.darken)(e.palette.primary.main,.1)," !important")}}}));var Xe=Object(l.b)({});var et,tt=Object(a.connect)(Xe,(function(e){return{}})),rt=Object(s.compose)(c.withRouter,tt,n.memo)((function(e){var t=Qe();return Ke("div",{className:t.root},void 0,Ke(qe.a,{content:Ke("div",{className:t.content},void 0,e.children)}))})),nt=r("5c0e9784aa1783f42087"),ot=r.n(nt),at=r("3dfd612761b1dd8d2fc3"),ct=r.n(at),it=r("c233babf320cd068509e"),lt=r.n(it);function st(e,t,r,n){et||(et="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),i=0;i<a;i++)c[i]=arguments[i+3];t.children=c}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:et,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(r),!0).forEach((function(t){dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gt(){return(gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var bt=Object(ke.makeStyles)((function(e){return{appBar:{position:"static"},title:{flexGrow:1},card:{"& .MuiCardActions-root":{justifyContent:"flex-end"}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff"}}})),yt=(o.a.forwardRef((function(e,t){return o.a.createElement(ke.Slide,gt({direction:"up",ref:t},e))})),{rights:[],role:null}),ht=st(ke.CircularProgress,{color:"inherit"}),Ot=st(lt.a,{}),mt=Object(l.b)({loading:N(),roles:H(),rights:Object(l.a)(P,(function(e){return e.rights})),right:Object(l.a)(P,(function(e){return e.right})),roleRights:Object(l.a)(P,(function(e){return e.roleRights}))});var Et,vt=Object(a.connect)(mt,(function(e){return{getRightsByRoleId:function(t){return e({type:m,payload:t})},createRoleRight:function(t){return e(function(e){return{type:C,payload:e}}(t))},updateRoleRight:function(t){return e(function(e){return{type:I,payload:e}}(t))},openNewRightDialog:function(t){return e({type:"app/RoleRights/OPEN_NEW_RIGHT_DIALOG"})}}})),_t=Object(s.compose)(vt,n.memo)((function(e){var t=bt(),r=ft(o.a.useState(pt({},yt)),2),a=r[0],c=r[1],i=e.loading,l=e.roles,s=e.rights,u=e.right,p=e.roleRights,d=e.createRoleRight,f=(e.updateRoleRight,e.getRightsByRoleId),R=e.openNewRightDialog;Object(n.useEffect)((function(){}),[p]);var g=function(e,t){return function(e){var r=e.target,n=r.name;r.value;a.rights[t][n]=e.target.checked,c(ot()(pt({},a),"rights",currentState))}},b=function(){var e=a.rights,t=a.role;return e.length>0&&t},y=function(){d(a)};console.log(a,"form"),console.log(s,"rights"),console.log(u,"right by role Id"),console.log(p,"roleRights");var h,O=[{name:"id",label:"Id",options:{display:"excluded",filter:!1,sort:!1}},{name:"module.moduleName",label:"Module Name",options:{filter:!0,sort:!0}},{name:"canview",label:"View",options:{customBodyRender:function(e,t){return st(ke.IconButton,{onClick:function(e,t){e.stopPropagation()}},void 0,st(ke.Checkbox,{name:"canview",checked:e,onChange:g(0,t.rowIndex)}))}}},{name:"cancreate",label:"Create",options:{customBodyRender:function(e,t){return st(ke.IconButton,{onClick:function(e,t){e.stopPropagation()}},void 0,st(ke.Checkbox,{name:"cancreate",checked:e,onChange:g(0,t.rowIndex)}))}}},{name:"canedit",label:"Edit",options:{customBodyRender:function(e,t){return st(ke.IconButton,{onClick:function(e,t){e.stopPropagation()}},void 0,st(ke.Checkbox,{name:"canedit",checked:e,onChange:g(0,t.rowIndex)}))}}},{name:"candelete",label:"Delete",options:{customBodyRender:function(e,t){return st(ke.IconButton,{onClick:function(e,t){e.stopPropagation()}},void 0,st(ke.Checkbox,{name:"candelete",checked:e,onChange:g(0,t.rowIndex)}))}}}],m={filterType:"dropdown",filter:!0,responsive:"stacked",selectableRows:"none",customToolbarSelect:function(e,t){return st(CustomToolbar,{selectedRows:e})},rowsPerPage:25,rowsPerPageOptions:[25,50,100],elevation:0};return st("div",{},void 0,st(ke.Backdrop,{className:t.backdrop,open:i},void 0,ht),st(ke.Card,{className:t.card},void 0,st(ke.CardHeader,{title:"New Role",subheader:"Assign rights on applications to roles",action:st(ke.Button,{onClick:R,startIcon:Ot},void 0,"New Right")}),st(ke.CardContent,{},void 0,st(ke.Grid,{container:!0,spacing:5},void 0,st(ke.Grid,{item:!0,xs:12},void 0,st(ct.a,{id:"combo-box-role",name:"role",size:"small",options:l||[],getOptionLabel:function(e){return e.name},onChange:(h="role",function(e,t){c(pt(pt({},a),{},dt({},h,t))),f(t.id)}),value:a.role?a.role:null,style:{width:300},renderInput:function(e){return o.a.createElement(ke.TextField,gt({},e,{label:"Roles",variant:"outlined",placeholder:"Search",margin:"normal",fullWidth:!0}))}}),st(ct.a,{multiple:!0,id:"tags-rights",size:"small",options:s||[],getOptionLabel:function(e){return e.module&&e.module.moduleName},onChange:function(e){return function(t,r){c(pt(pt({},a),{},dt({},e,r)))}}("rights"),value:a.rights?a.rights:[],style:{width:300},filterSelectedOptions:!0,renderInput:function(e){return o.a.createElement(ke.TextField,gt({},e,{variant:"outlined",label:"Rights",margin:"normal",fullWidth:!0,placeholder:"Modules"}))}}),st(ke.Box,{my:2},void 0,st(ke.Button,{onClick:y,disabled:!b(),color:"primary",variant:"outlined"},void 0,"Save"))),st(ke.Grid,{item:!0,xs:12},void 0,st(He.a,{className:t.datatable,title:"Role Rights",data:[],columns:O,options:m})))),st(ke.CardActions,{},void 0,st(ke.Button,{onClick:function(){},color:"primary",variant:"outlined"},void 0,"Cancel"),st(ke.Button,{onClick:y,disabled:!b(),color:"primary",variant:"outlined"},void 0,"Save"))))})),jt=r("6938d226fd372a75cbf9");function St(e,t,r,n){Et||(Et="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),i=0;i<a;i++)c[i]=arguments[i+3];t.children=c}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:Et,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){xt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return It(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return It(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gt(){return(Gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Dt=Object(jt.makeStyles)((function(e){return{root:{flexGrow:1}}})),Lt=o.a.forwardRef((function(e,t){return o.a.createElement(ke.Slide,Gt({direction:"up",ref:t},e))})),kt={name:"",description:""};var At=Object(l.b)({dialog:Object(l.a)(P,(function(e){return e.roleDialog}))});var Pt,Nt=Object(a.connect)(At,(function(e){return{closeNewRoleDialog:function(){return e({type:"app/RoleRights/CLOSE_NEW_ROLE_DIALOG"})},createRole:function(t){return e(function(e){return{type:v,payload:e}}(t))},updateRole:function(t){return e(function(e){return{type:S,payload:e}}(t))}}})),Ht=Object(s.compose)(Nt,n.memo)((function(e){var t=Dt(),r=e.closeNewRoleDialog,n=e.dialog,a=e.createRole,c=e.updateRole,i=Ct(o.a.useState({name:"",description:""}),2),l=i[0],s=i[1];console.log(n,"dialog checking"),o.a.useEffect((function(){"edit"===n.type?s(wt({},l)):s(wt({},kt))}),[n]);var u,p,d=function(e){var t=e.target,r=t.name,n=t.value;s(wt(wt({},l),{},xt({},r,n)))};return console.log(l,"form"),St("div",{className:t.root},void 0,o.a.createElement(ke.Dialog,Gt({},n.props,{TransitionComponent:Lt,keepMounted:!0,onClose:r,"aria-labelledby":"alert-dialog-slide-title","aria-describedby":"alert-dialog-slide-description"}),St(ke.AppBar,{position:"static"},void 0,St(ke.Toolbar,{},void 0,St(ke.Typography,{variant:"h6",className:t.title},void 0,"Add Role"))),St(ke.DialogContent,{dividers:!0},void 0,St(ke.TextField,{name:"name",label:"Name",id:"outlined-name",fullWidth:!0,margin:"normal",variant:"outlined",size:"small",value:l.name,onChange:d}),St(ke.TextField,{name:"description",label:"Description",id:"outlined-description",fullWidth:!0,margin:"normal",variant:"outlined",multiline:!0,rows:4,rowsMax:10,size:"small",value:l.description,onChange:d})),St(ke.DialogActions,{},void 0,St(ke.Button,{onClick:r,color:"primary"},void 0,"Cancel"),St(ke.Button,{onClick:function(){"new"===n.type?a(l):c(l),s(wt({},kt))},disabled:(u=l.name,p=l.description,!(u.length>0&&p.length>0)),color:"primary"},void 0,"Save"))))}));function Bt(e,t,r,n){Pt||(Pt="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),i=0;i<a;i++)c[i]=arguments[i+3];t.children=c}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:Pt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function Ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(r),!0).forEach((function(t){Wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $t(){return($t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Ft=Object(jt.makeStyles)((function(e){return{root:{flexGrow:1}}})),Jt=o.a.forwardRef((function(e,t){return o.a.createElement(ke.Slide,$t({direction:"up",ref:t},e))})),Vt={cancreate:!0,candelete:!0,canedit:!0,canview:!0,module:null,orgId:""};var Zt=Object(l.b)({dialog:Object(l.a)(P,(function(e){return e.rightDialog})),modules:Object(l.a)(P,(function(e){return e.modules}))});var qt,Kt=Object(a.connect)(Zt,(function(e){return{closeNewRightDialog:function(){return e({type:"app/RoleRights/CLOSE_NEW_RIGHT_DIALOG"})},createRight:function(t){return e(function(e){return{type:T,payload:e}}(t))},updateRight:function(t){return e(function(e){return{type:x,payload:e}}(t))}}})),Qt=Object(s.compose)(Kt,n.memo)((function(e){var t,r=Ft(),n=e.modules,a=e.closeNewRightDialog,c=e.dialog,i=e.createRight,l=e.updateRight,s=zt(o.a.useState(Mt({},Vt)),2),u=s[0],p=s[1];return console.log(c,"dialog checking"),console.log(n,"modules checking"),o.a.useEffect((function(){"edit"===c.type?p(Mt({},u)):p(Mt({},Vt))}),[c]),console.log(u,"form"),Bt("div",{className:r.root},void 0,o.a.createElement(ke.Dialog,$t({},c.props,{TransitionComponent:Jt,keepMounted:!0,onClose:a,"aria-labelledby":"alert-dialog-slide-title","aria-describedby":"alert-dialog-slide-description"}),Bt(ke.AppBar,{position:"static"},void 0,Bt(ke.Toolbar,{},void 0,Bt(ke.Typography,{variant:"h6",className:r.title},void 0,"Add Right"))),Bt(ke.DialogContent,{dividers:!0},void 0,Bt(ct.a,{id:"tags-modules",options:n,getOptionLabel:function(e){return e.moduleName},onChange:(t="module",function(e,r){p(Mt(Mt({},u),{},Wt({},t,r)))}),value:u.module,style:{width:300},renderInput:function(e){return o.a.createElement(ke.TextField,$t({},e,{variant:"outlined",label:"Module",fullWidth:!0,margin:"normal",placeholder:"Module"}))}})),Bt(ke.DialogActions,{},void 0,Bt(ke.Button,{onClick:a,color:"primary"},void 0,"Cancel"),Bt(ke.Button,{onClick:function(){"new"===c.type?i(u):l(u)},disabled:!function(){u.module;return!0}(),color:"primary"},void 0,"Save"))))}));function Xt(e,t,r,n){qt||(qt="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var c=new Array(a),i=0;i<a;i++)c[i]=arguments[i+3];t.children=c}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:qt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}r.d(t,"RoleRightsApp",(function(){return or}));var er="roleRights",tr=Xt(i.Helmet,{},void 0,Xt("title",{},void 0,"RoleRights"),Xt("meta",{name:"description",content:"Description of Role Rights"})),rr=Xt(Ht,{}),nr=Xt(Qt,{});function or(e){Object(p.b)({key:er,reducer:A}),Object(u.b)({key:er,saga:De});var t=e.match,r=e.getRoles,o=e.getRights,a=e.getRoleRights,i=e.getEmployees,l=e.getModules,s=t.path;t.url;return Object(n.useEffect)((function(){r(),o(),a(),i(),l()}),[]),Xt("div",{},void 0,tr,Xt(rt,{},void 0,Xt(c.Route,{exact:!0,path:s,component:Ze}),Xt(c.Route,{path:"".concat(s,"/new"),component:_t})),rr,nr)}var ar=Object(l.b)({roleRights:B()});var cr=Object(a.connect)(ar,(function(e){return{getRoles:function(){return e(Q())},getRoleRights:function(){return e(ne())},getRights:function(){return e(ee())},getEmployees:function(){return e({type:f})},getModules:function(){return e({type:R})}}}));t.default=Object(s.compose)(c.withRouter,cr,n.memo)(or)}}]);

Zerion Mini Shell 1.0