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.
97 lines
200 KiB
97 lines
200 KiB
9 months ago
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[601],{82947:function(zn,Ve){"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"};Ve.Z=R},57470:function(zn,Ve,R){"use strict";R.d(Ve,{t:function(){return Cr}});var te=R(91),ge=R(97685),be=R(1413),se=R(10915),Z=R(12044),Fe=R(21770),i=R(15746),he=R(28459),je=R(71230),o=R(8232),Zn=R(93967),rn=R.n(Zn),le=R(9220),Ze=R(67294),_e=R(78733),Ae=R(87462),sn=R(66023),Yt=R(46976),Qt=function(ae,Ue){return Ze.createElement(Yt.Z,(0,Ae.Z)({},ae,{ref:Ue,icon:sn.Z}))},Pt=Ze.forwardRef(Qt),$t=R(28700),jt=R(78957),Xe=R(85893),Ft=function(ae,Ue,Ee,Qe){return ae?(0,Xe.jsxs)(Xe.Fragment,{children:[Ee.getMessage("tableForm.collapsed","\u5C55\u5F00"),Qe&&"(".concat(Qe,")"),(0,Xe.jsx)(Pt,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(ae?0:.5,"turn)")}})]}):(0,Xe.jsxs)(Xe.Fragment,{children:[Ee.getMessage("tableForm.expand","\u6536\u8D77"),(0,Xe.jsx)(Pt,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(ae?0:.5,"turn)")}})]})},_n=function(ae){var Ue=ae.setCollapsed,Ee=ae.collapsed,Qe=Ee===void 0?!1:Ee,Ke=ae.submitter,cn=ae.style,Un=ae.hiddenNum,Rn=(0,Ze.useContext)(he.ZP.ConfigContext),$n=Rn.getPrefixCls,Dn=(0,se.YB)(),Gn=(0,Ze.useContext)(se.L_),qe=Gn.hashId,In=(0,$t.v)(ae.collapseRender)||Ft;return(0,Xe.jsxs)(jt.Z,{style:cn,size:16,children:[Ke,ae.collapseRender!==!1&&(0,Xe.jsx)("a",{className:"".concat($n("pro-query-filter-collapse-button")," ").concat(qe).trim(),onClick:function(){return Ue(!Qe)},children:In==null?void 0:In(Qe,ae,Dn,Un)})]})},kt=_n,wn=R(4942),Nt=R(98082),Ot=function(ae){return(0,wn.Z)({},ae.componentCls,(0,wn.Z)((0,wn.Z)((0,wn.Z)((0,wn.Z)({"&&":{padding:24}},"".concat(ae.antCls,"-form-item"),{marginBlock:0}),"".concat(ae.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":(0,wn.Z)((0,wn.Z)({},"".concat(ae.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:ae.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(ae.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:ae.colorPrimary}))};function ft(Re){return(0,Nt.Xj)("QueryFilter",function(ae){var Ue=(0,be.Z)((0,be.Z)({},ae),{},{componentCls:".".concat(Re)});return[Ot(Ue)]})}var vt=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],Le,mt={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},qt={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},gr=function(ae,Ue,Ee){if(Ee&&typeof Ee=="number")return{span:Ee,layout:ae};var Qe=Ee?["xs","sm","md","lg","xl","xxl"].map(function(cn){return[mt[cn],24/Ee[cn],"horizontal"]}):qt[ae||"default"],Ke=(Qe||qt.default).find(function(cn){return Ue<cn[0]+16});return Ke?{span:24/Ke[1],layout:Ke==null?void 0:Ke[2]}:{span:8,layout:"horizontal"}},hr=function(ae,Ue){return ae==null?vo
|
||
|
.anticon {
|
||
|
display: inline-block;
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
`,tt=function(e){var r=(0,o.useContext)($n),t=r.csp,a=r.prefixCls,c=pt;a&&(c=c.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,s=(0,Gn.A)(l);(0,Dn.hq)(c,"@ant-design-icons",{prepend:!0,csp:t,attachTo:s})},[])},rt=["icon","className","onClick","style","primaryColor","secondaryColor"],un={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Yn(n){var e=n.primaryColor,r=n.secondaryColor;un.primaryColor=e,un.secondaryColor=r||nt(e),un.calculated=!!r}function at(){return(0,i.Z)({},un)}var fn=function(e){var r=e.icon,t=e.className,a=e.onClick,c=e.style,l=e.primaryColor,s=e.secondaryColor,d=(0,he.Z)(e,rt),u=o.useRef(),v=un;if(l&&(v={primaryColor:l,secondaryColor:s||nt(l)}),tt(u),et(pn(r),"icon should be icon definiton, but got ".concat(r)),!pn(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=(0,i.Z)((0,i.Z)({},p),{},{icon:p.icon(v.primaryColor,v.secondaryColor)})),dn(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}))};fn.displayName="IconReact",fn.getTwoToneColors=at,fn.setTwoToneColors=Yn;var en=fn;function Qn(n){var e=gn(n),r=(0,se.Z)(e,2),t=r[0],a=r[1];return en.setTwoToneColors({primaryColor:t,secondaryColor:a})}function gt(){var n=en.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var ht=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Qn(Ue.primary);var jn=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,he.Z)(n,ht),v=o.useContext($n),p=v.prefixCls,h=p===void 0?"anticon":p,w=v.rootClassName,m=le()(w,h,(0,Z.Z)((0,Z.Z)({},"".concat(h,"-").concat(t.name),!!t.name),"".concat(h,"-spin"),!!a||t.name==="loading"),r),g=l;g===void 0&&s&&(g=-1);var y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,C=gn(d),b=(0,se.Z)(C,2),O=b[0],F=b[1];return o.createElement("span",(0,je.Z)({role:"img","aria-label":t.name},u,{ref:e,tabIndex:g,onClick:s,className:m}),o.createElement(en,{icon:t,primaryColor:O,secondaryColor:F,style:y}))});jn.displayName="AntdIcon",jn.getTwoToneColor=gt,jn.setTwoToneColor=Qn;var nn=jn,yt=function(e,r){return o.createElement(nn,(0,je.Z)({},e,{ref:r,icon:Zn.Z}))},hn=o.forwardRef(yt),we=R(48874),Pe=R(28459),Ge=R(13169),We=R(25378),$e=R(97435),Te=R(21770),Ne=R(98082),Fn=function(e){var r=e.componentCls,t=e.antCls;return(0,Z.Z)({},"".concat(r,"-actions"),(0,Z.Z)((0,Z.Z)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(0,Z.Z)((0,Z.Z)({position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(t,`-btn),
|
||
|
> .anticon`),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}))};function bt(n){return(0,Ne.Xj)("ProCardActions",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n),cardActionIconSize:16});return[Fn(r)]})}var f=R(85893),_t=function(e){var r=e.actions,t=e.prefixCls,a=bt(t),c=a.wrapSSR,l=a.hashId;return Array.isArray(r)&&r!==null&&r!==void 0&&r.length?c((0,f.jsx)("ul",{className:le()("".concat(t,"-actions"),l),children:r.map(function(s,d){return(0,f.jsx)("li",{style:{width:"".concat(100/r.length,"%"),padding:0,margin:0},className:le()("".concat(t,"-actions-item"),l),children:s},"action-".concat(d))})})):c((0,f.jsx)("ul",{className:le()("".concat(t,"-actions"),l),children:r}))},Ea=_t,An=R(71230),an=R(15746),Ce=R(54548),Pa=new Ce.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$a=function(e){return(0,Z.Z)({},e.componentCls,(0,Z.Z)((0,Z.Z)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:Pa,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function ja(n){return(0,Ne.Xj)("ProCardLoading",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n)});return[$a(r)]})}var Fa=function(e){var r=e.style,t=e.prefix,a=ja(t||"ant-pro-card"),c=a.wrapSSR;return c((0,f.jsxs)("div",{className:"".concat(t,"-loading-content"),style:r,children:[(0,f.jsx)(An.Z,{gutter:8,children:(0,f.jsx)(an.Z,{span:22,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})}),(0,f.jsxs)(An.Z,{gutter:8,children:[(0,f.jsx)(an.Z,{span:8,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(an.Z,{span:15,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(An.Z,{gutter:8,children:[(0,f.jsx)(an.Z,{span:6,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(an.Z,{span:18,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(An.Z,{gutter:8,children:[(0,f.jsx)(an.Z,{span:13,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(an.Z,{span:9,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(An.Z,{gutter:8,children:[(0,f.jsx)(an.Z,{span:4,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(an.Z,{span:3,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(an.Z,{span:16,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]})]}))},Na=Fa,Mt=R(67159),ot=R(50344),Oa=R(34155),Ma=["tab","children"],Ba=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function La(n){return n.filter(function(e){return e})}function za(n,e,r){if(n)return n.map(function(a){return(0,i.Z)((0,i.Z)({},a),{},{children:(0,f.jsx)(Ct,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:a.children}))})});(0,qe.ET)(!r,"Tabs.TabPane is deprecated. Please use `items` directly.");var t=(0,ot.Z)(e).map(function(a){if(o.isValidElement(a)){var c=a.key,l=a.props,s=l||{},d=s.tab,u=s.children,v=(0,he.Z)(s,Ma),p=(0,i.Z)((0,i.Z)({key:String(c)},v),{},{children:(0,f.jsx)(Ct,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:u})),label:d});return p}return null});return La(t)}var Da=function(e){var r=(0,o.useContext)(Pe.ZP.ConfigContext),t=r.getPrefixCls;if(Mt.Z.startsWith("5"))return(0,f.jsx)(f.Fragment,{});v
|
||
8 months ago
|
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(j),y(Array.from(C)),(E==null?void 0:E.newRecordType)==="dataSource"||n.tableName){var H,X={data:n.dataSource,getRowKey:n.getRowKey,row:(0,i.Z)((0,i.Z)({},B),{},{map_row_parentKey:E!=null&&E.parentKey?(H=on(E==null?void 0:E.parentKey))===null||H===void 0?void 0:H.toString():void 0}),key:j,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(wt(X,(E==null?void 0:E.position)==="top"?"top":"update"))}else a({defaultValue:B,options:(0,i.Z)((0,i.Z)({},E),{},{recordKey:j})});return!0}),x=(0,Je.YB)(),N=(n==null?void 0:n.saveText)||x.getMessage("editableTable.action.save","\u4FDD\u5B58"),k=(n==null?void 0:n.deleteText)||x.getMessage("editableTable.action.delete","\u5220\u9664"),L=(n==null?void 0:n.cancelText)||x.getMessage("editableTable.action.cancel","\u53D6\u6D88"),S=(0,ze.J)(function(){var B=(0,ge.Z)((0,te.Z)().mark(function E(j,H,X,q){var W,G,M,V,ee,re,pe;return(0,te.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.next=2,n==null||(W=n.onSave)===null||W===void 0?void 0:W.call(n,j,H,X,q);case 2:return V=ce.sent,ce.next=5,U(j);case 5:if(ee=q||d.current||{},re=ee.options,!(!(re!=null&&re.parentKey)&&(re==null?void 0:re.recordKey)===j)){ce.next=9;break}return(re==null?void 0:re.position)==="top"?n.setDataSource([H].concat((0,Fe.Z)(n.dataSource))):n.setDataSource([].concat((0,Fe.Z)(n.dataSource),[H])),ce.abrupt("return",V);case 9:return pe={data:n.dataSource,getRowKey:n.getRowKey,row:re?(0,i.Z)((0,i.Z)({},H),{},{map_row_parentKey:(G=on((M=re==null?void 0:re.parentKey)!==null&&M!==void 0?M:""))===null||G===void 0?void 0:G.toString()}):H,key:j,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(wt(pe,(re==null?void 0:re.position)==="top"?"top":"update")),ce.next=13,U(j);case 13:return ce.abrupt("return",V);case 14:case"end":return ce.stop()}},E)}));return function(E,j,H,X){return B.apply(this,arguments)}}()),$=(0,ze.J)(function(){var B=(0,ge.Z)((0,te.Z)().mark(function E(j,H){var X,q,W;return(0,te.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return q={data:n.dataSource,getRowKey:n.getRowKey,row:H,key:j,childrenColumnName:n.childrenColumnName||"children"},M.next=3,n==null||(X=n.onDelete)===null||X===void 0?void 0:X.call(n,j,H);case 3:return W=M.sent,M.next=6,U(j,!1);case 6:return n.setDataSource(wt(q,"delete")),M.abrupt("return",W);case 8:case"end":return M.stop()}},E)}));return function(E,j){return B.apply(this,arguments)}}()),D=(0,ze.J)(function(){var B=(0,ge.Z)((0,te.Z)().mark(function E(j,H,X,q){var W,G;return(0,te.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,n==null||(W=n.onCancel)===null||W===void 0?void 0:W.call(n,j,H,X,q);case 2:return G=V.sent,V.abrupt("return",G);case 4:case"end":return V.stop()}},E)}));return function(E,j,H,X){return B.apply(this,arguments)}}()),_=function(E){var j=n.getRowKey(E,E.index),H={saveText:N,cancelText:L,deleteText:k,addEditRecord:I,recordKey:j,cancelEditable:U,index:E.index,tableName:n.tableName,newLineConfig:t,onCancel:D,onDelete:$,onSave:S,editableKeys:g,setEditableRowKeys:y,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(x.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},X=Zo(E,H);return n.tableName?z.current.set(s.current.get(on(j))||on(j),X.saveRef):z.current.set(on(j),X.saveRef),n.actionRender?n.actionRender(E,H,{save:X.save,delete:X.delete,cancel:X.cancel}):[X.save,X.delete,X.cancel]};return{editableKeys:g,setEditableRowKeys:y,isEditable:O,actionRender:_,startEditable:F,cancelEditable:U,addEditRecord:I,saveEditable:P,newLineRecord:t,preEditableKeys:b,onValuesChange:T,getRealIndex:n.getRealIndex}}var bn=R(51812),it=R(53914),Ro=R(78164),Kn=R(72051),Io=R(72378),zt=R.n(Io),vd=function(e){return e!=null};function To(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,be.Z)(n)==="object"?n:{};return(0,i.Z)((0,i.Z)({
|
||
9 months ago
|
h${t}&,
|
||
|
div&-h${t},
|
||
|
div&-h${t} > textarea,
|
||
|
h${t}
|
||
|
`]=as(n[`fontSizeHeading${t}`],n[`lineHeightHeading${t}`],n.colorTextHeading,n)}),r},ls=n=>{const{componentCls:e}=n;return{"a&, a":Object.assign(Object.assign({},(0,la.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"}}})}},is=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:rs.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}}),ss=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,Ce.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"}}}},cs=n=>({[`${n.componentCls}-copy-success`]:{[`
|
||
|
&,
|
||
|
&:hover,
|
||
|
&:focus`]:{color:n.colorSuccess}},[`${n.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ds=()=>({[`
|
||
|
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"}}),us=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"}},os(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}}}),is(n)),ls(n)),{[`
|
||
|
${e}-expand,
|
||
|
${e}-edit,
|
||
|
${e}-copy
|
||
|
`]:Object.assign(Object.assign({},(0,la.N)(n)),{marginInlineStart:n.marginXXS})}),ss(n)),cs(n)),ds()),{"&-rtl":{direction:"rtl"}})}},fs=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var ia=(0,rr.I$)("Typography",n=>[us(n)],fs),vs=n=>{const{prefixCls:e,"aria-label":r,className:t,style:a,direction:c,maxLength:l,autoSize:s=!0,value:d,onSave:u,onCancel:v,onEnd:p,component:h,enterIcon:w=o.createElement(ns,null)}=n,m=o.useRef(null),g=o.useRef(!1),y=o.useRef(),[C,b]=o.useState(d);o.useEffect(()=>{b(d)},[d]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:S}=m.current.resizableTextArea;S.focus();const{length:$}=S.value;S.setSelectionRange($,$)}},[]);const O=S=>{let{target:$}=S;b($.value.replace(/[\n\r]/g,""))},F=()=>{g.current=!0},U=()=>{g.current=!1},A=S=>{let{keyCode:$}=S;g.current||(y.current=$)},T=()=>{u(C.trim())},z=S=>{let{keyCode:$,ctrlKey:D,altKey:_,metaKey:B,shiftKey:E}=S;y.current===$&&!g.current&&!D&&!_&&!B&&!E&&($===kn.Z.ENTER?(T(),p==null||p()):$===kn.Z.ESC&&v())},P=()=>{T()},I=h?`${e}-${h}`:"",[x,N,k]=ia(e),L=le()(e,`${e}-edit-content`,{[`${e}-rtl`]:c==="rtl"},t,I,N,k);return x(o.createElement("div",{className:L,style:a},o.createElement(ts.Z,{ref:m,maxLength:l,value:C,onChange:O,onKeyDown:A,onKeyUp:z,onCompositionStart:F,onCompositionEnd:U,onBlur:P,"aria-label":r,rows:1,autoSize:s}),w!==null?(0,Ir.Tm)(w,{className:`${e}-edit-content-confirm`}):null))};function sr(n,e){return o.useMemo(()=>{const r=!!n;return[r,Object.assign(Object.assign({},e),r&&typeof n=="object"?n:null)]},[n])}var ms=(n,e)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?n():r.current=!0},e)},ps=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},sa=o.forwardRef((n,e)=>{const{prefixCls:r,component:t="article",className:a,rootClassName:c,setContentRef:l,children:s,direction:d,style:u}=n,v=ps(n,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:h,typography:w}=o.useContext(lt.E_),m=d!=null?d:h;let g=e;l&&(g=(0,ra.sQ)(e,l));const y=p("typography",r),[C,b,O]=ia(y),F=le()(y,w==null?void 0:w.className,{[`${y}-rtl`]:m==="rtl"},a,c,b,O),U=Object.assign(Object.assign({},w==null?void 0:w.style),u);return C(o.createElement(t,Object.assign({className:F,style:U,ref:g},v),s))}),gs=R(48820),hs=function(e,r){return o.createElement(ir.Z,(0,je.Z)({},e,{ref:r,icon:gs.Z}))},ys=o.forwardRef(hs);function ca(n){return n===!1?[!1,!1]:Array.isArray(n)?n:[n]}function Gt(n,e,r){return n===!0||n===void 0?e:n||r&&e}function bs(n){const{prefixCls:e,copied:r,locale:t={},onCopy:a,iconOnly:c,tooltips:l,icon:s}=n,d=ca(l),u=ca(s),{copied:v,copy:p}=t,h=r?Gt(d[1],v):Gt(d[0],p),m=typeof h=="string"?h:r?v:p;return o.createElement(Cn.Z,{key:"copy",title:h},o.createElement(oa,{className:le()(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:c}),onClick:a,"aria-label":m},r?Gt(u[1],o.createElement(Hr.Z,null),!0):Gt(u[0],o.createElement(ys,null),!0)))}const da=o.forwardRef((n,e)=>{let{style:r,children:t}=n;const a=o.useRef(null);return o.useImperativeHandle(e,()=>({isExceed:()=>{const c=a.current;return c.scrollHeight>c.clientHeight},getHeight:()=>a.current.clientHeight})),o.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},t)});function ua(n){const e=typeof n;return e==="string"||e==="number"}function Cs(n){let e=0;return n.forEach(r=>{ua(r)?e+=String(r).length:e+=1}),e}function fa(n,e){let r=0;const t=[];for(let a=0;a<n.length;a+=1){if(r===e)return t;const c=n[a],s=ua(c)?String(c).length:1,d=r+s;if(d>e){const u=e-r;return t.push(String(c).slice(0,u)),t}t.push(c),r=d}return n}const cr=0,dr=1,ur=2,va=3,ma={display:"-webkit-box",overflow:"hidden",WebkitBoxOrien
|