-
Notifications
You must be signed in to change notification settings - Fork 0
/
8097.async.js
1 lines (1 loc) · 17.5 KB
/
8097.async.js
1
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8097],{98097:function(e,t,n){n.d(t,{vY:function(){return ce}});var i=n(74902),r=n(74165),a=n(15861),l=n(91),s=n(1413),o=n(97937),d=n(63606),c=n(86548),u=n(952),x=n(56499),p=n(62435),v=n(21687),f=n(75302),m=n(4393),y=n(96074),h=n(42075),g=n(86074),Z=function(e){var t=e.padding;return(0,g.jsx)("div",{style:{padding:t||"0 24px"},children:(0,g.jsx)(y.Z,{style:{margin:0}})})},j={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},b=function(e){var t=e.size,n=e.active,i=(0,p.useMemo)((function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}}),[]),r=f.ZP.useBreakpoint()||i,a=Object.keys(r).filter((function(e){return!0===r[e]}))[0]||"md",l=void 0===t?j[a]||6:t,s=function(e){return 0===e?0:l>2?42:16};return(0,g.jsx)(m.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,g.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(l).fill(null).map((function(e,t){return(0,g.jsxs)("div",{style:{borderInlineStart:l>2&&1===t?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:s(t),flex:1,marginInlineEnd:0===t?16:0},children:[(0,g.jsx)(v.Z,{active:n,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,g.jsx)(v.Z.Button,{active:n,style:{height:48}})]},t)}))})})},w=function(e){var t=e.active;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(m.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,g.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,g.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,g.jsx)(v.Z,{active:t,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,g.jsx)(v.Z.Button,{active:t,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,g.jsx)(Z,{})]})},S=function(e){var t=e.size,n=e.active,i=void 0===n||n,r=e.actionButton;return(0,g.jsxs)(m.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(t).fill(null).map((function(e,t){return(0,g.jsx)(w,{active:!!i},t)})),!1!==r&&(0,g.jsx)(m.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,g.jsx)(v.Z.Button,{style:{width:102},active:i,size:"small"})})]})},k=function(e){var t=e.active;return(0,g.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,g.jsx)(v.Z,{paragraph:!1,title:{width:185}}),(0,g.jsx)(v.Z.Button,{active:t,size:"small"})]})},B=function(e){var t=e.active;return(0,g.jsx)(m.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,g.jsxs)(h.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,g.jsx)(v.Z.Button,{active:t,style:{width:200},size:"small"}),(0,g.jsxs)(h.Z,{children:[(0,g.jsx)(v.Z.Button,{active:t,size:"small",style:{width:120}}),(0,g.jsx)(v.Z.Button,{active:t,size:"small",style:{width:80}})]})]})})},E=function(e){var t=e.active,n=void 0===t||t,i=e.statistic,r=e.actionButton,a=e.toolbar,l=e.pageHeader,s=e.list,o=void 0===s?5:s;return(0,g.jsxs)("div",{style:{width:"100%"},children:[!1!==l&&(0,g.jsx)(k,{active:n}),!1!==i&&(0,g.jsx)(b,{size:i,active:n}),(!1!==a||!1!==o)&&(0,g.jsxs)(m.Z,{bordered:!1,bodyStyle:{padding:0},children:[!1!==a&&(0,g.jsx)(B,{active:n}),!1!==o&&(0,g.jsx)(S,{size:o,active:n,actionButton:r})]})]})},C={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},I=function(e){var t=e.active;return(0,g.jsxs)("div",{style:{marginBlockStart:32},children:[(0,g.jsx)(v.Z.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),(0,g.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,g.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,g.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,g.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},T=function(e){var t=e.size,n=e.active,i=(0,p.useMemo)((function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}}),[]),r=f.ZP.useBreakpoint()||i,a=Object.keys(r).filter((function(e){return!0===r[e]}))[0]||"md",l=void 0===t?C[a]||3:t;return(0,g.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(l).fill(null).map((function(e,t){return(0,g.jsxs)("div",{style:{flex:1,paddingInlineStart:0===t?0:24,paddingInlineEnd:t===l-1?0:24},children:[(0,g.jsx)(v.Z,{active:n,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,g.jsx)(v.Z,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,g.jsx)(v.Z,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}})]},t)}))})},P=function(e){var t=e.active,n=e.header,i=void 0!==n&&n,r=(0,p.useMemo)((function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}}),[]),a=f.ZP.useBreakpoint()||r,l=Object.keys(a).filter((function(e){return!0===a[e]}))[0]||"md",s=C[l]||3;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{style:{display:"flex",background:i?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(s).fill(null).map((function(e,n){return(0,g.jsx)("div",{style:{flex:1,paddingInlineStart:i&&0===n?0:20,paddingInlineEnd:32},children:(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})},n)})),(0,g.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})})]}),(0,g.jsx)(Z,{padding:"0px 0px"})]})},R=function(e){var t=e.active,n=e.size,i=void 0===n?4:n;return(0,g.jsxs)(m.Z,{bordered:!1,children:[(0,g.jsx)(v.Z.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),(0,g.jsx)(P,{header:!0,active:t}),new Array(i).fill(null).map((function(e,n){return(0,g.jsx)(P,{active:t},n)})),(0,g.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,g.jsx)(v.Z,{active:t,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},z=function(e){var t=e.active;return(0,g.jsxs)(m.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,g.jsx)(v.Z.Button,{active:t,size:"small",style:{width:100,marginBlockEnd:16}}),(0,g.jsx)(T,{active:t}),(0,g.jsx)(I,{active:t})]})},D=function(e){var t=e.active,n=void 0===t||t,i=e.pageHeader,r=e.list;return(0,g.jsxs)("div",{style:{width:"100%"},children:[!1!==i&&(0,g.jsx)(k,{active:n}),(0,g.jsx)(z,{active:n}),!1!==r&&(0,g.jsx)(Z,{}),!1!==r&&(0,g.jsx)(R,{active:n,size:r})]})},F=function(e){var t=e.active,n=void 0===t||t,i=e.pageHeader;return(0,g.jsxs)("div",{style:{width:"100%"},children:[!1!==i&&(0,g.jsx)(k,{active:n}),(0,g.jsx)(m.Z,{children:(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,g.jsx)(v.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,g.jsx)(v.Z.Button,{active:n,style:{width:214,marginBlockEnd:8}}),(0,g.jsx)(v.Z.Button,{active:n,style:{width:328},size:"small"}),(0,g.jsxs)(h.Z,{style:{marginBlockStart:24},children:[(0,g.jsx)(v.Z.Button,{active:n,style:{width:116}}),(0,g.jsx)(v.Z.Button,{active:n,style:{width:116}})]})]})})]})},M=["type"],q=function(e){var t=e.type,n=void 0===t?"list":t,i=(0,l.Z)(e,M);return"result"===n?(0,g.jsx)(F,(0,s.Z)({},i)):"descriptions"===n?(0,g.jsx)(D,(0,s.Z)({},i)):(0,g.jsx)(E,(0,s.Z)({},i))},A=n(2026),L=n(90081),K=n(1977),N=n(77398),O=n(81736),H=n(53914),V=n(97685),W=n(10915),U=n(45360),X=n(21770),G=n(86671);function Y(e){var t=e.type||"single",n=(0,W.YB)(),i=(0,X.Z)([],{value:e.editableKeys,onChange:e.onChange?function(t){var n;null==e||null===(n=e.onChange)||void 0===n||n.call(e,t,e.dataSource)}:void 0}),l=(0,V.Z)(i,2),o=l[0],d=l[1],c=(0,p.useMemo)((function(){var e="single"===t?null==o?void 0:o.slice(0,1):o;return new Set(e)}),[(o||[]).join(","),t]),u=(0,p.useCallback)((function(e){return!(null==o||!o.includes((0,G.sN)(e)))}),[(o||[]).join(",")]),x=function(e){return c.delete((0,G.sN)(e)),d(Array.from(c)),!0},v=function(){var t=(0,a.Z)((0,r.Z)().mark((function t(n,i,a,l){var s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==e||null===(s=e.onCancel)||void 0===s?void 0:s.call(e,n,i,a,l);case 2:if(!1!==t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",!0);case 6:case"end":return t.stop()}}),t)})));return function(e,n,i,r){return t.apply(this,arguments)}}(),f=function(){var t=(0,a.Z)((0,r.Z)().mark((function t(n,i,a){var l,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==e||null===(l=e.onSave)||void 0===l?void 0:l.call(e,n,i,a);case 2:if(!1!==t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.next=7,x(n);case 7:return o={data:e.dataSource,row:i,key:n,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource((d=void 0,c=void 0,d=(r=o).data,c=r.row,(0,s.Z)((0,s.Z)({},d),c))),t.abrupt("return",!0);case 10:case"end":return t.stop()}var r,d,c}),t)})));return function(e,n,i){return t.apply(this,arguments)}}(),m=n.getMessage("editableTable.action.save","保存"),y=n.getMessage("editableTable.action.delete","删除"),h=n.getMessage("editableTable.action.cancel","取消"),g=(0,p.useCallback)((function(t,i){var r=(0,s.Z)({recordKey:t,cancelEditable:x,onCancel:v,onSave:f,editableKeys:o,setEditableRowKeys:d,saveText:m,cancelText:h,deleteText:y,deletePopconfirmMessage:"".concat(n.getMessage("deleteThisLine","删除此项"),"?"),editorType:"Map"},i),a=(0,G.aX)(e.dataSource,r);return e.actionRender?e.actionRender(e.dataSource,r,{save:a.save,delete:a.delete,cancel:a.cancel}):[a.save,a.delete,a.cancel]}),[o&&o.join(","),e.dataSource]);return{editableKeys:o,setEditableRowKeys:d,isEditable:u,actionRender:g,startEditable:function(i){return c.size>0&&"single"===t?(r=e.onlyOneLineEditorAlertMessage||n.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行"),(U.ZP.warn||U.ZP.warning)(r),!1):(c.add((0,G.sN)(i)),d(Array.from(c)),!0);var r},cancelEditable:x}}var J=n(78164),Q=n(67159),$=n(26412),_=n(28459),ee=n(50344),te=n(88306),ne=function(e,t){var n=t||{},l=n.onRequestError,s=n.effects,o=n.manual,d=n.dataSource,c=n.defaultDataSource,u=n.onDataSourceChange,x=(0,X.Z)(c,{value:d,onChange:u}),v=(0,V.Z)(x,2),f=v[0],m=v[1],y=(0,X.Z)(null==t?void 0:t.loading,{value:null==t?void 0:t.loading,onChange:null==t?void 0:t.onLoadingChange}),h=(0,V.Z)(y,2),g=h[0],Z=h[1],j=function(e){m(e),Z(!1)},b=function(){var t=(0,a.Z)((0,r.Z)().mark((function t(){var n,i;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!g){t.next=2;break}return t.abrupt("return");case 2:return Z(!0),t.prev=3,t.next=6,e();case 6:if(t.t0=t.sent,t.t0){t.next=9;break}t.t0={};case 9:n=t.t0,i=n.data,!1!==n.success&&j(i),t.next=23;break;case 15:if(t.prev=15,t.t1=t.catch(3),void 0!==l){t.next=21;break}throw new Error(t.t1);case 21:l(t.t1);case 22:Z(!1);case 23:return t.prev=23,Z(!1),t.finish(23);case 26:case"end":return t.stop()}}),t,null,[[3,15,23,26]])})));return function(){return t.apply(this,arguments)}}();return(0,p.useEffect)((function(){o||b()}),[].concat((0,i.Z)(s||[]),[o])),{dataSource:f,setDataSource:m,loading:g,reload:function(){return b()}}},ie=n(98082),re=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],ae=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],le=function(e){var t,n=e.valueEnum,i=e.action,r=e.index,a=e.text,l=e.entity,c=e.mode,p=e.render,v=e.editableUtils,f=e.valueType,m=e.plain,y=e.dataIndex,h=e.request,Z=e.renderFormItem,j=e.params,b=u.ZP.useFormInstance(),w=(null===(t=ie.Ow.useToken)||void 0===t?void 0:t.call(ie.Ow)).token,S={text:a,valueEnum:n,mode:c||"read",proFieldProps:{emptyText:e.emptyText,render:p?function(t){return null==p?void 0:p(t,l,r,i,(0,s.Z)((0,s.Z)({},e),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:f,request:h,params:j,plain:m};if("read"===c||!c||"option"===f){var k=(0,A.w)(e.fieldProps,void 0,(0,s.Z)((0,s.Z)({},e),{},{rowKey:y,isEditable:!1}));return(0,g.jsx)(x.Z,(0,s.Z)((0,s.Z)({name:y},S),{},{fieldProps:k}))}return(0,g.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:function(){var t,n=(0,A.w)(e.formItemProps,b,(0,s.Z)((0,s.Z)({},e),{},{rowKey:y,isEditable:!0})),i=(0,A.w)(e.fieldProps,b,(0,s.Z)((0,s.Z)({},e),{},{rowKey:y,isEditable:!0}));return(0,g.jsxs)("div",{style:{display:"flex",gap:w.marginXS,alignItems:"baseline"},children:[(0,g.jsx)(L.U,(0,s.Z)((0,s.Z)({name:y},n),{},{style:(0,s.Z)({margin:0},(null==n?void 0:n.style)||{}),initialValue:a||(null==n?void 0:n.initialValue),children:(0,g.jsx)(x.Z,(0,s.Z)((0,s.Z)({},S),{},{proFieldProps:(0,s.Z)({},S.proFieldProps),renderFormItem:Z?function(){return null==Z?void 0:Z((0,s.Z)((0,s.Z)({},e),{},{type:"descriptions"}),{isEditable:!0,recordKey:y,record:b.getFieldValue([y].flat(1)),defaultRender:function(){return(0,g.jsx)(x.Z,(0,s.Z)((0,s.Z)({},S),{},{fieldProps:i}))},type:"descriptions"},b)}:void 0,fieldProps:i}))})),(0,g.jsx)("div",{style:{display:"flex",maxHeight:w.controlHeight,alignItems:"center",gap:w.marginXS},children:null==v||null===(t=v.actionRender)||void 0===t?void 0:t.call(v,y||r,{cancelText:(0,g.jsx)(o.Z,{}),saveText:(0,g.jsx)(d.Z,{}),deleteText:!1})})]})}()})},se=function(e,t,n,i,r){var a,o=[],d=(0,K.n)(Q.Z,"5.8.0")>=0,u=null==e||null===(a=e.map)||void 0===a?void 0:a.call(e,(function(e,a){var u,x,v;if(p.isValidElement(e))return d?{children:e}:e;var f=e,m=(f.valueEnum,f.render,f.renderText),y=f.mode,Z=(f.plain,f.dataIndex),j=(f.request,f.params,f.editable),b=(0,l.Z)(f,re),w=null!==(u=function(e,t){var n=e.dataIndex;if(n){var i=Array.isArray(n)?(0,te.Z)(t,n):t[n];if(void 0!==i||null!==i)return i}return e.children}(e,t))&&void 0!==u?u:b.children,S=m?m(w,t,a,n):w,k="function"==typeof b.title?b.title(e,"descriptions",null):b.title,B="function"==typeof b.valueType?b.valueType(t||{},"descriptions"):b.valueType,E=null==i?void 0:i.isEditable(Z||a),C=y||E?"edit":"read",I=i&&"read"===C&&!1!==j&&!1!==(null==j?void 0:j(S,t,a)),T=I?h.Z:p.Fragment,P="edit"===C?S:(0,N.X)(S,e,S),R=d&&"option"!==B?(0,s.Z)((0,s.Z)({},b),{},{key:b.key||(null===(x=b.label)||void 0===x?void 0:x.toString())||a,label:(k||b.label||b.tooltip||b.tip)&&(0,g.jsx)(O.G,{label:k||b.label,tooltip:b.tooltip||b.tip,ellipsis:e.ellipsis}),children:(0,g.jsxs)(T,{children:[(0,g.jsx)(le,(0,s.Z)((0,s.Z)({},e),{},{dataIndex:e.dataIndex||a,mode:C,text:P,valueType:B,entity:t,index:a,emptyText:r,action:n,editableUtils:i})),I&&(0,g.jsx)(c.Z,{onClick:function(){null==i||i.startEditable(Z||a)}})]})}):(0,p.createElement)($.Z.Item,(0,s.Z)((0,s.Z)({},b),{},{key:b.key||(null===(v=b.label)||void 0===v?void 0:v.toString())||a,label:(k||b.label||b.tooltip||b.tip)&&(0,g.jsx)(O.G,{label:k||b.label,tooltip:b.tooltip||b.tip,ellipsis:e.ellipsis})}),(0,g.jsxs)(T,{children:[(0,g.jsx)(le,(0,s.Z)((0,s.Z)({},e),{},{dataIndex:e.dataIndex||a,mode:C,text:P,valueType:B,entity:t,index:a,action:n,editableUtils:i})),I&&"option"!==B&&(0,g.jsx)(c.Z,{onClick:function(){null==i||i.startEditable(Z||a)}})]}));return"option"===B?(o.push(R),null):R})).filter((function(e){return e}));return{options:null!=o&&o.length?o:null,children:u}},oe=function(e){return(0,g.jsx)($.Z.Item,(0,s.Z)((0,s.Z)({},e),{},{children:e.children}))};oe.displayName="ProDescriptionsItem";var de=function(e){return e.children},ce=function(e){var t,n=e.request,o=e.columns,d=e.params,c=e.dataSource,x=e.onDataSourceChange,v=e.formProps,f=e.editable,m=e.loading,y=e.onLoadingChange,Z=e.actionRef,j=e.onRequestError,b=(0,l.Z)(e,ae),w=(0,p.useContext)(_.ZP.ConfigContext),S=ne((0,a.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=6;break}return e.next=3,n(d||{});case 3:e.t0=e.sent,e.next=7;break;case 6:e.t0={data:{}};case 7:return t=e.t0,e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)}))),{onRequestError:j,effects:[(0,H.ZP)(d)],manual:!n,dataSource:c,loading:m,onLoadingChange:y,onDataSourceChange:x}),k=Y((0,s.Z)((0,s.Z)({},e.editable),{},{childrenColumnName:void 0,dataSource:S.dataSource,setDataSource:S.setDataSource}));if((0,p.useEffect)((function(){Z&&(Z.current=(0,s.Z)({reload:S.reload},k))}),[S,Z,k]),S.loading||void 0===S.loading&&n)return(0,g.jsx)(q,{type:"descriptions",list:!1,pageHeader:!1});var B,E=se((B=(0,ee.Z)(e.children).filter(Boolean).map((function(e){if(!p.isValidElement(e))return e;var t=null==e?void 0:e.props,n=t.valueEnum,i=t.valueType,r=t.dataIndex,a=t.ellipsis,l=t.copyable,o=t.request;return i||n||r||o||a||l||"ProDescriptionsItem"===e.type.displayName?(0,s.Z)((0,s.Z)({},null==e?void 0:e.props),{},{entity:c}):e})),[].concat((0,i.Z)(o||[]),(0,i.Z)(B)).filter((function(e){return!(!e||null!=e&&e.valueType&&["index","indexBorder"].includes(null==e?void 0:e.valueType)||null!=e&&e.hideInDescriptions)})).sort((function(e,t){return t.order||e.order?(t.order||0)-(e.order||0):(t.index||0)-(e.index||0)}))),S.dataSource||{},(null==Z?void 0:Z.current)||S,f?k:void 0,e.emptyText),C=E.options,I=E.children,T=f?u.ZP:de,P=null;(b.title||b.tooltip||b.tip)&&(P=(0,g.jsx)(O.G,{label:b.title,tooltip:b.tooltip||b.tip}));var R=w.getPrefixCls("pro-descriptions"),z=(0,K.n)(Q.Z,"5.8.0")>=0;return(0,g.jsx)(J.S,{children:(0,g.jsx)(T,(0,s.Z)((0,s.Z)({form:null===(t=e.editable)||void 0===t?void 0:t.form,component:!1,submitter:!1},v),{},{onFinish:void 0,children:(0,g.jsx)($.Z,(0,s.Z)((0,s.Z)({className:R},b),{},{contentStyle:{minWidth:0},extra:b.extra?(0,g.jsxs)(h.Z,{children:[C,b.extra]}):C,title:P,items:z?I:void 0,children:z?null:I}))}),"form")})};ce.Item=oe}}]);