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([[201],{"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"),_t=u("tJVT"),mt=u("PpiC"),Q=u("q1tI"),M=u.n(Q),dt=u("Ty5D"),T=u("9kvl"),pt=u("NLgs"),ft=u("HBuW"),vt=u("Lmeb"),gt=u.n(vt),x=u("wd/R"),p=u.n(x),R=u("Ag/M"),A=u.n(R),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,w=D.hasOwnProperty,C=Object.defineProperty||function(n,t,r){n[t]=r.value},q=typeof Symbol=="function"?Symbol:{},k=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,_){return r[l]=_}}function Y(n,t,r,l){var _=t&&t.prototype instanceof Z?t:Z,f=Object.create(_.prototype),P=new s(l||[]);return C(f,"_invoke",{value:e(n,r,P)}),f}function G(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,k,function(){return this});var et=Object.getPrototypeOf,b=et&&et(et(h([])));b&&b!==D&&w.call(b,k)&&(J=b);var v=S.prototype=Z.prototype=Object.create(J);function d(n){["next","throw","return"].forEach(function(t){g(n,t,function(r){return this._invoke(t,r)})})}function a(n,t){function r(_,f,P,U){var B=G(n[_],n,f);if(B.type!=="throw"){var nt=B.arg,X=nt.value;return X&&typeof X=="object"&&w.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(B.arg)}var l;C(this,"_invoke",{value:function(f,P){function U(){return new t(function(B,nt){r(f,P,B,nt)})}return l=l?l.then(U,U):U()}})}function e(n,t,r){var l=I;return function(_,f){if(l===$)throw new Error("Generator is already running");if(l===j){if(_==="throw")throw f;return{value:O,done:!0}}for(r.method=_,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 B=G(n,t,r);if(B.type==="normal"){if(l=r.done?j:tt,B.arg===L)continue;return{value:B.arg,done:r.done}}B.type==="throw"&&(l=j,r.method="throw",r.arg=B.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 _=G(l,n.iterator,t.arg);if(_.type==="throw")return t.method="throw",t.arg=_.arg,t.delegate=null,L;var f=_.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[k];if(t)return t.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length)){var r=-1,l=function _(){for(;++r<n.length;)if(w.call(n,r))return _.value=n[r],_.done=!1,_;return _.value=O,_.done=!0,_};return l.next=l}}throw new TypeError(typeof n+" is not iterable")}return W.prototype=S,C(v,"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(v),n},E.awrap=function(n){return{__await:n}},d(a.prototype),g(a.prototype,ct,function(){return this}),E.AsyncIterator=a,E.async=function(n,t,r,l,_){_===void 0&&(_=Promise);var f=new a(Y(n,t,r,l),_);return E.isGeneratorFunction(t)?f:f.next().then(function(P){return P.done?P.value:f.next()})},d(v),g(v,V,"Generator"),g(v,k,function(){return this}),g(v,"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 _(){for(;r.length;){var f=r.pop();if(f in t)return _.value=f,_.done=!1,_}return _.done=!0,_}},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"&&w.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 _=this.tryEntries.length-1;_>=0;--_){var f=this.tryEntries[_],P=f.completion;if(f.tryLoc==="root")return l("end");if(f.tryLoc<=this.prev){var U=w.call(f,"catchLoc"),B=w.call(f,"finallyLoc");if(U&&B){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(!B)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 _=this.tryEntries[l];if(_.tryLoc<=this.prev&&w.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var f=_;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 _=l.completion;if(_.type==="throw"){var f=_.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}p.a.locale("ZH-cn");var z=function(E){var D=E.classroomList,w=E.globalSetting,C=E.loading,q=E.user,k=E.dispatch,ct=Object(mt.a)(E,["classroomList","globalSetting","loading","user","dispatch"]),V=Object(dt.m)(),g=Object(Q.useState)(),Y=Object(_t.a)(g,2),G=Y[0],I=Y[1],tt=Object(Q.useState)(""),$=Object(_t.a)(tt,2),j=$[0],L=$[1];Object(Q.useEffect)(function(){Z()},[]);var Z=function(){var b=Object(st.a)(N().mark(function v(){var d;return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.u)();case 2:d=e.sent,(d==null?void 0:d.status)===0&&(L(d.subject_name),I(Object(lt.a)(d.data)));case 4:case"end":return e.stop()}},v)}));return function(){return b.apply(this,arguments)}}(),W=function(v){if(!Object(pt.e)(k))return;if(v.is_jupyter||v.is_jupyter_lab){k({type:"shixunsDetail/execJupyter",payload:{id:v.identifier}}).then(function(d){(d==null?void 0:d.identifier)&&(T.c===null||T.c===void 0||T.c.push("/tasks/".concat(d.identifier,"/jupyter")))});return}k({type:"shixunsDetail/execShixun",payload:{id:v.identifier}}).then(function(d){if(d==null?void 0:d.game_identifier){T.c===null||T.c===void 0||T.c.push("/tasks/".concat(d.game_identifier));return}(d==null?void 0:d.status)===2?S(d==null?void 0:d.message):(d==null?void 0:d.status)===3&&J(d==null?void 0:d.message)})},S=function b(v){var d;v=((d=v)===null||d===void 0?void 0:d.includes(".json"))?v:"".concat(v,".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:v});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 T.c===null||T.c===void 0||T.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(v){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",v,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},et=[{title:"\u5E8F\u53F7",dataIndex:"identifier",key:"identifier",render:function(v,d,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(v,d){return M.a.createElement("span",null,d.leaning_challenge_count,"/",v)}},{title:"\u72B6\u6001",dataIndex:"challenges_count",key:"challenges_count",render:function(v,d){return M.a.createElement("span",null,d.leaning_challenge_count==v?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(v,d,a){return M.a.createElement("span",{onClick:function(){return W(d)},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:G||[],columns:et}))))};F.default=Object(T.a)(function(O){var E=O.classroomList,D=O.loading,w=O.globalSetting,C=O.user;return{classroomList:E,globalSetting:w,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 dt}),u.d(F,"d",function(){return pt}),u.d(F,"c",function(){return ft}),u.d(F,"a",function(){return vt}),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"),_t=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 p};var x,p={},R=Object.prototype,A=R.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 w(a,e,o,c){var i=e&&e.prototype instanceof Y?e:Y,s=Object.create(i.prototype),h=new v(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}}}p.wrap=w;var q="suspendedStart",k="suspendedYield",ct="executing",V="completed",g={};function Y(){}function G(){}function I(){}var tt={};D(tt,z,function(){return this});var $=Object.getPrototypeOf,j=$&&$($(d([])));j&&j!==R&&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(_){o("next",_,h,n)},function(_){o("throw",_,h,n)}):e.resolve(l).then(function(_){r.value=_,h(r)},function(_){return o("throw",_,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:k,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 v(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(et,this),this.reset(!0)}function d(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 G.prototype=I,m(L,"constructor",{value:I,configurable:!0}),m(I,"constructor",{value:G,configurable:!0}),G.displayName=D(I,E,"GeneratorFunction"),p.isGeneratorFunction=function(a){var e=typeof a=="function"&&a.constructor;return!!e&&(e===G||(e.displayName||e.name)==="GeneratorFunction")},p.mark=function(a){return Object.setPrototypeOf?Object.setPrototypeOf(a,I):(a.__proto__=I,D(a,E,"GeneratorFunction")),a.prototype=Object.create(L),a},p.awrap=function(a){return{__await:a}},Z(W.prototype),D(W.prototype,O,function(){return this}),p.AsyncIterator=W,p.async=function(a,e,o,c,i){i===void 0&&(i=Promise);var s=new W(w(a,e,o,c),i);return p.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]"}),p.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}},p.values=d,v.prototype={constructor:v,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:d(e),resultName:o,nextLoc:c},this.method==="next"&&(this.arg=x),g}},p}var M=function(p){return!!(dt(p)&&T())},dt=function(p){return Object(ut.p)()?!0:(p({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},T=function(){var p,R=Object(ot.b)()._store.getState(),A=R.user;return((p=A.userInfo)===null||p===void 0?void 0:p.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)},pt=function(){var p,R=Object(ot.b)()._store.getState(),A=R.user;return((p=A.userInfo)===null||p===void 0?void 0:p.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.L)("/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.L)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},vt=function(p,R){return p?!0:(H.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:y.a.createElement("div",null,y.a.createElement("p",null,R||"\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.L)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},gt=function(p){var R=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",R,"\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:_t.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",R,"\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,p({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"),p({type:"shixunsDetail/getShixunsDetail",payload:{id:m==null?void 0:m.identifier}}),p({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"}}]);
|