diff --git a/p__Shixuns__Detail__Dataset__index.async.js b/p__Shixuns__Detail__Dataset__index.async.js index 5ad5998232..873f41f8eb 100644 --- a/p__Shixuns__Detail__Dataset__index.async.js +++ b/p__Shixuns__Detail__Dataset__index.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[86541],{86413:function(t,n,e){e.d(n,{Z:function(){return u}});var r=e(81978),i=e(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},s=e(1393),o=function(t,n){return i.createElement(s.Z,(0,r.Z)({},t,{ref:n,icon:a}))};var u=i.forwardRef(o)},76897:function(t,n,e){e.d(n,{Z:function(){return u}});var r=e(81978),i=e(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},s=e(1393),o=function(t,n){return i.createElement(s.Z,(0,r.Z)({},t,{ref:n,icon:a}))};var u=i.forwardRef(o)},88950:function(t,n,e){var r=e(82242),i=e.n(r),a=(e(59301),e(93314)),s=e(3113),o=e(37712);n.Z=function(t){var n=t.img,e=t.buttonProps,r=void 0===e?{}:e,u=t.styles,l=void 0===u?{}:u,c=t.customText,d=t.ButtonText,p=t.ButtonClick,f=t.Buttonclass,v=t.ButtonTwo,m=t.imgStyles,h=t.loading,_=void 0!==h&&h;return(0,o.jsxs)("section",{className:"tc animated fadeIn",style:i()(i()({},{color:"#999",margin:"100px auto",visibility:_?"hidden":"visible"}),l),children:[(0,o.jsx)("img",{src:n||a,style:i()(i()({},m),{},{pointerEvents:"none",userSelect:"none"})}),(0,o.jsx)("p",{className:"mt20 font14",children:c||"暂时还没有相关数据哦!"}),d&&(0,o.jsx)(s.ZP,i()(i()({className:f,onClick:p},r),{},{children:d})),v&&v]})}},52202:function(t,n,e){e.r(n),e.d(n,{default:function(){return B}});var r=e(79800),i=e.n(r),a=e(39647),s=e.n(a),o=e(59301),u=e(18984),l="bg___NFraa",c="listWrap___CjE2j",d="wrap___C_Y44",p="header___xmePB",f="title___QtIUO",v="titleActive___QM53y",m="titleTag___H94gS",h="time___lPMs2",_="introduction___fWThm",x="bottom___xMvhs",y="user_img___sxqC_",g="user_name___A8eWp",b="tags_name___jYXzp",j="fileName___IyKvf",w="updateStley___Xt7he",C=e(25263),N=e(6848),Z=e(51945),k=e(8591),P=e(92890),E=e(37704),O=e(17810),z=e.n(O),S=e(30233),M=e(88950),I=e(37712),R=["shixunsDetail","globalSetting","loading","user","dispatch"],B=(0,u.connect)((function(t){var n=t.shixunsDetail,e=t.loading;return{shixunsDetail:n,globalSetting:t.globalSetting,user:t.user,loading:e}}))((function(t){var n,e,r=t.shixunsDetail,a=(t.globalSetting,t.loading,t.user),O=(t.dispatch,s()(t,R),(0,o.useRef)()),B=(0,o.useState)(),D=i()(B,2),T=D[0],$=D[1];(0,o.useEffect)((function(){var t;O.current=null===(t=location.pathname)||void 0===t||null===(t=t.split("/"))||void 0===t?void 0:t[2],A()}),[]);var A=function(){(0,S.pi)(O.current).then((function(t){0==(null==t?void 0:t.status)&&$(null==t?void 0:t.data)}))},L=null===(n=a.userInfo)||void 0===n||null===(n=n.shixun)||void 0===n?void 0:n.own,F=null===(e=a.userInfo)||void 0===e||null===(e=e.shixun)||void 0===e?void 0:e.lookable;return(0,I.jsxs)("section",{className:l,children:[(0,I.jsxs)("div",{className:c,children:[(null==T?void 0:T.length)>0?null==T?void 0:T.map((function(t,n){var e,r,i,a,s,o,u,l,c,w,C;return(0,I.jsxs)("aside",{className:d,children:[null!=t&&null!==(e=t.data_set_info)&&void 0!==e&&e.id||"自定义数据集"!=(null==t||null===(r=t.data_set_info)||void 0===r?void 0:r.title)?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:p,children:[(0,I.jsx)("div",{className:"".concat(f," ").concat(v),onClick:function(){var n;return(0,E.xg)("/dataset/".concat(null==t||null===(n=t.data_set_info)||void 0===n?void 0:n.id,"/detail?tabId=mine"))},children:null==t||null===(i=t.data_set_info)||void 0===i?void 0:i.title}),1!=(null==t||null===(a=t.data_set_info)||void 0===a?void 0:a.public_status)&&(0,I.jsx)("div",{className:m,children:"私有"}),(0,I.jsx)("div",{className:h,children:null==t||null===(s=t.data_set_info)||void 0===s?void 0:s.created_at})]}),(0,I.jsx)("div",{className:_,children:null==t||null===(o=t.data_set_info)||void 0===o?void 0:o.desc}),(0,I.jsxs)("div",{className:x,children:[(0,I.jsx)("img",{className:y,alt:"用户头像",src:"".concat(P.Z.IMG_SERVER,"/images/").concat(null==t||null===(u=t.data_set_info)||void 0===u||null===(u=u.user_info)||void 0===u?void 0:u.image_url)}),(0,I.jsx)("div",{className:g,children:null==t||null===(l=t.data_set_info)||void 0===l||null===(l=l.user_info)||void 0===l?void 0:l.name}),null==t||null===(c=t.data_set_info)||void 0===c||null===(c=c.data_set_tags)||void 0===c?void 0:c.map((function(n,e){return e<3?(0,I.jsx)("div",{className:b,children:null==n?void 0:n.tag_name},e):3==e?(0,I.jsx)(N.Z,{title:null==t||null===(r=t.data_set_info)||void 0===r||null===(r=r.data_set_tags)||void 0===r?void 0:r.map((function(n,e){var r;if(e>2)return(null==n?void 0:n.tag_name)+(e===(null==t||null===(r=t.data_set_info)||void 0===r||null===(r=r.data_set_tags)||void 0===r?void 0:r.length)-1?"":"、")})).join(""),children:(0,I.jsx)("div",{className:b,children:"..."},e)},e):null;var r}))]})]}):(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:p,children:[(0,I.jsx)("div",{className:f,style:{maxWidth:"40%"},children:"自定义数据集"}),(0,I.jsx)("div",{className:m,children:"私有"}),(0,I.jsx)("div",{className:h,style:{width:"50%"},children:"该内容为实践项目管理人员自主上传的数据文件"})]})}),(0,I.jsx)("div",{className:j,children:"文件列表"}),(0,I.jsx)(Z.Z,{columns:null===(w=[{title:"文件",dataIndex:"title",key:"title",align:"left",className:"font14",width:"220px",render:function(t,n){return(0,I.jsx)("div",{children:n.title||"--"})}},{title:"备注",dataIndex:"description",key:"description",align:"center",className:"font14",render:function(t,n){return(0,I.jsx)("div",{children:n.description||"--"})}},{title:"创建时间",dataIndex:"created_on",key:"created_on",align:"center",className:"font14",width:"150px",render:function(t,n){return(0,I.jsx)("div",{children:z()(n.created_on).format("YYYY-MM-DD HH:mm")})}},{title:"文件大小",dataIndex:"filesize",key:"filesize",align:"center",className:"font14",render:function(t,n){return(0,I.jsx)("div",{children:n.filesize||"--"})}},(null==t||null===(C=t.data_set_info)||void 0===C?void 0:C.id)&&{title:"操作",dataIndex:"operation",key:"operation",align:"center",className:"font14 current",render:function(n,e){return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(N.Z,{title:"下载",children:(0,I.jsx)("span",{style:{color:"#3061D0",fontSize:"14px"},onClick:function(){var n;1==(null==t||null===(n=t.data_set_info)||void 0===n?void 0:n.public_status)?(0,E.Nd)(e.title,null==e?void 0:e.download_url):k.ZP.warning("当前数据集未公开,不可下载")},children:"下载"})})})}}])||void 0===w?void 0:w.filter((function(t){return!!t})),dataSource:null==t?void 0:t.attachments,pagination:!1})]},n)})):(0,I.jsx)(M.Z,{}),L&&F&&(0,I.jsx)("div",{className:w,onClick:function(){var t;null!=r&&null!==(t=r.detail)&&void 0!==t&&t.is_jupyter?u.history.push("/shixuns/".concat(O.current,"/dataset/jupyterEdit")):u.history.push("/shixuns/".concat(O.current,"/edit?tabId=dataset"))},children:"修改"})]}),(0,I.jsx)(C.Z,{})]})}))},30233:function(t,n,e){e.d(n,{A0:function(){return T},Ce:function(){return P},Dx:function(){return h},Il:function(){return B},R2:function(){return Z},R9:function(){return j},Ru:function(){return C},To:function(){return v},_S:function(){return p},a6:function(){return x},bj:function(){return c},l5:function(){return I},nW:function(){return g},pP:function(){return S},pi:function(){return O}});var r=e(7557),i=e.n(r),a=e(82242),s=e.n(a),o=e(41498),u=e.n(o),l=e(23691);function c(t){return d.apply(this,arguments)}function d(){return(d=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/tags.json",{method:"get",params:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t){return f.apply(this,arguments)}function f(){return(f=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets.json",{method:"get",params:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return m.apply(this,arguments)}function m(){return(m=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(n,"/apply_public.json"),{method:"post"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(t){return _.apply(this,arguments)}function _(){return(_=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(n,"/revoke_apply_public.json"),{method:"post"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t){return y.apply(this,arguments)}function y(){return(y=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(n,"/cancel_public.json"),{method:"post"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t){return b.apply(this,arguments)}function b(){return(b=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/collections.json",{method:"post",body:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t){return w.apply(this,arguments)}function w(){return(w=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/collections/cancel.json",{method:"delete",body:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t){return N.apply(this,arguments)}function N(){return(N=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(n,".json"),{method:"get"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Z(t){return k.apply(this,arguments)}function k(){return(k=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(null==n?void 0:n.id,"/edit_introduce.json"),{method:"put",body:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t){return E.apply(this,arguments)}function E(){return(E=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(null==n?void 0:n.id,"/used_shixuns.json"),{method:"get",params:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(t){return z.apply(this,arguments)}function z(){return(z=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/shixuns/".concat(n,"/data_sets_list.json"),{method:"get"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(t){return M.apply(this,arguments)}function M(){return(M=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(n,"/delete.json"),{method:"delete"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(t){return R.apply(this,arguments)}function R(){return(R=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/teach_group_shares.json",{method:"post",body:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(t){return D.apply(this,arguments)}function D(){return(D=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t){return $.apply(this,arguments)}function $(){return($=u()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.ZP)("/api/data_sets/".concat(null==n?void 0:n.id,"/edit_file_info.json"),{method:"put",body:s()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},92832:function(t,n,e){e.d(n,{Z:function(){return E}});var r=e(92310),i=e.n(r),a=e(59301),s=e(36355),o=e(32441),u=e(9937);var l=t=>{const{getPrefixCls:n,direction:e}=(0,a.useContext)(s.E_),{prefixCls:r,className:l}=t,c=n("input-group",r),d=n("input"),[p,f]=(0,u.ZP)(d),v=i()(c,{[`${c}-lg`]:"large"===t.size,[`${c}-sm`]:"small"===t.size,[`${c}-compact`]:t.compact,[`${c}-rtl`]:"rtl"===e},f,l),m=(0,a.useContext)(o.aM),h=(0,a.useMemo)((()=>Object.assign(Object.assign({},m),{isFormItemInput:!1})),[m]);return p(a.createElement("span",{className:v,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},a.createElement(o.aM.Provider,{value:h},t.children)))},c=e(9432),d=e(86413),p=e(76897),f=e(55405),v=e(25629),m=e(59412),h=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);it?a.createElement(p.Z,null):a.createElement(d.Z,null),x={click:"onClick",hover:"onMouseOver"};var y=a.forwardRef(((t,n)=>{const{visibilityToggle:e=!0}=t,r="object"==typeof e&&void 0!==e.visible,[o,u]=(0,a.useState)((()=>!!r&&e.visible)),l=(0,a.useRef)(null);a.useEffect((()=>{r&&u(e.visible)}),[r,e]);const d=(0,m.Z)(l),p=()=>{const{disabled:n}=t;n||(o&&d(),u((t=>{var n;const r=!t;return"object"==typeof e&&(null===(n=e.onVisibleChange)||void 0===n||n.call(e,r)),r})))},{className:y,prefixCls:g,inputPrefixCls:b,size:j}=t,w=h(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=a.useContext(s.E_),N=C("input",b),Z=C("input-password",g),k=e&&(n=>{const{action:e="click",iconRender:r=_}=t,i=x[e]||"",s=r(o),u={[i]:p,className:`${n}-icon`,key:"passwordIcon",onMouseDown:t=>{t.preventDefault()},onMouseUp:t=>{t.preventDefault()}};return a.cloneElement(a.isValidElement(s)?s:a.createElement("span",null,s),u)})(Z),P=i()(Z,y,{[`${Z}-${j}`]:!!j}),E=Object.assign(Object.assign({},(0,f.Z)(w,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:P,prefixCls:N,suffix:k});return j&&(E.size=j),a.createElement(c.Z,Object.assign({ref:(0,v.sQ)(n,l)},E))})),g=e(78405),b=e(92343),j=e(3113),w=e(19716),C=e(33234),N=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i{const{prefixCls:e,inputPrefixCls:r,className:o,size:u,suffix:l,enterButton:d=!1,addonAfter:p,loading:f,disabled:m,onSearch:h,onChange:_,onCompositionStart:x,onCompositionEnd:y}=t,Z=N(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:k,direction:P}=a.useContext(s.E_),E=a.useRef(!1),O=k("input-search",e),z=k("input",r),{compactSize:S}=(0,C.ri)(O,P),M=(0,w.Z)((t=>{var n;return null!==(n=null!=u?u:S)&&void 0!==n?n:t})),I=a.useRef(null),R=t=>{var n;document.activeElement===(null===(n=I.current)||void 0===n?void 0:n.input)&&t.preventDefault()},B=t=>{var n,e;h&&h(null===(e=null===(n=I.current)||void 0===n?void 0:n.input)||void 0===e?void 0:e.value,t,{source:"input"})},D="boolean"==typeof d?a.createElement(g.Z,null):null,T=`${O}-button`;let $;const A=d||{},L=A.type&&!0===A.type.__ANT_BUTTON;$=L||"button"===A.type?(0,b.Tm)(A,Object.assign({onMouseDown:R,onClick:t=>{var n,e;null===(e=null===(n=null==A?void 0:A.props)||void 0===n?void 0:n.onClick)||void 0===e||e.call(n,t),B(t)},key:"enterButton"},L?{className:T,size:M}:{})):a.createElement(j.ZP,{className:T,type:d?"primary":void 0,size:M,disabled:m,key:"enterButton",onMouseDown:R,onClick:B,loading:f,icon:D},d),p&&($=[$,(0,b.Tm)(p,{key:"addonAfter"})]);const F=i()(O,{[`${O}-rtl`]:"rtl"===P,[`${O}-${M}`]:!!M,[`${O}-with-button`]:!!d},o);return a.createElement(c.Z,Object.assign({ref:(0,v.sQ)(I,n),onPressEnter:t=>{E.current||f||B(t)}},Z,{size:M,onCompositionStart:t=>{E.current=!0,null==x||x(t)},onCompositionEnd:t=>{E.current=!1,null==y||y(t)},prefixCls:z,addonAfter:$,suffix:l,onChange:t=>{t&&t.target&&"click"===t.type&&h&&h(t.target.value,t,{source:"clear"}),_&&_(t)},className:F,disabled:m}))})),k=e(1643);const P=c.Z;P.Group=l,P.Search=Z,P.TextArea=k.Z,P.Password=y;var E=P}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[86541],{86413:function(t,n,e){e.d(n,{Z:function(){return l}});var r=e(81978),i=e(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},o=e(1393),s=function(t,n){return i.createElement(o.Z,(0,r.Z)({},t,{ref:n,icon:a}))};var l=i.forwardRef(s)},76897:function(t,n,e){e.d(n,{Z:function(){return l}});var r=e(81978),i=e(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=e(1393),s=function(t,n){return i.createElement(o.Z,(0,r.Z)({},t,{ref:n,icon:a}))};var l=i.forwardRef(s)},88950:function(t,n,e){var r=e(82242),i=e.n(r),a=(e(59301),e(93314)),o=e(3113),s=e(37712);n.Z=function(t){var n=t.img,e=t.buttonProps,r=void 0===e?{}:e,l=t.styles,u=void 0===l?{}:l,c=t.customText,d=t.ButtonText,p=t.ButtonClick,f=t.Buttonclass,v=t.ButtonTwo,m=t.imgStyles,h=t.loading,_=void 0!==h&&h;return(0,s.jsxs)("section",{className:"tc animated fadeIn",style:i()(i()({},{color:"#999",margin:"100px auto",visibility:_?"hidden":"visible"}),u),children:[(0,s.jsx)("img",{src:n||a,style:i()(i()({},m),{},{pointerEvents:"none",userSelect:"none"})}),(0,s.jsx)("p",{className:"mt20 font14",children:c||"暂时还没有相关数据哦!"}),d&&(0,s.jsx)(o.ZP,i()(i()({className:f,onClick:p},r),{},{children:d})),v&&v]})}},52202:function(t,n,e){e.r(n),e.d(n,{default:function(){return B}});var r=e(79800),i=e.n(r),a=e(39647),o=e.n(a),s=e(59301),l=e(18984),u="bg___NFraa",c="listWrap___CjE2j",d="wrap___C_Y44",p="header___xmePB",f="title___QtIUO",v="titleActive___QM53y",m="titleTag___H94gS",h="time___lPMs2",_="introduction___fWThm",x="bottom___xMvhs",y="user_img___sxqC_",g="user_name___A8eWp",b="tags_name___jYXzp",j="fileName___IyKvf",w="updateStley___Xt7he",C=e(25263),N=e(6848),Z=e(51945),k=e(8591),P=e(92890),E=e(37704),O=e(17810),z=e.n(O),S=e(30233),M=e(88950),I=e(37712),R=["shixunsDetail","globalSetting","loading","user","dispatch"],B=(0,l.connect)((function(t){var n=t.shixunsDetail,e=t.loading;return{shixunsDetail:n,globalSetting:t.globalSetting,user:t.user,loading:e}}))((function(t){var n,e,r=t.shixunsDetail,a=(t.globalSetting,t.loading,t.user),O=(t.dispatch,o()(t,R),(0,s.useRef)()),B=(0,s.useState)(),D=i()(B,2),T=D[0],$=D[1];(0,s.useEffect)((function(){var t;O.current=null===(t=location.pathname)||void 0===t||null===(t=t.split("/"))||void 0===t?void 0:t[2],A()}),[]);var A=function(){(0,S.pi)(O.current).then((function(t){0==(null==t?void 0:t.status)&&$(null==t?void 0:t.data)}))},L=null===(n=a.userInfo)||void 0===n||null===(n=n.shixun)||void 0===n?void 0:n.own,F=null===(e=a.userInfo)||void 0===e||null===(e=e.shixun)||void 0===e?void 0:e.lookable;return(0,I.jsxs)("section",{className:u,children:[(0,I.jsxs)("div",{className:c,children:[(null==T?void 0:T.length)>0?null==T?void 0:T.map((function(t,n){var e,r,i,a,o,s,l,u,c,w,C;return(0,I.jsxs)("aside",{className:d,children:[null!=t&&null!==(e=t.data_set_info)&&void 0!==e&&e.id||"自定义数据集"!=(null==t||null===(r=t.data_set_info)||void 0===r?void 0:r.title)?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:p,children:[(0,I.jsx)("div",{className:"".concat(f," ").concat(v),onClick:function(){var n;return(0,E.xg)("/dataset/".concat(null==t||null===(n=t.data_set_info)||void 0===n?void 0:n.id,"/detail?tabId=mine"))},children:null==t||null===(i=t.data_set_info)||void 0===i?void 0:i.title}),1!=(null==t||null===(a=t.data_set_info)||void 0===a?void 0:a.public_status)&&(0,I.jsx)("div",{className:m,children:"私有"}),(0,I.jsx)("div",{className:h,children:null==t||null===(o=t.data_set_info)||void 0===o?void 0:o.created_at})]}),(0,I.jsx)("div",{className:_,children:null==t||null===(s=t.data_set_info)||void 0===s?void 0:s.desc}),(0,I.jsxs)("div",{className:x,children:[(0,I.jsx)("img",{className:y,alt:"用户头像",src:"".concat(P.Z.IMG_SERVER,"/images/").concat(null==t||null===(l=t.data_set_info)||void 0===l||null===(l=l.user_info)||void 0===l?void 0:l.image_url)}),(0,I.jsx)("div",{className:g,children:null==t||null===(u=t.data_set_info)||void 0===u||null===(u=u.user_info)||void 0===u?void 0:u.name}),null==t||null===(c=t.data_set_info)||void 0===c||null===(c=c.data_set_tags)||void 0===c?void 0:c.map((function(n,e){return e<3?(0,I.jsx)("div",{className:b,children:null==n?void 0:n.tag_name},e):3==e?(0,I.jsx)(N.Z,{title:null==t||null===(r=t.data_set_info)||void 0===r||null===(r=r.data_set_tags)||void 0===r?void 0:r.map((function(n,e){var r;if(e>2)return(null==n?void 0:n.tag_name)+(e===(null==t||null===(r=t.data_set_info)||void 0===r||null===(r=r.data_set_tags)||void 0===r?void 0:r.length)-1?"":"、")})).join(""),children:(0,I.jsx)("div",{className:b,children:"..."},e)},e):null;var r}))]})]}):(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:p,children:[(0,I.jsx)("div",{className:f,style:{maxWidth:"40%"},children:"自定义数据集"}),(0,I.jsx)("div",{className:m,children:"私有"}),(0,I.jsx)("div",{className:h,style:{width:"50%"},children:"该内容为实践项目管理人员自主上传的数据文件"})]})}),(0,I.jsx)("div",{className:j,children:"文件列表"}),(0,I.jsx)(Z.Z,{columns:null===(w=[{title:"文件",dataIndex:"title",key:"title",align:"left",className:"font14",width:"220px",render:function(t,n){return(0,I.jsx)("div",{children:n.title||"--"})}},{title:"备注",dataIndex:"description",key:"description",align:"center",className:"font14",render:function(t,n){return(0,I.jsx)("div",{children:n.description||"--"})}},{title:"创建时间",dataIndex:"created_on",key:"created_on",align:"center",className:"font14",width:"150px",render:function(t,n){return(0,I.jsx)("div",{children:z()(n.created_on).format("YYYY-MM-DD HH:mm")})}},{title:"文件大小",dataIndex:"filesize",key:"filesize",align:"center",className:"font14",render:function(t,n){return(0,I.jsx)("div",{children:n.filesize||"--"})}},(null==t||null===(C=t.data_set_info)||void 0===C?void 0:C.id)&&{title:"操作",dataIndex:"operation",key:"operation",align:"center",className:"font14 current",render:function(n,e){return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(N.Z,{title:"下载",children:(0,I.jsx)("span",{style:{color:"#3061D0",fontSize:"14px"},onClick:function(){var n;1==(null==t||null===(n=t.data_set_info)||void 0===n?void 0:n.public_status)?(0,E.Nd)(e.title,null==e?void 0:e.download_url):k.ZP.warning("当前数据集未公开,不可下载")},children:"下载"})})})}}])||void 0===w?void 0:w.filter((function(t){return!!t})),dataSource:null==t?void 0:t.attachments,pagination:!1})]},n)})):(0,I.jsx)(M.Z,{}),L&&F&&(0,I.jsx)("div",{className:w,style:{width:(null==T?void 0:T.length)>0?"68px":"100px"},onClick:function(){var t;null!=r&&null!==(t=r.detail)&&void 0!==t&&t.is_jupyter?l.history.push("/shixuns/".concat(O.current,"/dataset/jupyterEdit")):l.history.push("/shixuns/".concat(O.current,"/edit?tabId=dataset"))},children:(null==T?void 0:T.length)>0?"修改":"添加数据集"})]}),(0,I.jsx)(C.Z,{})]})}))},30233:function(t,n,e){e.d(n,{A0:function(){return T},Ce:function(){return P},Dx:function(){return h},Il:function(){return B},R2:function(){return Z},R9:function(){return j},Ru:function(){return C},To:function(){return v},_S:function(){return p},a6:function(){return x},bj:function(){return c},l5:function(){return I},nW:function(){return g},pP:function(){return S},pi:function(){return O}});var r=e(7557),i=e.n(r),a=e(82242),o=e.n(a),s=e(41498),l=e.n(s),u=e(23691);function c(t){return d.apply(this,arguments)}function d(){return(d=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/tags.json",{method:"get",params:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t){return f.apply(this,arguments)}function f(){return(f=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets.json",{method:"get",params:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return m.apply(this,arguments)}function m(){return(m=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(n,"/apply_public.json"),{method:"post"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(t){return _.apply(this,arguments)}function _(){return(_=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(n,"/revoke_apply_public.json"),{method:"post"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t){return y.apply(this,arguments)}function y(){return(y=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(n,"/cancel_public.json"),{method:"post"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t){return b.apply(this,arguments)}function b(){return(b=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/collections.json",{method:"post",body:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t){return w.apply(this,arguments)}function w(){return(w=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/collections/cancel.json",{method:"delete",body:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t){return N.apply(this,arguments)}function N(){return(N=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(n,".json"),{method:"get"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Z(t){return k.apply(this,arguments)}function k(){return(k=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(null==n?void 0:n.id,"/edit_introduce.json"),{method:"put",body:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t){return E.apply(this,arguments)}function E(){return(E=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(null==n?void 0:n.id,"/used_shixuns.json"),{method:"get",params:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(t){return z.apply(this,arguments)}function z(){return(z=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/shixuns/".concat(n,"/data_sets_list.json"),{method:"get"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(t){return M.apply(this,arguments)}function M(){return(M=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(n,"/delete.json"),{method:"delete"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(t){return R.apply(this,arguments)}function R(){return(R=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/teach_group_shares.json",{method:"post",body:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(t){return D.apply(this,arguments)}function D(){return(D=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t){return $.apply(this,arguments)}function $(){return($=l()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,u.ZP)("/api/data_sets/".concat(null==n?void 0:n.id,"/edit_file_info.json"),{method:"put",body:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},92832:function(t,n,e){e.d(n,{Z:function(){return E}});var r=e(92310),i=e.n(r),a=e(59301),o=e(36355),s=e(32441),l=e(9937);var u=t=>{const{getPrefixCls:n,direction:e}=(0,a.useContext)(o.E_),{prefixCls:r,className:u}=t,c=n("input-group",r),d=n("input"),[p,f]=(0,l.ZP)(d),v=i()(c,{[`${c}-lg`]:"large"===t.size,[`${c}-sm`]:"small"===t.size,[`${c}-compact`]:t.compact,[`${c}-rtl`]:"rtl"===e},f,u),m=(0,a.useContext)(s.aM),h=(0,a.useMemo)((()=>Object.assign(Object.assign({},m),{isFormItemInput:!1})),[m]);return p(a.createElement("span",{className:v,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},a.createElement(s.aM.Provider,{value:h},t.children)))},c=e(9432),d=e(86413),p=e(76897),f=e(55405),v=e(25629),m=e(59412),h=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);it?a.createElement(p.Z,null):a.createElement(d.Z,null),x={click:"onClick",hover:"onMouseOver"};var y=a.forwardRef(((t,n)=>{const{visibilityToggle:e=!0}=t,r="object"==typeof e&&void 0!==e.visible,[s,l]=(0,a.useState)((()=>!!r&&e.visible)),u=(0,a.useRef)(null);a.useEffect((()=>{r&&l(e.visible)}),[r,e]);const d=(0,m.Z)(u),p=()=>{const{disabled:n}=t;n||(s&&d(),l((t=>{var n;const r=!t;return"object"==typeof e&&(null===(n=e.onVisibleChange)||void 0===n||n.call(e,r)),r})))},{className:y,prefixCls:g,inputPrefixCls:b,size:j}=t,w=h(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=a.useContext(o.E_),N=C("input",b),Z=C("input-password",g),k=e&&(n=>{const{action:e="click",iconRender:r=_}=t,i=x[e]||"",o=r(s),l={[i]:p,className:`${n}-icon`,key:"passwordIcon",onMouseDown:t=>{t.preventDefault()},onMouseUp:t=>{t.preventDefault()}};return a.cloneElement(a.isValidElement(o)?o:a.createElement("span",null,o),l)})(Z),P=i()(Z,y,{[`${Z}-${j}`]:!!j}),E=Object.assign(Object.assign({},(0,f.Z)(w,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:P,prefixCls:N,suffix:k});return j&&(E.size=j),a.createElement(c.Z,Object.assign({ref:(0,v.sQ)(n,u)},E))})),g=e(78405),b=e(92343),j=e(3113),w=e(19716),C=e(33234),N=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i{const{prefixCls:e,inputPrefixCls:r,className:s,size:l,suffix:u,enterButton:d=!1,addonAfter:p,loading:f,disabled:m,onSearch:h,onChange:_,onCompositionStart:x,onCompositionEnd:y}=t,Z=N(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:k,direction:P}=a.useContext(o.E_),E=a.useRef(!1),O=k("input-search",e),z=k("input",r),{compactSize:S}=(0,C.ri)(O,P),M=(0,w.Z)((t=>{var n;return null!==(n=null!=l?l:S)&&void 0!==n?n:t})),I=a.useRef(null),R=t=>{var n;document.activeElement===(null===(n=I.current)||void 0===n?void 0:n.input)&&t.preventDefault()},B=t=>{var n,e;h&&h(null===(e=null===(n=I.current)||void 0===n?void 0:n.input)||void 0===e?void 0:e.value,t,{source:"input"})},D="boolean"==typeof d?a.createElement(g.Z,null):null,T=`${O}-button`;let $;const A=d||{},L=A.type&&!0===A.type.__ANT_BUTTON;$=L||"button"===A.type?(0,b.Tm)(A,Object.assign({onMouseDown:R,onClick:t=>{var n,e;null===(e=null===(n=null==A?void 0:A.props)||void 0===n?void 0:n.onClick)||void 0===e||e.call(n,t),B(t)},key:"enterButton"},L?{className:T,size:M}:{})):a.createElement(j.ZP,{className:T,type:d?"primary":void 0,size:M,disabled:m,key:"enterButton",onMouseDown:R,onClick:B,loading:f,icon:D},d),p&&($=[$,(0,b.Tm)(p,{key:"addonAfter"})]);const F=i()(O,{[`${O}-rtl`]:"rtl"===P,[`${O}-${M}`]:!!M,[`${O}-with-button`]:!!d},s);return a.createElement(c.Z,Object.assign({ref:(0,v.sQ)(I,n),onPressEnter:t=>{E.current||f||B(t)}},Z,{size:M,onCompositionStart:t=>{E.current=!0,null==x||x(t)},onCompositionEnd:t=>{E.current=!1,null==y||y(t)},prefixCls:z,addonAfter:$,suffix:u,onChange:t=>{t&&t.target&&"click"===t.type&&h&&h(t.target.value,t,{source:"clear"}),_&&_(t)},className:F,disabled:m}))})),k=e(1643);const P=c.Z;P.Group=u,P.Search=Z,P.TextArea=k.Z,P.Password=y;var E=P}}]); \ No newline at end of file diff --git a/p__Shixuns__Detail__Dataset__index.chunk.css b/p__Shixuns__Detail__Dataset__index.chunk.css index 5e7a1dd6ed..de3bdee02c 100644 --- a/p__Shixuns__Detail__Dataset__index.chunk.css +++ b/p__Shixuns__Detail__Dataset__index.chunk.css @@ -1 +1 @@ -.bg___NFraa{display:flex;justify-content:space-between;margin:30px auto 80px;width:1200px}.bg___NFraa .listWrap___CjE2j{background:#fff;width:888px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44{border-bottom:1px solid #f5f5f5;border-radius:4px;margin-bottom:20px;padding:20px 20px 30px;position:relative;width:100%}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB{align-items:center;display:flex;height:25px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .title___QtIUO{color:#000;font-family:PingFangSC,PingFang SC;font-size:20px;font-style:normal;font-weight:600;height:25px;line-height:25px;max-width:calc(80% - 54px);overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .titleActive___QM53y:hover{color:#165dff;cursor:pointer}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .titleTag___H94gS{background:rgba(255,142,2,.1);border-radius:10px;color:#ff8e02;font-family:PingFangSC,PingFang SC;font-size:12px;font-style:normal;font-weight:400;height:20px;line-height:20px;margin-left:10px;text-align:center;width:44px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .time___lPMs2{color:#9096a3;font-family:PingFangSC,PingFang SC;font-size:12px;font-style:normal;font-weight:400;height:25px;line-height:25px;margin-left:auto;text-align:right;width:20%}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .introduction___fWThm{color:#666;font-family:PingFangSC,PingFang SC;font-size:14px;font-style:normal;font-weight:400;line-height:22px;margin:10px 0 20px;text-align:justify}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .from___jAvjD{color:#5f6368;font-size:14px;font-weight:400;margin-bottom:25px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs{display:flex;height:22px;line-height:22px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs .user_img___sxqC_{border-radius:50%;height:22px;margin-right:6px;width:22px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs .user_name___A8eWp{color:#5f6368;color:#000;font-family:PingFangSC,PingFang SC;font-size:14px;font-style:normal;font-weight:400;margin-right:20px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs .tags_name___jYXzp{background:#f6f7f9;border-radius:2px;color:#9096a3;font-size:12px;height:22px;line-height:22px;margin-right:10px;padding:0 8px;text-align:center}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .fileName___IyKvf{color:#000;font-family:PingFangSC,PingFang SC;font-size:16px;font-style:normal;font-weight:500;height:26px;line-height:26px;margin:20px 0;text-align:center;width:64px}.bg___NFraa .listWrap___CjE2j .updateStley___Xt7he{background:linear-gradient(180deg,#fff,#f6f7f9),#f6f7f9;border:1px solid #bacffe;border-radius:2px;box-shadow:0 2px 4px 0 #e0dfe1,inset 0 1px 3px 0 hsla(0,0%,100%,.5);color:#3061d0;cursor:pointer;font-family:PingFangSC,PingFang SC;font-size:14px;font-style:normal;font-weight:400;height:32px;line-height:30px;margin:20px auto;text-align:center;width:68px}.flex_box_center___PT9hL{box-align:center;align-items:center;justify-content:center;-webkit-justify-content:center}.flex_space_between___n2Hu5{-webkit-box-pack:justify;justify-content:space-between}.flex_box_vertical_center___dwn6D{box-align:center;align-items:center}.flex_box_center_end___TwHBO{-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end;align-items:center;-webkit-align-items:center;justify-content:flex-end;-webkit-justify-content:flex-end}.flex_box_column___eAUqU{box-orient:block-axis;flex-direction:column}.rightWrap___Y_2WO{padding-left:20px;width:35%}.learnWrap___mca1k{background-color:#fff;border-radius:4px;margin-bottom:20px;overflow:hidden;padding:25px 20px 15px}.learnTopWrap___cn6Tj{align-items:center;display:box;display:flex;font-size:16px;justify-content:space-between;margin-bottom:14px}.courseWrap___N3Z6X{background-color:#fff;border-radius:4px;margin-bottom:20px;overflow:hidden;padding:20px}.pathWrap___QSdXs{display:box;display:flex;margin-bottom:20px}.pathImg___VjPqu{border-radius:4px;height:60px;width:100px}.pathContentItem___sxOSQ{display:flex;flex:1 1;flex-direction:row;margin-bottom:20px}.pathContentWrap___WttwX{align-items:flex-start;display:flex;flex:1 1;flex-direction:column;justify-content:flex-end;margin-bottom:-6px;margin-left:10px}.pathContentWrap___WttwX .pathContentName___evsEv{color:#333;display:block;margin-bottom:6px;max-width:222px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pathContent___fz4ds{color:#b4b4b4;font-size:12px;margin:0}.pathContentCount___Jlv3G{line-height:25px;margin-right:10px}.recommandTrainingWrap___F1gpg{background-color:#fff;border-radius:4px;margin-bottom:20px;overflow:hidden;padding:20px}.recommandContent___JZYAA{align-items:center;display:box;display:flex;justify-content:space-between;margin-top:5px;width:100%}.recommandLevel___McDUw{color:#999;padding-right:10px}.color0152d9___JWNjt{color:#0152d9}.color999___npg2L{color:#999}.color888___l_1AP{color:#888}.color333___ec_mY{color:#333}.iconDeleteColor___aZjDG{color:#f55}.iconMoveColor___z4k0w{color:#33bd8c}.iconEditColor___wxNTY{color:#5091ff}.skillWrap___j6j3B{background-color:#fff;margin-bottom:10px;padding:25px 20px 15px}.skillTopWrap___kIJbE{align-items:center;display:box;display:flex;justify-content:space-between}.time___dTwAe{border-top:1px solid hsla(0,0%,93%,.93);margin-top:20px}.titleImg___I8kT9{margin-right:4px;vertical-align:sub} \ No newline at end of file +.bg___NFraa{display:flex;justify-content:space-between;margin:30px auto 80px;width:1200px}.bg___NFraa .listWrap___CjE2j{background:#fff;width:888px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44{border-bottom:1px solid #f5f5f5;border-radius:4px;margin-bottom:20px;padding:20px 20px 30px;position:relative;width:100%}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB{align-items:center;display:flex;height:25px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .title___QtIUO{color:#000;font-family:PingFangSC,PingFang SC;font-size:20px;font-style:normal;font-weight:600;height:25px;line-height:25px;max-width:calc(80% - 54px);overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .titleActive___QM53y:hover{color:#165dff;cursor:pointer}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .titleTag___H94gS{background:rgba(255,142,2,.1);border-radius:10px;color:#ff8e02;font-family:PingFangSC,PingFang SC;font-size:12px;font-style:normal;font-weight:400;height:20px;line-height:20px;margin-left:10px;text-align:center;width:44px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .header___xmePB .time___lPMs2{color:#9096a3;font-family:PingFangSC,PingFang SC;font-size:12px;font-style:normal;font-weight:400;height:25px;line-height:25px;margin-left:auto;text-align:right;width:20%}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .introduction___fWThm{color:#666;font-family:PingFangSC,PingFang SC;font-size:14px;font-style:normal;font-weight:400;line-height:22px;margin:10px 0 20px;text-align:justify}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .from___jAvjD{color:#5f6368;font-size:14px;font-weight:400;margin-bottom:25px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs{display:flex;height:22px;line-height:22px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs .user_img___sxqC_{border-radius:50%;height:22px;margin-right:6px;width:22px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs .user_name___A8eWp{color:#5f6368;color:#000;font-family:PingFangSC,PingFang SC;font-size:14px;font-style:normal;font-weight:400;margin-right:20px}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .bottom___xMvhs .tags_name___jYXzp{background:#f6f7f9;border-radius:2px;color:#9096a3;font-size:12px;height:22px;line-height:22px;margin-right:10px;padding:0 8px;text-align:center}.bg___NFraa .listWrap___CjE2j .wrap___C_Y44 .fileName___IyKvf{color:#000;font-family:PingFangSC,PingFang SC;font-size:16px;font-style:normal;font-weight:500;height:26px;line-height:26px;margin:20px 0;text-align:center;width:64px}.bg___NFraa .listWrap___CjE2j .updateStley___Xt7he{background:linear-gradient(180deg,#fff,#f6f7f9),#f6f7f9;border:1px solid #bacffe;border-radius:2px;box-shadow:0 2px 4px 0 #e0dfe1,inset 0 1px 3px 0 hsla(0,0%,100%,.5);color:#3061d0;cursor:pointer;font-family:PingFangSC,PingFang SC;font-size:14px;font-style:normal;font-weight:400;height:32px;line-height:30px;margin:20px auto;text-align:center}.flex_box_center___PT9hL{box-align:center;align-items:center;justify-content:center;-webkit-justify-content:center}.flex_space_between___n2Hu5{-webkit-box-pack:justify;justify-content:space-between}.flex_box_vertical_center___dwn6D{box-align:center;align-items:center}.flex_box_center_end___TwHBO{-webkit-box-align:center;-webkit-box-pack:end;box-align:center;box-pack:end;align-items:center;-webkit-align-items:center;justify-content:flex-end;-webkit-justify-content:flex-end}.flex_box_column___eAUqU{box-orient:block-axis;flex-direction:column}.rightWrap___Y_2WO{padding-left:20px;width:35%}.learnWrap___mca1k{background-color:#fff;border-radius:4px;margin-bottom:20px;overflow:hidden;padding:25px 20px 15px}.learnTopWrap___cn6Tj{align-items:center;display:box;display:flex;font-size:16px;justify-content:space-between;margin-bottom:14px}.courseWrap___N3Z6X{background-color:#fff;border-radius:4px;margin-bottom:20px;overflow:hidden;padding:20px}.pathWrap___QSdXs{display:box;display:flex;margin-bottom:20px}.pathImg___VjPqu{border-radius:4px;height:60px;width:100px}.pathContentItem___sxOSQ{display:flex;flex:1 1;flex-direction:row;margin-bottom:20px}.pathContentWrap___WttwX{align-items:flex-start;display:flex;flex:1 1;flex-direction:column;justify-content:flex-end;margin-bottom:-6px;margin-left:10px}.pathContentWrap___WttwX .pathContentName___evsEv{color:#333;display:block;margin-bottom:6px;max-width:222px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pathContent___fz4ds{color:#b4b4b4;font-size:12px;margin:0}.pathContentCount___Jlv3G{line-height:25px;margin-right:10px}.recommandTrainingWrap___F1gpg{background-color:#fff;border-radius:4px;margin-bottom:20px;overflow:hidden;padding:20px}.recommandContent___JZYAA{align-items:center;display:box;display:flex;justify-content:space-between;margin-top:5px;width:100%}.recommandLevel___McDUw{color:#999;padding-right:10px}.color0152d9___JWNjt{color:#0152d9}.color999___npg2L{color:#999}.color888___l_1AP{color:#888}.color333___ec_mY{color:#333}.iconDeleteColor___aZjDG{color:#f55}.iconMoveColor___z4k0w{color:#33bd8c}.iconEditColor___wxNTY{color:#5091ff}.skillWrap___j6j3B{background-color:#fff;margin-bottom:10px;padding:25px 20px 15px}.skillTopWrap___kIJbE{align-items:center;display:box;display:flex;justify-content:space-between}.time___dTwAe{border-top:1px solid hsla(0,0%,93%,.93);margin-top:20px}.titleImg___I8kT9{margin-right:4px;vertical-align:sub} \ No newline at end of file diff --git a/p__Shixuns__Detail__id.async.js b/p__Shixuns__Detail__id.async.js index 9d04c9646e..f70001b49e 100644 --- a/p__Shixuns__Detail__id.async.js +++ b/p__Shixuns__Detail__id.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52875,20190],{3148:function(e,n,t){t.d(n,{Z:function(){return o}});var i=t(81978),a=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=t(1393),r=function(e,n){return a.createElement(l.Z,(0,i.Z)({},e,{ref:n,icon:s}))};var o=a.forwardRef(r)},32096:function(e,n,t){t.d(n,{Z:function(){return f}});var i=t(82242),a=t.n(i),s=t(7557),l=t.n(s),r=t(41498),o=t.n(r),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),h=t(3113),x=t(59301),v=t(37712),m=["children"],f=function(e){var n=e.children,t=p()(e,m),i=(0,x.useState)(!1),s=d()(i,2),r=s[0],c=s[1];return(0,v.jsx)(h.ZP,a()(a()({},t),{},{loading:r,onClick:function(){var e=o()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c(!0),e.next=4,t.onClick(n);case 4:c(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),c(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},88950:function(e,n,t){var i=t(82242),a=t.n(i),s=(t(59301),t(93314)),l=t(3113),r=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,i=void 0===t?{}:t,o=e.styles,c=void 0===o?{}:o,d=e.customText,u=e.ButtonText,p=e.ButtonClick,h=e.Buttonclass,x=e.ButtonTwo,v=e.imgStyles,m=e.loading,f=void 0!==m&&m;return(0,r.jsxs)("section",{className:"tc animated fadeIn",style:a()(a()({},{color:"#999",margin:"100px auto",visibility:f?"hidden":"visible"}),c),children:[(0,r.jsx)("img",{src:n||s,style:a()(a()({},v),{},{pointerEvents:"none",userSelect:"none"})}),(0,r.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,r.jsx)(l.ZP,a()(a()({className:h,onClick:p},i),{},{children:u})),x&&x]})}},5259:function(e,n,t){t.d(n,{Z:function(){return O},P:function(){return A}});var i=t(37205),a=t.n(i),s=t(39647),l=t.n(s),r=t(7557),o=t.n(r),c=t(82242),d=t.n(c),u=t(41498),p=t.n(u),h=t(79800),x=t.n(h),v=t(59301),m=t(78241),f=t(43418),g=t(5112),y=t(92832),j=t(51945),b="brief___LOzpE",_="contentTitle___xkdcN",k="content___Vtri0",w="antdTable___s8T2N",Z="tableCell___kN9Fw",N="antdModal___WVBk3",C="orangeColor___ryB2u",S=t(19471),I=t(37712),P=["isImportMultipleCourse"],T=function(e){var n=e.studentNames,t=e.total;return t>3?(0,I.jsxs)(I.Fragment,{children:["课堂内有",(0,I.jsx)("span",{className:C,children:null==n?void 0:n.join("、")}),"等",(0,I.jsx)("span",{className:C,children:t}),"名学生"]}):(0,I.jsxs)(I.Fragment,{children:["课堂内有",(0,I.jsx)("span",{className:C,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},D=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,a=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),l=void 0!==s&&s,r=m.Z.useForm(),c=x()(r,1)[0],u=(0,v.useState)(1),h=x()(u,2),y=h[0],j=h[1],b=(0,v.useState)(!1),_=x()(b,2),w=_[0],Z=_[1],S=(0,v.useMemo)((function(){return 1===(null==a?void 0:a.total_num)&&1===(null==a?void 0:a.can_copy_num)}),[a]),P=(0,v.useMemo)((function(){var e;return null==a||null===(e=a.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[a]);return(0,I.jsx)(I.Fragment,{children:S?(0,I.jsxs)(f.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:N,width:682,confirmLoading:w,onCancel:n,onOk:p()(o()().mark((function e(){var n,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),n=y,l&&(s=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_copy:s[e.id]}):e}))),e.next=5,t(n);case 5:Z(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,I.jsx)("div",{className:k,style:{marginBottom:20},children:l?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(T,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),l?(0,I.jsx)(m.Z,{form:c,preserve:!1,children:null==P?void 0:P.map((function(e){return(0,I.jsxs)(v.Fragment,{children:[(0,I.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,I.jsx)(m.Z.Item,{name:e.id,initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{className:k,children:[(0,I.jsx)(g.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,I.jsx)(g.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,I.jsxs)(g.ZP.Group,{value:y,onChange:function(e){return j(e.target.value)},className:k,style:{marginBottom:30},children:[(0,I.jsx)(g.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,I.jsx)(g.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:k,style:{marginBottom:10},children:"* 说明:"}),(0,I.jsx)("div",{className:k,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,I.jsx)("div",{className:"".concat(k," ").concat(C),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,I.jsx)(f.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:w,title:"提示",width:682,onCancel:n,onOk:p()(o()().mark((function e(){var n,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),n=0,l&&(s=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_use:s[e.id]}):e}))),e.next=5,t(n);case 5:Z(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,I.jsxs)("div",{className:k,children:[(0,I.jsx)(T,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。",l?(0,I.jsxs)(m.Z,{form:c,preserve:!1,children:[(0,I.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==P?void 0:P.map((function(e){return(0,I.jsxs)(v.Fragment,{children:[(0,I.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,I.jsx)(m.Z.Item,{name:e.id,initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{className:k,children:[(0,I.jsx)(g.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,I.jsx)(g.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,I.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,I.jsx)("span",{className:C,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},A=function(){var e=(0,v.useState)(!1),n=x()(e,2),t=n[0],i=n[1],a=(0,v.useState)(),s=x()(a,2),r=s[0],c=s[1],d=function(){var e=p()(o()().mark((function e(n){var t,a,s,r,d;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,a=void 0!==t&&t,s=l()(n,P),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,S.Tr)(s);case 6:e.t0=e.sent;case 7:if(!("status"in(r=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!a){e.next=17;break}if(!(null==r||null===(d=r.course_data_list)||void 0===d?void 0:d.some((function(e){return e.is_show})))){e.next=16;break}return c(r),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",r.course_data_list||[]);case 17:if(0!==r.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return c(r),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return i(!1)},r,d]},E=function(e){var n=m.Z.useForm(),t=x()(n,1)[0],i=(0,v.useState)(!1),s=x()(i,2),l=s[0],r=s[1],c=e.onCancel,d=e.onOk,u=e.visible,h=e.inPaper,k=void 0!==h&&h,S=e.renderData,P=e.type,D=e.isMultipleCourse,A=void 0!==D&&D,E=e.position,O=(0,v.useMemo)((function(){return k?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Z,render:function(e,n){return(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,I.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Z,render:function(e,n){return(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})})}}]}),[k]),B=(0,v.useMemo)((function(){return k?[{title:"实践项目名称",dataIndex:"name",width:424,className:Z,align:"center",ellipsis:!0,render:function(e,n){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,I.jsx)(y.Z,{type:"hidden"})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,I.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:Z,ellipsis:!0,align:"center",render:function(e,n){return(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,I.jsx)(y.Z,{type:"hidden"})})]})}}]}),[k]);if(A){var z={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Z,render:function(e,n){return(0,I.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};O=[z].concat(a()(O)),B=[z].concat(a()(B))}var L=(0,v.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,a=e.studentNames,s=e.studentCount,l=e.inPaper,r=e.is_random,o=void 0!==r&&r,c=e.position,d=(void 0===c?"":c)||(l?"试卷":"课程");return(0,I.jsxs)("span",{children:[(0,I.jsx)(T,{studentNames:a,total:s}),"学习过",d,"中的",(0,I.jsx)("span",{className:C,children:n}),"个项目,",t>0&&i>0?(0,I.jsxs)(I.Fragment,{children:["其中",(0,I.jsx)("span",{className:C,children:t}),"个项目支持复制,",(0,I.jsx)("span",{className:C,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,I.jsxs)(I.Fragment,{children:["其中",(0,I.jsx)("span",{className:C,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,I.jsxs)(I.Fragment,{children:["其中",(0,I.jsx)("span",{className:C,children:i}),"个项目不支持复制"]}):void 0,"。请选择",o?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==S?void 0:S.repeat_shixun_num,copy:null==S?void 0:S.can_copy_num,canNotCopy:null==S?void 0:S.no_copy_num,studentNames:null==S?void 0:S.student_names,studentCount:null==S?void 0:S.student_count,is_random:null==S?void 0:S.is_random,inPaper:k,position:E})}),[S,k,E]);return(0,I.jsx)(f.Z,{title:"提示",centered:!0,open:u,confirmLoading:l,onOk:p()(o()().mark((function e(){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),n=t.getFieldsValue(),i=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,d(i);case 5:r(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:c,width:880,okText:"确认",className:N,destroyOnClose:!0,children:(0,I.jsxs)(m.Z,{form:t,preserve:!1,children:[(0,I.jsx)("div",{className:b,children:L}),(0,I.jsxs)("div",{style:{marginBottom:30},children:[(0,I.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,I.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,I.jsx)("div",{className:C,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==S?void 0:S.can_copy_num)>0&&(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:_,children:"支持复制的项目"}),(0,I.jsx)(j.Z,{columns:O,className:w,dataSource:null==S?void 0:S.can_copy_list,rowKey:"subject"===P?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==S?void 0:S.no_copy_num)>0&&(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:_,children:"不支持复制的项目"}),(0,I.jsx)(j.Z,{columns:B,className:w,dataSource:null==S?void 0:S.no_copy_list,rowKey:"subject"===P?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==S?void 0:S.no_use_list.length)>0&&(null==S?void 0:S.no_use_list.map((function(e){return(0,I.jsxs)("div",{children:[(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,I.jsx)(y.Z,{type:"hidden"})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,I.jsx)(y.Z,{type:"hidden"})})]},"subject"===P?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},O=function(e){return"multiple"===e.modalType?(0,I.jsx)(E,d()({},e)):(0,I.jsx)(D,d()({},e))}},1043:function(e,n,t){t.r(n),t.d(n,{default:function(){return Ue}});var i=t(79800),a=t.n(i),s=t(59301),l=t(18984),r=t(20834),o=t(7557),c=t.n(o),d=t(41498),u=t.n(d),p=t(39647),h=t.n(p),x=t(8591),v=t(43418),m=t(92832),f=t(6848),g=t(60324),y=t(71418),j=t(5112),b=t(81327),_=t(94001),k=t(43604),w=t(19842),Z=t(95237),N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n={"开始实战":"开始学习并完成实战任务","继续挑战":"继续完成后续学习和实战任务","查看实战":"查看我的实战光辉历史","模拟实战":"模拟完成实战任务","开启挑战":"开始学习并完成实战任务"};return n[e]||""},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:99,n=[0,3,1,-1];return!n.includes(e)},S={flex_box_center:"flex_box_center___C7BpK",flex_space_between:"flex_space_between___y5tEt",flex_box_vertical_center:"flex_box_vertical_center___BzS9v",flex_box_center_end:"flex_box_center_end___BlZGt",flex_box_column:"flex_box_column___XFVq1",banner:"banner___x1zhX",wrp:"wrp___HroXY",action:"action___Q9oWd",titleWrap:"titleWrap___LbsjD",deleteBtnStatus:"deleteBtnStatus___QiOcU",title:"title___nwoJQ",btn:"btn___tsJce",btn_type:"btn_type___pqyD9",actionBtns:"actionBtns___VEzTd",ratingTitle:"ratingTitle___sVN4G",fork:"fork___zCzx7",collect:"collect___JiCST",gold:"gold___f3DHn",handleOverflow:"handleOverflow___gVLUz",laboratory:"laboratory___KOOT4",name:"name___NM3vA",contentWrap:"contentWrap___IYvpn",contentLeftWrap:"contentLeftWrap___O88ow",user:"user___WJ43b",text:"text___Ip9I2",d1:"d1___iRJGr",d2:"d2___GxMoB",operationWrap:"operationWrap___OafFH",iconBtn:"iconBtn___SopdR",testBtn:"testBtn___FstX2",fullScreenLoading:"fullScreenLoading___QcDyh",customPopover:"customPopover___v_kEO",active:"active___B6kUu",splitInfo:"splitInfo___Iz1oG",splitInfo_t1:"splitInfo_t1___leyKR",splitInfo_t2:"splitInfo_t2___BwEYQ"},I=t(99379),P=t(82242),T=t.n(P),D=t(86859),A="wrap___E1Sbk",E="title___nUI57",O="radioWrap___OlPAG",B="radio___S9z0O",z="colorFF0000___xX56a",L="pagination___fvfxn",R=t(5259),V=t(37712),W=["shixunsDetail","globalSetting","loading","dispatch"],F=m.Z.Search,K=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t,i=e.shixunsDetail,r=(e.globalSetting,e.loading,e.dispatch),o=(h()(e,W),(0,l.useParams)()),d=(0,s.useState)(0),p=a()(d,2),m=p[0],f=p[1],g=(0,s.useState)([]),y=a()(g,2),b=y[0],_=y[1],k=(0,s.useState)(""),w=a()(k,2),Z=w[0],N=w[1],C=(0,s.useState)(),S=a()(C,2),I=S[0],P=S[1],K=(0,s.useState)([]),U=a()(K,2),M=(U[0],U[1]),J=(0,s.useState)(!1),q=a()(J,2),H=q[0],Q=q[1],G=(0,s.useState)(!1),X=a()(G,2),Y=X[0],$=X[1],ee=(0,s.useState)({id:null,page:1,limit:10}),ne=a()(ee,2),te=ne[0],ie=ne[1];(0,s.useEffect)((function(){"Banner-SendShixuns"===i.actionTabs.key&&(te.id=o.id,ie(te),ae(te))}),[i.actionTabs.key]);(null==i||null===(n=i.detail)||void 0===n?void 0:n.is_jupyter)||null==i||null===(t=i.detail)||void 0===t||t.is_jupyter_lab;var ae=function(){var e=u()(c()().mark((function e(n){var t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"shixunsDetail/searchUserCourses",payload:n});case 2:401===(t=e.sent).status?(r({type:"shixunsDetail/setActionTabs",payload:{}}),$(!1)):($(!0),f((null==t?void 0:t.courses_count)||0),_((null==t?void 0:t.course_list)||[]));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),se=(0,R.P)(),le=a()(se,4),re=le[0],oe=le[1],ce=le[2],de=le[3],ue=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=3;break}return Q(!0),e.abrupt("return");case 3:return t=null===(n=i.actionTabs.params)||void 0===n?void 0:n.id,$(!1),e.next=7,de({id:t,course_id:I,type:"shixun"});case 7:if(e.sent){e.next=12;break}return e.next=11,pe(0);case 11:he();case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=u()(c()().mark((function e(n){var t,a,s,l;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=null===(t=i.actionTabs.params)||void 0===t?void 0:t.id,s={id:a,identifier:o.id,courses:[{id:a,course_id:I,identifier:o.id,type:"normal",is_use:1,is_copy:n}]},e.next=4,r({type:"shixunsDetail/sendToCourse",payload:s});case 4:401!==(l=e.sent).status&&404!==l.status?(x.ZP.success(l.message),he(),oe(),window.location.href=l.first_category_url):(he(),oe());case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),he=function(){N(""),P(null),Q(!1),M([]),r({type:"shixunsDetail/setActionTabs",payload:{}}),$(!1)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"发送实训",open:Y,okText:"确定",cancelText:"取消",onOk:ue,onCancel:he,children:(0,V.jsxs)("div",{className:A,children:[(0,V.jsx)("div",{className:E,children:"选择的实训将会发送到指定课堂"}),(0,V.jsx)("div",{className:"mb10",children:(0,V.jsx)(F,{placeholder:"输入课堂名称的关键字进行搜索",value:Z,onChange:function(e){return N(e.target.value)},onSearch:function(e){N(e);var n=T()(T()({},te),{page:1,limit:10,search:encodeURI(e)});ie(n),ae(n)}})}),(0,V.jsx)("div",{className:O,children:(0,V.jsx)(j.ZP.Group,{value:I,onChange:function(e){P(e.target.value),Q(!1)},children:b.map((function(e,n){return(0,V.jsx)(j.ZP,{className:B,value:e.course_id,children:(0,V.jsx)("span",{title:e.name,children:e.name})},n)}))})}),H&&(0,V.jsx)("div",{className:z,children:"请选择你要发送的课堂"}),m>10&&(0,V.jsx)("div",{className:L,children:(0,V.jsx)(D.Z,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:null==te?void 0:te.page,pageSize:10,total:m,onChange:function(e){var n=T()(T()({},te),{page:e,limit:10,search:encodeURI(Z)});ie(n),ae(n)}})})]})}),(0,V.jsx)(R.Z,{visible:re,inPaper:!1,onOk:pe,onCancel:function(){he(),oe()},renderData:ce,modalType:"single",type:"shixun"})]})})),U="wrap___M6YVE",M="text___wxM5Y",J="color848282___PNF2A",q=["shixunsDetail","globalSetting","loading","dispatch"],H=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch),i=(h()(e,q),(0,s.useState)(!1)),l=a()(i,2),r=l[0],o=l[1],d=function(){var e=u()(c()().mark((function e(){var i,a,s,l;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),e.next=3,t({type:"shixunsDetail/cancelRelease",payload:{id:null===(i=n.actionTabs.params)||void 0===i?void 0:i.id}});case 3:a=e.sent,t({type:"shixunsDetail/setActionTabs",payload:{}}),o(!1),401!==a.status&&(x.ZP.success(a.message),t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(s=n.actionTabs.params)||void 0===s?void 0:s.id}}),t({type:"shixunsDetail/getRightData",payload:{id:null===(l=n.actionTabs.params)||void 0===l?void 0:l.id}}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-CancelRelease"===n.actionTabs.key,okText:"确定",cancelText:"取消",confirmLoading:r,onOk:d,okButtonProps:{loading:r},onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,V.jsxs)("div",{className:U,children:[(0,V.jsx)("p",{className:M,children:"是否确认撤销发布?"}),(0,V.jsx)("p",{className:"".concat(M," ").concat(J),children:"撤销发布后,学员将无法进行练习,若您新增关"}),(0,V.jsx)("p",{className:"".concat(M," ").concat(J),children:"卡,学员需要重新体验实训"})]})})})),Q=["shixunsDetail","globalSetting","loading","dispatch"],G=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t=e.shixunsDetail,i=(e.globalSetting,e.loading,e.dispatch),l=(h()(e,Q),(0,s.useState)(!1)),r=a()(l,2),o=r[0],d=r[1],p=function(){var e=u()(c()().mark((function e(){var n,a,s,l,r;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,i({type:"shixunsDetail/cancelPublic",payload:{id:null===(n=t.actionTabs.params)||void 0===n?void 0:n.id}});case 3:a=e.sent,i({type:"shixunsDetail/setActionTabs",payload:{}}),d(!1),0===a.status&&(i({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(s=t.actionTabs.params)||void 0===s?void 0:s.id}}),i({type:"shixunsDetail/getRightData",payload:{id:null===(l=t.actionTabs.params)||void 0===l?void 0:l.id}}),x.ZP.success(null!==(r=t.actionTabs)&&void 0!==r&&null!==(r=r.params)&&void 0!==r&&r.isCancelPublic?"撤销公开成功!":"撤销申请公开成功!"));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-CancelPublic"===t.actionTabs.key,okText:"确定",cancelText:"取消",confirmLoading:o,onOk:p,onCancel:function(){i({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,V.jsx)("div",{className:U,children:(0,V.jsxs)("p",{className:M,children:["是否确认撤销",null!==(n=t.actionTabs)&&void 0!==n&&null!==(n=n.params)&&void 0!==n&&n.isCancelPublic?"":"申请","公开?"]})})})})),X=["shixunsDetail","globalSetting","loading","dispatch"],Y=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch),i=(h()(e,X),(0,s.useState)(!1)),r=a()(i,2),o=r[0],d=r[1],p=(0,l.useParams)(),m=function(){var e=u()(c()().mark((function e(){var i,a,s,l,r,o,u,p,h,v,m,f,g,y,j;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d(!0),null!==(i=n.actionTabs.params)&&void 0!==i&&i.type){e.next=16;break}if(!(null!==(s=n.actionTabs.params)&&void 0!==s&&s.discipline_name||null!==(l=n.actionTabs.params)&&void 0!==l&&l.sub_discipline_name)){e.next=8;break}if(null!==(v=n.actionTabs.params)&&void 0!==v&&v.discipline_name&&null!==(m=n.actionTabs.params)&&void 0!==m&&m.sub_discipline_name){e.next=6;break}return x.ZP.info("请填写方向或课程"),e.abrupt("return");case 6:e.next=11;break;case 8:if(null!==(f=n.actionTabs.params)&&void 0!==f&&f.sub_discipline_id){e.next=11;break}return x.ZP.info("请选择方向或课程"),e.abrupt("return");case 11:return e.next=13,t({type:"shixunsDetail/applyPublic",payload:{id:null===(r=n.actionTabs.params)||void 0===r?void 0:r.id,user_customize:null===(o=n.actionTabs.params)||void 0===o||!o.sub_discipline_id,discipline_name:null===(u=n.actionTabs.params)||void 0===u?void 0:u.discipline_name,sub_discipline_name:null===(p=n.actionTabs.params)||void 0===p?void 0:p.sub_discipline_name,sub_discipline_id:null===(h=n.actionTabs.params)||void 0===h?void 0:h.sub_discipline_id}});case 13:a=e.sent,e.next=19;break;case 16:return e.next=18,t({type:"shixunsDetail/applyPublic",payload:{id:null===(g=n.actionTabs.params)||void 0===g?void 0:g.id,user_customize:!1,sub_discipline_id:""}});case 18:a=e.sent;case 19:t({type:"shixunsDetail/setActionTabs",payload:{}}),d(!1),1!==a.status&&0!==a.status||(t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(y=n.actionTabs.params)||void 0===y?void 0:y.id}}),t({type:"shixunsDetail/getRightData",payload:{id:null===(j=n.actionTabs.params)||void 0===j?void 0:j.id}}));case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-ApplyPublic"===n.actionTabs.key,okText:"确定申请",cancelText:"取消申请",confirmLoading:o,onOk:m,onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,V.jsxs)("div",{className:U,children:[(0,V.jsx)("p",{className:M,style:{textAlign:"left",fontSize:"14px"},children:"申请说明:公开实训需经过平台标准化审核,预计审核时间为1至2个工作日;若仅本人教学使用则无需申请公开,直接发送至课堂即可。"}),(0,V.jsxs)("p",{className:"".concat(M," mt5"),style:{color:"#f5a44a",textAlign:"left",fontSize:"14px"},children:["注意:审核通过后,实训将对平台所有人可见,并且实训将默认向平台已职业认证的教师公开关卡的参考答案和测试集,如需修改请在通过审核后前往",(0,V.jsx)("span",{style:{color:"#4169d0",cursor:"pointer"},onClick:function(){window.open("/shixuns/".concat(null==p?void 0:p.id,"/edit?tabId=setting"))},children:"设置页面"}),"调整。"]})]})})})),$=t(90613),ee=["shixunsDetail","globalSetting","loading","dispatch"],ne=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t,i=e.shixunsDetail,a=(e.globalSetting,e.loading,e.dispatch),s=(h()(e,ee),(null===(n=i.actionTabs)||void 0===n?void 0:n.params)||{}),l=s.tagPosition,r=void 0===l?[]:l,o=s.evaluationSetPosition,c=void 0===o?[]:o,d=s.publishBoxStatus,u=function(){return(0,V.jsx)("div",{className:U,children:(0,V.jsx)("p",{className:M,children:"发布申请已提交,请等待管理员的审核"})})},p=function(){return(0,V.jsxs)("div",{className:U,children:[(0,V.jsx)("p",{className:M,children:"发布申请已提交,请等待管理员的审核"}),(0,V.jsx)("p",{className:"".concat(M," font12"),children:"• 我们将在1-2个工作日内完成审核"})]})},x=function(){return(0,V.jsx)("div",{className:U,children:(0,V.jsxs)("p",{className:M,children:["第",c.join(","),"关尚未完成,无法申请发布"]})})},m=function(){return(0,V.jsx)("div",{className:U,children:(0,V.jsxs)("p",{className:M,children:["每一个关卡至少需要一个技能标签",(0,V.jsx)("br",{}),"第",r.join(","),"关尚未设置技能标签,请补充"]})})};return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-ApplyRelease"===i.actionTabs.key,okText:"知道啦",onOk:function(){var e,n;0!==d&&1!==d||(a({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(e=i.actionTabs.params)||void 0===e?void 0:e.id}}),a({type:"shixunsDetail/getRightData",payload:{id:null===(n=i.actionTabs.params)||void 0===n?void 0:n.id}}));a({type:"shixunsDetail/setActionTabs",payload:{}})},onCancel:function(){a({type:"shixunsDetail/setActionTabs",payload:{}})},children:(t={0:u,1:p,2:x,3:m},t[d]?t[d]():(0,V.jsx)("div",{className:U,children:(0,V.jsx)("p",{className:M,children:"尚未创建任务的实训,不能申请发布"})}))})})),te=t(30437),ie=t(19471),ae=t(3148),se=t(46952),le=t(80836),re=t(92890),oe=t(23691),ce=t(89330),de=t(37704),ue=t(93626),pe=t(32096),he=["shixunsDetail","user","globalSetting","loading","dispatch","problemset"],xe=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.user,i=e.loading,a=e.globalSetting,s=e.problemset;return{shixunsDetail:n,user:t,globalSetting:a,loading:i.models.index,problemset:s}}))((function(e){var n,t,i,r,o,d,p,P,T,D,A,E,O,B,z,L,R,W,F,U,M,J,q,Q,X,ee,xe,ve,me,fe,ge,ye,je,be,_e,ke,we,Ze,Ne,Ce,Se,Ie,Pe,Te,De,Ae,Ee,Oe,Be,ze,Le,Re,Ve,We,Fe,Ke,Ue,Me,Je,qe,He,Qe,Ge,Xe,Ye,$e,en,nn,tn,an,sn,ln,rn,on,cn,dn,un,pn,hn,xn,vn,mn=e.shixunsDetail,fn=e.user,gn=(e.globalSetting,e.loading,e.dispatch),yn=e.problemset,jn=(h()(e,he),(0,l.useLocation)()),bn=(0,s.useRef)(""),_n=(0,s.useState)(!1),kn=a()(_n,2),wn=kn[0],Zn=kn[1],Nn=((0,s.useRef)(null),(0,s.useState)(!0)),Cn=a()(Nn,2),Sn=Cn[0],In=Cn[1],Pn=(0,s.useState)(2),Tn=a()(Pn,2),Dn=Tn[0],An=Tn[1],En=(0,s.useState)(!1),On=a()(En,2),Bn=On[0],zn=On[1],Ln=(0,s.useState)(!1),Rn=a()(Ln,2),Vn=Rn[0],Wn=Rn[1],Fn=(0,s.useState)(),Kn=a()(Fn,2),Un=Kn[0],Mn=Kn[1],Jn=(0,s.useState)(),qn=a()(Jn,2),Hn=qn[0],Qn=qn[1],Gn=(0,s.useState)(),Xn=a()(Gn,2),Yn=Xn[0],$n=Xn[1],et=(0,s.useState)(!1),nt=a()(et,2),tt=nt[0],it=nt[1],at=(0,s.useState)(!1),st=a()(at,2),lt=(st[0],st[1]),rt=(0,s.useState)(2),ot=a()(rt,2),ct=ot[0],dt=ot[1],ut=[{level:"初级",color:"#44D7B6"},{level:"中级",color:"#F7B500"},{level:"中高级",color:"#FF8C29"},{level:"高级",color:"#E53333"}],pt=[{name:"未发布",connect:"当前课程正在开发中,不可被他人使用",bkcolor:"#D8D8D8",txcolor:"#FFFFFF"},{name:"静默发布",connect:"当前课程已发布,可以通过分享链接使用,但不能被开放检索",bkcolor:"#7B92C7",txcolor:"#FFFFFF"},{name:"公开审核",connect:"当前课程已发布,申请纳入开放检索,目前平台正在审核中",bkcolor:"#F9AF7E",txcolor:"#A44C11"},{name:"公开发布",connect:"当前课程已发布,且可被开放检索",bkcolor:"#FFE9C1",txcolor:"#A45204"}];(0,s.useEffect)((function(){var e;bn.current=null===(e=jn.pathname.split("/"))||void 0===e?void 0:e[2]}),[jn.pathname]),(0,s.useEffect)((function(){gn({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),setTimeout((function(){In(!1)}),5e3)}),[]);var ht=null===(n=fn.userInfo)||void 0===n||null===(n=n.shixun)||void 0===n?void 0:n.own,xt=null===(t=fn.userInfo)||void 0===t||null===(t=t.shixun)||void 0===t?void 0:t.editable,vt=null==mn||null===(i=mn.challenges)||void 0===i||null===(i=i.challenge_list)||void 0===i?void 0:i.length,mt=!(null!==(r=fn.userInfo)&&void 0!==r&&null!==(r=r.shixun)&&void 0!==r&&r.can_managed),ft=function(){var e=u()(c()().mark((function e(){var n,t,i,a;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(lt(!0),null===(n=mn.detail)||void 0===n||!n.windows_vnc||(0,ce.ag)()){e.next=3;break}return e.abrupt("return",!1);case 3:if(null===(t=mn.detail)||void 0===t||!t.can_fork){e.next=6;break}return gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 6:return e.next=8,(0,oe.ZP)("/api/shixuns/".concat(null==bn?void 0:bn.current,"/copy.json"),{method:"post",body:{}});case 8:0===(i=e.sent).status?(lt(!1),window.location.href="/shixuns/".concat(null===(a=i.data)||void 0===a?void 0:a.shixun,"/challenges"),x.ZP.success("复制成功"),zn(!1)):lt(!1),-3===i.status&&(lt(!1),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Per",params:{message:i.message}}}));case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,de.L9)(["实践项目","详情页","取消收藏"]),e.next=3,gn({type:"shixunsDetail/cancelCollect",payload:{container_id:null===(n=mn.detail)||void 0===n?void 0:n.id,container_type:"Shixun"}});case 3:0===(t=e.sent).status&&(gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}}),gn({type:"shixunsDetail/getRightData",payload:{id:bn.current}}),x.ZP.success(t.message));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),yt=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,de.L9)(["实践项目","详情页","收藏"]),e.next=3,gn({type:"shixunsDetail/collect",payload:{container_id:null===(n=mn.detail)||void 0===n?void 0:n.id,container_type:"Shixun"}});case 3:0===(t=e.sent).status&&(gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}}),gn({type:"shixunsDetail/getRightData",payload:{id:bn.current}}),x.ZP.success(t.message));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),jt=function(e){mt?x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"):((0,de.L9)(["实践项目","详情页","撤销公开"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-CancelPublic",params:{id:bn.current,isCancelPublic:e}}}))},bt=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!mt){e.next=3;break}return x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"),e.abrupt("return");case 3:return(0,de.L9)(["实践项目","详情页","申请发布"]),e.next=6,gn({type:"shixunsDetail/release",payload:{id:bn.current}});case 6:if(n=e.sent,gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}}),gn({type:"shixunsDetail/getRightData",payload:{id:bn.current}}),t=(null==n?void 0:n.evaluation_set_position)||[],0!==n.status){e.next=13;break}return v.Z.info({width:530,title:"提示",centered:!0,content:(0,V.jsx)("div",{className:"tc font16",children:"实训发布后即可发送课堂使用"}),okText:"知道啦"}),e.abrupt("return");case 13:gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-ApplyRelease",params:{tagPosition:null==n?void 0:n.tag_position,evaluationSetPosition:t,publishBoxStatus:n.status}}});case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_t=function e(n){var t,i;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),v.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,V.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=u()(c()().mark((function t(){var i,a;return c()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ie.$Q)({url:n});case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:return x.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,ie.Ir)({id:i.shixun_identifier});case 8:if(null==(a=t.sent)||!a.game_identifier){t.next=12;break}return null===l.history||void 0===l.history||l.history.push("/tasks/".concat(a.game_identifier)),t.abrupt("return");case 12:2===(null==a?void 0:a.status)?e(null==a?void 0:a.message):3===(null==a?void 0:a.status)&&kt(null==a?void 0:a.message);case 13:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},kt=function(e){v.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,V.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},wt=function(e){return e?e>=1e3?e=e/1e3+"K":e:0};(0,s.useEffect)((function(){var e;At(null===(e=mn.detail)||void 0===e?void 0:e.mark_content)}),[null===(o=mn.detail)||void 0===o?void 0:o.mark_content]);var Zt,Nt,Ct,St,It,Pt=(0,s.useState)(""),Tt=a()(Pt,2),Dt=Tt[0],At=Tt[1],Et=function(){var e=u()(c()().mark((function e(n){var t,i,a;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.ZP)("/api/shixuns/".concat(null==bn?void 0:bn.current,"/mark.json"),{method:"post",body:{mark_status:4===n?null===(t=mn.detail)||void 0===t?void 0:t.mark_status:(null===(i=mn.detail)||void 0===i?void 0:i.mark_status)===n?0:n,mark_content:Dt}});case 2:0===(null==(a=e.sent)?void 0:a.status)&&gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}});case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,V.jsxs)("section",{children:[(0,V.jsx)("aside",{className:S.banner,style:null!==(d=mn.detail)&&void 0!==d&&d.banner_image?{backgroundImage:"url(".concat(null===(p=mn.detail)||void 0===p?void 0:p.banner_image,")"),paddingTop:null!==(P=mn.detail)&&void 0!==P&&P.banner_image_b?0:50}:{},children:(0,V.jsxs)("aside",{className:S.wrp,style:null!==(T=mn.detail)&&void 0!==T&&T.banner_image_b?{backgroundImage:"url(".concat(null===(D=mn.detail)||void 0===D?void 0:D.banner_image_b,")")}:{},children:[(0,V.jsxs)("div",{className:S.action,children:[(0,V.jsxs)("div",{className:S.titleWrap,children:[3===(null===(A=mn.detail)||void 0===A?void 0:A.shixun_status)&&(0,V.jsx)(f.Z,{title:"已关闭",children:(0,V.jsx)("i",{className:"iconfont icon-yiguanbi3 mr10",style:{color:"#f7b500"}})}),-1===(null===(E=mn.detail)||void 0===E?void 0:E.shixun_status)&&(0,V.jsx)("span",{className:S.deleteBtnStatus,children:"已删除"}),(0,V.jsx)(f.Z,{title:(null===(O=mn.detail)||void 0===O?void 0:O.name)||"实践项目名称-未填写",children:(0,V.jsx)("span",{className:S.title,children:(null===(B=mn.detail)||void 0===B?void 0:B.name)||"实践项目名称-未填写"})}),(0,V.jsx)("div",{className:S.btn,style:{backgroundColor:(It=null===(St=mn.detail)||void 0===St?void 0:St.diffcult,It?ut.find((function(e){return e.level===It})).color:"--")},children:null===(z=mn.detail)||void 0===z?void 0:z.diffcult}),(null==mn||null===(L=mn.detail)||void 0===L||null===(L=L.shixun_marks)||void 0===L?void 0:L.length)>0&&(1==(null==fn||null===(R=fn.userInfo)||void 0===R?void 0:R.role)||2==(null==fn||null===(W=fn.userInfo)||void 0===W?void 0:W.role))&&(null==mn||null===(F=mn.detail)||void 0===F?void 0:F.shixun_marks.map((function(e,n){return(0,V.jsx)(f.Z,{title:"".concat(e),children:(0,V.jsx)("div",{className:S.btn_type,style:{backgroundColor:"#43a2ff"},children:e})},n)}))),(null===(U=mn.detail)||void 0===U?void 0:U.identity)<5&&(0,V.jsx)(f.Z,{title:null===(M=pt[(null===(J=mn.detail)||void 0===J?void 0:J.shixun_tag_num)-1])||void 0===M?void 0:M.connect,children:(0,V.jsx)("div",{className:S.btn,style:{backgroundColor:null===(q=pt[(null===(Q=mn.detail)||void 0===Q?void 0:Q.shixun_tag_num)-1])||void 0===q?void 0:q.bkcolor,color:null===(X=pt[(null===(ee=mn.detail)||void 0===ee?void 0:ee.shixun_tag_num)-1])||void 0===X?void 0:X.txcolor},children:null===(xe=pt[(null===(ve=mn.detail)||void 0===ve?void 0:ve.shixun_tag_num)-1])||void 0===xe?void 0:xe.name})}),(null===(me=mn.detail)||void 0===me?void 0:me.fork_from)&&(0,V.jsx)(f.Z,{title:"当前为复制实训,点击标识可跳转至原实训",children:(0,V.jsx)("a",{href:"/shixuns/".concat(null===(fe=mn.detail)||void 0===fe||null===(fe=fe.fork_from)||void 0===fe?void 0:fe.fork_identifier,"/challenges"),target:"_blank",className:"iconfont icon-fork",style:{fontSize:21}})}),(0,ce.Ny)()&&(0,V.jsx)(g.Z,{trigger:"click",content:(0,V.jsxs)("div",{className:S.customPopover,children:[(0,V.jsxs)("p",{children:[(0,V.jsx)("b",{children:"标签"}),(0,V.jsx)("span",{children:"标签用于管理,仅管理员/运营人员可见"})]}),(0,V.jsxs)("ul",{children:[(0,V.jsxs)("li",{onClick:function(){return Et(1)},className:1===(null===(Zt=mn.detail)||void 0===Zt?void 0:Zt.mark_status)?S.active:"",children:["正常 ",(0,V.jsx)("i",{className:"iconfont icon-duigou1"})]}),(0,V.jsxs)("li",{onClick:function(){return Et(2)},className:2===(null===(Nt=mn.detail)||void 0===Nt?void 0:Nt.mark_status)?S.active:"",children:["需完善 ",(0,V.jsx)("i",{className:"iconfont icon-duigou1"})]}),(0,V.jsxs)("li",{onClick:function(){return Et(3)},className:3===(null===(Ct=mn.detail)||void 0===Ct?void 0:Ct.mark_status)?S.active:"",children:["无法使用 ",(0,V.jsx)("i",{className:"iconfont icon-duigou1"})]})]}),(0,V.jsxs)("p",{style:{margin:"16px 0"},children:[(0,V.jsx)("b",{children:"备注"}),(0,V.jsx)("span",{children:"字数限制在140字以内"})]}),(0,V.jsx)(m.Z.TextArea,{value:Dt,onChange:function(e){return At(e.target.value)},onBlur:function(e){return Et(4)},rows:4,maxLength:140})]}),children:(0,V.jsx)(ae.Z,{style:{color:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n="#0152d9";return 1===e&&(n="#2FA34F"),2===e&&(n="#FF8C29"),3===e&&(n="#E53333"),n}(null===(ge=mn.detail)||void 0===ge?void 0:ge.mark_status)},className:"current font18 ml5 c-light-primary",rotate:180})})]}),(0,V.jsxs)("div",{className:S.actionBtns,children:[(0,V.jsxs)("div",{className:S.gold,children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("i",{className:"iconfont icon-jinbi1 font16"}),(0,V.jsx)("span",{children:"金币"})]}),(0,V.jsx)("div",{className:S.handleOverflow,children:null==mn||null===(ye=mn.detail)||void 0===ye?void 0:ye.gold})]}),!(null!==(je=mn.detail)&&void 0!==je&&je.is_jupyter)&&(0,V.jsxs)("div",{className:S.gold,children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("i",{className:"iconfont icon-pingfen2 font15"}),(0,V.jsx)("span",{children:"评分"})]}),(0,V.jsx)("div",{className:S.handleOverflow,children:null===(be=mn.detail)||void 0===be?void 0:be.score_info})]}),((null===(_e=mn.detail)||void 0===_e?void 0:_e.identity)<8||(null===(ke=fn.userInfo)||void 0===ke?void 0:ke.is_shixun_marker))&&-1!==(null===(we=mn.detail)||void 0===we?void 0:we.shixun_status)&&0!==(null===(Ze=mn.detail)||void 0===Ze?void 0:Ze.shixun_status)&&(null===(Ne=mn.detail)||void 0===Ne?void 0:Ne.can_copy)&&(0,V.jsxs)("div",{className:S.fork,children:[(0,V.jsx)(f.Z,{open:(null===(Ce=mn.detail)||void 0===Ce||!Ce.is_jupyter)&&Sn,title:(0,V.jsxs)("span",{style:{color:"#000"},children:["新增关卡合并",vt>1&&"/拆分","功能"]}),color:"#fff",children:(0,V.jsx)(f.Z,{title:!(0,ce.ag)()&&(null===(Se=mn.detail)||void 0===Se?void 0:Se.windows_vnc)&&"Windows镜像不支持复制",children:(0,V.jsxs)("div",{onClick:function(){},children:[(0,V.jsx)("i",{className:"iconfont icon-Fock font13"}),(0,V.jsxs)("span",{children:[(0,V.jsx)("span",{onClick:function(){var e,n;if(null!==(e=mn.detail)&&void 0!==e&&e.is_jupyter){var t;if(null!==(t=mn.detail)&&void 0!==t&&t.need_authorize)return void(0,te.rX)(!1);(0,de.L9)(["实践项目","详情页","复制实训"]),ft()}else{var i;null!=fn&&null!==(i=fn.userInfo)&&void 0!==i&&i.professional_certification?(zn(!0),An(1)):v.Z.confirm({centered:!0,title:"提示",icon:null,content:"为了进行复制/合并/拆分实践项目,您必须先完成职业认证。请问是否前往职业认证?",okText:"确认",cancelText:"取消",onOk:(n=u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.history.push("/account/certification");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})}},children:"复制"}),!(null!==(Ie=mn.detail)&&void 0!==Ie&&Ie.is_jupyter)&&!(null!==(Pe=mn.detail)&&void 0!==Pe&&Pe.is_jupyter_lab)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"ml5 mr5",children:"/"}),(0,V.jsx)("span",{onClick:function(){var e,n;null!=fn&&null!==(e=fn.userInfo)&&void 0!==e&&e.professional_certification?(zn(!0),An(2)):v.Z.confirm({centered:!0,title:"提示",icon:null,content:"为了进行复制/合并/拆分实践项目,您必须先完成职业认证。请问是否前往职业认证?",okText:"确认",cancelText:"取消",onOk:(n=u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.history.push("/account/certification");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"合并"})]}),!(null!==(Te=mn.detail)&&void 0!==Te&&Te.is_jupyter)&&!(null!==(De=mn.detail)&&void 0!==De&&De.is_jupyter_lab)&&vt>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"ml5 mr5",children:"/"}),(0,V.jsx)("span",{onClick:function(){var e,n;null!=fn&&null!==(e=fn.userInfo)&&void 0!==e&&e.professional_certification?(zn(!0),An(3),dt(2)):v.Z.confirm({centered:!0,title:"提示",icon:null,content:"为了进行复制/合并/拆分实践项目,您必须先完成职业认证。请问是否前往职业认证?",okText:"确认",cancelText:"取消",onOk:(n=u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.history.push("/account/certification");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"拆分"})]})]})]})})}),ht&&(0,ce.JL)()&&!(null===(Ae=mn.detail)||void 0===Ae||!Ae.fork_num)&&(0,V.jsx)("div",{className:S.handleOverflow,onClick:function(){return l.history.push("/shixuns/".concat(bn.current,"/fork_list"))},children:wt(null===(Ee=mn.detail)||void 0===Ee?void 0:Ee.fork_num)})]}),(0,V.jsxs)("div",{className:S.collect,children:[(0,V.jsx)("div",{children:null!==(Oe=mn.detail)&&void 0!==Oe&&Oe.is_collect?(0,V.jsxs)("span",{onClick:gt,children:[(0,V.jsx)("i",{className:"iconfont icon-shoucangerji font13"}),(0,V.jsx)("span",{children:"取消收藏"})]}):(0,V.jsxs)("span",{onClick:yt,children:[(0,V.jsx)("i",{className:"iconfont icon-shoucangyiji font14"}),(0,V.jsx)("span",{children:"收藏"})]})}),(0,V.jsx)("div",{className:S.handleOverflow,children:wt(null===(Be=mn.detail)||void 0===Be?void 0:Be.collection_count)})]})]})]}),(null===(ze=mn.detail)||void 0===ze?void 0:ze.laboratory_name)&&(0,ce.Ny)()&&(0,V.jsxs)("div",{className:S.laboratory,children:[(0,V.jsx)("span",{children:"云上实验室:"}),(0,V.jsx)(f.Z,{title:null===(Le=mn.detail)||void 0===Le?void 0:Le.laboratory_name,children:(0,V.jsx)("a",{href:"https://".concat(null===(Re=mn.detail)||void 0===Re?void 0:Re.laboratory_url),target:"_blank",className:S.name,children:null===(Ve=mn.detail)||void 0===Ve?void 0:Ve.laboratory_name})})]}),(0,V.jsxs)("div",{className:S.contentWrap,children:[(0,V.jsxs)("div",{className:S.contentLeftWrap,children:[(0,V.jsxs)("div",{className:S.user,children:[(0,V.jsx)("a",{href:null===(We=mn.rightData)||void 0===We||null===(We=We.creator)||void 0===We?void 0:We.user_url,target:"_blank",className:S.img,children:(0,V.jsx)("img",{src:"".concat(re.Z.IMG_SERVER,"/").concat((null===(Fe=mn.rightData)||void 0===Fe?void 0:Fe.creator)&&"images/".concat(null===(Ke=mn.rightData)||void 0===Ke?void 0:Ke.creator.image_url,"?1532489442")),alt:"头像"})}),(0,V.jsxs)("div",{className:S.text,children:[(0,V.jsx)(f.Z,{title:null===(Ue=mn.rightData)||void 0===Ue||null===(Ue=Ue.creator)||void 0===Ue?void 0:Ue.name,children:(0,V.jsx)("a",{href:null===(Me=mn.rightData)||void 0===Me||null===(Me=Me.creator)||void 0===Me?void 0:Me.user_url,target:"_blank",className:S.d1,children:null===(Je=mn.rightData)||void 0===Je||null===(Je=Je.creator)||void 0===Je?void 0:Je.name})}),(0,V.jsx)(f.Z,{title:"***"===(null===(qe=mn.rightData)||void 0===qe||null===(qe=qe.creator)||void 0===qe?void 0:qe.school)?"本单位不对外公开":null===(He=mn.rightData)||void 0===He||null===(He=He.creator)||void 0===He?void 0:He.school,children:(0,V.jsx)("div",{className:S.d2,children:null===(Qe=mn.rightData)||void 0===Qe||null===(Qe=Qe.creator)||void 0===Qe?void 0:Qe.school})})]})]}),(0,V.jsx)("div",{children:!(null===(Ge=mn.detail)||void 0===Ge||!Ge.total_stu_num)&&(0,V.jsxs)("div",{className:S.ratingTitle,children:[(0,V.jsx)("span",{children:"学习人次 "}),(0,V.jsx)("span",{children:null===(Xe=mn.detail)||void 0===Xe?void 0:Xe.total_stu_num})]})})]}),(0,V.jsxs)("div",{className:S.operationWrap,children:[C(null===(Ye=mn.detail)||void 0===Ye?void 0:Ye.shixun_status)&&"学生"!==(null===($e=fn.userInfo)||void 0===$e?void 0:$e.user_identity)&&(0,V.jsx)(f.Z,{placement:"bottom",title:"以课堂实验的形式发送到我的课堂",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){var e;(0,de.L9)(["实践项目","详情页","发送至课堂"]),null!==(e=mn.detail)&&void 0!==e&&e.need_authorize?(0,te.rX)(!1):(0,te.tJ)(gn)&&gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-SendShixuns",params:{id:bn.current}}})},children:[(0,V.jsx)("i",{className:"iconfont icon-fasongzhi1 font20"}),(0,V.jsx)("span",{children:"发送至"})]})}),2===(null===(en=mn.detail)||void 0===en?void 0:en.shixun_status)&&0===(null===(nn=mn.detail)||void 0===nn?void 0:nn.public)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"撤销发布后,学员将无法进行练习",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){mt?x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"):((0,de.L9)(["实践项目","详情页","撤销发布"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-CancelRelease",params:{id:bn.current}}}))},children:[(0,V.jsx)("i",{className:"iconfont icon-chexiaofabu2"}),(0,V.jsx)("span",{children:"撤销发布"})]})}),0===(null===(tn=mn.detail)||void 0===tn?void 0:tn.shixun_status)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"发布后,可以使用到自己的课堂和课程",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:bt,children:[(0,V.jsx)("i",{className:"iconfont icon-fabu3"}),(0,V.jsx)("span",{children:"发布"})]})}),2===(null===(an=mn.detail)||void 0===an?void 0:an.shixun_status)&&1===(null===(sn=mn.detail)||void 0===sn?void 0:sn.public)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"撤销后,仅可以使用到自己的课堂和课程",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){return jt(!1)},children:[(0,V.jsx)("i",{className:"iconfont icon-chexiaoshenqinggongkai font18"}),(0,V.jsx)("span",{children:"撤销申请公开"})]})}),(null===(ln=fn.userInfo)||void 0===ln?void 0:ln.admin)&&2===(null===(rn=mn.detail)||void 0===rn?void 0:rn.public)&&(0,V.jsx)(f.Z,{placement:"bottom",title:"撤销后,仅可以使用到自己的课堂和课程",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){return jt(!0)},children:[(0,V.jsx)("i",{className:"iconfont icon-chexiaoshenqinggongkai font18"}),(0,V.jsx)("span",{children:"撤销公开"})]})}),2===(null===(on=mn.detail)||void 0===on?void 0:on.shixun_status)&&0===(null===(cn=mn.detail)||void 0===cn?void 0:cn.public)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"审核通过后,平台用户可以查看实训",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){var e,n;mt?x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"):null!==(e=mn.detail)&&void 0!==e&&e.has_sub_discipline?((0,de.L9)(["实践项目","详情页","申请公开"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-ApplyPublic",params:{id:bn.current,type:null===(n=mn.detail)||void 0===n?void 0:n.has_sub_discipline}}})):Wn(!0)},children:[(0,V.jsx)("i",{className:"iconfont icon-shenqinggongkai1 font18"}),(0,V.jsx)("span",{children:"申请公开"})]})}),-1!==(null===(dn=mn.detail)||void 0===dn?void 0:dn.shixun_status)&&(0,V.jsx)(f.Z,{placement:"bottom",title:null!==(un=mn.detail)&&void 0!==un&&un.need_authorize?"需授权":N(null===(pn=mn.detail)||void 0===pn||null===(pn=pn.task_operation)||void 0===pn?void 0:pn[0]),children:(0,V.jsxs)(pe.Z,{onClick:u()(c()().mark((function e(){var n,t,i,a;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=mn.detail)||void 0===n||!n.need_authorize){e.next=4;break}return(0,te.rX)(!1),(0,de.L9)(["实践项目","详情页","需授权"]),e.abrupt("return");case 4:return(0,de.L9)(["实践项目","详情页","开启挑战"]),e.next=7,(0,ue._)("".concat(null===(t=mn.detail)||void 0===t?void 0:t.id),{is_jupyter:null===(i=mn.detail)||void 0===i?void 0:i.is_jupyter,is_jupyter_lab:null===(a=mn.detail)||void 0===a?void 0:a.is_jupyter_lab});case 7:e.sent||(s=void 0,l=void 0,r=void 0,(0,te.tJ)(gn,!0)&&((null===(s=mn.detail)||void 0===s?void 0:s.shixun_status)>1&&Zn(!0),null!==(l=mn.detail)&&void 0!==l&&l.is_jupyter||null!==(r=mn.detail)&&void 0!==r&&r.is_jupyter_lab?gn({type:"shixunsDetail/execJupyter",payload:{id:bn.current}}).then((function(e){Zn(!1),null!=e&&e.identifier&&(window.location.href="/tasks/".concat(e.identifier,"/jupyter"))})):gn({type:"shixunsDetail/execShixun",payload:{id:bn.current}}).then(function(){var e=u()(c()().mark((function e(n){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Zn(!1),null==n||!n.game_identifier){e.next=4;break}return window.location.href="/tasks/".concat(n.game_identifier),e.abrupt("return");case 4:2===(null==n?void 0:n.status)?_t(null==n?void 0:n.message):3===(null==n?void 0:n.status)&&kt(null==n?void 0:n.message);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())));case 9:case"end":return e.stop()}var s,l,r}),e)}))),className:S.testBtn,type:"primary",children:[(0,V.jsx)("i",{className:"iconfont icon-jixutiaozhan mr10 font14"}),null!==(hn=mn.detail)&&void 0!==hn&&hn.need_authorize?"需授权":(null===(xn=mn.detail)||void 0===xn?void 0:xn.shixun_status)>1?null===(vn=mn.detail)||void 0===vn||null===(vn=vn.task_operation)||void 0===vn?void 0:vn[0]:"模拟实战"]})})]})]})]})}),wn&&(0,V.jsx)("div",{className:S.fullScreenLoading,children:(0,V.jsx)(y.Z,{size:"middle"})}),(0,V.jsx)(I.Z,{}),(0,V.jsx)(K,{}),(0,V.jsx)(H,{}),(0,V.jsx)(G,{}),(0,V.jsx)($.Z,{}),(0,V.jsx)(Y,{}),(0,V.jsx)(ne,{}),(0,V.jsx)(v.Z,{title:"选择复制/合并".concat(vt>1?"/拆分":"","方式"),open:Bn,width:450,onCancel:function(){return zn(!1)},onOk:function(){if(1==Dn){var e;if(null!==(e=mn.detail)&&void 0!==e&&e.need_authorize)return void(0,te.rX)(!1);(0,de.L9)(["实践项目","详情页","复制实训"]),ft()}else if(2==Dn)window.location.href="/shixuns/".concat(bn.current,"/Merge");else if(3==Dn){if(ct<1)return void x.ZP.error("请输入拆分数量");window.location.href="/shixuns/".concat(bn.current,"/Split?splitCount=").concat(vt,"&newSplitCount=").concat(ct)}},style:{top:300},children:(0,V.jsxs)("div",{children:[(0,V.jsx)(j.ZP.Group,{defaultValue:Dn,value:Dn,onChange:function(e){3==e.target.value&&dt(2),An(e.target.value)},children:(0,V.jsxs)(b.Z,{direction:"vertical",children:[(0,V.jsxs)(j.ZP,{value:1,children:[(0,V.jsx)("span",{style:{color:"#000",marginRight:10},children:"复制"}),(0,V.jsx)("span",{style:{color:"#9096A3"},children:"将当前实践复制并生成全新项目"})]}),(0,V.jsxs)(j.ZP,{value:2,className:"mt10",children:[(0,V.jsx)("span",{style:{color:"#000",marginRight:10},children:"合并"}),(0,V.jsx)("span",{style:{color:"#9096A3"},children:"将当前关卡合并至目标实践项目"})]}),vt>1&&(0,V.jsxs)(j.ZP,{value:3,className:"mt10",children:[(0,V.jsx)("span",{style:{color:"000",marginRight:10},children:"拆分"}),(0,V.jsx)("span",{style:{color:"#9096A3"},children:"将当前实践项目复制后再拆分成指定数量的全新项目"})]})]})}),vt>1&&3==Dn&&(0,V.jsxs)("div",{className:S.splitInfo,children:[(0,V.jsxs)("div",{className:"mr40",children:[(0,V.jsx)("span",{className:S.splitInfo_t1,children:"关卡总数"}),vt]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("span",{className:S.splitInfo_t2,children:"拆分项目数量"}),(0,V.jsx)(_.Z,{style:{width:150},value:ct,min:1,max:vt,placeholder:"请输入整数",onChange:function(e){/^\d*$/.test(e)&&dt(e)}})]})]})]})}),(0,V.jsx)(v.Z,{title:"方向&课程",open:Vn,centered:!0,width:600,onCancel:function(){Wn(!1)},onOk:u()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,de.L9)(["实践项目","详情页","申请公开"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-ApplyPublic",params:{id:bn.current,discipline_name:Hn,sub_discipline_name:Un,sub_discipline_id:Yn,type:null===(n=mn.detail)||void 0===n?void 0:n.has_sub_discipline}}}),Wn(!1);case 3:case"end":return e.stop()}}),e)}))),children:(0,V.jsxs)("div",{style:{padding:"24px"},children:[(0,V.jsx)("p",{children:"需填写实践项目的方向&课程后,才能申请公开"}),(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,V.jsx)(k.Z,{style:{textAlign:"right",width:"82px"},children:(0,V.jsx)("label",{children:"方向&课程:"})}),(0,V.jsx)(k.Z,{span:12,children:(0,V.jsx)(w.Z,{placeholder:"请选择...",allowClear:!1,onChange:function(e,n){$n(e[1])},style:{width:"422px"},options:yn.courseOptions})})]}),(0,V.jsx)(Z.Z,{style:{display:"flex",marginTop:"5px"},children:(0,V.jsxs)(k.Z,{onClick:function(){it(!tt)},children:[(0,V.jsx)("a",{style:{marginLeft:"81px",marginRight:"271px"},children:"自定义方向&课程"}),(0,V.jsxs)("span",{style:{color:tt?"#999999":"#666666",display:"inline-flex",alignItems:"center"},onClick:function(){},children:[tt?"收起":"展开",tt?(0,V.jsx)(le.Z,{}):(0,V.jsx)(se.Z,{})]})]})}),tt&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("div",{style:{display:"flex",marginTop:"15px"},children:[(0,V.jsx)(k.Z,{style:{textAlign:"right",width:"82px"},children:(0,V.jsx)("label",{children:"方向:"})}),(0,V.jsx)(k.Z,{span:12,children:(0,V.jsx)(m.Z,{value:Hn,onChange:function(e){Qn(e.target.value)}})})]}),(0,V.jsxs)("div",{style:{display:"flex",marginTop:"15px"},children:[(0,V.jsx)(k.Z,{style:{textAlign:"right",width:"82px"},children:(0,V.jsx)("label",{children:"课程:"})}),(0,V.jsx)(k.Z,{span:12,children:(0,V.jsx)(m.Z,{value:Un,onChange:function(e){Mn(e.target.value)}})})]})]})]})})]})})),ve="firstEntryModal___KL7Hx",me="box___h_ENw",fe="tips___L_prp",ge=function(){var e=(0,s.useState)(0),n=a()(e,2),t=n[0],i=n[1],l=(0,s.useState)(0),r=a()(l,2),o=r[0],c=r[1],d=(0,s.useRef)();(0,s.useEffect)((function(){if(!localStorage.getItem("setPracticalFirstEntry")){document.body.setAttribute("style","height: 100vh; overflow: hidden");var e=document.getElementById("settingEntry");if(null!=e&&e.style){i(e.offsetLeft),c(e.offsetTop+18),d.current.style.display="block",e.style.opacity="0";var n=String((new Date).getTime());localStorage.setItem("setPracticalFirstEntry",n)}setTimeout((function(){u()}),3e3)}}),[]);var u=function(){d.current.style.display="none",document.body.removeAttribute("style");var e=document.getElementById("settingEntry");null!=e&&e.style&&(e.style.opacity="1")};return(0,V.jsx)("div",{className:ve,ref:d,onClick:function(){u()},children:(0,V.jsxs)("div",{className:me,style:{left:t,top:o},onClick:function(e){e.stopPropagation(),e.preventDefault()},children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("i",{className:"iconfont icon-shijianshezhi"})," ",(0,V.jsx)("span",{children:"设置"})]}),(0,V.jsxs)("div",{className:fe,children:["可编辑实践项目的基本信息、代码仓库、任务关卡、实验环境等。",(0,V.jsx)("i",{onClick:u,className:"iconfont icon-guanbi1"})]})]})})},ye="bg___UgpNC",je="tabs___BSqmb",be="wrap___NcfkY",_e="check___XPhyn",ke="activeCheck___gPjei",we=t(43428),Ze=t(93948),Ne=t(36381),Ce="Header___XzbiS",Se="doubtIcon___itWIF",Ie="body___RUXn8",Pe="Collapse___qW89G",Te="Table___s0Yl7",De="Row___UV8EM",Ae="content___kHQti",Ee="title___Q6WVx",Oe="time___gdgDO",Be="Retest___PLJVW",ze="progress___r1CzM",Le="num___t0feJ",Re="dot___XiDv_",Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGkAAABrCAYAAAB0SqwxAAAAAXNSR0IArs4c6QAAGxxJREFUeF7tfWmQZMdxXma9s++5j53ZY2YvAIsFsbsASAGGaYoKksFDJHXQpC0zbCls2UE7TAXlkGWLAuhgiEJItixFKMIh/bCskGnzUFBBSSGJkmDqgEiCOIgFsNjFHtidndmdmZ6e6ev1O6vSUa+P7ek5+r2ZntkZat9GR+/0y8rKyu9lVVZWVj2EfXIREdq2fSAItMOKgkMAYohzGkaEDCLTicgAAB0AOCK6AMJDZDUh+DIALnFOBcZwNpPRryOis0+aHYqJe1nYWo0miPjbiMRJIjgCAGYP5CUAvI0orgLA+VRKfwMR/R7w3TEWPQWJiAYsKzgrhMioqrKh0JzzTetFVAwh+IOI0mJ2/PIA4I0ggG/19WmvIKLY8RpjVtAzkCzLOysE/CQAaDFl2DPkiFQSQvk7zivf7O/vL+4VwXoCUqFAWdPknxdCyHHh++HyEem5IND/tK8PV+52g3oCUrnsP4lI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gdg+keyDtAw3sAxHvWdI9kPaBBvaBiPcs6R5I+0AD+0DEe5Z0D6R9oIF9IOI9S7oH0j7QwD4Q8Z4l3QNpH2hgH4h4z5LugbQPNLAPRPz/bLertMER5R8AAAAASUVORK5CYII=",We=t(88950),Fe=t.p+"static/frame1.8be958f3.gif",Ke=(0,l.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting,shixunsDetail:e.shixunsDetail}}))((function(e){var n,t,i,r,o,d=e.isDrawer,p=void 0!==d&&d,h=e.setIsDrawer,x=(e.shixunsDetail,e.dispatch,(0,s.useState)(0)),v=a()(x,2),m=v[0],g=v[1],y=(0,s.useState)({}),j=a()(y,2),b=j[0],_=j[1],w=(0,s.useState)([]),N=a()(w,2),C=N[0],S=N[1],I=(0,s.useState)([]),P=a()(I,2),T=P[0],D=P[1],A=(0,s.useState)(0),E=a()(A,2),O=(E[0],E[1]),B=(0,l.useParams)(),z=(0,s.useRef)(),L=function(){var e=u()(c()().mark((function e(n){var t,i,a,s;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={method:n.method},"Get"==n.method?t.params=n.data:t.body=n.data,e.next=4,(0,oe.ZP)("/api/shixuns/".concat(B.id,"/shixun_dectects.json"),t);case 4:i=e.sent,g(null==i?void 0:i.status),0==(null==i?void 0:i.status)?z.current||(z.current=setInterval(u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L({method:"Get",data:{identifier:B.id}});case 2:case"end":return e.stop()}}),e)}))),5e3)):(clearInterval(z.current),z.current=null),0!=(null==i?void 0:i.status)&&(_(i),S((null===(a=i.data)||void 0===a?void 0:a.strong_details)||[]),D((null===(s=i.data)||void 0===s?void 0:s.normal_details)||[]));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,s.useEffect)((function(){p&&L({method:"Get",data:{identifier:B.id}})}),[p]),(0,V.jsxs)(we.Z,{closable:!1,width:1e3,bodyStyle:{padding:0},open:p,onClose:function(){return h(!1)},destroyOnClose:!0,children:[(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",className:Ce,children:[(0,V.jsxs)(k.Z,{children:[(0,V.jsx)("span",{style:{color:"#191919"},children:"检测结果"}),(0,V.jsx)("i",{className:"iconfont icon-yiwenzhengchang ".concat(Se),onClick:function(){return window.open("https://www.educoder.net/forums/36896","_blank")}})]}),(0,V.jsx)(k.Z,{children:(0,V.jsx)("i",{className:"iconfont icon-guanbi10",style:{color:"#979797",cursor:"pointer"},onClick:function(){h(!1),clearInterval(z.current)}})})]}),0==m&&(0,V.jsxs)("div",{children:[(0,V.jsx)(We.Z,{img:Fe,customText:"系统检测中,请稍候..."}),(0,V.jsx)("p",{style:{textAlign:"center"},children:"一键检测功能,可以将实践项目中配置不完善的地方检测出来。你可以根据建议进行对应的调整~"}),(0,V.jsx)("div",{style:{textAlign:"center"},children:(0,V.jsx)(pe.Z,{className:Be,onClick:u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.open("https://www.educoder.net/forums/36896","_blank");case 1:case"end":return e.stop()}}),e)}))),children:"详细了解 >"})})]}),1==m&&(0,V.jsxs)("div",{className:Ie,children:[(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",children:[(0,V.jsxs)(k.Z,{style:{display:"flex",flexDirection:"column"},children:[(0,V.jsxs)("span",{className:Ee,children:["待优化",(0,V.jsxs)("span",{style:{color:"#FF9D18"},children:[" ",(null==b?void 0:b.count)||0," "]}),"项"]}),(0,V.jsxs)("span",{className:Oe,children:["检测时间",(0,V.jsx)("span",{style:{marginLeft:"8px"},children:null==b?void 0:b.time})]})]}),(0,V.jsx)(k.Z,{children:(0,V.jsx)(pe.Z,{className:Be,onClick:u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(0),e.next=3,L({method:"post",data:{identifier:B.id}});case 3:case"end":return e.stop()}}),e)}))),children:"重新检测"})})]}),(0,V.jsxs)("div",{className:ze,children:[0!=(null==b?void 0:b.count)&&(0,V.jsx)(Ze.Z,{percent:Math.round((null===(n=b.data)||void 0===n?void 0:n.strong_detail_count)/(null==b?void 0:b.count)*100),showInfo:!1,strokeWidth:10,strokeColor:"#E53333",trailColor:"#FFA221"}),(0,V.jsxs)(Z.Z,{align:"middle",style:{marginTop:"16px"},children:[(0,V.jsxs)(Z.Z,{className:Le,align:"middle",children:[(0,V.jsx)("div",{className:Re,style:{background:"#E53333"}}),(0,V.jsx)("span",{children:"强烈建议修复项"}),(0,V.jsx)("span",{children:(null===(t=b.data)||void 0===t?void 0:t.strong_detail_count)||0})]}),(0,V.jsxs)(Z.Z,{className:Le,align:"middle",children:[(0,V.jsx)("div",{className:Re,style:{background:"#FFA221"}}),(0,V.jsx)("span",{children:"建议优化项"}),(0,V.jsx)("span",{children:(null===(i=b.data)||void 0===i?void 0:i.normal_detail_count)||0})]})]})]}),(0,V.jsxs)(Ne.Z,{className:Pe,ghost:!0,expandIconPosition:"end",children:[(0,V.jsx)(Ne.Z.Panel,{style:{marginBottom:"20px"},header:(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",children:[(0,V.jsx)(k.Z,{children:"强烈建议修复项"}),(0,V.jsx)(k.Z,{style:{color:"#E53333"},children:(null===(r=b.data)||void 0===r?void 0:r.strong_detail_count)||0})]}),children:(null==C?void 0:C.length)>0?(0,V.jsx)("div",{className:Te,children:C.map((function(e,n){var t;return(0,V.jsxs)(Z.Z,{align:"middle",className:De,wrap:!1,children:[(0,V.jsx)(k.Z,{style:{width:"150px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.category,children:e.category})}),(0,V.jsx)(k.Z,{style:{width:"400px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.raise_msg,children:e.raise_msg})}),(0,V.jsx)(k.Z,{style:{width:"100%",textAlign:"right"},children:null===(t=e.array_suggestion)||void 0===t?void 0:t.map((function(e,n){return(0,V.jsx)("div",{style:{width:"100%"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e,children:e})},n)}))})]},n)}))}):(0,V.jsx)(We.Z,{img:Ve,customText:"暂无优化项~",styles:{margin:"30px auto"}})},1),(0,V.jsx)(Ne.Z.Panel,{header:(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",children:[(0,V.jsx)(k.Z,{children:"建议优化项"}),(0,V.jsx)(k.Z,{style:{color:"#FFA221"},children:(null===(o=b.data)||void 0===o?void 0:o.normal_detail_count)||0})]}),children:0!=(null==T?void 0:T.length)?(0,V.jsx)("div",{className:Te,children:T.map((function(e,n){var t;return(0,V.jsxs)(Z.Z,{align:"middle",className:De,wrap:!1,children:[(0,V.jsx)(k.Z,{style:{width:"150px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.category,children:e.category})}),(0,V.jsx)(k.Z,{style:{width:"400px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.raise_msg,children:e.raise_msg})}),(0,V.jsx)(k.Z,{style:{width:"100%",textAlign:"right"},children:null===(t=e.array_suggestion)||void 0===t?void 0:t.map((function(e,n){return(0,V.jsx)("div",{className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e,children:e})},n)}))})]},n)}))}):(0,V.jsx)(We.Z,{img:Ve,customText:"暂无优化项~",styles:{margin:"30px auto"}})},2)]})]})]})})),Ue=(0,l.connect)((function(e){var n=e.user,t=e.shixunsDetail,i=e.loading;return{user:n,shixunsDetail:t,globalSetting:e.globalSetting,loading:i.models.index}}))((function(e){var n,t,i,o,c,d,u,p,h,x,v,m,f,g,y=e.user,j=e.shixunsDetail,b=(e.globalSetting,e.loading,e.dispatch),_=(0,l.useSearchParams)(),k=(a()(_,1)[0],(0,l.useParams)()),w=(0,s.useState)(""),Z=a()(w,2),N=Z[0],C=Z[1],S=(0,s.useState)(""),I=a()(S,2),P=I[0],T=I[1],D=(0,l.useLocation)(),A=(0,s.useState)(!1),E=a()(A,2),O=E[0],B=E[1];(0,s.useEffect)((function(){var e,n;null!==(e=j.detail)&&void 0!==e&&e.id&&(0,de.Dk)((null===(n=j.detail)||void 0===n?void 0:n.name)||"实践项目名称-未填写")}),[j]),(0,s.useEffect)((function(){var e=k.id;C(e),b({type:"shixunsDetail/getShixunsDetail",payload:{id:e}}),b({type:"shixunsDetail/getRightData",payload:{id:e}})}),[k.id]),(0,s.useEffect)((function(){var e;T({challenges:"1",propaedeutics:"2",repository:"3",secret_repository:"4",collaborators:"5",dataset:"6",shixun_discuss:"7",ranking_list:"8",settings:"9",fork_list:"10"}[null===(e=D.pathname.split("/"))||void 0===e?void 0:e[3]]||"1")}),[D.pathname]);var z=null===(n=y.userInfo)||void 0===n||null===(n=n.shixun)||void 0===n?void 0:n.own,L=null===(t=y.userInfo)||void 0===t||null===(t=t.shixun)||void 0===t?void 0:t.lookable;return(0,V.jsxs)("section",{className:ye,children:[(0,V.jsx)(xe,{}),(0,V.jsx)("section",{className:je,children:(0,V.jsxs)("aside",{className:be,children:[(0,V.jsxs)(r.Z,{mode:"horizontal",onClick:function(e){e.item;var n=e.key,t=(e.keyPath,e.domEvent);(0,de.L9)(["实践项目","详情页",t.currentTarget.textContent]);var i=function(e,n){return{1:{url:"/shixuns/".concat(n,"/challenges"),isPush:!1},2:{url:"/shixuns/".concat(n,"/propaedeutics"),isPush:!1},3:{url:"/shixuns/".concat(n,"/repository"),isPush:!0},4:{url:"/shixuns/".concat(n,"/secret_repository"),isPush:!0},5:{url:"/shixuns/".concat(n,"/collaborators"),isPush:!1},6:{url:"/shixuns/".concat(n,"/dataset"),isPush:!1},7:{url:"/shixuns/".concat(n,"/shixun_discuss"),isPush:!1},8:{url:"/shixuns/".concat(n,"/ranking_list"),isPush:!1},9:{url:"/shixuns/".concat(n,"/settings"),isPush:!1},10:{url:"/shixuns/".concat(n,"/fork_list"),isPush:!1}}[e]||{}}(n,N),a=i.url;i.isPush?null===l.history||void 0===l.history||l.history.push(a):null===l.history||void 0===l.history||l.history.replace(a)},selectedKeys:[P],children:[(0,V.jsx)(r.Z.Item,{children:"任务"},"1"),z&&!(null!==(i=j.detail)&&void 0!==i&&i.is_jupyter)&&(null===(o=j.detail)||void 0===o?void 0:o.init_repository)&&(0,V.jsx)(r.Z.Item,{children:"代码"},"3"),z&&(null===(c=j.detail)||void 0===c?void 0:c.secret_repository)&&(0,V.jsx)(r.Z.Item,{children:"私密代码"},"4"),z&&L&&!(null!==(d=j.detail)&&void 0!==d&&d.is_jupyter)&&!(null!==(u=j.detail)&&void 0!==u&&u.is_disable_discuss)&&(0,V.jsx)(r.Z.Item,{children:"评论"},"7"),!(null!==(p=j.detail)&&void 0!==p&&p.is_jupyter)&&(0,V.jsx)(r.Z.Item,{children:"排行榜"},"8"),z&&(0,V.jsx)(r.Z.Item,{children:"合作者"},"5"),z&&(0,ce.JL)()&&!(null===(h=j.detail)||void 0===h||!h.new_fork_count)&&(0,V.jsx)(r.Z.Item,{children:"复制列表"},"10"),(0,V.jsx)(r.Z.Item,{children:"数据集"},"6"),z&&(null===(x=j.detail)||void 0===x?void 0:x.is_jupyter)&&(0,V.jsx)(r.Z.Item,{children:"配置"},"9")]}),(0,ce.Ny)()&&!(null!==(v=j.challenges)&&void 0!==v&&v.is_jupyter||null!==(m=j.challenges)&&void 0!==m&&m.is_jupyter_lab)&&(0,V.jsxs)("span",{className:"".concat(_e," ").concat(ke),onClick:function(){return B(!0)},children:[(0,V.jsx)("i",{className:"iconfont icon-yijianjiance"}),"一键检测"]}),z&&L&&!(null!==(f=j.detail)&&void 0!==f&&f.is_jupyter)&&(0,V.jsxs)("a",{className:_e,onClick:function(e){l.history.push("/shixuns/".concat(N,"/edit"))},id:"settingEntry",children:[(0,V.jsx)("i",{className:"iconfont icon-shijianshezhi"}),(0,V.jsx)("span",{children:"设置"})]}),z&&!(null!==(g=j.detail)&&void 0!==g&&g.is_jupyter)&&(0,V.jsx)(ge,{}),(0,V.jsx)(Ke,{isDrawer:O,setIsDrawer:B})]})}),(0,V.jsx)("aside",{className:"edu-container",children:(0,V.jsx)(l.Outlet,{})})]})}))},99379:function(e,n,t){var i=t(39647),a=t.n(i),s=(t(59301),t(18984)),l=t(43418),r=t(37712),o=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,s.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t=e.shixunsDetail,i=(e.globalSetting,e.loading,e.dispatch);a()(e,o);return(0,r.jsx)(l.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-Auth"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){var e;i({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href=null===(e=t.detail)||void 0===e||null===(e=e.can_fork)||void 0===e?void 0:e.certi_url},onCancel:function(){i({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,r.jsxs)("p",{className:"tc font16",children:[null===(n=t.detail)||void 0===n||null===(n=n.can_fork)||void 0===n?void 0:n.can_fork,(0,r.jsx)("br",{}),"请问是否前往进行认证?"]})})}))},90613:function(e,n,t){var i=t(39647),a=t.n(i),s=(t(59301),t(18984)),l=t(43418),r=t(37712),o=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,s.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t,i=e.shixunsDetail,s=(e.globalSetting,e.loading,e.dispatch);a()(e,o);return(0,r.jsx)(l.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-Per"===i.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){s({type:"shixunsDetail/setActionTabs",payload:{}})},onCancel:function(){s({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,r.jsxs)("p",{className:"tc font16",children:["该实训所使用的实验环境为私有环境:",(0,r.jsx)("br",{}),null===(n=i.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.message,(0,r.jsx)("br",{}),"您无该实验环境的使用权限,所以无法",(null===(t=i.actionTabs)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.text)||"复制","该实训"]})})}))},93626:function(e,n,t){t.d(n,{_:function(){return m}});var i=t(7557),a=t.n(i),s=t(41498),l=t.n(s),r=t(19471),o=t(43418),c=t(8591),d=t(51945),u=t(37704),p=(t(59301),t(37712)),h=function(){var e=l()(a()().mark((function e(n){var t,i,s,l,o,c,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.is_jupyter,i=n.is_jupyter_lab,s=n.shixunId,l=n.homework_common_id,o=n.courseId,!t&&!i){e.next=7;break}return e.next=4,(0,r.BK)({id:s});case 4:return null!=(c=e.sent)&&c.identifier&&(0,u.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(l)),e.abrupt("return");case 7:return e.next=9,(0,r.Ir)({id:s,homework_common_id:l});case 9:if(null==(d=e.sent)||!d.game_identifier){e.next=13;break}return(0,u.xg)("/tasks/".concat(o,"/").concat(l,"/").concat(d.game_identifier)),e.abrupt("return");case 13:2===(null==d?void 0:d.status)?x(null==d?void 0:d.message,l,o):3===(null==d?void 0:d.status)?v(null==d?void 0:d.message):-3==(null==d?void 0:d.status)&&(0,u.eF)();case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),x=function e(n,t,i){var s,d;n=null!==(s=n)&&void 0!==s&&s.includes(".json")?n:"".concat(n,".json"),o.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,p.jsx)("div",{className:"tc font16",children:" 实训已经更新了,正在为您重置!"}),onOk:(d=l()(a()().mark((function s(){var l,o;return a()().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.$Q)({url:n});case 2:if(l=a.sent){a.next=5;break}return a.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),a.next=8,(0,r.Ir)({id:l.shixun_identifier,homework_common_id:t});case 8:if(null==(o=a.sent)||!o.game_identifier){a.next=12;break}return(0,u.xg)("/tasks/".concat(i,"/").concat(t,"/").concat(o.game_identifier)),a.abrupt("return");case 12:2===(null==o?void 0:o.status)?e(null==o?void 0:o.message,t,i):3===(null==o?void 0:o.status)&&v(null==o?void 0:o.message);case 13:case"end":return a.stop()}}),s)}))),function(){return d.apply(this,arguments)})})},v=function(e){o.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,p.jsxs)("div",{className:"tc font16",children:[" 目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},m=function(){var e=l()(a()().mark((function e(n,t){var i,s,l,c,u,x,v;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.is_jupyter,s=t.is_jupyter_lab,e.next=3,(0,r.WT)(n);case 3:if(!((l=e.sent).length>1)){e.next=7;break}return o.Z.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"提示",content:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{children:["你当前有",l.length,"个进行中的实训作业使用该实践项目,请在下方点击实训作业名称进入实训挑战页面:"]}),(0,p.jsx)(d.Z,{pagination:!1,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"作业名称",dataIndex:"name",ellipsis:!0,width:240,align:"center",render:function(e,n){var t=n||{},i=t.course_identifier,a=t.id;return(0,p.jsx)("a",{target:"_blank",href:"/classrooms/".concat(i,"/shixun_homework/").concat(a,"/detail"),children:e})}},{title:"作业截止时间",dataIndex:"end_time",align:"center"},{title:"操作",align:"center",render:function(e,n){var t=n.course_identifier,a=n.id,l=n.shixun_identifier;return(0,p.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){h({is_jupyter:i,is_jupyter_lab:s,shixunId:l,homework_common_id:a,courseId:t})},children:"前往挑战"})}}],dataSource:l,rowKey:"id"})]})}),e.abrupt("return",!0);case 7:if(1!==l.length){e.next=11;break}return c=l[0],u=c.shixun_identifier,x=c.id,v=c.course_identifier,h({is_jupyter:i,is_jupyter_lab:s,shixunId:u,homework_common_id:x,courseId:v}),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();n.Z=h},77578:function(e,n,t){t.d(n,{Z:function(){return i}});const i=e=>e?"function"==typeof e?e():e:null},36381:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(83148),a=t(92310),s=t.n(a),l=t(81978),r=t(34706),o=t(43941),c=t(49888),d=t(71366),u=t(85870),p=t(59301),h=t(62579),x=t(75440),v=t(25124),m=t(16934),f=t(20287),g=p.forwardRef((function(e,n){var t=e.prefixCls,i=e.forceRender,a=e.className,l=e.style,r=e.children,c=e.isActive,d=e.role,u=p.useState(c||i),h=(0,o.Z)(u,2),x=h[0],m=h[1];return p.useEffect((function(){(i||c)&&m(!0)}),[i,c]),x?p.createElement("div",{ref:n,className:s()("".concat(t,"-content"),(0,v.Z)((0,v.Z)({},"".concat(t,"-content-active"),c),"".concat(t,"-content-inactive"),!c),a),style:l,role:d},p.createElement("div",{className:"".concat(t,"-content-box")},r)):null}));g.displayName="PanelContent";var y=g,j=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],b=p.forwardRef((function(e,n){var t=e.showArrow,i=void 0===t||t,a=e.headerClass,r=e.isActive,o=e.onItemClick,c=e.forceRender,d=e.className,u=e.prefixCls,x=e.collapsible,g=e.accordion,b=e.panelKey,_=e.extra,k=e.header,w=e.expandIcon,Z=e.openMotion,N=e.destroyInactivePanel,C=e.children,S=(0,h.Z)(e,j),I="disabled"===x,P="header"===x,T="icon"===x,D=null!=_&&"boolean"!=typeof _,A=function(){null==o||o(b)},E="function"==typeof w?w(e):p.createElement("i",{className:"arrow"});E&&(E=p.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(x)?A:void 0},E));var O=s()((0,v.Z)((0,v.Z)((0,v.Z)({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),r),"".concat(u,"-item-disabled"),I),d),B={className:s()(a,(0,v.Z)((0,v.Z)((0,v.Z)({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),P),"".concat(u,"-icon-collapsible-only"),T)),"aria-expanded":r,"aria-disabled":I,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==f.Z.ENTER&&e.which!==f.Z.ENTER||A()}};return P||T||(B.onClick=A,B.role=g?"tab":"button",B.tabIndex=I?-1:0),p.createElement("div",(0,l.Z)({},S,{ref:n,className:O}),p.createElement("div",B,i&&E,p.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===x?A:void 0},k),D&&p.createElement("div",{className:"".concat(u,"-extra")},_)),p.createElement(m.default,(0,l.Z)({visible:r,leavedClassName:"".concat(u,"-content-hidden")},Z,{forceRender:c,removeOnLeave:N}),(function(e,n){var t=e.className,i=e.style;return p.createElement(y,{ref:n,prefixCls:u,className:t,style:i,isActive:r,forceRender:c,role:g?"tabpanel":void 0},C)})))})),_=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var k=function(e,n,t){return Array.isArray(e)?function(e,n){var t=n.prefixCls,i=n.accordion,a=n.collapsible,s=n.destroyInactivePanel,r=n.onItemClick,o=n.activeKey,c=n.openMotion,d=n.expandIcon;return e.map((function(e,n){var u=e.children,x=e.label,v=e.key,m=e.collapsible,f=e.onItemClick,g=e.destroyInactivePanel,y=(0,h.Z)(e,_),j=String(null!=v?v:n),k=null!=m?m:a,w=null!=g?g:s,Z=!1;return Z=i?o[0]===j:o.indexOf(j)>-1,p.createElement(b,(0,l.Z)({},y,{prefixCls:t,key:j,panelKey:j,isActive:Z,accordion:i,openMotion:c,expandIcon:d,header:x,collapsible:k,onItemClick:function(e){"disabled"!==k&&(r(e),null==f||f(e))},destroyInactivePanel:w}),u)}))}(e,t):(0,x.Z)(n).map((function(e,n){return function(e,n,t){if(!e)return null;var i=t.prefixCls,a=t.accordion,s=t.collapsible,l=t.destroyInactivePanel,r=t.onItemClick,o=t.activeKey,c=t.openMotion,d=t.expandIcon,u=e.key||String(n),h=e.props,x=h.header,v=h.headerClass,m=h.destroyInactivePanel,f=h.collapsible,g=h.onItemClick,y=!1;y=a?o[0]===u:o.indexOf(u)>-1;var j=null!=f?f:s,b={key:u,panelKey:u,header:x,headerClass:v,isActive:y,prefixCls:i,destroyInactivePanel:null!=m?m:l,openMotion:c,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==j&&(r(e),null==g||g(e))},expandIcon:d,collapsible:j};return"string"==typeof e.type?e:(Object.keys(b).forEach((function(e){void 0===b[e]&&delete b[e]})),p.cloneElement(e,b))}(e,n,t)}))},w=t(47413);function Z(e){var n=e;if(!Array.isArray(n)){var t=(0,c.Z)(n);n="number"===t||"string"===t?[n]:[]}return n.map((function(e){return String(e)}))}var N=p.forwardRef((function(e,n){var t=e.prefixCls,i=void 0===t?"rc-collapse":t,a=e.destroyInactivePanel,c=void 0!==a&&a,h=e.style,x=e.accordion,v=e.className,m=e.children,f=e.collapsible,g=e.openMotion,y=e.expandIcon,j=e.activeKey,b=e.defaultActiveKey,_=e.onChange,N=e.items,C=s()(i,v),S=(0,d.Z)([],{value:j,onChange:function(e){return null==_?void 0:_(e)},defaultValue:b,postState:Z}),I=(0,o.Z)(S,2),P=I[0],T=I[1];(0,u.ZP)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var D=k(N,m,{prefixCls:i,accordion:x,openMotion:g,expandIcon:y,collapsible:f,destroyInactivePanel:c,onItemClick:function(e){return T((function(){return x?P[0]===e?[]:[e]:P.indexOf(e)>-1?P.filter((function(n){return n!==e})):[].concat((0,r.Z)(P),[e])}))},activeKey:P});return p.createElement("div",(0,l.Z)({ref:n,className:C,style:h,role:x?"tablist":void 0},(0,w.Z)(e,{aria:!0,data:!0})),D)})),C=Object.assign(N,{Panel:b}),S=C,I=(C.Panel,t(55405)),P=t(62892),T=t(92343),D=t(36355),A=t(19716);var E=p.forwardRef(((e,n)=>{const{getPrefixCls:t}=p.useContext(D.E_),{prefixCls:i,className:a,showArrow:l=!0}=e,r=t("collapse",i),o=s()({[`${r}-no-arrow`]:!l},a);return p.createElement(S.Panel,Object.assign({ref:n},e,{prefixCls:r,className:o}))})),O=t(17313),B=t(8378),z=t(83116),L=t(37613);const R=e=>{const{componentCls:n,contentBg:t,padding:i,headerBg:a,headerPadding:s,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:r,collapsePanelBorderRadius:o,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:h,colorTextDisabled:x,fontSize:v,fontSizeLG:m,lineHeight:f,marginSM:g,paddingSM:y,paddingLG:j,paddingXS:b,motionDurationSlow:_,fontSizeIcon:k,contentPadding:w}=e,Z=`${c}px ${d} ${u}`;return{[n]:Object.assign(Object.assign({},(0,O.Wf)(e)),{backgroundColor:a,border:Z,borderBottom:0,borderRadius:`${o}px`,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:Z,"&:last-child":{[`\n &,\n & > ${n}-header`]:{borderRadius:`0 0 ${o}px ${o}px`}},[`> ${n}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:h,lineHeight:f,cursor:"pointer",transition:`all ${_}, visibility 0s`,[`> ${n}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${n}-expand-icon`]:{height:v*f,display:"flex",alignItems:"center",paddingInlineEnd:g},[`${n}-arrow`]:Object.assign(Object.assign({},(0,O.Ro)()),{fontSize:k,svg:{transition:`transform ${_}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}},[`${n}-header-collapsible-only`]:{cursor:"default",[`${n}-header-text`]:{flex:"none",cursor:"pointer"}},[`${n}-icon-collapsible-only`]:{cursor:"default",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:p,backgroundColor:t,borderTop:Z,[`& > ${n}-content-box`]:{padding:w},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:l,paddingInlineStart:b,[`> ${n}-expand-icon`]:{marginInlineStart:y-b}},[`> ${n}-content > ${n}-content-box`]:{padding:y}}},"&-large":{[`> ${n}-item`]:{fontSize:m,[`> ${n}-header`]:{padding:r,paddingInlineStart:i,[`> ${n}-expand-icon`]:{height:m*f,marginInlineStart:j-i}},[`> ${n}-content > ${n}-content-box`]:{padding:j}}},[`${n}-item:last-child`]:{[`> ${n}-content`]:{borderRadius:`0 0 ${o}px ${o}px`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n &,\n & > .arrow\n ":{color:x,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:g}}}}})}},V=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{[`> ${n}-item > ${n}-header ${n}-arrow svg`]:{transform:"rotate(180deg)"}}}},W=e=>{const{componentCls:n,headerBg:t,paddingXXS:i,colorBorder:a}=e;return{[`${n}-borderless`]:{backgroundColor:t,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${a}`},[`\n > ${n}-item:last-child,\n > ${n}-item:last-child ${n}-header\n `]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:i}}}},F=e=>{const{componentCls:n,paddingSM:t}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:t}}}}}};var K=(0,z.Z)("Collapse",(e=>{const n=(0,L.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[R(n),W(n),F(n),V(n),(0,B.Z)(n)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const U=p.forwardRef(((e,n)=>{const{getPrefixCls:t,direction:a,collapse:l}=p.useContext(D.E_),{prefixCls:r,className:o,rootClassName:c,style:d,bordered:u=!0,ghost:h,size:v,expandIconPosition:m="start",children:f,expandIcon:g}=e,y=(0,A.Z)((e=>{var n;return null!==(n=null!=v?v:e)&&void 0!==n?n:"middle"})),j=t("collapse",r),b=t(),[_,k]=K(j),w=p.useMemo((()=>"left"===m?"start":"right"===m?"end":m),[m]),Z=s()(`${j}-icon-position-${w}`,{[`${j}-borderless`]:!u,[`${j}-rtl`]:"rtl"===a,[`${j}-ghost`]:!!h,[`${j}-${y}`]:"middle"!==y},null==l?void 0:l.className,o,c,k),N=Object.assign(Object.assign({},(0,P.Z)(b)),{motionAppear:!1,leavedClassName:`${j}-content-hidden`}),C=p.useMemo((()=>f?(0,x.Z)(f).map(((e,n)=>{var t,i;if(null===(t=e.props)||void 0===t?void 0:t.disabled){const t=null!==(i=e.key)&&void 0!==i?i:String(n),{disabled:a,collapsible:s}=e.props,l=Object.assign(Object.assign({},(0,I.Z)(e.props,["disabled"])),{key:t,collapsible:null!=s?s:a?"disabled":void 0});return(0,T.Tm)(e,l)}return e})):null),[f]);return _(p.createElement(S,Object.assign({ref:n,openMotion:N},(0,I.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=g?g(e):p.createElement(i.Z,{rotate:e.isActive?90:void 0});return(0,T.Tm)(n,(()=>({className:s()(n.props.className,`${j}-arrow`)})))},prefixCls:j,className:Z,style:Object.assign(Object.assign({},null==l?void 0:l.style),d)}),C))}));var M=Object.assign(U,{Panel:E})},28103:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(92310),a=t.n(i),s=t(59301),l=t(36355),r=t(17313),o=t(83116),c=t(37613);const d=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:i,lineWidth:a,textPaddingInline:s,orientationMargin:l,verticalMarginInline:o}=e;return{[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{borderBlockStart:`${a}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${a}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${a}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,o.Z)("Divider",(e=>{const n=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:t,divider:i}=s.useContext(l.E_),{prefixCls:r,type:o="horizontal",orientation:c="center",orientationMargin:d,className:h,rootClassName:x,children:v,dashed:m,plain:f,style:g}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),j=n("divider",r),[b,_]=u(j),k=c.length>0?`-${c}`:c,w=!!v,Z="left"===c&&null!=d,N="right"===c&&null!=d,C=a()(j,null==i?void 0:i.className,_,`${j}-${o}`,{[`${j}-with-text`]:w,[`${j}-with-text${k}`]:w,[`${j}-dashed`]:!!m,[`${j}-plain`]:!!f,[`${j}-rtl`]:"rtl"===t,[`${j}-no-default-orientation-margin-left`]:Z,[`${j}-no-default-orientation-margin-right`]:N},h,x),S=s.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),I=Object.assign(Object.assign({},Z&&{marginLeft:S}),N&&{marginRight:S});return b(s.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==i?void 0:i.style),g)},y,{role:"separator"}),v&&"vertical"!==o&&s.createElement("span",{className:`${j}-inner-text`,style:I},v)))}},39722:function(e,n,t){t.d(n,{t5:function(){return u}});var i=t(92310),a=t.n(i),s=t(55477),l=t(59301),r=t(36355),o=t(77578),c=t(17356),d=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{const{hashId:n,prefixCls:t,className:i,style:r,placement:c="top",title:d,content:u,children:p}=e;return l.createElement("div",{className:a()(n,t,`${t}-pure`,`${t}-placement-${c}`,i),style:r},l.createElement("div",{className:`${t}-arrow`}),l.createElement(s.G,Object.assign({},e,{className:n,prefixCls:t}),p||((e,n,t)=>{if(n||t)return l.createElement(l.Fragment,null,n&&l.createElement("div",{className:`${e}-title`},(0,o.Z)(n)),l.createElement("div",{className:`${e}-inner-content`},(0,o.Z)(t)))})(t,d,u)))};n.ZP=e=>{const{prefixCls:n}=e,t=d(e,["prefixCls"]),{getPrefixCls:i}=l.useContext(r.E_),a=i("popover",n),[s,o]=(0,c.Z)(a);return s(l.createElement(u,Object.assign({},t,{prefixCls:a,hashId:o})))}},60324:function(e,n,t){var i=t(92310),a=t.n(i),s=t(59301),l=t(77578),r=t(62892),o=t(36355),c=t(6848),d=t(39722),u=t(17356),p=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{let{title:n,content:t,prefixCls:i}=e;return s.createElement(s.Fragment,null,n&&s.createElement("div",{className:`${i}-title`},(0,l.Z)(n)),s.createElement("div",{className:`${i}-inner-content`},(0,l.Z)(t)))},x=s.forwardRef(((e,n)=>{const{prefixCls:t,title:i,content:l,overlayClassName:d,placement:x="top",trigger:v="hover",mouseEnterDelay:m=.1,mouseLeaveDelay:f=.1,overlayStyle:g={}}=e,y=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:j}=s.useContext(o.E_),b=j("popover",t),[_,k]=(0,u.Z)(b),w=j(),Z=a()(d,k);return _(s.createElement(c.Z,Object.assign({placement:x,trigger:v,mouseEnterDelay:m,mouseLeaveDelay:f,overlayStyle:g},y,{prefixCls:b,overlayClassName:Z,ref:n,overlay:i||l?s.createElement(h,{prefixCls:b,title:i,content:l}):null,transitionName:(0,r.m)(w,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));x._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,n.Z=x},17356:function(e,n,t){var i=t(17313),a=t(29878),s=t(19447),l=t(33166),r=t(83116),o=t(37613);const c=e=>{const{componentCls:n,popoverColor:t,minWidth:a,fontWeightStrong:l,popoverPadding:r,boxShadowSecondary:o,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:h,popoverBg:x}=e;return[{[n]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:x,backgroundClip:"padding-box",borderRadius:d,boxShadow:o,padding:r},[`${n}-title`]:{minWidth:a,marginBottom:p,color:c,fontWeight:l},[`${n}-inner-content`]:{color:t}})},(0,s.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:n}=e;return{[n]:l.i.map((t=>{const i=e[`${t}6`];return{[`&${n}-${t}`]:{"--antd-arrow-background-color":i,[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:n,lineWidth:t,lineType:i,colorSplit:a,paddingSM:s,controlHeight:l,fontSize:r,lineHeight:o,padding:c}=e,d=l-Math.round(r*o);return{[n]:{[`${n}-inner`]:{padding:0},[`${n}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-t}px`,borderBottom:`${t}px ${i} ${a}`},[`${n}-inner-content`]:{padding:`${s}px ${c}px`}}}};n.Z=(0,r.Z)("Popover",(e=>{const{colorBgElevated:n,colorText:t,wireframe:i}=e,s=(0,o.TS)(e,{popoverPadding:12,popoverBg:n,popoverColor:t});return[c(s),d(s),i&&u(s),(0,a._y)(s,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[52875,20190],{3148:function(e,n,t){t.d(n,{Z:function(){return o}});var i=t(81978),a=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},l=t(1393),r=function(e,n){return a.createElement(l.Z,(0,i.Z)({},e,{ref:n,icon:s}))};var o=a.forwardRef(r)},32096:function(e,n,t){t.d(n,{Z:function(){return f}});var i=t(82242),a=t.n(i),s=t(7557),l=t.n(s),r=t(41498),o=t.n(r),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),h=t(3113),x=t(59301),v=t(37712),m=["children"],f=function(e){var n=e.children,t=p()(e,m),i=(0,x.useState)(!1),s=d()(i,2),r=s[0],c=s[1];return(0,v.jsx)(h.ZP,a()(a()({},t),{},{loading:r,onClick:function(){var e=o()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c(!0),e.next=4,t.onClick(n);case 4:c(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),c(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},88950:function(e,n,t){var i=t(82242),a=t.n(i),s=(t(59301),t(93314)),l=t(3113),r=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,i=void 0===t?{}:t,o=e.styles,c=void 0===o?{}:o,d=e.customText,u=e.ButtonText,p=e.ButtonClick,h=e.Buttonclass,x=e.ButtonTwo,v=e.imgStyles,m=e.loading,f=void 0!==m&&m;return(0,r.jsxs)("section",{className:"tc animated fadeIn",style:a()(a()({},{color:"#999",margin:"100px auto",visibility:f?"hidden":"visible"}),c),children:[(0,r.jsx)("img",{src:n||s,style:a()(a()({},v),{},{pointerEvents:"none",userSelect:"none"})}),(0,r.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,r.jsx)(l.ZP,a()(a()({className:h,onClick:p},i),{},{children:u})),x&&x]})}},5259:function(e,n,t){t.d(n,{Z:function(){return O},P:function(){return A}});var i=t(37205),a=t.n(i),s=t(39647),l=t.n(s),r=t(7557),o=t.n(r),c=t(82242),d=t.n(c),u=t(41498),p=t.n(u),h=t(79800),x=t.n(h),v=t(59301),m=t(78241),f=t(43418),g=t(5112),y=t(92832),j=t(51945),b="brief___LOzpE",_="contentTitle___xkdcN",k="content___Vtri0",w="antdTable___s8T2N",Z="tableCell___kN9Fw",N="antdModal___WVBk3",C="orangeColor___ryB2u",S=t(19471),I=t(37712),P=["isImportMultipleCourse"],T=function(e){var n=e.studentNames,t=e.total;return t>3?(0,I.jsxs)(I.Fragment,{children:["课堂内有",(0,I.jsx)("span",{className:C,children:null==n?void 0:n.join("、")}),"等",(0,I.jsx)("span",{className:C,children:t}),"名学生"]}):(0,I.jsxs)(I.Fragment,{children:["课堂内有",(0,I.jsx)("span",{className:C,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},D=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,a=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),l=void 0!==s&&s,r=m.Z.useForm(),c=x()(r,1)[0],u=(0,v.useState)(1),h=x()(u,2),y=h[0],j=h[1],b=(0,v.useState)(!1),_=x()(b,2),w=_[0],Z=_[1],S=(0,v.useMemo)((function(){return 1===(null==a?void 0:a.total_num)&&1===(null==a?void 0:a.can_copy_num)}),[a]),P=(0,v.useMemo)((function(){var e;return null==a||null===(e=a.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[a]);return(0,I.jsx)(I.Fragment,{children:S?(0,I.jsxs)(f.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:N,width:682,confirmLoading:w,onCancel:n,onOk:p()(o()().mark((function e(){var n,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),n=y,l&&(s=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_copy:s[e.id]}):e}))),e.next=5,t(n);case 5:Z(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,I.jsx)("div",{className:k,style:{marginBottom:20},children:l?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(T,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),l?(0,I.jsx)(m.Z,{form:c,preserve:!1,children:null==P?void 0:P.map((function(e){return(0,I.jsxs)(v.Fragment,{children:[(0,I.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,I.jsx)(m.Z.Item,{name:e.id,initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{className:k,children:[(0,I.jsx)(g.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,I.jsx)(g.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,I.jsxs)(g.ZP.Group,{value:y,onChange:function(e){return j(e.target.value)},className:k,style:{marginBottom:30},children:[(0,I.jsx)(g.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,I.jsx)(g.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:k,style:{marginBottom:10},children:"* 说明:"}),(0,I.jsx)("div",{className:k,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,I.jsx)("div",{className:"".concat(k," ").concat(C),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,I.jsx)(f.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:w,title:"提示",width:682,onCancel:n,onOk:p()(o()().mark((function e(){var n,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),n=0,l&&(s=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_use:s[e.id]}):e}))),e.next=5,t(n);case 5:Z(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,I.jsxs)("div",{className:k,children:[(0,I.jsx)(T,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。",l?(0,I.jsxs)(m.Z,{form:c,preserve:!1,children:[(0,I.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==P?void 0:P.map((function(e){return(0,I.jsxs)(v.Fragment,{children:[(0,I.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,I.jsx)(m.Z.Item,{name:e.id,initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{className:k,children:[(0,I.jsx)(g.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,I.jsx)(g.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,I.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,I.jsx)("span",{className:C,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},A=function(){var e=(0,v.useState)(!1),n=x()(e,2),t=n[0],i=n[1],a=(0,v.useState)(),s=x()(a,2),r=s[0],c=s[1],d=function(){var e=p()(o()().mark((function e(n){var t,a,s,r,d;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,a=void 0!==t&&t,s=l()(n,P),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,S.Tr)(s);case 6:e.t0=e.sent;case 7:if(!("status"in(r=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!a){e.next=17;break}if(!(null==r||null===(d=r.course_data_list)||void 0===d?void 0:d.some((function(e){return e.is_show})))){e.next=16;break}return c(r),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",r.course_data_list||[]);case 17:if(0!==r.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return c(r),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return i(!1)},r,d]},E=function(e){var n=m.Z.useForm(),t=x()(n,1)[0],i=(0,v.useState)(!1),s=x()(i,2),l=s[0],r=s[1],c=e.onCancel,d=e.onOk,u=e.visible,h=e.inPaper,k=void 0!==h&&h,S=e.renderData,P=e.type,D=e.isMultipleCourse,A=void 0!==D&&D,E=e.position,O=(0,v.useMemo)((function(){return k?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Z,render:function(e,n){return(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,I.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Z,render:function(e,n){return(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})})}}]}),[k]),B=(0,v.useMemo)((function(){return k?[{title:"实践项目名称",dataIndex:"name",width:424,className:Z,align:"center",ellipsis:!0,render:function(e,n){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,I.jsx)(y.Z,{type:"hidden"})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,I.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:Z,ellipsis:!0,align:"center",render:function(e,n){return(0,I.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,I.jsxs)(g.ZP.Group,{children:[(0,I.jsx)(g.ZP,{value:1,children:"是"}),(0,I.jsx)(g.ZP,{value:0,children:"否"})]})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,I.jsx)(y.Z,{type:"hidden"})})]})}}]}),[k]);if(A){var z={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Z,render:function(e,n){return(0,I.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};O=[z].concat(a()(O)),B=[z].concat(a()(B))}var L=(0,v.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,a=e.studentNames,s=e.studentCount,l=e.inPaper,r=e.is_random,o=void 0!==r&&r,c=e.position,d=(void 0===c?"":c)||(l?"试卷":"课程");return(0,I.jsxs)("span",{children:[(0,I.jsx)(T,{studentNames:a,total:s}),"学习过",d,"中的",(0,I.jsx)("span",{className:C,children:n}),"个项目,",t>0&&i>0?(0,I.jsxs)(I.Fragment,{children:["其中",(0,I.jsx)("span",{className:C,children:t}),"个项目支持复制,",(0,I.jsx)("span",{className:C,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,I.jsxs)(I.Fragment,{children:["其中",(0,I.jsx)("span",{className:C,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,I.jsxs)(I.Fragment,{children:["其中",(0,I.jsx)("span",{className:C,children:i}),"个项目不支持复制"]}):void 0,"。请选择",o?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==S?void 0:S.repeat_shixun_num,copy:null==S?void 0:S.can_copy_num,canNotCopy:null==S?void 0:S.no_copy_num,studentNames:null==S?void 0:S.student_names,studentCount:null==S?void 0:S.student_count,is_random:null==S?void 0:S.is_random,inPaper:k,position:E})}),[S,k,E]);return(0,I.jsx)(f.Z,{title:"提示",centered:!0,open:u,confirmLoading:l,onOk:p()(o()().mark((function e(){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),n=t.getFieldsValue(),i=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,d(i);case 5:r(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:c,width:880,okText:"确认",className:N,destroyOnClose:!0,children:(0,I.jsxs)(m.Z,{form:t,preserve:!1,children:[(0,I.jsx)("div",{className:b,children:L}),(0,I.jsxs)("div",{style:{marginBottom:30},children:[(0,I.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,I.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,I.jsx)("div",{className:C,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==S?void 0:S.can_copy_num)>0&&(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:_,children:"支持复制的项目"}),(0,I.jsx)(j.Z,{columns:O,className:w,dataSource:null==S?void 0:S.can_copy_list,rowKey:"subject"===P?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==S?void 0:S.no_copy_num)>0&&(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:_,children:"不支持复制的项目"}),(0,I.jsx)(j.Z,{columns:B,className:w,dataSource:null==S?void 0:S.no_copy_list,rowKey:"subject"===P?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==S?void 0:S.no_use_list.length)>0&&(null==S?void 0:S.no_use_list.map((function(e){return(0,I.jsxs)("div",{children:[(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,I.jsx)(y.Z,{type:"hidden"})}),(0,I.jsx)(m.Z.Item,{name:["".concat("subject"===P?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,I.jsx)(y.Z,{type:"hidden"})})]},"subject"===P?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},O=function(e){return"multiple"===e.modalType?(0,I.jsx)(E,d()({},e)):(0,I.jsx)(D,d()({},e))}},1043:function(e,n,t){t.r(n),t.d(n,{default:function(){return Ue}});var i=t(79800),a=t.n(i),s=t(59301),l=t(18984),r=t(20834),o=t(7557),c=t.n(o),d=t(41498),u=t.n(d),p=t(39647),h=t.n(p),x=t(8591),v=t(43418),m=t(92832),f=t(6848),g=t(60324),y=t(71418),j=t(5112),b=t(81327),_=t(94001),k=t(43604),w=t(19842),Z=t(95237),N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n={"开始实战":"开始学习并完成实战任务","继续挑战":"继续完成后续学习和实战任务","查看实战":"查看我的实战光辉历史","模拟实战":"模拟完成实战任务","开启挑战":"开始学习并完成实战任务"};return n[e]||""},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:99,n=[0,3,1,-1];return!n.includes(e)},S={flex_box_center:"flex_box_center___C7BpK",flex_space_between:"flex_space_between___y5tEt",flex_box_vertical_center:"flex_box_vertical_center___BzS9v",flex_box_center_end:"flex_box_center_end___BlZGt",flex_box_column:"flex_box_column___XFVq1",banner:"banner___x1zhX",wrp:"wrp___HroXY",action:"action___Q9oWd",titleWrap:"titleWrap___LbsjD",deleteBtnStatus:"deleteBtnStatus___QiOcU",title:"title___nwoJQ",btn:"btn___tsJce",btn_type:"btn_type___pqyD9",actionBtns:"actionBtns___VEzTd",ratingTitle:"ratingTitle___sVN4G",fork:"fork___zCzx7",collect:"collect___JiCST",gold:"gold___f3DHn",handleOverflow:"handleOverflow___gVLUz",laboratory:"laboratory___KOOT4",name:"name___NM3vA",contentWrap:"contentWrap___IYvpn",contentLeftWrap:"contentLeftWrap___O88ow",user:"user___WJ43b",text:"text___Ip9I2",d1:"d1___iRJGr",d2:"d2___GxMoB",operationWrap:"operationWrap___OafFH",iconBtn:"iconBtn___SopdR",testBtn:"testBtn___FstX2",fullScreenLoading:"fullScreenLoading___QcDyh",customPopover:"customPopover___v_kEO",active:"active___B6kUu",splitInfo:"splitInfo___Iz1oG",splitInfo_t1:"splitInfo_t1___leyKR",splitInfo_t2:"splitInfo_t2___BwEYQ"},I=t(99379),P=t(82242),T=t.n(P),D=t(86859),A="wrap___E1Sbk",E="title___nUI57",O="radioWrap___OlPAG",B="radio___S9z0O",z="colorFF0000___xX56a",L="pagination___fvfxn",R=t(5259),V=t(37712),W=["shixunsDetail","globalSetting","loading","dispatch"],F=m.Z.Search,K=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t,i=e.shixunsDetail,r=(e.globalSetting,e.loading,e.dispatch),o=(h()(e,W),(0,l.useParams)()),d=(0,s.useState)(0),p=a()(d,2),m=p[0],f=p[1],g=(0,s.useState)([]),y=a()(g,2),b=y[0],_=y[1],k=(0,s.useState)(""),w=a()(k,2),Z=w[0],N=w[1],C=(0,s.useState)(),S=a()(C,2),I=S[0],P=S[1],K=(0,s.useState)([]),U=a()(K,2),M=(U[0],U[1]),J=(0,s.useState)(!1),q=a()(J,2),H=q[0],Q=q[1],G=(0,s.useState)(!1),X=a()(G,2),Y=X[0],$=X[1],ee=(0,s.useState)({id:null,page:1,limit:10}),ne=a()(ee,2),te=ne[0],ie=ne[1];(0,s.useEffect)((function(){"Banner-SendShixuns"===i.actionTabs.key&&(te.id=o.id,ie(te),ae(te))}),[i.actionTabs.key]);(null==i||null===(n=i.detail)||void 0===n?void 0:n.is_jupyter)||null==i||null===(t=i.detail)||void 0===t||t.is_jupyter_lab;var ae=function(){var e=u()(c()().mark((function e(n){var t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"shixunsDetail/searchUserCourses",payload:n});case 2:401===(t=e.sent).status?(r({type:"shixunsDetail/setActionTabs",payload:{}}),$(!1)):($(!0),f((null==t?void 0:t.courses_count)||0),_((null==t?void 0:t.course_list)||[]));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),se=(0,R.P)(),le=a()(se,4),re=le[0],oe=le[1],ce=le[2],de=le[3],ue=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=3;break}return Q(!0),e.abrupt("return");case 3:return t=null===(n=i.actionTabs.params)||void 0===n?void 0:n.id,$(!1),e.next=7,de({id:t,course_id:I,type:"shixun"});case 7:if(e.sent){e.next=12;break}return e.next=11,pe(0);case 11:he();case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=u()(c()().mark((function e(n){var t,a,s,l;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=null===(t=i.actionTabs.params)||void 0===t?void 0:t.id,s={id:a,identifier:o.id,courses:[{id:a,course_id:I,identifier:o.id,type:"normal",is_use:1,is_copy:n}]},e.next=4,r({type:"shixunsDetail/sendToCourse",payload:s});case 4:401!==(l=e.sent).status&&404!==l.status?(x.ZP.success(l.message),he(),oe(),window.location.href=l.first_category_url):(he(),oe());case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),he=function(){N(""),P(null),Q(!1),M([]),r({type:"shixunsDetail/setActionTabs",payload:{}}),$(!1)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"发送实训",open:Y,okText:"确定",cancelText:"取消",onOk:ue,onCancel:he,children:(0,V.jsxs)("div",{className:A,children:[(0,V.jsx)("div",{className:E,children:"选择的实训将会发送到指定课堂"}),(0,V.jsx)("div",{className:"mb10",children:(0,V.jsx)(F,{placeholder:"输入课堂名称的关键字进行搜索",value:Z,onChange:function(e){return N(e.target.value)},onSearch:function(e){N(e);var n=T()(T()({},te),{page:1,limit:10,search:encodeURI(e)});ie(n),ae(n)}})}),(0,V.jsx)("div",{className:O,children:(0,V.jsx)(j.ZP.Group,{value:I,onChange:function(e){P(e.target.value),Q(!1)},children:b.map((function(e,n){return(0,V.jsx)(j.ZP,{className:B,value:e.course_id,children:(0,V.jsx)("span",{title:e.name,children:e.name})},n)}))})}),H&&(0,V.jsx)("div",{className:z,children:"请选择你要发送的课堂"}),m>10&&(0,V.jsx)("div",{className:L,children:(0,V.jsx)(D.Z,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:null==te?void 0:te.page,pageSize:10,total:m,onChange:function(e){var n=T()(T()({},te),{page:e,limit:10,search:encodeURI(Z)});ie(n),ae(n)}})})]})}),(0,V.jsx)(R.Z,{visible:re,inPaper:!1,onOk:pe,onCancel:function(){he(),oe()},renderData:ce,modalType:"single",type:"shixun"})]})})),U="wrap___M6YVE",M="text___wxM5Y",J="color848282___PNF2A",q=["shixunsDetail","globalSetting","loading","dispatch"],H=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch),i=(h()(e,q),(0,s.useState)(!1)),l=a()(i,2),r=l[0],o=l[1],d=function(){var e=u()(c()().mark((function e(){var i,a,s,l;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),e.next=3,t({type:"shixunsDetail/cancelRelease",payload:{id:null===(i=n.actionTabs.params)||void 0===i?void 0:i.id}});case 3:a=e.sent,t({type:"shixunsDetail/setActionTabs",payload:{}}),o(!1),401!==a.status&&(x.ZP.success(a.message),t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(s=n.actionTabs.params)||void 0===s?void 0:s.id}}),t({type:"shixunsDetail/getRightData",payload:{id:null===(l=n.actionTabs.params)||void 0===l?void 0:l.id}}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-CancelRelease"===n.actionTabs.key,okText:"确定",cancelText:"取消",confirmLoading:r,onOk:d,okButtonProps:{loading:r},onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,V.jsxs)("div",{className:U,children:[(0,V.jsx)("p",{className:M,children:"是否确认撤销发布?"}),(0,V.jsx)("p",{className:"".concat(M," ").concat(J),children:"撤销发布后,学员将无法进行练习,若您新增关"}),(0,V.jsx)("p",{className:"".concat(M," ").concat(J),children:"卡,学员需要重新体验实训"})]})})})),Q=["shixunsDetail","globalSetting","loading","dispatch"],G=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t=e.shixunsDetail,i=(e.globalSetting,e.loading,e.dispatch),l=(h()(e,Q),(0,s.useState)(!1)),r=a()(l,2),o=r[0],d=r[1],p=function(){var e=u()(c()().mark((function e(){var n,a,s,l,r;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,i({type:"shixunsDetail/cancelPublic",payload:{id:null===(n=t.actionTabs.params)||void 0===n?void 0:n.id}});case 3:a=e.sent,i({type:"shixunsDetail/setActionTabs",payload:{}}),d(!1),0===a.status&&(i({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(s=t.actionTabs.params)||void 0===s?void 0:s.id}}),i({type:"shixunsDetail/getRightData",payload:{id:null===(l=t.actionTabs.params)||void 0===l?void 0:l.id}}),x.ZP.success(null!==(r=t.actionTabs)&&void 0!==r&&null!==(r=r.params)&&void 0!==r&&r.isCancelPublic?"撤销公开成功!":"撤销申请公开成功!"));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-CancelPublic"===t.actionTabs.key,okText:"确定",cancelText:"取消",confirmLoading:o,onOk:p,onCancel:function(){i({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,V.jsx)("div",{className:U,children:(0,V.jsxs)("p",{className:M,children:["是否确认撤销",null!==(n=t.actionTabs)&&void 0!==n&&null!==(n=n.params)&&void 0!==n&&n.isCancelPublic?"":"申请","公开?"]})})})})),X=["shixunsDetail","globalSetting","loading","dispatch"],Y=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch),i=(h()(e,X),(0,s.useState)(!1)),r=a()(i,2),o=r[0],d=r[1],p=(0,l.useParams)(),m=function(){var e=u()(c()().mark((function e(){var i,a,s,l,r,o,u,p,h,v,m,f,g,y,j;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d(!0),null!==(i=n.actionTabs.params)&&void 0!==i&&i.type){e.next=16;break}if(!(null!==(s=n.actionTabs.params)&&void 0!==s&&s.discipline_name||null!==(l=n.actionTabs.params)&&void 0!==l&&l.sub_discipline_name)){e.next=8;break}if(null!==(v=n.actionTabs.params)&&void 0!==v&&v.discipline_name&&null!==(m=n.actionTabs.params)&&void 0!==m&&m.sub_discipline_name){e.next=6;break}return x.ZP.info("请填写方向或课程"),e.abrupt("return");case 6:e.next=11;break;case 8:if(null!==(f=n.actionTabs.params)&&void 0!==f&&f.sub_discipline_id){e.next=11;break}return x.ZP.info("请选择方向或课程"),e.abrupt("return");case 11:return e.next=13,t({type:"shixunsDetail/applyPublic",payload:{id:null===(r=n.actionTabs.params)||void 0===r?void 0:r.id,user_customize:null===(o=n.actionTabs.params)||void 0===o||!o.sub_discipline_id,discipline_name:null===(u=n.actionTabs.params)||void 0===u?void 0:u.discipline_name,sub_discipline_name:null===(p=n.actionTabs.params)||void 0===p?void 0:p.sub_discipline_name,sub_discipline_id:null===(h=n.actionTabs.params)||void 0===h?void 0:h.sub_discipline_id}});case 13:a=e.sent,e.next=19;break;case 16:return e.next=18,t({type:"shixunsDetail/applyPublic",payload:{id:null===(g=n.actionTabs.params)||void 0===g?void 0:g.id,user_customize:!1,sub_discipline_id:""}});case 18:a=e.sent;case 19:t({type:"shixunsDetail/setActionTabs",payload:{}}),d(!1),1!==a.status&&0!==a.status||(t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(y=n.actionTabs.params)||void 0===y?void 0:y.id}}),t({type:"shixunsDetail/getRightData",payload:{id:null===(j=n.actionTabs.params)||void 0===j?void 0:j.id}}));case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-ApplyPublic"===n.actionTabs.key,okText:"确定申请",cancelText:"取消申请",confirmLoading:o,onOk:m,onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,V.jsxs)("div",{className:U,children:[(0,V.jsx)("p",{className:M,style:{textAlign:"left",fontSize:"14px"},children:"申请说明:公开实训需经过平台标准化审核,预计审核时间为1至2个工作日;若仅本人教学使用则无需申请公开,直接发送至课堂即可。"}),(0,V.jsxs)("p",{className:"".concat(M," mt5"),style:{color:"#f5a44a",textAlign:"left",fontSize:"14px"},children:["注意:审核通过后,实训将对平台所有人可见,并且实训将默认向平台已职业认证的教师公开关卡的参考答案和测试集,如需修改请在通过审核后前往",(0,V.jsx)("span",{style:{color:"#4169d0",cursor:"pointer"},onClick:function(){window.open("/shixuns/".concat(null==p?void 0:p.id,"/edit?tabId=setting"))},children:"设置页面"}),"调整。"]})]})})})),$=t(90613),ee=["shixunsDetail","globalSetting","loading","dispatch"],ne=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t,i=e.shixunsDetail,a=(e.globalSetting,e.loading,e.dispatch),s=(h()(e,ee),(null===(n=i.actionTabs)||void 0===n?void 0:n.params)||{}),l=s.tagPosition,r=void 0===l?[]:l,o=s.evaluationSetPosition,c=void 0===o?[]:o,d=s.publishBoxStatus,u=function(){return(0,V.jsx)("div",{className:U,children:(0,V.jsx)("p",{className:M,children:"发布申请已提交,请等待管理员的审核"})})},p=function(){return(0,V.jsxs)("div",{className:U,children:[(0,V.jsx)("p",{className:M,children:"发布申请已提交,请等待管理员的审核"}),(0,V.jsx)("p",{className:"".concat(M," font12"),children:"• 我们将在1-2个工作日内完成审核"})]})},x=function(){return(0,V.jsx)("div",{className:U,children:(0,V.jsxs)("p",{className:M,children:["第",c.join(","),"关尚未完成,无法申请发布"]})})},m=function(){return(0,V.jsx)("div",{className:U,children:(0,V.jsxs)("p",{className:M,children:["每一个关卡至少需要一个技能标签",(0,V.jsx)("br",{}),"第",r.join(","),"关尚未设置技能标签,请补充"]})})};return(0,V.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-ApplyRelease"===i.actionTabs.key,okText:"知道啦",onOk:function(){var e,n;0!==d&&1!==d||(a({type:"shixunsDetail/getShixunsDetail",payload:{id:null===(e=i.actionTabs.params)||void 0===e?void 0:e.id}}),a({type:"shixunsDetail/getRightData",payload:{id:null===(n=i.actionTabs.params)||void 0===n?void 0:n.id}}));a({type:"shixunsDetail/setActionTabs",payload:{}})},onCancel:function(){a({type:"shixunsDetail/setActionTabs",payload:{}})},children:(t={0:u,1:p,2:x,3:m},t[d]?t[d]():(0,V.jsx)("div",{className:U,children:(0,V.jsx)("p",{className:M,children:"尚未创建任务的实训,不能申请发布"})}))})})),te=t(30437),ie=t(19471),ae=t(3148),se=t(46952),le=t(80836),re=t(92890),oe=t(23691),ce=t(89330),de=t(37704),ue=t(93626),pe=t(32096),he=["shixunsDetail","user","globalSetting","loading","dispatch","problemset"],xe=(0,l.connect)((function(e){var n=e.shixunsDetail,t=e.user,i=e.loading,a=e.globalSetting,s=e.problemset;return{shixunsDetail:n,user:t,globalSetting:a,loading:i.models.index,problemset:s}}))((function(e){var n,t,i,r,o,d,p,P,T,D,A,E,O,B,z,L,R,W,F,U,M,J,q,Q,X,ee,xe,ve,me,fe,ge,ye,je,be,_e,ke,we,Ze,Ne,Ce,Se,Ie,Pe,Te,De,Ae,Ee,Oe,Be,ze,Le,Re,Ve,We,Fe,Ke,Ue,Me,Je,qe,He,Qe,Ge,Xe,Ye,$e,en,nn,tn,an,sn,ln,rn,on,cn,dn,un,pn,hn,xn,vn,mn=e.shixunsDetail,fn=e.user,gn=(e.globalSetting,e.loading,e.dispatch),yn=e.problemset,jn=(h()(e,he),(0,l.useLocation)()),bn=(0,s.useRef)(""),_n=(0,s.useState)(!1),kn=a()(_n,2),wn=kn[0],Zn=kn[1],Nn=((0,s.useRef)(null),(0,s.useState)(!0)),Cn=a()(Nn,2),Sn=Cn[0],In=Cn[1],Pn=(0,s.useState)(2),Tn=a()(Pn,2),Dn=Tn[0],An=Tn[1],En=(0,s.useState)(!1),On=a()(En,2),Bn=On[0],zn=On[1],Ln=(0,s.useState)(!1),Rn=a()(Ln,2),Vn=Rn[0],Wn=Rn[1],Fn=(0,s.useState)(),Kn=a()(Fn,2),Un=Kn[0],Mn=Kn[1],Jn=(0,s.useState)(),qn=a()(Jn,2),Hn=qn[0],Qn=qn[1],Gn=(0,s.useState)(),Xn=a()(Gn,2),Yn=Xn[0],$n=Xn[1],et=(0,s.useState)(!1),nt=a()(et,2),tt=nt[0],it=nt[1],at=(0,s.useState)(!1),st=a()(at,2),lt=(st[0],st[1]),rt=(0,s.useState)(2),ot=a()(rt,2),ct=ot[0],dt=ot[1],ut=[{level:"初级",color:"#44D7B6"},{level:"中级",color:"#F7B500"},{level:"中高级",color:"#FF8C29"},{level:"高级",color:"#E53333"}],pt=[{name:"未发布",connect:"当前课程正在开发中,不可被他人使用",bkcolor:"#D8D8D8",txcolor:"#FFFFFF"},{name:"静默发布",connect:"当前课程已发布,可以通过分享链接使用,但不能被开放检索",bkcolor:"#7B92C7",txcolor:"#FFFFFF"},{name:"公开审核",connect:"当前课程已发布,申请纳入开放检索,目前平台正在审核中",bkcolor:"#F9AF7E",txcolor:"#A44C11"},{name:"公开发布",connect:"当前课程已发布,且可被开放检索",bkcolor:"#FFE9C1",txcolor:"#A45204"}];(0,s.useEffect)((function(){var e;bn.current=null===(e=jn.pathname.split("/"))||void 0===e?void 0:e[2]}),[jn.pathname]),(0,s.useEffect)((function(){gn({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),setTimeout((function(){In(!1)}),5e3)}),[]);var ht=null===(n=fn.userInfo)||void 0===n||null===(n=n.shixun)||void 0===n?void 0:n.own,xt=null===(t=fn.userInfo)||void 0===t||null===(t=t.shixun)||void 0===t?void 0:t.editable,vt=null==mn||null===(i=mn.challenges)||void 0===i||null===(i=i.challenge_list)||void 0===i?void 0:i.length,mt=!(null!==(r=fn.userInfo)&&void 0!==r&&null!==(r=r.shixun)&&void 0!==r&&r.can_managed),ft=function(){var e=u()(c()().mark((function e(){var n,t,i,a;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(lt(!0),null===(n=mn.detail)||void 0===n||!n.windows_vnc||(0,ce.ag)()){e.next=3;break}return e.abrupt("return",!1);case 3:if(null===(t=mn.detail)||void 0===t||!t.can_fork){e.next=6;break}return gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 6:return e.next=8,(0,oe.ZP)("/api/shixuns/".concat(null==bn?void 0:bn.current,"/copy.json"),{method:"post",body:{}});case 8:0===(i=e.sent).status?(lt(!1),window.location.href="/shixuns/".concat(null===(a=i.data)||void 0===a?void 0:a.shixun,"/challenges"),x.ZP.success("复制成功"),zn(!1)):lt(!1),-3===i.status&&(lt(!1),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Per",params:{message:i.message}}}));case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gt=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,de.L9)(["实践项目","详情页","取消收藏"]),e.next=3,gn({type:"shixunsDetail/cancelCollect",payload:{container_id:null===(n=mn.detail)||void 0===n?void 0:n.id,container_type:"Shixun"}});case 3:0===(t=e.sent).status&&(gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}}),gn({type:"shixunsDetail/getRightData",payload:{id:bn.current}}),x.ZP.success(t.message));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),yt=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,de.L9)(["实践项目","详情页","收藏"]),e.next=3,gn({type:"shixunsDetail/collect",payload:{container_id:null===(n=mn.detail)||void 0===n?void 0:n.id,container_type:"Shixun"}});case 3:0===(t=e.sent).status&&(gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}}),gn({type:"shixunsDetail/getRightData",payload:{id:bn.current}}),x.ZP.success(t.message));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),jt=function(e){mt?x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"):((0,de.L9)(["实践项目","详情页","撤销公开"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-CancelPublic",params:{id:bn.current,isCancelPublic:e}}}))},bt=function(){var e=u()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!mt){e.next=3;break}return x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"),e.abrupt("return");case 3:return(0,de.L9)(["实践项目","详情页","申请发布"]),e.next=6,gn({type:"shixunsDetail/release",payload:{id:bn.current}});case 6:if(n=e.sent,gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}}),gn({type:"shixunsDetail/getRightData",payload:{id:bn.current}}),t=(null==n?void 0:n.evaluation_set_position)||[],0!==n.status){e.next=13;break}return v.Z.info({width:530,title:"提示",centered:!0,content:(0,V.jsx)("div",{className:"tc font16",children:"实训发布后即可发送课堂使用"}),okText:"知道啦"}),e.abrupt("return");case 13:gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-ApplyRelease",params:{tagPosition:null==n?void 0:n.tag_position,evaluationSetPosition:t,publishBoxStatus:n.status}}});case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_t=function e(n){var t,i;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),v.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,V.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=u()(c()().mark((function t(){var i,a;return c()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ie.$Q)({url:n});case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:return x.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,ie.Ir)({id:i.shixun_identifier});case 8:if(null==(a=t.sent)||!a.game_identifier){t.next=12;break}return null===l.history||void 0===l.history||l.history.push("/tasks/".concat(a.game_identifier)),t.abrupt("return");case 12:2===(null==a?void 0:a.status)?e(null==a?void 0:a.message):3===(null==a?void 0:a.status)&&kt(null==a?void 0:a.message);case 13:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},kt=function(e){v.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,V.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},wt=function(e){return e?e>=1e3?e=e/1e3+"K":e:0};(0,s.useEffect)((function(){var e;At(null===(e=mn.detail)||void 0===e?void 0:e.mark_content)}),[null===(o=mn.detail)||void 0===o?void 0:o.mark_content]);var Zt,Nt,Ct,St,It,Pt=(0,s.useState)(""),Tt=a()(Pt,2),Dt=Tt[0],At=Tt[1],Et=function(){var e=u()(c()().mark((function e(n){var t,i,a;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.ZP)("/api/shixuns/".concat(null==bn?void 0:bn.current,"/mark.json"),{method:"post",body:{mark_status:4===n?null===(t=mn.detail)||void 0===t?void 0:t.mark_status:(null===(i=mn.detail)||void 0===i?void 0:i.mark_status)===n?0:n,mark_content:Dt}});case 2:0===(null==(a=e.sent)?void 0:a.status)&&gn({type:"shixunsDetail/getShixunsDetail",payload:{id:bn.current}});case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,V.jsxs)("section",{children:[(0,V.jsx)("aside",{className:S.banner,style:null!==(d=mn.detail)&&void 0!==d&&d.banner_image?{backgroundImage:"url(".concat(null===(p=mn.detail)||void 0===p?void 0:p.banner_image,")"),paddingTop:null!==(P=mn.detail)&&void 0!==P&&P.banner_image_b?0:50}:{},children:(0,V.jsxs)("aside",{className:S.wrp,style:null!==(T=mn.detail)&&void 0!==T&&T.banner_image_b?{backgroundImage:"url(".concat(null===(D=mn.detail)||void 0===D?void 0:D.banner_image_b,")")}:{},children:[(0,V.jsxs)("div",{className:S.action,children:[(0,V.jsxs)("div",{className:S.titleWrap,children:[3===(null===(A=mn.detail)||void 0===A?void 0:A.shixun_status)&&(0,V.jsx)(f.Z,{title:"已关闭",children:(0,V.jsx)("i",{className:"iconfont icon-yiguanbi3 mr10",style:{color:"#f7b500"}})}),-1===(null===(E=mn.detail)||void 0===E?void 0:E.shixun_status)&&(0,V.jsx)("span",{className:S.deleteBtnStatus,children:"已删除"}),(0,V.jsx)(f.Z,{title:(null===(O=mn.detail)||void 0===O?void 0:O.name)||"实践项目名称-未填写",children:(0,V.jsx)("span",{className:S.title,children:(null===(B=mn.detail)||void 0===B?void 0:B.name)||"实践项目名称-未填写"})}),(0,V.jsx)("div",{className:S.btn,style:{backgroundColor:(It=null===(St=mn.detail)||void 0===St?void 0:St.diffcult,It?ut.find((function(e){return e.level===It})).color:"--")},children:null===(z=mn.detail)||void 0===z?void 0:z.diffcult}),(null==mn||null===(L=mn.detail)||void 0===L||null===(L=L.shixun_marks)||void 0===L?void 0:L.length)>0&&(1==(null==fn||null===(R=fn.userInfo)||void 0===R?void 0:R.role)||2==(null==fn||null===(W=fn.userInfo)||void 0===W?void 0:W.role))&&(null==mn||null===(F=mn.detail)||void 0===F?void 0:F.shixun_marks.map((function(e,n){return(0,V.jsx)(f.Z,{title:"".concat(e),children:(0,V.jsx)("div",{className:S.btn_type,style:{backgroundColor:"#43a2ff"},children:e})},n)}))),(null===(U=mn.detail)||void 0===U?void 0:U.identity)<5&&(0,V.jsx)(f.Z,{title:null===(M=pt[(null===(J=mn.detail)||void 0===J?void 0:J.shixun_tag_num)-1])||void 0===M?void 0:M.connect,children:(0,V.jsx)("div",{className:S.btn,style:{backgroundColor:null===(q=pt[(null===(Q=mn.detail)||void 0===Q?void 0:Q.shixun_tag_num)-1])||void 0===q?void 0:q.bkcolor,color:null===(X=pt[(null===(ee=mn.detail)||void 0===ee?void 0:ee.shixun_tag_num)-1])||void 0===X?void 0:X.txcolor},children:null===(xe=pt[(null===(ve=mn.detail)||void 0===ve?void 0:ve.shixun_tag_num)-1])||void 0===xe?void 0:xe.name})}),(null===(me=mn.detail)||void 0===me?void 0:me.fork_from)&&(0,V.jsx)(f.Z,{title:"当前为复制实训,点击标识可跳转至原实训",children:(0,V.jsx)("a",{href:"/shixuns/".concat(null===(fe=mn.detail)||void 0===fe||null===(fe=fe.fork_from)||void 0===fe?void 0:fe.fork_identifier,"/challenges"),target:"_blank",className:"iconfont icon-fork",style:{fontSize:21}})}),(0,ce.Ny)()&&(0,V.jsx)(g.Z,{trigger:"click",content:(0,V.jsxs)("div",{className:S.customPopover,children:[(0,V.jsxs)("p",{children:[(0,V.jsx)("b",{children:"标签"}),(0,V.jsx)("span",{children:"标签用于管理,仅管理员/运营人员可见"})]}),(0,V.jsxs)("ul",{children:[(0,V.jsxs)("li",{onClick:function(){return Et(1)},className:1===(null===(Zt=mn.detail)||void 0===Zt?void 0:Zt.mark_status)?S.active:"",children:["正常 ",(0,V.jsx)("i",{className:"iconfont icon-duigou1"})]}),(0,V.jsxs)("li",{onClick:function(){return Et(2)},className:2===(null===(Nt=mn.detail)||void 0===Nt?void 0:Nt.mark_status)?S.active:"",children:["需完善 ",(0,V.jsx)("i",{className:"iconfont icon-duigou1"})]}),(0,V.jsxs)("li",{onClick:function(){return Et(3)},className:3===(null===(Ct=mn.detail)||void 0===Ct?void 0:Ct.mark_status)?S.active:"",children:["无法使用 ",(0,V.jsx)("i",{className:"iconfont icon-duigou1"})]})]}),(0,V.jsxs)("p",{style:{margin:"16px 0"},children:[(0,V.jsx)("b",{children:"备注"}),(0,V.jsx)("span",{children:"字数限制在140字以内"})]}),(0,V.jsx)(m.Z.TextArea,{value:Dt,onChange:function(e){return At(e.target.value)},onBlur:function(e){return Et(4)},rows:4,maxLength:140})]}),children:(0,V.jsx)(ae.Z,{style:{color:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n="#0152d9";return 1===e&&(n="#2FA34F"),2===e&&(n="#FF8C29"),3===e&&(n="#E53333"),n}(null===(ge=mn.detail)||void 0===ge?void 0:ge.mark_status)},className:"current font18 ml5 c-light-primary",rotate:180})})]}),(0,V.jsxs)("div",{className:S.actionBtns,children:[(0,V.jsxs)("div",{className:S.gold,children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("i",{className:"iconfont icon-jinbi1 font16"}),(0,V.jsx)("span",{children:"金币"})]}),(0,V.jsx)("div",{className:S.handleOverflow,children:null==mn||null===(ye=mn.detail)||void 0===ye?void 0:ye.gold})]}),!(null!==(je=mn.detail)&&void 0!==je&&je.is_jupyter)&&(0,V.jsxs)("div",{className:S.gold,children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("i",{className:"iconfont icon-pingfen2 font15"}),(0,V.jsx)("span",{children:"评分"})]}),(0,V.jsx)("div",{className:S.handleOverflow,children:null===(be=mn.detail)||void 0===be?void 0:be.score_info})]}),((null===(_e=mn.detail)||void 0===_e?void 0:_e.identity)<8||(null===(ke=fn.userInfo)||void 0===ke?void 0:ke.is_shixun_marker))&&-1!==(null===(we=mn.detail)||void 0===we?void 0:we.shixun_status)&&0!==(null===(Ze=mn.detail)||void 0===Ze?void 0:Ze.shixun_status)&&(null===(Ne=mn.detail)||void 0===Ne?void 0:Ne.can_copy)&&(0,V.jsxs)("div",{className:S.fork,children:[(0,V.jsx)(f.Z,{open:(null===(Ce=mn.detail)||void 0===Ce||!Ce.is_jupyter)&&Sn,title:(0,V.jsxs)("span",{style:{color:"#000"},children:["新增关卡合并",vt>1&&"/拆分","功能"]}),color:"#fff",children:(0,V.jsx)(f.Z,{title:!(0,ce.ag)()&&(null===(Se=mn.detail)||void 0===Se?void 0:Se.windows_vnc)&&"Windows镜像不支持复制",children:(0,V.jsxs)("div",{onClick:function(){},children:[(0,V.jsx)("i",{className:"iconfont icon-Fock font13"}),(0,V.jsxs)("span",{children:[(0,V.jsx)("span",{onClick:function(){var e,n;if(null!==(e=mn.detail)&&void 0!==e&&e.is_jupyter){var t;if(null!==(t=mn.detail)&&void 0!==t&&t.need_authorize)return void(0,te.rX)(!1);(0,de.L9)(["实践项目","详情页","复制实训"]),ft()}else{var i;null!=fn&&null!==(i=fn.userInfo)&&void 0!==i&&i.professional_certification?(zn(!0),An(1)):v.Z.confirm({centered:!0,title:"提示",icon:null,content:"为了进行复制/合并/拆分实践项目,您必须先完成职业认证。请问是否前往职业认证?",okText:"确认",cancelText:"取消",onOk:(n=u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.history.push("/account/certification");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})}},children:"复制"}),!(null!==(Ie=mn.detail)&&void 0!==Ie&&Ie.is_jupyter)&&!(null!==(Pe=mn.detail)&&void 0!==Pe&&Pe.is_jupyter_lab)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"ml5 mr5",children:"/"}),(0,V.jsx)("span",{onClick:function(){var e,n;null!=fn&&null!==(e=fn.userInfo)&&void 0!==e&&e.professional_certification?(zn(!0),An(2)):v.Z.confirm({centered:!0,title:"提示",icon:null,content:"为了进行复制/合并/拆分实践项目,您必须先完成职业认证。请问是否前往职业认证?",okText:"确认",cancelText:"取消",onOk:(n=u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.history.push("/account/certification");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"合并"})]}),!(null!==(Te=mn.detail)&&void 0!==Te&&Te.is_jupyter)&&!(null!==(De=mn.detail)&&void 0!==De&&De.is_jupyter_lab)&&vt>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"ml5 mr5",children:"/"}),(0,V.jsx)("span",{onClick:function(){var e,n;null!=fn&&null!==(e=fn.userInfo)&&void 0!==e&&e.professional_certification?(zn(!0),An(3),dt(2)):v.Z.confirm({centered:!0,title:"提示",icon:null,content:"为了进行复制/合并/拆分实践项目,您必须先完成职业认证。请问是否前往职业认证?",okText:"确认",cancelText:"取消",onOk:(n=u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.history.push("/account/certification");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})},children:"拆分"})]})]})]})})}),ht&&(0,ce.JL)()&&!(null===(Ae=mn.detail)||void 0===Ae||!Ae.fork_num)&&(0,V.jsx)("div",{className:S.handleOverflow,onClick:function(){return l.history.push("/shixuns/".concat(bn.current,"/fork_list"))},children:wt(null===(Ee=mn.detail)||void 0===Ee?void 0:Ee.fork_num)})]}),(0,V.jsxs)("div",{className:S.collect,children:[(0,V.jsx)("div",{children:null!==(Oe=mn.detail)&&void 0!==Oe&&Oe.is_collect?(0,V.jsxs)("span",{onClick:gt,children:[(0,V.jsx)("i",{className:"iconfont icon-shoucangerji font13"}),(0,V.jsx)("span",{children:"取消收藏"})]}):(0,V.jsxs)("span",{onClick:yt,children:[(0,V.jsx)("i",{className:"iconfont icon-shoucangyiji font14"}),(0,V.jsx)("span",{children:"收藏"})]})}),(0,V.jsx)("div",{className:S.handleOverflow,children:wt(null===(Be=mn.detail)||void 0===Be?void 0:Be.collection_count)})]})]})]}),(null===(ze=mn.detail)||void 0===ze?void 0:ze.laboratory_name)&&(0,ce.Ny)()&&(0,V.jsxs)("div",{className:S.laboratory,children:[(0,V.jsx)("span",{children:"云上实验室:"}),(0,V.jsx)(f.Z,{title:null===(Le=mn.detail)||void 0===Le?void 0:Le.laboratory_name,children:(0,V.jsx)("a",{href:"https://".concat(null===(Re=mn.detail)||void 0===Re?void 0:Re.laboratory_url),target:"_blank",className:S.name,children:null===(Ve=mn.detail)||void 0===Ve?void 0:Ve.laboratory_name})})]}),(0,V.jsxs)("div",{className:S.contentWrap,children:[(0,V.jsxs)("div",{className:S.contentLeftWrap,children:[(0,V.jsxs)("div",{className:S.user,children:[(0,V.jsx)("a",{href:null===(We=mn.rightData)||void 0===We||null===(We=We.creator)||void 0===We?void 0:We.user_url,target:"_blank",className:S.img,children:(0,V.jsx)("img",{src:"".concat(re.Z.IMG_SERVER,"/").concat((null===(Fe=mn.rightData)||void 0===Fe?void 0:Fe.creator)&&"images/".concat(null===(Ke=mn.rightData)||void 0===Ke?void 0:Ke.creator.image_url,"?1532489442")),alt:"头像"})}),(0,V.jsxs)("div",{className:S.text,children:[(0,V.jsx)(f.Z,{title:null===(Ue=mn.rightData)||void 0===Ue||null===(Ue=Ue.creator)||void 0===Ue?void 0:Ue.name,children:(0,V.jsx)("a",{href:null===(Me=mn.rightData)||void 0===Me||null===(Me=Me.creator)||void 0===Me?void 0:Me.user_url,target:"_blank",className:S.d1,children:null===(Je=mn.rightData)||void 0===Je||null===(Je=Je.creator)||void 0===Je?void 0:Je.name})}),(0,V.jsx)(f.Z,{title:"***"===(null===(qe=mn.rightData)||void 0===qe||null===(qe=qe.creator)||void 0===qe?void 0:qe.school)?"本单位不对外公开":null===(He=mn.rightData)||void 0===He||null===(He=He.creator)||void 0===He?void 0:He.school,children:(0,V.jsx)("div",{className:S.d2,children:null===(Qe=mn.rightData)||void 0===Qe||null===(Qe=Qe.creator)||void 0===Qe?void 0:Qe.school})})]})]}),(0,V.jsx)("div",{children:!(null===(Ge=mn.detail)||void 0===Ge||!Ge.total_stu_num)&&(0,V.jsxs)("div",{className:S.ratingTitle,children:[(0,V.jsx)("span",{children:"学习人次 "}),(0,V.jsx)("span",{children:null===(Xe=mn.detail)||void 0===Xe?void 0:Xe.total_stu_num})]})})]}),(0,V.jsxs)("div",{className:S.operationWrap,children:[C(null===(Ye=mn.detail)||void 0===Ye?void 0:Ye.shixun_status)&&"学生"!==(null===($e=fn.userInfo)||void 0===$e?void 0:$e.user_identity)&&(0,V.jsx)(f.Z,{placement:"bottom",title:"以课堂实验的形式发送到我的课堂",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){var e;(0,de.L9)(["实践项目","详情页","发送至课堂"]),null!==(e=mn.detail)&&void 0!==e&&e.need_authorize?(0,te.rX)(!1):(0,te.tJ)(gn)&&gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-SendShixuns",params:{id:bn.current}}})},children:[(0,V.jsx)("i",{className:"iconfont icon-fasongzhi1 font20"}),(0,V.jsx)("span",{children:"发送至"})]})}),2===(null===(en=mn.detail)||void 0===en?void 0:en.shixun_status)&&0===(null===(nn=mn.detail)||void 0===nn?void 0:nn.public)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"撤销发布后,学员将无法进行练习",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){mt?x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"):((0,de.L9)(["实践项目","详情页","撤销发布"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-CancelRelease",params:{id:bn.current}}}))},children:[(0,V.jsx)("i",{className:"iconfont icon-chexiaofabu2"}),(0,V.jsx)("span",{children:"撤销发布"})]})}),0===(null===(tn=mn.detail)||void 0===tn?void 0:tn.shixun_status)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"发布后,可以使用到自己的课堂和课程",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:bt,children:[(0,V.jsx)("i",{className:"iconfont icon-fabu3"}),(0,V.jsx)("span",{children:"发布"})]})}),2===(null===(an=mn.detail)||void 0===an?void 0:an.shixun_status)&&1===(null===(sn=mn.detail)||void 0===sn?void 0:sn.public)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"撤销后,仅可以使用到自己的课堂和课程",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){return jt(!1)},children:[(0,V.jsx)("i",{className:"iconfont icon-chexiaoshenqinggongkai font18"}),(0,V.jsx)("span",{children:"撤销申请公开"})]})}),(null===(ln=fn.userInfo)||void 0===ln?void 0:ln.admin)&&2===(null===(rn=mn.detail)||void 0===rn?void 0:rn.public)&&(0,V.jsx)(f.Z,{placement:"bottom",title:"撤销后,仅可以使用到自己的课堂和课程",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){return jt(!0)},children:[(0,V.jsx)("i",{className:"iconfont icon-chexiaoshenqinggongkai font18"}),(0,V.jsx)("span",{children:"撤销公开"})]})}),2===(null===(on=mn.detail)||void 0===on?void 0:on.shixun_status)&&0===(null===(cn=mn.detail)||void 0===cn?void 0:cn.public)&&xt&&(0,V.jsx)(f.Z,{placement:"bottom",title:"审核通过后,平台用户可以查看实训",children:(0,V.jsxs)("div",{className:S.iconBtn,onClick:function(){var e,n;mt?x.ZP.warning("非实训合作者不可操作,请与实训负责人联系,获得合作者身份后进行相关操作。"):null!==(e=mn.detail)&&void 0!==e&&e.has_sub_discipline?((0,de.L9)(["实践项目","详情页","申请公开"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-ApplyPublic",params:{id:bn.current,type:null===(n=mn.detail)||void 0===n?void 0:n.has_sub_discipline}}})):Wn(!0)},children:[(0,V.jsx)("i",{className:"iconfont icon-shenqinggongkai1 font18"}),(0,V.jsx)("span",{children:"申请公开"})]})}),-1!==(null===(dn=mn.detail)||void 0===dn?void 0:dn.shixun_status)&&(0,V.jsx)(f.Z,{placement:"bottom",title:null!==(un=mn.detail)&&void 0!==un&&un.need_authorize?"需授权":N(null===(pn=mn.detail)||void 0===pn||null===(pn=pn.task_operation)||void 0===pn?void 0:pn[0]),children:(0,V.jsxs)(pe.Z,{onClick:u()(c()().mark((function e(){var n,t,i,a;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=mn.detail)||void 0===n||!n.need_authorize){e.next=4;break}return(0,te.rX)(!1),(0,de.L9)(["实践项目","详情页","需授权"]),e.abrupt("return");case 4:return(0,de.L9)(["实践项目","详情页","开启挑战"]),e.next=7,(0,ue._)("".concat(null===(t=mn.detail)||void 0===t?void 0:t.id),{is_jupyter:null===(i=mn.detail)||void 0===i?void 0:i.is_jupyter,is_jupyter_lab:null===(a=mn.detail)||void 0===a?void 0:a.is_jupyter_lab});case 7:e.sent||(s=void 0,l=void 0,r=void 0,(0,te.tJ)(gn,!0)&&((null===(s=mn.detail)||void 0===s?void 0:s.shixun_status)>1&&Zn(!0),null!==(l=mn.detail)&&void 0!==l&&l.is_jupyter||null!==(r=mn.detail)&&void 0!==r&&r.is_jupyter_lab?gn({type:"shixunsDetail/execJupyter",payload:{id:bn.current}}).then((function(e){Zn(!1),null!=e&&e.identifier&&(window.location.href="/tasks/".concat(e.identifier,"/jupyter"))})):gn({type:"shixunsDetail/execShixun",payload:{id:bn.current}}).then(function(){var e=u()(c()().mark((function e(n){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Zn(!1),null==n||!n.game_identifier){e.next=4;break}return window.location.href="/tasks/".concat(n.game_identifier),e.abrupt("return");case 4:2===(null==n?void 0:n.status)?_t(null==n?void 0:n.message):3===(null==n?void 0:n.status)&&kt(null==n?void 0:n.message);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())));case 9:case"end":return e.stop()}var s,l,r}),e)}))),className:S.testBtn,type:"primary",children:[(0,V.jsx)("i",{className:"iconfont icon-jixutiaozhan mr10 font14"}),null!==(hn=mn.detail)&&void 0!==hn&&hn.need_authorize?"需授权":(null===(xn=mn.detail)||void 0===xn?void 0:xn.shixun_status)>1?null===(vn=mn.detail)||void 0===vn||null===(vn=vn.task_operation)||void 0===vn?void 0:vn[0]:"模拟实战"]})})]})]})]})}),wn&&(0,V.jsx)("div",{className:S.fullScreenLoading,children:(0,V.jsx)(y.Z,{size:"middle"})}),(0,V.jsx)(I.Z,{}),(0,V.jsx)(K,{}),(0,V.jsx)(H,{}),(0,V.jsx)(G,{}),(0,V.jsx)($.Z,{}),(0,V.jsx)(Y,{}),(0,V.jsx)(ne,{}),(0,V.jsx)(v.Z,{title:"选择复制/合并".concat(vt>1?"/拆分":"","方式"),open:Bn,width:450,onCancel:function(){return zn(!1)},onOk:function(){if(1==Dn){var e;if(null!==(e=mn.detail)&&void 0!==e&&e.need_authorize)return void(0,te.rX)(!1);(0,de.L9)(["实践项目","详情页","复制实训"]),ft()}else if(2==Dn)window.location.href="/shixuns/".concat(bn.current,"/Merge");else if(3==Dn){if(ct<1)return void x.ZP.error("请输入拆分数量");window.location.href="/shixuns/".concat(bn.current,"/Split?splitCount=").concat(vt,"&newSplitCount=").concat(ct)}},style:{top:300},children:(0,V.jsxs)("div",{children:[(0,V.jsx)(j.ZP.Group,{defaultValue:Dn,value:Dn,onChange:function(e){3==e.target.value&&dt(2),An(e.target.value)},children:(0,V.jsxs)(b.Z,{direction:"vertical",children:[(0,V.jsxs)(j.ZP,{value:1,children:[(0,V.jsx)("span",{style:{color:"#000",marginRight:10},children:"复制"}),(0,V.jsx)("span",{style:{color:"#9096A3"},children:"将当前实践复制并生成全新项目"})]}),(0,V.jsxs)(j.ZP,{value:2,className:"mt10",children:[(0,V.jsx)("span",{style:{color:"#000",marginRight:10},children:"合并"}),(0,V.jsx)("span",{style:{color:"#9096A3"},children:"将当前关卡合并至目标实践项目"})]}),vt>1&&(0,V.jsxs)(j.ZP,{value:3,className:"mt10",children:[(0,V.jsx)("span",{style:{color:"000",marginRight:10},children:"拆分"}),(0,V.jsx)("span",{style:{color:"#9096A3"},children:"将当前实践项目复制后再拆分成指定数量的全新项目"})]})]})}),vt>1&&3==Dn&&(0,V.jsxs)("div",{className:S.splitInfo,children:[(0,V.jsxs)("div",{className:"mr40",children:[(0,V.jsx)("span",{className:S.splitInfo_t1,children:"关卡总数"}),vt]}),(0,V.jsxs)("div",{children:[(0,V.jsx)("span",{className:S.splitInfo_t2,children:"拆分项目数量"}),(0,V.jsx)(_.Z,{style:{width:150},value:ct,min:1,max:vt,placeholder:"请输入整数",onChange:function(e){/^\d*$/.test(e)&&dt(e)}})]})]})]})}),(0,V.jsx)(v.Z,{title:"方向&课程",open:Vn,centered:!0,width:600,onCancel:function(){Wn(!1)},onOk:u()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,de.L9)(["实践项目","详情页","申请公开"]),gn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-ApplyPublic",params:{id:bn.current,discipline_name:Hn,sub_discipline_name:Un,sub_discipline_id:Yn,type:null===(n=mn.detail)||void 0===n?void 0:n.has_sub_discipline}}}),Wn(!1);case 3:case"end":return e.stop()}}),e)}))),children:(0,V.jsxs)("div",{style:{padding:"24px"},children:[(0,V.jsx)("p",{children:"需填写实践项目的方向&课程后,才能申请公开"}),(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,V.jsx)(k.Z,{style:{textAlign:"right",width:"82px"},children:(0,V.jsx)("label",{children:"方向&课程:"})}),(0,V.jsx)(k.Z,{span:12,children:(0,V.jsx)(w.Z,{placeholder:"请选择...",allowClear:!1,onChange:function(e,n){$n(e[1])},style:{width:"422px"},options:yn.courseOptions})})]}),(0,V.jsx)(Z.Z,{style:{display:"flex",marginTop:"5px"},children:(0,V.jsxs)(k.Z,{onClick:function(){it(!tt)},children:[(0,V.jsx)("a",{style:{marginLeft:"81px",marginRight:"271px"},children:"自定义方向&课程"}),(0,V.jsxs)("span",{style:{color:tt?"#999999":"#666666",display:"inline-flex",alignItems:"center"},onClick:function(){},children:[tt?"收起":"展开",tt?(0,V.jsx)(le.Z,{}):(0,V.jsx)(se.Z,{})]})]})}),tt&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("div",{style:{display:"flex",marginTop:"15px"},children:[(0,V.jsx)(k.Z,{style:{textAlign:"right",width:"82px"},children:(0,V.jsx)("label",{children:"方向:"})}),(0,V.jsx)(k.Z,{span:12,children:(0,V.jsx)(m.Z,{value:Hn,onChange:function(e){Qn(e.target.value)}})})]}),(0,V.jsxs)("div",{style:{display:"flex",marginTop:"15px"},children:[(0,V.jsx)(k.Z,{style:{textAlign:"right",width:"82px"},children:(0,V.jsx)("label",{children:"课程:"})}),(0,V.jsx)(k.Z,{span:12,children:(0,V.jsx)(m.Z,{value:Un,onChange:function(e){Mn(e.target.value)}})})]})]})]})})]})})),ve="firstEntryModal___KL7Hx",me="box___h_ENw",fe="tips___L_prp",ge=function(){var e=(0,s.useState)(0),n=a()(e,2),t=n[0],i=n[1],l=(0,s.useState)(0),r=a()(l,2),o=r[0],c=r[1],d=(0,s.useRef)();(0,s.useEffect)((function(){if(!localStorage.getItem("setPracticalFirstEntry")){document.body.setAttribute("style","height: 100vh; overflow: hidden");var e=document.getElementById("settingEntry");if(null!=e&&e.style){i(e.offsetLeft),c(e.offsetTop+18),d.current.style.display="block",e.style.opacity="0";var n=String((new Date).getTime());localStorage.setItem("setPracticalFirstEntry",n)}setTimeout((function(){u()}),3e3)}}),[]);var u=function(){d.current.style.display="none",document.body.removeAttribute("style");var e=document.getElementById("settingEntry");null!=e&&e.style&&(e.style.opacity="1")};return(0,V.jsx)("div",{className:ve,ref:d,onClick:function(){u()},children:(0,V.jsxs)("div",{className:me,style:{left:t,top:o},onClick:function(e){e.stopPropagation(),e.preventDefault()},children:[(0,V.jsxs)("div",{children:[(0,V.jsx)("i",{className:"iconfont icon-shijianshezhi"})," ",(0,V.jsx)("span",{children:"设置"})]}),(0,V.jsxs)("div",{className:fe,children:["可编辑实践项目的基本信息、代码仓库、任务关卡、实验环境等。",(0,V.jsx)("i",{onClick:u,className:"iconfont icon-guanbi1"})]})]})})},ye="bg___UgpNC",je="tabs___BSqmb",be="wrap___NcfkY",_e="check___XPhyn",ke="activeCheck___gPjei",we=t(43428),Ze=t(93948),Ne=t(36381),Ce="Header___XzbiS",Se="doubtIcon___itWIF",Ie="body___RUXn8",Pe="Collapse___qW89G",Te="Table___s0Yl7",De="Row___UV8EM",Ae="content___kHQti",Ee="title___Q6WVx",Oe="time___gdgDO",Be="Retest___PLJVW",ze="progress___r1CzM",Le="num___t0feJ",Re="dot___XiDv_",Ve="data:image/png;base64,iV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0ylgkf8/mSPN9AnhbSm4TudWTZMN9hky6PMfwLZOwpzvhcy0lYT/HN35oeXicwG9wXhuA6N4IgEMH4eKbUfB3QnrKkdl0WCrWDLnd/FgH/OYB8OXHvrzBYIWetHUHT9gmsnIASwF8CwW8Bp/r2nU7HoN2r2+S+EA0QTBEkeCbw+yBwZ2f5wsJCcO7cuWCjZfY9C1ITkltESbZU/ggRfRgQfggIenoWLDX7tzagkMnkTngZGf4ZadofknAXVrnXTSDanxsbwOgzeMWyQlvwvESQTPqB4zjB5OSk3Ei9IQjdHr89D1J7A6RLv1AoP0pETyLg24joYUQ8KXc7dGvoJvdlnGAeQLwJjL0GiC8iBi8IxHLn+EE1IXRdBPLyEokg6fcGhG6y7yuQ1mvM66+TPjhRmhCemGSoTADAuPQQEdEEogQBmEjgAVANAGtEwkZUVpCJGdTwhrW8fHNqasp5a2WlTxdGRhdWEJhmkOA88CUIQ0NB+cIF/pWvfCV4+umnI50D203pce/ve5DiNng/0t8DaR+gdg+keyDtAw3sAxHvWdI9kPaBBvaBiPcs6R5I+0AD+0DEe5Z0D6R9oIF9IOI9S7oH0j7QwD4Q8Z4l3QNpH2hgH4h4z5LugbQPNLAPRPz/bLertMER5R8AAAAASUVORK5CYII=",We=t(88950),Fe=t.p+"static/frame1.8be958f3.gif",Ke=(0,l.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting,shixunsDetail:e.shixunsDetail}}))((function(e){var n,t,i,r,o,d=e.isDrawer,p=void 0!==d&&d,h=e.setIsDrawer,x=(e.shixunsDetail,e.dispatch,(0,s.useState)(0)),v=a()(x,2),m=v[0],g=v[1],y=(0,s.useState)({}),j=a()(y,2),b=j[0],_=j[1],w=(0,s.useState)([]),N=a()(w,2),C=N[0],S=N[1],I=(0,s.useState)([]),P=a()(I,2),T=P[0],D=P[1],A=(0,s.useState)(0),E=a()(A,2),O=(E[0],E[1]),B=(0,l.useParams)(),z=(0,s.useRef)(),L=function(){var e=u()(c()().mark((function e(n){var t,i,a,s;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={method:n.method},"Get"==n.method?t.params=n.data:t.body=n.data,e.next=4,(0,oe.ZP)("/api/shixuns/".concat(B.id,"/shixun_dectects.json"),t);case 4:i=e.sent,g(null==i?void 0:i.status),0==(null==i?void 0:i.status)?z.current||(z.current=setInterval(u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L({method:"Get",data:{identifier:B.id}});case 2:case"end":return e.stop()}}),e)}))),5e3)):(clearInterval(z.current),z.current=null),0!=(null==i?void 0:i.status)&&(_(i),S((null===(a=i.data)||void 0===a?void 0:a.strong_details)||[]),D((null===(s=i.data)||void 0===s?void 0:s.normal_details)||[]));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,s.useEffect)((function(){p&&L({method:"Get",data:{identifier:B.id}})}),[p]),(0,V.jsxs)(we.Z,{closable:!1,width:1e3,bodyStyle:{padding:0},open:p,onClose:function(){return h(!1)},destroyOnClose:!0,children:[(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",className:Ce,children:[(0,V.jsxs)(k.Z,{children:[(0,V.jsx)("span",{style:{color:"#191919"},children:"检测结果"}),(0,V.jsx)("i",{className:"iconfont icon-yiwenzhengchang ".concat(Se),onClick:function(){return window.open("https://www.educoder.net/forums/36896","_blank")}})]}),(0,V.jsx)(k.Z,{children:(0,V.jsx)("i",{className:"iconfont icon-guanbi10",style:{color:"#979797",cursor:"pointer"},onClick:function(){h(!1),clearInterval(z.current)}})})]}),0==m&&(0,V.jsxs)("div",{children:[(0,V.jsx)(We.Z,{img:Fe,customText:"系统检测中,请稍候..."}),(0,V.jsx)("p",{style:{textAlign:"center"},children:"一键检测功能,可以将实践项目中配置不完善的地方检测出来。你可以根据建议进行对应的调整~"}),(0,V.jsx)("div",{style:{textAlign:"center"},children:(0,V.jsx)(pe.Z,{className:Be,onClick:u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.open("https://www.educoder.net/forums/36896","_blank");case 1:case"end":return e.stop()}}),e)}))),children:"详细了解 >"})})]}),1==m&&(0,V.jsxs)("div",{className:Ie,children:[(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",children:[(0,V.jsxs)(k.Z,{style:{display:"flex",flexDirection:"column"},children:[(0,V.jsxs)("span",{className:Ee,children:["待优化",(0,V.jsxs)("span",{style:{color:"#FF9D18"},children:[" ",(null==b?void 0:b.count)||0," "]}),"项"]}),(0,V.jsxs)("span",{className:Oe,children:["检测时间",(0,V.jsx)("span",{style:{marginLeft:"8px"},children:null==b?void 0:b.time})]})]}),(0,V.jsx)(k.Z,{children:(0,V.jsx)(pe.Z,{className:Be,onClick:u()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(0),e.next=3,L({method:"post",data:{identifier:B.id}});case 3:case"end":return e.stop()}}),e)}))),children:"重新检测"})})]}),(0,V.jsxs)("div",{className:ze,children:[0!=(null==b?void 0:b.count)&&(0,V.jsx)(Ze.Z,{percent:Math.round((null===(n=b.data)||void 0===n?void 0:n.strong_detail_count)/(null==b?void 0:b.count)*100),showInfo:!1,strokeWidth:10,strokeColor:"#E53333",trailColor:"#FFA221"}),(0,V.jsxs)(Z.Z,{align:"middle",style:{marginTop:"16px"},children:[(0,V.jsxs)(Z.Z,{className:Le,align:"middle",children:[(0,V.jsx)("div",{className:Re,style:{background:"#E53333"}}),(0,V.jsx)("span",{children:"强烈建议修复项"}),(0,V.jsx)("span",{children:(null===(t=b.data)||void 0===t?void 0:t.strong_detail_count)||0})]}),(0,V.jsxs)(Z.Z,{className:Le,align:"middle",children:[(0,V.jsx)("div",{className:Re,style:{background:"#FFA221"}}),(0,V.jsx)("span",{children:"建议优化项"}),(0,V.jsx)("span",{children:(null===(i=b.data)||void 0===i?void 0:i.normal_detail_count)||0})]})]})]}),(0,V.jsxs)(Ne.Z,{className:Pe,ghost:!0,expandIconPosition:"end",children:[(0,V.jsx)(Ne.Z.Panel,{style:{marginBottom:"20px"},header:(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",children:[(0,V.jsx)(k.Z,{children:"强烈建议修复项"}),(0,V.jsx)(k.Z,{style:{color:"#E53333"},children:(null===(r=b.data)||void 0===r?void 0:r.strong_detail_count)||0})]}),children:(null==C?void 0:C.length)>0?(0,V.jsx)("div",{className:Te,children:C.map((function(e,n){var t;return(0,V.jsxs)(Z.Z,{align:"middle",className:De,wrap:!1,children:[(0,V.jsx)(k.Z,{style:{width:"150px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.category,children:e.category})}),(0,V.jsx)(k.Z,{style:{width:"400px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.raise_msg,children:e.raise_msg})}),(0,V.jsx)(k.Z,{style:{width:"100%",textAlign:"right"},children:null===(t=e.array_suggestion)||void 0===t?void 0:t.map((function(e,n){return(0,V.jsx)("div",{style:{width:"100%"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e,children:e})},n)}))})]},n)}))}):(0,V.jsx)(We.Z,{img:Ve,customText:"暂无优化项~",styles:{margin:"30px auto"}})},1),(0,V.jsx)(Ne.Z.Panel,{header:(0,V.jsxs)(Z.Z,{align:"middle",justify:"space-between",children:[(0,V.jsx)(k.Z,{children:"建议优化项"}),(0,V.jsx)(k.Z,{style:{color:"#FFA221"},children:(null===(o=b.data)||void 0===o?void 0:o.normal_detail_count)||0})]}),children:0!=(null==T?void 0:T.length)?(0,V.jsx)("div",{className:Te,children:T.map((function(e,n){var t;return(0,V.jsxs)(Z.Z,{align:"middle",className:De,wrap:!1,children:[(0,V.jsx)(k.Z,{style:{width:"150px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.category,children:e.category})}),(0,V.jsx)(k.Z,{style:{width:"400px"},className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e.raise_msg,children:e.raise_msg})}),(0,V.jsx)(k.Z,{style:{width:"100%",textAlign:"right"},children:null===(t=e.array_suggestion)||void 0===t?void 0:t.map((function(e,n){return(0,V.jsx)("div",{className:Ae,children:(0,V.jsx)(f.Z,{placement:"topLeft",title:e,children:e})},n)}))})]},n)}))}):(0,V.jsx)(We.Z,{img:Ve,customText:"暂无优化项~",styles:{margin:"30px auto"}})},2)]})]})]})})),Ue=(0,l.connect)((function(e){var n=e.user,t=e.shixunsDetail,i=e.loading;return{user:n,shixunsDetail:t,globalSetting:e.globalSetting,loading:i.models.index}}))((function(e){var n,t,i,o,c,d,u,p,h,x,v,m,f,g,y=e.user,j=e.shixunsDetail,b=(e.globalSetting,e.loading,e.dispatch),_=(0,l.useSearchParams)(),k=(a()(_,1)[0],(0,l.useParams)()),w=(0,s.useState)(""),Z=a()(w,2),N=Z[0],C=Z[1],S=(0,s.useState)(""),I=a()(S,2),P=I[0],T=I[1],D=(0,l.useLocation)(),A=(0,s.useState)(!1),E=a()(A,2),O=E[0],B=E[1];(0,s.useEffect)((function(){var e,n;null!==(e=j.detail)&&void 0!==e&&e.id&&(0,de.Dk)((null===(n=j.detail)||void 0===n?void 0:n.name)||"实践项目名称-未填写")}),[j]),(0,s.useEffect)((function(){var e=k.id;C(e),b({type:"shixunsDetail/getShixunsDetail",payload:{id:e}}),b({type:"shixunsDetail/getRightData",payload:{id:e}})}),[k.id]),(0,s.useEffect)((function(){var e;T({challenges:"1",propaedeutics:"2",repository:"3",secret_repository:"4",collaborators:"5",dataset:"6",shixun_discuss:"7",ranking_list:"8",settings:"9",fork_list:"10"}[null===(e=D.pathname.split("/"))||void 0===e?void 0:e[3]]||"1")}),[D.pathname]);var z=null===(n=y.userInfo)||void 0===n||null===(n=n.shixun)||void 0===n?void 0:n.own,L=null===(t=y.userInfo)||void 0===t||null===(t=t.shixun)||void 0===t?void 0:t.lookable;return(0,V.jsxs)("section",{className:ye,children:[(0,V.jsx)(xe,{}),(0,V.jsx)("section",{className:je,children:(0,V.jsxs)("aside",{className:be,children:[(0,V.jsxs)(r.Z,{mode:"horizontal",onClick:function(e){e.item;var n=e.key,t=(e.keyPath,e.domEvent);(0,de.L9)(["实践项目","详情页",t.currentTarget.textContent]);var i=function(e,n){return{1:{url:"/shixuns/".concat(n,"/challenges"),isPush:!1},2:{url:"/shixuns/".concat(n,"/propaedeutics"),isPush:!1},3:{url:"/shixuns/".concat(n,"/repository"),isPush:!0},4:{url:"/shixuns/".concat(n,"/secret_repository"),isPush:!0},5:{url:"/shixuns/".concat(n,"/collaborators"),isPush:!1},6:{url:"/shixuns/".concat(n,"/dataset"),isPush:!1},7:{url:"/shixuns/".concat(n,"/shixun_discuss"),isPush:!1},8:{url:"/shixuns/".concat(n,"/ranking_list"),isPush:!1},9:{url:"/shixuns/".concat(n,"/settings"),isPush:!1},10:{url:"/shixuns/".concat(n,"/fork_list"),isPush:!1}}[e]||{}}(n,N),a=i.url;i.isPush?null===l.history||void 0===l.history||l.history.push(a):null===l.history||void 0===l.history||l.history.replace(a)},selectedKeys:[P],children:[(0,V.jsx)(r.Z.Item,{children:"任务"},"1"),z&&!(null!==(i=j.detail)&&void 0!==i&&i.is_jupyter)&&(null===(o=j.detail)||void 0===o?void 0:o.init_repository)&&(0,V.jsx)(r.Z.Item,{children:"代码"},"3"),(0,V.jsx)(r.Z.Item,{children:"数据集"},"6"),z&&(null===(c=j.detail)||void 0===c?void 0:c.secret_repository)&&(0,V.jsx)(r.Z.Item,{children:"私密代码"},"4"),z&&L&&!(null!==(d=j.detail)&&void 0!==d&&d.is_jupyter)&&!(null!==(u=j.detail)&&void 0!==u&&u.is_disable_discuss)&&(0,V.jsx)(r.Z.Item,{children:"评论"},"7"),!(null!==(p=j.detail)&&void 0!==p&&p.is_jupyter)&&(0,V.jsx)(r.Z.Item,{children:"排行榜"},"8"),z&&(0,V.jsx)(r.Z.Item,{children:"合作者"},"5"),z&&(0,ce.JL)()&&!(null===(h=j.detail)||void 0===h||!h.new_fork_count)&&(0,V.jsx)(r.Z.Item,{children:"复制列表"},"10"),z&&(null===(x=j.detail)||void 0===x?void 0:x.is_jupyter)&&(0,V.jsx)(r.Z.Item,{children:"配置"},"9")]}),(0,ce.Ny)()&&!(null!==(v=j.challenges)&&void 0!==v&&v.is_jupyter||null!==(m=j.challenges)&&void 0!==m&&m.is_jupyter_lab)&&(0,V.jsxs)("span",{className:"".concat(_e," ").concat(ke),onClick:function(){return B(!0)},children:[(0,V.jsx)("i",{className:"iconfont icon-yijianjiance"}),"一键检测"]}),z&&L&&!(null!==(f=j.detail)&&void 0!==f&&f.is_jupyter)&&(0,V.jsxs)("a",{className:_e,onClick:function(e){l.history.push("/shixuns/".concat(N,"/edit"))},id:"settingEntry",children:[(0,V.jsx)("i",{className:"iconfont icon-shijianshezhi"}),(0,V.jsx)("span",{children:"设置"})]}),z&&!(null!==(g=j.detail)&&void 0!==g&&g.is_jupyter)&&(0,V.jsx)(ge,{}),(0,V.jsx)(Ke,{isDrawer:O,setIsDrawer:B})]})}),(0,V.jsx)("aside",{className:"edu-container",children:(0,V.jsx)(l.Outlet,{})})]})}))},99379:function(e,n,t){var i=t(39647),a=t.n(i),s=(t(59301),t(18984)),l=t(43418),r=t(37712),o=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,s.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t=e.shixunsDetail,i=(e.globalSetting,e.loading,e.dispatch);a()(e,o);return(0,r.jsx)(l.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-Auth"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){var e;i({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href=null===(e=t.detail)||void 0===e||null===(e=e.can_fork)||void 0===e?void 0:e.certi_url},onCancel:function(){i({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,r.jsxs)("p",{className:"tc font16",children:[null===(n=t.detail)||void 0===n||null===(n=n.can_fork)||void 0===n?void 0:n.can_fork,(0,r.jsx)("br",{}),"请问是否前往进行认证?"]})})}))},90613:function(e,n,t){var i=t(39647),a=t.n(i),s=(t(59301),t(18984)),l=t(43418),r=t(37712),o=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,s.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n,t,i=e.shixunsDetail,s=(e.globalSetting,e.loading,e.dispatch);a()(e,o);return(0,r.jsx)(l.Z,{centered:!0,keyboard:!1,closable:!1,title:"提示",open:"Banner-Per"===i.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){s({type:"shixunsDetail/setActionTabs",payload:{}})},onCancel:function(){s({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,r.jsxs)("p",{className:"tc font16",children:["该实训所使用的实验环境为私有环境:",(0,r.jsx)("br",{}),null===(n=i.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.message,(0,r.jsx)("br",{}),"您无该实验环境的使用权限,所以无法",(null===(t=i.actionTabs)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.text)||"复制","该实训"]})})}))},93626:function(e,n,t){t.d(n,{_:function(){return m}});var i=t(7557),a=t.n(i),s=t(41498),l=t.n(s),r=t(19471),o=t(43418),c=t(8591),d=t(51945),u=t(37704),p=(t(59301),t(37712)),h=function(){var e=l()(a()().mark((function e(n){var t,i,s,l,o,c,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.is_jupyter,i=n.is_jupyter_lab,s=n.shixunId,l=n.homework_common_id,o=n.courseId,!t&&!i){e.next=7;break}return e.next=4,(0,r.BK)({id:s});case 4:return null!=(c=e.sent)&&c.identifier&&(0,u.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(l)),e.abrupt("return");case 7:return e.next=9,(0,r.Ir)({id:s,homework_common_id:l});case 9:if(null==(d=e.sent)||!d.game_identifier){e.next=13;break}return(0,u.xg)("/tasks/".concat(o,"/").concat(l,"/").concat(d.game_identifier)),e.abrupt("return");case 13:2===(null==d?void 0:d.status)?x(null==d?void 0:d.message,l,o):3===(null==d?void 0:d.status)?v(null==d?void 0:d.message):-3==(null==d?void 0:d.status)&&(0,u.eF)();case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),x=function e(n,t,i){var s,d;n=null!==(s=n)&&void 0!==s&&s.includes(".json")?n:"".concat(n,".json"),o.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,p.jsx)("div",{className:"tc font16",children:" 实训已经更新了,正在为您重置!"}),onOk:(d=l()(a()().mark((function s(){var l,o;return a()().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.$Q)({url:n});case 2:if(l=a.sent){a.next=5;break}return a.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),a.next=8,(0,r.Ir)({id:l.shixun_identifier,homework_common_id:t});case 8:if(null==(o=a.sent)||!o.game_identifier){a.next=12;break}return(0,u.xg)("/tasks/".concat(i,"/").concat(t,"/").concat(o.game_identifier)),a.abrupt("return");case 12:2===(null==o?void 0:o.status)?e(null==o?void 0:o.message,t,i):3===(null==o?void 0:o.status)&&v(null==o?void 0:o.message);case 13:case"end":return a.stop()}}),s)}))),function(){return d.apply(this,arguments)})})},v=function(e){o.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,p.jsxs)("div",{className:"tc font16",children:[" 目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},m=function(){var e=l()(a()().mark((function e(n,t){var i,s,l,c,u,x,v;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.is_jupyter,s=t.is_jupyter_lab,e.next=3,(0,r.WT)(n);case 3:if(!((l=e.sent).length>1)){e.next=7;break}return o.Z.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"提示",content:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{children:["你当前有",l.length,"个进行中的实训作业使用该实践项目,请在下方点击实训作业名称进入实训挑战页面:"]}),(0,p.jsx)(d.Z,{pagination:!1,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"作业名称",dataIndex:"name",ellipsis:!0,width:240,align:"center",render:function(e,n){var t=n||{},i=t.course_identifier,a=t.id;return(0,p.jsx)("a",{target:"_blank",href:"/classrooms/".concat(i,"/shixun_homework/").concat(a,"/detail"),children:e})}},{title:"作业截止时间",dataIndex:"end_time",align:"center"},{title:"操作",align:"center",render:function(e,n){var t=n.course_identifier,a=n.id,l=n.shixun_identifier;return(0,p.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){h({is_jupyter:i,is_jupyter_lab:s,shixunId:l,homework_common_id:a,courseId:t})},children:"前往挑战"})}}],dataSource:l,rowKey:"id"})]})}),e.abrupt("return",!0);case 7:if(1!==l.length){e.next=11;break}return c=l[0],u=c.shixun_identifier,x=c.id,v=c.course_identifier,h({is_jupyter:i,is_jupyter_lab:s,shixunId:u,homework_common_id:x,courseId:v}),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();n.Z=h},77578:function(e,n,t){t.d(n,{Z:function(){return i}});const i=e=>e?"function"==typeof e?e():e:null},36381:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(83148),a=t(92310),s=t.n(a),l=t(81978),r=t(34706),o=t(43941),c=t(49888),d=t(71366),u=t(85870),p=t(59301),h=t(62579),x=t(75440),v=t(25124),m=t(16934),f=t(20287),g=p.forwardRef((function(e,n){var t=e.prefixCls,i=e.forceRender,a=e.className,l=e.style,r=e.children,c=e.isActive,d=e.role,u=p.useState(c||i),h=(0,o.Z)(u,2),x=h[0],m=h[1];return p.useEffect((function(){(i||c)&&m(!0)}),[i,c]),x?p.createElement("div",{ref:n,className:s()("".concat(t,"-content"),(0,v.Z)((0,v.Z)({},"".concat(t,"-content-active"),c),"".concat(t,"-content-inactive"),!c),a),style:l,role:d},p.createElement("div",{className:"".concat(t,"-content-box")},r)):null}));g.displayName="PanelContent";var y=g,j=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],b=p.forwardRef((function(e,n){var t=e.showArrow,i=void 0===t||t,a=e.headerClass,r=e.isActive,o=e.onItemClick,c=e.forceRender,d=e.className,u=e.prefixCls,x=e.collapsible,g=e.accordion,b=e.panelKey,_=e.extra,k=e.header,w=e.expandIcon,Z=e.openMotion,N=e.destroyInactivePanel,C=e.children,S=(0,h.Z)(e,j),I="disabled"===x,P="header"===x,T="icon"===x,D=null!=_&&"boolean"!=typeof _,A=function(){null==o||o(b)},E="function"==typeof w?w(e):p.createElement("i",{className:"arrow"});E&&(E=p.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(x)?A:void 0},E));var O=s()((0,v.Z)((0,v.Z)((0,v.Z)({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),r),"".concat(u,"-item-disabled"),I),d),B={className:s()(a,(0,v.Z)((0,v.Z)((0,v.Z)({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),P),"".concat(u,"-icon-collapsible-only"),T)),"aria-expanded":r,"aria-disabled":I,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==f.Z.ENTER&&e.which!==f.Z.ENTER||A()}};return P||T||(B.onClick=A,B.role=g?"tab":"button",B.tabIndex=I?-1:0),p.createElement("div",(0,l.Z)({},S,{ref:n,className:O}),p.createElement("div",B,i&&E,p.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===x?A:void 0},k),D&&p.createElement("div",{className:"".concat(u,"-extra")},_)),p.createElement(m.default,(0,l.Z)({visible:r,leavedClassName:"".concat(u,"-content-hidden")},Z,{forceRender:c,removeOnLeave:N}),(function(e,n){var t=e.className,i=e.style;return p.createElement(y,{ref:n,prefixCls:u,className:t,style:i,isActive:r,forceRender:c,role:g?"tabpanel":void 0},C)})))})),_=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var k=function(e,n,t){return Array.isArray(e)?function(e,n){var t=n.prefixCls,i=n.accordion,a=n.collapsible,s=n.destroyInactivePanel,r=n.onItemClick,o=n.activeKey,c=n.openMotion,d=n.expandIcon;return e.map((function(e,n){var u=e.children,x=e.label,v=e.key,m=e.collapsible,f=e.onItemClick,g=e.destroyInactivePanel,y=(0,h.Z)(e,_),j=String(null!=v?v:n),k=null!=m?m:a,w=null!=g?g:s,Z=!1;return Z=i?o[0]===j:o.indexOf(j)>-1,p.createElement(b,(0,l.Z)({},y,{prefixCls:t,key:j,panelKey:j,isActive:Z,accordion:i,openMotion:c,expandIcon:d,header:x,collapsible:k,onItemClick:function(e){"disabled"!==k&&(r(e),null==f||f(e))},destroyInactivePanel:w}),u)}))}(e,t):(0,x.Z)(n).map((function(e,n){return function(e,n,t){if(!e)return null;var i=t.prefixCls,a=t.accordion,s=t.collapsible,l=t.destroyInactivePanel,r=t.onItemClick,o=t.activeKey,c=t.openMotion,d=t.expandIcon,u=e.key||String(n),h=e.props,x=h.header,v=h.headerClass,m=h.destroyInactivePanel,f=h.collapsible,g=h.onItemClick,y=!1;y=a?o[0]===u:o.indexOf(u)>-1;var j=null!=f?f:s,b={key:u,panelKey:u,header:x,headerClass:v,isActive:y,prefixCls:i,destroyInactivePanel:null!=m?m:l,openMotion:c,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==j&&(r(e),null==g||g(e))},expandIcon:d,collapsible:j};return"string"==typeof e.type?e:(Object.keys(b).forEach((function(e){void 0===b[e]&&delete b[e]})),p.cloneElement(e,b))}(e,n,t)}))},w=t(47413);function Z(e){var n=e;if(!Array.isArray(n)){var t=(0,c.Z)(n);n="number"===t||"string"===t?[n]:[]}return n.map((function(e){return String(e)}))}var N=p.forwardRef((function(e,n){var t=e.prefixCls,i=void 0===t?"rc-collapse":t,a=e.destroyInactivePanel,c=void 0!==a&&a,h=e.style,x=e.accordion,v=e.className,m=e.children,f=e.collapsible,g=e.openMotion,y=e.expandIcon,j=e.activeKey,b=e.defaultActiveKey,_=e.onChange,N=e.items,C=s()(i,v),S=(0,d.Z)([],{value:j,onChange:function(e){return null==_?void 0:_(e)},defaultValue:b,postState:Z}),I=(0,o.Z)(S,2),P=I[0],T=I[1];(0,u.ZP)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var D=k(N,m,{prefixCls:i,accordion:x,openMotion:g,expandIcon:y,collapsible:f,destroyInactivePanel:c,onItemClick:function(e){return T((function(){return x?P[0]===e?[]:[e]:P.indexOf(e)>-1?P.filter((function(n){return n!==e})):[].concat((0,r.Z)(P),[e])}))},activeKey:P});return p.createElement("div",(0,l.Z)({ref:n,className:C,style:h,role:x?"tablist":void 0},(0,w.Z)(e,{aria:!0,data:!0})),D)})),C=Object.assign(N,{Panel:b}),S=C,I=(C.Panel,t(55405)),P=t(62892),T=t(92343),D=t(36355),A=t(19716);var E=p.forwardRef(((e,n)=>{const{getPrefixCls:t}=p.useContext(D.E_),{prefixCls:i,className:a,showArrow:l=!0}=e,r=t("collapse",i),o=s()({[`${r}-no-arrow`]:!l},a);return p.createElement(S.Panel,Object.assign({ref:n},e,{prefixCls:r,className:o}))})),O=t(17313),B=t(8378),z=t(83116),L=t(37613);const R=e=>{const{componentCls:n,contentBg:t,padding:i,headerBg:a,headerPadding:s,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:r,collapsePanelBorderRadius:o,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:h,colorTextDisabled:x,fontSize:v,fontSizeLG:m,lineHeight:f,marginSM:g,paddingSM:y,paddingLG:j,paddingXS:b,motionDurationSlow:_,fontSizeIcon:k,contentPadding:w}=e,Z=`${c}px ${d} ${u}`;return{[n]:Object.assign(Object.assign({},(0,O.Wf)(e)),{backgroundColor:a,border:Z,borderBottom:0,borderRadius:`${o}px`,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:Z,"&:last-child":{[`\n &,\n & > ${n}-header`]:{borderRadius:`0 0 ${o}px ${o}px`}},[`> ${n}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:h,lineHeight:f,cursor:"pointer",transition:`all ${_}, visibility 0s`,[`> ${n}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${n}-expand-icon`]:{height:v*f,display:"flex",alignItems:"center",paddingInlineEnd:g},[`${n}-arrow`]:Object.assign(Object.assign({},(0,O.Ro)()),{fontSize:k,svg:{transition:`transform ${_}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}},[`${n}-header-collapsible-only`]:{cursor:"default",[`${n}-header-text`]:{flex:"none",cursor:"pointer"}},[`${n}-icon-collapsible-only`]:{cursor:"default",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:p,backgroundColor:t,borderTop:Z,[`& > ${n}-content-box`]:{padding:w},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:l,paddingInlineStart:b,[`> ${n}-expand-icon`]:{marginInlineStart:y-b}},[`> ${n}-content > ${n}-content-box`]:{padding:y}}},"&-large":{[`> ${n}-item`]:{fontSize:m,[`> ${n}-header`]:{padding:r,paddingInlineStart:i,[`> ${n}-expand-icon`]:{height:m*f,marginInlineStart:j-i}},[`> ${n}-content > ${n}-content-box`]:{padding:j}}},[`${n}-item:last-child`]:{[`> ${n}-content`]:{borderRadius:`0 0 ${o}px ${o}px`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n &,\n & > .arrow\n ":{color:x,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:g}}}}})}},V=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{[`> ${n}-item > ${n}-header ${n}-arrow svg`]:{transform:"rotate(180deg)"}}}},W=e=>{const{componentCls:n,headerBg:t,paddingXXS:i,colorBorder:a}=e;return{[`${n}-borderless`]:{backgroundColor:t,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${a}`},[`\n > ${n}-item:last-child,\n > ${n}-item:last-child ${n}-header\n `]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:i}}}},F=e=>{const{componentCls:n,paddingSM:t}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:t}}}}}};var K=(0,z.Z)("Collapse",(e=>{const n=(0,L.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[R(n),W(n),F(n),V(n),(0,B.Z)(n)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const U=p.forwardRef(((e,n)=>{const{getPrefixCls:t,direction:a,collapse:l}=p.useContext(D.E_),{prefixCls:r,className:o,rootClassName:c,style:d,bordered:u=!0,ghost:h,size:v,expandIconPosition:m="start",children:f,expandIcon:g}=e,y=(0,A.Z)((e=>{var n;return null!==(n=null!=v?v:e)&&void 0!==n?n:"middle"})),j=t("collapse",r),b=t(),[_,k]=K(j),w=p.useMemo((()=>"left"===m?"start":"right"===m?"end":m),[m]),Z=s()(`${j}-icon-position-${w}`,{[`${j}-borderless`]:!u,[`${j}-rtl`]:"rtl"===a,[`${j}-ghost`]:!!h,[`${j}-${y}`]:"middle"!==y},null==l?void 0:l.className,o,c,k),N=Object.assign(Object.assign({},(0,P.Z)(b)),{motionAppear:!1,leavedClassName:`${j}-content-hidden`}),C=p.useMemo((()=>f?(0,x.Z)(f).map(((e,n)=>{var t,i;if(null===(t=e.props)||void 0===t?void 0:t.disabled){const t=null!==(i=e.key)&&void 0!==i?i:String(n),{disabled:a,collapsible:s}=e.props,l=Object.assign(Object.assign({},(0,I.Z)(e.props,["disabled"])),{key:t,collapsible:null!=s?s:a?"disabled":void 0});return(0,T.Tm)(e,l)}return e})):null),[f]);return _(p.createElement(S,Object.assign({ref:n,openMotion:N},(0,I.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=g?g(e):p.createElement(i.Z,{rotate:e.isActive?90:void 0});return(0,T.Tm)(n,(()=>({className:s()(n.props.className,`${j}-arrow`)})))},prefixCls:j,className:Z,style:Object.assign(Object.assign({},null==l?void 0:l.style),d)}),C))}));var M=Object.assign(U,{Panel:E})},28103:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(92310),a=t.n(i),s=t(59301),l=t(36355),r=t(17313),o=t(83116),c=t(37613);const d=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:i,lineWidth:a,textPaddingInline:s,orientationMargin:l,verticalMarginInline:o}=e;return{[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{borderBlockStart:`${a}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${a}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${a}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,o.Z)("Divider",(e=>{const n=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:t,divider:i}=s.useContext(l.E_),{prefixCls:r,type:o="horizontal",orientation:c="center",orientationMargin:d,className:h,rootClassName:x,children:v,dashed:m,plain:f,style:g}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),j=n("divider",r),[b,_]=u(j),k=c.length>0?`-${c}`:c,w=!!v,Z="left"===c&&null!=d,N="right"===c&&null!=d,C=a()(j,null==i?void 0:i.className,_,`${j}-${o}`,{[`${j}-with-text`]:w,[`${j}-with-text${k}`]:w,[`${j}-dashed`]:!!m,[`${j}-plain`]:!!f,[`${j}-rtl`]:"rtl"===t,[`${j}-no-default-orientation-margin-left`]:Z,[`${j}-no-default-orientation-margin-right`]:N},h,x),S=s.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),I=Object.assign(Object.assign({},Z&&{marginLeft:S}),N&&{marginRight:S});return b(s.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==i?void 0:i.style),g)},y,{role:"separator"}),v&&"vertical"!==o&&s.createElement("span",{className:`${j}-inner-text`,style:I},v)))}},39722:function(e,n,t){t.d(n,{t5:function(){return u}});var i=t(92310),a=t.n(i),s=t(55477),l=t(59301),r=t(36355),o=t(77578),c=t(17356),d=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{const{hashId:n,prefixCls:t,className:i,style:r,placement:c="top",title:d,content:u,children:p}=e;return l.createElement("div",{className:a()(n,t,`${t}-pure`,`${t}-placement-${c}`,i),style:r},l.createElement("div",{className:`${t}-arrow`}),l.createElement(s.G,Object.assign({},e,{className:n,prefixCls:t}),p||((e,n,t)=>{if(n||t)return l.createElement(l.Fragment,null,n&&l.createElement("div",{className:`${e}-title`},(0,o.Z)(n)),l.createElement("div",{className:`${e}-inner-content`},(0,o.Z)(t)))})(t,d,u)))};n.ZP=e=>{const{prefixCls:n}=e,t=d(e,["prefixCls"]),{getPrefixCls:i}=l.useContext(r.E_),a=i("popover",n),[s,o]=(0,c.Z)(a);return s(l.createElement(u,Object.assign({},t,{prefixCls:a,hashId:o})))}},60324:function(e,n,t){var i=t(92310),a=t.n(i),s=t(59301),l=t(77578),r=t(62892),o=t(36355),c=t(6848),d=t(39722),u=t(17356),p=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a{let{title:n,content:t,prefixCls:i}=e;return s.createElement(s.Fragment,null,n&&s.createElement("div",{className:`${i}-title`},(0,l.Z)(n)),s.createElement("div",{className:`${i}-inner-content`},(0,l.Z)(t)))},x=s.forwardRef(((e,n)=>{const{prefixCls:t,title:i,content:l,overlayClassName:d,placement:x="top",trigger:v="hover",mouseEnterDelay:m=.1,mouseLeaveDelay:f=.1,overlayStyle:g={}}=e,y=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:j}=s.useContext(o.E_),b=j("popover",t),[_,k]=(0,u.Z)(b),w=j(),Z=a()(d,k);return _(s.createElement(c.Z,Object.assign({placement:x,trigger:v,mouseEnterDelay:m,mouseLeaveDelay:f,overlayStyle:g},y,{prefixCls:b,overlayClassName:Z,ref:n,overlay:i||l?s.createElement(h,{prefixCls:b,title:i,content:l}):null,transitionName:(0,r.m)(w,"zoom-big",y.transitionName),"data-popover-inject":!0})))}));x._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,n.Z=x},17356:function(e,n,t){var i=t(17313),a=t(29878),s=t(19447),l=t(33166),r=t(83116),o=t(37613);const c=e=>{const{componentCls:n,popoverColor:t,minWidth:a,fontWeightStrong:l,popoverPadding:r,boxShadowSecondary:o,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:h,popoverBg:x}=e;return[{[n]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:x,backgroundClip:"padding-box",borderRadius:d,boxShadow:o,padding:r},[`${n}-title`]:{minWidth:a,marginBottom:p,color:c,fontWeight:l},[`${n}-inner-content`]:{color:t}})},(0,s.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:n}=e;return{[n]:l.i.map((t=>{const i=e[`${t}6`];return{[`&${n}-${t}`]:{"--antd-arrow-background-color":i,[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:n,lineWidth:t,lineType:i,colorSplit:a,paddingSM:s,controlHeight:l,fontSize:r,lineHeight:o,padding:c}=e,d=l-Math.round(r*o);return{[n]:{[`${n}-inner`]:{padding:0},[`${n}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-t}px`,borderBottom:`${t}px ${i} ${a}`},[`${n}-inner-content`]:{padding:`${s}px ${c}px`}}}};n.Z=(0,r.Z)("Popover",(e=>{const{colorBgElevated:n,colorText:t,wireframe:i}=e,s=(0,o.TS)(e,{popoverPadding:12,popoverBg:n,popoverColor:t});return[c(s),d(s),i&&u(s),(0,a._y)(s,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})}}]); \ No newline at end of file