You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
182 KiB
98 lines
182 KiB
6 months ago
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[335],{82947:function(bn,Ne){"use strict";var R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};Ne.Z=R},34994:function(bn,Ne,R){"use strict";R.d(Ne,{A:function(){return He}});var q=R(1413),ce=R(8232),Re=R(67294),se=R(78733),D=R(9105),xe=R(4942),i=R(97685),ge=R(87462),ln=R(50756),mn=R(46976),tn=function(Ee,rn){return Re.createElement(mn.Z,(0,ge.Z)({},Ee,{ref:rn,icon:ln.Z}))},v=Re.forwardRef(tn),we=v,je=R(21770),Ue=R(48874),Me=R(28459),Ve=R(42075),Sn=R(93967),nt=R.n(Sn),$e=R(66758),Be=R(2514),Nt=R(98082),Fe=function(Ee){return(0,xe.Z)({},Ee.componentCls,{"&-title":{marginBlockEnd:Ee.marginXL,fontWeight:"bold"},"&-container":(0,xe.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(Ee.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({display:"block",width:"100%"},"".concat(Ee.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(Ee.componentCls,"-container"),{paddingInlineStart:16}),"".concat(Ee.antCls,"-space-item,").concat(Ee.antCls,"-form-item"),{width:"100%"}),"".concat(Ee.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function o(Ke){return(0,Nt.Xj)("ProFormGroup",function(Ee){var rn=(0,q.Z)((0,q.Z)({},Ee),{},{componentCls:".".concat(Ke)});return[Fe(rn)]})}var Le=R(85893),tt=Re.forwardRef(function(Ke,Ee){var rn=Re.useContext($e.Z),zn=rn.groupProps,de=(0,q.Z)((0,q.Z)({},zn),Ke),Te=de.children,Rn=de.collapsible,pn=de.defaultCollapsed,Dn=de.style,Dt=de.labelLayout,Bn=de.title,gn=Bn===void 0?Ke.label:Bn,rt=de.tooltip,An=de.align,at=An===void 0?"start":An,ot=de.direction,wn=de.size,lt=wn===void 0?32:wn,Bt=de.titleStyle,Kn=de.titleRender,an=de.spaceProps,En=de.extra,it=de.autoFocus,At=(0,je.Z)(function(){return pn||!1},{value:Ke.collapsed,onChange:Ke.onCollapse}),st=(0,i.Z)(At,2),ct=st[0],ut=st[1],Kt=(0,Re.useContext)(Me.ZP.ConfigContext),Wt=Kt.getPrefixCls,We=(0,Be.zx)(Ke),Wn=We.ColWrapper,Xe=We.RowWrapper,Ze=Wt("pro-form-group"),Vn=o(Ze),dt=Vn.wrapSSR,on=Vn.hashId,Cn=Rn&&(0,Le.jsx)(we,{style:{marginInlineEnd:8},rotate:ct?void 0:90}),Hn=(0,Le.jsx)(Ue.G,{label:Cn?(0,Le.jsxs)("div",{children:[Cn,gn]}):gn,tooltip:rt}),ft=(0,Re.useCallback)(function(sn){var Zn=sn.children;return(0,Le.jsx)(Ve.Z,(0,q.Z)((0,q.Z)({},an),{},{className:nt()("".concat(Ze,"-container ").concat(on),an==null?void 0:an.className),size:lt,align:at,direction:ot,style:(0,q.Z)({rowGap:0},an==null?void 0:an.style),children:Zn}))},[at,Ze,ot,on,lt,an]),vt=Kn?Kn(Hn,Ke):Hn,Vt=(0,Re.useMemo)(function(){var sn=[],Zn=Re.Children.toArray(Te).map(function(ke,Ht){var Un;return Re.isValidElement(ke)&&ke!==null&&ke!==void 0&&(Un=ke.props)!==null&&Un!==void 0&&Un.hidden?(sn.push(ke),null):Ht===0&&Re.isValidElement(ke)&&it?Re.cloneElement(ke,(0,q.Z)((0,q.Z)({},ke.props),{},{autoFocus:it})):ke});return[(0,Le.jsx)(Xe,{Wrapper:ft,children:Zn},"children"),sn.length>0?(0,Le.jsx)("div",{style:{display:"none"},children:sn}):null]},[Te,Xe,ft,it]),In=(0,i.Z)(Vt,2),Ae=In[0],xn=In[1];return dt((0,Le.jsx)(Wn,{children:(0,Le.jsxs)("div",{className:nt()(Ze,on,(0,xe.Z)({},"".concat(Ze,"-twoLine"),Dt==="twoLine")),style:Dn,ref:Ee,children:[xn,(gn||rt||En)&&(0,Le.jsx)(
|
||
|
https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(C.add(O),b(Array.from(C)),(E==null?void 0:E.newRecordType)==="dataSource"||n.tableName){var B,U={data:n.dataSource,getRowKey:n.getRowKey,row:(0,i.Z)((0,i.Z)({},N),{},{map_row_parentKey:E!=null&&E.parentKey?(B=Ae(E==null?void 0:E.parentKey))===null||B===void 0?void 0:B.toString():void 0}),key:O,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(xn(U,(E==null?void 0:E.position)==="top"?"top":"update"))}else a({defaultValue:N,options:(0,i.Z)((0,i.Z)({},E),{},{recordKey:O})});return!0}),Z=(0,$e.YB)(),F=(n==null?void 0:n.saveText)||Z.getMessage("editableTable.action.save","\u4FDD\u5B58"),J=(n==null?void 0:n.deleteText)||Z.getMessage("editableTable.action.delete","\u5220\u9664"),M=(n==null?void 0:n.cancelText)||Z.getMessage("editableTable.action.cancel","\u53D6\u6D88"),y=(0,Ze.J)(function(){var N=(0,ce.Z)((0,q.Z)().mark(function E(O,B,U,Q){var V,G,L,A,ee,ae,ve;return(0,q.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,n==null||(V=n.onSave)===null||V===void 0?void 0:V.call(n,O,B,U,Q);case 2:return A=ie.sent,ie.next=5,H(O);case 5:if(ee=Q||d.current||{},ae=ee.options,!(!(ae!=null&&ae.parentKey)&&(ae==null?void 0:ae.recordKey)===O)){ie.next=9;break}return(ae==null?void 0:ae.position)==="top"?n.setDataSource([B].concat((0,xe.Z)(n.dataSource))):n.setDataSource([].concat((0,xe.Z)(n.dataSource),[B])),ie.abrupt("return",A);case 9:return ve={data:n.dataSource,getRowKey:n.getRowKey,row:ae?(0,i.Z)((0,i.Z)({},B),{},{map_row_parentKey:(G=Ae((L=ae==null?void 0:ae.parentKey)!==null&&L!==void 0?L:""))===null||G===void 0?void 0:G.toString()}):B,key:O,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(xn(ve,(ae==null?void 0:ae.position)==="top"?"top":"update")),ie.next=13,H(O);case 13:return ie.abrupt("return",A);case 14:case"end":return ie.stop()}},E)}));return function(E,O,B,U){return N.apply(this,arguments)}}()),P=(0,Ze.J)(function(){var N=(0,ce.Z)((0,q.Z)().mark(function E(O,B){var U,Q,V;return(0,q.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return Q={data:n.dataSource,getRowKey:n.getRowKey,row:B,key:O,childrenColumnName:n.childrenColumnName||"children"},L.next=3,n==null||(U=n.onDelete)===null||U===void 0?void 0:U.call(n,O,B);case 3:return V=L.sent,L.next=6,H(O,!1);case 6:return n.setDataSource(xn(Q,"delete")),L.abrupt("return",V);case 8:case"end":return L.stop()}},E)}));return function(E,O){return N.apply(this,arguments)}}()),z=(0,Ze.J)(function(){var N=(0,ce.Z)((0,q.Z)().mark(function E(O,B,U,Q){var V,G;return(0,q.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,n==null||(V=n.onCancel)===null||V===void 0?void 0:V.call(n,O,B,U,Q);case 2:return G=A.sent,A.abrupt("return",G);case 4:case"end":return A.stop()}},E)}));return function(E,O,B,U){return N.apply(this,arguments)}}()),k=function(E){var O=n.getRowKey(E,E.index),B={saveText:F,cancelText:M,deleteText:J,addEditRecord:w,recordKey:O,cancelEditable:H,index:E.index,tableName:n.tableName,newLineConfig:t,onCancel:z,onDelete:P,onSave:y,editableKeys:h,setEditableRowKeys:b,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(Z.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},U=Ht(E,B);return n.tableName?K.current.set(s.current.get(Ae(O))||Ae(O),U.saveRef):K.current.set(Ae(O),U.saveRef),n.actionRender?n.actionRender(E,B,{save:U.save,delete:U.delete,cancel:U.cancel}):[U.save,U.delete,U.cancel]};return{editableKeys:h,setEditableRowKeys:b,isEditable:j,actionRender:k,startEditable:$,cancelEditable:H,addEditRecord:w,saveEditable:I,newLineRecord:t,preEditableKeys:S,onValuesChange:T,getRealIndex:n.getRealIndex}}var Qe=R(51812),Tn=R(53914),ya=R(78164),hn=R(72051),qe=R(28459),ba=R(72378),mt=R.n(ba),Jc=function(e){return e!=null};function Sa(n,e,r){var t,a;if(n===!1)return!1;var c=e.total,l=e.current,s=e.pageSize,d=e.setPageInfo,u=(0,Re.Z)(n)==="object"?n:{};return(0,i.Z)((0,
|
||
|
.anticon {
|
||
|
display: inline-flex;
|
||
|
align-items: center;
|
||
|
color: inherit;
|
||
|
font-style: normal;
|
||
|
line-height: 0;
|
||
|
text-align: center;
|
||
|
text-transform: none;
|
||
|
vertical-align: -0.125em;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
}
|
||
|
|
||
|
.anticon > * {
|
||
|
line-height: 1;
|
||
|
}
|
||
|
|
||
|
.anticon svg {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
.anticon::before {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.anticon .anticon-icon {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.anticon[tabindex] {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.anticon-spin::before,
|
||
|
.anticon-spin {
|
||
|
display: inline-block;
|
||
|
-webkit-animation: loadingCircle 1s infinite linear;
|
||
|
animation: loadingCircle 1s infinite linear;
|
||
|
}
|
||
|
|
||
|
@-webkit-keyframes loadingCircle {
|
||
|
100% {
|
||
|
-webkit-transform: rotate(360deg);
|
||
|
transform: rotate(360deg);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes loadingCircle {
|
||
|
100% {
|
||
|
-webkit-transform: rotate(360deg);
|
||
|
transform: rotate(360deg);
|
||
|
}
|
||
|
}
|
||
|
`,Bl=function(e){var r=(0,o.useContext)(Wr),t=r.csp,a=r.prefixCls,c=Dl;a&&(c=c.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,s=(0,Nl.A)(l);(0,Ml.hq)(c,"@ant-design-icons",{prepend:!0,csp:t,attachTo:s})},[])},Al=["icon","className","onClick","style","primaryColor","secondaryColor"],kn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Kl(n){var e=n.primaryColor,r=n.secondaryColor;kn.primaryColor=e,kn.secondaryColor=r||Ur(e),kn.calculated=!!r}function Wl(){return(0,i.Z)({},kn)}var wt=function(e){var r=e.icon,t=e.className,a=e.onClick,c=e.style,l=e.primaryColor,s=e.secondaryColor,d=(0,ge.Z)(e,Al),u=o.useRef(),f=kn;if(l&&(f={primaryColor:l,secondaryColor:s||Ur(l)}),Bl(u),zl(Vr(r),"icon should be icon definiton, but got ".concat(r)),!Vr(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=(0,i.Z)((0,i.Z)({},p),{},{icon:p.icon(f.primaryColor,f.secondaryColor)})),Qt(p.icon,"svg-".concat(p.name),(0,i.Z)((0,i.Z)({className:t,onClick:a,style:c,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:u}))};wt.displayName="IconReact",wt.getTwoToneColors=Wl,wt.setTwoToneColors=Kl;var qt=wt;function Gr(n){var e=Xr(n),r=(0,se.Z)(e,2),t=r[0],a=r[1];return qt.setTwoToneColors({primaryColor:t,secondaryColor:a})}function Vl(){var n=qt.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var Hl=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gr(Ol.primary);var Et=o.forwardRef(function(n,e){var r=n.className,t=n.icon,a=n.spin,c=n.rotate,l=n.tabIndex,s=n.onClick,d=n.twoToneColor,u=(0,ge.Z)(n,Hl),f=o.useContext(Wr),p=f.prefixCls,g=p===void 0?"anticon":p,x=f.rootClassName,m=de()(x,g,(0,D.Z)((0,D.Z)({},"".concat(g,"-").concat(t.name),!!t.name),"".concat(g,"-spin"),!!a||t.name==="loading"),r),h=l;h===void 0&&s&&(h=-1);var b=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,C=Xr(d),S=(0,se.Z)(C,2),j=S[0],$=S[1];return o.createElement("span",(0,Fe.Z)({role:"img","aria-label":t.name},u,{ref:e,tabIndex:h,onClick:s,className:m}),o.createElement(qt,{icon:t,primaryColor:j,secondaryColor:$,style:b}))});Et.displayName="AntdIcon",Et.getTwoToneColor=Vl,Et.setTwoToneColor=Gr;var dn=Et,Ul=function(e,r){return o.createElement(dn,(0,Fe.Z)({},e,{ref:r,icon:El.Z}))},Xl=o.forwardRef(Ul),Gl=Xl,Jl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},Yl=Jl,kl=function(e,r){return o.createElement(dn,(0,Fe.Z)({},e,{ref:r,icon:Yl}))},Ql=o.forwardRef(kl),ql=Ql,_l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},ei=_l,ni=function(e,r){return o.createElement(dn,(0,Fe.Z)({},e,{ref:r,icon:ei}))},ti=o.forwardRef(ni),ri=ti,ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},oi=ai,li=function(e,r){return o.createElement(dn,(0,Fe.Z)({},e,{ref:r,icon:oi}))},ii=o.forwardRef(li),si=ii,ci
|
||
|
h${t}&,
|
||
|
div&-h${t},
|
||
|
div&-h${t} > textarea,
|
||
|
h${t}
|
||
|
`]=Pi(n[`fontSizeHeading${t}`],n[`lineHeightHeading${t}`],n.colorTextHeading,n)}),r},Fi=n=>{const{componentCls:e}=n;return{"a&, a":Object.assign(Object.assign({},(0,qr.N)(n)),{textDecoration:n.linkDecoration,"&:active, &:hover":{textDecoration:n.linkHoverDecoration},[`&[disabled], &${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:n.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Oi=n=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:n.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:n.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ti.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:n.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ji=n=>{const{componentCls:e,paddingSM:r}=n,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:n.calc(n.paddingSM).mul(-1).equal(),marginTop:n.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,me.bf)(t)})`},[`${e}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:n.calc(n.marginXS).add(2).equal(),insetBlockEnd:n.marginXS,color:n.colorTextDescription,fontWeight:"normal",fontSize:n.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Mi=n=>({[`${n.componentCls}-copy-success`]:{[`
|
||
|
&,
|
||
|
&:hover,
|
||
|
&:focus`]:{color:n.colorSuccess}},[`${n.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ni=()=>({[`
|
||
|
a&-ellipsis,
|
||
|
span&-ellipsis
|
||
|
`]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Li=n=>{const{componentCls:e,titleMarginTop:r}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.colorText,wordBreak:"break-word",lineHeight:n.lineHeight,[`&${e}-secondary`]:{color:n.colorTextDescription},[`&${e}-success`]:{color:n.colorSuccess},[`&${e}-warning`]:{color:n.colorWarning},[`&${e}-danger`]:{color:n.colorError,"a&:active, a&:focus":{color:n.colorErrorActive},"a&:hover":{color:n.colorErrorHover}},[`&${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
|
||
|
div&,
|
||
|
p
|
||
|
`]:{marginBottom:"1em"}},$i(n)),{[`
|
||
|
& + h1${e},
|
||
|
& + h2${e},
|
||
|
& + h3${e},
|
||
|
& + h4${e},
|
||
|
& + h5${e}
|
||
|
`]:{marginTop:r},[`
|
||
|
div,
|
||
|
ul,
|
||
|
li,
|
||
|
p,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5`]:{[`
|
||
|
+ h1,
|
||
|
+ h2,
|
||
|
+ h3,
|
||
|
+ h4,
|
||
|
+ h5
|
||
|
`]:{marginTop:r}}}),Oi(n)),Fi(n)),{[`
|
||
|
${e}-expand,
|
||
|
${e}-collapse,
|
||
|
${e}-edit,
|
||
|
${e}-copy
|
||
|
`]:Object.assign(Object.assign({},(0,qr.N)(n)),{marginInlineStart:n.marginXXS})}),ji(n)),Mi(n)),Ni()),{"&-rtl":{direction:"rtl"}})}},zi=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var _r=(0,wn.I$)("Typography",n=>[Li(n)],zi),Di=n=>{const{prefixCls:e,"aria-label":r,className:t,style:a,direction:c,maxLength:l,autoSize:s=!0,value:d,onSave:u,onCancel:f,onEnd:p,component:g,enterIcon:x=o.createElement(wi,null)}=n,m=o.useRef(null),h=o.useRef(!1),b=o.useRef(),[C,S]=o.useState(d);o.useEffect(()=>{S(d)},[d]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:y}=m.current.resizableTextArea;y.focus();const{length:P}=y.value;y.setSelectionRange(P,P)}},[]);const j=y=>{let{target:P}=y;S(P.value.replace(/[\n\r]/g,""))},$=()=>{h.current=!0},H=()=>{h.current=!1},W=y=>{let{keyCode:P}=y;h.current||(b.current=P)},T=()=>{u(C.trim())},K=y=>{let{keyCode:P,ctrlKey:z,altKey:k,metaKey:N,shiftKey:E}=y;b.current===P&&!h.current&&!z&&!k&&!N&&!E&&(P===$n.Z.ENTER?(T(),p==null||p()):P===$n.Z.ESC&&f())},I=()=>{T()},w=g?`${e}-${g}`:"",[Z,F,J]=_r(e),M=de()(e,`${e}-edit-content`,{[`${e}-rtl`]:c==="rtl"},t,w,F,J);return Z(o.createElement("div",{className:M,style:a},o.createElement(Ii.Z,{ref:m,maxLength:l,value:C,onChange:j,onKeyDown:W,onKeyUp:K,onCompositionStart:$,onCompositionEnd:H,onBlur:I,"aria-label":r,rows:1,autoSize:s}),x!==null?(0,Ei.Tm)(x,{className:`${e}-edit-content-confirm`}):null))},Bi=R(20640),Ai=R.n(Bi),Ki=R(56790),Wi=function(n,e,r,t){function a(c){return c instanceof r?c:new r(function(l){l(c)})}return new(r||(r=Promise))(function(c,l){function s(f){try{u(t.next(f))}catch(p){l(p)}}function d(f){try{u(t.throw(f))}catch(p){l(p)}}function u(f){f.done?c(f.value):a(f.value).then(s,d)}u((t=t.apply(n,e||[])).next())})},Vi=n=>{let{copyConfig:e,children:r}=n;const[t,a]=o.useState(!1),[c,l]=o.useState(!1),s=o.useRef(null),d=()=>{s.current&&clearTimeout(s.current)},u={};e.format&&(u.format=e.format),o.useEffect(()=>d,[]);const f=(0,Ki.zX)(p=>Wi(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const x=typeof e.text=="function"?yield e.text():e.text;Ai()(x||String(r)||"",u),l(!1),a(!0),d(),s.current=setTimeout(()=>{a(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,p)}catch(x){throw l(!1),x}}));return{copied:t,copyLoading:c,onClick:f}};function er(n,e){return o.useMemo(()=>{const r=!!n;return[r,Object.assign(Object.assign({},e),r&&typeof n=="object"?n:null)]},[n])}var Hi=(n,e)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?n():r.current=!0},e)},Ui=n=>{const e=(0,o.useRef)();return(0,o.useEffect)(()=>{e.current=n}),e.current},Xi=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]]);return r},ea=o.forwardRef((n,e)=>{const{prefixCls:r,component:t="article",className:a,rootClassName:c,setContentRef:l,children:s,direction:d,style:u}=n,f=Xi(n,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:g,typography:x}=o.useContext(pn.E_),m=d!=null?d:g;let h=e;l&&(h=(0,Yr.sQ)(e,l));const b=p("typography",r),[C,S,j]=_r(b),$=de()(b,x==null?void 0:x.className,{[`${b}-rtl`]:m==="rtl"},a,c,S,j),H=Object.assign(Object.assign({},x==null?void 0:x.style),u);return C(o.createElement(t,Object.assign({className:$,style:H,ref:h},f),s))}),Gi=R(48820),Ji=function(e,r){return o.createElement(_t.Z,(0,Fe.Z)({},e,{ref:r,icon:Gi.Z}))},Yi=o.forwardRef(Ji),ki=Yi,Qi=R(19267);function na(n){return n===!1?[!1,!1]:Array.isArray(n)?n:[n]}function It(n,e,r){return n===!0||n===void 0?e:n||r&&e}var qi=n=>{const{prefixCls:e,copied:r,locale:t,iconOnly:a,tooltips:c,icon:l,loading:s,tabIndex:d,onCopy:u}=n,f=na(c),p=na(l),{copied:g,copy:x}=t!=null?t:{},m=r?It(f[1],g):It(f[0],x),b=typeof m=="string"?m:r?g:x;return o.createElement(en.Z,{key:"copy",title:m},o.createEl
|