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
14 KiB
1 line
14 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[38833],{77578:function(e,t,n){n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},39722:function(e,t,n){n.d(t,{t5:function(){return u}});var o=n(92310),r=n.n(o),l=n(55477),a=n(59301),i=n(36355),s=n(77578),c=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const u=e=>{const{hashId:t,prefixCls:n,className:o,style:i,placement:c="top",title:p,content:u,children:d}=e;return a.createElement("div",{className:r()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:i},a.createElement("div",{className:`${n}-arrow`}),a.createElement(l.G,Object.assign({},e,{className:t,prefixCls:n}),d||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,s.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,s.Z)(n)))})(n,p,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=p(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(i.E_),r=o("popover",t),[l,s]=(0,c.Z)(r);return l(a.createElement(u,Object.assign({},n,{prefixCls:r,hashId:s})))}},60324:function(e,t,n){var o=n(92310),r=n.n(o),l=n(59301),a=n(77578),i=n(62892),s=n(36355),c=n(6848),p=n(39722),u=n(17356),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const m=e=>{let{title:t,content:n,prefixCls:o}=e;return l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),l.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},f=l.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:p,placement:f="top",trigger:v="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:b=.1,overlayStyle:y={}}=e,h=d(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:C}=l.useContext(s.E_),w=C("popover",n),[O,x]=(0,u.Z)(w),$=C(),N=r()(p,x);return O(l.createElement(c.Z,Object.assign({placement:f,trigger:v,mouseEnterDelay:g,mouseLeaveDelay:b,overlayStyle:y},h,{prefixCls:w,overlayClassName:N,ref:t,overlay:o||a?l.createElement(m,{prefixCls:w,title:o,content:a}):null,transitionName:(0,i.m)($,"zoom-big",h.transitionName),"data-popover-inject":!0})))}));f._InternalPanelDoNotUseOrYouWillBeFired=p.ZP,t.Z=f},17356:function(e,t,n){var o=n(17313),r=n(29878),l=n(19447),a=n(33166),i=n(83116),s=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:a,popoverPadding:i,boxShadowSecondary:s,colorTextHeading:c,borderRadiusLG:p,zIndexPopup:u,marginXS:d,colorBgElevated:m,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:p,boxShadow:s,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,l.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},p=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:a,fontSize:i,lineHeight:s,padding:c}=e,p=a-Math.round(i*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${p/2}px ${c}px ${p/2-n}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${c}px`}}}};t.Z=(0,i.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,l=(0,s.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(l),p(l),o&&u(l),(0,r._y)(l,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},57809:function(e,t,n){var o=n(92310),r=n.n(o),l=n(77861),a=n(55405),i=n(59301),s=n(53487),c=n(62892),p=n(19080),u=n(36355),d=n(1684),m=n(93891),f=n(19716),v=n(32441),g=n(33234),b=n(14154),y=n(58582),h=n(84443),C=n(66339),w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const O="SECRET_COMBOBOX_MODE_DO_NOT_USE",x=(e,t)=>{var n,{prefixCls:o,bordered:s=!0,className:x,rootClassName:$,getPopupContainer:N,popupClassName:E,dropdownClassName:P,listHeight:S=256,placement:I,listItemHeight:Z=24,size:j,disabled:k,notFoundContent:M,status:W,builtinPlacements:R,dropdownMatchSelectWidth:_,popupMatchSelectWidth:D,direction:F,style:z,allowClear:A}=e,B=w(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:T,getPrefixCls:H,renderEmpty:L,direction:V,virtual:G,popupMatchSelectWidth:X,popupOverflow:Y,select:U}=i.useContext(u.E_),Q=H("select",o),q=H(),J=null!=F?F:V,{compactSize:K,compactItemClassnames:ee}=(0,g.ri)(Q,J),[te,ne]=(0,b.Z)(Q),oe=i.useMemo((()=>{const{mode:e}=B;if("combobox"!==e)return e===O?"combobox":e}),[B.mode]),re="multiple"===oe||"tags"===oe,le=(0,h.Z)(B.suffixIcon,B.showArrow),ae=null!==(n=null!=D?D:_)&&void 0!==n?n:X,{status:ie,hasFeedback:se,isFormItemInput:ce,feedbackIcon:pe}=i.useContext(v.aM),ue=(0,p.F)(ie,W);let de;de=void 0!==M?M:"combobox"===oe?null:(null==L?void 0:L("Select"))||i.createElement(m.Z,{componentName:"Select"});const{suffixIcon:me,itemIcon:fe,removeIcon:ve,clearIcon:ge}=(0,C.Z)(Object.assign(Object.assign({},B),{multiple:re,hasFeedback:se,feedbackIcon:pe,showSuffixIcon:le,prefixCls:Q,showArrow:B.showArrow,componentName:"Select"})),be=!0===A?{clearIcon:ge}:A,ye=(0,a.Z)(B,["suffixIcon","itemIcon"]),he=r()(E||P,{[`${Q}-dropdown-${J}`]:"rtl"===J},$,ne),Ce=(0,f.Z)((e=>{var t;return null!==(t=null!=j?j:K)&&void 0!==t?t:e})),we=i.useContext(d.Z),Oe=null!=k?k:we,xe=r()({[`${Q}-lg`]:"large"===Ce,[`${Q}-sm`]:"small"===Ce,[`${Q}-rtl`]:"rtl"===J,[`${Q}-borderless`]:!s,[`${Q}-in-form-item`]:ce},(0,p.Z)(Q,ue,se),ee,null==U?void 0:U.className,x,$,ne),$e=i.useMemo((()=>void 0!==I?I:"rtl"===J?"bottomRight":"bottomLeft"),[I,J]),Ne=(0,y.Z)(R,Y);return te(i.createElement(l.ZP,Object.assign({ref:t,virtual:G,showSearch:null==U?void 0:U.showSearch},ye,{style:Object.assign(Object.assign({},null==U?void 0:U.style),z),dropdownMatchSelectWidth:ae,builtinPlacements:Ne,transitionName:(0,c.m)(q,"slide-up",B.transitionName),listHeight:S,listItemHeight:Z,mode:oe,prefixCls:Q,placement:$e,direction:J,suffixIcon:me,menuItemSelectedIcon:fe,removeIcon:ve,allowClear:be,notFoundContent:de,className:xe,getPopupContainer:N||T,dropdownClassName:he,disabled:Oe})))};const $=i.forwardRef(x),N=(0,s.Z)($);$.SECRET_COMBOBOX_MODE_DO_NOT_USE=O,$.Option=l.Wx,$.OptGroup=l.Xo,$._InternalPanelDoNotUseOrYouWillBeFired=N,t.default=$},81327:function(e,t,n){n.d(t,{Z:function(){return y}});var o=n(59301),r=n(92310),l=n.n(r),a=n(75440),i=n(36355),s=n(33234);const c=o.createContext({latestIndex:0}),p=c.Provider;var u=e=>{let{className:t,index:n,children:r,split:l,style:a}=e;const{latestIndex:i}=o.useContext(c);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<i&&l&&o.createElement("span",{className:`${t}-split`},l))},d=n(2856);function m(e){return["small","middle","large"].includes(e)}function f(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const g=o.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:s,space:c,direction:g}=o.useContext(i.E_),{size:b=(null==c?void 0:c.size)||"small",align:y,className:h,rootClassName:C,children:w,direction:O="horizontal",prefixCls:x,split:$,style:N,wrap:E=!1,classNames:P,styles:S}=e,I=v(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Z,j]=Array.isArray(b)?b:[b,b],k=m(j),M=m(Z),W=f(j),R=f(Z),_=(0,a.Z)(w,{keepEmpty:!0}),D=void 0===y&&"horizontal"===O?"center":y,F=s("space",x),[z,A]=(0,d.Z)(F),B=l()(F,null==c?void 0:c.className,A,`${F}-${O}`,{[`${F}-rtl`]:"rtl"===g,[`${F}-align-${D}`]:D,[`${F}-gap-row-${j}`]:k,[`${F}-gap-col-${Z}`]:M},h,C),T=l()(`${F}-item`,null!==(n=null==P?void 0:P.item)&&void 0!==n?n:null===(r=null==c?void 0:c.classNames)||void 0===r?void 0:r.item);let H=0;const L=_.map(((e,t)=>{var n,r;null!=e&&(H=t);const l=e&&e.key||`${T}-${t}`;return o.createElement(u,{className:T,key:l,index:t,split:$,style:null!==(n=null==S?void 0:S.item)&&void 0!==n?n:null===(r=null==c?void 0:c.styles)||void 0===r?void 0:r.item},e)})),V=o.useMemo((()=>({latestIndex:H})),[H]);if(0===_.length)return null;const G={};return E&&(G.flexWrap="wrap"),!M&&R&&(G.columnGap=Z),!k&&W&&(G.rowGap=j),z(o.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},G),null==c?void 0:c.style),N)},I),o.createElement(p,{value:V},L)))}));const b=g;b.Compact=s.ZP;var y=b},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 O}});var o=n(15250),r=n(97326),l=n(90654),a=n(32235),i=n(35593),s=n(92310),c=n.n(s),p=n(25629),u=n(59301),d=n(20287),m=n(71783),f=d.Z.ESC,v=d.Z.TAB;var g=(0,u.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,l=(0,u.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,p.sQ)(t,null==l?void 0:l.ref);return u.createElement(u.Fragment,null,o&&u.createElement("div",{className:"".concat(r,"-arrow")}),u.cloneElement(l,{ref:(0,p.Yr)(l)?a:void 0}))})),b={adjustX:1,adjustY:1},y=[0,0],h={topLeft:{points:["bl","tl"],overflow:b,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:b,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:b,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:b,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:b,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:b,offset:[0,4],targetOffset:y}},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,s=e.arrow,d=void 0!==s&&s,b=e.prefixCls,y=void 0===b?"rc-dropdown":b,w=e.transitionName,O=e.animation,x=e.align,$=e.placement,N=void 0===$?"bottomLeft":$,E=e.placements,P=void 0===E?h:E,S=e.getPopupContainer,I=e.showAction,Z=e.hideAction,j=e.overlayClassName,k=e.overlayStyle,M=e.visible,W=e.trigger,R=void 0===W?["hover"]:W,_=e.autoFocus,D=e.overlay,F=e.children,z=e.onVisibleChange,A=(0,a.Z)(e,C),B=u.useState(),T=(0,l.Z)(B,2),H=T[0],L=T[1],V="visible"in e?M:H,G=u.useRef(null),X=u.useRef(null),Y=u.useRef(null);u.useImperativeHandle(t,(function(){return G.current}));var U=function(e){L(e),null==z||z(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,l=e.overlayRef,a=u.useRef(!1),i=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=l.current)||void 0===e||!e.focus||(l.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case f:i();break;case v:var t=!1;a.current||(t=s()),t?e.preventDefault():i()}};u.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&(0,m.Z)(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:V,triggerRef:Y,onVisibleChange:U,autoFocus:_,overlayRef:X});var Q,q,J,K=function(){return u.createElement(g,{ref:X,overlay:D,prefixCls:y,arrow:d})},ee=u.cloneElement(F,{className:c()(null===(n=F.props)||void 0===n?void 0:n.className,V&&(Q=e.openClassName,void 0!==Q?Q:"".concat(y,"-open"))),ref:(0,p.Yr)(F)?(0,p.sQ)(Y,F.ref):void 0}),te=Z;return te||-1===R.indexOf("contextMenu")||(te=["click"]),u.createElement(i.Z,(0,o.Z)({builtinPlacements:P},A,{prefixCls:y,ref:G,popupClassName:c()(j,(0,r.Z)({},"".concat(y,"-show-arrow"),d)),popupStyle:k,action:R,showAction:I,hideAction:te,popupPlacement:N,popupAlign:x,popupTransitionName:w,popupAnimation:O,popupVisible:V,stretch:(q=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?q:!J)?"minWidth":""),popup:"function"==typeof D?K:K(),onPopupVisibleChange:U,onPopupClick:function(t){var n=e.onOverlayClick;L(!1),n&&n(t)},getPopupContainer:S}),ee)}var O=u.forwardRef(w)}}]); |