|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3126,1322,8821,3416,3729,2320,2359,858],{12826:function(we,xe,n){"use strict";n.d(xe,{ZP:function(){return rt}});var H=n(85061),X=n(55507),_=n(92137),Ce=n(84305),le=n(75901),ze=n(98858),m=n(4914),Ee=n(81253),Ne=n(49111),G=n(19650),$e=n(9715),Te=n(86835),i=n(28991),t=n(67294),I=n(85893),he=n(54549),pe=n(79508),Pe=n(8212),De=n(952),ie=n(31649),Ie=n(58024),Y=n(91894),Re=n(71748),g=n(33860),me=n(38069),Me=n(48736),f=n(27049),s=function(e){var a=e.padding;return t.createElement("div",{style:{padding:a||"0 24px"}},t.createElement(f.Z,{style:{margin:0}}))},y={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},S=function(e){var a=e.size,l=e.active,r=(0,me.ZP)(),v=a===void 0?y[r]||6:a,h=function(d){return d===0?0:v>2?42:16};return t.createElement(Y.Z,{bordered:!1,style:{marginBottom:16}},t.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},new Array(v).fill(null).map(function(P,d){return t.createElement("div",{key:d,style:{borderLeft:v>2&&d===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:h(d),flex:1,marginRight:d===0?16:0}},t.createElement(g.Z,{active:l,paragraph:!1,title:{width:100,style:{marginTop:0}}}),t.createElement(g.Z.Button,{active:l,style:{height:48}}))})))},L=function(e){var a=e.active;return t.createElement(t.Fragment,null,t.createElement(Y.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24}},t.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}},t.createElement("div",{style:{maxWidth:"100%",flex:1}},t.createElement(g.Z,{active:a,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})),t.createElement(g.Z.Button,{active:a,size:"small",style:{width:165,marginTop:12}}))),t.createElement(s,null))},R=function(e){var a=e.size,l=e.active,r=l===void 0?!0:l,v=e.actionButton;return t.createElement(Y.Z,{bordered:!1,bodyStyle:{padding:0}},new Array(a).fill(null).map(function(h,P){return t.createElement(L,{key:P,active:!!r})}),v!==!1&&t.createElement(Y.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},t.createElement(g.Z.Button,{style:{width:102},active:r,size:"small"})))},x=function(e){var a=e.active;return t.createElement("div",{style:{marginBottom:16}},t.createElement(g.Z,{paragraph:!1,title:{width:185}}),t.createElement(g.Z.Button,{active:a,size:"small"}))},K=function(e){var a=e.active;return t.createElement(Y.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8}},t.createElement(G.Z,{style:{width:"100%",justifyContent:"space-between"}},t.createElement(g.Z.Button,{active:a,style:{width:200},size:"small"}),t.createElement(G.Z,null,t.createElement(g.Z.Button,{active:a,size:"small",style:{width:120}}),t.createElement(g.Z.Button,{active:a,size:"small",style:{width:80}}))))},U=function(e){var a=e.active,l=a===void 0?!0:a,r=e.statistic,v=e.actionButton,h=e.toolbar,P=e.pageHeader,d=e.list,b=d===void 0?5:d;return t.createElement("div",{style:{width:"100%"}},P!==!1&&t.createElement(x,{active:l}),r!==!1&&t.createElement(S,{size:r,active:l}),(h!==!1||b!==!1)&&t.createElement(Y.Z,{bordered:!1,bodyStyle:{padding:0}},h!==!1&&t.createElement(K,{active:l}),b!==!1&&t.createElement(R,{size:b,active:l,actionButton:v})))},J=U,j={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},k=function(e){var a=e.active;return t.createElement("div",{style:{marginTop:32}},t.createElement(g.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),t.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},t.createElement("div",{style:{flex:1,marginRight:24,maxWidth:300}},t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}}),t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})),t.createElement("div",{style:{flex:1,alignItems:"center",justifyContent:"center"}},t.createElement("div",{style:{maxWidth:300,margin:"auto"}},t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})))))},te=function(e){var a=e.size,l=e.active,r=(0,me.ZP)(),v=a===void 0?j[r]||3:a;return t.createElement("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"}},new Array(v).fill(null).map(function(h,P){return t.createElement("div",{key:P,style:{flex:1,paddingLeft:P===0?0:24,paddingRight:P===v-1?0:24}},t.createElement(g.Z,{active:l,paragraph:!1,title:{style:{marginTop:0}}}),t.createElement(g.Z,{active:l,paragraph:!1,title:{style:{marginTop:8}}}),t.createElement(g.Z,{active:l,paragraph:!1,title:{style:{marginTop:8}}}))}))},q=function(e){var a=e.active,l=e.header,r=l===void 0?!1:l,v=(0,me.ZP)(),h=j[v]||3;return t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",background:r?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"}},new Array(h).fill(null).map(function(P,d){return t.createElement("div",{key:d,style:{flex:1,paddingLeft:r&&d===0?0:20,paddingRight:32}},t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:r?"75px":"100%"}}}))}),t.createElement("div",{style:{flex:3,paddingLeft:32}},t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:r?"75px":"100%"}}}))),t.createElement(s,{padding:"0px 0px"}))},B=function(e){var a=e.active,l=e.size,r=l===void 0?4:l;return t.createElement(Y.Z,{bordered:!1},t.createElement(g.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),t.createElement(q,{header:!0,active:a}),new Array(r).fill(null).map(function(v,h){return t.createElement(q,{key:h,active:a})}),t.createElement("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16}},t.createElement(g.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})))},oe=function(e){var a=e.active;return t.createElement(Y.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0}},t.createElement(g.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),t.createElement(te,{active:a}),t.createElement(k,{active:a}))},se=function(e){var a=e.active,l=a===void 0?!0:a,r=e.pageHeader,v=e.list;return t.createElement("div",{style:{width:"100%"}},r!==!1&&t.createElement(x,{active:l}),t.createElement(oe,{active:l}),v!==!1&&t.createElement(s,null),v!==!1&&t.createElement(B,{active:l,size:v}))},de=se,ce=function(e){var a=e.active,l=a===void 0?!0:a,r=e.pageHeader;return t.createElement("div",{style:{width:"100%"}},r!==!1&&t.createElement(x,{active:l}),t.createElement(Y.Z,null,t.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128}},t.createElement(g.Z.Avatar,{size:64,style:{marginBottom:32}}),t.createElement(g.Z.Button,{active:l,style:{width:214,marginBottom:8}}),t.createElement(g.Z.Button,{active:l,style:{width:328},size:"small"}),t.createElement(G.Z,{style:{marginTop:24}},t.createElement(g.Z.Button,{active:l,style:{width:116}}),t.createElement(g.Z.Button,{active:l,style:{width:116}})))))},ue=ce,M=["type"],fe=function(e){var a=e.type,l=a===void 0?"list":a,r=(0,Ee.Z)(e,M);return l==="result"?t.createElement(ue,r):l==="descriptions"?t.createElement(de,r):t.createElement(J,r)},ve=fe,Ze=n(34792),ye=n(48086),ee=n(28481),Le=n(78775),Se=n(21770),ae=n(86671);function ge(o){var e=o.data,a=o.row;return(0,i.Z)((0,i.Z)({},e),a)}function ke(o){var e=o.type||"single",a=(0,Se.Z)([],{value:o.editableKeys,onChange:o.onChange?function(E){var C;o==null||(C=o.onChange)===null||C===void 0||C.call(o,E,o.dataSource)}:void 0}),l=(0,ee.Z)(a,2),r=l[0],v=l[1],h=(0,t.useMemo)(function(){var E=e==="single"?r==null?void 0:r.slice(0,1):r;return new Set(E)},[(r||[]).join(","),e]),P=(0,t.useCallback)(function(E){return!!(r==null?void 0:r.includes((0,ae.sN)(E)))},[(r||[]).join(",")]),d=function(C){return h.size>0&&e==="single"?(ye.default.warn(o.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(h.add((0,ae.sN)(C)),v(Array.from(h)),!0)},b=function(C){return h.delete((0,ae.sN)(C)),v(Array.from(h)),!0},O=function(){var E=(0,_.Z)((0,X.Z)().mark(function C(D,Z,c,z){var N,F;return(0,X.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,o==null||(N=o.onCancel)===null||N===void 0?void 0:N.call(o,D,Z,c,z);case 2:if(F=u.sent,F!==!1){u.next=5;break}return u.abrupt("return",!1);case 5:return u.abrupt("return",!0);case 6:case"end":return u.stop()}},C)}));return function(D,Z,c,z){return E.apply(this,arguments)}}(),V=function(){var E=(0,_.Z)((0,X.Z)().mark(function C(D,Z,c){var z,N,F;return(0,X.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,o==null||(z=o.onSave)===null||z===void 0?void 0:z.call(o,D,Z,c);case 2:if(N=u.sent,N!==!1){u.next=5;break}return u.abrupt("return",!1);case 5:return b(D),F={data:o.dataSource,row:Z,key:D,childrenColumnName:o.childrenColumnName||"children"},o.setDataSource(ge(F)),u.abrupt("return",!0);case 9:case"end":return u.stop()}},C)}));return function(D,Z,c){return E.apply(this,arguments)}}(),$=(0,Le.YB)(),A=$.getMessage("editableTable.action.save","\u4FDD\u5B58"),W=$.getMessage("editableTable.action.delete","\u5220\u9664"),w=$.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Q=(0,t.useCallback)(function(E,C,D){var Z=(0,i.Z)({recordKey:E,cancelEditable:b,onCancel:O,onSave:V,editableKeys:r,setEditableRowKeys:v,form:C,saveText:A,cancelText:w,deleteText:W,deletePopconfirmMessage:"\u5220\u9664\u6B64\u884C\uFF1F",editorType:"Map"},D),c=(0,ae.aX)(o.dataSource,Z);return o.actionRender?o.actionRender(o.dataSource,Z,{save:c[0],delete:c[1],cancel:c[2]}):c},[r&&r.join(","),o.dataSource]);return{editableKeys:r,setEditableRowKeys:v,isEditable:P,actionRender:Q,startEditable:d,cancelEditable:b}}var Oe=ke,Be=n(2026),We=n(94984),He=n(77398),Fe=n(53621),Ue=n(78164),Ve=n(50344),Qe=n(88306),Xe=n(30939),st=n(65515),Ge=function(e,a){var l=a||{},r=l.onRequestError,v=l.effects,h=l.manual,P=l.dataSource,d=l.defaultDataSource,b=l.onDataSourceChange,O=(0,Se.Z)(d,{value:P,onChange:b}),V=(0,ee.Z)(O,2),$=V[0],A=V[1],W=(0,Se.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),w=(0,ee.Z)(W,2),Q=w[0],E=w[1],C=function(c){A(c),E(!1)},D=function(){var Z=(0,_.Z)((0,X.Z)().mark(function c(){var z,N,F;return(0,X.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!Q){u.next=2;break}return u.abrupt("return");case 2:return E(!0),u.prev=3,u.next=6,e();case 6:if(u.t0=u.sent,u.t0){u.next=9;break}u.t0={};case 9:z=u.t0,N=z.data,F=z.success,F!==!1&&C(N),u.next=23;break;case 15:if(u.prev=15,u.t1=u.catch(3),r!==void 0){u.next=21;break}throw new Error(u.t1);case 21:r(u.t1);case 22:E(!1);case 23:case"end":return u.stop()}},c,null,[[3,15]])}));return function(){return Z.apply(this,arguments)}}();return(0,t.useEffect)(function(){h||D()},[].concat((0,H.Z)(v||[]),[h])),{dataSource:$,setDataSource:A,loading:Q,reload:function(){return D()}}},Ye=Ge,Je=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],qe=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],_e=function(e,a){var l=e.dataIndex;if(l){var r=Array.isArray(l)?(0,Qe.Z)(a,l):a[l];if(r!==void 0||r!==null)return r}return e.children},et=function(e){var a=e.valueEnum,l=e.action,r=e.index,v=e.text,h=e.entity,P=e.mode,d=e.render,b=e.editableUtils,O=e.valueType,V=e.plain,$=e.dataIndex,A=e.request,W=e.renderFormItem,w=e.params,Q={text:v,valueEnum:a,mode:P||"read",proFieldProps:{render:d?function(){return d==null?void 0:d(v,h,r,l,(0,i.Z)((0,i.Z)({},e),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:O,request:A,params:w,plain:V};if(P==="read"||!P||O==="option"){var E=(0,Be.Z)(e.fieldProps,void 0,(0,i.Z)((0,i.Z)({},e),{},{rowKey:$,isEditable:!1}));return(0,I.jsx)(ie.Z,(0,i.Z)((0,i.Z)({name:$},Q),{},{fieldProps:E}))}return(0,I.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:(0,I.jsx)(Te.Z.Item,{noStyle:!0,shouldUpdate:function(D,Z){return D!==Z},children:function(D){var Z,c=(0,Be.Z)(e.formItemProps,D,(0,i.Z)((0,i.Z)({},e),{},{rowKey:$,isEditable:!0})),z=(0,Be.Z)(e.fieldProps,D,(0,i.Z)((0,i.Z)({},e),{},{rowKey:$,isEditable:!0})),N=W?W==null?void 0:W((0,i.Z)((0,i.Z)({},e),{},{type:"descriptions"}),{isEditable:!0,recordKey:$,record:D.getFieldValue([$].flat(1)),defaultRender:function(){return(0,I.jsx)(ie.Z,(0,i.Z)((0,i.Z)({},Q),{},{fieldProps:z}))},type:"descriptions"},D):void 0;return(0,I.jsxs)(G.Z,{children:[(0,I.jsx)(We.Z,(0,i.Z)((0,i.Z)({name:$},c),{},{style:(0,i.Z)({margin:0},(c==null?void 0:c.style)||{}),initialValue:v||(c==null?void 0:c.initialValue),children:N||(0,I.jsx)(ie.Z,(0,i.Z)((0,i.Z)({},Q),{},{proFieldProps:(0,i.Z)({},Q.proFieldProps),fieldProps:z}))})),b==null||(Z=b.actionRender)===null||Z===void 0?void 0:Z.call(b,$||r,D,{cancelText:(0,I.jsx)(he.Z,{}),saveText:(0,I.jsx)(pe.Z,{}),deleteText:!1})]})}})})},tt=function(e,a,l,r){var v,h=[],P=e==null||(v=e.map)===null||v===void 0?void 0:v.call(e,function(d,b){var O,V;if(t.isValidElement(d))return d;var $=d.valueEnum,A=d.render,W=d.renderText,w=d.mode,Q=d.plain,E=d.dataIndex,C=d.request,D=d.params,Z=d.editable,c=(0,Ee.Z)(d,Je),z=(O=_e(d,a))!==null&&O!==void 0?O:c.children,N=W?W(z,a,b,l):z,F=typeof c.title=="function"?c.title(d,"descriptions",null):c.title,ne=typeof c.valueType=="function"?c.valueType(a||{},"descriptions"):c.valueType,u=r==null?void 0:r.isEditable(E||b),re=w||u?"edit":"read",p=r&&re==="read"&&Z!==!1&&(Z==null?void 0:Z(N,a,b))!==!1,T=p?G.Z:t.Fragment,je=re==="edit"?N:(0,He.X)(N,d,N),be=(0,t.createElement)(m.Z.Item,(0,i.Z)((0,i.Z)({},c),{},{key:c.key||((V=c.label)===null||V===void 0?void 0:V.toString())||b,label:(F||c.label||c.tooltip||c.tip)&&(0,I.jsx)(Fe.Z,{label:F||c.label,tooltip:c.tooltip||c.tip,ellipsis:d.ellipsis})}),(0,I.jsxs)(T,{children:[(0,I.jsx)(et,(0,i.Z)((0,i.Z)({},d),{},{dataIndex:d.dataIndex||b,mode:re,text:je,valueType:ne,entity:a,index:b,action:l,editableUtils:r})),p&&ne!=="option"&&(0,I.jsx)(Pe.Z,{onClick:function(){r==null||r.startEditable(E||b)}})]}));return ne==="option"?(h.push(be),null):be}).filter(function(d){return d});return{options:(h==null?void 0:h.length)?h:null,children:P}},at=function(e){return(0,I.jsx)(m.Z.Item,(0,i.Z)((0,i.Z)({},e),{},{children:e.children}))},nt=function(e){return e.children},Ae=function(e){var a,l=e.request,r=e.columns,v=e.params,h=v===void 0?{}:v,P=e.dataSource,d=e.onDataSourceChange,b=e.formProps,O=e.editable,V=e.loading,$=e.onLoadingChange,A=e.actionRef,W=e.onRequestError,w=(0,Ee.Z)(e,qe),Q=(0,t.useContext)(le.ZP.ConfigContext),E=Ye((0,_.Z)((0,X.Z)().mark(function u(){var re;return(0,X.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!l){T.next=6;break}return T.next=3,l(h);case 3:T.t0=T.sent,T.next=7;break;case 6:T.t0={data:{}};case 7:return re=T.t0,T.abrupt("return",re);case 9:case"end":return T.stop()}},u)})),{onRequestError:W,effects:[(0,Xe.P)(h)],manual:!l,dataSource:P,loading:V,onLoadingChange:$,onDataSourceChange:d}),C=Oe((0,i.Z)((0,i.Z)({},e.editable),{},{childrenColumnName:void 0,dataSource:E.dataSource,setDataSource:E.setDataSource}));if((0,t.useEffect)(function(){A&&(A.current=(0,i.Z)({reload:E.reload},C))},[E,A,C]),E.loading||E.loading===void 0&&l)return(0,I.jsx)(ve,{type:"descriptions",list:!1,pageHeader:!1});var D=function(){var re=(0,Ve.Z)(e.children).filter(Boolean).map(function(p){if(!t.isValidElement(p))return p;var T=p==null?void 0:p.props,je=T.valueEnum,be=T.valueType,Ke=T.dataIndex,lt=T.ellipsis,it=T.copyable,ot=T.request;return!be&&!je&&!Ke&&!ot&&!lt&&!it?p:(0,i.Z)((0,i.Z)({},p==null?void 0:p.props),{},{entity:P})});return[].concat((0,H.Z)(r||[]),(0,H.Z)(re)).filter(function(p){return!p||(p==null?void 0:p.valueType)&&["index","indexBorder"].includes(p==null?void 0:p.valueType)?!1:!(p==null?void 0:p.hideInDescriptions)}).sort(function(p,T){return T.order||p.order?(T.order||0)-(p.order||0):(T.index||0)-(p.index||0)})},Z=tt(D(),E.dataSource||{},(A==null?void 0:A.current)||E,O?C:void 0),c=Z.options,z=Z.children,N=O?De.ZP:nt,F=null;(w.title||w.tooltip||w.tip)&&(F=(0,I.jsx)(Fe.Z,{label:w.title,tooltip:w.tooltip||w.tip}));var ne=Q.getPrefixCls("pro-descriptions");return(0,I.jsx)(Ue.Z,{children:(0,I.jsx)(N,(0,i.Z)((0,i.Z)({form:(a=e.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},b),{},{onFinish:void 0,children:(0,I.jsx)(m.Z,(0,i.Z)((0,i.Z)({className:ne},w),{},{extra:w.extra?(0,I.jsxs)(G.Z,{children:[c,w.extra]}):c,title:F,children:z}))}),"form")})};Ae.Item=at;var rt=Ae},65515:function(){},52953:function(){},4914:function(we,xe,n){"use strict";n.d(xe,{K:function(){return ie},Z:function(){return Me}});var H=n(96156),X=n(28481),_=n(90484),Ce=n(94184),le=n.n(Ce),ze=n(50344),m=n(67294),Ee=n(53124),Ne=n(96159),G=n(24308),$e=function(s){var y=s.children;return y},Te=$e,i=n(22122);function t(f){return f!=null}var I=function(s){var y=s.itemPrefixCls,S=s.component,L=s.span,R=s.className,x=s.style,K=s.labelStyle,U=s.contentStyle,J=s.bordered,j=s.label,k=s.content,te=s.colon,q=S;if(J){var B;return m.createElement(q,{className:le()((B={},(0,H.Z)(B,"".concat(y,"-item-label"),t(j)),(0,H.Z)(B,"".concat(y,"-item-content"),t(k)),B),R),style:x,colSpan:L},t(j)&&m.createElement("span",{style:K},j),t(k)&&m.createElement("span",{style:U},k))}return m.createElement(q,{className:le()("".concat(y,"-item"),R),style:x,colSpan:L},m.createElement("div",{className:"".concat(y,"-item-container")},(j||j===0)&&m.createElement("span",{className:le()("".concat(y,"-item-label"),(0,H.Z)({},"".concat(y,"-item-no-colon"),!te)),style:K},j),(k||k===0)&&m.createElement("span",{className:le()("".concat(y,"-item-content")),style:U},k)))},he=I;function pe(f,s,y){var S=s.colon,L=s.prefixCls,R=s.bordered,x=y.component,K=y.type,U=y.showLabel,J=y.showContent,j=y.labelStyle,k=y.contentStyle;return f.map(function(te,q){var B=te.props,oe=B.label,se=B.children,de=B.prefixCls,ce=de===void 0?L:de,ue=B.className,M=B.style,fe=B.labelStyle,ve=B.contentStyle,Ze=B.span,ye=Ze===void 0?1:Ze,ee=te.key;return typeof x=="string"?m.createElement(he,{key:"".concat(K,"-").concat(ee||q),className:ue,style:M,labelStyle:(0,i.Z)((0,i.Z)({},j),fe),contentStyle:(0,i.Z)((0,i.Z)({},k),ve),span:ye,colon:S,component:x,itemPrefixCls:ce,bordered:R,label:U?oe:null,content:J?se:null}):[m.createElement(he,{key:"label-".concat(ee||q),className:ue,style:(0,i.Z)((0,i.Z)((0,i.Z)({},j),M),fe),span:1,colon:S,component:x[0],itemPrefixCls:ce,bordered:R,label:oe}),m.createElement(he,{key:"content-".concat(ee||q),className:ue,style:(0,i.Z)((0,i.Z)((0,i.Z)({},k),M),ve),span:ye*2-1,component:x[1],itemPrefixCls:ce,bordered:R,content:se})]})}var Pe=function(s){var y=m.useContext(ie),S=s.prefixCls,L=s.vertical,R=s.row,x=s.index,K=s.bordered;return L?m.createElement(m.Fragment,null,m.createElement("tr",{key:"label-".concat(x),className:"".concat(S,"-row")},pe(R,s,(0,i.Z)({component:"th",type:"label",showLabel:!0},y))),m.createElement("tr",{key:"content-".concat(x),className:"".concat(S,"-row")},pe(R,s,(0,i.Z)({component:"td",type:"content",showContent:!0},y)))):m.createElement("tr",{key:x,className:"".concat(S,"-row")},pe(R,s,(0,i.Z)({component:K?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},y)))},De=Pe,ie=m.createContext({}),Ie={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function Y(f,s){if(typeof f=="number")return f;if((0,_.Z)(f)==="object")for(var y=0;y<G.c4.length;y++){var S=G.c4[y];if(s[S]&&f[S]!==void 0)return f[S]||Ie[S]}return 3}function Re(f,s,y){var S=f;return(s===void 0||s>y)&&(S=(0,Ne.Tm)(f,{span:y})),S}function g(f,s){var y=(0,ze.Z)(f).filter(function(x){return x}),S=[],L=[],R=s;return y.forEach(function(x,K){var U,J=(U=x.props)===null||U===void 0?void 0:U.span,j=J||1;if(K===y.length-1){L.push(Re(x,J,R)),S.push(L);return}j<R?(R-=j,L.push(x)):(L.push(Re(x,j,R)),S.push(L),R=s,L=[])}),S}function me(f){var s,y=f.prefixCls,S=f.title,L=f.extra,R=f.column,x=R===void 0?Ie:R,K=f.colon,U=K===void 0?!0:K,J=f.bordered,j=f.layout,k=f.children,te=f.className,q=f.style,B=f.size,oe=f.labelStyle,se=f.contentStyle,de=m.useContext(Ee.E_),ce=de.getPrefixCls,ue=de.direction,M=ce("descriptions",y),fe=m.useState({}),ve=(0,X.Z)(fe,2),Ze=ve[0],ye=ve[1],ee=Y(x,Ze);m.useEffect(function(){var ae=G.ZP.subscribe(function(ge){(0,_.Z)(x)==="object"&&ye(ge)});return function(){G.ZP.unsubscribe(ae)}},[]);var Le=g(k,ee),Se=m.useMemo(function(){return{labelStyle:oe,contentStyle:se}},[oe,se]);return m.createElement(ie.Provider,{value:Se},m.createElement("div",{className:le()(M,(s={},(0,H.Z)(s,"".concat(M,"-").concat(B),B&&B!=="default"),(0,H.Z)(s,"".concat(M,"-bordered"),!!J),(0,H.Z)(s,"".concat(M,"-rtl"),ue==="rtl"),s),te),style:q},(S||L)&&m.createElement("div",{className:"".concat(M,"-header")},S&&m.createElement("div",{className:"".concat(M,"-title")},S),L&&m.createElement("div",{className:"".concat(M,"-extra")},L)),m.createElement("div",{className:"".concat(M,"-view")},m.createElement("table",null,m.createElement("tbody",null,Le.map(function(ae,ge){return m.createElement(De,{key:ge,index:ge,colon:U,prefixCls:M,vertical:j==="vertical",bordered:J,row:ae})}))))))}me.Item=Te;var Me=me},98858:function(we,xe,n){"use strict";var H=n(38663),X=n.n(H),_=n(52953),Ce=n.n(_)}}]);
|