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
13 KiB
1 line
13 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[94184],{56762:function(e,t,o){"use strict";o.d(t,{Z:function(){return r}});var n=o(59301);function r(){const[,e]=n.useReducer((e=>e+1),0);return e}},57809:function(e,t,o){"use strict";var n=o(92310),r=o.n(n),i=o(77861),a=o(55405),l=o(59301),c=o(53487),s=o(62892),u=o(19080),p=o(36355),f=o(1684),d=o(93891),m=o(19716),b=o(32441),y=o(33234),v=o(14154),g=o(58582),h=o(84443),C=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:c=!0,className:x,rootClassName:E,getPopupContainer:P,popupClassName:S,dropdownClassName:j,listHeight:I=256,placement:D,listItemHeight:N=24,size:k,disabled:R,notFoundContent:M,status:_,builtinPlacements:Z,dropdownMatchSelectWidth:A,popupMatchSelectWidth:T,direction:$,style:F,allowClear:W}=e,U=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:L,renderEmpty:B,direction:V,virtual:X,popupMatchSelectWidth:z,popupOverflow:Y,select:Q}=l.useContext(p.E_),G=L("select",n),q=L(),J=null!=$?$:V,{compactSize:K,compactItemClassnames:ee}=(0,y.ri)(G,J),[te,oe]=(0,v.Z)(G),ne=l.useMemo((()=>{const{mode:e}=U;if("combobox"!==e)return e===O?"combobox":e}),[U.mode]),re="multiple"===ne||"tags"===ne,ie=(0,h.Z)(U.suffixIcon,U.showArrow),ae=null!==(o=null!=T?T:A)&&void 0!==o?o:z,{status:le,hasFeedback:ce,isFormItemInput:se,feedbackIcon:ue}=l.useContext(b.aM),pe=(0,u.F)(le,_);let fe;fe=void 0!==M?M:"combobox"===ne?null:(null==B?void 0:B("Select"))||l.createElement(d.Z,{componentName:"Select"});const{suffixIcon:de,itemIcon:me,removeIcon:be,clearIcon:ye}=(0,C.Z)(Object.assign(Object.assign({},U),{multiple:re,hasFeedback:ce,feedbackIcon:ue,showSuffixIcon:ie,prefixCls:G,showArrow:U.showArrow,componentName:"Select"})),ve=!0===W?{clearIcon:ye}:W,ge=(0,a.Z)(U,["suffixIcon","itemIcon"]),he=r()(S||j,{[`${G}-dropdown-${J}`]:"rtl"===J},E,oe),Ce=(0,m.Z)((e=>{var t;return null!==(t=null!=k?k:K)&&void 0!==t?t:e})),we=l.useContext(f.Z),Oe=null!=R?R:we,xe=r()({[`${G}-lg`]:"large"===Ce,[`${G}-sm`]:"small"===Ce,[`${G}-rtl`]:"rtl"===J,[`${G}-borderless`]:!c,[`${G}-in-form-item`]:se},(0,u.Z)(G,pe,ce),ee,null==Q?void 0:Q.className,x,E,oe),Ee=l.useMemo((()=>void 0!==D?D:"rtl"===J?"bottomRight":"bottomLeft"),[D,J]),Pe=(0,g.Z)(Z,Y);return te(l.createElement(i.ZP,Object.assign({ref:t,virtual:X,showSearch:null==Q?void 0:Q.showSearch},ge,{style:Object.assign(Object.assign({},null==Q?void 0:Q.style),F),dropdownMatchSelectWidth:ae,builtinPlacements:Pe,transitionName:(0,s.m)(q,"slide-up",U.transitionName),listHeight:I,listItemHeight:N,mode:ne,prefixCls:G,placement:Ee,direction:J,suffixIcon:de,menuItemSelectedIcon:me,removeIcon:be,allowClear:ve,notFoundContent:fe,className:xe,getPopupContainer:P||H,dropdownClassName:he,disabled:Oe})))};const E=l.forwardRef(x),P=(0,c.Z)(E);E.SECRET_COMBOBOX_MODE_DO_NOT_USE=O,E.Option=i.Wx,E.OptGroup=i.Xo,E._InternalPanelDoNotUseOrYouWillBeFired=P,t.default=E},8378:function(e,t){"use strict";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`}}})},25769:function(e,t,o){"use strict";var n=o(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var o,i,a,l,c,s,u=!1;t||(t={}),o=t.debug||!1;try{if(a=n(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},31561:function(e,t,o){"use strict";o.d(t,{Z:function(){return O}});var n=o(5891),r=o(80962),i=o(29043),a=o(19149),l=o(35593),c=o(92310),s=o.n(c),u=o(25629),p=o(59301),f=o(20287),d=o(71783),m=f.Z.ESC,b=f.Z.TAB;var y=(0,p.forwardRef)((function(e,t){var o=e.overlay,n=e.arrow,r=e.prefixCls,i=(0,p.useMemo)((function(){return"function"==typeof o?o():o}),[o]),a=(0,u.sQ)(t,null==i?void 0:i.ref);return p.createElement(p.Fragment,null,n&&p.createElement("div",{className:"".concat(r,"-arrow")}),p.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))})),v={adjustX:1,adjustY:1},g=[0,0],h={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:g},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:g},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:g},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:g},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:g}},C=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var o,c=e.arrow,f=void 0!==c&&c,v=e.prefixCls,g=void 0===v?"rc-dropdown":v,w=e.transitionName,O=e.animation,x=e.align,E=e.placement,P=void 0===E?"bottomLeft":E,S=e.placements,j=void 0===S?h:S,I=e.getPopupContainer,D=e.showAction,N=e.hideAction,k=e.overlayClassName,R=e.overlayStyle,M=e.visible,_=e.trigger,Z=void 0===_?["hover"]:_,A=e.autoFocus,T=e.overlay,$=e.children,F=e.onVisibleChange,W=(0,a.Z)(e,C),U=p.useState(),H=(0,i.Z)(U,2),L=H[0],B=H[1],V="visible"in e?M:L,X=p.useRef(null),z=p.useRef(null),Y=p.useRef(null);p.useImperativeHandle(t,(function(){return X.current}));var Q=function(e){B(e),null==F||F(e)};!function(e){var t=e.visible,o=e.triggerRef,n=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,a=p.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))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case m:l();break;case b:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};p.useEffect((function(){return t?(window.addEventListener("keydown",s),r&&(0,d.Z)(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:V,triggerRef:Y,onVisibleChange:Q,autoFocus:A,overlayRef:z});var G,q,J,K=function(){return p.createElement(y,{ref:z,overlay:T,prefixCls:g,arrow:f})},ee=p.cloneElement($,{className:s()(null===(o=$.props)||void 0===o?void 0:o.className,V&&(G=e.openClassName,void 0!==G?G:"".concat(g,"-open"))),ref:(0,u.Yr)($)?(0,u.sQ)(Y,$.ref):void 0}),te=N;return te||-1===Z.indexOf("contextMenu")||(te=["click"]),p.createElement(l.Z,(0,n.Z)({builtinPlacements:j},W,{prefixCls:g,ref:X,popupClassName:s()(k,(0,r.Z)({},"".concat(g,"-show-arrow"),f)),popupStyle:R,action:Z,showAction:D,hideAction:te,popupPlacement:P,popupAlign:x,popupTransitionName:w,popupAnimation:O,popupVisible:V,stretch:(q=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?q:!J)?"minWidth":""),popup:"function"==typeof T?K:K(),onPopupVisibleChange:Q,onPopupClick:function(t){var o=e.onOverlayClick;B(!1),o&&o(t)},getPopupContainer:I}),ee)}var O=p.forwardRef(w)},83145:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=i(o(59301)),r=i(o(25769));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var y=function(e){function t(){var e,o;s(this,t);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return b(d(o=p(this,(e=f(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=o.props,i=t.text,a=t.onCopy,l=t.children,c=t.options,s=n.default.Children.only(l),u=(0,r.default)(i,c);a&&a(i,u),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e)})),o}var o,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),o=t,i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),o=c(e,["text","onCopy","options","children"]),r=n.default.Children.only(t);return n.default.cloneElement(r,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(o,!0).forEach((function(t){b(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},o,{onClick:this.onClick}))}}],i&&u(o.prototype,i),a&&u(o,a),t}(n.default.PureComponent);t.CopyToClipboard=y,b(y,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,t,o){"use strict";var n=o(83145).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],n=0;n<e.rangeCount;n++)o.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||o.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]); |