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.
NewEduCoderBuild/p__User__Detail__LearningPa...

2 lines
24 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{"1ZF9":function(W,A,s){W.exports=s.p+"static/Authorize.cc9c212f.png"},"Ag/M":function(W,A,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,A,s){},"NFd+":function(W,A,s){"use strict";s.r(A);var pt=s("14J3"),st=s("BMrR"),ft=s("g9YV"),ht=s("wCAj"),k=s("jCWc"),et=s("kPKH"),m=s("miYZ"),q=s("tsqr"),nt=s("2qtc"),tt=s("kLXV"),rt=s("oBTY"),at=s("9og8"),it=s("tJVT"),ct=s("PpiC"),$=s("q1tI"),L=s.n($),ut=s("Ty5D"),T=s("9kvl"),dt=s("NLgs"),lt=s("HBuW"),_t=s("Lmeb"),mt=s.n(_t),P=s("wd/R"),v=s.n(P),D=s("Ag/M"),B=s.n(D),f=s("jb+D");function j(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */j=function(){return E};var E={},p=Object.prototype,b=p.hasOwnProperty,w=Object.defineProperty||function(o,t,e){o[t]=e.value},y=typeof Symbol=="function"?Symbol:{},G=y.iterator||"@@iterator",K=y.asyncIterator||"@@asyncIterator",R=y.toStringTag||"@@toStringTag";function C(o,t,e){return Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),o[t]}try{C({},"")}catch(o){C=function(e,c,l){return e[c]=l}}function V(o,t,e,c){var l=t&&t.prototype instanceof Y?t:Y,_=Object.create(l.prototype),g=new d(c||[]);return w(_,"_invoke",{value:n(o,e,g)}),_}function x(o,t,e){try{return{type:"normal",arg:o.call(t,e)}}catch(c){return{type:"throw",arg:c}}}E.wrap=V;var O={};function Y(){}function S(){}function I(){}var J={};C(J,G,function(){return this});var z=Object.getPrototypeOf,N=z&&z(z(h([])));N&&N!==p&&b.call(N,G)&&(J=N);var F=I.prototype=Y.prototype=Object.create(J);function H(o){["next","throw","return"].forEach(function(t){C(o,t,function(e){return this._invoke(t,e)})})}function i(o,t){function e(l,_,g,M){var U=x(o[l],o,_);if(U.type!=="throw"){var Z=U.arg,Q=Z.value;return Q&&typeof Q=="object"&&b.call(Q,"__await")?t.resolve(Q.__await).then(function(X){e("next",X,g,M)},function(X){e("throw",X,g,M)}):t.resolve(Q).then(function(X){Z.value=X,g(Z)},function(X){return e("throw",X,g,M)})}M(U.arg)}var c;w(this,"_invoke",{value:function(_,g){function M(){return new t(function(U,Z){e(_,g,U,Z)})}return c=c?c.then(M,M):M()}})}function n(o,t,e){var c="suspendedStart";return function(l,_){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(l==="throw")throw _;return{value:void 0,done:!0}}for(e.method=l,e.arg=_;;){var g=e.delegate;if(g){var M=r(g,e);if(M){if(M===O)continue;return M}}if(e.method==="next")e.sent=e._sent=e.arg;else if(e.method==="throw"){if(c==="suspendedStart")throw c="completed",e.arg;e.dispatchException(e.arg)}else e.method==="return"&&e.abrupt("return",e.arg);c="executing";var U=x(o,t,e);if(U.type==="normal"){if(c=e.done?"completed":"suspendedYield",U.arg===O)continue;return{value:U.arg,done:e.done}}U.type==="throw"&&(c="completed",e.method="throw",e.arg=U.arg)}}}function r(o,t){var e=t.method,c=o.iterator[e];if(c===void 0)return t.delegate=null,e==="throw"&&o.iterator.return&&(t.method="return",t.arg=void 0,r(o,t),t.method==="throw")||e!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),O;var l=x(c,o.iterator,t.arg);if(l.type==="throw")return t.method="throw",t.arg=l.arg,t.delegate=null,O;var _=l.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 u(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 a(o){var t=o.completion||{};t.type="normal",delete t.arg,o.completion=t}function d(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(u,this),this.reset(!0)}function h(o){if(o||o===""){var t=o[G];if(t)return t.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var e=-1,c=function l(){for(;++e<o.length;)if(b.call(o,e))return l.value=o[e],l.done=!1,l;return l.value=void 0,l.done=!0,l};return c.next=c}}throw new TypeError(typeof o+" is not iterable")}return S.prototype=I,w(F,"constructor",{value:I,configurable:!0}),w(I,"constructor",{value:S,configurable:!0}),S.displayName=C(I,R,"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,C(o,R,"GeneratorFunction")),o.prototype=Object.create(F),o},E.awrap=function(o){return{__await:o}},H(i.prototype),C(i.prototype,K,function(){return this}),E.AsyncIterator=i,E.async=function(o,t,e,c,l){l===void 0&&(l=Promise);var _=new i(V(o,t,e,c),l);return E.isGeneratorFunction(t)?_:_.next().then(function(g){return g.done?g.value:_.next()})},H(F),C(F,R,"Generator"),C(F,G,function(){return this}),C(F,"toString",function(){return"[object Generator]"}),E.keys=function(o){var t=Object(o),e=[];for(var c in t)e.push(c);return e.reverse(),function l(){for(;e.length;){var _=e.pop();if(_ in t)return l.value=_,l.done=!1,l}return l.done=!0,l}},E.values=h,d.prototype={constructor:d,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(a),!t)for(var e in this)e.charAt(0)==="t"&&b.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=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 e=this;function c(Z,Q){return g.type="throw",g.arg=t,e.next=Z,Q&&(e.method="next",e.arg=void 0),!!Q}for(var l=this.tryEntries.length-1;l>=0;--l){var _=this.tryEntries[l],g=_.completion;if(_.tryLoc==="root")return c("end");if(_.tryLoc<=this.prev){var M=b.call(_,"catchLoc"),U=b.call(_,"finallyLoc");if(M&&U){if(this.prev<_.catchLoc)return c(_.catchLoc,!0);if(this.prev<_.finallyLoc)return c(_.finallyLoc)}else if(M){if(this.prev<_.catchLoc)return c(_.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<_.finallyLoc)return c(_.finallyLoc)}}}},abrupt:function(t,e){for(var c=this.tryEntries.length-1;c>=0;--c){var l=this.tryEntries[c];if(l.tryLoc<=this.prev&&b.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var _=l;break}}_&&(t==="break"||t==="continue")&&_.tryLoc<=e&&e<=_.finallyLoc&&(_=null);var g=_?_.completion:{};return g.type=t,g.arg=e,_?(this.method="next",this.next=_.finallyLoc,O):this.complete(g)},complete:function(t,e){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"&&e&&(this.next=e),O},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var c=this.tryEntries[e];if(c.finallyLoc===t)return this.complete(c.completion,c.afterLoc),a(c),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var c=this.tryEntries[e];if(c.tryLoc===t){var l=c.completion;if(l.type==="throw"){var _=l.arg;a(c)}return _}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,c){return this.delegate={iterator:h(t),resultName:e,nextLoc:c},this.method==="next"&&(this.arg=void 0),O}},E}v.a.locale("ZH-cn");var ot=function(p){var b=p.classroomList,w=p.globalSetting,y=p.loading,G=p.user,K=p.dispatch,R=Object(ct.a)(p,["classroomList","globalSetting","loading","user","dispatch"]),C=Object(ut.m)(),V=Object($.useState)(),x=Object(it.a)(V,2),O=x[0],Y=x[1],S=Object($.useState)(""),I=Object(it.a)(S,2),J=I[0],z=I[1];Object($.useEffect)(function(){N()},[]);var N=function(){var r=Object(at.a)(j().mark(function u(){var a;return j().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(f.u)();case 2:a=h.sent,(a==null?void 0:a.status)===0&&(z(a.subject_name),Y(Object(rt.a)(a.data)));case 4:case"end":return h.stop()}},u)}));return function(){return r.apply(this,arguments)}}(),F=function(u){if(!Object(dt.e)(K))return;if(u.is_jupyter||u.is_jupyter_lab){K({type:"shixunsDetail/execJupyter",payload:{id:u.identifier}}).then(function(a){(a==null?void 0:a.identifier)&&(T.c===null||T.c===void 0||T.c.push("/tasks/".concat(a.identifier,"/jupyter")))});return}K({type:"shixunsDetail/execShixun",payload:{id:u.identifier}}).then(function(a){if(a==null?void 0:a.game_identifier){T.c===null||T.c===void 0||T.c.push("/tasks/".concat(a.game_identifier));return}(a==null?void 0:a.status)===2?H(a==null?void 0:a.message):(a==null?void 0:a.status)===3&&i(a==null?void 0:a.message)})},H=function r(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 d=Object(at.a)(j().mark(function o(){var t,e;return j().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(lt.ub)({url:u});case 2:if(t=l.sent,t){l.next=5;break}return l.abrupt("return");case 5:return q.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),l.next=8,Object(lt.A)({id:t.shixun_identifier});case 8:if(e=l.sent,!(e==null?void 0:e.game_identifier)){l.next=12;break}return T.c===null||T.c===void 0||T.c.push("/tasks/".concat(e.game_identifier)),l.abrupt("return");case 12:(e==null?void 0:e.status)===2?r(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&i(e==null?void 0:e.message);case 13:case"end":return l.stop()}},o)}));function h(){return d.apply(this,arguments)}return h}()})},i=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")})},n=[{title:"\u5E8F\u53F7",dataIndex:"identifier",key:"identifier",render:function(u,a,d){return d+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,d){return L.a.createElement("span",{onClick:function(){return F(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(st.a,null,L.a.createElement(et.a,{flex:"280px"},L.a.createElement("ul",{className:B.a.ul},L.a.createElement("li",null,J))),L.a.createElement(et.a,{flex:"1px"}),L.a.createElement(et.a,{flex:"1",className:"bg-white p20"},L.a.createElement(ht.a,{dataSource:O||[],columns:n}))))};A.default=Object(T.a)(function(E){var p=E.classroomList,b=E.loading,w=E.globalSetting,y=E.user;return{classroomList:p,globalSetting:w,loading:b.models.classroomList,user:y}})(ot)},NLgs:function(W,A,s){"use strict";s.d(A,"e",function(){return L}),s.d(A,"f",function(){return ut}),s.d(A,"d",function(){return dt}),s.d(A,"c",function(){return lt}),s.d(A,"a",function(){return _t}),s.d(A,"b",function(){return mt});var pt=s("miYZ"),st=s("tsqr"),ft=s("9og8"),ht=s("2qtc"),k=s("kLXV"),et=s("q1tI"),m=s.n(et),q=s("9kvl"),nt=s("xKgJ"),tt=s("1vsH"),rt=s("RCxd"),at=s("mOS8"),it=s.n(at),ct=s("m3rI");function $(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$=function(){return P};var P={},v=Object.prototype,D=v.hasOwnProperty,B=Object.defineProperty||function(i,n,r){i[n]=r.value},f=typeof Symbol=="function"?Symbol:{},j=f.iterator||"@@iterator",ot=f.asyncIterator||"@@asyncIterator",E=f.toStringTag||"@@toStringTag";function p(i,n,r){return Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),i[n]}try{p({},"")}catch(i){p=function(r,u,a){return r[u]=a}}function b(i,n,r,u){var a=n&&n.prototype instanceof G?n:G,d=Object.create(a.prototype),h=new F(u||[]);return B(d,"_invoke",{value:I(i,r,h)}),d}function w(i,n,r){try{return{type:"normal",arg:i.call(n,r)}}catch(u){return{type:"throw",arg:u}}}P.wrap=b;var y={};function G(){}function K(){}function R(){}var C={};p(C,j,function(){return this});var V=Object.getPrototypeOf,x=V&&V(V(H([])));x&&x!==v&&D.call(x,j)&&(C=x);var O=R.prototype=G.prototype=Object.create(C);function Y(i){["next","throw","return"].forEach(function(n){p(i,n,function(r){return this._invoke(n,r)})})}function S(i,n){function r(a,d,h,o){var t=w(i[a],i,d);if(t.type!=="throw"){var e=t.arg,c=e.value;return c&&typeof c=="object"&&D.call(c,"__await")?n.resolve(c.__await).then(function(l){r("next",l,h,o)},function(l){r("throw",l,h,o)}):n.resolve(c).then(function(l){e.value=l,h(e)},function(l){return r("throw",l,h,o)})}o(t.arg)}var u;B(this,"_invoke",{value:function(d,h){function o(){return new n(function(t,e){r(d,h,t,e)})}return u=u?u.then(o,o):o()}})}function I(i,n,r){var u="suspendedStart";return function(a,d){if(u==="executing")throw new Error("Generator is already running");if(u==="completed"){if(a==="throw")throw d;return{value:void 0,done:!0}}for(r.method=a,r.arg=d;;){var h=r.delegate;if(h){var o=J(h,r);if(o){if(o===y)continue;return o}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(u==="suspendedStart")throw u="completed",r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);u="executing";var t=w(i,n,r);if(t.type==="normal"){if(u=r.done?"completed":"suspendedYield",t.arg===y)continue;return{value:t.arg,done:r.done}}t.type==="throw"&&(u="completed",r.method="throw",r.arg=t.arg)}}}function J(i,n){var r=n.method,u=i.iterator[r];if(u===void 0)return n.delegate=null,r==="throw"&&i.iterator.return&&(n.method="return",n.arg=void 0,J(i,n),n.method==="throw")||r!=="return"&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=w(u,i.iterator,n.arg);if(a.type==="throw")return n.method="throw",n.arg=a.arg,n.delegate=null,y;var d=a.arg;return d?d.done?(n[i.resultName]=d.value,n.next=i.nextLoc,n.method!=="return"&&(n.method="next",n.arg=void 0),n.delegate=null,y):d:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function z(i){var n={tryLoc:i[0]};1 in i&&(n.catchLoc=i[1]),2 in i&&(n.finallyLoc=i[2],n.afterLoc=i[3]),this.tryEntries.push(n)}function N(i){var n=i.completion||{};n.type="normal",delete n.arg,i.completion=n}function F(i){this.tryEntries=[{tryLoc:"root"}],i.forEach(z,this),this.reset(!0)}function H(i){if(i||i===""){var n=i[j];if(n)return n.call(i);if(typeof i.next=="function")return i;if(!isNaN(i.length)){var r=-1,u=function a(){for(;++r<i.length;)if(D.call(i,r))return a.value=i[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return u.next=u}}throw new TypeError(typeof i+" is not iterable")}return K.prototype=R,B(O,"constructor",{value:R,configurable:!0}),B(R,"constructor",{value:K,configurable:!0}),K.displayName=p(R,E,"GeneratorFunction"),P.isGeneratorFunction=function(i){var n=typeof i=="function"&&i.constructor;return!!n&&(n===K||(n.displayName||n.name)==="GeneratorFunction")},P.mark=function(i){return Object.setPrototypeOf?Object.setPrototypeOf(i,R):(i.__proto__=R,p(i,E,"GeneratorFunction")),i.prototype=Object.create(O),i},P.awrap=function(i){return{__await:i}},Y(S.prototype),p(S.prototype,ot,function(){return this}),P.AsyncIterator=S,P.async=function(i,n,r,u,a){a===void 0&&(a=Promise);var d=new S(b(i,n,r,u),a);return P.isGeneratorFunction(n)?d:d.next().then(function(h){return h.done?h.value:d.next()})},Y(O),p(O,E,"Generator"),p(O,j,function(){return this}),p(O,"toString",function(){return"[object Generator]"}),P.keys=function(i){var n=Object(i),r=[];for(var u in n)r.push(u);return r.reverse(),function a(){for(;r.length;){var d=r.pop();if(d in n)return a.value=d,a.done=!1,a}return a.done=!0,a}},P.values=H,F.prototype={constructor:F,reset:function(n){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),!n)for(var r in this)r.charAt(0)==="t"&&D.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if(n.type==="throw")throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function u(e,c){return h.type="throw",h.arg=n,r.next=e,c&&(r.method="next",r.arg=void 0),!!c}for(var a=this.tryEntries.length-1;a>=0;--a){var d=this.tryEntries[a],h=d.completion;if(d.tryLoc==="root")return u("end");if(d.tryLoc<=this.prev){var o=D.call(d,"catchLoc"),t=D.call(d,"finallyLoc");if(o&&t){if(this.prev<d.catchLoc)return u(d.catchLoc,!0);if(this.prev<d.finallyLoc)return u(d.finallyLoc)}else if(o){if(this.prev<d.catchLoc)return u(d.catchLoc,!0)}else{if(!t)throw new Error("try statement without catch or finally");if(this.prev<d.finallyLoc)return u(d.finallyLoc)}}}},abrupt:function(n,r){for(var u=this.tryEntries.length-1;u>=0;--u){var a=this.tryEntries[u];if(a.tryLoc<=this.prev&&D.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var d=a;break}}d&&(n==="break"||n==="continue")&&d.tryLoc<=r&&r<=d.finallyLoc&&(d=null);var h=d?d.completion:{};return h.type=n,h.arg=r,d?(this.method="next",this.next=d.finallyLoc,y):this.complete(h)},complete:function(n,r){if(n.type==="throw")throw n.arg;return n.type==="break"||n.type==="continue"?this.next=n.arg:n.type==="return"?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):n.type==="normal"&&r&&(this.next=r),y},finish:function(n){for(var r=this.tryEntries.length-1;r>=0;--r){var u=this.tryEntries[r];if(u.finallyLoc===n)return this.complete(u.completion,u.afterLoc),N(u),y}},catch:function(n){for(var r=this.tryEntries.length-1;r>=0;--r){var u=this.tryEntries[r];if(u.tryLoc===n){var a=u.completion;if(a.type==="throw"){var d=a.arg;N(u)}return d}}throw new Error("illegal catch attempt")},delegateYield:function(n,r,u){return this.delegate={iterator:H(n),resultName:r,nextLoc:u},this.method==="next"&&(this.arg=void 0),y}},P}var L=function(v){return!!(ut(v)&&T())},ut=function(v){return Object(nt.p)()?!0:(v({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},T=function(){var v,D=Object(q.b)()._store.getState(),B=D.user;return((v=B.userInfo)===null||v===void 0?void 0:v.profile_completed)?!0:(k.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(){q.c.push("/account/profile/edit")}}),!1)},dt=function(){var v,D=Object(q.b)()._store.getState(),B=D.user;return((v=B.userInfo)===null||v===void 0?void 0:v.professional_certification)?!0:(k.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(tt.I)("/account/certification")}}),!1)},lt=function(){return Object(nt.a)()?!0:(k.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(nt.t)()?s("WdTA"):"".concat(ct.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),m.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(nt.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(v,D){return v?!0:(k.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:s("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(tt.I)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},mt=function(v){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",B=Object(q.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?(k.a.info({centered:!0,icon:m.a.createElement(rt.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:it.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(f==null?void 0:f.shixun_status)===2?(k.a.confirm({centered:!0,icon:m.a.createElement(rt.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(){k.a.confirm({width:440,centered:!0,icon:m.a.createElement(rt.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 ot=Object(ft.a)($().mark(function p(){var b;return $().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&&(st.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 ot.apply(this,arguments)}return E}()})}}),!0):!1}},WdTA:function(W,A,s){W.exports=s.p+"static/studnetqun.a5754d96.png"},mOS8:function(W,A,s){W.exports=s.p+"static/403Qrcode.6c17b6f4.png"}}]);