You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__User__ResetPassword.js

1 line
32 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[160,6],{"1vsH":function(e,n,t){"use strict";t.d(n,"i",(function(){return s})),t.d(n,"k",(function(){return u})),t.d(n,"e",(function(){return l})),t.d(n,"h",(function(){return d})),t.d(n,"c",(function(){return p})),t.d(n,"f",(function(){return m})),t.d(n,"g",(function(){return g})),t.d(n,"a",(function(){return _})),t.d(n,"y",(function(){return w})),t.d(n,"x",(function(){return f})),t.d(n,"z",(function(){return y})),t.d(n,"A",(function(){return h})),t.d(n,"r",(function(){return b})),t.d(n,"q",(function(){return v})),t.d(n,"o",(function(){return k})),t.d(n,"n",(function(){return E})),t.d(n,"w",(function(){return S})),t.d(n,"j",(function(){return j})),t.d(n,"v",(function(){return A})),t.d(n,"t",(function(){return O})),t.d(n,"l",(function(){return D})),t.d(n,"u",(function(){return C})),t.d(n,"m",(function(){return F})),t.d(n,"d",(function(){return M})),t.d(n,"b",(function(){return T})),t.d(n,"s",(function(){return P})),t.d(n,"p",(function(){return R}));var r=t("q1tI"),o=t.n(r),a=t("xKgJ"),i=t("aCH8"),c=t.n(i),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"],u=e=>{var n={[-1]:"\u91cd\u505a\u4e2d",0:"\u672a\u5f00\u542f",1:"\u672a\u901a\u5173",2:"\u6309\u65f6\u901a\u5173"};return n[e]||"\u8fdf\u4ea4\u901a\u5173"},l=e=>{var n,t,r={[-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 o.a.createElement("span",{className:null===r||void 0===r||null===(n=r[e.status])||void 0===n?void 0:n["class"]},null===r||void 0===r||null===(t=r[e.status])||void 0===t?void 0:t["name"])},d=e=>{var n=e.status,t={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 o.a.createElement("span",{className:t[n]["class"]},t[n]["name"])}catch(r){console.log("utils.StatusGraduationProjectTags",e.status)}},p={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},m={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},g=e=>{var n={"\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"}},t=[];e.is_random&&t.push(o.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((e,r)=>{t.push(o.a.createElement("span",{key:r,className:n[e]&&n[e]["class"]},e))})}catch(r){console.log("utils.status.tag:",r,e.status)}return t},_=e=>{var n,t,r={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 o.a.createElement("span",{className:null===(n=r[e.status])||void 0===n?void 0:n["class"]},null===(t=r[e.status])||void 0===t?void 0:t["name"])},w=e=>{e=new Date(e).getTime();var n=6e4,t=60*n,r=24*t,o="",a=(new Date).getTime(),i=a-e;if(i<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 c=parseInt(i/r,10),s=parseInt(i/t,10),u=parseInt(i/n,10);return o=c>30?""+f(e,"yyyy-MM-dd"):c>1?c+"\u5929\u524d":1==c?"\u6628\u5929":s>=1?s+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",o},f=(e,n)=>{"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var t={"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()},r=[["\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 o in/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(n)&&(n=n.replace(RegExp.$1,r[RegExp.$1.length-1][e.getDay()])),t)new RegExp("("+o+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?t[o]:("00"+t[o]).substr((""+t[o]).length)));return n},y=e=>{if(!e)return"0";console.log("time:",e);var n=60,t=60*n,r=24*t,o=e/r,a=e/t,i=e/n;return o>=1?parseInt(o.toString())+"\u5929"+Math.floor(a%24)+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":a>1?parseInt(a.toString())+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":e+"\u79d2"},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,t=0;if(e){t=e.length;for(var r=0;r<t;r++){var o=e.charCodeAt(r);o>=55296&&o<=56319&&(t--,r++)}}return t<=n},b=(e,n,t)=>{if(n){var r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\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,o=/[\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,a=o.test(n),i=r.test(n);(!0===a||!0===i||n.length<2||n.length>=21)&&t("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}t()},v=(e,n,t)=>{if(n){var r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\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,o=/[\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,a=o.test(n),i=r.test(n);(!0===a||!0===i||n.length<2||n.length>=11)&&t("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}t()},k=e=>{if(!e)return"";for(var n=e.length-1,t="",r=0;r<n;r++)t+="*";var o=e.substr(0,1)+t;return o},E=(e,n)=>{var t=new FileReader;t.addEventListener("load",()=>n(t.result)),t.readAsDataURL(e)};function S(e){var n="79e33abd4b6588941ab7622aed1e67e8";return c()(n+e)}function j(e,n){var t=document.createElement("a");document.body.appendChild(t),t.href=n,t.download=e;var r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),t.dispatchEvent(r),document.body.removeChild(t)}var A=e=>{var n=e.url,t=e.query;return n?(t&&function(){var e=[],r=function(n){t.hasOwnProperty(n)&&!I(t[n])&&("object"===typeof t[n]?t[n].map(r=>{e.push("".concat(n,"[]=").concat(t[n]))}):e.push("".concat(n,"=").concat(t[n])))};for(var o in t)r(o);n=-1!==n.indexOf("?")?"".concat(n,"&").concat(e.join("&")):"".concat(n,"?").concat(e.join("&"))}(),n):""};function O(){for(var e=navigator.userAgent,n=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,r=0;r<n.length;r++)if(e.indexOf(n[r])>0){t=!1;break}return t}var x,D=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===n||void 0===n||null===(e=n.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},C=e=>{var n=document.createElement("a");n.target="_blank",document.body.appendChild(n),n.href=e;var t=document.createEvent("MouseEvents");t.initEvent("click",!1,!1),n.dispatchEvent(t),document.body.removeChild(n)},F=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))},M=()=>{var e=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(e++,n="00"):n="30",e+":"+n},T=()=>{var e=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(e++,n="00"):n="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+n};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(x||(x={}));var V=e=>{var n=Object.prototype.toString.call(e);return n.substring(8,n.length-1)},P=e=>V(e)===x.Array?0===e.length:V(e)===x.Object?0===Object.keys(e).length:!e,I=e=>void 0===e||null===e;var R=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===(n=Object(a["o"])())||void 0===n?void 0:n.login,"/videos")):"";var n;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}}},LsG1:function(e,n,t){"use strict";t.r(n);var r,o=t("WmNS"),a=t.n(o),i=(t("miYZ"),t("tsqr")),c=t("9og8"),s=t("q1tI"),u=t.n(s),l=(t("+L6B"),t("2/Rp")),d=(t("5NDa"),t("5rEg")),p=(t("y8nQ"),t("Vl3Y")),m=t("tJVT"),g=t("k1fw"),_=t("comi"),w=t("1vsH"),f=t("9kvl"),y=t("uYtH"),h={height:40},b=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|([1][3,4,5,6,7,8,9][0-9]{9})/i,v={timer:0,verifyCodeMessage:"",verifyNameMessage:""};function k(e,n){switch(n.type){case r.setTimer:return Object(g["a"])(Object(g["a"])({},e),{},{timer:n.payload});case r.setVerifyCodeMessage:return Object(g["a"])(Object(g["a"])({},e),{},{verifyCodeMessage:n.payload});case r.setVerifyNameMessage:return Object(g["a"])(Object(g["a"])({},e),{},{verifyNameMessage:n.payload});default:throw new Error}}(function(e){e[e["setTimer"]=0]="setTimer",e[e["setVerifyCodeMessage"]=1]="setVerifyCodeMessage",e[e["setVerifyNameMessage"]=2]="setVerifyNameMessage"})(r||(r={}));var E=e=>{var n=e.validateName,t=e.getCode,o=e.callback,i=e.style,g=void 0===i?{}:i,E=p["a"].useForm(),S=Object(m["a"])(E,1),j=S[0],A=Object(s["useReducer"])(k,v),O=Object(m["a"])(A,2),x=O[0],D=O[1],C=x.verifyCodeMessage,F=x.verifyNameMessage,M=x.timer;function T(e){return V.apply(this,arguments)}function V(){return V=Object(c["a"])(a.a.mark((function e(n){var t,i,c,s,u;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.login,i=n.new_password,c=n.code,s=n.new_password_confirmation,e.next=3,o({login:t,new_password_confirmation:s,new_password:i,code:c});case 3:u=e.sent,D({type:r.setVerifyCodeMessage,payload:u}),u||f["c"].replace("/");case 6:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function P(){j.setFieldsValue({verify:!1}),D({type:r.setVerifyNameMessage,payload:""})}function I(){return R.apply(this,arguments)}function R(){return R=Object(c["a"])(a.a.mark((function e(){var t,o,i,c,s;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=j.getFieldValue("login"),!b.test(t)){e.next=10;break}return e.next=4,n({login:t,type:2});case 4:return o=e.sent,i=o.status,c=o.message,s=i>0,s||D({type:r.setVerifyNameMessage,payload:c}),e.abrupt("return",s);case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function N(){var e=j.getFieldValue("verify"),n=j.getFieldValue("login");if(e){D({type:r.setVerifyCodeMessage,payload:""});var o=t({login:n,type:2,smscode:Object(w["w"])(n)}),a=o.status,i=o.message;a<0&&D({type:r.setVerifyCodeMessage,payload:i}),D({type:r.setTimer,payload:60})}else j.validateFields(["verify"])}function L(e,n){var t=n.length;return t>=8&&t<=16?Promise.resolve():Promise.reject("\u5bc6\u7801\u7684\u957f\u5ea6\u57288\u523016\u4f4d\u4e4b\u95f4")}return Object(s["useEffect"])(()=>{M>0&&setTimeout(()=>{D({type:r.setTimer,payload:M-1})},1e3)},[M]),u.a.createElement(p["a"],{layout:"vertical",form:j,style:g,initialValues:{autologin:!0,protool:!0},onFinish:T},u.a.createElement(p["a"].Item,{name:"login",extra:F?u.a.createElement("span",{className:"error"},F):null,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u624b\u673a\u53f7/\u90ae\u7bb1"},{pattern:b,message:"\u624b\u673a\u53f7\u6216\u8005\u90ae\u7bb1\u683c\u5f0f\u6709\u8bef"}]},u.a.createElement(d["a"],{style:h,size:"large",placeholder:"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u624b\u673a\u53f7/\u90ae\u7bb1\u53f7",onChange:P})),u.a.createElement(p["a"].Item,{name:"verify",rules:[{validator:(e,n)=>n?Promise.resolve():Promise.reject("\u8bf7\u9a8c\u8bc1\u624b\u673a\u53f7/\u90ae\u7bb1\u53f7")}]},u.a.createElement(_["a"],{onValidate:I})),u.a.createElement(p["a"].Item,{name:"new_password",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801"},{validator:L}]},u.a.createElement(d["a"].Password,{style:h,size:"large",placeholder:"\u8f93\u51658\uff5e16\u4f4d\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199"})),u.a.createElement(p["a"].Item,{name:"new_password_confirmation",rules:[{required:!0,message:"\u8bf7\u518d\u6b21\u8f93\u5165\u65b0\u5bc6\u7801"},e=>{var n=e.getFieldValue;return{validator(e,t){return t&&n("new_password")!==t?Promise.reject("\u4e24\u6b21\u5bc6\u7801\u4e0d\u4e00\u81f4"):Promise.resolve()}}}]},u.a.createElement(d["a"].Password,{style:h,size:"large",placeholder:"\u518d\u6b21\u8f93\u5165\u65b0\u5bc6\u7801"})),u.a.createElement(p["a"].Item,{extra:C?u.a.createElement("span",{className:"error"},C):null},u.a.createElement("div",{className:"flex-container"},u.a.createElement(p["a"].Item,{name:"code",noStyle:!0,rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"}]},u.a.createElement(d["a"],{style:{width:"calc(100% - 100px)",height:40,marginRight:6},placeholder:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801",size:"large"})),u.a.createElement(l["a"],{size:"large",type:"primary",style:h,onClick:N,disabled:M>0}," ",0===M?"\u83b7\u53d6\u9a8c\u8bc1\u7801":"\u91cd\u65b0\u53d1\u9001".concat(M,"s")))),u.a.createElement(p["a"].Item,null,u.a.createElement(l["a"],{size:"large",type:"primary",htmlType:"submit",block:!0,style:h}," \u5b8c\u6210 ")),u.a.createElement(p["a"].Item,null,u.a.createElement(y["Link"],{to:"/user/login"},"\u8fd4\u56de\u767b\u5f55")))},S=t("YrPe");n["default"]=()=>{var e={getCode:S["a"],callback:function(){var e=Object(c["a"])(a.a.mark((function e(n){var t;return a.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(S["c"])(n);case 2:if(t=e.sent,0===t.status){e.next=5;break}return e.abrupt("return",t.message);case 5:return i["a"].info("\u91cd\u7f6e\u5bc6\u7801\u6210\u529f"),e.abrupt("return","");case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}(),validateName:S["d"]};return u.a.createElement(E,e)}},YrPe:function(e,n,t){"use strict";t.d(n,"d",(function(){return o})),t.d(n,"a",(function(){return a})),t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return c}));var r=t("ErOA");function o(e){return Object(r["c"])("accounts/valid_email_and_phone.json",e)}function a(e){return Object(r["c"])("accounts/get_verification_code.json",e)}function i(e){return Object(r["d"])("accounts/register.json",e)}function c(e){return Object(r["d"])("accounts/reset_password.json",e)}},comi:function(e,n,t){"use strict";var r=t("WmNS"),o=t.n(r),a=t("9og8"),i=t("tJVT"),c=t("k1fw"),s=t("q1tI"),u=t.n(s),l=(t("tJYU"),t("bRQS")),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},p=d,m=t("6VBw"),g=function(e,n){return s["createElement"](m["a"],Object.assign({},e,{ref:n,icon:p}))};g.displayName="DoubleRightOutlined";var _,w=s["forwardRef"](g),f={moveX:0,verify:!1};function y(e,n){switch(n.type){case _.SET_MOVEX:return Object(c["a"])(Object(c["a"])({},e),{},{moveX:n.payload});case _.VERIFY:return Object(c["a"])(Object(c["a"])({},e),n.payload);default:throw new Error}}(function(e){e[e["SET_MOVEX"]=0]="SET_MOVEX",e[e["VERIFY"]=1]="VERIFY"})(_||(_={}));n["a"]=e=>{var n=e.value,t=e.onChange,r=e.onValidate,c=Object(s["useReducer"])(y,f),d=Object(i["a"])(c,2),p=d[0],m=d[1],g=p.moveX,h=p.verify,b=Object(s["useRef"])(),v=Object(s["useRef"])(),k=Object(s["useRef"])(),E=Object(s["useRef"])(),S=Object(s["useMemo"])(()=>{if(v.current)return v.current.getBoundingClientRect()},[v.current]);function j(){h||(E.current=!0,b.current.style.transition="",k.current.style.transition="")}return Object(s["useEffect"])(()=>{if(S){var e=!1,n=S.width,i=S.left,c=n-40;function s(e){return u.apply(this,arguments)}function u(){return u=Object(a["a"])(o.a.mark((function n(a){var s;return o.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!E.current){n.next=14;break}if(s=a.pageX-i,s<0&&(s=0),!(s>=c)){n.next=13;break}return E.current=!1,s=c,n.next=8,r();case 8:e=n.sent,m({type:_.VERIFY,payload:{moveX:s,verify:e}}),t(e),n.next=14;break;case 13:m({type:_.SET_MOVEX,payload:s});case 14:case"end":return n.stop()}}),n)}))),u.apply(this,arguments)}function l(){E.current=!1,e||(b.current.style.transition="left .5s ease",k.current.style.transition="width .5s ease",m({type:_.VERIFY,payload:{moveX:0}}))}return window.addEventListener("mousemove",s),window.addEventListener("mouseup",l),()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l)}}},[S]),Object(s["useEffect"])(()=>{m({type:_.VERIFY,payload:{verify:n,moveX:n?(null===S||void 0===S?void 0:S.width)-40:0}})},[n]),u.a.createElement("div",{ref:v,className:"unlock-wrapper"},u.a.createElement("div",{ref:k,className:"unlock-bg",style:{width:g}}),u.a.createElement("div",{className:"unlock-text"},h?"\u9a8c\u8bc1\u901a\u8fc7":"\u62d6\u52a8\u6ed1\u5757\u9a8c\u8bc1"),u.a.createElement("div",{ref:b,onMouseDown:j,style:{left:g},className:"unlock-handler"},h?u.a.createElement(l["a"],null):u.a.createElement(w,null)))}},tJYU:function(e,n,t){},xKgJ:function(e,n,t){"use strict";t.d(n,"k",(function(){return s})),t.d(n,"c",(function(){return u})),t.d(n,"d",(function(){return l})),t.d(n,"e",(function(){return d})),t.d(n,"n",(function(){return p})),t.d(n,"f",(function(){return m})),t.d(n,"h",(function(){return g})),t.d(n,"i",(function(){return _})),t.d(n,"m",(function(){return w})),t.d(n,"g",(function(){return f})),t.d(n,"l",(function(){return y})),t.d(n,"b",(function(){return h})),t.d(n,"a",(function(){return b})),t.d(n,"j",(function(){return v})),t.d(n,"o",(function(){return k}));var r,o,a=t("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(r||(r={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(o||(o={}));var i=e=>{var n=Object(a["b"])()._store.getState(),t=n.user,r=t.userInfo;return e.some(e=>e==(null===r||void 0===r?void 0:r.role))},c=e=>{var n=Object(a["b"])()._store.getState(),t=n.user,r=t.userInfo;return!!(null===r||void 0===r?void 0:r.own)||e.some(e=>{var n;return e==(null===r||void 0===r||null===(n=r.course)||void 0===n?void 0:n.course_role)})},s=()=>{var e=Object(a["b"])()._store.getState(),n=e.user,t=n.userInfo;return t.main_site},u=()=>{var e,n=Object(a["b"])()._store.getState(),t=n.user,r=t.userInfo;return null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_is_end},l=()=>c([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant]),d=()=>c([o.SuperAdmin,o.Teacher,o.Admin]),p=()=>c([o.SuperAdmin]),m=()=>c([o.SuperAdmin,o.Operation,o.Admin]),g=()=>c([o.SuperAdmin,o.Operation,o.Admin,o.Teacher]),_=()=>c([o.Assistant]),w=()=>c([o.Student]),f=()=>c([o.SuperAdmin,o.Operation,o.Admin,o.Teacher,o.Assistant,o.Student]),y=()=>{var e,n=Object(a["b"])()._store.getState(),t=n.user,r=t.userInfo;return null===(null===r||void 0===r||null===(e=r.course)||void 0===e?void 0:e.course_role)},h=function(){return i([r.SuperAdmin,r.Operation,r.CertifiedTeacher,r.TrainingProduction])},b=function(){return c([o.Teacher,r.CertifiedTeacher])},v=()=>{var e,n=Object(a["b"])()._store.getState(),t=n.user;return!!(null===(e=t.userInfo)||void 0===e?void 0:e.login)},k=()=>{var e=Object(a["b"])()._store.getState(),n=e.user;return n.userInfo}}}]);