14136 lines
734 KiB
JavaScript
14136 lines
734 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[8],{
|
||
|
||
/***/ "+ego":
|
||
/*!*******************************************!*\
|
||
!*** ./src/layouts/index.tsx + 7 modules ***!
|
||
\*******************************************/
|
||
/*! exports provided: default */
|
||
/*! all exports used */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/CloseOutlined.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/objectSpread2.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.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 ./src/.umi-production/core/umiExports.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.tsx */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/user.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
||
/*! 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/checkbox/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/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/locale/zh_CN.js (<- Module is referenced from these modules with unsupported syntax: ./src/.umi-production/plugin-locale/locale.tsx (referenced with cjs require)) */
|
||
/*! 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/modal/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/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/tabs/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/js-base64/base64.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/PopLogin.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/moment/moment.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
// ESM COMPAT FLAG
|
||
__webpack_require__.r(__webpack_exports__);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/style/index.js
|
||
var config_provider_style = __webpack_require__("GNNt");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/index.js + 1 modules
|
||
var config_provider = __webpack_require__("wEI+");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/spin/style/index.js
|
||
var spin_style = __webpack_require__("T2oS");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/spin/index.js
|
||
var spin = __webpack_require__("W9HT");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js
|
||
var modal_style = __webpack_require__("2qtc");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 14 modules
|
||
var modal = __webpack_require__("kLXV");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||
var objectSpread2 = __webpack_require__("k1fw");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
||
var asyncToGenerator = __webpack_require__("9og8");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||
var objectWithoutProperties = __webpack_require__("PpiC");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
var react_default = /*#__PURE__*/__webpack_require__.n(react);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/locale/zh_CN.js + 4 modules
|
||
var zh_CN = __webpack_require__("+Gva");
|
||
|
||
// EXTERNAL MODULE: ./src/.umi-production/core/umiExports.ts + 19 modules
|
||
var umiExports = __webpack_require__("9kvl");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/row/style/index.js
|
||
var row_style = __webpack_require__("14J3");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/row/index.js
|
||
var row = __webpack_require__("BMrR");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/col/style/index.js
|
||
var col_style = __webpack_require__("jCWc");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/col/index.js
|
||
var col = __webpack_require__("kPKH");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js
|
||
var message_style = __webpack_require__("miYZ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
|
||
var es_message = __webpack_require__("tsqr");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||
var slicedToArray = __webpack_require__("tJVT");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/tabs/style/index.js
|
||
var tabs_style = __webpack_require__("Znn+");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/tabs/index.js + 57 modules
|
||
var tabs = __webpack_require__("ZTPi");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/style/index.js
|
||
var checkbox_style = __webpack_require__("sRBo");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 2 modules
|
||
var es_checkbox = __webpack_require__("kaz8");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js
|
||
var button_style = __webpack_require__("+L6B");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||
var es_button = __webpack_require__("2/Rp");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||
var input_style = __webpack_require__("5NDa");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 9 modules
|
||
var input = __webpack_require__("5rEg");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/form/style/index.js
|
||
var form_style = __webpack_require__("y8nQ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/form/index.js + 13 modules
|
||
var es_form = __webpack_require__("Vl3Y");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
|
||
var CloseOutlined = __webpack_require__("4i/N");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react-router/esm/react-router.js
|
||
var react_router = __webpack_require__("Ty5D");
|
||
|
||
// EXTERNAL MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules
|
||
var LoginPanelmodules = __webpack_require__("4R62");
|
||
var LoginPanelmodules_default = /*#__PURE__*/__webpack_require__.n(LoginPanelmodules);
|
||
|
||
// EXTERNAL MODULE: ./src/utils/util.tsx + 6 modules
|
||
var util = __webpack_require__("1vsH");
|
||
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/LoginForm.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
|
||
|
||
var inputStyle = {
|
||
height: 45,
|
||
borderRadius: 4
|
||
};
|
||
var LoginForm_LoginPopComponents = function LoginPopComponents(_ref) {
|
||
var _globalSetting$settin, _globalSetting$settin2, _globalSetting$settin3, _globalSetting$settin4, _globalSetting$settin5, _globalSetting$settin6;
|
||
var dispatch = _ref.dispatch,
|
||
setType = _ref.setType,
|
||
user = _ref.user,
|
||
setusername = _ref.setusername,
|
||
globalSetting = _ref.globalSetting;
|
||
var _Form$useForm = es_form["a" /* default */].useForm(),
|
||
_Form$useForm2 = Object(slicedToArray["a" /* default */])(_Form$useForm, 1),
|
||
form = _Form$useForm2[0];
|
||
var location = Object(react_router["k" /* useLocation */])();
|
||
var _useState = Object(react["useState"])(''),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
errorValue = _useState2[0],
|
||
setErrorValue = _useState2[1];
|
||
var password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
|
||
|
||
// const onFinish = async (values: any) => {
|
||
// if(!password.test(values.password)){
|
||
|
||
// setusername(values.login)
|
||
// setErrorValue('系统检测您的密码强度过低,请及时修改')
|
||
// // return
|
||
// }
|
||
// const res = await LoginIn(values)
|
||
// if (!!res.status) {
|
||
// setErrorValue(res?.message)
|
||
// return;
|
||
// }
|
||
// if (res?.show) {
|
||
// localStorage.setItem('extension-modal', 'exist');
|
||
// localStorage.setItem('extension-date', res?.start_date);
|
||
// } else {
|
||
// localStorage.removeItem('extension-modal')
|
||
// }
|
||
// console.log(history, 'history')
|
||
// if (location.pathname === '/user/login' || location.pathname === '/login') {
|
||
// let from = location.query?.from || location.query?.back_url
|
||
// if (from) {
|
||
// window.location.href = decodeURIComponent(from)
|
||
// } else {
|
||
// //判断 如果密码强度过低 跳转修改密码页
|
||
// if(!password.test(values.password)){
|
||
// message.info('系统检测您的密码强度过低,请及时修改')
|
||
// window.location.href = '/account/secure'
|
||
// }else{
|
||
// window.location.reload()
|
||
// }
|
||
// }
|
||
// } else {
|
||
// if(!password.test(values.password)){
|
||
// message.info('系统检测您的密码强度过低,请及时修改')
|
||
// history.replace('/account/secure?active=3')
|
||
// dispatch({
|
||
// type: 'user/showPopLogin',
|
||
// payload: { showPopLogin: false },
|
||
// })
|
||
// }else{
|
||
// window.location.reload()
|
||
// }
|
||
// }
|
||
|
||
// form.resetFields()
|
||
// }
|
||
|
||
var onFinish = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(values) {
|
||
var response;
|
||
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
_context.next = 2;
|
||
return dispatch({
|
||
type: 'user/ForgeLogin',
|
||
payload: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, values), {}, {
|
||
autologin: values.autologin ? 1 : 0
|
||
})
|
||
});
|
||
case 2:
|
||
response = _context.sent;
|
||
if (response.login) {
|
||
//判断用户是否选择【下次自动登录】
|
||
Object(util["n" /* setCookie */])('autologin', values.autologin, 1);
|
||
// const searchParams = new URLSearchParams(search.substring(1));
|
||
// const goPage = searchParams.get("go_page");
|
||
//意见反馈
|
||
dispatch({
|
||
type: 'user/showPopLogin',
|
||
payload: {
|
||
showPopLogin: false
|
||
}
|
||
});
|
||
window.location.reload();
|
||
}
|
||
if (response.status && response.status !== 0) {
|
||
es_message["b" /* default */].info(response.data.message);
|
||
}
|
||
case 5:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function onFinish(_x) {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
var handleClick = function handleClick() {
|
||
dispatch({
|
||
type: 'user/showPopLogin',
|
||
payload: {
|
||
showPopLogin: false
|
||
}
|
||
});
|
||
};
|
||
return /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */], {
|
||
layout: "vertical",
|
||
form: form,
|
||
initialValues: {
|
||
autologin: true,
|
||
login: user.actionTabs.phone
|
||
},
|
||
onFinish: onFinish,
|
||
onValuesChange: function onValuesChange() {
|
||
return setErrorValue('');
|
||
}
|
||
}, !!errorValue && /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "res-error-values"
|
||
}, /*#__PURE__*/react_default.a.createElement("span", null, errorValue), /*#__PURE__*/react_default.a.createElement(CloseOutlined["a" /* default */], {
|
||
onClick: function onClick() {
|
||
return setErrorValue('');
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "login",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入用户名、手机号或邮箱'
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
style: inputStyle,
|
||
size: "large",
|
||
placeholder: "\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740/\u7528\u6237\u540D",
|
||
onBlur: function onBlur() {
|
||
dispatch({
|
||
type: 'user/setActionTabs',
|
||
payload: {
|
||
phone: form.getFieldValue("login")
|
||
}
|
||
});
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "password",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入8-16位密码,区分大小写、不能使用空格'
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */].Password, {
|
||
style: inputStyle
|
||
// visibilityToggle={false}
|
||
,
|
||
size: "large",
|
||
placeholder: "\u5BC6\u7801"
|
||
})), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
size: "large",
|
||
type: "primary",
|
||
htmlType: "submit",
|
||
block: true,
|
||
className: "font16",
|
||
style: inputStyle
|
||
}, "\u767B\u5F55")), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "flex-container",
|
||
style: {
|
||
justifyContent: 'space-between'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "autologin",
|
||
noStyle: true,
|
||
valuePropName: "checked"
|
||
}, /*#__PURE__*/react_default.a.createElement(es_checkbox["a" /* default */], null, "\u4E0B\u6B21\u81EA\u52A8\u767B\u5F55")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: LoginPanelmodules_default.a.operate
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "".concat(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : (_globalSetting$settin2 = _globalSetting$settin.common) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.main_site_url, "/resetPassword"),
|
||
className: "c-light-black"
|
||
}, "\u627E\u56DE\u5BC6\u7801"), /*#__PURE__*/react_default.a.createElement("em", {
|
||
className: LoginPanelmodules_default.a.verticalLine
|
||
}), /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "".concat(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : (_globalSetting$settin4 = _globalSetting$settin3.common) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.main_site_url, "/register"),
|
||
className: "c-light-black"
|
||
}, "\u6CE8\u518C")))), (globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.third_party) && /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("p", {
|
||
className: "".concat(LoginPanelmodules_default.a.driver, " mt20 mb10")
|
||
}, /*#__PURE__*/react_default.a.createElement("span", {
|
||
style: {
|
||
color: '#444444'
|
||
}
|
||
}, "\u5FEB\u901F\u767B\u5F55")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "".concat(LoginPanelmodules_default.a.thirdParty)
|
||
}, globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin6 = globalSetting.setting) === null || _globalSetting$settin6 === void 0 ? void 0 : _globalSetting$settin6.third_party.map(function (i, k) {
|
||
return i.name === "educoder" && /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: i.url
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: __webpack_require__(/*! @/assets/images/educoder.png */ "PhZf"),
|
||
width: "46px"
|
||
}));
|
||
}))));
|
||
};
|
||
/* harmony default export */ var LoginForm = (Object(umiExports["a" /* connect */])(function (_ref3) {
|
||
var user = _ref3.user,
|
||
loading = _ref3.loading,
|
||
globalSetting = _ref3.globalSetting;
|
||
return {
|
||
user: user,
|
||
globalSetting: globalSetting,
|
||
loading: loading.models.index
|
||
};
|
||
})(LoginForm_LoginPopComponents));
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js
|
||
var tooltip_style = __webpack_require__("5Dmo");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 17 modules
|
||
var tooltip = __webpack_require__("3S7+");
|
||
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/RegisterPanel/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function RegisterPanel_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ RegisterPanel_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
var RegisterPanel_inputStyle = {
|
||
height: 48
|
||
};
|
||
var loginRegex = /(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i;
|
||
var RegisterPanel_password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
|
||
var initialState = {
|
||
timer: 0
|
||
};
|
||
var Types = /*#__PURE__*/function (Types) {
|
||
Types[Types["setTimer"] = 0] = "setTimer";
|
||
return Types;
|
||
}(Types || {});
|
||
function reducer(state, action) {
|
||
switch (action.type) {
|
||
case Types.setTimer:
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, state), {}, {
|
||
timer: action.payload
|
||
});
|
||
default:
|
||
throw new Error();
|
||
}
|
||
}
|
||
var RegisterPanel_RegisterComponent = function RegisterComponent(_ref) {
|
||
var _globalSetting$settin;
|
||
var validateName = _ref.validateName,
|
||
getCode = _ref.getCode,
|
||
register = _ref.register,
|
||
_ref$style = _ref.style,
|
||
style = _ref$style === void 0 ? {} : _ref$style,
|
||
_ref$buttonText = _ref.buttonText,
|
||
buttonText = _ref$buttonText === void 0 ? '注册' : _ref$buttonText,
|
||
globalSetting = _ref.globalSetting;
|
||
var _Form$useForm = es_form["a" /* default */].useForm(),
|
||
_Form$useForm2 = Object(slicedToArray["a" /* default */])(_Form$useForm, 1),
|
||
form = _Form$useForm2[0];
|
||
var _useReducer = Object(react["useReducer"])(reducer, initialState),
|
||
_useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2),
|
||
state = _useReducer2[0],
|
||
dispatch = _useReducer2[1];
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
codeLoading = _useState2[0],
|
||
setCodeLoading = _useState2[1];
|
||
var timer = state.timer;
|
||
function onFinish(_x) {
|
||
return _onFinish.apply(this, arguments);
|
||
}
|
||
function _onFinish() {
|
||
_onFinish = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/RegisterPanel_regeneratorRuntime().mark(function _callee2(values) {
|
||
var login, password, code, _yield$register, message, status;
|
||
return RegisterPanel_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
login = values.login, password = values.password, code = values.code;
|
||
_context2.next = 3;
|
||
return register({
|
||
login: login,
|
||
password: password,
|
||
code: code
|
||
});
|
||
case 3:
|
||
_yield$register = _context2.sent;
|
||
message = _yield$register.message;
|
||
status = _yield$register.status;
|
||
if (!(status < 0)) {
|
||
_context2.next = 9;
|
||
break;
|
||
}
|
||
form.setFields([{
|
||
name: 'code',
|
||
errors: [message]
|
||
}]);
|
||
return _context2.abrupt("return");
|
||
case 9:
|
||
// antdMessage.info('注册成功')
|
||
// history.replace('/')
|
||
window.location.reload();
|
||
case 10:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
return _onFinish.apply(this, arguments);
|
||
}
|
||
function onValidateName() {
|
||
return _onValidateName.apply(this, arguments);
|
||
}
|
||
function _onValidateName() {
|
||
_onValidateName = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/RegisterPanel_regeneratorRuntime().mark(function _callee3() {
|
||
var login, flag, _yield$validateName, status, message, isOk;
|
||
return RegisterPanel_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
||
while (1) switch (_context3.prev = _context3.next) {
|
||
case 0:
|
||
login = form.getFieldValue('login');
|
||
flag = 0;
|
||
if (!(!loginRegex.test(login) || login.indexOf(" ") > -1)) {
|
||
_context3.next = 6;
|
||
break;
|
||
}
|
||
form.setFields([{
|
||
name: 'login',
|
||
errors: ['请输入正确的手机号或邮箱']
|
||
}]);
|
||
flag = 1;
|
||
return _context3.abrupt("return", flag);
|
||
case 6:
|
||
_context3.next = 8;
|
||
return validateName({
|
||
login: login,
|
||
type: 1
|
||
});
|
||
case 8:
|
||
_yield$validateName = _context3.sent;
|
||
status = _yield$validateName.status;
|
||
message = _yield$validateName.message;
|
||
isOk = status > 0;
|
||
if (isOk) {
|
||
flag = 2;
|
||
} else {
|
||
form.setFields([{
|
||
name: 'login',
|
||
errors: [message]
|
||
}]);
|
||
flag = 1;
|
||
}
|
||
return _context3.abrupt("return", flag);
|
||
case 14:
|
||
case "end":
|
||
return _context3.stop();
|
||
}
|
||
}, _callee3);
|
||
}));
|
||
return _onValidateName.apply(this, arguments);
|
||
}
|
||
var onGetCode = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/RegisterPanel_regeneratorRuntime().mark(function _callee() {
|
||
var verify, login, _yield$getCode, status, message;
|
||
return RegisterPanel_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
verify = form.getFieldValue('verify');
|
||
login = form.getFieldValue('login');
|
||
if (login) {
|
||
_context.next = 6;
|
||
break;
|
||
}
|
||
form.validateFields(['login']);
|
||
_context.next = 15;
|
||
break;
|
||
case 6:
|
||
setCodeLoading(true);
|
||
_context.next = 9;
|
||
return getCode({
|
||
login: login,
|
||
type: 1,
|
||
smscode: Object(util["q" /* setmiyah */])(login)
|
||
});
|
||
case 9:
|
||
_yield$getCode = _context.sent;
|
||
status = _yield$getCode.status;
|
||
message = _yield$getCode.message;
|
||
if (status < 0) {
|
||
form.setFields([{
|
||
name: 'code',
|
||
errors: [message]
|
||
}]);
|
||
}
|
||
dispatch({
|
||
type: Types.setTimer,
|
||
payload: 60
|
||
});
|
||
setCodeLoading(false);
|
||
case 15:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function onGetCode() {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
function validatePassword(_, value) {
|
||
if (!value) {
|
||
return Promise.resolve();
|
||
}
|
||
if (!RegisterPanel_password.test(value)) {
|
||
return Promise.reject('请输入8~16位字符,字母、数字和特殊符号至少包含2种');
|
||
}
|
||
if (value.indexOf(" ") > -1) {
|
||
return Promise.reject('请输入8-16位密码,区分大小写、不能使用空格');
|
||
}
|
||
var len = value.length;
|
||
if (len >= 8 && len <= 16) {
|
||
return Promise.resolve();
|
||
} else {
|
||
return Promise.reject('请输入8-16位密码,区分大小写、不能使用空格');
|
||
}
|
||
}
|
||
var verifyValidate = function verifyValidate(_, value) {
|
||
return value ? Promise.resolve() : Promise.reject('请拖动滑块验证');
|
||
};
|
||
Object(react["useEffect"])(function () {
|
||
if (timer > 0) {
|
||
setTimeout(function () {
|
||
dispatch({
|
||
type: Types.setTimer,
|
||
payload: timer - 1
|
||
});
|
||
}, 1000);
|
||
}
|
||
}, [timer]);
|
||
var LoginValidate = function LoginValidate(_, value) {
|
||
if (!value) {
|
||
return Promise.resolve();
|
||
}
|
||
if (value.indexOf(" ") > -1) {
|
||
return Promise.reject('请输入正确的手机号或邮箱');
|
||
}
|
||
if (loginRegex.test(value)) {
|
||
return Promise.resolve();
|
||
} else {
|
||
return Promise.reject('请输入正确的手机号或邮箱');
|
||
}
|
||
};
|
||
return /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */], {
|
||
layout: "vertical",
|
||
form: form,
|
||
style: style,
|
||
initialValues: {
|
||
autologin: true,
|
||
protool: false
|
||
},
|
||
onFinish: onFinish
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "login",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入正确的手机号或邮箱'
|
||
}, {
|
||
validator: LoginValidate
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
style: RegisterPanel_inputStyle,
|
||
autoComplete: "new-login",
|
||
size: "large",
|
||
placeholder: "\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7/\u90AE\u7BB1\u53F7",
|
||
onBlur: function onBlur() {
|
||
return onValidateName;
|
||
},
|
||
onChange: function onChange() {
|
||
return form.setFieldsValue({
|
||
verify: 0
|
||
});
|
||
}
|
||
})), !(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.is_local) && /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "code",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入验证码'
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
suffix: /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
loading: codeLoading,
|
||
type: "link",
|
||
onClick: onGetCode,
|
||
disabled: timer > 0
|
||
}, " ", timer === 0 ? '获取验证码' : "".concat(timer, "\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6")),
|
||
style: {
|
||
paddingRight: 2,
|
||
height: 48
|
||
},
|
||
placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",
|
||
size: "large"
|
||
})), /*#__PURE__*/react_default.a.createElement(tooltip["a" /* default */], {
|
||
title: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u957F\u5EA6\u4E3A8-16\u4F4D\u5B57\u7B26"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u5B57\u6BCD/\u6570\u5B57\u4EE5\u53CA\u6807\u70B9\u7B26\u53F7\u81F3\u5C11\u5305\u542B2\u79CD"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u4E0D\u5141\u8BB8\u6709\u7A7A\u683C\u3001\u4E2D\u6587")),
|
||
placement: "topRight"
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "password",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入8-16位密码,区分大小写、不能使用空格'
|
||
}, {
|
||
validator: validatePassword
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */].Password, {
|
||
autoComplete: "new-password",
|
||
style: RegisterPanel_inputStyle,
|
||
size: "large",
|
||
placeholder: "\u8BF7\u8F93\u51658~16\u4F4D\u5B57\u7B26\uFF0C\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u7279\u6B8A\u7B26\u53F7\u81F3\u5C11\u5305\u542B2\u79CD"
|
||
// visibilityToggle={false}
|
||
}))), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
size: "large",
|
||
type: "primary",
|
||
htmlType: "submit",
|
||
block: true,
|
||
style: RegisterPanel_inputStyle,
|
||
className: "font16"
|
||
}, " ", buttonText, " ")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc",
|
||
style: {
|
||
paddingTop: 0,
|
||
paddingBottom: 35
|
||
}
|
||
}, "\u6CE8\u518C\u5E76\u767B\u5F55\u5373\u4EE3\u8868\u60A8\u5DF2\u9605\u8BFB\u5E76\u540C\u610F", /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "https://engineer.educoder.net/help?index=4",
|
||
target: "_blank"
|
||
}, "\u300A\u670D\u52A1\u534F\u8BAE\u6761\u6B3E\u300B")));
|
||
};
|
||
/* harmony default export */ var RegisterPanel = (Object(umiExports["a" /* connect */])(function (_ref3) {
|
||
var globalSetting = _ref3.globalSetting;
|
||
return {
|
||
globalSetting: globalSetting
|
||
};
|
||
})(RegisterPanel_RegisterComponent));
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/ResetPassword/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function ResetPassword_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ ResetPassword_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
var ResetPassword_inputStyle = {
|
||
height: 48
|
||
};
|
||
var ResetPassword_loginRegex = /(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i;
|
||
var ResetPassword_password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
|
||
var ResetPassword_initialState = {
|
||
timer: 0
|
||
};
|
||
var ResetPassword_Types = /*#__PURE__*/function (Types) {
|
||
Types[Types["setTimer"] = 0] = "setTimer";
|
||
return Types;
|
||
}(ResetPassword_Types || {});
|
||
function ResetPassword_reducer(state, action) {
|
||
switch (action.type) {
|
||
case ResetPassword_Types.setTimer:
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, state), {}, {
|
||
timer: action.payload
|
||
});
|
||
default:
|
||
throw new Error();
|
||
}
|
||
}
|
||
var ResetPassword_RegisterComponent = function RegisterComponent(_ref) {
|
||
var _globalSetting$settin;
|
||
var validateName = _ref.validateName,
|
||
getCode = _ref.getCode,
|
||
register = _ref.register,
|
||
_ref$style = _ref.style,
|
||
style = _ref$style === void 0 ? {} : _ref$style,
|
||
_ref$buttonText = _ref.buttonText,
|
||
buttonText = _ref$buttonText === void 0 ? '注册' : _ref$buttonText,
|
||
globalSetting = _ref.globalSetting;
|
||
var _Form$useForm = es_form["a" /* default */].useForm(),
|
||
_Form$useForm2 = Object(slicedToArray["a" /* default */])(_Form$useForm, 1),
|
||
form = _Form$useForm2[0];
|
||
var _useReducer = Object(react["useReducer"])(ResetPassword_reducer, ResetPassword_initialState),
|
||
_useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2),
|
||
state = _useReducer2[0],
|
||
dispatch = _useReducer2[1];
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
codeLoading = _useState2[0],
|
||
setCodeLoading = _useState2[1];
|
||
var timer = state.timer;
|
||
function onFinish(_x) {
|
||
return _onFinish.apply(this, arguments);
|
||
}
|
||
function _onFinish() {
|
||
_onFinish = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ResetPassword_regeneratorRuntime().mark(function _callee3(values) {
|
||
var login, new_password, code, _yield$register, message, status;
|
||
return ResetPassword_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
||
while (1) switch (_context3.prev = _context3.next) {
|
||
case 0:
|
||
login = values.login, new_password = values.new_password, code = values.code;
|
||
_context3.next = 3;
|
||
return register({
|
||
login: login,
|
||
new_password: new_password,
|
||
code: code
|
||
});
|
||
case 3:
|
||
_yield$register = _context3.sent;
|
||
message = _yield$register.message;
|
||
status = _yield$register.status;
|
||
if (!(status < 0)) {
|
||
_context3.next = 9;
|
||
break;
|
||
}
|
||
form.setFields([{
|
||
name: 'code',
|
||
errors: [message]
|
||
}]);
|
||
return _context3.abrupt("return");
|
||
case 9:
|
||
location.reload();
|
||
// history.replace('/')
|
||
case 10:
|
||
case "end":
|
||
return _context3.stop();
|
||
}
|
||
}, _callee3);
|
||
}));
|
||
return _onFinish.apply(this, arguments);
|
||
}
|
||
function onValidateName() {
|
||
return _onValidateName.apply(this, arguments);
|
||
}
|
||
function _onValidateName() {
|
||
_onValidateName = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ResetPassword_regeneratorRuntime().mark(function _callee4() {
|
||
var login, flag, _yield$validateName2, status, message, isOk;
|
||
return ResetPassword_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
||
while (1) switch (_context4.prev = _context4.next) {
|
||
case 0:
|
||
login = form.getFieldValue('login');
|
||
flag = 0;
|
||
if (!(!ResetPassword_loginRegex.test(login) || login.indexOf(" ") > -1)) {
|
||
_context4.next = 6;
|
||
break;
|
||
}
|
||
form.setFields([{
|
||
name: 'login',
|
||
errors: ['请输入正确的手机号或邮箱']
|
||
}]);
|
||
flag = 1;
|
||
return _context4.abrupt("return", flag);
|
||
case 6:
|
||
_context4.next = 8;
|
||
return validateName({
|
||
login: login,
|
||
type: 2
|
||
});
|
||
case 8:
|
||
_yield$validateName2 = _context4.sent;
|
||
status = _yield$validateName2.status;
|
||
message = _yield$validateName2.message;
|
||
isOk = status > 0;
|
||
if (isOk) {
|
||
flag = 2;
|
||
} else {
|
||
form.setFields([{
|
||
name: 'login',
|
||
errors: [message]
|
||
}]);
|
||
flag = 1;
|
||
}
|
||
return _context4.abrupt("return", flag);
|
||
case 14:
|
||
case "end":
|
||
return _context4.stop();
|
||
}
|
||
}, _callee4);
|
||
}));
|
||
return _onValidateName.apply(this, arguments);
|
||
}
|
||
var onGetCode = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ResetPassword_regeneratorRuntime().mark(function _callee() {
|
||
var verify, login, _yield$getCode, status, message;
|
||
return ResetPassword_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
verify = form.getFieldValue('verify');
|
||
login = form.getFieldValue('login');
|
||
_context.next = 4;
|
||
return form.validateFields(['login']);
|
||
case 4:
|
||
if (login) {
|
||
_context.next = 8;
|
||
break;
|
||
}
|
||
form.validateFields(['login']);
|
||
_context.next = 17;
|
||
break;
|
||
case 8:
|
||
setCodeLoading(true);
|
||
_context.next = 11;
|
||
return getCode({
|
||
login: login,
|
||
type: 2,
|
||
smscode: Object(util["q" /* setmiyah */])(login)
|
||
});
|
||
case 11:
|
||
_yield$getCode = _context.sent;
|
||
status = _yield$getCode.status;
|
||
message = _yield$getCode.message;
|
||
if (status < 0) {
|
||
form.setFields([{
|
||
name: 'code',
|
||
errors: [message]
|
||
}]);
|
||
}
|
||
dispatch({
|
||
type: ResetPassword_Types.setTimer,
|
||
payload: 60
|
||
});
|
||
setCodeLoading(false);
|
||
case 17:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function onGetCode() {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
function validatePassword(_, value) {
|
||
if (!value) {
|
||
return Promise.resolve();
|
||
}
|
||
if (!ResetPassword_password.test(value)) {
|
||
return Promise.reject('请输入8~16位字符,字母、数字和特殊符号至少包含2种');
|
||
}
|
||
if (value.indexOf(" ") > -1) {
|
||
return Promise.reject('请输入8-16位新密码,区分大小写、不能使用空格');
|
||
}
|
||
var len = value.length;
|
||
if (len >= 8 && len <= 16) {
|
||
return Promise.resolve();
|
||
} else {
|
||
return Promise.reject('请输入8-16位新密码,区分大小写、不能使用空格');
|
||
}
|
||
}
|
||
var verifyValidate = function verifyValidate(_, value) {
|
||
return value ? Promise.resolve() : Promise.reject('请拖动滑块验证');
|
||
};
|
||
Object(react["useEffect"])(function () {
|
||
if (timer > 0) {
|
||
setTimeout(function () {
|
||
dispatch({
|
||
type: ResetPassword_Types.setTimer,
|
||
payload: timer - 1
|
||
});
|
||
}, 1000);
|
||
}
|
||
}, [timer]);
|
||
var LoginValidate = /*#__PURE__*/function () {
|
||
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ResetPassword_regeneratorRuntime().mark(function _callee2(_, value) {
|
||
var _yield$validateName, status, message, isOk;
|
||
return ResetPassword_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
if (value) {
|
||
_context2.next = 2;
|
||
break;
|
||
}
|
||
return _context2.abrupt("return", Promise.resolve());
|
||
case 2:
|
||
if (!(value.indexOf(" ") > -1)) {
|
||
_context2.next = 4;
|
||
break;
|
||
}
|
||
return _context2.abrupt("return", Promise.reject('请输入正确的手机号或邮箱'));
|
||
case 4:
|
||
if (!ResetPassword_loginRegex.test(value)) {
|
||
_context2.next = 18;
|
||
break;
|
||
}
|
||
_context2.next = 7;
|
||
return validateName({
|
||
login: value,
|
||
type: 2
|
||
});
|
||
case 7:
|
||
_yield$validateName = _context2.sent;
|
||
status = _yield$validateName.status;
|
||
message = _yield$validateName.message;
|
||
isOk = status > 0;
|
||
if (!isOk) {
|
||
_context2.next = 15;
|
||
break;
|
||
}
|
||
return _context2.abrupt("return", Promise.resolve());
|
||
case 15:
|
||
return _context2.abrupt("return", Promise.reject(message));
|
||
case 16:
|
||
_context2.next = 19;
|
||
break;
|
||
case 18:
|
||
return _context2.abrupt("return", Promise.reject('请输入正确的手机号或邮箱'));
|
||
case 19:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
return function LoginValidate(_x2, _x3) {
|
||
return _ref3.apply(this, arguments);
|
||
};
|
||
}();
|
||
return /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */], {
|
||
layout: "vertical",
|
||
form: form,
|
||
style: style,
|
||
initialValues: {
|
||
autologin: true,
|
||
protool: false
|
||
},
|
||
onFinish: onFinish
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "login",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入正确的手机号或邮箱'
|
||
}, {
|
||
validator: LoginValidate
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
style: ResetPassword_inputStyle,
|
||
autoComplete: "new-login",
|
||
size: "large",
|
||
placeholder: "\u8BF7\u8F93\u5165\u6709\u6548\u7684\u624B\u673A\u53F7/\u90AE\u7BB1\u53F7"
|
||
// onBlur={() => onValidateName}
|
||
,
|
||
onChange: function onChange() {
|
||
return form.setFieldsValue({
|
||
verify: 0
|
||
});
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement(tooltip["a" /* default */], {
|
||
title: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u957F\u5EA6\u4E3A8-16\u4F4D\u5B57\u7B26"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u5B57\u6BCD/\u6570\u5B57\u4EE5\u53CA\u6807\u70B9\u7B26\u53F7\u81F3\u5C11\u5305\u542B2\u79CD"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u4E0D\u5141\u8BB8\u6709\u7A7A\u683C\u3001\u4E2D\u6587")),
|
||
placement: "topRight"
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "new_password",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入8-16位新密码,区分大小写、不能使用空格'
|
||
}, {
|
||
validator: validatePassword
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */].Password, {
|
||
autoComplete: "new-password",
|
||
style: ResetPassword_inputStyle,
|
||
size: "large",
|
||
placeholder: "\u8F93\u51658\uFF5E16\u4F4D\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"
|
||
}))), !(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.is_local) && /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "code",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入验证码'
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
suffix: /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
loading: codeLoading,
|
||
type: "link",
|
||
onClick: onGetCode,
|
||
disabled: timer > 0
|
||
}, " ", timer === 0 ? '获取验证码' : "".concat(timer, "\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6")),
|
||
style: {
|
||
paddingRight: 2,
|
||
height: 48
|
||
},
|
||
placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",
|
||
size: "large"
|
||
})), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
size: "large",
|
||
type: "primary",
|
||
htmlType: "submit",
|
||
block: true,
|
||
style: ResetPassword_inputStyle,
|
||
className: "font16"
|
||
}, " ", buttonText, " ")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc",
|
||
style: {
|
||
paddingTop: 0,
|
||
paddingBottom: 20
|
||
}
|
||
}, "\u4FEE\u6539\u5E76\u767B\u5F55\u5373\u4EE3\u8868\u60A8\u5DF2\u9605\u8BFB\u5E76\u540C\u610F", /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "https://engineer.educoder.net/help?index=4",
|
||
target: "_blank"
|
||
}, "\u300A\u670D\u52A1\u534F\u8BAE\u6761\u6B3E\u300B")));
|
||
};
|
||
/* harmony default export */ var ResetPassword = (Object(umiExports["a" /* connect */])(function (_ref4) {
|
||
var globalSetting = _ref4.globalSetting;
|
||
return {
|
||
globalSetting: globalSetting
|
||
};
|
||
})(ResetPassword_RegisterComponent));
|
||
// EXTERNAL MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg
|
||
var wechat = __webpack_require__("h0ge");
|
||
var wechat_default = /*#__PURE__*/__webpack_require__.n(wechat);
|
||
|
||
// EXTERNAL MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg
|
||
var qq = __webpack_require__("/nL+");
|
||
var qq_default = /*#__PURE__*/__webpack_require__.n(qq);
|
||
|
||
// EXTERNAL MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules
|
||
var OauthPanelmodules = __webpack_require__("IxGP");
|
||
var OauthPanelmodules_default = /*#__PURE__*/__webpack_require__.n(OauthPanelmodules);
|
||
|
||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||
var env = __webpack_require__("m3rI");
|
||
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/OauthPanel/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var HOST = window.location.host;
|
||
var redirect_uri = env["a" /* default */].QQLoginCB;
|
||
/* harmony default export */ var OauthPanel = (function (_ref) {
|
||
var onWechatLogin = _ref.onWechatLogin,
|
||
setType = _ref.setType,
|
||
loginType = _ref.loginType;
|
||
function onQQLogin() {
|
||
if (Object(util["l" /* isPc */])()) {
|
||
window.location.href = "https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code");
|
||
} else {
|
||
Object(util["m" /* openNewWindow */])("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code"));
|
||
}
|
||
}
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, (loginType === 1 || loginType === 2) && /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
marginTop: loginType === 4 ? 20 : 92,
|
||
marginBottom: 60
|
||
},
|
||
className: "font16 tc"
|
||
}, "\u6CA1\u6709\u8D26\u53F7\uFF1F", /*#__PURE__*/react_default.a.createElement("span", {
|
||
onClick: function onClick() {
|
||
return setType(3);
|
||
},
|
||
className: "c-blue current"
|
||
}, "\u514D\u8D39\u6CE8\u518C")), (loginType === 3 || loginType === 4 || loginType === 5) && /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
marginTop: 92,
|
||
marginBottom: 60
|
||
},
|
||
className: "font16 tc"
|
||
}, "\u5DF2\u6709\u8D26\u53F7\uFF1F", /*#__PURE__*/react_default.a.createElement("span", {
|
||
onClick: function onClick() {
|
||
return setType(1);
|
||
},
|
||
className: "c-blue current"
|
||
}, "\u7ACB\u5373\u767B\u5F55")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: OauthPanelmodules_default.a['other-login']
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
title: "\u5FAE\u4FE1\u767B\u5F55",
|
||
onClick: onWechatLogin
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: wechat_default.a,
|
||
alt: "\u5FAE\u4FE1",
|
||
width: 66
|
||
})), /*#__PURE__*/react_default.a.createElement("a", {
|
||
title: "qq\u767B\u5F55",
|
||
onClick: onQQLogin
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: qq_default.a,
|
||
alt: "QQ",
|
||
width: 66
|
||
}))));
|
||
});
|
||
function WechatQrcode(_ref2) {
|
||
var onBack = _ref2.onBack,
|
||
setType = _ref2.setType;
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
overflow: "hidden",
|
||
width: 300,
|
||
height: 300,
|
||
margin: "20px auto 0 auto"
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("iframe", {
|
||
className: OauthPanelmodules_default.a['wechat-qrcode'],
|
||
frameBorder: "0",
|
||
sandbox: "allow-scripts allow-same-origin allow-top-navigation",
|
||
scrolling: "no",
|
||
src: "https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(redirect_uri, "%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(HOST, "#wechat_redirect")
|
||
})), /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
marginTop: 17,
|
||
marginBottom: 10
|
||
},
|
||
className: "font16 bold tc c-blue current"
|
||
}, /*#__PURE__*/react_default.a.createElement("span", {
|
||
onClick: function onClick() {
|
||
return setType(1);
|
||
},
|
||
style: {
|
||
borderBottom: "2px solid #1890FF"
|
||
}
|
||
}, "\u8FD4\u56DE\u8D26\u53F7\u767B\u5F55")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc",
|
||
style: {
|
||
paddingTop: 14,
|
||
paddingBottom: 40
|
||
}
|
||
}, "\u767B\u5F55\u5373\u4EE3\u8868\u60A8\u5DF2\u9605\u8BFB\u5E76\u540C\u610F", /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "https://engineer.educoder.net/help?index=4",
|
||
target: "_blank"
|
||
}, "\u300A\u670D\u52A1\u534F\u8BAE\u6761\u6B3E\u300B")));
|
||
}
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/ChangPassword/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function ChangPassword_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ ChangPassword_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
var ChangPassword_inputStyle = {
|
||
height: 48
|
||
};
|
||
var ChangPassword_loginRegex = /(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i;
|
||
var ChangPassword_password = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/;
|
||
var ChangPassword_initialState = {
|
||
timer: 0
|
||
};
|
||
var ChangPassword_Types = /*#__PURE__*/function (Types) {
|
||
Types[Types["setTimer"] = 0] = "setTimer";
|
||
return Types;
|
||
}(ChangPassword_Types || {});
|
||
function ChangPassword_reducer(state, action) {
|
||
switch (action.type) {
|
||
case ChangPassword_Types.setTimer:
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, state), {}, {
|
||
timer: action.payload
|
||
});
|
||
default:
|
||
throw new Error();
|
||
}
|
||
}
|
||
var ChangPassword_RegisterComponent = function RegisterComponent(_ref) {
|
||
var validateName = _ref.validateName,
|
||
getCode = _ref.getCode,
|
||
register = _ref.register,
|
||
_ref$style = _ref.style,
|
||
style = _ref$style === void 0 ? {} : _ref$style,
|
||
_ref$buttonText = _ref.buttonText,
|
||
buttonText = _ref$buttonText === void 0 ? '注册' : _ref$buttonText,
|
||
globalSetting = _ref.globalSetting;
|
||
var _Form$useForm = es_form["a" /* default */].useForm(),
|
||
_Form$useForm2 = Object(slicedToArray["a" /* default */])(_Form$useForm, 1),
|
||
form = _Form$useForm2[0];
|
||
var _useReducer = Object(react["useReducer"])(ChangPassword_reducer, ChangPassword_initialState),
|
||
_useReducer2 = Object(slicedToArray["a" /* default */])(_useReducer, 2),
|
||
state = _useReducer2[0],
|
||
dispatch = _useReducer2[1];
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
codeLoading = _useState2[0],
|
||
setCodeLoading = _useState2[1];
|
||
var timer = state.timer;
|
||
function onFinish(_x) {
|
||
return _onFinish.apply(this, arguments);
|
||
}
|
||
function _onFinish() {
|
||
_onFinish = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/ChangPassword_regeneratorRuntime().mark(function _callee(values) {
|
||
var old_password, newPassword, _yield$register, message, status;
|
||
return ChangPassword_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
old_password = values.old_password, newPassword = values.newPassword;
|
||
_context.next = 3;
|
||
return register({
|
||
old_password: old_password,
|
||
newPassword: newPassword
|
||
});
|
||
case 3:
|
||
_yield$register = _context.sent;
|
||
message = _yield$register.message;
|
||
status = _yield$register.status;
|
||
if (!(status < 0)) {
|
||
_context.next = 9;
|
||
break;
|
||
}
|
||
form.setFields([{
|
||
name: 'code',
|
||
errors: [message]
|
||
}]);
|
||
return _context.abrupt("return");
|
||
case 9:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return _onFinish.apply(this, arguments);
|
||
}
|
||
var inputNewPassword = function inputNewPassword(rule, value, callback) {
|
||
if (!value) {
|
||
callback("请输入8-16位字符的新密码,区分大小写!");
|
||
} else if (value.indexOf(" ") > -1) {
|
||
callback('请输入8-16位密码,区分大小写、不能使用空格');
|
||
} else if (value.length < 8 || value.length > 16) {
|
||
callback("请输入8-16位字符的新密码,区分大小写!");
|
||
} else if (!ChangPassword_password.test(value)) {
|
||
callback("请输入8~16位字符,字母、数字和特殊符号至少包含2种");
|
||
} else {
|
||
callback();
|
||
}
|
||
};
|
||
Object(react["useEffect"])(function () {
|
||
if (timer > 0) {
|
||
setTimeout(function () {
|
||
dispatch({
|
||
type: ChangPassword_Types.setTimer,
|
||
payload: timer - 1
|
||
});
|
||
}, 1000);
|
||
}
|
||
}, [timer]);
|
||
return /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */], {
|
||
layout: "vertical",
|
||
form: form,
|
||
style: style,
|
||
initialValues: {
|
||
autologin: true,
|
||
protool: false
|
||
},
|
||
onFinish: onFinish
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "old_password",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入8~16位密码,区分大小写'
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
style: ChangPassword_inputStyle,
|
||
autoComplete: "new-login",
|
||
size: "large",
|
||
type: "password",
|
||
placeholder: "\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801"
|
||
// onBlur={() => onValidateName}
|
||
,
|
||
onChange: function onChange() {
|
||
return form.setFieldsValue({
|
||
verify: 0
|
||
});
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement(tooltip["a" /* default */], {
|
||
title: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u957F\u5EA6\u4E3A8-16\u4F4D\u5B57\u7B26"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u5B57\u6BCD/\u6570\u5B57\u4EE5\u53CA\u6807\u70B9\u7B26\u53F7\u81F3\u5C11\u5305\u542B2\u79CD"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u4E0D\u5141\u8BB8\u6709\u7A7A\u683C\u3001\u4E2D\u6587")),
|
||
placement: "topRight"
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "newPassword",
|
||
rules: [{
|
||
required: true,
|
||
message: '请输入8-16位新密码,区分大小写、不能使用空格'
|
||
}, {
|
||
validator: inputNewPassword
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */].Password, {
|
||
autoComplete: "new-password",
|
||
style: ChangPassword_inputStyle,
|
||
size: "large",
|
||
placeholder: "\u8F93\u51658\uFF5E16\u4F4D\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"
|
||
}))), /*#__PURE__*/react_default.a.createElement(tooltip["a" /* default */], {
|
||
title: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u957F\u5EA6\u4E3A8-16\u4F4D\u5B57\u7B26"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u5B57\u6BCD/\u6570\u5B57\u4EE5\u53CA\u6807\u70B9\u7B26\u53F7\u81F3\u5C11\u5305\u542B2\u79CD"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u4E0D\u5141\u8BB8\u6709\u7A7A\u683C\u3001\u4E2D\u6587")),
|
||
placement: "topRight"
|
||
}, /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, {
|
||
name: "againPassword",
|
||
rules: [{
|
||
required: true,
|
||
message: '请再次输入新密码'
|
||
}, {
|
||
validator: function validator(rule, value, callback) {
|
||
if (value != form.getFieldsValue().newPassword) {
|
||
callback("两次输入的新密码必须一致!");
|
||
} else {
|
||
callback();
|
||
}
|
||
}
|
||
}]
|
||
}, /*#__PURE__*/react_default.a.createElement(input["a" /* default */].Password, {
|
||
autoComplete: "new-password",
|
||
style: ChangPassword_inputStyle,
|
||
size: "large",
|
||
placeholder: "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"
|
||
}))), /*#__PURE__*/react_default.a.createElement(es_form["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
size: "large",
|
||
type: "primary",
|
||
htmlType: "submit",
|
||
block: true,
|
||
style: ChangPassword_inputStyle,
|
||
className: "font16"
|
||
}, " ", buttonText, " ")), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc",
|
||
style: {
|
||
paddingTop: 0,
|
||
paddingBottom: 20
|
||
}
|
||
}, "\u4FEE\u6539\u5E76\u767B\u5F55\u5373\u4EE3\u8868\u60A8\u5DF2\u9605\u8BFB\u5E76\u540C\u610F", /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "https://engineer.educoder.net/help?index=4",
|
||
target: "_blank"
|
||
}, "\u300A\u670D\u52A1\u534F\u8BAE\u6761\u6B3E\u300B")));
|
||
};
|
||
/* harmony default export */ var ChangPassword = (Object(umiExports["a" /* connect */])(function (_ref2) {
|
||
var globalSetting = _ref2.globalSetting;
|
||
return {
|
||
globalSetting: globalSetting
|
||
};
|
||
})(ChangPassword_RegisterComponent));
|
||
// EXTERNAL MODULE: ./src/service/user.ts
|
||
var service_user = __webpack_require__("jb+D");
|
||
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/components/LoginPanel/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function LoginPanel_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ LoginPanel_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var TabPane = tabs["a" /* default */].TabPane;
|
||
/* harmony default export */ var LoginPanel = (function (_ref) {
|
||
var dispatch = _ref.dispatch,
|
||
is_main_site = _ref.is_main_site,
|
||
is_local = _ref.is_local,
|
||
_ref$style = _ref.style,
|
||
style = _ref$style === void 0 ? {} : _ref$style;
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
wechatQrcode = _useState2[0],
|
||
setWechatQrcode = _useState2[1];
|
||
var _useState3 = Object(react["useState"])("1"),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
type = _useState4[0],
|
||
setType = _useState4[1];
|
||
var _useState5 = Object(react["useState"])(1),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
loginType = _useState6[0],
|
||
setLoginType = _useState6[1];
|
||
var _useState7 = Object(react["useState"])(),
|
||
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
|
||
username = _useState8[0],
|
||
setusername = _useState8[1];
|
||
function onBack() {
|
||
setLoginType(1);
|
||
setWechatQrcode(false);
|
||
}
|
||
function onWechatLogin() {
|
||
setLoginType(2);
|
||
setWechatQrcode(true);
|
||
}
|
||
function callback(key) {
|
||
console.log(key);
|
||
setType(key);
|
||
}
|
||
var loginOption = {
|
||
buttonText: '登 录',
|
||
validateName: service_user["J" /* validateName */],
|
||
getCode: service_user["y" /* getValidateCode */],
|
||
register: function () {
|
||
var _register = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/LoginPanel_regeneratorRuntime().mark(function _callee(values) {
|
||
var response;
|
||
return LoginPanel_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
_context.next = 2;
|
||
return Object(service_user["f" /* LoginForPhone */])({
|
||
phone: values.login,
|
||
code: values.code
|
||
});
|
||
case 2:
|
||
response = _context.sent;
|
||
if (!(response.status === 0)) {
|
||
_context.next = 6;
|
||
break;
|
||
}
|
||
// message.info('注册并绑定成功')
|
||
if (response === null || response === void 0 ? void 0 : response.show) {
|
||
localStorage.setItem('extension-modal', 'exist');
|
||
localStorage.setItem('extension-date', response === null || response === void 0 ? void 0 : response.start_date);
|
||
} else {
|
||
localStorage.removeItem('extension-modal');
|
||
}
|
||
return _context.abrupt("return", '/');
|
||
case 6:
|
||
return _context.abrupt("return", response);
|
||
case 7:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
function register(_x) {
|
||
return _register.apply(this, arguments);
|
||
}
|
||
return register;
|
||
}()
|
||
};
|
||
var registerOption = {
|
||
buttonText: '注册并登录',
|
||
validateName: service_user["J" /* validateName */],
|
||
getCode: service_user["y" /* getValidateCode */],
|
||
register: function () {
|
||
var _register3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/LoginPanel_regeneratorRuntime().mark(function _callee2(values) {
|
||
var response, addinfo;
|
||
return LoginPanel_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
_context2.next = 2;
|
||
return Object(service_user["C" /* register */])(Object(objectSpread2["a" /* default */])({}, values));
|
||
case 2:
|
||
response = _context2.sent;
|
||
if (!(response.status === 0)) {
|
||
_context2.next = 9;
|
||
break;
|
||
}
|
||
//代表新注册用户
|
||
addinfo = localStorage.getItem('addinfo');
|
||
if (addinfo === '1') {
|
||
localStorage.setItem('addinfo', '2');
|
||
} else {
|
||
localStorage.setItem('registeruser', '1');
|
||
}
|
||
localStorage.removeItem('extension-modal');
|
||
es_message["b" /* default */].info('注册并登陆成功');
|
||
return _context2.abrupt("return", '/');
|
||
case 9:
|
||
return _context2.abrupt("return", response);
|
||
case 10:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
function register(_x2) {
|
||
return _register3.apply(this, arguments);
|
||
}
|
||
return register;
|
||
}()
|
||
};
|
||
var Password = {
|
||
buttonText: '修改密码',
|
||
validateName: service_user["J" /* validateName */],
|
||
getCode: service_user["y" /* getValidateCode */],
|
||
register: function () {
|
||
var _register4 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/LoginPanel_regeneratorRuntime().mark(function _callee3(values) {
|
||
var response;
|
||
return LoginPanel_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
||
while (1) switch (_context3.prev = _context3.next) {
|
||
case 0:
|
||
_context3.next = 2;
|
||
return Object(service_user["i" /* changPassword */])(Object(objectSpread2["a" /* default */])({
|
||
login: username
|
||
}, values));
|
||
case 2:
|
||
response = _context3.sent;
|
||
es_message["b" /* default */].info('修改密码成功');
|
||
return _context3.abrupt("return", response);
|
||
case 5:
|
||
case "end":
|
||
return _context3.stop();
|
||
}
|
||
}, _callee3);
|
||
}));
|
||
function register(_x3) {
|
||
return _register4.apply(this, arguments);
|
||
}
|
||
return register;
|
||
}()
|
||
};
|
||
var resetOption = {
|
||
buttonText: '修改并登录',
|
||
validateName: service_user["J" /* validateName */],
|
||
getCode: service_user["y" /* getValidateCode */],
|
||
register: function () {
|
||
var _register5 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/LoginPanel_regeneratorRuntime().mark(function _callee4(values) {
|
||
var response;
|
||
return LoginPanel_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
||
while (1) switch (_context4.prev = _context4.next) {
|
||
case 0:
|
||
values.new_password_confirmation = values.new_password;
|
||
_context4.next = 3;
|
||
return Object(service_user["D" /* resetPassword */])(Object(objectSpread2["a" /* default */])({}, values));
|
||
case 3:
|
||
response = _context4.sent;
|
||
if (!(response.status === 0)) {
|
||
_context4.next = 8;
|
||
break;
|
||
}
|
||
if (response === null || response === void 0 ? void 0 : response.show) {
|
||
localStorage.setItem('extension-modal', 'exist');
|
||
localStorage.setItem('extension-date', response === null || response === void 0 ? void 0 : response.start_date);
|
||
} else {
|
||
localStorage.removeItem('extension-modal');
|
||
}
|
||
es_message["b" /* default */].info('修改成功');
|
||
return _context4.abrupt("return", '/');
|
||
case 8:
|
||
return _context4.abrupt("return", response);
|
||
case 9:
|
||
case "end":
|
||
return _context4.stop();
|
||
}
|
||
}, _callee4);
|
||
}));
|
||
function register(_x4) {
|
||
return _register5.apply(this, arguments);
|
||
}
|
||
return register;
|
||
}()
|
||
};
|
||
var loginDom = Object(react["useCallback"])(function () {
|
||
switch (loginType) {
|
||
case 1:
|
||
return /*#__PURE__*/react_default.a.createElement(tabs["a" /* default */], {
|
||
defaultActiveKey: type,
|
||
onChange: callback,
|
||
className: LoginPanelmodules_default.a.tabs
|
||
}, /*#__PURE__*/react_default.a.createElement(TabPane, {
|
||
tab: "\u767B\u5F55",
|
||
key: "1"
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "mt20"
|
||
}, type === '1' && /*#__PURE__*/react_default.a.createElement(LoginForm, {
|
||
setusername: setusername,
|
||
setType: setLoginType
|
||
}))));
|
||
break;
|
||
case 2:
|
||
return /*#__PURE__*/react_default.a.createElement(WechatQrcode, {
|
||
setType: setLoginType,
|
||
onBack: onBack
|
||
});
|
||
break;
|
||
case 3:
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "ml40"
|
||
}, /*#__PURE__*/react_default.a.createElement("h1", {
|
||
className: "font18 mb20 mt35"
|
||
}, "\u65B0\u7528\u6237\u6CE8\u518C"), /*#__PURE__*/react_default.a.createElement(RegisterPanel, registerOption));
|
||
break;
|
||
case 4:
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "ml40"
|
||
}, /*#__PURE__*/react_default.a.createElement("h1", {
|
||
className: "font18 mb20 mt35"
|
||
}, "\u627E\u56DE\u5BC6\u7801"), /*#__PURE__*/react_default.a.createElement(ResetPassword, resetOption));
|
||
break;
|
||
case 5:
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "ml40"
|
||
}, /*#__PURE__*/react_default.a.createElement("h1", {
|
||
className: "font18 mb20 mt35"
|
||
}, "\u4FEE\u6539\u5BC6\u7801"), /*#__PURE__*/react_default.a.createElement(ChangPassword, Password));
|
||
break;
|
||
}
|
||
}, [loginType, type]);
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: LoginPanelmodules_default.a['login-panel-wrapper2'],
|
||
style: style
|
||
}, /*#__PURE__*/react_default.a.createElement(row["a" /* default */], null, /*#__PURE__*/react_default.a.createElement(col["a" /* default */], {
|
||
flex: "1"
|
||
}, loginDom())));
|
||
});
|
||
// EXTERNAL MODULE: ./src/components/User/PopLoginRegister/PopLogin.less?modules
|
||
var PopLoginmodules = __webpack_require__("1TMG");
|
||
var PopLoginmodules_default = /*#__PURE__*/__webpack_require__.n(PopLoginmodules);
|
||
|
||
// CONCATENATED MODULE: ./src/components/User/PopLoginRegister/PopLogin.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var PopLogin_LoginPopComponents = function LoginPopComponents(_ref) {
|
||
var _globalSetting$settin, _globalSetting$settin2;
|
||
var user = _ref.user,
|
||
globalSetting = _ref.globalSetting,
|
||
loading = _ref.loading,
|
||
dispatch = _ref.dispatch;
|
||
var onCancel = function onCancel() {
|
||
dispatch({
|
||
type: 'user/showPopLogin',
|
||
payload: {
|
||
showPopLogin: false,
|
||
showClosable: false
|
||
}
|
||
});
|
||
};
|
||
var is_main_site = (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.main_site;
|
||
var is_local = (_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.is_local;
|
||
return /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
|
||
centered: true
|
||
// title={<div>
|
||
// <span>账号登录</span>
|
||
// <span className="ml50">验证码登录</span>
|
||
// </div>}
|
||
,
|
||
visible: user.showPopLogin,
|
||
footer: null,
|
||
width: !is_local ? 405 : 420,
|
||
keyboard: false,
|
||
maskClosable: false,
|
||
wrapClassName: PopLoginmodules_default.a.popLogin,
|
||
closable: false,
|
||
onCancel: onCancel
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: PopLoginmodules_default.a.logincloseIcon,
|
||
onClick: onCancel
|
||
}, /*#__PURE__*/react_default.a.createElement("i", {
|
||
className: "iconfont icon-shanchudiao font18 c-white"
|
||
})), user.showPopLogin && /*#__PURE__*/react_default.a.createElement(LoginPanel, {
|
||
is_main_site: is_main_site,
|
||
is_local: is_local
|
||
}));
|
||
};
|
||
/* harmony default export */ var PopLogin = (Object(umiExports["a" /* connect */])(function (_ref2) {
|
||
var user = _ref2.user,
|
||
loading = _ref2.loading,
|
||
globalSetting = _ref2.globalSetting;
|
||
return {
|
||
user: user,
|
||
globalSetting: globalSetting,
|
||
loading: loading.models.index
|
||
};
|
||
})(PopLogin_LoginPopComponents));
|
||
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
||
var moment = __webpack_require__("wd/R");
|
||
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
||
|
||
// EXTERNAL MODULE: ./src/components/Header/index.tsx + 8 modules
|
||
var Header = __webpack_require__("ruvs");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/js-base64/base64.js
|
||
var base64 = __webpack_require__("J66h");
|
||
|
||
// CONCATENATED MODULE: ./src/layouts/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function layouts_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ layouts_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var layouts_SimpleLayouts = function SimpleLayouts(_ref) {
|
||
var loading = _ref.loading,
|
||
globalSetting = _ref.globalSetting,
|
||
children = _ref.children,
|
||
user = _ref.user,
|
||
dispatch = _ref.dispatch,
|
||
location = _ref.location,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["loading", "globalSetting", "children", "user", "dispatch", "location"]);
|
||
var loca = Object(react_router["k" /* useLocation */])();
|
||
var payload = Object(Header["b" /* getCourseParam */])();
|
||
var globalLoading = globalSetting.globalLoading;
|
||
var getData = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/layouts_regeneratorRuntime().mark(function _callee() {
|
||
var _res;
|
||
var res, subject_id, path;
|
||
return layouts_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
if (!(location === null || location === void 0 ? void 0 : location.search)) {
|
||
_context.next = 9;
|
||
break;
|
||
}
|
||
path = location.pathname.split("/");
|
||
if (path.includes("paths")) {
|
||
subject_id = path[2];
|
||
}
|
||
;
|
||
_context.next = 6;
|
||
return dispatch({
|
||
type: 'user/getUserInfo',
|
||
payload: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, payload), location.query), {}, {
|
||
subject_id: subject_id,
|
||
websiteName: 'educoder'
|
||
})
|
||
});
|
||
case 6:
|
||
res = _context.sent;
|
||
_context.next = 12;
|
||
break;
|
||
case 9:
|
||
_context.next = 11;
|
||
return dispatch({
|
||
type: 'user/getUserInfo',
|
||
payload: Object(objectSpread2["a" /* default */])({}, payload)
|
||
});
|
||
case 11:
|
||
res = _context.sent;
|
||
case 12:
|
||
if (res) {
|
||
InitSetting();
|
||
}
|
||
if (((_res = res) === null || _res === void 0 ? void 0 : _res.username) && loca.pathname === '/login') {
|
||
location.href = "/";
|
||
}
|
||
case 14:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function getData() {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
Object(react["useEffect"])(function () {
|
||
var _user$userInfo;
|
||
if (user === null || user === void 0 ? void 0 : (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.profile_completed) {
|
||
getEducoderUserInfo();
|
||
}
|
||
}, [user === null || user === void 0 ? void 0 : user.userInfo]);
|
||
var getEducoderUserInfo = /*#__PURE__*/function () {
|
||
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/layouts_regeneratorRuntime().mark(function _callee2() {
|
||
var _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7;
|
||
var res;
|
||
return layouts_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
Object(util["c" /* delCookie */])("logintrustie");
|
||
_context2.next = 3;
|
||
return dispatch({
|
||
type: "user/getEducoderUserInfo",
|
||
payload: {
|
||
websiteName: "gitlink",
|
||
openkey: base64["Base64"].encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e"),
|
||
sign: "cdf0f69b4d5b4293f7914cc1f1f31742",
|
||
login: user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login,
|
||
lastname: user === null || user === void 0 ? void 0 : (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.real_name,
|
||
nickname: user === null || user === void 0 ? void 0 : (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.nickname,
|
||
mail: user === null || user === void 0 ? void 0 : (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.email,
|
||
school_name: user === null || user === void 0 ? void 0 : (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.custom_department,
|
||
phone: user === null || user === void 0 ? void 0 : (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.phone
|
||
}
|
||
});
|
||
case 3:
|
||
res = _context2.sent;
|
||
if (res && res.token) {
|
||
Object(util["n" /* setCookie */])("logintrustie", res.token, 1);
|
||
}
|
||
case 5:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
return function getEducoderUserInfo() {
|
||
return _ref3.apply(this, arguments);
|
||
};
|
||
}();
|
||
Object(react["useEffect"])(function () {
|
||
getData();
|
||
}, [location.pathname]);
|
||
var InitSetting = /*#__PURE__*/function () {
|
||
var _ref4 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/layouts_regeneratorRuntime().mark(function _callee3() {
|
||
var domain, str;
|
||
return layouts_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
||
while (1) switch (_context3.prev = _context3.next) {
|
||
case 0:
|
||
if (location.pathname.indexOf("classrooms") > -1 && location.pathname.indexOf("detail") === -1) {} else {
|
||
document.body.scrollIntoView();
|
||
}
|
||
// 教育部考试系统
|
||
if (!(location.pathname.indexOf("/classrooms/4RW9CYHY") > -1 && document.domain !== "localhost" && document.domain !== "kepukehuan.educoder.net")) {
|
||
_context3.next = 4;
|
||
break;
|
||
}
|
||
window.location.href = "https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise";
|
||
return _context3.abrupt("return");
|
||
case 4:
|
||
dispatch({
|
||
type: 'globalSetting/query',
|
||
payload: {}
|
||
});
|
||
dispatch({
|
||
type: "globalSetting/setGlobalLoading",
|
||
payload: {
|
||
show: false,
|
||
text: ""
|
||
}
|
||
});
|
||
if (!(window.location.href === 'https://jetcoder.educoder.net' || window.location.href === 'https://jetcoder.educoder.net/')) {
|
||
_context3.next = 9;
|
||
break;
|
||
}
|
||
window.location.href = 'https://www.educoder.net/problems';
|
||
return _context3.abrupt("return");
|
||
case 9:
|
||
if (!(location.pathname === '/admins' || location.pathname === '/sidekiq')) {
|
||
_context3.next = 21;
|
||
break;
|
||
}
|
||
domain = document.domain;
|
||
if (!(domain.indexOf("educoder.net") > -1)) {
|
||
_context3.next = 21;
|
||
break;
|
||
}
|
||
_context3.t0 = domain;
|
||
_context3.next = _context3.t0 === "www.educoder.net" ? 15 : _context3.t0 === "educoder.net" ? 15 : 17;
|
||
break;
|
||
case 15:
|
||
window.location.href = "https://data.educoder.net".concat(location.pathname);
|
||
return _context3.abrupt("break", 21);
|
||
case 17:
|
||
str = document.domain.split(".");
|
||
str[0] = str[0] + "-data";
|
||
window.location.href = "https://".concat(str.join(".")).concat(location.pathname);
|
||
return _context3.abrupt("break", 21);
|
||
case 21:
|
||
modal["a" /* default */].destroyAll();
|
||
Object(umiExports["e" /* setLocale */])('zh-CN', false);
|
||
case 23:
|
||
case "end":
|
||
return _context3.stop();
|
||
}
|
||
}, _callee3);
|
||
}));
|
||
return function InitSetting() {
|
||
return _ref4.apply(this, arguments);
|
||
};
|
||
}();
|
||
Object(react["useEffect"])(function () {
|
||
if (globalSetting.updateData.system_update) {
|
||
// if(new Date().getTime() < new Date(globalSetting.updateData.end_time).getTime())
|
||
if (!localStorage.updateEndTime) {
|
||
if (new Date().getTime() < new Date(globalSetting.updateData.end_time).getTime()) modal["a" /* default */].info({
|
||
title: globalSetting.updateData.subject,
|
||
content: globalSetting.updateData.system_score,
|
||
onOk: function onOk() {
|
||
localStorage.updateEndTime = globalSetting.updateData.end_time;
|
||
}
|
||
});
|
||
}
|
||
} else {
|
||
localStorage.removeItem("updateEndTime");
|
||
}
|
||
}, [globalSetting.updateData.system_update]);
|
||
var toTrackEvent = function toTrackEvent() {
|
||
var _user$userInfo8;
|
||
var trackUserTime = localStorage.trackUserTime;
|
||
var trackUser = localStorage.trackUser;
|
||
if (trackUserTime && moment_default()(trackUserTime).isSame(moment_default()().startOf('day'), 'd') && trackUser == ((_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.login)) {} else {
|
||
var _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12;
|
||
localStorage.trackUserTime = new Date();
|
||
localStorage.trackUser = (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.login;
|
||
var text = '';
|
||
switch (user.userInfo.role) {
|
||
case 1:
|
||
text = '超管';
|
||
break;
|
||
case 2:
|
||
text = '运营';
|
||
break;
|
||
case 5:
|
||
text = '认证教师';
|
||
break;
|
||
case 12:
|
||
text = '未认证教师';
|
||
break;
|
||
case 15:
|
||
text = '学生';
|
||
break;
|
||
}
|
||
if (((_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.identity) !== 'student' && ((_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.identity) !== 'teacher') {
|
||
text = '专业人士';
|
||
}
|
||
if ((_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.user_school) {
|
||
var _user$userInfo13, _user$userInfo14, _user$userInfo15;
|
||
Object(util["r" /* trackEvent */])(['学校活跃用户', (_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.user_school]);
|
||
Object(util["r" /* trackEvent */])(['用户访问明细', (_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.login, (_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.user_school]);
|
||
}
|
||
Object(util["r" /* trackEvent */])(['平台PC端', '总活跃用户数']);
|
||
Object(util["r" /* trackEvent */])(['平台PC端', text]);
|
||
}
|
||
};
|
||
return /*#__PURE__*/react_default.a.createElement(config_provider["a" /* default */], {
|
||
locale: zh_CN["default"]
|
||
}, /*#__PURE__*/react_default.a.createElement(PopLogin, null), /*#__PURE__*/react_default.a.createElement(spin["a" /* default */], {
|
||
size: "large",
|
||
spinning: globalLoading.show,
|
||
tip: globalLoading.text,
|
||
className: "ant-spin-nested-loading-black"
|
||
}, children));
|
||
};
|
||
/* harmony default export */ var layouts = __webpack_exports__["default"] = (Object(umiExports["a" /* connect */])(function (_ref5) {
|
||
var loading = _ref5.loading,
|
||
globalSetting = _ref5.globalSetting,
|
||
user = _ref5.user;
|
||
return {
|
||
loading: loading,
|
||
globalSetting: globalSetting,
|
||
user: user
|
||
};
|
||
})(layouts_SimpleLayouts));
|
||
|
||
/***/ }),
|
||
|
||
/***/ "/GNS":
|
||
/*!*********************************************!*\
|
||
!*** ./src/assets/images/icons/search1.png ***!
|
||
\*********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/search1.c4136dd4.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "/nL+":
|
||
/*!***************************************************************************!*\
|
||
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg ***!
|
||
\***************************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/qq.ee284be0.svg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "0XgM":
|
||
/*!******************************************************!*\
|
||
!*** ./node_modules/antd/es/layout/style/index.less ***!
|
||
\******************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
|
||
/***/ }),
|
||
|
||
/***/ "1Sn+":
|
||
/*!*************************************************!*\
|
||
!*** ./src/components/Header/search-input.less ***!
|
||
\*************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
|
||
/***/ }),
|
||
|
||
/***/ "1TMG":
|
||
/*!********************************************************************!*\
|
||
!*** ./src/components/User/PopLoginRegister/PopLogin.less?modules ***!
|
||
\********************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"popLogin":"popLogin___3dT1f","logincloseIcon":"logincloseIcon___2rDJD"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "1ZF9":
|
||
/*!*****************************************!*\
|
||
!*** ./src/assets/images/Authorize.png ***!
|
||
\*****************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/Authorize.cc9c212f.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "3wET":
|
||
/*!****************************************************!*\
|
||
!*** ./src/assets/images/cert/shimingrenzheng.png ***!
|
||
\****************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXw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7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "4R62":
|
||
/*!***************************************************************************************!*\
|
||
!*** ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules ***!
|
||
\***************************************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"login-panel-wrapper2":"login-panel-wrapper2___togLZ","ant-form-item-explain":"ant-form-item-explain___ThRBE","ant-form-item":"ant-form-item___3IV6B","ant-form-item-with-help":"ant-form-item-with-help___tz-ky","login-panel-right-wrp":"login-panel-right-wrp___2GQ8_","res-error-values":"res-error-values___2aGnb","driver":"driver___1T7Hi","verticalLine":"verticalLine___84r8I","operate":"operate___3Bz_1","thirdParty":"thirdParty___1PoIv","tabs":"tabs___2wmM-"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "4i/N":
|
||
/*!******************************************************************************!*\
|
||
!*** ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules ***!
|
||
\******************************************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/components/AntdIcon.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||
var objectSpread2 = __webpack_require__("VTBJ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js
|
||
// This icon file is generated automatically.
|
||
var CloseOutlined_CloseOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, "name": "close", "theme": "outlined" };
|
||
/* harmony default export */ var asn_CloseOutlined = (CloseOutlined_CloseOutlined);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 4 modules
|
||
var AntdIcon = __webpack_require__("6VBw");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js
|
||
|
||
// GENERATE BY ./scripts/generate.ts
|
||
// DON NOT EDIT IT MANUALLY
|
||
|
||
|
||
|
||
var icons_CloseOutlined_CloseOutlined = function CloseOutlined(props, ref) {
|
||
return /*#__PURE__*/react["createElement"](AntdIcon["a" /* default */], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
|
||
ref: ref,
|
||
icon: asn_CloseOutlined
|
||
}));
|
||
};
|
||
var RefIcon = /*#__PURE__*/react["forwardRef"](icons_CloseOutlined_CloseOutlined);
|
||
if (false) {}
|
||
/* harmony default export */ var icons_CloseOutlined = __webpack_exports__["a"] = (RefIcon);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "4qgm":
|
||
/*!*********************************************!*\
|
||
!*** ./src/assets/images/icons/tx-live.png ***!
|
||
\*********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyY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MKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "4u4S":
|
||
/*!*********************************************!*\
|
||
!*** ./src/assets/images/icons/groups2.png ***!
|
||
\*********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3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/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "5D2P":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/icons/done3.png ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbM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TMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "6Fuo":
|
||
/*!******************************************************************!*\
|
||
!*** ./src/components/Header/components/Join/index.less?modules ***!
|
||
\******************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"flex_box_center":"flex_box_center___3p8A0","flex_space_between":"flex_space_between___2wMwo","flex_box_vertical_center":"flex_box_vertical_center___2fKhV","flex_box_center_end":"flex_box_center_end___27Yk8","flex_box_column":"flex_box_column___3Khbo","dropdownFlex":"dropdownFlex___A4YIX","joinModal":"joinModal___VuDUK","rightMenu":"rightMenu___20Eel","joinMenu":"joinMenu___2blJt","joinBoard":"joinBoard___2XUXK","joinCol":"joinCol___3o5gp"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "6VBw":
|
||
/*!******************************************************************************!*\
|
||
!*** ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 4 modules ***!
|
||
\******************************************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/colors/dist/index.esm.js (<- Module is referenced from these modules with unsupported syntax: ./node_modules/@ant-design/icons/lib/utils.js (referenced with cjs require)) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.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/lodash/camelCase.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/dynamicCSS.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) */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||
var objectSpread2 = __webpack_require__("VTBJ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||
var slicedToArray = __webpack_require__("ODXe");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||
var defineProperty = __webpack_require__("rePB");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
var react_default = /*#__PURE__*/__webpack_require__.n(react);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||
var classnames = __webpack_require__("TSYQ");
|
||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/Context.js
|
||
|
||
var IconContext = /*#__PURE__*/Object(react["createContext"])({});
|
||
/* harmony default export */ var Context = (IconContext);
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
||
var esm_typeof = __webpack_require__("U8pU");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/colors/dist/index.esm.js + 4 modules
|
||
var index_esm = __webpack_require__("AJpP");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/warning.js
|
||
var warning = __webpack_require__("Kwbf");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/dynamicCSS.js
|
||
var dynamicCSS = __webpack_require__("BU3w");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/lodash/camelCase.js
|
||
var camelCase = __webpack_require__("u6S6");
|
||
var camelCase_default = /*#__PURE__*/__webpack_require__.n(camelCase);
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/utils.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function utils_warning(valid, message) {
|
||
Object(warning["a" /* default */])(valid, "[@ant-design/icons] ".concat(message));
|
||
}
|
||
function isIconDefinition(target) {
|
||
return Object(esm_typeof["a" /* default */])(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (Object(esm_typeof["a" /* default */])(target.icon) === 'object' || typeof target.icon === 'function');
|
||
}
|
||
function normalizeAttrs() {
|
||
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||
return Object.keys(attrs).reduce(function (acc, key) {
|
||
var val = attrs[key];
|
||
switch (key) {
|
||
case 'class':
|
||
acc.className = val;
|
||
delete acc.class;
|
||
break;
|
||
default:
|
||
delete acc[key];
|
||
acc[camelCase_default()(key)] = val;
|
||
}
|
||
return acc;
|
||
}, {});
|
||
}
|
||
function generate(node, key, rootProps) {
|
||
if (!rootProps) {
|
||
return /*#__PURE__*/react_default.a.createElement(node.tag, Object(objectSpread2["a" /* default */])({
|
||
key: key
|
||
}, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
|
||
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
||
}));
|
||
}
|
||
return /*#__PURE__*/react_default.a.createElement(node.tag, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
||
key: key
|
||
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
|
||
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
||
}));
|
||
}
|
||
function getSecondaryColor(primaryColor) {
|
||
// choose the second color
|
||
return Object(index_esm["generate"])(primaryColor)[0];
|
||
}
|
||
function normalizeTwoToneColors(twoToneColor) {
|
||
if (!twoToneColor) {
|
||
return [];
|
||
}
|
||
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
||
}
|
||
// These props make sure that the SVG behaviours like general text.
|
||
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
||
var svgBaseProps = {
|
||
width: '1em',
|
||
height: '1em',
|
||
fill: 'currentColor',
|
||
'aria-hidden': 'true',
|
||
focusable: 'false'
|
||
};
|
||
var iconStyles = "\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
||
var utils_useInsertStyles = function useInsertStyles() {
|
||
var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;
|
||
var _useContext = Object(react["useContext"])(Context),
|
||
csp = _useContext.csp;
|
||
Object(react["useEffect"])(function () {
|
||
Object(dynamicCSS["b" /* updateCSS */])(styleStr, '@ant-design-icons', {
|
||
prepend: true,
|
||
csp: csp
|
||
});
|
||
}, []);
|
||
};
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/IconBase.js
|
||
|
||
|
||
var _excluded = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
||
|
||
var twoToneColorPalette = {
|
||
primaryColor: '#333',
|
||
secondaryColor: '#E6E6E6',
|
||
calculated: false
|
||
};
|
||
function setTwoToneColors(_ref) {
|
||
var primaryColor = _ref.primaryColor,
|
||
secondaryColor = _ref.secondaryColor;
|
||
twoToneColorPalette.primaryColor = primaryColor;
|
||
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
||
twoToneColorPalette.calculated = !!secondaryColor;
|
||
}
|
||
function getTwoToneColors() {
|
||
return Object(objectSpread2["a" /* default */])({}, twoToneColorPalette);
|
||
}
|
||
var IconBase_IconBase = function IconBase(props) {
|
||
var icon = props.icon,
|
||
className = props.className,
|
||
onClick = props.onClick,
|
||
style = props.style,
|
||
primaryColor = props.primaryColor,
|
||
secondaryColor = props.secondaryColor,
|
||
restProps = Object(objectWithoutProperties["a" /* default */])(props, _excluded);
|
||
var colors = twoToneColorPalette;
|
||
if (primaryColor) {
|
||
colors = {
|
||
primaryColor: primaryColor,
|
||
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
||
};
|
||
}
|
||
utils_useInsertStyles();
|
||
utils_warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
||
if (!isIconDefinition(icon)) {
|
||
return null;
|
||
}
|
||
var target = icon;
|
||
if (target && typeof target.icon === 'function') {
|
||
target = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, target), {}, {
|
||
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
||
});
|
||
}
|
||
return generate(target.icon, "svg-".concat(target.name), Object(objectSpread2["a" /* default */])({
|
||
className: className,
|
||
onClick: onClick,
|
||
style: style,
|
||
'data-icon': target.name,
|
||
width: '1em',
|
||
height: '1em',
|
||
fill: 'currentColor',
|
||
'aria-hidden': 'true'
|
||
}, restProps));
|
||
};
|
||
IconBase_IconBase.displayName = 'IconReact';
|
||
IconBase_IconBase.getTwoToneColors = getTwoToneColors;
|
||
IconBase_IconBase.setTwoToneColors = setTwoToneColors;
|
||
/* harmony default export */ var components_IconBase = (IconBase_IconBase);
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js
|
||
|
||
|
||
|
||
function setTwoToneColor(twoToneColor) {
|
||
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
|
||
_normalizeTwoToneColo2 = Object(slicedToArray["a" /* default */])(_normalizeTwoToneColo, 2),
|
||
primaryColor = _normalizeTwoToneColo2[0],
|
||
secondaryColor = _normalizeTwoToneColo2[1];
|
||
return components_IconBase.setTwoToneColors({
|
||
primaryColor: primaryColor,
|
||
secondaryColor: secondaryColor
|
||
});
|
||
}
|
||
function getTwoToneColor() {
|
||
var colors = components_IconBase.getTwoToneColors();
|
||
if (!colors.calculated) {
|
||
return colors.primaryColor;
|
||
}
|
||
return [colors.primaryColor, colors.secondaryColor];
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js
|
||
|
||
|
||
|
||
|
||
var AntdIcon_excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// Initial setting
|
||
// should move it to antd main repo?
|
||
setTwoToneColor('#1890ff');
|
||
var Icon = /*#__PURE__*/react["forwardRef"](function (props, ref) {
|
||
var className = props.className,
|
||
icon = props.icon,
|
||
spin = props.spin,
|
||
rotate = props.rotate,
|
||
tabIndex = props.tabIndex,
|
||
onClick = props.onClick,
|
||
twoToneColor = props.twoToneColor,
|
||
restProps = Object(objectWithoutProperties["a" /* default */])(props, AntdIcon_excluded);
|
||
var _React$useContext = react["useContext"](Context),
|
||
_React$useContext$pre = _React$useContext.prefixCls,
|
||
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
|
||
rootClassName = _React$useContext.rootClassName;
|
||
var classString = classnames_default()(rootClassName, prefixCls, Object(defineProperty["a" /* default */])(Object(defineProperty["a" /* default */])({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), className);
|
||
var iconTabIndex = tabIndex;
|
||
if (iconTabIndex === undefined && onClick) {
|
||
iconTabIndex = -1;
|
||
}
|
||
var svgStyle = rotate ? {
|
||
msTransform: "rotate(".concat(rotate, "deg)"),
|
||
transform: "rotate(".concat(rotate, "deg)")
|
||
} : undefined;
|
||
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
|
||
_normalizeTwoToneColo2 = Object(slicedToArray["a" /* default */])(_normalizeTwoToneColo, 2),
|
||
primaryColor = _normalizeTwoToneColo2[0],
|
||
secondaryColor = _normalizeTwoToneColo2[1];
|
||
return /*#__PURE__*/react["createElement"]("span", Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
||
role: "img",
|
||
"aria-label": icon.name
|
||
}, restProps), {}, {
|
||
ref: ref,
|
||
tabIndex: iconTabIndex,
|
||
onClick: onClick,
|
||
className: classString
|
||
}), /*#__PURE__*/react["createElement"](components_IconBase, {
|
||
icon: icon,
|
||
primaryColor: primaryColor,
|
||
secondaryColor: secondaryColor,
|
||
style: svgStyle
|
||
}));
|
||
});
|
||
Icon.displayName = 'AntdIcon';
|
||
Icon.getTwoToneColor = getTwoToneColor;
|
||
Icon.setTwoToneColor = setTwoToneColor;
|
||
/* harmony default export */ var AntdIcon = __webpack_exports__["a"] = (Icon);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "6cGi":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/rc-util/es/hooks/useMergedState.js ***!
|
||
\*********************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useMergedState; });
|
||
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "ODXe");
|
||
/* harmony import */ var _useEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useEvent */ "mBDr");
|
||
/* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useLayoutEffect */ "TNol");
|
||
/* harmony import */ var _useState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useState */ "dm2S");
|
||
|
||
|
||
|
||
|
||
/** We only think `undefined` is empty */
|
||
function hasValue(value) {
|
||
return value !== undefined;
|
||
}
|
||
|
||
/**
|
||
* Similar to `useState` but will use props value if provided.
|
||
* Note that internal use rc-util `useState` hook.
|
||
*/
|
||
function useMergedState(defaultStateValue, option) {
|
||
var _ref = option || {},
|
||
defaultValue = _ref.defaultValue,
|
||
value = _ref.value,
|
||
onChange = _ref.onChange,
|
||
postState = _ref.postState;
|
||
|
||
// ======================= Init =======================
|
||
var _useState = Object(_useState__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(function () {
|
||
if (hasValue(value)) {
|
||
return value;
|
||
} else if (hasValue(defaultValue)) {
|
||
return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
|
||
} else {
|
||
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
||
}
|
||
}),
|
||
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_useState, 2),
|
||
innerValue = _useState2[0],
|
||
setInnerValue = _useState2[1];
|
||
var mergedValue = value !== undefined ? value : innerValue;
|
||
var postMergedValue = postState ? postState(mergedValue) : mergedValue;
|
||
|
||
// ====================== Change ======================
|
||
var onChangeFn = Object(_useEvent__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(onChange);
|
||
var _useState3 = Object(_useState__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])([mergedValue]),
|
||
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_useState3, 2),
|
||
prevValue = _useState4[0],
|
||
setPrevValue = _useState4[1];
|
||
Object(_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__[/* useLayoutUpdateEffect */ "b"])(function () {
|
||
var prev = prevValue[0];
|
||
if (innerValue !== prev) {
|
||
onChangeFn(innerValue, prev);
|
||
}
|
||
}, [prevValue]);
|
||
|
||
// Sync value back to `undefined` when it from control to un-control
|
||
Object(_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__[/* useLayoutUpdateEffect */ "b"])(function () {
|
||
if (!hasValue(value)) {
|
||
setInnerValue(value);
|
||
}
|
||
}, [value]);
|
||
|
||
// ====================== Update ======================
|
||
var triggerChange = Object(_useEvent__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(function (updater, ignoreDestroy) {
|
||
setInnerValue(updater, ignoreDestroy);
|
||
setPrevValue([mergedValue], ignoreDestroy);
|
||
});
|
||
return [postMergedValue, triggerChange];
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "7ZXX":
|
||
/*!**********************************************!*\
|
||
!*** ./src/assets/images/classrooms/err.png ***!
|
||
\**********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/err.6e7c5817.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "7v3h":
|
||
/*!**************************************!*\
|
||
!*** ./src/assets/images/empty2.png ***!
|
||
\**************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/empty2.dd73f390.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "8/bI":
|
||
/*!*************************************!*\
|
||
!*** ./src/assets/images/empty.png ***!
|
||
\*************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/empty.8918e228.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "9ama":
|
||
/*!****************************************************!*\
|
||
!*** ./node_modules/antd/es/tabs/style/index.less ***!
|
||
\****************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
|
||
/***/ }),
|
||
|
||
/***/ "A/g1":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/icons/done1.png ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIy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oqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Cs+z":
|
||
/*!******************************************!*\
|
||
!*** ./src/components/HomeModal/jqr.png ***!
|
||
\******************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/jqr.b801d45b.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Ct/S":
|
||
/*!*****************************************************!*\
|
||
!*** ./src/components/AuthModal/index.less?modules ***!
|
||
\*****************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"tilte":"tilte___1Tz7i","flexRow":"flexRow___3w9_D","flexColumn":"flexColumn___2HzC_","footerWrap":"footerWrap___12F5M","img":"img___3ED9Z","content":"content___rqPDY","modalContent":"modalContent___2h4ne"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "E7E6":
|
||
/*!********************************************!*\
|
||
!*** ./src/assets/images/icons/search.png ***!
|
||
\********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEA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qbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "FOrL":
|
||
/*!********************************************!*\
|
||
!*** ./src/assets/images/icons/nodata.png ***!
|
||
\********************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCin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0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "FPkq":
|
||
/*!**************************************!*\
|
||
!*** ./src/assets/images/qrCode.png ***!
|
||
\**************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/qrCode.dd0fe9b2.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "GABl":
|
||
/*!********************************************!*\
|
||
!*** ./src/assets/images/icons/chrome.png ***!
|
||
\********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNt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),
|
||
|
||
/***/ "HpTS":
|
||
/*!********************************************************!*\
|
||
!*** ./src/assets/images/classrooms/small_program.png ***!
|
||
\********************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/small_program.f74069ec.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "IxGP":
|
||
/*!***************************************************************************************!*\
|
||
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules ***!
|
||
\***************************************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"other-login":"other-login___re0Nc","btn-link":"btn-link___1uZTy","wechat-qrcode":"wechat-qrcode___14L6l","driver":"driver___1fhl_"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "J66h":
|
||
/*!******************************************!*\
|
||
!*** ./node_modules/js-base64/base64.js ***!
|
||
\******************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: Base64 */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
|
||
* base64.js
|
||
*
|
||
* Licensed under the BSD 3-Clause License.
|
||
* http://opensource.org/licenses/BSD-3-Clause
|
||
*
|
||
* References:
|
||
* http://en.wikipedia.org/wiki/Base64
|
||
*/
|
||
;(function (global, factory) {
|
||
true
|
||
? module.exports = factory(global)
|
||
: undefined
|
||
}((
|
||
typeof self !== 'undefined' ? self
|
||
: typeof window !== 'undefined' ? window
|
||
: typeof global !== 'undefined' ? global
|
||
: this
|
||
), function(global) {
|
||
'use strict';
|
||
// existing version for noConflict()
|
||
global = global || {};
|
||
var _Base64 = global.Base64;
|
||
var version = "2.6.4";
|
||
// constants
|
||
var b64chars
|
||
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||
var b64tab = function(bin) {
|
||
var t = {};
|
||
for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
|
||
return t;
|
||
}(b64chars);
|
||
var fromCharCode = String.fromCharCode;
|
||
// encoder stuff
|
||
var cb_utob = function(c) {
|
||
if (c.length < 2) {
|
||
var cc = c.charCodeAt(0);
|
||
return cc < 0x80 ? c
|
||
: cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
|
||
+ fromCharCode(0x80 | (cc & 0x3f)))
|
||
: (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
|
||
+ fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
|
||
+ fromCharCode(0x80 | ( cc & 0x3f)));
|
||
} else {
|
||
var cc = 0x10000
|
||
+ (c.charCodeAt(0) - 0xD800) * 0x400
|
||
+ (c.charCodeAt(1) - 0xDC00);
|
||
return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
|
||
+ fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
|
||
+ fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
|
||
+ fromCharCode(0x80 | ( cc & 0x3f)));
|
||
}
|
||
};
|
||
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
|
||
var utob = function(u) {
|
||
return u.replace(re_utob, cb_utob);
|
||
};
|
||
var cb_encode = function(ccc) {
|
||
var padlen = [0, 2, 1][ccc.length % 3],
|
||
ord = ccc.charCodeAt(0) << 16
|
||
| ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
|
||
| ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
|
||
chars = [
|
||
b64chars.charAt( ord >>> 18),
|
||
b64chars.charAt((ord >>> 12) & 63),
|
||
padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
|
||
padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
|
||
];
|
||
return chars.join('');
|
||
};
|
||
var btoa = global.btoa && typeof global.btoa == 'function'
|
||
? function(b){ return global.btoa(b) } : function(b) {
|
||
if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
|
||
'The string contains invalid characters.'
|
||
);
|
||
return b.replace(/[\s\S]{1,3}/g, cb_encode);
|
||
};
|
||
var _encode = function(u) {
|
||
return btoa(utob(String(u)));
|
||
};
|
||
var mkUriSafe = function (b64) {
|
||
return b64.replace(/[+\/]/g, function(m0) {
|
||
return m0 == '+' ? '-' : '_';
|
||
}).replace(/=/g, '');
|
||
};
|
||
var encode = function(u, urisafe) {
|
||
return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
|
||
};
|
||
var encodeURI = function(u) { return encode(u, true) };
|
||
var fromUint8Array;
|
||
if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
|
||
// return btoa(fromCharCode.apply(null, a));
|
||
var b64 = '';
|
||
for (var i = 0, l = a.length; i < l; i += 3) {
|
||
var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
|
||
var ord = a0 << 16 | a1 << 8 | a2;
|
||
b64 += b64chars.charAt( ord >>> 18)
|
||
+ b64chars.charAt((ord >>> 12) & 63)
|
||
+ ( typeof a1 != 'undefined'
|
||
? b64chars.charAt((ord >>> 6) & 63) : '=')
|
||
+ ( typeof a2 != 'undefined'
|
||
? b64chars.charAt( ord & 63) : '=');
|
||
}
|
||
return urisafe ? mkUriSafe(b64) : b64;
|
||
};
|
||
// decoder stuff
|
||
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
||
var cb_btou = function(cccc) {
|
||
switch(cccc.length) {
|
||
case 4:
|
||
var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
|
||
| ((0x3f & cccc.charCodeAt(1)) << 12)
|
||
| ((0x3f & cccc.charCodeAt(2)) << 6)
|
||
| (0x3f & cccc.charCodeAt(3)),
|
||
offset = cp - 0x10000;
|
||
return (fromCharCode((offset >>> 10) + 0xD800)
|
||
+ fromCharCode((offset & 0x3FF) + 0xDC00));
|
||
case 3:
|
||
return fromCharCode(
|
||
((0x0f & cccc.charCodeAt(0)) << 12)
|
||
| ((0x3f & cccc.charCodeAt(1)) << 6)
|
||
| (0x3f & cccc.charCodeAt(2))
|
||
);
|
||
default:
|
||
return fromCharCode(
|
||
((0x1f & cccc.charCodeAt(0)) << 6)
|
||
| (0x3f & cccc.charCodeAt(1))
|
||
);
|
||
}
|
||
};
|
||
var btou = function(b) {
|
||
return b.replace(re_btou, cb_btou);
|
||
};
|
||
var cb_decode = function(cccc) {
|
||
var len = cccc.length,
|
||
padlen = len % 4,
|
||
n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
|
||
| (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
|
||
| (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
|
||
| (len > 3 ? b64tab[cccc.charAt(3)] : 0),
|
||
chars = [
|
||
fromCharCode( n >>> 16),
|
||
fromCharCode((n >>> 8) & 0xff),
|
||
fromCharCode( n & 0xff)
|
||
];
|
||
chars.length -= [0, 0, 2, 1][padlen];
|
||
return chars.join('');
|
||
};
|
||
var _atob = global.atob && typeof global.atob == 'function'
|
||
? function(a){ return global.atob(a) } : function(a){
|
||
return a.replace(/\S{1,4}/g, cb_decode);
|
||
};
|
||
var atob = function(a) {
|
||
return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
|
||
};
|
||
var _decode = function(a) { return btou(_atob(a)) };
|
||
var _fromURI = function(a) {
|
||
return String(a).replace(/[-_]/g, function(m0) {
|
||
return m0 == '-' ? '+' : '/'
|
||
}).replace(/[^A-Za-z0-9\+\/]/g, '');
|
||
};
|
||
var decode = function(a){
|
||
return _decode(_fromURI(a));
|
||
};
|
||
var toUint8Array;
|
||
if (global.Uint8Array) toUint8Array = function(a) {
|
||
return Uint8Array.from(atob(_fromURI(a)), function(c) {
|
||
return c.charCodeAt(0);
|
||
});
|
||
};
|
||
var noConflict = function() {
|
||
var Base64 = global.Base64;
|
||
global.Base64 = _Base64;
|
||
return Base64;
|
||
};
|
||
// export Base64
|
||
global.Base64 = {
|
||
VERSION: version,
|
||
atob: atob,
|
||
btoa: btoa,
|
||
fromBase64: decode,
|
||
toBase64: encode,
|
||
utob: utob,
|
||
encode: encode,
|
||
encodeURI: encodeURI,
|
||
btou: btou,
|
||
decode: decode,
|
||
noConflict: noConflict,
|
||
fromUint8Array: fromUint8Array,
|
||
toUint8Array: toUint8Array
|
||
};
|
||
// if ES5 is available, make Base64.extendString() available
|
||
if (typeof Object.defineProperty === 'function') {
|
||
var noEnum = function(v){
|
||
return {value:v,enumerable:false,writable:true,configurable:true};
|
||
};
|
||
global.Base64.extendString = function () {
|
||
Object.defineProperty(
|
||
String.prototype, 'fromBase64', noEnum(function () {
|
||
return decode(this)
|
||
}));
|
||
Object.defineProperty(
|
||
String.prototype, 'toBase64', noEnum(function (urisafe) {
|
||
return encode(this, urisafe)
|
||
}));
|
||
Object.defineProperty(
|
||
String.prototype, 'toBase64URI', noEnum(function () {
|
||
return encode(this, true)
|
||
}));
|
||
};
|
||
}
|
||
//
|
||
// export Base64 to the namespace
|
||
//
|
||
if (global['Meteor']) { // Meteor.js
|
||
Base64 = global.Base64;
|
||
}
|
||
// module.exports and AMD are mutually exclusive.
|
||
// module.exports has precedence.
|
||
if ( true && module.exports) {
|
||
module.exports.Base64 = global.Base64;
|
||
}
|
||
else if (true) {
|
||
// AMD. Register as an anonymous module.
|
||
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
||
}
|
||
// that's it!
|
||
return {Base64: global.Base64}
|
||
}));
|
||
|
||
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "yLpj")))
|
||
|
||
/***/ }),
|
||
|
||
/***/ "JWDV":
|
||
/*!****************************************************!*\
|
||
!*** ./src/assets/images/icons/charpter-white.svg ***!
|
||
\****************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/charpter-white.5fa14f93.svg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "JeFH":
|
||
/*!********************************************!*\
|
||
!*** ./src/assets/images/icons/blibli.png ***!
|
||
\********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JK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CSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Jq4h":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/user/qrcode.png ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/qrcode.54870d9b.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "NLgs":
|
||
/*!***********************************************!*\
|
||
!*** ./src/utils/verifyLogin.tsx + 2 modules ***!
|
||
\***********************************************/
|
||
/*! exports provided: handleVerify, handleVerifyLogin, handleProfleCompletedModal, handleProfessionalCertificationModal, handleCanShixunAddModal, AuthorizeModel, ShixunStatusModel */
|
||
/*! exports used: handleCanShixunAddModal, handleVerify, handleVerifyLogin */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/components/AntdIcon.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.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 ./src/.umi-production/core/umiExports.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
||
/*! 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/modal/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/assets/images/403Qrcode.png (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/assets/images/Authorize.png (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/assets/images/studnetqun.png (<- Module is not an ECMAScript module) */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// EXPORTS
|
||
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ handleVerify; });
|
||
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ verifyLogin_handleVerifyLogin; });
|
||
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ verifyLogin_handleCanShixunAddModal; });
|
||
|
||
// UNUSED EXPORTS: handleProfleCompletedModal, handleProfessionalCertificationModal, AuthorizeModel, ShixunStatusModel
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js
|
||
var style = __webpack_require__("miYZ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
|
||
var message = __webpack_require__("tsqr");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
||
var asyncToGenerator = __webpack_require__("9og8");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js
|
||
var modal_style = __webpack_require__("2qtc");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 14 modules
|
||
var modal = __webpack_require__("kLXV");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
var react_default = /*#__PURE__*/__webpack_require__.n(react);
|
||
|
||
// EXTERNAL MODULE: ./src/.umi-production/core/umiExports.ts + 19 modules
|
||
var umiExports = __webpack_require__("9kvl");
|
||
|
||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||
var authority = __webpack_require__("xKgJ");
|
||
|
||
// EXTERNAL MODULE: ./src/utils/util.tsx + 6 modules
|
||
var util = __webpack_require__("1vsH");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||
var objectSpread2 = __webpack_require__("VTBJ");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||
// This icon file is generated automatically.
|
||
var ExclamationCircleOutlined_ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 4 modules
|
||
var AntdIcon = __webpack_require__("6VBw");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||
|
||
// GENERATE BY ./scripts/generate.ts
|
||
// DON NOT EDIT IT MANUALLY
|
||
|
||
|
||
|
||
var icons_ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||
return /*#__PURE__*/react["createElement"](AntdIcon["a" /* default */], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
|
||
ref: ref,
|
||
icon: asn_ExclamationCircleOutlined
|
||
}));
|
||
};
|
||
var RefIcon = /*#__PURE__*/react["forwardRef"](icons_ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||
if (false) {}
|
||
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
||
// EXTERNAL MODULE: ./src/assets/images/403Qrcode.png
|
||
var _403Qrcode = __webpack_require__("mOS8");
|
||
var _403Qrcode_default = /*#__PURE__*/__webpack_require__.n(_403Qrcode);
|
||
|
||
// EXTERNAL MODULE: ./src/assets/images/Authorize.png
|
||
var Authorize = __webpack_require__("1ZF9");
|
||
var Authorize_default = /*#__PURE__*/__webpack_require__.n(Authorize);
|
||
|
||
// EXTERNAL MODULE: ./src/assets/images/studnetqun.png
|
||
var studnetqun = __webpack_require__("WdTA");
|
||
var studnetqun_default = /*#__PURE__*/__webpack_require__.n(studnetqun);
|
||
|
||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||
var env = __webpack_require__("m3rI");
|
||
|
||
// CONCATENATED MODULE: ./src/utils/verifyLogin.tsx
|
||
|
||
|
||
|
||
|
||
|
||
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var handleVerify = function handleVerify(dispatch) {
|
||
if (verifyLogin_handleVerifyLogin(dispatch) && verifyLogin_handleProfleCompletedModal()) {
|
||
return true;
|
||
}
|
||
return false;
|
||
};
|
||
var verifyLogin_handleVerifyLogin = function handleVerifyLogin(dispatch) {
|
||
if (!Object(authority["b" /* isLogin */])()) {
|
||
dispatch({
|
||
type: 'user/showPopLogin',
|
||
payload: {
|
||
showPopLogin: true,
|
||
showClosable: true
|
||
}
|
||
});
|
||
return false;
|
||
}
|
||
return true;
|
||
};
|
||
var verifyLogin_handleProfleCompletedModal = function handleProfleCompletedModal() {
|
||
var _user$userInfo;
|
||
var _getDvaApp$_store$get = Object(umiExports["b" /* getDvaApp */])()._store.getState(),
|
||
user = _getDvaApp$_store$get.user;
|
||
if (!((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.profile_completed)) {
|
||
modal["a" /* default */].confirm({
|
||
title: '提示',
|
||
visible: true,
|
||
width: 530,
|
||
centered: true,
|
||
content: /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc font16"
|
||
}, "\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),
|
||
okText: "\u7ACB\u5373\u5B8C\u5584",
|
||
cancelText: "稍后完善",
|
||
onOk: function onOk() {
|
||
window.location.href = "".concat(env["a" /* default */].FORGE_SERVER, "/settings/profile");
|
||
}
|
||
});
|
||
return false;
|
||
}
|
||
return true;
|
||
};
|
||
var verifyLogin_handleProfessionalCertificationModal = function handleProfessionalCertificationModal() {
|
||
var _user$userInfo2;
|
||
var _getDvaApp$_store$get2 = Object(umiExports["b" /* getDvaApp */])()._store.getState(),
|
||
user = _getDvaApp$_store$get2.user;
|
||
if (!((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.professional_certification)) {
|
||
modal["a" /* default */].confirm({
|
||
title: '提示',
|
||
centered: true,
|
||
content: /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc"
|
||
}, "\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),
|
||
okText: "\u7ACB\u5373\u5B8C\u5584",
|
||
cancelText: "稍后完善",
|
||
onOk: function onOk() {
|
||
Object(util["m" /* openNewWindow */])('/account/certification');
|
||
}
|
||
});
|
||
return false;
|
||
}
|
||
return true;
|
||
};
|
||
var verifyLogin_handleCanShixunAddModal = function handleCanShixunAddModal() {
|
||
if (Object(authority["a" /* canShixunAdd */])()) {
|
||
return true;
|
||
}
|
||
modal["a" /* default */].warning({
|
||
centered: true,
|
||
width: 530,
|
||
title: '提示',
|
||
content: /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc",
|
||
style: {
|
||
marginLeft: -38
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("p", null, "\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"), /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: Object(authority["c" /* isStudents */])() ? studnetqun_default.a : "".concat(env["a" /* default */].IMG_SERVER, "/images/educoder/qqqun20191230.png"),
|
||
width: 200
|
||
})),
|
||
okText: "\u6211\u77E5\u9053\u4E86",
|
||
maskClosable: true
|
||
});
|
||
return false;
|
||
};
|
||
var verifyLogin_AuthorizeModel = function AuthorizeModel(type, text) {
|
||
if (type) {
|
||
return true;
|
||
}
|
||
modal["a" /* default */].confirm({
|
||
centered: true,
|
||
zIndex: 10000,
|
||
width: 530,
|
||
title: '提示',
|
||
content: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("p", null, text || '该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。'), /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
marginLeft: '110px'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: Authorize_default.a,
|
||
width: 200
|
||
}), /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
marginLeft: '35px'
|
||
}
|
||
}, "\u7FA4\u53F7\uFF1A", '714336072'))),
|
||
okText: "\u7ACB\u5373\u8054\u7CFB",
|
||
cancelText: '取消',
|
||
onOk: function onOk() {
|
||
Object(util["m" /* openNewWindow */])("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi");
|
||
}
|
||
});
|
||
return false;
|
||
};
|
||
var verifyLogin_ShixunStatusModel = function ShixunStatusModel(dispatch) {
|
||
var text = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
||
var _getDvaApp$_store$get3 = Object(umiExports["b" /* getDvaApp */])()._store.getState(),
|
||
detail = _getDvaApp$_store$get3.shixunsDetail.detail;
|
||
if ((detail === null || detail === void 0 ? void 0 : detail.public) === 2 || (detail === null || detail === void 0 ? void 0 : detail.public) === 1 || (detail === null || detail === void 0 ? void 0 : detail.shixun_status) === 3) {
|
||
modal["a" /* default */].info({
|
||
centered: true,
|
||
icon: /*#__PURE__*/react_default.a.createElement(icons_ExclamationCircleOutlined, {
|
||
style: {
|
||
color: '#faad14'
|
||
}
|
||
}),
|
||
width: 460,
|
||
title: '提示',
|
||
content: /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc",
|
||
style: {
|
||
marginLeft: -38
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
display: 'flex',
|
||
flexDirection: 'column',
|
||
alignItems: 'flex-start',
|
||
paddingLeft: 38,
|
||
margin: '12px 0'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("span", null, "\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A", (detail === null || detail === void 0 ? void 0 : detail.public) === 2 ? '已公开' : (detail === null || detail === void 0 ? void 0 : detail.public) === 1 ? '待审核' : '已关闭', "\uFF0C", text, "\u3002"), /*#__PURE__*/react_default.a.createElement("p", null, "\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")), /*#__PURE__*/react_default.a.createElement("img", {
|
||
style: {
|
||
border: '4px solid #1890FF',
|
||
borderRadius: '4px'
|
||
},
|
||
src: _403Qrcode_default.a,
|
||
alt: "\u4E8C\u7EF4\u7801",
|
||
width: 160
|
||
})),
|
||
okText: '我知道了'
|
||
});
|
||
return true;
|
||
}
|
||
if ((detail === null || detail === void 0 ? void 0 : detail.shixun_status) === 2) {
|
||
modal["a" /* default */].confirm({
|
||
centered: true,
|
||
icon: /*#__PURE__*/react_default.a.createElement(icons_ExclamationCircleOutlined, null),
|
||
title: '提示',
|
||
content: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C", text, "\u3002"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("span", null, "\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),
|
||
okText: "\u64A4\u9500\u53D1\u5E03",
|
||
cancelText: '取消',
|
||
onOk: function onOk() {
|
||
modal["a" /* default */].confirm({
|
||
width: 440,
|
||
centered: true,
|
||
icon: /*#__PURE__*/react_default.a.createElement(icons_ExclamationCircleOutlined, {
|
||
style: {
|
||
color: '#faad14'
|
||
}
|
||
}),
|
||
title: '提示',
|
||
content: '撤销发布后,学员将无法进行练习。是否确认撤销发布?',
|
||
okText: "\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",
|
||
cancelText: '取消',
|
||
onOk: function () {
|
||
var _onOk = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
||
var res;
|
||
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
_context.next = 2;
|
||
return dispatch({
|
||
type: 'shixunsDetail/cancelRelease',
|
||
payload: {
|
||
id: detail === null || detail === void 0 ? void 0 : detail.identifier
|
||
}
|
||
});
|
||
case 2:
|
||
res = _context.sent;
|
||
if (res.status !== 401) {
|
||
message["b" /* default */].success('撤销发布成功。实训回到未发布的状态。');
|
||
dispatch({
|
||
type: 'shixunsDetail/getShixunsDetail',
|
||
payload: {
|
||
id: detail === null || detail === void 0 ? void 0 : detail.identifier
|
||
}
|
||
});
|
||
dispatch({
|
||
type: 'practiceSetting/getCommonData',
|
||
payload: {
|
||
id: detail === null || detail === void 0 ? void 0 : detail.identifier
|
||
}
|
||
});
|
||
}
|
||
case 4:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
function onOk() {
|
||
return _onOk.apply(this, arguments);
|
||
}
|
||
return onOk;
|
||
}()
|
||
});
|
||
}
|
||
});
|
||
return true;
|
||
}
|
||
return false;
|
||
};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Nmxd":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/icons/done2.png ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/Ldf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9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Ohmc":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/certificate.jpg ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/certificate.fc32dc1b.jpg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "PhZf":
|
||
/*!****************************************!*\
|
||
!*** ./src/assets/images/educoder.png ***!
|
||
\****************************************/
|
||
/*! no static exports found */
|
||
/*! all exports used */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/educoder.f3e55073.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "RMFE":
|
||
/*!**********************************!*\
|
||
!*** ./src/assets/images/hb.png ***!
|
||
\**********************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMA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BCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "SMhR":
|
||
/*!*****************************************!*\
|
||
!*** ./src/assets/images/teacherQQ.png ***!
|
||
\*****************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4c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ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "SRve":
|
||
/*!********************************************************************!*\
|
||
!*** ./node_modules/@ant-design/icons-svg/lib/asn/PlusOutlined.js ***!
|
||
\********************************************************************/
|
||
/*! no static exports found */
|
||
/*! all exports used */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// This icon file is generated automatically.
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
var PlusOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
||
exports.default = PlusOutlined;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "TGq3":
|
||
/*!***********************************************!*\
|
||
!*** ./src/assets/images/icons/lockclose.svg ***!
|
||
\***********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/lockclose.365036e8.svg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Vl3Y":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/antd/es/form/index.js + 13 modules ***!
|
||
\*********************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/CheckCircleFilled.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/CloseCircleFilled.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/ExclamationCircleFilled.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/LoadingOutlined.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/extends.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/slicedToArray.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/toConsumableArray.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/typeof.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/_util/devWarning.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/_util/hooks/useForceUpdate.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/_util/reactNode.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/_util/type.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/SizeContext.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/context.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/grid/col.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/grid/row.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/locale-provider/LocaleReceiver.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/locale/default.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/node_modules/rc-motion/es/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/lodash/isEqual.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/omit.js/es/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-field-form/es/FieldContext.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-field-form/es/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/extends.js
|
||
var helpers_extends = __webpack_require__("pVnL");
|
||
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
||
var slicedToArray = __webpack_require__("J4zp");
|
||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
||
var defineProperty = __webpack_require__("lSNA");
|
||
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||
var classnames = __webpack_require__("TSYQ");
|
||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-field-form/es/index.js + 11 modules
|
||
var es = __webpack_require__("85Yc");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js + 1 modules
|
||
var config_provider_context = __webpack_require__("H84U");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/omit.js/es/index.js
|
||
var omit_js_es = __webpack_require__("BGR+");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/context.js
|
||
|
||
|
||
|
||
var FormContext = /*#__PURE__*/react["createContext"]({
|
||
labelAlign: 'right',
|
||
vertical: false,
|
||
itemRef: function itemRef() {}
|
||
});
|
||
var FormItemContext = /*#__PURE__*/react["createContext"]({
|
||
updateItemErrors: function updateItemErrors() {}
|
||
});
|
||
var context_FormProvider = function FormProvider(props) {
|
||
var providerProps = Object(omit_js_es["a" /* default */])(props, ['prefixCls']);
|
||
return /*#__PURE__*/react["createElement"](es["b" /* FormProvider */], providerProps);
|
||
};
|
||
// CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/dist/index.mjs
|
||
function t(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}var i=function(e,i){var o=window,l=i.scrollMode,d=i.block,f=i.inline,h=i.boundary,u=i.skipOverflowHiddenElements,s="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var a,c,g=document.scrollingElement||document.documentElement,p=[],m=e;t(m)&&s(m);){if((m=null==(c=(a=m).parentElement)?a.getRootNode().host||null:c)===g){p.push(m);break}null!=m&&m===document.body&&n(m)&&!n(document.documentElement)||null!=m&&n(m,u)&&p.push(m)}for(var w=o.visualViewport?o.visualViewport.width:innerWidth,v=o.visualViewport?o.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,E=b.width,M=b.top,V=b.right,x=b.bottom,I=b.left,C="start"===d||"nearest"===d?M:"end"===d?x:M+y/2,R="center"===f?I+E/2:"end"===f?V:I,T=[],k=0;k<p.length;k++){var B=p[k],D=B.getBoundingClientRect(),O=D.height,X=D.width,Y=D.top,L=D.right,S=D.bottom,j=D.left;if("if-needed"===l&&M>=0&&I>=0&&x<=v&&V<=w&&M>=Y&&x<=S&&I>=j&&V<=L)return T;var N=getComputedStyle(B),q=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),A=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),G=0,J=0,K="offsetWidth"in B?B.offsetWidth-B.clientWidth-q-A:0,P="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-F:0,Q="offsetWidth"in B?0===B.offsetWidth?0:X/B.offsetWidth:0,U="offsetHeight"in B?0===B.offsetHeight?0:O/B.offsetHeight:0;if(g===B)G="start"===d?C:"end"===d?C-v:"nearest"===d?r(H,H+v,v,z,F,H+C,H+C+y,y):C-v/2,J="start"===f?R:"center"===f?R-w/2:"end"===f?R-w:r(W,W+w,w,q,A,W+R,W+R+E,E),G=Math.max(0,G+H),J=Math.max(0,J+W);else{G="start"===d?C-Y-z:"end"===d?C-S+F+P:"nearest"===d?r(Y,S,O,z,F+P,C,C+y,y):C-(Y+O/2)+P/2,J="start"===f?R-j-q:"center"===f?R-(j+X/2)+K/2:"end"===f?R-L+A+K:r(j,L,X,q,A+K,R,R+E,E);var Z=B.scrollLeft,$=B.scrollTop;C+=$-(G=Math.max(0,Math.min($+G/U,B.scrollHeight-O/U+P))),R+=Z-(J=Math.max(0,Math.min(Z+J/Q,B.scrollWidth-X/Q+K)))}T.push({el:B,top:G,left:J})}return T};
|
||
//# sourceMappingURL=index.mjs.map
|
||
|
||
// CONCATENATED MODULE: ./node_modules/scroll-into-view-if-needed/es/index.js
|
||
|
||
function isOptionsObject(options) {
|
||
return options === Object(options) && Object.keys(options).length !== 0;
|
||
}
|
||
function defaultBehavior(actions, behavior) {
|
||
if (behavior === void 0) {
|
||
behavior = 'auto';
|
||
}
|
||
var canSmoothScroll = ('scrollBehavior' in document.body.style);
|
||
actions.forEach(function (_ref) {
|
||
var el = _ref.el,
|
||
top = _ref.top,
|
||
left = _ref.left;
|
||
if (el.scroll && canSmoothScroll) {
|
||
el.scroll({
|
||
top: top,
|
||
left: left,
|
||
behavior: behavior
|
||
});
|
||
} else {
|
||
el.scrollTop = top;
|
||
el.scrollLeft = left;
|
||
}
|
||
});
|
||
}
|
||
function getOptions(options) {
|
||
if (options === false) {
|
||
return {
|
||
block: 'end',
|
||
inline: 'nearest'
|
||
};
|
||
}
|
||
if (isOptionsObject(options)) {
|
||
return options;
|
||
}
|
||
return {
|
||
block: 'start',
|
||
inline: 'nearest'
|
||
};
|
||
}
|
||
function scrollIntoView(target, options) {
|
||
var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target);
|
||
if (isOptionsObject(options) && typeof options.behavior === 'function') {
|
||
return options.behavior(isTargetAttached ? i(target, options) : []);
|
||
}
|
||
if (!isTargetAttached) {
|
||
return;
|
||
}
|
||
var computeOptions = getOptions(options);
|
||
return defaultBehavior(i(target, computeOptions), computeOptions.behavior);
|
||
}
|
||
/* harmony default export */ var scroll_into_view_if_needed_es = (scrollIntoView);
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/util.js
|
||
function toArray(candidate) {
|
||
if (candidate === undefined || candidate === false) return [];
|
||
return Array.isArray(candidate) ? candidate : [candidate];
|
||
}
|
||
function getFieldId(namePath, formName) {
|
||
if (!namePath.length) return undefined;
|
||
var mergedId = namePath.join('_');
|
||
return formName ? "".concat(formName, "_").concat(mergedId) : mergedId;
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useForm.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function toNamePathStr(name) {
|
||
var namePath = toArray(name);
|
||
return namePath.join('_');
|
||
}
|
||
|
||
function useForm(form) {
|
||
var _useRcForm = Object(es["e" /* useForm */])(),
|
||
_useRcForm2 = slicedToArray_default()(_useRcForm, 1),
|
||
rcForm = _useRcForm2[0];
|
||
|
||
var itemsRef = Object(react["useRef"])({});
|
||
var wrapForm = Object(react["useMemo"])(function () {
|
||
return form || extends_default()(extends_default()({}, rcForm), {
|
||
__INTERNAL__: {
|
||
itemRef: function itemRef(name) {
|
||
return function (node) {
|
||
var namePathStr = toNamePathStr(name);
|
||
|
||
if (node) {
|
||
itemsRef.current[namePathStr] = node;
|
||
} else {
|
||
delete itemsRef.current[namePathStr];
|
||
}
|
||
};
|
||
}
|
||
},
|
||
scrollToField: function scrollToField(name) {
|
||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||
var namePath = toArray(name);
|
||
var fieldId = getFieldId(namePath, wrapForm.__INTERNAL__.name);
|
||
var node = fieldId ? document.getElementById(fieldId) : null;
|
||
|
||
if (node) {
|
||
scroll_into_view_if_needed_es(node, extends_default()({
|
||
scrollMode: 'if-needed',
|
||
block: 'nearest'
|
||
}, options));
|
||
}
|
||
},
|
||
getFieldInstance: function getFieldInstance(name) {
|
||
var namePathStr = toNamePathStr(name);
|
||
return itemsRef.current[namePathStr];
|
||
}
|
||
});
|
||
}, [form, rcForm]);
|
||
return [wrapForm];
|
||
}
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/SizeContext.js
|
||
var SizeContext = __webpack_require__("3Nzz");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/Form.js
|
||
|
||
|
||
|
||
|
||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||
var t = {};
|
||
|
||
for (var p in s) {
|
||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
}
|
||
|
||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
}
|
||
return t;
|
||
};
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var Form_InternalForm = function InternalForm(props, ref) {
|
||
var _classNames;
|
||
|
||
var contextSize = react["useContext"](SizeContext["b" /* default */]);
|
||
|
||
var _React$useContext = react["useContext"](config_provider_context["b" /* ConfigContext */]),
|
||
getPrefixCls = _React$useContext.getPrefixCls,
|
||
direction = _React$useContext.direction;
|
||
|
||
var name = props.name;
|
||
|
||
var customizePrefixCls = props.prefixCls,
|
||
_props$className = props.className,
|
||
className = _props$className === void 0 ? '' : _props$className,
|
||
_props$size = props.size,
|
||
size = _props$size === void 0 ? contextSize : _props$size,
|
||
form = props.form,
|
||
colon = props.colon,
|
||
labelAlign = props.labelAlign,
|
||
labelCol = props.labelCol,
|
||
wrapperCol = props.wrapperCol,
|
||
hideRequiredMark = props.hideRequiredMark,
|
||
_props$layout = props.layout,
|
||
layout = _props$layout === void 0 ? 'horizontal' : _props$layout,
|
||
scrollToFirstError = props.scrollToFirstError,
|
||
requiredMark = props.requiredMark,
|
||
onFinishFailed = props.onFinishFailed,
|
||
restFormProps = __rest(props, ["prefixCls", "className", "size", "form", "colon", "labelAlign", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed"]);
|
||
|
||
var mergedRequiredMark = Object(react["useMemo"])(function () {
|
||
if (requiredMark !== undefined) {
|
||
return requiredMark;
|
||
}
|
||
|
||
if (hideRequiredMark) {
|
||
return false;
|
||
}
|
||
|
||
return true;
|
||
}, [hideRequiredMark, requiredMark]);
|
||
var prefixCls = getPrefixCls('form', customizePrefixCls);
|
||
var formClassName = classnames_default()(prefixCls, (_classNames = {}, defineProperty_default()(_classNames, "".concat(prefixCls, "-").concat(layout), true), defineProperty_default()(_classNames, "".concat(prefixCls, "-hide-required-mark"), mergedRequiredMark === false), defineProperty_default()(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_default()(_classNames, "".concat(prefixCls, "-").concat(size), size), _classNames), className);
|
||
|
||
var _useForm = useForm(form),
|
||
_useForm2 = slicedToArray_default()(_useForm, 1),
|
||
wrapForm = _useForm2[0];
|
||
|
||
var __INTERNAL__ = wrapForm.__INTERNAL__;
|
||
__INTERNAL__.name = name;
|
||
var formContextValue = Object(react["useMemo"])(function () {
|
||
return {
|
||
name: name,
|
||
labelAlign: labelAlign,
|
||
labelCol: labelCol,
|
||
wrapperCol: wrapperCol,
|
||
vertical: layout === 'vertical',
|
||
colon: colon,
|
||
requiredMark: mergedRequiredMark,
|
||
itemRef: __INTERNAL__.itemRef
|
||
};
|
||
}, [name, labelAlign, labelCol, wrapperCol, layout, colon, mergedRequiredMark]);
|
||
react["useImperativeHandle"](ref, function () {
|
||
return wrapForm;
|
||
});
|
||
|
||
var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) {
|
||
if (onFinishFailed) {
|
||
onFinishFailed(errorInfo);
|
||
}
|
||
|
||
if (scrollToFirstError && errorInfo.errorFields.length) {
|
||
wrapForm.scrollToField(errorInfo.errorFields[0].name);
|
||
}
|
||
};
|
||
|
||
return /*#__PURE__*/react["createElement"](SizeContext["a" /* SizeContextProvider */], {
|
||
size: size
|
||
}, /*#__PURE__*/react["createElement"](FormContext.Provider, {
|
||
value: formContextValue
|
||
}, /*#__PURE__*/react["createElement"](es["d" /* default */], extends_default()({
|
||
id: name
|
||
}, restFormProps, {
|
||
onFinishFailed: onInternalFinishFailed,
|
||
form: wrapForm,
|
||
className: formClassName
|
||
}))));
|
||
};
|
||
|
||
var Form = /*#__PURE__*/react["forwardRef"](Form_InternalForm);
|
||
|
||
/* harmony default export */ var form_Form = (Form);
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/typeof.js
|
||
var helpers_typeof = __webpack_require__("cDf5");
|
||
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
|
||
var toConsumableArray = __webpack_require__("RIqP");
|
||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/lodash/isEqual.js
|
||
var isEqual = __webpack_require__("Y+p1");
|
||
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-field-form/es/FieldContext.js
|
||
var FieldContext = __webpack_require__("KW7l");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js
|
||
var es_ref = __webpack_require__("c+Xe");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/grid/row.js
|
||
var row = __webpack_require__("qrJ5");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/type.js
|
||
var type = __webpack_require__("CWQg");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/devWarning.js
|
||
var devWarning = __webpack_require__("uaoM");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/grid/col.js
|
||
var col = __webpack_require__("/kpp");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/locale-provider/LocaleReceiver.js + 1 modules
|
||
var LocaleReceiver = __webpack_require__("YMnH");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/locale/default.js + 4 modules
|
||
var locale_default = __webpack_require__("ZvpZ");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItemLabel.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var FormItemLabel_FormItemLabel = function FormItemLabel(_ref) {
|
||
var prefixCls = _ref.prefixCls,
|
||
label = _ref.label,
|
||
htmlFor = _ref.htmlFor,
|
||
labelCol = _ref.labelCol,
|
||
labelAlign = _ref.labelAlign,
|
||
colon = _ref.colon,
|
||
required = _ref.required,
|
||
requiredMark = _ref.requiredMark;
|
||
|
||
var _useLocaleReceiver = Object(LocaleReceiver["b" /* useLocaleReceiver */])('Form'),
|
||
_useLocaleReceiver2 = slicedToArray_default()(_useLocaleReceiver, 1),
|
||
formLocale = _useLocaleReceiver2[0];
|
||
|
||
if (!label) return null;
|
||
return /*#__PURE__*/react["createElement"](FormContext.Consumer, {
|
||
key: "label"
|
||
}, function (_ref2) {
|
||
var _classNames;
|
||
|
||
var vertical = _ref2.vertical,
|
||
contextLabelAlign = _ref2.labelAlign,
|
||
contextLabelCol = _ref2.labelCol,
|
||
contextColon = _ref2.colon;
|
||
|
||
var _a;
|
||
|
||
var mergedLabelCol = labelCol || contextLabelCol || {};
|
||
var mergedLabelAlign = labelAlign || contextLabelAlign;
|
||
var labelClsBasic = "".concat(prefixCls, "-item-label");
|
||
var labelColClassName = classnames_default()(labelClsBasic, mergedLabelAlign === 'left' && "".concat(labelClsBasic, "-left"), mergedLabelCol.className);
|
||
var labelChildren = label; // Keep label is original where there should have no colon
|
||
|
||
var computedColon = colon === true || contextColon !== false && colon !== false;
|
||
var haveColon = computedColon && !vertical; // Remove duplicated user input colon
|
||
|
||
if (haveColon && typeof label === 'string' && label.trim() !== '') {
|
||
labelChildren = label.replace(/[:|:]\s*$/, '');
|
||
} // Add required mark if optional
|
||
|
||
|
||
if (requiredMark === 'optional' && !required) {
|
||
labelChildren = /*#__PURE__*/react["createElement"](react["Fragment"], null, labelChildren, /*#__PURE__*/react["createElement"]("span", {
|
||
className: "".concat(prefixCls, "-item-optional")
|
||
}, (formLocale === null || formLocale === void 0 ? void 0 : formLocale.optional) || ((_a = locale_default["a" /* default */].Form) === null || _a === void 0 ? void 0 : _a.optional)));
|
||
}
|
||
|
||
var labelClassName = classnames_default()((_classNames = {}, defineProperty_default()(_classNames, "".concat(prefixCls, "-item-required"), required), defineProperty_default()(_classNames, "".concat(prefixCls, "-item-required-mark-optional"), requiredMark === 'optional'), defineProperty_default()(_classNames, "".concat(prefixCls, "-item-no-colon"), !computedColon), _classNames));
|
||
return /*#__PURE__*/react["createElement"](col["a" /* default */], extends_default()({}, mergedLabelCol, {
|
||
className: labelColClassName
|
||
}), /*#__PURE__*/react["createElement"]("label", {
|
||
htmlFor: htmlFor,
|
||
className: labelClassName,
|
||
title: typeof label === 'string' ? label : ''
|
||
}, labelChildren));
|
||
});
|
||
};
|
||
|
||
/* harmony default export */ var form_FormItemLabel = (FormItemLabel_FormItemLabel);
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/LoadingOutlined.js
|
||
var LoadingOutlined = __webpack_require__("gZBC");
|
||
var LoadingOutlined_default = /*#__PURE__*/__webpack_require__.n(LoadingOutlined);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/CloseCircleFilled.js
|
||
var CloseCircleFilled = __webpack_require__("kbBi");
|
||
var CloseCircleFilled_default = /*#__PURE__*/__webpack_require__.n(CloseCircleFilled);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/CheckCircleFilled.js
|
||
var CheckCircleFilled = __webpack_require__("J84W");
|
||
var CheckCircleFilled_default = /*#__PURE__*/__webpack_require__.n(CheckCircleFilled);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/ExclamationCircleFilled.js
|
||
var ExclamationCircleFilled = __webpack_require__("sKbD");
|
||
var ExclamationCircleFilled_default = /*#__PURE__*/__webpack_require__.n(ExclamationCircleFilled);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMemo.js
|
||
var useMemo = __webpack_require__("YrtM");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-motion/es/index.js + 5 modules
|
||
var rc_motion_es = __webpack_require__("HTfv");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/hooks/useForceUpdate.js
|
||
var useForceUpdate = __webpack_require__("hkKa");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useCacheErrors.js
|
||
|
||
|
||
/**
|
||
* Always debounce error to avoid [error -> null -> error] blink
|
||
*/
|
||
|
||
function useCacheErrors(errors, changeTrigger, directly) {
|
||
var cacheRef = react["useRef"]({
|
||
errors: errors,
|
||
visible: !!errors.length
|
||
});
|
||
var forceUpdate = Object(useForceUpdate["a" /* default */])();
|
||
|
||
var update = function update() {
|
||
var prevVisible = cacheRef.current.visible;
|
||
var newVisible = !!errors.length;
|
||
var prevErrors = cacheRef.current.errors;
|
||
cacheRef.current.errors = errors;
|
||
cacheRef.current.visible = newVisible;
|
||
|
||
if (prevVisible !== newVisible) {
|
||
changeTrigger(newVisible);
|
||
} else if (prevErrors.length !== errors.length || prevErrors.some(function (prevErr, index) {
|
||
return prevErr !== errors[index];
|
||
})) {
|
||
forceUpdate();
|
||
}
|
||
};
|
||
|
||
react["useEffect"](function () {
|
||
if (!directly) {
|
||
var timeout = setTimeout(update, 10);
|
||
return function () {
|
||
return clearTimeout(timeout);
|
||
};
|
||
}
|
||
}, [errors]);
|
||
|
||
if (directly) {
|
||
update();
|
||
}
|
||
|
||
return [cacheRef.current.visible, cacheRef.current.errors];
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItemInput.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var iconMap = {
|
||
success: CheckCircleFilled_default.a,
|
||
warning: ExclamationCircleFilled_default.a,
|
||
error: CloseCircleFilled_default.a,
|
||
validating: LoadingOutlined_default.a
|
||
};
|
||
|
||
var FormItemInput_FormItemInput = function FormItemInput(_ref) {
|
||
var prefixCls = _ref.prefixCls,
|
||
wrapperCol = _ref.wrapperCol,
|
||
children = _ref.children,
|
||
help = _ref.help,
|
||
errors = _ref.errors,
|
||
onDomErrorVisibleChange = _ref.onDomErrorVisibleChange,
|
||
hasFeedback = _ref.hasFeedback,
|
||
validateStatus = _ref.validateStatus,
|
||
extra = _ref.extra;
|
||
var forceUpdate = Object(useForceUpdate["a" /* default */])();
|
||
var baseClassName = "".concat(prefixCls, "-item");
|
||
var formContext = react["useContext"](FormContext);
|
||
var mergedWrapperCol = wrapperCol || formContext.wrapperCol || {};
|
||
var className = classnames_default()("".concat(baseClassName, "-control"), mergedWrapperCol.className);
|
||
|
||
var _useCacheErrors = useCacheErrors(errors, function (changedVisible) {
|
||
if (changedVisible) {
|
||
/**
|
||
* We trigger in sync to avoid dom shaking but this get warning in react 16.13.
|
||
* So use Promise to keep in micro async to handle this.
|
||
* https://github.com/ant-design/ant-design/issues/21698#issuecomment-593743485
|
||
*/
|
||
Promise.resolve().then(function () {
|
||
onDomErrorVisibleChange(true);
|
||
});
|
||
}
|
||
|
||
forceUpdate();
|
||
}, !!help),
|
||
_useCacheErrors2 = slicedToArray_default()(_useCacheErrors, 2),
|
||
visible = _useCacheErrors2[0],
|
||
cacheErrors = _useCacheErrors2[1];
|
||
|
||
react["useEffect"](function () {
|
||
return function () {
|
||
onDomErrorVisibleChange(false);
|
||
};
|
||
}, []);
|
||
var memoErrors = Object(useMemo["a" /* default */])(function () {
|
||
return cacheErrors;
|
||
}, visible, function (_, nextVisible) {
|
||
return nextVisible;
|
||
}); // Should provides additional icon if `hasFeedback`
|
||
|
||
var IconNode = validateStatus && iconMap[validateStatus];
|
||
var icon = hasFeedback && IconNode ? /*#__PURE__*/react["createElement"]("span", {
|
||
className: "".concat(baseClassName, "-children-icon")
|
||
}, /*#__PURE__*/react["createElement"](IconNode, null)) : null; // Pass to sub FormItem should not with col info
|
||
|
||
var subFormContext = extends_default()({}, formContext);
|
||
|
||
delete subFormContext.labelCol;
|
||
delete subFormContext.wrapperCol;
|
||
return /*#__PURE__*/react["createElement"](FormContext.Provider, {
|
||
value: subFormContext
|
||
}, /*#__PURE__*/react["createElement"](col["a" /* default */], extends_default()({}, mergedWrapperCol, {
|
||
className: className
|
||
}), /*#__PURE__*/react["createElement"]("div", {
|
||
className: "".concat(baseClassName, "-control-input")
|
||
}, /*#__PURE__*/react["createElement"]("div", {
|
||
className: "".concat(baseClassName, "-control-input-content")
|
||
}, children), icon), /*#__PURE__*/react["createElement"](rc_motion_es["b" /* default */], {
|
||
motionDeadline: 500,
|
||
visible: visible,
|
||
motionName: "show-help",
|
||
onLeaveEnd: function onLeaveEnd() {
|
||
onDomErrorVisibleChange(false);
|
||
},
|
||
motionAppear: true,
|
||
removeOnLeave: true
|
||
}, function (_ref2) {
|
||
var motionClassName = _ref2.className;
|
||
return /*#__PURE__*/react["createElement"]("div", {
|
||
className: classnames_default()("".concat(baseClassName, "-explain"), motionClassName),
|
||
key: "help"
|
||
}, memoErrors.map(function (error, index) {
|
||
return (
|
||
/*#__PURE__*/
|
||
// eslint-disable-next-line react/no-array-index-key
|
||
react["createElement"]("div", {
|
||
key: index,
|
||
role: "alert"
|
||
}, error)
|
||
);
|
||
}));
|
||
}), extra && /*#__PURE__*/react["createElement"]("div", {
|
||
className: "".concat(baseClassName, "-extra")
|
||
}, extra)));
|
||
};
|
||
|
||
/* harmony default export */ var form_FormItemInput = (FormItemInput_FormItemInput);
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||
var reactNode = __webpack_require__("0n0R");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/raf/index.js
|
||
var raf = __webpack_require__("xEkU");
|
||
var raf_default = /*#__PURE__*/__webpack_require__.n(raf);
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useFrameState.js
|
||
|
||
|
||
|
||
|
||
function useFrameState(defaultValue) {
|
||
var _React$useState = react["useState"](defaultValue),
|
||
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
||
value = _React$useState2[0],
|
||
setValue = _React$useState2[1];
|
||
|
||
var frameRef = Object(react["useRef"])(null);
|
||
var batchRef = Object(react["useRef"])([]);
|
||
var destroyRef = Object(react["useRef"])(false);
|
||
react["useEffect"](function () {
|
||
return function () {
|
||
destroyRef.current = true;
|
||
raf_default.a.cancel(frameRef.current);
|
||
};
|
||
}, []);
|
||
|
||
function setFrameValue(updater) {
|
||
if (destroyRef.current) {
|
||
return;
|
||
}
|
||
|
||
if (frameRef.current === null) {
|
||
batchRef.current = [];
|
||
frameRef.current = raf_default()(function () {
|
||
frameRef.current = null;
|
||
setValue(function (prevValue) {
|
||
var current = prevValue;
|
||
batchRef.current.forEach(function (func) {
|
||
current = func(current);
|
||
});
|
||
return current;
|
||
});
|
||
});
|
||
}
|
||
|
||
batchRef.current.push(updater);
|
||
}
|
||
|
||
return [value, setFrameValue];
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useItemRef.js
|
||
|
||
|
||
|
||
|
||
function useItemRef() {
|
||
var _React$useContext = react["useContext"](FormContext),
|
||
itemRef = _React$useContext.itemRef;
|
||
|
||
var cacheRef = react["useRef"]({});
|
||
|
||
function getRef(name, children) {
|
||
var childrenRef = children && typeof_default()(children) === 'object' && children.ref;
|
||
var nameStr = name.join('_');
|
||
|
||
if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) {
|
||
cacheRef.current.name = nameStr;
|
||
cacheRef.current.originRef = childrenRef;
|
||
cacheRef.current.ref = Object(es_ref["a" /* composeRef */])(itemRef(name), childrenRef);
|
||
}
|
||
|
||
return cacheRef.current.ref;
|
||
}
|
||
|
||
return getRef;
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItem.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var FormItem_rest = undefined && undefined.__rest || function (s, e) {
|
||
var t = {};
|
||
|
||
for (var p in s) {
|
||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
}
|
||
|
||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
}
|
||
return t;
|
||
};
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var ValidateStatuses = Object(type["a" /* tuple */])('success', 'warning', 'error', 'validating', '');
|
||
var MemoInput = /*#__PURE__*/react["memo"](function (_ref) {
|
||
var children = _ref.children;
|
||
return children;
|
||
}, function (prev, next) {
|
||
return prev.value === next.value && prev.update === next.update;
|
||
});
|
||
|
||
function hasValidName(name) {
|
||
if (name === null) {
|
||
Object(devWarning["a" /* default */])(false, 'Form.Item', '`null` is passed as `name` property');
|
||
}
|
||
|
||
return !(name === undefined || name === null);
|
||
}
|
||
|
||
function FormItem(props) {
|
||
var name = props.name,
|
||
fieldKey = props.fieldKey,
|
||
noStyle = props.noStyle,
|
||
dependencies = props.dependencies,
|
||
customizePrefixCls = props.prefixCls,
|
||
style = props.style,
|
||
className = props.className,
|
||
shouldUpdate = props.shouldUpdate,
|
||
hasFeedback = props.hasFeedback,
|
||
help = props.help,
|
||
rules = props.rules,
|
||
validateStatus = props.validateStatus,
|
||
children = props.children,
|
||
required = props.required,
|
||
label = props.label,
|
||
_props$trigger = props.trigger,
|
||
trigger = _props$trigger === void 0 ? 'onChange' : _props$trigger,
|
||
validateTrigger = props.validateTrigger,
|
||
hidden = props.hidden,
|
||
restProps = FormItem_rest(props, ["name", "fieldKey", "noStyle", "dependencies", "prefixCls", "style", "className", "shouldUpdate", "hasFeedback", "help", "rules", "validateStatus", "children", "required", "label", "trigger", "validateTrigger", "hidden"]);
|
||
|
||
var destroyRef = react["useRef"](false);
|
||
|
||
var _React$useContext = react["useContext"](config_provider_context["b" /* ConfigContext */]),
|
||
getPrefixCls = _React$useContext.getPrefixCls;
|
||
|
||
var _React$useContext2 = react["useContext"](FormContext),
|
||
formName = _React$useContext2.name,
|
||
requiredMark = _React$useContext2.requiredMark;
|
||
|
||
var _React$useContext3 = react["useContext"](FormItemContext),
|
||
updateItemErrors = _React$useContext3.updateItemErrors;
|
||
|
||
var _React$useState = react["useState"](!!help),
|
||
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
||
domErrorVisible = _React$useState2[0],
|
||
innerSetDomErrorVisible = _React$useState2[1];
|
||
|
||
var prevValidateStatusRef = react["useRef"](validateStatus);
|
||
|
||
var _useFrameState = useFrameState({}),
|
||
_useFrameState2 = slicedToArray_default()(_useFrameState, 2),
|
||
inlineErrors = _useFrameState2[0],
|
||
setInlineErrors = _useFrameState2[1];
|
||
|
||
var _React$useContext4 = react["useContext"](FieldContext["b" /* default */]),
|
||
contextValidateTrigger = _React$useContext4.validateTrigger;
|
||
|
||
var mergedValidateTrigger = validateTrigger !== undefined ? validateTrigger : contextValidateTrigger;
|
||
|
||
function setDomErrorVisible(visible) {
|
||
if (!destroyRef.current) {
|
||
innerSetDomErrorVisible(visible);
|
||
}
|
||
}
|
||
|
||
var hasName = hasValidName(name); // Cache Field NamePath
|
||
|
||
var nameRef = react["useRef"]([]); // Should clean up if Field removed
|
||
|
||
react["useEffect"](function () {
|
||
return function () {
|
||
destroyRef.current = true;
|
||
updateItemErrors(nameRef.current.join('__SPLIT__'), []);
|
||
};
|
||
}, []);
|
||
var prefixCls = getPrefixCls('form', customizePrefixCls); // ======================== Errors ========================
|
||
// Collect noStyle Field error to the top FormItem
|
||
|
||
var updateChildItemErrors = noStyle ? updateItemErrors : function (subName, subErrors) {
|
||
setInlineErrors(function () {
|
||
var prevInlineErrors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||
|
||
if (!isEqual_default()(prevInlineErrors[subName], subErrors)) {
|
||
return extends_default()(extends_default()({}, prevInlineErrors), defineProperty_default()({}, subName, subErrors));
|
||
}
|
||
|
||
return prevInlineErrors;
|
||
});
|
||
}; // ===================== Children Ref =====================
|
||
|
||
var getItemRef = useItemRef();
|
||
|
||
function renderLayout(baseChildren, fieldId, meta, isRequired) {
|
||
var _itemClassName;
|
||
|
||
var _a;
|
||
|
||
if (noStyle && !hidden) {
|
||
return baseChildren;
|
||
} // ======================== Errors ========================
|
||
// >>> collect sub errors
|
||
|
||
|
||
var subErrorList = [];
|
||
Object.keys(inlineErrors).forEach(function (subName) {
|
||
subErrorList = [].concat(toConsumableArray_default()(subErrorList), toConsumableArray_default()(inlineErrors[subName] || []));
|
||
}); // >>> merged errors
|
||
|
||
var mergedErrors;
|
||
|
||
if (help !== undefined && help !== null) {
|
||
mergedErrors = toArray(help);
|
||
} else {
|
||
mergedErrors = meta ? meta.errors : [];
|
||
mergedErrors = [].concat(toConsumableArray_default()(mergedErrors), toConsumableArray_default()(subErrorList));
|
||
} // ======================== Status ========================
|
||
|
||
|
||
var mergedValidateStatus = '';
|
||
|
||
if (validateStatus !== undefined) {
|
||
mergedValidateStatus = validateStatus;
|
||
} else if (meta === null || meta === void 0 ? void 0 : meta.validating) {
|
||
mergedValidateStatus = 'validating';
|
||
} else if (((_a = meta === null || meta === void 0 ? void 0 : meta.errors) === null || _a === void 0 ? void 0 : _a.length) || subErrorList.length) {
|
||
mergedValidateStatus = 'error';
|
||
} else if (meta === null || meta === void 0 ? void 0 : meta.touched) {
|
||
mergedValidateStatus = 'success';
|
||
}
|
||
|
||
if (domErrorVisible && help) {
|
||
prevValidateStatusRef.current = mergedValidateStatus;
|
||
}
|
||
|
||
var itemClassName = (_itemClassName = {}, defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item"), true), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-with-help"), domErrorVisible || help), defineProperty_default()(_itemClassName, "".concat(className), !!className), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-has-feedback"), mergedValidateStatus && hasFeedback), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-has-success"), mergedValidateStatus === 'success'), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-has-warning"), mergedValidateStatus === 'warning'), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-has-error"), mergedValidateStatus === 'error'), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-has-error-leave"), !help && domErrorVisible && prevValidateStatusRef.current === 'error'), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-is-validating"), mergedValidateStatus === 'validating'), defineProperty_default()(_itemClassName, "".concat(prefixCls, "-item-hidden"), hidden), _itemClassName); // ======================= Children =======================
|
||
|
||
return /*#__PURE__*/react["createElement"](row["a" /* default */], extends_default()({
|
||
className: classnames_default()(itemClassName),
|
||
style: style,
|
||
key: "row"
|
||
}, Object(omit_js_es["a" /* default */])(restProps, ['colon', 'extra', 'getValueFromEvent', 'getValueProps', 'hasFeedback', 'help', 'htmlFor', 'id', 'initialValue', 'isListField', 'label', 'labelAlign', 'labelCol', 'normalize', 'preserve', 'required', 'validateFirst', 'validateStatus', 'valuePropName', 'wrapperCol'])), /*#__PURE__*/react["createElement"](form_FormItemLabel, extends_default()({
|
||
htmlFor: fieldId,
|
||
required: isRequired,
|
||
requiredMark: requiredMark
|
||
}, props, {
|
||
prefixCls: prefixCls
|
||
})), /*#__PURE__*/react["createElement"](form_FormItemInput, extends_default()({}, props, meta, {
|
||
errors: mergedErrors,
|
||
prefixCls: prefixCls,
|
||
onDomErrorVisibleChange: setDomErrorVisible,
|
||
validateStatus: mergedValidateStatus
|
||
}), /*#__PURE__*/react["createElement"](FormItemContext.Provider, {
|
||
value: {
|
||
updateItemErrors: updateChildItemErrors
|
||
}
|
||
}, baseChildren)));
|
||
}
|
||
|
||
var isRenderProps = typeof children === 'function'; // Record for real component render
|
||
|
||
var updateRef = react["useRef"](0);
|
||
updateRef.current += 1;
|
||
|
||
if (!hasName && !isRenderProps && !dependencies) {
|
||
return renderLayout(children);
|
||
}
|
||
|
||
var variables = {};
|
||
|
||
if (typeof label === 'string') {
|
||
variables.label = label;
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](es["a" /* Field */], extends_default()({}, props, {
|
||
messageVariables: variables,
|
||
trigger: trigger,
|
||
validateTrigger: mergedValidateTrigger,
|
||
onReset: function onReset() {
|
||
setDomErrorVisible(false);
|
||
}
|
||
}), function (control, meta, context) {
|
||
var errors = meta.errors;
|
||
var mergedName = toArray(name).length && meta ? meta.name : [];
|
||
var fieldId = getFieldId(mergedName, formName);
|
||
|
||
if (noStyle) {
|
||
nameRef.current = toConsumableArray_default()(mergedName);
|
||
|
||
if (fieldKey) {
|
||
var fieldKeys = Array.isArray(fieldKey) ? fieldKey : [fieldKey];
|
||
nameRef.current = [].concat(toConsumableArray_default()(mergedName.slice(0, -1)), toConsumableArray_default()(fieldKeys));
|
||
}
|
||
|
||
updateItemErrors(nameRef.current.join('__SPLIT__'), errors);
|
||
}
|
||
|
||
var isRequired = required !== undefined ? required : !!(rules && rules.some(function (rule) {
|
||
if (rule && typeof_default()(rule) === 'object' && rule.required) {
|
||
return true;
|
||
}
|
||
|
||
if (typeof rule === 'function') {
|
||
var ruleEntity = rule(context);
|
||
return ruleEntity && ruleEntity.required;
|
||
}
|
||
|
||
return false;
|
||
})); // ======================= Children =======================
|
||
|
||
var mergedControl = extends_default()({}, control);
|
||
|
||
var childNode = null;
|
||
Object(devWarning["a" /* default */])(!(shouldUpdate && dependencies), 'Form.Item', "`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies.");
|
||
|
||
if (Array.isArray(children) && hasName) {
|
||
Object(devWarning["a" /* default */])(false, 'Form.Item', '`children` is array of render props cannot have `name`.');
|
||
childNode = children;
|
||
} else if (isRenderProps && (!(shouldUpdate || dependencies) || hasName)) {
|
||
Object(devWarning["a" /* default */])(!!(shouldUpdate || dependencies), 'Form.Item', '`children` of render props only work with `shouldUpdate` or `dependencies`.');
|
||
Object(devWarning["a" /* default */])(!hasName, 'Form.Item', "Do not use `name` with `children` of render props since it's not a field.");
|
||
} else if (dependencies && !isRenderProps && !hasName) {
|
||
Object(devWarning["a" /* default */])(false, 'Form.Item', 'Must set `name` or use render props when `dependencies` is set.');
|
||
} else if (Object(reactNode["b" /* isValidElement */])(children)) {
|
||
Object(devWarning["a" /* default */])(children.props.defaultValue === undefined, 'Form.Item', '`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.');
|
||
|
||
var childProps = extends_default()(extends_default()({}, children.props), mergedControl);
|
||
|
||
if (!childProps.id) {
|
||
childProps.id = fieldId;
|
||
}
|
||
|
||
if (Object(es_ref["c" /* supportRef */])(children)) {
|
||
childProps.ref = getItemRef(mergedName, children);
|
||
} // We should keep user origin event handler
|
||
|
||
|
||
var triggers = new Set([].concat(toConsumableArray_default()(toArray(trigger)), toConsumableArray_default()(toArray(mergedValidateTrigger))));
|
||
triggers.forEach(function (eventName) {
|
||
childProps[eventName] = function () {
|
||
var _a2, _c2;
|
||
|
||
var _a, _b, _c;
|
||
|
||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
args[_key] = arguments[_key];
|
||
}
|
||
|
||
(_a = mergedControl[eventName]) === null || _a === void 0 ? void 0 : (_a2 = _a).call.apply(_a2, [mergedControl].concat(args));
|
||
(_c = (_b = children.props)[eventName]) === null || _c === void 0 ? void 0 : (_c2 = _c).call.apply(_c2, [_b].concat(args));
|
||
};
|
||
});
|
||
childNode = /*#__PURE__*/react["createElement"](MemoInput, {
|
||
value: mergedControl[props.valuePropName || 'value'],
|
||
update: updateRef.current
|
||
}, Object(reactNode["a" /* cloneElement */])(children, childProps));
|
||
} else if (isRenderProps && (shouldUpdate || dependencies) && !hasName) {
|
||
childNode = children(context);
|
||
} else {
|
||
Object(devWarning["a" /* default */])(!mergedName.length, 'Form.Item', '`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead.');
|
||
childNode = children;
|
||
}
|
||
|
||
return renderLayout(childNode, fieldId, meta, isRequired);
|
||
});
|
||
}
|
||
|
||
/* harmony default export */ var form_FormItem = (FormItem);
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/FormList.js
|
||
|
||
|
||
var FormList_rest = undefined && undefined.__rest || function (s, e) {
|
||
var t = {};
|
||
|
||
for (var p in s) {
|
||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
}
|
||
|
||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
}
|
||
return t;
|
||
};
|
||
|
||
|
||
|
||
|
||
|
||
var FormList_FormList = function FormList(_a) {
|
||
var children = _a.children,
|
||
props = FormList_rest(_a, ["children"]);
|
||
|
||
Object(devWarning["a" /* default */])(!!props.name, 'Form.List', 'Miss `name` prop.');
|
||
return /*#__PURE__*/react["createElement"](es["c" /* List */], props, function (fields, operation) {
|
||
return children(fields.map(function (field) {
|
||
return extends_default()(extends_default()({}, field), {
|
||
fieldKey: field.key
|
||
});
|
||
}), operation);
|
||
});
|
||
};
|
||
|
||
/* harmony default export */ var form_FormList = (FormList_FormList);
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/form/index.js
|
||
|
||
|
||
|
||
|
||
|
||
var es_form_Form = form_Form;
|
||
es_form_Form.Item = form_FormItem;
|
||
es_form_Form.List = form_FormList;
|
||
es_form_Form.useForm = useForm;
|
||
es_form_Form.Provider = context_FormProvider;
|
||
|
||
es_form_Form.create = function () {
|
||
Object(devWarning["a" /* default */])(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
|
||
};
|
||
|
||
/* harmony default export */ var es_form = __webpack_exports__["a"] = (es_form_Form);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "W6BS":
|
||
/*!************************************************!*\
|
||
!*** ./src/assets/images/icons/weibaitong.png ***!
|
||
\************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d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jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "WdTA":
|
||
/*!******************************************!*\
|
||
!*** ./src/assets/images/studnetqun.png ***!
|
||
\******************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/studnetqun.598eeb43.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Xsq0":
|
||
/*!*************************************************!*\
|
||
!*** ./src/assets/images/banner/mainbanner.jpg ***!
|
||
\*************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/mainbanner.569b9fb1.jpg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "ZTPi":
|
||
/*!*********************************************************!*\
|
||
!*** ./node_modules/antd/es/tabs/index.js + 57 modules ***!
|
||
\*********************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/CloseOutlined.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/EllipsisOutlined.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/PlusOutlined.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (<- Module is not an ECMAScript module) */
|
||
/*! 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/helpers/extends.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/_util/devWarning.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/context.js */
|
||
/*! 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-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/useLayoutEffect.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useState.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(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/extends.js
|
||
var helpers_extends = __webpack_require__("pVnL");
|
||
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
||
var defineProperty = __webpack_require__("lSNA");
|
||
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||
var esm_defineProperty = __webpack_require__("rePB");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||
var slicedToArray = __webpack_require__("ODXe");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||
var objectWithoutProperties = __webpack_require__("Ff2n");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||
var objectSpread2 = __webpack_require__("VTBJ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||
var classnames = __webpack_require__("TSYQ");
|
||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Children/toArray.js
|
||
var toArray = __webpack_require__("Zm9Q");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||
var useMergedState = __webpack_require__("6cGi");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
||
var toConsumableArray = __webpack_require__("KQm4");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/raf/index.js
|
||
var raf = __webpack_require__("xEkU");
|
||
var raf_default = /*#__PURE__*/__webpack_require__.n(raf);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
||
var classCallCheck = __webpack_require__("1OyB");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
||
var createClass = __webpack_require__("vuIU");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
||
var inherits = __webpack_require__("Ji7U");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
||
var createSuper = __webpack_require__("LK+K");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/findDOMNode.js
|
||
var findDOMNode = __webpack_require__("m+aA");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/warning.js
|
||
var warning = __webpack_require__("Kwbf");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js
|
||
var es_ref = __webpack_require__("c+Xe");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
||
var ResizeObserver_es = __webpack_require__("bdgK");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-resize-observer/es/index.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
||
|
||
var es_ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(ReactResizeObserver, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(ReactResizeObserver);
|
||
|
||
function ReactResizeObserver() {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, ReactResizeObserver);
|
||
|
||
_this = _super.apply(this, arguments);
|
||
_this.resizeObserver = null;
|
||
_this.childNode = null;
|
||
_this.currentElement = null;
|
||
_this.state = {
|
||
width: 0,
|
||
height: 0,
|
||
offsetHeight: 0,
|
||
offsetWidth: 0
|
||
};
|
||
|
||
_this.onResize = function (entries) {
|
||
var onResize = _this.props.onResize;
|
||
var target = entries[0].target;
|
||
|
||
var _target$getBoundingCl = target.getBoundingClientRect(),
|
||
width = _target$getBoundingCl.width,
|
||
height = _target$getBoundingCl.height;
|
||
|
||
var offsetWidth = target.offsetWidth,
|
||
offsetHeight = target.offsetHeight;
|
||
/**
|
||
* Resize observer trigger when content size changed.
|
||
* In most case we just care about element size,
|
||
* let's use `boundary` instead of `contentRect` here to avoid shaking.
|
||
*/
|
||
|
||
var fixedWidth = Math.floor(width);
|
||
var fixedHeight = Math.floor(height);
|
||
|
||
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) {
|
||
var size = {
|
||
width: fixedWidth,
|
||
height: fixedHeight,
|
||
offsetWidth: offsetWidth,
|
||
offsetHeight: offsetHeight
|
||
};
|
||
|
||
_this.setState(size);
|
||
|
||
if (onResize) {
|
||
// defer the callback but not defer to next frame
|
||
Promise.resolve().then(function () {
|
||
onResize(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, size), {}, {
|
||
offsetWidth: offsetWidth,
|
||
offsetHeight: offsetHeight
|
||
}));
|
||
});
|
||
}
|
||
}
|
||
};
|
||
|
||
_this.setChildNode = function (node) {
|
||
_this.childNode = node;
|
||
};
|
||
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(ReactResizeObserver, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
this.onComponentUpdated();
|
||
}
|
||
}, {
|
||
key: "componentDidUpdate",
|
||
value: function componentDidUpdate() {
|
||
this.onComponentUpdated();
|
||
}
|
||
}, {
|
||
key: "componentWillUnmount",
|
||
value: function componentWillUnmount() {
|
||
this.destroyObserver();
|
||
}
|
||
}, {
|
||
key: "onComponentUpdated",
|
||
value: function onComponentUpdated() {
|
||
var disabled = this.props.disabled; // Unregister if disabled
|
||
|
||
if (disabled) {
|
||
this.destroyObserver();
|
||
return;
|
||
} // Unregister if element changed
|
||
|
||
|
||
var element = Object(findDOMNode["a" /* default */])(this.childNode || this);
|
||
var elementChanged = element !== this.currentElement;
|
||
|
||
if (elementChanged) {
|
||
this.destroyObserver();
|
||
this.currentElement = element;
|
||
}
|
||
|
||
if (!this.resizeObserver && element) {
|
||
this.resizeObserver = new ResizeObserver_es["default"](this.onResize);
|
||
this.resizeObserver.observe(element);
|
||
}
|
||
}
|
||
}, {
|
||
key: "destroyObserver",
|
||
value: function destroyObserver() {
|
||
if (this.resizeObserver) {
|
||
this.resizeObserver.disconnect();
|
||
this.resizeObserver = null;
|
||
}
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var children = this.props.children;
|
||
var childNodes = Object(toArray["a" /* default */])(children);
|
||
|
||
if (childNodes.length > 1) {
|
||
Object(warning["a" /* default */])(false, 'Find more than one child node with `children` in ResizeObserver. Will only observe first one.');
|
||
} else if (childNodes.length === 0) {
|
||
Object(warning["a" /* default */])(false, '`children` of ResizeObserver is empty. Nothing is in observe.');
|
||
return null;
|
||
}
|
||
|
||
var childNode = childNodes[0];
|
||
|
||
if (react["isValidElement"](childNode) && Object(es_ref["c" /* supportRef */])(childNode)) {
|
||
var ref = childNode.ref;
|
||
childNodes[0] = react["cloneElement"](childNode, {
|
||
ref: Object(es_ref["a" /* composeRef */])(ref, this.setChildNode)
|
||
});
|
||
}
|
||
|
||
return childNodes.length === 1 ? childNodes[0] : childNodes.map(function (node, index) {
|
||
if (!react["isValidElement"](node) || 'key' in node && node.key !== null) {
|
||
return node;
|
||
}
|
||
|
||
return react["cloneElement"](node, {
|
||
key: "".concat(INTERNAL_PREFIX_KEY, "-").concat(index)
|
||
});
|
||
});
|
||
}
|
||
}]);
|
||
|
||
return ReactResizeObserver;
|
||
}(react["Component"]);
|
||
|
||
es_ReactResizeObserver.displayName = 'ResizeObserver';
|
||
/* harmony default export */ var es = (es_ReactResizeObserver);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/hooks/useRaf.js
|
||
|
||
|
||
|
||
function useRaf(callback) {
|
||
var rafRef = Object(react["useRef"])();
|
||
var removedRef = Object(react["useRef"])(false);
|
||
|
||
function trigger() {
|
||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
args[_key] = arguments[_key];
|
||
}
|
||
|
||
if (!removedRef.current) {
|
||
raf_default.a.cancel(rafRef.current);
|
||
rafRef.current = raf_default()(function () {
|
||
callback.apply(void 0, args);
|
||
});
|
||
}
|
||
}
|
||
|
||
Object(react["useEffect"])(function () {
|
||
return function () {
|
||
removedRef.current = true;
|
||
raf_default.a.cancel(rafRef.current);
|
||
};
|
||
}, []);
|
||
return trigger;
|
||
}
|
||
function useRafState(defaultState) {
|
||
var batchRef = Object(react["useRef"])([]);
|
||
|
||
var _useState = Object(react["useState"])({}),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
forceUpdate = _useState2[1];
|
||
|
||
var state = Object(react["useRef"])(typeof defaultState === 'function' ? defaultState() : defaultState);
|
||
var flushUpdate = useRaf(function () {
|
||
var current = state.current;
|
||
batchRef.current.forEach(function (callback) {
|
||
current = callback(current);
|
||
});
|
||
batchRef.current = [];
|
||
state.current = current;
|
||
forceUpdate({});
|
||
});
|
||
|
||
function updater(callback) {
|
||
batchRef.current.push(callback);
|
||
flushUpdate();
|
||
}
|
||
|
||
return [state.current, updater];
|
||
}
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||
var KeyCode = __webpack_require__("4IlW");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabNavList/TabNode.js
|
||
|
||
|
||
|
||
|
||
|
||
function TabNode(_ref, ref) {
|
||
var _classNames;
|
||
|
||
var prefixCls = _ref.prefixCls,
|
||
id = _ref.id,
|
||
active = _ref.active,
|
||
rtl = _ref.rtl,
|
||
_ref$tab = _ref.tab,
|
||
key = _ref$tab.key,
|
||
tab = _ref$tab.tab,
|
||
disabled = _ref$tab.disabled,
|
||
closeIcon = _ref$tab.closeIcon,
|
||
tabBarGutter = _ref.tabBarGutter,
|
||
tabPosition = _ref.tabPosition,
|
||
closable = _ref.closable,
|
||
renderWrapper = _ref.renderWrapper,
|
||
removeAriaLabel = _ref.removeAriaLabel,
|
||
editable = _ref.editable,
|
||
onClick = _ref.onClick,
|
||
onRemove = _ref.onRemove,
|
||
onFocus = _ref.onFocus;
|
||
var tabPrefix = "".concat(prefixCls, "-tab");
|
||
react["useEffect"](function () {
|
||
return onRemove;
|
||
}, []);
|
||
var nodeStyle = {};
|
||
|
||
if (tabPosition === 'top' || tabPosition === 'bottom') {
|
||
nodeStyle[rtl ? 'marginLeft' : 'marginRight'] = tabBarGutter;
|
||
} else {
|
||
nodeStyle.marginBottom = tabBarGutter;
|
||
}
|
||
|
||
var removable = editable && closable !== false && !disabled;
|
||
|
||
function onInternalClick(e) {
|
||
if (disabled) return;
|
||
onClick(e);
|
||
}
|
||
|
||
function onRemoveTab(event) {
|
||
event.preventDefault();
|
||
event.stopPropagation();
|
||
editable.onEdit('remove', {
|
||
key: key,
|
||
event: event
|
||
});
|
||
}
|
||
|
||
var node = react["createElement"]("div", {
|
||
key: key,
|
||
ref: ref,
|
||
className: classnames_default()(tabPrefix, (_classNames = {}, Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(tabPrefix, "-with-remove"), removable), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(tabPrefix, "-active"), active), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
||
style: nodeStyle,
|
||
onClick: onInternalClick
|
||
}, react["createElement"]("div", {
|
||
role: "tab",
|
||
"aria-selected": active,
|
||
id: id && "".concat(id, "-tab-").concat(key),
|
||
className: "".concat(tabPrefix, "-btn"),
|
||
"aria-controls": id && "".concat(id, "-panel-").concat(key),
|
||
"aria-disabled": disabled,
|
||
tabIndex: disabled ? null : 0,
|
||
onClick: function onClick(e) {
|
||
e.stopPropagation();
|
||
onInternalClick(e);
|
||
},
|
||
onKeyDown: function onKeyDown(e) {
|
||
if ([KeyCode["a" /* default */].SPACE, KeyCode["a" /* default */].ENTER].includes(e.which)) {
|
||
e.preventDefault();
|
||
onInternalClick(e);
|
||
}
|
||
},
|
||
onFocus: onFocus
|
||
}, tab), removable && react["createElement"]("button", {
|
||
type: "button",
|
||
"aria-label": removeAriaLabel || 'remove',
|
||
tabIndex: 0,
|
||
className: "".concat(tabPrefix, "-remove"),
|
||
onClick: function onClick(e) {
|
||
e.stopPropagation();
|
||
onRemoveTab(e);
|
||
}
|
||
}, closeIcon || editable.removeIcon || '×'));
|
||
|
||
if (renderWrapper) {
|
||
node = renderWrapper(node);
|
||
}
|
||
|
||
return node;
|
||
}
|
||
|
||
/* harmony default export */ var TabNavList_TabNode = (react["forwardRef"](TabNode));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/hooks/useOffsets.js
|
||
|
||
|
||
var DEFAULT_SIZE = {
|
||
width: 0,
|
||
height: 0,
|
||
left: 0,
|
||
top: 0
|
||
};
|
||
function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
||
return Object(react["useMemo"])(function () {
|
||
var _tabs$;
|
||
|
||
var map = new Map();
|
||
var lastOffset = tabSizes.get((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key) || DEFAULT_SIZE;
|
||
var rightOffset = lastOffset.left + lastOffset.width;
|
||
|
||
for (var i = 0; i < tabs.length; i += 1) {
|
||
var key = tabs[i].key;
|
||
var data = tabSizes.get(key); // Reuse last one when not exist yet
|
||
|
||
if (!data) {
|
||
var _tabs;
|
||
|
||
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
||
}
|
||
|
||
var entity = map.get(key) || Object(objectSpread2["a" /* default */])({}, data); // Right
|
||
|
||
|
||
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
||
|
||
map.set(key, entity);
|
||
}
|
||
|
||
return map;
|
||
}, [tabs.map(function (tab) {
|
||
return tab.key;
|
||
}).join('_'), tabSizes, holderScrollWidth]);
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/hooks/useVisibleRange.js
|
||
|
||
var useVisibleRange_DEFAULT_SIZE = {
|
||
width: 0,
|
||
height: 0,
|
||
left: 0,
|
||
top: 0,
|
||
right: 0
|
||
};
|
||
function useVisibleRange(tabOffsets, containerSize, tabContentNodeSize, addNodeSize, _ref) {
|
||
var tabs = _ref.tabs,
|
||
tabPosition = _ref.tabPosition,
|
||
rtl = _ref.rtl;
|
||
var unit;
|
||
var position;
|
||
var transformSize;
|
||
|
||
if (['top', 'bottom'].includes(tabPosition)) {
|
||
unit = 'width';
|
||
position = rtl ? 'right' : 'left';
|
||
transformSize = Math.abs(containerSize.left);
|
||
} else {
|
||
unit = 'height';
|
||
position = 'top';
|
||
transformSize = -containerSize.top;
|
||
}
|
||
|
||
var basicSize = containerSize[unit];
|
||
var tabContentSize = tabContentNodeSize[unit];
|
||
var addSize = addNodeSize[unit];
|
||
var mergedBasicSize = basicSize;
|
||
|
||
if (tabContentSize + addSize > basicSize) {
|
||
mergedBasicSize = basicSize - addSize;
|
||
}
|
||
|
||
return Object(react["useMemo"])(function () {
|
||
if (!tabs.length) {
|
||
return [0, 0];
|
||
}
|
||
|
||
var len = tabs.length;
|
||
var endIndex = len;
|
||
|
||
for (var i = 0; i < len; i += 1) {
|
||
var offset = tabOffsets.get(tabs[i].key) || useVisibleRange_DEFAULT_SIZE;
|
||
|
||
if (offset[position] + offset[unit] > transformSize + mergedBasicSize) {
|
||
endIndex = i - 1;
|
||
break;
|
||
}
|
||
}
|
||
|
||
var startIndex = 0;
|
||
|
||
for (var _i = len - 1; _i >= 0; _i -= 1) {
|
||
var _offset = tabOffsets.get(tabs[_i].key) || useVisibleRange_DEFAULT_SIZE;
|
||
|
||
if (_offset[position] < transformSize) {
|
||
startIndex = _i + 1;
|
||
break;
|
||
}
|
||
}
|
||
|
||
return [startIndex, endIndex];
|
||
}, [tabOffsets, transformSize, mergedBasicSize, tabPosition, tabs.map(function (tab) {
|
||
return tab.key;
|
||
}).join('_'), rtl]);
|
||
}
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||
var esm_extends = __webpack_require__("wx14");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
||
var assertThisInitialized = __webpack_require__("JX7q");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/mini-store/esm/index.js + 3 modules
|
||
var esm = __webpack_require__("I8Z2");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js
|
||
var omit = __webpack_require__("bT9E");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/createChainedFunction.js
|
||
var createChainedFunction = __webpack_require__("2GS6");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/shallowequal/index.js
|
||
var shallowequal = __webpack_require__("Gytx");
|
||
var shallowequal_default = /*#__PURE__*/__webpack_require__.n(shallowequal);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
||
var esm_typeof = __webpack_require__("U8pU");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/utils/isMobile.js
|
||
|
||
|
||
// MIT License from https://github.com/kaimallea/isMobile
|
||
var applePhone = /iPhone/i;
|
||
var appleIpod = /iPod/i;
|
||
var appleTablet = /iPad/i;
|
||
var androidPhone = /\bAndroid(?:.+)Mobile\b/i; // Match 'Android' AND 'Mobile'
|
||
|
||
var androidTablet = /Android/i;
|
||
var amazonPhone = /\bAndroid(?:.+)SD4930UR\b/i;
|
||
var amazonTablet = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i;
|
||
var windowsPhone = /Windows Phone/i;
|
||
var windowsTablet = /\bWindows(?:.+)ARM\b/i; // Match 'Windows' AND 'ARM'
|
||
|
||
var otherBlackberry = /BlackBerry/i;
|
||
var otherBlackberry10 = /BB10/i;
|
||
var otherOpera = /Opera Mini/i;
|
||
var otherChrome = /\b(CriOS|Chrome)(?:.+)Mobile/i;
|
||
var otherFirefox = /Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'
|
||
|
||
function match(regex, userAgent) {
|
||
return regex.test(userAgent);
|
||
}
|
||
|
||
function isMobile(userAgent) {
|
||
var ua = userAgent || (typeof navigator !== 'undefined' ? navigator.userAgent : ''); // Facebook mobile app's integrated browser adds a bunch of strings that
|
||
// match everything. Strip it out if it exists.
|
||
|
||
var tmp = (ua || '').split('[FBAN');
|
||
|
||
if (typeof tmp[1] !== 'undefined') {
|
||
var _tmp = tmp;
|
||
|
||
var _tmp2 = Object(slicedToArray["a" /* default */])(_tmp, 1);
|
||
|
||
ua = _tmp2[0];
|
||
} // Twitter mobile app's integrated browser on iPad adds a "Twitter for
|
||
// iPhone" string. Same probably happens on other tablet platforms.
|
||
// This will confuse detection so strip it out if it exists.
|
||
|
||
|
||
tmp = ua.split('Twitter');
|
||
|
||
if (typeof tmp[1] !== 'undefined') {
|
||
var _tmp3 = tmp;
|
||
|
||
var _tmp4 = Object(slicedToArray["a" /* default */])(_tmp3, 1);
|
||
|
||
ua = _tmp4[0];
|
||
}
|
||
|
||
var result = {
|
||
apple: {
|
||
phone: match(applePhone, ua) && !match(windowsPhone, ua),
|
||
ipod: match(appleIpod, ua),
|
||
tablet: !match(applePhone, ua) && match(appleTablet, ua) && !match(windowsPhone, ua),
|
||
device: (match(applePhone, ua) || match(appleIpod, ua) || match(appleTablet, ua)) && !match(windowsPhone, ua)
|
||
},
|
||
amazon: {
|
||
phone: match(amazonPhone, ua),
|
||
tablet: !match(amazonPhone, ua) && match(amazonTablet, ua),
|
||
device: match(amazonPhone, ua) || match(amazonTablet, ua)
|
||
},
|
||
android: {
|
||
phone: !match(windowsPhone, ua) && match(amazonPhone, ua) || !match(windowsPhone, ua) && match(androidPhone, ua),
|
||
tablet: !match(windowsPhone, ua) && !match(amazonPhone, ua) && !match(androidPhone, ua) && (match(amazonTablet, ua) || match(androidTablet, ua)),
|
||
device: !match(windowsPhone, ua) && (match(amazonPhone, ua) || match(amazonTablet, ua) || match(androidPhone, ua) || match(androidTablet, ua)) || match(/\bokhttp\b/i, ua)
|
||
},
|
||
windows: {
|
||
phone: match(windowsPhone, ua),
|
||
tablet: match(windowsTablet, ua),
|
||
device: match(windowsPhone, ua) || match(windowsTablet, ua)
|
||
},
|
||
other: {
|
||
blackberry: match(otherBlackberry, ua),
|
||
blackberry10: match(otherBlackberry10, ua),
|
||
opera: match(otherOpera, ua),
|
||
firefox: match(otherFirefox, ua),
|
||
chrome: match(otherChrome, ua),
|
||
device: match(otherBlackberry, ua) || match(otherBlackberry10, ua) || match(otherOpera, ua) || match(otherFirefox, ua) || match(otherChrome, ua)
|
||
},
|
||
// Additional
|
||
any: null,
|
||
phone: null,
|
||
tablet: null
|
||
};
|
||
result.any = result.apple.device || result.android.device || result.windows.device || result.other.device; // excludes 'other' devices and ipods, targeting touchscreen phones
|
||
|
||
result.phone = result.apple.phone || result.android.phone || result.windows.phone;
|
||
result.tablet = result.apple.tablet || result.android.tablet || result.windows.tablet;
|
||
return result;
|
||
}
|
||
|
||
var defaultResult = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, isMobile()), {}, {
|
||
isMobile: isMobile
|
||
});
|
||
|
||
/* harmony default export */ var utils_isMobile = (defaultResult);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/util.js
|
||
|
||
|
||
|
||
function noop() {}
|
||
function getKeyFromChildrenIndex(child, menuEventKey, index) {
|
||
var prefix = menuEventKey || '';
|
||
return child.key || "".concat(prefix, "item_").concat(index);
|
||
}
|
||
function getMenuIdFromSubMenuEventKey(eventKey) {
|
||
return "".concat(eventKey, "-menu-");
|
||
}
|
||
function loopMenuItem(children, cb) {
|
||
var index = -1;
|
||
react["Children"].forEach(children, function (c) {
|
||
index += 1;
|
||
|
||
if (c && c.type && c.type.isMenuItemGroup) {
|
||
react["Children"].forEach(c.props.children, function (c2) {
|
||
index += 1;
|
||
cb(c2, index);
|
||
});
|
||
} else {
|
||
cb(c, index);
|
||
}
|
||
});
|
||
}
|
||
function loopMenuItemRecursively(children, keys, ret) {
|
||
/* istanbul ignore if */
|
||
if (!children || ret.find) {
|
||
return;
|
||
}
|
||
|
||
react["Children"].forEach(children, function (c) {
|
||
if (c) {
|
||
var construct = c.type;
|
||
|
||
if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
|
||
return;
|
||
}
|
||
|
||
if (keys.indexOf(c.key) !== -1) {
|
||
// eslint-disable-next-line no-param-reassign
|
||
ret.find = true;
|
||
} else if (c.props.children) {
|
||
loopMenuItemRecursively(c.props.children, keys, ret);
|
||
}
|
||
}
|
||
});
|
||
}
|
||
var menuAllProps = ['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', // the following keys found need to be removed from test regression
|
||
'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; // ref: https://github.com/ant-design/ant-design/issues/14007
|
||
// ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
|
||
// getBoundingClientRect return the full precision value, which is
|
||
// not the same behavior as on chrome. Set the precision to 6 to
|
||
// unify their behavior
|
||
|
||
var getWidth = function getWidth(elem) {
|
||
var includeMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||
var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
|
||
|
||
if (width) {
|
||
if (includeMargin) {
|
||
var _getComputedStyle = getComputedStyle(elem),
|
||
marginLeft = _getComputedStyle.marginLeft,
|
||
marginRight = _getComputedStyle.marginRight;
|
||
|
||
width += +marginLeft.replace('px', '') + +marginRight.replace('px', '');
|
||
}
|
||
|
||
width = +width.toFixed(6);
|
||
}
|
||
|
||
return width || 0;
|
||
};
|
||
var util_setStyle = function setStyle(elem, styleProperty, value) {
|
||
if (elem && Object(esm_typeof["a" /* default */])(elem.style) === 'object') {
|
||
// eslint-disable-next-line no-param-reassign
|
||
elem.style[styleProperty] = value;
|
||
}
|
||
};
|
||
var util_isMobileDevice = function isMobileDevice() {
|
||
return utils_isMobile.any;
|
||
};
|
||
// EXTERNAL MODULE: ./node_modules/react-dom/index.js
|
||
var react_dom = __webpack_require__("i8i4");
|
||
var react_dom_default = /*#__PURE__*/__webpack_require__.n(react_dom);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/raf.js
|
||
var es_raf = __webpack_require__("wgJM");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/contains.js
|
||
var contains = __webpack_require__("l4aY");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/addEventListener.js
|
||
var addEventListener = __webpack_require__("zT1h");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Portal.js
|
||
var Portal = __webpack_require__("QC+M");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/utils/alignUtil.js
|
||
|
||
|
||
function isPointsEq(a1, a2, isAlignPoint) {
|
||
if (isAlignPoint) {
|
||
return a1[0] === a2[0];
|
||
}
|
||
|
||
return a1[0] === a2[0] && a1[1] === a2[1];
|
||
}
|
||
|
||
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
||
var baseAlign = builtinPlacements[placementStr] || {};
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, baseAlign), align);
|
||
}
|
||
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
||
var points = align.points;
|
||
var placements = Object.keys(builtinPlacements);
|
||
|
||
for (var i = 0; i < placements.length; i += 1) {
|
||
var placement = placements[i];
|
||
|
||
if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
|
||
return "".concat(prefixCls, "-placement-").concat(placement);
|
||
}
|
||
}
|
||
|
||
return '';
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-util/es/isMobile.js
|
||
/* harmony default export */ var es_isMobile = (function () {
|
||
if (typeof navigator === 'undefined' || typeof window === 'undefined') {
|
||
return false;
|
||
}
|
||
var agent = 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(agent) || /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(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
|
||
});
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/context.js
|
||
|
||
var _excluded = ["children"];
|
||
|
||
var context_Context = /*#__PURE__*/react["createContext"]({});
|
||
function MotionProvider(_ref) {
|
||
var children = _ref.children,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, _excluded);
|
||
return /*#__PURE__*/react["createElement"](context_Context.Provider, {
|
||
value: props
|
||
}, children);
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/DomWrapper.js
|
||
|
||
|
||
|
||
|
||
|
||
var DomWrapper_DomWrapper = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(DomWrapper, _React$Component);
|
||
var _super = Object(createSuper["a" /* default */])(DomWrapper);
|
||
function DomWrapper() {
|
||
Object(classCallCheck["a" /* default */])(this, DomWrapper);
|
||
return _super.apply(this, arguments);
|
||
}
|
||
Object(createClass["a" /* default */])(DomWrapper, [{
|
||
key: "render",
|
||
value: function render() {
|
||
return this.props.children;
|
||
}
|
||
}]);
|
||
return DomWrapper;
|
||
}(react["Component"]);
|
||
/* harmony default export */ var es_DomWrapper = (DomWrapper_DomWrapper);
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useState.js
|
||
var useState = __webpack_require__("dm2S");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/interface.js
|
||
var STATUS_NONE = 'none';
|
||
var STATUS_APPEAR = 'appear';
|
||
var STATUS_ENTER = 'enter';
|
||
var STATUS_LEAVE = 'leave';
|
||
var STEP_NONE = 'none';
|
||
var STEP_PREPARE = 'prepare';
|
||
var STEP_START = 'start';
|
||
var STEP_ACTIVE = 'active';
|
||
var STEP_ACTIVATED = 'end';
|
||
/**
|
||
* Used for disabled motion case.
|
||
* Prepare stage will still work but start & active will be skipped.
|
||
*/
|
||
var STEP_PREPARED = 'prepared';
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/canUseDom.js
|
||
var canUseDom = __webpack_require__("MNnm");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/motion.js
|
||
|
||
|
||
// ================= Transition =================
|
||
// Event wrapper. Copy from react source code
|
||
function makePrefixMap(styleProp, eventName) {
|
||
var prefixes = {};
|
||
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
|
||
prefixes["Webkit".concat(styleProp)] = "webkit".concat(eventName);
|
||
prefixes["Moz".concat(styleProp)] = "moz".concat(eventName);
|
||
prefixes["ms".concat(styleProp)] = "MS".concat(eventName);
|
||
prefixes["O".concat(styleProp)] = "o".concat(eventName.toLowerCase());
|
||
return prefixes;
|
||
}
|
||
function getVendorPrefixes(domSupport, win) {
|
||
var prefixes = {
|
||
animationend: makePrefixMap('Animation', 'AnimationEnd'),
|
||
transitionend: makePrefixMap('Transition', 'TransitionEnd')
|
||
};
|
||
if (domSupport) {
|
||
if (!('AnimationEvent' in win)) {
|
||
delete prefixes.animationend.animation;
|
||
}
|
||
if (!('TransitionEvent' in win)) {
|
||
delete prefixes.transitionend.transition;
|
||
}
|
||
}
|
||
return prefixes;
|
||
}
|
||
var vendorPrefixes = getVendorPrefixes(Object(canUseDom["a" /* default */])(), typeof window !== 'undefined' ? window : {});
|
||
var motion_style = {};
|
||
if (Object(canUseDom["a" /* default */])()) {
|
||
var _document$createEleme = document.createElement('div');
|
||
motion_style = _document$createEleme.style;
|
||
}
|
||
var prefixedEventNames = {};
|
||
function getVendorPrefixedEventName(eventName) {
|
||
if (prefixedEventNames[eventName]) {
|
||
return prefixedEventNames[eventName];
|
||
}
|
||
var prefixMap = vendorPrefixes[eventName];
|
||
if (prefixMap) {
|
||
var stylePropList = Object.keys(prefixMap);
|
||
var len = stylePropList.length;
|
||
for (var i = 0; i < len; i += 1) {
|
||
var styleProp = stylePropList[i];
|
||
if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in motion_style) {
|
||
prefixedEventNames[eventName] = prefixMap[styleProp];
|
||
return prefixedEventNames[eventName];
|
||
}
|
||
}
|
||
}
|
||
return '';
|
||
}
|
||
var internalAnimationEndName = getVendorPrefixedEventName('animationend');
|
||
var internalTransitionEndName = getVendorPrefixedEventName('transitionend');
|
||
var supportTransition = !!(internalAnimationEndName && internalTransitionEndName);
|
||
var animationEndName = internalAnimationEndName || 'animationend';
|
||
var transitionEndName = internalTransitionEndName || 'transitionend';
|
||
function getTransitionName(transitionName, transitionType) {
|
||
if (!transitionName) return null;
|
||
if (Object(esm_typeof["a" /* default */])(transitionName) === 'object') {
|
||
var type = transitionType.replace(/-\w/g, function (match) {
|
||
return match[1].toUpperCase();
|
||
});
|
||
return transitionName[type];
|
||
}
|
||
return "".concat(transitionName, "-").concat(transitionType);
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/hooks/useDomMotionEvents.js
|
||
|
||
|
||
|
||
/* harmony default export */ var useDomMotionEvents = (function (callback) {
|
||
var cacheElementRef = Object(react["useRef"])();
|
||
|
||
// Cache callback
|
||
var callbackRef = Object(react["useRef"])(callback);
|
||
callbackRef.current = callback;
|
||
|
||
// Internal motion event handler
|
||
var onInternalMotionEnd = react["useCallback"](function (event) {
|
||
callbackRef.current(event);
|
||
}, []);
|
||
|
||
// Remove events
|
||
function removeMotionEvents(element) {
|
||
if (element) {
|
||
element.removeEventListener(transitionEndName, onInternalMotionEnd);
|
||
element.removeEventListener(animationEndName, onInternalMotionEnd);
|
||
}
|
||
}
|
||
|
||
// Patch events
|
||
function patchMotionEvents(element) {
|
||
if (cacheElementRef.current && cacheElementRef.current !== element) {
|
||
removeMotionEvents(cacheElementRef.current);
|
||
}
|
||
if (element && element !== cacheElementRef.current) {
|
||
element.addEventListener(transitionEndName, onInternalMotionEnd);
|
||
element.addEventListener(animationEndName, onInternalMotionEnd);
|
||
|
||
// Save as cache in case dom removed trigger by `motionDeadline`
|
||
cacheElementRef.current = element;
|
||
}
|
||
}
|
||
|
||
// Clean up when removed
|
||
react["useEffect"](function () {
|
||
return function () {
|
||
removeMotionEvents(cacheElementRef.current);
|
||
};
|
||
}, []);
|
||
return [patchMotionEvents, removeMotionEvents];
|
||
});
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js
|
||
|
||
|
||
|
||
// It's safe to use `useLayoutEffect` but the warning is annoying
|
||
var useIsomorphicLayoutEffect = Object(canUseDom["a" /* default */])() ? react["useLayoutEffect"] : react["useEffect"];
|
||
/* harmony default export */ var hooks_useIsomorphicLayoutEffect = (useIsomorphicLayoutEffect);
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/hooks/useNextFrame.js
|
||
|
||
|
||
/* harmony default export */ var useNextFrame = (function () {
|
||
var nextFrameRef = react["useRef"](null);
|
||
function cancelNextFrame() {
|
||
es_raf["a" /* default */].cancel(nextFrameRef.current);
|
||
}
|
||
function nextFrame(callback) {
|
||
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
||
cancelNextFrame();
|
||
var nextFrameId = Object(es_raf["a" /* default */])(function () {
|
||
if (delay <= 1) {
|
||
callback({
|
||
isCanceled: function isCanceled() {
|
||
return nextFrameId !== nextFrameRef.current;
|
||
}
|
||
});
|
||
} else {
|
||
nextFrame(callback, delay - 1);
|
||
}
|
||
});
|
||
nextFrameRef.current = nextFrameId;
|
||
}
|
||
react["useEffect"](function () {
|
||
return function () {
|
||
cancelNextFrame();
|
||
};
|
||
}, []);
|
||
return [nextFrame, cancelNextFrame];
|
||
});
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/hooks/useStepQueue.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var FULL_STEP_QUEUE = [STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED];
|
||
var SIMPLE_STEP_QUEUE = [STEP_PREPARE, STEP_PREPARED];
|
||
|
||
/** Skip current step */
|
||
var SkipStep = false;
|
||
/** Current step should be update in */
|
||
var DoStep = true;
|
||
function useStepQueue_isActive(step) {
|
||
return step === STEP_ACTIVE || step === STEP_ACTIVATED;
|
||
}
|
||
/* harmony default export */ var useStepQueue = (function (status, prepareOnly, callback) {
|
||
var _useState = Object(useState["a" /* default */])(STEP_NONE),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
step = _useState2[0],
|
||
setStep = _useState2[1];
|
||
var _useNextFrame = useNextFrame(),
|
||
_useNextFrame2 = Object(slicedToArray["a" /* default */])(_useNextFrame, 2),
|
||
nextFrame = _useNextFrame2[0],
|
||
cancelNextFrame = _useNextFrame2[1];
|
||
function startQueue() {
|
||
setStep(STEP_PREPARE, true);
|
||
}
|
||
var STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
|
||
hooks_useIsomorphicLayoutEffect(function () {
|
||
if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
|
||
var index = STEP_QUEUE.indexOf(step);
|
||
var nextStep = STEP_QUEUE[index + 1];
|
||
var result = callback(step);
|
||
if (result === SkipStep) {
|
||
// Skip when no needed
|
||
setStep(nextStep, true);
|
||
} else if (nextStep) {
|
||
// Do as frame for step update
|
||
nextFrame(function (info) {
|
||
function doNext() {
|
||
// Skip since current queue is ood
|
||
if (info.isCanceled()) return;
|
||
setStep(nextStep, true);
|
||
}
|
||
if (result === true) {
|
||
doNext();
|
||
} else {
|
||
// Only promise should be async
|
||
Promise.resolve(result).then(doNext);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
}, [status, step]);
|
||
react["useEffect"](function () {
|
||
return function () {
|
||
cancelNextFrame();
|
||
};
|
||
}, []);
|
||
return [startQueue, step];
|
||
});
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/hooks/useStatus.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function useStatus(supportMotion, visible, getElement, _ref) {
|
||
var _ref$motionEnter = _ref.motionEnter,
|
||
motionEnter = _ref$motionEnter === void 0 ? true : _ref$motionEnter,
|
||
_ref$motionAppear = _ref.motionAppear,
|
||
motionAppear = _ref$motionAppear === void 0 ? true : _ref$motionAppear,
|
||
_ref$motionLeave = _ref.motionLeave,
|
||
motionLeave = _ref$motionLeave === void 0 ? true : _ref$motionLeave,
|
||
motionDeadline = _ref.motionDeadline,
|
||
motionLeaveImmediately = _ref.motionLeaveImmediately,
|
||
onAppearPrepare = _ref.onAppearPrepare,
|
||
onEnterPrepare = _ref.onEnterPrepare,
|
||
onLeavePrepare = _ref.onLeavePrepare,
|
||
onAppearStart = _ref.onAppearStart,
|
||
onEnterStart = _ref.onEnterStart,
|
||
onLeaveStart = _ref.onLeaveStart,
|
||
onAppearActive = _ref.onAppearActive,
|
||
onEnterActive = _ref.onEnterActive,
|
||
onLeaveActive = _ref.onLeaveActive,
|
||
onAppearEnd = _ref.onAppearEnd,
|
||
onEnterEnd = _ref.onEnterEnd,
|
||
onLeaveEnd = _ref.onLeaveEnd,
|
||
onVisibleChanged = _ref.onVisibleChanged;
|
||
// Used for outer render usage to avoid `visible: false & status: none` to render nothing
|
||
var _useState = Object(useState["a" /* default */])(),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
asyncVisible = _useState2[0],
|
||
setAsyncVisible = _useState2[1];
|
||
var _useState3 = Object(useState["a" /* default */])(STATUS_NONE),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
status = _useState4[0],
|
||
setStatus = _useState4[1];
|
||
var _useState5 = Object(useState["a" /* default */])(null),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
style = _useState6[0],
|
||
setStyle = _useState6[1];
|
||
var mountedRef = Object(react["useRef"])(false);
|
||
var deadlineRef = Object(react["useRef"])(null);
|
||
|
||
// =========================== Dom Node ===========================
|
||
function getDomElement() {
|
||
return getElement();
|
||
}
|
||
|
||
// ========================== Motion End ==========================
|
||
var activeRef = Object(react["useRef"])(false);
|
||
|
||
/**
|
||
* Clean up status & style
|
||
*/
|
||
function updateMotionEndStatus() {
|
||
setStatus(STATUS_NONE, true);
|
||
setStyle(null, true);
|
||
}
|
||
function onInternalMotionEnd(event) {
|
||
var element = getDomElement();
|
||
if (event && !event.deadline && event.target !== element) {
|
||
// event exists
|
||
// not initiated by deadline
|
||
// transitionEnd not fired by inner elements
|
||
return;
|
||
}
|
||
var currentActive = activeRef.current;
|
||
var canEnd;
|
||
if (status === STATUS_APPEAR && currentActive) {
|
||
canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element, event);
|
||
} else if (status === STATUS_ENTER && currentActive) {
|
||
canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element, event);
|
||
} else if (status === STATUS_LEAVE && currentActive) {
|
||
canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element, event);
|
||
}
|
||
|
||
// Only update status when `canEnd` and not destroyed
|
||
if (status !== STATUS_NONE && currentActive && canEnd !== false) {
|
||
updateMotionEndStatus();
|
||
}
|
||
}
|
||
var _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd),
|
||
_useDomMotionEvents2 = Object(slicedToArray["a" /* default */])(_useDomMotionEvents, 1),
|
||
patchMotionEvents = _useDomMotionEvents2[0];
|
||
|
||
// ============================= Step =============================
|
||
var getEventHandlers = function getEventHandlers(targetStatus) {
|
||
var _ref2, _ref3, _ref4;
|
||
switch (targetStatus) {
|
||
case STATUS_APPEAR:
|
||
return _ref2 = {}, Object(esm_defineProperty["a" /* default */])(_ref2, STEP_PREPARE, onAppearPrepare), Object(esm_defineProperty["a" /* default */])(_ref2, STEP_START, onAppearStart), Object(esm_defineProperty["a" /* default */])(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
||
case STATUS_ENTER:
|
||
return _ref3 = {}, Object(esm_defineProperty["a" /* default */])(_ref3, STEP_PREPARE, onEnterPrepare), Object(esm_defineProperty["a" /* default */])(_ref3, STEP_START, onEnterStart), Object(esm_defineProperty["a" /* default */])(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
||
case STATUS_LEAVE:
|
||
return _ref4 = {}, Object(esm_defineProperty["a" /* default */])(_ref4, STEP_PREPARE, onLeavePrepare), Object(esm_defineProperty["a" /* default */])(_ref4, STEP_START, onLeaveStart), Object(esm_defineProperty["a" /* default */])(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
||
default:
|
||
return {};
|
||
}
|
||
};
|
||
var eventHandlers = react["useMemo"](function () {
|
||
return getEventHandlers(status);
|
||
}, [status]);
|
||
var _useStepQueue = useStepQueue(status, !supportMotion, function (newStep) {
|
||
// Only prepare step can be skip
|
||
if (newStep === STEP_PREPARE) {
|
||
var onPrepare = eventHandlers[STEP_PREPARE];
|
||
if (!onPrepare) {
|
||
return SkipStep;
|
||
}
|
||
return onPrepare(getDomElement());
|
||
}
|
||
|
||
// Rest step is sync update
|
||
if (step in eventHandlers) {
|
||
var _eventHandlers$step;
|
||
setStyle(((_eventHandlers$step = eventHandlers[step]) === null || _eventHandlers$step === void 0 ? void 0 : _eventHandlers$step.call(eventHandlers, getDomElement(), null)) || null);
|
||
}
|
||
if (step === STEP_ACTIVE) {
|
||
// Patch events when motion needed
|
||
patchMotionEvents(getDomElement());
|
||
if (motionDeadline > 0) {
|
||
clearTimeout(deadlineRef.current);
|
||
deadlineRef.current = setTimeout(function () {
|
||
onInternalMotionEnd({
|
||
deadline: true
|
||
});
|
||
}, motionDeadline);
|
||
}
|
||
}
|
||
if (step === STEP_PREPARED) {
|
||
updateMotionEndStatus();
|
||
}
|
||
return DoStep;
|
||
}),
|
||
_useStepQueue2 = Object(slicedToArray["a" /* default */])(_useStepQueue, 2),
|
||
startStep = _useStepQueue2[0],
|
||
step = _useStepQueue2[1];
|
||
var active = useStepQueue_isActive(step);
|
||
activeRef.current = active;
|
||
|
||
// ============================ Status ============================
|
||
// Update with new status
|
||
hooks_useIsomorphicLayoutEffect(function () {
|
||
setAsyncVisible(visible);
|
||
var isMounted = mountedRef.current;
|
||
mountedRef.current = true;
|
||
|
||
// if (!supportMotion) {
|
||
// return;
|
||
// }
|
||
|
||
var nextStatus;
|
||
|
||
// Appear
|
||
if (!isMounted && visible && motionAppear) {
|
||
nextStatus = STATUS_APPEAR;
|
||
}
|
||
|
||
// Enter
|
||
if (isMounted && visible && motionEnter) {
|
||
nextStatus = STATUS_ENTER;
|
||
}
|
||
|
||
// Leave
|
||
if (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) {
|
||
nextStatus = STATUS_LEAVE;
|
||
}
|
||
var nextEventHandlers = getEventHandlers(nextStatus);
|
||
|
||
// Update to next status
|
||
if (nextStatus && (supportMotion || nextEventHandlers[STEP_PREPARE])) {
|
||
setStatus(nextStatus);
|
||
startStep();
|
||
} else {
|
||
// Set back in case no motion but prev status has prepare step
|
||
setStatus(STATUS_NONE);
|
||
}
|
||
}, [visible]);
|
||
|
||
// ============================ Effect ============================
|
||
// Reset when motion changed
|
||
Object(react["useEffect"])(function () {
|
||
if (
|
||
// Cancel appear
|
||
status === STATUS_APPEAR && !motionAppear ||
|
||
// Cancel enter
|
||
status === STATUS_ENTER && !motionEnter ||
|
||
// Cancel leave
|
||
status === STATUS_LEAVE && !motionLeave) {
|
||
setStatus(STATUS_NONE);
|
||
}
|
||
}, [motionAppear, motionEnter, motionLeave]);
|
||
Object(react["useEffect"])(function () {
|
||
return function () {
|
||
mountedRef.current = false;
|
||
clearTimeout(deadlineRef.current);
|
||
};
|
||
}, []);
|
||
|
||
// Trigger `onVisibleChanged`
|
||
var firstMountChangeRef = react["useRef"](false);
|
||
Object(react["useEffect"])(function () {
|
||
// [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged
|
||
if (asyncVisible) {
|
||
firstMountChangeRef.current = true;
|
||
}
|
||
if (asyncVisible !== undefined && status === STATUS_NONE) {
|
||
// Skip first render is invisible since it's nothing changed
|
||
if (firstMountChangeRef.current || asyncVisible) {
|
||
onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
|
||
}
|
||
firstMountChangeRef.current = true;
|
||
}
|
||
}, [asyncVisible, status]);
|
||
|
||
// ============================ Styles ============================
|
||
var mergedStyle = style;
|
||
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
||
mergedStyle = Object(objectSpread2["a" /* default */])({
|
||
transition: 'none'
|
||
}, mergedStyle);
|
||
}
|
||
return [status, step, mergedStyle, asyncVisible !== null && asyncVisible !== void 0 ? asyncVisible : visible];
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/CSSMotion.js
|
||
|
||
|
||
|
||
|
||
/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp, react/prop-types */
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/**
|
||
* `transitionSupport` is used for none transition test case.
|
||
* Default we use browser transition event support check.
|
||
*/
|
||
function genCSSMotion(config) {
|
||
var transitionSupport = config;
|
||
if (Object(esm_typeof["a" /* default */])(config) === 'object') {
|
||
transitionSupport = config.transitionSupport;
|
||
}
|
||
function isSupportTransition(props, contextMotion) {
|
||
return !!(props.motionName && transitionSupport && contextMotion !== false);
|
||
}
|
||
var CSSMotion = /*#__PURE__*/react["forwardRef"](function (props, ref) {
|
||
var _props$visible = props.visible,
|
||
visible = _props$visible === void 0 ? true : _props$visible,
|
||
_props$removeOnLeave = props.removeOnLeave,
|
||
removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave,
|
||
forceRender = props.forceRender,
|
||
children = props.children,
|
||
motionName = props.motionName,
|
||
leavedClassName = props.leavedClassName,
|
||
eventProps = props.eventProps;
|
||
var _React$useContext = react["useContext"](context_Context),
|
||
contextMotion = _React$useContext.motion;
|
||
var supportMotion = isSupportTransition(props, contextMotion);
|
||
|
||
// Ref to the react node, it may be a HTMLElement
|
||
var nodeRef = Object(react["useRef"])();
|
||
// Ref to the dom wrapper in case ref can not pass to HTMLElement
|
||
var wrapperNodeRef = Object(react["useRef"])();
|
||
function getDomElement() {
|
||
try {
|
||
// Here we're avoiding call for findDOMNode since it's deprecated
|
||
// in strict mode. We're calling it only when node ref is not
|
||
// an instance of DOM HTMLElement. Otherwise use
|
||
// findDOMNode as a final resort
|
||
return nodeRef.current instanceof HTMLElement ? nodeRef.current : Object(findDOMNode["a" /* default */])(wrapperNodeRef.current);
|
||
} catch (e) {
|
||
// Only happen when `motionDeadline` trigger but element removed.
|
||
return null;
|
||
}
|
||
}
|
||
var _useStatus = useStatus(supportMotion, visible, getDomElement, props),
|
||
_useStatus2 = Object(slicedToArray["a" /* default */])(_useStatus, 4),
|
||
status = _useStatus2[0],
|
||
statusStep = _useStatus2[1],
|
||
statusStyle = _useStatus2[2],
|
||
mergedVisible = _useStatus2[3];
|
||
|
||
// Record whether content has rendered
|
||
// Will return null for un-rendered even when `removeOnLeave={false}`
|
||
var renderedRef = react["useRef"](mergedVisible);
|
||
if (mergedVisible) {
|
||
renderedRef.current = true;
|
||
}
|
||
|
||
// ====================== Refs ======================
|
||
var setNodeRef = react["useCallback"](function (node) {
|
||
nodeRef.current = node;
|
||
Object(es_ref["b" /* fillRef */])(ref, node);
|
||
}, [ref]);
|
||
|
||
// ===================== Render =====================
|
||
var motionChildren;
|
||
var mergedProps = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, eventProps), {}, {
|
||
visible: visible
|
||
});
|
||
if (!children) {
|
||
// No children
|
||
motionChildren = null;
|
||
} else if (status === STATUS_NONE) {
|
||
// Stable children
|
||
if (mergedVisible) {
|
||
motionChildren = children(Object(objectSpread2["a" /* default */])({}, mergedProps), setNodeRef);
|
||
} else if (!removeOnLeave && renderedRef.current && leavedClassName) {
|
||
motionChildren = children(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, mergedProps), {}, {
|
||
className: leavedClassName
|
||
}), setNodeRef);
|
||
} else if (forceRender || !removeOnLeave && !leavedClassName) {
|
||
motionChildren = children(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, mergedProps), {}, {
|
||
style: {
|
||
display: 'none'
|
||
}
|
||
}), setNodeRef);
|
||
} else {
|
||
motionChildren = null;
|
||
}
|
||
} else {
|
||
var _classNames;
|
||
// In motion
|
||
var statusSuffix;
|
||
if (statusStep === STEP_PREPARE) {
|
||
statusSuffix = 'prepare';
|
||
} else if (useStepQueue_isActive(statusStep)) {
|
||
statusSuffix = 'active';
|
||
} else if (statusStep === STEP_START) {
|
||
statusSuffix = 'start';
|
||
}
|
||
var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
|
||
motionChildren = children(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, mergedProps), {}, {
|
||
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, Object(esm_defineProperty["a" /* default */])(_classNames, motionCls, motionCls && statusSuffix), Object(esm_defineProperty["a" /* default */])(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
||
style: statusStyle
|
||
}), setNodeRef);
|
||
}
|
||
|
||
// Auto inject ref if child node not have `ref` props
|
||
if ( /*#__PURE__*/react["isValidElement"](motionChildren) && Object(es_ref["c" /* supportRef */])(motionChildren)) {
|
||
var _ref = motionChildren,
|
||
originNodeRef = _ref.ref;
|
||
if (!originNodeRef) {
|
||
motionChildren = /*#__PURE__*/react["cloneElement"](motionChildren, {
|
||
ref: setNodeRef
|
||
});
|
||
}
|
||
}
|
||
return /*#__PURE__*/react["createElement"](es_DomWrapper, {
|
||
ref: wrapperNodeRef
|
||
}, motionChildren);
|
||
});
|
||
CSSMotion.displayName = 'CSSMotion';
|
||
return CSSMotion;
|
||
}
|
||
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
||
|
||
|
||
var STATUS_ADD = 'add';
|
||
var STATUS_KEEP = 'keep';
|
||
var STATUS_REMOVE = 'remove';
|
||
var STATUS_REMOVED = 'removed';
|
||
function wrapKeyToObject(key) {
|
||
var keyObj;
|
||
if (key && Object(esm_typeof["a" /* default */])(key) === 'object' && 'key' in key) {
|
||
keyObj = key;
|
||
} else {
|
||
keyObj = {
|
||
key: key
|
||
};
|
||
}
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, keyObj), {}, {
|
||
key: String(keyObj.key)
|
||
});
|
||
}
|
||
function parseKeys() {
|
||
var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||
return keys.map(wrapKeyToObject);
|
||
}
|
||
function diffKeys() {
|
||
var prevKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||
var currentKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
||
var list = [];
|
||
var currentIndex = 0;
|
||
var currentLen = currentKeys.length;
|
||
var prevKeyObjects = parseKeys(prevKeys);
|
||
var currentKeyObjects = parseKeys(currentKeys);
|
||
|
||
// Check prev keys to insert or keep
|
||
prevKeyObjects.forEach(function (keyObj) {
|
||
var hit = false;
|
||
for (var i = currentIndex; i < currentLen; i += 1) {
|
||
var currentKeyObj = currentKeyObjects[i];
|
||
if (currentKeyObj.key === keyObj.key) {
|
||
// New added keys should add before current key
|
||
if (currentIndex < i) {
|
||
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, obj), {}, {
|
||
status: STATUS_ADD
|
||
});
|
||
}));
|
||
currentIndex = i;
|
||
}
|
||
list.push(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, currentKeyObj), {}, {
|
||
status: STATUS_KEEP
|
||
}));
|
||
currentIndex += 1;
|
||
hit = true;
|
||
break;
|
||
}
|
||
}
|
||
|
||
// If not hit, it means key is removed
|
||
if (!hit) {
|
||
list.push(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, keyObj), {}, {
|
||
status: STATUS_REMOVE
|
||
}));
|
||
}
|
||
});
|
||
|
||
// Add rest to the list
|
||
if (currentIndex < currentLen) {
|
||
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, obj), {}, {
|
||
status: STATUS_ADD
|
||
});
|
||
}));
|
||
}
|
||
|
||
/**
|
||
* Merge same key when it remove and add again:
|
||
* [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]
|
||
*/
|
||
var keys = {};
|
||
list.forEach(function (_ref) {
|
||
var key = _ref.key;
|
||
keys[key] = (keys[key] || 0) + 1;
|
||
});
|
||
var duplicatedKeys = Object.keys(keys).filter(function (key) {
|
||
return keys[key] > 1;
|
||
});
|
||
duplicatedKeys.forEach(function (matchKey) {
|
||
// Remove `STATUS_REMOVE` node.
|
||
list = list.filter(function (_ref2) {
|
||
var key = _ref2.key,
|
||
status = _ref2.status;
|
||
return key !== matchKey || status !== STATUS_REMOVE;
|
||
});
|
||
|
||
// Update `STATUS_ADD` to `STATUS_KEEP`
|
||
list.forEach(function (node) {
|
||
if (node.key === matchKey) {
|
||
// eslint-disable-next-line no-param-reassign
|
||
node.status = STATUS_KEEP;
|
||
}
|
||
});
|
||
});
|
||
return list;
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/CSSMotionList.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var CSSMotionList_excluded = ["component", "children", "onVisibleChanged", "onAllRemoved"],
|
||
_excluded2 = ["status"];
|
||
/* eslint react/prop-types: 0 */
|
||
|
||
|
||
|
||
|
||
var MOTION_PROP_NAMES = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearPrepare', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
|
||
/**
|
||
* Generate a CSSMotionList component with config
|
||
* @param transitionSupport No need since CSSMotionList no longer depends on transition support
|
||
* @param CSSMotion CSSMotion component
|
||
*/
|
||
function genCSSMotionList(transitionSupport) {
|
||
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
||
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(CSSMotionList, _React$Component);
|
||
var _super = Object(createSuper["a" /* default */])(CSSMotionList);
|
||
function CSSMotionList() {
|
||
var _this;
|
||
Object(classCallCheck["a" /* default */])(this, CSSMotionList);
|
||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
args[_key] = arguments[_key];
|
||
}
|
||
_this = _super.call.apply(_super, [this].concat(args));
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "state", {
|
||
keyEntities: []
|
||
});
|
||
// ZombieJ: Return the count of rest keys. It's safe to refactor if need more info.
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "removeKey", function (removeKey) {
|
||
var keyEntities = _this.state.keyEntities;
|
||
var nextKeyEntities = keyEntities.map(function (entity) {
|
||
if (entity.key !== removeKey) return entity;
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, entity), {}, {
|
||
status: STATUS_REMOVED
|
||
});
|
||
});
|
||
_this.setState({
|
||
keyEntities: nextKeyEntities
|
||
});
|
||
return nextKeyEntities.filter(function (_ref) {
|
||
var status = _ref.status;
|
||
return status !== STATUS_REMOVED;
|
||
}).length;
|
||
});
|
||
return _this;
|
||
}
|
||
Object(createClass["a" /* default */])(CSSMotionList, [{
|
||
key: "render",
|
||
value: function render() {
|
||
var _this2 = this;
|
||
var keyEntities = this.state.keyEntities;
|
||
var _this$props = this.props,
|
||
component = _this$props.component,
|
||
children = _this$props.children,
|
||
_onVisibleChanged = _this$props.onVisibleChanged,
|
||
onAllRemoved = _this$props.onAllRemoved,
|
||
restProps = Object(objectWithoutProperties["a" /* default */])(_this$props, CSSMotionList_excluded);
|
||
var Component = component || react["Fragment"];
|
||
var motionProps = {};
|
||
MOTION_PROP_NAMES.forEach(function (prop) {
|
||
motionProps[prop] = restProps[prop];
|
||
delete restProps[prop];
|
||
});
|
||
delete restProps.keys;
|
||
return /*#__PURE__*/react["createElement"](Component, restProps, keyEntities.map(function (_ref2, index) {
|
||
var status = _ref2.status,
|
||
eventProps = Object(objectWithoutProperties["a" /* default */])(_ref2, _excluded2);
|
||
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
||
return /*#__PURE__*/react["createElement"](CSSMotion, Object(esm_extends["a" /* default */])({}, motionProps, {
|
||
key: eventProps.key,
|
||
visible: visible,
|
||
eventProps: eventProps,
|
||
onVisibleChanged: function onVisibleChanged(changedVisible) {
|
||
_onVisibleChanged === null || _onVisibleChanged === void 0 ? void 0 : _onVisibleChanged(changedVisible, {
|
||
key: eventProps.key
|
||
});
|
||
if (!changedVisible) {
|
||
var restKeysCount = _this2.removeKey(eventProps.key);
|
||
if (restKeysCount === 0 && onAllRemoved) {
|
||
onAllRemoved();
|
||
}
|
||
}
|
||
}
|
||
}), function (props, ref) {
|
||
return children(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
|
||
index: index
|
||
}), ref);
|
||
});
|
||
}));
|
||
}
|
||
}], [{
|
||
key: "getDerivedStateFromProps",
|
||
value: function getDerivedStateFromProps(_ref3, _ref4) {
|
||
var keys = _ref3.keys;
|
||
var keyEntities = _ref4.keyEntities;
|
||
var parsedKeyObjects = parseKeys(keys);
|
||
var mixedKeyEntities = diffKeys(keyEntities, parsedKeyObjects);
|
||
return {
|
||
keyEntities: mixedKeyEntities.filter(function (entity) {
|
||
var prevEntity = keyEntities.find(function (_ref5) {
|
||
var key = _ref5.key;
|
||
return entity.key === key;
|
||
});
|
||
|
||
// Remove if already mark as removed
|
||
if (prevEntity && prevEntity.status === STATUS_REMOVED && entity.status === STATUS_REMOVE) {
|
||
return false;
|
||
}
|
||
return true;
|
||
})
|
||
};
|
||
}
|
||
}]);
|
||
return CSSMotionList;
|
||
}(react["Component"]);
|
||
Object(esm_defineProperty["a" /* default */])(CSSMotionList, "defaultProps", {
|
||
component: 'div'
|
||
});
|
||
return CSSMotionList;
|
||
}
|
||
/* harmony default export */ var es_CSSMotionList = (genCSSMotionList(supportTransition));
|
||
// CONCATENATED MODULE: ./node_modules/rc-motion/es/index.js
|
||
|
||
|
||
|
||
|
||
/* harmony default export */ var rc_motion_es = (es_CSSMotion);
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/utils/legacyUtil.js
|
||
function getMotion(_ref) {
|
||
var prefixCls = _ref.prefixCls,
|
||
motion = _ref.motion,
|
||
animation = _ref.animation,
|
||
transitionName = _ref.transitionName;
|
||
|
||
if (motion) {
|
||
return motion;
|
||
}
|
||
|
||
if (animation) {
|
||
return {
|
||
motionName: "".concat(prefixCls, "-").concat(animation)
|
||
};
|
||
}
|
||
|
||
if (transitionName) {
|
||
return {
|
||
motionName: transitionName
|
||
};
|
||
}
|
||
|
||
return null;
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/Mask.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function Mask(props) {
|
||
var prefixCls = props.prefixCls,
|
||
visible = props.visible,
|
||
zIndex = props.zIndex,
|
||
mask = props.mask,
|
||
maskMotion = props.maskMotion,
|
||
maskAnimation = props.maskAnimation,
|
||
maskTransitionName = props.maskTransitionName;
|
||
|
||
if (!mask) {
|
||
return null;
|
||
}
|
||
|
||
var motion = {};
|
||
|
||
if (maskMotion || maskTransitionName || maskAnimation) {
|
||
motion = Object(objectSpread2["a" /* default */])({
|
||
motionAppear: true
|
||
}, getMotion({
|
||
motion: maskMotion,
|
||
prefixCls: prefixCls,
|
||
transitionName: maskTransitionName,
|
||
animation: maskAnimation
|
||
}));
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](rc_motion_es, Object(esm_extends["a" /* default */])({}, motion, {
|
||
visible: visible,
|
||
removeOnLeave: true
|
||
}), function (_ref) {
|
||
var className = _ref.className;
|
||
return /*#__PURE__*/react["createElement"]("div", {
|
||
style: {
|
||
zIndex: zIndex
|
||
},
|
||
className: classnames_default()("".concat(prefixCls, "-mask"), className)
|
||
});
|
||
});
|
||
}
|
||
// EXTERNAL MODULE: ./node_modules/rc-align/es/index.js + 6 modules
|
||
var rc_align_es = __webpack_require__("9mu1");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useLayoutEffect.js
|
||
var useLayoutEffect = __webpack_require__("TNol");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
||
|
||
function _regeneratorRuntime() {
|
||
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
_regeneratorRuntime = function _regeneratorRuntime() {
|
||
return e;
|
||
};
|
||
var t,
|
||
e = {},
|
||
r = Object.prototype,
|
||
n = r.hasOwnProperty,
|
||
o = Object.defineProperty || function (t, e, r) {
|
||
t[e] = r.value;
|
||
},
|
||
i = "function" == typeof Symbol ? Symbol : {},
|
||
a = i.iterator || "@@iterator",
|
||
c = i.asyncIterator || "@@asyncIterator",
|
||
u = i.toStringTag || "@@toStringTag";
|
||
function define(t, e, r) {
|
||
return Object.defineProperty(t, e, {
|
||
value: r,
|
||
enumerable: !0,
|
||
configurable: !0,
|
||
writable: !0
|
||
}), t[e];
|
||
}
|
||
try {
|
||
define({}, "");
|
||
} catch (t) {
|
||
define = function define(t, e, r) {
|
||
return t[e] = r;
|
||
};
|
||
}
|
||
function wrap(t, e, r, n) {
|
||
var i = e && e.prototype instanceof Generator ? e : Generator,
|
||
a = Object.create(i.prototype),
|
||
c = new Context(n || []);
|
||
return o(a, "_invoke", {
|
||
value: makeInvokeMethod(t, r, c)
|
||
}), a;
|
||
}
|
||
function tryCatch(t, e, r) {
|
||
try {
|
||
return {
|
||
type: "normal",
|
||
arg: t.call(e, r)
|
||
};
|
||
} catch (t) {
|
||
return {
|
||
type: "throw",
|
||
arg: t
|
||
};
|
||
}
|
||
}
|
||
e.wrap = wrap;
|
||
var h = "suspendedStart",
|
||
l = "suspendedYield",
|
||
f = "executing",
|
||
s = "completed",
|
||
y = {};
|
||
function Generator() {}
|
||
function GeneratorFunction() {}
|
||
function GeneratorFunctionPrototype() {}
|
||
var p = {};
|
||
define(p, a, function () {
|
||
return this;
|
||
});
|
||
var d = Object.getPrototypeOf,
|
||
v = d && d(d(values([])));
|
||
v && v !== r && n.call(v, a) && (p = v);
|
||
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
||
function defineIteratorMethods(t) {
|
||
["next", "throw", "return"].forEach(function (e) {
|
||
define(t, e, function (t) {
|
||
return this._invoke(e, t);
|
||
});
|
||
});
|
||
}
|
||
function AsyncIterator(t, e) {
|
||
function invoke(r, o, i, a) {
|
||
var c = tryCatch(t[r], t, o);
|
||
if ("throw" !== c.type) {
|
||
var u = c.arg,
|
||
h = u.value;
|
||
return h && "object" == Object(esm_typeof["a" /* default */])(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
||
invoke("next", t, i, a);
|
||
}, function (t) {
|
||
invoke("throw", t, i, a);
|
||
}) : e.resolve(h).then(function (t) {
|
||
u.value = t, i(u);
|
||
}, function (t) {
|
||
return invoke("throw", t, i, a);
|
||
});
|
||
}
|
||
a(c.arg);
|
||
}
|
||
var r;
|
||
o(this, "_invoke", {
|
||
value: function value(t, n) {
|
||
function callInvokeWithMethodAndArg() {
|
||
return new e(function (e, r) {
|
||
invoke(t, n, e, r);
|
||
});
|
||
}
|
||
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
||
}
|
||
});
|
||
}
|
||
function makeInvokeMethod(e, r, n) {
|
||
var o = h;
|
||
return function (i, a) {
|
||
if (o === f) throw Error("Generator is already running");
|
||
if (o === s) {
|
||
if ("throw" === i) throw a;
|
||
return {
|
||
value: t,
|
||
done: !0
|
||
};
|
||
}
|
||
for (n.method = i, n.arg = a;;) {
|
||
var c = n.delegate;
|
||
if (c) {
|
||
var u = maybeInvokeDelegate(c, n);
|
||
if (u) {
|
||
if (u === y) continue;
|
||
return u;
|
||
}
|
||
}
|
||
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
||
if (o === h) throw o = s, n.arg;
|
||
n.dispatchException(n.arg);
|
||
} else "return" === n.method && n.abrupt("return", n.arg);
|
||
o = f;
|
||
var p = tryCatch(e, r, n);
|
||
if ("normal" === p.type) {
|
||
if (o = n.done ? s : l, p.arg === y) continue;
|
||
return {
|
||
value: p.arg,
|
||
done: n.done
|
||
};
|
||
}
|
||
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
||
}
|
||
};
|
||
}
|
||
function maybeInvokeDelegate(e, r) {
|
||
var n = r.method,
|
||
o = e.iterator[n];
|
||
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
||
var i = tryCatch(o, e.iterator, r.arg);
|
||
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
||
var a = i.arg;
|
||
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
||
}
|
||
function pushTryEntry(t) {
|
||
var e = {
|
||
tryLoc: t[0]
|
||
};
|
||
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
||
}
|
||
function resetTryEntry(t) {
|
||
var e = t.completion || {};
|
||
e.type = "normal", delete e.arg, t.completion = e;
|
||
}
|
||
function Context(t) {
|
||
this.tryEntries = [{
|
||
tryLoc: "root"
|
||
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
||
}
|
||
function values(e) {
|
||
if (e || "" === e) {
|
||
var r = e[a];
|
||
if (r) return r.call(e);
|
||
if ("function" == typeof e.next) return e;
|
||
if (!isNaN(e.length)) {
|
||
var o = -1,
|
||
i = function next() {
|
||
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
||
return next.value = t, next.done = !0, next;
|
||
};
|
||
return i.next = i;
|
||
}
|
||
}
|
||
throw new TypeError(Object(esm_typeof["a" /* default */])(e) + " is not iterable");
|
||
}
|
||
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
||
value: GeneratorFunctionPrototype,
|
||
configurable: !0
|
||
}), o(GeneratorFunctionPrototype, "constructor", {
|
||
value: GeneratorFunction,
|
||
configurable: !0
|
||
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
||
var e = "function" == typeof t && t.constructor;
|
||
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
||
}, e.mark = function (t) {
|
||
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
||
}, e.awrap = function (t) {
|
||
return {
|
||
__await: t
|
||
};
|
||
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
||
return this;
|
||
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
||
void 0 === i && (i = Promise);
|
||
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
||
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
||
return t.done ? t.value : a.next();
|
||
});
|
||
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
||
return this;
|
||
}), define(g, "toString", function () {
|
||
return "[object Generator]";
|
||
}), e.keys = function (t) {
|
||
var e = Object(t),
|
||
r = [];
|
||
for (var n in e) r.push(n);
|
||
return r.reverse(), function next() {
|
||
for (; r.length;) {
|
||
var t = r.pop();
|
||
if (t in e) return next.value = t, next.done = !1, next;
|
||
}
|
||
return next.done = !0, next;
|
||
};
|
||
}, e.values = values, Context.prototype = {
|
||
constructor: Context,
|
||
reset: function reset(e) {
|
||
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
||
},
|
||
stop: function stop() {
|
||
this.done = !0;
|
||
var t = this.tryEntries[0].completion;
|
||
if ("throw" === t.type) throw t.arg;
|
||
return this.rval;
|
||
},
|
||
dispatchException: function dispatchException(e) {
|
||
if (this.done) throw e;
|
||
var r = this;
|
||
function handle(n, o) {
|
||
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
||
}
|
||
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
||
var i = this.tryEntries[o],
|
||
a = i.completion;
|
||
if ("root" === i.tryLoc) return handle("end");
|
||
if (i.tryLoc <= this.prev) {
|
||
var c = n.call(i, "catchLoc"),
|
||
u = n.call(i, "finallyLoc");
|
||
if (c && u) {
|
||
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
||
} else if (c) {
|
||
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
||
} else {
|
||
if (!u) throw Error("try statement without catch or finally");
|
||
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
||
}
|
||
}
|
||
}
|
||
},
|
||
abrupt: function abrupt(t, e) {
|
||
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
||
var o = this.tryEntries[r];
|
||
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
||
var i = o;
|
||
break;
|
||
}
|
||
}
|
||
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
||
var a = i ? i.completion : {};
|
||
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
||
},
|
||
complete: function complete(t, e) {
|
||
if ("throw" === t.type) throw t.arg;
|
||
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
||
},
|
||
finish: function finish(t) {
|
||
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||
var r = this.tryEntries[e];
|
||
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
||
}
|
||
},
|
||
"catch": function _catch(t) {
|
||
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
||
var r = this.tryEntries[e];
|
||
if (r.tryLoc === t) {
|
||
var n = r.completion;
|
||
if ("throw" === n.type) {
|
||
var o = n.arg;
|
||
resetTryEntry(r);
|
||
}
|
||
return o;
|
||
}
|
||
}
|
||
throw Error("illegal catch attempt");
|
||
},
|
||
delegateYield: function delegateYield(e, r, n) {
|
||
return this.delegate = {
|
||
iterator: values(e),
|
||
resultName: r,
|
||
nextLoc: n
|
||
}, "next" === this.method && (this.arg = t), y;
|
||
}
|
||
}, e;
|
||
}
|
||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
||
var asyncToGenerator = __webpack_require__("HaE+");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/**
|
||
* Popup should follow the steps for each component work correctly:
|
||
* measure - check for the current stretch size
|
||
* align - let component align the position
|
||
* aligned - re-align again in case additional className changed the size
|
||
* afterAlign - choice next step is trigger motion or finished
|
||
* beforeMotion - should reset motion to invisible so that CSSMotion can do normal motion
|
||
* motion - play the motion
|
||
* stable - everything is done
|
||
*/
|
||
|
||
var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
|
||
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
|
||
var _useState = Object(useState["a" /* default */])(null),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
status = _useState2[0],
|
||
setInternalStatus = _useState2[1];
|
||
|
||
var rafRef = Object(react["useRef"])();
|
||
|
||
function setStatus(nextStatus) {
|
||
setInternalStatus(nextStatus, true);
|
||
}
|
||
|
||
function cancelRaf() {
|
||
es_raf["a" /* default */].cancel(rafRef.current);
|
||
}
|
||
|
||
function goNextStatus(callback) {
|
||
cancelRaf();
|
||
rafRef.current = Object(es_raf["a" /* default */])(function () {
|
||
// Only align should be manually trigger
|
||
setStatus(function (prev) {
|
||
switch (status) {
|
||
case 'align':
|
||
return 'motion';
|
||
|
||
case 'motion':
|
||
return 'stable';
|
||
|
||
default:
|
||
}
|
||
|
||
return prev;
|
||
});
|
||
callback === null || callback === void 0 ? void 0 : callback();
|
||
});
|
||
} // Init status
|
||
|
||
|
||
Object(react["useEffect"])(function () {
|
||
setStatus('measure');
|
||
}, [visible]); // Go next status
|
||
|
||
Object(react["useEffect"])(function () {
|
||
switch (status) {
|
||
case 'measure':
|
||
doMeasure();
|
||
break;
|
||
|
||
default:
|
||
}
|
||
|
||
if (status) {
|
||
rafRef.current = Object(es_raf["a" /* default */])( /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
||
var index, nextStatus;
|
||
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) {
|
||
switch (_context.prev = _context.next) {
|
||
case 0:
|
||
index = StatusQueue.indexOf(status);
|
||
nextStatus = StatusQueue[index + 1];
|
||
|
||
if (nextStatus && index !== -1) {
|
||
setStatus(nextStatus);
|
||
}
|
||
|
||
case 3:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}
|
||
}, _callee);
|
||
})));
|
||
}
|
||
}, [status]);
|
||
Object(react["useEffect"])(function () {
|
||
return function () {
|
||
cancelRaf();
|
||
};
|
||
}, []);
|
||
return [status, goNextStatus];
|
||
});
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/useStretchStyle.js
|
||
|
||
|
||
/* harmony default export */ var useStretchStyle = (function (stretch) {
|
||
var _React$useState = react["useState"]({
|
||
width: 0,
|
||
height: 0
|
||
}),
|
||
_React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2),
|
||
targetSize = _React$useState2[0],
|
||
setTargetSize = _React$useState2[1];
|
||
|
||
function measureStretch(element) {
|
||
var tgtWidth = element.offsetWidth,
|
||
tgtHeight = element.offsetHeight;
|
||
|
||
var _element$getBoundingC = element.getBoundingClientRect(),
|
||
width = _element$getBoundingC.width,
|
||
height = _element$getBoundingC.height; // Rect is more accurate than offset, use if near
|
||
|
||
|
||
if (Math.abs(tgtWidth - width) < 1 && Math.abs(tgtHeight - height) < 1) {
|
||
tgtWidth = width;
|
||
tgtHeight = height;
|
||
}
|
||
|
||
setTargetSize({
|
||
width: tgtWidth,
|
||
height: tgtHeight
|
||
});
|
||
} // Merge stretch style
|
||
|
||
|
||
var style = react["useMemo"](function () {
|
||
var sizeStyle = {};
|
||
|
||
if (stretch) {
|
||
var width = targetSize.width,
|
||
height = targetSize.height; // Stretch with target
|
||
|
||
if (stretch.indexOf('height') !== -1 && height) {
|
||
sizeStyle.height = height;
|
||
} else if (stretch.indexOf('minHeight') !== -1 && height) {
|
||
sizeStyle.minHeight = height;
|
||
}
|
||
|
||
if (stretch.indexOf('width') !== -1 && width) {
|
||
sizeStyle.width = width;
|
||
} else if (stretch.indexOf('minWidth') !== -1 && width) {
|
||
sizeStyle.minWidth = width;
|
||
}
|
||
}
|
||
|
||
return sizeStyle;
|
||
}, [stretch, targetSize]);
|
||
return [style, measureStretch];
|
||
});
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/PopupInner.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var PopupInner = /*#__PURE__*/react["forwardRef"](function (props, ref) {
|
||
var visible = props.visible,
|
||
prefixCls = props.prefixCls,
|
||
className = props.className,
|
||
style = props.style,
|
||
children = props.children,
|
||
zIndex = props.zIndex,
|
||
stretch = props.stretch,
|
||
destroyPopupOnHide = props.destroyPopupOnHide,
|
||
forceRender = props.forceRender,
|
||
align = props.align,
|
||
point = props.point,
|
||
getRootDomNode = props.getRootDomNode,
|
||
getClassNameFromAlign = props.getClassNameFromAlign,
|
||
onAlign = props.onAlign,
|
||
onMouseEnter = props.onMouseEnter,
|
||
onMouseLeave = props.onMouseLeave,
|
||
onMouseDown = props.onMouseDown,
|
||
onTouchStart = props.onTouchStart,
|
||
onClick = props.onClick;
|
||
var alignRef = Object(react["useRef"])();
|
||
var elementRef = Object(react["useRef"])();
|
||
|
||
var _useState = Object(react["useState"])(),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
alignedClassName = _useState2[0],
|
||
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
||
|
||
|
||
var _useStretchStyle = useStretchStyle(stretch),
|
||
_useStretchStyle2 = Object(slicedToArray["a" /* default */])(_useStretchStyle, 2),
|
||
stretchStyle = _useStretchStyle2[0],
|
||
measureStretchStyle = _useStretchStyle2[1];
|
||
|
||
function doMeasure() {
|
||
if (stretch) {
|
||
measureStretchStyle(getRootDomNode());
|
||
}
|
||
} // ======================== Status ========================
|
||
|
||
|
||
var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
|
||
_useVisibleStatus2 = Object(slicedToArray["a" /* default */])(_useVisibleStatus, 2),
|
||
status = _useVisibleStatus2[0],
|
||
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
||
|
||
/**
|
||
* `alignedClassName` may modify `source` size,
|
||
* which means one time align may not move to the correct position at once.
|
||
*
|
||
* We will reset `alignTimes` for each status switch to `alignPre`
|
||
* and let `rc-align` to align for multiple times to ensure get final stable place.
|
||
* Currently we mark `alignTimes < 2` repeat align, it will increase if user report for align issue.
|
||
*
|
||
* Update:
|
||
* In React 18. `rc-align` effect of align may faster than ref called trigger `forceAlign`.
|
||
* We adjust this to `alignTimes < 2`.
|
||
* We need refactor `rc-align` to support mark of `forceAlign` call if this still happen.
|
||
*/
|
||
|
||
|
||
var _useState3 = Object(react["useState"])(0),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
alignTimes = _useState4[0],
|
||
setAlignTimes = _useState4[1];
|
||
|
||
var prepareResolveRef = Object(react["useRef"])();
|
||
Object(useLayoutEffect["a" /* default */])(function () {
|
||
if (status === 'alignPre') {
|
||
setAlignTimes(0);
|
||
}
|
||
}, [status]); // `target` on `rc-align` can accept as a function to get the bind element or a point.
|
||
// ref: https://www.npmjs.com/package/rc-align
|
||
|
||
function getAlignTarget() {
|
||
if (point) {
|
||
return point;
|
||
}
|
||
|
||
return getRootDomNode;
|
||
}
|
||
|
||
function forceAlign() {
|
||
var _alignRef$current;
|
||
|
||
(_alignRef$current = alignRef.current) === null || _alignRef$current === void 0 ? void 0 : _alignRef$current.forceAlign();
|
||
}
|
||
|
||
function onInternalAlign(popupDomNode, matchAlign) {
|
||
var nextAlignedClassName = getClassNameFromAlign(matchAlign);
|
||
|
||
if (alignedClassName !== nextAlignedClassName) {
|
||
setAlignedClassName(nextAlignedClassName);
|
||
} // We will retry multi times to make sure that the element has been align in the right position.
|
||
|
||
|
||
setAlignTimes(function (val) {
|
||
return val + 1;
|
||
});
|
||
|
||
if (status === 'align') {
|
||
onAlign === null || onAlign === void 0 ? void 0 : onAlign(popupDomNode, matchAlign);
|
||
}
|
||
} // Delay to go to next status
|
||
|
||
|
||
Object(useLayoutEffect["a" /* default */])(function () {
|
||
if (status === 'align') {
|
||
// Repeat until not more align needed
|
||
if (alignTimes < 3) {
|
||
forceAlign();
|
||
} else {
|
||
goNextStatus(function () {
|
||
var _prepareResolveRef$cu;
|
||
|
||
(_prepareResolveRef$cu = prepareResolveRef.current) === null || _prepareResolveRef$cu === void 0 ? void 0 : _prepareResolveRef$cu.call(prepareResolveRef);
|
||
});
|
||
}
|
||
}
|
||
}, [alignTimes]); // ======================== Motion ========================
|
||
|
||
var motion = Object(objectSpread2["a" /* default */])({}, getMotion(props));
|
||
|
||
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
||
var originHandler = motion[eventName];
|
||
|
||
motion[eventName] = function (element, event) {
|
||
goNextStatus();
|
||
return originHandler === null || originHandler === void 0 ? void 0 : originHandler(element, event);
|
||
};
|
||
});
|
||
|
||
function onShowPrepare() {
|
||
return new Promise(function (resolve) {
|
||
prepareResolveRef.current = resolve;
|
||
});
|
||
} // Go to stable directly when motion not provided
|
||
|
||
|
||
react["useEffect"](function () {
|
||
if (!motion.motionName && status === 'motion') {
|
||
goNextStatus();
|
||
}
|
||
}, [motion.motionName, status]); // ========================= Refs =========================
|
||
|
||
react["useImperativeHandle"](ref, function () {
|
||
return {
|
||
forceAlign: forceAlign,
|
||
getElement: function getElement() {
|
||
return elementRef.current;
|
||
}
|
||
};
|
||
}); // ======================== Render ========================
|
||
|
||
var mergedStyle = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, stretchStyle), {}, {
|
||
zIndex: zIndex,
|
||
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
||
// Cannot interact with disappearing elements
|
||
// https://github.com/ant-design/ant-design/issues/35051#issuecomment-1101340714
|
||
pointerEvents: !visible && status !== 'stable' ? 'none' : undefined
|
||
}, style); // Align status
|
||
|
||
|
||
var alignDisabled = true;
|
||
|
||
if (align !== null && align !== void 0 && align.points && (status === 'align' || status === 'stable')) {
|
||
alignDisabled = false;
|
||
}
|
||
|
||
var childNode = children; // Wrapper when multiple children
|
||
|
||
if (react["Children"].count(children) > 1) {
|
||
childNode = /*#__PURE__*/react["createElement"]("div", {
|
||
className: "".concat(prefixCls, "-content")
|
||
}, children);
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](rc_motion_es, Object(esm_extends["a" /* default */])({
|
||
visible: visible,
|
||
ref: elementRef,
|
||
leavedClassName: "".concat(prefixCls, "-hidden")
|
||
}, motion, {
|
||
onAppearPrepare: onShowPrepare,
|
||
onEnterPrepare: onShowPrepare,
|
||
removeOnLeave: destroyPopupOnHide,
|
||
forceRender: forceRender
|
||
}), function (_ref, motionRef) {
|
||
var motionClassName = _ref.className,
|
||
motionStyle = _ref.style;
|
||
var mergedClassName = classnames_default()(prefixCls, className, alignedClassName, motionClassName);
|
||
return /*#__PURE__*/react["createElement"](rc_align_es["a" /* default */], {
|
||
target: getAlignTarget(),
|
||
key: "popup",
|
||
ref: alignRef,
|
||
monitorWindowResize: true,
|
||
disabled: alignDisabled,
|
||
align: align,
|
||
onAlign: onInternalAlign
|
||
}, /*#__PURE__*/react["createElement"]("div", {
|
||
ref: motionRef,
|
||
className: mergedClassName,
|
||
onMouseEnter: onMouseEnter,
|
||
onMouseLeave: onMouseLeave,
|
||
onMouseDownCapture: onMouseDown,
|
||
onTouchStartCapture: onTouchStart,
|
||
onClick: onClick,
|
||
style: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, motionStyle), mergedStyle)
|
||
}, childNode));
|
||
});
|
||
});
|
||
PopupInner.displayName = 'PopupInner';
|
||
/* harmony default export */ var Popup_PopupInner = (PopupInner);
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/MobilePopupInner.js
|
||
|
||
|
||
|
||
|
||
|
||
var MobilePopupInner = /*#__PURE__*/react["forwardRef"](function (props, ref) {
|
||
var prefixCls = props.prefixCls,
|
||
visible = props.visible,
|
||
zIndex = props.zIndex,
|
||
children = props.children,
|
||
_props$mobile = props.mobile;
|
||
_props$mobile = _props$mobile === void 0 ? {} : _props$mobile;
|
||
var popupClassName = _props$mobile.popupClassName,
|
||
popupStyle = _props$mobile.popupStyle,
|
||
_props$mobile$popupMo = _props$mobile.popupMotion,
|
||
popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
|
||
popupRender = _props$mobile.popupRender,
|
||
onClick = props.onClick;
|
||
var elementRef = react["useRef"](); // ========================= Refs =========================
|
||
|
||
react["useImperativeHandle"](ref, function () {
|
||
return {
|
||
forceAlign: function forceAlign() {},
|
||
getElement: function getElement() {
|
||
return elementRef.current;
|
||
}
|
||
};
|
||
}); // ======================== Render ========================
|
||
|
||
var mergedStyle = Object(objectSpread2["a" /* default */])({
|
||
zIndex: zIndex
|
||
}, popupStyle);
|
||
|
||
var childNode = children; // Wrapper when multiple children
|
||
|
||
if (react["Children"].count(children) > 1) {
|
||
childNode = /*#__PURE__*/react["createElement"]("div", {
|
||
className: "".concat(prefixCls, "-content")
|
||
}, children);
|
||
} // Mobile support additional render
|
||
|
||
|
||
if (popupRender) {
|
||
childNode = popupRender(childNode);
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](rc_motion_es, Object(esm_extends["a" /* default */])({
|
||
visible: visible,
|
||
ref: elementRef,
|
||
removeOnLeave: true
|
||
}, popupMotion), function (_ref, motionRef) {
|
||
var motionClassName = _ref.className,
|
||
motionStyle = _ref.style;
|
||
var mergedClassName = classnames_default()(prefixCls, popupClassName, motionClassName);
|
||
return /*#__PURE__*/react["createElement"]("div", {
|
||
ref: motionRef,
|
||
className: mergedClassName,
|
||
onClick: onClick,
|
||
style: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, motionStyle), mergedStyle)
|
||
}, childNode);
|
||
});
|
||
});
|
||
MobilePopupInner.displayName = 'MobilePopupInner';
|
||
/* harmony default export */ var Popup_MobilePopupInner = (MobilePopupInner);
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/Popup/index.js
|
||
|
||
|
||
|
||
|
||
var Popup_excluded = ["visible", "mobile"];
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var Popup = /*#__PURE__*/react["forwardRef"](function (_ref, ref) {
|
||
var visible = _ref.visible,
|
||
mobile = _ref.mobile,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, Popup_excluded);
|
||
|
||
var _useState = Object(react["useState"])(visible),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
innerVisible = _useState2[0],
|
||
serInnerVisible = _useState2[1];
|
||
|
||
var _useState3 = Object(react["useState"])(false),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
inMobile = _useState4[0],
|
||
setInMobile = _useState4[1];
|
||
|
||
var cloneProps = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
|
||
visible: innerVisible
|
||
}); // We check mobile in visible changed here.
|
||
// And this also delay set `innerVisible` to avoid popup component render flash
|
||
|
||
|
||
Object(react["useEffect"])(function () {
|
||
serInnerVisible(visible);
|
||
|
||
if (visible && mobile) {
|
||
setInMobile(es_isMobile());
|
||
}
|
||
}, [visible, mobile]);
|
||
var popupNode = inMobile ? /*#__PURE__*/react["createElement"](Popup_MobilePopupInner, Object(esm_extends["a" /* default */])({}, cloneProps, {
|
||
mobile: mobile,
|
||
ref: ref
|
||
})) : /*#__PURE__*/react["createElement"](Popup_PopupInner, Object(esm_extends["a" /* default */])({}, cloneProps, {
|
||
ref: ref
|
||
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
||
|
||
return /*#__PURE__*/react["createElement"]("div", null, /*#__PURE__*/react["createElement"](Mask, cloneProps), popupNode);
|
||
});
|
||
Popup.displayName = 'Popup';
|
||
/* harmony default export */ var es_Popup = (Popup);
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/context.js
|
||
|
||
var TriggerContext = /*#__PURE__*/react["createContext"](null);
|
||
/* harmony default export */ var context = (TriggerContext);
|
||
// CONCATENATED MODULE: ./node_modules/rc-trigger/es/index.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function es_noop() {}
|
||
|
||
function returnEmptyString() {
|
||
return '';
|
||
}
|
||
|
||
function returnDocument(element) {
|
||
if (element) {
|
||
return element.ownerDocument;
|
||
}
|
||
|
||
return window.document;
|
||
}
|
||
|
||
var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];
|
||
|
||
/**
|
||
* Internal usage. Do not use in your code since this will be removed.
|
||
*/
|
||
function generateTrigger(PortalComponent) {
|
||
var Trigger = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(Trigger, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(Trigger);
|
||
|
||
// ensure `getContainer` will be called only once
|
||
function Trigger(props) {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, Trigger);
|
||
|
||
_this = _super.call(this, props);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "popupRef", /*#__PURE__*/react["createRef"]());
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "triggerRef", /*#__PURE__*/react["createRef"]());
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "portalContainer", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "attachId", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "clickOutsideHandler", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "touchOutsideHandler", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "contextMenuOutsideHandler1", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "contextMenuOutsideHandler2", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "mouseDownTimeout", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "focusTime", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "preClickTime", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "preTouchTime", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "delayTimer", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "hasPopupMouseDown", void 0);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onMouseEnter", function (e) {
|
||
var mouseEnterDelay = _this.props.mouseEnterDelay;
|
||
|
||
_this.fireEvents('onMouseEnter', e);
|
||
|
||
_this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onMouseMove", function (e) {
|
||
_this.fireEvents('onMouseMove', e);
|
||
|
||
_this.setPoint(e);
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onMouseLeave", function (e) {
|
||
_this.fireEvents('onMouseLeave', e);
|
||
|
||
_this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onPopupMouseEnter", function () {
|
||
_this.clearDelayTimer();
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onPopupMouseLeave", function (e) {
|
||
var _this$popupRef$curren;
|
||
|
||
// https://github.com/react-component/trigger/pull/13
|
||
// react bug?
|
||
if (e.relatedTarget && !e.relatedTarget.setTimeout && Object(contains["a" /* default */])((_this$popupRef$curren = _this.popupRef.current) === null || _this$popupRef$curren === void 0 ? void 0 : _this$popupRef$curren.getElement(), e.relatedTarget)) {
|
||
return;
|
||
}
|
||
|
||
_this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onFocus", function (e) {
|
||
_this.fireEvents('onFocus', e); // incase focusin and focusout
|
||
|
||
|
||
_this.clearDelayTimer();
|
||
|
||
if (_this.isFocusToShow()) {
|
||
_this.focusTime = Date.now();
|
||
|
||
_this.delaySetPopupVisible(true, _this.props.focusDelay);
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onMouseDown", function (e) {
|
||
_this.fireEvents('onMouseDown', e);
|
||
|
||
_this.preClickTime = Date.now();
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onTouchStart", function (e) {
|
||
_this.fireEvents('onTouchStart', e);
|
||
|
||
_this.preTouchTime = Date.now();
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onBlur", function (e) {
|
||
_this.fireEvents('onBlur', e);
|
||
|
||
_this.clearDelayTimer();
|
||
|
||
if (_this.isBlurToHide()) {
|
||
_this.delaySetPopupVisible(false, _this.props.blurDelay);
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onContextMenu", function (e) {
|
||
e.preventDefault();
|
||
|
||
_this.fireEvents('onContextMenu', e);
|
||
|
||
_this.setPopupVisible(true, e);
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onContextMenuClose", function () {
|
||
if (_this.isContextMenuToShow()) {
|
||
_this.close();
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onClick", function (event) {
|
||
_this.fireEvents('onClick', event); // focus will trigger click
|
||
|
||
|
||
if (_this.focusTime) {
|
||
var preTime;
|
||
|
||
if (_this.preClickTime && _this.preTouchTime) {
|
||
preTime = Math.min(_this.preClickTime, _this.preTouchTime);
|
||
} else if (_this.preClickTime) {
|
||
preTime = _this.preClickTime;
|
||
} else if (_this.preTouchTime) {
|
||
preTime = _this.preTouchTime;
|
||
}
|
||
|
||
if (Math.abs(preTime - _this.focusTime) < 20) {
|
||
return;
|
||
}
|
||
|
||
_this.focusTime = 0;
|
||
}
|
||
|
||
_this.preClickTime = 0;
|
||
_this.preTouchTime = 0; // Only prevent default when all the action is click.
|
||
// https://github.com/ant-design/ant-design/issues/17043
|
||
// https://github.com/ant-design/ant-design/issues/17291
|
||
|
||
if (_this.isClickToShow() && (_this.isClickToHide() || _this.isBlurToHide()) && event && event.preventDefault) {
|
||
event.preventDefault();
|
||
}
|
||
|
||
var nextVisible = !_this.state.popupVisible;
|
||
|
||
if (_this.isClickToHide() && !nextVisible || nextVisible && _this.isClickToShow()) {
|
||
_this.setPopupVisible(!_this.state.popupVisible, event);
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onPopupMouseDown", function () {
|
||
_this.hasPopupMouseDown = true;
|
||
clearTimeout(_this.mouseDownTimeout);
|
||
_this.mouseDownTimeout = window.setTimeout(function () {
|
||
_this.hasPopupMouseDown = false;
|
||
}, 0);
|
||
|
||
if (_this.context) {
|
||
var _this$context;
|
||
|
||
(_this$context = _this.context).onPopupMouseDown.apply(_this$context, arguments);
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "onDocumentClick", function (event) {
|
||
if (_this.props.mask && !_this.props.maskClosable) {
|
||
return;
|
||
}
|
||
|
||
var target = event.target;
|
||
|
||
var root = _this.getRootDomNode();
|
||
|
||
var popupNode = _this.getPopupDomNode();
|
||
|
||
if ( // mousedown on the target should also close popup when action is contextMenu.
|
||
// https://github.com/ant-design/ant-design/issues/29853
|
||
(!Object(contains["a" /* default */])(root, target) || _this.isContextMenuOnly()) && !Object(contains["a" /* default */])(popupNode, target) && !_this.hasPopupMouseDown) {
|
||
_this.close();
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "getRootDomNode", function () {
|
||
var getTriggerDOMNode = _this.props.getTriggerDOMNode;
|
||
|
||
if (getTriggerDOMNode) {
|
||
return getTriggerDOMNode(_this.triggerRef.current);
|
||
}
|
||
|
||
try {
|
||
var domNode = Object(findDOMNode["a" /* default */])(_this.triggerRef.current);
|
||
|
||
if (domNode) {
|
||
return domNode;
|
||
}
|
||
} catch (err) {// Do nothing
|
||
}
|
||
|
||
return react_dom_default.a.findDOMNode(Object(assertThisInitialized["a" /* default */])(_this));
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "getPopupClassNameFromAlign", function (align) {
|
||
var className = [];
|
||
var _this$props = _this.props,
|
||
popupPlacement = _this$props.popupPlacement,
|
||
builtinPlacements = _this$props.builtinPlacements,
|
||
prefixCls = _this$props.prefixCls,
|
||
alignPoint = _this$props.alignPoint,
|
||
getPopupClassNameFromAlign = _this$props.getPopupClassNameFromAlign;
|
||
|
||
if (popupPlacement && builtinPlacements) {
|
||
className.push(getAlignPopupClassName(builtinPlacements, prefixCls, align, alignPoint));
|
||
}
|
||
|
||
if (getPopupClassNameFromAlign) {
|
||
className.push(getPopupClassNameFromAlign(align));
|
||
}
|
||
|
||
return className.join(' ');
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "getComponent", function () {
|
||
var _this$props2 = _this.props,
|
||
prefixCls = _this$props2.prefixCls,
|
||
destroyPopupOnHide = _this$props2.destroyPopupOnHide,
|
||
popupClassName = _this$props2.popupClassName,
|
||
onPopupAlign = _this$props2.onPopupAlign,
|
||
popupMotion = _this$props2.popupMotion,
|
||
popupAnimation = _this$props2.popupAnimation,
|
||
popupTransitionName = _this$props2.popupTransitionName,
|
||
popupStyle = _this$props2.popupStyle,
|
||
mask = _this$props2.mask,
|
||
maskAnimation = _this$props2.maskAnimation,
|
||
maskTransitionName = _this$props2.maskTransitionName,
|
||
maskMotion = _this$props2.maskMotion,
|
||
zIndex = _this$props2.zIndex,
|
||
popup = _this$props2.popup,
|
||
stretch = _this$props2.stretch,
|
||
alignPoint = _this$props2.alignPoint,
|
||
mobile = _this$props2.mobile,
|
||
forceRender = _this$props2.forceRender,
|
||
onPopupClick = _this$props2.onPopupClick;
|
||
var _this$state = _this.state,
|
||
popupVisible = _this$state.popupVisible,
|
||
point = _this$state.point;
|
||
|
||
var align = _this.getPopupAlign();
|
||
|
||
var mouseProps = {};
|
||
|
||
if (_this.isMouseEnterToShow()) {
|
||
mouseProps.onMouseEnter = _this.onPopupMouseEnter;
|
||
}
|
||
|
||
if (_this.isMouseLeaveToHide()) {
|
||
mouseProps.onMouseLeave = _this.onPopupMouseLeave;
|
||
}
|
||
|
||
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
||
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
||
return /*#__PURE__*/react["createElement"](es_Popup, Object(esm_extends["a" /* default */])({
|
||
prefixCls: prefixCls,
|
||
destroyPopupOnHide: destroyPopupOnHide,
|
||
visible: popupVisible,
|
||
point: alignPoint && point,
|
||
className: popupClassName,
|
||
align: align,
|
||
onAlign: onPopupAlign,
|
||
animation: popupAnimation,
|
||
getClassNameFromAlign: _this.getPopupClassNameFromAlign
|
||
}, mouseProps, {
|
||
stretch: stretch,
|
||
getRootDomNode: _this.getRootDomNode,
|
||
style: popupStyle,
|
||
mask: mask,
|
||
zIndex: zIndex,
|
||
transitionName: popupTransitionName,
|
||
maskAnimation: maskAnimation,
|
||
maskTransitionName: maskTransitionName,
|
||
maskMotion: maskMotion,
|
||
ref: _this.popupRef,
|
||
motion: popupMotion,
|
||
mobile: mobile,
|
||
forceRender: forceRender,
|
||
onClick: onPopupClick
|
||
}), typeof popup === 'function' ? popup() : popup);
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "attachParent", function (popupContainer) {
|
||
es_raf["a" /* default */].cancel(_this.attachId);
|
||
var _this$props3 = _this.props,
|
||
getPopupContainer = _this$props3.getPopupContainer,
|
||
getDocument = _this$props3.getDocument;
|
||
|
||
var domNode = _this.getRootDomNode();
|
||
|
||
var mountNode;
|
||
|
||
if (!getPopupContainer) {
|
||
mountNode = getDocument(_this.getRootDomNode()).body;
|
||
} else if (domNode || getPopupContainer.length === 0) {
|
||
// Compatible for legacy getPopupContainer with domNode argument.
|
||
// If no need `domNode` argument, will call directly.
|
||
// https://codesandbox.io/s/eloquent-mclean-ss93m?file=/src/App.js
|
||
mountNode = getPopupContainer(domNode);
|
||
}
|
||
|
||
if (mountNode) {
|
||
mountNode.appendChild(popupContainer);
|
||
} else {
|
||
// Retry after frame render in case parent not ready
|
||
_this.attachId = Object(es_raf["a" /* default */])(function () {
|
||
_this.attachParent(popupContainer);
|
||
});
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "getContainer", function () {
|
||
if (!_this.portalContainer) {
|
||
// In React.StrictMode component will call render multiple time in first mount.
|
||
// When you want to refactor with FC, useRef will also init multiple time and
|
||
// point to different useRef instance which will create multiple element
|
||
// (This multiple render will not trigger effect so you can not clean up this
|
||
// in effect). But this is safe with class component since it always point to same class instance.
|
||
var getDocument = _this.props.getDocument;
|
||
var popupContainer = getDocument(_this.getRootDomNode()).createElement('div'); // Make sure default popup container will never cause scrollbar appearing
|
||
// https://github.com/react-component/trigger/issues/41
|
||
|
||
popupContainer.style.position = 'absolute';
|
||
popupContainer.style.top = '0';
|
||
popupContainer.style.left = '0';
|
||
popupContainer.style.width = '100%';
|
||
_this.portalContainer = popupContainer;
|
||
}
|
||
|
||
_this.attachParent(_this.portalContainer);
|
||
|
||
return _this.portalContainer;
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "setPoint", function (point) {
|
||
var alignPoint = _this.props.alignPoint;
|
||
if (!alignPoint || !point) return;
|
||
|
||
_this.setState({
|
||
point: {
|
||
pageX: point.pageX,
|
||
pageY: point.pageY
|
||
}
|
||
});
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "handlePortalUpdate", function () {
|
||
if (_this.state.prevPopupVisible !== _this.state.popupVisible) {
|
||
_this.props.afterPopupVisibleChange(_this.state.popupVisible);
|
||
}
|
||
});
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Object(assertThisInitialized["a" /* default */])(_this), "triggerContextValue", {
|
||
onPopupMouseDown: _this.onPopupMouseDown
|
||
});
|
||
|
||
var _popupVisible;
|
||
|
||
if ('popupVisible' in props) {
|
||
_popupVisible = !!props.popupVisible;
|
||
} else {
|
||
_popupVisible = !!props.defaultPopupVisible;
|
||
}
|
||
|
||
_this.state = {
|
||
prevPopupVisible: _popupVisible,
|
||
popupVisible: _popupVisible
|
||
};
|
||
ALL_HANDLERS.forEach(function (h) {
|
||
_this["fire".concat(h)] = function (e) {
|
||
_this.fireEvents(h, e);
|
||
};
|
||
});
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(Trigger, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
this.componentDidUpdate();
|
||
}
|
||
}, {
|
||
key: "componentDidUpdate",
|
||
value: function componentDidUpdate() {
|
||
var props = this.props;
|
||
var state = this.state; // We must listen to `mousedown` or `touchstart`, edge case:
|
||
// https://github.com/ant-design/ant-design/issues/5804
|
||
// https://github.com/react-component/calendar/issues/250
|
||
// https://github.com/react-component/trigger/issues/50
|
||
|
||
if (state.popupVisible) {
|
||
var currentDocument;
|
||
|
||
if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {
|
||
currentDocument = props.getDocument(this.getRootDomNode());
|
||
this.clickOutsideHandler = Object(addEventListener["a" /* default */])(currentDocument, 'mousedown', this.onDocumentClick);
|
||
} // always hide on mobile
|
||
|
||
|
||
if (!this.touchOutsideHandler) {
|
||
currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
|
||
this.touchOutsideHandler = Object(addEventListener["a" /* default */])(currentDocument, 'touchstart', this.onDocumentClick);
|
||
} // close popup when trigger type contains 'onContextMenu' and document is scrolling.
|
||
|
||
|
||
if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {
|
||
currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
|
||
this.contextMenuOutsideHandler1 = Object(addEventListener["a" /* default */])(currentDocument, 'scroll', this.onContextMenuClose);
|
||
} // close popup when trigger type contains 'onContextMenu' and window is blur.
|
||
|
||
|
||
if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {
|
||
this.contextMenuOutsideHandler2 = Object(addEventListener["a" /* default */])(window, 'blur', this.onContextMenuClose);
|
||
}
|
||
|
||
return;
|
||
}
|
||
|
||
this.clearOutsideHandler();
|
||
}
|
||
}, {
|
||
key: "componentWillUnmount",
|
||
value: function componentWillUnmount() {
|
||
this.clearDelayTimer();
|
||
this.clearOutsideHandler();
|
||
clearTimeout(this.mouseDownTimeout);
|
||
es_raf["a" /* default */].cancel(this.attachId);
|
||
}
|
||
}, {
|
||
key: "getPopupDomNode",
|
||
value: function getPopupDomNode() {
|
||
var _this$popupRef$curren2;
|
||
|
||
// for test
|
||
return ((_this$popupRef$curren2 = this.popupRef.current) === null || _this$popupRef$curren2 === void 0 ? void 0 : _this$popupRef$curren2.getElement()) || null;
|
||
}
|
||
}, {
|
||
key: "getPopupAlign",
|
||
value: function getPopupAlign() {
|
||
var props = this.props;
|
||
var popupPlacement = props.popupPlacement,
|
||
popupAlign = props.popupAlign,
|
||
builtinPlacements = props.builtinPlacements;
|
||
|
||
if (popupPlacement && builtinPlacements) {
|
||
return getAlignFromPlacement(builtinPlacements, popupPlacement, popupAlign);
|
||
}
|
||
|
||
return popupAlign;
|
||
}
|
||
}, {
|
||
key: "setPopupVisible",
|
||
value:
|
||
/**
|
||
* @param popupVisible Show or not the popup element
|
||
* @param event SyntheticEvent, used for `pointAlign`
|
||
*/
|
||
function setPopupVisible(popupVisible, event) {
|
||
var alignPoint = this.props.alignPoint;
|
||
var prevPopupVisible = this.state.popupVisible;
|
||
this.clearDelayTimer();
|
||
|
||
if (prevPopupVisible !== popupVisible) {
|
||
if (!('popupVisible' in this.props)) {
|
||
this.setState({
|
||
popupVisible: popupVisible,
|
||
prevPopupVisible: prevPopupVisible
|
||
});
|
||
}
|
||
|
||
this.props.onPopupVisibleChange(popupVisible);
|
||
} // Always record the point position since mouseEnterDelay will delay the show
|
||
|
||
|
||
if (alignPoint && event && popupVisible) {
|
||
this.setPoint(event);
|
||
}
|
||
}
|
||
}, {
|
||
key: "delaySetPopupVisible",
|
||
value: function delaySetPopupVisible(visible, delayS, event) {
|
||
var _this2 = this;
|
||
|
||
var delay = delayS * 1000;
|
||
this.clearDelayTimer();
|
||
|
||
if (delay) {
|
||
var point = event ? {
|
||
pageX: event.pageX,
|
||
pageY: event.pageY
|
||
} : null;
|
||
this.delayTimer = window.setTimeout(function () {
|
||
_this2.setPopupVisible(visible, point);
|
||
|
||
_this2.clearDelayTimer();
|
||
}, delay);
|
||
} else {
|
||
this.setPopupVisible(visible, event);
|
||
}
|
||
}
|
||
}, {
|
||
key: "clearDelayTimer",
|
||
value: function clearDelayTimer() {
|
||
if (this.delayTimer) {
|
||
clearTimeout(this.delayTimer);
|
||
this.delayTimer = null;
|
||
}
|
||
}
|
||
}, {
|
||
key: "clearOutsideHandler",
|
||
value: function clearOutsideHandler() {
|
||
if (this.clickOutsideHandler) {
|
||
this.clickOutsideHandler.remove();
|
||
this.clickOutsideHandler = null;
|
||
}
|
||
|
||
if (this.contextMenuOutsideHandler1) {
|
||
this.contextMenuOutsideHandler1.remove();
|
||
this.contextMenuOutsideHandler1 = null;
|
||
}
|
||
|
||
if (this.contextMenuOutsideHandler2) {
|
||
this.contextMenuOutsideHandler2.remove();
|
||
this.contextMenuOutsideHandler2 = null;
|
||
}
|
||
|
||
if (this.touchOutsideHandler) {
|
||
this.touchOutsideHandler.remove();
|
||
this.touchOutsideHandler = null;
|
||
}
|
||
}
|
||
}, {
|
||
key: "createTwoChains",
|
||
value: function createTwoChains(event) {
|
||
var childPros = this.props.children.props;
|
||
var props = this.props;
|
||
|
||
if (childPros[event] && props[event]) {
|
||
return this["fire".concat(event)];
|
||
}
|
||
|
||
return childPros[event] || props[event];
|
||
}
|
||
}, {
|
||
key: "isClickToShow",
|
||
value: function isClickToShow() {
|
||
var _this$props4 = this.props,
|
||
action = _this$props4.action,
|
||
showAction = _this$props4.showAction;
|
||
return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
|
||
}
|
||
}, {
|
||
key: "isContextMenuOnly",
|
||
value: function isContextMenuOnly() {
|
||
var action = this.props.action;
|
||
return action === 'contextMenu' || action.length === 1 && action[0] === 'contextMenu';
|
||
}
|
||
}, {
|
||
key: "isContextMenuToShow",
|
||
value: function isContextMenuToShow() {
|
||
var _this$props5 = this.props,
|
||
action = _this$props5.action,
|
||
showAction = _this$props5.showAction;
|
||
return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;
|
||
}
|
||
}, {
|
||
key: "isClickToHide",
|
||
value: function isClickToHide() {
|
||
var _this$props6 = this.props,
|
||
action = _this$props6.action,
|
||
hideAction = _this$props6.hideAction;
|
||
return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
|
||
}
|
||
}, {
|
||
key: "isMouseEnterToShow",
|
||
value: function isMouseEnterToShow() {
|
||
var _this$props7 = this.props,
|
||
action = _this$props7.action,
|
||
showAction = _this$props7.showAction;
|
||
return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;
|
||
}
|
||
}, {
|
||
key: "isMouseLeaveToHide",
|
||
value: function isMouseLeaveToHide() {
|
||
var _this$props8 = this.props,
|
||
action = _this$props8.action,
|
||
hideAction = _this$props8.hideAction;
|
||
return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;
|
||
}
|
||
}, {
|
||
key: "isFocusToShow",
|
||
value: function isFocusToShow() {
|
||
var _this$props9 = this.props,
|
||
action = _this$props9.action,
|
||
showAction = _this$props9.showAction;
|
||
return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
|
||
}
|
||
}, {
|
||
key: "isBlurToHide",
|
||
value: function isBlurToHide() {
|
||
var _this$props10 = this.props,
|
||
action = _this$props10.action,
|
||
hideAction = _this$props10.hideAction;
|
||
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
|
||
}
|
||
}, {
|
||
key: "forcePopupAlign",
|
||
value: function forcePopupAlign() {
|
||
if (this.state.popupVisible) {
|
||
var _this$popupRef$curren3;
|
||
|
||
(_this$popupRef$curren3 = this.popupRef.current) === null || _this$popupRef$curren3 === void 0 ? void 0 : _this$popupRef$curren3.forceAlign();
|
||
}
|
||
}
|
||
}, {
|
||
key: "fireEvents",
|
||
value: function fireEvents(type, e) {
|
||
var childCallback = this.props.children.props[type];
|
||
|
||
if (childCallback) {
|
||
childCallback(e);
|
||
}
|
||
|
||
var callback = this.props[type];
|
||
|
||
if (callback) {
|
||
callback(e);
|
||
}
|
||
}
|
||
}, {
|
||
key: "close",
|
||
value: function close() {
|
||
this.setPopupVisible(false);
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var popupVisible = this.state.popupVisible;
|
||
var _this$props11 = this.props,
|
||
children = _this$props11.children,
|
||
forceRender = _this$props11.forceRender,
|
||
alignPoint = _this$props11.alignPoint,
|
||
className = _this$props11.className,
|
||
autoDestroy = _this$props11.autoDestroy;
|
||
var child = react["Children"].only(children);
|
||
var newChildProps = {
|
||
key: 'trigger'
|
||
}; // ============================== Visible Handlers ==============================
|
||
// >>> ContextMenu
|
||
|
||
if (this.isContextMenuToShow()) {
|
||
newChildProps.onContextMenu = this.onContextMenu;
|
||
} else {
|
||
newChildProps.onContextMenu = this.createTwoChains('onContextMenu');
|
||
} // >>> Click
|
||
|
||
|
||
if (this.isClickToHide() || this.isClickToShow()) {
|
||
newChildProps.onClick = this.onClick;
|
||
newChildProps.onMouseDown = this.onMouseDown;
|
||
newChildProps.onTouchStart = this.onTouchStart;
|
||
} else {
|
||
newChildProps.onClick = this.createTwoChains('onClick');
|
||
newChildProps.onMouseDown = this.createTwoChains('onMouseDown');
|
||
newChildProps.onTouchStart = this.createTwoChains('onTouchStart');
|
||
} // >>> Hover(enter)
|
||
|
||
|
||
if (this.isMouseEnterToShow()) {
|
||
newChildProps.onMouseEnter = this.onMouseEnter; // Point align
|
||
|
||
if (alignPoint) {
|
||
newChildProps.onMouseMove = this.onMouseMove;
|
||
}
|
||
} else {
|
||
newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
|
||
} // >>> Hover(leave)
|
||
|
||
|
||
if (this.isMouseLeaveToHide()) {
|
||
newChildProps.onMouseLeave = this.onMouseLeave;
|
||
} else {
|
||
newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');
|
||
} // >>> Focus
|
||
|
||
|
||
if (this.isFocusToShow() || this.isBlurToHide()) {
|
||
newChildProps.onFocus = this.onFocus;
|
||
newChildProps.onBlur = this.onBlur;
|
||
} else {
|
||
newChildProps.onFocus = this.createTwoChains('onFocus');
|
||
newChildProps.onBlur = this.createTwoChains('onBlur');
|
||
} // =================================== Render ===================================
|
||
|
||
|
||
var childrenClassName = classnames_default()(child && child.props && child.props.className, className);
|
||
|
||
if (childrenClassName) {
|
||
newChildProps.className = childrenClassName;
|
||
}
|
||
|
||
var cloneProps = Object(objectSpread2["a" /* default */])({}, newChildProps);
|
||
|
||
if (Object(es_ref["c" /* supportRef */])(child)) {
|
||
cloneProps.ref = Object(es_ref["a" /* composeRef */])(this.triggerRef, child.ref);
|
||
}
|
||
|
||
var trigger = /*#__PURE__*/react["cloneElement"](child, cloneProps);
|
||
var portal; // prevent unmounting after it's rendered
|
||
|
||
if (popupVisible || this.popupRef.current || forceRender) {
|
||
portal = /*#__PURE__*/react["createElement"](PortalComponent, {
|
||
key: "portal",
|
||
getContainer: this.getContainer,
|
||
didUpdate: this.handlePortalUpdate
|
||
}, this.getComponent());
|
||
}
|
||
|
||
if (!popupVisible && autoDestroy) {
|
||
portal = null;
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](context.Provider, {
|
||
value: this.triggerContextValue
|
||
}, trigger, portal);
|
||
}
|
||
}], [{
|
||
key: "getDerivedStateFromProps",
|
||
value: function getDerivedStateFromProps(_ref, prevState) {
|
||
var popupVisible = _ref.popupVisible;
|
||
var newState = {};
|
||
|
||
if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {
|
||
newState.popupVisible = popupVisible;
|
||
newState.prevPopupVisible = prevState.popupVisible;
|
||
}
|
||
|
||
return newState;
|
||
}
|
||
}]);
|
||
|
||
return Trigger;
|
||
}(react["Component"]);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Trigger, "contextType", context);
|
||
|
||
Object(esm_defineProperty["a" /* default */])(Trigger, "defaultProps", {
|
||
prefixCls: 'rc-trigger-popup',
|
||
getPopupClassNameFromAlign: returnEmptyString,
|
||
getDocument: returnDocument,
|
||
onPopupVisibleChange: es_noop,
|
||
afterPopupVisibleChange: es_noop,
|
||
onPopupAlign: es_noop,
|
||
popupClassName: '',
|
||
mouseEnterDelay: 0,
|
||
mouseLeaveDelay: 0.1,
|
||
focusDelay: 0,
|
||
blurDelay: 0.15,
|
||
popupStyle: {},
|
||
destroyPopupOnHide: false,
|
||
popupAlign: {},
|
||
defaultPopupVisible: false,
|
||
mask: false,
|
||
maskClosable: true,
|
||
action: [],
|
||
showAction: [],
|
||
hideAction: [],
|
||
autoDestroy: false
|
||
});
|
||
|
||
return Trigger;
|
||
}
|
||
/* harmony default export */ var rc_trigger_es = (generateTrigger(Portal["a" /* default */]));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/placements.js
|
||
var autoAdjustOverflow = {
|
||
adjustX: 1,
|
||
adjustY: 1
|
||
};
|
||
var placements_placements = {
|
||
topLeft: {
|
||
points: ['bl', 'tl'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [0, -7]
|
||
},
|
||
bottomLeft: {
|
||
points: ['tl', 'bl'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [0, 7]
|
||
},
|
||
leftTop: {
|
||
points: ['tr', 'tl'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [-4, 0]
|
||
},
|
||
rightTop: {
|
||
points: ['tl', 'tr'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [4, 0]
|
||
}
|
||
};
|
||
var placementsRtl = {
|
||
topLeft: {
|
||
points: ['bl', 'tl'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [0, -7]
|
||
},
|
||
bottomLeft: {
|
||
points: ['tl', 'bl'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [0, 7]
|
||
},
|
||
rightTop: {
|
||
points: ['tr', 'tl'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [-4, 0]
|
||
},
|
||
leftTop: {
|
||
points: ['tl', 'tr'],
|
||
overflow: autoAdjustOverflow,
|
||
offset: [4, 0]
|
||
}
|
||
};
|
||
/* harmony default export */ var es_placements = (placements_placements);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/SubMenu.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var guid = 0;
|
||
var popupPlacementMap = {
|
||
horizontal: 'bottomLeft',
|
||
vertical: 'rightTop',
|
||
'vertical-left': 'rightTop',
|
||
'vertical-right': 'leftTop'
|
||
};
|
||
|
||
var SubMenu_updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {
|
||
var menuId = getMenuIdFromSubMenuEventKey(eventKey);
|
||
var state = store.getState();
|
||
store.setState({
|
||
defaultActiveFirst: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, state.defaultActiveFirst), {}, Object(esm_defineProperty["a" /* default */])({}, menuId, defaultActiveFirst))
|
||
});
|
||
};
|
||
|
||
var SubMenu_SubMenu = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(SubMenu, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(SubMenu);
|
||
|
||
function SubMenu(props) {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, SubMenu);
|
||
|
||
_this = _super.call(this, props);
|
||
|
||
_this.onDestroy = function (key) {
|
||
_this.props.onDestroy(key);
|
||
};
|
||
/**
|
||
* note:
|
||
* This legacy code that `onKeyDown` is called by parent instead of dom self.
|
||
* which need return code to check if this event is handled
|
||
*/
|
||
|
||
|
||
_this.onKeyDown = function (e) {
|
||
var keyCode = e.keyCode;
|
||
var menu = _this.menuInstance;
|
||
var store = _this.props.store;
|
||
|
||
var visible = _this.getVisible();
|
||
|
||
if (keyCode === KeyCode["a" /* default */].ENTER) {
|
||
_this.onTitleClick(e);
|
||
|
||
SubMenu_updateDefaultActiveFirst(store, _this.props.eventKey, true);
|
||
return true;
|
||
}
|
||
|
||
if (keyCode === KeyCode["a" /* default */].RIGHT) {
|
||
if (visible) {
|
||
menu.onKeyDown(e);
|
||
} else {
|
||
_this.triggerOpenChange(true); // need to update current menu's defaultActiveFirst value
|
||
|
||
|
||
SubMenu_updateDefaultActiveFirst(store, _this.props.eventKey, true);
|
||
}
|
||
|
||
return true;
|
||
}
|
||
|
||
if (keyCode === KeyCode["a" /* default */].LEFT) {
|
||
var handled;
|
||
|
||
if (visible) {
|
||
handled = menu.onKeyDown(e);
|
||
} else {
|
||
return undefined;
|
||
}
|
||
|
||
if (!handled) {
|
||
_this.triggerOpenChange(false);
|
||
|
||
handled = true;
|
||
}
|
||
|
||
return handled;
|
||
}
|
||
|
||
if (visible && (keyCode === KeyCode["a" /* default */].UP || keyCode === KeyCode["a" /* default */].DOWN)) {
|
||
return menu.onKeyDown(e);
|
||
}
|
||
|
||
return undefined;
|
||
};
|
||
|
||
_this.onOpenChange = function (e) {
|
||
_this.props.onOpenChange(e);
|
||
};
|
||
|
||
_this.onPopupVisibleChange = function (visible) {
|
||
_this.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');
|
||
};
|
||
|
||
_this.onMouseEnter = function (e) {
|
||
var _this$props = _this.props,
|
||
key = _this$props.eventKey,
|
||
onMouseEnter = _this$props.onMouseEnter,
|
||
store = _this$props.store;
|
||
SubMenu_updateDefaultActiveFirst(store, _this.props.eventKey, false);
|
||
onMouseEnter({
|
||
key: key,
|
||
domEvent: e
|
||
});
|
||
};
|
||
|
||
_this.onMouseLeave = function (e) {
|
||
var _this$props2 = _this.props,
|
||
parentMenu = _this$props2.parentMenu,
|
||
eventKey = _this$props2.eventKey,
|
||
onMouseLeave = _this$props2.onMouseLeave;
|
||
parentMenu.subMenuInstance = Object(assertThisInitialized["a" /* default */])(_this);
|
||
onMouseLeave({
|
||
key: eventKey,
|
||
domEvent: e
|
||
});
|
||
};
|
||
|
||
_this.onTitleMouseEnter = function (domEvent) {
|
||
var _this$props3 = _this.props,
|
||
key = _this$props3.eventKey,
|
||
onItemHover = _this$props3.onItemHover,
|
||
onTitleMouseEnter = _this$props3.onTitleMouseEnter;
|
||
onItemHover({
|
||
key: key,
|
||
hover: true
|
||
});
|
||
onTitleMouseEnter({
|
||
key: key,
|
||
domEvent: domEvent
|
||
});
|
||
};
|
||
|
||
_this.onTitleMouseLeave = function (e) {
|
||
var _this$props4 = _this.props,
|
||
parentMenu = _this$props4.parentMenu,
|
||
eventKey = _this$props4.eventKey,
|
||
onItemHover = _this$props4.onItemHover,
|
||
onTitleMouseLeave = _this$props4.onTitleMouseLeave;
|
||
parentMenu.subMenuInstance = Object(assertThisInitialized["a" /* default */])(_this);
|
||
onItemHover({
|
||
key: eventKey,
|
||
hover: false
|
||
});
|
||
onTitleMouseLeave({
|
||
key: eventKey,
|
||
domEvent: e
|
||
});
|
||
};
|
||
|
||
_this.onTitleClick = function (e) {
|
||
var _assertThisInitialize = Object(assertThisInitialized["a" /* default */])(_this),
|
||
props = _assertThisInitialize.props;
|
||
|
||
props.onTitleClick({
|
||
key: props.eventKey,
|
||
domEvent: e
|
||
});
|
||
|
||
if (props.triggerSubMenuAction === 'hover') {
|
||
return;
|
||
}
|
||
|
||
_this.triggerOpenChange(!_this.getVisible(), 'click');
|
||
|
||
SubMenu_updateDefaultActiveFirst(props.store, _this.props.eventKey, false);
|
||
};
|
||
|
||
_this.onSubMenuClick = function (info) {
|
||
// in the case of overflowed submenu
|
||
// onClick is not copied over
|
||
if (typeof _this.props.onClick === 'function') {
|
||
_this.props.onClick(_this.addKeyPath(info));
|
||
}
|
||
};
|
||
|
||
_this.onSelect = function (info) {
|
||
_this.props.onSelect(info);
|
||
};
|
||
|
||
_this.onDeselect = function (info) {
|
||
_this.props.onDeselect(info);
|
||
};
|
||
|
||
_this.getPrefixCls = function () {
|
||
return "".concat(_this.props.rootPrefixCls, "-submenu");
|
||
};
|
||
|
||
_this.getActiveClassName = function () {
|
||
return "".concat(_this.getPrefixCls(), "-active");
|
||
};
|
||
|
||
_this.getDisabledClassName = function () {
|
||
return "".concat(_this.getPrefixCls(), "-disabled");
|
||
};
|
||
|
||
_this.getSelectedClassName = function () {
|
||
return "".concat(_this.getPrefixCls(), "-selected");
|
||
};
|
||
|
||
_this.getOpenClassName = function () {
|
||
return "".concat(_this.props.rootPrefixCls, "-submenu-open");
|
||
};
|
||
|
||
_this.getVisible = function () {
|
||
return _this.state.isOpen;
|
||
};
|
||
|
||
_this.getMode = function () {
|
||
return _this.state.mode;
|
||
};
|
||
|
||
_this.saveMenuInstance = function (c) {
|
||
// children menu instance
|
||
_this.menuInstance = c;
|
||
};
|
||
|
||
_this.addKeyPath = function (info) {
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, info), {}, {
|
||
keyPath: (info.keyPath || []).concat(_this.props.eventKey)
|
||
});
|
||
};
|
||
|
||
_this.triggerOpenChange = function (open, type) {
|
||
var key = _this.props.eventKey;
|
||
|
||
var openChange = function openChange() {
|
||
_this.onOpenChange({
|
||
key: key,
|
||
item: Object(assertThisInitialized["a" /* default */])(_this),
|
||
trigger: type,
|
||
open: open
|
||
});
|
||
};
|
||
|
||
if (type === 'mouseenter') {
|
||
// make sure mouseenter happen after other menu item's mouseleave
|
||
_this.mouseenterTimeout = setTimeout(function () {
|
||
openChange();
|
||
}, 0);
|
||
} else {
|
||
openChange();
|
||
}
|
||
};
|
||
|
||
_this.isChildrenSelected = function () {
|
||
var ret = {
|
||
find: false
|
||
};
|
||
loopMenuItemRecursively(_this.props.children, _this.props.selectedKeys, ret);
|
||
return ret.find;
|
||
};
|
||
|
||
_this.isInlineMode = function () {
|
||
return _this.getMode() === 'inline';
|
||
};
|
||
|
||
_this.adjustWidth = function () {
|
||
/* istanbul ignore if */
|
||
if (!_this.subMenuTitle || !_this.menuInstance) {
|
||
return;
|
||
}
|
||
|
||
var popupMenu = react_dom["findDOMNode"](_this.menuInstance);
|
||
|
||
if (popupMenu.offsetWidth >= _this.subMenuTitle.offsetWidth) {
|
||
return;
|
||
}
|
||
/* istanbul ignore next */
|
||
|
||
|
||
popupMenu.style.minWidth = "".concat(_this.subMenuTitle.offsetWidth, "px");
|
||
};
|
||
|
||
_this.saveSubMenuTitle = function (subMenuTitle) {
|
||
_this.subMenuTitle = subMenuTitle;
|
||
};
|
||
|
||
_this.getBaseProps = function () {
|
||
var _assertThisInitialize2 = Object(assertThisInitialized["a" /* default */])(_this),
|
||
props = _assertThisInitialize2.props;
|
||
|
||
var mergedMode = _this.getMode();
|
||
|
||
return {
|
||
mode: mergedMode === 'horizontal' ? 'vertical' : mergedMode,
|
||
visible: _this.getVisible(),
|
||
level: props.level + 1,
|
||
inlineIndent: props.inlineIndent,
|
||
focusable: false,
|
||
onClick: _this.onSubMenuClick,
|
||
onSelect: _this.onSelect,
|
||
onDeselect: _this.onDeselect,
|
||
onDestroy: _this.onDestroy,
|
||
selectedKeys: props.selectedKeys,
|
||
eventKey: "".concat(props.eventKey, "-menu-"),
|
||
openKeys: props.openKeys,
|
||
motion: props.motion,
|
||
onOpenChange: _this.onOpenChange,
|
||
subMenuOpenDelay: props.subMenuOpenDelay,
|
||
parentMenu: Object(assertThisInitialized["a" /* default */])(_this),
|
||
subMenuCloseDelay: props.subMenuCloseDelay,
|
||
forceSubMenuRender: props.forceSubMenuRender,
|
||
triggerSubMenuAction: props.triggerSubMenuAction,
|
||
builtinPlacements: props.builtinPlacements,
|
||
defaultActiveFirst: props.store.getState().defaultActiveFirst[getMenuIdFromSubMenuEventKey(props.eventKey)],
|
||
multiple: props.multiple,
|
||
prefixCls: props.rootPrefixCls,
|
||
id: _this.internalMenuId,
|
||
manualRef: _this.saveMenuInstance,
|
||
itemIcon: props.itemIcon,
|
||
expandIcon: props.expandIcon,
|
||
direction: props.direction
|
||
};
|
||
};
|
||
|
||
_this.getMotion = function (mode, visible) {
|
||
var _assertThisInitialize3 = Object(assertThisInitialized["a" /* default */])(_this),
|
||
haveRendered = _assertThisInitialize3.haveRendered;
|
||
|
||
var _this$props5 = _this.props,
|
||
motion = _this$props5.motion,
|
||
rootPrefixCls = _this$props5.rootPrefixCls; // don't show transition on first rendering (no animation for opened menu)
|
||
// show appear transition if it's not visible (not sure why)
|
||
// show appear transition if it's not inline mode
|
||
|
||
var mergedMotion = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, motion), {}, {
|
||
leavedClassName: "".concat(rootPrefixCls, "-hidden"),
|
||
removeOnLeave: false,
|
||
motionAppear: haveRendered || !visible || mode !== 'inline'
|
||
});
|
||
|
||
return mergedMotion;
|
||
};
|
||
|
||
var store = props.store,
|
||
eventKey = props.eventKey;
|
||
|
||
var _store$getState = store.getState(),
|
||
defaultActiveFirst = _store$getState.defaultActiveFirst;
|
||
|
||
_this.isRootMenu = false;
|
||
var value = false;
|
||
|
||
if (defaultActiveFirst) {
|
||
value = defaultActiveFirst[eventKey];
|
||
}
|
||
|
||
SubMenu_updateDefaultActiveFirst(store, eventKey, value);
|
||
_this.state = {
|
||
mode: props.mode,
|
||
isOpen: props.isOpen
|
||
};
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(SubMenu, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
this.componentDidUpdate();
|
||
}
|
||
}, {
|
||
key: "componentDidUpdate",
|
||
value: function componentDidUpdate() {
|
||
var _this2 = this;
|
||
|
||
var _this$props6 = this.props,
|
||
mode = _this$props6.mode,
|
||
parentMenu = _this$props6.parentMenu,
|
||
manualRef = _this$props6.manualRef,
|
||
isOpen = _this$props6.isOpen;
|
||
|
||
var updateState = function updateState() {
|
||
_this2.setState({
|
||
mode: mode,
|
||
isOpen: isOpen
|
||
});
|
||
}; // Delay sync when mode changed in case openKeys change not sync
|
||
|
||
|
||
var isOpenChanged = isOpen !== this.state.isOpen;
|
||
var isModeChanged = mode !== this.state.mode;
|
||
|
||
if (isModeChanged || isOpenChanged) {
|
||
es_raf["a" /* default */].cancel(this.updateStateRaf);
|
||
|
||
if (isModeChanged) {
|
||
this.updateStateRaf = Object(es_raf["a" /* default */])(updateState);
|
||
} else {
|
||
updateState();
|
||
}
|
||
} // invoke customized ref to expose component to mixin
|
||
|
||
|
||
if (manualRef) {
|
||
manualRef(this);
|
||
}
|
||
|
||
if (mode !== 'horizontal' || !(parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.isRootMenu) || !isOpen) {
|
||
return;
|
||
}
|
||
|
||
this.minWidthTimeout = setTimeout(function () {
|
||
return _this2.adjustWidth();
|
||
}, 0);
|
||
}
|
||
}, {
|
||
key: "componentWillUnmount",
|
||
value: function componentWillUnmount() {
|
||
var _this$props7 = this.props,
|
||
onDestroy = _this$props7.onDestroy,
|
||
eventKey = _this$props7.eventKey;
|
||
|
||
if (onDestroy) {
|
||
onDestroy(eventKey);
|
||
}
|
||
/* istanbul ignore if */
|
||
|
||
|
||
if (this.minWidthTimeout) {
|
||
clearTimeout(this.minWidthTimeout);
|
||
}
|
||
/* istanbul ignore if */
|
||
|
||
|
||
if (this.mouseenterTimeout) {
|
||
clearTimeout(this.mouseenterTimeout);
|
||
}
|
||
|
||
es_raf["a" /* default */].cancel(this.updateStateRaf);
|
||
}
|
||
}, {
|
||
key: "renderPopupMenu",
|
||
value: function renderPopupMenu(className, style) {
|
||
var baseProps = this.getBaseProps();
|
||
/**
|
||
* zombiej: Why SubPopupMenu here?
|
||
* Seems whatever popup or inline mode both will render SubPopupMenu.
|
||
* It's controlled by Trigger for popup or not.
|
||
*/
|
||
|
||
return /*#__PURE__*/react["createElement"](es_SubPopupMenu, Object(esm_extends["a" /* default */])({}, baseProps, {
|
||
id: this.internalMenuId,
|
||
className: className,
|
||
style: style
|
||
}), this.props.children);
|
||
}
|
||
}, {
|
||
key: "renderChildren",
|
||
value: function renderChildren() {
|
||
var _this3 = this;
|
||
|
||
var baseProps = this.getBaseProps();
|
||
var mode = baseProps.mode,
|
||
visible = baseProps.visible,
|
||
forceSubMenuRender = baseProps.forceSubMenuRender,
|
||
direction = baseProps.direction; // [Legacy] getMotion must be called before `haveRendered`
|
||
|
||
var mergedMotion = this.getMotion(mode, visible);
|
||
this.haveRendered = true;
|
||
this.haveOpened = this.haveOpened || visible || forceSubMenuRender; // never rendered not planning to, don't render
|
||
|
||
if (!this.haveOpened) {
|
||
return /*#__PURE__*/react["createElement"]("div", null);
|
||
}
|
||
|
||
var sharedClassName = classnames_default()("".concat(baseProps.prefixCls, "-sub"), Object(esm_defineProperty["a" /* default */])({}, "".concat(baseProps.prefixCls, "-rtl"), direction === 'rtl'));
|
||
|
||
if (!this.isInlineMode()) {
|
||
return this.renderPopupMenu(sharedClassName);
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](rc_motion_es, Object(esm_extends["a" /* default */])({
|
||
visible: baseProps.visible,
|
||
forceRender: forceSubMenuRender
|
||
}, mergedMotion), function (_ref) {
|
||
var className = _ref.className,
|
||
style = _ref.style;
|
||
var mergedClassName = classnames_default()(sharedClassName, className);
|
||
return _this3.renderPopupMenu(mergedClassName, style);
|
||
});
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var _classNames2, _props$parentMenu, _classNames3;
|
||
|
||
var props = Object(objectSpread2["a" /* default */])({}, this.props);
|
||
|
||
var visible = this.getVisible();
|
||
var prefixCls = this.getPrefixCls();
|
||
var inline = this.isInlineMode();
|
||
var mergedMode = this.getMode();
|
||
var className = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedMode), (_classNames2 = {}, Object(esm_defineProperty["a" /* default */])(_classNames2, props.className, !!props.className), Object(esm_defineProperty["a" /* default */])(_classNames2, this.getOpenClassName(), visible), Object(esm_defineProperty["a" /* default */])(_classNames2, this.getActiveClassName(), props.active || visible && !inline), Object(esm_defineProperty["a" /* default */])(_classNames2, this.getDisabledClassName(), props.disabled), Object(esm_defineProperty["a" /* default */])(_classNames2, this.getSelectedClassName(), this.isChildrenSelected()), _classNames2));
|
||
|
||
if (!this.internalMenuId) {
|
||
if (props.eventKey) {
|
||
this.internalMenuId = "".concat(props.eventKey, "$Menu");
|
||
} else {
|
||
guid += 1;
|
||
this.internalMenuId = "$__$".concat(guid, "$Menu");
|
||
}
|
||
}
|
||
|
||
var mouseEvents = {};
|
||
var titleClickEvents = {};
|
||
var titleMouseEvents = {};
|
||
|
||
if (!props.disabled) {
|
||
mouseEvents = {
|
||
onMouseLeave: this.onMouseLeave,
|
||
onMouseEnter: this.onMouseEnter
|
||
}; // only works in title, not outer li
|
||
|
||
titleClickEvents = {
|
||
onClick: this.onTitleClick
|
||
};
|
||
titleMouseEvents = {
|
||
onMouseEnter: this.onTitleMouseEnter,
|
||
onMouseLeave: this.onTitleMouseLeave
|
||
};
|
||
}
|
||
|
||
var style = {};
|
||
var direction = props.direction;
|
||
var isRTL = direction === 'rtl';
|
||
|
||
if (inline) {
|
||
if (isRTL) {
|
||
style.paddingRight = props.inlineIndent * props.level;
|
||
} else {
|
||
style.paddingLeft = props.inlineIndent * props.level;
|
||
}
|
||
}
|
||
|
||
var ariaOwns = {}; // only set aria-owns when menu is open
|
||
// otherwise it would be an invalid aria-owns value
|
||
// since corresponding node cannot be found
|
||
|
||
if (this.getVisible()) {
|
||
ariaOwns = {
|
||
'aria-owns': this.internalMenuId
|
||
};
|
||
} // expand custom icon should NOT be displayed in menu with horizontal mode.
|
||
|
||
|
||
var icon = null;
|
||
|
||
if (mergedMode !== 'horizontal') {
|
||
icon = this.props.expandIcon; // ReactNode
|
||
|
||
if (typeof this.props.expandIcon === 'function') {
|
||
icon = /*#__PURE__*/react["createElement"](this.props.expandIcon, Object(objectSpread2["a" /* default */])({}, this.props));
|
||
}
|
||
}
|
||
|
||
var title = /*#__PURE__*/react["createElement"]("div", Object(esm_extends["a" /* default */])({
|
||
ref: this.saveSubMenuTitle,
|
||
style: style,
|
||
className: "".concat(prefixCls, "-title"),
|
||
role: "button"
|
||
}, titleMouseEvents, titleClickEvents, {
|
||
"aria-expanded": visible
|
||
}, ariaOwns, {
|
||
"aria-haspopup": "true",
|
||
title: typeof props.title === 'string' ? props.title : undefined
|
||
}), props.title, icon || /*#__PURE__*/react["createElement"]("i", {
|
||
className: "".concat(prefixCls, "-arrow")
|
||
}));
|
||
var children = this.renderChildren();
|
||
var getPopupContainer = ((_props$parentMenu = props.parentMenu) === null || _props$parentMenu === void 0 ? void 0 : _props$parentMenu.isRootMenu) ? props.parentMenu.props.getPopupContainer : function (triggerNode) {
|
||
return triggerNode.parentNode;
|
||
};
|
||
var popupPlacement = popupPlacementMap[mergedMode];
|
||
var popupAlign = props.popupOffset ? {
|
||
offset: props.popupOffset
|
||
} : {};
|
||
var popupClassName = classnames_default()((_classNames3 = {}, Object(esm_defineProperty["a" /* default */])(_classNames3, props.popupClassName, props.popupClassName && !inline), Object(esm_defineProperty["a" /* default */])(_classNames3, "".concat(prefixCls, "-rtl"), isRTL), _classNames3));
|
||
var disabled = props.disabled,
|
||
triggerSubMenuAction = props.triggerSubMenuAction,
|
||
subMenuOpenDelay = props.subMenuOpenDelay,
|
||
forceSubMenuRender = props.forceSubMenuRender,
|
||
subMenuCloseDelay = props.subMenuCloseDelay,
|
||
builtinPlacements = props.builtinPlacements;
|
||
menuAllProps.forEach(function (key) {
|
||
return delete props[key];
|
||
}); // Set onClick to null, to ignore propagated onClick event
|
||
|
||
delete props.onClick;
|
||
var placement = isRTL ? Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, placementsRtl), builtinPlacements) : Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, placements_placements), builtinPlacements);
|
||
delete props.direction; // [Legacy] It's a fast fix,
|
||
// but we should check if we can refactor this to make code more easy to understand
|
||
|
||
var baseProps = this.getBaseProps();
|
||
var mergedMotion = inline ? null : this.getMotion(baseProps.mode, baseProps.visible);
|
||
return /*#__PURE__*/react["createElement"]("li", Object(esm_extends["a" /* default */])({}, props, mouseEvents, {
|
||
className: className,
|
||
role: "menuitem"
|
||
}), /*#__PURE__*/react["createElement"](rc_trigger_es, {
|
||
prefixCls: prefixCls,
|
||
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), popupClassName),
|
||
getPopupContainer: getPopupContainer,
|
||
builtinPlacements: placement,
|
||
popupPlacement: popupPlacement,
|
||
popupVisible: inline ? false : visible,
|
||
popupAlign: popupAlign,
|
||
popup: inline ? null : children,
|
||
action: disabled || inline ? [] : [triggerSubMenuAction],
|
||
mouseEnterDelay: subMenuOpenDelay,
|
||
mouseLeaveDelay: subMenuCloseDelay,
|
||
onPopupVisibleChange: this.onPopupVisibleChange,
|
||
forceRender: forceSubMenuRender,
|
||
popupMotion: mergedMotion
|
||
}, title), inline ? children : null);
|
||
}
|
||
}]);
|
||
|
||
return SubMenu;
|
||
}(react["Component"]);
|
||
SubMenu_SubMenu.defaultProps = {
|
||
onMouseEnter: noop,
|
||
onMouseLeave: noop,
|
||
onTitleMouseEnter: noop,
|
||
onTitleMouseLeave: noop,
|
||
onTitleClick: noop,
|
||
manualRef: noop,
|
||
mode: 'vertical',
|
||
title: ''
|
||
};
|
||
var connected = Object(esm["b" /* connect */])(function (_ref2, _ref3) {
|
||
var openKeys = _ref2.openKeys,
|
||
activeKey = _ref2.activeKey,
|
||
selectedKeys = _ref2.selectedKeys;
|
||
var eventKey = _ref3.eventKey,
|
||
subMenuKey = _ref3.subMenuKey;
|
||
return {
|
||
isOpen: openKeys.indexOf(eventKey) > -1,
|
||
active: activeKey[subMenuKey] === eventKey,
|
||
selectedKeys: selectedKeys
|
||
};
|
||
})(SubMenu_SubMenu);
|
||
connected.isSubMenu = true;
|
||
/* harmony default export */ var es_SubMenu = (connected);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/DOMWrap.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';
|
||
var FLOAT_PRECISION_ADJUST = 0.5;
|
||
|
||
var DOMWrap_DOMWrap = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(DOMWrap, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(DOMWrap);
|
||
|
||
function DOMWrap() {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, DOMWrap);
|
||
|
||
_this = _super.apply(this, arguments);
|
||
_this.resizeObserver = null;
|
||
_this.mutationObserver = null; // original scroll size of the list
|
||
|
||
_this.originalTotalWidth = 0; // copy of overflowed items
|
||
|
||
_this.overflowedItems = []; // cache item of the original items (so we can track the size and order)
|
||
|
||
_this.menuItemSizes = [];
|
||
_this.cancelFrameId = null;
|
||
_this.state = {
|
||
lastVisibleIndex: undefined
|
||
};
|
||
_this.childRef = /*#__PURE__*/react["createRef"](); // get all valid menuItem nodes
|
||
|
||
_this.getMenuItemNodes = function () {
|
||
var prefixCls = _this.props.prefixCls;
|
||
var ul = _this.childRef.current;
|
||
|
||
if (!ul) {
|
||
return [];
|
||
} // filter out all overflowed indicator placeholder
|
||
|
||
|
||
return [].slice.call(ul.children).filter(function (node) {
|
||
return node.className.split(' ').indexOf("".concat(prefixCls, "-overflowed-submenu")) < 0;
|
||
});
|
||
};
|
||
|
||
_this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) {
|
||
var _this$props = _this.props,
|
||
overflowedIndicator = _this$props.overflowedIndicator,
|
||
level = _this$props.level,
|
||
mode = _this$props.mode,
|
||
prefixCls = _this$props.prefixCls,
|
||
theme = _this$props.theme;
|
||
|
||
if (level !== 1 || mode !== 'horizontal') {
|
||
return null;
|
||
} // put all the overflowed item inside a submenu
|
||
// with a title of overflow indicator ('...')
|
||
|
||
|
||
var copy = _this.props.children[0];
|
||
|
||
var _copy$props = copy.props,
|
||
throwAway = _copy$props.children,
|
||
title = _copy$props.title,
|
||
propStyle = _copy$props.style,
|
||
rest = Object(objectWithoutProperties["a" /* default */])(_copy$props, ["children", "title", "style"]);
|
||
|
||
var style = Object(objectSpread2["a" /* default */])({}, propStyle);
|
||
|
||
var key = "".concat(keyPrefix, "-overflowed-indicator");
|
||
var eventKey = "".concat(keyPrefix, "-overflowed-indicator");
|
||
|
||
if (overflowedItems.length === 0 && renderPlaceholder !== true) {
|
||
style = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, style), {}, {
|
||
display: 'none'
|
||
});
|
||
} else if (renderPlaceholder) {
|
||
style = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, style), {}, {
|
||
visibility: 'hidden',
|
||
// prevent from taking normal dom space
|
||
position: 'absolute'
|
||
});
|
||
key = "".concat(key, "-placeholder");
|
||
eventKey = "".concat(eventKey, "-placeholder");
|
||
}
|
||
|
||
var popupClassName = theme ? "".concat(prefixCls, "-").concat(theme) : '';
|
||
var props = {};
|
||
menuAllProps.forEach(function (k) {
|
||
if (rest[k] !== undefined) {
|
||
props[k] = rest[k];
|
||
}
|
||
});
|
||
return /*#__PURE__*/react["createElement"](es_SubMenu, Object(esm_extends["a" /* default */])({
|
||
title: overflowedIndicator,
|
||
className: "".concat(prefixCls, "-overflowed-submenu"),
|
||
popupClassName: popupClassName
|
||
}, props, {
|
||
key: key,
|
||
eventKey: eventKey,
|
||
disabled: false,
|
||
style: style
|
||
}), overflowedItems);
|
||
}; // memorize rendered menuSize
|
||
|
||
|
||
_this.setChildrenWidthAndResize = function () {
|
||
if (_this.props.mode !== 'horizontal') {
|
||
return;
|
||
}
|
||
|
||
var ul = _this.childRef.current;
|
||
|
||
if (!ul) {
|
||
return;
|
||
}
|
||
|
||
var ulChildrenNodes = ul.children;
|
||
|
||
if (!ulChildrenNodes || ulChildrenNodes.length === 0) {
|
||
return;
|
||
}
|
||
|
||
var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1]; // need last overflowed indicator for calculating length;
|
||
|
||
util_setStyle(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');
|
||
|
||
var menuItemNodes = _this.getMenuItemNodes(); // reset display attribute for all hidden elements caused by overflow to calculate updated width
|
||
// and then reset to original state after width calculation
|
||
|
||
|
||
var overflowedItems = menuItemNodes.filter(function (c) {
|
||
return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;
|
||
});
|
||
overflowedItems.forEach(function (c) {
|
||
util_setStyle(c, 'display', 'inline-block');
|
||
});
|
||
_this.menuItemSizes = menuItemNodes.map(function (c) {
|
||
return getWidth(c, true);
|
||
});
|
||
overflowedItems.forEach(function (c) {
|
||
util_setStyle(c, 'display', 'none');
|
||
});
|
||
_this.overflowedIndicatorWidth = getWidth(ul.children[ul.children.length - 1], true);
|
||
_this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) {
|
||
return acc + cur;
|
||
}, 0);
|
||
|
||
_this.handleResize(); // prevent the overflowed indicator from taking space;
|
||
|
||
|
||
util_setStyle(lastOverflowedIndicatorPlaceholder, 'display', 'none');
|
||
};
|
||
|
||
_this.handleResize = function () {
|
||
if (_this.props.mode !== 'horizontal') {
|
||
return;
|
||
}
|
||
|
||
var ul = _this.childRef.current;
|
||
|
||
if (!ul) {
|
||
return;
|
||
}
|
||
|
||
var width = getWidth(ul);
|
||
_this.overflowedItems = [];
|
||
var currentSumWidth = 0; // index for last visible child in horizontal mode
|
||
|
||
var lastVisibleIndex; // float number comparison could be problematic
|
||
// e.g. 0.1 + 0.2 > 0.3 =====> true
|
||
// thus using FLOAT_PRECISION_ADJUST as buffer to help the situation
|
||
|
||
if (_this.originalTotalWidth > width + FLOAT_PRECISION_ADJUST) {
|
||
lastVisibleIndex = -1;
|
||
|
||
_this.menuItemSizes.forEach(function (liWidth) {
|
||
currentSumWidth += liWidth;
|
||
|
||
if (currentSumWidth + _this.overflowedIndicatorWidth <= width) {
|
||
lastVisibleIndex += 1;
|
||
}
|
||
});
|
||
}
|
||
|
||
_this.setState({
|
||
lastVisibleIndex: lastVisibleIndex
|
||
});
|
||
};
|
||
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(DOMWrap, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
var _this2 = this;
|
||
|
||
this.setChildrenWidthAndResize();
|
||
|
||
if (this.props.level === 1 && this.props.mode === 'horizontal') {
|
||
var menuUl = this.childRef.current;
|
||
|
||
if (!menuUl) {
|
||
return;
|
||
}
|
||
|
||
this.resizeObserver = new ResizeObserver_es["default"](function (entries) {
|
||
entries.forEach(function () {
|
||
var cancelFrameId = _this2.cancelFrameId;
|
||
cancelAnimationFrame(cancelFrameId);
|
||
_this2.cancelFrameId = requestAnimationFrame(_this2.setChildrenWidthAndResize);
|
||
});
|
||
});
|
||
[].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
|
||
_this2.resizeObserver.observe(el);
|
||
});
|
||
|
||
if (typeof MutationObserver !== 'undefined') {
|
||
this.mutationObserver = new MutationObserver(function () {
|
||
_this2.resizeObserver.disconnect();
|
||
|
||
[].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
|
||
_this2.resizeObserver.observe(el);
|
||
});
|
||
|
||
_this2.setChildrenWidthAndResize();
|
||
});
|
||
this.mutationObserver.observe(menuUl, {
|
||
attributes: false,
|
||
childList: true,
|
||
subTree: false
|
||
});
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: "componentWillUnmount",
|
||
value: function componentWillUnmount() {
|
||
if (this.resizeObserver) {
|
||
this.resizeObserver.disconnect();
|
||
}
|
||
|
||
if (this.mutationObserver) {
|
||
this.mutationObserver.disconnect();
|
||
}
|
||
|
||
cancelAnimationFrame(this.cancelFrameId);
|
||
}
|
||
}, {
|
||
key: "renderChildren",
|
||
value: function renderChildren(children) {
|
||
var _this3 = this;
|
||
|
||
// need to take care of overflowed items in horizontal mode
|
||
var lastVisibleIndex = this.state.lastVisibleIndex;
|
||
return (children || []).reduce(function (acc, childNode, index) {
|
||
var item = childNode;
|
||
|
||
if (_this3.props.mode === 'horizontal') {
|
||
var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []);
|
||
|
||
if (lastVisibleIndex !== undefined && _this3.props.className.indexOf("".concat(_this3.props.prefixCls, "-root")) !== -1) {
|
||
if (index > lastVisibleIndex) {
|
||
item = /*#__PURE__*/react["cloneElement"](childNode, // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件
|
||
{
|
||
style: {
|
||
display: 'none'
|
||
},
|
||
eventKey: "".concat(childNode.props.eventKey, "-hidden"),
|
||
|
||
/**
|
||
* Legacy code. Here `className` never used:
|
||
* https://github.com/react-component/menu/commit/4cd6b49fce9d116726f4ea00dda85325d6f26500#diff-e2fa48f75c2dd2318295cde428556a76R240
|
||
*/
|
||
className: "".concat(MENUITEM_OVERFLOWED_CLASSNAME)
|
||
});
|
||
}
|
||
|
||
if (index === lastVisibleIndex + 1) {
|
||
_this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {
|
||
return /*#__PURE__*/react["cloneElement"](c, // children[index].key will become '.$key' in clone by default,
|
||
// we have to overwrite with the correct key explicitly
|
||
{
|
||
key: c.props.eventKey,
|
||
mode: 'vertical-left'
|
||
});
|
||
});
|
||
overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems);
|
||
}
|
||
}
|
||
|
||
var ret = [].concat(Object(toConsumableArray["a" /* default */])(acc), [overflowed, item]);
|
||
|
||
if (index === children.length - 1) {
|
||
// need a placeholder for calculating overflowed indicator width
|
||
ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true));
|
||
}
|
||
|
||
return ret;
|
||
}
|
||
|
||
return [].concat(Object(toConsumableArray["a" /* default */])(acc), [item]);
|
||
}, []);
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var _this$props2 = this.props,
|
||
visible = _this$props2.visible,
|
||
prefixCls = _this$props2.prefixCls,
|
||
overflowedIndicator = _this$props2.overflowedIndicator,
|
||
mode = _this$props2.mode,
|
||
level = _this$props2.level,
|
||
tag = _this$props2.tag,
|
||
children = _this$props2.children,
|
||
theme = _this$props2.theme,
|
||
rest = Object(objectWithoutProperties["a" /* default */])(_this$props2, ["visible", "prefixCls", "overflowedIndicator", "mode", "level", "tag", "children", "theme"]);
|
||
|
||
var Tag = tag;
|
||
return /*#__PURE__*/react["createElement"](Tag, Object(esm_extends["a" /* default */])({
|
||
ref: this.childRef
|
||
}, rest), this.renderChildren(children));
|
||
}
|
||
}]);
|
||
|
||
return DOMWrap;
|
||
}(react["Component"]);
|
||
|
||
DOMWrap_DOMWrap.defaultProps = {
|
||
tag: 'div',
|
||
className: ''
|
||
};
|
||
/* harmony default export */ var es_DOMWrap = (DOMWrap_DOMWrap);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/SubPopupMenu.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function allDisabled(arr) {
|
||
if (!arr.length) {
|
||
return true;
|
||
}
|
||
|
||
return arr.every(function (c) {
|
||
return !!c.props.disabled;
|
||
});
|
||
}
|
||
|
||
function updateActiveKey(store, menuId, activeKey) {
|
||
var state = store.getState();
|
||
store.setState({
|
||
activeKey: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, state.activeKey), {}, Object(esm_defineProperty["a" /* default */])({}, menuId, activeKey))
|
||
});
|
||
}
|
||
|
||
function getEventKey(props) {
|
||
// when eventKey not available ,it's menu and return menu id '0-menu-'
|
||
return props.eventKey || '0-menu-';
|
||
}
|
||
|
||
function getActiveKey(props, originalActiveKey) {
|
||
var activeKey = originalActiveKey;
|
||
var children = props.children,
|
||
eventKey = props.eventKey;
|
||
|
||
if (activeKey) {
|
||
var found;
|
||
loopMenuItem(children, function (c, i) {
|
||
if (c && c.props && !c.props.disabled && activeKey === getKeyFromChildrenIndex(c, eventKey, i)) {
|
||
found = true;
|
||
}
|
||
});
|
||
|
||
if (found) {
|
||
return activeKey;
|
||
}
|
||
}
|
||
|
||
activeKey = null;
|
||
|
||
if (props.defaultActiveFirst) {
|
||
loopMenuItem(children, function (c, i) {
|
||
if (!activeKey && c && !c.props.disabled) {
|
||
activeKey = getKeyFromChildrenIndex(c, eventKey, i);
|
||
}
|
||
});
|
||
return activeKey;
|
||
}
|
||
|
||
return activeKey;
|
||
}
|
||
function saveRef(c) {
|
||
if (!c) {
|
||
return;
|
||
}
|
||
/* eslint-disable @typescript-eslint/no-invalid-this */
|
||
|
||
|
||
var index = this.instanceArray.indexOf(c);
|
||
|
||
if (index !== -1) {
|
||
// update component if it's already inside instanceArray
|
||
this.instanceArray[index] = c;
|
||
} else {
|
||
// add component if it's not in instanceArray yet;
|
||
this.instanceArray.push(c);
|
||
}
|
||
/* eslint-enable @typescript-eslint/no-invalid-this */
|
||
|
||
}
|
||
var SubPopupMenu_SubPopupMenu = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(SubPopupMenu, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(SubPopupMenu);
|
||
|
||
function SubPopupMenu(props) {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, SubPopupMenu);
|
||
|
||
_this = _super.call(this, props);
|
||
/**
|
||
* all keyboard events callbacks run from here at first
|
||
*
|
||
* note:
|
||
* This legacy code that `onKeyDown` is called by parent instead of dom self.
|
||
* which need return code to check if this event is handled
|
||
*/
|
||
|
||
_this.onKeyDown = function (e, callback) {
|
||
var keyCode = e.keyCode;
|
||
var handled;
|
||
|
||
_this.getFlatInstanceArray().forEach(function (obj) {
|
||
if (obj && obj.props.active && obj.onKeyDown) {
|
||
handled = obj.onKeyDown(e);
|
||
}
|
||
});
|
||
|
||
if (handled) {
|
||
return 1;
|
||
}
|
||
|
||
var activeItem = null;
|
||
|
||
if (keyCode === KeyCode["a" /* default */].UP || keyCode === KeyCode["a" /* default */].DOWN) {
|
||
activeItem = _this.step(keyCode === KeyCode["a" /* default */].UP ? -1 : 1);
|
||
}
|
||
|
||
if (activeItem) {
|
||
e.preventDefault();
|
||
updateActiveKey(_this.props.store, getEventKey(_this.props), activeItem.props.eventKey);
|
||
|
||
if (typeof callback === 'function') {
|
||
callback(activeItem);
|
||
}
|
||
|
||
return 1;
|
||
}
|
||
|
||
return undefined;
|
||
};
|
||
|
||
_this.onItemHover = function (e) {
|
||
var key = e.key,
|
||
hover = e.hover;
|
||
updateActiveKey(_this.props.store, getEventKey(_this.props), hover ? key : null);
|
||
};
|
||
|
||
_this.onDeselect = function (selectInfo) {
|
||
_this.props.onDeselect(selectInfo);
|
||
};
|
||
|
||
_this.onSelect = function (selectInfo) {
|
||
_this.props.onSelect(selectInfo);
|
||
};
|
||
|
||
_this.onClick = function (e) {
|
||
_this.props.onClick(e);
|
||
};
|
||
|
||
_this.onOpenChange = function (e) {
|
||
_this.props.onOpenChange(e);
|
||
};
|
||
|
||
_this.onDestroy = function (key) {
|
||
/* istanbul ignore next */
|
||
_this.props.onDestroy(key);
|
||
};
|
||
|
||
_this.getFlatInstanceArray = function () {
|
||
return _this.instanceArray;
|
||
};
|
||
|
||
_this.step = function (direction) {
|
||
var children = _this.getFlatInstanceArray();
|
||
|
||
var activeKey = _this.props.store.getState().activeKey[getEventKey(_this.props)];
|
||
|
||
var len = children.length;
|
||
|
||
if (!len) {
|
||
return null;
|
||
}
|
||
|
||
if (direction < 0) {
|
||
children = children.concat().reverse();
|
||
} // find current activeIndex
|
||
|
||
|
||
var activeIndex = -1;
|
||
children.every(function (c, ci) {
|
||
if (c && c.props.eventKey === activeKey) {
|
||
activeIndex = ci;
|
||
return false;
|
||
}
|
||
|
||
return true;
|
||
});
|
||
|
||
if (!_this.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {
|
||
return undefined;
|
||
}
|
||
|
||
var start = (activeIndex + 1) % len;
|
||
var i = start;
|
||
|
||
do {
|
||
var child = children[i];
|
||
|
||
if (!child || child.props.disabled) {
|
||
i = (i + 1) % len;
|
||
} else {
|
||
return child;
|
||
}
|
||
} while (i !== start);
|
||
|
||
return null;
|
||
};
|
||
|
||
_this.renderCommonMenuItem = function (child, i, extraProps) {
|
||
var state = _this.props.store.getState();
|
||
|
||
var _assertThisInitialize = Object(assertThisInitialized["a" /* default */])(_this),
|
||
props = _assertThisInitialize.props;
|
||
|
||
var key = getKeyFromChildrenIndex(child, props.eventKey, i);
|
||
var childProps = child.props; // https://github.com/ant-design/ant-design/issues/11517#issuecomment-477403055
|
||
|
||
if (!childProps || typeof child.type === 'string') {
|
||
return child;
|
||
}
|
||
|
||
var isActive = key === state.activeKey;
|
||
|
||
var newChildProps = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
||
mode: childProps.mode || props.mode,
|
||
level: props.level,
|
||
inlineIndent: props.inlineIndent,
|
||
renderMenuItem: _this.renderMenuItem,
|
||
rootPrefixCls: props.prefixCls,
|
||
index: i,
|
||
parentMenu: props.parentMenu,
|
||
// customized ref function, need to be invoked manually in child's componentDidMount
|
||
manualRef: childProps.disabled ? undefined : Object(createChainedFunction["a" /* default */])(child.ref, saveRef.bind(Object(assertThisInitialized["a" /* default */])(_this))),
|
||
eventKey: key,
|
||
active: !childProps.disabled && isActive,
|
||
multiple: props.multiple,
|
||
onClick: function onClick(e) {
|
||
(childProps.onClick || noop)(e);
|
||
|
||
_this.onClick(e);
|
||
},
|
||
onItemHover: _this.onItemHover,
|
||
motion: props.motion,
|
||
subMenuOpenDelay: props.subMenuOpenDelay,
|
||
subMenuCloseDelay: props.subMenuCloseDelay,
|
||
forceSubMenuRender: props.forceSubMenuRender,
|
||
onOpenChange: _this.onOpenChange,
|
||
onDeselect: _this.onDeselect,
|
||
onSelect: _this.onSelect,
|
||
builtinPlacements: props.builtinPlacements,
|
||
itemIcon: childProps.itemIcon || _this.props.itemIcon,
|
||
expandIcon: childProps.expandIcon || _this.props.expandIcon
|
||
}, extraProps), {}, {
|
||
direction: props.direction
|
||
}); // ref: https://github.com/ant-design/ant-design/issues/13943
|
||
|
||
|
||
if (props.mode === 'inline' || util_isMobileDevice()) {
|
||
newChildProps.triggerSubMenuAction = 'click';
|
||
}
|
||
|
||
return /*#__PURE__*/react["cloneElement"](child, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, newChildProps), {}, {
|
||
key: key || i
|
||
}));
|
||
};
|
||
|
||
_this.renderMenuItem = function (c, i, subMenuKey) {
|
||
/* istanbul ignore if */
|
||
if (!c) {
|
||
return null;
|
||
}
|
||
|
||
var state = _this.props.store.getState();
|
||
|
||
var extraProps = {
|
||
openKeys: state.openKeys,
|
||
selectedKeys: state.selectedKeys,
|
||
triggerSubMenuAction: _this.props.triggerSubMenuAction,
|
||
subMenuKey: subMenuKey
|
||
};
|
||
return _this.renderCommonMenuItem(c, i, extraProps);
|
||
};
|
||
|
||
props.store.setState({
|
||
activeKey: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props.store.getState().activeKey), {}, Object(esm_defineProperty["a" /* default */])({}, props.eventKey, getActiveKey(props, props.activeKey)))
|
||
});
|
||
_this.instanceArray = [];
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(SubPopupMenu, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
// invoke customized ref to expose component to mixin
|
||
if (this.props.manualRef) {
|
||
this.props.manualRef(this);
|
||
}
|
||
}
|
||
}, {
|
||
key: "shouldComponentUpdate",
|
||
value: function shouldComponentUpdate(nextProps) {
|
||
return this.props.visible || nextProps.visible || this.props.className !== nextProps.className || !shallowequal_default()(this.props.style, nextProps.style);
|
||
}
|
||
}, {
|
||
key: "componentDidUpdate",
|
||
value: function componentDidUpdate(prevProps) {
|
||
var props = this.props;
|
||
var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];
|
||
var activeKey = getActiveKey(props, originalActiveKey);
|
||
|
||
if (activeKey !== originalActiveKey) {
|
||
updateActiveKey(props.store, getEventKey(props), activeKey);
|
||
} else if ('activeKey' in prevProps) {
|
||
// If prev activeKey is not same as current activeKey,
|
||
// we should set it.
|
||
var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);
|
||
|
||
if (activeKey !== prevActiveKey) {
|
||
updateActiveKey(props.store, getEventKey(props), activeKey);
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var _this2 = this;
|
||
|
||
var props = Object(esm_extends["a" /* default */])({}, this.props);
|
||
|
||
this.instanceArray = [];
|
||
var className = classnames_default()(props.prefixCls, props.className, "".concat(props.prefixCls, "-").concat(props.mode));
|
||
var domProps = {
|
||
className: className,
|
||
// role could be 'select' and by default set to menu
|
||
role: props.role || 'menu'
|
||
};
|
||
|
||
if (props.id) {
|
||
domProps.id = props.id;
|
||
}
|
||
|
||
if (props.focusable) {
|
||
domProps.tabIndex = 0;
|
||
domProps.onKeyDown = this.onKeyDown;
|
||
}
|
||
|
||
var prefixCls = props.prefixCls,
|
||
eventKey = props.eventKey,
|
||
visible = props.visible,
|
||
level = props.level,
|
||
mode = props.mode,
|
||
overflowedIndicator = props.overflowedIndicator,
|
||
theme = props.theme;
|
||
menuAllProps.forEach(function (key) {
|
||
return delete props[key];
|
||
}); // Otherwise, the propagated click event will trigger another onClick
|
||
|
||
delete props.onClick;
|
||
return /*#__PURE__*/react["createElement"](es_DOMWrap, Object(esm_extends["a" /* default */])({}, props, {
|
||
prefixCls: prefixCls,
|
||
mode: mode,
|
||
tag: "ul",
|
||
level: level,
|
||
theme: theme,
|
||
visible: visible,
|
||
overflowedIndicator: overflowedIndicator
|
||
}, domProps), Object(toArray["a" /* default */])(props.children).map(function (c, i) {
|
||
return _this2.renderMenuItem(c, i, eventKey || '0-menu-');
|
||
}));
|
||
}
|
||
}]);
|
||
|
||
return SubPopupMenu;
|
||
}(react["Component"]);
|
||
SubPopupMenu_SubPopupMenu.defaultProps = {
|
||
prefixCls: 'rc-menu',
|
||
className: '',
|
||
mode: 'vertical',
|
||
level: 1,
|
||
inlineIndent: 24,
|
||
visible: true,
|
||
focusable: true,
|
||
style: {},
|
||
manualRef: noop
|
||
};
|
||
var SubPopupMenu_connected = Object(esm["b" /* connect */])()(SubPopupMenu_SubPopupMenu);
|
||
/* harmony default export */ var es_SubPopupMenu = (SubPopupMenu_connected);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/utils/legacyUtil.js
|
||
|
||
|
||
function legacyUtil_getMotion(_ref, _ref2, menuMode) {
|
||
var prefixCls = _ref.prefixCls,
|
||
motion = _ref.motion,
|
||
_ref$defaultMotions = _ref.defaultMotions,
|
||
defaultMotions = _ref$defaultMotions === void 0 ? {} : _ref$defaultMotions,
|
||
openAnimation = _ref.openAnimation,
|
||
openTransitionName = _ref.openTransitionName;
|
||
var switchingModeFromInline = _ref2.switchingModeFromInline;
|
||
|
||
if (motion) {
|
||
return motion;
|
||
}
|
||
|
||
if (Object(esm_typeof["a" /* default */])(openAnimation) === 'object' && openAnimation) {
|
||
Object(warning["a" /* default */])(false, 'Object type of `openAnimation` is removed. Please use `motion` instead.');
|
||
} else if (typeof openAnimation === 'string') {
|
||
return {
|
||
motionName: "".concat(prefixCls, "-open-").concat(openAnimation)
|
||
};
|
||
}
|
||
|
||
if (openTransitionName) {
|
||
return {
|
||
motionName: openTransitionName
|
||
};
|
||
} // Default logic
|
||
|
||
|
||
var defaultMotion = defaultMotions[menuMode];
|
||
|
||
if (defaultMotion) {
|
||
return defaultMotion;
|
||
} // When mode switch from inline
|
||
// submenu should hide without animation
|
||
|
||
|
||
return switchingModeFromInline ? null : defaultMotions.other;
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/Menu.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var Menu_Menu = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(Menu, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(Menu);
|
||
|
||
function Menu(props) {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, Menu);
|
||
|
||
_this = _super.call(this, props);
|
||
|
||
_this.onSelect = function (selectInfo) {
|
||
var _assertThisInitialize = Object(assertThisInitialized["a" /* default */])(_this),
|
||
props = _assertThisInitialize.props;
|
||
|
||
if (props.selectable) {
|
||
// root menu
|
||
var _this$store$getState = _this.store.getState(),
|
||
_selectedKeys = _this$store$getState.selectedKeys;
|
||
|
||
var selectedKey = selectInfo.key;
|
||
|
||
if (props.multiple) {
|
||
_selectedKeys = _selectedKeys.concat([selectedKey]);
|
||
} else {
|
||
_selectedKeys = [selectedKey];
|
||
}
|
||
|
||
if (!('selectedKeys' in props)) {
|
||
_this.store.setState({
|
||
selectedKeys: _selectedKeys
|
||
});
|
||
}
|
||
|
||
props.onSelect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, selectInfo), {}, {
|
||
selectedKeys: _selectedKeys
|
||
}));
|
||
}
|
||
};
|
||
|
||
_this.onClick = function (e) {
|
||
var mode = _this.getRealMenuMode();
|
||
|
||
var _assertThisInitialize2 = Object(assertThisInitialized["a" /* default */])(_this),
|
||
store = _assertThisInitialize2.store,
|
||
onOpenChange = _assertThisInitialize2.props.onOpenChange;
|
||
|
||
if (mode !== 'inline' && !('openKeys' in _this.props)) {
|
||
// closing vertical popup submenu after click it
|
||
store.setState({
|
||
openKeys: []
|
||
});
|
||
onOpenChange([]);
|
||
}
|
||
|
||
_this.props.onClick(e);
|
||
}; // onKeyDown needs to be exposed as a instance method
|
||
// e.g., in rc-select, we need to navigate menu item while
|
||
// current active item is rc-select input box rather than the menu itself
|
||
|
||
|
||
_this.onKeyDown = function (e, callback) {
|
||
_this.innerMenu.getWrappedInstance().onKeyDown(e, callback);
|
||
};
|
||
|
||
_this.onOpenChange = function (event) {
|
||
var _assertThisInitialize3 = Object(assertThisInitialized["a" /* default */])(_this),
|
||
props = _assertThisInitialize3.props;
|
||
|
||
var openKeys = _this.store.getState().openKeys.concat();
|
||
|
||
var changed = false;
|
||
|
||
var processSingle = function processSingle(e) {
|
||
var oneChanged = false;
|
||
|
||
if (e.open) {
|
||
oneChanged = openKeys.indexOf(e.key) === -1;
|
||
|
||
if (oneChanged) {
|
||
openKeys.push(e.key);
|
||
}
|
||
} else {
|
||
var index = openKeys.indexOf(e.key);
|
||
oneChanged = index !== -1;
|
||
|
||
if (oneChanged) {
|
||
openKeys.splice(index, 1);
|
||
}
|
||
}
|
||
|
||
changed = changed || oneChanged;
|
||
};
|
||
|
||
if (Array.isArray(event)) {
|
||
// batch change call
|
||
event.forEach(processSingle);
|
||
} else {
|
||
processSingle(event);
|
||
}
|
||
|
||
if (changed) {
|
||
if (!('openKeys' in _this.props)) {
|
||
_this.store.setState({
|
||
openKeys: openKeys
|
||
});
|
||
}
|
||
|
||
props.onOpenChange(openKeys);
|
||
}
|
||
};
|
||
|
||
_this.onDeselect = function (selectInfo) {
|
||
var _assertThisInitialize4 = Object(assertThisInitialized["a" /* default */])(_this),
|
||
props = _assertThisInitialize4.props;
|
||
|
||
if (props.selectable) {
|
||
var _selectedKeys2 = _this.store.getState().selectedKeys.concat();
|
||
|
||
var selectedKey = selectInfo.key;
|
||
|
||
var index = _selectedKeys2.indexOf(selectedKey);
|
||
|
||
if (index !== -1) {
|
||
_selectedKeys2.splice(index, 1);
|
||
}
|
||
|
||
if (!('selectedKeys' in props)) {
|
||
_this.store.setState({
|
||
selectedKeys: _selectedKeys2
|
||
});
|
||
}
|
||
|
||
props.onDeselect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, selectInfo), {}, {
|
||
selectedKeys: _selectedKeys2
|
||
}));
|
||
}
|
||
}; // Restore vertical mode when menu is collapsed responsively when mounted
|
||
// https://github.com/ant-design/ant-design/issues/13104
|
||
// TODO: not a perfect solution,
|
||
// looking a new way to avoid setting switchingModeFromInline in this situation
|
||
|
||
|
||
_this.onMouseEnter = function (e) {
|
||
_this.restoreModeVerticalFromInline();
|
||
|
||
var onMouseEnter = _this.props.onMouseEnter;
|
||
|
||
if (onMouseEnter) {
|
||
onMouseEnter(e);
|
||
}
|
||
};
|
||
|
||
_this.onTransitionEnd = function (e) {
|
||
// when inlineCollapsed menu width animation finished
|
||
// https://github.com/ant-design/ant-design/issues/12864
|
||
var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget; // Fix SVGElement e.target.className.indexOf is not a function
|
||
// https://github.com/ant-design/ant-design/issues/15699
|
||
|
||
var className = e.target.className; // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal,
|
||
// unless during an animation.
|
||
|
||
var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className; // Fix for <Menu style={{ width: '100%' }} />,
|
||
// the width transition won't trigger when menu is collapsed
|
||
// https://github.com/ant-design/ant-design-pro/issues/2783
|
||
|
||
var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
|
||
|
||
if (widthCollapsed || iconScaled) {
|
||
_this.restoreModeVerticalFromInline();
|
||
}
|
||
};
|
||
|
||
_this.setInnerMenu = function (node) {
|
||
_this.innerMenu = node;
|
||
};
|
||
|
||
_this.isRootMenu = true;
|
||
var selectedKeys = props.defaultSelectedKeys;
|
||
var openKeys = props.defaultOpenKeys;
|
||
|
||
if ('selectedKeys' in props) {
|
||
selectedKeys = props.selectedKeys || [];
|
||
}
|
||
|
||
if ('openKeys' in props) {
|
||
openKeys = props.openKeys || [];
|
||
}
|
||
|
||
_this.store = Object(esm["c" /* create */])({
|
||
selectedKeys: selectedKeys,
|
||
openKeys: openKeys,
|
||
activeKey: {
|
||
'0-menu-': getActiveKey(props, props.activeKey)
|
||
}
|
||
});
|
||
_this.state = {
|
||
switchingModeFromInline: false,
|
||
prevProps: props,
|
||
inlineOpenKeys: [],
|
||
store: _this.store
|
||
};
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(Menu, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
this.updateMiniStore();
|
||
this.updateMenuDisplay();
|
||
}
|
||
}, {
|
||
key: "componentDidUpdate",
|
||
value: function componentDidUpdate(prevProps) {
|
||
var _this$props = this.props,
|
||
siderCollapsed = _this$props.siderCollapsed,
|
||
inlineCollapsed = _this$props.inlineCollapsed,
|
||
onOpenChange = _this$props.onOpenChange;
|
||
|
||
if (!prevProps.inlineCollapsed && inlineCollapsed || !prevProps.siderCollapsed && siderCollapsed) {
|
||
onOpenChange([]);
|
||
}
|
||
|
||
this.updateMiniStore();
|
||
this.updateMenuDisplay();
|
||
}
|
||
}, {
|
||
key: "updateMenuDisplay",
|
||
value: function updateMenuDisplay() {
|
||
var collapsedWidth = this.props.collapsedWidth,
|
||
store = this.store,
|
||
prevOpenKeys = this.prevOpenKeys; // https://github.com/ant-design/ant-design/issues/8587
|
||
|
||
var hideMenu = this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
|
||
|
||
if (hideMenu) {
|
||
this.prevOpenKeys = store.getState().openKeys.concat();
|
||
this.store.setState({
|
||
openKeys: []
|
||
});
|
||
} else if (prevOpenKeys) {
|
||
this.store.setState({
|
||
openKeys: prevOpenKeys
|
||
});
|
||
this.prevOpenKeys = null;
|
||
}
|
||
}
|
||
}, {
|
||
key: "getRealMenuMode",
|
||
value: function getRealMenuMode() {
|
||
var mode = this.props.mode;
|
||
var switchingModeFromInline = this.state.switchingModeFromInline;
|
||
var inlineCollapsed = this.getInlineCollapsed();
|
||
|
||
if (switchingModeFromInline && inlineCollapsed) {
|
||
return 'inline';
|
||
}
|
||
|
||
return inlineCollapsed ? 'vertical' : mode;
|
||
}
|
||
}, {
|
||
key: "getInlineCollapsed",
|
||
value: function getInlineCollapsed() {
|
||
var _this$props2 = this.props,
|
||
inlineCollapsed = _this$props2.inlineCollapsed,
|
||
siderCollapsed = _this$props2.siderCollapsed;
|
||
|
||
if (siderCollapsed !== undefined) {
|
||
return siderCollapsed;
|
||
}
|
||
|
||
return inlineCollapsed;
|
||
}
|
||
}, {
|
||
key: "restoreModeVerticalFromInline",
|
||
value: function restoreModeVerticalFromInline() {
|
||
var switchingModeFromInline = this.state.switchingModeFromInline;
|
||
|
||
if (switchingModeFromInline) {
|
||
this.setState({
|
||
switchingModeFromInline: false
|
||
});
|
||
}
|
||
}
|
||
}, {
|
||
key: "updateMiniStore",
|
||
value: function updateMiniStore() {
|
||
if ('selectedKeys' in this.props) {
|
||
this.store.setState({
|
||
selectedKeys: this.props.selectedKeys || []
|
||
});
|
||
}
|
||
|
||
if ('openKeys' in this.props) {
|
||
this.store.setState({
|
||
openKeys: this.props.openKeys || []
|
||
});
|
||
}
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var props = Object(objectSpread2["a" /* default */])({}, Object(omit["a" /* default */])(this.props, ['collapsedWidth', 'siderCollapsed', 'defaultMotions']));
|
||
|
||
var mode = this.getRealMenuMode();
|
||
props.className += " ".concat(props.prefixCls, "-root");
|
||
|
||
if (props.direction === 'rtl') {
|
||
props.className += " ".concat(props.prefixCls, "-rtl");
|
||
}
|
||
|
||
props = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
|
||
mode: mode,
|
||
onClick: this.onClick,
|
||
onOpenChange: this.onOpenChange,
|
||
onDeselect: this.onDeselect,
|
||
onSelect: this.onSelect,
|
||
onMouseEnter: this.onMouseEnter,
|
||
onTransitionEnd: this.onTransitionEnd,
|
||
parentMenu: this,
|
||
motion: legacyUtil_getMotion(this.props, this.state, mode)
|
||
});
|
||
delete props.openAnimation;
|
||
delete props.openTransitionName;
|
||
return /*#__PURE__*/react["createElement"](esm["a" /* Provider */], {
|
||
store: this.store
|
||
}, /*#__PURE__*/react["createElement"](es_SubPopupMenu, Object(esm_extends["a" /* default */])({}, props, {
|
||
ref: this.setInnerMenu
|
||
}), this.props.children));
|
||
}
|
||
}], [{
|
||
key: "getDerivedStateFromProps",
|
||
value: function getDerivedStateFromProps(nextProps, prevState) {
|
||
var prevProps = prevState.prevProps,
|
||
store = prevState.store;
|
||
var prevStoreState = store.getState();
|
||
var newStoreState = {};
|
||
var newState = {
|
||
prevProps: nextProps
|
||
};
|
||
|
||
if (prevProps.mode === 'inline' && nextProps.mode !== 'inline') {
|
||
newState.switchingModeFromInline = true;
|
||
}
|
||
|
||
if ('openKeys' in nextProps) {
|
||
newStoreState.openKeys = nextProps.openKeys || [];
|
||
} else {
|
||
// [Legacy] Old code will return after `openKeys` changed.
|
||
// Not sure the reason, we should keep this logic still.
|
||
if (nextProps.inlineCollapsed && !prevProps.inlineCollapsed || nextProps.siderCollapsed && !prevProps.siderCollapsed) {
|
||
newState.switchingModeFromInline = true;
|
||
newState.inlineOpenKeys = prevStoreState.openKeys;
|
||
newStoreState.openKeys = [];
|
||
}
|
||
|
||
if (!nextProps.inlineCollapsed && prevProps.inlineCollapsed || !nextProps.siderCollapsed && prevProps.siderCollapsed) {
|
||
newStoreState.openKeys = prevState.inlineOpenKeys;
|
||
newState.inlineOpenKeys = [];
|
||
}
|
||
}
|
||
|
||
if (Object.keys(newStoreState).length) {
|
||
store.setState(newStoreState);
|
||
}
|
||
|
||
return newState;
|
||
}
|
||
}]);
|
||
|
||
return Menu;
|
||
}(react["Component"]);
|
||
|
||
Menu_Menu.defaultProps = {
|
||
selectable: true,
|
||
onClick: noop,
|
||
onSelect: noop,
|
||
onOpenChange: noop,
|
||
onDeselect: noop,
|
||
defaultSelectedKeys: [],
|
||
defaultOpenKeys: [],
|
||
subMenuOpenDelay: 0.1,
|
||
subMenuCloseDelay: 0.1,
|
||
triggerSubMenuAction: 'hover',
|
||
prefixCls: 'rc-menu',
|
||
className: '',
|
||
mode: 'vertical',
|
||
style: {},
|
||
builtinPlacements: {},
|
||
overflowedIndicator: /*#__PURE__*/react["createElement"]("span", null, "\xB7\xB7\xB7")
|
||
};
|
||
/* harmony default export */ var es_Menu = (Menu_Menu);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/MenuItem.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var MenuItem_MenuItem = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(MenuItem, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(MenuItem);
|
||
|
||
function MenuItem() {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, MenuItem);
|
||
|
||
_this = _super.apply(this, arguments);
|
||
|
||
_this.onKeyDown = function (e) {
|
||
var keyCode = e.keyCode;
|
||
|
||
if (keyCode === KeyCode["a" /* default */].ENTER) {
|
||
_this.onClick(e);
|
||
|
||
return true;
|
||
}
|
||
|
||
return undefined;
|
||
};
|
||
|
||
_this.onMouseLeave = function (e) {
|
||
var _this$props = _this.props,
|
||
eventKey = _this$props.eventKey,
|
||
onItemHover = _this$props.onItemHover,
|
||
onMouseLeave = _this$props.onMouseLeave;
|
||
onItemHover({
|
||
key: eventKey,
|
||
hover: false
|
||
});
|
||
onMouseLeave({
|
||
key: eventKey,
|
||
domEvent: e
|
||
});
|
||
};
|
||
|
||
_this.onMouseEnter = function (e) {
|
||
var _this$props2 = _this.props,
|
||
eventKey = _this$props2.eventKey,
|
||
onItemHover = _this$props2.onItemHover,
|
||
onMouseEnter = _this$props2.onMouseEnter;
|
||
onItemHover({
|
||
key: eventKey,
|
||
hover: true
|
||
});
|
||
onMouseEnter({
|
||
key: eventKey,
|
||
domEvent: e
|
||
});
|
||
};
|
||
|
||
_this.onClick = function (e) {
|
||
var _this$props3 = _this.props,
|
||
eventKey = _this$props3.eventKey,
|
||
multiple = _this$props3.multiple,
|
||
onClick = _this$props3.onClick,
|
||
onSelect = _this$props3.onSelect,
|
||
onDeselect = _this$props3.onDeselect,
|
||
isSelected = _this$props3.isSelected;
|
||
var info = {
|
||
key: eventKey,
|
||
keyPath: [eventKey],
|
||
item: Object(assertThisInitialized["a" /* default */])(_this),
|
||
domEvent: e
|
||
};
|
||
onClick(info);
|
||
|
||
if (multiple) {
|
||
if (isSelected) {
|
||
onDeselect(info);
|
||
} else {
|
||
onSelect(info);
|
||
}
|
||
} else if (!isSelected) {
|
||
onSelect(info);
|
||
}
|
||
};
|
||
|
||
_this.saveNode = function (node) {
|
||
_this.node = node;
|
||
};
|
||
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(MenuItem, [{
|
||
key: "componentDidMount",
|
||
value: function componentDidMount() {
|
||
// invoke customized ref to expose component to mixin
|
||
this.callRef();
|
||
}
|
||
}, {
|
||
key: "componentDidUpdate",
|
||
value: function componentDidUpdate() {
|
||
this.callRef();
|
||
}
|
||
}, {
|
||
key: "componentWillUnmount",
|
||
value: function componentWillUnmount() {
|
||
var props = this.props;
|
||
|
||
if (props.onDestroy) {
|
||
props.onDestroy(props.eventKey);
|
||
}
|
||
}
|
||
}, {
|
||
key: "getPrefixCls",
|
||
value: function getPrefixCls() {
|
||
return "".concat(this.props.rootPrefixCls, "-item");
|
||
}
|
||
}, {
|
||
key: "getActiveClassName",
|
||
value: function getActiveClassName() {
|
||
return "".concat(this.getPrefixCls(), "-active");
|
||
}
|
||
}, {
|
||
key: "getSelectedClassName",
|
||
value: function getSelectedClassName() {
|
||
return "".concat(this.getPrefixCls(), "-selected");
|
||
}
|
||
}, {
|
||
key: "getDisabledClassName",
|
||
value: function getDisabledClassName() {
|
||
return "".concat(this.getPrefixCls(), "-disabled");
|
||
}
|
||
}, {
|
||
key: "callRef",
|
||
value: function callRef() {
|
||
if (this.props.manualRef) {
|
||
this.props.manualRef(this);
|
||
}
|
||
}
|
||
}, {
|
||
key: "render",
|
||
value: function render() {
|
||
var _classNames;
|
||
|
||
var props = Object(objectSpread2["a" /* default */])({}, this.props);
|
||
|
||
var className = classnames_default()(this.getPrefixCls(), props.className, (_classNames = {}, Object(esm_defineProperty["a" /* default */])(_classNames, this.getActiveClassName(), !props.disabled && props.active), Object(esm_defineProperty["a" /* default */])(_classNames, this.getSelectedClassName(), props.isSelected), Object(esm_defineProperty["a" /* default */])(_classNames, this.getDisabledClassName(), props.disabled), _classNames));
|
||
|
||
var attrs = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props.attribute), {}, {
|
||
title: typeof props.title === 'string' ? props.title : undefined,
|
||
className: className,
|
||
// set to menuitem by default
|
||
role: props.role || 'menuitem',
|
||
'aria-disabled': props.disabled
|
||
});
|
||
|
||
if (props.role === 'option') {
|
||
// overwrite to option
|
||
attrs = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, attrs), {}, {
|
||
role: 'option',
|
||
'aria-selected': props.isSelected
|
||
});
|
||
} else if (props.role === null || props.role === 'none') {
|
||
// sometimes we want to specify role inside <li/> element
|
||
// <li><a role='menuitem'>Link</a></li> would be a good example
|
||
// in this case the role on <li/> should be "none" to
|
||
// remove the implied listitem role.
|
||
// https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html
|
||
attrs.role = 'none';
|
||
} // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner
|
||
|
||
|
||
var mouseEvent = {
|
||
onClick: props.disabled ? null : this.onClick,
|
||
onMouseLeave: props.disabled ? null : this.onMouseLeave,
|
||
onMouseEnter: props.disabled ? null : this.onMouseEnter
|
||
};
|
||
|
||
var style = Object(objectSpread2["a" /* default */])({}, props.style);
|
||
|
||
if (props.mode === 'inline') {
|
||
if (props.direction === 'rtl') {
|
||
style.paddingRight = props.inlineIndent * props.level;
|
||
} else {
|
||
style.paddingLeft = props.inlineIndent * props.level;
|
||
}
|
||
}
|
||
|
||
menuAllProps.forEach(function (key) {
|
||
return delete props[key];
|
||
});
|
||
delete props.direction;
|
||
var icon = this.props.itemIcon;
|
||
|
||
if (typeof this.props.itemIcon === 'function') {
|
||
// TODO: This is a bug which should fixed after TS refactor
|
||
icon = /*#__PURE__*/react["createElement"](this.props.itemIcon, this.props);
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"]("li", Object(esm_extends["a" /* default */])({}, Object(omit["a" /* default */])(props, ['onClick', 'onMouseEnter', 'onMouseLeave', 'onSelect']), attrs, mouseEvent, {
|
||
style: style,
|
||
ref: this.saveNode
|
||
}), props.children, icon);
|
||
}
|
||
}]);
|
||
|
||
return MenuItem;
|
||
}(react["Component"]);
|
||
MenuItem_MenuItem.isMenuItem = true;
|
||
MenuItem_MenuItem.defaultProps = {
|
||
onSelect: noop,
|
||
onMouseEnter: noop,
|
||
onMouseLeave: noop,
|
||
manualRef: noop
|
||
};
|
||
var MenuItem_connected = Object(esm["b" /* connect */])(function (_ref, _ref2) {
|
||
var activeKey = _ref.activeKey,
|
||
selectedKeys = _ref.selectedKeys;
|
||
var eventKey = _ref2.eventKey,
|
||
subMenuKey = _ref2.subMenuKey;
|
||
return {
|
||
active: activeKey[subMenuKey] === eventKey,
|
||
// selectedKeys should be array in any circumstance
|
||
// when it is not, we have fallback logic for https://github.com/ant-design/ant-design/issues/29430
|
||
isSelected: Array.isArray(selectedKeys) ? selectedKeys.indexOf(eventKey) !== -1 : selectedKeys === eventKey
|
||
};
|
||
})(MenuItem_MenuItem);
|
||
/* harmony default export */ var es_MenuItem = (MenuItem_connected);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/MenuItemGroup.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var MenuItemGroup_MenuItemGroup = /*#__PURE__*/function (_React$Component) {
|
||
Object(inherits["a" /* default */])(MenuItemGroup, _React$Component);
|
||
|
||
var _super = Object(createSuper["a" /* default */])(MenuItemGroup);
|
||
|
||
function MenuItemGroup() {
|
||
var _this;
|
||
|
||
Object(classCallCheck["a" /* default */])(this, MenuItemGroup);
|
||
|
||
_this = _super.apply(this, arguments);
|
||
|
||
_this.renderInnerMenuItem = function (item) {
|
||
var _this$props = _this.props,
|
||
renderMenuItem = _this$props.renderMenuItem,
|
||
index = _this$props.index;
|
||
return renderMenuItem(item, index, _this.props.subMenuKey);
|
||
};
|
||
|
||
return _this;
|
||
}
|
||
|
||
Object(createClass["a" /* default */])(MenuItemGroup, [{
|
||
key: "render",
|
||
value: function render() {
|
||
var props = Object(esm_extends["a" /* default */])({}, this.props);
|
||
|
||
var _props$className = props.className,
|
||
className = _props$className === void 0 ? '' : _props$className,
|
||
rootPrefixCls = props.rootPrefixCls;
|
||
var titleClassName = "".concat(rootPrefixCls, "-item-group-title");
|
||
var listClassName = "".concat(rootPrefixCls, "-item-group-list");
|
||
var title = props.title,
|
||
children = props.children;
|
||
menuAllProps.forEach(function (key) {
|
||
return delete props[key];
|
||
});
|
||
delete props.direction;
|
||
return /*#__PURE__*/react["createElement"]("li", Object(esm_extends["a" /* default */])({}, props, {
|
||
onClick: function onClick(e) {
|
||
return e.stopPropagation();
|
||
},
|
||
className: "".concat(className, " ").concat(rootPrefixCls, "-item-group")
|
||
}), /*#__PURE__*/react["createElement"]("div", {
|
||
className: titleClassName,
|
||
title: typeof title === 'string' ? title : undefined
|
||
}, title), /*#__PURE__*/react["createElement"]("ul", {
|
||
className: listClassName
|
||
}, react["Children"].map(children, this.renderInnerMenuItem)));
|
||
}
|
||
}]);
|
||
|
||
return MenuItemGroup;
|
||
}(react["Component"]);
|
||
|
||
MenuItemGroup_MenuItemGroup.isMenuItemGroup = true;
|
||
MenuItemGroup_MenuItemGroup.defaultProps = {
|
||
disabled: true
|
||
};
|
||
/* harmony default export */ var es_MenuItemGroup = (MenuItemGroup_MenuItemGroup);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/Divider.js
|
||
|
||
|
||
var Divider_Divider = function Divider(_ref) {
|
||
var className = _ref.className,
|
||
rootPrefixCls = _ref.rootPrefixCls,
|
||
style = _ref.style;
|
||
return /*#__PURE__*/react["createElement"]("li", {
|
||
className: "".concat(className, " ").concat(rootPrefixCls, "-item-divider"),
|
||
style: style
|
||
});
|
||
};
|
||
|
||
Divider_Divider.defaultProps = {
|
||
// To fix keyboard UX.
|
||
disabled: true,
|
||
className: '',
|
||
style: {}
|
||
};
|
||
/* harmony default export */ var es_Divider = (Divider_Divider);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-menu/es/index.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/* harmony default export */ var rc_menu_es = (es_Menu);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-dropdown/es/placements.js
|
||
var placements_autoAdjustOverflow = {
|
||
adjustX: 1,
|
||
adjustY: 1
|
||
};
|
||
var targetOffset = [0, 0];
|
||
var es_placements_placements = {
|
||
topLeft: {
|
||
points: ['bl', 'tl'],
|
||
overflow: placements_autoAdjustOverflow,
|
||
offset: [0, -4],
|
||
targetOffset: targetOffset
|
||
},
|
||
topCenter: {
|
||
points: ['bc', 'tc'],
|
||
overflow: placements_autoAdjustOverflow,
|
||
offset: [0, -4],
|
||
targetOffset: targetOffset
|
||
},
|
||
topRight: {
|
||
points: ['br', 'tr'],
|
||
overflow: placements_autoAdjustOverflow,
|
||
offset: [0, -4],
|
||
targetOffset: targetOffset
|
||
},
|
||
bottomLeft: {
|
||
points: ['tl', 'bl'],
|
||
overflow: placements_autoAdjustOverflow,
|
||
offset: [0, 4],
|
||
targetOffset: targetOffset
|
||
},
|
||
bottomCenter: {
|
||
points: ['tc', 'bc'],
|
||
overflow: placements_autoAdjustOverflow,
|
||
offset: [0, 4],
|
||
targetOffset: targetOffset
|
||
},
|
||
bottomRight: {
|
||
points: ['tr', 'br'],
|
||
overflow: placements_autoAdjustOverflow,
|
||
offset: [0, 4],
|
||
targetOffset: targetOffset
|
||
}
|
||
};
|
||
/* harmony default export */ var rc_dropdown_es_placements = (es_placements_placements);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-dropdown/es/hooks/useAccessibility.js
|
||
|
||
|
||
|
||
var ESC = KeyCode["a" /* default */].ESC,
|
||
TAB = KeyCode["a" /* default */].TAB;
|
||
function useAccessibility(_ref) {
|
||
var visible = _ref.visible,
|
||
setTriggerVisible = _ref.setTriggerVisible,
|
||
triggerRef = _ref.triggerRef,
|
||
menuRef = _ref.menuRef,
|
||
onVisibleChange = _ref.onVisibleChange,
|
||
autoFocus = _ref.autoFocus;
|
||
var focusMenuRef = react["useRef"](false);
|
||
|
||
var handleCloseMenuAndReturnFocus = function handleCloseMenuAndReturnFocus() {
|
||
if (visible && triggerRef.current) {
|
||
var _triggerRef$current, _triggerRef$current$t, _triggerRef$current$t2, _triggerRef$current$t3;
|
||
|
||
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : (_triggerRef$current$t = _triggerRef$current.triggerRef) === null || _triggerRef$current$t === void 0 ? void 0 : (_triggerRef$current$t2 = _triggerRef$current$t.current) === null || _triggerRef$current$t2 === void 0 ? void 0 : (_triggerRef$current$t3 = _triggerRef$current$t2.focus) === null || _triggerRef$current$t3 === void 0 ? void 0 : _triggerRef$current$t3.call(_triggerRef$current$t2);
|
||
setTriggerVisible(false);
|
||
|
||
if (typeof onVisibleChange === 'function') {
|
||
onVisibleChange(false);
|
||
}
|
||
}
|
||
};
|
||
|
||
var focusMenu = function focusMenu() {
|
||
var _menuRef$current, _menuRef$current$focu;
|
||
|
||
(_menuRef$current = menuRef.current) === null || _menuRef$current === void 0 ? void 0 : (_menuRef$current$focu = _menuRef$current.focus) === null || _menuRef$current$focu === void 0 ? void 0 : _menuRef$current$focu.call(_menuRef$current);
|
||
focusMenuRef.current = true;
|
||
};
|
||
|
||
var handleKeyDown = function handleKeyDown(event) {
|
||
var _menuRef$current2;
|
||
|
||
switch (event.keyCode) {
|
||
case ESC:
|
||
handleCloseMenuAndReturnFocus();
|
||
break;
|
||
|
||
case TAB:
|
||
if (!focusMenuRef.current && ((_menuRef$current2 = menuRef.current) === null || _menuRef$current2 === void 0 ? void 0 : _menuRef$current2.focus)) {
|
||
event.preventDefault();
|
||
focusMenu();
|
||
} else {
|
||
handleCloseMenuAndReturnFocus();
|
||
}
|
||
|
||
break;
|
||
}
|
||
};
|
||
|
||
react["useEffect"](function () {
|
||
if (visible) {
|
||
window.addEventListener('keydown', handleKeyDown);
|
||
|
||
if (autoFocus) {
|
||
// FIXME: hack with raf
|
||
Object(es_raf["a" /* default */])(focusMenu, 3);
|
||
}
|
||
|
||
return function () {
|
||
window.removeEventListener('keydown', handleKeyDown);
|
||
focusMenuRef.current = false;
|
||
};
|
||
}
|
||
|
||
return function () {
|
||
focusMenuRef.current = false;
|
||
};
|
||
}, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-dropdown/es/Dropdown.js
|
||
|
||
|
||
|
||
|
||
var Dropdown_excluded = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus"];
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function Dropdown(props, ref) {
|
||
var _props$arrow = props.arrow,
|
||
arrow = _props$arrow === void 0 ? false : _props$arrow,
|
||
_props$prefixCls = props.prefixCls,
|
||
prefixCls = _props$prefixCls === void 0 ? 'rc-dropdown' : _props$prefixCls,
|
||
transitionName = props.transitionName,
|
||
animation = props.animation,
|
||
align = props.align,
|
||
_props$placement = props.placement,
|
||
placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
|
||
_props$placements = props.placements,
|
||
placements = _props$placements === void 0 ? rc_dropdown_es_placements : _props$placements,
|
||
getPopupContainer = props.getPopupContainer,
|
||
showAction = props.showAction,
|
||
hideAction = props.hideAction,
|
||
overlayClassName = props.overlayClassName,
|
||
overlayStyle = props.overlayStyle,
|
||
visible = props.visible,
|
||
_props$trigger = props.trigger,
|
||
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
||
autoFocus = props.autoFocus,
|
||
otherProps = Object(objectWithoutProperties["a" /* default */])(props, Dropdown_excluded);
|
||
|
||
var _React$useState = react["useState"](),
|
||
_React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2),
|
||
triggerVisible = _React$useState2[0],
|
||
setTriggerVisible = _React$useState2[1];
|
||
|
||
var mergedVisible = 'visible' in props ? visible : triggerVisible;
|
||
var triggerRef = react["useRef"](null);
|
||
react["useImperativeHandle"](ref, function () {
|
||
return triggerRef.current;
|
||
});
|
||
var menuRef = react["useRef"](null);
|
||
var menuClassName = "".concat(prefixCls, "-menu");
|
||
useAccessibility({
|
||
visible: mergedVisible,
|
||
setTriggerVisible: setTriggerVisible,
|
||
triggerRef: triggerRef,
|
||
menuRef: menuRef,
|
||
onVisibleChange: props.onVisibleChange,
|
||
autoFocus: autoFocus
|
||
});
|
||
|
||
var getOverlayElement = function getOverlayElement() {
|
||
var overlay = props.overlay;
|
||
var overlayElement;
|
||
|
||
if (typeof overlay === 'function') {
|
||
overlayElement = overlay();
|
||
} else {
|
||
overlayElement = overlay;
|
||
}
|
||
|
||
return overlayElement;
|
||
};
|
||
|
||
var onClick = function onClick(e) {
|
||
var onOverlayClick = props.onOverlayClick;
|
||
var overlayProps = getOverlayElement().props;
|
||
setTriggerVisible(false);
|
||
|
||
if (onOverlayClick) {
|
||
onOverlayClick(e);
|
||
}
|
||
|
||
if (overlayProps.onClick) {
|
||
overlayProps.onClick(e);
|
||
}
|
||
};
|
||
|
||
var onVisibleChange = function onVisibleChange(newVisible) {
|
||
var onVisibleChangeProp = props.onVisibleChange;
|
||
setTriggerVisible(newVisible);
|
||
|
||
if (typeof onVisibleChangeProp === 'function') {
|
||
onVisibleChangeProp(newVisible);
|
||
}
|
||
};
|
||
|
||
var getMenuElement = function getMenuElement() {
|
||
var _extraOverlayProps;
|
||
|
||
var overlayElement = getOverlayElement(); // @ts-ignore
|
||
|
||
var composedMenuRef = Object(es_ref["a" /* composeRef */])(menuRef, overlayElement.ref);
|
||
var extraOverlayProps = (_extraOverlayProps = {
|
||
prefixCls: menuClassName
|
||
}, Object(esm_defineProperty["a" /* default */])(_extraOverlayProps, 'data-dropdown-inject', true), Object(esm_defineProperty["a" /* default */])(_extraOverlayProps, "onClick", onClick), Object(esm_defineProperty["a" /* default */])(_extraOverlayProps, "ref", Object(es_ref["c" /* supportRef */])(overlayElement) ? composedMenuRef : undefined), _extraOverlayProps);
|
||
|
||
if (typeof overlayElement.type === 'string') {
|
||
delete extraOverlayProps.prefixCls;
|
||
delete extraOverlayProps['data-dropdown-inject'];
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](react["Fragment"], null, arrow && /*#__PURE__*/react["createElement"]("div", {
|
||
className: "".concat(prefixCls, "-arrow")
|
||
}), /*#__PURE__*/react["cloneElement"](overlayElement, extraOverlayProps));
|
||
};
|
||
|
||
var getMenuElementOrLambda = function getMenuElementOrLambda() {
|
||
var overlay = props.overlay;
|
||
|
||
if (typeof overlay === 'function') {
|
||
return getMenuElement;
|
||
}
|
||
|
||
return getMenuElement();
|
||
};
|
||
|
||
var getMinOverlayWidthMatchTrigger = function getMinOverlayWidthMatchTrigger() {
|
||
var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
|
||
alignPoint = props.alignPoint;
|
||
|
||
if ('minOverlayWidthMatchTrigger' in props) {
|
||
return minOverlayWidthMatchTrigger;
|
||
}
|
||
|
||
return !alignPoint;
|
||
};
|
||
|
||
var getOpenClassName = function getOpenClassName() {
|
||
var openClassName = props.openClassName;
|
||
|
||
if (openClassName !== undefined) {
|
||
return openClassName;
|
||
}
|
||
|
||
return "".concat(prefixCls, "-open");
|
||
};
|
||
|
||
var renderChildren = function renderChildren() {
|
||
var children = props.children;
|
||
var childrenProps = children.props ? children.props : {};
|
||
var childClassName = classnames_default()(childrenProps.className, getOpenClassName());
|
||
return mergedVisible && children ? /*#__PURE__*/react["cloneElement"](children, {
|
||
className: childClassName
|
||
}) : children;
|
||
};
|
||
|
||
var triggerHideAction = hideAction;
|
||
|
||
if (!triggerHideAction && trigger.indexOf('contextMenu') !== -1) {
|
||
triggerHideAction = ['click'];
|
||
}
|
||
|
||
return /*#__PURE__*/react["createElement"](rc_trigger_es, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
||
builtinPlacements: placements
|
||
}, otherProps), {}, {
|
||
prefixCls: prefixCls,
|
||
ref: triggerRef,
|
||
popupClassName: classnames_default()(overlayClassName, Object(esm_defineProperty["a" /* default */])({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
||
popupStyle: overlayStyle,
|
||
action: trigger,
|
||
showAction: showAction,
|
||
hideAction: triggerHideAction || [],
|
||
popupPlacement: placement,
|
||
popupAlign: align,
|
||
popupTransitionName: transitionName,
|
||
popupAnimation: animation,
|
||
popupVisible: mergedVisible,
|
||
stretch: getMinOverlayWidthMatchTrigger() ? 'minWidth' : '',
|
||
popup: getMenuElementOrLambda(),
|
||
onPopupVisibleChange: onVisibleChange,
|
||
getPopupContainer: getPopupContainer
|
||
}), renderChildren());
|
||
}
|
||
|
||
/* harmony default export */ var es_Dropdown = (/*#__PURE__*/react["forwardRef"](Dropdown));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/node_modules/rc-dropdown/es/index.js
|
||
|
||
/* harmony default export */ var rc_dropdown_es = (es_Dropdown);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabNavList/AddButton.js
|
||
|
||
|
||
function AddButton(_ref, ref) {
|
||
var prefixCls = _ref.prefixCls,
|
||
editable = _ref.editable,
|
||
locale = _ref.locale,
|
||
style = _ref.style;
|
||
|
||
if (!editable || editable.showAdd === false) {
|
||
return null;
|
||
}
|
||
|
||
return react["createElement"]("button", {
|
||
ref: ref,
|
||
type: "button",
|
||
className: "".concat(prefixCls, "-nav-add"),
|
||
style: style,
|
||
"aria-label": (locale === null || locale === void 0 ? void 0 : locale.addAriaLabel) || 'Add tab',
|
||
onClick: function onClick(event) {
|
||
editable.onEdit('add', {
|
||
event: event
|
||
});
|
||
}
|
||
}, editable.addIcon || '+');
|
||
}
|
||
|
||
/* harmony default export */ var TabNavList_AddButton = (react["forwardRef"](AddButton));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabNavList/OperationNode.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function OperationNode(_ref, ref) {
|
||
var prefixCls = _ref.prefixCls,
|
||
id = _ref.id,
|
||
tabs = _ref.tabs,
|
||
locale = _ref.locale,
|
||
mobile = _ref.mobile,
|
||
_ref$moreIcon = _ref.moreIcon,
|
||
moreIcon = _ref$moreIcon === void 0 ? 'More' : _ref$moreIcon,
|
||
moreTransitionName = _ref.moreTransitionName,
|
||
style = _ref.style,
|
||
className = _ref.className,
|
||
editable = _ref.editable,
|
||
tabBarGutter = _ref.tabBarGutter,
|
||
rtl = _ref.rtl,
|
||
onTabClick = _ref.onTabClick;
|
||
|
||
// ======================== Dropdown ========================
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
open = _useState2[0],
|
||
setOpen = _useState2[1];
|
||
|
||
var _useState3 = Object(react["useState"])(null),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
selectedKey = _useState4[0],
|
||
setSelectedKey = _useState4[1];
|
||
|
||
var popupId = "".concat(id, "-more-popup");
|
||
var dropdownPrefix = "".concat(prefixCls, "-dropdown");
|
||
var selectedItemId = selectedKey !== null ? "".concat(popupId, "-").concat(selectedKey) : null;
|
||
var dropdownAriaLabel = locale === null || locale === void 0 ? void 0 : locale.dropdownAriaLabel;
|
||
var menu = react["createElement"](rc_menu_es, {
|
||
onClick: function onClick(_ref2) {
|
||
var key = _ref2.key,
|
||
domEvent = _ref2.domEvent;
|
||
onTabClick(key, domEvent);
|
||
setOpen(false);
|
||
},
|
||
id: popupId,
|
||
tabIndex: -1,
|
||
role: "listbox",
|
||
"aria-activedescendant": selectedItemId,
|
||
selectedKeys: [selectedKey],
|
||
"aria-label": dropdownAriaLabel !== undefined ? dropdownAriaLabel : 'expanded dropdown'
|
||
}, tabs.map(function (tab) {
|
||
return react["createElement"](es_MenuItem, {
|
||
key: tab.key,
|
||
id: "".concat(popupId, "-").concat(tab.key),
|
||
role: "option",
|
||
"aria-controls": id && "".concat(id, "-panel-").concat(tab.key),
|
||
disabled: tab.disabled
|
||
}, tab.tab);
|
||
}));
|
||
|
||
function selectOffset(offset) {
|
||
var enabledTabs = tabs.filter(function (tab) {
|
||
return !tab.disabled;
|
||
});
|
||
var selectedIndex = enabledTabs.findIndex(function (tab) {
|
||
return tab.key === selectedKey;
|
||
}) || 0;
|
||
var len = enabledTabs.length;
|
||
|
||
for (var i = 0; i < len; i += 1) {
|
||
selectedIndex = (selectedIndex + offset + len) % len;
|
||
var tab = enabledTabs[selectedIndex];
|
||
|
||
if (!tab.disabled) {
|
||
setSelectedKey(tab.key);
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
|
||
function onKeyDown(e) {
|
||
var which = e.which;
|
||
|
||
if (!open) {
|
||
if ([KeyCode["a" /* default */].DOWN, KeyCode["a" /* default */].SPACE, KeyCode["a" /* default */].ENTER].includes(which)) {
|
||
setOpen(true);
|
||
e.preventDefault();
|
||
}
|
||
|
||
return;
|
||
}
|
||
|
||
switch (which) {
|
||
case KeyCode["a" /* default */].UP:
|
||
selectOffset(-1);
|
||
e.preventDefault();
|
||
break;
|
||
|
||
case KeyCode["a" /* default */].DOWN:
|
||
selectOffset(1);
|
||
e.preventDefault();
|
||
break;
|
||
|
||
case KeyCode["a" /* default */].ESC:
|
||
setOpen(false);
|
||
break;
|
||
|
||
case KeyCode["a" /* default */].SPACE:
|
||
case KeyCode["a" /* default */].ENTER:
|
||
if (selectedKey !== null) onTabClick(selectedKey, e);
|
||
break;
|
||
}
|
||
} // ========================= Effect =========================
|
||
|
||
|
||
Object(react["useEffect"])(function () {
|
||
// We use query element here to avoid React strict warning
|
||
var ele = document.getElementById(selectedItemId);
|
||
|
||
if (ele && ele.scrollIntoView) {
|
||
ele.scrollIntoView(false);
|
||
}
|
||
}, [selectedKey]);
|
||
Object(react["useEffect"])(function () {
|
||
if (!open) {
|
||
setSelectedKey(null);
|
||
}
|
||
}, [open]); // ========================= Render =========================
|
||
|
||
var moreStyle = Object(esm_defineProperty["a" /* default */])({}, rtl ? 'marginLeft' : 'marginRight', tabBarGutter);
|
||
|
||
if (!tabs.length) {
|
||
moreStyle.visibility = 'hidden';
|
||
moreStyle.order = 1;
|
||
}
|
||
|
||
var overlayClassName = classnames_default()(Object(esm_defineProperty["a" /* default */])({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
||
var moreNode = mobile ? null : react["createElement"](rc_dropdown_es, {
|
||
prefixCls: dropdownPrefix,
|
||
overlay: menu,
|
||
trigger: ['hover'],
|
||
visible: open,
|
||
transitionName: moreTransitionName,
|
||
onVisibleChange: setOpen,
|
||
overlayClassName: overlayClassName,
|
||
mouseEnterDelay: 0.1,
|
||
mouseLeaveDelay: 0.1
|
||
}, react["createElement"]("button", {
|
||
type: "button",
|
||
className: "".concat(prefixCls, "-nav-more"),
|
||
style: moreStyle,
|
||
tabIndex: -1,
|
||
"aria-hidden": "true",
|
||
"aria-haspopup": "listbox",
|
||
"aria-controls": popupId,
|
||
id: "".concat(id, "-more"),
|
||
"aria-expanded": open,
|
||
onKeyDown: onKeyDown
|
||
}, moreIcon));
|
||
return react["createElement"]("div", {
|
||
className: classnames_default()("".concat(prefixCls, "-nav-operations"), className),
|
||
style: style,
|
||
ref: ref
|
||
}, moreNode, react["createElement"](TabNavList_AddButton, {
|
||
prefixCls: prefixCls,
|
||
locale: locale,
|
||
editable: editable
|
||
}));
|
||
}
|
||
|
||
/* harmony default export */ var TabNavList_OperationNode = (react["forwardRef"](OperationNode));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabContext.js
|
||
|
||
/* harmony default export */ var TabContext = (Object(react["createContext"])(null));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/hooks/useTouchMove.js
|
||
|
||
|
||
|
||
var MIN_SWIPE_DISTANCE = 0.1;
|
||
var STOP_SWIPE_DISTANCE = 0.01;
|
||
var REFRESH_INTERVAL = 20;
|
||
var SPEED_OFF_MULTIPLE = Math.pow(0.995, REFRESH_INTERVAL); // ========================= Check if is a mobile =========================
|
||
|
||
function useTouchMove_isMobile() {
|
||
var agent = navigator.userAgent || navigator.vendor || window.opera;
|
||
|
||
if (/(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(agent) || /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(agent.substr(0, 4))) {
|
||
return true;
|
||
}
|
||
|
||
return false;
|
||
} // ================================= Hook =================================
|
||
|
||
function useTouchMove(ref, onOffset) {
|
||
var _useState = Object(react["useState"])(),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
touchPosition = _useState2[0],
|
||
setTouchPosition = _useState2[1];
|
||
|
||
var _useState3 = Object(react["useState"])(0),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
lastTimestamp = _useState4[0],
|
||
setLastTimestamp = _useState4[1];
|
||
|
||
var _useState5 = Object(react["useState"])(0),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
lastTimeDiff = _useState6[0],
|
||
setLastTimeDiff = _useState6[1];
|
||
|
||
var _useState7 = Object(react["useState"])(),
|
||
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
|
||
lastOffset = _useState8[0],
|
||
setLastOffset = _useState8[1];
|
||
|
||
var motionRef = Object(react["useRef"])(); // ========================= Events =========================
|
||
// >>> Touch events
|
||
|
||
function onTouchStart(e) {
|
||
var _e$touches$ = e.touches[0],
|
||
screenX = _e$touches$.screenX,
|
||
screenY = _e$touches$.screenY;
|
||
setTouchPosition({
|
||
x: screenX,
|
||
y: screenY
|
||
});
|
||
window.clearInterval(motionRef.current);
|
||
}
|
||
|
||
function onTouchMove(e) {
|
||
if (!touchPosition) return;
|
||
e.preventDefault();
|
||
var _e$touches$2 = e.touches[0],
|
||
screenX = _e$touches$2.screenX,
|
||
screenY = _e$touches$2.screenY;
|
||
setTouchPosition({
|
||
x: screenX,
|
||
y: screenY
|
||
});
|
||
var offsetX = screenX - touchPosition.x;
|
||
var offsetY = screenY - touchPosition.y;
|
||
onOffset(offsetX, offsetY);
|
||
var now = Date.now();
|
||
setLastTimestamp(now);
|
||
setLastTimeDiff(now - lastTimestamp);
|
||
setLastOffset({
|
||
x: offsetX,
|
||
y: offsetY
|
||
});
|
||
}
|
||
|
||
function onTouchEnd() {
|
||
if (!touchPosition) return;
|
||
setTouchPosition(null);
|
||
setLastOffset(null); // Swipe if needed
|
||
|
||
if (lastOffset) {
|
||
var distanceX = lastOffset.x / lastTimeDiff;
|
||
var distanceY = lastOffset.y / lastTimeDiff;
|
||
var absX = Math.abs(distanceX);
|
||
var absY = Math.abs(distanceY); // Skip swipe if low distance
|
||
|
||
if (Math.max(absX, absY) < MIN_SWIPE_DISTANCE) return;
|
||
var currentX = distanceX;
|
||
var currentY = distanceY;
|
||
motionRef.current = window.setInterval(function () {
|
||
if (Math.abs(currentX) < STOP_SWIPE_DISTANCE && Math.abs(currentY) < STOP_SWIPE_DISTANCE) {
|
||
window.clearInterval(motionRef.current);
|
||
return;
|
||
}
|
||
|
||
currentX *= SPEED_OFF_MULTIPLE;
|
||
currentY *= SPEED_OFF_MULTIPLE;
|
||
onOffset(currentX * REFRESH_INTERVAL, currentY * REFRESH_INTERVAL);
|
||
}, REFRESH_INTERVAL);
|
||
}
|
||
} // >>> Wheel event
|
||
|
||
|
||
var lastWheelTimestampRef = Object(react["useRef"])(0);
|
||
var lastWheelPreventRef = Object(react["useRef"])(false);
|
||
var lastWheelDirectionRef = Object(react["useRef"])();
|
||
|
||
function onWheel(e) {
|
||
var deltaX = e.deltaX,
|
||
deltaY = e.deltaY; // Convert both to x & y since wheel only happened on PC
|
||
|
||
var mixed = 0;
|
||
var absX = Math.abs(deltaX);
|
||
var absY = Math.abs(deltaY);
|
||
|
||
if (absX === absY) {
|
||
mixed = lastWheelDirectionRef.current === 'x' ? deltaX : deltaY;
|
||
} else if (absX > absY) {
|
||
mixed = deltaX;
|
||
lastWheelDirectionRef.current = 'x';
|
||
} else {
|
||
mixed = deltaY;
|
||
lastWheelDirectionRef.current = 'y';
|
||
} // Optimize mac touch scroll
|
||
|
||
|
||
var now = Date.now();
|
||
|
||
if (now - lastWheelTimestampRef.current > 100) {
|
||
lastWheelPreventRef.current = false;
|
||
}
|
||
|
||
if (onOffset(-mixed, -mixed) || lastWheelPreventRef.current) {
|
||
e.preventDefault();
|
||
lastWheelPreventRef.current = true;
|
||
}
|
||
|
||
lastWheelTimestampRef.current = now;
|
||
} // ========================= Effect =========================
|
||
|
||
|
||
var touchEventsRef = Object(react["useRef"])(null);
|
||
touchEventsRef.current = {
|
||
onTouchStart: onTouchStart,
|
||
onTouchMove: onTouchMove,
|
||
onTouchEnd: onTouchEnd,
|
||
onWheel: onWheel
|
||
};
|
||
react["useEffect"](function () {
|
||
function onProxyTouchStart(e) {
|
||
touchEventsRef.current.onTouchStart(e);
|
||
}
|
||
|
||
function onProxyTouchMove(e) {
|
||
touchEventsRef.current.onTouchMove(e);
|
||
}
|
||
|
||
function onProxyTouchEnd(e) {
|
||
touchEventsRef.current.onTouchEnd(e);
|
||
}
|
||
|
||
function onProxyWheel(e) {
|
||
touchEventsRef.current.onWheel(e);
|
||
}
|
||
|
||
document.addEventListener('touchmove', onProxyTouchMove, {
|
||
passive: false
|
||
});
|
||
document.addEventListener('touchend', onProxyTouchEnd, {
|
||
passive: false
|
||
}); // No need to clean up since element removed
|
||
|
||
ref.current.addEventListener('touchstart', onProxyTouchStart, {
|
||
passive: false
|
||
});
|
||
ref.current.addEventListener('wheel', onProxyWheel);
|
||
return function () {
|
||
document.removeEventListener('touchmove', onProxyTouchMove);
|
||
document.removeEventListener('touchend', onProxyTouchEnd);
|
||
};
|
||
}, []);
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/hooks/useRefs.js
|
||
|
||
|
||
function useRefs() {
|
||
var cacheRefs = Object(react["useRef"])(new Map());
|
||
|
||
function getRef(key) {
|
||
if (!cacheRefs.current.has(key)) {
|
||
cacheRefs.current.set(key, react["createRef"]());
|
||
}
|
||
|
||
return cacheRefs.current.get(key);
|
||
}
|
||
|
||
function removeRef(key) {
|
||
cacheRefs.current.delete(key);
|
||
}
|
||
|
||
return [getRef, removeRef];
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/hooks/useSyncState.js
|
||
|
||
|
||
function useSyncState(defaultState, onChange) {
|
||
var stateRef = react["useRef"](defaultState);
|
||
|
||
var _React$useState = react["useState"]({}),
|
||
_React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2),
|
||
forceUpdate = _React$useState2[1];
|
||
|
||
function setState(updater) {
|
||
var newValue = typeof updater === 'function' ? updater(stateRef.current) : updater;
|
||
|
||
if (newValue !== stateRef.current) {
|
||
onChange(newValue, stateRef.current);
|
||
}
|
||
|
||
stateRef.current = newValue;
|
||
forceUpdate({});
|
||
}
|
||
|
||
return [stateRef.current, setState];
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabNavList/index.js
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var TabNavList_ExtraContent = function ExtraContent(_ref) {
|
||
var position = _ref.position,
|
||
prefixCls = _ref.prefixCls,
|
||
extra = _ref.extra;
|
||
if (!extra) return null;
|
||
var content;
|
||
var assertExtra = extra;
|
||
|
||
if (position === 'right') {
|
||
content = assertExtra.right || !assertExtra.left && assertExtra || null;
|
||
}
|
||
|
||
if (position === 'left') {
|
||
content = assertExtra.left || null;
|
||
}
|
||
|
||
return content ? react["createElement"]("div", {
|
||
className: "".concat(prefixCls, "-extra-content")
|
||
}, content) : null;
|
||
};
|
||
|
||
function TabNavList(props, ref) {
|
||
var _classNames;
|
||
|
||
var _React$useContext = react["useContext"](TabContext),
|
||
prefixCls = _React$useContext.prefixCls,
|
||
tabs = _React$useContext.tabs;
|
||
|
||
var className = props.className,
|
||
style = props.style,
|
||
id = props.id,
|
||
animated = props.animated,
|
||
activeKey = props.activeKey,
|
||
rtl = props.rtl,
|
||
extra = props.extra,
|
||
editable = props.editable,
|
||
locale = props.locale,
|
||
tabPosition = props.tabPosition,
|
||
tabBarGutter = props.tabBarGutter,
|
||
children = props.children,
|
||
onTabClick = props.onTabClick,
|
||
onTabScroll = props.onTabScroll;
|
||
var tabsWrapperRef = Object(react["useRef"])();
|
||
var tabListRef = Object(react["useRef"])();
|
||
var operationsRef = Object(react["useRef"])();
|
||
var innerAddButtonRef = Object(react["useRef"])();
|
||
|
||
var _useRefs = useRefs(),
|
||
_useRefs2 = Object(slicedToArray["a" /* default */])(_useRefs, 2),
|
||
getBtnRef = _useRefs2[0],
|
||
removeBtnRef = _useRefs2[1];
|
||
|
||
var tabPositionTopOrBottom = tabPosition === 'top' || tabPosition === 'bottom';
|
||
|
||
var _useSyncState = useSyncState(0, function (next, prev) {
|
||
if (tabPositionTopOrBottom && onTabScroll) {
|
||
onTabScroll({
|
||
direction: next > prev ? 'left' : 'right'
|
||
});
|
||
}
|
||
}),
|
||
_useSyncState2 = Object(slicedToArray["a" /* default */])(_useSyncState, 2),
|
||
transformLeft = _useSyncState2[0],
|
||
setTransformLeft = _useSyncState2[1];
|
||
|
||
var _useSyncState3 = useSyncState(0, function (next, prev) {
|
||
if (!tabPositionTopOrBottom && onTabScroll) {
|
||
onTabScroll({
|
||
direction: next > prev ? 'top' : 'bottom'
|
||
});
|
||
}
|
||
}),
|
||
_useSyncState4 = Object(slicedToArray["a" /* default */])(_useSyncState3, 2),
|
||
transformTop = _useSyncState4[0],
|
||
setTransformTop = _useSyncState4[1];
|
||
|
||
var _useState = Object(react["useState"])(0),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
wrapperScrollWidth = _useState2[0],
|
||
setWrapperScrollWidth = _useState2[1];
|
||
|
||
var _useState3 = Object(react["useState"])(0),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
wrapperScrollHeight = _useState4[0],
|
||
setWrapperScrollHeight = _useState4[1];
|
||
|
||
var _useState5 = Object(react["useState"])(0),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
wrapperContentWidth = _useState6[0],
|
||
setWrapperContentWidth = _useState6[1];
|
||
|
||
var _useState7 = Object(react["useState"])(0),
|
||
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
|
||
wrapperContentHeight = _useState8[0],
|
||
setWrapperContentHeight = _useState8[1];
|
||
|
||
var _useState9 = Object(react["useState"])(null),
|
||
_useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
|
||
wrapperWidth = _useState10[0],
|
||
setWrapperWidth = _useState10[1];
|
||
|
||
var _useState11 = Object(react["useState"])(null),
|
||
_useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2),
|
||
wrapperHeight = _useState12[0],
|
||
setWrapperHeight = _useState12[1];
|
||
|
||
var _useState13 = Object(react["useState"])(0),
|
||
_useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2),
|
||
addWidth = _useState14[0],
|
||
setAddWidth = _useState14[1];
|
||
|
||
var _useState15 = Object(react["useState"])(0),
|
||
_useState16 = Object(slicedToArray["a" /* default */])(_useState15, 2),
|
||
addHeight = _useState16[0],
|
||
setAddHeight = _useState16[1];
|
||
|
||
var _useRafState = useRafState(new Map()),
|
||
_useRafState2 = Object(slicedToArray["a" /* default */])(_useRafState, 2),
|
||
tabSizes = _useRafState2[0],
|
||
setTabSizes = _useRafState2[1];
|
||
|
||
var tabOffsets = useOffsets(tabs, tabSizes, wrapperScrollWidth); // ========================== Util =========================
|
||
|
||
var operationsHiddenClassName = "".concat(prefixCls, "-nav-operations-hidden");
|
||
var transformMin = 0;
|
||
var transformMax = 0;
|
||
|
||
if (!tabPositionTopOrBottom) {
|
||
transformMin = Math.min(0, wrapperHeight - wrapperScrollHeight);
|
||
transformMax = 0;
|
||
} else if (rtl) {
|
||
transformMin = 0;
|
||
transformMax = Math.max(0, wrapperScrollWidth - wrapperWidth);
|
||
} else {
|
||
transformMin = Math.min(0, wrapperWidth - wrapperScrollWidth);
|
||
transformMax = 0;
|
||
}
|
||
|
||
function alignInRange(value) {
|
||
if (value < transformMin) {
|
||
return [transformMin, false];
|
||
}
|
||
|
||
if (value > transformMax) {
|
||
return [transformMax, false];
|
||
}
|
||
|
||
return [value, true];
|
||
} // ========================= Mobile ========================
|
||
|
||
|
||
var touchMovingRef = Object(react["useRef"])();
|
||
|
||
var _useState17 = Object(react["useState"])(),
|
||
_useState18 = Object(slicedToArray["a" /* default */])(_useState17, 2),
|
||
lockAnimation = _useState18[0],
|
||
setLockAnimation = _useState18[1];
|
||
|
||
function doLockAnimation() {
|
||
setLockAnimation(Date.now());
|
||
}
|
||
|
||
function clearTouchMoving() {
|
||
window.clearTimeout(touchMovingRef.current);
|
||
}
|
||
|
||
useTouchMove(tabsWrapperRef, function (offsetX, offsetY) {
|
||
var preventDefault = false;
|
||
|
||
function doMove(setState, offset) {
|
||
setState(function (value) {
|
||
var _alignInRange = alignInRange(value + offset),
|
||
_alignInRange2 = Object(slicedToArray["a" /* default */])(_alignInRange, 2),
|
||
newValue = _alignInRange2[0],
|
||
needPrevent = _alignInRange2[1];
|
||
|
||
preventDefault = needPrevent;
|
||
return newValue;
|
||
});
|
||
}
|
||
|
||
if (tabPositionTopOrBottom) {
|
||
// Skip scroll if place is enough
|
||
if (wrapperWidth >= wrapperScrollWidth) {
|
||
return preventDefault;
|
||
}
|
||
|
||
doMove(setTransformLeft, offsetX);
|
||
} else {
|
||
if (wrapperHeight >= wrapperScrollHeight) {
|
||
return preventDefault;
|
||
}
|
||
|
||
doMove(setTransformTop, offsetY);
|
||
}
|
||
|
||
clearTouchMoving();
|
||
doLockAnimation();
|
||
return preventDefault;
|
||
});
|
||
Object(react["useEffect"])(function () {
|
||
clearTouchMoving();
|
||
|
||
if (lockAnimation) {
|
||
touchMovingRef.current = window.setTimeout(function () {
|
||
setLockAnimation(0);
|
||
}, 100);
|
||
}
|
||
|
||
return clearTouchMoving;
|
||
}, [lockAnimation]); // ========================= Scroll ========================
|
||
|
||
function scrollToTab() {
|
||
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : activeKey;
|
||
var tabOffset = tabOffsets.get(key);
|
||
if (!tabOffset) return;
|
||
|
||
if (tabPositionTopOrBottom) {
|
||
// ============ Align with top & bottom ============
|
||
var newTransform = transformLeft; // RTL
|
||
|
||
if (rtl) {
|
||
if (tabOffset.right < transformLeft) {
|
||
newTransform = tabOffset.right;
|
||
} else if (tabOffset.right + tabOffset.width > transformLeft + wrapperWidth) {
|
||
newTransform = tabOffset.right + tabOffset.width - wrapperWidth;
|
||
}
|
||
} // LTR
|
||
else if (tabOffset.left < -transformLeft) {
|
||
newTransform = -tabOffset.left;
|
||
} else if (tabOffset.left + tabOffset.width > -transformLeft + wrapperWidth) {
|
||
newTransform = -(tabOffset.left + tabOffset.width - wrapperWidth);
|
||
}
|
||
|
||
setTransformTop(0);
|
||
setTransformLeft(alignInRange(newTransform)[0]);
|
||
} else {
|
||
// ============ Align with left & right ============
|
||
var _newTransform = transformTop;
|
||
|
||
if (tabOffset.top < -transformTop) {
|
||
_newTransform = -tabOffset.top;
|
||
} else if (tabOffset.top + tabOffset.height > -transformTop + wrapperHeight) {
|
||
_newTransform = -(tabOffset.top + tabOffset.height - wrapperHeight);
|
||
}
|
||
|
||
setTransformLeft(0);
|
||
setTransformTop(alignInRange(_newTransform)[0]);
|
||
}
|
||
} // ========================== Tab ==========================
|
||
// Render tab node & collect tab offset
|
||
|
||
|
||
var _useVisibleRange = useVisibleRange(tabOffsets, {
|
||
width: wrapperWidth,
|
||
height: wrapperHeight,
|
||
left: transformLeft,
|
||
top: transformTop
|
||
}, {
|
||
width: wrapperContentWidth,
|
||
height: wrapperContentHeight
|
||
}, {
|
||
width: addWidth,
|
||
height: addHeight
|
||
}, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
|
||
tabs: tabs
|
||
})),
|
||
_useVisibleRange2 = Object(slicedToArray["a" /* default */])(_useVisibleRange, 2),
|
||
visibleStart = _useVisibleRange2[0],
|
||
visibleEnd = _useVisibleRange2[1];
|
||
|
||
var tabNodes = tabs.map(function (tab) {
|
||
var key = tab.key;
|
||
return react["createElement"](TabNavList_TabNode, {
|
||
id: id,
|
||
prefixCls: prefixCls,
|
||
key: key,
|
||
rtl: rtl,
|
||
tab: tab,
|
||
closable: tab.closable,
|
||
editable: editable,
|
||
active: key === activeKey,
|
||
tabPosition: tabPosition,
|
||
tabBarGutter: tabBarGutter,
|
||
renderWrapper: children,
|
||
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
||
ref: getBtnRef(key),
|
||
onClick: function onClick(e) {
|
||
onTabClick(key, e);
|
||
},
|
||
onRemove: function onRemove() {
|
||
removeBtnRef(key);
|
||
},
|
||
onFocus: function onFocus() {
|
||
scrollToTab(key);
|
||
doLockAnimation(); // Focus element will make scrollLeft change which we should reset back
|
||
|
||
if (!rtl) {
|
||
tabsWrapperRef.current.scrollLeft = 0;
|
||
}
|
||
|
||
tabsWrapperRef.current.scrollTop = 0;
|
||
}
|
||
});
|
||
});
|
||
var onListHolderResize = useRaf(function () {
|
||
var _tabsWrapperRef$curre, _tabsWrapperRef$curre2, _innerAddButtonRef$cu, _innerAddButtonRef$cu2, _operationsRef$curren, _operationsRef$curren2, _tabListRef$current, _tabListRef$current2, _operationsRef$curren3;
|
||
|
||
// Update wrapper records
|
||
var offsetWidth = ((_tabsWrapperRef$curre = tabsWrapperRef.current) === null || _tabsWrapperRef$curre === void 0 ? void 0 : _tabsWrapperRef$curre.offsetWidth) || 0;
|
||
var offsetHeight = ((_tabsWrapperRef$curre2 = tabsWrapperRef.current) === null || _tabsWrapperRef$curre2 === void 0 ? void 0 : _tabsWrapperRef$curre2.offsetHeight) || 0;
|
||
var newAddWidth = ((_innerAddButtonRef$cu = innerAddButtonRef.current) === null || _innerAddButtonRef$cu === void 0 ? void 0 : _innerAddButtonRef$cu.offsetWidth) || 0;
|
||
var newAddHeight = ((_innerAddButtonRef$cu2 = innerAddButtonRef.current) === null || _innerAddButtonRef$cu2 === void 0 ? void 0 : _innerAddButtonRef$cu2.offsetHeight) || 0;
|
||
var newOperationWidth = ((_operationsRef$curren = operationsRef.current) === null || _operationsRef$curren === void 0 ? void 0 : _operationsRef$curren.offsetWidth) || 0;
|
||
var newOperationHeight = ((_operationsRef$curren2 = operationsRef.current) === null || _operationsRef$curren2 === void 0 ? void 0 : _operationsRef$curren2.offsetHeight) || 0;
|
||
setWrapperWidth(offsetWidth);
|
||
setWrapperHeight(offsetHeight);
|
||
setAddWidth(newAddWidth);
|
||
setAddHeight(newAddHeight);
|
||
var newWrapperScrollWidth = (((_tabListRef$current = tabListRef.current) === null || _tabListRef$current === void 0 ? void 0 : _tabListRef$current.offsetWidth) || 0) - newAddWidth;
|
||
var newWrapperScrollHeight = (((_tabListRef$current2 = tabListRef.current) === null || _tabListRef$current2 === void 0 ? void 0 : _tabListRef$current2.offsetHeight) || 0) - newAddHeight;
|
||
setWrapperScrollWidth(newWrapperScrollWidth);
|
||
setWrapperScrollHeight(newWrapperScrollHeight);
|
||
var isOperationHidden = (_operationsRef$curren3 = operationsRef.current) === null || _operationsRef$curren3 === void 0 ? void 0 : _operationsRef$curren3.className.includes(operationsHiddenClassName);
|
||
setWrapperContentWidth(newWrapperScrollWidth - (isOperationHidden ? 0 : newOperationWidth));
|
||
setWrapperContentHeight(newWrapperScrollHeight - (isOperationHidden ? 0 : newOperationHeight)); // Update buttons records
|
||
|
||
setTabSizes(function () {
|
||
var newSizes = new Map();
|
||
tabs.forEach(function (_ref2) {
|
||
var key = _ref2.key;
|
||
var btnNode = getBtnRef(key).current;
|
||
|
||
if (btnNode) {
|
||
newSizes.set(key, {
|
||
width: btnNode.offsetWidth,
|
||
height: btnNode.offsetHeight,
|
||
left: btnNode.offsetLeft,
|
||
top: btnNode.offsetTop
|
||
});
|
||
}
|
||
});
|
||
return newSizes;
|
||
});
|
||
}); // ======================== Dropdown =======================
|
||
|
||
var startHiddenTabs = tabs.slice(0, visibleStart);
|
||
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
||
var hiddenTabs = [].concat(Object(toConsumableArray["a" /* default */])(startHiddenTabs), Object(toConsumableArray["a" /* default */])(endHiddenTabs)); // =================== Link & Operations ===================
|
||
|
||
var _useState19 = Object(react["useState"])(),
|
||
_useState20 = Object(slicedToArray["a" /* default */])(_useState19, 2),
|
||
inkStyle = _useState20[0],
|
||
setInkStyle = _useState20[1];
|
||
|
||
var activeTabOffset = tabOffsets.get(activeKey); // Delay set ink style to avoid remove tab blink
|
||
|
||
var inkBarRafRef = Object(react["useRef"])();
|
||
|
||
function cleanInkBarRaf() {
|
||
raf_default.a.cancel(inkBarRafRef.current);
|
||
}
|
||
|
||
Object(react["useEffect"])(function () {
|
||
var newInkStyle = {};
|
||
|
||
if (activeTabOffset) {
|
||
if (tabPositionTopOrBottom) {
|
||
if (rtl) {
|
||
newInkStyle.right = activeTabOffset.right;
|
||
} else {
|
||
newInkStyle.left = activeTabOffset.left;
|
||
}
|
||
|
||
newInkStyle.width = activeTabOffset.width;
|
||
} else {
|
||
newInkStyle.top = activeTabOffset.top;
|
||
newInkStyle.height = activeTabOffset.height;
|
||
}
|
||
}
|
||
|
||
cleanInkBarRaf();
|
||
inkBarRafRef.current = raf_default()(function () {
|
||
setInkStyle(newInkStyle);
|
||
});
|
||
return cleanInkBarRaf;
|
||
}, [activeTabOffset, tabPositionTopOrBottom, rtl]); // ========================= Effect ========================
|
||
|
||
Object(react["useEffect"])(function () {
|
||
scrollToTab();
|
||
}, [activeKey, activeTabOffset, tabOffsets, tabPositionTopOrBottom]); // Should recalculate when rtl changed
|
||
|
||
Object(react["useEffect"])(function () {
|
||
onListHolderResize();
|
||
}, [rtl, tabBarGutter, activeKey, tabs.map(function (tab) {
|
||
return tab.key;
|
||
}).join('_')]); // ========================= Render ========================
|
||
|
||
var hasDropdown = !!hiddenTabs.length;
|
||
var wrapPrefix = "".concat(prefixCls, "-nav-wrap");
|
||
var pingLeft;
|
||
var pingRight;
|
||
var pingTop;
|
||
var pingBottom;
|
||
|
||
if (tabPositionTopOrBottom) {
|
||
if (rtl) {
|
||
pingRight = transformLeft > 0;
|
||
pingLeft = transformLeft + wrapperWidth < wrapperScrollWidth;
|
||
} else {
|
||
pingLeft = transformLeft < 0;
|
||
pingRight = -transformLeft + wrapperWidth < wrapperScrollWidth;
|
||
}
|
||
} else {
|
||
pingTop = transformTop < 0;
|
||
pingBottom = -transformTop + wrapperHeight < wrapperScrollHeight;
|
||
}
|
||
/* eslint-disable jsx-a11y/interactive-supports-focus */
|
||
|
||
|
||
return react["createElement"]("div", {
|
||
ref: ref,
|
||
role: "tablist",
|
||
className: classnames_default()("".concat(prefixCls, "-nav"), className),
|
||
style: style,
|
||
onKeyDown: function onKeyDown() {
|
||
// No need animation when use keyboard
|
||
doLockAnimation();
|
||
}
|
||
}, react["createElement"](TabNavList_ExtraContent, {
|
||
position: "left",
|
||
extra: extra,
|
||
prefixCls: prefixCls
|
||
}), react["createElement"](es, {
|
||
onResize: onListHolderResize
|
||
}, react["createElement"]("div", {
|
||
className: classnames_default()(wrapPrefix, (_classNames = {}, Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
||
ref: tabsWrapperRef
|
||
}, react["createElement"](es, {
|
||
onResize: onListHolderResize
|
||
}, react["createElement"]("div", {
|
||
ref: tabListRef,
|
||
className: "".concat(prefixCls, "-nav-list"),
|
||
style: {
|
||
transform: "translate(".concat(transformLeft, "px, ").concat(transformTop, "px)"),
|
||
transition: lockAnimation ? 'none' : undefined
|
||
}
|
||
}, tabNodes, react["createElement"](TabNavList_AddButton, {
|
||
ref: innerAddButtonRef,
|
||
prefixCls: prefixCls,
|
||
locale: locale,
|
||
editable: editable,
|
||
style: {
|
||
visibility: hasDropdown ? 'hidden' : null
|
||
}
|
||
}), react["createElement"]("div", {
|
||
className: classnames_default()("".concat(prefixCls, "-ink-bar"), Object(esm_defineProperty["a" /* default */])({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
||
style: inkStyle
|
||
}))))), react["createElement"](TabNavList_OperationNode, Object.assign({}, props, {
|
||
ref: operationsRef,
|
||
prefixCls: prefixCls,
|
||
tabs: hiddenTabs,
|
||
className: !hasDropdown && operationsHiddenClassName
|
||
})), react["createElement"](TabNavList_ExtraContent, {
|
||
position: "right",
|
||
extra: extra,
|
||
prefixCls: prefixCls
|
||
}));
|
||
/* eslint-enable */
|
||
}
|
||
|
||
/* harmony default export */ var es_TabNavList = (react["forwardRef"](TabNavList));
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabPanelList/index.js
|
||
|
||
|
||
|
||
|
||
function TabPanelList(_ref) {
|
||
var id = _ref.id,
|
||
activeKey = _ref.activeKey,
|
||
animated = _ref.animated,
|
||
tabPosition = _ref.tabPosition,
|
||
rtl = _ref.rtl,
|
||
destroyInactiveTabPane = _ref.destroyInactiveTabPane;
|
||
|
||
var _React$useContext = react["useContext"](TabContext),
|
||
prefixCls = _React$useContext.prefixCls,
|
||
tabs = _React$useContext.tabs;
|
||
|
||
var tabPaneAnimated = animated.tabPane;
|
||
var activeIndex = tabs.findIndex(function (tab) {
|
||
return tab.key === activeKey;
|
||
});
|
||
return react["createElement"]("div", {
|
||
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
||
}, react["createElement"]("div", {
|
||
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), Object(esm_defineProperty["a" /* default */])({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
||
style: activeIndex && tabPaneAnimated ? Object(esm_defineProperty["a" /* default */])({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
||
}, tabs.map(function (tab) {
|
||
return react["cloneElement"](tab.node, {
|
||
key: tab.key,
|
||
prefixCls: prefixCls,
|
||
tabKey: tab.key,
|
||
id: id,
|
||
animated: tabPaneAnimated,
|
||
active: tab.key === activeKey,
|
||
destroyInactiveTabPane: destroyInactiveTabPane
|
||
});
|
||
})));
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/TabPanelList/TabPane.js
|
||
|
||
|
||
|
||
|
||
function TabPane(_ref) {
|
||
var prefixCls = _ref.prefixCls,
|
||
forceRender = _ref.forceRender,
|
||
className = _ref.className,
|
||
style = _ref.style,
|
||
id = _ref.id,
|
||
active = _ref.active,
|
||
animated = _ref.animated,
|
||
destroyInactiveTabPane = _ref.destroyInactiveTabPane,
|
||
tabKey = _ref.tabKey,
|
||
children = _ref.children;
|
||
|
||
var _React$useState = react["useState"](forceRender),
|
||
_React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2),
|
||
visited = _React$useState2[0],
|
||
setVisited = _React$useState2[1];
|
||
|
||
react["useEffect"](function () {
|
||
if (active) {
|
||
setVisited(true);
|
||
} else if (destroyInactiveTabPane) {
|
||
setVisited(false);
|
||
}
|
||
}, [active, destroyInactiveTabPane]);
|
||
var mergedStyle = {};
|
||
|
||
if (!active) {
|
||
if (animated) {
|
||
mergedStyle.visibility = 'hidden';
|
||
mergedStyle.height = 0;
|
||
mergedStyle.overflowY = 'hidden';
|
||
} else {
|
||
mergedStyle.display = 'none';
|
||
}
|
||
}
|
||
|
||
return react["createElement"]("div", {
|
||
id: id && "".concat(id, "-panel-").concat(tabKey),
|
||
role: "tabpanel",
|
||
tabIndex: active ? 0 : -1,
|
||
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
||
"aria-hidden": !active,
|
||
style: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, mergedStyle), style),
|
||
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
||
}, (active || visited || forceRender) && children);
|
||
}
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/Tabs.js
|
||
|
||
|
||
|
||
|
||
// Accessibility https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/**
|
||
* Should added antd:
|
||
* - type
|
||
*
|
||
* Removed:
|
||
* - onNextClick
|
||
* - onPrevClick
|
||
* - keyboard
|
||
*/
|
||
// Used for accessibility
|
||
|
||
var uuid = 0;
|
||
|
||
function parseTabList(children) {
|
||
return Object(toArray["a" /* default */])(children).map(function (node) {
|
||
if (react["isValidElement"](node)) {
|
||
var key = node.key !== undefined ? String(node.key) : undefined;
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
||
key: key
|
||
}, node.props), {}, {
|
||
node: node
|
||
});
|
||
}
|
||
|
||
return null;
|
||
}).filter(function (tab) {
|
||
return tab;
|
||
});
|
||
}
|
||
|
||
function Tabs(_ref, ref) {
|
||
var _classNames;
|
||
|
||
var id = _ref.id,
|
||
_ref$prefixCls = _ref.prefixCls,
|
||
prefixCls = _ref$prefixCls === void 0 ? 'rc-tabs' : _ref$prefixCls,
|
||
className = _ref.className,
|
||
children = _ref.children,
|
||
direction = _ref.direction,
|
||
activeKey = _ref.activeKey,
|
||
defaultActiveKey = _ref.defaultActiveKey,
|
||
editable = _ref.editable,
|
||
animated = _ref.animated,
|
||
_ref$tabPosition = _ref.tabPosition,
|
||
tabPosition = _ref$tabPosition === void 0 ? 'top' : _ref$tabPosition,
|
||
tabBarGutter = _ref.tabBarGutter,
|
||
tabBarStyle = _ref.tabBarStyle,
|
||
tabBarExtraContent = _ref.tabBarExtraContent,
|
||
locale = _ref.locale,
|
||
moreIcon = _ref.moreIcon,
|
||
moreTransitionName = _ref.moreTransitionName,
|
||
destroyInactiveTabPane = _ref.destroyInactiveTabPane,
|
||
renderTabBar = _ref.renderTabBar,
|
||
onChange = _ref.onChange,
|
||
onTabClick = _ref.onTabClick,
|
||
onTabScroll = _ref.onTabScroll,
|
||
restProps = Object(objectWithoutProperties["a" /* default */])(_ref, ["id", "prefixCls", "className", "children", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "moreIcon", "moreTransitionName", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll"]);
|
||
|
||
var tabs = parseTabList(children);
|
||
var rtl = direction === 'rtl';
|
||
var mergedAnimated;
|
||
|
||
if (animated === false) {
|
||
mergedAnimated = {
|
||
inkBar: false,
|
||
tabPane: false
|
||
};
|
||
} else {
|
||
mergedAnimated = Object(objectSpread2["a" /* default */])({
|
||
inkBar: true,
|
||
tabPane: false
|
||
}, animated !== true ? animated : null);
|
||
} // ======================== Mobile ========================
|
||
|
||
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
mobile = _useState2[0],
|
||
setMobile = _useState2[1];
|
||
|
||
Object(react["useEffect"])(function () {
|
||
// Only update on the client side
|
||
setMobile(useTouchMove_isMobile());
|
||
}, []); // ====================== Active Key ======================
|
||
|
||
var _useMergedState = Object(useMergedState["a" /* default */])(function () {
|
||
var _tabs$;
|
||
|
||
return (_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key;
|
||
}, {
|
||
value: activeKey,
|
||
defaultValue: defaultActiveKey
|
||
}),
|
||
_useMergedState2 = Object(slicedToArray["a" /* default */])(_useMergedState, 2),
|
||
mergedActiveKey = _useMergedState2[0],
|
||
setMergedActiveKey = _useMergedState2[1];
|
||
|
||
var _useState3 = Object(react["useState"])(function () {
|
||
return tabs.findIndex(function (tab) {
|
||
return tab.key === mergedActiveKey;
|
||
});
|
||
}),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
activeIndex = _useState4[0],
|
||
setActiveIndex = _useState4[1]; // Reset active key if not exist anymore
|
||
|
||
|
||
Object(react["useEffect"])(function () {
|
||
var newActiveIndex = tabs.findIndex(function (tab) {
|
||
return tab.key === mergedActiveKey;
|
||
});
|
||
|
||
if (newActiveIndex === -1) {
|
||
var _tabs$newActiveIndex;
|
||
|
||
newActiveIndex = Math.max(0, Math.min(activeIndex, tabs.length - 1));
|
||
setMergedActiveKey((_tabs$newActiveIndex = tabs[newActiveIndex]) === null || _tabs$newActiveIndex === void 0 ? void 0 : _tabs$newActiveIndex.key);
|
||
}
|
||
|
||
setActiveIndex(newActiveIndex);
|
||
}, [tabs.map(function (tab) {
|
||
return tab.key;
|
||
}).join('_'), mergedActiveKey, activeIndex]); // ===================== Accessibility ====================
|
||
|
||
var _useMergedState3 = Object(useMergedState["a" /* default */])(null, {
|
||
value: id
|
||
}),
|
||
_useMergedState4 = Object(slicedToArray["a" /* default */])(_useMergedState3, 2),
|
||
mergedId = _useMergedState4[0],
|
||
setMergedId = _useMergedState4[1];
|
||
|
||
var mergedTabPosition = tabPosition;
|
||
|
||
if (mobile && !['left', 'right'].includes(tabPosition)) {
|
||
mergedTabPosition = 'top';
|
||
} // Async generate id to avoid ssr mapping failed
|
||
|
||
|
||
Object(react["useEffect"])(function () {
|
||
if (!id) {
|
||
setMergedId("rc-tabs-".concat( false ? undefined : uuid));
|
||
uuid += 1;
|
||
}
|
||
}, []); // ======================== Events ========================
|
||
|
||
function onInternalTabClick(key, e) {
|
||
onTabClick === null || onTabClick === void 0 ? void 0 : onTabClick(key, e);
|
||
setMergedActiveKey(key);
|
||
onChange === null || onChange === void 0 ? void 0 : onChange(key);
|
||
} // ======================== Render ========================
|
||
|
||
|
||
var sharedProps = {
|
||
id: mergedId,
|
||
activeKey: mergedActiveKey,
|
||
animated: mergedAnimated,
|
||
tabPosition: mergedTabPosition,
|
||
rtl: rtl,
|
||
mobile: mobile
|
||
};
|
||
var tabNavBar;
|
||
|
||
var tabNavBarProps = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, sharedProps), {}, {
|
||
editable: editable,
|
||
locale: locale,
|
||
moreIcon: moreIcon,
|
||
moreTransitionName: moreTransitionName,
|
||
tabBarGutter: tabBarGutter,
|
||
onTabClick: onInternalTabClick,
|
||
onTabScroll: onTabScroll,
|
||
extra: tabBarExtraContent,
|
||
style: tabBarStyle,
|
||
panes: children
|
||
});
|
||
|
||
if (renderTabBar) {
|
||
tabNavBar = renderTabBar(tabNavBarProps, es_TabNavList);
|
||
} else {
|
||
tabNavBar = react["createElement"](es_TabNavList, Object.assign({}, tabNavBarProps));
|
||
}
|
||
|
||
return react["createElement"](TabContext.Provider, {
|
||
value: {
|
||
tabs: tabs,
|
||
prefixCls: prefixCls
|
||
}
|
||
}, react["createElement"]("div", Object.assign({
|
||
ref: ref,
|
||
id: id,
|
||
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-mobile"), mobile), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-editable"), editable), Object(esm_defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
||
}, restProps), tabNavBar, react["createElement"](TabPanelList, Object.assign({
|
||
destroyInactiveTabPane: destroyInactiveTabPane
|
||
}, sharedProps, {
|
||
animated: mergedAnimated
|
||
}))));
|
||
}
|
||
|
||
var ForwardTabs = react["forwardRef"](Tabs);
|
||
ForwardTabs.TabPane = TabPane;
|
||
/* harmony default export */ var es_Tabs = (ForwardTabs);
|
||
// CONCATENATED MODULE: ./node_modules/rc-tabs/es/index.js
|
||
|
||
|
||
|
||
/* harmony default export */ var rc_tabs_es = (es_Tabs);
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/EllipsisOutlined.js
|
||
var EllipsisOutlined = __webpack_require__("cCPh");
|
||
var EllipsisOutlined_default = /*#__PURE__*/__webpack_require__.n(EllipsisOutlined);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/PlusOutlined.js
|
||
var PlusOutlined = __webpack_require__("fNCr");
|
||
var PlusOutlined_default = /*#__PURE__*/__webpack_require__.n(PlusOutlined);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/CloseOutlined.js
|
||
var CloseOutlined = __webpack_require__("V/uB");
|
||
var CloseOutlined_default = /*#__PURE__*/__webpack_require__.n(CloseOutlined);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/devWarning.js
|
||
var devWarning = __webpack_require__("uaoM");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js + 1 modules
|
||
var config_provider_context = __webpack_require__("H84U");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/tabs/index.js
|
||
|
||
|
||
|
||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||
var t = {};
|
||
|
||
for (var p in s) {
|
||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||
}
|
||
|
||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||
}
|
||
return t;
|
||
};
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function tabs_Tabs(_a) {
|
||
var _classNames;
|
||
|
||
var type = _a.type,
|
||
className = _a.className,
|
||
size = _a.size,
|
||
_onEdit = _a.onEdit,
|
||
hideAdd = _a.hideAdd,
|
||
centered = _a.centered,
|
||
addIcon = _a.addIcon,
|
||
props = __rest(_a, ["type", "className", "size", "onEdit", "hideAdd", "centered", "addIcon"]);
|
||
|
||
var customizePrefixCls = props.prefixCls;
|
||
|
||
var _React$useContext = react["useContext"](config_provider_context["b" /* ConfigContext */]),
|
||
getPrefixCls = _React$useContext.getPrefixCls,
|
||
direction = _React$useContext.direction;
|
||
|
||
var prefixCls = getPrefixCls('tabs', customizePrefixCls);
|
||
var editable;
|
||
|
||
if (type === 'editable-card') {
|
||
editable = {
|
||
onEdit: function onEdit(editType, _ref) {
|
||
var key = _ref.key,
|
||
event = _ref.event;
|
||
_onEdit === null || _onEdit === void 0 ? void 0 : _onEdit(editType === 'add' ? event : key, editType);
|
||
},
|
||
removeIcon: /*#__PURE__*/react["createElement"](CloseOutlined_default.a, null),
|
||
addIcon: addIcon || /*#__PURE__*/react["createElement"](PlusOutlined_default.a, null),
|
||
showAdd: hideAdd !== true
|
||
};
|
||
}
|
||
|
||
Object(devWarning["a" /* default */])(!('onPrevClick' in props) && !('onNextClick' in props), 'Tabs', '`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.');
|
||
return /*#__PURE__*/react["createElement"](rc_tabs_es, extends_default()({
|
||
direction: direction
|
||
}, props, {
|
||
moreTransitionName: "slide-up",
|
||
className: classnames_default()(className, (_classNames = {}, defineProperty_default()(_classNames, "".concat(prefixCls, "-").concat(size), size), defineProperty_default()(_classNames, "".concat(prefixCls, "-card"), ['card', 'editable-card'].includes(type)), defineProperty_default()(_classNames, "".concat(prefixCls, "-editable-card"), type === 'editable-card'), defineProperty_default()(_classNames, "".concat(prefixCls, "-centered"), centered), _classNames)),
|
||
editable: editable,
|
||
moreIcon: /*#__PURE__*/react["createElement"](EllipsisOutlined_default.a, null),
|
||
prefixCls: prefixCls
|
||
}));
|
||
}
|
||
|
||
tabs_Tabs.TabPane = TabPane;
|
||
/* harmony default export */ var es_tabs = __webpack_exports__["a"] = (tabs_Tabs);
|
||
|
||
/***/ }),
|
||
|
||
/***/ "Znn+":
|
||
/*!**************************************************!*\
|
||
!*** ./node_modules/antd/es/tabs/style/index.js ***!
|
||
\**************************************************/
|
||
/*! no exports provided */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "cIOH");
|
||
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
|
||
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "9ama");
|
||
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "bUJZ":
|
||
/*!**************************************************!*\
|
||
!*** ./src/assets/images/cert/zhiyerenzheng.png ***!
|
||
\**************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM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"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "cRFk":
|
||
/*!**************************************************!*\
|
||
!*** ./src/assets/images/RepositoryNoneData.png ***!
|
||
\**************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/RepositoryNoneData.828085a8.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "csWT":
|
||
/*!********************************************!*\
|
||
!*** ./src/assets/images/icons/choose.svg ***!
|
||
\********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/choose.4ad1045f.svg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "djh8":
|
||
/*!********************************************!*\
|
||
!*** ./src/assets/images/icons/qrCode.png ***!
|
||
\********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/qrCode.42927872.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "dm2S":
|
||
/*!***************************************************!*\
|
||
!*** ./node_modules/rc-util/es/hooks/useState.js ***!
|
||
\***************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSafeState; });
|
||
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "ODXe");
|
||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "q1tI");
|
||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
||
|
||
|
||
/**
|
||
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
||
* We do not make this auto is to avoid real memory leak.
|
||
* Developer should confirm it's safe to ignore themselves.
|
||
*/
|
||
function useSafeState(defaultValue) {
|
||
var destroyRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](false);
|
||
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"](defaultValue),
|
||
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_React$useState, 2),
|
||
value = _React$useState2[0],
|
||
setValue = _React$useState2[1];
|
||
react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () {
|
||
destroyRef.current = false;
|
||
return function () {
|
||
destroyRef.current = true;
|
||
};
|
||
}, []);
|
||
function safeSetState(updater, ignoreDestroy) {
|
||
if (ignoreDestroy && destroyRef.current) {
|
||
return;
|
||
}
|
||
setValue(updater);
|
||
}
|
||
return [value, safeSetState];
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "fNCr":
|
||
/*!********************************************************!*\
|
||
!*** ./node_modules/@ant-design/icons/PlusOutlined.js ***!
|
||
\********************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
exports.default = void 0;
|
||
|
||
var _PlusOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/PlusOutlined */ "tSko"));
|
||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||
|
||
var _default = _PlusOutlined;
|
||
exports.default = _default;
|
||
module.exports = _default;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "gwTy":
|
||
/*!****************************************************!*\
|
||
!*** ./node_modules/antd/es/form/style/index.less ***!
|
||
\****************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
|
||
/***/ }),
|
||
|
||
/***/ "h0ge":
|
||
/*!*******************************************************************************!*\
|
||
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg ***!
|
||
\*******************************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/wechat.4a721a82.svg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "ji0R":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/icons/douyu.jpg ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/douyu.3e6df9ee.jpg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "kPWJ":
|
||
/*!****************************************!*\
|
||
!*** ./src/assets/images/question.gif ***!
|
||
\****************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/question.cb52bef9.gif";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "kPYp":
|
||
/*!******************************************!*\
|
||
!*** ./src/assets/images/icons/zoom.png ***!
|
||
\******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0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/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "l2Kq":
|
||
/*!***********************************************!*\
|
||
!*** ./src/assets/images/forums/match_ad.jpg ***!
|
||
\***********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/match_ad.24dc22fd.jpg";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "lzim":
|
||
/*!********************************************!*\
|
||
!*** ./src/components/ImagesIcon/index.ts ***!
|
||
\********************************************/
|
||
/*! exports provided: qrCode, searchIcon, search1Icon, noDataIcon, smallProgramIcon, anonyIcon, errIcon, chromeIcon, firefoxIcon, exportExerciseTemplate, txLiveIcon, blibliIcon, douyuIcon, weibaitongIcon, zoomIcon, groups1Icon, groups2Icon, groups3Icon, matchAdIcon, hbIcon, lockcloseIcon, teacherQQIcon, emptyIcon, charpterWhiteIcon, mainbannerBg, certificateIcon, chooseIcon, emptyIcon2, repositoryNoneDataIcon, questionIcon, noticeIcon, qrCodeIcon, done1Icon, done2Icon, done3Icon, UserQrCode */
|
||
/*! exports used: mainbannerBg, teacherQQIcon */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony import */ var _assets_images_icons_search_png__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/assets/images/icons/search.png */ "E7E6");
|
||
/* harmony import */ var _assets_images_icons_search_png__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_search_png__WEBPACK_IMPORTED_MODULE_0__);
|
||
/* harmony import */ var _assets_images_icons_search1_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/assets/images/icons/search1.png */ "/GNS");
|
||
/* harmony import */ var _assets_images_icons_search1_png__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_search1_png__WEBPACK_IMPORTED_MODULE_1__);
|
||
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ "FOrL");
|
||
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__);
|
||
/* harmony import */ var _assets_images_classrooms_small_program_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/assets/images/classrooms/small_program.png */ "HpTS");
|
||
/* harmony import */ var _assets_images_classrooms_small_program_png__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_assets_images_classrooms_small_program_png__WEBPACK_IMPORTED_MODULE_3__);
|
||
/* harmony import */ var _assets_images_icons_anony_png__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/assets/images/icons/anony.png */ "tWlo");
|
||
/* harmony import */ var _assets_images_icons_anony_png__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_anony_png__WEBPACK_IMPORTED_MODULE_4__);
|
||
/* harmony import */ var _assets_images_classrooms_err_png__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/assets/images/classrooms/err.png */ "7ZXX");
|
||
/* harmony import */ var _assets_images_classrooms_err_png__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_assets_images_classrooms_err_png__WEBPACK_IMPORTED_MODULE_5__);
|
||
/* harmony import */ var _assets_images_icons_chrome_png__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/assets/images/icons/chrome.png */ "GABl");
|
||
/* harmony import */ var _assets_images_icons_chrome_png__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_chrome_png__WEBPACK_IMPORTED_MODULE_6__);
|
||
/* harmony import */ var _assets_images_icons_firefox_png__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/assets/images/icons/firefox.png */ "onxn");
|
||
/* harmony import */ var _assets_images_icons_firefox_png__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_firefox_png__WEBPACK_IMPORTED_MODULE_7__);
|
||
/* harmony import */ var _assets_images_classrooms_export_exercise_template_png__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/assets/images/classrooms/export_exercise-template.png */ "nKGa");
|
||
/* harmony import */ var _assets_images_classrooms_export_exercise_template_png__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_assets_images_classrooms_export_exercise_template_png__WEBPACK_IMPORTED_MODULE_8__);
|
||
/* harmony import */ var _assets_images_icons_tx_live_png__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/assets/images/icons/tx-live.png */ "4qgm");
|
||
/* harmony import */ var _assets_images_icons_tx_live_png__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_tx_live_png__WEBPACK_IMPORTED_MODULE_9__);
|
||
/* harmony import */ var _assets_images_icons_blibli_png__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/assets/images/icons/blibli.png */ "JeFH");
|
||
/* harmony import */ var _assets_images_icons_blibli_png__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_blibli_png__WEBPACK_IMPORTED_MODULE_10__);
|
||
/* harmony import */ var _assets_images_icons_douyu_jpg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/assets/images/icons/douyu.jpg */ "ji0R");
|
||
/* harmony import */ var _assets_images_icons_douyu_jpg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_douyu_jpg__WEBPACK_IMPORTED_MODULE_11__);
|
||
/* harmony import */ var _assets_images_icons_weibaitong_png__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/assets/images/icons/weibaitong.png */ "W6BS");
|
||
/* harmony import */ var _assets_images_icons_weibaitong_png__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_weibaitong_png__WEBPACK_IMPORTED_MODULE_12__);
|
||
/* harmony import */ var _assets_images_icons_zoom_png__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/assets/images/icons/zoom.png */ "kPYp");
|
||
/* harmony import */ var _assets_images_icons_zoom_png__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_zoom_png__WEBPACK_IMPORTED_MODULE_13__);
|
||
/* harmony import */ var _assets_images_icons_groups1_png__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/assets/images/icons/groups1.png */ "nukY");
|
||
/* harmony import */ var _assets_images_icons_groups1_png__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_groups1_png__WEBPACK_IMPORTED_MODULE_14__);
|
||
/* harmony import */ var _assets_images_icons_groups2_png__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/assets/images/icons/groups2.png */ "4u4S");
|
||
/* harmony import */ var _assets_images_icons_groups2_png__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_groups2_png__WEBPACK_IMPORTED_MODULE_15__);
|
||
/* harmony import */ var _assets_images_icons_groups3_png__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/assets/images/icons/groups3.png */ "yslc");
|
||
/* harmony import */ var _assets_images_icons_groups3_png__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_groups3_png__WEBPACK_IMPORTED_MODULE_16__);
|
||
/* harmony import */ var _assets_images_forums_match_ad_jpg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/assets/images/forums/match_ad.jpg */ "l2Kq");
|
||
/* harmony import */ var _assets_images_forums_match_ad_jpg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_assets_images_forums_match_ad_jpg__WEBPACK_IMPORTED_MODULE_17__);
|
||
/* harmony import */ var _assets_images_hb_png__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/assets/images/hb.png */ "RMFE");
|
||
/* harmony import */ var _assets_images_hb_png__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_assets_images_hb_png__WEBPACK_IMPORTED_MODULE_18__);
|
||
/* harmony import */ var _assets_images_icons_lockclose_svg__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/assets/images/icons/lockclose.svg */ "TGq3");
|
||
/* harmony import */ var _assets_images_icons_lockclose_svg__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_lockclose_svg__WEBPACK_IMPORTED_MODULE_19__);
|
||
/* harmony import */ var _assets_images_teacherQQ_png__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/assets/images/teacherQQ.png */ "SMhR");
|
||
/* harmony import */ var _assets_images_teacherQQ_png__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_assets_images_teacherQQ_png__WEBPACK_IMPORTED_MODULE_20__);
|
||
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _assets_images_teacherQQ_png__WEBPACK_IMPORTED_MODULE_20___default.a; });
|
||
/* harmony import */ var _assets_images_empty_png__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/assets/images/empty.png */ "8/bI");
|
||
/* harmony import */ var _assets_images_empty_png__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_assets_images_empty_png__WEBPACK_IMPORTED_MODULE_21__);
|
||
/* harmony import */ var _assets_images_icons_charpter_white_svg__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @/assets/images/icons/charpter-white.svg */ "JWDV");
|
||
/* harmony import */ var _assets_images_icons_charpter_white_svg__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_charpter_white_svg__WEBPACK_IMPORTED_MODULE_22__);
|
||
/* harmony import */ var _assets_images_banner_mainbanner_jpg__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @/assets/images/banner/mainbanner.jpg */ "Xsq0");
|
||
/* harmony import */ var _assets_images_banner_mainbanner_jpg__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_assets_images_banner_mainbanner_jpg__WEBPACK_IMPORTED_MODULE_23__);
|
||
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assets_images_banner_mainbanner_jpg__WEBPACK_IMPORTED_MODULE_23___default.a; });
|
||
/* harmony import */ var _assets_images_certificate_jpg__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @/assets/images/certificate.jpg */ "Ohmc");
|
||
/* harmony import */ var _assets_images_certificate_jpg__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_assets_images_certificate_jpg__WEBPACK_IMPORTED_MODULE_24__);
|
||
/* harmony import */ var _assets_images_icons_choose_svg__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @/assets/images/icons/choose.svg */ "csWT");
|
||
/* harmony import */ var _assets_images_icons_choose_svg__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_choose_svg__WEBPACK_IMPORTED_MODULE_25__);
|
||
/* harmony import */ var _assets_images_empty2_png__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @/assets/images/empty2.png */ "7v3h");
|
||
/* harmony import */ var _assets_images_empty2_png__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_assets_images_empty2_png__WEBPACK_IMPORTED_MODULE_26__);
|
||
/* harmony import */ var _assets_images_RepositoryNoneData_png__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @/assets/images/RepositoryNoneData.png */ "cRFk");
|
||
/* harmony import */ var _assets_images_RepositoryNoneData_png__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_assets_images_RepositoryNoneData_png__WEBPACK_IMPORTED_MODULE_27__);
|
||
/* harmony import */ var _assets_images_question_gif__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @/assets/images/question.gif */ "kPWJ");
|
||
/* harmony import */ var _assets_images_question_gif__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_assets_images_question_gif__WEBPACK_IMPORTED_MODULE_28__);
|
||
/* harmony import */ var _assets_images_notice_gif__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @/assets/images/notice.gif */ "qgvg");
|
||
/* harmony import */ var _assets_images_notice_gif__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_assets_images_notice_gif__WEBPACK_IMPORTED_MODULE_29__);
|
||
/* harmony import */ var _assets_images_qrCode_png__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @/assets/images/qrCode.png */ "FPkq");
|
||
/* harmony import */ var _assets_images_qrCode_png__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_assets_images_qrCode_png__WEBPACK_IMPORTED_MODULE_30__);
|
||
/* harmony import */ var _assets_images_icons_done1_png__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @/assets/images/icons/done1.png */ "A/g1");
|
||
/* harmony import */ var _assets_images_icons_done1_png__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_done1_png__WEBPACK_IMPORTED_MODULE_31__);
|
||
/* harmony import */ var _assets_images_icons_done2_png__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @/assets/images/icons/done2.png */ "Nmxd");
|
||
/* harmony import */ var _assets_images_icons_done2_png__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_done2_png__WEBPACK_IMPORTED_MODULE_32__);
|
||
/* harmony import */ var _assets_images_icons_done3_png__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @/assets/images/icons/done3.png */ "5D2P");
|
||
/* harmony import */ var _assets_images_icons_done3_png__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_done3_png__WEBPACK_IMPORTED_MODULE_33__);
|
||
/* harmony import */ var _assets_images_icons_qrCode_png__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @/assets/images/icons/qrCode.png */ "djh8");
|
||
/* harmony import */ var _assets_images_icons_qrCode_png__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(_assets_images_icons_qrCode_png__WEBPACK_IMPORTED_MODULE_34__);
|
||
/* harmony import */ var _assets_images_user_qrcode_png__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @/assets/images/user/qrcode.png */ "Jq4h");
|
||
/* harmony import */ var _assets_images_user_qrcode_png__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(_assets_images_user_qrcode_png__WEBPACK_IMPORTED_MODULE_35__);
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// import x from '';
|
||
// import x from '';
|
||
// import x from '';
|
||
// import x from '';
|
||
// import x from '';
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "mBDr":
|
||
/*!***************************************************!*\
|
||
!*** ./node_modules/rc-util/es/hooks/useEvent.js ***!
|
||
\***************************************************/
|
||
/*! exports provided: default */
|
||
/*! exports used: default */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useEvent; });
|
||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "q1tI");
|
||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||
|
||
function useEvent(callback) {
|
||
var fnRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"]();
|
||
fnRef.current = callback;
|
||
var memoFn = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function () {
|
||
var _fnRef$current;
|
||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||
args[_key] = arguments[_key];
|
||
}
|
||
return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
|
||
}, []);
|
||
return memoFn;
|
||
}
|
||
|
||
/***/ }),
|
||
|
||
/***/ "mOS8":
|
||
/*!*****************************************!*\
|
||
!*** ./src/assets/images/403Qrcode.png ***!
|
||
\*****************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/403Qrcode.6c17b6f4.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "nKGa":
|
||
/*!*******************************************************************!*\
|
||
!*** ./src/assets/images/classrooms/export_exercise-template.png ***!
|
||
\*******************************************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
module.exports = __webpack_require__.p + "static/export_exercise-template.f7655c19.png";
|
||
|
||
/***/ }),
|
||
|
||
/***/ "nukY":
|
||
/*!*********************************************!*\
|
||
!*** ./src/assets/images/icons/groups1.png ***!
|
||
\*********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtX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AS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "onxn":
|
||
/*!*********************************************!*\
|
||
!*** ./src/assets/images/icons/firefox.png ***!
|
||
\*********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6N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WTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "qgvg":
|
||
/*!**************************************!*\
|
||
!*** ./src/assets/images/notice.gif ***!
|
||
\**************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTz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LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"
|
||
|
||
/***/ }),
|
||
|
||
/***/ "ruvs":
|
||
/*!*****************************************************!*\
|
||
!*** ./src/components/Header/index.tsx + 8 modules ***!
|
||
\*****************************************************/
|
||
/*! exports provided: getCourseParam, default */
|
||
/*! exports used: default, getCourseParam */
|
||
/*! 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/objectSpread2.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.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 ./src/.umi-production/core/umiExports.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/ImagesIcon/index.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/home.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/user.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/verifyLogin.tsx */
|
||
/*! 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/checkbox/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/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/layout/Sider.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/layout/layout.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/modal/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/AuthModal/index.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/components/Join/index.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/components/User/index.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.less?modules (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/assets/images/cert/shimingrenzheng.png (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/assets/images/cert/zhiyerenzheng.png (<- Module is not an ECMAScript module) */
|
||
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/HomeModal/jqr.png (<- Module is not an ECMAScript module) */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// EXPORTS
|
||
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ getCourseParam; });
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/style/index.js
|
||
var style = __webpack_require__("2qtc");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 14 modules
|
||
var modal = __webpack_require__("kLXV");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
||
var asyncToGenerator = __webpack_require__("9og8");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||
var slicedToArray = __webpack_require__("tJVT");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
||
var objectWithoutProperties = __webpack_require__("PpiC");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||
var objectSpread2 = __webpack_require__("k1fw");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||
var input_style = __webpack_require__("5NDa");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/input/index.js + 9 modules
|
||
var input = __webpack_require__("5rEg");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.less
|
||
var es_style = __webpack_require__("cIOH");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/layout/style/index.less
|
||
var layout_style = __webpack_require__("0XgM");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/layout/style/index.js
|
||
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/layout/layout.js
|
||
var layout = __webpack_require__("PKem");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/layout/Sider.js + 1 modules
|
||
var Sider = __webpack_require__("ZX9x");
|
||
|
||
// CONCATENATED MODULE: ./node_modules/antd/es/layout/index.js
|
||
|
||
|
||
layout["b" /* default */].Sider = Sider["b" /* default */];
|
||
/* harmony default export */ var es_layout = (layout["b" /* default */]);
|
||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||
var react = __webpack_require__("q1tI");
|
||
var react_default = /*#__PURE__*/__webpack_require__.n(react);
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react-router/esm/react-router.js
|
||
var react_router = __webpack_require__("Ty5D");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/react-router-dom/esm/react-router-dom.js
|
||
var react_router_dom = __webpack_require__("55Ip");
|
||
|
||
// EXTERNAL MODULE: ./src/.umi-production/core/umiExports.ts + 19 modules
|
||
var umiExports = __webpack_require__("9kvl");
|
||
|
||
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts
|
||
var ImagesIcon = __webpack_require__("lzim");
|
||
|
||
// EXTERNAL MODULE: ./src/components/Header/index.less?modules
|
||
var Headermodules = __webpack_require__("xrsn");
|
||
var Headermodules_default = /*#__PURE__*/__webpack_require__.n(Headermodules);
|
||
|
||
// EXTERNAL MODULE: ./src/components/Header/search-input.less
|
||
var search_input = __webpack_require__("1Sn+");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js
|
||
var dropdown_style = __webpack_require__("qVdP");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/index.js
|
||
var dropdown = __webpack_require__("jsC+");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/menu/style/index.js
|
||
var menu_style = __webpack_require__("lUTK");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/menu/index.js + 16 modules
|
||
var menu = __webpack_require__("BvKs");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/message/style/index.js
|
||
var message_style = __webpack_require__("miYZ");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 1 modules
|
||
var es_message = __webpack_require__("tsqr");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/radio/style/index.js
|
||
var radio_style = __webpack_require__("7Kak");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/radio/index.js + 5 modules
|
||
var es_radio = __webpack_require__("9yH6");
|
||
|
||
// EXTERNAL MODULE: ./src/service/home.ts
|
||
var home = __webpack_require__("6CvP");
|
||
|
||
// EXTERNAL MODULE: ./src/components/Header/components/Join/index.less?modules
|
||
var Joinmodules = __webpack_require__("6Fuo");
|
||
var Joinmodules_default = /*#__PURE__*/__webpack_require__.n(Joinmodules);
|
||
|
||
// CONCATENATED MODULE: ./src/components/Header/components/Join/JoinProjectModal.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
var Type = /*#__PURE__*/function (Type) {
|
||
Type["Manager"] = "manager";
|
||
Type["Developer"] = "developer";
|
||
Type["Reporter"] = "reporter";
|
||
return Type;
|
||
}(Type || {});
|
||
var JoinProjectModal_JoinProjectModal = function JoinProjectModal(_ref) {
|
||
var visible = _ref.visible,
|
||
_ref$onCancel = _ref.onCancel,
|
||
onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel;
|
||
var _useState = Object(react["useState"])(),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
inputValue = _useState2[0],
|
||
setInputValue = _useState2[1];
|
||
var _useState3 = Object(react["useState"])("developer"),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
radioValue = _useState4[0],
|
||
setRadioValue = _useState4[1];
|
||
var _useState5 = Object(react["useState"])(false),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
isLoading = _useState6[0],
|
||
setIsLoading = _useState6[1];
|
||
var handleOk = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
||
var res;
|
||
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
if (inputValue) {
|
||
_context.next = 3;
|
||
break;
|
||
}
|
||
es_message["b" /* default */].info('请输入开发项目邀请码!');
|
||
return _context.abrupt("return");
|
||
case 3:
|
||
if (!(inputValue.length !== 6)) {
|
||
_context.next = 6;
|
||
break;
|
||
}
|
||
es_message["b" /* default */].info('请输入6位项目邀请码!');
|
||
return _context.abrupt("return");
|
||
case 6:
|
||
if (radioValue) {
|
||
_context.next = 9;
|
||
break;
|
||
}
|
||
es_message["b" /* default */].info('请选择一个身份!');
|
||
return _context.abrupt("return");
|
||
case 9:
|
||
setIsLoading(true);
|
||
_context.next = 12;
|
||
return Object(home["e" /* projectApplies */])({
|
||
applied_project: {
|
||
code: inputValue,
|
||
role: radioValue
|
||
}
|
||
});
|
||
case 12:
|
||
res = _context.sent;
|
||
setIsLoading(false);
|
||
handleCancel();
|
||
// const mapping: any = {
|
||
// 1: "您输入的邀请码错误",
|
||
// 2: "您已经是该项目成员",
|
||
// 3: "请选择一个角色",
|
||
// 4: "您的申请已提交,请等待项目管理员审批",
|
||
// 5: "您已经申请加入该项目了,请耐心等待",
|
||
// 6: "您已成功加入项目",
|
||
// }
|
||
|
||
// if (res.status !== 0 ) {
|
||
// message.info(res.message);
|
||
// return;
|
||
// }
|
||
|
||
// if (res.status === 0) {
|
||
// if (radioValue === "reporter") {
|
||
// message.success('您加入项目成功!');
|
||
// trackEvent(['开发项目', '加入项目成功'])
|
||
// history.push(`/projects/${res?.project_id}`);
|
||
// } else {
|
||
// trackEvent(['开发项目', '加入项目等待审批'])
|
||
// message.success('您的申请已提交,请等待项目管理员审批!');
|
||
// }
|
||
// return;
|
||
// }
|
||
es_message["b" /* default */].info(res.message);
|
||
return _context.abrupt("return");
|
||
case 17:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function handleOk() {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
var handleCancel = /*#__PURE__*/function () {
|
||
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
||
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
onCancel();
|
||
case 1:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
return function handleCancel() {
|
||
return _ref3.apply(this, arguments);
|
||
};
|
||
}();
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
|
||
centered: true,
|
||
keyboard: false,
|
||
closable: true,
|
||
title: "\u52A0\u5165\u9879\u76EE",
|
||
visible: visible,
|
||
confirmLoading: isLoading,
|
||
onOk: handleOk,
|
||
onCancel: handleCancel,
|
||
wrapClassName: Joinmodules_default.a.joinModal
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc"
|
||
}, /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u9879\u76EE\u9080\u8BF7\u7801\uFF1A"), /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
placeholder: "\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801",
|
||
style: {
|
||
width: 270
|
||
},
|
||
value: inputValue,
|
||
onChange: function onChange(e) {
|
||
if (e.target.value.length >= 7) {
|
||
es_message["b" /* default */].info('请输入6位开发项目邀请码!');
|
||
return;
|
||
}
|
||
setInputValue(e.target.value);
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "mt30 font14"
|
||
}, /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: "mr5"
|
||
}, "\u9009\u62E9\u89D2\u8272\uFF1A"), /*#__PURE__*/react_default.a.createElement(es_radio["a" /* default */].Group, {
|
||
value: radioValue,
|
||
onChange: function onChange(e) {
|
||
return setRadioValue(e.target.value);
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement(es_radio["a" /* default */], {
|
||
value: Type.Manager
|
||
}, "\u7BA1\u7406\u8005"), /*#__PURE__*/react_default.a.createElement(es_radio["a" /* default */], {
|
||
value: Type.Developer
|
||
}, "\u5F00\u53D1\u8005"), /*#__PURE__*/react_default.a.createElement(es_radio["a" /* default */], {
|
||
value: Type.Reporter
|
||
}, "\u62A5\u544A\u8005"))))));
|
||
};
|
||
/* harmony default export */ var Join_JoinProjectModal = (JoinProjectModal_JoinProjectModal);
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/style/index.js
|
||
var checkbox_style = __webpack_require__("sRBo");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/index.js + 2 modules
|
||
var es_checkbox = __webpack_require__("kaz8");
|
||
|
||
// EXTERNAL MODULE: ./src/assets/images/cert/shimingrenzheng.png
|
||
var shimingrenzheng = __webpack_require__("3wET");
|
||
var shimingrenzheng_default = /*#__PURE__*/__webpack_require__.n(shimingrenzheng);
|
||
|
||
// EXTERNAL MODULE: ./src/assets/images/cert/zhiyerenzheng.png
|
||
var zhiyerenzheng = __webpack_require__("bUJZ");
|
||
var zhiyerenzheng_default = /*#__PURE__*/__webpack_require__.n(zhiyerenzheng);
|
||
|
||
// EXTERNAL MODULE: ./src/components/AuthModal/index.less?modules
|
||
var AuthModalmodules = __webpack_require__("Ct/S");
|
||
var AuthModalmodules_default = /*#__PURE__*/__webpack_require__.n(AuthModalmodules);
|
||
|
||
// CONCATENATED MODULE: ./src/components/AuthModal/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var AuthModal_AuthModal = function AuthModal(_ref) {
|
||
var visible = _ref.visible,
|
||
occupationValue = _ref.occupationValue,
|
||
_ref$onCancel = _ref.onCancel,
|
||
_onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel;
|
||
var renderOccupationAuth = function renderOccupationAuth() {
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: AuthModalmodules_default.a.flexColumn
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
className: AuthModalmodules_default.a.img,
|
||
src: zhiyerenzheng_default.a
|
||
}), /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: AuthModalmodules_default.a.content
|
||
}, "\u672A\u804C\u4E1A\u8BA4\u8BC1"));
|
||
};
|
||
var renderAutonymAuth = function renderAutonymAuth() {
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: AuthModalmodules_default.a.flexColumn
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
className: AuthModalmodules_default.a.img,
|
||
src: shimingrenzheng_default.a
|
||
}), /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: AuthModalmodules_default.a.content
|
||
}, "\u672A\u5B9E\u540D\u8BA4\u8BC1"));
|
||
};
|
||
var renderContent = function renderContent() {
|
||
if (occupationValue === 3) {
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, renderAutonymAuth(), renderOccupationAuth());
|
||
}
|
||
if (occupationValue === 2) {
|
||
return renderOccupationAuth();
|
||
}
|
||
return renderAutonymAuth();
|
||
};
|
||
return /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
|
||
centered: true,
|
||
keyboard: false,
|
||
closable: false,
|
||
destroyOnClose: true,
|
||
visible: visible,
|
||
title: "\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",
|
||
okText: "\u7ACB\u5373\u8BA4\u8BC1",
|
||
cancelText: "\u53D6\u6D88",
|
||
width: "600px",
|
||
onOk: function onOk() {
|
||
_onCancel();
|
||
umiExports["c" /* history */].push("/account/certification");
|
||
},
|
||
onCancel: function onCancel() {
|
||
_onCancel();
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: AuthModalmodules_default.a.tilte
|
||
}, "\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: AuthModalmodules_default.a.flexRow
|
||
}, renderContent()));
|
||
};
|
||
/* harmony default export */ var components_AuthModal = (Object(umiExports["a" /* connect */])(function (_ref2) {
|
||
var paperlibrary = _ref2.paperlibrary,
|
||
loading = _ref2.loading,
|
||
globalSetting = _ref2.globalSetting;
|
||
return {
|
||
paperlibrary: paperlibrary,
|
||
globalSetting: globalSetting,
|
||
loading: loading.effects
|
||
};
|
||
})(AuthModal_AuthModal));
|
||
// EXTERNAL MODULE: ./src/utils/util.tsx + 6 modules
|
||
var util = __webpack_require__("1vsH");
|
||
|
||
// CONCATENATED MODULE: ./src/components/Header/components/Join/JoinClassroomModal.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function JoinClassroomModal_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ JoinClassroomModal_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
|
||
|
||
var JoinClassroomModal_Type = /*#__PURE__*/function (Type) {
|
||
Type[Type["Professor"] = 1] = "Professor";
|
||
Type[Type["AssistantProfessor"] = 2] = "AssistantProfessor";
|
||
Type[Type["Student"] = 3] = "Student";
|
||
return Type;
|
||
}(JoinClassroomModal_Type || {});
|
||
var JoinClassroomModal_JoinClassroomModal = function JoinClassroomModal(_ref) {
|
||
var visible = _ref.visible,
|
||
user = _ref.user,
|
||
_ref$onCancel = _ref.onCancel,
|
||
onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel;
|
||
var _useState = Object(react["useState"])(),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
inputValue = _useState2[0],
|
||
setInputValue = _useState2[1];
|
||
var _useState3 = Object(react["useState"])([]),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
checkedList = _useState4[0],
|
||
setCheckedList = _useState4[1];
|
||
var _useState5 = Object(react["useState"])(false),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
isLoading = _useState6[0],
|
||
setIsLoading = _useState6[1];
|
||
var _useState7 = Object(react["useState"])(false),
|
||
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
|
||
visibleAuth = _useState8[0],
|
||
setVisibleAuth = _useState8[1];
|
||
var _useState9 = Object(react["useState"])(),
|
||
_useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
|
||
occupationValue = _useState10[0],
|
||
setOccupationValue = _useState10[1];
|
||
Object(react["useEffect"])(function () {
|
||
var _user$userInfo;
|
||
if (user === null || user === void 0 ? void 0 : (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.identity) {
|
||
var _user$userInfo2;
|
||
setCheckedList([(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.identity) === 'student' ? 3 : 1]);
|
||
}
|
||
}, [user]);
|
||
var handlePrompt = function handlePrompt(course_id, message) {
|
||
if (checkedList.includes(JoinClassroomModal_Type.Professor)) {
|
||
modal["a" /* default */].confirm({
|
||
centered: true,
|
||
okText: '确定',
|
||
cancelText: '取消',
|
||
title: '提示',
|
||
content: /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc"
|
||
}, message || "申请已提交,请等待审核"),
|
||
onOk: function onOk() {
|
||
umiExports["c" /* history */].push("/classrooms/".concat(course_id, "/students"));
|
||
}
|
||
});
|
||
return;
|
||
}
|
||
umiExports["c" /* history */].push("/classrooms/".concat(course_id, "/students"));
|
||
};
|
||
var handleOk = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/JoinClassroomModal_regeneratorRuntime().mark(function _callee() {
|
||
var res;
|
||
return JoinClassroomModal_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
if (inputValue) {
|
||
_context.next = 3;
|
||
break;
|
||
}
|
||
es_message["b" /* default */].info('邀请码不能为空');
|
||
return _context.abrupt("return");
|
||
case 3:
|
||
setIsLoading(true);
|
||
_context.next = 6;
|
||
return Object(home["c" /* applyToJoinCourse */])({
|
||
invite_code: inputValue,
|
||
professor: checkedList.includes(JoinClassroomModal_Type.Professor) ? 1 : null,
|
||
assistant_professor: checkedList.includes(JoinClassroomModal_Type.AssistantProfessor) ? 1 : null,
|
||
student: checkedList.includes(JoinClassroomModal_Type.Student) ? 1 : null
|
||
});
|
||
case 6:
|
||
res = _context.sent;
|
||
setIsLoading(false);
|
||
if (!((res === null || res === void 0 ? void 0 : res.status) === -2)) {
|
||
_context.next = 22;
|
||
break;
|
||
}
|
||
handleCancel();
|
||
if (!(res.message === "该课堂要求成员完成实名认证")) {
|
||
_context.next = 14;
|
||
break;
|
||
}
|
||
setVisibleAuth(true);
|
||
setOccupationValue(1);
|
||
return _context.abrupt("return");
|
||
case 14:
|
||
if (!(res.message === "该课堂要求成员完成职业认证")) {
|
||
_context.next = 18;
|
||
break;
|
||
}
|
||
setVisibleAuth(true);
|
||
setOccupationValue(2);
|
||
return _context.abrupt("return");
|
||
case 18:
|
||
if (!(res.message === "该课堂要求成员完成实名和职业认证")) {
|
||
_context.next = 22;
|
||
break;
|
||
}
|
||
setVisibleAuth(true);
|
||
setOccupationValue(3);
|
||
return _context.abrupt("return");
|
||
case 22:
|
||
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
|
||
_context.next = 27;
|
||
break;
|
||
}
|
||
Object(util["r" /* trackEvent */])(['教学课堂', '首页', '加入课堂']);
|
||
handleCancel();
|
||
// message.info(res.message);
|
||
(res === null || res === void 0 ? void 0 : res.course_id) && handlePrompt(res.course_id, res.message);
|
||
return _context.abrupt("return");
|
||
case 27:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function handleOk() {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
var handleCancel = /*#__PURE__*/function () {
|
||
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/JoinClassroomModal_regeneratorRuntime().mark(function _callee2() {
|
||
return JoinClassroomModal_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
onCancel();
|
||
case 1:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
return function handleCancel() {
|
||
return _ref3.apply(this, arguments);
|
||
};
|
||
}();
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
|
||
centered: true,
|
||
keyboard: false,
|
||
closable: false,
|
||
title: "\u52A0\u5165\u8BFE\u5802",
|
||
visible: visible,
|
||
confirmLoading: isLoading,
|
||
onOk: handleOk,
|
||
onCancel: handleCancel
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "tc"
|
||
}, /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("span", null, "\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"), /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
|
||
placeholder: "\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",
|
||
style: {
|
||
width: 270
|
||
},
|
||
value: inputValue,
|
||
onChange: function onChange(e) {
|
||
if (e.target.value.length >= 7) {
|
||
es_message["b" /* default */].info('请输入5位课堂邀请码或6位分班邀请码!');
|
||
return;
|
||
}
|
||
setInputValue(e.target.value);
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "mt10 font14"
|
||
}, /*#__PURE__*/react_default.a.createElement("span", null, "\u8EAB\u4EFD\uFF1A"), /*#__PURE__*/react_default.a.createElement(es_checkbox["a" /* default */].Group, {
|
||
value: checkedList,
|
||
onChange: function onChange(value) {
|
||
return setCheckedList(value);
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement(es_checkbox["a" /* default */], {
|
||
value: JoinClassroomModal_Type.Professor,
|
||
disabled: checkedList.includes(2)
|
||
}, "\u6559\u5E08"), /*#__PURE__*/react_default.a.createElement(es_checkbox["a" /* default */], {
|
||
value: JoinClassroomModal_Type.AssistantProfessor,
|
||
disabled: checkedList.includes(1)
|
||
}, "\u52A9\u6559"), /*#__PURE__*/react_default.a.createElement(es_checkbox["a" /* default */], {
|
||
value: JoinClassroomModal_Type.Student
|
||
}, "\u5B66\u751F/\u53C2\u8D5B\u8005"))))), /*#__PURE__*/react_default.a.createElement(components_AuthModal, {
|
||
visible: visibleAuth,
|
||
onCancel: function onCancel() {
|
||
return setVisibleAuth(false);
|
||
},
|
||
occupationValue: occupationValue
|
||
}));
|
||
};
|
||
/* harmony default export */ var Join_JoinClassroomModal = (Object(umiExports["a" /* connect */])(function (_ref4) {
|
||
var user = _ref4.user;
|
||
return {
|
||
user: user
|
||
};
|
||
})(JoinClassroomModal_JoinClassroomModal));
|
||
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
||
var verifyLogin = __webpack_require__("NLgs");
|
||
|
||
// CONCATENATED MODULE: ./src/components/Header/components/Join/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var VerifyType = /*#__PURE__*/function (VerifyType) {
|
||
VerifyType["Projects"] = "projects";
|
||
VerifyType["Shixuns"] = "shixuns";
|
||
VerifyType["Classrooms"] = "classrooms";
|
||
return VerifyType;
|
||
}(VerifyType || {});
|
||
var NavType = /*#__PURE__*/function (NavType) {
|
||
NavType["Classrooms"] = "classrooms";
|
||
NavType["Shixuns"] = "shixuns";
|
||
NavType["Paths"] = "paths";
|
||
NavType["Projects"] = "projects";
|
||
NavType["Videos"] = "videos";
|
||
NavType["Topics"] = "topics";
|
||
return NavType;
|
||
}(NavType || {});
|
||
var Join_Join = function Join(_ref) {
|
||
var _find, _globalSetting$settin, _find2, _globalSetting$settin2, _find3, _globalSetting$settin3, _globalSetting$settin4;
|
||
var homePage = _ref.homePage,
|
||
user = _ref.user,
|
||
globalSetting = _ref.globalSetting,
|
||
loading = _ref.loading,
|
||
dispatch = _ref.dispatch,
|
||
location = _ref.location,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["homePage", "user", "globalSetting", "loading", "dispatch", "location"]);
|
||
var _useState = Object(react["useState"])(),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
visibleJoinClassroom = _useState2[0],
|
||
setVisibleJoinClassroom = _useState2[1];
|
||
var _useState3 = Object(react["useState"])(),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
visibleJoinProject = _useState4[0],
|
||
setVisibleJoinProject = _useState4[1];
|
||
var handleJoinVerify = function handleJoinVerify(type) {
|
||
// if (!handleVerify(dispatch)) {
|
||
// return;
|
||
// }
|
||
|
||
// if (type === VerifyType.Projects && !user.userInfo?.email) {
|
||
// message.info('请先绑定邮箱,谢谢');
|
||
// return;
|
||
// }
|
||
|
||
// if (type === VerifyType.Classrooms) {
|
||
// setVisibleJoinClassroom(true);
|
||
// } else if (type === VerifyType.Projects) {
|
||
// setVisibleJoinProject(true);
|
||
// }
|
||
setVisibleJoinProject(true);
|
||
};
|
||
var handleAddVerify = function handleAddVerify(url, type) {
|
||
var _user$userInfo;
|
||
if (!Object(verifyLogin["b" /* handleVerify */])(dispatch)) {
|
||
return;
|
||
}
|
||
if (type === VerifyType.Projects && !((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.email)) {
|
||
es_message["b" /* default */].info('请先绑定邮箱,谢谢');
|
||
return;
|
||
}
|
||
if (type === VerifyType.Shixuns && !Object(verifyLogin["a" /* handleCanShixunAddModal */])()) {
|
||
return;
|
||
}
|
||
url && (window.location.href = url);
|
||
};
|
||
var isClassroomsHidden = (_find = (((_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar) || []).find(function (item) {
|
||
return item.link === "/".concat(NavType.Classrooms);
|
||
})) === null || _find === void 0 ? void 0 : _find.hidden;
|
||
var isShixunsHidden = (_find2 = (((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || []).find(function (item) {
|
||
return item.link === "/".concat(NavType.Shixuns);
|
||
})) === null || _find2 === void 0 ? void 0 : _find2.hidden;
|
||
var isPathsHidden = (_find3 = (((_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.navbar) || []).find(function (item) {
|
||
return item.link === "/".concat(NavType.Paths);
|
||
})) === null || _find3 === void 0 ? void 0 : _find3.hidden;
|
||
if (globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.is_local) {
|
||
var _user$userInfo2;
|
||
if (!(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.is_shixun_marker)) isShixunsHidden = true;
|
||
}
|
||
// const JoinOverlay = (joinProps: any) => {
|
||
// return <>
|
||
// <Row justify="space-around" className="pt5 pb5">
|
||
// <Col className={styles.joinCol}>
|
||
// {
|
||
// user.userInfo?.user_identity !== '学生' &&
|
||
// !isClassroomsHidden &&
|
||
// <Menu.Item {...joinProps}>
|
||
// <a onClick={() => handleAddVerify('/classrooms/new')}>
|
||
// {
|
||
// user.userInfo?.main_site ?
|
||
// '新建教学课堂' :
|
||
// '新建课堂'
|
||
// }
|
||
// </a>
|
||
// </Menu.Item>
|
||
// }
|
||
// {
|
||
// !isShixunsHidden &&
|
||
// <Menu.Item {...joinProps}>
|
||
// <a onClick={() => handleAddVerify('/shixuns/new', VerifyType.Shixuns)}>
|
||
// 新建实践项目
|
||
// </a>
|
||
// </Menu.Item>
|
||
// }
|
||
// {
|
||
// (
|
||
// user.userInfo?.main_site && user.navigationInfo?.top ||
|
||
// (
|
||
// !user.userInfo?.main_site && user.navigationInfo?.top && !isPathsHidden &&
|
||
// (user.userInfo?.admin || user.userInfo?.is_teacher || user.userInfo?.business)
|
||
// )
|
||
// ) &&
|
||
// <Menu.Item {...joinProps}>
|
||
// <a onClick={() => handleAddVerify('/paths/new')}>新建实践课程</a>
|
||
// </Menu.Item>
|
||
// }
|
||
// {
|
||
// !globalSetting?.setting?.is_local &&
|
||
// user.userInfo?.main_site &&
|
||
// <Menu.Item {...joinProps}>
|
||
// <a onClick={() => handleAddVerify(`${user.navigationInfo?.top?.old_url}/projects/new`, VerifyType.Projects)}>新建开发项目</a>
|
||
// </Menu.Item>
|
||
// }
|
||
// </Col>
|
||
// <Col>
|
||
// <div className={styles.joinBoard}></div>
|
||
// </Col>
|
||
// <Col className={styles.joinCol}>
|
||
// {
|
||
// !isClassroomsHidden &&
|
||
// // user.userInfo?.main_site &&
|
||
// <Menu.Item {...joinProps}>
|
||
// <a onClick={() => handleJoinVerify(VerifyType.Classrooms)}>
|
||
// {
|
||
// user.userInfo?.main_site ?
|
||
// '加入教学课堂' :
|
||
// '加入课堂'
|
||
// }
|
||
// </a>
|
||
// </Menu.Item>
|
||
// }
|
||
// {
|
||
// user.userInfo?.main_site &&
|
||
// !globalSetting?.setting?.is_local &&
|
||
// <Menu.Item {...joinProps}>
|
||
// <a onClick={() => handleJoinVerify(VerifyType.Projects)}>
|
||
// 加入开发项目
|
||
// </a>
|
||
// </Menu.Item>
|
||
// }
|
||
// </Col>
|
||
// </Row>
|
||
// </>
|
||
// }
|
||
var JoinOverlay = function JoinOverlay(list) {
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: Joinmodules_default.a.dropdownFlex
|
||
}, /*#__PURE__*/react_default.a.createElement(menu["a" /* default */], null, list.map(function (item, key) {
|
||
return item.name !== "加入课堂" && item.name !== "加入开发项目" && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, {
|
||
key: item.name + key
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: function onClick() {
|
||
window.location.href = item.url;
|
||
}
|
||
}, item.name));
|
||
}), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: function onClick() {
|
||
return handleJoinVerify(VerifyType.Projects);
|
||
}
|
||
}, "\u52A0\u5165\u9879\u76EE")))));
|
||
};
|
||
return /*#__PURE__*/react_default.a.createElement("section", null, /*#__PURE__*/react_default.a.createElement(dropdown["a" /* default */], {
|
||
overlay: function overlay() {
|
||
var _globalSetting$settin5;
|
||
return JoinOverlay(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.add);
|
||
},
|
||
placement: "bottomRight"
|
||
}, /*#__PURE__*/react_default.a.createElement("span", {
|
||
style: {
|
||
lineHeight: 'inherit'
|
||
},
|
||
className: "iconfont icon-tianjiafangda c-white font18 current ml15 mr15"
|
||
})), /*#__PURE__*/react_default.a.createElement(Join_JoinClassroomModal, {
|
||
visible: visibleJoinClassroom,
|
||
onCancel: function onCancel() {
|
||
return setVisibleJoinClassroom(false);
|
||
}
|
||
}), /*#__PURE__*/react_default.a.createElement(Join_JoinProjectModal, {
|
||
visible: visibleJoinProject,
|
||
onCancel: function onCancel() {
|
||
return setVisibleJoinProject(false);
|
||
}
|
||
}));
|
||
};
|
||
/* harmony default export */ var components_Join = (Object(umiExports["a" /* connect */])(function (_ref2) {
|
||
var homePage = _ref2.homePage,
|
||
loading = _ref2.loading,
|
||
user = _ref2.user,
|
||
globalSetting = _ref2.globalSetting;
|
||
return {
|
||
homePage: homePage,
|
||
user: user,
|
||
globalSetting: globalSetting,
|
||
loading: loading.models.index
|
||
};
|
||
})(Join_Join));
|
||
// EXTERNAL MODULE: ./src/components/Header/components/User/index.less?modules
|
||
var Usermodules = __webpack_require__("vToQ");
|
||
var Usermodules_default = /*#__PURE__*/__webpack_require__.n(Usermodules);
|
||
|
||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||
var authority = __webpack_require__("xKgJ");
|
||
|
||
// EXTERNAL MODULE: ./src/service/user.ts
|
||
var service_user = __webpack_require__("jb+D");
|
||
|
||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||
var env = __webpack_require__("m3rI");
|
||
|
||
// CONCATENATED MODULE: ./src/components/Header/components/User/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function User_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ User_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var getCookie = function getCookie(key) {
|
||
var arr,
|
||
reg = RegExp('(^| )' + key + '=([^;]+)(;|$)');
|
||
if (arr = document.cookie.match(reg))
|
||
//["username=liuwei;", "", "liuwei", ";"]
|
||
return decodeURIComponent(arr[2]);else return null;
|
||
};
|
||
var delCookie = function delCookie(name) {
|
||
var exp = new Date();
|
||
exp.setTime(exp.getTime() - 1);
|
||
var cval = getCookie(name);
|
||
if (cval != null) {
|
||
document.cookie = name + '=' + cval + ';expires=' + exp.toGMTString();
|
||
}
|
||
};
|
||
var User_NavType = /*#__PURE__*/function (NavType) {
|
||
NavType["Classrooms"] = "classrooms";
|
||
NavType["Shixuns"] = "shixuns";
|
||
NavType["Paths"] = "paths";
|
||
NavType["Projects"] = "projects";
|
||
NavType["Videos"] = "videos";
|
||
NavType["Topics"] = "topics";
|
||
return NavType;
|
||
}(User_NavType || {});
|
||
var User_User = function User(_ref) {
|
||
var _find, _globalSetting$settin, _find2, _globalSetting$settin2, _find3, _globalSetting$settin3, _user$userInfo, _user$userInfo2, _user$userInfo3, _user$userInfo4, _user$userInfo5;
|
||
var homePage = _ref.homePage,
|
||
user = _ref.user,
|
||
globalSetting = _ref.globalSetting,
|
||
loading = _ref.loading,
|
||
dispatch = _ref.dispatch,
|
||
shixunHomeworks = _ref.shixunHomeworks,
|
||
location = _ref.location,
|
||
_ref$payload = _ref.payload,
|
||
payload = _ref$payload === void 0 ? {} : _ref$payload,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["homePage", "user", "globalSetting", "loading", "dispatch", "shixunHomeworks", "location", "payload"]);
|
||
var isClassroomsHidden = (_find = (((_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar) || []).find(function (item) {
|
||
return item.link === "/".concat(User_NavType.Classrooms);
|
||
})) === null || _find === void 0 ? void 0 : _find.hidden;
|
||
var isShixunsHidden = (_find2 = (((_globalSetting$settin2 = globalSetting.setting) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.navbar) || []).find(function (item) {
|
||
return item.link === "/".concat(User_NavType.Shixuns);
|
||
})) === null || _find2 === void 0 ? void 0 : _find2.hidden;
|
||
var isPathsHidden = (_find3 = (((_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.navbar) || []).find(function (item) {
|
||
return item.link === "/".concat(User_NavType.Paths);
|
||
})) === null || _find3 === void 0 ? void 0 : _find3.hidden;
|
||
var isPaperlibraryShow = ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.admin) || ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.business) || ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.is_shixun_marker) || ((_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.is_teacher) || ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_identity) !== '学生';
|
||
var DropdownMenu = function DropdownMenu() {
|
||
if (Object(util["b" /* checkIsClientExam */])()) {
|
||
return /*#__PURE__*/react_default.a.createElement(menu["a" /* default */], {
|
||
className: "".concat(Usermodules_default.a.rightMenu, " ").concat(Usermodules_default.a.menuWrap)
|
||
}, /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/account/profile"
|
||
}, "\u8D26\u53F7\u7BA1\u7406")));
|
||
} else {
|
||
var _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11, _user$userInfo12, _globalSetting$settin4, _user$userInfo13, _user$userInfo14, _user$navigationInfo, _user$navigationInfo$, _user$navigationInfo2, _user$navigationInfo3, _user$navigationInfo4, _user$navigationInfo5, _user$navigationInfo6, _user$navigationInfo7, _user$navigationInfo8, _user$navigationInfo9, _user$navigationInfo10, _user$navigationInfo11;
|
||
return /*#__PURE__*/react_default.a.createElement(menu["a" /* default */], {
|
||
className: "".concat(Usermodules_default.a.rightMenu, " ").concat(Usermodules_default.a.menuWrap)
|
||
}, /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/users/".concat((_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.login, "/classrooms")
|
||
}, "\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")), !isClassroomsHidden && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/users/".concat((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.login, "/classrooms")
|
||
}, ((_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.main_site) ? '我的教学课堂' : '我的课堂')), !isShixunsHidden && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/users/".concat((_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.login, "/shixuns")
|
||
}, "\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")), !isPathsHidden && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/users/".concat((_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.login, "/paths")
|
||
}, ((_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.main_site) ? '我的实践课程' : '我的课程')), ((_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.main_site) && !((_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.is_local) && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/users/".concat((_user$userInfo13 = user.userInfo) === null || _user$userInfo13 === void 0 ? void 0 : _user$userInfo13.login, "/projects")
|
||
}, "\u6211\u7684\u5F00\u53D1\u9879\u76EE")), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/users/".concat((_user$userInfo14 = user.userInfo) === null || _user$userInfo14 === void 0 ? void 0 : _user$userInfo14.login, "/teach-group")
|
||
}, "\u6211\u7684\u6559\u7814\u56E2\u961F")), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: function onClick() {
|
||
if (!Object(verifyLogin["b" /* handleVerify */])(dispatch)) {
|
||
return;
|
||
}
|
||
umiExports["c" /* history */].push("/problemset");
|
||
}
|
||
}, "\u8BD5\u9898\u5E93")), isPaperlibraryShow && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: function onClick() {
|
||
if (!Object(verifyLogin["b" /* handleVerify */])(dispatch)) {
|
||
return;
|
||
}
|
||
umiExports["c" /* history */].push("/paperlibrary");
|
||
}
|
||
}, "\u8BD5\u5377\u5E93")), ((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 ? void 0 : (_user$navigationInfo$ = _user$navigationInfo.top) === null || _user$navigationInfo$ === void 0 ? void 0 : _user$navigationInfo$.customer_management_url) && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: (_user$navigationInfo2 = user.navigationInfo) === null || _user$navigationInfo2 === void 0 ? void 0 : (_user$navigationInfo3 = _user$navigationInfo2.top) === null || _user$navigationInfo3 === void 0 ? void 0 : _user$navigationInfo3.customer_management_url
|
||
}, "\u5BA2\u6237\u7BA1\u7406")), ((_user$navigationInfo4 = user.navigationInfo) === null || _user$navigationInfo4 === void 0 ? void 0 : (_user$navigationInfo5 = _user$navigationInfo4.top) === null || _user$navigationInfo5 === void 0 ? void 0 : _user$navigationInfo5.college_identifier) && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/colleges/".concat((_user$navigationInfo6 = user.navigationInfo) === null || _user$navigationInfo6 === void 0 ? void 0 : (_user$navigationInfo7 = _user$navigationInfo6.top) === null || _user$navigationInfo7 === void 0 ? void 0 : _user$navigationInfo7.college_identifier, "/statistics")
|
||
}, "\u5B66\u9662\u7EDF\u8BA1")), ((_user$navigationInfo8 = user.navigationInfo) === null || _user$navigationInfo8 === void 0 ? void 0 : (_user$navigationInfo9 = _user$navigationInfo8.top) === null || _user$navigationInfo9 === void 0 ? void 0 : _user$navigationInfo9.laboratory_admin_url) && /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: (_user$navigationInfo10 = user.navigationInfo) === null || _user$navigationInfo10 === void 0 ? void 0 : (_user$navigationInfo11 = _user$navigationInfo10.top) === null || _user$navigationInfo11 === void 0 ? void 0 : _user$navigationInfo11.laboratory_admin_url
|
||
}, "\u540E\u53F0\u7BA1\u7406")), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
onClick: function onClick() {
|
||
if (localStorage.getItem('Noviceguide') === '0') {} else {
|
||
dispatch({
|
||
type: 'shixunHomeworks/setActionTabs',
|
||
payload: {
|
||
key: '底部弹窗',
|
||
type: 2,
|
||
href: '/classrooms',
|
||
text: /*#__PURE__*/react_default.a.createElement("div", null, "OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")
|
||
}
|
||
});
|
||
}
|
||
},
|
||
to: "/account/profile"
|
||
}, "\u8D26\u53F7\u7BA1\u7406")), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
to: "/order"
|
||
}, "\u6211\u7684\u8BA2\u5355")), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, {
|
||
className: Usermodules_default.a.exit
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/User_regeneratorRuntime().mark(function _callee() {
|
||
var res;
|
||
return User_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
_context.next = 2;
|
||
return Object(service_user["h" /* LoginOut */])({});
|
||
case 2:
|
||
res = _context.sent;
|
||
if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
|
||
dispatch({
|
||
type: 'user/getUserInfo',
|
||
payload: Object(objectSpread2["a" /* default */])({}, payload)
|
||
});
|
||
dispatch({
|
||
type: 'user/getNavigationInfo',
|
||
payload: Object(objectSpread2["a" /* default */])({}, payload)
|
||
});
|
||
delCookie('logintrustie');
|
||
delCookie('_educoder_session');
|
||
localStorage.removeItem('isfirst');
|
||
localStorage.removeItem('SystemUpdateadvtime');
|
||
localStorage.removeItem('item');
|
||
localStorage.removeItem('iscreate');
|
||
// localStorage.removeItem('CCshow')
|
||
es_message["b" /* default */].success(res === null || res === void 0 ? void 0 : res.message);
|
||
umiExports["c" /* history */].replace('/');
|
||
}
|
||
case 4:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}))
|
||
}, "\u9000\u51FA")));
|
||
}
|
||
};
|
||
var OwnerDownMenu = function OwnerDownMenu() {
|
||
var _user$userInfo15, _user$userInfo16, _globalSetting$settin5, _globalSetting$settin6;
|
||
return /*#__PURE__*/react_default.a.createElement(menu["a" /* default */], {
|
||
className: Usermodules_default.a.currentMenu
|
||
}, /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: Usermodules_default.a.currentName,
|
||
title: (_user$userInfo15 = user.userInfo) === null || _user$userInfo15 === void 0 ? void 0 : _user$userInfo15.username
|
||
}, (_user$userInfo16 = user.userInfo) === null || _user$userInfo16 === void 0 ? void 0 : _user$userInfo16.username)), (globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.personal) && (globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin6 = globalSetting.setting) === null || _globalSetting$settin6 === void 0 ? void 0 : _globalSetting$settin6.personal.map(function (item, key) {
|
||
return /*#__PURE__*/react_default.a.createElement("li", {
|
||
key: key
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: item.url,
|
||
target: "_blank"
|
||
}, item.name));
|
||
})), /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/User_regeneratorRuntime().mark(function _callee2() {
|
||
var _history$location;
|
||
var res;
|
||
return User_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
_context2.next = 2;
|
||
return Object(service_user["d" /* ForgeLoginOut */])({});
|
||
case 2:
|
||
res = _context2.sent;
|
||
dispatch({
|
||
type: 'user/getUserInfo',
|
||
payload: Object(objectSpread2["a" /* default */])({}, payload)
|
||
});
|
||
umiExports["c" /* history */].push({
|
||
pathname: umiExports["c" /* history */] === null || umiExports["c" /* history */] === void 0 ? void 0 : (_history$location = umiExports["c" /* history */].location) === null || _history$location === void 0 ? void 0 : _history$location.pathname,
|
||
search: ""
|
||
});
|
||
window.location.reload();
|
||
delCookie('autologin');
|
||
delCookie('logintrustie');
|
||
case 8:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}))
|
||
}, "\u9000\u51FA")));
|
||
};
|
||
var educoderloginysl = function educoderloginysl() {
|
||
//退出账号时清除登录页面的下次自动登录(用户再次打开登录页面时下次自动登录框不勾选)
|
||
// cookie.remove("autologin");
|
||
delCookie("autologin");
|
||
//退出账号
|
||
// var url = `/accounts/logout.json`;
|
||
// axios.get((url)).then((result) => {
|
||
// if (result !== undefined) {
|
||
// window.location.href = "/";
|
||
// }
|
||
// }).catch((error) => {
|
||
// console.log(error);
|
||
// })
|
||
};
|
||
if (Object(authority["b" /* isLogin */])()) {
|
||
var _globalSetting$settin7, _globalSetting$settin8, _user$userInfo17, _user$userInfo18;
|
||
return /*#__PURE__*/react_default.a.createElement(dropdown["a" /* default */], {
|
||
className: "".concat(Usermodules_default.a.height67, " mr25"),
|
||
overlay: OwnerDownMenu,
|
||
placement: "bottomLeft"
|
||
}, /*#__PURE__*/react_default.a.createElement("section", null, /*#__PURE__*/react_default.a.createElement("aside", null, /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: shixunHomeworks.actionTabs.type === 1 ? Usermodules_default.a.classromediv : ''
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "".concat(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin7 = globalSetting.setting) === null || _globalSetting$settin7 === void 0 ? void 0 : (_globalSetting$settin8 = _globalSetting$settin7.common) === null || _globalSetting$settin8 === void 0 ? void 0 : _globalSetting$settin8.main_site_url, "/").concat((_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.login)
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
className: "".concat(Usermodules_default.a.userPic, " current ml15"),
|
||
src: "".concat(env["a" /* default */] === null || env["a" /* default */] === void 0 ? void 0 : env["a" /* default */].FORGE_SERVER, "/").concat((_user$userInfo18 = user.userInfo) === null || _user$userInfo18 === void 0 ? void 0 : _user$userInfo18.image_url),
|
||
alt: ""
|
||
}))))));
|
||
} else {
|
||
var _globalSetting$settin9, _globalSetting$settin10;
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "font15"
|
||
}, /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: "ml10 mr5 current",
|
||
onClick: function onClick() {
|
||
dispatch({
|
||
type: 'user/showPopLogin',
|
||
payload: {
|
||
showPopLogin: true,
|
||
showClosable: true
|
||
}
|
||
});
|
||
}
|
||
}, "\u767B\u5F55"), /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: "ml5 mr5"
|
||
}, "|"), /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "".concat(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin9 = globalSetting.setting) === null || _globalSetting$settin9 === void 0 ? void 0 : (_globalSetting$settin10 = _globalSetting$settin9.common) === null || _globalSetting$settin10 === void 0 ? void 0 : _globalSetting$settin10.register),
|
||
className: "ml5 current pr30",
|
||
style: {
|
||
color: "#333"
|
||
}
|
||
}, "\u6CE8\u518C"));
|
||
}
|
||
};
|
||
/* harmony default export */ var components_User = (Object(umiExports["a" /* connect */])(function (_ref4) {
|
||
var homePage = _ref4.homePage,
|
||
loading = _ref4.loading,
|
||
user = _ref4.user,
|
||
globalSetting = _ref4.globalSetting,
|
||
shixunHomeworks = _ref4.shixunHomeworks;
|
||
return {
|
||
homePage: homePage,
|
||
user: user,
|
||
globalSetting: globalSetting,
|
||
shixunHomeworks: shixunHomeworks,
|
||
loading: loading.models.index
|
||
};
|
||
})(User_User));
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js
|
||
var button_style = __webpack_require__("+L6B");
|
||
|
||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||
var es_button = __webpack_require__("2/Rp");
|
||
|
||
// EXTERNAL MODULE: ./src/components/HomeModal/jqr.png
|
||
var jqr = __webpack_require__("Cs+z");
|
||
var jqr_default = /*#__PURE__*/__webpack_require__.n(jqr);
|
||
|
||
// CONCATENATED MODULE: ./src/components/HomeModal/Beginnerbottom.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var showLinks = ['/', '/classrooms', '/account/profile', '/account/profile/edit', '/classrooms/new'];
|
||
var Beginnerbottom_User = function User(_ref) {
|
||
var homePage = _ref.homePage,
|
||
user = _ref.user,
|
||
globalSetting = _ref.globalSetting,
|
||
loading = _ref.loading,
|
||
dispatch = _ref.dispatch,
|
||
location = _ref.location,
|
||
text = _ref.text,
|
||
shixunHomeworks = _ref.shixunHomeworks,
|
||
_ref$payload = _ref.payload,
|
||
payload = _ref$payload === void 0 ? {} : _ref$payload,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["homePage", "user", "globalSetting", "loading", "dispatch", "location", "text", "shixunHomeworks", "payload"]);
|
||
var _useState = Object(react["useState"])('none'),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
showbottom = _useState2[0],
|
||
setshowbottom = _useState2[1];
|
||
Object(react["useEffect"])(function () {
|
||
if (shixunHomeworks.actionTabs.key === '底部弹窗') {
|
||
setshowbottom('flex');
|
||
}
|
||
}, [shixunHomeworks.actionTabs.key]);
|
||
Object(react["useEffect"])(function () {
|
||
if (shixunHomeworks.actionTabs.key === '隐藏') {
|
||
setshowbottom('none');
|
||
localStorage.setItem('Noviceguide', '0');
|
||
}
|
||
}, [shixunHomeworks.actionTabs.key]);
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
display: showbottom,
|
||
background: '#fff',
|
||
width: '100%',
|
||
height: '200px',
|
||
position: "fixed",
|
||
bottom: '0px',
|
||
boxShadow: '0px -4px 6px 0px rgba(204, 204, 204, 0.2)',
|
||
zIndex: '999'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
margin: '0 auto',
|
||
width: '1200px'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: jqr_default.a,
|
||
style: {
|
||
position: 'absolute',
|
||
top: '-32px'
|
||
}
|
||
}), /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
marginLeft: "151px",
|
||
marginTop: '40px',
|
||
fontSize: '18px',
|
||
color: "#333333"
|
||
}
|
||
}, shixunHomeworks.actionTabs.text), shixunHomeworks.actionTabs.type === 9 ? /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
display: 'flex',
|
||
justifyContent: 'flex-end'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
type: "primary",
|
||
onClick: function onClick() {
|
||
localStorage.setItem('Noviceguide', '0');
|
||
setshowbottom('none');
|
||
dispatch({
|
||
type: 'shixunHomeworks/setActionTabs',
|
||
payload: {
|
||
key: ''
|
||
}
|
||
});
|
||
},
|
||
ghost: true,
|
||
style: {
|
||
marginTop: "30px",
|
||
width: '138px',
|
||
height: '40px',
|
||
position: 'absolute',
|
||
top: '124px'
|
||
}
|
||
}, "\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")) : /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
display: 'flex',
|
||
justifyContent: 'flex-end'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
|
||
type: "primary",
|
||
onClick: function onClick() {
|
||
localStorage.setItem('Noviceguide', '0');
|
||
dispatch({
|
||
type: 'shixunHomeworks/setActionTabs',
|
||
payload: {
|
||
key: ''
|
||
}
|
||
});
|
||
setshowbottom('none');
|
||
},
|
||
ghost: true,
|
||
style: {
|
||
marginTop: "30px",
|
||
width: '138px',
|
||
height: '40px',
|
||
position: 'absolute',
|
||
top: '124px'
|
||
}
|
||
}, "\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))));
|
||
};
|
||
/* harmony default export */ var Beginnerbottom = (Object(umiExports["a" /* connect */])(function (_ref2) {
|
||
var homePage = _ref2.homePage,
|
||
loading = _ref2.loading,
|
||
user = _ref2.user,
|
||
globalSetting = _ref2.globalSetting,
|
||
shixunHomeworks = _ref2.shixunHomeworks;
|
||
return {
|
||
homePage: homePage,
|
||
user: user,
|
||
globalSetting: globalSetting,
|
||
loading: loading.models.index,
|
||
shixunHomeworks: shixunHomeworks
|
||
};
|
||
})(Beginnerbottom_User));
|
||
// CONCATENATED MODULE: ./src/components/Header/index.tsx
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function Header_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ Header_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
||
|
||
|
||
|
||
var Header = es_layout.Header;
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
var Search = input["a" /* default */].Search;
|
||
function getCourseParam() {
|
||
var _type$, _type$2;
|
||
var query = window.location.pathname;
|
||
var type = query.split('/');
|
||
var params = {};
|
||
if (type[1] == 'classrooms' && type.length > 3 && !((_type$ = type[4]) === null || _type$ === void 0 ? void 0 : _type$.includes('newgold')) && !((_type$2 = type[5]) === null || _type$2 === void 0 ? void 0 : _type$2.includes('newgold')) && type[2] !== 'coursesId') {
|
||
params.course_id = type[2];
|
||
}
|
||
if (type[1] === 'shixuns' && type.length > 3) {
|
||
params.objective_type = 'shixun';
|
||
params.objective_id = type[2];
|
||
}
|
||
if (type[1] === 'paths' && type.length > 3) {
|
||
params.objective_type = 'path';
|
||
params.objective_id = type[2];
|
||
}
|
||
return Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, params), {
|
||
school: 1
|
||
});
|
||
}
|
||
var routerLinks = {
|
||
首页: "/",
|
||
'/paths': {
|
||
link: "/paths",
|
||
key: 1
|
||
},
|
||
'/shixuns': {
|
||
link: "/shixuns",
|
||
key: 2
|
||
},
|
||
'/classrooms': {
|
||
link: "/classrooms",
|
||
key: 3
|
||
},
|
||
'/competitions': {
|
||
link: "/competitions",
|
||
key: 4
|
||
},
|
||
'/moop_cases': {
|
||
link: "/moop_cases",
|
||
key: 5
|
||
},
|
||
'/forums': {
|
||
link: "/forums",
|
||
key: 6
|
||
},
|
||
'/recruitment': {
|
||
link: "/competitions/index",
|
||
key: 7
|
||
},
|
||
'/three': {
|
||
link: "/three",
|
||
key: 7
|
||
}
|
||
};
|
||
var Header_showLinks = ['/', '/classrooms', '/account/profile', '/account/profile/edit', '/classrooms/new'];
|
||
var Header_HeaderComponents = function HeaderComponents(_ref) {
|
||
var _globalSetting$settin5;
|
||
var homePage = _ref.homePage,
|
||
user = _ref.user,
|
||
globalSetting = _ref.globalSetting,
|
||
loading = _ref.loading,
|
||
dispatch = _ref.dispatch,
|
||
location = _ref.location,
|
||
_ref$isLogin = _ref.isLogin,
|
||
isLogin = _ref$isLogin === void 0 ? false : _ref$isLogin,
|
||
shixunHomeworks = _ref.shixunHomeworks,
|
||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["homePage", "user", "globalSetting", "loading", "dispatch", "location", "isLogin", "shixunHomeworks"]);
|
||
var history = Object(react_router["j" /* useHistory */])();
|
||
var _useState = Object(react["useState"])(false),
|
||
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
|
||
openSearch = _useState2[0],
|
||
setOpenSearch = _useState2[1];
|
||
var _useState3 = Object(react["useState"])(-1),
|
||
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
|
||
activeKey = _useState4[0],
|
||
setActiveKey = _useState4[1];
|
||
var _useState5 = Object(react["useState"])(false),
|
||
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
|
||
QQVisible = _useState6[0],
|
||
setQQVisible = _useState6[1];
|
||
var _useState7 = Object(react["useState"])(),
|
||
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
|
||
zoneList = _useState8[0],
|
||
setZoneList = _useState8[1];
|
||
var _useState9 = Object(react["useState"])(false),
|
||
_useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
|
||
showSubMenu = _useState10[0],
|
||
setShowSubMenu = _useState10[1];
|
||
var payload = getCourseParam();
|
||
var pathname = location.pathname;
|
||
Object(react["useEffect"])(function () {
|
||
dispatch({
|
||
type: 'user/getNavigationInfo',
|
||
payload: Object(objectSpread2["a" /* default */])({}, payload)
|
||
});
|
||
getZoneList();
|
||
}, [globalSetting.name]);
|
||
var userInfo = user.userInfo; // 获取特色专区列表
|
||
function getZoneList() {
|
||
return _getZoneList.apply(this, arguments);
|
||
}
|
||
function _getZoneList() {
|
||
_getZoneList = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Header_regeneratorRuntime().mark(function _callee2() {
|
||
var res, newArray;
|
||
return Header_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
||
while (1) switch (_context2.prev = _context2.next) {
|
||
case 0:
|
||
_context2.next = 2;
|
||
return dispatch({
|
||
type: 'user/ForgeGetZoneList',
|
||
payload: Object(objectSpread2["a" /* default */])({}, payload)
|
||
});
|
||
case 2:
|
||
res = _context2.sent;
|
||
if (res === null || res === void 0 ? void 0 : res.data) {
|
||
newArray = [];
|
||
res.data.forEach(function (e, i) {
|
||
newArray[i] = {
|
||
name: e.name,
|
||
link: "/zone/".concat(e.key)
|
||
};
|
||
});
|
||
setZoneList(newArray);
|
||
}
|
||
case 4:
|
||
case "end":
|
||
return _context2.stop();
|
||
}
|
||
}, _callee2);
|
||
}));
|
||
return _getZoneList.apply(this, arguments);
|
||
}
|
||
Object(react["useEffect"])(function () {
|
||
// if(parseInt(localStorage.getItem('Noviceguide'))===1){
|
||
// if(location.pathname.indexOf('/account/profile')===0){
|
||
|
||
// }else if(location.pathname.indexOf('/classrooms')!=0){
|
||
// dispatch({
|
||
// type: 'shixunHomeworks/setActionTabs',
|
||
// payload: {
|
||
// key: '隐藏',
|
||
// },
|
||
// })
|
||
// }
|
||
// }
|
||
|
||
if (shixunHomeworks.actionTabs.key === '底部弹窗') {
|
||
if ((Header_showLinks === null || Header_showLinks === void 0 ? void 0 : Header_showLinks.includes(location === null || location === void 0 ? void 0 : location.pathname)) || (location === null || location === void 0 ? void 0 : location.pathname.indexOf('/classrooms')) === 0) {} else {
|
||
dispatch({
|
||
type: 'shixunHomeworks/setActionTabs',
|
||
payload: {
|
||
key: '隐藏'
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
// const key: string = Object.keys(routerLinks).filter(item => location.pathname.indexOf(item) > -1)[0]
|
||
// setActiveKey(routerLinks?.[key]?.['key'])
|
||
}, [location.pathname]);
|
||
Object(react["useEffect"])(function () {
|
||
//判断 如果刷新了 直接吧状态赋空 防止点击埋点出现问题
|
||
if (shixunHomeworks.actionTabs.key === '底部弹窗') {} else if (shixunHomeworks.actionTabs.key) {} else {
|
||
localStorage.setItem('Noviceguide', '0');
|
||
}
|
||
}, [shixunHomeworks.actionTabs.key]);
|
||
Object(react["useEffect"])(function () {
|
||
if (globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting) {
|
||
var _globalSetting$settin, _globalSetting$settin2;
|
||
globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : (_globalSetting$settin2 = _globalSetting$settin.navbar) === null || _globalSetting$settin2 === void 0 ? void 0 : _globalSetting$settin2.map(function (val, key) {
|
||
if (location.pathname.indexOf(val.link) > -1) {
|
||
setActiveKey(key);
|
||
}
|
||
});
|
||
// if (activeKey === -1) {
|
||
// setDocumentTitle(globalSetting.setting.name)
|
||
// }
|
||
// else {
|
||
// setDocumentTitle(globalSetting.setting.navbar[activeKey]?.name || globalSetting.setting.name)
|
||
// }
|
||
}
|
||
}, [globalSetting === null || globalSetting === void 0 ? void 0 : globalSetting.setting]);
|
||
var logoUrl = Object(react["useMemo"])(function () {
|
||
var _globalSetting$settin3;
|
||
if (!!(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin3 = globalSetting.setting) === null || _globalSetting$settin3 === void 0 ? void 0 : _globalSetting$settin3.nav_logo_url)) {
|
||
var _globalSetting$settin4;
|
||
return "".concat(env["a" /* default */].IMG_SERVER, "/").concat(globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin4 = globalSetting.setting) === null || _globalSetting$settin4 === void 0 ? void 0 : _globalSetting$settin4.nav_logo_url);
|
||
} else {
|
||
return "".concat(env["a" /* default */].IMG_SERVER, "/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime());
|
||
}
|
||
}, [globalSetting === null || globalSetting === void 0 ? void 0 : (_globalSetting$settin5 = globalSetting.setting) === null || _globalSetting$settin5 === void 0 ? void 0 : _globalSetting$settin5.nav_logo_url]);
|
||
function onGlobalSearch(value) {
|
||
history.push('/search?value=' + value);
|
||
}
|
||
var SearchInput = function SearchInput() {
|
||
if (openSearch) {
|
||
return /*#__PURE__*/react_default.a.createElement("div", {
|
||
onBlur: function onBlur() {
|
||
setTimeout(function () {
|
||
setOpenSearch(false);
|
||
}, 300);
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement(Search, {
|
||
placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57",
|
||
className: "search-input mr20",
|
||
onSearch: onGlobalSearch,
|
||
autoFocus: true
|
||
}));
|
||
} else {
|
||
return /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: "iconfont icon-sousuo font18 current ml15 mr15",
|
||
onClick: function onClick() {
|
||
setOpenSearch(true);
|
||
// history.push('/search?value=')
|
||
}
|
||
});
|
||
}
|
||
};
|
||
var handleCert = /*#__PURE__*/function () {
|
||
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Header_regeneratorRuntime().mark(function _callee(e) {
|
||
var _res$data;
|
||
var res, _res$data2;
|
||
return Header_regeneratorRuntime().wrap(function _callee$(_context) {
|
||
while (1) switch (_context.prev = _context.next) {
|
||
case 0:
|
||
e.preventDefault();
|
||
_context.next = 3;
|
||
return Object(service_user["n" /* getEngineerUrl */])();
|
||
case 3:
|
||
res = _context.sent;
|
||
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.engineer_url) {
|
||
document.location.href = res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.engineer_url;
|
||
} else if ((res === null || res === void 0 ? void 0 : res.status) != 401) {
|
||
setQQVisible(true);
|
||
}
|
||
case 5:
|
||
case "end":
|
||
return _context.stop();
|
||
}
|
||
}, _callee);
|
||
}));
|
||
return function handleCert(_x) {
|
||
return _ref2.apply(this, arguments);
|
||
};
|
||
}();
|
||
if (globalSetting.showHeader && globalSetting.showHeaderFooter) {
|
||
var _globalSetting$settin6, _globalSetting$settin7, _globalSetting$settin8, _globalSetting$settin9, _user$userInfo, _user$userInfo2, _user$userInfo3;
|
||
return /*#__PURE__*/react_default.a.createElement(es_layout, {
|
||
className: "".concat(Headermodules_default.a.header, " ").concat(Headermodules_default.a.headerFixed)
|
||
}, /*#__PURE__*/react_default.a.createElement(Header, {
|
||
className: "header"
|
||
}, /*#__PURE__*/react_default.a.createElement("section", {
|
||
className: Headermodules_default.a['edu-menu']
|
||
}, /*#__PURE__*/react_default.a.createElement("ul", {
|
||
className: "".concat(Headermodules_default.a.menu, " ").concat(Object(util["b" /* checkIsClientExam */])() && "ml0")
|
||
}, Object(util["b" /* checkIsClientExam */])() && /*#__PURE__*/react_default.a.createElement("li", null, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "/"
|
||
}, "\u8003\u8BD5\u7CFB\u7EDF")), ((_globalSetting$settin6 = globalSetting.setting) === null || _globalSetting$settin6 === void 0 ? void 0 : _globalSetting$settin6.nav_logo_url) && /*#__PURE__*/react_default.a.createElement("a", {
|
||
style: {
|
||
marginLeft: "78px"
|
||
},
|
||
href: (_globalSetting$settin7 = globalSetting.setting) === null || _globalSetting$settin7 === void 0 ? void 0 : (_globalSetting$settin8 = _globalSetting$settin7.common) === null || _globalSetting$settin8 === void 0 ? void 0 : _globalSetting$settin8.main_site_url
|
||
}, /*#__PURE__*/react_default.a.createElement("img", {
|
||
height: "55px",
|
||
src: env["a" /* default */].FORGE_SERVER + '/' + ((_globalSetting$settin9 = globalSetting.setting) === null || _globalSetting$settin9 === void 0 ? void 0 : _globalSetting$settin9.nav_logo_url),
|
||
className: "mr50"
|
||
})), !Object(util["b" /* checkIsClientExam */])() && globalSetting.setting && globalSetting.setting.navbar.map(function (v, k) {
|
||
if (v.name === '特色专区') {
|
||
// 特色专区下拉菜单
|
||
return zoneList && zoneList.length > 0 ? /*#__PURE__*/react_default.a.createElement("li", {
|
||
className: "".concat(Headermodules_default.a.dropLi),
|
||
onMouseOver: function onMouseOver() {
|
||
setShowSubMenu(true);
|
||
},
|
||
onMouseOut: function onMouseOut() {
|
||
setShowSubMenu(false);
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
onClick: function onClick() {
|
||
setShowSubMenu(true);
|
||
}
|
||
}, "\u7279\u8272\u4E13\u533A"), /*#__PURE__*/react_default.a.createElement("ul", {
|
||
className: "".concat(Headermodules_default.a.dropDown, " ").concat(showSubMenu ? "".concat(Headermodules_default.a.dropDownStem) : ''),
|
||
style: {
|
||
height: showSubMenu ? "".concat((userInfo === null || userInfo === void 0 ? void 0 : userInfo.login) ? (zoneList.length + 1) * 46 : zoneList.length * 46, "px") : 0
|
||
}
|
||
}, zoneList.map(function (e, k) {
|
||
return /*#__PURE__*/react_default.a.createElement("li", {
|
||
className: "".concat(Headermodules_default.a.dropDownItem),
|
||
key: k
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "".concat(env["a" /* default */].FORGE_SERVER).concat(e === null || e === void 0 ? void 0 : e.link),
|
||
title: e === null || e === void 0 ? void 0 : e.name,
|
||
target: "_blank"
|
||
}, e === null || e === void 0 ? void 0 : e.name));
|
||
}), (userInfo === null || userInfo === void 0 ? void 0 : userInfo.login) && /*#__PURE__*/react_default.a.createElement("li", {
|
||
className: "".concat(Headermodules_default.a.dropDownItem)
|
||
}, /*#__PURE__*/react_default.a.createElement("a", {
|
||
href: "".concat(env["a" /* default */].FORGE_SERVER, "/zone/apply"),
|
||
target: "_blank"
|
||
}, "+\u7533\u8BF7\u521B\u5EFA")))) : '';
|
||
} else {
|
||
return /*#__PURE__*/react_default.a.createElement("li", {
|
||
key: k,
|
||
className: v.link === "".concat(env["a" /* default */].FORGE_SERVER, "/competitions") ? Headermodules_default.a.actived : '',
|
||
style: {
|
||
display: (v === null || v === void 0 ? void 0 : v.hidden) ? "none" : "flex"
|
||
}
|
||
}, (v === null || v === void 0 ? void 0 : v.name) === '教学课堂' && /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
onClick: function onClick() {
|
||
if (localStorage.getItem('Noviceguide') === '0') {} else {
|
||
dispatch({
|
||
type: 'shixunHomeworks/setActionTabs',
|
||
payload: {
|
||
key: '底部弹窗',
|
||
type: 5,
|
||
text: /*#__PURE__*/react_default.a.createElement("div", null, "\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")
|
||
}
|
||
});
|
||
}
|
||
},
|
||
className: shixunHomeworks.actionTabs.type === 4 ? Headermodules_default.a.classromediv : '',
|
||
dangerouslySetInnerHTML: {
|
||
__html: v.name
|
||
},
|
||
to: v.link
|
||
}), (v === null || v === void 0 ? void 0 : v.name) != '教学课堂' && v.link.indexOf("http") < 0 && /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
|
||
onClick: function onClick() {
|
||
dispatch({
|
||
type: 'shixunHomeworks/setActionTabs',
|
||
payload: {
|
||
key: ''
|
||
}
|
||
});
|
||
},
|
||
dangerouslySetInnerHTML: {
|
||
__html: v.name
|
||
},
|
||
to: v.link
|
||
}), (v === null || v === void 0 ? void 0 : v.name) != '教学课堂' && v.link.indexOf("http") > -1 && /*#__PURE__*/react_default.a.createElement("a", {
|
||
dangerouslySetInnerHTML: {
|
||
__html: v.name
|
||
},
|
||
href: v.link
|
||
}));
|
||
}
|
||
})), /*#__PURE__*/react_default.a.createElement("div", {
|
||
className: "search-bar"
|
||
}, !Object(util["b" /* checkIsClientExam */])() && /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null, /*#__PURE__*/react_default.a.createElement(SearchInput, null), !isLogin && !!(user === null || user === void 0 ? void 0 : (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login) && /*#__PURE__*/react_default.a.createElement(components_Join, null), !!(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login) && /*#__PURE__*/react_default.a.createElement("a", {
|
||
className: "iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",
|
||
href: "".concat(env["a" /* default */].FORGE_SERVER, "/settings/notice")
|
||
}, (user === null || user === void 0 ? void 0 : (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.message_unread_total) > 0 ? /*#__PURE__*/react_default.a.createElement("span", {
|
||
className: Headermodules_default.a.newslight
|
||
}) : "")), !isLogin && /*#__PURE__*/react_default.a.createElement(components_User, {
|
||
payload: payload
|
||
}))), /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
|
||
centered: true,
|
||
destroyOnClose: true,
|
||
visible: QQVisible,
|
||
title: "\u63D0\u793A",
|
||
width: "500px"
|
||
// footer={null}
|
||
,
|
||
okText: "\u7ACB\u5373\u8054\u7CFB",
|
||
cancelText: "\u53D6\u6D88",
|
||
onOk: function onOk() {
|
||
Object(util["m" /* openNewWindow */])("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi");
|
||
},
|
||
onCancel: function onCancel() {
|
||
return setQQVisible(false);
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("div", {
|
||
style: {
|
||
display: 'flex',
|
||
flexDirection: 'column',
|
||
alignItems: 'center'
|
||
}
|
||
}, /*#__PURE__*/react_default.a.createElement("p", null, "\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"), /*#__PURE__*/react_default.a.createElement("img", {
|
||
src: ImagesIcon["b" /* teacherQQIcon */],
|
||
width: 200,
|
||
height: 200
|
||
}), /*#__PURE__*/react_default.a.createElement("p", null, "\u7FA4\u53F7\uFF1A693542422 ")))), /*#__PURE__*/react_default.a.createElement(Beginnerbottom, null));
|
||
} else {
|
||
return /*#__PURE__*/react_default.a.createElement(react_default.a.Fragment, null);
|
||
}
|
||
};
|
||
/* harmony default export */ var components_Header = __webpack_exports__["a"] = (Object(umiExports["a" /* connect */])(function (_ref3) {
|
||
var homePage = _ref3.homePage,
|
||
loading = _ref3.loading,
|
||
user = _ref3.user,
|
||
globalSetting = _ref3.globalSetting,
|
||
shixunHomeworks = _ref3.shixunHomeworks;
|
||
return {
|
||
homePage: homePage,
|
||
user: user,
|
||
globalSetting: globalSetting,
|
||
loading: loading.models.index,
|
||
shixunHomeworks: shixunHomeworks
|
||
};
|
||
})(Header_HeaderComponents));
|
||
|
||
/***/ }),
|
||
|
||
/***/ "tSko":
|
||
/*!******************************************************************!*\
|
||
!*** ./node_modules/@ant-design/icons/lib/icons/PlusOutlined.js ***!
|
||
\******************************************************************/
|
||
/*! no static exports found */
|
||
/*! all exports used */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
|
||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "TqRt");
|
||
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "cDf5");
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
exports.default = void 0;
|
||
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "3tO9"));
|
||
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "q1tI"));
|
||
var _PlusOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/PlusOutlined */ "SRve"));
|
||
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "KQxl"));
|
||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||
// GENERATE BY ./scripts/generate.ts
|
||
// DON NOT EDIT IT MANUALLY
|
||
|
||
var PlusOutlined = function PlusOutlined(props, ref) {
|
||
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
||
ref: ref,
|
||
icon: _PlusOutlined.default
|
||
}));
|
||
};
|
||
var RefIcon = /*#__PURE__*/React.forwardRef(PlusOutlined);
|
||
if (false) {}
|
||
var _default = exports.default = RefIcon;
|
||
|
||
/***/ }),
|
||
|
||
/***/ "tWlo":
|
||
/*!*******************************************!*\
|
||
!*** ./src/assets/images/icons/anony.png ***!
|
||
\*******************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.ex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=="
|
||
|
||
/***/ }),
|
||
|
||
/***/ "vToQ":
|
||
/*!******************************************************************!*\
|
||
!*** ./src/components/Header/components/User/index.less?modules ***!
|
||
\******************************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"flex_box_center":"flex_box_center___3UWMh","flex_space_between":"flex_space_between___2nh9S","flex_box_vertical_center":"flex_box_vertical_center___2Neiq","flex_box_center_end":"flex_box_center_end___2_1FS","flex_box_column":"flex_box_column___2E-v7","userPic":"userPic___3Pu9t","currentMenu":"currentMenu___zT3IA","rightMenu":"rightMenu___1qaVl","menuWrap":"menuWrap___3r9jm","exit":"exit___38Urs","classromediv":"classromediv___2R8_g","glow":"glow___323IR","height67":"height67___1DFRI"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "xrsn":
|
||
/*!**************************************************!*\
|
||
!*** ./src/components/Header/index.less?modules ***!
|
||
\**************************************************/
|
||
/*! no static exports found */
|
||
/*! exports used: default */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports, __webpack_require__) {
|
||
|
||
// extracted by mini-css-extract-plugin
|
||
module.exports = {"flex_box_center":"flex_box_center___2cC1r","flex_space_between":"flex_space_between___9TeDx","flex_box_vertical_center":"flex_box_vertical_center___3EIYv","flex_box_center_end":"flex_box_center_end___1Uph0","flex_box_column":"flex_box_column___17_5w","header":"header___1E4MV","logo":"logo___R8PNJ","headerFixed":"headerFixed___1V7d4","menu":"menu___Km2Uo","actived":"actived___12Ff0","edu-menu":"edu-menu___2hxbr","newslight":"newslight___jwZR3","classromediv":"classromediv___Cjpgf","glow":"glow___3Nuu5","spandiv":"spandiv___3YPu8","dropLi":"dropLi___3Pxqf","dropDown":"dropDown___3Phxo","dropDownItem":"dropDownItem___1KkeO"};
|
||
|
||
/***/ }),
|
||
|
||
/***/ "y8nQ":
|
||
/*!**************************************************!*\
|
||
!*** ./node_modules/antd/es/form/style/index.js ***!
|
||
\**************************************************/
|
||
/*! no exports provided */
|
||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
||
"use strict";
|
||
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "cIOH");
|
||
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
|
||
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "gwTy");
|
||
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
|
||
/* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "1GLa");
|
||
|
||
// style dependencies
|
||
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ "yslc":
|
||
/*!*********************************************!*\
|
||
!*** ./src/assets/images/icons/groups3.png ***!
|
||
\*********************************************/
|
||
/*! no static exports found */
|
||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||
/***/ (function(module, exports) {
|
||
|
||
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgK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