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.

41 lines
22 KiB

6 months ago
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[64],{49867:function(_,w,s){"use strict";s.d(w,{N:function(){return n}});const n=h=>({color:h.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${h.motionDurationSlow}`,"&:focus, &:hover":{color:h.colorLinkHover},"&:active":{color:h.colorLinkActive}})},31064:function(_,w,s){"use strict";s.d(w,{Z:function(){return Zt}});var n=s(67294),h=s(87462),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},oe=Y,M=s(93771),m=function(o,r){return n.createElement(M.Z,(0,h.Z)({},o,{ref:r,icon:oe}))},y=n.forwardRef(m),j=s(93967),A=s.n(j),ae=s(20640),ee=s.n(ae),K=s(9220),E=s(50344),V=s(8410),Ee=s(21770),L=s(98423),te=s(42550),we=s(79370),ce=s(15105),Xe=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]]);return r};const Ge={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var je=n.forwardRef((e,o)=>{const r=g=>{const{keyCode:d}=g;d===ce.Z.ENTER&&g.preventDefault()},t=g=>{const{keyCode:d}=g,{onClick:f}=e;d===ce.Z.ENTER&&f&&f()},{style:i,noStyle:u,disabled:O}=e,C=Xe(e,["style","noStyle","disabled"]);let c={};return u||(c=Object.assign({},Ge)),O&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),i),n.createElement("div",Object.assign({role:"button",tabIndex:0,ref:o},C,{onKeyDown:r,onKeyUp:t,style:c}))}),Re=s(53124),Je=s(10110),he=s(83062),Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Ye=Qe,qe=function(o,r){return n.createElement(M.Z,(0,h.Z)({},o,{ref:r,icon:Ye}))},_e=n.forwardRef(qe),et=s(96159),tt=s(22913),Ie=s(49867),nt=s(91945),ot=s(78589),rt=s(54548);const it=(e,o,r,t)=>{const{titleMarginBottom:i,fontWeightStrong:u}=t;return{marginBottom:i,color:r,fontWeight:u,fontSize:e,lineHeight:o}},lt=e=>{const o=[1,2,3,4,5],r={};return o.forEach(t=>{r[`
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=it(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},st=e=>{const{componentCls:o}=e;return{"a&, a":Object.assign(Object.assign({},(0,Ie.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},at=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.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:e.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:ot.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:e.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}}),ct=e=>{const{componentCls:o,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,rt.bf)(t)})`},[`${o}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},dt=e=>({[`${e.componentCls}-copy-success`]:{[`
&,
&:hover,
&:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ut=()=>({[`
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"}}),ft=e=>{const{componentCls:o,titleMarginTop:r}=e;return{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${o}-secondary`]:{color:e.colorTextDescription},[`&${o}-success`]:{color:e.colorSuccess},[`&${o}-warning`]:{color:e.colorWarning},[`&${o}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
div&,
p
`]:{marginBottom:"1em"}},lt(e)),{[`
& + h1${o},
& + h2${o},
& + h3${o},
& + h4${o},
& + h5${o}
`]:{marginTop:r},[`
div,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5`]:{[`
+ h1,
+ h2,
+ h3,
+ h4,
+ h5
`]:{marginTop:r}}}),at(e)),st(e)),{[`
${o}-expand,
${o}-edit,
${o}-copy
`]:Object.assign(Object.assign({},(0,Ie.N)(e)),{marginInlineStart:e.marginXXS})}),ct(e)),dt(e)),ut()),{"&-rtl":{direction:"rtl"}})}},pt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var De=(0,nt.I$)("Typography",e=>[ft(e)],pt),gt=e=>{const{prefixCls:o,"aria-label":r,className:t,style:i,direction:u,maxLength:O,autoSize:C=!0,value:c,onSave:g,onCancel:d,onEnd:f,component:T,enterIcon:R=n.createElement(_e,null)}=e,I=n.useRef(null),v=n.useRef(!1),$=n.useRef(),[F,U]=n.useState(c);n.useEffect(()=>{U(c)},[c]),n.useEffect(()=>{if(I.current&&I.current.resizableTextArea){const{textArea:B}=I.current.resizableTextArea;B.focus();const{length:N}=B.value;B.setSelectionRange(N,N)}},[]);const x=B=>{let{target:N}=B;U(N.value.replace(/[\n\r]/g,""))},z=()=>{v.current=!0},W=()=>{v.current=!1},p=B=>{let{keyCode:N}=B;v.current||($.current=N)},P=()=>{g(F.trim())},D=B=>{let{keyCode:N,ctrlKey:le,altKey:G,metaKey:ge,shiftKey:me}=B;$.current===N&&!v.current&&!le&&!G&&!ge&&!me&&(N===ce.Z.ENTER?(P(),f==null||f()):N===ce.Z.ESC&&d())},b=()=>{P()},X=T?`${o}-${T}`:"",[q,fe,ie]=De(o),pe=A()(o,`${o}-edit-content`,{[`${o}-rtl`]:u==="rtl"},t,X,fe,ie);return q(n.createElement("div",{className:pe,style:i},n.createElement(tt.Z,{ref:I,maxLength:O,value:F,onChange:x,onKeyDown:p,onKeyUp:D,onCompositionStart:z,onCompositionEnd:W,onBlur:b,"aria-label":r,rows:1,autoSize:C}),R!==null?(0,et.Tm)(R,{className:`${o}-edit-content-confirm`}):null))};function xe(e,o){return n.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},o),r&&typeof e=="object"?e:null)]},[e])}var mt=(e,o)=>{const r=n.useRef(!1);n.useEffect(()=>{r.current?e():r.current=!0},o)},yt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]]);return r},Pe=n.forwardRef((e,o)=>{const{prefixCls:r,component:t="article",className:i,rootClassName:u,setContentRef:O,children:C,direction:c,style:g}=e,d=yt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:T,typography:R}=n.useContext(Re.E_),I=c!=null?c:T;let v=o;O&&(v=(0,te.sQ)(o,O));const $=f("typography",r),[F,U,x]=De($),z=A()($,R==null?void 0:R.className,{[`${$}-rtl`]:I==="rtl"},i,u,U,x),W=Object.assign(Object.assign({},R==null?void 0:R.style),g);return F(n.createElement(t,Object.assign({className:z,style:W,ref:v},d),C))}),vt=s(64894),bt=s(48820),Et=function(o,r){return n.createElement(M.Z,(0,h.Z)({},o,{ref:r,icon:bt.Z}))},ht=n.forwardRef(Et);function Le(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function de(e,o,r){return e===!0||e===void 0?o:e||r&&o}function xt(e){const{prefixCls:o,copied:r,locale:t={},onCopy:i,iconOnly:u,tooltips:O,icon:C}=e,c=Le(O),g=Le(C),{copied:d,copy:f}=t,T=r?de(c[1],d):de(c[0],f),I=typeof T=="string"?T:r?d:f;return n.createElement(he.Z,{key:"copy",title:T},n.createElement(je,{className:A()(`${o}-copy`,{[`${o}-copy-success`]:r,[`${o}-copy-icon-only`]:u}),onClick:i,"aria-label":I},r?de(g[1],n.createElement(vt.Z,null),!0):de(g[0],n.createElement(ht,null),!0)))}var St=s(74902);const $e=n.forwardRef((e,o)=>{let{style:r,children:t}=e;const i=n.useRef(null);return n.useImperativeHandle(o,()=>({isExceed:()=>{const u=i.current;return u.scrollHeight>u.clientHeight},getHeight:()=>i.current.clientHeight})),n.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},t)});function Ne(e){const o=typeof e;return o==="string"||o==="number"}function Ot(e){let o=0;return e.forEach(r=>{Ne(r)?o+=String(r).length:o+=1}),o}function Me(e,o){let r=0;const t=[];for(let i=0;i<e.length;i+=1){if(r===o)return t;const u=e[i],C=Ne(u)?String(u).length:1,c=r+C;if(c>o){const g=o-r;return t.push(String(u).slice(0,g)),t}t.push(u),r=c}return e}const Se=0,Oe=1,Ce=2,Ae=3,Be={display:"-webkit-bo