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