Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

2 рядки
21 KiB

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