"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[66827],{67554:function(A,s,C){C.d(s,{rX:function(){return I},gy:function(){return i},xY:function(){return S},O5:function(){return b},tJ:function(){return h},o1:function(){return r}});var w=C(7557),B=C.n(w),L=C(41498),g=C.n(L),v=(C(59301),C(49389)),t=C(43418),l=C(8591),W=C(7338),e=C(83287),P=C(87169),c=C(25510),n=C.p+"static/newqrcode.a8740efb.png",f=C(37712),h=function(A){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!r(A)||!Y(s))},r=function(A){return!!(0,W.bg)()||(A({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},Y=function(){var A,s=(0,v.getDvaApp)()._store.getState(),C=s.user;return!(null===(A=C.userInfo)||void 0===A||!A.profile_completed)||(t.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要绑定手机号后，才能发布评论",okText:"前往绑定",cancelText:"稍后绑定",onOk:function(){(0,e.xg)("/account/newInfo"),F()}}),!1)},F=function(){t.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料？请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},b=function(){var A;return!(null===(A=(0,v.getDvaApp)()._store.getState().user.userInfo)||void 0===A||!A.professional_certification)||(t.Z.confirm({title:"提示",centered:!0,content:(0,f.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证，才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,e.xg)("/account/certification")}}),!1)},S=function(){return!!(0,W.V9)()||(t.Z.warning({centered:!0,width:530,title:"提示",content:(0,f.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,f.jsx)("p",{children:"扫码加化学“101计划”网络平台助教，申请操作权限"}),(0,f.jsx)("img",{src:n,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},I=function(A,s){return!!A||(t.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("p",{children:s||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请，获得继续操作的权限。"}),(0,f.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,f.jsx)("img",{src:"data:image/png;base64,[encoded data, 14108 characters]",width:200}),(0,f.jsxs)("div",{style:{marginLeft:"35px"},children:["群号：","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,e.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},i=function(A){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",C=(0,v.getDvaApp)()._store.getState(),w=C.shixunsDetail.detail;if(2===(null==w?void 0:w.public)||1===(null==w?void 0:w.public)||3===(null==w?void 0:w.shixun_status)){var L="";return 2===(null==w?void 0:w.public)&&(L="已公开"),1===(null==w?void 0:w.public)&&(L="待审核"),3===(null==w?void 0:w.shixun_status)&&(L="已关闭"),t.Z.info({centered:!0,icon:(0,f.jsx)(P.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,f.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,f.jsxs)("span",{children:["该实践项目的状态为",L,"，",s,"。"]}),(0,f.jsx)("p",{children:"如有需要，请联系平台管理员进行技术支持。"})]}),(0,f.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:c,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==w?void 0:w.shixun_status)&&(t.Z.confirm({centered:!0,icon:(0,f.jsx)(P.Z,{}),title:"提示",content:(0,f.jsxs)("div",{children:[(0,f.jsxs)("span",{children:["该实践项目已发布，",s,"。"]}),(0,f.jsx)("br",{}),(0,f.jsx)("span",{children:"如有需要，您可以撤销发布后，再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var s;t.Z.confirm({width:440,centered:!0,icon:(0,f.jsx)(P.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后，学员将无法进行练习。是否确认撤销发布？",okText:"确定撤销发布",cancelText:"取消",onOk:(s=g()(B()().mark((function s(){return B()().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,A({type:"shixunsDetail/cancelRelease",payload:{id:null==w?void 0:w.identifier}});case 2:401!==s.sent.status&&(l.ZP.success("撤销发布成功。实训回到未发布的状态。"),A({type:"shixunsDetail/getShixunsDetail",payload:{id:null==w?void 0:w.identifier}}),A({type:"practiceSetting/getCommonData",payload:{id:null==w?void 0:w.identifier}}));case 4:case"end":return s.stop()}}),s)}))),function(){return s.apply(this,arguments)})})}}),!0)}},25510:function(A){A.exports="data:image/png;base64,[encoded data, 128012 characters]"}}]);