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
195 KiB
97 lines
195 KiB
9 months ago
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[601],{82947:function($n,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},34994:function($n,Ve,R){"use strict";R.d(Ve,{A:function(){return en}});var ee=R(1413),pe=R(8232),xe=R(67294),ce=R(78733),Z=R(9105),Ze=R(4942),i=R(97685),he=R(87462),we=R(50756),o=R(46976),fn=function(Me,rn){return xe.createElement(o.Z,(0,he.Z)({},Me,{ref:rn,icon:we.Z}))},ke=xe.forwardRef(fn),oe=R(21770),Ue=R(48874),He=R(28459),$e=R(42075),qe=R(93967),lt=R.n(qe),Lt=R(66758),Bt=R(2514),it=R(98082),st=function(Me){return(0,Ze.Z)({},Me.componentCls,{"&-title":{marginBlockEnd:Me.marginXL,fontWeight:"bold"},"&-container":(0,Ze.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(Me.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({display:"block",width:"100%"},"".concat(Me.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(Me.componentCls,"-container"),{paddingInlineStart:16}),"".concat(Me.antCls,"-space-item,").concat(Me.antCls,"-form-item"),{width:"100%"}),"".concat(Me.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function zt(Ge){return(0,it.Xj)("ProFormGroup",function(Me){var rn=(0,ee.Z)((0,ee.Z)({},Me),{},{componentCls:".".concat(Ge)});return[st(rn)]})}var De=R(85893),jn=xe.forwardRef(function(Ge,Me){var rn=xe.useContext(Lt.Z),je=rn.groupProps,Le=(0,ee.Z)((0,ee.Z)({},je),Ge),At=Le.children,Kt=Le.collapsible,vr=Le.defaultCollapsed,mr=Le.style,pr=Le.labelLayout,Wt=Le.title,dt=Wt===void 0?Ge.label:Wt,Vt=Le.tooltip,ut=Le.align,Ht=ut===void 0?"start":ut,Xt=Le.direction,Ut=Le.size,Gt=Ut===void 0?32:Ut,gr=Le.titleStyle,ft=Le.titleRender,an=Le.spaceProps,Un=Le.extra,Gn=Le.autoFocus,nn=(0,oe.Z)(function(){return vr||!1},{value:Ge.collapsed,onChange:Ge.onCollapse}),vt=(0,i.Z)(nn,2),Jn=vt[0],mt=vt[1],pt=(0,xe.useContext)(He.ZP.ConfigContext),Yn=pt.getPrefixCls,Qn=(0,Bt.zx)(Ge),gt=Qn.ColWrapper,Jt=Qn.RowWrapper,xn=Yn("pro-form-group"),ht=zt(xn),Yt=ht.wrapSSR,vn=ht.hashId,yt=Kt&&(0,De.jsx)(ke,{style:{marginInlineEnd:8},rotate:Jn?void 0:90}),bt=(0,De.jsx)(Ue.G,{label:yt?(0,De.jsxs)("div",{children:[yt,dt]}):dt,tooltip:Vt}),Fn=(0,xe.useCallback)(function(Ae){var On=Ae.children;return(0,De.jsx)($e.Z,(0,ee.Z)((0,ee.Z)({},an),{},{className:lt()("".concat(xn,"-container ").concat(vn),an==null?void 0:an.className),size:Gt,align:Ht,direction:Xt,style:(0,ee.Z)({rowGap:0},an==null?void 0:an.style),children:On}))},[Ht,xn,Xt,vn,Gt,an]),Ln=ft?ft(bt,Ge):bt,St=(0,xe.useMemo)(function(){var Ae=[],On=xe.Children.toArray(At).map(function(on,Zn){var Ke;return xe.isValidElement(on)&&on!==null&&on!==void 0&&(Ke=on.props)!==null&&Ke!==void 0&&Ke.hidden?(Ae.push(on),null):Zn===0&&xe.isValidElement(on)&&Gn?xe.cloneElement(on,(0,ee.Z)((0,ee.Z)({},on.props),{},{autoFocus:Gn})):on});return[(0,De.jsx)(Jt,{Wrapper:Fn,children:On},"children"),Ae.length>0?(0,De.jsx)("div",{style:{display:"none"},children:Ae}):null]},[At,Jt,Fn,Gn]),Ct=(0,i.Z)(St,2),Qt=Ct[0],Bn=Ct[1];return Yt((0,De.jsx)(gt,{children:(0,De.jsxs)("div",{className:lt()(xn,vn,(0,Ze.Z)({},"".concat(xn,"-twoLine"),pr==="twoLine")),style:mr,ref:Me,children:[Bn,(dt||Vt||Un)&&(0,De
|
||
9 months ago
|
.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);
|
||
|
}
|
||
|
}
|
||
9 months ago
|
`,ht=function(e){var r=(0,o.useContext)(an),t=r.csp,a=r.prefixCls,c=xn;a&&(c=c.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,s=(0,Gn.A)(l);(0,Un.hq)(c,"@ant-design-icons",{prepend:!0,csp:t,attachTo:s})},[])},Yt=["icon","className","onClick","style","primaryColor","secondaryColor"],vn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function yt(n){var e=n.primaryColor,r=n.secondaryColor;vn.primaryColor=e,vn.secondaryColor=r||Qn(e),vn.calculated=!!r}function bt(){return(0,i.Z)({},vn)}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,Yt),u=o.useRef(),v=vn;if(l&&(v={primaryColor:l,secondaryColor:s||Qn(l)}),ht(u),Jn(mt(r),"icon should be icon definiton, but got ".concat(r)),!mt(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)})),Yn(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=bt,Fn.setTwoToneColors=yt;var Ln=Fn;function St(n){var e=gt(n),r=(0,ce.Z)(e,2),t=r[0],a=r[1];return Ln.setTwoToneColors({primaryColor:t,secondaryColor:a})}function Ct(){var n=Ln.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var Qt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];St(ut.primary);var Bn=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,Qt),v=o.useContext(an),p=v.prefixCls,h=p===void 0?"anticon":p,w=v.rootClassName,m=oe()(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,S=gt(d),b=(0,ce.Z)(S,2),N=b[0],F=b[1];return o.createElement("span",(0,we.Z)({role:"img","aria-label":t.name},u,{ref:e,tabIndex:g,onClick:s,className:m}),o.createElement(Ln,{icon:t,primaryColor:N,secondaryColor:F,style:y}))});Bn.displayName="AntdIcon",Bn.getTwoToneColor=Ct,Bn.setTwoToneColor=St;var Ae=Bn,On=function(e,r){return o.createElement(Ae,(0,we.Z)({},e,{ref:r,icon:fn.Z}))},on=o.forwardRef(On),Zn=R(48874),Ke=R(28459),zn=R(13169),hr=R(25378),mn=R(97435),Oe=R(21770),Fe=R(98082),Ra=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 Ia(n){return(0,Fe.Xj)("ProCardActions",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n),cardActionIconSize:16});return[Ra(r)]})}var f=R(85893),Ta=function(e){var r=e.actions,t=e.prefixCls,a=Ia(t),c=a.wrapSSR,l=a.hashId;return Array.isArray(r)&&r!==null&&r!==void 0&&r.length?c((0,f.jsx)("ul",{className:oe()("".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:oe()("".concat(t,"-actions-item"),l),children:s},"action-".concat(d))})})):c((0,f.jsx)("ul",{className:oe()("".concat(t,"-actions"),l),children:r}))},Ea=Ta,wn=R(71230),Je=R(15746),ye=R(54548),Pa=new ye.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,Fe.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)(wn.Z,{gutter:8,children:(0,f.jsx)(Je.Z,{span:22,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:8,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:15,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:6,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:18,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:13,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:9,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:4,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:3,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:16,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]})]}))},Oa=Fa,xt=R(67159),Dn=R(50344),Na=R(34155),Ma=["tab","children"],La=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function Ba(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)(kn,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:a.children}))})});(0,nn.ET)(!r,"Tabs.TabPane is deprecated. Please use `items` directly.");var t=(0,Dn.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)(kn,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:u})),label:d});return p}return null});return Ba(t)}var Da=function(e){var r=(0,o.useContext)(Ke.ZP.ConfigContext),t=r.getPrefixCls;if(xt.Z.startsWith("5"))return(0,f.jsx)(f.Fragment,{});v
|
||
|
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(S.add(j),y(Array.from(S)),(E==null?void 0:E.newRecordType)==="dataSource"||n.tableName){var V,X={data:n.dataSource,getRowKey:n.getRowKey,row:(0,i.Z)((0,i.Z)({},L),{},{map_row_parentKey:E!=null&&E.parentKey?(V=Ye(E==null?void 0:E.parentKey))===null||V===void 0?void 0:V.toString():void 0}),key:j,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(nt(X,(E==null?void 0:E.position)==="top"?"top":"update"))}else a({defaultValue:L,options:(0,i.Z)((0,i.Z)({},E),{},{recordKey:j})});return!0}),x=(0,Be.YB)(),O=(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"),B=(n==null?void 0:n.cancelText)||x.getMessage("editableTable.action.cancel","\u53D6\u6D88"),C=(0,Ee.J)(function(){var L=(0,pe.Z)((0,ee.Z)().mark(function E(j,V,X,q){var W,G,M,H,ne,re,me;return(0,ee.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,n==null||(W=n.onSave)===null||W===void 0?void 0:W.call(n,j,V,X,q);case 2:return H=ie.sent,ie.next=5,U(j);case 5:if(ne=q||d.current||{},re=ne.options,!(!(re!=null&&re.parentKey)&&(re==null?void 0:re.recordKey)===j)){ie.next=9;break}return(re==null?void 0:re.position)==="top"?n.setDataSource([V].concat((0,Ze.Z)(n.dataSource))):n.setDataSource([].concat((0,Ze.Z)(n.dataSource),[V])),ie.abrupt("return",H);case 9:return me={data:n.dataSource,getRowKey:n.getRowKey,row:re?(0,i.Z)((0,i.Z)({},V),{},{map_row_parentKey:(G=Ye((M=re==null?void 0:re.parentKey)!==null&&M!==void 0?M:""))===null||G===void 0?void 0:G.toString()}):V,key:j,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(nt(me,(re==null?void 0:re.position)==="top"?"top":"update")),ie.next=13,U(j);case 13:return ie.abrupt("return",H);case 14:case"end":return ie.stop()}},E)}));return function(E,j,V,X){return L.apply(this,arguments)}}()),$=(0,Ee.J)(function(){var L=(0,pe.Z)((0,ee.Z)().mark(function E(j,V){var X,q,W;return(0,ee.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return q={data:n.dataSource,getRowKey:n.getRowKey,row:V,key:j,childrenColumnName:n.childrenColumnName||"children"},M.next=3,n==null||(X=n.onDelete)===null||X===void 0?void 0:X.call(n,j,V);case 3:return W=M.sent,M.next=6,U(j,!1);case 6:return n.setDataSource(nt(q,"delete")),M.abrupt("return",W);case 8:case"end":return M.stop()}},E)}));return function(E,j){return L.apply(this,arguments)}}()),D=(0,Ee.J)(function(){var L=(0,pe.Z)((0,ee.Z)().mark(function E(j,V,X,q){var W,G;return(0,ee.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,n==null||(W=n.onCancel)===null||W===void 0?void 0:W.call(n,j,V,X,q);case 2:return G=H.sent,H.abrupt("return",G);case 4:case"end":return H.stop()}},E)}));return function(E,j,V,X){return L.apply(this,arguments)}}()),_=function(E){var j=n.getRowKey(E,E.index),V={saveText:O,cancelText:B,deleteText:k,addEditRecord:I,recordKey:j,cancelEditable:U,index:E.index,tableName:n.tableName,newLineConfig:t,onCancel:D,onDelete:$,onSave:C,editableKeys:g,setEditableRowKeys:y,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(x.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},X=Zo(E,V);return n.tableName?z.current.set(s.current.get(Ye(j))||Ye(j),X.saveRef):z.current.set(Ye(j),X.saveRef),n.actionRender?n.actionRender(E,V,{save:X.save,delete:X.delete,cancel:X.cancel}):[X.save,X.delete,X.cancel]};return{editableKeys:g,setEditableRowKeys:y,isEditable:N,actionRender:_,startEditable:F,cancelEditable:U,addEditRecord:I,saveEditable:P,newLineRecord:t,preEditableKeys:b,onValuesChange:T,getRealIndex:n.getRealIndex}}var sn=R(51812),Kn=R(53914),Ro=R(78164),Rn=R(72051),Io=R(72378),Rt=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,xe.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}
|
||
9 months ago
|
`]=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,ra.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,ye.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`]:{[`
|
||
9 months ago
|
&,
|
||
|
&:hover,
|
||
9 months ago
|
&:focus`]:{color:n.colorSuccess}},[`${n.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ds=()=>({[`
|
||
9 months ago
|
a&-ellipsis,
|
||
|
span&-ellipsis
|
||
9 months ago
|
`]:{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"},[`
|
||
9 months ago
|
div&,
|
||
|
p
|
||
9 months ago
|
`]:{marginBottom:"1em"}},os(n)),{[`
|
||
9 months ago
|
& + 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
|
||
9 months ago
|
`]:{marginTop:r}}}),is(n)),ls(n)),{[`
|
||
9 months ago
|
${e}-expand,
|
||
|
${e}-edit,
|
||
|
${e}-copy
|
||
9 months ago
|
`]:Object.assign(Object.assign({},(0,ra.N)(n)),{marginInlineStart:n.marginXXS})}),ss(n)),cs(n)),ds()),{"&-rtl":{direction:"rtl"}})}},fs=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var aa=(0,er.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(),[S,b]=o.useState(d);o.useEffect(()=>{b(d)},[d]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:C}=m.current.resizableTextArea;C.focus();const{length:$}=C.value;C.setSelectionRange($,$)}},[]);const N=C=>{let{target:$}=C;b($.value.replace(/[\n\r]/g,""))},F=()=>{g.current=!0},U=()=>{g.current=!1},A=C=>{let{keyCode:$}=C;g.current||(y.current=$)},T=()=>{u(S.trim())},z=C=>{let{keyCode:$,ctrlKey:D,altKey:_,metaKey:L,shiftKey:E}=C;y.current===$&&!g.current&&!D&&!_&&!L&&!E&&($===Nn.Z.ENTER?(T(),p==null||p()):$===Nn.Z.ESC&&v())},P=()=>{T()},I=h?`${e}-${h}`:"",[x,O,k]=aa(e),B=oe()(e,`${e}-edit-content`,{[`${e}-rtl`]:c==="rtl"},t,I,O,k);return x(o.createElement("div",{className:B,style:a},o.createElement(ts.Z,{ref:m,maxLength:l,value:S,onChange:N,onKeyDown:A,onKeyUp:z,onCompositionStart:F,onCompositionEnd:U,onBlur:P,"aria-label":r,rows:1,autoSize:s}),w!==null?(0,Zr.Tm)(w,{className:`${e}-edit-content-confirm`}):null))};function or(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},oa=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(An.E_),m=d!=null?d:h;let g=e;l&&(g=(0,ea.sQ)(e,l));const y=p("typography",r),[S,b,N]=aa(y),F=oe()(y,w==null?void 0:w.className,{[`${y}-rtl`]:m==="rtl"},a,c,b,N),U=Object.assign(Object.assign({},w==null?void 0:w.style),u);return S(o.createElement(t,Object.assign({className:F,style:U,ref:g},v),s))}),gs=R(48820),hs=function(e,r){return o.createElement(ar.Z,(0,we.Z)({},e,{ref:r,icon:gs.Z}))},ys=o.forwardRef(hs);function la(n){return n===!1?[!1,!1]:Array.isArray(n)?n:[n]}function Nt(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=la(l),u=la(s),{copied:v,copy:p}=t,h=r?Nt(d[1],v):Nt(d[0],p),m=typeof h=="string"?h:r?v:p;return o.createElement(cn.Z,{key:"copy",title:h},o.createElement(ta,{className:oe()(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:c}),onClick:a,"aria-label":m},r?Nt(u[1],o.createElement(Ar.Z,null),!0):Nt(u[0],o.createElement(ys,null),!0)))}const ia=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 sa(n){const e=typeof n;return e==="string"||e==="number"}function Ss(n){let e=0;return n.forEach(r=>{sa(r)?e+=String(r).length:e+=1}),e}function ca(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=sa(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 lr=0,ir=1,sr=2,da=3,ua={display:"-webkit-box",overflow:"hidden",WebkitBoxOrien
|