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.
1 line
24 KiB
1 line
24 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[201],{"1ZF9":function(t,e,n){t.exports=n.p+"static/Authorize.cc9c212f.png"},"Ag/M":function(t,e,n){t.exports={flex_box_center:"flex_box_center___nHLyM",flex_space_between:"flex_space_between___3nl22",flex_box_vertical_center:"flex_box_vertical_center___ChEij",flex_box_center_end:"flex_box_center_end___1VMKU",flex_box_column:"flex_box_column___Rc09z",ul:"ul___2T2zv"}},Lmeb:function(t,e,n){},"NFd+":function(t,e,n){"use strict";n.r(e);n("14J3");var r=n("BMrR"),o=(n("g9YV"),n("wCAj")),i=(n("jCWc"),n("kPKH")),a=(n("miYZ"),n("tsqr")),c=(n("2qtc"),n("kLXV")),u=n("oBTY"),l=n("9og8"),s=n("tJVT"),f=n("PpiC"),h=n("q1tI"),d=n.n(h),p=n("Ty5D"),v=n("9kvl"),m=n("NLgs"),y=n("HBuW"),g=(n("Lmeb"),n("wd/R")),x=n.n(g),b=n("Ag/M"),w=n.n(b),_=n("jb+D");function E(){E=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),c=new I(r||[]);return o(a,"_invoke",{value:k(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",m={};function y(){}function g(){}function x(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(P([])));_&&_!==n&&r.call(_,a)&&(b=_);var L=x.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?v:d,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=x,o(L,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:g,configurable:!0}),g.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(L),l(L,u,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}x.a.locale("ZH-cn");var L=function(t){t.classroomList,t.globalSetting,t.loading,t.user;var e=t.dispatch,n=(Object(f["a"])(t,["classroomList","globalSetting","loading","user","dispatch"]),Object(p["m"])(),Object(h["useState"])()),g=Object(s["a"])(n,2),x=g[0],b=g[1],L=Object(h["useState"])(""),O=Object(s["a"])(L,2),j=O[0],k=O[1];Object(h["useEffect"])((function(){T()}),[]);var T=function(){var t=Object(l["a"])(E().mark((function t(){var e;return E().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(_["u"])();case 2:e=t.sent,0===(null===e||void 0===e?void 0:e.status)&&(k(e.subject_name),b(Object(u["a"])(e.data)));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),N=function(t){Object(m["e"])(e)&&(t.is_jupyter||t.is_jupyter_lab?e({type:"shixunsDetail/execJupyter",payload:{id:t.identifier}}).then((function(t){(null===t||void 0===t?void 0:t.identifier)&&(null===v["c"]||void 0===v["c"]||v["c"].push("/tasks/".concat(t.identifier,"/jupyter")))})):e({type:"shixunsDetail/execShixun",payload:{id:t.identifier}}).then((function(t){(null===t||void 0===t?void 0:t.game_identifier)?null===v["c"]||void 0===v["c"]||v["c"].push("/tasks/".concat(t.game_identifier)):2===(null===t||void 0===t?void 0:t.status)?S(null===t||void 0===t?void 0:t.message):3===(null===t||void 0===t?void 0:t.status)&&I(null===t||void 0===t?void 0:t.message)})))},S=function t(e){var n;e=(null===(n=e)||void 0===n?void 0:n.includes(".json"))?e:"".concat(e,".json"),c["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:d.a.createElement("div",{className:"tc font16"},"\u5b9e\u8bad\u5df2\u7ecf\u66f4\u65b0\u4e86\uff0c\u6b63\u5728\u4e3a\u60a8\u91cd\u7f6e!"),onOk:function(){var n=Object(l["a"])(E().mark((function n(){var r,o;return E().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(y["ub"])({url:e});case 2:if(r=n.sent,r){n.next=5;break}return n.abrupt("return");case 5:return a["b"].success("\u91cd\u7f6e\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u5b9e\u8bad\uff01"),n.next=8,Object(y["A"])({id:r.shixun_identifier});case 8:if(o=n.sent,!(null===o||void 0===o?void 0:o.game_identifier)){n.next=12;break}return null===v["c"]||void 0===v["c"]||v["c"].push("/tasks/".concat(o.game_identifier)),n.abrupt("return");case 12:2===(null===o||void 0===o?void 0:o.status)?t(null===o||void 0===o?void 0:o.message):3===(null===o||void 0===o?void 0:o.status)&&I(null===o||void 0===o?void 0:o.message);case 13:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})},I=function(t){c["a"].confirm({centered:!0,title:"\u63d0\u793a",okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:d.a.createElement("div",{className:"tc font16"},"\u76ee\u524d\u8be5\u5b9e\u8df5\u9879\u76ee\u5c1a\u5728\u5185\u6d4b\u4e2d\uff0c\u5c06\u4e8e",t,"\u4e4b\u540e\u5f00\u653e\uff0c\u8c22\u8c22\uff01")})},P=[{title:"\u5e8f\u53f7",dataIndex:"identifier",key:"identifier",render:function(t,e,n){return n+1}},{title:"\u5b9e\u8df5\u9879\u76ee\u540d\u79f0",dataIndex:"shixun_name",width:"60%",ellipsis:!0,key:"shixun_name"},{title:"\u5b66\u4e60\u8fdb\u5ea6",dataIndex:"challenges_count",key:"challenges_count",render:function(t,e){return d.a.createElement("span",null,e.leaning_challenge_count,"/",t)}},{title:"\u72b6\u6001",dataIndex:"challenges_count",key:"challenges_count",render:function(t,e){return d.a.createElement("span",null,e.leaning_challenge_count==t?d.a.createElement("span",{className:"c-green"},"\u5df2\u5b8c\u6210"):d.a.createElement("span",{className:"c-red"},"\u672a\u5b8c\u6210"))}},{title:"\u64cd\u4f5c",dataIndex:"shixun_name",render:function(t,e,n){return d.a.createElement("span",{onClick:function(){return N(e)},className:"c-blue current"},"\u5f00\u542f\u6311\u6218")}}];return d.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",marginTop:"40px",marginBottom:"20px"}},d.a.createElement(r["a"],null,d.a.createElement(i["a"],{flex:"280px"},d.a.createElement("ul",{className:w.a.ul},d.a.createElement("li",null,j))),d.a.createElement(i["a"],{flex:"1px"}),d.a.createElement(i["a"],{flex:"1",className:"bg-white p20"},d.a.createElement(o["a"],{dataSource:x||[],columns:P}))))};e["default"]=Object(v["a"])((function(t){var e=t.classroomList,n=t.loading,r=t.globalSetting,o=t.user;return{classroomList:e,globalSetting:r,loading:n.models.classroomList,user:o}}))(L)},NLgs:function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"f",(function(){return y})),n.d(e,"d",(function(){return x})),n.d(e,"c",(function(){return b})),n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return _}));n("miYZ");var r=n("tsqr"),o=n("9og8"),i=(n("2qtc"),n("kLXV")),a=n("q1tI"),c=n.n(a),u=n("9kvl"),l=n("xKgJ"),s=n("1vsH"),f=n("RCxd"),h=n("mOS8"),d=n.n(h),p=n("m3rI");function v(){v=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new I(r||[]);return o(a,"_invoke",{value:k(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",m="completed",y={};function g(){}function x(){}function b(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(P([])));E&&E!==n&&r.call(E,a)&&(w=E);var L=b.prototype=g.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?m:d,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return x.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:x,configurable:!0}),x.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},O(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(L),l(L,u,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}var m=function(t){return!(!y(t)||!g())},y=function(t){return!!Object(l["p"])()||(t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},g=function(){var t,e=Object(u["b"])()._store.getState(),n=e.user;return!!(null===(t=n.userInfo)||void 0===t?void 0:t.profile_completed)||(i["a"].confirm({title:"\u63d0\u793a",width:530,centered:!0,content:c.a.createElement("div",{className:"tc font16"},"\u60a8\u9700\u8981\u53bb\u5b8c\u5584\u60a8\u7684\u4e2a\u4eba\u8d44\u6599\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),okText:"\u7acb\u5373\u5b8c\u5584",cancelText:"\u7a0d\u540e\u5b8c\u5584",onOk:function(){u["c"].push("/account/profile/edit")}}),!1)},x=function(){var t,e=Object(u["b"])()._store.getState(),n=e.user;return!!(null===(t=n.userInfo)||void 0===t?void 0:t.professional_certification)||(i["a"].confirm({title:"\u63d0\u793a",centered:!0,content:c.a.createElement("div",{className:"tc"},"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u804c\u4e1a\u8ba4\u8bc1\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),okText:"\u7acb\u5373\u5b8c\u5584",cancelText:"\u7a0d\u540e\u5b8c\u5584",onOk:function(){Object(s["L"])("/account/certification")}}),!1)},b=function(){return!!Object(l["a"])()||(i["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("p",null,"\u60a8\u53ef\u4ee5\u5728QQ\u670d\u52a1\u7fa4\u5411\u7ba1\u7406\u5458\u7533\u8bf7\uff0c\u83b7\u5f97\u7ee7\u7eed\u64cd\u4f5c\u7684\u6743\u9650"),c.a.createElement("img",{src:Object(l["t"])()?n("WdTA"):"".concat(p["a"].IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),c.a.createElement("div",{className:"tc"},"\u7fa4\u53f7\uff1a",Object(l["t"])()?"693542422":"612934990")),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(s["L"])("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},w=function(t,e){return!!t||(i["a"].confirm({centered:!0,zIndex:1e4,width:530,title:"\u63d0\u793a",content:c.a.createElement("div",null,c.a.createElement("p",null,e||"\u8be5\u5b9e\u8df5\u8d44\u6e90\u9700\u6388\u6743\u540e\u624d\u53ef\u4f7f\u7528\u3002 \u60a8\u53ef\u4ee5\u5728QQ\u670d\u52a1\u7fa4\u5411\u7ba1\u7406\u5458\u7533\u8bf7\uff0c\u83b7\u5f97\u7ee7\u7eed\u64cd\u4f5c\u7684\u6743\u9650\u3002"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:n("1ZF9"),width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"\u7fa4\u53f7\uff1a","714336072"))),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(s["L"])("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u["b"])()._store.getState(),a=n.shixunsDetail.detail;return 2===(null===a||void 0===a?void 0:a.public)||1===(null===a||void 0===a?void 0:a.public)||3===(null===a||void 0===a?void 0:a.shixun_status)?(i["a"].info({centered:!0,icon:c.a.createElement(f["a"],{style:{color:"#faad14"}}),width:460,title:"\u63d0\u793a",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8be5\u5b9e\u8df5\u9879\u76ee\u7684\u72b6\u6001\u4e3a",2===(null===a||void 0===a?void 0:a.public)?"\u5df2\u516c\u5f00":1===(null===a||void 0===a?void 0:a.public)?"\u5f85\u5ba1\u6838":"\u5df2\u5173\u95ed","\uff0c",e,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uff0c\u8bf7\u8054\u7cfb\u5e73\u53f0\u7ba1\u7406\u5458\u8fdb\u884c\u6280\u672f\u652f\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:d.a,alt:"\u4e8c\u7ef4\u7801",width:160})),okText:"\u6211\u77e5\u9053\u4e86"}),!0):2===(null===a||void 0===a?void 0:a.shixun_status)&&(i["a"].confirm({centered:!0,icon:c.a.createElement(f["a"],null),title:"\u63d0\u793a",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8be5\u5b9e\u8df5\u9879\u76ee\u5df2\u53d1\u5e03\uff0c",e,"\u3002"),c.a.createElement("br",null),c.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uff0c\u60a8\u53ef\u4ee5\u64a4\u9500\u53d1\u5e03\u540e\uff0c\u518d\u8fdb\u884c\u64cd\u4f5c\u3002")),okText:"\u64a4\u9500\u53d1\u5e03",cancelText:"\u53d6\u6d88",onOk:function(){i["a"].confirm({width:440,centered:!0,icon:c.a.createElement(f["a"],{style:{color:"#faad14"}}),title:"\u63d0\u793a",content:"\u64a4\u9500\u53d1\u5e03\u540e\uff0c\u5b66\u5458\u5c06\u65e0\u6cd5\u8fdb\u884c\u7ec3\u4e60\u3002\u662f\u5426\u786e\u8ba4\u64a4\u9500\u53d1\u5e03\uff1f",okText:"\u786e\u5b9a\u64a4\u9500\u53d1\u5e03",cancelText:"\u53d6\u6d88",onOk:function(){var e=Object(o["a"])(v().mark((function e(){var n;return v().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunsDetail/cancelRelease",payload:{id:null===a||void 0===a?void 0:a.identifier}});case 2:n=e.sent,401!==n.status&&(r["b"].success("\u64a4\u9500\u53d1\u5e03\u6210\u529f\u3002\u5b9e\u8bad\u56de\u5230\u672a\u53d1\u5e03\u7684\u72b6\u6001\u3002"),t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===a||void 0===a?void 0:a.identifier}}),t({type:"practiceSetting/getCommonData",payload:{id:null===a||void 0===a?void 0:a.identifier}}));case 4:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})}}),!0)}},WdTA:function(t,e,n){t.exports=n.p+"static/studnetqun.a5754d96.png"},mOS8:function(t,e,n){t.exports=n.p+"static/403Qrcode.6c17b6f4.png"}}]); |