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.
1 line
12 KiB
1 line
12 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[20695],{35472:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1565),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z"}}]},name:"file-word",theme:"outlined"},a=n(68475),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},11407:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1565),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(68475),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},88845:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1565),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(68475),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},90784:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1565),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},a=n(68475),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var l=o.forwardRef(s)},50371:function(e,t){t.Z=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const r=n[t];void 0!==r&&(e[t]=r)}))}return e}},26743:function(e,t,n){n.d(t,{C:function(){return Z}});var r=n(92310),o=n.n(r),i=n(28647),a=n(16863),s=n(59301),l=n(69507),c=n(36355),u=n(8628);var f=s.createContext({}),p=n(17313),g=n(83116),d=n(37613);const v=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:g,borderRadiusLG:d,borderRadiusSM:v,lineWidth:m,lineType:h}=e,b=(e,t,o)=>({width:e,height:e,lineHeight:e-2*m+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${m}px ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,g)),{"&-lg":Object.assign({},b(s,u,d)),"&-sm":Object.assign({},b(l,f,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},m=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}};var h=(0,g.Z)("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,d.TS)(e,{avatarBg:n,avatarColor:t});return[v(r),m(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}})),b=n(19716),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const C=(e,t)=>{const[n,r]=s.useState(1),[p,g]=s.useState(!1),[d,v]=s.useState(!0),m=s.useRef(null),C=s.useRef(null),w=(0,a.sQ)(t,m),{getPrefixCls:S,avatar:x}=s.useContext(c.E_),O=s.useContext(f),E=()=>{if(!C.current||!m.current)return;const t=C.current.offsetWidth,n=m.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&r(n-2*o<t?(n-2*o)/t:1)}};s.useEffect((()=>{g(!0)}),[]),s.useEffect((()=>{v(!0),r(1)}),[e.src]),s.useEffect(E,[e.gap]);const z=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&v(!1)},{prefixCls:$,shape:Z,size:j,src:k,srcSet:R,icon:M,className:N,rootClassName:L,alt:P,draggable:A,children:H,crossOrigin:F}=e,T=y(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),V=(0,b.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=j?j:null==O?void 0:O.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),B=Object.keys("object"==typeof V&&V||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),G=(0,u.Z)(B),I=s.useMemo((()=>{if("object"!=typeof V)return{};const e=l.c4.find((e=>G[e])),t=V[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:M?t/2:18}:{}}),[G,V]),W=S("avatar",$),[X,D]=h(W),_=o()({[`${W}-lg`]:"large"===V,[`${W}-sm`]:"small"===V}),Q=s.isValidElement(k),Y=Z||(null==O?void 0:O.shape)||"circle",q=o()(W,_,null==x?void 0:x.className,`${W}-${Y}`,{[`${W}-image`]:Q||k&&d,[`${W}-icon`]:!!M},N,L,D),J="number"==typeof V?{width:V,height:V,lineHeight:`${V}px`,fontSize:M?V/2:18}:{};let K;if("string"==typeof k&&d)K=s.createElement("img",{src:k,draggable:A,srcSet:R,onError:z,alt:P,crossOrigin:F});else if(Q)K=k;else if(M)K=M;else if(p||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},r="number"==typeof V?{lineHeight:`${V}px`}:{};K=s.createElement(i.Z,{onResize:E},s.createElement("span",{className:`${W}-string`,ref:C,style:Object.assign(Object.assign({},r),t)},H))}else K=s.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:C},H);return delete T.onError,delete T.gap,X(s.createElement("span",Object.assign({},T,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J),I),null==x?void 0:x.style),T.style),className:q,ref:w}),K))};var w=s.forwardRef(C),S=n(55401),x=n(60324),O=n(92343);const E=e=>{const{size:t,shape:n}=s.useContext(f),r=s.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return s.createElement(f.Provider,{value:r},e.children)};var z=e=>{const{getPrefixCls:t,direction:n}=s.useContext(c.E_),{prefixCls:r,className:i,rootClassName:a,style:l,maxCount:u,maxStyle:f,size:p,shape:g,maxPopoverPlacement:d="top",maxPopoverTrigger:v="hover",children:m}=e,b=t("avatar",r),y=`${b}-group`,[C,z]=h(b),$=o()(y,{[`${y}-rtl`]:"rtl"===n},i,a,z),Z=(0,S.Z)(m).map(((e,t)=>(0,O.Tm)(e,{key:`avatar-key-${t}`}))),j=Z.length;if(u&&u<j){const e=Z.slice(0,u),t=Z.slice(u,j);return e.push(s.createElement(x.Z,{key:"avatar-popover-key",content:t,trigger:v,placement:d,overlayClassName:`${y}-popover`},s.createElement(w,{style:f},"+"+(j-u)))),C(s.createElement(E,{shape:g,size:p},s.createElement("div",{className:$,style:l},e)))}return C(s.createElement(E,{shape:g,size:p},s.createElement("div",{className:$,style:l},Z)))};const $=w;$.Group=z;var Z=$},8378:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},31561:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(1565),o=n(22386),i=n(88703),a=n(52167),s=n(35593),l=n(92310),c=n.n(l),u=n(16863),f=n(59301),p=n(13108),g=n(3490),d=p.Z.ESC,v=p.Z.TAB;var m=(0,f.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,f.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,u.sQ)(t,null==i?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))})),h={adjustX:1,adjustY:1},b=[0,0],y={topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:b},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:b},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:b},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:b},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:b}},C=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,l=e.arrow,p=void 0!==l&&l,h=e.prefixCls,b=void 0===h?"rc-dropdown":h,w=e.transitionName,S=e.animation,x=e.align,O=e.placement,E=void 0===O?"bottomLeft":O,z=e.placements,$=void 0===z?y:z,Z=e.getPopupContainer,j=e.showAction,k=e.hideAction,R=e.overlayClassName,M=e.overlayStyle,N=e.visible,L=e.trigger,P=void 0===L?["hover"]:L,A=e.autoFocus,H=e.overlay,F=e.children,T=e.onVisibleChange,V=(0,a.Z)(e,C),B=f.useState(),G=(0,i.Z)(B,2),I=G[0],W=G[1],X="visible"in e?N:I,D=f.useRef(null),_=f.useRef(null),Q=f.useRef(null);f.useImperativeHandle(t,(function(){return D.current}));var Y=function(e){W(e),null==T||T(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=f.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case d:s();break;case v:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};f.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&(0,g.Z)(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:X,triggerRef:Q,onVisibleChange:Y,autoFocus:A,overlayRef:_});var q,J,K,U=function(){return f.createElement(m,{ref:_,overlay:H,prefixCls:b,arrow:p})},ee=f.cloneElement(F,{className:c()(null===(n=F.props)||void 0===n?void 0:n.className,X&&(q=e.openClassName,void 0!==q?q:"".concat(b,"-open"))),ref:(0,u.Yr)(F)?(0,u.sQ)(Q,F.ref):void 0}),te=k;return te||-1===P.indexOf("contextMenu")||(te=["click"]),f.createElement(s.Z,(0,r.Z)({builtinPlacements:$},V,{prefixCls:b,ref:D,popupClassName:c()(R,(0,o.Z)({},"".concat(b,"-show-arrow"),p)),popupStyle:M,action:P,showAction:j,hideAction:te,popupPlacement:E,popupAlign:x,popupTransitionName:w,popupAnimation:S,popupVisible:X,stretch:(J=e.minOverlayWidthMatchTrigger,K=e.alignPoint,("minOverlayWidthMatchTrigger"in e?J:!K)?"minWidth":""),popup:"function"==typeof H?U:U(),onPopupVisibleChange:Y,onPopupClick:function(t){var n=e.onOverlayClick;W(!1),n&&n(t)},getPopupContainer:Z}),ee)}var S=f.forwardRef(w)}}]); |