🐛 修复前端部分问题

pull/9/MERGE
smallbun 2023-02-14 14:40:11 +08:00
parent 773ae30f97
commit 7d9d4321f1
38 changed files with 687 additions and 686 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[696],{79696:function(ve,G,p){p.d(G,{Z:function(){return fe}});var W=p(68591),m=p.n(W),o=p(79685),f=p(56865),y=p(8779),x=e=>{const{prefixCls:t,className:n,style:l,size:a,shape:i}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),r=m()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:m()(t,c,r,n),style:Object.assign(Object.assign({},s),l)})},X=p(25646),F=p(83396),q=p(42006);const K=new X.Keyframes("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),j=e=>({height:e,lineHeight:`${e}px`}),b=e=>Object.assign({width:e},j(e)),V=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:K,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),w=e=>Object.assign({width:e*5,minWidth:e*5},j(e)),J=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},b(l)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},b(a)),[`${t}${t}-sm`]:Object.assign({},b(i))}},Q=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return{[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},w(t)),[`${l}-lg`]:Object.assign({},w(a)),[`${l}-sm`]:Object.assign({},w(i))}},A=e=>Object.assign({width:e},j(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:l,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:l,borderRadius:a},A(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},A(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P=(e,t,n)=>{const{skeletonButtonCls:l}=e;return{[`${n}${l}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${l}-round`]:{borderRadius:t}}},I=e=>Object.assign({width:e*2,minWidth:e*2},j(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l*2,minWidth:l*2},I(l))},P(e,l,n)),{[`${n}-lg`]:Object.assign({},I(a))}),P(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},I(i))}),P(e,i,`${n}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:l,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:r,controlHeight:s,controlHeightLG:g,controlHeightSM:d,color:u,padding:$,marginSM:R,borderRadius:h,skeletonTitleHeight:z,skeletonBlockRadius:E,skeletonParagraphLineHeight:k,controlHeightXS:S,skeletonParagraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},b(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},b(g)),[`${n}-sm`]:Object.assign({},b(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${l}`]:{width:"100%",height:z,background:u,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:k,listStyle:"none",background:u,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${l}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${l}`]:{marginBlockStart:R,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),J(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[869],{869:function(ve,G,p){p.d(G,{Z:function(){return fe}});var W=p(68591),m=p.n(W),o=p(79685),f=p(86787),y=p(8779),x=e=>{const{prefixCls:t,className:n,style:l,size:a,shape:i}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),r=m()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:m()(t,c,r,n),style:Object.assign(Object.assign({},s),l)})},X=p(25646),F=p(83763),q=p(92232);const K=new X.Keyframes("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),j=e=>({height:e,lineHeight:`${e}px`}),b=e=>Object.assign({width:e},j(e)),V=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:K,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),w=e=>Object.assign({width:e*5,minWidth:e*5},j(e)),J=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},b(l)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},b(a)),[`${t}${t}-sm`]:Object.assign({},b(i))}},Q=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return{[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},w(t)),[`${l}-lg`]:Object.assign({},w(a)),[`${l}-sm`]:Object.assign({},w(i))}},A=e=>Object.assign({width:e},j(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:l,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:l,borderRadius:a},A(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},A(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P=(e,t,n)=>{const{skeletonButtonCls:l}=e;return{[`${n}${l}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${l}-round`]:{borderRadius:t}}},I=e=>Object.assign({width:e*2,minWidth:e*2},j(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l*2,minWidth:l*2},I(l))},P(e,l,n)),{[`${n}-lg`]:Object.assign({},I(a))}),P(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},I(i))}),P(e,i,`${n}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:l,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:r,controlHeight:s,controlHeightLG:g,controlHeightSM:d,color:u,padding:$,marginSM:R,borderRadius:h,skeletonTitleHeight:z,skeletonBlockRadius:E,skeletonParagraphLineHeight:k,controlHeightXS:S,skeletonParagraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},b(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},b(g)),[`${n}-sm`]:Object.assign({},b(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${l}`]:{width:"100%",height:z,background:u,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:k,listStyle:"none",background:u,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${l}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${l}`]:{marginBlockStart:R,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),J(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
${l},
${a} > li,
${n},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[677],{2677:function(l,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(79685),u=t(84530),o=t(63342);function E(){var a=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:a})}}}]);
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[97],{34097:function(l,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(79685),u=t(22590),o=t(63342);function E(){var a=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:a})}}}]);

View File

@ -28,6 +28,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.30ff6d34.js"></script>
<script src="/umi.bf0b27b2.js"></script>
</body></html>

View File

@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[571],{66354:function(r,n,t){t.r(n);var o=t(73838),s=t(8821),u=t(84530),a=t(63342),i=function(){return(0,a.jsx)(o.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,a.jsx)(s.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=i}}]);
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[571],{98546:function(r,n,t){t.r(n);var o=t(38916),s=t(9101),u=t(22590),a=t(63342),i=function(){return(0,a.jsx)(o.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,a.jsx)(s.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=i}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[396],{81046:function(M,g,t){t.r(g),t.d(g,{default:function(){return H}});var A=t(84019),d=t.n(A),T=t(32061),y=t.n(T),C=t(7863),R=t.n(C),L=t(53448),I=t(62119),O=t(76815),Z=t(55470),B=t(24380),S=t(12790),E=t(90914),N=t(86977),x=t(79685),p;(function(o){o.ONLY_APP_INIT_SSO="only_app_init_sso",o.PORTAL_OR_APP_INIT_SSO="portal_or_app_init_sso"})(p||(p={}));var $=t(76091),f=t.n($),P=t(81996),z=t(84530);function D(o,i,c){return h.apply(this,arguments)}function h(){return h=y()(d()().mark(function o(i,c,v){var u,a,m;return d()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,z.request)("/api/app/list",{params:f()(f()(f()({},i),(0,P.YE)(c)),(0,P.oH)(v))});case 2:return u=s.sent,a=u.result,m=u.success,s.abrupt("return",{data:a!=null&&a.list?a==null?void 0:a.list:[],success:m,total:a!=null&&a.pagination?a==null?void 0:a.pagination.total:0});case 6:case"end":return s.stop()}},o)})),h.apply(this,arguments)}var r=t(63342),F=O.Z.Paragraph,G=function(){var i=(0,x.useRef)(),c=(0,x.useState)(),v=R()(c,2),u=v[0],a=v[1],m=(0,r.jsx)("div",{style:{textAlign:"center"},children:(0,r.jsx)(Z.Z.Search,{placeholder:"\u8BF7\u8F93\u5165",enterButton:"\u641C\u7D22",size:"large",style:{maxWidth:522,width:"100%"},onSearch:function(n){var e;a({name:n}),(e=i.current)===null||e===void 0||e.reload()}})}),j=function(n){var e=window.document.createElement("div");e.innerHTML="<form action='"+n+"' method='POST' name='auto_submit_form' style='display:none'>",document.body.appendChild(e),document.forms.auto_submit_form.setAttribute("target","_blank"),document.forms.auto_submit_form.submit(),document.body.removeChild(e)};return(0,r.jsxs)(L._z,{content:m,children:[(0,r.jsx)(B.Z,{message:"\u8BF7\u70B9\u51FB\u4E0B\u65B9\u7684\u5E94\u7528\u8FDB\u884C\u5355\u70B9\u767B\u5F55\u3002\u82E5\u5E0C\u671B\u4FEE\u6539\u5E94\u7528\u5185\u5BB9\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u3002",showIcon:!0}),(0,r.jsx)("br",{}),(0,r.jsx)(I.Rs,{rowKey:"id",ghost:!0,grid:{xs:1,sm:2,md:2,lg:3,xl:4,xxl:5},request:D,pagination:{},params:u,actionRef:i,renderItem:function(n){return n&&n.id&&(0,r.jsx)(S.Z,{style:{margin:5},hoverable:!0,onClick:y()(d()().mark(function e(){return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(n.initLoginType!==p.PORTAL_OR_APP_INIT_SSO){l.next=3;break}return j(n.initLoginUrl),l.abrupt("return");case 3:E.ZP.warning("".concat(n.name,"\u4EC5\u5141\u8BB8\u5E94\u7528\u53D1\u8D77"));case 4:case"end":return l.stop()}},e)})),children:(0,r.jsx)(S.Z.Meta,{avatar:(0,r.jsx)(N.C,{shape:"square",size:50,src:n.icon},n.id),title:n.name,description:(0,r.jsx)(F,{ellipsis:{rows:2,tooltip:!0},children:n.description})})})}})]})},H=G}}]);
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[396],{66083:function(M,g,t){t.r(g),t.d(g,{default:function(){return H}});var A=t(84019),d=t.n(A),T=t(32061),y=t.n(T),C=t(7863),R=t.n(C),L=t(65352),I=t(21722),O=t(95926),Z=t(15482),B=t(21654),S=t(99759),E=t(46673),N=t(44659),x=t(79685),p;(function(o){o.ONLY_APP_INIT_SSO="only_app_init_sso",o.PORTAL_OR_APP_INIT_SSO="portal_or_app_init_sso"})(p||(p={}));var $=t(76091),f=t.n($),P=t(65173),z=t(22590);function D(o,i,c){return h.apply(this,arguments)}function h(){return h=y()(d()().mark(function o(i,c,v){var u,a,m;return d()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,z.request)("/api/app/list",{params:f()(f()(f()({},i),(0,P.YE)(c)),(0,P.oH)(v))});case 2:return u=s.sent,a=u.result,m=u.success,s.abrupt("return",{data:a!=null&&a.list?a==null?void 0:a.list:[],success:m,total:a!=null&&a.pagination?a==null?void 0:a.pagination.total:0});case 6:case"end":return s.stop()}},o)})),h.apply(this,arguments)}var r=t(63342),F=O.Z.Paragraph,G=function(){var i=(0,x.useRef)(),c=(0,x.useState)(),v=R()(c,2),u=v[0],a=v[1],m=(0,r.jsx)("div",{style:{textAlign:"center"},children:(0,r.jsx)(Z.Z.Search,{placeholder:"\u8BF7\u8F93\u5165",enterButton:"\u641C\u7D22",size:"large",style:{maxWidth:522,width:"100%"},onSearch:function(n){var e;a({name:n}),(e=i.current)===null||e===void 0||e.reload()}})}),j=function(n){var e=window.document.createElement("div");e.innerHTML="<form action='"+n+"' method='POST' name='auto_submit_form' style='display:none'>",document.body.appendChild(e),document.forms.auto_submit_form.setAttribute("target","_blank"),document.forms.auto_submit_form.submit(),document.body.removeChild(e)};return(0,r.jsxs)(L._z,{content:m,children:[(0,r.jsx)(B.Z,{message:"\u8BF7\u70B9\u51FB\u4E0B\u65B9\u7684\u5E94\u7528\u8FDB\u884C\u5355\u70B9\u767B\u5F55\u3002\u82E5\u5E0C\u671B\u4FEE\u6539\u5E94\u7528\u5185\u5BB9\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u3002",showIcon:!0}),(0,r.jsx)("br",{}),(0,r.jsx)(I.Rs,{rowKey:"id",ghost:!0,grid:{xs:1,sm:2,md:2,lg:3,xl:4,xxl:5},request:D,pagination:{},params:u,actionRef:i,renderItem:function(n){return n&&n.id&&(0,r.jsx)(S.Z,{style:{margin:5},hoverable:!0,onClick:y()(d()().mark(function e(){return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(n.initLoginType!==p.PORTAL_OR_APP_INIT_SSO){l.next=3;break}return j(n.initLoginUrl),l.abrupt("return");case 3:E.ZP.warning("".concat(n.name,"\u4EC5\u5141\u8BB8\u5E94\u7528\u53D1\u8D77"));case 4:case"end":return l.stop()}},e)})),children:(0,r.jsx)(S.Z.Meta,{avatar:(0,r.jsx)(N.C,{shape:"square",size:50,src:n.icon},n.id),title:n.name,description:(0,r.jsx)(F,{ellipsis:{rows:2,tooltip:!0},children:n.description})})})}})]})},H=G}}]);

View File

@ -0,0 +1,18 @@
/*
* eiam-portal - Employee Identity and Access Management Program
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[26],{4154:function(u,n,_){_.r(n);var s=_(84019),t=_.n(s),i=_(76091),o=_.n(i),r=_(32061),c=_.n(r),e=_(65173),E=_(75109),y=_(78035),v=_(51391),f=_(30708),I=_(22590),P=_(63342);n.default=function(){var M=(0,I.useModel)("@@initialState"),U=M.initialState,h=M.setInitialState;return(0,y.Z)(c()(t()().mark(function C(){return t()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var T=c()(t()().mark(function g(){var O,D,a,l,d,b;return t()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,h(o()(o()({},U),{},{currentUser:void 0}));case 2:O=f.Z.parse(E.m.location.search),D=O,a=D.redirect_uri,l={pathname:e.wm},d=a&&a.split("/"),a&&a!==d[0]+"//"+d[2]+"/"&&(l=o()(o()({},l),{},{search:f.Z.stringify({redirect_uri:a})})),b=E.m.createHref(l),window.location.replace(b);case 9:case"end":return m.stop()}},g)}));function j(){return T.apply(this,arguments)}return j}()});case 1:case"end":return p.stop()}},C)}))),(0,P.jsx)(P.Fragment,{})}},78035:function(u,n,_){var s=_(79685),t=_(43865),i=_(15035);const o=r=>{i.Z&&((0,t.mf)(r)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof r}".`)),(0,s.useEffect)(()=>{r==null||r()},[])};n.Z=o},43865:function(u,n,_){_.d(n,{mf:function(){return t}});const s=e=>e!==null&&typeof e=="object",t=e=>typeof e=="function",i=e=>typeof e=="string",o=e=>typeof e=="boolean",r=e=>typeof e=="number",c=e=>typeof e=="undefined"},15035:function(u,n){n.Z=!1}}]);

