eiam/eiam-console/src/main/resources/fe/4968.9cf6e621.async.js

19 lines
32 KiB
JavaScript

/*
* eiam-console - 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_console=self.webpackChunktopiam_console||[]).push([[4968],{85307:function(_,k,c){c.d(k,{vY:function(){return Ae}});var H=c(74902),K=c(74165),R=c(15861),q=c(91),y=c(1413),h=c(67294),r=c(85893),O=c(97937),v=c(63606),g=c(86548),l=c(952),d=c(7772),a=c(21687),f=c(4393),s=c(59209),E=c(96074),D=c(26713),V=function(e){var t=e.padding;return(0,r.jsx)("div",{style:{padding:t||"0 24px"},children:(0,r.jsx)(E.Z,{style:{margin:0}})})},Y={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},ee=function(e){var t=e.size,n=e.active,o=(0,s.ZP)(),u=t===void 0?Y[o]||6:t,m=function(p){return p===0?0:u>2?42:16};return(0,r.jsx)(f.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,r.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(u).fill(null).map(function(x,p){return(0,r.jsxs)("div",{style:{borderInlineStart:u>2&&p===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:m(p),flex:1,marginInlineEnd:p===0?16:0},children:[(0,r.jsx)(a.Z,{active:n,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,r.jsx)(a.Z.Button,{active:n,style:{height:48}})]},p)})})})},ne=function(e){var t=e.active;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,r.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,r.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,r.jsx)(a.Z,{active:t,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,r.jsx)(a.Z.Button,{active:t,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,r.jsx)(V,{})]})},se=function(e){var t=e.size,n=e.active,o=n===void 0?!0:n,u=e.actionButton;return(0,r.jsxs)(f.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(t).fill(null).map(function(m,x){return(0,r.jsx)(ne,{active:!!o},x)}),u!==!1&&(0,r.jsx)(f.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(a.Z.Button,{style:{width:102},active:o,size:"small"})})]})},F=function(e){var t=e.active;return(0,r.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,r.jsx)(a.Z,{paragraph:!1,title:{width:185}}),(0,r.jsx)(a.Z.Button,{active:t,size:"small"})]})},ie=function(e){var t=e.active;return(0,r.jsx)(f.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,r.jsxs)(D.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,r.jsx)(a.Z.Button,{active:t,style:{width:200},size:"small"}),(0,r.jsxs)(D.Z,{children:[(0,r.jsx)(a.Z.Button,{active:t,size:"small",style:{width:120}}),(0,r.jsx)(a.Z.Button,{active:t,size:"small",style:{width:80}})]})]})})},te=function(e){var t=e.active,n=t===void 0?!0:t,o=e.statistic,u=e.actionButton,m=e.toolbar,x=e.pageHeader,p=e.list,C=p===void 0?5:p;return(0,r.jsxs)("div",{style:{width:"100%"},children:[x!==!1&&(0,r.jsx)(F,{active:n}),o!==!1&&(0,r.jsx)(ee,{size:o,active:n}),(m!==!1||C!==!1)&&(0,r.jsxs)(f.Z,{bordered:!1,bodyStyle:{padding:0},children:[m!==!1&&(0,r.jsx)(ie,{active:n}),C!==!1&&(0,r.jsx)(se,{size:C,active:n,actionButton:u})]})]})},oe=te,le={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},de=function(e){var t=e.active;return(0,r.jsxs)("div",{style:{marginBlockStart:32},children:[(0,r.jsx)(a.Z.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),(0,r.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,r.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,r.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,r.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},re=function(e){var t=e.size,n=e.active,o=(0,s.ZP)(),u=t===void 0?le[o]||3:t;return(0,r.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(u).fill(null).map(function(m,x){return(0,r.jsxs)("div",{style:{flex:1,paddingInlineStart:x===0?0:24,paddingInlineEnd:x===u-1?0:24},children:[(0,r.jsx)(a.Z,{active:n,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,r.jsx)(a.Z,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,r.jsx)(a.Z,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}})]},x)})})},ce=function(e){var t=e.active,n=e.header,o=n===void 0?!1:n,u=(0,s.ZP)(),m=le[u]||3;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{display:"flex",background:o?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(m).fill(null).map(function(x,p){return(0,r.jsx)("div",{style:{flex:1,paddingInlineStart:o&&p===0?0:20,paddingInlineEnd:32},children:(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{margin:0,height:24,width:o?"75px":"100%"}}})},p)}),(0,r.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{margin:0,height:24,width:o?"75px":"100%"}}})})]}),(0,r.jsx)(V,{padding:"0px 0px"})]})},ge=function(e){var t=e.active,n=e.size,o=n===void 0?4:n;return(0,r.jsxs)(f.Z,{bordered:!1,children:[(0,r.jsx)(a.Z.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),(0,r.jsx)(ce,{header:!0,active:t}),new Array(o).fill(null).map(function(u,m){return(0,r.jsx)(ce,{active:t},m)}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,r.jsx)(a.Z,{active:t,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},Ze=function(e){var t=e.active;return(0,r.jsxs)(f.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,r.jsx)(a.Z.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),(0,r.jsx)(re,{active:t}),(0,r.jsx)(de,{active:t})]})},Fe=function(e){var t=e.active,n=t===void 0?!0:t,o=e.pageHeader,u=e.list;return(0,r.jsxs)("div",{style:{width:"100%"},children:[o!==!1&&(0,r.jsx)(F,{active:n}),(0,r.jsx)(Ze,{active:n}),u!==!1&&(0,r.jsx)(V,{}),u!==!1&&(0,r.jsx)(ge,{active:n,size:u})]})},Me=Fe,ze=function(e){var t=e.active,n=t===void 0?!0:t,o=e.pageHeader;return(0,r.jsxs)("div",{style:{width:"100%"},children:[o!==!1&&(0,r.jsx)(F,{active:n}),(0,r.jsx)(f.Z,{children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,r.jsx)(a.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,r.jsx)(a.Z.Button,{active:n,style:{width:214,marginBlockEnd:8}}),(0,r.jsx)(a.Z.Button,{active:n,style:{width:328},size:"small"}),(0,r.jsxs)(D.Z,{style:{marginBlockStart:24},children:[(0,r.jsx)(a.Z.Button,{active:n,style:{width:116}}),(0,r.jsx)(a.Z.Button,{active:n,style:{width:116}})]})]})})]})},Ne=ze,$e=["type"],He=function(e){var t=e.type,n=t===void 0?"list":t,o=(0,q.Z)(e,$e);return n==="result"?(0,r.jsx)(Ne,(0,y.Z)({},o)):n==="descriptions"?(0,r.jsx)(Me,(0,y.Z)({},o)):(0,r.jsx)(oe,(0,y.Z)({},o))},Ke=He,Se=c(2026),We=c(90081),Qe=c(77398),we=c(81736),pe=c(97685),Ve=c(73964),De=c(2453),je=c(60869),he=c(86671),Ge=function(e){return(De.ZP.warn||De.ZP.warning)(e)};function Ue(i){var e=i.data,t=i.row;return(0,y.Z)((0,y.Z)({},e),t)}function Xe(i){var e=i.type||"single",t=(0,Ve.YB)(),n=(0,je.Z)([],{value:i.editableKeys,onChange:i.onChange?function(S){var B;i==null||(B=i.onChange)===null||B===void 0||B.call(i,S,i.dataSource)}:void 0}),o=(0,pe.Z)(n,2),u=o[0],m=o[1],x=(0,h.useMemo)(function(){var S=e==="single"?u==null?void 0:u.slice(0,1):u;return new Set(S)},[(u||[]).join(","),e]),p=(0,h.useCallback)(function(S){return!!(u!=null&&u.includes((0,he.sN)(S)))},[(u||[]).join(",")]),C=function(B){return x.size>0&&e==="single"?(Ge(i.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(x.add((0,he.sN)(B)),m(Array.from(x)),!0)},w=function(B){return x.delete((0,he.sN)(B)),m(Array.from(x)),!0},M=function(){var S=(0,R.Z)((0,K.Z)().mark(function B(N,Z,j,L){var $,G;return(0,K.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,i==null||($=i.onCancel)===null||$===void 0?void 0:$.call(i,N,Z,j,L);case 2:if(G=b.sent,G!==!1){b.next=5;break}return b.abrupt("return",!1);case 5:return b.abrupt("return",!0);case 6:case"end":return b.stop()}},B)}));return function(N,Z,j,L){return S.apply(this,arguments)}}(),Q=function(){var S=(0,R.Z)((0,K.Z)().mark(function B(N,Z,j){var L,$,G;return(0,K.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,i==null||(L=i.onSave)===null||L===void 0?void 0:L.call(i,N,Z,j);case 2:if($=b.sent,$!==!1){b.next=5;break}return b.abrupt("return",!1);case 5:return w(N),G={data:i.dataSource,row:Z,key:N,childrenColumnName:i.childrenColumnName||"children"},i.setDataSource(Ue(G)),b.abrupt("return",!0);case 9:case"end":return b.stop()}},B)}));return function(N,Z,j){return S.apply(this,arguments)}}(),W=t.getMessage("editableTable.action.save","\u4FDD\u5B58"),I=t.getMessage("editableTable.action.delete","\u5220\u9664"),z=t.getMessage("editableTable.action.cancel","\u53D6\u6D88"),X=(0,h.useCallback)(function(S,B){var N=(0,y.Z)({recordKey:S,cancelEditable:w,onCancel:M,onSave:Q,editableKeys:u,setEditableRowKeys:m,saveText:W,cancelText:z,deleteText:I,deletePopconfirmMessage:"".concat(t.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?"),editorType:"Map"},B),Z=(0,he.aX)(i.dataSource,N);return i.actionRender?i.actionRender(i.dataSource,N,{save:Z.save,delete:Z.delete,cancel:Z.cancel}):[Z.save,Z.delete,Z.cancel]},[u&&u.join(","),i.dataSource]);return{editableKeys:u,setEditableRowKeys:m,isEditable:p,actionRender:X,startEditable:C,cancelEditable:w}}var Ye=c(78164),P=c(4942),Ie=c(71002),Je=c(94184),me=c.n(Je),ke=c(50344),qe=c(53124),_e=c(96159),xe=c(24308),et=function(e){var t=e.children;return t},tt=et,U=c(87462);function be(i){return i!=null}var rt=function(e){var t=e.itemPrefixCls,n=e.component,o=e.span,u=e.className,m=e.style,x=e.labelStyle,p=e.contentStyle,C=e.bordered,w=e.label,M=e.content,Q=e.colon,W=n;if(C){var I;return h.createElement(W,{className:me()((I={},(0,P.Z)(I,t+"-item-label",be(w)),(0,P.Z)(I,t+"-item-content",be(M)),I),u),style:m,colSpan:o},be(w)&&h.createElement("span",{style:x},w),be(M)&&h.createElement("span",{style:p},M))}return h.createElement(W,{className:me()(t+"-item",u),style:m,colSpan:o},h.createElement("div",{className:t+"-item-container"},(w||w===0)&&h.createElement("span",{className:me()(t+"-item-label",(0,P.Z)({},t+"-item-no-colon",!Q)),style:x},w),(M||M===0)&&h.createElement("span",{className:me()(t+"-item-content"),style:p},M)))},Ce=rt;function Ee(i,e,t){var n=e.colon,o=e.prefixCls,u=e.bordered,m=t.component,x=t.type,p=t.showLabel,C=t.showContent,w=t.labelStyle,M=t.contentStyle;return i.map(function(Q,W){var I=Q.props,z=I.label,X=I.children,S=I.prefixCls,B=S===void 0?o:S,N=I.className,Z=I.style,j=I.labelStyle,L=I.contentStyle,$=I.span,G=$===void 0?1:$,J=Q.key;return typeof m=="string"?h.createElement(Ce,{key:x+"-"+(J||W),className:N,style:Z,labelStyle:(0,U.Z)((0,U.Z)({},w),j),contentStyle:(0,U.Z)((0,U.Z)({},M),L),span:G,colon:n,component:m,itemPrefixCls:B,bordered:u,label:p?z:null,content:C?X:null}):[h.createElement(Ce,{key:"label-"+(J||W),className:N,style:(0,U.Z)((0,U.Z)((0,U.Z)({},w),Z),j),span:1,colon:n,component:m[0],itemPrefixCls:B,bordered:u,label:z}),h.createElement(Ce,{key:"content-"+(J||W),className:N,style:(0,U.Z)((0,U.Z)((0,U.Z)({},M),Z),L),span:G*2-1,component:m[1],itemPrefixCls:B,bordered:u,content:X})]})}var at=function(e){var t=h.useContext(Te),n=e.prefixCls,o=e.vertical,u=e.row,m=e.index,x=e.bordered;return o?h.createElement(h.Fragment,null,h.createElement("tr",{key:"label-"+m,className:n+"-row"},Ee(u,e,(0,U.Z)({component:"th",type:"label",showLabel:!0},t))),h.createElement("tr",{key:"content-"+m,className:n+"-row"},Ee(u,e,(0,U.Z)({component:"td",type:"content",showContent:!0},t)))):h.createElement("tr",{key:m,className:n+"-row"},Ee(u,e,(0,U.Z)({component:x?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},nt=at,it=c(67968),lt=c(45503),Be=c(14747),ot=function(e){var t,n=e.componentCls,o=e.descriptionsSmallPadding,u=e.descriptionsDefaultPadding,m=e.descriptionsMiddlePadding,x=e.descriptionsBg;return(0,P.Z)({},"&"+n+"-bordered",(t={},(0,P.Z)(t,n+"-view",{border:e.lineWidth+"px "+e.lineType+" "+e.colorSplit,"> table":{tableLayout:"auto",borderCollapse:"collapse"}}),(0,P.Z)(t,n+"-item-label, "+n+"-item-content",{padding:u,borderInlineEnd:e.lineWidth+"px "+e.lineType+" "+e.colorSplit,"&:last-child":{borderInlineEnd:"none"}}),(0,P.Z)(t,n+"-item-label",{backgroundColor:x,"&::after":{display:"none"}}),(0,P.Z)(t,n+"-row",{borderBottom:e.lineWidth+"px "+e.lineType+" "+e.colorSplit,"&:last-child":{borderBottom:"none"}}),(0,P.Z)(t,"&"+n+"-middle",(0,P.Z)({},n+"-item-label, "+n+"-item-content",{padding:m})),(0,P.Z)(t,"&"+n+"-small",(0,P.Z)({},n+"-item-label, "+n+"-item-content",{padding:o})),t))},st=function(e){var t,n,o=e.componentCls,u=e.descriptionsExtraColor,m=e.descriptionItemPaddingBottom,x=e.descriptionsItemLabelColonMarginRight,p=e.descriptionsItemLabelColonMarginLeft,C=e.descriptionsTitleMarginBottom;return(0,P.Z)({},o,(0,U.Z)((0,U.Z)((0,U.Z)({},(0,Be.Wf)(e)),ot(e)),(n={},(0,P.Z)(n,"&-rtl",{direction:"rtl"}),(0,P.Z)(n,o+"-header",{display:"flex",alignItems:"center",marginBottom:C}),(0,P.Z)(n,o+"-title",(0,U.Z)((0,U.Z)({},Be.vS),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG})),(0,P.Z)(n,o+"-extra",{marginInlineStart:"auto",color:u,fontSize:e.fontSize}),(0,P.Z)(n,o+"-view",{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}}),(0,P.Z)(n,o+"-row",{"> th, > td":{paddingBottom:m},"&:last-child":{borderBottom:"none"}}),(0,P.Z)(n,o+"-item-label",(0,P.Z)({color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:p+"px "+x+"px"}},"&"+o+"-item-no-colon::after",{content:'""'})),(0,P.Z)(n,o+"-item-no-label",{"&::after":{margin:0,content:'""'}}),(0,P.Z)(n,o+"-item-content",{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"}),(0,P.Z)(n,o+"-item",{paddingBottom:0,verticalAlign:"top","&-container":(t={display:"flex"},(0,P.Z)(t,o+"-item-label",{display:"inline-flex",alignItems:"baseline"}),(0,P.Z)(t,o+"-item-content",{display:"inline-flex",alignItems:"baseline"}),t)}),(0,P.Z)(n,"&-middle",(0,P.Z)({},o+"-row",{"> th, > td":{paddingBottom:e.paddingSM}})),(0,P.Z)(n,"&-small",(0,P.Z)({},o+"-row",{"> th, > td":{paddingBottom:e.paddingXS}})),n)))},dt=(0,it.Z)("Descriptions",function(i){var e=i.colorFillAlter,t=i.fontSizeSM*i.lineHeightSM,n=i.colorText,o=i.paddingXS+"px "+i.padding+"px",u=i.padding+"px "+i.paddingLG+"px",m=i.paddingSM+"px "+i.paddingLG+"px",x=i.padding,p=i.marginXS,C=i.marginXXS/2,w=(0,lt.TS)(i,{descriptionsBg:e,descriptionsTitleMarginBottom:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:x,descriptionsSmallPadding:o,descriptionsDefaultPadding:u,descriptionsMiddlePadding:m,descriptionsItemLabelColonMarginRight:p,descriptionsItemLabelColonMarginLeft:C});return[st(w)]}),Te=h.createContext({}),Le={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function ct(i,e){if(typeof i=="number")return i;if((0,Ie.Z)(i)==="object")for(var t=0;t<xe.c4.length;t++){var n=xe.c4[t];if(e[n]&&i[n]!==void 0)return i[n]||Le[n]}return 3}function Re(i,e,t){var n=i;return(e===void 0||e>t)&&(n=(0,_e.Tm)(i,{span:t})),n}function ut(i,e){var t=(0,ke.Z)(i).filter(function(m){return m}),n=[],o=[],u=e;return t.forEach(function(m,x){var p,C=(p=m.props)===null||p===void 0?void 0:p.span,w=C||1;if(x===t.length-1){o.push(Re(m,C,u)),n.push(o);return}w<u?(u-=w,o.push(m)):(o.push(Re(m,w,u)),n.push(o),u=e,o=[])}),n}function Oe(i){var e,t=i.prefixCls,n=i.title,o=i.extra,u=i.column,m=u===void 0?Le:u,x=i.colon,p=x===void 0?!0:x,C=i.bordered,w=i.layout,M=i.children,Q=i.className,W=i.style,I=i.size,z=i.labelStyle,X=i.contentStyle,S=h.useContext(qe.E_),B=S.getPrefixCls,N=S.direction,Z=B("descriptions",t),j=h.useState({}),L=(0,pe.Z)(j,2),$=L[0],G=L[1],J=ct(m,$),b=dt(Z),ae=(0,pe.Z)(b,2),T=ae[0],A=ae[1];h.useEffect(function(){var ve=xe.ZP.subscribe(function(fe){(0,Ie.Z)(m)==="object"&&G(fe)});return function(){xe.ZP.unsubscribe(ve)}},[]);var ye=ut(M,J),ue=h.useMemo(function(){return{labelStyle:z,contentStyle:X}},[z,X]);return T(h.createElement(Te.Provider,{value:ue},h.createElement("div",{className:me()(Z,(e={},(0,P.Z)(e,Z+"-"+I,I&&I!=="default"),(0,P.Z)(e,Z+"-bordered",!!C),(0,P.Z)(e,Z+"-rtl",N==="rtl"),e),Q,A),style:W},(n||o)&&h.createElement("div",{className:Z+"-header"},n&&h.createElement("div",{className:Z+"-title"},n),o&&h.createElement("div",{className:Z+"-extra"},o)),h.createElement("div",{className:Z+"-view"},h.createElement("table",null,h.createElement("tbody",null,ye.map(function(ve,fe){return h.createElement(nt,{key:fe,index:fe,colon:p,prefixCls:Z,vertical:w==="vertical",bordered:C,row:ve})})))))))}Oe.Item=tt;var Pe=Oe,vt=c(46986),ft=c(45598),pt=c(94787),mt=c(30939),yt=function(e,t){var n=t||{},o=n.onRequestError,u=n.effects,m=n.manual,x=n.dataSource,p=n.defaultDataSource,C=n.onDataSourceChange,w=(0,je.Z)(p,{value:x,onChange:C}),M=(0,pe.Z)(w,2),Q=M[0],W=M[1],I=(0,je.Z)(t==null?void 0:t.loading,{value:t==null?void 0:t.loading,onChange:t==null?void 0:t.onLoadingChange}),z=(0,pe.Z)(I,2),X=z[0],S=z[1],B=function(j){W(j),S(!1)},N=function(){var Z=(0,R.Z)((0,K.Z)().mark(function j(){var L,$,G;return(0,K.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!X){b.next=2;break}return b.abrupt("return");case 2:return S(!0),b.prev=3,b.next=6,e();case 6:if(b.t0=b.sent,b.t0){b.next=9;break}b.t0={};case 9:L=b.t0,$=L.data,G=L.success,G!==!1&&B($),b.next=23;break;case 15:if(b.prev=15,b.t1=b.catch(3),o!==void 0){b.next=21;break}throw new Error(b.t1);case 21:o(b.t1);case 22:S(!1);case 23:case"end":return b.stop()}},j,null,[[3,15]])}));return function(){return Z.apply(this,arguments)}}();return(0,h.useEffect)(function(){m||N()},[].concat((0,H.Z)(u||[]),[m])),{dataSource:Q,setDataSource:W,loading:X,reload:function(){return N()}}},gt=yt,ht=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],xt=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],bt=function(e,t){var n=e.dataIndex;if(n){var o=Array.isArray(n)?(0,pt.default)(t,n):t[n];if(o!==void 0||o!==null)return o}return e.children},Zt=function(e){var t=e.valueEnum,n=e.action,o=e.index,u=e.text,m=e.entity,x=e.mode,p=e.render,C=e.editableUtils,w=e.valueType,M=e.plain,Q=e.dataIndex,W=e.request,I=e.renderFormItem,z=e.params,X=l.ZP.useFormInstance(),S={text:u,valueEnum:t,mode:x||"read",proFieldProps:{render:p?function(){return p==null?void 0:p(u,m,o,n,(0,y.Z)((0,y.Z)({},e),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:w,request:W,params:z,plain:M};if(x==="read"||!x||w==="option"){var B=(0,Se.w)(e.fieldProps,void 0,(0,y.Z)((0,y.Z)({},e),{},{rowKey:Q,isEditable:!1}));return(0,r.jsx)(d.Z,(0,y.Z)((0,y.Z)({name:Q},S),{},{fieldProps:B}))}var N=function(){var j,L=(0,Se.w)(e.formItemProps,X,(0,y.Z)((0,y.Z)({},e),{},{rowKey:Q,isEditable:!0})),$=(0,Se.w)(e.fieldProps,X,(0,y.Z)((0,y.Z)({},e),{},{rowKey:Q,isEditable:!0})),G=I?I==null?void 0:I((0,y.Z)((0,y.Z)({},e),{},{type:"descriptions"}),{isEditable:!0,recordKey:Q,record:X.getFieldValue([Q].flat(1)),defaultRender:function(){return(0,r.jsx)(d.Z,(0,y.Z)((0,y.Z)({},S),{},{fieldProps:$}))},type:"descriptions"},X):void 0;return(0,r.jsxs)(D.Z,{style:{alignItems:"baseline"},children:[(0,r.jsx)(We.U,(0,y.Z)((0,y.Z)({name:Q},L),{},{style:(0,y.Z)({margin:0},(L==null?void 0:L.style)||{}),initialValue:u||(L==null?void 0:L.initialValue),children:G||(0,r.jsx)(d.Z,(0,y.Z)((0,y.Z)({},S),{},{proFieldProps:(0,y.Z)({},S.proFieldProps),fieldProps:$}))})),C==null||(j=C.actionRender)===null||j===void 0?void 0:j.call(C,Q||o,{cancelText:(0,r.jsx)(O.Z,{}),saveText:(0,r.jsx)(v.Z,{}),deleteText:!1})]})};return(0,r.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:N()})},St=function(e,t,n,o){var u,m=[],x=e==null||(u=e.map)===null||u===void 0?void 0:u.call(e,function(p,C){var w,M;if(h.isValidElement(p))return p;var Q=p.valueEnum,W=p.render,I=p.renderText,z=p.mode,X=p.plain,S=p.dataIndex,B=p.request,N=p.params,Z=p.editable,j=(0,q.Z)(p,ht),L=(w=bt(p,t))!==null&&w!==void 0?w:j.children,$=I?I(L,t,C,n):L,G=typeof j.title=="function"?j.title(p,"descriptions",null):j.title,J=typeof j.valueType=="function"?j.valueType(t||{},"descriptions"):j.valueType,b=o==null?void 0:o.isEditable(S||C),ae=z||b?"edit":"read",T=o&&ae==="read"&&Z!==!1&&(Z==null?void 0:Z($,t,C))!==!1,A=T?D.Z:h.Fragment,ye=ae==="edit"?$:(0,Qe.X)($,p,$),ue=(0,h.createElement)(Pe.Item,(0,y.Z)((0,y.Z)({},j),{},{key:j.key||((M=j.label)===null||M===void 0?void 0:M.toString())||C,label:(G||j.label||j.tooltip||j.tip)&&(0,r.jsx)(we.G,{label:G||j.label,tooltip:j.tooltip||j.tip,ellipsis:p.ellipsis})}),(0,r.jsxs)(A,{children:[(0,r.jsx)(Zt,(0,y.Z)((0,y.Z)({},p),{},{dataIndex:p.dataIndex||C,mode:ae,text:ye,valueType:J,entity:t,index:C,action:n,editableUtils:o})),T&&J!=="option"&&(0,r.jsx)(g.Z,{onClick:function(){o==null||o.startEditable(S||C)}})]}));return J==="option"?(m.push(ue),null):ue}).filter(function(p){return p});return{options:m!=null&&m.length?m:null,children:x}},jt=function(e){return(0,r.jsx)(Pe.Item,(0,y.Z)((0,y.Z)({},e),{},{children:e.children}))},Ct=function(e){return e.children},Ae=function(e){var t,n=e.request,o=e.columns,u=e.params,m=u===void 0?{}:u,x=e.dataSource,p=e.onDataSourceChange,C=e.formProps,w=e.editable,M=e.loading,Q=e.onLoadingChange,W=e.actionRef,I=e.onRequestError,z=(0,q.Z)(e,xt),X=(0,h.useContext)(vt.ZP.ConfigContext),S=gt((0,R.Z)((0,K.Z)().mark(function b(){var ae;return(0,K.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(!n){A.next=6;break}return A.next=3,n(m);case 3:A.t0=A.sent,A.next=7;break;case 6:A.t0={data:{}};case 7:return ae=A.t0,A.abrupt("return",ae);case 9:case"end":return A.stop()}},b)})),{onRequestError:I,effects:[(0,mt.P)(m)],manual:!n,dataSource:x,loading:M,onLoadingChange:Q,onDataSourceChange:p}),B=Xe((0,y.Z)((0,y.Z)({},e.editable),{},{childrenColumnName:void 0,dataSource:S.dataSource,setDataSource:S.setDataSource}));if((0,h.useEffect)(function(){W&&(W.current=(0,y.Z)({reload:S.reload},B))},[S,W,B]),S.loading||S.loading===void 0&&n)return(0,r.jsx)(Ke,{type:"descriptions",list:!1,pageHeader:!1});var N=function(){var ae=(0,ft.Z)(e.children).filter(Boolean).map(function(T){if(!h.isValidElement(T))return T;var A=T==null?void 0:T.props,ye=A.valueEnum,ue=A.valueType,ve=A.dataIndex,fe=A.ellipsis,Et=A.copyable,Pt=A.request;return!ue&&!ye&&!ve&&!Pt&&!fe&&!Et?T:(0,y.Z)((0,y.Z)({},T==null?void 0:T.props),{},{entity:x})});return[].concat((0,H.Z)(o||[]),(0,H.Z)(ae)).filter(function(T){return!T||(T==null?void 0:T.valueType)&&["index","indexBorder"].includes(T==null?void 0:T.valueType)?!1:!(T!=null&&T.hideInDescriptions)}).sort(function(T,A){return A.order||T.order?(A.order||0)-(T.order||0):(A.index||0)-(T.index||0)})},Z=St(N(),S.dataSource||{},(W==null?void 0:W.current)||S,w?B:void 0),j=Z.options,L=Z.children,$=w?l.ZP:Ct,G=null;(z.title||z.tooltip||z.tip)&&(G=(0,r.jsx)(we.G,{label:z.title,tooltip:z.tooltip||z.tip}));var J=X.getPrefixCls("pro-descriptions");return(0,r.jsx)(Ye.S,{children:(0,r.jsx)($,(0,y.Z)((0,y.Z)({form:(t=e.editable)===null||t===void 0?void 0:t.form,component:!1,submitter:!1},C),{},{onFinish:void 0,children:(0,r.jsx)(Pe,(0,y.Z)((0,y.Z)({className:J},z),{},{extra:z.extra?(0,r.jsxs)(D.Z,{children:[j,z.extra]}):j,title:G,children:L}))}),"form")})};Ae.Item=jt;var wt=null},78234:function(_,k,c){var H=c(67294),K=c(92770),R=c(31663);const q=y=>{R.Z&&((0,K.mf)(y)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof y}".`)),(0,H.useEffect)(()=>{y==null||y()},[])};k.Z=q},31663:function(_,k){k.Z=!1},55798:function(_){var k=String.prototype.replace,c=/%20/g;_.exports={default:"RFC3986",formatters:{RFC1738:function(H){return k.call(H,c,"+")},RFC3986:function(H){return String(H)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},80129:function(_,k,c){var H=c(58261),K=c(55235),R=c(55798);_.exports={formats:R,parse:K,stringify:H}},55235:function(_,k,c){var H=c(12769),K=Object.prototype.hasOwnProperty,R={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:H.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},q=function(O,v){for(var g={},l=v.ignoreQueryPrefix?O.replace(/^\?/,""):O,d=v.parameterLimit===1/0?void 0:v.parameterLimit,a=l.split(v.delimiter,d),f=0;f<a.length;++f){var s=a[f],E=s.indexOf("]="),D=E===-1?s.indexOf("="):E+1,V,Y;D===-1?(V=v.decoder(s,R.decoder),Y=v.strictNullHandling?null:""):(V=v.decoder(s.slice(0,D),R.decoder),Y=v.decoder(s.slice(D+1),R.decoder)),K.call(g,V)?g[V]=[].concat(g[V]).concat(Y):g[V]=Y}return g},y=function(r,O,v){for(var g=O,l=r.length-1;l>=0;--l){var d,a=r[l];if(a==="[]"&&v.parseArrays)d=[].concat(g);else{d=v.plainObjects?Object.create(null):{};var f=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,s=parseInt(f,10);!v.parseArrays&&f===""?d={0:g}:!isNaN(s)&&a!==f&&String(s)===f&&s>=0&&v.parseArrays&&s<=v.arrayLimit?(d=[],d[s]=g):f!=="__proto__"&&(d[f]=g)}g=d}return g},h=function(O,v,g){if(!!O){var l=g.allowDots?O.replace(/\.([^.[]+)/g,"[$1]"):O,d=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,f=d.exec(l),s=f?l.slice(0,f.index):l,E=[];if(s){if(!g.plainObjects&&K.call(Object.prototype,s)&&!g.allowPrototypes)return;E.push(s)}for(var D=0;(f=a.exec(l))!==null&&D<g.depth;){if(D+=1,!g.plainObjects&&K.call(Object.prototype,f[1].slice(1,-1))&&!g.allowPrototypes)return;E.push(f[1])}return f&&E.push("["+l.slice(f.index)+"]"),y(E,v,g)}};_.exports=function(r,O){var v=O?H.assign({},O):{};if(v.decoder!==null&&v.decoder!==void 0&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(v.ignoreQueryPrefix=v.ignoreQueryPrefix===!0,v.delimiter=typeof v.delimiter=="string"||H.isRegExp(v.delimiter)?v.delimiter:R.delimiter,v.depth=typeof v.depth=="number"?v.depth:R.depth,v.arrayLimit=typeof v.arrayLimit=="number"?v.arrayLimit:R.arrayLimit,v.parseArrays=v.parseArrays!==!1,v.decoder=typeof v.decoder=="function"?v.decoder:R.decoder,v.allowDots=typeof v.allowDots=="boolean"?v.allowDots:R.allowDots,v.plainObjects=typeof v.plainObjects=="boolean"?v.plainObjects:R.plainObjects,v.allowPrototypes=typeof v.allowPrototypes=="boolean"?v.allowPrototypes:R.allowPrototypes,v.parameterLimit=typeof v.parameterLimit=="number"?v.parameterLimit:R.parameterLimit,v.strictNullHandling=typeof v.strictNullHandling=="boolean"?v.strictNullHandling:R.strictNullHandling,r===""||r===null||typeof r=="undefined")return v.plainObjects?Object.create(null):{};for(var g=typeof r=="string"?q(r,v):r,l=v.plainObjects?Object.create(null):{},d=Object.keys(g),a=0;a<d.length;++a){var f=d[a],s=h(f,g[f],v);l=H.merge(l,s,v)}return H.compact(l)}},58261:function(_,k,c){var H=c(12769),K=c(55798),R={brackets:function(l){return l+"[]"},indices:function(l,d){return l+"["+d+"]"},repeat:function(l){return l}},q=Array.isArray,y=Array.prototype.push,h=function(g,l){y.apply(g,q(l)?l:[l])},r=Date.prototype.toISOString,O={delimiter:"&",encode:!0,encoder:H.encode,encodeValuesOnly:!1,serializeDate:function(l){return r.call(l)},skipNulls:!1,strictNullHandling:!1},v=function g(l,d,a,f,s,E,D,V,Y,ee,ne,se){var F=l;if(typeof D=="function"?F=D(d,F):F instanceof Date&&(F=ee(F)),F===null){if(f)return E&&!se?E(d,O.encoder):d;F=""}if(typeof F=="string"||typeof F=="number"||typeof F=="boolean"||H.isBuffer(F)){if(E){var ie=se?d:E(d,O.encoder);return[ne(ie)+"="+ne(E(F,O.encoder))]}return[ne(d)+"="+ne(String(F))]}var te=[];if(typeof F=="undefined")return te;var oe;if(q(D))oe=D;else{var le=Object.keys(F);oe=V?le.sort(V):le}for(var de=0;de<oe.length;++de){var re=oe[de];s&&F[re]===null||(q(F)?h(te,g(F[re],a(d,re),a,f,s,E,D,V,Y,ee,ne,se)):h(te,g(F[re],d+(Y?"."+re:"["+re+"]"),a,f,s,E,D,V,Y,ee,ne,se)))}return te};_.exports=function(g,l){var d=g,a=l?H.assign({},l):{};if(a.encoder!==null&&typeof a.encoder!="undefined"&&typeof a.encoder!="function")throw new TypeError("Encoder has to be a function.");var f=typeof a.delimiter=="undefined"?O.delimiter:a.delimiter,s=typeof a.strictNullHandling=="boolean"?a.strictNullHandling:O.strictNullHandling,E=typeof a.skipNulls=="boolean"?a.skipNulls:O.skipNulls,D=typeof a.encode=="boolean"?a.encode:O.encode,V=typeof a.encoder=="function"?a.encoder:O.encoder,Y=typeof a.sort=="function"?a.sort:null,ee=typeof a.allowDots=="undefined"?!1:a.allowDots,ne=typeof a.serializeDate=="function"?a.serializeDate:O.serializeDate,se=typeof a.encodeValuesOnly=="boolean"?a.encodeValuesOnly:O.encodeValuesOnly;if(typeof a.format=="undefined")a.format=K.default;else if(!Object.prototype.hasOwnProperty.call(K.formatters,a.format))throw new TypeError("Unknown format option provided.");var F=K.formatters[a.format],ie,te;typeof a.filter=="function"?(te=a.filter,d=te("",d)):q(a.filter)&&(te=a.filter,ie=te);var oe=[];if(typeof d!="object"||d===null)return"";var le;a.arrayFormat in R?le=a.arrayFormat:"indices"in a?le=a.indices?"indices":"repeat":le="indices";var de=R[le];ie||(ie=Object.keys(d)),Y&&ie.sort(Y);for(var re=0;re<ie.length;++re){var ce=ie[re];E&&d[ce]===null||h(oe,v(d[ce],ce,de,s,E,D?V:null,te,Y,ee,ne,F,se))}var ge=oe.join(f),Ze=a.addQueryPrefix===!0?"?":"";return ge.length>0?Ze+ge:""}},12769:function(_){var k=Object.prototype.hasOwnProperty,c=function(){for(var g=[],l=0;l<256;++l)g.push("%"+((l<16?"0":"")+l.toString(16)).toUpperCase());return g}(),H=function(l){for(var d;l.length;){var a=l.pop();if(d=a.obj[a.prop],Array.isArray(d)){for(var f=[],s=0;s<d.length;++s)typeof d[s]!="undefined"&&f.push(d[s]);a.obj[a.prop]=f}}return d},K=function(l,d){for(var a=d&&d.plainObjects?Object.create(null):{},f=0;f<l.length;++f)typeof l[f]!="undefined"&&(a[f]=l[f]);return a},R=function g(l,d,a){if(!d)return l;if(typeof d!="object"){if(Array.isArray(l))l.push(d);else if(l&&typeof l=="object")(a&&(a.plainObjects||a.allowPrototypes)||!k.call(Object.prototype,d))&&(l[d]=!0);else return[l,d];return l}if(!l||typeof l!="object")return[l].concat(d);var f=l;return Array.isArray(l)&&!Array.isArray(d)&&(f=K(l,a)),Array.isArray(l)&&Array.isArray(d)?(d.forEach(function(s,E){if(k.call(l,E)){var D=l[E];D&&typeof D=="object"&&s&&typeof s=="object"?l[E]=g(D,s,a):l.push(s)}else l[E]=s}),l):Object.keys(d).reduce(function(s,E){var D=d[E];return k.call(s,E)?s[E]=g(s[E],D,a):s[E]=D,s},f)},q=function(l,d){return Object.keys(d).reduce(function(a,f){return a[f]=d[f],a},l)},y=function(g){try{return decodeURIComponent(g.replace(/\+/g," "))}catch(l){return g}},h=function(l){if(l.length===0)return l;for(var d=typeof l=="string"?l:String(l),a="",f=0;f<d.length;++f){var s=d.charCodeAt(f);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){a+=d.charAt(f);continue}if(s<128){a=a+c[s];continue}if(s<2048){a=a+(c[192|s>>6]+c[128|s&63]);continue}if(s<55296||s>=57344){a=a+(c[224|s>>12]+c[128|s>>6&63]+c[128|s&63]);continue}f+=1,s=65536+((s&1023)<<10|d.charCodeAt(f)&1023),a+=c[240|s>>18]+c[128|s>>12&63]+c[128|s>>6&63]+c[128|s&63]}return a},r=function(l){for(var d=[{obj:{o:l},prop:"o"}],a=[],f=0;f<d.length;++f)for(var s=d[f],E=s.obj[s.prop],D=Object.keys(E),V=0;V<D.length;++V){var Y=D[V],ee=E[Y];typeof ee=="object"&&ee!==null&&a.indexOf(ee)===-1&&(d.push({obj:E,prop:Y}),a.push(ee))}return H(d)},O=function(l){return Object.prototype.toString.call(l)==="[object RegExp]"},v=function(l){return l===null||typeof l=="undefined"?!1:!!(l.constructor&&l.constructor.isBuffer&&l.constructor.isBuffer(l))};_.exports={arrayToObject:K,assign:q,compact:r,decode:y,encode:h,isBuffer:v,isRegExp:O,merge:R}}}]);