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
15 KiB
1 line
15 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[46483,74324],{25032:function(e,t,o){o.d(t,{Z:function(){return s}});var n=o(74932),r=o(59301),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=o(1393),l=function(e,t){return r.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))};var s=r.forwardRef(l)},56762:function(e,t,o){o.d(t,{Z:function(){return r}});var n=o(59301);function r(){const[,e]=n.useReducer((e=>e+1),0);return e}},24905:function(e,t,o){o.d(t,{Z:function(){return $}});var n=o(92310),r=o.n(n),a=o(5630),i=o(59301),l=o(36355),s=o(1684),c=o(32441);var u=i.createContext(null),d=o(98447),p=o(14088),f=o(4572),m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const b=(e,t)=>{var o;const{prefixCls:n,className:b,rootClassName:v,children:h,indeterminate:g=!1,style:C,onMouseEnter:y,onMouseLeave:w,skipGroup:O=!1,disabled:x}=e,$=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:E}=i.useContext(l.E_),I=i.useContext(u),{isFormItemInput:N}=i.useContext(c.aM),P=i.useContext(s.Z),Z=null!==(o=(null==I?void 0:I.disabled)||x)&&void 0!==o?o:P,M=i.useRef($.value);i.useEffect((()=>{null==I||I.registerValue($.value)}),[]),i.useEffect((()=>{if(!O)return $.value!==M.current&&(null==I||I.cancelValue(M.current),null==I||I.registerValue($.value),M.current=$.value),()=>null==I?void 0:I.cancelValue($.value)}),[$.value]);const j=S("checkbox",n),[R,D]=(0,d.ZP)(j),V=Object.assign({},$);I&&!O&&(V.onChange=function(){$.onChange&&$.onChange.apply($,arguments),I.toggleOption&&I.toggleOption({label:h,value:$.value})},V.name=I.name,V.checked=I.value.includes($.value));const W=r()(`${j}-wrapper`,{[`${j}-rtl`]:"rtl"===k,[`${j}-wrapper-checked`]:V.checked,[`${j}-wrapper-disabled`]:Z,[`${j}-wrapper-in-form-item`]:N},null==E?void 0:E.className,b,v,D),z=r()({[`${j}-indeterminate`]:g},f.A,D),B=g?"mixed":void 0;return R(i.createElement(p.Z,{component:"Checkbox",disabled:Z},i.createElement("label",{className:W,style:Object.assign(Object.assign({},null==E?void 0:E.style),C),onMouseEnter:y,onMouseLeave:w},i.createElement(a.Z,Object.assign({"aria-checked":B},V,{prefixCls:j,className:z,disabled:Z,ref:t})),void 0!==h&&i.createElement("span",null,h))))};var v=i.forwardRef(b),h=o(82986),g=o(55405),C=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const y=(e,t)=>{const{defaultValue:o,children:n,options:a=[],prefixCls:s,className:c,rootClassName:p,style:f,onChange:m}=e,b=C(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=i.useContext(l.E_),[O,x]=i.useState(b.value||o||[]),[$,S]=i.useState([]);i.useEffect((()=>{"value"in b&&x(b.value||[])}),[b.value]);const k=i.useMemo((()=>a.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[a]),E=y("checkbox",s),I=`${E}-group`,[N,P]=(0,d.ZP)(E),Z=(0,g.Z)(b,["value","disabled"]),M=a.length?k.map((e=>i.createElement(v,{prefixCls:E,key:e.value.toString(),disabled:"disabled"in e?e.disabled:b.disabled,value:e.value,checked:O.includes(e.value),onChange:e.onChange,className:`${I}-item`,style:e.style,title:e.title},e.label))):n,j={toggleOption:e=>{const t=O.indexOf(e.value),o=(0,h.Z)(O);-1===t?o.push(e.value):o.splice(t,1),"value"in b||x(o),null==m||m(o.filter((e=>$.includes(e))).sort(((e,t)=>k.findIndex((t=>t.value===e))-k.findIndex((e=>e.value===t)))))},value:O,disabled:b.disabled,name:b.name,registerValue:e=>{S((t=>[].concat((0,h.Z)(t),[e])))},cancelValue:e=>{S((t=>t.filter((t=>t!==e))))}},R=r()(I,{[`${I}-rtl`]:"rtl"===w},c,p,P);return N(i.createElement("div",Object.assign({className:R,style:f},Z,{ref:t}),i.createElement(u.Provider,{value:j},M)))},w=i.forwardRef(y);var O=i.memo(w);const x=v;x.Group=O,x.__ANT_CHECKBOX=!0;var $=x},98447:function(e,t,o){o.d(t,{C2:function(){return l}});var n=o(17313),r=o(37613),a=o(83116);const i=e=>{const{checkboxCls:t}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,n.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[o]:Object.assign(Object.assign({},(0,n.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,n.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,n.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${o}-checked:not(${o}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function l(e,t){const o=(0,r.TS)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[i(o)]}t.ZP=(0,a.Z)("Checkbox",((e,t)=>{let{prefixCls:o}=t;return[l(o,e)]}))},57809:function(e,t,o){var n=o(92310),r=o.n(n),a=o(77861),i=o(55405),l=o(59301),s=o(53487),c=o(62892),u=o(19080),d=o(36355),p=o(1684),f=o(93891),m=o(19716),b=o(32441),v=o(33234),h=o(14154),g=o(58582),C=o(84443),y=o(66339),w=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const O="SECRET_COMBOBOX_MODE_DO_NOT_USE",x=(e,t)=>{var o,{prefixCls:n,bordered:s=!0,className:x,rootClassName:$,getPopupContainer:S,popupClassName:k,dropdownClassName:E,listHeight:I=256,placement:N,listItemHeight:P=24,size:Z,disabled:M,notFoundContent:j,status:R,builtinPlacements:D,dropdownMatchSelectWidth:V,popupMatchSelectWidth:W,direction:z,style:B,allowClear:F}=e,_=w(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:H,getPrefixCls:T,renderEmpty:A,direction:L,virtual:X,popupMatchSelectWidth:G,popupOverflow:Y,select:U}=l.useContext(d.E_),Q=T("select",n),K=T(),q=null!=z?z:L,{compactSize:J,compactItemClassnames:ee}=(0,v.ri)(Q,q),[te,oe]=(0,h.Z)(Q),ne=l.useMemo((()=>{const{mode:e}=_;if("combobox"!==e)return e===O?"combobox":e}),[_.mode]),re="multiple"===ne||"tags"===ne,ae=(0,C.Z)(_.suffixIcon,_.showArrow),ie=null!==(o=null!=W?W:V)&&void 0!==o?o:G,{status:le,hasFeedback:se,isFormItemInput:ce,feedbackIcon:ue}=l.useContext(b.aM),de=(0,u.F)(le,R);let pe;pe=void 0!==j?j:"combobox"===ne?null:(null==A?void 0:A("Select"))||l.createElement(f.Z,{componentName:"Select"});const{suffixIcon:fe,itemIcon:me,removeIcon:be,clearIcon:ve}=(0,y.Z)(Object.assign(Object.assign({},_),{multiple:re,hasFeedback:se,feedbackIcon:ue,showSuffixIcon:ae,prefixCls:Q,showArrow:_.showArrow,componentName:"Select"})),he=!0===F?{clearIcon:ve}:F,ge=(0,i.Z)(_,["suffixIcon","itemIcon"]),Ce=r()(k||E,{[`${Q}-dropdown-${q}`]:"rtl"===q},$,oe),ye=(0,m.Z)((e=>{var t;return null!==(t=null!=Z?Z:J)&&void 0!==t?t:e})),we=l.useContext(p.Z),Oe=null!=M?M:we,xe=r()({[`${Q}-lg`]:"large"===ye,[`${Q}-sm`]:"small"===ye,[`${Q}-rtl`]:"rtl"===q,[`${Q}-borderless`]:!s,[`${Q}-in-form-item`]:ce},(0,u.Z)(Q,de,se),ee,null==U?void 0:U.className,x,$,oe),$e=l.useMemo((()=>void 0!==N?N:"rtl"===q?"bottomRight":"bottomLeft"),[N,q]),Se=(0,g.Z)(D,Y);return te(l.createElement(a.ZP,Object.assign({ref:t,virtual:X,showSearch:null==U?void 0:U.showSearch},ge,{style:Object.assign(Object.assign({},null==U?void 0:U.style),B),dropdownMatchSelectWidth:ie,builtinPlacements:Se,transitionName:(0,c.m)(K,"slide-up",_.transitionName),listHeight:I,listItemHeight:P,mode:ne,prefixCls:Q,placement:$e,direction:q,suffixIcon:fe,menuItemSelectedIcon:me,removeIcon:be,allowClear:he,notFoundContent:pe,className:xe,getPopupContainer:S||H,dropdownClassName:Ce,disabled:Oe})))};const $=l.forwardRef(x),S=(0,s.Z)($);$.SECRET_COMBOBOX_MODE_DO_NOT_USE=O,$.Option=a.Wx,$.OptGroup=a.Xo,$._InternalPanelDoNotUseOrYouWillBeFired=S,t.default=$},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,o){o.d(t,{Z:function(){return O}});var n=o(74932),r=o(53646),a=o(33297),i=o(82468),l=o(35593),s=o(92310),c=o.n(s),u=o(25629),d=o(59301),p=o(20287),f=o(71783),m=p.Z.ESC,b=p.Z.TAB;var v=(0,d.forwardRef)((function(e,t){var o=e.overlay,n=e.arrow,r=e.prefixCls,a=(0,d.useMemo)((function(){return"function"==typeof o?o():o}),[o]),i=(0,u.sQ)(t,null==a?void 0:a.ref);return d.createElement(d.Fragment,null,n&&d.createElement("div",{className:"".concat(r,"-arrow")}),d.cloneElement(a,{ref:(0,u.Yr)(a)?i:void 0}))})),h={adjustX:1,adjustY:1},g=[0,0],C={topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:g},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:g},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:g},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:g},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:g}},y=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var o,s=e.arrow,p=void 0!==s&&s,h=e.prefixCls,g=void 0===h?"rc-dropdown":h,w=e.transitionName,O=e.animation,x=e.align,$=e.placement,S=void 0===$?"bottomLeft":$,k=e.placements,E=void 0===k?C:k,I=e.getPopupContainer,N=e.showAction,P=e.hideAction,Z=e.overlayClassName,M=e.overlayStyle,j=e.visible,R=e.trigger,D=void 0===R?["hover"]:R,V=e.autoFocus,W=e.overlay,z=e.children,B=e.onVisibleChange,F=(0,i.Z)(e,y),_=d.useState(),H=(0,a.Z)(_,2),T=H[0],A=H[1],L="visible"in e?j:T,X=d.useRef(null),G=d.useRef(null),Y=d.useRef(null);d.useImperativeHandle(t,(function(){return X.current}));var U=function(e){A(e),null==B||B(e)};!function(e){var t=e.visible,o=e.triggerRef,n=e.onVisibleChange,r=e.autoFocus,a=e.overlayRef,i=d.useRef(!1),l=function(){var e,r;t&&(null===(e=o.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==n||n(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),i.current=!0,0))},c=function(e){switch(e.keyCode){case m:l();break;case b:var t=!1;i.current||(t=s()),t?e.preventDefault():l()}};d.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&(0,f.Z)(s,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}}),[t])}({visible:L,triggerRef:Y,onVisibleChange:U,autoFocus:V,overlayRef:G});var Q,K,q,J=function(){return d.createElement(v,{ref:G,overlay:W,prefixCls:g,arrow:p})},ee=d.cloneElement(z,{className:c()(null===(o=z.props)||void 0===o?void 0:o.className,L&&(Q=e.openClassName,void 0!==Q?Q:"".concat(g,"-open"))),ref:(0,u.Yr)(z)?(0,u.sQ)(Y,z.ref):void 0}),te=P;return te||-1===D.indexOf("contextMenu")||(te=["click"]),d.createElement(l.Z,(0,n.Z)({builtinPlacements:E},F,{prefixCls:g,ref:X,popupClassName:c()(Z,(0,r.Z)({},"".concat(g,"-show-arrow"),p)),popupStyle:M,action:D,showAction:N,hideAction:te,popupPlacement:S,popupAlign:x,popupTransitionName:w,popupAnimation:O,popupVisible:L,stretch:(K=e.minOverlayWidthMatchTrigger,q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?K:!q)?"minWidth":""),popup:"function"==typeof W?J:J(),onPopupVisibleChange:U,onPopupClick:function(t){var o=e.onOverlayClick;A(!1),o&&o(t)},getPopupContainer:I}),ee)}var O=d.forwardRef(w)}}]); |