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