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.
1 line
39 KiB
1 line
39 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[79,5],{"1vsH":function(e,n,t){"use strict";t.d(n,"i",(function(){return l})),t.d(n,"k",(function(){return u})),t.d(n,"e",(function(){return d})),t.d(n,"h",(function(){return _})),t.d(n,"c",(function(){return p})),t.d(n,"f",(function(){return m})),t.d(n,"g",(function(){return v})),t.d(n,"a",(function(){return g})),t.d(n,"C",(function(){return w})),t.d(n,"B",(function(){return f})),t.d(n,"D",(function(){return b})),t.d(n,"E",(function(){return h})),t.d(n,"s",(function(){return y})),t.d(n,"r",(function(){return k})),t.d(n,"p",(function(){return E})),t.d(n,"o",(function(){return S})),t.d(n,"A",(function(){return x})),t.d(n,"j",(function(){return O})),t.d(n,"z",(function(){return A})),t.d(n,"u",(function(){return D})),t.d(n,"l",(function(){return T})),t.d(n,"x",(function(){return C})),t.d(n,"n",(function(){return F})),t.d(n,"d",(function(){return N})),t.d(n,"b",(function(){return M})),t.d(n,"t",(function(){return R})),t.d(n,"y",(function(){return W})),t.d(n,"w",(function(){return J})),t.d(n,"m",(function(){return H})),t.d(n,"v",(function(){return G})),t.d(n,"q",(function(){return B}));var o=t("zjzt"),a=t("ZZRV"),r=t.n(a),i=t("xKgJ"),c=t("vcnW"),s=t.n(c),l=["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=function(e){var n,t=(n={},Object(o["a"])(n,-1,"\u91cd\u505a\u4e2d"),Object(o["a"])(n,0,"\u672a\u5f00\u542f"),Object(o["a"])(n,1,"\u672a\u901a\u5173"),Object(o["a"])(n,2,"\u6309\u65f6\u901a\u5173"),n);return t[e]||"\u8fdf\u4ea4\u901a\u5173"},d=function(e){var n,t,a,i=(n={},Object(o["a"])(n,-1,{name:"\u91cd\u505a\u4e2d",class:"c-orange"}),Object(o["a"])(n,0,{name:"\u672a\u5f00\u542f",class:"c-black"}),Object(o["a"])(n,1,{name:"\u672a\u901a\u5173",class:"c-red"}),Object(o["a"])(n,2,{name:"\u6309\u65f6\u901a\u5173",class:"c-green"}),Object(o["a"])(n,3,{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}),n);return r.a.createElement("span",{className:null===i||void 0===i||null===(t=i[e.status])||void 0===t?void 0:t["class"]},null===i||void 0===i||null===(a=i[e.status])||void 0===a?void 0:a["name"])},_=function(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 r.a.createElement("span",{className:t[n]["class"]},t[n]["name"])}catch(o){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"},v=function(e){var n={"\u5df2\u5f00\u542f\u9632\u4f5c\u5f0a":{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},"\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(r.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((function(e,o){t.push(r.a.createElement("span",{key:o,className:n[e]&&n[e]["class"]},e))}))}catch(o){console.log("utils.status.tag:",o,e.status)}return t},g=function(e){var n,t,o={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===(n=o[e.status])||void 0===n?void 0:n["class"]},null===(t=o[e.status])||void 0===t?void 0:t["name"])},w=function(e){e=new Date(e).getTime();var n=6e4,t=60*n,o=24*t,a="",r=(new Date).getTime(),i=r-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/o,10),s=parseInt(i/t,10),l=parseInt(i/n,10);return a=c>30?""+f(e,"yyyy-MM-dd"):c>1?c+"\u5929\u524d":1==c?"\u6628\u5929":s>=1?s+"\u5c0f\u65f6\u524d":l>=5?l+"\u5206\u949f\u524d":"\u521a\u521a",a},f=function(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()},o=[["\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 a in/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(n)&&(n=n.replace(RegExp.$1,o[RegExp.$1.length-1][e.getDay()])),t)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?t[a]:("00"+t[a]).substr((""+t[a]).length)));return n},b=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var n=60,t=60*n,o=24*t,a=e/o,r=e/t,i=e/n;return a>=1?parseInt(a.toString())+"\u5929"+Math.floor(r%24)+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":r>1?parseInt(r.toString())+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(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 o=0;o<t;o++){var a=e.charCodeAt(o);a>=55296&&a<=56319&&(t--,o++)}}return t<=n},y=function(e,n,t){if(n){var o=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\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,a=/[\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,r=a.test(n),i=o.test(n);(!0===r||!0===i||n.length<2||n.length>=21)&&t("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}t()},k=function(e,n,t){if(n){var o=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\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,a=/[\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,r=a.test(n),i=o.test(n);(!0===r||!0===i||n.length<2||n.length>=11)&&t("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}t()},E=function(e){if(!e)return"";for(var n=e.length-1,t="",o=0;o<n;o++)t+="*";var a=e.substr(0,1)+t;return a},S=function(e,n){var t=new FileReader;t.addEventListener("load",(function(){return n(t.result)})),t.readAsDataURL(e)};function x(e){var n="79e33abd4b6588941ab7622aed1e67e8";return s()(n+e)}var j=function(e){var n,t=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(n=document.cookie.match(t))?decodeURIComponent(n[2]):null};var q=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function O(e,n){return new Promise((function(e,t){var o,a=n,r=document.createElement("iframe");console.log("downloadFileUrl",a),document.body.appendChild(r),r.src=a,r.style.display="none",o=setInterval((function(){j("fileDownload")&&(q("fileDownload"),clearInterval(o),e())}),1e3)}))}var A=function(e){var n=e.url,t=e.query;return n?(t&&function(){var e=[],o=function(n){t.hasOwnProperty(n)&&!G(t[n])&&("object"===typeof t[n]?t[n].map((function(t){e.push("".concat(n,"[]=").concat(t))})):e.push("".concat(n,"=").concat(t[n])))};for(var a in t)o(a);n=-1!==n.indexOf("?")?"".concat(n,"&").concat(e.join("&")):"".concat(n,"?").concat(e.join("&")),console.log("url1111",n)}(),n):""};function D(){for(var e=navigator.userAgent,n=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,o=0;o<n.length;o++)if(e.indexOf(n[o])>0){t=!1;break}return t}var I,T=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=function(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))},N=function(){var e=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(e++,n="00"):n="30",e+":"+n},M=function(){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"})(I||(I={}));var P=function(e){var n=Object.prototype.toString.call(e);return n.substring(8,n.length-1)},R=function(e){return P(e)===I.Array?0===e.length:P(e)===I.Object?0===Object.keys(e).length:!e},W=function(e,n){for(var t=[],o=e;o<n;o++)t.push(o);return t},J=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,t=n/2-2,o=n/2+3;return e.length>n?e.substr(0,t)+"..."+e.substr(o,n):e},H=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},G=function(e){return void 0===e||null===e};var B=function(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/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));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/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?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(i["t"])())||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}}},"5b1O":function(e,n,t){"use strict";t.r(n),t.d(n,"checkedOtherName",(function(){return H}));t("MPZO");var o=t("bnk9"),a=(t("IIfR"),t("w3Ok")),r=(t("E+ey"),t("sY1U")),i=(t("XZgM"),t("TFeq")),c=(t("RXQH"),t("VgM2")),s=(t("XSsT"),t("iBFk")),l=(t("X/R0"),t("M6G9")),u=(t("rjoL"),t("TMtJ")),d=t("VBJJ"),_=t.n(d),p=t("55MS"),m=t("z3+T"),v=t("GZha"),g=t("buSX"),w=(t("X0kX"),t("qoS/")),f=(t("jpv3"),t("9rdS")),b=t("ZZRV"),h=t.n(b),y=t("q5+0"),k=t("9kvl"),E=t("DndG"),S=t("0YPX"),x=t("NfTp"),j=t.n(x),q=t("blMm"),O=t.n(q),A=t("1vsH"),D=t("oUNq"),I=t("xKgJ"),T=(t("DHCt"),t("CRgH")),C=(t("9cas"),t("twZV")),F=function(e){var n,t,o,a,r=e.itemData,i=e.answerData,c=e.onSave,s=void 0===c?function(){}:c,l=Object(b["useState"])([]),u=Object(v["a"])(l,2),d=u[0],_=u[1],p=Object(b["useState"])(),m=Object(v["a"])(p,2),g=m[0],w=m[1],f=Object(b["useState"])(),y=Object(v["a"])(f,2),k=y[0],E=y[1];Object(b["useEffect"])((function(){var e;_((null===r||void 0===r||null===(e=r.question)||void 0===e?void 0:e.answers)||[])}),[null===r||void 0===r||null===(n=r.question)||void 0===n?void 0:n.answers]),Object(b["useEffect"])((function(){var e,n;w(null===r||void 0===r||null===(e=r.question)||void 0===e||null===(n=e.poll_answer_ids)||void 0===n?void 0:n[0])}),[null===r||void 0===r||null===(t=r.question)||void 0===t?void 0:t.poll_answer_ids]),Object(b["useEffect"])((function(){var e;E(null===r||void 0===r||null===(e=r.question)||void 0===e?void 0:e.poll_vote_texts)}),[null===r||void 0===r||null===(o=r.question)||void 0===o?void 0:o.poll_vote_texts]);var S=function(e,n){var t;w(e);var o=null===(t=d.find((function(e){return H(e.answer_text)})))||void 0===t?void 0:t.answer_id;s(n,e,e===o?k:"")},x=function(e){var n;if(g){var t=null===(n=d.find((function(e){return H(e.answer_text)})))||void 0===n?void 0:n.answer_id;s(e,g,g===t?k:"")}};return h.a.createElement(C["a"].Group,{disabled:Object(I["c"])()||Object(I["q"])()&&1===(null===i||void 0===i||null===(a=i.poll)||void 0===a?void 0:a.user_poll_status),value:g,onChange:function(e){var n;S(e.target.value,null===r||void 0===r||null===(n=r.question)||void 0===n?void 0:n.id)}},d.map((function(e,n){return h.a.createElement("div",{className:"".concat(O.a.answerWrap," ").concat(O.a.flexRow),key:n},h.a.createElement(C["a"],{value:null===e||void 0===e?void 0:e.answer_id}),h.a.createElement("span",{className:"font14"},null===e||void 0===e?void 0:e.answer_text),H(null===e||void 0===e?void 0:e.answer_text)&&h.a.createElement(T["a"],{className:O.a.otherInput,value:k,onChange:function(e){return E(e.target.value)},onBlur:function(e){var n;return x(null===r||void 0===r||null===(n=r.question)||void 0===n?void 0:n.id)}}))})))},N=F,M=(t("GrpF"),t("Xc/e")),P=function(e){var n,t,o,a,r=e.itemData,i=e.answerData,c=e.onSave,s=void 0===c?function(){}:c,l=Object(b["useState"])([]),u=Object(v["a"])(l,2),d=u[0],_=u[1],p=Object(b["useState"])(),m=Object(v["a"])(p,2),g=m[0],w=m[1],f=Object(b["useState"])(),y=Object(v["a"])(f,2),k=y[0],E=y[1];Object(b["useEffect"])((function(){var e;_((null===r||void 0===r||null===(e=r.question)||void 0===e?void 0:e.answers)||[])}),[null===r||void 0===r||null===(n=r.question)||void 0===n?void 0:n.answers]),Object(b["useEffect"])((function(){var e;w(null===r||void 0===r||null===(e=r.question)||void 0===e?void 0:e.poll_answer_ids)}),[null===r||void 0===r||null===(t=r.question)||void 0===t?void 0:t.poll_answer_ids]),Object(b["useEffect"])((function(){var e;E(null===r||void 0===r||null===(e=r.question)||void 0===e?void 0:e.poll_vote_texts)}),[null===r||void 0===r||null===(o=r.question)||void 0===o?void 0:o.poll_vote_texts]);var S=function(e,n){var t;w(e);var o=null===(t=d.find((function(e){return H(e.answer_text)})))||void 0===t?void 0:t.answer_id;e.includes(o)?s(n,e,k):s(n,e,"")},x=function(e){var n;if(null===g||void 0===g?void 0:g.length){var t=null===(n=d.find((function(e){return H(e.answer_text)})))||void 0===n?void 0:n.answer_id;g.includes(t)?s(e,g,k):s(e,g,"")}};return h.a.createElement(M["a"].Group,{disabled:Object(I["c"])()||Object(I["q"])()&&1===(null===i||void 0===i||null===(a=i.poll)||void 0===a?void 0:a.user_poll_status),value:g,onChange:function(e){var n;S(e,null===r||void 0===r||null===(n=r.question)||void 0===n?void 0:n.id)}},null===d||void 0===d?void 0:d.map((function(e,n){return h.a.createElement("div",{className:"".concat(O.a.answerWrap," ").concat(O.a.flexRow)},h.a.createElement(M["a"],{value:null===e||void 0===e?void 0:e.answer_id}),h.a.createElement("span",{className:"font14"},null===e||void 0===e?void 0:e.answer_text),H(null===e||void 0===e?void 0:e.answer_text)&&h.a.createElement(T["a"],{className:O.a.otherInput,value:k,onChange:function(e){return E(e.target.value)},onBlur:function(e){var n;return x(null===r||void 0===r||null===(n=r.question)||void 0===n?void 0:n.id)}}))})))},R=P,W=function(e){var n,t,o=e.itemData,a=e.answerData,r=e.onSave,i=void 0===r?function(){}:r,c=Object(b["useState"])(),s=Object(v["a"])(c,2),l=s[0],u=s[1];return Object(b["useEffect"])((function(){var e;u(null===o||void 0===o||null===(e=o.question)||void 0===e?void 0:e.poll_vote_texts)}),[null===o||void 0===o||null===(n=o.question)||void 0===n?void 0:n.poll_vote_texts]),h.a.createElement("div",null,h.a.createElement("textarea",{className:O.a.answerSubjective,placeholder:"\u5728\u6b64\u586b\u5165\u7b54\u6848",disabled:Object(I["c"])()||Object(I["q"])()&&1===(null===a||void 0===a||null===(t=a.poll)||void 0===t?void 0:t.user_poll_status),value:l,onChange:function(e){return u(e.target.value)},onBlur:function(e){var n;return i(null===o||void 0===o||null===(n=o.question)||void 0===n?void 0:n.id,null,l)}}))},J=W,H=(f["a"].SubMenu,w["a"].Content,w["a"].Sider,function(e){return"\u5176\u4ed6"===e||"\u5176\u5b83"===e}),G={1:"\u5355\u9009\u9898",2:"\u591a\u9009\u9898",3:"\u4e3b\u89c2\u9898"},B=function(e){e.globalSetting,e.loading;var n,t,d,w,f,x,q,T,C,F,M,P,W,H,B,L,z,U,V,X=e.user,Y=(e.dispatch,Object(g["a"])(e,["globalSetting","loading","user","dispatch"]),Object(y["m"])()),Z=Object(b["useState"])({}),$=Object(v["a"])(Z,2),K=$[0],Q=$[1];Object(b["useEffect"])((function(){ee()}),[Y.categoryId]);var ee=function(){var e=Object(m["a"])(_.a.mark((function e(){var n;return _.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(D["eb"])(Object(p["a"])({},Y));case 2:n=e.sent,n&&Q(n);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=Object(m["a"])(_.a.mark((function e(n,t,o){var a;return _.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=3;break}return console.error("handleSave no questionId params"),e.abrupt("return");case 3:return e.next=5,Object(D["yb"])({questionId:n,poll_answer_id:t,vote_text:o});case 5:a=e.sent,(null===a||void 0===a?void 0:a.poll_vote)&&(K.question_answered.find((function(e){return e.ques_id===n})).ques_status=a.poll_vote.question_status,Q(Object(p["a"])({},K)));case 7:case"end":return e.stop()}}),e)})));return function(n,t,o){return e.apply(this,arguments)}}(),te=function(){var e,n=0,t=0;null===K||void 0===K||null===(e=K.question_answered)||void 0===e||e.map((function(e){if(0===(null===e||void 0===e?void 0:e.ques_status)){var o,a,r,i=null===K||void 0===K||null===(o=K.questions)||void 0===o||null===(a=o.find((function(n){var t;return(null===n||void 0===n||null===(t=n.question)||void 0===t?void 0:t.id)===e.ques_id})))||void 0===a||null===(r=a.question)||void 0===r?void 0:r.is_necessary;1===i?n++:t++}})),n>0?u["a"].info({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u77e5\u9053\u5566",content:h.a.createElement("div",{className:"tc font16 c-black-333"},"\u6709 ",n," \u9898\u5fc5\u7b54\u9898\u672a\u7b54\uff0c\u65e0\u6cd5\u63d0\u4ea4 ",h.a.createElement("br",null),"\u8bf7\u5b8c\u6210\u5168\u90e8\u5fc5\u7b54\u9898\u540e\u518d\u63d0\u4ea4")}):u["a"].confirm({width:530,title:"\u63d0\u793a",centered:!0,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",content:h.a.createElement("div",{className:"tc font16 c-black-333"},t>0&&h.a.createElement(h.a.Fragment,null,"\u6709 ",t," \u9898\u672a\u7b54 ",h.a.createElement("br",null)),"\u63d0\u4ea4\u540e\u65e0\u6cd5\u518d\u4fee\u6539\u7b54\u9898\uff0c\u662f\u5426\u786e\u8ba4\u63d0\u4ea4\uff1f"),onOk:function(){oe()}})},oe=function(){var e=Object(m["a"])(_.a.mark((function e(){var n;return _.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(D["tb"])({categoryId:Y.categoryId});case 2:n=e.sent,0===(null===n||void 0===n?void 0:n.status)&&(l["b"].success(null===n||void 0===n?void 0:n.message),k["c"].push("/classrooms/".concat(Y.coursesId,"/poll/").concat(Y.categoryId,"/detail")));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return h.a.createElement("section",{className:"edu-container"},h.a.createElement("section",{className:"animated fadeIn"},h.a.createElement("aside",{className:"mt10"},h.a.createElement(s["a"],{separator:">"},h.a.createElement(s["a"].Item,null,h.a.createElement(E["Link"],{to:"/classrooms/".concat(Y.coursesId,"/poll")},null===K||void 0===K||null===(n=K.course)||void 0===n?void 0:n.name)),h.a.createElement(s["a"].Item,null,h.a.createElement(E["Link"],{to:"/classrooms/".concat(Y.coursesId,"/poll")},"\u95ee\u5377")),h.a.createElement(s["a"].Item,null,h.a.createElement(E["Link"],{to:"/classrooms/".concat(Y.coursesId,"/poll/").concat(Y.categoryId,"/detail")},"\u95ee\u5377\u8be6\u60c5")),h.a.createElement(s["a"].Item,null,null===(t=X.userInfo)||void 0===t?void 0:t.real_name))),h.a.createElement("aside",{className:[O.a.title,"mt20"].join(" ")},h.a.createElement(i["a"],{style:{width:"100%"}},h.a.createElement(c["a"],{flex:"1"},h.a.createElement(E["Link"],{to:"/classrooms/".concat(Y.coursesId,"/poll/").concat(Y.categoryId,"/detail")},h.a.createElement(S["a"],{className:"font16 c-black"})),h.a.createElement("strong",{className:"font24 ml5"},null===K||void 0===K||null===(d=K.poll)||void 0===d?void 0:d.polls_name),h.a.createElement(A["g"],{status:[A["f"][null===K||void 0===K||null===(w=K.poll)||void 0===w?void 0:w.poll_status]]})),h.a.createElement(c["a"],null))),(null===K||void 0===K||null===(f=K.poll)||void 0===f?void 0:f.polls_description)&&h.a.createElement("p",{className:O.a.pollDesc},null===K||void 0===K||null===(x=K.poll)||void 0===x?void 0:x.polls_description)),h.a.createElement("section",{className:[O.a.bg,"pt30","pl30","pr30","pb30","mt20","mb50"].join(" ")},h.a.createElement(i["a"],{gutter:[30,0]},h.a.createElement(c["a"],{className:""},h.a.createElement("aside",null,(null===K||void 0===K||null===(q=K.question_types)||void 0===q?void 0:q.q_counts)>0&&h.a.createElement("span",{className:"ml20 c-black"},"\u5408\u8ba1 ",null===K||void 0===K||null===(T=K.question_types)||void 0===T?void 0:T.q_counts,"\u9898\uff1a"),(null===K||void 0===K||null===(C=K.question_types)||void 0===C?void 0:C.q_singles)>0&&h.a.createElement("span",{className:"ml20 c-grey-999"},"\u5355\u9009\u9898 ",null===K||void 0===K||null===(F=K.question_types)||void 0===F?void 0:F.q_singles,"\u9898"),(null===K||void 0===K||null===(M=K.question_types)||void 0===M?void 0:M.q_doubles)>0&&h.a.createElement("span",{className:"ml20 c-grey-999"},"\u591a\u9009\u9898 ",null===K||void 0===K||null===(P=K.question_types)||void 0===P?void 0:P.q_doubles,"\u9898"),(null===K||void 0===K||null===(W=K.question_types)||void 0===W?void 0:W.q_mains)>0&&h.a.createElement("span",{className:"ml20 c-grey-999"},"\u4e3b\u89c2\u9898 ",null===K||void 0===K||null===(H=K.question_types)||void 0===H?void 0:H.q_mains,"\u9898")))),h.a.createElement(r["a"],null),h.a.createElement(i["a"],{gutter:[30,0]},h.a.createElement(c["a"],{flex:"1"},h.a.createElement("span",{className:"".concat(O.a.answered," mr40 pl30")},"\u5df2\u7b54"),h.a.createElement("span",{className:O.a.unanswer},"\u672a\u7b54")),h.a.createElement(c["a"],null,h.a.createElement("span",{className:"c-grey-999"},"\u622a\u6b62\u65f6\u95f4 ",(null===K||void 0===K||null===(B=K.poll)||void 0===B?void 0:B.end_time)&&j()(null===K||void 0===K||null===(L=K.poll)||void 0===L?void 0:L.end_time).format("YYYY-MM-DD HH:mm")))),h.a.createElement(i["a"],{gutter:[30,0],className:"mt10"},h.a.createElement(c["a"],{flex:"1"},h.a.createElement(a["a"],{affix:!1,className:O.a.anchor},null===K||void 0===K||null===(z=K.question_answered)||void 0===z?void 0:z.map((function(e,n){return h.a.createElement(a["a"].Link,{className:"".concat(O.a.answerFlag," ").concat(1==e.ques_status?O.a.answerActive:""),href:"#Anchor_".concat(n),title:e.ques_number})}))))),h.a.createElement(r["a"],null),h.a.createElement("div",null,null===K||void 0===K||null===(U=K.questions)||void 0===U?void 0:U.map((function(e,n){return h.a.createElement("div",{className:O.a.questionItem,id:"Anchor_".concat(n)},h.a.createElement("div",{className:O.a.itemType},h.a.createElement("span",{className:"font16 c-blue mr5"},e.question.question_number,"\u3001",G[e.question.question_type]),h.a.createElement("span",{className:O.a.itemFlag},1==e.question.is_necessary?"\u5fc5\u7b54":"\u9009\u7b54"),2==e.question.question_type&&e.question.min_choices&&e.question.max_choices&&h.a.createElement("span",null,e.question.min_choices==e.question.max_choices?"\u53ef\u9009"+e.question.max_choices+"\u9879":"\u53ef\u9009"+e.question.min_choices+"-"+e.question.max_choices+"\u9879")),h.a.createElement("p",null,e.question.question_title),1==e.question.question_type&&h.a.createElement(N,{answerData:K,itemData:e,onSave:ne}),2==e.question.question_type&&h.a.createElement(R,{answerData:K,itemData:e,onSave:ne}),3==e.question.question_type&&h.a.createElement(J,{answerData:K,itemData:e,onSave:ne}))})))),Object(I["q"])()&&0===(null===K||void 0===K||null===(V=K.poll)||void 0===V?void 0:V.user_poll_status)&&h.a.createElement("div",{className:"mt30 mb50"},h.a.createElement(o["a"],{className:O.a.submitButton,type:"primary",onClick:te},"\u63d0\u4ea4")))};n["default"]=Object(k["a"])((function(e){var n=e.loading,t=e.user,o=e.globalSetting;return{globalSetting:o,user:t,loading:n.effects}}))(B)},blMm:function(e,n,t){e.exports={flex_box_center:"flex_box_center___2bLPg",flex_space_between:"flex_space_between___ii_Ys",flex_box_vertical_center:"flex_box_vertical_center___18wOe",flex_box_center_end:"flex_box_center_end___1SRoQ",flex_box_column:"flex_box_column___blnVc",bg:"bg___3sTdE",title:"title___2Y9p8",questionIcons:"questionIcons___2ujoX",green:"green___1xTdr",orange:"orange___2RDy1",greenTip:"greenTip___jAu9x",redTip:"redTip___vdwze",orangeTip:"orangeTip___1_p7v",pollDesc:"pollDesc___2W78a",answered:"answered___1kVWf",unanswer:"unanswer___aOwgL",anchor:"anchor___vMbGr",answerFlag:"answerFlag___3rj3E",answerActive:"answerActive___3f5r8",questionItem:"questionItem___3ztao",itemType:"itemType___2PfIv",itemFlag:"itemFlag___2SMq7",answerWrap:"answerWrap___3wcDW",answerSubjective:"answerSubjective___1shV7",otherInput:"otherInput___10b9e",submitButton:"submitButton___3VWix",flexRow:"flexRow___2Jt_u"}},xKgJ:function(e,n,t){"use strict";t.d(n,"o",(function(){return s})),t.d(n,"b",(function(){return l})),t.d(n,"c",(function(){return u})),t.d(n,"e",(function(){return d})),t.d(n,"f",(function(){return _})),t.d(n,"r",(function(){return p})),t.d(n,"g",(function(){return m})),t.d(n,"s",(function(){return v})),t.d(n,"d",(function(){return g})),t.d(n,"i",(function(){return w})),t.d(n,"j",(function(){return f})),t.d(n,"q",(function(){return b})),t.d(n,"h",(function(){return h})),t.d(n,"p",(function(){return y})),t.d(n,"a",(function(){return k})),t.d(n,"l",(function(){return E})),t.d(n,"m",(function(){return S})),t.d(n,"k",(function(){return x})),t.d(n,"n",(function(){return j})),t.d(n,"t",(function(){return q}));var o,a,r=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"})(o||(o={})),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"}(a||(a={}));var i=function(e){var n=Object(r["b"])()._store.getState(),t=n.user,o=t.userInfo;return e.some((function(e){return e==(null===o||void 0===o?void 0:o.role)}))},c=function(e){var n=Object(r["b"])()._store.getState(),t=n.user,o=t.userInfo;return!!(null===o||void 0===o?void 0:o.own)||e.some((function(e){var n;return e==(null===o||void 0===o||null===(n=o.course)||void 0===n?void 0:n.course_role)}))},s=function(){var e=Object(r["b"])()._store.getState(),n=e.user,t=n.userInfo;return t.main_site},l=function(){var e,n=Object(r["b"])()._store.getState(),t=n.user,o=t.userInfo;return null===o||void 0===o||null===(e=o.course)||void 0===e?void 0:e.course_is_end},u=function(){return c([a.SuperAdmin,a.Operation,a.Admin,a.Teacher,a.Assistant])},d=function(){return c([a.SuperAdmin,a.Teacher,a.Admin,a.Assistant,a.Operation])},_=function(){return c([a.SuperAdmin,a.Teacher,a.Admin])},p=function(){return c([a.SuperAdmin])},m=function(){return c([a.SuperAdmin,a.Operation,a.Admin])},v=function(){return c([a.SuperAdmin,a.Operation])},g=function(){return c([a.SuperAdmin,a.Admin])},w=function(){return c([a.SuperAdmin,a.Operation,a.Admin,a.Teacher])},f=function(){return c([a.Assistant])},b=function(){return c([a.Student])},h=function(){return c([a.SuperAdmin,a.Operation,a.Admin,a.Teacher,a.Assistant,a.Student])},y=function(){var e,n=Object(r["b"])()._store.getState(),t=n.user,o=t.userInfo;return null===(null===o||void 0===o||null===(e=o.course)||void 0===e?void 0:e.course_role)},k=function(){return i([o.SuperAdmin,o.Operation,o.CertifiedTeacher,o.TrainingProduction])},E=function(){return i([o.SuperAdmin])},S=function(){return i([o.SuperAdmin,o.Operation])},x=function(){return i([o.Student])},j=function(){var e,n=Object(r["b"])()._store.getState(),t=n.user;return!!(null===(e=t.userInfo)||void 0===e?void 0:e.login)},q=function(){var e=Object(r["b"])()._store.getState(),n=e.user;return n.userInfo}}}]); |