build/p__Competitions__Entered.cd...

5112 lines
201 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{
/***/ "/ezw":
/*!************************************************************!*\
!*** ./node_modules/antd/es/skeleton/index.js + 8 modules ***!
\************************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! 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/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/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/omit.js/es/index.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/defineProperty.js
var defineProperty = __webpack_require__("lSNA");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
// 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/typeof.js
var helpers_typeof = __webpack_require__("cDf5");
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
// 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);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Title.js
/* eslint-disable jsx-a11y/heading-has-content */
var Title_Title = function Title(_ref) {
var prefixCls = _ref.prefixCls,
className = _ref.className,
width = _ref.width,
style = _ref.style;
return /*#__PURE__*/react["createElement"]("h3", {
className: classnames_default()(prefixCls, className),
style: extends_default()({
width: width
}, style)
});
};
/* harmony default export */ var skeleton_Title = (Title_Title);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__("RIqP");
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Paragraph.js
var Paragraph_Paragraph = function Paragraph(props) {
var getWidth = function getWidth(index) {
var width = props.width,
_props$rows = props.rows,
rows = _props$rows === void 0 ? 2 : _props$rows;
if (Array.isArray(width)) {
return width[index];
} // last paragraph
if (rows - 1 === index) {
return width;
}
return undefined;
};
var prefixCls = props.prefixCls,
className = props.className,
style = props.style,
rows = props.rows;
var rowList = toConsumableArray_default()(Array(rows)).map(function (_, index) {
return (
/*#__PURE__*/
// eslint-disable-next-line react/no-array-index-key
react["createElement"]("li", {
key: index,
style: {
width: getWidth(index)
}
})
);
});
return /*#__PURE__*/react["createElement"]("ul", {
className: classnames_default()(prefixCls, className),
style: style
}, rowList);
};
/* harmony default export */ var skeleton_Paragraph = (Paragraph_Paragraph);
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js + 1 modules
var context = __webpack_require__("H84U");
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Element.js
var Element_Element = function Element(props) {
var _classNames, _classNames2;
var prefixCls = props.prefixCls,
className = props.className,
style = props.style,
size = props.size,
shape = props.shape;
var sizeCls = classnames_default()((_classNames = {}, defineProperty_default()(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), defineProperty_default()(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _classNames));
var shapeCls = classnames_default()((_classNames2 = {}, defineProperty_default()(_classNames2, "".concat(prefixCls, "-circle"), shape === 'circle'), defineProperty_default()(_classNames2, "".concat(prefixCls, "-square"), shape === 'square'), defineProperty_default()(_classNames2, "".concat(prefixCls, "-round"), shape === 'round'), _classNames2));
var sizeStyle = typeof size === 'number' ? {
width: size,
height: size,
lineHeight: "".concat(size, "px")
} : {};
return /*#__PURE__*/react["createElement"]("span", {
className: classnames_default()(prefixCls, className, sizeCls, shapeCls),
style: extends_default()(extends_default()({}, sizeStyle), style)
});
};
/* harmony default export */ var skeleton_Element = (Element_Element);
// EXTERNAL MODULE: ./node_modules/omit.js/es/index.js
var es = __webpack_require__("BGR+");
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Avatar.js
var Avatar_SkeletonAvatar = function SkeletonAvatar(props) {
var renderSkeletonAvatar = function renderSkeletonAvatar(_ref) {
var getPrefixCls = _ref.getPrefixCls;
var customizePrefixCls = props.prefixCls,
className = props.className,
active = props.active;
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
var otherProps = Object(es["a" /* default */])(props, ['prefixCls']);
var cls = classnames_default()(prefixCls, className, "".concat(prefixCls, "-element"), defineProperty_default()({}, "".concat(prefixCls, "-active"), active));
return /*#__PURE__*/react["createElement"]("div", {
className: cls
}, /*#__PURE__*/react["createElement"](skeleton_Element, extends_default()({
prefixCls: "".concat(prefixCls, "-avatar")
}, otherProps)));
};
return /*#__PURE__*/react["createElement"](context["a" /* ConfigConsumer */], null, renderSkeletonAvatar);
};
Avatar_SkeletonAvatar.defaultProps = {
size: 'default',
shape: 'circle'
};
/* harmony default export */ var Avatar = (Avatar_SkeletonAvatar);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Button.js
var Button_SkeletonButton = function SkeletonButton(props) {
var renderSkeletonButton = function renderSkeletonButton(_ref) {
var getPrefixCls = _ref.getPrefixCls;
var customizePrefixCls = props.prefixCls,
className = props.className,
active = props.active;
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
var otherProps = Object(es["a" /* default */])(props, ['prefixCls']);
var cls = classnames_default()(prefixCls, className, "".concat(prefixCls, "-element"), defineProperty_default()({}, "".concat(prefixCls, "-active"), active));
return /*#__PURE__*/react["createElement"]("div", {
className: cls
}, /*#__PURE__*/react["createElement"](skeleton_Element, extends_default()({
prefixCls: "".concat(prefixCls, "-button")
}, otherProps)));
};
return /*#__PURE__*/react["createElement"](context["a" /* ConfigConsumer */], null, renderSkeletonButton);
};
Button_SkeletonButton.defaultProps = {
size: 'default'
};
/* harmony default export */ var Button = (Button_SkeletonButton);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Input.js
var Input_SkeletonInput = function SkeletonInput(props) {
var renderSkeletonInput = function renderSkeletonInput(_ref) {
var getPrefixCls = _ref.getPrefixCls;
var customizePrefixCls = props.prefixCls,
className = props.className,
active = props.active;
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
var otherProps = Object(es["a" /* default */])(props, ['prefixCls']);
var cls = classnames_default()(prefixCls, className, "".concat(prefixCls, "-element"), defineProperty_default()({}, "".concat(prefixCls, "-active"), active));
return /*#__PURE__*/react["createElement"]("div", {
className: cls
}, /*#__PURE__*/react["createElement"](skeleton_Element, extends_default()({
prefixCls: "".concat(prefixCls, "-input")
}, otherProps)));
};
return /*#__PURE__*/react["createElement"](context["a" /* ConfigConsumer */], null, renderSkeletonInput);
};
Input_SkeletonInput.defaultProps = {
size: 'default'
};
/* harmony default export */ var Input = (Input_SkeletonInput);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Image.js
var path = 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z';
var Image_SkeletonImage = function SkeletonImage(props) {
var renderSkeletonImage = function renderSkeletonImage(_ref) {
var getPrefixCls = _ref.getPrefixCls;
var customizePrefixCls = props.prefixCls,
className = props.className,
style = props.style;
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
var cls = classnames_default()(prefixCls, className, "".concat(prefixCls, "-element"));
return /*#__PURE__*/react["createElement"]("div", {
className: cls
}, /*#__PURE__*/react["createElement"]("div", {
className: classnames_default()("".concat(prefixCls, "-image"), className),
style: style
}, /*#__PURE__*/react["createElement"]("svg", {
viewBox: "0 0 1098 1024",
xmlns: "http://www.w3.org/2000/svg",
className: "".concat(prefixCls, "-image-svg")
}, /*#__PURE__*/react["createElement"]("path", {
d: path,
className: "".concat(prefixCls, "-image-path")
}))));
};
return /*#__PURE__*/react["createElement"](context["a" /* ConfigConsumer */], null, renderSkeletonImage);
};
/* harmony default export */ var Image = (Image_SkeletonImage);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Skeleton.js
function getComponentProps(prop) {
if (prop && typeof_default()(prop) === 'object') {
return prop;
}
return {};
}
function getAvatarBasicProps(hasTitle, hasParagraph) {
if (hasTitle && !hasParagraph) {
// Square avatar
return {
size: 'large',
shape: 'square'
};
}
return {
size: 'large',
shape: 'circle'
};
}
function getTitleBasicProps(hasAvatar, hasParagraph) {
if (!hasAvatar && hasParagraph) {
return {
width: '38%'
};
}
if (hasAvatar && hasParagraph) {
return {
width: '50%'
};
}
return {};
}
function getParagraphBasicProps(hasAvatar, hasTitle) {
var basicProps = {}; // Width
if (!hasAvatar || !hasTitle) {
basicProps.width = '61%';
} // Rows
if (!hasAvatar && hasTitle) {
basicProps.rows = 3;
} else {
basicProps.rows = 2;
}
return basicProps;
}
var Skeleton_Skeleton = function Skeleton(props) {
var renderSkeleton = function renderSkeleton(_ref) {
var getPrefixCls = _ref.getPrefixCls,
direction = _ref.direction;
var customizePrefixCls = props.prefixCls,
loading = props.loading,
className = props.className,
children = props.children,
avatar = props.avatar,
title = props.title,
paragraph = props.paragraph,
active = props.active,
round = props.round;
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
if (loading || !('loading' in props)) {
var _classNames;
var hasAvatar = !!avatar;
var hasTitle = !!title;
var hasParagraph = !!paragraph; // Avatar
var avatarNode;
if (hasAvatar) {
var avatarProps = extends_default()(extends_default()({
prefixCls: "".concat(prefixCls, "-avatar")
}, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar)); // We direct use SkeletonElement as avatar in skeleton internal.
avatarNode = /*#__PURE__*/react["createElement"]("div", {
className: "".concat(prefixCls, "-header")
}, /*#__PURE__*/react["createElement"](skeleton_Element, avatarProps));
}
var contentNode;
if (hasTitle || hasParagraph) {
// Title
var $title;
if (hasTitle) {
var titleProps = extends_default()(extends_default()({
prefixCls: "".concat(prefixCls, "-title")
}, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));
$title = /*#__PURE__*/react["createElement"](skeleton_Title, titleProps);
} // Paragraph
var paragraphNode;
if (hasParagraph) {
var paragraphProps = extends_default()(extends_default()({
prefixCls: "".concat(prefixCls, "-paragraph")
}, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));
paragraphNode = /*#__PURE__*/react["createElement"](skeleton_Paragraph, paragraphProps);
}
contentNode = /*#__PURE__*/react["createElement"]("div", {
className: "".concat(prefixCls, "-content")
}, $title, paragraphNode);
}
var cls = classnames_default()(prefixCls, className, (_classNames = {}, defineProperty_default()(_classNames, "".concat(prefixCls, "-with-avatar"), hasAvatar), defineProperty_default()(_classNames, "".concat(prefixCls, "-active"), active), defineProperty_default()(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_default()(_classNames, "".concat(prefixCls, "-round"), round), _classNames));
return /*#__PURE__*/react["createElement"]("div", {
className: cls
}, avatarNode, contentNode);
}
return children;
};
return /*#__PURE__*/react["createElement"](context["a" /* ConfigConsumer */], null, renderSkeleton);
};
Skeleton_Skeleton.defaultProps = {
avatar: false,
title: true,
paragraph: true
};
Skeleton_Skeleton.Button = Button;
Skeleton_Skeleton.Avatar = Avatar;
Skeleton_Skeleton.Input = Input;
Skeleton_Skeleton.Image = Image;
/* harmony default export */ var skeleton_Skeleton = (Skeleton_Skeleton);
// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/index.js
/* harmony default export */ var skeleton = __webpack_exports__["a"] = (skeleton_Skeleton);
/***/ }),
/***/ "0SVz":
/*!*****************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/success.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,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"
/***/ }),
/***/ "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": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, "name": "close", "theme": "outlined" };
/* harmony default export */ var asn_CloseOutlined = (CloseOutlined_CloseOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 5 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
}));
};
icons_CloseOutlined_CloseOutlined.displayName = 'CloseOutlined';
/* harmony default export */ var icons_CloseOutlined = __webpack_exports__["a"] = (/*#__PURE__*/react["forwardRef"](icons_CloseOutlined_CloseOutlined));
/***/ }),
/***/ "61Iv":
/*!*************************************************!*\
!*** ./src/pages/Competitions/Entered/xmtz.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/xmtz.e88619e3.png";
/***/ }),
/***/ "6VBw":
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 5 modules ***!
\******************************************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/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/rc-util/es/Dom/canUseDom.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/icons/node_modules/@ant-design/colors/dist/index.esm.js + 4 modules
var index_esm = __webpack_require__("u3cA");
// EXTERNAL MODULE: ./node_modules/rc-util/es/warning.js
var warning = __webpack_require__("Kwbf");
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/canUseDom.js
var canUseDom = __webpack_require__("MNnm");
// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/dynamicCSS.js
var MARK_KEY = "rc-util-key";
function getContainer(option) {
if (option.attachTo) {
return option.attachTo;
}
var head = document.querySelector('head');
return head || document.body;
}
function injectCSS(css) {
var _option$csp;
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (!Object(canUseDom["a" /* default */])()) {
return null;
}
var styleNode = document.createElement('style');
if ((_option$csp = option.csp) === null || _option$csp === void 0 ? void 0 : _option$csp.nonce) {
var _option$csp2;
styleNode.nonce = (_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce;
}
styleNode.innerHTML = css;
var container = getContainer(option);
var firstChild = container.firstChild;
if (option.prepend && container.prepend) {
// Use `prepend` first
container.prepend(styleNode);
} else if (option.prepend && firstChild) {
// Fallback to `insertBefore` like IE not support `prepend`
container.insertBefore(styleNode, firstChild);
} else {
container.appendChild(styleNode);
}
return styleNode;
}
var containerCache = new Map();
function updateCSS(css, key) {
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var container = getContainer(option); // Get real parent
if (!containerCache.has(container)) {
var placeholderStyle = injectCSS('', option);
var parentNode = placeholderStyle.parentNode;
containerCache.set(container, parentNode);
parentNode.removeChild(placeholderStyle);
}
var existNode = Array.from(containerCache.get(container).children).find(function (node) {
return node.tagName === 'STYLE' && node[MARK_KEY] === key;
});
if (existNode) {
var _option$csp3, _option$csp4;
if (((_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce) && existNode.nonce !== ((_option$csp4 = option.csp) === null || _option$csp4 === void 0 ? void 0 : _option$csp4.nonce)) {
var _option$csp5;
existNode.nonce = (_option$csp5 = option.csp) === null || _option$csp5 === void 0 ? void 0 : _option$csp5.nonce;
}
if (existNode.innerHTML !== css) {
existNode.innerHTML = css;
}
return existNode;
}
var newNode = injectCSS(css, option);
newNode[MARK_KEY] = key;
return newNode;
}
// 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:
acc[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-block;\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 () {
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 _classNames;
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;
var classString = classnames_default()(prefixCls, (_classNames = {}, Object(defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), Object(defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), 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);
/***/ }),
/***/ "AOa7":
/*!**********************************************************!*\
!*** ./node_modules/antd/es/breadcrumb/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
/***/ }),
/***/ "Hm3h":
/*!***************************************************************!*\
!*** ./src/pages/Competitions/Entered/index.tsx + 16 modules ***!
\***************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/components/AntdIcon.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/preset-built-in/node_modules/react-router-dom/esm/react-router-dom.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/preset-built-in/node_modules/react-router/esm/react-router.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/breadcrumb/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/breadcrumb/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/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/empty/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/empty/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/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/pagination/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/skeleton/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/skeleton/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/.umi-production/core/umiExports.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/AuthenticationModel/index.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/components/PhoneModal.tsx */
/*! 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/js-base64/base64.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/index.less?modules (<- 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 ./src/pages/Competitions/Entered/Enteredmodel/success.png (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/Ncode.jpg (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/dmpz.png (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/sjjx.png (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/xmcx.png (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Competitions/Entered/xmtz.png (<- 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/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/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/skeleton/style/index.js
var skeleton_style = __webpack_require__("cWXX");
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 8 modules
var skeleton = __webpack_require__("/ezw");
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/style/index.js
var pagination_style = __webpack_require__("DjyN");
// EXTERNAL MODULE: ./node_modules/antd/es/pagination/index.js + 7 modules
var pagination = __webpack_require__("NUBc");
// EXTERNAL MODULE: ./node_modules/antd/es/breadcrumb/style/index.js
var breadcrumb_style = __webpack_require__("sPJy");
// EXTERNAL MODULE: ./node_modules/antd/es/breadcrumb/index.js + 3 modules
var breadcrumb = __webpack_require__("bE4q");
// 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 message = __webpack_require__("tsqr");
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__("c1Ei");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("5Tp6");
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__("k16G");
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
var objectWithoutProperties = __webpack_require__("SIvP");
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__("q1tI");
var react_default = /*#__PURE__*/__webpack_require__.n(react);
// EXTERNAL MODULE: ./node_modules/@umijs/preset-built-in/node_modules/react-router/esm/react-router.js
var react_router = __webpack_require__("WHYC");
// EXTERNAL MODULE: ./node_modules/@umijs/preset-built-in/node_modules/react-router-dom/esm/react-router-dom.js
var react_router_dom = __webpack_require__("uYtH");
// EXTERNAL MODULE: ./src/.umi-production/core/umiExports.ts + 19 modules
var umiExports = __webpack_require__("9kvl");
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/index.less?modules
var Enteredmodules = __webpack_require__("ipgu");
var Enteredmodules_default = /*#__PURE__*/__webpack_require__.n(Enteredmodules);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Ncode.jpg
var Ncode = __webpack_require__("jWHs");
var Ncode_default = /*#__PURE__*/__webpack_require__.n(Ncode);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Assembly/Assembly.tsx
//报名首页
function Assembly(_ref) {
var setIsAddmodel = _ref.setIsAddmodel,
setJoin = _ref.setJoin,
HeaderDetail = _ref.HeaderDetail,
user = _ref.user,
dispatch = _ref.dispatch;
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.backgroundimg
}, /*#__PURE__*/react_default.a.createElement("p", {
className: Enteredmodules_default.a.countsize
}, "\u6B22\u8FCE\u62A5\u540D\u53C2\u52A0\u672C\u9879\u8D5B\u4E8B\uFF01\u5934\u6B4C\u5168\u9762\u652F\u6301\u5404\u7C7B\u7ADE\u8D5B\u7684\u5728\u7EBF\u8FD0\u884C\u7BA1\u7406\uFF0C"), /*#__PURE__*/react_default.a.createElement("p", {
className: Enteredmodules_default.a.countsize
}, "\u5927\u6570\u636E\u3001\u4EBA\u5DE5\u667A\u80FD\u3001\u5404\u7C7B\u82AF\u7247\u67B6\u6784\u7B49\u7ADE\u8D5B\u4EFB\u52A1\u5747\u53EF\u5728\u7EBF\u8FD0\u884C\u3001\u90E8\u7F72\u548C\u8BC4\u6D4B\u3002"), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.buttoncoent
}, /*#__PURE__*/react_default.a.createElement("span", {
onClick: function onClick() {
var _user$userInfo;
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_authentication) && !(user === null || user === void 0 ? void 0 : (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.authentication)) {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth'
}
});
return;
}
setJoin(true);
},
className: Enteredmodules_default.a.addteams
}, "\u52A0\u5165\u6218\u961F"), /*#__PURE__*/react_default.a.createElement("span", {
onClick: function onClick() {
var _user$userInfo2;
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_authentication) && !(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.authentication)) {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth'
}
});
return;
}
setIsAddmodel(true);
},
className: Enteredmodules_default.a.createteams
}, "\u521B\u5EFA\u6218\u961F")), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.code
}, /*#__PURE__*/react_default.a.createElement("p", null, "\u4F5C\u54C1\u6307\u5BFC\u5F20\u8001\u5E08\u5FAE\u4FE1"), /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("img", {
width: 90,
height: 90,
src: Ncode_default.a
}))));
}
/* harmony default export */ var Assembly_Assembly = (Assembly);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx
var Addteams = __webpack_require__("qHvr");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Assembly/TeamsNota.tsx
//没有数据时显示
function Nulldata(_ref) {
var setIsAddmodel = _ref.setIsAddmodel,
setJoin = _ref.setJoin,
HeaderDetail = _ref.HeaderDetail,
user = _ref.user,
dispatch = _ref.dispatch;
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.nullnodata
}, /*#__PURE__*/react_default.a.createElement("img", {
src: __webpack_require__(/*! @/assets/images/Noentry.jpg */ "w3kr")
}), /*#__PURE__*/react_default.a.createElement("p", {
style: {
fontSize: '16px',
color: '#333333'
},
className: "bootomtext"
}, "\u60A8\u5F53\u524D\u672A\u62A5\u540D\uFF0C\u8BF7\u5148", /*#__PURE__*/react_default.a.createElement("span", {
onClick: function onClick() {
var _user$userInfo;
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_authentication) && !(user === null || user === void 0 ? void 0 : (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.authentication)) {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth'
}
});
return;
}
setJoin(true);
},
style: {
color: '#1890FF',
cursor: "pointer"
}
}, "\u52A0\u5165\u6218\u961F"), "\u6216", /*#__PURE__*/react_default.a.createElement("span", {
onClick: function onClick() {
var _user$userInfo2;
if ((HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_authentication) && !(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.authentication)) {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {
key: 'Banner-Auth'
}
});
return;
}
setIsAddmodel(true);
},
style: {
color: '#1890FF',
cursor: "pointer"
}
}, "\u521B\u5EFA\u6218\u961F"), "\uFF0C"), /*#__PURE__*/react_default.a.createElement("p", {
style: {
fontSize: '16px',
color: '#333333'
}
}, "\u52A0\u5165/\u521B\u5EFA\u6218\u961F\u540E\u5C06\u81EA\u52A8\u62A5\u540D"));
}
/* harmony default export */ var TeamsNota = (Nulldata);
// 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 + 14 modules
var input = __webpack_require__("5rEg");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Assembly/SelectTeam.tsx
//搜索
var Search = input["a" /* default */].Search;
function SelectTeam(_ref) {
var Count = _ref.Count,
Members_count = _ref.Members_count,
selectlist = _ref.selectlist,
setIsselect = _ref.setIsselect;
var _useState = Object(react["useState"])(''),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
keywords = _useState2[0],
setKeyWords = _useState2[1];
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.searchhead
}, /*#__PURE__*/react_default.a.createElement("p", {
className: Enteredmodules_default.a.selectleft
}, "\u6218\u961F\u603B\u6570\uFF1A", /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: "#459BE5",
fontSize: "16px"
}
}, Count), /*#__PURE__*/react_default.a.createElement("span", {
style: {
marginLeft: "5px",
marginRight: "15px"
}
}, "\u4E2A"), " \u53C2\u8D5B\u603B\u4EBA\u6570\uFF1A", /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: "#459BE5"
}
}, Members_count), /*#__PURE__*/react_default.a.createElement("span", {
style: {
marginLeft: '5px'
}
}, "\u4EBA")), /*#__PURE__*/react_default.a.createElement(Search, {
className: Enteredmodules_default.a.packinputs,
value: keywords,
placeholder: "\u8BF7\u8F93\u5165\u6218\u961F\u540D\u79F0\u641C\u7D22",
allowClear: true,
onChange: function onChange(e) {
setKeyWords(e.target.value);
},
onSearch: function onSearch(value) {
setIsselect(true);
selectlist(keywords);
} // onPressEnter={}
}));
}
/* harmony default export */ var Assembly_SelectTeam = (SelectTeam);
// 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/tooltip/style/index.js
var tooltip_style = __webpack_require__("5Dmo");
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 5 modules
var tooltip = __webpack_require__("3S7+");
// 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: ./src/utils/env.ts + 1 modules
var env = __webpack_require__("m3rI");
// 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/FormOutlined.js
// This icon file is generated automatically.
var FormOutlined_FormOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, "name": "form", "theme": "outlined" };
/* harmony default export */ var asn_FormOutlined = (FormOutlined_FormOutlined);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 5 modules
var AntdIcon = __webpack_require__("6VBw");
// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/FormOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var icons_FormOutlined_FormOutlined = function FormOutlined(props, ref) {
return /*#__PURE__*/react["createElement"](AntdIcon["a" /* default */], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, {
ref: ref,
icon: asn_FormOutlined
}));
};
icons_FormOutlined_FormOutlined.displayName = 'FormOutlined';
/* harmony default export */ var icons_FormOutlined = (/*#__PURE__*/react["forwardRef"](icons_FormOutlined_FormOutlined));
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Assembly/ManagedTeams.tsx
//管理的战队
function managed(_ref) {
var item = _ref.item,
identifier = _ref.identifier,
isTipsshow = _ref.isTipsshow,
type = _ref.type,
setIslookModel = _ref.setIslookModel,
setTeam = _ref.setTeam,
setMembers = _ref.setMembers,
mode = _ref.mode,
kylinIdFlag = _ref.kylinIdFlag;
function jsCopy() {
var aa = "copy_invite_code".concat(item.id);
var e = document.getElementById(aa);
e.select();
document.execCommand("Copy");
message["b" /* default */].success("复制成功");
}
function isSetting() {
setTeam(item);
if (type === 1) {
setMembers(true);
} else {
setIslookModel(true);
}
}
var mentItem = function mentItem() {
return /*#__PURE__*/react_default.a.createElement(menu["a" /* default */], null, /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, {
onClick: function onClick() {
return isTipsshow(type, item.id);
}
}, type === 1 ? '删除战队' : '退出战队'));
};
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.ManagedTeams
}, /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width18
}, item && item.team_log ? /*#__PURE__*/react_default.a.createElement("img", {
className: Enteredmodules_default.a.imageradius,
src: env["a" /* default */].IMG_SERVER + "/".concat(item.team_log)
}) : /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.spanradius
}, item.name.length > 2 ? item.name.substring(0, 2) : item.name), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.nametitle,
title: item.name
}, item.name ? item.name.length > 6 ? item.name.substring(0, 6) + '...' : item.name : '--'), type === 1 ? /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
to: "/competitions/index/".concat(identifier, "/UpdateTeanname/").concat(item.id)
}, /*#__PURE__*/react_default.a.createElement(tooltip["a" /* default */], {
overlayStyle: {
zIndex: 1
},
defaultVisible: true,
placement: "top",
visible: item && item.auto_create,
autoAdjustOverflow: false,
title: "请修改战队名称"
}, /*#__PURE__*/react_default.a.createElement(icons_FormOutlined, {
style: {
marginLeft: '5px'
}
}))) : null), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width15,
style: {
justifyContent: 'center'
}
}, /*#__PURE__*/react_default.a.createElement("img", {
className: Enteredmodules_default.a.loaderimg,
src: env["a" /* default */].IMG_SERVER + "/images/" + "".concat(item.creator.image_url)
}), /*#__PURE__*/react_default.a.createElement("span", {
style: {
marginLeft: '13px'
},
title: item.creator.name
}, item.creator.name.length > 3 ? item.creator.name.substring(0, 3) + '...' : item.creator.name)), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width15,
style: {
width: '10%'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
title: item.school_name
}, item.school_name ? item.school_name.length > 6 ? item.school_name.substring(0, 6) + '...' : item.school_name : '--')), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width18,
style: {
width: '20%'
}
}, "\u521B\u5EFA\u65F6\u95F4\uFF1A", /*#__PURE__*/react_default.a.createElement("span", {
title: item.created_at
}, item.created_at || '--')), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width15
}, "\u9080\u8BF7\u7801\uFF1A", /*#__PURE__*/react_default.a.createElement("span", {
title: item.invite_code
}, item.invite_code || '--'), /*#__PURE__*/react_default.a.createElement("i", {
className: "iconfont icon-fuzhi font-14",
onClick: jsCopy,
style: {
display: "inline-block",
color: '#1890FF',
marginLeft: "5px",
marginRight: "10px",
cursor: 'pointer'
}
}), /*#__PURE__*/react_default.a.createElement("input", {
id: "copy_invite_code" + item.id,
value: item.invite_code || '--',
onChange: function onChange(e) {},
style: {
opacity: '0',
position: 'absolute',
bottom: "15px"
}
})), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width15,
style: {
justifyContent: 'flex-end'
}
}, /*#__PURE__*/react_default.a.createElement("span", null, "\u6218\u961F\u6210\u5458\uFF1A", /*#__PURE__*/react_default.a.createElement("span", null, item.team_members ? item.team_members.length : '--')), type === 2 || !kylinIdFlag ? /*#__PURE__*/react_default.a.createElement("span", {
onClick: function onClick() {
return isSetting();
},
style: {
color: '#1890FF',
marginLeft: '10px',
cursor: 'pointer'
}
}, type === 1 ? '设置' : '查看') : "", item && item.active || type === 2 ? /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.borderjingao,
style: {
visibility: 'hidden'
}
}) : /*#__PURE__*/react_default.a.createElement(tooltip["a" /* default */], {
placement: "top",
title: "请设置战队成员"
}, /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.borderjingao
}, "!"))), mode === 3 && /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
to: "/competitions/index/".concat(identifier, "/teamDetail/").concat(item.id),
style: {
color: "#1890FF",
fontSize: '14px',
marginLeft: '30px',
cursor: 'pointer',
width: '6%'
}
}, "\u6218\u961F\u8BE6\u60C5"), /*#__PURE__*/react_default.a.createElement(dropdown["a" /* default */], {
overlay: mentItem
}, /*#__PURE__*/react_default.a.createElement("i", {
style: {
marginLeft: '30px'
},
className: "iconfont icon-sandian"
})));
}
/* harmony default export */ var Assembly_ManagedTeams = (managed);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Assembly/AllTeams.tsx
//管理的战队
function AllTeams(_ref) {
var item = _ref.item,
setIslookModel = _ref.setIslookModel,
setTeam = _ref.setTeam,
mode = _ref.mode;
var _useParams = Object(react_router["l" /* useParams */])(),
identifier = _useParams.identifier;
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.ManagedTeams
}, /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width20
}, item && item.team_log ? /*#__PURE__*/react_default.a.createElement("img", {
className: Enteredmodules_default.a.imageradius,
src: env["a" /* default */].IMG_SERVER + "/".concat(item.team_log)
}) : /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.spanradius
}, item.name.length > 2 ? item.name.substring(0, 2) : item.name), /*#__PURE__*/react_default.a.createElement("span", {
title: item.name,
className: Enteredmodules_default.a.nametitle
}, item.name ? item.name.length > 6 ? item.name.substring(0, 6) + '...' : item.name : '--')), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width20
}, /*#__PURE__*/react_default.a.createElement("img", {
className: Enteredmodules_default.a.loaderimg,
src: env["a" /* default */].IMG_SERVER + "/images/" + "".concat(item.creator.image_url)
}), /*#__PURE__*/react_default.a.createElement("span", {
title: item.creator.name,
style: {
marginLeft: '13px'
}
}, item.creator.name.length > 3 ? item.creator.name.substring(0, 3) + '...' : item.creator.name)), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width20
}, /*#__PURE__*/react_default.a.createElement("span", {
title: item.school_name
}, item.school_name ? item.school_name.length > 6 ? item.school_name.substring(0, 6) + '...' : item.school_name : '--')), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width20
}, "\u521B\u5EFA\u65F6\u95F4\uFF1A", /*#__PURE__*/react_default.a.createElement("span", null, item.created_at || '--')), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.width20,
style: {
justifyContent: 'flex-end'
}
}, /*#__PURE__*/react_default.a.createElement("span", null, "\u6218\u961F\u6210\u5458\uFF1A", /*#__PURE__*/react_default.a.createElement("span", null, item.team_members ? item.team_members.length : '--')), /*#__PURE__*/react_default.a.createElement("span", {
onClick: function onClick() {
setIslookModel(true);
setTeam(item);
},
style: {
color: '#1890FF',
marginLeft: '15px',
cursor: 'pointer'
}
}, "\u67E5\u770B")), mode === 3 && /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
to: "/competitions/index/".concat(identifier, "/teamDetail/").concat(item.id),
style: {
color: "#1890FF",
fontSize: '14px',
marginLeft: '30px',
cursor: 'pointer',
width: '10%'
}
}, "\u6218\u961F\u8BE6\u60C5"));
}
/* harmony default export */ var Assembly_AllTeams = (AllTeams);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/LookItem.tsx
function LookItem(_ref) {
var teamitem = _ref.teamitem;
return /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("div", {
style: {
display: 'flex',
alignItems: 'center',
flexDirection: 'initial',
height: '37px',
background: '#fff',
marginTop: '3px',
padding: '0px 15px'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, /*#__PURE__*/react_default.a.createElement("img", {
className: Enteredmodules_default.a.loaderimg,
src: env["a" /* default */].IMG_SERVER + "/images/" + "".concat(teamitem.image_url)
})), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, teamitem && teamitem.name.length > 6 ? teamitem.name.substring(0, 6) + '...' : teamitem.name), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
}
}, teamitem && teamitem.phone || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
}
}, teamitem && teamitem.school_name.length > 6 ? teamitem.school_name.substring(0, 6) + '...' : teamitem.school_name || '- - '), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, teamitem && teamitem.identity || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
},
className: "task-hide"
}, teamitem && teamitem.student_id || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2',
color: teamitem && teamitem.role === "leader" ? '#1890FF' : '#2ABD8C',
fontSize: '14px'
}
}, teamitem && teamitem.role === "leader" ? '队长' : '队员', /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: '#F3730C'
}
}, teamitem && teamitem.creator ? '(创建者)' : ''))));
}
/* harmony default export */ var Enteredmodel_LookItem = (LookItem);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__("4i/N");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/LookTeamsModel.tsx
//查看战队
function LookTeam(_ref) {
var islookmodel = _ref.islookmodel,
mydatas = _ref.mydatas,
setIslookModel = _ref.setIslookModel;
return /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
centered: true,
title: /*#__PURE__*/react_default.a.createElement("div", {
style: {
alignItems: 'center',
display: 'flex'
}
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
textAlign: 'left',
flex: '1'
}
}, mydatas.name), /*#__PURE__*/react_default.a.createElement(CloseOutlined["a" /* default */], {
onClick: function onClick() {
return setIslookModel(false);
},
style: {
cursor: 'porint'
}
})),
visible: islookmodel,
closable: false,
destroyOnClose: true,
footer: null,
width: 900
}, /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("div", {
style: {
display: 'flex',
alignItems: 'center',
flexDirection: 'initial',
height: '37px',
background: '#FAFAFA',
padding: '0px 15px'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "\u5934\u50CF"), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "\u59D3\u540D"), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
}
}, "\u624B\u673A"), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
}
}, "\u5B66\u6821/\u5355\u4F4D"), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "\u804C\u4E1A"), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
}
}, "\u5B66\u53F7"), /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '2'
}
}, "\u89D2\u8272"))), mydatas && mydatas.team_members && mydatas.team_members.map(function (item, index) {
return /*#__PURE__*/react_default.a.createElement(Enteredmodel_LookItem, {
key: index,
teamitem: item
});
}));
}
/* harmony default export */ var LookTeamsModel = (LookTeam);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/TipsModel.tsx
//提示语
//状态 登录1 删除2
function Tips(_ref) {
var title = _ref.title,
content = _ref.content,
Tipsmodel = _ref.Tipsmodel,
setTipsmodel = _ref.setTipsmodel,
TipsSubmit = _ref.TipsSubmit,
TipsType = _ref.TipsType;
return /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
centered: true,
title: /*#__PURE__*/react_default.a.createElement("div", {
style: {
alignItems: 'center',
display: 'flex'
}
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
textAlign: 'left',
flex: '1'
}
}, title), /*#__PURE__*/react_default.a.createElement(CloseOutlined["a" /* default */], {
onClick: function onClick() {
return setTipsmodel(false);
},
style: {
cursor: 'porint'
}
})),
visible: Tipsmodel,
closable: false,
destroyOnClose: true,
onCancel: function onCancel() {
return setTipsmodel(false);
},
onOk: function onOk() {
return TipsSubmit(TipsType);
}
}, content);
}
/* harmony default export */ var TipsModel = (Tips);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx
var JoinModel = __webpack_require__("UfjD");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/TeammemberTItle.tsx
function Teammember() {
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teammember
}, /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex1
}, "\u5934\u50CF"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex1
}, "\u59D3\u540D"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, "\u624B\u673A"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, "Email"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, "\u5B66\u6821/\u5355\u4F4D"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex1
}, "\u804C\u4E1A"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, "\u5B66\u53F7"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, "\u89D2\u8272"), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2,
style: {
textAlign: 'center'
}
}, "\u64CD\u4F5C"));
}
/* harmony default export */ var TeammemberTItle = (Teammember);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/Teammembers.tsx
function Teammembers_Teammember(_ref) {
var _teamitem$image_url;
var teamitem = _ref.teamitem,
index = _ref.index,
setTeams = _ref.setTeams,
Teams = _ref.Teams,
setLoaderid = _ref.setLoaderid;
var menuitem = function menuitem() {
return /*#__PURE__*/react_default.a.createElement(menu["a" /* default */], {
onClick: function onClick() {
setleader();
}
}, /*#__PURE__*/react_default.a.createElement(menu["a" /* default */].Item, {
key: "0"
}, /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("a", null, "\u8BBE\u7F6E\u4E3A\u961F\u957F"), /*#__PURE__*/react_default.a.createElement("p", null, "\u6743\u9650\uFF1A"), /*#__PURE__*/react_default.a.createElement("span", null, "\u7F16\u8F91\u6218\u961F\u3001\u8BBE\u7F6E\u6218\u961F\u6210\u5458\u3001 "), /*#__PURE__*/react_default.a.createElement("p", null, "\u8F6C\u79FB\u961F\u957F\u3001\u5220\u9664\u6218\u961F"))));
};
function setleader() {
var data = Teams;
var leaderindex = Teams && Teams.findIndex(function (item) {
return item.role === 'leader';
});
data[index].role = 'leader';
data[leaderindex].role = data && data[leaderindex].is_teacher ? 'teacher' : 'member'; //排序 规则为 队长永远只第一位 创建者只第二位
var datas = data.sort(function (item, item1) {
return item.creator ? -1 : 1;
}).sort(function (item, item1) {
return item.role === 'leader' ? -1 : 1;
});
setTeams(datas);
setLoaderid(teamitem.id);
}
function deleteitem() {
var data = Teams && Teams.filter(function (item) {
return item.id != teamitem.id;
});
setTeams(data);
}
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teammembers
}, /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex1
}, /*#__PURE__*/react_default.a.createElement("img", {
className: Enteredmodules_default.a.loaderimg,
src: "".concat(((_teamitem$image_url = teamitem.image_url) === null || _teamitem$image_url === void 0 ? void 0 : _teamitem$image_url.indexOf("http")) > -1 ? teamitem.image_url : env["a" /* default */].IMG_SERVER + "/images/" + teamitem.image_url)
})), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex1
}, teamitem && teamitem.name.length > 6 ? teamitem.name.substring(0, 6) + '...' : teamitem.name), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, teamitem && teamitem.phone || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, teamitem && teamitem.mail || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2
}, teamitem && teamitem.school_name.length > 6 ? teamitem.school_name.substring(0, 6) + '...' : teamitem.school_name || '- - '), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex1
}, teamitem && teamitem.identity || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
className: "".concat(Enteredmodules_default.a.flex2, " ").concat(Enteredmodules_default.a.task_hide)
}, teamitem && teamitem.student_id || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
className: Enteredmodules_default.a.flex2,
style: {
color: teamitem && teamitem.role === "leader" ? '#1890FF' : '#1890FF',
fontSize: '14px'
}
}, teamitem && teamitem.role === "leader" ? '队长' : '队员', /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: '#F3730C'
}
}, teamitem && teamitem.creator ? '(创建者)' : '')), /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.flex2
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: '#f73737'
},
onClick: function onClick() {
return deleteitem();
},
className: " ".concat(Enteredmodules_default.a.deleteitem)
}, teamitem && teamitem.role === "leader" || teamitem && teamitem.creator ? '' : '删除')));
}
/* harmony default export */ var Teammembers = (Teammembers_Teammember);
// EXTERNAL MODULE: ./node_modules/antd/es/empty/style/index.js
var empty_style = __webpack_require__("R9oj");
// EXTERNAL MODULE: ./node_modules/antd/es/empty/index.js + 2 modules
var empty = __webpack_require__("ECub");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/DownTeacher.tsx
//教师列表
function Downteacher(_ref) {
var teachers = _ref.teachers,
setTeams = _ref.setTeams,
Teams = _ref.Teams,
HeaderDetail = _ref.HeaderDetail;
var teacher = teachers.map(function (item, index) {
return /*#__PURE__*/react_default.a.createElement("div", {
key: index,
className: Enteredmodules_default.a.teachname,
onMouseDown: function onMouseDown() {
if (!(item === null || item === void 0 ? void 0 : item.authentication) && (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_authentication)) {
message["b" /* default */].info('当前竞赛需要实名认证,该用户未进行实名认证不能参与。');
return;
}
if (item.enrolled) {
message["b" /* default */].info('该用户已经加入战队');
return;
}
if ((Teams === null || Teams === void 0 ? void 0 : Teams.filter(function (team) {
return item.id === team.id;
}).length) > 0) {
message["b" /* default */].info('该用户已在战队列表,请不要重复添加');
return;
}
var teachers = Teams;
teachers.push(item);
setTeams(teachers);
}
}, /*#__PURE__*/react_default.a.createElement("img", {
style: {
marginLeft: '10px',
marginRight: '3px'
},
className: Enteredmodules_default.a.loaderimg,
src: "".concat(item.image_url)
}), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '20%',
padding: '0px 5px'
}
}, item.name || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '18%',
padding: '0px 5px'
}
}, item.phone || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '18%',
padding: '0px 5px'
},
className: Enteredmodules_default.a.task_hide
}, item.identity || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '20%',
padding: '0px 5px'
}
}, item.school_name || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '24%',
color: item.enrolled ? '#28be6c' : !item.enrolled && item.enrollable === false ? '#F3730C' : '',
padding: '0px 5px',
fontSize: '12px'
}
}, item.enrolled ? '已加入本战队' : !item.enrolled && item.enrollable === false ? '已加入其他战队' : ''));
});
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teacherdown
}, teachers.length === 0 ? /*#__PURE__*/react_default.a.createElement(empty["a" /* default */], {
description: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("p", null, "\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A"), /*#__PURE__*/react_default.a.createElement("p", null, "\u6210\u529F\u6CE8\u518C\u540E\u7684\u8D26\u53F7\uFF08\u804C\u4E1A\u4E3A\u8001\u5E08\uFF09"), /*#__PURE__*/react_default.a.createElement("p", null, "\u624D\u80FD\u88AB\u641C\u7D22\u5230\u54E6~")),
image: empty["a" /* default */].PRESENTED_IMAGE_SIMPLE
}) : /*#__PURE__*/react_default.a.createElement("div", null, teacher));
}
/* harmony default export */ var DownTeacher = (Downteacher);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/DownStudents.tsx
//教师列表
function DownStudent(_ref) {
var students = _ref.students,
setTeams = _ref.setTeams,
Teams = _ref.Teams,
HeaderDetail = _ref.HeaderDetail;
var teacher = students.map(function (item, index) {
return /*#__PURE__*/react_default.a.createElement("div", {
key: index,
className: Enteredmodules_default.a.teachname,
onMouseDown: function onMouseDown() {
if (!(item === null || item === void 0 ? void 0 : item.authentication) && (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.is_authentication)) {
message["b" /* default */].info('当前竞赛需要实名认证,该用户未进行实名认证不能参与。');
return;
}
if (item.enrolled) {
message["b" /* default */].info('该用户已经加入战队');
return;
}
if ((Teams === null || Teams === void 0 ? void 0 : Teams.filter(function (team) {
return item.id === team.id;
}).length) > 0) {
message["b" /* default */].info('该用户已在战队列表,请不要重复添加');
return;
} // console.log('students',Teams,item);
// return
var students = Teams;
students.push(item);
setTeams(students);
}
}, /*#__PURE__*/react_default.a.createElement("img", {
style: {
marginLeft: '10px',
marginRight: '3px'
},
className: Enteredmodules_default.a.loaderimg,
src: "".concat(item.image_url)
}), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '20%',
padding: '0px 5px'
}
}, item.name || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '18%',
padding: '0px 5px'
}
}, item.phone || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '18%',
padding: '0px 5px'
},
className: Enteredmodules_default.a.task_hide
}, item.student_id ? '学号' + item.student_id : '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '20%',
padding: '0px 5px'
}
}, item.school_name || '- -'), /*#__PURE__*/react_default.a.createElement("span", {
style: {
textAlign: 'left',
width: '24%',
color: item.enrolled ? '#28be6c' : !item.enrolled && item.enrollable === false ? '#F3730C' : '',
padding: '0px 5px',
fontSize: '12px'
}
}, item.enrolled ? '已加入本战队' : !item.enrolled && item.enrollable === false ? '已加入其他战队' : ''));
});
return /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teacherdown
}, students.length === 0 ? /*#__PURE__*/react_default.a.createElement(empty["a" /* default */], {
description: /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("p", null, "\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A"), /*#__PURE__*/react_default.a.createElement("p", null, "\u6210\u529F\u6CE8\u518C\u540E\u7684\u8D26\u53F7\uFF08\u804C\u4E1A\u4E3A\u5B66\u751F\uFF09"), /*#__PURE__*/react_default.a.createElement("p", null, "\u624D\u80FD\u88AB\u641C\u7D22\u5230\u54E6~")),
image: empty["a" /* default */].PRESENTED_IMAGE_SIMPLE
}) : /*#__PURE__*/react_default.a.createElement("div", null, teacher));
}
/* harmony default export */ var DownStudents = (DownStudent);
// EXTERNAL MODULE: ./node_modules/js-base64/base64.js
var base64 = __webpack_require__("J66h");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/SetmembersModel.tsx
var SetmembersModel_Search = input["a" /* default */].Search;
//设置战队成员
function Setmembers(_ref) {
var _StaffDetail$teacher_, _StaffDetail$teacher_2, _StaffDetail$member_s, _StaffDetail$member_s2;
var Membersshow = _ref.Membersshow,
setClose = _ref.setClose,
HeaderDetail = _ref.HeaderDetail,
StaffDetail = _ref.StaffDetail,
setMembers = _ref.setMembers,
dispatch = _ref.dispatch,
identifier = _ref.identifier,
mydatas = _ref.mydatas,
selectlist = _ref.selectlist;
var _useState = Object(react["useState"])(''),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
teachname = _useState2[0],
setTeachname = _useState2[1];
var _useState3 = Object(react["useState"])(''),
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
studentname = _useState4[0],
setStudentname = _useState4[1]; //搜索老师数据
var _useState5 = Object(react["useState"])([]),
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
teachers = _useState6[0],
setTeachers = _useState6[1];
var _useState7 = Object(react["useState"])(false),
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
downteacher = _useState8[0],
setDownteacher = _useState8[1]; //搜索学生数据
var _useState9 = Object(react["useState"])([]),
_useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
students = _useState10[0],
setStudents = _useState10[1];
var _useState11 = Object(react["useState"])(false),
_useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2),
downstudents = _useState12[0],
setDownstudents = _useState12[1]; //战队成员
var _useState13 = Object(react["useState"])([]),
_useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2),
Teams = _useState14[0],
setTeams = _useState14[1]; //队长id
var _useState15 = Object(react["useState"])([]),
_useState16 = Object(slicedToArray["a" /* default */])(_useState15, 2),
loaderid = _useState16[0],
setLoaderid = _useState16[1]; //提交时学生数量 与老师数量
var _useState17 = Object(react["useState"])([]),
_useState18 = Object(slicedToArray["a" /* default */])(_useState17, 2),
TeacherNumber = _useState18[0],
setTeacherNumber = _useState18[1];
var _useState19 = Object(react["useState"])([]),
_useState20 = Object(slicedToArray["a" /* default */])(_useState19, 2),
StudentNumber = _useState20[0],
setStudentNumber = _useState20[1]; //判断是否需要弹出警告
var _useState21 = Object(react["useState"])(false),
_useState22 = Object(slicedToArray["a" /* default */])(_useState21, 2),
isTwarning = _useState22[0],
setIsTwarning = _useState22[1];
var _useState23 = Object(react["useState"])(false),
_useState24 = Object(slicedToArray["a" /* default */])(_useState23, 2),
isSwarning = _useState24[0],
setIsSwarning = _useState24[1];
Object(react["useEffect"])(function () {
//排序 规则为 队长永远只第一位 创建者只第二位
var datas = mydatas && mydatas.team_members.sort(function (item, item1) {
return item.creator ? -1 : 1;
}).sort(function (item, item1) {
return item.role === 'leader' ? -1 : 1;
});
setTeams(datas);
}, []); //查找学生
function getStudents() {
return _getStudents.apply(this, arguments);
} //查找老师
function _getStudents() {
_getStudents = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
var data;
return regenerator_default.a.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'competitions/getStudents',
payload: {
identifier: identifier,
keyword: studentname,
team_id: mydatas && mydatas.id,
openkey: base64["Base64"].encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e"),
sign: "cdf0f69b4d5b4293f7914cc1f1f31742"
}
});
case 2:
data = _context.sent;
if (data) {
setStudents(data.teachers);
}
case 4:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return _getStudents.apply(this, arguments);
}
function getteacher() {
return _getteacher.apply(this, arguments);
} //提交数据
function _getteacher() {
_getteacher = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
var data;
return regenerator_default.a.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return dispatch({
type: 'competitions/getTeacher',
payload: {
openkey: base64["Base64"].encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e"),
sign: "cdf0f69b4d5b4293f7914cc1f1f31742",
identifier: identifier,
keyword: teachname,
team_id: mydatas && mydatas.id
}
});
case 2:
data = _context2.sent;
if (data) {
// console.log(data.teachers);
setTeachers(data.teachers);
}
case 4:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
return _getteacher.apply(this, arguments);
}
function submitTeam() {
return _submitTeam.apply(this, arguments);
}
function _submitTeam() {
_submitTeam = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
var _StaffDetail$teacher_3, _StaffDetail$member_s3;
var member_ids, teacher_ids, gitlink_users, data;
return regenerator_default.a.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
member_ids = [];
teacher_ids = [];
gitlink_users = [];
Teams && Teams.map(function (item, index) {
// if (item.is_teacher) {
// teacher_ids.push(item.id)
// } else {
// member_ids.push(item.id)
// }
gitlink_users.push({
login: item.login,
lastname: item.lastname,
nickname: item.nickname,
mail: item.mail,
identity: item.identity,
school_name: item.school_name
});
});
console.log("addTeam:", gitlink_users);
setTeacherNumber(teacher_ids.length);
setStudentNumber(member_ids.length);
if (!((StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$teacher_3 = StaffDetail.teacher_staff) === null || _StaffDetail$teacher_3 === void 0 ? void 0 : _StaffDetail$teacher_3.maximum) < teacher_ids.length)) {
_context3.next = 10;
break;
}
setIsTwarning(true);
return _context3.abrupt("return");
case 10:
setIsTwarning(false);
if (!((StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$member_s3 = StaffDetail.member_staff) === null || _StaffDetail$member_s3 === void 0 ? void 0 : _StaffDetail$member_s3.maximum) < member_ids.length)) {
_context3.next = 14;
break;
}
setIsSwarning(true);
return _context3.abrupt("return");
case 14:
setIsSwarning(false);
_context3.next = 17;
return dispatch({
type: 'competitions/SubmitTeam',
payload: {
openkey: base64["Base64"].encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e"),
sign: "cdf0f69b4d5b4293f7914cc1f1f31742",
identifier: identifier,
teamid: mydatas && mydatas.id,
member_ids: member_ids,
teacher_ids: teacher_ids,
leader: loaderid,
gitlink_users: gitlink_users
}
});
case 17:
data = _context3.sent;
if (data && data.status === 0) {
// console.log(data.teachers);
message["b" /* default */].info('修改成功');
setMembers(false);
selectlist('');
}
case 19:
case "end":
return _context3.stop();
}
}
}, _callee3);
}));
return _submitTeam.apply(this, arguments);
}
return /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
centered: true,
title: /*#__PURE__*/react_default.a.createElement("div", {
style: {
alignItems: 'center',
display: 'flex'
}
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
textAlign: 'left',
flex: '1'
}
}, "\u8BBE\u7F6E\u6218\u961F\u6210\u5458"), /*#__PURE__*/react_default.a.createElement(CloseOutlined["a" /* default */], {
onClick: function onClick() {
return setMembers(false);
},
style: {
cursor: 'porint'
}
})),
visible: Membersshow,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
submitTeam();
},
onCancel: function onCancel() {
setMembers(false);
setClose(); //selectlist('');
},
width: 900
}, /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.setmembers
}, /*#__PURE__*/react_default.a.createElement("p", null, "\u6DFB\u52A0\u6559\u5E08"), /*#__PURE__*/react_default.a.createElement(dropdown["a" /* default */], {
overlay: /*#__PURE__*/react_default.a.createElement(DownTeacher, {
HeaderDetail: HeaderDetail,
teachers: teachers,
setTeams: setTeams,
Teams: Teams
}),
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;
},
visible: downteacher
}, /*#__PURE__*/react_default.a.createElement(SetmembersModel_Search, {
value: teachname,
placeholder: "\u8BF7\u641C\u7D22\u6559\u5E08\u59D3\u540D/\u624B\u673A\u53F7\u5E76\u6DFB\u52A0",
allowClear: true,
onChange: function onChange(e) {
setTeachname(e.target.value);
},
onSearch: function onSearch(value) {
setDownteacher(true);
getteacher();
},
onBlur: function onBlur() {
setDownteacher(false);
}
})), /*#__PURE__*/react_default.a.createElement("p", null, "\u6DFB\u52A0\u5B66\u751F/\u4E13\u4E1A\u4EBA\u58EB"), /*#__PURE__*/react_default.a.createElement(dropdown["a" /* default */], {
overlay: /*#__PURE__*/react_default.a.createElement(DownStudents, {
HeaderDetail: HeaderDetail,
students: students,
setTeams: setTeams,
Teams: Teams
}),
getPopupContainer: function getPopupContainer(trigger) {
return trigger.parentNode;
},
visible: downstudents
}, /*#__PURE__*/react_default.a.createElement(SetmembersModel_Search, {
value: studentname,
placeholder: "\u8BF7\u641C\u7D22\u961F\u5458\u59D3\u540D/\u624B\u673A\u53F7\u5E76\u6DFB\u52A0",
allowClear: true,
onChange: function onChange(e) {
setStudentname(e.target.value);
},
onSearch: function onSearch(value) {
setDownstudents(true);
getStudents();
},
onBlur: function onBlur() {
setDownstudents(false);
}
})), /*#__PURE__*/react_default.a.createElement("div", {
style: {
display: 'flex',
marginBottom: '12px',
marginTop: '15px'
}
}, /*#__PURE__*/react_default.a.createElement("p", {
style: {
flex: '1'
}
}, "\u8BF7\u6DFB\u52A0\u6218\u961F\u6210\u5458\uFF1A", StaffDetail && StaffDetail.teacher_staff ? /*#__PURE__*/react_default.a.createElement("span", null, StaffDetail && StaffDetail.teacher_staff.minimum, "-", StaffDetail && StaffDetail.teacher_staff.maximum, "\u540D\u6559\u5E08") : '', StaffDetail && StaffDetail.teacher_staff && StaffDetail.member_staff ? '/' : '', StaffDetail && StaffDetail.member_staff ? /*#__PURE__*/react_default.a.createElement("span", null, StaffDetail && StaffDetail.member_staff.minimum, "-", StaffDetail && StaffDetail.member_staff.maximum, "\u540D\u5B66\u751F") : ''), /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: '#F3730C'
}
}, "\u5EFA\u8BAE\u4F18\u5148\u5C06\u6559\u5E08\u8BBE\u7F6E\u4E3A\u961F\u957F")), /*#__PURE__*/react_default.a.createElement(TeammemberTItle, null), /*#__PURE__*/react_default.a.createElement("div", {
style: {
height: '240px',
overflow: 'auto'
}
}, Teams && Teams.map(function (item, index) {
return /*#__PURE__*/react_default.a.createElement(Teammembers, {
key: index,
teamitem: item,
index: index,
setTeams: setTeams,
Teams: Teams,
setLoaderid: setLoaderid
});
})), isTwarning && /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginLeft: "53px",
color: "#D0021B",
fontSize: "12px",
marginTop: "9px"
}
}, "\u5BFC\u5E08\u9700\u4E3A", StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$teacher_ = StaffDetail.teacher_staff) === null || _StaffDetail$teacher_ === void 0 ? void 0 : _StaffDetail$teacher_.minimum, "-", StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$teacher_2 = StaffDetail.teacher_staff) === null || _StaffDetail$teacher_2 === void 0 ? void 0 : _StaffDetail$teacher_2.maximum, "\u4EBA,\u73B0\u4E3A", TeacherNumber, "\u4EBA"), isSwarning && /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginLeft: "53px",
color: "#D0021B",
fontSize: "12px",
marginTop: "9px"
}
}, "\u6218\u961F\u6210\u5458(\u804C\u4E1A\u4E3A\u5B66\u751F)\u9700\u4E3A", StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$member_s = StaffDetail.member_staff) === null || _StaffDetail$member_s === void 0 ? void 0 : _StaffDetail$member_s.minimum, "-", StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$member_s2 = StaffDetail.member_staff) === null || _StaffDetail$member_s2 === void 0 ? void 0 : _StaffDetail$member_s2.maximum, "\u4EBA,\u73B0\u4E3A", StudentNumber, "\u4EBA")));
}
/* harmony default export */ var SetmembersModel = (Setmembers);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/Enteredmodel/success.png
var success = __webpack_require__("0SVz");
var success_default = /*#__PURE__*/__webpack_require__.n(success);
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/Enteredmodel/SignUpSucessModel.tsx
//报名成功提示
function SignupSuccess(_ref) {
var isShowmodel = _ref.isShowmodel,
isSignUphide = _ref.isSignUphide;
var _useState = Object(react["useState"])([]),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
Object(react["useEffect"])(function () {
var data = JSON.parse(localStorage.getItem('item'));
setData(data);
}, []);
return /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
visible: isShowmodel,
footer: null,
centered: true,
onCancel: function onCancel() {
isSignUphide(false);
},
width: 600,
maskClosable: false
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
display: "flex",
alignItems: 'center'
}
}, /*#__PURE__*/react_default.a.createElement("img", {
src: success_default.a,
style: {
marginRight: '35px',
width: '60px',
height: '60px'
}
}), " ", /*#__PURE__*/react_default.a.createElement("span", {
style: {
fontSize: '24px',
color: '#333333'
}
}, "\u62A5\u540D\u6210\u529F")), /*#__PURE__*/react_default.a.createElement("div", {
style: {
marginLeft: '100px',
marginTop: '41px'
}
}, /*#__PURE__*/react_default.a.createElement("p", {
className: "task-hide"
}, "\u606D\u559C\u4F60\u6210\u529F\u62A5\u540D\uFF1A", /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: "#333333"
}
}, data === null || data === void 0 ? void 0 : data.competition, "-", data === null || data === void 0 ? void 0 : data.sub_title)), /*#__PURE__*/react_default.a.createElement("p", {
className: "task-hide"
}, "\u7CFB\u7EDF\u5DF2\u4E3A\u60A8\u81EA\u52A8\u521B\u5EFA\u6218\u961F\uFF0C\u6218\u961F\u540D\u79F0\u4E3A\uFF1A", /*#__PURE__*/react_default.a.createElement("span", {
style: {
color: '#333333'
}
}, data === null || data === void 0 ? void 0 : data.team_name)), /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginTop: '40px'
}
}, "\u4F60\u53EF\u4EE5\u53BB\u5230\uFF3B\u7F16\u8F91\u6218\u961F\uFF3D\u9875\u9762\uFF0C\u4FEE\u6539\u6218\u961F\u540D\u79F0\u548C\u4E0A\u4F20logo\uFF0C\u4E5F\u53EF\u4EE5\u53BB\uFF3B\u8D5B\u4E8B\u8BE6\u60C5\uFF3D \u9875\u9762\u66F4\u8BE6\u7EC6\u7684\u4E86\u89E3\u6BD4\u8D5B\u3002")), /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginTop: '30px',
textAlign: 'center'
}
}, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
style: {
marginRight: '20px'
},
to: "/competitions/index/".concat(data === null || data === void 0 ? void 0 : data.identify)
}, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], null, "\u8D5B\u4E8B\u8BE6\u60C5")), /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
style: {
marginLeft: '20px'
},
to: "/competitions/index/".concat(data === null || data === void 0 ? void 0 : data.identify, "/UpdateTeanname/").concat(data === null || data === void 0 ? void 0 : data.team_id)
}, /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
type: "primary"
}, "\u7F16\u8F91\u6218\u961F"))));
}
/* harmony default export */ var SignUpSucessModel = (SignupSuccess);
// EXTERNAL MODULE: ./src/components/AuthenticationModel/index.tsx
var AuthenticationModel = __webpack_require__("zrhs");
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/dmpz.png
var dmpz = __webpack_require__("Vh0m");
var dmpz_default = /*#__PURE__*/__webpack_require__.n(dmpz);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/sjjx.png
var sjjx = __webpack_require__("hxTS");
var sjjx_default = /*#__PURE__*/__webpack_require__.n(sjjx);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/xmcx.png
var xmcx = __webpack_require__("fpBZ");
var xmcx_default = /*#__PURE__*/__webpack_require__.n(xmcx);
// EXTERNAL MODULE: ./src/pages/Competitions/Entered/xmtz.png
var xmtz = __webpack_require__("61Iv");
var xmtz_default = /*#__PURE__*/__webpack_require__.n(xmtz);
// EXTERNAL MODULE: ./src/utils/util.tsx + 6 modules
var util = __webpack_require__("1vsH");
// EXTERNAL MODULE: ./src/pages/Competitions/components/PhoneModal.tsx + 1 modules
var PhoneModal = __webpack_require__("QtKJ");
// CONCATENATED MODULE: ./src/pages/Competitions/Entered/index.tsx
//竞赛定制化需求id池
var ids = [45, 46, 49, 50, 51, 52, 71];
var Entered_competitionDetails = function competitionDetails(_ref) {
var _user$userInfo4, _user$userInfo5, _user$userInfo6, _user$userInfo7, _user$userInfo8, _user$userInfo9, _user$userInfo10, _user$userInfo11;
var globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
user = _ref.user,
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["globalSetting", "loading", "dispatch", "user"]);
var _useState = Object(react["useState"])([]),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
HeaderDetail = _useState2[0],
setHeaderDetail = _useState2[1];
var _useState3 = Object(react["useState"])([]),
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
StaffDetail = _useState4[0],
setStaffDetail = _useState4[1];
var _useParams = Object(react_router["l" /* useParams */])(),
identifier = _useParams.identifier;
var _useState5 = Object(react["useState"])([]),
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
TeamData = _useState6[0],
setTeamData = _useState6[1]; //接口返回
var _useState7 = Object(react["useState"])([]),
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
TeamList = _useState8[0],
setTeamList = _useState8[1]; //全部战队信息
var _useState9 = Object(react["useState"])([]),
_useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
MyCreteTeam = _useState10[0],
SetMyCreateTeam = _useState10[1]; //我创建的战队信息
var _useState11 = Object(react["useState"])([]),
_useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2),
ManagedTeams = _useState12[0],
SetManagedTeams = _useState12[1]; //我管理的战队信息
var _useState13 = Object(react["useState"])(''),
_useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2),
KeyWord = _useState14[0],
setKeyWord = _useState14[1]; //搜索内容
var _useState15 = Object(react["useState"])(1),
_useState16 = Object(slicedToArray["a" /* default */])(_useState15, 2),
Page = _useState16[0],
setPage = _useState16[1]; //页码
var _useState17 = Object(react["useState"])(20),
_useState18 = Object(slicedToArray["a" /* default */])(_useState17, 2),
Per_page = _useState18[0],
setPer_page = _useState18[1]; //每页条数
var _useState19 = Object(react["useState"])(false),
_useState20 = Object(slicedToArray["a" /* default */])(_useState19, 2),
isLookmodelshow = _useState20[0],
setIslookModel = _useState20[1]; //查看战队
var _useState21 = Object(react["useState"])([]),
_useState22 = Object(slicedToArray["a" /* default */])(_useState21, 2),
team = _useState22[0],
setTeam = _useState22[1]; //单一战队信息
var _useState23 = Object(react["useState"])(false),
_useState24 = Object(slicedToArray["a" /* default */])(_useState23, 2),
Tipsmodel = _useState24[0],
setTipsmodel = _useState24[1]; //是否显示提示框
var _useState25 = Object(react["useState"])(''),
_useState26 = Object(slicedToArray["a" /* default */])(_useState25, 2),
TipsTitle = _useState26[0],
setTipsTitle = _useState26[1]; //提示标题头
var _useState27 = Object(react["useState"])(''),
_useState28 = Object(slicedToArray["a" /* default */])(_useState27, 2),
TipsContent = _useState28[0],
setTipsContent = _useState28[1]; //提示内容
var _useState29 = Object(react["useState"])(''),
_useState30 = Object(slicedToArray["a" /* default */])(_useState29, 2),
Teamid = _useState30[0],
SetTeamid = _useState30[1]; //点击的id
var _useState31 = Object(react["useState"])(''),
_useState32 = Object(slicedToArray["a" /* default */])(_useState31, 2),
TipsType = _useState32[0],
setTipsType = _useState32[1]; //删除还是退出
var _useState33 = Object(react["useState"])(false),
_useState34 = Object(slicedToArray["a" /* default */])(_useState33, 2),
isAddmodel = _useState34[0],
setIsAddmodel = _useState34[1]; //新建战队
var _useState35 = Object(react["useState"])(false),
_useState36 = Object(slicedToArray["a" /* default */])(_useState35, 2),
isJoin = _useState36[0],
setJoin = _useState36[1]; //加入战队
var _useState37 = Object(react["useState"])(false),
_useState38 = Object(slicedToArray["a" /* default */])(_useState37, 2),
Membersshow = _useState38[0],
setMembers = _useState38[1]; //设置战队
var _useState39 = Object(react["useState"])(false),
_useState40 = Object(slicedToArray["a" /* default */])(_useState39, 2),
isSelect = _useState40[0],
setIsselect = _useState40[1]; //是否搜索
var _useState41 = Object(react["useState"])(false),
_useState42 = Object(slicedToArray["a" /* default */])(_useState41, 2),
isShowmodel = _useState42[0],
setIsShowmodel = _useState42[1]; //是否引流弹窗
var _useState43 = Object(react["useState"])(true),
_useState44 = Object(slicedToArray["a" /* default */])(_useState43, 2),
isClick = _useState44[0],
setIsClick = _useState44[1]; //增加参数 防止点击过快 多次调用
var _useState45 = Object(react["useState"])(),
_useState46 = Object(slicedToArray["a" /* default */])(_useState45, 2),
defaultData = _useState46[0],
setDetaultData = _useState46[1];
var _useState47 = Object(react["useState"])(false),
_useState48 = Object(slicedToArray["a" /* default */])(_useState47, 2),
isshowModal = _useState48[0],
setIsshowModal = _useState48[1];
var _useState49 = Object(react["useState"])(false),
_useState50 = Object(slicedToArray["a" /* default */])(_useState49, 2),
showphone = _useState50[0],
setshowphone = _useState50[1];
var _useState51 = Object(react["useState"])(false),
_useState52 = Object(slicedToArray["a" /* default */])(_useState51, 2),
isopen = _useState52[0],
setisopen = _useState52[1];
var _useState53 = Object(react["useState"])(),
_useState54 = Object(slicedToArray["a" /* default */])(_useState53, 2),
datas = _useState54[0],
setdatas = _useState54[1];
var _useState55 = Object(react["useState"])(false),
_useState56 = Object(slicedToArray["a" /* default */])(_useState55, 2),
kylinIdFlag = _useState56[0],
setKylinIdFlag = _useState56[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.login) && (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) {
getId();
}
}, [user === null || user === void 0 ? void 0 : user.userInfo, HeaderDetail]);
function getId() {
return _getId.apply(this, arguments);
}
function _getId() {
_getId = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
var _user$userInfo12;
var data, a, filter, flag;
return regenerator_default.a.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return dispatch({
type: 'competitions/GetKylinId',
payload: {
owner: user === null || user === void 0 ? void 0 : (_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.login
}
});
case 2:
data = _context3.sent;
a = data.data;
filter = a.filter(function (i) {
return i.toString() === (HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id.toString());
});
console.log("result", a, filter);
flag = filter && filter.length > 0 ? true : false;
setKylinIdFlag(flag);
case 8:
case "end":
return _context3.stop();
}
}
}, _callee3);
}));
return _getId.apply(this, arguments);
}
Object(react["useEffect"])(function () {
function init() {
return _init.apply(this, arguments);
}
function _init() {
_init = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
return regenerator_default.a.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
getStaff();
_context.t0 = setHeaderDetail;
_context.next = 4;
return dispatch({
type: 'competitions/getHeader',
payload: {
identifier: identifier
}
});
case 4:
_context.t1 = _context.sent;
(0, _context.t0)(_context.t1);
selectlist(KeyWord); //取值
if (parseInt(localStorage.getItem('iscreate')) === 1) {
setIsShowmodel(true);
localStorage.setItem('iscreate', '2');
}
case 8:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return _init.apply(this, arguments);
}
if (identifier) {
init();
}
}, [identifier]);
Object(react["useEffect"])(function () {
Object(util["p" /* setDocumentTitle */])('在线竞赛');
});
function selectlist(_x) {
return _selectlist.apply(this, arguments);
} //获取删除 退出战队弹框
function _selectlist() {
_selectlist = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee4(keyword) {
var data;
return regenerator_default.a.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return dispatch({
type: 'competitions/getTeamList',
payload: {
identifier: identifier,
keyword: keyword || KeyWord,
page: Page,
per_page: Per_page
}
});
case 2:
data = _context4.sent;
if (data) {
setTeamData(data);
setDetaultData(JSON.parse(JSON.stringify(data))); //全部战队信息
setTeamList(data.competition_teams); //我创建的战队信息(包括管理的)
SetMyCreateTeam(data && data.my_teams && data.my_teams.filter(function (item) {
return item.manage_permission;
})); //我管理的战队信息(加入)
SetManagedTeams(data && data.my_teams && data.my_teams.filter(function (item) {
return !item.manage_permission;
}));
}
case 4:
case "end":
return _context4.stop();
}
}
}, _callee4);
}));
return _selectlist.apply(this, arguments);
}
function isTipsshow(type, id) {
SetTeamid(id);
setTipsmodel(true);
setTipsType(type);
if (type === 1) {
setTipsTitle('删除战队');
setTipsContent("是否确认删除战队");
} else {
setTipsTitle('退出战队');
setTipsContent("是否确认退出战队");
}
} //实时获取配置信息
function getStaff() {
return _getStaff.apply(this, arguments);
} //点击取消调用当前方法
function _getStaff() {
_getStaff = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee5() {
return regenerator_default.a.wrap(function _callee5$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
_context5.t0 = setStaffDetail;
_context5.next = 3;
return dispatch({
type: 'competitions/getStaff',
payload: {
identifier: identifier
}
});
case 3:
_context5.t1 = _context5.sent;
(0, _context5.t0)(_context5.t1);
case 5:
case "end":
return _context5.stop();
}
}
}, _callee5);
}));
return _getStaff.apply(this, arguments);
}
function setClose() {
var data = defaultData; //全部战队信息
setTeamList(data.competition_teams); //我创建的战队信息(包括管理的)
SetMyCreateTeam(data && data.my_teams && data.my_teams.filter(function (item) {
return item.manage_permission;
})); //我管理的战队信息(加入)
SetManagedTeams(data && data.my_teams && data.my_teams.filter(function (item) {
return !item.manage_permission;
}));
} //删除 退出战队
function TipsSubmit(_x2) {
return _TipsSubmit.apply(this, arguments);
} //创建战队 AddTeam
function _TipsSubmit() {
_TipsSubmit = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee6(type) {
var data, _data;
return regenerator_default.a.wrap(function _callee6$(_context6) {
while (1) {
switch (_context6.prev = _context6.next) {
case 0:
if (!(HeaderDetail.competition_status !== 'nearly_published' && HeaderDetail.enroll_end && HeaderDetail.competition_status !== 'ended')) {
_context6.next = 3;
break;
}
message["b" /* default */].error(type === 1 ? '报名时间已截止,不支持删除战队' : '报名时间已截止,不支持退出战队');
return _context6.abrupt("return");
case 3:
if (!(type === 1)) {
_context6.next = 10;
break;
}
_context6.next = 6;
return dispatch({
type: 'competitions/DeleteTeam',
payload: {
identifier: identifier,
id: Teamid
}
});
case 6:
data = _context6.sent;
if (data && data.status === 0) {
message["b" /* default */].info("\u5220\u9664\u6210\u529F");
setTipsmodel(false);
selectlist(KeyWord);
getStaff();
}
_context6.next = 14;
break;
case 10:
_context6.next = 12;
return dispatch({
type: 'competitions/ExitTeam',
payload: {
identifier: identifier,
id: Teamid
}
});
case 12:
_data = _context6.sent;
if (_data && _data.status === 0) {
message["b" /* default */].info("\u9000\u51FA\u6218\u961F\u6210\u529F");
setTipsmodel(false);
selectlist(KeyWord);
getStaff();
}
case 14:
case "end":
return _context6.stop();
}
}
}, _callee6);
}));
return _TipsSubmit.apply(this, arguments);
}
function addTeams(_x3) {
return _addTeams.apply(this, arguments);
}
function _addTeams() {
_addTeams = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee7(name) {
var data;
return regenerator_default.a.wrap(function _callee7$(_context7) {
while (1) {
switch (_context7.prev = _context7.next) {
case 0:
if (isClick) {
_context7.next = 2;
break;
}
return _context7.abrupt("return");
case 2:
setIsClick(false);
if (!isadd()) {
_context7.next = 5;
break;
}
return _context7.abrupt("return");
case 5:
_context7.next = 7;
return dispatch({
type: 'competitions/AddTeam',
payload: {
identifier: identifier,
name: name
}
});
case 7:
data = _context7.sent;
if (data && data.status === 0) {
setisopen(true);
setdatas(data);
if (ids.includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id))) {
setIsshowModal(true);
}
setIsAddmodel(false);
setIsClick(true);
selectlist(KeyWord);
getStaff();
} else {
setIsClick(true);
}
case 9:
case "end":
return _context7.stop();
}
}
}, _callee7);
}));
return _addTeams.apply(this, arguments);
}
function isadd() {
var _user$userInfo2, _user$userInfo3;
//判断 如果不符合条件 不能加入竞赛
if (user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.is_teacher) {
var _StaffDetail$teacher_;
if (StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$teacher_ = StaffDetail.teacher_staff) === null || _StaffDetail$teacher_ === void 0 ? void 0 : _StaffDetail$teacher_.mutiple_limited) {
if (StaffDetail === null || StaffDetail === void 0 ? void 0 : StaffDetail.enrolled) {
message["b" /* default */].info('你已经报名,不能重复报名');
setIsClick(true);
return true;
}
}
} else {
var _StaffDetail$member_s;
if (StaffDetail === null || StaffDetail === void 0 ? void 0 : (_StaffDetail$member_s = StaffDetail.member_staff) === null || _StaffDetail$member_s === void 0 ? void 0 : _StaffDetail$member_s.mutiple_limited) {
if (StaffDetail === null || StaffDetail === void 0 ? void 0 : StaffDetail.enrolled) {
message["b" /* default */].info('你已经报名,不能重复报名');
setIsClick(true);
return true;
}
}
} //判断竞赛是否关闭
if (StaffDetail === null || StaffDetail === void 0 ? void 0 : StaffDetail.enroll_ended) {
message["b" /* default */].info('报名已截止,无需报名');
setIsClick(true);
return true;
} //禁止老师or学生报名
if (user === null || user === void 0 ? void 0 : (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.is_teacher) {
if (!StaffDetail.teacher_staff) {
message["b" /* default */].info('已禁止老师报名');
setIsClick(true);
return true;
}
} else {
if (!(StaffDetail === null || StaffDetail === void 0 ? void 0 : StaffDetail.member_staff)) {
message["b" /* default */].info('已禁止学生报名');
setIsClick(true);
return true;
}
}
} //加入战队
function JoinTeams(_x4) {
return _JoinTeams.apply(this, arguments);
}
function _JoinTeams() {
_JoinTeams = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee8(name) {
var data;
return regenerator_default.a.wrap(function _callee8$(_context8) {
while (1) {
switch (_context8.prev = _context8.next) {
case 0:
if (isClick) {
_context8.next = 2;
break;
}
return _context8.abrupt("return");
case 2:
if (!isadd()) {
_context8.next = 4;
break;
}
return _context8.abrupt("return");
case 4:
setIsClick(false);
_context8.next = 7;
return dispatch({
type: 'competitions/JoinTeam',
payload: {
identifier: identifier,
invite_code: name
}
});
case 7:
data = _context8.sent;
if (data && data.status === 0) {
setisopen(true);
setdatas(data);
setJoin(false);
setIsClick(true);
selectlist(KeyWord);
getStaff();
if (ids.includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id))) {
setIsshowModal(true);
}
} else {
setIsClick(true);
}
case 9:
case "end":
return _context8.stop();
}
}
}, _callee8);
}));
return _JoinTeams.apply(this, arguments);
}
return /*#__PURE__*/react_default.a.createElement("div", {
className: "edu-container minH500"
}, /*#__PURE__*/react_default.a.createElement(breadcrumb["a" /* default */], {
className: "mt10",
separator: ">"
}, /*#__PURE__*/react_default.a.createElement(breadcrumb["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
to: "/competitions/index"
}, "\u5728\u7EBF\u7ADE\u8D5B")), /*#__PURE__*/react_default.a.createElement(breadcrumb["a" /* default */].Item, null, /*#__PURE__*/react_default.a.createElement(react_router_dom["a" /* Link */], {
to: "/competitions/index/".concat(identifier)
}, HeaderDetail.name, HeaderDetail.sub_title ? '-' + HeaderDetail.sub_title : null)), /*#__PURE__*/react_default.a.createElement(breadcrumb["a" /* default */].Item, null, "\u62A5\u540D")), /*#__PURE__*/react_default.a.createElement("div", {
className: "mt10",
style: {
display: 'flex',
background: '#fff',
position: 'relative'
}
}, /*#__PURE__*/react_default.a.createElement(Assembly_Assembly, {
HeaderDetail: HeaderDetail,
dispatch: dispatch,
user: user,
setIsAddmodel: setIsAddmodel,
setJoin: setJoin
})), /*#__PURE__*/react_default.a.createElement(skeleton["a" /* default */], {
loading: loading["competitions/getTeamList"],
active: true,
avatar: {
size: 40
},
paragraph: {
rows: 5
}
}, /*#__PURE__*/react_default.a.createElement("div", {
className: "mt10 mb10"
}, ((user === null || user === void 0 ? void 0 : (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.admin) || (user === null || user === void 0 ? void 0 : (_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.business)) && /*#__PURE__*/react_default.a.createElement(Assembly_SelectTeam, {
selectlist: selectlist,
setIsselect: setIsselect,
Count: TeamData && TeamData.count,
Members_count: TeamData && TeamData.members_count
}), TeamData && TeamData.my_teams && TeamData.my_teams.length === 0 && (!(user === null || user === void 0 ? void 0 : (_user$userInfo6 = user.userInfo) === null || _user$userInfo6 === void 0 ? void 0 : _user$userInfo6.admin) || !(user === null || user === void 0 ? void 0 : (_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.business)) ? /*#__PURE__*/react_default.a.createElement(TeamsNota, {
HeaderDetail: HeaderDetail,
dispatch: dispatch,
user: user,
setIsAddmodel: setIsAddmodel,
setJoin: setJoin
}) : null, isLookmodelshow ? /*#__PURE__*/react_default.a.createElement(LookTeamsModel, {
islookmodel: isLookmodelshow,
setIslookModel: setIslookModel,
mydatas: team
}) : null, Tipsmodel ? /*#__PURE__*/react_default.a.createElement(TipsModel, {
title: TipsTitle,
content: TipsContent,
Tipsmodel: Tipsmodel,
TipsType: TipsType,
setTipsmodel: setTipsmodel,
TipsSubmit: TipsSubmit
}) : null, isJoin ? /*#__PURE__*/react_default.a.createElement(JoinModel["a" /* default */], {
isjoin: isJoin,
setJoin: setJoin,
JoinTeams: JoinTeams
}) : null, isAddmodel ? /*#__PURE__*/react_default.a.createElement(Addteams["a" /* default */], {
isAddmodle: isAddmodel,
setIsAdd: setIsAddmodel,
createTeam: addTeams
}) : null, Membersshow ? /*#__PURE__*/react_default.a.createElement(SetmembersModel, {
HeaderDetail: HeaderDetail,
setClose: setClose,
StaffDetail: StaffDetail,
Membersshow: Membersshow,
selectlist: selectlist,
setMembers: setMembers,
dispatch: dispatch,
identifier: identifier,
mydatas: team
}) : null, isSelect || MyCreteTeam && MyCreteTeam.map(function (item, index) {
if (index === 0) {
return /*#__PURE__*/react_default.a.createElement("div", {
key: index
}, /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teamstitlesize,
style: {
paddingRight: '36px'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "\u7BA1\u7406\u7684\u6218\u961F\xA0\xA0(", MyCreteTeam.length, ")"), " ", MyCreteTeam.filter(function (item) {
return !item.active;
}).length > 0 ? /*#__PURE__*/react_default.a.createElement("span", {
style: {
fontSize: '14px',
color: '#F3730C'
}
}, "\u60A8\u6709", MyCreteTeam.filter(function (item) {
return !item.active;
}).length, "\u4E2A\u6218\u961F\u672A\u6EE1\u8DB3\u53C2\u8D5B\u8981\u6C42\uFF01\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\uFF0C\u8BF7\u8BBE\u7F6E\u6218\u961F\u6210\u5458") : ''), /*#__PURE__*/react_default.a.createElement(Assembly_ManagedTeams, {
mode: HeaderDetail.mode,
item: item,
type: 1,
kylinIdFlag: kylinIdFlag,
identifier: identifier,
isTipsshow: isTipsshow,
setIslookModel: setIslookModel,
setTeam: setTeam,
setMembers: setMembers
}));
} else {
return /*#__PURE__*/react_default.a.createElement(Assembly_ManagedTeams, {
mode: HeaderDetail.mode,
key: index,
item: item,
type: 1,
kylinIdFlag: kylinIdFlag,
identifier: identifier,
isTipsshow: isTipsshow,
setIslookModel: setIslookModel,
setTeam: setTeam,
setMembers: setMembers
});
}
}), isSelect || ManagedTeams && ManagedTeams.map(function (item, index) {
if (index === 0) {
return /*#__PURE__*/react_default.a.createElement("div", {
key: index
}, /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teamstitlesize,
style: {
paddingRight: '36px'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "\u52A0\u5165\u7684\u6218\u961F\xA0\xA0(", ManagedTeams.length, ")")), /*#__PURE__*/react_default.a.createElement(Assembly_ManagedTeams, {
mode: HeaderDetail.mode,
key: index,
item: item,
type: 2,
identifier: identifier,
isTipsshow: isTipsshow,
setIslookModel: setIslookModel,
setTeam: setTeam,
setMembers: setMembers
}));
} else {
return /*#__PURE__*/react_default.a.createElement(Assembly_ManagedTeams, {
mode: HeaderDetail.mode,
key: index,
item: item,
type: 2,
identifier: identifier,
isTipsshow: isTipsshow,
setIslookModel: setIslookModel,
setTeam: setTeam,
setMembers: setMembers
});
}
}), ((user === null || user === void 0 ? void 0 : (_user$userInfo8 = user.userInfo) === null || _user$userInfo8 === void 0 ? void 0 : _user$userInfo8.admin) || (user === null || user === void 0 ? void 0 : (_user$userInfo9 = user.userInfo) === null || _user$userInfo9 === void 0 ? void 0 : _user$userInfo9.business)) && TeamList.map(function (item, index) {
if (index === 0) {
return /*#__PURE__*/react_default.a.createElement("div", {
key: index
}, /*#__PURE__*/react_default.a.createElement("div", {
className: Enteredmodules_default.a.teamstitlesize,
style: {
paddingRight: '36px'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, isSelect ? "搜索结果" : '全部战队', "\xA0\xA0(", TeamData.count, ")")), /*#__PURE__*/react_default.a.createElement(Assembly_AllTeams, {
mode: HeaderDetail.mode,
item: item,
setIslookModel: setIslookModel,
setTeam: setTeam
}));
} else {
return /*#__PURE__*/react_default.a.createElement(Assembly_AllTeams, {
mode: HeaderDetail.mode,
key: index,
item: item,
setIslookModel: setIslookModel,
setTeam: setTeam
});
}
}), ((user === null || user === void 0 ? void 0 : (_user$userInfo10 = user.userInfo) === null || _user$userInfo10 === void 0 ? void 0 : _user$userInfo10.admin) || (user === null || user === void 0 ? void 0 : (_user$userInfo11 = user.userInfo) === null || _user$userInfo11 === void 0 ? void 0 : _user$userInfo11.business)) && TeamData && TeamData.count > 20 ? /*#__PURE__*/react_default.a.createElement("div", {
style: {
marginTop: '30px',
marginBottom: '30px',
textAlign: 'center'
}
}, /*#__PURE__*/react_default.a.createElement(pagination["a" /* default */], {
onChange: function onChange(e) {
Page = e;
setPage(Page);
selectlist(KeyWord);
},
showSizeChanger: false,
current: Page,
pageSize: Per_page,
total: TeamData.count
})) : null)), /*#__PURE__*/react_default.a.createElement(SignUpSucessModel, {
isShowmodel: isShowmodel,
isSignUphide: setIsShowmodel
}), /*#__PURE__*/react_default.a.createElement(AuthenticationModel["a" /* default */], null), /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
open: isshowModal,
footer: null,
title: "\u62A5\u540D\u6210\u529F",
centered: true,
width: 500,
onCancel: function onCancel() {
return setIsshowModal(false);
}
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
padding: "32px"
}
}, /*#__PURE__*/react_default.a.createElement("p", {
style: {
fontSize: '16px',
fontWeight: '500'
}
}, "\u606D\u559C\u60A8\u5DF2\u6210\u529F\u62A5\u540D\u300A", HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.name, "-", HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.sub_title, "\u300B"), /*#__PURE__*/react_default.a.createElement("span", null, "\u6E29\u99A8\u63D0\u793A\uFF1A"), /*#__PURE__*/react_default.a.createElement("br", null), [46, 49, 50, 52].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("span", null, " 1\u3001\u8D5B\u9898\u5DF2\u53D1\u5E03\uFF0C\u70B9\u51FB\u4E0B\u65B9\u201C\u524D\u5F80\u67E5\u770B\u201D\u6309\u94AE\u67E5\u770B\u8D5B\u9898\u3002"), [45, 51].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("span", null, " 1\u3001\u626B\u7801\u52A0\u5165\u8D5B\u9053\u7FA4\uFF0C\u54A8\u8BE2\u8D5B\u9053\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u66F4\u6709\u884C\u4E1A\u4E13\u5BB6\u5168\u7A0B\u652F\u6301"), /*#__PURE__*/react_default.a.createElement("br", null), [46, 49, 50, 52].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("span", null, " 2\u3001\u626B\u7801\u52A0\u5165\u8D5B\u9053\u7FA4\uFF0C\u54A8\u8BE2\u8D5B\u9053\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u66F4\u6709\u884C\u4E1A\u4E13\u5BB6\u5168\u7A0B\u652F\u6301"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("div", {
style: {
marginTop: '30px',
textAlign: 'center'
}
}, [50, 51].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("img", {
src: sjjx_default.a,
style: {
width: '220px',
height: '270px'
}
}), [46, 45].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("img", {
src: xmcx_default.a,
style: {
width: '220px',
height: '270px'
}
}), [49].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("img", {
src: xmtz_default.a,
style: {
width: '220px',
height: '270px'
}
}), [52].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement("img", {
src: dmpz_default.a,
style: {
width: '220px',
height: '270px'
}
}), /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginTop: '30px'
}
}, [46, 49, 50, 52].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
style: {
width: '116px',
height: '40px'
},
type: "primary",
onClick: function onClick() {
Object(util["n" /* openNewWindow */])("/competitions/index/".concat(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.identifier, "?active=\u8D5B\u9898\u53D1\u5E03"));
}
}, "\u524D\u5F80\u67E5\u770B"), [45, 51].includes(parseInt(HeaderDetail === null || HeaderDetail === void 0 ? void 0 : HeaderDetail.id)) && /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
style: {
width: '116px',
height: '40px'
},
type: "primary",
onClick: function onClick() {
setIsshowModal(false);
}
}, "\u77E5\u9053\u4E86"))))), /*#__PURE__*/react_default.a.createElement(PhoneModal["a" /* default */], {
datas: datas,
isopen: isopen,
setisopen: setisopen,
isShowPhone: showphone,
setIsShowPhone: setshowphone,
user: user,
dispatch: dispatch,
onOK: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
return regenerator_default.a.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.t0 = setHeaderDetail;
_context2.next = 3;
return dispatch({
type: 'competitions/getHeader',
payload: {
identifier: identifier
}
});
case 3:
_context2.t1 = _context2.sent;
(0, _context2.t0)(_context2.t1);
case 5:
case "end":
return _context2.stop();
}
}
}, _callee2);
}))
}));
};
/* harmony default export */ var Entered = __webpack_exports__["default"] = (Object(umiExports["a" /* connect */])(function (_ref3) {
var loading = _ref3.loading,
globalSetting = _ref3.globalSetting,
user = _ref3.user;
return {
globalSetting: globalSetting,
loading: loading.effects,
user: user
};
})(Entered_competitionDetails));
/***/ }),
/***/ "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")))
/***/ }),
/***/ "QtKJ":
/*!**********************************************************************!*\
!*** ./src/pages/Competitions/components/PhoneModal.tsx + 1 modules ***!
\**********************************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! 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/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/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 ./src/utils/env.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
/*! 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/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/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 + 14 modules
var input = __webpack_require__("5rEg");
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__("c1Ei");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
// 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 message = __webpack_require__("tsqr");
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("5Tp6");
// EXTERNAL MODULE: ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__("k16G");
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__("q1tI");
var react_default = /*#__PURE__*/__webpack_require__.n(react);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__("ErOA");
// CONCATENATED MODULE: ./src/utils/hooks/useInterval.tsx
function useInterval(callback, delay) {
var savedCallback = Object(react["useRef"])();
var savedId = Object(react["useRef"])(); // 保存新回调
Object(react["useEffect"])(function () {
savedCallback.current = callback;
}); // 建立 interval
Object(react["useEffect"])(function () {
function tick() {
savedCallback.current();
}
if (delay !== null) {
var id = setInterval(tick, delay);
savedId.current = id;
return function () {
return clearInterval(id);
};
}
}, [delay]);
}
// EXTERNAL MODULE: ./src/utils/util.tsx + 6 modules
var util = __webpack_require__("1vsH");
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__("m3rI");
// CONCATENATED MODULE: ./src/pages/Competitions/components/PhoneModal.tsx
var phoneReg = /^1\d{10}$/;
function Addmodal(_ref) {
var isShowPhone = _ref.isShowPhone,
setIsShowPhone = _ref.setIsShowPhone,
user = _ref.user,
dispatch = _ref.dispatch,
onOK = _ref.onOK,
isopen = _ref.isopen,
setisopen = _ref.setisopen,
datas = _ref.datas;
var _useState = Object(react["useState"])(''),
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
phone = _useState2[0],
setphone = _useState2[1];
var _useState3 = Object(react["useState"])(''),
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
PhoneValue = _useState4[0],
setPhoneValue = _useState4[1];
var _useState5 = Object(react["useState"])(60),
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
countdown = _useState6[0],
setCountdown = _useState6[1];
var _useState7 = Object(react["useState"])(),
_useState8 = Object(slicedToArray["a" /* default */])(_useState7, 2),
countdownFlag = _useState8[0],
setCountdownFlag = _useState8[1];
var _useState9 = Object(react["useState"])(false),
_useState10 = Object(slicedToArray["a" /* default */])(_useState9, 2),
isShowPoint = _useState10[0],
setIsShowPoint = _useState10[1];
var _useState11 = Object(react["useState"])(false),
_useState12 = Object(slicedToArray["a" /* default */])(_useState11, 2),
isShowUntie = _useState12[0],
setIsShowUntie = _useState12[1];
var _useState13 = Object(react["useState"])(''),
_useState14 = Object(slicedToArray["a" /* default */])(_useState13, 2),
UntieValue = _useState14[0],
setUntieValue = _useState14[1];
var intervalId = Object(react["useRef"])();
Object(react["useEffect"])(function () {
return function () {
intervalId.current && clearInterval(intervalId.current);
};
}, []);
useInterval(function () {
if (!countdownFlag) {
return;
} else {
setCountdown(60);
}
if (countdown > 0) {
setCountdown(countdown - 1);
} else {
setCountdown(60);
setCountdownFlag(false);
intervalId.current && clearInterval(intervalId.current);
}
}, 1000);
var handleGetCode = /*#__PURE__*/function () {
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
var _user$userInfo;
var data, smscode, res;
return regenerator_default.a.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return Object(fetch["a" /* default */])("/api/users/accounts/".concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, "/valid_phone.json"), {
method: 'get',
params: {
phone: phone
}
});
case 2:
data = _context.sent;
if (!((data === null || data === void 0 ? void 0 : data.status) === -1)) {
_context.next = 5;
break;
}
return _context.abrupt("return");
case 5:
if (!(data === null || data === void 0 ? void 0 : data.is_exists)) {
_context.next = 8;
break;
}
setIsShowPoint(true);
return _context.abrupt("return");
case 8:
smscode = Object(util["r" /* setmiyah */])(phone);
_context.next = 11;
return dispatch({
type: 'account/getCode',
payload: {
login: phone,
type: 3,
smscode: smscode
}
});
case 11:
res = _context.sent;
if (res.status === 1) {
message["b" /* default */].info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 13:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function handleGetCode() {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
title: "\u5F3A\u5236\u89E3\u7ED1",
visible: isShowUntie,
onCancel: function onCancel() {
return setIsShowUntie(false);
},
onOk: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
var _user$userInfo2;
var data;
return regenerator_default.a.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
if (UntieValue) {
_context2.next = 3;
break;
}
message["b" /* default */].info('验证码不能为空');
return _context2.abrupt("return");
case 3:
_context2.next = 5;
return Object(fetch["a" /* default */])("/api/users/accounts/".concat(user === null || user === void 0 ? void 0 : (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/phone_force_unbind.json"), {
method: 'POST',
body: {
code: UntieValue,
phone: phone
}
});
case 5:
data = _context2.sent;
if ((data === null || data === void 0 ? void 0 : data.status) === 0) {
message["b" /* default */].info('解绑成功');
setCountdownFlag(false);
setIsShowUntie(false);
onOK();
setIsShowPhone(false);
setUntieValue('');
}
case 7:
case "end":
return _context2.stop();
}
}
}, _callee2);
}))
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
padding: '8px 24px'
}
}, /*#__PURE__*/react_default.a.createElement("p", null, "\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"), /*#__PURE__*/react_default.a.createElement("p", null, "\u4F60\u7684\u624B\u673A\u53F7\uFF1A", phone), /*#__PURE__*/react_default.a.createElement("p", null, "\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
value: UntieValue,
size: "large",
onChange: function onChange(e) {
return setUntieValue(e.target.value);
},
style: {
width: '240px'
}
}), " ", /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
disabled: countdownFlag,
type: "primary",
size: "large",
onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
var smscode, res;
return regenerator_default.a.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
smscode = Object(util["r" /* setmiyah */])(phone);
_context3.next = 3;
return dispatch({
type: 'account/getCode',
payload: {
login: phone,
type: 10,
smscode: smscode
}
});
case 3:
res = _context3.sent;
if (res.status === 1) {
message["b" /* default */].info('验证码已发送,请注意查收');
setCountdownFlag(true);
}
case 5:
case "end":
return _context3.stop();
}
}
}, _callee3);
}))
}, countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码')))), /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
title: "\u63D0\u793A",
visible: isShowPoint,
onCancel: function onCancel() {
setIsShowPoint(false);
},
okText: "\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",
okButtonProps: {
type: "primary",
ghost: true,
style: {
width: "124px"
}
},
onOk: function onOk() {
setIsShowUntie(true);
setIsShowPoint(false);
} // footer={<div>
// <Button style={{textAlign:'end'}} type="primary" onClick={()=>setIsShowModal(false)}>确 定</Button>
// </div>}
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
padding: '7px 24px'
}
}, /*#__PURE__*/react_default.a.createElement("span", null, "\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"), /*#__PURE__*/react_default.a.createElement("br", null), /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginTop: '1em',
display: 'flex'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002")), /*#__PURE__*/react_default.a.createElement("p", {
style: {
marginTop: '1em',
display: 'flex'
}
}, /*#__PURE__*/react_default.a.createElement("span", {
style: {
flex: '1'
}
}, "2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09")))), /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
title: "\u7ED1\u5B9A\u624B\u673A\u53F7",
visible: isShowPhone,
onCancel: function onCancel() {
return setIsShowPhone(false);
},
onOk: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee4() {
var _ref6, login, res;
return regenerator_default.a.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
if (phoneReg.test(phone)) {
_context4.next = 3;
break;
}
message["b" /* default */].info("请输入有效的11位手机号码");
return _context4.abrupt("return");
case 3:
if (PhoneValue) {
_context4.next = 6;
break;
}
message["b" /* default */].info("请输入验证码");
return _context4.abrupt("return");
case 6:
_ref6 = user.userInfo || {}, login = _ref6.login;
_context4.next = 9;
return dispatch({
type: 'account/bindPhone',
payload: {
login: login,
phone: phone,
code: PhoneValue
}
});
case 9:
res = _context4.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setIsShowPhone(false);
onOK();
}
case 11:
case "end":
return _context4.stop();
}
}
}, _callee4);
}))
}, /*#__PURE__*/react_default.a.createElement("div", {
style: {
padding: '8px 24px'
}
}, /*#__PURE__*/react_default.a.createElement("p", null, "\u5E73\u53F0\u5DF2\u68C0\u6D4B\u5230\u60A8\u672A\u7ED1\u5B9A\u624B\u673A\u53F7\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u4F7F\u7528\u62A5\u540D\u529F\u80FD\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801"), /*#__PURE__*/react_default.a.createElement("p", null, "\u4F60\u7684\u624B\u673A\u53F7\uFF1A", /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
size: "large",
value: phone,
onChange: function onChange(e) {
return setphone(e.target.value);
},
style: {
width: '240px'
}
})), /*#__PURE__*/react_default.a.createElement("p", null, "\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A", /*#__PURE__*/react_default.a.createElement(input["a" /* default */], {
size: "large",
value: PhoneValue,
onChange: function onChange(e) {
return setPhoneValue(e.target.value);
},
style: {
width: '240px'
}
}), " ", /*#__PURE__*/react_default.a.createElement(es_button["a" /* default */], {
disabled: countdownFlag,
type: "primary",
size: "large",
onClick: /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regenerator_default.a.mark(function _callee5() {
return regenerator_default.a.wrap(function _callee5$(_context5) {
while (1) {
switch (_context5.prev = _context5.next) {
case 0:
if (phoneReg.test(phone)) {
_context5.next = 3;
break;
}
message["b" /* default */].info("请输入有效的11位手机号码");
return _context5.abrupt("return");
case 3:
handleGetCode();
case 4:
case "end":
return _context5.stop();
}
}
}, _callee5);
}))
}, countdownFlag ? "\u91CD\u65B0\u53D1\u9001".concat(countdown, "s") : '获取验证码')))), /*#__PURE__*/react_default.a.createElement(modal["a" /* default */], {
visible: isopen,
footer: false,
onCancel: function onCancel() {
return setisopen(false);
},
centered: true,
width: 460
}, /*#__PURE__*/react_default.a.createElement("div", null, /*#__PURE__*/react_default.a.createElement("div", {
style: {
marginTop: 50,
fontSize: 26,
color: '#3d3d3d',
textAlign: 'center',
marginBottom: 20
}
}, /*#__PURE__*/react_default.a.createElement("i", {
style: {
fontSize: 26,
color: '#52C41A'
},
className: "iconfont icon-tongguo"
}), " \u62A5\u540D\u6210\u529F"), /*#__PURE__*/react_default.a.createElement("div", {
style: {
alignItems: 'center',
textAlign: 'center'
}
}, /*#__PURE__*/react_default.a.createElement("img", {
style: {
width: 180,
border: '1px solid #eeeeef',
padding: 10,
marginBottom: 20
},
src: env["a" /* default */].IMG_SERVER + (datas === null || datas === void 0 ? void 0 : datas.QR_code)
}), /*#__PURE__*/react_default.a.createElement("p", {
style: {
color: '#AAAAAA'
}
}, "\u53C2\u8D5B\u8005\u53EF\u626B\u7801\u52A0\u5165\u5927\u8D5B\u5B98\u65B9\u4EA4\u6D41\u7FA4\uFF0C\u83B7\u53D6\u6700\u65B0\u7ADE\u8D5B\u901A\u77E5")))));
}
/* harmony default export */ var PhoneModal = __webpack_exports__["a"] = (Addmodal);
/***/ }),
/***/ "UfjD":
/*!*******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/JoinModel.tsx ***!
\*******************************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ "2qtc");
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/modal */ "kLXV");
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/input/style */ "5NDa");
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/input */ "5rEg");
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/message/style */ "miYZ");
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/message */ "tsqr");
/* harmony import */ var _Users_caishi_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray */ "k16G");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "q1tI");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ant-design/icons */ "4i/N");
//通过邀请码加入战队
function Jointeam(_ref) {
var isjoin = _ref.isjoin,
setJoin = _ref.setJoin,
JoinTeams = _ref.JoinTeams;
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(""),
_useState2 = Object(_Users_caishi_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_useState, 2),
code = _useState2[0],
setCode = _useState2[1];
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(antd_es_modal__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
centered: true,
title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
style: {
alignItems: 'center',
display: 'flex'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
style: {
textAlign: 'left',
flex: '1'
}
}, "\u52A0\u5165\u6218\u961F"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
onClick: function onClick() {
return setJoin(false);
},
style: {
cursor: 'porint'
}
})),
visible: isjoin,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!code) {
antd_es_message__WEBPACK_IMPORTED_MODULE_5__[/* default */ "b"].info('邀请码不能为空');
return;
}
JoinTeams(code);
},
onCancel: function onCancel() {
return setJoin(false);
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("p", {
style: {
marginTop: '15px',
marginLeft: '15px',
display: 'flex',
alignItems: 'center'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
style: {
flex: 'none'
}
}, "\u9080\u8BF7\u7801\uFF1A"), " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], {
placeholder: "请输入邀请码",
value: code,
maxLength: 60,
addonAfter: String(code && code.length || 0) + "/60",
onChange: function onChange(e) {
return setCode(e.target.value);
}
}))));
}
/* harmony default export */ __webpack_exports__["a"] = (Jointeam);
/***/ }),
/***/ "Vh0m":
/*!*************************************************!*\
!*** ./src/pages/Competitions/Entered/dmpz.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/dmpz.f66eda67.png";
/***/ }),
/***/ "bE4q":
/*!**************************************************************!*\
!*** ./node_modules/antd/es/breadcrumb/index.js + 3 modules ***!
\**************************************************************/
/*! exports provided: default */
/*! exports used: default */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/DownOutlined.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/toConsumableArray.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/reactNode.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/context.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/dropdown.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/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/rc-util/es/Children/toArray.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/defineProperty.js
var defineProperty = __webpack_require__("lSNA");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
// 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/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-util/es/Children/toArray.js
var toArray = __webpack_require__("Zm9Q");
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/DownOutlined.js
var DownOutlined = __webpack_require__("HQEm");
var DownOutlined_default = /*#__PURE__*/__webpack_require__.n(DownOutlined);
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/dropdown.js + 1 modules
var dropdown = __webpack_require__("XBQK");
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js + 1 modules
var context = __webpack_require__("H84U");
// CONCATENATED MODULE: ./node_modules/antd/es/breadcrumb/BreadcrumbItem.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 BreadcrumbItem_BreadcrumbItem = function BreadcrumbItem(_a) {
var customizePrefixCls = _a.prefixCls,
_a$separator = _a.separator,
separator = _a$separator === void 0 ? '/' : _a$separator,
children = _a.children,
overlay = _a.overlay,
dropdownProps = _a.dropdownProps,
restProps = __rest(_a, ["prefixCls", "separator", "children", "overlay", "dropdownProps"]);
var _React$useContext = react["useContext"](context["b" /* ConfigContext */]),
getPrefixCls = _React$useContext.getPrefixCls;
var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
/**
* if overlay is have
* Wrap a DropDown
*/
var renderBreadcrumbNode = function renderBreadcrumbNode(breadcrumbItem) {
if (overlay) {
return /*#__PURE__*/react["createElement"](dropdown["a" /* default */], extends_default()({
overlay: overlay,
placement: "bottomCenter"
}, dropdownProps), /*#__PURE__*/react["createElement"]("span", {
className: "".concat(prefixCls, "-overlay-link")
}, breadcrumbItem, /*#__PURE__*/react["createElement"](DownOutlined_default.a, null)));
}
return breadcrumbItem;
};
var link;
if ('href' in restProps) {
link = /*#__PURE__*/react["createElement"]("a", extends_default()({
className: "".concat(prefixCls, "-link")
}, restProps), children);
} else {
link = /*#__PURE__*/react["createElement"]("span", extends_default()({
className: "".concat(prefixCls, "-link")
}, restProps), children);
} // wrap to dropDown
link = renderBreadcrumbNode(link);
if (children) {
return /*#__PURE__*/react["createElement"]("span", null, link, separator && separator !== '' && /*#__PURE__*/react["createElement"]("span", {
className: "".concat(prefixCls, "-separator")
}, separator));
}
return null;
};
BreadcrumbItem_BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem_BreadcrumbItem);
// CONCATENATED MODULE: ./node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js
var BreadcrumbSeparator_BreadcrumbSeparator = function BreadcrumbSeparator(_ref) {
var children = _ref.children;
var _React$useContext = react["useContext"](context["b" /* ConfigContext */]),
getPrefixCls = _React$useContext.getPrefixCls;
var prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/react["createElement"]("span", {
className: "".concat(prefixCls, "-separator")
}, children || '/');
};
BreadcrumbSeparator_BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator_BreadcrumbSeparator);
// EXTERNAL MODULE: ./node_modules/antd/es/menu/index.js + 16 modules
var menu = __webpack_require__("BvKs");
// EXTERNAL MODULE: ./node_modules/antd/es/_util/devWarning.js
var devWarning = __webpack_require__("uaoM");
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
var reactNode = __webpack_require__("0n0R");
// CONCATENATED MODULE: ./node_modules/antd/es/breadcrumb/Breadcrumb.js
var Breadcrumb_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 getBreadcrumbName(route, params) {
if (!route.breadcrumbName) {
return null;
}
var paramsKeys = Object.keys(params).join('|');
var name = route.breadcrumbName.replace(new RegExp(":(".concat(paramsKeys, ")"), 'g'), function (replacement, key) {
return params[key] || replacement;
});
return name;
}
function defaultItemRender(route, params, routes, paths) {
var isLastItem = routes.indexOf(route) === routes.length - 1;
var name = getBreadcrumbName(route, params);
return isLastItem ? /*#__PURE__*/react["createElement"]("span", null, name) : /*#__PURE__*/react["createElement"]("a", {
href: "#/".concat(paths.join('/'))
}, name);
}
var getPath = function getPath(path, params) {
path = (path || '').replace(/^\//, '');
Object.keys(params).forEach(function (key) {
path = path.replace(":".concat(key), params[key]);
});
return path;
};
var Breadcrumb_addChildPath = function addChildPath(paths) {
var childPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var params = arguments.length > 2 ? arguments[2] : undefined;
var originalPaths = toConsumableArray_default()(paths);
var path = getPath(childPath, params);
if (path) {
originalPaths.push(path);
}
return originalPaths;
};
var Breadcrumb_Breadcrumb = function Breadcrumb(_a) {
var customizePrefixCls = _a.prefixCls,
_a$separator = _a.separator,
separator = _a$separator === void 0 ? '/' : _a$separator,
style = _a.style,
className = _a.className,
routes = _a.routes,
children = _a.children,
_a$itemRender = _a.itemRender,
itemRender = _a$itemRender === void 0 ? defaultItemRender : _a$itemRender,
_a$params = _a.params,
params = _a$params === void 0 ? {} : _a$params,
restProps = Breadcrumb_rest(_a, ["prefixCls", "separator", "style", "className", "routes", "children", "itemRender", "params"]);
var _React$useContext = react["useContext"](context["b" /* ConfigContext */]),
getPrefixCls = _React$useContext.getPrefixCls,
direction = _React$useContext.direction;
var crumbs;
var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
if (routes && routes.length > 0) {
// generated by route
var paths = [];
crumbs = routes.map(function (route) {
var path = getPath(route.path, params);
if (path) {
paths.push(path);
} // generated overlay by route.children
var overlay;
if (route.children && route.children.length) {
overlay = /*#__PURE__*/react["createElement"](menu["a" /* default */], null, route.children.map(function (child) {
return /*#__PURE__*/react["createElement"](menu["a" /* default */].Item, {
key: child.path || child.breadcrumbName
}, itemRender(child, params, routes, Breadcrumb_addChildPath(paths, child.path, params)));
}));
}
return /*#__PURE__*/react["createElement"](breadcrumb_BreadcrumbItem, {
overlay: overlay,
separator: separator,
key: path || route.breadcrumbName
}, itemRender(route, params, routes, paths));
});
} else if (children) {
crumbs = Object(toArray["a" /* default */])(children).map(function (element, index) {
if (!element) {
return element;
}
Object(devWarning["a" /* default */])(element.type && (element.type.__ANT_BREADCRUMB_ITEM === true || element.type.__ANT_BREADCRUMB_SEPARATOR === true), 'Breadcrumb', "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
return Object(reactNode["a" /* cloneElement */])(element, {
separator: separator,
key: index
});
});
}
var breadcrumbClassName = classnames_default()(className, prefixCls, defineProperty_default()({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
return /*#__PURE__*/react["createElement"]("div", extends_default()({
className: breadcrumbClassName,
style: style
}, restProps), crumbs);
};
Breadcrumb_Breadcrumb.Item = breadcrumb_BreadcrumbItem;
Breadcrumb_Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb_Breadcrumb);
// CONCATENATED MODULE: ./node_modules/antd/es/breadcrumb/index.js
/* harmony default export */ var breadcrumb = __webpack_exports__["a"] = (breadcrumb_Breadcrumb);
/***/ }),
/***/ "cWXX":
/*!******************************************************!*\
!*** ./node_modules/antd/es/skeleton/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 */ "oIFs");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "fpBZ":
/*!*************************************************!*\
!*** ./src/pages/Competitions/Entered/xmcx.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/xmcx.4d2f8a61.png";
/***/ }),
/***/ "hxTS":
/*!*************************************************!*\
!*** ./src/pages/Competitions/Entered/sjjx.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/sjjx.7a8e0b40.png";
/***/ }),
/***/ "ipgu":
/*!***********************************************************!*\
!*** ./src/pages/Competitions/Entered/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___2r6dk","flex_space_between":"flex_space_between___2h9zy","flex_box_vertical_center":"flex_box_vertical_center___2OhEf","flex_box_center_end":"flex_box_center_end___38UH6","flex_box_column":"flex_box_column___sIWsv","backgroundimg":"backgroundimg___1O-pN","titlesize":"titlesize___1djF4","countsize":"countsize___1_hGV","addteams":"addteams___2JAL0","createteams":"createteams___1_asj","buttoncoent":"buttoncoent___11zMD","nullnodata":"nullnodata___3kGxG","searchhead":"searchhead___fTCjR","selectleft":"selectleft___1K6QG","packinputs":"packinputs___23jVT","ManagedTeams":"ManagedTeams___3EhNw","spanradius":"spanradius___3oPq5","width18":"width18___3EJtL","width15":"width15___3oUqm","nametitle":"nametitle___3lYJL","borderjingao":"borderjingao___2gLqX","updatecount":"updatecount___326A6","deleteitem":"deleteitem___2Cjb5","width20":"width20___2gQvl","imageradius":"imageradius___3eNIt","loaderimg":"loaderimg___362cf","teamstitlesize":"teamstitlesize___3iOmt","setmembers":"setmembers___3XDJA","teammember":"teammember___1sFe4","flex1":"flex1___I9fEY","flex2":"flex2___3luPi","teammembers":"teammembers___3u0fA","teacherdown":"teacherdown___2Zb6v","teachname":"teachname___DKH10","task_hide":"task_hide___1nza8","code":"code___1CX3A"};
/***/ }),
/***/ "jWHs":
/*!**************************************************!*\
!*** ./src/pages/Competitions/Entered/Ncode.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/Ncode.3dc22c53.jpg";
/***/ }),
/***/ "oIFs":
/*!********************************************************!*\
!*** ./node_modules/antd/es/skeleton/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
/***/ }),
/***/ "qHvr":
/*!******************************************************************!*\
!*** ./src/pages/Competitions/Entered/Enteredmodel/Addteams.tsx ***!
\******************************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ "2qtc");
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/modal */ "kLXV");
/* harmony import */ var antd_es_input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/input/style */ "5NDa");
/* harmony import */ var antd_es_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/input */ "5rEg");
/* harmony import */ var antd_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/message/style */ "miYZ");
/* harmony import */ var antd_es_message__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/message */ "tsqr");
/* harmony import */ var _Users_caishi_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/slicedToArray */ "k16G");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "q1tI");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ant-design/icons */ "4i/N");
//创建战队弹窗
function Addteans(_ref) {
var isAddmodle = _ref.isAddmodle,
setIsAdd = _ref.setIsAdd,
createTeam = _ref.createTeam;
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(""),
_useState2 = Object(_Users_caishi_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_useState, 2),
personname = _useState2[0],
setpersonname = _useState2[1];
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(antd_es_modal__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
centered: true,
title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
style: {
alignItems: 'center',
display: 'flex'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", {
style: {
textAlign: 'left',
flex: '1'
}
}, "\u521B\u5EFA\u6218\u961F"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
onClick: function onClick() {
return setIsAdd(false);
},
style: {
cursor: 'porint'
}
})),
visible: isAddmodle,
closable: false,
destroyOnClose: true,
onOk: function onOk() {
if (!personname) {
antd_es_message__WEBPACK_IMPORTED_MODULE_5__[/* default */ "b"].info('战队名不能为空');
return;
}
createTeam(personname);
},
onCancel: function onCancel() {
return setIsAdd(false);
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
style: {
fontSize: '14px',
color: '#F73737'
}
}, "*"), "\u961F\u540D\uFF1A", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("p", {
style: {
marginTop: '15px',
marginLeft: '15px'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], {
placeholder: "请输入队名",
value: personname,
maxLength: 60,
addonAfter: String(personname && personname.length || 0) + "/60",
onChange: function onChange(e) {
return setpersonname(e.target.value);
}
}))));
}
/* harmony default export */ __webpack_exports__["a"] = (Addteans);
/***/ }),
/***/ "sPJy":
/*!********************************************************!*\
!*** ./node_modules/antd/es/breadcrumb/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 */ "AOa7");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _menu_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../menu/style */ "lUTK");
/* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../dropdown/style */ "qVdP");
/***/ }),
/***/ "w3kr":
/*!***************************************!*\
!*** ./src/assets/images/Noentry.jpg ***!
\***************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports) {
module.exports = "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAABgCAYAAAAQCODYAAAAAXNSR0IArs4c6QAAC+9JREFUeAHtneePEz0Qh3303uHoHFX03gUI0EkgISQ+wb8In/gAiKODqKJ3EHD03nsvL4/1OtosyWbjtRN745Gi7G7Wbfa3M+PxeNL07du3PyJQ4IAFDnSwUGeoMnBAciCAKwDBGgcCuKyxNlQcwBUwYI0DAVzWWBsqDuAKGLDGgQAua6wNFQdwBQxY40AAlzXWhooDuAIGrHEggMsaa0PFAVwBA9Y4EMBljbX+VdzW1iauXbtmrOMBXMZY6X9Fb9++Fe/evTM2kKYQcmOMl15W9P37d3Hy5Enx8+dP8fDhQ9GzZ0/Rv39/MXjwYDFt2rRMY+qUqXQo7D0Hfv36Jd6/fy/B9efPH/FX2Mjzbt26ZR5bkFyZWZifCjZv3ixaWlrE4sWLjQwq2FxG2JiPSpBWJiSW4kaQXIoT4Vuqxk6dzFlK5mpKeDjo9devXws63q9fP9HU1JRwt5mffvz4Id68eSMwWLEl8kLwrmvXrmLAgAGiY8eORodlElh0zCq4ANX58+el70Q94M6dO4t58+aJiRMnGmWMqgxQnT59WrS3t+cKVGp86htgTZkyRcyaNUt06OCmdWNVLR48eFA8ePBA8aPoe86cOWL69OlF17Ke4KPZt2+f+PTpU9aqvCnft29f0draKnr06OFcn61Jrvv37xeAhb9k6tSp4uvXr1KqPHnyRFy4cEGMHTtW+lVMcAXJePjwYQmsXr16SeCigl19q7OM+ffv3+Lly5fi8uXL0ul54sQJsXr16ixVWilrDVxPnz6VHcYZN3fuXHnMTGTlypViy5YtAga9ePHCGLiuXr0qbSycgOvWrRNdunSxwjBXKoWvo0aNEtu3bxePHj0S9+7dE2PGjHGle7If1pT1ly9fZAO9e/cuGjBGoxLhJtUXzIWwQ/IOLMVQJLSyXdX41W8ufFsDF0sIECqQGZsipNXHjx/lqbpH/Zbl+8OHD7I4qrCRCJsLwsvuGllTi3h6sQmQYDt37hQTJkyQSws3btyQPOjTp49obm42xg9mphDqlnUynwl3Q1o3g7Ip1fhdGrc1cAGeRYsWiePHj8u36uzZs4Vx46dZtmxZagYWCkYOnj17JrDrAC/GPKCC9u/fH7nL30NcNkOHDhUzZswQAwcO9HIg1sAFN8aPHy+dfVeuXJFOVN5GDNGZM2dqLzNgpwFY1G2eCX8dbhwiFXDZ4M+qhfPZJE+tgouOYlchpUwQttqOHTuKbDgT9bpcB1L50qVLAkmWNQSm1uO0Di6TAzp27JgEFmp1/vz5YuTIkbmcGQIoAvdY3UByQRwzXmXAm+SrrbqszRZNdxgmY2dB+MrGjRuXS2AxPtQfEn/VqlXSjOAaNqWaDHHuA3kDLuWU5c0dMmSID7w10sdJkyYV6sEr7xN5A67Pnz9Lvsadsj4xW6evOEoVESXqE3kDLuyQQH5xwBtw+cXW0Fs44NVsMe0jw1vNBEDHU48vDuelyXDftP3O2325BNfRo0dllIDuw8Ku27Bhg27xUO5/DuRSLaqFcd2nzORBLSfp1hHK5VQtLlmyRC6a66pFfGhqQVgHJARFEhXLJAQpSIyZL8SLyRIb0SU4q7NQLtUiDsjly5dn4YtWWSTeqVOnBFG4UcIvx15Al73rhEKxAhIN3RkxYoTst4q/i44pzXEu1WKagZu+Byfvtm3b/gEW7Tx//lxGjN6+fdt0s0bqwzm7a9euImBRMRGuhEuxiK5DAVw6XIuVIRjyyJEjiQvq2HDEuptM9BHrhvYpEkup8LVr14pNmzYJTAtMA6Qx65o6FMClw7VYmXPnzsm4stjlf05xkaA2XSLi4RTgUd2ERBEmTnAnIeOQWnqrtt8BXNVyrMT91cSvE4fm0jKO2uvAsOJLawR8Qrp7HXJp0MMQxLnObJGyceJNLudUxR6pFizMyLLOxOJ91D1nkkEUBmqRl4QtgJA651h3r0MuwYWNQICdSVq6dKmMrI3XqeOySBsfH2/Lxjl9Yf8ok40zZ85IFQngoiFOaodRte1nUovEV925c6faNq3fX26Xd5aGmTmVIh5ONS4G7o+rn1L11vLaggULpF+LNm/duiVBpmLnCFXH76dDmSTX9evXZcQkyHeJiNHnLdSdQsfHgkqcPHly/HLhnJirtIY6hrJLkotBoPbZSMzG4sePHxecqIAqy0ZbLXARgovdgF3DA0SEYkMw03CBYEgWplQ7BoCHvYI/K4mQWGr3edJ99fgN9c5GEJP5O7TARbIPgKXowIED8hD/SKPsdlZjV98rVqwQLJiX25WkNqqYTlOk2nfxWwtca9askeDCv4MEY6kFydWowOLBdu/eXWabwWbhg3THccp0HrOBWZhvW8OyAlYLXITe8sEWYZG2kWLaKzEcm4pPoIxREejnqBMuMFRIn1fch8XyUCNKdS3JpUDk6zZz1X9T39ifzLSIhkCSkyuLaFaIpZU9e/ZIpyT7DllSaZRkKZnAleXhsKRAcn2Y3/I3acns2bOzVFdUlpkbuSmSXBEY1rSp68OhQWwqHLb8pUk0uPDVq1dF4FLSXdljtLlw4UK5i7qo4zk7qRu4yAJIDBGENx3DN8uDjj6XixcvFtI0Ra9Hj1myIbuhbptIK2bJJBKO06BBgwqXSrln8IbjtmDTa56lWCYPfYGDGgdkWo5S/Dz6W7XHZNxLQ6gpHUIS7d27tySwqI9My4qYRfKJE7Ps3bt3y1ll/Le8nNdNcvFg7969W+Dj8OHDC8dZD1B3rIclLVyjFnXCj1nQPXToUCFMJd5XloJIGhIlbFMczXFCepLyaf369f+Uid9b7lypY9e8/vS3buBiIRiVQFgt3vRhw4aV45/WdR3gpGmIdFBKnZe6v1QEAZKsFLgoj+1JanOC83RIxWK5tl7JWOoGLt40Epv5REwQyJaYRFF7S91XaVaNoY+TtZoFcOoGmDdv3pTN1HK5S42r0nfdwFWpYy7+zoNMmoHS51ISM41UYcZZ6Q+diGRlAsE3M1ImQvQHk4IZt2sUwFXFE0kTyqPcDtFqS12L/s5xObUZvY8ZKsnvooS001Wp0XpsHNdttmhjMDbrRFok2VqqbZyp3BulNH/tCwCV/RQtW+4Ys4JMg4TK6G79Kle3qetBcqXkJK4DZoqViPuYAeLDYkaKLy2NVKJe0p0n2V0kMMatwZqujT+WqjS2an8P4ErJsWri5Nktgx+MGTAO3bTE0lESUV8a+y2pjlr+5g241GJwJYPaFvOQFkiiJN9ZtG1UaBo1Gi1TSr1F/yCilDM2Wt61Y2/ApfxHzJbqEWXA8tTGjRulXYSEAWQ4MPkodam+kx4yMV3qQ/QnthMvDvWrFyhaXu0ZJMQJcPtETvc2+tYy3eZhILmI+CT9eNwTbpvxACG6tGO7PaIs2KcA4ceK8qNU266F9Vj9v8VSDEhzDQC1tbUlrruhpghSLPW2p2nD5XuQhkSy4suqhrDHiBJ2RX06KblgKsxNIlRTPJtM0v2N8BuzTbaEueJQddLPRZhKCJ2u/nVAZZsMAKi+B8UlnFSLxV0MZ75ywEnJ5SszQ7+LORDAVcyPcGaQAwFcBpkZqirmQABXMT/CmUEOBHAZZGaoqpgDAVzF/AhnBjkQwGWQmbarYuUCJylhPT6Qkx56HxhX6z6y0Zf/9lZRIey3ZJOLy8lNArhqjRKN9ghvZrGeyBA2tZCmiQVtNn4kJaXTaMpoEe/Voi8qIstTIy6M0GlSALDfkzSTLFKXywWWpS2TZb0GFyHEW7dulUlATDLFtbpUKI1azCfeno/rESFeq0XFbJOpAFwDFv0hYw4qEJurvb1dBiwiydSfELjYZ/rkNbhcZarpfmG0t7a2ynh8ZotEjJAbTUXnmm7PVH3eRUWQGkkltmUrFtGZBA6qjQuEnJDNOVD9OeCV5GIaTq6GOBE4qHbOEGjIW63z5wPxesN5Ng54J7nY9ax21XBMIhP2+ql0SM3NzYL/CQxUfw54JblgF7m3VP4twnoBF8auq/nd6/+I69cDr10R9WNbaDkNB7wGF9ut2OkyevToNGMN99SYA97ZXDXmT2guAwe8llwZxh2K1oADAVw1YHKjNvEfaorIMxGe6ooAAAAASUVORK5CYII="
/***/ }),
/***/ "zrhs":
/*!******************************************************!*\
!*** ./src/components/AuthenticationModel/index.tsx ***!
\******************************************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var antd_es_modal_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/modal/style */ "2qtc");
/* harmony import */ var antd_es_modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/modal */ "kLXV");
/* harmony import */ var _Users_caishi_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@umijs/bundler-utils/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties */ "SIvP");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "q1tI");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! umi */ "9kvl");
var AuthModal = function AuthModal(_ref) {
var shixunsDetail = _ref.shixunsDetail,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
dispatch = _ref.dispatch,
props = Object(_Users_caishi_forgeplus_react_node_modules_umijs_bundler_utils_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_ref, ["shixunsDetail", "globalSetting", "loading", "dispatch"]);
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(antd_es_modal__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
centered: true,
keyboard: false,
closable: false,
zIndex: 6666,
title: "\u63D0\u793A",
visible: shixunsDetail.actionTabs.key === 'Banner-Auth',
okText: "\u786E\u5B9A",
cancelText: "\u53D6\u6D88",
onOk: function onOk() {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {}
});
window.location.href = '/account/certification';
},
onCancel: function onCancel() {
dispatch({
type: 'shixunsDetail/setActionTabs',
payload: {}
});
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("p", {
className: "tc font16"
}, "\u5F53\u524D\u7ADE\u8D5B\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u8BF7\u5148\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u518D\u62A5\u540D\u53C2\u8D5B", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("br", null), "\u8BF7\u95EE\u662F\u5426\u524D\u5F80\u8FDB\u884C\u8BA4\u8BC1\uFF1F"));
};
/* harmony default export */ __webpack_exports__["a"] = (Object(umi__WEBPACK_IMPORTED_MODULE_4__[/* connect */ "a"])(function (_ref2) {
var shixunsDetail = _ref2.shixunsDetail,
loading = _ref2.loading,
globalSetting = _ref2.globalSetting;
return {
shixunsDetail: shixunsDetail,
globalSetting: globalSetting,
loading: loading.models.index
};
})(AuthModal));
/***/ })
}]);