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.
NewEduCoderBuild/p__User__Detail__virtualSpa...

225 lines
166 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[254,9,10,12],{"1ZF9":
/*!*****************************************!*\
!*** ./src/assets/images/Authorize.png ***!
\*****************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/Authorize.cc9c212f.png"},"6+eU":
/*!************************************************************!*\
!*** ./node_modules/rc-pagination/es/index.js + 4 modules ***!
\************************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-pagination/es/locale/zh_CN.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n("wx14"),r=n("rePB"),a=n("VTBJ"),i=n("1OyB"),c=n("vuIU"),l=n("Ji7U"),s=n("LK+K"),u=n("q1tI"),p=n.n(u),d=n("TSYQ"),f=n.n(d),v=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),o=f()(n,"".concat(n,"-").concat(e.page),(t={},Object(r.a)(t,"".concat(n,"-active"),e.active),Object(r.a)(t,e.className,!!e.className),Object(r.a)(t,"".concat(n,"-disabled"),!e.page),t));return p.a.createElement("li",{title:e.showTitle?e.page:null,className:o,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",p.a.createElement("a",{rel:"nofollow"},e.page)))},m=13,h=38,b=40,g=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(i.a)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,o=n.goButton,r=n.quickGo,a=n.rootPrefixCls,i=e.state.goInputText;o||""===i||t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(a,"-prev"))>=0||t.relatedTarget.className.indexOf("".concat(a,"-next"))>=0)||(e.setState({goInputText:""}),r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==m&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(c.a)(n,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,o=t.locale,r=t.rootPrefixCls,a=t.changeSize,i=t.quickGo,c=t.goButton,l=t.selectComponentClass,s=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,f=this.state.goInputText,v="".concat(r,"-options"),m=l,h=null,b=null,g=null;if(!a&&!i)return null;var y=this.getPageSizeOptions();if(a&&m){var O=y.map((function(t,n){return p.a.createElement(m.Option,{key:n,value:t.toString()},(s||e.buildOptionText)(t))}));h=p.a.createElement(m,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(v,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},O)}return i&&(c&&(g="boolean"==typeof c?p.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(v,"-quick-jumper-button")},o.jump_to_confirm):p.a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),b=p.a.createElement("div",{className:"".concat(v,"-quick-jumper")},o.jump_to,p.a.createElement("input",{disabled:d,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),o.page,g)),p.a.createElement("li",{className:"".concat(v)},h,b)}}]),n}(p.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=g,O=n("N2Kk");function j(){}function w(e,t,n){var o=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/o)+1}var C=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(e){var o;Object(i.a)(this,n),(o=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(w(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(e,t){var n=o.props.prefixCls,r=e||p.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=p.a.createElement(e,Object(a.a)({},o.props))),r},o.savePaginationNode=function(e){o.paginationNode=e},o.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==o.state.current;var t},o.shouldDisplayQuickJumper=function(){var e=o.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},o.handleKeyDown=function(e){e.keyCode!==h&&e.keyCode!==b||e.preventDefault()},o.handleKeyUp=function(e){var t=o.getValidValue(e);t!==o.state.currentInputValue&&o.setState({currentInputValue:t}),e.keyCode===m?o.handleChange(t):e.keyCode===h?o.handleChange(t-1):e.keyCode===b&&o.handleChange(t+1)},o.changePageSize=function(e){var t=o.state.current,n=w(e,o.state,o.props);t=t>n?n:t,0===n&&(t=o.state.current),"number"==typeof e&&("pageSize"in o.props||o.setState({pageSize:e}),"current"in o.props||o.setState({current:t,currentInputValue:t})),o.props.onShowSizeChange(t,e),"onChange"in o.props&&o.props.onChange&&o.props.onChange(t,e)},o.handleChange=function(e){var t=o.props.disabled,n=e;if(o.isValid(n)&&!t){var r=w(void 0,o.state,o.props);n>r?n=r:n<1&&(n=1),"current"in o.props||o.setState({current:n,currentInputValue:n});var a=o.state.pageSize;return o.props.onChange(n,a),n}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<w(void 0,o.state,o.props)},o.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}},o.runIfEnterPrev=function(e){o.runIfEnter(e,o.prev)},o.runIfEnterNext=function(e){o.runIfEnter(e,o.next)},o.runIfEnterJumpPrev=function(e){o.runIfEnter(e,o.jumpPrev)},o.runIfEnterJumpNext=function(e){o.runIfEnter(e,o.jumpNext)},o.handleGoTO=function(e){e.keyCode!==m&&"click"!==e.type||o.handleChange(o.state.currentInputValue)};var r=e.onChange!==j;"current"in e&&!r&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var c=e.defaultCurrent;"current"in e&&(c=e.current);var l=e.defaultPageSize;return"pageSize"in e&&(l=e.pageSize),c=Math.min(c,w(l,void 0,e)),o.state={current:c,currentInputValue:c,pageSize:l},o}return Object(c.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var o=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));o&&document.activeElement===o&&o.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=w(void 0,this.state,this.props),o=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?o:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,o=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>o}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,o=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return Object(u.isValidElement)(o)?Object(u.cloneElement)(o,{disabled:r}):o}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,o=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return Object(u.isValidElement)(o)?Object(u.cloneElement)(o,{disabled:r}):o}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,a=t.className,i=t.style,c=t.disabled,l=t.hideOnSinglePage,s=t.total,d=t.locale,m=t.showQuickJumper,h=t.showLessItems,b=t.showTitle,g=t.showTotal,O=t.simple,j=t.itemRender,C=t.showPrevNextJumpers,E=t.jumpPrevIcon,x=t.jumpNextIcon,k=t.selectComponentClass,S=t.selectPrefixCls,M=t.pageSizeOptions,P=this.state,_=P.current,N=P.pageSize,T=P.currentInputValue;if(!0===l&&s<=N)return null;var I=w(void 0,this.state,this.props),D=[],R=null,K=null,A=null,z=null,V=null,L=m&&m.goButton,F=h?1:2,H=_-1>0?_-1:0,W=_+1<I?_+1:I,B=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(O)return L&&(V="boolean"==typeof L?p.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):p.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},L),V=p.a.createElement("li",{title:b?"".concat(d.jump_to).concat(_,"/").concat(I):null,className:"".concat(n,"-simple-pager")},V)),p.a.createElement("ul",Object(o.a)({className:f()(n,"".concat(n,"-simple"),Object(r.a)({},"".concat(n,"-disabled"),c),a),style:i,ref:this.savePaginationNode},B),p.a.createElement("li",{title:b?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:f()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(H)),p.a.createElement("li",{title:b?"".concat(_,"/").concat(I):null,className:"".concat(n,"-simple-pager")},p.a.createElement("input",{type:"text",value:T,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),p.a.createElement("span",{className:"".concat(n,"-slash")},"/"),I),p.a.createElement("li",{title:b?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:f()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),V);if(I<=3+2*F){var U={locale:d,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:b,itemRender:j};I||D.push(p.a.createElement(v,Object(o.a)({},U,{key:"noPager",page:I,className:"".concat(n,"-disabled")})));for(var q=1;q<=I;q+=1){var G=_===q;D.push(p.a.createElement(v,Object(o.a)({},U,{key:q,page:q,active:G})))}}else{var J=h?d.prev_3:d.prev_5,Y=h?d.next_3:d.next_5;C&&(R=p.a.createElement("li",{title:b?J:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:f()("".concat(n,"-jump-prev"),Object(r.a)({},"".concat(n,"-jump-prev-custom-icon"),!!E))},j(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(E,"prev page"))),K=p.a.createElement("li",{title:b?Y:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:f()("".concat(n,"-jump-next"),Object(r.a)({},"".concat(n,"-jump-next-custom-icon"),!!x))},j(this.getJumpNextPage(),"jump-next",this.getItemIcon(x,"next page")))),z=p.a.createElement(v,{locale:d,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:I,page:I,active:!1,showTitle:b,itemRender:j}),A=p.a.createElement(v,{locale:d,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:b,itemRender:j});var X=Math.max(1,_-F),Q=Math.min(_+F,I);_-1<=F&&(Q=1+2*F),I-_<=F&&(X=I-2*F);for(var Z=X;Z<=Q;Z+=1){var $=_===Z;D.push(p.a.createElement(v,{locale:d,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Z,page:Z,active:$,showTitle:b,itemRender:j}))}_-1>=2*F&&3!==_&&(D[0]=Object(u.cloneElement)(D[0],{className:"".concat(n,"-item-after-jump-prev")}),D.unshift(R)),I-_>=2*F&&_!==I-2&&(D[D.length-1]=Object(u.cloneElement)(D[D.length-1],{className:"".concat(n,"-item-before-jump-next")}),D.push(K)),1!==X&&D.unshift(A),Q!==I&&D.push(z)}var ee=null;g&&(ee=p.a.createElement("li",{className:"".concat(n,"-total-text")},g(s,[0===s?0:(_-1)*N+1,_*N>s?s:_*N])));var te=!this.hasPrev()||!I,ne=!this.hasNext()||!I;return p.a.createElement("ul",Object(o.a)({className:f()(n,a,Object(r.a)({},"".concat(n,"-disabled"),c)),style:i,unselectable:"unselectable",ref:this.savePaginationNode},B),ee,p.a.createElement("li",{title:b?d.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(H)),D,p.a.createElement("li",{title:b?d.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(W)),p.a.createElement(y,{disabled:c,locale:d,rootPrefixCls:n,selectComponentClass:k,selectPrefixCls:S,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:_,pageSize:N,pageSizeOptions:M,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var o=t.current,r=w(e.pageSize,t,e);o=o>r?r:o,"current"in e||(n.current=o,n.currentInputValue=o),n.pageSize=e.pageSize}return n}}]),n}(p.a.Component);C.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:j,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:j,locale:O.a,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var E=C},"7ixt":
/*!**************************************************!*\
!*** ./node_modules/rc-tooltip/es/placements.js ***!
\**************************************************/
/*! exports provided: placements, default */
/*! exports used: placements */function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o={adjustX:1,adjustY:1},r=[0,0],a={left:{points:["cr","cl"],overflow:o,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:o,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:o,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:o,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:o,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:o,offset:[-4,0],targetOffset:r}}},BU3w:
/*!***************************************************!*\
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
\***************************************************/
/*! exports provided: injectCSS, updateCSS */
/*! exports used: updateCSS */function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(/*! ./canUseDom */"MNnm");function r(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(o.a)())return null;var a,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce);i.innerHTML=e;var c=r(n),l=c.firstChild;return n.prepend&&c.prepend?c.prepend(i):n.prepend&&l?c.insertBefore(i,l):c.appendChild(i),i}var i=new Map;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r(n);if(!i.has(o)){var c=a("",n),l=c.parentNode;i.set(o,l),l.removeChild(c)}var s=Array.from(i.get(o).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(s){var u,p,d;if((null===(u=n.csp)||void 0===u?void 0:u.nonce)&&s.nonce!==(null===(p=n.csp)||void 0===p?void 0:p.nonce))s.nonce=null===(d=n.csp)||void 0===d?void 0:d.nonce;return s.innerHTML!==e&&(s.innerHTML=e),s}var f=a(e,n);return f["rc-util-key"]=t,f}},GfqC:
/*!********************************************************!*\
!*** ./node_modules/rc-upload/es/index.js + 6 modules ***!
\********************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var o=n("q1tI"),r=n.n(o),a=n("TSYQ"),i=n.n(a);function c(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function l(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var o=e.data[t];Array.isArray(o)?o.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),c(t)):e.onSuccess(c(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((function(e){null!==o[e]&&t.setRequestHeader(e,o[e])})),t.send(n),{abort:function(){t.abort()}}}var s=+new Date,u=0;function p(){return"rc-upload-"+s+"-"+ ++u}var d=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",a=r.replace(/\/.*$/,"");return n.some((function(e){var t,n,i=e.trim();return"."===i.charAt(0)?(t=o.toLowerCase(),n=i.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(i)?a===i.replace(/\/.*$/,""):r===i}))}return!0};var f=function(e,t,n){var o=function e(o,r){r=r||"",o.isFile?o.file((function(e){n(e)&&(o.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):o.isDirectory&&function(e,t){var n=e.createReader(),o=[];!function e(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);o=o.concat(r),!r.length?t(o):e()}))}()}(o,(function(t){t.forEach((function(t){e(t,""+r+o.name+"/")}))}))};e.forEach((function(e){o(e.webkitGetAsEntry())}))},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(o=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var O=function(e){function t(){var e,n,o;g(this,t);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=o=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.state={uid:p()},o.reqs={},o.onChange=function(e){var t=e.target.files;o.uploadFiles(t),o.reset()},o.onClick=function(e){var t=o.fileInput;if(t){var n=o.props,r=n.children,a=n.onClick;r&&"button"===r.type&&(t.parentNode.focus(),t.parentNode.querySelector("button").blur()),t.click(),a&&a(e)}},o.onKeyDown=function(e){"Enter"===e.key&&o.onClick()},o.onFileDrop=function(e){var t=o.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(o.props.directory)f(Array.prototype.slice.call(e.dataTransfer.items),o.uploadFiles,(function(e){return d(e,o.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return d(e,o.props.accept)}));!1===t&&(n=n.slice(0,1)),o.uploadFiles(n)}},o.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=p(),e})).forEach((function(e){o.upload(e,t)}))},o.saveFileInput=function(e){o.fileInput=e},y(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,o=this.props;if(!o.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var r=o.beforeUpload(e,t);r&&r.then?r.then((function(t){var o=Object.prototype.toString.call(t);return"[object File]"===o||"[object Blob]"===o?n.post(t):n.post(e)})).catch((function(e){console.log(e)})):!1!==r&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,o=n.onStart,r=n.onProgress,a=n.transformFile,i=void 0===a?function(e){return e}:a;new Promise((function(t){var o=n.action;return"function"==typeof o&&(o=o(e)),t(o)})).then((function(a){var c=e.uid,s=n.customRequest||l;Promise.resolve(i(e)).then((function(e){var t=n.data;return"function"==typeof t&&(t=t(e)),Promise.all([e,t])})).catch((function(e){console.error(e)})).then((function(i){var l=m(i,2),u=l[0],p=l[1],d={action:a,filename:n.name,data:p,file:u,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:r?function(t){r(t,e)}:null,onSuccess:function(o,r){delete t.reqs[c],n.onSuccess(o,e,r)},onError:function(o,r){delete t.reqs[c],n.onError(o,r,e)}};o(e),t.reqs[c]=s(d)}))}))}}},{key:"reset",value:function(){this.setState({uid:p()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t,n=this.props,o=n.component,a=n.prefixCls,c=n.className,l=n.disabled,s=n.id,u=n.style,p=n.multiple,d=n.accept,f=n.children,m=n.directory,h=n.openFileDialogOnClick,g=n.onMouseEnter,y=n.onMouseLeave,O=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(n,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),j=i()((b(e={},a,!0),b(e,a+"-disabled",l),b(e,c,c),e)),w=l?{}:{onClick:h?this.onClick:function(){},onKeyDown:h?this.onKeyDown:function(){},onMouseEnter:g,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(o,v({},w,{className:j,role:"button",style:u}),r.a.createElement("input",v({},(t=O,Object.keys(t).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t[n]),e}),{})),{id:s,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:d,directory:m?"directory":null,webkitdirectory:m?"webkitdirectory":null,multiple:p,onChange:this.onChange})),f)}}]),t}(o.Component),j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function x(){}var k=function(e){function t(){var e,n,o;C(this,t);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=o=E(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.saveUploader=function(e){o.uploader=e},E(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),w(t,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return r.a.createElement(O,j({},this.props,{ref:this.saveUploader}))}}]),t}(o.Component);k.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:x,onError:x,onSuccess:x,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var S=k;t.a=S},Gytx:
/*!********************************************!*\
!*** ./node_modules/shallowequal/index.js ***!
\********************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var s=a[l];if(!c(s))return!1;var u=e[s],p=t[s];if(!1===(r=n?n.call(o,u,p,s):void 0)||void 0===r&&u!==p)return!1}return!0}},I8Z2:
/*!**********************************************************!*\
!*** ./node_modules/mini-store/esm/index.js + 3 modules ***!
\**********************************************************/
/*! exports provided: Provider, connect, create */
/*! exports used: Provider, connect, create */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b}));var o,r=n("q1tI"),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=r.createContext(null),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){return r.createElement(i.Provider,{value:this.props.store},this.props.children)},t}(r.Component),l=n("Gytx"),s=n.n(l),u=n("2mql"),p=n.n(u),d=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(){return(f=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};var v=function(){return{}};function m(e,t){void 0===t&&(t={});var n=!!e,o=e||v;return function(a){var c=function(t){function c(e,n){var r=t.call(this,e,n)||this;return r.unsubscribe=null,r.handleChange=function(){if(r.unsubscribe){var e=o(r.store.getState(),r.props);r.setState({subscribed:e})}},r.store=r.context,r.state={subscribed:o(r.store.getState(),e),store:r.store,props:e},r}return d(c,t),c.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:o(n.store.getState(),t),props:t}:{props:t}},c.prototype.componentDidMount=function(){this.trySubscribe()},c.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},c.prototype.shouldComponentUpdate=function(e,t){return!s()(this.props,e)||!s()(this.state.subscribed,t.subscribed)},c.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},c.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},c.prototype.render=function(){var e=f(f(f({},this.props),this.state.subscribed),{store:this.store});return r.createElement(a,f({},e,{ref:this.props.miniStoreForwardedRef}))},c.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(a)+")",c.contextType=i,c}(r.Component);if(t.forwardRef){var l=r.forwardRef((function(e,t){return r.createElement(c,f({},e,{miniStoreForwardedRef:t}))}));return p()(l,a)}return p()(c,a)}}var h=function(){return(h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function b(e){var t=e,n=[];return{setState:function(e){t=h(h({},t),e);for(var o=0;o<n.length;o++)n[o]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}},IE1O:
/*!****************************************************************!*\
!*** ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx ***!
\****************************************************************/
/*! exports provided: Edit, default */
/*! exports used: Edit, default */function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));n(/*! antd/es/modal/style */"2qtc");var o=n(/*! antd/es/modal */"kLXV"),r=(n(/*! antd/es/upload/style */"DZo9"),n(/*! antd/es/upload */"8z0m")),a=(n(/*! antd/es/button/style */"+L6B"),n(/*! antd/es/button */"2/Rp")),i=(n(/*! antd/es/input/style */"5NDa"),n(/*! antd/es/input */"5rEg")),c=(n(/*! antd/es/message/style */"miYZ"),n(/*! antd/es/message */"tsqr")),l=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),s=(n(/*! antd/es/form/style */"y8nQ"),n(/*! antd/es/form */"Vl3Y")),u=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),p=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),d=n.n(p),f=n(/*! react */"q1tI"),v=n.n(f),m=n(/*! ./index.less?modules */"KeLC"),h=n.n(m),b=n(/*! @/utils/env */"m3rI"),g=n(/*! @ant-design/icons */"jN4g"),y=function(e){var t,n,o,p,m=e.data,y=e.onOk,O=s.a.useForm(),j=Object(u.a)(O,1)[0],w=Object(f.useState)(!1),C=Object(u.a)(w,2),E=C[0],x=C[1],k=Object(f.useState)([]),S=Object(u.a)(k,2),M=S[0],P=S[1],_=Object(f.useState)([]),N=Object(u.a)(_,2),T=N[0],I=N[1],D=Object(f.useState)(!1),R=Object(u.a)(D,2),K=R[0],A=R[1];Object(f.useEffect)((function(){if(null!=m&&m.name){var e,t,n,o;j.setFieldsValue({name:null==m?void 0:m.name});var r=null!=m&&null!==(e=m.cover_url)&&void 0!==e&&e.includes("attachments")?[{response:{id:null==m||null===(t=m.cover_url)||void 0===t?void 0:t.split("/")[3]}}]:[],a=null!=m&&null!==(n=m.backbground_image_url)&&void 0!==n&&n.includes("attachments")?[{response:{id:null==m||null===(o=m.backbground_image_url)||void 0===o?void 0:o.split("/")[3]}}]:[];P(r),I(a)}}),[m]);var z=function(){var e=Object(l.a)(d.a.mark((function e(t){var n,o,r,a,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x(!0),i={name:null==t?void 0:t.name,cover_id:(null==M||null===(n=M[0])||void 0===n||null===(o=n.response)||void 0===o?void 0:o.id)||"",backbground_image_id:(null==T||null===(r=T[0])||void 0===r||null===(a=r.response)||void 0===a?void 0:a.id)||""},y(i,(function(){x(!1)}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=function(e,t){["uploading","done","removed"].includes(e.file.status)&&("uploading"===e.file.status&&A(!0),"done"===e.file.status&&A(!1),1===t?P(e.fileList):I(e.fileList))},L=function(e,t){1===t?P([]):I([])},F=function(e,t){return"image/jpeg"===e.type||"image/png"===e.type?e.size/1024/1024>2?(c.b.info("文件大小必须小于2MB"),!1):(1===t?P([]):I([]),!0):(c.b.error("请上传jpg或png的图片!"),!1)},H=function(e){var t,n,o,r;return v.a.createElement("div",{className:h.a.img},v.a.createElement("img",{src:b.a.API_SERVER+"/api/attachments/"+(1===e?null==M||null===(t=M[0])||void 0===t||null===(n=t.response)||void 0===n?void 0:n.id:null==T||null===(o=T[0])||void 0===o||null===(r=o.response)||void 0===r?void 0:r.id),alt:"avatar",style:{width:"100%"}}),v.a.createElement("div",null,v.a.createElement(g.a,{onClick:function(){1===e?P([]):I([])},style:{fontSize:"16px",color:"red"}})))};return v.a.createElement(s.a,{form:j,colon:!1,onFinish:z,labelCol:{span:3},wrapperCol:{span:19},className:h.a.form},v.a.createElement(s.a.Item,{label:"社区名称",name:"name",rules:[{required:!0,message:"请输入社区名称"},{whitespace:!0,message:"请输入社区名称"},{max:60,message:"只能输入60个字符"}]},v.a.createElement(i.a,{maxLength:60,placeholder:"请输入社区名称"})),v.a.createElement(s.a.Item,{name:"cover_id",label:"封面图",valuePropName:"fileList"},v.a.createElement("div",{className:h.a.upload},null!=M&&null!==(t=M[0])&&void 0!==t&&null!==(n=t.response)&&void 0!==n&&n.id?H(1):v.a.createElement(r.a,{fileList:M,action:"".concat(b.a.API_SERVER,"/api/attachments.json"),onChange:function(e){return V(e,1)},onRemove:function(e){return L(0,1)},beforeUpload:function(e){return F(e,1)},withCredentials:!0,accept:"image/*"},v.a.createElement(a.a,null,v.a.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10"}),"上传图片")),v.a.createElement("aside",null,"仅支持上传jpg/png等格式文件文件大小不能超过2M,建议使用278*225像素如不上传默认使用系统图片。"))),v.a.createElement(s.a.Item,{name:"backbground_image_id",label:"详情顶部背景",valuePropName:"fileList"},v.a.createElement("div",{className:h.a.upload},null!=T&&null!==(o=T[0])&&void 0!==o&&null!==(p=o.response)&&void 0!==p&&p.id?H(2):v.a.createElement(r.a,{fileList:T,action:"".concat(b.a.API_SERVER,"/api/attachments.json"),onChange:function(e){return V(e,2)},onRemove:function(e){return L(0,2)},beforeUpload:function(e){return F(e,2)},withCredentials:!0,accept:"image/*"},v.a.createElement(a.a,null,v.a.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10"}),"上传图片")),v.a.createElement("aside",null,"仅支持上传jpg/png等格式文件文件大小不能超过2M,建议使用1920*220像素如不上传默认使用系统图片。"))),v.a.createElement(a.a,{disabled:K,loading:E,type:"primary",onClick:function(){j.submit()},style:{marginLeft:120}},"确认"))};t.b=function(e){var t,n,p,m,y=e.visible,O=e.onOk,j=e.onCancel,w=e.title,C=void 0===w?"选择认证团队教师":w,E=s.a.useForm(),x=Object(u.a)(E,1)[0],k=Object(f.useState)(!1),S=Object(u.a)(k,2),M=S[0],P=S[1],_=Object(f.useState)([]),N=Object(u.a)(_,2),T=N[0],I=N[1],D=Object(f.useState)([]),R=Object(u.a)(D,2),K=R[0],A=R[1],z=Object(f.useState)(!1),V=Object(u.a)(z,2),L=V[0],F=V[1];Object(f.useEffect)((function(){if(null!=y&&y.name){var e,t,n,o;x.setFieldsValue({name:null==y?void 0:y.name});var r=null!=y&&null!==(e=y.cover_url)&&void 0!==e&&e.includes("attachments")?[{response:{id:null==y||null===(t=y.cover_url)||void 0===t?void 0:t.split("/")[3]}}]:[],a=null!=y&&null!==(n=y.backbground_image_url)&&void 0!==n&&n.includes("attachments")?[{response:{id:null==y||null===(o=y.backbground_image_url)||void 0===o?void 0:o.split("/")[3]}}]:[];I(r),A(a)}}),[y]);var H=function(){var e=Object(l.a)(d.a.mark((function e(t){var n,o,r,a,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P(!0),console.log(T,K,3333),i={name:null==t?void 0:t.name,cover_id:(null==T||null===(n=T[0])||void 0===n||null===(o=n.response)||void 0===o?void 0:o.id)||"",backbground_image_id:(null==K||null===(r=K[0])||void 0===r||null===(a=r.response)||void 0===a?void 0:a.id)||""},O(i);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),W=function(e,t){["uploading","done","removed"].includes(e.file.status)&&("uploading"===e.file.status&&F(!0),"done"===e.file.status&&F(!1),1===t?I(e.fileList):A(e.fileList))},B=function(e,t){1===t?I([]):A([])},U=function(e,t){return"image/jpeg"===e.type||"image/png"===e.type?e.size/1024/1024>2?(c.b.info("文件大小必须小于2MB"),!1):(1===t?I([]):A([]),!0):(c.b.error("请上传jpg或png的图片!"),!1)},q=function(e){var t,n,o,r;return v.a.createElement("div",{className:h.a.img},v.a.createElement("img",{src:b.a.API_SERVER+"/api/attachments/"+(1===e?null==T||null===(t=T[0])||void 0===t||null===(n=t.response)||void 0===n?void 0:n.id:null==K||null===(o=K[0])||void 0===o||null===(r=o.response)||void 0===r?void 0:r.id),alt:"avatar",style:{width:"100%"}}),v.a.createElement("div",null,v.a.createElement(g.a,{onClick:function(){1===e?I([]):A([])},style:{fontSize:"16px",color:"red"}})))};return v.a.createElement(o.a,{title:C,visible:y,onOk:function(){x.submit()},centered:!0,onCancel:function(){j()},confirmLoading:M,okButtonProps:{disabled:L},width:686,afterClose:function(){P(!1),I([]),A([]),x.resetFields()},okText:null!=y&&y.name?"确认":"确认新建",cancelText:"取消"},v.a.createElement(s.a,{form:x,colon:!1,onFinish:H,labelCol:{span:4},wrapperCol:{span:18},className:h.a.form},v.a.createElement(s.a.Item,{label:"社区名称",name:"name",rules:[{required:!0,message:"请输入社区名称"},{whitespace:!0,message:"请输入社区名称"},{max:60,message:"只能输入60个字符"}]},v.a.createElement(i.a,{maxLength:60,placeholder:"请输入社区名称"})),v.a.createElement(s.a.Item,{name:"cover_id",label:"封面图",valuePropName:"fileList"},v.a.createElement("div",{className:h.a.upload},null!=T&&null!==(t=T[0])&&void 0!==t&&null!==(n=t.response)&&void 0!==n&&n.id?q(1):v.a.createElement(r.a,{fileList:T,action:"".concat(b.a.API_SERVER,"/api/attachments.json"),onChange:function(e){return W(e,1)},onRemove:function(e){return B(0,1)},beforeUpload:function(e){return U(e,1)},withCredentials:!0,accept:"image/*"},v.a.createElement(a.a,null,v.a.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10"}),"上传图片")),v.a.createElement("aside",null,"仅支持上传jpg/png等格式文件文件大小不能超过2M,建议使用278*225像素如不上传默认使用系统图片。"))),v.a.createElement(s.a.Item,{name:"backbground_image_id",label:"详情顶部背景",valuePropName:"fileList"},v.a.createElement("div",{className:h.a.upload},null!=K&&null!==(p=K[0])&&void 0!==p&&null!==(m=p.response)&&void 0!==m&&m.id?q(2):v.a.createElement(r.a,{fileList:K,action:"".concat(b.a.API_SERVER,"/api/attachments.json"),onChange:function(e){return W(e,2)},onRemove:function(e){return B(0,2)},beforeUpload:function(e){return U(e,2)},withCredentials:!0,accept:"image/*"},v.a.createElement(a.a,null,v.a.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10"}),"上传图片")),v.a.createElement("aside",null,"仅支持上传jpg/png等格式文件文件大小不能超过2M,建议使用1920*220像素如不上传默认使用系统图片。")))))}},KeLC:
/*!*************************************************************************!*\
!*** ./src/pages/virtualSpaces/components/AddOrEdit/index.less?modules ***!
\*************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___WC8D3",flex_space_between:"flex_space_between___1oJuS",flex_box_vertical_center:"flex_box_vertical_center___wHVAB",flex_box_center_end:"flex_box_center_end___2rX0l",flex_box_column:"flex_box_column___Iu_rf",form:"form___RRVwq",upload:"upload___2PzlY",img:"img___qC8f0"}},KlRY:
/*!****************************************************************!*\
!*** ./src/pages/User/Detail/virtualSpaces/index.less?modules ***!
\****************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___2EyC0",flex_space_between:"flex_space_between___36GHE",flex_box_vertical_center:"flex_box_vertical_center___zEJfY",flex_box_center_end:"flex_box_center_end___3Jvo6",flex_box_column:"flex_box_column___Dvo_u",order:"order___OT_qP",content:"content___1feYt",w1:"w1___3jnK2",w2:"w2___C11ye",w3:"w3___3fdyP",w4:"w4___2rj03",w5:"w5___1xGx-",w6:"w6___1COaD",listTitle:"listTitle___1m4Kj",listContent:"listContent___2coDz",info:"info___1z6r0",d1:"d1___8aJcz",d2:"d2___30VNV",d3:"d3___3z3DY",unitPrice:"unitPrice___3qvQm",p:"p___gwD7l",l:"l___2lmgA",payType:"payType___rdAyL",price:"price___2k-73",status:"status___3yCDz",action:"action___1mONe"}},Kysd:
/*!***********************************************************!*\
!*** ./src/pages/virtualSpaces/components/List/index.tsx ***!
\***********************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/tooltip/style */"5Dmo");var o=n(/*! antd/es/tooltip */"3S7+"),r=n(/*! react */"q1tI"),a=n.n(r),i=n(/*! ./index.less?modules */"tViZ"),c=n.n(i),l=n(/*! @/utils/env */"m3rI");t.a=function(e){var t=e.data,n=e.marginLeft,r=void 0===n?29:n,i=e.listWarpStyle,s=void 0===i?{}:i,u=e.width,p=void 0===u?278:u,d=e.height,f=void 0===d?275:d;return a.a.createElement("ul",{className:c.a.listWarp,style:s},t.map((function(e,t){var n=e.name,i=(e.id,e.backbground_image_url,e.cover_url),s=e.category_url;return a.a.createElement("a",{target:"_blank",href:s,className:c.a.li,style:{marginLeft:r,width:p,height:f},key:t},a.a.createElement("div",{className:c.a.img},a.a.createElement("img",{src:l.a.IMG_SERVER+i,alt:"封面图"})),a.a.createElement("div",{className:c.a.name},a.a.createElement(o.a,{title:n},a.a.createElement("span",{className:c.a.e},n))))})))}},Lai7:
/*!*****************************************!*\
!*** ./src/assets/images/noEnvData.png ***!
\*****************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/noEnvData.6108fa6c.png"},LdHM:
/*!********************************************************!*\
!*** ./node_modules/rc-select/es/index.js + 6 modules ***!
\********************************************************/
/*! exports provided: Option, OptGroup, default */
/*! exports used: OptGroup, Option, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return C}));var o=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),i=n("LK+K"),c=n("q1tI"),l=n("rePB"),s=n("Ff2n"),u=n("ODXe"),p=n("4IlW"),d=n("bX4T"),f=n("YrtM"),v=n("TSYQ"),m=n.n(v),h=n("+nKL"),b=n("8OUc"),g=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,r=e.flattenOptions,a=e.childrenAsData,i=e.values,v=e.searchValue,g=e.multiple,y=e.defaultActiveFirstOption,O=e.height,j=e.itemHeight,w=e.notFoundContent,C=e.open,E=e.menuItemSelectedIcon,x=e.virtual,k=e.onSelect,S=e.onToggleOpen,M=e.onActiveValue,P=e.onScroll,_=e.onMouseEnter,N="".concat(n,"-item"),T=Object(f.a)((function(){return r}),[C,r],(function(e,t){return t[0]&&e[1]!==t[1]})),I=c.useRef(null),D=function(e){e.preventDefault()},R=function(e){I.current&&I.current.scrollTo({index:e})},K=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,a=T[r],i=a.group,c=a.data;if(!i&&!c.disabled)return r}return-1},A=c.useState((function(){return K(0)})),z=Object(u.a)(A,2),V=z[0],L=z[1],F=function(e){L(e);var t=T[e];t?M(t.data.value,e):M(null,-1)};c.useEffect((function(){F(!1!==y?K(0):-1)}),[T.length,v]),c.useEffect((function(){var e=setTimeout((function(){if(!g&&C&&1===i.size){var e=Array.from(i)[0],t=T.findIndex((function(t){return t.data.value===e}));F(t),R(t)}}));return function(){return clearTimeout(e)}}),[C]);var H=function(e){void 0!==e&&k(e,{selected:!i.has(e)}),g||S(!1)};if(c.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case p.a.UP:case p.a.DOWN:var n=0;if(t===p.a.UP?n=-1:t===p.a.DOWN&&(n=1),0!==n){var o=K(V+n,n);R(o),F(o)}break;case p.a.ENTER:var r=T[V];r&&!r.data.disabled?H(r.data.value):H(void 0),C&&e.preventDefault();break;case p.a.ESC:S(!1)}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===T.length)return c.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:D},w);function W(e){var t=T[e];if(!t)return null;var n=t.data||{},r=n.value,l=n.label,s=n.children,u=Object(d.a)(n,!0),p=a?s:l;return t?c.createElement("div",Object.assign({"aria-label":"string"==typeof p?p:null},u,{key:e,role:"option",id:"".concat(o,"_list_").concat(e),"aria-selected":i.has(r)}),r):null}return c.createElement(c.Fragment,null,c.createElement("div",{role:"listbox",id:"".concat(o,"_list"),style:{height:0,width:0,overflow:"hidden"}},W(V-1),W(V),W(V+1)),c.createElement(h.a,{itemKey:"key",ref:I,data:T,height:O,itemHeight:j,fullHeight:!1,onMouseDown:D,onScroll:P,virtual:x,onMouseEnter:_},(function(e,t){var n,o=e.group,r=e.groupOption,u=e.data,p=u.label,d=u.key;if(o)return c.createElement("div",{className:m()(N,"".concat(N,"-group"))},void 0!==p?p:d);var f=u.disabled,v=u.value,h=u.title,g=u.children,y=u.style,O=u.className,j=Object(s.a)(u,["disabled","value","title","children","style","className"]),w=i.has(v),C="".concat(N,"-option"),x=m()(N,C,O,(n={},Object(l.a)(n,"".concat(C,"-grouped"),r),Object(l.a)(n,"".concat(C,"-active"),V===t&&!f),Object(l.a)(n,"".concat(C,"-disabled"),f),Object(l.a)(n,"".concat(C,"-selected"),w),n)),k=a?g:p,S=!E||"function"==typeof E||w;return c.createElement("div",Object.assign({},j,{"aria-selected":w,className:x,title:h,onMouseMove:function(){V===t||f||F(t)},onClick:function(){f||H(v)},style:y}),c.createElement("div",{className:"".concat(C,"-content")},k||v),c.isValidElement(E)||w,S&&c.createElement(b.a,{className:"".concat(N,"-option-state"),customizeIcon:E,customizeIconProps:{isSelected:w}},w?"✓":null))})))}));g.displayName="OptionList";var y=g,O=function(){return null};O.isSelectOption=!0;var j=O,w=function(){return null};w.isSelectOptGroup=!0;var C=w,E=n("VTBJ"),x=n("Zm9Q");function k(e){var t=e.key,n=e.props,o=n.children,r=n.value,a=Object(s.a)(n,["children","value"]);return Object(E.a)({key:t,value:void 0!==r?r:t,children:o},a)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(x.a)(e).map((function(e,n){if(!c.isValidElement(e)||!e.type)return null;var o=e.type.isSelectOptGroup,r=e.key,a=e.props,i=a.children,l=Object(s.a)(a,["children"]);return t||!o?k(e):Object(E.a)(Object(E.a)({key:"__RC_SELECT_GRP__".concat(null===r?n:r,"__"),label:r},l),{},{options:S(i)})})).filter((function(e){return e}))}var M=n("2Qr1"),P=n("qNPg"),_=n("U8pU"),N=n("Kwbf"),T=n("WKfj");var I=function(e){var t=e.mode,n=e.options,o=e.children,r=e.backfill,a=e.allowClear,i=e.placeholder,l=e.getInputElement,s=e.showSearch,u=e.onSearch,p=e.defaultOpen,d=e.autoFocus,f=e.labelInValue,v=e.value,m=e.inputValue,h=e.optionLabelProp,b="multiple"===t||"tags"===t,g=void 0!==s?s:b||"combobox"===t,y=n||S(o);if(Object(N.a)("tags"!==t||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var O=y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(N.a)(!O,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(N.a)("combobox"!==t||!h,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(N.a)("combobox"===t||!r,"`backfill` only works with `combobox` mode."),Object(N.a)("combobox"===t||!l,"`getInputElement` only work with `combobox` mode."),Object(N.b)("combobox"!==t||!l||!a||!i,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!g&&"combobox"!==t&&"tags"!==t&&Object(N.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(N.b)(!p||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=v){var j=Object(T.d)(v);Object(N.a)(!f||j.every((function(e){return"object"===Object(_.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(N.a)(!b||Array.isArray(v),"`value` should be array when `mode` is `multiple` or `tags`")}if(o){var w=null;Object(x.a)(o).some((function(e){if(!c.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(x.a)(e.props.children).every((function(t){return!(c.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(w=t.type,!1)})):(w=t,!0))})),w&&Object(N.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName||w.name||w,"`.")),Object(N.a)(void 0===m,"`inputValue` is deprecated, please use `searchValue` instead.")}},D=Object(P.a)({prefixCls:"rc-select",components:{optionList:y},convertChildrenToData:S,flattenOptions:M.d,getLabeledValue:M.e,filterOptions:M.b,isValueDisabled:M.g,findValueOption:M.c,warningProps:I,fillOptionsWithMissingValue:M.a}),R=function(e){Object(a.a)(n,e);var t=Object(i.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).selectRef=c.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(r.a)(n,[{key:"render",value:function(){return c.createElement(D,Object.assign({ref:this.selectRef},this.props))}}]),n}(c.Component);R.Option=j,R.OptGroup=C;var K=R;t.c=K},NLgs:
/*!***********************************!*\
!*** ./src/utils/verifyLogin.tsx ***!
\***********************************/
/*! exports provided: handleVerify, handleVerifyLogin, handleProfleCompletedModal, handleProfessionalCertificationModal, handleCanShixunAddModal, AuthorizeModel, ShixunStatusModel */
/*! exports used: AuthorizeModel, ShixunStatusModel, handleCanShixunAddModal, handleProfessionalCertificationModal, handleVerify, handleVerifyLogin */function(e,t,n){"use strict";n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return w})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return S}));n(/*! antd/es/message/style */"miYZ");var o=n(/*! antd/es/message */"tsqr"),r=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),a=(n(/*! antd/es/modal/style */"2qtc"),n(/*! antd/es/modal */"kLXV")),i=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),c=n.n(i),l=n(/*! react */"q1tI"),s=n.n(l),u=n(/*! umi */"9kvl"),p=n(/*! ./authority */"xKgJ"),d=n(/*! ./util */"1vsH"),f=n(/*! @ant-design/icons */"RCxd"),v=n(/*! @/assets/images/403Qrcode.png */"mOS8"),m=n.n(v),h=n(/*! @/assets/images/Authorize.png */"1ZF9"),b=n.n(h),g=n(/*! @/assets/images/studnetqun.png */"WdTA"),y=n.n(g),O=n(/*! ./env */"m3rI"),j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!w(e)||!C(t))},w=function(e){return!!Object(p.o)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},C=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Object(u.c)()._store.getState(),o=n.user;return!(null===(e=o.userInfo)||void 0===e||!e.profile_completed)||(a.a.confirm({title:"提示",width:530,centered:!0,content:t?"按照有关政策规定,特殊实验需要先绑定手机号才能使用,请先绑定手机号码":"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){u.d.push("/account/profile/edit")}}),!1)},E=function(){var e;return!(null===(e=Object(u.c)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(a.a.confirm({title:"提示",centered:!0,content:s.a.createElement("div",{className:"tc"},"您需要去完成您的职业认证,才能使用此功能"),okText:"立即完善",cancelText:"稍后完善",onOk:function(){Object(d.Q)("/account/certification")}}),!1)},x=function(){return!!Object(p.a)()||(a.a.warning({centered:!0,width:530,title:"提示",content:s.a.createElement("div",{className:"tc",style:{marginLeft:-38}},s.a.createElement("p",null,"您可以扫码加群@群管理员,申请操作权限哦!"),s.a.createElement("img",{src:Object(p.s)()?y.a:"".concat(O.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"我知道了",maskClosable:!0}),!1)},k=function(e,t){return!!e||(a.a.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:s.a.createElement("div",null,s.a.createElement("p",null,t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请获得继续操作的权限。"),s.a.createElement("div",{style:{marginLeft:"110px"}},s.a.createElement("img",{src:b.a,width:200}),s.a.createElement("div",{style:{marginLeft:"35px"}},"群号:","714336072"))),okText:"立即联系",cancelText:"取消",onOk:function(){Object(d.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.c)()._store.getState(),i=n.shixunsDetail.detail;return 2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)?(a.a.info({centered:!0,icon:s.a.createElement(f.a,{style:{color:"#faad14"}}),width:460,title:"提示",content:s.a.createElement("div",{className:"tc",style:{marginLeft:-38}},s.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},s.a.createElement("span",null,"该实践项目的状态为",2===(null==i?void 0:i.public)?"已公开":1===(null==i?void 0:i.public)?"待审核":"已关闭","",t,"。"),s.a.createElement("p",null,"如有需要,请联系平台管理员进行技术支持。")),s.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:m.a,alt:"二维码",width:160})),okText:"我知道了"}),!0):2===(null==i?void 0:i.shixun_status)&&(a.a.confirm({centered:!0,icon:s.a.createElement(f.a,null),title:"提示",content:s.a.createElement("div",null,s.a.createElement("span",null,"该实践项目已发布,",t,"。"),s.a.createElement("br",null),s.a.createElement("span",null,"如有需要,您可以撤销发布后,再进行操作。")),okText:"撤销发布",cancelText:"取消",onOk:function(){var t;a.a.confirm({width:440,centered:!0,icon:s.a.createElement(f.a,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(t=Object(r.a)(c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==t.sent.status&&(o.b.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}}),!0)}},OLES:
/*!*********************************************************!*\
!*** ./node_modules/rc-tooltip/es/index.js + 2 modules ***!
\*********************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tooltip/es/placements.js because of ./node_modules/antd/es/tooltip/placements.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-trigger/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var o=n("U8pU"),r=n("VTBJ"),a=n("Ff2n"),i=n("q1tI"),c=n("uciX"),l=n("7ixt"),s=function(e){var t=e.overlay,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle;return i.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:r},"function"==typeof t?t():t)},u=Object(i.forwardRef)((function(e,t){var n=e.overlayClassName,u=e.trigger,p=void 0===u?["hover"]:u,d=e.mouseEnterDelay,f=void 0===d?0:d,v=e.mouseLeaveDelay,m=void 0===v?.1:v,h=e.overlayStyle,b=e.prefixCls,g=void 0===b?"rc-tooltip":b,y=e.children,O=e.onVisibleChange,j=e.afterVisibleChange,w=e.transitionName,C=e.animation,E=e.placement,x=void 0===E?"right":E,k=e.align,S=void 0===k?{}:k,M=e.destroyTooltipOnHide,P=void 0!==M&&M,_=e.defaultVisible,N=e.getTooltipContainer,T=e.overlayInnerStyle,I=Object(a.a)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),D=Object(i.useRef)(null);Object(i.useImperativeHandle)(t,(function(){return D.current}));var R=Object(r.a)({},I);"visible"in e&&(R.popupVisible=e.visible);var K=!1,A=!1;if("boolean"==typeof P)K=P;else if(P&&"object"===Object(o.a)(P)){var z=P.keepParent;K=!0===z,A=!1===z}return i.createElement(c.a,Object.assign({popupClassName:n,prefixCls:g,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,o=e.overlay,r=e.id;return[i.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},n),i.createElement(s,{key:"content",prefixCls:g,id:r,overlay:o,overlayInnerStyle:T})]},action:p,builtinPlacements:l.a,popupPlacement:x,ref:D,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:O,afterPopupVisibleChange:j,popupTransitionName:w,popupAnimation:C,defaultPopupVisible:_,destroyPopupOnHide:K,autoDestroy:A,mouseLeaveDelay:m,popupStyle:h,mouseEnterDelay:f},R),y)}));t.a=u},WdTA:
/*!******************************************!*\
!*** ./src/assets/images/studnetqun.png ***!
\******************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/studnetqun.598eeb43.png"},Y1PL:
/*!**********************************************************!*\
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
\**********************************************************/
/*! exports provided: ResizableTextArea, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t),n.d(t,"ResizableTextArea",(function(){return I}));var o=n("wx14"),r=n("1OyB"),a=n("vuIU"),i=n("Ji7U"),c=n("LK+K"),l=n("q1tI"),s=n("VTBJ"),u=n("rePB"),p=n("Zm9Q"),d=(n("Kwbf"),n("c+Xe")),f=n("m+aA"),v=n("bdgK"),m=new Map;var h=new v.default((function(e){e.forEach((function(e){var t,n=e.target;null===(t=m.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var b=function(e){Object(i.a)(n,e);var t=Object(c.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),g=l.createContext(null);function y(e){var t=e.children,n=e.disabled,o=l.useRef(null),r=l.useRef(null),a=l.useContext(g),i=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=l.isValidElement(t)&&Object(d.c)(t),u=c?t.ref:null,p=l.useMemo((function(){return Object(d.a)(u,o)}),[u,o]),v=l.useRef(e);v.current=e;var y=l.useCallback((function(e){var t=v.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),c=r.width,l=r.height,u=e.offsetWidth,p=e.offsetHeight,d=Math.floor(c),f=Math.floor(l);if(i.current.width!==d||i.current.height!==f||i.current.offsetWidth!==u||i.current.offsetHeight!==p){var m={width:d,height:f,offsetWidth:u,offsetHeight:p};i.current=m;var h=u===Math.round(c)?c:u,b=p===Math.round(l)?l:p,g=Object(s.a)(Object(s.a)({},m),{},{offsetWidth:h,offsetHeight:b});null==a||a(g,e,o),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return l.useEffect((function(){var e,t,a=Object(f.a)(o.current)||Object(f.a)(r.current);return a&&!n&&(e=a,t=y,m.has(e)||(m.set(e,new Set),h.observe(e)),m.get(e).add(t)),function(){return function(e,t){m.has(e)&&(m.get(e).delete(t),m.get(e).size||(h.unobserve(e),m.delete(e)))}(a,y)}}),[o.current,n]),l.createElement(b,{ref:r},c?l.cloneElement(t,{ref:p}):t)}function O(e){var t=e.children;return Object(p.a)(t).map((function(t,n){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return l.createElement(y,Object(o.a)({},e,{key:r}),t)}))}O.Collection=function(e){var t=e.children,n=e.onBatchResize,o=l.useRef(0),r=l.useRef([]),a=l.useContext(g),i=l.useCallback((function(e,t,i){o.current+=1;var c=o.current;r.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){c===o.current&&(null==n||n(r.current),r.current=[])})),null==a||a(e,t,i)}),[n,a]);return l.createElement(g.Provider,{value:i},t)};var j,w=O,C=n("bT9E"),E=n("TSYQ"),x=n.n(E),k="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",S=["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"],M={};function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&M[n])return M[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),a=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),c=S.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),l={sizingStyle:c,paddingSize:a,borderSize:i,boxSizing:r};return t&&n&&(M[n]=l),l}var _,N=n("Gytx"),T=n.n(N);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(_||(_={}));var I=function(e){Object(i.a)(n,e);var t=Object(c.a)(n);function n(e){var a;return Object(r.a)(this,n),(a=t.call(this,e)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,o=n.autoSize,r=n.onResize;t===_.NONE&&("function"==typeof r&&r(e),o&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;j||((j=document.createElement("textarea")).setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),e.getAttribute("wrap")?j.setAttribute("wrap",e.getAttribute("wrap")):j.removeAttribute("wrap");var r=P(e,t),a=r.paddingSize,i=r.borderSize,c=r.boxSizing,l=r.sizingStyle;j.setAttribute("style","".concat(l,";").concat(k)),j.value=e.value||e.placeholder||"";var s,u=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,d=j.scrollHeight;if("border-box"===c?d+=i:"content-box"===c&&(d-=a),null!==n||null!==o){j.value=" ";var f=j.scrollHeight-a;null!==n&&(u=f*n,"border-box"===c&&(u=u+a+i),d=Math.max(u,d)),null!==o&&(p=f*o,"border-box"===c&&(p=p+a+i),s=d>p?"":"hidden",d=Math.min(p,d))}return{height:d,minHeight:u,maxHeight:p,overflowY:s,resize:"none"}}(a.textArea,!1,t,n);a.setState({textareaStyles:o,resizeStatus:_.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:_.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:_.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,c=e.className,p=e.disabled,d=a.state,f=d.textareaStyles,v=d.resizeStatus,m=Object(C.a)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),h=x()(n,c,Object(u.a)({},"".concat(n,"-disabled"),p));"value"in m&&(m.value=m.value||"");var b=Object(s.a)(Object(s.a)(Object(s.a)({},a.props.style),f),v===_.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(w,{onResize:a.handleResize,disabled:!(r||i)},l.createElement("textarea",Object(o.a)({},m,{className:h,style:b,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:_.NONE},a}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&T()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l.Component),D=function(e){Object(i.a)(n,e);var t=Object(c.a)(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this,e)).resizableTextArea=void 0,o.focus=function(){o.resizableTextArea.textArea.focus()},o.saveTextArea=function(e){o.resizableTextArea=e},o.handleChange=function(e){var t=o.props.onChange;o.setValue(e.target.value,(function(){o.resizableTextArea.resizeTextarea()})),t&&t(e)},o.handleKeyDown=function(e){var t=o.props,n=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&n&&n(e),r&&r(e)};var a=void 0===e.value||null===e.value?e.defaultValue:e.value;return o.state={value:a},o}return Object(a.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(I,Object(o.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(l.Component);t.default=D},ZpRC:
/*!*************************************************************************!*\
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
\*************************************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";function o(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function r(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return r(n.overflowY,t)||r(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function i(e,t,n,o,r,a,i,c){return a<e&&i>t||a>e&&i<t?0:a<=e&&c<=n||i>=t&&c>=n?a-e-o:i>t&&c<n||a<e&&c>n?i-t+r:0}var c=function(e,t){var n=window,r=t.scrollMode,c=t.block,l=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,p="function"==typeof s?s:function(e){return e!==s};if(!o(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,f=[],v=e;o(v)&&p(v);){if((v=v.parentElement)===d){f.push(v);break}null!=v&&v===document.body&&a(v)&&!a(document.documentElement)||null!=v&&a(v,u)&&f.push(v)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),O=y.height,j=y.width,w=y.top,C=y.right,E=y.bottom,x=y.left,k="start"===c||"nearest"===c?w:"end"===c?E:w+O/2,S="center"===l?x+j/2:"end"===l?C:x,M=[],P=0;P<f.length;P++){var _=f[P],N=_.getBoundingClientRect(),T=N.height,I=N.width,D=N.top,R=N.right,K=N.bottom,A=N.left;if("if-needed"===r&&w>=0&&x>=0&&E<=h&&C<=m&&w>=D&&E<=K&&x>=A&&C<=R)return M;var z=getComputedStyle(_),V=parseInt(z.borderLeftWidth,10),L=parseInt(z.borderTopWidth,10),F=parseInt(z.borderRightWidth,10),H=parseInt(z.borderBottomWidth,10),W=0,B=0,U="offsetWidth"in _?_.offsetWidth-_.clientWidth-V-F:0,q="offsetHeight"in _?_.offsetHeight-_.clientHeight-L-H:0;if(d===_)W="start"===c?k:"end"===c?k-h:"nearest"===c?i(g,g+h,h,L,H,g+k,g+k+O,O):k-h/2,B="start"===l?S:"center"===l?S-m/2:"end"===l?S-m:i(b,b+m,m,V,F,b+S,b+S+j,j),W=Math.max(0,W+g),B=Math.max(0,B+b);else{W="start"===c?k-D-L:"end"===c?k-K+H+q:"nearest"===c?i(D,K,T,L,H+q,k,k+O,O):k-(D+T/2)+q/2,B="start"===l?S-A-V:"center"===l?S-(A+I/2)+U/2:"end"===l?S-R+F+U:i(A,R,I,V,F+U,S,S+j,j);var G=_.scrollLeft,J=_.scrollTop;k+=J-(W=Math.max(0,Math.min(J+W,_.scrollHeight-T+q))),S+=G-(B=Math.max(0,Math.min(G+B,_.scrollWidth-I+U)))}M.push({el:_,top:W,left:B})}return M};function l(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(l(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:c(e,t));if(!n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:l(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var o=e.el,r=e.top,a=e.left;o.scroll&&n?o.scroll({top:r,left:a,behavior:t}):(o.scrollTop=r,o.scrollLeft=a)}))}(c(e,o),o.behavior)}}},bT9E:
/*!*****************************************!*\
!*** ./node_modules/rc-util/es/omit.js ***!
\*****************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function r(e,t){var n=Object(o.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},jjXQ:
/*!*******************************************************!*\
!*** ./src/pages/User/Detail/virtualSpaces/index.tsx ***!
\*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/.umi-production/core/routes.ts (referenced with import()) */function(e,t,n){"use strict";n.r(t);n(/*! antd/es/pagination/style */"DjyN");var o=n(/*! antd/es/pagination */"NUBc"),r=(n(/*! antd/es/skeleton/style */"cWXX"),n(/*! antd/es/skeleton */"/ezw")),a=(n(/*! antd/es/button/style */"+L6B"),n(/*! antd/es/button */"2/Rp")),i=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),c=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),l=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),s=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */"PpiC"),u=(n(/*! antd/es/tabs/style */"Znn+"),n(/*! antd/es/tabs */"ZTPi")),p=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),d=n.n(p),f=n(/*! react */"q1tI"),v=n.n(f),m=n(/*! umi */"9kvl"),h=n(/*! @/utils/fetch */"ErOA"),b=n(/*! @/utils/util */"1vsH"),g=n(/*! ./index.less?modules */"KlRY"),y=n.n(g),O=n(/*! @/pages/virtualSpaces/components/List */"Kysd"),j=n(/*! @/assets/images/noEnvData.png */"Lai7"),w=n.n(j),C=n(/*! @/pages/virtualSpaces/components/AddOrEdit */"IE1O"),E=n(/*! @/utils/verifyLogin */"NLgs"),x=n(/*! @/utils/authority */"xKgJ"),k=u.a.TabPane;t.default=Object(m.a)((function(e){return{user:e.user,userDetail:e.userDetail,globalSetting:e.globalSetting}}))((function(e){var t,n=e.user,p=(e.userDetail,e.globalSetting,e.dispatch),g=(Object(s.a)(e,["user","userDetail","globalSetting","dispatch"]),Object(f.useState)({is_public:"0",page:1,limit:16})),j=Object(l.a)(g,2),S=j[0],M=j[1],P=Object(f.useState)([]),_=Object(l.a)(P,2),N=_[0],T=_[1],I=Object(f.useState)(0),D=Object(l.a)(I,2),R=D[0],K=D[1],A=Object(f.useState)(!0),z=Object(l.a)(A,2),V=z[0],L=z[1],F=Object(f.useState)(!1),H=Object(l.a)(F,2),W=H[0],B=H[1];Object(f.useEffect)((function(){Object(b.V)("虚拟社区"),U(S)}),[]);var U=function(){var e=Object(c.a)(d.a.mark((function e(t){var n,o,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),o=Object(i.a)(Object(i.a)({},t),{},{is_public:null===(n=q.find((function(e){return e.activeKey===t.is_public})))||void 0===n?void 0:n.key}),e.next=4,Object(h.a)("/api/virtual_classrooms/mine.json",{method:"get",params:o});case 4:null!=(r=e.sent)&&r.virtual_classrooms&&(T(null==r?void 0:r.virtual_classrooms),K(null==r?void 0:r.total_count),L(!1));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=[{name:"全部",activeKey:"0",key:null},{name:"未公开",activeKey:"1",key:!1},{name:"已公开",activeKey:"2",key:!0}],G=function(){var e=Object(c.a)(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.a)("/api/virtual_classrooms.json",{method:"post",body:t});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(U(S),B(!1),m.d.push(null==n?void 0:n.category_url),p({type:"shixunHomeworks/setActionTabs",payload:{key:"提示",type:99}}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return v.a.createElement("div",{className:y.a.order},v.a.createElement(u.a,{tabBarExtraContent:Object(x.o)()&&("teacher"===(null===(t=n.userInfo)||void 0===t?void 0:t.identity)||Object(x.u)())&&v.a.createElement(a.a,{onClick:function(){(Object(x.u)()||Object(E.d)())&&B(!0)},type:"primary"},"新建虚拟社区"),activeKey:null==S?void 0:S.is_public,onChange:function(e){e!==S.is_public&&(S.is_public=e,S.page=1,M(Object(i.a)({},S)),U(S))}},q.map((function(e){return v.a.createElement(k,{tab:e.name,key:e.activeKey})}))),v.a.createElement(r.a,{loading:V,active:!0,paragraph:{rows:5}},N.length?v.a.createElement(O.a,{data:N||[]}):v.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",margin:"100px 0 20px 0"}},v.a.createElement("img",{src:w.a,width:204,alt:""}),v.a.createElement("span",{style:{color:"#6A6A6A"}},"当前暂无","1"===S.is_public?"未公开":"2"===S.is_public?"已公开":"","项目……"))),v.a.createElement(o.a,{hideOnSinglePage:!0,onChange:function(e){return function(e){document.body.scrollIntoView(),S.page=e,M(Object(i.a)({},S)),U(S)}(e)},current:S.page,pageSize:S.limit,total:R,showQuickJumper:!0,showSizeChanger:!1,showTotal:function(e){return v.a.createElement("span",{className:"mr10"},"共",v.a.createElement("span",{className:"c-orange"},e),"条数据")},className:"tc pb30"}),v.a.createElement(C.b,{visible:W,title:"新建虚拟社区",onCancel:function(){return B(!1)},onOk:G}))}))},k3GJ:
/*!*******************************************************!*\
!*** ./node_modules/rc-tabs/es/index.js + 50 modules ***!
\*******************************************************/
/*! exports provided: TabPane, default */
/*! exports used: TabPane, default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/mini-store/esm/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/raf/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-align/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-dropdown/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-resize-observer/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/addEventListener.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/canUseDom.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/contains.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Portal.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/createChainedFunction.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/raf.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-dom/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return Ut}));var o=n("rePB"),r=n("ODXe"),a=n("Ff2n"),i=n("VTBJ"),c=n("q1tI"),l=n("TSYQ"),s=n.n(l),u=n("Zm9Q"),p=n("6cGi"),d=n("KQm4"),f=n("xEkU"),v=n.n(f),m=n("t23M");function h(e){var t=Object(c.useRef)(),n=Object(c.useRef)(!1);return Object(c.useEffect)((function(){return function(){n.current=!0,v.a.cancel(t.current)}}),[]),function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];n.current||(v.a.cancel(t.current),t.current=v()((function(){e.apply(void 0,r)})))}}var b=n("4IlW");var g=c.forwardRef((function(e,t){var n,r=e.prefixCls,a=e.id,i=e.active,l=e.rtl,u=e.tab,p=u.key,d=u.tab,f=u.disabled,v=u.closeIcon,m=e.tabBarGutter,h=e.tabPosition,g=e.closable,y=e.renderWrapper,O=e.removeAriaLabel,j=e.editable,w=e.onClick,C=e.onRemove,E=e.onFocus,x="".concat(r,"-tab");c.useEffect((function(){return C}),[]);var k={};"top"===h||"bottom"===h?k[l?"marginLeft":"marginRight"]=m:k.marginBottom=m;var S=j&&!1!==g&&!f;function M(e){f||w(e)}var P=c.createElement("div",{key:p,ref:t,className:s()(x,(n={},Object(o.a)(n,"".concat(x,"-with-remove"),S),Object(o.a)(n,"".concat(x,"-active"),i),Object(o.a)(n,"".concat(x,"-disabled"),f),n)),style:k,onClick:M},c.createElement("div",{role:"tab","aria-selected":i,id:a&&"".concat(a,"-tab-").concat(p),className:"".concat(x,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(p),"aria-disabled":f,tabIndex:f?null:0,onClick:function(e){e.stopPropagation(),M(e)},onKeyDown:function(e){[b.a.SPACE,b.a.ENTER].includes(e.which)&&(e.preventDefault(),M(e))},onFocus:E},d),S&&c.createElement("button",{type:"button","aria-label":O||"remove",tabIndex:0,className:"".concat(x,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),j.onEdit("remove",{key:p,event:t})}},v||j.removeIcon||"×"));return y&&(P=y(P)),P})),y={width:0,height:0,left:0,top:0};var O={width:0,height:0,left:0,top:0,right:0};var j=n("wx14"),w=n("1OyB"),C=n("vuIU"),E=n("JX7q"),x=n("Ji7U"),k=n("LK+K"),S=n("I8Z2"),M=n("bT9E"),P=n("2GS6"),_=n("Gytx"),N=n.n(_),T=n("U8pU"),I=/iPhone/i,D=/iPod/i,R=/iPad/i,K=/\bAndroid(?:.+)Mobile\b/i,A=/Android/i,z=/\bAndroid(?:.+)SD4930UR\b/i,V=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,L=/Windows Phone/i,F=/\bWindows(?:.+)ARM\b/i,H=/BlackBerry/i,W=/BB10/i,B=/Opera Mini/i,U=/\b(CriOS|Chrome)(?:.+)Mobile/i,q=/Mobile(?:.+)Firefox\b/i;function G(e,t){return e.test(t)}function J(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=(t||"").split("[FBAN");if(void 0!==n[1]){var o=n;t=Object(r.a)(o,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var a=n;t=Object(r.a)(a,1)[0]}var i={apple:{phone:G(I,t)&&!G(L,t),ipod:G(D,t),tablet:!G(I,t)&&G(R,t)&&!G(L,t),device:(G(I,t)||G(D,t)||G(R,t))&&!G(L,t)},amazon:{phone:G(z,t),tablet:!G(z,t)&&G(V,t),device:G(z,t)||G(V,t)},android:{phone:!G(L,t)&&G(z,t)||!G(L,t)&&G(K,t),tablet:!G(L,t)&&!G(z,t)&&!G(K,t)&&(G(V,t)||G(A,t)),device:!G(L,t)&&(G(z,t)||G(V,t)||G(K,t)||G(A,t))||G(/\bokhttp\b/i,t)},windows:{phone:G(L,t),tablet:G(F,t),device:G(L,t)||G(F,t)},other:{blackberry:G(H,t),blackberry10:G(W,t),opera:G(B,t),firefox:G(q,t),chrome:G(U,t),device:G(H,t)||G(W,t)||G(B,t)||G(q,t)||G(U,t)},any:null,phone:null,tablet:null};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var Y=Object(i.a)(Object(i.a)({},J()),{},{isMobile:J});function X(){}function Q(e,t,n){var o=t||"";return e.key||"".concat(o,"item_").concat(n)}function Z(e){return"".concat(e,"-menu-")}function $(e,t){var n=-1;c.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?c.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],te=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),r=o.marginLeft,a=o.marginRight;n+=+r.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},ne=function(e,t,n){e&&"object"===Object(T.a)(e.style)&&(e.style[t]=n)},oe=n("bdgK"),re=n("i8i4"),ae=n.n(re),ie=n("wgJM"),ce=n("l4aY"),le=n("m+aA"),se=n("c+Xe"),ue=n("zT1h"),pe=n("QC+M");function de(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var fe=n("MNnm");function ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var me,he,be,ge=(me=Object(fe.a)(),he="undefined"!=typeof window?window:{},be={animationend:ve("Animation","AnimationEnd"),transitionend:ve("Transition","TransitionEnd")},me&&("AnimationEvent"in he||delete be.animationend.animation,"TransitionEvent"in he||delete be.transitionend.transition),be),ye={};if(Object(fe.a)()){var Oe=document.createElement("div");ye=Oe.style}var je={};function we(e){if(je[e])return je[e];var t=ge[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var a=n[r];if(Object.prototype.hasOwnProperty.call(t,a)&&a in ye)return je[e]=t[a],je[e]}return""}var Ce=we("animationend"),Ee=we("transitionend"),xe=!(!Ce||!Ee),ke=Ce||"animationend",Se=Ee||"transitionend";function Me(e,t){return e?"object"===Object(T.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function Pe(e){var t=Object(c.useRef)(!1),n=Object(c.useState)(e),o=Object(r.a)(n,2),a=o[0],i=o[1];return Object(c.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||i(e)}]}var _e=Object(fe.a)()?c.useLayoutEffect:c.useEffect,Ne=["prepare","start","active","end"];function Te(e){return"active"===e||"end"===e}var Ie=function(e,t){var n=c.useState("none"),o=Object(r.a)(n,2),a=o[0],i=o[1],l=function(){var e=c.useRef(null);function t(){ie.a.cancel(e.current)}return c.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Object(ie.a)((function(){r<=1?o({isCanceled:function(){return a!==e.current}}):n(o,r-1)}));e.current=a},t]}(),s=Object(r.a)(l,2),u=s[0],p=s[1];return _e((function(){if("none"!==a&&"end"!==a){var e=Ne.indexOf(a),n=Ne[e+1],o=t(a);!1===o?i(n):u((function(e){function t(){e.isCanceled()||i(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,a]),c.useEffect((function(){return function(){p()}}),[]),[function(){i("prepare")},a]};function De(e,t,n,a){var l=a.motionEnter,s=void 0===l||l,u=a.motionAppear,p=void 0===u||u,d=a.motionLeave,f=void 0===d||d,v=a.motionDeadline,m=a.motionLeaveImmediately,h=a.onAppearPrepare,b=a.onEnterPrepare,g=a.onLeavePrepare,y=a.onAppearStart,O=a.onEnterStart,j=a.onLeaveStart,w=a.onAppearActive,C=a.onEnterActive,E=a.onLeaveActive,x=a.onAppearEnd,k=a.onEnterEnd,S=a.onLeaveEnd,M=a.onVisibleChanged,P=Pe(),_=Object(r.a)(P,2),N=_[0],T=_[1],I=Pe("none"),D=Object(r.a)(I,2),R=D[0],K=D[1],A=Pe(null),z=Object(r.a)(A,2),V=z[0],L=z[1],F=Object(c.useRef)(!1),H=Object(c.useRef)(null),W=Object(c.useRef)(!1),B=Object(c.useRef)(null);function U(){return n()||B.current}var q=Object(c.useRef)(!1);function G(e){var t,n=U();e&&!e.deadline&&e.target!==n||("appear"===R&&q.current?t=null==x?void 0:x(n,e):"enter"===R&&q.current?t=null==k?void 0:k(n,e):"leave"===R&&q.current&&(t=null==S?void 0:S(n,e)),!1===t||W.current||(K("none"),L(null)))}var J=function(e){var t=Object(c.useRef)(),n=Object(c.useRef)(e);n.current=e;var o=c.useCallback((function(e){n.current(e)}),[]);function r(e){e&&(e.removeEventListener(Se,o),e.removeEventListener(ke,o))}return c.useEffect((function(){return function(){r(t.current)}}),[]),[function(e){t.current&&t.current!==e&&r(t.current),e&&e!==t.current&&(e.addEventListener(Se,o),e.addEventListener(ke,o),t.current=e)},r]}(G),Y=Object(r.a)(J,1)[0],X=c.useMemo((function(){var e,t,n;switch(R){case"appear":return e={},Object(o.a)(e,"prepare",h),Object(o.a)(e,"start",y),Object(o.a)(e,"active",w),e;case"enter":return t={},Object(o.a)(t,"prepare",b),Object(o.a)(t,"start",O),Object(o.a)(t,"active",C),t;case"leave":return n={},Object(o.a)(n,"prepare",g),Object(o.a)(n,"start",j),Object(o.a)(n,"active",E),n;default:return{}}}),[R]),Q=Ie(R,(function(e){if("prepare"===e){var t=X.prepare;return!!t&&t(U())}var n;ee in X&&L((null===(n=X[ee])||void 0===n?void 0:n.call(X,U(),null))||null);return"active"===ee&&(Y(U()),v>0&&(clearTimeout(H.current),H.current=setTimeout((function(){G({deadline:!0})}),v))),!0})),Z=Object(r.a)(Q,2),$=Z[0],ee=Z[1],te=Te(ee);q.current=te,_e((function(){T(t);var n,o=F.current;(F.current=!0,e)&&(!o&&t&&p&&(n="appear"),o&&t&&s&&(n="enter"),(o&&!t&&f||!o&&m&&!t&&f)&&(n="leave"),n&&(K(n),$()))}),[t]),Object(c.useEffect)((function(){("appear"===R&&!p||"enter"===R&&!s||"leave"===R&&!f)&&K("none")}),[p,s,f]),Object(c.useEffect)((function(){return function(){clearTimeout(H.current),W.current=!0}}),[]),Object(c.useEffect)((function(){void 0!==N&&"none"===R&&(null==M||M(N))}),[N,R]);var ne=V;return X.prepare&&"start"===ee&&(ne=Object(i.a)({transition:"none"},ne)),[R,ee,ne,null!=N?N:t]}var Re=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(C.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);var Ke=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(T.a)(e)&&(t=e.transitionSupport);var a=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,u=e.removeOnLeave,p=void 0===u||u,d=e.forceRender,f=e.children,v=e.motionName,m=e.leavedClassName,h=e.eventProps,b=n(e),g=Object(c.useRef)(),y=Object(c.useRef)();var O=De(b,l,(function(){try{return Object(le.a)(g.current||y.current)}catch(e){return null}}),e),j=Object(r.a)(O,4),w=j[0],C=j[1],E=j[2],x=j[3],k=c.useRef(x);x&&(k.current=!0);var S=Object(c.useRef)(t);S.current=t;var M,P=c.useCallback((function(e){g.current=e,Object(se.b)(S.current,e)}),[]),_=Object(i.a)(Object(i.a)({},h),{},{visible:l});if(f)if("none"!==w&&n(e)){var N,T;"prepare"===C?T="prepare":Te(C)?T="active":"start"===C&&(T="start"),M=f(Object(i.a)(Object(i.a)({},_),{},{className:s()(Me(v,w),(N={},Object(o.a)(N,Me(v,"".concat(w,"-").concat(T)),T),Object(o.a)(N,v,"string"==typeof v),N)),style:E}),P)}else M=x?f(Object(i.a)({},_),P):!p&&k.current?f(Object(i.a)(Object(i.a)({},_),{},{className:m}),P):d?f(Object(i.a)(Object(i.a)({},_),{},{style:{display:"none"}}),P):null;else M=null;return c.createElement(Re,{ref:y},M)}));return a.displayName="CSSMotion",a}(xe);function Ae(e){var t;return t=e&&"object"===Object(T.a)(e)&&"key"in e?e:{key:e},Object(i.a)(Object(i.a)({},t),{},{key:String(t.key)})}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Ae)}function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,a=ze(e),c=ze(t);a.forEach((function(e){for(var t=!1,a=o;a<r;a+=1){var l=c[a];if(l.key===e.key){o<a&&(n=n.concat(c.slice(o,a).map((function(e){return Object(i.a)(Object(i.a)({},e),{},{status:"add"})}))),o=a),n.push(Object(i.a)(Object(i.a)({},l),{},{status:"keep"})),o+=1,t=!0;break}}t||n.push(Object(i.a)(Object(i.a)({},e),{},{status:"remove"}))})),o<r&&(n=n.concat(c.slice(o).map((function(e){return Object(i.a)(Object(i.a)({},e),{},{status:"add"})}))));var l={};n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1}));var s=Object.keys(l).filter((function(e){return l[e]>1}));return s.forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||"remove"!==o}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var Le=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke,n=function(e){Object(x.a)(o,e);var n=Object(k.a)(o);function o(){var e;return Object(w.a)(this,o),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Object(i.a)(Object(i.a)({},e),{},{status:"removed"})}))}}))},e}return Object(C.a)(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,r=o.component,i=o.children,l=o.onVisibleChanged,s=Object(a.a)(o,["component","children","onVisibleChanged"]),u=r||c.Fragment,p={};return Le.forEach((function(e){p[e]=s[e],delete s[e]})),delete s.keys,c.createElement(u,s,n.map((function(n){var o=n.status,r=Object(a.a)(n,["status"]),s="add"===o||"keep"===o;return c.createElement(t,Object(j.a)({},p,{key:r.key,visible:s,eventProps:r,onVisibleChanged:function(t){null==l||l(t,{key:r.key}),t||e.removeKey(r.key)}}),i)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=ze(n);return{keyEntities:Ve(o,r).filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}(c.Component);n.defaultProps={component:"div"}}(xe);var Fe=Ke;function He(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function We(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,r=e.mask,a=e.maskMotion,l=e.maskAnimation,u=e.maskTransitionName;if(!r)return null;var p={};return(a||u||l)&&(p=Object(i.a)({motionAppear:!0},He({motion:a,prefixCls:t,transitionName:u,animation:l}))),c.createElement(Fe,Object(j.a)({},p,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:o},className:s()("".concat(t,"-mask"),n)})}))}var Be=n("9mu1"),Ue=n("o0o1"),qe=n.n(Ue),Ge=n("HaE+"),Je=["measure","align",null,"motion"],Ye=c.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,a=e.className,l=e.style,u=e.children,p=e.zIndex,d=e.stretch,f=e.destroyPopupOnHide,v=e.forceRender,m=e.align,h=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,O=e.onMouseEnter,w=e.onMouseLeave,C=e.onMouseDown,E=e.onTouchStart,x=Object(c.useRef)(),k=Object(c.useRef)(),S=Object(c.useState)(),M=Object(r.a)(S,2),P=M[0],_=M[1],N=function(e){var t=c.useState({width:0,height:0}),n=Object(r.a)(t,2),o=n[0],a=n[1];return[c.useMemo((function(){var t={};if(e){var n=o.width,r=o.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){a({width:e.offsetWidth,height:e.offsetHeight})}]}(d),T=Object(r.a)(N,2),I=T[0],D=T[1];var R=function(e,t){var n=Object(c.useState)(null),o=Object(r.a)(n,2),a=o[0],i=o[1],l=Object(c.useRef)(),s=Object(c.useRef)(!1);function u(e){s.current||i(e)}function p(){ie.a.cancel(l.current)}return Object(c.useEffect)((function(){u("measure")}),[e]),Object(c.useEffect)((function(){switch(a){case"measure":t()}a&&(l.current=Object(ie.a)(Object(Ge.a)(qe.a.mark((function e(){var t,n;return qe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Je.indexOf(a),(n=Je[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[a]),Object(c.useEffect)((function(){return function(){s.current=!0,p()}}),[]),[a,function(e){p(),l.current=Object(ie.a)((function(){u((function(e){switch(a){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){d&&D(b())})),K=Object(r.a)(R,2),A=K[0],z=K[1],V=Object(c.useRef)();function L(){var e;null===(e=x.current)||void 0===e||e.forceAlign()}function F(e,t){var n=g(t);P!==n&&_(n),"align"===A&&(P!==n?Promise.resolve().then((function(){L()})):z((function(){var e;null===(e=V.current)||void 0===e||e.call(V)})),null==y||y(e,t))}var H=Object(i.a)({},He(e));function W(){return new Promise((function(e){V.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=H[e];H[e]=function(e,n){return z(),null==t?void 0:t(e,n)}})),c.useEffect((function(){H.motionName||"motion"!==A||z()}),[H.motionName,A]),c.useImperativeHandle(t,(function(){return{forceAlign:L,getElement:function(){return k.current}}}));var B=Object(i.a)(Object(i.a)({},I),{},{zIndex:p,opacity:"motion"!==A&&"stable"!==A&&n?0:void 0,pointerEvents:"stable"===A?void 0:"none"},l),U=!0;!(null==m?void 0:m.points)||"align"!==A&&"stable"!==A||(U=!1);var q=u;return c.Children.count(u)>1&&(q=c.createElement("div",{className:"".concat(o,"-content")},u)),c.createElement(Fe,Object(j.a)({visible:n,ref:k,leavedClassName:"".concat(o,"-hidden")},H,{onAppearPrepare:W,onEnterPrepare:W,removeOnLeave:f,forceRender:v}),(function(e,t){var n=e.className,r=e.style,l=s()(o,a,P,n);return c.createElement(Be.a,{target:h||b,key:"popup",ref:x,monitorWindowResize:!0,disabled:U,align:m,onAlign:F},c.createElement("div",{ref:t,className:l,onMouseEnter:O,onMouseLeave:w,onMouseDownCapture:C,onTouchStartCapture:E,style:Object(i.a)(Object(i.a)({},r),B)},q))}))}));Ye.displayName="PopupInner";var Xe=Ye,Qe=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,r=e.zIndex,a=e.children,l=e.mobile,u=(l=void 0===l?{}:l).popupClassName,p=l.popupStyle,d=l.popupMotion,f=void 0===d?{}:d,v=l.popupRender,m=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var h=Object(i.a)({zIndex:r},p),b=a;return c.Children.count(a)>1&&(b=c.createElement("div",{className:"".concat(n,"-content")},a)),v&&(b=v(b)),c.createElement(Fe,Object(j.a)({visible:o,ref:m,removeOnLeave:!0},f),(function(e,t){var o=e.className,r=e.style,a=s()(n,u,o);return c.createElement("div",{ref:t,className:a,style:Object(i.a)(Object(i.a)({},r),h)},b)}))}));Qe.displayName="MobilePopupInner";var Ze=Qe,$e=["visible","mobile"],et=c.forwardRef((function(e,t){var n=e.visible,o=e.mobile,l=Object(a.a)(e,$e),s=Object(c.useState)(n),u=Object(r.a)(s,2),p=u[0],d=u[1],f=Object(c.useState)(!1),v=Object(r.a)(f,2),m=v[0],h=v[1],b=Object(i.a)(Object(i.a)({},l),{},{visible:p});Object(c.useEffect)((function(){d(n),n&&o&&h(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}())}),[n,o]);var g=m?c.createElement(Ze,Object(j.a)({},b,{mobile:o,ref:t})):c.createElement(Xe,Object(j.a)({},b,{ref:t}));return c.createElement("div",null,c.createElement(We,b),g)}));et.displayName="Popup";var tt=et,nt=c.createContext(null);function ot(){}function rt(){return""}function at(e){return e?e.ownerDocument:window.document}var it=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var ct,lt,st=(ct=pe.a,(lt=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(e){var o,r;return Object(w.a)(this,n),(o=t.call(this,e)).popupRef=c.createRef(),o.triggerRef=c.createRef(),o.attachId=void 0,o.clickOutsideHandler=void 0,o.touchOutsideHandler=void 0,o.contextMenuOutsideHandler1=void 0,o.contextMenuOutsideHandler2=void 0,o.mouseDownTimeout=void 0,o.focusTime=void 0,o.preClickTime=void 0,o.preTouchTime=void 0,o.delayTimer=void 0,o.hasPopupMouseDown=void 0,o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(ce.a)(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();Object(ce.a)(n,t)&&!o.isContextMenuOnly()||Object(ce.a)(r,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=Object(le.a)(o.triggerRef.current);if(t)return t}catch(e){}return ae.a.findDOMNode(Object(E.a)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,r=n.popupPlacement,a=n.builtinPlacements,i=n.prefixCls,c=n.alignPoint,l=n.getPopupClassNameFromAlign;return r&&a&&t.push(function(e,t,n,o){for(var r=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var c=a[i];if(de(e[c].points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(a,i,e,c)),l&&t.push(l(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,r=e.popupClassName,a=e.onPopupAlign,i=e.popupMotion,l=e.popupAnimation,s=e.popupTransitionName,u=e.popupStyle,p=e.mask,d=e.maskAnimation,f=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,h=e.popup,b=e.stretch,g=e.alignPoint,y=e.mobile,O=e.forceRender,w=o.state,C=w.popupVisible,E=w.point,x=o.getPopupAlign(),k={};return o.isMouseEnterToShow()&&(k.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(k.onMouseLeave=o.onPopupMouseLeave),k.onMouseDown=o.onPopupMouseDown,k.onTouchStart=o.onPopupMouseDown,c.createElement(tt,Object(j.a)({prefixCls:t,destroyPopupOnHide:n,visible:C,point:g&&E,className:r,align:x,onAlign:a,animation:l,getClassNameFromAlign:o.getPopupClassNameFromAlign},k,{stretch:b,getRootDomNode:o.getRootDomNode,style:u,mask:p,zIndex:m,transitionName:s,maskAnimation:d,maskTransitionName:f,maskMotion:v,ref:o.popupRef,motion:i,mobile:y,forceRender:O}),"function"==typeof h?h():h)},o.attachParent=function(e){ie.a.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,a=n.getDocument,i=o.getRootDomNode();r?(i||0===r.length)&&(t=r(i)):t=a(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=Object(ie.a)((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},o.triggerContextValue={onPopupMouseDown:o.onPopupMouseDown},r="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:r,popupVisible:r},it.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ue.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ue.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ue.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ue.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ie.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return Object(i.a)(Object(i.a)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,a),o.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,r=t.alignPoint,a=t.className,l=t.autoDestroy,u=c.Children.only(n),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,r&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var d=s()(u&&u.props&&u.props.className,a);d&&(p.className=d);var f=Object(i.a)({},p);Object(se.c)(u)&&(f.ref=Object(se.a)(this.triggerRef,u.ref));var v,m=c.cloneElement(u,f);return(e||this.popupRef.current||o)&&(v=c.createElement(ct,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&l&&(v=null),c.createElement(nt.Provider,{value:this.triggerContextValue},m,v)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(c.Component)).contextType=nt,lt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:rt,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},lt),ut={adjustX:1,adjustY:1},pt={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},dt={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},ft=0,vt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mt=function(e,t,n){var r=Z(t),a=e.getState();e.setState({defaultActiveFirst:Object(i.a)(Object(i.a)({},a.defaultActiveFirst),{},Object(o.a)({},r,n))})},ht=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(e){var o;Object(w.a)(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,r=o.props.store,a=o.getVisible();if(t===b.a.ENTER)return o.onTitleClick(e),mt(r,o.props.eventKey,!0),!0;if(t===b.a.RIGHT)return a?n.onKeyDown(e):(o.triggerOpenChange(!0),mt(r,o.props.eventKey,!0)),!0;if(t===b.a.LEFT){var i;if(!a)return;return(i=n.onKeyDown(e))||(o.triggerOpenChange(!1),i=!0),i}return!a||t!==b.a.UP&&t!==b.a.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onMouseEnter,a=t.store;mt(a,o.props.eventKey,!1),r({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=Object(E.a)(o),a({key:r,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onItemHover,a=t.onTitleMouseEnter;r({key:n,hover:!0}),a({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onItemHover,i=t.onTitleMouseLeave;n.subMenuInstance=Object(E.a)(o),a({key:r,hover:!1}),i({key:r,domEvent:e})},o.onTitleClick=function(e){var t=Object(E.a)(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!o.getVisible(),"click"),mt(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.getVisible=function(){return o.state.isOpen},o.getMode=function(){return o.state.mode},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return Object(i.a)(Object(i.a)({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,r=function(){o.onOpenChange({key:n,item:Object(E.a)(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){r()}),0):r()},o.isChildrenSelected=function(){var e={find:!1};return function e(t,n,o){t&&!o.find&&c.Children.forEach(t,(function(t){if(t){var r=t.type;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;-1!==n.indexOf(t.key)?o.find=!0:t.props.children&&e(t.props.children,n,o)}}))}(o.props.children,o.props.selectedKeys,e),e.find},o.isInlineMode=function(){return"inline"===o.getMode()},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=re.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=Object(E.a)(o).props,t=o.getMode();return{mode:"horizontal"===t?"vertical":t,visible:o.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(E.a)(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[Z(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=Object(E.a)(o).haveRendered,r=o.props,a=r.motion,c=r.rootPrefixCls;return Object(i.a)(Object(i.a)({},a),{},{leavedClassName:"".concat(c,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var r=e.store,a=e.eventKey,l=r.getState().defaultActiveFirst;o.isRootMenu=!1;var s=!1;return l&&(s=l[a]),mt(r,a,s),o.state={mode:e.mode,isOpen:e.isOpen},o}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,r=t.manualRef,a=t.isOpen,i=function(){e.setState({mode:n,isOpen:a})},c=a!==this.state.isOpen,l=n!==this.state.mode;(l||c)&&(ie.a.cancel(this.updateStateRaf),l?this.updateStateRaf=Object(ie.a)(i):i()),r&&r(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ie.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return c.createElement(kt,Object(j.a)({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,r=t.visible,a=t.forceSubMenuRender,i=t.direction,l=this.getMotion(n,r);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||r||a,!this.haveOpened)return c.createElement("div",null);var u=s()("".concat(t.prefixCls,"-sub"),Object(o.a)({},"".concat(t.prefixCls,"-rtl"),"rtl"===i));return this.isInlineMode()?c.createElement(Fe,Object(j.a)({visible:t.visible,forceRender:a},l),(function(t){var n=t.className,o=t.style,r=s()(u,n);return e.renderPopupMenu(r,o)})):this.renderPopupMenu(u)}},{key:"render",value:function(){var e,t,n,r=Object(i.a)({},this.props),a=this.getVisible(),l=this.getPrefixCls(),u=this.isInlineMode(),p=this.getMode(),d=s()(l,"".concat(l,"-").concat(p),(e={},Object(o.a)(e,r.className,!!r.className),Object(o.a)(e,this.getOpenClassName(),a),Object(o.a)(e,this.getActiveClassName(),r.active||a&&!u),Object(o.a)(e,this.getDisabledClassName(),r.disabled),Object(o.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(r.eventKey?this.internalMenuId="".concat(r.eventKey,"$Menu"):(ft+=1,this.internalMenuId="$__$".concat(ft,"$Menu")));var f={},v={},m={};r.disabled||(f={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},v={onClick:this.onTitleClick},m={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var h={},b="rtl"===r.direction;u&&(b?h.paddingRight=r.inlineIndent*r.level:h.paddingLeft=r.inlineIndent*r.level);var g={};this.getVisible()&&(g={"aria-owns":this.internalMenuId});var y=null;"horizontal"!==p&&(y=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(y=c.createElement(this.props.expandIcon,Object(i.a)({},this.props))));var O=c.createElement("div",Object(j.a)({ref:this.saveSubMenuTitle,style:h,className:"".concat(l,"-title"),role:"button"},m,v,{"aria-expanded":a},g,{"aria-haspopup":"true",title:"string"==typeof r.title?r.title:void 0}),r.title,y||c.createElement("i",{className:"".concat(l,"-arrow")})),w=this.renderChildren(),C=(null===(t=r.parentMenu)||void 0===t?void 0:t.isRootMenu)?r.parentMenu.props.getPopupContainer:function(e){return e.parentNode},E=vt[p],x=r.popupOffset?{offset:r.popupOffset}:{},k=s()((n={},Object(o.a)(n,r.popupClassName,r.popupClassName&&!u),Object(o.a)(n,"".concat(l,"-rtl"),b),n)),S=r.disabled,M=r.triggerSubMenuAction,P=r.subMenuOpenDelay,_=r.forceSubMenuRender,N=r.subMenuCloseDelay,T=r.builtinPlacements;ee.forEach((function(e){return delete r[e]})),delete r.onClick;var I=b?Object(i.a)(Object(i.a)({},dt),T):Object(i.a)(Object(i.a)({},pt),T);delete r.direction;var D=this.getBaseProps(),R=u?null:this.getMotion(D.mode,D.visible);return c.createElement("li",Object(j.a)({},r,f,{className:d,role:"menuitem"}),c.createElement(st,{prefixCls:l,popupClassName:s()("".concat(l,"-popup"),k),getPopupContainer:C,builtinPlacements:I,popupPlacement:E,popupVisible:!u&&a,popupAlign:x,popup:u?null:w,action:S||u?[]:[M],mouseEnterDelay:P,mouseLeaveDelay:N,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:_,popupMotion:R},O),u?w:null)}}]),n}(c.Component);ht.defaultProps={onMouseEnter:X,onMouseLeave:X,onTitleMouseEnter:X,onTitleMouseLeave:X,onTitleClick:X,manualRef:X,mode:"vertical",title:""};var bt=Object(S.b)((function(e,t){var n=e.openKeys,o=e.activeKey,r=e.selectedKeys,a=t.eventKey,i=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:o[i]===a,selectedKeys:r}}))(ht);bt.isSubMenu=!0;var gt=bt,yt=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(){var e;return Object(w.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=c.createRef(),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,o){var r=e.props,l=r.overflowedIndicator,s=r.level,u=r.mode,p=r.prefixCls,d=r.theme;if(1!==s||"horizontal"!==u)return null;var f=e.props.children[0].props,v=(f.children,f.title,f.style),m=Object(a.a)(f,["children","title","style"]),h=Object(i.a)({},v),b="".concat(t,"-overflowed-indicator"),g="".concat(t,"-overflowed-indicator");0===n.length&&!0!==o?h=Object(i.a)(Object(i.a)({},h),{},{display:"none"}):o&&(h=Object(i.a)(Object(i.a)({},h),{},{visibility:"hidden",position:"absolute"}),b="".concat(b,"-placeholder"),g="".concat(g,"-placeholder"));var y=d?"".concat(p,"-").concat(d):"",O={};return ee.forEach((function(e){void 0!==m[e]&&(O[e]=m[e])})),c.createElement(gt,Object(j.a)({title:l,className:"".concat(p,"-overflowed-submenu"),popupClassName:y},O,{key:b,eventKey:g,disabled:!1,style:h}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];ne(o,"display","inline-block");var r=e.getMenuItemNodes(),a=r.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));a.forEach((function(e){ne(e,"display","inline-block")})),e.menuItemSizes=r.map((function(e){return te(e,!0)})),a.forEach((function(e){ne(e,"display","none")})),e.overflowedIndicatorWidth=te(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ne(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=te(t);e.overflowedItems=[];var o,r=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(r+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return Object(C.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new oe.default((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(o,r,a){var i=r;if("horizontal"===t.props.mode){var l=t.getOverflowedSubMenuItem(r.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(a>n&&(i=c.cloneElement(r,{style:{display:"none"},eventKey:"".concat(r.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),a===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return c.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),l=t.getOverflowedSubMenuItem(r.props.eventKey,t.overflowedItems)));var s=[].concat(Object(d.a)(o),[l,i]);return a===e.length-1&&s.push(t.getOverflowedSubMenuItem(r.props.eventKey,[],!0)),s}return[].concat(Object(d.a)(o),[i])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,o=(e.theme,Object(a.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),r=t;return c.createElement(r,Object(j.a)({ref:this.childRef},o),this.renderChildren(n))}}]),n}(c.Component);yt.defaultProps={tag:"div",className:""};var Ot=yt;function jt(e,t,n){var r=e.getState();e.setState({activeKey:Object(i.a)(Object(i.a)({},r.activeKey),{},Object(o.a)({},t,n))})}function wt(e){return e.eventKey||"0-menu-"}function Ct(e,t){var n,o=t,r=e.children,a=e.eventKey;if(o&&($(r,(function(e,t){e&&e.props&&!e.props.disabled&&o===Q(e,a,t)&&(n=!0)})),n))return o;return o=null,e.defaultActiveFirst?($(r,(function(e,t){o||!e||e.props.disabled||(o=Q(e,a,t))})),o):o}function Et(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var xt=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(e){var r;return Object(w.a)(this,n),(r=t.call(this,e)).onKeyDown=function(e,t){var n,o=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return o!==b.a.UP&&o!==b.a.DOWN||(a=r.step(o===b.a.UP?-1:1)),a?(e.preventDefault(),jt(r.props.store,wt(r.props),a.props.eventKey),"function"==typeof t&&t(a),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;jt(r.props.store,wt(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[wt(r.props)],o=t.length;if(!o)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),r.props.defaultActiveFirst||-1===a||(i=t.slice(a,o-1)).length&&!i.every((function(e){return!!e.props.disabled}))){var i,c=(a+1)%o,l=c;do{var s=t[l];if(s&&!s.props.disabled)return s;l=(l+1)%o}while(l!==c);return null}},r.renderCommonMenuItem=function(e,t,n){var o=r.props.store.getState(),a=Object(E.a)(r).props,l=Q(e,a.eventKey,t),s=e.props;if(!s||"string"==typeof e.type)return e;var u=l===o.activeKey,p=Object(i.a)(Object(i.a)({mode:s.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:s.disabled?void 0:Object(P.a)(e.ref,Et.bind(Object(E.a)(r))),eventKey:l,active:!s.disabled&&u,multiple:a.multiple,onClick:function(e){(s.onClick||X)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:s.itemIcon||r.props.itemIcon,expandIcon:s.expandIcon||r.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||Y.any)&&(p.triggerSubMenuAction="click"),c.cloneElement(e,Object(i.a)(Object(i.a)({},p),{},{key:l||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var o=r.props.store.getState(),a={openKeys:o.openKeys,selectedKeys:o.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:Object(i.a)(Object(i.a)({},e.store.getState().activeKey),{},Object(o.a)({},e.eventKey,Ct(e,e.activeKey)))}),r.instanceArray=[],r}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!N()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[wt(t)],o=Ct(t,n);if(o!==n)jt(t.store,wt(t),o);else if("activeKey"in e){o!==Ct(e,e.activeKey)&&jt(t.store,wt(t),o)}}},{key:"render",value:function(){var e=this,t=Object(j.a)({},this.props);this.instanceArray=[];var n={className:s()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var o=t.prefixCls,r=t.eventKey,a=t.visible,i=t.level,l=t.mode,p=t.overflowedIndicator,d=t.theme;return ee.forEach((function(e){return delete t[e]})),delete t.onClick,c.createElement(Ot,Object(j.a)({},t,{prefixCls:o,mode:l,tag:"ul",level:i,theme:d,visible:a,overflowedIndicator:p},n),Object(u.a)(t.children).map((function(t,n){return e.renderMenuItem(t,n,r||"0-menu-")})))}}]),n}(c.Component);xt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:X};var kt=Object(S.b)()(xt),St=n("Kwbf");function Mt(e,t,n){var o=e.prefixCls,r=e.motion,a=e.defaultMotions,i=void 0===a?{}:a,c=e.openAnimation,l=e.openTransitionName,s=t.switchingModeFromInline;if(r)return r;if("object"===Object(T.a)(c)&&c)Object(St.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof c)return{motionName:"".concat(o,"-open-").concat(c)};if(l)return{motionName:l};var u=i[n];return u||(s?null:i.other)}var Pt=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(e){var o;Object(w.a)(this,n),(o=t.call(this,e)).onSelect=function(e){var t=Object(E.a)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect(Object(i.a)(Object(i.a)({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=Object(E.a)(o),r=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(r.setState({openKeys:[]}),a([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=Object(E.a)(o).props,n=o.store.getState().openKeys.concat(),r=!1,a=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}r=r||t};Array.isArray(e)?e.forEach(a):a(e),r&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=Object(E.a)(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),r=e.key,a=n.indexOf(r);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect(Object(i.a)(Object(i.a)({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,r="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&r.indexOf("anticon")>=0;(t||a)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var r=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(r=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),o.store=Object(S.c)({selectedKeys:r,openKeys:a,activeKey:{"0-menu-":Ct(e,e.activeKey)}}),o.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:o.store},o}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,r=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&r([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(i.a)({},Object(M.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Object(i.a)(Object(i.a)({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Mt(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,c.createElement(S.a,{store:this.store},c.createElement(kt,Object(j.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.store,r=o.getState(),a={},i={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(i.switchingModeFromInline=!0),"openKeys"in e?a.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(i.switchingModeFromInline=!0,i.inlineOpenKeys=r.openKeys,a.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(a.openKeys=t.inlineOpenKeys,i.inlineOpenKeys=[])),Object.keys(a).length&&o.setState(a),i}}]),n}(c.Component);Pt.defaultProps={selectable:!0,onClick:X,onSelect:X,onOpenChange:X,onDeselect:X,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:c.createElement("span",null,"···")};var _t=Pt,Nt=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(){var e;return Object(w.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===b.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseLeave;r({key:o,hover:!1}),a({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseEnter;r({key:o,hover:!0}),a({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,r=n.multiple,a=n.onClick,i=n.onSelect,c=n.onDeselect,l=n.isSelected,s={key:o,keyPath:[o],item:Object(E.a)(e),domEvent:t};a(s),r?l?c(s):i(s):l||i(s)},e.saveNode=function(t){e.node=t},e}return Object(C.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(i.a)({},this.props),n=s()(this.getPrefixCls(),t.className,(e={},Object(o.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(o.a)(e,this.getSelectedClassName(),t.isSelected),Object(o.a)(e,this.getDisabledClassName(),t.disabled),e)),r=Object(i.a)(Object(i.a)({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=Object(i.a)(Object(i.a)({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},l=Object(i.a)({},t.style);"inline"===t.mode&&("rtl"===t.direction?l.paddingRight=t.inlineIndent*t.level:l.paddingLeft=t.inlineIndent*t.level),ee.forEach((function(e){return delete t[e]})),delete t.direction;var u=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(u=c.createElement(this.props.itemIcon,this.props)),c.createElement("li",Object(j.a)({},Object(M.a)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,a,{style:l,ref:this.saveNode}),t.children,u)}}]),n}(c.Component);Nt.isMenuItem=!0,Nt.defaultProps={onSelect:X,onMouseEnter:X,onMouseLeave:X,manualRef:X};var Tt=Object(S.b)((function(e,t){var n=e.activeKey,o=e.selectedKeys,r=t.eventKey;return{active:n[t.subMenuKey]===r,isSelected:Array.isArray(o)?-1!==o.indexOf(r):o===r}}))(Nt),It=function(e){Object(x.a)(n,e);var t=Object(k.a)(n);function n(){var e;return Object(w.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(C.a)(n,[{key:"render",value:function(){var e=Object(j.a)({},this.props),t=e.className,n=void 0===t?"":t,o=e.rootPrefixCls,r="".concat(o,"-item-group-title"),a="".concat(o,"-item-group-list"),i=e.title,l=e.children;return ee.forEach((function(t){return delete e[t]})),delete e.direction,c.createElement("li",Object(j.a)({},e,{onClick:function(e){return e.stopPropagation()},className:"".concat(n," ").concat(o,"-item-group")}),c.createElement("div",{className:r,title:"string"==typeof i?i:void 0},i),c.createElement("ul",{className:a},c.Children.map(l,this.renderInnerMenuItem)))}}]),n}(c.Component);It.isMenuItemGroup=!0,It.defaultProps={disabled:!0};var Dt=function(e){var t=e.className,n=e.rootPrefixCls,o=e.style;return c.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:o})};Dt.defaultProps={disabled:!0,className:"",style:{}};var Rt=_t,Kt=n("eDIo");var At=c.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,a=e.style;return o&&!1!==o.showAdd?c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));var zt=c.forwardRef((function(e,t){var n=e.prefixCls,a=e.id,i=e.tabs,l=e.locale,u=e.mobile,p=e.moreIcon,d=void 0===p?"More":p,f=e.moreTransitionName,v=e.style,m=e.className,h=e.editable,g=e.tabBarGutter,y=e.rtl,O=e.onTabClick,j=Object(c.useState)(!1),w=Object(r.a)(j,2),C=w[0],E=w[1],x=Object(c.useState)(null),k=Object(r.a)(x,2),S=k[0],M=k[1],P="".concat(a,"-more-popup"),_="".concat(n,"-dropdown"),N=null!==S?"".concat(P,"-").concat(S):null,T=null==l?void 0:l.dropdownAriaLabel,I=c.createElement(Rt,{onClick:function(e){var t=e.key,n=e.domEvent;O(t,n),E(!1)},id:P,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[S],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(e){return c.createElement(Tt,{key:e.key,id:"".concat(P,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function D(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===S}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void M(a.key)}}Object(c.useEffect)((function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[S]),Object(c.useEffect)((function(){C||M(null)}),[C]);var R=Object(o.a)({},y?"marginLeft":"marginRight",g);i.length||(R.visibility="hidden",R.order=1);var K=s()(Object(o.a)({},"".concat(_,"-rtl"),y)),A=u?null:c.createElement(Kt.a,{prefixCls:_,overlay:I,trigger:["hover"],visible:C,transitionName:f,onVisibleChange:E,overlayClassName:K,mouseEnterDelay:.1,mouseLeaveDelay:.1},c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(a,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case b.a.UP:D(-1),e.preventDefault();break;case b.a.DOWN:D(1),e.preventDefault();break;case b.a.ESC:E(!1);break;case b.a.SPACE:case b.a.ENTER:null!==S&&O(S,e)}else[b.a.DOWN,b.a.SPACE,b.a.ENTER].includes(t)&&(E(!0),e.preventDefault())}},d));return c.createElement("div",{className:s()("".concat(n,"-nav-operations"),m),style:v,ref:t},A,c.createElement(At,{prefixCls:n,locale:l,editable:h}))})),Vt=Object(c.createContext)(null),Lt=Math.pow(.995,20);function Ft(e,t){var n=c.useRef(e),o=c.useState({}),a=Object(r.a)(o,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,a({})}]}var Ht=function(e){var t,n=e.position,o=e.prefixCls,r=e.extra;if(!r)return null;var a=r;return"right"===n&&(t=a.right||!a.left&&a||null),"left"===n&&(t=a.left||null),t?c.createElement("div",{className:"".concat(o,"-extra-content")},t):null};var Wt=c.forwardRef((function(e,t){var n,a,l=c.useContext(Vt),u=l.prefixCls,p=l.tabs,f=e.className,b=e.style,j=e.id,w=e.animated,C=e.activeKey,E=e.rtl,x=e.extra,k=e.editable,S=e.locale,M=e.tabPosition,P=e.tabBarGutter,_=e.children,N=e.onTabClick,T=e.onTabScroll,I=Object(c.useRef)(),D=Object(c.useRef)(),R=Object(c.useRef)(),K=Object(c.useRef)(),A=(a=Object(c.useRef)(new Map),[function(e){return a.current.has(e)||a.current.set(e,c.createRef()),a.current.get(e)},function(e){a.current.delete(e)}]),z=Object(r.a)(A,2),V=z[0],L=z[1],F="top"===M||"bottom"===M,H=Ft(0,(function(e,t){F&&T&&T({direction:e>t?"left":"right"})})),W=Object(r.a)(H,2),B=W[0],U=W[1],q=Ft(0,(function(e,t){!F&&T&&T({direction:e>t?"top":"bottom"})})),G=Object(r.a)(q,2),J=G[0],Y=G[1],X=Object(c.useState)(0),Q=Object(r.a)(X,2),Z=Q[0],$=Q[1],ee=Object(c.useState)(0),te=Object(r.a)(ee,2),ne=te[0],oe=te[1],re=Object(c.useState)(0),ae=Object(r.a)(re,2),ie=ae[0],ce=ae[1],le=Object(c.useState)(0),se=Object(r.a)(le,2),ue=se[0],pe=se[1],de=Object(c.useState)(null),fe=Object(r.a)(de,2),ve=fe[0],me=fe[1],he=Object(c.useState)(null),be=Object(r.a)(he,2),ge=be[0],ye=be[1],Oe=Object(c.useState)(0),je=Object(r.a)(Oe,2),we=je[0],Ce=je[1],Ee=Object(c.useState)(0),xe=Object(r.a)(Ee,2),ke=xe[0],Se=xe[1],Me=function(e){var t=Object(c.useRef)([]),n=Object(c.useState)({}),o=Object(r.a)(n,2)[1],a=Object(c.useRef)("function"==typeof e?e():e),i=h((function(){var e=a.current;t.current.forEach((function(t){e=t(e)})),t.current=[],a.current=e,o({})}));return[a.current,function(e){t.current.push(e),i()}]}(new Map),Pe=Object(r.a)(Me,2),_e=Pe[0],Ne=Pe[1],Te=function(e,t,n){return Object(c.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||y,a=r.left+r.width,c=0;c<e.length;c+=1){var l,s=e[c].key,u=t.get(s);if(!u)u=t.get(null===(l=e[c-1])||void 0===l?void 0:l.key)||y;var p=o.get(s)||Object(i.a)({},u);p.right=a-p.left-p.width,o.set(s,p)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(p,_e,Z),Ie="".concat(u,"-nav-operations-hidden"),De=0,Re=0;function Ke(e){return e<De?[De,!1]:e>Re?[Re,!1]:[e,!0]}F?E?(De=0,Re=Math.max(0,Z-ve)):(De=Math.min(0,ve-Z),Re=0):(De=Math.min(0,ge-ne),Re=0);var Ae=Object(c.useRef)(),ze=Object(c.useState)(),Ve=Object(r.a)(ze,2),Le=Ve[0],Fe=Ve[1];function He(){Fe(Date.now())}function We(){window.clearTimeout(Ae.current)}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=Te.get(e);if(t)if(F){var n=B;E?t.right<B?n=t.right:t.right+t.width>B+ve&&(n=t.right+t.width-ve):t.left<-B?n=-t.left:t.left+t.width>-B+ve&&(n=-(t.left+t.width-ve)),Y(0),U(Ke(n)[0])}else{var o=J;t.top<-J?o=-t.top:t.top+t.height>-J+ge&&(o=-(t.top+t.height-ge)),U(0),Y(Ke(o)[0])}}!function(e,t){var n=Object(c.useState)(),o=Object(r.a)(n,2),a=o[0],i=o[1],l=Object(c.useState)(0),s=Object(r.a)(l,2),u=s[0],p=s[1],d=Object(c.useState)(0),f=Object(r.a)(d,2),v=f[0],m=f[1],h=Object(c.useState)(),b=Object(r.a)(h,2),g=b[0],y=b[1],O=Object(c.useRef)(),j=Object(c.useRef)(0),w=Object(c.useRef)(!1),C=Object(c.useRef)(),E=Object(c.useRef)(null);E.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(O.current)},onTouchMove:function(e){if(a){e.preventDefault();var n=e.touches[0],o=n.screenX,r=n.screenY;i({x:o,y:r});var c=o-a.x,l=r-a.y;t(c,l);var s=Date.now();p(s),m(s-u),y({x:c,y:l})}},onTouchEnd:function(){if(a&&(i(null),y(null),g)){var e=g.x/v,n=g.y/v,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var c=e,l=n;O.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(l)<.01?window.clearInterval(O.current):t(20*(c*=Lt),20*(l*=Lt))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,a=Math.abs(n),i=Math.abs(o);a===i?r="x"===C.current?n:o:a>i?(r=n,C.current="x"):(r=o,C.current="y");var c=Date.now();c-j.current>100&&(w.current=!1),(t(-r,-r)||w.current)&&(e.preventDefault(),w.current=!0),j.current=c}},c.useEffect((function(){function t(e){E.current.onTouchMove(e)}function n(e){E.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){E.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){E.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(I,(function(e,t){var n=!1;function o(e,t){e((function(e){var o=Ke(e+t),a=Object(r.a)(o,2),i=a[0],c=a[1];return n=c,i}))}if(F){if(ve>=Z)return n;o(U,e)}else{if(ge>=ne)return n;o(Y,t)}return We(),He(),n})),Object(c.useEffect)((function(){return We(),Le&&(Ae.current=window.setTimeout((function(){Fe(0)}),100)),We}),[Le]);var Ue=function(e,t,n,o,r){var a,i,l,s=r.tabs,u=r.tabPosition,p=r.rtl;["top","bottom"].includes(u)?(a="width",i=p?"right":"left",l=Math.abs(t.left)):(a="height",i="top",l=-t.top);var d=t[a],f=n[a],v=o[a],m=d;return f+v>d&&(m=d-v),Object(c.useMemo)((function(){if(!s.length)return[0,0];for(var t=s.length,n=t,o=0;o<t;o+=1){var r=e.get(s[o].key)||O;if(r[i]+r[a]>l+m){n=o-1;break}}for(var c=0,u=t-1;u>=0;u-=1){if((e.get(s[u].key)||O)[i]<l){c=u+1;break}}return[c,n]}),[e,l,m,u,s.map((function(e){return e.key})).join("_"),p])}(Te,{width:ve,height:ge,left:B,top:J},{width:ie,height:ue},{width:we,height:ke},Object(i.a)(Object(i.a)({},e),{},{tabs:p})),qe=Object(r.a)(Ue,2),Ge=qe[0],Je=qe[1],Ye=p.map((function(e){var t=e.key;return c.createElement(g,{id:j,prefixCls:u,key:t,rtl:E,tab:e,closable:e.closable,editable:k,active:t===C,tabPosition:M,tabBarGutter:P,renderWrapper:_,removeAriaLabel:null==S?void 0:S.removeAriaLabel,ref:V(t),onClick:function(e){N(t,e)},onRemove:function(){L(t)},onFocus:function(){Be(t),He(),E||(I.current.scrollLeft=0),I.current.scrollTop=0}})})),Xe=h((function(){var e,t,n,o,r,a,i,c,l,s=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=I.current)||void 0===t?void 0:t.offsetHeight)||0,d=(null===(n=K.current)||void 0===n?void 0:n.offsetWidth)||0,f=(null===(o=K.current)||void 0===o?void 0:o.offsetHeight)||0,v=(null===(r=R.current)||void 0===r?void 0:r.offsetWidth)||0,m=(null===(a=R.current)||void 0===a?void 0:a.offsetHeight)||0;me(s),ye(u),Ce(d),Se(f);var h=((null===(i=D.current)||void 0===i?void 0:i.offsetWidth)||0)-d,b=((null===(c=D.current)||void 0===c?void 0:c.offsetHeight)||0)-f;$(h),oe(b);var g=null===(l=R.current)||void 0===l?void 0:l.className.includes(Ie);ce(h-(g?0:v)),pe(b-(g?0:m)),Ne((function(){var e=new Map;return p.forEach((function(t){var n=t.key,o=V(n).current;o&&e.set(n,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))})),Qe=p.slice(0,Ge),Ze=p.slice(Je+1),$e=[].concat(Object(d.a)(Qe),Object(d.a)(Ze)),et=Object(c.useState)(),tt=Object(r.a)(et,2),nt=tt[0],ot=tt[1],rt=Te.get(C),at=Object(c.useRef)();function it(){v.a.cancel(at.current)}Object(c.useEffect)((function(){var e={};return rt&&(F?(E?e.right=rt.right:e.left=rt.left,e.width=rt.width):(e.top=rt.top,e.height=rt.height)),it(),at.current=v()((function(){ot(e)})),it}),[rt,F,E]),Object(c.useEffect)((function(){Be()}),[C,rt,Te,F]),Object(c.useEffect)((function(){Xe()}),[E,P,C,p.map((function(e){return e.key})).join("_")]);var ct,lt,st,ut,pt=!!$e.length,dt="".concat(u,"-nav-wrap");return F?E?(lt=B>0,ct=B+ve<Z):(ct=B<0,lt=-B+ve<Z):(st=J<0,ut=-J+ge<ne),c.createElement("div",{ref:t,role:"tablist",className:s()("".concat(u,"-nav"),f),style:b,onKeyDown:function(){He()}},c.createElement(Ht,{position:"left",extra:x,prefixCls:u}),c.createElement(m.a,{onResize:Xe},c.createElement("div",{className:s()(dt,(n={},Object(o.a)(n,"".concat(dt,"-ping-left"),ct),Object(o.a)(n,"".concat(dt,"-ping-right"),lt),Object(o.a)(n,"".concat(dt,"-ping-top"),st),Object(o.a)(n,"".concat(dt,"-ping-bottom"),ut),n)),ref:I},c.createElement(m.a,{onResize:Xe},c.createElement("div",{ref:D,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(J,"px)"),transition:Le?"none":void 0}},Ye,c.createElement(At,{ref:K,prefixCls:u,locale:S,editable:k,style:{visibility:pt?"hidden":null}}),c.createElement("div",{className:s()("".concat(u,"-ink-bar"),Object(o.a)({},"".concat(u,"-ink-bar-animated"),w.inkBar)),style:nt}))))),c.createElement(zt,Object.assign({},e,{ref:R,prefixCls:u,tabs:$e,className:!pt&&Ie})),c.createElement(Ht,{position:"right",extra:x,prefixCls:u}))}));function Bt(e){var t=e.id,n=e.activeKey,r=e.animated,a=e.tabPosition,i=e.rtl,l=e.destroyInactiveTabPane,u=c.useContext(Vt),p=u.prefixCls,d=u.tabs,f=r.tabPane,v=d.findIndex((function(e){return e.key===n}));return c.createElement("div",{className:s()("".concat(p,"-content-holder"))},c.createElement("div",{className:s()("".concat(p,"-content"),"".concat(p,"-content-").concat(a),Object(o.a)({},"".concat(p,"-content-animated"),f)),style:v&&f?Object(o.a)({},i?"marginRight":"marginLeft","-".concat(v,"00%")):null},d.map((function(e){return c.cloneElement(e.node,{key:e.key,prefixCls:p,tabKey:e.key,id:t,animated:f,active:e.key===n,destroyInactiveTabPane:l})}))))}function Ut(e){var t=e.prefixCls,n=e.forceRender,o=e.className,a=e.style,l=e.id,u=e.active,p=e.animated,d=e.destroyInactiveTabPane,f=e.tabKey,v=e.children,m=c.useState(n),h=Object(r.a)(m,2),b=h[0],g=h[1];c.useEffect((function(){u?g(!0):d&&g(!1)}),[u,d]);var y={};return u||(p?(y.visibility="hidden",y.height=0,y.overflowY="hidden"):y.display="none"),c.createElement("div",{id:l&&"".concat(l,"-panel-").concat(f),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(f),"aria-hidden":!u,style:Object(i.a)(Object(i.a)({},y),a),className:s()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),o)},(u||b||n)&&v)}var qt=0;var Gt=c.forwardRef((function(e,t){var n,l,d=e.id,f=e.prefixCls,v=void 0===f?"rc-tabs":f,m=e.className,h=e.children,b=e.direction,g=e.activeKey,y=e.defaultActiveKey,O=e.editable,j=e.animated,w=e.tabPosition,C=void 0===w?"top":w,E=e.tabBarGutter,x=e.tabBarStyle,k=e.tabBarExtraContent,S=e.locale,M=e.moreIcon,P=e.moreTransitionName,_=e.destroyInactiveTabPane,N=e.renderTabBar,T=e.onChange,I=e.onTabClick,D=e.onTabScroll,R=Object(a.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),K=function(e){return Object(u.a)(e).map((function(e){if(c.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return Object(i.a)(Object(i.a)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(h),A="rtl"===b;l=!1===j?{inkBar:!1,tabPane:!1}:Object(i.a)({inkBar:!0,tabPane:!1},!0!==j?j:null);var z=Object(c.useState)(!1),V=Object(r.a)(z,2),L=V[0],F=V[1];Object(c.useEffect)((function(){var e;F((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[]);var H=Object(p.a)((function(){var e;return null===(e=K[0])||void 0===e?void 0:e.key}),{value:g,defaultValue:y}),W=Object(r.a)(H,2),B=W[0],U=W[1],q=Object(c.useState)((function(){return K.findIndex((function(e){return e.key===B}))})),G=Object(r.a)(q,2),J=G[0],Y=G[1];Object(c.useEffect)((function(){var e,t=K.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(J,K.length-1)),U(null===(e=K[t])||void 0===e?void 0:e.key));Y(t)}),[K.map((function(e){return e.key})).join("_"),B,J]);var X=Object(p.a)(null,{value:d}),Q=Object(r.a)(X,2),Z=Q[0],$=Q[1],ee=C;L&&!["left","right"].includes(C)&&(ee="top"),Object(c.useEffect)((function(){d||($("rc-tabs-".concat(qt)),qt+=1)}),[]);var te,ne={id:Z,activeKey:B,animated:l,tabPosition:ee,rtl:A,mobile:L},oe=Object(i.a)(Object(i.a)({},ne),{},{editable:O,locale:S,moreIcon:M,moreTransitionName:P,tabBarGutter:E,onTabClick:function(e,t){null==I||I(e,t),U(e),null==T||T(e)},onTabScroll:D,extra:k,style:x,panes:h});return te=N?N(oe,Wt):c.createElement(Wt,Object.assign({},oe)),c.createElement(Vt.Provider,{value:{tabs:K,prefixCls:v}},c.createElement("div",Object.assign({ref:t,id:d,className:s()(v,"".concat(v,"-").concat(ee),(n={},Object(o.a)(n,"".concat(v,"-mobile"),L),Object(o.a)(n,"".concat(v,"-editable"),O),Object(o.a)(n,"".concat(v,"-rtl"),A),n),m)},R),te,c.createElement(Bt,Object.assign({destroyInactiveTabPane:_},ne,{animated:l}))))}));Gt.TabPane=Ut;var Jt=Gt;t.b=Jt},mOS8:
/*!*****************************************!*\
!*** ./src/assets/images/403Qrcode.png ***!
\*****************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/403Qrcode.6c17b6f4.png"},t23M:
/*!*****************************************************!*\
!*** ./node_modules/rc-resize-observer/es/index.js ***!
\*****************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,n){"use strict";var o=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),r=n(/*! @babel/runtime/helpers/esm/classCallCheck */"1OyB"),a=n(/*! @babel/runtime/helpers/esm/createClass */"vuIU"),i=n(/*! @babel/runtime/helpers/esm/inherits */"Ji7U"),c=n(/*! @babel/runtime/helpers/esm/createSuper */"LK+K"),l=n(/*! react */"q1tI"),s=n(/*! rc-util/es/Dom/findDOMNode */"m+aA"),u=n(/*! rc-util/es/Children/toArray */"Zm9Q"),p=n(/*! rc-util/es/warning */"Kwbf"),d=n(/*! rc-util/es/ref */"c+Xe"),f=n(/*! resize-observer-polyfill */"bdgK"),v=function(e){Object(i.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,a=r.getBoundingClientRect(),i=a.width,c=a.height,l=r.offsetWidth,s=r.offsetHeight,u=Math.floor(i),p=Math.floor(c);if(e.state.width!==u||e.state.height!==p||e.state.offsetWidth!==l||e.state.offsetHeight!==s){var d={width:u,height:p,offsetWidth:l,offsetHeight:s};e.setState(d),n&&Promise.resolve().then((function(){n(Object(o.a)(Object(o.a)({},d),{},{offsetWidth:l,offsetHeight:s}))}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=Object(s.a)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new f.default(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(u.a)(e);if(t.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(l.isValidElement(n)&&Object(d.c)(n)){var o=n.ref;t[0]=l.cloneElement(n,{ref:Object(d.a)(o,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!l.isValidElement(e)||"key"in e&&null!==e.key?e:l.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(l.Component);v.displayName="ResizeObserver",t.a=v},tViZ:
/*!********************************************************************!*\
!*** ./src/pages/virtualSpaces/components/List/index.less?modules ***!
\********************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___3fT-U",flex_space_between:"flex_space_between___2SFPU",flex_box_vertical_center:"flex_box_vertical_center___DTEHv",flex_box_center_end:"flex_box_center_end___1HjEe",flex_box_column:"flex_box_column___2u9sZ",listWarp:"listWarp___1bing",li:"li___1O0kN",img:"img___1k_x1",name:"name___3sL7w",e:"e___1CGhW"}}}]);