diff --git a/index.html b/index.html index e943a39b45..7e645f76ce 100644 --- a/index.html +++ b/index.html @@ -46,6 +46,6 @@
- + diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.d3bc8888.async.js b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.f7773bea.async.js similarity index 70% rename from p__Classrooms__Lists__ShixunHomeworks__Detail__index.d3bc8888.async.js rename to p__Classrooms__Lists__ShixunHomeworks__Detail__index.f7773bea.async.js index 3ab06929f9..cd7f55f447 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.d3bc8888.async.js +++ b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.f7773bea.async.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[80,4,5,6,9,11],{"1vsH":function(e,t,a){"use strict";a.d(t,"i",(function(){return s})),a.d(t,"k",(function(){return i})),a.d(t,"e",(function(){return u})),a.d(t,"h",(function(){return m})),a.d(t,"c",(function(){return d})),a.d(t,"f",(function(){return p})),a.d(t,"g",(function(){return g})),a.d(t,"a",(function(){return h})),a.d(t,"z",(function(){return b})),a.d(t,"y",(function(){return f})),a.d(t,"A",(function(){return _})),a.d(t,"B",(function(){return v})),a.d(t,"r",(function(){return w})),a.d(t,"q",(function(){return E})),a.d(t,"o",(function(){return k})),a.d(t,"n",(function(){return y})),a.d(t,"x",(function(){return x})),a.d(t,"j",(function(){return N})),a.d(t,"w",(function(){return S})),a.d(t,"t",(function(){return C})),a.d(t,"l",(function(){return A})),a.d(t,"v",(function(){return T})),a.d(t,"m",(function(){return I})),a.d(t,"d",(function(){return D})),a.d(t,"b",(function(){return L})),a.d(t,"s",(function(){return R})),a.d(t,"u",(function(){return M})),a.d(t,"p",(function(){return V}));var n=a("q1tI"),r=a.n(n),c=a("xKgJ"),o=a("aCH8"),l=a.n(o),s=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],i=e=>{var t={[-1]:"\u91cd\u505a\u4e2d",0:"\u672a\u5f00\u542f",1:"\u672a\u901a\u5173",2:"\u6309\u65f6\u901a\u5173"};return t[e]||"\u8fdf\u4ea4\u901a\u5173"},u=e=>{var t,a,n={[-1]:{name:"\u91cd\u505a\u4e2d",class:"c-orange"},0:{name:"\u672a\u5f00\u542f",class:"c-black"},1:{name:"\u672a\u901a\u5173",class:"c-red"},2:{name:"\u6309\u65f6\u901a\u5173",class:"c-green"},3:{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}};return r.a.createElement("span",{className:null===n||void 0===n||null===(t=n[e.status])||void 0===t?void 0:t["class"]},null===n||void 0===n||null===(a=n[e.status])||void 0===a?void 0:a["name"])},m=e=>{var t=e.status,a={0:{class:"tag-style bg-blue ml10",name:"\u5f85\u9009\u4e2d"},1:{class:"tag-style bg-blue ml10",name:"\u5f85\u786e\u8ba4"},2:{class:"tag-style bg-pink ml10",name:"\u5df2\u786e\u8ba4"}};try{return r.a.createElement("span",{className:a[t]["class"]},a[t]["name"])}catch(n){console.log("utils.StatusGraduationProjectTags",e.status)}},d={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},p={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},g=e=>{var t={"\u516c\u5f00":{class:"tag-style bg-blue ml10"},"\u5df2\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-green ml10"},"\u672a\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-pink ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u533f\u540d\u4f5c\u54c1":{class:"tag-style bg-cyan ml10"},"\u5df2\u9009\u62e9":{class:"tag-style bg-grey-ede ml10"},"\u5df2\u7ed3\u675f":{class:"tag-style bg-grey-ede ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u533f\u8bc4\u4e2d":{class:"tag-style bg-blue ml10"},"\u7533\u8bc9\u4e2d":{class:"tag-style bg-blue ml10"},"\u8003\u8bd5\u4e2d":{class:"tag-style bg-light-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u8bc4\u9605\u4e2d":{class:"tag-style bg-blue ml10"},"\u5f85\u9009\u4e2d":{class:"tag-style bg-blue ml10"},"\u4ea4\u53c9\u8bc4\u9605\u4e2d":{class:"tag-style bg-light-orange ml10"},"\u5df2\u5f00\u542f\u4ea4\u53c9\u8bc4\u9605":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u786e\u8ba4":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u5904\u7406":{class:"tag-style bg-lightblue-purple ml10"},"\u79c1\u6709":{class:"tag-style bg-lightblue-purple ml10"},"\u672a\u63d0\u4ea4":{class:"tag-style bg-lightblue-purple ml10"},"\u5df2\u786e\u8ba4":{class:"tag-style bg-light-pink ml10"},"\u5df2\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u5df2\u622a\u6b62":{class:"tag-style bg-light-pink ml10"},"\u5f00\u53d1\u8bfe\u7a0b":{class:"tag-style bg-orange ml10"},"\u5df2\u5f00\u64ad":{class:"tag-style-border border-green c-green ml10"},"\u672a\u5f00\u64ad":{class:"tag-style-border border-light-black ml10"},"\u6309\u65f6\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u8fdf\u4ea4\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u5f00\u542f":{class:"tag-style-border border-light-black ml10"}},a=[];e.is_random&&a.push(r.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((e,n)=>{a.push(r.a.createElement("span",{key:n,className:t[e]&&t[e]["class"]},e))})}catch(n){console.log("utils.status.tag:",n,e.status)}return a},h=e=>{var t,a,n={0:{name:"\u672a\u63d0\u4ea4",class:"c-black"},1:{name:"\u6309\u65f6\u63d0\u4ea4",class:"c-green"},2:{name:"\u5ef6\u65f6\u63d0\u4ea4",class:"c-red"}};return r.a.createElement("span",{className:null===(t=n[e.status])||void 0===t?void 0:t["class"]},null===(a=n[e.status])||void 0===a?void 0:a["name"])},b=e=>{e=new Date(e).getTime();var t=6e4,a=60*t,n=24*a,r="",c=(new Date).getTime(),o=c-e;if(o<0)return console.log("\u65f6\u95f4\u4e0d\u5bf9\u52b2,\u670d\u52a1\u5668\u521b\u5efa\u65f6\u95f4\u4e0e\u5f53\u524d\u65f6\u95f4\u4e0d\u540c\u6b65"),"\u521a\u521a";var l=parseInt(o/n,10),s=parseInt(o/a,10),i=parseInt(o/t,10);return r=l>30?""+f(e,"yyyy-MM-dd"):l>1?l+"\u5929\u524d":1==l?"\u6628\u5929":s>=1?s+"\u5c0f\u65f6\u524d":i>=5?i+"\u5206\u949f\u524d":"\u521a\u521a",r},f=(e,t)=>{"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},n=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,n[RegExp.$1.length-1][e.getDay()])),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t},_=e=>{if(!e)return"0";console.log("time:",e);var t=60,a=60*t,n=24*a,r=e/n,c=e/a,o=e/t;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(c%24)+"\u65f6"+Math.floor(o%60)+"\u5206"+Math.floor(e%60)+"\u79d2":c>1?parseInt(c.toString())+"\u65f6"+Math.floor(o%60)+"\u5206"+Math.floor(e%60)+"\u79d2":o>=1?parseInt(o.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=0;if(e){a=e.length;for(var n=0;n=55296&&r<=56319&&(a--,n++)}}return a<=t},w=(e,t,a)=>{if(t){var n=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,c=r.test(t),o=n.test(t);(!0===c||!0===o||t.length<2||t.length>=21)&&a("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}a()},E=(e,t,a)=>{if(t){var n=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,c=r.test(t),o=n.test(t);(!0===c||!0===o||t.length<2||t.length>=11)&&a("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}a()},k=e=>{if(!e)return"";for(var t=e.length-1,a="",n=0;n{var a=new FileReader;a.addEventListener("load",()=>t(a.result)),a.readAsDataURL(e)};function x(e){var t="79e33abd4b6588941ab7622aed1e67e8";return l()(t+e)}var j=e=>{var t,a=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(t=document.cookie.match(a))?decodeURIComponent(t[2]):null};var O=e=>{document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function N(e,t){return new Promise((e,a)=>{var n=t+="?&cookie=12",r=document.createElement("iframe");document.body.appendChild(r),r.src=n,r.style.display="none",setInterval(()=>{j("fileDownload")&&(O("fileDownload"),e())},1e3)})}var S=e=>{var t=e.url,a=e.query;return t?(a&&function(){var e=[],n=function(t){a.hasOwnProperty(t)&&!M(a[t])&&("object"===typeof a[t]?a[t].map(n=>{e.push("".concat(t,"[]=").concat(a[t]))}):e.push("".concat(t,"=").concat(a[t])))};for(var r in a)n(r);t=-1!==t.indexOf("?")?"".concat(t,"&").concat(e.join("&")):"".concat(t,"?").concat(e.join("&"))}(),t):""};function C(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],a=!0,n=0;n0){a=!1;break}return a}var H,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},T=e=>{var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),t.dispatchEvent(a),document.body.removeChild(t)},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},D=()=>{var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",e+":"+t},L=()=>{var e=(new Date).getHours(),t=(new Date).getMinutes();return t>=30?(e++,t="00"):t="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+t};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(H||(H={}));var F=e=>{var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)},R=e=>F(e)===H.Array?0===e.length:F(e)===H.Object?0===Object.keys(e).length:!e,M=e=>void 0===e||null===e;var V=e=>{switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.container_id));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.container_id));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.container_id));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.container_id));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/courses/".concat(e.belong_container_id,"/polls/").concat(e.container_id));default:return window.open("\t/courses/".concat(e.belong_container_id,"/polls/").concat(e.container_id))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/courses/".concat(e.belong_container_id,"/exercises/").concat(e.container_id,"/student_exercise_list?tab=0"));case"ExerciseScore":return window.open("\t/courses/".concat(e.belong_container_id,"/exercises/").concat(e.container_id,"/student_exercise_list?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercises/").concat(e.container_id,"/student_exercise_list?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(t=Object(c["n"])())||void 0===t?void 0:t.login,"/videos")):"";var t;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},"7ahc":function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var n=a("k1fw"),r=a("0Owb"),c=(a("+L6B"),a("2/Rp")),o=(a("y8nQ"),a("Vl3Y")),l=a("tJVT"),s=(a("OaEy"),a("2fM7")),i=a("q1tI"),u=a.n(i),m=a("VrN/"),d=a.n(m),p=(a("p77/"),s["a"].Option),g={labelCol:{span:4},wrapperCol:{span:20}},h={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function b(e){var t=e.value,a=e.onChange,r=e.mode,c=e.options,o=void 0===c?{}:c,s=Object(i["useRef"])(),m=Object(i["useState"])(),p=Object(l["a"])(m,2),g=p[0],h=p[1];return Object(i["useEffect"])(()=>{if(g){function e(e){var t=e.getValue();a&&a(t)}return g.on("change",e),()=>{g.off("change",e)}}},[g,a]),Object(i["useEffect"])(()=>{g&&g.setOption("mode",r)},[g,r]),Object(i["useEffect"])(()=>{g&&t!==g.getValue()&&g.setValue(t||"")},[g,t]),Object(i["useEffect"])(()=>{if(s.current&&!g){var e=d.a.fromTextArea(s.current,Object(n["a"])({mode:r,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0},o));h(e)}},[s.current,g]),u.a.createElement("div",{className:"my-codemirror-container"}," ",u.a.createElement("textarea",{ref:s})," ")}t["b"]=e=>{var t=e.callback,a=e.onCancel,n=Object(i["useState"])("python"),m=Object(l["a"])(n,2),d=m[0],f=m[1];function _(e){f(h[e][1])}function v(e){t(e)}return u.a.createElement(o["a"],Object(r["a"])({},g,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:v}),u.a.createElement(o["a"].Item,{label:"\u4ee3\u7801\u8bed\u8a00",name:"language"},u.a.createElement(s["a"],{onChange:_},Object.keys(h).map(e=>u.a.createElement(p,{key:e,value:e},h[e][0])))),u.a.createElement(o["a"].Item,{label:"\u4ee3\u7801\u5185\u5bb9",name:"content",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4ee3\u7801\u5185\u5bb9"}]},u.a.createElement(b,{mode:d})),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(c["a"],{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786e\u5b9a"),u.a.createElement(c["a"],{type:"ghost",onClick:a},"\u53d6\u6d88")))}},"942q":function(e,t,a){e.exports={flex_box_center:"flex_box_center___6uNR7",flex_space_between:"flex_space_between___1vpXN",flex_box_vertical_center:"flex_box_vertical_center___1P9h2",flex_box_center_end:"flex_box_center_end___2guA4",flex_box_column:"flex_box_column___1w5Zf",top:"top___2UvUE",desc:"desc___2mFum",liked:"liked___12VnN",likedActive:"likedActive___3ixY7",reply:"reply___29ShJ",replyList:"replyList___1F2kY",comment:"comment___2ZnmY"}},"9Bee":function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),c=(a("vg9a"),a("tJVT")),o=a("DlQD"),l=a.n(o),s=a("rUJ1");function i(e,t){var a=e.match(/^(\s+)(?:```)/);if(null===a)return t;var n=a[1];return t.split("\n").map(e=>{var t=e.match(/^\s+/);if(null===t)return e;var a=Object(c["a"])(t,1),r=a[0];return r.length>=n.length?e.slice(n.length):e}).join("\n")}var u=[],m=["