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.
209 lines
67 KiB
209 lines
67 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{"1K8p":
|
|
/*!************************************************************!*\
|
|
!*** ./node_modules/normalize-wheel/src/normalizeWheel.js ***!
|
|
\************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! ./UserAgent_DEPRECATED */"jrfk"),o=n(/*! ./isEventSupported */"ez49");function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},"2sPH":
|
|
/*!******************************************!*\
|
|
!*** ./src/pages/Forums/User/index.less ***!
|
|
\******************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},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 r=n(/*! ./canUseDom */"MNnm");function o(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(r.a)())return null;var i,a=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(a.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce);a.innerHTML=e;var c=o(n),s=c.firstChild;return n.prepend&&c.prepend?c.prepend(a):n.prepend&&s?c.insertBefore(a,s):c.appendChild(a),a}var a=new Map;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(n);if(!a.has(r)){var c=i("",n),s=c.parentNode;a.set(r,s),s.removeChild(c)}var u=Array.from(a.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(u){var l,p,d;if((null===(l=n.csp)||void 0===l?void 0:l.nonce)&&u.nonce!==(null===(p=n.csp)||void 0===p?void 0:p.nonce))u.nonce=null===(d=n.csp)||void 0===d?void 0:d.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var h=i(e,n);return h["rc-util-key"]=t,h}},CnBM:
|
|
/*!**************************************************!*\
|
|
!*** ./node_modules/react-loadable/lib/index.js ***!
|
|
\**************************************************/
|
|
/*! no static exports found */
|
|
/*! exports used: default */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}var c=n(/*! react */"q1tI"),s=n(/*! prop-types */"wz/V"),u=[],l=[];function p(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function d(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=p(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(e){t.error=e}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function h(e,t){return c.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function f(e,t){var p,d;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:h,webpack:null,modules:null},t),m=null;function v(){return m||(m=e(f.loader)),m.promise}return u.push(v),"function"==typeof f.webpack&&l.push((function(){if(e=f.webpack,"object"===r(n.m)&&e().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return v();var e})),d=p=function(t){function n(r){o(this,n);var a=i(this,t.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),m=e(f.loader),a._loadModule()},v(),a.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},a}return a(n,t),n.preload=function(){return v()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){"number"==typeof f.delay&&(0===f.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),f.delay)),"number"==typeof f.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),f.timeout));var t=function(){e._mounted&&(e.setState({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts())};m.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?c.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(c.Component),p.contextTypes={loadable:s.shape({report:s.func.isRequired})},d}function m(e){return f(p,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return f(d,e)};var v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return c.Children.only(this.props.children)},t}(c.Component);function g(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return g(e)}))}v.propTypes={report:s.func.isRequired},v.childContextTypes={loadable:s.shape({report:s.func.isRequired}).isRequired},m.Capture=v,m.preloadAll=function(){return new Promise((function(e,t){g(u).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){g(l).then(e,e)}))},e.exports=m},FrNc:
|
|
/*!****************************************************!*\
|
|
!*** ./src/pages/Forums/User/UserBrief/index.less ***!
|
|
\****************************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},GW6Z:
|
|
/*!**************************************************!*\
|
|
!*** ./src/pages/Forums/User/Account/index.less ***!
|
|
\**************************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},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 r=n("q1tI"),o=n.n(r),i=n("TSYQ"),a=n.n(i);function c(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function s(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 r=e.data[t];Array.isArray(r)?r.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+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(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 r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var u=+new Date,l=0;function p(){return"rc-upload-"+u+"-"+ ++l}var d=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t,n,a=e.trim();return"."===a.charAt(0)?(t=r.toLowerCase(),n=a.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):o===a}))}return!0};var h=function(e,t,n){var r=function e(r,o){o=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),!o.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,""+o+r.name+"/")}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 w=function(e){function t(){var e,n,r;y(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={uid:p()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(e){var t=r.fileInput;if(t){var n=r.props,o=n.children,i=n.onClick;o&&"button"===o.type&&(t.parentNode.focus(),t.parentNode.querySelector("button").blur()),t.click(),i&&i(e)}},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){var t=r.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(r.props.directory)h(Array.prototype.slice.call(e.dataTransfer.items),r.uploadFiles,(function(e){return d(e,r.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return d(e,r.props.accept)}));!1===t&&(n=n.slice(0,1)),r.uploadFiles(n)}},r.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=p(),e})).forEach((function(e){r.upload(e,t)}))},r.saveFileInput=function(e){r.fileInput=e},b(r,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),v(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,r=this.props;if(!r.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var o=r.beforeUpload(e,t);o&&o.then?o.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console.log(e)})):!1!==o&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.onStart,o=n.onProgress,i=n.transformFile,a=void 0===i?function(e){return e}:i;new Promise((function(t){var r=n.action;return"function"==typeof r&&(r=r(e)),t(r)})).then((function(i){var c=e.uid,u=n.customRequest||s;Promise.resolve(a(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(a){var s=m(a,2),l=s[0],p=s[1],d={action:i,filename:n.name,data:p,file:l,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:o?function(t){o(t,e)}:null,onSuccess:function(r,o){delete t.reqs[c],n.onSuccess(r,e,o)},onError:function(r,o){delete t.reqs[c],n.onError(r,o,e)}};r(e),t.reqs[c]=u(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,r=n.component,i=n.prefixCls,c=n.className,s=n.disabled,u=n.id,l=n.style,p=n.multiple,d=n.accept,h=n.children,m=n.directory,v=n.openFileDialogOnClick,y=n.onMouseEnter,b=n.onMouseLeave,w=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),E=a()((g(e={},i,!0),g(e,i+"-disabled",s),g(e,c,c),e)),S=s?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:y,onMouseLeave:b,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return o.a.createElement(r,f({},S,{className:E,role:"button",style:l}),o.a.createElement("input",f({},(t=w,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:u,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})),h)}}]),t}(r.Component),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(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 O(){}var R=function(e){function t(){var e,n,r;x(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=C(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.saveUploader=function(e){r.uploader=e},C(r,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),S(t,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return o.a.createElement(w,E({},this.props,{ref:this.saveUploader}))}}]),t}(r.Component);R.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:O,onError:O,onSuccess:O,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var z=R;t.a=z},ReuC:
|
|
/*!********************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/get.js + 1 modules ***!
|
|
\********************************************************************/
|
|
/*! exports provided: default */
|
|
/*! exports used: default */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js */function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("foSv");function o(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=o(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}},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 A}));var r=n("wx14"),o=n("1OyB"),i=n("vuIU"),a=n("Ji7U"),c=n("LK+K"),s=n("q1tI"),u=n("VTBJ"),l=n("rePB"),p=n("Zm9Q"),d=(n("Kwbf"),n("c+Xe")),h=n("m+aA"),f=n("bdgK"),m=new Map;var v=new f.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 g=function(e){Object(a.a)(n,e);var t=Object(c.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),y=s.createContext(null);function b(e){var t=e.children,n=e.disabled,r=s.useRef(null),o=s.useRef(null),i=s.useContext(y),a=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),c=s.isValidElement(t)&&Object(d.c)(t),l=c?t.ref:null,p=s.useMemo((function(){return Object(d.a)(l,r)}),[l,r]),f=s.useRef(e);f.current=e;var b=s.useCallback((function(e){var t=f.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),c=o.width,s=o.height,l=e.offsetWidth,p=e.offsetHeight,d=Math.floor(c),h=Math.floor(s);if(a.current.width!==d||a.current.height!==h||a.current.offsetWidth!==l||a.current.offsetHeight!==p){var m={width:d,height:h,offsetWidth:l,offsetHeight:p};a.current=m;var v=l===Math.round(c)?c:l,g=p===Math.round(s)?s:p,y=Object(u.a)(Object(u.a)({},m),{},{offsetWidth:v,offsetHeight:g});null==i||i(y,e,r),n&&Promise.resolve().then((function(){n(y,e)}))}}),[]);return s.useEffect((function(){var e,t,i=Object(h.a)(r.current)||Object(h.a)(o.current);return i&&!n&&(e=i,t=b,m.has(e)||(m.set(e,new Set),v.observe(e)),m.get(e).add(t)),function(){return function(e,t){m.has(e)&&(m.get(e).delete(t),m.get(e).size||(v.unobserve(e),m.delete(e)))}(i,b)}}),[r.current,n]),s.createElement(g,{ref:o},c?s.cloneElement(t,{ref:p}):t)}function w(e){var t=e.children;return Object(p.a)(t).map((function(t,n){var o=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return s.createElement(b,Object(r.a)({},e,{key:o}),t)}))}w.Collection=function(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(y),a=s.useCallback((function(e,t,a){r.current+=1;var c=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){c===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return s.createElement(y.Provider,{value:a},t)};var E,S=w,x=n("bT9E"),C=n("TSYQ"),O=n.n(C),R="\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",z=["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"],P={};function _(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&&P[n])return P[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=z.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:c,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(P[n]=s),s}var j,M=n("Gytx"),T=n.n(M);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(j||(j={}));var A=function(e){Object(a.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).nextFrameActionId=void 0,i.resizeFrameId=void 0,i.textArea=void 0,i.saveTextArea=function(e){i.textArea=e},i.handleResize=function(e){var t=i.state.resizeStatus,n=i.props,r=n.autoSize,o=n.onResize;t===j.NONE&&("function"==typeof o&&o(e),r&&i.resizeOnNextFrame())},i.resizeOnNextFrame=function(){cancelAnimationFrame(i.nextFrameActionId),i.nextFrameActionId=requestAnimationFrame(i.resizeTextarea)},i.resizeTextarea=function(){var e=i.props.autoSize;if(e&&i.textArea){var t=e.minRows,n=e.maxRows,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;E||((E=document.createElement("textarea")).setAttribute("tab-index","-1"),E.setAttribute("aria-hidden","true"),document.body.appendChild(E)),e.getAttribute("wrap")?E.setAttribute("wrap",e.getAttribute("wrap")):E.removeAttribute("wrap");var o=_(e,t),i=o.paddingSize,a=o.borderSize,c=o.boxSizing,s=o.sizingStyle;E.setAttribute("style","".concat(s,";").concat(R)),E.value=e.value||e.placeholder||"";var u,l=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,d=E.scrollHeight;if("border-box"===c?d+=a:"content-box"===c&&(d-=i),null!==n||null!==r){E.value=" ";var h=E.scrollHeight-i;null!==n&&(l=h*n,"border-box"===c&&(l=l+i+a),d=Math.max(l,d)),null!==r&&(p=h*r,"border-box"===c&&(p=p+i+a),u=d>p?"":"hidden",d=Math.min(p,d))}return{height:d,minHeight:l,maxHeight:p,overflowY:u,resize:"none"}}(i.textArea,!1,t,n);i.setState({textareaStyles:r,resizeStatus:j.RESIZING},(function(){cancelAnimationFrame(i.resizeFrameId),i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:j.RESIZED},(function(){i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:j.NONE}),i.fixFirefoxAutoScroll()}))}))}))}))}},i.renderTextArea=function(){var e=i.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,o=e.autoSize,a=e.onResize,c=e.className,p=e.disabled,d=i.state,h=d.textareaStyles,f=d.resizeStatus,m=Object(x.a)(i.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),v=O()(n,c,Object(l.a)({},"".concat(n,"-disabled"),p));"value"in m&&(m.value=m.value||"");var g=Object(u.a)(Object(u.a)(Object(u.a)({},i.props.style),h),f===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return s.createElement(S,{onResize:i.handleResize,disabled:!(o||a)},s.createElement("textarea",Object(r.a)({},m,{className:v,style:g,ref:i.saveTextArea})))},i.state={textareaStyles:{},resizeStatus:j.NONE},i}return Object(i.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}(s.Component),k=function(e){Object(a.a)(n,e);var t=Object(c.a)(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var i=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:i},r}return Object(i.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 s.createElement(A,Object(r.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}(s.Component);t.default=k},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 r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o(n.overflowY,t)||o(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 a(e,t,n,r,o,i,a,c){return i<e&&a>t||i>e&&a<t?0:i<=e&&c<=n||a>=t&&c>=n?i-e-r:a>t&&c<n||i<e&&c>n?a-t+o:0}var c=function(e,t){var n=window,o=t.scrollMode,c=t.block,s=t.inline,u=t.boundary,l=t.skipOverflowHiddenElements,p="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,h=[],f=e;r(f)&&p(f);){if((f=f.parentElement)===d){h.push(f);break}null!=f&&f===document.body&&i(f)&&!i(document.documentElement)||null!=f&&i(f,l)&&h.push(f)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),w=b.height,E=b.width,S=b.top,x=b.right,C=b.bottom,O=b.left,R="start"===c||"nearest"===c?S:"end"===c?C:S+w/2,z="center"===s?O+E/2:"end"===s?x:O,P=[],_=0;_<h.length;_++){var j=h[_],M=j.getBoundingClientRect(),T=M.height,A=M.width,k=M.top,N=M.right,D=M.bottom,I=M.left;if("if-needed"===o&&S>=0&&O>=0&&C<=v&&x<=m&&S>=k&&C<=D&&O>=I&&x<=N)return P;var W=getComputedStyle(j),F=parseInt(W.borderLeftWidth,10),L=parseInt(W.borderTopWidth,10),H=parseInt(W.borderRightWidth,10),V=parseInt(W.borderBottomWidth,10),q=0,Z=0,U="offsetWidth"in j?j.offsetWidth-j.clientWidth-F-H:0,G="offsetHeight"in j?j.offsetHeight-j.clientHeight-L-V:0;if(d===j)q="start"===c?R:"end"===c?R-v:"nearest"===c?a(y,y+v,v,L,V,y+R,y+R+w,w):R-v/2,Z="start"===s?z:"center"===s?z-m/2:"end"===s?z-m:a(g,g+m,m,F,H,g+z,g+z+E,E),q=Math.max(0,q+y),Z=Math.max(0,Z+g);else{q="start"===c?R-k-L:"end"===c?R-D+V+G:"nearest"===c?a(k,D,T,L,V+G,R,R+w,w):R-(k+T/2)+G/2,Z="start"===s?z-I-F:"center"===s?z-(I+A/2)+U/2:"end"===s?z-N+H+U:a(I,N,A,F,H+U,z,z+E,E);var B=j.scrollLeft,X=j.scrollTop;R+=X-(q=Math.max(0,Math.min(X+q,j.scrollHeight-T+G))),z+=B-(Z=Math.max(0,Math.min(B+Z,j.scrollWidth-A+U)))}P.push({el:j,top:q,left:Z})}return P};function s(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(s(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:c(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:s(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 r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(c(e,r),r.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 o}));var r=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function o(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},"dwc+":
|
|
/*!*****************************************************!*\
|
|
!*** ./src/pages/Forums/User/UserAvatar/index.less ***!
|
|
\*****************************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},ez49:
|
|
/*!**************************************************************!*\
|
|
!*** ./node_modules/normalize-wheel/src/isEventSupported.js ***!
|
|
\**************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r,o=n(/*! ./ExecutionEnvironment */"o97j");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
/**
|
|
* Checks if an event is supported in the current execution environment.
|
|
*
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
* `reset`, `load`, `error`, and `select`.
|
|
*
|
|
* Borrows from Modernizr.
|
|
*
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
|
* @return {boolean} True if the event is supported.
|
|
* @internal
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
*/,e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},izmH:
|
|
/*!***********************************************!*\
|
|
!*** ./src/pages/Forums/User/Menu/index.less ***!
|
|
\***********************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},jrfk:
|
|
/*!******************************************************************!*\
|
|
!*** ./node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js ***!
|
|
\******************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){var n,r,o,i,a,c,s,u,l,p,d,h,f,m,v,g=!1;function y(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),p=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);c=b?parseFloat(b[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,o=t[3]?parseFloat(t[3]):NaN,(i=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=o=a=i=NaN;if(y){if(y[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;u=!!y[2],l=!!y[3]}else s=u=l=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||c>n},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||o},webkit:function(){return y()||i},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||u},osx:function(){return y()||s},linux:function(){return y()||l},iphone:function(){return y()||h},mobile:function(){return y()||h||f||p||v},nativeApp:function(){return y()||m},android:function(){return y()||p},ipad:function(){return y()||f}};e.exports=b},lL59:
|
|
/*!*****************************************************************************************!*\
|
|
!*** ./node_modules/react-loadable/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
|
|
\*****************************************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},lt96:
|
|
/*!*****************************************************!*\
|
|
!*** ./src/pages/Forums/User/index.tsx + 7 modules ***!
|
|
\*****************************************************/
|
|
/*! exports provided: default */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/EditOutlined.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/forums.ts */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env/dev.ts */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd-img-crop/dist/antd-img-crop.esm.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/avatar/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/avatar/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/upload/style/index.js */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-loadable/lib/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";n.r(t);var r=n("q1tI"),o=n.n(r),i=(n("T2oS"),n("W9HT")),a=n("fWQN"),c=n("mtLc"),s=n("yKVA"),u=n("879j"),l=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidUpdate",value:function(e,t){!e.error&&this.props.error&&console.log(this.props.error)}},{key:"render",value:function(){return o.a.createElement("div",{className:"App",style:{minHeight:"800px",width:"100%"}},o.a.createElement("style",null,"\n\t\t\t\t\t\t .margintop{\n\t\t\t\t\t\t margin-top:20%;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t"),o.a.createElement(i.a,{size:"large",className:"margintop"}))}}]),n}(r.Component),p=n("CnBM"),d=n.n(p),h=n("9og8"),f=n("tJVT"),m=n("0Owb"),v=n("WmNS"),g=n.n(v),y=n("e76B");n("qTx4");var b=function(e){var t=e.user_info;return y.a.IMG_SERVER,y.a.IMG_SERVER,y.a.IMG_SERVER,y.a.IMG_SERVER,y.a.IMG_SERVER,y.a.IMG_SERVER,y.a.IMG_SERVER,y.a.IMG_SERVER,o.a.createElement("div",{className:"educontent clearfix edu-txt-center mt10"},o.a.createElement("div",{className:"divInline"},o.a.createElement("div",{className:"gridItem5"},t.identify&&"学生"!==t.identify&&o.a.createElement("span",{className:"identifyName"},t.identify))))},w=(n("DZo9"),n("Telt"),n("Tckk")),E=(n("miYZ"),n("tsqr")),S=(n("TpwP"),n("O7uO"),n("h+Ho")),x=(n("dwc+"),n("m3rI"));var C=function(e){var t=e.avatar,n=(e.is_current_user,e.user_id,e.login,window.location.protocol,window.location.host,Object(r.useState)(!1)),i=Object(f.a)(n,2),a=(i[0],i[1]),c=Object(r.useState)(!1),s=Object(f.a)(c,2),u=s[0],l=(s[1],Object(r.useState)("")),p=Object(f.a)(l,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=Object(f.a)(m,2);return v[0],v[1],Object(r.useEffect)((function(){h(t)}),[]),o.a.createElement("div",{className:"headPhoto"},o.a.createElement("a",{href:"javascript:void(0)",onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(u)}},o.a.createElement(w.a,{size:109,src:x.a.IMG_SERVER+"/images/"+d}),!1))},O=(n("+L6B"),n("2/Rp")),R=(n("5NDa"),n("5rEg")),z=(n("y8nQ"),n("Vl3Y")),P=n("G3dp"),_=(n("FrNc"),z.a.Item);var j=function(e){var t=e.brief,n=e.login,i=e.is_current_user,a=Object(r.useState)(null),c=Object(f.a)(a,2),s=c[0],u=c[1],l=Object(r.useState)(!1),p=Object(f.a)(l,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=Object(f.a)(m,2),g=v[0],y=v[1];return o.a.createElement("div",{className:"mb25 flex_center"},!d&&o.a.createElement("div",null,s||(t||"这家伙很懒,什么都没留下~"),i&&o.a.createElement("span",{className:"ml15",onClick:function(){return h(!0)}},o.a.createElement(P.a,null))),d&&o.a.createElement(z.a,{layout:"inline"},o.a.createElement(_,null,o.a.createElement(R.a,{placeholder:"个人简介",defaultValue:t,onChange:function(e){return function(e){u(e.target.value)}(e)},maxLength:20})),o.a.createElement(O.a,{type:"primary",htmlType:"submit",size:"small",loading:g,className:"mt8 t4",onClick:function(){return function(){y(!0);var e={login:n,content:s};Object(S.x)(e).then((function(e){e&&e.status>=0?(E.b.success(e.message),h(!1)):E.b.error(e.message),y(!1)})).catch((function(e){y(!1),console.log(e)}))}()}},"提交"),o.a.createElement(O.a,{type:"default",size:"small",onClick:function(){return h(!1)},className:"ml15 mt8 t4"},"取消")))};n("xI/b");var M=function(e){var t=e.UserInfo,n=Object(r.useState)(0),i=Object(f.a)(n,2),a=i[0];return i[1],o.a.createElement("div",{className:"pr"},o.a.createElement("div",{className:"educontent clearfix edu-txt-center pt80"},o.a.createElement("div",{className:"divInline"},o.a.createElement("div",{className:" headTab fl"},o.a.createElement("span",null,"粉丝"),o.a.createElement("a",{href:"javascript:void(0)"},a<=0?t&&t.fans_count:a)),t&&o.a.createElement(C,{avatar:t.image_url,user_id:t.user_id,is_current_user:t.is_current_user,login:t.login}),o.a.createElement("div",{className:"headTab fr"},o.a.createElement("span",null,"关注"),o.a.createElement("a",{href:"javascript:void(0)"},t&&t.stars_count)),o.a.createElement("div",{className:"showName"},t&&t.username))),t&&o.a.createElement(b,{user_info:t}),o.a.createElement("div",{className:"mt15 educontent clearfix edu-txt-center"},t&&o.a.createElement(j,{brief:t.brief,login:t.login,is_current_user:t.is_current_user})))},T=(n("lUTK"),n("BvKs"));n("izmH");var A=function(e){var t=e.is_current_user,n=e.login,i=e.props,a=Object(r.useState)("memos"),c=Object(f.a)(a,2),s=c[0],u=c[1];Object(r.useEffect)((function(){var e=i.location.pathname.split("/"),t=e[e.length-1];e.length>3&&t?u(t):u("memos")}),[i.location]);var l=t?"我":"TA";return o.a.createElement("div",{className:"mt15 educontent clearfix edu-txt-center user-menu"},o.a.createElement(T.a,{onClick:function(e){return function(e){u(e.key),i.history.push("/forums/accounts/".concat(n,"/").concat(e.key))}(e)},selectedKeys:s,mode:"horizontal"},o.a.createElement(T.a.Item,{key:"memos"},l,"的帖子"),o.a.createElement(T.a.Item,{key:"replies"},l,"的回帖"),t&&o.a.createElement(T.a.Item,{key:"histories"},l,"的足迹"),t&&o.a.createElement(T.a.Item,{key:"stars"},l,"的收藏"),t&&o.a.createElement(T.a.Item,{key:"interesting"},l,"感兴趣的论坛")))},k=(n("GW6Z"),function(e){var t=Object(m.a)({},e),n=Object(r.useState)(null),a=Object(f.a)(n,2),c=a[0],s=a[1],u=Object(r.useState)(!1),l=Object(f.a)(u,2),p=l[0],d=l[1],v=t.match.params.login;return Object(r.useEffect)((function(){function e(){return(e=Object(h.a)(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d(!0),Object(S.u)(t).then((function(e){e&&s(e.user),d(!1)})).catch((function(e){d(!1),console.log(e)}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}v&&function(t){e.apply(this,arguments)}(v)}),[]),o.a.createElement(i.a,{spinning:p},o.a.createElement("div",{className:"mainUser",style:{height:c&&c.is_current_user?"336px":"400px"}},o.a.createElement("div",{className:"headImage"}),o.a.createElement("div",{className:"headCon"},o.a.createElement(M,{UserInfo:c}))),o.a.createElement(A,{is_current_user:c&&c.is_current_user,login:c&&c.login,props:t}))}),N=(n("2sPH"),d()({loader:function(){return Promise.all(/*! import() */[n.e(0),n.e(4),n.e(1),n.e(2),n.e(279)]).then(n.bind(null,/*! ./Memo/Memos */"MRRO"))},loading:l})),D=d()({loader:function(){return Promise.all(/*! import() */[n.e(0),n.e(1),n.e(2),n.e(8),n.e(280)]).then(n.bind(null,/*! ./Memo/Sections */"KTv6"))},loading:l});t.default=function(e){var t=e.history;return Object(r.useEffect)((function(){t.listen((function(){(document.body.scrollTop||document.documentElement.scrollTop>0)&&window.scrollTo(0,0)}))}),[t]),console.log("props",e.match.params.key),o.a.createElement("div",{className:"newMain"},o.a.createElement(k,e),o.a.createElement("div",{className:"mainContent"},o.a.createElement("div",{className:"minH400"},"interesting"==e.match.params.key?o.a.createElement(D,e):o.a.createElement(N,e))))}},o97j:
|
|
/*!******************************************************************!*\
|
|
!*** ./node_modules/normalize-wheel/src/ExecutionEnvironment.js ***!
|
|
\******************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},qTx4:
|
|
/*!*******************************************************!*\
|
|
!*** ./src/pages/Forums/User/UserIdentify/index.less ***!
|
|
\*******************************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},qWiS:
|
|
/*!*****************************************************************************************!*\
|
|
!*** ./node_modules/react-loadable/node_modules/prop-types/factoryWithThrowingShims.js ***!
|
|
\*****************************************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! ./lib/ReactPropTypesSecret */"lL59");function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},sZpJ:
|
|
/*!******************************************************************!*\
|
|
!*** ./node_modules/react-easy-crop/index.module.js + 1 modules ***!
|
|
\******************************************************************/
|
|
/*! exports provided: default, getInitialCropFromCroppedAreaPercentages, getInitialCropFromCroppedAreaPixels */
|
|
/*! exports used: default */
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/normalize-wheel/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";
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;var i=n("q1tI"),a=n.n(i),c=n("wJiJ"),s=n.n(c);function u(e,t,n,r,o,i){void 0===i&&(i=0);var a=w(e,t,i),c=a.width,s=a.height,u=Math.min(c,n),l=Math.min(s,r);return u>l*o?{width:l*o,height:l}:{width:u,height:u/o}}function l(e,t,n,r,o){void 0===o&&(o=0);var i=w(t.width,t.height,o),a=i.width,c=i.height;return{x:p(e.x,a,n.width,r),y:p(e.y,c,n.height,r)}}function p(e,t,n,r){var o=t*r/2-n/2;return E(e,-o,o)}function d(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function h(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function f(e,t,n,r,i,a,c){void 0===a&&(a=0),void 0===c&&(c=!0);var s=c?m:v,u=w(t.width,t.height,a),l=w(t.naturalWidth,t.naturalHeight,a),p={x:s(100,((u.width-n.width/i)/2-e.x/i)/u.width*100),y:s(100,((u.height-n.height/i)/2-e.y/i)/u.height*100),width:s(100,n.width/u.width*100/i),height:s(100,n.height/u.height*100/i)},d=Math.round(s(l.width,p.width*l.width/100)),h=Math.round(s(l.height,p.height*l.height/100)),f=l.width>=l.height*r?{width:Math.round(h*r),height:h}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:p,croppedAreaPixels:o(o({},f),{x:Math.round(s(l.width-f.width,p.x*l.width/100)),y:Math.round(s(l.height-f.height,p.y*l.height/100))})}}function m(e,t){return Math.min(e,Math.max(0,t))}function v(e,t){return t}function g(e,t,n,r,o,i){var a=w(t.width,t.height,n),c=E(r.width/a.width*(100/e.width),o,i);return{crop:{x:c*a.width/2-r.width/2-a.width*c*(e.x/100),y:c*a.height/2-r.height/2-a.height*c*(e.y/100)},zoom:c}}function y(e,t,n,r,o,i){void 0===n&&(n=0);var a=w(t.naturalWidth,t.naturalHeight,n),c=E(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),o,i),s=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*s,y:((a.height-e.height)/2-e.y)*s},zoom:c}}function b(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function w(e,t,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function E(e,t,n){return Math.min(Math.max(e,t),n)}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var x=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=a.a.createRef(),n.videoRef=a.a.createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=g(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,o=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}else if(n.props.initialCroppedAreaPixels){var i=y(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);r=i.crop,o=i.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}},n.computeSizes=function(){var e,t,r,i,a,c,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var l=n.containerRect.width/n.containerRect.height,p=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,d=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(i=n.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,h=p/d,f=void 0;if(s.offsetWidth<p||s.offsetHeight<d)switch(n.props.objectFit){default:case"contain":f=l>h?{width:n.containerRect.height*h,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/h};break;case"horizontal-cover":f={width:n.containerRect.width,height:n.containerRect.width/h};break;case"vertical-cover":f={width:n.containerRect.height*h,height:n.containerRect.height};break;case"auto-cover":f=p>d?{width:n.containerRect.width,height:n.containerRect.width/h}:{width:n.containerRect.height*h,height:n.containerRect.height}}else f={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=o(o({},f),{naturalWidth:p,naturalHeight:d}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var m=n.props.cropSize?n.props.cropSize:u(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(a=n.state.cropSize)||void 0===a?void 0:a.height)===m.height&&(null===(c=n.state.cropSize)||void 0===c?void 0:c.width)===m.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(m),n.setState({cropSize:m},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(m),m}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0])))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,r,i=e.x,a=e.y;n.dragStartPosition={x:i,y:a},n.dragStartCrop=o({},n.props.crop),null===(r=(t=n.props).onInteractionStart)||void 0===r||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,o=r-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+o},a=n.props.restrictPosition?l(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(a)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(!n.props.onWheelRequest||n.props.onWheelRequest(e)){e.preventDefault();var r=t.getMousePoint(e),o=s()(e).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(r-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,o=n.props,i=o.crop,a=o.zoom;return{x:(t+i.x)/a,y:(r+i.y)/a}},n.setNewZoom=function(e,t,r){var o=(void 0===r?{}:r).shouldUpdatePosition,i=void 0===o||o;if(n.state.cropSize&&n.props.onZoomChange){var a=n.getPointOnContainer(t),c=n.getPointOnMedia(a),s=E(e,n.props.minZoom,n.props.maxZoom),u={x:c.x*s-a.x,y:c.y*s-a.y};if(i){var p=n.props.restrictPosition?l(u,n.mediaSize,n.state.cropSize,s,n.props.rotation):u;n.props.onCropChange(p)}n.props.onZoomChange(s)}},n.getCropData=function(){return n.state.cropSize?f(n.props.restrictPosition?l(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?l(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef)},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,r,o,i,a,c,s,u;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(i=e.crop)||void 0===i?void 0:i.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(c=e.crop)||void 0===c?void 0:c.y)===(null===(s=this.props.crop)||void 0===s?void 0:s.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(u=this.videoRef.current)||void 0===u||u.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=d(n,r),this.lastPinchRotation=h(n,r),this.onDragStart(b(n,r))},t.prototype.onPinchMove=function(e){var n=this,r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),i=b(r,o);this.onDrag(i),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=d(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var a=h(r,o),c=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(c),n.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,i=t.mediaProps,c=t.transform,s=t.crop,u=s.x,l=s.y,p=t.rotation,d=t.zoom,h=t.cropShape,f=t.showGrid,m=t.style,v=m.containerStyle,g=m.cropAreaStyle,y=m.mediaStyle,b=t.classes,w=b.containerClassName,E=b.cropAreaClassName,x=b.mediaClassName,C=t.objectFit;return a.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:v,className:S("reactEasyCrop_Container",w)},n?a.a.createElement("img",o({alt:"",className:S("reactEasyCrop_Image","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical","auto-cover"===C&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),x)},i,{src:n,ref:this.imageRef,style:o(o({},y),{transform:c||"translate("+u+"px, "+l+"px) rotate("+p+"deg) scale("+d+")"}),onLoad:this.onMediaLoad})):r&&a.a.createElement("video",o({autoPlay:!0,loop:!0,muted:!0,className:S("reactEasyCrop_Video","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical","auto-cover"===C&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),x)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:o(o({},y),{transform:c||"translate("+u+"px, "+l+"px) rotate("+p+"deg) scale("+d+")"}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map((function(e){return a.a.createElement("source",o({key:e.src},e))}))),this.state.cropSize&&a.a.createElement("div",{style:o(o({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:S("reactEasyCrop_CropArea","round"===h&&"reactEasyCrop_CropAreaRound",f&&"reactEasyCrop_CropAreaGrid",E)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(a.a.Component);t.a=x},wJiJ:
|
|
/*!***********************************************!*\
|
|
!*** ./node_modules/normalize-wheel/index.js ***!
|
|
\***********************************************/
|
|
/*! no static exports found */
|
|
/*! exports used: default */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n(/*! ./src/normalizeWheel.js */"1K8p")},"wz/V":
|
|
/*!**********************************************************************!*\
|
|
!*** ./node_modules/react-loadable/node_modules/prop-types/index.js ***!
|
|
\**********************************************************************/
|
|
/*! no static exports found */
|
|
/*! all exports used */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n(/*! ./factoryWithThrowingShims */"qWiS")()},"xI/b":
|
|
/*!***************************************************!*\
|
|
!*** ./src/pages/Forums/User/HeadUser/index.less ***!
|
|
\***************************************************/
|
|
/*! no static exports found */
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){}}]); |