newreactbuild/p__Classrooms__Lists__Polls...

2 lines
57 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[79,5],{"1vsH":function(ce,d,t){"use strict";t.d(d,"i",function(){return G}),t.d(d,"n",function(){return J}),t.d(d,"e",function(){return ge}),t.d(d,"h",function(){return Ae}),t.d(d,"c",function(){return _e}),t.d(d,"f",function(){return T}),t.d(d,"g",function(){return i}),t.d(d,"a",function(){return ve}),t.d(d,"F",function(){return q}),t.d(d,"E",function(){return pe}),t.d(d,"G",function(){return re}),t.d(d,"H",function(){return oe}),t.d(d,"v",function(){return Te}),t.d(d,"u",function(){return M}),t.d(d,"s",function(){return Ce}),t.d(d,"r",function(){return ye}),t.d(d,"C",function(){return te}),t.d(d,"l",function(){return Se}),t.d(d,"k",function(){return Le}),t.d(d,"B",function(){return je}),t.d(d,"x",function(){return Ve}),t.d(d,"o",function(){return Ue}),t.d(d,"z",function(){return Fe}),t.d(d,"q",function(){return Re}),t.d(d,"d",function(){return Ke}),t.d(d,"b",function(){return Ne}),t.d(d,"w",function(){return l}),t.d(d,"A",function(){return u}),t.d(d,"p",function(){return A}),t.d(d,"y",function(){return w}),t.d(d,"t",function(){return I}),t.d(d,"j",function(){return U}),t.d(d,"D",function(){return V}),t.d(d,"m",function(){return v});var k=t("GrpF"),a=t("Xc/e"),E=t("VBJJ"),_=t.n(E),D=t("XZgM"),K=t("TFeq"),be=t("RXQH"),F=t("VgM2"),z=t("rjoL"),X=t("TMtJ"),me=t("z3+T"),R=t("zjzt"),he=t("ZZRV"),g=t.n(he),ae=t("xKgJ"),Q=t("s8TD"),Y=t("V0Rq"),j=t("bntm"),fe=t("vcnW"),le=t.n(fe),G=["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"],De=function(e){var n={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return e.data&&e.data.map(function(r,c){return g.a.createElement("span",{key:c,className:n[r]&&n[r].class},r)})},J=function(e){var n,r=(n={},Object(R.a)(n,-1,"\u91CD\u505A\u4E2D"),Object(R.a)(n,0,"\u672A\u5F00\u542F"),Object(R.a)(n,1,"\u672A\u901A\u5173"),Object(R.a)(n,2,"\u6309\u65F6\u901A\u5173"),n);return r[e]||"\u8FDF\u4EA4\u901A\u5173"},ge=function(e){var n,r,c,s=(n={},Object(R.a)(n,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(R.a)(n,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(R.a)(n,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(R.a)(n,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(R.a)(n,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),n);return g.a.createElement("span",{className:s==null||((r=s[e.status])===null||r===void 0)?void 0:r.class},s==null||((c=s[e.status])===null||c===void 0)?void 0:c.name)},Ae=function(e){var n=e.status,r={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 g.a.createElement("span",{className:r[n].class},r[n].name)}catch(c){console.log("utils.StatusGraduationProjectTags",e.status)}},_e={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},T={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},i=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"}},r=[];e.is_random&&r.push(g.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{e.status&&e.status.map(function(c,s){r.push(g.a.createElement("span",{key:s,className:n[c]&&n[c].class},c))})}catch(c){console.log("utils.status.tag:",c,e.status)}return r},we=function(e){var n,r,c,s=(n={},Object(R.a)(n,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(R.a)(n,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(R.a)(n,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(R.a)(n,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(R.a)(n,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),n);return g.a.createElement("span",{className:(r=s[e.status])===null||r===void 0?void 0:r.class},(c=s[e.status])===null||c===void 0?void 0:c.name)},ve=function(e){var n,r,c={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 g.a.createElement("span",{className:(n=c[e.status])===null||n===void 0?void 0:n.class},(r=c[e.status])===null||r===void 0?void 0:r.name)},q=function(e){e=new Date(e).getTime();var n=1e3*60,r=n*60,c=r*24,s="",P=new Date().getTime(),y=P-e;if(y<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),s="\u521A\u521A";var b=parseInt(y/c,10),x=parseInt(y/r,10),S=parseInt(y/n,10);return b>30?s=""+pe(e,"yyyy-MM-dd"):b>1?s=""+b+"\u5929\u524D":b==1?s="\u6628\u5929":x>=1?s=""+x+"\u5C0F\u65F6\u524D":S>=5?s=""+S+"\u5206\u949F\u524D":s="\u521A\u521A",s},pe=function(e,n){typeof e=="string"&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var r={"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()},c=[["\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"]];/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(n)&&(n=n.replace(RegExp.$1,c[RegExp.$1.length-1][e.getDay()]));for(var s in r)new RegExp("("+s+")").test(n)&&(n=n.replace(RegExp.$1,RegExp.$1.length==1?r[s]:("00"+r[s]).substr((""+r[s]).length)));return n},re=function(e){if(!e||e<0)return"0\u79D2";console.log("time:",e);var n=60,r=n*60,c=r*24,s=e/c,P=e/r,y=e/n,b=e%60;return s>=1?parseInt(s.toString())+"\u5929"+Math.floor(P%24)+"\u65F6"+Math.floor(y%60)+"\u5206"+Math.floor(e%60)+"\u79D2":P>1?parseInt(P.toString())+"\u65F6"+Math.floor(y%60)+"\u5206"+Math.floor(e%60)+"\u79D2":y>=1?parseInt(y.toString())+"\u5206"+Math.floor(e%60)+"\u79D2":Math.ceil(e)+"\u79D2"},oe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,r=0;if(e){r=e.length;for(var c=0;c<r;c++){var s=e.charCodeAt(c);s>=55296&&s<=56319&&(r--,c++)}}return r<=n},Te=function(e,n,r){if(n){var c=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,s=/[\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/ig,P=s.test(n),y=c.test(n);(P===!0||y===!0||(n.length<2||n.length>=21))&&r("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}r()},M=function(e,n,r){if(n){var c=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,s=/[\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/ig,P=s.test(n),y=c.test(n);(P===!0||y===!0||(n.length<2||n.length>=11))&&r("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}r()},Ce=function(e){if(!e)return"";for(var n=e.length-1,r="",c=0;c<n;c++)r+="*";var s=e.substr(0,1)+r;return s},ye=function(e,n){var r=new FileReader;r.addEventListener("load",function(){return n(r.result)}),r.readAsDataURL(e)};function te(f){var e="79e33abd4b6588941ab7622aed1e67e8";return le()(e+f)}var We=function(e){var n,r=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(n=document.cookie.match(r))?decodeURIComponent(n[2]):null};function Me(f,e,n){var r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);var c="expires="+r.toUTCString();document.cookie=f+"="+e+"; "+c}var Xe=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function Se(f,e){var n=document.createElement("a");document.body.appendChild(n),n.href=e,n.download=f;var r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r),document.body.removeChild(n)}function Le(f,e){return new Promise(function(n,r){var c=e,s=document.createElement("iframe"),P;console.log("downloadFileUrl",c),document.body.appendChild(s),s.src=c,s.style.display="none",P=setInterval(function(){We("fileDownload")&&(Xe("fileDownload"),clearInterval(P),n())},1e3)})}var je=function(e){var n=e.url,r=e.query;return n?(r&&function(){var c=[],s=function(b){r.hasOwnProperty(b)&&!w(r[b])&&(typeof r[b]=="object"?r[b].map(function(x){c.push("".concat(b,"[]=").concat(x))}):c.push("".concat(b,"=").concat(r[b])))};for(var P in r)s(P);n.indexOf("?")!==-1?n="".concat(n,"&").concat(c.join("&")):n="".concat(n,"?").concat(c.join("&")),console.log("url1111",n)}(),n):""};function Ve(){for(var f=navigator.userAgent,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0,r=0;r<e.length;r++)if(f.indexOf(e[r])>0){n=!1;break}return n}function Oe(){var f=navigator.userAgent,e=["Chrome"];return e.some(function(n){return f.indexOf(n)>-1})}function Be(){var f=navigator.userAgent,e=["Chrome","Firefox"];return e.some(function(n){return f.indexOf(n)>-1})}var Ue=function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n==null||((e=n.toString())===null||e===void 0)?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},Fe=function(e){var n=document.createElement("a");n.target="_blank",document.body.appendChild(n),n.href=e;var r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r),document.body.removeChild(n)},Re=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},Ke=function(){var e=new Date().getHours(),n=new Date().getMinutes();return n>=30?(e++,n="00"):n="30",e+":"+n},Ne=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},Ee;(function(f){f.Number="Number",f.String="String",f.Boolean="Boolean",f.Object="Object",f.Array="Array",f.Function="Function"})(Ee||(Ee={}));var o=function(e){var n=Object.prototype.toString.call(e);return n.substring(8,n.length-1)},l=function(e){return o(e)===Ee.Array?e.length===0:o(e)===Ee.Object?Object.keys(e).length===0:!e},u=function(e,n){for(var r=[],c=e;c<n;c++)r.push(c);return r},Z=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,r=n/2-2,c=n/2+3;return e.length>n?e.substr(0,r)+"..."+e.substr(c,n):e},A=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},w=function(e){return e==null};function L(f,e){var n=new RegExp("(^|&)".concat(f,"=([^&]*)(&|$)"),"i"),r=e.substr(1).match(n);return r!=null?decodeURIComponent(r[2]):null}var I=function(e){switch(e.container_type){case"ApplyUserAuthentication":if(e.tiding_type==="Apply"){if(e.auth_type===1)return window.open("/admins/identity_authentications");if(e.auth_type===2)return window.open("/admins/professional_authentications")}return e.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return e.tiding_type==="Apply"?window.open("/admins/department_applies"):e.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return e.tiding_type==="Apply"?window.open("/admins/unit_applies"):e.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if(e.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(e.tiding_type==="System")return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if(e.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(e.tiding_type==="System")return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if(e.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(e.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if(e.tiding_type==="Apply")return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if(e.tiding_type==="System")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":return e.tiding_type==="Delete"?void 0: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 e.homework_type==="normal"?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):e.homework_type==="group"?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):e.homework_type==="practice"?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 e.homework_type==="normal"?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):e.homework_type==="group"?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):e.homework_type==="practice"?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(" /classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open(" /classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /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(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="group")return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="practice")return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="group")return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="practice")return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="group")return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="practice")return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="group")return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if(e.homework_type==="practice")return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if(e.homework_type==="group")return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if(e.homework_type==="practice")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(e.tiding_type==="Apply")return window.open("/admins/library_applies");if(e.tiding_type==="System")return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":return e.tiding_type==="Destroyed"||e.tiding_type==="Destroyed_end"?void 0:e.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return e.parent_container_type==="Hack"&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":if(e.tiding_type==="Apply")return window.open("/admins/video_applies");if(e.tiding_type==="System"){var n;return window.open("/users/".concat((n=Object(ae.u)())===null||n===void 0?void 0:n.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if(e.homework_type==="group")return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if(e.homework_type==="normal")return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if(e.homework_type==="group")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&&e.parent_container_type!=="HackDelete")return window.open("/problems/".concat(e.extra,"/edit"));default:return}},U=function(e){var n,r;return new Promise(function(){var c=Object(me.a)(_.a.mark(function s(P,y){var b;return _.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(!(e.ip_limit!=="no")){S.next=4;break}return S.next=3,Object(Q.a)({ip_limit:e==null?void 0:e.ip_limit});case 3:n=S.sent;case 4:return S.next=6,Object(Y.e)({id:e.exerciseId,ip:n});case 6:if(b=S.sent,b.status===0?P(b):y(b),!e.errmsgHide){S.next=10;break}return S.abrupt("return",!0);case 10:if(!(b.status===-1)){S.next=15;break}return r=X.a.info({title:g.a.createElement(K.a,null,g.a.createElement(F.a,{flex:"1"},"\u63D0\u793A"),g.a.createElement(F.a,null,g.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return r.destroy()}}))),icon:null,className:"custom-modal-divider",content:g.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),S.abrupt("return",!1);case 15:if(!(b.status===-2)){S.next=18;break}return r=X.a.info({title:g.a.createElement(K.a,null,g.a.createElement(F.a,{flex:"1"},"\u63D0\u793A"),g.a.createElement(F.a,null,g.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return r.destroy()}}))),icon:null,className:"custom-modal-divider",content:g.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",g.a.createElement("span",{className:"c-red"},b.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),S.abrupt("return",!1);case 18:case"end":return S.stop()}},s)}));return function(s,P){return c.apply(this,arguments)}}())},V=function(){var f=Object(me.a)(_.a.mark(function e(n){var r;return _.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(n.ip_limit!=="no")){s.next=4;break}return s.next=3,U(n);case 3:Oe()||X.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:g.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",g.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",g.a.createElement("br",null),"\u8BF7\u4F7F\u7528",g.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});case 4:if(!(n.open_camera||n.screen_open||n.ip_limit!=="no")){s.next=12;break}if(Be()){s.next=9;break}return X.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:g.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",g.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",g.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",g.a.createElement("br",null),"\u8BF7\u4F7F\u7528",g.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",g.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),s.abrupt("return",!1);case 9:r=X.a.info({title:g.a.createElement(K.a,null,g.a.createElement(F.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),g.a.createElement(F.a,null,g.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return r.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:g.a.createElement("div",{className:"font16 p20"},n.open_camera&&g.a.createElement(K.a,{align:"middle",justify:"start",className:"mt20"},g.a.createElement(F.a,null,g.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),g.a.createElement(F.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",g.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),n.screen_open&&g.a.createElement(K.a,{justify:"start",className:"mt20"},g.a.createElement(F.a,{flex:"24px",className:"mr20"},g.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),g.a.createElement(F.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",n.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",g.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),(n.inner_ip!==""||n.public_ip!=="")&&g.a.createElement(K.a,{justify:"start",className:"mt20"},g.a.createElement(F.a,{flex:"24px",className:"mr20"},g.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),g.a.createElement(F.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A\u3002IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002",g.a.createElement("br",null),g.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),g.a.createElement("br",null),g.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),n.ip_bind&&g.a.createElement(K.a,{justify:"start",className:"mt20"},g.a.createElement(F.a,{flex:"24px",className:"mr20"},g.a.createElement("span",{className:"iconfont icon-IPbangding c-blue font24"})),g.a.createElement(F.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u8003\u8BD5\u671F\u95F4IP\u7ED1\u5B9A\u3002\u5F53\u60A8\u5F00\u59CB\u8003\u8BD5\u540E\uFF0C\u5C06\u81EA\u52A8\u7ED1\u5B9AIP\uFF0C\u8003\u8BD5\u671F\u95F4\u53EA\u5141\u8BB8\u4F7F\u7528\u552F\u4E00\u7684IP\u8FDB\u5165\u8003\u8BD5\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u5411\u8001\u5E08\u7533\u8BF7\u89E3\u9664IP\u7ED1\u5B9A\u3002",g.a.createElement("br",null),g.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),g.a.createElement("br",null),g.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),g.a.createElement("p",{className:"ml40 mt40"},g.a.createElement(a.a,{onChange:function(y){return r.update({okButtonProps:{disabled:!y.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){var y;Object(j.d)(document.body),n.history.push("/classrooms/".concat(n.coursesId,"/exercise/").concat(n.exerciseId,"/users/").concat((y=Object(ae.u)())===null||y===void 0?void 0:y.login))},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),s.next=13;break;case 12:n.history.push("/classrooms/".concat(n.coursesId,"/exercise/").concat(n.exerciseId,"/users/").concat(n.login));case 13:case"end":return s.stop()}},e)}));return function(n){return f.apply(this,arguments)}}(),v=[{name:"\u535A\u58EB\u7814\u7A76\u751F",id:8},{name:"\u7855\u58EB\u7814\u7A76\u751F",id:7},{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9}]},"5b1O":function(ce,d,t){"use strict";t.r(d),t.d(d,"checkedOtherName",function(){return o});var k=t("MPZO"),a=t("bnk9"),E=t("IIfR"),_=t("w3Ok"),D=t("E+ey"),K=t("sY1U"),be=t("XZgM"),F=t("TFeq"),z=t("RXQH"),X=t("VgM2"),me=t("XSsT"),R=t("iBFk"),he=t("X/R0"),g=t("M6G9"),ae=t("rjoL"),Q=t("TMtJ"),Y=t("VBJJ"),j=t.n(Y),fe=t("55MS"),le=t("z3+T"),G=t("GZha"),De=t("buSX"),J=t("X0kX"),ge=t("qoS/"),Ae=t("jpv3"),_e=t("9rdS"),T=t("ZZRV"),i=t.n(T),we=t("q5+0"),ve=t("9kvl"),q=t("DndG"),pe=t("0YPX"),re=t("NfTp"),oe=t.n(re),Te=t("blMm"),M=t.n(Te),Ce=t("1vsH"),ye=t("oUNq"),te=t("xKgJ"),We=t("DHCt"),Me=t("CRgH"),Xe=t("9cas"),Se=t("twZV"),Le=function(w){var L,I,U,V,v=w.itemData,f=w.answerData,e=w.onSave,n=e===void 0?function(){}:e,r=Object(T.useState)([]),c=Object(G.a)(r,2),s=c[0],P=c[1],y=Object(T.useState)(),b=Object(G.a)(y,2),x=b[0],S=b[1],ue=Object(T.useState)(),ie=Object(G.a)(ue,2),ee=ie[0],Pe=ie[1];Object(T.useEffect)(function(){var p;P((v==null||((p=v.question)===null||p===void 0)?void 0:p.answers)||[])},[v==null||((L=v.question)===null||L===void 0)?void 0:L.answers]),Object(T.useEffect)(function(){var p,O;S(v==null||((p=v.question)===null||p===void 0||((O=p.poll_answer_ids)===null||O===void 0))?void 0:O[0])},[v==null||((I=v.question)===null||I===void 0)?void 0:I.poll_answer_ids]),Object(T.useEffect)(function(){var p;Pe(v==null||((p=v.question)===null||p===void 0)?void 0:p.poll_vote_texts)},[v==null||((U=v.question)===null||U===void 0)?void 0:U.poll_vote_texts]);var Ie=function(O,h){var $;S(O);var W=($=s.find(function(m){return o(m.answer_text)}))===null||$===void 0?void 0:$.answer_id;O===W?n(h,O,ee):n(h,O,"")},xe=function(O){var h;if(!x)return;var $=(h=s.find(function(W){return o(W.answer_text)}))===null||h===void 0?void 0:h.answer_id;x===$?n(O,x,ee):n(O,x,"")};return i.a.createElement(Se.a.Group,{disabled:Object(te.c)()||Object(te.q)()&&(f==null||((V=f.poll)===null||V===void 0)?void 0:V.user_poll_status)===1,value:x,onChange:function(O){var h;Ie(O.target.value,v==null||((h=v.question)===null||h===void 0)?void 0:h.id)}},s.map(function(p,O){return i.a.createElement("div",{className:"".concat(M.a.answerWrap," ").concat(M.a.flexRow),key:O},i.a.createElement(Se.a,{value:p==null?void 0:p.answer_id}),i.a.createElement("span",{className:"font14"},p==null?void 0:p.answer_text),o(p==null?void 0:p.answer_text)&&i.a.createElement(Me.a,{className:M.a.otherInput,value:ee,onChange:function($){return Pe($.target.value)},onBlur:function($){var W;return xe(v==null||((W=v.question)===null||W===void 0)?void 0:W.id)}}))}))},je=Le,Ve=t("GrpF"),Oe=t("Xc/e"),Be=function(w){var L,I,U,V,v=w.itemData,f=w.answerData,e=w.onSave,n=e===void 0?function(){}:e,r=Object(T.useState)([]),c=Object(G.a)(r,2),s=c[0],P=c[1],y=Object(T.useState)(),b=Object(G.a)(y,2),x=b[0],S=b[1],ue=Object(T.useState)(),ie=Object(G.a)(ue,2),ee=ie[0],Pe=ie[1];Object(T.useEffect)(function(){var p;P((v==null||((p=v.question)===null||p===void 0)?void 0:p.answers)||[])},[v==null||((L=v.question)===null||L===void 0)?void 0:L.answers]),Object(T.useEffect)(function(){var p;S(v==null||((p=v.question)===null||p===void 0)?void 0:p.poll_answer_ids)},[v==null||((I=v.question)===null||I===void 0)?void 0:I.poll_answer_ids]),Object(T.useEffect)(function(){var p;Pe(v==null||((p=v.question)===null||p===void 0)?void 0:p.poll_vote_texts)},[v==null||((U=v.question)===null||U===void 0)?void 0:U.poll_vote_texts]);var Ie=function(O,h){var $;S(O);var W=($=s.find(function(m){return o(m.answer_text)}))===null||$===void 0?void 0:$.answer_id;O.includes(W)?n(h,O,ee):n(h,O,"")},xe=function(O){var h;if(!(x==null?void 0:x.length))return;var $=(h=s.find(function(W){return o(W.answer_text)}))===null||h===void 0?void 0:h.answer_id;x.includes($)?n(O,x,ee):n(O,x,"")};return i.a.createElement(Oe.a.Group,{disabled:Object(te.c)()||Object(te.q)()&&(f==null||((V=f.poll)===null||V===void 0)?void 0:V.user_poll_status)===1,value:x,onChange:function(O){var h;Ie(O,v==null||((h=v.question)===null||h===void 0)?void 0:h.id)}},s==null?void 0:s.map(function(p,O){return i.a.createElement("div",{className:"".concat(M.a.answerWrap," ").concat(M.a.flexRow)},i.a.createElement(Oe.a,{value:p==null?void 0:p.answer_id}),i.a.createElement("span",{className:"font14"},p==null?void 0:p.answer_text),o(p==null?void 0:p.answer_text)&&i.a.createElement(Me.a,{className:M.a.otherInput,value:ee,onChange:function($){return Pe($.target.value)},onBlur:function($){var W;return xe(v==null||((W=v.question)===null||W===void 0)?void 0:W.id)}}))}))},Ue=Be,Fe=function(w){var L,I,U=w.itemData,V=w.answerData,v=w.onSave,f=v===void 0?function(){}:v,e=Object(T.useState)(),n=Object(G.a)(e,2),r=n[0],c=n[1];return Object(T.useEffect)(function(){var s;c(U==null||((s=U.question)===null||s===void 0)?void 0:s.poll_vote_texts)},[U==null||((L=U.question)===null||L===void 0)?void 0:L.poll_vote_texts]),i.a.createElement("div",null,i.a.createElement("textarea",{className:M.a.answerSubjective,placeholder:"\u5728\u6B64\u586B\u5165\u7B54\u6848",disabled:Object(te.c)()||Object(te.q)()&&(V==null||((I=V.poll)===null||I===void 0)?void 0:I.user_poll_status)===1,value:r,onChange:function(P){return c(P.target.value)},onBlur:function(P){var y;return f(U==null||((y=U.question)===null||y===void 0)?void 0:y.id,null,r)}}))},Re=Fe,Ke=_e.a.SubMenu,Ne=ge.a.Content,Ee=ge.a.Sider,o=function(w){return w==="\u5176\u4ED6"||w==="\u5176\u5B83"},l={1:"\u5355\u9009\u9898",2:"\u591A\u9009\u9898",3:"\u4E3B\u89C2\u9898"},u=function(w){var L,I,U,V,v,f,e,n,r,c,s,P,y,b,x,S,ue,ie,ee,Pe=w.globalSetting,Ie=w.loading,xe=w.user,p=w.dispatch,O=Object(De.a)(w,["globalSetting","loading","user","dispatch"]),h=Object(we.m)(),$=Object(T.useState)({}),W=Object(G.a)($,2),m=W[0],Je=W[1];Object(T.useEffect)(function(){Ze()},[h.categoryId]);var Ze=function(){var C=Object(le.a)(j.a.mark(function H(){var B;return j.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,Object(ye.eb)(Object(fe.a)({},h));case 2:B=N.sent,B&&Je(B);case 4:case"end":return N.stop()}},H)}));return function(){return C.apply(this,arguments)}}(),He=function(){var C=Object(le.a)(j.a.mark(function H(B,de,N){var se;return j.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(B){ne.next=3;break}return console.error("handleSave no questionId params"),ne.abrupt("return");case 3:return ne.next=5,Object(ye.Ab)({questionId:B,poll_answer_id:de,vote_text:N});case 5:se=ne.sent,(se==null?void 0:se.poll_vote)&&(m.question_answered.find(function(ke){return ke.ques_id===B}).ques_status=se.poll_vote.question_status,Je(Object(fe.a)({},m)));case 7:case"end":return ne.stop()}},H)}));return function(B,de,N){return C.apply(this,arguments)}}(),Ye=function(){var H,B=0,de=0;if(m==null||((H=m.question_answered)===null||H===void 0)||H.map(function(N){if((N==null?void 0:N.ques_status)===0){var se,$e,ne,ke=m==null||((se=m.questions)===null||se===void 0||(($e=se.find(function(ze){var Ge;return(ze==null||((Ge=ze.question)===null||Ge===void 0)?void 0:Ge.id)===N.ques_id}))===null||$e===void 0||((ne=$e.question)===null||ne===void 0)))?void 0:ne.is_necessary;ke===1?B++:de++}}),B>0){Q.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:i.a.createElement("div",{className:"tc font16 c-black-333"},"\u6709 ",B," \u9898\u5FC5\u7B54\u9898\u672A\u7B54\uFF0C\u65E0\u6CD5\u63D0\u4EA4 ",i.a.createElement("br",null),"\u8BF7\u5B8C\u6210\u5168\u90E8\u5FC5\u7B54\u9898\u540E\u518D\u63D0\u4EA4")});return}Q.a.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc font16 c-black-333"},de>0&&i.a.createElement(i.a.Fragment,null,"\u6709 ",de," \u9898\u672A\u7B54 ",i.a.createElement("br",null)),"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:function(){qe()}})},qe=function(){var C=Object(le.a)(j.a.mark(function H(){var B;return j.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,Object(ye.vb)({categoryId:h.categoryId});case 2:B=N.sent,(B==null?void 0:B.status)===0&&(g.b.success(B==null?void 0:B.message),ve.c.push("/classrooms/".concat(h.coursesId,"/poll/").concat(h.categoryId,"/detail")));case 4:case"end":return N.stop()}},H)}));return function(){return C.apply(this,arguments)}}();return i.a.createElement("section",{className:"edu-container"},i.a.createElement("section",{className:"animated fadeIn"},i.a.createElement("aside",{className:"mt10"},i.a.createElement(R.a,{separator:">"},i.a.createElement(R.a.Item,null,i.a.createElement(q.Link,{to:"/classrooms/".concat(h.coursesId,"/poll")},m==null||((L=m.course)===null||L===void 0)?void 0:L.name)),i.a.createElement(R.a.Item,null,i.a.createElement(q.Link,{to:"/classrooms/".concat(h.coursesId,"/poll")},"\u95EE\u5377")),i.a.createElement(R.a.Item,null,i.a.createElement(q.Link,{to:"/classrooms/".concat(h.coursesId,"/poll/").concat(h.categoryId,"/detail")},"\u95EE\u5377\u8BE6\u60C5")),i.a.createElement(R.a.Item,null,(I=xe.userInfo)===null||I===void 0?void 0:I.real_name))),i.a.createElement("aside",{className:[M.a.title,"mt20"].join(" ")},i.a.createElement(F.a,{style:{width:"100%"}},i.a.createElement(X.a,{flex:"1"},i.a.createElement(q.Link,{to:"/classrooms/".concat(h.coursesId,"/poll/").concat(h.categoryId,"/detail")},i.a.createElement(pe.a,{className:"font16 c-black"})),i.a.createElement("strong",{className:"font24 ml5"},m==null||((U=m.poll)===null||U===void 0)?void 0:U.polls_name),i.a.createElement(Ce.g,{status:[Ce.f[m==null||((V=m.poll)===null||V===void 0)?void 0:V.poll_status]]})),i.a.createElement(X.a,null))),(m==null||((v=m.poll)===null||v===void 0)?void 0:v.polls_description)&&i.a.createElement("p",{className:M.a.pollDesc},m==null||((f=m.poll)===null||f===void 0)?void 0:f.polls_description)),i.a.createElement("section",{className:[M.a.bg,"pt30","pl30","pr30","pb30","mt20","mb50"].join(" ")},i.a.createElement(F.a,{gutter:[30,0]},i.a.createElement(X.a,{className:""},i.a.createElement("aside",null,(m==null||((e=m.question_types)===null||e===void 0)?void 0:e.q_counts)>0&&i.a.createElement("span",{className:"ml20 c-black"},"\u5408\u8BA1 ",m==null||((n=m.question_types)===null||n===void 0)?void 0:n.q_counts,"\u9898\uFF1A"),(m==null||((r=m.question_types)===null||r===void 0)?void 0:r.q_singles)>0&&i.a.createElement("span",{className:"ml20 c-grey-999"},"\u5355\u9009\u9898 ",m==null||((c=m.question_types)===null||c===void 0)?void 0:c.q_singles,"\u9898"),(m==null||((s=m.question_types)===null||s===void 0)?void 0:s.q_doubles)>0&&i.a.createElement("span",{className:"ml20 c-grey-999"},"\u591A\u9009\u9898 ",m==null||((P=m.question_types)===null||P===void 0)?void 0:P.q_doubles,"\u9898"),(m==null||((y=m.question_types)===null||y===void 0)?void 0:y.q_mains)>0&&i.a.createElement("span",{className:"ml20 c-grey-999"},"\u4E3B\u89C2\u9898 ",m==null||((b=m.question_types)===null||b===void 0)?void 0:b.q_mains,"\u9898")))),i.a.createElement(K.a,null),i.a.createElement(F.a,{gutter:[30,0]},i.a.createElement(X.a,{flex:"1"},i.a.createElement("span",{className:"".concat(M.a.answered," mr40 pl30")},"\u5DF2\u7B54"),i.a.createElement("span",{className:M.a.unanswer},"\u672A\u7B54")),i.a.createElement(X.a,null,i.a.createElement("span",{className:"c-grey-999"},"\u622A\u6B62\u65F6\u95F4 ",(m==null||((x=m.poll)===null||x===void 0)?void 0:x.end_time)&&oe()(m==null||((S=m.poll)===null||S===void 0)?void 0:S.end_time).format("YYYY-MM-DD HH:mm")))),i.a.createElement(F.a,{gutter:[30,0],className:"mt10"},i.a.createElement(X.a,{flex:"1"},i.a.createElement(_.a,{affix:!1,className:M.a.anchor},m==null||((ue=m.question_answered)===null||ue===void 0)?void 0:ue.map(function(C,H){return i.a.createElement(_.a.Link,{className:"".concat(M.a.answerFlag," ").concat(C.ques_status==1?M.a.answerActive:""),href:"#Anchor_".concat(H),title:C.ques_number})})))),i.a.createElement(K.a,null),i.a.createElement("div",null,m==null||((ie=m.questions)===null||ie===void 0)?void 0:ie.map(function(C,H){return i.a.createElement("div",{className:M.a.questionItem,id:"Anchor_".concat(H)},i.a.createElement("div",{className:M.a.itemType},i.a.createElement("span",{className:"font16 c-blue mr5"},C.question.question_number,"\u3001",l[C.question.question_type]),i.a.createElement("span",{className:M.a.itemFlag},C.question.is_necessary==1?"\u5FC5\u7B54":"\u9009\u7B54"),C.question.question_type==2&&C.question.min_choices&&C.question.max_choices&&i.a.createElement("span",null,C.question.min_choices==C.question.max_choices?"\u53EF\u9009"+C.question.max_choices+"\u9879":"\u53EF\u9009"+C.question.min_choices+"-"+C.question.max_choices+"\u9879")),i.a.createElement("p",null,C.question.question_title),C.question.question_type==1&&i.a.createElement(je,{answerData:m,itemData:C,onSave:He}),C.question.question_type==2&&i.a.createElement(Ue,{answerData:m,itemData:C,onSave:He}),C.question.question_type==3&&i.a.createElement(Re,{answerData:m,itemData:C,onSave:He}))}))),Object(te.q)()&&(m==null||((ee=m.poll)===null||ee===void 0)?void 0:ee.user_poll_status)===0&&i.a.createElement("div",{className:"mt30 mb50"},i.a.createElement(a.a,{className:M.a.submitButton,type:"primary",onClick:Ye},"\u63D0\u4EA4")))},Z=d.default=Object(ve.a)(function(A){var w=A.loading,L=A.user,I=A.globalSetting;return{globalSetting:I,user:L,loading:w.effects}})(u)},blMm:function(ce,d,t){ce.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"}},bntm:function(ce,d,t){"use strict";t.d(d,"d",function(){return k}),t.d(d,"b",function(){return a}),t.d(d,"c",function(){return E}),t.d(d,"a",function(){return _});function k(D){try{D.mozRequestFullScreen?D.mozRequestFullScreen():D.webkitRequestFullScreen&&D.webkitRequestFullScreen()}catch(K){console.log(K,":e")}}function a(){document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}var E=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function _(){var D=document.fullscreenElement||document.mozFullscreenElement||document.webkitFullscreenElement,K=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(D==null)}},dfu6:function(ce,d,t){"use strict";t.d(d,"a",function(){return k});var k=function(_){var D=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return D.test(_)},a=function(_){var D=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return D.test(_)}},s8TD:function(ce,d,t){"use strict";t.d(d,"a",function(){return me});var k=t("AVV0"),a=t("XZgM"),E=t("TFeq"),_=t("RXQH"),D=t("VgM2"),K=t("rjoL"),be=t("TMtJ"),F=t("ZZRV"),z=t.n(F),X=t("dfu6"),me=function(he){return new Promise(function(g,ae){if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return ae("WebRTC not supported by browser");var Q=new RTCPeerConnection,Y=[];Q.createDataChannel(""),Q.createOffer().then(function(j){return Q.setLocalDescription(j)}).catch(function(j){return ae(j)}),Q.onicecandidate=function(j){console.log("event:",j);var fe=[];if(!j||!j.candidate){if(console.log("ips",Y),Y.length==0||!Object(X.a)(Y[0])){var le=be.a.info({title:z.a.createElement(E.a,null,z.a.createElement(D.a,{flex:"1"},"\u63D0\u793A"),z.a.createElement(D.a,null,z.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return le.destroy()}}))),icon:null,width:500,className:"custom-modal-divider",content:z.a.createElement(E.a,null,z.a.createElement(D.a,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",he.ip_limit==="inner"&&z.a.createElement(z.a.Fragment,null,z.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),z.a.createElement("br",null),z.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return ae("WebRTC disabled or restricted by browser")}var G=Y.filter(function(oe){return Object(X.a)(oe)});return g(G.join(""))}var De=j.candidate.candidate.split(" "),J=Object(k.a)(De),ge=J[0],Ae=J[1],_e=J[2],T=J[3],i=J[4],we=J[5],ve=J[7],q=J.slice(8),pe=["rtp","rtpc"];if(console.log("event:",j),Y.some(function(oe){return oe==i})||Y.push(i),console.log(" candidate: "+ge.split(":")[1]),console.log(" component: "+pe[Ae-1]),console.log(" protocol: "+_e),console.log(" priority: "+T),console.log(" ip: "+i),console.log(" port: "+we),console.log(" type: "+ve),q.length){console.log("attributes: ");for(var re=0;re<q.length;re+=2)console.log("> "+q[re]+": "+q[re+1])}}})}},xKgJ:function(ce,d,t){"use strict";t.d(d,"o",function(){return K}),t.d(d,"b",function(){return be}),t.d(d,"c",function(){return F}),t.d(d,"e",function(){return z}),t.d(d,"f",function(){return X}),t.d(d,"s",function(){return me}),t.d(d,"g",function(){return R}),t.d(d,"t",function(){return he}),t.d(d,"d",function(){return g}),t.d(d,"i",function(){return ae}),t.d(d,"j",function(){return Q}),t.d(d,"q",function(){return Y}),t.d(d,"h",function(){return j}),t.d(d,"p",function(){return fe}),t.d(d,"r",function(){return J}),t.d(d,"a",function(){return _e}),t.d(d,"l",function(){return Ue}),t.d(d,"m",function(){return Fe}),t.d(d,"k",function(){return Re}),t.d(d,"n",function(){return Ne}),t.d(d,"u",function(){return Ee});var k=t("9kvl"),a;(function(o){o[o.SuperAdmin=1]="SuperAdmin",o[o.Operation=2]="Operation",o[o.CertifiedTeacher=5]="CertifiedTeacher",o[o.TrainingProduction=8]="TrainingProduction",o[o.UncertifiedTeacher=12]="UncertifiedTeacher",o[o.Student=15]="Student"})(a||(a={}));var E;(function(o){o[o.SuperAdmin=1]="SuperAdmin",o[o.Operation=2]="Operation",o[o.Admin=5]="Admin",o[o.Teacher=8]="Teacher",o[o.Assistant=12]="Assistant",o[o.Student=15]="Student"})(E||(E={}));var _=function(l){var u=Object(k.b)()._store.getState(),Z=u.user,A=Z.userInfo;return l.some(function(w){return w==(A==null?void 0:A.role)})},D=function(l){var u=Object(k.b)()._store.getState(),Z=u.user,A=Z.userInfo;return(A==null?void 0:A.own)?!0:l.some(function(w){var L;return w==(A==null||((L=A.course)===null||L===void 0)?void 0:L.course_role)})},K=function(){var l=Object(k.b)()._store.getState(),u=l.user,Z=u.userInfo;return Z.main_site},be=function(){var l,u=Object(k.b)()._store.getState(),Z=u.user,A=Z.userInfo;return A==null||((l=A.course)===null||l===void 0)?void 0:l.course_is_end},F=function(){return D([E.SuperAdmin,E.Operation,E.Admin,E.Teacher,E.Assistant])},z=function(){return D([E.SuperAdmin,E.Teacher,E.Admin,E.Assistant,E.Operation])},X=function(){return D([E.SuperAdmin,E.Teacher,E.Admin])},me=function(){return D([E.SuperAdmin])},R=function(){return D([E.SuperAdmin,E.Operation,E.Admin])},he=function(){return D([E.SuperAdmin,E.Operation])},g=function(){return D([E.SuperAdmin,E.Admin])},ae=function(){return D([E.SuperAdmin,E.Operation,E.Admin,E.Teacher])},Q=function(){return D([E.Assistant])},Y=function(){return D([E.Student])},j=function(){return D([E.SuperAdmin,E.Operation,E.Admin,E.Teacher,E.Assistant,E.Student])},fe=function(){var l,u=Object(k.b)()._store.getState(),Z=u.user,A=Z.userInfo;return(A==null||((l=A.course)===null||l===void 0)?void 0:l.course_role)===null},le=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher,a.Student])},G=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return u||!u&&_([a.SuperAdmin])},De=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return u||!u&&_([a.SuperAdmin,a.Operation])},J=function(){return _([E.Student])},ge=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher,a.Student]):u||!u&&_([a.SuperAdmin,a.Operation])},Ae=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher,a.Student]):u||!u&&_([a.SuperAdmin,a.Operation])},_e=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction])},T=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin]):u||!u&&_([a.SuperAdmin])},i=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation]):u||!u&&_([a.SuperAdmin,a.Operation])},we=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher,a.Student]):u||!u&&_([a.SuperAdmin,a.Operation])},ve=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher]):u||!u&&_([a.SuperAdmin,a.Operation])},q=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher]):u||!u&&_([a.SuperAdmin,a.Operation])},pe=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin]):!1},re=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher,a.Student])},oe=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin]):u||!u&&_([a.SuperAdmin])},Te=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation]):u||!u&&_([a.SuperAdmin,a.Operation])},M=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher,a.Student]):u||!u&&_([a.SuperAdmin,a.Operation])},Ce=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?!1:u||!u&&_([a.SuperAdmin,a.Operation])},ye=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?u||!u&&_([a.SuperAdmin,a.Operation]):!1},te=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher]):!1},We=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?!u&&_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher]):!1},Me=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher]):u||!u&&_([a.SuperAdmin,a.Operation])},Xe=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher])},Se=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin]):u||!u&&_([a.SuperAdmin])},Le=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation]):u||!u&&_([a.SuperAdmin,a.Operation])},je=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher]):u||!u&&_([a.SuperAdmin,a.Operation])},Ve=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?u||!u&&_([a.SuperAdmin,a.Operation]):!1},Oe=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return l?_([a.SuperAdmin,a.Operation,a.CertifiedTeacher,a.TrainingProduction,a.UncertifiedTeacher]):u||!u&&_([a.SuperAdmin,a.Operation])},Be=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return D([E.Teacher])},Ue=function(){return _([a.SuperAdmin])},Fe=function(){return _([a.SuperAdmin,a.Operation])},Re=function(){return _([a.Student])},Ke=function(){return _([a.SuperAdmin,a.Operation,a.CertifiedTeacher])},Ne=function(){var l,u=Object(k.b)()._store.getState(),Z=u.user;return!!((l=Z.userInfo)===null||l===void 0?void 0:l.login)},Ee=function(){var l=Object(k.b)()._store.getState(),u=l.user;return u.userInfo}}}]);