77 lines
73 KiB
JavaScript
77 lines
73 KiB
JavaScript
|
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[758],{47356:function(f,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};s.default=n},44149:function(f,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};s.default=n},77213:function(f,s,n){"use strict";n.d(s,{Z:function(){return T}});var t=n(1413),g=n(67294),i={icon:function($,w){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z",fill:$}},{tag:"path",attrs:{d:"M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z",fill:w}}]}},name:"heart",theme:"twotone"},p=i,C=n(91146),b=function($,w){return g.createElement(C.Z,(0,t.Z)((0,t.Z)({},$),{},{ref:w,icon:p}))},h=g.forwardRef(b),T=h},32147:function(f,s,n){"use strict";n.d(s,{Z:function(){return T}});var t=n(1413),g=n(67294),i={icon:function($,w){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:$}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 018-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 018 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:w}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4zm-24-112a48 48 0 1096 0 48 48 0 10-96 0z",fill:$}}]}},name:"smile",theme:"twotone"},p=i,C=n(91146),b=function($,w){return g.createElement(C.Z,(0,t.Z)((0,t.Z)({},$),{},{ref:w,icon:p}))},h=g.forwardRef(b),T=h},90930:function(f,s,n){"use strict";n.d(s,{_z:function(){return re}});var t=n(4942),g=n(91),i=n(1413),p=n(71002),C=n(89451),b=n(87223),h=n(67159),T=n(91269),v=n(67294),$=n(93967),w=n.n($),te=n(9220),K=n(98423),de=n(74902),ue=n(75164);function be(a){let e;const r=d=>()=>{e=null,a.apply(void 0,(0,de.Z)(d))},l=function(){if(e==null){for(var d=arguments.length,x=new Array(d),S=0;S<d;S++)x[S]=arguments[S];e=(0,ue.Z
|
||
|
|
> ${r} + span,
|
||
|
|
> ${r} + a
|
||
|
|
`]:{marginInlineStart:a.marginXXS}},[`${e}-overlay-link`]:{borderRadius:a.borderRadiusSM,height:a.fontHeight,display:"inline-block",padding:`0 ${(0,xt.bf)(a.paddingXXS)}`,marginInline:l(a.marginXXS).mul(-1).equal(),[`> ${r}`]:{marginInlineStart:a.marginXXS,fontSize:a.fontSizeIcon},"&:hover":{color:a.linkHoverColor,backgroundColor:a.colorBgTextHover,a:{color:a.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${a.componentCls}-rtl`]:{direction:"rtl"}})}},ot=a=>({itemColor:a.colorTextDescription,lastItemColor:a.colorText,iconFontSize:a.fontSize,linkColor:a.colorTextDescription,linkHoverColor:a.colorText,separatorColor:a.colorTextDescription,separatorMargin:a.marginXS});var Vt=(0,Q.I$)("Breadcrumb",a=>{const e=(0,Kt.IX)(a,{});return Et(e)},ot),Ge=function(a,e){var r={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&e.indexOf(l)<0&&(r[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(a);d<l.length;d++)e.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(a,l[d])&&(r[l[d]]=a[l[d]]);return r};function yn(a){const{breadcrumbName:e,children:r}=a,l=Ge(a,["breadcrumbName","children"]),d=Object.assign({title:e},l);return r&&(d.menu={items:r.map(x=>{var{breadcrumbName:S}=x,E=Ge(x,["breadcrumbName"]);return Object.assign(Object.assign({},E),{title:S})})}),d}function Gt(a,e){return(0,v.useMemo)(()=>a||(e?e.map(yn):null),[a,e])}var Qt=function(a,e){var r={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&e.indexOf(l)<0&&(r[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(a);d<l.length;d++)e.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(a,l[d])&&(r[l[d]]=a[l[d]]);return r};const Qe=(a,e)=>{if(e===void 0)return e;let r=(e||"").replace(/^\//,"");return Object.keys(a).forEach(l=>{r=r.replace(`:${l}`,a[l])}),r},it=a=>{const{prefixCls:e,separator:r="/",style:l,className:d,rootClassName:x,routes:S,items:E,children:z,itemRender:A,params:j={}}=a,P=Qt(a,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:D,direction:R,breadcrumb:Z}=v.useContext(Be.E_);let B;const F=D("breadcrumb",e),[O,L,q]=Vt(F),H=Gt(E,S),U=pn(F,A);if(H&&H.length>0){const J=[],ee=E||S;B=H.map((se,le)=>{const{path:Ne,key:Se,type:Ze,menu:Ee,overlay:Te,onClick:Me,className:ve,separator:je,dropdownProps:Le}=se,Oe=Qe(j,Ne);Oe!==void 0&&J.push(Oe);const ye=Se!=null?Se:le;if(Ze==="separator")return v.createElement(at,{key:ye},je);const Re={},ke=le===H.length-1;Ee?Re.menu=Ee:Te&&(Re.overlay=Te);let{href:_}=se;return J.length&&Oe!==void 0&&(_=`#/${J.join("/")}`),v.createElement(bt,Object.assign({key:ye},Re,(0,yt.Z)(se,{data:!0,aria:!0}),{className:ve,dropdownProps:Le,href:_,separator:ke?"":r,onClick:Me,prefixCls:F}),U(se,j,ee,J,_))})}else if(z){const J=(0,pt.Z)(z).length;B=(0,pt.Z)(z).map((ee,se)=>{if(!ee)return ee;const le=se===J-1;return(0,mn.Tm)(ee,{separator:le?"":r,key:se})})}const N=w()(F,Z==null?void 0:Z.className,{[`${F}-rtl`]:R==="rtl"},d,x,L,q),k=Object.assign(Object.assign({},Z==null?void 0:Z.style),l);return O(v.createElement("nav",Object.assign({className:N,style:k},P),v.createElement("ol",null,B)))};it.Item=kt,it.Separator=at;var Ot=it,lt=Ot,st=n(7134),ct=n(78957),Ye=n(80334),dt=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Je=function(e){var r;return(0,t.Z)({},e.componentCls,(0,i.Z)((0,i.Z)({},Pe.Wf===null||Pe.Wf===void 0?void 0:(0,Pe.Wf)(e)),{},(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({position:"relative",backgroundColor:e.colorWhite,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&&-ghost":{backgroundColor:e.pageHeaderBgGhost},"&-no-children":{height:(r=e.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent},"&&-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"&&-has-footer":{paddingBlockEnd:0},"& &-back":(0,t.Z)({marginInlineEnd:e.margin,fontSiz
|
||
|
|
.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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
`,X=s.useInsertStyles=function(V){var ne=(0,v.useContext)($.default),Y=ne.csp,ge=ne.prefixCls,we=Q;ge&&(we=we.replace(/anticon/g,ge)),(0,v.useEffect)(function(){var pe=V.current,xe=(0,h.getShadowRoot)(pe);(0,b.updateCSS)(we,"@ant-design-icons",{prepend:!0,csp:Y,attachTo:xe})},[])}},37716:function(f,s,n){"use strict";n.d(s,{Z:function(){return sn}});var t=n(67294),g=n(87462),i={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"},p=i,C=n(93771),b=function(c,m){return t.createElement(C.Z,(0,g.Z)({},c,{ref:m,icon:p}))},h=t.forwardRef(b),T=h,v=n(93967),$=n.n(v),w=n(9220),te=n(50344),K=n(8410),de=n(21770),ue=n(98423),be=n(42550),me=n(98924),Be=function(c){if((0,me.Z)()&&window.document.documentElement){var m=Array.isArray(c)?c:[c],u=window.document.documentElement;return m.some(function(y){return y in u.style})}return!1},Q=function(c,m){if(!Be(c))return!1;var u=document.createElement("div"),y=u.style[c];return u.style[c]=m,u.style[c]!==y};function X(o,c){return!Array.isArray(o)&&c!==void 0?Q(o,c):Be(o)}var I=n(53124),V=n(10110),ne=n(83062),Y={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"},ge=Y,we=function(c,m){return t.createElement(C.Z,(0,g.Z)({},c,{ref:m,icon:ge}))},pe=t.forwardRef(we),xe=pe,Ae=n(15105),We=n(96159),Fe=n(22913),$e=n(14747),et=n(83559),tt=n(65409),Ke=n(11568);const Pe=(o,c,m,u)=>{const{titleMarginBottom:y,fontWeightStrong:G}=u;return{marginBottom:y,color:m,fontWeight:G,fontSize:o,lineHeight:c}},nt=o=>{const c=[1,2,3,4,5],m={};return c.forEach(u=>{m[`
|
||
|
|
h${u}&,
|
||
|
|
div&-h${u},
|
||
|
|
div&-h${u} > textarea,
|
||
|
|
h${u}
|
||
|
|
`]=Pe(o[`fontSizeHeading${u}`],o[`lineHeightHeading${u}`],o.colorTextHeading,o)}),m},Nt=o=>{const{componentCls:c}=o;return{"a&, a":Object.assign(Object.assign({},(0,$e.Nd)(o)),{userSelect:"text",[`&[disabled], &${c}-disabled`]:{color:o.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:o.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Mt=o=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:o.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:o.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:tt.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:o.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}}),M=o=>{const{componentCls:c,paddingSM:m}=o,u=m;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:o.calc(o.paddingSM).mul(-1).equal(),marginTop:o.calc(u).mul(-1).equal(),marginBottom:`calc(1em - ${(0,Ke.bf)(u)})`},[`${c}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:o.calc(o.marginXS).add(2).equal(),insetBlockEnd:o.marginXS,color:o.colorTextDescription,fontWeight:"normal",fontSize:o.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Bt=o=>({[`${o.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:o.colorSuccess}},[`${o.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),At=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",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"}}),Ht=o=>{const{componentCls:c,titleMarginTop:m}=o;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o.colorText,wordBreak:"break-word",lineHeight:o.lineHeight,[`&${c}-secondary`]:{color:o.colorTextDescription},[`&${c}-success`]:{color:o.colorSuccess},[`&${c}-warning`]:{color:o.colorWarning},[`&${c}-danger`]:{color:o.colorError,"a&:active, a&:focus":{color:o.colorErrorActive},"a&:hover":{color:o.colorErrorHover}},[`&${c}-disabled`]:{color:o.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},nt(o)),{[`
|
||
|
|
& + h1${c},
|
||
|
|
& + h2${c},
|
||
|
|
& + h3${c},
|
||
|
|
& + h4${c},
|
||
|
|
& + h5${c}
|
||
|
|
`]:{marginTop:m},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:m}}}),Mt(o)),Nt(o)),{[`
|
||
|
|
${c}-expand,
|
||
|
|
${c}-collapse,
|
||
|
|
${c}-edit,
|
||
|
|
${c}-copy
|
||
|
|
`]:Object.assign(Object.assign({},(0,$e.Nd)(o)),{marginInlineStart:o.marginXXS})}),M(o)),Bt(o)),At()),{"&-rtl":{direction:"rtl"}})}},$t=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var mt=(0,et.I$)("Typography",o=>[Ht(o)],$t),Lt=o=>{const{prefixCls:c,"aria-label":m,className:u,style:y,direction:G,maxLength:fe,autoSize:Ce=!0,value:re,onSave:ie,onCancel:a,onEnd:e,component:r,enterIcon:l=t.createElement(xe,null)}=o,d=t.useRef(null),x=t.useRef(!1),S=t.useRef(),[E,z]=t.useState(re);t.useEffect(()=>{z(re)},[re]),t.useEffect(()=>{var H;if(!((H=d.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:U}=d.current.resizableTextArea;U.focus();const{length:N}=U.value;U.setSelectionRange(N,N)}},[]);const A=H=>{let{target:U}=H;z(U.value.replace(/[\n\r]/g,""))},j=()=>{x.current=!0},P=()=>{x.current=!1},D=H=>{let{keyCode:U}=H;x.current||(S.current=U)},R=()=>{ie(E.trim())},Z=H=>{let{keyCode:U,ctrlKey:N,altKey:k,metaKey:J,shiftKey:ee}=H;S.current!==U||x.current||N||k||J||ee||(U===Ae.Z.ENTER?(R(),e==null||e()):U===Ae.Z.ESC&&a())},B=()=>{R()},[F,O,L]=mt(c),q=$()(c,`${c}-edit-content`,{[`${c}-rtl`]:G==="rtl",[`${c}-${r}`]:!!r},u,O,L);return F(t.createElement("div",{className:q,style:y},t.createElement(Fe.Z,{ref:d,maxLength:fe,value:E,onChange:A,onKeyDown:D,onKeyUp:Z,onCompositionStart:j,onCompositionEnd:P,onBlur:B,"aria-label":m,rows:1,autoSize:Ce}),l!==null?(0,We.Tm)(l,{className:`${c}-edit-content-confirm`}):null))},Dt=n(20640),zt=n.n(Dt),Wt=n(66680);function pt(o){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&o==null?[]:Array.isArray(o)?o:[o]}var yt=function(o,c,m,u){function y(G){return G instanceof m?G:new m(function(fe){fe(G)})}return new(m||(m=Promise))(function(G,fe){function Ce(a){try{ie(u.next(a))}catch(e){fe(e)}}function re(a){try{ie(u.throw(a))}catch(e){fe(e)}}function ie(a){a.done?G(a.value):y(a.value).then(Ce,re)}ie((u=u.apply(o,c||[])).next())})},Ft=o=>{let{copyConfig:c,children:m}=o;const[u,y]=t.useState(!1),[G,fe]=t.useState(!1),Ce=t.useRef(null),re=()=>{Ce.current&&clearTimeout(Ce.current)},ie={};c.format&&(ie.format=c.format),t.useEffect(()=>re,[]);const a=(0,Wt.Z)(e=>yt(void 0,void 0,void 0,function*(){var r;e==null||e.preventDefault(),e==null||e.stopPropagation(),fe(!0);try{const l=typeof c.text=="function"?yield c.text():c.text;zt()(l||pt(m,!0).join("")||"",ie),fe(!1),y(!0),re(),Ce.current=setTimeout(()=>{y(!1)},3e3),(r=c.onCopy)===null||r===void 0||r.call(c,e)}catch(l){throw fe(!1),l}}));return{copied:u,copyLoading:G,onClick:a}};function rt(o,c){return t.useMemo(()=>{const m=!!o;return[m,Object.assign(Object.assign({},c),m&&typeof o=="object"?o:null)]},[o])}var at=o=>{const c=(0,t.useRef)();return(0,t.useEffect)(()=>{c.current=o}),c.current},Xt=(o,c,m)=>(0,t.useMemo)(()=>o===!0?{title:c!=null?c:m}:(0,t.isValidElement)(o)?{title:o}:typeof o=="object"?Object.assign({title:c!=null?c:m},o):{title:o},[o,c,m]),ht=function(o,c){var m={};for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&c.indexOf(u)<0&&(m[u]=o[u]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,u=Object.getOwnPropertySymbols(o);y<u.length;y++)c.indexOf(u[y])<0&&Object.prototype.propertyIsEnumerable.call(o,u[y])&&(m[u[y]]=o[u[y]]);return m},Ve=t.forwardRef((o,c)=>{const{prefixCls:m,component:u="article",className:y,rootClassName:G,setContentRef:fe,children:Ce,direction:re,style:ie}=o,a=ht(o,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:e,direction:r,typography:l}=t.useContext(I.E_),d=re!=null?re:r,x=fe?(0,be.sQ)(c,fe):c,S=e("typography",m),[E,z,A]=mt(S),j=$()(S,l==null?void 0:l.className,{[`${S}-rtl`]:d==="rtl"},y,G,z,A),P=Object.assign(Object.assign({},l==null?void 0:l.style),ie);return E(t.createElement(u,Object.assign({className:j,style:P,ref:x},a),Ce))}),bt=n(64894),Ct=n(48820),kt=function(c,m){return t.createElement(C.Z,(0,g.Z)({},c,{ref:m,icon:Ct.Z}))},xt=t.forwardRef(kt),St=xt,Kt=n(19267);function Et(o){return o===!1?[!1,!1]:Array.isArray(o)?o:[o]}function ot(o,c,m){return o===!0||o===void 0?c:o||m&&c}f
|
||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}f.exports=s,f.exports.__esModule=!0,f.exports.default=f.exports},42122:function(f,s,n){var t=n(38416);function g(p,C){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(p);C&&(h=h.filter(function(T){return Object.getOwnPropertyDescriptor(p,T).enumerable})),b.push.apply(b,h)}return b}function i(p){for(var C=1;C<arguments.length;C++){var b=arguments[C]!=null?arguments[C]:{};C%2?g(Object(b),!0).forEach(function(h){t(p,h,b[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):g(Object(b)).forEach(function(h){Object.defineProperty(p,h,Object.getOwnPropertyDescriptor(b,h))})}return p}f.exports=i,f.exports.__esModule=!0,f.exports.default=f.exports},70215:function(f,s,n){var t=n(7071);function g(i,p){if(i==null)return{};var C,b,h=t(i,p);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(i);for(b=0;b<T.length;b++)C=T[b],p.includes(C)||{}.propertyIsEnumerable.call(i,C)&&(h[C]=i[C])}return h}f.exports=g,f.exports.__esModule=!0,f.exports.default=f.exports},7071:function(f){function s(n,t){if(n==null)return{};var g={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(t.includes(i))continue;g[i]=n[i]}return g}f.exports=s,f.exports.__esModule=!0,f.exports.default=f.exports},27424:function(f,s,n){var t=n(85372),g=n(68872),i=n(86116),p=n(12218);function C(b,h){return t(b)||g(b,h)||i(b,h)||p()}f.exports=C,f.exports.__esModule=!0,f.exports.default=f.exports},95036:function(f,s,n){var t=n(18698).default;function g(i,p){if(t(i)!="object"||!i)return i;var C=i[Symbol.toPrimitive];if(C!==void 0){var b=C.call(i,p||"default");if(t(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(i)}f.exports=g,f.exports.__esModule=!0,f.exports.default=f.exports},64062:function(f,s,n){var t=n(18698).default,g=n(95036);function i(p){var C=g(p,"string");return t(C)=="symbol"?C:C+""}f.exports=i,f.exports.__esModule=!0,f.exports.default=f.exports},18698:function(f){function s(n){"@babel/helpers - typeof";return f.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f.exports.__esModule=!0,f.exports.default=f.exports,s(n)}f.exports=s,f.exports.__esModule=!0,f.exports.default=f.exports},86116:function(f,s,n){var t=n(73897);function g(i,p){if(i){if(typeof i=="string")return t(i,p);var C={}.toString.call(i).slice(8,-1);return C==="Object"&&i.constructor&&(C=i.constructor.name),C==="Map"||C==="Set"?Array.from(i):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?t(i,p):void 0}}f.exports=g,f.exports.__esModule=!0,f.exports.default=f.exports}}]);
|