filesbox/web/dist/p__UserPage__Role.76c0fc47....
2024-07-26 14:10:54 +08:00

2 lines
20 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[22223],{19675:function(C,m,e){"use strict";e.d(m,{Z:function(){return o}});var t=e(28991),_=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},f=P,x=e(27029),s=function(u,v){return _.createElement(x.Z,(0,t.Z)((0,t.Z)({},u),{},{ref:v,icon:f}))};s.displayName="CaretDownOutlined";var o=_.forwardRef(s)},28612:function(C,m,e){"use strict";e.d(m,{Z:function(){return o}});var t=e(28991),_=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},f=P,x=e(27029),s=function(u,v){return _.createElement(x.Z,(0,t.Z)((0,t.Z)({},u),{},{ref:v,icon:f}))};s.displayName="CaretUpOutlined";var o=_.forwardRef(s)},8212:function(C,m,e){"use strict";e.d(m,{Z:function(){return o}});var t=e(28991),_=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},f=P,x=e(27029),s=function(u,v){return _.createElement(x.Z,(0,t.Z)((0,t.Z)({},u),{},{ref:v,icon:f}))};s.displayName="EditOutlined";var o=_.forwardRef(s)},59879:function(C,m,e){"use strict";e.d(m,{Z:function(){return o}});var t=e(28991),_=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},f=P,x=e(27029),s=function(u,v){return _.createElement(x.Z,(0,t.Z)((0,t.Z)({},u),{},{ref:v,icon:f}))};s.displayName="ReloadOutlined";var o=_.forwardRef(s)},31199:function(C,m,e){"use strict";var t=e(28991),_=e(81253),P=e(85893),f=e(67294),x=e(47869),s=["fieldProps","min","proFieldProps","max"],o=function(u,v){var h=u.fieldProps,p=u.min,n=u.proFieldProps,M=u.max,d=(0,_.Z)(u,s);return(0,P.jsx)(x.Z,(0,t.Z)({valueType:"digit",fieldProps:(0,t.Z)({min:p,max:M},h),ref:v,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:n},d))};m.Z=f.forwardRef(o)},52688:function(C,m,e){"use strict";var t=e(28991),_=e(81253),P=e(85893),f=e(67294),x=e(47869),s=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],o=f.forwardRef(function(g,u){var v=g.fieldProps,h=g.unCheckedChildren,p=g.checkedChildren,n=g.proFieldProps,M=(0,_.Z)(g,s);return(0,P.jsx)(x.Z,(0,t.Z)({valueType:"switch",fieldProps:(0,t.Z)({unCheckedChildren:h,checkedChildren:p},v),ref:u,valuePropName:"checked",proFieldProps:n,filedConfig:{valuePropName:"checked",ignoreWidth:!0}},M))});m.Z=o},90672:function(C,m,e){"use strict";var t=e(28991),_=e(81253),P=e(85893),f=e(67294),x=e(47869),s=["fieldProps","proFieldProps"],o=function(u,v){var h=u.fieldProps,p=u.proFieldProps,n=(0,_.Z)(u,s);return(0,P.jsx)(x.Z,(0,t.Z)({ref:v,valueType:"textarea",fieldProps:h,proFieldProps:p},n))};m.Z=f.forwardRef(o)},5966:function(C,m,e){"use strict";var t=e(28991),_=e(81253),P=e(85893),f=e(47869),x=["fieldProps","proFieldProps"],s=["fieldProps","proFieldProps"],o="text",g=function(p){var n=p.fieldProps,M=p.proFieldProps,d=(0,_.Z)(p,x);return(0,P.jsx)(f.Z,(0,t.Z)({valueType:o,fieldProps:n,filedConfig:{valueType:o},proFieldProps:M},d))},u=function(p){var n=p.fieldProps,M=p.proFieldProps,d=(0,_.Z)(p,s);return(0,P.jsx)(f.Z,(0,t.Z)({valueType:"password",fieldProps:n,proFieldProps:M,filedConfig:{valueType:o}},d))},v=g;v.Password=u,v.displayName="ProFormComponent",m.Z=v},69116:function(C){C.exports={space:"space___27FD-"}},5614:function(C,m,e){"use strict";var t=e(20136),_=e(55241),P=e(13062),f=e(71230),x=e(89032),s=e(15746),o=e(2824),g=e(67294),u=e(34436),v=e(85893),h=p=>{var n=p.color,M=p.setColor,d=(0,g.useState)(!1),O=(0,o.Z)(d,2),j=O[0],K=O[1],R=u.O9.findIndex(T=>T===n),I=R==-1?0:R;return(0,v.jsx)(_.Z,{trigger:"click",placement:"bottomRight",open:j,onOpenChange:K,content:(0,v.jsx)(f.Z,{className:"colorsUl",children:u.O9.map((T,L)=>(0,v.jsx)(s.Z,{className:"colorsLi"+(I===L?" active":""),onClick:()=>{M(T),K(!1)},children:(0,v.jsx)("i",{className:"ico",style:{background:T,border:"1px solid ".concat(u.ZY[L])}})}))}),children:(0,v.jsx)("i",{className:"colorIco",style:{background:n,border:"1px solid ".concat(u.ZY[I])}})})};m.Z=h},42139:function(C,m,e){"use strict";var t=e(11849),_=e(39428),P=e(3182),f=e(57663),x=e(71577),s=e(67294),o=e(30672),g=e(85473),u=e(16894),v=e(37476),h=e(71975),p=e(1977),n=e(85893),M=d=>{var O=(0,o.YB)(),j=(0,o.v9)(S=>S.common),K=j.isMobile,R=d.rowKey,I=R===void 0?"":R,T=d.dragSortKey,L=d.isLoading,ne=L===void 0?!1:L,X=d.columns,de=X===void 0?[]:X,J=d.data,ie=J===void 0?[]:J,z=d.scroll,se=z===void 0?{x:768}:z,_e=d.toolbar,me=d.toolbarTitle,Q=d.toolbarAuth,a=d.toolBarRender,y=d.pagination,ue=d.pageChange,$=d.rowClassName,c=d.rowSelection,U=d.canDragSort,ce=U===void 0?!1:U,V=d.handleDragSortEnd,ve=d.triggerClick,Z=d.modalType,B=d.modalWidth,G=B===void 0?550:B,pe=d.title,k=d.visible,ge=d.setVisible,q=d.modalChildren,ee=d.afterClose,Ee=d.finish,Y=d.isSubmitLoading,fe=Y===void 0?!1:Y,ae={title:pe,width:K&&Z!="modal"?"100%":G,scrollToFirstError:!0,visible:k,onVisibleChange:ge,children:q,trigger:(0,n.jsx)(x.Z,{type:"primary",icon:(0,n.jsx)(p.Z,{}),disabled:Q!==void 0?!Q:!1,onClick:ve,children:me||O.formatMessage({id:"common.add"})}),submitter:{submitButtonProps:{loading:fe}},modalProps:{destroyOnClose:!0,maskClosable:!1,afterClose:ee},drawerProps:{destroyOnClose:!0,maskClosable:!1,onClose:ee,className:"selfDrawer",push:{distance:0}},onFinish:function(){var S=(0,P.Z)((0,_.Z)().mark(function F(De){return(0,_.Z)().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",Ee(De));case 1:case"end":return W.stop()}},F)}));function Pe(F){return S.apply(this,arguments)}return Pe}()},re={className:"selfTable",loading:ne,rowKey:I,columns:de,dataSource:ie,scroll:se,rowClassName:$,rowSelection:c,pagination:y?(0,t.Z)((0,t.Z)({},y),{},{current:y==null?void 0:y.currentPage,showSizeChanger:!0}):!1,onChange:ue,headerTitle:_e?Z==="modal"?(0,n.jsx)(v.Y,(0,t.Z)({},ae)):(0,n.jsx)(h.a,(0,t.Z)({},ae)):!1,toolBarRender:a};return ce&&!K?(0,n.jsx)(g.Z,(0,t.Z)((0,t.Z)({},re),{},{size:"small",search:!1,options:!1,tableAlertRender:!1,dragSortKey:T,onDragSortEnd:V})):(0,n.jsx)(u.ZP,(0,t.Z)((0,t.Z)({},re),{},{size:"small",search:!1,options:!1,tableAlertRender:!1}))};m.Z=M},82187:function(C,m,e){"use strict";e.r(m);var t=e(13062),_=e(71230),P=e(63185),f=e(9676),x=e(89032),s=e(15746),o=e(17462),g=e(76772),u=e(62350),v=e(24565),h=e(34792),p=e(48086),n=e(57663),M=e(71577),d=e(71153),O=e(60331),j=e(49111),K=e(19650),R=e(2824),I=e(11849),T=e(67294),L=e(30672),ne=e(5966),X=e(52688),de=e(31199),J=e(90672),ie=e(37406),z=e(34436),se=e(42139),_e=e(5614),me=e(69116),Q=e.n(me),a=e(85893),y="role",ue=()=>{var $,c=(0,L.YB)(),U=(0,L.I0)(),ce=(0,L.tT)("@@initialState"),V=ce.initialState,ve=V!=null?V:{},Z=ve.currentUser,B=Z!=null&&($=Z.user)!==null&&$!==void 0&&$.isSystem?!0:!!(Z!=null&&Z.role["admin.role.edit"]),G=(0,L.v9)(E=>(0,I.Z)((0,I.Z)({},E[y]),{},{loading:E.loading.effects["".concat(y,"/getRoleList")],submitLoading:E.loading.effects["".concat(y,"/addEditRole")]})),pe=G.roleList,k=G.loading,ge=k===void 0?!1:k,q=G.submitLoading,ee=q===void 0?!1:q,Ee=(0,T.useState)(c.formatMessage({id:"common.add"})),Y=(0,R.Z)(Ee,2),fe=Y[0],ae=Y[1],re=(0,T.useState)(!1),S=(0,R.Z)(re,2),Pe=S[0],F=S[1],De=(0,T.useState)("#ffce3d"),xe=(0,R.Z)(De,2),W=xe[0],Me=xe[1],Ae=(0,T.useState)({}),be=(0,R.Z)(Ae,2),l=be[0],Te=be[1],Le=(0,T.useState)([]),ye=(0,R.Z)(Le,2),H=ye[0],le=ye[1],Ie=(0,T.useState)(!1),Re=(0,R.Z)(Ie,2),Ze=Re[0],oe=Re[1],i=E=>c.formatMessage({id:E}),A=[{des:i("admin.fileManage"),option:[{label:i("common.preview"),value:"explorer.view",deganged:["explorer.download","explorer.add","explorer.share","explorer.edit","explorer.remove","explorer.move","explorer.serverDownload","explorer.unzip","explorer.zip"]},{label:i("common.search"),value:"explorer.search"},{label:i("common.download"),value:"explorer.download",ganged:["explorer.view"],deganged:["explorer.share"]},{label:i("admin.role.fileAdd"),value:"explorer.add",ganged:["explorer.view"],deganged:["explorer.share","explorer.edit","explorer.remove","explorer.move","explorer.serverDownload","explorer.unzip","explorer.zip"]},{label:i("common.upload"),value:"explorer.upload",deganged:["explorer.share","explorer.edit","explorer.remove","explorer.move","explorer.serverDownload","explorer.unzip","explorer.zip"]},{label:i("common.share"),value:"explorer.share",ganged:["explorer.view","explorer.download","explorer.add","explorer.upload"]},{label:i("admin.fileEdit"),value:"explorer.edit",ganged:["explorer.view","explorer.add","explorer.upload"],deganged:["explorer.remove","explorer.move","explorer.serverDownload","explorer.unzip","explorer.zip"]},{label:i("admin.role.fileRemove"),value:"explorer.remove",ganged:["explorer.view","explorer.add","explorer.upload","explorer.edit"]},{label:i("admin.role.fileMove"),value:"explorer.move",ganged:["explorer.view","explorer.add","explorer.upload","explorer.edit"]},{label:i("admin.serverDownload"),value:"explorer.serverDownload",ganged:["explorer.view","explorer.add","explorer.upload","explorer.edit"]},{label:i("common.unzip"),value:"explorer.unzip",ganged:["explorer.view","explorer.add","explorer.upload","explorer.edit"]},{label:i("common.zip"),value:"explorer.zip",ganged:["explorer.view","explorer.add","explorer.upload","explorer.edit"]},{label:i("admin.menu.viewInformation"),value:"explorer.informationView"}]},{des:i("admin.role.userSetTitle"),option:[{label:i("admin.role.userConfig"),value:"user.edit"},{label:i("admin.role.userFav"),value:"user.fav"}]},{des:i("admin.role.adminSetTitle"),option:[{label:i("admin.menu.dashboardTitle"),value:"admin.index.dashboard"},{label:i("admin.setting.system"),value:"admin.index.setting"},{label:i("admin.menu.loginLog"),value:"admin.index.loginLog"},{label:i("admin.menu.log"),value:"admin.index.log"},{label:i("admin.menu.information"),value:"admin.index.information"}]},{des:i("admin.menu.role"),option:[{label:i("admin.list"),value:"admin.role.list",deganged:["admin.role.edit"]},{label:i("admin.role.itemEdit"),value:"admin.role.edit",ganged:["admin.role.list"]}]},{des:i("admin.menu.groupMember"),option:[{label:i("admin.list"),value:"admin.member.list",deganged:["admin.member.userEdit","admin.member.groupEdit"]},{label:i("admin.role.userEdit"),value:"admin.member.userEdit",ganged:["admin.member.list"]},{label:i("admin.role.groupEdit"),value:"admin.member.groupEdit",ganged:["admin.member.list"]}]},{des:i("admin.menu.auth"),option:[{label:i("admin.list"),value:"admin.auth.list",deganged:["admin.auth.edit"]},{label:i("admin.role.itemEdit"),value:"admin.auth.edit",ganged:["admin.auth.list"]}]},{des:i("admin.menu.storage"),option:[{label:i("admin.list"),value:"admin.storage.list",deganged:["admin.storage.edit"]},{label:i("admin.role.itemEdit"),value:"admin.storage.edit",ganged:["admin.storage.list"]}]}],je=[{title:c.formatMessage({id:"common.name"}),dataIndex:"roleName",render:(E,r)=>{var D=z.O9.findIndex(N=>N===r.label),b=D==-1?0:D;return(0,a.jsxs)(K.Z,{size:8,align:"start",children:[(0,a.jsx)("i",{className:"roleIcon",style:{background:r.label,border:"1px solid ".concat(z.ZY[b])}}),r.roleName]})}},{title:c.formatMessage({id:"common.attributeInfo"}),dataIndex:"isSystem",render:(E,r)=>(0,a.jsxs)(a.Fragment,{children:[E?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(O.Z,{className:"primaryBtn",children:c.formatMessage({id:"admin.setting.system"})})}):(0,a.jsx)(a.Fragment,{}),!r.enable&&(0,a.jsx)(O.Z,{color:"#bfbfbf",children:c.formatMessage({id:"common.hide"})})]})},{title:c.formatMessage({id:"admin.plugin.detail"}),dataIndex:"description",render:(E,r)=>r!=null&&r.administrator?c.formatMessage({id:"admin.role.adminDesc"}):r.description},{title:c.formatMessage({id:"explorer.file.modifyTime"}),dataIndex:"modifyTime",render:(E,r)=>r.modifyTime?(0,ie.tK)(r.modifyTime):"-"},{title:c.formatMessage({id:"explorer.file.action"}),align:"center",dataIndex:"option",width:160,valueType:"option",render:(E,r)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M.Z,{type:"link",size:"small",disabled:!B,onClick:()=>{var D,b=r==null||(D=r.auth)===null||D===void 0?void 0:D.split(","),N=A==null?void 0:A.reduce((te,he)=>[...te,...he.option],[]);ae(c.formatMessage({id:"common.edit"})),Te(r),Me((r==null?void 0:r.label)||"#ffce3d"),le(b),oe(b.length===N.length),F(!0)},children:c.formatMessage({id:"common.edit"})}),!r.isSystem&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(v.Z,{disabled:!B,title:c.formatMessage({id:"common.ifDel"}),onConfirm:()=>U({type:"".concat(y,"/removeRole"),payload:{roleID:r.roleID},callback:()=>p.ZP.success(c.formatMessage({id:"explorer.removeSuccess"}))}),children:(0,a.jsx)(M.Z,{type:"link",size:"small",disabled:!B,children:c.formatMessage({id:"common.delete"})})},"delete")})]})}],Ue=E=>{var r=E.target,D=r.value,b=r.checked,N=r.ganged,te=r.deganged,he=A==null?void 0:A.reduce((Oe,Ce)=>[...Oe,...Ce.option],[]),w=[...H],Se=N||[],Fe=te||[];if(b)w=Array.from(new Set([...w,D,...Se]));else{var Ne=[...Fe,D];w=w.filter(Oe=>!Ne.some(Ce=>Oe===Ce))}le(w),oe(w.length===he.length)},Be=E=>{var r=A==null?void 0:A.reduce((D,b)=>[...D,...b.option],[]);le(E.target.checked?r==null?void 0:r.map(D=>D.value):[]),oe(E.target.checked)},Ke=()=>{Te({}),le([]),Me("#ffce3d"),oe(!1)},We=E=>{var r=E==null?void 0:E.map(D=>D.roleID);U({type:"".concat(y,"/sortRole"),payload:{ids:r==null?void 0:r.join(",")},callback:()=>{p.ZP.success(c.formatMessage({id:"explorer.success"}))}})};return(0,T.useEffect)(()=>(U({type:"".concat(y,"/getRoleList")}),!B&&p.ZP.warning(c.formatMessage({id:"explorer.noEditPermissionAction"})),()=>{U({type:"".concat(y,"/clear")})}),[]),(0,a.jsx)("div",{className:"layoutBox",children:(0,a.jsx)(se.Z,{rowKey:"roleID",dragSortKey:"roleName",canDragSort:!0,isLoading:ge,afterClose:Ke,handleDragSortEnd:We,columns:je,data:pe,pagination:!1,search:!1,toolbar:!0,toolbarAuth:B,modalType:"drawer",title:fe,visible:Pe,setVisible:F,isSubmitLoading:ee,finish:E=>{var r,D,b=(0,I.Z)((0,I.Z)({},E),{},{roleID:l?l.roleID:void 0,auth:H==null?void 0:H.join(","),enable:E.enable?1:0,label:W,roleName:(r=E.roleName)===null||r===void 0?void 0:r.trim(),description:(D=E.description)===null||D===void 0?void 0:D.trim()});U({type:"".concat(y,"/addEditRole"),payload:b,callback:()=>{p.ZP.success(c.formatMessage({id:"explorer.success"})),F(!1)}})},modalChildren:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ne.Z,{name:"roleName",label:c.formatMessage({id:"common.name"}),required:!0,rules:[{required:!0,whitespace:!0,message:c.formatMessage({id:"explorer.notNull"})}],initialValue:l==null?void 0:l.roleName,fieldProps:{addonAfter:(0,a.jsx)(_e.Z,{color:W,setColor:Me}),maxLength:30}}),(0,a.jsx)(X.Z,{name:"enable",label:c.formatMessage({id:"common.isDisplay"}),hidden:!!(l!=null&&l.administrator),addonAfter:(0,a.jsx)("span",{className:"selfAddonAfter",children:c.formatMessage({id:"admin.role.displayDesc"})}),initialValue:l!=null&&l.roleID?l.enable:!0}),(0,a.jsx)(de.Z,{width:"xs",name:"ignoreFileSize",label:c.formatMessage({id:"admin.role.ignoreFileSize"}),hidden:!!(l!=null&&l.administrator),addonAfter:(0,a.jsx)("span",{className:"selfAddonAfter",children:"GB"}),initialValue:(l==null?void 0:l.ignoreFileSize)||0}),(0,a.jsx)(J.Z,{name:"description",label:c.formatMessage({id:"admin.role.desc"}),hidden:!!(l!=null&&l.administrator),initialValue:l==null?void 0:l.description,fieldProps:{maxLength:120,showCount:!0}}),l!=null&&l.administrator?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Z,{message:c.formatMessage({id:"admin.member.roleAdminTips"}),type:"warning"}),(0,a.jsx)("br",{})]}):void 0,l!=null&&l.isSystem&&!(l!=null&&l.administrator)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Z,{style:{marginTop:25},message:c.formatMessage({id:"admin.role.defaultRoleDesc"}),type:"warning"}),(0,a.jsx)("br",{})]}):void 0,!l.administrator&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.Z.Group,{name:"auth",disabled:!!(l!=null&&l.isSystem),value:H,children:(0,a.jsx)(_.Z,{children:A==null?void 0:A.map((E,r)=>{var D;return(0,a.jsxs)(a.Fragment,{children:[r===0&&(0,a.jsx)(s.Z,{span:24,children:(0,a.jsx)("h4",{className:"selfTitle borderBtm",children:c.formatMessage({id:"admin.role.actionSetTitle"})})}),r==2&&(0,a.jsx)(s.Z,{span:24,children:(0,a.jsx)("h4",{className:"selfTitle borderBtm",children:c.formatMessage({id:"admin.role.adminSetTitle"})})}),(0,a.jsx)(s.Z,{span:24,className:Q().space,style:{marginTop:r===0||r===2?0:20},children:E.des}),(D=E.option)===null||D===void 0?void 0:D.map(b=>(0,a.jsx)(s.Z,{span:12,children:(0,a.jsx)(f.Z,{value:b.value,ganged:b.ganged,deganged:b.deganged,onChange:Ue,children:b.label},b.value)}))]})})})}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(f.Z,{checked:Ze,children:c.formatMessage({id:"common.allAndNull"}),disabled:!!(l!=null&&l.isSystem),onChange:Be})]})]})})})};m.default=ue},20640:function(C,m,e){"use strict";var t=e(11742),_={"text/plain":"Text","text/html":"Url",default:"Text"},P="Copy to clipboard: #{key}, Enter";function f(s){var o=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,o)}function x(s,o){var g,u,v,h,p,n,M=!1;o||(o={}),g=o.debug||!1;try{v=t(),h=document.createRange(),p=document.getSelection(),n=document.createElement("span"),n.textContent=s,n.ariaHidden="true",n.style.all="unset",n.style.position="fixed",n.style.top=0,n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(O){if(O.stopPropagation(),o.format)if(O.preventDefault(),typeof O.clipboardData=="undefined"){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var j=_[o.format]||_.default;window.clipboardData.setData(j,s)}else O.clipboardData.clearData(),O.clipboardData.setData(o.format,s);o.onCopy&&(O.preventDefault(),o.onCopy(O.clipboardData))}),document.body.appendChild(n),h.selectNodeContents(n),p.addRange(h);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");M=!0}catch(O){g&&console.error("unable to copy using execCommand: ",O),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",s),o.onCopy&&o.onCopy(window.clipboardData),M=!0}catch(j){g&&console.error("unable to copy using clipboardData: ",j),g&&console.error("falling back to prompt"),u=f("message"in o?o.message:P),window.prompt(u,s)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(h):p.removeAllRanges()),n&&document.body.removeChild(n),v()}return M}C.exports=x},11742:function(C){C.exports=function(){var m=document.getSelection();if(!m.rangeCount)return function(){};for(var e=document.activeElement,t=[],_=0;_<m.rangeCount;_++)t.push(m.getRangeAt(_));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return m.removeAllRanges(),function(){m.type==="Caret"&&m.removeAllRanges(),m.rangeCount||t.forEach(function(P){m.addRange(P)}),e&&e.focus()}}}}]);