👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
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.
 
 
 

25 lines
37 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,97679,912980,e=>{"use strict";let t;var n=e.i(191788),r=e.i(608427),a=e.i(108154),l=e.i(325336),i=e.i(56926),o=e.i(56206),s=e.i(907251),c=e.i(351212),u=e.i(499997);let d=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,p=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],f={};function m(){return(m=Object.assign.bind()).apply(this,arguments)}let g=n.forwardRef((e,r)=>{let{prefixCls:a,defaultValue:l,value:g,autoSize:x,onResize:h,className:b,style:y,disabled:v,onChange:w,onInternalAutoSize:E,...$}=e,[S,C]=(0,i.default)(l,g),k=n.useRef();n.useImperativeHandle(r,()=>({textArea:k.current}));let[R,N]=n.useMemo(()=>x&&"object"==typeof x?[x.minRows,x.maxRows]:[],[x]),I=!!x,[z,T]=n.useState(2),[j,A]=n.useState(),B=()=>{T(0)};(0,c.default)(()=>{I&&B()},[g,R,N,I]),(0,c.default)(()=>{if(0===z)T(1);else if(1===z){let e=function(e,n=!1,r=null,a=null){let l,i,o;t||((t=document.createElement("textarea")).setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),t.setAttribute("name","hiddenTextarea"),document.body.appendChild(t)),e.getAttribute("wrap")?t.setAttribute("wrap",e.getAttribute("wrap")):t.removeAttribute("wrap");let{paddingSize:s,borderSize:c,boxSizing:u,sizingStyle:m}=function(e,t=!1){let n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&f[n])return f[n];let r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),o={sizingStyle:p.map(e=>`${e}:${r.getPropertyValue(e)}`).join(";"),paddingSize:l,borderSize:i,boxSizing:a};return t&&n&&(f[n]=o),o}(e,n);t.setAttribute("style",`${m};${d}`),t.value=e.value||e.placeholder||"";let g=t.scrollHeight;if("border-box"===u?g+=c:"content-box"===u&&(g-=s),null!==r||null!==a){t.value=" ";let e=t.scrollHeight-s;null!==r&&(i=e*r,"border-box"===u&&(i=i+s+c),g=Math.max(i,g)),null!==a&&(o=e*a,"border-box"===u&&(o=o+s+c),l=g>o?"":"hidden",g=Math.min(o,g))}let x={height:g,overflowY:l,resize:"none"};return i&&(x.minHeight=i),o&&(x.maxHeight=o),x}(k.current,!1,R,N);T(2),A(e)}},[z]);let H=n.useRef(),M=()=>{u.default.cancel(H.current)};n.useEffect(()=>M,[]);let L={...y,...I?j:null};return(0===z||1===z)&&(L.overflowY="hidden",L.overflowX="hidden"),n.createElement(s.default,{onResize:e=>{2===z&&(h?.(e),x&&(M(),H.current=(0,u.default)(()=>{B()})))},disabled:!(x||h)},n.createElement("textarea",m({},$,{ref:k,style:L,className:(0,o.clsx)(a,b,{[`${a}-disabled`]:v}),disabled:v,value:S??"",onChange:e=>{C(e.target.value),w?.(e)}})))});function x(){return(x=Object.assign.bind()).apply(this,arguments)}let h=n.default.forwardRef(({defaultValue:e,value:t,onFocus:s,onBlur:c,onChange:u,allowClear:d,maxLength:p,onCompositionStart:f,onCompositionEnd:m,suffix:h,prefixCls:b="rc-textarea",showCount:y,count:v,className:w,style:E,disabled:$,hidden:S,classNames:C,styles:k,onResize:R,onClear:N,onPressEnter:I,readOnly:z,autoSize:T,onKeyDown:j,...A},B)=>{let H,[M,L]=(0,i.default)(e,t),W=null==M?"":String(M),[D,F]=n.default.useState(!1),O=n.default.useRef(!1),[P,V]=n.default.useState(null),q=(0,n.useRef)(null),_=(0,n.useRef)(null),K=()=>_.current?.textArea,U=()=>{K().focus()};(0,n.useImperativeHandle)(B,()=>({resizableTextArea:_.current,focus:U,blur:()=>{K().blur()},nativeElement:q.current?.nativeElement||K()})),(0,n.useEffect)(()=>{F(e=>!$&&e)},[$]);let[X,G]=n.default.useState(null);n.default.useEffect(()=>{X&&K().setSelectionRange(...X)},[X]);let Q=(0,a.default)(v,y),Y=Q.max??p,J=Number(Y)>0,Z=Q.strategy(W),ee=!!Y&&Z>Y,et=(e,t)=>{let n=t;!O.current&&Q.exceedFormatter&&Q.max&&Q.strategy(t)>Q.max&&(n=Q.exceedFormatter(t,{max:Q.max}),t!==n&&G([K().selectionStart||0,K().selectionEnd||0])),L(n),(0,l.resolveOnChange)(e.currentTarget,e,u,n)},en=h;Q.show&&(H=Q.showFormatter?Q.showFormatter({value:W,count:Z,maxLength:Y}):`${Z}${J?` / ${Y}`:""}`,en=n.default.createElement(n.default.Fragment,null,en,n.default.createElement("span",{className:(0,o.clsx)(`${b}-data-count`,C?.count),style:k?.count},H)));let er=!T&&!y&&!d;return n.default.createElement(r.BaseInput,{ref:q,value:W,allowClear:d,handleReset:e=>{L(""),U(),(0,l.resolveOnChange)(K(),e,u)},suffix:en,prefixCls:b,classNames:{...C,affixWrapper:(0,o.clsx)(C?.affixWrapper,{[`${b}-show-count`]:y,[`${b}-textarea-allow-clear`]:d})},disabled:$,focused:D,className:(0,o.clsx)(w,ee&&`${b}-out-of-range`),style:{...E,...P&&!er?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":"string"==typeof H?H:void 0}},hidden:S,readOnly:z,onClear:N},n.default.createElement(g,x({},A,{autoSize:T,maxLength:p,onKeyDown:e=>{"Enter"===e.key&&I&&!e.nativeEvent.isComposing&&I(e),j?.(e)},onChange:e=>{et(e,e.target.value)},onFocus:e=>{F(!0),s?.(e)},onBlur:e=>{F(!1),c?.(e)},onCompositionStart:e=>{O.current=!0,f?.(e)},onCompositionEnd:e=>{O.current=!1,et(e,e.currentTarget.value),m?.(e)},className:(0,o.clsx)(C?.textarea),style:{resize:E?.resize,...k?.textarea},disabled:$,prefixCls:b,onResize:e=>{R?.(e),K()?.style.height&&V(!0)},ref:_,readOnly:z})))});e.s(["default",()=>h],912980),e.i(912980);var b=e.i(782041),y=e.i(430898),v=e.i(640684),w=e.i(993175),E=e.i(82038),$=e.i(749919),S=e.i(625263),C=e.i(873627),k=e.i(536995),R=e.i(688490),N=e.i(312744),I=e.i(428170),z=e.i(352050),T=e.i(108314),j=e.i(636261),A=(0,z.genStyleHooks)(["Input","TextArea"],e=>(e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})((0,T.mergeToken)(e,(0,j.initInputToken)(e))),j.initComponentToken,{resetFont:!1});let B=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,bordered:a=!0,size:l,disabled:i,status:s,allowClear:c,classNames:u,rootClassName:d,className:p,style:f,styles:m,variant:g,showCount:x,onMouseDown:z,onResize:T,...j}=e,{getPrefixCls:B,direction:H,allowClear:M,autoComplete:L,className:W,style:D,classNames:F,styles:O}=(0,w.useComponentConfig)("textArea"),P=n.useContext(E.default),{status:V,hasFeedback:q,feedbackIcon:_}=n.useContext(C.FormItemInputContext),K=(0,v.getMergedStatus)(V,s),[U,X]=(0,y.useMergeSemantic)([F,u],[O,m],{props:e}),G=n.useRef(null);n.useImperativeHandle(t,()=>({resizableTextArea:G.current?.resizableTextArea,focus:e=>{(0,N.triggerFocus)(G.current?.resizableTextArea?.textArea,e)},blur:()=>G.current?.blur(),nativeElement:G.current?.nativeElement||null}));let Q=B("input",r),Y=(0,$.default)(Q),[J,Z]=(0,I.useSharedStyle)(Q,d);A(Q,Y);let{compactSize:ee,compactItemClassnames:et}=(0,R.useCompactItemContext)(Q,H),en=(0,S.default)(e=>l??ee??e),[er,ea]=(0,k.default)("textArea",g,a),el=(0,b.default)(c??M),[ei,eo]=n.useState(!1),[es,ec]=n.useState(!1);return n.createElement(h,{autoComplete:L,...j,style:{...X.root,...D,...f},styles:X,disabled:i??P,allowClear:el,className:(0,o.clsx)(Z,Y,p,d,et,W,U.root,{[`${Q}-textarea-affix-wrapper-resize-dirty`]:es}),classNames:{...U,textarea:(0,o.clsx)({[`${Q}-sm`]:"small"===en,[`${Q}-lg`]:"large"===en},J,U.textarea,ei&&`${Q}-mouse-active`),variant:(0,o.clsx)({[`${Q}-${er}`]:ea},(0,v.getStatusClassNames)(Q,K)),affixWrapper:(0,o.clsx)(`${Q}-textarea-affix-wrapper`,{[`${Q}-affix-wrapper-rtl`]:"rtl"===H,[`${Q}-affix-wrapper-sm`]:"small"===en,[`${Q}-affix-wrapper-lg`]:"large"===en,[`${Q}-textarea-show-count`]:x||e.count?.show},J)},prefixCls:Q,suffix:q&&n.createElement("span",{className:`${Q}-textarea-suffix`},_),showCount:x,ref:G,onResize:e=>{if(T?.(e),ei&&"function"==typeof getComputedStyle){let e=G.current?.nativeElement?.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&ec(!0)}},onMouseDown:e=>{eo(!0),z?.(e);let t=()=>{eo(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})});e.s(["default",()=>B],97679)},98826,e=>{"use strict";var t=e.i(353944);e.i(191788);var n=e.i(391398);e.s(["PageLoading",0,({isLoading:e,pastDelay:r,timedOut:a,error:l,retry:i,...o})=>(0,n.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,n.jsx)(t.Spin,{size:"large",...o})})])},100264,e=>{"use strict";var t=e.i(191788),n={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"},r=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let l=t.forwardRef((e,l)=>t.createElement(r.default,a({},e,{ref:l,icon:n})));e.s(["default",()=>l],100264)},106555,e=>{"use strict";var t=e.i(379049),n=e.i(56206),r=e.i(191788),a=e.i(814432),l=e.i(889590),i=e.i(391398);e.s(["GridContent",0,e=>{let o=(0,r.useContext)(a.RouteContext),{children:s,contentWidth:c,className:u,style:d}=e,{getPrefixCls:p}=(0,r.useContext)(t.ConfigProvider.ConfigContext),f=e.prefixCls||p("pro"),m=c||o.contentWidth,g=`${f}-grid-content`,{wrapSSR:x,hashId:h}=(0,l.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${g}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),b="Fixed"===m&&"top"===o.layout;return x((0,i.jsx)("div",{className:(0,n.clsx)(g,h,u,{[`${g}-wide`]:b}),style:d,"data-testid":"pro-grid-content",children:(0,i.jsx)("div",{className:(0,n.clsx)(`${f}-grid-content-children`,h),children:s})}))}],106555)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},154165,e=>{"use strict";var t=e.i(934854),n=(e,n={})=>!(0,t.isNonNullable)(e)&&n?.skipEmpty?[]:Array.isArray(e)?e:[e];e.s(["default",()=>n])},360618,e=>{"use strict";var t=e.i(439214);e.s(["PlusOutlined",()=>t.default])},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},560370,e=>{"use strict";var t=e.i(191788),n=e.i(633829),r=e.i(100264),a=e.i(907251),l=e.i(151304),i=e.i(351212),o=e.i(851581),s=e.i(56206),c=e.i(934854),u=e.i(664557),d=e.i(993175),p=e.i(583082),f=e.i(188304),m={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"},g=e.i(117716);function x(){return(x=Object.assign.bind()).apply(this,arguments)}let h=t.forwardRef((e,n)=>t.createElement(g.default,x({},e,{ref:n,icon:m})));var b=e.i(536343),y=e.i(663032),v=e.i(97679),w=e.i(307441),E=e.i(352050),$=e.i(671557),S=(0,E.genStyleHooks)("Typography",e=>{let t,{componentCls:n,titleMarginTop:r}=e;return{[n]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary, &${n}-link${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success, &${n}-link${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning, &${n}-link${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger, &${n}-link${n}-danger`]:{color:e.colorErrorText,[`&${n}-link:active, &${n}-link:focus`]:{color:e.colorErrorTextActive},[`&${n}-link:hover`]:{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...(t={},[1,2,3,4,5].forEach(n=>{t[`
h${n}&,
div&-h${n},
div&-h${n} > textarea,
h${n}
`]=((e,t,n,r)=>{let{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t),[`& + h1${n}, & + h2${n}, & + h3${n}, & + h4${n}, & + h5${n}`]:{marginTop:r},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:r}},...{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:$.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}},...(e=>{let{componentCls:t}=e,n=`${t}-link`;return{[`&${n}`]:{...(0,w.operationUnit)(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}})(e),[`${n}-actions`]:{display:"inline"},[`
${n}-expand,
${n}-collapse,
${n}-edit,
${n}-copy
`]:{...(0,w.operationUnit)(e),marginInlineStart:e.marginXXS},...(e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}})(e),...{[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}},...{"a&-ellipsis, span&-ellipsis":{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"}},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),C=e=>{let{prefixCls:n,"aria-label":r,className:a,style:l,direction:i,maxLength:o,autoSize:c=!0,value:u,onSave:d,onCancel:p,onEnd:f,component:m,enterIcon:g=t.createElement(h,null)}=e,x=t.useRef(null),w=t.useRef(!1),E=t.useRef(null),[$,C]=t.useState(u);t.useEffect(()=>{C(u)},[u]),t.useEffect(()=>{if(x.current?.resizableTextArea){let{textArea:e}=x.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let k=()=>{d($.trim())},[R,N]=S(n),I=(0,s.clsx)(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===i,[`${n}-${m}`]:!!m},a,R,N);return t.createElement("div",{className:I,style:l},t.createElement(v.default,{ref:x,maxLength:o,value:$,onChange:({target:e})=>{C(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{w.current||(E.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:a})=>{E.current!==e||w.current||t||n||r||a||(e===b.default.ENTER?(k(),f?.()):e===b.default.ESC&&p())},onCompositionStart:()=>{w.current=!0},onCompositionEnd:()=>{w.current=!1},onBlur:()=>{k()},"aria-label":r,rows:1,autoSize:c}),null!==g?(0,y.cloneElement)(g,{className:`${n}-edit-content-confirm`}):null)};let k=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function R(e,t){if("string"!=typeof e)return!1;let n=t?.format==="text/html";return!!(await k(e,n)||((e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}})(e,n))}var N=e.i(154165);function I(e,n){return t.useMemo(()=>{let t=!!e;return[t,{...n,...t&&"object"==typeof e?e:null}]},[e])}let z=t.forwardRef((e,n)=>{let{prefixCls:r,component:a="article",className:l,rootClassName:i,children:o,direction:c,style:u,...p}=e,{getPrefixCls:f,direction:m,className:g,style:x}=(0,d.useComponentConfig)("typography"),h=f("typography",r),[b,y]=S(h),v=(0,s.clsx)(h,g,{[`${h}-rtl`]:"rtl"===(c??m)},l,i,b,y),w={...x,...u};return t.createElement(a,{className:v,style:w,ref:n,...p},o)});var T=e.i(146025),j=e.i(636207),A=e.i(677057);let B=e=>!1===e?[!1,!1]:(0,N.default)(e);function H(e,t,n){return!0===e||void 0===e?t:e||n&&t}let M=e=>["string","number"].includes(typeof e);var L=e=>{let{prefixCls:n,copied:r,locale:a,iconOnly:l,tooltips:i,icon:o,tabIndex:c,onCopy:u,loading:d}=e,p=B(i),m=B(o),{copied:g,copy:x}=a??{},h=r?g:x,b=H(p[+!!r],h),y="string"==typeof b?b:h;return t.createElement(f.default,{title:b},t.createElement("button",{type:"button",className:(0,s.clsx)(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:l}),onClick:u,"aria-label":y,tabIndex:c},r?H(m[1],t.createElement(T.default,null),!0):H(m[0],d?t.createElement(A.default,null):t.createElement(j.default,null),!0)))};let W=t.forwardRef(({style:e,children:n},r)=>{let a=t.useRef(null);return t.useImperativeHandle(r,()=>({isExceed:()=>{let e=a.current;return e.scrollHeight>e.clientHeight},getHeight:()=>a.current.clientHeight})),t.createElement("span",{"aria-hidden":!0,ref:a,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},n)});function D(e,t){let n=0,r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;let l=e[a],i=n+(M(l)?String(l).length:1);if(i>t){let e=t-n;return r.push(String(l).slice(0,e)),r}r.push(l),n=i}return e}let F={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function O(e){let{enableMeasure:r,width:a,text:o,children:s,rows:c,expanded:u,miscDeps:d,onEllipsis:p}=e,f=t.useMemo(()=>(0,l.toArray)(o),[o]),m=t.useMemo(()=>f.reduce((e,t)=>e+(M(t)?String(t).length:1),0),[o]),g=t.useMemo(()=>s(f,!1),[o]),[x,h]=t.useState(null),b=t.useRef(null),y=t.useRef(null),v=t.useRef(null),w=t.useRef(null),E=t.useRef(null),[$,S]=t.useState(!1),[C,k]=t.useState(0),[R,N]=t.useState(0),[I,z]=t.useState(null);(0,i.default)(()=>{r&&a&&m?k(1):k(0)},[a,o,c,r,f]),(0,i.default)(()=>{if(1===C)k(2),z(y.current&&getComputedStyle(y.current).whiteSpace);else if(2===C){let e=!!v.current?.isExceed();k(e?3:4),h(e?[0,m]:null),S(e),N(Math.max(v.current?.getHeight()||0,(1===c?0:w.current?.getHeight()||0)+(E.current?.getHeight()||0))+1),p(e)}},[C]);let T=x?Math.ceil((x[0]+x[1])/2):0;(0,i.default)(()=>{let[e,t]=x||[0,0];if(e!==t){let n=(b.current?.getHeight()||0)>R,r=T;t-e==1&&(r=n?e:t),h(n?[e,r]:[r,t])}},[x,T]);let j=t.useMemo(()=>{if(!r)return s(f,!1);if(3!==C||!x||x[0]!==x[1]){let e=s(f,!1);return[4,0].includes(C)?e:t.createElement("span",{style:{...F,WebkitLineClamp:c}},e)}return s(u?f:D(f,x[0]),$)},[u,C,x,f].concat((0,n.default)(d))),A={width:a,margin:0,padding:0,whiteSpace:"nowrap"===I?"normal":"inherit"};return t.createElement(t.Fragment,null,j,2===C&&t.createElement(t.Fragment,null,t.createElement(W,{style:{...A,...F,WebkitLineClamp:c},ref:v},g),t.createElement(W,{style:{...A,...F,WebkitLineClamp:c-1},ref:w},g),t.createElement(W,{style:{...A,...F,WebkitLineClamp:1},ref:E},s([],!0))),3===C&&x&&x[0]!==x[1]&&t.createElement(W,{style:{...A,top:400},ref:b},s(D(f,T),!0)),1===C&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}var P=({enableEllipsis:e,isEllipsis:n,open:r,children:a,tooltipProps:l})=>l?.title&&e?t.createElement(f.default,{open:r&&n,...l},a):a;let V=["delete","mark","code","underline","strong","keyboard","italic"],q=t.forwardRef((e,m)=>{let g,x,h,{prefixCls:b,className:y,style:v,type:w,disabled:E,children:$,ellipsis:S,editable:k,copyable:T,component:j,title:A,onMouseEnter:B,onMouseLeave:H,...W}=e,{getPrefixCls:D,direction:F}=t.useContext(d.ConfigContext),[q]=(0,p.default)("Text"),_=t.useRef(null),K=t.useRef(null),U=D("typography",b),X=(0,l.omit)(W,V),[G,Q]=I(k),[Y,J]=(0,l.useControlledState)(!1,Q.editing),{triggerType:Z=["icon"]}=Q,ee=e=>{e&&Q.onStart?.(),J(e)},et=(g=(0,t.useRef)(void 0),(0,t.useEffect)(()=>{g.current=Y}),g.current);(0,i.default)(()=>{!Y&&et&&K.current?.focus()},[Y]);let en=e=>{e?.preventDefault(),ee(!0)},[er,ea]=I(T),{copied:el,copyLoading:ei,onClick:eo}=(({copyConfig:e,children:n})=>{let[r,a]=t.useState(!1),[i,o]=t.useState(!1),s=t.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};return e.format&&(u.format=e.format),t.useEffect(()=>c,[]),{copied:r,copyLoading:i,onClick:(0,l.useEvent)(async t=>{t?.preventDefault(),t?.stopPropagation(),o(!0);try{let r="function"==typeof e.text?await e.text():e.text;await R(r||(0,N.default)(n,{skipEmpty:!0}).join("")||"",u),o(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),e.onCopy?.(t)}catch(e){throw o(!1),e}})}})({copyConfig:ea,children:$}),[es,ec]=t.useState(!1),[eu,ed]=t.useState(!1),[ep,ef]=t.useState(!1),[em,eg]=t.useState(!1),[ex,eh]=t.useState(!0),[eb,ey]=I(S,{expandable:!1,symbol:e=>e?q?.collapse:q?.expand}),[ev,ew]=(0,l.useControlledState)(ey.defaultExpanded||!1,ey.expanded),eE=eb&&(!ev||"collapsible"===ey.expandable),{rows:e$=1}=ey,eS=t.useMemo(()=>eE&&(void 0!==ey.suffix||ey.onEllipsis||ey.expandable||G||er),[eE,ey,G,er]);(0,i.default)(()=>{eb&&!eS&&(ec((0,u.isStyleSupport)("webkitLineClamp")),ed((0,u.isStyleSupport)("textOverflow")))},[eS,eb]);let[eC,ek]=t.useState(eE),eR=t.useMemo(()=>!eS&&(1===e$?eu:es),[eS,eu,es]);(0,i.default)(()=>{ek(eR&&eE)},[eR,eE]);let eN=(x=ey.tooltip,h=Q.text,(0,t.useMemo)(()=>!0===x?{title:h??$}:(0,t.isValidElement)(x)?{title:x}:(0,c.isPlainObject)(x)?{title:h??$,...x}:{title:x},[x,h,$])),eI=eC&&!!eN.title,ez=eE&&(eC?eI&&em:ep),eT=eE&&1===e$&&eC,ej=eE&&e$>1&&eC,[eA,eB]=t.useState(0),[eH,eM]=t.useState(!1),[eL,eW]=t.useState(!1),eD=e=>{ef(e),ep!==e&&ey.onEllipsis?.(e)};t.useEffect(()=>{let e=_.current;if(eb&&eI&&e){let t,n,r,a=(t=document.createElement("em"),e.appendChild(t),n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom);em!==a&&eg(a)}},[eb,eI,$,ej,ex,eA]),t.useEffect(()=>{let e=_.current;if("u"<typeof IntersectionObserver||!e||!eI||!eE)return;let t=new IntersectionObserver(()=>{eh(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eI,eE]);let eF=t.useMemo(()=>{if(eb&&!eC)return[Q.text,$,A,eN.title].find(M)},[eb,eC,A,eN.title,ez]);return Y?t.createElement(C,{value:Q.text??("string"==typeof $?$:""),onSave:e=>{Q.onChange?.(e),ee(!1)},onCancel:()=>{Q.onCancel?.(),ee(!1)},onEnd:Q.onEnd,prefixCls:U,className:y,style:v,direction:F,component:j,maxLength:Q.maxLength,autoSize:Q.autoSize,enterIcon:Q.enterIcon}):t.createElement(a.default,{onResize:({offsetWidth:e})=>{eB(e)},disabled:!eE},a=>t.createElement(P,{tooltipProps:eN,enableEllipsis:eE,isEllipsis:ez,open:eL&&!eH},t.createElement(z,{onMouseEnter:e=>{eW(!0),B?.(e)},onMouseLeave:e=>{eW(!1),H?.(e)},className:(0,s.clsx)({[`${U}-${w}`]:w,[`${U}-disabled`]:E,[`${U}-ellipsis`]:eb,[`${U}-ellipsis-single-line`]:eT,[`${U}-ellipsis-multiple-line`]:ej,[`${U}-link`]:"a"===j},y),prefixCls:b,style:{...v,WebkitLineClamp:ej?e$:void 0},component:j,ref:(0,o.composeRef)(a,_,m),direction:F,onClick:Z.includes("text")?en:void 0,"aria-label":eF?.toString(),title:A,...X},t.createElement(O,{enableMeasure:eE&&!eC,text:$,rows:e$,width:eA,onEllipsis:eD,expanded:ev,miscDeps:[el,ev,ei,G,er,q].concat((0,n.default)(V.map(t=>e[t])))},(n,a)=>{var i;let o,s,u;return function({mark:e,code:n,underline:r,delete:a,strong:l,keyboard:i,italic:o},s){let c=s;function u(e,n){n&&(c=t.createElement(e,{},c))}return u("strong",l),u("u",r),u("del",a),u("code",n),u("mark",e),u("kbd",i),u("i",o),c}(e,t.createElement(t.Fragment,null,n.length>0&&a&&!ev&&eF?t.createElement("span",{key:"show-content","aria-hidden":!0},n):n,[(i=a)&&!ev&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ey.suffix,(o=i&&(()=>{let{expandable:e,symbol:n}=ey;return e?t.createElement("button",{type:"button",key:"expand",className:`${U}-${ev?"collapse":"expand"}`,onClick:e=>{var t;ew((t={expanded:!ev}).expanded),ey.onExpand?.(e,t)},"aria-label":ev?q.collapse:q?.expand},"function"==typeof n?n(ev):n):null})(),s=(()=>{if(!G)return;let{icon:e,tooltip:n,tabIndex:a}=Q,i=(0,l.toArray)(n)[0]||q?.edit,o="string"==typeof i?i:"";return Z.includes("icon")?t.createElement(f.default,{key:"edit",title:!1===n?"":i},t.createElement("button",{type:"button",ref:K,className:`${U}-edit`,onClick:en,"aria-label":o,tabIndex:a},e||t.createElement(r.default,{role:"button"}))):null})(),u=er?t.createElement(L,{key:"copy",...ea,prefixCls:U,copied:el,locale:q,onCopy:eo,loading:ei,iconOnly:!(0,c.isNonNullable)($)}):null,o||s||u?t.createElement("span",{key:"operations",className:`${U}-actions`,onMouseEnter:()=>eM(!0),onMouseLeave:()=>eM(!1)},o,s,u):null)]))}))))}),_=t.forwardRef((e,n)=>{let{ellipsis:r,rel:a,children:l,navigate:i,...o}=e,s={...o,rel:void 0===a&&"_blank"===o.target?"noopener noreferrer":a};return t.createElement(q,{...s,ref:n,ellipsis:!!r,component:"a"},l)}),K=t.forwardRef((e,n)=>{let{children:r,...a}=e;return t.createElement(q,{ref:n,...a,component:"div"},r)}),U=t.forwardRef((e,n)=>{let{ellipsis:r,children:a,...i}=e,o=t.useMemo(()=>(0,c.isPlainObject)(r)?(0,l.omit)(r,["expandable","rows"]):r,[r]);return t.createElement(q,{ref:n,...i,ellipsis:o,component:"span"},a)}),X=[1,2,3,4,5],G=t.forwardRef((e,n)=>{let{level:r=1,children:a,...l}=e,i=X.includes(r)?`h${r}`:"h1";return t.createElement(q,{ref:n,...l,component:i},a)});z.Text=U,z.Link=_,z.Title=G,z.Paragraph=K,e.s(["Typography",()=>z],560370)},608427,325336,108154,636832,782041,e=>{"use strict";var t=e.i(56206),n=e.i(191788);function r(e){return!!(e.addonBefore||e.addonAfter)}function a(e){return!!(e.prefix||e.suffix||e.allowClear)}function l(e,t,n){let r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},a}function i(e,t,n,r){if(!n)return;let a=t;"click"===t.type?n(a=l(t,e,"")):"file"!==e.type&&void 0!==r?n(a=l(t,e,r)):n(a)}function o(){return(o=Object.assign.bind()).apply(this,arguments)}e.s(["hasAddon",0,r,"hasPrefixSuffix",0,a,"resolveOnChange",0,i],325336);let s=n.default.forwardRef((e,l)=>{let{inputElement:i,children:s,prefixCls:c,prefix:u,suffix:d,addonBefore:p,addonAfter:f,className:m,style:g,disabled:x,readOnly:h,focused:b,triggerFocus:y,allowClear:v,value:w,handleReset:E,hidden:$,classes:S,classNames:C,dataAttrs:k,styles:R,components:N,onClear:I}=e,z=s??i,T=N?.affixWrapper||"span",j=N?.groupWrapper||"span",A=N?.wrapper||"span",B=N?.groupAddon||"span",H=(0,n.useRef)(null),M=a(e),L=(0,n.cloneElement)(z,{value:w,className:(0,t.clsx)(z.props?.className,!M&&C?.variant)||null}),W=(0,n.useRef)(null);if(n.default.useImperativeHandle(l,()=>({nativeElement:W.current||H.current})),M){let e=null;if(v){let r=!x&&!h&&w,a=`${c}-clear-icon`,l="object"==typeof v&&v?.clearIcon?v.clearIcon:"✖";e=n.default.createElement("button",{type:"button",tabIndex:-1,onClick:e=>{E?.(e),I?.()},onMouseDown:e=>e.preventDefault(),className:(0,t.clsx)(a,{[`${a}-hidden`]:!r,[`${a}-has-suffix`]:!!d})},l)}let r=`${c}-affix-wrapper`,a=(0,t.clsx)(r,{[`${c}-disabled`]:x,[`${r}-disabled`]:x,[`${r}-focused`]:b,[`${r}-readonly`]:h,[`${r}-input-with-clear-btn`]:d&&v&&w},S?.affixWrapper,C?.affixWrapper,C?.variant),l=(d||v)&&n.default.createElement("span",{className:(0,t.clsx)(`${c}-suffix`,C?.suffix),style:R?.suffix},e,d);L=n.default.createElement(T,o({className:a,style:R?.affixWrapper,onClick:e=>{H.current?.contains(e.target)&&y?.()}},k?.affixWrapper,{ref:H}),u&&n.default.createElement("span",{className:(0,t.clsx)(`${c}-prefix`,C?.prefix),style:R?.prefix},u),L,l)}if(r(e)){let e=`${c}-group`,r=`${e}-addon`,a=`${e}-wrapper`,l=(0,t.clsx)(`${c}-wrapper`,e,S?.wrapper,C?.wrapper),i=(0,t.clsx)(a,{[`${a}-disabled`]:x},S?.group,C?.groupWrapper);L=n.default.createElement(j,{className:i,ref:W},n.default.createElement(A,{className:l},p&&n.default.createElement(B,{className:r},p),L,f&&n.default.createElement(B,{className:r},f)))}return n.default.cloneElement(L,{className:(0,t.clsx)(L.props?.className,m)||null,style:{...L.props?.style,...g},hidden:$})});var c=e.i(56926),u=e.i(77682);function d(e,t){return n.useMemo(()=>{let n={};t&&(n.show="object"==typeof t&&t.formatter?t.formatter:!!t);let{show:r,...a}=n={...n,...e};return{...a,show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:a.strategy||(e=>e.length)}},[e,t])}e.s(["default",0,d],108154);var p=e.i(312744);function f(){return(f=Object.assign.bind()).apply(this,arguments)}let m=(0,n.forwardRef)((e,r)=>{let a,{autoComplete:l,onChange:o,onFocus:m,onBlur:g,onPressEnter:x,onKeyDown:h,onKeyUp:b,prefixCls:y="rc-input",disabled:v,htmlSize:w,className:E,maxLength:$,suffix:S,showCount:C,count:k,type:R="text",classes:N,classNames:I,styles:z,onCompositionStart:T,onCompositionEnd:j,...A}=e,[B,H]=(0,n.useState)(!1),M=(0,n.useRef)(!1),L=(0,n.useRef)(!1),W=(0,n.useRef)(null),D=(0,n.useRef)(null),F=e=>{W.current&&(0,p.triggerFocus)(W.current,e)},[O,P]=(0,c.default)(e.defaultValue,e.value),V=null==O?"":String(O),[q,_]=(0,n.useState)(null),K=d(k,C),U=K.max||$,X=K.strategy(V),G=!!U&&X>U;(0,n.useImperativeHandle)(r,()=>({focus:F,blur:()=>{W.current?.blur()},setSelectionRange:(e,t,n)=>{W.current?.setSelectionRange(e,t,n)},select:()=>{W.current?.select()},input:W.current,nativeElement:D.current?.nativeElement||W.current})),(0,n.useEffect)(()=>{L.current&&(L.current=!1),H(e=>(!e||!v)&&e)},[v]);let Q=(e,t,n)=>{let r=t;if(!M.current&&K.exceedFormatter&&K.max&&K.strategy(t)>K.max)r=K.exceedFormatter(t,{max:K.max}),t!==r&&_([W.current?.selectionStart||0,W.current?.selectionEnd||0]);else if("compositionEnd"===n.source)return;P(r),W.current&&i(W.current,e,o,r)};(0,n.useEffect)(()=>{q&&W.current?.setSelectionRange(...q)},[q]);let Y=G&&`${y}-out-of-range`;return n.default.createElement(s,f({},A,{prefixCls:y,className:(0,t.clsx)(E,Y),handleReset:e=>{P(""),F(),W.current&&i(W.current,e,o)},value:V,focused:B,triggerFocus:F,suffix:(()=>{let e=Number(U)>0;if(S||K.show){let r=K.showFormatter?K.showFormatter({value:V,count:X,maxLength:U}):`${X}${e?` / ${U}`:""}`;return n.default.createElement(n.default.Fragment,null,K.show&&n.default.createElement("span",{className:(0,t.clsx)(`${y}-show-count-suffix`,{[`${y}-show-count-has-suffix`]:!!S},I?.count),style:{...z?.count}},r),S)}return null})(),disabled:v,classes:N,classNames:I,styles:z,ref:D}),(a=(0,u.default)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),n.default.createElement("input",f({autoComplete:l},a,{onChange:e=>{Q(e,e.target.value,{source:"change"})},onFocus:e=>{H(!0),m?.(e)},onBlur:e=>{L.current&&(L.current=!1),H(!1),g?.(e)},onKeyDown:e=>{!x||"Enter"!==e.key||L.current||e.nativeEvent.isComposing||(L.current=!0,x(e)),h?.(e)},onKeyUp:e=>{"Enter"===e.key&&(L.current=!1),b?.(e)},className:(0,t.clsx)(y,{[`${y}-disabled`]:v},I?.input),style:z?.input,ref:W,size:w,type:R,onCompositionStart:e=>{M.current=!0,T?.(e)},onCompositionEnd:e=>{M.current=!1,Q(e,e.currentTarget.value,{source:"compositionEnd"}),j?.(e)}}))))});e.s(["default",()=>m],636832),e.i(636832),e.s(["BaseInput",()=>s,"default",()=>m],608427);var g=e.i(876352),x=e.i(934854),h=e=>{let t;return(0,x.isPlainObject)(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:n.default.createElement(g.default,null)}),t};e.s(["default",()=>h],782041)},733952,e=>{"use strict";var t=e.i(391398),n=e.i(360618),r=e.i(203112),a=e.i(82275),l=e.i(313367),i=e.i(946077),o=e.i(326440),s=e.i(560370),c=e.i(535898);async function u(e){return(0,c.request)("/api/card_fake_list",{params:e})}let d=(0,e.i(827830).createStyles)(({token:e})=>({card:{".ant-card-meta-title":{marginBottom:"12px","& > a":{display:"inline-block",maxWidth:"100%",color:e.colorTextHeading}},".ant-card-body:hover":{".ant-card-meta-title > a":{color:e.colorPrimary}}},item:{height:"64px"},cardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},extraImg:{width:"155px",marginTop:"-20px",textAlign:"center",img:{width:"100%"},[`@media screen and (max-width: ${e.screenMD}px)`]:{display:"none"}},newButton:{width:"100%",height:"201px",color:e.colorTextSecondary,backgroundColor:e.colorBgContainer,borderColor:e.colorBorder},cardAvatar:{width:"48px",height:"48px",borderRadius:"48px"},cardDescription:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all"},pageHeaderContent:{position:"relative",overflow:"visible",[`@media screen and (max-width: ${e.screenSM}px)`]:{paddingBottom:"30px"}},contentLink:{display:"flex",flexWrap:"nowrap",marginTop:"16px",a:{display:"inline-flex",alignItems:"center",marginRight:"32px",whiteSpace:"nowrap",img:{width:"24px",flexShrink:0}},img:{marginRight:"8px"},[`@media screen and (max-width: ${e.screenLG}px)`]:{a:{marginRight:"16px"}},[`@media screen and (max-width: ${e.screenSM}px)`]:{position:"absolute",bottom:"-4px",left:"0",width:"1000px",a:{marginRight:"16px"},img:{marginRight:"4px"}}}})),{Paragraph:p}=s.Typography;var f=()=>{let{styles:e}=d(),{data:s,isLoading:c}=(0,a.useQuery)({queryKey:["card-list"],queryFn:()=>u({count:8}).then(e=>e.data)}),f=s?.list||[],m=(0,t.jsxs)("div",{className:e.pageHeaderContent,children:[(0,t.jsx)("p",{children:"段落示意:蚂蚁集团设计平台 ant.design,用最小的工作量,无缝接入蚂蚁集团生态, 提供跨越设计与开发的体验解决方案。"}),(0,t.jsxs)("div",{className:e.contentLink,children:[(0,t.jsxs)("a",{children:[(0,t.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/MjEImQtenlyueSmVEfUD.svg"})," ","快速开始"]}),(0,t.jsxs)("a",{children:[(0,t.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/NbuDUAuBlIApFuDvWiND.svg"})," ","产品简介"]}),(0,t.jsxs)("a",{children:[(0,t.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/ohOEPSYdDTNnyMbGuyLb.svg"})," ","产品文档"]})]})]}),g=(0,t.jsx)("div",{className:e.extraImg,children:(0,t.jsx)("img",{alt:"这是一个标题",src:"https://gw.alipayobjects.com/zos/rmsportal/RzwpdLnhmvDJToTdfDPe.png"})});return(0,t.jsx)(r.PageContainer,{content:m,extraContent:g,children:(0,t.jsx)("div",{className:e.cardList,children:(0,t.jsx)(o.List,{rowKey:"id",loading:c,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:[{},...f],renderItem:r=>r?.id?(0,t.jsx)(o.List.Item,{children:(0,t.jsx)(i.Card,{hoverable:!0,className:e.card,actions:[(0,t.jsx)("a",{children:"操作一"},"option1"),(0,t.jsx)("a",{children:"操作二"},"option2")],children:(0,t.jsx)(i.Card.Meta,{avatar:(0,t.jsx)("img",{alt:"",className:e.cardAvatar,src:r.avatar}),title:(0,t.jsx)("a",{children:r.title}),description:(0,t.jsx)(p,{className:e.item,ellipsis:{rows:3},children:r.description})})})},r.id):(0,t.jsx)(o.List.Item,{children:(0,t.jsxs)(l.Button,{type:"dashed",className:e.newButton,children:[(0,t.jsx)(n.PlusOutlined,{})," 新增产品"]})})})})})};e.s(["default",()=>f],733952)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])}]);