View File

@ -1,18 +0,0 @@
/*
* eiam-portal - Employee Identity and Access Management Program
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[26],{21297:function(u,n,_){_.r(n);var s=_(84019),t=_.n(s),i=_(76091),o=_.n(i),r=_(32061),c=_.n(r),e=_(81996),E=_(81369),y=_(78035),v=_(60240),f=_(65251),I=_(84530),P=_(63342);n.default=function(){var M=(0,I.useModel)("@@initialState"),U=M.initialState,h=M.setInitialState;return(0,y.Z)(c()(t()().mark(function C(){return t()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var T=c()(t()().mark(function g(){var O,D,a,l,d,b;return t()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,h(o()(o()({},U),{},{currentUser:void 0}));case 2:O=f.Z.parse(E.m.location.search),D=O,a=D.redirect_uri,l={pathname:e.wm},d=a&&a.split("/"),a&&a!==d[0]+"//"+d[2]+"/"&&(l=o()(o()({},l),{},{search:f.Z.stringify({redirect_uri:a})})),b=E.m.createHref(l),window.location.replace(b);case 9:case"end":return m.stop()}},g)}));function j(){return T.apply(this,arguments)}return j}()});case 1:case"end":return p.stop()}},C)}))),(0,P.jsx)(P.Fragment,{})}},78035:function(u,n,_){var s=_(79685),t=_(43865),i=_(15035);const o=r=>{i.Z&&((0,t.mf)(r)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof r}".`)),(0,s.useEffect)(()=>{r==null||r()},[])};n.Z=o},43865:function(u,n,_){_.d(n,{mf:function(){return t}});const s=e=>e!==null&&typeof e=="object",t=e=>typeof e=="function",i=e=>typeof e=="string",o=e=>typeof e=="boolean",r=e=>typeof e=="number",c=e=>typeof e=="undefined"},15035:function(u,n){n.Z=!1}}]);

View File

@ -0,0 +1,19 @@
/*
* eiam-portal - Employee Identity and Access Management Program
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[790],{8492:function(P,g,n){n.r(g),n.d(g,{default:function(){return L}});var A=n(84019),o=n.n(A),C=n(32061),v=n.n(C),y=n(12210),I=n(65352),S=n(87370),x=n(20645),j=n(98346),E=n(46673),R=n(97978),T=n(55807),Z=n(79685),w=n(22590);function B(i){return p.apply(this,arguments)}function p(){return p=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/list",{method:"get",params:d}).then(function(t){var e={data:t!=null&&t.result?t==null?void 0:t.result:[],success:t==null?void 0:t.success};return Promise.resolve(e)}));case 1:case"end":return r.stop()}},i)})),p.apply(this,arguments)}function F(i){return h.apply(this,arguments)}function h(){return h=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/remove",{method:"delete",requestType:"form",data:{sessionIds:d}}));case 1:case"end":return r.stop()}},i)})),h.apply(this,arguments)}var s=n(63342),L=function(){var i=(0,Z.useRef)(),d=[{title:"\u4F1A\u8BDD ID",dataIndex:"sessionId",ellipsis:!0,copyable:!0,align:"center",width:150,fixed:"left",search:!1},{title:"\u7528\u6237\u540D",dataIndex:"username",width:120,ellipsis:!0,fieldProps:{autoComplete:"off"}},{title:"\u6D3B\u52A8IP\u5730\u5740",width:130,dataIndex:"ip",ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e.ip?(0,s.jsx)(x.Z,{status:"success",text:e.ip}):(0,s.jsx)(x.Z,{status:"error",text:"\u672A\u77E5"})}},{title:"\u6D3B\u52A8\u5730\u70B9",width:120,ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e&&e.country&&e.province&&e.city&&e.country+"."+e.province+"."+e.city||"-"}},{title:"\u8BBE\u5907\u7C7B\u578B",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return(e==null?void 0:e.deviceType)||"-"}},{title:"\u64CD\u4F5C\u7CFB\u7EDF",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.platform&&e!==null&&e!==void 0&&e.platformVersion&&(e==null?void 0:e.platform)+" "+(e==null?void 0:e.platformVersion)||"-"}},{title:"\u6D4F\u89C8\u5668",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.browser&&e!==null&&e!==void 0&&e.browserMajorVersion&&(e==null?void 0:e.browser)+" "+(e==null?void 0:e.browserMajorVersion)||"-"}},{title:"\u767B\u5F55\u65F6\u95F4",ellipsis:!0,dataIndex:"loginTime",align:"center",width:200,valueType:"dateTime",search:!1},{title:"\u6700\u540E\u64CD\u4F5C\u65F6\u95F4",ellipsis:!0,dataIndex:"lastRequest",width:170,valueType:"dateTime",search:!1},{title:"\u64CD\u4F5C",valueType:"option",width:60,align:"center",fixed:"right",render:function(r,t){var e=t.sessionId;return[(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u4E0B\u7EBF\u8BE5\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function f(){var u,m,a;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,F(e);case 2:u=c.sent,m=u.success,m&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),(a=i.current)===null||a===void 0||a.reload());case 5:case"end":return c.stop()}},f)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u4E0B\u7EBF"},"remove")},"offline")]}}];return(0,s.jsx)(I._z,{content:`\u4F1A\u8BDD\u7BA1\u7406\u53EF\u4EE5\u67E5\u770B\u6240\u6709\u5F53\u524D\u4ECD\u7136\u6709\u6548\u7684\u4F1A\u8BDD\u5217\u8868\uFF0C\u5E76\u4E14\u53EF\u4EE5\u5F3A\u5236\u6CE8\u9500\u67D0\u4E2A\u7528\u6237\u7684\u4F1A\u8BDD\u3002\u6CE8\u9500\u540E\uFF0C\u8BE5\u7528\u6237\u51ED\u8BC1\u5373\u523B\u5931\u6548\uFF0C\u4E4B\u540E\u7684\u6240\u6709\u64CD\u4F5C\u90FD\u9700\u8981\u91CD\u65B0\u8BA4\u8BC1\u3002
`,children:(0,s.jsx)(S.Z,{search:!1,options:{density:!1,setting:!0,reload:!0,search:!1},cardProps:{style:{overflow:"auto"}},scroll:{x:700},columns:d,rowSelection:{selections:[R.Z.SELECTION_ALL,R.Z.SELECTION_INVERT]},tableAlertRender:function(r){var t=r.selectedRowKeys,e=r.onCleanSelected;return(0,s.jsx)(T.Z,{size:24,children:(0,s.jsxs)("span",{children:["\u5DF2\u9009 ",t.length," \u9879",(0,s.jsx)("a",{style:{marginLeft:8},onClick:e,children:"\u53D6\u6D88\u9009\u62E9"})]})})},tableAlertOptionRender:function(r){return(0,s.jsx)(T.Z,{size:16,children:(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u6279\u91CF\u4E0B\u7EBF\u9009\u4E2D\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function t(){var e,f,u;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,F(r.selectedRowKeys.join(","));case 2:e=a.sent,f=e.success,f&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),r.onCleanSelected(),(u=i.current)===null||u===void 0||u.reload());case 5:case"end":return a.stop()}},t)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u6279\u91CF\u4E0B\u7EBF"},"remove")},"offline")})},actionRef:i,pagination:{defaultPageSize:10},request:B,rowKey:"sessionId",dateFormatter:"string"})})}}}]);

View File

@ -1,19 +0,0 @@
/*
* eiam-portal - Employee Identity and Access Management Program
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[790],{10035:function(P,g,n){n.r(g),n.d(g,{default:function(){return L}});var A=n(84019),o=n.n(A),C=n(32061),v=n.n(C),y=n(12210),I=n(53448),S=n(18189),x=n(81381),j=n(18054),E=n(90914),R=n(28755),T=n(93973),Z=n(79685),w=n(84530);function B(i){return p.apply(this,arguments)}function p(){return p=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/list",{method:"get",params:d}).then(function(t){var e={data:t!=null&&t.result?t==null?void 0:t.result:[],success:t==null?void 0:t.success};return Promise.resolve(e)}));case 1:case"end":return r.stop()}},i)})),p.apply(this,arguments)}function F(i){return h.apply(this,arguments)}function h(){return h=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/remove",{method:"delete",requestType:"form",data:{sessionIds:d}}));case 1:case"end":return r.stop()}},i)})),h.apply(this,arguments)}var s=n(63342),L=function(){var i=(0,Z.useRef)(),d=[{title:"\u4F1A\u8BDD ID",dataIndex:"sessionId",ellipsis:!0,copyable:!0,align:"center",width:150,fixed:"left",search:!1},{title:"\u7528\u6237\u540D",dataIndex:"username",width:120,ellipsis:!0,fieldProps:{autoComplete:"off"}},{title:"\u6D3B\u52A8IP\u5730\u5740",width:130,dataIndex:"ip",ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e.ip?(0,s.jsx)(x.Z,{status:"success",text:e.ip}):(0,s.jsx)(x.Z,{status:"error",text:"\u672A\u77E5"})}},{title:"\u6D3B\u52A8\u5730\u70B9",width:120,ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e&&e.country&&e.province&&e.city&&e.country+"."+e.province+"."+e.city||"-"}},{title:"\u8BBE\u5907\u7C7B\u578B",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return(e==null?void 0:e.deviceType)||"-"}},{title:"\u64CD\u4F5C\u7CFB\u7EDF",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.platform&&e!==null&&e!==void 0&&e.platformVersion&&(e==null?void 0:e.platform)+" "+(e==null?void 0:e.platformVersion)||"-"}},{title:"\u6D4F\u89C8\u5668",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.browser&&e!==null&&e!==void 0&&e.browserMajorVersion&&(e==null?void 0:e.browser)+" "+(e==null?void 0:e.browserMajorVersion)||"-"}},{title:"\u767B\u5F55\u65F6\u95F4",ellipsis:!0,dataIndex:"loginTime",align:"center",width:200,valueType:"dateTime",search:!1},{title:"\u6700\u540E\u64CD\u4F5C\u65F6\u95F4",ellipsis:!0,dataIndex:"lastRequest",width:170,valueType:"dateTime",search:!1},{title:"\u64CD\u4F5C",valueType:"option",width:60,align:"center",fixed:"right",render:function(r,t){var e=t.sessionId;return[(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u4E0B\u7EBF\u8BE5\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function f(){var u,m,a;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,F(e);case 2:u=c.sent,m=u.success,m&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),(a=i.current)===null||a===void 0||a.reload());case 5:case"end":return c.stop()}},f)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u4E0B\u7EBF"},"remove")},"offline")]}}];return(0,s.jsx)(I._z,{content:`\u4F1A\u8BDD\u7BA1\u7406\u53EF\u4EE5\u67E5\u770B\u6240\u6709\u5F53\u524D\u4ECD\u7136\u6709\u6548\u7684\u4F1A\u8BDD\u5217\u8868\uFF0C\u5E76\u4E14\u53EF\u4EE5\u5F3A\u5236\u6CE8\u9500\u67D0\u4E2A\u7528\u6237\u7684\u4F1A\u8BDD\u3002\u6CE8\u9500\u540E\uFF0C\u8BE5\u7528\u6237\u51ED\u8BC1\u5373\u523B\u5931\u6548\uFF0C\u4E4B\u540E\u7684\u6240\u6709\u64CD\u4F5C\u90FD\u9700\u8981\u91CD\u65B0\u8BA4\u8BC1\u3002
`,children:(0,s.jsx)(S.Z,{search:!1,options:{density:!1,setting:!0,reload:!0,search:!1},cardProps:{style:{overflow:"auto"}},scroll:{x:700},columns:d,rowSelection:{selections:[R.Z.SELECTION_ALL,R.Z.SELECTION_INVERT]},tableAlertRender:function(r){var t=r.selectedRowKeys,e=r.onCleanSelected;return(0,s.jsx)(T.Z,{size:24,children:(0,s.jsxs)("span",{children:["\u5DF2\u9009 ",t.length," \u9879",(0,s.jsx)("a",{style:{marginLeft:8},onClick:e,children:"\u53D6\u6D88\u9009\u62E9"})]})})},tableAlertOptionRender:function(r){return(0,s.jsx)(T.Z,{size:16,children:(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u6279\u91CF\u4E0B\u7EBF\u9009\u4E2D\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function t(){var e,f,u;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,F(r.selectedRowKeys.join(","));case 2:e=a.sent,f=e.success,f&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),r.onCleanSelected(),(u=i.current)===null||u===void 0||u.reload());case 5:case"end":return a.stop()}},t)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u6279\u91CF\u4E0B\u7EBF"},"remove")},"offline")})},actionRef:i,pagination:{defaultPageSize:10},request:B,rowKey:"sessionId",dateFormatter:"string"})})}}}]);

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[297],{38359:function(A,v,o){o.r(v),o.d(v,{default:function(){return j}});var C=o(12790),b=o(24380),O=o(53448),i=o(63342),$=function(){return(0,i.jsx)(O._z,{children:(0,i.jsx)(C.Z,{children:(0,i.jsx)(b.Z,{banner:!0,description:"\u6B22\u8FCE\u4F7F\u7528 TopIAM \u4F01\u4E1A\u6570\u5B57\u8EAB\u4EFD\u7BA1\u63A7\u5E73\u53F0",type:"success"})})})},z=$,j=z},12790:function(A,v,o){o.d(v,{Z:function(){return ie}});var C=o(68591),b=o.n(C),O=o(8779),i=o(79685),$=o(56865),z=o(73192),j=o(79696),H=o(37464),Z=function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)a.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(n[t[r]]=e[t[r]]);return n},B=e=>{var{prefixCls:a,className:n,hoverable:t=!0}=e,r=Z(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=i.useContext($.E_),c=l("card",a),f=b()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:t});return i.createElement("div",Object.assign({},r,{className:f}))},K=o(83396),F=o(42006),p=o(42786);const X=e=>{const{antCls:a,componentCls:n,cardHeadHeight:t,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:t,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,p.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.vS),{[`
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[297],{51012:function(A,v,o){o.r(v),o.d(v,{default:function(){return j}});var C=o(99759),b=o(21654),O=o(65352),i=o(63342),$=function(){return(0,i.jsx)(O._z,{children:(0,i.jsx)(C.Z,{children:(0,i.jsx)(b.Z,{banner:!0,description:"\u6B22\u8FCE\u4F7F\u7528 TopIAM \u4F01\u4E1A\u6570\u5B57\u8EAB\u4EFD\u7BA1\u63A7\u5E73\u53F0",type:"success"})})})},z=$,j=z},99759:function(A,v,o){o.d(v,{Z:function(){return ie}});var C=o(68591),b=o.n(C),O=o(8779),i=o(79685),$=o(86787),z=o(26102),j=o(869),H=o(72611),Z=function(e,a){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)a.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(n[t[r]]=e[t[r]]);return n},B=e=>{var{prefixCls:a,className:n,hoverable:t=!0}=e,r=Z(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=i.useContext($.E_),c=l("card",a),f=b()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:t});return i.createElement("div",Object.assign({},r,{className:f}))},K=o(83763),F=o(92232),p=o(62371);const X=e=>{const{antCls:a,componentCls:n,cardHeadHeight:t,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:t,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,p.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.vS),{[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},J=e=>{const{cardPaddingBase:a,colorBorderSecondary:n,cardShadow:t,lineWidth:r}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:`

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long