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.
2 lines
24 KiB
2 lines
24 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{"1ZF9":function(K,F,u){K.exports=u.p+"static/Authorize.cc9c212f.png"},"Ag/M":function(K,F,u){K.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(K,F,u){},"NFd+":function(K,F,u){"use strict";u.r(F);var Pt=u("14J3"),ht=u("BMrR"),Et=u("g9YV"),yt=u("wCAj"),H=u("jCWc"),it=u("kPKH"),y=u("miYZ"),ot=u("tsqr"),ut=u("2qtc"),at=u("kLXV"),lt=u("oBTY"),st=u("9og8"),dt=u("tJVT"),mt=u("PpiC"),Q=u("q1tI"),M=u.n(Q),_t=u("Ty5D"),w=u("9kvl"),vt=u("NLgs"),ft=u("HBuW"),pt=u("Lmeb"),gt=u.n(pt),x=u("wd/R"),v=u.n(x),T=u("Ag/M"),A=u.n(T),m=u("jb+D");function N(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */N=function(){return E};var O,E={},D=Object.prototype,B=D.hasOwnProperty,C=Object.defineProperty||function(n,t,r){n[t]=r.value},q=typeof Symbol=="function"?Symbol:{},G=q.iterator||"@@iterator",ct=q.asyncIterator||"@@asyncIterator",V=q.toStringTag||"@@toStringTag";function g(n,t,r){return Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{g({},"")}catch(n){g=function(r,l,d){return r[l]=d}}function Y(n,t,r,l){var d=t&&t.prototype instanceof Z?t:Z,f=Object.create(d.prototype),P=new s(l||[]);return C(f,"_invoke",{value:e(n,r,P)}),f}function k(n,t,r){try{return{type:"normal",arg:n.call(t,r)}}catch(l){return{type:"throw",arg:l}}}E.wrap=Y;var I="suspendedStart",tt="suspendedYield",$="executing",j="completed",L={};function Z(){}function W(){}function S(){}var J={};g(J,G,function(){return this});var et=Object.getPrototypeOf,b=et&&et(et(h([])));b&&b!==D&&B.call(b,G)&&(J=b);var p=S.prototype=Z.prototype=Object.create(J);function _(n){["next","throw","return"].forEach(function(t){g(n,t,function(r){return this._invoke(t,r)})})}function a(n,t){function r(d,f,P,U){var R=k(n[d],n,f);if(R.type!=="throw"){var nt=R.arg,X=nt.value;return X&&typeof X=="object"&&B.call(X,"__await")?t.resolve(X.__await).then(function(rt){r("next",rt,P,U)},function(rt){r("throw",rt,P,U)}):t.resolve(X).then(function(rt){nt.value=rt,P(nt)},function(rt){return r("throw",rt,P,U)})}U(R.arg)}var l;C(this,"_invoke",{value:function(f,P){function U(){return new t(function(R,nt){r(f,P,R,nt)})}return l=l?l.then(U,U):U()}})}function e(n,t,r){var l=I;return function(d,f){if(l===$)throw new Error("Generator is already running");if(l===j){if(d==="throw")throw f;return{value:O,done:!0}}for(r.method=d,r.arg=f;;){var P=r.delegate;if(P){var U=o(P,r);if(U){if(U===L)continue;return U}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(l===I)throw l=j,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);l=$;var R=k(n,t,r);if(R.type==="normal"){if(l=r.done?j:tt,R.arg===L)continue;return{value:R.arg,done:r.done}}R.type==="throw"&&(l=j,r.method="throw",r.arg=R.arg)}}}function o(n,t){var r=t.method,l=n.iterator[r];if(l===O)return t.delegate=null,r==="throw"&&n.iterator.return&&(t.method="return",t.arg=O,o(n,t),t.method==="throw")||r!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),L;var d=k(l,n.iterator,t.arg);if(d.type==="throw")return t.method="throw",t.arg=d.arg,t.delegate=null,L;var f=d.arg;return f?f.done?(t[n.resultName]=f.value,t.next=n.nextLoc,t.method!=="return"&&(t.method="next",t.arg=O),t.delegate=null,L):f:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,L)}function c(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]),this.tryEntries.push(t)}function i(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function s(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(c,this),this.reset(!0)}function h(n){if(n||n===""){var t=n[G];if(t)return t.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length)){var r=-1,l=function d(){for(;++r<n.length;)if(B.call(n,r))return d.value=n[r],d.done=!1,d;return d.value=O,d.done=!0,d};return l.next=l}}throw new TypeError(typeof n+" is not iterable")}return W.prototype=S,C(p,"constructor",{value:S,configurable:!0}),C(S,"constructor",{value:W,configurable:!0}),W.displayName=g(S,V,"GeneratorFunction"),E.isGeneratorFunction=function(n){var t=typeof n=="function"&&n.constructor;return!!t&&(t===W||(t.displayName||t.name)==="GeneratorFunction")},E.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,S):(n.__proto__=S,g(n,V,"GeneratorFunction")),n.prototype=Object.create(p),n},E.awrap=function(n){return{__await:n}},_(a.prototype),g(a.prototype,ct,function(){return this}),E.AsyncIterator=a,E.async=function(n,t,r,l,d){d===void 0&&(d=Promise);var f=new a(Y(n,t,r,l),d);return E.isGeneratorFunction(t)?f:f.next().then(function(P){return P.done?P.value:f.next()})},_(p),g(p,V,"Generator"),g(p,G,function(){return this}),g(p,"toString",function(){return"[object Generator]"}),E.keys=function(n){var t=Object(n),r=[];for(var l in t)r.push(l);return r.reverse(),function d(){for(;r.length;){var f=r.pop();if(f in t)return d.value=f,d.done=!1,d}return d.done=!0,d}},E.values=h,s.prototype={constructor:s,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=O,this.done=!1,this.delegate=null,this.method="next",this.arg=O,this.tryEntries.forEach(i),!t)for(var r in this)r.charAt(0)==="t"&&B.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=O)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function l(nt,X){return P.type="throw",P.arg=t,r.next=nt,X&&(r.method="next",r.arg=O),!!X}for(var d=this.tryEntries.length-1;d>=0;--d){var f=this.tryEntries[d],P=f.completion;if(f.tryLoc==="root")return l("end");if(f.tryLoc<=this.prev){var U=B.call(f,"catchLoc"),R=B.call(f,"finallyLoc");if(U&&R){if(this.prev<f.catchLoc)return l(f.catchLoc,!0);if(this.prev<f.finallyLoc)return l(f.finallyLoc)}else if(U){if(this.prev<f.catchLoc)return l(f.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<f.finallyLoc)return l(f.finallyLoc)}}}},abrupt:function(t,r){for(var l=this.tryEntries.length-1;l>=0;--l){var d=this.tryEntries[l];if(d.tryLoc<=this.prev&&B.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var f=d;break}}f&&(t==="break"||t==="continue")&&f.tryLoc<=r&&r<=f.finallyLoc&&(f=null);var P=f?f.completion:{};return P.type=t,P.arg=r,f?(this.method="next",this.next=f.finallyLoc,L):this.complete(P)},complete:function(t,r){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&r&&(this.next=r),L},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var l=this.tryEntries[r];if(l.finallyLoc===t)return this.complete(l.completion,l.afterLoc),i(l),L}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var l=this.tryEntries[r];if(l.tryLoc===t){var d=l.completion;if(d.type==="throw"){var f=d.arg;i(l)}return f}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,l){return this.delegate={iterator:h(t),resultName:r,nextLoc:l},this.method==="next"&&(this.arg=O),L}},E}v.a.locale("ZH-cn");var z=function(E){var D=E.classroomList,B=E.globalSetting,C=E.loading,q=E.user,G=E.dispatch,ct=Object(mt.a)(E,["classroomList","globalSetting","loading","user","dispatch"]),V=Object(_t.m)(),g=Object(Q.useState)(),Y=Object(dt.a)(g,2),k=Y[0],I=Y[1],tt=Object(Q.useState)(""),$=Object(dt.a)(tt,2),j=$[0],L=$[1];Object(Q.useEffect)(function(){Z()},[]);var Z=function(){var b=Object(st.a)(N().mark(function p(){var _;return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.u)();case 2:_=e.sent,(_==null?void 0:_.status)===0&&(L(_.subject_name),I(Object(lt.a)(_.data)));case 4:case"end":return e.stop()}},p)}));return function(){return b.apply(this,arguments)}}(),W=function(p){if(!Object(vt.e)(G))return;if(p.is_jupyter||p.is_jupyter_lab){G({type:"shixunsDetail/execJupyter",payload:{id:p.identifier}}).then(function(_){(_==null?void 0:_.identifier)&&(w.c===null||w.c===void 0||w.c.push("/tasks/".concat(_.identifier,"/jupyter")))});return}G({type:"shixunsDetail/execShixun",payload:{id:p.identifier}}).then(function(_){if(_==null?void 0:_.game_identifier){w.c===null||w.c===void 0||w.c.push("/tasks/".concat(_.game_identifier));return}(_==null?void 0:_.status)===2?S(_==null?void 0:_.message):(_==null?void 0:_.status)===3&&J(_==null?void 0:_.message)})},S=function b(p){var _;p=((_=p)===null||_===void 0?void 0:_.includes(".json"))?p:"".concat(p,".json"),at.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:M.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var a=Object(st.a)(N().mark(function o(){var c,i;return N().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ft.ub)({url:p});case 2:if(c=h.sent,c){h.next=5;break}return h.abrupt("return");case 5:return ot.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),h.next=8,Object(ft.A)({id:c.shixun_identifier});case 8:if(i=h.sent,!(i==null?void 0:i.game_identifier)){h.next=12;break}return w.c===null||w.c===void 0||w.c.push("/tasks/".concat(i.game_identifier)),h.abrupt("return");case 12:(i==null?void 0:i.status)===2?b(i==null?void 0:i.message):(i==null?void 0:i.status)===3&&J(i==null?void 0:i.message);case 13:case"end":return h.stop()}},o)}));function e(){return a.apply(this,arguments)}return e}()})},J=function(p){at.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:M.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",p,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},et=[{title:"\u5E8F\u53F7",dataIndex:"identifier",key:"identifier",render:function(p,_,a){return a+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(p,_){return M.a.createElement("span",null,_.leaning_challenge_count,"/",p)}},{title:"\u72B6\u6001",dataIndex:"challenges_count",key:"challenges_count",render:function(p,_){return M.a.createElement("span",null,_.leaning_challenge_count==p?M.a.createElement("span",{className:"c-green"},"\u5DF2\u5B8C\u6210"):M.a.createElement("span",{className:"c-red"},"\u672A\u5B8C\u6210"))}},{title:"\u64CD\u4F5C",dataIndex:"shixun_name",render:function(p,_,a){return M.a.createElement("span",{onClick:function(){return W(_)},className:"c-blue current"},"\u5F00\u542F\u6311\u6218")}}];return M.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",marginTop:"40px",marginBottom:"20px"}},M.a.createElement(ht.a,null,M.a.createElement(it.a,{flex:"280px"},M.a.createElement("ul",{className:A.a.ul},M.a.createElement("li",null,j))),M.a.createElement(it.a,{flex:"1px"}),M.a.createElement(it.a,{flex:"1",className:"bg-white p20"},M.a.createElement(yt.a,{dataSource:k||[],columns:et}))))};F.default=Object(w.a)(function(O){var E=O.classroomList,D=O.loading,B=O.globalSetting,C=O.user;return{classroomList:E,globalSetting:B,loading:D.models.classroomList,user:C}})(z)},NLgs:function(K,F,u){"use strict";u.d(F,"e",function(){return M}),u.d(F,"f",function(){return _t}),u.d(F,"d",function(){return vt}),u.d(F,"c",function(){return ft}),u.d(F,"a",function(){return pt}),u.d(F,"b",function(){return gt});var Pt=u("miYZ"),ht=u("tsqr"),Et=u("9og8"),yt=u("2qtc"),H=u("kLXV"),it=u("q1tI"),y=u.n(it),ot=u("9kvl"),ut=u("xKgJ"),at=u("1vsH"),lt=u("RCxd"),st=u("mOS8"),dt=u.n(st),mt=u("m3rI");function Q(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return v};var x,v={},T=Object.prototype,A=T.hasOwnProperty,m=Object.defineProperty||function(a,e,o){a[e]=o.value},N=typeof Symbol=="function"?Symbol:{},z=N.iterator||"@@iterator",O=N.asyncIterator||"@@asyncIterator",E=N.toStringTag||"@@toStringTag";function D(a,e,o){return Object.defineProperty(a,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),a[e]}try{D({},"")}catch(a){D=function(o,c,i){return o[c]=i}}function B(a,e,o,c){var i=e&&e.prototype instanceof Y?e:Y,s=Object.create(i.prototype),h=new p(c||[]);return m(s,"_invoke",{value:S(a,o,h)}),s}function C(a,e,o){try{return{type:"normal",arg:a.call(e,o)}}catch(c){return{type:"throw",arg:c}}}v.wrap=B;var q="suspendedStart",G="suspendedYield",ct="executing",V="completed",g={};function Y(){}function k(){}function I(){}var tt={};D(tt,z,function(){return this});var $=Object.getPrototypeOf,j=$&&$($(_([])));j&&j!==T&&A.call(j,z)&&(tt=j);var L=I.prototype=Y.prototype=Object.create(tt);function Z(a){["next","throw","return"].forEach(function(e){D(a,e,function(o){return this._invoke(e,o)})})}function W(a,e){function o(i,s,h,n){var t=C(a[i],a,s);if(t.type!=="throw"){var r=t.arg,l=r.value;return l&&typeof l=="object"&&A.call(l,"__await")?e.resolve(l.__await).then(function(d){o("next",d,h,n)},function(d){o("throw",d,h,n)}):e.resolve(l).then(function(d){r.value=d,h(r)},function(d){return o("throw",d,h,n)})}n(t.arg)}var c;m(this,"_invoke",{value:function(s,h){function n(){return new e(function(t,r){o(s,h,t,r)})}return c=c?c.then(n,n):n()}})}function S(a,e,o){var c=q;return function(i,s){if(c===ct)throw new Error("Generator is already running");if(c===V){if(i==="throw")throw s;return{value:x,done:!0}}for(o.method=i,o.arg=s;;){var h=o.delegate;if(h){var n=J(h,o);if(n){if(n===g)continue;return n}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(c===q)throw c=V,o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);c=ct;var t=C(a,e,o);if(t.type==="normal"){if(c=o.done?V:G,t.arg===g)continue;return{value:t.arg,done:o.done}}t.type==="throw"&&(c=V,o.method="throw",o.arg=t.arg)}}}function J(a,e){var o=e.method,c=a.iterator[o];if(c===x)return e.delegate=null,o==="throw"&&a.iterator.return&&(e.method="return",e.arg=x,J(a,e),e.method==="throw")||o!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=C(c,a.iterator,e.arg);if(i.type==="throw")return e.method="throw",e.arg=i.arg,e.delegate=null,g;var s=i.arg;return s?s.done?(e[a.resultName]=s.value,e.next=a.nextLoc,e.method!=="return"&&(e.method="next",e.arg=x),e.delegate=null,g):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function et(a){var e={tryLoc:a[0]};1 in a&&(e.catchLoc=a[1]),2 in a&&(e.finallyLoc=a[2],e.afterLoc=a[3]),this.tryEntries.push(e)}function b(a){var e=a.completion||{};e.type="normal",delete e.arg,a.completion=e}function p(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(et,this),this.reset(!0)}function _(a){if(a||a===""){var e=a[z];if(e)return e.call(a);if(typeof a.next=="function")return a;if(!isNaN(a.length)){var o=-1,c=function i(){for(;++o<a.length;)if(A.call(a,o))return i.value=a[o],i.done=!1,i;return i.value=x,i.done=!0,i};return c.next=c}}throw new TypeError(typeof a+" is not iterable")}return k.prototype=I,m(L,"constructor",{value:I,configurable:!0}),m(I,"constructor",{value:k,configurable:!0}),k.displayName=D(I,E,"GeneratorFunction"),v.isGeneratorFunction=function(a){var e=typeof a=="function"&&a.constructor;return!!e&&(e===k||(e.displayName||e.name)==="GeneratorFunction")},v.mark=function(a){return Object.setPrototypeOf?Object.setPrototypeOf(a,I):(a.__proto__=I,D(a,E,"GeneratorFunction")),a.prototype=Object.create(L),a},v.awrap=function(a){return{__await:a}},Z(W.prototype),D(W.prototype,O,function(){return this}),v.AsyncIterator=W,v.async=function(a,e,o,c,i){i===void 0&&(i=Promise);var s=new W(B(a,e,o,c),i);return v.isGeneratorFunction(e)?s:s.next().then(function(h){return h.done?h.value:s.next()})},Z(L),D(L,E,"Generator"),D(L,z,function(){return this}),D(L,"toString",function(){return"[object Generator]"}),v.keys=function(a){var e=Object(a),o=[];for(var c in e)o.push(c);return o.reverse(),function i(){for(;o.length;){var s=o.pop();if(s in e)return i.value=s,i.done=!1,i}return i.done=!0,i}},v.values=_,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(b),!e)for(var o in this)o.charAt(0)==="t"&&A.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=x)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var o=this;function c(r,l){return h.type="throw",h.arg=e,o.next=r,l&&(o.method="next",o.arg=x),!!l}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],h=s.completion;if(s.tryLoc==="root")return c("end");if(s.tryLoc<=this.prev){var n=A.call(s,"catchLoc"),t=A.call(s,"finallyLoc");if(n&&t){if(this.prev<s.catchLoc)return c(s.catchLoc,!0);if(this.prev<s.finallyLoc)return c(s.finallyLoc)}else if(n){if(this.prev<s.catchLoc)return c(s.catchLoc,!0)}else{if(!t)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return c(s.finallyLoc)}}}},abrupt:function(e,o){for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c];if(i.tryLoc<=this.prev&&A.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&(e==="break"||e==="continue")&&s.tryLoc<=o&&o<=s.finallyLoc&&(s=null);var h=s?s.completion:{};return h.type=e,h.arg=o,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(h)},complete:function(e,o){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&o&&(this.next=o),g},finish:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.finallyLoc===e)return this.complete(c.completion,c.afterLoc),b(c),g}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.tryLoc===e){var i=c.completion;if(i.type==="throw"){var s=i.arg;b(c)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,c){return this.delegate={iterator:_(e),resultName:o,nextLoc:c},this.method==="next"&&(this.arg=x),g}},v}var M=function(v){return!!(_t(v)&&w())},_t=function(v){return Object(ut.p)()?!0:(v({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},w=function(){var v,T=Object(ot.b)()._store.getState(),A=T.user;return((v=A.userInfo)===null||v===void 0?void 0:v.profile_completed)?!0:(H.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:y.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(){ot.c.push("/account/profile/edit")}}),!1)},vt=function(){var v,T=Object(ot.b)()._store.getState(),A=T.user;return((v=A.userInfo)===null||v===void 0?void 0:v.professional_certification)?!0:(H.a.confirm({title:"\u63D0\u793A",centered:!0,content:y.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(at.I)("/account/certification")}}),!1)},ft=function(){return Object(ut.a)()?!0:(H.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:y.a.createElement("div",{className:"tc",style:{marginLeft:-38}},y.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"),y.a.createElement("img",{src:Object(ut.t)()?u("WdTA"):"".concat(mt.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),y.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(ut.t)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(at.I)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},pt=function(v,T){return v?!0:(H.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:y.a.createElement("div",null,y.a.createElement("p",null,T||"\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"),y.a.createElement("div",{style:{marginLeft:"110px"}},y.a.createElement("img",{src:u("1ZF9"),width:200}),y.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(at.I)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},gt=function(v){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",A=Object(ot.b)()._store.getState(),m=A.shixunsDetail.detail;return(m==null?void 0:m.public)===2||(m==null?void 0:m.public)===1||(m==null?void 0:m.shixun_status)===3?(H.a.info({centered:!0,icon:y.a.createElement(lt.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:y.a.createElement("div",{className:"tc",style:{marginLeft:-38}},y.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},y.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(m==null?void 0:m.public)===2?"\u5DF2\u516C\u5F00":(m==null?void 0:m.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",T,"\u3002"),y.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),y.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:dt.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(m==null?void 0:m.shixun_status)===2?(H.a.confirm({centered:!0,icon:y.a.createElement(lt.a,null),title:"\u63D0\u793A",content:y.a.createElement("div",null,y.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",T,"\u3002"),y.a.createElement("br",null),y.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(){H.a.confirm({width:440,centered:!0,icon:y.a.createElement(lt.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 z=Object(Et.a)(Q().mark(function E(){var D;return Q().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,v({type:"shixunsDetail/cancelRelease",payload:{id:m==null?void 0:m.identifier}});case 2:D=C.sent,D.status!==401&&(ht.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),v({type:"shixunsDetail/getShixunsDetail",payload:{id:m==null?void 0:m.identifier}}),v({type:"practiceSetting/getCommonData",payload:{id:m==null?void 0:m.identifier}}));case 4:case"end":return C.stop()}},E)}));function O(){return z.apply(this,arguments)}return O}()})}}),!0):!1}},WdTA:function(K,F,u){K.exports=u.p+"static/studnetqun.a5754d96.png"},mOS8:function(K,F,u){K.exports=u.p+"static/403Qrcode.6c17b6f4.png"}}]);
|