You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/410.async.js

268 lines
24 KiB

"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[410],{
/***/ 10410:
/*!*************************************************************************!*\
!*** ./src/pages/Shixuns/Detail/components/Right/index.tsx + 4 modules ***!
\*************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ components_Right; }
});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
var _umi_production_exports = __webpack_require__(23852);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/progress/index.js + 13 modules
var progress = __webpack_require__(93948);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/components/Right/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Rightmodules = ({"flex_box_center":"flex_box_center___PT9hL","flex_space_between":"flex_space_between___n2Hu5","flex_box_vertical_center":"flex_box_vertical_center___dwn6D","flex_box_center_end":"flex_box_center_end___TwHBO","flex_box_column":"flex_box_column___eAUqU","rightWrap":"rightWrap___Y_2WO","learnWrap":"learnWrap___mca1k","learnTopWrap":"learnTopWrap___cn6Tj","courseWrap":"courseWrap___N3Z6X","pathWrap":"pathWrap___QSdXs","pathImg":"pathImg___VjPqu","pathContentItem":"pathContentItem___sxOSQ","pathContentWrap":"pathContentWrap___WttwX","pathContentName":"pathContentName___evsEv","pathContent":"pathContent___fz4ds","pathContentCount":"pathContentCount___Jlv3G","recommandTrainingWrap":"recommandTrainingWrap___F1gpg","recommandContent":"recommandContent___JZYAA","recommandLevel":"recommandLevel___McDUw","color0152d9":"color0152d9___JWNjt","color999":"color999___npg2L","color888":"color888___l_1AP","color333":"color333___ec_mY","iconDeleteColor":"iconDeleteColor___aZjDG","iconMoveColor":"iconMoveColor___z4k0w","iconEditColor":"iconEditColor___wxNTY","skillWrap":"skillWrap___j6j3B","skillTopWrap":"skillTopWrap___kIJbE","time":"time___dTwAe","titleImg":"titleImg___I8kT9"});
;// CONCATENATED MODULE: ./src/assets/images/icons/learn.svg
var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
const SvgLearn = (props) => /* @__PURE__ */ React.createElement("svg", __spreadValues({ width: 22, height: 22, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React.createElement("title", null, "\u5B66\u4E60\u8FDB\u5EA6"), /* @__PURE__ */ React.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ React.createElement("path", { d: "M10 2c.02 0 .03.75.032 1.839l.03 8.16H9.19l-3.932 6.005h.98L10.062 12H20c0 5.523-4.477 10-10 10S0 17.523 0 12 4.477 2 10 2Zm-.348 12.938c-.463 0-.834.147-1.113.443-.279.295-.418.693-.418 1.193 0 .453.13.819.39 1.096.261.277.606.416 1.036.416.458 0 .827-.148 1.105-.443.279-.296.418-.691.418-1.186 0-.482-.124-.855-.373-1.121-.248-.266-.597-.399-1.045-.399Zm-.039.71c.185 0 .333.074.444.221.11.147.166.358.166.631 0 .583-.209.875-.625.875-.414 0-.621-.281-.621-.844 0-.588.212-.883.636-.883Zm-3.715-3.78c-.468 0-.84.148-1.115.446-.275.299-.412.695-.412 1.19 0 .453.13.818.389 1.094.259.276.605.414 1.037.414.46 0 .83-.147 1.105-.442.276-.294.414-.686.414-1.175 0-.477-.124-.85-.373-1.122-.248-.27-.597-.406-1.045-.406Zm-.023.71c.401 0 .602.283.602.848 0 .583-.21.875-.63.875-.41 0-.617-.28-.617-.84 0-.589.215-.883.645-.883Z", fill: "#1890FF" }), /* @__PURE__ */ React.createElement("path", { d: "M11 0c5.982 0 10.848 4.774 10.997 10.72L22 11h-3.667c0-3.974-3.16-7.21-7.105-7.33L11 3.667V0Z", fill: "#B6D0FC", fillRule: "nonzero" })));
/* harmony default export */ var learn = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTAgMmMuMDIgMCAuMDMuNzUuMDMyIDEuODM5bC4wMyA4LjE2SDkuMTlsLTMuOTMyIDYuMDA1aC45OEwxMC4wNjIgMTJIMjBjMCA1LjUyMy00LjQ3NyAxMC0xMCAxMFMwIDE3LjUyMyAwIDEyIDQuNDc3IDIgMTAgMlptLS4zNDggMTIuOTM4Yy0uNDYzIDAtLjgzNC4xNDctMS4xMTMuNDQzLS4yNzkuMjk1LS40MTguNjkzLS40MTggMS4xOTMgMCAuNDUzLjEzLjgxOS4zOSAxLjA5Ni4yNjEuMjc3LjYwNi40MTYgMS4wMzYuNDE2LjQ1OCAwIC44MjctLjE0OCAxLjEwNS0uNDQzLjI3OS0uMjk2LjQxOC0uNjkxLjQxOC0xLjE4NiAwLS40ODItLjEyNC0uODU1LS4zNzMtMS4xMjEtLjI0OC0uMjY2LS41OTctLjM5OS0xLjA0NS0uMzk5Wm0tLjAzOS43MWMuMTg1IDAgLjMzMy4wNzQuNDQ0LjIyMS4xMS4xNDcuMTY2LjM1OC4xNjYuNjMxIDAgLjU4My0uMjA5Ljg3NS0uNjI1Ljg3NS0uNDE0IDAtLjYyMS0uMjgxLS42MjEtLjg0NCAwLS41ODguMjEyLS44ODMuNjM2LS44ODNabS0zLjcxNS0zLjc4Yy0uNDY4IDAtLjg0LjE0OC0xLjExNS40NDYtLjI3NS4yOTktLjQxMi42OTUtLjQxMiAxLjE5IDAgLjQ1My4xMy44MTguMzg5IDEuMDk0LjI1OS4yNzYuNjA1LjQxNCAxLjAzNy40MTQuNDYgMCAuODMtLjE0NyAxLjEwNS0uNDQyLjI3Ni0uMjk0LjQxNC0uNjg2LjQxNC0xLjE3NSAwLS40NzctLjEyNC0uODUtLjM3My0xLjEyMi0uMjQ4LS4yNy0uNTk3LS40MDYtMS4wNDUtLjQwNlptLS4wMjMuNzFjLjQwMSAwIC42MDIuMjgzLjYwMi44NDggMCAuNTgzLS4yMS44NzUtLjYzLjg3NS0uNDEgMC0uNjE3LS4yOC0uNjE3LS44NCAwLS41ODkuMjE1LS44ODMuNjQ1LS44ODNaIiBmaWxsPSIjMTg5MEZGIi8+PHBhdGggZD0iTTExIDBjNS45ODIgMCAxMC44NDggNC43NzQgMTAuOTk3IDEwLjcyTDIyIDExaC0zLjY2N2MwLTMuOTc0LTMuMTYtNy4yMS03LjEwNS03LjMzTDExIDMuNjY3VjBaIiBmaWxsPSIjQjZEMEZDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+");
;// CONCATENATED MODULE: ./src/assets/images/icons/course.svg
var course_defProp = Object.defineProperty;
var course_getOwnPropSymbols = Object.getOwnPropertySymbols;
var course_hasOwnProp = Object.prototype.hasOwnProperty;
var course_propIsEnum = Object.prototype.propertyIsEnumerable;
var course_defNormalProp = (obj, key, value) => key in obj ? course_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var course_spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (course_hasOwnProp.call(b, prop))
course_defNormalProp(a, prop, b[prop]);
if (course_getOwnPropSymbols)
for (var prop of course_getOwnPropSymbols(b)) {
if (course_propIsEnum.call(b, prop))
course_defNormalProp(a, prop, b[prop]);
}
return a;
};
const SvgCourse = (props) => /* @__PURE__ */ React.createElement("svg", course_spreadValues({ width: 22, height: 20, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React.createElement("title", null, "\u6240\u5C5E\u8BFE\u7A0B"), /* @__PURE__ */ React.createElement("g", { fillRule: "nonzero", fill: "none" }, /* @__PURE__ */ React.createElement("path", { d: "M1.248.026h2.495c.833 0 1.249.415 1.249 1.243v17.39c0 .829-.416 1.243-1.249 1.243H1.248C.416 19.902 0 19.488 0 18.66V1.27C0 .44.416.025 1.248.025ZM7.488.026h2.496c.832 0 1.248.415 1.248 1.243v17.39c0 .829-.416 1.243-1.248 1.243H7.488c-.832 0-1.248-.414-1.248-1.242V1.27c0-.83.416-1.244 1.248-1.244Z", fill: "#5091FF" }), /* @__PURE__ */ React.createElement("path", { d: "m13.404.688 2.412-.646c.32-.085.66-.04.947.124.287.165.496.437.582.755l4.522 16.8a1.242 1.242 0 0 1-.883 1.52l-2.411.644a1.249 1.249 0 0 1-1.528-.879L12.522 2.208a1.238 1.238 0 0 1 .124-.943c.166-.285.439-.494.758-.579v.002Z", fill: "#B6D0FC" })));
/* harmony default export */ var course = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMS4yNDguMDI2aDIuNDk1Yy44MzMgMCAxLjI0OS40MTUgMS4yNDkgMS4yNDN2MTcuMzljMCAuODI5LS40MTYgMS4yNDMtMS4yNDkgMS4yNDNIMS4yNDhDLjQxNiAxOS45MDIgMCAxOS40ODggMCAxOC42NlYxLjI3QzAgLjQ0LjQxNi4wMjUgMS4yNDguMDI1Wk03LjQ4OC4wMjZoMi40OTZjLjgzMiAwIDEuMjQ4LjQxNSAxLjI0OCAxLjI0M3YxNy4zOWMwIC44MjktLjQxNiAxLjI0My0xLjI0OCAxLjI0M0g3LjQ4OGMtLjgzMiAwLTEuMjQ4LS40MTQtMS4yNDgtMS4yNDJWMS4yN2MwLS44My40MTYtMS4yNDQgMS4yNDgtMS4yNDRaIiBmaWxsPSIjNTA5MUZGIi8+PHBhdGggZD0ibTEzLjQwNC42ODggMi40MTItLjY0NmMuMzItLjA4NS42Ni0uMDQuOTQ3LjEyNC4yODcuMTY1LjQ5Ni40MzcuNTgyLjc1NWw0LjUyMiAxNi44YTEuMjQyIDEuMjQyIDAgMCAxLS44ODMgMS41MmwtMi40MTEuNjQ0YTEuMjQ5IDEuMjQ5IDAgMCAxLTEuNTI4LS44NzlMMTIuNTIyIDIuMjA4YTEuMjM4IDEuMjM4IDAgMCAxIC4xMjQtLjk0M2MuMTY2LS4yODUuNDM5LS40OTQuNzU4LS41Nzl2LjAwMloiIGZpbGw9IiNCNkQwRkMiLz48L2c+PC9zdmc+");
;// CONCATENATED MODULE: ./src/assets/images/icons/star.svg
var star_defProp = Object.defineProperty;
var star_getOwnPropSymbols = Object.getOwnPropertySymbols;
var star_hasOwnProp = Object.prototype.hasOwnProperty;
var star_propIsEnum = Object.prototype.propertyIsEnumerable;
var star_defNormalProp = (obj, key, value) => key in obj ? star_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var star_spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (star_hasOwnProp.call(b, prop))
star_defNormalProp(a, prop, b[prop]);
if (star_getOwnPropSymbols)
for (var prop of star_getOwnPropSymbols(b)) {
if (star_propIsEnum.call(b, prop))
star_defNormalProp(a, prop, b[prop]);
}
return a;
};
const SvgStar = (props) => /* @__PURE__ */ React.createElement("svg", star_spreadValues({ width: 22, height: 22, xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React.createElement("title", null, "\u63A8\u8350\u5B9E\u8BAD"), /* @__PURE__ */ React.createElement("g", { fillRule: "nonzero", fill: "none" }, /* @__PURE__ */ React.createElement("path", { d: "M15.503 21.896a2.067 2.067 0 0 1-.87-.201 451.987 451.987 0 0 1-4.376-2.11c-1.466.69-2.931 1.384-4.396 2.08-.674.299-1.33.26-1.816-.096-.458-.335-.685-.912-.624-1.579.173-1.56.465-3.693.574-4.485a188.029 188.029 0 0 1-3.587-3.922 1.5 1.5 0 0 1-.3-1.51c.213-.574.76-.982 1.472-1.086l4.655-.853A512.95 512.95 0 0 1 8.787 3.73c.717-1.344 1.426-1.344 1.8-1.209.407.134.792.531 1.177 1.223.829 1.433 2.08 3.642 2.504 4.391l4.61.858c.678.1 1.218.507 1.428 1.084a1.507 1.507 0 0 1-.286 1.504 192.808 192.808 0 0 1-3.556 3.944c.104.788.388 2.927.573 4.479.071.685-.152 1.269-.616 1.609a1.55 1.55 0 0 1-.916.284h-.002Z", fill: "#5091FF" }), /* @__PURE__ */ React.createElement("path", { d: "M21.706 4.462a.557.557 0 0 1-.247.073c-.45.03-1.122.067-1.397.08l-.778 1.2c-.122.18-.29.265-.464.24-.163-.02-.306-.14-.39-.329a60.81 60.81 0 0 1-.529-1.278 53.009 53.009 0 0 1-1.476-.518.475.475 0 0 1-.3-.36.533.533 0 0 1 .2-.505l1.025-.91c-.011-.516-.02-1.032-.028-1.548-.024-.463.15-.568.264-.585.121-.026.275.024.474.151.419.262 1.06.667 1.277.804l1.27-.448a.49.49 0 0 1 .515.08c.124.11.183.28.155.441-.09.526-.186 1.052-.29 1.574.145.194.536.722.814 1.11.12.172.152.36.088.518a.435.435 0 0 1-.185.21h.002ZM2.859 5.83a.287.287 0 0 1-.093-.091 62.17 62.17 0 0 1-.382-.603 49.99 49.99 0 0 0-.7-.045c-.106-.01-.185-.063-.218-.146a.276.276 0 0 1 .04-.255c.14-.197.334-.46.407-.557a28.397 28.397 0 0 1-.149-.786.243.243 0 0 1 .076-.223.25.25 0 0 1 .264-.037l.64.228c.108-.068.431-.27.644-.398.19-.128.278-.075.314-.03.04.047.059.128.054.25l-.019.768.506.453a.258.258 0 0 1 .095.249.238.238 0 0 1-.147.178c-.245.092-.49.18-.736.265-.047.113-.171.42-.264.64-.044.095-.115.159-.197.168a.208.208 0 0 1-.135-.028Z", fill: "#B6D0FC" })));
/* harmony default export */ var star = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTUuNTAzIDIxLjg5NmEyLjA2NyAyLjA2NyAwIDAgMS0uODctLjIwMSA0NTEuOTg3IDQ1MS45ODcgMCAwIDEtNC4zNzYtMi4xMWMtMS40NjYuNjktMi45MzEgMS4zODQtNC4zOTYgMi4wOC0uNjc0LjI5OS0xLjMzLjI2LTEuODE2LS4wOTYtLjQ1OC0uMzM1LS42ODUtLjkxMi0uNjI0LTEuNTc5LjE3My0xLjU2LjQ2NS0zLjY5My41NzQtNC40ODVhMTg4LjAyOSAxODguMDI5IDAgMCAxLTMuNTg3LTMuOTIyIDEuNSAxLjUgMCAwIDEtLjMtMS41MWMuMjEzLS41NzQuNzYtLjk4MiAxLjQ3Mi0xLjA4Nmw0LjY1NS0uODUzQTUxMi45NSA1MTIuOTUgMCAwIDEgOC43ODcgMy43M2MuNzE3LTEuMzQ0IDEuNDI2LTEuMzQ0IDEuOC0xLjIwOS40MDcuMTM0Ljc5Mi41MzEgMS4xNzcgMS4yMjMuODI5IDEuNDMzIDIuMDggMy42NDIgMi41MDQgNC4zOTFsNC42MS44NThjLjY3OC4xIDEuMjE4LjUwNyAxLjQyOCAxLjA4NGExLjUwNyAxLjUwNyAwIDAgMS0uMjg2IDEuNTA0IDE5Mi44MDggMTkyLjgwOCAwIDAgMS0zLjU1NiAzLjk0NGMuMTA0Ljc4OC4zODggMi45MjcuNTczIDQuNDc5LjA3MS42ODUtLjE1MiAxLjI2OS0uNjE2IDEuNjA5YTEuNTUgMS41NSAwIDAgMS0uOTE2LjI4NGgtLjAwMloiIGZpbGw9IiM1MDkxRkYiLz48cGF0aCBkPSJNMjEuNzA2IDQuNDYyYS41NTcuNTU3IDAgMCAxLS4yNDcuMDczYy0uNDUuMDMtMS4xMjIuMDY3LTEuMzk3LjA4bC0uNzc4IDEuMmMtLjEyMi4xOC0uMjkuMjY1LS40NjQuMjQtLjE2My0uMDItLjMwNi0uMTQtLjM5LS4zMjlhNjAuODEgNjAuODEgMCAwIDEtLjUyOS0xLjI3OCA1My4wMDkgNTMuMDA5IDAgMCAxLTEuNDc2LS41MTguNDc1LjQ3NSAwIDAgMS0uMy0uMzYuNTMzLjUzMyAwIDAgMSAuMi0uNTA1bDEuMDI1LS45MWMtLjAxMS0uNTE2LS4wMi0xLjAzMi0uMDI4LTEuNTQ4LS4wMjQtLjQ2My4xNS0uNTY4LjI2NC0uNTg1LjEyMS0uMDI2LjI3NS4wMjQuNDc0LjE1MS40MTkuMjYyIDEuMDYuNjY3IDEuMjc3LjgwNGwxLjI3LS40NDhhLjQ5LjQ5IDAgMCAxIC41MTUuMDhjLjEyNC4xMS4xODMuMjguMTU1LjQ0MS0uMDkuNTI2LS4xODYgMS4wNTItLjI5IDEuNTc0LjE0NS4xOTQuNTM2LjcyMi44MTQgMS4xMS4xMi4xNzIuMTUyLjM2LjA4OC41MThhLjQzNS40MzUgMCAwIDEtLjE4NS4yMWguMDAyWk0yLjg1OSA1LjgzYS4yODcuMjg3IDAgMCAxLS4wOTMtLjA5MSA2Mi4xNyA2Mi4xNyAwIDAgMS0uMzgyLS42MDMgNDkuOTkgNDkuOTkgMCAwIDAtLjctLjA0NWMtLjEwNi0uMDEtLjE4NS0uMDYzLS4yMTgtLjE0NmEuMjc2LjI3NiAwIDAgMSAuMDQtLjI1NWMuMTQtLjE5Ny4zMzQtLjQ2LjQwNy0uNTU3YTI4LjM5NyAyOC4zOTcgMCAwIDEtLjE0OS0uNzg2LjI0My4yNDMgMCAwIDEgLjA3Ni0uMjIzLjI1LjI1IDAgMCAxIC4yNjQtLjAzN2wuNjQuMjI4Yy4xMDgtLjA2OC40MzEtLjI3LjY0NC0uMzk4LjE5LS4xMjguMjc4LS4wNzUuMzE0LS4wMy4wNC4wNDcuMDU5LjEyOC4wNTQuMjVsLS4wMTkuNzY4LjUwNi40NTNhLjI1OC4yNTggMCAwIDEgLjA5NS4yNDkuMjM4LjIzOCAwIDAgMS0uMTQ3LjE3OGMtLjI0NS4wOTItLjQ5LjE4LS43MzYuMjY1LS4wNDcuMTEzLS4xNzEuNDItLjI2NC42NC0uMDQ0LjA5NS0uMTE1LjE1OS0uMTk3LjE2OGEuMjA4LjIwOCAwIDAgMS0uMTM1LS4wMjhaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==");
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
var lib = __webpack_require__(42441);
// EXTERNAL MODULE: ./src/components/ImagesIcon/index.ts + 33 modules
var ImagesIcon = __webpack_require__(81200);
// EXTERNAL MODULE: ./node_modules/_echarts-wordcloud@1.1.3@echarts-wordcloud/index.js
var _echarts_wordcloud_1_1_3_echarts_wordcloud = __webpack_require__(56047);
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/components/Right/index.tsx
var Right_getOwnPropSymbols = Object.getOwnPropertySymbols;
var Right_hasOwnProp = Object.prototype.hasOwnProperty;
var Right_propIsEnum = Object.prototype.propertyIsEnumerable;
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (Right_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && Right_getOwnPropSymbols)
for (var prop of Right_getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && Right_propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
const Right = (_a) => {
var _b = _a, {
shixunsDetail,
user,
globalSetting,
loading,
dispatch
} = _b, props = __objRest(_b, [
"shixunsDetail",
"user",
"globalSetting",
"loading",
"dispatch"
]);
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
const [showExpandAll, setShowExpandAll] = (0,_react_17_0_2_react.useState)(true);
const getOption = () => {
var _a3, _b3;
let maskImage = new Image();
maskImage.src = ImagesIcon/* hbIcon */.yt;
let wordData = ((_b3 = (_a3 = shixunsDetail == null ? void 0 : shixunsDetail.rightData) == null ? void 0 : _a3.tags) == null ? void 0 : _b3.map((item, key) => {
return { name: item.tag_name, value: key };
})) || [];
let option = {
backgroundColor: "#fff",
tooltip: {
pointFormat: "{series.name}</b>"
},
series: [
{
type: "wordCloud",
sizeRange: [10, 30],
rotationRange: [-90, 90],
rotationStep: 45,
gridSize: 2,
shape: "pentagon",
//circle pentagon
maskImage,
// 呈现形状图片, 可选
textStyle: {
normal: {
color: function() {
return "rgb(" + Math.round(Math.random() * 255) + ", " + Math.round(Math.random() * 255) + ", " + Math.round(Math.random() * 255) + ")";
}
}
},
// Folllowing left/top/width/height/right/bottom are used for positioning the word cloud
// Default to be put in the center and has 75% x 80% size.
left: "center",
top: "center",
right: null,
bottom: null,
width: "100%",
height: "100%",
data: wordData
}
]
};
return option;
};
console.log("----", shixunsDetail);
const progressPercent = ((_a2 = shixunsDetail.rightData) == null ? void 0 : _a2.complete_count) ? Number((_b2 = shixunsDetail.rightData) == null ? void 0 : _b2.complete_count) / Number((_c = shixunsDetail.rightData) == null ? void 0 : _c.challenge_count) * 100 : 0;
return shixunsDetail.rightData ? /* @__PURE__ */ _react_17_0_2_react.createElement("section", { className: Rightmodules.rightWrap }, !((_d = shixunsDetail.detail) == null ? void 0 : _d.is_jupyter) && ((_f = (_e = shixunsDetail.detail) == null ? void 0 : _e.task_operation) == null ? void 0 : _f[2]) && ((_g = user == null ? void 0 : user.userInfo) == null ? void 0 : _g.login) && !!((_h = shixunsDetail.rightData) == null ? void 0 : _h.complete_count) && ((_i = shixunsDetail.rightData) == null ? void 0 : _i.complete_count) > 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.learnWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.learnTopWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { className: Rightmodules.titleImg, src: learn, alt: "" }), "\u5B66\u4E60\u8FDB\u5EA6"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${Rightmodules.color888} font14` }, "\u5DF2\u5B8C\u6210 ", ((_j = shixunsDetail.rightData) == null ? void 0 : _j.complete_count) || 0, " \u5173 / \u5171", ((_k = shixunsDetail.rightData) == null ? void 0 : _k.challenge_count) || 0, " \u5173"))), /* @__PURE__ */ _react_17_0_2_react.createElement(
progress/* default */.Z,
{
percent: progressPercent,
showInfo: false,
status: "active",
strokeColor: { "0%": "#29BD8B", "100%": "#29BD8B" }
}
)), !!((_m = (_l = shixunsDetail.rightData) == null ? void 0 : _l.paths) == null ? void 0 : _m.length) && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.courseWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "mb20 font16" }, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { className: Rightmodules.titleImg, src: course, alt: "" }), "\u6240\u5C5E\u8BFE\u7A0B"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, (_n = shixunsDetail.rightData) == null ? void 0 : _n.paths.map((item, key) => {
if (key > 2) {
return null;
}
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.pathWrap, key: item.id }, /* @__PURE__ */ _react_17_0_2_react.createElement("a", { href: `/paths/${item.id}`, target: "_blank" }, /* @__PURE__ */ _react_17_0_2_react.createElement(
"img",
{
alt: "\u5B9E\u8BAD",
src: `${item.image_url}`,
className: Rightmodules.pathImg
}
)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.pathContentWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(
"a",
{
href: `/paths/${item.id}`,
target: "_blank",
className: Rightmodules.pathContentName
},
item.name
), /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: Rightmodules.pathContent }, /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { placement: "bottom", title: "\u7AE0\u8282" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: Rightmodules.pathContentCount }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-shixun mr3" }), item.stages_count)), /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { placement: "bottom", title: "\u5B66\u4E60\u4EBA\u6570" }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: Rightmodules.pathContentCount }, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-chengyuan mr3" }), item.members_count)))));
}))), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null), !!((_p = (_o = shixunsDetail.rightData) == null ? void 0 : _o.recommands) == null ? void 0 : _p.length) && user.userInfo.main_site && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.recommandTrainingWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "mb20 font16" }, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { className: Rightmodules.titleImg, src: star, alt: "" }), ((_r = (_q = shixunsDetail == null ? void 0 : shixunsDetail.detail) == null ? void 0 : _q.disciplines) == null ? void 0 : _r.length) > 0 ? "\u76F8\u5173\u63A8\u8350" : "\u70ED\u95E8\u63A8\u8350"), /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, (_s = shixunsDetail.rightData) == null ? void 0 : _s.recommands.map((item, key) => {
if (key > 2) {
return null;
}
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.pathContentItem, key }, /* @__PURE__ */ _react_17_0_2_react.createElement(
"a",
{
href: `/shixuns/${item.identifier}/challenges`,
target: "_blank"
},
/* @__PURE__ */ _react_17_0_2_react.createElement("img", { src: `${item.pic}`, className: Rightmodules.pathImg })
), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.pathContentWrap, style: { marginBottom: -4 } }, /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { placement: "bottom", title: item.name }, /* @__PURE__ */ _react_17_0_2_react.createElement(
"a",
{
href: `/shixuns/${item.identifier}/challenges`,
target: "_blank",
className: Rightmodules.pathContentName
},
item.name
)), /* @__PURE__ */ _react_17_0_2_react.createElement(
"p",
{
className: `${Rightmodules.pathContent} ${Rightmodules.recommandContent}`
},
/* @__PURE__ */ _react_17_0_2_react.createElement("span", null, item.stu_num, " \u4EBA\u5B66\u4E60"),
/* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: Rightmodules.recommandLevel }, item.level)
)));
}))), ((_u = (_t = shixunsDetail.rightData) == null ? void 0 : _t.tags) == null ? void 0 : _u.length) > 0 && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: Rightmodules.skillWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: `${Rightmodules.skillTopWrap} font16 mb20` }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u6280\u80FD\u6807\u7B7E", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml5 c-grey-c" }, (_w = (_v = shixunsDetail.rightData) == null ? void 0 : _v.tags) == null ? void 0 : _w.length))), /* @__PURE__ */ _react_17_0_2_react.createElement(
lib/* default */.Z,
{
option: getOption(),
style: { height: 370 },
opts: { renderer: "svg" }
}
))) : null;
};
/* harmony default export */ var components_Right = ((0,_umi_production_exports.connect)(
({
shixunsDetail,
user,
loading,
globalSetting
}) => ({
shixunsDetail,
user,
globalSetting,
loading: loading.models.index
})
)(Right));
/***/ })
}]);